@cube-dev/ui-kit 0.0.0-canary-68b8ab7 → 0.0.0-canary-dbc4e26

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 (627) hide show
  1. package/dist/components/Action/Action.js +1 -1
  2. package/dist/components/ActiveZone/ActiveZone.js +1 -1
  3. package/dist/components/Alert/Alert.js +1 -1
  4. package/dist/components/Alert/use-alert.js +1 -1
  5. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  6. package/dist/components/AlertDialog/AlertDialogApiProvider.js +1 -1
  7. package/dist/components/AlertDialog/AlertDialogZone.js +1 -1
  8. package/dist/components/Avatar/Avatar.js +1 -1
  9. package/dist/components/Badge/Badge.js +1 -1
  10. package/dist/components/Banner/Banner.js +1 -1
  11. package/dist/components/Block/Block.js +1 -1
  12. package/dist/components/Button/AutoCollapseObserver.js +1 -1
  13. package/dist/components/Button/Button.js +1 -1
  14. package/dist/components/Button/index.js +1 -1
  15. package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
  16. package/dist/components/ButtonSplit/ButtonSplit.js +1 -1
  17. package/dist/components/ButtonSplit/ButtonSplitContext.js +1 -1
  18. package/dist/components/Calendar/Calendar.js +1 -1
  19. package/dist/components/Calendar/CalendarCell.js +1 -1
  20. package/dist/components/Calendar/CalendarGrid.js +1 -1
  21. package/dist/components/Calendar/CalendarHeader.js +1 -1
  22. package/dist/components/Calendar/CalendarPanel.js +1 -1
  23. package/dist/components/Calendar/PeriodCalendar.js +1 -1
  24. package/dist/components/Calendar/PeriodGrid.js +1 -1
  25. package/dist/components/Calendar/RangeCalendar.js +1 -1
  26. package/dist/components/Calendar/styled.js +1 -1
  27. package/dist/components/Card/Card.js +1 -1
  28. package/dist/components/Checkbox/Checkbox.js +1 -1
  29. package/dist/components/Checkbox/CheckboxGroup.js +1 -1
  30. package/dist/components/Checkbox/CheckboxGroupContext.js +1 -1
  31. package/dist/components/CollectionItem/CollectionItem.js +1 -1
  32. package/dist/components/ColorInput/ColorInput.js +1 -1
  33. package/dist/components/ColorPanel/ColorPanel.js +1 -1
  34. package/dist/components/ColorPicker/ColorPicker.js +1 -1
  35. package/dist/components/ColorSwatch/ColorSwatch.js +1 -1
  36. package/dist/components/ColorSwatchGroup/ColorSwatchGroup.js +1 -1
  37. package/dist/components/ComboBox/ComboBox.js +1 -1
  38. package/dist/components/ComboBox/combo-box-options.js +1 -1
  39. package/dist/components/CommandMenu/CommandMenu.js +1 -1
  40. package/dist/components/CommandMenu/styled.js +2 -1
  41. package/dist/components/CommandMenu/styled.js.map +1 -1
  42. package/dist/components/CommandTextArea/CommandTextArea.js +1 -1
  43. package/dist/components/CommandTextArea/caret-position.js +1 -1
  44. package/dist/components/CommandTextArea/use-caret-anchor.js +1 -1
  45. package/dist/components/Content/Content.js +1 -1
  46. package/dist/components/CopyPasteBlock/CopyPasteBlock.js +1 -1
  47. package/dist/components/CopySnippet/CopySnippet.js +1 -1
  48. package/dist/components/CubeLogo/CubeLogo.js +1 -1
  49. package/dist/components/DataTable/DataTable.js +1 -1
  50. package/dist/components/DatePicker/CalendarPopover.js +1 -1
  51. package/dist/components/DatePicker/DateInput.js +1 -1
  52. package/dist/components/DatePicker/DateInputBase.js +1 -1
  53. package/dist/components/DatePicker/DatePicker.js +1 -1
  54. package/dist/components/DatePicker/DatePickerButton.js +1 -1
  55. package/dist/components/DatePicker/DatePickerElement.js +1 -1
  56. package/dist/components/DatePicker/DatePickerInput.js +1 -1
  57. package/dist/components/DatePicker/DatePickerSegment.js +1 -1
  58. package/dist/components/DatePicker/DateRangePicker.js +1 -1
  59. package/dist/components/DatePicker/DateRangeSeparatedPicker.js +1 -1
  60. package/dist/components/DatePicker/MonthPicker.js +1 -1
  61. package/dist/components/DatePicker/PeriodPicker.js +1 -1
  62. package/dist/components/DatePicker/QuarterPicker.js +1 -1
  63. package/dist/components/DatePicker/TimeInput.js +1 -1
  64. package/dist/components/DatePicker/WeekPicker.js +1 -1
  65. package/dist/components/DatePicker/YearPicker.js +1 -1
  66. package/dist/components/DatePicker/parse-date.js +1 -1
  67. package/dist/components/DatePicker/period.js +1 -1
  68. package/dist/components/DatePicker/props.js +1 -1
  69. package/dist/components/DatePicker/utils.js +1 -1
  70. package/dist/components/Dialog/Dialog.js +1 -1
  71. package/dist/components/Dialog/DialogContainer.js +1 -1
  72. package/dist/components/Dialog/DialogContext.js +1 -1
  73. package/dist/components/Dialog/DialogForm.js +1 -1
  74. package/dist/components/Dialog/DialogTrigger.js +1 -1
  75. package/dist/components/Dialog/ModernDialogForm.js +1 -1
  76. package/dist/components/Dialog/default-button-text.js +1 -1
  77. package/dist/components/Dialog/use-content-overflow.js +1 -1
  78. package/dist/components/Dialog/use-dialog-container.js +1 -1
  79. package/dist/components/Dialog/use-dialog-open-sync.js +1 -1
  80. package/dist/components/Dialog/use-dismiss-confirmation.js +1 -1
  81. package/dist/components/Dialog/use-retained-dialog-focus.js +1 -1
  82. package/dist/components/Disclosure/Disclosure.js +1 -1
  83. package/dist/components/DisplayTransition/DisplayTransition.js +1 -1
  84. package/dist/components/Divider/Divider.js +1 -1
  85. package/dist/components/DraggableCollection/DraggableCollection.js +1 -1
  86. package/dist/components/FieldWrapper/FieldWrapper.js +1 -1
  87. package/dist/components/FieldWrapper/field-description.js +1 -1
  88. package/dist/components/FileInput/FileInput.js +1 -1
  89. package/dist/components/FilterListBox/FilterListBox.js +1 -1
  90. package/dist/components/FilterListBox/styled.js +5 -1
  91. package/dist/components/FilterListBox/styled.js.map +1 -1
  92. package/dist/components/FilterPicker/FilterPicker.js +1 -1
  93. package/dist/components/FilterPicker/FilterTree.js +1 -1
  94. package/dist/components/Flex/Flex.js +1 -1
  95. package/dist/components/Flow/Flow.js +1 -1
  96. package/dist/components/Footer/Footer.js +1 -1
  97. package/dist/components/Form/Field.js +1 -1
  98. package/dist/components/Form/Form.js +1 -1
  99. package/dist/components/Form/FormContext.js +1 -1
  100. package/dist/components/Form/FormElement.js +1 -1
  101. package/dist/components/Form/ModernFormRoot.js +1 -1
  102. package/dist/components/Form/ResetButton.js +1 -1
  103. package/dist/components/Form/SubmitButton.js +1 -1
  104. package/dist/components/Form/SubmitError.js +1 -1
  105. package/dist/components/Form/backend.js +1 -1
  106. package/dist/components/Form/index.js +1 -1
  107. package/dist/components/Form/modern/ModernActions.js +1 -1
  108. package/dist/components/Form/modern/ModernControllerContext.js +1 -1
  109. package/dist/components/Form/modern/controller.js +1 -1
  110. package/dist/components/Form/modern/field-binding.js +1 -1
  111. package/dist/components/Form/modern/field.js +1 -1
  112. package/dist/components/Form/modern/react.js +1 -1
  113. package/dist/components/Form/modern/store.js +1 -1
  114. package/dist/components/Form/modern/validation.js +1 -1
  115. package/dist/components/Form/modern/values.js +1 -1
  116. package/dist/components/Form/reset-unbound-controls.js +1 -1
  117. package/dist/components/Form/use-field/use-field-binding.js +1 -1
  118. package/dist/components/Form/use-field/use-field-props.js +1 -1
  119. package/dist/components/Form/use-field/use-field.js +1 -1
  120. package/dist/components/Form/use-form.js +1 -1
  121. package/dist/components/Form/validation.js +1 -1
  122. package/dist/components/GlobalStyles/GlobalStyles.js +1 -1
  123. package/dist/components/Grid/Grid.js +1 -1
  124. package/dist/components/GridProvider/GridProvider.js +1 -1
  125. package/dist/components/Header/Header.js +1 -1
  126. package/dist/components/HiddenInput/HiddenInput.js +1 -1
  127. package/dist/components/HotKeys/HotKeys.js +1 -1
  128. package/dist/components/IconSwitch/IconSwitch.js +1 -1
  129. package/dist/components/InfoBadge/InfoBadge.js +1 -1
  130. package/dist/components/InlineInput/InlineInput.js +1 -1
  131. package/dist/components/Input/Input.js +1 -1
  132. package/dist/components/Item/Item.js +1 -1
  133. package/dist/components/Item/ItemWithNativeLinks.js +1 -1
  134. package/dist/components/ItemAction/ItemAction.js +1 -1
  135. package/dist/components/ItemAction/ItemCloseAction.js +1 -1
  136. package/dist/components/ItemActionsWrapper/ItemActionsWrapper.js +1 -1
  137. package/dist/components/ItemBadge/ItemBadge.js +1 -1
  138. package/dist/components/ItemButton/ItemButton.js +1 -1
  139. package/dist/components/ItemCard/ItemCard.js +1 -1
  140. package/dist/components/ItemTable/ItemTable.js +1 -1
  141. package/dist/components/ItemTable/ItemTableBulkBar.js +1 -1
  142. package/dist/components/ItemTable/ItemTableDragPreview.js +1 -1
  143. package/dist/components/ItemTable/ItemTableFooter.js +1 -1
  144. package/dist/components/ItemTable/ItemTableToolbar.js +1 -1
  145. package/dist/components/ItemTable/item-table-sections.js +1 -1
  146. package/dist/components/ItemTable/use-item-table-column-widths.js +1 -1
  147. package/dist/components/ItemTable/use-item-table-drag-drop.js +1 -1
  148. package/dist/components/ItemTable/use-item-table-pagination.js +1 -1
  149. package/dist/components/ItemTable/use-item-table-selection.js +1 -1
  150. package/dist/components/ItemTable/use-item-table-sort.js +1 -1
  151. package/dist/components/ItemTable/use-item-table-tree-model.js +1 -1
  152. package/dist/components/Label/Label.js +1 -1
  153. package/dist/components/Layout/GridLayout.js +1 -1
  154. package/dist/components/Layout/Layout.js +1 -1
  155. package/dist/components/Layout/LayoutBlock.js +1 -1
  156. package/dist/components/Layout/LayoutCenter.js +1 -1
  157. package/dist/components/Layout/LayoutContainer.js +1 -1
  158. package/dist/components/Layout/LayoutContent.js +1 -1
  159. package/dist/components/Layout/LayoutContext.js +1 -1
  160. package/dist/components/Layout/LayoutFlex.js +1 -1
  161. package/dist/components/Layout/LayoutFooter.js +1 -1
  162. package/dist/components/Layout/LayoutGrid.js +1 -1
  163. package/dist/components/Layout/LayoutHeader.js +1 -1
  164. package/dist/components/Layout/LayoutPane.js +1 -1
  165. package/dist/components/Layout/LayoutPanel.js +1 -1
  166. package/dist/components/Layout/LayoutPanelHeader.js +1 -1
  167. package/dist/components/Layout/LayoutPanelTransition.js +1 -1
  168. package/dist/components/Layout/LayoutResizeHandle.js +1 -1
  169. package/dist/components/Layout/LayoutToolbar.js +1 -1
  170. package/dist/components/Layout/index.js +1 -1
  171. package/dist/components/Layout/use-tiny-scrollbar.js +1 -1
  172. package/dist/components/Layout/utils.js +1 -1
  173. package/dist/components/Link/Link.js +1 -1
  174. package/dist/components/ListBox/DraggableListBox.js +1 -1
  175. package/dist/components/ListBox/ListBox.js +6 -1
  176. package/dist/components/ListBox/ListBox.js.map +1 -1
  177. package/dist/components/ListBox/empty-row.js +1 -1
  178. package/dist/components/ListBox/option-id.js +1 -1
  179. package/dist/components/ListBox/use-disabled-focus-reset.js +1 -1
  180. package/dist/components/ListBoxPopover/EmptyLabelStatus.js +1 -1
  181. package/dist/components/ListBoxPopover/ListBoxPopover.js +1 -1
  182. package/dist/components/ListBoxPopover/list-navigation.js +1 -1
  183. package/dist/components/ListBoxPopover/use-composite-focus.js +1 -1
  184. package/dist/components/ListBoxPopover/use-delayed-loading.js +1 -1
  185. package/dist/components/LoadingAnimation/LoadingAnimation.js +1 -1
  186. package/dist/components/Menu/Menu.d.ts +13 -0
  187. package/dist/components/Menu/Menu.js +1 -1
  188. package/dist/components/Menu/Menu.js.map +1 -1
  189. package/dist/components/Menu/MenuCollectionItem.js +1 -1
  190. package/dist/components/Menu/MenuContext.js +1 -1
  191. package/dist/components/Menu/MenuItem.js +1 -1
  192. package/dist/components/Menu/MenuSection.js +1 -1
  193. package/dist/components/Menu/MenuTrigger.js +1 -1
  194. package/dist/components/Menu/SubMenuTrigger.js +1 -1
  195. package/dist/components/Menu/SubmenuTriggerContext.js +1 -1
  196. package/dist/components/Menu/styled.js +5 -4
  197. package/dist/components/Menu/styled.js.map +1 -1
  198. package/dist/components/Menu/touch-context-menu.js +1 -1
  199. package/dist/components/Menu/use-anchored-menu.js +1 -1
  200. package/dist/components/Menu/use-context-menu.js +1 -1
  201. package/dist/components/Modal/Modal.js +1 -1
  202. package/dist/components/Modal/ModalContainmentProvider.js +1 -1
  203. package/dist/components/Modal/OpenTransitionContext.js +1 -1
  204. package/dist/components/Modal/Overlay.js +1 -1
  205. package/dist/components/Modal/Popover.js +1 -1
  206. package/dist/components/Modal/Tray.js +1 -1
  207. package/dist/components/Modal/Underlay.js +1 -1
  208. package/dist/components/NavTabs/NavTabs.js +1 -1
  209. package/dist/components/NoDataIcon/NoDataIcon.js +1 -1
  210. package/dist/components/Notifications/Notification.js +1 -1
  211. package/dist/components/Notifications/NotificationAction.js +1 -1
  212. package/dist/components/Notifications/NotificationCard.js +1 -1
  213. package/dist/components/Notifications/NotificationContext.js +1 -1
  214. package/dist/components/Notifications/NotificationItem.js +1 -1
  215. package/dist/components/Notifications/OverlayContainer.js +1 -1
  216. package/dist/components/Notifications/OverlayProvider.js +1 -1
  217. package/dist/components/Notifications/PersistentNotificationsList.js +1 -1
  218. package/dist/components/Notifications/dismissed-storage.js +1 -1
  219. package/dist/components/Notifications/format-relative-time.js +1 -1
  220. package/dist/components/Notifications/index.js +1 -1
  221. package/dist/components/Notifications/use-live-region.js +1 -1
  222. package/dist/components/Notifications/use-notification-state.js +1 -1
  223. package/dist/components/Notifications/use-notifications.js +1 -1
  224. package/dist/components/Notifications/use-overlay-timers.js +1 -1
  225. package/dist/components/Notifications/use-persistent-notifications.js +1 -1
  226. package/dist/components/Notifications/use-persistent-state.js +1 -1
  227. package/dist/components/Notifications/use-toast-state.js +1 -1
  228. package/dist/components/NumberInput/NumberInput.js +1 -1
  229. package/dist/components/NumberInput/StepButton.js +1 -1
  230. package/dist/components/Pagination/Pagination.js +1 -1
  231. package/dist/components/Pagination/use-pagination.js +1 -1
  232. package/dist/components/Panel/Panel.js +1 -1
  233. package/dist/components/Paragraph/Paragraph.js +1 -1
  234. package/dist/components/PasswordInput/PasswordInput.js +1 -1
  235. package/dist/components/Picker/Picker.js +1 -1
  236. package/dist/components/Placeholder/Placeholder.js +1 -1
  237. package/dist/components/Portal/Portal.js +1 -1
  238. package/dist/components/Portal/PortalProvider.js +1 -1
  239. package/dist/components/Portal/use-portal.js +1 -1
  240. package/dist/components/Prefix/Prefix.js +1 -1
  241. package/dist/components/PrismCode/PrismCode.js +1 -1
  242. package/dist/components/PrismCode/prism-setup.js +1 -1
  243. package/dist/components/PrismDiffCode/PrismDiffCode.js +1 -1
  244. package/dist/components/RadioGroup/Radio.js +1 -1
  245. package/dist/components/RadioGroup/RadioContext.js +1 -1
  246. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  247. package/dist/components/RadioGroup/joined-styles.js +1 -1
  248. package/dist/components/RenderCache/RenderCache.js +1 -1
  249. package/dist/components/ResizablePanel/ResizablePanel.js +1 -1
  250. package/dist/components/Result/Result.js +1 -1
  251. package/dist/components/Root/Root.js +1 -1
  252. package/dist/components/SearchComboBox/SearchComboBox.js +1 -1
  253. package/dist/components/SearchInput/SearchInput.js +1 -1
  254. package/dist/components/Select/Select.js +1 -1
  255. package/dist/components/Skeleton/Skeleton.js +1 -1
  256. package/dist/components/Slider/Gradation.js +1 -1
  257. package/dist/components/Slider/HueSlider.js +1 -1
  258. package/dist/components/Slider/RangeSlider.js +1 -1
  259. package/dist/components/Slider/Slider.js +1 -1
  260. package/dist/components/Slider/SliderBase.js +1 -1
  261. package/dist/components/Slider/SliderThumb.js +1 -1
  262. package/dist/components/Slider/SliderTrack.js +1 -1
  263. package/dist/components/Slider/elements.js +1 -1
  264. package/dist/components/Slider/index.js +1 -1
  265. package/dist/components/Space/Space.js +1 -1
  266. package/dist/components/Spin/Cube.js +1 -1
  267. package/dist/components/Spin/InternalSpinner.js +1 -1
  268. package/dist/components/Spin/Spin.js +1 -1
  269. package/dist/components/Spin/SpinsContainer.js +1 -1
  270. package/dist/components/StatsCard/StatsCard.js +1 -1
  271. package/dist/components/Suffix/Suffix.js +1 -1
  272. package/dist/components/Switch/Switch.js +1 -1
  273. package/dist/components/TableBase/ColumnResizer.js +1 -1
  274. package/dist/components/TableBase/RowCollection.js +1 -1
  275. package/dist/components/TableBase/TableHeaderCell.js +1 -1
  276. package/dist/components/TableBase/TableRow.js +1 -1
  277. package/dist/components/TableBase/TableRowLink.js +1 -1
  278. package/dist/components/TableBase/TableView.js +1 -1
  279. package/dist/components/TableBase/TreeGridTable.js +1 -1
  280. package/dist/components/TableBase/column-header.js +1 -1
  281. package/dist/components/TableBase/column-menu.js +1 -1
  282. package/dist/components/TableBase/column-styles.js +1 -1
  283. package/dist/components/TableBase/column-tint.js +1 -1
  284. package/dist/components/TableBase/row-menu.js +1 -1
  285. package/dist/components/TableBase/styled.js +1 -1
  286. package/dist/components/TableBase/table-body-sections.js +1 -1
  287. package/dist/components/TableBase/table-tree.js +1 -1
  288. package/dist/components/TableBase/types.js +1 -1
  289. package/dist/components/TableBase/use-cell-selection.js +0 -0
  290. package/dist/components/TableBase/use-column-menu.js +1 -1
  291. package/dist/components/TableBase/use-column-order.js +1 -1
  292. package/dist/components/TableBase/use-column-window.js +1 -1
  293. package/dist/components/TableBase/use-container-width.js +1 -1
  294. package/dist/components/TableBase/use-row-move-animation.js +1 -1
  295. package/dist/components/TableBase/use-scrollability.js +1 -1
  296. package/dist/components/TableBase/use-table-columns.js +1 -1
  297. package/dist/components/TableBase/use-table-search.js +1 -1
  298. package/dist/components/TableBase/use-table-selection.js +1 -1
  299. package/dist/components/TableBase/use-table-sort.js +1 -1
  300. package/dist/components/TableBase/use-table-sorts.js +1 -1
  301. package/dist/components/TableBase/use-table-storage.js +1 -1
  302. package/dist/components/TableBase/use-table-tooltip-refresh.js +1 -1
  303. package/dist/components/TableBase/use-table-tree-state.js +1 -1
  304. package/dist/components/Tabs/BoardDragActiveProvider.js +1 -1
  305. package/dist/components/Tabs/DraggableTabList.js +1 -1
  306. package/dist/components/Tabs/TabButton.js +1 -1
  307. package/dist/components/Tabs/TabDropIndicator.js +1 -1
  308. package/dist/components/Tabs/TabPanel.js +1 -1
  309. package/dist/components/Tabs/TabPicker.js +1 -1
  310. package/dist/components/Tabs/Tabs.js +1 -1
  311. package/dist/components/Tabs/TabsAction.js +1 -1
  312. package/dist/components/Tabs/TabsContext.js +1 -1
  313. package/dist/components/Tabs/popover-placement.js +1 -1
  314. package/dist/components/Tabs/scroll-tab-into-strip.js +1 -1
  315. package/dist/components/Tabs/segmented-styles.js +1 -1
  316. package/dist/components/Tabs/styled.js +1 -1
  317. package/dist/components/Tabs/types.js +1 -1
  318. package/dist/components/Tabs/use-tab-editing.js +1 -1
  319. package/dist/components/Tabs/use-tab-indicator.js +1 -1
  320. package/dist/components/Tag/Tag.js +1 -1
  321. package/dist/components/TagInput/TagInput.js +1 -1
  322. package/dist/components/TagInput/TagList.js +1 -1
  323. package/dist/components/TagInput/use-active-option.js +1 -1
  324. package/dist/components/TagInput/use-suffix-space.js +1 -1
  325. package/dist/components/TagInput/use-tag-error.js +1 -1
  326. package/dist/components/Text/Text.js +1 -1
  327. package/dist/components/TextArea/TextArea.js +1 -1
  328. package/dist/components/TextInput/TextInput.js +1 -1
  329. package/dist/components/TextInput/TextInputBase.js +1 -1
  330. package/dist/components/TextInput/displayed-validation.js +1 -1
  331. package/dist/components/TextInput/identifier-text-services.js +1 -1
  332. package/dist/components/TextInput/password-manager-ignore.js +1 -1
  333. package/dist/components/TextInput/use-auto-size-text-area.js +1 -1
  334. package/dist/components/TextInputMapper/TextInputMapper.js +1 -1
  335. package/dist/components/TextItem/TextItem.js +1 -1
  336. package/dist/components/Title/Title.js +1 -1
  337. package/dist/components/Toast/AnnouncedToastItem.js +1 -1
  338. package/dist/components/Toast/Toast.js +1 -1
  339. package/dist/components/Toast/ToastItem.js +1 -1
  340. package/dist/components/Toast/use-progress-toast.js +1 -1
  341. package/dist/components/Toast/use-toast.js +1 -1
  342. package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
  343. package/dist/components/ToggleGroup/ToggleGroupContext.js +1 -1
  344. package/dist/components/ToggleGroup/ToggleGroupItem.js +1 -1
  345. package/dist/components/Tooltip/Tooltip.js +1 -1
  346. package/dist/components/Tooltip/TooltipContext.js +1 -1
  347. package/dist/components/Tooltip/TooltipProvider.js +1 -1
  348. package/dist/components/Tooltip/TooltipTrigger.js +1 -1
  349. package/dist/components/Tooltip/last-press.js +1 -1
  350. package/dist/components/Tooltip/split-trigger-props.js +1 -1
  351. package/dist/components/Tree/Tree.js +1 -1
  352. package/dist/components/Tree/TreeNode.js +1 -1
  353. package/dist/components/Tree/checked-keys.js +1 -1
  354. package/dist/components/Tree/row-id.js +1 -1
  355. package/dist/components/Tree/styled.js +1 -1
  356. package/dist/components/Tree/tree-index.js +1 -1
  357. package/dist/components/Tree/use-checkbox-tree.js +1 -1
  358. package/dist/components/Tree/use-load-data.js +1 -1
  359. package/dist/components/TriggerActions/TriggerActions.js +1 -1
  360. package/dist/components/Typography/Typography.js +1 -1
  361. package/dist/components/ValidationIndicator/InvalidIcon.js +1 -1
  362. package/dist/components/ValidationIndicator/ValidIcon.js +1 -1
  363. package/dist/components/ValidationIndicator/ValidationIndicator.js +1 -1
  364. package/dist/eslint-plugin/defaults.generated.js +1 -1
  365. package/dist/eslint-plugin/index.js +1 -1
  366. package/dist/eslint-plugin/rules/no-redundant-default-prop.js +1 -1
  367. package/dist/harness/colors-deps.js +1 -1
  368. package/dist/hooks/use-action.js +1 -1
  369. package/dist/hooks/use-auto-tooltip.js +1 -1
  370. package/dist/hooks/use-buffered-value.js +1 -1
  371. package/dist/hooks/use-combined-refs.js +1 -1
  372. package/dist/hooks/use-controlled-focus-visible.js +1 -1
  373. package/dist/hooks/use-debounced-value.js +1 -1
  374. package/dist/hooks/use-deprecation-warning.js +1 -1
  375. package/dist/hooks/use-event.js +1 -1
  376. package/dist/hooks/use-id.js +1 -1
  377. package/dist/hooks/use-is-darwin.js +1 -1
  378. package/dist/hooks/use-is-first-render.js +1 -1
  379. package/dist/hooks/use-key-symbols.js +1 -1
  380. package/dist/hooks/use-layout-effect.js +1 -1
  381. package/dist/hooks/use-local-storage.js +1 -1
  382. package/dist/hooks/use-merge-styles.js +1 -1
  383. package/dist/hooks/use-open-key.js +1 -1
  384. package/dist/hooks/use-overlay-escape-guard.js +1 -1
  385. package/dist/hooks/use-overlay-position.js +1 -1
  386. package/dist/hooks/use-popover-sync.js +1 -1
  387. package/dist/hooks/use-qa-props.js +1 -1
  388. package/dist/hooks/use-scheme.js +1 -1
  389. package/dist/hooks/use-sync-ref.js +1 -1
  390. package/dist/hooks/use-timer/Timer.js +1 -1
  391. package/dist/hooks/use-timer/use-timer.js +1 -1
  392. package/dist/hooks/use-validation-props.js +1 -1
  393. package/dist/hooks/use-viewport-size.js +1 -1
  394. package/dist/hooks/use-warn.js +1 -1
  395. package/dist/i18n/I18nProvider.js +1 -1
  396. package/dist/i18n/add-uikit-locale.js +1 -1
  397. package/dist/i18n/create-formatter.js +1 -1
  398. package/dist/i18n/instance.js +1 -1
  399. package/dist/i18n/locales/de-DE/uikit.js +1 -1
  400. package/dist/i18n/locales/en-US/uikit.js +1 -1
  401. package/dist/i18n/locales/es-ES/uikit.js +1 -1
  402. package/dist/i18n/locales/es-MX/uikit.js +1 -1
  403. package/dist/i18n/locales/fr-FR/uikit.js +1 -1
  404. package/dist/i18n/locales/it-IT/uikit.js +1 -1
  405. package/dist/i18n/locales/ja-JP/uikit.js +1 -1
  406. package/dist/i18n/locales/nb-NO/uikit.js +1 -1
  407. package/dist/i18n/locales/pt-BR/uikit.js +1 -1
  408. package/dist/i18n/locales/pt-PT/uikit.js +1 -1
  409. package/dist/i18n/locales/sv-SE/uikit.js +1 -1
  410. package/dist/i18n/locales/vi-VN/uikit.js +1 -1
  411. package/dist/i18n/locales.js +1 -1
  412. package/dist/i18n/namespace.js +1 -1
  413. package/dist/i18n/use-formatter.js +1 -1
  414. package/dist/i18n/use-i18n.js +1 -1
  415. package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
  416. package/dist/icons/AdjustmentsIcon.js +1 -1
  417. package/dist/icons/AiIcon.js +1 -1
  418. package/dist/icons/AreaChartIcon.js +1 -1
  419. package/dist/icons/ArrowNarrowDownIcon.js +1 -1
  420. package/dist/icons/ArrowNarrowUpIcon.js +1 -1
  421. package/dist/icons/BackwardIcon.js +1 -1
  422. package/dist/icons/BarChartIcon.js +1 -1
  423. package/dist/icons/BellFilledIcon.js +1 -1
  424. package/dist/icons/BellIcon.js +1 -1
  425. package/dist/icons/BooleanIcon.js +1 -1
  426. package/dist/icons/CalendarEditIcon.js +1 -1
  427. package/dist/icons/CalendarIcon.js +1 -1
  428. package/dist/icons/CaretDownIcon.js +1 -1
  429. package/dist/icons/CaretUpIcon.js +1 -1
  430. package/dist/icons/ChartAreaStackedIcon.js +1 -1
  431. package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
  432. package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
  433. package/dist/icons/ChartBarGroupedIcon.js +1 -1
  434. package/dist/icons/ChartBarHorizontalIcon.js +1 -1
  435. package/dist/icons/ChartBarLineIcon.js +1 -1
  436. package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
  437. package/dist/icons/ChartBarStackedIcon.js +1 -1
  438. package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
  439. package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
  440. package/dist/icons/ChartBoxPlot2Icon.js +1 -1
  441. package/dist/icons/ChartBoxPlotIcon.js +1 -1
  442. package/dist/icons/ChartBubbleIcon.js +1 -1
  443. package/dist/icons/ChartDonut2Icon.js +1 -1
  444. package/dist/icons/ChartFunnelIcon.js +1 -1
  445. package/dist/icons/ChartHeatmapIcon.js +1 -1
  446. package/dist/icons/ChartKPIIcon.js +1 -1
  447. package/dist/icons/ChartPie2Icon.js +1 -1
  448. package/dist/icons/ChartScatterIcon.js +1 -1
  449. package/dist/icons/CheckCircleFilledIcon.js +1 -1
  450. package/dist/icons/CheckCircleIcon.js +1 -1
  451. package/dist/icons/CheckIcon.js +1 -1
  452. package/dist/icons/CircleFilledIcon.js +1 -1
  453. package/dist/icons/ClearIcon.js +1 -1
  454. package/dist/icons/CloseCircleFilledIcon.js +1 -1
  455. package/dist/icons/CloseCircleIcon.js +1 -1
  456. package/dist/icons/CloseIcon.js +1 -1
  457. package/dist/icons/CodeIcon.js +1 -1
  458. package/dist/icons/ColumnTotalIcon.js +1 -1
  459. package/dist/icons/CopyIcon.js +1 -1
  460. package/dist/icons/CountIcon.js +1 -1
  461. package/dist/icons/CubeIcon.js +1 -1
  462. package/dist/icons/CubePauseIcon.js +1 -1
  463. package/dist/icons/CubePlayIcon.js +1 -1
  464. package/dist/icons/CurrencyDollarIcon.js +1 -1
  465. package/dist/icons/DangerIcon.js +1 -1
  466. package/dist/icons/DashboardIcon.js +1 -1
  467. package/dist/icons/DatabaseIcon.js +1 -1
  468. package/dist/icons/DecimalDecreaseIcon.js +1 -1
  469. package/dist/icons/DecimalIncreaseIcon.js +1 -1
  470. package/dist/icons/DirectionIcon.js +1 -1
  471. package/dist/icons/DonutIcon.js +1 -1
  472. package/dist/icons/DownIcon.js +1 -1
  473. package/dist/icons/EditIcon.js +1 -1
  474. package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
  475. package/dist/icons/ExclamationCircleIcon.js +1 -1
  476. package/dist/icons/ExclamationIcon.js +1 -1
  477. package/dist/icons/EyeIcon.js +1 -1
  478. package/dist/icons/EyeInvisibleIcon.js +1 -1
  479. package/dist/icons/FilterIcon.js +1 -1
  480. package/dist/icons/FolderFilledIcon.js +1 -1
  481. package/dist/icons/FolderIcon.js +1 -1
  482. package/dist/icons/FolderOpenFilledIcon.js +1 -1
  483. package/dist/icons/FolderOpenIcon.js +1 -1
  484. package/dist/icons/ForwardIcon.js +1 -1
  485. package/dist/icons/GripVerticalIcon.js +1 -1
  486. package/dist/icons/HierarchyIcon.js +1 -1
  487. package/dist/icons/HierarchyOpenIcon.js +1 -1
  488. package/dist/icons/Icon.js +1 -1
  489. package/dist/icons/InfoCircleIcon.js +1 -1
  490. package/dist/icons/InfoIcon.js +1 -1
  491. package/dist/icons/KeyIcon.js +1 -1
  492. package/dist/icons/LeftIcon.js +1 -1
  493. package/dist/icons/LineChartIcon.js +1 -1
  494. package/dist/icons/LoadingIcon.js +1 -1
  495. package/dist/icons/LockFilledIcon.js +1 -1
  496. package/dist/icons/LockIcon.js +1 -1
  497. package/dist/icons/MoreIcon.js +1 -1
  498. package/dist/icons/NotAllowedIcon.js +1 -1
  499. package/dist/icons/Number123Icon.js +1 -1
  500. package/dist/icons/NumberIcon.js +1 -1
  501. package/dist/icons/PauseCircleFilledIcon.js +1 -1
  502. package/dist/icons/PauseCircleIcon.js +1 -1
  503. package/dist/icons/PauseIcon.js +1 -1
  504. package/dist/icons/PercentageIcon.js +1 -1
  505. package/dist/icons/PieChartIcon.js +1 -1
  506. package/dist/icons/PipetteIcon.js +1 -1
  507. package/dist/icons/PlayCircleIcon.js +1 -1
  508. package/dist/icons/PlayIcon.js +1 -1
  509. package/dist/icons/PlusIcon.js +1 -1
  510. package/dist/icons/ProgressBarIcon.js +1 -1
  511. package/dist/icons/ReloadIcon.js +1 -1
  512. package/dist/icons/ReportIcon.js +1 -1
  513. package/dist/icons/ReturnIcon.js +1 -1
  514. package/dist/icons/RightIcon.js +1 -1
  515. package/dist/icons/RowTotalsIcon.js +1 -1
  516. package/dist/icons/SchemeIcon.js +1 -1
  517. package/dist/icons/SearchIcon.js +1 -1
  518. package/dist/icons/SemanticQueryIcon.js +1 -1
  519. package/dist/icons/SettingsIcon.js +1 -1
  520. package/dist/icons/ShieldFilledIcon.js +1 -1
  521. package/dist/icons/ShieldIcon.js +1 -1
  522. package/dist/icons/SlashIcon.js +1 -1
  523. package/dist/icons/SparklesIcon.js +1 -1
  524. package/dist/icons/SqlIcon.js +1 -1
  525. package/dist/icons/StatsIcon.js +1 -1
  526. package/dist/icons/StopIcon.js +1 -1
  527. package/dist/icons/StringIcon.js +1 -1
  528. package/dist/icons/SubtotalsIcon.js +1 -1
  529. package/dist/icons/SwitchIcon.js +1 -1
  530. package/dist/icons/TableIcon.js +1 -1
  531. package/dist/icons/ThumbsDownIcon.js +1 -1
  532. package/dist/icons/ThumbsUpIcon.js +1 -1
  533. package/dist/icons/ThunderboltCrossedIcon.js +1 -1
  534. package/dist/icons/ThunderboltFilledIcon.js +1 -1
  535. package/dist/icons/ThunderboltIcon.js +1 -1
  536. package/dist/icons/TimeIcon.js +1 -1
  537. package/dist/icons/TrashIcon.js +1 -1
  538. package/dist/icons/UnlockIcon.js +1 -1
  539. package/dist/icons/UpIcon.js +1 -1
  540. package/dist/icons/UserGroupIcon.js +1 -1
  541. package/dist/icons/UserIcon.js +1 -1
  542. package/dist/icons/UserLockIcon.js +1 -1
  543. package/dist/icons/ViewIcon.js +1 -1
  544. package/dist/icons/WarningFilledIcon.js +1 -1
  545. package/dist/icons/WarningIcon.js +1 -1
  546. package/dist/icons/wrap-icon.js +1 -1
  547. package/dist/index.js +1 -1
  548. package/dist/probe/canonicalize.js +1 -1
  549. package/dist/probe/css.js +1 -1
  550. package/dist/probe/index.js +1 -1
  551. package/dist/providers/ColorPopoverContext.js +1 -1
  552. package/dist/providers/EventBusProvider.js +1 -1
  553. package/dist/providers/ItemActionContext.js +1 -1
  554. package/dist/providers/Provider.js +1 -1
  555. package/dist/providers/SlotProvider.js +1 -1
  556. package/dist/providers/TrackingProvider.js +1 -1
  557. package/dist/providers/navigation-adapter.default.js +1 -1
  558. package/dist/providers/navigation-url.js +1 -1
  559. package/dist/providers/use-navigation.js +1 -1
  560. package/dist/themes/item-themes.js +1 -1
  561. package/dist/themes/themes.js +1 -1
  562. package/dist/tokens/all-tokens.js +1 -1
  563. package/dist/tokens/base.js +1 -1
  564. package/dist/tokens/color-seed.js +1 -1
  565. package/dist/tokens/color-theme.js +1 -1
  566. package/dist/tokens/colors.js +1 -1
  567. package/dist/tokens/layout.js +1 -1
  568. package/dist/tokens/lazy-styles.js +1 -1
  569. package/dist/tokens/legacy-color.js +1 -1
  570. package/dist/tokens/palette-config.js +1 -1
  571. package/dist/tokens/palette.js +1 -1
  572. package/dist/tokens/resolve.js +1 -1
  573. package/dist/tokens/shadows.js +1 -1
  574. package/dist/tokens/sizes.js +1 -1
  575. package/dist/tokens/spacing.js +1 -1
  576. package/dist/tokens/typography.js +1 -1
  577. package/dist/utils/ResizeSensor.js +1 -1
  578. package/dist/utils/actions-run.js +1 -1
  579. package/dist/utils/chain.js +1 -1
  580. package/dist/utils/color/channels.js +1 -1
  581. package/dist/utils/color/color.js +1 -1
  582. package/dist/utils/colors.js +1 -1
  583. package/dist/utils/component-base-props.js +1 -1
  584. package/dist/utils/disabled-behavior.js +1 -1
  585. package/dist/utils/disabled-props.js +1 -1
  586. package/dist/utils/dotize.js +1 -1
  587. package/dist/utils/field-chrome.js +1 -1
  588. package/dist/utils/field-layout.js +1 -1
  589. package/dist/utils/forward-ref-with-generics.js +1 -1
  590. package/dist/utils/highlight-text.js +1 -1
  591. package/dist/utils/index.js +1 -1
  592. package/dist/utils/interactions.js +1 -1
  593. package/dist/utils/is-dev-env.js +1 -1
  594. package/dist/utils/is-text-only.js +1 -1
  595. package/dist/utils/layout-scale.js +1 -1
  596. package/dist/utils/legacy-tooltip.js +1 -1
  597. package/dist/utils/map-props.js +1 -1
  598. package/dist/utils/merge-props.js +1 -1
  599. package/dist/utils/modules.js +1 -1
  600. package/dist/utils/nullable-value.js +1 -1
  601. package/dist/utils/option-origin-press.js +1 -1
  602. package/dist/utils/overlay-key-propagation.js +1 -1
  603. package/dist/utils/pick-base-customization-props.js +1 -1
  604. package/dist/utils/popover-width.js +1 -1
  605. package/dist/utils/programmatic-focus.js +1 -1
  606. package/dist/utils/promise.js +1 -1
  607. package/dist/utils/raf.js +1 -1
  608. package/dist/utils/random.js +1 -1
  609. package/dist/utils/range.js +1 -1
  610. package/dist/utils/resolve-icon.js +1 -1
  611. package/dist/utils/resolve-validation-props.js +1 -1
  612. package/dist/utils/search-text-services.js +1 -1
  613. package/dist/utils/selection.js +1 -1
  614. package/dist/utils/shared-store.js +1 -1
  615. package/dist/utils/styles.js +1 -1
  616. package/dist/utils/tree.js +1 -1
  617. package/dist/utils/virtual-width.js +1 -1
  618. package/dist/utils/warnings.js +1 -1
  619. package/dist/utils/wrap-node-if-plain.js +1 -1
  620. package/dist/utils/wrap-with-field.js +1 -1
  621. package/dist/version.js +2 -2
  622. package/docs/Usage.md +1 -1
  623. package/docs/components/FilterListBox.md +19 -2
  624. package/docs/components/ListBox.md +19 -2
  625. package/docs/components/Menu.md +33 -8
  626. package/package.json +1 -1
  627. package/tasty.config.ts +27 -5
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  //#region src/components/ListBox/option-id.ts
3
3
  /**
4
4
  * The DOM id of the option with `key` in the listbox whose id is `listBoxId`,
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { isItemDisabled } from "../../utils/disabled-behavior.js";
3
3
  import { c } from "react/compiler-runtime";
4
4
  import { useEffect, useRef } from "react";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { c } from "react/compiler-runtime";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { VisuallyHidden } from "react-aria";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
3
3
  import { mergeRefs as mergeRefs$1 } from "../../hooks/use-combined-refs.js";
4
4
  import { useModalLayerRef } from "../Modal/ModalContainmentProvider.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { isItemDisabled } from "../../utils/disabled-behavior.js";
3
3
  //#region src/components/ListBoxPopover/list-navigation.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { useEvent } from "../../hooks/use-event.js";
3
3
  import { c } from "react/compiler-runtime";
4
4
  import { useEffect, useRef } from "react";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { c } from "react/compiler-runtime";
3
3
  import { useEffect, useState } from "react";
4
4
  //#region src/components/ListBoxPopover/use-delayed-loading.ts
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { useLayoutEffect as useLayoutEffect$1 } from "../../hooks/use-layout-effect.js";
3
3
  import { Block } from "../Block/Block.js";
4
4
  import { useI18n } from "../../i18n/use-i18n.js";
@@ -15,10 +15,23 @@ import { CollectionChildren, FocusStrategy, Key as Key$2 } from "@react-types/sh
15
15
  export interface CubeMenuProps<T> extends BasePropsWithoutChildren, ContainerStyleProps, Omit<AriaMenuProps<T>, 'children' | 'onAction' | 'selectedKeys' | 'defaultSelectedKeys' | 'onSelectionChange'> {
16
16
  children?: ReactNode | CollectionChildren<T>;
17
17
  onAction?: (key: Key$2) => void;
18
+ /**
19
+ * The menu's title, or other content above its items, such as a card about
20
+ * what the menu acts on. It sits outside the list, so it neither names nor
21
+ * describes the menu: name the menu too (a `MenuTrigger` does, otherwise
22
+ * `aria-label`), and point `aria-describedby` at content the user needs.
23
+ */
18
24
  header?: ReactNode;
25
+ /** Content below the items. */
19
26
  footer?: ReactNode;
20
27
  menuStyles?: Styles;
28
+ /**
29
+ * The header's layout, spacing and fill: a container's layout props, the
30
+ * sizing props and `fill`. Its border, radius, color and preset are the
31
+ * menu's.
32
+ */
21
33
  headerStyles?: Styles;
34
+ /** The footer's layout, spacing and fill, on the same terms as `headerStyles`. */
22
35
  footerStyles?: Styles;
23
36
  styles?: Styles;
24
37
  itemStyles?: Styles;
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { extractStyles } from "../../utils/styles.js";
3
3
  import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
4
4
  import { MenuCollectionItem as _MenuCollectionItem, getMenuItemReactKey } from "./MenuCollectionItem.js";
@@ -1 +1 @@
1
- {"version":3,"file":"Menu.js","names":["isFocusable","useObjectRef","useSyncRef","CollectionChildren","FocusStrategy","ItemProps","Key","BasePropsWithoutChildren","CONTAINER_STYLES","ContainerStyleProps","filterBaseProps","Styles","React","KeyboardEvent","ReactElement","ReactNode","Ref","AriaMenuProps","useMenu","Section","BaseSection","useTreeState","mergeProps","extractStyles","getMenuItemReactKey","MenuCollectionItem","useMenuContext","MenuItem","MenuSection","MenuTrigger","StyledDivider","StyledFooter","StyledHeader","StyledMenu","StyledMenuWrapper","SubMenuTrigger","CubeMenuProps","Omit","T","children","onAction","key","header","footer","menuStyles","headerStyles","footerStyles","styles","itemStyles","sectionStyles","sectionHeadingStyles","shouldFocusWrap","autoFocus","shouldUseVirtualFocus","size","selectedKeys","defaultSelectedKeys","onSelectionChange","keys","Menu","props","ref","$","_c","t0","qa","rest","undefined","domRef","contextProps","ariaSelectedKeys","Set","ariaDefaultSelectedKeys","handleSelectionChange","allKeys","Array","from","state","collection","getKeys","map","_temp","_temp2","t1","key_1","completeProps","disabledBehavior","collectionItems","hasSections","some","_temp3","menuProps","onKeyDown","handleInlineNavigation","event","menu","currentTarget","item_0","target","HTMLElement","closest","defaultPrevented","item","altKey","ctrlKey","metaKey","nativeEvent","isComposing","querySelector","row","length","focus","shiftKey","items","querySelectorAll","filter","element","hasAttribute","index","indexOf","next","at","rowItems","element_0","forward","getComputedStyle","direction","preventDefault","stopPropagation","id","_id","_ariaLabel","_ariaLabelledBy","_ariaDescribedBy","_ariaDetails","wrapperProps","Record","wrapperMods","popover","mods","menuMods","sections","renderedItems","isFirstSection","forEach","item_1","reactKey","type","push","menuItem","wrapper","cloneElement","t2","t3","event_0","t4","role","key_0","String","_Menu","forwardRef","RefAttributes","HTMLUListElement","SectionComponent","Object","assign","displayName","__MenuComponent","Item","Trigger","__Menu","_c","mergeProps","Section","BaseSection","MenuCollectionItem","MenuTrigger"],"sources":["../../../src/components/Menu/Menu.tsx"],"sourcesContent":["import { isFocusable, useObjectRef, useSyncRef } from '@react-aria/utils';\nimport {\n CollectionChildren,\n FocusStrategy,\n ItemProps,\n Key,\n} from '@react-types/shared';\nimport {\n BasePropsWithoutChildren,\n CONTAINER_STYLES,\n ContainerStyleProps,\n filterBaseProps,\n Styles,\n} from '@tenphi/tasty';\nimport React, { KeyboardEvent, ReactElement, ReactNode, Ref } from 'react';\nimport { AriaMenuProps, useMenu } from 'react-aria';\nimport { Section as BaseSection, useTreeState } from 'react-stately';\n\nimport { mergeProps } from '../../utils/merge-props';\nimport { extractStyles } from '../../utils/styles';\n\nimport { getMenuItemReactKey, MenuCollectionItem } from './MenuCollectionItem';\nimport { useMenuContext } from './MenuContext';\nimport { MenuItem } from './MenuItem';\nimport { MenuSection } from './MenuSection';\nimport { MenuTrigger } from './MenuTrigger';\nimport {\n StyledDivider,\n StyledFooter,\n StyledHeader,\n StyledMenu,\n StyledMenuWrapper,\n} from './styled';\nimport { SubMenuTrigger } from './SubMenuTrigger';\n\nexport interface CubeMenuProps<T>\n extends\n BasePropsWithoutChildren,\n ContainerStyleProps,\n Omit<\n AriaMenuProps<T>,\n | 'children'\n | 'onAction'\n | 'selectedKeys'\n | 'defaultSelectedKeys'\n | 'onSelectionChange'\n > {\n children?: ReactNode | CollectionChildren<T>;\n onAction?: (key: Key) => void;\n // @deprecated\n header?: ReactNode;\n footer?: ReactNode;\n menuStyles?: Styles;\n headerStyles?: Styles;\n footerStyles?: Styles;\n styles?: Styles;\n itemStyles?: Styles;\n sectionStyles?: Styles;\n sectionHeadingStyles?: Styles;\n /**\n * Whether keyboard navigation should wrap around when reaching the start/end of the collection.\n * This directly maps to the `shouldFocusWrap` option supported by React-Aria's `useMenu` hook.\n */\n shouldFocusWrap?: boolean;\n\n /**\n * Whether the menu should automatically receive focus when it mounts.\n * This directly maps to the `autoFocus` option supported by React-Aria's `useMenu` hook.\n */\n autoFocus?: boolean | FocusStrategy;\n shouldUseVirtualFocus?: boolean;\n\n /** Size of the menu items */\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 Menu<T extends object>(\n props: CubeMenuProps<T>,\n ref: Ref<HTMLUListElement>,\n) {\n const {\n header,\n footer,\n menuStyles,\n headerStyles,\n footerStyles,\n itemStyles,\n sectionStyles,\n sectionHeadingStyles,\n size = 'medium',\n qa,\n selectedKeys,\n defaultSelectedKeys,\n onSelectionChange,\n onAction,\n ...rest\n } = props;\n const domRef = useObjectRef(ref);\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: any) => {\n if (keys === 'all') {\n // Handle 'all' selection case - collect all available keys\n const allKeys = Array.from(state.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, rest, {\n onAction: onAction ? (key: Key) => onAction(key) : undefined,\n selectedKeys: ariaSelectedKeys,\n defaultSelectedKeys: ariaDefaultSelectedKeys,\n onSelectionChange: handleSelectionChange,\n });\n\n // Props used for collection building. A disabled item stays focusable, as in\n // WAI-ARIA menus; `MenuItem` keeps it disabled through `isMenuItemDisabled`.\n const state = useTreeState({\n ...completeProps,\n disabledBehavior: 'selection',\n children: completeProps.children as CollectionChildren<T>,\n });\n const collectionItems = [...state.collection];\n const hasSections = collectionItems.some((item) => item.type === 'section');\n\n const { menuProps } = useMenu(\n { ...completeProps, onKeyDown: undefined },\n state,\n domRef,\n );\n const handleInlineNavigation = (event: KeyboardEvent<HTMLUListElement>) => {\n const menu = event.currentTarget;\n const item = (event.target as HTMLElement).closest<HTMLElement>(\n '[role^=\"menuitem\"]',\n );\n if (\n event.defaultPrevented ||\n !item ||\n item.closest('[role=\"menu\"]') !== menu ||\n event.altKey ||\n event.ctrlKey ||\n event.metaKey ||\n event.nativeEvent.isComposing ||\n !menu.querySelector('[data-element=\"Actions\"] [role^=\"menuitem\"]')\n )\n return;\n const row = item.closest<HTMLElement>('[data-menuitem]');\n // Search and page navigation remain owned by the Aria collection of rows.\n if (\n item.closest('[data-element=\"Actions\"]') &&\n (event.key === 'PageUp' ||\n event.key === 'PageDown' ||\n (event.key.length === 1 && event.key !== ' '))\n ) {\n row?.querySelector<HTMLElement>('[data-menu-native-primary]')?.focus();\n return;\n }\n if (event.shiftKey) return;\n // A disabled item stays in the sequence; a natively disabled inline action\n // (one in a disabled row) is not focusable and stays out.\n const items = Array.from(\n menu.querySelectorAll<HTMLElement>('[role^=\"menuitem\"]'),\n ).filter(\n (element) =>\n element.closest('[role=\"menu\"]') === menu &&\n !element.hasAttribute('disabled') &&\n isFocusable(element),\n );\n const index = items.indexOf(item);\n if (index < 0) return;\n let next: HTMLElement | undefined;\n if (event.key === 'ArrowDown')\n next =\n items[index + 1] ??\n (completeProps.shouldFocusWrap !== false ? items[0] : undefined);\n else if (event.key === 'ArrowUp')\n next =\n items[index - 1] ??\n (completeProps.shouldFocusWrap !== false ? items.at(-1) : undefined);\n else if (event.key === 'Home') next = items[0];\n else if (event.key === 'End') next = items.at(-1);\n else if (\n (event.key === 'ArrowRight' || event.key === 'ArrowLeft') &&\n row &&\n !item.hasAttribute('aria-haspopup')\n ) {\n const rowItems = items.filter(\n (element) => element.closest('[data-menuitem]') === row,\n );\n const forward =\n event.key ===\n (getComputedStyle(row).direction === 'rtl'\n ? 'ArrowLeft'\n : 'ArrowRight');\n next = rowItems[rowItems.indexOf(item) + (forward ? 1 : -1)];\n }\n if (next) {\n event.preventDefault();\n event.stopPropagation();\n next.focus();\n return true;\n }\n };\n const styles = extractStyles(completeProps, CONTAINER_STYLES);\n\n // `useMenu` already put the id and the name on the `menu` list. Repeated on\n // the wrapper, the id is a duplicate — a trigger's `aria-controls` finds the\n // wrapper first — and the name labels a plain `div`.\n const {\n id: _id,\n 'aria-label': _ariaLabel,\n 'aria-labelledby': _ariaLabelledBy,\n 'aria-describedby': _ariaDescribedBy,\n 'aria-details': _ariaDetails,\n ...wrapperProps\n } = filterBaseProps(completeProps) as Record<string, unknown>;\n\n const wrapperMods = {\n popover: completeProps.mods?.popover,\n footer: !!footer,\n header: !!header,\n };\n\n const menuMods = {\n sections: hasSections,\n };\n\n // Sync the ref stored in the context object with the menu's DOM ref.\n // `useSyncRef` from @react-aria/utils expects the context object as the\n // first argument to keep it up-to-date, and a ref object as the second.\n useSyncRef(contextProps, domRef);\n\n const renderedItems: React.ReactNode[] = [];\n let isFirstSection = true;\n\n collectionItems.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={state}\n styles={sectionStyles}\n itemStyles={itemStyles}\n headingStyles={sectionHeadingStyles}\n size={size}\n />,\n );\n\n isFirstSection = false;\n return;\n }\n\n let menuItem = (\n <MenuItem\n key={reactKey}\n item={item}\n state={state}\n styles={itemStyles}\n size={size}\n />\n );\n\n // `MenuItem` renders the item's `tooltip` itself — wrapping it in a\n // second provider makes the two tooltips close each other.\n\n // Apply custom wrapper if provided\n if (item.props?.wrapper) {\n menuItem = item.props.wrapper(menuItem);\n } else if ((item as any).wrapper) {\n // Handle wrapper from collection nodes (e.g., SubMenuTrigger)\n menuItem = (item as any).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 return (\n <StyledMenuWrapper\n qa={qa}\n styles={styles}\n mods={wrapperMods}\n {...wrapperProps}\n >\n {header ? (\n <StyledHeader data-size={size} styles={headerStyles}>\n {header}\n </StyledHeader>\n ) : (\n <div role=\"presentation\" />\n )}\n <StyledMenu\n {...mergeProps(\n {\n styles: menuStyles,\n 'data-size': size,\n mods: menuMods,\n },\n menuProps,\n )}\n ref={domRef}\n onKeyDown={(event) => {\n completeProps.onKeyDown?.(event);\n if (!event.defaultPrevented && !handleInlineNavigation(event))\n menuProps.onKeyDown?.(event);\n }}\n role={menuProps.role ?? 'menu'}\n >\n {renderedItems}\n </StyledMenu>\n {footer ? (\n <StyledFooter data-size={size} styles={footerStyles}>\n {footer}\n </StyledFooter>\n ) : (\n <div role=\"presentation\" />\n )}\n </StyledMenuWrapper>\n );\n}\n\n// forwardRef doesn't support generic parameters, so cast the result to the correct type\n// https://stackoverflow.com/questions/58469229/react-with-typescript-generics-while-using-react-forwardref\nconst _Menu = React.forwardRef(Menu) as <T>(\n props: CubeMenuProps<T> & React.RefAttributes<HTMLUListElement>,\n) => ReactElement;\n\ntype SectionComponent = typeof BaseSection;\n\nconst Section = Object.assign(BaseSection, {\n displayName: 'Section',\n}) as SectionComponent;\n\ntype __MenuComponent = typeof _Menu & {\n Item: typeof MenuCollectionItem;\n Section: typeof Section;\n SubMenuTrigger: typeof SubMenuTrigger;\n Trigger: typeof MenuTrigger;\n};\n\nconst __Menu = Object.assign(_Menu as __MenuComponent, {\n Item: MenuCollectionItem,\n Section,\n SubMenuTrigger,\n Trigger: MenuTrigger,\n displayName: 'Menu',\n});\n\n__Menu.displayName = 'Menu';\n\nexport { __Menu as Menu };\n"],"mappings":";;;;;;;;;;;;;;;;;;AAmFA,SAAA2D,KAAAC,OAAAC,KAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAIE,MAAA,EAAArB,QAAAC,QAAAC,YAAAC,cAAAC,cAAAE,YAAAC,eAAAC,sBAAAI,MAAAU,IAAAC,IAAAV,cAAAC,qBAAAC,mBAAAjB,UAAA,GAAA0B,SAgBIN;CAPF,MAAAN,OAAAU,OAAAG,KAAAA,IAAA,WAAAH;CAQF,MAAAI,SAAenE,aAAa4D,GAAG;CAC/B,MAAAQ,eAAqB3C,eAAe;CAGpC,MAAA4C,mBAAyBf,eAAA,IAAmBgB,IAAIhB,YAAwB,IAA/CY,KAAAA;CACzB,MAAAK,0BAAgChB,sBAAA,IACxBe,IAAIf,mBACA,IAFoBW,KAAAA;CAIhC,MAAAM,wBAA8BhB,qBAAAC,SAAA;EAExB,IAAIA,SAAS,OAAK;GAEhB,MAAAgB,UAAgBC,MAAKC,KAAMC,MAAKC,WAAWC,QAAS,CAAC,CAAC,CAAAC,IACpDC,KACF;GACAxB,kBAAkBiB,OAAO;EAAC,OACrB,IAAIhB,gBAAgBa,KACzBd,kBAAkBkB,MAAKC,KAAMlB,IAAI,CAAC,CAAAsB,IAAKE,MAAoB,CAAC;OAE5DzB,kBAAkB,CAAA,CAAE;CACrB,IAZuBU,KAAAA;CAchB,IAAAgB;CAAA,IAAArB,EAAA,O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,aAAa,UACf,CAAC;AASD,MAAMI,SAASN,OAAOC,OAAON,OAA0B;CACrDS,MAAM/I;CACNN,SAAAA;CACAgB;CACAsI,SAAS5I;CACTyI,aAAa;AACf,CAAC;AAEDI,OAAOJ,cAAc"}
1
+ {"version":3,"file":"Menu.js","names":["isFocusable","useObjectRef","useSyncRef","CollectionChildren","FocusStrategy","ItemProps","Key","BasePropsWithoutChildren","CONTAINER_STYLES","ContainerStyleProps","filterBaseProps","Styles","React","KeyboardEvent","ReactElement","ReactNode","Ref","AriaMenuProps","useMenu","Section","BaseSection","useTreeState","mergeProps","extractStyles","getMenuItemReactKey","MenuCollectionItem","useMenuContext","MenuItem","MenuSection","MenuTrigger","StyledDivider","StyledFooter","StyledHeader","StyledMenu","StyledMenuWrapper","SubMenuTrigger","CubeMenuProps","Omit","T","children","onAction","key","header","footer","menuStyles","headerStyles","footerStyles","styles","itemStyles","sectionStyles","sectionHeadingStyles","shouldFocusWrap","autoFocus","shouldUseVirtualFocus","size","selectedKeys","defaultSelectedKeys","onSelectionChange","keys","Menu","props","ref","$","_c","t0","qa","rest","undefined","domRef","contextProps","ariaSelectedKeys","Set","ariaDefaultSelectedKeys","handleSelectionChange","allKeys","Array","from","state","collection","getKeys","map","_temp","_temp2","t1","key_1","completeProps","disabledBehavior","collectionItems","hasSections","some","_temp3","menuProps","onKeyDown","handleInlineNavigation","event","menu","currentTarget","item_0","target","HTMLElement","closest","defaultPrevented","item","altKey","ctrlKey","metaKey","nativeEvent","isComposing","querySelector","row","length","focus","shiftKey","items","querySelectorAll","filter","element","hasAttribute","index","indexOf","next","at","rowItems","element_0","forward","getComputedStyle","direction","preventDefault","stopPropagation","id","_id","_ariaLabel","_ariaLabelledBy","_ariaDescribedBy","_ariaDetails","wrapperProps","Record","wrapperMods","popover","mods","menuMods","sections","renderedItems","isFirstSection","forEach","item_1","reactKey","type","push","menuItem","wrapper","cloneElement","t2","t3","event_0","t4","role","key_0","String","_Menu","forwardRef","RefAttributes","HTMLUListElement","SectionComponent","Object","assign","displayName","__MenuComponent","Item","Trigger","__Menu","_c","mergeProps","Section","BaseSection","MenuCollectionItem","MenuTrigger"],"sources":["../../../src/components/Menu/Menu.tsx"],"sourcesContent":["import { isFocusable, useObjectRef, useSyncRef } from '@react-aria/utils';\nimport {\n CollectionChildren,\n FocusStrategy,\n ItemProps,\n Key,\n} from '@react-types/shared';\nimport {\n BasePropsWithoutChildren,\n CONTAINER_STYLES,\n ContainerStyleProps,\n filterBaseProps,\n Styles,\n} from '@tenphi/tasty';\nimport React, { KeyboardEvent, ReactElement, ReactNode, Ref } from 'react';\nimport { AriaMenuProps, useMenu } from 'react-aria';\nimport { Section as BaseSection, useTreeState } from 'react-stately';\n\nimport { mergeProps } from '../../utils/merge-props';\nimport { extractStyles } from '../../utils/styles';\n\nimport { getMenuItemReactKey, MenuCollectionItem } from './MenuCollectionItem';\nimport { useMenuContext } from './MenuContext';\nimport { MenuItem } from './MenuItem';\nimport { MenuSection } from './MenuSection';\nimport { MenuTrigger } from './MenuTrigger';\nimport {\n StyledDivider,\n StyledFooter,\n StyledHeader,\n StyledMenu,\n StyledMenuWrapper,\n} from './styled';\nimport { SubMenuTrigger } from './SubMenuTrigger';\n\nexport interface CubeMenuProps<T>\n extends\n BasePropsWithoutChildren,\n ContainerStyleProps,\n Omit<\n AriaMenuProps<T>,\n | 'children'\n | 'onAction'\n | 'selectedKeys'\n | 'defaultSelectedKeys'\n | 'onSelectionChange'\n > {\n children?: ReactNode | CollectionChildren<T>;\n onAction?: (key: Key) => void;\n /**\n * The menu's title, or other content above its items, such as a card about\n * what the menu acts on. It sits outside the list, so it neither names nor\n * describes the menu: name the menu too (a `MenuTrigger` does, otherwise\n * `aria-label`), and point `aria-describedby` at content the user needs.\n */\n header?: ReactNode;\n /** Content below the items. */\n footer?: ReactNode;\n menuStyles?: Styles;\n /**\n * The header's layout, spacing and fill: a container's layout props, the\n * sizing props and `fill`. Its border, radius, color and preset are the\n * menu's.\n */\n headerStyles?: Styles;\n /** The footer's layout, spacing and fill, on the same terms as `headerStyles`. */\n footerStyles?: Styles;\n styles?: Styles;\n itemStyles?: Styles;\n sectionStyles?: Styles;\n sectionHeadingStyles?: Styles;\n /**\n * Whether keyboard navigation should wrap around when reaching the start/end of the collection.\n * This directly maps to the `shouldFocusWrap` option supported by React-Aria's `useMenu` hook.\n */\n shouldFocusWrap?: boolean;\n\n /**\n * Whether the menu should automatically receive focus when it mounts.\n * This directly maps to the `autoFocus` option supported by React-Aria's `useMenu` hook.\n */\n autoFocus?: boolean | FocusStrategy;\n shouldUseVirtualFocus?: boolean;\n\n /** Size of the menu items */\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 Menu<T extends object>(\n props: CubeMenuProps<T>,\n ref: Ref<HTMLUListElement>,\n) {\n const {\n header,\n footer,\n menuStyles,\n headerStyles,\n footerStyles,\n itemStyles,\n sectionStyles,\n sectionHeadingStyles,\n size = 'medium',\n qa,\n selectedKeys,\n defaultSelectedKeys,\n onSelectionChange,\n onAction,\n ...rest\n } = props;\n const domRef = useObjectRef(ref);\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: any) => {\n if (keys === 'all') {\n // Handle 'all' selection case - collect all available keys\n const allKeys = Array.from(state.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, rest, {\n onAction: onAction ? (key: Key) => onAction(key) : undefined,\n selectedKeys: ariaSelectedKeys,\n defaultSelectedKeys: ariaDefaultSelectedKeys,\n onSelectionChange: handleSelectionChange,\n });\n\n // Props used for collection building. A disabled item stays focusable, as in\n // WAI-ARIA menus; `MenuItem` keeps it disabled through `isMenuItemDisabled`.\n const state = useTreeState({\n ...completeProps,\n disabledBehavior: 'selection',\n children: completeProps.children as CollectionChildren<T>,\n });\n const collectionItems = [...state.collection];\n const hasSections = collectionItems.some((item) => item.type === 'section');\n\n const { menuProps } = useMenu(\n { ...completeProps, onKeyDown: undefined },\n state,\n domRef,\n );\n const handleInlineNavigation = (event: KeyboardEvent<HTMLUListElement>) => {\n const menu = event.currentTarget;\n const item = (event.target as HTMLElement).closest<HTMLElement>(\n '[role^=\"menuitem\"]',\n );\n if (\n event.defaultPrevented ||\n !item ||\n item.closest('[role=\"menu\"]') !== menu ||\n event.altKey ||\n event.ctrlKey ||\n event.metaKey ||\n event.nativeEvent.isComposing ||\n !menu.querySelector('[data-element=\"Actions\"] [role^=\"menuitem\"]')\n )\n return;\n const row = item.closest<HTMLElement>('[data-menuitem]');\n // Search and page navigation remain owned by the Aria collection of rows.\n if (\n item.closest('[data-element=\"Actions\"]') &&\n (event.key === 'PageUp' ||\n event.key === 'PageDown' ||\n (event.key.length === 1 && event.key !== ' '))\n ) {\n row?.querySelector<HTMLElement>('[data-menu-native-primary]')?.focus();\n return;\n }\n if (event.shiftKey) return;\n // A disabled item stays in the sequence; a natively disabled inline action\n // (one in a disabled row) is not focusable and stays out.\n const items = Array.from(\n menu.querySelectorAll<HTMLElement>('[role^=\"menuitem\"]'),\n ).filter(\n (element) =>\n element.closest('[role=\"menu\"]') === menu &&\n !element.hasAttribute('disabled') &&\n isFocusable(element),\n );\n const index = items.indexOf(item);\n if (index < 0) return;\n let next: HTMLElement | undefined;\n if (event.key === 'ArrowDown')\n next =\n items[index + 1] ??\n (completeProps.shouldFocusWrap !== false ? items[0] : undefined);\n else if (event.key === 'ArrowUp')\n next =\n items[index - 1] ??\n (completeProps.shouldFocusWrap !== false ? items.at(-1) : undefined);\n else if (event.key === 'Home') next = items[0];\n else if (event.key === 'End') next = items.at(-1);\n else if (\n (event.key === 'ArrowRight' || event.key === 'ArrowLeft') &&\n row &&\n !item.hasAttribute('aria-haspopup')\n ) {\n const rowItems = items.filter(\n (element) => element.closest('[data-menuitem]') === row,\n );\n const forward =\n event.key ===\n (getComputedStyle(row).direction === 'rtl'\n ? 'ArrowLeft'\n : 'ArrowRight');\n next = rowItems[rowItems.indexOf(item) + (forward ? 1 : -1)];\n }\n if (next) {\n event.preventDefault();\n event.stopPropagation();\n next.focus();\n return true;\n }\n };\n const styles = extractStyles(completeProps, CONTAINER_STYLES);\n\n // `useMenu` already put the id and the name on the `menu` list. Repeated on\n // the wrapper, the id is a duplicate — a trigger's `aria-controls` finds the\n // wrapper first — and the name labels a plain `div`.\n const {\n id: _id,\n 'aria-label': _ariaLabel,\n 'aria-labelledby': _ariaLabelledBy,\n 'aria-describedby': _ariaDescribedBy,\n 'aria-details': _ariaDetails,\n ...wrapperProps\n } = filterBaseProps(completeProps) as Record<string, unknown>;\n\n const wrapperMods = {\n popover: completeProps.mods?.popover,\n footer: !!footer,\n header: !!header,\n };\n\n const menuMods = {\n sections: hasSections,\n };\n\n // Sync the ref stored in the context object with the menu's DOM ref.\n // `useSyncRef` from @react-aria/utils expects the context object as the\n // first argument to keep it up-to-date, and a ref object as the second.\n useSyncRef(contextProps, domRef);\n\n const renderedItems: React.ReactNode[] = [];\n let isFirstSection = true;\n\n collectionItems.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={state}\n styles={sectionStyles}\n itemStyles={itemStyles}\n headingStyles={sectionHeadingStyles}\n size={size}\n />,\n );\n\n isFirstSection = false;\n return;\n }\n\n let menuItem = (\n <MenuItem\n key={reactKey}\n item={item}\n state={state}\n styles={itemStyles}\n size={size}\n />\n );\n\n // `MenuItem` renders the item's `tooltip` itself — wrapping it in a\n // second provider makes the two tooltips close each other.\n\n // Apply custom wrapper if provided\n if (item.props?.wrapper) {\n menuItem = item.props.wrapper(menuItem);\n } else if ((item as any).wrapper) {\n // Handle wrapper from collection nodes (e.g., SubMenuTrigger)\n menuItem = (item as any).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 return (\n <StyledMenuWrapper\n qa={qa}\n styles={styles}\n mods={wrapperMods}\n {...wrapperProps}\n >\n {header ? (\n <StyledHeader data-size={size} styles={headerStyles}>\n {header}\n </StyledHeader>\n ) : (\n <div role=\"presentation\" />\n )}\n <StyledMenu\n {...mergeProps(\n {\n styles: menuStyles,\n 'data-size': size,\n mods: menuMods,\n },\n menuProps,\n )}\n ref={domRef}\n onKeyDown={(event) => {\n completeProps.onKeyDown?.(event);\n if (!event.defaultPrevented && !handleInlineNavigation(event))\n menuProps.onKeyDown?.(event);\n }}\n role={menuProps.role ?? 'menu'}\n >\n {renderedItems}\n </StyledMenu>\n {footer ? (\n <StyledFooter data-size={size} styles={footerStyles}>\n {footer}\n </StyledFooter>\n ) : (\n <div role=\"presentation\" />\n )}\n </StyledMenuWrapper>\n );\n}\n\n// forwardRef doesn't support generic parameters, so cast the result to the correct type\n// https://stackoverflow.com/questions/58469229/react-with-typescript-generics-while-using-react-forwardref\nconst _Menu = React.forwardRef(Menu) as <T>(\n props: CubeMenuProps<T> & React.RefAttributes<HTMLUListElement>,\n) => ReactElement;\n\ntype SectionComponent = typeof BaseSection;\n\nconst Section = Object.assign(BaseSection, {\n displayName: 'Section',\n}) as SectionComponent;\n\ntype __MenuComponent = typeof _Menu & {\n Item: typeof MenuCollectionItem;\n Section: typeof Section;\n SubMenuTrigger: typeof SubMenuTrigger;\n Trigger: typeof MenuTrigger;\n};\n\nconst __Menu = Object.assign(_Menu as __MenuComponent, {\n Item: MenuCollectionItem,\n Section,\n SubMenuTrigger,\n Trigger: MenuTrigger,\n displayName: 'Menu',\n});\n\n__Menu.displayName = 'Menu';\n\nexport { __Menu as Menu };\n"],"mappings":";;;;;;;;;;;;;;;;;;AA+FA,SAAA2D,KAAAC,OAAAC,KAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAIE,MAAA,EAAArB,QAAAC,QAAAC,YAAAC,cAAAC,cAAAE,YAAAC,eAAAC,sBAAAI,MAAAU,IAAAC,IAAAV,cAAAC,qBAAAC,mBAAAjB,UAAA,GAAA0B,SAgBIN;CAPF,MAAAN,OAAAU,OAAAG,KAAAA,IAAA,WAAAH;CAQF,MAAAI,SAAenE,aAAa4D,GAAG;CAC/B,MAAAQ,eAAqB3C,eAAe;CAGpC,MAAA4C,mBAAyBf,eAAA,IAAmBgB,IAAIhB,YAAwB,IAA/CY,KAAAA;CACzB,MAAAK,0BAAgChB,sBAAA,IACxBe,IAAIf,mBACA,IAFoBW,KAAAA;CAIhC,MAAAM,wBAA8BhB,qBAAAC,SAAA;EAExB,IAAIA,SAAS,OAAK;GAEhB,MAAAgB,UAAgBC,MAAKC,KAAMC,MAAKC,WAAWC,QAAS,CAAC,CAAC,CAAAC,IACpDC,KACF;GACAxB,kBAAkBiB,OAAO;EAAC,OACrB,IAAIhB,gBAAgBa,KACzBd,kBAAkBkB,MAAKC,KAAMlB,IAAI,CAAC,CAAAsB,IAAKE,MAAoB,CAAC;OAE5DzB,kBAAkB,CAAA,CAAE;CACrB,IAZuBU,KAAAA;CAchB,IAAAgB;CAAA,IAAArB,EAAA,OAAAtB,UAAA;EAGF2C,KAAA3C,YAAA4C,UAAyB5C,SAASC,KAAG,IAArC0B,KAAAA;EAAkDL,EAAA,KAAAtB;EAAAsB,EAAA,KAAAqB;CAAA,OAAAA,KAAArB,EAAA;CAD9D,MAAA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-1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { normalizeNavigationUrl } from "../../providers/navigation-url.js";
3
3
  import { parseTo } from "../../hooks/use-action.js";
4
4
  import { COLLECTION_ITEM_CLICK, CollectionItem as _CollectionItem } from "../CollectionItem/CollectionItem.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import React, { useContext } from "react";
3
3
  //#region src/components/Menu/MenuContext.ts
4
4
  const MenuContext = React.createContext({});
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
3
3
  import { isExternalUrl, normalizeNavigationUrl } from "../../providers/navigation-url.js";
4
4
  import { useNavigation } from "../../providers/use-navigation.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { getMenuItemReactKey } from "./MenuCollectionItem.js";
3
3
  import { MenuItem } from "./MenuItem.js";
4
4
  import { StyledMenu, StyledSection, StyledSectionHeading } from "./styled.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { SlotProvider } from "../../providers/SlotProvider.js";
3
3
  import { useEvent } from "../../hooks/use-event.js";
4
4
  import { usePopoverSync } from "../../hooks/use-popover-sync.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { useEvent } from "../../hooks/use-event.js";
3
3
  import { usePopoverSync } from "../../hooks/use-popover-sync.js";
4
4
  import { MenuContext, useMenuContext } from "./MenuContext.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import React from "react";
3
3
  //#region src/components/Menu/SubmenuTriggerContext.tsx
4
4
  const SubmenuTriggerContext = React.createContext(null);
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { DEFAULT_CLEAR_STYLES } from "../../themes/item-themes.js";
3
3
  import { Space } from "../Space/Space.js";
4
4
  import { DEFAULT_BUTTON_STYLES } from "../Button/Button.js";
@@ -28,7 +28,8 @@ const StyledMenuWrapper = tasty({
28
28
  popover: "initial max-content (50vh - 4x)",
29
29
  tray: "initial max-content inherit"
30
30
  },
31
- boxSizing: "border-box"
31
+ boxSizing: "border-box",
32
+ "$list-inner-radius": "1cr"
32
33
  }
33
34
  });
34
35
  const StyledMenu = tasty({
@@ -80,7 +81,7 @@ const StyledHeader = tasty(Space, {
80
81
  height: "min $size",
81
82
  boxSizing: "border-box",
82
83
  border: "bottom",
83
- radius: "1cr top",
84
+ radius: "($list-inner-radius, 1cr) top",
84
85
  $size: {
85
86
  "": "$size-md",
86
87
  "size=small": "$size-sm",
@@ -105,7 +106,7 @@ const StyledFooter = tasty(Space, {
105
106
  },
106
107
  boxSizing: "border-box",
107
108
  border: "top",
108
- radius: "1cr bottom"
109
+ radius: "($list-inner-radius, 1cr) bottom"
109
110
  }
110
111
  });
111
112
  const StyledSection = tasty({
@@ -1 +1 @@
1
- {"version":3,"file":"styled.js","names":["mergeStyles","tasty","DEFAULT_CLEAR_STYLES","DEFAULT_BUTTON_STYLES","CubeSpaceProps","Space","StyledMenuWrapper","qa","styles","display","gridRows","fill","margin","padding","border","radius","width","popover","tray","shadow","height","boxSizing","StyledMenu","as","flow","gap","sections","section","overflow","scrollbar","StyledDivider","listStyle","flexShrink","StyledHeader","color","preset","placeContent","placeItems","whiteSpace","$size","StyledFooter","StyledSection","StyledItem","justifyContent","focused","selected","pressed","disabled","cursor","outline","Description","StyledSectionHeading","size","prefix"],"sources":["../../../src/components/Menu/styled.tsx"],"sourcesContent":["import { mergeStyles, tasty } from '@tenphi/tasty';\n\nimport { DEFAULT_CLEAR_STYLES } from '../../themes/item-themes';\nimport { DEFAULT_BUTTON_STYLES } from '../Button/Button';\nimport { CubeSpaceProps, Space } from '../Space/Space';\n\nexport const StyledMenuWrapper = tasty({\n qa: 'Menu',\n styles: {\n display: 'grid',\n gridRows: 'max-content 1sf max-content',\n fill: '#surface',\n margin: 0,\n padding: 0,\n border: true,\n radius: '(1cr + 1bw)',\n width: {\n '': 'auto',\n popover: 'max-content',\n tray: '100%',\n },\n shadow: {\n '': '',\n // Use the design-system `$shadow` token (resolves to\n // `0 .5x 2x #shadow-md`) so the popover shadow follows the\n // scheme-aware Glaze `#shadow-md` color. The previous literal\n // `0px 5px 15px #dark.05` baked in `#dark` (now aliased to the\n // adaptive `#surface-text`) which inverts to a *light* shadow on\n // dark surfaces.\n 'popover | tray': '$shadow',\n },\n height: {\n '': 'initial',\n popover: 'initial max-content (50vh - 4x)',\n // The tray caps the height, and the menu scrolls inside it.\n tray: 'initial max-content inherit',\n },\n boxSizing: 'border-box',\n },\n});\n\nexport const StyledMenu = tasty({\n as: 'ul',\n qa: 'MenuList',\n styles: {\n display: 'flex',\n flow: 'column',\n gap: {\n '': '$item-gap',\n sections: false,\n },\n boxSizing: 'border-box',\n margin: 0,\n padding: {\n '': '0.5x',\n section: 0, // section menu\n },\n overflow: {\n '': 'auto',\n section: '',\n },\n scrollbar: 'styled',\n },\n});\n\nexport const StyledDivider = tasty({\n qa: 'Divider',\n as: 'li',\n styles: {\n display: 'flex',\n flow: 'column',\n margin: '.5x',\n listStyle: 'none',\n fill: '#border',\n height: '1bw',\n flexShrink: 0,\n },\n});\n\n// No `heading` role: a header can hold controls, and a heading would read\n// them as part of its title.\nexport const StyledHeader = tasty(Space, {\n qa: 'Header',\n as: 'div',\n styles: {\n color: '#dark-02',\n preset: 't3',\n placeContent: 'space-between',\n placeItems: 'center',\n whiteSpace: 'nowrap',\n padding: '.5x 1.5x',\n height: 'min $size',\n boxSizing: 'border-box',\n border: 'bottom',\n radius: '1cr top',\n\n $size: {\n '': '$size-md',\n 'size=small': '$size-sm',\n 'size=medium': '$size-md',\n 'size=large': '$size-lg',\n },\n },\n});\n\nexport const StyledFooter = tasty(Space, {\n qa: 'Footer',\n as: 'div',\n styles: {\n color: '#dark-02',\n preset: 't3',\n placeContent: 'space-between',\n placeItems: 'center',\n whiteSpace: 'nowrap',\n padding: '.5x 1.5x',\n height: {\n '': 'min $size-md',\n 'size=large': 'min $size-lg',\n },\n boxSizing: 'border-box',\n border: 'top',\n radius: '1cr bottom',\n },\n});\n\nexport const StyledSection = tasty({\n qa: 'Section',\n as: 'li',\n styles: {\n display: 'flex',\n flow: 'column',\n margin: '0',\n padding: '0',\n listStyle: 'none',\n fill: '#surface',\n },\n});\n\nexport const StyledItem = tasty({\n qa: 'Item',\n as: 'li',\n // Button's defaults with its `default.clear` theme, merged the way Button\n // applies that variant, then the menu-specific overrides.\n styles: mergeStyles(DEFAULT_BUTTON_STYLES, DEFAULT_CLEAR_STYLES, {\n // Override specifics for menu context\n display: 'flex',\n flow: 'row',\n justifyContent: 'stretch',\n listStyle: 'none',\n flexShrink: 0,\n height: {\n '': 'min $size-md',\n 'size=large': 'min $size-lg',\n },\n border: false,\n boxSizing: 'border-box',\n fill: {\n '': '#clear',\n focused: '#dark.03',\n selected: '#dark.09',\n 'selected & focused': '#dark.12',\n pressed: '#dark.09',\n disabled: '#clear',\n },\n color: {\n '': '#dark-02',\n 'selected | pressed': '#dark',\n disabled: '#disabled-surface-text',\n },\n cursor: {\n '': 'default',\n disabled: 'not-allowed',\n },\n shadow: '#clear',\n padding: {\n '': '.5x 1x',\n 'selectionIcon & selectable & !selected': '.5x 1x .5x (1x + 3x)',\n },\n gap: '.75x',\n outline: false,\n\n Description: {\n preset: 't4',\n color: '#dark-03',\n },\n }),\n});\n\nexport const StyledSectionHeading = tasty<\n CubeSpaceProps & { size?: 'small' | 'medium' | (string & {}) }\n>(Space, {\n qa: 'SectionHeading',\n as: 'div',\n styles: {\n color: '#dark-04',\n preset: 'c2',\n height: '3x',\n placeContent: 'center space-between',\n padding: {\n '': '.5x .75x',\n prefix: '0 .75x 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});\n"],"mappings":";;;;;;AAMA,MAAaM,oBAAoBL,MAAM;CACrCM,IAAI;CACJC,QAAQ;EACNC,SAAS;EACTC,UAAU;EACVC,MAAM;EACNC,QAAQ;EACRC,SAAS;EACTC,QAAQ;EACRC,QAAQ;EACRC,OAAO;GACL,IAAI;GACJC,SAAS;GACTC,MAAM;EACR;EACAC,QAAQ;GACN,IAAI;GAOJ,kBAAkB;EACpB;EACAC,QAAQ;GACN,IAAI;GACJH,SAAS;GAETC,MAAM;EACR;EACAG,WAAW;CACb;AACF,CAAC;AAED,MAAaC,aAAarB,MAAM;CAC9BsB,IAAI;CACJhB,IAAI;CACJC,QAAQ;EACNC,SAAS;EACTe,MAAM;EACNC,KAAK;GACH,IAAI;GACJC,UAAU;EACZ;EACAL,WAAW;EACXT,Q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TC,UAAU;GACV,sBAAsB;GACtBC,SAAS;GACTC,UAAU;EACZ;EACAb,OAAO;GACL,IAAI;GACJ,sBAAsB;GACtBa,UAAU;EACZ;EACAC,QAAQ;GACN,IAAI;GACJD,UAAU;EACZ;EACA5B,QAAQ;EACRN,SAAS;GACP,IAAI;GACJ,0CAA0C;EAC5C;EACAY,KAAK;EACLwB,SAAS;EAETC,aAAa;GACXf,QAAQ;GACRD,OAAO;EACT;CACF,CAAC;AACH,CAAC;AAED,MAAaiB,uBAAuBlD,MAElCI,OAAO;CACPE,IAAI;CACJgB,IAAI;CACJf,QAAQ;EACN0B,OAAO;EACPC,QAAQ;EACRf,QAAQ;EACRgB,cAAc;EACdvB,SAAS;GACP,IAAI;GACJwC,QAAQ;EACV;EAEAd,OAAO;GACL,IAAI;GACJ,cAAc;GACd,eAAe;GACf,cAAc;EAChB;CACF;AACF,CAAC"}
1
+ {"version":3,"file":"styled.js","names":["mergeStyles","tasty","DEFAULT_CLEAR_STYLES","DEFAULT_BUTTON_STYLES","CubeSpaceProps","Space","StyledMenuWrapper","qa","styles","display","gridRows","fill","margin","padding","border","radius","width","popover","tray","shadow","height","boxSizing","StyledMenu","as","flow","gap","sections","section","overflow","scrollbar","StyledDivider","listStyle","flexShrink","StyledHeader","color","preset","placeContent","placeItems","whiteSpace","$size","StyledFooter","StyledSection","StyledItem","justifyContent","focused","selected","pressed","disabled","cursor","outline","Description","StyledSectionHeading","size","prefix"],"sources":["../../../src/components/Menu/styled.tsx"],"sourcesContent":["import { mergeStyles, tasty } from '@tenphi/tasty';\n\nimport { DEFAULT_CLEAR_STYLES } from '../../themes/item-themes';\nimport { DEFAULT_BUTTON_STYLES } from '../Button/Button';\nimport { CubeSpaceProps, Space } from '../Space/Space';\n\nexport const StyledMenuWrapper = tasty({\n qa: 'Menu',\n styles: {\n display: 'grid',\n gridRows: 'max-content 1sf max-content',\n fill: '#surface',\n margin: 0,\n padding: 0,\n border: true,\n radius: '(1cr + 1bw)',\n width: {\n '': 'auto',\n popover: 'max-content',\n tray: '100%',\n },\n shadow: {\n '': '',\n // Use the design-system `$shadow` token (resolves to\n // `0 .5x 2x #shadow-md`) so the popover shadow follows the\n // scheme-aware Glaze `#shadow-md` color. The previous literal\n // `0px 5px 15px #dark.05` baked in `#dark` (now aliased to the\n // adaptive `#surface-text`) which inverts to a *light* shadow on\n // dark surfaces.\n 'popover | tray': '$shadow',\n },\n height: {\n '': 'initial',\n popover: 'initial max-content (50vh - 4x)',\n // The tray caps the height, and the menu scrolls inside it.\n tray: 'initial max-content inherit',\n },\n boxSizing: 'border-box',\n // The header and footer round to the box's inner corners.\n '$list-inner-radius': '1cr',\n },\n});\n\nexport const StyledMenu = tasty({\n as: 'ul',\n qa: 'MenuList',\n styles: {\n display: 'flex',\n flow: 'column',\n gap: {\n '': '$item-gap',\n sections: false,\n },\n boxSizing: 'border-box',\n margin: 0,\n padding: {\n '': '0.5x',\n section: 0, // section menu\n },\n overflow: {\n '': 'auto',\n section: '',\n },\n scrollbar: 'styled',\n },\n});\n\nexport const StyledDivider = tasty({\n qa: 'Divider',\n as: 'li',\n styles: {\n display: 'flex',\n flow: 'column',\n margin: '.5x',\n listStyle: 'none',\n fill: '#border',\n height: '1bw',\n flexShrink: 0,\n },\n});\n\n// No `heading` role: a header can hold controls, and a heading would read\n// them as part of its title.\n//\n// A header or footer closes the box it sits in: Menu, CommandMenu, ListBox or\n// FilterListBox. Each sets `$list-inner-radius` to the inner corner radius of\n// the box a user sees: its own radius less its border, or, for a box with no\n// border in a popover, the dialog's. FilterListBox's own list inherits it. So\n// a fill a consumer gives the header or footer meets that border at the\n// corners.\nexport const StyledHeader = tasty(Space, {\n qa: 'Header',\n as: 'div',\n styles: {\n color: '#dark-02',\n preset: 't3',\n placeContent: 'space-between',\n placeItems: 'center',\n whiteSpace: 'nowrap',\n padding: '.5x 1.5x',\n height: 'min $size',\n boxSizing: 'border-box',\n border: 'bottom',\n radius: '($list-inner-radius, 1cr) top',\n\n $size: {\n '': '$size-md',\n 'size=small': '$size-sm',\n 'size=medium': '$size-md',\n 'size=large': '$size-lg',\n },\n },\n});\n\nexport const StyledFooter = tasty(Space, {\n qa: 'Footer',\n as: 'div',\n styles: {\n color: '#dark-02',\n preset: 't3',\n placeContent: 'space-between',\n placeItems: 'center',\n whiteSpace: 'nowrap',\n padding: '.5x 1.5x',\n height: {\n '': 'min $size-md',\n 'size=large': 'min $size-lg',\n },\n boxSizing: 'border-box',\n border: 'top',\n radius: '($list-inner-radius, 1cr) bottom',\n },\n});\n\nexport const StyledSection = tasty({\n qa: 'Section',\n as: 'li',\n styles: {\n display: 'flex',\n flow: 'column',\n margin: '0',\n padding: '0',\n listStyle: 'none',\n fill: '#surface',\n },\n});\n\nexport const StyledItem = tasty({\n qa: 'Item',\n as: 'li',\n // Button's defaults with its `default.clear` theme, merged the way Button\n // applies that variant, then the menu-specific overrides.\n styles: mergeStyles(DEFAULT_BUTTON_STYLES, DEFAULT_CLEAR_STYLES, {\n // Override specifics for menu context\n display: 'flex',\n flow: 'row',\n justifyContent: 'stretch',\n listStyle: 'none',\n flexShrink: 0,\n height: {\n '': 'min $size-md',\n 'size=large': 'min $size-lg',\n },\n border: false,\n boxSizing: 'border-box',\n fill: {\n '': '#clear',\n focused: '#dark.03',\n selected: '#dark.09',\n 'selected & focused': '#dark.12',\n pressed: '#dark.09',\n disabled: '#clear',\n },\n color: {\n '': '#dark-02',\n 'selected | pressed': '#dark',\n disabled: '#disabled-surface-text',\n },\n cursor: {\n '': 'default',\n disabled: 'not-allowed',\n },\n shadow: '#clear',\n padding: {\n '': '.5x 1x',\n 'selectionIcon & selectable & !selected': '.5x 1x .5x (1x + 3x)',\n },\n gap: '.75x',\n outline: false,\n\n Description: {\n preset: 't4',\n color: '#dark-03',\n },\n }),\n});\n\nexport const StyledSectionHeading = tasty<\n CubeSpaceProps & { size?: 'small' | 'medium' | (string & {}) }\n>(Space, {\n qa: 'SectionHeading',\n as: 'div',\n styles: {\n color: '#dark-04',\n preset: 'c2',\n height: '3x',\n placeContent: 'center space-between',\n padding: {\n '': '.5x .75x',\n prefix: '0 .75x 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});\n"],"mappings":";;;;;;AAMA,MAAaM,oBAAoBL,MAAM;CACrCM,IAAI;CACJC,QAAQ;EACNC,SAAS;EACTC,UAAU;EACVC,MAAM;EACNC,QAAQ;EACRC,SAAS;EACTC,QAAQ;EACRC,QAAQ;EACRC,OAAO;GACL,IAAI;GACJC,SAAS;GACTC,MAAM;EACR;EACAC,QAAQ;GACN,IAAI;GAOJ,kBAAkB;EACpB;EACAC,QAAQ;GACN,IAAI;GACJH,SAAS;GAETC,MAAM;EACR;EACAG,WAAW;EAEX,sBAAsB;CACxB;AACF,CAAC;AAED,MAAaC,aAAarB,MAAM;CAC9BsB,IAAI;CACJhB,IAAI;CACJC,QAAQ;EACNC,SAAS;EACTe,MAAM;EACNC,KAAK;GACH,IAAI;GACJC,UAAU;EACZ;EACAL,WAAW;EACXT,QAAQ;EACRC,SAAS;GACP,IAAI;GACJc,SAAS;EACX;EACAC,UAAU;GACR,IAAI;GACJD,SAAS;EACX;EACAE,WAAW;CACb;AACF,CAAC;AAED,MAAaC,gBAAgB7B,MAAM;CACjCM,IAAI;CACJgB,IAAI;CACJf,QAAQ;EACNC,SAAS;EACTe,MAAM;EACNZ,QAAQ;EACRmB,WAAW;EACXpB,MAAM;EACNS,QAAQ;EACRY,YAAY;CACd;AACF,CAAC;AAWD,MAAaC,eAAehC,MAAMI,OAAO;CACvCE,IAAI;CACJgB,IAAI;CACJf,QAAQ;EACN0B,OAAO;EACPC,QAAQ;EACRC,cAAc;EACdC,YAAY;EACZC,YAAY;EACZzB,SAAS;EACTO,QAAQ;EACRC,WAAW;EACXP,QAAQ;EACRC,QAAQ;EAERwB,OAAO;GACL,IAAI;GACJ,cAAc;GACd,eAAe;GACf,cAAc;EAChB;CACF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@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  //#region src/components/Menu/touch-context-menu.ts
3
3
  /** React Aria's `useLongPress` threshold. */
4
4
  const LONG_PRESS_DELAY = 500;
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
3
3
  import { useEvent } from "../../hooks/use-event.js";
4
4
  import { useI18n } from "../../i18n/use-i18n.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
3
3
  import { useEvent } from "../../hooks/use-event.js";
4
4
  import { useI18n } from "../../i18n/use-i18n.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
3
3
  import { mergeRefs as mergeRefs$1 } from "../../hooks/use-combined-refs.js";
4
4
  import { ModalContainmentProvider, useModalContainment } from "./ModalContainmentProvider.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { c } from "react/compiler-runtime";
3
3
  import { createContext, useContext, useLayoutEffect, useRef, useState } from "react";
4
4
  import { ariaHideOutside } from "react-aria/private/overlays/ariaHideOutside";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { createContext, useContext } from "react";
3
3
  //#region src/components/Modal/OpenTransitionContext.tsx
4
4
  const OpenTransitionContext = createContext(null);
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { markFocusRestoreWindow } from "../../utils/programmatic-focus.js";
3
3
  import { DisplayTransition } from "../DisplayTransition/DisplayTransition.js";
4
4
  import { Provider, useProviderProps } from "../../providers/Provider.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
3
3
  import { mergeRefs as mergeRefs$1 } from "../../hooks/use-combined-refs.js";
4
4
  import { useModalLayerRef } from "./ModalContainmentProvider.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
3
3
  import { mergeRefs as mergeRefs$1 } from "../../hooks/use-combined-refs.js";
4
4
  import { ModalContainmentProvider, useModalContainment } from "./ModalContainmentProvider.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { c } from "react/compiler-runtime";
3
3
  import { tasty } from "@tenphi/tasty";
4
4
  import { forwardRef } from "react";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { extractStyles } from "../../utils/styles.js";
3
3
  import { useLayoutEffect as useLayoutEffect$1 } from "../../hooks/use-layout-effect.js";
4
4
  import { pickBaseCustomizationProps } from "../../utils/pick-base-customization-props.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { wrapIcon } from "../../icons/wrap-icon.js";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
  //#region src/components/NoDataIcon/NoDataIcon.tsx
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { useNotificationContext } from "./NotificationContext.js";
3
3
  import { c } from "react/compiler-runtime";
4
4
  import { useEffect, useRef } from "react";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { useEvent } from "../../hooks/use-event.js";
3
3
  import { ItemAction } from "../ItemAction/ItemAction.js";
4
4
  import { c } from "react/compiler-runtime";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { Block } from "../Block/Block.js";
3
3
  import { ItemActionProvider } from "../../providers/ItemActionContext.js";
4
4
  import { useI18n } from "../../i18n/use-i18n.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { createContext, useContext } from "react";
3
3
  //#region src/components/Notifications/NotificationContext.ts
4
4
  const ToastContext = createContext(null);
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { useEvent } from "../../hooks/use-event.js";
3
3
  import { useLiveRegion } from "./use-live-region.js";
4
4
  import { NotificationCard } from "./NotificationCard.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { useLayoutEffect as useLayoutEffect$1 } from "../../hooks/use-layout-effect.js";
3
3
  import { useEvent } from "../../hooks/use-event.js";
4
4
  import { DisplayTransition } from "../DisplayTransition/DisplayTransition.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { NotificationContext, PersistentNotificationsContext, ToastContext } from "./NotificationContext.js";
3
3
  import { OverlayContainer } from "./OverlayContainer.js";
4
4
  import { useNotificationState } from "./use-notification-state.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { Text as _Text } from "../Text/Text.js";
3
3
  import { useEvent } from "../../hooks/use-event.js";
4
4
  import { useI18n } from "../../i18n/use-i18n.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  //#region src/components/Notifications/dismissed-storage.ts
3
3
  const STORAGE_KEY = "cube-ui-dismissed-notifications";
4
4
  const TTL_MS = 864e5;
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  //#region src/components/Notifications/format-relative-time.ts
3
3
  /**
4
4
  * Lightweight relative time formatter.
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import "./NotificationContext.js";
3
3
  import { NotificationAction } from "./NotificationAction.js";
4
4
  import { NotificationCard } from "./NotificationCard.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { c } from "react/compiler-runtime";
3
3
  import { useEffect, useState } from "react";
4
4
  //#region src/components/Notifications/use-live-region.ts
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { useEvent } from "../../hooks/use-event.js";
3
3
  import { useRef, useState } from "react";
4
4
  //#region src/components/Notifications/use-notification-state.ts
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { useEvent } from "../../hooks/use-event.js";
3
3
  import { useWarn } from "../../hooks/use-warn.js";
4
4
  import { useNotificationContext } from "./NotificationContext.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { useEvent } from "../../hooks/use-event.js";
3
3
  import { useEffect, useRef } from "react";
4
4
  //#region src/components/Notifications/use-overlay-timers.ts
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { usePersistentNotificationsContext } from "./NotificationContext.js";
3
3
  import { c } from "react/compiler-runtime";
4
4
  //#region src/components/Notifications/use-persistent-notifications.ts
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { useEvent } from "../../hooks/use-event.js";
3
3
  import { cleanupAndGetValidIds, saveDismissedId } from "./dismissed-storage.js";
4
4
  import { c } from "react/compiler-runtime";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { useEvent } from "../../hooks/use-event.js";
3
3
  import { useRef, useState } from "react";
4
4
  //#region src/components/Notifications/use-toast-state.ts
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
3
3
  import { useI18n } from "../../i18n/use-i18n.js";
4
4
  import { settleOverlayKey } from "../../utils/overlay-key-propagation.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { Button } from "../Button/Button.js";
3
3
  import { DirectionIcon } from "../../icons/DirectionIcon.js";
4
4
  import { c } from "react/compiler-runtime";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { extractStyles } from "../../utils/styles.js";
3
3
  import { useEvent } from "../../hooks/use-event.js";
4
4
  import { useI18n } from "../../i18n/use-i18n.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { useEvent } from "../../hooks/use-event.js";
3
3
  import { c } from "react/compiler-runtime";
4
4
  import { useControlledState } from "@react-stately/utils";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-68b8ab7 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-dbc4e26 | Cube Dev Team */
2
2
  import { extractStyles } from "../../utils/styles.js";
3
3
  import { c } from "react/compiler-runtime";
4
4
  import { BASE_STYLES, BLOCK_STYLES, COLOR_STYLES, DIMENSION_STYLES, OUTER_STYLES, tasty } from "@tenphi/tasty";