@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.
Files changed (96) hide show
  1. package/README.md +16 -0
  2. package/assets/base.css +149 -0
  3. package/assets/globals.css +10 -532
  4. package/assets/tokens.css +288 -0
  5. package/dist/esm/src/components/ui/AnalysesSelector/AnalysesSelector.styl.js +1 -1
  6. package/dist/esm/src/components/ui/AppHeader/AppHeader.styl.js +1 -1
  7. package/dist/esm/src/components/ui/Breadcrumb/Breadcrumb.js +2 -2
  8. package/dist/esm/src/components/ui/Breadcrumb/Breadcrumb.styl.js +1 -1
  9. package/dist/esm/src/components/ui/Button/Button.styl.js +1 -1
  10. package/dist/esm/src/components/ui/Chat/ChatChrome/ChatChrome.js +1 -1
  11. package/dist/esm/src/components/ui/Chat/ChatPrompt/ChatPrompt.js +15 -2
  12. package/dist/esm/src/components/ui/Chat/ChatPrompt/ChatPrompt.styl.js +2 -2
  13. package/dist/esm/src/components/ui/Checkbox/Checkbox.styl.js +1 -1
  14. package/dist/esm/src/components/ui/Chip/Chip.styl.js +1 -1
  15. package/dist/esm/src/components/ui/DatePicker/DatePicker.styl.js +1 -1
  16. package/dist/esm/src/components/ui/Dialog/Dialog.styl.js +1 -1
  17. package/dist/esm/src/components/ui/DropdownMenu/DropdownMenu.js +3 -3
  18. package/dist/esm/src/components/ui/DropdownMenu/DropdownMenu.styl.js +2 -2
  19. package/dist/esm/src/components/ui/FileChip/FileChip.styl.js +1 -1
  20. package/dist/esm/src/components/ui/Input/Input.styl.js +1 -1
  21. package/dist/esm/src/components/ui/LegacyPlatformLink/LegacyPlatformLink.styl.js +1 -1
  22. package/dist/esm/src/components/ui/Notifications/Notifications.styl.js +1 -1
  23. package/dist/esm/src/components/ui/RadioGroup/RadioGroup.styl.js +1 -1
  24. package/dist/esm/src/components/ui/Renamer/Renamer.styl.js +2 -2
  25. package/dist/esm/src/components/ui/Select/Select.styl.js +1 -1
  26. package/dist/esm/src/components/ui/Sheet/Sheet.js +1 -1
  27. package/dist/esm/src/components/ui/Sheet/Sheet.styl.js +1 -1
  28. package/dist/esm/src/components/ui/Sidebar/SidebarGroupAction/SidebarGroupAction.styl.js +1 -1
  29. package/dist/esm/src/components/ui/Sidebar/SidebarMenuAction/SidebarMenuAction.styl.js +1 -1
  30. package/dist/esm/src/components/ui/Sidebar/SidebarMenuButton/SidebarMenuButton.styl.js +1 -1
  31. package/dist/esm/src/components/ui/Sidebar/SidebarMenuSubButton/SidebarMenuSubButton.styl.js +1 -1
  32. package/dist/esm/src/components/ui/Sidebar/SidebarRail/SidebarRail.styl.js +1 -1
  33. package/dist/esm/src/components/ui/Sidebar/SidebarResizeHandle/SidebarResizeHandle.styl.js +1 -1
  34. package/dist/esm/src/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.js +1 -1
  35. package/dist/esm/src/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.styl.js +1 -1
  36. package/dist/esm/src/components/ui/Slider/Slider.styl.js +1 -1
  37. package/dist/esm/src/components/ui/SupplyChainMap/SupplyChainMap.styl.js +1 -1
  38. package/dist/esm/src/components/ui/Switch/Switch.styl.js +1 -1
  39. package/dist/esm/src/components/ui/Tabs/Tabs.styl.js +1 -1
  40. package/dist/esm/src/components/ui/Toggle/Toggle.styl.js +1 -1
  41. package/dist/esm/src/components/ui/ToggleGroup/ToggleGroup.styl.js +1 -1
  42. package/dist/esm/src/components/ui/WorkspaceAppSwitcher/WorkspaceAppSwitcher.styl.js +1 -1
  43. package/dist/esm/src/components/widgets/DriverMap/DriverIcon/DriverIcon.styl.js +1 -1
  44. package/dist/esm/src/components/widgets/DriverMap/driverCategoryIcon.js +23 -23
  45. package/dist/esm/src/components/widgets/SignInPage/SignInPage.js +25 -0
  46. package/dist/esm/src/components/widgets/SybilionAppHeader/SybilionAppHeader.js +18 -0
  47. package/dist/esm/src/components/widgets/SybilionAppHeader/SybilionAppHeader.styl.js +7 -0
  48. package/dist/esm/src/components/widgets/SybilionSignInPanel/SybilionSignInPanel.js +11 -0
  49. package/dist/esm/src/components/widgets/SybilionSignInPanel/SybilionSignInPanel.styl.js +7 -0
  50. package/dist/esm/src/signin.js +3 -0
  51. package/dist/esm/types/tests/cssEntries.test.d.ts +1 -0
  52. package/package.json +4 -3
  53. package/src/components/ui/AnalysesSelector/AnalysesSelector.styl +3 -0
  54. package/src/components/ui/AppHeader/AppHeader.styl +3 -0
  55. package/src/components/ui/Breadcrumb/Breadcrumb.styl +1 -0
  56. package/src/components/ui/Breadcrumb/Breadcrumb.tsx +1 -2
  57. package/src/components/ui/Button/Button.styl +3 -10
  58. package/src/components/ui/Chat/ChatChrome/ChatChrome.tsx +1 -1
  59. package/src/components/ui/Chat/ChatPrompt/ChatPrompt.styl +8 -3
  60. package/src/components/ui/Chat/ChatPrompt/ChatPrompt.styl.d.ts +11 -10
  61. package/src/components/ui/Chat/ChatPrompt/ChatPrompt.tsx +28 -1
  62. package/src/components/ui/Checkbox/Checkbox.styl +3 -4
  63. package/src/components/ui/Chip/Chip.styl +3 -0
  64. package/src/components/ui/DatePicker/DatePicker.styl +5 -3
  65. package/src/components/ui/Dialog/Dialog.styl +1 -2
  66. package/src/components/ui/DropdownMenu/DropdownMenu.styl +7 -0
  67. package/src/components/ui/DropdownMenu/DropdownMenu.styl.d.ts +1 -0
  68. package/src/components/ui/DropdownMenu/DropdownMenu.tsx +3 -3
  69. package/src/components/ui/FileChip/FileChip.styl +3 -3
  70. package/src/components/ui/Input/Input.styl +13 -6
  71. package/src/components/ui/LegacyPlatformLink/LegacyPlatformLink.styl +1 -0
  72. package/src/components/ui/Notifications/Notifications.styl +7 -0
  73. package/src/components/ui/RadioGroup/RadioGroup.styl +3 -4
  74. package/src/components/ui/Renamer/Renamer.styl +5 -1
  75. package/src/components/ui/Select/Select.styl +5 -7
  76. package/src/components/ui/Sheet/Sheet.styl +1 -6
  77. package/src/components/ui/Sheet/Sheet.tsx +1 -1
  78. package/src/components/ui/Sidebar/SidebarGroupAction/SidebarGroupAction.styl +1 -2
  79. package/src/components/ui/Sidebar/SidebarMenuAction/SidebarMenuAction.styl +1 -2
  80. package/src/components/ui/Sidebar/SidebarMenuButton/SidebarMenuButton.styl +1 -2
  81. package/src/components/ui/Sidebar/SidebarMenuSubButton/SidebarMenuSubButton.styl +1 -2
  82. package/src/components/ui/Sidebar/SidebarRail/SidebarRail.styl +1 -0
  83. package/src/components/ui/Sidebar/SidebarResizeHandle/SidebarResizeHandle.styl +1 -0
  84. package/src/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.styl +1 -0
  85. package/src/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.tsx +1 -1
  86. package/src/components/ui/Slider/Slider.styl +3 -4
  87. package/src/components/ui/SupplyChainMap/SupplyChainMap.styl +1 -0
  88. package/src/components/ui/Switch/Switch.styl +3 -4
  89. package/src/components/ui/Tabs/Tabs.styl +3 -6
  90. package/src/components/ui/Toggle/Toggle.styl +3 -3
  91. package/src/components/ui/ToggleGroup/ToggleGroup.styl +3 -0
  92. package/src/components/ui/WorkspaceAppSwitcher/WorkspaceAppSwitcher.styl +1 -0
  93. package/src/components/widgets/DriverMap/DriverIcon/DriverIcon.styl +1 -3
  94. package/src/components/widgets/DriverMap/driverCategoryIcon.tsx +23 -23
  95. package/src/docs/pages/SpacingPage.tsx +1 -1
  96. 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 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
  }
@@ -67,9 +67,7 @@
67
67
  &:hover
68
68
  background-color var(--sb-gray-50)
69
69
 
70
- &:focus-visible
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
- border-color var(--destructive)
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
- &[aria-invalid="true"]
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
@@ -5,6 +5,7 @@
5
5
  text-underline-offset 2px
6
6
  color var(--foreground)
7
7
  white-space nowrap
8
+ focus-outline()
8
9
 
9
10
  &:hover
10
11
  color var(--link-color-hover)
@@ -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
@@ -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>
@@ -17,8 +17,7 @@
17
17
  &:hover
18
18
  background-color var(--sidebar-accent)
19
19
  color var(--sidebar-accent-foreground)
20
- &:focus-visible
21
- box-shadow 0 0 0 2px var(--sidebar-ring)
20
+ focus-outline()
22
21
  & > svg
23
22
  width 1rem
24
23
  height 1rem
@@ -30,8 +30,7 @@
30
30
  [data-slot="sidebar-menu-sub-item"]:hover &
31
31
  opacity 1
32
32
 
33
- &:focus-visible
34
- box-shadow 0 0 0 2px var(--sidebar-ring)
33
+ focus-outline()
35
34
 
36
35
  & > svg
37
36
  pointer-events none
@@ -35,8 +35,7 @@
35
35
  background-color var(--sidebar-accent)
36
36
  color var(--sidebar-accent-foreground)
37
37
 
38
- &:focus-visible
39
- box-shadow 0 0 0 2px var(--sidebar-ring)
38
+ focus-outline()
40
39
 
41
40
  &:disabled, &[aria-disabled="true"]
42
41
  pointer-events none
@@ -36,8 +36,7 @@
36
36
  background-color var(--sidebar-accent)
37
37
  color var(--sidebar-accent-foreground)
38
38
 
39
- &:focus-visible
40
- box-shadow 0 0 0 2px var(--sidebar-ring)
39
+ focus-outline()
41
40
 
42
41
  &:disabled, &[aria-disabled="true"]
43
42
  pointer-events none
@@ -8,6 +8,7 @@
8
8
  width 1rem
9
9
  // transform translateX(-50%)
10
10
  transition all ease-out
11
+ focus-outline()
11
12
  &:hover::after
12
13
  background-color var(--sidebar-border)
13
14
  &[data-side="left"]
@@ -14,6 +14,7 @@
14
14
  transition opacity 150ms ease-out
15
15
  background-color var(--page-color)
16
16
  opacity 0
17
+ focus-outline()
17
18
 
18
19
  &::before
19
20
  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,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)
@@ -117,6 +117,7 @@
117
117
  white-space nowrap
118
118
  cursor pointer
119
119
  transition border-color 120ms ease, box-shadow 120ms ease, background 120ms ease
120
+ focus-outline()
120
121
 
121
122
  &.primary
122
123
  font-weight 600
@@ -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
- &:focus-visible
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
 
@@ -1,3 +1,4 @@
1
+ @import 'lib/theme.styl'
1
2
 
2
3
  // Container styles for ToggleGroup
3
4
  .container
@@ -26,6 +27,8 @@
26
27
  &:focus
27
28
  z-index 10
28
29
 
30
+ focus-outline()
31
+
29
32
  &:focus-visible
30
33
  z-index 10
31
34
 
@@ -113,6 +113,7 @@
113
113
  padding var(--p-3)
114
114
  cursor pointer
115
115
  outline none
116
+ focus-outline()
116
117
 
117
118
  .itemActive
118
119
  background-color var(--muted)
@@ -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 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
  ];
@@ -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)