@sewadah/selaras 0.1.1 → 0.3.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 (385) hide show
  1. package/README.md +67 -20
  2. package/dist/module.d.mts +10 -0
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +123 -36
  5. package/dist/runtime/components/Accordion.d.vue.ts +3 -0
  6. package/dist/runtime/components/Accordion.vue +5 -1
  7. package/dist/runtime/components/Accordion.vue.d.ts +3 -0
  8. package/dist/runtime/components/Alert.d.vue.ts +2 -1
  9. package/dist/runtime/components/Alert.vue +6 -3
  10. package/dist/runtime/components/Alert.vue.d.ts +2 -1
  11. package/dist/runtime/components/AlertDialog.d.vue.ts +2 -0
  12. package/dist/runtime/components/AlertDialog.vue +21 -8
  13. package/dist/runtime/components/AlertDialog.vue.d.ts +2 -0
  14. package/dist/runtime/components/App.vue +9 -2
  15. package/dist/runtime/components/Autocomplete.d.vue.ts +22 -58
  16. package/dist/runtime/components/Autocomplete.vue +50 -11
  17. package/dist/runtime/components/Autocomplete.vue.d.ts +22 -58
  18. package/dist/runtime/components/Avatar.d.vue.ts +2 -1
  19. package/dist/runtime/components/Avatar.vue +4 -2
  20. package/dist/runtime/components/Avatar.vue.d.ts +2 -1
  21. package/dist/runtime/components/Badge.d.vue.ts +3 -2
  22. package/dist/runtime/components/Badge.vue +8 -5
  23. package/dist/runtime/components/Badge.vue.d.ts +3 -2
  24. package/dist/runtime/components/Breadcrumb.d.vue.ts +3 -0
  25. package/dist/runtime/components/Breadcrumb.vue +5 -2
  26. package/dist/runtime/components/Breadcrumb.vue.d.ts +3 -0
  27. package/dist/runtime/components/Button.d.vue.ts +5 -2
  28. package/dist/runtime/components/Button.vue +5 -2
  29. package/dist/runtime/components/Button.vue.d.ts +5 -2
  30. package/dist/runtime/components/Checkbox.d.vue.ts +2 -1
  31. package/dist/runtime/components/Checkbox.vue +4 -2
  32. package/dist/runtime/components/Checkbox.vue.d.ts +2 -1
  33. package/dist/runtime/components/Chip.d.vue.ts +2 -1
  34. package/dist/runtime/components/Chip.vue +4 -2
  35. package/dist/runtime/components/Chip.vue.d.ts +2 -1
  36. package/dist/runtime/components/Collapsible.d.vue.ts +3 -0
  37. package/dist/runtime/components/Collapsible.vue +11 -6
  38. package/dist/runtime/components/Collapsible.vue.d.ts +3 -0
  39. package/dist/runtime/components/ColorPicker.d.vue.ts +13 -3
  40. package/dist/runtime/components/ColorPicker.vue +60 -14
  41. package/dist/runtime/components/ColorPicker.vue.d.ts +13 -3
  42. package/dist/runtime/components/Column.d.ts +1 -1
  43. package/dist/runtime/components/CommandPalette.vue +18 -16
  44. package/dist/runtime/components/ContentNavigation.d.vue.ts +3 -0
  45. package/dist/runtime/components/ContentNavigation.vue +6 -3
  46. package/dist/runtime/components/ContentNavigation.vue.d.ts +3 -0
  47. package/dist/runtime/components/ContentSurround.d.vue.ts +3 -0
  48. package/dist/runtime/components/ContentSurround.vue +7 -4
  49. package/dist/runtime/components/ContentSurround.vue.d.ts +3 -0
  50. package/dist/runtime/components/ContentToc.d.vue.ts +3 -0
  51. package/dist/runtime/components/ContentToc.vue +22 -12
  52. package/dist/runtime/components/ContentToc.vue.d.ts +3 -0
  53. package/dist/runtime/components/ContextMenu.vue +3 -2
  54. package/dist/runtime/components/DashboardSidebar.vue +1 -1
  55. package/dist/runtime/components/DashboardSidebarToggle.d.vue.ts +1 -0
  56. package/dist/runtime/components/DashboardSidebarToggle.vue +3 -1
  57. package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +1 -0
  58. package/dist/runtime/components/DatePicker.d.vue.ts +32 -23
  59. package/dist/runtime/components/DatePicker.vue +130 -60
  60. package/dist/runtime/components/DatePicker.vue.d.ts +32 -23
  61. package/dist/runtime/components/Drawer.d.vue.ts +2 -0
  62. package/dist/runtime/components/Drawer.vue +21 -8
  63. package/dist/runtime/components/Drawer.vue.d.ts +2 -0
  64. package/dist/runtime/components/DrawerRenderer.vue +28 -21
  65. package/dist/runtime/components/Dropdown.d.vue.ts +14 -4
  66. package/dist/runtime/components/Dropdown.vue +19 -4
  67. package/dist/runtime/components/Dropdown.vue.d.ts +14 -4
  68. package/dist/runtime/components/FileTree.d.vue.ts +3 -0
  69. package/dist/runtime/components/FileTree.vue +7 -3
  70. package/dist/runtime/components/FileTree.vue.d.ts +3 -0
  71. package/dist/runtime/components/FileUpload.d.vue.ts +2 -1
  72. package/dist/runtime/components/FileUpload.vue +75 -32
  73. package/dist/runtime/components/FileUpload.vue.d.ts +2 -1
  74. package/dist/runtime/components/FormField.d.vue.ts +2 -0
  75. package/dist/runtime/components/FormField.vue +12 -9
  76. package/dist/runtime/components/FormField.vue.d.ts +2 -0
  77. package/dist/runtime/components/Icon.d.vue.ts +2 -4
  78. package/dist/runtime/components/Icon.vue +7 -2
  79. package/dist/runtime/components/Icon.vue.d.ts +2 -4
  80. package/dist/runtime/components/Input.d.vue.ts +2 -1
  81. package/dist/runtime/components/Input.vue +12 -6
  82. package/dist/runtime/components/Input.vue.d.ts +2 -1
  83. package/dist/runtime/components/InputNumber.d.vue.ts +4 -1
  84. package/dist/runtime/components/InputNumber.vue +21 -8
  85. package/dist/runtime/components/InputNumber.vue.d.ts +4 -1
  86. package/dist/runtime/components/Modal.d.vue.ts +2 -0
  87. package/dist/runtime/components/Modal.vue +21 -8
  88. package/dist/runtime/components/Modal.vue.d.ts +2 -0
  89. package/dist/runtime/components/ModalRenderer.vue +23 -16
  90. package/dist/runtime/components/NavigationMenu.d.vue.ts +2 -4
  91. package/dist/runtime/components/NavigationMenu.vue +8 -4
  92. package/dist/runtime/components/NavigationMenu.vue.d.ts +2 -4
  93. package/dist/runtime/components/NavigationMenuAccordionItem.d.vue.ts +2 -4
  94. package/dist/runtime/components/NavigationMenuAccordionItem.vue +5 -3
  95. package/dist/runtime/components/NavigationMenuAccordionItem.vue.d.ts +2 -4
  96. package/dist/runtime/components/NavigationMenuFlyoutList.d.vue.ts +2 -4
  97. package/dist/runtime/components/NavigationMenuFlyoutList.vue +7 -4
  98. package/dist/runtime/components/NavigationMenuFlyoutList.vue.d.ts +2 -4
  99. package/dist/runtime/components/NavigationMenuFlyoutTrigger.d.vue.ts +2 -4
  100. package/dist/runtime/components/NavigationMenuFlyoutTrigger.vue +9 -2
  101. package/dist/runtime/components/NavigationMenuFlyoutTrigger.vue.d.ts +2 -4
  102. package/dist/runtime/components/Pagination.d.vue.ts +3 -2
  103. package/dist/runtime/components/Pagination.vue.d.ts +3 -2
  104. package/dist/runtime/components/PinInput.d.vue.ts +2 -1
  105. package/dist/runtime/components/PinInput.vue +17 -6
  106. package/dist/runtime/components/PinInput.vue.d.ts +2 -1
  107. package/dist/runtime/components/Popover.d.vue.ts +2 -0
  108. package/dist/runtime/components/Popover.vue +14 -7
  109. package/dist/runtime/components/Popover.vue.d.ts +2 -0
  110. package/dist/runtime/components/Progress.d.vue.ts +2 -1
  111. package/dist/runtime/components/Progress.vue +6 -4
  112. package/dist/runtime/components/Progress.vue.d.ts +2 -1
  113. package/dist/runtime/components/ProseH1.d.vue.ts +2 -0
  114. package/dist/runtime/components/ProseH1.vue +7 -4
  115. package/dist/runtime/components/ProseH1.vue.d.ts +2 -0
  116. package/dist/runtime/components/ProseH2.d.vue.ts +2 -0
  117. package/dist/runtime/components/ProseH2.vue +7 -4
  118. package/dist/runtime/components/ProseH2.vue.d.ts +2 -0
  119. package/dist/runtime/components/ProseH3.d.vue.ts +2 -0
  120. package/dist/runtime/components/ProseH3.vue +7 -4
  121. package/dist/runtime/components/ProseH3.vue.d.ts +2 -0
  122. package/dist/runtime/components/ProseH4.d.vue.ts +2 -0
  123. package/dist/runtime/components/ProseH4.vue +7 -4
  124. package/dist/runtime/components/ProseH4.vue.d.ts +2 -0
  125. package/dist/runtime/components/ProseH5.d.vue.ts +2 -0
  126. package/dist/runtime/components/ProseH5.vue +7 -4
  127. package/dist/runtime/components/ProseH5.vue.d.ts +2 -0
  128. package/dist/runtime/components/ProseH6.d.vue.ts +2 -0
  129. package/dist/runtime/components/ProseH6.vue +7 -4
  130. package/dist/runtime/components/ProseH6.vue.d.ts +2 -0
  131. package/dist/runtime/components/ProsePre.d.vue.ts +4 -2
  132. package/dist/runtime/components/ProsePre.vue +9 -3
  133. package/dist/runtime/components/ProsePre.vue.d.ts +4 -2
  134. package/dist/runtime/components/RadioGroup.d.vue.ts +2 -1
  135. package/dist/runtime/components/RadioGroup.vue +9 -5
  136. package/dist/runtime/components/RadioGroup.vue.d.ts +2 -1
  137. package/dist/runtime/components/Rating.d.vue.ts +2 -1
  138. package/dist/runtime/components/Rating.vue +4 -1
  139. package/dist/runtime/components/Rating.vue.d.ts +2 -1
  140. package/dist/runtime/components/ReadMore.d.vue.ts +3 -0
  141. package/dist/runtime/components/ReadMore.vue +24 -6
  142. package/dist/runtime/components/ReadMore.vue.d.ts +3 -0
  143. package/dist/runtime/components/Select.d.vue.ts +21 -57
  144. package/dist/runtime/components/Select.vue +58 -9
  145. package/dist/runtime/components/Select.vue.d.ts +21 -57
  146. package/dist/runtime/components/Separator.d.vue.ts +2 -1
  147. package/dist/runtime/components/Separator.vue +4 -2
  148. package/dist/runtime/components/Separator.vue.d.ts +2 -1
  149. package/dist/runtime/components/Slideover.d.vue.ts +2 -0
  150. package/dist/runtime/components/Slideover.vue +21 -8
  151. package/dist/runtime/components/Slideover.vue.d.ts +2 -0
  152. package/dist/runtime/components/SlideoverRenderer.vue +25 -18
  153. package/dist/runtime/components/Slider.d.vue.ts +2 -1
  154. package/dist/runtime/components/Slider.vue +4 -1
  155. package/dist/runtime/components/Slider.vue.d.ts +2 -1
  156. package/dist/runtime/components/SplitterResizeHandle.d.vue.ts +3 -0
  157. package/dist/runtime/components/SplitterResizeHandle.vue +5 -2
  158. package/dist/runtime/components/SplitterResizeHandle.vue.d.ts +3 -0
  159. package/dist/runtime/components/Stepper.d.vue.ts +2 -1
  160. package/dist/runtime/components/Stepper.vue +4 -1
  161. package/dist/runtime/components/Stepper.vue.d.ts +2 -1
  162. package/dist/runtime/components/Switch.d.vue.ts +2 -1
  163. package/dist/runtime/components/Switch.vue +4 -2
  164. package/dist/runtime/components/Switch.vue.d.ts +2 -1
  165. package/dist/runtime/components/Table.d.vue.ts +28 -80
  166. package/dist/runtime/components/Table.vue +25 -13
  167. package/dist/runtime/components/Table.vue.d.ts +28 -80
  168. package/dist/runtime/components/Tabs.d.vue.ts +3 -0
  169. package/dist/runtime/components/Tabs.vue +5 -1
  170. package/dist/runtime/components/Tabs.vue.d.ts +3 -0
  171. package/dist/runtime/components/Textarea.d.vue.ts +2 -1
  172. package/dist/runtime/components/Textarea.vue +11 -6
  173. package/dist/runtime/components/Textarea.vue.d.ts +2 -1
  174. package/dist/runtime/components/Theme.d.vue.ts +16 -5
  175. package/dist/runtime/components/Theme.vue +30 -5
  176. package/dist/runtime/components/Theme.vue.d.ts +16 -5
  177. package/dist/runtime/components/Toast.vue +11 -39
  178. package/dist/runtime/components/Toggle.d.vue.ts +2 -1
  179. package/dist/runtime/components/Toggle.vue +4 -1
  180. package/dist/runtime/components/Toggle.vue.d.ts +2 -1
  181. package/dist/runtime/components/ToggleGroup.d.vue.ts +2 -1
  182. package/dist/runtime/components/ToggleGroup.vue +4 -1
  183. package/dist/runtime/components/ToggleGroup.vue.d.ts +2 -1
  184. package/dist/runtime/components/Tooltip.vue +3 -2
  185. package/dist/runtime/components/Tree.d.vue.ts +5 -2
  186. package/dist/runtime/components/Tree.vue +5 -1
  187. package/dist/runtime/components/Tree.vue.d.ts +5 -2
  188. package/dist/runtime/composables/use-drawer.d.ts +1 -22
  189. package/dist/runtime/composables/use-drawer.js +12 -18
  190. package/dist/runtime/composables/use-form-field.d.ts +1 -0
  191. package/dist/runtime/composables/use-icons.d.ts +2 -2
  192. package/dist/runtime/composables/use-icons.js +1 -1
  193. package/dist/runtime/composables/use-locale.d.ts +2 -2
  194. package/dist/runtime/composables/use-locale.js +1 -1
  195. package/dist/runtime/composables/use-media-query.d.ts +6 -8
  196. package/dist/runtime/composables/use-media-query.js +7 -2
  197. package/dist/runtime/composables/use-messages.d.ts +2 -2
  198. package/dist/runtime/composables/use-messages.js +1 -1
  199. package/dist/runtime/composables/use-modal.d.ts +1 -17
  200. package/dist/runtime/composables/use-modal.js +12 -18
  201. package/dist/runtime/composables/use-ripple.d.ts +2 -2
  202. package/dist/runtime/composables/use-ripple.js +1 -1
  203. package/dist/runtime/composables/use-slideover.d.ts +1 -19
  204. package/dist/runtime/composables/use-slideover.js +12 -18
  205. package/dist/runtime/composables/use-table.d.ts +74 -17
  206. package/dist/runtime/composables/use-table.js +4 -1
  207. package/dist/runtime/composables/use-toast.d.ts +8 -8
  208. package/dist/runtime/composables/use-toast.js +9 -11
  209. package/dist/runtime/default-color-metadata.d.ts +4 -0
  210. package/dist/runtime/default-color-metadata.js +4 -0
  211. package/dist/runtime/default-colors.css +1 -0
  212. package/dist/runtime/internal/ColorPickerBody.d.vue.ts +1 -0
  213. package/dist/runtime/internal/ColorPickerBody.vue +24 -1
  214. package/dist/runtime/internal/ColorPickerBody.vue.d.ts +1 -0
  215. package/dist/runtime/internal/ComboboxSelectBase.d.vue.ts +50 -46
  216. package/dist/runtime/internal/ComboboxSelectBase.vue +340 -93
  217. package/dist/runtime/internal/ComboboxSelectBase.vue.d.ts +50 -46
  218. package/dist/runtime/internal/ComboboxSelectBody.d.vue.ts +29 -23
  219. package/dist/runtime/internal/ComboboxSelectBody.vue +74 -40
  220. package/dist/runtime/internal/ComboboxSelectBody.vue.d.ts +29 -23
  221. package/dist/runtime/internal/DatePickerCalendarBody.d.vue.ts +3 -5
  222. package/dist/runtime/internal/DatePickerCalendarBody.vue +2 -2
  223. package/dist/runtime/internal/DatePickerCalendarBody.vue.d.ts +3 -5
  224. package/dist/runtime/internal/DatePickerRangeCalendarBody.d.vue.ts +3 -5
  225. package/dist/runtime/internal/DatePickerRangeCalendarBody.vue +1 -1
  226. package/dist/runtime/internal/DatePickerRangeCalendarBody.vue.d.ts +3 -5
  227. package/dist/runtime/internal/DatePickerTimeBody.d.vue.ts +2 -4
  228. package/dist/runtime/internal/DatePickerTimeBody.vue.d.ts +2 -4
  229. package/dist/runtime/internal/ProgrammaticTheme.d.vue.ts +17 -0
  230. package/dist/runtime/internal/ProgrammaticTheme.vue +41 -0
  231. package/dist/runtime/internal/ProgrammaticTheme.vue.d.ts +17 -0
  232. package/dist/runtime/internal/TimeStepper.vue +1 -1
  233. package/dist/runtime/internal/ToastItemRenderer.d.vue.ts +14 -0
  234. package/dist/runtime/internal/ToastItemRenderer.vue +54 -0
  235. package/dist/runtime/internal/ToastItemRenderer.vue.d.ts +14 -0
  236. package/dist/runtime/internal/combobox-select.d.ts +52 -0
  237. package/dist/runtime/{composables/use-combobox-select.js → internal/combobox-select.js} +26 -11
  238. package/dist/runtime/internal/programmatic-services.d.ts +71 -0
  239. package/dist/runtime/internal/programmatic-services.js +61 -0
  240. package/dist/runtime/prose.css +1 -1
  241. package/dist/runtime/structural.css +1 -0
  242. package/dist/runtime/table.d.ts +3 -0
  243. package/dist/runtime/table.js +1 -0
  244. package/dist/runtime/theme/accordion.d.ts +27 -0
  245. package/dist/runtime/theme/accordion.js +15 -6
  246. package/dist/runtime/theme/alert-dialog.js +5 -5
  247. package/dist/runtime/theme/alert.js +6 -15
  248. package/dist/runtime/theme/avatar-group.js +2 -2
  249. package/dist/runtime/theme/avatar.js +12 -18
  250. package/dist/runtime/theme/badge.d.ts +39 -9
  251. package/dist/runtime/theme/badge.js +11 -40
  252. package/dist/runtime/theme/breadcrumb.d.ts +29 -47
  253. package/dist/runtime/theme/breadcrumb.js +16 -5
  254. package/dist/runtime/theme/button.d.ts +45 -15
  255. package/dist/runtime/theme/button.js +10 -57
  256. package/dist/runtime/theme/callout.js +7 -7
  257. package/dist/runtime/theme/card.js +7 -7
  258. package/dist/runtime/theme/checkbox.d.ts +21 -84
  259. package/dist/runtime/theme/checkbox.js +15 -36
  260. package/dist/runtime/theme/chip.js +4 -22
  261. package/dist/runtime/theme/code-button.js +2 -2
  262. package/dist/runtime/theme/code-tree.d.ts +3 -3
  263. package/dist/runtime/theme/code-tree.js +4 -4
  264. package/dist/runtime/theme/collapsible.d.ts +27 -0
  265. package/dist/runtime/theme/collapsible.js +12 -3
  266. package/dist/runtime/theme/color-picker.d.ts +18 -54
  267. package/dist/runtime/theme/color-picker.js +19 -18
  268. package/dist/runtime/theme/command-palette.d.ts +6 -6
  269. package/dist/runtime/theme/command-palette.js +12 -10
  270. package/dist/runtime/theme/content-navigation.d.ts +27 -0
  271. package/dist/runtime/theme/content-navigation.js +14 -5
  272. package/dist/runtime/theme/content-surround.d.ts +27 -0
  273. package/dist/runtime/theme/content-surround.js +13 -4
  274. package/dist/runtime/theme/content-toc.d.ts +27 -0
  275. package/dist/runtime/theme/content-toc.js +14 -5
  276. package/dist/runtime/theme/context-menu.js +7 -7
  277. package/dist/runtime/theme/dashboard-navbar.d.ts +6 -6
  278. package/dist/runtime/theme/dashboard-navbar.js +2 -2
  279. package/dist/runtime/theme/dashboard-resize-handle.js +3 -3
  280. package/dist/runtime/theme/dashboard-sidebar.js +3 -3
  281. package/dist/runtime/theme/date-picker.js +10 -10
  282. package/dist/runtime/theme/drawer.js +9 -9
  283. package/dist/runtime/theme/dropdown.js +7 -7
  284. package/dist/runtime/theme/file-tree.d.ts +27 -0
  285. package/dist/runtime/theme/file-tree.js +12 -3
  286. package/dist/runtime/theme/file-upload.d.ts +18 -72
  287. package/dist/runtime/theme/file-upload.js +20 -19
  288. package/dist/runtime/theme/form-field.js +5 -5
  289. package/dist/runtime/theme/header.d.ts +3 -3
  290. package/dist/runtime/theme/header.js +1 -1
  291. package/dist/runtime/theme/icon.d.ts +30 -57
  292. package/dist/runtime/theme/icon.js +19 -9
  293. package/dist/runtime/theme/input-number.d.ts +21 -63
  294. package/dist/runtime/theme/input-number.js +12 -12
  295. package/dist/runtime/theme/input.d.ts +21 -63
  296. package/dist/runtime/theme/input.js +12 -12
  297. package/dist/runtime/theme/kbd.js +1 -1
  298. package/dist/runtime/theme/modal.js +4 -4
  299. package/dist/runtime/theme/navigation-menu.d.ts +2 -0
  300. package/dist/runtime/theme/navigation-menu.js +17 -28
  301. package/dist/runtime/theme/page-header.js +3 -3
  302. package/dist/runtime/theme/pagination.js +1 -1
  303. package/dist/runtime/theme/pin-input.d.ts +21 -63
  304. package/dist/runtime/theme/pin-input.js +13 -11
  305. package/dist/runtime/theme/popover.js +2 -2
  306. package/dist/runtime/theme/progress.d.ts +21 -84
  307. package/dist/runtime/theme/progress.js +12 -12
  308. package/dist/runtime/theme/prose.d.ts +35 -50
  309. package/dist/runtime/theme/prose.js +24 -11
  310. package/dist/runtime/theme/radio-group.d.ts +21 -84
  311. package/dist/runtime/theme/radio-group.js +16 -22
  312. package/dist/runtime/theme/rating.d.ts +21 -63
  313. package/dist/runtime/theme/rating.js +10 -10
  314. package/dist/runtime/theme/read-more.d.ts +27 -0
  315. package/dist/runtime/theme/read-more.js +13 -4
  316. package/dist/runtime/theme/scroll-area.d.ts +3 -3
  317. package/dist/runtime/theme/scroll-area.js +2 -2
  318. package/dist/runtime/theme/select.d.ts +21 -54
  319. package/dist/runtime/theme/select.js +32 -24
  320. package/dist/runtime/theme/separator.d.ts +18 -54
  321. package/dist/runtime/theme/separator.js +16 -12
  322. package/dist/runtime/theme/skeleton.js +4 -4
  323. package/dist/runtime/theme/slideover.js +5 -5
  324. package/dist/runtime/theme/slider.d.ts +21 -84
  325. package/dist/runtime/theme/slider.js +14 -14
  326. package/dist/runtime/theme/splitter-resize-handle.d.ts +27 -0
  327. package/dist/runtime/theme/splitter-resize-handle.js +11 -1
  328. package/dist/runtime/theme/stepper.d.ts +21 -84
  329. package/dist/runtime/theme/stepper.js +12 -33
  330. package/dist/runtime/theme/switch.d.ts +21 -84
  331. package/dist/runtime/theme/switch.js +13 -13
  332. package/dist/runtime/theme/table.d.ts +27 -0
  333. package/dist/runtime/theme/table.js +31 -21
  334. package/dist/runtime/theme/tabs.d.ts +27 -0
  335. package/dist/runtime/theme/tabs.js +17 -7
  336. package/dist/runtime/theme/textarea.d.ts +21 -63
  337. package/dist/runtime/theme/textarea.js +12 -12
  338. package/dist/runtime/theme/toast.d.ts +12 -48
  339. package/dist/runtime/theme/toast.js +9 -9
  340. package/dist/runtime/theme/toggle-group.js +5 -11
  341. package/dist/runtime/theme/toggle.js +2 -12
  342. package/dist/runtime/theme/tooltip.d.ts +3 -3
  343. package/dist/runtime/theme/tooltip.js +3 -3
  344. package/dist/runtime/theme/tree.d.ts +27 -0
  345. package/dist/runtime/theme/tree.js +13 -3
  346. package/dist/runtime/theme-api.d.ts +15 -0
  347. package/dist/runtime/theme-api.js +12 -0
  348. package/dist/runtime/theme-config.d.ts +470 -0
  349. package/dist/runtime/theme-config.js +0 -0
  350. package/dist/runtime/theme.css +1 -1
  351. package/dist/runtime/types/app-config.d.ts +11 -8
  352. package/dist/runtime/types/index.d.ts +19 -1
  353. package/dist/runtime/utils/app-scoped-state.d.ts +2 -0
  354. package/dist/runtime/utils/app-scoped-state.js +13 -0
  355. package/dist/runtime/utils/autocomplete-contracts.d.ts +24 -0
  356. package/dist/runtime/utils/autocomplete-contracts.js +0 -0
  357. package/dist/runtime/utils/color-registry.d.ts +62 -0
  358. package/dist/runtime/utils/color-registry.js +191 -0
  359. package/dist/runtime/utils/dtcg-colors.d.ts +25 -0
  360. package/dist/runtime/utils/dtcg-colors.js +40 -0
  361. package/dist/runtime/utils/file-icons.d.ts +8 -0
  362. package/dist/runtime/utils/file-icons.js +131 -0
  363. package/dist/runtime/utils/functional-tokens.d.ts +26 -0
  364. package/dist/runtime/utils/functional-tokens.js +54 -0
  365. package/dist/runtime/utils/icons.d.ts +3 -0
  366. package/dist/runtime/utils/icons.js +4 -0
  367. package/dist/runtime/utils/injection-keys.d.ts +12 -3
  368. package/dist/runtime/utils/native-input.d.ts +5 -0
  369. package/dist/runtime/utils/native-input.js +32 -0
  370. package/dist/runtime/utils/navigation-menu.d.ts +3 -0
  371. package/dist/runtime/utils/programmatic-theme.d.ts +17 -0
  372. package/dist/runtime/utils/programmatic-theme.js +59 -0
  373. package/dist/runtime/utils/registered-colors.d.ts +3 -0
  374. package/dist/runtime/utils/registered-colors.js +14 -0
  375. package/dist/runtime/utils/seed-colors.d.ts +19 -0
  376. package/dist/runtime/utils/seed-colors.js +207 -0
  377. package/dist/runtime/utils/select-contracts.d.ts +101 -0
  378. package/dist/runtime/utils/select-contracts.js +0 -0
  379. package/dist/runtime/utils/table-contracts.d.ts +60 -0
  380. package/dist/runtime/utils/table-contracts.js +0 -0
  381. package/dist/runtime/utils/ui.d.ts +26 -4
  382. package/dist/runtime/utils/ui.js +38 -5
  383. package/dist/tokens/default-colors.tokens.json +879 -0
  384. package/package.json +83 -16
  385. package/dist/runtime/composables/use-combobox-select.d.ts +0 -45
@@ -1,33 +1,12 @@
1
1
  export declare const checkboxTheme: import("tailwind-variants").TVReturnType<{
2
2
  color: {
3
- primary: {
4
- box: string;
5
- indicator: string;
6
- };
7
- neutral: {
8
- box: string;
9
- indicator: string;
10
- };
11
- secondary: {
12
- box: string;
13
- indicator: string;
14
- };
15
- success: {
16
- box: string;
17
- indicator: string;
18
- };
19
- danger: {
20
- box: string;
21
- indicator: string;
22
- };
23
- info: {
24
- box: string;
25
- indicator: string;
26
- };
27
- warning: {
28
- box: string;
29
- indicator: string;
30
- };
3
+ primary: "";
4
+ neutral: "";
5
+ secondary: "";
6
+ success: "";
7
+ danger: "";
8
+ info: "";
9
+ warning: "";
31
10
  };
32
11
  size: {
33
12
  sm: {
@@ -72,34 +51,13 @@ export declare const checkboxTheme: import("tailwind-variants").TVReturnType<{
72
51
  labelGroup: string;
73
52
  }, undefined, {
74
53
  color: {
75
- primary: {
76
- box: string;
77
- indicator: string;
78
- };
79
- neutral: {
80
- box: string;
81
- indicator: string;
82
- };
83
- secondary: {
84
- box: string;
85
- indicator: string;
86
- };
87
- success: {
88
- box: string;
89
- indicator: string;
90
- };
91
- danger: {
92
- box: string;
93
- indicator: string;
94
- };
95
- info: {
96
- box: string;
97
- indicator: string;
98
- };
99
- warning: {
100
- box: string;
101
- indicator: string;
102
- };
54
+ primary: "";
55
+ neutral: "";
56
+ secondary: "";
57
+ success: "";
58
+ danger: "";
59
+ info: "";
60
+ warning: "";
103
61
  };
104
62
  size: {
105
63
  sm: {
@@ -144,34 +102,13 @@ export declare const checkboxTheme: import("tailwind-variants").TVReturnType<{
144
102
  labelGroup: string;
145
103
  }, import("tailwind-variants").TVReturnTypeLike<{
146
104
  color: {
147
- primary: {
148
- box: string;
149
- indicator: string;
150
- };
151
- neutral: {
152
- box: string;
153
- indicator: string;
154
- };
155
- secondary: {
156
- box: string;
157
- indicator: string;
158
- };
159
- success: {
160
- box: string;
161
- indicator: string;
162
- };
163
- danger: {
164
- box: string;
165
- indicator: string;
166
- };
167
- info: {
168
- box: string;
169
- indicator: string;
170
- };
171
- warning: {
172
- box: string;
173
- indicator: string;
174
- };
105
+ primary: "";
106
+ neutral: "";
107
+ secondary: "";
108
+ success: "";
109
+ danger: "";
110
+ info: "";
111
+ warning: "";
175
112
  };
176
113
  size: {
177
114
  sm: {
@@ -16,26 +16,26 @@ export const checkboxTheme = tv({
16
16
  // element's own isolated stacking context its own background paints
17
17
  // first and the negative-z halo paints after it, same as the check
18
18
  // icon itself. Only the unchecked resting background was dropped
19
- // (transparent instead of --ui-bg), the same reason radio's item is
19
+ // (transparent instead of --selaras-resolved-surface-default), the same reason radio's item is
20
20
  // hollow - an opaque fill there would block the halo from showing as
21
21
  // a full disc instead of a ring cut off by the box's own edge.
22
- box: "relative isolate flex shrink-0 items-center justify-center rounded-[var(--ui-radius-sm)] ring-[1.5px] ring-inset ring-[var(--ui-border)] transition-colors before:absolute before:-z-10 before:[transform:scale(0)] before:rounded-full before:bg-[var(--ui-border-hover)] before:opacity-35 before:transition-transform before:duration-200 before:content-[''] hover:before:[transform:scale(1)] focus-visible:outline-none focus-visible:before:[transform:scale(1)]",
23
- indicator: "flex items-center justify-center",
22
+ box: "relative isolate flex shrink-0 items-center justify-center rounded-[var(--selaras-resolved-radius-sm)] ring-[1.5px] ring-inset ring-[var(--selaras-resolved-border-default)] transition-colors before:absolute before:-z-10 before:[transform:scale(0)] before:rounded-full before:bg-[var(--selaras-resolved-border-hover)] before:opacity-35 before:transition-transform before:duration-200 before:content-[''] hover:before:[transform:scale(1)] focus-visible:outline-none focus-visible:before:[transform:scale(1)] data-[state=checked]:bg-[var(--_selaras-color-fill)] data-[state=checked]:ring-[var(--_selaras-color-fill)] data-[state=checked]:before:bg-[var(--_selaras-color-fill-hover)] data-[state=indeterminate]:bg-[var(--_selaras-color-fill)] data-[state=indeterminate]:ring-[var(--_selaras-color-fill)] data-[state=indeterminate]:before:bg-[var(--_selaras-color-fill-hover)]",
23
+ indicator: "flex items-center justify-center text-[var(--_selaras-color-on-fill)]",
24
24
  // A hand-drawn stroke path (not an Icon/icon-registry glyph, unlike
25
25
  // every other icon in this library) animated via stroke-dasharray/
26
26
  // stroke-dashoffset - the classic "self-drawing" checkmark technique,
27
27
  // which needs a real path to control, not an arbitrary swappable
28
28
  // Iconify icon. This is a deliberate, one-off exception to the
29
29
  // icon-registry pattern documented in use-icons.ts: this glyph isn't
30
- // overridable via app.config.icons, only restylable (stroke width/
30
+ // overridable via app.config.selaras.icons, only restylable (stroke width/
31
31
  // color/duration) via these two :ui slots. dasharray/dashoffset are
32
32
  // each set to the exact measured length of their own path
33
33
  // (path.getTotalLength(), not a guess) so the "draw" finishes exactly
34
34
  // at the stroke's own end with no visible overshoot or gap.
35
35
  checkIcon: "[stroke-dasharray:20px] [stroke-dashoffset:20px] transition-[stroke-dashoffset] duration-200 data-[state=checked]:[stroke-dashoffset:0]",
36
36
  indeterminateIcon: "[stroke-dasharray:14px] [stroke-dashoffset:14px] transition-[stroke-dashoffset] duration-200 data-[state=indeterminate]:[stroke-dashoffset:0]",
37
- label: "select-none text-sm text-[var(--ui-text)]",
38
- description: "block select-none text-xs text-[var(--ui-text-muted)]",
37
+ label: "select-none text-sm text-[var(--selaras-resolved-text-default)]",
38
+ description: "block select-none text-xs text-[var(--selaras-resolved-text-muted)]",
39
39
  // Only rendered when there's a description (wrapping the label and
40
40
  // description together so they stack under one another) - same font-
41
41
  // baseline correction as RadioGroup's own labelGroup slot (see its
@@ -51,34 +51,13 @@ export const checkboxTheme = tv({
51
51
  // pairing Button's own `solid` variant already uses. Unchecked always
52
52
  // stays the same neutral ring regardless of `color`.
53
53
  color: {
54
- primary: {
55
- box: "data-[state=checked]:bg-[var(--ui-primary)] data-[state=checked]:ring-[var(--ui-primary)] data-[state=checked]:before:bg-[var(--ui-primary)] data-[state=indeterminate]:bg-[var(--ui-primary)] data-[state=indeterminate]:ring-[var(--ui-primary)] data-[state=indeterminate]:before:bg-[var(--ui-primary)]",
56
- indicator: "text-[var(--ui-primary-foreground)]"
57
- },
58
- neutral: {
59
- box: "data-[state=checked]:bg-[var(--ui-bg-inverted)] data-[state=checked]:ring-[var(--ui-bg-inverted)] data-[state=checked]:before:bg-[var(--ui-bg-inverted)] data-[state=indeterminate]:bg-[var(--ui-bg-inverted)] data-[state=indeterminate]:ring-[var(--ui-bg-inverted)] data-[state=indeterminate]:before:bg-[var(--ui-bg-inverted)]",
60
- indicator: "text-[var(--ui-text-inverted)]"
61
- },
62
- secondary: {
63
- box: "data-[state=checked]:bg-[var(--ui-secondary)] data-[state=checked]:ring-[var(--ui-secondary)] data-[state=checked]:before:bg-[var(--ui-secondary)] data-[state=indeterminate]:bg-[var(--ui-secondary)] data-[state=indeterminate]:ring-[var(--ui-secondary)] data-[state=indeterminate]:before:bg-[var(--ui-secondary)]",
64
- indicator: "text-[var(--ui-secondary-foreground)]"
65
- },
66
- success: {
67
- box: "data-[state=checked]:bg-[var(--ui-success)] data-[state=checked]:ring-[var(--ui-success)] data-[state=checked]:before:bg-[var(--ui-success)] data-[state=indeterminate]:bg-[var(--ui-success)] data-[state=indeterminate]:ring-[var(--ui-success)] data-[state=indeterminate]:before:bg-[var(--ui-success)]",
68
- indicator: "text-[var(--ui-success-foreground)]"
69
- },
70
- danger: {
71
- box: "data-[state=checked]:bg-[var(--ui-danger)] data-[state=checked]:ring-[var(--ui-danger)] data-[state=checked]:before:bg-[var(--ui-danger)] data-[state=indeterminate]:bg-[var(--ui-danger)] data-[state=indeterminate]:ring-[var(--ui-danger)] data-[state=indeterminate]:before:bg-[var(--ui-danger)]",
72
- indicator: "text-[var(--ui-danger-foreground)]"
73
- },
74
- info: {
75
- box: "data-[state=checked]:bg-[var(--ui-info)] data-[state=checked]:ring-[var(--ui-info)] data-[state=checked]:before:bg-[var(--ui-info)] data-[state=indeterminate]:bg-[var(--ui-info)] data-[state=indeterminate]:ring-[var(--ui-info)] data-[state=indeterminate]:before:bg-[var(--ui-info)]",
76
- indicator: "text-[var(--ui-info-foreground)]"
77
- },
78
- warning: {
79
- box: "data-[state=checked]:bg-[var(--ui-warning)] data-[state=checked]:ring-[var(--ui-warning)] data-[state=checked]:before:bg-[var(--ui-warning)] data-[state=indeterminate]:bg-[var(--ui-warning)] data-[state=indeterminate]:ring-[var(--ui-warning)] data-[state=indeterminate]:before:bg-[var(--ui-warning)]",
80
- indicator: "text-[var(--ui-warning-foreground)]"
81
- }
54
+ primary: "",
55
+ neutral: "",
56
+ secondary: "",
57
+ success: "",
58
+ danger: "",
59
+ info: "",
60
+ warning: ""
82
61
  },
83
62
  // Same +4px-per-step scale RadioGroup's own `size` variant uses.
84
63
  size: {
@@ -93,7 +72,7 @@ export const checkboxTheme = tv({
93
72
  variant: {
94
73
  default: {},
95
74
  card: {
96
- root: "w-full items-start gap-3 rounded-[var(--ui-radius-md)] border border-[var(--ui-border)] px-3.5 py-3 transition-colors has-[[data-state=checked]]:border-[var(--ui-primary)] has-[[data-state=checked]]:bg-[var(--ui-primary-soft)]",
75
+ root: "w-full items-start gap-3 rounded-[var(--selaras-resolved-radius-md)] border border-[var(--selaras-resolved-border-default)] px-3.5 py-3 transition-colors has-[[data-state=checked]]:border-[var(--_selaras-color-fill)] has-[[data-state=checked]]:bg-[var(--_selaras-color-subtle)]",
97
76
  box: "mt-0.5"
98
77
  }
99
78
  },
@@ -103,7 +82,7 @@ export const checkboxTheme = tv({
103
82
  // requested, not whichever variant happens to compose later. See
104
83
  // RadioGroup's own theme file, which already has this order right.
105
84
  invalid: {
106
- true: { box: "ring-[var(--ui-danger)] data-[state=checked]:ring-[var(--ui-danger)] data-[state=indeterminate]:ring-[var(--ui-danger)]" }
85
+ true: { box: "ring-[var(--_selaras-color-border)] data-[state=checked]:ring-[var(--_selaras-color-border)] data-[state=indeterminate]:ring-[var(--_selaras-color-border)]" }
107
86
  }
108
87
  },
109
88
  defaultVariants: {
@@ -5,7 +5,7 @@ export const chipTheme = tv({
5
5
  // specific chip into the fully-rounded pill look instead. Padding/
6
6
  // height below is Badge's original scale, carried over here; Badge
7
7
  // itself moved to a tighter one (see badge.ts).
8
- root: "inline-flex items-center gap-1 rounded-[var(--ui-radius-sm)] font-medium whitespace-nowrap",
8
+ root: "inline-flex items-center gap-1 rounded-[var(--selaras-resolved-radius-sm)] font-medium whitespace-nowrap",
9
9
  leadingIcon: "shrink-0",
10
10
  label: "truncate",
11
11
  // inline-flex items-center justify-center centers the icon in both
@@ -56,27 +56,9 @@ export const chipTheme = tv({
56
56
  { size: "sm", removable: true, class: { root: "pe-1" } },
57
57
  { size: "md", removable: true, class: { root: "pe-1.5" } },
58
58
  { size: "lg", removable: true, class: { root: "pe-2" } },
59
- { color: "primary", variant: "solid", class: { root: "bg-[var(--ui-primary)] text-[var(--ui-primary-foreground)]" } },
60
- { color: "primary", variant: "soft", class: { root: "bg-[var(--ui-primary-soft)] text-[var(--ui-primary)]" } },
61
- { color: "primary", variant: "outline", class: { root: "ring-1 ring-inset ring-[var(--ui-primary)] text-[var(--ui-primary)]" } },
62
- { color: "neutral", variant: "solid", class: { root: "bg-[var(--ui-neutral)] text-[var(--ui-neutral-foreground)]" } },
63
- { color: "neutral", variant: "soft", class: { root: "bg-[var(--ui-neutral-soft)] text-[var(--ui-text)]" } },
64
- { color: "neutral", variant: "outline", class: { root: "ring-1 ring-inset ring-[var(--ui-border)] text-[var(--ui-text)]" } },
65
- { color: "secondary", variant: "solid", class: { root: "bg-[var(--ui-secondary)] text-[var(--ui-secondary-foreground)]" } },
66
- { color: "secondary", variant: "soft", class: { root: "bg-[var(--ui-secondary-soft)] text-[var(--ui-secondary)]" } },
67
- { color: "secondary", variant: "outline", class: { root: "ring-1 ring-inset ring-[var(--ui-secondary)] text-[var(--ui-secondary)]" } },
68
- { color: "success", variant: "solid", class: { root: "bg-[var(--ui-success)] text-[var(--ui-success-foreground)]" } },
69
- { color: "success", variant: "soft", class: { root: "bg-[var(--ui-success-soft)] text-[var(--ui-success)]" } },
70
- { color: "success", variant: "outline", class: { root: "ring-1 ring-inset ring-[var(--ui-success)] text-[var(--ui-success)]" } },
71
- { color: "danger", variant: "solid", class: { root: "bg-[var(--ui-danger)] text-[var(--ui-danger-foreground)]" } },
72
- { color: "danger", variant: "soft", class: { root: "bg-[var(--ui-danger-soft)] text-[var(--ui-danger)]" } },
73
- { color: "danger", variant: "outline", class: { root: "ring-1 ring-inset ring-[var(--ui-danger)] text-[var(--ui-danger)]" } },
74
- { color: "info", variant: "solid", class: { root: "bg-[var(--ui-info)] text-[var(--ui-info-foreground)]" } },
75
- { color: "info", variant: "soft", class: { root: "bg-[var(--ui-info-soft)] text-[var(--ui-info)]" } },
76
- { color: "info", variant: "outline", class: { root: "ring-1 ring-inset ring-[var(--ui-info)] text-[var(--ui-info)]" } },
77
- { color: "warning", variant: "solid", class: { root: "bg-[var(--ui-warning)] text-[var(--ui-warning-foreground)]" } },
78
- { color: "warning", variant: "soft", class: { root: "bg-[var(--ui-warning-soft)] text-[var(--ui-warning)]" } },
79
- { color: "warning", variant: "outline", class: { root: "ring-1 ring-inset ring-[var(--ui-warning)] text-[var(--ui-warning)]" } }
59
+ { variant: "solid", class: { root: "bg-[var(--_selaras-color-fill)] text-[var(--_selaras-color-on-fill)]" } },
60
+ { variant: "soft", class: { root: "bg-[var(--_selaras-color-subtle)] text-[var(--_selaras-color-text)]" } },
61
+ { variant: "outline", class: { root: "ring-1 ring-inset ring-[var(--_selaras-color-border)] text-[var(--_selaras-color-text)]" } }
80
62
  ],
81
63
  defaultVariants: {
82
64
  color: "neutral",
@@ -1,7 +1,7 @@
1
1
  import { tv } from "tailwind-variants";
2
2
  export const codeButtonTheme = tv({
3
3
  slots: {
4
- root: "inline-flex items-center gap-1.5 rounded-[var(--ui-radius-sm)] bg-[var(--ui-bg-elevated)] px-2 py-1 font-mono text-sm text-[var(--ui-text)] transition-colors hover:bg-[var(--ui-bg-elevated)]/70",
5
- icon: "size-3.5 shrink-0 text-[var(--ui-text-muted)]"
4
+ root: "inline-flex items-center gap-1.5 rounded-[var(--selaras-resolved-radius-sm)] bg-[var(--selaras-resolved-surface-elevated)] px-2 py-1 font-mono text-sm text-[var(--selaras-resolved-text-default)] transition-colors hover:bg-[var(--selaras-resolved-surface-elevated)]/70",
5
+ icon: "size-3.5 shrink-0 text-[var(--selaras-resolved-text-muted)]"
6
6
  }
7
7
  });
@@ -3,9 +3,9 @@ export declare const codeTreeTheme: import("tailwind-variants").TVReturnType<{
3
3
  [key: string]: import("tailwind-variants").ClassValue | {
4
4
  root?: import("tailwind-variants").ClassValue;
5
5
  content?: import("tailwind-variants").ClassValue;
6
+ tree?: import("tailwind-variants").ClassValue;
6
7
  pre?: import("tailwind-variants").ClassValue;
7
8
  empty?: import("tailwind-variants").ClassValue;
8
- tree?: import("tailwind-variants").ClassValue;
9
9
  };
10
10
  };
11
11
  } | {
@@ -13,9 +13,9 @@ export declare const codeTreeTheme: import("tailwind-variants").TVReturnType<{
13
13
  [x: string]: import("tailwind-variants").ClassValue | {
14
14
  root?: import("tailwind-variants").ClassValue;
15
15
  content?: import("tailwind-variants").ClassValue;
16
+ tree?: import("tailwind-variants").ClassValue;
16
17
  pre?: import("tailwind-variants").ClassValue;
17
18
  empty?: import("tailwind-variants").ClassValue;
18
- tree?: import("tailwind-variants").ClassValue;
19
19
  };
20
20
  };
21
21
  } | {}, {
@@ -29,9 +29,9 @@ export declare const codeTreeTheme: import("tailwind-variants").TVReturnType<{
29
29
  [key: string]: import("tailwind-variants").ClassValue | {
30
30
  root?: import("tailwind-variants").ClassValue;
31
31
  content?: import("tailwind-variants").ClassValue;
32
+ tree?: import("tailwind-variants").ClassValue;
32
33
  pre?: import("tailwind-variants").ClassValue;
33
34
  empty?: import("tailwind-variants").ClassValue;
34
- tree?: import("tailwind-variants").ClassValue;
35
35
  };
36
36
  };
37
37
  } | {}, {
@@ -1,13 +1,13 @@
1
1
  import { tv } from "tailwind-variants";
2
2
  export const codeTreeTheme = tv({
3
3
  slots: {
4
- root: "flex overflow-hidden rounded-[var(--ui-radius-md)] border border-[var(--ui-border)] bg-[var(--ui-bg)]",
4
+ root: "flex overflow-hidden rounded-[var(--selaras-resolved-radius-md)] border border-[var(--selaras-resolved-border-default)] bg-[var(--selaras-resolved-surface-default)]",
5
5
  // FileTree's own root box (border/bg/padding) is stripped via its :ui
6
6
  // override below - this wrapper provides that framing instead, so the
7
7
  // two panels read as one split view rather than a box inside a box.
8
- tree: "w-56 shrink-0 overflow-auto border-e border-[var(--ui-border)] p-2",
8
+ tree: "w-56 shrink-0 overflow-auto border-e border-[var(--selaras-resolved-border-default)] p-2",
9
9
  content: "min-w-0 flex-1 overflow-auto p-4",
10
- pre: "whitespace-pre font-mono text-sm text-[var(--ui-text)]",
11
- empty: "flex flex-1 items-center justify-center p-4 text-center text-sm text-[var(--ui-text-muted)]"
10
+ pre: "whitespace-pre font-mono text-sm text-[var(--selaras-resolved-text-default)]",
11
+ empty: "flex flex-1 items-center justify-center p-4 text-center text-sm text-[var(--selaras-resolved-text-muted)]"
12
12
  }
13
13
  });
@@ -1,4 +1,13 @@
1
1
  export declare const collapsibleTheme: import("tailwind-variants").TVReturnType<{
2
+ color: {
3
+ primary: "";
4
+ neutral: "";
5
+ secondary: "";
6
+ success: "";
7
+ danger: "";
8
+ info: "";
9
+ warning: "";
10
+ };
2
11
  size: {
3
12
  sm: {
4
13
  trigger: string;
@@ -30,6 +39,15 @@ export declare const collapsibleTheme: import("tailwind-variants").TVReturnType<
30
39
  content: string;
31
40
  contentInner: string;
32
41
  }, undefined, {
42
+ color: {
43
+ primary: "";
44
+ neutral: "";
45
+ secondary: "";
46
+ success: "";
47
+ danger: "";
48
+ info: "";
49
+ warning: "";
50
+ };
33
51
  size: {
34
52
  sm: {
35
53
  trigger: string;
@@ -61,6 +79,15 @@ export declare const collapsibleTheme: import("tailwind-variants").TVReturnType<
61
79
  content: string;
62
80
  contentInner: string;
63
81
  }, import("tailwind-variants").TVReturnTypeLike<{
82
+ color: {
83
+ primary: "";
84
+ neutral: "";
85
+ secondary: "";
86
+ success: "";
87
+ danger: "";
88
+ info: "";
89
+ warning: "";
90
+ };
64
91
  size: {
65
92
  sm: {
66
93
  trigger: string;
@@ -2,13 +2,13 @@ import { tv } from "tailwind-variants";
2
2
  export const collapsibleTheme = tv({
3
3
  slots: {
4
4
  root: "w-full",
5
- trigger: "group flex w-full items-center justify-between gap-2 text-start font-medium text-[var(--ui-text)] transition-colors hover:text-[var(--ui-primary)] disabled:opacity-50 disabled:pointer-events-none",
6
- chevron: "size-4 shrink-0 text-[var(--ui-text-muted)] transition-transform group-data-[state=open]:rotate-180",
5
+ trigger: "group flex w-full items-center justify-between gap-2 text-start font-medium text-[var(--selaras-resolved-text-default)] transition-colors hover:text-[var(--_selaras-color-text-hover)] disabled:opacity-50 disabled:pointer-events-none",
6
+ chevron: "size-4 shrink-0 text-[var(--selaras-resolved-text-muted)] transition-transform group-data-[state=open]:rotate-180",
7
7
  // overflow-hidden clips the panel to its own animated height (without
8
8
  // it, content would visibly spill out mid-animation); the two
9
9
  // data-state keyframes interpolate between 0 and Reka's own measured
10
10
  // --reka-collapsible-content-height, so this never hardcodes a height.
11
- content: "overflow-hidden text-[var(--ui-text-muted)] data-[state=open]:animate-[selaras-collapsible-down_200ms_ease-out] data-[state=closed]:animate-[selaras-collapsible-up_200ms_ease-out]",
11
+ content: "overflow-hidden text-[var(--selaras-resolved-text-muted)] data-[state=open]:animate-[selaras-collapsible-down_200ms_ease-out] data-[state=closed]:animate-[selaras-collapsible-up_200ms_ease-out]",
12
12
  // A separate slot (not `content` itself) for the padding - the padding
13
13
  // must NOT be part of the height being animated (animating a 0-to-N
14
14
  // height with vertical padding baked in either clips the last few
@@ -17,6 +17,15 @@ export const collapsibleTheme = tv({
17
17
  contentInner: "pt-2"
18
18
  },
19
19
  variants: {
20
+ color: {
21
+ primary: "",
22
+ neutral: "",
23
+ secondary: "",
24
+ success: "",
25
+ danger: "",
26
+ info: "",
27
+ warning: ""
28
+ },
20
29
  size: {
21
30
  sm: { trigger: "text-sm", content: "text-sm" },
22
31
  md: { trigger: "text-sm", content: "text-sm" },
@@ -11,27 +11,15 @@ export declare const colorPickerTheme: import("tailwind-variants").TVReturnType<
11
11
  };
12
12
  };
13
13
  color: {
14
- primary: {
15
- trigger: string;
16
- };
14
+ primary: "";
17
15
  neutral: {
18
16
  trigger: string;
19
17
  };
20
- secondary: {
21
- trigger: string;
22
- };
23
- success: {
24
- trigger: string;
25
- };
26
- danger: {
27
- trigger: string;
28
- };
29
- info: {
30
- trigger: string;
31
- };
32
- warning: {
33
- trigger: string;
34
- };
18
+ secondary: "";
19
+ success: "";
20
+ danger: "";
21
+ info: "";
22
+ warning: "";
35
23
  };
36
24
  }, {
37
25
  trigger: string;
@@ -61,27 +49,15 @@ export declare const colorPickerTheme: import("tailwind-variants").TVReturnType<
61
49
  };
62
50
  };
63
51
  color: {
64
- primary: {
65
- trigger: string;
66
- };
52
+ primary: "";
67
53
  neutral: {
68
54
  trigger: string;
69
55
  };
70
- secondary: {
71
- trigger: string;
72
- };
73
- success: {
74
- trigger: string;
75
- };
76
- danger: {
77
- trigger: string;
78
- };
79
- info: {
80
- trigger: string;
81
- };
82
- warning: {
83
- trigger: string;
84
- };
56
+ secondary: "";
57
+ success: "";
58
+ danger: "";
59
+ info: "";
60
+ warning: "";
85
61
  };
86
62
  }, {
87
63
  trigger: string;
@@ -111,27 +87,15 @@ export declare const colorPickerTheme: import("tailwind-variants").TVReturnType<
111
87
  };
112
88
  };
113
89
  color: {
114
- primary: {
115
- trigger: string;
116
- };
90
+ primary: "";
117
91
  neutral: {
118
92
  trigger: string;
119
93
  };
120
- secondary: {
121
- trigger: string;
122
- };
123
- success: {
124
- trigger: string;
125
- };
126
- danger: {
127
- trigger: string;
128
- };
129
- info: {
130
- trigger: string;
131
- };
132
- warning: {
133
- trigger: string;
134
- };
94
+ secondary: "";
95
+ success: "";
96
+ danger: "";
97
+ info: "";
98
+ warning: "";
135
99
  };
136
100
  }, {
137
101
  trigger: string;
@@ -4,7 +4,7 @@ export const colorPickerTheme = tv({
4
4
  // Same chrome as Select's own trigger (select.ts) - both are a form
5
5
  // field that opens a popover, so they share the exact ring/hover/
6
6
  // focus/disabled treatment rather than reinventing it here.
7
- trigger: "inline-flex w-full min-h-10 items-center gap-2 rounded-[var(--ui-radius-md)] bg-[var(--ui-bg)] px-3 py-1.5 text-sm ring-1 ring-inset ring-[var(--ui-border)] outline-none transition-[color,background-color,box-shadow] not-focus:not-data-[state=open]:hover:ring-[var(--ui-border-hover)] hover:bg-[var(--ui-bg-elevated)] focus:ring-2 data-[state=open]:ring-2 disabled:opacity-50 disabled:pointer-events-none",
7
+ trigger: "inline-flex w-full min-h-10 items-center gap-2 rounded-[var(--selaras-resolved-radius-md)] bg-[var(--selaras-resolved-surface-default)] px-3 py-1.5 text-sm ring-1 ring-inset ring-[var(--selaras-resolved-border-default)] outline-none transition-[color,background-color,box-shadow] not-focus:not-data-[state=open]:hover:ring-[var(--selaras-resolved-border-hover)] hover:bg-[var(--selaras-resolved-surface-elevated)] focus:ring-2 focus:ring-[var(--_selaras-color-focus)] data-[state=open]:ring-2 data-[state=open]:ring-[var(--_selaras-color-focus)] disabled:opacity-50 disabled:pointer-events-none",
8
8
  // Painted via ColorSwatch's own exposed --reka-color-swatch-color
9
9
  // custom property - ColorSwatch.js applies no background of its own,
10
10
  // only exposes that var, so every consumer of it (this trigger swatch
@@ -15,23 +15,23 @@ export const colorPickerTheme = tv({
15
15
  // so an abbreviated, non-CSS placeholder in place of the real value
16
16
  // gets a real attempt at CSS generation and chokes on it - confirmed:
17
17
  // that's exactly what produced a real build warning once.
18
- triggerSwatch: "size-5 shrink-0 rounded-[var(--ui-radius-sm)] bg-[var(--reka-color-swatch-color)] ring-1 ring-inset ring-black/10",
19
- triggerValue: "flex-1 truncate text-start font-mono text-[var(--ui-text)]",
20
- content: "z-[var(--ui-z-dropdown)] w-64 space-y-3 rounded-[var(--ui-radius-md)] bg-[var(--ui-bg)] p-3 shadow-[var(--ui-shadow-md)] ring-1 ring-[var(--ui-border)] data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
21
- // The `mobileModal` path's own content wrapper - none of `content`'s
18
+ triggerSwatch: "size-5 shrink-0 rounded-[var(--selaras-resolved-radius-sm)] bg-[var(--reka-color-swatch-color)] ring-1 ring-inset ring-black/10",
19
+ triggerValue: "flex-1 truncate text-start font-mono text-[var(--selaras-resolved-text-default)]",
20
+ content: "z-[var(--selaras-resolved-z-dropdown)] w-64 space-y-3 rounded-[var(--selaras-resolved-radius-md)] bg-[var(--selaras-resolved-surface-default)] p-3 shadow-[var(--selaras-resolved-shadow-md)] ring-1 ring-[var(--selaras-resolved-border-default)] data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
21
+ // The `adaptive` path's own content wrapper - none of `content`'s
22
22
  // own popover chrome (width/background/shadow/ring/rounded/animate)
23
23
  // applies here, since Modal's own card already provides that surface;
24
24
  // this only needs this picker's own internal spacing/padding, same
25
25
  // reasoning as Select's own mobileContent (select.ts).
26
26
  mobileContent: "w-full space-y-3 p-4",
27
- area: "relative h-40 w-full overflow-hidden rounded-[var(--ui-radius-sm)] cursor-crosshair",
27
+ area: "relative h-40 w-full overflow-hidden rounded-[var(--selaras-resolved-radius-sm)] cursor-crosshair",
28
28
  // Shared by the area thumb and both slider thumbs below - all three
29
29
  // are the same plain white ring-bordered circle sitting on top of a
30
30
  // color surface Reka itself paints (the area's own gradient, each
31
31
  // slider track's own gradient) - a colored ring here would fight
32
32
  // that surface instead of marking a position on it, the same reason
33
33
  // Slider.vue's own thumb stays neutral against its colored range.
34
- thumb: "block size-4 shrink-0 rounded-full border-2 border-white shadow-[var(--ui-shadow-sm)] ring-1 ring-[var(--ui-border)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ui-primary)]",
34
+ thumb: "block size-4 shrink-0 rounded-full border-2 border-white shadow-[var(--selaras-resolved-shadow-sm)] ring-1 ring-[var(--selaras-resolved-border-default)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--_selaras-color-focus)]",
35
35
  // ColorSliderRoot itself (bound onto directly, no dedicated slot of
36
36
  // its own since nothing else needs to reach it) - Reka's own default
37
37
  // `as` for it is a bare inline `span` (confirmed in Slider/SliderRoot.js,
@@ -45,9 +45,9 @@ export const colorPickerTheme = tv({
45
45
  // (ColorSliderTrack.js), not this class. Same inline-`span`-by-default
46
46
  // reasoning as sliderRoot above applies here too - `block` first.
47
47
  track: "relative block h-3 w-full cursor-pointer rounded-full ring-1 ring-inset ring-black/10",
48
- field: "w-full rounded-[var(--ui-radius-sm)] bg-[var(--ui-bg)] px-2 py-1.5 text-sm font-mono text-[var(--ui-text)] ring-1 ring-inset ring-[var(--ui-border)] outline-none transition-[color,background-color,box-shadow] not-focus:hover:ring-[var(--ui-border-hover)] focus:ring-2 focus:ring-[var(--ui-primary)]",
48
+ field: "w-full rounded-[var(--selaras-resolved-radius-sm)] bg-[var(--selaras-resolved-surface-default)] px-2 py-1.5 text-sm font-mono text-[var(--selaras-resolved-text-default)] ring-1 ring-inset ring-[var(--selaras-resolved-border-default)] outline-none transition-[color,background-color,box-shadow] not-focus:hover:ring-[var(--selaras-resolved-border-hover)] focus:ring-2 focus:ring-[var(--_selaras-color-focus)]",
49
49
  swatchList: "flex flex-wrap gap-1.5",
50
- swatch: "relative size-6 shrink-0 rounded-[var(--ui-radius-sm)] ring-1 ring-inset ring-black/10 cursor-pointer data-[highlighted]:ring-2 data-[highlighted]:ring-[var(--ui-border-hover)] data-[state=checked]:ring-2 data-[state=checked]:ring-[var(--ui-primary)] data-[disabled]:opacity-50 data-[disabled]:pointer-events-none",
50
+ swatch: "relative size-6 shrink-0 rounded-[var(--selaras-resolved-radius-sm)] ring-1 ring-inset ring-black/10 cursor-pointer data-[highlighted]:ring-2 data-[highlighted]:ring-[var(--selaras-resolved-border-hover)] data-[state=checked]:ring-2 data-[state=checked]:ring-[var(--_selaras-color-fill)] data-[disabled]:opacity-50 data-[disabled]:pointer-events-none",
51
51
  // The preset item's own color fill - same --reka-color-swatch-color
52
52
  // var as triggerSwatch, sized to fill its parent `swatch` item
53
53
  // (rounded-[inherit] so it doesn't poke past that item's own corners).
@@ -64,16 +64,17 @@ export const colorPickerTheme = tv({
64
64
  md: { trigger: "min-h-10" },
65
65
  lg: { trigger: "min-h-11 text-base" }
66
66
  },
67
- // Focus-ring color only, same scope as Select's own `color` variant -
68
- // the resting ring stays --ui-border regardless.
67
+ // Registered custom roles have no finite Tailwind Variants branch. The
68
+ // base trigger therefore owns semantic focus styling; neutral overrides
69
+ // it, while empty built-in branches retain the public recipe condition.
69
70
  color: {
70
- primary: { trigger: "focus:ring-[var(--ui-primary)] data-[state=open]:ring-[var(--ui-primary)]" },
71
- neutral: { trigger: "focus:ring-[var(--ui-bg-inverted)] data-[state=open]:ring-[var(--ui-bg-inverted)]" },
72
- secondary: { trigger: "focus:ring-[var(--ui-secondary)] data-[state=open]:ring-[var(--ui-secondary)]" },
73
- success: { trigger: "focus:ring-[var(--ui-success)] data-[state=open]:ring-[var(--ui-success)]" },
74
- danger: { trigger: "focus:ring-[var(--ui-danger)] data-[state=open]:ring-[var(--ui-danger)]" },
75
- info: { trigger: "focus:ring-[var(--ui-info)] data-[state=open]:ring-[var(--ui-info)]" },
76
- warning: { trigger: "focus:ring-[var(--ui-warning)] data-[state=open]:ring-[var(--ui-warning)]" }
71
+ primary: "",
72
+ neutral: { trigger: "focus:ring-[var(--selaras-resolved-surface-inverted)] data-[state=open]:ring-[var(--selaras-resolved-surface-inverted)]" },
73
+ secondary: "",
74
+ success: "",
75
+ danger: "",
76
+ info: "",
77
+ warning: ""
77
78
  }
78
79
  },
79
80
  defaultVariants: {
@@ -7,10 +7,10 @@ export declare const commandPaletteTheme: import("tailwind-variants").TVReturnTy
7
7
  list?: import("tailwind-variants").ClassValue;
8
8
  overlay?: import("tailwind-variants").ClassValue;
9
9
  footer?: import("tailwind-variants").ClassValue;
10
- input?: import("tailwind-variants").ClassValue;
11
- group?: import("tailwind-variants").ClassValue;
12
10
  empty?: import("tailwind-variants").ClassValue;
13
11
  searchIcon?: import("tailwind-variants").ClassValue;
12
+ input?: import("tailwind-variants").ClassValue;
13
+ group?: import("tailwind-variants").ClassValue;
14
14
  groupLabel?: import("tailwind-variants").ClassValue;
15
15
  itemIcon?: import("tailwind-variants").ClassValue;
16
16
  itemLabel?: import("tailwind-variants").ClassValue;
@@ -27,10 +27,10 @@ export declare const commandPaletteTheme: import("tailwind-variants").TVReturnTy
27
27
  list?: import("tailwind-variants").ClassValue;
28
28
  overlay?: import("tailwind-variants").ClassValue;
29
29
  footer?: import("tailwind-variants").ClassValue;
30
- input?: import("tailwind-variants").ClassValue;
31
- group?: import("tailwind-variants").ClassValue;
32
30
  empty?: import("tailwind-variants").ClassValue;
33
31
  searchIcon?: import("tailwind-variants").ClassValue;
32
+ input?: import("tailwind-variants").ClassValue;
33
+ group?: import("tailwind-variants").ClassValue;
34
34
  groupLabel?: import("tailwind-variants").ClassValue;
35
35
  itemIcon?: import("tailwind-variants").ClassValue;
36
36
  itemLabel?: import("tailwind-variants").ClassValue;
@@ -63,10 +63,10 @@ export declare const commandPaletteTheme: import("tailwind-variants").TVReturnTy
63
63
  list?: import("tailwind-variants").ClassValue;
64
64
  overlay?: import("tailwind-variants").ClassValue;
65
65
  footer?: import("tailwind-variants").ClassValue;
66
- input?: import("tailwind-variants").ClassValue;
67
- group?: import("tailwind-variants").ClassValue;
68
66
  empty?: import("tailwind-variants").ClassValue;
69
67
  searchIcon?: import("tailwind-variants").ClassValue;
68
+ input?: import("tailwind-variants").ClassValue;
69
+ group?: import("tailwind-variants").ClassValue;
70
70
  groupLabel?: import("tailwind-variants").ClassValue;
71
71
  itemIcon?: import("tailwind-variants").ClassValue;
72
72
  itemLabel?: import("tailwind-variants").ClassValue;