@uipath/apollo-core 5.6.2 → 5.7.0

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.
Files changed (2) hide show
  1. package/README.md +43 -15
  2. 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
@@ -48,16 +50,30 @@ const fontFamily = ApolloCore.FontFamilyBase;
48
50
 
49
51
  ### Icons
50
52
 
51
- Icons are available as raw SVG files:
53
+ Icons are available as raw SVG files (flattened in distribution):
52
54
 
53
55
  ```typescript
54
- import iconSvg from '@uipath/apollo-core/icons/svg/action/add.svg';
56
+ // Import SVG files
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" />
55
68
  ```
56
69
 
57
- For React components, use `@uipath/apollo-react`:
70
+ **For React icon components**, use `@uipath/apollo-react`:
58
71
 
59
72
  ```typescript
60
- import { ActionAdd } from '@uipath/apollo-react/icons';
73
+ import { Close, AddComment } from '@uipath/apollo-react/icons';
74
+
75
+ <Close />
76
+ <AddComment />
61
77
  ```
62
78
 
63
79
  ## Icons
@@ -86,22 +102,31 @@ All icons are exported from the official Apollo Icons Figma file:
86
102
 
87
103
  **[Apollo Icons - Figma Design](https://www.figma.com/design/ejTd2JOd1BOEXTIp2TCtpr/Apollo--Icons-?node-id=2-1045&m=dev)**
88
104
 
89
- ### Current Structure (TEMPORARY)
105
+ ### Icon Structure
90
106
 
91
- The icon library contains **1,317 icons** organized into categories:
107
+ The icon library contains **1,317 icons** organized into categories in the source:
92
108
 
109
+ **Source Structure** (`src/icons/svg/`):
93
110
  - `action/` - Action icons (add, delete, edit, etc.)
94
111
  - `editor/` - Editor-specific icons
95
112
  - `indicator-and-alert/` - Status and notification icons
96
113
  - `logic/` - Workflow and logic icons
97
114
  - `navigation/` - Navigation controls
98
115
  - `object/` - Object representations
116
+ - `product-logo/` - Product logo icons
99
117
  - `social/` - Social media icons
100
118
  - `studio-icons/` - UiPath Studio-specific icons
119
+ - `studio-activities-icon-sets/` - Activity icons for automation
101
120
  - `toggle/` - Toggle and selection controls
102
121
  - `third-party/` - Third-party service logos
122
+ - `ui-agents-icons/` - UI agent icons
103
123
  - `ui-bpmn-canvas/` - BPMN diagram elements
104
- - `studio-activities-icon-sets/` - Activity icons for automation
124
+
125
+ **Distribution Structure** (`dist/static/svg/`):
126
+ - All 1,317 icons are flattened into a single directory with unique names
127
+ - Icons more than one folder deep are prefixed with their immediate parent folder (e.g., `navigation/chevron/down.svg` → `chevron-down.svg`)
128
+ - Icons only one folder deep keep their original name (e.g., `action/close.svg` → `close.svg`)
129
+ - Accessible via `@uipath/apollo-core/icons/svg/{icon-name}.svg`
105
130
 
106
131
  ### Naming Convention (TEMPORARY)
107
132
 
@@ -207,8 +232,8 @@ import * as Tokens from '@uipath/apollo-core/tokens';
207
232
  // Icon types and names
208
233
  import { IconName, iconNames } from '@uipath/apollo-core/icons';
209
234
 
210
- // Raw SVG files
211
- import iconSvg from '@uipath/apollo-core/icons/svg/action/add.svg';
235
+ // Raw SVG files (from flattened distribution)
236
+ import iconSvg from '@uipath/apollo-core/icons/svg/add.svg';
212
237
 
213
238
  // CSS variables
214
239
  import '@uipath/apollo-core/tokens/css/theme-variables.css';
@@ -228,17 +253,20 @@ apollo-core/
228
253
  ├── src/
229
254
  │ ├── tokens/ # Design tokens (colors, spacing, etc.)
230
255
  │ ├── icons/
231
- │ │ ├── svg/ # Raw SVG icon files
256
+ │ │ ├── svg/ # Raw SVG icon files (organized by category)
232
257
  │ │ ├── index.ts # Icon exports
233
258
  │ │ └── types.ts # Icon type definitions
234
259
  │ └── fonts/ # Font assets
235
260
  ├── scripts/
236
- │ ├── build-tokens.js # Token generation
237
- │ ├── generate-icons.ts # Icon export generation
238
- └── rename-icon-structure.ts # Icon naming normalization
261
+ │ ├── build-tokens.js # Token generation
262
+ │ ├── generate-icons.ts # Icon export generation
263
+ ├── process-icons.ts # Icon processing and naming
264
+ │ └── update-colors.ts # Icon color updates
239
265
  └── dist/ # Built output
240
- ├── tokens/ # Generated token files
241
- ├── icons/ # Icon types and SVG files
266
+ ├── tokens/ # Generated token files (CSS, JSS, LESS, SCSS)
267
+ ├── icons/ # Icon TypeScript exports and types
268
+ ├── static/
269
+ │ └── svg/ # Flattened SVG files (1,317 icons)
242
270
  └── fonts/ # Font files
243
271
  ```
244
272
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/apollo-core",
3
- "version": "5.6.2",
3
+ "version": "5.7.0",
4
4
  "description": "Apollo Design System - Core design tokens, icons, and fonts",
5
5
  "repository": {
6
6
  "type": "git",