@skewedaspect/sleekspace-ui 0.2.0-beta.1

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 (266) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +111 -0
  3. package/dist/sleekspace-ui.css +12844 -0
  4. package/dist/sleekspace-ui.es.js +19021 -0
  5. package/dist/sleekspace-ui.umd.js +19040 -0
  6. package/docs/components/accordion.md +92 -0
  7. package/docs/components/alert.md +72 -0
  8. package/docs/components/avatar.md +69 -0
  9. package/docs/components/breadcrumbs.md +65 -0
  10. package/docs/components/button/_meta.yaml +12 -0
  11. package/docs/components/button/accessibility.md +16 -0
  12. package/docs/components/button/custom-colors.md +18 -0
  13. package/docs/components/button/icons.md +31 -0
  14. package/docs/components/button/intro.md +8 -0
  15. package/docs/components/button/kinds.md +25 -0
  16. package/docs/components/button/sizes.md +14 -0
  17. package/docs/components/button/states.md +12 -0
  18. package/docs/components/button/usage.md +23 -0
  19. package/docs/components/button/variants.md +14 -0
  20. package/docs/components/button.md +110 -0
  21. package/docs/components/card.md +87 -0
  22. package/docs/components/checkbox.md +77 -0
  23. package/docs/components/collapsible.md +71 -0
  24. package/docs/components/divider.md +62 -0
  25. package/docs/components/dropdown.md +88 -0
  26. package/docs/components/field.md +80 -0
  27. package/docs/components/group.md +41 -0
  28. package/docs/components/input.md +84 -0
  29. package/docs/components/listbox.md +82 -0
  30. package/docs/components/modal.md +101 -0
  31. package/docs/components/navbar.md +64 -0
  32. package/docs/components/number-input.md +78 -0
  33. package/docs/components/page.md +77 -0
  34. package/docs/components/pagination.md +88 -0
  35. package/docs/components/panel.md +74 -0
  36. package/docs/components/popover.md +93 -0
  37. package/docs/components/progress.md +76 -0
  38. package/docs/components/radio.md +86 -0
  39. package/docs/components/sidebar.md +74 -0
  40. package/docs/components/skeleton.md +76 -0
  41. package/docs/components/slider.md +94 -0
  42. package/docs/components/spinner.md +59 -0
  43. package/docs/components/switch.md +97 -0
  44. package/docs/components/table.md +91 -0
  45. package/docs/components/tabs.md +108 -0
  46. package/docs/components/tag.md +75 -0
  47. package/docs/components/tags-input.md +88 -0
  48. package/docs/components/textarea.md +80 -0
  49. package/docs/components/theme.md +65 -0
  50. package/docs/components/toast.md +95 -0
  51. package/docs/components/tooltip.md +90 -0
  52. package/docs/guides/custom-colors.md +84 -0
  53. package/docs/guides/design-tokens.md +105 -0
  54. package/docs/guides/getting-started.md +144 -0
  55. package/docs/guides/installation.md +62 -0
  56. package/docs/guides/theming.md +101 -0
  57. package/package.json +76 -0
  58. package/src/components/Accordion/SkAccordion.vue +133 -0
  59. package/src/components/Accordion/SkAccordionItem.vue +131 -0
  60. package/src/components/Accordion/index.ts +3 -0
  61. package/src/components/Accordion/types.ts +9 -0
  62. package/src/components/Alert/SkAlert.vue +137 -0
  63. package/src/components/Alert/types.ts +10 -0
  64. package/src/components/Avatar/SkAvatar.vue +141 -0
  65. package/src/components/Avatar/index.ts +8 -0
  66. package/src/components/Avatar/types.ts +31 -0
  67. package/src/components/Breadcrumbs/SkBreadcrumbItem.vue +76 -0
  68. package/src/components/Breadcrumbs/SkBreadcrumbSeparator.vue +38 -0
  69. package/src/components/Breadcrumbs/SkBreadcrumbs.vue +93 -0
  70. package/src/components/Breadcrumbs/index.ts +10 -0
  71. package/src/components/Breadcrumbs/types.ts +36 -0
  72. package/src/components/Button/SkButton.vue +148 -0
  73. package/src/components/Button/types.ts +21 -0
  74. package/src/components/Card/SkCard.vue +144 -0
  75. package/src/components/Card/types.ts +12 -0
  76. package/src/components/Checkbox/SkCheckbox.vue +136 -0
  77. package/src/components/Checkbox/index.ts +8 -0
  78. package/src/components/Checkbox/types.ts +10 -0
  79. package/src/components/Collapsible/SkCollapsible.vue +159 -0
  80. package/src/components/Collapsible/index.ts +2 -0
  81. package/src/components/Collapsible/types.ts +8 -0
  82. package/src/components/Divider/SkDivider.vue +63 -0
  83. package/src/components/Divider/types.ts +15 -0
  84. package/src/components/Dropdown/SkDropdown.vue +150 -0
  85. package/src/components/Dropdown/SkDropdownMenuItem.vue +58 -0
  86. package/src/components/Dropdown/SkDropdownMenuSeparator.vue +26 -0
  87. package/src/components/Dropdown/SkDropdownSubmenu.vue +107 -0
  88. package/src/components/Dropdown/index.ts +11 -0
  89. package/src/components/Dropdown/types.ts +11 -0
  90. package/src/components/Field/SkField.vue +152 -0
  91. package/src/components/Field/index.ts +8 -0
  92. package/src/components/Field/types.ts +7 -0
  93. package/src/components/Group/SkGroup.vue +52 -0
  94. package/src/components/Group/types.ts +10 -0
  95. package/src/components/Input/SkInput.vue +117 -0
  96. package/src/components/Input/index.ts +8 -0
  97. package/src/components/Input/types.ts +11 -0
  98. package/src/components/Listbox/SkListbox.vue +164 -0
  99. package/src/components/Listbox/SkListboxItem.vue +68 -0
  100. package/src/components/Listbox/SkListboxSeparator.vue +26 -0
  101. package/src/components/Listbox/index.ts +10 -0
  102. package/src/components/Listbox/types.ts +10 -0
  103. package/src/components/Modal/SkModal.vue +231 -0
  104. package/src/components/Modal/index.ts +8 -0
  105. package/src/components/Modal/types.ts +12 -0
  106. package/src/components/NavBar/SkNavBar.vue +83 -0
  107. package/src/components/NavBar/index.ts +8 -0
  108. package/src/components/NavBar/types.ts +15 -0
  109. package/src/components/NumberInput/SkNumberInput.vue +168 -0
  110. package/src/components/NumberInput/index.ts +8 -0
  111. package/src/components/NumberInput/types.ts +10 -0
  112. package/src/components/Page/SkPage.vue +94 -0
  113. package/src/components/Page/index.ts +8 -0
  114. package/src/components/Page/types.ts +21 -0
  115. package/src/components/Pagination/SkPagination.vue +185 -0
  116. package/src/components/Pagination/SkPaginationItem.vue +107 -0
  117. package/src/components/Pagination/index.ts +9 -0
  118. package/src/components/Pagination/types.ts +40 -0
  119. package/src/components/Panel/SkPanel.vue +96 -0
  120. package/src/components/Panel/types.ts +15 -0
  121. package/src/components/Popover/SkPopover.vue +185 -0
  122. package/src/components/Popover/index.ts +8 -0
  123. package/src/components/Popover/types.ts +11 -0
  124. package/src/components/Progress/SkProgress.vue +144 -0
  125. package/src/components/Progress/index.ts +8 -0
  126. package/src/components/Progress/types.ts +34 -0
  127. package/src/components/Radio/SkRadio.vue +110 -0
  128. package/src/components/Radio/SkRadioGroup.vue +92 -0
  129. package/src/components/Radio/index.ts +9 -0
  130. package/src/components/Radio/types.ts +11 -0
  131. package/src/components/Sidebar/README.md +405 -0
  132. package/src/components/Sidebar/SkSidebar.vue +88 -0
  133. package/src/components/Sidebar/SkSidebarItem.vue +58 -0
  134. package/src/components/Sidebar/SkSidebarSection.vue +40 -0
  135. package/src/components/Sidebar/types.ts +3 -0
  136. package/src/components/Skeleton/SkSkeleton.vue +171 -0
  137. package/src/components/Skeleton/index.ts +8 -0
  138. package/src/components/Skeleton/types.ts +31 -0
  139. package/src/components/Slider/SkSlider.vue +165 -0
  140. package/src/components/Slider/index.ts +8 -0
  141. package/src/components/Slider/types.ts +44 -0
  142. package/src/components/Spinner/SkSpinner.vue +105 -0
  143. package/src/components/Spinner/index.ts +8 -0
  144. package/src/components/Spinner/types.ts +28 -0
  145. package/src/components/Switch/SkSwitch.vue +215 -0
  146. package/src/components/Switch/index.ts +8 -0
  147. package/src/components/Switch/types.ts +12 -0
  148. package/src/components/Table/SkTable.vue +109 -0
  149. package/src/components/Table/index.ts +2 -0
  150. package/src/components/Table/types.ts +15 -0
  151. package/src/components/Tabs/README.md +331 -0
  152. package/src/components/Tabs/SkTab.vue +84 -0
  153. package/src/components/Tabs/SkTabList.vue +62 -0
  154. package/src/components/Tabs/SkTabPanel.vue +47 -0
  155. package/src/components/Tabs/SkTabPanels.vue +23 -0
  156. package/src/components/Tabs/SkTabs.vue +124 -0
  157. package/src/components/Tabs/types.ts +21 -0
  158. package/src/components/Tag/SkTag.vue +129 -0
  159. package/src/components/Tag/types.ts +15 -0
  160. package/src/components/TagsInput/SkTagsInput.vue +184 -0
  161. package/src/components/TagsInput/index.ts +8 -0
  162. package/src/components/TagsInput/types.ts +10 -0
  163. package/src/components/Textarea/SkTextarea.vue +117 -0
  164. package/src/components/Textarea/index.ts +8 -0
  165. package/src/components/Textarea/types.ts +10 -0
  166. package/src/components/Theme/SkTheme.vue +47 -0
  167. package/src/components/Theme/types.ts +17 -0
  168. package/src/components/Theme/useTheme.ts +131 -0
  169. package/src/components/Toast/SkToast.vue +156 -0
  170. package/src/components/Toast/SkToastProvider.vue +180 -0
  171. package/src/components/Toast/index.ts +15 -0
  172. package/src/components/Toast/types.ts +63 -0
  173. package/src/components/Toast/useToast.ts +78 -0
  174. package/src/components/Tooltip/SkTooltip.vue +162 -0
  175. package/src/components/Tooltip/SkTooltipProvider.vue +114 -0
  176. package/src/components/Tooltip/index.ts +9 -0
  177. package/src/components/Tooltip/types.ts +13 -0
  178. package/src/composables/useCustomColors.test.ts +505 -0
  179. package/src/composables/useCustomColors.ts +124 -0
  180. package/src/composables/usePortalContext.test.ts +402 -0
  181. package/src/composables/usePortalContext.ts +95 -0
  182. package/src/global.d.ts +76 -0
  183. package/src/index.ts +259 -0
  184. package/src/styles/_scrollbar.scss +100 -0
  185. package/src/styles/base/_fonts.scss +105 -0
  186. package/src/styles/base/_global.scss +47 -0
  187. package/src/styles/base/_index.scss +24 -0
  188. package/src/styles/base/_reset.scss +11 -0
  189. package/src/styles/base/_typography.scss +178 -0
  190. package/src/styles/components/_accordion.scss +250 -0
  191. package/src/styles/components/_alert.scss +239 -0
  192. package/src/styles/components/_avatar.scss +133 -0
  193. package/src/styles/components/_breadcrumbs.scss +137 -0
  194. package/src/styles/components/_button.scss +731 -0
  195. package/src/styles/components/_card.scss +141 -0
  196. package/src/styles/components/_checkbox.scss +232 -0
  197. package/src/styles/components/_collapsible.scss +158 -0
  198. package/src/styles/components/_divider.scss +121 -0
  199. package/src/styles/components/_field.scss +87 -0
  200. package/src/styles/components/_group.scss +138 -0
  201. package/src/styles/components/_index.scss +46 -0
  202. package/src/styles/components/_input.scss +205 -0
  203. package/src/styles/components/_listbox.scss +453 -0
  204. package/src/styles/components/_menu.scss +216 -0
  205. package/src/styles/components/_modal.scss +329 -0
  206. package/src/styles/components/_navbar.scss +258 -0
  207. package/src/styles/components/_number-input.scss +352 -0
  208. package/src/styles/components/_page.scss +98 -0
  209. package/src/styles/components/_pagination.scss +411 -0
  210. package/src/styles/components/_panel.scss +281 -0
  211. package/src/styles/components/_popover.scss +258 -0
  212. package/src/styles/components/_progress.scss +280 -0
  213. package/src/styles/components/_radio.scss +255 -0
  214. package/src/styles/components/_sidebar.scss +92 -0
  215. package/src/styles/components/_skeleton.scss +138 -0
  216. package/src/styles/components/_slider.scss +262 -0
  217. package/src/styles/components/_spinner.scss +331 -0
  218. package/src/styles/components/_switch.scss +370 -0
  219. package/src/styles/components/_table.scss +405 -0
  220. package/src/styles/components/_tabs.scss +486 -0
  221. package/src/styles/components/_tag.scss +425 -0
  222. package/src/styles/components/_tags-input.scss +279 -0
  223. package/src/styles/components/_textarea.scss +208 -0
  224. package/src/styles/components/_toast.scss +331 -0
  225. package/src/styles/components/_tooltip.scss +206 -0
  226. package/src/styles/fonts/Titillium_Web/OFL.txt +93 -0
  227. package/src/styles/fonts/Titillium_Web/TitilliumWeb-Black.ttf +0 -0
  228. package/src/styles/fonts/Titillium_Web/TitilliumWeb-Bold.ttf +0 -0
  229. package/src/styles/fonts/Titillium_Web/TitilliumWeb-BoldItalic.ttf +0 -0
  230. package/src/styles/fonts/Titillium_Web/TitilliumWeb-ExtraLight.ttf +0 -0
  231. package/src/styles/fonts/Titillium_Web/TitilliumWeb-ExtraLightItalic.ttf +0 -0
  232. package/src/styles/fonts/Titillium_Web/TitilliumWeb-Italic.ttf +0 -0
  233. package/src/styles/fonts/Titillium_Web/TitilliumWeb-Light.ttf +0 -0
  234. package/src/styles/fonts/Titillium_Web/TitilliumWeb-LightItalic.ttf +0 -0
  235. package/src/styles/fonts/Titillium_Web/TitilliumWeb-Regular.ttf +0 -0
  236. package/src/styles/fonts/Titillium_Web/TitilliumWeb-SemiBold.ttf +0 -0
  237. package/src/styles/fonts/Titillium_Web/TitilliumWeb-SemiBoldItalic.ttf +0 -0
  238. package/src/styles/index.scss +17 -0
  239. package/src/styles/mixins/_cut-border.scss +254 -0
  240. package/src/styles/mixins/_index.scss +7 -0
  241. package/src/styles/theme/_variables.scss +42 -0
  242. package/src/styles/themes/README.md +127 -0
  243. package/src/styles/themes/_colorful.scss +58 -0
  244. package/src/styles/themes/_greyscale.scss +58 -0
  245. package/src/styles/themes/index.scss +9 -0
  246. package/src/styles/tokens/README.md +268 -0
  247. package/src/styles/tokens/_foundation-borders.scss +26 -0
  248. package/src/styles/tokens/_foundation-colors.scss +169 -0
  249. package/src/styles/tokens/_foundation-glow.scss +36 -0
  250. package/src/styles/tokens/_foundation-radius.scss +53 -0
  251. package/src/styles/tokens/_foundation-scrollbar.scss +31 -0
  252. package/src/styles/tokens/_foundation-shadows.scss +37 -0
  253. package/src/styles/tokens/_foundation-space.scss +36 -0
  254. package/src/styles/tokens/_foundation-transitions.scss +37 -0
  255. package/src/styles/tokens/_foundation-typography.scss +58 -0
  256. package/src/styles/tokens/_semantic-color-kinds.scss +112 -0
  257. package/src/styles/tokens/_semantic-colors.scss +10 -0
  258. package/src/styles/tokens/_semantic-interactive.scss +29 -0
  259. package/src/styles/tokens/_semantic-scrollbar.scss +48 -0
  260. package/src/styles/tokens/_semantic-surfaces.scss +36 -0
  261. package/src/styles/tokens/index.scss +38 -0
  262. package/src/styles/tokens.scss +268 -0
  263. package/src/styles/utilities/_index.scss +9 -0
  264. package/src/styles/utilities/_typography.scss +121 -0
  265. package/src/types.ts +50 -0
  266. package/web-types.json +3524 -0
@@ -0,0 +1,453 @@
1
+ @use '@/styles/mixins/cut-border' as *;
2
+
3
+ //----------------------------------------------------------------------------------------------------------------------
4
+ // Listbox Component Styles
5
+ //----------------------------------------------------------------------------------------------------------------------
6
+
7
+ .sk-listbox
8
+ {
9
+ // Color tokens (can be overridden by custom colors)
10
+ --sk-listbox-color-base: var(--sk-neutral-base);
11
+ --sk-listbox-fg: var(--sk-neutral-text);
12
+
13
+ position: relative;
14
+ display: inline-flex;
15
+
16
+ // Size variants
17
+ &.sk-sm
18
+ {
19
+ --sk-listbox-cut: 0.4rem;
20
+ }
21
+
22
+ &.sk-md
23
+ {
24
+ --sk-listbox-cut: 0.5rem;
25
+ }
26
+
27
+ &.sk-lg
28
+ {
29
+ --sk-listbox-cut: 0.6rem;
30
+ }
31
+
32
+ &.sk-xl
33
+ {
34
+ --sk-listbox-cut: 0.7rem;
35
+ }
36
+
37
+ // Kind variants
38
+ &.sk-neutral
39
+ {
40
+ --sk-listbox-color-base: var(--sk-neutral-base);
41
+ --sk-listbox-fg: var(--sk-neutral-text);
42
+ }
43
+
44
+ &.sk-primary
45
+ {
46
+ --sk-listbox-color-base: var(--sk-primary-base);
47
+ --sk-listbox-fg: var(--sk-primary-text);
48
+ }
49
+
50
+ &.sk-accent
51
+ {
52
+ --sk-listbox-color-base: var(--sk-accent-base);
53
+ --sk-listbox-fg: var(--sk-accent-text);
54
+ }
55
+
56
+ &.sk-info
57
+ {
58
+ --sk-listbox-color-base: var(--sk-info-base);
59
+ --sk-listbox-fg: var(--sk-info-text);
60
+ }
61
+
62
+ &.sk-success
63
+ {
64
+ --sk-listbox-color-base: var(--sk-success-base);
65
+ --sk-listbox-fg: var(--sk-success-text);
66
+ }
67
+
68
+ &.sk-warning
69
+ {
70
+ --sk-listbox-color-base: var(--sk-warning-base);
71
+ --sk-listbox-fg: var(--sk-warning-text);
72
+ }
73
+
74
+ &.sk-danger
75
+ {
76
+ --sk-listbox-color-base: var(--sk-danger-base);
77
+ --sk-listbox-fg: var(--sk-danger-text);
78
+ }
79
+
80
+ // Color kinds (direct palette access)
81
+ &.sk-neon-blue
82
+ {
83
+ --sk-listbox-color-base: var(--sk-neon-blue-base);
84
+ --sk-listbox-fg: var(--sk-neon-blue-text);
85
+ }
86
+
87
+ &.sk-neon-purple
88
+ {
89
+ --sk-listbox-color-base: var(--sk-neon-purple-base);
90
+ --sk-listbox-fg: var(--sk-neon-purple-text);
91
+ }
92
+
93
+ &.sk-neon-orange
94
+ {
95
+ --sk-listbox-color-base: var(--sk-neon-orange-base);
96
+ --sk-listbox-fg: var(--sk-neon-orange-text);
97
+ }
98
+
99
+ &.sk-neon-green
100
+ {
101
+ --sk-listbox-color-base: var(--sk-neon-green-base);
102
+ --sk-listbox-fg: var(--sk-neon-green-text);
103
+ }
104
+
105
+ &.sk-neon-mint
106
+ {
107
+ --sk-listbox-color-base: var(--sk-neon-mint-base);
108
+ --sk-listbox-fg: var(--sk-neon-mint-text);
109
+ }
110
+
111
+ &.sk-neon-pink
112
+ {
113
+ --sk-listbox-color-base: var(--sk-neon-pink-base);
114
+ --sk-listbox-fg: var(--sk-neon-pink-text);
115
+ }
116
+
117
+ &.sk-yellow
118
+ {
119
+ --sk-listbox-color-base: var(--sk-yellow-base);
120
+ --sk-listbox-fg: var(--sk-yellow-text);
121
+ }
122
+
123
+ &.sk-red
124
+ {
125
+ --sk-listbox-color-base: var(--sk-red-base);
126
+ --sk-listbox-fg: var(--sk-red-text);
127
+ }
128
+ }
129
+
130
+ //----------------------------------------------------------------------------------------------------------------------
131
+
132
+ .sk-listbox-anchor
133
+ {
134
+ display: flex;
135
+ align-items: center;
136
+ width: 100%;
137
+ position: relative;
138
+
139
+ @include cut-border(
140
+ $cut: var(--sk-listbox-cut),
141
+ $border-width: var(--sk-border-width-thin),
142
+ $border-color: var(--sk-listbox-color-base),
143
+ $corners: (top-right)
144
+ );
145
+
146
+ // Base styling
147
+ background: color-mix(
148
+ in oklch,
149
+ color-mix(in oklch, var(--sk-listbox-color-base) 75%, transparent 25%),
150
+ #000 65%
151
+ );
152
+
153
+ // Transitions
154
+ transition-property: background, border-color;
155
+ transition-duration: var(--sk-transition-duration-base);
156
+
157
+ // Focus-within state
158
+ &:focus-within
159
+ {
160
+ border-color: color-mix(in oklch, var(--sk-listbox-color-base), white 35%);
161
+ background: color-mix(
162
+ in oklch,
163
+ color-mix(in oklch, var(--sk-listbox-color-base) 75%, transparent 25%),
164
+ #000 25%
165
+ );
166
+ }
167
+
168
+ // Hover state
169
+ &:hover:not(:has(input:disabled))
170
+ {
171
+ border-color: color-mix(in oklch, var(--sk-listbox-color-base), white 20%);
172
+ }
173
+
174
+ // Disabled state
175
+ &:has(input:disabled)
176
+ {
177
+ opacity: 0.5;
178
+ cursor: not-allowed;
179
+ }
180
+ }
181
+
182
+ //----------------------------------------------------------------------------------------------------------------------
183
+
184
+ .sk-listbox-input
185
+ {
186
+ flex: 1;
187
+ background: transparent;
188
+ border: none;
189
+ color: var(--sk-listbox-fg);
190
+ font-family: var(--sk-font-family-base);
191
+ outline: none;
192
+ cursor: text;
193
+
194
+ // Size variants (match input heights)
195
+ .sk-listbox.sk-sm &
196
+ {
197
+ height: 2rem;
198
+ padding: 0 var(--sk-space-sm);
199
+ font-size: 0.875rem;
200
+ }
201
+
202
+ .sk-listbox.sk-md &
203
+ {
204
+ height: 2.5rem;
205
+ padding: 0 var(--sk-space-md);
206
+ font-size: 1rem;
207
+ }
208
+
209
+ .sk-listbox.sk-lg &
210
+ {
211
+ height: 3rem;
212
+ padding: 0 var(--sk-space-md);
213
+ font-size: 1.125rem;
214
+ }
215
+
216
+ .sk-listbox.sk-xl &
217
+ {
218
+ height: 3.5rem;
219
+ padding: 0 var(--sk-space-md);
220
+ font-size: 1.25rem;
221
+ }
222
+
223
+ &::placeholder
224
+ {
225
+ color: color-mix(in oklch, var(--sk-listbox-fg), transparent 50%);
226
+ }
227
+
228
+ &:disabled
229
+ {
230
+ cursor: not-allowed;
231
+ }
232
+ }
233
+
234
+ //----------------------------------------------------------------------------------------------------------------------
235
+
236
+ .sk-listbox-trigger
237
+ {
238
+ display: flex;
239
+ align-items: center;
240
+ justify-content: center;
241
+ padding: 0 var(--sk-space-sm);
242
+ color: var(--sk-listbox-fg);
243
+ cursor: pointer;
244
+ flex-shrink: 0;
245
+
246
+ &:hover
247
+ {
248
+ opacity: 0.8;
249
+ }
250
+ }
251
+
252
+ //----------------------------------------------------------------------------------------------------------------------
253
+
254
+ .sk-listbox-content
255
+ {
256
+ // Color tokens - define defaults (can be overridden by kind variants)
257
+ --sk-menu-color-base: var(--sk-neutral-base);
258
+ --sk-menu-fg: var(--sk-neutral-text);
259
+
260
+ position: relative;
261
+ min-width: var(--reka-combobox-trigger-width);
262
+ max-height: 20rem;
263
+ overflow: auto;
264
+ padding: var(--sk-space-xs);
265
+ z-index: 1000;
266
+
267
+ @include cut-border(
268
+ $cut: 0.625rem,
269
+ $border-width: var(--sk-border-width-thin),
270
+ $border-color: var(--sk-menu-color-base),
271
+ $corners: (top-left)
272
+ );
273
+
274
+ // Base styling
275
+ background: color-mix(
276
+ in oklch,
277
+ color-mix(in oklch, var(--sk-menu-color-base) 95%, transparent 5%),
278
+ #000 46.25%
279
+ );
280
+ color: var(--sk-menu-fg);
281
+ box-shadow: var(--sk-shadow-lg);
282
+
283
+ // Kind variants (defined directly on content for portal support)
284
+ &.sk-neutral
285
+ {
286
+ --sk-menu-color-base: var(--sk-neutral-base);
287
+ --sk-menu-fg: var(--sk-neutral-text);
288
+ }
289
+
290
+ &.sk-primary
291
+ {
292
+ --sk-menu-color-base: var(--sk-primary-base);
293
+ --sk-menu-fg: var(--sk-primary-text);
294
+ }
295
+
296
+ &.sk-accent
297
+ {
298
+ --sk-menu-color-base: var(--sk-accent-base);
299
+ --sk-menu-fg: var(--sk-accent-text);
300
+ }
301
+
302
+ &.sk-info
303
+ {
304
+ --sk-menu-color-base: var(--sk-info-base);
305
+ --sk-menu-fg: var(--sk-info-text);
306
+ }
307
+
308
+ &.sk-success
309
+ {
310
+ --sk-menu-color-base: var(--sk-success-base);
311
+ --sk-menu-fg: var(--sk-success-text);
312
+ }
313
+
314
+ &.sk-warning
315
+ {
316
+ --sk-menu-color-base: var(--sk-warning-base);
317
+ --sk-menu-fg: var(--sk-warning-text);
318
+ }
319
+
320
+ &.sk-danger
321
+ {
322
+ --sk-menu-color-base: var(--sk-danger-base);
323
+ --sk-menu-fg: var(--sk-danger-text);
324
+ }
325
+
326
+ // Color kinds (direct palette access)
327
+ &.sk-neon-blue
328
+ {
329
+ --sk-menu-color-base: var(--sk-neon-blue-base);
330
+ --sk-menu-fg: var(--sk-neon-blue-text);
331
+ }
332
+
333
+ &.sk-neon-purple
334
+ {
335
+ --sk-menu-color-base: var(--sk-neon-purple-base);
336
+ --sk-menu-fg: var(--sk-neon-purple-text);
337
+ }
338
+
339
+ &.sk-neon-orange
340
+ {
341
+ --sk-menu-color-base: var(--sk-neon-orange-base);
342
+ --sk-menu-fg: var(--sk-neon-orange-text);
343
+ }
344
+
345
+ &.sk-neon-green
346
+ {
347
+ --sk-menu-color-base: var(--sk-neon-green-base);
348
+ --sk-menu-fg: var(--sk-neon-green-text);
349
+ }
350
+
351
+ &.sk-neon-mint
352
+ {
353
+ --sk-menu-color-base: var(--sk-neon-mint-base);
354
+ --sk-menu-fg: var(--sk-neon-mint-text);
355
+ }
356
+
357
+ &.sk-neon-pink
358
+ {
359
+ --sk-menu-color-base: var(--sk-neon-pink-base);
360
+ --sk-menu-fg: var(--sk-neon-pink-text);
361
+ }
362
+
363
+ &.sk-yellow
364
+ {
365
+ --sk-menu-color-base: var(--sk-yellow-base);
366
+ --sk-menu-fg: var(--sk-yellow-text);
367
+ }
368
+
369
+ &.sk-red
370
+ {
371
+ --sk-menu-color-base: var(--sk-red-base);
372
+ --sk-menu-fg: var(--sk-red-text);
373
+ }
374
+ }
375
+
376
+ //----------------------------------------------------------------------------------------------------------------------
377
+
378
+ .sk-listbox-item
379
+ {
380
+ display: flex;
381
+ align-items: center;
382
+ justify-content: space-between;
383
+ gap: var(--sk-space-md);
384
+ padding: var(--sk-space-xs) var(--sk-space-md);
385
+ cursor: pointer;
386
+ color: color-mix(in oklch, var(--sk-menu-fg), black 15%);
387
+ font-size: 0.875rem;
388
+ outline: none;
389
+ user-select: none;
390
+
391
+ @include cut-border(
392
+ $cut: 0.5rem,
393
+ $border-width: var(--sk-border-width-thin),
394
+ $border-color: transparent,
395
+ $corners: (top-left bottom-right)
396
+ );
397
+
398
+ // Transitions
399
+ transition-property: background, color;
400
+ transition-duration: var(--sk-transition-duration-base);
401
+
402
+ // Hover state
403
+ &:hover:not([data-disabled])
404
+ {
405
+ background: color-mix(
406
+ in oklch,
407
+ color-mix(in oklch, var(--sk-menu-color-base), black 30%),
408
+ transparent 10%
409
+ );
410
+ color: var(--sk-menu-fg);
411
+ transition-duration: var(--sk-transition-duration-fast);
412
+ }
413
+
414
+ // Highlighted state (keyboard navigation)
415
+ &[data-highlighted]
416
+ {
417
+ background: color-mix(
418
+ in oklch,
419
+ color-mix(in oklch, var(--sk-menu-color-base), black 30%),
420
+ transparent 10%
421
+ );
422
+ color: var(--sk-menu-fg);
423
+ outline: none;
424
+ }
425
+
426
+ // Disabled state
427
+ &[data-disabled]
428
+ {
429
+ opacity: 0.5;
430
+ cursor: not-allowed;
431
+ }
432
+ }
433
+
434
+ //----------------------------------------------------------------------------------------------------------------------
435
+
436
+ .sk-listbox-item-indicator
437
+ {
438
+ display: flex;
439
+ align-items: center;
440
+ justify-content: center;
441
+ flex-shrink: 0;
442
+ }
443
+
444
+ //----------------------------------------------------------------------------------------------------------------------
445
+
446
+ .sk-listbox-separator
447
+ {
448
+ height: 1px;
449
+ margin: var(--sk-space-xs) 0;
450
+ background: color-mix(in oklch, var(--sk-menu-color-base), transparent 70%);
451
+ }
452
+
453
+ //----------------------------------------------------------------------------------------------------------------------
@@ -0,0 +1,216 @@
1
+ @use '@/styles/mixins/cut-border' as *;
2
+
3
+ //----------------------------------------------------------------------------------------------------------------------
4
+ // Shared Menu Styles
5
+ // Used by Dropdown, ContextMenu, etc.
6
+ //----------------------------------------------------------------------------------------------------------------------
7
+
8
+ // Base menu container styling (applied via our wrapper components)
9
+ .sk-dropdown-menu-content
10
+ {
11
+ // Color tokens (can be overridden by custom colors via component)
12
+ --sk-menu-color-base: var(--sk-neutral-base);
13
+ --sk-menu-fg: var(--sk-neutral-text);
14
+
15
+ min-width: 12rem;
16
+ padding: var(--sk-space-xs);
17
+ z-index: 1000;
18
+
19
+ @include cut-border(
20
+ $cut: 0.625rem,
21
+ $border-width: var(--sk-border-width-thin),
22
+ $border-color: var(--sk-menu-color-base),
23
+ $corners: (top-left)
24
+ );
25
+
26
+ // Base styling - minimal transparency for readability
27
+ background: color-mix(
28
+ in oklch,
29
+ color-mix(in oklch, var(--sk-menu-color-base) 95%, transparent 5%),
30
+ #000 46.25%
31
+ );
32
+ color: var(--sk-menu-fg);
33
+ box-shadow: var(--sk-shadow-lg);
34
+
35
+ // Kind variants
36
+ &.sk-neutral
37
+ {
38
+ --sk-menu-color-base: var(--sk-neutral-base);
39
+ --sk-menu-fg: var(--sk-neutral-text);
40
+ }
41
+
42
+ &.sk-primary
43
+ {
44
+ --sk-menu-color-base: var(--sk-primary-base);
45
+ --sk-menu-fg: var(--sk-primary-text);
46
+ }
47
+
48
+ &.sk-accent
49
+ {
50
+ --sk-menu-color-base: var(--sk-accent-base);
51
+ --sk-menu-fg: var(--sk-accent-text);
52
+ }
53
+
54
+ &.sk-info
55
+ {
56
+ --sk-menu-color-base: var(--sk-info-base);
57
+ --sk-menu-fg: var(--sk-info-text);
58
+ }
59
+
60
+ &.sk-success
61
+ {
62
+ --sk-menu-color-base: var(--sk-success-base);
63
+ --sk-menu-fg: var(--sk-success-text);
64
+ }
65
+
66
+ &.sk-warning
67
+ {
68
+ --sk-menu-color-base: var(--sk-warning-base);
69
+ --sk-menu-fg: var(--sk-warning-text);
70
+ }
71
+
72
+ &.sk-danger
73
+ {
74
+ --sk-menu-color-base: var(--sk-danger-base);
75
+ --sk-menu-fg: var(--sk-danger-text);
76
+ }
77
+
78
+ // Color kinds (direct palette access)
79
+ &.sk-neon-blue
80
+ {
81
+ --sk-menu-color-base: var(--sk-neon-blue-base);
82
+ --sk-menu-fg: var(--sk-neon-blue-text);
83
+ }
84
+
85
+ &.sk-neon-purple
86
+ {
87
+ --sk-menu-color-base: var(--sk-neon-purple-base);
88
+ --sk-menu-fg: var(--sk-neon-purple-text);
89
+ }
90
+
91
+ &.sk-neon-orange
92
+ {
93
+ --sk-menu-color-base: var(--sk-neon-orange-base);
94
+ --sk-menu-fg: var(--sk-neon-orange-text);
95
+ }
96
+
97
+ &.sk-neon-green
98
+ {
99
+ --sk-menu-color-base: var(--sk-neon-green-base);
100
+ --sk-menu-fg: var(--sk-neon-green-text);
101
+ }
102
+
103
+ &.sk-neon-mint
104
+ {
105
+ --sk-menu-color-base: var(--sk-neon-mint-base);
106
+ --sk-menu-fg: var(--sk-neon-mint-text);
107
+ }
108
+
109
+ &.sk-neon-pink
110
+ {
111
+ --sk-menu-color-base: var(--sk-neon-pink-base);
112
+ --sk-menu-fg: var(--sk-neon-pink-text);
113
+ }
114
+
115
+ &.sk-yellow
116
+ {
117
+ --sk-menu-color-base: var(--sk-yellow-base);
118
+ --sk-menu-fg: var(--sk-yellow-text);
119
+ }
120
+
121
+ &.sk-red
122
+ {
123
+ --sk-menu-color-base: var(--sk-red-base);
124
+ --sk-menu-fg: var(--sk-red-text);
125
+ }
126
+ }
127
+
128
+ //----------------------------------------------------------------------------------------------------------------------
129
+
130
+ //----------------------------------------------------------------------------------------------------------------------
131
+ // Menu Item Styles
132
+ //----------------------------------------------------------------------------------------------------------------------
133
+
134
+ .sk-dropdown-menu-item
135
+ {
136
+ display: flex;
137
+ align-items: center;
138
+ justify-content: space-between;
139
+ gap: var(--sk-space-md);
140
+ padding: var(--sk-space-xs) var(--sk-space-md);
141
+ cursor: pointer;
142
+ color: color-mix(in oklch, var(--sk-menu-fg), black 15%);
143
+ font-size: 0.875rem;
144
+ outline: none;
145
+ user-select: none;
146
+
147
+ @include cut-border(
148
+ $cut: 0.5rem,
149
+ $border-width: var(--sk-border-width-thin),
150
+ $border-color: transparent,
151
+ $corners: (top-left bottom-right)
152
+ );
153
+
154
+ // Transitions
155
+ transition-property: background, color;
156
+ transition-duration: var(--sk-transition-duration-base);
157
+
158
+ // Hover state - darker with transparency
159
+ &:hover:not([data-disabled])
160
+ {
161
+ background: color-mix(
162
+ in oklch,
163
+ color-mix(in oklch, var(--sk-menu-color-base), black 30%),
164
+ transparent 10%
165
+ );
166
+ color: var(--sk-menu-fg);
167
+ transition-duration: var(--sk-transition-duration-fast);
168
+ }
169
+
170
+ // Active/focus state - darker with transparency
171
+ &:focus,
172
+ &[data-highlighted]
173
+ {
174
+ background: color-mix(
175
+ in oklch,
176
+ color-mix(in oklch, var(--sk-menu-color-base), black 30%),
177
+ transparent 10%
178
+ );
179
+ color: var(--sk-menu-fg);
180
+ outline: none;
181
+ }
182
+
183
+ // Disabled state
184
+ &[data-disabled]
185
+ {
186
+ opacity: 0.5;
187
+ cursor: not-allowed;
188
+ }
189
+ }
190
+
191
+ //----------------------------------------------------------------------------------------------------------------------
192
+ // Menu Separator Styles
193
+ //----------------------------------------------------------------------------------------------------------------------
194
+
195
+ .sk-dropdown-menu-separator
196
+ {
197
+ height: 1px;
198
+ margin: var(--sk-space-xs) 0;
199
+ background: color-mix(in oklch, var(--sk-menu-color-base), transparent 70%);
200
+ }
201
+
202
+ //----------------------------------------------------------------------------------------------------------------------
203
+
204
+ //----------------------------------------------------------------------------------------------------------------------
205
+ // Submenu Caret
206
+ //----------------------------------------------------------------------------------------------------------------------
207
+
208
+ .sk-submenu-caret
209
+ {
210
+ width: 0.875rem;
211
+ height: 0.875rem;
212
+ margin-left: auto;
213
+ flex-shrink: 0;
214
+ }
215
+
216
+ //----------------------------------------------------------------------------------------------------------------------