4.3.0 • Published 4 months ago

@ultraviolet/illustrations v4.3.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 months ago

Ultraviolet Illustrations

npm version

Ultraviolet Illustrations is a set of illustrations.

Get Started

$ pnpm add @ultraviolet/illustrations

Usage

Assets

import { instanceOriginal } from '@ultraviolet/illustrations/products/instance'

const App = () => <img src={instanceOriginal} alt="illustration instance" />

Components

import { DynamicIllustration } from '@ultraviolet/illustrations'

const App = () => <DynamicIllustration name="success">

Making changes

The entire process of adding, deleting or editing an asset is automated. The imports and exports are handled automatically by @utils/illustrations/uploadIllustrations.js.

When a file from the package is edited in a pull request, the aforementioned script runs and updates every index.ts to ensure the imports and exports match the names of the folders and files located in assets/. It is only possible edit (add, delete or replace some assets) the assets to the assets/ folder. Any changes made directly to one of the index.ts file will be overriden by an automatic commit.

Adding an asset

Simply add the assets you want to include in the package to the correct folder in assets/ and create a pull request. Once the pull request is approved and the branch is merged, the illustrations will be added to an S3 bucket and exported in the package automatically.

Deleting an asset

It is possible to delete an asset. To do so, simply delete its folder. However, the asset will still be present in the S3 bucket and can be used by directly importing the link from the S3 bucket.

Editing an asset

  • If an asset is renamed, the old version will remain on the bucket but will not be exported in ultraviolet. Make sure to correctly rename the assets' name as well as their directory.
  • If an asset is modified, without changing its name, it will replace the old version on the bucket, which will not be available anymore.

Documentation

Checkout our documentation website.

Contributing

šŸ“ You can participate in the development and start contributing to it.

4.2.0

5 months ago

4.3.0

4 months ago

4.1.1

6 months ago

4.1.0

7 months ago

4.0.1

7 months ago

4.0.0

7 months ago

3.5.0

8 months ago

3.4.2

8 months ago

3.4.1

8 months ago

3.4.0

9 months ago

3.3.5

9 months ago

3.3.4

10 months ago

3.3.3

10 months ago

3.3.1

10 months ago

3.3.0

11 months ago

3.3.2

10 months ago

3.2.3

11 months ago

3.2.2

12 months ago

3.2.1

12 months ago

3.1.2

1 year ago

3.2.0

12 months ago

3.1.1

1 year ago

3.1.0

1 year ago

3.0.1

1 year ago

3.0.0

1 year ago

2.0.0

1 year ago

1.7.8

1 year ago

1.7.7

1 year ago

1.7.6

1 year ago

1.7.5

1 year ago

1.7.4

1 year ago

1.7.3

1 year ago

1.7.2

1 year ago

1.7.1

1 year ago

1.7.0

1 year ago

1.6.4

1 year ago

1.6.3

1 year ago

1.6.2

1 year ago

1.6.1

1 year ago

1.6.0

1 year ago

1.5.0

1 year ago

1.4.0

1 year ago

1.3.0

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago