1.1.46 • Published 12 days ago

@realtby/icons v1.1.46

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
12 days ago

@realtby/icons

realt.by icons library

npm code style: prettier

install

npm i -S @realtby/icons

usage

  1. import icons.css to your project, for example:
import '@realtby/icons/dist/icons.css';
  1. import icons from lib root:
import { SuccessIcon } from '@realtby/icons';
  1. render icon, pass props:
<SuccessIcon size={20} className="text-success-500" />

development

make install
make dev # run storybook
make lint
make build
make release # to push new version & generate changelog
make prerelease # then select pre- version, only push new version to npm, for testing
make build-size # reset cache, build & run size-limit
make size-limit-generate # generate icon size limit

How add svg to the library

  1. Copy the raw svg (for example: login.svg) and put it in the desired folder in src/icons (for example: admin):
  src/
      icons/
            ...
            admin/
                  ...
                  login.svg
  1. Run svg:processing script for the admin folder:
  $ npm run svg:processing src/icons/admin
  1. Check result:
  src/
      icons/
            ...
            admin/
                  ...
                  login.optimized.svg
                  login.tsx
                  index.tsx

Note: Processing performs an average optimization. For the best result, optimize the icon manually in the SVGOMG service, save it to a file with the extension .optimized.svg and run svg:processing again.

  1. Generate icon size-limit:
$ make build
$ make size-limit-generate
1.1.46

12 days ago

1.1.45

2 months ago

1.1.44

2 months ago

1.1.43

2 months ago

1.1.42

2 months ago

1.1.41

3 months ago

1.1.40

3 months ago

1.1.38

3 months ago

1.1.37

3 months ago

1.1.39

3 months ago

1.1.36

3 months ago

1.1.35

5 months ago

1.1.34

6 months ago

1.1.33

6 months ago

1.1.32

6 months ago

1.1.31

7 months ago

1.1.30

11 months ago

1.1.29

1 year ago

1.1.28

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.23

2 years ago

1.1.22

2 years ago

1.1.24

2 years ago

1.1.16

2 years ago

1.1.19

2 years ago

1.1.18

2 years ago

1.1.17

2 years ago

1.1.21

2 years ago

1.1.20

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.15

2 years ago

1.1.14

2 years ago

1.1.13

2 years ago

1.1.1

2 years ago

1.0.2

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.0.4

2 years ago

1.1.2

2 years ago

1.0.3

2 years ago

1.0.0

2 years ago

0.1.0

2 years ago

0.0.2-16

2 years ago

0.0.2-15

2 years ago

0.0.2-14

2 years ago

0.0.2-13

2 years ago

0.0.2-12

2 years ago

0.0.2-11

2 years ago

0.0.2-10

2 years ago

0.0.2-9

2 years ago

0.0.2-8

2 years ago

0.0.2-7

2 years ago

0.0.2-6

2 years ago

0.0.2-5

2 years ago

0.0.2-4

2 years ago

0.0.2-3

2 years ago

0.0.2-2

2 years ago

0.0.2-1

2 years ago

0.0.2-0

2 years ago