@cube-dev/ui-kit 0.0.0-canary-900eb1f → 0.0.0-canary-e852864
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/README.md +1 -1
- package/dist/README.md +1 -1
- package/dist/_internal/hooks/use-debounced-value.js +2 -2
- package/dist/_internal/hooks/use-deprecation-warning.js +2 -2
- package/dist/_internal/hooks/use-event.js +4 -16
- package/dist/_internal/hooks/use-event.js.map +1 -1
- package/dist/_internal/hooks/use-is-first-render.js +1 -1
- package/dist/_internal/hooks/use-sync-ref.js +2 -2
- package/dist/_internal/hooks/use-timer/timer.js +1 -1
- package/dist/_internal/hooks/use-timer/use-timer.js +2 -2
- package/dist/_internal/hooks/use-warn.js +1 -1
- package/dist/components/Block.js +2 -2
- package/dist/components/CollectionItem.js +1 -1
- package/dist/components/GlobalStyles.js +2 -2
- package/dist/components/GridProvider.js +1 -1
- package/dist/components/HiddenInput.js +1 -1
- package/dist/components/Root.d.ts +2 -2
- package/dist/components/Root.js +2 -2
- package/dist/components/actions/Action/Action.js +2 -2
- package/dist/components/actions/Banner/Banner.d.ts +4 -4
- package/dist/components/actions/Banner/Banner.js +2 -2
- package/dist/components/actions/Button/Button.js +1 -1
- package/dist/components/actions/ButtonGroup/ButtonGroup.js +2 -2
- package/dist/components/actions/ButtonSplit/ButtonSplit.js +2 -2
- package/dist/components/actions/ButtonSplit/context.js +1 -1
- package/dist/components/actions/CommandMenu/CommandMenu.js +2 -2
- package/dist/components/actions/CommandMenu/styled.js +1 -1
- package/dist/components/actions/ItemAction/ItemAction.js +2 -2
- package/dist/components/actions/ItemActionContext.d.ts +2 -2
- package/dist/components/actions/ItemActionContext.js +2 -2
- package/dist/components/actions/ItemActionsWrapper.js +2 -2
- package/dist/components/actions/ItemButton/ItemButton.js +1 -1
- package/dist/components/actions/Link/Link.js +2 -2
- package/dist/components/actions/Menu/Menu.js +2 -2
- package/dist/components/actions/Menu/MenuItem.d.ts +4 -4
- package/dist/components/actions/Menu/MenuItem.js +2 -2
- package/dist/components/actions/Menu/MenuSection.d.ts +2 -2
- package/dist/components/actions/Menu/MenuSection.js +2 -2
- package/dist/components/actions/Menu/MenuTrigger.js +2 -2
- 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/index.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 +2 -2
- package/dist/components/content/Alert/Alert.js +2 -2
- package/dist/components/content/Alert/use-alert.js +2 -2
- package/dist/components/content/Avatar/Avatar.js +2 -2
- package/dist/components/content/Badge/Badge.js +2 -2
- package/dist/components/content/Card/Card.js +2 -2
- package/dist/components/content/Content.js +2 -2
- package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +1 -1
- package/dist/components/content/CopySnippet/CopySnippet.d.ts +36 -35
- package/dist/components/content/CopySnippet/CopySnippet.js +2 -2
- package/dist/components/content/Disclosure/Disclosure.js +2 -2
- package/dist/components/content/Divider.js +2 -2
- package/dist/components/content/Footer.js +2 -2
- package/dist/components/content/Header.js +2 -2
- package/dist/components/content/HotKeys/HotKeys.js +2 -2
- package/dist/components/content/InfoBadge/InfoBadge.js +1 -1
- package/dist/components/content/InlineInput/InlineInput.js +2 -2
- package/dist/components/content/Item/Item.js +2 -2
- package/dist/components/content/ItemBadge/ItemBadge.js +2 -2
- package/dist/components/content/ItemCard/ItemCard.js +2 -2
- package/dist/components/content/Layout/GridLayout.js +2 -2
- package/dist/components/content/Layout/Layout.js +16 -7
- package/dist/components/content/Layout/Layout.js.map +1 -1
- package/dist/components/content/Layout/LayoutBlock.js +2 -2
- package/dist/components/content/Layout/LayoutCenter.js +2 -2
- package/dist/components/content/Layout/LayoutContainer.js +2 -2
- package/dist/components/content/Layout/LayoutContent.js +2 -2
- package/dist/components/content/Layout/LayoutContext.d.ts +1 -0
- package/dist/components/content/Layout/LayoutContext.js +111 -69
- package/dist/components/content/Layout/LayoutContext.js.map +1 -1
- package/dist/components/content/Layout/LayoutFlex.js +2 -2
- package/dist/components/content/Layout/LayoutFooter.js +2 -2
- package/dist/components/content/Layout/LayoutGrid.js +2 -2
- package/dist/components/content/Layout/LayoutHeader.js +2 -2
- package/dist/components/content/Layout/LayoutPane.js +2 -2
- package/dist/components/content/Layout/LayoutPanel.js +8 -3
- package/dist/components/content/Layout/LayoutPanel.js.map +1 -1
- package/dist/components/content/Layout/LayoutPanelHeader.js +2 -2
- package/dist/components/content/Layout/LayoutPanelTransition.js +119 -0
- package/dist/components/content/Layout/LayoutPanelTransition.js.map +1 -0
- package/dist/components/content/Layout/LayoutToolbar.js +2 -2
- package/dist/components/content/Layout/hooks/useTinyScrollbar.js +2 -2
- package/dist/components/content/Layout/index.js +1 -1
- package/dist/components/content/Layout/utils.js +1 -1
- package/dist/components/content/Paragraph.js +2 -2
- package/dist/components/content/Placeholder/Placeholder.js +2 -2
- package/dist/components/content/PrismCode/PrismCode.js +1 -1
- package/dist/components/content/PrismCode/prismSetup.js +1 -1
- package/dist/components/content/PrismDiffCode/PrismDiffCode.d.ts +2 -2
- package/dist/components/content/PrismDiffCode/PrismDiffCode.js +2 -2
- package/dist/components/content/Result/Result.js +2 -2
- package/dist/components/content/Skeleton/Skeleton.d.ts +10 -10
- package/dist/components/content/Skeleton/Skeleton.js +2 -2
- package/dist/components/content/Tag/Tag.js +2 -2
- package/dist/components/content/Text.d.ts +84 -84
- package/dist/components/content/Text.js +2 -2
- package/dist/components/content/TextItem/TextItem.js +2 -2
- package/dist/components/content/Title.js +2 -2
- package/dist/components/content/Tree/Tree.js +1 -1
- package/dist/components/content/Tree/TreeNode.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 +2 -2
- package/dist/components/content/Tree/use-load-data.js +2 -2
- package/dist/components/content/highlightText.js +1 -1
- package/dist/components/content/use-auto-tooltip.d.ts +1 -0
- package/dist/components/content/use-auto-tooltip.js +2 -2
- package/dist/components/content/use-auto-tooltip.js.map +1 -1
- package/dist/components/data/DataTable/DataTable.js +1 -1
- package/dist/components/data/ItemTable/ItemTable.js +2 -2
- package/dist/components/data/ItemTable/ItemTableBulkBar.d.ts +2 -2
- package/dist/components/data/ItemTable/ItemTableBulkBar.js +1 -1
- package/dist/components/data/ItemTable/ItemTableDragPreview.js +2 -2
- package/dist/components/data/ItemTable/ItemTableFooter.js +2 -2
- package/dist/components/data/ItemTable/ItemTableToolbar.d.ts +3 -3
- package/dist/components/data/ItemTable/ItemTableToolbar.js +2 -2
- package/dist/components/data/ItemTable/use-item-table-column-widths.js +2 -2
- package/dist/components/data/ItemTable/use-item-table-drag-drop.js +2 -2
- package/dist/components/data/ItemTable/use-item-table-pagination.js +2 -2
- package/dist/components/data/ItemTable/use-item-table-selection.js +2 -2
- package/dist/components/data/ItemTable/use-item-table-sort.js +2 -2
- package/dist/components/data/ItemTable/use-item-table-tree-model.js +2 -2
- package/dist/components/data/TableBase/ColumnResizer.js +2 -2
- package/dist/components/data/TableBase/RowCollection.js +1 -1
- package/dist/components/data/TableBase/TableHeaderCell.js +2 -2
- package/dist/components/data/TableBase/TableRow.js +2 -2
- package/dist/components/data/TableBase/TableView.d.ts +1 -0
- package/dist/components/data/TableBase/TableView.js +1 -1
- package/dist/components/data/TableBase/TreeGridTable.js +2 -2
- package/dist/components/data/TableBase/column-header.js +1 -1
- package/dist/components/data/TableBase/column-menu.d.ts +2 -2
- 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-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 +2 -2
- package/dist/components/data/TableBase/use-column-order.js +2 -2
- package/dist/components/data/TableBase/use-container-width.js +2 -2
- package/dist/components/data/TableBase/use-row-move-animation.js +2 -2
- package/dist/components/data/TableBase/use-scrollability.js +2 -2
- package/dist/components/data/TableBase/use-table-columns.js +2 -2
- package/dist/components/data/TableBase/use-table-search.js +30 -100
- package/dist/components/data/TableBase/use-table-search.js.map +1 -1
- package/dist/components/data/TableBase/use-table-selection.js +1 -1
- package/dist/components/data/TableBase/use-table-sort.js +2 -2
- package/dist/components/data/TableBase/use-table-sorts.js +2 -2
- package/dist/components/data/TableBase/use-table-storage.js +1 -1
- package/dist/components/data/TableBase/use-table-tree-state.js +2 -2
- package/dist/components/fields/Checkbox/Checkbox.js +1 -1
- package/dist/components/fields/Checkbox/CheckboxGroup.js +2 -2
- package/dist/components/fields/Checkbox/context.js +1 -1
- package/dist/components/fields/ColorInput/ColorInput.js +2 -2
- package/dist/components/fields/ColorPicker/ColorPicker.js +1 -1
- package/dist/components/fields/ColorSwatch/ColorSwatch.js +2 -2
- package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js +2 -2
- package/dist/components/fields/ComboBox/ComboBox.js +2 -2
- 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 +2 -2
- package/dist/components/fields/DatePicker/DateInput.js +1 -1
- package/dist/components/fields/DatePicker/DateInputBase.js +2 -2
- package/dist/components/fields/DatePicker/DatePicker.js +2 -2
- package/dist/components/fields/DatePicker/DatePickerButton.js +2 -2
- 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 +2 -2
- package/dist/components/fields/DatePicker/DateRangePicker.js +2 -2
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +2 -2
- package/dist/components/fields/DatePicker/MonthPicker.js +2 -2
- package/dist/components/fields/DatePicker/PeriodPicker.js +2 -2
- package/dist/components/fields/DatePicker/QuarterPicker.js +2 -2
- package/dist/components/fields/DatePicker/TimeInput.js +2 -2
- package/dist/components/fields/DatePicker/WeekPicker.js +2 -2
- package/dist/components/fields/DatePicker/YearPicker.js +2 -2
- 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 +2 -2
- package/dist/components/fields/FileInput/FileInput.js +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js +1 -1
- package/dist/components/fields/FilterPicker/FilterPicker.js +1 -1
- package/dist/components/fields/Input/Input.js +1 -1
- package/dist/components/fields/ListBox/DraggableListBox.js +2 -2
- package/dist/components/fields/ListBox/ListBox.js +2 -2
- package/dist/components/fields/ListBox/optionId.js +1 -1
- package/dist/components/fields/ListBoxPopover/ListBoxPopover.d.ts +1 -0
- package/dist/components/fields/ListBoxPopover/ListBoxPopover.js +2 -2
- package/dist/components/fields/ListBoxPopover/listNavigation.js +1 -1
- package/dist/components/fields/ListBoxPopover/useCompositeFocus.js +2 -2
- package/dist/components/fields/NumberInput/NumberInput.js +2 -2
- package/dist/components/fields/NumberInput/StepButton.js +2 -2
- package/dist/components/fields/PasswordInput/PasswordInput.js +2 -2
- package/dist/components/fields/Picker/Picker.js +1 -1
- package/dist/components/fields/RadioGroup/Radio.d.ts +8 -8
- package/dist/components/fields/RadioGroup/Radio.js +2 -2
- package/dist/components/fields/RadioGroup/RadioGroup.js +2 -2
- package/dist/components/fields/RadioGroup/context.js +1 -1
- package/dist/components/fields/SearchComboBox/SearchComboBox.js +2 -2
- package/dist/components/fields/SearchInput/SearchInput.js +2 -2
- package/dist/components/fields/Select/Select.d.ts +2 -1
- package/dist/components/fields/Select/Select.js +2 -2
- package/dist/components/fields/Slider/Gradation.js +2 -2
- package/dist/components/fields/Slider/HueSlider.js +2 -2
- package/dist/components/fields/Slider/RangeSlider.js +2 -2
- package/dist/components/fields/Slider/Slider.js +2 -2
- package/dist/components/fields/Slider/SliderBase.js +1 -1
- package/dist/components/fields/Slider/SliderBase.js.map +1 -1
- package/dist/components/fields/Slider/SliderThumb.js +2 -2
- package/dist/components/fields/Slider/SliderTrack.js +2 -2
- 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 +2 -2
- package/dist/components/fields/TagInput/TagInput.js +2 -2
- package/dist/components/fields/TagInput/TagList.js +2 -2
- package/dist/components/fields/TagInput/useActiveOption.js +2 -2
- package/dist/components/fields/TagInput/useTagError.js +2 -2
- package/dist/components/fields/TextArea/TextArea.js +2 -2
- package/dist/components/fields/TextInput/TextInput.js +2 -2
- package/dist/components/fields/TextInput/TextInputBase.js +1 -1
- package/dist/components/fields/TextInput/useAutoSizeTextArea.js +1 -1
- package/dist/components/fields/TextInputMapper/TextInputMapper.js +2 -2
- package/dist/components/fields/TriggerActions.js +2 -2
- package/dist/components/fields/color/ColorPanel.js +2 -2
- 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/form/FieldWrapper/FieldWrapper.js +2 -2
- package/dist/components/form/Form/Field.d.ts +2 -2
- package/dist/components/form/Form/Field.js +2 -2
- package/dist/components/form/Form/Form.d.ts +2 -1
- package/dist/components/form/Form/Form.js +2 -2
- package/dist/components/form/Form/ModernFormRoot.js +2 -2
- package/dist/components/form/Form/ResetButton/ResetButton.js +2 -2
- package/dist/components/form/Form/SubmitButton/SubmitButton.js +2 -2
- package/dist/components/form/Form/SubmitError.js +2 -2
- 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 +2 -2
- 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.d.ts +2 -2
- package/dist/components/form/Form/modern/react.js +2 -2
- 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 +2 -2
- package/dist/components/form/Form/use-field/use-field-props.js +2 -2
- 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.d.ts +2 -1
- package/dist/components/form/Label.js +2 -2
- package/dist/components/form/legacy-tooltip.js +1 -1
- package/dist/components/form/validation/ValidationIndicator.d.ts +2 -2
- package/dist/components/form/validation/ValidationIndicator.js +2 -2
- package/dist/components/form/validation/resolve-validation-props.js +1 -1
- package/dist/components/form/validation/use-validation-props.js +2 -2
- package/dist/components/form/wrapper.d.ts +2 -2
- package/dist/components/form/wrapper.js +1 -1
- package/dist/components/helpers/DisplayTransition/DisplayTransition.js +2 -2
- package/dist/components/helpers/IconSwitch/IconSwitch.d.ts +2 -2
- package/dist/components/helpers/IconSwitch/IconSwitch.js +1 -1
- package/dist/components/layout/Board/Board.js +2 -2
- package/dist/components/layout/Board/BoardProvider.d.ts +2 -2
- package/dist/components/layout/Board/BoardProvider.js +1 -1
- package/dist/components/layout/Board/BoardResponsive.js +1 -1
- package/dist/components/layout/Board/Widget.js +1 -1
- package/dist/components/layout/Board/WidgetHost.js +2 -2
- package/dist/components/layout/Board/board-context.d.ts +2 -2
- package/dist/components/layout/Board/board-context.js +2 -2
- package/dist/components/layout/Board/board-store.js +1 -1
- package/dist/components/layout/Board/grid-core/calculate.js +1 -1
- package/dist/components/layout/Board/grid-core/collision-modes.js +1 -1
- package/dist/components/layout/Board/grid-core/collision.js +1 -1
- package/dist/components/layout/Board/grid-core/compactors.js +1 -1
- package/dist/components/layout/Board/grid-core/constraints.js +1 -1
- package/dist/components/layout/Board/grid-core/group-move.js +1 -1
- package/dist/components/layout/Board/grid-core/layout.js +1 -1
- package/dist/components/layout/Board/grid-core/placement.js +1 -1
- package/dist/components/layout/Board/grid-core/sort.js +1 -1
- package/dist/components/layout/Board/index.js +1 -1
- package/dist/components/layout/Board/responsive-utils.js +1 -1
- package/dist/components/layout/Board/use-board-layout.js +1 -1
- package/dist/components/layout/Board/use-board-registry.js +1 -1
- package/dist/components/layout/Board/use-board-select-modifier-key.js +1 -1
- package/dist/components/layout/Board/use-board-selection.js +1 -1
- package/dist/components/layout/Flex.js +2 -2
- package/dist/components/layout/Flow.js +2 -2
- package/dist/components/layout/Grid.js +2 -2
- package/dist/components/layout/Panel.js +2 -2
- package/dist/components/layout/Prefix.js +2 -2
- package/dist/components/layout/ResizablePanel.js +83 -208
- package/dist/components/layout/ResizablePanel.js.map +1 -1
- package/dist/components/layout/Space.js +2 -2
- package/dist/components/layout/Suffix.js +2 -2
- package/dist/components/navigation/Pagination/Pagination.js +2 -2
- package/dist/components/navigation/Pagination/use-pagination.js +2 -2
- package/dist/components/navigation/Tabs/DraggableTabList.js +2 -2
- package/dist/components/navigation/Tabs/TabButton.js +2 -2
- package/dist/components/navigation/Tabs/TabDropIndicator.js +2 -2
- package/dist/components/navigation/Tabs/TabPanel.js +2 -2
- package/dist/components/navigation/Tabs/TabPicker.js +2 -2
- package/dist/components/navigation/Tabs/Tabs.js +1 -1
- package/dist/components/navigation/Tabs/TabsAction.js +2 -2
- package/dist/components/navigation/Tabs/TabsContext.js +2 -2
- package/dist/components/navigation/Tabs/popover-placement.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 +2 -2
- package/dist/components/navigation/Tabs/use-tab-indicator.js +2 -2
- package/dist/components/organisms/StatsCard/StatsCard.d.ts +2 -2
- package/dist/components/organisms/StatsCard/StatsCard.js +2 -2
- package/dist/components/other/Calendar/Calendar.js +2 -2
- package/dist/components/other/Calendar/CalendarCell.js +2 -2
- package/dist/components/other/Calendar/CalendarGrid.js +2 -2
- package/dist/components/other/Calendar/CalendarHeader.js +2 -2
- package/dist/components/other/Calendar/CalendarPanel.js +2 -2
- package/dist/components/other/Calendar/PeriodCalendar.js +2 -2
- package/dist/components/other/Calendar/PeriodGrid.js +1 -1
- package/dist/components/other/Calendar/RangeCalendar.js +2 -2
- package/dist/components/other/Calendar/styled.js +1 -1
- package/dist/components/other/CubeLogo/CubeLogo.js +2 -2
- package/dist/components/other/NoDataIcon/NoDataIcon.d.ts +2 -2
- package/dist/components/other/NoDataIcon/NoDataIcon.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialog.js +2 -2
- package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.d.ts +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js +2 -2
- package/dist/components/overlays/AlertDialog/AlertDialogZone.d.ts +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogZone.js +2 -2
- package/dist/components/overlays/Dialog/Dialog.js +2 -2
- package/dist/components/overlays/Dialog/DialogContainer.d.ts +2 -2
- package/dist/components/overlays/Dialog/DialogContainer.js +2 -2
- package/dist/components/overlays/Dialog/DialogForm.js +2 -2
- package/dist/components/overlays/Dialog/DialogTrigger.d.ts +2 -2
- package/dist/components/overlays/Dialog/DialogTrigger.js +2 -2
- package/dist/components/overlays/Dialog/ModernDialogForm.js +2 -2
- 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 +2 -2
- package/dist/components/overlays/Dialog/use-dialog-container.d.ts +2 -2
- package/dist/components/overlays/Dialog/use-dialog-container.js +1 -1
- package/dist/components/overlays/Modal/Modal.js +2 -2
- 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 +2 -2
- package/dist/components/overlays/Modal/Tray.js +2 -2
- package/dist/components/overlays/Modal/Underlay.js +2 -2
- package/dist/components/overlays/Notifications/Notification.js +2 -2
- package/dist/components/overlays/Notifications/NotificationAction.d.ts +2 -2
- package/dist/components/overlays/Notifications/NotificationAction.js +2 -2
- package/dist/components/overlays/Notifications/NotificationCard.d.ts +2 -2
- package/dist/components/overlays/Notifications/NotificationCard.js +2 -2
- package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
- package/dist/components/overlays/Notifications/NotificationItem.d.ts +2 -2
- package/dist/components/overlays/Notifications/NotificationItem.js +2 -2
- package/dist/components/overlays/Notifications/OverlayContainer.js +2 -2
- package/dist/components/overlays/Notifications/OverlayProvider.d.ts +2 -2
- package/dist/components/overlays/Notifications/OverlayProvider.js +1 -1
- package/dist/components/overlays/Notifications/PersistentNotificationsList.d.ts +2 -2
- package/dist/components/overlays/Notifications/PersistentNotificationsList.js +2 -2
- 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 +2 -2
- package/dist/components/overlays/Notifications/use-persistent-state.js +2 -2
- package/dist/components/overlays/Notifications/use-toast-state.js +1 -1
- package/dist/components/overlays/Toast/ToastItem.js +2 -2
- package/dist/components/overlays/Toast/index.js +2 -2
- package/dist/components/overlays/Toast/useProgressToast.js +1 -1
- package/dist/components/overlays/Toast/useToast.js +3 -2
- package/dist/components/overlays/Toast/useToast.js.map +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.js +2 -2
- package/dist/components/overlays/Tooltip/TooltipProvider.js +2 -2
- package/dist/components/overlays/Tooltip/TooltipTrigger.d.ts +2 -2
- package/dist/components/overlays/Tooltip/TooltipTrigger.js +2 -2
- 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.d.ts +2 -2
- package/dist/components/portal/Portal.js +2 -2
- package/dist/components/portal/PortalProvider.js +2 -2
- package/dist/components/portal/usePortal.js +26 -72
- package/dist/components/portal/usePortal.js.map +1 -1
- package/dist/components/shared/DraggableCollection.js +115 -261
- package/dist/components/shared/DraggableCollection.js.map +1 -1
- package/dist/components/shared/InvalidIcon.js +1 -1
- package/dist/components/shared/ValidIcon.js +1 -1
- package/dist/components/status/LoadingAnimation/LoadingAnimation.d.ts +2 -2
- package/dist/components/status/LoadingAnimation/LoadingAnimation.js +2 -2
- package/dist/components/status/Spin/Cube.js +2 -2
- package/dist/components/status/Spin/InternalSpinner.js +2 -2
- package/dist/components/status/Spin/Spin.d.ts +2 -2
- package/dist/components/status/Spin/Spin.js +2 -2
- package/dist/components/status/Spin/SpinsContainer.js +2 -2
- 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/i18n/I18nProvider.d.ts +2 -2
- package/dist/i18n/I18nProvider.js +2 -2
- 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/useFormatter.js +2 -2
- package/dist/i18n/useI18n.js +1 -1
- package/dist/icons/AdjustmentsHorizontalIcon.d.ts +2 -2
- package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
- package/dist/icons/AdjustmentsIcon.d.ts +2 -2
- package/dist/icons/AdjustmentsIcon.js +1 -1
- package/dist/icons/AiIcon.d.ts +2 -2
- package/dist/icons/AiIcon.js +1 -1
- package/dist/icons/AreaChartIcon.d.ts +2 -2
- package/dist/icons/AreaChartIcon.js +1 -1
- package/dist/icons/ArrowNarrowDownIcon.d.ts +2 -2
- package/dist/icons/ArrowNarrowDownIcon.js +1 -1
- package/dist/icons/ArrowNarrowUpIcon.d.ts +2 -2
- package/dist/icons/ArrowNarrowUpIcon.js +1 -1
- package/dist/icons/BackwardIcon.d.ts +2 -2
- package/dist/icons/BackwardIcon.js +1 -1
- package/dist/icons/BarChartIcon.d.ts +2 -2
- package/dist/icons/BarChartIcon.js +1 -1
- package/dist/icons/BellFilledIcon.d.ts +2 -2
- package/dist/icons/BellFilledIcon.js +1 -1
- package/dist/icons/BellIcon.d.ts +2 -2
- package/dist/icons/BellIcon.js +1 -1
- package/dist/icons/BooleanIcon.d.ts +2 -2
- package/dist/icons/BooleanIcon.js +1 -1
- package/dist/icons/CalendarEditIcon.d.ts +2 -2
- package/dist/icons/CalendarEditIcon.js +1 -1
- package/dist/icons/CalendarIcon.d.ts +2 -2
- package/dist/icons/CalendarIcon.js +1 -1
- package/dist/icons/CaretDownIcon.d.ts +2 -2
- package/dist/icons/CaretDownIcon.js +1 -1
- package/dist/icons/CaretUpIcon.d.ts +2 -2
- package/dist/icons/CaretUpIcon.js +1 -1
- package/dist/icons/ChartAreaStackedIcon.d.ts +2 -2
- package/dist/icons/ChartAreaStackedIcon.js +1 -1
- package/dist/icons/ChartAreaStackedPercentageIcon.d.ts +2 -2
- package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBarGroupedHorizontalIcon.d.ts +2 -2
- package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarGroupedIcon.d.ts +2 -2
- package/dist/icons/ChartBarGroupedIcon.js +1 -1
- package/dist/icons/ChartBarHorizontalIcon.d.ts +2 -2
- package/dist/icons/ChartBarHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarLineIcon.d.ts +2 -2
- package/dist/icons/ChartBarLineIcon.js +1 -1
- package/dist/icons/ChartBarStackedHorizontalIcon.d.ts +2 -2
- package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedIcon.d.ts +2 -2
- package/dist/icons/ChartBarStackedIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageHorizontalIcon.d.ts +2 -2
- package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageIcon.d.ts +2 -2
- package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBoxPlot2Icon.d.ts +2 -2
- package/dist/icons/ChartBoxPlot2Icon.js +1 -1
- package/dist/icons/ChartBoxPlotIcon.d.ts +2 -2
- package/dist/icons/ChartBoxPlotIcon.js +1 -1
- package/dist/icons/ChartBubbleIcon.d.ts +2 -2
- package/dist/icons/ChartBubbleIcon.js +1 -1
- package/dist/icons/ChartDonut2Icon.d.ts +2 -2
- package/dist/icons/ChartDonut2Icon.js +1 -1
- package/dist/icons/ChartFunnelIcon.d.ts +2 -2
- package/dist/icons/ChartFunnelIcon.js +1 -1
- package/dist/icons/ChartHeatmapIcon.d.ts +2 -2
- package/dist/icons/ChartHeatmapIcon.js +1 -1
- package/dist/icons/ChartKPIIcon.d.ts +2 -2
- package/dist/icons/ChartKPIIcon.js +1 -1
- package/dist/icons/ChartPie2Icon.d.ts +2 -2
- package/dist/icons/ChartPie2Icon.js +1 -1
- package/dist/icons/ChartScatterIcon.d.ts +2 -2
- package/dist/icons/ChartScatterIcon.js +1 -1
- package/dist/icons/CheckCircleFilledIcon.d.ts +2 -2
- package/dist/icons/CheckCircleFilledIcon.js +1 -1
- package/dist/icons/CheckCircleIcon.d.ts +2 -2
- package/dist/icons/CheckCircleIcon.js +1 -1
- package/dist/icons/CheckIcon.d.ts +2 -2
- package/dist/icons/CheckIcon.js +1 -1
- package/dist/icons/CircleFilledIcon.d.ts +2 -2
- package/dist/icons/CircleFilledIcon.js +1 -1
- package/dist/icons/ClearIcon.d.ts +2 -2
- package/dist/icons/ClearIcon.js +1 -1
- package/dist/icons/CloseCircleFilledIcon.d.ts +2 -2
- package/dist/icons/CloseCircleFilledIcon.js +1 -1
- package/dist/icons/CloseCircleIcon.d.ts +2 -2
- package/dist/icons/CloseCircleIcon.js +1 -1
- package/dist/icons/CloseIcon.d.ts +2 -2
- package/dist/icons/CloseIcon.js +1 -1
- package/dist/icons/CodeIcon.d.ts +2 -2
- package/dist/icons/CodeIcon.js +1 -1
- package/dist/icons/ColumnTotalIcon.d.ts +2 -2
- package/dist/icons/ColumnTotalIcon.js +1 -1
- package/dist/icons/CopyIcon.d.ts +2 -2
- package/dist/icons/CopyIcon.js +1 -1
- package/dist/icons/CountIcon.d.ts +2 -2
- package/dist/icons/CountIcon.js +1 -1
- package/dist/icons/CubeIcon.d.ts +2 -2
- package/dist/icons/CubeIcon.js +1 -1
- package/dist/icons/CubePauseIcon.d.ts +2 -2
- package/dist/icons/CubePauseIcon.js +1 -1
- package/dist/icons/CubePlayIcon.d.ts +2 -2
- package/dist/icons/CubePlayIcon.js +1 -1
- package/dist/icons/CurrencyDollarIcon.d.ts +2 -2
- package/dist/icons/CurrencyDollarIcon.js +1 -1
- package/dist/icons/DangerIcon.d.ts +2 -2
- package/dist/icons/DangerIcon.js +1 -1
- package/dist/icons/DashboardIcon.d.ts +2 -2
- package/dist/icons/DashboardIcon.js +1 -1
- package/dist/icons/DatabaseIcon.d.ts +2 -2
- package/dist/icons/DatabaseIcon.js +1 -1
- package/dist/icons/DecimalDecreaseIcon.d.ts +2 -2
- package/dist/icons/DecimalDecreaseIcon.js +1 -1
- package/dist/icons/DecimalIncreaseIcon.d.ts +2 -2
- package/dist/icons/DecimalIncreaseIcon.js +1 -1
- package/dist/icons/DirectionIcon.js +2 -2
- package/dist/icons/DonutIcon.d.ts +2 -2
- package/dist/icons/DonutIcon.js +1 -1
- package/dist/icons/DownIcon.d.ts +2 -2
- package/dist/icons/DownIcon.js +1 -1
- package/dist/icons/EditIcon.d.ts +2 -2
- package/dist/icons/EditIcon.js +1 -1
- package/dist/icons/ExclamationCircleFilledIcon.d.ts +2 -2
- package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
- package/dist/icons/ExclamationCircleIcon.d.ts +2 -2
- package/dist/icons/ExclamationCircleIcon.js +1 -1
- package/dist/icons/ExclamationIcon.d.ts +2 -2
- package/dist/icons/ExclamationIcon.js +1 -1
- package/dist/icons/EyeIcon.d.ts +2 -2
- package/dist/icons/EyeIcon.js +1 -1
- package/dist/icons/EyeInvisibleIcon.d.ts +2 -2
- package/dist/icons/EyeInvisibleIcon.js +1 -1
- package/dist/icons/FilterIcon.d.ts +2 -2
- package/dist/icons/FilterIcon.js +1 -1
- package/dist/icons/FolderFilledIcon.d.ts +2 -2
- package/dist/icons/FolderFilledIcon.js +1 -1
- package/dist/icons/FolderIcon.d.ts +2 -2
- package/dist/icons/FolderIcon.js +1 -1
- package/dist/icons/FolderOpenFilledIcon.d.ts +2 -2
- package/dist/icons/FolderOpenFilledIcon.js +1 -1
- package/dist/icons/FolderOpenIcon.d.ts +2 -2
- package/dist/icons/FolderOpenIcon.js +1 -1
- package/dist/icons/ForwardIcon.d.ts +2 -2
- package/dist/icons/ForwardIcon.js +1 -1
- package/dist/icons/GripVerticalIcon.d.ts +2 -2
- package/dist/icons/GripVerticalIcon.js +1 -1
- package/dist/icons/HierarchyIcon.d.ts +2 -2
- package/dist/icons/HierarchyIcon.js +1 -1
- package/dist/icons/HierarchyOpenIcon.d.ts +2 -2
- package/dist/icons/HierarchyOpenIcon.js +1 -1
- package/dist/icons/Icon.js +2 -2
- package/dist/icons/InfoCircleIcon.d.ts +2 -2
- package/dist/icons/InfoCircleIcon.js +1 -1
- package/dist/icons/InfoIcon.d.ts +2 -2
- package/dist/icons/InfoIcon.js +1 -1
- package/dist/icons/KeyIcon.d.ts +2 -2
- package/dist/icons/KeyIcon.js +1 -1
- package/dist/icons/LeftIcon.d.ts +2 -2
- package/dist/icons/LeftIcon.js +1 -1
- package/dist/icons/LineChartIcon.d.ts +2 -2
- package/dist/icons/LineChartIcon.js +1 -1
- package/dist/icons/LoadingIcon.d.ts +2 -2
- package/dist/icons/LoadingIcon.js +1 -1
- package/dist/icons/LockFilledIcon.d.ts +2 -2
- package/dist/icons/LockFilledIcon.js +1 -1
- package/dist/icons/LockIcon.d.ts +2 -2
- package/dist/icons/LockIcon.js +1 -1
- package/dist/icons/MoreIcon.d.ts +2 -2
- package/dist/icons/MoreIcon.js +1 -1
- package/dist/icons/NotAllowedIcon.d.ts +2 -2
- package/dist/icons/NotAllowedIcon.js +1 -1
- package/dist/icons/Number123Icon.d.ts +2 -2
- package/dist/icons/Number123Icon.js +1 -1
- package/dist/icons/NumberIcon.d.ts +2 -2
- package/dist/icons/NumberIcon.js +1 -1
- package/dist/icons/PauseCircleFilledIcon.d.ts +2 -2
- package/dist/icons/PauseCircleFilledIcon.js +1 -1
- package/dist/icons/PauseCircleIcon.d.ts +2 -2
- package/dist/icons/PauseCircleIcon.js +1 -1
- package/dist/icons/PauseIcon.d.ts +2 -2
- package/dist/icons/PauseIcon.js +1 -1
- package/dist/icons/PercentageIcon.d.ts +2 -2
- package/dist/icons/PercentageIcon.js +1 -1
- package/dist/icons/PieChartIcon.d.ts +2 -2
- package/dist/icons/PieChartIcon.js +1 -1
- package/dist/icons/PipetteIcon.d.ts +2 -2
- package/dist/icons/PipetteIcon.js +1 -1
- package/dist/icons/PlayCircleIcon.d.ts +2 -2
- package/dist/icons/PlayCircleIcon.js +1 -1
- package/dist/icons/PlayIcon.d.ts +2 -2
- package/dist/icons/PlayIcon.js +1 -1
- package/dist/icons/PlusIcon.d.ts +2 -2
- package/dist/icons/PlusIcon.js +1 -1
- package/dist/icons/ProgressBarIcon.d.ts +2 -2
- package/dist/icons/ProgressBarIcon.js +1 -1
- package/dist/icons/ReloadIcon.d.ts +2 -2
- package/dist/icons/ReloadIcon.js +1 -1
- package/dist/icons/ReportIcon.d.ts +2 -2
- package/dist/icons/ReportIcon.js +1 -1
- package/dist/icons/ReturnIcon.d.ts +2 -2
- package/dist/icons/ReturnIcon.js +1 -1
- package/dist/icons/RightIcon.d.ts +2 -2
- package/dist/icons/RightIcon.js +1 -1
- package/dist/icons/RowTotalsIcon.d.ts +2 -2
- package/dist/icons/RowTotalsIcon.js +1 -1
- package/dist/icons/SchemeIcon.d.ts +2 -2
- package/dist/icons/SchemeIcon.js +1 -1
- package/dist/icons/SearchIcon.d.ts +2 -2
- package/dist/icons/SearchIcon.js +1 -1
- package/dist/icons/SemanticQueryIcon.d.ts +2 -2
- package/dist/icons/SemanticQueryIcon.js +1 -1
- package/dist/icons/SettingsIcon.d.ts +2 -2
- package/dist/icons/SettingsIcon.js +1 -1
- package/dist/icons/ShieldFilledIcon.d.ts +2 -2
- package/dist/icons/ShieldFilledIcon.js +1 -1
- package/dist/icons/ShieldIcon.d.ts +2 -2
- package/dist/icons/ShieldIcon.js +1 -1
- package/dist/icons/SlashIcon.d.ts +2 -2
- package/dist/icons/SlashIcon.js +1 -1
- package/dist/icons/SparklesIcon.d.ts +2 -2
- package/dist/icons/SparklesIcon.js +1 -1
- package/dist/icons/SqlIcon.d.ts +2 -2
- package/dist/icons/SqlIcon.js +1 -1
- package/dist/icons/StatsIcon.d.ts +2 -2
- package/dist/icons/StatsIcon.js +1 -1
- package/dist/icons/StopIcon.d.ts +2 -2
- package/dist/icons/StopIcon.js +1 -1
- package/dist/icons/StringIcon.d.ts +2 -2
- package/dist/icons/StringIcon.js +1 -1
- package/dist/icons/SubtotalsIcon.d.ts +2 -2
- package/dist/icons/SubtotalsIcon.js +1 -1
- package/dist/icons/SwitchIcon.d.ts +2 -2
- package/dist/icons/SwitchIcon.js +1 -1
- package/dist/icons/TableIcon.d.ts +2 -2
- package/dist/icons/TableIcon.js +1 -1
- package/dist/icons/ThumbsDownIcon.d.ts +2 -2
- package/dist/icons/ThumbsDownIcon.js +1 -1
- package/dist/icons/ThumbsUpIcon.d.ts +2 -2
- package/dist/icons/ThumbsUpIcon.js +1 -1
- package/dist/icons/ThunderboltCrossedIcon.d.ts +2 -2
- package/dist/icons/ThunderboltCrossedIcon.js +1 -1
- package/dist/icons/ThunderboltFilledIcon.d.ts +2 -2
- package/dist/icons/ThunderboltFilledIcon.js +1 -1
- package/dist/icons/ThunderboltIcon.d.ts +2 -2
- package/dist/icons/ThunderboltIcon.js +1 -1
- package/dist/icons/TimeIcon.d.ts +2 -2
- package/dist/icons/TimeIcon.js +1 -1
- package/dist/icons/TrashIcon.d.ts +2 -2
- package/dist/icons/TrashIcon.js +1 -1
- package/dist/icons/UnlockIcon.d.ts +2 -2
- package/dist/icons/UnlockIcon.js +1 -1
- package/dist/icons/UpIcon.d.ts +2 -2
- package/dist/icons/UpIcon.js +1 -1
- package/dist/icons/UserGroupIcon.d.ts +2 -2
- package/dist/icons/UserGroupIcon.js +1 -1
- package/dist/icons/UserIcon.d.ts +2 -2
- package/dist/icons/UserIcon.js +1 -1
- package/dist/icons/UserLockIcon.d.ts +2 -2
- package/dist/icons/UserLockIcon.js +1 -1
- package/dist/icons/ViewIcon.d.ts +2 -2
- package/dist/icons/ViewIcon.js +1 -1
- package/dist/icons/WarningFilledIcon.d.ts +2 -2
- package/dist/icons/WarningFilledIcon.js +1 -1
- package/dist/icons/WarningIcon.d.ts +2 -2
- package/dist/icons/WarningIcon.js +1 -1
- package/dist/icons/wrap-icon.d.ts +2 -2
- package/dist/icons/wrap-icon.js +2 -2
- package/dist/index.js +1 -1
- package/dist/probe/canonicalize.js +2 -2
- package/dist/probe/canonicalize.js.map +1 -1
- package/dist/probe/css.js +1 -1
- package/dist/probe/index.js +1 -1
- package/dist/provider.d.ts +2 -2
- package/dist/provider.js +2 -2
- package/dist/providers/TrackingProvider.d.ts +1 -0
- package/dist/providers/TrackingProvider.js +2 -2
- package/dist/providers/navigationAdapter.default.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 +2 -2
- 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 +2 -2
- package/dist/tokens/palette.js +1 -1
- package/dist/tokens/resolve.js +2 -2
- 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/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.d.ts +3 -3
- package/dist/utils/react/Slots.js +2 -2
- package/dist/utils/react/chain.js +1 -1
- package/dist/utils/react/disabledProps.js +1 -1
- package/dist/utils/react/escapePropagation.js +1 -1
- package/dist/utils/react/forwardRefWithGenerics.d.ts +5 -3
- package/dist/utils/react/forwardRefWithGenerics.js +6 -4
- package/dist/utils/react/forwardRefWithGenerics.js.map +1 -1
- package/dist/utils/react/index.js +1 -1
- package/dist/utils/react/interactions.js +2 -2
- 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/programmaticFocus.js +1 -1
- package/dist/utils/react/resolveIcon.js +1 -1
- package/dist/utils/react/sharedStore.js +2 -2
- package/dist/utils/react/useBufferedValue.js +1 -1
- package/dist/utils/react/useCombinedRefs.js +2 -2
- package/dist/utils/react/useControlledFocusVisible.js +2 -2
- package/dist/utils/react/useEventBus.js +2 -2
- package/dist/utils/react/useId.js +2 -2
- package/dist/utils/react/useIsDarwin.js +2 -2
- package/dist/utils/react/useKeySymbols.js +2 -2
- package/dist/utils/react/useLayoutEffect.js +1 -1
- package/dist/utils/react/useLocalStorage.js +2 -2
- package/dist/utils/react/useMergeStyles.js +1 -1
- package/dist/utils/react/useOverlayEscapeGuard.js +2 -2
- package/dist/utils/react/usePopoverSync.d.ts +3 -3
- package/dist/utils/react/usePopoverSync.js +99 -91
- package/dist/utils/react/usePopoverSync.js.map +1 -1
- package/dist/utils/react/useQaProps.js +1 -1
- package/dist/utils/react/useScheme.js +1 -1
- package/dist/utils/react/useViewportSize.js +2 -2
- 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/CreateComponent.md +20 -33
- package/docs/Usage.md +1 -1
- package/docs/components/actions/CommandMenu.md +1 -1
- package/docs/components/form/Form.md +1 -1
- package/docs/modern-form-migration.md +2 -2
- package/docs/modern-form-typecheck.md +1 -1
- package/package.json +14 -11
|
@@ -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-e852864 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
3
|
-
import { c } from "react
|
|
3
|
+
import { c } from "react-compiler-runtime";
|
|
4
4
|
import { createContext, useContext, useRef, useState } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
|
|
@@ -11,6 +11,8 @@ function useLayoutRefsContext() {
|
|
|
11
11
|
}
|
|
12
12
|
const LayoutActionsContext = createContext(null);
|
|
13
13
|
const LayoutStateContext = createContext(null);
|
|
14
|
+
/** Private transition coordination; not part of the public Layout context API. */
|
|
15
|
+
const LayoutPanelTransitionContext = createContext(null);
|
|
14
16
|
function useLayoutActionsContext() {
|
|
15
17
|
return useContext(LayoutActionsContext);
|
|
16
18
|
}
|
|
@@ -18,7 +20,7 @@ function useLayoutStateContext() {
|
|
|
18
20
|
return useContext(LayoutStateContext);
|
|
19
21
|
}
|
|
20
22
|
function LayoutProvider(t0) {
|
|
21
|
-
const $ = c(
|
|
23
|
+
const $ = c(51);
|
|
22
24
|
const { children, hasTransition: t1, minContentSize: t2 } = t0;
|
|
23
25
|
const hasTransition = t1 === void 0 ? false : t1;
|
|
24
26
|
const minContentSize = t2 === void 0 ? 320 : t2;
|
|
@@ -59,6 +61,7 @@ function LayoutProvider(t0) {
|
|
|
59
61
|
const [isDragging, setIsDragging] = useState(false);
|
|
60
62
|
const [isReady, setIsReady] = useState(false);
|
|
61
63
|
const [hasOverlayPanels, setHasOverlayPanels] = useState(false);
|
|
64
|
+
const [panelTransitionCount, setPanelTransitionCount] = useState(0);
|
|
62
65
|
const [containerWidth, setContainerWidth] = useState(0);
|
|
63
66
|
const [containerHeight, setContainerHeight] = useState(0);
|
|
64
67
|
let t7;
|
|
@@ -137,16 +140,25 @@ function LayoutProvider(t0) {
|
|
|
137
140
|
const dismissOverlayPanels = useEvent(t13);
|
|
138
141
|
let t14;
|
|
139
142
|
if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
|
|
140
|
-
t14 = (
|
|
141
|
-
|
|
142
|
-
|
|
143
|
+
t14 = () => {
|
|
144
|
+
setPanelTransitionCount(_temp2);
|
|
145
|
+
return () => setPanelTransitionCount(_temp3);
|
|
143
146
|
};
|
|
144
147
|
$[13] = t14;
|
|
145
148
|
} else t14 = $[13];
|
|
146
|
-
const
|
|
149
|
+
const registerPanelTransition = useEvent(t14);
|
|
147
150
|
let t15;
|
|
148
|
-
if ($[14]
|
|
149
|
-
t15 = {
|
|
151
|
+
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
152
|
+
t15 = (width, height) => {
|
|
153
|
+
setContainerWidth((prev_0) => prev_0 === width ? prev_0 : width);
|
|
154
|
+
setContainerHeight((prev_1) => prev_1 === height ? prev_1 : height);
|
|
155
|
+
};
|
|
156
|
+
$[14] = t15;
|
|
157
|
+
} else t15 = $[14];
|
|
158
|
+
const updateContainerSize = useEvent(t15);
|
|
159
|
+
let t16;
|
|
160
|
+
if ($[15] !== dismissOverlayPanels || $[16] !== hasTransition || $[17] !== markReady || $[18] !== minContentSize || $[19] !== registerOverlayPanel || $[20] !== registerPanel || $[21] !== setDragging || $[22] !== unregisterPanel || $[23] !== updateContainerSize || $[24] !== updatePanelSize) {
|
|
161
|
+
t16 = {
|
|
150
162
|
registerPanel,
|
|
151
163
|
unregisterPanel,
|
|
152
164
|
updatePanelSize,
|
|
@@ -158,22 +170,22 @@ function LayoutProvider(t0) {
|
|
|
158
170
|
registerOverlayPanel,
|
|
159
171
|
dismissOverlayPanels
|
|
160
172
|
};
|
|
161
|
-
$[
|
|
162
|
-
$[
|
|
163
|
-
$[
|
|
164
|
-
$[
|
|
165
|
-
$[
|
|
166
|
-
$[
|
|
167
|
-
$[
|
|
168
|
-
$[
|
|
169
|
-
$[
|
|
170
|
-
$[
|
|
171
|
-
$[
|
|
172
|
-
} else
|
|
173
|
-
const actionsValue =
|
|
174
|
-
let
|
|
175
|
-
if ($[
|
|
176
|
-
|
|
173
|
+
$[15] = dismissOverlayPanels;
|
|
174
|
+
$[16] = hasTransition;
|
|
175
|
+
$[17] = markReady;
|
|
176
|
+
$[18] = minContentSize;
|
|
177
|
+
$[19] = registerOverlayPanel;
|
|
178
|
+
$[20] = registerPanel;
|
|
179
|
+
$[21] = setDragging;
|
|
180
|
+
$[22] = unregisterPanel;
|
|
181
|
+
$[23] = updateContainerSize;
|
|
182
|
+
$[24] = updatePanelSize;
|
|
183
|
+
$[25] = t16;
|
|
184
|
+
} else t16 = $[25];
|
|
185
|
+
const actionsValue = t16;
|
|
186
|
+
let t17;
|
|
187
|
+
if ($[26] !== containerHeight || $[27] !== containerWidth || $[28] !== hasOverlayPanels || $[29] !== isDragging || $[30] !== isReady || $[31] !== panelSizes) {
|
|
188
|
+
t17 = {
|
|
177
189
|
panelSizes,
|
|
178
190
|
isDragging,
|
|
179
191
|
isReady,
|
|
@@ -181,63 +193,90 @@ function LayoutProvider(t0) {
|
|
|
181
193
|
containerWidth,
|
|
182
194
|
containerHeight
|
|
183
195
|
};
|
|
184
|
-
$[
|
|
185
|
-
$[
|
|
186
|
-
$[
|
|
187
|
-
$[
|
|
188
|
-
$[
|
|
189
|
-
$[
|
|
190
|
-
$[
|
|
191
|
-
} else
|
|
192
|
-
const stateValue =
|
|
193
|
-
let
|
|
194
|
-
if ($[
|
|
195
|
-
|
|
196
|
+
$[26] = containerHeight;
|
|
197
|
+
$[27] = containerWidth;
|
|
198
|
+
$[28] = hasOverlayPanels;
|
|
199
|
+
$[29] = isDragging;
|
|
200
|
+
$[30] = isReady;
|
|
201
|
+
$[31] = panelSizes;
|
|
202
|
+
$[32] = t17;
|
|
203
|
+
} else t17 = $[32];
|
|
204
|
+
const stateValue = t17;
|
|
205
|
+
let t18;
|
|
206
|
+
if ($[33] !== isPanelContainerReady || $[34] !== setPanelContainer) {
|
|
207
|
+
t18 = {
|
|
196
208
|
panelContainerRef,
|
|
197
209
|
isPanelContainerReady,
|
|
198
210
|
setPanelContainer
|
|
199
211
|
};
|
|
200
|
-
$[
|
|
201
|
-
$[
|
|
202
|
-
$[
|
|
203
|
-
} else
|
|
204
|
-
const refsValue =
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
212
|
+
$[33] = isPanelContainerReady;
|
|
213
|
+
$[34] = setPanelContainer;
|
|
214
|
+
$[35] = t18;
|
|
215
|
+
} else t18 = $[35];
|
|
216
|
+
const refsValue = t18;
|
|
217
|
+
const t19 = panelTransitionCount > 0;
|
|
218
|
+
let t20;
|
|
219
|
+
if ($[36] !== registerPanelTransition || $[37] !== t19) {
|
|
220
|
+
t20 = {
|
|
221
|
+
isClippingPanels: t19,
|
|
222
|
+
registerPanelTransition
|
|
223
|
+
};
|
|
224
|
+
$[36] = registerPanelTransition;
|
|
225
|
+
$[37] = t19;
|
|
226
|
+
$[38] = t20;
|
|
227
|
+
} else t20 = $[38];
|
|
228
|
+
let t21;
|
|
229
|
+
if ($[39] !== children || $[40] !== t20) {
|
|
230
|
+
t21 = /* @__PURE__ */ jsx(LayoutPanelTransitionContext.Provider, {
|
|
231
|
+
value: t20,
|
|
209
232
|
children
|
|
210
233
|
});
|
|
211
|
-
$[
|
|
212
|
-
$[
|
|
213
|
-
$[
|
|
214
|
-
} else
|
|
215
|
-
let
|
|
216
|
-
if ($[
|
|
217
|
-
|
|
234
|
+
$[39] = children;
|
|
235
|
+
$[40] = t20;
|
|
236
|
+
$[41] = t21;
|
|
237
|
+
} else t21 = $[41];
|
|
238
|
+
let t22;
|
|
239
|
+
if ($[42] !== stateValue || $[43] !== t21) {
|
|
240
|
+
t22 = /* @__PURE__ */ jsx(LayoutStateContext.Provider, {
|
|
241
|
+
value: stateValue,
|
|
242
|
+
children: t21
|
|
243
|
+
});
|
|
244
|
+
$[42] = stateValue;
|
|
245
|
+
$[43] = t21;
|
|
246
|
+
$[44] = t22;
|
|
247
|
+
} else t22 = $[44];
|
|
248
|
+
let t23;
|
|
249
|
+
if ($[45] !== actionsValue || $[46] !== t22) {
|
|
250
|
+
t23 = /* @__PURE__ */ jsx(LayoutActionsContext.Provider, {
|
|
218
251
|
value: actionsValue,
|
|
219
|
-
children:
|
|
252
|
+
children: t22
|
|
220
253
|
});
|
|
221
|
-
$[
|
|
222
|
-
$[
|
|
223
|
-
$[
|
|
224
|
-
} else
|
|
225
|
-
let
|
|
226
|
-
if ($[
|
|
227
|
-
|
|
254
|
+
$[45] = actionsValue;
|
|
255
|
+
$[46] = t22;
|
|
256
|
+
$[47] = t23;
|
|
257
|
+
} else t23 = $[47];
|
|
258
|
+
let t24;
|
|
259
|
+
if ($[48] !== refsValue || $[49] !== t23) {
|
|
260
|
+
t24 = /* @__PURE__ */ jsx(LayoutRefsContext.Provider, {
|
|
228
261
|
value: refsValue,
|
|
229
|
-
children:
|
|
262
|
+
children: t23
|
|
230
263
|
});
|
|
231
|
-
$[
|
|
232
|
-
$[
|
|
233
|
-
$[
|
|
234
|
-
} else
|
|
235
|
-
return
|
|
264
|
+
$[48] = refsValue;
|
|
265
|
+
$[49] = t23;
|
|
266
|
+
$[50] = t24;
|
|
267
|
+
} else t24 = $[50];
|
|
268
|
+
return t24;
|
|
236
269
|
}
|
|
237
270
|
/**
|
|
238
271
|
* Provider that resets the layout context for sub-components.
|
|
239
272
|
* Used to prevent panels in nested Layouts from affecting parent layouts.
|
|
240
273
|
*/
|
|
274
|
+
function _temp3(count_0) {
|
|
275
|
+
return count_0 - 1;
|
|
276
|
+
}
|
|
277
|
+
function _temp2(count) {
|
|
278
|
+
return count + 1;
|
|
279
|
+
}
|
|
241
280
|
function _temp(dismiss_0) {
|
|
242
281
|
return dismiss_0();
|
|
243
282
|
}
|
|
@@ -252,7 +291,10 @@ function LayoutContextReset(t0) {
|
|
|
252
291
|
value: null,
|
|
253
292
|
children: /* @__PURE__ */ jsx(LayoutStateContext.Provider, {
|
|
254
293
|
value: null,
|
|
255
|
-
children
|
|
294
|
+
children: /* @__PURE__ */ jsx(LayoutPanelTransitionContext.Provider, {
|
|
295
|
+
value: null,
|
|
296
|
+
children
|
|
297
|
+
})
|
|
256
298
|
})
|
|
257
299
|
})
|
|
258
300
|
});
|
|
@@ -267,5 +309,5 @@ function useLayoutPanelContext() {
|
|
|
267
309
|
}
|
|
268
310
|
|
|
269
311
|
//#endregion
|
|
270
|
-
export { LayoutActionsContext, LayoutContextReset, LayoutPanelContext, LayoutProvider, LayoutRefsContext, LayoutStateContext, useLayoutActionsContext, useLayoutPanelContext, useLayoutRefsContext, useLayoutStateContext };
|
|
312
|
+
export { LayoutActionsContext, LayoutContextReset, LayoutPanelContext, LayoutPanelTransitionContext, LayoutProvider, LayoutRefsContext, LayoutStateContext, useLayoutActionsContext, useLayoutPanelContext, useLayoutRefsContext, useLayoutStateContext };
|
|
271
313
|
//# sourceMappingURL=LayoutContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutContext.js","names":["createContext","MutableRefObject","ReactNode","useContext","useMemo","useRef","useState","useEvent","Side","LayoutRefsContextValue","panelContainerRef","HTMLDivElement","isPanelContainerReady","setPanelContainer","element","LayoutRefsContext","useLayoutRefsContext","OverlayDismissCallback","LayoutActionsContextValue","registerPanel","side","size","unregisterPanel","updatePanelSize","setDragging","isDragging","markReady","updateContainerSize","width","height","registerOverlayPanel","dismiss","dismissOverlayPanels","hasTransition","minContentSize","LayoutStateContextValue","panelSizes","Record","isReady","hasOverlayPanels","containerWidth","containerHeight","LayoutActionsContext","LayoutStateContext","useLayoutActionsContext","useLayoutStateContext","LayoutContextValue","useLayoutContext","$","_c","actions","state","refs","t0","LayoutProviderProps","children","LayoutProvider","t1","t2","undefined","t3","Symbol","for","Set","registeredPanels","t4","overlayPanelCallbacks","setIsPanelContainerReady","t5","current","t6","left","top","right","bottom","setPanelSizes","setIsDragging","setIsReady","setHasOverlayPanels","setContainerWidth","setContainerHeight","t7","prev","t8","side_0","size_0","has","Error","isHorizontal","conflictingSides","conflictSide","add","t9","side_1","delete","t10","dragging","t11","t12","t13","forEach","_temp","t14","prev_0","prev_1","t15","actionsValue","t16","stateValue","t17","refsValue","t18","t19","t20","dismiss_0","LayoutContextReset","LayoutPanelContextValue","onOpenChange","isOpen","LayoutPanelContext","useLayoutPanelContext"],"sources":["../../../../src/components/content/Layout/LayoutContext.tsx"],"sourcesContent":["import {\n createContext,\n MutableRefObject,\n ReactNode,\n useContext,\n useMemo,\n useRef,\n useState,\n} from 'react';\n\nimport { useEvent } from '../../../_internal/hooks';\n\nexport type Side = 'left' | 'top' | 'right' | 'bottom';\n\n/**\n * Refs context - stable refs that don't change and don't trigger re-renders.\n * Provides portal container ref for panels to render into.\n */\nexport interface LayoutRefsContextValue {\n /** Container element ref for panels to portal into */\n panelContainerRef: MutableRefObject<HTMLDivElement | null>;\n /** Whether the panel container is mounted and ready for portals */\n isPanelContainerReady: boolean;\n /** Callback ref to set on the panel container element */\n setPanelContainer: (element: HTMLDivElement | null) => void;\n}\n\nexport const LayoutRefsContext = createContext<LayoutRefsContextValue | null>(\n null,\n);\n\nexport function useLayoutRefsContext(): LayoutRefsContextValue | null {\n return useContext(LayoutRefsContext);\n}\n\n/** Callback to dismiss an overlay panel */\nexport type OverlayDismissCallback = () => void;\n\n/**\n * Actions context - stable functions and configuration that don't change.\n * Separating these from state prevents unnecessary re-renders when only state changes.\n */\nexport interface LayoutActionsContextValue {\n /** Register a panel on a specific side with initial size */\n registerPanel: (side: Side, size: number) => void;\n /** Unregister a panel from a specific side */\n unregisterPanel: (side: Side) => void;\n /** Update the size of a registered panel */\n updatePanelSize: (side: Side, size: number) => void;\n /** Set global dragging state (when any panel is being resized) */\n setDragging: (isDragging: boolean) => void;\n /** Mark the layout as ready (after initial mount) */\n markReady: () => void;\n /** Update the container dimensions (called from ResizeObserver) */\n updateContainerSize: (width: number, height: number) => void;\n /** Register an overlay panel's dismiss callback. Returns unregister function. */\n registerOverlayPanel: (dismiss: OverlayDismissCallback) => () => void;\n /** Dismiss all overlay panels */\n dismissOverlayPanels: () => void;\n /** Whether transitions are enabled for panels (stable config value) */\n hasTransition: boolean;\n /** Minimum size reserved for the content area between panels */\n minContentSize: number;\n}\n\n/** State context - reactive state that triggers re-renders */\nexport interface LayoutStateContextValue {\n panelSizes: Record<Side, number>;\n isDragging: boolean;\n isReady: boolean;\n hasOverlayPanels: boolean;\n containerWidth: number;\n containerHeight: number;\n}\n\nexport const LayoutActionsContext =\n createContext<LayoutActionsContextValue | null>(null);\nexport const LayoutStateContext = createContext<LayoutStateContextValue | null>(\n null,\n);\n\nexport function useLayoutActionsContext(): LayoutActionsContextValue | null {\n return useContext(LayoutActionsContext);\n}\n\nexport function useLayoutStateContext(): LayoutStateContextValue | null {\n return useContext(LayoutStateContext);\n}\n\n/** Combined layout context value for convenience */\nexport interface LayoutContextValue\n extends LayoutActionsContextValue,\n LayoutStateContextValue,\n LayoutRefsContextValue {}\n\n/**\n * Combined hook that returns all layout context values.\n * Convenience wrapper around the individual context hooks.\n * Returns null if used outside of a Layout component.\n */\nexport function useLayoutContext(): LayoutContextValue | null {\n const actions = useLayoutActionsContext();\n const state = useLayoutStateContext();\n const refs = useLayoutRefsContext();\n\n if (!actions || !state || !refs) {\n return null;\n }\n\n return { ...actions, ...state, ...refs };\n}\n\nexport interface LayoutProviderProps {\n children: ReactNode;\n /** Whether transitions are enabled for panels */\n hasTransition?: boolean;\n /** Minimum size reserved for the content area between panels. Default: 320 */\n minContentSize?: number;\n}\n\nexport function LayoutProvider({\n children,\n hasTransition = false,\n minContentSize = 320,\n}: LayoutProviderProps) {\n const registeredPanels = useRef<Set<Side>>(new Set());\n const overlayPanelCallbacks = useRef<Set<OverlayDismissCallback>>(new Set());\n const panelContainerRef = useRef<HTMLDivElement | null>(null);\n const [isPanelContainerReady, setIsPanelContainerReady] = useState(false);\n\n // Callback ref for panel container - triggers re-render when container mounts\n const setPanelContainer = useEvent((element: HTMLDivElement | null) => {\n panelContainerRef.current = element;\n setIsPanelContainerReady(element !== null);\n });\n\n const [panelSizes, setPanelSizes] = useState<Record<Side, number>>({\n left: 0,\n top: 0,\n right: 0,\n bottom: 0,\n });\n const [isDragging, setIsDragging] = useState(false);\n const [isReady, setIsReady] = useState(false);\n const [hasOverlayPanels, setHasOverlayPanels] = useState(false);\n const [containerWidth, setContainerWidth] = useState(0);\n const [containerHeight, setContainerHeight] = useState(0);\n\n const updatePanelSize = useEvent((side: Side, size: number) => {\n setPanelSizes((prev) => {\n if (prev[side] === size) return prev;\n return { ...prev, [side]: size };\n });\n });\n\n const registerPanel = useEvent((side: Side, size: number) => {\n if (registeredPanels.current.has(side)) {\n throw new Error(\n `Layout: Only one panel per side is allowed. ` +\n `A panel is already registered on the \"${side}\" side.`,\n );\n }\n\n // Check for axis conflict\n const isHorizontal = side === 'left' || side === 'right';\n const conflictingSides: Side[] = isHorizontal\n ? ['top', 'bottom']\n : ['left', 'right'];\n\n for (const conflictSide of conflictingSides) {\n if (registeredPanels.current.has(conflictSide)) {\n throw new Error(\n `Layout: Panels from different axes cannot be combined. ` +\n `Cannot register \"${side}\" panel when \"${conflictSide}\" panel exists. ` +\n `Use either horizontal (left/right) or vertical (top/bottom) panels.`,\n );\n }\n }\n\n registeredPanels.current.add(side);\n updatePanelSize(side, size);\n });\n\n const unregisterPanel = useEvent((side: Side) => {\n registeredPanels.current.delete(side);\n updatePanelSize(side, 0);\n });\n\n const setDragging = useEvent((dragging: boolean) => {\n setIsDragging(dragging);\n });\n\n const markReady = useEvent(() => {\n setIsReady(true);\n });\n\n const registerOverlayPanel = useEvent((dismiss: OverlayDismissCallback) => {\n overlayPanelCallbacks.current.add(dismiss);\n setHasOverlayPanels(true);\n\n // Return unregister function\n return () => {\n overlayPanelCallbacks.current.delete(dismiss);\n setHasOverlayPanels(overlayPanelCallbacks.current.size > 0);\n };\n });\n\n const dismissOverlayPanels = useEvent(() => {\n overlayPanelCallbacks.current.forEach((dismiss) => dismiss());\n });\n\n const updateContainerSize = useEvent((width: number, height: number) => {\n setContainerWidth((prev) => (prev === width ? prev : width));\n setContainerHeight((prev) => (prev === height ? prev : height));\n });\n\n // Actions context - stable because all callbacks use useEvent\n const actionsValue = useMemo(\n () => ({\n registerPanel,\n unregisterPanel,\n updatePanelSize,\n setDragging,\n markReady,\n updateContainerSize,\n hasTransition,\n minContentSize,\n registerOverlayPanel,\n dismissOverlayPanels,\n }),\n // Only hasTransition and minContentSize can change - the callbacks are\n // stable useEvent ones, listed so React Compiler can preserve the memo.\n [\n registerPanel,\n unregisterPanel,\n updatePanelSize,\n setDragging,\n markReady,\n updateContainerSize,\n hasTransition,\n minContentSize,\n registerOverlayPanel,\n dismissOverlayPanels,\n ],\n );\n\n // State context - changes when state updates\n const stateValue = useMemo(\n () => ({\n panelSizes,\n isDragging,\n isReady,\n hasOverlayPanels,\n containerWidth,\n containerHeight,\n }),\n [\n panelSizes,\n isDragging,\n isReady,\n hasOverlayPanels,\n containerWidth,\n containerHeight,\n ],\n );\n\n // Refs context - includes container ready state\n const refsValue = useMemo(\n () => ({\n panelContainerRef,\n isPanelContainerReady,\n setPanelContainer,\n }),\n [isPanelContainerReady, setPanelContainer],\n );\n\n return (\n <LayoutRefsContext.Provider value={refsValue}>\n <LayoutActionsContext.Provider value={actionsValue}>\n <LayoutStateContext.Provider value={stateValue}>\n {children}\n </LayoutStateContext.Provider>\n </LayoutActionsContext.Provider>\n </LayoutRefsContext.Provider>\n );\n}\n\n/**\n * Provider that resets the layout context for sub-components.\n * Used to prevent panels in nested Layouts from affecting parent layouts.\n */\nexport function LayoutContextReset({ children }: { children: ReactNode }) {\n return (\n <LayoutRefsContext.Provider value={null}>\n <LayoutActionsContext.Provider value={null}>\n <LayoutStateContext.Provider value={null}>\n {children}\n </LayoutStateContext.Provider>\n </LayoutActionsContext.Provider>\n </LayoutRefsContext.Provider>\n );\n}\n\n// Panel context - provides panel-level callbacks to child components\nexport interface LayoutPanelContextValue {\n /** Callback to change the panel's open state */\n onOpenChange: (isOpen: boolean) => void;\n /** Current open state of the panel */\n isOpen: boolean;\n}\n\nexport const LayoutPanelContext = createContext<LayoutPanelContextValue | null>(\n null,\n);\n\nexport function useLayoutPanelContext(): LayoutPanelContextValue | null {\n return useContext(LayoutPanelContext);\n}\n"],"mappings":";;;;;;;AA2BA,MAAae,oBAAoBf,cAC/B,KACD;AAED,SAAOgB,uBAAA;AAAA,QACEb,WAAWY,kBAAkB;;AA2CtC,MAAa2B,uBACX1C,cAAgD,KAAK;AACvD,MAAa2C,qBAAqB3C,cAChC,KACD;AAED,SAAO4C,0BAAA;AAAA,QACEzC,WAAWuC,qBAAqB;;AAGzC,SAAOG,wBAAA;AAAA,QACE1C,WAAWwC,mBAAmB;;AAkCvC,SAAOa,eAAAH,IAAA;CAAA,MAAAL,IAAAC,EAAA,GAAA;CAAwB,MAAA,EAAAM,UAAAtB,eAAAwB,IAAAvB,gBAAAwB,OAAAL;CAE7B,MAAApB,gBAAAwB,OAAAE,SAAA,QAAAF;CACA,MAAAvB,iBAAAwB,OAAAC,SAAA,MAAAD;CAAoB,IAAAE;AAAA,KAAAZ,EAAA,OAAAa,OAAAC,IAAA,4BAAA,EAAA;AAEuBF,uBAAA,IAAIG,KAAK;AAAAf,IAAA,KAAAY;OAAAA,MAAAZ,EAAA;CAApD,MAAAgB,mBAAyB3D,OAAkBuD,GAAU;CAAC,IAAAK;AAAA,KAAAjB,EAAA,OAAAa,OAAAC,IAAA,4BAAA,EAAA;AACYG,uBAAA,IAAIF,KAAK;AAAAf,IAAA,KAAAiB;OAAAA,MAAAjB,EAAA;CAA3E,MAAAkB,wBAA8B7D,OAAoC4D,GAAU;CAC5E,MAAAvD,oBAA0BL,OAA8B,KAAK;CAC7D,MAAA,CAAAO,uBAAAuD,4BAA0D7D,SAAS,MAAM;CAAC,IAAA8D;AAAA,KAAApB,EAAA,OAAAa,OAAAC,IAAA,4BAAA,EAAA;AAGvCM,QAAAtD,YA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D,IAAA,MAAAgE;AAAAhE,IAAA,MAAAiE;OAAAA,OAAAjE,EAAA;AAAA,QAN7BiE;;;;;;AA7JG,SAAAZ,MAAAa,WAAA;AAAA,QAwFgDnF,WAAS;;AAmFhE,SAAOoF,mBAAA9D,IAAA;CAAA,MAAAL,IAAAC,EAAA,EAAA;CAA4B,MAAA,EAAAM,aAAAF;CAAqC,IAAAI;AAAA,KAAAT,EAAA,OAAAO,UAAA;AAEpEE,OAAA,oBAAA,kBAAA;GAAmC,OAAA;aACjC,oBAAA,qBAAA;IAAsC,OAAA;cACpC,oBAAA,mBAAA;KAAoC,OAAA;KACjCF;MAEL;KACF;IAA6B;AAAAP,IAAA,KAAAO;AAAAP,IAAA,KAAAS;OAAAA,MAAAT,EAAA;AAAA,QAN7BS;;AAkBJ,MAAa8D,qBAAqBvH,cAChC,KACD;AAED,SAAOwH,wBAAA;AAAA,QACErH,WAAWoH,mBAAmB"}
|
|
1
|
+
{"version":3,"file":"LayoutContext.js","names":["createContext","MutableRefObject","ReactNode","useContext","useMemo","useRef","useState","useEvent","Side","LayoutRefsContextValue","panelContainerRef","HTMLDivElement","isPanelContainerReady","setPanelContainer","element","LayoutRefsContext","useLayoutRefsContext","OverlayDismissCallback","LayoutActionsContextValue","registerPanel","side","size","unregisterPanel","updatePanelSize","setDragging","isDragging","markReady","updateContainerSize","width","height","registerOverlayPanel","dismiss","dismissOverlayPanels","hasTransition","minContentSize","LayoutStateContextValue","panelSizes","Record","isReady","hasOverlayPanels","containerWidth","containerHeight","LayoutActionsContext","LayoutStateContext","LayoutPanelTransitionContext","isClippingPanels","registerPanelTransition","useLayoutActionsContext","useLayoutStateContext","LayoutContextValue","useLayoutContext","$","_c","actions","state","refs","t0","LayoutProviderProps","children","LayoutProvider","t1","t2","undefined","t3","Symbol","for","Set","registeredPanels","t4","overlayPanelCallbacks","setIsPanelContainerReady","t5","current","t6","left","top","right","bottom","setPanelSizes","setIsDragging","setIsReady","setHasOverlayPanels","panelTransitionCount","setPanelTransitionCount","setContainerWidth","setContainerHeight","t7","prev","t8","side_0","size_0","has","Error","isHorizontal","conflictingSides","conflictSide","add","t9","side_1","delete","t10","dragging","t11","t12","t13","forEach","_temp","t14","_temp2","_temp3","t15","prev_0","prev_1","t16","actionsValue","t17","stateValue","t18","refsValue","t19","t20","t21","t22","t23","t24","count_0","count","dismiss_0","LayoutContextReset","LayoutPanelContextValue","onOpenChange","isOpen","LayoutPanelContext","useLayoutPanelContext"],"sources":["../../../../src/components/content/Layout/LayoutContext.tsx"],"sourcesContent":["import {\n createContext,\n MutableRefObject,\n ReactNode,\n useContext,\n useMemo,\n useRef,\n useState,\n} from 'react';\n\nimport { useEvent } from '../../../_internal/hooks';\n\nexport type Side = 'left' | 'top' | 'right' | 'bottom';\n\n/**\n * Refs context - stable refs that don't change and don't trigger re-renders.\n * Provides portal container ref for panels to render into.\n */\nexport interface LayoutRefsContextValue {\n /** Container element ref for panels to portal into */\n panelContainerRef: MutableRefObject<HTMLDivElement | null>;\n /** Whether the panel container is mounted and ready for portals */\n isPanelContainerReady: boolean;\n /** Callback ref to set on the panel container element */\n setPanelContainer: (element: HTMLDivElement | null) => void;\n}\n\nexport const LayoutRefsContext = createContext<LayoutRefsContextValue | null>(\n null,\n);\n\nexport function useLayoutRefsContext(): LayoutRefsContextValue | null {\n return useContext(LayoutRefsContext);\n}\n\n/** Callback to dismiss an overlay panel */\nexport type OverlayDismissCallback = () => void;\n\n/**\n * Actions context - stable functions and configuration that don't change.\n * Separating these from state prevents unnecessary re-renders when only state changes.\n */\nexport interface LayoutActionsContextValue {\n /** Register a panel on a specific side with initial size */\n registerPanel: (side: Side, size: number) => void;\n /** Unregister a panel from a specific side */\n unregisterPanel: (side: Side) => void;\n /** Update the size of a registered panel */\n updatePanelSize: (side: Side, size: number) => void;\n /** Set global dragging state (when any panel is being resized) */\n setDragging: (isDragging: boolean) => void;\n /** Mark the layout as ready (after initial mount) */\n markReady: () => void;\n /** Update the container dimensions (called from ResizeObserver) */\n updateContainerSize: (width: number, height: number) => void;\n /** Register an overlay panel's dismiss callback. Returns unregister function. */\n registerOverlayPanel: (dismiss: OverlayDismissCallback) => () => void;\n /** Dismiss all overlay panels */\n dismissOverlayPanels: () => void;\n /** Whether transitions are enabled for panels (stable config value) */\n hasTransition: boolean;\n /** Minimum size reserved for the content area between panels */\n minContentSize: number;\n}\n\n/** State context - reactive state that triggers re-renders */\nexport interface LayoutStateContextValue {\n panelSizes: Record<Side, number>;\n isDragging: boolean;\n isReady: boolean;\n hasOverlayPanels: boolean;\n containerWidth: number;\n containerHeight: number;\n}\n\nexport const LayoutActionsContext =\n createContext<LayoutActionsContextValue | null>(null);\nexport const LayoutStateContext = createContext<LayoutStateContextValue | null>(\n null,\n);\n\n/** Private transition coordination; not part of the public Layout context API. */\nexport const LayoutPanelTransitionContext = createContext<{\n isClippingPanels: boolean;\n registerPanelTransition: () => () => void;\n} | null>(null);\n\nexport function useLayoutActionsContext(): LayoutActionsContextValue | null {\n return useContext(LayoutActionsContext);\n}\n\nexport function useLayoutStateContext(): LayoutStateContextValue | null {\n return useContext(LayoutStateContext);\n}\n\n/** Combined layout context value for convenience */\nexport interface LayoutContextValue\n extends LayoutActionsContextValue,\n LayoutStateContextValue,\n LayoutRefsContextValue {}\n\n/**\n * Combined hook that returns all layout context values.\n * Convenience wrapper around the individual context hooks.\n * Returns null if used outside of a Layout component.\n */\nexport function useLayoutContext(): LayoutContextValue | null {\n const actions = useLayoutActionsContext();\n const state = useLayoutStateContext();\n const refs = useLayoutRefsContext();\n\n if (!actions || !state || !refs) {\n return null;\n }\n\n return { ...actions, ...state, ...refs };\n}\n\nexport interface LayoutProviderProps {\n children: ReactNode;\n /** Whether transitions are enabled for panels */\n hasTransition?: boolean;\n /** Minimum size reserved for the content area between panels. Default: 320 */\n minContentSize?: number;\n}\n\nexport function LayoutProvider({\n children,\n hasTransition = false,\n minContentSize = 320,\n}: LayoutProviderProps) {\n const registeredPanels = useRef<Set<Side>>(new Set());\n const overlayPanelCallbacks = useRef<Set<OverlayDismissCallback>>(new Set());\n const panelContainerRef = useRef<HTMLDivElement | null>(null);\n const [isPanelContainerReady, setIsPanelContainerReady] = useState(false);\n\n // Callback ref for panel container - triggers re-render when container mounts\n const setPanelContainer = useEvent((element: HTMLDivElement | null) => {\n panelContainerRef.current = element;\n setIsPanelContainerReady(element !== null);\n });\n\n const [panelSizes, setPanelSizes] = useState<Record<Side, number>>({\n left: 0,\n top: 0,\n right: 0,\n bottom: 0,\n });\n const [isDragging, setIsDragging] = useState(false);\n const [isReady, setIsReady] = useState(false);\n const [hasOverlayPanels, setHasOverlayPanels] = useState(false);\n const [panelTransitionCount, setPanelTransitionCount] = useState(0);\n const [containerWidth, setContainerWidth] = useState(0);\n const [containerHeight, setContainerHeight] = useState(0);\n\n const updatePanelSize = useEvent((side: Side, size: number) => {\n setPanelSizes((prev) => {\n if (prev[side] === size) return prev;\n return { ...prev, [side]: size };\n });\n });\n\n const registerPanel = useEvent((side: Side, size: number) => {\n if (registeredPanels.current.has(side)) {\n throw new Error(\n `Layout: Only one panel per side is allowed. ` +\n `A panel is already registered on the \"${side}\" side.`,\n );\n }\n\n // Check for axis conflict\n const isHorizontal = side === 'left' || side === 'right';\n const conflictingSides: Side[] = isHorizontal\n ? ['top', 'bottom']\n : ['left', 'right'];\n\n for (const conflictSide of conflictingSides) {\n if (registeredPanels.current.has(conflictSide)) {\n throw new Error(\n `Layout: Panels from different axes cannot be combined. ` +\n `Cannot register \"${side}\" panel when \"${conflictSide}\" panel exists. ` +\n `Use either horizontal (left/right) or vertical (top/bottom) panels.`,\n );\n }\n }\n\n registeredPanels.current.add(side);\n updatePanelSize(side, size);\n });\n\n const unregisterPanel = useEvent((side: Side) => {\n registeredPanels.current.delete(side);\n updatePanelSize(side, 0);\n });\n\n const setDragging = useEvent((dragging: boolean) => {\n setIsDragging(dragging);\n });\n\n const markReady = useEvent(() => {\n setIsReady(true);\n });\n\n const registerOverlayPanel = useEvent((dismiss: OverlayDismissCallback) => {\n overlayPanelCallbacks.current.add(dismiss);\n setHasOverlayPanels(true);\n\n // Return unregister function\n return () => {\n overlayPanelCallbacks.current.delete(dismiss);\n setHasOverlayPanels(overlayPanelCallbacks.current.size > 0);\n };\n });\n\n const dismissOverlayPanels = useEvent(() => {\n overlayPanelCallbacks.current.forEach((dismiss) => dismiss());\n });\n\n const registerPanelTransition = useEvent(() => {\n setPanelTransitionCount((count) => count + 1);\n return () => setPanelTransitionCount((count) => count - 1);\n });\n\n const updateContainerSize = useEvent((width: number, height: number) => {\n setContainerWidth((prev) => (prev === width ? prev : width));\n setContainerHeight((prev) => (prev === height ? prev : height));\n });\n\n // Actions context - stable because all callbacks use useEvent\n const actionsValue = useMemo(\n () => ({\n registerPanel,\n unregisterPanel,\n updatePanelSize,\n setDragging,\n markReady,\n updateContainerSize,\n hasTransition,\n minContentSize,\n registerOverlayPanel,\n dismissOverlayPanels,\n }),\n // Only hasTransition and minContentSize can change - the callbacks are\n // stable useEvent ones, listed so React Compiler can preserve the memo.\n [\n registerPanel,\n unregisterPanel,\n updatePanelSize,\n setDragging,\n markReady,\n updateContainerSize,\n hasTransition,\n minContentSize,\n registerOverlayPanel,\n dismissOverlayPanels,\n ],\n );\n\n // State context - changes when state updates\n const stateValue = useMemo(\n () => ({\n panelSizes,\n isDragging,\n isReady,\n hasOverlayPanels,\n containerWidth,\n containerHeight,\n }),\n [\n panelSizes,\n isDragging,\n isReady,\n hasOverlayPanels,\n containerWidth,\n containerHeight,\n ],\n );\n\n // Refs context - includes container ready state\n const refsValue = useMemo(\n () => ({\n panelContainerRef,\n isPanelContainerReady,\n setPanelContainer,\n }),\n [isPanelContainerReady, setPanelContainer],\n );\n\n return (\n <LayoutRefsContext.Provider value={refsValue}>\n <LayoutActionsContext.Provider value={actionsValue}>\n <LayoutStateContext.Provider value={stateValue}>\n <LayoutPanelTransitionContext.Provider\n value={{\n isClippingPanels: panelTransitionCount > 0,\n registerPanelTransition,\n }}\n >\n {children}\n </LayoutPanelTransitionContext.Provider>\n </LayoutStateContext.Provider>\n </LayoutActionsContext.Provider>\n </LayoutRefsContext.Provider>\n );\n}\n\n/**\n * Provider that resets the layout context for sub-components.\n * Used to prevent panels in nested Layouts from affecting parent layouts.\n */\nexport function LayoutContextReset({ children }: { children: ReactNode }) {\n return (\n <LayoutRefsContext.Provider value={null}>\n <LayoutActionsContext.Provider value={null}>\n <LayoutStateContext.Provider value={null}>\n <LayoutPanelTransitionContext.Provider value={null}>\n {children}\n </LayoutPanelTransitionContext.Provider>\n </LayoutStateContext.Provider>\n </LayoutActionsContext.Provider>\n </LayoutRefsContext.Provider>\n );\n}\n\n// Panel context - provides panel-level callbacks to child components\nexport interface LayoutPanelContextValue {\n /** Callback to change the panel's open state */\n onOpenChange: (isOpen: boolean) => void;\n /** Current open state of the panel */\n isOpen: boolean;\n}\n\nexport const LayoutPanelContext = createContext<LayoutPanelContextValue | null>(\n null,\n);\n\nexport function useLayoutPanelContext(): LayoutPanelContextValue | null {\n return useContext(LayoutPanelContext);\n}\n"],"mappings":";;;;;;;AA2BA,MAAae,oBAAoBf,cAC/B,KACD;AAED,SAAOgB,uBAAA;AAAA,QACEb,WAAWY,kBAAkB;;AA2CtC,MAAa2B,uBACX1C,cAAgD,KAAK;AACvD,MAAa2C,qBAAqB3C,cAChC,KACD;;AAGD,MAAa4C,+BAA+B5C,cAGlC,KAAK;AAEf,SAAO+C,0BAAA;AAAA,QACE5C,WAAWuC,qBAAqB;;AAGzC,SAAOM,wBAAA;AAAA,QACE7C,WAAWwC,mBAAmB;;AAkCvC,SAAOgB,eAAAH,IAAA;CAAA,MAAAL,IAAAC,EAAA,GAAA;CAAwB,MAAA,EAAAM,UAAAzB,eAAA2B,IAAA1B,gBAAA2B,OAAAL;CAE7B,MAAAvB,gBAAA2B,OAAAE,SAAA,QAAAF;CACA,MAAA1B,iBAAA2B,OAAAC,SAAA,MAAAD;CAAoB,IAAAE;AAAA,KAAAZ,EAAA,OAAAa,OAAAC,IAAA,4BA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IAAA,MAAAyE;OAAAA,OAAAzE,EAAA;AAAA,QAb7ByE;;;;;;AAnKG,SAAAf,OAAAgB,SAAA;AAAA,QA8F6CC,UAAQ;;AA9FrD,SAAAlB,OAAAkB,OAAA;AAAA,QA6FgCA,QAAQ;;AA7FxC,SAAApB,MAAAqB,WAAA;AAAA,QAyFgDhG,WAAS;;AA+FhE,SAAOiG,mBAAAxE,IAAA;CAAA,MAAAL,IAAAC,EAAA,EAAA;CAA4B,MAAA,EAAAM,aAAAF;CAAqC,IAAAI;AAAA,KAAAT,EAAA,OAAAO,UAAA;AAEpEE,OAAA,oBAAA,kBAAA;GAAmC,OAAA;aACjC,oBAAA,qBAAA;IAAsC,OAAA;cACpC,oBAAA,mBAAA;KAAoC,OAAA;eAClC,oBAAA,6BAAA;MAA8C,OAAA;MAC3CF;OAEL;MACF;KACF;IAA6B;AAAAP,IAAA,KAAAO;AAAAP,IAAA,KAAAS;OAAAA,MAAAT,EAAA;AAAA,QAR7BS;;AAoBJ,MAAawE,qBAAqBpI,cAChC,KACD;AAED,SAAOqI,wBAAA;AAAA,QACElI,WAAWiI,mBAAmB"}
|
|
@@ -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-e852864 | Cube Dev Team */
|
|
2
2
|
import { _LayoutContent } from "./LayoutContent.js";
|
|
3
|
-
import { c } from "react
|
|
3
|
+
import { c } from "react-compiler-runtime";
|
|
4
4
|
import { tasty } from "@tenphi/tasty";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -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-e852864 | Cube Dev Team */
|
|
2
2
|
import { _LayoutContent } from "./LayoutContent.js";
|
|
3
|
-
import { c } from "react
|
|
3
|
+
import { c } from "react-compiler-runtime";
|
|
4
4
|
import { tasty } from "@tenphi/tasty";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -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-e852864 | Cube Dev Team */
|
|
2
2
|
import { _LayoutContent } from "./LayoutContent.js";
|
|
3
|
-
import { c } from "react
|
|
3
|
+
import { c } from "react-compiler-runtime";
|
|
4
4
|
import { tasty } from "@tenphi/tasty";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-e852864 | Cube Dev Team */
|
|
2
2
|
import { useAutoTooltip } from "../use-auto-tooltip.js";
|
|
3
3
|
import { useI18n } from "../../../i18n/useI18n.js";
|
|
4
4
|
import { Button } from "../../actions/Button/Button.js";
|
|
5
5
|
import { Link } from "../../actions/Link/Link.js";
|
|
6
6
|
import { _LayoutContent } from "./LayoutContent.js";
|
|
7
7
|
import { SlashIcon } from "../../../icons/SlashIcon.js";
|
|
8
|
-
import { c } from "react
|
|
8
|
+
import { c } from "react-compiler-runtime";
|
|
9
9
|
import { tasty } from "@tenphi/tasty";
|
|
10
10
|
import { Fragment, forwardRef, useRef } from "react";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-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-e852864 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
4
4
|
import { useCombinedRefs } from "../../../utils/react/useCombinedRefs.js";
|
|
@@ -6,7 +6,7 @@ import { useDebouncedValue } from "../../../_internal/hooks/use-debounced-value.
|
|
|
6
6
|
import { LayoutContextReset } from "./LayoutContext.js";
|
|
7
7
|
import { useTinyScrollbar } from "./hooks/useTinyScrollbar.js";
|
|
8
8
|
import { clampSize } from "./utils.js";
|
|
9
|
-
import { c } from "react
|
|
9
|
+
import { c } from "react-compiler-runtime";
|
|
10
10
|
import { INNER_STYLES, OUTER_STYLES, filterBaseProps, mergeStyles, tasty } from "@tenphi/tasty";
|
|
11
11
|
import { forwardRef, useEffect, useRef, useState } from "react";
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-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-e852864 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
4
4
|
import { useCombinedRefs } from "../../../utils/react/useCombinedRefs.js";
|
|
@@ -9,7 +9,8 @@ import { DialogContainer } from "../../overlays/Dialog/DialogContainer.js";
|
|
|
9
9
|
import { Dialog } from "../../overlays/Dialog/Dialog.js";
|
|
10
10
|
import { LayoutContextReset, LayoutPanelContext, useLayoutActionsContext, useLayoutRefsContext, useLayoutStateContext } from "./LayoutContext.js";
|
|
11
11
|
import { clampSize, getOppositeSide, resolveCssSize } from "./utils.js";
|
|
12
|
-
import {
|
|
12
|
+
import { LayoutPanelTransition } from "./LayoutPanelTransition.js";
|
|
13
|
+
import { c } from "react-compiler-runtime";
|
|
13
14
|
import { CONTAINER_STYLES, filterBaseProps, mergeStyles, tasty } from "@tenphi/tasty";
|
|
14
15
|
import { forwardRef, useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
15
16
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -563,7 +564,11 @@ function LayoutPanel(props, ref) {
|
|
|
563
564
|
if (hasTransition) return createPortal(/* @__PURE__ */ jsx(DisplayTransition, {
|
|
564
565
|
isShown: isOpen,
|
|
565
566
|
animateOnMount: false,
|
|
566
|
-
children: ({ isShown, ref: transitionRef_1 }) =>
|
|
567
|
+
children: ({ isShown, isExiting, ref: transitionRef_1 }) => /* @__PURE__ */ jsx(LayoutPanelTransition, {
|
|
568
|
+
isShown,
|
|
569
|
+
isExiting,
|
|
570
|
+
children: renderPanelContent(!isShown, transitionRef_1)
|
|
571
|
+
})
|
|
567
572
|
}), portalContainer);
|
|
568
573
|
if (!isOpen) return null;
|
|
569
574
|
return createPortal(renderPanelContent(false), portalContainer);
|