@cube-dev/ui-kit 0.0.0-canary-a5b5501 → 0.0.0-canary-162cdb3
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 +8 -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/Button.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 +201 -201
- package/dist/components/actions/CommandMenu/CommandMenu.js.map +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/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/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 +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.d.ts +8 -8
- package/dist/components/content/CopySnippet/CopySnippet.js +1 -1
- package/dist/components/content/Disclosure/Disclosure.js +1 -1
- package/dist/components/content/Divider.js +1 -1
- package/dist/components/content/Footer.js +1 -1
- package/dist/components/content/Header.js +1 -1
- package/dist/components/content/HotKeys/HotKeys.js +1 -1
- package/dist/components/content/InfoBadge/InfoBadge.js +1 -1
- package/dist/components/content/InlineInput/InlineInput.js +1 -1
- package/dist/components/content/Item/Item.js +1 -1
- package/dist/components/content/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 +2 -1
- package/dist/components/content/Layout/Layout.js.map +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 +1 -1
- package/dist/components/content/Layout/LayoutPanel.js +36 -16
- package/dist/components/content/Layout/LayoutPanel.js.map +1 -1
- package/dist/components/content/Layout/LayoutPanelHeader.js +1 -1
- package/dist/components/content/Layout/LayoutPanelTransition.js +1 -1
- package/dist/components/content/Layout/LayoutToolbar.js +1 -1
- package/dist/components/content/Layout/hooks/useTinyScrollbar.js +1 -1
- package/dist/components/content/Layout/index.js +1 -1
- package/dist/components/content/Layout/utils.js +1 -1
- package/dist/components/content/Paragraph.js +1 -1
- package/dist/components/content/Placeholder/Placeholder.js +1 -1
- package/dist/components/content/PrismCode/PrismCode.js +1 -1
- package/dist/components/content/PrismCode/prismSetup.js +1 -1
- package/dist/components/content/PrismDiffCode/PrismDiffCode.js +1 -1
- package/dist/components/content/Result/Result.js +1 -1
- package/dist/components/content/Skeleton/Skeleton.js +1 -1
- package/dist/components/content/Tag/Tag.js +1 -1
- package/dist/components/content/Text.d.ts +14 -14
- 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/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/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 +3 -3
- package/dist/components/data/TableBase/ColumnResizer.js.map +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/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-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-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 +154 -166
- package/dist/components/data/TableBase/use-table-columns.js.map +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 +194 -160
- package/dist/components/fields/ComboBox/ComboBox.js.map +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/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/FilterPicker/FilterPicker.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 +15 -8
- package/dist/components/fields/ListBox/ListBox.js.map +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.d.ts +12 -12
- 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/SearchComboBox/SearchComboBox.js +71 -67
- package/dist/components/fields/SearchComboBox/SearchComboBox.js.map +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/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/useAutoSizeTextArea.js +1 -1
- package/dist/components/fields/TextInputMapper/TextInputMapper.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/form/FieldWrapper/FieldWrapper.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/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/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/Pagination/Pagination.js +1 -1
- package/dist/components/navigation/Pagination/use-pagination.js +1 -1
- package/dist/components/navigation/Tabs/BoardDragActiveProvider.d.ts +36 -0
- package/dist/components/navigation/Tabs/BoardDragActiveProvider.js +57 -0
- package/dist/components/navigation/Tabs/BoardDragActiveProvider.js.map +1 -0
- package/dist/components/navigation/Tabs/DraggableTabList.js +1 -1
- package/dist/components/navigation/Tabs/TabButton.js +2 -2
- package/dist/components/navigation/Tabs/TabButton.js.map +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 +2 -2
- package/dist/components/navigation/Tabs/Tabs.js.map +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/index.d.ts +2 -1
- 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 +1 -1
- package/dist/components/navigation/Tabs/use-tab-indicator.js +1 -1
- package/dist/components/navigation/index.d.ts +1 -0
- 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/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/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/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 -83
- package/dist/eslint-plugin/defaults.generated.js.map +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.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 -9
- package/dist/i18n/locales/en-US/uikit.js +1 -9
- package/dist/i18n/locales/en-US/uikit.json.d.ts +1 -9
- package/dist/i18n/locales/es-ES/uikit.js +1 -9
- package/dist/i18n/locales/es-MX/uikit.js +1 -9
- package/dist/i18n/locales/fr-FR/uikit.js +1 -9
- package/dist/i18n/locales/it-IT/uikit.js +1 -9
- package/dist/i18n/locales/ja-JP/uikit.js +1 -9
- package/dist/i18n/locales/nb-NO/uikit.js +1 -9
- package/dist/i18n/locales/pt-BR/uikit.js +1 -9
- package/dist/i18n/locales/pt-PT/uikit.js +1 -9
- package/dist/i18n/locales/sv-SE/uikit.js +1 -9
- package/dist/i18n/locales/vi-VN/uikit.js +1 -9
- package/dist/i18n/locales.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.d.ts +3 -15
- package/dist/index.js +3 -11
- package/dist/index.js.map +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/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 +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/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/disabledProps.js +1 -1
- package/dist/utils/react/escapePropagation.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/programmaticFocus.js +1 -1
- package/dist/utils/react/resolveIcon.js +1 -1
- package/dist/utils/react/sharedStore.js +1 -1
- package/dist/utils/react/useBufferedValue.js +1 -1
- package/dist/utils/react/useCombinedRefs.js +1 -1
- package/dist/utils/react/useControlledFocusVisible.js +1 -1
- package/dist/utils/react/useEventBus.js +1 -1
- package/dist/utils/react/useId.js +1 -1
- package/dist/utils/react/useIsDarwin.js +1 -1
- package/dist/utils/react/useKeySymbols.js +1 -1
- package/dist/utils/react/useLayoutEffect.js +1 -1
- package/dist/utils/react/useLocalStorage.js +1 -1
- package/dist/utils/react/useMergeStyles.js +1 -1
- package/dist/utils/react/useOverlayEscapeGuard.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 +2 -0
- package/docs/components/data/ItemTable.md +1 -1
- package/docs/components/navigation/Tabs.md +8 -2
- package/package.json +1 -1
- package/dist/components/layout/Board/Board.d.ts +0 -253
- package/dist/components/layout/Board/Board.js +0 -771
- package/dist/components/layout/Board/Board.js.map +0 -1
- package/dist/components/layout/Board/BoardProvider.d.ts +0 -28
- package/dist/components/layout/Board/BoardProvider.js +0 -47
- package/dist/components/layout/Board/BoardProvider.js.map +0 -1
- package/dist/components/layout/Board/BoardResponsive.d.ts +0 -55
- package/dist/components/layout/Board/BoardResponsive.js +0 -101
- package/dist/components/layout/Board/BoardResponsive.js.map +0 -1
- package/dist/components/layout/Board/Widget.d.ts +0 -152
- package/dist/components/layout/Board/Widget.js +0 -76
- package/dist/components/layout/Board/Widget.js.map +0 -1
- package/dist/components/layout/Board/WidgetHost.js +0 -1065
- package/dist/components/layout/Board/WidgetHost.js.map +0 -1
- package/dist/components/layout/Board/board-context.d.ts +0 -43
- package/dist/components/layout/Board/board-context.js +0 -79
- package/dist/components/layout/Board/board-context.js.map +0 -1
- package/dist/components/layout/Board/board-store.d.ts +0 -4
- package/dist/components/layout/Board/board-store.js +0 -49
- package/dist/components/layout/Board/board-store.js.map +0 -1
- package/dist/components/layout/Board/grid-core/calculate.js +0 -90
- package/dist/components/layout/Board/grid-core/calculate.js.map +0 -1
- package/dist/components/layout/Board/grid-core/collision-modes.js +0 -254
- package/dist/components/layout/Board/grid-core/collision-modes.js.map +0 -1
- package/dist/components/layout/Board/grid-core/collision.js +0 -35
- package/dist/components/layout/Board/grid-core/collision.js.map +0 -1
- package/dist/components/layout/Board/grid-core/compactors.d.ts +0 -23
- package/dist/components/layout/Board/grid-core/compactors.js +0 -166
- package/dist/components/layout/Board/grid-core/compactors.js.map +0 -1
- package/dist/components/layout/Board/grid-core/constraints.d.ts +0 -35
- package/dist/components/layout/Board/grid-core/constraints.js +0 -155
- package/dist/components/layout/Board/grid-core/constraints.js.map +0 -1
- package/dist/components/layout/Board/grid-core/group-move.js +0 -317
- package/dist/components/layout/Board/grid-core/group-move.js.map +0 -1
- package/dist/components/layout/Board/grid-core/layout.js +0 -186
- package/dist/components/layout/Board/grid-core/layout.js.map +0 -1
- package/dist/components/layout/Board/grid-core/placement.d.ts +0 -58
- package/dist/components/layout/Board/grid-core/placement.js +0 -153
- package/dist/components/layout/Board/grid-core/placement.js.map +0 -1
- package/dist/components/layout/Board/grid-core/sort.js +0 -37
- package/dist/components/layout/Board/grid-core/sort.js.map +0 -1
- package/dist/components/layout/Board/grid-core/types.d.ts +0 -186
- package/dist/components/layout/Board/index.d.ts +0 -24
- package/dist/components/layout/Board/index.js +0 -20
- package/dist/components/layout/Board/index.js.map +0 -1
- package/dist/components/layout/Board/responsive-utils.d.ts +0 -13
- package/dist/components/layout/Board/responsive-utils.js +0 -55
- package/dist/components/layout/Board/responsive-utils.js.map +0 -1
- package/dist/components/layout/Board/use-board-layout.d.ts +0 -26
- package/dist/components/layout/Board/use-board-layout.js +0 -57
- package/dist/components/layout/Board/use-board-layout.js.map +0 -1
- package/dist/components/layout/Board/use-board-registry.js +0 -700
- package/dist/components/layout/Board/use-board-registry.js.map +0 -1
- package/dist/components/layout/Board/use-board-select-modifier-key.js +0 -24
- package/dist/components/layout/Board/use-board-select-modifier-key.js.map +0 -1
- package/dist/components/layout/Board/use-board-selection.d.ts +0 -8
- package/dist/components/layout/Board/use-board-selection.js +0 -113
- package/dist/components/layout/Board/use-board-selection.js.map +0 -1
- package/docs/components/layout/Board.md +0 -473
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @cube-dev/ui-kit
|
|
2
2
|
|
|
3
|
+
## 0.192.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1496](https://github.com/cube-js/cube-ui-kit/pull/1496) [`bdc1cc70`](https://github.com/cube-js/cube-ui-kit/commit/bdc1cc70ad2b0bab7bcbbe687240a3c2ee2db3ec) Thanks [@tenphi](https://github.com/tenphi)! - Preserve inline Layout.Panel sizes when switching to dialog mode or resizing the dialog's host.
|
|
8
|
+
|
|
9
|
+
- [#1497](https://github.com/cube-js/cube-ui-kit/pull/1497) [`c076ab70`](https://github.com/cube-js/cube-ui-kit/commit/c076ab7027e18900fb64c4cf671f65bcc828aaaa) Thanks [@tenphi](https://github.com/tenphi)! - Reduce ItemTable and DataTable scrolling work by retaining virtual row keys and unchanged default cell text, and skip row-position reads while movement animation is disabled. Keep virtual height estimates and tooltip overflow detection current when row sizes, text or inherited table styling change.
|
|
10
|
+
|
|
3
11
|
## 0.192.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -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-162cdb3 | Cube Dev Team */
|
|
2
2
|
import { deprecationWarning } from "../../utils/warnings.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import React, { useEffect } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-162cdb3 | Cube Dev Team */
|
|
2
2
|
import { useLayoutEffect as useLayoutEffect$1 } from "../../utils/react/useLayoutEffect.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { useRef } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-162cdb3 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../use-event.js";
|
|
3
3
|
import { Timer } from "./timer.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-162cdb3 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "./use-event.js";
|
|
3
3
|
import { warn } from "../../utils/warnings.js";
|
|
4
4
|
import { useRef } from "react";
|
package/dist/components/Block.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-162cdb3 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../utils/styles.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { CONTAINER_STYLES, filterBaseProps, tasty } from "@tenphi/tasty";
|
|
@@ -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-162cdb3 | Cube Dev Team */
|
|
2
2
|
import { ItemAction } from "./actions/ItemAction/ItemAction.js";
|
|
3
3
|
import { ItemBadge } from "./content/ItemBadge/ItemBadge.js";
|
|
4
4
|
import { Item } from "react-stately";
|
|
@@ -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-162cdb3 | Cube Dev Team */
|
|
2
2
|
import { mergeStyleLayers } from "../utils/styles.js";
|
|
3
3
|
import { usePaletteValue } from "../tokens/palette-config.js";
|
|
4
4
|
import { getTokens } from "../tokens/all-tokens.js";
|
|
@@ -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-162cdb3 | Cube Dev Team */
|
|
2
2
|
import { useCombinedRefs } from "../utils/react/useCombinedRefs.js";
|
|
3
3
|
import { filterBaseProps, tasty } from "@tenphi/tasty";
|
|
4
4
|
import { forwardRef, useCallback, useEffect, useState } from "react";
|
package/dist/components/Root.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-162cdb3 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../utils/styles.js";
|
|
3
3
|
import { AMBIENT_PREDEFINED_STATES } from "../utils/react/useScheme.js";
|
|
4
4
|
import { EventBusProvider } from "../utils/react/useEventBus.js";
|
|
@@ -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-162cdb3 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { useAction } from "../use-action.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-162cdb3 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
3
3
|
import { _Item } from "../../content/Item/Item.js";
|
|
4
4
|
import { useI18n } from "../../../i18n/useI18n.js";
|
|
@@ -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-162cdb3 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { getDisabledElementProps, omitActivationEventProps } from "../../../utils/react/disabledProps.js";
|
|
4
4
|
import { mergeProps } from "../../../utils/react/mergeProps.js";
|
|
@@ -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-162cdb3 | Cube Dev Team */
|
|
2
2
|
import { useSlotProps } from "../../../utils/react/Slots.js";
|
|
3
3
|
import { Space } from "../../layout/Space.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-162cdb3 | Cube Dev Team */
|
|
2
2
|
import { extractStyles, mergeStyleLayers } from "../../../utils/styles.js";
|
|
3
3
|
import { mergeProps } from "../../../utils/react/mergeProps.js";
|
|
4
4
|
import { ButtonSplitContext } from "./context.js";
|
|
@@ -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-162cdb3 | Cube Dev Team */
|
|
2
2
|
import { extractStyles, mergeStyleLayers } from "../../../utils/styles.js";
|
|
3
3
|
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
4
4
|
import { LoadingIcon } from "../../../icons/LoadingIcon.js";
|
|
@@ -19,8 +19,27 @@ import { Section, useTreeState } from "react-stately";
|
|
|
19
19
|
import { useObjectRef, useSyncRef } from "@react-aria/utils";
|
|
20
20
|
|
|
21
21
|
//#region src/components/actions/CommandMenu/CommandMenu.tsx
|
|
22
|
+
/** The keys of the items in `nodes`, in order, including those in sections. */
|
|
23
|
+
function collectItemKeys(nodes, keys = []) {
|
|
24
|
+
for (const node of nodes) if (node?.type === "section") collectItemKeys(node.childNodes ?? [], keys);
|
|
25
|
+
else if (node?.type === "item") keys.push(node.key);
|
|
26
|
+
return keys;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The key an arrow press moves to: the next enabled key after `currentKey` in
|
|
30
|
+
* `direction`, wrapping round to the first enabled key in that direction (the
|
|
31
|
+
* last one going up). With nothing focused, or the focused key filtered out,
|
|
32
|
+
* it returns that key.
|
|
33
|
+
*/
|
|
34
|
+
function getNextEnabledKey(keys, currentKey, direction, isDisabled) {
|
|
35
|
+
const isEnabled = (key) => !isDisabled(key);
|
|
36
|
+
const index = currentKey == null ? -1 : keys.indexOf(currentKey);
|
|
37
|
+
const ahead = direction === 1 ? keys.slice(index + 1) : keys.slice(0, Math.max(index, 0)).reverse();
|
|
38
|
+
const ordered = direction === 1 ? keys : [...keys].reverse();
|
|
39
|
+
return ahead.find(isEnabled) ?? ordered.find(isEnabled) ?? null;
|
|
40
|
+
}
|
|
22
41
|
function CommandMenu(props, ref) {
|
|
23
|
-
const $ = c(
|
|
42
|
+
const $ = c(96);
|
|
24
43
|
const { t } = useI18n();
|
|
25
44
|
const { searchPlaceholder: t0, searchValue: controlledSearchValue, onSearchChange, filter: customFilter, emptyLabel: t1, searchInputStyles, headerStyles, footerStyles, isLoading: t2, shouldFilter: t3, autoFocus: t4, size: t5, qa, styles, selectedKeys, defaultSelectedKeys, onSelectionChange, onAction, header, footer, ...restMenuProps } = props;
|
|
26
45
|
let t6;
|
|
@@ -137,17 +156,7 @@ function CommandMenu(props, ref) {
|
|
|
137
156
|
const filteredCollectionItems = [...collectionFilter(collectionItems)];
|
|
138
157
|
const hasFilteredItems = filteredCollectionItems.length > 0;
|
|
139
158
|
const viewHasSections = filteredCollectionItems.some(_temp7);
|
|
140
|
-
const findFirstSelectableItem = () =>
|
|
141
|
-
const { selectionManager } = treeState;
|
|
142
|
-
const visit = (items) => {
|
|
143
|
-
for (const node_0 of items) if (node_0?.type === "section") {
|
|
144
|
-
const childResult = visit(Array.from(node_0.childNodes ?? []));
|
|
145
|
-
if (childResult != null) return childResult;
|
|
146
|
-
} else if (node_0?.type === "item" && !selectionManager.isDisabled(node_0.key)) return node_0.key;
|
|
147
|
-
return null;
|
|
148
|
-
};
|
|
149
|
-
return visit(filteredCollectionItems);
|
|
150
|
-
};
|
|
159
|
+
const findFirstSelectableItem = () => collectItemKeys(filteredCollectionItems).find((key_2) => !treeState.selectionManager.isDisabled(key_2)) ?? null;
|
|
151
160
|
const menuRef = useRef(null);
|
|
152
161
|
const { menuProps } = useMenu({
|
|
153
162
|
...completeProps,
|
|
@@ -226,7 +235,7 @@ function CommandMenu(props, ref) {
|
|
|
226
235
|
React.useEffect(t15, t16);
|
|
227
236
|
const prevSearchValueRef = useRef("");
|
|
228
237
|
let t17;
|
|
229
|
-
if ($[24] !== findFirstSelectableItem || $[25] !== hasFilteredItems || $[26] !== searchValue || $[27] !== setFocusedKey || $[28] !== treeState) {
|
|
238
|
+
if ($[24] !== findFirstSelectableItem || $[25] !== hasFilteredItems || $[26] !== searchValue || $[27] !== setFocusedKey || $[28] !== treeState.selectionManager) {
|
|
230
239
|
t17 = () => {
|
|
231
240
|
const currentSearchValue = searchValue.trim();
|
|
232
241
|
if (currentSearchValue !== prevSearchValueRef.current && currentSearchValue !== "") {
|
|
@@ -247,7 +256,7 @@ function CommandMenu(props, ref) {
|
|
|
247
256
|
$[25] = hasFilteredItems;
|
|
248
257
|
$[26] = searchValue;
|
|
249
258
|
$[27] = setFocusedKey;
|
|
250
|
-
$[28] = treeState;
|
|
259
|
+
$[28] = treeState.selectionManager;
|
|
251
260
|
$[29] = t17;
|
|
252
261
|
} else t17 = $[29];
|
|
253
262
|
let t18;
|
|
@@ -263,174 +272,165 @@ function CommandMenu(props, ref) {
|
|
|
263
272
|
$[33] = t18;
|
|
264
273
|
} else t18 = $[33];
|
|
265
274
|
React.useEffect(t17, t18);
|
|
266
|
-
const
|
|
275
|
+
const handleArrowKey = (e) => {
|
|
276
|
+
e.preventDefault();
|
|
277
|
+
const { selectionManager } = treeState;
|
|
278
|
+
const currentKey = focusedKeyRef.current || selectionManager.focusedKey;
|
|
279
|
+
const nextKey = getNextEnabledKey(collectItemKeys(filteredCollectionItems), currentKey, e.key === "ArrowDown" ? 1 : -1, (key_3) => selectionManager.isDisabled(key_3));
|
|
280
|
+
if (nextKey != null) {
|
|
281
|
+
selectionManager.setFocusedKey(nextKey);
|
|
282
|
+
setFocusedKey(nextKey);
|
|
283
|
+
focusedKeyRef.current = nextKey;
|
|
284
|
+
}
|
|
285
|
+
};
|
|
267
286
|
let t19;
|
|
268
|
-
if ($[34] !==
|
|
269
|
-
t19 =
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
287
|
+
if ($[34] !== completeProps || $[35] !== treeState.collection) {
|
|
288
|
+
t19 = (key_4) => {
|
|
289
|
+
const node_0 = treeState.collection.getItem(key_4);
|
|
290
|
+
if (!node_0) return;
|
|
291
|
+
const onAction_0 = completeProps.onAction;
|
|
292
|
+
if (onAction_0) onAction_0(key_4);
|
|
293
|
+
if (node_0.props?.onAction) node_0.props.onAction(key_4);
|
|
294
|
+
};
|
|
295
|
+
$[34] = completeProps;
|
|
296
|
+
$[35] = treeState.collection;
|
|
297
|
+
$[36] = t19;
|
|
298
|
+
} else t19 = $[36];
|
|
299
|
+
const triggerAction = t19;
|
|
300
|
+
let t20;
|
|
301
|
+
if ($[37] !== contextProps || $[38] !== focusedKey || $[39] !== treeState.selectionManager || $[40] !== triggerAction) {
|
|
302
|
+
t20 = (e_0) => {
|
|
303
|
+
const currentFocusedKey = focusedKey || treeState.selectionManager.focusedKey;
|
|
304
|
+
if (currentFocusedKey == null) return;
|
|
305
|
+
e_0.preventDefault();
|
|
306
|
+
if (treeState.selectionManager.selectionMode !== "none") treeState.selectionManager.select(currentFocusedKey);
|
|
307
|
+
else triggerAction(currentFocusedKey);
|
|
308
|
+
const { onClose, closeOnSelect } = contextProps;
|
|
309
|
+
if (onClose && closeOnSelect !== false) onClose();
|
|
310
|
+
};
|
|
311
|
+
$[37] = contextProps;
|
|
312
|
+
$[38] = focusedKey;
|
|
313
|
+
$[39] = treeState.selectionManager;
|
|
314
|
+
$[40] = triggerAction;
|
|
315
|
+
$[41] = t20;
|
|
316
|
+
} else t20 = $[41];
|
|
317
|
+
const handleActionKey = t20;
|
|
318
|
+
let t21;
|
|
319
|
+
if ($[42] !== handleActionKey || $[43] !== handleArrowKey || $[44] !== handleSearchChange || $[45] !== searchValue) {
|
|
320
|
+
t21 = (e_1) => {
|
|
321
|
+
if (e_1.key === "ArrowDown" || e_1.key === "ArrowUp") handleArrowKey(e_1);
|
|
322
|
+
else if (e_1.key === "Enter" || e_1.key === " " && !searchValue.trim()) handleActionKey(e_1);
|
|
323
|
+
else if (e_1.key === "Escape" && searchValue) {
|
|
324
|
+
e_1.preventDefault();
|
|
325
|
+
handleSearchChange("");
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
$[42] = handleActionKey;
|
|
329
|
+
$[43] = handleArrowKey;
|
|
330
|
+
$[44] = handleSearchChange;
|
|
331
|
+
$[45] = searchValue;
|
|
332
|
+
$[46] = t21;
|
|
333
|
+
} else t21 = $[46];
|
|
334
|
+
const handleSearchKeyDown = t21;
|
|
335
|
+
const extractedStyles = extractStyles(props, CONTAINER_STYLES);
|
|
336
|
+
let t22;
|
|
337
|
+
if ($[47] !== searchValue) {
|
|
338
|
+
t22 = searchValue.trim();
|
|
339
|
+
$[47] = searchValue;
|
|
340
|
+
$[48] = t22;
|
|
341
|
+
} else t22 = $[48];
|
|
342
|
+
const showEmptyState = t22.length > 0 && !hasFilteredItems && !isLoading;
|
|
274
343
|
useSyncRef(contextProps, menuRef);
|
|
275
|
-
const
|
|
276
|
-
const
|
|
277
|
-
const
|
|
278
|
-
const
|
|
279
|
-
let
|
|
280
|
-
if ($[
|
|
281
|
-
|
|
344
|
+
const t23 = !!footer;
|
|
345
|
+
const t24 = !!header;
|
|
346
|
+
const t25 = completeProps.mods?.popover;
|
|
347
|
+
const t26 = completeProps.mods?.tray;
|
|
348
|
+
let t27;
|
|
349
|
+
if ($[49] !== t23 || $[50] !== t24 || $[51] !== t25 || $[52] !== t26 || $[53] !== viewHasSections) {
|
|
350
|
+
t27 = {
|
|
282
351
|
sections: viewHasSections,
|
|
283
|
-
footer:
|
|
284
|
-
header:
|
|
285
|
-
popover:
|
|
286
|
-
tray:
|
|
352
|
+
footer: t23,
|
|
353
|
+
header: t24,
|
|
354
|
+
popover: t25,
|
|
355
|
+
tray: t26
|
|
287
356
|
};
|
|
288
|
-
$[
|
|
289
|
-
$[
|
|
290
|
-
$[
|
|
291
|
-
$[
|
|
292
|
-
$[
|
|
293
|
-
$[
|
|
294
|
-
} else
|
|
295
|
-
const mods =
|
|
357
|
+
$[49] = t23;
|
|
358
|
+
$[50] = t24;
|
|
359
|
+
$[51] = t25;
|
|
360
|
+
$[52] = t26;
|
|
361
|
+
$[53] = viewHasSections;
|
|
362
|
+
$[54] = t27;
|
|
363
|
+
} else t27 = $[54];
|
|
364
|
+
const mods = t27;
|
|
296
365
|
const T0 = StyledCommandMenu;
|
|
297
|
-
let
|
|
298
|
-
if ($[
|
|
299
|
-
|
|
300
|
-
$[
|
|
301
|
-
$[
|
|
302
|
-
} else
|
|
303
|
-
const
|
|
304
|
-
const
|
|
305
|
-
const
|
|
306
|
-
let
|
|
307
|
-
if ($[
|
|
308
|
-
|
|
366
|
+
let t28;
|
|
367
|
+
if ($[55] !== props) {
|
|
368
|
+
t28 = filterBaseProps(props);
|
|
369
|
+
$[55] = props;
|
|
370
|
+
$[56] = t28;
|
|
371
|
+
} else t28 = $[56];
|
|
372
|
+
const t29 = t28;
|
|
373
|
+
const t30 = qa || "CommandMenu";
|
|
374
|
+
const t31 = mergeStyleLayers(extractedStyles, styles);
|
|
375
|
+
let t32;
|
|
376
|
+
if ($[57] !== header || $[58] !== headerStyles || $[59] !== size) {
|
|
377
|
+
t32 = header && /* @__PURE__ */ jsx(StyledHeader, {
|
|
309
378
|
role: "presentation",
|
|
310
379
|
"data-size": size,
|
|
311
380
|
styles: mergeStyleLayers({ border: "none" }, headerStyles),
|
|
312
381
|
children: header
|
|
313
382
|
});
|
|
314
|
-
$[
|
|
315
|
-
$[
|
|
316
|
-
$[
|
|
317
|
-
$[
|
|
318
|
-
} else
|
|
319
|
-
const
|
|
320
|
-
const
|
|
321
|
-
let
|
|
322
|
-
if ($[
|
|
323
|
-
|
|
324
|
-
$[
|
|
325
|
-
$[
|
|
326
|
-
} else
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
const isArrowDown = e_0.key === "ArrowDown";
|
|
331
|
-
const { selectionManager: selectionManager_0 } = treeState;
|
|
332
|
-
const currentKey = focusedKeyRef.current || selectionManager_0.focusedKey;
|
|
333
|
-
const getVisibleItemKeys = () => {
|
|
334
|
-
const keys_0 = [];
|
|
335
|
-
const visit_0 = (items_0) => {
|
|
336
|
-
for (const node_1 of items_0) if (node_1?.type === "section") visit_0(Array.from(node_1.childNodes ?? []));
|
|
337
|
-
else if (node_1?.type === "item") keys_0.push(node_1.key);
|
|
338
|
-
};
|
|
339
|
-
visit_0(filteredCollectionItems);
|
|
340
|
-
return keys_0;
|
|
341
|
-
};
|
|
342
|
-
const findNextSelectableKey = (currentIndex, direction, visibleKeys) => {
|
|
343
|
-
const increment = direction === "forward" ? 1 : -1;
|
|
344
|
-
for (let i = currentIndex + increment; i >= 0 && i < visibleKeys.length; i = i + increment) {
|
|
345
|
-
const key_2 = visibleKeys[i];
|
|
346
|
-
if (!selectionManager_0.isDisabled(key_2)) return key_2;
|
|
347
|
-
}
|
|
348
|
-
return null;
|
|
349
|
-
};
|
|
350
|
-
const findFirstLastSelectableKey = (direction_0, visibleKeys_0) => {
|
|
351
|
-
const keysToCheck = direction_0 === "forward" ? visibleKeys_0 : [...visibleKeys_0].reverse();
|
|
352
|
-
for (const key_3 of keysToCheck) if (!selectionManager_0.isDisabled(key_3)) return key_3;
|
|
353
|
-
return null;
|
|
354
|
-
};
|
|
355
|
-
const visibleKeys_1 = getVisibleItemKeys();
|
|
356
|
-
if (visibleKeys_1.length === 0) return;
|
|
357
|
-
let nextKey;
|
|
358
|
-
const direction_1 = isArrowDown ? "forward" : "backward";
|
|
359
|
-
if (currentKey == null) nextKey = findFirstLastSelectableKey(direction_1, visibleKeys_1);
|
|
360
|
-
else {
|
|
361
|
-
const currentIndex_0 = visibleKeys_1.indexOf(currentKey);
|
|
362
|
-
if (currentIndex_0 === -1) nextKey = findFirstLastSelectableKey(direction_1, visibleKeys_1);
|
|
363
|
-
else {
|
|
364
|
-
nextKey = findNextSelectableKey(currentIndex_0, direction_1, visibleKeys_1);
|
|
365
|
-
if (nextKey == null) nextKey = findFirstLastSelectableKey(direction_1, visibleKeys_1);
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
if (nextKey != null) {
|
|
369
|
-
selectionManager_0.setFocusedKey(nextKey);
|
|
370
|
-
setFocusedKey(nextKey);
|
|
371
|
-
focusedKeyRef.current = nextKey;
|
|
372
|
-
}
|
|
373
|
-
} else if (e_0.key === "Enter" || e_0.key === " " && !searchValue.trim()) {
|
|
374
|
-
const currentFocusedKey = focusedKey || treeState.selectionManager.focusedKey;
|
|
375
|
-
if (currentFocusedKey != null) {
|
|
376
|
-
e_0.preventDefault();
|
|
377
|
-
if (treeState.selectionManager.selectionMode !== "none") treeState.selectionManager.select(currentFocusedKey);
|
|
378
|
-
else {
|
|
379
|
-
const node_2 = treeState.collection.getItem(currentFocusedKey);
|
|
380
|
-
if (node_2) {
|
|
381
|
-
const onAction_0 = completeProps.onAction;
|
|
382
|
-
if (onAction_0) onAction_0(currentFocusedKey);
|
|
383
|
-
if (node_2.props?.onAction) node_2.props.onAction(currentFocusedKey);
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
const { onClose, closeOnSelect } = contextProps;
|
|
387
|
-
if (onClose && closeOnSelect !== false) onClose();
|
|
388
|
-
}
|
|
389
|
-
} else if (e_0.key === "Escape") {
|
|
390
|
-
if (searchValue) {
|
|
391
|
-
e_0.preventDefault();
|
|
392
|
-
handleSearchChange("");
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
};
|
|
396
|
-
let t34;
|
|
397
|
-
if ($[50] !== searchInputStyles || $[51] !== searchPlaceholder || $[52] !== searchValue || $[53] !== size || $[54] !== t30 || $[55] !== t31 || $[56] !== t32 || $[57] !== t33) {
|
|
398
|
-
t34 = /* @__PURE__ */ jsx(StyledSearchInput, {
|
|
383
|
+
$[57] = header;
|
|
384
|
+
$[58] = headerStyles;
|
|
385
|
+
$[59] = size;
|
|
386
|
+
$[60] = t32;
|
|
387
|
+
} else t32 = $[60];
|
|
388
|
+
const t33 = `${qa || "CommandMenu"}-menu`;
|
|
389
|
+
const t34 = focusedKey != null ? `${qa || "CommandMenu"}-menu-option-${focusedKey}` : void 0;
|
|
390
|
+
let t35;
|
|
391
|
+
if ($[61] !== handleSearchChange) {
|
|
392
|
+
t35 = (e_2) => handleSearchChange(e_2.target.value);
|
|
393
|
+
$[61] = handleSearchChange;
|
|
394
|
+
$[62] = t35;
|
|
395
|
+
} else t35 = $[62];
|
|
396
|
+
let t36;
|
|
397
|
+
if ($[63] !== handleSearchKeyDown || $[64] !== searchInputStyles || $[65] !== searchPlaceholder || $[66] !== searchValue || $[67] !== size || $[68] !== t33 || $[69] !== t34 || $[70] !== t35) {
|
|
398
|
+
t36 = /* @__PURE__ */ jsx(StyledSearchInput, {
|
|
399
399
|
ref: searchInputRef,
|
|
400
400
|
type: "search",
|
|
401
401
|
placeholder: searchPlaceholder,
|
|
402
402
|
value: searchValue,
|
|
403
403
|
styles: searchInputStyles,
|
|
404
404
|
"data-size": size,
|
|
405
|
-
"aria-controls":
|
|
405
|
+
"aria-controls": t33,
|
|
406
406
|
role: "combobox",
|
|
407
407
|
"aria-expanded": "true",
|
|
408
408
|
"aria-haspopup": "listbox",
|
|
409
|
-
"aria-activedescendant":
|
|
410
|
-
onChange:
|
|
411
|
-
onKeyDown:
|
|
409
|
+
"aria-activedescendant": t34,
|
|
410
|
+
onChange: t35,
|
|
411
|
+
onKeyDown: handleSearchKeyDown
|
|
412
412
|
});
|
|
413
|
-
$[
|
|
414
|
-
$[
|
|
415
|
-
$[
|
|
416
|
-
$[
|
|
417
|
-
$[
|
|
418
|
-
$[
|
|
419
|
-
$[
|
|
420
|
-
$[
|
|
421
|
-
$[
|
|
422
|
-
} else
|
|
423
|
-
let
|
|
424
|
-
if ($[
|
|
425
|
-
|
|
413
|
+
$[63] = handleSearchKeyDown;
|
|
414
|
+
$[64] = searchInputStyles;
|
|
415
|
+
$[65] = searchPlaceholder;
|
|
416
|
+
$[66] = searchValue;
|
|
417
|
+
$[67] = size;
|
|
418
|
+
$[68] = t33;
|
|
419
|
+
$[69] = t34;
|
|
420
|
+
$[70] = t35;
|
|
421
|
+
$[71] = t36;
|
|
422
|
+
} else t36 = $[71];
|
|
423
|
+
let t37;
|
|
424
|
+
if ($[72] !== isLoading) {
|
|
425
|
+
t37 = isLoading && /* @__PURE__ */ jsx(StyledLoadingWrapper, { children: /* @__PURE__ */ jsx(LoadingIcon, {
|
|
426
426
|
role: "progressbar",
|
|
427
427
|
"aria-label": "Loading commands",
|
|
428
428
|
"aria-hidden": false
|
|
429
429
|
}) });
|
|
430
|
-
$[
|
|
431
|
-
$[
|
|
432
|
-
} else
|
|
433
|
-
const
|
|
430
|
+
$[72] = isLoading;
|
|
431
|
+
$[73] = t37;
|
|
432
|
+
} else t37 = $[73];
|
|
433
|
+
const t38 = !isLoading && !showEmptyState && /* @__PURE__ */ jsx(StyledMenu, {
|
|
434
434
|
...menuProps,
|
|
435
435
|
ref: menuRef,
|
|
436
436
|
id: `${qa || "CommandMenu"}-menu`,
|
|
@@ -446,61 +446,61 @@ function CommandMenu(props, ref) {
|
|
|
446
446
|
},
|
|
447
447
|
children: renderedItems
|
|
448
448
|
});
|
|
449
|
-
let
|
|
450
|
-
if ($[
|
|
451
|
-
|
|
452
|
-
$[
|
|
453
|
-
$[
|
|
454
|
-
$[
|
|
455
|
-
$[
|
|
456
|
-
} else
|
|
457
|
-
let
|
|
458
|
-
if ($[
|
|
459
|
-
|
|
449
|
+
let t39;
|
|
450
|
+
if ($[74] !== emptyLabel || $[75] !== isLoading || $[76] !== showEmptyState) {
|
|
451
|
+
t39 = !isLoading && showEmptyState && /* @__PURE__ */ jsx(StyledEmptyState, { children: emptyLabel });
|
|
452
|
+
$[74] = emptyLabel;
|
|
453
|
+
$[75] = isLoading;
|
|
454
|
+
$[76] = showEmptyState;
|
|
455
|
+
$[77] = t39;
|
|
456
|
+
} else t39 = $[77];
|
|
457
|
+
let t40;
|
|
458
|
+
if ($[78] !== footer || $[79] !== footerStyles || $[80] !== size) {
|
|
459
|
+
t40 = footer && /* @__PURE__ */ jsx(StyledFooter, {
|
|
460
460
|
role: "presentation",
|
|
461
461
|
"data-size": size,
|
|
462
462
|
styles: footerStyles,
|
|
463
463
|
children: footer
|
|
464
464
|
});
|
|
465
|
-
$[
|
|
466
|
-
$[
|
|
467
|
-
$[
|
|
468
|
-
$[
|
|
469
|
-
} else
|
|
470
|
-
let
|
|
471
|
-
if ($[
|
|
472
|
-
|
|
473
|
-
...
|
|
465
|
+
$[78] = footer;
|
|
466
|
+
$[79] = footerStyles;
|
|
467
|
+
$[80] = size;
|
|
468
|
+
$[81] = t40;
|
|
469
|
+
} else t40 = $[81];
|
|
470
|
+
let t41;
|
|
471
|
+
if ($[82] !== T0 || $[83] !== domRef || $[84] !== mods || $[85] !== size || $[86] !== t29 || $[87] !== t30 || $[88] !== t31 || $[89] !== t32 || $[90] !== t36 || $[91] !== t37 || $[92] !== t38 || $[93] !== t39 || $[94] !== t40) {
|
|
472
|
+
t41 = /* @__PURE__ */ jsxs(T0, {
|
|
473
|
+
...t29,
|
|
474
474
|
ref: domRef,
|
|
475
|
-
qa:
|
|
475
|
+
qa: t30,
|
|
476
476
|
"data-size": size,
|
|
477
477
|
mods,
|
|
478
|
-
styles:
|
|
478
|
+
styles: t31,
|
|
479
479
|
children: [
|
|
480
|
-
|
|
481
|
-
t34,
|
|
482
|
-
t35,
|
|
480
|
+
t32,
|
|
483
481
|
t36,
|
|
484
482
|
t37,
|
|
485
|
-
t38
|
|
483
|
+
t38,
|
|
484
|
+
t39,
|
|
485
|
+
t40
|
|
486
486
|
]
|
|
487
487
|
});
|
|
488
|
-
$[
|
|
489
|
-
$[
|
|
490
|
-
$[
|
|
491
|
-
$[
|
|
492
|
-
$[
|
|
493
|
-
$[
|
|
494
|
-
$[
|
|
495
|
-
$[
|
|
496
|
-
$[
|
|
497
|
-
$[
|
|
498
|
-
$[
|
|
499
|
-
$[
|
|
500
|
-
$[
|
|
501
|
-
$[
|
|
502
|
-
} else
|
|
503
|
-
return
|
|
488
|
+
$[82] = T0;
|
|
489
|
+
$[83] = domRef;
|
|
490
|
+
$[84] = mods;
|
|
491
|
+
$[85] = size;
|
|
492
|
+
$[86] = t29;
|
|
493
|
+
$[87] = t30;
|
|
494
|
+
$[88] = t31;
|
|
495
|
+
$[89] = t32;
|
|
496
|
+
$[90] = t36;
|
|
497
|
+
$[91] = t37;
|
|
498
|
+
$[92] = t38;
|
|
499
|
+
$[93] = t39;
|
|
500
|
+
$[94] = t40;
|
|
501
|
+
$[95] = t41;
|
|
502
|
+
} else t41 = $[95];
|
|
503
|
+
return t41;
|
|
504
504
|
}
|
|
505
505
|
function _temp7(item_1) {
|
|
506
506
|
return item_1.type === "section";
|