@sybilion/uilib 1.5.0 → 1.6.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 (27) hide show
  1. package/README.md +16 -0
  2. package/assets/base.css +149 -0
  3. package/assets/globals.css +10 -564
  4. package/assets/tokens.css +288 -0
  5. package/dist/esm/src/components/ui/Breadcrumb/Breadcrumb.js +2 -2
  6. package/dist/esm/src/components/ui/Chat/ChatChrome/ChatChrome.js +1 -1
  7. package/dist/esm/src/components/ui/DropdownMenu/DropdownMenu.js +3 -3
  8. package/dist/esm/src/components/ui/DropdownMenu/DropdownMenu.styl.js +2 -2
  9. package/dist/esm/src/components/ui/Sheet/Sheet.js +1 -1
  10. package/dist/esm/src/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.js +1 -1
  11. package/dist/esm/src/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.styl.js +1 -1
  12. package/dist/esm/src/components/widgets/DriverMap/driverCategoryIcon.js +23 -23
  13. package/dist/esm/types/tests/cssEntries.test.d.ts +1 -0
  14. package/package.json +4 -3
  15. package/src/components/ui/Breadcrumb/Breadcrumb.tsx +1 -2
  16. package/src/components/ui/Chat/ChatChrome/ChatChrome.tsx +1 -1
  17. package/src/components/ui/Chat/ChatPrompt/ChatPrompt.styl.d.ts +11 -11
  18. package/src/components/ui/DropdownMenu/DropdownMenu.styl +3 -0
  19. package/src/components/ui/DropdownMenu/DropdownMenu.styl.d.ts +1 -0
  20. package/src/components/ui/DropdownMenu/DropdownMenu.tsx +3 -3
  21. package/src/components/ui/Select/Select.styl.d.ts +28 -28
  22. package/src/components/ui/Sheet/Sheet.tsx +1 -1
  23. package/src/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.styl +1 -0
  24. package/src/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.tsx +1 -1
  25. package/src/components/ui/SupplyChainMap/SupplyChainMap.styl.d.ts +19 -19
  26. package/src/components/widgets/DriverMap/driverCategoryIcon.tsx +23 -23
  27. package/src/docs/pages/SpacingPage.tsx +1 -1
@@ -90,8 +90,7 @@ function BreadcrumbEllipsis({ className, ...props }: BreadcrumbEllipsisProps) {
90
90
  className={cn(S.breadcrumbEllipsis, className)}
91
91
  {...props}
92
92
  >
93
- <DotsThree className="size-4" />
94
- <span className="sr-only">More</span>
93
+ <DotsThree size={16} />
95
94
  </span>
96
95
  );
97
96
  }
@@ -181,7 +181,7 @@ export function ChatChrome({
181
181
  aria-label="Close chat"
182
182
  onClick={onClose}
183
183
  >
184
- <X className="size-4" />
184
+ <X size={16} />
185
185
  </Button>
186
186
  ) : null}
187
187
  </div>
@@ -1,17 +1,17 @@
1
1
  // This file is automatically generated.
2
2
  // Please do not change this file!
3
3
  interface CssExports {
4
- 'attachButton': string;
5
- 'attachmentItem': string;
6
- 'attachments': string;
7
- 'composer': string;
8
- 'editorMount': string;
9
- 'editorWrap': string;
10
- 'fileInput': string;
11
- 'root': string;
12
- 'rootFocused': string;
13
- 'submitButton': string;
14
- 'submitColumn': string;
4
+ attachButton: string;
5
+ attachmentItem: string;
6
+ attachments: string;
7
+ composer: string;
8
+ editorMount: string;
9
+ editorWrap: string;
10
+ fileInput: string;
11
+ root: string;
12
+ rootFocused: string;
13
+ submitButton: string;
14
+ submitColumn: string;
15
15
  }
16
16
  export const cssExports: CssExports;
17
17
  export default cssExports;
@@ -224,6 +224,9 @@
224
224
  &[data-inset]
225
225
  padding-left var(--p-8)
226
226
 
227
+ .subTriggerIcon
228
+ margin-left auto
229
+
227
230
  .subContent
228
231
  z-index 1100
229
232
  min-width 8rem
@@ -20,6 +20,7 @@ interface CssExports {
20
20
  'slide-in-from-top': string;
21
21
  'subContent': string;
22
22
  'subTrigger': string;
23
+ 'subTriggerIcon': string;
23
24
  'zoom-in': string;
24
25
  'zoom-out': string;
25
26
  }
@@ -99,7 +99,7 @@ function DropdownMenuCheckboxItem({
99
99
  >
100
100
  <span className={S.indicator}>
101
101
  <DropdownMenuPrimitive.ItemIndicator>
102
- <Check className="size-4" />
102
+ <Check size={16} />
103
103
  </DropdownMenuPrimitive.ItemIndicator>
104
104
  </span>
105
105
  {children}
@@ -129,7 +129,7 @@ function DropdownMenuRadioItem({
129
129
  >
130
130
  <span className={S.indicator}>
131
131
  <DropdownMenuPrimitive.ItemIndicator>
132
- <Circle className="size-2 fill-current" />
132
+ <Circle size={8} weight="fill" />
133
133
  </DropdownMenuPrimitive.ItemIndicator>
134
134
  </span>
135
135
  {children}
@@ -196,7 +196,7 @@ function DropdownMenuSubTrigger({
196
196
  {...props}
197
197
  >
198
198
  {children}
199
- <CaretRight className="ml-auto size-4" />
199
+ <CaretRight size={16} className={S.subTriggerIcon} />
200
200
  </DropdownMenuPrimitive.SubTrigger>
201
201
  );
202
202
  }
@@ -1,34 +1,34 @@
1
1
  // This file is automatically generated.
2
2
  // Please do not change this file!
3
3
  interface CssExports {
4
- 'clear': string;
5
- 'darker': string;
6
- 'fadeIn': string;
7
- 'fadeOut': string;
8
- 'searchable': string;
9
- 'selectContent': string;
10
- 'selectContentPopper': string;
11
- 'selectEmpty': string;
12
- 'selectIcon': string;
13
- 'selectItem': string;
14
- 'selectItemIndicator': string;
15
- 'selectItemIndicatorContainer': string;
16
- 'selectItemText': string;
17
- 'selectLabel': string;
18
- 'selectScrollButton': string;
19
- 'selectScrollIcon': string;
20
- 'selectSeparator': string;
21
- 'selectTrigger': string;
22
- 'selectTriggerInput': string;
23
- 'selectViewport': string;
24
- 'selectViewportPopper': string;
25
- 'selected': string;
26
- 'slideInFromBottom': string;
27
- 'slideInFromLeft': string;
28
- 'slideInFromRight': string;
29
- 'slideInFromTop': string;
30
- 'zoomIn': string;
31
- 'zoomOut': string;
4
+ clear: string;
5
+ darker: string;
6
+ fadeIn: string;
7
+ fadeOut: string;
8
+ searchable: string;
9
+ selectContent: string;
10
+ selectContentPopper: string;
11
+ selectEmpty: string;
12
+ selectIcon: string;
13
+ selectItem: string;
14
+ selectItemIndicator: string;
15
+ selectItemIndicatorContainer: string;
16
+ selectItemText: string;
17
+ selectLabel: string;
18
+ selectScrollButton: string;
19
+ selectScrollIcon: string;
20
+ selectSeparator: string;
21
+ selectTrigger: string;
22
+ selectTriggerInput: string;
23
+ selectViewport: string;
24
+ selectViewportPopper: string;
25
+ selected: string;
26
+ slideInFromBottom: string;
27
+ slideInFromLeft: string;
28
+ slideInFromRight: string;
29
+ slideInFromTop: string;
30
+ zoomIn: string;
31
+ zoomOut: string;
32
32
  }
33
33
  export const cssExports: CssExports;
34
34
  export default cssExports;
@@ -69,7 +69,7 @@ function SheetContent({
69
69
  >
70
70
  {children}
71
71
  <SheetPrimitive.Close className={cn(S.close)}>
72
- <X className="size-4" />
72
+ <X size={16} />
73
73
  {/* <span className="sr-only">Close</span> */}
74
74
  </SheetPrimitive.Close>
75
75
  </SheetPrimitive.Content>
@@ -9,3 +9,4 @@
9
9
  svg
10
10
  width 20px
11
11
  height 20px
12
+ color var(--foreground)
@@ -27,7 +27,7 @@ export function SidebarTrigger({
27
27
  }}
28
28
  {...props}
29
29
  >
30
- <PanelLeft size={20} strokeWidth={1.5} className="text-foreground" />
30
+ <PanelLeft size={20} strokeWidth={1.5} />
31
31
  {/* <span className="sr-only">Toggle Sidebar</span> */}
32
32
  </Button>
33
33
  );
@@ -1,25 +1,25 @@
1
1
  // This file is automatically generated.
2
2
  // Please do not change this file!
3
3
  interface CssExports {
4
- 'action': string;
5
- 'baseCanvas': string;
6
- 'canvas': string;
7
- 'cluster': string;
8
- 'dimmed': string;
9
- 'disclosure': string;
10
- 'empty': string;
11
- 'fill': string;
12
- 'hint': string;
13
- 'inspection': string;
14
- 'kicker': string;
15
- 'label': string;
16
- 'marker': string;
17
- 'node': string;
18
- 'overlay': string;
19
- 'primary': string;
20
- 'root': string;
21
- 'selected': string;
22
- 'zoom': string;
4
+ action: string;
5
+ baseCanvas: string;
6
+ canvas: string;
7
+ cluster: string;
8
+ dimmed: string;
9
+ disclosure: string;
10
+ empty: string;
11
+ fill: string;
12
+ hint: string;
13
+ inspection: string;
14
+ kicker: string;
15
+ label: string;
16
+ marker: string;
17
+ node: string;
18
+ overlay: string;
19
+ primary: string;
20
+ root: string;
21
+ selected: string;
22
+ zoom: string;
23
23
  }
24
24
  export const cssExports: CssExports;
25
25
  export default cssExports;
@@ -25,7 +25,7 @@ import {
25
25
  // Icon mapping based on category
26
26
  export const getCategoryIcon = (category: string | undefined | null) => {
27
27
  if (!category) {
28
- return <ChartBarIcon className="h-full w-full" />;
28
+ return <ChartBarIcon size="100%" />;
29
29
  }
30
30
  const categoryLower = category.toLowerCase();
31
31
 
@@ -36,7 +36,7 @@ export const getCategoryIcon = (category: string | undefined | null) => {
36
36
  categoryLower.includes('residential') ||
37
37
  categoryLower.includes('property')
38
38
  )
39
- return <HouseIcon className="h-full w-full" />;
39
+ return <HouseIcon size="100%" />;
40
40
 
41
41
  // Construction & Infrastructure
42
42
  if (
@@ -47,7 +47,7 @@ export const getCategoryIcon = (category: string | undefined | null) => {
47
47
  categoryLower.includes('engineering') ||
48
48
  categoryLower.includes('contracting')
49
49
  )
50
- return <HardHatIcon className="h-full w-full" />;
50
+ return <HardHatIcon size="100%" />;
51
51
 
52
52
  // Climate & Environment
53
53
  if (
@@ -60,7 +60,7 @@ export const getCategoryIcon = (category: string | undefined | null) => {
60
60
  categoryLower.includes('sustainability') ||
61
61
  categoryLower.includes('green')
62
62
  )
63
- return <ThermometerIcon className="h-full w-full" />;
63
+ return <ThermometerIcon size="100%" />;
64
64
 
65
65
  // Supply Chain & Trade
66
66
  if (
@@ -69,7 +69,7 @@ export const getCategoryIcon = (category: string | undefined | null) => {
69
69
  categoryLower.includes('logistics') ||
70
70
  categoryLower.includes('transport')
71
71
  )
72
- return <TruckIcon className="h-full w-full" />;
72
+ return <TruckIcon size="100%" />;
73
73
 
74
74
  // Energy & Power
75
75
  if (
@@ -77,7 +77,7 @@ export const getCategoryIcon = (category: string | undefined | null) => {
77
77
  categoryLower.includes('power') ||
78
78
  categoryLower.includes('electricity')
79
79
  )
80
- return <LightningIcon className="h-full w-full" />;
80
+ return <LightningIcon size="100%" />;
81
81
 
82
82
  // Labor Market & Employment
83
83
  if (
@@ -91,7 +91,7 @@ export const getCategoryIcon = (category: string | undefined | null) => {
91
91
  categoryLower.includes('job market') ||
92
92
  categoryLower.includes('workforce')
93
93
  )
94
- return <IdentificationCardIcon className="h-full w-full" />;
94
+ return <IdentificationCardIcon size="100%" />;
95
95
 
96
96
  // Workforce & Human Resources
97
97
  if (
@@ -103,7 +103,7 @@ export const getCategoryIcon = (category: string | undefined | null) => {
103
103
  categoryLower.includes('talent') ||
104
104
  categoryLower.includes('recruitment')
105
105
  )
106
- return <UsersIcon className="h-full w-full" />;
106
+ return <UsersIcon size="100%" />;
107
107
 
108
108
  // Manufacturing & Production
109
109
  if (
@@ -112,7 +112,7 @@ export const getCategoryIcon = (category: string | undefined | null) => {
112
112
  categoryLower.includes('manufacturing') ||
113
113
  categoryLower.includes('industry')
114
114
  )
115
- return <FactoryIcon className="h-full w-full" />;
115
+ return <FactoryIcon size="100%" />;
116
116
 
117
117
  // Finance & Economics
118
118
  if (
@@ -122,7 +122,7 @@ export const getCategoryIcon = (category: string | undefined | null) => {
122
122
  categoryLower.includes('economy') ||
123
123
  categoryLower.includes('gdp')
124
124
  )
125
- return <CurrencyDollarIcon className="h-full w-full" />;
125
+ return <CurrencyDollarIcon size="100%" />;
126
126
 
127
127
  // Data & Analytics
128
128
  if (
@@ -130,7 +130,7 @@ export const getCategoryIcon = (category: string | undefined | null) => {
130
130
  categoryLower.includes('analytics') ||
131
131
  categoryLower.includes('statistics')
132
132
  )
133
- return <DatabaseIcon className="h-full w-full" />;
133
+ return <DatabaseIcon size="100%" />;
134
134
 
135
135
  // Global & International
136
136
  if (
@@ -138,7 +138,7 @@ export const getCategoryIcon = (category: string | undefined | null) => {
138
138
  categoryLower.includes('international') ||
139
139
  categoryLower.includes('world')
140
140
  )
141
- return <GlobeIcon className="h-full w-full" />;
141
+ return <GlobeIcon size="100%" />;
142
142
 
143
143
  // Chemicals & Pharmaceuticals
144
144
  if (
@@ -148,7 +148,7 @@ export const getCategoryIcon = (category: string | undefined | null) => {
148
148
  categoryLower.includes('drug') ||
149
149
  categoryLower.includes('compound')
150
150
  )
151
- return <FlaskIcon className="h-full w-full" />;
151
+ return <FlaskIcon size="100%" />;
152
152
 
153
153
  // Food & Agriculture
154
154
  if (
@@ -161,7 +161,7 @@ export const getCategoryIcon = (category: string | undefined | null) => {
161
161
  categoryLower.includes('dairy') ||
162
162
  categoryLower.includes('meat')
163
163
  )
164
- return <ForkKnifeIcon className="h-full w-full" />;
164
+ return <ForkKnifeIcon size="100%" />;
165
165
 
166
166
  // Income & Wealth
167
167
  if (
@@ -172,7 +172,7 @@ export const getCategoryIcon = (category: string | undefined | null) => {
172
172
  categoryLower.includes('earnings') ||
173
173
  categoryLower.includes('revenue')
174
174
  )
175
- return <WalletIcon className="h-full w-full" />;
175
+ return <WalletIcon size="100%" />;
176
176
 
177
177
  // Consumption & Retail
178
178
  if (
@@ -183,7 +183,7 @@ export const getCategoryIcon = (category: string | undefined | null) => {
183
183
  categoryLower.includes('purchases') ||
184
184
  categoryLower.includes('demand')
185
185
  )
186
- return <ShoppingCartIcon className="h-full w-full" />;
186
+ return <ShoppingCartIcon size="100%" />;
187
187
 
188
188
  // Living Conditions & Quality of Life
189
189
  if (
@@ -195,7 +195,7 @@ export const getCategoryIcon = (category: string | undefined | null) => {
195
195
  categoryLower.includes('welfare') ||
196
196
  categoryLower.includes('happiness')
197
197
  )
198
- return <HeartIcon className="h-full w-full" />;
198
+ return <HeartIcon size="100%" />;
199
199
 
200
200
  // Minerals & Mining
201
201
  if (
@@ -210,7 +210,7 @@ export const getCategoryIcon = (category: string | undefined | null) => {
210
210
  categoryLower.includes('aluminum') ||
211
211
  categoryLower.includes('lithium')
212
212
  )
213
- return <TreeIcon className="h-full w-full" />;
213
+ return <TreeIcon size="100%" />;
214
214
 
215
215
  // Textiles & Fibers
216
216
  if (
@@ -225,7 +225,7 @@ export const getCategoryIcon = (category: string | undefined | null) => {
225
225
  categoryLower.includes('garment') ||
226
226
  categoryLower.includes('apparel')
227
227
  )
228
- return <TShirtIcon className="h-full w-full" />;
228
+ return <TShirtIcon size="100%" />;
229
229
 
230
230
  // Crafts & Artisan
231
231
  if (
@@ -239,7 +239,7 @@ export const getCategoryIcon = (category: string | undefined | null) => {
239
239
  categoryLower.includes('woodwork') ||
240
240
  categoryLower.includes('jewelry')
241
241
  )
242
- return <WrenchIcon className="h-full w-full" />;
242
+ return <WrenchIcon size="100%" />;
243
243
 
244
244
  // Population & Demographics
245
245
  if (
@@ -254,7 +254,7 @@ export const getCategoryIcon = (category: string | undefined | null) => {
254
254
  categoryLower.includes('gender') ||
255
255
  categoryLower.includes('ethnicity')
256
256
  )
257
- return <UsersIcon className="h-full w-full" />;
257
+ return <UsersIcon size="100%" />;
258
258
 
259
259
  // Market Indices & Trading
260
260
  if (
@@ -270,8 +270,8 @@ export const getCategoryIcon = (category: string | undefined | null) => {
270
270
  categoryLower.includes('ftse') ||
271
271
  categoryLower.includes('candlestick')
272
272
  )
273
- return <ChartLineIcon className="h-full w-full" />;
273
+ return <ChartLineIcon size="100%" />;
274
274
 
275
275
  // Default fallback
276
- return <ChartBarIcon className="h-full w-full" />;
276
+ return <ChartBarIcon size="100%" />;
277
277
  };
@@ -6,7 +6,7 @@ import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
6
6
  import { DocsHeaderActions } from '../docsHeaderActions';
7
7
  import S from './SpacingPage.styl';
8
8
 
9
- /** Steps defined in globals.css; each step is 4px. */
9
+ /** Steps defined in assets/tokens.css; each step is 4px. */
10
10
  const STEPS = [
11
11
  1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 16, 17, 18, 19, 20, 23, 24,
12
12
  ];