@cube-dev/ui-kit 0.0.0-canary-8531f8b → 0.0.0-canary-1b26a89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_internal/hooks/use-debounced-value.js +1 -1
- package/dist/_internal/hooks/use-deprecation-warning.js +1 -1
- package/dist/_internal/hooks/use-event.js +1 -1
- package/dist/_internal/hooks/use-is-first-render.js +1 -1
- package/dist/_internal/hooks/use-sync-ref.js +1 -1
- package/dist/_internal/hooks/use-timer/timer.js +1 -1
- package/dist/_internal/hooks/use-timer/use-timer.js +1 -1
- package/dist/_internal/hooks/use-warn.js +1 -1
- package/dist/components/Block.js +1 -1
- package/dist/components/CollectionItem.d.ts +25 -12
- package/dist/components/CollectionItem.js +59 -4
- package/dist/components/CollectionItem.js.map +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 +2 -2
- package/dist/components/actions/Action/Action.js +1 -1
- package/dist/components/actions/Banner/Banner.d.ts +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.d.ts +7 -7
- package/dist/components/actions/CommandMenu/CommandMenu.js +246 -280
- 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 +26 -22
- package/dist/components/actions/ItemAction/ItemAction.js.map +1 -1
- package/dist/components/actions/ItemActionContext.d.ts +3 -0
- package/dist/components/actions/ItemActionContext.js +15 -13
- package/dist/components/actions/ItemActionContext.js.map +1 -1
- package/dist/components/actions/ItemActionsWrapper.js +1 -1
- package/dist/components/actions/ItemButton/ItemButton.d.ts +2 -2
- package/dist/components/actions/ItemButton/ItemButton.js +1 -1
- package/dist/components/actions/Link/Link.js +1 -1
- package/dist/components/actions/Menu/Menu.d.ts +9 -9
- package/dist/components/actions/Menu/Menu.js +87 -71
- package/dist/components/actions/Menu/Menu.js.map +1 -1
- package/dist/components/actions/Menu/MenuCollectionItem.d.ts +18 -0
- package/dist/components/actions/Menu/MenuCollectionItem.js +36 -0
- package/dist/components/actions/Menu/MenuCollectionItem.js.map +1 -0
- package/dist/components/actions/Menu/MenuItem.js +395 -78
- package/dist/components/actions/Menu/MenuItem.js.map +1 -1
- package/dist/components/actions/Menu/MenuSection.d.ts +1 -2
- package/dist/components/actions/Menu/MenuSection.js +12 -10
- package/dist/components/actions/Menu/MenuSection.js.map +1 -1
- package/dist/components/actions/Menu/MenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubMenuTrigger.d.ts +1 -1
- package/dist/components/actions/Menu/SubMenuTrigger.js +2 -2
- package/dist/components/actions/Menu/SubMenuTrigger.js.map +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/index.d.ts +1 -0
- package/dist/components/actions/Menu/styled.js +1 -1
- package/dist/components/actions/actions-run.js +1 -1
- package/dist/components/actions/index.d.ts +3 -2
- package/dist/components/actions/index.js +1 -1
- package/dist/components/actions/use-action.js +60 -36
- package/dist/components/actions/use-action.js.map +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 +21 -21
- 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.d.ts +7 -7
- package/dist/components/content/Item/Item.js +205 -67
- package/dist/components/content/Item/Item.js.map +1 -1
- package/dist/components/content/Item/ItemWithNativeLinks.js +314 -0
- package/dist/components/content/Item/ItemWithNativeLinks.js.map +1 -0
- package/dist/components/content/ItemBadge/ItemBadge.js +1 -1
- package/dist/components/content/ItemCard/ItemCard.d.ts +1 -1
- package/dist/components/content/ItemCard/ItemCard.js +1 -1
- package/dist/components/content/Layout/GridLayout.js +1 -1
- package/dist/components/content/Layout/Layout.js +1 -1
- package/dist/components/content/Layout/LayoutBlock.js +1 -1
- package/dist/components/content/Layout/LayoutCenter.js +1 -1
- package/dist/components/content/Layout/LayoutContainer.js +1 -1
- package/dist/components/content/Layout/LayoutContent.js +1 -1
- package/dist/components/content/Layout/LayoutContext.js +1 -1
- package/dist/components/content/Layout/LayoutFlex.js +1 -1
- package/dist/components/content/Layout/LayoutFooter.js +1 -1
- package/dist/components/content/Layout/LayoutGrid.js +1 -1
- package/dist/components/content/Layout/LayoutHeader.js +1 -1
- package/dist/components/content/Layout/LayoutPane.js +1 -1
- package/dist/components/content/Layout/LayoutPanel.js +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/types.d.ts +2 -2
- 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 +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.d.ts +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-column-window.js +1 -1
- package/dist/components/data/TableBase/use-container-width.js +1 -1
- package/dist/components/data/TableBase/use-row-move-animation.js +1 -1
- package/dist/components/data/TableBase/use-scrollability.js +1 -1
- package/dist/components/data/TableBase/use-table-columns.js +1 -1
- package/dist/components/data/TableBase/use-table-search.js +1 -1
- package/dist/components/data/TableBase/use-table-selection.js +1 -1
- package/dist/components/data/TableBase/use-table-sort.js +1 -1
- package/dist/components/data/TableBase/use-table-sorts.js +1 -1
- package/dist/components/data/TableBase/use-table-storage.js +1 -1
- package/dist/components/data/TableBase/use-table-tooltip-refresh.js +1 -1
- package/dist/components/data/TableBase/use-table-tree-state.js +1 -1
- package/dist/components/fields/Checkbox/Checkbox.js +1 -1
- package/dist/components/fields/Checkbox/CheckboxGroup.js +1 -1
- package/dist/components/fields/Checkbox/context.js +1 -1
- package/dist/components/fields/ColorInput/ColorInput.js +1 -1
- package/dist/components/fields/ColorPicker/ColorPicker.js +1 -1
- package/dist/components/fields/ColorSwatch/ColorSwatch.js +1 -1
- package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js +1 -1
- package/dist/components/fields/ComboBox/ComboBox.js +1 -1
- package/dist/components/fields/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.d.ts +2 -2
- 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 +5 -5
- 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.d.ts +2 -2
- package/dist/components/fields/Picker/Picker.js +1 -1
- package/dist/components/fields/RadioGroup/Radio.d.ts +20 -20
- 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 +1 -1
- package/dist/components/fields/SearchInput/SearchInput.js +1 -1
- package/dist/components/fields/Select/Select.d.ts +4 -4
- package/dist/components/fields/Select/Select.js +6 -6
- package/dist/components/fields/Select/Select.js.map +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/FieldWrapper/field-description.js +1 -1
- package/dist/components/form/Form/Field.js +1 -1
- package/dist/components/form/Form/Form.js +1 -1
- package/dist/components/form/Form/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.js +1 -1
- package/dist/components/navigation/Tabs/DraggableTabList.js +1 -1
- package/dist/components/navigation/Tabs/TabButton.js +1 -1
- package/dist/components/navigation/Tabs/TabDropIndicator.js +1 -1
- package/dist/components/navigation/Tabs/TabPanel.js +1 -1
- package/dist/components/navigation/Tabs/TabPicker.js +1 -1
- package/dist/components/navigation/Tabs/Tabs.js +1 -1
- package/dist/components/navigation/Tabs/TabsAction.js +1 -1
- package/dist/components/navigation/Tabs/TabsContext.js +1 -1
- package/dist/components/navigation/Tabs/popover-placement.js +1 -1
- package/dist/components/navigation/Tabs/styled.js +1 -1
- package/dist/components/navigation/Tabs/types.d.ts +3 -3
- package/dist/components/navigation/Tabs/types.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-editing.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-indicator.js +1 -1
- package/dist/components/organisms/StatsCard/StatsCard.js +1 -1
- package/dist/components/other/Calendar/Calendar.js +1 -1
- package/dist/components/other/Calendar/CalendarCell.js +1 -1
- package/dist/components/other/Calendar/CalendarGrid.js +1 -1
- package/dist/components/other/Calendar/CalendarHeader.js +1 -1
- package/dist/components/other/Calendar/CalendarPanel.js +1 -1
- package/dist/components/other/Calendar/PeriodCalendar.js +1 -1
- package/dist/components/other/Calendar/PeriodGrid.js +1 -1
- package/dist/components/other/Calendar/RangeCalendar.js +1 -1
- package/dist/components/other/Calendar/styled.js +1 -1
- package/dist/components/other/CubeLogo/CubeLogo.js +1 -1
- package/dist/components/other/NoDataIcon/NoDataIcon.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
- package/dist/components/overlays/Dialog/Dialog.js +1 -1
- package/dist/components/overlays/Dialog/DialogContainer.js +1 -1
- package/dist/components/overlays/Dialog/DialogForm.js +1 -1
- package/dist/components/overlays/Dialog/DialogTrigger.js +1 -1
- package/dist/components/overlays/Dialog/ModernDialogForm.js +1 -1
- package/dist/components/overlays/Dialog/context.js +1 -1
- package/dist/components/overlays/Dialog/default-button-text.js +1 -1
- package/dist/components/overlays/Dialog/use-content-overflow.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-container.js +1 -1
- package/dist/components/overlays/Modal/Modal.js +1 -1
- package/dist/components/overlays/Modal/OpenTransitionContext.js +1 -1
- package/dist/components/overlays/Modal/Overlay.js +1 -1
- package/dist/components/overlays/Modal/Popover.js +1 -1
- package/dist/components/overlays/Modal/Tray.js +1 -1
- package/dist/components/overlays/Modal/Underlay.js +1 -1
- package/dist/components/overlays/Modal/modal-containment.js +1 -1
- package/dist/components/overlays/Notifications/Notification.js +1 -1
- package/dist/components/overlays/Notifications/NotificationAction.js +1 -1
- package/dist/components/overlays/Notifications/NotificationCard.js +1 -1
- package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
- package/dist/components/overlays/Notifications/NotificationItem.js +1 -1
- package/dist/components/overlays/Notifications/OverlayContainer.js +1 -1
- package/dist/components/overlays/Notifications/OverlayProvider.js +1 -1
- package/dist/components/overlays/Notifications/PersistentNotificationsList.js +1 -1
- package/dist/components/overlays/Notifications/dismissed-storage.js +1 -1
- package/dist/components/overlays/Notifications/format-relative-time.js +1 -1
- package/dist/components/overlays/Notifications/index.js +1 -1
- package/dist/components/overlays/Notifications/use-notification-state.js +1 -1
- package/dist/components/overlays/Notifications/use-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-overlay-timers.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-state.js +1 -1
- package/dist/components/overlays/Notifications/use-toast-state.js +1 -1
- package/dist/components/overlays/Toast/ToastItem.js +1 -1
- package/dist/components/overlays/Toast/index.js +1 -1
- package/dist/components/overlays/Toast/useProgressToast.js +1 -1
- package/dist/components/overlays/Toast/useToast.js +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipProvider.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipTrigger.js +1 -1
- package/dist/components/overlays/Tooltip/context.js +1 -1
- package/dist/components/overlays/Tooltip/split-trigger-props.js +1 -1
- package/dist/components/portal/Portal.js +1 -1
- package/dist/components/portal/PortalProvider.js +1 -1
- package/dist/components/portal/usePortal.js +1 -1
- package/dist/components/shared/DraggableCollection.js +1 -1
- package/dist/components/shared/InvalidIcon.js +1 -1
- package/dist/components/shared/ValidIcon.js +1 -1
- package/dist/components/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 +2 -2
- 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 -1
- package/dist/i18n/locales/en-US/uikit.js +1 -1
- package/dist/i18n/locales/es-ES/uikit.js +1 -1
- package/dist/i18n/locales/es-MX/uikit.js +1 -1
- package/dist/i18n/locales/fr-FR/uikit.js +1 -1
- package/dist/i18n/locales/it-IT/uikit.js +1 -1
- package/dist/i18n/locales/ja-JP/uikit.js +1 -1
- package/dist/i18n/locales/nb-NO/uikit.js +1 -1
- package/dist/i18n/locales/pt-BR/uikit.js +1 -1
- package/dist/i18n/locales/pt-PT/uikit.js +1 -1
- package/dist/i18n/locales/sv-SE/uikit.js +1 -1
- package/dist/i18n/locales/vi-VN/uikit.js +1 -1
- package/dist/i18n/locales.js +1 -1
- package/dist/i18n/namespace.js +1 -1
- package/dist/i18n/useFormatter.js +1 -1
- package/dist/i18n/useI18n.js +1 -1
- package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
- package/dist/icons/AdjustmentsIcon.js +1 -1
- package/dist/icons/AiIcon.js +1 -1
- package/dist/icons/AreaChartIcon.js +1 -1
- package/dist/icons/ArrowNarrowDownIcon.js +1 -1
- package/dist/icons/ArrowNarrowUpIcon.js +1 -1
- package/dist/icons/BackwardIcon.js +1 -1
- package/dist/icons/BarChartIcon.js +1 -1
- package/dist/icons/BellFilledIcon.js +1 -1
- package/dist/icons/BellIcon.js +1 -1
- package/dist/icons/BooleanIcon.js +1 -1
- package/dist/icons/CalendarEditIcon.js +1 -1
- package/dist/icons/CalendarIcon.js +1 -1
- package/dist/icons/CaretDownIcon.js +1 -1
- package/dist/icons/CaretUpIcon.js +1 -1
- package/dist/icons/ChartAreaStackedIcon.js +1 -1
- package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarGroupedIcon.js +1 -1
- package/dist/icons/ChartBarHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarLineIcon.js +1 -1
- package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBoxPlot2Icon.js +1 -1
- package/dist/icons/ChartBoxPlotIcon.js +1 -1
- package/dist/icons/ChartBubbleIcon.js +1 -1
- package/dist/icons/ChartDonut2Icon.js +1 -1
- package/dist/icons/ChartFunnelIcon.js +1 -1
- package/dist/icons/ChartHeatmapIcon.js +1 -1
- package/dist/icons/ChartKPIIcon.js +1 -1
- package/dist/icons/ChartPie2Icon.js +1 -1
- package/dist/icons/ChartScatterIcon.js +1 -1
- package/dist/icons/CheckCircleFilledIcon.js +1 -1
- package/dist/icons/CheckCircleIcon.js +1 -1
- package/dist/icons/CheckIcon.js +1 -1
- package/dist/icons/CircleFilledIcon.js +1 -1
- package/dist/icons/ClearIcon.js +1 -1
- package/dist/icons/CloseCircleFilledIcon.js +1 -1
- package/dist/icons/CloseCircleIcon.js +1 -1
- package/dist/icons/CloseIcon.js +1 -1
- package/dist/icons/CodeIcon.js +1 -1
- package/dist/icons/ColumnTotalIcon.js +1 -1
- package/dist/icons/CopyIcon.js +1 -1
- package/dist/icons/CountIcon.js +1 -1
- package/dist/icons/CubeIcon.js +1 -1
- package/dist/icons/CubePauseIcon.js +1 -1
- package/dist/icons/CubePlayIcon.js +1 -1
- package/dist/icons/CurrencyDollarIcon.js +1 -1
- package/dist/icons/DangerIcon.js +1 -1
- package/dist/icons/DashboardIcon.js +1 -1
- package/dist/icons/DatabaseIcon.js +1 -1
- package/dist/icons/DecimalDecreaseIcon.js +1 -1
- package/dist/icons/DecimalIncreaseIcon.js +1 -1
- package/dist/icons/DirectionIcon.js +1 -1
- package/dist/icons/DonutIcon.js +1 -1
- package/dist/icons/DownIcon.js +1 -1
- package/dist/icons/EditIcon.js +1 -1
- package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
- package/dist/icons/ExclamationCircleIcon.js +1 -1
- package/dist/icons/ExclamationIcon.js +1 -1
- package/dist/icons/EyeIcon.js +1 -1
- package/dist/icons/EyeInvisibleIcon.js +1 -1
- package/dist/icons/FilterIcon.js +1 -1
- package/dist/icons/FolderFilledIcon.js +1 -1
- package/dist/icons/FolderIcon.js +1 -1
- package/dist/icons/FolderOpenFilledIcon.js +1 -1
- package/dist/icons/FolderOpenIcon.js +1 -1
- package/dist/icons/ForwardIcon.js +1 -1
- package/dist/icons/GripVerticalIcon.js +1 -1
- package/dist/icons/HierarchyIcon.js +1 -1
- package/dist/icons/HierarchyOpenIcon.js +1 -1
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/InfoCircleIcon.js +1 -1
- package/dist/icons/InfoIcon.js +1 -1
- package/dist/icons/KeyIcon.js +1 -1
- package/dist/icons/LeftIcon.js +1 -1
- package/dist/icons/LineChartIcon.js +1 -1
- package/dist/icons/LoadingIcon.js +1 -1
- package/dist/icons/LockFilledIcon.js +1 -1
- package/dist/icons/LockIcon.js +1 -1
- package/dist/icons/MoreIcon.js +1 -1
- package/dist/icons/NotAllowedIcon.js +1 -1
- package/dist/icons/Number123Icon.js +1 -1
- package/dist/icons/NumberIcon.js +1 -1
- package/dist/icons/PauseCircleFilledIcon.js +1 -1
- package/dist/icons/PauseCircleIcon.js +1 -1
- package/dist/icons/PauseIcon.js +1 -1
- package/dist/icons/PercentageIcon.js +1 -1
- package/dist/icons/PieChartIcon.js +1 -1
- package/dist/icons/PipetteIcon.js +1 -1
- package/dist/icons/PlayCircleIcon.js +1 -1
- package/dist/icons/PlayIcon.js +1 -1
- package/dist/icons/PlusIcon.js +1 -1
- package/dist/icons/ProgressBarIcon.js +1 -1
- package/dist/icons/ReloadIcon.js +1 -1
- package/dist/icons/ReportIcon.js +1 -1
- package/dist/icons/ReturnIcon.js +1 -1
- package/dist/icons/RightIcon.js +1 -1
- package/dist/icons/RowTotalsIcon.js +1 -1
- package/dist/icons/SchemeIcon.js +1 -1
- package/dist/icons/SearchIcon.js +1 -1
- package/dist/icons/SemanticQueryIcon.js +1 -1
- package/dist/icons/SettingsIcon.js +1 -1
- package/dist/icons/ShieldFilledIcon.js +1 -1
- package/dist/icons/ShieldIcon.js +1 -1
- package/dist/icons/SlashIcon.js +1 -1
- package/dist/icons/SparklesIcon.js +1 -1
- package/dist/icons/SqlIcon.js +1 -1
- package/dist/icons/StatsIcon.js +1 -1
- package/dist/icons/StopIcon.js +1 -1
- package/dist/icons/StringIcon.js +1 -1
- package/dist/icons/SubtotalsIcon.js +1 -1
- package/dist/icons/SwitchIcon.js +1 -1
- package/dist/icons/TableIcon.js +1 -1
- package/dist/icons/ThumbsDownIcon.js +1 -1
- package/dist/icons/ThumbsUpIcon.js +1 -1
- package/dist/icons/ThunderboltCrossedIcon.js +1 -1
- package/dist/icons/ThunderboltFilledIcon.js +1 -1
- package/dist/icons/ThunderboltIcon.js +1 -1
- package/dist/icons/TimeIcon.js +1 -1
- package/dist/icons/TrashIcon.js +1 -1
- package/dist/icons/UnlockIcon.js +1 -1
- package/dist/icons/UpIcon.js +1 -1
- package/dist/icons/UserGroupIcon.js +1 -1
- package/dist/icons/UserIcon.js +1 -1
- package/dist/icons/UserLockIcon.js +1 -1
- package/dist/icons/ViewIcon.js +1 -1
- package/dist/icons/WarningFilledIcon.js +1 -1
- package/dist/icons/WarningIcon.js +1 -1
- package/dist/icons/wrap-icon.js +1 -1
- package/dist/index.d.ts +7 -6
- package/dist/index.js +1 -1
- package/dist/probe/canonicalize.js +1 -1
- package/dist/probe/css.js +1 -1
- package/dist/probe/index.js +1 -1
- package/dist/provider.js +2 -2
- package/dist/provider.js.map +1 -1
- package/dist/providers/TrackingProvider.js +1 -1
- package/dist/providers/navigation-url.js +11 -0
- package/dist/providers/navigation-url.js.map +1 -0
- package/dist/providers/navigationAdapter.default.js +1 -1
- package/dist/providers/use-navigation.js +19 -0
- package/dist/providers/use-navigation.js.map +1 -0
- 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/forwardRefWithGenerics.js +1 -1
- package/dist/utils/react/index.js +1 -1
- package/dist/utils/react/interactions.js +1 -1
- package/dist/utils/react/isTextOnly.js +1 -1
- package/dist/utils/react/mapProps.js +1 -1
- package/dist/utils/react/mergeProps.js +1 -1
- package/dist/utils/react/nullableValue.js +1 -1
- package/dist/utils/react/overlayKeyPropagation.js +1 -1
- package/dist/utils/react/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/Usage.md +4 -0
- package/docs/components/CollectionItem.md +5 -1
- package/docs/components/actions/CommandMenu.md +46 -18
- package/docs/components/actions/Menu.md +124 -19
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-1b26a89 | 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";
|
|
5
|
-
import { _CollectionItem } from "../../CollectionItem.js";
|
|
6
5
|
import { useI18n } from "../../../i18n/useI18n.js";
|
|
7
6
|
import { useMenuContext } from "../Menu/context.js";
|
|
7
|
+
import { _MenuCollectionItem, getMenuItemReactKey } from "../Menu/MenuCollectionItem.js";
|
|
8
8
|
import { MenuItem } from "../Menu/MenuItem.js";
|
|
9
9
|
import { StyledDivider, StyledFooter, StyledHeader, StyledMenu } from "../Menu/styled.js";
|
|
10
10
|
import { MenuSection } from "../Menu/MenuSection.js";
|
|
@@ -39,7 +39,7 @@ function getNextEnabledKey(keys, currentKey, direction, isDisabled) {
|
|
|
39
39
|
return ahead.find(isEnabled) ?? ordered.find(isEnabled) ?? null;
|
|
40
40
|
}
|
|
41
41
|
function CommandMenu(props, ref) {
|
|
42
|
-
const $ = c(
|
|
42
|
+
const $ = c(80);
|
|
43
43
|
const { t } = useI18n();
|
|
44
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;
|
|
45
45
|
let t6;
|
|
@@ -64,6 +64,8 @@ function CommandMenu(props, ref) {
|
|
|
64
64
|
const size = t5 === void 0 ? "medium" : t5;
|
|
65
65
|
const domRef = useObjectRef(ref);
|
|
66
66
|
const searchInputRef = useRef(null);
|
|
67
|
+
const instanceId = useId();
|
|
68
|
+
const menuId = `${qa || "CommandMenu"}-${instanceId}-menu`;
|
|
67
69
|
const contextProps = useMenuContext();
|
|
68
70
|
const ariaSelectedKeys = selectedKeys ? new Set(selectedKeys) : void 0;
|
|
69
71
|
const ariaDefaultSelectedKeys = defaultSelectedKeys ? new Set(defaultSelectedKeys) : void 0;
|
|
@@ -149,19 +151,15 @@ function CommandMenu(props, ref) {
|
|
|
149
151
|
filter: collectionFilter,
|
|
150
152
|
shouldUseVirtualFocus: true
|
|
151
153
|
});
|
|
154
|
+
const itemId = (key_2) => {
|
|
155
|
+
const item_0 = treeState.collection.getItem(key_2);
|
|
156
|
+
const actions = item_0?.props.actions;
|
|
157
|
+
if (item_0?.props.id != null && item_0.props.href == null && (!actions || actions === true)) return String(item_0.props.id);
|
|
158
|
+
return `${menuId}-option-${typeof key_2}-${encodeURIComponent(String(key_2))}`;
|
|
159
|
+
};
|
|
152
160
|
const collectionItems = [...treeState.collection];
|
|
153
161
|
collectionItems.some(_temp6);
|
|
154
|
-
const
|
|
155
|
-
const menuId = `${qa || `CommandMenu${autoId}`}-menu`;
|
|
156
|
-
let t13;
|
|
157
|
-
if ($[17] !== menuId) {
|
|
158
|
-
t13 = (key_2) => `${menuId}-option-${encodeURIComponent(String(key_2))}`;
|
|
159
|
-
$[17] = menuId;
|
|
160
|
-
$[18] = t13;
|
|
161
|
-
} else t13 = $[18];
|
|
162
|
-
const getItemId = t13;
|
|
163
|
-
const [focusedKey, setFocusedKey] = React.useState(null);
|
|
164
|
-
const focusedKeyRef = useRef(null);
|
|
162
|
+
const focusedKey = treeState.selectionManager.focusedKey;
|
|
165
163
|
const filteredCollectionItems = [...collectionFilter(collectionItems)];
|
|
166
164
|
const hasFilteredItems = filteredCollectionItems.length > 0;
|
|
167
165
|
const viewHasSections = filteredCollectionItems.some(_temp7);
|
|
@@ -174,39 +172,39 @@ function CommandMenu(props, ref) {
|
|
|
174
172
|
}, treeState, menuRef);
|
|
175
173
|
const renderedItems = [];
|
|
176
174
|
let isFirstSection = true;
|
|
177
|
-
filteredCollectionItems.forEach((
|
|
178
|
-
|
|
175
|
+
filteredCollectionItems.forEach((item_3) => {
|
|
176
|
+
const reactKey = getMenuItemReactKey(item_3.key);
|
|
177
|
+
if (item_3.type === "section") {
|
|
179
178
|
if (!isFirstSection) renderedItems.push(/* @__PURE__ */ jsx(StyledDivider, {
|
|
180
179
|
role: "separator",
|
|
181
180
|
"aria-orientation": "horizontal"
|
|
182
|
-
}, `divider-${
|
|
181
|
+
}, `divider-${reactKey}`));
|
|
183
182
|
renderedItems.push(/* @__PURE__ */ jsx(MenuSection, {
|
|
184
|
-
item:
|
|
185
|
-
getItemId,
|
|
183
|
+
item: item_3,
|
|
186
184
|
state: treeState,
|
|
187
185
|
styles: completeProps.sectionStyles,
|
|
188
186
|
itemStyles: completeProps.itemStyles,
|
|
189
187
|
headingStyles: completeProps.sectionHeadingStyles,
|
|
190
|
-
size
|
|
191
|
-
|
|
188
|
+
size,
|
|
189
|
+
itemId
|
|
190
|
+
}, reactKey));
|
|
192
191
|
isFirstSection = false;
|
|
193
192
|
return;
|
|
194
193
|
}
|
|
195
194
|
let menuItem = /* @__PURE__ */ jsx(MenuItem, {
|
|
196
|
-
|
|
197
|
-
item: item_2,
|
|
195
|
+
item: item_3,
|
|
198
196
|
state: treeState,
|
|
199
197
|
styles: completeProps.itemStyles,
|
|
200
198
|
size,
|
|
201
|
-
|
|
202
|
-
},
|
|
203
|
-
if (
|
|
204
|
-
renderedItems.push(React.cloneElement(menuItem, { key:
|
|
199
|
+
id: itemId(item_3.key)
|
|
200
|
+
}, reactKey);
|
|
201
|
+
if (item_3.props.wrapper) menuItem = item_3.props.wrapper(menuItem);
|
|
202
|
+
renderedItems.push(React.cloneElement(menuItem, { key: reactKey }));
|
|
205
203
|
});
|
|
204
|
+
let t13;
|
|
206
205
|
let t14;
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
t14 = () => {
|
|
206
|
+
if ($[17] !== autoFocus) {
|
|
207
|
+
t13 = () => {
|
|
210
208
|
if (autoFocus && searchInputRef.current) {
|
|
211
209
|
const timeoutId = setTimeout(() => {
|
|
212
210
|
if (searchInputRef.current) searchInputRef.current.focus();
|
|
@@ -214,19 +212,19 @@ function CommandMenu(props, ref) {
|
|
|
214
212
|
return () => clearTimeout(timeoutId);
|
|
215
213
|
}
|
|
216
214
|
};
|
|
217
|
-
|
|
218
|
-
$[
|
|
219
|
-
$[
|
|
220
|
-
$[
|
|
215
|
+
t14 = [autoFocus];
|
|
216
|
+
$[17] = autoFocus;
|
|
217
|
+
$[18] = t13;
|
|
218
|
+
$[19] = t14;
|
|
221
219
|
} else {
|
|
222
|
-
|
|
223
|
-
|
|
220
|
+
t13 = $[18];
|
|
221
|
+
t14 = $[19];
|
|
224
222
|
}
|
|
225
|
-
React.useEffect(
|
|
223
|
+
React.useEffect(t13, t14);
|
|
224
|
+
let t15;
|
|
226
225
|
let t16;
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
t16 = () => {
|
|
226
|
+
if ($[20] !== autoFocus || $[21] !== contextProps.autoFocus) {
|
|
227
|
+
t15 = () => {
|
|
230
228
|
if (autoFocus && contextProps.autoFocus && searchInputRef.current) {
|
|
231
229
|
const timeoutId_0 = setTimeout(() => {
|
|
232
230
|
if (searchInputRef.current) searchInputRef.current.focus();
|
|
@@ -234,230 +232,198 @@ function CommandMenu(props, ref) {
|
|
|
234
232
|
return () => clearTimeout(timeoutId_0);
|
|
235
233
|
}
|
|
236
234
|
};
|
|
237
|
-
|
|
238
|
-
$[
|
|
239
|
-
$[
|
|
240
|
-
$[
|
|
241
|
-
$[
|
|
235
|
+
t16 = [autoFocus, contextProps.autoFocus];
|
|
236
|
+
$[20] = autoFocus;
|
|
237
|
+
$[21] = contextProps.autoFocus;
|
|
238
|
+
$[22] = t15;
|
|
239
|
+
$[23] = t16;
|
|
242
240
|
} else {
|
|
243
|
-
|
|
244
|
-
|
|
241
|
+
t15 = $[22];
|
|
242
|
+
t16 = $[23];
|
|
245
243
|
}
|
|
246
|
-
React.useEffect(
|
|
244
|
+
React.useEffect(t15, t16);
|
|
247
245
|
const prevSearchValueRef = useRef("");
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
const
|
|
252
|
-
if (
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
focusedKeyRef.current = null;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
prevSearchValueRef.current = currentSearchValue;
|
|
265
|
-
};
|
|
266
|
-
$[26] = findFirstSelectableItem;
|
|
267
|
-
$[27] = hasFilteredItems;
|
|
268
|
-
$[28] = searchValue;
|
|
269
|
-
$[29] = setFocusedKey;
|
|
270
|
-
$[30] = treeState.selectionManager;
|
|
271
|
-
$[31] = t18;
|
|
272
|
-
} else t18 = $[31];
|
|
273
|
-
let t19;
|
|
274
|
-
if ($[32] !== findFirstSelectableItem || $[33] !== hasFilteredItems || $[34] !== searchValue) {
|
|
275
|
-
t19 = [
|
|
276
|
-
searchValue,
|
|
277
|
-
findFirstSelectableItem,
|
|
278
|
-
hasFilteredItems
|
|
279
|
-
];
|
|
280
|
-
$[32] = findFirstSelectableItem;
|
|
281
|
-
$[33] = hasFilteredItems;
|
|
282
|
-
$[34] = searchValue;
|
|
283
|
-
$[35] = t19;
|
|
284
|
-
} else t19 = $[35];
|
|
285
|
-
React.useEffect(t18, t19);
|
|
246
|
+
React.useEffect(() => {
|
|
247
|
+
const currentSearchValue = searchValue.trim();
|
|
248
|
+
if (currentSearchValue !== prevSearchValueRef.current && currentSearchValue !== "") {
|
|
249
|
+
const firstSelectableKey = findFirstSelectableItem();
|
|
250
|
+
if (firstSelectableKey != null && hasFilteredItems) treeState.selectionManager.setFocusedKey(firstSelectableKey);
|
|
251
|
+
else treeState.selectionManager.setFocusedKey(null);
|
|
252
|
+
}
|
|
253
|
+
prevSearchValueRef.current = currentSearchValue;
|
|
254
|
+
}, [
|
|
255
|
+
searchValue,
|
|
256
|
+
findFirstSelectableItem,
|
|
257
|
+
hasFilteredItems
|
|
258
|
+
]);
|
|
286
259
|
const handleArrowKey = (e) => {
|
|
287
260
|
e.preventDefault();
|
|
288
261
|
const { selectionManager } = treeState;
|
|
289
|
-
const currentKey =
|
|
262
|
+
const currentKey = selectionManager.focusedKey;
|
|
290
263
|
const nextKey = getNextEnabledKey(collectItemKeys(filteredCollectionItems), currentKey, e.key === "ArrowDown" ? 1 : -1, (key_4) => selectionManager.isDisabled(key_4));
|
|
291
|
-
if (nextKey != null)
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
264
|
+
if (nextKey != null) selectionManager.setFocusedKey(nextKey);
|
|
265
|
+
};
|
|
266
|
+
const handleActionKey = (e_0) => {
|
|
267
|
+
e_0.preventDefault();
|
|
268
|
+
e_0.stopPropagation();
|
|
269
|
+
if (e_0.repeat || focusedKey == null || treeState.selectionManager.isDisabled(focusedKey)) return;
|
|
270
|
+
const item_4 = menuRef.current?.ownerDocument.getElementById(itemId(focusedKey));
|
|
271
|
+
if (!item_4 || !menuRef.current?.contains(item_4)) return;
|
|
272
|
+
if (item_4.dispatchEvent(new window.KeyboardEvent("keydown", {
|
|
273
|
+
key: e_0.key,
|
|
274
|
+
code: e_0.code,
|
|
275
|
+
ctrlKey: e_0.ctrlKey,
|
|
276
|
+
metaKey: e_0.metaKey,
|
|
277
|
+
altKey: e_0.altKey,
|
|
278
|
+
shiftKey: e_0.shiftKey,
|
|
279
|
+
bubbles: true,
|
|
280
|
+
cancelable: true
|
|
281
|
+
})) && e_0.key === "Enter") item_4.dispatchEvent(new window.MouseEvent("click", {
|
|
282
|
+
ctrlKey: e_0.ctrlKey,
|
|
283
|
+
metaKey: e_0.metaKey,
|
|
284
|
+
altKey: e_0.altKey,
|
|
285
|
+
shiftKey: e_0.shiftKey,
|
|
286
|
+
bubbles: true,
|
|
287
|
+
cancelable: true,
|
|
288
|
+
detail: 1
|
|
289
|
+
}));
|
|
290
|
+
item_4.dispatchEvent(new window.KeyboardEvent("keyup", {
|
|
291
|
+
key: e_0.key,
|
|
292
|
+
code: e_0.code,
|
|
293
|
+
ctrlKey: e_0.ctrlKey,
|
|
294
|
+
metaKey: e_0.metaKey,
|
|
295
|
+
altKey: e_0.altKey,
|
|
296
|
+
shiftKey: e_0.shiftKey,
|
|
297
|
+
bubbles: true,
|
|
298
|
+
cancelable: true
|
|
299
|
+
}));
|
|
300
|
+
};
|
|
301
|
+
const handleSearchKeyDown = (e_1) => {
|
|
302
|
+
if (e_1.nativeEvent.isComposing) return;
|
|
303
|
+
if (e_1.key === "ArrowDown" || e_1.key === "ArrowUp") handleArrowKey(e_1);
|
|
304
|
+
else if (e_1.key === "Enter" || e_1.key === " " && !searchValue.trim()) handleActionKey(e_1);
|
|
305
|
+
else if (e_1.key === "Escape" && searchValue) {
|
|
306
|
+
e_1.preventDefault();
|
|
307
|
+
handleSearchChange("");
|
|
295
308
|
}
|
|
296
309
|
};
|
|
297
|
-
let t20;
|
|
298
|
-
if ($[36] !== completeProps || $[37] !== treeState.collection) {
|
|
299
|
-
t20 = (key_5) => {
|
|
300
|
-
const node_0 = treeState.collection.getItem(key_5);
|
|
301
|
-
if (!node_0) return;
|
|
302
|
-
const onAction_0 = completeProps.onAction;
|
|
303
|
-
if (onAction_0) onAction_0(key_5);
|
|
304
|
-
if (node_0.props?.onAction) node_0.props.onAction(key_5);
|
|
305
|
-
};
|
|
306
|
-
$[36] = completeProps;
|
|
307
|
-
$[37] = treeState.collection;
|
|
308
|
-
$[38] = t20;
|
|
309
|
-
} else t20 = $[38];
|
|
310
|
-
const triggerAction = t20;
|
|
311
|
-
let t21;
|
|
312
|
-
if ($[39] !== contextProps || $[40] !== focusedKey || $[41] !== treeState.selectionManager || $[42] !== triggerAction) {
|
|
313
|
-
t21 = (e_0) => {
|
|
314
|
-
const currentFocusedKey = focusedKey || treeState.selectionManager.focusedKey;
|
|
315
|
-
if (currentFocusedKey == null) return;
|
|
316
|
-
e_0.preventDefault();
|
|
317
|
-
if (treeState.selectionManager.selectionMode !== "none") treeState.selectionManager.select(currentFocusedKey);
|
|
318
|
-
else triggerAction(currentFocusedKey);
|
|
319
|
-
const { onClose, closeOnSelect } = contextProps;
|
|
320
|
-
if (onClose && closeOnSelect !== false) onClose();
|
|
321
|
-
};
|
|
322
|
-
$[39] = contextProps;
|
|
323
|
-
$[40] = focusedKey;
|
|
324
|
-
$[41] = treeState.selectionManager;
|
|
325
|
-
$[42] = triggerAction;
|
|
326
|
-
$[43] = t21;
|
|
327
|
-
} else t21 = $[43];
|
|
328
|
-
const handleActionKey = t21;
|
|
329
|
-
let t22;
|
|
330
|
-
if ($[44] !== handleActionKey || $[45] !== handleArrowKey || $[46] !== handleSearchChange || $[47] !== searchValue) {
|
|
331
|
-
t22 = (e_1) => {
|
|
332
|
-
if (e_1.key === "ArrowDown" || e_1.key === "ArrowUp") handleArrowKey(e_1);
|
|
333
|
-
else if (e_1.key === "Enter" || e_1.key === " " && !searchValue.trim()) handleActionKey(e_1);
|
|
334
|
-
else if (e_1.key === "Escape" && searchValue) {
|
|
335
|
-
e_1.preventDefault();
|
|
336
|
-
handleSearchChange("");
|
|
337
|
-
}
|
|
338
|
-
};
|
|
339
|
-
$[44] = handleActionKey;
|
|
340
|
-
$[45] = handleArrowKey;
|
|
341
|
-
$[46] = handleSearchChange;
|
|
342
|
-
$[47] = searchValue;
|
|
343
|
-
$[48] = t22;
|
|
344
|
-
} else t22 = $[48];
|
|
345
|
-
const handleSearchKeyDown = t22;
|
|
346
310
|
const extractedStyles = extractStyles(props, CONTAINER_STYLES);
|
|
347
|
-
let
|
|
348
|
-
if ($[
|
|
349
|
-
|
|
350
|
-
$[
|
|
351
|
-
$[
|
|
352
|
-
} else
|
|
353
|
-
const showEmptyState =
|
|
311
|
+
let t17;
|
|
312
|
+
if ($[24] !== searchValue) {
|
|
313
|
+
t17 = searchValue.trim();
|
|
314
|
+
$[24] = searchValue;
|
|
315
|
+
$[25] = t17;
|
|
316
|
+
} else t17 = $[25];
|
|
317
|
+
const showEmptyState = t17.length > 0 && !hasFilteredItems && !isLoading;
|
|
318
|
+
const activeDescendant = !isLoading && !showEmptyState && focusedKey != null && collectItemKeys(filteredCollectionItems).includes(focusedKey) ? itemId(focusedKey) : void 0;
|
|
354
319
|
useSyncRef(contextProps, menuRef);
|
|
355
|
-
const
|
|
356
|
-
const
|
|
357
|
-
const
|
|
358
|
-
const
|
|
359
|
-
let
|
|
360
|
-
if ($[
|
|
361
|
-
|
|
320
|
+
const t18 = !!footer;
|
|
321
|
+
const t19 = !!header;
|
|
322
|
+
const t20 = completeProps.mods?.popover;
|
|
323
|
+
const t21 = completeProps.mods?.tray;
|
|
324
|
+
let t22;
|
|
325
|
+
if ($[26] !== t18 || $[27] !== t19 || $[28] !== t20 || $[29] !== t21 || $[30] !== viewHasSections) {
|
|
326
|
+
t22 = {
|
|
362
327
|
sections: viewHasSections,
|
|
363
|
-
footer:
|
|
364
|
-
header:
|
|
365
|
-
popover:
|
|
366
|
-
tray:
|
|
328
|
+
footer: t18,
|
|
329
|
+
header: t19,
|
|
330
|
+
popover: t20,
|
|
331
|
+
tray: t21
|
|
367
332
|
};
|
|
368
|
-
$[
|
|
369
|
-
$[
|
|
370
|
-
$[
|
|
371
|
-
$[
|
|
372
|
-
$[
|
|
373
|
-
$[
|
|
374
|
-
} else
|
|
375
|
-
const mods =
|
|
376
|
-
let
|
|
377
|
-
if ($[
|
|
378
|
-
|
|
379
|
-
$[
|
|
380
|
-
$[
|
|
381
|
-
} else
|
|
382
|
-
const
|
|
333
|
+
$[26] = t18;
|
|
334
|
+
$[27] = t19;
|
|
335
|
+
$[28] = t20;
|
|
336
|
+
$[29] = t21;
|
|
337
|
+
$[30] = viewHasSections;
|
|
338
|
+
$[31] = t22;
|
|
339
|
+
} else t22 = $[31];
|
|
340
|
+
const mods = t22;
|
|
341
|
+
let t23;
|
|
342
|
+
if ($[32] !== props) {
|
|
343
|
+
t23 = filterBaseProps(props);
|
|
344
|
+
$[32] = props;
|
|
345
|
+
$[33] = t23;
|
|
346
|
+
} else t23 = $[33];
|
|
347
|
+
const t24 = t23;
|
|
383
348
|
let wrapperProps;
|
|
384
|
-
if ($[
|
|
385
|
-
const { "aria-label": _ariaLabel, "aria-labelledby": _ariaLabelledBy, "aria-describedby": _ariaDescribedBy, "aria-details": _ariaDetails, ...
|
|
386
|
-
wrapperProps =
|
|
387
|
-
$[
|
|
388
|
-
$[
|
|
389
|
-
} else wrapperProps = $[
|
|
349
|
+
if ($[34] !== t24) {
|
|
350
|
+
const { "aria-label": _ariaLabel, "aria-labelledby": _ariaLabelledBy, "aria-describedby": _ariaDescribedBy, "aria-details": _ariaDetails, ...t25 } = t24;
|
|
351
|
+
wrapperProps = t25;
|
|
352
|
+
$[34] = t24;
|
|
353
|
+
$[35] = wrapperProps;
|
|
354
|
+
} else wrapperProps = $[35];
|
|
390
355
|
const T0 = StyledCommandMenu;
|
|
391
|
-
const
|
|
392
|
-
const
|
|
393
|
-
let
|
|
394
|
-
if ($[
|
|
395
|
-
|
|
356
|
+
const t25 = qa || "CommandMenu";
|
|
357
|
+
const t26 = mergeStyleLayers(extractedStyles, styles);
|
|
358
|
+
let t27;
|
|
359
|
+
if ($[36] !== header || $[37] !== headerStyles || $[38] !== size) {
|
|
360
|
+
t27 = header && /* @__PURE__ */ jsx(StyledHeader, {
|
|
396
361
|
role: "presentation",
|
|
397
362
|
"data-size": size,
|
|
398
363
|
styles: mergeStyleLayers({ border: "none" }, headerStyles),
|
|
399
364
|
children: header
|
|
400
365
|
});
|
|
401
|
-
$[
|
|
402
|
-
$[
|
|
403
|
-
$[
|
|
404
|
-
$[
|
|
405
|
-
} else
|
|
406
|
-
const
|
|
407
|
-
const
|
|
408
|
-
const
|
|
409
|
-
const
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
$[
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
366
|
+
$[36] = header;
|
|
367
|
+
$[37] = headerStyles;
|
|
368
|
+
$[38] = size;
|
|
369
|
+
$[39] = t27;
|
|
370
|
+
} else t27 = $[39];
|
|
371
|
+
const t28 = completeProps["aria-label"] ?? searchPlaceholder;
|
|
372
|
+
const t29 = completeProps["aria-labelledby"];
|
|
373
|
+
const t30 = completeProps["aria-describedby"];
|
|
374
|
+
const t31 = completeProps["aria-details"];
|
|
375
|
+
const t32 = !isLoading && !showEmptyState ? menuId : void 0;
|
|
376
|
+
let t33;
|
|
377
|
+
if ($[40] !== handleSearchChange) {
|
|
378
|
+
t33 = (e_2) => handleSearchChange(e_2.target.value);
|
|
379
|
+
$[40] = handleSearchChange;
|
|
380
|
+
$[41] = t33;
|
|
381
|
+
} else t33 = $[41];
|
|
382
|
+
let t34;
|
|
383
|
+
if ($[42] !== activeDescendant || $[43] !== handleSearchKeyDown || $[44] !== searchInputStyles || $[45] !== searchPlaceholder || $[46] !== searchValue || $[47] !== size || $[48] !== t28 || $[49] !== t29 || $[50] !== t30 || $[51] !== t31 || $[52] !== t32 || $[53] !== t33) {
|
|
384
|
+
t34 = /* @__PURE__ */ jsx(StyledSearchInput, {
|
|
419
385
|
ref: searchInputRef,
|
|
420
386
|
type: "search",
|
|
421
387
|
placeholder: searchPlaceholder,
|
|
422
388
|
value: searchValue,
|
|
423
389
|
styles: searchInputStyles,
|
|
424
390
|
"data-size": size,
|
|
425
|
-
"aria-
|
|
426
|
-
|
|
427
|
-
"aria-
|
|
428
|
-
"aria-
|
|
429
|
-
"aria-
|
|
430
|
-
"
|
|
431
|
-
"aria-
|
|
432
|
-
|
|
433
|
-
onChange: t38,
|
|
391
|
+
"aria-label": t28,
|
|
392
|
+
"aria-labelledby": t29,
|
|
393
|
+
"aria-describedby": t30,
|
|
394
|
+
"aria-details": t31,
|
|
395
|
+
"aria-controls": t32,
|
|
396
|
+
role: "searchbox",
|
|
397
|
+
"aria-activedescendant": activeDescendant,
|
|
398
|
+
onChange: t33,
|
|
434
399
|
onKeyDown: handleSearchKeyDown
|
|
435
400
|
});
|
|
436
|
-
$[
|
|
437
|
-
$[
|
|
438
|
-
$[
|
|
439
|
-
$[
|
|
440
|
-
$[
|
|
441
|
-
$[
|
|
442
|
-
$[
|
|
443
|
-
$[
|
|
444
|
-
$[
|
|
445
|
-
$[
|
|
446
|
-
$[
|
|
447
|
-
$[
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
401
|
+
$[42] = activeDescendant;
|
|
402
|
+
$[43] = handleSearchKeyDown;
|
|
403
|
+
$[44] = searchInputStyles;
|
|
404
|
+
$[45] = searchPlaceholder;
|
|
405
|
+
$[46] = searchValue;
|
|
406
|
+
$[47] = size;
|
|
407
|
+
$[48] = t28;
|
|
408
|
+
$[49] = t29;
|
|
409
|
+
$[50] = t30;
|
|
410
|
+
$[51] = t31;
|
|
411
|
+
$[52] = t32;
|
|
412
|
+
$[53] = t33;
|
|
413
|
+
$[54] = t34;
|
|
414
|
+
} else t34 = $[54];
|
|
415
|
+
let t35;
|
|
416
|
+
if ($[55] !== isLoading || $[56] !== t) {
|
|
417
|
+
t35 = isLoading && /* @__PURE__ */ jsx(StyledLoadingWrapper, { children: /* @__PURE__ */ jsx(LoadingIcon, {
|
|
452
418
|
role: "progressbar",
|
|
453
419
|
"aria-label": t("commandMenu.loading", "Loading commands"),
|
|
454
420
|
"aria-hidden": false
|
|
455
421
|
}) });
|
|
456
|
-
$[
|
|
457
|
-
$[
|
|
458
|
-
$[
|
|
459
|
-
} else
|
|
460
|
-
const
|
|
422
|
+
$[55] = isLoading;
|
|
423
|
+
$[56] = t;
|
|
424
|
+
$[57] = t35;
|
|
425
|
+
} else t35 = $[57];
|
|
426
|
+
const t36 = !isLoading && !showEmptyState && /* @__PURE__ */ jsx(StyledMenu, {
|
|
461
427
|
...menuProps,
|
|
462
428
|
ref: menuRef,
|
|
463
429
|
id: menuId,
|
|
@@ -473,67 +439,67 @@ function CommandMenu(props, ref) {
|
|
|
473
439
|
},
|
|
474
440
|
children: renderedItems
|
|
475
441
|
});
|
|
476
|
-
let
|
|
477
|
-
if ($[
|
|
478
|
-
|
|
479
|
-
$[
|
|
480
|
-
$[
|
|
481
|
-
$[
|
|
482
|
-
$[
|
|
483
|
-
} else
|
|
484
|
-
let
|
|
485
|
-
if ($[
|
|
486
|
-
|
|
442
|
+
let t37;
|
|
443
|
+
if ($[58] !== emptyLabel || $[59] !== isLoading || $[60] !== showEmptyState) {
|
|
444
|
+
t37 = !isLoading && showEmptyState && /* @__PURE__ */ jsx(StyledEmptyState, { children: emptyLabel });
|
|
445
|
+
$[58] = emptyLabel;
|
|
446
|
+
$[59] = isLoading;
|
|
447
|
+
$[60] = showEmptyState;
|
|
448
|
+
$[61] = t37;
|
|
449
|
+
} else t37 = $[61];
|
|
450
|
+
let t38;
|
|
451
|
+
if ($[62] !== footer || $[63] !== footerStyles || $[64] !== size) {
|
|
452
|
+
t38 = footer && /* @__PURE__ */ jsx(StyledFooter, {
|
|
487
453
|
role: "presentation",
|
|
488
454
|
"data-size": size,
|
|
489
455
|
styles: footerStyles,
|
|
490
456
|
children: footer
|
|
491
457
|
});
|
|
492
|
-
$[
|
|
493
|
-
$[
|
|
494
|
-
$[
|
|
495
|
-
$[
|
|
496
|
-
} else
|
|
497
|
-
let
|
|
498
|
-
if ($[
|
|
499
|
-
|
|
458
|
+
$[62] = footer;
|
|
459
|
+
$[63] = footerStyles;
|
|
460
|
+
$[64] = size;
|
|
461
|
+
$[65] = t38;
|
|
462
|
+
} else t38 = $[65];
|
|
463
|
+
let t39;
|
|
464
|
+
if ($[66] !== T0 || $[67] !== domRef || $[68] !== mods || $[69] !== size || $[70] !== t25 || $[71] !== t26 || $[72] !== t27 || $[73] !== t34 || $[74] !== t35 || $[75] !== t36 || $[76] !== t37 || $[77] !== t38 || $[78] !== wrapperProps) {
|
|
465
|
+
t39 = /* @__PURE__ */ jsxs(T0, {
|
|
500
466
|
...wrapperProps,
|
|
501
467
|
ref: domRef,
|
|
502
|
-
qa:
|
|
468
|
+
qa: t25,
|
|
503
469
|
"data-size": size,
|
|
504
470
|
mods,
|
|
505
|
-
styles:
|
|
471
|
+
styles: t26,
|
|
506
472
|
children: [
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
473
|
+
t27,
|
|
474
|
+
t34,
|
|
475
|
+
t35,
|
|
476
|
+
t36,
|
|
477
|
+
t37,
|
|
478
|
+
t38
|
|
513
479
|
]
|
|
514
480
|
});
|
|
515
|
-
$[
|
|
516
|
-
$[
|
|
517
|
-
$[
|
|
518
|
-
$[
|
|
519
|
-
$[
|
|
520
|
-
$[
|
|
521
|
-
$[
|
|
522
|
-
$[
|
|
523
|
-
$[
|
|
524
|
-
$[
|
|
525
|
-
$[
|
|
526
|
-
$[
|
|
527
|
-
$[
|
|
528
|
-
$[
|
|
529
|
-
} else
|
|
530
|
-
return
|
|
481
|
+
$[66] = T0;
|
|
482
|
+
$[67] = domRef;
|
|
483
|
+
$[68] = mods;
|
|
484
|
+
$[69] = size;
|
|
485
|
+
$[70] = t25;
|
|
486
|
+
$[71] = t26;
|
|
487
|
+
$[72] = t27;
|
|
488
|
+
$[73] = t34;
|
|
489
|
+
$[74] = t35;
|
|
490
|
+
$[75] = t36;
|
|
491
|
+
$[76] = t37;
|
|
492
|
+
$[77] = t38;
|
|
493
|
+
$[78] = wrapperProps;
|
|
494
|
+
$[79] = t39;
|
|
495
|
+
} else t39 = $[79];
|
|
496
|
+
return t39;
|
|
531
497
|
}
|
|
532
|
-
function _temp7(
|
|
533
|
-
return
|
|
498
|
+
function _temp7(item_2) {
|
|
499
|
+
return item_2.type === "section";
|
|
534
500
|
}
|
|
535
|
-
function _temp6(
|
|
536
|
-
return
|
|
501
|
+
function _temp6(item_1) {
|
|
502
|
+
return item_1.type === "section";
|
|
537
503
|
}
|
|
538
504
|
function _temp5(word_0) {
|
|
539
505
|
return word_0.length > 0;
|
|
@@ -553,7 +519,7 @@ function _temp(key) {
|
|
|
553
519
|
const _CommandMenu = React.forwardRef(CommandMenu);
|
|
554
520
|
const __CommandMenu = Object.assign(_CommandMenu, {
|
|
555
521
|
Trigger: _MenuTrigger,
|
|
556
|
-
Item:
|
|
522
|
+
Item: _MenuCollectionItem,
|
|
557
523
|
Section,
|
|
558
524
|
displayName: "CommandMenu"
|
|
559
525
|
});
|