@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
@@ -4,7 +4,7 @@ export const fileTreeTheme = tv({
4
4
  // The outer box - only the top-level call renders this (see
5
5
  // FileTree.vue's own `isNested`); a recursive call for a directory's
6
6
  // children renders `list` directly instead, no extra wrapping element.
7
- root: "flex flex-col gap-0.5 rounded-[var(--ui-radius-md)] border border-[var(--ui-border)] bg-[var(--ui-bg)] p-2 font-mono text-sm",
7
+ root: "flex flex-col gap-0.5 rounded-[var(--selaras-resolved-radius-md)] border border-[var(--selaras-resolved-border-default)] bg-[var(--selaras-resolved-surface-default)] p-2 font-mono text-sm",
8
8
  // Real indentation, not a border/padding trick - each recursive level
9
9
  // renders its own nested <FileTree>, so depth accumulates naturally
10
10
  // via this same left padding stacking once per level. `ps-4` also
@@ -12,13 +12,22 @@ export const fileTreeTheme = tv({
12
12
  // the `isNested` variant below) reaches back into.
13
13
  list: "flex flex-col gap-0.5 ps-4 font-mono text-sm ms-3",
14
14
  item: "flex flex-col",
15
- row: "flex w-full items-center gap-1.5 rounded-[var(--ui-radius-sm)] px-1.5 py-1 text-start text-[var(--ui-text-muted)] transition-colors hover:bg-[var(--ui-bg-elevated)] hover:text-[var(--ui-text)]",
15
+ row: "flex w-full items-center gap-1.5 rounded-[var(--selaras-resolved-radius-sm)] px-1.5 py-1 text-start text-[var(--selaras-resolved-text-muted)] transition-colors hover:bg-[var(--selaras-resolved-surface-elevated)] hover:text-[var(--selaras-resolved-text-default)]",
16
16
  icon: "size-4 shrink-0",
17
17
  label: "truncate"
18
18
  },
19
19
  variants: {
20
20
  selected: {
21
- true: { row: "bg-[var(--ui-primary-soft)] text-[var(--ui-primary)] hover:bg-[var(--ui-primary-soft)] hover:text-[var(--ui-primary)]" }
21
+ true: { row: "bg-[var(--_selaras-color-subtle)] text-[var(--_selaras-color-text)] hover:bg-[var(--_selaras-color-subtle)] hover:text-[var(--_selaras-color-text)]" }
22
+ },
23
+ color: {
24
+ primary: "",
25
+ neutral: "",
26
+ secondary: "",
27
+ success: "",
28
+ danger: "",
29
+ info: "",
30
+ warning: ""
22
31
  },
23
32
  // FileTree.vue recurses into itself for every directory's own
24
33
  // children, reusing this exact same `item` slot at every depth -
@@ -26,34 +26,16 @@ export declare const fileUploadTheme: import("tailwind-variants").TVReturnType<{
26
26
  };
27
27
  };
28
28
  color: {
29
- primary: {
30
- icon: string;
31
- dropzone: string;
32
- };
29
+ primary: "";
33
30
  neutral: {
34
31
  icon: string;
35
32
  dropzone: string;
36
33
  };
37
- secondary: {
38
- icon: string;
39
- dropzone: string;
40
- };
41
- success: {
42
- icon: string;
43
- dropzone: string;
44
- };
45
- danger: {
46
- icon: string;
47
- dropzone: string;
48
- };
49
- info: {
50
- icon: string;
51
- dropzone: string;
52
- };
53
- warning: {
54
- icon: string;
55
- dropzone: string;
56
- };
34
+ secondary: "";
35
+ success: "";
36
+ danger: "";
37
+ info: "";
38
+ warning: "";
57
39
  };
58
40
  invalid: {
59
41
  true: {
@@ -103,34 +85,16 @@ export declare const fileUploadTheme: import("tailwind-variants").TVReturnType<{
103
85
  };
104
86
  };
105
87
  color: {
106
- primary: {
107
- icon: string;
108
- dropzone: string;
109
- };
88
+ primary: "";
110
89
  neutral: {
111
90
  icon: string;
112
91
  dropzone: string;
113
92
  };
114
- secondary: {
115
- icon: string;
116
- dropzone: string;
117
- };
118
- success: {
119
- icon: string;
120
- dropzone: string;
121
- };
122
- danger: {
123
- icon: string;
124
- dropzone: string;
125
- };
126
- info: {
127
- icon: string;
128
- dropzone: string;
129
- };
130
- warning: {
131
- icon: string;
132
- dropzone: string;
133
- };
93
+ secondary: "";
94
+ success: "";
95
+ danger: "";
96
+ info: "";
97
+ warning: "";
134
98
  };
135
99
  invalid: {
136
100
  true: {
@@ -180,34 +144,16 @@ export declare const fileUploadTheme: import("tailwind-variants").TVReturnType<{
180
144
  };
181
145
  };
182
146
  color: {
183
- primary: {
184
- icon: string;
185
- dropzone: string;
186
- };
147
+ primary: "";
187
148
  neutral: {
188
149
  icon: string;
189
150
  dropzone: string;
190
151
  };
191
- secondary: {
192
- icon: string;
193
- dropzone: string;
194
- };
195
- success: {
196
- icon: string;
197
- dropzone: string;
198
- };
199
- danger: {
200
- icon: string;
201
- dropzone: string;
202
- };
203
- info: {
204
- icon: string;
205
- dropzone: string;
206
- };
207
- warning: {
208
- icon: string;
209
- dropzone: string;
210
- };
152
+ secondary: "";
153
+ success: "";
154
+ danger: "";
155
+ info: "";
156
+ warning: "";
211
157
  };
212
158
  invalid: {
213
159
  true: {
@@ -7,24 +7,25 @@ export const fileUploadTheme = tv({
7
7
  // instead of needing hand-rolled keydown handling. dragging (a
8
8
  // component-set data attribute, not a native one) recolors it
9
9
  // toward `color` - see the color variant below.
10
- dropzone: "flex w-full flex-col items-center justify-center gap-2 rounded-[var(--ui-radius-md)] border-2 border-dashed border-[var(--ui-border)] p-6 text-center transition-colors hover:border-[var(--ui-border-hover)] hover:bg-[var(--ui-bg-elevated)] focus-visible:outline-none focus-visible:ring-2 disabled:opacity-50 disabled:pointer-events-none",
11
- icon: "text-[var(--ui-text-muted)]",
12
- label: "font-medium text-[var(--ui-text)]",
13
- description: "text-[var(--ui-text-muted)]",
10
+ dropzone: "flex w-full flex-col items-center justify-center gap-2 rounded-[var(--selaras-resolved-radius-md)] border-2 border-dashed border-[var(--selaras-resolved-border-default)] p-6 text-center transition-colors hover:border-[var(--selaras-resolved-border-hover)] hover:bg-[var(--selaras-resolved-surface-elevated)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--_selaras-color-focus)] data-[dragging]:border-[var(--_selaras-color-border)] data-[dragging]:bg-[var(--_selaras-color-subtle)] disabled:opacity-50 disabled:pointer-events-none",
11
+ icon: "text-[var(--_selaras-color-fill)]",
12
+ label: "font-medium text-[var(--selaras-resolved-text-default)]",
13
+ description: "text-[var(--selaras-resolved-text-muted)]",
14
14
  // Purely an implementation detail - visually hidden and (via
15
15
  // tabindex="-1" in FileUpload.vue) not independently tab-reachable
16
16
  // either.
17
- // The dropzone <button> wrapping it is the real focusable, Enter/
17
+ // The sibling dropzone <button> is the visible focusable, Enter/
18
18
  // Space-activatable control (free native semantics); this input just
19
- // gets programmatically .click()'d to open the OS file dialog.
19
+ // gets programmatically .click()'d to open the OS file dialog. Native
20
+ // label/validation focus on the input is forwarded to the dropzone.
20
21
  input: "sr-only",
21
22
  fileList: "flex w-full flex-col gap-2",
22
- file: "flex items-center gap-3 rounded-[var(--ui-radius-md)] border border-[var(--ui-border)] p-2",
23
- fileThumbnail: "size-8 shrink-0 rounded-[var(--ui-radius-sm)] object-cover",
24
- fileIcon: "size-8 shrink-0 text-[var(--ui-text-muted)]",
23
+ file: "flex items-center gap-3 rounded-[var(--selaras-resolved-radius-md)] border border-[var(--selaras-resolved-border-default)] p-2",
24
+ fileThumbnail: "size-8 shrink-0 rounded-[var(--selaras-resolved-radius-sm)] object-cover",
25
+ fileIcon: "size-8 shrink-0 text-[var(--selaras-resolved-text-muted)]",
25
26
  fileInfo: "flex min-w-0 flex-1 flex-col",
26
- fileName: "truncate text-[var(--ui-text)]",
27
- fileSize: "text-[var(--ui-text-muted)]",
27
+ fileName: "truncate text-[var(--selaras-resolved-text-default)]",
28
+ fileSize: "text-[var(--selaras-resolved-text-muted)]",
28
29
  fileRemove: "shrink-0"
29
30
  },
30
31
  variants: {
@@ -41,19 +42,19 @@ export const fileUploadTheme = tv({
41
42
  // actually demonstrating anything - confirmed as a real problem via
42
43
  // direct user feedback, not just a style preference.
43
44
  color: {
44
- primary: { icon: "text-[var(--ui-primary)]", dropzone: "focus-visible:ring-[var(--ui-primary)] data-[dragging]:border-[var(--ui-primary)] data-[dragging]:bg-[var(--ui-primary-soft)]" },
45
- neutral: { icon: "text-[var(--ui-bg-inverted)]", dropzone: "focus-visible:ring-[var(--ui-bg-inverted)] data-[dragging]:border-[var(--ui-bg-inverted)] data-[dragging]:bg-[var(--ui-bg-elevated)]" },
46
- secondary: { icon: "text-[var(--ui-secondary)]", dropzone: "focus-visible:ring-[var(--ui-secondary)] data-[dragging]:border-[var(--ui-secondary)] data-[dragging]:bg-[var(--ui-secondary-soft)]" },
47
- success: { icon: "text-[var(--ui-success)]", dropzone: "focus-visible:ring-[var(--ui-success)] data-[dragging]:border-[var(--ui-success)] data-[dragging]:bg-[var(--ui-success-soft)]" },
48
- danger: { icon: "text-[var(--ui-danger)]", dropzone: "focus-visible:ring-[var(--ui-danger)] data-[dragging]:border-[var(--ui-danger)] data-[dragging]:bg-[var(--ui-danger-soft)]" },
49
- info: { icon: "text-[var(--ui-info)]", dropzone: "focus-visible:ring-[var(--ui-info)] data-[dragging]:border-[var(--ui-info)] data-[dragging]:bg-[var(--ui-info-soft)]" },
50
- warning: { icon: "text-[var(--ui-warning)]", dropzone: "focus-visible:ring-[var(--ui-warning)] data-[dragging]:border-[var(--ui-warning)] data-[dragging]:bg-[var(--ui-warning-soft)]" }
45
+ primary: "",
46
+ neutral: { icon: "text-[var(--selaras-resolved-surface-inverted)]", dropzone: "focus-visible:ring-[var(--selaras-resolved-surface-inverted)] data-[dragging]:border-[var(--selaras-resolved-surface-inverted)] data-[dragging]:bg-[var(--selaras-resolved-surface-elevated)]" },
47
+ secondary: "",
48
+ success: "",
49
+ danger: "",
50
+ info: "",
51
+ warning: ""
51
52
  },
52
53
  // Declared last (after color) so tailwind-merge lets its own border
53
54
  // override win over color's - matches Input's own documented
54
55
  // reasoning for this order.
55
56
  invalid: {
56
- true: { dropzone: "border-[var(--ui-danger)] focus-visible:ring-[var(--ui-danger)]" }
57
+ true: { dropzone: "border-[var(--_selaras-color-border)] focus-visible:ring-[var(--_selaras-color-focus)]" }
57
58
  }
58
59
  },
59
60
  defaultVariants: {
@@ -7,12 +7,12 @@ export const formFieldTheme = tv({
7
7
  // own default look exactly) in vertical.
8
8
  body: "flex flex-col gap-1.5",
9
9
  header: "",
10
- label: "text-sm font-medium text-[var(--ui-text)]",
11
- required: "ms-0.5 text-[var(--ui-danger)]",
12
- description: "text-xs text-[var(--ui-text-muted)]",
10
+ label: "text-sm font-medium text-[var(--selaras-resolved-text-default)]",
11
+ required: "ms-0.5 text-[var(--selaras-resolved-color-danger-text)]",
12
+ description: "text-xs text-[var(--selaras-resolved-text-muted)]",
13
13
  container: "",
14
- hint: "text-xs text-[var(--ui-text-muted)]",
15
- error: "text-xs text-[var(--ui-danger)]"
14
+ hint: "text-xs text-[var(--selaras-resolved-text-muted)]",
15
+ error: "text-xs text-[var(--selaras-resolved-color-danger-text)]"
16
16
  },
17
17
  variants: {
18
18
  // Scales FormField's own label/description/hint/error text to match
@@ -2,16 +2,16 @@ export declare const headerTheme: import("tailwind-variants").TVReturnType<{
2
2
  [key: string]: {
3
3
  [key: string]: import("tailwind-variants").ClassValue | {
4
4
  root?: import("tailwind-variants").ClassValue;
5
- right?: import("tailwind-variants").ClassValue;
6
5
  left?: import("tailwind-variants").ClassValue;
6
+ right?: import("tailwind-variants").ClassValue;
7
7
  };
8
8
  };
9
9
  } | {
10
10
  [x: string]: {
11
11
  [x: string]: import("tailwind-variants").ClassValue | {
12
12
  root?: import("tailwind-variants").ClassValue;
13
- right?: import("tailwind-variants").ClassValue;
14
13
  left?: import("tailwind-variants").ClassValue;
14
+ right?: import("tailwind-variants").ClassValue;
15
15
  };
16
16
  };
17
17
  } | {}, {
@@ -22,8 +22,8 @@ export declare const headerTheme: import("tailwind-variants").TVReturnType<{
22
22
  [key: string]: {
23
23
  [key: string]: import("tailwind-variants").ClassValue | {
24
24
  root?: import("tailwind-variants").ClassValue;
25
- right?: import("tailwind-variants").ClassValue;
26
25
  left?: import("tailwind-variants").ClassValue;
26
+ right?: import("tailwind-variants").ClassValue;
27
27
  };
28
28
  };
29
29
  } | {}, {
@@ -1,7 +1,7 @@
1
1
  import { tv } from "tailwind-variants";
2
2
  export const headerTheme = tv({
3
3
  slots: {
4
- root: "sticky top-0 z-20 flex h-16 shrink-0 items-center justify-between gap-4 border-b border-[var(--ui-border)] bg-[var(--ui-bg)] px-4 sm:px-6",
4
+ root: "sticky top-0 z-20 flex h-16 shrink-0 items-center justify-between gap-4 border-b border-[var(--selaras-resolved-border-default)] bg-[var(--selaras-resolved-surface-default)] px-4 sm:px-6",
5
5
  left: "flex min-w-0 items-center gap-2",
6
6
  right: "flex shrink-0 items-center gap-2"
7
7
  }
@@ -1,24 +1,15 @@
1
1
  export declare const iconTheme: import("tailwind-variants").TVReturnType<{
2
2
  color: {
3
- primary: {
4
- base: string;
5
- };
6
- neutral: {
7
- base: string;
8
- };
9
- secondary: {
10
- base: string;
11
- };
12
- success: {
13
- base: string;
14
- };
15
- danger: {
16
- base: string;
17
- };
18
- info: {
19
- base: string;
20
- };
21
- warning: {
3
+ primary: "";
4
+ neutral: "";
5
+ secondary: "";
6
+ success: "";
7
+ danger: "";
8
+ info: "";
9
+ warning: "";
10
+ };
11
+ colored: {
12
+ true: {
22
13
  base: string;
23
14
  };
24
15
  };
@@ -26,25 +17,16 @@ export declare const iconTheme: import("tailwind-variants").TVReturnType<{
26
17
  base: string;
27
18
  }, undefined, {
28
19
  color: {
29
- primary: {
30
- base: string;
31
- };
32
- neutral: {
33
- base: string;
34
- };
35
- secondary: {
36
- base: string;
37
- };
38
- success: {
39
- base: string;
40
- };
41
- danger: {
42
- base: string;
43
- };
44
- info: {
45
- base: string;
46
- };
47
- warning: {
20
+ primary: "";
21
+ neutral: "";
22
+ secondary: "";
23
+ success: "";
24
+ danger: "";
25
+ info: "";
26
+ warning: "";
27
+ };
28
+ colored: {
29
+ true: {
48
30
  base: string;
49
31
  };
50
32
  };
@@ -52,25 +34,16 @@ export declare const iconTheme: import("tailwind-variants").TVReturnType<{
52
34
  base: string;
53
35
  }, import("tailwind-variants").TVReturnTypeLike<{
54
36
  color: {
55
- primary: {
56
- base: string;
57
- };
58
- neutral: {
59
- base: string;
60
- };
61
- secondary: {
62
- base: string;
63
- };
64
- success: {
65
- base: string;
66
- };
67
- danger: {
68
- base: string;
69
- };
70
- info: {
71
- base: string;
72
- };
73
- warning: {
37
+ primary: "";
38
+ neutral: "";
39
+ secondary: "";
40
+ success: "";
41
+ danger: "";
42
+ info: "";
43
+ warning: "";
44
+ };
45
+ colored: {
46
+ true: {
74
47
  base: string;
75
48
  };
76
49
  };
@@ -6,7 +6,7 @@ export const iconTheme = tv({
6
6
  variants: {
7
7
  // No default - an unset color inherits currentColor from wherever the
8
8
  // icon is placed, which is what every internal usage elsewhere in this
9
- // library already relies on (e.g. Input's --ui-text-muted icon slots).
9
+ // library already relies on (e.g. Input's --selaras-resolved-text-muted icon slots).
10
10
  // No size variant (deliberately) - every internal consumer needs its
11
11
  // own precise size (size-2.5/3/3.5/4/4.5/5/6 depending on component and
12
12
  // slot), none of which map cleanly onto a shared sm/md/lg scale. Pass
@@ -14,13 +14,23 @@ export const iconTheme = tv({
14
14
  // icon usage - a raw `class="text-*"` still overrides `color` too,
15
15
  // since both just flow through the same tailwind-merge below.
16
16
  color: {
17
- primary: { base: "text-[var(--ui-primary)]" },
18
- neutral: { base: "text-[var(--ui-text)]" },
19
- secondary: { base: "text-[var(--ui-secondary)]" },
20
- success: { base: "text-[var(--ui-success)]" },
21
- danger: { base: "text-[var(--ui-danger)]" },
22
- info: { base: "text-[var(--ui-info)]" },
23
- warning: { base: "text-[var(--ui-warning)]" }
17
+ primary: "",
18
+ neutral: "",
19
+ secondary: "",
20
+ success: "",
21
+ danger: "",
22
+ info: "",
23
+ warning: ""
24
+ },
25
+ // Runtime derives this from the optional color prop. It supplies the
26
+ // shared semantic treatment even when `color` is an application-registered
27
+ // role with no finite built-in branch, while leaving uncolored icons free
28
+ // to inherit currentColor.
29
+ colored: {
30
+ true: { base: "text-[var(--_selaras-color-indicator)]" }
24
31
  }
25
- }
32
+ },
33
+ compoundVariants: [
34
+ { color: "neutral", colored: true, class: { base: "text-[var(--selaras-resolved-text-default)]" } }
35
+ ]
26
36
  });
@@ -14,27 +14,13 @@ export declare const inputNumberTheme: import("tailwind-variants").TVReturnType<
14
14
  };
15
15
  };
16
16
  color: {
17
- primary: {
18
- root: string;
19
- };
20
- neutral: {
21
- root: string;
22
- };
23
- secondary: {
24
- root: string;
25
- };
26
- success: {
27
- root: string;
28
- };
29
- danger: {
30
- root: string;
31
- };
32
- info: {
33
- root: string;
34
- };
35
- warning: {
36
- root: string;
37
- };
17
+ primary: "";
18
+ neutral: "";
19
+ secondary: "";
20
+ success: "";
21
+ danger: "";
22
+ info: "";
23
+ warning: "";
38
24
  };
39
25
  orientation: {
40
26
  horizontal: {};
@@ -68,27 +54,13 @@ export declare const inputNumberTheme: import("tailwind-variants").TVReturnType<
68
54
  };
69
55
  };
70
56
  color: {
71
- primary: {
72
- root: string;
73
- };
74
- neutral: {
75
- root: string;
76
- };
77
- secondary: {
78
- root: string;
79
- };
80
- success: {
81
- root: string;
82
- };
83
- danger: {
84
- root: string;
85
- };
86
- info: {
87
- root: string;
88
- };
89
- warning: {
90
- root: string;
91
- };
57
+ primary: "";
58
+ neutral: "";
59
+ secondary: "";
60
+ success: "";
61
+ danger: "";
62
+ info: "";
63
+ warning: "";
92
64
  };
93
65
  orientation: {
94
66
  horizontal: {};
@@ -122,27 +94,13 @@ export declare const inputNumberTheme: import("tailwind-variants").TVReturnType<
122
94
  };
123
95
  };
124
96
  color: {
125
- primary: {
126
- root: string;
127
- };
128
- neutral: {
129
- root: string;
130
- };
131
- secondary: {
132
- root: string;
133
- };
134
- success: {
135
- root: string;
136
- };
137
- danger: {
138
- root: string;
139
- };
140
- info: {
141
- root: string;
142
- };
143
- warning: {
144
- root: string;
145
- };
97
+ primary: "";
98
+ neutral: "";
99
+ secondary: "";
100
+ success: "";
101
+ danger: "";
102
+ info: "";
103
+ warning: "";
146
104
  };
147
105
  orientation: {
148
106
  horizontal: {};
@@ -25,12 +25,12 @@ export const inputNumberTheme = tv({
25
25
  // bg's own hover change is left unscoped - there's no competing
26
26
  // focus-driven background to conflict with, so it can keep showing
27
27
  // regardless of focus state.
28
- root: "relative inline-flex w-full items-center gap-1 rounded-[var(--ui-radius-md)] bg-[var(--ui-bg)] ring-1 ring-inset ring-[var(--ui-border)] transition-[color,background-color,box-shadow] not-focus-within:hover:ring-[var(--ui-border-hover)] hover:bg-[var(--ui-bg-elevated)] focus-within:ring-2 has-[input:disabled]:opacity-50 has-[input:disabled]:pointer-events-none",
28
+ root: "relative inline-flex w-full items-center gap-1 rounded-[var(--selaras-resolved-radius-md)] bg-[var(--selaras-resolved-surface-default)] ring-1 ring-inset ring-[var(--selaras-resolved-border-default)] transition-[color,background-color,box-shadow] not-focus-within:hover:ring-[var(--selaras-resolved-border-hover)] hover:bg-[var(--selaras-resolved-surface-elevated)] focus-within:ring-2 focus-within:ring-[var(--_selaras-color-focus)] has-[input:disabled]:opacity-50 has-[input:disabled]:pointer-events-none",
29
29
  // Borderless/transparent - root already carries the visual box, this is
30
30
  // just the editable text. Centered + tabular-nums so digits don't shift
31
31
  // width as the value changes - orientation="vertical" overrides the
32
32
  // centering below, since the stepper only occupies the end edge there.
33
- input: "w-full min-w-0 flex-1 border-0 bg-transparent text-center tabular-nums text-[var(--ui-text)] outline-none placeholder:text-[var(--ui-text-muted)] disabled:cursor-not-allowed",
33
+ input: "w-full min-w-0 flex-1 border-0 bg-transparent text-center tabular-nums text-[var(--selaras-resolved-text-default)] outline-none placeholder:text-[var(--selaras-resolved-text-muted)] disabled:cursor-not-allowed",
34
34
  // orientation="vertical" only - a compact up/down pair pinned to the
35
35
  // end edge, replacing the two full-height flanking buttons.
36
36
  stepper: "absolute end-1 inset-y-1 flex flex-col justify-center gap-px",
@@ -39,7 +39,7 @@ export const inputNumberTheme = tv({
39
39
  // own size scale has no step small enough for two of these to stack
40
40
  // inside one field's own height, and fighting its fixed sm classes with
41
41
  // overrides is more fragile than a plain, purpose-built button here.
42
- stepperButton: "flex h-3.5 w-5 items-center justify-center rounded-[var(--ui-radius-sm)] text-[var(--ui-text-muted)] transition-colors hover:text-[var(--ui-text)] disabled:opacity-50 disabled:pointer-events-none"
42
+ stepperButton: "flex h-3.5 w-5 items-center justify-center rounded-[var(--selaras-resolved-radius-sm)] text-[var(--selaras-resolved-text-muted)] transition-colors hover:text-[var(--selaras-resolved-text-default)] disabled:opacity-50 disabled:pointer-events-none"
43
43
  },
44
44
  variants: {
45
45
  size: {
@@ -47,16 +47,16 @@ export const inputNumberTheme = tv({
47
47
  md: { root: "h-10 px-1.5", input: "text-sm" },
48
48
  lg: { root: "h-11 px-2", input: "text-base" }
49
49
  },
50
- // Focus-ring color only - the resting ring stays --ui-border regardless
50
+ // Focus-ring color only - the resting ring stays --selaras-resolved-border-default regardless
51
51
  // of `color`, matching Input's own scope (see input.ts).
52
52
  color: {
53
- primary: { root: "focus-within:ring-[var(--ui-primary)]" },
54
- neutral: { root: "focus-within:ring-[var(--ui-bg-inverted)]" },
55
- secondary: { root: "focus-within:ring-[var(--ui-secondary)]" },
56
- success: { root: "focus-within:ring-[var(--ui-success)]" },
57
- danger: { root: "focus-within:ring-[var(--ui-danger)]" },
58
- info: { root: "focus-within:ring-[var(--ui-info)]" },
59
- warning: { root: "focus-within:ring-[var(--ui-warning)]" }
53
+ primary: "",
54
+ neutral: "",
55
+ secondary: "",
56
+ success: "",
57
+ danger: "",
58
+ info: "",
59
+ warning: ""
60
60
  },
61
61
  orientation: {
62
62
  horizontal: {},
@@ -66,7 +66,7 @@ export const inputNumberTheme = tv({
66
66
  // focus-within:ring override win over color's - see input.ts for why
67
67
  // declaration order (not runtime call order) is what decides this.
68
68
  invalid: {
69
- true: { root: "ring-[var(--ui-danger)] hover:ring-[var(--ui-danger)] focus-within:ring-[var(--ui-danger)]" }
69
+ true: { root: "ring-[var(--_selaras-color-border)] hover:ring-[var(--_selaras-color-border)] focus-within:ring-[var(--_selaras-color-focus)]" }
70
70
  }
71
71
  },
72
72
  defaultVariants: {