@cube-dev/ui-kit 0.0.0-canary-6467610 → 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 (623) 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 +2 -2
  164. package/dist/components/Layout/LayoutPanel.d.ts +14 -0
  165. package/dist/components/Layout/LayoutPanel.js +123 -27
  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 +258 -152
  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 +5 -2
  399. package/dist/i18n/locales/en-US/uikit.js +5 -2
  400. package/dist/i18n/locales/en-US/uikit.json.d.ts +3 -0
  401. package/dist/i18n/locales/es-ES/uikit.js +5 -2
  402. package/dist/i18n/locales/es-MX/uikit.js +5 -2
  403. package/dist/i18n/locales/fr-FR/uikit.js +5 -2
  404. package/dist/i18n/locales/it-IT/uikit.js +5 -2
  405. package/dist/i18n/locales/ja-JP/uikit.js +5 -2
  406. package/dist/i18n/locales/nb-NO/uikit.js +5 -2
  407. package/dist/i18n/locales/pt-BR/uikit.js +5 -2
  408. package/dist/i18n/locales/pt-PT/uikit.js +5 -2
  409. package/dist/i18n/locales/sv-SE/uikit.js +5 -2
  410. package/dist/i18n/locales/vi-VN/uikit.js +5 -2
  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/components/Layout.md +41 -1
  623. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-6467610 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9a11fa8 | Cube Dev Team */
2
2
  import { LayoutPanelTransitionContext, useLayoutRefsContext } from "./LayoutContext.js";
3
3
  import { c } from "react/compiler-runtime";
4
4
  import { useContext, useLayoutEffect, useState } from "react";
@@ -1,10 +1,13 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-6467610 | 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
+ import { Tooltip as _Tooltip } from "../Tooltip/Tooltip.js";
4
+ import { useTooltipTriggerBinding } from "../Tooltip/TooltipTrigger.js";
3
5
  import { useDebouncedValue } from "../../hooks/use-debounced-value.js";
6
+ import { getOppositeSide } from "./utils.js";
4
7
  import { c } from "react/compiler-runtime";
5
8
  import { tasty } from "@tenphi/tasty";
6
- import { useEffect, useEffectEvent } from "react";
7
- import { jsx, jsxs } from "react/jsx-runtime";
9
+ import { useEffect, useEffectEvent, useRef, useState } from "react";
10
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
11
  import { useFocusRing, useHover } from "react-aria";
9
12
  //#region src/components/Layout/LayoutResizeHandle.tsx
10
13
  /**
@@ -134,177 +137,280 @@ const ResizeHandleElement = tasty({ styles: {
134
137
  "": "($handle-edge-inset + (1bw - $touch-size) / 2)",
135
138
  inward: "$handle-edge-inset"
136
139
  }
140
+ },
141
+ HintAnchor: {
142
+ position: "absolute",
143
+ top: "$handle-hint-y",
144
+ left: "$handle-hint-x",
145
+ width: 0,
146
+ height: 0,
147
+ pointerEvents: "none"
137
148
  }
138
149
  } });
150
+ const HINT_DELAY = 600;
139
151
  function LayoutResizeHandle(props) {
140
- const $ = c(54);
141
- const { side, anchor, hasEdgeLine: t0, label, controls, size, isDragging: t1, minSize, maxSize, valueMax, moveProps, onJump, onDoubleClick, onHoverChange, onFocusChange, qa, styles, mods, tokens, "data-element": dataElement } = props;
152
+ const $ = c(51);
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;
142
154
  const hasEdgeLine = t0 === void 0 ? false : t0;
143
155
  const isDragging = t1 === void 0 ? false : t1;
156
+ const isCollapsible = t2 === void 0 ? false : t2;
144
157
  const isHorizontal = side === "left" || side === "right";
145
- let t2;
146
- if ($[0] !== onHoverChange) {
147
- t2 = { onHoverChange };
148
- $[0] = onHoverChange;
149
- $[1] = t2;
150
- } else t2 = $[1];
151
- const { hoverProps, isHovered } = useHover(t2);
152
- const { focusProps, isFocusVisible } = useFocusRing();
153
- const localIsHovered = useDebouncedValue(isHovered, 150);
158
+ const hintAnchorRef = useRef(null);
154
159
  let t3;
155
- if ($[2] !== onFocusChange) {
156
- t3 = (isVisible) => onFocusChange?.(isVisible);
157
- $[2] = onFocusChange;
158
- $[3] = t3;
159
- } else t3 = $[3];
160
- const notifyFocusChange = useEffectEvent(t3);
160
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
161
+ t3 = {
162
+ x: 0,
163
+ y: 0
164
+ };
165
+ $[0] = t3;
166
+ } else t3 = $[0];
167
+ const pointerAtRef = useRef(t3);
161
168
  let t4;
162
- if ($[4] !== isFocusVisible || $[5] !== notifyFocusChange) {
163
- t4 = () => {
164
- notifyFocusChange(isFocusVisible);
169
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
170
+ t4 = {
171
+ x: 0,
172
+ y: 0
165
173
  };
166
- $[4] = isFocusVisible;
167
- $[5] = notifyFocusChange;
168
- $[6] = t4;
169
- } else t4 = $[6];
174
+ $[1] = t4;
175
+ } else t4 = $[1];
176
+ const [hintAt, setHintAt] = useState(t4);
177
+ const [isHintOpen, setIsHintOpen] = useState(false);
178
+ const [isHintDismissed, setIsHintDismissed] = useState(false);
170
179
  let t5;
171
- if ($[7] !== isFocusVisible) {
172
- t5 = [isFocusVisible];
173
- $[7] = isFocusVisible;
174
- $[8] = t5;
175
- } else t5 = $[8];
176
- useEffect(t4, t5);
177
- const isFixed = minSize != null && maxSize != null && maxSize <= minSize;
178
- const rangeMax = isFixed ? minSize : maxSize;
179
- let T0;
180
- let t10;
180
+ if ($[2] !== onHoverChange) {
181
+ t5 = { onHoverChange(isHovering) {
182
+ if (!isHovering) setIsHintOpen(false);
183
+ onHoverChange?.(isHovering);
184
+ } };
185
+ $[2] = onHoverChange;
186
+ $[3] = t5;
187
+ } else t5 = $[3];
188
+ const { hoverProps, isHovered } = useHover(t5);
189
+ const { focusProps, isFocusVisible } = useFocusRing();
190
+ const localIsHovered = useDebouncedValue(isHovered, 150);
181
191
  let t6;
192
+ if ($[4] !== onFocusChange) {
193
+ t6 = (isVisible) => onFocusChange?.(isVisible);
194
+ $[4] = onFocusChange;
195
+ $[5] = t6;
196
+ } else t6 = $[5];
197
+ const notifyFocusChange = useEffectEvent(t6);
182
198
  let t7;
199
+ if ($[6] !== isFocusVisible || $[7] !== notifyFocusChange) {
200
+ t7 = () => {
201
+ notifyFocusChange(isFocusVisible);
202
+ };
203
+ $[6] = isFocusVisible;
204
+ $[7] = notifyFocusChange;
205
+ $[8] = t7;
206
+ } else t7 = $[8];
183
207
  let t8;
208
+ if ($[9] !== isFocusVisible) {
209
+ t8 = [isFocusVisible];
210
+ $[9] = isFocusVisible;
211
+ $[10] = t8;
212
+ } else t8 = $[10];
213
+ useEffect(t7, t8);
214
+ const isFixed = minSize != null && maxSize != null && maxSize <= minSize;
215
+ const rangeMax = isFixed ? minSize : maxSize;
216
+ const value = Math.round(Math.max(minSize ?? 0, Math.min(rangeMax ?? Infinity, size)));
217
+ const limit = isFixed ? void 0 : !isCollapsible && minSize != null && value <= minSize ? "min" : maxSize != null && value >= maxSize ? "max" : void 0;
218
+ let t10;
184
219
  let t9;
185
- if ($[9] !== anchor || $[10] !== controls || $[11] !== dataElement || $[12] !== focusProps || $[13] !== hasEdgeLine || $[14] !== hoverProps || $[15] !== isDragging || $[16] !== isFixed || $[17] !== isFocusVisible || $[18] !== isHorizontal || $[19] !== label || $[20] !== localIsHovered || $[21] !== maxSize || $[22] !== minSize || $[23] !== mods || $[24] !== moveProps || $[25] !== onDoubleClick || $[26] !== onJump || $[27] !== qa || $[28] !== rangeMax || $[29] !== side || $[30] !== size || $[31] !== styles || $[32] !== tokens || $[33] !== valueMax) {
186
- const value = Math.round(Math.max(minSize ?? 0, Math.min(rangeMax ?? Infinity, size)));
187
- const limit = isFixed ? void 0 : minSize != null && value <= minSize ? "min" : maxSize != null && value >= maxSize ? "max" : void 0;
188
- let t11;
189
- if ($[40] !== maxSize || $[41] !== minSize || $[42] !== onJump) {
190
- t11 = (event) => {
191
- const target = event.key === "Home" && minSize != null ? "min" : event.key === "End" && maxSize != null ? "max" : void 0;
192
- if (!target || !onJump) return;
193
- event.preventDefault();
194
- onJump(target);
195
- };
196
- $[40] = maxSize;
197
- $[41] = minSize;
198
- $[42] = onJump;
199
- $[43] = t11;
200
- } else t11 = $[43];
201
- const onKeyDown = t11;
202
- T0 = ResizeHandleElement;
203
- t6 = qa;
204
- t7 = dataElement;
205
- t8 = styles;
206
- t9 = tokens;
207
- t10 = mergeProps$1(hoverProps, focusProps, moveProps, {
208
- mods: {
209
- side,
210
- anchor,
211
- inward: anchor !== side,
212
- horizontal: isHorizontal,
213
- drag: isDragging,
214
- hovered: localIsHovered,
215
- focused: isFocusVisible,
216
- "edge-line": hasEdgeLine,
217
- limit,
218
- ...mods
219
- },
220
- tabIndex: 0,
221
- role: "separator",
222
- "aria-orientation": isHorizontal ? "vertical" : "horizontal",
223
- "aria-label": label,
224
- "aria-controls": controls,
225
- "aria-valuenow": value,
226
- "aria-valuemin": minSize ?? 0,
227
- "aria-valuemax": rangeMax ?? (valueMax == null ? void 0 : Math.max(valueMax, value)),
228
- onKeyDown,
229
- onDoubleClick
230
- });
231
- $[9] = anchor;
232
- $[10] = controls;
233
- $[11] = dataElement;
234
- $[12] = focusProps;
235
- $[13] = hasEdgeLine;
236
- $[14] = hoverProps;
237
- $[15] = isDragging;
238
- $[16] = isFixed;
239
- $[17] = isFocusVisible;
240
- $[18] = isHorizontal;
241
- $[19] = label;
242
- $[20] = localIsHovered;
243
- $[21] = maxSize;
244
- $[22] = minSize;
245
- $[23] = mods;
246
- $[24] = moveProps;
247
- $[25] = onDoubleClick;
248
- $[26] = onJump;
249
- $[27] = qa;
250
- $[28] = rangeMax;
251
- $[29] = side;
252
- $[30] = size;
253
- $[31] = styles;
254
- $[32] = tokens;
255
- $[33] = valueMax;
256
- $[34] = T0;
257
- $[35] = t10;
258
- $[36] = t6;
259
- $[37] = t7;
260
- $[38] = t8;
261
- $[39] = t9;
220
+ if ($[11] !== hint || $[12] !== isDragging || $[13] !== isHintDismissed || $[14] !== isHovered) {
221
+ t9 = () => {
222
+ if (!hint || !isHovered || isHintDismissed || isDragging) return;
223
+ const timer = setTimeout(() => {
224
+ setHintAt(pointerAtRef.current);
225
+ setIsHintOpen(true);
226
+ }, HINT_DELAY);
227
+ return () => clearTimeout(timer);
228
+ };
229
+ t10 = [
230
+ hint,
231
+ isHovered,
232
+ isHintDismissed,
233
+ isDragging
234
+ ];
235
+ $[11] = hint;
236
+ $[12] = isDragging;
237
+ $[13] = isHintDismissed;
238
+ $[14] = isHovered;
239
+ $[15] = t10;
240
+ $[16] = t9;
262
241
  } else {
263
- T0 = $[34];
264
- t10 = $[35];
265
- t6 = $[36];
266
- t7 = $[37];
267
- t8 = $[38];
268
- t9 = $[39];
242
+ t10 = $[15];
243
+ t9 = $[16];
269
244
  }
270
- let t11;
245
+ useEffect(t9, t10);
246
+ const t11 = !!hint && isHintOpen && isHovered && !isHintDismissed && !isDragging;
271
247
  let t12;
272
- let t13;
273
- if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
274
- t11 = /* @__PURE__ */ jsx("div", { "data-element": "TouchArea" });
275
- t12 = /* @__PURE__ */ jsx("div", { "data-element": "Line" });
276
- t13 = /* @__PURE__ */ jsx("div", { "data-element": "Grip" });
277
- $[44] = t11;
278
- $[45] = t12;
279
- $[46] = t13;
248
+ if ($[17] !== t11) {
249
+ t12 = {
250
+ isOpen: t11,
251
+ onOpenChange(isOpen) {
252
+ if (isOpen) return;
253
+ setIsHintOpen(false);
254
+ setIsHintDismissed(true);
255
+ },
256
+ targetRef: hintAnchorRef
257
+ };
258
+ $[17] = t11;
259
+ $[18] = t12;
260
+ } else t12 = $[18];
261
+ const t13 = hint ?? "";
262
+ let t14;
263
+ if ($[19] !== t13) {
264
+ t14 = /* @__PURE__ */ jsx(_Tooltip, { children: t13 });
265
+ $[19] = t13;
266
+ $[20] = t14;
267
+ } else t14 = $[20];
268
+ const { renderTooltip } = useTooltipTriggerBinding(t12, t14);
269
+ let t15;
270
+ if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
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) => {
280
+ if (!hint) return;
281
+ const rect = event_0.currentTarget.getBoundingClientRect();
282
+ pointerAtRef.current = {
283
+ x: event_0.clientX - rect.left,
284
+ y: event_0.clientY - rect.top
285
+ };
286
+ };
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);
295
+ if (!hint) return;
296
+ setIsHintOpen(false);
297
+ setIsHintDismissed(true);
298
+ };
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;
308
+ if (!target || !onJump) return;
309
+ event_2.preventDefault();
310
+ onJump(target);
311
+ };
312
+ $[27] = maxSize;
313
+ $[28] = minSize;
314
+ $[29] = onJump;
315
+ $[30] = t18;
316
+ } else t18 = $[30];
317
+ const onKeyDown = t18;
318
+ const T0 = ResizeHandleElement;
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 = {
324
+ ...tokens,
325
+ "$handle-hint-x": t19,
326
+ "$handle-hint-y": t20
327
+ };
328
+ $[31] = t19;
329
+ $[32] = t20;
330
+ $[33] = tokens;
331
+ $[34] = t21;
332
+ } else t21 = $[34];
333
+ const t22 = mergeProps$1(hoverProps, focusProps, moveProps, {
334
+ mods: {
335
+ side,
336
+ anchor,
337
+ inward: anchor !== side,
338
+ horizontal: isHorizontal,
339
+ drag: isDragging,
340
+ hovered: localIsHovered,
341
+ focused: isFocusVisible,
342
+ "edge-line": hasEdgeLine,
343
+ limit,
344
+ ...mods
345
+ },
346
+ tabIndex: 0,
347
+ role: "separator",
348
+ "aria-orientation": isHorizontal ? "vertical" : "horizontal",
349
+ "aria-label": label,
350
+ "aria-controls": controls,
351
+ "aria-valuenow": value,
352
+ "aria-valuemin": minSize ?? 0,
353
+ "aria-valuemax": rangeMax ?? (valueMax == null ? void 0 : Math.max(valueMax, value)),
354
+ onKeyDown,
355
+ onPointerDown,
356
+ onPointerLeave,
357
+ onClick,
358
+ onDoubleClick
359
+ });
360
+ let t23;
361
+ let t24;
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" });
367
+ $[35] = t23;
368
+ $[36] = t24;
369
+ $[37] = t25;
280
370
  } else {
281
- t11 = $[44];
282
- t12 = $[45];
283
- t13 = $[46];
371
+ t23 = $[35];
372
+ t24 = $[36];
373
+ t25 = $[37];
284
374
  }
285
- let t14;
286
- if ($[47] !== T0 || $[48] !== t10 || $[49] !== t6 || $[50] !== t7 || $[51] !== t8 || $[52] !== t9) {
287
- t14 = /* @__PURE__ */ jsxs(T0, {
288
- qa: t6,
289
- "data-element": t7,
290
- styles: t8,
291
- tokens: t9,
292
- ...t10,
375
+ let t26;
376
+ if ($[38] !== hint || $[39] !== renderTooltip || $[40] !== side) {
377
+ t26 = hint ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", {
378
+ ref: hintAnchorRef,
379
+ "data-element": "HintAnchor"
380
+ }), renderTooltip(getOppositeSide(side))] }) : null;
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, {
389
+ qa,
390
+ "data-element": dataElement,
391
+ styles,
392
+ tokens: t21,
393
+ ...t22,
394
+ onPointerMove,
395
+ onPointerOver: onPointerMove,
293
396
  children: [
294
- t11,
295
- t12,
296
- t13
397
+ t23,
398
+ t24,
399
+ t25,
400
+ t26
297
401
  ]
298
402
  });
299
- $[47] = T0;
300
- $[48] = t10;
301
- $[49] = t6;
302
- $[50] = t7;
303
- $[51] = t8;
304
- $[52] = t9;
305
- $[53] = t14;
306
- } else t14 = $[53];
307
- return t14;
403
+ $[42] = T0;
404
+ $[43] = dataElement;
405
+ $[44] = onPointerMove;
406
+ $[45] = qa;
407
+ $[46] = styles;
408
+ $[47] = t21;
409
+ $[48] = t22;
410
+ $[49] = t26;
411
+ $[50] = t27;
412
+ } else t27 = $[50];
413
+ return t27;
308
414
  }
309
415
  //#endregion
310
416
  export { LayoutResizeHandle };
@@ -1 +1 @@
1
- {"version":3,"file":"LayoutResizeHandle.js","names":["BasePropsWithoutChildren","Styles","tasty","Tokens","KeyboardEvent","useEffect","useEffectEvent","useFocusRing","useHover","useMove","useDebouncedValue","mergeProps","Side","ResizeHandleElement","styles","position","padding","boxSizing","touchAction","radius","cursor","horizontal","outline","transition","Line","inset","width","height","fill","drag","Grip","hide","transform","inward","TouchArea","Limit","LayoutResizeHandleProps","side","anchor","hasEdgeLine","label","controls","size","isDragging","minSize","maxSize","valueMax","moveProps","ReturnType","onJump","limit","onDoubleClick","onHoverChange","isHovered","onFocusChange","isFocusVisible","qa","mods","tokens","LayoutResizeHandle","props","$","_c","t0","t1","dataElement","undefined","isHorizontal","t2","hoverProps","focusProps","localIsHovered","t3","isVisible","notifyFocusChange","t4","t5","isFixed","rangeMax","T0","t10","t6","t7","t8","t9","value","Math","round","max","min","Infinity","t11","event","target","key","preventDefault","onKeyDown","hovered","focused","tabIndex","role","t12","t13","Symbol","for","t14","_c","mergeProps"],"sources":["../../../src/components/Layout/LayoutResizeHandle.tsx"],"sourcesContent":["import { BasePropsWithoutChildren, Styles, tasty, Tokens } from '@tenphi/tasty';\nimport { KeyboardEvent, useEffect, useEffectEvent } from 'react';\nimport { useFocusRing, useHover, useMove } from 'react-aria';\n\nimport { useDebouncedValue } from '../../hooks/use-debounced-value';\nimport { mergeProps } from '../../utils/merge-props';\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});\n\ntype Limit = 'min' | 'max';\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 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 onDoubleClick?: () => void;\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 moveProps,\n onJump,\n onDoubleClick,\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 const { hoverProps, isHovered } = useHover({ onHoverChange });\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 : minSize != null && value <= minSize\n ? 'min'\n : maxSize != null && value >= maxSize\n ? 'max'\n : undefined;\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={tokens}\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 onDoubleClick,\n },\n )}\n >\n <div data-element=\"TouchArea\" />\n <div data-element=\"Line\" />\n <div data-element=\"Grip\" />\n </ResizeHandleElement>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAmB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AA,MAAAqB;EAAArB,EAAA,MAAAsB;EAAAtB,EAAA,MAAAuB;EAAAvB,EAAA,MAAA4C;CAAA,OAAAA,MAAA5C,EAAA;CAAA,OA3CtB4C;AA2CsB"}
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","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,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;EACA,gBAAgB;GACd,IAAI;GACJA,MAAM;EACR;EAIA,eAAe;GACb,IAAI;GACJI,QAAQ;EACV;CACF;CAIAC,WAAW;EACTnB,UAAU;EACVgB,M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EAAAK,EAAA,MAAA1D;EAAA0D,EAAA,MAAA6E;EAAA7E,EAAA,MAAA8E;EAAA9E,EAAA,MAAAsF;EAAAtF,EAAA,MAAAuF;CAAA,OAAAA,MAAAvF,EAAA;CAAA,OA/DtBuF;AA+DsB"}
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-6467610 | 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-6467610 | 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-6467610 | 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-6467610 | 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-6467610 | 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-6467610 | 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-6467610 | 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-6467610 | 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-6467610 | 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-6467610 | 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-6467610 | 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";