@cube-dev/ui-kit 0.190.2 → 0.190.3

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 (594) hide show
  1. package/dist/CHANGELOG.md +6 -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/Button.js +1 -1
  19. package/dist/components/actions/ButtonGroup/ButtonGroup.js +1 -1
  20. package/dist/components/actions/ButtonSplit/ButtonSplit.js +1 -1
  21. package/dist/components/actions/ButtonSplit/context.js +1 -1
  22. package/dist/components/actions/CommandMenu/CommandMenu.js +1 -1
  23. package/dist/components/actions/CommandMenu/styled.js +1 -1
  24. package/dist/components/actions/ItemAction/ItemAction.js +1 -1
  25. package/dist/components/actions/ItemActionContext.js +1 -1
  26. package/dist/components/actions/ItemActionsWrapper.js +1 -1
  27. package/dist/components/actions/ItemButton/ItemButton.js +1 -1
  28. package/dist/components/actions/Link/Link.js +1 -1
  29. package/dist/components/actions/Menu/Menu.js +1 -1
  30. package/dist/components/actions/Menu/MenuItem.js +1 -1
  31. package/dist/components/actions/Menu/MenuSection.js +1 -1
  32. package/dist/components/actions/Menu/MenuTrigger.js +1 -1
  33. package/dist/components/actions/Menu/SubMenuTrigger.js +1 -1
  34. package/dist/components/actions/Menu/SubmenuTriggerContext.js +1 -1
  35. package/dist/components/actions/Menu/context.js +1 -1
  36. package/dist/components/actions/Menu/styled.js +1 -1
  37. package/dist/components/actions/actions-run.js +1 -1
  38. package/dist/components/actions/index.js +1 -1
  39. package/dist/components/actions/use-action.js +1 -1
  40. package/dist/components/actions/use-anchored-menu.js +1 -1
  41. package/dist/components/actions/use-context-menu.js +1 -1
  42. package/dist/components/content/ActiveZone/ActiveZone.js +1 -1
  43. package/dist/components/content/Alert/Alert.js +1 -1
  44. package/dist/components/content/Alert/use-alert.js +1 -1
  45. package/dist/components/content/Avatar/Avatar.js +1 -1
  46. package/dist/components/content/Badge/Badge.js +1 -1
  47. package/dist/components/content/Card/Card.js +1 -1
  48. package/dist/components/content/Content.js +1 -1
  49. package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +1 -1
  50. package/dist/components/content/CopySnippet/CopySnippet.js +1 -1
  51. package/dist/components/content/Disclosure/Disclosure.js +1 -1
  52. package/dist/components/content/Divider.js +1 -1
  53. package/dist/components/content/Footer.js +1 -1
  54. package/dist/components/content/Header.js +1 -1
  55. package/dist/components/content/HotKeys/HotKeys.js +1 -1
  56. package/dist/components/content/InfoBadge/InfoBadge.js +1 -1
  57. package/dist/components/content/InlineInput/InlineInput.js +1 -1
  58. package/dist/components/content/Item/Item.js +391 -338
  59. package/dist/components/content/Item/Item.js.map +1 -1
  60. package/dist/components/content/ItemBadge/ItemBadge.js +1 -1
  61. package/dist/components/content/ItemCard/ItemCard.js +1 -1
  62. package/dist/components/content/Layout/GridLayout.js +1 -1
  63. package/dist/components/content/Layout/Layout.js +1 -1
  64. package/dist/components/content/Layout/LayoutBlock.js +1 -1
  65. package/dist/components/content/Layout/LayoutCenter.js +1 -1
  66. package/dist/components/content/Layout/LayoutContainer.js +1 -1
  67. package/dist/components/content/Layout/LayoutContent.js +1 -1
  68. package/dist/components/content/Layout/LayoutContext.js +1 -1
  69. package/dist/components/content/Layout/LayoutFlex.js +1 -1
  70. package/dist/components/content/Layout/LayoutFooter.js +1 -1
  71. package/dist/components/content/Layout/LayoutGrid.js +1 -1
  72. package/dist/components/content/Layout/LayoutHeader.js +1 -1
  73. package/dist/components/content/Layout/LayoutPane.js +1 -1
  74. package/dist/components/content/Layout/LayoutPanel.js +1 -1
  75. package/dist/components/content/Layout/LayoutPanelHeader.js +1 -1
  76. package/dist/components/content/Layout/LayoutToolbar.js +1 -1
  77. package/dist/components/content/Layout/hooks/useTinyScrollbar.js +1 -1
  78. package/dist/components/content/Layout/index.js +1 -1
  79. package/dist/components/content/Layout/utils.js +1 -1
  80. package/dist/components/content/Paragraph.js +1 -1
  81. package/dist/components/content/Placeholder/Placeholder.js +1 -1
  82. package/dist/components/content/PrismCode/PrismCode.js +1 -1
  83. package/dist/components/content/PrismCode/prismSetup.js +1 -1
  84. package/dist/components/content/PrismDiffCode/PrismDiffCode.js +1 -1
  85. package/dist/components/content/Result/Result.js +1 -1
  86. package/dist/components/content/Skeleton/Skeleton.js +1 -1
  87. package/dist/components/content/Tag/Tag.js +1 -1
  88. package/dist/components/content/Text.js +1 -1
  89. package/dist/components/content/TextItem/TextItem.js +1 -1
  90. package/dist/components/content/Title.js +1 -1
  91. package/dist/components/content/Tree/Tree.js +1 -1
  92. package/dist/components/content/Tree/TreeNode.js +1 -1
  93. package/dist/components/content/Tree/styled.js +1 -1
  94. package/dist/components/content/Tree/tree-index.js +1 -1
  95. package/dist/components/content/Tree/use-checkbox-tree.js +1 -1
  96. package/dist/components/content/Tree/use-load-data.js +1 -1
  97. package/dist/components/content/highlightText.js +1 -1
  98. package/dist/components/content/use-auto-tooltip.js +1 -1
  99. package/dist/components/data/DataTable/DataTable.js +1 -1
  100. package/dist/components/data/ItemTable/ItemTable.js +439 -352
  101. package/dist/components/data/ItemTable/ItemTable.js.map +1 -1
  102. package/dist/components/data/ItemTable/ItemTableBulkBar.js +1 -1
  103. package/dist/components/data/ItemTable/ItemTableDragPreview.js +1 -1
  104. package/dist/components/data/ItemTable/ItemTableFooter.js +1 -1
  105. package/dist/components/data/ItemTable/ItemTableToolbar.js +1 -1
  106. package/dist/components/data/ItemTable/use-item-table-column-widths.js +97 -0
  107. package/dist/components/data/ItemTable/use-item-table-column-widths.js.map +1 -0
  108. package/dist/components/data/ItemTable/use-item-table-drag-drop.js +144 -0
  109. package/dist/components/data/ItemTable/use-item-table-drag-drop.js.map +1 -0
  110. package/dist/components/data/ItemTable/use-item-table-pagination.js +143 -0
  111. package/dist/components/data/ItemTable/use-item-table-pagination.js.map +1 -0
  112. package/dist/components/data/ItemTable/use-item-table-selection.js +141 -0
  113. package/dist/components/data/ItemTable/use-item-table-selection.js.map +1 -0
  114. package/dist/components/data/ItemTable/use-item-table-sort.js +135 -0
  115. package/dist/components/data/ItemTable/use-item-table-sort.js.map +1 -0
  116. package/dist/components/data/ItemTable/use-item-table-tree-model.js +107 -0
  117. package/dist/components/data/ItemTable/use-item-table-tree-model.js.map +1 -0
  118. package/dist/components/data/TableBase/ColumnResizer.js +1 -1
  119. package/dist/components/data/TableBase/RowCollection.js +1 -1
  120. package/dist/components/data/TableBase/TableHeaderCell.js +1 -1
  121. package/dist/components/data/TableBase/TableRow.js +1 -1
  122. package/dist/components/data/TableBase/TableView.js +96 -297
  123. package/dist/components/data/TableBase/TableView.js.map +1 -1
  124. package/dist/components/data/TableBase/TreeGridTable.js +142 -0
  125. package/dist/components/data/TableBase/TreeGridTable.js.map +1 -0
  126. package/dist/components/data/TableBase/column-header.js +94 -0
  127. package/dist/components/data/TableBase/column-header.js.map +1 -0
  128. package/dist/components/data/TableBase/column-menu.js +1 -1
  129. package/dist/components/data/TableBase/column-styles.js +1 -1
  130. package/dist/components/data/TableBase/column-tint.js +1 -1
  131. package/dist/components/data/TableBase/row-menu.js +1 -1
  132. package/dist/components/data/TableBase/styled.js +3 -2
  133. package/dist/components/data/TableBase/styled.js.map +1 -1
  134. package/dist/components/data/TableBase/table-tree.js +1 -1
  135. package/dist/components/data/TableBase/types.js +1 -1
  136. package/dist/components/data/TableBase/use-cell-selection.js +0 -0
  137. package/dist/components/data/TableBase/use-column-menu.js +166 -0
  138. package/dist/components/data/TableBase/use-column-menu.js.map +1 -0
  139. package/dist/components/data/TableBase/use-column-order.js +1 -1
  140. package/dist/components/data/TableBase/use-container-width.js +1 -1
  141. package/dist/components/data/TableBase/use-row-move-animation.js +1 -1
  142. package/dist/components/data/TableBase/use-scrollability.js +1 -1
  143. package/dist/components/data/TableBase/use-table-columns.js +1 -1
  144. package/dist/components/data/TableBase/use-table-search.js +1 -1
  145. package/dist/components/data/TableBase/use-table-selection.js +1 -1
  146. package/dist/components/data/TableBase/use-table-sort.js +1 -1
  147. package/dist/components/data/TableBase/use-table-sorts.js +1 -1
  148. package/dist/components/data/TableBase/use-table-storage.js +1 -1
  149. package/dist/components/data/TableBase/use-table-tree-state.js +1 -1
  150. package/dist/components/fields/Checkbox/Checkbox.js +1 -1
  151. package/dist/components/fields/Checkbox/CheckboxGroup.js +1 -1
  152. package/dist/components/fields/Checkbox/context.js +1 -1
  153. package/dist/components/fields/ColorInput/ColorInput.js +1 -1
  154. package/dist/components/fields/ColorPicker/ColorPicker.js +1 -1
  155. package/dist/components/fields/ColorSwatch/ColorSwatch.js +1 -1
  156. package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js +1 -1
  157. package/dist/components/fields/ComboBox/ComboBox.js +1 -1
  158. package/dist/components/fields/CommandTextArea/CommandTextArea.js +1 -1
  159. package/dist/components/fields/CommandTextArea/caretPosition.js +1 -1
  160. package/dist/components/fields/CommandTextArea/useCaretAnchor.js +1 -1
  161. package/dist/components/fields/DatePicker/DateInput.js +1 -1
  162. package/dist/components/fields/DatePicker/DateInputBase.js +1 -1
  163. package/dist/components/fields/DatePicker/DatePicker.js +1 -1
  164. package/dist/components/fields/DatePicker/DatePickerButton.js +1 -1
  165. package/dist/components/fields/DatePicker/DatePickerElement.js +1 -1
  166. package/dist/components/fields/DatePicker/DatePickerInput.js +1 -1
  167. package/dist/components/fields/DatePicker/DatePickerSegment.js +1 -1
  168. package/dist/components/fields/DatePicker/DateRangePicker.js +1 -1
  169. package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +1 -1
  170. package/dist/components/fields/DatePicker/MonthPicker.js +1 -1
  171. package/dist/components/fields/DatePicker/PeriodPicker.js +1 -1
  172. package/dist/components/fields/DatePicker/QuarterPicker.js +1 -1
  173. package/dist/components/fields/DatePicker/TimeInput.js +1 -1
  174. package/dist/components/fields/DatePicker/WeekPicker.js +1 -1
  175. package/dist/components/fields/DatePicker/YearPicker.js +1 -1
  176. package/dist/components/fields/DatePicker/parseDate.js +1 -1
  177. package/dist/components/fields/DatePicker/period.js +1 -1
  178. package/dist/components/fields/DatePicker/props.js +1 -1
  179. package/dist/components/fields/DatePicker/utils.js +1 -1
  180. package/dist/components/fields/FileInput/FileInput.js +1 -1
  181. package/dist/components/fields/FilterListBox/FilterListBox.js +1 -1
  182. package/dist/components/fields/FilterPicker/FilterPicker.js +1 -1
  183. package/dist/components/fields/Input/Input.js +1 -1
  184. package/dist/components/fields/ListBox/DraggableListBox.js +1 -1
  185. package/dist/components/fields/ListBox/ListBox.js +1 -1
  186. package/dist/components/fields/ListBox/optionId.js +1 -1
  187. package/dist/components/fields/ListBoxPopover/ListBoxPopover.js +1 -1
  188. package/dist/components/fields/ListBoxPopover/listNavigation.js +1 -1
  189. package/dist/components/fields/ListBoxPopover/useCompositeFocus.js +1 -1
  190. package/dist/components/fields/NumberInput/NumberInput.js +1 -1
  191. package/dist/components/fields/NumberInput/StepButton.js +1 -1
  192. package/dist/components/fields/PasswordInput/PasswordInput.js +1 -1
  193. package/dist/components/fields/Picker/Picker.js +1 -1
  194. package/dist/components/fields/RadioGroup/Radio.js +1 -1
  195. package/dist/components/fields/RadioGroup/RadioGroup.js +1 -1
  196. package/dist/components/fields/RadioGroup/context.js +1 -1
  197. package/dist/components/fields/SearchComboBox/SearchComboBox.js +1 -1
  198. package/dist/components/fields/SearchInput/SearchInput.js +1 -1
  199. package/dist/components/fields/Select/Select.js +1 -1
  200. package/dist/components/fields/Slider/Gradation.js +1 -1
  201. package/dist/components/fields/Slider/HueSlider.js +1 -1
  202. package/dist/components/fields/Slider/RangeSlider.js +1 -1
  203. package/dist/components/fields/Slider/Slider.js +1 -1
  204. package/dist/components/fields/Slider/SliderBase.js +1 -1
  205. package/dist/components/fields/Slider/SliderThumb.js +1 -1
  206. package/dist/components/fields/Slider/SliderTrack.js +1 -1
  207. package/dist/components/fields/Slider/elements.js +1 -1
  208. package/dist/components/fields/Slider/index.js +1 -1
  209. package/dist/components/fields/Switch/Switch.js +1 -1
  210. package/dist/components/fields/TagInput/TagInput.js +768 -723
  211. package/dist/components/fields/TagInput/TagInput.js.map +1 -1
  212. package/dist/components/fields/TagInput/TagList.js +1 -1
  213. package/dist/components/fields/TagInput/useActiveOption.js +122 -0
  214. package/dist/components/fields/TagInput/useActiveOption.js.map +1 -0
  215. package/dist/components/fields/TagInput/useTagError.js +95 -0
  216. package/dist/components/fields/TagInput/useTagError.js.map +1 -0
  217. package/dist/components/fields/TextArea/TextArea.js +1 -1
  218. package/dist/components/fields/TextInput/TextInput.js +1 -1
  219. package/dist/components/fields/TextInput/TextInputBase.js +1 -1
  220. package/dist/components/fields/TextInput/useAutoSizeTextArea.js +1 -1
  221. package/dist/components/fields/TextInputMapper/TextInputMapper.js +1 -1
  222. package/dist/components/fields/TriggerActions.js +1 -1
  223. package/dist/components/fields/color/ColorPanel.js +1 -1
  224. package/dist/components/fields/color/channels.js +1 -1
  225. package/dist/components/fields/color/color.js +1 -1
  226. package/dist/components/fields/color/context.js +1 -1
  227. package/dist/components/form/FieldWrapper/FieldWrapper.js +1 -1
  228. package/dist/components/form/Form/Field.js +1 -1
  229. package/dist/components/form/Form/Form.js +1 -1
  230. package/dist/components/form/Form/ModernFormRoot.js +1 -1
  231. package/dist/components/form/Form/ResetButton/ResetButton.js +1 -1
  232. package/dist/components/form/Form/SubmitButton/SubmitButton.js +1 -1
  233. package/dist/components/form/Form/SubmitError.js +1 -1
  234. package/dist/components/form/Form/backend.js +1 -1
  235. package/dist/components/form/Form/index.js +1 -1
  236. package/dist/components/form/Form/modern/actions.js +1 -1
  237. package/dist/components/form/Form/modern/context.js +1 -1
  238. package/dist/components/form/Form/modern/controller.js +1 -1
  239. package/dist/components/form/Form/modern/field-binding.js +1 -1
  240. package/dist/components/form/Form/modern/field.js +1 -1
  241. package/dist/components/form/Form/modern/react.js +1 -1
  242. package/dist/components/form/Form/modern/store.js +1 -1
  243. package/dist/components/form/Form/modern/validation.js +1 -1
  244. package/dist/components/form/Form/modern/values.js +1 -1
  245. package/dist/components/form/Form/reset-unbound-controls.js +1 -1
  246. package/dist/components/form/Form/use-field/use-field-binding.js +1 -1
  247. package/dist/components/form/Form/use-field/use-field-props.js +1 -1
  248. package/dist/components/form/Form/use-field/use-field.js +1 -1
  249. package/dist/components/form/Form/use-form.js +1 -1
  250. package/dist/components/form/Form/validation.js +1 -1
  251. package/dist/components/form/Label.js +1 -1
  252. package/dist/components/form/legacy-tooltip.js +1 -1
  253. package/dist/components/form/validation/ValidationIndicator.js +1 -1
  254. package/dist/components/form/validation/resolve-validation-props.js +1 -1
  255. package/dist/components/form/validation/use-validation-props.js +1 -1
  256. package/dist/components/form/wrapper.js +1 -1
  257. package/dist/components/helpers/DisplayTransition/DisplayTransition.js +1 -1
  258. package/dist/components/helpers/IconSwitch/IconSwitch.js +1 -1
  259. package/dist/components/layout/Board/Board.js +1 -1
  260. package/dist/components/layout/Board/BoardProvider.js +1 -1
  261. package/dist/components/layout/Board/BoardResponsive.js +1 -1
  262. package/dist/components/layout/Board/Widget.js +1 -1
  263. package/dist/components/layout/Board/WidgetHost.js +1 -1
  264. package/dist/components/layout/Board/board-context.js +1 -1
  265. package/dist/components/layout/Board/board-store.js +1 -1
  266. package/dist/components/layout/Board/grid-core/calculate.js +1 -1
  267. package/dist/components/layout/Board/grid-core/collision-modes.js +1 -1
  268. package/dist/components/layout/Board/grid-core/collision.js +1 -1
  269. package/dist/components/layout/Board/grid-core/compactors.js +1 -1
  270. package/dist/components/layout/Board/grid-core/constraints.js +1 -1
  271. package/dist/components/layout/Board/grid-core/group-move.js +1 -1
  272. package/dist/components/layout/Board/grid-core/layout.js +1 -1
  273. package/dist/components/layout/Board/grid-core/placement.js +1 -1
  274. package/dist/components/layout/Board/grid-core/sort.js +1 -1
  275. package/dist/components/layout/Board/index.js +1 -1
  276. package/dist/components/layout/Board/responsive-utils.js +1 -1
  277. package/dist/components/layout/Board/use-board-layout.js +1 -1
  278. package/dist/components/layout/Board/use-board-registry.js +1 -1
  279. package/dist/components/layout/Board/use-board-select-modifier-key.js +1 -1
  280. package/dist/components/layout/Board/use-board-selection.js +1 -1
  281. package/dist/components/layout/Flex.js +1 -1
  282. package/dist/components/layout/Flow.js +1 -1
  283. package/dist/components/layout/Grid.js +1 -1
  284. package/dist/components/layout/Panel.js +1 -1
  285. package/dist/components/layout/Prefix.js +1 -1
  286. package/dist/components/layout/ResizablePanel.js +1 -1
  287. package/dist/components/layout/Space.js +1 -1
  288. package/dist/components/layout/Suffix.js +1 -1
  289. package/dist/components/navigation/Pagination/Pagination.js +1 -1
  290. package/dist/components/navigation/Pagination/use-pagination.js +1 -1
  291. package/dist/components/navigation/Tabs/DraggableTabList.js +1 -1
  292. package/dist/components/navigation/Tabs/TabButton.js +1 -1
  293. package/dist/components/navigation/Tabs/TabDropIndicator.js +1 -1
  294. package/dist/components/navigation/Tabs/TabPanel.js +1 -1
  295. package/dist/components/navigation/Tabs/TabPicker.js +1 -1
  296. package/dist/components/navigation/Tabs/Tabs.js +1 -1
  297. package/dist/components/navigation/Tabs/TabsAction.js +1 -1
  298. package/dist/components/navigation/Tabs/TabsContext.js +1 -1
  299. package/dist/components/navigation/Tabs/popover-placement.js +1 -1
  300. package/dist/components/navigation/Tabs/styled.js +1 -1
  301. package/dist/components/navigation/Tabs/types.js +1 -1
  302. package/dist/components/navigation/Tabs/use-tab-editing.js +1 -1
  303. package/dist/components/navigation/Tabs/use-tab-indicator.js +1 -1
  304. package/dist/components/organisms/StatsCard/StatsCard.js +1 -1
  305. package/dist/components/other/Calendar/Calendar.js +1 -1
  306. package/dist/components/other/Calendar/CalendarCell.js +1 -1
  307. package/dist/components/other/Calendar/CalendarGrid.js +1 -1
  308. package/dist/components/other/Calendar/CalendarHeader.js +1 -1
  309. package/dist/components/other/Calendar/CalendarPanel.js +1 -1
  310. package/dist/components/other/Calendar/PeriodCalendar.js +1 -1
  311. package/dist/components/other/Calendar/PeriodGrid.js +1 -1
  312. package/dist/components/other/Calendar/RangeCalendar.js +1 -1
  313. package/dist/components/other/Calendar/styled.js +1 -1
  314. package/dist/components/other/CubeLogo/CubeLogo.js +1 -1
  315. package/dist/components/other/NoDataIcon/NoDataIcon.js +1 -1
  316. package/dist/components/overlays/AlertDialog/AlertDialog.js +1 -1
  317. package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
  318. package/dist/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
  319. package/dist/components/overlays/Dialog/Dialog.js +1 -1
  320. package/dist/components/overlays/Dialog/DialogContainer.js +1 -1
  321. package/dist/components/overlays/Dialog/DialogForm.js +1 -1
  322. package/dist/components/overlays/Dialog/DialogTrigger.js +1 -1
  323. package/dist/components/overlays/Dialog/ModernDialogForm.js +1 -1
  324. package/dist/components/overlays/Dialog/context.js +1 -1
  325. package/dist/components/overlays/Dialog/default-button-text.js +1 -1
  326. package/dist/components/overlays/Dialog/use-content-overflow.js +1 -1
  327. package/dist/components/overlays/Dialog/use-dialog-container.js +1 -1
  328. package/dist/components/overlays/Modal/Modal.js +1 -1
  329. package/dist/components/overlays/Modal/OpenTransitionContext.js +1 -1
  330. package/dist/components/overlays/Modal/Overlay.js +1 -1
  331. package/dist/components/overlays/Modal/Popover.js +1 -1
  332. package/dist/components/overlays/Modal/Tray.js +1 -1
  333. package/dist/components/overlays/Modal/Underlay.js +1 -1
  334. package/dist/components/overlays/Notifications/Notification.js +1 -1
  335. package/dist/components/overlays/Notifications/NotificationAction.js +1 -1
  336. package/dist/components/overlays/Notifications/NotificationCard.js +1 -1
  337. package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
  338. package/dist/components/overlays/Notifications/NotificationItem.js +1 -1
  339. package/dist/components/overlays/Notifications/OverlayContainer.js +1 -1
  340. package/dist/components/overlays/Notifications/OverlayProvider.js +1 -1
  341. package/dist/components/overlays/Notifications/PersistentNotificationsList.js +1 -1
  342. package/dist/components/overlays/Notifications/dismissed-storage.js +1 -1
  343. package/dist/components/overlays/Notifications/format-relative-time.js +1 -1
  344. package/dist/components/overlays/Notifications/index.js +1 -1
  345. package/dist/components/overlays/Notifications/use-notification-state.js +1 -1
  346. package/dist/components/overlays/Notifications/use-notifications.js +1 -1
  347. package/dist/components/overlays/Notifications/use-overlay-timers.js +1 -1
  348. package/dist/components/overlays/Notifications/use-persistent-notifications.js +1 -1
  349. package/dist/components/overlays/Notifications/use-persistent-state.js +1 -1
  350. package/dist/components/overlays/Notifications/use-toast-state.js +1 -1
  351. package/dist/components/overlays/Toast/ToastItem.js +1 -1
  352. package/dist/components/overlays/Toast/index.js +1 -1
  353. package/dist/components/overlays/Toast/useProgressToast.js +1 -1
  354. package/dist/components/overlays/Toast/useToast.js +1 -1
  355. package/dist/components/overlays/Tooltip/Tooltip.js +1 -1
  356. package/dist/components/overlays/Tooltip/TooltipProvider.js +1 -1
  357. package/dist/components/overlays/Tooltip/TooltipTrigger.js +1 -1
  358. package/dist/components/overlays/Tooltip/context.js +1 -1
  359. package/dist/components/overlays/Tooltip/split-trigger-props.js +1 -1
  360. package/dist/components/portal/Portal.js +1 -1
  361. package/dist/components/portal/PortalProvider.js +1 -1
  362. package/dist/components/portal/usePortal.js +1 -1
  363. package/dist/components/shared/DraggableCollection.js +1 -1
  364. package/dist/components/shared/InvalidIcon.js +1 -1
  365. package/dist/components/shared/ValidIcon.js +1 -1
  366. package/dist/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
  367. package/dist/components/status/Spin/Cube.js +1 -1
  368. package/dist/components/status/Spin/InternalSpinner.js +1 -1
  369. package/dist/components/status/Spin/Spin.js +1 -1
  370. package/dist/components/status/Spin/SpinsContainer.js +1 -1
  371. package/dist/data/item-themes.js +1 -1
  372. package/dist/data/themes.js +1 -1
  373. package/dist/eslint-plugin/defaults.generated.js +1 -1
  374. package/dist/eslint-plugin/index.js +1 -1
  375. package/dist/eslint-plugin/rules/no-redundant-default-prop.js +1 -1
  376. package/dist/i18n/I18nProvider.js +1 -1
  377. package/dist/i18n/createFormatter.js +1 -1
  378. package/dist/i18n/index.js +1 -1
  379. package/dist/i18n/instance.js +1 -1
  380. package/dist/i18n/locales/de-DE/uikit.js +1 -1
  381. package/dist/i18n/locales/en-US/uikit.js +1 -1
  382. package/dist/i18n/locales/es-ES/uikit.js +1 -1
  383. package/dist/i18n/locales/es-MX/uikit.js +1 -1
  384. package/dist/i18n/locales/fr-FR/uikit.js +1 -1
  385. package/dist/i18n/locales/it-IT/uikit.js +1 -1
  386. package/dist/i18n/locales/ja-JP/uikit.js +1 -1
  387. package/dist/i18n/locales/nb-NO/uikit.js +1 -1
  388. package/dist/i18n/locales/pt-BR/uikit.js +1 -1
  389. package/dist/i18n/locales/pt-PT/uikit.js +1 -1
  390. package/dist/i18n/locales/sv-SE/uikit.js +1 -1
  391. package/dist/i18n/locales/vi-VN/uikit.js +1 -1
  392. package/dist/i18n/locales.js +1 -1
  393. package/dist/i18n/useFormatter.js +1 -1
  394. package/dist/i18n/useI18n.js +1 -1
  395. package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
  396. package/dist/icons/AdjustmentsIcon.js +1 -1
  397. package/dist/icons/AiIcon.js +1 -1
  398. package/dist/icons/AreaChartIcon.js +1 -1
  399. package/dist/icons/ArrowNarrowDownIcon.js +1 -1
  400. package/dist/icons/ArrowNarrowUpIcon.js +1 -1
  401. package/dist/icons/BackwardIcon.js +1 -1
  402. package/dist/icons/BarChartIcon.js +1 -1
  403. package/dist/icons/BellFilledIcon.js +1 -1
  404. package/dist/icons/BellIcon.js +1 -1
  405. package/dist/icons/BooleanIcon.js +1 -1
  406. package/dist/icons/CalendarEditIcon.js +1 -1
  407. package/dist/icons/CalendarIcon.js +1 -1
  408. package/dist/icons/CaretDownIcon.js +1 -1
  409. package/dist/icons/CaretUpIcon.js +1 -1
  410. package/dist/icons/ChartAreaStackedIcon.js +1 -1
  411. package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
  412. package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
  413. package/dist/icons/ChartBarGroupedIcon.js +1 -1
  414. package/dist/icons/ChartBarHorizontalIcon.js +1 -1
  415. package/dist/icons/ChartBarLineIcon.js +1 -1
  416. package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
  417. package/dist/icons/ChartBarStackedIcon.js +1 -1
  418. package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
  419. package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
  420. package/dist/icons/ChartBoxPlot2Icon.js +1 -1
  421. package/dist/icons/ChartBoxPlotIcon.js +1 -1
  422. package/dist/icons/ChartBubbleIcon.js +1 -1
  423. package/dist/icons/ChartDonut2Icon.js +1 -1
  424. package/dist/icons/ChartFunnelIcon.js +1 -1
  425. package/dist/icons/ChartHeatmapIcon.js +1 -1
  426. package/dist/icons/ChartKPIIcon.js +1 -1
  427. package/dist/icons/ChartPie2Icon.js +1 -1
  428. package/dist/icons/ChartScatterIcon.js +1 -1
  429. package/dist/icons/CheckCircleFilledIcon.js +1 -1
  430. package/dist/icons/CheckCircleIcon.js +1 -1
  431. package/dist/icons/CheckIcon.js +1 -1
  432. package/dist/icons/CircleFilledIcon.js +1 -1
  433. package/dist/icons/ClearIcon.js +1 -1
  434. package/dist/icons/CloseCircleFilledIcon.js +1 -1
  435. package/dist/icons/CloseCircleIcon.js +1 -1
  436. package/dist/icons/CloseIcon.js +1 -1
  437. package/dist/icons/CodeIcon.js +1 -1
  438. package/dist/icons/ColumnTotalIcon.js +1 -1
  439. package/dist/icons/CopyIcon.js +1 -1
  440. package/dist/icons/CountIcon.js +1 -1
  441. package/dist/icons/CubeIcon.js +1 -1
  442. package/dist/icons/CubePauseIcon.js +1 -1
  443. package/dist/icons/CubePlayIcon.js +1 -1
  444. package/dist/icons/CurrencyDollarIcon.js +1 -1
  445. package/dist/icons/DangerIcon.js +1 -1
  446. package/dist/icons/DashboardIcon.js +1 -1
  447. package/dist/icons/DatabaseIcon.js +1 -1
  448. package/dist/icons/DecimalDecreaseIcon.js +1 -1
  449. package/dist/icons/DecimalIncreaseIcon.js +1 -1
  450. package/dist/icons/DirectionIcon.js +1 -1
  451. package/dist/icons/DonutIcon.js +1 -1
  452. package/dist/icons/DownIcon.js +1 -1
  453. package/dist/icons/EditIcon.js +1 -1
  454. package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
  455. package/dist/icons/ExclamationCircleIcon.js +1 -1
  456. package/dist/icons/ExclamationIcon.js +1 -1
  457. package/dist/icons/EyeIcon.js +1 -1
  458. package/dist/icons/EyeInvisibleIcon.js +1 -1
  459. package/dist/icons/FilterIcon.js +1 -1
  460. package/dist/icons/FolderFilledIcon.js +1 -1
  461. package/dist/icons/FolderIcon.js +1 -1
  462. package/dist/icons/FolderOpenFilledIcon.js +1 -1
  463. package/dist/icons/FolderOpenIcon.js +1 -1
  464. package/dist/icons/ForwardIcon.js +1 -1
  465. package/dist/icons/GripVerticalIcon.js +1 -1
  466. package/dist/icons/HierarchyIcon.js +1 -1
  467. package/dist/icons/HierarchyOpenIcon.js +1 -1
  468. package/dist/icons/Icon.js +1 -1
  469. package/dist/icons/InfoCircleIcon.js +1 -1
  470. package/dist/icons/InfoIcon.js +1 -1
  471. package/dist/icons/KeyIcon.js +1 -1
  472. package/dist/icons/LeftIcon.js +1 -1
  473. package/dist/icons/LineChartIcon.js +1 -1
  474. package/dist/icons/LoadingIcon.js +1 -1
  475. package/dist/icons/LockFilledIcon.js +1 -1
  476. package/dist/icons/LockIcon.js +1 -1
  477. package/dist/icons/MoreIcon.js +1 -1
  478. package/dist/icons/NotAllowedIcon.js +1 -1
  479. package/dist/icons/Number123Icon.js +1 -1
  480. package/dist/icons/NumberIcon.js +1 -1
  481. package/dist/icons/PauseCircleFilledIcon.js +1 -1
  482. package/dist/icons/PauseCircleIcon.js +1 -1
  483. package/dist/icons/PauseIcon.js +1 -1
  484. package/dist/icons/PercentageIcon.js +1 -1
  485. package/dist/icons/PieChartIcon.js +1 -1
  486. package/dist/icons/PipetteIcon.js +1 -1
  487. package/dist/icons/PlayCircleIcon.js +1 -1
  488. package/dist/icons/PlayIcon.js +1 -1
  489. package/dist/icons/PlusIcon.js +1 -1
  490. package/dist/icons/ProgressBarIcon.js +1 -1
  491. package/dist/icons/ReloadIcon.js +1 -1
  492. package/dist/icons/ReportIcon.js +1 -1
  493. package/dist/icons/ReturnIcon.js +1 -1
  494. package/dist/icons/RightIcon.js +1 -1
  495. package/dist/icons/RowTotalsIcon.js +1 -1
  496. package/dist/icons/SchemeIcon.js +1 -1
  497. package/dist/icons/SearchIcon.js +1 -1
  498. package/dist/icons/SemanticQueryIcon.js +1 -1
  499. package/dist/icons/SettingsIcon.js +1 -1
  500. package/dist/icons/ShieldFilledIcon.js +1 -1
  501. package/dist/icons/ShieldIcon.js +1 -1
  502. package/dist/icons/SlashIcon.js +1 -1
  503. package/dist/icons/SparklesIcon.js +1 -1
  504. package/dist/icons/SqlIcon.js +1 -1
  505. package/dist/icons/StatsIcon.js +1 -1
  506. package/dist/icons/StopIcon.js +1 -1
  507. package/dist/icons/StringIcon.js +1 -1
  508. package/dist/icons/SubtotalsIcon.js +1 -1
  509. package/dist/icons/SwitchIcon.js +1 -1
  510. package/dist/icons/TableIcon.js +1 -1
  511. package/dist/icons/ThumbsDownIcon.js +1 -1
  512. package/dist/icons/ThumbsUpIcon.js +1 -1
  513. package/dist/icons/ThunderboltCrossedIcon.js +1 -1
  514. package/dist/icons/ThunderboltFilledIcon.js +1 -1
  515. package/dist/icons/ThunderboltIcon.js +1 -1
  516. package/dist/icons/TimeIcon.js +1 -1
  517. package/dist/icons/TrashIcon.js +1 -1
  518. package/dist/icons/UnlockIcon.js +1 -1
  519. package/dist/icons/UpIcon.js +1 -1
  520. package/dist/icons/UserGroupIcon.js +1 -1
  521. package/dist/icons/UserIcon.js +1 -1
  522. package/dist/icons/UserLockIcon.js +1 -1
  523. package/dist/icons/ViewIcon.js +1 -1
  524. package/dist/icons/WarningFilledIcon.js +1 -1
  525. package/dist/icons/WarningIcon.js +1 -1
  526. package/dist/icons/wrap-icon.js +1 -1
  527. package/dist/index.js +1 -1
  528. package/dist/probe/canonicalize.js +1 -1
  529. package/dist/probe/css.js +1 -1
  530. package/dist/probe/index.js +1 -1
  531. package/dist/provider.js +1 -1
  532. package/dist/providers/TrackingProvider.js +1 -1
  533. package/dist/providers/navigationAdapter.default.js +1 -1
  534. package/dist/tokens/all-tokens.js +1 -1
  535. package/dist/tokens/base.js +1 -1
  536. package/dist/tokens/color-seed.js +1 -1
  537. package/dist/tokens/color-theme.js +1 -1
  538. package/dist/tokens/colors.js +1 -1
  539. package/dist/tokens/layout.js +1 -1
  540. package/dist/tokens/lazy-styles.js +1 -1
  541. package/dist/tokens/legacy-color.js +1 -1
  542. package/dist/tokens/palette-config.js +1 -1
  543. package/dist/tokens/palette.js +1 -1
  544. package/dist/tokens/resolve.js +1 -1
  545. package/dist/tokens/shadows.js +1 -1
  546. package/dist/tokens/sizes.js +1 -1
  547. package/dist/tokens/spacing.js +1 -1
  548. package/dist/tokens/typography.js +1 -1
  549. package/dist/utils/ResizeSensor.js +1 -1
  550. package/dist/utils/colors.js +1 -1
  551. package/dist/utils/dotize.js +1 -1
  552. package/dist/utils/is-dev-env.js +1 -1
  553. package/dist/utils/modules.js +1 -1
  554. package/dist/utils/promise.js +1 -1
  555. package/dist/utils/raf.js +1 -1
  556. package/dist/utils/random.js +1 -1
  557. package/dist/utils/range.js +1 -1
  558. package/dist/utils/react/RenderCache.js +1 -1
  559. package/dist/utils/react/Slots.js +1 -1
  560. package/dist/utils/react/chain.js +1 -1
  561. package/dist/utils/react/disabledProps.js +1 -1
  562. package/dist/utils/react/escapePropagation.js +1 -1
  563. package/dist/utils/react/forwardRefWithGenerics.js +1 -1
  564. package/dist/utils/react/index.js +1 -1
  565. package/dist/utils/react/interactions.js +1 -1
  566. package/dist/utils/react/isTextOnly.js +1 -1
  567. package/dist/utils/react/mapProps.js +1 -1
  568. package/dist/utils/react/mergeProps.js +1 -1
  569. package/dist/utils/react/nullableValue.js +1 -1
  570. package/dist/utils/react/programmaticFocus.js +1 -1
  571. package/dist/utils/react/resolveIcon.js +1 -1
  572. package/dist/utils/react/sharedStore.js +1 -1
  573. package/dist/utils/react/useBufferedValue.js +1 -1
  574. package/dist/utils/react/useCombinedRefs.js +1 -1
  575. package/dist/utils/react/useControlledFocusVisible.js +1 -1
  576. package/dist/utils/react/useEventBus.js +1 -1
  577. package/dist/utils/react/useId.js +1 -1
  578. package/dist/utils/react/useIsDarwin.js +1 -1
  579. package/dist/utils/react/useKeySymbols.js +1 -1
  580. package/dist/utils/react/useLayoutEffect.js +1 -1
  581. package/dist/utils/react/useLocalStorage.js +1 -1
  582. package/dist/utils/react/useMergeStyles.js +1 -1
  583. package/dist/utils/react/useOverlayEscapeGuard.js +1 -1
  584. package/dist/utils/react/usePopoverSync.js +1 -1
  585. package/dist/utils/react/useQaProps.js +1 -1
  586. package/dist/utils/react/useScheme.js +1 -1
  587. package/dist/utils/react/useViewportSize.js +1 -1
  588. package/dist/utils/react/wrapNodeIfPlain.js +1 -1
  589. package/dist/utils/selection.js +1 -1
  590. package/dist/utils/styles.js +1 -1
  591. package/dist/utils/tree.js +1 -1
  592. package/dist/utils/warnings.js +1 -1
  593. package/dist/version.js +2 -2
  594. package/package.json +3 -1
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.190.2 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.190.3 | Cube Dev Team */
2
2
  import { getDisabledElementProps, omitActivationEventProps } from "../../../utils/react/disabledProps.js";
3
3
  import { mergeProps } from "../../../utils/react/mergeProps.js";
4
4
  import { resolveIcon } from "../../../utils/react/resolveIcon.js";
@@ -291,8 +291,215 @@ const ItemElement = tasty({
291
291
  variants: ITEM_VARIANTS,
292
292
  styleProps: CONTAINER_STYLES
293
293
  });
294
+ const STANDARD_THEMES = [
295
+ "default",
296
+ "success",
297
+ "danger",
298
+ "warning",
299
+ "note",
300
+ "special",
301
+ "current"
302
+ ];
303
+ const CARD_THEMES = [
304
+ "default",
305
+ "success",
306
+ "danger",
307
+ "warning",
308
+ "note",
309
+ "current"
310
+ ];
311
+ const HEADER_THEMES = ["default"];
312
+ /**
313
+ * Warns about prop combinations the item does not support: a theme its type
314
+ * has no flavour for, and the icons or loading state the "link" type cannot
315
+ * show.
316
+ */
317
+ function useItemPropWarnings(t0) {
318
+ const $ = c(17);
319
+ const { type, theme, icon, rightIcon, isLoading } = t0;
320
+ let t1;
321
+ if ($[0] !== theme || $[1] !== type) {
322
+ t1 = type === "header" && !HEADER_THEMES.includes(theme) || type === "card" && !CARD_THEMES.includes(theme) || !["header", "card"].includes(type) && !STANDARD_THEMES.includes(theme);
323
+ $[0] = theme;
324
+ $[1] = type;
325
+ $[2] = t1;
326
+ } else t1 = $[2];
327
+ const isInvalidCombination = t1;
328
+ let t2;
329
+ if ($[3] !== theme || $[4] !== type) {
330
+ t2 = [
331
+ "Item",
332
+ "invalid-type-theme",
333
+ type,
334
+ theme
335
+ ];
336
+ $[3] = theme;
337
+ $[4] = type;
338
+ $[5] = t2;
339
+ } else t2 = $[5];
340
+ const t3 = `Item: Invalid type+theme combination. type="${type}" does not support theme="${theme}".` + (type === "header" ? " The \"header\" type only supports theme: default." : type === "card" ? " The \"card\" type only supports themes: default, success, danger, warning, note, current." : " Standard types support themes: default, success, danger, warning, note, special, current.");
341
+ let t4;
342
+ if ($[6] !== t3) {
343
+ t4 = [t3];
344
+ $[6] = t3;
345
+ $[7] = t4;
346
+ } else t4 = $[7];
347
+ let t5;
348
+ if ($[8] !== t2 || $[9] !== t4) {
349
+ t5 = {
350
+ key: t2,
351
+ args: t4
352
+ };
353
+ $[8] = t2;
354
+ $[9] = t4;
355
+ $[10] = t5;
356
+ } else t5 = $[10];
357
+ useWarn(isInvalidCombination, t5);
358
+ const hasLinkWithIcons = type === "link" && (icon || rightIcon);
359
+ const hasLinkWithLoading = type === "link" && isLoading;
360
+ const hasLinkRestrictions = hasLinkWithIcons || hasLinkWithLoading;
361
+ let linkRestrictionMessages;
362
+ if ($[11] !== hasLinkWithIcons || $[12] !== hasLinkWithLoading) {
363
+ linkRestrictionMessages = [];
364
+ if (hasLinkWithIcons) linkRestrictionMessages.push("icons (`icon` or `rightIcon` props)");
365
+ if (hasLinkWithLoading) linkRestrictionMessages.push("loading state (`isLoading` prop)");
366
+ $[11] = hasLinkWithIcons;
367
+ $[12] = hasLinkWithLoading;
368
+ $[13] = linkRestrictionMessages;
369
+ } else linkRestrictionMessages = $[13];
370
+ let t6;
371
+ if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
372
+ t6 = ["Item", "link-restrictions"];
373
+ $[14] = t6;
374
+ } else t6 = $[14];
375
+ const t7 = `Item: The "link" type does not support ${linkRestrictionMessages.join(" or ")}. Remove these props when using type="link".`;
376
+ let t8;
377
+ if ($[15] !== t7) {
378
+ t8 = {
379
+ key: t6,
380
+ args: [t7]
381
+ };
382
+ $[15] = t7;
383
+ $[16] = t8;
384
+ } else t8 = $[16];
385
+ useWarn(hasLinkRestrictions, t8);
386
+ }
387
+ /**
388
+ * Splits `size` between the two ways the element takes it. A named size sets
389
+ * the `size` mod, which picks the matching `$size` in the styles; any other
390
+ * value (a number of pixels or a custom length) sets the `$size` token itself.
391
+ */
392
+ function resolveItemSize(size) {
393
+ if (typeof size === "number") return { sizeToken: `${size}px` };
394
+ if (ITEM_SIZE_VALUES.includes(size)) return { sizeMod: size };
395
+ return { sizeToken: size };
396
+ }
397
+ /**
398
+ * The slot the loading icon replaces, or `undefined` when the item is not
399
+ * loading. Auto logic: prefer icon if present, then rightIcon, fallback to
400
+ * icon.
401
+ */
402
+ function resolveLoadingSlot(loadingSlot, isLoading, icon, rightIcon) {
403
+ if (!isLoading) return void 0;
404
+ if (loadingSlot !== "auto") return loadingSlot;
405
+ return rightIcon.hasSlot && !icon.hasSlot ? "rightIcon" : "icon";
406
+ }
407
+ /** A stable key for icon transitions, based on the icon type. */
408
+ function getIconKey(icon) {
409
+ if (isValidElement(icon)) return icon.type?.displayName || icon.type?.name || "icon";
410
+ return icon ? "icon" : "empty";
411
+ }
412
+ /**
413
+ * Applies the loading state to an icon slot. The slot renders when it has an
414
+ * icon or an empty slot was asked for, or when the loading state targets it:
415
+ * the loading icon then replaces the icon.
416
+ */
417
+ function resolveIconSlot(icon, isLoadingSlot) {
418
+ if (isLoadingSlot) return {
419
+ hasSlot: true,
420
+ content: /* @__PURE__ */ jsx(LoadingIcon, {}),
421
+ key: "loading"
422
+ };
423
+ return {
424
+ hasSlot: icon.hasSlot,
425
+ content: icon.content,
426
+ key: getIconKey(icon.content)
427
+ };
428
+ }
429
+ /**
430
+ * Which HotKeys flavour the shortcut hint wears. `inherit` paints the hint's
431
+ * glyphs and rim from `currentcolor`, so it tracks whatever the row labels
432
+ * itself with; `primary` pins the hint to `#white`; `default` is a neutral
433
+ * `#dark.65` chip built for a page-colored row.
434
+ *
435
+ * The whole `current` theme wants `inherit`: every flavour there derives its
436
+ * label from the inherited color, and a fixed hint cannot follow that. The
437
+ * neutral `#dark.65`-on-`#dark.04` chip all but vanishes on a dark overlay,
438
+ * which is exactly where this theme is meant to be used.
439
+ *
440
+ * `current.primary` is included despite painting its label with
441
+ * `-webkit-text-fill-color` rather than `color`. The hint renders inside the
442
+ * `Suffix` slot, and `CURRENT_PRIMARY_STYLES` recolors that slot to the label
443
+ * color — so `currentcolor` there is the LABEL, not the fill. An earlier
444
+ * version of this comment claimed the opposite and sent it to `primary`, which
445
+ * put a `#white` hint on a light fill (measured cr 2.17 on a `#note` container
446
+ * in dark mode).
447
+ */
448
+ function getHotkeysType(theme, type) {
449
+ if (theme === "current") return "inherit";
450
+ return type === "primary" ? "primary" : "default";
451
+ }
452
+ /** Registers `hotkeys` as a global shortcut that clicks the item. */
453
+ function useHotkeyClick(hotkeys, isDisabled, ref) {
454
+ const $ = c(11);
455
+ let t0;
456
+ if ($[0] !== hotkeys) {
457
+ t0 = typeof hotkeys === "string" ? hotkeys.toLowerCase() : "";
458
+ $[0] = hotkeys;
459
+ $[1] = t0;
460
+ } else t0 = $[1];
461
+ let t1;
462
+ if ($[2] !== hotkeys || $[3] !== isDisabled || $[4] !== ref) {
463
+ t1 = () => {
464
+ if (!hotkeys) return;
465
+ if (isDisabled) return;
466
+ if (ref && typeof ref === "object" && ref.current) ref.current.click();
467
+ };
468
+ $[2] = hotkeys;
469
+ $[3] = isDisabled;
470
+ $[4] = ref;
471
+ $[5] = t1;
472
+ } else t1 = $[5];
473
+ const t2 = !!hotkeys;
474
+ let t3;
475
+ if ($[6] !== t2) {
476
+ t3 = {
477
+ enableOnContentEditable: true,
478
+ enabled: t2,
479
+ preventDefault: true,
480
+ enableOnFormTags: true
481
+ };
482
+ $[6] = t2;
483
+ $[7] = t3;
484
+ } else t3 = $[7];
485
+ let t4;
486
+ if ($[8] !== hotkeys || $[9] !== isDisabled) {
487
+ t4 = [hotkeys, isDisabled];
488
+ $[8] = hotkeys;
489
+ $[9] = isDisabled;
490
+ $[10] = t4;
491
+ } else t4 = $[10];
492
+ useHotkeys(t0, t1, t3, t4);
493
+ }
494
+ /**
495
+ * Highlights matches of `highlight` in a plain-string label or description.
496
+ * Any other content is returned as is.
497
+ */
498
+ function highlightContent(content, highlight, caseSensitive, highlightStyles) {
499
+ return typeof content === "string" && highlight ? highlightText(content, highlight, caseSensitive, highlightStyles) : content;
500
+ }
294
501
  const Item = (props, ref) => {
295
- const $ = c(117);
502
+ const $ = c(75);
296
503
  const { children, size: t0, type: t1, theme: t2, mods, icon: iconProp, rightIcon: rightIconProp, prefix, suffix, description, descriptionPlacement, labelProps, descriptionProps, keyboardShortcutProps, styles, htmlType, isSelected, hotkeys, tooltip: t3, isDisabled, disabled: nativeDisabledProp, style, loadingSlot: t4, isLoading: t5, actions, autoHideActions: t6, preserveActionsSpace: t7, disableActionsFocus: t8, shape, defaultTooltipPlacement: t9, level: t10, highlight, highlightCaseSensitive: t11, highlightStyles, insideWrapper: t12, showActions: t13, skipActionsWidthTransition: t14, hiddenContent, isDynamicLabel: t15, labelRef: labelRefProp, tokens, ...rest } = props;
297
504
  const size = t0 === void 0 ? "medium" : t0;
298
505
  const type = t1 === void 0 ? "item" : t1;
@@ -316,373 +523,222 @@ const Item = (props, ref) => {
316
523
  const isDisabledProp = isDisabled ?? (nativeDisabledProp || void 0);
317
524
  const finalIsDisabled = isDisabledProp === true || isLoading && isDisabledProp !== false;
318
525
  let t16;
319
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
320
- t16 = [
321
- "default",
322
- "success",
323
- "danger",
324
- "warning",
325
- "note",
326
- "special",
327
- "current"
328
- ];
329
- $[0] = t16;
330
- } else t16 = $[0];
331
- const STANDARD_THEMES = t16;
332
- let t17;
333
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
334
- t17 = [
335
- "default",
336
- "success",
337
- "danger",
338
- "warning",
339
- "note",
340
- "current"
341
- ];
342
- $[1] = t17;
343
- } else t17 = $[1];
344
- const CARD_THEMES = t17;
345
- let t18;
346
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
347
- t18 = ["default"];
348
- $[2] = t18;
349
- } else t18 = $[2];
350
- const HEADER_THEMES = t18;
351
- let t19;
352
- if ($[3] !== theme || $[4] !== type) {
353
- t19 = type === "header" && !HEADER_THEMES.includes(theme) || type === "card" && !CARD_THEMES.includes(theme) || !["header", "card"].includes(type) && !STANDARD_THEMES.includes(theme);
354
- $[3] = theme;
355
- $[4] = type;
356
- $[5] = t19;
357
- } else t19 = $[5];
358
- const isInvalidCombination = t19;
359
- let t20;
360
- if ($[6] !== theme || $[7] !== type) {
361
- t20 = [
362
- "Item",
363
- "invalid-type-theme",
526
+ if ($[0] !== iconProp || $[1] !== isLoading || $[2] !== rightIconProp || $[3] !== theme || $[4] !== type) {
527
+ t16 = {
364
528
  type,
365
- theme
366
- ];
367
- $[6] = theme;
368
- $[7] = type;
369
- $[8] = t20;
370
- } else t20 = $[8];
371
- const t21 = `Item: Invalid type+theme combination. type="${type}" does not support theme="${theme}".` + (type === "header" ? " The \"header\" type only supports theme: default." : type === "card" ? " The \"card\" type only supports themes: default, success, danger, warning, note, current." : " Standard types support themes: default, success, danger, warning, note, special, current.");
372
- let t22;
373
- if ($[9] !== t21) {
374
- t22 = [t21];
375
- $[9] = t21;
376
- $[10] = t22;
377
- } else t22 = $[10];
378
- let t23;
379
- if ($[11] !== t20 || $[12] !== t22) {
380
- t23 = {
381
- key: t20,
382
- args: t22
383
- };
384
- $[11] = t20;
385
- $[12] = t22;
386
- $[13] = t23;
387
- } else t23 = $[13];
388
- useWarn(isInvalidCombination, t23);
389
- const hasLinkWithIcons = type === "link" && (iconProp || rightIconProp);
390
- const hasLinkWithLoading = type === "link" && isLoading;
391
- const hasLinkRestrictions = hasLinkWithIcons || hasLinkWithLoading;
392
- let linkRestrictionMessages;
393
- if ($[14] !== hasLinkWithIcons || $[15] !== hasLinkWithLoading) {
394
- linkRestrictionMessages = [];
395
- if (hasLinkWithIcons) linkRestrictionMessages.push("icons (`icon` or `rightIcon` props)");
396
- if (hasLinkWithLoading) linkRestrictionMessages.push("loading state (`isLoading` prop)");
397
- $[14] = hasLinkWithIcons;
398
- $[15] = hasLinkWithLoading;
399
- $[16] = linkRestrictionMessages;
400
- } else linkRestrictionMessages = $[16];
401
- let t24;
402
- if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
403
- t24 = ["Item", "link-restrictions"];
404
- $[17] = t24;
405
- } else t24 = $[17];
406
- const t25 = `Item: The "link" type does not support ${linkRestrictionMessages.join(" or ")}. Remove these props when using type="link".`;
407
- let t26;
408
- if ($[18] !== t25) {
409
- t26 = {
410
- key: t24,
411
- args: [t25]
529
+ theme,
530
+ icon: iconProp,
531
+ rightIcon: rightIconProp,
532
+ isLoading
412
533
  };
413
- $[18] = t25;
414
- $[19] = t26;
415
- } else t26 = $[19];
416
- useWarn(hasLinkRestrictions, t26);
534
+ $[0] = iconProp;
535
+ $[1] = isLoading;
536
+ $[2] = rightIconProp;
537
+ $[3] = theme;
538
+ $[4] = type;
539
+ $[5] = t16;
540
+ } else t16 = $[5];
541
+ useItemPropWarnings(t16);
417
542
  const hasCheckmark = iconProp === "checkmark";
418
- let t27;
419
- if ($[20] !== size) {
420
- t27 = typeof size === "number" || !ITEM_SIZE_VALUES.includes(size);
421
- $[20] = size;
422
- $[21] = t27;
423
- } else t27 = $[21];
424
- const isCustomSize = t27;
425
- const sizeTokenValue = typeof size === "number" ? `${size}px` : isCustomSize ? size : void 0;
426
- const t28 = isSelected === true;
427
543
  let baseMods;
428
- let resolvedIcon;
429
- let t29;
430
- if ($[22] !== finalIsDisabled || $[23] !== finalShape || $[24] !== hasCheckmark || $[25] !== iconProp || $[26] !== isCustomSize || $[27] !== isLoading || $[28] !== mods || $[29] !== rightIconProp || $[30] !== size || $[31] !== t28 || $[32] !== theme || $[33] !== type) {
544
+ let finalTokens;
545
+ let iconSlot;
546
+ let loadingTarget;
547
+ let t17;
548
+ if ($[6] !== finalIsDisabled || $[7] !== finalShape || $[8] !== hasCheckmark || $[9] !== iconProp || $[10] !== isLoading || $[11] !== isSelected || $[12] !== loadingSlot || $[13] !== mods || $[14] !== rightIconProp || $[15] !== size || $[16] !== theme || $[17] !== tokens || $[18] !== type) {
549
+ const { sizeMod, sizeToken } = resolveItemSize(size);
550
+ finalTokens = {
551
+ ...tokens,
552
+ ...sizeToken ? { $size: sizeToken } : {}
553
+ };
431
554
  baseMods = {
432
555
  disabled: finalIsDisabled,
433
- selected: t28,
556
+ selected: isSelected === true,
434
557
  loading: isLoading,
435
- ...!isCustomSize && { size },
558
+ ...sizeMod !== void 0 && { size: sizeMod },
436
559
  type,
437
560
  theme,
438
561
  shape: finalShape,
439
562
  ...mods
440
563
  };
441
- resolvedIcon = hasCheckmark ? {
564
+ const resolvedIcon = hasCheckmark ? {
442
565
  content: null,
443
566
  hasSlot: true
444
567
  } : resolveIcon(iconProp, baseMods);
445
- t29 = resolveIcon(rightIconProp, baseMods);
446
- $[22] = finalIsDisabled;
447
- $[23] = finalShape;
448
- $[24] = hasCheckmark;
449
- $[25] = iconProp;
450
- $[26] = isCustomSize;
451
- $[27] = isLoading;
452
- $[28] = mods;
453
- $[29] = rightIconProp;
454
- $[30] = size;
455
- $[31] = t28;
456
- $[32] = theme;
457
- $[33] = type;
458
- $[34] = baseMods;
459
- $[35] = resolvedIcon;
460
- $[36] = t29;
568
+ const resolvedRightIcon = resolveIcon(rightIconProp, baseMods);
569
+ loadingTarget = resolveLoadingSlot(loadingSlot, isLoading, resolvedIcon, resolvedRightIcon);
570
+ iconSlot = hasCheckmark ? {
571
+ hasSlot: true,
572
+ content: /* @__PURE__ */ jsx(CheckIcon, {}),
573
+ key: "checkmark"
574
+ } : resolveIconSlot(resolvedIcon, loadingTarget === "icon");
575
+ t17 = resolveIconSlot(resolvedRightIcon, loadingTarget === "rightIcon");
576
+ $[6] = finalIsDisabled;
577
+ $[7] = finalShape;
578
+ $[8] = hasCheckmark;
579
+ $[9] = iconProp;
580
+ $[10] = isLoading;
581
+ $[11] = isSelected;
582
+ $[12] = loadingSlot;
583
+ $[13] = mods;
584
+ $[14] = rightIconProp;
585
+ $[15] = size;
586
+ $[16] = theme;
587
+ $[17] = tokens;
588
+ $[18] = type;
589
+ $[19] = baseMods;
590
+ $[20] = finalTokens;
591
+ $[21] = iconSlot;
592
+ $[22] = loadingTarget;
593
+ $[23] = t17;
461
594
  } else {
462
- baseMods = $[34];
463
- resolvedIcon = $[35];
464
- t29 = $[36];
595
+ baseMods = $[19];
596
+ finalTokens = $[20];
597
+ iconSlot = $[21];
598
+ loadingTarget = $[22];
599
+ t17 = $[23];
465
600
  }
466
- const resolvedRightIcon = t29;
467
- const resolvedLoadingSlot = loadingSlot !== "auto" ? loadingSlot : resolvedRightIcon.hasSlot && !resolvedIcon.hasSlot ? "rightIcon" : "icon";
468
- const hasIconSlot = resolvedIcon.hasSlot || isLoading && resolvedLoadingSlot === "icon";
469
- const hasRightIconSlot = resolvedRightIcon.hasSlot || isLoading && resolvedLoadingSlot === "rightIcon";
470
- let t30;
471
- if ($[37] !== description || $[38] !== descriptionProps) {
472
- t30 = !!description || Object.keys(descriptionProps ?? {}).some(_temp);
473
- $[37] = description;
474
- $[38] = descriptionProps;
475
- $[39] = t30;
476
- } else t30 = $[39];
477
- const showDescription = t30;
478
- let t31;
479
- if ($[40] !== isLoading || $[41] !== resolvedIcon.content || $[42] !== resolvedLoadingSlot) {
480
- t31 = isLoading && resolvedLoadingSlot === "icon" ? /* @__PURE__ */ jsx(LoadingIcon, {}) : resolvedIcon.content;
481
- $[40] = isLoading;
482
- $[41] = resolvedIcon.content;
483
- $[42] = resolvedLoadingSlot;
484
- $[43] = t31;
485
- } else t31 = $[43];
486
- const finalIcon = t31;
487
- let t32;
488
- if ($[44] !== isLoading || $[45] !== resolvedLoadingSlot || $[46] !== resolvedRightIcon.content) {
489
- t32 = isLoading && resolvedLoadingSlot === "rightIcon" ? /* @__PURE__ */ jsx(LoadingIcon, {}) : resolvedRightIcon.content;
490
- $[44] = isLoading;
491
- $[45] = resolvedLoadingSlot;
492
- $[46] = resolvedRightIcon.content;
493
- $[47] = t32;
494
- } else t32 = $[47];
495
- const finalRightIcon = t32;
496
- let t33;
497
- if ($[48] !== finalIcon || $[49] !== hasCheckmark || $[50] !== isLoading || $[51] !== resolvedLoadingSlot) {
498
- t33 = hasCheckmark ? "checkmark" : isLoading && resolvedLoadingSlot === "icon" ? "loading" : isValidElement(finalIcon) ? finalIcon.type?.displayName || finalIcon.type?.name || "icon" : finalIcon ? "icon" : "empty";
499
- $[48] = finalIcon;
500
- $[49] = hasCheckmark;
501
- $[50] = isLoading;
502
- $[51] = resolvedLoadingSlot;
503
- $[52] = t33;
504
- } else t33 = $[52];
505
- const iconKey = t33;
506
- let t34;
507
- if ($[53] !== finalRightIcon || $[54] !== isLoading || $[55] !== resolvedLoadingSlot) {
508
- t34 = isLoading && resolvedLoadingSlot === "rightIcon" ? "loading" : isValidElement(finalRightIcon) ? finalRightIcon.type?.displayName || finalRightIcon.type?.name || "icon" : finalRightIcon ? "icon" : "empty";
509
- $[53] = finalRightIcon;
510
- $[54] = isLoading;
511
- $[55] = resolvedLoadingSlot;
512
- $[56] = t34;
513
- } else t34 = $[56];
514
- const rightIconKey = t34;
515
- let t35;
516
- if ($[57] !== isLoading || $[58] !== prefix || $[59] !== resolvedLoadingSlot) {
517
- t35 = isLoading && resolvedLoadingSlot === "prefix" ? /* @__PURE__ */ jsx(LoadingIcon, {}) : prefix;
518
- $[57] = isLoading;
519
- $[58] = prefix;
520
- $[59] = resolvedLoadingSlot;
521
- $[60] = t35;
522
- } else t35 = $[60];
523
- const finalPrefix = t35;
524
- const hotkeysType = theme === "current" ? "inherit" : type === "primary" ? "primary" : "default";
525
- let t36;
526
- if ($[61] !== finalIsDisabled || $[62] !== hotkeys || $[63] !== hotkeysType || $[64] !== isLoading || $[65] !== keyboardShortcutProps || $[66] !== resolvedLoadingSlot || $[67] !== suffix) {
527
- t36 = isLoading && resolvedLoadingSlot === "suffix" ? /* @__PURE__ */ jsx(LoadingIcon, {}) : suffix ?? (hotkeys ? /* @__PURE__ */ jsx(_HotKeys, {
601
+ const rightIconSlot = t17;
602
+ let t18;
603
+ if ($[24] !== description || $[25] !== descriptionProps) {
604
+ t18 = !!description || Object.keys(descriptionProps ?? {}).some(_temp);
605
+ $[24] = description;
606
+ $[25] = descriptionProps;
607
+ $[26] = t18;
608
+ } else t18 = $[26];
609
+ const showDescription = t18;
610
+ let t19;
611
+ if ($[27] !== loadingTarget || $[28] !== prefix) {
612
+ t19 = loadingTarget === "prefix" ? /* @__PURE__ */ jsx(LoadingIcon, {}) : prefix;
613
+ $[27] = loadingTarget;
614
+ $[28] = prefix;
615
+ $[29] = t19;
616
+ } else t19 = $[29];
617
+ const finalPrefix = t19;
618
+ let t20;
619
+ if ($[30] !== finalIsDisabled || $[31] !== hotkeys || $[32] !== keyboardShortcutProps || $[33] !== loadingTarget || $[34] !== suffix || $[35] !== theme || $[36] !== type) {
620
+ t20 = loadingTarget === "suffix" ? /* @__PURE__ */ jsx(LoadingIcon, {}) : suffix ?? (hotkeys ? /* @__PURE__ */ jsx(_HotKeys, {
528
621
  ...keyboardShortcutProps,
529
- type: hotkeysType,
622
+ type: getHotkeysType(theme, type),
530
623
  styles: {
531
624
  padding: "1x left",
532
625
  opacity: finalIsDisabled ? .5 : 1
533
626
  },
534
627
  children: hotkeys
535
628
  }) : void 0);
536
- $[61] = finalIsDisabled;
537
- $[62] = hotkeys;
538
- $[63] = hotkeysType;
539
- $[64] = isLoading;
540
- $[65] = keyboardShortcutProps;
541
- $[66] = resolvedLoadingSlot;
542
- $[67] = suffix;
543
- $[68] = t36;
544
- } else t36 = $[68];
545
- const finalSuffix = t36;
546
- let t37;
547
- if ($[69] !== hotkeys) {
548
- t37 = typeof hotkeys === "string" ? hotkeys.toLowerCase() : "";
549
- $[69] = hotkeys;
550
- $[70] = t37;
551
- } else t37 = $[70];
552
- let t38;
553
- if ($[71] !== finalIsDisabled || $[72] !== hotkeys || $[73] !== ref) {
554
- t38 = () => {
555
- if (!hotkeys) return;
556
- if (finalIsDisabled) return;
557
- if (ref && typeof ref === "object" && ref.current) ref.current.click();
558
- };
559
- $[71] = finalIsDisabled;
560
- $[72] = hotkeys;
561
- $[73] = ref;
562
- $[74] = t38;
563
- } else t38 = $[74];
564
- const t39 = !!hotkeys;
565
- let t40;
566
- if ($[75] !== t39) {
567
- t40 = {
568
- enableOnContentEditable: true,
569
- enabled: t39,
570
- preventDefault: true,
571
- enableOnFormTags: true
572
- };
573
- $[75] = t39;
574
- $[76] = t40;
575
- } else t40 = $[76];
576
- let t41;
577
- if ($[77] !== finalIsDisabled || $[78] !== hotkeys) {
578
- t41 = [hotkeys, finalIsDisabled];
579
- $[77] = finalIsDisabled;
580
- $[78] = hotkeys;
581
- $[79] = t41;
582
- } else t41 = $[79];
583
- useHotkeys(t37, t38, t40, t41);
584
- const t42 = !!(hasIconSlot || finalPrefix);
585
- const t43 = !!(hasRightIconSlot || finalSuffix || actions);
586
- const t44 = !!finalPrefix;
587
- const t45 = !!finalSuffix;
588
- const t46 = !!actions;
589
- const t47 = !!(actions && actions !== true);
590
- const t48 = autoHideActions === true;
591
- const t49 = preserveActionsSpace === true;
592
- const t50 = showActions && insideWrapper;
593
- const t51 = skipActionsWidthTransition && insideWrapper;
594
- const t52 = showDescription ? finalDescriptionPlacement : "none";
595
- let t53;
596
- if ($[80] !== baseMods || $[81] !== hasCheckmark || $[82] !== hasIconSlot || $[83] !== hasLabel || $[84] !== hasRightIconSlot || $[85] !== insideWrapper || $[86] !== showDescription || $[87] !== t42 || $[88] !== t43 || $[89] !== t44 || $[90] !== t45 || $[91] !== t46 || $[92] !== t47 || $[93] !== t48 || $[94] !== t49 || $[95] !== t50 || $[96] !== t51 || $[97] !== t52) {
597
- t53 = {
629
+ $[30] = finalIsDisabled;
630
+ $[31] = hotkeys;
631
+ $[32] = keyboardShortcutProps;
632
+ $[33] = loadingTarget;
633
+ $[34] = suffix;
634
+ $[35] = theme;
635
+ $[36] = type;
636
+ $[37] = t20;
637
+ } else t20 = $[37];
638
+ const finalSuffix = t20;
639
+ useHotkeyClick(hotkeys, finalIsDisabled, ref);
640
+ const t21 = !!(iconSlot.hasSlot || finalPrefix);
641
+ const t22 = !!(rightIconSlot.hasSlot || finalSuffix || actions);
642
+ const t23 = !!finalPrefix;
643
+ const t24 = !!finalSuffix;
644
+ const t25 = !!actions;
645
+ const t26 = !!(actions && actions !== true);
646
+ const t27 = autoHideActions === true;
647
+ const t28 = preserveActionsSpace === true;
648
+ const t29 = showActions && insideWrapper;
649
+ const t30 = skipActionsWidthTransition && insideWrapper;
650
+ const t31 = showDescription ? finalDescriptionPlacement : "none";
651
+ let t32;
652
+ if ($[38] !== baseMods || $[39] !== hasCheckmark || $[40] !== hasLabel || $[41] !== iconSlot.hasSlot || $[42] !== insideWrapper || $[43] !== rightIconSlot.hasSlot || $[44] !== showDescription || $[45] !== t21 || $[46] !== t22 || $[47] !== t23 || $[48] !== t24 || $[49] !== t25 || $[50] !== t26 || $[51] !== t27 || $[52] !== t28 || $[53] !== t29 || $[54] !== t30 || $[55] !== t31) {
653
+ t32 = {
598
654
  ...baseMods,
599
- "has-icon": hasIconSlot,
600
- "has-start-content": t42,
601
- "has-end-content": t43,
602
- "has-right-icon": hasRightIconSlot,
655
+ "has-icon": iconSlot.hasSlot,
656
+ "has-start-content": t21,
657
+ "has-end-content": t22,
658
+ "has-right-icon": rightIconSlot.hasSlot,
603
659
  "has-label": hasLabel,
604
- "has-prefix": t44,
605
- "has-suffix": t45,
660
+ "has-prefix": t23,
661
+ "has-suffix": t24,
606
662
  "has-description": showDescription,
607
- "has-actions": t46,
608
- "has-actions-content": t47,
609
- "auto-hide-actions": t48,
610
- "preserve-actions-space": t49,
663
+ "has-actions": t25,
664
+ "has-actions-content": t26,
665
+ "auto-hide-actions": t27,
666
+ "preserve-actions-space": t28,
611
667
  "inside-wrapper": insideWrapper,
612
- "actions-shown": t50,
613
- "skip-actions-width-transition": t51,
668
+ "actions-shown": t29,
669
+ "skip-actions-width-transition": t30,
614
670
  checkmark: hasCheckmark,
615
- description: t52
671
+ description: t31
616
672
  };
617
- $[80] = baseMods;
618
- $[81] = hasCheckmark;
619
- $[82] = hasIconSlot;
620
- $[83] = hasLabel;
621
- $[84] = hasRightIconSlot;
622
- $[85] = insideWrapper;
623
- $[86] = showDescription;
624
- $[87] = t42;
625
- $[88] = t43;
626
- $[89] = t44;
627
- $[90] = t45;
628
- $[91] = t46;
629
- $[92] = t47;
630
- $[93] = t48;
631
- $[94] = t49;
632
- $[95] = t50;
633
- $[96] = t51;
634
- $[97] = t52;
635
- $[98] = t53;
636
- } else t53 = $[98];
637
- const finalMods = t53;
638
- const t54 = descriptionProps?.ref;
639
- const t55 = isDynamicLabel || !!actions || insideWrapper;
640
- let t56;
641
- if ($[99] !== children || $[100] !== description || $[101] !== labelProps || $[102] !== labelRefProp || $[103] !== t54 || $[104] !== t55 || $[105] !== tooltip) {
642
- t56 = {
673
+ $[38] = baseMods;
674
+ $[39] = hasCheckmark;
675
+ $[40] = hasLabel;
676
+ $[41] = iconSlot.hasSlot;
677
+ $[42] = insideWrapper;
678
+ $[43] = rightIconSlot.hasSlot;
679
+ $[44] = showDescription;
680
+ $[45] = t21;
681
+ $[46] = t22;
682
+ $[47] = t23;
683
+ $[48] = t24;
684
+ $[49] = t25;
685
+ $[50] = t26;
686
+ $[51] = t27;
687
+ $[52] = t28;
688
+ $[53] = t29;
689
+ $[54] = t30;
690
+ $[55] = t31;
691
+ $[56] = t32;
692
+ } else t32 = $[56];
693
+ const finalMods = t32;
694
+ const t33 = descriptionProps?.ref;
695
+ const t34 = isDynamicLabel || !!actions || insideWrapper;
696
+ let t35;
697
+ if ($[57] !== children || $[58] !== description || $[59] !== labelProps || $[60] !== labelRefProp || $[61] !== t33 || $[62] !== t34 || $[63] !== tooltip) {
698
+ t35 = {
643
699
  tooltip,
644
700
  children,
645
701
  description,
646
702
  labelProps,
647
703
  labelRef: labelRefProp,
648
- descriptionRef: t54,
649
- isDynamicLabel: t55
704
+ descriptionRef: t33,
705
+ isDynamicLabel: t34
650
706
  };
651
- $[99] = children;
652
- $[100] = description;
653
- $[101] = labelProps;
654
- $[102] = labelRefProp;
655
- $[103] = t54;
656
- $[104] = t55;
657
- $[105] = tooltip;
658
- $[106] = t56;
659
- } else t56 = $[106];
660
- const { labelProps: finalLabelProps, labelRef, descriptionRef, renderWithTooltip, isTooltipActive } = useAutoTooltip(t56);
707
+ $[57] = children;
708
+ $[58] = description;
709
+ $[59] = labelProps;
710
+ $[60] = labelRefProp;
711
+ $[61] = t33;
712
+ $[62] = t34;
713
+ $[63] = tooltip;
714
+ $[64] = t35;
715
+ } else t35 = $[64];
716
+ const { labelProps: finalLabelProps, labelRef, descriptionRef, renderWithTooltip, isTooltipActive } = useAutoTooltip(t35);
661
717
  const { isNativelyDisabled, isInert, inertProps } = getDisabledElementProps({
662
718
  isDisabled: finalIsDisabled,
663
719
  keepEvents: isTooltipActive,
664
720
  as: rest.as
665
721
  });
666
- let t57;
667
- if ($[107] !== children || $[108] !== highlight || $[109] !== highlightCaseSensitive || $[110] !== highlightStyles) {
668
- t57 = typeof children === "string" && highlight ? highlightText(children, highlight, highlightCaseSensitive, highlightStyles) : children;
669
- $[107] = children;
670
- $[108] = highlight;
671
- $[109] = highlightCaseSensitive;
672
- $[110] = highlightStyles;
673
- $[111] = t57;
674
- } else t57 = $[111];
675
- const processedChildren = t57;
676
- let t58;
677
- if ($[112] !== description || $[113] !== highlight || $[114] !== highlightCaseSensitive || $[115] !== highlightStyles) {
678
- t58 = typeof description === "string" && highlight ? highlightText(description, highlight, highlightCaseSensitive, highlightStyles) : description;
679
- $[112] = description;
680
- $[113] = highlight;
681
- $[114] = highlightCaseSensitive;
682
- $[115] = highlightStyles;
683
- $[116] = t58;
684
- } else t58 = $[116];
685
- const processedDescription = t58;
722
+ let t36;
723
+ if ($[65] !== children || $[66] !== highlight || $[67] !== highlightCaseSensitive || $[68] !== highlightStyles) {
724
+ t36 = highlightContent(children, highlight, highlightCaseSensitive, highlightStyles);
725
+ $[65] = children;
726
+ $[66] = highlight;
727
+ $[67] = highlightCaseSensitive;
728
+ $[68] = highlightStyles;
729
+ $[69] = t36;
730
+ } else t36 = $[69];
731
+ const processedChildren = t36;
732
+ let t37;
733
+ if ($[70] !== description || $[71] !== highlight || $[72] !== highlightCaseSensitive || $[73] !== highlightStyles) {
734
+ t37 = highlightContent(description, highlight, highlightCaseSensitive, highlightStyles);
735
+ $[70] = description;
736
+ $[71] = highlight;
737
+ $[72] = highlightCaseSensitive;
738
+ $[73] = highlightStyles;
739
+ $[74] = t37;
740
+ } else t37 = $[74];
741
+ const processedDescription = t37;
686
742
  const renderItemElement = (tooltipTriggerProps, tooltipRef) => {
687
743
  const { pointerProps: elementTooltipProps, focusProps: tooltipFocusProps } = typeof hiddenContent === "function" ? splitTooltipTriggerProps(tooltipTriggerProps) : {
688
744
  pointerProps: tooltipTriggerProps,
@@ -701,21 +757,18 @@ const Item = (props, ref) => {
701
757
  "aria-selected": rest["aria-pressed"] != null ? void 0 : isSelected,
702
758
  mods: finalMods,
703
759
  styles,
704
- tokens: {
705
- ...tokens,
706
- ...sizeTokenValue ? { $size: sizeTokenValue } : {}
707
- },
760
+ tokens: finalTokens,
708
761
  type: htmlType,
709
762
  ...mergeProps(isInert ? omitActivationEventProps(rest) : rest, elementTooltipProps || {}, inertProps),
710
763
  style,
711
764
  children: [
712
765
  typeof hiddenContent === "function" ? hiddenContent(tooltipFocusProps ?? {}) : hiddenContent,
713
- hasIconSlot && /* @__PURE__ */ jsx("div", {
766
+ iconSlot.hasSlot && /* @__PURE__ */ jsx("div", {
714
767
  "data-element": "Icon",
715
768
  children: /* @__PURE__ */ jsx(IconSwitch, {
716
769
  noWrapper: true,
717
- contentKey: iconKey,
718
- children: hasCheckmark ? /* @__PURE__ */ jsx(CheckIcon, {}) : finalIcon
770
+ contentKey: iconSlot.key,
771
+ children: iconSlot.content
719
772
  })
720
773
  }),
721
774
  finalPrefix && /* @__PURE__ */ jsx("div", {
@@ -738,12 +791,12 @@ const Item = (props, ref) => {
738
791
  "data-element": "Suffix",
739
792
  children: finalSuffix
740
793
  }),
741
- hasRightIconSlot && /* @__PURE__ */ jsx("div", {
794
+ rightIconSlot.hasSlot && /* @__PURE__ */ jsx("div", {
742
795
  "data-element": "RightIcon",
743
796
  children: /* @__PURE__ */ jsx(IconSwitch, {
744
797
  noWrapper: true,
745
- contentKey: rightIconKey,
746
- children: finalRightIcon
798
+ contentKey: rightIconSlot.key,
799
+ children: rightIconSlot.content
747
800
  })
748
801
  }),
749
802
  actions && /* @__PURE__ */ jsx("div", {