@cube-dev/ui-kit 0.221.1 → 0.222.0
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/CHANGELOG.md +10 -0
- 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 +9 -3
- package/dist/components/content/Item/Item.js.map +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 +347 -361
- package/dist/components/content/Layout/LayoutPane.js.map +1 -1
- package/dist/components/content/Layout/LayoutPanel.js +80 -219
- 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/LayoutResizeHandle.js +312 -0
- package/dist/components/content/Layout/LayoutResizeHandle.js.map +1 -0
- 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.d.ts +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 +10 -4
- package/package.json +3 -2
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
2
|
-
import { extractStyles } from "../../../utils/styles.js";
|
|
3
|
-
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.222.0 | Cube Dev Team */
|
|
2
|
+
import { extractStyles, mergeStyleLayers } from "../../../utils/styles.js";
|
|
4
3
|
import { useCombinedRefs } from "../../../utils/react/useCombinedRefs.js";
|
|
5
4
|
import { useI18n } from "../../../i18n/useI18n.js";
|
|
6
5
|
import { useDebouncedValue } from "../../../_internal/hooks/use-debounced-value.js";
|
|
7
6
|
import { filterComponentBaseProps } from "../../../utils/react/componentBaseProps.js";
|
|
8
7
|
import { LayoutContextReset } from "./LayoutContext.js";
|
|
9
8
|
import { useTinyScrollbar } from "./hooks/useTinyScrollbar.js";
|
|
9
|
+
import { LayoutResizeHandle } from "./LayoutResizeHandle.js";
|
|
10
10
|
import { clampSize } from "./utils.js";
|
|
11
11
|
import { c } from "react/compiler-runtime";
|
|
12
12
|
import { INNER_STYLES, OUTER_STYLES, mergeStyles, tasty } from "@tenphi/tasty";
|
|
13
|
-
import { forwardRef, useEffect, useEffectEvent, useRef, useState } from "react";
|
|
13
|
+
import { forwardRef, useEffect, useEffectEvent, useId, useRef, useState } from "react";
|
|
14
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
import {
|
|
15
|
+
import { useHover, useMove } from "react-aria";
|
|
16
16
|
//#region src/components/content/Layout/LayoutPane.tsx
|
|
17
17
|
const HANDLER_WIDTH = 9;
|
|
18
18
|
const HANDLER_RESERVED = 5;
|
|
@@ -30,12 +30,17 @@ function getDrawnSize(element, isHorizontal) {
|
|
|
30
30
|
function givesWay(element) {
|
|
31
31
|
return parseFloat(getComputedStyle(element).flexShrink) > 0;
|
|
32
32
|
}
|
|
33
|
+
/** A container's content size along an axis: the room its items have. */
|
|
34
|
+
function getAvailableSize(container, isHorizontal) {
|
|
35
|
+
const style = getComputedStyle(container);
|
|
36
|
+
return isHorizontal ? container.clientWidth - parseFloat(style.paddingLeft) - parseFloat(style.paddingRight) : container.clientHeight - parseFloat(style.paddingTop) - parseFloat(style.paddingBottom);
|
|
37
|
+
}
|
|
33
38
|
/** How far a flex container's items run past its content box. */
|
|
34
39
|
function getOverflow(container, isHorizontal) {
|
|
35
40
|
const style = getComputedStyle(container);
|
|
36
41
|
const rect = container.getBoundingClientRect();
|
|
37
42
|
const scale = (isHorizontal ? rect.width / container.offsetWidth : rect.height / container.offsetHeight) || 1;
|
|
38
|
-
const available =
|
|
43
|
+
const available = getAvailableSize(container, isHorizontal);
|
|
39
44
|
let used = 0;
|
|
40
45
|
let count = 0;
|
|
41
46
|
for (const item of Array.from(container.children)) {
|
|
@@ -152,169 +157,39 @@ const PaneElement = tasty({
|
|
|
152
157
|
},
|
|
153
158
|
transition: "opacity $scrollbar-transition",
|
|
154
159
|
pointerEvents: "none"
|
|
155
|
-
},
|
|
156
|
-
ResizeHandler: {
|
|
157
|
-
position: "absolute",
|
|
158
|
-
width: {
|
|
159
|
-
"": "100%",
|
|
160
|
-
"edge=right": `${HANDLER_WIDTH}px`
|
|
161
|
-
},
|
|
162
|
-
height: {
|
|
163
|
-
"": `${HANDLER_WIDTH}px`,
|
|
164
|
-
"edge=right": "100%"
|
|
165
|
-
},
|
|
166
|
-
right: {
|
|
167
|
-
"": "initial",
|
|
168
|
-
"edge=right": `-2px`
|
|
169
|
-
},
|
|
170
|
-
bottom: {
|
|
171
|
-
"": `-2px`,
|
|
172
|
-
"edge=right": "initial"
|
|
173
|
-
},
|
|
174
|
-
top: {
|
|
175
|
-
"": "initial",
|
|
176
|
-
"edge=right": 0
|
|
177
|
-
},
|
|
178
|
-
left: {
|
|
179
|
-
"": 0,
|
|
180
|
-
"edge=right": "initial"
|
|
181
|
-
},
|
|
182
|
-
cursor: {
|
|
183
|
-
"": "row-resize",
|
|
184
|
-
"edge=right": "col-resize",
|
|
185
|
-
disabled: "not-allowed"
|
|
186
|
-
},
|
|
187
|
-
padding: 0,
|
|
188
|
-
outline: 0,
|
|
189
|
-
boxSizing: "border-box",
|
|
190
|
-
transition: "theme"
|
|
191
|
-
},
|
|
192
|
-
Drag: {
|
|
193
|
-
"$grip-size": "3px",
|
|
194
|
-
"$dot-gap": "2px",
|
|
195
|
-
display: "grid",
|
|
196
|
-
gap: "$dot-gap",
|
|
197
|
-
border: 0,
|
|
198
|
-
flow: {
|
|
199
|
-
"": "row",
|
|
200
|
-
"edge=right": "column"
|
|
201
|
-
},
|
|
202
|
-
gridColumns: {
|
|
203
|
-
"": "repeat(5, $grip-size)",
|
|
204
|
-
"edge=right": "auto"
|
|
205
|
-
},
|
|
206
|
-
gridRows: {
|
|
207
|
-
"": "auto",
|
|
208
|
-
"edge=right": "repeat(5, $grip-size)"
|
|
209
|
-
},
|
|
210
|
-
width: {
|
|
211
|
-
"": "auto",
|
|
212
|
-
"edge=right": "$grip-size"
|
|
213
|
-
},
|
|
214
|
-
height: {
|
|
215
|
-
"": "$grip-size",
|
|
216
|
-
"edge=right": "auto"
|
|
217
|
-
},
|
|
218
|
-
position: "absolute",
|
|
219
|
-
top: "50%",
|
|
220
|
-
left: "50%",
|
|
221
|
-
transform: "translate(-50%, -50%)",
|
|
222
|
-
transition: "theme",
|
|
223
|
-
radius: "round",
|
|
224
|
-
outline: {
|
|
225
|
-
"": "0",
|
|
226
|
-
"focused | drag": "$ring-width #primary-text"
|
|
227
|
-
},
|
|
228
|
-
outlineOffset: "$outline-offset"
|
|
229
|
-
},
|
|
230
|
-
DragPart: {
|
|
231
|
-
radius: true,
|
|
232
|
-
fill: {
|
|
233
|
-
"": "#dark-03",
|
|
234
|
-
"handlerHovered | drag | focused": "#primary-text",
|
|
235
|
-
disabled: "#disabled-surface-text"
|
|
236
|
-
}
|
|
237
160
|
}
|
|
238
161
|
}
|
|
239
162
|
});
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
$
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
t2 = $[5];
|
|
163
|
+
const PANE_HANDLE_STYLES = {
|
|
164
|
+
"$handle-size": `${HANDLER_WIDTH}px`,
|
|
165
|
+
"$handle-edge-inset": `2px`,
|
|
166
|
+
width: {
|
|
167
|
+
"": "100%",
|
|
168
|
+
horizontal: "$handle-size"
|
|
169
|
+
},
|
|
170
|
+
height: {
|
|
171
|
+
"": "$handle-size",
|
|
172
|
+
horizontal: "100%"
|
|
173
|
+
},
|
|
174
|
+
right: {
|
|
175
|
+
"": "initial",
|
|
176
|
+
horizontal: `-2px`
|
|
177
|
+
},
|
|
178
|
+
bottom: {
|
|
179
|
+
"": `-2px`,
|
|
180
|
+
horizontal: "initial"
|
|
181
|
+
},
|
|
182
|
+
top: {
|
|
183
|
+
"": "initial",
|
|
184
|
+
horizontal: 0
|
|
185
|
+
},
|
|
186
|
+
left: {
|
|
187
|
+
"": 0,
|
|
188
|
+
horizontal: "initial"
|
|
267
189
|
}
|
|
268
|
-
|
|
269
|
-
let t3;
|
|
270
|
-
if ($[6] !== edge || $[7] !== focusProps || $[8] !== hoverProps || $[9] !== isDisabled || $[10] !== isHorizontal || $[11] !== moveProps || $[12] !== onDoubleClick || $[13] !== t) {
|
|
271
|
-
t3 = mergeProps$1(hoverProps, focusProps, isDisabled ? {} : moveProps, {
|
|
272
|
-
tabIndex: isDisabled ? void 0 : 0,
|
|
273
|
-
role: "separator",
|
|
274
|
-
"aria-orientation": isHorizontal ? "vertical" : "horizontal",
|
|
275
|
-
"aria-label": edge === "right" ? t("layout.resizePaneRight", "Resize pane right") : t("layout.resizePaneBottom", "Resize pane bottom"),
|
|
276
|
-
onDoubleClick: isDisabled ? void 0 : onDoubleClick
|
|
277
|
-
});
|
|
278
|
-
$[6] = edge;
|
|
279
|
-
$[7] = focusProps;
|
|
280
|
-
$[8] = hoverProps;
|
|
281
|
-
$[9] = isDisabled;
|
|
282
|
-
$[10] = isHorizontal;
|
|
283
|
-
$[11] = moveProps;
|
|
284
|
-
$[12] = onDoubleClick;
|
|
285
|
-
$[13] = t;
|
|
286
|
-
$[14] = t3;
|
|
287
|
-
} else t3 = $[14];
|
|
288
|
-
let t4;
|
|
289
|
-
if ($[15] !== isDisabled) {
|
|
290
|
-
t4 = !isDisabled && /* @__PURE__ */ jsxs("div", {
|
|
291
|
-
"data-element": "Drag",
|
|
292
|
-
children: [
|
|
293
|
-
/* @__PURE__ */ jsx("div", { "data-element": "DragPart" }),
|
|
294
|
-
/* @__PURE__ */ jsx("div", { "data-element": "DragPart" }),
|
|
295
|
-
/* @__PURE__ */ jsx("div", { "data-element": "DragPart" }),
|
|
296
|
-
/* @__PURE__ */ jsx("div", { "data-element": "DragPart" }),
|
|
297
|
-
/* @__PURE__ */ jsx("div", { "data-element": "DragPart" })
|
|
298
|
-
]
|
|
299
|
-
});
|
|
300
|
-
$[15] = isDisabled;
|
|
301
|
-
$[16] = t4;
|
|
302
|
-
} else t4 = $[16];
|
|
303
|
-
let t5;
|
|
304
|
-
if ($[17] !== t3 || $[18] !== t4) {
|
|
305
|
-
t5 = /* @__PURE__ */ jsx("div", {
|
|
306
|
-
"data-element": "ResizeHandler",
|
|
307
|
-
...t3,
|
|
308
|
-
children: t4
|
|
309
|
-
});
|
|
310
|
-
$[17] = t3;
|
|
311
|
-
$[18] = t4;
|
|
312
|
-
$[19] = t5;
|
|
313
|
-
} else t5 = $[19];
|
|
314
|
-
return t5;
|
|
315
|
-
}
|
|
190
|
+
};
|
|
316
191
|
function LayoutPane(props, ref) {
|
|
317
|
-
const $ = c(
|
|
192
|
+
const $ = c(125);
|
|
318
193
|
const { resizeEdge: t0, isResizable: t1, size: providedSize, defaultSize: t2, minSize, maxSize, onSizeChange, scrollbar: t3, styles, mods, children, innerRef: innerRefProp, innerProps, ...otherProps } = props;
|
|
319
194
|
const resizeEdge = t0 === void 0 ? "right" : t0;
|
|
320
195
|
const isResizable = t1 === void 0 ? false : t1;
|
|
@@ -325,6 +200,9 @@ function LayoutPane(props, ref) {
|
|
|
325
200
|
const combinedInnerRef = useCombinedRefs(innerRefProp, internalInnerRef);
|
|
326
201
|
const prevProvidedSizeRef = useRef(providedSize);
|
|
327
202
|
const isHorizontal = resizeEdge === "right";
|
|
203
|
+
const { t } = useI18n();
|
|
204
|
+
const generatedId = useId();
|
|
205
|
+
const paneId = otherProps.id ?? generatedId;
|
|
328
206
|
const [isDragging, setIsDragging] = useState(false);
|
|
329
207
|
const [isHandlerHovered, setIsHandlerHovered] = useState(false);
|
|
330
208
|
const [isHandlerFocused, setIsHandlerFocused] = useState(false);
|
|
@@ -425,71 +303,149 @@ function LayoutPane(props, ref) {
|
|
|
425
303
|
} else t8 = $[16];
|
|
426
304
|
const endMove = t8;
|
|
427
305
|
let t9;
|
|
428
|
-
if ($[17] !== beginMove || $[18] !==
|
|
429
|
-
t9 = {
|
|
306
|
+
if ($[17] !== beginMove || $[18] !== combinedRef) {
|
|
307
|
+
t9 = (pointerType_0) => {
|
|
308
|
+
const move_1 = moveRef.current ?? beginMove(combinedRef.current, pointerType_0);
|
|
309
|
+
moveRef.current = move_1;
|
|
310
|
+
return move_1;
|
|
311
|
+
};
|
|
312
|
+
$[17] = beginMove;
|
|
313
|
+
$[18] = combinedRef;
|
|
314
|
+
$[19] = t9;
|
|
315
|
+
} else t9 = $[19];
|
|
316
|
+
const continueMove = t9;
|
|
317
|
+
let t10;
|
|
318
|
+
if ($[20] !== clampValue || $[21] !== combinedRef || $[22] !== isHorizontal) {
|
|
319
|
+
t10 = (move_2, delta) => {
|
|
320
|
+
const pane_1 = combinedRef.current;
|
|
321
|
+
move_2.target = move_2.target + delta;
|
|
322
|
+
let next = clampValue(move_2.target);
|
|
323
|
+
if (!move_2.container) move_2.target = next;
|
|
324
|
+
else {
|
|
325
|
+
setPaneSize(pane_1, next);
|
|
326
|
+
if (next > move_2.size) {
|
|
327
|
+
const excess = getOverflow(move_2.container, isHorizontal) - move_2.maxOverflow;
|
|
328
|
+
if (excess > 0) {
|
|
329
|
+
next = Math.max(next - excess, move_2.size);
|
|
330
|
+
setPaneSize(pane_1, next);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
move_2.size = next;
|
|
335
|
+
setSize(next);
|
|
336
|
+
};
|
|
337
|
+
$[20] = clampValue;
|
|
338
|
+
$[21] = combinedRef;
|
|
339
|
+
$[22] = isHorizontal;
|
|
340
|
+
$[23] = t10;
|
|
341
|
+
} else t10 = $[23];
|
|
342
|
+
const moveBy = t10;
|
|
343
|
+
let t11;
|
|
344
|
+
if ($[24] !== endMove) {
|
|
345
|
+
t11 = (pointerType_1) => {
|
|
346
|
+
const move_3 = moveRef.current;
|
|
347
|
+
if (move_3?.container && move_3.pointerType !== pointerType_1) return;
|
|
348
|
+
moveRef.current = null;
|
|
349
|
+
setIsDragging(false);
|
|
350
|
+
if (move_3) endMove(move_3);
|
|
351
|
+
};
|
|
352
|
+
$[24] = endMove;
|
|
353
|
+
$[25] = t11;
|
|
354
|
+
} else t11 = $[25];
|
|
355
|
+
const finishMove = t11;
|
|
356
|
+
let t12;
|
|
357
|
+
if ($[26] !== continueMove || $[27] !== finishMove || $[28] !== isHorizontal || $[29] !== isResizable || $[30] !== moveBy) {
|
|
358
|
+
t12 = {
|
|
430
359
|
onMoveStart() {
|
|
431
360
|
if (!isResizable) return;
|
|
432
361
|
setIsDragging(true);
|
|
433
362
|
},
|
|
434
363
|
onMove(e) {
|
|
435
364
|
if (!isResizable) return;
|
|
436
|
-
let
|
|
365
|
+
let delta_0;
|
|
437
366
|
if (e.pointerType === "keyboard") {
|
|
438
367
|
const step = e.shiftKey ? 50 : 10;
|
|
439
|
-
|
|
440
|
-
} else
|
|
441
|
-
if (!
|
|
442
|
-
|
|
443
|
-
const move_1 = moveRef.current ?? beginMove(pane_1, e.pointerType);
|
|
444
|
-
moveRef.current = move_1;
|
|
445
|
-
move_1.target = move_1.target + delta;
|
|
446
|
-
let next = clampValue(move_1.target);
|
|
447
|
-
if (!move_1.container) move_1.target = next;
|
|
448
|
-
else {
|
|
449
|
-
setPaneSize(pane_1, next);
|
|
450
|
-
if (next > move_1.size) {
|
|
451
|
-
const excess = getOverflow(move_1.container, isHorizontal) - move_1.maxOverflow;
|
|
452
|
-
if (excess > 0) {
|
|
453
|
-
next = Math.max(next - excess, move_1.size);
|
|
454
|
-
setPaneSize(pane_1, next);
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
move_1.size = next;
|
|
459
|
-
setSize(next);
|
|
368
|
+
delta_0 = (isHorizontal ? e.deltaX : e.deltaY) * step;
|
|
369
|
+
} else delta_0 = isHorizontal ? e.deltaX : e.deltaY;
|
|
370
|
+
if (!delta_0) return;
|
|
371
|
+
moveBy(continueMove(e.pointerType), delta_0);
|
|
460
372
|
},
|
|
461
373
|
onMoveEnd(e_0) {
|
|
462
|
-
|
|
463
|
-
if (move_2?.container && move_2.pointerType !== e_0.pointerType) return;
|
|
464
|
-
moveRef.current = null;
|
|
465
|
-
setIsDragging(false);
|
|
466
|
-
if (move_2) endMove(move_2);
|
|
374
|
+
finishMove(e_0.pointerType);
|
|
467
375
|
}
|
|
468
376
|
};
|
|
469
|
-
$[
|
|
470
|
-
$[
|
|
471
|
-
$[
|
|
472
|
-
$[
|
|
473
|
-
$[
|
|
474
|
-
$[
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
const
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
377
|
+
$[26] = continueMove;
|
|
378
|
+
$[27] = finishMove;
|
|
379
|
+
$[28] = isHorizontal;
|
|
380
|
+
$[29] = isResizable;
|
|
381
|
+
$[30] = moveBy;
|
|
382
|
+
$[31] = t12;
|
|
383
|
+
} else t12 = $[31];
|
|
384
|
+
const { moveProps } = useMove(t12);
|
|
385
|
+
const minSizePx = typeof minSize === "number" ? minSize : void 0;
|
|
386
|
+
const maxSizePx = typeof maxSize === "number" ? maxSize : void 0;
|
|
387
|
+
const [containerSize, setContainerSize] = useState();
|
|
388
|
+
const measuresContainer = isResizable && maxSizePx == null;
|
|
389
|
+
let t13;
|
|
390
|
+
let t14;
|
|
391
|
+
if ($[32] !== combinedRef || $[33] !== isHorizontal || $[34] !== measuresContainer) {
|
|
392
|
+
t13 = () => {
|
|
393
|
+
const container = combinedRef.current?.parentElement;
|
|
394
|
+
if (!measuresContainer || !container) return;
|
|
395
|
+
const observer = new ResizeObserver(() => {
|
|
396
|
+
const room = Math.round(getAvailableSize(container, isHorizontal));
|
|
397
|
+
setContainerSize(room > 0 ? room : void 0);
|
|
398
|
+
});
|
|
399
|
+
observer.observe(container);
|
|
400
|
+
return () => observer.disconnect();
|
|
401
|
+
};
|
|
402
|
+
t14 = [
|
|
403
|
+
combinedRef,
|
|
404
|
+
measuresContainer,
|
|
405
|
+
isHorizontal
|
|
406
|
+
];
|
|
407
|
+
$[32] = combinedRef;
|
|
408
|
+
$[33] = isHorizontal;
|
|
409
|
+
$[34] = measuresContainer;
|
|
410
|
+
$[35] = t13;
|
|
411
|
+
$[36] = t14;
|
|
412
|
+
} else {
|
|
413
|
+
t13 = $[35];
|
|
414
|
+
t14 = $[36];
|
|
415
|
+
}
|
|
416
|
+
useEffect(t13, t14);
|
|
417
|
+
let t15;
|
|
418
|
+
if ($[37] !== continueMove || $[38] !== finishMove || $[39] !== maxSizePx || $[40] !== minSizePx || $[41] !== moveBy) {
|
|
419
|
+
t15 = (limit) => {
|
|
420
|
+
const target = limit === "min" ? minSizePx : maxSizePx;
|
|
421
|
+
if (target == null) return;
|
|
422
|
+
const move_4 = continueMove("keyboard");
|
|
423
|
+
moveBy(move_4, target - move_4.target);
|
|
424
|
+
finishMove("keyboard");
|
|
425
|
+
};
|
|
426
|
+
$[37] = continueMove;
|
|
427
|
+
$[38] = finishMove;
|
|
428
|
+
$[39] = maxSizePx;
|
|
429
|
+
$[40] = minSizePx;
|
|
430
|
+
$[41] = moveBy;
|
|
431
|
+
$[42] = t15;
|
|
432
|
+
} else t15 = $[42];
|
|
433
|
+
const handleJump = t15;
|
|
434
|
+
let t16;
|
|
435
|
+
if ($[43] !== combinedRef || $[44] !== onSizeChange) {
|
|
436
|
+
t16 = (drawn_0) => {
|
|
481
437
|
setPaneSize(combinedRef.current, drawn_0);
|
|
482
438
|
setSize(drawn_0);
|
|
483
439
|
onSizeChange?.(drawn_0);
|
|
484
440
|
};
|
|
485
|
-
$[
|
|
486
|
-
$[
|
|
487
|
-
$[
|
|
488
|
-
} else
|
|
489
|
-
const adoptSize = useEffectEvent(
|
|
490
|
-
let
|
|
491
|
-
if ($[
|
|
492
|
-
|
|
441
|
+
$[43] = combinedRef;
|
|
442
|
+
$[44] = onSizeChange;
|
|
443
|
+
$[45] = t16;
|
|
444
|
+
} else t16 = $[45];
|
|
445
|
+
const adoptSize = useEffectEvent(t16);
|
|
446
|
+
let t17;
|
|
447
|
+
if ($[46] !== adoptSize || $[47] !== combinedRef || $[48] !== isHorizontal) {
|
|
448
|
+
t17 = () => {
|
|
493
449
|
const pane_2 = combinedRef.current;
|
|
494
450
|
mountedPanes.set(pane_2, {
|
|
495
451
|
isHorizontal,
|
|
@@ -501,203 +457,233 @@ function LayoutPane(props, ref) {
|
|
|
501
457
|
moveRef.current = null;
|
|
502
458
|
};
|
|
503
459
|
};
|
|
504
|
-
$[
|
|
505
|
-
$[
|
|
506
|
-
$[
|
|
507
|
-
$[
|
|
508
|
-
} else
|
|
509
|
-
let
|
|
510
|
-
if ($[
|
|
511
|
-
|
|
512
|
-
$[
|
|
513
|
-
$[
|
|
514
|
-
$[
|
|
515
|
-
} else
|
|
516
|
-
useEffect(
|
|
517
|
-
let
|
|
518
|
-
let
|
|
519
|
-
if ($[
|
|
520
|
-
|
|
460
|
+
$[46] = adoptSize;
|
|
461
|
+
$[47] = combinedRef;
|
|
462
|
+
$[48] = isHorizontal;
|
|
463
|
+
$[49] = t17;
|
|
464
|
+
} else t17 = $[49];
|
|
465
|
+
let t18;
|
|
466
|
+
if ($[50] !== combinedRef || $[51] !== isHorizontal) {
|
|
467
|
+
t18 = [combinedRef, isHorizontal];
|
|
468
|
+
$[50] = combinedRef;
|
|
469
|
+
$[51] = isHorizontal;
|
|
470
|
+
$[52] = t18;
|
|
471
|
+
} else t18 = $[52];
|
|
472
|
+
useEffect(t17, t18);
|
|
473
|
+
let t19;
|
|
474
|
+
let t20;
|
|
475
|
+
if ($[53] !== clampValue || $[54] !== isDragging || $[55] !== providedSize) {
|
|
476
|
+
t19 = () => {
|
|
521
477
|
if (prevProvidedSizeRef.current !== providedSize) {
|
|
522
478
|
prevProvidedSizeRef.current = providedSize;
|
|
523
479
|
if (typeof providedSize === "number" && !isDragging) setSize(clampValue(providedSize));
|
|
524
480
|
}
|
|
525
481
|
};
|
|
526
|
-
|
|
482
|
+
t20 = [
|
|
527
483
|
providedSize,
|
|
528
484
|
isDragging,
|
|
529
485
|
clampValue
|
|
530
486
|
];
|
|
531
|
-
$[
|
|
532
|
-
$[
|
|
533
|
-
$[
|
|
534
|
-
$[
|
|
535
|
-
$[
|
|
487
|
+
$[53] = clampValue;
|
|
488
|
+
$[54] = isDragging;
|
|
489
|
+
$[55] = providedSize;
|
|
490
|
+
$[56] = t19;
|
|
491
|
+
$[57] = t20;
|
|
536
492
|
} else {
|
|
537
|
-
|
|
538
|
-
|
|
493
|
+
t19 = $[56];
|
|
494
|
+
t20 = $[57];
|
|
539
495
|
}
|
|
540
|
-
useEffect(
|
|
541
|
-
let
|
|
542
|
-
if ($[
|
|
543
|
-
|
|
496
|
+
useEffect(t19, t20);
|
|
497
|
+
let t21;
|
|
498
|
+
if ($[58] !== clampValue || $[59] !== defaultSize || $[60] !== onSizeChange) {
|
|
499
|
+
t21 = () => {
|
|
544
500
|
const clampedSize = clampValue((typeof defaultSize === "number" ? defaultSize : parseInt(defaultSize, 10)) || 200);
|
|
545
501
|
setSize(clampedSize);
|
|
546
502
|
onSizeChange?.(clampedSize);
|
|
547
503
|
};
|
|
548
|
-
$[
|
|
549
|
-
$[
|
|
550
|
-
$[
|
|
551
|
-
$[
|
|
552
|
-
} else
|
|
553
|
-
const handleResetSize =
|
|
554
|
-
let
|
|
555
|
-
if ($[
|
|
556
|
-
|
|
504
|
+
$[58] = clampValue;
|
|
505
|
+
$[59] = defaultSize;
|
|
506
|
+
$[60] = onSizeChange;
|
|
507
|
+
$[61] = t21;
|
|
508
|
+
} else t21 = $[61];
|
|
509
|
+
const handleResetSize = t21;
|
|
510
|
+
let t22;
|
|
511
|
+
if ($[62] !== handleHTokens || $[63] !== handleVTokens || $[64] !== isTinyScrollbar) {
|
|
512
|
+
t22 = isTinyScrollbar ? {
|
|
557
513
|
...handleVTokens,
|
|
558
514
|
...handleHTokens
|
|
559
515
|
} : void 0;
|
|
560
|
-
$[
|
|
561
|
-
$[
|
|
562
|
-
$[
|
|
563
|
-
$[
|
|
564
|
-
} else
|
|
565
|
-
const scrollbarTokens =
|
|
566
|
-
const
|
|
567
|
-
let
|
|
568
|
-
if ($[
|
|
569
|
-
|
|
516
|
+
$[62] = handleHTokens;
|
|
517
|
+
$[63] = handleVTokens;
|
|
518
|
+
$[64] = isTinyScrollbar;
|
|
519
|
+
$[65] = t22;
|
|
520
|
+
} else t22 = $[65];
|
|
521
|
+
const scrollbarTokens = t22;
|
|
522
|
+
const t23 = !isResizable;
|
|
523
|
+
let t24;
|
|
524
|
+
if ($[66] !== debouncedHandlerHovered || $[67] !== isDragging || $[68] !== isHandlerFocused || $[69] !== isHovered || $[70] !== isScrolling || $[71] !== mods || $[72] !== resizeEdge || $[73] !== scrollbar || $[74] !== t23) {
|
|
525
|
+
t24 = {
|
|
570
526
|
scrollbar,
|
|
571
527
|
hovered: isHovered,
|
|
572
528
|
scrolling: isScrolling,
|
|
573
529
|
handlerHovered: debouncedHandlerHovered,
|
|
574
530
|
focused: isHandlerFocused,
|
|
575
|
-
disabled:
|
|
531
|
+
disabled: t23,
|
|
576
532
|
edge: resizeEdge,
|
|
577
533
|
drag: isDragging,
|
|
578
534
|
...mods
|
|
579
535
|
};
|
|
580
|
-
$[
|
|
581
|
-
$[
|
|
582
|
-
$[
|
|
583
|
-
$[
|
|
584
|
-
$[
|
|
585
|
-
$[
|
|
586
|
-
$[
|
|
587
|
-
$[
|
|
588
|
-
$[
|
|
589
|
-
$[
|
|
590
|
-
} else
|
|
591
|
-
const paneMods =
|
|
592
|
-
const
|
|
593
|
-
const
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
536
|
+
$[66] = debouncedHandlerHovered;
|
|
537
|
+
$[67] = isDragging;
|
|
538
|
+
$[68] = isHandlerFocused;
|
|
539
|
+
$[69] = isHovered;
|
|
540
|
+
$[70] = isScrolling;
|
|
541
|
+
$[71] = mods;
|
|
542
|
+
$[72] = resizeEdge;
|
|
543
|
+
$[73] = scrollbar;
|
|
544
|
+
$[74] = t23;
|
|
545
|
+
$[75] = t24;
|
|
546
|
+
} else t24 = $[75];
|
|
547
|
+
const paneMods = t24;
|
|
548
|
+
const { Line, Grip, TouchArea, ...paneStyles } = styles ?? {};
|
|
549
|
+
const handleStyles = Line ?? Grip ?? TouchArea ? mergeStyleLayers(PANE_HANDLE_STYLES, {
|
|
550
|
+
Line,
|
|
551
|
+
Grip,
|
|
552
|
+
TouchArea
|
|
553
|
+
}) : PANE_HANDLE_STYLES;
|
|
554
|
+
const finalStyles = mergeStyles(paneStyles, outerStyles, innerStyles ? { Inner: innerStyles } : null);
|
|
555
|
+
const t25 = `${size}px`;
|
|
556
|
+
const t26 = minSize == null ? "initial" : typeof minSize === "number" ? `${minSize}px` : minSize;
|
|
557
|
+
let t27;
|
|
558
|
+
if ($[76] !== scrollbarTokens || $[77] !== t25 || $[78] !== t26) {
|
|
559
|
+
t27 = {
|
|
598
560
|
...scrollbarTokens,
|
|
599
|
-
"$pane-size":
|
|
600
|
-
"$pane-min-size":
|
|
561
|
+
"$pane-size": t25,
|
|
562
|
+
"$pane-min-size": t26
|
|
601
563
|
};
|
|
602
|
-
$[
|
|
603
|
-
$[
|
|
604
|
-
$[
|
|
605
|
-
$[
|
|
606
|
-
} else
|
|
607
|
-
const paneTokens =
|
|
564
|
+
$[76] = scrollbarTokens;
|
|
565
|
+
$[77] = t25;
|
|
566
|
+
$[78] = t26;
|
|
567
|
+
$[79] = t27;
|
|
568
|
+
} else t27 = $[79];
|
|
569
|
+
const paneTokens = t27;
|
|
608
570
|
const T0 = PaneElement;
|
|
609
|
-
const
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
571
|
+
const t28 = filterComponentBaseProps(otherProps, { eventProps: true });
|
|
572
|
+
const t29 = isResizable ? paneId : otherProps.id;
|
|
573
|
+
let t30;
|
|
574
|
+
if ($[80] !== otherProps.tokens || $[81] !== paneTokens) {
|
|
575
|
+
t30 = {
|
|
613
576
|
...paneTokens,
|
|
614
577
|
...otherProps.tokens
|
|
615
578
|
};
|
|
616
|
-
$[
|
|
617
|
-
$[
|
|
618
|
-
$[
|
|
619
|
-
} else
|
|
620
|
-
let
|
|
621
|
-
if ($[
|
|
622
|
-
|
|
623
|
-
$[
|
|
624
|
-
$[
|
|
625
|
-
} else
|
|
626
|
-
let
|
|
627
|
-
if ($[
|
|
628
|
-
|
|
579
|
+
$[80] = otherProps.tokens;
|
|
580
|
+
$[81] = paneTokens;
|
|
581
|
+
$[82] = t30;
|
|
582
|
+
} else t30 = $[82];
|
|
583
|
+
let t31;
|
|
584
|
+
if ($[83] !== children) {
|
|
585
|
+
t31 = /* @__PURE__ */ jsx(LayoutContextReset, { children });
|
|
586
|
+
$[83] = children;
|
|
587
|
+
$[84] = t31;
|
|
588
|
+
} else t31 = $[84];
|
|
589
|
+
let t32;
|
|
590
|
+
if ($[85] !== combinedInnerRef || $[86] !== innerProps || $[87] !== t31) {
|
|
591
|
+
t32 = /* @__PURE__ */ jsx("div", {
|
|
629
592
|
ref: combinedInnerRef,
|
|
630
593
|
"data-element": "Inner",
|
|
631
594
|
...innerProps,
|
|
632
|
-
children:
|
|
595
|
+
children: t31
|
|
633
596
|
});
|
|
634
|
-
$[
|
|
635
|
-
$[
|
|
636
|
-
$[
|
|
637
|
-
$[
|
|
638
|
-
} else
|
|
639
|
-
let
|
|
640
|
-
if ($[
|
|
641
|
-
|
|
642
|
-
$[
|
|
643
|
-
$[
|
|
644
|
-
$[
|
|
645
|
-
} else
|
|
646
|
-
let
|
|
647
|
-
if ($[
|
|
648
|
-
|
|
649
|
-
$[
|
|
650
|
-
$[
|
|
651
|
-
$[
|
|
652
|
-
} else
|
|
653
|
-
let
|
|
654
|
-
if ($[
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
597
|
+
$[85] = combinedInnerRef;
|
|
598
|
+
$[86] = innerProps;
|
|
599
|
+
$[87] = t31;
|
|
600
|
+
$[88] = t32;
|
|
601
|
+
} else t32 = $[88];
|
|
602
|
+
let t33;
|
|
603
|
+
if ($[89] !== hasOverflowY || $[90] !== isTinyScrollbar) {
|
|
604
|
+
t33 = isTinyScrollbar && hasOverflowY && /* @__PURE__ */ jsx("div", { "data-element": "ScrollbarV" });
|
|
605
|
+
$[89] = hasOverflowY;
|
|
606
|
+
$[90] = isTinyScrollbar;
|
|
607
|
+
$[91] = t33;
|
|
608
|
+
} else t33 = $[91];
|
|
609
|
+
let t34;
|
|
610
|
+
if ($[92] !== hasOverflowX || $[93] !== isTinyScrollbar) {
|
|
611
|
+
t34 = isTinyScrollbar && hasOverflowX && /* @__PURE__ */ jsx("div", { "data-element": "ScrollbarH" });
|
|
612
|
+
$[92] = hasOverflowX;
|
|
613
|
+
$[93] = isTinyScrollbar;
|
|
614
|
+
$[94] = t34;
|
|
615
|
+
} else t34 = $[94];
|
|
616
|
+
let t35;
|
|
617
|
+
if ($[95] !== containerSize || $[96] !== handleJump || $[97] !== handleResetSize || $[98] !== handleStyles || $[99] !== isDragging || $[100] !== isHorizontal || $[101] !== isResizable || $[102] !== maxSizePx || $[103] !== minSizePx || $[104] !== moveProps || $[105] !== paneId || $[106] !== resizeEdge || $[107] !== setIsHandlerFocused || $[108] !== setIsHandlerHovered || $[109] !== size || $[110] !== t) {
|
|
618
|
+
t35 = isResizable && /* @__PURE__ */ jsx(LayoutResizeHandle, {
|
|
619
|
+
"data-element": "ResizeHandler",
|
|
620
|
+
side: isHorizontal ? "left" : "top",
|
|
621
|
+
anchor: resizeEdge,
|
|
622
|
+
hasEdgeLine: true,
|
|
623
|
+
label: isHorizontal ? t("layout.resizePaneRight", "Resize pane right") : t("layout.resizePaneBottom", "Resize pane bottom"),
|
|
624
|
+
controls: paneId,
|
|
625
|
+
size,
|
|
626
|
+
minSize: minSizePx,
|
|
627
|
+
maxSize: maxSizePx,
|
|
628
|
+
valueMax: containerSize,
|
|
629
|
+
isDragging,
|
|
630
|
+
styles: handleStyles,
|
|
658
631
|
moveProps,
|
|
632
|
+
onJump: handleJump,
|
|
659
633
|
onDoubleClick: handleResetSize,
|
|
660
634
|
onHoverChange: setIsHandlerHovered,
|
|
661
635
|
onFocusChange: setIsHandlerFocused
|
|
662
636
|
});
|
|
663
|
-
$[
|
|
664
|
-
$[
|
|
665
|
-
$[
|
|
666
|
-
$[
|
|
667
|
-
$[
|
|
668
|
-
$[
|
|
669
|
-
$[
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
637
|
+
$[95] = containerSize;
|
|
638
|
+
$[96] = handleJump;
|
|
639
|
+
$[97] = handleResetSize;
|
|
640
|
+
$[98] = handleStyles;
|
|
641
|
+
$[99] = isDragging;
|
|
642
|
+
$[100] = isHorizontal;
|
|
643
|
+
$[101] = isResizable;
|
|
644
|
+
$[102] = maxSizePx;
|
|
645
|
+
$[103] = minSizePx;
|
|
646
|
+
$[104] = moveProps;
|
|
647
|
+
$[105] = paneId;
|
|
648
|
+
$[106] = resizeEdge;
|
|
649
|
+
$[107] = setIsHandlerFocused;
|
|
650
|
+
$[108] = setIsHandlerHovered;
|
|
651
|
+
$[109] = size;
|
|
652
|
+
$[110] = t;
|
|
653
|
+
$[111] = t35;
|
|
654
|
+
} else t35 = $[111];
|
|
655
|
+
let t36;
|
|
656
|
+
if ($[112] !== T0 || $[113] !== combinedRef || $[114] !== finalStyles || $[115] !== hoverProps || $[116] !== paneMods || $[117] !== t28 || $[118] !== t29 || $[119] !== t30 || $[120] !== t32 || $[121] !== t33 || $[122] !== t34 || $[123] !== t35) {
|
|
657
|
+
t36 = /* @__PURE__ */ jsxs(T0, {
|
|
674
658
|
ref: combinedRef,
|
|
675
|
-
...
|
|
659
|
+
...t28,
|
|
660
|
+
id: t29,
|
|
676
661
|
...hoverProps,
|
|
677
662
|
mods: paneMods,
|
|
678
663
|
styles: finalStyles,
|
|
679
|
-
tokens:
|
|
664
|
+
tokens: t30,
|
|
680
665
|
children: [
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
666
|
+
t32,
|
|
667
|
+
t33,
|
|
668
|
+
t34,
|
|
669
|
+
t35
|
|
685
670
|
]
|
|
686
671
|
});
|
|
687
|
-
$[
|
|
688
|
-
$[
|
|
689
|
-
$[
|
|
690
|
-
$[
|
|
691
|
-
$[
|
|
692
|
-
$[
|
|
693
|
-
$[
|
|
694
|
-
$[
|
|
695
|
-
$[
|
|
696
|
-
$[
|
|
697
|
-
$[
|
|
698
|
-
$[
|
|
699
|
-
|
|
700
|
-
|
|
672
|
+
$[112] = T0;
|
|
673
|
+
$[113] = combinedRef;
|
|
674
|
+
$[114] = finalStyles;
|
|
675
|
+
$[115] = hoverProps;
|
|
676
|
+
$[116] = paneMods;
|
|
677
|
+
$[117] = t28;
|
|
678
|
+
$[118] = t29;
|
|
679
|
+
$[119] = t30;
|
|
680
|
+
$[120] = t32;
|
|
681
|
+
$[121] = t33;
|
|
682
|
+
$[122] = t34;
|
|
683
|
+
$[123] = t35;
|
|
684
|
+
$[124] = t36;
|
|
685
|
+
} else t36 = $[124];
|
|
686
|
+
return t36;
|
|
701
687
|
}
|
|
702
688
|
function _temp2(item_3) {
|
|
703
689
|
return item_3.style.setProperty("flex-shrink", "0");
|