@cube-dev/ui-kit 0.0.0-canary-68b1fcb → 0.0.0-canary-dbc4e26
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/components/Action/Action.js +1 -1
- package/dist/components/ActiveZone/ActiveZone.js +1 -1
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Alert/use-alert.js +1 -1
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/AlertDialogApiProvider.js +1 -1
- package/dist/components/AlertDialog/AlertDialogZone.js +1 -1
- package/dist/components/Avatar/Avatar.js +1 -1
- package/dist/components/Badge/Badge.js +1 -1
- package/dist/components/Banner/Banner.d.ts +11 -2
- package/dist/components/Banner/Banner.js +50 -56
- package/dist/components/Banner/Banner.js.map +1 -1
- package/dist/components/Block/Block.js +1 -1
- package/dist/components/Button/AutoCollapseObserver.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonSplit/ButtonSplit.js +1 -1
- package/dist/components/ButtonSplit/ButtonSplitContext.js +1 -1
- package/dist/components/Calendar/Calendar.js +1 -1
- package/dist/components/Calendar/CalendarCell.js +1 -1
- package/dist/components/Calendar/CalendarGrid.js +1 -1
- package/dist/components/Calendar/CalendarHeader.js +1 -1
- package/dist/components/Calendar/CalendarPanel.js +1 -1
- package/dist/components/Calendar/PeriodCalendar.js +1 -1
- package/dist/components/Calendar/PeriodGrid.js +1 -1
- package/dist/components/Calendar/RangeCalendar.js +1 -1
- package/dist/components/Calendar/styled.js +1 -1
- package/dist/components/Card/Card.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Checkbox/CheckboxGroup.js +1 -1
- package/dist/components/Checkbox/CheckboxGroupContext.js +1 -1
- package/dist/components/CollectionItem/CollectionItem.d.ts +1 -1
- package/dist/components/CollectionItem/CollectionItem.js +1 -1
- package/dist/components/ColorInput/ColorInput.js +1 -1
- package/dist/components/ColorPanel/ColorPanel.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +1 -1
- package/dist/components/ColorSwatch/ColorSwatch.js +1 -1
- package/dist/components/ColorSwatchGroup/ColorSwatchGroup.js +1 -1
- package/dist/components/ComboBox/ComboBox.js +2 -2
- package/dist/components/ComboBox/combo-box-options.js +1 -1
- package/dist/components/CommandMenu/CommandMenu.js +1 -1
- package/dist/components/CommandMenu/styled.js +1 -1
- package/dist/components/CommandTextArea/CommandTextArea.js +1 -1
- package/dist/components/CommandTextArea/caret-position.js +1 -1
- package/dist/components/CommandTextArea/use-caret-anchor.js +1 -1
- package/dist/components/Content/Content.js +1 -1
- package/dist/components/CopyPasteBlock/CopyPasteBlock.js +1 -1
- package/dist/components/CopySnippet/CopySnippet.js +1 -1
- package/dist/components/CubeLogo/CubeLogo.js +1 -1
- package/dist/components/DataTable/DataTable.js +1 -1
- package/dist/components/DatePicker/CalendarPopover.js +1 -1
- package/dist/components/DatePicker/DateInput.js +1 -1
- package/dist/components/DatePicker/DateInputBase.js +1 -1
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/DatePicker/DatePickerButton.js +1 -1
- package/dist/components/DatePicker/DatePickerElement.js +1 -1
- package/dist/components/DatePicker/DatePickerInput.js +1 -1
- package/dist/components/DatePicker/DatePickerSegment.js +1 -1
- package/dist/components/DatePicker/DateRangePicker.js +1 -1
- package/dist/components/DatePicker/DateRangeSeparatedPicker.js +1 -1
- package/dist/components/DatePicker/MonthPicker.js +1 -1
- package/dist/components/DatePicker/PeriodPicker.js +1 -1
- package/dist/components/DatePicker/QuarterPicker.js +1 -1
- package/dist/components/DatePicker/TimeInput.js +1 -1
- package/dist/components/DatePicker/WeekPicker.js +1 -1
- package/dist/components/DatePicker/YearPicker.js +1 -1
- package/dist/components/DatePicker/parse-date.js +1 -1
- package/dist/components/DatePicker/period.js +1 -1
- package/dist/components/DatePicker/props.js +1 -1
- package/dist/components/DatePicker/utils.js +1 -1
- package/dist/components/Dialog/Dialog.js +2 -2
- package/dist/components/Dialog/DialogContainer.js +1 -1
- package/dist/components/Dialog/DialogContext.js +1 -1
- package/dist/components/Dialog/DialogForm.js +1 -1
- package/dist/components/Dialog/DialogTrigger.js +1 -1
- package/dist/components/Dialog/ModernDialogForm.js +1 -1
- package/dist/components/Dialog/default-button-text.js +1 -1
- package/dist/components/Dialog/use-content-overflow.js +1 -1
- package/dist/components/Dialog/use-dialog-container.js +1 -1
- package/dist/components/Dialog/use-dialog-open-sync.js +1 -1
- package/dist/components/Dialog/use-dismiss-confirmation.js +1 -1
- package/dist/components/Dialog/use-retained-dialog-focus.js +1 -1
- package/dist/components/Disclosure/Disclosure.js +1 -1
- package/dist/components/DisplayTransition/DisplayTransition.js +1 -1
- package/dist/components/Divider/Divider.js +1 -1
- package/dist/components/DraggableCollection/DraggableCollection.js +1 -1
- package/dist/components/FieldWrapper/FieldWrapper.js +1 -1
- package/dist/components/FieldWrapper/field-description.js +1 -1
- package/dist/components/FileInput/FileInput.js +1 -1
- package/dist/components/FilterListBox/FilterListBox.js +1 -1
- package/dist/components/FilterListBox/styled.js +1 -1
- package/dist/components/FilterPicker/FilterPicker.d.ts +2 -2
- package/dist/components/FilterPicker/FilterPicker.js +2 -2
- package/dist/components/FilterPicker/FilterPicker.js.map +1 -1
- package/dist/components/FilterPicker/FilterTree.js +1 -1
- package/dist/components/Flex/Flex.js +1 -1
- package/dist/components/Flow/Flow.js +1 -1
- package/dist/components/Footer/Footer.js +1 -1
- package/dist/components/Form/Field.js +1 -1
- package/dist/components/Form/Form.js +1 -1
- package/dist/components/Form/FormContext.js +1 -1
- package/dist/components/Form/FormElement.js +1 -1
- package/dist/components/Form/ModernFormRoot.js +1 -1
- package/dist/components/Form/ResetButton.js +1 -1
- package/dist/components/Form/SubmitButton.js +1 -1
- package/dist/components/Form/SubmitError.js +1 -1
- package/dist/components/Form/backend.js +1 -1
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Form/modern/ModernActions.js +1 -1
- package/dist/components/Form/modern/ModernControllerContext.js +1 -1
- package/dist/components/Form/modern/controller.js +1 -1
- package/dist/components/Form/modern/field-binding.js +1 -1
- package/dist/components/Form/modern/field.js +1 -1
- package/dist/components/Form/modern/react.js +1 -1
- package/dist/components/Form/modern/store.js +1 -1
- package/dist/components/Form/modern/validation.js +1 -1
- package/dist/components/Form/modern/values.js +1 -1
- package/dist/components/Form/reset-unbound-controls.js +1 -1
- package/dist/components/Form/use-field/use-field-binding.js +1 -1
- package/dist/components/Form/use-field/use-field-props.js +1 -1
- package/dist/components/Form/use-field/use-field.js +1 -1
- package/dist/components/Form/use-form.js +1 -1
- package/dist/components/Form/validation.js +1 -1
- package/dist/components/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/components/Grid/Grid.js +1 -1
- package/dist/components/GridProvider/GridProvider.js +1 -1
- package/dist/components/Header/Header.js +1 -1
- package/dist/components/HiddenInput/HiddenInput.js +1 -1
- package/dist/components/HotKeys/HotKeys.js +1 -1
- package/dist/components/IconSwitch/IconSwitch.js +1 -1
- package/dist/components/InfoBadge/InfoBadge.js +1 -1
- package/dist/components/InlineInput/InlineInput.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Item/Item.d.ts +40 -1
- package/dist/components/Item/Item.js +235 -156
- package/dist/components/Item/Item.js.map +1 -1
- package/dist/components/Item/ItemWithNativeLinks.js +1 -1
- package/dist/components/ItemAction/ItemAction.js +1 -1
- package/dist/components/ItemAction/ItemCloseAction.d.ts +16 -0
- package/dist/components/ItemAction/ItemCloseAction.js +79 -0
- package/dist/components/ItemAction/ItemCloseAction.js.map +1 -0
- package/dist/components/ItemActionsWrapper/ItemActionsWrapper.js +1 -1
- package/dist/components/ItemBadge/ItemBadge.js +1 -1
- package/dist/components/ItemButton/ItemButton.d.ts +2 -2
- package/dist/components/ItemButton/ItemButton.js +1 -1
- package/dist/components/ItemButton/ItemButton.js.map +1 -1
- package/dist/components/ItemCard/ItemCard.d.ts +1 -1
- package/dist/components/ItemCard/ItemCard.js +1 -1
- package/dist/components/ItemTable/ItemTable.js +1 -1
- package/dist/components/ItemTable/ItemTableBulkBar.js +2 -2
- package/dist/components/ItemTable/ItemTableDragPreview.js +1 -1
- package/dist/components/ItemTable/ItemTableFooter.js +1 -1
- package/dist/components/ItemTable/ItemTableToolbar.js +1 -1
- package/dist/components/ItemTable/item-table-sections.js +1 -1
- package/dist/components/ItemTable/use-item-table-column-widths.js +1 -1
- package/dist/components/ItemTable/use-item-table-drag-drop.js +1 -1
- package/dist/components/ItemTable/use-item-table-pagination.js +1 -1
- package/dist/components/ItemTable/use-item-table-selection.js +1 -1
- package/dist/components/ItemTable/use-item-table-sort.js +1 -1
- package/dist/components/ItemTable/use-item-table-tree-model.js +1 -1
- package/dist/components/Label/Label.js +1 -1
- package/dist/components/Layout/GridLayout.js +1 -1
- package/dist/components/Layout/Layout.js +1 -1
- package/dist/components/Layout/LayoutBlock.js +1 -1
- package/dist/components/Layout/LayoutCenter.js +1 -1
- package/dist/components/Layout/LayoutContainer.js +1 -1
- package/dist/components/Layout/LayoutContent.js +1 -1
- package/dist/components/Layout/LayoutContext.js +1 -1
- package/dist/components/Layout/LayoutFlex.js +1 -1
- package/dist/components/Layout/LayoutFooter.js +1 -1
- package/dist/components/Layout/LayoutGrid.js +1 -1
- package/dist/components/Layout/LayoutHeader.js +1 -1
- package/dist/components/Layout/LayoutPane.js +1 -1
- package/dist/components/Layout/LayoutPanel.js +1 -1
- package/dist/components/Layout/LayoutPanelHeader.js +2 -2
- package/dist/components/Layout/LayoutPanelTransition.js +1 -1
- package/dist/components/Layout/LayoutResizeHandle.js +1 -1
- package/dist/components/Layout/LayoutToolbar.js +1 -1
- package/dist/components/Layout/index.js +1 -1
- package/dist/components/Layout/use-tiny-scrollbar.js +1 -1
- package/dist/components/Layout/utils.js +1 -1
- package/dist/components/Link/Link.js +1 -1
- package/dist/components/ListBox/DraggableListBox.js +1 -1
- package/dist/components/ListBox/ListBox.js +1 -1
- package/dist/components/ListBox/empty-row.js +1 -1
- package/dist/components/ListBox/option-id.js +1 -1
- package/dist/components/ListBox/use-disabled-focus-reset.js +1 -1
- package/dist/components/ListBoxPopover/EmptyLabelStatus.js +1 -1
- package/dist/components/ListBoxPopover/ListBoxPopover.js +1 -1
- package/dist/components/ListBoxPopover/list-navigation.js +1 -1
- package/dist/components/ListBoxPopover/use-composite-focus.js +1 -1
- package/dist/components/ListBoxPopover/use-delayed-loading.js +1 -1
- package/dist/components/LoadingAnimation/LoadingAnimation.js +1 -1
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/MenuCollectionItem.d.ts +5 -0
- package/dist/components/Menu/MenuCollectionItem.js +1 -1
- package/dist/components/Menu/MenuCollectionItem.js.map +1 -1
- package/dist/components/Menu/MenuContext.js +1 -1
- package/dist/components/Menu/MenuItem.js +2 -2
- package/dist/components/Menu/MenuItem.js.map +1 -1
- package/dist/components/Menu/MenuSection.js +1 -1
- package/dist/components/Menu/MenuTrigger.js +1 -1
- package/dist/components/Menu/SubMenuTrigger.js +1 -1
- package/dist/components/Menu/SubmenuTriggerContext.js +1 -1
- package/dist/components/Menu/styled.js +1 -1
- package/dist/components/Menu/touch-context-menu.js +1 -1
- package/dist/components/Menu/use-anchored-menu.js +1 -1
- package/dist/components/Menu/use-context-menu.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/ModalContainmentProvider.js +1 -1
- package/dist/components/Modal/OpenTransitionContext.js +1 -1
- package/dist/components/Modal/Overlay.js +1 -1
- package/dist/components/Modal/Popover.js +1 -1
- package/dist/components/Modal/Tray.js +1 -1
- package/dist/components/Modal/Underlay.js +1 -1
- package/dist/components/NavTabs/NavTabs.d.ts +1 -1
- package/dist/components/NavTabs/NavTabs.js +1 -1
- package/dist/components/NoDataIcon/NoDataIcon.js +1 -1
- package/dist/components/Notifications/Notification.js +1 -1
- package/dist/components/Notifications/NotificationAction.js +1 -1
- package/dist/components/Notifications/NotificationCard.js +1 -1
- package/dist/components/Notifications/NotificationContext.js +1 -1
- package/dist/components/Notifications/NotificationItem.js +1 -1
- package/dist/components/Notifications/OverlayContainer.js +1 -1
- package/dist/components/Notifications/OverlayProvider.js +1 -1
- package/dist/components/Notifications/PersistentNotificationsList.js +1 -1
- package/dist/components/Notifications/dismissed-storage.js +1 -1
- package/dist/components/Notifications/format-relative-time.js +1 -1
- package/dist/components/Notifications/index.js +1 -1
- package/dist/components/Notifications/use-live-region.js +1 -1
- package/dist/components/Notifications/use-notification-state.js +1 -1
- package/dist/components/Notifications/use-notifications.js +1 -1
- package/dist/components/Notifications/use-overlay-timers.js +1 -1
- package/dist/components/Notifications/use-persistent-notifications.js +1 -1
- package/dist/components/Notifications/use-persistent-state.js +1 -1
- package/dist/components/Notifications/use-toast-state.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +1 -1
- package/dist/components/NumberInput/StepButton.js +1 -1
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Pagination/use-pagination.js +1 -1
- package/dist/components/Panel/Panel.js +1 -1
- package/dist/components/Paragraph/Paragraph.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.js +1 -1
- package/dist/components/Picker/Picker.d.ts +2 -2
- package/dist/components/Picker/Picker.js +2 -2
- package/dist/components/Picker/Picker.js.map +1 -1
- package/dist/components/Placeholder/Placeholder.js +1 -1
- package/dist/components/Portal/Portal.js +1 -1
- package/dist/components/Portal/PortalProvider.js +1 -1
- package/dist/components/Portal/use-portal.js +1 -1
- package/dist/components/Prefix/Prefix.js +1 -1
- package/dist/components/PrismCode/PrismCode.js +1 -1
- package/dist/components/PrismCode/prism-setup.js +1 -1
- package/dist/components/PrismDiffCode/PrismDiffCode.js +1 -1
- package/dist/components/RadioGroup/Radio.js +1 -1
- package/dist/components/RadioGroup/RadioContext.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/RadioGroup/joined-styles.js +1 -1
- package/dist/components/RenderCache/RenderCache.js +1 -1
- package/dist/components/ResizablePanel/ResizablePanel.js +1 -1
- package/dist/components/Result/Result.js +1 -1
- package/dist/components/Root/Root.js +1 -1
- package/dist/components/SearchComboBox/SearchComboBox.js +2 -2
- package/dist/components/SearchInput/SearchInput.js +2 -2
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Skeleton/Skeleton.js +1 -1
- package/dist/components/Slider/Gradation.js +1 -1
- package/dist/components/Slider/HueSlider.js +1 -1
- package/dist/components/Slider/RangeSlider.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Slider/SliderBase.js +1 -1
- package/dist/components/Slider/SliderThumb.js +1 -1
- package/dist/components/Slider/SliderTrack.js +1 -1
- package/dist/components/Slider/elements.js +1 -1
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/Space/Space.js +1 -1
- package/dist/components/Spin/Cube.js +1 -1
- package/dist/components/Spin/InternalSpinner.js +1 -1
- package/dist/components/Spin/Spin.js +1 -1
- package/dist/components/Spin/SpinsContainer.js +1 -1
- package/dist/components/StatsCard/StatsCard.js +1 -1
- package/dist/components/Suffix/Suffix.js +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/TableBase/ColumnResizer.js +1 -1
- package/dist/components/TableBase/RowCollection.js +1 -1
- package/dist/components/TableBase/TableHeaderCell.js +1 -1
- package/dist/components/TableBase/TableRow.js +1 -1
- package/dist/components/TableBase/TableRowLink.js +1 -1
- package/dist/components/TableBase/TableView.js +1 -1
- package/dist/components/TableBase/TreeGridTable.js +1 -1
- package/dist/components/TableBase/column-header.js +1 -1
- package/dist/components/TableBase/column-menu.js +1 -1
- package/dist/components/TableBase/column-styles.js +1 -1
- package/dist/components/TableBase/column-tint.js +1 -1
- package/dist/components/TableBase/row-menu.js +1 -1
- package/dist/components/TableBase/styled.js +1 -1
- package/dist/components/TableBase/table-body-sections.js +1 -1
- package/dist/components/TableBase/table-tree.js +1 -1
- package/dist/components/TableBase/types.js +1 -1
- package/dist/components/TableBase/use-cell-selection.js +0 -0
- package/dist/components/TableBase/use-column-menu.js +1 -1
- package/dist/components/TableBase/use-column-order.js +1 -1
- package/dist/components/TableBase/use-column-window.js +1 -1
- package/dist/components/TableBase/use-container-width.js +1 -1
- package/dist/components/TableBase/use-row-move-animation.js +1 -1
- package/dist/components/TableBase/use-scrollability.js +1 -1
- package/dist/components/TableBase/use-table-columns.js +1 -1
- package/dist/components/TableBase/use-table-search.js +1 -1
- package/dist/components/TableBase/use-table-selection.js +1 -1
- package/dist/components/TableBase/use-table-sort.js +1 -1
- package/dist/components/TableBase/use-table-sorts.js +1 -1
- package/dist/components/TableBase/use-table-storage.js +1 -1
- package/dist/components/TableBase/use-table-tooltip-refresh.js +1 -1
- package/dist/components/TableBase/use-table-tree-state.js +1 -1
- package/dist/components/Tabs/BoardDragActiveProvider.js +1 -1
- package/dist/components/Tabs/DraggableTabList.js +1 -1
- package/dist/components/Tabs/TabButton.js +2 -2
- package/dist/components/Tabs/TabDropIndicator.js +1 -1
- package/dist/components/Tabs/TabPanel.js +1 -1
- package/dist/components/Tabs/TabPicker.js +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/TabsAction.js +1 -1
- package/dist/components/Tabs/TabsContext.js +1 -1
- package/dist/components/Tabs/popover-placement.js +1 -1
- package/dist/components/Tabs/scroll-tab-into-strip.js +1 -1
- package/dist/components/Tabs/segmented-styles.js +1 -1
- package/dist/components/Tabs/styled.js +1 -1
- package/dist/components/Tabs/types.d.ts +2 -2
- package/dist/components/Tabs/types.js +1 -1
- package/dist/components/Tabs/types.js.map +1 -1
- package/dist/components/Tabs/use-tab-editing.js +1 -1
- package/dist/components/Tabs/use-tab-indicator.js +1 -1
- package/dist/components/Tag/Tag.js +2 -2
- package/dist/components/TagInput/TagInput.js +2 -2
- package/dist/components/TagInput/TagList.js +1 -1
- package/dist/components/TagInput/use-active-option.js +1 -1
- package/dist/components/TagInput/use-suffix-space.js +1 -1
- package/dist/components/TagInput/use-tag-error.js +1 -1
- package/dist/components/Text/Text.js +1 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/TextInput/TextInput.js +1 -1
- package/dist/components/TextInput/TextInputBase.js +1 -1
- package/dist/components/TextInput/displayed-validation.js +1 -1
- package/dist/components/TextInput/identifier-text-services.js +1 -1
- package/dist/components/TextInput/password-manager-ignore.js +1 -1
- package/dist/components/TextInput/use-auto-size-text-area.js +1 -1
- package/dist/components/TextInputMapper/TextInputMapper.js +2 -2
- package/dist/components/TextItem/TextItem.js +1 -1
- package/dist/components/Title/Title.js +1 -1
- package/dist/components/Toast/AnnouncedToastItem.js +1 -1
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Toast/ToastItem.js +2 -2
- package/dist/components/Toast/ToastItem.js.map +1 -1
- package/dist/components/Toast/use-progress-toast.js +1 -1
- package/dist/components/Toast/use-toast.js +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/components/ToggleGroup/ToggleGroupContext.js +1 -1
- package/dist/components/ToggleGroup/ToggleGroupItem.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Tooltip/TooltipContext.js +1 -1
- package/dist/components/Tooltip/TooltipProvider.js +1 -1
- package/dist/components/Tooltip/TooltipTrigger.js +1 -1
- package/dist/components/Tooltip/last-press.js +1 -1
- package/dist/components/Tooltip/split-trigger-props.js +1 -1
- package/dist/components/Tree/Tree.js +1 -1
- package/dist/components/Tree/TreeNode.js +1 -1
- package/dist/components/Tree/checked-keys.js +1 -1
- package/dist/components/Tree/row-id.js +1 -1
- package/dist/components/Tree/styled.js +1 -1
- package/dist/components/Tree/tree-index.js +1 -1
- package/dist/components/Tree/types.d.ts +1 -1
- package/dist/components/Tree/use-checkbox-tree.js +1 -1
- package/dist/components/Tree/use-load-data.js +1 -1
- package/dist/components/TriggerActions/TriggerActions.js +1 -1
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/ValidationIndicator/InvalidIcon.js +1 -1
- package/dist/components/ValidationIndicator/ValidIcon.js +1 -1
- package/dist/components/ValidationIndicator/ValidationIndicator.js +1 -1
- package/dist/eslint-plugin/defaults.generated.js +17 -1
- 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/harness/colors-deps.js +1 -1
- package/dist/hooks/use-action.js +1 -1
- package/dist/hooks/use-auto-tooltip.js +1 -1
- package/dist/hooks/use-buffered-value.js +1 -1
- package/dist/hooks/use-combined-refs.js +1 -1
- package/dist/hooks/use-controlled-focus-visible.js +1 -1
- package/dist/hooks/use-debounced-value.js +1 -1
- package/dist/hooks/use-deprecation-warning.js +1 -1
- package/dist/hooks/use-event.js +1 -1
- package/dist/hooks/use-id.js +1 -1
- package/dist/hooks/use-is-darwin.js +1 -1
- package/dist/hooks/use-is-first-render.js +1 -1
- package/dist/hooks/use-key-symbols.js +1 -1
- package/dist/hooks/use-layout-effect.js +1 -1
- package/dist/hooks/use-local-storage.js +1 -1
- package/dist/hooks/use-merge-styles.js +1 -1
- package/dist/hooks/use-open-key.js +1 -1
- package/dist/hooks/use-overlay-escape-guard.js +1 -1
- package/dist/hooks/use-overlay-position.js +1 -1
- package/dist/hooks/use-popover-sync.js +1 -1
- package/dist/hooks/use-qa-props.js +1 -1
- package/dist/hooks/use-scheme.js +1 -1
- package/dist/hooks/use-sync-ref.js +1 -1
- package/dist/hooks/use-timer/Timer.js +1 -1
- package/dist/hooks/use-timer/use-timer.js +1 -1
- package/dist/hooks/use-validation-props.js +1 -1
- package/dist/hooks/use-viewport-size.js +1 -1
- package/dist/hooks/use-warn.js +1 -1
- package/dist/i18n/I18nProvider.js +1 -1
- package/dist/i18n/add-uikit-locale.js +1 -1
- package/dist/i18n/create-formatter.js +1 -1
- package/dist/i18n/instance.js +1 -1
- package/dist/i18n/locales/de-DE/uikit.js +2 -1
- package/dist/i18n/locales/en-US/uikit.js +2 -1
- package/dist/i18n/locales/en-US/uikit.json.d.ts +5 -1
- package/dist/i18n/locales/es-ES/uikit.js +2 -1
- package/dist/i18n/locales/es-MX/uikit.js +2 -1
- package/dist/i18n/locales/fr-FR/uikit.js +2 -1
- package/dist/i18n/locales/it-IT/uikit.js +2 -1
- package/dist/i18n/locales/ja-JP/uikit.js +2 -1
- package/dist/i18n/locales/nb-NO/uikit.js +2 -1
- package/dist/i18n/locales/pt-BR/uikit.js +2 -1
- package/dist/i18n/locales/pt-PT/uikit.js +2 -1
- package/dist/i18n/locales/sv-SE/uikit.js +2 -1
- package/dist/i18n/locales/vi-VN/uikit.js +2 -1
- package/dist/i18n/locales.js +1 -1
- package/dist/i18n/namespace.js +1 -1
- package/dist/i18n/use-formatter.js +1 -1
- package/dist/i18n/use-i18n.js +1 -1
- package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
- package/dist/icons/AdjustmentsIcon.js +1 -1
- package/dist/icons/AiIcon.js +1 -1
- package/dist/icons/AreaChartIcon.js +1 -1
- package/dist/icons/ArrowNarrowDownIcon.js +1 -1
- package/dist/icons/ArrowNarrowUpIcon.js +1 -1
- package/dist/icons/BackwardIcon.js +1 -1
- package/dist/icons/BarChartIcon.js +1 -1
- package/dist/icons/BellFilledIcon.js +1 -1
- package/dist/icons/BellIcon.js +1 -1
- package/dist/icons/BooleanIcon.js +1 -1
- package/dist/icons/CalendarEditIcon.js +1 -1
- package/dist/icons/CalendarIcon.js +1 -1
- package/dist/icons/CaretDownIcon.js +1 -1
- package/dist/icons/CaretUpIcon.js +1 -1
- package/dist/icons/ChartAreaStackedIcon.js +1 -1
- package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarGroupedIcon.js +1 -1
- package/dist/icons/ChartBarHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarLineIcon.js +1 -1
- package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBoxPlot2Icon.js +1 -1
- package/dist/icons/ChartBoxPlotIcon.js +1 -1
- package/dist/icons/ChartBubbleIcon.js +1 -1
- package/dist/icons/ChartDonut2Icon.js +1 -1
- package/dist/icons/ChartFunnelIcon.js +1 -1
- package/dist/icons/ChartHeatmapIcon.js +1 -1
- package/dist/icons/ChartKPIIcon.js +1 -1
- package/dist/icons/ChartPie2Icon.js +1 -1
- package/dist/icons/ChartScatterIcon.js +1 -1
- package/dist/icons/CheckCircleFilledIcon.js +1 -1
- package/dist/icons/CheckCircleIcon.js +1 -1
- package/dist/icons/CheckIcon.js +1 -1
- package/dist/icons/CircleFilledIcon.js +1 -1
- package/dist/icons/ClearIcon.js +1 -1
- package/dist/icons/CloseCircleFilledIcon.js +1 -1
- package/dist/icons/CloseCircleIcon.js +1 -1
- package/dist/icons/CloseIcon.js +1 -1
- package/dist/icons/CodeIcon.js +1 -1
- package/dist/icons/ColumnTotalIcon.js +1 -1
- package/dist/icons/CopyIcon.js +1 -1
- package/dist/icons/CountIcon.js +1 -1
- package/dist/icons/CubeIcon.js +1 -1
- package/dist/icons/CubePauseIcon.js +1 -1
- package/dist/icons/CubePlayIcon.js +1 -1
- package/dist/icons/CurrencyDollarIcon.js +1 -1
- package/dist/icons/DangerIcon.js +1 -1
- package/dist/icons/DashboardIcon.js +1 -1
- package/dist/icons/DatabaseIcon.js +1 -1
- package/dist/icons/DecimalDecreaseIcon.js +1 -1
- package/dist/icons/DecimalIncreaseIcon.js +1 -1
- package/dist/icons/DirectionIcon.js +1 -1
- package/dist/icons/DonutIcon.js +1 -1
- package/dist/icons/DownIcon.js +1 -1
- package/dist/icons/EditIcon.js +1 -1
- package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
- package/dist/icons/ExclamationCircleIcon.js +1 -1
- package/dist/icons/ExclamationIcon.js +1 -1
- package/dist/icons/EyeIcon.js +1 -1
- package/dist/icons/EyeInvisibleIcon.js +1 -1
- package/dist/icons/FilterIcon.js +1 -1
- package/dist/icons/FolderFilledIcon.js +1 -1
- package/dist/icons/FolderIcon.js +1 -1
- package/dist/icons/FolderOpenFilledIcon.js +1 -1
- package/dist/icons/FolderOpenIcon.js +1 -1
- package/dist/icons/ForwardIcon.js +1 -1
- package/dist/icons/GripVerticalIcon.js +1 -1
- package/dist/icons/HierarchyIcon.js +1 -1
- package/dist/icons/HierarchyOpenIcon.js +1 -1
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/InfoCircleIcon.js +1 -1
- package/dist/icons/InfoIcon.js +1 -1
- package/dist/icons/KeyIcon.js +1 -1
- package/dist/icons/LeftIcon.js +1 -1
- package/dist/icons/LineChartIcon.js +1 -1
- package/dist/icons/LoadingIcon.js +1 -1
- package/dist/icons/LockFilledIcon.js +1 -1
- package/dist/icons/LockIcon.js +1 -1
- package/dist/icons/MoreIcon.js +1 -1
- package/dist/icons/NotAllowedIcon.js +1 -1
- package/dist/icons/Number123Icon.js +1 -1
- package/dist/icons/NumberIcon.js +1 -1
- package/dist/icons/PauseCircleFilledIcon.js +1 -1
- package/dist/icons/PauseCircleIcon.js +1 -1
- package/dist/icons/PauseIcon.js +1 -1
- package/dist/icons/PercentageIcon.js +1 -1
- package/dist/icons/PieChartIcon.js +1 -1
- package/dist/icons/PipetteIcon.js +1 -1
- package/dist/icons/PlayCircleIcon.js +1 -1
- package/dist/icons/PlayIcon.js +1 -1
- package/dist/icons/PlusIcon.js +1 -1
- package/dist/icons/ProgressBarIcon.js +1 -1
- package/dist/icons/ReloadIcon.js +1 -1
- package/dist/icons/ReportIcon.js +1 -1
- package/dist/icons/ReturnIcon.js +1 -1
- package/dist/icons/RightIcon.js +1 -1
- package/dist/icons/RowTotalsIcon.js +1 -1
- package/dist/icons/SchemeIcon.js +1 -1
- package/dist/icons/SearchIcon.js +1 -1
- package/dist/icons/SemanticQueryIcon.js +1 -1
- package/dist/icons/SettingsIcon.js +1 -1
- package/dist/icons/ShieldFilledIcon.js +1 -1
- package/dist/icons/ShieldIcon.js +1 -1
- package/dist/icons/SlashIcon.js +1 -1
- package/dist/icons/SparklesIcon.js +1 -1
- package/dist/icons/SqlIcon.js +1 -1
- package/dist/icons/StatsIcon.js +1 -1
- package/dist/icons/StopIcon.js +1 -1
- package/dist/icons/StringIcon.js +1 -1
- package/dist/icons/SubtotalsIcon.js +1 -1
- package/dist/icons/SwitchIcon.js +1 -1
- package/dist/icons/TableIcon.js +1 -1
- package/dist/icons/ThumbsDownIcon.js +1 -1
- package/dist/icons/ThumbsUpIcon.js +1 -1
- package/dist/icons/ThunderboltCrossedIcon.js +1 -1
- package/dist/icons/ThunderboltFilledIcon.js +1 -1
- package/dist/icons/ThunderboltIcon.js +1 -1
- package/dist/icons/TimeIcon.js +1 -1
- package/dist/icons/TrashIcon.js +1 -1
- package/dist/icons/UnlockIcon.js +1 -1
- package/dist/icons/UpIcon.js +1 -1
- package/dist/icons/UserGroupIcon.js +1 -1
- package/dist/icons/UserIcon.js +1 -1
- package/dist/icons/UserLockIcon.js +1 -1
- package/dist/icons/ViewIcon.js +1 -1
- package/dist/icons/WarningFilledIcon.js +1 -1
- package/dist/icons/WarningIcon.js +1 -1
- package/dist/icons/wrap-icon.js +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +4 -3
- package/dist/probe/canonicalize.js +1 -1
- package/dist/probe/css.js +1 -1
- package/dist/probe/index.js +1 -1
- package/dist/providers/ColorPopoverContext.js +1 -1
- package/dist/providers/EventBusProvider.js +1 -1
- package/dist/providers/ItemActionContext.js +1 -1
- package/dist/providers/Provider.js +1 -1
- package/dist/providers/SlotProvider.js +1 -1
- package/dist/providers/TrackingProvider.js +1 -1
- package/dist/providers/navigation-adapter.default.js +1 -1
- package/dist/providers/navigation-url.js +1 -1
- package/dist/providers/use-navigation.js +1 -1
- package/dist/themes/item-themes.js +1 -1
- package/dist/themes/themes.js +1 -1
- package/dist/tokens/all-tokens.js +1 -1
- package/dist/tokens/base.js +1 -1
- package/dist/tokens/color-seed.js +1 -1
- package/dist/tokens/color-theme.js +1 -1
- package/dist/tokens/colors.js +1 -1
- package/dist/tokens/layout.js +1 -1
- package/dist/tokens/lazy-styles.js +1 -1
- package/dist/tokens/legacy-color.js +1 -1
- package/dist/tokens/palette-config.js +1 -1
- package/dist/tokens/palette.js +1 -1
- package/dist/tokens/resolve.js +1 -1
- package/dist/tokens/shadows.js +1 -1
- package/dist/tokens/sizes.js +1 -1
- package/dist/tokens/spacing.js +1 -1
- package/dist/tokens/typography.js +1 -1
- package/dist/utils/ResizeSensor.js +1 -1
- package/dist/utils/actions-run.js +1 -1
- package/dist/utils/chain.js +1 -1
- package/dist/utils/color/channels.js +1 -1
- package/dist/utils/color/color.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/component-base-props.js +1 -1
- package/dist/utils/disabled-behavior.js +1 -1
- package/dist/utils/disabled-props.js +1 -1
- package/dist/utils/dotize.js +1 -1
- package/dist/utils/field-chrome.js +1 -1
- package/dist/utils/field-layout.js +1 -1
- package/dist/utils/forward-ref-with-generics.js +1 -1
- package/dist/utils/highlight-text.js +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/interactions.js +1 -1
- package/dist/utils/is-dev-env.js +1 -1
- package/dist/utils/is-text-only.js +1 -1
- package/dist/utils/layout-scale.js +1 -1
- package/dist/utils/legacy-tooltip.js +1 -1
- package/dist/utils/map-props.js +1 -1
- package/dist/utils/merge-props.js +1 -1
- package/dist/utils/modules.js +1 -1
- package/dist/utils/nullable-value.js +1 -1
- package/dist/utils/option-origin-press.js +1 -1
- package/dist/utils/overlay-key-propagation.js +1 -1
- package/dist/utils/pick-base-customization-props.js +1 -1
- package/dist/utils/popover-width.js +1 -1
- package/dist/utils/programmatic-focus.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/resolve-icon.js +1 -1
- package/dist/utils/resolve-validation-props.js +1 -1
- package/dist/utils/search-text-services.js +1 -1
- package/dist/utils/selection.js +1 -1
- package/dist/utils/shared-store.js +1 -1
- package/dist/utils/styles.js +1 -1
- package/dist/utils/tree.js +1 -1
- package/dist/utils/virtual-width.js +1 -1
- package/dist/utils/warnings.js +1 -1
- package/dist/utils/wrap-node-if-plain.js +1 -1
- package/dist/utils/wrap-with-field.js +1 -1
- package/dist/version.js +2 -2
- package/docs/Usage.md +2 -2
- package/docs/components/Banner.md +30 -3
- package/docs/components/CollectionItem.md +3 -0
- package/docs/components/CommandMenu.md +1 -1
- package/docs/components/FilterListBox.md +19 -2
- package/docs/components/Item.md +57 -2
- package/docs/components/ItemCard.md +3 -0
- package/docs/components/ListBox.md +19 -2
- package/docs/components/Menu.md +1 -1
- package/docs/components/Tabs.md +2 -2
- package/package.json +1 -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-dbc4e26 | Cube Dev Team */
|
|
2
2
|
import { mergeProps } from "../../utils/merge-props.js";
|
|
3
3
|
import { useAutoTooltip } from "../../hooks/use-auto-tooltip.js";
|
|
4
4
|
import { highlightText } from "../../utils/highlight-text.js";
|
|
@@ -14,6 +14,7 @@ import { ItemBadge } from "../ItemBadge/ItemBadge.js";
|
|
|
14
14
|
import { resolveIcon } from "../../utils/resolve-icon.js";
|
|
15
15
|
import { HotKeys as _HotKeys } from "../HotKeys/HotKeys.js";
|
|
16
16
|
import { IconSwitch } from "../IconSwitch/IconSwitch.js";
|
|
17
|
+
import { ItemCloseAction } from "../ItemAction/ItemCloseAction.js";
|
|
17
18
|
import { c } from "react/compiler-runtime";
|
|
18
19
|
import { CONTAINER_STYLES, mergeStyles, tasty, useGlobalStyles } from "@tenphi/tasty";
|
|
19
20
|
import { forwardRef, isValidElement } from "react";
|
|
@@ -42,6 +43,17 @@ const DEFAULT_ICON_STYLES = {
|
|
|
42
43
|
"checkmark & !selected & hovered": .4
|
|
43
44
|
}
|
|
44
45
|
};
|
|
46
|
+
const ACTIONS_ZONE_STYLES = {
|
|
47
|
+
$: ">",
|
|
48
|
+
display: "flex",
|
|
49
|
+
gap: "$item-gap",
|
|
50
|
+
placeItems: "center",
|
|
51
|
+
placeSelf: "stretch",
|
|
52
|
+
boxSizing: "border-box",
|
|
53
|
+
height: "min ($size - 2bw)",
|
|
54
|
+
"$action-size": "min(max((2x + 2bw), ($size - 1x - 2bw)), (3x - 2bw))",
|
|
55
|
+
"$side-padding": "(($size - $action-size - 2bw) / 2)"
|
|
56
|
+
};
|
|
45
57
|
const ACTIONS_EVENT_HANDLERS = {
|
|
46
58
|
onClick: (e) => e.stopPropagation(),
|
|
47
59
|
onPointerDown: (e) => e.stopPropagation(),
|
|
@@ -60,6 +72,7 @@ const ItemElement = tasty({
|
|
|
60
72
|
"@native-row": "menu-native-row",
|
|
61
73
|
"@interacted": "active | :hover | :focus | :focus-within | :has([data-pressed])",
|
|
62
74
|
"@actions-collapsed": "auto-hide-actions & !preserve-actions-space & !inside-wrapper & !@interacted",
|
|
75
|
+
"@actions-below": "has-actions-content & actions-below",
|
|
63
76
|
display: "inline-grid",
|
|
64
77
|
flow: "column dense",
|
|
65
78
|
gap: 0,
|
|
@@ -67,10 +80,10 @@ const ItemElement = tasty({
|
|
|
67
80
|
placeItems: "stretch",
|
|
68
81
|
placeContent: "stretch",
|
|
69
82
|
gridTemplate: {
|
|
70
|
-
"": "\"icon prefix label suffix rightIcon actions\" auto \"icon prefix label suffix rightIcon actions\" auto / max-content max-content 1sf max-content max-content max-content",
|
|
71
|
-
"description=inline": "\"icon prefix description suffix rightIcon actions\" auto / max-content max-content 1sf max-content max-content max-content",
|
|
72
|
-
"description=inline & has-label": "\"icon prefix label suffix rightIcon actions\" auto \"icon prefix description suffix rightIcon actions\" auto / max-content max-content 1sf max-content max-content max-content",
|
|
73
|
-
"description=block": "\"icon prefix label suffix rightIcon actions\" auto \"description description description description description description\" auto / max-content max-content 1sf max-content max-content max-content"
|
|
83
|
+
"": "\"icon prefix label suffix rightIcon actions pinned\" auto \"icon prefix label suffix rightIcon actions pinned\" auto / max-content max-content 1sf max-content max-content max-content max-content",
|
|
84
|
+
"description=inline": "\"icon prefix description suffix rightIcon actions pinned\" auto / max-content max-content 1sf max-content max-content max-content max-content",
|
|
85
|
+
"description=inline & has-label": "\"icon prefix label suffix rightIcon actions pinned\" auto \"icon prefix description suffix rightIcon actions pinned\" auto / max-content max-content 1sf max-content max-content max-content max-content",
|
|
86
|
+
"description=block": "\"icon prefix label suffix rightIcon actions pinned\" auto \"description description description description description description description\" auto / max-content max-content 1sf max-content max-content max-content max-content"
|
|
74
87
|
},
|
|
75
88
|
flexShrink: {
|
|
76
89
|
"": "initial",
|
|
@@ -160,8 +173,8 @@ const ItemElement = tasty({
|
|
|
160
173
|
"$label-padding-right": {
|
|
161
174
|
"": "$inline-padding",
|
|
162
175
|
"has-end-content": "0",
|
|
163
|
-
"@actions-collapsed & !has-suffix & !has-right-icon": "$inline-padding",
|
|
164
|
-
"inside-wrapper & !has-suffix & !has-right-icon & !preserve-actions-space & !actions-shown": "$inline-padding"
|
|
176
|
+
"@actions-collapsed & !has-suffix & !has-right-icon & !has-pinned-actions": "$inline-padding",
|
|
177
|
+
"inside-wrapper & !has-suffix & !has-right-icon & !has-pinned-actions & !preserve-actions-space & !actions-shown": "$inline-padding"
|
|
165
178
|
},
|
|
166
179
|
"$label-padding-bottom": {
|
|
167
180
|
"": "$block-padding",
|
|
@@ -214,7 +227,11 @@ const ItemElement = tasty({
|
|
|
214
227
|
width: "0 100%",
|
|
215
228
|
preset: "inherit",
|
|
216
229
|
transition: "padding",
|
|
217
|
-
padding: "$block-padding $label-padding-right $label-padding-bottom $label-padding-left"
|
|
230
|
+
padding: "$block-padding $label-padding-right $label-padding-bottom $label-padding-left",
|
|
231
|
+
"$label-padding-right": {
|
|
232
|
+
"": void 0,
|
|
233
|
+
"@actions-below & !has-suffix & !has-right-icon & !has-pinned-actions": "$inline-padding"
|
|
234
|
+
}
|
|
218
235
|
},
|
|
219
236
|
Description: {
|
|
220
237
|
$: ">",
|
|
@@ -242,7 +259,11 @@ const ItemElement = tasty({
|
|
|
242
259
|
textOverflow: "ellipsis",
|
|
243
260
|
width: "initial 100% 100%",
|
|
244
261
|
textAlign: "left",
|
|
245
|
-
padding: "0 $description-padding-right $description-padding-bottom $description-padding-left"
|
|
262
|
+
padding: "0 $description-padding-right $description-padding-bottom $description-padding-left",
|
|
263
|
+
"$description-padding-right": {
|
|
264
|
+
"": void 0,
|
|
265
|
+
"@actions-below & !has-suffix & !has-right-icon & !has-pinned-actions": "$inline-padding"
|
|
266
|
+
}
|
|
246
267
|
},
|
|
247
268
|
Prefix: {
|
|
248
269
|
$: ">",
|
|
@@ -285,9 +306,7 @@ const ItemElement = tasty({
|
|
|
285
306
|
},
|
|
286
307
|
transition: "padding"
|
|
287
308
|
},
|
|
288
|
-
Actions: {
|
|
289
|
-
$: ">",
|
|
290
|
-
gridArea: "actions",
|
|
309
|
+
Actions: mergeStyles(ACTIONS_ZONE_STYLES, {
|
|
291
310
|
zIndex: {
|
|
292
311
|
"": void 0,
|
|
293
312
|
"@native-row": 1
|
|
@@ -296,22 +315,34 @@ const ItemElement = tasty({
|
|
|
296
315
|
"": void 0,
|
|
297
316
|
"@native-row": "none"
|
|
298
317
|
},
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
318
|
+
gridArea: {
|
|
319
|
+
_: "actions",
|
|
320
|
+
"@actions-below": "3 / 3 / auto / -1",
|
|
321
|
+
"@actions-below & description=block": "3 / 1 / auto / -1"
|
|
322
|
+
},
|
|
323
|
+
placeContent: {
|
|
324
|
+
_: "end",
|
|
325
|
+
"@actions-below": "center start"
|
|
326
|
+
},
|
|
327
|
+
flow: {
|
|
328
|
+
"": void 0,
|
|
329
|
+
"@actions-below": "row wrap"
|
|
330
|
+
},
|
|
331
|
+
height: {
|
|
332
|
+
_: "min ($size - 2bw)",
|
|
333
|
+
"@actions-below": "min 0"
|
|
334
|
+
},
|
|
304
335
|
padding: {
|
|
305
|
-
|
|
336
|
+
_: "0 $side-padding",
|
|
306
337
|
"inside-wrapper": 0,
|
|
307
|
-
"@actions-collapsed": 0
|
|
338
|
+
"@actions-collapsed": 0,
|
|
339
|
+
"@actions-below": "0 $inline-padding (2 * $block-padding) $label-padding-left",
|
|
340
|
+
"@actions-below & description=block": "0 $inline-padding (2 * $block-padding) $description-padding-left"
|
|
308
341
|
},
|
|
309
342
|
overflow: {
|
|
310
343
|
"": void 0,
|
|
311
344
|
"@actions-collapsed": "clip"
|
|
312
345
|
},
|
|
313
|
-
boxSizing: "border-box",
|
|
314
|
-
height: "min ($size - 2bw)",
|
|
315
346
|
width: {
|
|
316
347
|
"": "fixed ($actions-width, 0px)",
|
|
317
348
|
"has-actions-content & !auto-hide-actions": "max calc-size(max-content, size)",
|
|
@@ -328,10 +359,26 @@ const ItemElement = tasty({
|
|
|
328
359
|
"": "width $transition ease-out, opacity $transition ease-out, padding $transition ease-out",
|
|
329
360
|
"skip-actions-width-transition": "opacity $transition ease-out, padding $transition ease-out"
|
|
330
361
|
},
|
|
331
|
-
interpolateSize: "allow-keywords"
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
362
|
+
interpolateSize: "allow-keywords"
|
|
363
|
+
}),
|
|
364
|
+
PinnedActions: mergeStyles(ACTIONS_ZONE_STYLES, {
|
|
365
|
+
gridArea: "pinned",
|
|
366
|
+
placeContent: "end",
|
|
367
|
+
placeSelf: {
|
|
368
|
+
_: "stretch",
|
|
369
|
+
"@actions-below": "start stretch"
|
|
370
|
+
},
|
|
371
|
+
height: {
|
|
372
|
+
_: "min ($size - 2bw)",
|
|
373
|
+
"@actions-below": "min 0"
|
|
374
|
+
},
|
|
375
|
+
padding: {
|
|
376
|
+
_: "0 $side-padding",
|
|
377
|
+
"has-actions-content": "$side-padding right",
|
|
378
|
+
"@actions-collapsed": "0 $side-padding",
|
|
379
|
+
"@actions-below": "$block-padding top, $side-padding left right"
|
|
380
|
+
}
|
|
381
|
+
})
|
|
335
382
|
},
|
|
336
383
|
variants: {
|
|
337
384
|
...ITEM_VARIANTS,
|
|
@@ -581,33 +628,34 @@ const DISABLED_HOTKEYS_STYLES = {
|
|
|
581
628
|
opacity: .5
|
|
582
629
|
};
|
|
583
630
|
const Item = (props, ref) => {
|
|
584
|
-
const $ = c(
|
|
585
|
-
const { children, size: t0, type: t1, theme: t2, mods, icon: iconProp, rightIcon: rightIconProp, prefix, suffix, description, descriptionPlacement, wrapDescription, labelProps, descriptionProps, keyboardShortcutProps, styles, htmlType, isSelected, hotkeys, tooltip: t3, isDisabled, disabled: nativeDisabledProp, style, loadingSlot: t4, isLoading: t5, actions,
|
|
631
|
+
const $ = c(83);
|
|
632
|
+
const { children, size: t0, type: t1, theme: t2, mods, icon: iconProp, rightIcon: rightIconProp, prefix, suffix, description, descriptionPlacement, wrapDescription, labelProps, descriptionProps, keyboardShortcutProps, styles, htmlType, isSelected, hotkeys, tooltip: t3, isDisabled, disabled: nativeDisabledProp, style, loadingSlot: t4, isLoading: t5, actions, actionsPlacement: t6, actionsBelowState, pinnedActions, autoHideActions: t7, preserveActionsSpace: t8, disableActionsFocus: t9, shape, defaultTooltipPlacement: t10, keepFocusWhenDisabled: t11, level: t12, highlight, highlightCaseSensitive: t13, highlightStyles, insideWrapper: t14, showActions: t15, skipActionsWidthTransition: t16, hiddenContent, labelRef: labelRefProp, nativeLinkProps, nativeMenuItemProps, nativeRowRef, nativeLabelReferenceId, onInlineFocus, onNativeLinkElement, onNativeElement, tokens, ...rest } = props;
|
|
586
633
|
const size = t0 === void 0 ? "medium" : t0;
|
|
587
634
|
const type = t1 === void 0 ? "item" : t1;
|
|
588
635
|
const theme = t2 === void 0 ? "default" : t2;
|
|
589
636
|
const tooltip = t3 === void 0 ? true : t3;
|
|
590
637
|
const loadingSlot = t4 === void 0 ? "auto" : t4;
|
|
591
638
|
const isLoading = t5 === void 0 ? false : t5;
|
|
592
|
-
const
|
|
593
|
-
const
|
|
594
|
-
const
|
|
595
|
-
const
|
|
596
|
-
const
|
|
597
|
-
const
|
|
598
|
-
const
|
|
599
|
-
const
|
|
600
|
-
const
|
|
601
|
-
const
|
|
639
|
+
const actionsPlacement = t6 === void 0 ? "end" : t6;
|
|
640
|
+
const autoHideActions = t7 === void 0 ? false : t7;
|
|
641
|
+
const preserveActionsSpace = t8 === void 0 ? false : t8;
|
|
642
|
+
const disableActionsFocus = t9 === void 0 ? false : t9;
|
|
643
|
+
const defaultTooltipPlacement = t10 === void 0 ? "top" : t10;
|
|
644
|
+
const keepFocusWhenDisabled = t11 === void 0 ? false : t11;
|
|
645
|
+
const level = t12 === void 0 ? 3 : t12;
|
|
646
|
+
const highlightCaseSensitive = t13 === void 0 ? false : t13;
|
|
647
|
+
const insideWrapper = t14 === void 0 ? false : t14;
|
|
648
|
+
const showActions = t15 === void 0 ? false : t15;
|
|
649
|
+
const skipActionsWidthTransition = t16 === void 0 ? false : t16;
|
|
602
650
|
useGlobalStyles(NATIVE_ROW_CONTROL_SELECTOR, nativeMenuItemProps ? NATIVE_ROW_CONTROL_STYLES : void 0);
|
|
603
651
|
const hasLabel = !!(children || labelProps);
|
|
604
652
|
const finalDescriptionPlacement = descriptionPlacement ?? ((type === "card" || type === "header") && hasLabel ? "block" : "inline");
|
|
605
653
|
const finalShape = shape ?? (type === "card" ? "card" : "button");
|
|
606
654
|
const isDisabledProp = isDisabled ?? (nativeDisabledProp || void 0);
|
|
607
655
|
const finalIsDisabled = isDisabledProp === true || isLoading && isDisabledProp !== false;
|
|
608
|
-
let
|
|
656
|
+
let t17;
|
|
609
657
|
if ($[0] !== iconProp || $[1] !== isLoading || $[2] !== rightIconProp || $[3] !== theme || $[4] !== type) {
|
|
610
|
-
|
|
658
|
+
t17 = {
|
|
611
659
|
type,
|
|
612
660
|
theme,
|
|
613
661
|
icon: iconProp,
|
|
@@ -619,15 +667,15 @@ const Item = (props, ref) => {
|
|
|
619
667
|
$[2] = rightIconProp;
|
|
620
668
|
$[3] = theme;
|
|
621
669
|
$[4] = type;
|
|
622
|
-
$[5] =
|
|
623
|
-
} else
|
|
624
|
-
useItemPropWarnings(
|
|
670
|
+
$[5] = t17;
|
|
671
|
+
} else t17 = $[5];
|
|
672
|
+
useItemPropWarnings(t17);
|
|
625
673
|
const hasCheckmark = iconProp === "checkmark";
|
|
626
674
|
let baseMods;
|
|
627
675
|
let finalTokens;
|
|
628
676
|
let iconSlot;
|
|
629
677
|
let loadingTarget;
|
|
630
|
-
let
|
|
678
|
+
let t18;
|
|
631
679
|
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) {
|
|
632
680
|
const { sizeMod, sizeToken } = resolveItemSize(size);
|
|
633
681
|
finalTokens = {
|
|
@@ -655,7 +703,7 @@ const Item = (props, ref) => {
|
|
|
655
703
|
content: /* @__PURE__ */ jsx(CheckIcon, {}),
|
|
656
704
|
key: "checkmark"
|
|
657
705
|
} : resolveIconSlot(resolvedIcon, loadingTarget === "icon");
|
|
658
|
-
|
|
706
|
+
t18 = resolveIconSlot(resolvedRightIcon, loadingTarget === "rightIcon");
|
|
659
707
|
$[6] = finalIsDisabled;
|
|
660
708
|
$[7] = finalShape;
|
|
661
709
|
$[8] = hasCheckmark;
|
|
@@ -673,34 +721,34 @@ const Item = (props, ref) => {
|
|
|
673
721
|
$[20] = finalTokens;
|
|
674
722
|
$[21] = iconSlot;
|
|
675
723
|
$[22] = loadingTarget;
|
|
676
|
-
$[23] =
|
|
724
|
+
$[23] = t18;
|
|
677
725
|
} else {
|
|
678
726
|
baseMods = $[19];
|
|
679
727
|
finalTokens = $[20];
|
|
680
728
|
iconSlot = $[21];
|
|
681
729
|
loadingTarget = $[22];
|
|
682
|
-
|
|
730
|
+
t18 = $[23];
|
|
683
731
|
}
|
|
684
|
-
const rightIconSlot =
|
|
685
|
-
let
|
|
732
|
+
const rightIconSlot = t18;
|
|
733
|
+
let t19;
|
|
686
734
|
if ($[24] !== description || $[25] !== descriptionProps) {
|
|
687
|
-
|
|
735
|
+
t19 = !!description || Object.keys(descriptionProps ?? {}).some(_temp);
|
|
688
736
|
$[24] = description;
|
|
689
737
|
$[25] = descriptionProps;
|
|
690
|
-
$[26] =
|
|
691
|
-
} else
|
|
692
|
-
const showDescription =
|
|
693
|
-
let
|
|
738
|
+
$[26] = t19;
|
|
739
|
+
} else t19 = $[26];
|
|
740
|
+
const showDescription = t19;
|
|
741
|
+
let t20;
|
|
694
742
|
if ($[27] !== loadingTarget || $[28] !== prefix) {
|
|
695
|
-
|
|
743
|
+
t20 = loadingTarget === "prefix" ? /* @__PURE__ */ jsx(LoadingIcon, {}) : prefix;
|
|
696
744
|
$[27] = loadingTarget;
|
|
697
745
|
$[28] = prefix;
|
|
698
|
-
$[29] =
|
|
699
|
-
} else
|
|
700
|
-
const finalPrefix =
|
|
701
|
-
let
|
|
746
|
+
$[29] = t20;
|
|
747
|
+
} else t20 = $[29];
|
|
748
|
+
const finalPrefix = t20;
|
|
749
|
+
let t21;
|
|
702
750
|
if ($[30] !== finalIsDisabled || $[31] !== hotkeys || $[32] !== keyboardShortcutProps || $[33] !== loadingTarget || $[34] !== suffix || $[35] !== theme || $[36] !== type) {
|
|
703
|
-
|
|
751
|
+
t21 = loadingTarget === "suffix" ? /* @__PURE__ */ jsx(LoadingIcon, {}) : suffix ?? (hotkeys ? /* @__PURE__ */ jsx(_HotKeys, {
|
|
704
752
|
...keyboardShortcutProps,
|
|
705
753
|
type: getHotkeysType(theme, type),
|
|
706
754
|
styles: finalIsDisabled ? DISABLED_HOTKEYS_STYLES : HOTKEYS_STYLES,
|
|
@@ -713,123 +761,142 @@ const Item = (props, ref) => {
|
|
|
713
761
|
$[34] = suffix;
|
|
714
762
|
$[35] = theme;
|
|
715
763
|
$[36] = type;
|
|
716
|
-
$[37] =
|
|
717
|
-
} else
|
|
718
|
-
const finalSuffix =
|
|
764
|
+
$[37] = t21;
|
|
765
|
+
} else t21 = $[37];
|
|
766
|
+
const finalSuffix = t21;
|
|
719
767
|
useHotkeyClick(hotkeys, finalIsDisabled, ref);
|
|
720
|
-
const
|
|
721
|
-
const
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
const
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
768
|
+
const canMoveActions = !insideWrapper && !autoHideActions;
|
|
769
|
+
const actionsBelowCondition = canMoveActions ? actionsBelowState === true ? "@mobile" : actionsBelowState || void 0 : void 0;
|
|
770
|
+
let t22;
|
|
771
|
+
if ($[38] !== actionsBelowCondition || $[39] !== styles) {
|
|
772
|
+
t22 = actionsBelowCondition ? {
|
|
773
|
+
"@actions-below": `has-actions-content & (actions-below | (${actionsBelowCondition}))`,
|
|
774
|
+
...styles
|
|
775
|
+
} : styles;
|
|
776
|
+
$[38] = actionsBelowCondition;
|
|
777
|
+
$[39] = styles;
|
|
778
|
+
$[40] = t22;
|
|
779
|
+
} else t22 = $[40];
|
|
780
|
+
const finalStyles = t22;
|
|
781
|
+
const t23 = !!(iconSlot.hasSlot || finalPrefix);
|
|
782
|
+
const t24 = !!(rightIconSlot.hasSlot || finalSuffix || actions || pinnedActions);
|
|
783
|
+
const t25 = !!finalPrefix;
|
|
784
|
+
const t26 = !!finalSuffix;
|
|
785
|
+
const t27 = showDescription && (wrapDescription ?? (type === "card" || type === "header"));
|
|
786
|
+
const t28 = !!actions;
|
|
787
|
+
const t29 = !!(actions && actions !== true);
|
|
788
|
+
const t30 = !!pinnedActions;
|
|
789
|
+
const t31 = canMoveActions && actionsPlacement === "below";
|
|
790
|
+
const t32 = !!nativeMenuItemProps;
|
|
791
|
+
const t33 = autoHideActions === true;
|
|
792
|
+
const t34 = preserveActionsSpace === true;
|
|
793
|
+
const t35 = showActions && insideWrapper;
|
|
794
|
+
const t36 = skipActionsWidthTransition && insideWrapper;
|
|
795
|
+
const t37 = showDescription ? finalDescriptionPlacement : "none";
|
|
796
|
+
let t38;
|
|
797
|
+
if ($[41] !== baseMods || $[42] !== hasCheckmark || $[43] !== hasLabel || $[44] !== iconSlot.hasSlot || $[45] !== insideWrapper || $[46] !== rightIconSlot.hasSlot || $[47] !== showDescription || $[48] !== t23 || $[49] !== t24 || $[50] !== t25 || $[51] !== t26 || $[52] !== t27 || $[53] !== t28 || $[54] !== t29 || $[55] !== t30 || $[56] !== t31 || $[57] !== t32 || $[58] !== t33 || $[59] !== t34 || $[60] !== t35 || $[61] !== t36 || $[62] !== t37) {
|
|
798
|
+
t38 = {
|
|
736
799
|
...baseMods,
|
|
737
800
|
"has-icon": iconSlot.hasSlot,
|
|
738
|
-
"has-start-content":
|
|
739
|
-
"has-end-content":
|
|
801
|
+
"has-start-content": t23,
|
|
802
|
+
"has-end-content": t24,
|
|
740
803
|
"has-right-icon": rightIconSlot.hasSlot,
|
|
741
804
|
"has-label": hasLabel,
|
|
742
|
-
"has-prefix":
|
|
743
|
-
"has-suffix":
|
|
805
|
+
"has-prefix": t25,
|
|
806
|
+
"has-suffix": t26,
|
|
744
807
|
"has-description": showDescription,
|
|
745
|
-
"wrap-description":
|
|
746
|
-
"has-actions":
|
|
747
|
-
"has-actions-content":
|
|
748
|
-
"
|
|
749
|
-
"
|
|
750
|
-
"
|
|
808
|
+
"wrap-description": t27,
|
|
809
|
+
"has-actions": t28,
|
|
810
|
+
"has-actions-content": t29,
|
|
811
|
+
"has-pinned-actions": t30,
|
|
812
|
+
"actions-below": t31,
|
|
813
|
+
"menu-native-row": t32,
|
|
814
|
+
"auto-hide-actions": t33,
|
|
815
|
+
"preserve-actions-space": t34,
|
|
751
816
|
"inside-wrapper": insideWrapper,
|
|
752
|
-
"actions-shown":
|
|
753
|
-
"skip-actions-width-transition":
|
|
817
|
+
"actions-shown": t35,
|
|
818
|
+
"skip-actions-width-transition": t36,
|
|
754
819
|
checkmark: hasCheckmark,
|
|
755
|
-
description:
|
|
820
|
+
description: t37
|
|
756
821
|
};
|
|
757
|
-
$[
|
|
758
|
-
$[
|
|
759
|
-
$[
|
|
760
|
-
$[
|
|
761
|
-
$[
|
|
762
|
-
$[
|
|
763
|
-
$[
|
|
764
|
-
$[
|
|
765
|
-
$[
|
|
766
|
-
$[
|
|
767
|
-
$[
|
|
768
|
-
$[
|
|
769
|
-
$[
|
|
770
|
-
$[
|
|
771
|
-
$[
|
|
772
|
-
$[
|
|
773
|
-
$[
|
|
774
|
-
$[
|
|
775
|
-
$[
|
|
776
|
-
$[
|
|
777
|
-
$[
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
822
|
+
$[41] = baseMods;
|
|
823
|
+
$[42] = hasCheckmark;
|
|
824
|
+
$[43] = hasLabel;
|
|
825
|
+
$[44] = iconSlot.hasSlot;
|
|
826
|
+
$[45] = insideWrapper;
|
|
827
|
+
$[46] = rightIconSlot.hasSlot;
|
|
828
|
+
$[47] = showDescription;
|
|
829
|
+
$[48] = t23;
|
|
830
|
+
$[49] = t24;
|
|
831
|
+
$[50] = t25;
|
|
832
|
+
$[51] = t26;
|
|
833
|
+
$[52] = t27;
|
|
834
|
+
$[53] = t28;
|
|
835
|
+
$[54] = t29;
|
|
836
|
+
$[55] = t30;
|
|
837
|
+
$[56] = t31;
|
|
838
|
+
$[57] = t32;
|
|
839
|
+
$[58] = t33;
|
|
840
|
+
$[59] = t34;
|
|
841
|
+
$[60] = t35;
|
|
842
|
+
$[61] = t36;
|
|
843
|
+
$[62] = t37;
|
|
844
|
+
$[63] = t38;
|
|
845
|
+
} else t38 = $[63];
|
|
846
|
+
const finalMods = t38;
|
|
847
|
+
const t39 = finalMods["menu-native-row"];
|
|
848
|
+
let t40;
|
|
849
|
+
if ($[64] !== t39) {
|
|
850
|
+
t40 = { "row-native-cell": t39 };
|
|
851
|
+
$[64] = t39;
|
|
852
|
+
$[65] = t40;
|
|
853
|
+
} else t40 = $[65];
|
|
854
|
+
const nativeCellMods = t40;
|
|
855
|
+
const t41 = descriptionProps?.ref;
|
|
856
|
+
let t42;
|
|
857
|
+
if ($[66] !== children || $[67] !== description || $[68] !== labelProps || $[69] !== labelRefProp || $[70] !== t41 || $[71] !== tooltip) {
|
|
858
|
+
t42 = {
|
|
792
859
|
tooltip,
|
|
793
860
|
children,
|
|
794
861
|
description,
|
|
795
862
|
labelProps,
|
|
796
863
|
labelRef: labelRefProp,
|
|
797
|
-
descriptionRef:
|
|
864
|
+
descriptionRef: t41
|
|
798
865
|
};
|
|
799
|
-
$[
|
|
800
|
-
$[
|
|
801
|
-
$[
|
|
802
|
-
$[
|
|
803
|
-
$[
|
|
804
|
-
$[
|
|
805
|
-
$[
|
|
806
|
-
} else
|
|
807
|
-
const { labelProps: finalLabelProps, labelRef, descriptionRef, renderWithTooltip, isTooltipActive } = useAutoTooltip(
|
|
866
|
+
$[66] = children;
|
|
867
|
+
$[67] = description;
|
|
868
|
+
$[68] = labelProps;
|
|
869
|
+
$[69] = labelRefProp;
|
|
870
|
+
$[70] = t41;
|
|
871
|
+
$[71] = tooltip;
|
|
872
|
+
$[72] = t42;
|
|
873
|
+
} else t42 = $[72];
|
|
874
|
+
const { labelProps: finalLabelProps, labelRef, descriptionRef, renderWithTooltip, isTooltipActive } = useAutoTooltip(t42);
|
|
808
875
|
const { isNativelyDisabled, inertProps } = getDisabledElementProps({
|
|
809
876
|
isDisabled: finalIsDisabled,
|
|
810
877
|
keepEvents: isTooltipActive || keepFocusWhenDisabled,
|
|
811
878
|
as: rest.as
|
|
812
879
|
});
|
|
813
|
-
let
|
|
814
|
-
if ($[
|
|
815
|
-
|
|
816
|
-
$[
|
|
817
|
-
$[69] = highlight;
|
|
818
|
-
$[70] = highlightCaseSensitive;
|
|
819
|
-
$[71] = highlightStyles;
|
|
820
|
-
$[72] = t39;
|
|
821
|
-
} else t39 = $[72];
|
|
822
|
-
const processedChildren = t39;
|
|
823
|
-
let t40;
|
|
824
|
-
if ($[73] !== description || $[74] !== highlight || $[75] !== highlightCaseSensitive || $[76] !== highlightStyles) {
|
|
825
|
-
t40 = highlightContent(description, highlight, highlightCaseSensitive, highlightStyles);
|
|
826
|
-
$[73] = description;
|
|
880
|
+
let t43;
|
|
881
|
+
if ($[73] !== children || $[74] !== highlight || $[75] !== highlightCaseSensitive || $[76] !== highlightStyles) {
|
|
882
|
+
t43 = highlightContent(children, highlight, highlightCaseSensitive, highlightStyles);
|
|
883
|
+
$[73] = children;
|
|
827
884
|
$[74] = highlight;
|
|
828
885
|
$[75] = highlightCaseSensitive;
|
|
829
886
|
$[76] = highlightStyles;
|
|
830
|
-
$[77] =
|
|
831
|
-
} else
|
|
832
|
-
const
|
|
887
|
+
$[77] = t43;
|
|
888
|
+
} else t43 = $[77];
|
|
889
|
+
const processedChildren = t43;
|
|
890
|
+
let t44;
|
|
891
|
+
if ($[78] !== description || $[79] !== highlight || $[80] !== highlightCaseSensitive || $[81] !== highlightStyles) {
|
|
892
|
+
t44 = highlightContent(description, highlight, highlightCaseSensitive, highlightStyles);
|
|
893
|
+
$[78] = description;
|
|
894
|
+
$[79] = highlight;
|
|
895
|
+
$[80] = highlightCaseSensitive;
|
|
896
|
+
$[81] = highlightStyles;
|
|
897
|
+
$[82] = t44;
|
|
898
|
+
} else t44 = $[82];
|
|
899
|
+
const processedDescription = t44;
|
|
833
900
|
const renderItemElement = (tooltipTriggerProps, tooltipRef) => {
|
|
834
901
|
const { pointerProps: elementTooltipProps, focusProps: tooltipFocusProps } = typeof hiddenContent === "function" || nativeMenuItemProps ? splitTooltipTriggerProps(tooltipTriggerProps) : {
|
|
835
902
|
pointerProps: tooltipTriggerProps,
|
|
@@ -848,7 +915,7 @@ const Item = (props, ref) => {
|
|
|
848
915
|
"aria-disabled": finalIsDisabled,
|
|
849
916
|
"aria-selected": rest["aria-pressed"] != null ? void 0 : isSelected,
|
|
850
917
|
mods: finalMods,
|
|
851
|
-
styles,
|
|
918
|
+
styles: finalStyles,
|
|
852
919
|
tokens: finalTokens,
|
|
853
920
|
type: htmlType,
|
|
854
921
|
...mergeProps(mergeTooltipFocusProps(finalIsDisabled ? omitActivationEventProps(rest) : rest, elementTooltipProps), inertProps),
|
|
@@ -972,7 +1039,18 @@ const Item = (props, ref) => {
|
|
|
972
1039
|
isDisabled: finalIsDisabled,
|
|
973
1040
|
children: actions
|
|
974
1041
|
}) : null
|
|
975
|
-
})
|
|
1042
|
+
}),
|
|
1043
|
+
pinnedActions ? /* @__PURE__ */ jsx("div", {
|
|
1044
|
+
"data-element": "PinnedActions",
|
|
1045
|
+
...ACTIONS_EVENT_HANDLERS,
|
|
1046
|
+
children: /* @__PURE__ */ jsx(ItemActionProvider, {
|
|
1047
|
+
type,
|
|
1048
|
+
theme,
|
|
1049
|
+
disableActionsFocus,
|
|
1050
|
+
isDisabled: finalIsDisabled,
|
|
1051
|
+
children: pinnedActions
|
|
1052
|
+
})
|
|
1053
|
+
}) : null
|
|
976
1054
|
]
|
|
977
1055
|
});
|
|
978
1056
|
};
|
|
@@ -980,7 +1058,8 @@ const Item = (props, ref) => {
|
|
|
980
1058
|
};
|
|
981
1059
|
const _Item = Object.assign(forwardRef(Item), {
|
|
982
1060
|
Action: ItemAction,
|
|
983
|
-
Badge: ItemBadge
|
|
1061
|
+
Badge: ItemBadge,
|
|
1062
|
+
CloseAction: ItemCloseAction
|
|
984
1063
|
});
|
|
985
1064
|
/** @private Preserves Item layout around native menu targets. */
|
|
986
1065
|
const ItemWithNativeSlots = _Item;
|