1.1.6 • Published 2 years ago

@qonsoll/icons v1.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@qonsoll/icons

Install

Install dependencies

npm install --save @qonsoll/react-design

or

yarn add @qonsoll/react-design

Install library

npm install --save @qonsoll/icons

or

yarn add @qonsoll/icons

Usage

How to import component?

import { Icon } from '@qonsoll/icons'

function App() {
  return <Icon name="BookmarkAddOutlined" />
}

Documentation

Storybook

Configuration

You can configure qonsoll/icons props using

import { Icon } from '@qonsoll/icons'

function App() {
  return <Icon name="BookmarkAddOutlined" size="24px" fill="#6648bf" />
}
KeyDefaultNotes
fillblackInlined icons #424851
size24pxInlined icons 16px

How to update package step-by-step

You can write in terminal run storybook, and see all changes on Storybook

  1. Add file.svg to src/icons/(Filled/Outline)
  2. Next create new IconComponent
    1. Go to src/components/SvgComponents(Filled/Outline)
    2. Create new IconComponent with two props: size, fill
      1. Add in return all content from file.svg (svg, path)
        1. Outline icons - change stroke="black" -> stroke={fill}
        2. Filled icons - change fill="black" -> fill={fill}
    3. open index.js inside (src/components/SvgComponents(Filled/Outline))
      1. import Icon(Filled/Outlined) from "./IconComponent"
      2. export {...IconComponents, Icon(Filled/Outlined) }
      3. export default {...IconComponents, Icon(Filled/Outlined) }
    4. Go to src/components/index.js
      1. import {...IconComponents, Icon(Filled/Outlined) } from "./IconFolder"
      2. export {...IconComponents, Icon(Filled/Outlined) }
    5. Go to src/constants/iconPropTypes.js
      1. update PROP_TYPES.name, with new IconComponent
    6. Go to src/constants/namesMap.js
      1. import {...IconComponents, Icon(Filled/Outlined)} from "../components/SvgComponents(Filled/Outline)"
      2. const ICONS_NAMES = {...IconComponents, Icon(Filled/Outlined): <Icon(Filled/Outlined) />}
1.1.6

2 years ago

1.1.1

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.0

2 years ago

1.0.28

2 years ago

1.0.22

3 years ago

1.0.26

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.27

3 years ago

1.0.19

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.11

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.1

4 years ago