@cube-dev/ui-kit 0.0.0-canary-eaec28c → 0.0.0-canary-ead54f5

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 (1620) hide show
  1. package/dist/_internal/hooks/use-debounced-value.js +2 -3
  2. package/dist/_internal/hooks/use-debounced-value.js.map +1 -1
  3. package/dist/_internal/hooks/use-deprecation-warning.js +2 -3
  4. package/dist/_internal/hooks/use-deprecation-warning.js.map +1 -1
  5. package/dist/_internal/hooks/use-event.js +2 -3
  6. package/dist/_internal/hooks/use-event.js.map +1 -1
  7. package/dist/_internal/hooks/use-is-first-render.js +2 -3
  8. package/dist/_internal/hooks/use-is-first-render.js.map +1 -1
  9. package/dist/_internal/hooks/use-sync-ref.js +2 -3
  10. package/dist/_internal/hooks/use-sync-ref.js.map +1 -1
  11. package/dist/_internal/hooks/use-timer/timer.js +2 -2
  12. package/dist/_internal/hooks/use-timer/timer.js.map +1 -1
  13. package/dist/_internal/hooks/use-timer/use-timer.js +2 -3
  14. package/dist/_internal/hooks/use-timer/use-timer.js.map +1 -1
  15. package/dist/_internal/hooks/use-warn.js +2 -3
  16. package/dist/_internal/hooks/use-warn.js.map +1 -1
  17. package/dist/components/Block.d.ts +2 -5
  18. package/dist/components/Block.js +2 -3
  19. package/dist/components/Block.js.map +1 -1
  20. package/dist/components/CollectionItem.d.ts +4 -5
  21. package/dist/components/CollectionItem.js +4 -5
  22. package/dist/components/CollectionItem.js.map +1 -1
  23. package/dist/components/GlobalStyles.js +2 -3
  24. package/dist/components/GlobalStyles.js.map +1 -1
  25. package/dist/components/GridProvider.d.ts +2 -5
  26. package/dist/components/GridProvider.js +4 -4
  27. package/dist/components/GridProvider.js.map +1 -1
  28. package/dist/components/HiddenInput.js +2 -3
  29. package/dist/components/HiddenInput.js.map +1 -1
  30. package/dist/components/Root.d.ts +2 -5
  31. package/dist/components/Root.js +2 -3
  32. package/dist/components/Root.js.map +1 -1
  33. package/dist/components/actions/Action/Action.d.ts +2 -6
  34. package/dist/components/actions/Action/Action.js +2 -3
  35. package/dist/components/actions/Action/Action.js.map +1 -1
  36. package/dist/components/actions/Banner/Banner.d.ts +9 -12
  37. package/dist/components/actions/Banner/Banner.js +3 -4
  38. package/dist/components/actions/Banner/Banner.js.map +1 -1
  39. package/dist/components/actions/Banner/index.d.ts +2 -1
  40. package/dist/components/actions/Button/Button.d.ts +4 -7
  41. package/dist/components/actions/Button/Button.js +2 -3
  42. package/dist/components/actions/Button/Button.js.map +1 -1
  43. package/dist/components/actions/Button/index.d.ts +2 -1
  44. package/dist/components/actions/ButtonGroup/ButtonGroup.d.ts +1 -4
  45. package/dist/components/actions/ButtonGroup/ButtonGroup.js +2 -3
  46. package/dist/components/actions/ButtonGroup/ButtonGroup.js.map +1 -1
  47. package/dist/components/actions/ButtonSplit/ButtonSplit.d.ts +3 -6
  48. package/dist/components/actions/ButtonSplit/ButtonSplit.js +5 -5
  49. package/dist/components/actions/ButtonSplit/ButtonSplit.js.map +1 -1
  50. package/dist/components/actions/ButtonSplit/context.d.ts +3 -6
  51. package/dist/components/actions/ButtonSplit/context.js +2 -3
  52. package/dist/components/actions/ButtonSplit/context.js.map +1 -1
  53. package/dist/components/actions/ButtonSplit/index.d.ts +2 -1
  54. package/dist/components/actions/CommandMenu/CommandMenu.d.ts +6 -9
  55. package/dist/components/actions/CommandMenu/CommandMenu.js +16 -11
  56. package/dist/components/actions/CommandMenu/CommandMenu.js.map +1 -1
  57. package/dist/components/actions/CommandMenu/index.d.ts +2 -1
  58. package/dist/components/actions/CommandMenu/styled.js +3 -4
  59. package/dist/components/actions/CommandMenu/styled.js.map +1 -1
  60. package/dist/components/actions/ItemAction/ItemAction.d.ts +3 -6
  61. package/dist/components/actions/ItemAction/ItemAction.js +11 -9
  62. package/dist/components/actions/ItemAction/ItemAction.js.map +1 -1
  63. package/dist/components/actions/ItemAction/index.d.ts +2 -1
  64. package/dist/components/actions/ItemActionContext.d.ts +5 -14
  65. package/dist/components/actions/ItemActionContext.js +2 -3
  66. package/dist/components/actions/ItemActionContext.js.map +1 -1
  67. package/dist/components/actions/ItemActionsWrapper.js +2 -3
  68. package/dist/components/actions/ItemActionsWrapper.js.map +1 -1
  69. package/dist/components/actions/ItemButton/ItemButton.d.ts +6 -9
  70. package/dist/components/actions/ItemButton/ItemButton.js +4 -5
  71. package/dist/components/actions/ItemButton/ItemButton.js.map +1 -1
  72. package/dist/components/actions/ItemButton/index.d.ts +2 -1
  73. package/dist/components/actions/Link/Link.d.ts +1 -5
  74. package/dist/components/actions/Link/Link.js +2 -3
  75. package/dist/components/actions/Link/Link.js.map +1 -1
  76. package/dist/components/actions/Menu/Menu.d.ts +7 -10
  77. package/dist/components/actions/Menu/Menu.js +9 -8
  78. package/dist/components/actions/Menu/Menu.js.map +1 -1
  79. package/dist/components/actions/Menu/MenuCollectionItem.d.ts +3 -4
  80. package/dist/components/actions/Menu/MenuCollectionItem.js +4 -5
  81. package/dist/components/actions/Menu/MenuCollectionItem.js.map +1 -1
  82. package/dist/components/actions/Menu/MenuItem.d.ts +5 -8
  83. package/dist/components/actions/Menu/MenuItem.js +4 -4
  84. package/dist/components/actions/Menu/MenuItem.js.map +1 -1
  85. package/dist/components/actions/Menu/MenuSection.d.ts +4 -7
  86. package/dist/components/actions/Menu/MenuSection.js +2 -3
  87. package/dist/components/actions/Menu/MenuSection.js.map +1 -1
  88. package/dist/components/actions/Menu/MenuTrigger.d.ts +4 -6
  89. package/dist/components/actions/Menu/MenuTrigger.js +5 -6
  90. package/dist/components/actions/Menu/MenuTrigger.js.map +1 -1
  91. package/dist/components/actions/Menu/SubMenuTrigger.d.ts +3 -5
  92. package/dist/components/actions/Menu/SubMenuTrigger.js +3 -4
  93. package/dist/components/actions/Menu/SubMenuTrigger.js.map +1 -1
  94. package/dist/components/actions/Menu/SubmenuTriggerContext.js +2 -3
  95. package/dist/components/actions/Menu/SubmenuTriggerContext.js.map +1 -1
  96. package/dist/components/actions/Menu/context.d.ts +3 -5
  97. package/dist/components/actions/Menu/context.js +2 -3
  98. package/dist/components/actions/Menu/context.js.map +1 -1
  99. package/dist/components/actions/Menu/index.d.ts +4 -3
  100. package/dist/components/actions/Menu/styled.js +3 -4
  101. package/dist/components/actions/Menu/styled.js.map +1 -1
  102. package/dist/components/actions/actions-run.js +2 -2
  103. package/dist/components/actions/actions-run.js.map +1 -1
  104. package/dist/components/actions/index.d.ts +8 -11
  105. package/dist/components/actions/index.js +8 -9
  106. package/dist/components/actions/index.js.map +1 -1
  107. package/dist/components/actions/use-action.d.ts +7 -25
  108. package/dist/components/actions/use-action.js +7 -6
  109. package/dist/components/actions/use-action.js.map +1 -1
  110. package/dist/components/actions/use-anchored-menu.d.ts +3 -5
  111. package/dist/components/actions/use-anchored-menu.js +5 -5
  112. package/dist/components/actions/use-anchored-menu.js.map +1 -1
  113. package/dist/components/actions/use-context-menu.d.ts +4 -5
  114. package/dist/components/actions/use-context-menu.js +9 -7
  115. package/dist/components/actions/use-context-menu.js.map +1 -1
  116. package/dist/components/content/ActiveZone/ActiveZone.d.ts +3 -5
  117. package/dist/components/content/ActiveZone/ActiveZone.js +3 -4
  118. package/dist/components/content/ActiveZone/ActiveZone.js.map +1 -1
  119. package/dist/components/content/Alert/Alert.d.ts +1 -4
  120. package/dist/components/content/Alert/Alert.js +2 -3
  121. package/dist/components/content/Alert/Alert.js.map +1 -1
  122. package/dist/components/content/Alert/index.d.ts +2 -1
  123. package/dist/components/content/Alert/types.d.ts +2 -4
  124. package/dist/components/content/Alert/use-alert.js +2 -3
  125. package/dist/components/content/Alert/use-alert.js.map +1 -1
  126. package/dist/components/content/Avatar/Avatar.d.ts +2 -5
  127. package/dist/components/content/Avatar/Avatar.js +2 -3
  128. package/dist/components/content/Avatar/Avatar.js.map +1 -1
  129. package/dist/components/content/Badge/Badge.d.ts +5 -7
  130. package/dist/components/content/Badge/Badge.js +4 -5
  131. package/dist/components/content/Badge/Badge.js.map +1 -1
  132. package/dist/components/content/Card/Card.d.ts +2 -5
  133. package/dist/components/content/Card/Card.js +2 -3
  134. package/dist/components/content/Card/Card.js.map +1 -1
  135. package/dist/components/content/Content.d.ts +2 -5
  136. package/dist/components/content/Content.js +2 -3
  137. package/dist/components/content/Content.js.map +1 -1
  138. package/dist/components/content/CopyPasteBlock/CopyPasteBlock.d.ts +3 -5
  139. package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +3 -4
  140. package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js.map +1 -1
  141. package/dist/components/content/CopyPasteBlock/index.d.ts +2 -1
  142. package/dist/components/content/CopySnippet/CopySnippet.d.ts +513 -518
  143. package/dist/components/content/CopySnippet/CopySnippet.js +5 -6
  144. package/dist/components/content/CopySnippet/CopySnippet.js.map +1 -1
  145. package/dist/components/content/CopySnippet/index.d.ts +2 -1
  146. package/dist/components/content/Disclosure/Disclosure.d.ts +12 -14
  147. package/dist/components/content/Disclosure/Disclosure.js +8 -7
  148. package/dist/components/content/Disclosure/Disclosure.js.map +1 -1
  149. package/dist/components/content/Disclosure/index.d.ts +2 -1
  150. package/dist/components/content/Divider.d.ts +2 -5
  151. package/dist/components/content/Divider.js +4 -4
  152. package/dist/components/content/Divider.js.map +1 -1
  153. package/dist/components/content/Footer.d.ts +2 -5
  154. package/dist/components/content/Footer.js +2 -3
  155. package/dist/components/content/Footer.js.map +1 -1
  156. package/dist/components/content/Header.d.ts +2 -5
  157. package/dist/components/content/Header.js +2 -3
  158. package/dist/components/content/Header.js.map +1 -1
  159. package/dist/components/content/HotKeys/HotKeys.d.ts +3 -5
  160. package/dist/components/content/HotKeys/HotKeys.js +4 -5
  161. package/dist/components/content/HotKeys/HotKeys.js.map +1 -1
  162. package/dist/components/content/HotKeys/index.d.ts +2 -1
  163. package/dist/components/content/InfoBadge/InfoBadge.d.ts +4 -6
  164. package/dist/components/content/InfoBadge/InfoBadge.js +2 -3
  165. package/dist/components/content/InfoBadge/InfoBadge.js.map +1 -1
  166. package/dist/components/content/InlineInput/InlineInput.d.ts +4 -7
  167. package/dist/components/content/InlineInput/InlineInput.js +5 -5
  168. package/dist/components/content/InlineInput/InlineInput.js.map +1 -1
  169. package/dist/components/content/InlineInput/index.d.ts +2 -1
  170. package/dist/components/content/Item/Item.d.ts +4 -7
  171. package/dist/components/content/Item/Item.js +4 -5
  172. package/dist/components/content/Item/Item.js.map +1 -1
  173. package/dist/components/content/Item/ItemWithNativeLinks.js +2 -3
  174. package/dist/components/content/Item/ItemWithNativeLinks.js.map +1 -1
  175. package/dist/components/content/Item/index.d.ts +2 -1
  176. package/dist/components/content/ItemBadge/ItemBadge.d.ts +3 -5
  177. package/dist/components/content/ItemBadge/ItemBadge.js +2 -3
  178. package/dist/components/content/ItemBadge/ItemBadge.js.map +1 -1
  179. package/dist/components/content/ItemBadge/index.d.ts +2 -1
  180. package/dist/components/content/ItemCard/ItemCard.d.ts +5 -8
  181. package/dist/components/content/ItemCard/ItemCard.js +3 -4
  182. package/dist/components/content/ItemCard/ItemCard.js.map +1 -1
  183. package/dist/components/content/Layout/GridLayout.d.ts +12 -13
  184. package/dist/components/content/Layout/GridLayout.js +13 -14
  185. package/dist/components/content/Layout/GridLayout.js.map +1 -1
  186. package/dist/components/content/Layout/Layout.d.ts +1 -3
  187. package/dist/components/content/Layout/Layout.js +3 -4
  188. package/dist/components/content/Layout/Layout.js.map +1 -1
  189. package/dist/components/content/Layout/LayoutBlock.d.ts +3 -5
  190. package/dist/components/content/Layout/LayoutBlock.js +4 -5
  191. package/dist/components/content/Layout/LayoutBlock.js.map +1 -1
  192. package/dist/components/content/Layout/LayoutCenter.d.ts +3 -5
  193. package/dist/components/content/Layout/LayoutCenter.js +4 -5
  194. package/dist/components/content/Layout/LayoutCenter.js.map +1 -1
  195. package/dist/components/content/Layout/LayoutContainer.d.ts +3 -5
  196. package/dist/components/content/Layout/LayoutContainer.js +5 -5
  197. package/dist/components/content/Layout/LayoutContainer.js.map +1 -1
  198. package/dist/components/content/Layout/LayoutContent.d.ts +4 -6
  199. package/dist/components/content/Layout/LayoutContent.js +3 -4
  200. package/dist/components/content/Layout/LayoutContent.js.map +1 -1
  201. package/dist/components/content/Layout/LayoutContext.d.ts +1 -3
  202. package/dist/components/content/Layout/LayoutContext.js +2 -3
  203. package/dist/components/content/Layout/LayoutContext.js.map +1 -1
  204. package/dist/components/content/Layout/LayoutFlex.d.ts +3 -5
  205. package/dist/components/content/Layout/LayoutFlex.js +4 -5
  206. package/dist/components/content/Layout/LayoutFlex.js.map +1 -1
  207. package/dist/components/content/Layout/LayoutFooter.d.ts +3 -5
  208. package/dist/components/content/Layout/LayoutFooter.js +4 -5
  209. package/dist/components/content/Layout/LayoutFooter.js.map +1 -1
  210. package/dist/components/content/Layout/LayoutGrid.d.ts +3 -5
  211. package/dist/components/content/Layout/LayoutGrid.js +4 -5
  212. package/dist/components/content/Layout/LayoutGrid.js.map +1 -1
  213. package/dist/components/content/Layout/LayoutHeader.d.ts +3 -5
  214. package/dist/components/content/Layout/LayoutHeader.js +6 -6
  215. package/dist/components/content/Layout/LayoutHeader.js.map +1 -1
  216. package/dist/components/content/Layout/LayoutPane.d.ts +4 -6
  217. package/dist/components/content/Layout/LayoutPane.js +7 -8
  218. package/dist/components/content/Layout/LayoutPane.js.map +1 -1
  219. package/dist/components/content/Layout/LayoutPanel.d.ts +4 -6
  220. package/dist/components/content/Layout/LayoutPanel.js +9 -9
  221. package/dist/components/content/Layout/LayoutPanel.js.map +1 -1
  222. package/dist/components/content/Layout/LayoutPanelHeader.d.ts +4 -6
  223. package/dist/components/content/Layout/LayoutPanelHeader.js +4 -5
  224. package/dist/components/content/Layout/LayoutPanelHeader.js.map +1 -1
  225. package/dist/components/content/Layout/LayoutPanelTransition.js +2 -3
  226. package/dist/components/content/Layout/LayoutPanelTransition.js.map +1 -1
  227. package/dist/components/content/Layout/LayoutToolbar.d.ts +3 -5
  228. package/dist/components/content/Layout/LayoutToolbar.js +4 -5
  229. package/dist/components/content/Layout/LayoutToolbar.js.map +1 -1
  230. package/dist/components/content/Layout/hooks/useTinyScrollbar.js +2 -3
  231. package/dist/components/content/Layout/hooks/useTinyScrollbar.js.map +1 -1
  232. package/dist/components/content/Layout/index.d.ts +13 -14
  233. package/dist/components/content/Layout/index.js +17 -18
  234. package/dist/components/content/Layout/index.js.map +1 -1
  235. package/dist/components/content/Layout/utils.js +2 -2
  236. package/dist/components/content/Layout/utils.js.map +1 -1
  237. package/dist/components/content/Paragraph.d.ts +2 -5
  238. package/dist/components/content/Paragraph.js +3 -4
  239. package/dist/components/content/Paragraph.js.map +1 -1
  240. package/dist/components/content/Placeholder/Placeholder.d.ts +2 -5
  241. package/dist/components/content/Placeholder/Placeholder.js +2 -3
  242. package/dist/components/content/Placeholder/Placeholder.js.map +1 -1
  243. package/dist/components/content/PrismCode/PrismCode.d.ts +3 -5
  244. package/dist/components/content/PrismCode/PrismCode.js +4 -5
  245. package/dist/components/content/PrismCode/PrismCode.js.map +1 -1
  246. package/dist/components/content/PrismCode/prismSetup.js +3 -4
  247. package/dist/components/content/PrismCode/prismSetup.js.map +1 -1
  248. package/dist/components/content/PrismDiffCode/PrismDiffCode.d.ts +2 -9
  249. package/dist/components/content/PrismDiffCode/PrismDiffCode.js +3 -4
  250. package/dist/components/content/PrismDiffCode/PrismDiffCode.js.map +1 -1
  251. package/dist/components/content/Result/Result.d.ts +9 -12
  252. package/dist/components/content/Result/Result.js +4 -5
  253. package/dist/components/content/Result/Result.js.map +1 -1
  254. package/dist/components/content/Skeleton/Skeleton.d.ts +13 -61
  255. package/dist/components/content/Skeleton/Skeleton.js +2 -3
  256. package/dist/components/content/Skeleton/Skeleton.js.map +1 -1
  257. package/dist/components/content/Tag/Tag.d.ts +4 -6
  258. package/dist/components/content/Tag/Tag.js +4 -5
  259. package/dist/components/content/Tag/Tag.js.map +1 -1
  260. package/dist/components/content/Text.d.ts +1340 -1343
  261. package/dist/components/content/Text.js +3 -4
  262. package/dist/components/content/Text.js.map +1 -1
  263. package/dist/components/content/TextItem/TextItem.d.ts +2 -5
  264. package/dist/components/content/TextItem/TextItem.js +2 -3
  265. package/dist/components/content/TextItem/TextItem.js.map +1 -1
  266. package/dist/components/content/TextItem/index.d.ts +2 -1
  267. package/dist/components/content/Title.d.ts +5 -7
  268. package/dist/components/content/Title.js +3 -4
  269. package/dist/components/content/Title.js.map +1 -1
  270. package/dist/components/content/Tree/Tree.d.ts +1 -4
  271. package/dist/components/content/Tree/Tree.js +4 -4
  272. package/dist/components/content/Tree/Tree.js.map +1 -1
  273. package/dist/components/content/Tree/TreeNode.js +5 -6
  274. package/dist/components/content/Tree/TreeNode.js.map +1 -1
  275. package/dist/components/content/Tree/index.d.ts +2 -1
  276. package/dist/components/content/Tree/styled.js +18 -4
  277. package/dist/components/content/Tree/styled.js.map +1 -1
  278. package/dist/components/content/Tree/tree-index.js +2 -2
  279. package/dist/components/content/Tree/tree-index.js.map +1 -1
  280. package/dist/components/content/Tree/types.d.ts +11 -13
  281. package/dist/components/content/Tree/use-checkbox-tree.js +2 -3
  282. package/dist/components/content/Tree/use-checkbox-tree.js.map +1 -1
  283. package/dist/components/content/Tree/use-load-data.js +2 -3
  284. package/dist/components/content/Tree/use-load-data.js.map +1 -1
  285. package/dist/components/content/highlightText.js +3 -4
  286. package/dist/components/content/highlightText.js.map +1 -1
  287. package/dist/components/content/use-auto-tooltip.d.ts +1 -3
  288. package/dist/components/content/use-auto-tooltip.js +2 -3
  289. package/dist/components/content/use-auto-tooltip.js.map +1 -1
  290. package/dist/components/data/DataTable/DataTable.d.ts +1 -2
  291. package/dist/components/data/DataTable/DataTable.js +35 -25
  292. package/dist/components/data/DataTable/DataTable.js.map +1 -1
  293. package/dist/components/data/DataTable/index.d.ts +2 -1
  294. package/dist/components/data/DataTable/types.d.ts +4 -6
  295. package/dist/components/data/ItemTable/ItemTable.d.ts +6 -4
  296. package/dist/components/data/ItemTable/ItemTable.js +8 -5
  297. package/dist/components/data/ItemTable/ItemTable.js.map +1 -1
  298. package/dist/components/data/ItemTable/ItemTableBulkBar.d.ts +2 -5
  299. package/dist/components/data/ItemTable/ItemTableBulkBar.js +8 -4
  300. package/dist/components/data/ItemTable/ItemTableBulkBar.js.map +1 -1
  301. package/dist/components/data/ItemTable/ItemTableDragPreview.js +3 -4
  302. package/dist/components/data/ItemTable/ItemTableDragPreview.js.map +1 -1
  303. package/dist/components/data/ItemTable/ItemTableFooter.js +8 -4
  304. package/dist/components/data/ItemTable/ItemTableFooter.js.map +1 -1
  305. package/dist/components/data/ItemTable/ItemTableToolbar.d.ts +4 -15
  306. package/dist/components/data/ItemTable/ItemTableToolbar.js +2 -3
  307. package/dist/components/data/ItemTable/ItemTableToolbar.js.map +1 -1
  308. package/dist/components/data/ItemTable/index.d.ts +2 -1
  309. package/dist/components/data/ItemTable/types.d.ts +6 -6
  310. package/dist/components/data/ItemTable/use-item-table-column-widths.js +4 -4
  311. package/dist/components/data/ItemTable/use-item-table-column-widths.js.map +1 -1
  312. package/dist/components/data/ItemTable/use-item-table-drag-drop.js +2 -3
  313. package/dist/components/data/ItemTable/use-item-table-drag-drop.js.map +1 -1
  314. package/dist/components/data/ItemTable/use-item-table-pagination.js +2 -3
  315. package/dist/components/data/ItemTable/use-item-table-pagination.js.map +1 -1
  316. package/dist/components/data/ItemTable/use-item-table-selection.js +2 -3
  317. package/dist/components/data/ItemTable/use-item-table-selection.js.map +1 -1
  318. package/dist/components/data/ItemTable/use-item-table-sort.js +2 -3
  319. package/dist/components/data/ItemTable/use-item-table-sort.js.map +1 -1
  320. package/dist/components/data/ItemTable/use-item-table-tree-model.js +2 -3
  321. package/dist/components/data/ItemTable/use-item-table-tree-model.js.map +1 -1
  322. package/dist/components/data/TableBase/ColumnResizer.js +2 -3
  323. package/dist/components/data/TableBase/ColumnResizer.js.map +1 -1
  324. package/dist/components/data/TableBase/RowCollection.d.ts +2 -0
  325. package/dist/components/data/TableBase/RowCollection.js +2 -2
  326. package/dist/components/data/TableBase/RowCollection.js.map +1 -1
  327. package/dist/components/data/TableBase/TableHeaderCell.js +2 -3
  328. package/dist/components/data/TableBase/TableHeaderCell.js.map +1 -1
  329. package/dist/components/data/TableBase/TableRow.js +2 -3
  330. package/dist/components/data/TableBase/TableRow.js.map +1 -1
  331. package/dist/components/data/TableBase/TableView.d.ts +2 -3
  332. package/dist/components/data/TableBase/TableView.js +25 -15
  333. package/dist/components/data/TableBase/TableView.js.map +1 -1
  334. package/dist/components/data/TableBase/TreeGridTable.js +9 -9
  335. package/dist/components/data/TableBase/TreeGridTable.js.map +1 -1
  336. package/dist/components/data/TableBase/column-header.js +2 -3
  337. package/dist/components/data/TableBase/column-header.js.map +1 -1
  338. package/dist/components/data/TableBase/column-menu.d.ts +3 -6
  339. package/dist/components/data/TableBase/column-menu.js +3 -4
  340. package/dist/components/data/TableBase/column-menu.js.map +1 -1
  341. package/dist/components/data/TableBase/column-styles.js +2 -3
  342. package/dist/components/data/TableBase/column-styles.js.map +1 -1
  343. package/dist/components/data/TableBase/column-tint.js +4 -5
  344. package/dist/components/data/TableBase/column-tint.js.map +1 -1
  345. package/dist/components/data/TableBase/index.d.ts +2 -1
  346. package/dist/components/data/TableBase/row-menu.js +2 -3
  347. package/dist/components/data/TableBase/row-menu.js.map +1 -1
  348. package/dist/components/data/TableBase/styled.d.ts +1 -3
  349. package/dist/components/data/TableBase/styled.js +168 -4
  350. package/dist/components/data/TableBase/styled.js.map +1 -1
  351. package/dist/components/data/TableBase/table-tree.d.ts +2 -0
  352. package/dist/components/data/TableBase/table-tree.js +2 -2
  353. package/dist/components/data/TableBase/table-tree.js.map +1 -1
  354. package/dist/components/data/TableBase/types.d.ts +30 -26
  355. package/dist/components/data/TableBase/types.js +2 -2
  356. package/dist/components/data/TableBase/types.js.map +1 -1
  357. package/dist/components/data/TableBase/use-cell-selection.d.ts +1 -2
  358. package/dist/components/data/TableBase/use-cell-selection.js +0 -0
  359. package/dist/components/data/TableBase/use-cell-selection.js.map +1 -1
  360. package/dist/components/data/TableBase/use-column-menu.js +4 -5
  361. package/dist/components/data/TableBase/use-column-menu.js.map +1 -1
  362. package/dist/components/data/TableBase/use-column-order.js +3 -4
  363. package/dist/components/data/TableBase/use-column-order.js.map +1 -1
  364. package/dist/components/data/TableBase/use-column-window.js +3 -4
  365. package/dist/components/data/TableBase/use-column-window.js.map +1 -1
  366. package/dist/components/data/TableBase/use-container-width.js +2 -3
  367. package/dist/components/data/TableBase/use-container-width.js.map +1 -1
  368. package/dist/components/data/TableBase/use-row-move-animation.js +3 -7
  369. package/dist/components/data/TableBase/use-row-move-animation.js.map +1 -1
  370. package/dist/components/data/TableBase/use-scrollability.js +2 -3
  371. package/dist/components/data/TableBase/use-scrollability.js.map +1 -1
  372. package/dist/components/data/TableBase/use-table-columns.js +4 -8
  373. package/dist/components/data/TableBase/use-table-columns.js.map +1 -1
  374. package/dist/components/data/TableBase/use-table-search.js +2 -3
  375. package/dist/components/data/TableBase/use-table-search.js.map +1 -1
  376. package/dist/components/data/TableBase/use-table-selection.d.ts +1 -0
  377. package/dist/components/data/TableBase/use-table-selection.js +7 -6
  378. package/dist/components/data/TableBase/use-table-selection.js.map +1 -1
  379. package/dist/components/data/TableBase/use-table-sort.js +2 -3
  380. package/dist/components/data/TableBase/use-table-sort.js.map +1 -1
  381. package/dist/components/data/TableBase/use-table-sorts.js +2 -3
  382. package/dist/components/data/TableBase/use-table-sorts.js.map +1 -1
  383. package/dist/components/data/TableBase/use-table-storage.d.ts +1 -3
  384. package/dist/components/data/TableBase/use-table-storage.js +4 -4
  385. package/dist/components/data/TableBase/use-table-storage.js.map +1 -1
  386. package/dist/components/data/TableBase/use-table-tooltip-refresh.js +3 -4
  387. package/dist/components/data/TableBase/use-table-tooltip-refresh.js.map +1 -1
  388. package/dist/components/data/TableBase/use-table-tree-state.js +2 -3
  389. package/dist/components/data/TableBase/use-table-tree-state.js.map +1 -1
  390. package/dist/components/data/index.d.ts +4 -3
  391. package/dist/components/fields/Checkbox/Checkbox.d.ts +7 -10
  392. package/dist/components/fields/Checkbox/Checkbox.js +32 -30
  393. package/dist/components/fields/Checkbox/Checkbox.js.map +1 -1
  394. package/dist/components/fields/Checkbox/CheckboxGroup.d.ts +4 -6
  395. package/dist/components/fields/Checkbox/CheckboxGroup.js +3 -4
  396. package/dist/components/fields/Checkbox/CheckboxGroup.js.map +1 -1
  397. package/dist/components/fields/Checkbox/context.js +2 -3
  398. package/dist/components/fields/Checkbox/context.js.map +1 -1
  399. package/dist/components/fields/Checkbox/index.d.ts +3 -2
  400. package/dist/components/fields/ColorInput/ColorInput.d.ts +3 -6
  401. package/dist/components/fields/ColorInput/ColorInput.js +2 -3
  402. package/dist/components/fields/ColorInput/ColorInput.js.map +1 -1
  403. package/dist/components/fields/ColorInput/index.d.ts +2 -1
  404. package/dist/components/fields/ColorPicker/ColorPicker.d.ts +3 -6
  405. package/dist/components/fields/ColorPicker/ColorPicker.js +4 -5
  406. package/dist/components/fields/ColorPicker/ColorPicker.js.map +1 -1
  407. package/dist/components/fields/ColorPicker/index.d.ts +2 -1
  408. package/dist/components/fields/ColorSwatch/ColorSwatch.d.ts +2 -5
  409. package/dist/components/fields/ColorSwatch/ColorSwatch.js +14 -3
  410. package/dist/components/fields/ColorSwatch/ColorSwatch.js.map +1 -1
  411. package/dist/components/fields/ColorSwatch/index.d.ts +2 -1
  412. package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.d.ts +3 -6
  413. package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js +4 -4
  414. package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js.map +1 -1
  415. package/dist/components/fields/ColorSwatchGroup/index.d.ts +2 -1
  416. package/dist/components/fields/ComboBox/ComboBox.d.ts +5 -6
  417. package/dist/components/fields/ComboBox/ComboBox.js +6 -6
  418. package/dist/components/fields/ComboBox/ComboBox.js.map +1 -1
  419. package/dist/components/fields/ComboBox/comboBoxOptions.js +2 -3
  420. package/dist/components/fields/ComboBox/comboBoxOptions.js.map +1 -1
  421. package/dist/components/fields/ComboBox/index.d.ts +2 -1
  422. package/dist/components/fields/CommandTextArea/CommandTextArea.d.ts +10 -9
  423. package/dist/components/fields/CommandTextArea/CommandTextArea.js +7 -7
  424. package/dist/components/fields/CommandTextArea/CommandTextArea.js.map +1 -1
  425. package/dist/components/fields/CommandTextArea/caretPosition.js +2 -2
  426. package/dist/components/fields/CommandTextArea/caretPosition.js.map +1 -1
  427. package/dist/components/fields/CommandTextArea/index.d.ts +2 -1
  428. package/dist/components/fields/CommandTextArea/useCaretAnchor.js +2 -3
  429. package/dist/components/fields/CommandTextArea/useCaretAnchor.js.map +1 -1
  430. package/dist/components/fields/DatePicker/DateInput.d.ts +2 -3
  431. package/dist/components/fields/DatePicker/DateInput.js +7 -7
  432. package/dist/components/fields/DatePicker/DateInput.js.map +1 -1
  433. package/dist/components/fields/DatePicker/DateInputBase.js +3 -4
  434. package/dist/components/fields/DatePicker/DateInputBase.js.map +1 -1
  435. package/dist/components/fields/DatePicker/DatePicker.d.ts +3 -6
  436. package/dist/components/fields/DatePicker/DatePicker.js +6 -7
  437. package/dist/components/fields/DatePicker/DatePicker.js.map +1 -1
  438. package/dist/components/fields/DatePicker/DatePickerButton.js +2 -3
  439. package/dist/components/fields/DatePicker/DatePickerButton.js.map +1 -1
  440. package/dist/components/fields/DatePicker/DatePickerElement.js +2 -3
  441. package/dist/components/fields/DatePicker/DatePickerElement.js.map +1 -1
  442. package/dist/components/fields/DatePicker/DatePickerInput.js +2 -3
  443. package/dist/components/fields/DatePicker/DatePickerInput.js.map +1 -1
  444. package/dist/components/fields/DatePicker/DatePickerSegment.js +2 -3
  445. package/dist/components/fields/DatePicker/DatePickerSegment.js.map +1 -1
  446. package/dist/components/fields/DatePicker/DateRangePicker.d.ts +2 -3
  447. package/dist/components/fields/DatePicker/DateRangePicker.js +6 -7
  448. package/dist/components/fields/DatePicker/DateRangePicker.js.map +1 -1
  449. package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.d.ts +2 -3
  450. package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +6 -7
  451. package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js.map +1 -1
  452. package/dist/components/fields/DatePicker/MonthPicker.d.ts +3 -6
  453. package/dist/components/fields/DatePicker/MonthPicker.js +3 -4
  454. package/dist/components/fields/DatePicker/MonthPicker.js.map +1 -1
  455. package/dist/components/fields/DatePicker/PeriodPicker.d.ts +2 -4
  456. package/dist/components/fields/DatePicker/PeriodPicker.js +4 -5
  457. package/dist/components/fields/DatePicker/PeriodPicker.js.map +1 -1
  458. package/dist/components/fields/DatePicker/QuarterPicker.d.ts +3 -6
  459. package/dist/components/fields/DatePicker/QuarterPicker.js +3 -4
  460. package/dist/components/fields/DatePicker/QuarterPicker.js.map +1 -1
  461. package/dist/components/fields/DatePicker/TimeInput.d.ts +3 -6
  462. package/dist/components/fields/DatePicker/TimeInput.js +7 -7
  463. package/dist/components/fields/DatePicker/TimeInput.js.map +1 -1
  464. package/dist/components/fields/DatePicker/WeekPicker.d.ts +3 -6
  465. package/dist/components/fields/DatePicker/WeekPicker.js +3 -4
  466. package/dist/components/fields/DatePicker/WeekPicker.js.map +1 -1
  467. package/dist/components/fields/DatePicker/YearPicker.d.ts +3 -6
  468. package/dist/components/fields/DatePicker/YearPicker.js +3 -4
  469. package/dist/components/fields/DatePicker/YearPicker.js.map +1 -1
  470. package/dist/components/fields/DatePicker/index.d.ts +10 -9
  471. package/dist/components/fields/DatePicker/parseDate.d.ts +1 -4
  472. package/dist/components/fields/DatePicker/parseDate.js +2 -3
  473. package/dist/components/fields/DatePicker/parseDate.js.map +1 -1
  474. package/dist/components/fields/DatePicker/period.d.ts +5 -7
  475. package/dist/components/fields/DatePicker/period.js +3 -4
  476. package/dist/components/fields/DatePicker/period.js.map +1 -1
  477. package/dist/components/fields/DatePicker/props.js +2 -2
  478. package/dist/components/fields/DatePicker/props.js.map +1 -1
  479. package/dist/components/fields/DatePicker/types.d.ts +2 -4
  480. package/dist/components/fields/DatePicker/utils.js +2 -3
  481. package/dist/components/fields/DatePicker/utils.js.map +1 -1
  482. package/dist/components/fields/FileInput/FileInput.d.ts +3 -5
  483. package/dist/components/fields/FileInput/FileInput.js +3 -4
  484. package/dist/components/fields/FileInput/FileInput.js.map +1 -1
  485. package/dist/components/fields/FilterListBox/FilterListBox.d.ts +4 -5
  486. package/dist/components/fields/FilterListBox/FilterListBox.js +23 -17
  487. package/dist/components/fields/FilterListBox/FilterListBox.js.map +1 -1
  488. package/dist/components/fields/FilterListBox/index.d.ts +2 -1
  489. package/dist/components/fields/FilterPicker/FilterPicker.d.ts +3 -5
  490. package/dist/components/fields/FilterPicker/FilterPicker.js +11 -10
  491. package/dist/components/fields/FilterPicker/FilterPicker.js.map +1 -1
  492. package/dist/components/fields/FilterPicker/index.d.ts +2 -1
  493. package/dist/components/fields/Input/Input.d.ts +6 -7
  494. package/dist/components/fields/Input/Input.js +6 -7
  495. package/dist/components/fields/Input/Input.js.map +1 -1
  496. package/dist/components/fields/Input/index.d.ts +2 -1
  497. package/dist/components/fields/ListBox/DraggableListBox.js +2 -3
  498. package/dist/components/fields/ListBox/DraggableListBox.js.map +1 -1
  499. package/dist/components/fields/ListBox/ListBox.d.ts +3 -5
  500. package/dist/components/fields/ListBox/ListBox.js +30 -25
  501. package/dist/components/fields/ListBox/ListBox.js.map +1 -1
  502. package/dist/components/fields/ListBox/index.d.ts +2 -1
  503. package/dist/components/fields/ListBox/optionId.js +2 -2
  504. package/dist/components/fields/ListBox/optionId.js.map +1 -1
  505. package/dist/components/fields/ListBoxPopover/ListBoxPopover.js +3 -4
  506. package/dist/components/fields/ListBoxPopover/ListBoxPopover.js.map +1 -1
  507. package/dist/components/fields/ListBoxPopover/index.d.ts +2 -1
  508. package/dist/components/fields/ListBoxPopover/listNavigation.d.ts +2 -4
  509. package/dist/components/fields/ListBoxPopover/listNavigation.js +2 -2
  510. package/dist/components/fields/ListBoxPopover/listNavigation.js.map +1 -1
  511. package/dist/components/fields/ListBoxPopover/useCompositeFocus.d.ts +4 -12
  512. package/dist/components/fields/ListBoxPopover/useCompositeFocus.js +2 -3
  513. package/dist/components/fields/ListBoxPopover/useCompositeFocus.js.map +1 -1
  514. package/dist/components/fields/NumberInput/NumberInput.d.ts +4 -6
  515. package/dist/components/fields/NumberInput/NumberInput.js +3 -4
  516. package/dist/components/fields/NumberInput/NumberInput.js.map +1 -1
  517. package/dist/components/fields/NumberInput/StepButton.js +2 -3
  518. package/dist/components/fields/NumberInput/StepButton.js.map +1 -1
  519. package/dist/components/fields/PasswordInput/PasswordInput.d.ts +3 -5
  520. package/dist/components/fields/PasswordInput/PasswordInput.js +3 -4
  521. package/dist/components/fields/PasswordInput/PasswordInput.js.map +1 -1
  522. package/dist/components/fields/Picker/Picker.d.ts +3 -5
  523. package/dist/components/fields/Picker/Picker.js +11 -10
  524. package/dist/components/fields/Picker/Picker.js.map +1 -1
  525. package/dist/components/fields/Picker/index.d.ts +2 -1
  526. package/dist/components/fields/RadioGroup/Radio.d.ts +389 -394
  527. package/dist/components/fields/RadioGroup/Radio.js +13 -22
  528. package/dist/components/fields/RadioGroup/Radio.js.map +1 -1
  529. package/dist/components/fields/RadioGroup/RadioGroup.d.ts +5 -7
  530. package/dist/components/fields/RadioGroup/RadioGroup.js +3 -4
  531. package/dist/components/fields/RadioGroup/RadioGroup.js.map +1 -1
  532. package/dist/components/fields/RadioGroup/context.js +2 -3
  533. package/dist/components/fields/RadioGroup/context.js.map +1 -1
  534. package/dist/components/fields/RadioGroup/index.d.ts +3 -2
  535. package/dist/components/fields/SearchComboBox/SearchComboBox.d.ts +5 -6
  536. package/dist/components/fields/SearchComboBox/SearchComboBox.js +11 -12
  537. package/dist/components/fields/SearchComboBox/SearchComboBox.js.map +1 -1
  538. package/dist/components/fields/SearchComboBox/index.d.ts +2 -1
  539. package/dist/components/fields/SearchInput/SearchInput.d.ts +4 -6
  540. package/dist/components/fields/SearchInput/SearchInput.js +2 -3
  541. package/dist/components/fields/SearchInput/SearchInput.js.map +1 -1
  542. package/dist/components/fields/SearchInput/index.d.ts +2 -1
  543. package/dist/components/fields/Select/Select.d.ts +9 -29
  544. package/dist/components/fields/Select/Select.js +10 -10
  545. package/dist/components/fields/Select/Select.js.map +1 -1
  546. package/dist/components/fields/Select/index.d.ts +2 -1
  547. package/dist/components/fields/Slider/Gradation.js +2 -3
  548. package/dist/components/fields/Slider/Gradation.js.map +1 -1
  549. package/dist/components/fields/Slider/HueSlider.d.ts +3 -6
  550. package/dist/components/fields/Slider/HueSlider.js +5 -6
  551. package/dist/components/fields/Slider/HueSlider.js.map +1 -1
  552. package/dist/components/fields/Slider/RangeSlider.d.ts +3 -6
  553. package/dist/components/fields/Slider/RangeSlider.js +4 -5
  554. package/dist/components/fields/Slider/RangeSlider.js.map +1 -1
  555. package/dist/components/fields/Slider/Slider.d.ts +3 -6
  556. package/dist/components/fields/Slider/Slider.js +4 -5
  557. package/dist/components/fields/Slider/Slider.js.map +1 -1
  558. package/dist/components/fields/Slider/SliderBase.js +23 -22
  559. package/dist/components/fields/Slider/SliderBase.js.map +1 -1
  560. package/dist/components/fields/Slider/SliderThumb.js +2 -3
  561. package/dist/components/fields/Slider/SliderThumb.js.map +1 -1
  562. package/dist/components/fields/Slider/SliderTrack.js +2 -3
  563. package/dist/components/fields/Slider/SliderTrack.js.map +1 -1
  564. package/dist/components/fields/Slider/elements.js +2 -3
  565. package/dist/components/fields/Slider/elements.js.map +1 -1
  566. package/dist/components/fields/Slider/index.d.ts +4 -4
  567. package/dist/components/fields/Slider/index.js +5 -6
  568. package/dist/components/fields/Slider/types.d.ts +2 -3
  569. package/dist/components/fields/Switch/Switch.d.ts +4 -6
  570. package/dist/components/fields/Switch/Switch.js +4 -5
  571. package/dist/components/fields/Switch/Switch.js.map +1 -1
  572. package/dist/components/fields/TagInput/TagInput.d.ts +5 -6
  573. package/dist/components/fields/TagInput/TagInput.js +23 -19
  574. package/dist/components/fields/TagInput/TagInput.js.map +1 -1
  575. package/dist/components/fields/TagInput/TagList.js +3 -4
  576. package/dist/components/fields/TagInput/TagList.js.map +1 -1
  577. package/dist/components/fields/TagInput/index.d.ts +2 -1
  578. package/dist/components/fields/TagInput/useActiveOption.js +2 -3
  579. package/dist/components/fields/TagInput/useActiveOption.js.map +1 -1
  580. package/dist/components/fields/TagInput/useTagError.js +2 -3
  581. package/dist/components/fields/TagInput/useTagError.js.map +1 -1
  582. package/dist/components/fields/TextArea/TextArea.d.ts +4 -6
  583. package/dist/components/fields/TextArea/TextArea.js +3 -4
  584. package/dist/components/fields/TextArea/TextArea.js.map +1 -1
  585. package/dist/components/fields/TextArea/index.d.ts +2 -1
  586. package/dist/components/fields/TextInput/TextInput.d.ts +4 -6
  587. package/dist/components/fields/TextInput/TextInput.js +2 -3
  588. package/dist/components/fields/TextInput/TextInput.js.map +1 -1
  589. package/dist/components/fields/TextInput/TextInputBase.d.ts +6 -8
  590. package/dist/components/fields/TextInput/TextInputBase.js +5 -5
  591. package/dist/components/fields/TextInput/TextInputBase.js.map +1 -1
  592. package/dist/components/fields/TextInput/displayed-validation.js +2 -3
  593. package/dist/components/fields/TextInput/displayed-validation.js.map +1 -1
  594. package/dist/components/fields/TextInput/index.d.ts +2 -1
  595. package/dist/components/fields/TextInput/useAutoSizeTextArea.js +2 -3
  596. package/dist/components/fields/TextInput/useAutoSizeTextArea.js.map +1 -1
  597. package/dist/components/fields/TextInputMapper/TextInputMapper.d.ts +4 -6
  598. package/dist/components/fields/TextInputMapper/TextInputMapper.js +8 -8
  599. package/dist/components/fields/TextInputMapper/TextInputMapper.js.map +1 -1
  600. package/dist/components/fields/TextInputMapper/index.d.ts +2 -1
  601. package/dist/components/fields/TriggerActions.js +3 -4
  602. package/dist/components/fields/TriggerActions.js.map +1 -1
  603. package/dist/components/fields/color/ColorPanel.js +4 -5
  604. package/dist/components/fields/color/ColorPanel.js.map +1 -1
  605. package/dist/components/fields/color/channels.d.ts +2 -4
  606. package/dist/components/fields/color/channels.js +2 -3
  607. package/dist/components/fields/color/channels.js.map +1 -1
  608. package/dist/components/fields/color/color.d.ts +4 -5
  609. package/dist/components/fields/color/color.js +3 -4
  610. package/dist/components/fields/color/color.js.map +1 -1
  611. package/dist/components/fields/color/context.js +2 -3
  612. package/dist/components/fields/color/context.js.map +1 -1
  613. package/dist/components/fields/color/index.d.ts +2 -1
  614. package/dist/components/fields/index.d.ts +27 -26
  615. package/dist/components/fields/option-origin-press.js +2 -2
  616. package/dist/components/fields/option-origin-press.js.map +1 -1
  617. package/dist/components/form/FieldWrapper/FieldWrapper.d.ts +15 -19
  618. package/dist/components/form/FieldWrapper/FieldWrapper.js +4 -5
  619. package/dist/components/form/FieldWrapper/FieldWrapper.js.map +1 -1
  620. package/dist/components/form/FieldWrapper/field-description.js +2 -3
  621. package/dist/components/form/FieldWrapper/field-description.js.map +1 -1
  622. package/dist/components/form/FieldWrapper/index.d.ts +2 -1
  623. package/dist/components/form/FieldWrapper/types.d.ts +19 -12
  624. package/dist/components/form/Form/Field.d.ts +2 -5
  625. package/dist/components/form/Form/Field.js +2 -3
  626. package/dist/components/form/Form/Field.js.map +1 -1
  627. package/dist/components/form/Form/Form.d.ts +6 -12
  628. package/dist/components/form/Form/Form.js +5 -6
  629. package/dist/components/form/Form/Form.js.map +1 -1
  630. package/dist/components/form/Form/ModernFormRoot.d.ts +1 -3
  631. package/dist/components/form/Form/ModernFormRoot.js +3 -4
  632. package/dist/components/form/Form/ModernFormRoot.js.map +1 -1
  633. package/dist/components/form/Form/ResetButton/ResetButton.d.ts +3 -6
  634. package/dist/components/form/Form/ResetButton/ResetButton.js +3 -4
  635. package/dist/components/form/Form/ResetButton/ResetButton.js.map +1 -1
  636. package/dist/components/form/Form/ResetButton/index.d.ts +2 -1
  637. package/dist/components/form/Form/SubmitButton/SubmitButton.d.ts +3 -6
  638. package/dist/components/form/Form/SubmitButton/SubmitButton.js +3 -4
  639. package/dist/components/form/Form/SubmitButton/SubmitButton.js.map +1 -1
  640. package/dist/components/form/Form/SubmitButton/index.d.ts +2 -1
  641. package/dist/components/form/Form/SubmitError.d.ts +3 -5
  642. package/dist/components/form/Form/SubmitError.js +3 -4
  643. package/dist/components/form/Form/SubmitError.js.map +1 -1
  644. package/dist/components/form/Form/backend.d.ts +3 -5
  645. package/dist/components/form/Form/backend.js +2 -2
  646. package/dist/components/form/Form/backend.js.map +1 -1
  647. package/dist/components/form/Form/index.d.ts +7 -10
  648. package/dist/components/form/Form/index.js +7 -8
  649. package/dist/components/form/Form/index.js.map +1 -1
  650. package/dist/components/form/Form/modern/actions.js +2 -3
  651. package/dist/components/form/Form/modern/actions.js.map +1 -1
  652. package/dist/components/form/Form/modern/context.d.ts +2 -4
  653. package/dist/components/form/Form/modern/context.js +2 -3
  654. package/dist/components/form/Form/modern/context.js.map +1 -1
  655. package/dist/components/form/Form/modern/controller.d.ts +9 -11
  656. package/dist/components/form/Form/modern/controller.js +2 -3
  657. package/dist/components/form/Form/modern/controller.js.map +1 -1
  658. package/dist/components/form/Form/modern/field-binding.js +2 -3
  659. package/dist/components/form/Form/modern/field-binding.js.map +1 -1
  660. package/dist/components/form/Form/modern/field.d.ts +4 -5
  661. package/dist/components/form/Form/modern/field.js +2 -3
  662. package/dist/components/form/Form/modern/field.js.map +1 -1
  663. package/dist/components/form/Form/modern/path-types.d.ts +4 -5
  664. package/dist/components/form/Form/modern/react.d.ts +7 -10
  665. package/dist/components/form/Form/modern/react.js +2 -3
  666. package/dist/components/form/Form/modern/react.js.map +1 -1
  667. package/dist/components/form/Form/modern/read-types.d.ts +3 -4
  668. package/dist/components/form/Form/modern/store.js +2 -3
  669. package/dist/components/form/Form/modern/store.js.map +1 -1
  670. package/dist/components/form/Form/modern/types.d.ts +18 -20
  671. package/dist/components/form/Form/modern/validation.d.ts +2 -4
  672. package/dist/components/form/Form/modern/validation.js +2 -3
  673. package/dist/components/form/Form/modern/validation.js.map +1 -1
  674. package/dist/components/form/Form/modern/values.d.ts +1 -2
  675. package/dist/components/form/Form/modern/values.js +2 -2
  676. package/dist/components/form/Form/modern/values.js.map +1 -1
  677. package/dist/components/form/Form/reset-unbound-controls.js +3 -5
  678. package/dist/components/form/Form/reset-unbound-controls.js.map +1 -1
  679. package/dist/components/form/Form/types.d.ts +4 -6
  680. package/dist/components/form/Form/use-field/index.d.ts +2 -1
  681. package/dist/components/form/Form/use-field/types.d.ts +6 -6
  682. package/dist/components/form/Form/use-field/use-field-binding.js +2 -3
  683. package/dist/components/form/Form/use-field/use-field-binding.js.map +1 -1
  684. package/dist/components/form/Form/use-field/use-field-props.d.ts +5 -9
  685. package/dist/components/form/Form/use-field/use-field-props.js +2 -3
  686. package/dist/components/form/Form/use-field/use-field-props.js.map +1 -1
  687. package/dist/components/form/Form/use-field/use-field.d.ts +2 -4
  688. package/dist/components/form/Form/use-field/use-field.js +2 -3
  689. package/dist/components/form/Form/use-field/use-field.js.map +1 -1
  690. package/dist/components/form/Form/use-form.d.ts +5 -6
  691. package/dist/components/form/Form/use-form.js +3 -4
  692. package/dist/components/form/Form/use-form.js.map +1 -1
  693. package/dist/components/form/Form/validation.js +2 -3
  694. package/dist/components/form/Form/validation.js.map +1 -1
  695. package/dist/components/form/Label.d.ts +7 -9
  696. package/dist/components/form/Label.js +3 -4
  697. package/dist/components/form/Label.js.map +1 -1
  698. package/dist/components/form/field-chrome.js +2 -3
  699. package/dist/components/form/field-chrome.js.map +1 -1
  700. package/dist/components/form/index.d.ts +6 -5
  701. package/dist/components/form/legacy-tooltip.js +2 -3
  702. package/dist/components/form/legacy-tooltip.js.map +1 -1
  703. package/dist/components/form/validation/ValidationIndicator.d.ts +4 -10
  704. package/dist/components/form/validation/ValidationIndicator.js +2 -3
  705. package/dist/components/form/validation/ValidationIndicator.js.map +1 -1
  706. package/dist/components/form/validation/index.d.ts +2 -1
  707. package/dist/components/form/validation/resolve-validation-props.d.ts +6 -17
  708. package/dist/components/form/validation/resolve-validation-props.js +2 -2
  709. package/dist/components/form/validation/resolve-validation-props.js.map +1 -1
  710. package/dist/components/form/validation/use-validation-props.d.ts +1 -3
  711. package/dist/components/form/validation/use-validation-props.js +2 -3
  712. package/dist/components/form/validation/use-validation-props.js.map +1 -1
  713. package/dist/components/form/wrapper.d.ts +4 -5
  714. package/dist/components/form/wrapper.js +2 -3
  715. package/dist/components/form/wrapper.js.map +1 -1
  716. package/dist/components/helpers/DisplayTransition/DisplayTransition.d.ts +22 -25
  717. package/dist/components/helpers/DisplayTransition/DisplayTransition.js +16 -16
  718. package/dist/components/helpers/DisplayTransition/DisplayTransition.js.map +1 -1
  719. package/dist/components/helpers/IconSwitch/IconSwitch.d.ts +3 -5
  720. package/dist/components/helpers/IconSwitch/IconSwitch.js +2 -3
  721. package/dist/components/helpers/IconSwitch/IconSwitch.js.map +1 -1
  722. package/dist/components/layout/Flex.d.ts +2 -5
  723. package/dist/components/layout/Flex.js +2 -3
  724. package/dist/components/layout/Flex.js.map +1 -1
  725. package/dist/components/layout/Flow.d.ts +2 -5
  726. package/dist/components/layout/Flow.js +2 -3
  727. package/dist/components/layout/Flow.js.map +1 -1
  728. package/dist/components/layout/Grid.d.ts +2 -5
  729. package/dist/components/layout/Grid.js +2 -3
  730. package/dist/components/layout/Grid.js.map +1 -1
  731. package/dist/components/layout/Panel.d.ts +3 -5
  732. package/dist/components/layout/Panel.js +3 -4
  733. package/dist/components/layout/Panel.js.map +1 -1
  734. package/dist/components/layout/Prefix.d.ts +2 -5
  735. package/dist/components/layout/Prefix.js +2 -3
  736. package/dist/components/layout/Prefix.js.map +1 -1
  737. package/dist/components/layout/ResizablePanel.d.ts +3 -5
  738. package/dist/components/layout/ResizablePanel.js +4 -5
  739. package/dist/components/layout/ResizablePanel.js.map +1 -1
  740. package/dist/components/layout/Space.d.ts +2 -5
  741. package/dist/components/layout/Space.js +2 -3
  742. package/dist/components/layout/Space.js.map +1 -1
  743. package/dist/components/layout/Suffix.d.ts +2 -5
  744. package/dist/components/layout/Suffix.js +2 -3
  745. package/dist/components/layout/Suffix.js.map +1 -1
  746. package/dist/components/navigation/Pagination/Pagination.d.ts +2 -4
  747. package/dist/components/navigation/Pagination/Pagination.js +9 -5
  748. package/dist/components/navigation/Pagination/Pagination.js.map +1 -1
  749. package/dist/components/navigation/Pagination/index.d.ts +3 -2
  750. package/dist/components/navigation/Pagination/types.d.ts +4 -6
  751. package/dist/components/navigation/Pagination/use-pagination.d.ts +11 -16
  752. package/dist/components/navigation/Pagination/use-pagination.js +2 -3
  753. package/dist/components/navigation/Pagination/use-pagination.js.map +1 -1
  754. package/dist/components/navigation/Tabs/BoardDragActiveProvider.d.ts +2 -5
  755. package/dist/components/navigation/Tabs/BoardDragActiveProvider.js +2 -3
  756. package/dist/components/navigation/Tabs/BoardDragActiveProvider.js.map +1 -1
  757. package/dist/components/navigation/Tabs/DraggableTabList.js +2 -3
  758. package/dist/components/navigation/Tabs/DraggableTabList.js.map +1 -1
  759. package/dist/components/navigation/Tabs/TabButton.js +4 -5
  760. package/dist/components/navigation/Tabs/TabButton.js.map +1 -1
  761. package/dist/components/navigation/Tabs/TabDropIndicator.js +2 -3
  762. package/dist/components/navigation/Tabs/TabDropIndicator.js.map +1 -1
  763. package/dist/components/navigation/Tabs/TabPanel.js +3 -4
  764. package/dist/components/navigation/Tabs/TabPanel.js.map +1 -1
  765. package/dist/components/navigation/Tabs/TabPicker.js +2 -3
  766. package/dist/components/navigation/Tabs/TabPicker.js.map +1 -1
  767. package/dist/components/navigation/Tabs/Tabs.d.ts +4 -7
  768. package/dist/components/navigation/Tabs/Tabs.js +5 -5
  769. package/dist/components/navigation/Tabs/Tabs.js.map +1 -1
  770. package/dist/components/navigation/Tabs/TabsAction.d.ts +2 -6
  771. package/dist/components/navigation/Tabs/TabsAction.js +3 -4
  772. package/dist/components/navigation/Tabs/TabsAction.js.map +1 -1
  773. package/dist/components/navigation/Tabs/TabsContext.js +2 -3
  774. package/dist/components/navigation/Tabs/TabsContext.js.map +1 -1
  775. package/dist/components/navigation/Tabs/index.d.ts +2 -1
  776. package/dist/components/navigation/Tabs/popover-placement.js +2 -2
  777. package/dist/components/navigation/Tabs/popover-placement.js.map +1 -1
  778. package/dist/components/navigation/Tabs/styled.js +3 -4
  779. package/dist/components/navigation/Tabs/styled.js.map +1 -1
  780. package/dist/components/navigation/Tabs/types.d.ts +15 -16
  781. package/dist/components/navigation/Tabs/types.js +2 -2
  782. package/dist/components/navigation/Tabs/types.js.map +1 -1
  783. package/dist/components/navigation/Tabs/use-tab-editing.js +2 -3
  784. package/dist/components/navigation/Tabs/use-tab-editing.js.map +1 -1
  785. package/dist/components/navigation/Tabs/use-tab-indicator.js +2 -3
  786. package/dist/components/navigation/Tabs/use-tab-indicator.js.map +1 -1
  787. package/dist/components/navigation/index.d.ts +3 -2
  788. package/dist/components/organisms/StatsCard/StatsCard.d.ts +2 -10
  789. package/dist/components/organisms/StatsCard/StatsCard.js +4 -5
  790. package/dist/components/organisms/StatsCard/StatsCard.js.map +1 -1
  791. package/dist/components/other/Calendar/Calendar.js +3 -4
  792. package/dist/components/other/Calendar/Calendar.js.map +1 -1
  793. package/dist/components/other/Calendar/CalendarCell.js +2 -3
  794. package/dist/components/other/Calendar/CalendarCell.js.map +1 -1
  795. package/dist/components/other/Calendar/CalendarGrid.js +2 -3
  796. package/dist/components/other/Calendar/CalendarGrid.js.map +1 -1
  797. package/dist/components/other/Calendar/CalendarHeader.js +3 -4
  798. package/dist/components/other/Calendar/CalendarHeader.js.map +1 -1
  799. package/dist/components/other/Calendar/CalendarPanel.js +2 -3
  800. package/dist/components/other/Calendar/CalendarPanel.js.map +1 -1
  801. package/dist/components/other/Calendar/PeriodCalendar.js +2 -3
  802. package/dist/components/other/Calendar/PeriodCalendar.js.map +1 -1
  803. package/dist/components/other/Calendar/PeriodGrid.js +2 -3
  804. package/dist/components/other/Calendar/PeriodGrid.js.map +1 -1
  805. package/dist/components/other/Calendar/RangeCalendar.js +3 -4
  806. package/dist/components/other/Calendar/RangeCalendar.js.map +1 -1
  807. package/dist/components/other/Calendar/styled.js +2 -3
  808. package/dist/components/other/Calendar/styled.js.map +1 -1
  809. package/dist/components/other/CubeLogo/CubeLogo.d.ts +3 -6
  810. package/dist/components/other/CubeLogo/CubeLogo.js +2 -3
  811. package/dist/components/other/CubeLogo/CubeLogo.js.map +1 -1
  812. package/dist/components/other/NoDataIcon/NoDataIcon.d.ts +2 -5
  813. package/dist/components/other/NoDataIcon/NoDataIcon.js +2 -3
  814. package/dist/components/other/NoDataIcon/NoDataIcon.js.map +1 -1
  815. package/dist/components/other/NoDataIcon/index.d.ts +2 -1
  816. package/dist/components/overlays/AlertDialog/AlertDialog.d.ts +4 -6
  817. package/dist/components/overlays/AlertDialog/AlertDialog.js +4 -5
  818. package/dist/components/overlays/AlertDialog/AlertDialog.js.map +1 -1
  819. package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.d.ts +3 -6
  820. package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js +3 -5
  821. package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js.map +1 -1
  822. package/dist/components/overlays/AlertDialog/AlertDialogZone.d.ts +1 -2
  823. package/dist/components/overlays/AlertDialog/AlertDialogZone.js +3 -4
  824. package/dist/components/overlays/AlertDialog/AlertDialogZone.js.map +1 -1
  825. package/dist/components/overlays/AlertDialog/index.d.ts +3 -2
  826. package/dist/components/overlays/AlertDialog/types.d.ts +5 -10
  827. package/dist/components/overlays/Dialog/Dialog.d.ts +2 -5
  828. package/dist/components/overlays/Dialog/Dialog.js +3 -4
  829. package/dist/components/overlays/Dialog/Dialog.js.map +1 -1
  830. package/dist/components/overlays/Dialog/DialogContainer.d.ts +2 -5
  831. package/dist/components/overlays/Dialog/DialogContainer.js +4 -5
  832. package/dist/components/overlays/Dialog/DialogContainer.js.map +1 -1
  833. package/dist/components/overlays/Dialog/DialogForm.d.ts +5 -7
  834. package/dist/components/overlays/Dialog/DialogForm.js +5 -6
  835. package/dist/components/overlays/Dialog/DialogForm.js.map +1 -1
  836. package/dist/components/overlays/Dialog/DialogTrigger.d.ts +3 -6
  837. package/dist/components/overlays/Dialog/DialogTrigger.js +5 -6
  838. package/dist/components/overlays/Dialog/DialogTrigger.js.map +1 -1
  839. package/dist/components/overlays/Dialog/ModernDialogForm.js +5 -6
  840. package/dist/components/overlays/Dialog/ModernDialogForm.js.map +1 -1
  841. package/dist/components/overlays/Dialog/context.js +2 -3
  842. package/dist/components/overlays/Dialog/context.js.map +1 -1
  843. package/dist/components/overlays/Dialog/default-button-text.js +2 -2
  844. package/dist/components/overlays/Dialog/default-button-text.js.map +1 -1
  845. package/dist/components/overlays/Dialog/index.d.ts +2 -1
  846. package/dist/components/overlays/Dialog/use-content-overflow.js +2 -3
  847. package/dist/components/overlays/Dialog/use-content-overflow.js.map +1 -1
  848. package/dist/components/overlays/Dialog/use-dialog-container.d.ts +2 -5
  849. package/dist/components/overlays/Dialog/use-dialog-container.js +2 -3
  850. package/dist/components/overlays/Dialog/use-dialog-container.js.map +1 -1
  851. package/dist/components/overlays/Dialog/use-dialog-open-sync.js +2 -3
  852. package/dist/components/overlays/Dialog/use-dialog-open-sync.js.map +1 -1
  853. package/dist/components/overlays/Modal/Modal.d.ts +1 -2
  854. package/dist/components/overlays/Modal/Modal.js +5 -6
  855. package/dist/components/overlays/Modal/Modal.js.map +1 -1
  856. package/dist/components/overlays/Modal/OpenTransitionContext.js +2 -3
  857. package/dist/components/overlays/Modal/OpenTransitionContext.js.map +1 -1
  858. package/dist/components/overlays/Modal/Overlay.js +5 -10
  859. package/dist/components/overlays/Modal/Overlay.js.map +1 -1
  860. package/dist/components/overlays/Modal/Popover.js +4 -5
  861. package/dist/components/overlays/Modal/Popover.js.map +1 -1
  862. package/dist/components/overlays/Modal/Tray.js +5 -6
  863. package/dist/components/overlays/Modal/Tray.js.map +1 -1
  864. package/dist/components/overlays/Modal/Underlay.js +3 -4
  865. package/dist/components/overlays/Modal/Underlay.js.map +1 -1
  866. package/dist/components/overlays/Modal/index.d.ts +2 -1
  867. package/dist/components/overlays/Modal/modal-containment.js +2 -3
  868. package/dist/components/overlays/Modal/modal-containment.js.map +1 -1
  869. package/dist/components/overlays/Modal/types.d.ts +1 -3
  870. package/dist/components/overlays/Notifications/Notification.d.ts +1 -3
  871. package/dist/components/overlays/Notifications/Notification.js +4 -4
  872. package/dist/components/overlays/Notifications/Notification.js.map +1 -1
  873. package/dist/components/overlays/Notifications/NotificationAction.d.ts +1 -10
  874. package/dist/components/overlays/Notifications/NotificationAction.js +2 -3
  875. package/dist/components/overlays/Notifications/NotificationAction.js.map +1 -1
  876. package/dist/components/overlays/Notifications/NotificationCard.d.ts +2 -18
  877. package/dist/components/overlays/Notifications/NotificationCard.js +3 -4
  878. package/dist/components/overlays/Notifications/NotificationCard.js.map +1 -1
  879. package/dist/components/overlays/Notifications/NotificationContext.d.ts +1 -4
  880. package/dist/components/overlays/Notifications/NotificationContext.js +2 -3
  881. package/dist/components/overlays/Notifications/NotificationContext.js.map +1 -1
  882. package/dist/components/overlays/Notifications/NotificationItem.d.ts +2 -9
  883. package/dist/components/overlays/Notifications/NotificationItem.js +2 -3
  884. package/dist/components/overlays/Notifications/NotificationItem.js.map +1 -1
  885. package/dist/components/overlays/Notifications/OverlayContainer.js +6 -8
  886. package/dist/components/overlays/Notifications/OverlayContainer.js.map +1 -1
  887. package/dist/components/overlays/Notifications/OverlayProvider.d.ts +1 -7
  888. package/dist/components/overlays/Notifications/OverlayProvider.js +3 -4
  889. package/dist/components/overlays/Notifications/OverlayProvider.js.map +1 -1
  890. package/dist/components/overlays/Notifications/PersistentNotificationsList.d.ts +1 -8
  891. package/dist/components/overlays/Notifications/PersistentNotificationsList.js +3 -4
  892. package/dist/components/overlays/Notifications/PersistentNotificationsList.js.map +1 -1
  893. package/dist/components/overlays/Notifications/dismissed-storage.js +2 -2
  894. package/dist/components/overlays/Notifications/dismissed-storage.js.map +1 -1
  895. package/dist/components/overlays/Notifications/format-relative-time.d.ts +1 -3
  896. package/dist/components/overlays/Notifications/format-relative-time.js +2 -2
  897. package/dist/components/overlays/Notifications/format-relative-time.js.map +1 -1
  898. package/dist/components/overlays/Notifications/index.d.ts +3 -4
  899. package/dist/components/overlays/Notifications/index.js +4 -5
  900. package/dist/components/overlays/Notifications/index.js.map +1 -1
  901. package/dist/components/overlays/Notifications/types.d.ts +14 -16
  902. package/dist/components/overlays/Notifications/use-notification-state.js +3 -4
  903. package/dist/components/overlays/Notifications/use-notification-state.js.map +1 -1
  904. package/dist/components/overlays/Notifications/use-notifications.d.ts +1 -3
  905. package/dist/components/overlays/Notifications/use-notifications.js +8 -7
  906. package/dist/components/overlays/Notifications/use-notifications.js.map +1 -1
  907. package/dist/components/overlays/Notifications/use-overlay-timers.js +2 -3
  908. package/dist/components/overlays/Notifications/use-overlay-timers.js.map +1 -1
  909. package/dist/components/overlays/Notifications/use-persistent-notifications.d.ts +2 -4
  910. package/dist/components/overlays/Notifications/use-persistent-notifications.js +2 -3
  911. package/dist/components/overlays/Notifications/use-persistent-notifications.js.map +1 -1
  912. package/dist/components/overlays/Notifications/use-persistent-state.js +2 -3
  913. package/dist/components/overlays/Notifications/use-persistent-state.js.map +1 -1
  914. package/dist/components/overlays/Notifications/use-toast-state.js +2 -3
  915. package/dist/components/overlays/Notifications/use-toast-state.js.map +1 -1
  916. package/dist/components/overlays/Toast/ToastItem.d.ts +3 -6
  917. package/dist/components/overlays/Toast/ToastItem.js +3 -4
  918. package/dist/components/overlays/Toast/ToastItem.js.map +1 -1
  919. package/dist/components/overlays/Toast/ToastProvider.d.ts +2 -1
  920. package/dist/components/overlays/Toast/index.d.ts +6 -7
  921. package/dist/components/overlays/Toast/index.js +3 -4
  922. package/dist/components/overlays/Toast/index.js.map +1 -1
  923. package/dist/components/overlays/Toast/types.d.ts +8 -10
  924. package/dist/components/overlays/Toast/useProgressToast.d.ts +1 -3
  925. package/dist/components/overlays/Toast/useProgressToast.js +11 -10
  926. package/dist/components/overlays/Toast/useProgressToast.js.map +1 -1
  927. package/dist/components/overlays/Toast/useToast.d.ts +2 -4
  928. package/dist/components/overlays/Toast/useToast.js +2 -3
  929. package/dist/components/overlays/Toast/useToast.js.map +1 -1
  930. package/dist/components/overlays/Tooltip/Tooltip.d.ts +3 -5
  931. package/dist/components/overlays/Tooltip/Tooltip.js +3 -4
  932. package/dist/components/overlays/Tooltip/Tooltip.js.map +1 -1
  933. package/dist/components/overlays/Tooltip/TooltipProvider.d.ts +2 -4
  934. package/dist/components/overlays/Tooltip/TooltipProvider.js +3 -4
  935. package/dist/components/overlays/Tooltip/TooltipProvider.js.map +1 -1
  936. package/dist/components/overlays/Tooltip/TooltipTrigger.d.ts +3 -6
  937. package/dist/components/overlays/Tooltip/TooltipTrigger.js +4 -5
  938. package/dist/components/overlays/Tooltip/TooltipTrigger.js.map +1 -1
  939. package/dist/components/overlays/Tooltip/context.js +2 -3
  940. package/dist/components/overlays/Tooltip/context.js.map +1 -1
  941. package/dist/components/overlays/Tooltip/split-trigger-props.d.ts +2 -3
  942. package/dist/components/overlays/Tooltip/split-trigger-props.js +2 -3
  943. package/dist/components/overlays/Tooltip/split-trigger-props.js.map +1 -1
  944. package/dist/components/portal/Portal.d.ts +1 -4
  945. package/dist/components/portal/Portal.js +2 -3
  946. package/dist/components/portal/Portal.js.map +1 -1
  947. package/dist/components/portal/PortalProvider.js +2 -3
  948. package/dist/components/portal/PortalProvider.js.map +1 -1
  949. package/dist/components/portal/index.d.ts +2 -1
  950. package/dist/components/portal/types.d.ts +1 -3
  951. package/dist/components/portal/usePortal.js +2 -3
  952. package/dist/components/portal/usePortal.js.map +1 -1
  953. package/dist/components/shared/DraggableCollection.js +15 -15
  954. package/dist/components/shared/DraggableCollection.js.map +1 -1
  955. package/dist/components/shared/InvalidIcon.js +2 -3
  956. package/dist/components/shared/InvalidIcon.js.map +1 -1
  957. package/dist/components/shared/ValidIcon.js +2 -3
  958. package/dist/components/shared/ValidIcon.js.map +1 -1
  959. package/dist/components/status/LoadingAnimation/LoadingAnimation.d.ts +2 -8
  960. package/dist/components/status/LoadingAnimation/LoadingAnimation.js +2 -3
  961. package/dist/components/status/LoadingAnimation/LoadingAnimation.js.map +1 -1
  962. package/dist/components/status/LoadingAnimation/index.d.ts +2 -1
  963. package/dist/components/status/Spin/Cube.js +2 -3
  964. package/dist/components/status/Spin/Cube.js.map +1 -1
  965. package/dist/components/status/Spin/InternalSpinner.js +2 -3
  966. package/dist/components/status/Spin/InternalSpinner.js.map +1 -1
  967. package/dist/components/status/Spin/Spin.d.ts +1 -4
  968. package/dist/components/status/Spin/Spin.js +2 -3
  969. package/dist/components/status/Spin/Spin.js.map +1 -1
  970. package/dist/components/status/Spin/SpinsContainer.js +2 -3
  971. package/dist/components/status/Spin/SpinsContainer.js.map +1 -1
  972. package/dist/components/status/Spin/index.d.ts +2 -1
  973. package/dist/components/status/Spin/types.d.ts +2 -4
  974. package/dist/components/status/index.d.ts +2 -1
  975. package/dist/data/item-themes.d.ts +1 -3
  976. package/dist/data/item-themes.js +3 -3
  977. package/dist/data/item-themes.js.map +1 -1
  978. package/dist/data/themes.d.ts +1 -1
  979. package/dist/data/themes.js +2 -2
  980. package/dist/data/themes.js.map +1 -1
  981. package/dist/eslint-plugin/defaults.generated.d.ts +1 -3
  982. package/dist/eslint-plugin/defaults.generated.js +2 -2
  983. package/dist/eslint-plugin/defaults.generated.js.map +1 -1
  984. package/dist/eslint-plugin/index.d.ts +0 -1
  985. package/dist/eslint-plugin/index.js +2 -3
  986. package/dist/eslint-plugin/index.js.map +1 -1
  987. package/dist/eslint-plugin/rules/no-redundant-default-prop.d.ts +2 -4
  988. package/dist/eslint-plugin/rules/no-redundant-default-prop.js +2 -3
  989. package/dist/eslint-plugin/rules/no-redundant-default-prop.js.map +1 -1
  990. package/dist/eslint-plugin/types.d.ts +17 -10
  991. package/dist/i18n/I18nProvider.d.ts +2 -9
  992. package/dist/i18n/I18nProvider.js +2 -3
  993. package/dist/i18n/I18nProvider.js.map +1 -1
  994. package/dist/i18n/createFormatter.d.ts +6 -7
  995. package/dist/i18n/createFormatter.js +2 -2
  996. package/dist/i18n/createFormatter.js.map +1 -1
  997. package/dist/i18n/index.d.ts +2 -4
  998. package/dist/i18n/index.js +3 -4
  999. package/dist/i18n/index.js.map +1 -1
  1000. package/dist/i18n/instance.d.ts +5 -6
  1001. package/dist/i18n/instance.js +3 -4
  1002. package/dist/i18n/instance.js.map +1 -1
  1003. package/dist/i18n/locales/de-DE/uikit.js +2 -2
  1004. package/dist/i18n/locales/en-US/uikit.js +2 -2
  1005. package/dist/i18n/locales/en-US/uikit.json.d.ts +41 -41
  1006. package/dist/i18n/locales/es-ES/uikit.js +2 -2
  1007. package/dist/i18n/locales/es-MX/uikit.js +2 -2
  1008. package/dist/i18n/locales/fr-FR/uikit.js +2 -2
  1009. package/dist/i18n/locales/it-IT/uikit.js +2 -2
  1010. package/dist/i18n/locales/ja-JP/uikit.js +2 -2
  1011. package/dist/i18n/locales/nb-NO/uikit.js +2 -2
  1012. package/dist/i18n/locales/pt-BR/uikit.js +2 -2
  1013. package/dist/i18n/locales/pt-PT/uikit.js +2 -2
  1014. package/dist/i18n/locales/sv-SE/uikit.js +2 -2
  1015. package/dist/i18n/locales/vi-VN/uikit.js +2 -2
  1016. package/dist/i18n/locales.d.ts +4 -5
  1017. package/dist/i18n/locales.js +2 -2
  1018. package/dist/i18n/locales.js.map +1 -1
  1019. package/dist/i18n/namespace.d.ts +1 -2
  1020. package/dist/i18n/namespace.js +2 -2
  1021. package/dist/i18n/useFormatter.d.ts +1 -3
  1022. package/dist/i18n/useFormatter.js +2 -3
  1023. package/dist/i18n/useFormatter.js.map +1 -1
  1024. package/dist/i18n/useI18n.js +2 -3
  1025. package/dist/i18n/useI18n.js.map +1 -1
  1026. package/dist/icons/AdjustmentsHorizontalIcon.d.ts +2 -5
  1027. package/dist/icons/AdjustmentsHorizontalIcon.js +2 -3
  1028. package/dist/icons/AdjustmentsHorizontalIcon.js.map +1 -1
  1029. package/dist/icons/AdjustmentsIcon.d.ts +2 -5
  1030. package/dist/icons/AdjustmentsIcon.js +2 -3
  1031. package/dist/icons/AdjustmentsIcon.js.map +1 -1
  1032. package/dist/icons/AiIcon.d.ts +2 -5
  1033. package/dist/icons/AiIcon.js +2 -3
  1034. package/dist/icons/AiIcon.js.map +1 -1
  1035. package/dist/icons/AreaChartIcon.d.ts +2 -5
  1036. package/dist/icons/AreaChartIcon.js +2 -3
  1037. package/dist/icons/AreaChartIcon.js.map +1 -1
  1038. package/dist/icons/ArrowNarrowDownIcon.d.ts +2 -5
  1039. package/dist/icons/ArrowNarrowDownIcon.js +2 -3
  1040. package/dist/icons/ArrowNarrowDownIcon.js.map +1 -1
  1041. package/dist/icons/ArrowNarrowUpIcon.d.ts +2 -5
  1042. package/dist/icons/ArrowNarrowUpIcon.js +2 -3
  1043. package/dist/icons/ArrowNarrowUpIcon.js.map +1 -1
  1044. package/dist/icons/BackwardIcon.d.ts +2 -5
  1045. package/dist/icons/BackwardIcon.js +2 -3
  1046. package/dist/icons/BackwardIcon.js.map +1 -1
  1047. package/dist/icons/BarChartIcon.d.ts +2 -5
  1048. package/dist/icons/BarChartIcon.js +2 -3
  1049. package/dist/icons/BarChartIcon.js.map +1 -1
  1050. package/dist/icons/BellFilledIcon.d.ts +2 -5
  1051. package/dist/icons/BellFilledIcon.js +2 -3
  1052. package/dist/icons/BellFilledIcon.js.map +1 -1
  1053. package/dist/icons/BellIcon.d.ts +2 -5
  1054. package/dist/icons/BellIcon.js +2 -3
  1055. package/dist/icons/BellIcon.js.map +1 -1
  1056. package/dist/icons/BooleanIcon.d.ts +2 -5
  1057. package/dist/icons/BooleanIcon.js +2 -3
  1058. package/dist/icons/BooleanIcon.js.map +1 -1
  1059. package/dist/icons/CalendarEditIcon.d.ts +2 -5
  1060. package/dist/icons/CalendarEditIcon.js +2 -3
  1061. package/dist/icons/CalendarEditIcon.js.map +1 -1
  1062. package/dist/icons/CalendarIcon.d.ts +2 -5
  1063. package/dist/icons/CalendarIcon.js +2 -3
  1064. package/dist/icons/CalendarIcon.js.map +1 -1
  1065. package/dist/icons/CaretDownIcon.d.ts +2 -5
  1066. package/dist/icons/CaretDownIcon.js +2 -3
  1067. package/dist/icons/CaretDownIcon.js.map +1 -1
  1068. package/dist/icons/CaretUpIcon.d.ts +2 -5
  1069. package/dist/icons/CaretUpIcon.js +2 -3
  1070. package/dist/icons/CaretUpIcon.js.map +1 -1
  1071. package/dist/icons/ChartAreaStackedIcon.d.ts +2 -5
  1072. package/dist/icons/ChartAreaStackedIcon.js +2 -3
  1073. package/dist/icons/ChartAreaStackedIcon.js.map +1 -1
  1074. package/dist/icons/ChartAreaStackedPercentageIcon.d.ts +2 -5
  1075. package/dist/icons/ChartAreaStackedPercentageIcon.js +2 -3
  1076. package/dist/icons/ChartAreaStackedPercentageIcon.js.map +1 -1
  1077. package/dist/icons/ChartBarGroupedHorizontalIcon.d.ts +2 -5
  1078. package/dist/icons/ChartBarGroupedHorizontalIcon.js +2 -3
  1079. package/dist/icons/ChartBarGroupedHorizontalIcon.js.map +1 -1
  1080. package/dist/icons/ChartBarGroupedIcon.d.ts +2 -5
  1081. package/dist/icons/ChartBarGroupedIcon.js +2 -3
  1082. package/dist/icons/ChartBarGroupedIcon.js.map +1 -1
  1083. package/dist/icons/ChartBarHorizontalIcon.d.ts +2 -5
  1084. package/dist/icons/ChartBarHorizontalIcon.js +2 -3
  1085. package/dist/icons/ChartBarHorizontalIcon.js.map +1 -1
  1086. package/dist/icons/ChartBarLineIcon.d.ts +2 -5
  1087. package/dist/icons/ChartBarLineIcon.js +2 -3
  1088. package/dist/icons/ChartBarLineIcon.js.map +1 -1
  1089. package/dist/icons/ChartBarStackedHorizontalIcon.d.ts +2 -5
  1090. package/dist/icons/ChartBarStackedHorizontalIcon.js +2 -3
  1091. package/dist/icons/ChartBarStackedHorizontalIcon.js.map +1 -1
  1092. package/dist/icons/ChartBarStackedIcon.d.ts +2 -5
  1093. package/dist/icons/ChartBarStackedIcon.js +2 -3
  1094. package/dist/icons/ChartBarStackedIcon.js.map +1 -1
  1095. package/dist/icons/ChartBarStackedPercentageHorizontalIcon.d.ts +2 -5
  1096. package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +2 -3
  1097. package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js.map +1 -1
  1098. package/dist/icons/ChartBarStackedPercentageIcon.d.ts +2 -5
  1099. package/dist/icons/ChartBarStackedPercentageIcon.js +2 -3
  1100. package/dist/icons/ChartBarStackedPercentageIcon.js.map +1 -1
  1101. package/dist/icons/ChartBoxPlot2Icon.d.ts +2 -5
  1102. package/dist/icons/ChartBoxPlot2Icon.js +2 -3
  1103. package/dist/icons/ChartBoxPlot2Icon.js.map +1 -1
  1104. package/dist/icons/ChartBoxPlotIcon.d.ts +2 -5
  1105. package/dist/icons/ChartBoxPlotIcon.js +2 -3
  1106. package/dist/icons/ChartBoxPlotIcon.js.map +1 -1
  1107. package/dist/icons/ChartBubbleIcon.d.ts +2 -5
  1108. package/dist/icons/ChartBubbleIcon.js +2 -3
  1109. package/dist/icons/ChartBubbleIcon.js.map +1 -1
  1110. package/dist/icons/ChartDonut2Icon.d.ts +2 -5
  1111. package/dist/icons/ChartDonut2Icon.js +2 -3
  1112. package/dist/icons/ChartDonut2Icon.js.map +1 -1
  1113. package/dist/icons/ChartFunnelIcon.d.ts +2 -5
  1114. package/dist/icons/ChartFunnelIcon.js +2 -3
  1115. package/dist/icons/ChartFunnelIcon.js.map +1 -1
  1116. package/dist/icons/ChartHeatmapIcon.d.ts +2 -5
  1117. package/dist/icons/ChartHeatmapIcon.js +2 -3
  1118. package/dist/icons/ChartHeatmapIcon.js.map +1 -1
  1119. package/dist/icons/ChartKPIIcon.d.ts +2 -5
  1120. package/dist/icons/ChartKPIIcon.js +2 -3
  1121. package/dist/icons/ChartKPIIcon.js.map +1 -1
  1122. package/dist/icons/ChartPie2Icon.d.ts +2 -5
  1123. package/dist/icons/ChartPie2Icon.js +2 -3
  1124. package/dist/icons/ChartPie2Icon.js.map +1 -1
  1125. package/dist/icons/ChartScatterIcon.d.ts +2 -5
  1126. package/dist/icons/ChartScatterIcon.js +2 -3
  1127. package/dist/icons/ChartScatterIcon.js.map +1 -1
  1128. package/dist/icons/CheckCircleFilledIcon.d.ts +2 -5
  1129. package/dist/icons/CheckCircleFilledIcon.js +2 -3
  1130. package/dist/icons/CheckCircleFilledIcon.js.map +1 -1
  1131. package/dist/icons/CheckCircleIcon.d.ts +2 -5
  1132. package/dist/icons/CheckCircleIcon.js +2 -3
  1133. package/dist/icons/CheckCircleIcon.js.map +1 -1
  1134. package/dist/icons/CheckIcon.d.ts +2 -5
  1135. package/dist/icons/CheckIcon.js +2 -3
  1136. package/dist/icons/CheckIcon.js.map +1 -1
  1137. package/dist/icons/CircleFilledIcon.d.ts +2 -5
  1138. package/dist/icons/CircleFilledIcon.js +2 -3
  1139. package/dist/icons/CircleFilledIcon.js.map +1 -1
  1140. package/dist/icons/ClearIcon.d.ts +2 -5
  1141. package/dist/icons/ClearIcon.js +2 -3
  1142. package/dist/icons/ClearIcon.js.map +1 -1
  1143. package/dist/icons/CloseCircleFilledIcon.d.ts +2 -5
  1144. package/dist/icons/CloseCircleFilledIcon.js +2 -3
  1145. package/dist/icons/CloseCircleFilledIcon.js.map +1 -1
  1146. package/dist/icons/CloseCircleIcon.d.ts +2 -5
  1147. package/dist/icons/CloseCircleIcon.js +2 -3
  1148. package/dist/icons/CloseCircleIcon.js.map +1 -1
  1149. package/dist/icons/CloseIcon.d.ts +2 -5
  1150. package/dist/icons/CloseIcon.js +2 -3
  1151. package/dist/icons/CloseIcon.js.map +1 -1
  1152. package/dist/icons/CodeIcon.d.ts +2 -5
  1153. package/dist/icons/CodeIcon.js +2 -3
  1154. package/dist/icons/CodeIcon.js.map +1 -1
  1155. package/dist/icons/ColumnTotalIcon.d.ts +2 -5
  1156. package/dist/icons/ColumnTotalIcon.js +2 -3
  1157. package/dist/icons/ColumnTotalIcon.js.map +1 -1
  1158. package/dist/icons/CopyIcon.d.ts +2 -5
  1159. package/dist/icons/CopyIcon.js +2 -3
  1160. package/dist/icons/CopyIcon.js.map +1 -1
  1161. package/dist/icons/CountIcon.d.ts +2 -5
  1162. package/dist/icons/CountIcon.js +2 -3
  1163. package/dist/icons/CountIcon.js.map +1 -1
  1164. package/dist/icons/CubeIcon.d.ts +2 -5
  1165. package/dist/icons/CubeIcon.js +2 -3
  1166. package/dist/icons/CubeIcon.js.map +1 -1
  1167. package/dist/icons/CubePauseIcon.d.ts +2 -5
  1168. package/dist/icons/CubePauseIcon.js +2 -3
  1169. package/dist/icons/CubePauseIcon.js.map +1 -1
  1170. package/dist/icons/CubePlayIcon.d.ts +2 -5
  1171. package/dist/icons/CubePlayIcon.js +2 -3
  1172. package/dist/icons/CubePlayIcon.js.map +1 -1
  1173. package/dist/icons/CurrencyDollarIcon.d.ts +2 -5
  1174. package/dist/icons/CurrencyDollarIcon.js +2 -3
  1175. package/dist/icons/CurrencyDollarIcon.js.map +1 -1
  1176. package/dist/icons/DangerIcon.d.ts +2 -5
  1177. package/dist/icons/DangerIcon.js +2 -3
  1178. package/dist/icons/DangerIcon.js.map +1 -1
  1179. package/dist/icons/DashboardIcon.d.ts +2 -5
  1180. package/dist/icons/DashboardIcon.js +2 -3
  1181. package/dist/icons/DashboardIcon.js.map +1 -1
  1182. package/dist/icons/DatabaseIcon.d.ts +2 -5
  1183. package/dist/icons/DatabaseIcon.js +2 -3
  1184. package/dist/icons/DatabaseIcon.js.map +1 -1
  1185. package/dist/icons/DecimalDecreaseIcon.d.ts +2 -5
  1186. package/dist/icons/DecimalDecreaseIcon.js +2 -3
  1187. package/dist/icons/DecimalDecreaseIcon.js.map +1 -1
  1188. package/dist/icons/DecimalIncreaseIcon.d.ts +2 -5
  1189. package/dist/icons/DecimalIncreaseIcon.js +2 -3
  1190. package/dist/icons/DecimalIncreaseIcon.js.map +1 -1
  1191. package/dist/icons/DirectionIcon.d.ts +3 -5
  1192. package/dist/icons/DirectionIcon.js +2 -3
  1193. package/dist/icons/DirectionIcon.js.map +1 -1
  1194. package/dist/icons/DonutIcon.d.ts +2 -5
  1195. package/dist/icons/DonutIcon.js +2 -3
  1196. package/dist/icons/DonutIcon.js.map +1 -1
  1197. package/dist/icons/DownIcon.d.ts +2 -5
  1198. package/dist/icons/DownIcon.js +2 -3
  1199. package/dist/icons/DownIcon.js.map +1 -1
  1200. package/dist/icons/EditIcon.d.ts +2 -5
  1201. package/dist/icons/EditIcon.js +2 -3
  1202. package/dist/icons/EditIcon.js.map +1 -1
  1203. package/dist/icons/ExclamationCircleFilledIcon.d.ts +2 -5
  1204. package/dist/icons/ExclamationCircleFilledIcon.js +2 -3
  1205. package/dist/icons/ExclamationCircleFilledIcon.js.map +1 -1
  1206. package/dist/icons/ExclamationCircleIcon.d.ts +2 -5
  1207. package/dist/icons/ExclamationCircleIcon.js +2 -3
  1208. package/dist/icons/ExclamationCircleIcon.js.map +1 -1
  1209. package/dist/icons/ExclamationIcon.d.ts +2 -5
  1210. package/dist/icons/ExclamationIcon.js +2 -3
  1211. package/dist/icons/ExclamationIcon.js.map +1 -1
  1212. package/dist/icons/EyeIcon.d.ts +2 -5
  1213. package/dist/icons/EyeIcon.js +2 -3
  1214. package/dist/icons/EyeIcon.js.map +1 -1
  1215. package/dist/icons/EyeInvisibleIcon.d.ts +2 -5
  1216. package/dist/icons/EyeInvisibleIcon.js +2 -3
  1217. package/dist/icons/EyeInvisibleIcon.js.map +1 -1
  1218. package/dist/icons/FilterIcon.d.ts +2 -5
  1219. package/dist/icons/FilterIcon.js +2 -3
  1220. package/dist/icons/FilterIcon.js.map +1 -1
  1221. package/dist/icons/FolderFilledIcon.d.ts +2 -5
  1222. package/dist/icons/FolderFilledIcon.js +2 -3
  1223. package/dist/icons/FolderFilledIcon.js.map +1 -1
  1224. package/dist/icons/FolderIcon.d.ts +2 -5
  1225. package/dist/icons/FolderIcon.js +2 -3
  1226. package/dist/icons/FolderIcon.js.map +1 -1
  1227. package/dist/icons/FolderOpenFilledIcon.d.ts +2 -5
  1228. package/dist/icons/FolderOpenFilledIcon.js +2 -3
  1229. package/dist/icons/FolderOpenFilledIcon.js.map +1 -1
  1230. package/dist/icons/FolderOpenIcon.d.ts +2 -5
  1231. package/dist/icons/FolderOpenIcon.js +2 -3
  1232. package/dist/icons/FolderOpenIcon.js.map +1 -1
  1233. package/dist/icons/ForwardIcon.d.ts +2 -5
  1234. package/dist/icons/ForwardIcon.js +2 -3
  1235. package/dist/icons/ForwardIcon.js.map +1 -1
  1236. package/dist/icons/GripVerticalIcon.d.ts +2 -5
  1237. package/dist/icons/GripVerticalIcon.js +2 -3
  1238. package/dist/icons/GripVerticalIcon.js.map +1 -1
  1239. package/dist/icons/HierarchyIcon.d.ts +2 -5
  1240. package/dist/icons/HierarchyIcon.js +2 -3
  1241. package/dist/icons/HierarchyIcon.js.map +1 -1
  1242. package/dist/icons/HierarchyOpenIcon.d.ts +2 -5
  1243. package/dist/icons/HierarchyOpenIcon.js +2 -3
  1244. package/dist/icons/HierarchyOpenIcon.js.map +1 -1
  1245. package/dist/icons/Icon.d.ts +2 -5
  1246. package/dist/icons/Icon.js +2 -3
  1247. package/dist/icons/Icon.js.map +1 -1
  1248. package/dist/icons/InfoCircleIcon.d.ts +2 -5
  1249. package/dist/icons/InfoCircleIcon.js +2 -3
  1250. package/dist/icons/InfoCircleIcon.js.map +1 -1
  1251. package/dist/icons/InfoIcon.d.ts +2 -5
  1252. package/dist/icons/InfoIcon.js +2 -3
  1253. package/dist/icons/InfoIcon.js.map +1 -1
  1254. package/dist/icons/KeyIcon.d.ts +2 -5
  1255. package/dist/icons/KeyIcon.js +2 -3
  1256. package/dist/icons/KeyIcon.js.map +1 -1
  1257. package/dist/icons/LeftIcon.d.ts +2 -5
  1258. package/dist/icons/LeftIcon.js +2 -3
  1259. package/dist/icons/LeftIcon.js.map +1 -1
  1260. package/dist/icons/LineChartIcon.d.ts +2 -5
  1261. package/dist/icons/LineChartIcon.js +2 -3
  1262. package/dist/icons/LineChartIcon.js.map +1 -1
  1263. package/dist/icons/LoadingIcon.d.ts +2 -5
  1264. package/dist/icons/LoadingIcon.js +2 -3
  1265. package/dist/icons/LoadingIcon.js.map +1 -1
  1266. package/dist/icons/LockFilledIcon.d.ts +2 -5
  1267. package/dist/icons/LockFilledIcon.js +2 -3
  1268. package/dist/icons/LockFilledIcon.js.map +1 -1
  1269. package/dist/icons/LockIcon.d.ts +2 -5
  1270. package/dist/icons/LockIcon.js +2 -3
  1271. package/dist/icons/LockIcon.js.map +1 -1
  1272. package/dist/icons/MoreIcon.d.ts +2 -5
  1273. package/dist/icons/MoreIcon.js +2 -3
  1274. package/dist/icons/MoreIcon.js.map +1 -1
  1275. package/dist/icons/NotAllowedIcon.d.ts +2 -5
  1276. package/dist/icons/NotAllowedIcon.js +2 -3
  1277. package/dist/icons/NotAllowedIcon.js.map +1 -1
  1278. package/dist/icons/Number123Icon.d.ts +2 -5
  1279. package/dist/icons/Number123Icon.js +2 -3
  1280. package/dist/icons/Number123Icon.js.map +1 -1
  1281. package/dist/icons/NumberIcon.d.ts +2 -5
  1282. package/dist/icons/NumberIcon.js +2 -3
  1283. package/dist/icons/NumberIcon.js.map +1 -1
  1284. package/dist/icons/PauseCircleFilledIcon.d.ts +2 -5
  1285. package/dist/icons/PauseCircleFilledIcon.js +2 -3
  1286. package/dist/icons/PauseCircleFilledIcon.js.map +1 -1
  1287. package/dist/icons/PauseCircleIcon.d.ts +2 -5
  1288. package/dist/icons/PauseCircleIcon.js +2 -3
  1289. package/dist/icons/PauseCircleIcon.js.map +1 -1
  1290. package/dist/icons/PauseIcon.d.ts +2 -5
  1291. package/dist/icons/PauseIcon.js +2 -3
  1292. package/dist/icons/PauseIcon.js.map +1 -1
  1293. package/dist/icons/PercentageIcon.d.ts +2 -5
  1294. package/dist/icons/PercentageIcon.js +2 -3
  1295. package/dist/icons/PercentageIcon.js.map +1 -1
  1296. package/dist/icons/PieChartIcon.d.ts +2 -5
  1297. package/dist/icons/PieChartIcon.js +2 -3
  1298. package/dist/icons/PieChartIcon.js.map +1 -1
  1299. package/dist/icons/PipetteIcon.d.ts +2 -5
  1300. package/dist/icons/PipetteIcon.js +2 -3
  1301. package/dist/icons/PipetteIcon.js.map +1 -1
  1302. package/dist/icons/PlayCircleIcon.d.ts +2 -5
  1303. package/dist/icons/PlayCircleIcon.js +2 -3
  1304. package/dist/icons/PlayCircleIcon.js.map +1 -1
  1305. package/dist/icons/PlayIcon.d.ts +2 -5
  1306. package/dist/icons/PlayIcon.js +2 -3
  1307. package/dist/icons/PlayIcon.js.map +1 -1
  1308. package/dist/icons/PlusIcon.d.ts +2 -5
  1309. package/dist/icons/PlusIcon.js +2 -3
  1310. package/dist/icons/PlusIcon.js.map +1 -1
  1311. package/dist/icons/ProgressBarIcon.d.ts +2 -5
  1312. package/dist/icons/ProgressBarIcon.js +2 -3
  1313. package/dist/icons/ProgressBarIcon.js.map +1 -1
  1314. package/dist/icons/ReloadIcon.d.ts +2 -5
  1315. package/dist/icons/ReloadIcon.js +2 -3
  1316. package/dist/icons/ReloadIcon.js.map +1 -1
  1317. package/dist/icons/ReportIcon.d.ts +2 -5
  1318. package/dist/icons/ReportIcon.js +2 -3
  1319. package/dist/icons/ReportIcon.js.map +1 -1
  1320. package/dist/icons/ReturnIcon.d.ts +2 -5
  1321. package/dist/icons/ReturnIcon.js +2 -3
  1322. package/dist/icons/ReturnIcon.js.map +1 -1
  1323. package/dist/icons/RightIcon.d.ts +2 -5
  1324. package/dist/icons/RightIcon.js +2 -3
  1325. package/dist/icons/RightIcon.js.map +1 -1
  1326. package/dist/icons/RowTotalsIcon.d.ts +2 -5
  1327. package/dist/icons/RowTotalsIcon.js +2 -3
  1328. package/dist/icons/RowTotalsIcon.js.map +1 -1
  1329. package/dist/icons/SchemeIcon.d.ts +2 -5
  1330. package/dist/icons/SchemeIcon.js +2 -3
  1331. package/dist/icons/SchemeIcon.js.map +1 -1
  1332. package/dist/icons/SearchIcon.d.ts +2 -5
  1333. package/dist/icons/SearchIcon.js +2 -3
  1334. package/dist/icons/SearchIcon.js.map +1 -1
  1335. package/dist/icons/SemanticQueryIcon.d.ts +2 -5
  1336. package/dist/icons/SemanticQueryIcon.js +2 -3
  1337. package/dist/icons/SemanticQueryIcon.js.map +1 -1
  1338. package/dist/icons/SettingsIcon.d.ts +2 -5
  1339. package/dist/icons/SettingsIcon.js +2 -3
  1340. package/dist/icons/SettingsIcon.js.map +1 -1
  1341. package/dist/icons/ShieldFilledIcon.d.ts +2 -5
  1342. package/dist/icons/ShieldFilledIcon.js +2 -3
  1343. package/dist/icons/ShieldFilledIcon.js.map +1 -1
  1344. package/dist/icons/ShieldIcon.d.ts +2 -5
  1345. package/dist/icons/ShieldIcon.js +2 -3
  1346. package/dist/icons/ShieldIcon.js.map +1 -1
  1347. package/dist/icons/SlashIcon.d.ts +2 -5
  1348. package/dist/icons/SlashIcon.js +2 -3
  1349. package/dist/icons/SlashIcon.js.map +1 -1
  1350. package/dist/icons/SparklesIcon.d.ts +2 -5
  1351. package/dist/icons/SparklesIcon.js +2 -3
  1352. package/dist/icons/SparklesIcon.js.map +1 -1
  1353. package/dist/icons/SqlIcon.d.ts +2 -5
  1354. package/dist/icons/SqlIcon.js +2 -3
  1355. package/dist/icons/SqlIcon.js.map +1 -1
  1356. package/dist/icons/StatsIcon.d.ts +2 -5
  1357. package/dist/icons/StatsIcon.js +2 -3
  1358. package/dist/icons/StatsIcon.js.map +1 -1
  1359. package/dist/icons/StopIcon.d.ts +2 -5
  1360. package/dist/icons/StopIcon.js +2 -3
  1361. package/dist/icons/StopIcon.js.map +1 -1
  1362. package/dist/icons/StringIcon.d.ts +2 -5
  1363. package/dist/icons/StringIcon.js +2 -3
  1364. package/dist/icons/StringIcon.js.map +1 -1
  1365. package/dist/icons/SubtotalsIcon.d.ts +2 -5
  1366. package/dist/icons/SubtotalsIcon.js +2 -3
  1367. package/dist/icons/SubtotalsIcon.js.map +1 -1
  1368. package/dist/icons/SwitchIcon.d.ts +2 -5
  1369. package/dist/icons/SwitchIcon.js +2 -3
  1370. package/dist/icons/SwitchIcon.js.map +1 -1
  1371. package/dist/icons/TableIcon.d.ts +2 -5
  1372. package/dist/icons/TableIcon.js +2 -3
  1373. package/dist/icons/TableIcon.js.map +1 -1
  1374. package/dist/icons/ThumbsDownIcon.d.ts +2 -5
  1375. package/dist/icons/ThumbsDownIcon.js +2 -3
  1376. package/dist/icons/ThumbsDownIcon.js.map +1 -1
  1377. package/dist/icons/ThumbsUpIcon.d.ts +2 -5
  1378. package/dist/icons/ThumbsUpIcon.js +2 -3
  1379. package/dist/icons/ThumbsUpIcon.js.map +1 -1
  1380. package/dist/icons/ThunderboltCrossedIcon.d.ts +2 -5
  1381. package/dist/icons/ThunderboltCrossedIcon.js +2 -3
  1382. package/dist/icons/ThunderboltCrossedIcon.js.map +1 -1
  1383. package/dist/icons/ThunderboltFilledIcon.d.ts +2 -5
  1384. package/dist/icons/ThunderboltFilledIcon.js +2 -3
  1385. package/dist/icons/ThunderboltFilledIcon.js.map +1 -1
  1386. package/dist/icons/ThunderboltIcon.d.ts +2 -5
  1387. package/dist/icons/ThunderboltIcon.js +2 -3
  1388. package/dist/icons/ThunderboltIcon.js.map +1 -1
  1389. package/dist/icons/TimeIcon.d.ts +2 -5
  1390. package/dist/icons/TimeIcon.js +2 -3
  1391. package/dist/icons/TimeIcon.js.map +1 -1
  1392. package/dist/icons/TrashIcon.d.ts +2 -5
  1393. package/dist/icons/TrashIcon.js +2 -3
  1394. package/dist/icons/TrashIcon.js.map +1 -1
  1395. package/dist/icons/UnlockIcon.d.ts +2 -5
  1396. package/dist/icons/UnlockIcon.js +2 -3
  1397. package/dist/icons/UnlockIcon.js.map +1 -1
  1398. package/dist/icons/UpIcon.d.ts +2 -5
  1399. package/dist/icons/UpIcon.js +2 -3
  1400. package/dist/icons/UpIcon.js.map +1 -1
  1401. package/dist/icons/UserGroupIcon.d.ts +2 -5
  1402. package/dist/icons/UserGroupIcon.js +2 -3
  1403. package/dist/icons/UserGroupIcon.js.map +1 -1
  1404. package/dist/icons/UserIcon.d.ts +2 -5
  1405. package/dist/icons/UserIcon.js +2 -3
  1406. package/dist/icons/UserIcon.js.map +1 -1
  1407. package/dist/icons/UserLockIcon.d.ts +2 -5
  1408. package/dist/icons/UserLockIcon.js +2 -3
  1409. package/dist/icons/UserLockIcon.js.map +1 -1
  1410. package/dist/icons/ViewIcon.d.ts +2 -5
  1411. package/dist/icons/ViewIcon.js +2 -3
  1412. package/dist/icons/ViewIcon.js.map +1 -1
  1413. package/dist/icons/WarningFilledIcon.d.ts +2 -5
  1414. package/dist/icons/WarningFilledIcon.js +2 -3
  1415. package/dist/icons/WarningFilledIcon.js.map +1 -1
  1416. package/dist/icons/WarningIcon.d.ts +2 -5
  1417. package/dist/icons/WarningIcon.js +2 -3
  1418. package/dist/icons/WarningIcon.js.map +1 -1
  1419. package/dist/icons/index.d.ts +2 -1
  1420. package/dist/icons/wrap-icon.d.ts +2 -5
  1421. package/dist/icons/wrap-icon.js +2 -3
  1422. package/dist/icons/wrap-icon.js.map +1 -1
  1423. package/dist/index.d.ts +59 -61
  1424. package/dist/index.js +59 -64
  1425. package/dist/index.js.map +1 -1
  1426. package/dist/node_modules/.pnpm/csstype@3.1.2/node_modules/csstype/index.d.ts +3 -4
  1427. package/dist/probe/canonicalize.d.ts +3 -4
  1428. package/dist/probe/canonicalize.js +2 -2
  1429. package/dist/probe/canonicalize.js.map +1 -1
  1430. package/dist/probe/css.d.ts +4 -5
  1431. package/dist/probe/css.js +2 -3
  1432. package/dist/probe/css.js.map +1 -1
  1433. package/dist/probe/index.js +2 -3
  1434. package/dist/props.d.ts +1 -2
  1435. package/dist/provider.d.ts +3 -6
  1436. package/dist/provider.js +2 -3
  1437. package/dist/provider.js.map +1 -1
  1438. package/dist/providers/TrackingProvider.d.ts +1 -3
  1439. package/dist/providers/TrackingProvider.js +3 -4
  1440. package/dist/providers/TrackingProvider.js.map +1 -1
  1441. package/dist/providers/navigation-url.js +2 -2
  1442. package/dist/providers/navigation-url.js.map +1 -1
  1443. package/dist/providers/navigation.types.d.ts +7 -8
  1444. package/dist/providers/navigationAdapter.default.d.ts +1 -3
  1445. package/dist/providers/navigationAdapter.default.js +6 -4
  1446. package/dist/providers/navigationAdapter.default.js.map +1 -1
  1447. package/dist/providers/use-navigation.js +2 -3
  1448. package/dist/providers/use-navigation.js.map +1 -1
  1449. package/dist/shared/form.d.ts +14 -16
  1450. package/dist/shared/index.d.ts +4 -5
  1451. package/dist/tokens/all-tokens.d.ts +2 -4
  1452. package/dist/tokens/all-tokens.js +2 -3
  1453. package/dist/tokens/all-tokens.js.map +1 -1
  1454. package/dist/tokens/base.d.ts +1 -3
  1455. package/dist/tokens/base.js +38 -2
  1456. package/dist/tokens/base.js.map +1 -1
  1457. package/dist/tokens/color-seed.d.ts +2 -3
  1458. package/dist/tokens/color-seed.js +2 -3
  1459. package/dist/tokens/color-seed.js.map +1 -1
  1460. package/dist/tokens/color-theme.d.ts +5 -7
  1461. package/dist/tokens/color-theme.js +5 -6
  1462. package/dist/tokens/color-theme.js.map +1 -1
  1463. package/dist/tokens/colors.d.ts +3 -5
  1464. package/dist/tokens/colors.js +2 -3
  1465. package/dist/tokens/colors.js.map +1 -1
  1466. package/dist/tokens/index.d.ts +2 -1
  1467. package/dist/tokens/layout.d.ts +1 -3
  1468. package/dist/tokens/layout.js +7 -2
  1469. package/dist/tokens/layout.js.map +1 -1
  1470. package/dist/tokens/lazy-styles.js +2 -2
  1471. package/dist/tokens/lazy-styles.js.map +1 -1
  1472. package/dist/tokens/legacy-color.d.ts +3 -4
  1473. package/dist/tokens/legacy-color.js +2 -3
  1474. package/dist/tokens/legacy-color.js.map +1 -1
  1475. package/dist/tokens/palette-config.d.ts +19 -20
  1476. package/dist/tokens/palette-config.js +9 -24
  1477. package/dist/tokens/palette-config.js.map +1 -1
  1478. package/dist/tokens/palette.d.ts +6 -8
  1479. package/dist/tokens/palette.js +27 -84
  1480. package/dist/tokens/palette.js.map +1 -1
  1481. package/dist/tokens/resolve.d.ts +8 -9
  1482. package/dist/tokens/resolve.js +3 -4
  1483. package/dist/tokens/resolve.js.map +1 -1
  1484. package/dist/tokens/shadows.d.ts +1 -3
  1485. package/dist/tokens/shadows.js +6 -2
  1486. package/dist/tokens/shadows.js.map +1 -1
  1487. package/dist/tokens/sizes.d.ts +5 -7
  1488. package/dist/tokens/sizes.js +2 -2
  1489. package/dist/tokens/sizes.js.map +1 -1
  1490. package/dist/tokens/spacing.d.ts +1 -3
  1491. package/dist/tokens/spacing.js +2 -2
  1492. package/dist/tokens/spacing.js.map +1 -1
  1493. package/dist/tokens/typography.d.ts +2 -3
  1494. package/dist/tokens/typography.js +2 -2
  1495. package/dist/tokens/typography.js.map +1 -1
  1496. package/dist/utils/ResizeSensor.d.ts +1 -2
  1497. package/dist/utils/ResizeSensor.js +11 -9
  1498. package/dist/utils/ResizeSensor.js.map +1 -1
  1499. package/dist/utils/colors.js +3 -4
  1500. package/dist/utils/colors.js.map +1 -1
  1501. package/dist/utils/dotize.js +2 -2
  1502. package/dist/utils/dotize.js.map +1 -1
  1503. package/dist/utils/index.d.ts +2 -1
  1504. package/dist/utils/is-dev-env.js +2 -2
  1505. package/dist/utils/is-dev-env.js.map +1 -1
  1506. package/dist/utils/modules.d.ts +1 -2
  1507. package/dist/utils/modules.js +2 -2
  1508. package/dist/utils/modules.js.map +1 -1
  1509. package/dist/utils/promise.d.ts +1 -2
  1510. package/dist/utils/promise.js +2 -2
  1511. package/dist/utils/promise.js.map +1 -1
  1512. package/dist/utils/raf.d.ts +1 -2
  1513. package/dist/utils/raf.js +2 -2
  1514. package/dist/utils/raf.js.map +1 -1
  1515. package/dist/utils/random.d.ts +2 -3
  1516. package/dist/utils/random.js +3 -4
  1517. package/dist/utils/random.js.map +1 -1
  1518. package/dist/utils/range.d.ts +1 -2
  1519. package/dist/utils/range.js +2 -2
  1520. package/dist/utils/range.js.map +1 -1
  1521. package/dist/utils/react/RenderCache.d.ts +2 -9
  1522. package/dist/utils/react/RenderCache.js +2 -3
  1523. package/dist/utils/react/RenderCache.js.map +1 -1
  1524. package/dist/utils/react/Slots.d.ts +3 -6
  1525. package/dist/utils/react/Slots.js +2 -3
  1526. package/dist/utils/react/Slots.js.map +1 -1
  1527. package/dist/utils/react/chain.d.ts +1 -2
  1528. package/dist/utils/react/chain.js +2 -2
  1529. package/dist/utils/react/chain.js.map +1 -1
  1530. package/dist/utils/react/disabledProps.d.ts +4 -10
  1531. package/dist/utils/react/disabledProps.js +3 -3
  1532. package/dist/utils/react/disabledProps.js.map +1 -1
  1533. package/dist/utils/react/forwardRefWithGenerics.d.ts +2 -5
  1534. package/dist/utils/react/forwardRefWithGenerics.js +2 -2
  1535. package/dist/utils/react/forwardRefWithGenerics.js.map +1 -1
  1536. package/dist/utils/react/index.d.ts +1 -1
  1537. package/dist/utils/react/index.js +2 -3
  1538. package/dist/utils/react/interactions.js +2 -3
  1539. package/dist/utils/react/interactions.js.map +1 -1
  1540. package/dist/utils/react/isTextOnly.d.ts +1 -2
  1541. package/dist/utils/react/isTextOnly.js +2 -3
  1542. package/dist/utils/react/isTextOnly.js.map +1 -1
  1543. package/dist/utils/react/mapProps.js +2 -2
  1544. package/dist/utils/react/mapProps.js.map +1 -1
  1545. package/dist/utils/react/mergeProps.d.ts +2 -3
  1546. package/dist/utils/react/mergeProps.js +2 -3
  1547. package/dist/utils/react/mergeProps.js.map +1 -1
  1548. package/dist/utils/react/nullableValue.d.ts +1 -3
  1549. package/dist/utils/react/nullableValue.js +3 -3
  1550. package/dist/utils/react/nullableValue.js.map +1 -1
  1551. package/dist/utils/react/overlayKeyPropagation.js +3 -3
  1552. package/dist/utils/react/overlayKeyPropagation.js.map +1 -1
  1553. package/dist/utils/react/programmaticFocus.js +2 -2
  1554. package/dist/utils/react/programmaticFocus.js.map +1 -1
  1555. package/dist/utils/react/resolveIcon.d.ts +4 -6
  1556. package/dist/utils/react/resolveIcon.js +2 -2
  1557. package/dist/utils/react/resolveIcon.js.map +1 -1
  1558. package/dist/utils/react/sharedStore.js +2 -3
  1559. package/dist/utils/react/sharedStore.js.map +1 -1
  1560. package/dist/utils/react/useBufferedValue.d.ts +3 -4
  1561. package/dist/utils/react/useBufferedValue.js +2 -3
  1562. package/dist/utils/react/useBufferedValue.js.map +1 -1
  1563. package/dist/utils/react/useCombinedRefs.d.ts +2 -4
  1564. package/dist/utils/react/useCombinedRefs.js +2 -3
  1565. package/dist/utils/react/useCombinedRefs.js.map +1 -1
  1566. package/dist/utils/react/useControlledFocusVisible.d.ts +2 -3
  1567. package/dist/utils/react/useControlledFocusVisible.js +2 -3
  1568. package/dist/utils/react/useControlledFocusVisible.js.map +1 -1
  1569. package/dist/utils/react/useEventBus.d.ts +6 -10
  1570. package/dist/utils/react/useEventBus.js +2 -3
  1571. package/dist/utils/react/useEventBus.js.map +1 -1
  1572. package/dist/utils/react/useId.js +3 -4
  1573. package/dist/utils/react/useId.js.map +1 -1
  1574. package/dist/utils/react/useIsDarwin.js +2 -3
  1575. package/dist/utils/react/useIsDarwin.js.map +1 -1
  1576. package/dist/utils/react/useKeySymbols.js +2 -3
  1577. package/dist/utils/react/useKeySymbols.js.map +1 -1
  1578. package/dist/utils/react/useLayoutEffect.d.ts +0 -1
  1579. package/dist/utils/react/useLayoutEffect.js +2 -3
  1580. package/dist/utils/react/useLayoutEffect.js.map +1 -1
  1581. package/dist/utils/react/useLocalStorage.d.ts +2 -2
  1582. package/dist/utils/react/useLocalStorage.js +2 -3
  1583. package/dist/utils/react/useLocalStorage.js.map +1 -1
  1584. package/dist/utils/react/useMergeStyles.d.ts +1 -3
  1585. package/dist/utils/react/useMergeStyles.js +4 -4
  1586. package/dist/utils/react/useMergeStyles.js.map +1 -1
  1587. package/dist/utils/react/useOverlayEscapeGuard.js +2 -3
  1588. package/dist/utils/react/useOverlayEscapeGuard.js.map +1 -1
  1589. package/dist/utils/react/usePopoverSync.d.ts +3 -14
  1590. package/dist/utils/react/usePopoverSync.js +2 -3
  1591. package/dist/utils/react/usePopoverSync.js.map +1 -1
  1592. package/dist/utils/react/useQaProps.d.ts +2 -2
  1593. package/dist/utils/react/useQaProps.js +6 -4
  1594. package/dist/utils/react/useQaProps.js.map +1 -1
  1595. package/dist/utils/react/useScheme.d.ts +6 -7
  1596. package/dist/utils/react/useScheme.js +2 -3
  1597. package/dist/utils/react/useScheme.js.map +1 -1
  1598. package/dist/utils/react/useViewportSize.d.ts +3 -3
  1599. package/dist/utils/react/useViewportSize.js +2 -3
  1600. package/dist/utils/react/useViewportSize.js.map +1 -1
  1601. package/dist/utils/react/wrapNodeIfPlain.d.ts +1 -3
  1602. package/dist/utils/react/wrapNodeIfPlain.js +2 -3
  1603. package/dist/utils/react/wrapNodeIfPlain.js.map +1 -1
  1604. package/dist/utils/selection.d.ts +1 -3
  1605. package/dist/utils/selection.js +2 -2
  1606. package/dist/utils/selection.js.map +1 -1
  1607. package/dist/utils/styles.d.ts +1 -3
  1608. package/dist/utils/styles.js +2 -3
  1609. package/dist/utils/styles.js.map +1 -1
  1610. package/dist/utils/tree.d.ts +1 -2
  1611. package/dist/utils/tree.js +2 -2
  1612. package/dist/utils/tree.js.map +1 -1
  1613. package/dist/utils/warnings.d.ts +1 -2
  1614. package/dist/utils/warnings.js +2 -3
  1615. package/dist/utils/warnings.js.map +1 -1
  1616. package/dist/version.d.ts +1 -0
  1617. package/dist/version.js +3 -3
  1618. package/dist/version.js.map +1 -1
  1619. package/package.json +4 -4
  1620. package/dist/i18n/useI18n.d.ts +0 -2
@@ -1 +1 @@
1
- {"version":3,"file":"CommandMenu.js","names":["useObjectRef","useSyncRef","CollectionChildren","FocusStrategy","Key","BasePropsWithoutChildren","CONTAINER_STYLES","ContainerStyleProps","filterBaseProps","Styles","React","KeyboardEvent","ReactElement","ReactNode","Ref","useId","useRef","useState","useFilter","useMenu","Section","useTreeState","useI18n","LoadingIcon","mergeProps","extractStyles","mergeStyleLayers","useMenuContext","CubeMenuProps","getMenuItemReactKey","MenuCollectionItem","Item","MenuItem","MenuSection","MenuTrigger","StyledDivider","StyledFooter","StyledHeader","StyledMenu","StyledCommandMenu","StyledEmptyState","StyledLoadingWrapper","StyledSearchInput","collectItemKeys","nodes","Iterable","keys","node","type","childNodes","push","key","getNextEnabledKey","currentKey","direction","isDisabled","isEnabled","index","indexOf","ahead","slice","Math","max","reverse","ordered","find","CommandMenuItem","id","textValue","keywords","forceMount","CubeCommandMenuProps","Omit","T","searchPlaceholder","searchValue","onSearchChange","value","filter","inputValue","emptyLabel","searchInputStyles","headerStyles","footerStyles","isLoading","shouldFilter","autoFocus","size","selectedKeys","defaultSelectedKeys","onSelectionChange","CommandMenu","props","ref","$","_c","t","t0","controlledSearchValue","customFilter","t1","t2","t3","t4","t5","qa","styles","onAction","header","footer","restMenuProps","t6","undefined","t7","domRef","searchInputRef","instanceId","menuId","contextProps","ariaSelectedKeys","Set","ariaDefaultSelectedKeys","handleSelectionChange","allKeys","Array","from","treeState","collection","getKeys","map","_temp","_temp2","t8","key_1","completeProps","internalSearchValue","setInternalSearchValue","t9","handleSearchChange","t10","Symbol","for","sensitivity","contains","t11","item","searchWords","trim","toLowerCase","split","_temp3","length","searchableTexts","isArray","_temp4","every","searchWord","some","text","includes","enhancedFilter","t12","term","searchWords_0","_temp5","filterNodes","iter","result","filteredChildren","text_0","String","rendered","collectionFilter","treeStateProps","children","shouldUseVirtualFocus","itemId","key_2","item_0","getItem","actions","href","encodeURIComponent","collectionItems","_temp6","focusedKey","selectionManager","filteredCollectionItems","hasFilteredItems","viewHasSections","_temp7","findFirstSelectableItem","key_3","menuRef","menuProps","renderedItems","isFirstSection","forEach","item_3","reactKey","sectionStyles","itemStyles","sectionHeadingStyles","menuItem","wrapper","cloneElement","t13","t14","current","timeoutId","setTimeout","focus","clearTimeout","useEffect","t15","t16","timeoutId_0","prevSearchValueRef","currentSearchValue","prevSearchValue","firstSelectableKey","setFocusedKey","handleArrowKey","e","preventDefault","nextKey","key_4","handleActionKey","e_0","stopPropagation","repeat","item_4","ownerDocument","getElementById","shouldActivate","dispatchEvent","window","code","ctrlKey","metaKey","altKey","shiftKey","bubbles","cancelable","MouseEvent","detail","handleSearchKeyDown","e_1","nativeEvent","isComposing","extractedStyles","t17","hasSearchTerm","showEmptyState","activeDescendant","t18","t19","t20","mods","popover","t21","tray","t22","sections","t23","t24","Record","wrapperProps","_ariaLabel","_ariaLabelledBy","_ariaDescribedBy","_ariaDetails","t25","T0","t26","t27","border","t28","t29","t30","t31","t32","t33","e_2","target","t34","t35","t36","boxShadow","radius","padding","t37","t38","t39","item_2","item_1","word_0","word","keyword","key_0","_CommandMenu","forwardRef","RefAttributes","HTMLDivElement","__CommandMenu","Object","assign","Trigger","displayName"],"sources":["../../../../src/components/actions/CommandMenu/CommandMenu.tsx"],"sourcesContent":["import { useObjectRef, useSyncRef } from '@react-aria/utils';\nimport { CollectionChildren, FocusStrategy, Key } from '@react-types/shared';\nimport {\n BasePropsWithoutChildren,\n CONTAINER_STYLES,\n ContainerStyleProps,\n filterBaseProps,\n Styles,\n} from '@tenphi/tasty';\nimport React, {\n KeyboardEvent,\n ReactElement,\n ReactNode,\n Ref,\n useId,\n useRef,\n useState,\n} from 'react';\nimport { useFilter, useMenu } from 'react-aria';\nimport { Section, useTreeState } from 'react-stately';\n\nimport { useI18n } from '../../../i18n';\nimport { LoadingIcon } from '../../../icons/LoadingIcon';\nimport { mergeProps } from '../../../utils/react';\nimport { extractStyles, mergeStyleLayers } from '../../../utils/styles';\nimport { useMenuContext } from '../Menu/context';\nimport { CubeMenuProps } from '../Menu/Menu';\nimport {\n getMenuItemReactKey,\n MenuCollectionItem as Item,\n} from '../Menu/MenuCollectionItem';\nimport { MenuItem } from '../Menu/MenuItem';\nimport { MenuSection } from '../Menu/MenuSection';\nimport { MenuTrigger } from '../Menu/MenuTrigger';\nimport {\n StyledDivider,\n StyledFooter,\n StyledHeader,\n StyledMenu,\n} from '../Menu/styled';\n\nimport {\n StyledCommandMenu,\n StyledEmptyState,\n StyledLoadingWrapper,\n StyledSearchInput,\n} from './styled';\n\n/** The keys of the items in `nodes`, in order, including those in sections. */\nfunction collectItemKeys(nodes: Iterable<any>, keys: Key[] = []): Key[] {\n for (const node of nodes) {\n if (node?.type === 'section') {\n collectItemKeys(node.childNodes ?? [], keys);\n } else if (node?.type === 'item') {\n keys.push(node.key);\n }\n }\n\n return keys;\n}\n\n/**\n * The key an arrow press moves to: the next enabled key after `currentKey` in\n * `direction`, wrapping round to the first enabled key in that direction (the\n * last one going up). With nothing focused, or the focused key filtered out,\n * it returns that key.\n */\nfunction getNextEnabledKey(\n keys: Key[],\n currentKey: Key | null,\n direction: 1 | -1,\n isDisabled: (key: Key) => boolean,\n): Key | null {\n const isEnabled = (key: Key) => !isDisabled(key);\n const index = currentKey == null ? -1 : keys.indexOf(currentKey);\n const ahead =\n direction === 1\n ? keys.slice(index + 1)\n : keys.slice(0, Math.max(index, 0)).reverse();\n const ordered = direction === 1 ? keys : [...keys].reverse();\n\n return ahead.find(isEnabled) ?? ordered.find(isEnabled) ?? null;\n}\n\nexport interface CommandMenuItem {\n // Standard item props\n id: string;\n textValue: string;\n\n // Enhanced search features\n keywords?: string[];\n forceMount?: boolean;\n\n // Standard Menu item props inherited\n [key: string]: any;\n}\n\nexport interface CubeCommandMenuProps<T>\n extends BasePropsWithoutChildren,\n ContainerStyleProps,\n Omit<\n CubeMenuProps<T>,\n 'selectedKeys' | 'defaultSelectedKeys' | 'onSelectionChange'\n > {\n // Search-specific props\n searchPlaceholder?: string;\n searchValue?: string;\n onSearchChange?: (value: string) => void;\n filter?: (textValue: string, inputValue: string) => boolean;\n emptyLabel?: ReactNode;\n searchInputStyles?: Styles;\n headerStyles?: Styles;\n footerStyles?: Styles;\n\n // Advanced search features\n isLoading?: boolean;\n shouldFilter?: boolean;\n\n // Focus management - override the autoFocus from CubeMenuProps to allow boolean | FocusStrategy\n autoFocus?: boolean | FocusStrategy;\n\n // Size prop\n size?: 'medium' | 'large' | (string & {});\n\n /** Currently selected keys (controlled) */\n selectedKeys?: string[];\n /** Initially selected keys (uncontrolled) */\n defaultSelectedKeys?: string[];\n /** Handler for selection changes */\n onSelectionChange?: (keys: string[]) => void;\n}\n\nfunction CommandMenu<T extends object>(\n props: CubeCommandMenuProps<T>,\n ref: Ref<HTMLDivElement>,\n) {\n const { t } = useI18n();\n\n const {\n searchPlaceholder = t(\n 'commandMenu.searchPlaceholder',\n 'Search commands...',\n ),\n searchValue: controlledSearchValue,\n onSearchChange,\n filter: customFilter,\n emptyLabel = t('commandMenu.empty', 'No commands found'),\n searchInputStyles,\n headerStyles,\n footerStyles,\n isLoading = false,\n shouldFilter = true,\n autoFocus = true,\n size = 'medium',\n qa,\n styles,\n selectedKeys,\n defaultSelectedKeys,\n onSelectionChange,\n onAction,\n header,\n footer,\n ...restMenuProps\n } = props;\n\n const domRef = useObjectRef(ref);\n const searchInputRef = useRef<HTMLInputElement>(null);\n const instanceId = useId();\n const menuId = `${qa || 'CommandMenu'}-${instanceId}-menu`;\n const contextProps = useMenuContext();\n\n // Convert string[] to Set<Key> for React Aria compatibility\n const ariaSelectedKeys = selectedKeys ? new Set(selectedKeys) : undefined;\n const ariaDefaultSelectedKeys = defaultSelectedKeys\n ? new Set(defaultSelectedKeys)\n : undefined;\n\n const handleSelectionChange = onSelectionChange\n ? (keys: 'all' | Set<Key>) => {\n if (keys === 'all') {\n // Handle 'all' selection case - collect all available keys\n const allKeys = Array.from(treeState.collection.getKeys()).map(\n (key: any) => String(key),\n );\n onSelectionChange(allKeys);\n } else if (keys instanceof Set) {\n onSelectionChange(Array.from(keys).map((key) => String(key)));\n } else {\n onSelectionChange([]);\n }\n }\n : undefined;\n\n const completeProps = mergeProps(contextProps, restMenuProps, {\n onAction: onAction ? (key: Key) => onAction(key) : undefined,\n selectedKeys: ariaSelectedKeys,\n defaultSelectedKeys: ariaDefaultSelectedKeys,\n onSelectionChange: handleSelectionChange,\n });\n\n // Search state management\n const [internalSearchValue, setInternalSearchValue] = useState('');\n const searchValue = controlledSearchValue ?? internalSearchValue;\n\n const handleSearchChange = (value: string) => {\n if (controlledSearchValue === undefined) {\n setInternalSearchValue(value);\n }\n onSearchChange?.(value);\n };\n\n // Filter setup\n const { contains } = useFilter({ sensitivity: 'base' });\n const textFilterFn = customFilter || contains;\n\n // Enhanced filter function that supports keywords and forceMount\n const enhancedFilter = (\n textValue: string,\n inputValue: string,\n item?: any,\n ) => {\n // Always show force-mounted items\n if (item?.forceMount) {\n return true;\n }\n\n // If shouldFilter is false, show all items\n if (!shouldFilter) {\n return true;\n }\n\n // Split input value into individual words and filter out empty strings\n const searchWords = inputValue\n .trim()\n .toLowerCase()\n .split(/\\s+/)\n .filter((word) => word.length > 0);\n\n // If no search words, show all items\n if (searchWords.length === 0) {\n return true;\n }\n\n // Collect all searchable text for this item\n const searchableTexts: string[] = [];\n\n // Add main text value\n searchableTexts.push(textValue.toLowerCase());\n\n // Add keywords if available\n if (item?.keywords && Array.isArray(item.keywords)) {\n searchableTexts.push(\n ...item.keywords.map((keyword: string) => keyword.toLowerCase()),\n );\n }\n\n // Check if ALL search words match at least one of the searchable texts\n return searchWords.every((searchWord) =>\n searchableTexts.some((text) => text.includes(searchWord)),\n );\n };\n\n // Collection filter for React Stately\n const collectionFilter = (nodes: Iterable<any>): Iterable<any> => {\n const term = searchValue.trim();\n\n // If no search term, return all nodes\n if (!term) {\n return nodes;\n }\n\n // Split search term into words for multi-word filtering\n const searchWords = term\n .toLowerCase()\n .split(/\\s+/)\n .filter((word) => word.length > 0);\n\n // If no valid search words, return all nodes\n if (searchWords.length === 0) {\n return nodes;\n }\n\n // Recursive helper to filter sections and items\n const filterNodes = (iter: Iterable<any>): any[] => {\n const result: any[] = [];\n\n for (const node of iter) {\n if (node.type === 'section') {\n const filteredChildren = filterNodes(node.childNodes);\n\n if (filteredChildren.length) {\n result.push({\n ...node,\n childNodes: filteredChildren,\n });\n }\n } else {\n const text = node.textValue ?? String(node.rendered ?? '');\n\n if (enhancedFilter(text, term, node.props)) {\n result.push(node);\n }\n }\n }\n\n return result;\n };\n\n return filterNodes(nodes);\n };\n\n // Create tree state with filter for both keyboard navigation and rendering\n const treeStateProps = {\n ...completeProps,\n children: completeProps.children as CollectionChildren<T>,\n filter: collectionFilter,\n shouldUseVirtualFocus: true, // Always use virtual focus for CommandMenu\n };\n\n const treeState = useTreeState(treeStateProps);\n const itemId = (key: Key) => {\n const item = treeState.collection.getItem(key);\n const actions = item?.props.actions;\n // A plain command's layout and semantic target share the consumer's DOM id.\n if (\n item?.props.id != null &&\n item.props.href == null &&\n (!actions || actions === true)\n )\n return String(item.props.id);\n return `${menuId}-option-${typeof key}-${encodeURIComponent(String(key))}`;\n };\n\n const collectionItems = [...treeState.collection];\n const hasSections = collectionItems.some((item) => item.type === 'section');\n\n const focusedKey = treeState.selectionManager.focusedKey;\n\n // Apply filtering to collection items for rendering and empty state checks\n const filteredCollectionItems = [...collectionFilter(collectionItems)];\n\n const hasFilteredItems = filteredCollectionItems.length > 0;\n const viewHasSections = filteredCollectionItems.some(\n (item) => item.type === 'section',\n );\n\n // Helper function to find the first selectable item from filtered results\n const findFirstSelectableItem = () =>\n collectItemKeys(filteredCollectionItems).find(\n (key) => !treeState.selectionManager.isDisabled(key),\n ) ?? null;\n\n // Create a ref for the menu container\n const menuRef = useRef<HTMLUListElement>(null);\n\n // Use menu hook for accessibility\n const { menuProps } = useMenu(\n {\n ...completeProps,\n 'aria-label': t('commandMenu.menu', 'Command menu'),\n shouldUseVirtualFocus: true,\n },\n treeState,\n menuRef,\n );\n\n // Manual rendering of menu items (similar to Menu component)\n const renderedItems: React.ReactNode[] = [];\n let isFirstSection = true;\n\n filteredCollectionItems.forEach((item) => {\n const reactKey = getMenuItemReactKey(item.key);\n if (item.type === 'section') {\n if (!isFirstSection) {\n renderedItems.push(\n <StyledDivider\n key={`divider-${reactKey}`}\n role=\"separator\"\n aria-orientation=\"horizontal\"\n />,\n );\n }\n\n renderedItems.push(\n <MenuSection\n key={reactKey}\n item={item}\n state={treeState}\n styles={completeProps.sectionStyles}\n itemStyles={completeProps.itemStyles}\n headingStyles={completeProps.sectionHeadingStyles}\n size={size}\n itemId={itemId}\n />,\n );\n\n isFirstSection = false;\n return;\n }\n\n let menuItem = (\n <MenuItem\n key={reactKey}\n item={item}\n state={treeState}\n styles={completeProps.itemStyles}\n size={size}\n id={itemId(item.key)}\n />\n );\n\n // Apply custom wrapper if provided\n if (item.props.wrapper) {\n menuItem = item.props.wrapper(menuItem);\n }\n\n // Ensure every child has a stable key, even if the wrapper component didn't set one.\n renderedItems.push(React.cloneElement(menuItem, { key: reactKey }));\n });\n\n // Auto-focus search input\n React.useEffect(() => {\n if (autoFocus && searchInputRef.current) {\n // Use a small timeout to ensure the element is visible and focusable\n // This is especially important when the CommandMenu is opened in a popover\n const timeoutId = setTimeout(() => {\n if (searchInputRef.current) {\n searchInputRef.current.focus();\n }\n }, 0);\n\n return () => clearTimeout(timeoutId);\n }\n }, [autoFocus]);\n\n // Also focus when the component becomes visible (for trigger/popover usage)\n React.useEffect(() => {\n // Check if autoFocus is enabled and we're in a trigger context\n if (autoFocus && contextProps.autoFocus && searchInputRef.current) {\n // Use a small timeout to ensure the popover is fully rendered\n const timeoutId = setTimeout(() => {\n if (searchInputRef.current) {\n searchInputRef.current.focus();\n }\n }, 50); // Slightly longer timeout for popover context\n\n return () => clearTimeout(timeoutId);\n }\n }, [autoFocus, contextProps.autoFocus]);\n\n // Track the previous search value to only run auto-focus when search actually changes\n const prevSearchValueRef = useRef<string>('');\n\n // Auto-focus first item when search value changes (but not on initial render)\n React.useEffect(() => {\n const currentSearchValue = searchValue.trim();\n const prevSearchValue = prevSearchValueRef.current;\n\n // Only auto-focus when search value actually changes\n if (currentSearchValue !== prevSearchValue && currentSearchValue !== '') {\n const firstSelectableKey = findFirstSelectableItem();\n\n if (firstSelectableKey != null && hasFilteredItems) {\n // Focus the first item in the selection manager\n treeState.selectionManager.setFocusedKey(firstSelectableKey);\n } else {\n // Clear focus if no items are available\n treeState.selectionManager.setFocusedKey(null);\n }\n }\n\n // Update the previous search value\n prevSearchValueRef.current = currentSearchValue;\n }, [searchValue, findFirstSelectableItem, hasFilteredItems]);\n\n // ---- search input keyboard ----------------------------------------------\n const handleArrowKey = (e: KeyboardEvent<HTMLInputElement>) => {\n e.preventDefault();\n\n const { selectionManager } = treeState;\n const currentKey = selectionManager.focusedKey;\n const nextKey = getNextEnabledKey(\n collectItemKeys(filteredCollectionItems),\n currentKey,\n e.key === 'ArrowDown' ? 1 : -1,\n (key) => selectionManager.isDisabled(key),\n );\n\n if (nextKey != null) {\n selectionManager.setFocusedKey(nextKey);\n }\n };\n\n // Use the rendered item's Aria handlers for commands, selection and navigation.\n const handleActionKey = (e: KeyboardEvent<HTMLInputElement>) => {\n e.preventDefault();\n e.stopPropagation();\n if (\n e.repeat ||\n focusedKey == null ||\n treeState.selectionManager.isDisabled(focusedKey)\n )\n return;\n const item = menuRef.current?.ownerDocument.getElementById(\n itemId(focusedKey),\n );\n if (!item || !menuRef.current?.contains(item)) return;\n const shouldActivate = item.dispatchEvent(\n new window.KeyboardEvent('keydown', {\n key: e.key,\n code: e.code,\n ctrlKey: e.ctrlKey,\n metaKey: e.metaKey,\n altKey: e.altKey,\n shiftKey: e.shiftKey,\n bubbles: true,\n cancelable: true,\n }),\n );\n // An anchor's Enter handler leaves its native default action to the browser.\n if (shouldActivate && e.key === 'Enter') {\n item.dispatchEvent(\n new window.MouseEvent('click', {\n ctrlKey: e.ctrlKey,\n metaKey: e.metaKey,\n altKey: e.altKey,\n shiftKey: e.shiftKey,\n bubbles: true,\n cancelable: true,\n detail: 1,\n }),\n );\n }\n // The real keyup belongs to the search input, so balance the item's press here.\n item.dispatchEvent(\n new window.KeyboardEvent('keyup', {\n key: e.key,\n code: e.code,\n ctrlKey: e.ctrlKey,\n metaKey: e.metaKey,\n altKey: e.altKey,\n shiftKey: e.shiftKey,\n bubbles: true,\n cancelable: true,\n }),\n );\n };\n\n const handleSearchKeyDown = (e: KeyboardEvent<HTMLInputElement>) => {\n if (e.nativeEvent.isComposing) return;\n if (e.key === 'ArrowDown' || e.key === 'ArrowUp') {\n handleArrowKey(e);\n } else if (e.key === 'Enter' || (e.key === ' ' && !searchValue.trim())) {\n handleActionKey(e);\n } else if (e.key === 'Escape' && searchValue) {\n e.preventDefault();\n handleSearchChange('');\n }\n };\n\n // Extract styles\n const extractedStyles = extractStyles(props, CONTAINER_STYLES);\n\n // Determine if we should show empty state based on actual filtered collection\n const hasSearchTerm = searchValue.trim().length > 0;\n const showEmptyState = hasSearchTerm && !hasFilteredItems && !isLoading;\n const activeDescendant =\n !isLoading &&\n !showEmptyState &&\n focusedKey != null &&\n collectItemKeys(filteredCollectionItems).includes(focusedKey)\n ? itemId(focusedKey)\n : undefined;\n\n // Sync refs\n useSyncRef(contextProps, menuRef);\n\n // Determine mods based on menu context\n const mods = {\n sections: viewHasSections,\n footer: !!footer,\n header: !!header,\n popover: completeProps.mods?.popover,\n tray: completeProps.mods?.tray,\n };\n\n const {\n 'aria-label': _ariaLabel,\n 'aria-labelledby': _ariaLabelledBy,\n 'aria-describedby': _ariaDescribedBy,\n 'aria-details': _ariaDetails,\n ...wrapperProps\n } = filterBaseProps(props) as Record<string, unknown>;\n\n return (\n <StyledCommandMenu\n {...wrapperProps}\n ref={domRef}\n qa={qa || 'CommandMenu'}\n data-size={size}\n mods={mods}\n styles={mergeStyleLayers(extractedStyles, styles)}\n >\n {/* Header */}\n {header && (\n <StyledHeader\n role=\"presentation\"\n data-size={size}\n styles={mergeStyleLayers({ border: 'none' }, headerStyles)}\n >\n {header}\n </StyledHeader>\n )}\n\n {/* Search Input */}\n <StyledSearchInput\n ref={searchInputRef}\n type=\"search\"\n placeholder={searchPlaceholder}\n value={searchValue}\n styles={searchInputStyles}\n data-size={size}\n aria-label={completeProps['aria-label'] ?? searchPlaceholder}\n aria-labelledby={completeProps['aria-labelledby']}\n aria-describedby={completeProps['aria-describedby']}\n aria-details={completeProps['aria-details']}\n aria-controls={!isLoading && !showEmptyState ? menuId : undefined}\n role=\"searchbox\"\n aria-activedescendant={activeDescendant}\n onChange={(e) => handleSearchChange(e.target.value)}\n onKeyDown={handleSearchKeyDown}\n />\n\n {/* Loading State */}\n {isLoading && (\n <StyledLoadingWrapper>\n <LoadingIcon\n role=\"progressbar\"\n aria-label={t('commandMenu.loading', 'Loading commands')}\n aria-hidden={false}\n />\n </StyledLoadingWrapper>\n )}\n\n {/* Menu Content - always render unless loading */}\n {!isLoading && !showEmptyState && (\n <StyledMenu\n {...menuProps}\n ref={menuRef}\n id={menuId}\n aria-label={t('commandMenu.menu', 'Command menu')}\n qa=\"Menu\"\n data-size={size}\n mods={mods}\n styles={{\n border: 'none',\n boxShadow: 'none',\n radius: 0,\n padding: '0.5x',\n }}\n >\n {renderedItems}\n </StyledMenu>\n )}\n\n {/* Empty State - show when search term exists but no results */}\n {!isLoading && showEmptyState && (\n <StyledEmptyState>{emptyLabel}</StyledEmptyState>\n )}\n\n {/* Footer */}\n {footer && (\n <StyledFooter\n role=\"presentation\"\n data-size={size}\n styles={footerStyles}\n >\n {footer}\n </StyledFooter>\n )}\n </StyledCommandMenu>\n );\n}\n\n// forwardRef doesn't support generic parameters, so cast the result to the correct type\nconst _CommandMenu = React.forwardRef(CommandMenu) as <T>(\n props: CubeCommandMenuProps<T> & React.RefAttributes<HTMLDivElement>,\n) => ReactElement;\n\n// Attach Trigger alias from MenuTrigger for consistent API\n// Also attach Item and Section for compound component pattern\nconst __CommandMenu = Object.assign(_CommandMenu, {\n Trigger: MenuTrigger,\n Item,\n Section,\n displayName: 'CommandMenu',\n});\n\nexport { __CommandMenu as CommandMenu };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAiDA,SAAS2C,gBAAgBC,OAAsBE,OAAc,EAAE,EAAS;AACtE,MAAK,MAAMC,QAAQH,MACjB,KAAIG,MAAMC,SAAS,UACjBL,iBAAgBI,KAAKE,cAAc,EAAE,EAAEH,KAAK;UACnCC,MAAMC,SAAS,OACxBF,MAAKI,KAAKH,KAAKI,IAAI;AAIvB,QAAOL;;;;;;;;AAST,SAASM,kBACPN,MACAO,YACAC,WACAC,YACY;CACZ,MAAMC,aAAaL,QAAa,CAACI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AnL,IAAA,MAAAoB;AAAApB,IAAA,MAAAoK;AAAApK,IAAA,MAAAP;AAAAO,IAAA,MAAAkL;AAAAlL,IAAA,MAAAoL;AAAApL,IAAA,MAAAqL;AAAArL,IAAA,MAAA+L;AAAA/L,IAAA,MAAAgM;AAAAhM,IAAA,MAAAiM;AAAAjM,IAAA,MAAAqM;AAAArM,IAAA,MAAAsM;AAAAtM,IAAA,MAAA6K;AAAA7K,IAAA,MAAAuM;OAAAA,OAAAvM,EAAA;AAAA,QArFpBuM;;AA/cJ,SAAAvG,OAAAwG,QAAA;AAAA,QAmNcrJ,OAAIjG,SAAU;;AAnN5B,SAAAwI,OAAA+G,QAAA;AAAA,QA0MqDtJ,OAAIjG,SAAU;;AA1MnE,SAAAoH,OAAAoI,QAAA;AAAA,QA+IwBC,OAAIlJ,SAAU;;AA/ItC,SAAAG,OAAAgJ,SAAA;AAAA,QAwHkDA,QAAOtJ,aAAc;;AAxHvE,SAAAE,OAAAmJ,MAAA;AAAA,QAwGwBA,KAAIlJ,SAAU;;AAxGtC,SAAApB,OAAAwK,OAAA;AAAA,QAsD0DjI,OAAOvH,MAAI;;AAtDrE,SAAA+E,MAAA/E,KAAA;AAAA,QAkD0BuH,OAAOvH,IAAI;;AAufrC,MAAMyP,eAAelS,MAAMmS,WAAWlN,YAAY;AAMlD,MAAMqN,gBAAgBC,OAAOC,OAAON,cAAc;CAChDO,SAASjR;CACTH;CACAX;CACAgS,aAAa;CACd,CAAC"}
1
+ {"version":3,"file":"CommandMenu.js","names":["useObjectRef","useSyncRef","CollectionChildren","FocusStrategy","Key","BasePropsWithoutChildren","CONTAINER_STYLES","ContainerStyleProps","filterBaseProps","Styles","React","KeyboardEvent","ReactElement","ReactNode","Ref","useId","useRef","useState","useFilter","useMenu","Section","useTreeState","useI18n","LoadingIcon","mergeProps","extractStyles","mergeStyleLayers","useMenuContext","CubeMenuProps","getMenuItemReactKey","MenuCollectionItem","Item","MenuItem","MenuSection","MenuTrigger","StyledDivider","StyledFooter","StyledHeader","StyledMenu","StyledCommandMenu","StyledEmptyState","StyledLoadingWrapper","StyledSearchInput","collectItemKeys","nodes","Iterable","keys","node","type","childNodes","push","key","getNextEnabledKey","currentKey","direction","isDisabled","isEnabled","index","indexOf","ahead","slice","Math","max","reverse","ordered","find","CommandMenuItem","id","textValue","keywords","forceMount","CubeCommandMenuProps","Omit","T","searchPlaceholder","searchValue","onSearchChange","value","filter","inputValue","emptyLabel","searchInputStyles","headerStyles","footerStyles","isLoading","shouldFilter","autoFocus","size","selectedKeys","defaultSelectedKeys","onSelectionChange","CommandMenu","props","ref","$","_c","t","t0","controlledSearchValue","customFilter","t1","t2","t3","t4","t5","qa","styles","onAction","header","footer","restMenuProps","t6","undefined","t7","domRef","searchInputRef","instanceId","menuId","contextProps","ariaSelectedKeys","Set","ariaDefaultSelectedKeys","handleSelectionChange","allKeys","Array","from","treeState","collection","getKeys","map","_temp","_temp2","t8","key_1","completeProps","internalSearchValue","setInternalSearchValue","t9","handleSearchChange","t10","Symbol","for","sensitivity","contains","t11","item","searchWords","trim","toLowerCase","split","_temp3","length","searchableTexts","isArray","_temp4","every","searchWord","some","text","includes","enhancedFilter","t12","term","searchWords_0","_temp5","filterNodes","iter","result","filteredChildren","text_0","String","rendered","collectionFilter","treeStateProps","children","shouldUseVirtualFocus","itemId","key_2","item_0","getItem","actions","href","encodeURIComponent","collectionItems","_temp6","focusedKey","selectionManager","filteredCollectionItems","hasFilteredItems","viewHasSections","_temp7","findFirstSelectableItem","key_3","menuRef","menuProps","renderedItems","isFirstSection","forEach","item_3","reactKey","sectionStyles","itemStyles","sectionHeadingStyles","menuItem","wrapper","cloneElement","t13","t14","current","timeoutId","setTimeout","focus","clearTimeout","useEffect","t15","t16","timeoutId_0","prevSearchValueRef","currentSearchValue","prevSearchValue","firstSelectableKey","setFocusedKey","handleArrowKey","e","preventDefault","nextKey","key_4","handleActionKey","e_0","stopPropagation","repeat","item_4","ownerDocument","getElementById","shouldActivate","dispatchEvent","window","code","ctrlKey","metaKey","altKey","shiftKey","bubbles","cancelable","MouseEvent","detail","handleSearchKeyDown","e_1","nativeEvent","isComposing","extractedStyles","t17","hasSearchTerm","showEmptyState","activeDescendant","t18","t19","t20","mods","popover","t21","tray","t22","sections","t23","t24","Record","wrapperProps","_ariaLabel","_ariaLabelledBy","_ariaDescribedBy","_ariaDetails","t25","T0","t26","t27","border","t28","t29","t30","t31","t32","t33","e_2","target","t34","t35","t36","boxShadow","radius","padding","t37","t38","t39","item_2","item_1","word_0","word","keyword","key_0","_CommandMenu","forwardRef","RefAttributes","HTMLDivElement","__CommandMenu","Object","assign","Trigger","displayName","_c","mergeProps","MenuTrigger"],"sources":["../../../../src/components/actions/CommandMenu/CommandMenu.tsx"],"sourcesContent":["import { useObjectRef, useSyncRef } from '@react-aria/utils';\nimport { CollectionChildren, FocusStrategy, Key } from '@react-types/shared';\nimport {\n BasePropsWithoutChildren,\n CONTAINER_STYLES,\n ContainerStyleProps,\n filterBaseProps,\n Styles,\n} from '@tenphi/tasty';\nimport React, {\n KeyboardEvent,\n ReactElement,\n ReactNode,\n Ref,\n useId,\n useRef,\n useState,\n} from 'react';\nimport { useFilter, useMenu } from 'react-aria';\nimport { Section, useTreeState } from 'react-stately';\n\nimport { useI18n } from '../../../i18n';\nimport { LoadingIcon } from '../../../icons/LoadingIcon';\nimport { mergeProps } from '../../../utils/react';\nimport { extractStyles, mergeStyleLayers } from '../../../utils/styles';\nimport { useMenuContext } from '../Menu/context';\nimport { CubeMenuProps } from '../Menu/Menu';\nimport {\n getMenuItemReactKey,\n MenuCollectionItem as Item,\n} from '../Menu/MenuCollectionItem';\nimport { MenuItem } from '../Menu/MenuItem';\nimport { MenuSection } from '../Menu/MenuSection';\nimport { MenuTrigger } from '../Menu/MenuTrigger';\nimport {\n StyledDivider,\n StyledFooter,\n StyledHeader,\n StyledMenu,\n} from '../Menu/styled';\n\nimport {\n StyledCommandMenu,\n StyledEmptyState,\n StyledLoadingWrapper,\n StyledSearchInput,\n} from './styled';\n\n/** The keys of the items in `nodes`, in order, including those in sections. */\nfunction collectItemKeys(nodes: Iterable<any>, keys: Key[] = []): Key[] {\n for (const node of nodes) {\n if (node?.type === 'section') {\n collectItemKeys(node.childNodes ?? [], keys);\n } else if (node?.type === 'item') {\n keys.push(node.key);\n }\n }\n\n return keys;\n}\n\n/**\n * The key an arrow press moves to: the next enabled key after `currentKey` in\n * `direction`, wrapping round to the first enabled key in that direction (the\n * last one going up). With nothing focused, or the focused key filtered out,\n * it returns that key.\n */\nfunction getNextEnabledKey(\n keys: Key[],\n currentKey: Key | null,\n direction: 1 | -1,\n isDisabled: (key: Key) => boolean,\n): Key | null {\n const isEnabled = (key: Key) => !isDisabled(key);\n const index = currentKey == null ? -1 : keys.indexOf(currentKey);\n const ahead =\n direction === 1\n ? keys.slice(index + 1)\n : keys.slice(0, Math.max(index, 0)).reverse();\n const ordered = direction === 1 ? keys : [...keys].reverse();\n\n return ahead.find(isEnabled) ?? ordered.find(isEnabled) ?? null;\n}\n\nexport interface CommandMenuItem {\n // Standard item props\n id: string;\n textValue: string;\n\n // Enhanced search features\n keywords?: string[];\n forceMount?: boolean;\n\n // Standard Menu item props inherited\n [key: string]: any;\n}\n\nexport interface CubeCommandMenuProps<T>\n extends BasePropsWithoutChildren,\n ContainerStyleProps,\n Omit<\n CubeMenuProps<T>,\n 'selectedKeys' | 'defaultSelectedKeys' | 'onSelectionChange'\n > {\n // Search-specific props\n searchPlaceholder?: string;\n searchValue?: string;\n onSearchChange?: (value: string) => void;\n filter?: (textValue: string, inputValue: string) => boolean;\n emptyLabel?: ReactNode;\n searchInputStyles?: Styles;\n headerStyles?: Styles;\n footerStyles?: Styles;\n\n // Advanced search features\n isLoading?: boolean;\n shouldFilter?: boolean;\n\n // Focus management - override the autoFocus from CubeMenuProps to allow boolean | FocusStrategy\n autoFocus?: boolean | FocusStrategy;\n\n // Size prop\n size?: 'medium' | 'large' | (string & {});\n\n /** Currently selected keys (controlled) */\n selectedKeys?: string[];\n /** Initially selected keys (uncontrolled) */\n defaultSelectedKeys?: string[];\n /** Handler for selection changes */\n onSelectionChange?: (keys: string[]) => void;\n}\n\nfunction CommandMenu<T extends object>(\n props: CubeCommandMenuProps<T>,\n ref: Ref<HTMLDivElement>,\n) {\n const { t } = useI18n();\n\n const {\n searchPlaceholder = t(\n 'commandMenu.searchPlaceholder',\n 'Search commands...',\n ),\n searchValue: controlledSearchValue,\n onSearchChange,\n filter: customFilter,\n emptyLabel = t('commandMenu.empty', 'No commands found'),\n searchInputStyles,\n headerStyles,\n footerStyles,\n isLoading = false,\n shouldFilter = true,\n autoFocus = true,\n size = 'medium',\n qa,\n styles,\n selectedKeys,\n defaultSelectedKeys,\n onSelectionChange,\n onAction,\n header,\n footer,\n ...restMenuProps\n } = props;\n\n const domRef = useObjectRef(ref);\n const searchInputRef = useRef<HTMLInputElement>(null);\n const instanceId = useId();\n const menuId = `${qa || 'CommandMenu'}-${instanceId}-menu`;\n const contextProps = useMenuContext();\n\n // Convert string[] to Set<Key> for React Aria compatibility\n const ariaSelectedKeys = selectedKeys ? new Set(selectedKeys) : undefined;\n const ariaDefaultSelectedKeys = defaultSelectedKeys\n ? new Set(defaultSelectedKeys)\n : undefined;\n\n const handleSelectionChange = onSelectionChange\n ? (keys: 'all' | Set<Key>) => {\n if (keys === 'all') {\n // Handle 'all' selection case - collect all available keys\n const allKeys = Array.from(treeState.collection.getKeys()).map(\n (key: any) => String(key),\n );\n onSelectionChange(allKeys);\n } else if (keys instanceof Set) {\n onSelectionChange(Array.from(keys).map((key) => String(key)));\n } else {\n onSelectionChange([]);\n }\n }\n : undefined;\n\n const completeProps = mergeProps(contextProps, restMenuProps, {\n onAction: onAction ? (key: Key) => onAction(key) : undefined,\n selectedKeys: ariaSelectedKeys,\n defaultSelectedKeys: ariaDefaultSelectedKeys,\n onSelectionChange: handleSelectionChange,\n });\n\n // Search state management\n const [internalSearchValue, setInternalSearchValue] = useState('');\n const searchValue = controlledSearchValue ?? internalSearchValue;\n\n const handleSearchChange = (value: string) => {\n if (controlledSearchValue === undefined) {\n setInternalSearchValue(value);\n }\n onSearchChange?.(value);\n };\n\n // Filter setup\n const { contains } = useFilter({ sensitivity: 'base' });\n const textFilterFn = customFilter || contains;\n\n // Enhanced filter function that supports keywords and forceMount\n const enhancedFilter = (\n textValue: string,\n inputValue: string,\n item?: any,\n ) => {\n // Always show force-mounted items\n if (item?.forceMount) {\n return true;\n }\n\n // If shouldFilter is false, show all items\n if (!shouldFilter) {\n return true;\n }\n\n // Split input value into individual words and filter out empty strings\n const searchWords = inputValue\n .trim()\n .toLowerCase()\n .split(/\\s+/)\n .filter((word) => word.length > 0);\n\n // If no search words, show all items\n if (searchWords.length === 0) {\n return true;\n }\n\n // Collect all searchable text for this item\n const searchableTexts: string[] = [];\n\n // Add main text value\n searchableTexts.push(textValue.toLowerCase());\n\n // Add keywords if available\n if (item?.keywords && Array.isArray(item.keywords)) {\n searchableTexts.push(\n ...item.keywords.map((keyword: string) => keyword.toLowerCase()),\n );\n }\n\n // Check if ALL search words match at least one of the searchable texts\n return searchWords.every((searchWord) =>\n searchableTexts.some((text) => text.includes(searchWord)),\n );\n };\n\n // Collection filter for React Stately\n const collectionFilter = (nodes: Iterable<any>): Iterable<any> => {\n const term = searchValue.trim();\n\n // If no search term, return all nodes\n if (!term) {\n return nodes;\n }\n\n // Split search term into words for multi-word filtering\n const searchWords = term\n .toLowerCase()\n .split(/\\s+/)\n .filter((word) => word.length > 0);\n\n // If no valid search words, return all nodes\n if (searchWords.length === 0) {\n return nodes;\n }\n\n // Recursive helper to filter sections and items\n const filterNodes = (iter: Iterable<any>): any[] => {\n const result: any[] = [];\n\n for (const node of iter) {\n if (node.type === 'section') {\n const filteredChildren = filterNodes(node.childNodes);\n\n if (filteredChildren.length) {\n result.push({\n ...node,\n childNodes: filteredChildren,\n });\n }\n } else {\n const text = node.textValue ?? String(node.rendered ?? '');\n\n if (enhancedFilter(text, term, node.props)) {\n result.push(node);\n }\n }\n }\n\n return result;\n };\n\n return filterNodes(nodes);\n };\n\n // Create tree state with filter for both keyboard navigation and rendering\n const treeStateProps = {\n ...completeProps,\n children: completeProps.children as CollectionChildren<T>,\n filter: collectionFilter,\n shouldUseVirtualFocus: true, // Always use virtual focus for CommandMenu\n };\n\n const treeState = useTreeState(treeStateProps);\n const itemId = (key: Key) => {\n const item = treeState.collection.getItem(key);\n const actions = item?.props.actions;\n // A plain command's layout and semantic target share the consumer's DOM id.\n if (\n item?.props.id != null &&\n item.props.href == null &&\n (!actions || actions === true)\n )\n return String(item.props.id);\n return `${menuId}-option-${typeof key}-${encodeURIComponent(String(key))}`;\n };\n\n const collectionItems = [...treeState.collection];\n const hasSections = collectionItems.some((item) => item.type === 'section');\n\n const focusedKey = treeState.selectionManager.focusedKey;\n\n // Apply filtering to collection items for rendering and empty state checks\n const filteredCollectionItems = [...collectionFilter(collectionItems)];\n\n const hasFilteredItems = filteredCollectionItems.length > 0;\n const viewHasSections = filteredCollectionItems.some(\n (item) => item.type === 'section',\n );\n\n // Helper function to find the first selectable item from filtered results\n const findFirstSelectableItem = () =>\n collectItemKeys(filteredCollectionItems).find(\n (key) => !treeState.selectionManager.isDisabled(key),\n ) ?? null;\n\n // Create a ref for the menu container\n const menuRef = useRef<HTMLUListElement>(null);\n\n // Use menu hook for accessibility\n const { menuProps } = useMenu(\n {\n ...completeProps,\n 'aria-label': t('commandMenu.menu', 'Command menu'),\n shouldUseVirtualFocus: true,\n },\n treeState,\n menuRef,\n );\n\n // Manual rendering of menu items (similar to Menu component)\n const renderedItems: React.ReactNode[] = [];\n let isFirstSection = true;\n\n filteredCollectionItems.forEach((item) => {\n const reactKey = getMenuItemReactKey(item.key);\n if (item.type === 'section') {\n if (!isFirstSection) {\n renderedItems.push(\n <StyledDivider\n key={`divider-${reactKey}`}\n role=\"separator\"\n aria-orientation=\"horizontal\"\n />,\n );\n }\n\n renderedItems.push(\n <MenuSection\n key={reactKey}\n item={item}\n state={treeState}\n styles={completeProps.sectionStyles}\n itemStyles={completeProps.itemStyles}\n headingStyles={completeProps.sectionHeadingStyles}\n size={size}\n itemId={itemId}\n />,\n );\n\n isFirstSection = false;\n return;\n }\n\n let menuItem = (\n <MenuItem\n key={reactKey}\n item={item}\n state={treeState}\n styles={completeProps.itemStyles}\n size={size}\n id={itemId(item.key)}\n />\n );\n\n // Apply custom wrapper if provided\n if (item.props.wrapper) {\n menuItem = item.props.wrapper(menuItem);\n }\n\n // Ensure every child has a stable key, even if the wrapper component didn't set one.\n renderedItems.push(React.cloneElement(menuItem, { key: reactKey }));\n });\n\n // Auto-focus search input\n React.useEffect(() => {\n if (autoFocus && searchInputRef.current) {\n // Use a small timeout to ensure the element is visible and focusable\n // This is especially important when the CommandMenu is opened in a popover\n const timeoutId = setTimeout(() => {\n if (searchInputRef.current) {\n searchInputRef.current.focus();\n }\n }, 0);\n\n return () => clearTimeout(timeoutId);\n }\n }, [autoFocus]);\n\n // Also focus when the component becomes visible (for trigger/popover usage)\n React.useEffect(() => {\n // Check if autoFocus is enabled and we're in a trigger context\n if (autoFocus && contextProps.autoFocus && searchInputRef.current) {\n // Use a small timeout to ensure the popover is fully rendered\n const timeoutId = setTimeout(() => {\n if (searchInputRef.current) {\n searchInputRef.current.focus();\n }\n }, 50); // Slightly longer timeout for popover context\n\n return () => clearTimeout(timeoutId);\n }\n }, [autoFocus, contextProps.autoFocus]);\n\n // Track the previous search value to only run auto-focus when search actually changes\n const prevSearchValueRef = useRef<string>('');\n\n // Auto-focus first item when search value changes (but not on initial render)\n React.useEffect(() => {\n const currentSearchValue = searchValue.trim();\n const prevSearchValue = prevSearchValueRef.current;\n\n // Only auto-focus when search value actually changes\n if (currentSearchValue !== prevSearchValue && currentSearchValue !== '') {\n const firstSelectableKey = findFirstSelectableItem();\n\n if (firstSelectableKey != null && hasFilteredItems) {\n // Focus the first item in the selection manager\n treeState.selectionManager.setFocusedKey(firstSelectableKey);\n } else {\n // Clear focus if no items are available\n treeState.selectionManager.setFocusedKey(null);\n }\n }\n\n // Update the previous search value\n prevSearchValueRef.current = currentSearchValue;\n }, [searchValue, findFirstSelectableItem, hasFilteredItems]);\n\n // ---- search input keyboard ----------------------------------------------\n const handleArrowKey = (e: KeyboardEvent<HTMLInputElement>) => {\n e.preventDefault();\n\n const { selectionManager } = treeState;\n const currentKey = selectionManager.focusedKey;\n const nextKey = getNextEnabledKey(\n collectItemKeys(filteredCollectionItems),\n currentKey,\n e.key === 'ArrowDown' ? 1 : -1,\n (key) => selectionManager.isDisabled(key),\n );\n\n if (nextKey != null) {\n selectionManager.setFocusedKey(nextKey);\n }\n };\n\n // Use the rendered item's Aria handlers for commands, selection and navigation.\n const handleActionKey = (e: KeyboardEvent<HTMLInputElement>) => {\n e.preventDefault();\n e.stopPropagation();\n if (\n e.repeat ||\n focusedKey == null ||\n treeState.selectionManager.isDisabled(focusedKey)\n )\n return;\n const item = menuRef.current?.ownerDocument.getElementById(\n itemId(focusedKey),\n );\n if (!item || !menuRef.current?.contains(item)) return;\n const shouldActivate = item.dispatchEvent(\n new window.KeyboardEvent('keydown', {\n key: e.key,\n code: e.code,\n ctrlKey: e.ctrlKey,\n metaKey: e.metaKey,\n altKey: e.altKey,\n shiftKey: e.shiftKey,\n bubbles: true,\n cancelable: true,\n }),\n );\n // An anchor's Enter handler leaves its native default action to the browser.\n if (shouldActivate && e.key === 'Enter') {\n item.dispatchEvent(\n new window.MouseEvent('click', {\n ctrlKey: e.ctrlKey,\n metaKey: e.metaKey,\n altKey: e.altKey,\n shiftKey: e.shiftKey,\n bubbles: true,\n cancelable: true,\n detail: 1,\n }),\n );\n }\n // The real keyup belongs to the search input, so balance the item's press here.\n item.dispatchEvent(\n new window.KeyboardEvent('keyup', {\n key: e.key,\n code: e.code,\n ctrlKey: e.ctrlKey,\n metaKey: e.metaKey,\n altKey: e.altKey,\n shiftKey: e.shiftKey,\n bubbles: true,\n cancelable: true,\n }),\n );\n };\n\n const handleSearchKeyDown = (e: KeyboardEvent<HTMLInputElement>) => {\n if (e.nativeEvent.isComposing) return;\n if (e.key === 'ArrowDown' || e.key === 'ArrowUp') {\n handleArrowKey(e);\n } else if (e.key === 'Enter' || (e.key === ' ' && !searchValue.trim())) {\n handleActionKey(e);\n } else if (e.key === 'Escape' && searchValue) {\n e.preventDefault();\n handleSearchChange('');\n }\n };\n\n // Extract styles\n const extractedStyles = extractStyles(props, CONTAINER_STYLES);\n\n // Determine if we should show empty state based on actual filtered collection\n const hasSearchTerm = searchValue.trim().length > 0;\n const showEmptyState = hasSearchTerm && !hasFilteredItems && !isLoading;\n const activeDescendant =\n !isLoading &&\n !showEmptyState &&\n focusedKey != null &&\n collectItemKeys(filteredCollectionItems).includes(focusedKey)\n ? itemId(focusedKey)\n : undefined;\n\n // Sync refs\n useSyncRef(contextProps, menuRef);\n\n // Determine mods based on menu context\n const mods = {\n sections: viewHasSections,\n footer: !!footer,\n header: !!header,\n popover: completeProps.mods?.popover,\n tray: completeProps.mods?.tray,\n };\n\n const {\n 'aria-label': _ariaLabel,\n 'aria-labelledby': _ariaLabelledBy,\n 'aria-describedby': _ariaDescribedBy,\n 'aria-details': _ariaDetails,\n ...wrapperProps\n } = filterBaseProps(props) as Record<string, unknown>;\n\n return (\n <StyledCommandMenu\n {...wrapperProps}\n ref={domRef}\n qa={qa || 'CommandMenu'}\n data-size={size}\n mods={mods}\n styles={mergeStyleLayers(extractedStyles, styles)}\n >\n {/* Header */}\n {header && (\n <StyledHeader\n role=\"presentation\"\n data-size={size}\n styles={mergeStyleLayers({ border: 'none' }, headerStyles)}\n >\n {header}\n </StyledHeader>\n )}\n\n {/* Search Input */}\n <StyledSearchInput\n ref={searchInputRef}\n type=\"search\"\n placeholder={searchPlaceholder}\n value={searchValue}\n styles={searchInputStyles}\n data-size={size}\n aria-label={completeProps['aria-label'] ?? searchPlaceholder}\n aria-labelledby={completeProps['aria-labelledby']}\n aria-describedby={completeProps['aria-describedby']}\n aria-details={completeProps['aria-details']}\n aria-controls={!isLoading && !showEmptyState ? menuId : undefined}\n role=\"searchbox\"\n aria-activedescendant={activeDescendant}\n onChange={(e) => handleSearchChange(e.target.value)}\n onKeyDown={handleSearchKeyDown}\n />\n\n {/* Loading State */}\n {isLoading && (\n <StyledLoadingWrapper>\n <LoadingIcon\n role=\"progressbar\"\n aria-label={t('commandMenu.loading', 'Loading commands')}\n aria-hidden={false}\n />\n </StyledLoadingWrapper>\n )}\n\n {/* Menu Content - always render unless loading */}\n {!isLoading && !showEmptyState && (\n <StyledMenu\n {...menuProps}\n ref={menuRef}\n id={menuId}\n aria-label={t('commandMenu.menu', 'Command menu')}\n qa=\"Menu\"\n data-size={size}\n mods={mods}\n styles={{\n border: 'none',\n boxShadow: 'none',\n radius: 0,\n padding: '0.5x',\n }}\n >\n {renderedItems}\n </StyledMenu>\n )}\n\n {/* Empty State - show when search term exists but no results */}\n {!isLoading && showEmptyState && (\n <StyledEmptyState>{emptyLabel}</StyledEmptyState>\n )}\n\n {/* Footer */}\n {footer && (\n <StyledFooter\n role=\"presentation\"\n data-size={size}\n styles={footerStyles}\n >\n {footer}\n </StyledFooter>\n )}\n </StyledCommandMenu>\n );\n}\n\n// forwardRef doesn't support generic parameters, so cast the result to the correct type\nconst _CommandMenu = React.forwardRef(CommandMenu) as <T>(\n props: CubeCommandMenuProps<T> & React.RefAttributes<HTMLDivElement>,\n) => ReactElement;\n\n// Attach Trigger alias from MenuTrigger for consistent API\n// Also attach Item and Section for compound component pattern\nconst __CommandMenu = Object.assign(_CommandMenu, {\n Trigger: MenuTrigger,\n Item,\n Section,\n displayName: 'CommandMenu',\n});\n\nexport { __CommandMenu as CommandMenu };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAiDA,SAAS2C,gBAAgBC,OAAsBE,OAAc,CAAA,GAAW;CACtE,KAAK,MAAMC,QAAQH,OACjB,IAAIG,MAAMC,SAAS,WACjBL,gBAAgBI,KAAKE,cAAc,CAAA,GAAIH,IAAI;MACtC,IAAIC,MAAMC,SAAS,QACxBF,KAAKI,KAAKH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qDtJ,OAAIjG,SAAU;AAAS;AA1M5E,SAAAoH,OAAAoI,QAAA;CAAA,OA+IwBC,OAAIlJ,SAAU;AAAC;AA/IvC,SAAAG,OAAAgJ,SAAA;CAAA,OAwHkDA,QAAOtJ,YAAa;AAAC;AAxHvE,SAAAE,OAAAmJ,MAAA;CAAA,OAwGwBA,KAAIlJ,SAAU;AAAC;AAxGvC,SAAApB,OAAAwK,OAAA;CAAA,OAsD0DjI,OAAOvH,KAAG;AAAC;AAtDrE,SAAA+E,MAAA/E,KAAA;CAAA,OAkD0BuH,OAAOvH,GAAG;AAAC;AAufrC,MAAMyP,eAAelS,MAAMmS,WAAWlN,WAAW;AAMjD,MAAMqN,gBAAgBC,OAAOC,OAAON,cAAc;CAChDO,SAASjR;CACTH,MAAAA;CACAX;CACAgS,aAAa;AACf,CAAC"}
@@ -1,2 +1,3 @@
1
1
 
2
- import { CommandMenuItem, CubeCommandMenuProps, __CommandMenu } from "./CommandMenu.js";
2
+ import { CommandMenu as __CommandMenu, CommandMenuItem, CubeCommandMenuProps } from "./CommandMenu.js";
3
+ export { __CommandMenu as CommandMenu, type CommandMenuItem, type CubeCommandMenuProps };
@@ -1,6 +1,5 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-eaec28c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ead54f5 | Cube Dev Team */
2
2
  import { tasty } from "@tenphi/tasty";
3
-
4
3
  //#region src/components/actions/CommandMenu/styled.tsx
5
4
  const StyledCommandMenu = tasty({
6
5
  qa: "CommandMenu",
@@ -84,7 +83,7 @@ const StyledEmptyState = tasty({
84
83
  preset: "t3"
85
84
  }
86
85
  });
87
- const StyledMenuWrapper = tasty({
86
+ tasty({
88
87
  qa: "MenuWrapper",
89
88
  styles: {
90
89
  display: "grid",
@@ -97,7 +96,7 @@ const StyledMenuWrapper = tasty({
97
96
  scrollbar: "styled"
98
97
  }
99
98
  });
100
-
101
99
  //#endregion
102
100
  export { StyledCommandMenu, StyledEmptyState, StyledLoadingWrapper, StyledSearchInput };
101
+
103
102
  //# sourceMappingURL=styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled.js","names":["tasty","StyledCommandMenu","qa","styles","display","flow","gridColumns","gridRows","header","footer","placeContent","placeItems","fill","border","radius","shadow","overflow","height","popover","tray","StyledSearchInput","as","recipe","width","color","transition","textAlign","preset","userSelect","padding","prefix","$size","Placeholder","$","StyledLoadingWrapper","StyledEmptyState","StyledMenuWrapper","scrollbar"],"sources":["../../../../src/components/actions/CommandMenu/styled.tsx"],"sourcesContent":["import { tasty } from '@tenphi/tasty';\n\nexport const StyledCommandMenu = tasty({\n qa: 'CommandMenu',\n styles: {\n display: 'grid',\n flow: 'row',\n gridColumns: 'minmax(0, 1fr)',\n gridRows: {\n '': 'max-content minmax(0, 1fr)',\n header: 'max-content max-content minmax(0, 1fr)',\n footer: 'max-content minmax(0, 1fr) max-content max-content',\n 'header & footer':\n 'max-content max-content minmax(0, 1fr) max-content max-content',\n },\n placeContent: 'stretch',\n placeItems: 'stretch',\n fill: '#surface',\n border: '#border',\n radius: '(1cr + 1bw)',\n shadow: {\n '': false,\n // Same as Menu (`src/components/actions/Menu/styled.tsx`) — use the\n // `$shadow` token instead of a literal `#dark.05` shadow so the\n // popover shadow stays a true *dark* shadow in dark mode.\n 'popover | tray': '$shadow',\n },\n overflow: 'hidden',\n height: {\n '': 'initial',\n popover: 'initial max-content (50vh - $size-md)',\n tray: 'initial max-content (100vh - $size-md)',\n },\n },\n});\n\nexport const StyledSearchInput = tasty({\n qa: 'SearchInput',\n as: 'input',\n styles: {\n recipe: 'reset input / input-autofill',\n display: 'grid',\n width: '100%',\n color: '#dark',\n border: '#border bottom',\n transition: 'theme',\n radius: 0,\n textAlign: 'left',\n preset: 't3',\n userSelect: 'auto',\n height: '($size + 1x)',\n padding: {\n '': '.5x 1.5x',\n prefix: '0 1.5x 0 .5x',\n },\n\n $size: {\n '': '$size-md',\n 'size=small': '$size-sm',\n 'size=medium': '$size-md',\n 'size=large': '$size-lg',\n },\n\n Placeholder: {\n $: '&::placeholder',\n recipe: 'input-placeholder',\n },\n '&::-webkit-search-cancel-button': {\n recipe: 'input-search-cancel-button',\n },\n },\n});\n\nexport const StyledLoadingWrapper = tasty({\n qa: 'LoadingWrapper',\n styles: {\n display: 'flex',\n padding: '2x',\n placeContent: 'center',\n placeItems: 'center',\n color: '#dark-03',\n },\n});\n\nexport const StyledEmptyState = tasty({\n qa: 'EmptyState',\n styles: {\n display: 'flex',\n padding: '2x',\n placeContent: 'center',\n placeItems: 'center',\n color: '#dark-03',\n preset: 't3',\n },\n});\n\nexport const StyledMenuWrapper = tasty({\n qa: 'MenuWrapper',\n styles: {\n display: 'grid',\n flow: 'row',\n gridColumns: 'minmax(0, 1fr)',\n placeContent: 'stretch',\n placeItems: 'stretch',\n width: '100%',\n overflow: 'auto',\n scrollbar: 'styled',\n },\n});\n"],"mappings":";;;;AAEA,MAAaC,oBAAoBD,MAAM;CACrCE,IAAI;CACJC,QAAQ;EACNC,SAAS;EACTC,MAAM;EACNC,aAAa;EACbC,UAAU;GACR,IAAI;GACJC,QAAQ;GACRC,QAAQ;GACR,mBACE;GACH;EACDC,cAAc;EACdC,YAAY;EACZC,MAAM;EACNC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;GACN,IAAI;GAIJ,kBAAkB;GACnB;EACDC,UAAU;EACVC,QAAQ;GACN,IAAI;GACJC,SAAS;GACTC,MAAM;GACR;EACF;CACD,CAAC;AAEF,MAAaC,oBAAoBpB,MAAM;CACrCE,IAAI;CACJmB,IAAI;CACJlB,QAAQ;EACNmB,QAAQ;EACRlB,SAAS;EACTmB,OAAO;EACPC,OAAO;EACPX,QAAQ;EACRY,YAAY;EACZX,QAAQ;EACRY,WAAW;EACXC,QAAQ;EACRC,YAAY;EACZX,QAAQ;EACRY,SAAS;GACP,IAAI;GACJC,QAAQ;GACT;EAEDC,OAAO;GACL,IAAI;GACJ,cAAc;GACd,eAAe;GACf,cAAc;GACf;EAEDC,aAAa;GACXC,GAAG;GACHX,QAAQ;GACT;EACD,mCAAmC,EACjCA,QAAQ,8BACV;EACF;CACD,CAAC;AAEF,MAAaY,uBAAuBlC,MAAM;CACxCE,IAAI;CACJC,QAAQ;EACNC,SAAS;EACTyB,SAAS;EACTnB,cAAc;EACdC,YAAY;EACZa,OAAO;EACT;CACD,CAAC;AAEF,MAAaW,mBAAmBnC,MAAM;CACpCE,IAAI;CACJC,QAAQ;EACNC,SAAS;EACTyB,SAAS;EACTnB,cAAc;EACdC,YAAY;EACZa,OAAO;EACPG,QAAQ;EACV;CACD,CAAC;AAEF,MAAaS,oBAAoBpC,MAAM;CACrCE,IAAI;CACJC,QAAQ;EACNC,SAAS;EACTC,MAAM;EACNC,aAAa;EACbI,cAAc;EACdC,YAAY;EACZY,OAAO;EACPP,UAAU;EACVqB,WAAW;EACb;CACD,CAAC"}
1
+ {"version":3,"file":"styled.js","names":["tasty","StyledCommandMenu","qa","styles","display","flow","gridColumns","gridRows","header","footer","placeContent","placeItems","fill","border","radius","shadow","overflow","height","popover","tray","StyledSearchInput","as","recipe","width","color","transition","textAlign","preset","userSelect","padding","prefix","$size","Placeholder","$","StyledLoadingWrapper","StyledEmptyState","StyledMenuWrapper","scrollbar"],"sources":["../../../../src/components/actions/CommandMenu/styled.tsx"],"sourcesContent":["import { tasty } from '@tenphi/tasty';\n\nexport const StyledCommandMenu = tasty({\n qa: 'CommandMenu',\n styles: {\n display: 'grid',\n flow: 'row',\n gridColumns: 'minmax(0, 1fr)',\n gridRows: {\n '': 'max-content minmax(0, 1fr)',\n header: 'max-content max-content minmax(0, 1fr)',\n footer: 'max-content minmax(0, 1fr) max-content max-content',\n 'header & footer':\n 'max-content max-content minmax(0, 1fr) max-content max-content',\n },\n placeContent: 'stretch',\n placeItems: 'stretch',\n fill: '#surface',\n border: '#border',\n radius: '(1cr + 1bw)',\n shadow: {\n '': false,\n // Same as Menu (`src/components/actions/Menu/styled.tsx`) — use the\n // `$shadow` token instead of a literal `#dark.05` shadow so the\n // popover shadow stays a true *dark* shadow in dark mode.\n 'popover | tray': '$shadow',\n },\n overflow: 'hidden',\n height: {\n '': 'initial',\n popover: 'initial max-content (50vh - $size-md)',\n tray: 'initial max-content (100vh - $size-md)',\n },\n },\n});\n\nexport const StyledSearchInput = tasty({\n qa: 'SearchInput',\n as: 'input',\n styles: {\n recipe: 'reset input / input-autofill',\n display: 'grid',\n width: '100%',\n color: '#dark',\n border: '#border bottom',\n transition: 'theme',\n radius: 0,\n textAlign: 'left',\n preset: 't3',\n userSelect: 'auto',\n height: '($size + 1x)',\n padding: {\n '': '.5x 1.5x',\n prefix: '0 1.5x 0 .5x',\n },\n\n $size: {\n '': '$size-md',\n 'size=small': '$size-sm',\n 'size=medium': '$size-md',\n 'size=large': '$size-lg',\n },\n\n Placeholder: {\n $: '&::placeholder',\n recipe: 'input-placeholder',\n },\n '&::-webkit-search-cancel-button': {\n recipe: 'input-search-cancel-button',\n },\n },\n});\n\nexport const StyledLoadingWrapper = tasty({\n qa: 'LoadingWrapper',\n styles: {\n display: 'flex',\n padding: '2x',\n placeContent: 'center',\n placeItems: 'center',\n color: '#dark-03',\n },\n});\n\nexport const StyledEmptyState = tasty({\n qa: 'EmptyState',\n styles: {\n display: 'flex',\n padding: '2x',\n placeContent: 'center',\n placeItems: 'center',\n color: '#dark-03',\n preset: 't3',\n },\n});\n\nexport const StyledMenuWrapper = tasty({\n qa: 'MenuWrapper',\n styles: {\n display: 'grid',\n flow: 'row',\n gridColumns: 'minmax(0, 1fr)',\n placeContent: 'stretch',\n placeItems: 'stretch',\n width: '100%',\n overflow: 'auto',\n scrollbar: 'styled',\n },\n});\n"],"mappings":";;;AAEA,MAAaC,oBAAoBD,MAAM;CACrCE,IAAI;CACJC,QAAQ;EACNC,SAAS;EACTC,MAAM;EACNC,aAAa;EACbC,UAAU;GACR,IAAI;GACJC,QAAQ;GACRC,QAAQ;GACR,mBACE;EACJ;EACAC,cAAc;EACdC,YAAY;EACZC,MAAM;EACNC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;GACN,IAAI;GAIJ,kBAAkB;EACpB;EACAC,UAAU;EACVC,QAAQ;GACN,IAAI;GACJC,SAAS;GACTC,MAAM;EACR;CACF;AACF,CAAC;AAED,MAAaC,oBAAoBpB,MAAM;CACrCE,IAAI;CACJmB,IAAI;CACJlB,QAAQ;EACNmB,QAAQ;EACRlB,SAAS;EACTmB,OAAO;EACPC,OAAO;EACPX,QAAQ;EACRY,YAAY;EACZX,QAAQ;EACRY,WAAW;EACXC,QAAQ;EACRC,YAAY;EACZX,QAAQ;EACRY,SAAS;GACP,IAAI;GACJC,QAAQ;EACV;EAEAC,OAAO;GACL,IAAI;GACJ,cAAc;GACd,eAAe;GACf,cAAc;EAChB;EAEAC,aAAa;GACXC,GAAG;GACHX,QAAQ;EACV;EACA,mCAAmC,EACjCA,QAAQ,6BACV;CACF;AACF,CAAC;AAED,MAAaY,uBAAuBlC,MAAM;CACxCE,IAAI;CACJC,QAAQ;EACNC,SAAS;EACTyB,SAAS;EACTnB,cAAc;EACdC,YAAY;EACZa,OAAO;CACT;AACF,CAAC;AAED,MAAaW,mBAAmBnC,MAAM;CACpCE,IAAI;CACJC,QAAQ;EACNC,SAAS;EACTyB,SAAS;EACTnB,cAAc;EACdC,YAAY;EACZa,OAAO;EACPG,QAAQ;CACV;AACF,CAAC;AAEgC3B,MAAM;CACrCE,IAAI;CACJC,QAAQ;EACNC,SAAS;EACTC,MAAM;EACNC,aAAa;EACbI,cAAc;EACdC,YAAY;EACZY,OAAO;EACPP,UAAU;EACVqB,WAAW;CACb;AACF,CAAC"}
@@ -2,12 +2,9 @@
2
2
  import { TooltipProvider } from "../../overlays/Tooltip/TooltipProvider.js";
3
3
  import { CubeUseActionProps } from "../use-action.js";
4
4
  import { BaseProps, Styles } from "@tenphi/tasty";
5
- import * as react from "react";
6
5
  import { ComponentProps, ReactNode } from "react";
7
- import * as _react_types_shared0 from "@react-types/shared";
8
-
9
6
  //#region src/components/actions/ItemAction/ItemAction.d.ts
10
- interface CubeItemActionProps extends Omit<CubeUseActionProps, 'as' | 'htmlType'>, Omit<BaseProps, 'as'> {
7
+ export interface CubeItemActionProps extends Omit<CubeUseActionProps, 'as' | 'htmlType'>, Omit<BaseProps, 'as'> {
11
8
  size?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'inline' | (string & {});
12
9
  icon?: ReactNode | 'checkmark';
13
10
  children?: ReactNode;
@@ -21,7 +18,7 @@ interface CubeItemActionProps extends Omit<CubeUseActionProps, 'as' | 'htmlType'
21
18
  styles?: Styles;
22
19
  tabIndex?: number;
23
20
  }
24
- declare const ItemAction: react.ForwardRefExoticComponent<CubeItemActionProps & react.RefAttributes<_react_types_shared0.FocusableRefValue<HTMLElement, HTMLElement>>>;
21
+ export declare const ItemAction: import("react").ForwardRefExoticComponent<CubeItemActionProps & import("react").RefAttributes<import("@react-types/shared").FocusableRefValue<HTMLElement, HTMLElement>>>;
25
22
  //#endregion
26
- export { CubeItemActionProps, ItemAction };
23
+ export type { CubeItemActionProps as ItemActionProps };
27
24
  //# sourceMappingURL=ItemAction.d.ts.map
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-eaec28c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ead54f5 | Cube Dev Team */
2
2
  import { mergeProps } from "../../../utils/react/mergeProps.js";
3
3
  import { getDisabledElementProps, omitActivationEventProps } from "../../../utils/react/disabledProps.js";
4
4
  import { TooltipProvider } from "../../overlays/Tooltip/TooltipProvider.js";
@@ -12,7 +12,6 @@ import { c } from "react/compiler-runtime";
12
12
  import { tasty } from "@tenphi/tasty";
13
13
  import { forwardRef } from "react";
14
14
  import { jsx, jsxs } from "react/jsx-runtime";
15
-
16
15
  //#region src/components/actions/ItemAction/ItemAction.tsx
17
16
  const ItemActionElement = tasty({
18
17
  qa: "ItemAction",
@@ -204,13 +203,16 @@ const ItemAction = forwardRef(function ItemAction(allProps, ref) {
204
203
  const elementProps = isInert ? omitActivationEventProps(actionProps) : actionProps;
205
204
  const finalType = type;
206
205
  const renderButton = (tooltipTriggerProps, tooltipRef) => {
207
- return /* @__PURE__ */ jsxs(ItemActionElement, {
208
- ...tooltipRef ? mergeProps(mergeTooltipFocusProps(elementProps, tooltipTriggerProps), inertProps, { ref: (element) => {
209
- if (tooltipRef) tooltipRef.current = element;
210
- const actionRef = actionProps.ref;
211
- if (actionRef) if (typeof actionRef === "function") actionRef(element);
206
+ const mergedProps = tooltipRef ? mergeProps(mergeTooltipFocusProps(elementProps, tooltipTriggerProps), inertProps, { ref: (element) => {
207
+ if (tooltipRef) tooltipRef.current = element;
208
+ const actionRef = actionProps.ref;
209
+ if (actionRef) {
210
+ if (typeof actionRef === "function") actionRef(element);
212
211
  else actionRef.current = element;
213
- } }) : mergeProps(mergeTooltipFocusProps(elementProps, tooltipTriggerProps), inertProps),
212
+ }
213
+ } }) : mergeProps(mergeTooltipFocusProps(elementProps, tooltipTriggerProps), inertProps);
214
+ return /* @__PURE__ */ jsxs(ItemActionElement, {
215
+ ...mergedProps,
214
216
  disabled: isNativelyDisabled,
215
217
  variant: `${theme}.${finalType}`,
216
218
  "data-theme": theme,
@@ -259,7 +261,7 @@ const ItemAction = forwardRef(function ItemAction(allProps, ref) {
259
261
  if (t12 !== Symbol.for("react.early_return_sentinel")) return t12;
260
262
  return t11;
261
263
  });
262
-
263
264
  //#endregion
264
265
  export { ItemAction };
266
+
265
267
  //# sourceMappingURL=ItemAction.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ItemAction.js","names":["FocusableRef","BaseProps","Styles","tasty","ComponentProps","forwardRef","HTMLAttributes","ReactNode","RefObject","CURRENT_CLEAR_STYLES","CURRENT_OUTLINE_STYLES","CURRENT_PRIMARY_STYLES","DANGER_CLEAR_STYLES","DANGER_OUTLINE_STYLES","DANGER_PRIMARY_STYLES","DEFAULT_CLEAR_STYLES","DEFAULT_OUTLINE_STYLES","DEFAULT_PRIMARY_STYLES","ITEM_ACTION_BASE_STYLES","NOTE_CLEAR_STYLES","NOTE_OUTLINE_STYLES","NOTE_PRIMARY_STYLES","SPECIAL_CLEAR_STYLES","SPECIAL_OUTLINE_STYLES","SPECIAL_PRIMARY_STYLES","SUCCESS_CLEAR_STYLES","SUCCESS_OUTLINE_STYLES","SUCCESS_PRIMARY_STYLES","WARNING_CLEAR_STYLES","WARNING_OUTLINE_STYLES","WARNING_PRIMARY_STYLES","CheckIcon","LoadingIcon","getDisabledElementProps","mergeProps","omitActivationEventProps","mergeTooltipFocusProps","TooltipProvider","useItemActionContext","CubeUseActionProps","useAction","CubeItemActionProps","Omit","size","icon","children","isLoading","isSelected","type","theme","tooltip","title","styles","tabIndex","ItemActionVariant","ItemActionElement","qa","recipe","outline","focused","outlineOffset","cursor","disabled","preset","padding","Icon","$","variants","ItemAction","allProps","ref","_c","contextType","disableActionsFocus","menuItemAction","isDisabled","contextIsDisabled","isDisabledProp","mods","rest","t0","t1","t2","t3","undefined","isDisabledInherited","hasCheckmark","t4","finalIcon","t5","t6","t7","t8","checkmark","selected","loading","context","finalMods","ariaLabel","t9","htmlType","actionProps","t10","t11","t12","excludeFromTabOrder","role","Symbol","for","bb0","_isDisabled","finalTabIndex","tooltipContent","t13","tooltipProps","_title","t14","hasTooltip","isNativelyDisabled","isInert","inertProps","keepEvents","as","elementProps","finalType","renderButton","tooltipTriggerProps","tooltipRef","mergedProps","element","current","actionRef","triggerProps","tooltipRef_0","ItemActionProps"],"sources":["../../../../src/components/actions/ItemAction/ItemAction.tsx"],"sourcesContent":["import { FocusableRef } from '@react-types/shared';\nimport { BaseProps, Styles, tasty } from '@tenphi/tasty';\nimport {\n ComponentProps,\n forwardRef,\n HTMLAttributes,\n ReactNode,\n RefObject,\n} from 'react';\n\nimport {\n CURRENT_CLEAR_STYLES,\n CURRENT_OUTLINE_STYLES,\n CURRENT_PRIMARY_STYLES,\n DANGER_CLEAR_STYLES,\n DANGER_OUTLINE_STYLES,\n DANGER_PRIMARY_STYLES,\n DEFAULT_CLEAR_STYLES,\n DEFAULT_OUTLINE_STYLES,\n DEFAULT_PRIMARY_STYLES,\n ITEM_ACTION_BASE_STYLES,\n NOTE_CLEAR_STYLES,\n NOTE_OUTLINE_STYLES,\n NOTE_PRIMARY_STYLES,\n SPECIAL_CLEAR_STYLES,\n SPECIAL_OUTLINE_STYLES,\n SPECIAL_PRIMARY_STYLES,\n SUCCESS_CLEAR_STYLES,\n SUCCESS_OUTLINE_STYLES,\n SUCCESS_PRIMARY_STYLES,\n WARNING_CLEAR_STYLES,\n WARNING_OUTLINE_STYLES,\n WARNING_PRIMARY_STYLES,\n} from '../../../data/item-themes';\nimport { CheckIcon } from '../../../icons/CheckIcon';\nimport { LoadingIcon } from '../../../icons/LoadingIcon';\nimport {\n getDisabledElementProps,\n mergeProps,\n omitActivationEventProps,\n} from '../../../utils/react';\nimport { mergeTooltipFocusProps } from '../../overlays/Tooltip/split-trigger-props';\nimport { TooltipProvider } from '../../overlays/Tooltip/TooltipProvider';\nimport { useItemActionContext } from '../ItemActionContext';\nimport { CubeUseActionProps, useAction } from '../use-action';\n\nexport interface CubeItemActionProps\n extends Omit<CubeUseActionProps, 'as' | 'htmlType'>,\n Omit<BaseProps, 'as'> {\n size?:\n | 'xsmall'\n | 'small'\n | 'medium'\n | 'large'\n | 'xlarge'\n | 'inline'\n | (string & {});\n icon?: ReactNode | 'checkmark';\n children?: ReactNode;\n isLoading?: boolean;\n isSelected?: boolean;\n type?: 'primary' | 'outline' | 'clear' | (string & {});\n theme?:\n | 'current'\n | 'default'\n | 'danger'\n | 'success'\n | 'warning'\n | 'note'\n | 'special'\n | (string & {});\n tooltip?:\n | string\n | (Omit<ComponentProps<typeof TooltipProvider>, 'children'> & {\n title?: ReactNode;\n });\n styles?: Styles;\n tabIndex?: number;\n}\n\ntype ItemActionVariant =\n // Inherited-color theme — see the CURRENT THEME section of `item-themes`.\n | 'current.primary'\n | 'current.outline'\n | 'current.clear'\n | 'default.primary'\n | 'default.outline'\n | 'default.clear'\n | 'danger.primary'\n | 'danger.outline'\n | 'danger.clear'\n | 'success.primary'\n | 'success.outline'\n | 'success.clear'\n | 'warning.primary'\n | 'warning.outline'\n | 'warning.clear'\n | 'note.primary'\n | 'note.outline'\n | 'note.clear'\n | 'special.primary'\n | 'special.outline'\n | 'special.clear';\n\nconst ItemActionElement = tasty({\n qa: 'ItemAction',\n styles: {\n // eslint-disable-next-line tasty/no-style-spread -- action base shared with ItemBadge\n ...ITEM_ACTION_BASE_STYLES,\n recipe: 'reset button',\n // Every variant below defines its own ring and overrides this one, which is\n // kept as the floor for a custom `type` that resolves to no variant at all.\n // It uses the same `#primary-accent-text` as every variant in\n // `item-themes.ts`.\n outline: {\n '': '0 #primary-accent-text.0',\n focused: '1bw #primary-accent-text',\n },\n outlineOffset: 1,\n cursor: { '': '$pointer', disabled: 'default' },\n preset: {\n '': 't4',\n 'size=xlarge': 't3m',\n },\n padding: {\n '': '0 $inline-padding',\n 'has-icon': 0,\n 'has-icon & has-label': '$inline-padding right',\n },\n\n '$inline-padding': {\n '': 'max($min-inline-padding, (($action-size - 1lh - 2bw) / 2 + $inline-compensation))',\n 'size=inline': '.25x',\n },\n '$inline-compensation': '.5x',\n '$min-inline-padding': '(.5x - 1bw)',\n '$local-icon-size': '$icon-size',\n\n Icon: {\n $: '>',\n // eslint-disable-next-line tasty/no-style-spread -- Icon base shared with ItemBadge\n ...(ITEM_ACTION_BASE_STYLES.Icon as Styles),\n '$icon-size': 'min($local-icon-size, ($action-size - .25x))',\n },\n },\n variants: {\n // Current theme — colors mixed from the inherited `currentcolor`. The\n // default `clear` flavour is borderless, so an action does not put a resting\n // chip on every row.\n 'current.primary': CURRENT_PRIMARY_STYLES,\n 'current.outline': CURRENT_OUTLINE_STYLES,\n 'current.clear': CURRENT_CLEAR_STYLES,\n\n // Default theme\n 'default.primary': DEFAULT_PRIMARY_STYLES,\n 'default.outline': DEFAULT_OUTLINE_STYLES,\n 'default.clear': DEFAULT_CLEAR_STYLES,\n\n // Danger theme\n 'danger.primary': DANGER_PRIMARY_STYLES,\n 'danger.outline': DANGER_OUTLINE_STYLES,\n 'danger.clear': DANGER_CLEAR_STYLES,\n\n // Success theme\n 'success.primary': SUCCESS_PRIMARY_STYLES,\n 'success.outline': SUCCESS_OUTLINE_STYLES,\n 'success.clear': SUCCESS_CLEAR_STYLES,\n\n // Warning theme\n 'warning.primary': WARNING_PRIMARY_STYLES,\n 'warning.outline': WARNING_OUTLINE_STYLES,\n 'warning.clear': WARNING_CLEAR_STYLES,\n\n // Note theme\n 'note.primary': NOTE_PRIMARY_STYLES,\n 'note.outline': NOTE_OUTLINE_STYLES,\n 'note.clear': NOTE_CLEAR_STYLES,\n\n // Special theme\n 'special.primary': SPECIAL_PRIMARY_STYLES,\n 'special.outline': SPECIAL_OUTLINE_STYLES,\n 'special.clear': SPECIAL_CLEAR_STYLES,\n },\n});\n\nexport const ItemAction = forwardRef(function ItemAction(\n allProps: CubeItemActionProps,\n ref: FocusableRef<HTMLElement>,\n) {\n const {\n type: contextType,\n disableActionsFocus,\n menuItemAction,\n isDisabled: contextIsDisabled,\n } = useItemActionContext();\n\n const {\n // Borderless by default: an action sits inside a row, where a resting chip\n // on every one of them would read as noise.\n type = 'clear',\n // The `current` theme derives every color from the row's inherited\n // `currentcolor`, so one default covers every host type and theme — no need\n // to mirror the row's own `theme` from context. An action that names a theme\n // is asking to paint itself rather than match its host, and gets it.\n theme = 'current',\n icon,\n children,\n isLoading = false,\n isSelected = false,\n tooltip,\n mods,\n styles,\n isDisabled: isDisabledProp,\n ...rest\n } = allProps;\n\n // Inherit disabled state from context, but allow local override. Loading\n // always disables, as on `Button`: a second press while the first is still\n // running would run the action again, so not even `isDisabled={false}`\n // re-enables a loading action.\n const isDisabled = isLoading || (isDisabledProp ?? contextIsDisabled);\n\n // The host row is disabled too. The `current` theme paints from the inherited\n // color, which a disabled host has already faded, so fading a second time\n // washes the label out (see `CURRENT_ITEM_STYLES.color`). And like a disabled\n // fieldset, a disabled host leaves its button actions out of the tab order.\n const isDisabledInherited = !!contextIsDisabled && isDisabled;\n\n // Determine if we should show a checkmark\n const hasCheckmark = icon === 'checkmark';\n\n // Determine final icon (loading takes precedence)\n const finalIcon = isLoading ? (\n <LoadingIcon />\n ) : hasCheckmark ? (\n <CheckIcon />\n ) : (\n icon\n );\n\n // Build modifiers\n const finalMods = {\n checkmark: hasCheckmark,\n selected: isSelected,\n loading: isLoading,\n 'has-label': !!children,\n context: !!contextType,\n // The spinner takes the icon slot, so it needs the icon's padding.\n 'has-icon': !!finalIcon,\n 'inherit-disabled': isDisabledInherited,\n ...mods,\n };\n\n // An explicit label always wins; a tooltip only fills in the accessible name\n // when there isn't one. Rich tooltip content can't serve as a name, so only\n // plain strings are used here.\n const ariaLabel =\n rest['aria-label'] ||\n (typeof tooltip === 'string'\n ? tooltip\n : typeof tooltip === 'object' && typeof tooltip.title === 'string'\n ? tooltip.title\n : undefined);\n\n // `isDisabled` is dropped from the element: tasty would turn it into the\n // native `disabled` attribute, which `getDisabledElementProps` decides below.\n const {\n actionProps: { isDisabled: _isDisabled, ...actionProps },\n } = useAction(\n {\n ...rest,\n isDisabled,\n 'aria-label': ariaLabel,\n mods: finalMods,\n htmlType: 'button',\n },\n ref,\n );\n\n // Set tabIndex when in context. A loading action keeps focus it already has,\n // but Tab skips it until loading ends, tooltip or not. Otherwise an explicit\n // `tabIndex` wins over `excludeFromTabOrder`, which this prop would reset.\n const finalTabIndex =\n disableActionsFocus || isLoading\n ? -1\n : rest.tabIndex ?? (rest.excludeFromTabOrder ? -1 : undefined);\n\n // Extract tooltip content and props\n const tooltipContent =\n typeof tooltip === 'string'\n ? tooltip\n : typeof tooltip === 'object' && tooltip.title\n ? tooltip.title\n : undefined;\n\n const { title: _title, ...tooltipProps } =\n typeof tooltip === 'object' ? tooltip : {};\n\n // Only icon-only actions show their tooltip.\n const hasTooltip = !children && !!tooltipContent;\n\n // Native `disabled` drops focus. A loading action keeps it, so a keyboard\n // press doesn't lose its place. So does an action that disables itself while\n // showing a tooltip, often its only label, which keyboard users reach and read\n // as on `Button`. One whose host is disabled too stays native.\n const { isNativelyDisabled, isInert, inertProps } = getDisabledElementProps({\n isDisabled,\n keepEvents: isLoading || (hasTooltip && !isDisabledInherited),\n as: typeof actionProps.as === 'string' ? actionProps.as : undefined,\n });\n\n // Without the native attribute, handlers a parent passed in (a `MenuTrigger`'s\n // `onKeyDown`) would still activate the action.\n const elementProps = isInert\n ? omitActivationEventProps(actionProps)\n : actionProps;\n\n const finalType = type;\n\n // Render function that accepts tooltip trigger props and ref\n const renderButton = (\n tooltipTriggerProps?: HTMLAttributes<HTMLElement>,\n tooltipRef?: RefObject<HTMLElement>,\n ) => {\n // Merge tooltip ref with actionProps if provided\n const mergedProps = tooltipRef\n ? mergeProps(\n mergeTooltipFocusProps(elementProps, tooltipTriggerProps),\n inertProps,\n {\n ref: (element: HTMLElement | null) => {\n // Set the tooltip ref\n if (tooltipRef) {\n (tooltipRef as any).current = element;\n }\n // Set the action ref if it exists in actionProps\n const actionRef = (actionProps as any).ref;\n if (actionRef) {\n if (typeof actionRef === 'function') {\n actionRef(element);\n } else {\n actionRef.current = element;\n }\n }\n },\n },\n )\n : mergeProps(\n mergeTooltipFocusProps(elementProps, tooltipTriggerProps),\n inertProps,\n );\n\n return (\n <ItemActionElement\n {...mergedProps}\n disabled={isNativelyDisabled}\n variant={`${theme}.${finalType}` as ItemActionVariant}\n data-theme={theme}\n data-type={finalType}\n role={menuItemAction ? 'menuitem' : rest.role}\n data-menu-inline-action={menuItemAction || undefined}\n tabIndex={finalTabIndex}\n styles={styles}\n >\n {finalIcon && <div data-element=\"Icon\">{finalIcon}</div>}\n {children}\n </ItemActionElement>\n );\n };\n\n // Wrap with tooltip if needed\n if (hasTooltip) {\n return (\n <TooltipProvider title={tooltipContent} {...tooltipProps}>\n {(triggerProps, tooltipRef) => renderButton(triggerProps, tooltipRef)}\n </TooltipProvider>\n );\n }\n\n return renderButton();\n});\n\nexport type { CubeItemActionProps as ItemActionProps };\n"],"mappings":";;;;;;;;;;;;;;;;AAwGA,MAAMuD,oBAAoBpD,MAAM;CAC9BqD,IAAI;CACJJ,QAAQ;EAEN,GAAGlC;EACHuC,QAAQ;EAKRC,SAAS;GACP,IAAI;GACJC,SAAS;GACV;EACDC,eAAe;EACfC,QAAQ;GAAE,IAAI;GAAYC,UAAU;GAAW;EAC/CC,QAAQ;GACN,IAAI;GACJ,eAAe;GAChB;EACDC,SAAS;GACP,IAAI;GACJ,YAAY;GACZ,wBAAwB;GACzB;EAED,mBAAmB;GACjB,IAAI;GACJ,eAAe;GAChB;EACD,wBAAwB;EACxB,uBAAuB;EACvB,oBAAoB;EAEpBC,MAAM;GACJC,GAAG;GAEH,GAAIhD,wBAAwB+C;GAC5B,cAAc;GAChB;EACD;CACDE,UAAU;EAIR,mBAAmBxD;EACnB,mBAAmBD;EACnB,iBAAiBD;EAGjB,mBAAmBQ;EACnB,mBAAmBD;EACnB,iBAAiBD;EAGjB,kBAAkBD;EAClB,kBAAkBD;EAClB,gBAAgBD;EAGhB,mBAAmBe;EACnB,mBAAmBD;EACnB,iBAAiBD;EAGjB,mBAAmBK;EACnB,mBAAmBD;EACnB,iBAAiBD;EAGjB,gBAAgBP;EAChB,gBAAgBD;EAChB,cAAcD;EAGd,mBAAmBK;EACnB,mBAAmBD;EACnB,iBAAiBD;EACnB;CACD,CAAC;AAEF,MAAa8C,aAAa/D,WAAW,SAAA+D,WAAAC,UAAAC,KAAA;CAAA,MAAAJ,IAAAK,EAAA,GAAA;CAInC,MAAA,EAAAvB,MAAAwB,aAAAC,qBAAAC,gBAAAC,YAAAC,sBAKItC,sBAAsB;CAAC,IAAAO;CAAA,IAAAD;CAAA,IAAAiC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAA3B;CAAA,IAAA4B;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAj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,IAAA,MAAAqC;AAAArC,IAAA,MAAAsC;QAAA;AAAAD,QAAArC,EAAA;AAAAsC,QAAAtC,EAAA;;AAAA,KAAAsC,QAAAG,OAAAC,IAAA,8BAAA,CAAA,QAAAJ;AAAA,QAAdD;EACP"}
1
+ {"version":3,"file":"ItemAction.js","names":["FocusableRef","BaseProps","Styles","tasty","ComponentProps","forwardRef","HTMLAttributes","ReactNode","RefObject","CURRENT_CLEAR_STYLES","CURRENT_OUTLINE_STYLES","CURRENT_PRIMARY_STYLES","DANGER_CLEAR_STYLES","DANGER_OUTLINE_STYLES","DANGER_PRIMARY_STYLES","DEFAULT_CLEAR_STYLES","DEFAULT_OUTLINE_STYLES","DEFAULT_PRIMARY_STYLES","ITEM_ACTION_BASE_STYLES","NOTE_CLEAR_STYLES","NOTE_OUTLINE_STYLES","NOTE_PRIMARY_STYLES","SPECIAL_CLEAR_STYLES","SPECIAL_OUTLINE_STYLES","SPECIAL_PRIMARY_STYLES","SUCCESS_CLEAR_STYLES","SUCCESS_OUTLINE_STYLES","SUCCESS_PRIMARY_STYLES","WARNING_CLEAR_STYLES","WARNING_OUTLINE_STYLES","WARNING_PRIMARY_STYLES","CheckIcon","LoadingIcon","getDisabledElementProps","mergeProps","omitActivationEventProps","mergeTooltipFocusProps","TooltipProvider","useItemActionContext","CubeUseActionProps","useAction","CubeItemActionProps","Omit","size","icon","children","isLoading","isSelected","type","theme","tooltip","title","styles","tabIndex","ItemActionVariant","ItemActionElement","qa","recipe","outline","focused","outlineOffset","cursor","disabled","preset","padding","Icon","$","variants","ItemAction","allProps","ref","_c","contextType","disableActionsFocus","menuItemAction","isDisabled","contextIsDisabled","isDisabledProp","mods","rest","t0","t1","t2","t3","undefined","isDisabledInherited","hasCheckmark","t4","finalIcon","t5","t6","t7","t8","checkmark","selected","loading","context","finalMods","ariaLabel","t9","htmlType","actionProps","t10","t11","t12","excludeFromTabOrder","role","Symbol","for","bb0","_isDisabled","finalTabIndex","tooltipContent","t13","tooltipProps","_title","t14","hasTooltip","isNativelyDisabled","isInert","inertProps","keepEvents","as","elementProps","finalType","renderButton","tooltipTriggerProps","tooltipRef","mergedProps","element","current","actionRef","triggerProps","tooltipRef_0","ItemActionProps","_c"],"sources":["../../../../src/components/actions/ItemAction/ItemAction.tsx"],"sourcesContent":["import { FocusableRef } from '@react-types/shared';\nimport { BaseProps, Styles, tasty } from '@tenphi/tasty';\nimport {\n ComponentProps,\n forwardRef,\n HTMLAttributes,\n ReactNode,\n RefObject,\n} from 'react';\n\nimport {\n CURRENT_CLEAR_STYLES,\n CURRENT_OUTLINE_STYLES,\n CURRENT_PRIMARY_STYLES,\n DANGER_CLEAR_STYLES,\n DANGER_OUTLINE_STYLES,\n DANGER_PRIMARY_STYLES,\n DEFAULT_CLEAR_STYLES,\n DEFAULT_OUTLINE_STYLES,\n DEFAULT_PRIMARY_STYLES,\n ITEM_ACTION_BASE_STYLES,\n NOTE_CLEAR_STYLES,\n NOTE_OUTLINE_STYLES,\n NOTE_PRIMARY_STYLES,\n SPECIAL_CLEAR_STYLES,\n SPECIAL_OUTLINE_STYLES,\n SPECIAL_PRIMARY_STYLES,\n SUCCESS_CLEAR_STYLES,\n SUCCESS_OUTLINE_STYLES,\n SUCCESS_PRIMARY_STYLES,\n WARNING_CLEAR_STYLES,\n WARNING_OUTLINE_STYLES,\n WARNING_PRIMARY_STYLES,\n} from '../../../data/item-themes';\nimport { CheckIcon } from '../../../icons/CheckIcon';\nimport { LoadingIcon } from '../../../icons/LoadingIcon';\nimport {\n getDisabledElementProps,\n mergeProps,\n omitActivationEventProps,\n} from '../../../utils/react';\nimport { mergeTooltipFocusProps } from '../../overlays/Tooltip/split-trigger-props';\nimport { TooltipProvider } from '../../overlays/Tooltip/TooltipProvider';\nimport { useItemActionContext } from '../ItemActionContext';\nimport { CubeUseActionProps, useAction } from '../use-action';\n\nexport interface CubeItemActionProps\n extends Omit<CubeUseActionProps, 'as' | 'htmlType'>,\n Omit<BaseProps, 'as'> {\n size?:\n | 'xsmall'\n | 'small'\n | 'medium'\n | 'large'\n | 'xlarge'\n | 'inline'\n | (string & {});\n icon?: ReactNode | 'checkmark';\n children?: ReactNode;\n isLoading?: boolean;\n isSelected?: boolean;\n type?: 'primary' | 'outline' | 'clear' | (string & {});\n theme?:\n | 'current'\n | 'default'\n | 'danger'\n | 'success'\n | 'warning'\n | 'note'\n | 'special'\n | (string & {});\n tooltip?:\n | string\n | (Omit<ComponentProps<typeof TooltipProvider>, 'children'> & {\n title?: ReactNode;\n });\n styles?: Styles;\n tabIndex?: number;\n}\n\ntype ItemActionVariant =\n // Inherited-color theme — see the CURRENT THEME section of `item-themes`.\n | 'current.primary'\n | 'current.outline'\n | 'current.clear'\n | 'default.primary'\n | 'default.outline'\n | 'default.clear'\n | 'danger.primary'\n | 'danger.outline'\n | 'danger.clear'\n | 'success.primary'\n | 'success.outline'\n | 'success.clear'\n | 'warning.primary'\n | 'warning.outline'\n | 'warning.clear'\n | 'note.primary'\n | 'note.outline'\n | 'note.clear'\n | 'special.primary'\n | 'special.outline'\n | 'special.clear';\n\nconst ItemActionElement = tasty({\n qa: 'ItemAction',\n styles: {\n // eslint-disable-next-line tasty/no-style-spread -- action base shared with ItemBadge\n ...ITEM_ACTION_BASE_STYLES,\n recipe: 'reset button',\n // Every variant below defines its own ring and overrides this one, which is\n // kept as the floor for a custom `type` that resolves to no variant at all.\n // It uses the same `#primary-accent-text` as every variant in\n // `item-themes.ts`.\n outline: {\n '': '0 #primary-accent-text.0',\n focused: '1bw #primary-accent-text',\n },\n outlineOffset: 1,\n cursor: { '': '$pointer', disabled: 'default' },\n preset: {\n '': 't4',\n 'size=xlarge': 't3m',\n },\n padding: {\n '': '0 $inline-padding',\n 'has-icon': 0,\n 'has-icon & has-label': '$inline-padding right',\n },\n\n '$inline-padding': {\n '': 'max($min-inline-padding, (($action-size - 1lh - 2bw) / 2 + $inline-compensation))',\n 'size=inline': '.25x',\n },\n '$inline-compensation': '.5x',\n '$min-inline-padding': '(.5x - 1bw)',\n '$local-icon-size': '$icon-size',\n\n Icon: {\n $: '>',\n // eslint-disable-next-line tasty/no-style-spread -- Icon base shared with ItemBadge\n ...(ITEM_ACTION_BASE_STYLES.Icon as Styles),\n '$icon-size': 'min($local-icon-size, ($action-size - .25x))',\n },\n },\n variants: {\n // Current theme — colors mixed from the inherited `currentcolor`. The\n // default `clear` flavour is borderless, so an action does not put a resting\n // chip on every row.\n 'current.primary': CURRENT_PRIMARY_STYLES,\n 'current.outline': CURRENT_OUTLINE_STYLES,\n 'current.clear': CURRENT_CLEAR_STYLES,\n\n // Default theme\n 'default.primary': DEFAULT_PRIMARY_STYLES,\n 'default.outline': DEFAULT_OUTLINE_STYLES,\n 'default.clear': DEFAULT_CLEAR_STYLES,\n\n // Danger theme\n 'danger.primary': DANGER_PRIMARY_STYLES,\n 'danger.outline': DANGER_OUTLINE_STYLES,\n 'danger.clear': DANGER_CLEAR_STYLES,\n\n // Success theme\n 'success.primary': SUCCESS_PRIMARY_STYLES,\n 'success.outline': SUCCESS_OUTLINE_STYLES,\n 'success.clear': SUCCESS_CLEAR_STYLES,\n\n // Warning theme\n 'warning.primary': WARNING_PRIMARY_STYLES,\n 'warning.outline': WARNING_OUTLINE_STYLES,\n 'warning.clear': WARNING_CLEAR_STYLES,\n\n // Note theme\n 'note.primary': NOTE_PRIMARY_STYLES,\n 'note.outline': NOTE_OUTLINE_STYLES,\n 'note.clear': NOTE_CLEAR_STYLES,\n\n // Special theme\n 'special.primary': SPECIAL_PRIMARY_STYLES,\n 'special.outline': SPECIAL_OUTLINE_STYLES,\n 'special.clear': SPECIAL_CLEAR_STYLES,\n },\n});\n\nexport const ItemAction = forwardRef(function ItemAction(\n allProps: CubeItemActionProps,\n ref: FocusableRef<HTMLElement>,\n) {\n const {\n type: contextType,\n disableActionsFocus,\n menuItemAction,\n isDisabled: contextIsDisabled,\n } = useItemActionContext();\n\n const {\n // Borderless by default: an action sits inside a row, where a resting chip\n // on every one of them would read as noise.\n type = 'clear',\n // The `current` theme derives every color from the row's inherited\n // `currentcolor`, so one default covers every host type and theme — no need\n // to mirror the row's own `theme` from context. An action that names a theme\n // is asking to paint itself rather than match its host, and gets it.\n theme = 'current',\n icon,\n children,\n isLoading = false,\n isSelected = false,\n tooltip,\n mods,\n styles,\n isDisabled: isDisabledProp,\n ...rest\n } = allProps;\n\n // Inherit disabled state from context, but allow local override. Loading\n // always disables, as on `Button`: a second press while the first is still\n // running would run the action again, so not even `isDisabled={false}`\n // re-enables a loading action.\n const isDisabled = isLoading || (isDisabledProp ?? contextIsDisabled);\n\n // The host row is disabled too. The `current` theme paints from the inherited\n // color, which a disabled host has already faded, so fading a second time\n // washes the label out (see `CURRENT_ITEM_STYLES.color`). And like a disabled\n // fieldset, a disabled host leaves its button actions out of the tab order.\n const isDisabledInherited = !!contextIsDisabled && isDisabled;\n\n // Determine if we should show a checkmark\n const hasCheckmark = icon === 'checkmark';\n\n // Determine final icon (loading takes precedence)\n const finalIcon = isLoading ? (\n <LoadingIcon />\n ) : hasCheckmark ? (\n <CheckIcon />\n ) : (\n icon\n );\n\n // Build modifiers\n const finalMods = {\n checkmark: hasCheckmark,\n selected: isSelected,\n loading: isLoading,\n 'has-label': !!children,\n context: !!contextType,\n // The spinner takes the icon slot, so it needs the icon's padding.\n 'has-icon': !!finalIcon,\n 'inherit-disabled': isDisabledInherited,\n ...mods,\n };\n\n // An explicit label always wins; a tooltip only fills in the accessible name\n // when there isn't one. Rich tooltip content can't serve as a name, so only\n // plain strings are used here.\n const ariaLabel =\n rest['aria-label'] ||\n (typeof tooltip === 'string'\n ? tooltip\n : typeof tooltip === 'object' && typeof tooltip.title === 'string'\n ? tooltip.title\n : undefined);\n\n // `isDisabled` is dropped from the element: tasty would turn it into the\n // native `disabled` attribute, which `getDisabledElementProps` decides below.\n const {\n actionProps: { isDisabled: _isDisabled, ...actionProps },\n } = useAction(\n {\n ...rest,\n isDisabled,\n 'aria-label': ariaLabel,\n mods: finalMods,\n htmlType: 'button',\n },\n ref,\n );\n\n // Set tabIndex when in context. A loading action keeps focus it already has,\n // but Tab skips it until loading ends, tooltip or not. Otherwise an explicit\n // `tabIndex` wins over `excludeFromTabOrder`, which this prop would reset.\n const finalTabIndex =\n disableActionsFocus || isLoading\n ? -1\n : rest.tabIndex ?? (rest.excludeFromTabOrder ? -1 : undefined);\n\n // Extract tooltip content and props\n const tooltipContent =\n typeof tooltip === 'string'\n ? tooltip\n : typeof tooltip === 'object' && tooltip.title\n ? tooltip.title\n : undefined;\n\n const { title: _title, ...tooltipProps } =\n typeof tooltip === 'object' ? tooltip : {};\n\n // Only icon-only actions show their tooltip.\n const hasTooltip = !children && !!tooltipContent;\n\n // Native `disabled` drops focus. A loading action keeps it, so a keyboard\n // press doesn't lose its place. So does an action that disables itself while\n // showing a tooltip, often its only label, which keyboard users reach and read\n // as on `Button`. One whose host is disabled too stays native.\n const { isNativelyDisabled, isInert, inertProps } = getDisabledElementProps({\n isDisabled,\n keepEvents: isLoading || (hasTooltip && !isDisabledInherited),\n as: typeof actionProps.as === 'string' ? actionProps.as : undefined,\n });\n\n // Without the native attribute, handlers a parent passed in (a `MenuTrigger`'s\n // `onKeyDown`) would still activate the action.\n const elementProps = isInert\n ? omitActivationEventProps(actionProps)\n : actionProps;\n\n const finalType = type;\n\n // Render function that accepts tooltip trigger props and ref\n const renderButton = (\n tooltipTriggerProps?: HTMLAttributes<HTMLElement>,\n tooltipRef?: RefObject<HTMLElement>,\n ) => {\n // Merge tooltip ref with actionProps if provided\n const mergedProps = tooltipRef\n ? mergeProps(\n mergeTooltipFocusProps(elementProps, tooltipTriggerProps),\n inertProps,\n {\n ref: (element: HTMLElement | null) => {\n // Set the tooltip ref\n if (tooltipRef) {\n (tooltipRef as any).current = element;\n }\n // Set the action ref if it exists in actionProps\n const actionRef = (actionProps as any).ref;\n if (actionRef) {\n if (typeof actionRef === 'function') {\n actionRef(element);\n } else {\n actionRef.current = element;\n }\n }\n },\n },\n )\n : mergeProps(\n mergeTooltipFocusProps(elementProps, tooltipTriggerProps),\n inertProps,\n );\n\n return (\n <ItemActionElement\n {...mergedProps}\n disabled={isNativelyDisabled}\n variant={`${theme}.${finalType}` as ItemActionVariant}\n data-theme={theme}\n data-type={finalType}\n role={menuItemAction ? 'menuitem' : rest.role}\n data-menu-inline-action={menuItemAction || undefined}\n tabIndex={finalTabIndex}\n styles={styles}\n >\n {finalIcon && <div data-element=\"Icon\">{finalIcon}</div>}\n {children}\n </ItemActionElement>\n );\n };\n\n // Wrap with tooltip if needed\n if (hasTooltip) {\n return (\n <TooltipProvider title={tooltipContent} {...tooltipProps}>\n {(triggerProps, tooltipRef) => renderButton(triggerProps, tooltipRef)}\n </TooltipProvider>\n );\n }\n\n return renderButton();\n});\n\nexport type { CubeItemActionProps as ItemActionProps };\n"],"mappings":";;;;;;;;;;;;;;;AAwGA,MAAMuD,oBAAoBpD,MAAM;CAC9BqD,IAAI;CACJJ,QAAQ;EAEN,GAAGlC;EACHuC,QAAQ;EAKRC,SAAS;GACP,IAAI;GACJC,SAAS;EACX;EACAC,eAAe;EACfC,QAAQ;GAAE,IAAI;GAAYC,UAAU;EAAU;EAC9CC,QAAQ;GACN,IAAI;GACJ,eAAe;EACjB;EACAC,SAAS;GACP,IAAI;GACJ,YAAY;GACZ,wBAAwB;EAC1B;EAEA,mBAAmB;GACjB,IAAI;GACJ,eAAe;EACjB;EACA,wBAAwB;EACxB,uBAAuB;EACvB,oBAAoB;EAEpBC,MAAM;GACJC,GAAG;GAEH,GAAIhD,wBAAwB+C;GAC5B,cAAc;EAChB;CACF;CACAE,UAAU;EAIR,mBAAmBxD;EACnB,mBAAmBD;EACnB,iBAAiBD;EAGjB,mBAAmBQ;EACnB,mBAAmBD;EACnB,iBAAiBD;EAGjB,kBAAkBD;EAClB,kBAAkBD;EAClB,gBAAgBD;EAGhB,mBAAmBe;EACnB,mBAAmBD;EACnB,iBAAiBD;EAGjB,mBAAmBK;EACnB,mBAAmBD;EACnB,iBAAiBD;EAGjB,gBAAgBP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Aa,oBAAA,OAAA;MAAkB,gBAAA;MAAQA,UAAAA;KAAgB,CAAA,GACvD3C,QAZe;;GAaE;GAKxB,IAAIwE,YAAU;IAEVb,MAAA,oBAAC,iBAAD;KAAwBQ,OAAAA;KAAc,GAAME;KACzCkB,WAAAA,cAAAC,iBAA8BR,aAAaO,cAAcL,YAAU;IADtD,CAAA;IAAhB,MAAAlB;GAEkB;GAIfN,MAAAsB,aAAa;EAAC;EAAA3D,EAAA,MAAArB;EAAAqB,EAAA,MAAAO;EAAAP,EAAA,MAAAsB;EAAAtB,EAAA,MAAAS;EAAAT,EAAA,MAAAmB;EAAAnB,EAAA,MAAApB;EAAAoB,EAAA,MAAAQ;EAAAR,EAAA,MAAAa,KAAA0B;EAAAvC,EAAA,MAAAa,KAAA2B;EAAAxC,EAAA,MAAAa,KAAA1B;EAAAa,EAAA,MAAAd;EAAAc,EAAA,MAAAoC;EAAApC,EAAA,MAAAjB;EAAAiB,EAAA,MAAAhB;EAAAgB,EAAA,MAAAlB;EAAAkB,EAAA,MAAAqC;EAAArC,EAAA,MAAAsC;CAAA,OAAA;EAAAD,MAAArC,EAAA;EAAAsC,MAAAtC,EAAA;CAAA;CAAA,IAAAsC,QAAAG,OAAAC,IAAA,6BAAA,GAAA,OAAAJ;CAAA,OAAdD;AAAc,CACtB"}
@@ -1,2 +1,3 @@
1
1
 
2
- import { CubeItemActionProps, ItemAction } from "./ItemAction.js";
2
+ import { CubeItemActionProps, ItemAction } from "./ItemAction.js";
3
+ export { type CubeItemActionProps, ItemAction };
@@ -1,8 +1,6 @@
1
1
 
2
- import { CubeItemProps } from "../content/Item/Item.js";
3
- import * as react from "react";
2
+ import { CubeItemBaseProps as CubeItemProps } from "../content/Item/Item.js";
4
3
  import { ReactNode } from "react";
5
-
6
4
  //#region src/components/actions/ItemActionContext.d.ts
7
5
  /**
8
6
  * What an `ItemAction` / `ItemBadge` picks up from the row that hosts it.
@@ -25,7 +23,7 @@ interface ItemActionContextValue {
25
23
  menuItemAction?: boolean;
26
24
  isDisabled?: boolean;
27
25
  }
28
- interface ItemActionProviderProps {
26
+ export interface ItemActionProviderProps {
29
27
  type?: CubeItemProps['type'];
30
28
  theme?: 'default' | 'danger' | 'success' | 'special' | (string & {});
31
29
  disableActionsFocus?: boolean;
@@ -33,15 +31,8 @@ interface ItemActionProviderProps {
33
31
  isDisabled?: boolean;
34
32
  children: ReactNode;
35
33
  }
36
- declare function ItemActionProvider({
37
- type,
38
- theme,
39
- disableActionsFocus,
40
- menuItemAction,
41
- isDisabled,
42
- children
43
- }: ItemActionProviderProps): react.JSX.Element;
44
- declare function useItemActionContext(): ItemActionContextValue;
34
+ export declare function ItemActionProvider({ type, theme, disableActionsFocus, menuItemAction, isDisabled, children }: ItemActionProviderProps): import("react").JSX.Element;
35
+ export declare function useItemActionContext(): ItemActionContextValue;
45
36
  //#endregion
46
- export { ItemActionProvider, ItemActionProviderProps, useItemActionContext };
37
+ export {};
47
38
  //# sourceMappingURL=ItemActionContext.d.ts.map
@@ -1,8 +1,7 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-eaec28c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ead54f5 | Cube Dev Team */
2
2
  import { c } from "react/compiler-runtime";
3
3
  import { createContext, useContext } from "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
-
6
5
  //#region src/components/actions/ItemActionContext.tsx
7
6
  const ItemActionContext = createContext(void 0);
8
7
  function ItemActionProvider(t0) {
@@ -39,7 +38,7 @@ function ItemActionProvider(t0) {
39
38
  function useItemActionContext() {
40
39
  return useContext(ItemActionContext) ?? {};
41
40
  }
42
-
43
41
  //#endregion
44
42
  export { ItemActionProvider, useItemActionContext };
43
+
45
44
  //# sourceMappingURL=ItemActionContext.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ItemActionContext.js","names":["createContext","ReactNode","useContext","CubeItemProps","ItemActionContextValue","type","theme","disableActionsFocus","menuItemAction","isDisabled","ItemActionContext","undefined","ItemActionProviderProps","children","ItemActionProvider","t0","$","_c","t1","t2","useItemActionContext"],"sources":["../../../src/components/actions/ItemActionContext.tsx"],"sourcesContent":["import { createContext, ReactNode, useContext } from 'react';\n\nimport type { CubeItemProps } from '../content/Item/Item';\n\n/**\n * What an `ItemAction` / `ItemBadge` picks up from the row that hosts it.\n *\n * `type` is deliberately NOT a styling input. Actions default to the `current`\n * type, which derives every color from the row's own `currentcolor`, so they\n * track the host's type without being told what it is — see\n * `CURRENT_ITEM_STYLES`. It is still carried here because its *presence* marks\n * \"inside a host\", which drives the `context` mod that collapses the action's\n * side margins.\n *\n * `theme` is still consumed: `current` needs to know when it sits on the\n * special theme's dark surface, where the alpha ramp has to step harder to stay\n * visible. `ItemAction` forwards it to `data-theme` for that one purpose.\n */\ninterface ItemActionContextValue {\n type?: CubeItemProps['type'];\n theme?: 'default' | 'danger' | 'success' | 'special' | (string & {});\n disableActionsFocus?: boolean;\n menuItemAction?: boolean;\n isDisabled?: boolean;\n}\n\nconst ItemActionContext = createContext<ItemActionContextValue | undefined>(\n undefined,\n);\n\nexport interface ItemActionProviderProps {\n type?: CubeItemProps['type'];\n theme?: 'default' | 'danger' | 'success' | 'special' | (string & {});\n disableActionsFocus?: boolean;\n menuItemAction?: boolean;\n isDisabled?: boolean;\n children: ReactNode;\n}\n\nexport function ItemActionProvider({\n type,\n theme,\n disableActionsFocus,\n menuItemAction,\n isDisabled,\n children,\n}: ItemActionProviderProps) {\n return (\n <ItemActionContext.Provider\n value={{\n // Passed through as-is. The mapping that used to fold the row types onto\n // `clear` here existed only to pick an action variant, which `current`\n // now does on its own.\n type,\n theme,\n disableActionsFocus,\n menuItemAction,\n isDisabled,\n }}\n >\n {children}\n </ItemActionContext.Provider>\n );\n}\n\nexport function useItemActionContext(): ItemActionContextValue {\n return useContext(ItemActionContext) ?? {};\n}\n"],"mappings":";;;;;;AA0BA,MAAMU,oBAAoBV,cACxBW,OACD;AAWD,SAAOG,mBAAAC,IAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAA4B,MAAA,EAAAZ,MAAAC,OAAAC,qBAAAC,gBAAAC,YAAAI,aAAAE;CAOT,IAAAG;AAAA,KAAAF,EAAA,OAAAT,uBAAAS,EAAA,OAAAP,cAAAO,EAAA,OAAAR,kBAAAQ,EAAA,OAAAV,SAAAU,EAAA,OAAAX,MAAA;AAGba,OAAA;GAAAb;GAAAC;GAAAC;GAAAC;GAAAC;GASN;AAAAO,IAAA,KAAAT;AAAAS,IAAA,KAAAP;AAAAO,IAAA,KAAAR;AAAAQ,IAAA,KAAAV;AAAAU,IAAA,KAAAX;AAAAW,IAAA,KAAAE;OAAAA,MAAAF,EAAA;CAAA,IAAAG;AAAA,KAAAH,EAAA,OAAAH,YAAAG,EAAA,OAAAE,IAAA;AAVHC,OAAA,oBAAA,kBAAA;GACS,OAAAD;GAWNL;IAC0B;AAAAG,IAAA,KAAAH;AAAAG,IAAA,KAAAE;AAAAF,IAAA,KAAAG;OAAAA,MAAAH,EAAA;AAAA,QAb7BG;;AAiBJ,SAAOC,uBAAA;AAAA,QACElB,WAAWQ,kBAAwB,IAAnC,EAAmC"}
1
+ {"version":3,"file":"ItemActionContext.js","names":["createContext","ReactNode","useContext","CubeItemProps","ItemActionContextValue","type","theme","disableActionsFocus","menuItemAction","isDisabled","ItemActionContext","undefined","ItemActionProviderProps","children","ItemActionProvider","t0","$","_c","t1","t2","useItemActionContext","_c"],"sources":["../../../src/components/actions/ItemActionContext.tsx"],"sourcesContent":["import { createContext, ReactNode, useContext } from 'react';\n\nimport type { CubeItemProps } from '../content/Item/Item';\n\n/**\n * What an `ItemAction` / `ItemBadge` picks up from the row that hosts it.\n *\n * `type` is deliberately NOT a styling input. Actions default to the `current`\n * type, which derives every color from the row's own `currentcolor`, so they\n * track the host's type without being told what it is — see\n * `CURRENT_ITEM_STYLES`. It is still carried here because its *presence* marks\n * \"inside a host\", which drives the `context` mod that collapses the action's\n * side margins.\n *\n * `theme` is still consumed: `current` needs to know when it sits on the\n * special theme's dark surface, where the alpha ramp has to step harder to stay\n * visible. `ItemAction` forwards it to `data-theme` for that one purpose.\n */\ninterface ItemActionContextValue {\n type?: CubeItemProps['type'];\n theme?: 'default' | 'danger' | 'success' | 'special' | (string & {});\n disableActionsFocus?: boolean;\n menuItemAction?: boolean;\n isDisabled?: boolean;\n}\n\nconst ItemActionContext = createContext<ItemActionContextValue | undefined>(\n undefined,\n);\n\nexport interface ItemActionProviderProps {\n type?: CubeItemProps['type'];\n theme?: 'default' | 'danger' | 'success' | 'special' | (string & {});\n disableActionsFocus?: boolean;\n menuItemAction?: boolean;\n isDisabled?: boolean;\n children: ReactNode;\n}\n\nexport function ItemActionProvider({\n type,\n theme,\n disableActionsFocus,\n menuItemAction,\n isDisabled,\n children,\n}: ItemActionProviderProps) {\n return (\n <ItemActionContext.Provider\n value={{\n // Passed through as-is. The mapping that used to fold the row types onto\n // `clear` here existed only to pick an action variant, which `current`\n // now does on its own.\n type,\n theme,\n disableActionsFocus,\n menuItemAction,\n isDisabled,\n }}\n >\n {children}\n </ItemActionContext.Provider>\n );\n}\n\nexport function useItemActionContext(): ItemActionContextValue {\n return useContext(ItemActionContext) ?? {};\n}\n"],"mappings":";;;;;AA0BA,MAAMU,oBAAoBV,cACxBW,KAAAA,CACF;AAWA,SAAOG,mBAAAC,IAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAA4B,MAAA,EAAAZ,MAAAC,OAAAC,qBAAAC,gBAAAC,YAAAI,aAAAE;CAOT,IAAAG;CAAA,IAAAF,EAAA,OAAAT,uBAAAS,EAAA,OAAAP,cAAAO,EAAA,OAAAR,kBAAAQ,EAAA,OAAAV,SAAAU,EAAA,OAAAX,MAAA;EAGba,KAAA;GAAAb;GAAAC;GAAAC;GAAAC;GAAAC;EASP;EAACO,EAAA,KAAAT;EAAAS,EAAA,KAAAP;EAAAO,EAAA,KAAAR;EAAAQ,EAAA,KAAAV;EAAAU,EAAA,KAAAX;EAAAW,EAAA,KAAAE;CAAA,OAAAA,KAAAF,EAAA;CAAA,IAAAG;CAAA,IAAAH,EAAA,OAAAH,YAAAG,EAAA,OAAAE,IAAA;EAVHC,KAAA,oBAAA,kBAAA,UAAA;GACS,OAAAD;GAWNL;EACH,CAAA;EAA6BG,EAAA,KAAAH;EAAAG,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAAA,KAAAH,EAAA;CAAA,OAb7BG;AAa6B;AAIjC,SAAOC,uBAAA;CAAA,OACElB,WAAWQ,iBAAuB,KAAlC,CAAkC;AAAC"}
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-eaec28c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ead54f5 | Cube Dev Team */
2
2
  import { DisplayTransition } from "../helpers/DisplayTransition/DisplayTransition.js";
3
3
  import { ITEM_RESTING_COLOR_VARIANTS, ROW_STATE_ALIASES, resolveItemVariant } from "../../data/item-themes.js";
4
4
  import { ItemActionProvider } from "./ItemActionContext.js";
@@ -8,7 +8,6 @@ import { useLayoutEffect, useRef, useState } from "react";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
9
  import { useFocusWithin, useHover } from "react-aria";
10
10
  import { ClearPressResponder } from "@react-aria/interactions";
11
-
12
11
  //#region src/components/actions/ItemActionsWrapper.tsx
13
12
  /**
14
13
  * The sibling-actions layout shared by `ItemButton` and the field triggers
@@ -357,7 +356,7 @@ function ItemActionsWrapper(props) {
357
356
  } else t22 = $[59];
358
357
  return t22;
359
358
  }
360
-
361
359
  //#endregion
362
360
  export { ItemActionIcon, ItemActionsWrapper };
361
+
363
362
  //# sourceMappingURL=ItemActionsWrapper.js.map