@cube-dev/ui-kit 0.0.0-canary-ef6b29c → 0.0.0-canary-9a11fa8

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 (622) 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 +1 -1
  41. package/dist/components/CommandTextArea/CommandTextArea.js +1 -1
  42. package/dist/components/CommandTextArea/caret-position.js +1 -1
  43. package/dist/components/CommandTextArea/use-caret-anchor.js +1 -1
  44. package/dist/components/Content/Content.js +1 -1
  45. package/dist/components/CopyPasteBlock/CopyPasteBlock.js +1 -1
  46. package/dist/components/CopySnippet/CopySnippet.js +1 -1
  47. package/dist/components/CubeLogo/CubeLogo.js +1 -1
  48. package/dist/components/DataTable/DataTable.js +1 -1
  49. package/dist/components/DatePicker/CalendarPopover.js +1 -1
  50. package/dist/components/DatePicker/DateInput.js +1 -1
  51. package/dist/components/DatePicker/DateInputBase.js +1 -1
  52. package/dist/components/DatePicker/DatePicker.js +1 -1
  53. package/dist/components/DatePicker/DatePickerButton.js +1 -1
  54. package/dist/components/DatePicker/DatePickerElement.js +1 -1
  55. package/dist/components/DatePicker/DatePickerInput.js +1 -1
  56. package/dist/components/DatePicker/DatePickerSegment.js +1 -1
  57. package/dist/components/DatePicker/DateRangePicker.js +1 -1
  58. package/dist/components/DatePicker/DateRangeSeparatedPicker.js +1 -1
  59. package/dist/components/DatePicker/MonthPicker.js +1 -1
  60. package/dist/components/DatePicker/PeriodPicker.js +1 -1
  61. package/dist/components/DatePicker/QuarterPicker.js +1 -1
  62. package/dist/components/DatePicker/TimeInput.js +1 -1
  63. package/dist/components/DatePicker/WeekPicker.js +1 -1
  64. package/dist/components/DatePicker/YearPicker.js +1 -1
  65. package/dist/components/DatePicker/parse-date.js +1 -1
  66. package/dist/components/DatePicker/period.js +1 -1
  67. package/dist/components/DatePicker/props.js +1 -1
  68. package/dist/components/DatePicker/utils.js +1 -1
  69. package/dist/components/Dialog/Dialog.js +1 -1
  70. package/dist/components/Dialog/DialogContainer.js +1 -1
  71. package/dist/components/Dialog/DialogContext.js +1 -1
  72. package/dist/components/Dialog/DialogForm.js +1 -1
  73. package/dist/components/Dialog/DialogTrigger.js +1 -1
  74. package/dist/components/Dialog/ModernDialogForm.js +1 -1
  75. package/dist/components/Dialog/default-button-text.js +1 -1
  76. package/dist/components/Dialog/use-content-overflow.js +1 -1
  77. package/dist/components/Dialog/use-dialog-container.js +1 -1
  78. package/dist/components/Dialog/use-dialog-open-sync.js +1 -1
  79. package/dist/components/Dialog/use-dismiss-confirmation.js +1 -1
  80. package/dist/components/Dialog/use-retained-dialog-focus.js +1 -1
  81. package/dist/components/Disclosure/Disclosure.js +1 -1
  82. package/dist/components/DisplayTransition/DisplayTransition.js +1 -1
  83. package/dist/components/Divider/Divider.js +1 -1
  84. package/dist/components/DraggableCollection/DraggableCollection.js +1 -1
  85. package/dist/components/FieldWrapper/FieldWrapper.js +1 -1
  86. package/dist/components/FieldWrapper/field-description.js +1 -1
  87. package/dist/components/FileInput/FileInput.js +1 -1
  88. package/dist/components/FilterListBox/FilterListBox.js +1 -1
  89. package/dist/components/FilterListBox/styled.js +1 -1
  90. package/dist/components/FilterPicker/FilterPicker.js +1 -1
  91. package/dist/components/FilterPicker/FilterTree.js +1 -1
  92. package/dist/components/Flex/Flex.js +1 -1
  93. package/dist/components/Flow/Flow.js +1 -1
  94. package/dist/components/Footer/Footer.js +1 -1
  95. package/dist/components/Form/Field.js +1 -1
  96. package/dist/components/Form/Form.js +1 -1
  97. package/dist/components/Form/FormContext.js +1 -1
  98. package/dist/components/Form/FormElement.js +1 -1
  99. package/dist/components/Form/ModernFormRoot.js +1 -1
  100. package/dist/components/Form/ResetButton.js +1 -1
  101. package/dist/components/Form/SubmitButton.js +1 -1
  102. package/dist/components/Form/SubmitError.js +1 -1
  103. package/dist/components/Form/backend.js +1 -1
  104. package/dist/components/Form/index.js +1 -1
  105. package/dist/components/Form/modern/ModernActions.js +1 -1
  106. package/dist/components/Form/modern/ModernControllerContext.js +1 -1
  107. package/dist/components/Form/modern/after-press.js +1 -1
  108. package/dist/components/Form/modern/controller.js +1 -1
  109. package/dist/components/Form/modern/field-binding.js +1 -1
  110. package/dist/components/Form/modern/field.js +1 -1
  111. package/dist/components/Form/modern/react.js +1 -1
  112. package/dist/components/Form/modern/store.js +1 -1
  113. package/dist/components/Form/modern/validation.js +1 -1
  114. package/dist/components/Form/modern/values.js +1 -1
  115. package/dist/components/Form/reset-unbound-controls.js +1 -1
  116. package/dist/components/Form/use-field/use-field-binding.js +1 -1
  117. package/dist/components/Form/use-field/use-field-props.js +1 -1
  118. package/dist/components/Form/use-field/use-field.js +1 -1
  119. package/dist/components/Form/use-form.js +1 -1
  120. package/dist/components/Form/validation.js +1 -1
  121. package/dist/components/GlobalStyles/GlobalStyles.js +1 -1
  122. package/dist/components/Grid/Grid.js +1 -1
  123. package/dist/components/GridProvider/GridProvider.js +1 -1
  124. package/dist/components/Header/Header.js +1 -1
  125. package/dist/components/HiddenInput/HiddenInput.js +1 -1
  126. package/dist/components/HotKeys/HotKeys.js +1 -1
  127. package/dist/components/IconSwitch/IconSwitch.js +1 -1
  128. package/dist/components/InfoBadge/InfoBadge.js +1 -1
  129. package/dist/components/InlineInput/InlineInput.js +1 -1
  130. package/dist/components/Input/Input.js +1 -1
  131. package/dist/components/Item/Item.js +1 -1
  132. package/dist/components/Item/ItemWithNativeLinks.js +1 -1
  133. package/dist/components/ItemAction/ItemAction.js +1 -1
  134. package/dist/components/ItemAction/ItemCloseAction.js +1 -1
  135. package/dist/components/ItemActionsWrapper/ItemActionsWrapper.js +1 -1
  136. package/dist/components/ItemBadge/ItemBadge.js +1 -1
  137. package/dist/components/ItemButton/ItemButton.js +1 -1
  138. package/dist/components/ItemCard/ItemCard.js +1 -1
  139. package/dist/components/ItemTable/ItemTable.js +1 -1
  140. package/dist/components/ItemTable/ItemTableBulkBar.js +1 -1
  141. package/dist/components/ItemTable/ItemTableDragPreview.js +1 -1
  142. package/dist/components/ItemTable/ItemTableFooter.js +1 -1
  143. package/dist/components/ItemTable/ItemTableToolbar.js +1 -1
  144. package/dist/components/ItemTable/item-table-sections.js +1 -1
  145. package/dist/components/ItemTable/use-item-table-column-widths.js +1 -1
  146. package/dist/components/ItemTable/use-item-table-drag-drop.js +1 -1
  147. package/dist/components/ItemTable/use-item-table-pagination.js +1 -1
  148. package/dist/components/ItemTable/use-item-table-selection.js +1 -1
  149. package/dist/components/ItemTable/use-item-table-sort.js +1 -1
  150. package/dist/components/ItemTable/use-item-table-tree-model.js +1 -1
  151. package/dist/components/Label/Label.js +1 -1
  152. package/dist/components/Layout/GridLayout.js +1 -1
  153. package/dist/components/Layout/Layout.js +1 -1
  154. package/dist/components/Layout/LayoutBlock.js +1 -1
  155. package/dist/components/Layout/LayoutCenter.js +1 -1
  156. package/dist/components/Layout/LayoutContainer.js +1 -1
  157. package/dist/components/Layout/LayoutContent.js +1 -1
  158. package/dist/components/Layout/LayoutContext.js +1 -1
  159. package/dist/components/Layout/LayoutFlex.js +1 -1
  160. package/dist/components/Layout/LayoutFooter.js +1 -1
  161. package/dist/components/Layout/LayoutGrid.js +1 -1
  162. package/dist/components/Layout/LayoutHeader.js +1 -1
  163. package/dist/components/Layout/LayoutPane.js +1 -1
  164. package/dist/components/Layout/LayoutPanel.d.ts +3 -3
  165. package/dist/components/Layout/LayoutPanel.js +16 -12
  166. package/dist/components/Layout/LayoutPanel.js.map +1 -1
  167. package/dist/components/Layout/LayoutPanelHeader.js +1 -1
  168. package/dist/components/Layout/LayoutPanelTransition.js +1 -1
  169. package/dist/components/Layout/LayoutResizeHandle.js +89 -77
  170. package/dist/components/Layout/LayoutResizeHandle.js.map +1 -1
  171. package/dist/components/Layout/LayoutToolbar.js +1 -1
  172. package/dist/components/Layout/index.js +1 -1
  173. package/dist/components/Layout/use-tiny-scrollbar.js +1 -1
  174. package/dist/components/Layout/utils.js +1 -1
  175. package/dist/components/Link/Link.js +1 -1
  176. package/dist/components/ListBox/DraggableListBox.js +1 -1
  177. package/dist/components/ListBox/ListBox.js +1 -1
  178. package/dist/components/ListBox/empty-row.js +1 -1
  179. package/dist/components/ListBox/option-id.js +1 -1
  180. package/dist/components/ListBox/use-disabled-focus-reset.js +1 -1
  181. package/dist/components/ListBoxPopover/EmptyLabelStatus.js +1 -1
  182. package/dist/components/ListBoxPopover/ListBoxPopover.js +1 -1
  183. package/dist/components/ListBoxPopover/list-navigation.js +1 -1
  184. package/dist/components/ListBoxPopover/use-composite-focus.js +1 -1
  185. package/dist/components/ListBoxPopover/use-delayed-loading.js +1 -1
  186. package/dist/components/LoadingAnimation/LoadingAnimation.js +1 -1
  187. package/dist/components/Menu/Menu.js +1 -1
  188. package/dist/components/Menu/MenuCollectionItem.js +1 -1
  189. package/dist/components/Menu/MenuContext.js +1 -1
  190. package/dist/components/Menu/MenuItem.js +1 -1
  191. package/dist/components/Menu/MenuSection.js +1 -1
  192. package/dist/components/Menu/MenuTrigger.js +1 -1
  193. package/dist/components/Menu/SubMenuTrigger.js +1 -1
  194. package/dist/components/Menu/SubmenuTriggerContext.js +1 -1
  195. package/dist/components/Menu/styled.js +1 -1
  196. package/dist/components/Menu/touch-context-menu.js +1 -1
  197. package/dist/components/Menu/use-anchored-menu.js +1 -1
  198. package/dist/components/Menu/use-context-menu.js +1 -1
  199. package/dist/components/Modal/Modal.js +1 -1
  200. package/dist/components/Modal/ModalContainmentProvider.js +1 -1
  201. package/dist/components/Modal/OpenTransitionContext.js +1 -1
  202. package/dist/components/Modal/Overlay.js +1 -1
  203. package/dist/components/Modal/Popover.js +1 -1
  204. package/dist/components/Modal/Tray.js +1 -1
  205. package/dist/components/Modal/Underlay.js +1 -1
  206. package/dist/components/NavTabs/NavTabs.js +1 -1
  207. package/dist/components/NoDataIcon/NoDataIcon.js +1 -1
  208. package/dist/components/Notifications/Notification.js +1 -1
  209. package/dist/components/Notifications/NotificationAction.js +1 -1
  210. package/dist/components/Notifications/NotificationCard.js +1 -1
  211. package/dist/components/Notifications/NotificationContext.js +1 -1
  212. package/dist/components/Notifications/NotificationItem.js +1 -1
  213. package/dist/components/Notifications/OverlayContainer.js +1 -1
  214. package/dist/components/Notifications/OverlayProvider.js +1 -1
  215. package/dist/components/Notifications/PersistentNotificationsList.js +1 -1
  216. package/dist/components/Notifications/dismissed-storage.js +1 -1
  217. package/dist/components/Notifications/format-relative-time.js +1 -1
  218. package/dist/components/Notifications/index.js +1 -1
  219. package/dist/components/Notifications/use-live-region.js +1 -1
  220. package/dist/components/Notifications/use-notification-state.js +1 -1
  221. package/dist/components/Notifications/use-notifications.js +1 -1
  222. package/dist/components/Notifications/use-overlay-timers.js +1 -1
  223. package/dist/components/Notifications/use-persistent-notifications.js +1 -1
  224. package/dist/components/Notifications/use-persistent-state.js +1 -1
  225. package/dist/components/Notifications/use-toast-state.js +1 -1
  226. package/dist/components/NumberInput/NumberInput.js +1 -1
  227. package/dist/components/NumberInput/StepButton.js +1 -1
  228. package/dist/components/Pagination/Pagination.js +1 -1
  229. package/dist/components/Pagination/use-pagination.js +1 -1
  230. package/dist/components/Panel/Panel.js +1 -1
  231. package/dist/components/Paragraph/Paragraph.js +1 -1
  232. package/dist/components/PasswordInput/PasswordInput.js +1 -1
  233. package/dist/components/Picker/Picker.js +1 -1
  234. package/dist/components/Placeholder/Placeholder.js +1 -1
  235. package/dist/components/Portal/Portal.js +1 -1
  236. package/dist/components/Portal/PortalProvider.js +1 -1
  237. package/dist/components/Portal/use-portal.js +1 -1
  238. package/dist/components/Prefix/Prefix.js +1 -1
  239. package/dist/components/PrismCode/PrismCode.js +1 -1
  240. package/dist/components/PrismCode/prism-setup.js +1 -1
  241. package/dist/components/PrismDiffCode/PrismDiffCode.js +1 -1
  242. package/dist/components/RadioGroup/Radio.js +1 -1
  243. package/dist/components/RadioGroup/RadioContext.js +1 -1
  244. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  245. package/dist/components/RadioGroup/joined-styles.js +1 -1
  246. package/dist/components/RenderCache/RenderCache.js +1 -1
  247. package/dist/components/ResizablePanel/ResizablePanel.js +1 -1
  248. package/dist/components/Result/Result.js +1 -1
  249. package/dist/components/Root/Root.js +1 -1
  250. package/dist/components/SearchComboBox/SearchComboBox.js +1 -1
  251. package/dist/components/SearchInput/SearchInput.js +1 -1
  252. package/dist/components/Select/Select.js +1 -1
  253. package/dist/components/Skeleton/Skeleton.js +1 -1
  254. package/dist/components/Slider/Gradation.js +1 -1
  255. package/dist/components/Slider/HueSlider.js +1 -1
  256. package/dist/components/Slider/RangeSlider.js +1 -1
  257. package/dist/components/Slider/Slider.js +1 -1
  258. package/dist/components/Slider/SliderBase.js +1 -1
  259. package/dist/components/Slider/SliderThumb.js +1 -1
  260. package/dist/components/Slider/SliderTrack.js +1 -1
  261. package/dist/components/Slider/elements.js +1 -1
  262. package/dist/components/Slider/index.js +1 -1
  263. package/dist/components/Space/Space.js +1 -1
  264. package/dist/components/Spin/Cube.js +1 -1
  265. package/dist/components/Spin/InternalSpinner.js +1 -1
  266. package/dist/components/Spin/Spin.js +1 -1
  267. package/dist/components/Spin/SpinsContainer.js +1 -1
  268. package/dist/components/StatsCard/StatsCard.js +1 -1
  269. package/dist/components/Suffix/Suffix.js +1 -1
  270. package/dist/components/Switch/Switch.js +1 -1
  271. package/dist/components/TableBase/ColumnResizer.js +1 -1
  272. package/dist/components/TableBase/RowCollection.js +1 -1
  273. package/dist/components/TableBase/TableHeaderCell.js +1 -1
  274. package/dist/components/TableBase/TableRow.js +1 -1
  275. package/dist/components/TableBase/TableRowLink.js +1 -1
  276. package/dist/components/TableBase/TableView.js +1 -1
  277. package/dist/components/TableBase/TreeGridTable.js +1 -1
  278. package/dist/components/TableBase/column-header.js +1 -1
  279. package/dist/components/TableBase/column-menu.js +1 -1
  280. package/dist/components/TableBase/column-styles.js +1 -1
  281. package/dist/components/TableBase/column-tint.js +1 -1
  282. package/dist/components/TableBase/row-menu.js +1 -1
  283. package/dist/components/TableBase/styled.js +1 -1
  284. package/dist/components/TableBase/table-body-sections.js +1 -1
  285. package/dist/components/TableBase/table-tree.js +1 -1
  286. package/dist/components/TableBase/types.js +1 -1
  287. package/dist/components/TableBase/use-cell-selection.js +0 -0
  288. package/dist/components/TableBase/use-column-menu.js +1 -1
  289. package/dist/components/TableBase/use-column-order.js +1 -1
  290. package/dist/components/TableBase/use-column-window.js +1 -1
  291. package/dist/components/TableBase/use-container-width.js +1 -1
  292. package/dist/components/TableBase/use-row-move-animation.js +1 -1
  293. package/dist/components/TableBase/use-scrollability.js +1 -1
  294. package/dist/components/TableBase/use-table-columns.js +1 -1
  295. package/dist/components/TableBase/use-table-search.js +1 -1
  296. package/dist/components/TableBase/use-table-selection.js +1 -1
  297. package/dist/components/TableBase/use-table-sort.js +1 -1
  298. package/dist/components/TableBase/use-table-sorts.js +1 -1
  299. package/dist/components/TableBase/use-table-storage.js +1 -1
  300. package/dist/components/TableBase/use-table-tooltip-refresh.js +1 -1
  301. package/dist/components/TableBase/use-table-tree-state.js +1 -1
  302. package/dist/components/Tabs/BoardDragActiveProvider.js +1 -1
  303. package/dist/components/Tabs/DraggableTabList.js +1 -1
  304. package/dist/components/Tabs/TabButton.js +1 -1
  305. package/dist/components/Tabs/TabDropIndicator.js +1 -1
  306. package/dist/components/Tabs/TabPanel.js +1 -1
  307. package/dist/components/Tabs/TabPicker.js +1 -1
  308. package/dist/components/Tabs/Tabs.js +1 -1
  309. package/dist/components/Tabs/TabsAction.js +1 -1
  310. package/dist/components/Tabs/TabsContext.js +1 -1
  311. package/dist/components/Tabs/popover-placement.js +1 -1
  312. package/dist/components/Tabs/scroll-tab-into-strip.js +1 -1
  313. package/dist/components/Tabs/segmented-styles.js +1 -1
  314. package/dist/components/Tabs/styled.js +1 -1
  315. package/dist/components/Tabs/types.js +1 -1
  316. package/dist/components/Tabs/use-tab-editing.js +1 -1
  317. package/dist/components/Tabs/use-tab-indicator.js +1 -1
  318. package/dist/components/Tag/Tag.js +1 -1
  319. package/dist/components/TagInput/TagInput.js +1 -1
  320. package/dist/components/TagInput/TagList.js +1 -1
  321. package/dist/components/TagInput/use-active-option.js +1 -1
  322. package/dist/components/TagInput/use-suffix-space.js +1 -1
  323. package/dist/components/TagInput/use-tag-error.js +1 -1
  324. package/dist/components/Text/Text.js +1 -1
  325. package/dist/components/TextArea/TextArea.js +1 -1
  326. package/dist/components/TextInput/TextInput.js +1 -1
  327. package/dist/components/TextInput/TextInputBase.js +1 -1
  328. package/dist/components/TextInput/displayed-validation.js +1 -1
  329. package/dist/components/TextInput/identifier-text-services.js +1 -1
  330. package/dist/components/TextInput/password-manager-ignore.js +1 -1
  331. package/dist/components/TextInput/use-auto-size-text-area.js +1 -1
  332. package/dist/components/TextInputMapper/TextInputMapper.js +1 -1
  333. package/dist/components/TextItem/TextItem.js +1 -1
  334. package/dist/components/Title/Title.js +1 -1
  335. package/dist/components/Toast/AnnouncedToastItem.js +1 -1
  336. package/dist/components/Toast/Toast.js +1 -1
  337. package/dist/components/Toast/ToastItem.js +1 -1
  338. package/dist/components/Toast/use-progress-toast.js +1 -1
  339. package/dist/components/Toast/use-toast.js +1 -1
  340. package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
  341. package/dist/components/ToggleGroup/ToggleGroupContext.js +1 -1
  342. package/dist/components/ToggleGroup/ToggleGroupItem.js +1 -1
  343. package/dist/components/Tooltip/Tooltip.js +1 -1
  344. package/dist/components/Tooltip/TooltipContext.js +1 -1
  345. package/dist/components/Tooltip/TooltipProvider.js +1 -1
  346. package/dist/components/Tooltip/TooltipTrigger.js +1 -1
  347. package/dist/components/Tooltip/last-press.js +1 -1
  348. package/dist/components/Tooltip/split-trigger-props.js +1 -1
  349. package/dist/components/Tree/Tree.js +1 -1
  350. package/dist/components/Tree/TreeNode.js +1 -1
  351. package/dist/components/Tree/checked-keys.js +1 -1
  352. package/dist/components/Tree/row-id.js +1 -1
  353. package/dist/components/Tree/styled.js +1 -1
  354. package/dist/components/Tree/tree-index.js +1 -1
  355. package/dist/components/Tree/use-checkbox-tree.js +1 -1
  356. package/dist/components/Tree/use-load-data.js +1 -1
  357. package/dist/components/TriggerActions/TriggerActions.js +1 -1
  358. package/dist/components/Typography/Typography.js +1 -1
  359. package/dist/components/ValidationIndicator/InvalidIcon.js +1 -1
  360. package/dist/components/ValidationIndicator/ValidIcon.js +1 -1
  361. package/dist/components/ValidationIndicator/ValidationIndicator.js +1 -1
  362. package/dist/eslint-plugin/defaults.generated.js +1 -1
  363. package/dist/eslint-plugin/index.js +1 -1
  364. package/dist/eslint-plugin/rules/no-redundant-default-prop.js +1 -1
  365. package/dist/harness/colors-deps.js +1 -1
  366. package/dist/hooks/use-action.js +1 -1
  367. package/dist/hooks/use-auto-tooltip.js +1 -1
  368. package/dist/hooks/use-buffered-value.js +1 -1
  369. package/dist/hooks/use-combined-refs.js +1 -1
  370. package/dist/hooks/use-controlled-focus-visible.js +1 -1
  371. package/dist/hooks/use-debounced-value.js +1 -1
  372. package/dist/hooks/use-deprecation-warning.js +1 -1
  373. package/dist/hooks/use-event.js +1 -1
  374. package/dist/hooks/use-id.js +1 -1
  375. package/dist/hooks/use-is-darwin.js +1 -1
  376. package/dist/hooks/use-is-first-render.js +1 -1
  377. package/dist/hooks/use-key-symbols.js +1 -1
  378. package/dist/hooks/use-layout-effect.d.ts +1 -1
  379. package/dist/hooks/use-layout-effect.js +1 -1
  380. package/dist/hooks/use-local-storage.js +1 -1
  381. package/dist/hooks/use-merge-styles.js +1 -1
  382. package/dist/hooks/use-open-key.js +1 -1
  383. package/dist/hooks/use-overlay-escape-guard.js +1 -1
  384. package/dist/hooks/use-overlay-position.js +1 -1
  385. package/dist/hooks/use-popover-sync.js +1 -1
  386. package/dist/hooks/use-qa-props.js +1 -1
  387. package/dist/hooks/use-scheme.js +1 -1
  388. package/dist/hooks/use-sync-ref.js +1 -1
  389. package/dist/hooks/use-timer/Timer.js +1 -1
  390. package/dist/hooks/use-timer/use-timer.js +1 -1
  391. package/dist/hooks/use-validation-props.js +1 -1
  392. package/dist/hooks/use-viewport-size.js +1 -1
  393. package/dist/hooks/use-warn.js +1 -1
  394. package/dist/i18n/I18nProvider.js +1 -1
  395. package/dist/i18n/add-uikit-locale.js +1 -1
  396. package/dist/i18n/create-formatter.js +1 -1
  397. package/dist/i18n/instance.js +1 -1
  398. package/dist/i18n/locales/de-DE/uikit.js +1 -1
  399. package/dist/i18n/locales/en-US/uikit.js +1 -1
  400. package/dist/i18n/locales/es-ES/uikit.js +1 -1
  401. package/dist/i18n/locales/es-MX/uikit.js +1 -1
  402. package/dist/i18n/locales/fr-FR/uikit.js +1 -1
  403. package/dist/i18n/locales/it-IT/uikit.js +1 -1
  404. package/dist/i18n/locales/ja-JP/uikit.js +1 -1
  405. package/dist/i18n/locales/nb-NO/uikit.js +1 -1
  406. package/dist/i18n/locales/pt-BR/uikit.js +1 -1
  407. package/dist/i18n/locales/pt-PT/uikit.js +1 -1
  408. package/dist/i18n/locales/sv-SE/uikit.js +1 -1
  409. package/dist/i18n/locales/vi-VN/uikit.js +1 -1
  410. package/dist/i18n/locales.js +1 -1
  411. package/dist/i18n/namespace.js +1 -1
  412. package/dist/i18n/use-formatter.js +1 -1
  413. package/dist/i18n/use-i18n.js +1 -1
  414. package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
  415. package/dist/icons/AdjustmentsIcon.js +1 -1
  416. package/dist/icons/AiIcon.js +1 -1
  417. package/dist/icons/AreaChartIcon.js +1 -1
  418. package/dist/icons/ArrowNarrowDownIcon.js +1 -1
  419. package/dist/icons/ArrowNarrowUpIcon.js +1 -1
  420. package/dist/icons/BackwardIcon.js +1 -1
  421. package/dist/icons/BarChartIcon.js +1 -1
  422. package/dist/icons/BellFilledIcon.js +1 -1
  423. package/dist/icons/BellIcon.js +1 -1
  424. package/dist/icons/BooleanIcon.js +1 -1
  425. package/dist/icons/CalendarEditIcon.js +1 -1
  426. package/dist/icons/CalendarIcon.js +1 -1
  427. package/dist/icons/CaretDownIcon.js +1 -1
  428. package/dist/icons/CaretUpIcon.js +1 -1
  429. package/dist/icons/ChartAreaStackedIcon.js +1 -1
  430. package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
  431. package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
  432. package/dist/icons/ChartBarGroupedIcon.js +1 -1
  433. package/dist/icons/ChartBarHorizontalIcon.js +1 -1
  434. package/dist/icons/ChartBarLineIcon.js +1 -1
  435. package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
  436. package/dist/icons/ChartBarStackedIcon.js +1 -1
  437. package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
  438. package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
  439. package/dist/icons/ChartBoxPlot2Icon.js +1 -1
  440. package/dist/icons/ChartBoxPlotIcon.js +1 -1
  441. package/dist/icons/ChartBubbleIcon.js +1 -1
  442. package/dist/icons/ChartDonut2Icon.js +1 -1
  443. package/dist/icons/ChartFunnelIcon.js +1 -1
  444. package/dist/icons/ChartHeatmapIcon.js +1 -1
  445. package/dist/icons/ChartKPIIcon.js +1 -1
  446. package/dist/icons/ChartPie2Icon.js +1 -1
  447. package/dist/icons/ChartScatterIcon.js +1 -1
  448. package/dist/icons/CheckCircleFilledIcon.js +1 -1
  449. package/dist/icons/CheckCircleIcon.js +1 -1
  450. package/dist/icons/CheckIcon.js +1 -1
  451. package/dist/icons/CircleFilledIcon.js +1 -1
  452. package/dist/icons/ClearIcon.js +1 -1
  453. package/dist/icons/CloseCircleFilledIcon.js +1 -1
  454. package/dist/icons/CloseCircleIcon.js +1 -1
  455. package/dist/icons/CloseIcon.js +1 -1
  456. package/dist/icons/CodeIcon.js +1 -1
  457. package/dist/icons/ColumnTotalIcon.js +1 -1
  458. package/dist/icons/CopyIcon.js +1 -1
  459. package/dist/icons/CountIcon.js +1 -1
  460. package/dist/icons/CubeIcon.js +1 -1
  461. package/dist/icons/CubePauseIcon.js +1 -1
  462. package/dist/icons/CubePlayIcon.js +1 -1
  463. package/dist/icons/CurrencyDollarIcon.js +1 -1
  464. package/dist/icons/DangerIcon.js +1 -1
  465. package/dist/icons/DashboardIcon.js +1 -1
  466. package/dist/icons/DatabaseIcon.js +1 -1
  467. package/dist/icons/DecimalDecreaseIcon.js +1 -1
  468. package/dist/icons/DecimalIncreaseIcon.js +1 -1
  469. package/dist/icons/DirectionIcon.js +1 -1
  470. package/dist/icons/DonutIcon.js +1 -1
  471. package/dist/icons/DownIcon.js +1 -1
  472. package/dist/icons/EditIcon.js +1 -1
  473. package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
  474. package/dist/icons/ExclamationCircleIcon.js +1 -1
  475. package/dist/icons/ExclamationIcon.js +1 -1
  476. package/dist/icons/EyeIcon.js +1 -1
  477. package/dist/icons/EyeInvisibleIcon.js +1 -1
  478. package/dist/icons/FilterIcon.js +1 -1
  479. package/dist/icons/FolderFilledIcon.js +1 -1
  480. package/dist/icons/FolderIcon.js +1 -1
  481. package/dist/icons/FolderOpenFilledIcon.js +1 -1
  482. package/dist/icons/FolderOpenIcon.js +1 -1
  483. package/dist/icons/ForwardIcon.js +1 -1
  484. package/dist/icons/GripVerticalIcon.js +1 -1
  485. package/dist/icons/HierarchyIcon.js +1 -1
  486. package/dist/icons/HierarchyOpenIcon.js +1 -1
  487. package/dist/icons/Icon.js +1 -1
  488. package/dist/icons/InfoCircleIcon.js +1 -1
  489. package/dist/icons/InfoIcon.js +1 -1
  490. package/dist/icons/KeyIcon.js +1 -1
  491. package/dist/icons/LeftIcon.js +1 -1
  492. package/dist/icons/LineChartIcon.js +1 -1
  493. package/dist/icons/LoadingIcon.js +1 -1
  494. package/dist/icons/LockFilledIcon.js +1 -1
  495. package/dist/icons/LockIcon.js +1 -1
  496. package/dist/icons/MoreIcon.js +1 -1
  497. package/dist/icons/NotAllowedIcon.js +1 -1
  498. package/dist/icons/Number123Icon.js +1 -1
  499. package/dist/icons/NumberIcon.js +1 -1
  500. package/dist/icons/PauseCircleFilledIcon.js +1 -1
  501. package/dist/icons/PauseCircleIcon.js +1 -1
  502. package/dist/icons/PauseIcon.js +1 -1
  503. package/dist/icons/PercentageIcon.js +1 -1
  504. package/dist/icons/PieChartIcon.js +1 -1
  505. package/dist/icons/PipetteIcon.js +1 -1
  506. package/dist/icons/PlayCircleIcon.js +1 -1
  507. package/dist/icons/PlayIcon.js +1 -1
  508. package/dist/icons/PlusIcon.js +1 -1
  509. package/dist/icons/ProgressBarIcon.js +1 -1
  510. package/dist/icons/ReloadIcon.js +1 -1
  511. package/dist/icons/ReportIcon.js +1 -1
  512. package/dist/icons/ReturnIcon.js +1 -1
  513. package/dist/icons/RightIcon.js +1 -1
  514. package/dist/icons/RowTotalsIcon.js +1 -1
  515. package/dist/icons/SchemeIcon.js +1 -1
  516. package/dist/icons/SearchIcon.js +1 -1
  517. package/dist/icons/SemanticQueryIcon.js +1 -1
  518. package/dist/icons/SettingsIcon.js +1 -1
  519. package/dist/icons/ShieldFilledIcon.js +1 -1
  520. package/dist/icons/ShieldIcon.js +1 -1
  521. package/dist/icons/SlashIcon.js +1 -1
  522. package/dist/icons/SparklesIcon.js +1 -1
  523. package/dist/icons/SqlIcon.js +1 -1
  524. package/dist/icons/StatsIcon.js +1 -1
  525. package/dist/icons/StopIcon.js +1 -1
  526. package/dist/icons/StringIcon.js +1 -1
  527. package/dist/icons/SubtotalsIcon.js +1 -1
  528. package/dist/icons/SwitchIcon.js +1 -1
  529. package/dist/icons/TableIcon.js +1 -1
  530. package/dist/icons/ThumbsDownIcon.js +1 -1
  531. package/dist/icons/ThumbsUpIcon.js +1 -1
  532. package/dist/icons/ThunderboltCrossedIcon.js +1 -1
  533. package/dist/icons/ThunderboltFilledIcon.js +1 -1
  534. package/dist/icons/ThunderboltIcon.js +1 -1
  535. package/dist/icons/TimeIcon.js +1 -1
  536. package/dist/icons/TrashIcon.js +1 -1
  537. package/dist/icons/UnlockIcon.js +1 -1
  538. package/dist/icons/UpIcon.js +1 -1
  539. package/dist/icons/UserGroupIcon.js +1 -1
  540. package/dist/icons/UserIcon.js +1 -1
  541. package/dist/icons/UserLockIcon.js +1 -1
  542. package/dist/icons/ViewIcon.js +1 -1
  543. package/dist/icons/WarningFilledIcon.js +1 -1
  544. package/dist/icons/WarningIcon.js +1 -1
  545. package/dist/icons/wrap-icon.js +1 -1
  546. package/dist/index.js +1 -1
  547. package/dist/probe/canonicalize.js +1 -1
  548. package/dist/probe/css.js +1 -1
  549. package/dist/probe/index.js +1 -1
  550. package/dist/providers/ColorPopoverContext.js +1 -1
  551. package/dist/providers/EventBusProvider.js +1 -1
  552. package/dist/providers/ItemActionContext.js +1 -1
  553. package/dist/providers/Provider.js +1 -1
  554. package/dist/providers/SlotProvider.js +1 -1
  555. package/dist/providers/TrackingProvider.js +1 -1
  556. package/dist/providers/navigation-adapter.default.js +1 -1
  557. package/dist/providers/navigation-url.js +1 -1
  558. package/dist/providers/use-navigation.js +1 -1
  559. package/dist/themes/item-themes.js +1 -1
  560. package/dist/themes/themes.js +1 -1
  561. package/dist/tokens/all-tokens.js +1 -1
  562. package/dist/tokens/base.js +1 -1
  563. package/dist/tokens/color-seed.js +1 -1
  564. package/dist/tokens/color-theme.js +1 -1
  565. package/dist/tokens/colors.js +1 -1
  566. package/dist/tokens/layout.js +1 -1
  567. package/dist/tokens/lazy-styles.js +1 -1
  568. package/dist/tokens/legacy-color.js +1 -1
  569. package/dist/tokens/palette-config.js +1 -1
  570. package/dist/tokens/palette.js +1 -1
  571. package/dist/tokens/resolve.js +1 -1
  572. package/dist/tokens/shadows.js +1 -1
  573. package/dist/tokens/sizes.js +1 -1
  574. package/dist/tokens/spacing.js +1 -1
  575. package/dist/tokens/typography.js +1 -1
  576. package/dist/utils/ResizeSensor.js +1 -1
  577. package/dist/utils/actions-run.js +1 -1
  578. package/dist/utils/chain.js +1 -1
  579. package/dist/utils/color/channels.js +1 -1
  580. package/dist/utils/color/color.js +1 -1
  581. package/dist/utils/colors.js +1 -1
  582. package/dist/utils/component-base-props.js +1 -1
  583. package/dist/utils/disabled-behavior.js +1 -1
  584. package/dist/utils/disabled-props.js +1 -1
  585. package/dist/utils/dotize.js +1 -1
  586. package/dist/utils/field-chrome.js +1 -1
  587. package/dist/utils/field-layout.js +1 -1
  588. package/dist/utils/forward-ref-with-generics.js +1 -1
  589. package/dist/utils/highlight-text.js +1 -1
  590. package/dist/utils/index.js +1 -1
  591. package/dist/utils/interactions.js +1 -1
  592. package/dist/utils/is-dev-env.js +1 -1
  593. package/dist/utils/is-text-only.js +1 -1
  594. package/dist/utils/layout-scale.js +1 -1
  595. package/dist/utils/legacy-tooltip.js +1 -1
  596. package/dist/utils/map-props.js +1 -1
  597. package/dist/utils/merge-props.js +1 -1
  598. package/dist/utils/modules.js +1 -1
  599. package/dist/utils/nullable-value.js +1 -1
  600. package/dist/utils/option-origin-press.js +1 -1
  601. package/dist/utils/overlay-key-propagation.js +1 -1
  602. package/dist/utils/pick-base-customization-props.js +1 -1
  603. package/dist/utils/popover-width.js +1 -1
  604. package/dist/utils/programmatic-focus.js +1 -1
  605. package/dist/utils/promise.js +1 -1
  606. package/dist/utils/raf.js +1 -1
  607. package/dist/utils/random.js +1 -1
  608. package/dist/utils/range.js +1 -1
  609. package/dist/utils/resolve-icon.js +1 -1
  610. package/dist/utils/resolve-validation-props.js +1 -1
  611. package/dist/utils/search-text-services.js +1 -1
  612. package/dist/utils/selection.js +1 -1
  613. package/dist/utils/shared-store.js +1 -1
  614. package/dist/utils/styles.js +1 -1
  615. package/dist/utils/tree.js +1 -1
  616. package/dist/utils/virtual-width.js +1 -1
  617. package/dist/utils/warnings.js +1 -1
  618. package/dist/utils/wrap-node-if-plain.js +1 -1
  619. package/dist/utils/wrap-with-field.js +1 -1
  620. package/dist/version.js +2 -2
  621. package/docs/components/Layout.md +2 -2
  622. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | Cube Dev Team */
2
2
  import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
3
3
  import { Tooltip as _Tooltip } from "../Tooltip/Tooltip.js";
4
4
  import { useTooltipTriggerBinding } from "../Tooltip/TooltipTrigger.js";
@@ -149,7 +149,7 @@ const ResizeHandleElement = tasty({ styles: {
149
149
  } });
150
150
  const HINT_DELAY = 600;
151
151
  function LayoutResizeHandle(props) {
152
- const $ = c(50);
152
+ const $ = c(51);
153
153
  const { side, anchor, hasEdgeLine: t0, label, controls, size, isDragging: t1, minSize, maxSize, valueMax, isCollapsible: t2, moveProps, onJump, onPointerDown: onOwnerPointerDown, onClick, onDoubleClick, hint, onHoverChange, onFocusChange, qa, styles, mods, tokens, "data-element": dataElement } = props;
154
154
  const hasEdgeLine = t0 === void 0 ? false : t0;
155
155
  const isDragging = t1 === void 0 ? false : t1;
@@ -179,10 +179,7 @@ function LayoutResizeHandle(props) {
179
179
  let t5;
180
180
  if ($[2] !== onHoverChange) {
181
181
  t5 = { onHoverChange(isHovering) {
182
- if (!isHovering) {
183
- setIsHintOpen(false);
184
- setIsHintDismissed(false);
185
- }
182
+ if (!isHovering) setIsHintOpen(false);
186
183
  onHoverChange?.(isHovering);
187
184
  } };
188
185
  $[2] = onHoverChange;
@@ -251,6 +248,11 @@ function LayoutResizeHandle(props) {
251
248
  if ($[17] !== t11) {
252
249
  t12 = {
253
250
  isOpen: t11,
251
+ onOpenChange(isOpen) {
252
+ if (isOpen) return;
253
+ setIsHintOpen(false);
254
+ setIsHintDismissed(true);
255
+ },
254
256
  targetRef: hintAnchorRef
255
257
  };
256
258
  $[17] = t11;
@@ -265,62 +267,70 @@ function LayoutResizeHandle(props) {
265
267
  } else t14 = $[20];
266
268
  const { renderTooltip } = useTooltipTriggerBinding(t12, t14);
267
269
  let t15;
268
- if ($[21] !== hint) {
270
+ if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
269
271
  t15 = (event) => {
272
+ if (event.buttons === 0) setIsHintDismissed(false);
273
+ };
274
+ $[21] = t15;
275
+ } else t15 = $[21];
276
+ const onPointerLeave = t15;
277
+ let t16;
278
+ if ($[22] !== hint) {
279
+ t16 = (event_0) => {
270
280
  if (!hint) return;
271
- const rect = event.currentTarget.getBoundingClientRect();
281
+ const rect = event_0.currentTarget.getBoundingClientRect();
272
282
  pointerAtRef.current = {
273
- x: event.clientX - rect.left,
274
- y: event.clientY - rect.top
283
+ x: event_0.clientX - rect.left,
284
+ y: event_0.clientY - rect.top
275
285
  };
276
286
  };
277
- $[21] = hint;
278
- $[22] = t15;
279
- } else t15 = $[22];
280
- const onPointerMove = t15;
281
- let t16;
282
- if ($[23] !== hint || $[24] !== onOwnerPointerDown) {
283
- t16 = (event_0) => {
284
- onOwnerPointerDown?.(event_0);
287
+ $[22] = hint;
288
+ $[23] = t16;
289
+ } else t16 = $[23];
290
+ const onPointerMove = t16;
291
+ let t17;
292
+ if ($[24] !== hint || $[25] !== onOwnerPointerDown) {
293
+ t17 = (event_1) => {
294
+ onOwnerPointerDown?.(event_1);
285
295
  if (!hint) return;
286
296
  setIsHintOpen(false);
287
297
  setIsHintDismissed(true);
288
298
  };
289
- $[23] = hint;
290
- $[24] = onOwnerPointerDown;
291
- $[25] = t16;
292
- } else t16 = $[25];
293
- const onPointerDown = t16;
294
- let t17;
295
- if ($[26] !== maxSize || $[27] !== minSize || $[28] !== onJump) {
296
- t17 = (event_1) => {
297
- const target = event_1.key === "Home" && minSize != null ? "min" : event_1.key === "End" && maxSize != null ? "max" : void 0;
299
+ $[24] = hint;
300
+ $[25] = onOwnerPointerDown;
301
+ $[26] = t17;
302
+ } else t17 = $[26];
303
+ const onPointerDown = t17;
304
+ let t18;
305
+ if ($[27] !== maxSize || $[28] !== minSize || $[29] !== onJump) {
306
+ t18 = (event_2) => {
307
+ const target = event_2.key === "Home" && minSize != null ? "min" : event_2.key === "End" && maxSize != null ? "max" : void 0;
298
308
  if (!target || !onJump) return;
299
- event_1.preventDefault();
309
+ event_2.preventDefault();
300
310
  onJump(target);
301
311
  };
302
- $[26] = maxSize;
303
- $[27] = minSize;
304
- $[28] = onJump;
305
- $[29] = t17;
306
- } else t17 = $[29];
307
- const onKeyDown = t17;
312
+ $[27] = maxSize;
313
+ $[28] = minSize;
314
+ $[29] = onJump;
315
+ $[30] = t18;
316
+ } else t18 = $[30];
317
+ const onKeyDown = t18;
308
318
  const T0 = ResizeHandleElement;
309
- const t18 = `${hintAt.x}px`;
310
- const t19 = `${hintAt.y}px`;
311
- let t20;
312
- if ($[30] !== t18 || $[31] !== t19 || $[32] !== tokens) {
313
- t20 = {
319
+ const t19 = `${hintAt.x}px`;
320
+ const t20 = `${hintAt.y}px`;
321
+ let t21;
322
+ if ($[31] !== t19 || $[32] !== t20 || $[33] !== tokens) {
323
+ t21 = {
314
324
  ...tokens,
315
- "$handle-hint-x": t18,
316
- "$handle-hint-y": t19
325
+ "$handle-hint-x": t19,
326
+ "$handle-hint-y": t20
317
327
  };
318
- $[30] = t18;
319
328
  $[31] = t19;
320
- $[32] = tokens;
321
- $[33] = t20;
322
- } else t20 = $[33];
323
- const t21 = mergeProps$1(hoverProps, focusProps, moveProps, {
329
+ $[32] = t20;
330
+ $[33] = tokens;
331
+ $[34] = t21;
332
+ } else t21 = $[34];
333
+ const t22 = mergeProps$1(hoverProps, focusProps, moveProps, {
324
334
  mods: {
325
335
  side,
326
336
  anchor,
@@ -343,62 +353,64 @@ function LayoutResizeHandle(props) {
343
353
  "aria-valuemax": rangeMax ?? (valueMax == null ? void 0 : Math.max(valueMax, value)),
344
354
  onKeyDown,
345
355
  onPointerDown,
356
+ onPointerLeave,
346
357
  onClick,
347
358
  onDoubleClick
348
359
  });
349
- let t22;
350
360
  let t23;
351
361
  let t24;
352
- if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
353
- t22 = /* @__PURE__ */ jsx("div", { "data-element": "TouchArea" });
354
- t23 = /* @__PURE__ */ jsx("div", { "data-element": "Line" });
355
- t24 = /* @__PURE__ */ jsx("div", { "data-element": "Grip" });
356
- $[34] = t22;
362
+ let t25;
363
+ if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
364
+ t23 = /* @__PURE__ */ jsx("div", { "data-element": "TouchArea" });
365
+ t24 = /* @__PURE__ */ jsx("div", { "data-element": "Line" });
366
+ t25 = /* @__PURE__ */ jsx("div", { "data-element": "Grip" });
357
367
  $[35] = t23;
358
368
  $[36] = t24;
369
+ $[37] = t25;
359
370
  } else {
360
- t22 = $[34];
361
371
  t23 = $[35];
362
372
  t24 = $[36];
373
+ t25 = $[37];
363
374
  }
364
- let t25;
365
- if ($[37] !== hint || $[38] !== renderTooltip || $[39] !== side) {
366
- t25 = hint ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", {
375
+ let t26;
376
+ if ($[38] !== hint || $[39] !== renderTooltip || $[40] !== side) {
377
+ t26 = hint ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", {
367
378
  ref: hintAnchorRef,
368
379
  "data-element": "HintAnchor"
369
380
  }), renderTooltip(getOppositeSide(side))] }) : null;
370
- $[37] = hint;
371
- $[38] = renderTooltip;
372
- $[39] = side;
373
- $[40] = t25;
374
- } else t25 = $[40];
375
- let t26;
376
- if ($[41] !== T0 || $[42] !== dataElement || $[43] !== onPointerMove || $[44] !== qa || $[45] !== styles || $[46] !== t20 || $[47] !== t21 || $[48] !== t25) {
377
- t26 = /* @__PURE__ */ jsxs(T0, {
381
+ $[38] = hint;
382
+ $[39] = renderTooltip;
383
+ $[40] = side;
384
+ $[41] = t26;
385
+ } else t26 = $[41];
386
+ let t27;
387
+ if ($[42] !== T0 || $[43] !== dataElement || $[44] !== onPointerMove || $[45] !== qa || $[46] !== styles || $[47] !== t21 || $[48] !== t22 || $[49] !== t26) {
388
+ t27 = /* @__PURE__ */ jsxs(T0, {
378
389
  qa,
379
390
  "data-element": dataElement,
380
391
  styles,
381
- tokens: t20,
382
- ...t21,
392
+ tokens: t21,
393
+ ...t22,
383
394
  onPointerMove,
395
+ onPointerOver: onPointerMove,
384
396
  children: [
385
- t22,
386
397
  t23,
387
398
  t24,
388
- t25
399
+ t25,
400
+ t26
389
401
  ]
390
402
  });
391
- $[41] = T0;
392
- $[42] = dataElement;
393
- $[43] = onPointerMove;
394
- $[44] = qa;
395
- $[45] = styles;
396
- $[46] = t20;
403
+ $[42] = T0;
404
+ $[43] = dataElement;
405
+ $[44] = onPointerMove;
406
+ $[45] = qa;
407
+ $[46] = styles;
397
408
  $[47] = t21;
398
- $[48] = t25;
409
+ $[48] = t22;
399
410
  $[49] = t26;
400
- } else t26 = $[49];
401
- return t26;
411
+ $[50] = t27;
412
+ } else t27 = $[50];
413
+ return t27;
402
414
  }
403
415
  //#endregion
404
416
  export { LayoutResizeHandle };
@@ -1 +1 @@
1
- {"version":3,"file":"LayoutResizeHandle.js","names":["BasePropsWithoutChildren","Styles","tasty","Tokens","KeyboardEvent","MouseEvent","PointerEvent","useEffect","useEffectEvent","useRef","useState","useFocusRing","useHover","useMove","useDebouncedValue","mergeProps","Tooltip","useTooltipTriggerBinding","getOppositeSide","Side","ResizeHandleElement","styles","position","padding","boxSizing","touchAction","radius","cursor","horizontal","outline","transition","Line","inset","width","height","fill","drag","Grip","hide","transform","inward","TouchArea","HintAnchor","top","left","pointerEvents","Limit","HINT_DELAY","LayoutResizeHandleProps","side","anchor","hasEdgeLine","label","controls","size","isDragging","minSize","maxSize","isCollapsible","valueMax","moveProps","ReturnType","onJump","limit","onPointerDown","event","HTMLElement","onClick","onDoubleClick","hint","onHoverChange","isHovered","onFocusChange","isFocusVisible","qa","mods","tokens","LayoutResizeHandle","props","$","_c","t0","t1","t2","onOwnerPointerDown","dataElement","undefined","isHorizontal","hintAnchorRef","t3","Symbol","for","x","y","pointerAtRef","t4","hintAt","setHintAt","isHintOpen","setIsHintOpen","isHintDismissed","setIsHintDismissed","t5","isHovering","hoverProps","focusProps","localIsHovered","t6","isVisible","notifyFocusChange","t7","t8","isFixed","rangeMax","value","Math","round","max","min","Infinity","t10","t9","timer","setTimeout","current","clearTimeout","t11","t12","isOpen","targetRef","t13","t14","renderTooltip","t15","rect","currentTarget","getBoundingClientRect","clientX","clientY","onPointerMove","t16","event_0","t17","event_1","target","key","preventDefault","onKeyDown","T0","t18","t19","t20","t21","hovered","focused","tabIndex","role","t22","t23","t24","t25","t26","_c","Tooltip","mergeProps"],"sources":["../../../src/components/Layout/LayoutResizeHandle.tsx"],"sourcesContent":["import { BasePropsWithoutChildren, Styles, tasty, Tokens } from '@tenphi/tasty';\nimport {\n KeyboardEvent,\n MouseEvent,\n PointerEvent,\n useEffect,\n useEffectEvent,\n useRef,\n useState,\n} from 'react';\nimport { useFocusRing, useHover, useMove } from 'react-aria';\n\nimport { useDebouncedValue } from '../../hooks/use-debounced-value';\nimport { mergeProps } from '../../utils/merge-props';\nimport { Tooltip } from '../Tooltip/Tooltip';\nimport { useTooltipTriggerBinding } from '../Tooltip/TooltipTrigger';\n\nimport { getOppositeSide } from './utils';\n\nimport type { Side } from './LayoutContext';\n\n/**\n * The resize handle of `Layout.Panel` and `Layout.Pane`.\n *\n * Its owner keeps the handle's box: size, position and transforms, with\n * `$handle-edge-inset` in its styles. Inside that box the handle draws the\n * edge: a hairline at `$handle-edge-inset` from its `anchor` side. While the\n * handle is in use the line widens to both sides of that hairline, or only\n * into the box where it is drawn inside it. The grip and the touch area\n * centre on the hairline. Nothing outside the handle moves.\n */\nconst ResizeHandleElement = tasty({\n styles: {\n position: 'absolute',\n padding: 0,\n boxSizing: 'border-box',\n touchAction: 'none',\n radius: true,\n // At a limit the edge can move one way only, and the cursor says which.\n cursor: {\n '': 'row-resize',\n horizontal: 'col-resize',\n '(limit=min & side=left) | (limit=max & side=right)': 'e-resize',\n '(limit=max & side=left) | (limit=min & side=right)': 'w-resize',\n '(limit=min & side=top) | (limit=max & side=bottom)': 's-resize',\n '(limit=max & side=top) | (limit=min & side=bottom)': 'n-resize',\n },\n // Keyboard focus shows the edge as hover and drag do, with the line in\n // use: a ring round the handle's box, the browser's included, would sit\n // off the line.\n outline: 0,\n transition: 'theme',\n\n // Where the hairline starts, from the anchor side. The owner sets it.\n '$handle-edge-inset': '0px',\n // The line while the handle is in use: a pixel wider than the hairline,\n // half on each side, so it stays centred on it in whole device pixels:\n // 1.5px over a .5px hairline, 2px over a 1px border.\n '$handle-line-size': '(1bw + 1px)',\n\n // The edge. A hairline at rest, where the box has no border of its own to\n // show it; a wider marker line while the handle is in use.\n Line: {\n position: 'absolute',\n inset: {\n '': '0 auto 0 $line-inset',\n 'anchor=right': '0 $line-inset 0 auto',\n 'anchor=top': '$line-inset 0 auto 0',\n 'anchor=bottom': 'auto 0 $line-inset 0',\n },\n // In use, the line widens to both sides of the hairline. Drawn inside\n // the box, it widens into the box only, as an item beyond the box paints\n // over anything past it.\n '$line-inset': {\n '': '$handle-edge-inset',\n '(hovered | drag | focused) & !inward':\n '($handle-edge-inset - ($handle-line-size - 1bw) / 2)',\n },\n width: {\n '': 'auto',\n horizontal: '1bw',\n 'horizontal & (hovered | drag | focused)': '$handle-line-size',\n },\n height: {\n '': '1bw',\n 'hovered | drag | focused': '$handle-line-size',\n horizontal: 'auto',\n },\n fill: {\n '': '#clear',\n 'edge-line': '#border',\n 'hovered | drag | focused': '#purple',\n },\n transition: {\n '': 'theme',\n drag: 'none',\n },\n },\n\n // A capsule on the line where nothing can hover (touch screens), as there\n // is no hover to reveal the edge before a drag.\n Grip: {\n position: 'absolute',\n hide: {\n '': true,\n '@media(hover: none)': false,\n },\n inset: {\n '': '50% auto auto $grip-inset',\n 'anchor=right': '50% $grip-inset auto auto',\n 'anchor=top': '$grip-inset auto auto 50%',\n 'anchor=bottom': 'auto auto $grip-inset 50%',\n },\n transform: {\n '': 'translate(-50%, 0)',\n horizontal: 'translate(0, -50%)',\n },\n width: {\n '': '$grip-length',\n horizontal: '$grip-size',\n },\n height: {\n '': '$grip-size',\n horizontal: '$grip-length',\n },\n radius: 'round',\n fill: {\n '': '#dark-03',\n drag: '#purple',\n },\n // Device pixels, so the capsule stays crisp: its thickness and length,\n // a little larger while dragging.\n '$grip-size': {\n '': '4px',\n drag: '6px',\n },\n '$grip-length': {\n '': '24px',\n drag: '28px',\n },\n // Centred on the hairline, which the line stays centred on as it\n // widens; kept inside the box where the line is drawn inside it, as an\n // item beyond the box paints over anything past it.\n '$grip-inset': {\n '': '($handle-edge-inset + (1bw - $grip-size) / 2)',\n inward: '$handle-edge-inset',\n },\n },\n\n // A finger is less precise than a mouse pointer, so a coarse pointer gets\n // a wider target on the line, without moving the handle.\n TouchArea: {\n position: 'absolute',\n hide: {\n '': true,\n '@media(pointer: coarse)': false,\n },\n inset: {\n '': '0 auto 0 $touch-inset',\n 'anchor=right': '0 $touch-inset 0 auto',\n 'anchor=top': '$touch-inset 0 auto 0',\n 'anchor=bottom': 'auto 0 $touch-inset 0',\n },\n width: {\n '': 'auto',\n horizontal: '$touch-size',\n },\n height: {\n '': '$touch-size',\n horizontal: 'auto',\n },\n // Device pixels: a touch target's size is a physical one.\n '$touch-size': '20px',\n // Centred on the hairline, or inside the box as the grip is.\n '$touch-inset': {\n '': '($handle-edge-inset + (1bw - $touch-size) / 2)',\n inward: '$handle-edge-inset',\n },\n },\n\n // The point the hint points at: where the user pressed the handle, as a\n // tall edge would otherwise centre it far from the pointer.\n HintAnchor: {\n position: 'absolute',\n top: '$handle-hint-y',\n left: '$handle-hint-x',\n width: 0,\n height: 0,\n pointerEvents: 'none',\n },\n },\n});\n\ntype Limit = 'min' | 'max';\n\n// How long a mouse rests on the handle before its hint shows: longer than a\n// tooltip's, as the pointer passes over an edge on its way to drag it.\nconst HINT_DELAY = 600;\n\nexport interface LayoutResizeHandleProps {\n /** The side of the handle the resized box is on. */\n side: Side;\n /**\n * The side of the handle the edge line keeps to; it thickens away from it.\n * The owner's styles set the line's distance from it, `$handle-edge-inset`.\n * Opposite `side`, the line is drawn inside the box, and so are the grip\n * and the touch target.\n */\n anchor: Side;\n /** Draw the edge at rest. Off where the box shows its own border there. */\n hasEdgeLine?: boolean;\n label: string;\n /** The id of the resized element. */\n controls?: string;\n /** The current size in pixels. */\n size: number;\n isDragging?: boolean;\n /** The smallest size in pixels, when it is known. */\n minSize?: number;\n /** The largest size in pixels, when it is known. */\n maxSize?: number;\n /**\n * The box collapses when dragged past its minimum, so the minimum is no\n * limit: the cursor keeps both directions there.\n */\n isCollapsible?: boolean;\n /**\n * The top of the value range where there is no `maxSize`, such as the room\n * the owner measured: a screen reader reads a missing maximum as 100. It\n * bounds only the range, which still holds the size.\n */\n valueMax?: number;\n moveProps: ReturnType<typeof useMove>['moveProps'];\n /** Home and End: resize to the smallest or the largest size. */\n onJump?: (limit: Limit) => void;\n /** A press on the handle, before any move: a mouse button or a finger. */\n onPointerDown?: (event: PointerEvent<HTMLElement>) => void;\n onClick?: (event: MouseEvent<HTMLElement>) => void;\n onDoubleClick?: () => void;\n /**\n * How to use the handle, one gesture per line. Shown beside the pointer,\n * away from `side`, once a mouse rests on the handle, until it presses or\n * leaves.\n */\n hint?: string;\n onHoverChange?: (isHovered: boolean) => void;\n /** Whether the handle has keyboard focus. */\n onFocusChange?: (isFocusVisible: boolean) => void;\n qa?: string;\n /** The handle's box: size, position and transforms. */\n styles?: Styles;\n mods?: BasePropsWithoutChildren['mods'];\n tokens?: Tokens;\n 'data-element'?: string;\n}\n\nexport function LayoutResizeHandle(props: LayoutResizeHandleProps) {\n const {\n side,\n anchor,\n hasEdgeLine = false,\n label,\n controls,\n size,\n isDragging = false,\n minSize,\n maxSize,\n valueMax,\n isCollapsible = false,\n moveProps,\n onJump,\n onPointerDown: onOwnerPointerDown,\n onClick,\n onDoubleClick,\n hint,\n onHoverChange,\n onFocusChange,\n qa,\n styles,\n mods,\n tokens,\n 'data-element': dataElement,\n } = props;\n const isHorizontal = side === 'left' || side === 'right';\n // The hint: shown once a mouse rests on the handle, beside the pointer,\n // until it presses or leaves. Touch has no hover, so it shows none. It is\n // not the handle's description: it names pointer gestures only.\n // Typed as `TooltipTrigger` types its own: filled before the hint can open.\n const hintAnchorRef = useRef<HTMLDivElement>(null!);\n const pointerAtRef = useRef({ x: 0, y: 0 });\n const [hintAt, setHintAt] = useState({ x: 0, y: 0 });\n const [isHintOpen, setIsHintOpen] = useState(false);\n // Pressed since the pointer came: no hint until it leaves.\n const [isHintDismissed, setIsHintDismissed] = useState(false);\n const { hoverProps, isHovered } = useHover({\n onHoverChange(isHovering) {\n if (!isHovering) {\n setIsHintOpen(false);\n setIsHintDismissed(false);\n }\n\n onHoverChange?.(isHovering);\n },\n });\n const { focusProps, isFocusVisible } = useFocusRing();\n const localIsHovered = useDebouncedValue(isHovered, 150);\n\n // Keyboard focus only: a pointer that focuses the handle to drag it does\n // not count.\n const notifyFocusChange = useEffectEvent((isVisible: boolean) =>\n onFocusChange?.(isVisible),\n );\n\n useEffect(() => {\n notifyFocusChange(isFocusVisible);\n }, [isFocusVisible]);\n\n // A box squeezed to no more than its minimum cannot move either way.\n const isFixed = minSize != null && maxSize != null && maxSize <= minSize;\n const rangeMax = isFixed ? minSize : maxSize;\n // The size drawn is held within the limits even while the stored one is\n // not, as CSS clamps it, where the minimum wins.\n const value = Math.round(\n Math.max(minSize ?? 0, Math.min(rangeMax ?? Infinity, size)),\n );\n const limit: Limit | undefined = isFixed\n ? undefined\n : !isCollapsible && minSize != null && value <= minSize\n ? 'min'\n : maxSize != null && value >= maxSize\n ? 'max'\n : undefined;\n\n useEffect(() => {\n if (!hint || !isHovered || isHintDismissed || isDragging) return;\n\n const timer = setTimeout(() => {\n // Where the pointer rests, as a tall edge would otherwise centre the\n // hint far from it.\n setHintAt(pointerAtRef.current);\n setIsHintOpen(true);\n }, HINT_DELAY);\n\n return () => clearTimeout(timer);\n }, [hint, isHovered, isHintDismissed, isDragging]);\n\n const { renderTooltip } = useTooltipTriggerBinding(\n {\n isOpen:\n !!hint && isHintOpen && isHovered && !isHintDismissed && !isDragging,\n targetRef: hintAnchorRef,\n },\n <Tooltip>{hint ?? ''}</Tooltip>,\n );\n\n const onPointerMove = (event: PointerEvent<HTMLElement>) => {\n if (!hint) return;\n\n const rect = event.currentTarget.getBoundingClientRect();\n\n pointerAtRef.current = {\n x: event.clientX - rect.left,\n y: event.clientY - rect.top,\n };\n };\n\n const onPointerDown = (event: PointerEvent<HTMLElement>) => {\n onOwnerPointerDown?.(event);\n\n if (!hint) return;\n\n setIsHintOpen(false);\n setIsHintDismissed(true);\n };\n\n const onKeyDown = (event: KeyboardEvent) => {\n const target: Limit | undefined =\n event.key === 'Home' && minSize != null\n ? 'min'\n : event.key === 'End' && maxSize != null\n ? 'max'\n : undefined;\n\n if (!target || !onJump) return;\n\n event.preventDefault();\n onJump(target);\n };\n\n return (\n <ResizeHandleElement\n qa={qa}\n data-element={dataElement}\n styles={styles}\n tokens={{\n ...tokens,\n '$handle-hint-x': `${hintAt.x}px`,\n '$handle-hint-y': `${hintAt.y}px`,\n }}\n {...mergeProps(\n hoverProps,\n // `mergeProps` chains handlers: `useMove` handles the arrow keys in\n // its own `onKeyDown`, which a plain prop would replace.\n focusProps,\n moveProps,\n {\n mods: {\n side,\n anchor,\n inward: anchor !== side,\n horizontal: isHorizontal,\n drag: isDragging,\n hovered: localIsHovered,\n focused: isFocusVisible,\n 'edge-line': hasEdgeLine,\n limit,\n ...mods,\n },\n tabIndex: 0,\n role: 'separator',\n 'aria-orientation': isHorizontal ? 'vertical' : 'horizontal',\n 'aria-label': label,\n 'aria-controls': controls,\n 'aria-valuenow': value,\n // No box is smaller than nothing.\n 'aria-valuemin': minSize ?? 0,\n 'aria-valuemax':\n rangeMax ??\n (valueMax == null ? undefined : Math.max(valueMax, value)),\n onKeyDown,\n onPointerDown,\n onClick,\n onDoubleClick,\n },\n )}\n // Not merged above: none of those hooks handles it, and it writes a\n // ref, which the compiler reads a merge in render as touching.\n onPointerMove={onPointerMove}\n >\n <div data-element=\"TouchArea\" />\n <div data-element=\"Line\" />\n <div data-element=\"Grip\" />\n {hint ? (\n <>\n <div ref={hintAnchorRef} data-element=\"HintAnchor\" />\n {/* Away from the resized box, over the space it would give up. */}\n {renderTooltip(getOppositeSide(side))}\n </>\n ) : null}\n </ResizeHandleElement>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA+BA,MAAMoB,sBAAsBlB,MAAM,EAChCmB,QAAQ;CACNC,UAAU;CACVC,SAAS;CACTC,WAAW;CACXC,aAAa;CACbC,QAAQ;CAERC,QAAQ;EACN,IAAI;EACJC,YAAY;EACZ,sDAAsD;EACtD,sDAAsD;EACtD,sDAAsD;EACtD,sDAAsD;CACxD;CAIAC,SAAS;CACTC,YAAY;CAGZ,sBAAsB;CAItB,qBAAqB;CAIrBC,MAAM;EACJT,UAAU;EACVU,OAAO;GACL,IAAI;GACJ,gBAAgB;GAChB,cAAc;GACd,iBAAiB;EACnB;EAIA,eAAe;GACb,IAAI;GACJ,wCACE;EACJ;EACAC,OAAO;GACL,IAAI;GACJL,YAAY;GACZ,2CAA2C;EAC7C;EACAM,QAAQ;GACN,IAAI;GACJ,4BAA4B;GAC5BN,YAAY;EACd;EACAO,MAAM;GACJ,IAAI;GACJ,aAAa;GACb,4BAA4B;EAC9B;EACAL,YAAY;GACV,IAAI;GACJM,MAAM;EACR;CACF;CAIAC,MAAM;EACJf,UAAU;EACVgB,MAAM;GACJ,IAAI;GACJ,uBAAuB;EACzB;EACAN,OAAO;GACL,IAAI;GACJ,gBAAgB;GAChB,cAAc;GACd,iBAAiB;EACnB;EACAO,WAAW;GACT,IAAI;GACJX,YAAY;EACd;EACAK,OAAO;GACL,IAAI;GACJL,YAAY;EACd;EACAM,QAAQ;GACN,IAAI;GACJN,YAAY;EACd;EACAF,QAAQ;EACRS,MAAM;GACJ,IAAI;GACJC,MAAM;EACR;EAGA,cAAc;GACZ,IAAI;GACJA,MAAM;EACR;EAC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ayoutResizeHandle.js","names":["BasePropsWithoutChildren","Styles","tasty","Tokens","KeyboardEvent","MouseEvent","PointerEvent","useEffect","useEffectEvent","useRef","useState","useFocusRing","useHover","useMove","useDebouncedValue","mergeProps","Tooltip","useTooltipTriggerBinding","getOppositeSide","Side","ResizeHandleElement","styles","position","padding","boxSizing","touchAction","radius","cursor","horizontal","outline","transition","Line","inset","width","height","fill","drag","Grip","hide","transform","inward","TouchArea","HintAnchor","top","left","pointerEvents","Limit","HINT_DELAY","LayoutResizeHandleProps","side","anchor","hasEdgeLine","label","controls","size","isDragging","minSize","maxSize","isCollapsible","valueMax","moveProps","ReturnType","onJump","limit","onPointerDown","event","HTMLElement","onClick","onDoubleClick","hint","onHoverChange","isHovered","onFocusChange","isFocusVisible","qa","mods","tokens","LayoutResizeHandle","props","$","_c","t0","t1","t2","onOwnerPointerDown","dataElement","undefined","isHorizontal","hintAnchorRef","t3","Symbol","for","x","y","pointerAtRef","t4","hintAt","setHintAt","isHintOpen","setIsHintOpen","isHintDismissed","setIsHintDismissed","t5","isHovering","hoverProps","focusProps","localIsHovered","t6","isVisible","notifyFocusChange","t7","t8","isFixed","rangeMax","value","Math","round","max","min","Infinity","t10","t9","timer","setTimeout","current","clearTimeout","t11","t12","isOpen","onOpenChange","targetRef","t13","t14","renderTooltip","t15","buttons","onPointerLeave","t16","event_0","rect","currentTarget","getBoundingClientRect","clientX","clientY","onPointerMove","t17","event_1","t18","event_2","target","key","preventDefault","onKeyDown","T0","t19","t20","t21","t22","hovered","focused","tabIndex","role","t23","t24","t25","t26","t27","_c","Tooltip","mergeProps"],"sources":["../../../src/components/Layout/LayoutResizeHandle.tsx"],"sourcesContent":["import { BasePropsWithoutChildren, Styles, tasty, Tokens } from '@tenphi/tasty';\nimport {\n KeyboardEvent,\n MouseEvent,\n PointerEvent,\n useEffect,\n useEffectEvent,\n useRef,\n useState,\n} from 'react';\nimport { useFocusRing, useHover, useMove } from 'react-aria';\n\nimport { useDebouncedValue } from '../../hooks/use-debounced-value';\nimport { mergeProps } from '../../utils/merge-props';\nimport { Tooltip } from '../Tooltip/Tooltip';\nimport { useTooltipTriggerBinding } from '../Tooltip/TooltipTrigger';\n\nimport { getOppositeSide } from './utils';\n\nimport type { Side } from './LayoutContext';\n\n/**\n * The resize handle of `Layout.Panel` and `Layout.Pane`.\n *\n * Its owner keeps the handle's box: size, position and transforms, with\n * `$handle-edge-inset` in its styles. Inside that box the handle draws the\n * edge: a hairline at `$handle-edge-inset` from its `anchor` side. While the\n * handle is in use the line widens to both sides of that hairline, or only\n * into the box where it is drawn inside it. The grip and the touch area\n * centre on the hairline. Nothing outside the handle moves.\n */\nconst ResizeHandleElement = tasty({\n styles: {\n position: 'absolute',\n padding: 0,\n boxSizing: 'border-box',\n touchAction: 'none',\n radius: true,\n // At a limit the edge can move one way only, and the cursor says which.\n cursor: {\n '': 'row-resize',\n horizontal: 'col-resize',\n '(limit=min & side=left) | (limit=max & side=right)': 'e-resize',\n '(limit=max & side=left) | (limit=min & side=right)': 'w-resize',\n '(limit=min & side=top) | (limit=max & side=bottom)': 's-resize',\n '(limit=max & side=top) | (limit=min & side=bottom)': 'n-resize',\n },\n // Keyboard focus shows the edge as hover and drag do, with the line in\n // use: a ring round the handle's box, the browser's included, would sit\n // off the line.\n outline: 0,\n transition: 'theme',\n\n // Where the hairline starts, from the anchor side. The owner sets it.\n '$handle-edge-inset': '0px',\n // The line while the handle is in use: a pixel wider than the hairline,\n // half on each side, so it stays centred on it in whole device pixels:\n // 1.5px over a .5px hairline, 2px over a 1px border.\n '$handle-line-size': '(1bw + 1px)',\n\n // The edge. A hairline at rest, where the box has no border of its own to\n // show it; a wider marker line while the handle is in use.\n Line: {\n position: 'absolute',\n inset: {\n '': '0 auto 0 $line-inset',\n 'anchor=right': '0 $line-inset 0 auto',\n 'anchor=top': '$line-inset 0 auto 0',\n 'anchor=bottom': 'auto 0 $line-inset 0',\n },\n // In use, the line widens to both sides of the hairline. Drawn inside\n // the box, it widens into the box only, as an item beyond the box paints\n // over anything past it.\n '$line-inset': {\n '': '$handle-edge-inset',\n '(hovered | drag | focused) & !inward':\n '($handle-edge-inset - ($handle-line-size - 1bw) / 2)',\n },\n width: {\n '': 'auto',\n horizontal: '1bw',\n 'horizontal & (hovered | drag | focused)': '$handle-line-size',\n },\n height: {\n '': '1bw',\n 'hovered | drag | focused': '$handle-line-size',\n horizontal: 'auto',\n },\n fill: {\n '': '#clear',\n 'edge-line': '#border',\n 'hovered | drag | focused': '#purple',\n },\n transition: {\n '': 'theme',\n drag: 'none',\n },\n },\n\n // A capsule on the line where nothing can hover (touch screens), as there\n // is no hover to reveal the edge before a drag.\n Grip: {\n position: 'absolute',\n hide: {\n '': true,\n '@media(hover: none)': false,\n },\n inset: {\n '': '50% auto auto $grip-inset',\n 'anchor=right': '50% $grip-inset auto auto',\n 'anchor=top': '$grip-inset auto auto 50%',\n 'anchor=bottom': 'auto auto $grip-inset 50%',\n },\n transform: {\n '': 'translate(-50%, 0)',\n horizontal: 'translate(0, -50%)',\n },\n width: {\n '': '$grip-length',\n horizontal: '$grip-size',\n },\n height: {\n '': '$grip-size',\n horizontal: '$grip-length',\n },\n radius: 'round',\n fill: {\n '': '#dark-03',\n drag: '#purple',\n },\n // Device pixels, so the capsule stays crisp: its thickness and length,\n // a little larger while dragging.\n '$grip-size': {\n '': '4px',\n drag: '6px',\n },\n '$grip-length': {\n '': '24px',\n drag: '28px',\n },\n // Centred on the hairline, which the line stays centred on as it\n // widens; kept inside the box where the line is drawn inside it, as an\n // item beyond the box paints over anything past it.\n '$grip-inset': {\n '': '($handle-edge-inset + (1bw - $grip-size) / 2)',\n inward: '$handle-edge-inset',\n },\n },\n\n // A finger is less precise than a mouse pointer, so a coarse pointer gets\n // a wider target on the line, without moving the handle.\n TouchArea: {\n position: 'absolute',\n hide: {\n '': true,\n '@media(pointer: coarse)': false,\n },\n inset: {\n '': '0 auto 0 $touch-inset',\n 'anchor=right': '0 $touch-inset 0 auto',\n 'anchor=top': '$touch-inset 0 auto 0',\n 'anchor=bottom': 'auto 0 $touch-inset 0',\n },\n width: {\n '': 'auto',\n horizontal: '$touch-size',\n },\n height: {\n '': '$touch-size',\n horizontal: 'auto',\n },\n // Device pixels: a touch target's size is a physical one.\n '$touch-size': '20px',\n // Centred on the hairline, or inside the box as the grip is.\n '$touch-inset': {\n '': '($handle-edge-inset + (1bw - $touch-size) / 2)',\n inward: '$handle-edge-inset',\n },\n },\n\n // The point the hint points at: where the pointer rests on the handle, as\n // a tall edge would otherwise centre it far from the pointer.\n HintAnchor: {\n position: 'absolute',\n top: '$handle-hint-y',\n left: '$handle-hint-x',\n width: 0,\n height: 0,\n pointerEvents: 'none',\n },\n },\n});\n\ntype Limit = 'min' | 'max';\n\n// How long a mouse rests on the handle before its hint shows: longer than a\n// tooltip's, as the pointer passes over an edge on its way to drag it.\nconst HINT_DELAY = 600;\n\nexport interface LayoutResizeHandleProps {\n /** The side of the handle the resized box is on. */\n side: Side;\n /**\n * The side of the handle the edge line keeps to; it thickens away from it.\n * The owner's styles set the line's distance from it, `$handle-edge-inset`.\n * Opposite `side`, the line is drawn inside the box, and so are the grip\n * and the touch target.\n */\n anchor: Side;\n /** Draw the edge at rest. Off where the box shows its own border there. */\n hasEdgeLine?: boolean;\n label: string;\n /** The id of the resized element. */\n controls?: string;\n /** The current size in pixels. */\n size: number;\n isDragging?: boolean;\n /** The smallest size in pixels, when it is known. */\n minSize?: number;\n /** The largest size in pixels, when it is known. */\n maxSize?: number;\n /**\n * The box collapses when dragged past its minimum, so the minimum is no\n * limit: the cursor keeps both directions there.\n */\n isCollapsible?: boolean;\n /**\n * The top of the value range where there is no `maxSize`, such as the room\n * the owner measured: a screen reader reads a missing maximum as 100. It\n * bounds only the range, which still holds the size.\n */\n valueMax?: number;\n moveProps: ReturnType<typeof useMove>['moveProps'];\n /** Home and End: resize to the smallest or the largest size. */\n onJump?: (limit: Limit) => void;\n /** A press on the handle, before any move: a mouse button or a finger. */\n onPointerDown?: (event: PointerEvent<HTMLElement>) => void;\n onClick?: (event: MouseEvent<HTMLElement>) => void;\n onDoubleClick?: () => void;\n /**\n * How to use the handle, one gesture per line. Shown beside the pointer,\n * away from `side`, once a mouse rests on the handle, until it presses or\n * leaves.\n */\n hint?: string;\n onHoverChange?: (isHovered: boolean) => void;\n /** Whether the handle has keyboard focus. */\n onFocusChange?: (isFocusVisible: boolean) => void;\n qa?: string;\n /** The handle's box: size, position and transforms. */\n styles?: Styles;\n mods?: BasePropsWithoutChildren['mods'];\n tokens?: Tokens;\n 'data-element'?: string;\n}\n\nexport function LayoutResizeHandle(props: LayoutResizeHandleProps) {\n const {\n side,\n anchor,\n hasEdgeLine = false,\n label,\n controls,\n size,\n isDragging = false,\n minSize,\n maxSize,\n valueMax,\n isCollapsible = false,\n moveProps,\n onJump,\n onPointerDown: onOwnerPointerDown,\n onClick,\n onDoubleClick,\n hint,\n onHoverChange,\n onFocusChange,\n qa,\n styles,\n mods,\n tokens,\n 'data-element': dataElement,\n } = props;\n const isHorizontal = side === 'left' || side === 'right';\n // The hint: shown once a mouse rests on the handle, beside the pointer,\n // until it presses or leaves. Touch has no hover, so it shows none. It is\n // not the handle's description: it names pointer gestures only.\n // Typed as `TooltipTrigger` types its own: filled before the hint can open.\n const hintAnchorRef = useRef<HTMLDivElement>(null!);\n const pointerAtRef = useRef({ x: 0, y: 0 });\n const [hintAt, setHintAt] = useState({ x: 0, y: 0 });\n const [isHintOpen, setIsHintOpen] = useState(false);\n // Pressed, or dismissed with Escape, since the pointer came: no hint until\n // it leaves with no button down. A drag leaves with the button down, as\n // a fast one leaves the handle before it catches up with the pointer.\n const [isHintDismissed, setIsHintDismissed] = useState(false);\n const { hoverProps, isHovered } = useHover({\n onHoverChange(isHovering) {\n if (!isHovering) setIsHintOpen(false);\n\n onHoverChange?.(isHovering);\n },\n });\n const { focusProps, isFocusVisible } = useFocusRing();\n const localIsHovered = useDebouncedValue(isHovered, 150);\n\n // Keyboard focus only: a pointer that focuses the handle to drag it does\n // not count.\n const notifyFocusChange = useEffectEvent((isVisible: boolean) =>\n onFocusChange?.(isVisible),\n );\n\n useEffect(() => {\n notifyFocusChange(isFocusVisible);\n }, [isFocusVisible]);\n\n // A box squeezed to no more than its minimum cannot move either way.\n const isFixed = minSize != null && maxSize != null && maxSize <= minSize;\n const rangeMax = isFixed ? minSize : maxSize;\n // The size drawn is held within the limits even while the stored one is\n // not, as CSS clamps it, where the minimum wins.\n const value = Math.round(\n Math.max(minSize ?? 0, Math.min(rangeMax ?? Infinity, size)),\n );\n const limit: Limit | undefined = isFixed\n ? undefined\n : !isCollapsible && minSize != null && value <= minSize\n ? 'min'\n : maxSize != null && value >= maxSize\n ? 'max'\n : undefined;\n\n useEffect(() => {\n if (!hint || !isHovered || isHintDismissed || isDragging) return;\n\n const timer = setTimeout(() => {\n // Where the pointer rests, as a tall edge would otherwise centre the\n // hint far from it.\n setHintAt(pointerAtRef.current);\n setIsHintOpen(true);\n }, HINT_DELAY);\n\n return () => clearTimeout(timer);\n }, [hint, isHovered, isHintDismissed, isDragging]);\n\n const { renderTooltip } = useTooltipTriggerBinding(\n {\n isOpen:\n !!hint && isHintOpen && isHovered && !isHintDismissed && !isDragging,\n // Escape closes an open tooltip: the hint goes until the pointer comes\n // again, or it would take every Escape on the page while it shows.\n onOpenChange(isOpen) {\n if (isOpen) return;\n\n setIsHintOpen(false);\n setIsHintDismissed(true);\n },\n targetRef: hintAnchorRef,\n },\n <Tooltip>{hint ?? ''}</Tooltip>,\n );\n\n const onPointerLeave = (event: PointerEvent<HTMLElement>) => {\n if (event.buttons === 0) setIsHintDismissed(false);\n };\n\n const onPointerMove = (event: PointerEvent<HTMLElement>) => {\n if (!hint) return;\n\n const rect = event.currentTarget.getBoundingClientRect();\n\n pointerAtRef.current = {\n x: event.clientX - rect.left,\n y: event.clientY - rect.top,\n };\n };\n\n const onPointerDown = (event: PointerEvent<HTMLElement>) => {\n onOwnerPointerDown?.(event);\n\n if (!hint) return;\n\n setIsHintOpen(false);\n setIsHintDismissed(true);\n };\n\n const onKeyDown = (event: KeyboardEvent) => {\n const target: Limit | undefined =\n event.key === 'Home' && minSize != null\n ? 'min'\n : event.key === 'End' && maxSize != null\n ? 'max'\n : undefined;\n\n if (!target || !onJump) return;\n\n event.preventDefault();\n onJump(target);\n };\n\n return (\n <ResizeHandleElement\n qa={qa}\n data-element={dataElement}\n styles={styles}\n tokens={{\n ...tokens,\n '$handle-hint-x': `${hintAt.x}px`,\n '$handle-hint-y': `${hintAt.y}px`,\n }}\n {...mergeProps(\n hoverProps,\n // `mergeProps` chains handlers: `useMove` handles the arrow keys in\n // its own `onKeyDown`, which a plain prop would replace.\n focusProps,\n moveProps,\n {\n mods: {\n side,\n anchor,\n inward: anchor !== side,\n horizontal: isHorizontal,\n drag: isDragging,\n hovered: localIsHovered,\n focused: isFocusVisible,\n 'edge-line': hasEdgeLine,\n limit,\n ...mods,\n },\n tabIndex: 0,\n role: 'separator',\n 'aria-orientation': isHorizontal ? 'vertical' : 'horizontal',\n 'aria-label': label,\n 'aria-controls': controls,\n 'aria-valuenow': value,\n // No box is smaller than nothing.\n 'aria-valuemin': minSize ?? 0,\n 'aria-valuemax':\n rangeMax ??\n (valueMax == null ? undefined : Math.max(valueMax, value)),\n onKeyDown,\n onPointerDown,\n onPointerLeave,\n onClick,\n onDoubleClick,\n },\n )}\n // Not merged above: none of those hooks handles it, and it writes a\n // ref, which the compiler reads a merge in render as touching.\n onPointerMove={onPointerMove}\n // Also when the handle moves under a resting pointer, as a keyboard\n // resize does: the pointer is then over it with no move of its own.\n onPointerOver={onPointerMove}\n >\n <div data-element=\"TouchArea\" />\n <div data-element=\"Line\" />\n <div data-element=\"Grip\" />\n {hint ? (\n <>\n <div ref={hintAnchorRef} data-element=\"HintAnchor\" />\n {/* Away from the resized box, over the space it would give up. */}\n {renderTooltip(getOppositeSide(side))}\n </>\n ) : null}\n </ResizeHandleElement>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA+BA,MAAMo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BuF;AA+DsB"}
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | Cube Dev Team */
2
2
  import { LayoutContent as _LayoutContent } from "./LayoutContent.js";
3
3
  import { c } from "react/compiler-runtime";
4
4
  import { tasty } from "@tenphi/tasty";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | Cube Dev Team */
2
2
  import "./LayoutContext.js";
3
3
  import { Layout as _Layout } from "./Layout.js";
4
4
  import { LayoutContent as _LayoutContent } from "./LayoutContent.js";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | Cube Dev Team */
2
2
  import { c } from "react/compiler-runtime";
3
3
  import { useEffect, useRef, useState } from "react";
4
4
  //#region src/components/Layout/use-tiny-scrollbar.ts
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | Cube Dev Team */
2
2
  //#region src/components/Layout/utils.ts
3
3
  /**
4
4
  * Clamps a size value within min/max constraints.
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | Cube Dev Team */
2
2
  import { Button } from "../Button/Button.js";
3
3
  import { c } from "react/compiler-runtime";
4
4
  import { forwardRef } from "react";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | Cube Dev Team */
2
2
  import { DraggableCollection } from "../DraggableCollection/DraggableCollection.js";
3
3
  import { c } from "react/compiler-runtime";
4
4
  import { jsx } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | Cube Dev Team */
2
2
  import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
3
3
  import { useCombinedRefs } from "../../hooks/use-combined-refs.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-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | Cube Dev Team */
2
2
  //#region src/components/ListBox/empty-row.ts
3
3
  /**
4
4
  * The empty row of ListBox and FilterTree. Its label wraps, unlike an `Item`'s
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | 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-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | 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-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | 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-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | 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-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | 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-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | 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-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | 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-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | 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";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | 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,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | 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-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | 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-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | 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-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | 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-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | 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-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | 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-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | 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-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | 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";
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | 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-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | 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-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | 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-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | 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-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | 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-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | 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-ef6b29c | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | 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";