@cube-dev/ui-kit 0.0.0-canary-be5438b → 0.0.0-canary-4a22e2a
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.
- package/dist/_internal/hooks/use-debounced-value.js +1 -1
- package/dist/_internal/hooks/use-deprecation-warning.js +1 -1
- package/dist/_internal/hooks/use-event.js +1 -1
- package/dist/_internal/hooks/use-is-first-render.js +1 -1
- package/dist/_internal/hooks/use-sync-ref.js +1 -1
- package/dist/_internal/hooks/use-timer/timer.js +1 -1
- package/dist/_internal/hooks/use-timer/use-timer.js +1 -1
- package/dist/_internal/hooks/use-warn.js +1 -1
- package/dist/components/Block.js +1 -1
- package/dist/components/CollectionItem.js +1 -1
- package/dist/components/GlobalStyles.js +1 -1
- package/dist/components/GridProvider.js +1 -1
- package/dist/components/HiddenInput.js +1 -1
- package/dist/components/Root.js +1 -1
- package/dist/components/actions/Action/Action.js +1 -1
- package/dist/components/actions/Banner/Banner.js +1 -1
- package/dist/components/actions/Button/AutoCollapseObserver.js +1 -1
- package/dist/components/actions/Button/Button.js +1 -1
- package/dist/components/actions/Button/index.js +1 -1
- package/dist/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/actions/ButtonSplit/ButtonSplit.js +1 -1
- package/dist/components/actions/ButtonSplit/context.js +1 -1
- package/dist/components/actions/CommandMenu/CommandMenu.js +1 -1
- package/dist/components/actions/CommandMenu/styled.js +1 -1
- package/dist/components/actions/ItemAction/ItemAction.js +1 -1
- package/dist/components/actions/ItemActionContext.js +1 -1
- package/dist/components/actions/ItemActionsWrapper.js +1 -1
- package/dist/components/actions/ItemButton/ItemButton.js +1 -1
- package/dist/components/actions/Link/Link.js +1 -1
- package/dist/components/actions/Menu/Menu.js +1 -1
- package/dist/components/actions/Menu/MenuCollectionItem.js +1 -1
- package/dist/components/actions/Menu/MenuItem.js +1 -1
- package/dist/components/actions/Menu/MenuSection.js +1 -1
- package/dist/components/actions/Menu/MenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubMenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubmenuTriggerContext.js +1 -1
- package/dist/components/actions/Menu/context.js +1 -1
- package/dist/components/actions/Menu/styled.js +1 -1
- package/dist/components/actions/actions-run.js +1 -1
- package/dist/components/actions/touch-context-menu.js +1 -1
- package/dist/components/actions/use-action.js +1 -1
- package/dist/components/actions/use-anchored-menu.js +1 -1
- package/dist/components/actions/use-context-menu.js +1 -1
- package/dist/components/content/ActiveZone/ActiveZone.js +1 -1
- package/dist/components/content/Alert/Alert.js +1 -1
- package/dist/components/content/Alert/use-alert.js +1 -1
- package/dist/components/content/Avatar/Avatar.js +1 -1
- package/dist/components/content/Badge/Badge.js +1 -1
- package/dist/components/content/Card/Card.js +1 -1
- package/dist/components/content/Content.js +1 -1
- package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +1 -1
- package/dist/components/content/CopySnippet/CopySnippet.js +1 -1
- package/dist/components/content/Disclosure/Disclosure.js +1 -1
- package/dist/components/content/Divider/Divider.js +1 -1
- package/dist/components/content/Footer.js +1 -1
- package/dist/components/content/Header.js +1 -1
- package/dist/components/content/HotKeys/HotKeys.js +1 -1
- package/dist/components/content/InfoBadge/InfoBadge.js +1 -1
- package/dist/components/content/InlineInput/InlineInput.js +1 -1
- package/dist/components/content/Item/Item.js +1 -1
- package/dist/components/content/Item/ItemWithNativeLinks.js +1 -1
- package/dist/components/content/ItemBadge/ItemBadge.js +1 -1
- package/dist/components/content/ItemCard/ItemCard.js +1 -1
- package/dist/components/content/Layout/GridLayout.js +1 -1
- package/dist/components/content/Layout/Layout.js +1 -1
- package/dist/components/content/Layout/LayoutBlock.js +1 -1
- package/dist/components/content/Layout/LayoutCenter.js +1 -1
- package/dist/components/content/Layout/LayoutContainer.js +1 -1
- package/dist/components/content/Layout/LayoutContent.js +1 -1
- package/dist/components/content/Layout/LayoutContext.js +1 -1
- package/dist/components/content/Layout/LayoutFlex.js +1 -1
- package/dist/components/content/Layout/LayoutFooter.js +1 -1
- package/dist/components/content/Layout/LayoutGrid.js +1 -1
- package/dist/components/content/Layout/LayoutHeader.js +1 -1
- package/dist/components/content/Layout/LayoutPane.js +361 -347
- package/dist/components/content/Layout/LayoutPane.js.map +1 -1
- package/dist/components/content/Layout/LayoutPanel.js +212 -77
- package/dist/components/content/Layout/LayoutPanel.js.map +1 -1
- package/dist/components/content/Layout/LayoutPanelHeader.js +1 -1
- package/dist/components/content/Layout/LayoutPanelTransition.js +1 -1
- package/dist/components/content/Layout/LayoutToolbar.js +1 -1
- package/dist/components/content/Layout/hooks/useTinyScrollbar.js +1 -1
- package/dist/components/content/Layout/index.js +1 -1
- package/dist/components/content/Layout/utils.js +1 -1
- package/dist/components/content/Paragraph.js +1 -1
- package/dist/components/content/Placeholder/Placeholder.js +1 -1
- package/dist/components/content/PrismCode/PrismCode.js +1 -1
- package/dist/components/content/PrismCode/prismSetup.js +1 -1
- package/dist/components/content/PrismDiffCode/PrismDiffCode.js +1 -1
- package/dist/components/content/Result/Result.js +1 -1
- package/dist/components/content/Skeleton/Skeleton.js +1 -1
- package/dist/components/content/Tag/Tag.js +1 -1
- package/dist/components/content/Text.js +1 -1
- package/dist/components/content/TextItem/TextItem.js +1 -1
- package/dist/components/content/Title.js +1 -1
- package/dist/components/content/Tree/Tree.js +1 -1
- package/dist/components/content/Tree/TreeNode.js +1 -1
- package/dist/components/content/Tree/checked-keys.js +1 -1
- package/dist/components/content/Tree/rowId.js +1 -1
- package/dist/components/content/Tree/styled.js +1 -1
- package/dist/components/content/Tree/tree-index.js +1 -1
- package/dist/components/content/Tree/use-checkbox-tree.js +1 -1
- package/dist/components/content/Tree/use-load-data.js +1 -1
- package/dist/components/content/highlightText.js +1 -1
- package/dist/components/content/use-auto-tooltip.js +1 -1
- package/dist/components/data/DataTable/DataTable.js +1 -1
- package/dist/components/data/ItemTable/ItemTable.js +1 -1
- package/dist/components/data/ItemTable/ItemTableBulkBar.js +1 -1
- package/dist/components/data/ItemTable/ItemTableDragPreview.js +1 -1
- package/dist/components/data/ItemTable/ItemTableFooter.js +1 -1
- package/dist/components/data/ItemTable/ItemTableToolbar.js +1 -1
- package/dist/components/data/ItemTable/item-table-sections.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-column-widths.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-drag-drop.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-pagination.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-selection.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-sort.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-tree-model.js +1 -1
- package/dist/components/data/TableBase/ColumnResizer.js +1 -1
- package/dist/components/data/TableBase/RowCollection.js +1 -1
- package/dist/components/data/TableBase/TableHeaderCell.js +1 -1
- package/dist/components/data/TableBase/TableRow.js +1 -1
- package/dist/components/data/TableBase/TableRowLink.js +1 -1
- package/dist/components/data/TableBase/TableView.js +1 -1
- package/dist/components/data/TableBase/TreeGridTable.js +1 -1
- package/dist/components/data/TableBase/column-header.js +1 -1
- package/dist/components/data/TableBase/column-menu.js +1 -1
- package/dist/components/data/TableBase/column-styles.js +1 -1
- package/dist/components/data/TableBase/column-tint.js +1 -1
- package/dist/components/data/TableBase/row-menu.js +1 -1
- package/dist/components/data/TableBase/styled.js +1 -1
- package/dist/components/data/TableBase/table-body-sections.js +1 -1
- package/dist/components/data/TableBase/table-tree.js +1 -1
- package/dist/components/data/TableBase/types.js +1 -1
- package/dist/components/data/TableBase/use-cell-selection.js +0 -0
- package/dist/components/data/TableBase/use-column-menu.js +1 -1
- package/dist/components/data/TableBase/use-column-order.js +1 -1
- package/dist/components/data/TableBase/use-column-window.js +1 -1
- package/dist/components/data/TableBase/use-container-width.js +1 -1
- package/dist/components/data/TableBase/use-row-move-animation.js +1 -1
- package/dist/components/data/TableBase/use-scrollability.js +1 -1
- package/dist/components/data/TableBase/use-table-columns.js +1 -1
- package/dist/components/data/TableBase/use-table-search.js +1 -1
- package/dist/components/data/TableBase/use-table-selection.js +1 -1
- package/dist/components/data/TableBase/use-table-sort.js +1 -1
- package/dist/components/data/TableBase/use-table-sorts.js +1 -1
- package/dist/components/data/TableBase/use-table-storage.js +1 -1
- package/dist/components/data/TableBase/use-table-tooltip-refresh.js +1 -1
- package/dist/components/data/TableBase/use-table-tree-state.js +1 -1
- package/dist/components/fields/Checkbox/Checkbox.js +1 -1
- package/dist/components/fields/Checkbox/CheckboxGroup.js +1 -1
- package/dist/components/fields/Checkbox/context.js +1 -1
- package/dist/components/fields/ColorInput/ColorInput.js +1 -1
- package/dist/components/fields/ColorPicker/ColorPicker.js +1 -1
- package/dist/components/fields/ColorSwatch/ColorSwatch.js +1 -1
- package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js +1 -1
- package/dist/components/fields/ComboBox/ComboBox.js +1 -1
- package/dist/components/fields/ComboBox/comboBoxOptions.js +1 -1
- package/dist/components/fields/CommandTextArea/CommandTextArea.js +1 -1
- package/dist/components/fields/CommandTextArea/caretPosition.js +1 -1
- package/dist/components/fields/CommandTextArea/useCaretAnchor.js +1 -1
- package/dist/components/fields/DatePicker/CalendarPopover.js +1 -1
- package/dist/components/fields/DatePicker/DateInput.js +1 -1
- package/dist/components/fields/DatePicker/DateInputBase.js +1 -1
- package/dist/components/fields/DatePicker/DatePicker.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerButton.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerElement.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerInput.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerSegment.js +1 -1
- package/dist/components/fields/DatePicker/DateRangePicker.js +1 -1
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +1 -1
- package/dist/components/fields/DatePicker/MonthPicker.js +1 -1
- package/dist/components/fields/DatePicker/PeriodPicker.js +1 -1
- package/dist/components/fields/DatePicker/QuarterPicker.js +1 -1
- package/dist/components/fields/DatePicker/TimeInput.js +1 -1
- package/dist/components/fields/DatePicker/WeekPicker.js +1 -1
- package/dist/components/fields/DatePicker/YearPicker.js +1 -1
- package/dist/components/fields/DatePicker/parseDate.js +1 -1
- package/dist/components/fields/DatePicker/period.js +1 -1
- package/dist/components/fields/DatePicker/props.js +1 -1
- package/dist/components/fields/DatePicker/utils.js +1 -1
- package/dist/components/fields/FileInput/FileInput.js +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js +1 -1
- package/dist/components/fields/FilterListBox/styled.js +1 -1
- package/dist/components/fields/FilterPicker/FilterPicker.js +1 -1
- package/dist/components/fields/FilterPicker/FilterTree.js +1 -1
- package/dist/components/fields/Input/Input.js +1 -1
- package/dist/components/fields/ListBox/DraggableListBox.js +1 -1
- package/dist/components/fields/ListBox/ListBox.js +1 -1
- package/dist/components/fields/ListBox/empty-row.js +1 -1
- package/dist/components/fields/ListBox/optionId.js +1 -1
- package/dist/components/fields/ListBoxPopover/ListBoxPopover.js +1 -1
- package/dist/components/fields/ListBoxPopover/listNavigation.js +1 -1
- package/dist/components/fields/ListBoxPopover/useCompositeFocus.js +1 -1
- package/dist/components/fields/NumberInput/NumberInput.js +1 -1
- package/dist/components/fields/NumberInput/StepButton.js +1 -1
- package/dist/components/fields/PasswordInput/PasswordInput.js +1 -1
- package/dist/components/fields/Picker/Picker.js +1 -1
- package/dist/components/fields/RadioGroup/Radio.js +1 -1
- package/dist/components/fields/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/fields/RadioGroup/context.js +1 -1
- package/dist/components/fields/RadioGroup/joined-styles.js +1 -1
- package/dist/components/fields/SearchComboBox/SearchComboBox.js +1 -1
- package/dist/components/fields/SearchInput/SearchInput.js +1 -1
- package/dist/components/fields/Select/Select.js +1 -1
- package/dist/components/fields/Slider/Gradation.js +1 -1
- package/dist/components/fields/Slider/HueSlider.js +1 -1
- package/dist/components/fields/Slider/RangeSlider.js +1 -1
- package/dist/components/fields/Slider/Slider.js +1 -1
- package/dist/components/fields/Slider/SliderBase.js +1 -1
- package/dist/components/fields/Slider/SliderThumb.js +1 -1
- package/dist/components/fields/Slider/SliderTrack.js +1 -1
- package/dist/components/fields/Slider/elements.js +1 -1
- package/dist/components/fields/Slider/index.js +1 -1
- package/dist/components/fields/Switch/Switch.js +1 -1
- package/dist/components/fields/TagInput/TagInput.js +1 -1
- package/dist/components/fields/TagInput/TagList.js +1 -1
- package/dist/components/fields/TagInput/useActiveOption.js +1 -1
- package/dist/components/fields/TagInput/useSuffixSpace.js +1 -1
- package/dist/components/fields/TagInput/useTagError.js +1 -1
- package/dist/components/fields/TextArea/TextArea.js +1 -1
- package/dist/components/fields/TextInput/TextInput.js +1 -1
- package/dist/components/fields/TextInput/TextInputBase.js +1 -1
- package/dist/components/fields/TextInput/displayed-validation.js +1 -1
- package/dist/components/fields/TextInput/identifier-text-services.js +1 -1
- package/dist/components/fields/TextInput/password-manager-ignore.js +1 -1
- package/dist/components/fields/TextInput/useAutoSizeTextArea.js +1 -1
- package/dist/components/fields/TextInputMapper/TextInputMapper.js +1 -1
- package/dist/components/fields/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/components/fields/ToggleGroup/ToggleGroupItem.js +1 -1
- package/dist/components/fields/ToggleGroup/context.js +1 -1
- package/dist/components/fields/TriggerActions.js +1 -1
- package/dist/components/fields/color/ColorPanel.js +1 -1
- package/dist/components/fields/color/channels.js +1 -1
- package/dist/components/fields/color/color.js +1 -1
- package/dist/components/fields/color/context.js +1 -1
- package/dist/components/fields/option-origin-press.js +1 -1
- package/dist/components/fields/popover-width.js +1 -1
- package/dist/components/fields/search-text-services.js +1 -1
- package/dist/components/form/FieldWrapper/FieldWrapper.js +1 -1
- package/dist/components/form/FieldWrapper/field-description.js +1 -1
- package/dist/components/form/Form/Field.js +1 -1
- package/dist/components/form/Form/Form.js +1 -1
- package/dist/components/form/Form/FormContext.js +1 -1
- package/dist/components/form/Form/FormElement.js +1 -1
- package/dist/components/form/Form/ModernFormRoot.js +1 -1
- package/dist/components/form/Form/ResetButton/ResetButton.js +1 -1
- package/dist/components/form/Form/SubmitButton/SubmitButton.js +1 -1
- package/dist/components/form/Form/SubmitError.js +1 -1
- package/dist/components/form/Form/backend.js +1 -1
- package/dist/components/form/Form/index.js +1 -1
- package/dist/components/form/Form/modern/actions.js +1 -1
- package/dist/components/form/Form/modern/context.js +1 -1
- package/dist/components/form/Form/modern/controller.js +1 -1
- package/dist/components/form/Form/modern/field-binding.js +1 -1
- package/dist/components/form/Form/modern/field.js +1 -1
- package/dist/components/form/Form/modern/react.js +1 -1
- package/dist/components/form/Form/modern/store.js +1 -1
- package/dist/components/form/Form/modern/validation.js +1 -1
- package/dist/components/form/Form/modern/values.js +1 -1
- package/dist/components/form/Form/reset-unbound-controls.js +1 -1
- package/dist/components/form/Form/use-field/use-field-binding.js +1 -1
- package/dist/components/form/Form/use-field/use-field-props.js +1 -1
- package/dist/components/form/Form/use-field/use-field.js +1 -1
- package/dist/components/form/Form/use-form.js +1 -1
- package/dist/components/form/Form/validation.js +1 -1
- package/dist/components/form/Label.js +1 -1
- package/dist/components/form/field-chrome.js +1 -1
- package/dist/components/form/field-layout.js +1 -1
- package/dist/components/form/legacy-tooltip.js +1 -1
- package/dist/components/form/validation/ValidationIndicator.js +1 -1
- package/dist/components/form/validation/resolve-validation-props.js +1 -1
- package/dist/components/form/validation/use-validation-props.js +1 -1
- package/dist/components/form/wrapper.js +1 -1
- package/dist/components/helpers/DisplayTransition/DisplayTransition.js +1 -1
- package/dist/components/helpers/IconSwitch/IconSwitch.js +1 -1
- package/dist/components/layout/Flex.js +1 -1
- package/dist/components/layout/Flow.js +1 -1
- package/dist/components/layout/Grid.js +1 -1
- package/dist/components/layout/Panel.js +1 -1
- package/dist/components/layout/Prefix.js +1 -1
- package/dist/components/layout/ResizablePanel.js +1 -1
- package/dist/components/layout/Space.js +1 -1
- package/dist/components/layout/Suffix.js +1 -1
- package/dist/components/navigation/NavTabs/NavTabs.js +1 -1
- package/dist/components/navigation/Pagination/Pagination.js +1 -1
- package/dist/components/navigation/Pagination/use-pagination.js +1 -1
- package/dist/components/navigation/Tabs/BoardDragActiveProvider.js +1 -1
- package/dist/components/navigation/Tabs/DraggableTabList.js +1 -1
- package/dist/components/navigation/Tabs/TabButton.js +1 -1
- package/dist/components/navigation/Tabs/TabDropIndicator.js +1 -1
- package/dist/components/navigation/Tabs/TabPanel.js +1 -1
- package/dist/components/navigation/Tabs/TabPicker.js +1 -1
- package/dist/components/navigation/Tabs/Tabs.js +1 -1
- package/dist/components/navigation/Tabs/TabsAction.js +1 -1
- package/dist/components/navigation/Tabs/TabsContext.js +1 -1
- package/dist/components/navigation/Tabs/popover-placement.js +1 -1
- package/dist/components/navigation/Tabs/scroll-tab-into-strip.js +1 -1
- package/dist/components/navigation/Tabs/segmented-styles.js +1 -1
- package/dist/components/navigation/Tabs/styled.js +1 -1
- package/dist/components/navigation/Tabs/types.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-editing.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-indicator.js +1 -1
- package/dist/components/organisms/StatsCard/StatsCard.js +1 -1
- package/dist/components/other/Calendar/Calendar.js +1 -1
- package/dist/components/other/Calendar/CalendarCell.js +1 -1
- package/dist/components/other/Calendar/CalendarGrid.js +1 -1
- package/dist/components/other/Calendar/CalendarHeader.js +1 -1
- package/dist/components/other/Calendar/CalendarPanel.js +1 -1
- package/dist/components/other/Calendar/PeriodCalendar.js +1 -1
- package/dist/components/other/Calendar/PeriodGrid.js +1 -1
- package/dist/components/other/Calendar/RangeCalendar.js +1 -1
- package/dist/components/other/Calendar/styled.js +1 -1
- package/dist/components/other/CubeLogo/CubeLogo.js +1 -1
- package/dist/components/other/NoDataIcon/NoDataIcon.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
- package/dist/components/overlays/Dialog/Dialog.js +1 -1
- package/dist/components/overlays/Dialog/DialogContainer.js +1 -1
- package/dist/components/overlays/Dialog/DialogForm.js +1 -1
- package/dist/components/overlays/Dialog/DialogTrigger.js +1 -1
- package/dist/components/overlays/Dialog/ModernDialogForm.js +1 -1
- package/dist/components/overlays/Dialog/context.js +1 -1
- package/dist/components/overlays/Dialog/default-button-text.js +1 -1
- package/dist/components/overlays/Dialog/use-content-overflow.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-container.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-open-sync.js +1 -1
- package/dist/components/overlays/Dialog/use-dismiss-confirmation.js +1 -1
- package/dist/components/overlays/Dialog/use-retained-dialog-focus.js +1 -1
- package/dist/components/overlays/Modal/Modal.js +1 -1
- package/dist/components/overlays/Modal/OpenTransitionContext.js +1 -1
- package/dist/components/overlays/Modal/Overlay.js +1 -1
- package/dist/components/overlays/Modal/Popover.js +1 -1
- package/dist/components/overlays/Modal/Tray.js +1 -1
- package/dist/components/overlays/Modal/Underlay.js +1 -1
- package/dist/components/overlays/Modal/modal-containment.js +1 -1
- package/dist/components/overlays/Notifications/Notification.js +1 -1
- package/dist/components/overlays/Notifications/NotificationAction.js +1 -1
- package/dist/components/overlays/Notifications/NotificationCard.js +1 -1
- package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
- package/dist/components/overlays/Notifications/NotificationItem.js +1 -1
- package/dist/components/overlays/Notifications/OverlayContainer.js +1 -1
- package/dist/components/overlays/Notifications/OverlayProvider.js +1 -1
- package/dist/components/overlays/Notifications/PersistentNotificationsList.js +1 -1
- package/dist/components/overlays/Notifications/dismissed-storage.js +1 -1
- package/dist/components/overlays/Notifications/format-relative-time.js +1 -1
- package/dist/components/overlays/Notifications/index.js +1 -1
- package/dist/components/overlays/Notifications/use-notification-state.js +1 -1
- package/dist/components/overlays/Notifications/use-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-overlay-timers.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-state.js +1 -1
- package/dist/components/overlays/Notifications/use-toast-state.js +1 -1
- package/dist/components/overlays/Toast/ToastItem.js +1 -1
- package/dist/components/overlays/Toast/index.js +1 -1
- package/dist/components/overlays/Toast/useProgressToast.js +1 -1
- package/dist/components/overlays/Toast/useToast.js +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipProvider.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipTrigger.js +1 -1
- package/dist/components/overlays/Tooltip/context.js +1 -1
- package/dist/components/overlays/Tooltip/split-trigger-props.js +1 -1
- package/dist/components/portal/Portal.js +1 -1
- package/dist/components/portal/PortalProvider.js +1 -1
- package/dist/components/portal/usePortal.js +1 -1
- package/dist/components/shared/DraggableCollection.js +1 -1
- package/dist/components/shared/InvalidIcon.js +1 -1
- package/dist/components/shared/ValidIcon.js +1 -1
- package/dist/components/shared/virtual-width.js +1 -1
- package/dist/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
- package/dist/components/status/Spin/Cube.js +1 -1
- package/dist/components/status/Spin/InternalSpinner.js +1 -1
- package/dist/components/status/Spin/Spin.js +1 -1
- package/dist/components/status/Spin/SpinsContainer.js +1 -1
- package/dist/data/item-themes.js +1 -1
- package/dist/data/themes.js +1 -1
- package/dist/eslint-plugin/defaults.generated.js +1 -1
- package/dist/eslint-plugin/index.js +1 -1
- package/dist/eslint-plugin/rules/no-redundant-default-prop.js +1 -1
- package/dist/harness/colors-deps.js +1 -1
- package/dist/i18n/I18nProvider.js +1 -1
- package/dist/i18n/createFormatter.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/instance.js +1 -1
- package/dist/i18n/locales/de-DE/uikit.js +1 -1
- package/dist/i18n/locales/en-US/uikit.js +1 -1
- package/dist/i18n/locales/es-ES/uikit.js +1 -1
- package/dist/i18n/locales/es-MX/uikit.js +1 -1
- package/dist/i18n/locales/fr-FR/uikit.js +1 -1
- package/dist/i18n/locales/it-IT/uikit.js +1 -1
- package/dist/i18n/locales/ja-JP/uikit.js +1 -1
- package/dist/i18n/locales/nb-NO/uikit.js +1 -1
- package/dist/i18n/locales/pt-BR/uikit.js +1 -1
- package/dist/i18n/locales/pt-PT/uikit.js +1 -1
- package/dist/i18n/locales/sv-SE/uikit.js +1 -1
- package/dist/i18n/locales/vi-VN/uikit.js +1 -1
- package/dist/i18n/locales.js +1 -1
- package/dist/i18n/namespace.js +1 -1
- package/dist/i18n/useFormatter.js +1 -1
- package/dist/i18n/useI18n.js +1 -1
- package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
- package/dist/icons/AdjustmentsIcon.js +1 -1
- package/dist/icons/AiIcon.js +1 -1
- package/dist/icons/AreaChartIcon.js +1 -1
- package/dist/icons/ArrowNarrowDownIcon.js +1 -1
- package/dist/icons/ArrowNarrowUpIcon.js +1 -1
- package/dist/icons/BackwardIcon.js +1 -1
- package/dist/icons/BarChartIcon.js +1 -1
- package/dist/icons/BellFilledIcon.js +1 -1
- package/dist/icons/BellIcon.js +1 -1
- package/dist/icons/BooleanIcon.js +1 -1
- package/dist/icons/CalendarEditIcon.js +1 -1
- package/dist/icons/CalendarIcon.js +1 -1
- package/dist/icons/CaretDownIcon.js +1 -1
- package/dist/icons/CaretUpIcon.js +1 -1
- package/dist/icons/ChartAreaStackedIcon.js +1 -1
- package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarGroupedIcon.js +1 -1
- package/dist/icons/ChartBarHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarLineIcon.js +1 -1
- package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBoxPlot2Icon.js +1 -1
- package/dist/icons/ChartBoxPlotIcon.js +1 -1
- package/dist/icons/ChartBubbleIcon.js +1 -1
- package/dist/icons/ChartDonut2Icon.js +1 -1
- package/dist/icons/ChartFunnelIcon.js +1 -1
- package/dist/icons/ChartHeatmapIcon.js +1 -1
- package/dist/icons/ChartKPIIcon.js +1 -1
- package/dist/icons/ChartPie2Icon.js +1 -1
- package/dist/icons/ChartScatterIcon.js +1 -1
- package/dist/icons/CheckCircleFilledIcon.js +1 -1
- package/dist/icons/CheckCircleIcon.js +1 -1
- package/dist/icons/CheckIcon.js +1 -1
- package/dist/icons/CircleFilledIcon.js +1 -1
- package/dist/icons/ClearIcon.js +1 -1
- package/dist/icons/CloseCircleFilledIcon.js +1 -1
- package/dist/icons/CloseCircleIcon.js +1 -1
- package/dist/icons/CloseIcon.js +1 -1
- package/dist/icons/CodeIcon.js +1 -1
- package/dist/icons/ColumnTotalIcon.js +1 -1
- package/dist/icons/CopyIcon.js +1 -1
- package/dist/icons/CountIcon.js +1 -1
- package/dist/icons/CubeIcon.js +1 -1
- package/dist/icons/CubePauseIcon.js +1 -1
- package/dist/icons/CubePlayIcon.js +1 -1
- package/dist/icons/CurrencyDollarIcon.js +1 -1
- package/dist/icons/DangerIcon.js +1 -1
- package/dist/icons/DashboardIcon.js +1 -1
- package/dist/icons/DatabaseIcon.js +1 -1
- package/dist/icons/DecimalDecreaseIcon.js +1 -1
- package/dist/icons/DecimalIncreaseIcon.js +1 -1
- package/dist/icons/DirectionIcon.js +1 -1
- package/dist/icons/DonutIcon.js +1 -1
- package/dist/icons/DownIcon.js +1 -1
- package/dist/icons/EditIcon.js +1 -1
- package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
- package/dist/icons/ExclamationCircleIcon.js +1 -1
- package/dist/icons/ExclamationIcon.js +1 -1
- package/dist/icons/EyeIcon.js +1 -1
- package/dist/icons/EyeInvisibleIcon.js +1 -1
- package/dist/icons/FilterIcon.js +1 -1
- package/dist/icons/FolderFilledIcon.js +1 -1
- package/dist/icons/FolderIcon.js +1 -1
- package/dist/icons/FolderOpenFilledIcon.js +1 -1
- package/dist/icons/FolderOpenIcon.js +1 -1
- package/dist/icons/ForwardIcon.js +1 -1
- package/dist/icons/GripVerticalIcon.js +1 -1
- package/dist/icons/HierarchyIcon.js +1 -1
- package/dist/icons/HierarchyOpenIcon.js +1 -1
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/InfoCircleIcon.js +1 -1
- package/dist/icons/InfoIcon.js +1 -1
- package/dist/icons/KeyIcon.js +1 -1
- package/dist/icons/LeftIcon.js +1 -1
- package/dist/icons/LineChartIcon.js +1 -1
- package/dist/icons/LoadingIcon.js +1 -1
- package/dist/icons/LockFilledIcon.js +1 -1
- package/dist/icons/LockIcon.js +1 -1
- package/dist/icons/MoreIcon.js +1 -1
- package/dist/icons/NotAllowedIcon.js +1 -1
- package/dist/icons/Number123Icon.js +1 -1
- package/dist/icons/NumberIcon.js +1 -1
- package/dist/icons/PauseCircleFilledIcon.js +1 -1
- package/dist/icons/PauseCircleIcon.js +1 -1
- package/dist/icons/PauseIcon.js +1 -1
- package/dist/icons/PercentageIcon.js +1 -1
- package/dist/icons/PieChartIcon.js +1 -1
- package/dist/icons/PipetteIcon.js +1 -1
- package/dist/icons/PlayCircleIcon.js +1 -1
- package/dist/icons/PlayIcon.js +1 -1
- package/dist/icons/PlusIcon.js +1 -1
- package/dist/icons/ProgressBarIcon.js +1 -1
- package/dist/icons/ReloadIcon.js +1 -1
- package/dist/icons/ReportIcon.js +1 -1
- package/dist/icons/ReturnIcon.js +1 -1
- package/dist/icons/RightIcon.js +1 -1
- package/dist/icons/RowTotalsIcon.js +1 -1
- package/dist/icons/SchemeIcon.js +1 -1
- package/dist/icons/SearchIcon.js +1 -1
- package/dist/icons/SemanticQueryIcon.js +1 -1
- package/dist/icons/SettingsIcon.js +1 -1
- package/dist/icons/ShieldFilledIcon.js +1 -1
- package/dist/icons/ShieldIcon.js +1 -1
- package/dist/icons/SlashIcon.js +1 -1
- package/dist/icons/SparklesIcon.js +1 -1
- package/dist/icons/SqlIcon.js +1 -1
- package/dist/icons/StatsIcon.js +1 -1
- package/dist/icons/StopIcon.js +1 -1
- package/dist/icons/StringIcon.js +1 -1
- package/dist/icons/SubtotalsIcon.js +1 -1
- package/dist/icons/SwitchIcon.js +1 -1
- package/dist/icons/TableIcon.js +1 -1
- package/dist/icons/ThumbsDownIcon.js +1 -1
- package/dist/icons/ThumbsUpIcon.js +1 -1
- package/dist/icons/ThunderboltCrossedIcon.js +1 -1
- package/dist/icons/ThunderboltFilledIcon.js +1 -1
- package/dist/icons/ThunderboltIcon.js +1 -1
- package/dist/icons/TimeIcon.js +1 -1
- package/dist/icons/TrashIcon.js +1 -1
- package/dist/icons/UnlockIcon.js +1 -1
- package/dist/icons/UpIcon.js +1 -1
- package/dist/icons/UserGroupIcon.js +1 -1
- package/dist/icons/UserIcon.js +1 -1
- package/dist/icons/UserLockIcon.js +1 -1
- package/dist/icons/ViewIcon.js +1 -1
- package/dist/icons/WarningFilledIcon.js +1 -1
- package/dist/icons/WarningIcon.js +1 -1
- package/dist/icons/wrap-icon.js +1 -1
- package/dist/index.js +1 -1
- package/dist/probe/canonicalize.js +1 -1
- package/dist/probe/css.js +1 -1
- package/dist/probe/index.js +1 -1
- package/dist/provider.js +1 -1
- package/dist/providers/TrackingProvider.js +1 -1
- package/dist/providers/navigation-url.js +1 -1
- package/dist/providers/navigationAdapter.default.js +1 -1
- package/dist/providers/use-navigation.js +1 -1
- package/dist/tokens/all-tokens.js +1 -1
- package/dist/tokens/base.js +1 -1
- package/dist/tokens/color-seed.js +1 -1
- package/dist/tokens/color-theme.js +1 -1
- package/dist/tokens/colors.js +1 -1
- package/dist/tokens/layout.js +1 -1
- package/dist/tokens/lazy-styles.js +1 -1
- package/dist/tokens/legacy-color.js +1 -1
- package/dist/tokens/palette-config.js +1 -1
- package/dist/tokens/palette.js +1 -1
- package/dist/tokens/resolve.js +1 -1
- package/dist/tokens/shadows.js +1 -1
- package/dist/tokens/sizes.js +1 -1
- package/dist/tokens/spacing.js +1 -1
- package/dist/tokens/typography.js +1 -1
- package/dist/utils/ResizeSensor.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/dotize.js +1 -1
- package/dist/utils/is-dev-env.js +1 -1
- package/dist/utils/layout-scale.js +1 -1
- package/dist/utils/modules.js +1 -1
- package/dist/utils/promise.js +1 -1
- package/dist/utils/raf.js +1 -1
- package/dist/utils/random.js +1 -1
- package/dist/utils/range.js +1 -1
- package/dist/utils/react/RenderCache.js +1 -1
- package/dist/utils/react/Slots.js +1 -1
- package/dist/utils/react/chain.js +1 -1
- package/dist/utils/react/componentBaseProps.js +1 -1
- package/dist/utils/react/disabledProps.js +1 -1
- package/dist/utils/react/forwardRefWithGenerics.js +1 -1
- package/dist/utils/react/index.js +1 -1
- package/dist/utils/react/interactions.js +1 -1
- package/dist/utils/react/isTextOnly.js +1 -1
- package/dist/utils/react/mapProps.js +1 -1
- package/dist/utils/react/mergeProps.js +1 -1
- package/dist/utils/react/nullableValue.js +1 -1
- package/dist/utils/react/overlayKeyPropagation.js +1 -1
- package/dist/utils/react/pickBaseCustomizationProps.js +1 -1
- package/dist/utils/react/programmaticFocus.js +1 -1
- package/dist/utils/react/resolveIcon.js +1 -1
- package/dist/utils/react/sharedStore.js +1 -1
- package/dist/utils/react/useBufferedValue.js +1 -1
- package/dist/utils/react/useCombinedRefs.js +1 -1
- package/dist/utils/react/useControlledFocusVisible.js +1 -1
- package/dist/utils/react/useEventBus.js +1 -1
- package/dist/utils/react/useId.js +1 -1
- package/dist/utils/react/useIsDarwin.js +1 -1
- package/dist/utils/react/useKeySymbols.js +1 -1
- package/dist/utils/react/useLayoutEffect.js +1 -1
- package/dist/utils/react/useLocalStorage.js +1 -1
- package/dist/utils/react/useMergeStyles.js +1 -1
- package/dist/utils/react/useOpenKey.js +1 -1
- package/dist/utils/react/useOverlayEscapeGuard.js +1 -1
- package/dist/utils/react/useOverlayPosition.js +1 -1
- package/dist/utils/react/usePopoverSync.js +1 -1
- package/dist/utils/react/useQaProps.js +1 -1
- package/dist/utils/react/useScheme.js +1 -1
- package/dist/utils/react/useViewportSize.js +1 -1
- package/dist/utils/react/wrapNodeIfPlain.js +1 -1
- package/dist/utils/selection.js +1 -1
- package/dist/utils/styles.js +1 -1
- package/dist/utils/tree.js +1 -1
- package/dist/utils/warnings.js +1 -1
- package/dist/version.js +2 -2
- package/docs/components/content/Layout.md +4 -10
- package/package.json +2 -2
- package/dist/components/content/Layout/LayoutResizeHandle.js +0 -311
- package/dist/components/content/Layout/LayoutResizeHandle.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-4a22e2a | Cube Dev Team */
|
|
2
2
|
//#region src/utils/react/nullableValue.ts
|
|
3
3
|
function castNullableStringValue(props, emptyValue = "") {
|
|
4
4
|
return castNullableField(props, ["value", "defaultValue"], "string", (v) => String(v), emptyValue);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-4a22e2a | Cube Dev Team */
|
|
2
2
|
//#region src/utils/react/overlayKeyPropagation.ts
|
|
3
3
|
/**
|
|
4
4
|
* Keys whose final handling belongs to the overlay around a control, not to
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-4a22e2a | Cube Dev Team */
|
|
2
2
|
//#region src/utils/react/pickBaseCustomizationProps.ts
|
|
3
3
|
/** Customization props that can sit under a control's DOM and event wiring. */
|
|
4
4
|
function pickBaseCustomizationProps(props) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-4a22e2a | Cube Dev Team */
|
|
2
2
|
//#region src/utils/react/programmaticFocus.ts
|
|
3
3
|
/**
|
|
4
4
|
* Telling focus the user moved from focus a component moved for them.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-4a22e2a | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../_internal/hooks/use-event.js";
|
|
3
3
|
import { isDevEnv } from "../is-dev-env.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-4a22e2a | Cube Dev Team */
|
|
2
2
|
import { useLayoutEffect as useLayoutEffect$1 } from "./useLayoutEffect.js";
|
|
3
3
|
import { useCallback, useRef, useState } from "react";
|
|
4
4
|
//#region src/utils/react/useBufferedValue.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-4a22e2a | Cube Dev Team */
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { useEffect, useRef } from "react";
|
|
4
4
|
//#region src/utils/react/useCombinedRefs.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-4a22e2a | Cube Dev Team */
|
|
2
2
|
import { createSharedStore } from "./sharedStore.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { useEffect } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-4a22e2a | Cube Dev Team */
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef } from "react";
|
|
4
4
|
//#region src/utils/react/useEventBus.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-4a22e2a | Cube Dev Team */
|
|
2
2
|
import { useLayoutEffect as useLayoutEffect$1 } from "./useLayoutEffect.js";
|
|
3
3
|
import "react/compiler-runtime";
|
|
4
4
|
import { useEffect, useRef, useState } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-4a22e2a | Cube Dev Team */
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { useEffect, useState } from "react";
|
|
4
4
|
//#region src/utils/react/useIsDarwin.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-4a22e2a | Cube Dev Team */
|
|
2
2
|
import { useIsDarwin } from "./useIsDarwin.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
//#region src/utils/react/useKeySymbols.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-4a22e2a | Cube Dev Team */
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
//#region src/utils/react/useLayoutEffect.tsx
|
|
4
4
|
const useLayoutEffect$1 = typeof window !== "undefined" ? React$1.useLayoutEffect : React$1.useEffect;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-4a22e2a | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../_internal/hooks/use-event.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { useSyncExternalStore } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-4a22e2a | Cube Dev Team */
|
|
2
2
|
import { mergeStyles } from "@tenphi/tasty";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
//#region src/utils/react/useMergeStyles.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-4a22e2a | Cube Dev Team */
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
//#region src/utils/react/useOpenKey.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-4a22e2a | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../_internal/hooks/use-event.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { getEventTarget, nodeContains } from "@react-aria/utils";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-4a22e2a | Cube Dev Team */
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { useEffect, useEffectEvent, useRef } from "react";
|
|
4
4
|
import { useOverlayPosition } from "react-aria";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-4a22e2a | Cube Dev Team */
|
|
2
2
|
import { EventBusContext, useEventBus } from "./useEventBus.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { useContext, useEffect, useEffectEvent, useRef } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-4a22e2a | Cube Dev Team */
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { useEffect, useState } from "react";
|
|
4
4
|
//#region src/utils/react/useViewportSize.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-4a22e2a | Cube Dev Team */
|
|
2
2
|
import { Fragment, isValidElement } from "react";
|
|
3
3
|
//#region src/utils/react/wrapNodeIfPlain.ts
|
|
4
4
|
function wrapNodeIfPlain(children, render) {
|
package/dist/utils/selection.js
CHANGED
package/dist/utils/styles.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-4a22e2a | Cube Dev Team */
|
|
2
2
|
import { isSelector, mergeStyles } from "@tenphi/tasty";
|
|
3
3
|
//#region src/utils/styles.ts
|
|
4
4
|
function isRecord(value) {
|
package/dist/utils/tree.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-4a22e2a | Cube Dev Team */
|
|
2
2
|
//#region src/utils/tree.ts
|
|
3
3
|
function toFlatTree(tree, includingFolders) {
|
|
4
4
|
return tree.reduce((result, node) => {
|
package/dist/utils/warnings.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-4a22e2a | Cube Dev Team */
|
|
2
2
|
import { isDevEnvOrTest } from "./is-dev-env.js";
|
|
3
3
|
//#region src/utils/warnings.ts
|
|
4
4
|
const SUGGESTED_PROP_MAP = {
|
package/dist/version.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-4a22e2a | Cube Dev Team */
|
|
2
2
|
//#region src/version.ts
|
|
3
|
-
const VERSION = "0.0.0-canary-
|
|
3
|
+
const VERSION = "0.0.0-canary-4a22e2a";
|
|
4
4
|
const TASTY_VERSION = "3.19.2";
|
|
5
5
|
if (typeof window !== "undefined") {
|
|
6
6
|
const version = VERSION;
|
|
@@ -361,14 +361,9 @@ Give the other items a zero flex basis, as the results get here: an item that sh
|
|
|
361
361
|
- `Inner` - Scrollable inner container
|
|
362
362
|
- `ScrollbarV` - Vertical scroll indicator (tiny mode)
|
|
363
363
|
- `ScrollbarH` - Horizontal scroll indicator (tiny mode)
|
|
364
|
-
- `ResizeHandler` -
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
- `TouchArea` - The wider target for a coarse pointer
|
|
368
|
-
|
|
369
|
-
### Resize handle
|
|
370
|
-
|
|
371
|
-
Layout.Panel and Layout.Pane share one resize handle on their resizable edge. At rest the edge is a 1px line: a panel's own border, or a line the pane draws. On hover, while dragging and on keyboard focus it becomes a 2px accent line, and keyboard focus adds a focus ring. At the minimum or the maximum size, the cursor shows the one direction left (`e-resize`, `w-resize`, `n-resize` or `s-resize`). On touch screens, where nothing can hover, a grip shows on the edge, and a coarse pointer gets a 20px target. None of this moves the panel, the pane or the content beside them.
|
|
364
|
+
- `ResizeHandler` - Drag handle for resizing
|
|
365
|
+
- `Drag` - Visual drag indicator
|
|
366
|
+
- `DragPart` - Individual dots in the drag indicator
|
|
372
367
|
|
|
373
368
|
---
|
|
374
369
|
|
|
@@ -888,7 +883,6 @@ function ApplicationShell() {
|
|
|
888
883
|
- Resize handlers can be focused and resized using arrow keys:
|
|
889
884
|
- `Arrow keys` - Resize panel by 10px
|
|
890
885
|
- `Shift + Arrow keys` - Resize panel by 50px
|
|
891
|
-
- `Home` / `End` - Resize to the minimum / maximum size, when it is known in pixels. A pane's limits are its own `minSize` and `maxSize` as numbers; a panel also resolves percentages and the room its Layout leaves
|
|
892
886
|
- `Double-click` on resize handler - Reset to default size
|
|
893
887
|
|
|
894
888
|
### Screen Reader Support
|
|
@@ -904,7 +898,7 @@ function ApplicationShell() {
|
|
|
904
898
|
- `aria-label` - Available on all components for custom labels
|
|
905
899
|
- Landmarks are automatically set for header, footer, and toolbar
|
|
906
900
|
- Panel close buttons include `aria-label="Close panel"`
|
|
907
|
-
- Resize handlers have `role="separator"` with `aria-orientation
|
|
901
|
+
- Resize handlers have `role="separator"` with proper `aria-orientation` and `aria-label`
|
|
908
902
|
|
|
909
903
|
---
|
|
910
904
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cube-dev/ui-kit",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-4a22e2a",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "UIKit for Cube Projects",
|
|
6
6
|
"repository": {
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
"@storybook/react-vite": "^10.3.6",
|
|
164
164
|
"@tanstack/virtual-core": "3.13.12",
|
|
165
165
|
"@tenphi/eslint-plugin-tasty": "^1.21.4",
|
|
166
|
-
"@tenphi/harnesspm": "^0.
|
|
166
|
+
"@tenphi/harnesspm": "^0.14.0",
|
|
167
167
|
"@testing-library/dom": "^10.4.1",
|
|
168
168
|
"@testing-library/jest-dom": "^6.7.0",
|
|
169
169
|
"@testing-library/react": "^16.3.0",
|
|
@@ -1,311 +0,0 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-be5438b | Cube Dev Team */
|
|
2
|
-
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
3
|
-
import { useDebouncedValue } from "../../../_internal/hooks/use-debounced-value.js";
|
|
4
|
-
import { c } from "react/compiler-runtime";
|
|
5
|
-
import { tasty } from "@tenphi/tasty";
|
|
6
|
-
import { useEffect, useEffectEvent } from "react";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import { useFocusRing, useHover } from "react-aria";
|
|
9
|
-
//#region src/components/content/Layout/LayoutResizeHandle.tsx
|
|
10
|
-
/**
|
|
11
|
-
* The resize handle of `Layout.Panel` and `Layout.Pane`.
|
|
12
|
-
*
|
|
13
|
-
* Its owner keeps the handle's box: size, position and transforms, with
|
|
14
|
-
* `$handle-edge-inset` in its styles. Inside that box the handle draws the
|
|
15
|
-
* edge: a line at `$handle-edge-inset` from its `anchor` side, which thickens
|
|
16
|
-
* away from that side while the handle is in use. The grip and the touch area
|
|
17
|
-
* centre on that line. Nothing outside the handle moves.
|
|
18
|
-
*/
|
|
19
|
-
const ResizeHandleElement = tasty({ styles: {
|
|
20
|
-
position: "absolute",
|
|
21
|
-
padding: 0,
|
|
22
|
-
boxSizing: "border-box",
|
|
23
|
-
touchAction: "none",
|
|
24
|
-
radius: true,
|
|
25
|
-
cursor: {
|
|
26
|
-
"": "row-resize",
|
|
27
|
-
horizontal: "col-resize",
|
|
28
|
-
"(limit=min & side=left) | (limit=max & side=right)": "e-resize",
|
|
29
|
-
"(limit=max & side=left) | (limit=min & side=right)": "w-resize",
|
|
30
|
-
"(limit=min & side=top) | (limit=max & side=bottom)": "s-resize",
|
|
31
|
-
"(limit=max & side=top) | (limit=min & side=bottom)": "n-resize"
|
|
32
|
-
},
|
|
33
|
-
outline: {
|
|
34
|
-
"": "$ring-width #focus.0",
|
|
35
|
-
focused: "$ring-width #focus"
|
|
36
|
-
},
|
|
37
|
-
outlineOffset: "$outline-offset",
|
|
38
|
-
transition: "theme",
|
|
39
|
-
"$handle-edge-inset": "0px",
|
|
40
|
-
"$handle-line-size": "2px",
|
|
41
|
-
Line: {
|
|
42
|
-
position: "absolute",
|
|
43
|
-
inset: {
|
|
44
|
-
"": "0 auto 0 $handle-edge-inset",
|
|
45
|
-
"anchor=right": "0 $handle-edge-inset 0 auto",
|
|
46
|
-
"anchor=top": "$handle-edge-inset 0 auto 0",
|
|
47
|
-
"anchor=bottom": "auto 0 $handle-edge-inset 0"
|
|
48
|
-
},
|
|
49
|
-
width: {
|
|
50
|
-
"": "auto",
|
|
51
|
-
horizontal: "1bw",
|
|
52
|
-
"horizontal & (hovered | drag | focused)": "$handle-line-size"
|
|
53
|
-
},
|
|
54
|
-
height: {
|
|
55
|
-
"": "1bw",
|
|
56
|
-
"hovered | drag | focused": "$handle-line-size",
|
|
57
|
-
horizontal: "auto"
|
|
58
|
-
},
|
|
59
|
-
fill: {
|
|
60
|
-
"": "#clear",
|
|
61
|
-
"edge-line": "#border",
|
|
62
|
-
"hovered | drag | focused": "#purple"
|
|
63
|
-
},
|
|
64
|
-
transition: {
|
|
65
|
-
"": "theme",
|
|
66
|
-
drag: "none"
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
Grip: {
|
|
70
|
-
position: "absolute",
|
|
71
|
-
hide: {
|
|
72
|
-
"": true,
|
|
73
|
-
"@media(hover: none)": false
|
|
74
|
-
},
|
|
75
|
-
inset: {
|
|
76
|
-
"": "50% auto auto $grip-inset",
|
|
77
|
-
"anchor=right": "50% $grip-inset auto auto",
|
|
78
|
-
"anchor=top": "$grip-inset auto auto 50%",
|
|
79
|
-
"anchor=bottom": "auto auto $grip-inset 50%"
|
|
80
|
-
},
|
|
81
|
-
transform: {
|
|
82
|
-
"": "translate(-50%, 0)",
|
|
83
|
-
horizontal: "translate(0, -50%)"
|
|
84
|
-
},
|
|
85
|
-
width: {
|
|
86
|
-
"": "$grip-length",
|
|
87
|
-
horizontal: "$grip-size"
|
|
88
|
-
},
|
|
89
|
-
height: {
|
|
90
|
-
"": "$grip-size",
|
|
91
|
-
horizontal: "$grip-length"
|
|
92
|
-
},
|
|
93
|
-
radius: "round",
|
|
94
|
-
fill: {
|
|
95
|
-
"": "#dark-03",
|
|
96
|
-
drag: "#purple"
|
|
97
|
-
},
|
|
98
|
-
"$grip-size": {
|
|
99
|
-
"": "4px",
|
|
100
|
-
drag: "6px"
|
|
101
|
-
},
|
|
102
|
-
"$grip-length": {
|
|
103
|
-
"": "24px",
|
|
104
|
-
drag: "28px"
|
|
105
|
-
},
|
|
106
|
-
"$grip-inset": {
|
|
107
|
-
"": "($handle-edge-inset + ($handle-line-size - $grip-size) / 2)",
|
|
108
|
-
inward: "$handle-edge-inset"
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
TouchArea: {
|
|
112
|
-
position: "absolute",
|
|
113
|
-
hide: {
|
|
114
|
-
"": true,
|
|
115
|
-
"@media(pointer: coarse)": false
|
|
116
|
-
},
|
|
117
|
-
inset: {
|
|
118
|
-
"": "0 auto 0 $touch-inset",
|
|
119
|
-
"anchor=right": "0 $touch-inset 0 auto",
|
|
120
|
-
"anchor=top": "$touch-inset 0 auto 0",
|
|
121
|
-
"anchor=bottom": "auto 0 $touch-inset 0"
|
|
122
|
-
},
|
|
123
|
-
width: {
|
|
124
|
-
"": "auto",
|
|
125
|
-
horizontal: "$touch-size"
|
|
126
|
-
},
|
|
127
|
-
height: {
|
|
128
|
-
"": "$touch-size",
|
|
129
|
-
horizontal: "auto"
|
|
130
|
-
},
|
|
131
|
-
"$touch-size": "20px",
|
|
132
|
-
"$touch-inset": {
|
|
133
|
-
"": "($handle-edge-inset + ($handle-line-size - $touch-size) / 2)",
|
|
134
|
-
inward: "$handle-edge-inset"
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
} });
|
|
138
|
-
function LayoutResizeHandle(props) {
|
|
139
|
-
const $ = c(54);
|
|
140
|
-
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;
|
|
141
|
-
const hasEdgeLine = t0 === void 0 ? false : t0;
|
|
142
|
-
const isDragging = t1 === void 0 ? false : t1;
|
|
143
|
-
const isHorizontal = side === "left" || side === "right";
|
|
144
|
-
let t2;
|
|
145
|
-
if ($[0] !== onHoverChange) {
|
|
146
|
-
t2 = { onHoverChange };
|
|
147
|
-
$[0] = onHoverChange;
|
|
148
|
-
$[1] = t2;
|
|
149
|
-
} else t2 = $[1];
|
|
150
|
-
const { hoverProps, isHovered } = useHover(t2);
|
|
151
|
-
const { focusProps, isFocusVisible } = useFocusRing();
|
|
152
|
-
const localIsHovered = useDebouncedValue(isHovered, 150);
|
|
153
|
-
let t3;
|
|
154
|
-
if ($[2] !== onFocusChange) {
|
|
155
|
-
t3 = (isVisible) => onFocusChange?.(isVisible);
|
|
156
|
-
$[2] = onFocusChange;
|
|
157
|
-
$[3] = t3;
|
|
158
|
-
} else t3 = $[3];
|
|
159
|
-
const notifyFocusChange = useEffectEvent(t3);
|
|
160
|
-
let t4;
|
|
161
|
-
if ($[4] !== isFocusVisible || $[5] !== notifyFocusChange) {
|
|
162
|
-
t4 = () => {
|
|
163
|
-
notifyFocusChange(isFocusVisible);
|
|
164
|
-
};
|
|
165
|
-
$[4] = isFocusVisible;
|
|
166
|
-
$[5] = notifyFocusChange;
|
|
167
|
-
$[6] = t4;
|
|
168
|
-
} else t4 = $[6];
|
|
169
|
-
let t5;
|
|
170
|
-
if ($[7] !== isFocusVisible) {
|
|
171
|
-
t5 = [isFocusVisible];
|
|
172
|
-
$[7] = isFocusVisible;
|
|
173
|
-
$[8] = t5;
|
|
174
|
-
} else t5 = $[8];
|
|
175
|
-
useEffect(t4, t5);
|
|
176
|
-
const isFixed = minSize != null && maxSize != null && maxSize <= minSize;
|
|
177
|
-
const rangeMax = isFixed ? minSize : maxSize;
|
|
178
|
-
let T0;
|
|
179
|
-
let t10;
|
|
180
|
-
let t6;
|
|
181
|
-
let t7;
|
|
182
|
-
let t8;
|
|
183
|
-
let t9;
|
|
184
|
-
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) {
|
|
185
|
-
const value = Math.round(Math.max(minSize ?? 0, Math.min(rangeMax ?? Infinity, size)));
|
|
186
|
-
const limit = isFixed ? void 0 : minSize != null && value <= minSize ? "min" : maxSize != null && value >= maxSize ? "max" : void 0;
|
|
187
|
-
let t11;
|
|
188
|
-
if ($[40] !== maxSize || $[41] !== minSize || $[42] !== onJump) {
|
|
189
|
-
t11 = (event) => {
|
|
190
|
-
const target = event.key === "Home" && minSize != null ? "min" : event.key === "End" && maxSize != null ? "max" : void 0;
|
|
191
|
-
if (!target || !onJump) return;
|
|
192
|
-
event.preventDefault();
|
|
193
|
-
onJump(target);
|
|
194
|
-
};
|
|
195
|
-
$[40] = maxSize;
|
|
196
|
-
$[41] = minSize;
|
|
197
|
-
$[42] = onJump;
|
|
198
|
-
$[43] = t11;
|
|
199
|
-
} else t11 = $[43];
|
|
200
|
-
const onKeyDown = t11;
|
|
201
|
-
T0 = ResizeHandleElement;
|
|
202
|
-
t6 = qa;
|
|
203
|
-
t7 = dataElement;
|
|
204
|
-
t8 = styles;
|
|
205
|
-
t9 = tokens;
|
|
206
|
-
t10 = mergeProps$1(hoverProps, focusProps, moveProps, {
|
|
207
|
-
mods: {
|
|
208
|
-
side,
|
|
209
|
-
anchor,
|
|
210
|
-
inward: anchor !== side,
|
|
211
|
-
horizontal: isHorizontal,
|
|
212
|
-
drag: isDragging,
|
|
213
|
-
hovered: localIsHovered,
|
|
214
|
-
focused: isFocusVisible,
|
|
215
|
-
"edge-line": hasEdgeLine,
|
|
216
|
-
limit,
|
|
217
|
-
...mods
|
|
218
|
-
},
|
|
219
|
-
tabIndex: 0,
|
|
220
|
-
role: "separator",
|
|
221
|
-
"aria-orientation": isHorizontal ? "vertical" : "horizontal",
|
|
222
|
-
"aria-label": label,
|
|
223
|
-
"aria-controls": controls,
|
|
224
|
-
"aria-valuenow": value,
|
|
225
|
-
"aria-valuemin": minSize ?? 0,
|
|
226
|
-
"aria-valuemax": rangeMax ?? (valueMax == null ? void 0 : Math.max(valueMax, value)),
|
|
227
|
-
onKeyDown,
|
|
228
|
-
onDoubleClick
|
|
229
|
-
});
|
|
230
|
-
$[9] = anchor;
|
|
231
|
-
$[10] = controls;
|
|
232
|
-
$[11] = dataElement;
|
|
233
|
-
$[12] = focusProps;
|
|
234
|
-
$[13] = hasEdgeLine;
|
|
235
|
-
$[14] = hoverProps;
|
|
236
|
-
$[15] = isDragging;
|
|
237
|
-
$[16] = isFixed;
|
|
238
|
-
$[17] = isFocusVisible;
|
|
239
|
-
$[18] = isHorizontal;
|
|
240
|
-
$[19] = label;
|
|
241
|
-
$[20] = localIsHovered;
|
|
242
|
-
$[21] = maxSize;
|
|
243
|
-
$[22] = minSize;
|
|
244
|
-
$[23] = mods;
|
|
245
|
-
$[24] = moveProps;
|
|
246
|
-
$[25] = onDoubleClick;
|
|
247
|
-
$[26] = onJump;
|
|
248
|
-
$[27] = qa;
|
|
249
|
-
$[28] = rangeMax;
|
|
250
|
-
$[29] = side;
|
|
251
|
-
$[30] = size;
|
|
252
|
-
$[31] = styles;
|
|
253
|
-
$[32] = tokens;
|
|
254
|
-
$[33] = valueMax;
|
|
255
|
-
$[34] = T0;
|
|
256
|
-
$[35] = t10;
|
|
257
|
-
$[36] = t6;
|
|
258
|
-
$[37] = t7;
|
|
259
|
-
$[38] = t8;
|
|
260
|
-
$[39] = t9;
|
|
261
|
-
} else {
|
|
262
|
-
T0 = $[34];
|
|
263
|
-
t10 = $[35];
|
|
264
|
-
t6 = $[36];
|
|
265
|
-
t7 = $[37];
|
|
266
|
-
t8 = $[38];
|
|
267
|
-
t9 = $[39];
|
|
268
|
-
}
|
|
269
|
-
let t11;
|
|
270
|
-
let t12;
|
|
271
|
-
let t13;
|
|
272
|
-
if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
|
|
273
|
-
t11 = /* @__PURE__ */ jsx("div", { "data-element": "TouchArea" });
|
|
274
|
-
t12 = /* @__PURE__ */ jsx("div", { "data-element": "Line" });
|
|
275
|
-
t13 = /* @__PURE__ */ jsx("div", { "data-element": "Grip" });
|
|
276
|
-
$[44] = t11;
|
|
277
|
-
$[45] = t12;
|
|
278
|
-
$[46] = t13;
|
|
279
|
-
} else {
|
|
280
|
-
t11 = $[44];
|
|
281
|
-
t12 = $[45];
|
|
282
|
-
t13 = $[46];
|
|
283
|
-
}
|
|
284
|
-
let t14;
|
|
285
|
-
if ($[47] !== T0 || $[48] !== t10 || $[49] !== t6 || $[50] !== t7 || $[51] !== t8 || $[52] !== t9) {
|
|
286
|
-
t14 = /* @__PURE__ */ jsxs(T0, {
|
|
287
|
-
qa: t6,
|
|
288
|
-
"data-element": t7,
|
|
289
|
-
styles: t8,
|
|
290
|
-
tokens: t9,
|
|
291
|
-
...t10,
|
|
292
|
-
children: [
|
|
293
|
-
t11,
|
|
294
|
-
t12,
|
|
295
|
-
t13
|
|
296
|
-
]
|
|
297
|
-
});
|
|
298
|
-
$[47] = T0;
|
|
299
|
-
$[48] = t10;
|
|
300
|
-
$[49] = t6;
|
|
301
|
-
$[50] = t7;
|
|
302
|
-
$[51] = t8;
|
|
303
|
-
$[52] = t9;
|
|
304
|
-
$[53] = t14;
|
|
305
|
-
} else t14 = $[53];
|
|
306
|
-
return t14;
|
|
307
|
-
}
|
|
308
|
-
//#endregion
|
|
309
|
-
export { LayoutResizeHandle };
|
|
310
|
-
|
|
311
|
-
//# sourceMappingURL=LayoutResizeHandle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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","focused","outlineOffset","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","tabIndex","role","t12","t13","Symbol","for","t14","_c","mergeProps"],"sources":["../../../../src/components/content/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 '../../../_internal/hooks/use-debounced-value';\nimport { mergeProps } from '../../../utils/react/mergeProps';\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 line at `$handle-edge-inset` from its `anchor` side, which thickens\n * away from that side while the handle is in use. The grip and the touch area\n * centre on that line. 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 outline: {\n '': '$ring-width #focus.0',\n focused: '$ring-width #focus',\n },\n outlineOffset: '$outline-offset',\n transition: 'theme',\n\n // Where the line starts, from the anchor side. The owner sets it.\n '$handle-edge-inset': '0px',\n // A marker line in device pixels while the handle is in use, like the\n // table's column resizer and drop indicators.\n '$handle-line-size': '2px',\n\n // The edge. A hairline at rest, where the box has no border of its own to\n // show it; a marker line in device pixels while the handle is in use.\n Line: {\n position: 'absolute',\n inset: {\n '': '0 auto 0 $handle-edge-inset',\n 'anchor=right': '0 $handle-edge-inset 0 auto',\n 'anchor=top': '$handle-edge-inset 0 auto 0',\n 'anchor=bottom': 'auto 0 $handle-edge-inset 0',\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 line; kept inside the box where the line is drawn\n // inside it, as an item beyond the box paints over anything past it.\n '$grip-inset': {\n '': '($handle-edge-inset + ($handle-line-size - $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 line, or inside the box as the grip is.\n '$touch-inset': {\n '': '($handle-edge-inset + ($handle-line-size - $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":";;;;;;;;;;;;;;;;;;AAkBA,MAAMa,sBAAsBX,MAAM,EAChCY,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;C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