@uipath/apollo-core 5.6.2-pr193.d46da1a → 5.6.2-pr202.089892a
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 +18 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,6 +20,8 @@ pnpm add @uipath/apollo-core
|
|
|
20
20
|
yarn add @uipath/apollo-core
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
+
**Note:** This package is published to both npm and GitHub Package Registry. External users will automatically pull from npm. Internal UiPath users with `.npmrc` configured will automatically pull from GitHub Package Registry.
|
|
24
|
+
|
|
23
25
|
## Usage
|
|
24
26
|
|
|
25
27
|
### Design Tokens
|
|
@@ -51,15 +53,27 @@ const fontFamily = ApolloCore.FontFamilyBase;
|
|
|
51
53
|
Icons are available as raw SVG files (flattened in distribution):
|
|
52
54
|
|
|
53
55
|
```typescript
|
|
54
|
-
// Import
|
|
55
|
-
import iconSvg from '@uipath/apollo-core/icons/svg/add.svg';
|
|
56
|
+
// Import SVG files
|
|
56
57
|
import closeSvg from '@uipath/apollo-core/icons/svg/close.svg';
|
|
58
|
+
import addCommentSvg from '@uipath/apollo-core/icons/svg/add-comment.svg';
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**Usage in HTML/React:**
|
|
62
|
+
```jsx
|
|
63
|
+
// Use as img source
|
|
64
|
+
<img src={closeSvg} alt="Close" width="24" height="24" />
|
|
65
|
+
|
|
66
|
+
// Or in vanilla HTML
|
|
67
|
+
<img src="/path/to/node_modules/@uipath/apollo-core/icons/svg/close.svg" alt="Close" />
|
|
57
68
|
```
|
|
58
69
|
|
|
59
|
-
For React components
|
|
70
|
+
**For React icon components**, use `@uipath/apollo-react`:
|
|
60
71
|
|
|
61
72
|
```typescript
|
|
62
|
-
import {
|
|
73
|
+
import { Close, AddComment } from '@uipath/apollo-react/icons';
|
|
74
|
+
|
|
75
|
+
<Close />
|
|
76
|
+
<AddComment />
|
|
63
77
|
```
|
|
64
78
|
|
|
65
79
|
## Icons
|