@cube-dev/ui-kit 0.117.0 → 0.119.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 (1026) hide show
  1. package/dist/CHANGELOG.md +32 -0
  2. package/dist/_internal/hooks/use-chained-callback.js +1 -1
  3. package/dist/_internal/hooks/use-debounced-value.js +1 -1
  4. package/dist/_internal/hooks/use-deprecation-warning.js +1 -1
  5. package/dist/_internal/hooks/use-event.js +1 -1
  6. package/dist/_internal/hooks/use-is-first-render.js +1 -1
  7. package/dist/_internal/hooks/use-sync-ref.js +1 -1
  8. package/dist/_internal/hooks/use-timer/timer.js +1 -1
  9. package/dist/_internal/hooks/use-timer/use-timer.js +1 -1
  10. package/dist/_internal/hooks/use-warn.js +1 -1
  11. package/dist/components/Block.d.ts +1 -2
  12. package/dist/components/Block.js +2 -5
  13. package/dist/components/Block.js.map +1 -1
  14. package/dist/components/CollectionItem.js +1 -1
  15. package/dist/components/GlobalStyles.js +2 -57
  16. package/dist/components/GlobalStyles.js.map +1 -1
  17. package/dist/components/GridProvider.d.ts +1 -2
  18. package/dist/components/GridProvider.js +2 -3
  19. package/dist/components/GridProvider.js.map +1 -1
  20. package/dist/components/HiddenInput.js +2 -2
  21. package/dist/components/HiddenInput.js.map +1 -1
  22. package/dist/components/Root.d.ts +1 -2
  23. package/dist/components/Root.js +2 -6
  24. package/dist/components/Root.js.map +1 -1
  25. package/dist/components/actions/Action/Action.d.ts +1 -2
  26. package/dist/components/actions/Action/Action.js +2 -4
  27. package/dist/components/actions/Action/Action.js.map +1 -1
  28. package/dist/components/actions/Banner/Banner.d.ts +1 -1
  29. package/dist/components/actions/Banner/Banner.js +5 -5
  30. package/dist/components/actions/Banner/Banner.js.map +1 -1
  31. package/dist/components/actions/Button/Button.d.ts +2 -1769
  32. package/dist/components/actions/Button/Button.js +2 -4
  33. package/dist/components/actions/Button/Button.js.map +1 -1
  34. package/dist/components/actions/ButtonGroup/ButtonGroup.js +2 -2
  35. package/dist/components/actions/ButtonGroup/ButtonGroup.js.map +1 -1
  36. package/dist/components/actions/CommandMenu/CommandMenu.d.ts +1 -3
  37. package/dist/components/actions/CommandMenu/CommandMenu.js +2 -4
  38. package/dist/components/actions/CommandMenu/CommandMenu.js.map +1 -1
  39. package/dist/components/actions/CommandMenu/styled.js +3 -3
  40. package/dist/components/actions/CommandMenu/styled.js.map +1 -1
  41. package/dist/components/actions/ItemAction/ItemAction.d.ts +1 -3
  42. package/dist/components/actions/ItemAction/ItemAction.js +2 -2
  43. package/dist/components/actions/ItemAction/ItemAction.js.map +1 -1
  44. package/dist/components/actions/ItemActionContext.js +1 -1
  45. package/dist/components/actions/ItemButton/ItemButton.d.ts +1 -2
  46. package/dist/components/actions/ItemButton/ItemButton.js +2 -2
  47. package/dist/components/actions/ItemButton/ItemButton.js.map +1 -1
  48. package/dist/components/actions/Link/Link.js +1 -1
  49. package/dist/components/actions/Menu/Menu.d.ts +1 -3
  50. package/dist/components/actions/Menu/Menu.js +2 -4
  51. package/dist/components/actions/Menu/Menu.js.map +1 -1
  52. package/dist/components/actions/Menu/MenuItem.d.ts +1 -2
  53. package/dist/components/actions/Menu/MenuItem.js +1 -1
  54. package/dist/components/actions/Menu/MenuItem.js.map +1 -1
  55. package/dist/components/actions/Menu/MenuSection.d.ts +1 -2
  56. package/dist/components/actions/Menu/MenuSection.js +1 -1
  57. package/dist/components/actions/Menu/MenuSection.js.map +1 -1
  58. package/dist/components/actions/Menu/MenuTrigger.js +1 -1
  59. package/dist/components/actions/Menu/SubMenuTrigger.js +1 -1
  60. package/dist/components/actions/Menu/SubmenuTriggerContext.js +1 -1
  61. package/dist/components/actions/Menu/context.js +1 -1
  62. package/dist/components/actions/Menu/styled.js +2 -2
  63. package/dist/components/actions/Menu/styled.js.map +1 -1
  64. package/dist/components/actions/index.js +1 -1
  65. package/dist/components/actions/use-action.d.ts +1 -2
  66. package/dist/components/actions/use-action.js +2 -2
  67. package/dist/components/actions/use-action.js.map +1 -1
  68. package/dist/components/actions/use-anchored-menu.js +1 -1
  69. package/dist/components/actions/use-context-menu.js +1 -1
  70. package/dist/components/content/ActiveZone/ActiveZone.d.ts +1 -2
  71. package/dist/components/content/ActiveZone/ActiveZone.js +2 -5
  72. package/dist/components/content/ActiveZone/ActiveZone.js.map +1 -1
  73. package/dist/components/content/Alert/Alert.js +2 -2
  74. package/dist/components/content/Alert/Alert.js.map +1 -1
  75. package/dist/components/content/Alert/types.d.ts +1 -2
  76. package/dist/components/content/Alert/use-alert.js +2 -4
  77. package/dist/components/content/Alert/use-alert.js.map +1 -1
  78. package/dist/components/content/Avatar/Avatar.d.ts +1 -3
  79. package/dist/components/content/Avatar/Avatar.js +2 -5
  80. package/dist/components/content/Avatar/Avatar.js.map +1 -1
  81. package/dist/components/content/Badge/Badge.js +2 -2
  82. package/dist/components/content/Badge/Badge.js.map +1 -1
  83. package/dist/components/content/Card/Card.d.ts +1 -2
  84. package/dist/components/content/Card/Card.js +2 -5
  85. package/dist/components/content/Card/Card.js.map +1 -1
  86. package/dist/components/content/Content.d.ts +1 -2
  87. package/dist/components/content/Content.js +2 -5
  88. package/dist/components/content/Content.js.map +1 -1
  89. package/dist/components/content/CopyPasteBlock/CopyPasteBlock.d.ts +1 -3
  90. package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +2 -4
  91. package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js.map +1 -1
  92. package/dist/components/content/CopySnippet/CopySnippet.js +2 -2
  93. package/dist/components/content/CopySnippet/CopySnippet.js.map +1 -1
  94. package/dist/components/content/Disclosure/Disclosure.d.ts +1 -3
  95. package/dist/components/content/Disclosure/Disclosure.js +2 -4
  96. package/dist/components/content/Disclosure/Disclosure.js.map +1 -1
  97. package/dist/components/content/Divider.d.ts +1 -2
  98. package/dist/components/content/Divider.js +2 -4
  99. package/dist/components/content/Divider.js.map +1 -1
  100. package/dist/components/content/Footer.d.ts +1 -2
  101. package/dist/components/content/Footer.js +2 -5
  102. package/dist/components/content/Footer.js.map +1 -1
  103. package/dist/components/content/Header.d.ts +1 -2
  104. package/dist/components/content/Header.js +2 -5
  105. package/dist/components/content/Header.js.map +1 -1
  106. package/dist/components/content/HotKeys/HotKeys.d.ts +1 -2
  107. package/dist/components/content/HotKeys/HotKeys.js +2 -5
  108. package/dist/components/content/HotKeys/HotKeys.js.map +1 -1
  109. package/dist/components/content/Item/Item.d.ts +1 -3
  110. package/dist/components/content/Item/Item.js +2 -3
  111. package/dist/components/content/Item/Item.js.map +1 -1
  112. package/dist/components/content/ItemBadge/ItemBadge.d.ts +1 -2
  113. package/dist/components/content/ItemBadge/ItemBadge.js +2 -2
  114. package/dist/components/content/ItemBadge/ItemBadge.js.map +1 -1
  115. package/dist/components/content/Layout/GridLayout.d.ts +1 -2
  116. package/dist/components/content/Layout/GridLayout.js +2 -2
  117. package/dist/components/content/Layout/GridLayout.js.map +1 -1
  118. package/dist/components/content/Layout/Layout.d.ts +1 -3
  119. package/dist/components/content/Layout/Layout.js +3 -7
  120. package/dist/components/content/Layout/Layout.js.map +1 -1
  121. package/dist/components/content/Layout/LayoutBlock.js +2 -2
  122. package/dist/components/content/Layout/LayoutBlock.js.map +1 -1
  123. package/dist/components/content/Layout/LayoutCenter.js +2 -2
  124. package/dist/components/content/Layout/LayoutCenter.js.map +1 -1
  125. package/dist/components/content/Layout/LayoutContainer.d.ts +1 -3
  126. package/dist/components/content/Layout/LayoutContainer.js +2 -6
  127. package/dist/components/content/Layout/LayoutContainer.js.map +1 -1
  128. package/dist/components/content/Layout/LayoutContent.d.ts +1 -2
  129. package/dist/components/content/Layout/LayoutContent.js +2 -6
  130. package/dist/components/content/Layout/LayoutContent.js.map +1 -1
  131. package/dist/components/content/Layout/LayoutContext.js +1 -1
  132. package/dist/components/content/Layout/LayoutFlex.js +2 -2
  133. package/dist/components/content/Layout/LayoutFlex.js.map +1 -1
  134. package/dist/components/content/Layout/LayoutFooter.js +2 -2
  135. package/dist/components/content/Layout/LayoutFooter.js.map +1 -1
  136. package/dist/components/content/Layout/LayoutGrid.d.ts +1 -2
  137. package/dist/components/content/Layout/LayoutGrid.js +2 -2
  138. package/dist/components/content/Layout/LayoutGrid.js.map +1 -1
  139. package/dist/components/content/Layout/LayoutHeader.js +2 -2
  140. package/dist/components/content/Layout/LayoutHeader.js.map +1 -1
  141. package/dist/components/content/Layout/LayoutPane.d.ts +1 -3
  142. package/dist/components/content/Layout/LayoutPane.js +2 -6
  143. package/dist/components/content/Layout/LayoutPane.js.map +1 -1
  144. package/dist/components/content/Layout/LayoutPanel.d.ts +1 -3
  145. package/dist/components/content/Layout/LayoutPanel.js +2 -6
  146. package/dist/components/content/Layout/LayoutPanel.js.map +1 -1
  147. package/dist/components/content/Layout/LayoutPanelHeader.d.ts +1 -2
  148. package/dist/components/content/Layout/LayoutPanelHeader.js +2 -4
  149. package/dist/components/content/Layout/LayoutPanelHeader.js.map +1 -1
  150. package/dist/components/content/Layout/LayoutToolbar.js +2 -2
  151. package/dist/components/content/Layout/LayoutToolbar.js.map +1 -1
  152. package/dist/components/content/Layout/hooks/useTinyScrollbar.js +1 -1
  153. package/dist/components/content/Layout/index.js +1 -1
  154. package/dist/components/content/Layout/utils.js +1 -1
  155. package/dist/components/content/Paragraph.d.ts +1 -2
  156. package/dist/components/content/Paragraph.js +2 -3
  157. package/dist/components/content/Paragraph.js.map +1 -1
  158. package/dist/components/content/Placeholder/Placeholder.d.ts +1 -3
  159. package/dist/components/content/Placeholder/Placeholder.js +2 -6
  160. package/dist/components/content/Placeholder/Placeholder.js.map +1 -1
  161. package/dist/components/content/PrismCode/PrismCode.d.ts +1 -3
  162. package/dist/components/content/PrismCode/PrismCode.js +2 -3
  163. package/dist/components/content/PrismCode/PrismCode.js.map +1 -1
  164. package/dist/components/content/PrismCode/prismSetup.js +1 -1
  165. package/dist/components/content/PrismDiffCode/PrismDiffCode.d.ts +1 -3
  166. package/dist/components/content/PrismDiffCode/PrismDiffCode.js +1 -1
  167. package/dist/components/content/PrismDiffCode/PrismDiffCode.js.map +1 -1
  168. package/dist/components/content/Result/Result.d.ts +1 -2
  169. package/dist/components/content/Result/Result.js +2 -5
  170. package/dist/components/content/Result/Result.js.map +1 -1
  171. package/dist/components/content/Skeleton/Skeleton.d.ts +1 -2
  172. package/dist/components/content/Skeleton/Skeleton.js +1 -1
  173. package/dist/components/content/Skeleton/Skeleton.js.map +1 -1
  174. package/dist/components/content/Tag/Tag.d.ts +1 -2
  175. package/dist/components/content/Tag/Tag.js +2 -2
  176. package/dist/components/content/Tag/Tag.js.map +1 -1
  177. package/dist/components/content/Text.d.ts +128 -159
  178. package/dist/components/content/Text.js +2 -5
  179. package/dist/components/content/Text.js.map +1 -1
  180. package/dist/components/content/TextItem/TextItem.d.ts +1 -2
  181. package/dist/components/content/TextItem/TextItem.js +2 -5
  182. package/dist/components/content/TextItem/TextItem.js.map +1 -1
  183. package/dist/components/content/Title.d.ts +1 -2
  184. package/dist/components/content/Title.js +2 -5
  185. package/dist/components/content/Title.js.map +1 -1
  186. package/dist/components/content/highlightText.js +1 -1
  187. package/dist/components/content/highlightText.js.map +1 -1
  188. package/dist/components/content/use-auto-tooltip.d.ts +1 -1
  189. package/dist/components/content/use-auto-tooltip.js +1 -1
  190. package/dist/components/content/use-auto-tooltip.js.map +1 -1
  191. package/dist/components/fields/Checkbox/Checkbox.d.ts +1 -3
  192. package/dist/components/fields/Checkbox/Checkbox.js +2 -5
  193. package/dist/components/fields/Checkbox/Checkbox.js.map +1 -1
  194. package/dist/components/fields/Checkbox/CheckboxGroup.d.ts +1 -3
  195. package/dist/components/fields/Checkbox/CheckboxGroup.js +2 -4
  196. package/dist/components/fields/Checkbox/CheckboxGroup.js.map +1 -1
  197. package/dist/components/fields/Checkbox/context.js +1 -1
  198. package/dist/components/fields/ComboBox/ComboBox.d.ts +1 -3
  199. package/dist/components/fields/ComboBox/ComboBox.js +2 -4
  200. package/dist/components/fields/ComboBox/ComboBox.js.map +1 -1
  201. package/dist/components/fields/DatePicker/DateInput.d.ts +1 -3
  202. package/dist/components/fields/DatePicker/DateInput.js +2 -3
  203. package/dist/components/fields/DatePicker/DateInput.js.map +1 -1
  204. package/dist/components/fields/DatePicker/DateInputBase.js +2 -4
  205. package/dist/components/fields/DatePicker/DateInputBase.js.map +1 -1
  206. package/dist/components/fields/DatePicker/DatePicker.d.ts +1 -3
  207. package/dist/components/fields/DatePicker/DatePicker.js +2 -3
  208. package/dist/components/fields/DatePicker/DatePicker.js.map +1 -1
  209. package/dist/components/fields/DatePicker/DatePickerButton.js +2 -2
  210. package/dist/components/fields/DatePicker/DatePickerButton.js.map +1 -1
  211. package/dist/components/fields/DatePicker/DatePickerElement.js +2 -2
  212. package/dist/components/fields/DatePicker/DatePickerElement.js.map +1 -1
  213. package/dist/components/fields/DatePicker/DatePickerInput.js +2 -2
  214. package/dist/components/fields/DatePicker/DatePickerInput.js.map +1 -1
  215. package/dist/components/fields/DatePicker/DatePickerSegment.js +2 -2
  216. package/dist/components/fields/DatePicker/DatePickerSegment.js.map +1 -1
  217. package/dist/components/fields/DatePicker/DateRangePicker.d.ts +1 -3
  218. package/dist/components/fields/DatePicker/DateRangePicker.js +2 -4
  219. package/dist/components/fields/DatePicker/DateRangePicker.js.map +1 -1
  220. package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.d.ts +1 -3
  221. package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +2 -4
  222. package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js.map +1 -1
  223. package/dist/components/fields/DatePicker/TimeInput.d.ts +1 -3
  224. package/dist/components/fields/DatePicker/TimeInput.js +2 -3
  225. package/dist/components/fields/DatePicker/TimeInput.js.map +1 -1
  226. package/dist/components/fields/DatePicker/intl.js +1 -1
  227. package/dist/components/fields/DatePicker/parseDate.js +1 -1
  228. package/dist/components/fields/DatePicker/props.js +1 -1
  229. package/dist/components/fields/DatePicker/utils.js +1 -1
  230. package/dist/components/fields/FileInput/FileInput.d.ts +1 -3
  231. package/dist/components/fields/FileInput/FileInput.js +2 -4
  232. package/dist/components/fields/FileInput/FileInput.js.map +1 -1
  233. package/dist/components/fields/FilterListBox/FilterListBox.d.ts +1 -2
  234. package/dist/components/fields/FilterListBox/FilterListBox.js +5 -7
  235. package/dist/components/fields/FilterListBox/FilterListBox.js.map +1 -1
  236. package/dist/components/fields/FilterPicker/FilterPicker.d.ts +1 -3
  237. package/dist/components/fields/FilterPicker/FilterPicker.js +2 -5
  238. package/dist/components/fields/FilterPicker/FilterPicker.js.map +1 -1
  239. package/dist/components/fields/Input/Input.js +1 -1
  240. package/dist/components/fields/ListBox/ListBox.d.ts +1 -3
  241. package/dist/components/fields/ListBox/ListBox.js +2 -5
  242. package/dist/components/fields/ListBox/ListBox.js.map +1 -1
  243. package/dist/components/fields/NumberInput/NumberInput.js +2 -2
  244. package/dist/components/fields/NumberInput/NumberInput.js.map +1 -1
  245. package/dist/components/fields/NumberInput/StepButton.js +2 -2
  246. package/dist/components/fields/NumberInput/StepButton.js.map +1 -1
  247. package/dist/components/fields/PasswordInput/PasswordInput.js +1 -1
  248. package/dist/components/fields/Picker/Picker.d.ts +1 -3
  249. package/dist/components/fields/Picker/Picker.js +2 -5
  250. package/dist/components/fields/Picker/Picker.js.map +1 -1
  251. package/dist/components/fields/RadioGroup/Radio.d.ts +1 -2
  252. package/dist/components/fields/RadioGroup/Radio.js +2 -5
  253. package/dist/components/fields/RadioGroup/Radio.js.map +1 -1
  254. package/dist/components/fields/RadioGroup/RadioGroup.d.ts +1 -3
  255. package/dist/components/fields/RadioGroup/RadioGroup.js +2 -4
  256. package/dist/components/fields/RadioGroup/RadioGroup.js.map +1 -1
  257. package/dist/components/fields/RadioGroup/context.js +1 -1
  258. package/dist/components/fields/SearchInput/SearchInput.js +1 -1
  259. package/dist/components/fields/Select/Select.d.ts +834 -836
  260. package/dist/components/fields/Select/Select.js +2 -4
  261. package/dist/components/fields/Select/Select.js.map +1 -1
  262. package/dist/components/fields/Slider/Gradation.js +1 -1
  263. package/dist/components/fields/Slider/HueSlider.js +1 -1
  264. package/dist/components/fields/Slider/HueSlider.js.map +1 -1
  265. package/dist/components/fields/Slider/RangeSlider.js +1 -1
  266. package/dist/components/fields/Slider/Slider.d.ts +1 -3
  267. package/dist/components/fields/Slider/Slider.js +2 -3
  268. package/dist/components/fields/Slider/Slider.js.map +1 -1
  269. package/dist/components/fields/Slider/SliderBase.js +2 -4
  270. package/dist/components/fields/Slider/SliderBase.js.map +1 -1
  271. package/dist/components/fields/Slider/SliderThumb.js +1 -1
  272. package/dist/components/fields/Slider/SliderThumb.js.map +1 -1
  273. package/dist/components/fields/Slider/SliderTrack.js +1 -1
  274. package/dist/components/fields/Slider/SliderTrack.js.map +1 -1
  275. package/dist/components/fields/Slider/elements.js +2 -2
  276. package/dist/components/fields/Slider/elements.js.map +1 -1
  277. package/dist/components/fields/Slider/index.js +1 -1
  278. package/dist/components/fields/Slider/types.d.ts +1 -3
  279. package/dist/components/fields/Switch/Switch.d.ts +1 -3
  280. package/dist/components/fields/Switch/Switch.js +2 -4
  281. package/dist/components/fields/Switch/Switch.js.map +1 -1
  282. package/dist/components/fields/TextArea/TextArea.js +1 -1
  283. package/dist/components/fields/TextInput/TextInput.js +1 -1
  284. package/dist/components/fields/TextInput/TextInputBase.d.ts +1 -3
  285. package/dist/components/fields/TextInput/TextInputBase.js +3 -5
  286. package/dist/components/fields/TextInput/TextInputBase.js.map +1 -1
  287. package/dist/components/fields/TextInputMapper/TextInputMapper.js +1 -1
  288. package/dist/components/form/FieldWrapper/FieldWrapper.js +2 -2
  289. package/dist/components/form/FieldWrapper/FieldWrapper.js.map +1 -1
  290. package/dist/components/form/FieldWrapper/extract-field-wrapper-props.js +1 -1
  291. package/dist/components/form/FieldWrapper/types.d.ts +1 -3
  292. package/dist/components/form/Form/Field.d.ts +1 -2
  293. package/dist/components/form/Form/Field.js +1 -1
  294. package/dist/components/form/Form/Field.js.map +1 -1
  295. package/dist/components/form/Form/Form.d.ts +1 -3
  296. package/dist/components/form/Form/Form.js +2 -5
  297. package/dist/components/form/Form/Form.js.map +1 -1
  298. package/dist/components/form/Form/ResetButton/ResetButton.js +1 -1
  299. package/dist/components/form/Form/SubmitButton/SubmitButton.js +1 -1
  300. package/dist/components/form/Form/SubmitError.js +1 -1
  301. package/dist/components/form/Form/index.js +1 -1
  302. package/dist/components/form/Form/use-field/use-field-props.js +1 -1
  303. package/dist/components/form/Form/use-field/use-field.js +1 -1
  304. package/dist/components/form/Form/use-form.js +2 -2
  305. package/dist/components/form/Form/use-form.js.map +1 -1
  306. package/dist/components/form/Form/validation.js +1 -1
  307. package/dist/components/form/Label.d.ts +1 -3
  308. package/dist/components/form/Label.js +2 -5
  309. package/dist/components/form/Label.js.map +1 -1
  310. package/dist/components/form/wrapper.d.ts +1 -2
  311. package/dist/components/form/wrapper.js +1 -1
  312. package/dist/components/form/wrapper.js.map +1 -1
  313. package/dist/components/helpers/DisplayTransition/DisplayTransition.js +1 -1
  314. package/dist/components/helpers/IconSwitch/IconSwitch.js +2 -2
  315. package/dist/components/helpers/IconSwitch/IconSwitch.js.map +1 -1
  316. package/dist/components/layout/Flex.d.ts +1 -2
  317. package/dist/components/layout/Flex.js +2 -5
  318. package/dist/components/layout/Flex.js.map +1 -1
  319. package/dist/components/layout/Flow.d.ts +1 -2
  320. package/dist/components/layout/Flow.js +2 -5
  321. package/dist/components/layout/Flow.js.map +1 -1
  322. package/dist/components/layout/Grid.d.ts +1 -2
  323. package/dist/components/layout/Grid.js +2 -5
  324. package/dist/components/layout/Grid.js.map +1 -1
  325. package/dist/components/layout/Panel.d.ts +1 -3
  326. package/dist/components/layout/Panel.js +2 -3
  327. package/dist/components/layout/Panel.js.map +1 -1
  328. package/dist/components/layout/Prefix.d.ts +1 -2
  329. package/dist/components/layout/Prefix.js +2 -5
  330. package/dist/components/layout/Prefix.js.map +1 -1
  331. package/dist/components/layout/ResizablePanel.d.ts +1 -2
  332. package/dist/components/layout/ResizablePanel.js +2 -2
  333. package/dist/components/layout/ResizablePanel.js.map +1 -1
  334. package/dist/components/layout/Space.d.ts +1 -2
  335. package/dist/components/layout/Space.js +2 -5
  336. package/dist/components/layout/Space.js.map +1 -1
  337. package/dist/components/layout/Suffix.d.ts +1 -2
  338. package/dist/components/layout/Suffix.js +2 -5
  339. package/dist/components/layout/Suffix.js.map +1 -1
  340. package/dist/components/navigation/Tabs/DraggableTabList.js +1 -1
  341. package/dist/components/navigation/Tabs/EditableTitle.js +1 -1
  342. package/dist/components/navigation/Tabs/TabButton.js +1 -1
  343. package/dist/components/navigation/Tabs/TabDropIndicator.js +1 -1
  344. package/dist/components/navigation/Tabs/TabPanel.js +1 -1
  345. package/dist/components/navigation/Tabs/TabPanel.js.map +1 -1
  346. package/dist/components/navigation/Tabs/TabPicker.js +1 -1
  347. package/dist/components/navigation/Tabs/Tabs.js +2 -4
  348. package/dist/components/navigation/Tabs/Tabs.js.map +1 -1
  349. package/dist/components/navigation/Tabs/TabsAction.js +2 -2
  350. package/dist/components/navigation/Tabs/TabsAction.js.map +1 -1
  351. package/dist/components/navigation/Tabs/TabsContext.js +1 -1
  352. package/dist/components/navigation/Tabs/styled.js +2 -2
  353. package/dist/components/navigation/Tabs/styled.js.map +1 -1
  354. package/dist/components/navigation/Tabs/types.d.ts +1 -3
  355. package/dist/components/navigation/Tabs/types.js +1 -1
  356. package/dist/components/navigation/Tabs/types.js.map +1 -1
  357. package/dist/components/navigation/Tabs/use-tab-editing.js +1 -1
  358. package/dist/components/navigation/Tabs/use-tab-indicator.js +1 -1
  359. package/dist/components/organisms/FileTabs/FileTabs.d.ts +1 -2
  360. package/dist/components/organisms/FileTabs/FileTabs.js +2 -2
  361. package/dist/components/organisms/FileTabs/FileTabs.js.map +1 -1
  362. package/dist/components/organisms/StatsCard/StatsCard.js +1 -1
  363. package/dist/components/other/Calendar/Calendar.js +2 -2
  364. package/dist/components/other/Calendar/Calendar.js.map +1 -1
  365. package/dist/components/other/Calendar/CalendarCell.js +2 -2
  366. package/dist/components/other/Calendar/CalendarCell.js.map +1 -1
  367. package/dist/components/other/Calendar/CalendarGrid.js +2 -2
  368. package/dist/components/other/Calendar/CalendarGrid.js.map +1 -1
  369. package/dist/components/other/Calendar/RangeCalendar.js +2 -2
  370. package/dist/components/other/Calendar/RangeCalendar.js.map +1 -1
  371. package/dist/components/other/CloudLogo/CloudLogo.js +2 -2
  372. package/dist/components/other/CloudLogo/CloudLogo.js.map +1 -1
  373. package/dist/components/overlays/AlertDialog/AlertDialog.js +1 -1
  374. package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
  375. package/dist/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
  376. package/dist/components/overlays/AlertDialog/types.d.ts +1 -1
  377. package/dist/components/overlays/Dialog/Dialog.d.ts +1 -3
  378. package/dist/components/overlays/Dialog/Dialog.js +2 -4
  379. package/dist/components/overlays/Dialog/Dialog.js.map +1 -1
  380. package/dist/components/overlays/Dialog/DialogContainer.js +1 -1
  381. package/dist/components/overlays/Dialog/DialogForm.js +1 -1
  382. package/dist/components/overlays/Dialog/DialogTrigger.d.ts +1 -2
  383. package/dist/components/overlays/Dialog/DialogTrigger.js +1 -1
  384. package/dist/components/overlays/Dialog/DialogTrigger.js.map +1 -1
  385. package/dist/components/overlays/Dialog/context.js +1 -1
  386. package/dist/components/overlays/Dialog/use-dialog-container.js +1 -1
  387. package/dist/components/overlays/Modal/Modal.d.ts +1 -1
  388. package/dist/components/overlays/Modal/Modal.js +2 -2
  389. package/dist/components/overlays/Modal/Modal.js.map +1 -1
  390. package/dist/components/overlays/Modal/OpenTransition.js +1 -1
  391. package/dist/components/overlays/Modal/Overlay.js +1 -1
  392. package/dist/components/overlays/Modal/Overlay.js.map +1 -1
  393. package/dist/components/overlays/Modal/Popover.d.ts +1 -1
  394. package/dist/components/overlays/Modal/Popover.js +2 -2
  395. package/dist/components/overlays/Modal/Popover.js.map +1 -1
  396. package/dist/components/overlays/Modal/Tray.d.ts +1 -1
  397. package/dist/components/overlays/Modal/Tray.js +2 -2
  398. package/dist/components/overlays/Modal/Tray.js.map +1 -1
  399. package/dist/components/overlays/Modal/Underlay.js +2 -2
  400. package/dist/components/overlays/Modal/Underlay.js.map +1 -1
  401. package/dist/components/overlays/Notifications/Notification.js +2 -2
  402. package/dist/components/overlays/Notifications/Notification.js.map +1 -1
  403. package/dist/components/overlays/Notifications/NotificationAction.js +10 -4
  404. package/dist/components/overlays/Notifications/NotificationAction.js.map +1 -1
  405. package/dist/components/overlays/Notifications/NotificationCard.d.ts +5 -2
  406. package/dist/components/overlays/Notifications/NotificationCard.js +9 -7
  407. package/dist/components/overlays/Notifications/NotificationCard.js.map +1 -1
  408. package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
  409. package/dist/components/overlays/Notifications/NotificationItem.d.ts +3 -1
  410. package/dist/components/overlays/Notifications/NotificationItem.js +8 -7
  411. package/dist/components/overlays/Notifications/NotificationItem.js.map +1 -1
  412. package/dist/components/overlays/Notifications/OverlayContainer.js +6 -5
  413. package/dist/components/overlays/Notifications/OverlayContainer.js.map +1 -1
  414. package/dist/components/overlays/Notifications/OverlayProvider.js +2 -1
  415. package/dist/components/overlays/Notifications/OverlayProvider.js.map +1 -1
  416. package/dist/components/overlays/Notifications/PersistentNotificationsList.js +3 -3
  417. package/dist/components/overlays/Notifications/PersistentNotificationsList.js.map +1 -1
  418. package/dist/components/overlays/Notifications/dismissed-storage.js +1 -1
  419. package/dist/components/overlays/Notifications/format-relative-time.js +1 -1
  420. package/dist/components/overlays/Notifications/index.js +1 -1
  421. package/dist/components/overlays/Notifications/types.d.ts +4 -2
  422. package/dist/components/overlays/Notifications/use-notification-state.js +48 -2
  423. package/dist/components/overlays/Notifications/use-notification-state.js.map +1 -1
  424. package/dist/components/overlays/Notifications/use-notifications.js +1 -1
  425. package/dist/components/overlays/Notifications/use-overlay-timers.js +1 -1
  426. package/dist/components/overlays/Notifications/use-persistent-notifications.js +1 -1
  427. package/dist/components/overlays/Notifications/use-persistent-state.js +8 -1
  428. package/dist/components/overlays/Notifications/use-persistent-state.js.map +1 -1
  429. package/dist/components/overlays/Notifications/use-toast-state.js +1 -1
  430. package/dist/components/overlays/Toast/ToastItem.js +2 -2
  431. package/dist/components/overlays/Toast/ToastItem.js.map +1 -1
  432. package/dist/components/overlays/Toast/index.js +1 -1
  433. package/dist/components/overlays/Toast/types.d.ts +2 -0
  434. package/dist/components/overlays/Toast/useProgressToast.js +49 -21
  435. package/dist/components/overlays/Toast/useProgressToast.js.map +1 -1
  436. package/dist/components/overlays/Toast/useToast.js +2 -2
  437. package/dist/components/overlays/Tooltip/Tooltip.d.ts +1 -3
  438. package/dist/components/overlays/Tooltip/Tooltip.js +2 -4
  439. package/dist/components/overlays/Tooltip/Tooltip.js.map +1 -1
  440. package/dist/components/overlays/Tooltip/TooltipProvider.d.ts +1 -2
  441. package/dist/components/overlays/Tooltip/TooltipProvider.js +1 -1
  442. package/dist/components/overlays/Tooltip/TooltipProvider.js.map +1 -1
  443. package/dist/components/overlays/Tooltip/TooltipTrigger.js +1 -1
  444. package/dist/components/overlays/Tooltip/context.js +1 -1
  445. package/dist/components/overlays/Tooltip/context.js.map +1 -1
  446. package/dist/components/portal/Portal.js +1 -1
  447. package/dist/components/portal/PortalProvider.js +1 -1
  448. package/dist/components/portal/usePortal.js +1 -1
  449. package/dist/components/shared/InvalidIcon.js +1 -1
  450. package/dist/components/shared/ValidIcon.js +1 -1
  451. package/dist/components/status/LoadingAnimation/LoadingAnimation.js +2 -2
  452. package/dist/components/status/LoadingAnimation/LoadingAnimation.js.map +1 -1
  453. package/dist/components/status/Spin/Cube.js +2 -2
  454. package/dist/components/status/Spin/Cube.js.map +1 -1
  455. package/dist/components/status/Spin/InternalSpinner.js +2 -2
  456. package/dist/components/status/Spin/InternalSpinner.js.map +1 -1
  457. package/dist/components/status/Spin/Spin.js +2 -2
  458. package/dist/components/status/Spin/Spin.js.map +1 -1
  459. package/dist/components/status/Spin/SpinsContainer.js +2 -2
  460. package/dist/components/status/Spin/SpinsContainer.js.map +1 -1
  461. package/dist/components/status/Spin/types.d.ts +1 -2
  462. package/dist/data/item-themes.d.ts +1 -1
  463. package/dist/data/item-themes.js +1 -1
  464. package/dist/data/item-themes.js.map +1 -1
  465. package/dist/data/themes.js +1 -1
  466. package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
  467. package/dist/icons/AdjustmentsIcon.js +1 -1
  468. package/dist/icons/AiIcon.js +1 -1
  469. package/dist/icons/AreaChartIcon.js +1 -1
  470. package/dist/icons/BackwardIcon.js +1 -1
  471. package/dist/icons/BarChartIcon.js +1 -1
  472. package/dist/icons/BellFilledIcon.js +1 -1
  473. package/dist/icons/BellIcon.js +1 -1
  474. package/dist/icons/BooleanIcon.js +1 -1
  475. package/dist/icons/CalendarEditIcon.js +1 -1
  476. package/dist/icons/CalendarIcon.js +1 -1
  477. package/dist/icons/CaretDownIcon.js +1 -1
  478. package/dist/icons/CaretUpIcon.js +1 -1
  479. package/dist/icons/ChartAreaStackedIcon.js +1 -1
  480. package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
  481. package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
  482. package/dist/icons/ChartBarGroupedIcon.js +1 -1
  483. package/dist/icons/ChartBarHorizontalIcon.js +1 -1
  484. package/dist/icons/ChartBarLineIcon.js +1 -1
  485. package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
  486. package/dist/icons/ChartBarStackedIcon.js +1 -1
  487. package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
  488. package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
  489. package/dist/icons/ChartBoxPlot2Icon.js +1 -1
  490. package/dist/icons/ChartBoxPlotIcon.js +1 -1
  491. package/dist/icons/ChartBubbleIcon.js +1 -1
  492. package/dist/icons/ChartDonut2Icon.js +1 -1
  493. package/dist/icons/ChartFunnelIcon.js +1 -1
  494. package/dist/icons/ChartHeatmapIcon.js +1 -1
  495. package/dist/icons/ChartKPIIcon.js +1 -1
  496. package/dist/icons/ChartPie2Icon.js +1 -1
  497. package/dist/icons/ChartScatterIcon.js +1 -1
  498. package/dist/icons/CheckCircleFilledIcon.js +1 -1
  499. package/dist/icons/CheckCircleIcon.js +1 -1
  500. package/dist/icons/CheckIcon.js +1 -1
  501. package/dist/icons/CircleFilledIcon.js +1 -1
  502. package/dist/icons/ClearIcon.js +1 -1
  503. package/dist/icons/CloseCircleFilledIcon.js +1 -1
  504. package/dist/icons/CloseCircleIcon.js +1 -1
  505. package/dist/icons/CloseIcon.js +1 -1
  506. package/dist/icons/CodeIcon.js +1 -1
  507. package/dist/icons/ColumnTotalIcon.js +1 -1
  508. package/dist/icons/CopyIcon.js +1 -1
  509. package/dist/icons/CountIcon.js +1 -1
  510. package/dist/icons/CubeIcon.js +1 -1
  511. package/dist/icons/CubePauseIcon.js +1 -1
  512. package/dist/icons/CubePlayIcon.js +1 -1
  513. package/dist/icons/CurrencyDollarIcon.js +1 -1
  514. package/dist/icons/DangerIcon.js +1 -1
  515. package/dist/icons/DashboardIcon.js +1 -1
  516. package/dist/icons/DatabaseIcon.js +1 -1
  517. package/dist/icons/DecimalDecreaseIcon.js +1 -1
  518. package/dist/icons/DecimalIncreaseIcon.js +1 -1
  519. package/dist/icons/DirectionIcon.js +2 -2
  520. package/dist/icons/DirectionIcon.js.map +1 -1
  521. package/dist/icons/DonutIcon.js +1 -1
  522. package/dist/icons/DownIcon.js +1 -1
  523. package/dist/icons/EditIcon.js +1 -1
  524. package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
  525. package/dist/icons/ExclamationCircleIcon.js +1 -1
  526. package/dist/icons/ExclamationIcon.js +1 -1
  527. package/dist/icons/EyeIcon.js +1 -1
  528. package/dist/icons/EyeInvisibleIcon.js +1 -1
  529. package/dist/icons/FilterIcon.js +1 -1
  530. package/dist/icons/FolderFilledIcon.js +1 -1
  531. package/dist/icons/FolderIcon.js +1 -1
  532. package/dist/icons/FolderOpenFilledIcon.js +1 -1
  533. package/dist/icons/FolderOpenIcon.js +1 -1
  534. package/dist/icons/ForwardIcon.js +1 -1
  535. package/dist/icons/HierarchyIcon.js +1 -1
  536. package/dist/icons/HierarchyOpenIcon.js +1 -1
  537. package/dist/icons/Icon.d.ts +1 -3
  538. package/dist/icons/Icon.js +2 -3
  539. package/dist/icons/Icon.js.map +1 -1
  540. package/dist/icons/InfoCircleIcon.js +1 -1
  541. package/dist/icons/InfoIcon.js +1 -1
  542. package/dist/icons/KeyIcon.js +1 -1
  543. package/dist/icons/LeftIcon.js +1 -1
  544. package/dist/icons/LineChartIcon.js +1 -1
  545. package/dist/icons/LoadingIcon.js +1 -1
  546. package/dist/icons/LockFilledIcon.js +1 -1
  547. package/dist/icons/LockIcon.js +1 -1
  548. package/dist/icons/MoreIcon.js +1 -1
  549. package/dist/icons/NotAllowedIcon.js +1 -1
  550. package/dist/icons/Number123Icon.js +1 -1
  551. package/dist/icons/NumberIcon.js +1 -1
  552. package/dist/icons/PauseCircleFilledIcon.js +1 -1
  553. package/dist/icons/PauseCircleIcon.js +1 -1
  554. package/dist/icons/PauseIcon.js +1 -1
  555. package/dist/icons/PercentageIcon.js +1 -1
  556. package/dist/icons/PieChartIcon.js +1 -1
  557. package/dist/icons/PlayCircleIcon.js +1 -1
  558. package/dist/icons/PlayIcon.js +1 -1
  559. package/dist/icons/PlusIcon.js +1 -1
  560. package/dist/icons/ProgressBarIcon.js +1 -1
  561. package/dist/icons/ReloadIcon.js +1 -1
  562. package/dist/icons/ReportIcon.js +1 -1
  563. package/dist/icons/ReturnIcon.js +1 -1
  564. package/dist/icons/RightIcon.js +1 -1
  565. package/dist/icons/RowTotalsIcon.js +1 -1
  566. package/dist/icons/SchemeIcon.js +1 -1
  567. package/dist/icons/SearchIcon.js +1 -1
  568. package/dist/icons/SemanticQueryIcon.js +1 -1
  569. package/dist/icons/SettingsIcon.js +1 -1
  570. package/dist/icons/ShieldFilledIcon.js +1 -1
  571. package/dist/icons/ShieldIcon.js +1 -1
  572. package/dist/icons/SlashIcon.js +1 -1
  573. package/dist/icons/SparklesIcon.js +1 -1
  574. package/dist/icons/SqlIcon.js +1 -1
  575. package/dist/icons/StatsIcon.js +1 -1
  576. package/dist/icons/StopIcon.js +1 -1
  577. package/dist/icons/StringIcon.js +1 -1
  578. package/dist/icons/SubtotalsIcon.js +1 -1
  579. package/dist/icons/SwitchIcon.js +1 -1
  580. package/dist/icons/TableIcon.js +1 -1
  581. package/dist/icons/ThumbsDownIcon.js +1 -1
  582. package/dist/icons/ThumbsUpIcon.js +1 -1
  583. package/dist/icons/ThunderboltCrossedIcon.js +1 -1
  584. package/dist/icons/ThunderboltFilledIcon.js +1 -1
  585. package/dist/icons/ThunderboltIcon.js +1 -1
  586. package/dist/icons/TimeIcon.js +1 -1
  587. package/dist/icons/TrashIcon.js +1 -1
  588. package/dist/icons/UnlockIcon.js +1 -1
  589. package/dist/icons/UpIcon.js +1 -1
  590. package/dist/icons/UserGroupIcon.js +1 -1
  591. package/dist/icons/UserIcon.js +1 -1
  592. package/dist/icons/UserLockIcon.js +1 -1
  593. package/dist/icons/ViewIcon.js +1 -1
  594. package/dist/icons/WarningFilledIcon.js +1 -1
  595. package/dist/icons/WarningIcon.js +1 -1
  596. package/dist/icons/wrap-icon.js +1 -1
  597. package/dist/index.d.ts +4 -35
  598. package/dist/index.js +5 -31
  599. package/dist/index.js.map +1 -1
  600. package/dist/provider.d.ts +1 -2
  601. package/dist/provider.js +1 -1
  602. package/dist/provider.js.map +1 -1
  603. package/dist/providers/TrackingProvider.js +1 -1
  604. package/dist/providers/navigationAdapter.default.js +1 -1
  605. package/dist/shared/form.d.ts +1 -3
  606. package/dist/tokens/base.d.ts +1 -1
  607. package/dist/tokens/base.js +1 -1
  608. package/dist/tokens/base.js.map +1 -1
  609. package/dist/tokens/colors.d.ts +1 -1
  610. package/dist/tokens/colors.js +1 -1
  611. package/dist/tokens/colors.js.map +1 -1
  612. package/dist/tokens/index.d.ts +1 -2
  613. package/dist/tokens/index.js +2 -3
  614. package/dist/tokens/index.js.map +1 -1
  615. package/dist/tokens/layout.d.ts +1 -1
  616. package/dist/tokens/layout.js +1 -1
  617. package/dist/tokens/layout.js.map +1 -1
  618. package/dist/tokens/shadows.d.ts +1 -1
  619. package/dist/tokens/shadows.js +1 -1
  620. package/dist/tokens/shadows.js.map +1 -1
  621. package/dist/tokens/sizes.d.ts +1 -1
  622. package/dist/tokens/sizes.js +1 -1
  623. package/dist/tokens/sizes.js.map +1 -1
  624. package/dist/tokens/spacing.d.ts +1 -1
  625. package/dist/tokens/spacing.js +1 -1
  626. package/dist/tokens/spacing.js.map +1 -1
  627. package/dist/utils/ResizeSensor.js +1 -1
  628. package/dist/utils/index.d.ts +1 -2
  629. package/dist/utils/is-dev-env.js +5 -10
  630. package/dist/utils/is-dev-env.js.map +1 -1
  631. package/dist/utils/modules.js +1 -1
  632. package/dist/utils/promise.js +1 -1
  633. package/dist/utils/raf.js +1 -1
  634. package/dist/utils/random.js +1 -1
  635. package/dist/utils/range.js +1 -1
  636. package/dist/utils/react/RenderCache.js +1 -1
  637. package/dist/utils/react/Slots.js +1 -1
  638. package/dist/utils/react/chain.js +1 -1
  639. package/dist/utils/react/forwardRefWithGenerics.js +1 -1
  640. package/dist/utils/react/index.d.ts +3 -3
  641. package/dist/utils/react/index.js +20 -0
  642. package/dist/utils/react/interactions.js +1 -1
  643. package/dist/utils/react/isTextOnly.js +1 -1
  644. package/dist/utils/react/mapProps.js +1 -1
  645. package/dist/utils/react/mergeProps.d.ts +1 -2
  646. package/dist/utils/react/mergeProps.js +2 -2
  647. package/dist/utils/react/mergeProps.js.map +1 -1
  648. package/dist/utils/react/nullableValue.d.ts +1 -2
  649. package/dist/utils/react/nullableValue.js +1 -1
  650. package/dist/utils/react/nullableValue.js.map +1 -1
  651. package/dist/utils/react/resolveIcon.d.ts +1 -2
  652. package/dist/utils/react/resolveIcon.js +1 -1
  653. package/dist/utils/react/resolveIcon.js.map +1 -1
  654. package/dist/utils/react/sharedStore.js +1 -1
  655. package/dist/utils/react/useCombinedRefs.js +1 -1
  656. package/dist/utils/react/useControlledFocusVisible.js +1 -1
  657. package/dist/utils/react/useEventBus.js +1 -1
  658. package/dist/utils/react/useId.js +1 -1
  659. package/dist/utils/react/useIsDarwin.js +1 -1
  660. package/dist/utils/react/useKeySymbols.js +1 -1
  661. package/dist/utils/react/useLayoutEffect.js +1 -1
  662. package/dist/utils/react/useLocalStorage.js +1 -1
  663. package/dist/utils/react/useMergeStyles.d.ts +1 -2
  664. package/dist/utils/react/useMergeStyles.js +2 -2
  665. package/dist/utils/react/useMergeStyles.js.map +1 -1
  666. package/dist/utils/react/useQaProps.js +1 -1
  667. package/dist/utils/react/useViewportSize.js +1 -1
  668. package/dist/utils/react/wrapNodeIfPlain.js +1 -1
  669. package/dist/utils/tree.js +1 -1
  670. package/dist/utils/warnings.js +1 -1
  671. package/dist/version.js +2 -2
  672. package/package.json +4 -21
  673. package/dist/_virtual/_rolldown/runtime.js +0 -8
  674. package/dist/chunks/cacheKey.js +0 -71
  675. package/dist/chunks/cacheKey.js.map +0 -1
  676. package/dist/chunks/definitions.js +0 -261
  677. package/dist/chunks/definitions.js.map +0 -1
  678. package/dist/chunks/renderChunk.js +0 -68
  679. package/dist/chunks/renderChunk.js.map +0 -1
  680. package/dist/config.js +0 -232
  681. package/dist/config.js.map +0 -1
  682. package/dist/css-writer.d.ts +0 -46
  683. package/dist/css-writer.js +0 -75
  684. package/dist/css-writer.js.map +0 -1
  685. package/dist/extractor.d.ts +0 -25
  686. package/dist/extractor.js +0 -151
  687. package/dist/extractor.js.map +0 -1
  688. package/dist/injector/injector.js +0 -401
  689. package/dist/injector/injector.js.map +0 -1
  690. package/dist/injector/sheet-manager.js +0 -715
  691. package/dist/injector/sheet-manager.js.map +0 -1
  692. package/dist/injector/types.d.ts +0 -19
  693. package/dist/keyframes/index.js +0 -157
  694. package/dist/keyframes/index.js.map +0 -1
  695. package/dist/parser/classify.js +0 -320
  696. package/dist/parser/classify.js.map +0 -1
  697. package/dist/parser/const.js +0 -34
  698. package/dist/parser/const.js.map +0 -1
  699. package/dist/parser/lru.js +0 -110
  700. package/dist/parser/lru.js.map +0 -1
  701. package/dist/parser/parser.js +0 -117
  702. package/dist/parser/parser.js.map +0 -1
  703. package/dist/parser/tokenizer.js +0 -70
  704. package/dist/parser/tokenizer.js.map +0 -1
  705. package/dist/parser/types.d.ts +0 -38
  706. package/dist/parser/types.js +0 -47
  707. package/dist/parser/types.js.map +0 -1
  708. package/dist/pipeline/conditions.js +0 -378
  709. package/dist/pipeline/conditions.js.map +0 -1
  710. package/dist/pipeline/exclusive.js +0 -232
  711. package/dist/pipeline/exclusive.js.map +0 -1
  712. package/dist/pipeline/index.js +0 -633
  713. package/dist/pipeline/index.js.map +0 -1
  714. package/dist/pipeline/materialize.js +0 -822
  715. package/dist/pipeline/materialize.js.map +0 -1
  716. package/dist/pipeline/parseStateKey.js +0 -422
  717. package/dist/pipeline/parseStateKey.js.map +0 -1
  718. package/dist/pipeline/simplify.js +0 -558
  719. package/dist/pipeline/simplify.js.map +0 -1
  720. package/dist/plugins/okhsl-plugin.js +0 -346
  721. package/dist/plugins/okhsl-plugin.js.map +0 -1
  722. package/dist/plugins/types.d.ts +0 -52
  723. package/dist/properties/index.js +0 -142
  724. package/dist/properties/index.js.map +0 -1
  725. package/dist/states/index.js +0 -162
  726. package/dist/states/index.js.map +0 -1
  727. package/dist/styles/align.js +0 -15
  728. package/dist/styles/align.js.map +0 -1
  729. package/dist/styles/border.js +0 -115
  730. package/dist/styles/border.js.map +0 -1
  731. package/dist/styles/color.js +0 -24
  732. package/dist/styles/color.js.map +0 -1
  733. package/dist/styles/createStyle.js +0 -78
  734. package/dist/styles/createStyle.js.map +0 -1
  735. package/dist/styles/dimension.js +0 -100
  736. package/dist/styles/dimension.js.map +0 -1
  737. package/dist/styles/display.js +0 -68
  738. package/dist/styles/display.js.map +0 -1
  739. package/dist/styles/fade.js +0 -58
  740. package/dist/styles/fade.js.map +0 -1
  741. package/dist/styles/fill.js +0 -52
  742. package/dist/styles/fill.js.map +0 -1
  743. package/dist/styles/flow.js +0 -13
  744. package/dist/styles/flow.js.map +0 -1
  745. package/dist/styles/gap.js +0 -37
  746. package/dist/styles/gap.js.map +0 -1
  747. package/dist/styles/height.js +0 -21
  748. package/dist/styles/height.js.map +0 -1
  749. package/dist/styles/index.js +0 -10
  750. package/dist/styles/index.js.map +0 -1
  751. package/dist/styles/inset.js +0 -143
  752. package/dist/styles/inset.js.map +0 -1
  753. package/dist/styles/justify.js +0 -15
  754. package/dist/styles/justify.js.map +0 -1
  755. package/dist/styles/margin.js +0 -97
  756. package/dist/styles/margin.js.map +0 -1
  757. package/dist/styles/outline.js +0 -66
  758. package/dist/styles/outline.js.map +0 -1
  759. package/dist/styles/padding.js +0 -97
  760. package/dist/styles/padding.js.map +0 -1
  761. package/dist/styles/predefined.js +0 -233
  762. package/dist/styles/predefined.js.map +0 -1
  763. package/dist/styles/preset.js +0 -126
  764. package/dist/styles/preset.js.map +0 -1
  765. package/dist/styles/radius.js +0 -52
  766. package/dist/styles/radius.js.map +0 -1
  767. package/dist/styles/scrollbar.js +0 -109
  768. package/dist/styles/scrollbar.js.map +0 -1
  769. package/dist/styles/shadow.js +0 -28
  770. package/dist/styles/shadow.js.map +0 -1
  771. package/dist/styles/styledScrollbar.js +0 -39
  772. package/dist/styles/styledScrollbar.js.map +0 -1
  773. package/dist/styles/transition.js +0 -139
  774. package/dist/styles/transition.js.map +0 -1
  775. package/dist/styles/types.d.ts +0 -495
  776. package/dist/styles/width.js +0 -21
  777. package/dist/styles/width.js.map +0 -1
  778. package/dist/tasty/chunks/cacheKey.d.ts +0 -2
  779. package/dist/tasty/chunks/cacheKey.js +0 -71
  780. package/dist/tasty/chunks/cacheKey.js.map +0 -1
  781. package/dist/tasty/chunks/definitions.d.ts +0 -38
  782. package/dist/tasty/chunks/definitions.js +0 -261
  783. package/dist/tasty/chunks/definitions.js.map +0 -1
  784. package/dist/tasty/chunks/index.d.ts +0 -4
  785. package/dist/tasty/chunks/renderChunk.d.ts +0 -3
  786. package/dist/tasty/chunks/renderChunk.js +0 -68
  787. package/dist/tasty/chunks/renderChunk.js.map +0 -1
  788. package/dist/tasty/config.d.ts +0 -283
  789. package/dist/tasty/config.js +0 -401
  790. package/dist/tasty/config.js.map +0 -1
  791. package/dist/tasty/debug.d.ts +0 -200
  792. package/dist/tasty/debug.js +0 -734
  793. package/dist/tasty/debug.js.map +0 -1
  794. package/dist/tasty/hooks/index.d.ts +0 -6
  795. package/dist/tasty/hooks/useGlobalStyles.d.ts +0 -28
  796. package/dist/tasty/hooks/useGlobalStyles.js +0 -57
  797. package/dist/tasty/hooks/useGlobalStyles.js.map +0 -1
  798. package/dist/tasty/hooks/useKeyframes.d.ts +0 -57
  799. package/dist/tasty/hooks/useKeyframes.js +0 -55
  800. package/dist/tasty/hooks/useKeyframes.js.map +0 -1
  801. package/dist/tasty/hooks/useProperty.d.ts +0 -80
  802. package/dist/tasty/hooks/useProperty.js +0 -92
  803. package/dist/tasty/hooks/useProperty.js.map +0 -1
  804. package/dist/tasty/hooks/useRawCSS.d.ts +0 -54
  805. package/dist/tasty/hooks/useRawCSS.js +0 -29
  806. package/dist/tasty/hooks/useRawCSS.js.map +0 -1
  807. package/dist/tasty/hooks/useStyles.d.ts +0 -41
  808. package/dist/tasty/hooks/useStyles.js +0 -170
  809. package/dist/tasty/hooks/useStyles.js.map +0 -1
  810. package/dist/tasty/index.d.ts +0 -38
  811. package/dist/tasty/injector/index.d.ts +0 -158
  812. package/dist/tasty/injector/index.js +0 -155
  813. package/dist/tasty/injector/index.js.map +0 -1
  814. package/dist/tasty/injector/injector.d.ts +0 -137
  815. package/dist/tasty/injector/injector.js +0 -401
  816. package/dist/tasty/injector/injector.js.map +0 -1
  817. package/dist/tasty/injector/sheet-manager.d.ts +0 -128
  818. package/dist/tasty/injector/sheet-manager.js +0 -715
  819. package/dist/tasty/injector/sheet-manager.js.map +0 -1
  820. package/dist/tasty/injector/types.d.ts +0 -136
  821. package/dist/tasty/keyframes/index.js +0 -207
  822. package/dist/tasty/keyframes/index.js.map +0 -1
  823. package/dist/tasty/parser/classify.js +0 -320
  824. package/dist/tasty/parser/classify.js.map +0 -1
  825. package/dist/tasty/parser/const.js +0 -34
  826. package/dist/tasty/parser/const.js.map +0 -1
  827. package/dist/tasty/parser/lru.js +0 -110
  828. package/dist/tasty/parser/lru.js.map +0 -1
  829. package/dist/tasty/parser/parser.d.ts +0 -26
  830. package/dist/tasty/parser/parser.js +0 -117
  831. package/dist/tasty/parser/parser.js.map +0 -1
  832. package/dist/tasty/parser/tokenizer.js +0 -70
  833. package/dist/tasty/parser/tokenizer.js.map +0 -1
  834. package/dist/tasty/parser/types.d.ts +0 -47
  835. package/dist/tasty/parser/types.js +0 -47
  836. package/dist/tasty/parser/types.js.map +0 -1
  837. package/dist/tasty/pipeline/conditions.js +0 -378
  838. package/dist/tasty/pipeline/conditions.js.map +0 -1
  839. package/dist/tasty/pipeline/exclusive.d.ts +0 -2
  840. package/dist/tasty/pipeline/exclusive.js +0 -232
  841. package/dist/tasty/pipeline/exclusive.js.map +0 -1
  842. package/dist/tasty/pipeline/index.d.ts +0 -54
  843. package/dist/tasty/pipeline/index.js +0 -639
  844. package/dist/tasty/pipeline/index.js.map +0 -1
  845. package/dist/tasty/pipeline/materialize.js +0 -822
  846. package/dist/tasty/pipeline/materialize.js.map +0 -1
  847. package/dist/tasty/pipeline/parseStateKey.d.ts +0 -2
  848. package/dist/tasty/pipeline/parseStateKey.js +0 -422
  849. package/dist/tasty/pipeline/parseStateKey.js.map +0 -1
  850. package/dist/tasty/pipeline/simplify.js +0 -558
  851. package/dist/tasty/pipeline/simplify.js.map +0 -1
  852. package/dist/tasty/plugins/index.d.ts +0 -3
  853. package/dist/tasty/plugins/okhsl-plugin.d.ts +0 -36
  854. package/dist/tasty/plugins/okhsl-plugin.js +0 -372
  855. package/dist/tasty/plugins/okhsl-plugin.js.map +0 -1
  856. package/dist/tasty/plugins/types.d.ts +0 -72
  857. package/dist/tasty/properties/index.js +0 -159
  858. package/dist/tasty/properties/index.js.map +0 -1
  859. package/dist/tasty/states/index.d.ts +0 -46
  860. package/dist/tasty/states/index.js +0 -390
  861. package/dist/tasty/states/index.js.map +0 -1
  862. package/dist/tasty/static/index.d.ts +0 -6
  863. package/dist/tasty/static/index.js +0 -6
  864. package/dist/tasty/static/tastyStatic.d.ts +0 -47
  865. package/dist/tasty/static/tastyStatic.js +0 -32
  866. package/dist/tasty/static/tastyStatic.js.map +0 -1
  867. package/dist/tasty/static/types.d.ts +0 -50
  868. package/dist/tasty/static/types.js +0 -25
  869. package/dist/tasty/static/types.js.map +0 -1
  870. package/dist/tasty/styles/align.d.ts +0 -16
  871. package/dist/tasty/styles/align.js +0 -15
  872. package/dist/tasty/styles/align.js.map +0 -1
  873. package/dist/tasty/styles/border.d.ts +0 -26
  874. package/dist/tasty/styles/border.js +0 -115
  875. package/dist/tasty/styles/border.js.map +0 -1
  876. package/dist/tasty/styles/color.d.ts +0 -15
  877. package/dist/tasty/styles/color.js +0 -24
  878. package/dist/tasty/styles/color.js.map +0 -1
  879. package/dist/tasty/styles/createStyle.js +0 -78
  880. package/dist/tasty/styles/createStyle.js.map +0 -1
  881. package/dist/tasty/styles/dimension.js +0 -100
  882. package/dist/tasty/styles/dimension.js.map +0 -1
  883. package/dist/tasty/styles/display.d.ts +0 -38
  884. package/dist/tasty/styles/display.js +0 -68
  885. package/dist/tasty/styles/display.js.map +0 -1
  886. package/dist/tasty/styles/fade.d.ts +0 -16
  887. package/dist/tasty/styles/fade.js +0 -58
  888. package/dist/tasty/styles/fade.js.map +0 -1
  889. package/dist/tasty/styles/fill.d.ts +0 -45
  890. package/dist/tasty/styles/fill.js +0 -52
  891. package/dist/tasty/styles/fill.js.map +0 -1
  892. package/dist/tasty/styles/flow.d.ts +0 -17
  893. package/dist/tasty/styles/flow.js +0 -13
  894. package/dist/tasty/styles/flow.js.map +0 -1
  895. package/dist/tasty/styles/gap.d.ts +0 -32
  896. package/dist/tasty/styles/gap.js +0 -37
  897. package/dist/tasty/styles/gap.js.map +0 -1
  898. package/dist/tasty/styles/height.d.ts +0 -18
  899. package/dist/tasty/styles/height.js +0 -21
  900. package/dist/tasty/styles/height.js.map +0 -1
  901. package/dist/tasty/styles/index.d.ts +0 -3
  902. package/dist/tasty/styles/index.js +0 -10
  903. package/dist/tasty/styles/index.js.map +0 -1
  904. package/dist/tasty/styles/inset.d.ts +0 -51
  905. package/dist/tasty/styles/inset.js +0 -143
  906. package/dist/tasty/styles/inset.js.map +0 -1
  907. package/dist/tasty/styles/justify.d.ts +0 -16
  908. package/dist/tasty/styles/justify.js +0 -15
  909. package/dist/tasty/styles/justify.js.map +0 -1
  910. package/dist/tasty/styles/list.d.ts +0 -17
  911. package/dist/tasty/styles/list.js +0 -99
  912. package/dist/tasty/styles/list.js.map +0 -1
  913. package/dist/tasty/styles/margin.d.ts +0 -29
  914. package/dist/tasty/styles/margin.js +0 -97
  915. package/dist/tasty/styles/margin.js.map +0 -1
  916. package/dist/tasty/styles/outline.d.ts +0 -30
  917. package/dist/tasty/styles/outline.js +0 -66
  918. package/dist/tasty/styles/outline.js.map +0 -1
  919. package/dist/tasty/styles/padding.d.ts +0 -29
  920. package/dist/tasty/styles/padding.js +0 -97
  921. package/dist/tasty/styles/padding.js.map +0 -1
  922. package/dist/tasty/styles/predefined.d.ts +0 -75
  923. package/dist/tasty/styles/predefined.js +0 -242
  924. package/dist/tasty/styles/predefined.js.map +0 -1
  925. package/dist/tasty/styles/preset.d.ts +0 -48
  926. package/dist/tasty/styles/preset.js +0 -126
  927. package/dist/tasty/styles/preset.js.map +0 -1
  928. package/dist/tasty/styles/radius.d.ts +0 -15
  929. package/dist/tasty/styles/radius.js +0 -52
  930. package/dist/tasty/styles/radius.js.map +0 -1
  931. package/dist/tasty/styles/scrollbar.d.ts +0 -22
  932. package/dist/tasty/styles/scrollbar.js +0 -109
  933. package/dist/tasty/styles/scrollbar.js.map +0 -1
  934. package/dist/tasty/styles/shadow.d.ts +0 -15
  935. package/dist/tasty/styles/shadow.js +0 -28
  936. package/dist/tasty/styles/shadow.js.map +0 -1
  937. package/dist/tasty/styles/styledScrollbar.d.ts +0 -48
  938. package/dist/tasty/styles/styledScrollbar.js +0 -39
  939. package/dist/tasty/styles/styledScrollbar.js.map +0 -1
  940. package/dist/tasty/styles/transition.d.ts +0 -15
  941. package/dist/tasty/styles/transition.js +0 -139
  942. package/dist/tasty/styles/transition.js.map +0 -1
  943. package/dist/tasty/styles/types.d.ts +0 -499
  944. package/dist/tasty/styles/width.d.ts +0 -18
  945. package/dist/tasty/styles/width.js +0 -21
  946. package/dist/tasty/styles/width.js.map +0 -1
  947. package/dist/tasty/tasty.d.ts +0 -937
  948. package/dist/tasty/tasty.js +0 -191
  949. package/dist/tasty/tasty.js.map +0 -1
  950. package/dist/tasty/types.d.ts +0 -192
  951. package/dist/tasty/utils/cache-wrapper.js +0 -25
  952. package/dist/tasty/utils/cache-wrapper.js.map +0 -1
  953. package/dist/tasty/utils/case-converter.js +0 -9
  954. package/dist/tasty/utils/case-converter.js.map +0 -1
  955. package/dist/tasty/utils/colors.d.ts +0 -6
  956. package/dist/tasty/utils/colors.js +0 -10
  957. package/dist/tasty/utils/colors.js.map +0 -1
  958. package/dist/tasty/utils/dotize.d.ts +0 -27
  959. package/dist/tasty/utils/dotize.js +0 -123
  960. package/dist/tasty/utils/dotize.js.map +0 -1
  961. package/dist/tasty/utils/filter-base-props.d.ts +0 -16
  962. package/dist/tasty/utils/filter-base-props.js +0 -46
  963. package/dist/tasty/utils/filter-base-props.js.map +0 -1
  964. package/dist/tasty/utils/get-display-name.d.ts +0 -8
  965. package/dist/tasty/utils/get-display-name.js +0 -11
  966. package/dist/tasty/utils/get-display-name.js.map +0 -1
  967. package/dist/tasty/utils/hsl-to-rgb.js +0 -39
  968. package/dist/tasty/utils/hsl-to-rgb.js.map +0 -1
  969. package/dist/tasty/utils/is-dev-env.js +0 -20
  970. package/dist/tasty/utils/is-dev-env.js.map +0 -1
  971. package/dist/tasty/utils/merge-styles.d.ts +0 -8
  972. package/dist/tasty/utils/merge-styles.js +0 -147
  973. package/dist/tasty/utils/merge-styles.js.map +0 -1
  974. package/dist/tasty/utils/mod-attrs.d.ts +0 -9
  975. package/dist/tasty/utils/mod-attrs.js +0 -22
  976. package/dist/tasty/utils/mod-attrs.js.map +0 -1
  977. package/dist/tasty/utils/okhsl-to-rgb.js +0 -297
  978. package/dist/tasty/utils/okhsl-to-rgb.js.map +0 -1
  979. package/dist/tasty/utils/process-tokens.d.ts +0 -32
  980. package/dist/tasty/utils/process-tokens.js +0 -172
  981. package/dist/tasty/utils/process-tokens.js.map +0 -1
  982. package/dist/tasty/utils/resolve-recipes.d.ts +0 -18
  983. package/dist/tasty/utils/resolve-recipes.js +0 -144
  984. package/dist/tasty/utils/resolve-recipes.js.map +0 -1
  985. package/dist/tasty/utils/string.js +0 -9
  986. package/dist/tasty/utils/string.js.map +0 -1
  987. package/dist/tasty/utils/styles.d.ts +0 -204
  988. package/dist/tasty/utils/styles.js +0 -577
  989. package/dist/tasty/utils/styles.js.map +0 -1
  990. package/dist/tasty/utils/typography.d.ts +0 -37
  991. package/dist/tasty/utils/typography.js +0 -54
  992. package/dist/tasty/utils/typography.js.map +0 -1
  993. package/dist/tasty/utils/warnings.d.ts +0 -17
  994. package/dist/tasty/utils/warnings.js +0 -17
  995. package/dist/tasty/utils/warnings.js.map +0 -1
  996. package/dist/tasty/zero/babel.d.ts +0 -111
  997. package/dist/tasty/zero/babel.js +0 -283
  998. package/dist/tasty/zero/babel.js.map +0 -1
  999. package/dist/tasty/zero/index.d.ts +0 -4
  1000. package/dist/tasty/zero/index.js +0 -5
  1001. package/dist/tasty/zero/next.d.ts +0 -61
  1002. package/dist/tasty/zero/next.js +0 -79
  1003. package/dist/tasty/zero/next.js.map +0 -1
  1004. package/dist/tasty.config.ts +0 -311
  1005. package/dist/tokens/typography.d.ts +0 -35
  1006. package/dist/tokens/typography.js +0 -238
  1007. package/dist/tokens/typography.js.map +0 -1
  1008. package/dist/utils/cache-wrapper.js +0 -25
  1009. package/dist/utils/cache-wrapper.js.map +0 -1
  1010. package/dist/utils/case-converter.js +0 -9
  1011. package/dist/utils/case-converter.js.map +0 -1
  1012. package/dist/utils/hsl-to-rgb.js +0 -39
  1013. package/dist/utils/hsl-to-rgb.js.map +0 -1
  1014. package/dist/utils/merge-styles.js +0 -147
  1015. package/dist/utils/merge-styles.js.map +0 -1
  1016. package/dist/utils/okhsl-to-rgb.js +0 -297
  1017. package/dist/utils/okhsl-to-rgb.js.map +0 -1
  1018. package/dist/utils/process-tokens.js +0 -29
  1019. package/dist/utils/process-tokens.js.map +0 -1
  1020. package/dist/utils/resolve-recipes.js +0 -144
  1021. package/dist/utils/resolve-recipes.js.map +0 -1
  1022. package/dist/utils/string.js +0 -9
  1023. package/dist/utils/string.js.map +0 -1
  1024. package/dist/utils/styles.d.ts +0 -23
  1025. package/dist/utils/styles.js +0 -338
  1026. package/dist/utils/styles.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../src/tasty/states/index.ts"],"sourcesContent":["/**\n * Advanced State Mapping - Predefined States Management\n *\n * This module handles global and local predefined states for the Tasty styling system.\n * See ADVANCED_STATE_MAPPING.md for full specification.\n */\n\nimport { hasStylesGenerated } from '../config';\nimport { Styles } from '../styles/types';\nimport { isDevEnv } from '../utils/is-dev-env';\n\n/**\n * Parsed advanced state information\n */\nexport interface ParsedAdvancedState {\n type:\n | 'media'\n | 'container'\n | 'root'\n | 'own'\n | 'starting'\n | 'predefined'\n | 'modifier';\n condition: string; // e.g., 'width <= 920px' or 'hovered'\n containerName?: string; // for container queries\n raw: string; // original state key\n mediaType?: string; // for @media:screen, @media:print, etc.\n}\n\n/**\n * Context for state parsing operations\n */\nexport interface StateParserContext {\n localPredefinedStates: Record<string, string>;\n globalPredefinedStates: Record<string, string>;\n isSubElement?: boolean; // true when processing sub-element styles (for @own() validation)\n}\n\n/**\n * At-rule context for CSS generation\n */\nexport interface AtRuleContext {\n media?: string[]; // @media conditions to wrap rule in (merged with 'and')\n container?: { name?: string; condition: string }[]; // @container conditions (nested)\n startingStyle?: boolean;\n rootStates?: string[]; // :root state selectors (e.g., '[data-theme=\"dark\"]')\n negatedRootStates?: string[]; // Negated :root state selectors for non-overlapping rules (e.g., ':not([data-theme=\"dark\"])')\n}\n\n// Built-in state names that cannot be overridden\nconst BUILTIN_STATES = new Set([\n '@starting',\n '@keyframes',\n '@properties',\n '@supports',\n // @inherit is a value (not a key), but reserved here to prevent\n // users from accidentally defining a state named '@inherit'.\n '@inherit',\n]);\n\n// Reserved prefixes that are built-in\nconst RESERVED_PREFIXES = [\n '@media',\n '@root',\n '@own',\n '@(',\n '@starting',\n '@keyframes',\n '@properties',\n '@supports',\n '@inherit',\n];\n\n// Global predefined states storage\nlet globalPredefinedStates: Record<string, string> = {};\n\n// Warnings tracking to avoid duplicates\nconst emittedWarnings = new Set<string>();\n\nconst devMode = isDevEnv();\n\n/**\n * Emit a warning only once\n */\nfunction warnOnce(key: string, message: string): void {\n if (devMode && !emittedWarnings.has(key)) {\n emittedWarnings.add(key);\n console.warn(message);\n }\n}\n\n/**\n * Configure global predefined states\n */\nexport function setGlobalPredefinedStates(\n states: Record<string, string>,\n): void {\n if (hasStylesGenerated()) {\n const newStateNames = Object.keys(states).join(', ');\n warnOnce(\n `dynamic-states:${newStateNames}`,\n `[Tasty] Cannot update predefined states after styles have been generated.\\n` +\n `The new definition(s) for ${newStateNames} will be ignored.`,\n );\n return;\n }\n\n // Validate state names\n for (const [name, value] of Object.entries(states)) {\n // Check for valid name format\n if (!/^@[A-Za-z][A-Za-z0-9-]*$/.test(name)) {\n warnOnce(\n `invalid-state-name:${name}`,\n `[Tasty] Invalid predefined state name '${name}'. Must start with '@' followed by a letter.`,\n );\n continue;\n }\n\n // Check for reserved names\n if (BUILTIN_STATES.has(name)) {\n warnOnce(\n `reserved-state:${name}`,\n `[Tasty] Cannot define predefined state '${name}'. This name is reserved for built-in functionality.`,\n );\n continue;\n }\n\n // Check for reserved prefixes (but only exact matches, not user-defined states like @mobile)\n // Reserved prefixes are: @media, @root, @own, @(\n // A user state like @mobile should NOT be blocked\n const isReservedPrefix =\n name === '@media' ||\n name === '@root' ||\n name === '@own' ||\n name.startsWith('@(');\n\n if (isReservedPrefix) {\n warnOnce(\n `reserved-prefix:${name}`,\n `[Tasty] Cannot define predefined state '${name}'. This prefix is reserved for built-in functionality.`,\n );\n continue;\n }\n\n // Check for cross-references\n const crossRefs = extractPredefinedStateRefs(value);\n if (crossRefs.length > 0) {\n warnOnce(\n `cross-ref:${name}`,\n `[Tasty] Predefined state '${name}' references another predefined state '${crossRefs[0]}'.\\n` +\n `Predefined states cannot reference each other. Use the full definition instead.`,\n );\n continue;\n }\n\n // Check for duplicates\n if (\n globalPredefinedStates[name] &&\n globalPredefinedStates[name] !== value\n ) {\n warnOnce(\n `duplicate-state:${name}`,\n `[Tasty] Duplicate predefined state '${name}' in configure(). The last definition will be used.`,\n );\n }\n\n globalPredefinedStates[name] = value;\n }\n}\n\n/**\n * Get global predefined states\n */\nexport function getGlobalPredefinedStates(): Record<string, string> {\n return globalPredefinedStates;\n}\n\n/**\n * Clear global predefined states (for testing only)\n */\nexport function clearGlobalPredefinedStates(): void {\n globalPredefinedStates = {};\n emittedWarnings.clear();\n}\n\n/**\n * Regex to match predefined state references in a string\n * Matches @name that is NOT followed by ( or : and is a complete word\n * Uses word boundary and negative lookahead\n */\nconst PREDEFINED_STATE_PATTERN = /@([A-Za-z][A-Za-z0-9-]*)(?![A-Za-z0-9-:(])/g;\n\n/**\n * Extract predefined state references from a string\n */\nexport function extractPredefinedStateRefs(value: string): string[] {\n const matches = value.matchAll(PREDEFINED_STATE_PATTERN);\n const refs: string[] = [];\n\n for (const match of matches) {\n const stateName = '@' + match[1];\n // Skip built-in states (@starting) and duplicates\n // Note: @media, @root, @own are always followed by '(' so the regex\n // negative lookahead (?![A-Za-z0-9-:(]) already excludes them\n if (!BUILTIN_STATES.has(stateName) && !refs.includes(stateName)) {\n refs.push(stateName);\n }\n }\n\n return refs;\n}\n\n/**\n * Check if a state key is a predefined state reference\n */\nexport function isPredefinedStateRef(stateKey: string): boolean {\n if (!stateKey.startsWith('@')) return false;\n if (BUILTIN_STATES.has(stateKey)) return false;\n\n // Check if it's NOT a built-in prefix\n for (const prefix of RESERVED_PREFIXES) {\n if (stateKey === prefix || stateKey.startsWith(prefix)) {\n // Check if it's exactly @media, @root, @own, or starts with @( or @media(\n if (\n stateKey === '@media' ||\n stateKey.startsWith('@media(') ||\n stateKey.startsWith('@media:')\n ) {\n return false;\n }\n if (stateKey === '@root' || stateKey.startsWith('@root(')) return false;\n if (stateKey === '@own' || stateKey.startsWith('@own(')) return false;\n if (stateKey.startsWith('@(')) return false;\n }\n }\n\n // Must match the predefined state pattern\n return /^@[A-Za-z][A-Za-z0-9-]*$/.test(stateKey);\n}\n\n/**\n * Extract local predefined states from a styles object\n * Local predefined states are top-level keys starting with @ that have string values\n * and are valid predefined state names (not built-in like @media, @root, etc.)\n */\nexport function extractLocalPredefinedStates(\n styles: Styles,\n): Record<string, string> {\n const localStates: Record<string, string> = {};\n\n if (!styles || typeof styles !== 'object') {\n return localStates;\n }\n\n for (const [key, value] of Object.entries(styles)) {\n // Check if it's a predefined state definition (starts with @, has string value)\n if (key.startsWith('@') && typeof value === 'string') {\n // Validate name format - must be @[letter][letters/numbers/dashes]*\n if (!/^@[A-Za-z][A-Za-z0-9-]*$/.test(key)) {\n continue; // Skip invalid names silently (might be something else)\n }\n\n // Skip built-in states\n if (BUILTIN_STATES.has(key)) {\n continue;\n }\n\n // Skip reserved prefixes\n if (\n key === '@media' ||\n key === '@root' ||\n key === '@own' ||\n key.startsWith('@(')\n ) {\n continue;\n }\n\n // Check for cross-references (predefined states cannot reference each other)\n const crossRefs = extractPredefinedStateRefs(value);\n if (crossRefs.length > 0) {\n warnOnce(\n `local-cross-ref:${key}`,\n `[Tasty] Predefined state '${key}' references another predefined state '${crossRefs[0]}'.\\n` +\n `Predefined states cannot reference each other. Use the full definition instead.`,\n );\n continue;\n }\n\n localStates[key] = value;\n }\n }\n\n return localStates;\n}\n\n/**\n * Create a state parser context from styles\n */\nexport function createStateParserContext(\n styles?: Styles,\n isSubElement?: boolean,\n): StateParserContext {\n const localStates = styles ? extractLocalPredefinedStates(styles) : {};\n\n return {\n localPredefinedStates: localStates,\n globalPredefinedStates: getGlobalPredefinedStates(),\n isSubElement,\n };\n}\n\n/**\n * Resolve a predefined state reference to its value\n * Returns the resolved value or null if not found\n */\nexport function resolvePredefinedState(\n stateKey: string,\n ctx: StateParserContext,\n): string | null {\n // Check local first (higher priority)\n if (ctx.localPredefinedStates[stateKey]) {\n return ctx.localPredefinedStates[stateKey];\n }\n\n // Then check global\n if (ctx.globalPredefinedStates[stateKey]) {\n return ctx.globalPredefinedStates[stateKey];\n }\n\n // Not found - emit warning\n warnOnce(\n `undefined-state:${stateKey}`,\n `[Tasty] Undefined predefined state '${stateKey}'.\\n` +\n `Define it in configure({ states: { '${stateKey}': '...' } }) or in the component's styles.`,\n );\n\n return null;\n}\n\n/**\n * Normalize state key by trimming whitespace and removing trailing/leading operators\n */\nexport function normalizeStateKey(stateKey: string): {\n key: string;\n warnings: string[];\n} {\n const warnings: string[] = [];\n let key = stateKey;\n\n // Check for whitespace-only\n if (key.trim() === '') {\n if (key !== '') {\n warnings.push(\n `[Tasty] Whitespace-only state key normalized to default state ''.`,\n );\n }\n return { key: '', warnings };\n }\n\n // Trim whitespace\n key = key.trim();\n\n // Remove trailing operators\n const trailingOpMatch = key.match(/\\s*[&|^]\\s*$/);\n if (trailingOpMatch) {\n const originalKey = key;\n key = key.slice(0, -trailingOpMatch[0].length).trim();\n warnings.push(\n `[Tasty] State key '${originalKey}' has trailing operator. Normalized to '${key}'.`,\n );\n }\n\n // Remove leading operators (except !)\n const leadingOpMatch = key.match(/^\\s*[&|^]\\s*/);\n if (leadingOpMatch) {\n const originalKey = key;\n key = key.slice(leadingOpMatch[0].length).trim();\n warnings.push(\n `[Tasty] State key '${originalKey}' has leading operator. Normalized to '${key}'.`,\n );\n }\n\n return { key, warnings };\n}\n\n/**\n * Expand dimension shorthands in a condition string\n * w -> width, h -> height, is -> inline-size, bs -> block-size\n */\nexport function expandDimensionShorthands(condition: string): string {\n // Replace dimension shorthands (only when they appear as standalone words)\n let result = condition;\n\n // w -> width (but not part of other words)\n result = result.replace(/\\bw\\b/g, 'width');\n\n // h -> height\n result = result.replace(/\\bh\\b/g, 'height');\n\n // is -> inline-size\n result = result.replace(/\\bis\\b/g, 'inline-size');\n\n // bs -> block-size\n result = result.replace(/\\bbs\\b/g, 'block-size');\n\n return result;\n}\n\n/**\n * Convert tasty units in a string (e.g., 40x -> calc(var(--gap) * 40))\n */\nexport function expandTastyUnits(value: string): string {\n // Match number followed by 'x' unit (tasty gap unit)\n return value.replace(/(\\d+(?:\\.\\d+)?)\\s*x\\b/g, (_, num) => {\n return `calc(var(--gap) * ${num})`;\n });\n}\n\n/**\n * Parse an advanced state key and return its type and components\n */\nexport function parseAdvancedState(\n stateKey: string,\n ctx: StateParserContext,\n): ParsedAdvancedState {\n const raw = stateKey;\n\n // Check for @starting (exact match)\n if (stateKey === '@starting') {\n return {\n type: 'starting',\n condition: '',\n raw,\n };\n }\n\n // Check for @media:type (e.g., @media:print)\n if (stateKey.startsWith('@media:')) {\n const mediaType = stateKey.slice(7); // Remove '@media:'\n if (!['all', 'screen', 'print', 'speech'].includes(mediaType)) {\n warnOnce(\n `unknown-media-type:${mediaType}`,\n `[Tasty] Unknown media type '${mediaType}'. Valid types: all, screen, print, speech.`,\n );\n }\n return {\n type: 'media',\n condition: '',\n mediaType,\n raw,\n };\n }\n\n // Check for @media(...) - media query with condition\n if (stateKey.startsWith('@media(')) {\n const endParen = findMatchingParen(stateKey, 6);\n if (endParen === -1) {\n warnOnce(\n `unclosed-media:${stateKey}`,\n `[Tasty] Unclosed media query '${stateKey}'. Missing closing parenthesis.`,\n );\n return { type: 'modifier', condition: stateKey, raw };\n }\n\n let condition = stateKey.slice(7, endParen);\n\n // Check for empty condition\n if (!condition.trim()) {\n warnOnce(\n `empty-media:${stateKey}`,\n `[Tasty] Empty media query condition '${stateKey}'.`,\n );\n return { type: 'modifier', condition: stateKey, raw };\n }\n\n // Expand shorthands and units\n condition = expandDimensionShorthands(condition);\n condition = expandTastyUnits(condition);\n\n return {\n type: 'media',\n condition,\n raw,\n };\n }\n\n // Check for @root(...) - root state\n if (stateKey.startsWith('@root(')) {\n const endParen = findMatchingParen(stateKey, 5);\n if (endParen === -1) {\n warnOnce(\n `unclosed-root:${stateKey}`,\n `[Tasty] Unclosed root state '${stateKey}'. Missing closing parenthesis.`,\n );\n return { type: 'modifier', condition: stateKey, raw };\n }\n\n const condition = stateKey.slice(6, endParen);\n\n if (!condition.trim()) {\n warnOnce(\n `empty-root:${stateKey}`,\n `[Tasty] Empty root state condition '${stateKey}'.`,\n );\n return { type: 'modifier', condition: stateKey, raw };\n }\n\n return {\n type: 'root',\n condition,\n raw,\n };\n }\n\n // Check for @own(...) - sub-element own state\n if (stateKey.startsWith('@own(')) {\n const endParen = findMatchingParen(stateKey, 4);\n if (endParen === -1) {\n warnOnce(\n `unclosed-own:${stateKey}`,\n `[Tasty] Unclosed own state '${stateKey}'. Missing closing parenthesis.`,\n );\n return { type: 'modifier', condition: stateKey, raw };\n }\n\n const condition = stateKey.slice(5, endParen);\n\n if (!condition.trim()) {\n warnOnce(\n `empty-own:${stateKey}`,\n `[Tasty] Empty own state condition '${stateKey}'.`,\n );\n return { type: 'modifier', condition: stateKey, raw };\n }\n\n // Check if used outside sub-element context\n if (!ctx.isSubElement) {\n warnOnce(\n `own-outside-subelement:${stateKey}`,\n `[Tasty] @own(${condition}) used outside sub-element context.\\n` +\n `@own() is equivalent to '${condition}' at the root level. ` +\n `Did you mean to use it inside a sub-element?`,\n );\n // Treat as regular modifier\n return {\n type: 'modifier',\n condition,\n raw,\n };\n }\n\n return {\n type: 'own',\n condition,\n raw,\n };\n }\n\n // Check for @(...) - container query (unnamed or named)\n if (stateKey.startsWith('@(')) {\n const endParen = findMatchingParen(stateKey, 1);\n if (endParen === -1) {\n warnOnce(\n `unclosed-container:${stateKey}`,\n `[Tasty] Unclosed container query '${stateKey}'. Missing closing parenthesis.`,\n );\n return { type: 'modifier', condition: stateKey, raw };\n }\n\n const content = stateKey.slice(2, endParen);\n\n if (!content.trim()) {\n warnOnce(\n `empty-container:${stateKey}`,\n `[Tasty] Empty container query '${stateKey}'.`,\n );\n return { type: 'modifier', condition: stateKey, raw };\n }\n\n // Check if named container (first token is name, followed by comma)\n // Use parentheses-aware comma search so inner commas (e.g., scroll-state(a, b)) are skipped\n const commaIndex = findTopLevelComma(content);\n let containerName: string | undefined;\n let condition: string;\n\n if (commaIndex !== -1) {\n // Named container: @(layout, w < 600px)\n containerName = content.slice(0, commaIndex).trim();\n condition = content.slice(commaIndex + 1).trim();\n } else {\n // Unnamed container: @(w < 600px)\n condition = content.trim();\n }\n\n // Check for style query shorthand (starts with $)\n if (condition.startsWith('$')) {\n // Style query: @(layout, $compact) or @(layout, $variant=compact)\n const styleCondition = parseStyleQuery(condition);\n if (!styleCondition) {\n warnOnce(\n `invalid-style-query:${stateKey}`,\n `[Tasty] Invalid style query '${condition}' in container query.`,\n );\n return { type: 'modifier', condition: stateKey, raw };\n }\n condition = styleCondition;\n } else if (/^[a-zA-Z][\\w-]*\\s*\\(/.test(condition)) {\n // Function-like syntax: scroll-state(...), style(...), etc.\n // Pass through verbatim — no dimension expansion needed\n } else {\n // Dimension query - expand shorthands and units\n condition = expandDimensionShorthands(condition);\n condition = expandTastyUnits(condition);\n }\n\n return {\n type: 'container',\n condition,\n containerName,\n raw,\n };\n }\n\n // Check for predefined state reference\n if (isPredefinedStateRef(stateKey)) {\n const resolved = resolvePredefinedState(stateKey, ctx);\n if (resolved) {\n // Recursively parse the resolved value to extract the actual state type\n // (e.g., @mobile -> @media(w < 768px) should become a media state)\n const parsedResolved = parseAdvancedState(resolved, ctx);\n return {\n ...parsedResolved,\n raw, // Keep original raw for traceability\n };\n }\n // If not resolved, treat as modifier (will likely produce invalid CSS)\n return {\n type: 'modifier',\n condition: stateKey,\n raw,\n };\n }\n\n // Regular modifier (boolean mod, pseudo-class, class, attribute)\n return {\n type: 'modifier',\n condition: stateKey,\n raw,\n };\n}\n\n/**\n * Parse a style query condition (e.g., $compact, $variant=compact, $variant=\"very compact\")\n */\nfunction parseStyleQuery(condition: string): string | null {\n // Remove $ prefix\n const query = condition.slice(1);\n\n // Check for comparison operators (not supported)\n if (/[<>]/.test(query)) {\n warnOnce(\n `style-query-comparison:${condition}`,\n `[Tasty] Style queries only support equality. '${condition}' is invalid. Use '${condition.split(/[<>]/)[0]}=...' instead.`,\n );\n return null;\n }\n\n // Check for equality\n const eqIndex = query.indexOf('=');\n if (eqIndex === -1) {\n // Just existence check: style(--compact)\n return `style(--${query})`;\n }\n\n const propName = query.slice(0, eqIndex).trim();\n let value = query.slice(eqIndex + 1).trim();\n\n // Handle quoted values\n if (\n (value.startsWith('\"') && value.endsWith('\"')) ||\n (value.startsWith(\"'\") && value.endsWith(\"'\"))\n ) {\n // Keep quotes for CSS\n } else {\n // Add quotes if needed\n value = `\"${value}\"`;\n }\n\n // Expand tasty units in value\n value = expandTastyUnits(value);\n\n return `style(--${propName}: ${value})`;\n}\n\n/**\n * Find the index of the first comma at parentheses depth 0.\n * Returns -1 if no top-level comma is found.\n * This prevents splitting on commas inside function calls like scroll-state(a, b).\n */\nexport function findTopLevelComma(s: string): number {\n let depth = 0;\n\n for (let i = 0; i < s.length; i++) {\n if (s[i] === '(') depth++;\n else if (s[i] === ')') depth--;\n else if (s[i] === ',' && depth === 0) return i;\n }\n\n return -1;\n}\n\nfunction findMatchingParen(str: string, startIndex: number): number {\n let depth = 1;\n let i = startIndex + 1;\n\n while (i < str.length && depth > 0) {\n if (str[i] === '(') depth++;\n else if (str[i] === ')') depth--;\n i++;\n }\n\n return depth === 0 ? i - 1 : -1;\n}\n\n/**\n * Check if a state key is an advanced state (starts with @)\n */\nexport function isAdvancedState(stateKey: string): boolean {\n return stateKey.startsWith('@') || stateKey.startsWith('!@');\n}\n\n/**\n * Detect the type of advanced state from a raw state key\n */\nexport function detectAdvancedStateType(\n stateKey: string,\n): ParsedAdvancedState['type'] {\n // Handle negation prefix\n const key = stateKey.startsWith('!') ? stateKey.slice(1) : stateKey;\n\n if (key === '@starting') return 'starting';\n if (key.startsWith('@media')) return 'media';\n if (key.startsWith('@root(')) return 'root';\n if (key.startsWith('@own(')) return 'own';\n if (key.startsWith('@(')) return 'container';\n if (isPredefinedStateRef(key)) return 'predefined';\n return 'modifier';\n}\n"],"mappings":";;;;;;;;;;;AAkDA,MAAM,iBAAiB,IAAI,IAAI;CAC7B;CACA;CACA;CACA;CAGA;CACD,CAAC;AAGF,MAAM,oBAAoB;CACxB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAGD,IAAI,yBAAiD,EAAE;AAGvD,MAAM,kCAAkB,IAAI,KAAa;AAEzC,MAAM,UAAU,UAAU;;;;AAK1B,SAAS,SAAS,KAAa,SAAuB;AACpD,KAAI,WAAW,CAAC,gBAAgB,IAAI,IAAI,EAAE;AACxC,kBAAgB,IAAI,IAAI;AACxB,UAAQ,KAAK,QAAQ;;;;;;AAOzB,SAAgB,0BACd,QACM;AACN,KAAI,oBAAoB,EAAE;EACxB,MAAM,gBAAgB,OAAO,KAAK,OAAO,CAAC,KAAK,KAAK;AACpD,WACE,kBAAkB,iBAClB,wGAC+B,cAAc,mBAC9C;AACD;;AAIF,MAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAQ,OAAO,EAAE;AAElD,MAAI,CAAC,2BAA2B,KAAK,KAAK,EAAE;AAC1C,YACE,sBAAsB,QACtB,0CAA0C,KAAK,8CAChD;AACD;;AAIF,MAAI,eAAe,IAAI,KAAK,EAAE;AAC5B,YACE,kBAAkB,QAClB,2CAA2C,K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,KAAa,YAA4B;CAClE,IAAI,QAAQ;CACZ,IAAI,IAAI,aAAa;AAErB,QAAO,IAAI,IAAI,UAAU,QAAQ,GAAG;AAClC,MAAI,IAAI,OAAO,IAAK;WACX,IAAI,OAAO,IAAK;AACzB;;AAGF,QAAO,UAAU,IAAI,IAAI,IAAI"}
@@ -1,6 +0,0 @@
1
-
2
- import { Styles } from "../styles/types.js";
3
- import { mergeStyles } from "../utils/merge-styles.js";
4
- import { StaticStyle, createStaticStyle, isStaticStyle } from "./types.js";
5
- import { tastyStatic } from "./tastyStatic.js";
6
- export { type StaticStyle, type Styles, createStaticStyle, isStaticStyle, mergeStyles, tastyStatic };
@@ -1,6 +0,0 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.117.0 | Cube Dev Team */
2
- import { mergeStyles } from "../utils/merge-styles.js";
3
- import { createStaticStyle, isStaticStyle } from "./types.js";
4
- import { tastyStatic } from "./tastyStatic.js";
5
-
6
- export { createStaticStyle, isStaticStyle, mergeStyles, tastyStatic };
@@ -1,47 +0,0 @@
1
-
2
- import { Styles } from "../styles/types.js";
3
- import { StaticStyle } from "./types.js";
4
-
5
- //#region src/tasty/static/tastyStatic.d.ts
6
- /**
7
- * Generate styles and return a StaticStyle object.
8
- * The object has `className`, `styles`, and `toString()`.
9
- *
10
- * @example
11
- * ```typescript
12
- * const button = tastyStatic({
13
- * fill: '#blue',
14
- * padding: '2x',
15
- * });
16
- * // After build: { className: 'ts3f2a1b', styles: {...}, toString() }
17
- *
18
- * <div className={button} /> // Works via toString()
19
- * ```
20
- */
21
- declare function tastyStatic(styles: Styles): StaticStyle;
22
- /**
23
- * Extend an existing StaticStyle with additional styles.
24
- * Uses mergeStyles() internally for proper nested selector handling.
25
- *
26
- * @example
27
- * ```typescript
28
- * const button = tastyStatic({ fill: '#blue' });
29
- * const primary = tastyStatic(button, { fill: '#purple' });
30
- * // After build: { className: 'ts8c4d2e', styles: {...merged...}, toString() }
31
- * ```
32
- */
33
- declare function tastyStatic(base: StaticStyle, styles: Styles): StaticStyle;
34
- /**
35
- * Generate styles for a specific CSS selector.
36
- * The call is completely removed after build transformation.
37
- *
38
- * @example
39
- * ```typescript
40
- * tastyStatic('.heading', { preset: 'h1', color: '#primary' });
41
- * // After build: (removed)
42
- * ```
43
- */
44
- declare function tastyStatic(selector: string, styles: Styles): void;
45
- //#endregion
46
- export { tastyStatic };
47
- //# sourceMappingURL=tastyStatic.d.ts.map
@@ -1,32 +0,0 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.117.0 | Cube Dev Team */
2
- import { mergeStyles } from "../utils/merge-styles.js";
3
- import { createStaticStyle, isStaticStyle } from "./types.js";
4
-
5
- //#region src/tasty/static/tastyStatic.ts
6
- /**
7
- * Build-time only function for zero-runtime static site generation.
8
- *
9
- * This function is transformed by the Babel plugin:
10
- * - `tastyStatic(styles)` → StaticStyle object with className
11
- * - `tastyStatic(base, styles)` → StaticStyle object with merged styles
12
- * - `tastyStatic(selector, styles)` → removed entirely
13
- *
14
- * At runtime (during development/build), this function returns a placeholder.
15
- * In production, all calls are replaced/removed by the build plugin.
16
- */
17
- function tastyStatic(stylesOrBaseOrSelector, styles) {
18
- if (typeof stylesOrBaseOrSelector === "string") {
19
- console.warn(`[tasty] tastyStatic('${stylesOrBaseOrSelector}', styles) was called at runtime. This indicates the Babel plugin is not configured. Add @cube-dev/ui-kit/tasty/zero/babel to your Babel config.`);
20
- return;
21
- }
22
- if (isStaticStyle(stylesOrBaseOrSelector)) {
23
- console.warn("[tasty] tastyStatic(base, styles) was called at runtime. This indicates the Babel plugin is not configured. Add @cube-dev/ui-kit/tasty/zero/babel to your Babel config.");
24
- return createStaticStyle("__TASTY_STATIC_NOT_TRANSFORMED__", mergeStyles(stylesOrBaseOrSelector.styles, styles || {}));
25
- }
26
- console.warn("[tasty] tastyStatic(styles) was called at runtime. This indicates the Babel plugin is not configured. Add @cube-dev/ui-kit/tasty/zero/babel to your Babel config.");
27
- return createStaticStyle("__TASTY_STATIC_NOT_TRANSFORMED__", stylesOrBaseOrSelector);
28
- }
29
-
30
- //#endregion
31
- export { tastyStatic };
32
- //# sourceMappingURL=tastyStatic.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tastyStatic.js","names":[],"sources":["../../../src/tasty/static/tastyStatic.ts"],"sourcesContent":["import { Styles } from '../styles/types';\nimport { mergeStyles } from '../utils/merge-styles';\n\nimport { createStaticStyle, isStaticStyle, StaticStyle } from './types';\n\n/**\n * Generate styles and return a StaticStyle object.\n * The object has `className`, `styles`, and `toString()`.\n *\n * @example\n * ```typescript\n * const button = tastyStatic({\n * fill: '#blue',\n * padding: '2x',\n * });\n * // After build: { className: 'ts3f2a1b', styles: {...}, toString() }\n *\n * <div className={button} /> // Works via toString()\n * ```\n */\nexport function tastyStatic(styles: Styles): StaticStyle;\n\n/**\n * Extend an existing StaticStyle with additional styles.\n * Uses mergeStyles() internally for proper nested selector handling.\n *\n * @example\n * ```typescript\n * const button = tastyStatic({ fill: '#blue' });\n * const primary = tastyStatic(button, { fill: '#purple' });\n * // After build: { className: 'ts8c4d2e', styles: {...merged...}, toString() }\n * ```\n */\nexport function tastyStatic(base: StaticStyle, styles: Styles): StaticStyle;\n\n/**\n * Generate styles for a specific CSS selector.\n * The call is completely removed after build transformation.\n *\n * @example\n * ```typescript\n * tastyStatic('.heading', { preset: 'h1', color: '#primary' });\n * // After build: (removed)\n * ```\n */\nexport function tastyStatic(selector: string, styles: Styles): void;\n\n/**\n * Build-time only function for zero-runtime static site generation.\n *\n * This function is transformed by the Babel plugin:\n * - `tastyStatic(styles)` → StaticStyle object with className\n * - `tastyStatic(base, styles)` → StaticStyle object with merged styles\n * - `tastyStatic(selector, styles)` → removed entirely\n *\n * At runtime (during development/build), this function returns a placeholder.\n * In production, all calls are replaced/removed by the build plugin.\n */\nexport function tastyStatic(\n stylesOrBaseOrSelector: Styles | StaticStyle | string,\n styles?: Styles,\n): StaticStyle | void {\n // This code only executes if the Babel plugin hasn't processed the file yet.\n // In a properly configured build, this function is never called at runtime.\n\n if (typeof stylesOrBaseOrSelector === 'string') {\n // Selector mode: tastyStatic(selector, styles)\n // The plugin will remove this call entirely\n if (process.env.NODE_ENV !== 'production') {\n console.warn(\n `[tasty] tastyStatic('${stylesOrBaseOrSelector}', styles) was called at runtime. ` +\n 'This indicates the Babel plugin is not configured. ' +\n 'Add @cube-dev/ui-kit/tasty/zero/babel to your Babel config.',\n );\n }\n return; // void\n }\n\n if (isStaticStyle(stylesOrBaseOrSelector)) {\n // Extension mode: tastyStatic(base, styles)\n if (process.env.NODE_ENV !== 'production') {\n console.warn(\n '[tasty] tastyStatic(base, styles) was called at runtime. ' +\n 'This indicates the Babel plugin is not configured. ' +\n 'Add @cube-dev/ui-kit/tasty/zero/babel to your Babel config.',\n );\n }\n // Merge styles for dev mode preview (won't have real classNames)\n const mergedStyles = mergeStyles(\n stylesOrBaseOrSelector.styles,\n styles || {},\n );\n return createStaticStyle('__TASTY_STATIC_NOT_TRANSFORMED__', mergedStyles);\n }\n\n // Styles mode: tastyStatic(styles)\n if (process.env.NODE_ENV !== 'production') {\n console.warn(\n '[tasty] tastyStatic(styles) was called at runtime. ' +\n 'This indicates the Babel plugin is not configured. ' +\n 'Add @cube-dev/ui-kit/tasty/zero/babel to your Babel config.',\n );\n }\n\n // Return placeholder - styles won't be applied without the plugin\n return createStaticStyle(\n '__TASTY_STATIC_NOT_TRANSFORMED__',\n stylesOrBaseOrSelector,\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AA0DA,SAAgB,YACd,wBACA,QACoB;AAIpB,KAAI,OAAO,2BAA2B,UAAU;AAI5C,UAAQ,KACN,wBAAwB,uBAAuB,kJAGhD;AAEH;;AAGF,KAAI,cAAc,uBAAuB,EAAE;AAGvC,UAAQ,KACN,0KAGD;AAOH,SAAO,kBAAkB,oCAJJ,YACnB,uBAAuB,QACvB,UAAU,EAAE,CACb,CACyE;;AAK1E,SAAQ,KACN,oKAGD;AAIH,QAAO,kBACL,oCACA,uBACD"}
@@ -1,50 +0,0 @@
1
-
2
- import { Styles } from "../styles/types.js";
3
-
4
- //#region src/tasty/static/types.d.ts
5
- /**
6
- * Static style definition returned by tastyStatic().
7
- *
8
- * Supports both explicit className access and implicit string coercion via toString().
9
- *
10
- * @example
11
- * ```typescript
12
- * const button = tastyStatic({ fill: '#blue' });
13
- *
14
- * // Both work in JSX:
15
- * <div className={button} /> // Uses toString()
16
- * <div className={button.className} /> // Explicit
17
- *
18
- * // Extension:
19
- * const primary = tastyStatic(button, { fill: '#purple' });
20
- * ```
21
- */
22
- interface StaticStyle {
23
- /**
24
- * Generated className(s) for use in JSX.
25
- * May contain multiple space-separated class names due to chunking.
26
- */
27
- className: string;
28
- /**
29
- * The original (or merged) styles object.
30
- * Available for extension via tastyStatic(base, overrides).
31
- */
32
- styles: Styles;
33
- /**
34
- * Returns className for implicit string coercion.
35
- * Enables `<div className={button} />` syntax.
36
- */
37
- toString(): string;
38
- }
39
- /**
40
- * Create a StaticStyle object.
41
- * Used internally by the Babel plugin to generate output.
42
- */
43
- declare function createStaticStyle(className: string, styles: Styles): StaticStyle;
44
- /**
45
- * Type guard to check if a value is a StaticStyle object.
46
- */
47
- declare function isStaticStyle(value: unknown): value is StaticStyle;
48
- //#endregion
49
- export { StaticStyle, createStaticStyle, isStaticStyle };
50
- //# sourceMappingURL=types.d.ts.map
@@ -1,25 +0,0 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.117.0 | Cube Dev Team */
2
- //#region src/tasty/static/types.ts
3
- /**
4
- * Create a StaticStyle object.
5
- * Used internally by the Babel plugin to generate output.
6
- */
7
- function createStaticStyle(className, styles) {
8
- return {
9
- className,
10
- styles,
11
- toString() {
12
- return this.className;
13
- }
14
- };
15
- }
16
- /**
17
- * Type guard to check if a value is a StaticStyle object.
18
- */
19
- function isStaticStyle(value) {
20
- return typeof value === "object" && value !== null && "className" in value && "styles" in value && "toString" in value && typeof value.className === "string" && typeof value.styles === "object";
21
- }
22
-
23
- //#endregion
24
- export { createStaticStyle, isStaticStyle };
25
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","names":[],"sources":["../../../src/tasty/static/types.ts"],"sourcesContent":["import { Styles } from '../styles/types';\n\n/**\n * Static style definition returned by tastyStatic().\n *\n * Supports both explicit className access and implicit string coercion via toString().\n *\n * @example\n * ```typescript\n * const button = tastyStatic({ fill: '#blue' });\n *\n * // Both work in JSX:\n * <div className={button} /> // Uses toString()\n * <div className={button.className} /> // Explicit\n *\n * // Extension:\n * const primary = tastyStatic(button, { fill: '#purple' });\n * ```\n */\nexport interface StaticStyle {\n /**\n * Generated className(s) for use in JSX.\n * May contain multiple space-separated class names due to chunking.\n */\n className: string;\n\n /**\n * The original (or merged) styles object.\n * Available for extension via tastyStatic(base, overrides).\n */\n styles: Styles;\n\n /**\n * Returns className for implicit string coercion.\n * Enables `<div className={button} />` syntax.\n */\n toString(): string;\n}\n\n/**\n * Create a StaticStyle object.\n * Used internally by the Babel plugin to generate output.\n */\nexport function createStaticStyle(\n className: string,\n styles: Styles,\n): StaticStyle {\n return {\n className,\n styles,\n toString() {\n return this.className;\n },\n };\n}\n\n/**\n * Type guard to check if a value is a StaticStyle object.\n */\nexport function isStaticStyle(value: unknown): value is StaticStyle {\n return (\n typeof value === 'object' &&\n value !== null &&\n 'className' in value &&\n 'styles' in value &&\n 'toString' in value &&\n typeof (value as StaticStyle).className === 'string' &&\n typeof (value as StaticStyle).styles === 'object'\n );\n}\n"],"mappings":";;;;;;AA2CA,SAAgB,kBACd,WACA,QACa;AACb,QAAO;EACL;EACA;EACA,WAAW;AACT,UAAO,KAAK;;EAEf;;;;;AAMH,SAAgB,cAAc,OAAsC;AAClE,QACE,OAAO,UAAU,YACjB,UAAU,QACV,eAAe,SACf,YAAY,SACZ,cAAc,SACd,OAAQ,MAAsB,cAAc,YAC5C,OAAQ,MAAsB,WAAW"}
@@ -1,16 +0,0 @@
1
-
2
- //#region src/tasty/styles/align.d.ts
3
- declare function alignStyle({
4
- align
5
- }: {
6
- align: any;
7
- }): {
8
- 'align-items': string;
9
- 'align-content': string;
10
- } | undefined;
11
- declare namespace alignStyle {
12
- var __lookupStyles: string[];
13
- }
14
- //#endregion
15
- export { alignStyle };
16
- //# sourceMappingURL=align.d.ts.map
@@ -1,15 +0,0 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.117.0 | Cube Dev Team */
2
- //#region src/tasty/styles/align.ts
3
- function alignStyle({ align }) {
4
- if (typeof align !== "string") return;
5
- if (!align) return;
6
- return {
7
- "align-items": align,
8
- "align-content": align
9
- };
10
- }
11
- alignStyle.__lookupStyles = ["align"];
12
-
13
- //#endregion
14
- export { alignStyle };
15
- //# sourceMappingURL=align.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"align.js","names":[],"sources":["../../../src/tasty/styles/align.ts"],"sourcesContent":["export function alignStyle({ align }) {\n if (typeof align !== 'string') return;\n\n if (!align) return;\n\n return {\n 'align-items': align,\n 'align-content': align,\n };\n}\n\nalignStyle.__lookupStyles = ['align'];\n"],"mappings":";;AAAA,SAAgB,WAAW,EAAE,SAAS;AACpC,KAAI,OAAO,UAAU,SAAU;AAE/B,KAAI,CAAC,MAAO;AAEZ,QAAO;EACL,eAAe;EACf,iBAAiB;EAClB;;AAGH,WAAW,iBAAiB,CAAC,QAAQ"}
@@ -1,26 +0,0 @@
1
-
2
- //#region src/tasty/styles/border.d.ts
3
- /**
4
- * Border style handler with multi-group support.
5
- *
6
- * Single group (backward compatible):
7
- * - `border="1bw solid #red"` - all sides
8
- * - `border="1bw solid #red top left"` - only top and left
9
- *
10
- * Multi-group (new):
11
- * - `border="1bw #red, 2bw #blue top"` - all sides red 1bw, then top overridden to blue 2bw
12
- * - `border="1bw, dashed top bottom, #purple left right"` - base 1bw, dashed on top/bottom, purple on left/right
13
- *
14
- * Later groups override earlier groups for conflicting directions.
15
- */
16
- declare function borderStyle({
17
- border
18
- }: {
19
- border: any;
20
- }): Record<string, string> | undefined;
21
- declare namespace borderStyle {
22
- var __lookupStyles: string[];
23
- }
24
- //#endregion
25
- export { borderStyle };
26
- //# sourceMappingURL=border.d.ts.map
@@ -1,115 +0,0 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.117.0 | Cube Dev Team */
2
- import { DIRECTIONS, filterMods, parseStyle } from "../utils/styles.js";
3
-
4
- //#region src/tasty/styles/border.ts
5
- const BORDER_STYLES = [
6
- "none",
7
- "hidden",
8
- "dotted",
9
- "dashed",
10
- "solid",
11
- "double",
12
- "groove",
13
- "ridge",
14
- "inset",
15
- "outset"
16
- ];
17
- /**
18
- * Process a single group and return border values for its directions.
19
- * @returns Object with directions as keys and border values, or null for "all directions"
20
- */
21
- function processGroup(group) {
22
- const { values, mods, colors } = group;
23
- const directions = filterMods(mods, DIRECTIONS);
24
- const typeMods = filterMods(mods, BORDER_STYLES);
25
- return {
26
- directions,
27
- borderValue: {
28
- width: values[0] || "var(--border-width)",
29
- style: typeMods[0] || "solid",
30
- color: colors?.[0] || "var(--border-color)"
31
- }
32
- };
33
- }
34
- /**
35
- * Format a border value to CSS string.
36
- */
37
- function formatBorderValue(value) {
38
- return `${value.width} ${value.style} ${value.color}`;
39
- }
40
- /**
41
- * Border style handler with multi-group support.
42
- *
43
- * Single group (backward compatible):
44
- * - `border="1bw solid #red"` - all sides
45
- * - `border="1bw solid #red top left"` - only top and left
46
- *
47
- * Multi-group (new):
48
- * - `border="1bw #red, 2bw #blue top"` - all sides red 1bw, then top overridden to blue 2bw
49
- * - `border="1bw, dashed top bottom, #purple left right"` - base 1bw, dashed on top/bottom, purple on left/right
50
- *
51
- * Later groups override earlier groups for conflicting directions.
52
- */
53
- function borderStyle({ border }) {
54
- if (!border && border !== 0) return;
55
- if (border === true) border = "1bw";
56
- const groups = parseStyle(String(border)).groups ?? [];
57
- if (!groups.length) return;
58
- if (groups.length === 1) {
59
- const { directions, borderValue } = processGroup({
60
- values: groups[0].values ?? [],
61
- mods: groups[0].mods ?? [],
62
- colors: groups[0].colors ?? []
63
- });
64
- const styleValue = formatBorderValue(borderValue);
65
- if (!directions.length) return { border: styleValue };
66
- const zeroValue = `0 ${borderValue.style} ${borderValue.color}`;
67
- return DIRECTIONS.reduce((styles, dir) => {
68
- if (directions.includes(dir)) styles[`border-${dir}`] = styleValue;
69
- else styles[`border-${dir}`] = zeroValue;
70
- return styles;
71
- }, {});
72
- }
73
- let hasAnyDirections = false;
74
- const directionMap = {
75
- top: null,
76
- right: null,
77
- bottom: null,
78
- left: null
79
- };
80
- let allDirectionsValue = null;
81
- for (const group of groups) {
82
- const { directions, borderValue } = processGroup({
83
- values: group.values ?? [],
84
- mods: group.mods ?? [],
85
- colors: group.colors ?? []
86
- });
87
- if (directions.length === 0) {
88
- allDirectionsValue = borderValue;
89
- for (const dir of DIRECTIONS) directionMap[dir] = borderValue;
90
- } else {
91
- hasAnyDirections = true;
92
- for (const dir of directions) directionMap[dir] = borderValue;
93
- }
94
- }
95
- if (!hasAnyDirections && allDirectionsValue) return { border: formatBorderValue(allDirectionsValue) };
96
- const result = {};
97
- for (const dir of DIRECTIONS) {
98
- const value = directionMap[dir];
99
- if (value) result[`border-${dir}`] = formatBorderValue(value);
100
- else {
101
- const fallback = allDirectionsValue || {
102
- width: "0",
103
- style: "solid",
104
- color: "var(--border-color)"
105
- };
106
- result[`border-${dir}`] = `0 ${fallback.style} ${fallback.color}`;
107
- }
108
- }
109
- return result;
110
- }
111
- borderStyle.__lookupStyles = ["border"];
112
-
113
- //#endregion
114
- export { borderStyle };
115
- //# sourceMappingURL=border.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"border.js","names":[],"sources":["../../../src/tasty/styles/border.ts"],"sourcesContent":["import { StyleDetails } from '../parser/types';\nimport { DIRECTIONS, filterMods, parseStyle } from '../utils/styles';\n\nconst BORDER_STYLES = [\n 'none',\n 'hidden',\n 'dotted',\n 'dashed',\n 'solid',\n 'double',\n 'groove',\n 'ridge',\n 'inset',\n 'outset',\n] as const;\n\ntype Direction = (typeof DIRECTIONS)[number];\n\ninterface GroupData {\n values: string[];\n mods: string[];\n colors: string[];\n}\n\ninterface BorderValue {\n width: string;\n style: string;\n color: string;\n}\n\n/**\n * Process a single group and return border values for its directions.\n * @returns Object with directions as keys and border values, or null for \"all directions\"\n */\nfunction processGroup(group: GroupData): {\n directions: Direction[];\n borderValue: BorderValue;\n} {\n const { values, mods, colors } = group;\n\n const directions = filterMods(mods, DIRECTIONS) as Direction[];\n const typeMods = filterMods(mods, BORDER_STYLES);\n\n const width = values[0] || 'var(--border-width)';\n const style = typeMods[0] || 'solid';\n const color = colors?.[0] || 'var(--border-color)';\n\n return {\n directions,\n borderValue: { width, style, color },\n };\n}\n\n/**\n * Format a border value to CSS string.\n */\nfunction formatBorderValue(value: BorderValue): string {\n return `${value.width} ${value.style} ${value.color}`;\n}\n\n/**\n * Border style handler with multi-group support.\n *\n * Single group (backward compatible):\n * - `border=\"1bw solid #red\"` - all sides\n * - `border=\"1bw solid #red top left\"` - only top and left\n *\n * Multi-group (new):\n * - `border=\"1bw #red, 2bw #blue top\"` - all sides red 1bw, then top overridden to blue 2bw\n * - `border=\"1bw, dashed top bottom, #purple left right\"` - base 1bw, dashed on top/bottom, purple on left/right\n *\n * Later groups override earlier groups for conflicting directions.\n */\nexport function borderStyle({ border }) {\n if (!border && border !== 0) return;\n\n if (border === true) border = '1bw';\n\n const processed = parseStyle(String(border));\n const groups: GroupData[] = processed.groups ?? [];\n\n if (!groups.length) return;\n\n // Single group - use original logic for backward compatibility\n if (groups.length === 1) {\n const { directions, borderValue } = processGroup({\n values: groups[0].values ?? [],\n mods: groups[0].mods ?? [],\n colors: groups[0].colors ?? [],\n });\n\n const styleValue = formatBorderValue(borderValue);\n\n if (!directions.length) {\n return { border: styleValue };\n }\n\n const zeroValue = `0 ${borderValue.style} ${borderValue.color}`;\n\n return DIRECTIONS.reduce(\n (styles, dir) => {\n if (directions.includes(dir)) {\n styles[`border-${dir}`] = styleValue;\n } else {\n styles[`border-${dir}`] = zeroValue;\n }\n return styles;\n },\n {} as Record<string, string>,\n );\n }\n\n // Multi-group - process groups in order, later groups override earlier\n // Track whether any group specifies directions\n let hasAnyDirections = false;\n\n // Build a map of direction -> border value\n // Start with undefined (no border set)\n const directionMap: Record<Direction, BorderValue | null> = {\n top: null,\n right: null,\n bottom: null,\n left: null,\n };\n\n // Track the last \"all directions\" value for fallback\n let allDirectionsValue: BorderValue | null = null;\n\n // Process groups in order (first to last)\n for (const group of groups) {\n const { directions, borderValue } = processGroup({\n values: group.values ?? [],\n mods: group.mods ?? [],\n colors: group.colors ?? [],\n });\n\n if (directions.length === 0) {\n // No specific directions - applies to all\n allDirectionsValue = borderValue;\n // Set all directions\n for (const dir of DIRECTIONS) {\n directionMap[dir] = borderValue;\n }\n } else {\n // Specific directions - override only those\n hasAnyDirections = true;\n for (const dir of directions) {\n directionMap[dir] = borderValue;\n }\n }\n }\n\n // If no group specified any directions and we have an all-directions value,\n // return the simple `border` shorthand\n if (!hasAnyDirections && allDirectionsValue) {\n return { border: formatBorderValue(allDirectionsValue) };\n }\n\n // Otherwise, output individual border-* properties\n const result: Record<string, string> = {};\n\n for (const dir of DIRECTIONS) {\n const value = directionMap[dir];\n if (value) {\n result[`border-${dir}`] = formatBorderValue(value);\n } else {\n // No border for this direction - set to 0\n // Use the last all-directions value for style/color consistency, or defaults\n const fallback = allDirectionsValue || {\n width: '0',\n style: 'solid',\n color: 'var(--border-color)',\n };\n result[`border-${dir}`] = `0 ${fallback.style} ${fallback.color}`;\n }\n }\n\n return result;\n}\n\nborderStyle.__lookupStyles = ['border'];\n"],"mappings":";;;;AAGA,MAAM,gBAAgB;CACpB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;;;;;AAoBD,SAAS,aAAa,OAGpB;CACA,MAAM,EAAE,QAAQ,MAAM,WAAW;CAEjC,MAAM,aAAa,WAAW,MAAM,WAAW;CAC/C,MAAM,WAAW,WAAW,MAAM,cAAc;AAMhD,QAAO;EACL;EACA,aAAa;GAAE,O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Aa,OAAO;SAEjB;AAEL,sBAAmB;AACnB,QAAK,MAAM,OAAO,WAChB,cAAa,OAAO;;;AAO1B,KAAI,CAAC,oBAAoB,mBACvB,QAAO,EAAE,QAAQ,kBAAkB,mBAAmB,EAAE;CAI1D,MAAM,SAAiC,EAAE;AAEzC,MAAK,MAAM,OAAO,YAAY;EAC5B,MAAM,QAAQ,aAAa;AAC3B,MAAI,MACF,QAAO,UAAU,SAAS,kBAAkB,MAAM;OAC7C;GAGL,MAAM,WAAW,sBAAsB;IACrC,OAAO;IACP,OAAO;IACP,OAAO;IACR;AACD,UAAO,UAAU,SAAS,KAAK,SAAS,MAAM,GAAG,SAAS;;;AAI9D,QAAO;;AAGT,YAAY,iBAAiB,CAAC,SAAS"}
@@ -1,15 +0,0 @@
1
-
2
- //#region src/tasty/styles/color.d.ts
3
- declare function colorStyle({
4
- color
5
- }: {
6
- color: any;
7
- }): {
8
- color: any;
9
- } | undefined;
10
- declare namespace colorStyle {
11
- var __lookupStyles: string[];
12
- }
13
- //#endregion
14
- export { colorStyle };
15
- //# sourceMappingURL=color.d.ts.map
@@ -1,24 +0,0 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.117.0 | Cube Dev Team */
2
- import { parseColor } from "../utils/styles.js";
3
- import { convertColorChainToRgbChain } from "./createStyle.js";
4
-
5
- //#region src/tasty/styles/color.ts
6
- function colorStyle({ color }) {
7
- if (!color) return;
8
- if (color === true) color = "currentColor";
9
- if (typeof color === "string" && (color.startsWith("#") || color.startsWith("(#"))) color = parseColor(color).color || color;
10
- const match = color.match(/var\(--(.+?)-color/);
11
- let name = "";
12
- if (match) name = match[1];
13
- const styles = { color };
14
- if (name && name !== "current") Object.assign(styles, {
15
- "--current-color": color,
16
- "--current-color-rgb": convertColorChainToRgbChain(color)
17
- });
18
- return styles;
19
- }
20
- colorStyle.__lookupStyles = ["color"];
21
-
22
- //#endregion
23
- export { colorStyle };
24
- //# sourceMappingURL=color.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"color.js","names":[],"sources":["../../../src/tasty/styles/color.ts"],"sourcesContent":["import { parseColor } from '../utils/styles';\n\nimport { convertColorChainToRgbChain } from './createStyle';\n\nexport function colorStyle({ color }) {\n if (!color) return;\n\n if (color === true) color = 'currentColor';\n\n // Handle color values that need parsing:\n // - Simple color tokens: #placeholder\n // - Color fallback syntax: (#placeholder, #dark-04)\n if (\n typeof color === 'string' &&\n (color.startsWith('#') || color.startsWith('(#'))\n ) {\n color = parseColor(color).color || color;\n }\n\n const match = color.match(/var\\(--(.+?)-color/);\n let name = '';\n\n if (match) {\n name = match[1];\n }\n\n const styles = {\n color: color,\n };\n\n if (name && name !== 'current') {\n Object.assign(styles, {\n '--current-color': color,\n '--current-color-rgb': convertColorChainToRgbChain(color),\n });\n }\n\n return styles;\n}\n\ncolorStyle.__lookupStyles = ['color'];\n"],"mappings":";;;;;AAIA,SAAgB,WAAW,EAAE,SAAS;AACpC,KAAI,CAAC,MAAO;AAEZ,KAAI,UAAU,KAAM,SAAQ;AAK5B,KACE,OAAO,UAAU,aAChB,MAAM,WAAW,IAAI,IAAI,MAAM,WAAW,KAAK,EAEhD,SAAQ,WAAW,MAAM,CAAC,SAAS;CAGrC,MAAM,QAAQ,MAAM,MAAM,qBAAqB;CAC/C,IAAI,OAAO;AAEX,KAAI,MACF,QAAO,MAAM;CAGf,MAAM,SAAS,EACN,OACR;AAED,KAAI,QAAQ,SAAS,UACnB,QAAO,OAAO,QAAQ;EACpB,mBAAmB;EACnB,uBAAuB,4BAA4B,MAAM;EAC1D,CAAC;AAGJ,QAAO;;AAGT,WAAW,iBAAiB,CAAC,QAAQ"}
@@ -1,78 +0,0 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.117.0 | Cube Dev Team */
2
- import { getRgbValuesFromRgbaString, normalizeColorTokenValue, parseColor, parseStyle, strToRgb } from "../utils/styles.js";
3
- import { toSnakeCase } from "../utils/string.js";
4
-
5
- //#region src/tasty/styles/createStyle.ts
6
- const CACHE = {};
7
- /**
8
- * Convert color fallback chain to RGB fallback chain.
9
- * Example: var(--primary-color, var(--secondary-color)) → var(--primary-color-rgb, var(--secondary-color-rgb))
10
- */
11
- function convertColorChainToRgbChain(colorValue) {
12
- const rgbVarMatch = colorValue.match(/^rgba?\(\s*(var\(--[a-z0-9-]+-color-rgb\))\s*\//);
13
- if (rgbVarMatch) return rgbVarMatch[1];
14
- const match = colorValue.match(/var\(--([a-z0-9-]+)-color\s*(?:,\s*(.+))?\)/);
15
- if (!match) {
16
- if (colorValue.startsWith("rgb(") || colorValue.startsWith("rgba(")) return colorValue;
17
- const rgba = strToRgb(colorValue);
18
- if (rgba) return getRgbValuesFromRgbaString(rgba).join(" ");
19
- return colorValue;
20
- }
21
- const [, name, fallback] = match;
22
- if (!fallback) return `var(--${name}-color-rgb)`;
23
- return `var(--${name}-color-rgb, ${convertColorChainToRgbChain(fallback.trim())})`;
24
- }
25
- function createStyle(styleName, cssStyle, converter) {
26
- const key = `${styleName}.${cssStyle ?? ""}`;
27
- if (!CACHE[key]) {
28
- const styleHandler = (styleMap) => {
29
- let styleValue = styleMap[styleName];
30
- if (styleValue == null || styleValue === false) return;
31
- let finalCssStyle;
32
- const isColorToken = !cssStyle && typeof styleName === "string" && styleName.startsWith("#");
33
- if (isColorToken) finalCssStyle = `--${toSnakeCase(styleName.slice(1)).replace(/^-+/, "")}-color`;
34
- else finalCssStyle = cssStyle || toSnakeCase(styleName).replace(/^\$/, "--");
35
- if (isColorToken) {
36
- const normalized = normalizeColorTokenValue(styleValue);
37
- if (normalized === null) return;
38
- styleValue = normalized;
39
- }
40
- if (converter && typeof styleValue !== "string") {
41
- styleValue = converter(styleValue);
42
- if (!styleValue) return;
43
- }
44
- if (typeof styleValue === "string" && finalCssStyle.startsWith("--") && finalCssStyle.endsWith("-color")) {
45
- styleValue = styleValue.trim();
46
- const rgba = strToRgb(styleValue);
47
- const { color, name } = parseColor(styleValue);
48
- if (name && rgba) return {
49
- [finalCssStyle]: `var(--${name}-color, ${rgba})`,
50
- [`${finalCssStyle}-rgb`]: `var(--${name}-color-rgb, ${getRgbValuesFromRgbaString(rgba).join(" ")})`
51
- };
52
- else if (name) {
53
- if (color) return {
54
- [finalCssStyle]: color,
55
- [`${finalCssStyle}-rgb`]: convertColorChainToRgbChain(color)
56
- };
57
- return {
58
- [finalCssStyle]: `var(--${name}-color)`,
59
- [`${finalCssStyle}-rgb`]: `var(--${name}-color-rgb)`
60
- };
61
- } else if (rgba) return {
62
- [finalCssStyle]: rgba,
63
- [`${finalCssStyle}-rgb`]: getRgbValuesFromRgbaString(rgba).join(" ")
64
- };
65
- return { [finalCssStyle]: color };
66
- }
67
- const processed = parseStyle(styleValue);
68
- return { [finalCssStyle]: processed.output };
69
- };
70
- styleHandler.__lookupStyles = [styleName];
71
- CACHE[key] = styleHandler;
72
- }
73
- return CACHE[key];
74
- }
75
-
76
- //#endregion
77
- export { convertColorChainToRgbChain, createStyle };
78
- //# sourceMappingURL=createStyle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createStyle.js","names":[],"sources":["../../../src/tasty/styles/createStyle.ts"],"sourcesContent":["import { toSnakeCase } from '../utils/string';\nimport {\n getRgbValuesFromRgbaString,\n normalizeColorTokenValue,\n parseColor,\n parseStyle,\n strToRgb,\n} from '../utils/styles';\n\nconst CACHE = {};\n\n/**\n * Convert color fallback chain to RGB fallback chain.\n * Example: var(--primary-color, var(--secondary-color)) → var(--primary-color-rgb, var(--secondary-color-rgb))\n */\nexport function convertColorChainToRgbChain(colorValue: string): string {\n // Handle rgb(var(--name-color-rgb) / alpha) pattern.\n // When #name.opacity is parsed, the classifier produces rgb(var(--name-color-rgb) / .opacity).\n // The RGB chain should be just the inner var() reference, without the rgb() wrapper and opacity.\n const rgbVarMatch = colorValue.match(\n /^rgba?\\(\\s*(var\\(--[a-z0-9-]+-color-rgb\\))\\s*\\//,\n );\n if (rgbVarMatch) {\n return rgbVarMatch[1];\n }\n\n // Match var(--name-color, ...) pattern\n const varPattern = /var\\(--([a-z0-9-]+)-color\\s*(?:,\\s*(.+))?\\)/;\n const match = colorValue.match(varPattern);\n\n if (!match) {\n // Not a color variable, check if it's a color function or literal\n if (colorValue.startsWith('rgb(') || colorValue.startsWith('rgba(')) {\n return colorValue;\n }\n // Try to convert to RGB if possible\n const rgba = strToRgb(colorValue);\n if (rgba) {\n const rgbValues = getRgbValuesFromRgbaString(rgba);\n return rgbValues.join(' ');\n }\n return colorValue;\n }\n\n const [, name, fallback] = match;\n\n if (!fallback) {\n // Simple var without fallback\n return `var(--${name}-color-rgb)`;\n }\n\n // Recursively process the fallback\n const processedFallback = convertColorChainToRgbChain(fallback.trim());\n return `var(--${name}-color-rgb, ${processedFallback})`;\n}\n\nexport function createStyle(\n styleName: string,\n cssStyle?: string,\n converter?: (styleValue: string | number | true) => string | undefined,\n) {\n const key = `${styleName}.${cssStyle ?? ''}`;\n\n if (!CACHE[key]) {\n const styleHandler = (styleMap) => {\n let styleValue = styleMap[styleName];\n\n if (styleValue == null || styleValue === false) return;\n\n // Map style name to final CSS property.\n // - \"$foo\" → \"--foo\"\n // - \"#name\" → \"--name-color\" (alternative color definition syntax)\n let finalCssStyle: string;\n const isColorToken =\n !cssStyle && typeof styleName === 'string' && styleName.startsWith('#');\n\n if (isColorToken) {\n const raw = styleName.slice(1);\n // Convert camelCase to kebab and remove possible leading dash from uppercase start\n const name = toSnakeCase(raw).replace(/^-+/, '');\n finalCssStyle = `--${name}-color`;\n } else {\n finalCssStyle = cssStyle || toSnakeCase(styleName).replace(/^\\$/, '--');\n }\n\n // For color tokens, normalize boolean values (true → 'transparent', false → skip)\n if (isColorToken) {\n const normalized = normalizeColorTokenValue(styleValue);\n if (normalized === null) return; // Skip false values\n styleValue = normalized;\n }\n\n // convert non-string values\n if (converter && typeof styleValue !== 'string') {\n styleValue = converter(styleValue);\n\n if (!styleValue) return;\n }\n\n if (\n typeof styleValue === 'string' &&\n finalCssStyle.startsWith('--') &&\n finalCssStyle.endsWith('-color')\n ) {\n styleValue = styleValue.trim();\n\n const rgba = strToRgb(styleValue);\n\n const { color, name } = parseColor(styleValue);\n\n if (name && rgba) {\n return {\n [finalCssStyle]: `var(--${name}-color, ${rgba})`,\n [`${finalCssStyle}-rgb`]: `var(--${name}-color-rgb, ${getRgbValuesFromRgbaString(\n rgba,\n ).join(' ')})`,\n };\n } else if (name) {\n if (color) {\n return {\n [finalCssStyle]: color,\n [`${finalCssStyle}-rgb`]: convertColorChainToRgbChain(color),\n };\n }\n\n return {\n [finalCssStyle]: `var(--${name}-color)`,\n [`${finalCssStyle}-rgb`]: `var(--${name}-color-rgb)`,\n };\n } else if (rgba) {\n return {\n [finalCssStyle]: rgba,\n [`${finalCssStyle}-rgb`]:\n getRgbValuesFromRgbaString(rgba).join(' '),\n };\n }\n\n return {\n [finalCssStyle]: color,\n };\n }\n\n const processed = parseStyle(styleValue as any);\n return { [finalCssStyle]: processed.output };\n };\n\n styleHandler.__lookupStyles = [styleName];\n\n CACHE[key] = styleHandler;\n }\n\n return CACHE[key];\n}\n"],"mappings":";;;;;AASA,MAAM,QAAQ,EAAE;;;;;AAMhB,SAAgB,4BAA4B,YAA4B;CAItE,MAAM,cAAc,WAAW,MAC7B,kDACD;AACD,KAAI,YACF,QAAO,YAAY;CAKrB,MAAM,QAAQ,WAAW,MADN,8CACuB;AAE1C,KAAI,CAAC,OAAO;AAEV,MAAI,WAAW,WAAW,OAAO,IAAI,WAAW,WAAW,QAAQ,CACjE,QAAO;EAGT,MAAM,OAAO,SAAS,WAAW;AACjC,MAAI,KAEF,QADkB,2BAA2B,KAAK,CACjC,KAAK,IAAI;AAE5B,SAAO;;CAGT,MAAM,GAAG,MAAM,YAAY;AAE3B,KAAI,CAAC,SAEH,QAAO,SAAS,KAAK;AAKvB,QAAO,SAAS,KAAK,cADK,4BAA4B,SAAS,MAAM,CAAC,CACjB;;AAGvD,SAAgB,YACd,WACA,UACA,WACA;CACA,MAAM,MAAM,GAAG,UAAU,GAAG,YAAY;AAExC,KAAI,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