@sybilion/uilib 1.4.43 → 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 -532
- package/assets/tokens.css +288 -0
- package/dist/esm/src/components/ui/AnalysesSelector/AnalysesSelector.styl.js +1 -1
- package/dist/esm/src/components/ui/AppHeader/AppHeader.styl.js +1 -1
- package/dist/esm/src/components/ui/Breadcrumb/Breadcrumb.js +2 -2
- package/dist/esm/src/components/ui/Breadcrumb/Breadcrumb.styl.js +1 -1
- package/dist/esm/src/components/ui/Button/Button.styl.js +1 -1
- package/dist/esm/src/components/ui/Chat/ChatChrome/ChatChrome.js +1 -1
- package/dist/esm/src/components/ui/Chat/ChatPrompt/ChatPrompt.js +15 -2
- package/dist/esm/src/components/ui/Chat/ChatPrompt/ChatPrompt.styl.js +2 -2
- package/dist/esm/src/components/ui/Checkbox/Checkbox.styl.js +1 -1
- package/dist/esm/src/components/ui/Chip/Chip.styl.js +1 -1
- package/dist/esm/src/components/ui/DatePicker/DatePicker.styl.js +1 -1
- package/dist/esm/src/components/ui/Dialog/Dialog.styl.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/FileChip/FileChip.styl.js +1 -1
- package/dist/esm/src/components/ui/Input/Input.styl.js +1 -1
- package/dist/esm/src/components/ui/LegacyPlatformLink/LegacyPlatformLink.styl.js +1 -1
- package/dist/esm/src/components/ui/Notifications/Notifications.styl.js +1 -1
- package/dist/esm/src/components/ui/RadioGroup/RadioGroup.styl.js +1 -1
- package/dist/esm/src/components/ui/Renamer/Renamer.styl.js +2 -2
- package/dist/esm/src/components/ui/Select/Select.styl.js +1 -1
- package/dist/esm/src/components/ui/Sheet/Sheet.js +1 -1
- package/dist/esm/src/components/ui/Sheet/Sheet.styl.js +1 -1
- package/dist/esm/src/components/ui/Sidebar/SidebarGroupAction/SidebarGroupAction.styl.js +1 -1
- package/dist/esm/src/components/ui/Sidebar/SidebarMenuAction/SidebarMenuAction.styl.js +1 -1
- package/dist/esm/src/components/ui/Sidebar/SidebarMenuButton/SidebarMenuButton.styl.js +1 -1
- package/dist/esm/src/components/ui/Sidebar/SidebarMenuSubButton/SidebarMenuSubButton.styl.js +1 -1
- package/dist/esm/src/components/ui/Sidebar/SidebarRail/SidebarRail.styl.js +1 -1
- package/dist/esm/src/components/ui/Sidebar/SidebarResizeHandle/SidebarResizeHandle.styl.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/ui/Slider/Slider.styl.js +1 -1
- package/dist/esm/src/components/ui/SupplyChainMap/SupplyChainMap.styl.js +1 -1
- package/dist/esm/src/components/ui/Switch/Switch.styl.js +1 -1
- package/dist/esm/src/components/ui/Tabs/Tabs.styl.js +1 -1
- package/dist/esm/src/components/ui/Toggle/Toggle.styl.js +1 -1
- package/dist/esm/src/components/ui/ToggleGroup/ToggleGroup.styl.js +1 -1
- package/dist/esm/src/components/ui/WorkspaceAppSwitcher/WorkspaceAppSwitcher.styl.js +1 -1
- package/dist/esm/src/components/widgets/DriverMap/DriverIcon/DriverIcon.styl.js +1 -1
- package/dist/esm/src/components/widgets/DriverMap/driverCategoryIcon.js +23 -23
- package/dist/esm/src/components/widgets/SignInPage/SignInPage.js +25 -0
- package/dist/esm/src/components/widgets/SybilionAppHeader/SybilionAppHeader.js +18 -0
- package/dist/esm/src/components/widgets/SybilionAppHeader/SybilionAppHeader.styl.js +7 -0
- package/dist/esm/src/components/widgets/SybilionSignInPanel/SybilionSignInPanel.js +11 -0
- package/dist/esm/src/components/widgets/SybilionSignInPanel/SybilionSignInPanel.styl.js +7 -0
- package/dist/esm/src/signin.js +3 -0
- package/dist/esm/types/tests/cssEntries.test.d.ts +1 -0
- package/package.json +4 -3
- package/src/components/ui/AnalysesSelector/AnalysesSelector.styl +3 -0
- package/src/components/ui/AppHeader/AppHeader.styl +3 -0
- package/src/components/ui/Breadcrumb/Breadcrumb.styl +1 -0
- package/src/components/ui/Breadcrumb/Breadcrumb.tsx +1 -2
- package/src/components/ui/Button/Button.styl +3 -10
- package/src/components/ui/Chat/ChatChrome/ChatChrome.tsx +1 -1
- package/src/components/ui/Chat/ChatPrompt/ChatPrompt.styl +8 -3
- package/src/components/ui/Chat/ChatPrompt/ChatPrompt.styl.d.ts +11 -10
- package/src/components/ui/Chat/ChatPrompt/ChatPrompt.tsx +28 -1
- package/src/components/ui/Checkbox/Checkbox.styl +3 -4
- package/src/components/ui/Chip/Chip.styl +3 -0
- package/src/components/ui/DatePicker/DatePicker.styl +5 -3
- package/src/components/ui/Dialog/Dialog.styl +1 -2
- package/src/components/ui/DropdownMenu/DropdownMenu.styl +7 -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/FileChip/FileChip.styl +3 -3
- package/src/components/ui/Input/Input.styl +13 -6
- package/src/components/ui/LegacyPlatformLink/LegacyPlatformLink.styl +1 -0
- package/src/components/ui/Notifications/Notifications.styl +7 -0
- package/src/components/ui/RadioGroup/RadioGroup.styl +3 -4
- package/src/components/ui/Renamer/Renamer.styl +5 -1
- package/src/components/ui/Select/Select.styl +5 -7
- package/src/components/ui/Sheet/Sheet.styl +1 -6
- package/src/components/ui/Sheet/Sheet.tsx +1 -1
- package/src/components/ui/Sidebar/SidebarGroupAction/SidebarGroupAction.styl +1 -2
- package/src/components/ui/Sidebar/SidebarMenuAction/SidebarMenuAction.styl +1 -2
- package/src/components/ui/Sidebar/SidebarMenuButton/SidebarMenuButton.styl +1 -2
- package/src/components/ui/Sidebar/SidebarMenuSubButton/SidebarMenuSubButton.styl +1 -2
- package/src/components/ui/Sidebar/SidebarRail/SidebarRail.styl +1 -0
- package/src/components/ui/Sidebar/SidebarResizeHandle/SidebarResizeHandle.styl +1 -0
- package/src/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.styl +1 -0
- package/src/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.tsx +1 -1
- package/src/components/ui/Slider/Slider.styl +3 -4
- package/src/components/ui/SupplyChainMap/SupplyChainMap.styl +1 -0
- package/src/components/ui/Switch/Switch.styl +3 -4
- package/src/components/ui/Tabs/Tabs.styl +3 -6
- package/src/components/ui/Toggle/Toggle.styl +3 -3
- package/src/components/ui/ToggleGroup/ToggleGroup.styl +3 -0
- package/src/components/ui/WorkspaceAppSwitcher/WorkspaceAppSwitcher.styl +1 -0
- package/src/components/widgets/DriverMap/DriverIcon/DriverIcon.styl +1 -3
- package/src/components/widgets/DriverMap/driverCategoryIcon.tsx +23 -23
- package/src/docs/pages/SpacingPage.tsx +1 -1
- package/src/lib/theme.styl +17 -0
|
@@ -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
|
}
|
|
@@ -67,9 +67,7 @@
|
|
|
67
67
|
&:hover
|
|
68
68
|
background-color var(--sb-gray-50)
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
outline 2px solid var(--ring)
|
|
72
|
-
outline-offset 2px
|
|
70
|
+
focus-outline()
|
|
73
71
|
|
|
74
72
|
:global(.dark) &
|
|
75
73
|
&:hover
|
|
@@ -103,6 +101,8 @@
|
|
|
103
101
|
background-color var(--muted)
|
|
104
102
|
color var(--foreground)
|
|
105
103
|
|
|
104
|
+
focus-outline()
|
|
105
|
+
|
|
106
106
|
&:disabled
|
|
107
107
|
opacity 0.5
|
|
108
108
|
cursor not-allowed
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import 'lib/theme.styl'
|
|
2
|
+
|
|
1
3
|
.root
|
|
2
4
|
display flex
|
|
3
5
|
width 100%
|
|
@@ -7,6 +9,7 @@
|
|
|
7
9
|
overflow visible
|
|
8
10
|
transition color, box-shadow, outline-color
|
|
9
11
|
transition-duration 150ms
|
|
12
|
+
focus-outline()
|
|
10
13
|
|
|
11
14
|
&.variant-default,
|
|
12
15
|
&.variant-clean
|
|
@@ -19,14 +22,14 @@
|
|
|
19
22
|
border-radius var(--radius-input)
|
|
20
23
|
box-shadow 0 0 0 1px var(--border)
|
|
21
24
|
|
|
22
|
-
&:focus,
|
|
23
|
-
&:focus-visible
|
|
24
|
-
box-shadow inset 0 0 0 2px var(--brand-color-400)
|
|
25
|
-
|
|
26
25
|
&[aria-invalid="true"]
|
|
27
|
-
|
|
26
|
+
--focus-outline-color var(--destructive)
|
|
28
27
|
box-shadow inset 0 0 0 2px var(--destructive)
|
|
29
28
|
|
|
29
|
+
&:focus,
|
|
30
|
+
&:focus-visible
|
|
31
|
+
box-shadow none
|
|
32
|
+
|
|
30
33
|
&.size-sm
|
|
31
34
|
height 32px
|
|
32
35
|
font-size var(--text-xs)
|
|
@@ -65,5 +68,9 @@
|
|
|
65
68
|
:global(.dark) &
|
|
66
69
|
background-color var(--input) / 0.3
|
|
67
70
|
|
|
68
|
-
|
|
71
|
+
&.variant-default[aria-invalid="true"]
|
|
69
72
|
box-shadow inset 0 0 0 2px var(--destructive)
|
|
73
|
+
|
|
74
|
+
&.variant-default:focus,
|
|
75
|
+
&.variant-default:focus-visible
|
|
76
|
+
box-shadow none
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import 'lib/theme.styl'
|
|
2
|
+
|
|
1
3
|
.root
|
|
2
4
|
position fixed
|
|
3
5
|
top var(--header-height)
|
|
@@ -103,6 +105,11 @@
|
|
|
103
105
|
opacity 0
|
|
104
106
|
transform scale(0.85)
|
|
105
107
|
transition opacity 0.15s ease-out, transform 0.15s ease-out
|
|
108
|
+
focus-outline()
|
|
109
|
+
|
|
110
|
+
.closeButton:focus-visible
|
|
111
|
+
opacity 0.85
|
|
112
|
+
transform scale(1)
|
|
106
113
|
|
|
107
114
|
.item:hover .closeButton
|
|
108
115
|
opacity 0.85
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
flex-wrap wrap
|
|
9
9
|
gap var(--p-4)
|
|
10
10
|
|
|
11
|
+
@import 'lib/theme.styl'
|
|
12
|
+
|
|
11
13
|
.radioRoot
|
|
12
14
|
cursor pointer
|
|
13
15
|
display flex
|
|
@@ -21,6 +23,7 @@
|
|
|
21
23
|
box-shadow 0 1px 2px 0 rgba(0, 0, 0, 0.05)
|
|
22
24
|
outline none
|
|
23
25
|
transition box-shadow 0.15s ease-in-out
|
|
26
|
+
focus-outline()
|
|
24
27
|
|
|
25
28
|
.dark &
|
|
26
29
|
background-color var(--input-30)
|
|
@@ -31,10 +34,6 @@
|
|
|
31
34
|
.dark &
|
|
32
35
|
border-color var(--primary)
|
|
33
36
|
|
|
34
|
-
&:focus-visible
|
|
35
|
-
border-color var(--ring)
|
|
36
|
-
box-shadow 0 0 0 3px var(--ring-50)
|
|
37
|
-
|
|
38
37
|
&[aria-invalid=true]
|
|
39
38
|
box-shadow 0 0 0 3px var(--destructive-200)
|
|
40
39
|
border-color var(--destructive)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
.root
|
|
2
2
|
display inline-block
|
|
3
3
|
max-width 100%
|
|
4
4
|
vertical-align top
|
|
@@ -31,6 +31,10 @@
|
|
|
31
31
|
border-radius var(--p-4)
|
|
32
32
|
box-shadow 0 0 0 1px var(--border)
|
|
33
33
|
|
|
34
|
+
&:focus,
|
|
35
|
+
&:focus-visible
|
|
36
|
+
box-shadow none
|
|
37
|
+
|
|
34
38
|
.empty.size-lg.root .input
|
|
35
39
|
background-color var(--accent) / 0.1
|
|
36
40
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import 'lib/theme.styl'
|
|
2
|
+
|
|
1
3
|
.selectTrigger
|
|
2
4
|
position relative
|
|
3
5
|
display flex
|
|
@@ -23,6 +25,7 @@
|
|
|
23
25
|
outline none
|
|
24
26
|
cursor pointer
|
|
25
27
|
transition all 0.2s ease-in-out
|
|
28
|
+
focus-outline-within()
|
|
26
29
|
|
|
27
30
|
// fade complex (non-text) content:
|
|
28
31
|
&::before
|
|
@@ -78,9 +81,6 @@
|
|
|
78
81
|
&[data-placeholder]
|
|
79
82
|
color var(--muted-foreground)
|
|
80
83
|
|
|
81
|
-
&:focus-visible
|
|
82
|
-
border-color var(--ring)
|
|
83
|
-
|
|
84
84
|
&[aria-invalid="true"]
|
|
85
85
|
border-color var(--destructive)
|
|
86
86
|
|
|
@@ -143,10 +143,7 @@
|
|
|
143
143
|
border none
|
|
144
144
|
background-color transparent
|
|
145
145
|
box-shadow none
|
|
146
|
-
|
|
147
|
-
&:focus-visible
|
|
148
|
-
border none
|
|
149
|
-
box-shadow none
|
|
146
|
+
focus-outline()
|
|
150
147
|
|
|
151
148
|
@media (prefers-color-scheme: dark)
|
|
152
149
|
background-color transparent
|
|
@@ -235,6 +232,7 @@
|
|
|
235
232
|
font-size var(--text-sm)
|
|
236
233
|
outline none
|
|
237
234
|
user-select none
|
|
235
|
+
focus-outline()
|
|
238
236
|
|
|
239
237
|
&.selected
|
|
240
238
|
font-weight 600
|
|
@@ -115,12 +115,7 @@ $animationDuration = 200ms
|
|
|
115
115
|
border-radius var(--radius-sm)
|
|
116
116
|
outline none
|
|
117
117
|
cursor pointer
|
|
118
|
-
|
|
119
|
-
&:focus
|
|
120
|
-
ring 2px
|
|
121
|
-
ring-color var(--ring)
|
|
122
|
-
ring-offset 2px
|
|
123
|
-
ring-offset-color var(--background)
|
|
118
|
+
focus-outline()
|
|
124
119
|
|
|
125
120
|
&:disabled
|
|
126
121
|
pointer-events none
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import 'lib/theme.styl'
|
|
2
|
+
|
|
1
3
|
.sliderRoot
|
|
2
4
|
position relative
|
|
3
5
|
display flex
|
|
@@ -53,15 +55,12 @@
|
|
|
53
55
|
touch-action none
|
|
54
56
|
user-select none
|
|
55
57
|
pointer-events auto
|
|
58
|
+
focus-outline()
|
|
56
59
|
|
|
57
60
|
&:hover
|
|
58
61
|
transform translate(-50%, -50%) scale(1.1)
|
|
59
62
|
box-shadow 0px 4px 8px rgba(0, 0, 0, 0.15)
|
|
60
63
|
|
|
61
|
-
&:focus-visible
|
|
62
|
-
outline 2px solid var(--primary)
|
|
63
|
-
outline-offset 2px
|
|
64
|
-
|
|
65
64
|
&:active
|
|
66
65
|
cursor grabbing
|
|
67
66
|
transform translate(-50%, -50%) scale(1.15)
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import 'lib/theme.styl'
|
|
2
|
+
|
|
1
3
|
.switchRoot
|
|
2
4
|
position relative
|
|
3
5
|
display inline-flex
|
|
@@ -9,14 +11,11 @@
|
|
|
9
11
|
background-color var(--input)
|
|
10
12
|
transition background-color 0.15s ease-in-out
|
|
11
13
|
outline none
|
|
14
|
+
focus-outline()
|
|
12
15
|
|
|
13
16
|
&[data-state=checked]
|
|
14
17
|
background-color var(--primary)
|
|
15
18
|
|
|
16
|
-
&:focus-visible
|
|
17
|
-
outline 2px solid var(--primary)
|
|
18
|
-
outline-offset 2px
|
|
19
|
-
|
|
20
19
|
&:disabled
|
|
21
20
|
cursor not-allowed
|
|
22
21
|
opacity 0.5
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import 'lib/theme.styl'
|
|
2
|
+
|
|
1
3
|
.root
|
|
2
4
|
display flex
|
|
3
5
|
flex-direction column
|
|
@@ -48,12 +50,7 @@
|
|
|
48
50
|
color var(--muted-foreground)
|
|
49
51
|
transition color 0.2s, box-shadow 0.2s
|
|
50
52
|
cursor pointer
|
|
51
|
-
|
|
52
|
-
&:focus-visible
|
|
53
|
-
outline 1px solid var(--ring)
|
|
54
|
-
outline-offset 0
|
|
55
|
-
border-color var(--ring)
|
|
56
|
-
box-shadow 0 0 0 3px var(--ring-50)
|
|
53
|
+
focus-outline()
|
|
57
54
|
|
|
58
55
|
&:disabled
|
|
59
56
|
pointer-events none
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import 'lib/theme.styl'
|
|
2
|
+
|
|
1
3
|
.toggle
|
|
2
4
|
display inline-flex
|
|
3
5
|
align-items center
|
|
@@ -33,9 +35,7 @@
|
|
|
33
35
|
width 1rem
|
|
34
36
|
height 1rem
|
|
35
37
|
|
|
36
|
-
|
|
37
|
-
outline none
|
|
38
|
-
box-shadow 0 0 0 2px var(--ring)
|
|
38
|
+
focus-outline()
|
|
39
39
|
|
|
40
40
|
transition all 0.15s ease-in-out
|
|
41
41
|
|
|
@@ -9,13 +9,11 @@ $msOffset = 30ms
|
|
|
9
9
|
transform translateX(-50%) translateY(-50%)
|
|
10
10
|
cursor pointer
|
|
11
11
|
outline none
|
|
12
|
+
focus-outline()
|
|
12
13
|
|
|
13
14
|
&:hover
|
|
14
15
|
transition transform 300ms ease-out
|
|
15
16
|
|
|
16
|
-
&:focus
|
|
17
|
-
outline none
|
|
18
|
-
|
|
19
17
|
.loadingHidden
|
|
20
18
|
opacity 0
|
|
21
19
|
pointer-events none
|
|
@@ -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
|
];
|
package/src/lib/theme.styl
CHANGED
|
@@ -17,6 +17,23 @@ line-clamp($lines)
|
|
|
17
17
|
-webkit-line-clamp $lines
|
|
18
18
|
-webkit-box-orient vertical
|
|
19
19
|
|
|
20
|
+
focus-outline-style()
|
|
21
|
+
outline var(--focus-outline-width, 2px) solid var(--focus-outline-color, var(--ring))
|
|
22
|
+
outline-offset var(--focus-outline-offset, 2px)
|
|
23
|
+
|
|
24
|
+
focus-outline-target()
|
|
25
|
+
&:not(:disabled):not([aria-disabled='true']):not([data-disabled])
|
|
26
|
+
focus-outline-style()
|
|
27
|
+
|
|
28
|
+
focus-outline()
|
|
29
|
+
&:focus-visible
|
|
30
|
+
focus-outline-target()
|
|
31
|
+
|
|
32
|
+
focus-outline-within()
|
|
33
|
+
&:focus-visible
|
|
34
|
+
&:focus-within
|
|
35
|
+
focus-outline-target()
|
|
36
|
+
|
|
20
37
|
:global(:root)
|
|
21
38
|
@media (max-width: MOBILE)
|
|
22
39
|
--page-x-padding: var(--p-6)
|