@epilot360/icons 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -2
- package/dist/bundle.js +1 -1
- package/dist/bundle.js.map +1 -1
- package/package.json +3 -2
- package/react/Attributes/index.d.ts +4 -0
- package/react/Attributes/index.js +41 -0
- package/react/Attributes/index.js.map +1 -0
- package/react/Availability/index.d.ts +4 -0
- package/react/Availability/index.js +41 -0
- package/react/Availability/index.js.map +1 -0
- package/react/EpilotIcon.d.ts +10 -0
- package/react/EpilotIcon.js +10 -0
- package/react/EpilotIcon.js.map +1 -1
- package/react/Note/index.d.ts +4 -0
- package/react/Note/index.js +41 -0
- package/react/Note/index.js.map +1 -0
- package/react/Relations/index.d.ts +4 -0
- package/react/Relations/index.js +41 -0
- package/react/Relations/index.js.map +1 -0
- package/react/Table/index.d.ts +4 -0
- package/react/Table/index.js +41 -0
- package/react/Table/index.js.map +1 -0
- package/react/index.d.ts +5 -0
- package/react/index.js +5 -0
- package/react/index.js.map +1 -1
- package/src/material-symbols.d.ts +5 -0
- package/src/stories/Readme.mdx +7 -16
package/README.md
CHANGED
|
@@ -17,15 +17,22 @@ The `@epilot360/icons` package is shipped as an external system module in the 36
|
|
|
17
17
|
You can import any icon as a React component by name:
|
|
18
18
|
|
|
19
19
|
```tsx
|
|
20
|
-
import { Edit as EditIcon } from '@epilot360/icons'
|
|
20
|
+
import { Edit as EditIcon, EpilotIcon } from '@epilot360/icons'
|
|
21
21
|
|
|
22
22
|
<EditIcon />
|
|
23
|
+
// or
|
|
24
|
+
<EpilotIcon name="edit" />
|
|
23
25
|
```
|
|
24
26
|
|
|
27
|
+
## Usage outside 360 portal
|
|
25
28
|
|
|
26
|
-
|
|
29
|
+
To avoid bundling the entire `@epilot360/icons` library, you can import the module directly:
|
|
27
30
|
|
|
28
31
|
```tsx
|
|
32
|
+
import EditIcon from '@epilot360/icons/react/Edit'
|
|
33
|
+
|
|
34
|
+
<EditIcon />
|
|
35
|
+
```
|
|
29
36
|
import { EpilotIcon } from '@epilot360/icons'
|
|
30
37
|
|
|
31
38
|
<EpilotIcon name="edit" />
|