@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,38 +1,14 @@
1
1
  export declare const proseTheme: import("tailwind-variants").TVReturnType<{
2
- [key: string]: {
3
- [key: string]: import("tailwind-variants").ClassValue | {
4
- h1?: import("tailwind-variants").ClassValue;
5
- h2?: import("tailwind-variants").ClassValue;
6
- h3?: import("tailwind-variants").ClassValue;
7
- h4?: import("tailwind-variants").ClassValue;
8
- h5?: import("tailwind-variants").ClassValue;
9
- h6?: import("tailwind-variants").ClassValue;
10
- pre?: import("tailwind-variants").ClassValue;
11
- headingAnchor?: import("tailwind-variants").ClassValue;
12
- preWrapper?: import("tailwind-variants").ClassValue;
13
- preHeader?: import("tailwind-variants").ClassValue;
14
- preFilename?: import("tailwind-variants").ClassValue;
15
- preCopyButton?: import("tailwind-variants").ClassValue;
16
- };
2
+ color: {
3
+ primary: "";
4
+ neutral: "";
5
+ secondary: "";
6
+ success: "";
7
+ danger: "";
8
+ info: "";
9
+ warning: "";
17
10
  };
18
- } | {
19
- [x: string]: {
20
- [x: string]: import("tailwind-variants").ClassValue | {
21
- h1?: import("tailwind-variants").ClassValue;
22
- h2?: import("tailwind-variants").ClassValue;
23
- h3?: import("tailwind-variants").ClassValue;
24
- h4?: import("tailwind-variants").ClassValue;
25
- h5?: import("tailwind-variants").ClassValue;
26
- h6?: import("tailwind-variants").ClassValue;
27
- pre?: import("tailwind-variants").ClassValue;
28
- headingAnchor?: import("tailwind-variants").ClassValue;
29
- preWrapper?: import("tailwind-variants").ClassValue;
30
- preHeader?: import("tailwind-variants").ClassValue;
31
- preFilename?: import("tailwind-variants").ClassValue;
32
- preCopyButton?: import("tailwind-variants").ClassValue;
33
- };
34
- };
35
- } | {}, {
11
+ }, {
36
12
  h1: string;
37
13
  h2: string;
38
14
  h3: string;
@@ -42,27 +18,22 @@ export declare const proseTheme: import("tailwind-variants").TVReturnType<{
42
18
  headingAnchor: string;
43
19
  preWrapper: string;
44
20
  preHeader: string;
21
+ preLabel: string;
22
+ preIcon: string;
45
23
  preFilename: string;
46
24
  preCopyButton: string;
47
25
  pre: string;
48
26
  }, undefined, {
49
- [key: string]: {
50
- [key: string]: import("tailwind-variants").ClassValue | {
51
- h1?: import("tailwind-variants").ClassValue;
52
- h2?: import("tailwind-variants").ClassValue;
53
- h3?: import("tailwind-variants").ClassValue;
54
- h4?: import("tailwind-variants").ClassValue;
55
- h5?: import("tailwind-variants").ClassValue;
56
- h6?: import("tailwind-variants").ClassValue;
57
- pre?: import("tailwind-variants").ClassValue;
58
- headingAnchor?: import("tailwind-variants").ClassValue;
59
- preWrapper?: import("tailwind-variants").ClassValue;
60
- preHeader?: import("tailwind-variants").ClassValue;
61
- preFilename?: import("tailwind-variants").ClassValue;
62
- preCopyButton?: import("tailwind-variants").ClassValue;
63
- };
27
+ color: {
28
+ primary: "";
29
+ neutral: "";
30
+ secondary: "";
31
+ success: "";
32
+ danger: "";
33
+ info: "";
34
+ warning: "";
64
35
  };
65
- } | {}, {
36
+ }, {
66
37
  h1: string;
67
38
  h2: string;
68
39
  h3: string;
@@ -72,10 +43,22 @@ export declare const proseTheme: import("tailwind-variants").TVReturnType<{
72
43
  headingAnchor: string;
73
44
  preWrapper: string;
74
45
  preHeader: string;
46
+ preLabel: string;
47
+ preIcon: string;
75
48
  preFilename: string;
76
49
  preCopyButton: string;
77
50
  pre: string;
78
- }, import("tailwind-variants").TVReturnTypeLike<unknown, {
51
+ }, import("tailwind-variants").TVReturnTypeLike<{
52
+ color: {
53
+ primary: "";
54
+ neutral: "";
55
+ secondary: "";
56
+ success: "";
57
+ danger: "";
58
+ info: "";
59
+ warning: "";
60
+ };
61
+ }, {
79
62
  h1: string;
80
63
  h2: string;
81
64
  h3: string;
@@ -85,6 +68,8 @@ export declare const proseTheme: import("tailwind-variants").TVReturnType<{
85
68
  headingAnchor: string;
86
69
  preWrapper: string;
87
70
  preHeader: string;
71
+ preLabel: string;
72
+ preIcon: string;
88
73
  preFilename: string;
89
74
  preCopyButton: string;
90
75
  pre: string;
@@ -1,17 +1,30 @@
1
1
  import { tv } from "tailwind-variants";
2
2
  export const proseTheme = tv({
3
3
  slots: {
4
- h1: "text-3xl font-semibold tracking-tight text-[var(--ui-text)] scroll-mt-20",
5
- h2: "text-2xl font-semibold tracking-tight text-[var(--ui-text)] scroll-mt-20",
6
- h3: "text-xl font-semibold tracking-tight text-[var(--ui-text)] scroll-mt-20",
7
- h4: "text-lg font-semibold text-[var(--ui-text)] scroll-mt-20",
8
- h5: "text-base font-semibold text-[var(--ui-text)] scroll-mt-20",
9
- h6: "text-sm font-semibold text-[var(--ui-text)] scroll-mt-20",
10
- headingAnchor: "no-underline hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--ui-primary)]",
11
- preWrapper: "overflow-hidden rounded-[var(--ui-radius-md)] ring-1 ring-[var(--ui-border)]",
12
- preHeader: "flex items-center justify-between gap-2 border-b border-[var(--ui-border)] bg-[var(--ui-bg-elevated)] px-3 py-1.5",
13
- preFilename: "font-mono text-xs text-[var(--ui-text-muted)]",
4
+ h1: "text-3xl font-semibold tracking-tight text-[var(--selaras-resolved-text-default)] scroll-mt-20",
5
+ h2: "text-2xl font-semibold tracking-tight text-[var(--selaras-resolved-text-default)] scroll-mt-20",
6
+ h3: "text-xl font-semibold tracking-tight text-[var(--selaras-resolved-text-default)] scroll-mt-20",
7
+ h4: "text-lg font-semibold text-[var(--selaras-resolved-text-default)] scroll-mt-20",
8
+ h5: "text-base font-semibold text-[var(--selaras-resolved-text-default)] scroll-mt-20",
9
+ h6: "text-sm font-semibold text-[var(--selaras-resolved-text-default)] scroll-mt-20",
10
+ headingAnchor: "no-underline hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--_selaras-color-focus)]",
11
+ preWrapper: "overflow-hidden rounded-[var(--selaras-resolved-radius-md)] ring-1 ring-[var(--selaras-resolved-border-default)]",
12
+ preHeader: "flex items-center justify-between gap-2 border-b border-[var(--selaras-resolved-border-default)] bg-[var(--selaras-resolved-surface-elevated)] px-3 py-1.5",
13
+ preLabel: "flex min-w-0 items-center gap-2",
14
+ preIcon: "size-4",
15
+ preFilename: "font-mono text-xs text-[var(--selaras-resolved-text-muted)]",
14
16
  preCopyButton: "shrink-0",
15
- pre: "overflow-x-auto bg-[var(--ui-bg-elevated)] p-4 font-mono text-sm leading-relaxed"
17
+ pre: "overflow-x-auto bg-[var(--selaras-resolved-surface-elevated)] p-4 font-mono text-sm leading-relaxed"
18
+ },
19
+ variants: {
20
+ color: {
21
+ primary: "",
22
+ neutral: "",
23
+ secondary: "",
24
+ success: "",
25
+ danger: "",
26
+ info: "",
27
+ warning: ""
28
+ }
16
29
  }
17
30
  });
@@ -35,34 +35,13 @@ export declare const radioGroupTheme: import("tailwind-variants").TVReturnType<{
35
35
  };
36
36
  };
37
37
  color: {
38
- primary: {
39
- item: string;
40
- indicator: string;
41
- };
42
- neutral: {
43
- item: string;
44
- indicator: string;
45
- };
46
- secondary: {
47
- item: string;
48
- indicator: string;
49
- };
50
- success: {
51
- item: string;
52
- indicator: string;
53
- };
54
- danger: {
55
- item: string;
56
- indicator: string;
57
- };
58
- info: {
59
- item: string;
60
- indicator: string;
61
- };
62
- warning: {
63
- item: string;
64
- indicator: string;
65
- };
38
+ primary: "";
39
+ neutral: "";
40
+ secondary: "";
41
+ success: "";
42
+ danger: "";
43
+ info: "";
44
+ warning: "";
66
45
  };
67
46
  invalid: {
68
47
  true: {
@@ -114,34 +93,13 @@ export declare const radioGroupTheme: import("tailwind-variants").TVReturnType<{
114
93
  };
115
94
  };
116
95
  color: {
117
- primary: {
118
- item: string;
119
- indicator: string;
120
- };
121
- neutral: {
122
- item: string;
123
- indicator: string;
124
- };
125
- secondary: {
126
- item: string;
127
- indicator: string;
128
- };
129
- success: {
130
- item: string;
131
- indicator: string;
132
- };
133
- danger: {
134
- item: string;
135
- indicator: string;
136
- };
137
- info: {
138
- item: string;
139
- indicator: string;
140
- };
141
- warning: {
142
- item: string;
143
- indicator: string;
144
- };
96
+ primary: "";
97
+ neutral: "";
98
+ secondary: "";
99
+ success: "";
100
+ danger: "";
101
+ info: "";
102
+ warning: "";
145
103
  };
146
104
  invalid: {
147
105
  true: {
@@ -193,34 +151,13 @@ export declare const radioGroupTheme: import("tailwind-variants").TVReturnType<{
193
151
  };
194
152
  };
195
153
  color: {
196
- primary: {
197
- item: string;
198
- indicator: string;
199
- };
200
- neutral: {
201
- item: string;
202
- indicator: string;
203
- };
204
- secondary: {
205
- item: string;
206
- indicator: string;
207
- };
208
- success: {
209
- item: string;
210
- indicator: string;
211
- };
212
- danger: {
213
- item: string;
214
- indicator: string;
215
- };
216
- info: {
217
- item: string;
218
- indicator: string;
219
- };
220
- warning: {
221
- item: string;
222
- indicator: string;
223
- };
154
+ primary: "";
155
+ neutral: "";
156
+ secondary: "";
157
+ success: "";
158
+ danger: "";
159
+ info: "";
160
+ warning: "";
224
161
  };
225
162
  invalid: {
226
163
  true: {
@@ -17,8 +17,8 @@ export const radioGroupTheme = tv({
17
17
  // color by the checked-state variant below - an explicit var per
18
18
  // state rather than currentColor, since this slot's own text color
19
19
  // isn't otherwise tied to checked/unchecked here. Uses
20
- // --ui-border-hover for the gray fill - lighter than a plain mid-gray
21
- // text color would give, while still clearing the plain --ui-border
20
+ // --selaras-resolved-border-hover for the gray fill - lighter than a plain mid-gray
21
+ // text color would give, while still clearing the plain --selaras-resolved-border-default
22
22
  // token, which reads as basically invisible at any reasonable opacity
23
23
  // since it's already very close to the page background. scale(0)/
24
24
  // scale(1) use Tailwind's arbitrary-value [transform:] syntax, not the
@@ -47,7 +47,7 @@ export const radioGroupTheme = tv({
47
47
  // rendered visibly jagged at normal (non-zoomed) browser scale; the
48
48
  // fractional width needs the arbitrary-value form since Tailwind's
49
49
  // named ring scale only has integer steps.
50
- item: "relative isolate flex shrink-0 items-center justify-center rounded-full 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)]",
50
+ item: "relative isolate flex shrink-0 items-center justify-center rounded-full 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]:ring-[var(--_selaras-color-indicator)] data-[state=checked]:before:bg-[var(--_selaras-color-fill-hover)]",
51
51
  // force-mount (see RadioGroup.vue) keeps this in the DOM for every
52
52
  // item regardless of checked state, so switching the selection scales
53
53
  // the old dot out and the new one in instead of an abrupt pop -
@@ -56,9 +56,9 @@ export const radioGroupTheme = tv({
56
56
  // detects them via computed animation-name), not plain CSS
57
57
  // transitions, so a transition-only version without force-mount would
58
58
  // just vanish instantly.
59
- indicator: "rounded-full [transform:scale(0)] transition-transform duration-200 data-[state=checked]:[transform:scale(1)]",
60
- label: "select-none text-[var(--ui-text)]",
61
- description: "block select-none text-[var(--ui-text-muted)]",
59
+ indicator: "rounded-full bg-[var(--_selaras-color-indicator)] [transform:scale(0)] transition-transform duration-200 data-[state=checked]:[transform:scale(1)]",
60
+ label: "select-none text-[var(--selaras-resolved-text-default)]",
61
+ description: "block select-none text-[var(--selaras-resolved-text-muted)]",
62
62
  // Only rendered when an item has a description (wrapping the label and
63
63
  // description together so they stack under one another). The label
64
64
  // text visually sits a bit lower than its own line box's true center -
@@ -89,7 +89,7 @@ export const radioGroupTheme = tv({
89
89
  variant: {
90
90
  default: {},
91
91
  card: {
92
- itemWrapper: "w-full items-start gap-3 rounded-[var(--ui-radius-md)] border border-[var(--ui-border)] px-3.5 py-3 transition-colors",
92
+ itemWrapper: "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",
93
93
  item: "mt-0.5"
94
94
  }
95
95
  },
@@ -97,13 +97,13 @@ export const radioGroupTheme = tv({
97
97
  // neutral ring regardless of `color`, matching Checkbox's/Switch's own
98
98
  // `color` variant exactly (same reasoning, same token pattern).
99
99
  color: {
100
- primary: { item: "data-[state=checked]:ring-[var(--ui-primary)] data-[state=checked]:before:bg-[var(--ui-primary)]", indicator: "bg-[var(--ui-primary)]" },
101
- neutral: { item: "data-[state=checked]:ring-[var(--ui-neutral)] data-[state=checked]:before:bg-[var(--ui-neutral)]", indicator: "bg-[var(--ui-neutral)]" },
102
- secondary: { item: "data-[state=checked]:ring-[var(--ui-secondary)] data-[state=checked]:before:bg-[var(--ui-secondary)]", indicator: "bg-[var(--ui-secondary)]" },
103
- success: { item: "data-[state=checked]:ring-[var(--ui-success)] data-[state=checked]:before:bg-[var(--ui-success)]", indicator: "bg-[var(--ui-success)]" },
104
- danger: { item: "data-[state=checked]:ring-[var(--ui-danger)] data-[state=checked]:before:bg-[var(--ui-danger)]", indicator: "bg-[var(--ui-danger)]" },
105
- info: { item: "data-[state=checked]:ring-[var(--ui-info)] data-[state=checked]:before:bg-[var(--ui-info)]", indicator: "bg-[var(--ui-info)]" },
106
- warning: { item: "data-[state=checked]:ring-[var(--ui-warning)] data-[state=checked]:before:bg-[var(--ui-warning)]", indicator: "bg-[var(--ui-warning)]" }
100
+ primary: "",
101
+ neutral: "",
102
+ secondary: "",
103
+ success: "",
104
+ danger: "",
105
+ info: "",
106
+ warning: ""
107
107
  },
108
108
  // Recolors the existing ring rather than adding a second outline
109
109
  // outside it (an earlier version did that, which read as a double
@@ -112,18 +112,12 @@ export const radioGroupTheme = tv({
112
112
  // otherwise win the ring color back whenever an already-invalid group
113
113
  // has something selected.
114
114
  invalid: {
115
- true: { item: "ring-[var(--ui-danger)] data-[state=checked]:ring-[var(--ui-danger)]" }
115
+ true: { item: "ring-[var(--_selaras-color-border)] data-[state=checked]:ring-[var(--_selaras-color-indicator)]" }
116
116
  }
117
117
  },
118
118
  compoundVariants: [
119
119
  // The card variant's own checked-state highlight, following `color`.
120
- { variant: "card", color: "primary", class: { itemWrapper: "has-[[data-state=checked]]:border-[var(--ui-primary)] has-[[data-state=checked]]:bg-[var(--ui-primary-soft)]" } },
121
- { variant: "card", color: "neutral", class: { itemWrapper: "has-[[data-state=checked]]:border-[var(--ui-neutral)] has-[[data-state=checked]]:bg-[var(--ui-neutral-soft)]" } },
122
- { variant: "card", color: "secondary", class: { itemWrapper: "has-[[data-state=checked]]:border-[var(--ui-secondary)] has-[[data-state=checked]]:bg-[var(--ui-secondary-soft)]" } },
123
- { variant: "card", color: "success", class: { itemWrapper: "has-[[data-state=checked]]:border-[var(--ui-success)] has-[[data-state=checked]]:bg-[var(--ui-success-soft)]" } },
124
- { variant: "card", color: "danger", class: { itemWrapper: "has-[[data-state=checked]]:border-[var(--ui-danger)] has-[[data-state=checked]]:bg-[var(--ui-danger-soft)]" } },
125
- { variant: "card", color: "info", class: { itemWrapper: "has-[[data-state=checked]]:border-[var(--ui-info)] has-[[data-state=checked]]:bg-[var(--ui-info-soft)]" } },
126
- { variant: "card", color: "warning", class: { itemWrapper: "has-[[data-state=checked]]:border-[var(--ui-warning)] has-[[data-state=checked]]:bg-[var(--ui-warning-soft)]" } }
120
+ { variant: "card", class: { itemWrapper: "has-[[data-state=checked]]:border-[var(--_selaras-color-border)] has-[[data-state=checked]]:bg-[var(--_selaras-color-subtle)]" } }
127
121
  ],
128
122
  defaultVariants: {
129
123
  size: "md",
@@ -25,27 +25,13 @@ export declare const ratingTheme: import("tailwind-variants").TVReturnType<{
25
25
  };
26
26
  };
27
27
  color: {
28
- primary: {
29
- fillIcon: string;
30
- };
31
- neutral: {
32
- fillIcon: string;
33
- };
34
- secondary: {
35
- fillIcon: string;
36
- };
37
- success: {
38
- fillIcon: string;
39
- };
40
- danger: {
41
- fillIcon: string;
42
- };
43
- info: {
44
- fillIcon: string;
45
- };
46
- warning: {
47
- fillIcon: string;
48
- };
28
+ primary: {};
29
+ neutral: {};
30
+ secondary: {};
31
+ success: {};
32
+ danger: {};
33
+ info: {};
34
+ warning: {};
49
35
  };
50
36
  }, {
51
37
  root: string;
@@ -80,27 +66,13 @@ export declare const ratingTheme: import("tailwind-variants").TVReturnType<{
80
66
  };
81
67
  };
82
68
  color: {
83
- primary: {
84
- fillIcon: string;
85
- };
86
- neutral: {
87
- fillIcon: string;
88
- };
89
- secondary: {
90
- fillIcon: string;
91
- };
92
- success: {
93
- fillIcon: string;
94
- };
95
- danger: {
96
- fillIcon: string;
97
- };
98
- info: {
99
- fillIcon: string;
100
- };
101
- warning: {
102
- fillIcon: string;
103
- };
69
+ primary: {};
70
+ neutral: {};
71
+ secondary: {};
72
+ success: {};
73
+ danger: {};
74
+ info: {};
75
+ warning: {};
104
76
  };
105
77
  }, {
106
78
  root: string;
@@ -135,27 +107,13 @@ export declare const ratingTheme: import("tailwind-variants").TVReturnType<{
135
107
  };
136
108
  };
137
109
  color: {
138
- primary: {
139
- fillIcon: string;
140
- };
141
- neutral: {
142
- fillIcon: string;
143
- };
144
- secondary: {
145
- fillIcon: string;
146
- };
147
- success: {
148
- fillIcon: string;
149
- };
150
- danger: {
151
- fillIcon: string;
152
- };
153
- info: {
154
- fillIcon: string;
155
- };
156
- warning: {
157
- fillIcon: string;
158
- };
110
+ primary: {};
111
+ neutral: {};
112
+ secondary: {};
113
+ success: {};
114
+ danger: {};
115
+ info: {};
116
+ warning: {};
159
117
  };
160
118
  }, {
161
119
  root: string;
@@ -11,10 +11,10 @@ export const ratingTheme = tv({
11
11
  // narrower-than-the-whole-star) indicator button is current, but the
12
12
  // ring should still outline the *whole* star, not just that step's
13
13
  // own cropped hit region.
14
- item: "relative shrink-0 rounded-[var(--ui-radius-sm)] transition-shadow has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-[var(--ui-primary)]",
14
+ item: "relative shrink-0 rounded-[var(--selaras-resolved-radius-sm)] transition-shadow has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-[var(--_selaras-color-focus)]",
15
15
  // The empty/outline star, always visible, sitting behind every step
16
16
  // indicator - what a not-yet-filled star reads as.
17
- icon: "absolute inset-0 text-[var(--ui-border)]",
17
+ icon: "absolute inset-0 text-[var(--selaras-resolved-border-default)]",
18
18
  // One per fractional sub-step (Rating.vue renders one
19
19
  // RatingItemIndicator per entry in RatingItem's own `steps`, a single
20
20
  // entry `[N]` when `step` is the default 1, several overlapping ones
@@ -47,7 +47,7 @@ export const ratingTheme = tv({
47
47
  // backdrop through it, reading as "not filled" with no shape swap
48
48
  // needed - recolored once its own indicator's data-state flips to
49
49
  // active.
50
- fillIcon: "text-transparent transition-colors group-data-[state=active]/step:text-[var(--ui-primary)]"
50
+ fillIcon: "text-transparent transition-colors group-data-[state=active]/step:text-[var(--_selaras-color-indicator)]"
51
51
  },
52
52
  variants: {
53
53
  orientation: {
@@ -60,13 +60,13 @@ export const ratingTheme = tv({
60
60
  lg: { item: "size-6", icon: "size-6", fillIcon: "size-6" }
61
61
  },
62
62
  color: {
63
- primary: { fillIcon: "group-data-[state=active]/step:text-[var(--ui-primary)]" },
64
- neutral: { fillIcon: "group-data-[state=active]/step:text-[var(--ui-bg-inverted)]" },
65
- secondary: { fillIcon: "group-data-[state=active]/step:text-[var(--ui-secondary)]" },
66
- success: { fillIcon: "group-data-[state=active]/step:text-[var(--ui-success)]" },
67
- danger: { fillIcon: "group-data-[state=active]/step:text-[var(--ui-danger)]" },
68
- info: { fillIcon: "group-data-[state=active]/step:text-[var(--ui-info)]" },
69
- warning: { fillIcon: "group-data-[state=active]/step:text-[var(--ui-warning)]" }
63
+ primary: {},
64
+ neutral: {},
65
+ secondary: {},
66
+ success: {},
67
+ danger: {},
68
+ info: {},
69
+ warning: {}
70
70
  }
71
71
  },
72
72
  defaultVariants: {
@@ -1,4 +1,13 @@
1
1
  export declare const readMoreTheme: import("tailwind-variants").TVReturnType<{
2
+ color: {
3
+ primary: "";
4
+ neutral: "";
5
+ secondary: "";
6
+ success: "";
7
+ danger: "";
8
+ info: "";
9
+ warning: "";
10
+ };
2
11
  open: {
3
12
  true: {
4
13
  triggerIcon: string;
@@ -11,6 +20,15 @@ export declare const readMoreTheme: import("tailwind-variants").TVReturnType<{
11
20
  trigger: string;
12
21
  triggerIcon: string;
13
22
  }, undefined, {
23
+ color: {
24
+ primary: "";
25
+ neutral: "";
26
+ secondary: "";
27
+ success: "";
28
+ danger: "";
29
+ info: "";
30
+ warning: "";
31
+ };
14
32
  open: {
15
33
  true: {
16
34
  triggerIcon: string;
@@ -23,6 +41,15 @@ export declare const readMoreTheme: import("tailwind-variants").TVReturnType<{
23
41
  trigger: string;
24
42
  triggerIcon: string;
25
43
  }, import("tailwind-variants").TVReturnTypeLike<{
44
+ color: {
45
+ primary: "";
46
+ neutral: "";
47
+ secondary: "";
48
+ success: "";
49
+ danger: "";
50
+ info: "";
51
+ warning: "";
52
+ };
26
53
  open: {
27
54
  true: {
28
55
  triggerIcon: string;
@@ -5,15 +5,24 @@ export const readMoreTheme = tv({
5
5
  // max-height (not height) is what actually animates - see
6
6
  // ReadMore.vue's own comment on why this needs a measured pixel value
7
7
  // rather than the `auto` keyword, which CSS transitions can't animate.
8
- content: "overflow-hidden transition-[max-height] duration-300 ease-out",
8
+ content: "relative overflow-hidden transition-[max-height] duration-300 ease-out",
9
9
  // A fade rather than a hard cut - signals there's more below without a
10
- // visible seam at the truncation line. Reads from --ui-bg since it
10
+ // visible seam at the truncation line. Reads from --selaras-resolved-surface-default since it
11
11
  // needs to blend into whatever's directly behind it, not a fixed color.
12
- fade: "pointer-events-none absolute inset-x-0 bottom-8 h-16 bg-gradient-to-t from-[var(--ui-bg)] to-transparent",
13
- trigger: "relative mt-2 inline-flex items-center gap-1 text-sm font-medium text-[var(--ui-primary)] transition-colors hover:text-[var(--ui-primary-hover)]",
12
+ fade: "pointer-events-none absolute inset-x-0 bottom-0 h-16 bg-gradient-to-t from-[var(--selaras-resolved-surface-default)] to-transparent",
13
+ trigger: "relative mt-2 inline-flex items-center gap-1 text-sm font-medium text-[var(--_selaras-color-text)] transition-colors hover:text-[var(--_selaras-color-text-hover)]",
14
14
  triggerIcon: "size-4 transition-transform duration-200"
15
15
  },
16
16
  variants: {
17
+ color: {
18
+ primary: "",
19
+ neutral: "",
20
+ secondary: "",
21
+ success: "",
22
+ danger: "",
23
+ info: "",
24
+ warning: ""
25
+ },
17
26
  open: {
18
27
  true: { triggerIcon: "rotate-180" }
19
28
  }
@@ -2,8 +2,8 @@ export declare const scrollAreaTheme: import("tailwind-variants").TVReturnType<{
2
2
  [key: string]: {
3
3
  [key: string]: import("tailwind-variants").ClassValue | {
4
4
  root?: import("tailwind-variants").ClassValue;
5
- viewport?: import("tailwind-variants").ClassValue;
6
5
  thumb?: import("tailwind-variants").ClassValue;
6
+ viewport?: import("tailwind-variants").ClassValue;
7
7
  scrollbar?: import("tailwind-variants").ClassValue;
8
8
  corner?: import("tailwind-variants").ClassValue;
9
9
  };
@@ -12,8 +12,8 @@ export declare const scrollAreaTheme: import("tailwind-variants").TVReturnType<{
12
12
  [x: string]: {
13
13
  [x: string]: import("tailwind-variants").ClassValue | {
14
14
  root?: import("tailwind-variants").ClassValue;
15
- viewport?: import("tailwind-variants").ClassValue;
16
15
  thumb?: import("tailwind-variants").ClassValue;
16
+ viewport?: import("tailwind-variants").ClassValue;
17
17
  scrollbar?: import("tailwind-variants").ClassValue;
18
18
  corner?: import("tailwind-variants").ClassValue;
19
19
  };
@@ -28,8 +28,8 @@ export declare const scrollAreaTheme: import("tailwind-variants").TVReturnType<{
28
28
  [key: string]: {
29
29
  [key: string]: import("tailwind-variants").ClassValue | {
30
30
  root?: import("tailwind-variants").ClassValue;
31
- viewport?: import("tailwind-variants").ClassValue;
32
31
  thumb?: import("tailwind-variants").ClassValue;
32
+ viewport?: import("tailwind-variants").ClassValue;
33
33
  scrollbar?: import("tailwind-variants").ClassValue;
34
34
  corner?: import("tailwind-variants").ClassValue;
35
35
  };
@@ -4,7 +4,7 @@ export const scrollAreaTheme = tv({
4
4
  root: "relative overflow-hidden",
5
5
  viewport: "h-full w-full rounded-[inherit]",
6
6
  scrollbar: "flex touch-none select-none p-0.5 transition-colors data-[orientation=vertical]:w-2 data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:flex-col",
7
- thumb: "relative flex-1 rounded-full bg-[var(--ui-border)] before:absolute before:left-1/2 before:top-1/2 before:h-full before:min-h-11 before:w-full before:min-w-11 before:-translate-x-1/2 before:-translate-y-1/2",
8
- corner: "bg-[var(--ui-bg-elevated)]"
7
+ thumb: "relative flex-1 rounded-full bg-[var(--selaras-resolved-border-default)] before:absolute before:left-1/2 before:top-1/2 before:h-full before:min-h-11 before:w-full before:min-w-11 before:-translate-x-1/2 before:-translate-y-1/2",
8
+ corner: "bg-[var(--selaras-resolved-surface-elevated)]"
9
9
  }
10
10
  });