@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.
- package/README.md +16 -0
- package/assets/base.css +149 -0
- package/assets/globals.css +10 -564
- package/assets/tokens.css +288 -0
- package/dist/esm/src/components/ui/Breadcrumb/Breadcrumb.js +2 -2
- package/dist/esm/src/components/ui/Chat/ChatChrome/ChatChrome.js +1 -1
- package/dist/esm/src/components/ui/DropdownMenu/DropdownMenu.js +3 -3
- package/dist/esm/src/components/ui/DropdownMenu/DropdownMenu.styl.js +2 -2
- package/dist/esm/src/components/ui/Sheet/Sheet.js +1 -1
- package/dist/esm/src/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.js +1 -1
- package/dist/esm/src/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.styl.js +1 -1
- package/dist/esm/src/components/widgets/DriverMap/driverCategoryIcon.js +23 -23
- package/dist/esm/types/tests/cssEntries.test.d.ts +1 -0
- package/package.json +4 -3
- package/src/components/ui/Breadcrumb/Breadcrumb.tsx +1 -2
- package/src/components/ui/Chat/ChatChrome/ChatChrome.tsx +1 -1
- package/src/components/ui/Chat/ChatPrompt/ChatPrompt.styl.d.ts +11 -11
- package/src/components/ui/DropdownMenu/DropdownMenu.styl +3 -0
- package/src/components/ui/DropdownMenu/DropdownMenu.styl.d.ts +1 -0
- package/src/components/ui/DropdownMenu/DropdownMenu.tsx +3 -3
- package/src/components/ui/Select/Select.styl.d.ts +28 -28
- package/src/components/ui/Sheet/Sheet.tsx +1 -1
- package/src/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.styl +1 -0
- package/src/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.tsx +1 -1
- package/src/components/ui/SupplyChainMap/SupplyChainMap.styl.d.ts +19 -19
- package/src/components/widgets/DriverMap/driverCategoryIcon.tsx +23 -23
- 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
|
|
94
|
-
<span className="sr-only">More</span>
|
|
93
|
+
<DotsThree size={16} />
|
|
95
94
|
</span>
|
|
96
95
|
);
|
|
97
96
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// This file is automatically generated.
|
|
2
2
|
// Please do not change this file!
|
|
3
3
|
interface CssExports {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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;
|
|
@@ -99,7 +99,7 @@ function DropdownMenuCheckboxItem({
|
|
|
99
99
|
>
|
|
100
100
|
<span className={S.indicator}>
|
|
101
101
|
<DropdownMenuPrimitive.ItemIndicator>
|
|
102
|
-
<Check
|
|
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
|
|
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=
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
// This file is automatically generated.
|
|
2
2
|
// Please do not change this file!
|
|
3
3
|
interface CssExports {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
273
|
+
return <ChartLineIcon size="100%" />;
|
|
274
274
|
|
|
275
275
|
// Default fallback
|
|
276
|
-
return <ChartBarIcon
|
|
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
|
|
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
|
];
|