@cube-dev/ui-kit 0.0.0-canary-617ee03 → 0.0.0-canary-b0bae4c
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.d.ts +1 -1
- 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 +212 -239
- 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 -64
- 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.d.ts +1 -0
- package/dist/components/actions/Menu/MenuItem.js +405 -116
- package/dist/components/actions/Menu/MenuItem.js.map +1 -1
- package/dist/components/actions/Menu/MenuSection.d.ts +2 -0
- package/dist/components/actions/Menu/MenuSection.js +31 -33
- 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.d.ts +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 +509 -509
- 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 +177 -99
- package/dist/components/content/Item/Item.js.map +1 -1
- package/dist/components/content/Item/ItemWithNativeLinks.js +394 -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 +1351 -1351
- 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 +18 -35
- package/dist/components/data/TableBase/TableView.js.map +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 -14
- package/dist/components/data/TableBase/styled.js.map +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 +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 +19 -30
- package/dist/components/data/TableBase/use-table-tooltip-refresh.js.map +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 +128 -128
- 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/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/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/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/docs/components/data/DataTable.md +0 -3
- package/docs/components/data/ItemTable.md +1 -9
- package/package.json +1 -1
- package/dist/components/data/TableBase/use-column-window.js +0 -157
- package/dist/components/data/TableBase/use-column-window.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { _Tooltip } from "../../overlays/Tooltip/Tooltip.js";
|
|
3
3
|
import { TooltipTrigger } from "../../overlays/Tooltip/TooltipTrigger.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-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { extractStyles, mergeStyleLayers } from "../../../utils/styles.js";
|
|
3
3
|
import { mergeRefs } from "../../../utils/react/useCombinedRefs.js";
|
|
4
4
|
import { DisplayTransition } from "../../helpers/DisplayTransition/DisplayTransition.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-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { useSlotProps } from "../../utils/react/Slots.js";
|
|
3
3
|
import { useCombinedRefs } from "../../utils/react/useCombinedRefs.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-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../utils/styles.js";
|
|
3
3
|
import { useSlotProps } from "../../utils/react/Slots.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-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../utils/styles.js";
|
|
3
3
|
import { useSlotProps } from "../../utils/react/Slots.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-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { _Text } from "../Text.js";
|
|
4
4
|
import { useKeySymbols } from "../../../utils/react/useKeySymbols.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-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { useWarn } from "../../../_internal/hooks/use-warn.js";
|
|
3
3
|
import { ItemAction } from "../../actions/ItemAction/ItemAction.js";
|
|
4
4
|
import { ItemBadge } from "../ItemBadge/ItemBadge.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-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
4
4
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
|
|
2
2
|
import { Props } from "../../../props.js";
|
|
3
3
|
import { CubeTooltipProviderProps } from "../../overlays/Tooltip/TooltipProvider.js";
|
|
4
|
+
import { CubeItemActionProps } from "../../actions/ItemAction/ItemAction.js";
|
|
4
5
|
import { DynamicIcon } from "../../../utils/react/resolveIcon.js";
|
|
5
6
|
import "../../../utils/react/index.js";
|
|
6
7
|
import { CubeItemBadgeProps } from "../ItemBadge/ItemBadge.js";
|
|
7
8
|
import "./index.js";
|
|
9
|
+
import "../../actions/index.js";
|
|
8
10
|
import { ItemVariant } from "../../../data/item-themes.js";
|
|
9
11
|
import { TooltipFocusProps } from "../../overlays/Tooltip/split-trigger-props.js";
|
|
10
|
-
import { CubeItemActionProps } from "../../actions/ItemAction/ItemAction.js";
|
|
11
|
-
import "../../actions/index.js";
|
|
12
12
|
import { BaseProps, ContainerStyleProps, Mods, Styles } from "@tenphi/tasty";
|
|
13
|
-
import
|
|
14
|
-
import { ReactNode, Ref } from "react";
|
|
13
|
+
import { ForwardRefExoticComponent, HTMLAttributes, ReactNode, Ref, RefAttributes } from "react";
|
|
15
14
|
import { PositionProps } from "react-aria";
|
|
16
15
|
import * as _react_types_shared0 from "@react-types/shared";
|
|
17
16
|
|
|
@@ -203,10 +202,11 @@ interface CubeItemProps extends BaseProps, ContainerStyleProps {
|
|
|
203
202
|
*/
|
|
204
203
|
variant?: ItemVariant;
|
|
205
204
|
}
|
|
206
|
-
declare const _Item:
|
|
207
|
-
Action:
|
|
208
|
-
Badge:
|
|
205
|
+
declare const _Item: ForwardRefExoticComponent<CubeItemProps & RefAttributes<HTMLElement>> & {
|
|
206
|
+
Action: ForwardRefExoticComponent<CubeItemActionProps & RefAttributes<_react_types_shared0.FocusableRefValue<HTMLElement, HTMLElement>>>;
|
|
207
|
+
Badge: ForwardRefExoticComponent<CubeItemBadgeProps & RefAttributes<HTMLDivElement>>;
|
|
209
208
|
};
|
|
209
|
+
/** @private Keeps menu links in the existing label/description grid slots. */
|
|
210
210
|
//#endregion
|
|
211
211
|
export { CubeItemProps, ItemMods, _Item };
|
|
212
212
|
//# sourceMappingURL=Item.d.ts.map
|
|
@@ -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-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { getDisabledElementProps, omitActivationEventProps } from "../../../utils/react/disabledProps.js";
|
|
3
3
|
import { mergeProps } from "../../../utils/react/mergeProps.js";
|
|
4
4
|
import { resolveIcon } from "../../../utils/react/resolveIcon.js";
|
|
@@ -505,9 +505,18 @@ function useHotkeyClick(hotkeys, isDisabled, ref) {
|
|
|
505
505
|
function highlightContent(content, highlight, caseSensitive, highlightStyles) {
|
|
506
506
|
return typeof content === "string" && highlight ? highlightText(content, highlight, caseSensitive, highlightStyles) : content;
|
|
507
507
|
}
|
|
508
|
+
const NativeItemLink = tasty({
|
|
509
|
+
as: "a",
|
|
510
|
+
styles: {
|
|
511
|
+
display: "block",
|
|
512
|
+
color: "inherit",
|
|
513
|
+
textDecoration: "none",
|
|
514
|
+
outline: 0
|
|
515
|
+
}
|
|
516
|
+
});
|
|
508
517
|
const Item = (props, ref) => {
|
|
509
518
|
const $ = c(75);
|
|
510
|
-
const { children, size: t0, type: t1, theme: t2, mods, icon: iconProp, rightIcon: rightIconProp, prefix, suffix, description, descriptionPlacement, labelProps, descriptionProps, keyboardShortcutProps, styles, htmlType, isSelected, hotkeys, tooltip: t3, isDisabled, disabled: nativeDisabledProp, style, loadingSlot: t4, isLoading: t5, actions, autoHideActions: t6, preserveActionsSpace: t7, disableActionsFocus: t8, shape, defaultTooltipPlacement: t9, level: t10, highlight, highlightCaseSensitive: t11, highlightStyles, insideWrapper: t12, showActions: t13, skipActionsWidthTransition: t14, hiddenContent, isDynamicLabel: t15, labelRef: labelRefProp, tokens, ...rest } = props;
|
|
519
|
+
const { children, size: t0, type: t1, theme: t2, mods, icon: iconProp, rightIcon: rightIconProp, prefix, suffix, description, descriptionPlacement, labelProps, descriptionProps, keyboardShortcutProps, styles, htmlType, isSelected, hotkeys, tooltip: t3, isDisabled, disabled: nativeDisabledProp, style, loadingSlot: t4, isLoading: t5, actions, autoHideActions: t6, preserveActionsSpace: t7, disableActionsFocus: t8, shape, defaultTooltipPlacement: t9, level: t10, highlight, highlightCaseSensitive: t11, highlightStyles, insideWrapper: t12, showActions: t13, skipActionsWidthTransition: t14, hiddenContent, isDynamicLabel: t15, labelRef: labelRefProp, nativeLinkProps, nativeMenuItemProps, nativePrimarySlot: t16, nativeLabelReferenceId, nativeSlotRefs, onInlineFocus, onNativeLinkElement, onNativeElement, tokens, ...rest } = props;
|
|
511
520
|
const size = t0 === void 0 ? "medium" : t0;
|
|
512
521
|
const type = t1 === void 0 ? "item" : t1;
|
|
513
522
|
const theme = t2 === void 0 ? "default" : t2;
|
|
@@ -524,14 +533,15 @@ const Item = (props, ref) => {
|
|
|
524
533
|
const showActions = t13 === void 0 ? false : t13;
|
|
525
534
|
const skipActionsWidthTransition = t14 === void 0 ? false : t14;
|
|
526
535
|
const isDynamicLabel = t15 === void 0 ? false : t15;
|
|
536
|
+
const nativePrimarySlot = t16 === void 0 ? "label" : t16;
|
|
527
537
|
const hasLabel = !!(children || labelProps);
|
|
528
538
|
const finalDescriptionPlacement = descriptionPlacement ?? ((type === "card" || type === "header") && hasLabel ? "block" : "inline");
|
|
529
539
|
const finalShape = shape ?? (type === "card" ? "card" : "button");
|
|
530
540
|
const isDisabledProp = isDisabled ?? (nativeDisabledProp || void 0);
|
|
531
541
|
const finalIsDisabled = isDisabledProp === true || isLoading && isDisabledProp !== false;
|
|
532
|
-
let
|
|
542
|
+
let t17;
|
|
533
543
|
if ($[0] !== iconProp || $[1] !== isLoading || $[2] !== rightIconProp || $[3] !== theme || $[4] !== type) {
|
|
534
|
-
|
|
544
|
+
t17 = {
|
|
535
545
|
type,
|
|
536
546
|
theme,
|
|
537
547
|
icon: iconProp,
|
|
@@ -543,15 +553,15 @@ const Item = (props, ref) => {
|
|
|
543
553
|
$[2] = rightIconProp;
|
|
544
554
|
$[3] = theme;
|
|
545
555
|
$[4] = type;
|
|
546
|
-
$[5] =
|
|
547
|
-
} else
|
|
548
|
-
useItemPropWarnings(
|
|
556
|
+
$[5] = t17;
|
|
557
|
+
} else t17 = $[5];
|
|
558
|
+
useItemPropWarnings(t17);
|
|
549
559
|
const hasCheckmark = iconProp === "checkmark";
|
|
550
560
|
let baseMods;
|
|
551
561
|
let finalTokens;
|
|
552
562
|
let iconSlot;
|
|
553
563
|
let loadingTarget;
|
|
554
|
-
let
|
|
564
|
+
let t18;
|
|
555
565
|
if ($[6] !== finalIsDisabled || $[7] !== finalShape || $[8] !== hasCheckmark || $[9] !== iconProp || $[10] !== isLoading || $[11] !== isSelected || $[12] !== loadingSlot || $[13] !== mods || $[14] !== rightIconProp || $[15] !== size || $[16] !== theme || $[17] !== tokens || $[18] !== type) {
|
|
556
566
|
const { sizeMod, sizeToken } = resolveItemSize(size);
|
|
557
567
|
finalTokens = {
|
|
@@ -579,7 +589,7 @@ const Item = (props, ref) => {
|
|
|
579
589
|
content: /* @__PURE__ */ jsx(CheckIcon, {}),
|
|
580
590
|
key: "checkmark"
|
|
581
591
|
} : resolveIconSlot(resolvedIcon, loadingTarget === "icon");
|
|
582
|
-
|
|
592
|
+
t18 = resolveIconSlot(resolvedRightIcon, loadingTarget === "rightIcon");
|
|
583
593
|
$[6] = finalIsDisabled;
|
|
584
594
|
$[7] = finalShape;
|
|
585
595
|
$[8] = hasCheckmark;
|
|
@@ -597,34 +607,34 @@ const Item = (props, ref) => {
|
|
|
597
607
|
$[20] = finalTokens;
|
|
598
608
|
$[21] = iconSlot;
|
|
599
609
|
$[22] = loadingTarget;
|
|
600
|
-
$[23] =
|
|
610
|
+
$[23] = t18;
|
|
601
611
|
} else {
|
|
602
612
|
baseMods = $[19];
|
|
603
613
|
finalTokens = $[20];
|
|
604
614
|
iconSlot = $[21];
|
|
605
615
|
loadingTarget = $[22];
|
|
606
|
-
|
|
616
|
+
t18 = $[23];
|
|
607
617
|
}
|
|
608
|
-
const rightIconSlot =
|
|
609
|
-
let
|
|
618
|
+
const rightIconSlot = t18;
|
|
619
|
+
let t19;
|
|
610
620
|
if ($[24] !== description || $[25] !== descriptionProps) {
|
|
611
|
-
|
|
621
|
+
t19 = !!description || Object.keys(descriptionProps ?? {}).some(_temp);
|
|
612
622
|
$[24] = description;
|
|
613
623
|
$[25] = descriptionProps;
|
|
614
|
-
$[26] =
|
|
615
|
-
} else
|
|
616
|
-
const showDescription =
|
|
617
|
-
let
|
|
624
|
+
$[26] = t19;
|
|
625
|
+
} else t19 = $[26];
|
|
626
|
+
const showDescription = t19;
|
|
627
|
+
let t20;
|
|
618
628
|
if ($[27] !== loadingTarget || $[28] !== prefix) {
|
|
619
|
-
|
|
629
|
+
t20 = loadingTarget === "prefix" ? /* @__PURE__ */ jsx(LoadingIcon, {}) : prefix;
|
|
620
630
|
$[27] = loadingTarget;
|
|
621
631
|
$[28] = prefix;
|
|
622
|
-
$[29] =
|
|
623
|
-
} else
|
|
624
|
-
const finalPrefix =
|
|
625
|
-
let
|
|
632
|
+
$[29] = t20;
|
|
633
|
+
} else t20 = $[29];
|
|
634
|
+
const finalPrefix = t20;
|
|
635
|
+
let t21;
|
|
626
636
|
if ($[30] !== finalIsDisabled || $[31] !== hotkeys || $[32] !== keyboardShortcutProps || $[33] !== loadingTarget || $[34] !== suffix || $[35] !== theme || $[36] !== type) {
|
|
627
|
-
|
|
637
|
+
t21 = loadingTarget === "suffix" ? /* @__PURE__ */ jsx(LoadingIcon, {}) : suffix ?? (hotkeys ? /* @__PURE__ */ jsx(_HotKeys, {
|
|
628
638
|
...keyboardShortcutProps,
|
|
629
639
|
type: getHotkeysType(theme, type),
|
|
630
640
|
styles: {
|
|
@@ -640,42 +650,42 @@ const Item = (props, ref) => {
|
|
|
640
650
|
$[34] = suffix;
|
|
641
651
|
$[35] = theme;
|
|
642
652
|
$[36] = type;
|
|
643
|
-
$[37] =
|
|
644
|
-
} else
|
|
645
|
-
const finalSuffix =
|
|
653
|
+
$[37] = t21;
|
|
654
|
+
} else t21 = $[37];
|
|
655
|
+
const finalSuffix = t21;
|
|
646
656
|
useHotkeyClick(hotkeys, finalIsDisabled, ref);
|
|
647
|
-
const
|
|
648
|
-
const
|
|
649
|
-
const
|
|
650
|
-
const
|
|
651
|
-
const
|
|
652
|
-
const
|
|
653
|
-
const
|
|
654
|
-
const
|
|
655
|
-
const
|
|
656
|
-
const
|
|
657
|
-
const
|
|
658
|
-
let
|
|
659
|
-
if ($[38] !== baseMods || $[39] !== hasCheckmark || $[40] !== hasLabel || $[41] !== iconSlot.hasSlot || $[42] !== insideWrapper || $[43] !== rightIconSlot.hasSlot || $[44] !== showDescription || $[45] !==
|
|
660
|
-
|
|
657
|
+
const t22 = !!(iconSlot.hasSlot || finalPrefix);
|
|
658
|
+
const t23 = !!(rightIconSlot.hasSlot || finalSuffix || actions);
|
|
659
|
+
const t24 = !!finalPrefix;
|
|
660
|
+
const t25 = !!finalSuffix;
|
|
661
|
+
const t26 = !!actions;
|
|
662
|
+
const t27 = !!(actions && actions !== true);
|
|
663
|
+
const t28 = autoHideActions === true;
|
|
664
|
+
const t29 = preserveActionsSpace === true;
|
|
665
|
+
const t30 = showActions && insideWrapper;
|
|
666
|
+
const t31 = skipActionsWidthTransition && insideWrapper;
|
|
667
|
+
const t32 = showDescription ? finalDescriptionPlacement : "none";
|
|
668
|
+
let t33;
|
|
669
|
+
if ($[38] !== baseMods || $[39] !== hasCheckmark || $[40] !== hasLabel || $[41] !== iconSlot.hasSlot || $[42] !== insideWrapper || $[43] !== rightIconSlot.hasSlot || $[44] !== showDescription || $[45] !== t22 || $[46] !== t23 || $[47] !== t24 || $[48] !== t25 || $[49] !== t26 || $[50] !== t27 || $[51] !== t28 || $[52] !== t29 || $[53] !== t30 || $[54] !== t31 || $[55] !== t32) {
|
|
670
|
+
t33 = {
|
|
661
671
|
...baseMods,
|
|
662
672
|
"has-icon": iconSlot.hasSlot,
|
|
663
|
-
"has-start-content":
|
|
664
|
-
"has-end-content":
|
|
673
|
+
"has-start-content": t22,
|
|
674
|
+
"has-end-content": t23,
|
|
665
675
|
"has-right-icon": rightIconSlot.hasSlot,
|
|
666
676
|
"has-label": hasLabel,
|
|
667
|
-
"has-prefix":
|
|
668
|
-
"has-suffix":
|
|
677
|
+
"has-prefix": t24,
|
|
678
|
+
"has-suffix": t25,
|
|
669
679
|
"has-description": showDescription,
|
|
670
|
-
"has-actions":
|
|
671
|
-
"has-actions-content":
|
|
672
|
-
"auto-hide-actions":
|
|
673
|
-
"preserve-actions-space":
|
|
680
|
+
"has-actions": t26,
|
|
681
|
+
"has-actions-content": t27,
|
|
682
|
+
"auto-hide-actions": t28,
|
|
683
|
+
"preserve-actions-space": t29,
|
|
674
684
|
"inside-wrapper": insideWrapper,
|
|
675
|
-
"actions-shown":
|
|
676
|
-
"skip-actions-width-transition":
|
|
685
|
+
"actions-shown": t30,
|
|
686
|
+
"skip-actions-width-transition": t31,
|
|
677
687
|
checkmark: hasCheckmark,
|
|
678
|
-
description:
|
|
688
|
+
description: t32
|
|
679
689
|
};
|
|
680
690
|
$[38] = baseMods;
|
|
681
691
|
$[39] = hasCheckmark;
|
|
@@ -684,74 +694,75 @@ const Item = (props, ref) => {
|
|
|
684
694
|
$[42] = insideWrapper;
|
|
685
695
|
$[43] = rightIconSlot.hasSlot;
|
|
686
696
|
$[44] = showDescription;
|
|
687
|
-
$[45] =
|
|
688
|
-
$[46] =
|
|
689
|
-
$[47] =
|
|
690
|
-
$[48] =
|
|
691
|
-
$[49] =
|
|
692
|
-
$[50] =
|
|
693
|
-
$[51] =
|
|
694
|
-
$[52] =
|
|
695
|
-
$[53] =
|
|
696
|
-
$[54] =
|
|
697
|
-
$[55] =
|
|
698
|
-
$[56] =
|
|
699
|
-
} else
|
|
700
|
-
const finalMods =
|
|
701
|
-
const
|
|
702
|
-
const
|
|
703
|
-
let
|
|
704
|
-
if ($[57] !== children || $[58] !== description || $[59] !== labelProps || $[60] !== labelRefProp || $[61] !==
|
|
705
|
-
|
|
697
|
+
$[45] = t22;
|
|
698
|
+
$[46] = t23;
|
|
699
|
+
$[47] = t24;
|
|
700
|
+
$[48] = t25;
|
|
701
|
+
$[49] = t26;
|
|
702
|
+
$[50] = t27;
|
|
703
|
+
$[51] = t28;
|
|
704
|
+
$[52] = t29;
|
|
705
|
+
$[53] = t30;
|
|
706
|
+
$[54] = t31;
|
|
707
|
+
$[55] = t32;
|
|
708
|
+
$[56] = t33;
|
|
709
|
+
} else t33 = $[56];
|
|
710
|
+
const finalMods = t33;
|
|
711
|
+
const t34 = descriptionProps?.ref;
|
|
712
|
+
const t35 = isDynamicLabel || !!actions || insideWrapper;
|
|
713
|
+
let t36;
|
|
714
|
+
if ($[57] !== children || $[58] !== description || $[59] !== labelProps || $[60] !== labelRefProp || $[61] !== t34 || $[62] !== t35 || $[63] !== tooltip) {
|
|
715
|
+
t36 = {
|
|
706
716
|
tooltip,
|
|
707
717
|
children,
|
|
708
718
|
description,
|
|
709
719
|
labelProps,
|
|
710
720
|
labelRef: labelRefProp,
|
|
711
|
-
descriptionRef:
|
|
712
|
-
isDynamicLabel:
|
|
721
|
+
descriptionRef: t34,
|
|
722
|
+
isDynamicLabel: t35
|
|
713
723
|
};
|
|
714
724
|
$[57] = children;
|
|
715
725
|
$[58] = description;
|
|
716
726
|
$[59] = labelProps;
|
|
717
727
|
$[60] = labelRefProp;
|
|
718
|
-
$[61] =
|
|
719
|
-
$[62] =
|
|
728
|
+
$[61] = t34;
|
|
729
|
+
$[62] = t35;
|
|
720
730
|
$[63] = tooltip;
|
|
721
|
-
$[64] =
|
|
722
|
-
} else
|
|
723
|
-
const { labelProps: finalLabelProps, labelRef, descriptionRef, renderWithTooltip, isTooltipActive } = useAutoTooltip(
|
|
731
|
+
$[64] = t36;
|
|
732
|
+
} else t36 = $[64];
|
|
733
|
+
const { labelProps: finalLabelProps, labelRef, descriptionRef, renderWithTooltip, isTooltipActive } = useAutoTooltip(t36);
|
|
724
734
|
const { isNativelyDisabled, isInert, inertProps } = getDisabledElementProps({
|
|
725
735
|
isDisabled: finalIsDisabled,
|
|
726
736
|
keepEvents: isTooltipActive,
|
|
727
737
|
as: rest.as
|
|
728
738
|
});
|
|
729
|
-
let
|
|
739
|
+
let t37;
|
|
730
740
|
if ($[65] !== children || $[66] !== highlight || $[67] !== highlightCaseSensitive || $[68] !== highlightStyles) {
|
|
731
|
-
|
|
741
|
+
t37 = highlightContent(children, highlight, highlightCaseSensitive, highlightStyles);
|
|
732
742
|
$[65] = children;
|
|
733
743
|
$[66] = highlight;
|
|
734
744
|
$[67] = highlightCaseSensitive;
|
|
735
745
|
$[68] = highlightStyles;
|
|
736
|
-
$[69] =
|
|
737
|
-
} else
|
|
738
|
-
const processedChildren =
|
|
739
|
-
let
|
|
746
|
+
$[69] = t37;
|
|
747
|
+
} else t37 = $[69];
|
|
748
|
+
const processedChildren = t37;
|
|
749
|
+
let t38;
|
|
740
750
|
if ($[70] !== description || $[71] !== highlight || $[72] !== highlightCaseSensitive || $[73] !== highlightStyles) {
|
|
741
|
-
|
|
751
|
+
t38 = highlightContent(description, highlight, highlightCaseSensitive, highlightStyles);
|
|
742
752
|
$[70] = description;
|
|
743
753
|
$[71] = highlight;
|
|
744
754
|
$[72] = highlightCaseSensitive;
|
|
745
755
|
$[73] = highlightStyles;
|
|
746
|
-
$[74] =
|
|
747
|
-
} else
|
|
748
|
-
const processedDescription =
|
|
756
|
+
$[74] = t38;
|
|
757
|
+
} else t38 = $[74];
|
|
758
|
+
const processedDescription = t38;
|
|
749
759
|
const renderItemElement = (tooltipTriggerProps, tooltipRef) => {
|
|
750
|
-
const { pointerProps: elementTooltipProps, focusProps: tooltipFocusProps } = typeof hiddenContent === "function" ? splitTooltipTriggerProps(tooltipTriggerProps) : {
|
|
760
|
+
const { pointerProps: elementTooltipProps, focusProps: tooltipFocusProps } = typeof hiddenContent === "function" || nativeMenuItemProps ? splitTooltipTriggerProps(tooltipTriggerProps) : {
|
|
751
761
|
pointerProps: tooltipTriggerProps,
|
|
752
762
|
focusProps: void 0
|
|
753
763
|
};
|
|
754
764
|
const handleRef = (element) => {
|
|
765
|
+
onNativeElement?.(element);
|
|
755
766
|
if (typeof ref === "function") ref(element);
|
|
756
767
|
else if (ref) ref.current = element;
|
|
757
768
|
if (tooltipRef) tooltipRef.current = element;
|
|
@@ -767,28 +778,91 @@ const Item = (props, ref) => {
|
|
|
767
778
|
tokens: finalTokens,
|
|
768
779
|
type: htmlType,
|
|
769
780
|
...mergeProps(isInert ? omitActivationEventProps(rest) : rest, elementTooltipProps || {}, inertProps),
|
|
781
|
+
...nativeMenuItemProps ? {
|
|
782
|
+
"aria-disabled": void 0,
|
|
783
|
+
"aria-selected": void 0
|
|
784
|
+
} : null,
|
|
770
785
|
style,
|
|
771
786
|
children: [
|
|
772
787
|
typeof hiddenContent === "function" ? hiddenContent(tooltipFocusProps ?? {}, isTooltipActive) : hiddenContent,
|
|
773
|
-
iconSlot.hasSlot && /* @__PURE__ */ jsx(
|
|
788
|
+
iconSlot.hasSlot && (nativeLinkProps ? /* @__PURE__ */ jsx(NativeItemLink, {
|
|
774
789
|
"data-element": "Icon",
|
|
790
|
+
...nativeLinkProps,
|
|
791
|
+
...nativeMenuItemProps && nativePrimarySlot === "icon" ? mergeProps(nativeMenuItemProps, tooltipFocusProps) : null,
|
|
792
|
+
"aria-hidden": nativeMenuItemProps && nativePrimarySlot === "icon" ? void 0 : true,
|
|
793
|
+
"data-menu-native-link": "",
|
|
794
|
+
ref: nativeSlotRefs?.icon,
|
|
775
795
|
children: /* @__PURE__ */ jsx(IconSwitch, {
|
|
776
796
|
noWrapper: true,
|
|
777
797
|
contentKey: iconSlot.key,
|
|
778
798
|
children: iconSlot.content
|
|
779
799
|
})
|
|
780
|
-
}),
|
|
800
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
801
|
+
"data-element": "Icon",
|
|
802
|
+
children: /* @__PURE__ */ jsx(IconSwitch, {
|
|
803
|
+
noWrapper: true,
|
|
804
|
+
contentKey: iconSlot.key,
|
|
805
|
+
children: iconSlot.content
|
|
806
|
+
})
|
|
807
|
+
})),
|
|
781
808
|
finalPrefix && /* @__PURE__ */ jsx("div", {
|
|
782
809
|
"data-element": "Prefix",
|
|
783
810
|
children: finalPrefix
|
|
784
811
|
}),
|
|
785
|
-
children || labelProps ?
|
|
786
|
-
"
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
812
|
+
children || labelProps ? (() => {
|
|
813
|
+
const LabelTag = type === "header" || type === "card" ? `h${level}` : "div";
|
|
814
|
+
if (nativeLinkProps && LabelTag !== "div") return /* @__PURE__ */ jsx(LabelTag, {
|
|
815
|
+
"data-element": "Label",
|
|
816
|
+
...finalLabelProps,
|
|
817
|
+
id: nativeLabelReferenceId ?? finalLabelProps.id,
|
|
818
|
+
ref: (element_0) => {
|
|
819
|
+
labelRef(element_0);
|
|
820
|
+
},
|
|
821
|
+
children: /* @__PURE__ */ jsx(NativeItemLink, {
|
|
822
|
+
...nativeLinkProps,
|
|
823
|
+
...nativePrimarySlot === "label" ? mergeProps(nativeMenuItemProps, tooltipFocusProps) : null,
|
|
824
|
+
"aria-hidden": void 0,
|
|
825
|
+
display: "inline",
|
|
826
|
+
"data-menu-native-link": "",
|
|
827
|
+
ref: (element_1) => {
|
|
828
|
+
nativeSlotRefs?.label(element_1);
|
|
829
|
+
},
|
|
830
|
+
children: processedChildren
|
|
831
|
+
})
|
|
832
|
+
});
|
|
833
|
+
if (nativeLinkProps) return /* @__PURE__ */ jsx(NativeItemLink, {
|
|
834
|
+
"data-element": "Label",
|
|
835
|
+
...nativeLinkProps,
|
|
836
|
+
...finalLabelProps,
|
|
837
|
+
id: nativeLabelReferenceId ?? finalLabelProps.id,
|
|
838
|
+
...nativePrimarySlot === "label" ? mergeProps(nativeMenuItemProps, tooltipFocusProps) : null,
|
|
839
|
+
"data-menu-native-link": "",
|
|
840
|
+
ref: (element_2) => {
|
|
841
|
+
labelRef(element_2);
|
|
842
|
+
nativeSlotRefs?.label(element_2);
|
|
843
|
+
},
|
|
844
|
+
children: processedChildren
|
|
845
|
+
});
|
|
846
|
+
return /* @__PURE__ */ jsx(LabelTag, {
|
|
847
|
+
"data-element": "Label",
|
|
848
|
+
...finalLabelProps,
|
|
849
|
+
ref: labelRef,
|
|
850
|
+
children: processedChildren
|
|
851
|
+
});
|
|
852
|
+
})() : null,
|
|
853
|
+
showDescription ? nativeLinkProps ? /* @__PURE__ */ jsx(NativeItemLink, {
|
|
854
|
+
"data-element": "Description",
|
|
855
|
+
...nativeLinkProps,
|
|
856
|
+
...descriptionProps,
|
|
857
|
+
...nativePrimarySlot === "description" ? mergeProps(nativeMenuItemProps, tooltipFocusProps) : null,
|
|
858
|
+
"aria-hidden": nativePrimarySlot === "description" ? void 0 : nativeLinkProps["aria-hidden"],
|
|
859
|
+
"data-menu-native-link": "",
|
|
860
|
+
ref: (element_3) => {
|
|
861
|
+
descriptionRef(element_3);
|
|
862
|
+
nativeSlotRefs?.description(element_3);
|
|
863
|
+
},
|
|
864
|
+
children: processedDescription
|
|
865
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
792
866
|
"data-element": "Description",
|
|
793
867
|
...descriptionProps,
|
|
794
868
|
ref: descriptionRef,
|
|
@@ -808,11 +882,13 @@ const Item = (props, ref) => {
|
|
|
808
882
|
}),
|
|
809
883
|
actions && /* @__PURE__ */ jsx("div", {
|
|
810
884
|
"data-element": "Actions",
|
|
885
|
+
onFocus: onInlineFocus,
|
|
811
886
|
...actions !== true ? ACTIONS_EVENT_HANDLERS : null,
|
|
812
887
|
children: actions !== true ? /* @__PURE__ */ jsx(ItemActionProvider, {
|
|
813
888
|
type,
|
|
814
889
|
theme,
|
|
815
890
|
disableActionsFocus,
|
|
891
|
+
menuItemAction: !!nativeMenuItemProps,
|
|
816
892
|
isDisabled: finalIsDisabled,
|
|
817
893
|
children: actions
|
|
818
894
|
}) : null
|
|
@@ -826,10 +902,12 @@ const _Item = Object.assign(forwardRef(Item), {
|
|
|
826
902
|
Action: ItemAction,
|
|
827
903
|
Badge: ItemBadge
|
|
828
904
|
});
|
|
905
|
+
/** @private Keeps menu links in the existing label/description grid slots. */
|
|
906
|
+
const ItemWithNativeSlots = _Item;
|
|
829
907
|
function _temp(key) {
|
|
830
908
|
return key !== "id";
|
|
831
909
|
}
|
|
832
910
|
|
|
833
911
|
//#endregion
|
|
834
|
-
export { _Item };
|
|
912
|
+
export { ItemWithNativeSlots, _Item };
|
|
835
913
|
//# sourceMappingURL=Item.js.map
|