@cube-dev/ui-kit 0.213.0 → 0.214.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 (793) hide show
  1. package/dist/CHANGELOG.md +26 -0
  2. package/dist/_internal/hooks/use-debounced-value.js +1 -1
  3. package/dist/_internal/hooks/use-deprecation-warning.js +1 -1
  4. package/dist/_internal/hooks/use-event.js +1 -1
  5. package/dist/_internal/hooks/use-is-first-render.js +1 -1
  6. package/dist/_internal/hooks/use-sync-ref.js +1 -1
  7. package/dist/_internal/hooks/use-timer/timer.js +1 -1
  8. package/dist/_internal/hooks/use-timer/use-timer.js +1 -1
  9. package/dist/_internal/hooks/use-warn.js +1 -1
  10. package/dist/components/Block.js +1 -1
  11. package/dist/components/CollectionItem.js +1 -1
  12. package/dist/components/GlobalStyles.js +1 -1
  13. package/dist/components/GridProvider.js +1 -1
  14. package/dist/components/HiddenInput.js +1 -1
  15. package/dist/components/Root.js +1 -1
  16. package/dist/components/actions/Action/Action.js +1 -1
  17. package/dist/components/actions/Banner/Banner.js +1 -1
  18. package/dist/components/actions/Button/AutoCollapseObserver.js +1 -1
  19. package/dist/components/actions/Button/Button.js +1 -1
  20. package/dist/components/actions/Button/index.js +1 -1
  21. package/dist/components/actions/ButtonGroup/ButtonGroup.js +1 -1
  22. package/dist/components/actions/ButtonSplit/ButtonSplit.js +1 -1
  23. package/dist/components/actions/ButtonSplit/context.js +1 -1
  24. package/dist/components/actions/CommandMenu/CommandMenu.js +1 -1
  25. package/dist/components/actions/CommandMenu/styled.js +1 -1
  26. package/dist/components/actions/ItemAction/ItemAction.js +1 -1
  27. package/dist/components/actions/ItemActionContext.js +1 -1
  28. package/dist/components/actions/ItemActionsWrapper.js +1 -1
  29. package/dist/components/actions/ItemButton/ItemButton.js +1 -1
  30. package/dist/components/actions/Link/Link.js +1 -1
  31. package/dist/components/actions/Menu/Menu.js +1 -1
  32. package/dist/components/actions/Menu/MenuCollectionItem.js +1 -1
  33. package/dist/components/actions/Menu/MenuItem.js +1 -1
  34. package/dist/components/actions/Menu/MenuSection.js +1 -1
  35. package/dist/components/actions/Menu/MenuTrigger.js +1 -1
  36. package/dist/components/actions/Menu/SubMenuTrigger.js +1 -1
  37. package/dist/components/actions/Menu/SubmenuTriggerContext.js +1 -1
  38. package/dist/components/actions/Menu/context.js +1 -1
  39. package/dist/components/actions/Menu/styled.js +1 -1
  40. package/dist/components/actions/actions-run.js +1 -1
  41. package/dist/components/actions/use-action.d.ts +1 -1
  42. package/dist/components/actions/use-action.js +2 -2
  43. package/dist/components/actions/use-action.js.map +1 -1
  44. package/dist/components/actions/use-anchored-menu.js +1 -1
  45. package/dist/components/actions/use-context-menu.js +1 -1
  46. package/dist/components/content/ActiveZone/ActiveZone.js +1 -1
  47. package/dist/components/content/Alert/Alert.js +1 -1
  48. package/dist/components/content/Alert/use-alert.js +1 -1
  49. package/dist/components/content/Avatar/Avatar.js +1 -1
  50. package/dist/components/content/Badge/Badge.js +1 -1
  51. package/dist/components/content/Card/Card.js +1 -1
  52. package/dist/components/content/Content.js +1 -1
  53. package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +1 -1
  54. package/dist/components/content/CopySnippet/CopySnippet.js +1 -1
  55. package/dist/components/content/Disclosure/Disclosure.js +1 -1
  56. package/dist/components/content/Divider/Divider.js +1 -1
  57. package/dist/components/content/Footer.js +1 -1
  58. package/dist/components/content/Header.js +1 -1
  59. package/dist/components/content/HotKeys/HotKeys.js +1 -1
  60. package/dist/components/content/InfoBadge/InfoBadge.js +36 -4
  61. package/dist/components/content/InfoBadge/InfoBadge.js.map +1 -1
  62. package/dist/components/content/InlineInput/InlineInput.js +1 -1
  63. package/dist/components/content/Item/Item.js +1 -1
  64. package/dist/components/content/Item/ItemWithNativeLinks.js +1 -1
  65. package/dist/components/content/ItemBadge/ItemBadge.js +1 -1
  66. package/dist/components/content/ItemCard/ItemCard.js +1 -1
  67. package/dist/components/content/Layout/GridLayout.js +1 -1
  68. package/dist/components/content/Layout/Layout.js +1 -1
  69. package/dist/components/content/Layout/LayoutBlock.js +1 -1
  70. package/dist/components/content/Layout/LayoutCenter.js +1 -1
  71. package/dist/components/content/Layout/LayoutContainer.js +1 -1
  72. package/dist/components/content/Layout/LayoutContent.js +1 -1
  73. package/dist/components/content/Layout/LayoutContext.js +1 -1
  74. package/dist/components/content/Layout/LayoutFlex.js +1 -1
  75. package/dist/components/content/Layout/LayoutFooter.js +1 -1
  76. package/dist/components/content/Layout/LayoutGrid.js +1 -1
  77. package/dist/components/content/Layout/LayoutHeader.js +1 -1
  78. package/dist/components/content/Layout/LayoutPane.js +1 -1
  79. package/dist/components/content/Layout/LayoutPanel.js +1 -1
  80. package/dist/components/content/Layout/LayoutPanelHeader.js +1 -1
  81. package/dist/components/content/Layout/LayoutPanelTransition.js +1 -1
  82. package/dist/components/content/Layout/LayoutToolbar.js +1 -1
  83. package/dist/components/content/Layout/hooks/useTinyScrollbar.js +1 -1
  84. package/dist/components/content/Layout/index.js +1 -1
  85. package/dist/components/content/Layout/utils.js +1 -1
  86. package/dist/components/content/Paragraph.js +1 -1
  87. package/dist/components/content/Placeholder/Placeholder.js +1 -1
  88. package/dist/components/content/PrismCode/PrismCode.js +1 -1
  89. package/dist/components/content/PrismCode/prismSetup.js +1 -1
  90. package/dist/components/content/PrismDiffCode/PrismDiffCode.js +1 -1
  91. package/dist/components/content/Result/Result.js +1 -1
  92. package/dist/components/content/Skeleton/Skeleton.js +1 -1
  93. package/dist/components/content/Tag/Tag.js +55 -29
  94. package/dist/components/content/Tag/Tag.js.map +1 -1
  95. package/dist/components/content/Text.js +1 -1
  96. package/dist/components/content/TextItem/TextItem.js +1 -1
  97. package/dist/components/content/Title.js +1 -1
  98. package/dist/components/content/Tree/Tree.js +1 -1
  99. package/dist/components/content/Tree/TreeNode.js +1 -1
  100. package/dist/components/content/Tree/checked-keys.js +1 -1
  101. package/dist/components/content/Tree/rowId.js +1 -1
  102. package/dist/components/content/Tree/styled.js +1 -1
  103. package/dist/components/content/Tree/tree-index.js +1 -1
  104. package/dist/components/content/Tree/use-checkbox-tree.js +1 -1
  105. package/dist/components/content/Tree/use-load-data.js +1 -1
  106. package/dist/components/content/highlightText.js +1 -1
  107. package/dist/components/content/use-auto-tooltip.js +1 -1
  108. package/dist/components/data/DataTable/DataTable.js +1 -1
  109. package/dist/components/data/ItemTable/ItemTable.js +1 -1
  110. package/dist/components/data/ItemTable/ItemTableBulkBar.js +1 -1
  111. package/dist/components/data/ItemTable/ItemTableDragPreview.js +1 -1
  112. package/dist/components/data/ItemTable/ItemTableFooter.js +1 -1
  113. package/dist/components/data/ItemTable/ItemTableToolbar.js +1 -1
  114. package/dist/components/data/ItemTable/item-table-sections.js +1 -1
  115. package/dist/components/data/ItemTable/use-item-table-column-widths.js +1 -1
  116. package/dist/components/data/ItemTable/use-item-table-drag-drop.js +1 -1
  117. package/dist/components/data/ItemTable/use-item-table-pagination.js +1 -1
  118. package/dist/components/data/ItemTable/use-item-table-selection.js +1 -1
  119. package/dist/components/data/ItemTable/use-item-table-sort.js +1 -1
  120. package/dist/components/data/ItemTable/use-item-table-tree-model.js +1 -1
  121. package/dist/components/data/TableBase/ColumnResizer.js +1 -1
  122. package/dist/components/data/TableBase/RowCollection.js +1 -1
  123. package/dist/components/data/TableBase/TableHeaderCell.js +1 -1
  124. package/dist/components/data/TableBase/TableRow.js +1 -1
  125. package/dist/components/data/TableBase/TableRowLink.js +1 -1
  126. package/dist/components/data/TableBase/TableView.js +1 -1
  127. package/dist/components/data/TableBase/TreeGridTable.js +1 -1
  128. package/dist/components/data/TableBase/column-header.js +1 -1
  129. package/dist/components/data/TableBase/column-menu.js +1 -1
  130. package/dist/components/data/TableBase/column-styles.js +1 -1
  131. package/dist/components/data/TableBase/column-tint.js +1 -1
  132. package/dist/components/data/TableBase/row-menu.js +1 -1
  133. package/dist/components/data/TableBase/styled.js +1 -1
  134. package/dist/components/data/TableBase/table-body-sections.js +1 -1
  135. package/dist/components/data/TableBase/table-tree.js +1 -1
  136. package/dist/components/data/TableBase/types.js +1 -1
  137. package/dist/components/data/TableBase/use-cell-selection.js +0 -0
  138. package/dist/components/data/TableBase/use-column-menu.js +1 -1
  139. package/dist/components/data/TableBase/use-column-order.js +1 -1
  140. package/dist/components/data/TableBase/use-column-window.js +1 -1
  141. package/dist/components/data/TableBase/use-container-width.js +1 -1
  142. package/dist/components/data/TableBase/use-row-move-animation.js +1 -1
  143. package/dist/components/data/TableBase/use-scrollability.js +1 -1
  144. package/dist/components/data/TableBase/use-table-columns.js +1 -1
  145. package/dist/components/data/TableBase/use-table-search.js +1 -1
  146. package/dist/components/data/TableBase/use-table-selection.js +1 -1
  147. package/dist/components/data/TableBase/use-table-sort.js +1 -1
  148. package/dist/components/data/TableBase/use-table-sorts.js +1 -1
  149. package/dist/components/data/TableBase/use-table-storage.js +1 -1
  150. package/dist/components/data/TableBase/use-table-tooltip-refresh.js +1 -1
  151. package/dist/components/data/TableBase/use-table-tree-state.js +1 -1
  152. package/dist/components/fields/Checkbox/Checkbox.js +1 -1
  153. package/dist/components/fields/Checkbox/CheckboxGroup.js +1 -1
  154. package/dist/components/fields/Checkbox/context.js +1 -1
  155. package/dist/components/fields/ColorInput/ColorInput.js +1 -1
  156. package/dist/components/fields/ColorPicker/ColorPicker.js +1 -1
  157. package/dist/components/fields/ColorSwatch/ColorSwatch.js +1 -1
  158. package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js +1 -1
  159. package/dist/components/fields/ComboBox/ComboBox.js +1 -1
  160. package/dist/components/fields/ComboBox/comboBoxOptions.js +1 -1
  161. package/dist/components/fields/CommandTextArea/CommandTextArea.js +1 -1
  162. package/dist/components/fields/CommandTextArea/caretPosition.js +1 -1
  163. package/dist/components/fields/CommandTextArea/useCaretAnchor.js +1 -1
  164. package/dist/components/fields/DatePicker/CalendarPopover.js +1 -1
  165. package/dist/components/fields/DatePicker/DateInput.js +1 -1
  166. package/dist/components/fields/DatePicker/DateInputBase.js +1 -1
  167. package/dist/components/fields/DatePicker/DatePicker.js +1 -1
  168. package/dist/components/fields/DatePicker/DatePickerButton.js +1 -1
  169. package/dist/components/fields/DatePicker/DatePickerElement.js +1 -1
  170. package/dist/components/fields/DatePicker/DatePickerInput.js +1 -1
  171. package/dist/components/fields/DatePicker/DatePickerSegment.js +1 -1
  172. package/dist/components/fields/DatePicker/DateRangePicker.js +1 -1
  173. package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +1 -1
  174. package/dist/components/fields/DatePicker/MonthPicker.js +1 -1
  175. package/dist/components/fields/DatePicker/PeriodPicker.js +1 -1
  176. package/dist/components/fields/DatePicker/QuarterPicker.js +1 -1
  177. package/dist/components/fields/DatePicker/TimeInput.js +1 -1
  178. package/dist/components/fields/DatePicker/WeekPicker.js +1 -1
  179. package/dist/components/fields/DatePicker/YearPicker.js +1 -1
  180. package/dist/components/fields/DatePicker/parseDate.js +1 -1
  181. package/dist/components/fields/DatePicker/period.js +1 -1
  182. package/dist/components/fields/DatePicker/props.js +1 -1
  183. package/dist/components/fields/DatePicker/utils.js +1 -1
  184. package/dist/components/fields/FileInput/FileInput.js +1 -1
  185. package/dist/components/fields/FilterListBox/FilterListBox.js +1 -1
  186. package/dist/components/fields/FilterListBox/styled.js +1 -1
  187. package/dist/components/fields/FilterPicker/FilterPicker.js +1 -1
  188. package/dist/components/fields/FilterPicker/FilterTree.js +1 -1
  189. package/dist/components/fields/Input/Input.js +1 -1
  190. package/dist/components/fields/ListBox/DraggableListBox.js +1 -1
  191. package/dist/components/fields/ListBox/ListBox.js +1 -1
  192. package/dist/components/fields/ListBox/empty-row.js +1 -1
  193. package/dist/components/fields/ListBox/optionId.js +1 -1
  194. package/dist/components/fields/ListBoxPopover/ListBoxPopover.js +1 -1
  195. package/dist/components/fields/ListBoxPopover/listNavigation.js +1 -1
  196. package/dist/components/fields/ListBoxPopover/useCompositeFocus.js +1 -1
  197. package/dist/components/fields/NumberInput/NumberInput.js +1 -1
  198. package/dist/components/fields/NumberInput/StepButton.js +1 -1
  199. package/dist/components/fields/PasswordInput/PasswordInput.js +1 -1
  200. package/dist/components/fields/Picker/Picker.js +1 -1
  201. package/dist/components/fields/RadioGroup/Radio.js +1 -1
  202. package/dist/components/fields/RadioGroup/RadioGroup.js +1 -1
  203. package/dist/components/fields/RadioGroup/context.js +1 -1
  204. package/dist/components/fields/RadioGroup/joined-styles.js +1 -1
  205. package/dist/components/fields/SearchComboBox/SearchComboBox.js +1 -1
  206. package/dist/components/fields/SearchInput/SearchInput.js +1 -1
  207. package/dist/components/fields/Select/Select.js +1 -1
  208. package/dist/components/fields/Slider/Gradation.js +1 -1
  209. package/dist/components/fields/Slider/HueSlider.js +1 -1
  210. package/dist/components/fields/Slider/RangeSlider.js +1 -1
  211. package/dist/components/fields/Slider/Slider.js +1 -1
  212. package/dist/components/fields/Slider/SliderBase.js +1 -1
  213. package/dist/components/fields/Slider/SliderThumb.js +1 -1
  214. package/dist/components/fields/Slider/SliderTrack.js +1 -1
  215. package/dist/components/fields/Slider/elements.js +1 -1
  216. package/dist/components/fields/Slider/index.js +1 -1
  217. package/dist/components/fields/Switch/Switch.js +1 -1
  218. package/dist/components/fields/TagInput/TagInput.d.ts +26 -3
  219. package/dist/components/fields/TagInput/TagInput.js +340 -204
  220. package/dist/components/fields/TagInput/TagInput.js.map +1 -1
  221. package/dist/components/fields/TagInput/TagList.js +59 -34
  222. package/dist/components/fields/TagInput/TagList.js.map +1 -1
  223. package/dist/components/fields/TagInput/useActiveOption.js +1 -1
  224. package/dist/components/fields/TagInput/useSuffixSpace.js +62 -0
  225. package/dist/components/fields/TagInput/useSuffixSpace.js.map +1 -0
  226. package/dist/components/fields/TagInput/useTagError.js +1 -1
  227. package/dist/components/fields/TextArea/TextArea.js +1 -1
  228. package/dist/components/fields/TextInput/TextInput.js +1 -1
  229. package/dist/components/fields/TextInput/TextInputBase.js +1 -1
  230. package/dist/components/fields/TextInput/displayed-validation.js +1 -1
  231. package/dist/components/fields/TextInput/useAutoSizeTextArea.js +1 -1
  232. package/dist/components/fields/TextInputMapper/TextInputMapper.js +1 -1
  233. package/dist/components/fields/ToggleGroup/ToggleGroup.js +1 -1
  234. package/dist/components/fields/ToggleGroup/ToggleGroupItem.js +1 -1
  235. package/dist/components/fields/ToggleGroup/context.js +1 -1
  236. package/dist/components/fields/TriggerActions.js +1 -1
  237. package/dist/components/fields/color/ColorPanel.js +1 -1
  238. package/dist/components/fields/color/channels.js +1 -1
  239. package/dist/components/fields/color/color.js +1 -1
  240. package/dist/components/fields/color/context.js +1 -1
  241. package/dist/components/fields/option-origin-press.js +1 -1
  242. package/dist/components/form/FieldWrapper/FieldWrapper.js +1 -1
  243. package/dist/components/form/FieldWrapper/field-description.js +1 -1
  244. package/dist/components/form/Form/Field.js +1 -1
  245. package/dist/components/form/Form/Form.js +1 -1
  246. package/dist/components/form/Form/FormContext.js +1 -1
  247. package/dist/components/form/Form/FormElement.js +1 -1
  248. package/dist/components/form/Form/ModernFormRoot.js +1 -1
  249. package/dist/components/form/Form/ResetButton/ResetButton.js +1 -1
  250. package/dist/components/form/Form/SubmitButton/SubmitButton.js +1 -1
  251. package/dist/components/form/Form/SubmitError.js +1 -1
  252. package/dist/components/form/Form/backend.js +1 -1
  253. package/dist/components/form/Form/index.js +1 -1
  254. package/dist/components/form/Form/modern/actions.js +1 -1
  255. package/dist/components/form/Form/modern/context.js +1 -1
  256. package/dist/components/form/Form/modern/controller.js +1 -1
  257. package/dist/components/form/Form/modern/field-binding.js +1 -1
  258. package/dist/components/form/Form/modern/field.js +1 -1
  259. package/dist/components/form/Form/modern/react.js +1 -1
  260. package/dist/components/form/Form/modern/store.js +1 -1
  261. package/dist/components/form/Form/modern/validation.js +1 -1
  262. package/dist/components/form/Form/modern/values.js +1 -1
  263. package/dist/components/form/Form/reset-unbound-controls.js +1 -1
  264. package/dist/components/form/Form/use-field/use-field-binding.js +1 -1
  265. package/dist/components/form/Form/use-field/use-field-props.js +1 -1
  266. package/dist/components/form/Form/use-field/use-field.js +1 -1
  267. package/dist/components/form/Form/use-form.js +1 -1
  268. package/dist/components/form/Form/validation.js +1 -1
  269. package/dist/components/form/Label.js +1 -1
  270. package/dist/components/form/field-chrome.js +1 -1
  271. package/dist/components/form/field-layout.js +1 -1
  272. package/dist/components/form/legacy-tooltip.js +1 -1
  273. package/dist/components/form/validation/ValidationIndicator.js +1 -1
  274. package/dist/components/form/validation/resolve-validation-props.js +1 -1
  275. package/dist/components/form/validation/use-validation-props.js +1 -1
  276. package/dist/components/form/wrapper.js +1 -1
  277. package/dist/components/helpers/DisplayTransition/DisplayTransition.js +1 -1
  278. package/dist/components/helpers/IconSwitch/IconSwitch.js +1 -1
  279. package/dist/components/layout/Flex.js +1 -1
  280. package/dist/components/layout/Flow.js +1 -1
  281. package/dist/components/layout/Grid.js +1 -1
  282. package/dist/components/layout/Panel.js +1 -1
  283. package/dist/components/layout/Prefix.js +1 -1
  284. package/dist/components/layout/ResizablePanel.js +1 -1
  285. package/dist/components/layout/Space.js +1 -1
  286. package/dist/components/layout/Suffix.js +1 -1
  287. package/dist/components/navigation/NavTabs/NavTabs.d.ts +66 -0
  288. package/dist/components/navigation/NavTabs/NavTabs.js +369 -0
  289. package/dist/components/navigation/NavTabs/NavTabs.js.map +1 -0
  290. package/dist/components/navigation/NavTabs/index.d.ts +3 -0
  291. package/dist/components/navigation/Pagination/Pagination.js +1 -1
  292. package/dist/components/navigation/Pagination/use-pagination.js +1 -1
  293. package/dist/components/navigation/Tabs/BoardDragActiveProvider.js +1 -1
  294. package/dist/components/navigation/Tabs/DraggableTabList.js +1 -1
  295. package/dist/components/navigation/Tabs/TabButton.js +4 -49
  296. package/dist/components/navigation/Tabs/TabButton.js.map +1 -1
  297. package/dist/components/navigation/Tabs/TabDropIndicator.js +1 -1
  298. package/dist/components/navigation/Tabs/TabPanel.js +1 -1
  299. package/dist/components/navigation/Tabs/TabPicker.js +1 -1
  300. package/dist/components/navigation/Tabs/Tabs.js +1 -1
  301. package/dist/components/navigation/Tabs/TabsAction.js +1 -1
  302. package/dist/components/navigation/Tabs/TabsContext.js +1 -1
  303. package/dist/components/navigation/Tabs/popover-placement.js +1 -1
  304. package/dist/components/navigation/Tabs/scroll-tab-into-strip.js +60 -0
  305. package/dist/components/navigation/Tabs/scroll-tab-into-strip.js.map +1 -0
  306. package/dist/components/navigation/Tabs/segmented-styles.js +1 -1
  307. package/dist/components/navigation/Tabs/styled.js +66 -65
  308. package/dist/components/navigation/Tabs/styled.js.map +1 -1
  309. package/dist/components/navigation/Tabs/types.js +1 -1
  310. package/dist/components/navigation/Tabs/use-tab-editing.js +1 -1
  311. package/dist/components/navigation/Tabs/use-tab-indicator.js +15 -6
  312. package/dist/components/navigation/Tabs/use-tab-indicator.js.map +1 -1
  313. package/dist/components/navigation/index.d.ts +3 -1
  314. package/dist/components/organisms/StatsCard/StatsCard.js +1 -1
  315. package/dist/components/other/Calendar/Calendar.js +1 -1
  316. package/dist/components/other/Calendar/CalendarCell.js +1 -1
  317. package/dist/components/other/Calendar/CalendarGrid.js +1 -1
  318. package/dist/components/other/Calendar/CalendarHeader.js +1 -1
  319. package/dist/components/other/Calendar/CalendarPanel.js +1 -1
  320. package/dist/components/other/Calendar/PeriodCalendar.js +1 -1
  321. package/dist/components/other/Calendar/PeriodGrid.js +1 -1
  322. package/dist/components/other/Calendar/RangeCalendar.js +1 -1
  323. package/dist/components/other/Calendar/styled.js +1 -1
  324. package/dist/components/other/CubeLogo/CubeLogo.js +1 -1
  325. package/dist/components/other/NoDataIcon/NoDataIcon.js +1 -1
  326. package/dist/components/overlays/AlertDialog/AlertDialog.js +1 -1
  327. package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
  328. package/dist/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
  329. package/dist/components/overlays/Dialog/Dialog.js +1 -1
  330. package/dist/components/overlays/Dialog/DialogContainer.js +1 -1
  331. package/dist/components/overlays/Dialog/DialogForm.js +1 -1
  332. package/dist/components/overlays/Dialog/DialogTrigger.js +1 -1
  333. package/dist/components/overlays/Dialog/ModernDialogForm.js +1 -1
  334. package/dist/components/overlays/Dialog/context.js +1 -1
  335. package/dist/components/overlays/Dialog/default-button-text.js +1 -1
  336. package/dist/components/overlays/Dialog/use-content-overflow.js +1 -1
  337. package/dist/components/overlays/Dialog/use-dialog-container.js +1 -1
  338. package/dist/components/overlays/Dialog/use-dialog-open-sync.js +1 -1
  339. package/dist/components/overlays/Dialog/use-dismiss-confirmation.js +1 -1
  340. package/dist/components/overlays/Dialog/use-retained-dialog-focus.js +1 -1
  341. package/dist/components/overlays/Dialog/use-retained-dialog-focus.js.map +1 -1
  342. package/dist/components/overlays/Modal/Modal.js +1 -1
  343. package/dist/components/overlays/Modal/OpenTransitionContext.js +1 -1
  344. package/dist/components/overlays/Modal/Overlay.js +1 -1
  345. package/dist/components/overlays/Modal/Popover.js +1 -1
  346. package/dist/components/overlays/Modal/Tray.js +1 -1
  347. package/dist/components/overlays/Modal/Underlay.js +1 -1
  348. package/dist/components/overlays/Modal/modal-containment.js +1 -1
  349. package/dist/components/overlays/Notifications/Notification.js +1 -1
  350. package/dist/components/overlays/Notifications/NotificationAction.js +1 -1
  351. package/dist/components/overlays/Notifications/NotificationCard.js +1 -1
  352. package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
  353. package/dist/components/overlays/Notifications/NotificationItem.js +1 -1
  354. package/dist/components/overlays/Notifications/OverlayContainer.js +1 -1
  355. package/dist/components/overlays/Notifications/OverlayProvider.js +1 -1
  356. package/dist/components/overlays/Notifications/PersistentNotificationsList.js +1 -1
  357. package/dist/components/overlays/Notifications/dismissed-storage.js +1 -1
  358. package/dist/components/overlays/Notifications/format-relative-time.js +1 -1
  359. package/dist/components/overlays/Notifications/index.js +1 -1
  360. package/dist/components/overlays/Notifications/use-notification-state.js +1 -1
  361. package/dist/components/overlays/Notifications/use-notifications.js +1 -1
  362. package/dist/components/overlays/Notifications/use-overlay-timers.js +1 -1
  363. package/dist/components/overlays/Notifications/use-persistent-notifications.js +1 -1
  364. package/dist/components/overlays/Notifications/use-persistent-state.js +1 -1
  365. package/dist/components/overlays/Notifications/use-toast-state.js +1 -1
  366. package/dist/components/overlays/Toast/ToastItem.js +1 -1
  367. package/dist/components/overlays/Toast/index.js +1 -1
  368. package/dist/components/overlays/Toast/useProgressToast.js +1 -1
  369. package/dist/components/overlays/Toast/useToast.js +1 -1
  370. package/dist/components/overlays/Tooltip/Tooltip.js +17 -14
  371. package/dist/components/overlays/Tooltip/Tooltip.js.map +1 -1
  372. package/dist/components/overlays/Tooltip/TooltipProvider.js +1 -1
  373. package/dist/components/overlays/Tooltip/TooltipTrigger.js +1 -1
  374. package/dist/components/overlays/Tooltip/context.js +1 -1
  375. package/dist/components/overlays/Tooltip/split-trigger-props.js +1 -1
  376. package/dist/components/portal/Portal.js +1 -1
  377. package/dist/components/portal/PortalProvider.js +1 -1
  378. package/dist/components/portal/usePortal.js +1 -1
  379. package/dist/components/shared/DraggableCollection.js +1 -1
  380. package/dist/components/shared/InvalidIcon.js +1 -1
  381. package/dist/components/shared/ValidIcon.js +1 -1
  382. package/dist/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
  383. package/dist/components/status/Spin/Cube.js +1 -1
  384. package/dist/components/status/Spin/InternalSpinner.js +1 -1
  385. package/dist/components/status/Spin/Spin.js +1 -1
  386. package/dist/components/status/Spin/SpinsContainer.js +1 -1
  387. package/dist/data/item-themes.js +1 -1
  388. package/dist/data/themes.js +1 -1
  389. package/dist/eslint-plugin/defaults.generated.js +9 -1
  390. package/dist/eslint-plugin/defaults.generated.js.map +1 -1
  391. package/dist/eslint-plugin/index.js +1 -1
  392. package/dist/eslint-plugin/rules/no-redundant-default-prop.js +1 -1
  393. package/dist/i18n/I18nProvider.js +1 -1
  394. package/dist/i18n/createFormatter.js +1 -1
  395. package/dist/i18n/index.js +1 -1
  396. package/dist/i18n/instance.js +1 -1
  397. package/dist/i18n/locales/de-DE/uikit.js +5 -3
  398. package/dist/i18n/locales/en-US/uikit.js +5 -3
  399. package/dist/i18n/locales/en-US/uikit.json.d.ts +8 -4
  400. package/dist/i18n/locales/es-ES/uikit.js +5 -3
  401. package/dist/i18n/locales/es-MX/uikit.js +5 -3
  402. package/dist/i18n/locales/fr-FR/uikit.js +5 -3
  403. package/dist/i18n/locales/it-IT/uikit.js +5 -3
  404. package/dist/i18n/locales/ja-JP/uikit.js +5 -3
  405. package/dist/i18n/locales/nb-NO/uikit.js +5 -3
  406. package/dist/i18n/locales/pt-BR/uikit.js +5 -3
  407. package/dist/i18n/locales/pt-PT/uikit.js +5 -3
  408. package/dist/i18n/locales/sv-SE/uikit.js +5 -3
  409. package/dist/i18n/locales/vi-VN/uikit.js +5 -3
  410. package/dist/i18n/locales.js +1 -1
  411. package/dist/i18n/namespace.js +1 -1
  412. package/dist/i18n/useFormatter.js +1 -1
  413. package/dist/i18n/useI18n.js +1 -1
  414. package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
  415. package/dist/icons/AdjustmentsIcon.js +1 -1
  416. package/dist/icons/AiIcon.js +1 -1
  417. package/dist/icons/AreaChartIcon.js +1 -1
  418. package/dist/icons/ArrowNarrowDownIcon.js +1 -1
  419. package/dist/icons/ArrowNarrowUpIcon.js +1 -1
  420. package/dist/icons/BackwardIcon.js +1 -1
  421. package/dist/icons/BarChartIcon.js +1 -1
  422. package/dist/icons/BellFilledIcon.js +1 -1
  423. package/dist/icons/BellIcon.js +1 -1
  424. package/dist/icons/BooleanIcon.js +1 -1
  425. package/dist/icons/CalendarEditIcon.js +1 -1
  426. package/dist/icons/CalendarIcon.js +1 -1
  427. package/dist/icons/CaretDownIcon.js +1 -1
  428. package/dist/icons/CaretUpIcon.js +1 -1
  429. package/dist/icons/ChartAreaStackedIcon.js +1 -1
  430. package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
  431. package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
  432. package/dist/icons/ChartBarGroupedIcon.js +1 -1
  433. package/dist/icons/ChartBarHorizontalIcon.js +1 -1
  434. package/dist/icons/ChartBarLineIcon.js +1 -1
  435. package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
  436. package/dist/icons/ChartBarStackedIcon.js +1 -1
  437. package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
  438. package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
  439. package/dist/icons/ChartBoxPlot2Icon.js +1 -1
  440. package/dist/icons/ChartBoxPlotIcon.js +1 -1
  441. package/dist/icons/ChartBubbleIcon.js +1 -1
  442. package/dist/icons/ChartDonut2Icon.js +1 -1
  443. package/dist/icons/ChartFunnelIcon.js +1 -1
  444. package/dist/icons/ChartHeatmapIcon.js +1 -1
  445. package/dist/icons/ChartKPIIcon.js +1 -1
  446. package/dist/icons/ChartPie2Icon.js +1 -1
  447. package/dist/icons/ChartScatterIcon.js +1 -1
  448. package/dist/icons/CheckCircleFilledIcon.js +1 -1
  449. package/dist/icons/CheckCircleIcon.js +1 -1
  450. package/dist/icons/CheckIcon.js +1 -1
  451. package/dist/icons/CircleFilledIcon.js +1 -1
  452. package/dist/icons/ClearIcon.js +1 -1
  453. package/dist/icons/CloseCircleFilledIcon.js +1 -1
  454. package/dist/icons/CloseCircleIcon.js +1 -1
  455. package/dist/icons/CloseIcon.js +1 -1
  456. package/dist/icons/CodeIcon.js +1 -1
  457. package/dist/icons/ColumnTotalIcon.js +1 -1
  458. package/dist/icons/CopyIcon.js +1 -1
  459. package/dist/icons/CountIcon.js +1 -1
  460. package/dist/icons/CubeIcon.js +1 -1
  461. package/dist/icons/CubePauseIcon.js +1 -1
  462. package/dist/icons/CubePlayIcon.js +1 -1
  463. package/dist/icons/CurrencyDollarIcon.js +1 -1
  464. package/dist/icons/DangerIcon.js +1 -1
  465. package/dist/icons/DashboardIcon.js +1 -1
  466. package/dist/icons/DatabaseIcon.js +1 -1
  467. package/dist/icons/DecimalDecreaseIcon.js +1 -1
  468. package/dist/icons/DecimalIncreaseIcon.js +1 -1
  469. package/dist/icons/DirectionIcon.js +1 -1
  470. package/dist/icons/DonutIcon.js +1 -1
  471. package/dist/icons/DownIcon.js +1 -1
  472. package/dist/icons/EditIcon.js +1 -1
  473. package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
  474. package/dist/icons/ExclamationCircleIcon.js +1 -1
  475. package/dist/icons/ExclamationIcon.js +1 -1
  476. package/dist/icons/EyeIcon.js +1 -1
  477. package/dist/icons/EyeInvisibleIcon.js +1 -1
  478. package/dist/icons/FilterIcon.js +1 -1
  479. package/dist/icons/FolderFilledIcon.js +1 -1
  480. package/dist/icons/FolderIcon.js +1 -1
  481. package/dist/icons/FolderOpenFilledIcon.js +1 -1
  482. package/dist/icons/FolderOpenIcon.js +1 -1
  483. package/dist/icons/ForwardIcon.js +1 -1
  484. package/dist/icons/GripVerticalIcon.js +1 -1
  485. package/dist/icons/HierarchyIcon.js +1 -1
  486. package/dist/icons/HierarchyOpenIcon.js +1 -1
  487. package/dist/icons/Icon.js +1 -1
  488. package/dist/icons/InfoCircleIcon.js +1 -1
  489. package/dist/icons/InfoIcon.js +1 -1
  490. package/dist/icons/KeyIcon.js +1 -1
  491. package/dist/icons/LeftIcon.js +1 -1
  492. package/dist/icons/LineChartIcon.js +1 -1
  493. package/dist/icons/LoadingIcon.js +1 -1
  494. package/dist/icons/LockFilledIcon.js +1 -1
  495. package/dist/icons/LockIcon.js +1 -1
  496. package/dist/icons/MoreIcon.js +1 -1
  497. package/dist/icons/NotAllowedIcon.js +1 -1
  498. package/dist/icons/Number123Icon.js +1 -1
  499. package/dist/icons/NumberIcon.js +1 -1
  500. package/dist/icons/PauseCircleFilledIcon.js +1 -1
  501. package/dist/icons/PauseCircleIcon.js +1 -1
  502. package/dist/icons/PauseIcon.js +1 -1
  503. package/dist/icons/PercentageIcon.js +1 -1
  504. package/dist/icons/PieChartIcon.js +1 -1
  505. package/dist/icons/PipetteIcon.js +1 -1
  506. package/dist/icons/PlayCircleIcon.js +1 -1
  507. package/dist/icons/PlayIcon.js +1 -1
  508. package/dist/icons/PlusIcon.js +1 -1
  509. package/dist/icons/ProgressBarIcon.js +1 -1
  510. package/dist/icons/ReloadIcon.js +1 -1
  511. package/dist/icons/ReportIcon.js +1 -1
  512. package/dist/icons/ReturnIcon.js +1 -1
  513. package/dist/icons/RightIcon.js +1 -1
  514. package/dist/icons/RowTotalsIcon.js +1 -1
  515. package/dist/icons/SchemeIcon.js +1 -1
  516. package/dist/icons/SearchIcon.js +1 -1
  517. package/dist/icons/SemanticQueryIcon.js +1 -1
  518. package/dist/icons/SettingsIcon.js +1 -1
  519. package/dist/icons/ShieldFilledIcon.js +1 -1
  520. package/dist/icons/ShieldIcon.js +1 -1
  521. package/dist/icons/SlashIcon.js +1 -1
  522. package/dist/icons/SparklesIcon.js +1 -1
  523. package/dist/icons/SqlIcon.js +1 -1
  524. package/dist/icons/StatsIcon.js +1 -1
  525. package/dist/icons/StopIcon.js +1 -1
  526. package/dist/icons/StringIcon.js +1 -1
  527. package/dist/icons/SubtotalsIcon.js +1 -1
  528. package/dist/icons/SwitchIcon.js +1 -1
  529. package/dist/icons/TableIcon.js +1 -1
  530. package/dist/icons/ThumbsDownIcon.js +1 -1
  531. package/dist/icons/ThumbsUpIcon.js +1 -1
  532. package/dist/icons/ThunderboltCrossedIcon.js +1 -1
  533. package/dist/icons/ThunderboltFilledIcon.js +1 -1
  534. package/dist/icons/ThunderboltIcon.js +1 -1
  535. package/dist/icons/TimeIcon.js +1 -1
  536. package/dist/icons/TrashIcon.js +1 -1
  537. package/dist/icons/UnlockIcon.js +1 -1
  538. package/dist/icons/UpIcon.js +1 -1
  539. package/dist/icons/UserGroupIcon.js +1 -1
  540. package/dist/icons/UserIcon.js +1 -1
  541. package/dist/icons/UserLockIcon.js +1 -1
  542. package/dist/icons/ViewIcon.js +1 -1
  543. package/dist/icons/WarningFilledIcon.js +1 -1
  544. package/dist/icons/WarningIcon.js +1 -1
  545. package/dist/icons/wrap-icon.js +1 -1
  546. package/dist/index.d.ts +2 -1
  547. package/dist/index.js +3 -2
  548. package/dist/index.js.map +1 -1
  549. package/dist/probe/canonicalize.js +1 -1
  550. package/dist/probe/css.js +1 -1
  551. package/dist/probe/index.js +1 -1
  552. package/dist/provider.js +1 -1
  553. package/dist/providers/TrackingProvider.js +1 -1
  554. package/dist/providers/navigation-url.js +1 -1
  555. package/dist/providers/navigationAdapter.default.js +1 -1
  556. package/dist/providers/use-navigation.js +1 -1
  557. package/dist/tokens/all-tokens.js +1 -1
  558. package/dist/tokens/base.js +1 -1
  559. package/dist/tokens/color-seed.js +1 -1
  560. package/dist/tokens/color-theme.js +1 -1
  561. package/dist/tokens/colors.js +1 -1
  562. package/dist/tokens/layout.js +1 -1
  563. package/dist/tokens/lazy-styles.js +1 -1
  564. package/dist/tokens/legacy-color.js +1 -1
  565. package/dist/tokens/palette-config.js +1 -1
  566. package/dist/tokens/palette.js +1 -1
  567. package/dist/tokens/resolve.js +1 -1
  568. package/dist/tokens/shadows.js +1 -1
  569. package/dist/tokens/sizes.js +1 -1
  570. package/dist/tokens/spacing.js +1 -1
  571. package/dist/tokens/typography.js +1 -1
  572. package/dist/utils/ResizeSensor.js +1 -1
  573. package/dist/utils/colors.js +1 -1
  574. package/dist/utils/dotize.js +1 -1
  575. package/dist/utils/is-dev-env.js +1 -1
  576. package/dist/utils/layout-scale.js +1 -1
  577. package/dist/utils/modules.js +1 -1
  578. package/dist/utils/promise.js +1 -1
  579. package/dist/utils/raf.js +1 -1
  580. package/dist/utils/random.js +1 -1
  581. package/dist/utils/range.js +1 -1
  582. package/dist/utils/react/RenderCache.js +1 -1
  583. package/dist/utils/react/Slots.js +1 -1
  584. package/dist/utils/react/chain.js +1 -1
  585. package/dist/utils/react/componentBaseProps.js +1 -1
  586. package/dist/utils/react/disabledProps.js +1 -1
  587. package/dist/utils/react/forwardRefWithGenerics.js +1 -1
  588. package/dist/utils/react/index.js +1 -1
  589. package/dist/utils/react/interactions.js +1 -1
  590. package/dist/utils/react/isTextOnly.js +1 -1
  591. package/dist/utils/react/mapProps.js +1 -1
  592. package/dist/utils/react/mergeProps.js +1 -1
  593. package/dist/utils/react/nullableValue.js +1 -1
  594. package/dist/utils/react/overlayKeyPropagation.js +1 -1
  595. package/dist/utils/react/pickBaseCustomizationProps.js +1 -1
  596. package/dist/utils/react/programmaticFocus.js +1 -1
  597. package/dist/utils/react/resolveIcon.js +1 -1
  598. package/dist/utils/react/sharedStore.js +1 -1
  599. package/dist/utils/react/useBufferedValue.js +1 -1
  600. package/dist/utils/react/useCombinedRefs.js +1 -1
  601. package/dist/utils/react/useControlledFocusVisible.js +1 -1
  602. package/dist/utils/react/useEventBus.js +1 -1
  603. package/dist/utils/react/useId.js +1 -1
  604. package/dist/utils/react/useIsDarwin.js +1 -1
  605. package/dist/utils/react/useKeySymbols.js +1 -1
  606. package/dist/utils/react/useLayoutEffect.js +1 -1
  607. package/dist/utils/react/useLocalStorage.js +1 -1
  608. package/dist/utils/react/useMergeStyles.js +1 -1
  609. package/dist/utils/react/useOverlayEscapeGuard.js +1 -1
  610. package/dist/utils/react/useOverlayPosition.js +1 -1
  611. package/dist/utils/react/usePopoverSync.js +1 -1
  612. package/dist/utils/react/useQaProps.js +1 -1
  613. package/dist/utils/react/useScheme.js +1 -1
  614. package/dist/utils/react/useViewportSize.js +1 -1
  615. package/dist/utils/react/wrapNodeIfPlain.js +1 -1
  616. package/dist/utils/selection.js +1 -1
  617. package/dist/utils/styles.js +1 -1
  618. package/dist/utils/tree.js +1 -1
  619. package/dist/utils/warnings.js +1 -1
  620. package/dist/version.js +3 -3
  621. package/harness/dev.harnesspm/patches/glaze-colors.patch.md +4 -0
  622. package/harness/dev.harnesspm/patches/tasty-usage.patch.md +3 -0
  623. package/harness/dev.harnesspm/rules/usage.md +12 -0
  624. package/harness/dev.harnesspm/scripts/colors.mjs +445 -0
  625. package/harness/plugin.json +29 -0
  626. package/package.json +17 -10
  627. package/{docs/components/Block.md → src/components/Block.docs.mdx} +7 -1
  628. package/{docs/components/CollectionItem.md → src/components/CollectionItem.docs.mdx} +12 -8
  629. package/{docs/components/GridProvider.md → src/components/GridProvider.docs.mdx} +4 -0
  630. package/{docs/components/Root.md → src/components/Root.docs.mdx} +6 -2
  631. package/{docs/components/actions/Action.md → src/components/actions/Action/Action.docs.mdx} +7 -1
  632. package/{docs/components/actions/Banner.md → src/components/actions/Banner/Banner.docs.mdx} +17 -3
  633. package/{docs/components/actions/Button.md → src/components/actions/Button/Button.docs.mdx} +19 -4
  634. package/{docs/components/actions/ButtonGroup.md → src/components/actions/ButtonGroup/ButtonGroup.docs.mdx} +6 -2
  635. package/{docs/components/actions/ButtonSplit.md → src/components/actions/ButtonSplit/ButtonSplit.docs.mdx} +18 -3
  636. package/{docs/components/actions/CommandMenu.md → src/components/actions/CommandMenu/CommandMenu.docs.mdx} +29 -17
  637. package/{docs/components/actions/ItemAction.md → src/components/actions/ItemAction/ItemAction.docs.mdx} +8 -1
  638. package/{docs/components/actions/ItemButton.md → src/components/actions/ItemButton/ItemButton.docs.mdx} +18 -9
  639. package/{docs/components/actions/Link.md → src/components/actions/Link/Link.docs.mdx} +11 -3
  640. package/{docs/components/actions/Menu.md → src/components/actions/Menu/Menu.docs.mdx} +27 -15
  641. package/{docs/components/actions/MenuTrigger.md → src/components/actions/Menu/MenuTrigger.docs.mdx} +5 -1
  642. package/{docs/components/actions/SubMenuTrigger.md → src/components/actions/Menu/SubMenuTrigger.docs.mdx} +5 -1
  643. package/{docs/components/actions/use-anchored-menu.md → src/components/actions/use-anchored-menu.docs.mdx} +9 -5
  644. package/{docs/components/actions/use-context-menu.md → src/components/actions/use-context-menu.docs.mdx} +9 -5
  645. package/{docs/components/content/ActiveZone.md → src/components/content/ActiveZone/ActiveZone.docs.mdx} +7 -1
  646. package/{docs/components/content/Alert.md → src/components/content/Alert/Alert.docs.mdx} +14 -1
  647. package/{docs/components/content/Avatar.md → src/components/content/Avatar/Avatar.docs.mdx} +7 -1
  648. package/{docs/components/content/Badge.md → src/components/content/Badge/Badge.docs.mdx} +23 -2
  649. package/{docs/components/content/Card.md → src/components/content/Card/Card.docs.mdx} +7 -1
  650. package/{docs/components/content/Content.md → src/components/content/Content.docs.mdx} +5 -1
  651. package/{docs/components/content/CopyPasteBlock.md → src/components/content/CopyPasteBlock/CopyPasteBlock.docs.mdx} +7 -1
  652. package/{docs/components/content/CopySnippet.md → src/components/content/CopySnippet/CopySnippet.docs.mdx} +7 -1
  653. package/{docs/components/content/Disclosure.md → src/components/content/Disclosure/Disclosure.docs.mdx} +34 -3
  654. package/{docs/components/content/Divider.md → src/components/content/Divider/Divider.docs.mdx} +12 -2
  655. package/{docs/components/content/Footer.md → src/components/content/Footer.docs.mdx} +5 -1
  656. package/{docs/components/content/Header.md → src/components/content/Header.docs.mdx} +5 -1
  657. package/{docs/components/content/HotKeys.md → src/components/content/HotKeys/HotKeys.docs.mdx} +41 -5
  658. package/{docs/components/content/InfoBadge.md → src/components/content/InfoBadge/InfoBadge.docs.mdx} +8 -2
  659. package/{docs/components/content/InlineInput.md → src/components/content/InlineInput/InlineInput.docs.mdx} +36 -3
  660. package/{docs/components/content/Item.md → src/components/content/Item/Item.docs.mdx} +31 -15
  661. package/{docs/components/content/ItemBadge.md → src/components/content/ItemBadge/ItemBadge.docs.mdx} +7 -1
  662. package/{docs/components/content/ItemCard.md → src/components/content/ItemCard/ItemCard.docs.mdx} +19 -6
  663. package/{docs/components/content/Layout.md → src/components/content/Layout/Layout.docs.mdx} +40 -6
  664. package/{docs/components/content/Paragraph.md → src/components/content/Paragraph.docs.mdx} +8 -2
  665. package/{docs/components/content/Placeholder.md → src/components/content/Placeholder/Placeholder.docs.mdx} +7 -1
  666. package/{docs/components/content/PrismCode.md → src/components/content/PrismCode/PrismCode.docs.mdx} +7 -1
  667. package/{docs/components/content/PrismDiffCode.md → src/components/content/PrismDiffCode/PrismDiffCode.docs.mdx} +7 -1
  668. package/{docs/components/content/Result.md → src/components/content/Result/Result.docs.mdx} +35 -4
  669. package/{docs/components/content/Skeleton.md → src/components/content/Skeleton/Skeleton.docs.mdx} +8 -2
  670. package/{docs/components/content/Tag.md → src/components/content/Tag/Tag.docs.mdx} +23 -2
  671. package/{docs/components/content/Text.md → src/components/content/Text.docs.mdx} +7 -1
  672. package/{docs/components/content/TextItem.md → src/components/content/TextItem/TextItem.docs.mdx} +30 -4
  673. package/{docs/components/content/Title.md → src/components/content/Title.docs.mdx} +5 -1
  674. package/{docs/components/content/Tree.md → src/components/content/Tree/Tree.docs.mdx} +28 -1
  675. package/{docs/components/data/DataTable.md → src/components/data/DataTable/DataTable.docs.mdx} +38 -6
  676. package/{docs/components/data/ItemTable.md → src/components/data/ItemTable/ItemTable.docs.mdx} +66 -5
  677. package/{docs/components/fields/Checkbox.md → src/components/fields/Checkbox/Checkbox.docs.mdx} +14 -6
  678. package/{docs/components/fields/ColorInput.md → src/components/fields/ColorInput/ColorInput.docs.mdx} +19 -7
  679. package/{docs/components/fields/ColorPicker.md → src/components/fields/ColorPicker/ColorPicker.docs.mdx} +22 -10
  680. package/{docs/components/fields/ColorSwatch.md → src/components/fields/ColorSwatch/ColorSwatch.docs.mdx} +17 -5
  681. package/{docs/components/fields/ColorSwatchGroup.md → src/components/fields/ColorSwatchGroup/ColorSwatchGroup.docs.mdx} +25 -7
  682. package/{docs/components/fields/ComboBox.md → src/components/fields/ComboBox/ComboBox.docs.mdx} +64 -7
  683. package/{docs/components/fields/CommandTextArea.md → src/components/fields/CommandTextArea/CommandTextArea.docs.mdx} +21 -13
  684. package/{docs/components/fields/DatePicker.md → src/components/fields/DatePicker/DatePicker.docs.mdx} +13 -5
  685. package/{docs/components/fields/PeriodPicker.md → src/components/fields/DatePicker/PeriodPicker.docs.mdx} +24 -5
  686. package/{docs/components/fields/FileInput.md → src/components/fields/FileInput/FileInput.docs.mdx} +16 -6
  687. package/{docs/components/fields/FilterListBox.md → src/components/fields/FilterListBox/FilterListBox.docs.mdx} +46 -10
  688. package/{docs/components/fields/FilterPicker.md → src/components/fields/FilterPicker/FilterPicker.docs.mdx} +57 -19
  689. package/{docs/components/fields/ListBox.md → src/components/fields/ListBox/ListBox.docs.mdx} +61 -11
  690. package/{docs/components/fields/NumberInput.md → src/components/fields/NumberInput/NumberInput.docs.mdx} +15 -7
  691. package/{docs/components/fields/PasswordInput.md → src/components/fields/PasswordInput/PasswordInput.docs.mdx} +15 -7
  692. package/{docs/components/fields/Picker.md → src/components/fields/Picker/Picker.docs.mdx} +53 -21
  693. package/{docs/components/fields/RadioGroup.md → src/components/fields/RadioGroup/RadioGroup.docs.mdx} +25 -15
  694. package/{docs/components/fields/SearchComboBox.md → src/components/fields/SearchComboBox/SearchComboBox.docs.mdx} +33 -14
  695. package/{docs/components/fields/SearchInput.md → src/components/fields/SearchInput/SearchInput.docs.mdx} +17 -7
  696. package/{docs/components/fields/Select.md → src/components/fields/Select/Select.docs.mdx} +55 -20
  697. package/{docs/components/fields/HueSlider.md → src/components/fields/Slider/HueSlider.docs.mdx} +24 -6
  698. package/{docs/components/fields/Slider.md → src/components/fields/Slider/Slider.docs.mdx} +22 -2
  699. package/{docs/components/fields/Switch.md → src/components/fields/Switch/Switch.docs.mdx} +26 -6
  700. package/{docs/components/fields/TagInput.md → src/components/fields/TagInput/TagInput.docs.mdx} +102 -19
  701. package/{docs/components/fields/TextArea.md → src/components/fields/TextArea/TextArea.docs.mdx} +19 -3
  702. package/{docs/components/fields/TextInput.md → src/components/fields/TextInput/TextInput.docs.mdx} +18 -8
  703. package/{docs/components/fields/TextInputMapper.md → src/components/fields/TextInputMapper/TextInputMapper.docs.mdx} +11 -2
  704. package/{docs/components/fields/ToggleGroup.md → src/components/fields/ToggleGroup/ToggleGroup.docs.mdx} +29 -12
  705. package/{docs/components/form/Field.md → src/components/form/Form/Field.docs.mdx} +16 -6
  706. package/{docs/components/form/Form.md → src/components/form/Form/Form.docs.mdx} +19 -6
  707. package/{docs/components/form/FormInstance.md → src/components/form/Form/FormInstance.docs.mdx} +9 -1
  708. package/src/components/form/Form/ModernForm.docs.mdx +6 -0
  709. package/{docs → src/components/form/Form}/modern-form-migration.md +1 -1
  710. package/{docs → src/components/form/Form}/modern-form-typecheck.md +1 -1
  711. package/{docs/components/helpers/DisplayTransition.md → src/components/helpers/DisplayTransition/DisplayTransition.docs.mdx} +15 -0
  712. package/{docs/components/helpers/IconSwitch.md → src/components/helpers/IconSwitch/IconSwitch.docs.mdx} +16 -1
  713. package/{docs/components/layout/Flex.md → src/components/layout/Flex.docs.mdx} +5 -1
  714. package/{docs/components/layout/Flow.md → src/components/layout/Flow.docs.mdx} +5 -1
  715. package/{docs/components/layout/Grid.md → src/components/layout/Grid.docs.mdx} +5 -1
  716. package/{docs/components/layout/Panel.md → src/components/layout/Panel.docs.mdx} +6 -2
  717. package/{docs/components/layout/Prefix.md → src/components/layout/Prefix.docs.mdx} +5 -1
  718. package/{docs/components/layout/ResizablePanel.md → src/components/layout/ResizablePanel.docs.mdx} +9 -2
  719. package/{docs/components/layout/Space.md → src/components/layout/Space.docs.mdx} +5 -1
  720. package/{docs/components/layout/Suffix.md → src/components/layout/Suffix.docs.mdx} +5 -1
  721. package/src/components/navigation/NavTabs/NavTabs.docs.mdx +217 -0
  722. package/{docs/components/navigation/Pagination.md → src/components/navigation/Pagination/Pagination.docs.mdx} +25 -4
  723. package/{docs/components/navigation/Tabs.md → src/components/navigation/Tabs/Tabs.docs.mdx} +94 -10
  724. package/{docs/components/organisms/StatsCard.md → src/components/organisms/StatsCard/StatsCard.docs.mdx} +6 -2
  725. package/{docs/components/other/Calendar.md → src/components/other/Calendar/Calendar.docs.mdx} +23 -5
  726. package/{docs/components/other/CubeLogo.md → src/components/other/CubeLogo/CubeLogo.docs.mdx} +7 -1
  727. package/{docs/components/other/NoDataIcon.md → src/components/other/NoDataIcon/NoDataIcon.docs.mdx} +9 -3
  728. package/{docs/components/overlays/AlertDialog.md → src/components/overlays/AlertDialog/AlertDialog.docs.mdx} +8 -2
  729. package/{docs/components/overlays/Dialog.md → src/components/overlays/Dialog/Dialog.docs.mdx} +11 -3
  730. package/{docs/components/overlays/DialogContainer.md → src/components/overlays/Dialog/DialogContainer.docs.mdx} +12 -5
  731. package/{docs/components/overlays/DialogForm.md → src/components/overlays/Dialog/DialogForm.docs.mdx} +21 -14
  732. package/{docs/components/overlays/DialogTrigger.md → src/components/overlays/Dialog/DialogTrigger.docs.mdx} +10 -5
  733. package/{docs/components/overlays/UseDialogContainer.md → src/components/overlays/Dialog/UseDialogContainer.docs.mdx} +7 -3
  734. package/{docs/components/overlays/Notifications.md → src/components/overlays/Notifications/Notifications.docs.mdx} +29 -6
  735. package/{docs/components/overlays/Toast.md → src/components/overlays/Toast/Toast.docs.mdx} +18 -2
  736. package/{docs/components/overlays/Tooltip.md → src/components/overlays/Tooltip/Tooltip.docs.mdx} +23 -6
  737. package/{docs/components/overlays/TooltipProvider.md → src/components/overlays/Tooltip/TooltipProvider.docs.mdx} +6 -2
  738. package/{docs/components/overlays/TooltipTrigger.md → src/components/overlays/Tooltip/TooltipTrigger.docs.mdx} +6 -2
  739. package/{docs/components/portal/Portal.md → src/components/portal/Portal.docs.mdx} +7 -1
  740. package/{docs/components/status/LoadingAnimation.md → src/components/status/LoadingAnimation/LoadingAnimation.docs.mdx} +8 -2
  741. package/{docs/components/status/Spin.md → src/components/status/Spin/Spin.docs.mdx} +7 -1
  742. package/{docs/BaseProperties.md → src/stories/BaseProperties.docs.mdx} +6 -2
  743. package/{docs/Colors.md → src/stories/Colors.docs.mdx} +23 -1
  744. package/{docs/ComplexLayout.md → src/stories/ComplexLayout.docs.mdx} +34 -1
  745. package/{docs/CreateComponent.md → src/stories/CreateComponent.docs.mdx} +6 -2
  746. package/{docs/FieldProperties.md → src/stories/FieldProperties.docs.mdx} +10 -6
  747. package/{docs/Introduction.md → src/stories/Introduction.docs.mdx} +10 -6
  748. package/{docs/RenderCache.md → src/stories/RenderCache.docs.mdx} +7 -0
  749. package/{docs/SimpleLayout.md → src/stories/SimpleLayout.docs.mdx} +26 -0
  750. package/{docs/Theming.md → src/stories/Theming.docs.mdx} +17 -3
  751. package/{docs/Typography.md → src/stories/Typography.docs.mdx} +15 -0
  752. package/{docs/Usage.md → src/stories/Usage.docs.mdx} +46 -37
  753. package/{docs/Utilities.md → src/stories/Utilities.docs.mdx} +4 -0
  754. package/docs/components/form/ModernForm.md +0 -294
  755. package/docs/glaze/contrast.mdx +0 -751
  756. package/docs/glaze/exporting.mdx +0 -635
  757. package/docs/glaze/getting-started.mdx +0 -487
  758. package/docs/glaze/hdr.mdx +0 -523
  759. package/docs/glaze/methodology.mdx +0 -979
  760. package/docs/glaze/migration.md +0 -542
  761. package/docs/glaze/mixes.mdx +0 -348
  762. package/docs/glaze/okhst.mdx +0 -692
  763. package/docs/glaze/reference/color-definitions.md +0 -552
  764. package/docs/glaze/reference/color-tokens.md +0 -421
  765. package/docs/glaze/reference/configuration.md +0 -532
  766. package/docs/glaze/reference/contrast.md +0 -279
  767. package/docs/glaze/reference/index.md +0 -225
  768. package/docs/glaze/reference/output.md +0 -714
  769. package/docs/glaze/reference/palette.md +0 -435
  770. package/docs/glaze/reference/theme.md +0 -332
  771. package/docs/glaze/reference/utilities.md +0 -646
  772. package/docs/glaze/schemes.mdx +0 -644
  773. package/docs/glaze/shadows-and-glows.mdx +0 -550
  774. package/docs/tasty/README.md +0 -42
  775. package/docs/tasty/adoption.md +0 -331
  776. package/docs/tasty/ai-agents.md +0 -259
  777. package/docs/tasty/comparison.md +0 -449
  778. package/docs/tasty/configuration.md +0 -957
  779. package/docs/tasty/debug.md +0 -333
  780. package/docs/tasty/design-system.md +0 -569
  781. package/docs/tasty/dsl.md +0 -1231
  782. package/docs/tasty/getting-started.md +0 -297
  783. package/docs/tasty/injector.md +0 -635
  784. package/docs/tasty/methodology.md +0 -673
  785. package/docs/tasty/migration-v3.md +0 -285
  786. package/docs/tasty/pipeline.md +0 -768
  787. package/docs/tasty/plugins.md +0 -333
  788. package/docs/tasty/react-api.md +0 -746
  789. package/docs/tasty/runtime-benchmarks.md +0 -388
  790. package/docs/tasty/ssr.md +0 -636
  791. package/docs/tasty/styles.md +0 -781
  792. package/docs/tasty/tasty-static.md +0 -700
  793. /package/{docs → src/components/form/Form}/modern-form-guide.md +0 -0
@@ -1,635 +0,0 @@
1
- # Tasty Style Injector
2
-
3
- A high-performance CSS-in-JS solution that powers the Tasty design system with efficient style injection, automatic cleanup, and first-class SSR support.
4
-
5
- ---
6
-
7
- ## Overview
8
-
9
- The Style Injector is the core engine behind Tasty's styling system, providing:
10
-
11
- - **Hash-based deduplication** - Identical CSS gets the same className
12
- - **DOM-driven lifetime** - Styles are collected once nothing renders them
13
- - **Selector assembly** - Prepends the doubled `.tX.tX` class and root prefix to the pipeline's selector fragments (sub-element and `&` nesting is flattened earlier, by the pipeline)
14
- - **At-rule injection** - First-class `@keyframes`, `@property`, `@font-face`, `@counter-style`, and `@function` support
15
- - **Smart cleanup** - CSS rules batched cleanup, keyframes disposed immediately
16
- - **SSR support** - Deterministic class names shared with `ServerStyleCollector`, and hydration of server-rendered classes
17
- - **Multiple roots** - Works with Document and ShadowRoot
18
- - **Non-stacking cleanups** - Prevents timeout accumulation for better performance
19
-
20
- > **Note:** This is internal infrastructure that powers Tasty components. Most developers will interact with the higher-level `tasty()` API instead.
21
-
22
- ---
23
-
24
- ## Architecture
25
-
26
- ```
27
- ┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
28
- │ tasty() │────│ Style Injector │────│ Sheet Manager │
29
- │ components │ │ │ │ │
30
- └─────────────────┘ └──────────────────┘ └─────────────────┘
31
- │ │ │
32
- │ │ │
33
- ▼ ▼ ▼
34
- ┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
35
- │ Style Results │ │ Keyframes Manager│ │ Root Registry │
36
- │ (CSS rules) │ │ │ │ │
37
- └─────────────────┘ └──────────────────┘ └─────────────────┘
38
- │ │
39
- │ │
40
- ▼ ▼
41
- ┌─────────────────┐ ┌─────────────────┐
42
- │ Hash Cache │ │ <style> elements│
43
- │ Deduplication │ │ CSSStyleSheet │
44
- └─────────────────┘ └─────────────────┘
45
- ```
46
-
47
- ---
48
-
49
- ## Core API
50
-
51
- ### `inject(rules, options?): InjectResult`
52
-
53
- Injects CSS rules and returns a className with dispose function.
54
-
55
- ```typescript
56
- import { inject } from '@tenphi/tasty';
57
-
58
- // Rules flagged needsClassName get the generated class prepended (doubled)
59
- const result = inject([{
60
- selector: '',
61
- declarations: 'color: red; padding: 10px;',
62
- needsClassName: true,
63
- }]);
64
-
65
- console.log(result.className); // 'th8n0uh' — `t` + base36 hash of the rules
66
- // Injected: .th8n0uh.th8n0uh { color: red; padding: 10px; }
67
-
68
- // Release the pin; the class becomes collectible once nothing renders it
69
- result.dispose();
70
- ```
71
-
72
- `inject()` **pins** the class it returns, and `gc()` never evicts a pinned class
73
- — that is what `dispose()` releases. Pass `{ pin: false }` when the caller keeps
74
- no handle and the DOM is the only record that the class is in use; `dispose()`
75
- is then a no-op. The render path (`tasty()` / `computeStyles()`) injects this
76
- way, because a hook-free render has no unmount signal to dispose on.
77
-
78
- ### `injectGlobal(rules, options?): { dispose: () => void }`
79
-
80
- Injects global styles that don't reserve tasty class names.
81
-
82
- ```typescript
83
- // Global styles - for body, resets, etc.
84
- const globalResult = injectGlobal([
85
- {
86
- selector: 'body',
87
- declarations: 'margin: 0; font-family: Arial;',
88
- },
89
- {
90
- selector: '.header',
91
- declarations: 'background: blue; color: white;',
92
- atRules: ['@media (min-width: 768px)'],
93
- }
94
- ]);
95
-
96
- // Only returns dispose function - no className needed for global styles
97
- globalResult.dispose();
98
- ```
99
-
100
- ### `injectRawCSS(css, options?): { dispose: () => void }`
101
-
102
- Injects raw CSS text directly without parsing. This is a low-overhead method for injecting CSS that doesn't need tasty processing.
103
-
104
- ```typescript
105
- import { injectRawCSS } from '@tenphi/tasty';
106
-
107
- // Inject raw CSS
108
- const { dispose } = injectRawCSS(`
109
- body {
110
- margin: 0;
111
- padding: 0;
112
- font-family: sans-serif;
113
- }
114
-
115
- .my-class {
116
- color: red;
117
- }
118
- `);
119
-
120
- // Later, remove the injected CSS
121
- dispose();
122
- ```
123
-
124
- ### `useRawCSS(css, options?)` or `useRawCSS(factory, deps, options?)`
125
-
126
- Inject raw CSS without parsing. Hook-free — works in client components, SSR, and React Server Components.
127
-
128
- Supports two overloads:
129
- - **Static CSS**: `useRawCSS(cssString, options?)` — content-based deduplication
130
- - **Factory function**: `useRawCSS(() => cssString, deps, options?)` — factory called on every invocation, dedup handled internally
131
-
132
- Use the `id` option for update tracking — when the CSS changes for the same id, the previous injection is replaced:
133
-
134
- ```tsx
135
- import { useRawCSS } from '@tenphi/tasty';
136
-
137
- // Static CSS
138
- function GlobalReset() {
139
- useRawCSS(`
140
- body { margin: 0; padding: 0; }
141
- `);
142
- return null;
143
- }
144
-
145
- // Dynamic CSS with factory function and update tracking
146
- function ThemeStyles({ theme }: { theme: 'dark' | 'light' }) {
147
- useRawCSS(() => `
148
- body {
149
- margin: 0;
150
- background: ${theme === 'dark' ? '#000' : '#fff'};
151
- color: ${theme === 'dark' ? '#fff' : '#000'};
152
- }
153
- `, [theme], { id: 'theme-body' });
154
-
155
- return null;
156
- }
157
- ```
158
-
159
- ### `createInjector(config?): StyleInjector`
160
-
161
- Creates an isolated injector instance with custom configuration.
162
-
163
- ```typescript
164
- import { createInjector } from '@tenphi/tasty';
165
-
166
- // Create isolated instance for testing
167
- const testInjector = createInjector({
168
- devMode: true,
169
- forceTextInjection: true,
170
- });
171
-
172
- const result = testInjector.inject(rules);
173
- ```
174
-
175
- ### `keyframes(steps, nameOrOptions?): KeyframesResult`
176
-
177
- Injects CSS keyframes with automatic deduplication.
178
-
179
- ```typescript
180
- // Generated name (tk0, tk1, … — namePrefix + 'k' + counter)
181
- const fadeIn = keyframes({
182
- from: { opacity: 0 },
183
- to: { opacity: 1 },
184
- });
185
-
186
- // Custom name
187
- const slideIn = keyframes({
188
- '0%': { transform: 'translateX(-100%)' },
189
- '100%': { transform: 'translateX(0)' },
190
- }, 'slideInAnimation');
191
-
192
- // Use in tasty styles (recommended)
193
- const AnimatedBox = tasty({
194
- styles: {
195
- animation: `${fadeIn} 300ms ease-in`,
196
- },
197
- });
198
-
199
- // Or use with injectGlobal for fixed selectors
200
- injectGlobal([{
201
- selector: '.my-animated-class',
202
- declarations: `animation: ${slideIn} 500ms ease-out;`
203
- }]);
204
-
205
- // Cleanup keyframes (if needed)
206
- fadeIn.dispose(); // Immediate keyframes deletion from DOM
207
- slideIn.dispose(); // Immediate keyframes deletion from DOM
208
- ```
209
-
210
- ### `configure(config): void`
211
-
212
- Configures the Tasty style system. `configure()` is optional, but if you use it, it must be called **before** any styles are generated (before first render).
213
-
214
- ```typescript
215
- import { configure } from '@tenphi/tasty';
216
-
217
- configure({
218
- devMode: true, // Enable development features (auto-detected)
219
- maxRulesPerSheet: 8192, // Cap rules per stylesheet (default: 8192)
220
- forceTextInjection: false, // Force textContent insertion (auto-detected for tests)
221
- nonce: 'csp-nonce', // CSP nonce for security
222
- gc: { // Garbage collection for unused styles
223
- touchInterval: 1000, // Touch events between GC cycles (default: 1000)
224
- capacity: 1000, // Max unused styles to retain (default: 1000)
225
- },
226
- states: { // Global predefined states for advanced state mapping
227
- '@mobile': '@media(w < 768px)',
228
- '@dark': '@root(schema=dark)',
229
- },
230
- });
231
- ```
232
-
233
- **Auto-Detection Features:**
234
- - `devMode`: Automatically enabled in development environments (detected via `isDevEnv()`)
235
- - `forceTextInjection`: Automatically enabled in test environments (Jest, Vitest, Mocha, happy-dom, jsdom)
236
-
237
- **Injection Modes:**
238
-
239
- Each sheet picks its write mode once, when it is created, and keeps it for its
240
- lifetime:
241
-
242
- | Mode | How rules are written | How rules are removed |
243
- |---|---|---|
244
- | CSSOM (default) | `styleSheet.insertRule(rule, index)` | `styleSheet.deleteRule(index)` |
245
- | Text (`forceTextInjection`, or when `styleElement.sheet` is unavailable) | appended to `<style>.textContent` | rule texts are tracked per sheet and the element's text is rebuilt without them |
246
- | Adopted (ShadowRoot with constructable sheets) | `insertRule` on the constructable sheet | `deleteRule` on the constructable sheet |
247
-
248
- Text mode cannot edit a single rule in place the way CSSOM can, so the sheet
249
- keeps the inserted rule texts in index order and rewrites the element on delete.
250
- Dispose, ref-counted cleanup and GC therefore behave identically in every mode.
251
-
252
- **Configuration Notes:**
253
- - Most options have sensible defaults and auto-detection
254
- - `configure()` is optional - the injector works with defaults
255
- - **Configuration is locked after styles are generated** - calling `configure()` after first render will emit a warning and be ignored
256
- - `gc.touchInterval`: Number of renders between sweeps. When the counter reaches this value, a sweep is scheduled via `requestIdleCallback`; without idle callbacks nothing is collected automatically.
257
- - `gc.grace`: How long a class is left alone after collection first notices nothing is carrying it, in milliseconds (default `10000`).
258
- - Automatic sweeps are opt-in: they run only when `configure({ gc })` is set (`gc: {}` enables them with these defaults). Without it nothing is collected until you call `gc()` or `cleanup()`.
259
-
260
- **What a sweep does.** Everything the injector holds falls into one of five bands, and only the last is ever deleted:
261
-
262
- | Band | | Deleted |
263
- |---|---|---|
264
- | 1 | **Rendered** — some element carries the class right now | never |
265
- | 2 | **Not ours** — queued for a batched write, pre-allocated, or server-rendered | never |
266
- | 3 | **Hot** — nothing carries it, but that was noticed less than `grace` ago | never |
267
- | 4 | **Cached** — cold, but within `capacity` when ordered by when it went cold | never |
268
- | 5 | Everything else | on every sweep |
269
-
270
- `gc({ force: true })` and `cleanup()` take bands 4 and 5 together, ignoring capacity. Band 3 is spared even then: an explicit cleanup is still no reason to take rules from a render that has not committed yet.
271
-
272
- `tasty()` components cache the class names they computed, so a re-render with the same styles skips the pipeline. Whenever `gc()`, `cleanup()` or `destroy()` deletes rules, those caches are dropped too, so a component whose CSS was collected injects it again on its next render.
273
-
274
- > **Why band 3 exists.** Rendering is not commit-aware: a render can resolve a class and commit it a little later, and in between nothing on the page carries it. From outside React that is indistinguishable from a class that is finished, so collection does not try to tell them apart — it leaves alone anything only just noticed to be cold. A render would have to stay pending for the whole window to lose its rules, and it gets them back on its next render.
275
- >
276
- > The clock starts when a sweep *notices*, not when the element actually left — nothing observes that moment, so starting it at the sighting is what gives every class the same full window however long ago it went.
277
- >
278
- > This is also why collection costs nothing to run: the timestamps are written by the sweep's own DOM scan, so rendering tracks nothing per class.
279
- - `gc.capacity`: Maximum number of unused styles (not in the DOM, not pinned) to retain. When exceeded, the least recently used are evicted first. Rendered and pinned styles don't count against this limit.
280
-
281
- ---
282
-
283
- ### At-rule injection
284
-
285
- Beyond ordinary rules, the injector has a dedicated entry point per at-rule. All of them deduplicate by name and are **permanent** — there is no ref-counting or dispose, because a rule that other CSS references by name cannot be safely removed while any of it might still apply.
286
-
287
- | Function | Injects | Notes |
288
- |---|---|---|
289
- | `keyframes(steps, nameOrOptions?)` | `@keyframes` | The exception: ref-counted and disposed immediately when unused. Returns the injected name, which may differ from the requested one. |
290
- | `property(name, options?)` | `@property` | `name` accepts `$name`, `#name`, or `--name`. Usually unnecessary — types are inferred automatically unless `configure({ autoPropertyTypes: false })`. |
291
- | `fontFace(family, descriptors, options?)` | `@font-face` | Deduplicated by family **and** descriptor content, so several faces of one family coexist. |
292
- | `counterStyle(name, descriptors, options?)` | `@counter-style` | |
293
- | `func(name, definition, options?)` | `@function` | `name` accepts `$$name`, `$name`, or `--name`. Abbreviated because `function` is a reserved word. |
294
-
295
- Every one of these takes an optional `root` (a `Document` or `ShadowRoot`).
296
-
297
- `counterStyle()` and `func()` also accept `weak: true`, which registers the rule **without** overriding an existing one of the same name. `configure()` uses it for global `@counter-style` and `@function` definitions so a component-local definition always wins over the global default, regardless of which is injected first.
298
-
299
- ```ts
300
- import { counterStyle, fontFace, func, property } from '@tenphi/tasty';
301
-
302
- property('$card-elevation', { syntax: '<number>', initialValue: '0' });
303
- fontFace('Inter', { src: 'url(/inter.woff2)', fontWeight: '400 700' });
304
- counterStyle('dashes', { system: 'cyclic', symbols: '"—"', suffix: ' ' });
305
- func('$$negative', { args: ['$value'], result: '(-1 * $value)' });
306
- ```
307
-
308
- ---
309
-
310
- ## Advanced Features
311
-
312
- ### Style Result Format
313
-
314
- The injector works with `StyleResult` objects from the pipeline (`renderStyles`):
315
-
316
- ```typescript
317
- interface StyleResult {
318
- selector: string; // full selector, or a fragment when needsClassName
319
- declarations: string; // CSS declarations
320
- atRules?: string[]; // @media, @container, @supports, …
321
- needsClassName?: boolean; // prepend the generated `.tX.tX` (OR'd fragments joined with '|||')
322
- rootPrefix?: string; // root-state prefix placed before the class
323
- startingStyle?: boolean; // wrap declarations in @starting-style
324
- }
325
-
326
- // Example StyleResult
327
- const styleRule: StyleResult = {
328
- selector: ':where([data-hovered])',
329
- declarations: 'padding: 8px 16px; background: blue; color: white;',
330
- atRules: ['@media (min-width: 768px)'],
331
- needsClassName: true,
332
- };
333
- ```
334
-
335
- ### Batched Injection
336
-
337
- `configure({ batchInjection: true })` queues every sheet write — component
338
- rules, global rules, raw CSS and at-rules — into one FIFO and applies them
339
- together, so the document is style-invalidated once per flush instead of once per
340
- component. `<TastyBatchProvider>` flushes in `useInsertionEffect`, before any
341
- layout effect, so a queued write can never be observed by a measurement. See
342
- [Batched injection](configuration.md#batched-injection) for the modes and the
343
- ordering guarantee. `flushStyles()` applies pending writes on demand; every read
344
- API here calls it for you.
345
-
346
- ### Deduplication & Performance
347
-
348
- ```typescript
349
- const rule = { selector: '', declarations: 'padding: 8px; color: red;', needsClassName: true };
350
-
351
- const button1 = inject([rule], { cacheKey: 'button' });
352
- const button2 = inject([rule], { cacheKey: 'button' });
353
-
354
- // One class, one copy of the CSS
355
- console.log(button1.className === button2.className); // true
356
- ```
357
-
358
- Without `cacheKey` the class name is a hash of the rules, so injecting the same rules again reuses the class the same way: the rules are written once, and each call adds a pin that its own `dispose()` releases.
359
-
360
- ### Pinning
361
-
362
- ```typescript
363
- // Multiple callers using the same styles
364
- const comp1 = inject([commonStyle], { cacheKey: 'common' });
365
- const comp2 = inject([commonStyle], { cacheKey: 'common' });
366
- const comp3 = inject([commonStyle], { cacheKey: 'common' });
367
-
368
- // Style is pinned while any caller holds a handle
369
- comp1.dispose(); // pins: 3 → 2
370
- comp2.dispose(); // pins: 2 → 1
371
- comp3.dispose(); // pins: 1 → 0, now up to the DOM and gc()
372
-
373
- // Unpinned does not mean deleted: the rule stays cached and is reused instantly
374
- // by the next inject(). gc() decides when it actually goes.
375
- ```
376
-
377
- Pinning covers callers that hold a handle. Styles that come from rendering are
378
- never pinned — see `{ pin: false }` under
379
- [`inject()`](#injectrules-options-injectresult) — so what keeps them alive is
380
- being in the DOM, and nothing else.
381
-
382
- ### Garbage Collection
383
-
384
- ```typescript
385
- import { configure, gc } from '@tenphi/tasty';
386
-
387
- // Keyframes: Disposed immediately when refCount = 0 (safer for global scope)
388
- // CSS rules: Tracked by touch count and cleaned up via gc()
389
- //
390
- // A CSS rule is collectible when no element carries its class AND nobody
391
- // pinned it with inject().
392
-
393
- configure({
394
- gc: {
395
- touchInterval: 1000, // Schedule GC every 1000 touches
396
- capacity: 1000, // Max unused styles to retain
397
- },
398
- });
399
-
400
- // Manual GC (synchronous, returns number of swept styles):
401
- gc();
402
-
403
- // Force-remove ALL unused styles (e.g. on route change or test teardown):
404
- gc({ force: true });
405
-
406
- // cleanup() is the same thing:
407
- cleanup();
408
-
409
- // Every `touchInterval` renders, a sweep is scheduled in idle time. It scans
410
- // the DOM for the classes actually on the page and sorts everything the
411
- // injector holds into five bands — only the last one is deleted. See below.
412
-
413
- // Benefits:
414
- // - Activity-proportional: busy apps trigger GC more often
415
- // - DOM-safe: styles currently in the DOM are never evicted
416
- // - Oldest-first: least recently used styles are evicted first
417
- // - Keyframes: Immediate cleanup prevents global namespace pollution
418
- // - Unused styles stay cached until evicted, so re-rendering them is a cache hit
419
- ```
420
-
421
- ### Shadow DOM Support
422
-
423
- ```typescript
424
- // Works with Shadow DOM
425
- const shadowRoot = document.createElement('div').attachShadow({ mode: 'open' });
426
-
427
- const shadowStyles = inject([{
428
- selector: '.shadow-component',
429
- declarations: 'color: purple;'
430
- }], { root: shadowRoot });
431
-
432
- // Keyframes in Shadow DOM
433
- const shadowAnimation = keyframes({
434
- from: { opacity: 0 },
435
- to: { opacity: 1 }
436
- }, { root: shadowRoot, name: 'shadowFade' });
437
- ```
438
-
439
- ---
440
-
441
- ## SSR & Testing
442
-
443
- ### Server-Side Rendering
444
-
445
- `getCSSText()` reads the injector's stylesheets, so it needs a DOM; on a server it throws. Collect server CSS with `ServerStyleCollector` from `@tenphi/tasty/ssr` (`collector.getCSS()`) — see [SSR](./ssr.md).
446
-
447
- ```typescript
448
- import { getCSSText, getCSSTextForNode } from '@tenphi/tasty';
449
- import { render } from '@testing-library/react';
450
-
451
- const cssText = getCSSText(); // everything the injector holds (browser / test DOM)
452
-
453
- const { container } = render(<MyComponent />);
454
- const componentCSS = getCSSTextForNode(container); // only the CSS this subtree uses
455
- ```
456
-
457
- ### Test Environment Detection
458
-
459
- ```typescript
460
- // Automatically detected test environments:
461
- // - NODE_ENV === 'test'
462
- // - Jest globals (jest, describe, it, expect)
463
- // - jsdom / HappyDOM user agent
464
- // - Vitest globals (vitest)
465
- // - Mocha globals (mocha)
466
-
467
- import { configure, isTestEnvironment, resetConfig } from '@tenphi/tasty';
468
-
469
- const isTest = isTestEnvironment();
470
-
471
- // Reset config between tests to allow reconfiguration
472
- beforeEach(() => {
473
- resetConfig();
474
- configure({
475
- forceTextInjection: isTest, // More reliable in test environments
476
- devMode: true, // Always enable dev features in tests
477
- });
478
- });
479
- ```
480
-
481
- ### Memory Management in Tests
482
-
483
- ```typescript
484
- // Clean up between tests
485
- afterEach(() => {
486
- cleanup(); // Force cleanup of unused styles
487
- });
488
-
489
- // Full cleanup after test suite
490
- afterAll(() => {
491
- destroy(); // Destroy all stylesheets and reset state
492
- });
493
- ```
494
-
495
- ---
496
-
497
- ## Development Features
498
-
499
- ### Performance Metrics
500
-
501
- When `devMode` is enabled, the injector tracks comprehensive metrics:
502
-
503
- ```typescript
504
- import { configure, injector } from '@tenphi/tasty';
505
-
506
- configure({ devMode: true });
507
-
508
- // Access metrics through the global injector
509
- const metrics = injector.instance.getMetrics();
510
-
511
- console.log({
512
- cacheHits: metrics.hits, // Successful cache hits
513
- cacheMisses: metrics.misses, // New styles injected
514
- unusedHits: metrics.unusedHits, // Styles currently eligible for eviction (scans the DOM)
515
- bulkCleanups: metrics.bulkCleanups, // Number of bulk cleanup operations
516
- stylesCleanedUp: metrics.stylesCleanedUp, // Total styles removed in bulk cleanups
517
- totalInsertions: metrics.totalInsertions, // Lifetime insertions
518
- totalUnused: metrics.totalUnused, // Times a pinned style lost its last pin
519
- startTime: metrics.startTime, // Metrics collection start timestamp
520
- cleanupHistory: metrics.cleanupHistory, // Detailed cleanup operation history
521
- });
522
- ```
523
-
524
- ### Debug Information
525
-
526
- ```typescript
527
- import { tastyDebug } from '@tenphi/tasty';
528
-
529
- const { activeClasses, unusedClasses, hotClasses, totalRuleCount } =
530
- tastyDebug.summary({ raw: true });
531
- ```
532
-
533
- See [Debug Utilities](./debug.md).
534
-
535
- ### Cleanup History
536
-
537
- ```typescript
538
- // Track cleanup operations over time
539
- const metrics = injector.instance.getMetrics();
540
-
541
- metrics.cleanupHistory.forEach(cleanup => {
542
- console.log({
543
- timestamp: new Date(cleanup.timestamp),
544
- classesDeleted: cleanup.classesDeleted,
545
- rulesDeleted: cleanup.rulesDeleted,
546
- cssSize: cleanup.cssSize, // Total CSS size removed (bytes)
547
- });
548
- });
549
- ```
550
-
551
- ---
552
-
553
- ## Performance Optimizations
554
-
555
- ### Best Practices
556
-
557
- ```typescript
558
- // ✅ Reuse styles - identical CSS gets deduplicated
559
- const buttonBase = 'padding: 8px 16px; border-radius: 4px;';
560
-
561
- // ✅ Avoid frequent disposal and re-injection
562
- // Let the injector handle cleanup
563
-
564
- // ✅ Use bulk operations for global styles
565
- injectGlobal([
566
- { selector: 'body', declarations: 'margin: 0;' },
567
- { selector: '*', declarations: 'box-sizing: border-box;' },
568
- { selector: '.container', declarations: 'max-width: 1200px;' }
569
- ]);
570
-
571
- // ✅ Configure GC for your app (BEFORE first render!)
572
- import { configure } from '@tenphi/tasty';
573
-
574
- configure({
575
- gc: {
576
- touchInterval: 1000, // Schedule GC every 1000 style touches
577
- capacity: 1000, // Max unused styles to retain
578
- },
579
- });
580
- ```
581
-
582
- ### Memory Management
583
-
584
- ```typescript
585
- // The injector automatically manages memory through:
586
-
587
- // 1. Hash-based deduplication - same CSS = same className
588
- // 2. DOM-driven lifetime - a rendered class is never evicted
589
- // 3. Pinning - inject() callers hold their classes until they dispose
590
- // 4. Immediate keyframes cleanup - disposed instantly when refCount = 0
591
- // 5. Touch-count GC - unused CSS rules are evicted oldest-first when over capacity
592
-
593
- // Manual cleanup is rarely needed but available:
594
- cleanup(); // Remove every rule that is neither rendered nor pinned
595
- destroy(); // Nuclear option: remove all stylesheets and reset
596
- ```
597
-
598
- ---
599
-
600
- ## Integration with Tasty
601
-
602
- The Style Injector is seamlessly integrated with the higher-level Tasty API:
603
-
604
- ```jsx
605
- // High-level tasty() API
606
- const StyledButton = tasty({
607
- styles: {
608
- padding: '2x 4x',
609
- fill: '#purple',
610
- color: '#white',
611
- }
612
- });
613
-
614
- // Internally uses the injector:
615
- // 1. Styles are parsed into StyleResult objects
616
- // 2. inject() is called with the parsed results, unpinned
617
- // 3. Component gets the returned className
618
- // 4. gc() reclaims the class once no element carries it
619
- ```
620
-
621
- For most development, you'll use the [React API](./react-api.md) rather than the injector directly. The injector provides the high-performance foundation that makes Tasty's declarative styling possible.
622
-
623
- ---
624
-
625
- ## When to Use Direct Injection
626
-
627
- Direct injector usage is recommended for:
628
-
629
- - **Custom CSS-in-JS libraries** built on top of Tasty
630
- - **Global styles** that don't fit the component model
631
- - **Third-party integration** where you need low-level CSS control
632
- - **Performance-critical scenarios** where you need direct control
633
- - **Testing utilities** that need to inject or extract CSS
634
-
635
- For regular component styling, prefer the [`tasty()` API](./react-api.md) which provides a more developer-friendly interface.