@cube-dev/ui-kit 0.0.0-canary-810c6f7 → 0.0.0-canary-5adbf30
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.js +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.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 +1 -1
- package/dist/components/ComboBox/combo-box-options.js +1 -1
- package/dist/components/CommandMenu/CommandMenu.js +1 -1
- package/dist/components/CommandMenu/styled.js +2 -1
- package/dist/components/CommandMenu/styled.js.map +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 +1 -1
- 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 +3 -2
- package/dist/components/FilterListBox/FilterListBox.js.map +1 -1
- package/dist/components/FilterListBox/styled.js +19 -2
- package/dist/components/FilterListBox/styled.js.map +1 -1
- package/dist/components/FilterPicker/FilterPicker.d.ts +3 -4
- package/dist/components/FilterPicker/FilterPicker.js +1 -1
- package/dist/components/FilterPicker/FilterPicker.js.map +1 -1
- package/dist/components/FilterPicker/FilterTree.js +72 -64
- package/dist/components/FilterPicker/FilterTree.js.map +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 +2 -24
- package/dist/components/Item/Item.js +148 -196
- 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.js +1 -1
- package/dist/components/ItemActionsWrapper/ItemActionsWrapper.js +1 -1
- package/dist/components/ItemBadge/ItemBadge.js +1 -1
- package/dist/components/ItemButton/ItemButton.d.ts +1 -11
- package/dist/components/ItemButton/ItemButton.js +4 -5
- package/dist/components/ItemButton/ItemButton.js.map +1 -1
- package/dist/components/ItemCard/ItemCard.js +1 -1
- package/dist/components/ItemTable/ItemTable.js +1 -1
- package/dist/components/ItemTable/ItemTableBulkBar.js +1 -1
- 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 +1 -1
- 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 +6 -1
- package/dist/components/ListBox/ListBox.js.map +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.d.ts +13 -0
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/Menu.js.map +1 -1
- package/dist/components/Menu/MenuCollectionItem.js +1 -1
- package/dist/components/Menu/MenuContext.js +1 -1
- package/dist/components/Menu/MenuItem.js +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 +5 -4
- package/dist/components/Menu/styled.js.map +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.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.js +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.d.ts +1 -3
- package/dist/components/RadioGroup/Radio.js +2 -4
- package/dist/components/RadioGroup/Radio.js.map +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 +1 -1
- package/dist/components/SearchInput/SearchInput.js +1 -1
- package/dist/components/Select/Select.js +1 -1
- 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 +3 -3
- package/dist/components/TableBase/column-header.js.map +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/TabButton.js.map +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/components/TagInput/TagInput.js +1 -1
- 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 +1 -1
- 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 +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 +2 -3
- 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 +1 -55
- 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.d.ts +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 +1 -1
- package/dist/i18n/locales/en-US/uikit.js +1 -1
- package/dist/i18n/locales/es-ES/uikit.js +1 -1
- package/dist/i18n/locales/es-MX/uikit.js +1 -1
- package/dist/i18n/locales/fr-FR/uikit.js +1 -1
- package/dist/i18n/locales/it-IT/uikit.js +1 -1
- package/dist/i18n/locales/ja-JP/uikit.js +1 -1
- package/dist/i18n/locales/nb-NO/uikit.js +1 -1
- package/dist/i18n/locales/pt-BR/uikit.js +1 -1
- package/dist/i18n/locales/pt-PT/uikit.js +1 -1
- package/dist/i18n/locales/sv-SE/uikit.js +1 -1
- package/dist/i18n/locales/vi-VN/uikit.js +1 -1
- package/dist/i18n/locales.js +1 -1
- package/dist/i18n/namespace.js +1 -1
- package/dist/i18n/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.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/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 +1 -1
- package/docs/components/Badge.md +1 -3
- package/docs/components/Banner.md +1 -3
- package/docs/components/CollectionItem.md +1 -3
- package/docs/components/FilterListBox.md +19 -2
- package/docs/components/FilterPicker.md +2 -2
- package/docs/components/Item.md +15 -36
- package/docs/components/ItemButton.md +1 -3
- package/docs/components/ItemCard.md +1 -3
- package/docs/components/ListBox.md +19 -2
- package/docs/components/Menu.md +33 -8
- package/docs/components/Tag.md +1 -3
- package/package.json +1 -1
- package/tasty.config.ts +27 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item.js","names":["BaseProps","CONTAINER_STYLES","ContainerStyleProps","mergeStyles","Mods","Styles","tasty","useGlobalStyles","AnchorHTMLAttributes","ForwardedRef","forwardRef","ForwardRefExoticComponent","HTMLAttributes","isValidElement","KeyboardEvent","MouseEvent","PointerEvent","PropsWithoutRef","ReactNode","Ref","RefAttributes","RefObject","PositionProps","useHotkeys","useAutoTooltip","useWarn","CheckIcon","LoadingIcon","ItemActionProvider","ITEM_VARIANTS","ItemVariant","resolveItemVariant","getDisabledElementProps","omitActivationEventProps","highlightText","mergeProps","DynamicIcon","ResolvedIcon","resolveIcon","CubeHotKeysProps","HotKeys","IconSwitch","ItemAction","ItemCloseAction","ItemBadge","mergeTooltipFocusProps","splitTooltipTriggerProps","TooltipFocusProps","CubeTooltipProviderProps","Props","ITEM_SIZE_VALUES","const","ItemMods","checkmark","disabled","selected","loading","size","description","type","theme","shape","CubeItemProps","icon","rightIcon","prefix","suffix","descriptionPlacement","wrapDescription","insideWrapper","isSelected","actions","actionsPlacement","actionsBelowState","pinnedActions","autoHideActions","hiddenActionsSpace","suffixPlacement","showActions","skipActionsWidthTransition","preserveActionsSpace","disableActionsFocus","hotkeys","tooltip","Omit","auto","htmlType","labelProps","descriptionProps","keyboardShortcutProps","loadingSlot","isLoading","defaultTooltipPlacement","keepFocusWhenDisabled","hiddenContent","tooltipFocusProps","isTooltipActive","labelRef","HTMLElement","level","highlight","highlightCaseSensitive","highlightStyles","variant","ItemGridActionsProps","DEFAULT_ICON_STYLES","$","display","placeItems","placeContent","aspectRatio","width","opacity","ACTIONS_ZONE_STYLES","gap","placeSelf","boxSizing","height","ACTIONS_EVENT_HANDLERS","onClick","e","stopPropagation","onPointerDown","onPointerUp","pointerType","onMouseDown","onMouseUp","onKeyDown","key","ItemElement","as","styles","flow","outline","gridTemplate","flexShrink","position","padding","margin","radius","border","fill","pressed","color","hovered","preset","recipe","transition","outlineOffset","cursor","$size","Icon","gridArea","pointerEvents","undefined","RightIcon","Label","zIndex","whiteSpace","overflow","textOverflow","Description","textAlign","Prefix","Suffix","Actions","_","interpolateSize","PinnedActions","variants","styleProps","STANDARD_THEMES","CARD_THEMES","HEADER_THEMES","useItemPropWarnings","t0","_c","t1","includes","isInvalidCombination","t2","t3","t4","t5","args","hasLinkWithIcons","hasLinkWithLoading","hasLinkRestrictions","linkRestrictionMessages","push","t6","Symbol","for","t7","join","t8","resolveItemSize","NonNullable","sizeMod","sizeToken","resolveLoadingSlot","hasSlot","IconSlot","content","getIconKey","displayName","name","resolveIconSlot","isLoadingSlot","getHotkeysType","useHotkeyClick","isDisabled","ref","toLowerCase","current","click","enableOnContentEditable","enabled","preventDefault","enableOnFormTags","highlightContent","caseSensitive","ItemWithNativeLinksProps","nativeLinkProps","HTMLAnchorElement","nativeMenuItemProps","nativeRowRef","element","nativeLabelReferenceId","onInlineFocus","HTMLDivElement","onNativeLinkElement","onNativeElement","NativeItemLink","textDecoration","NATIVE_ROW_TARGET_STYLES","inset","clipPath","NATIVE_ROW_CONTROL_SELECTOR","NATIVE_ROW_CONTROL_STYLES","HOTKEYS_STYLES","DISABLED_HOTKEYS_STYLES","Item","props","children","mods","iconProp","rightIconProp","nativeDisabledProp","style","t9","t10","t11","t12","t13","t14","t15","t16","t17","labelRefProp","tokens","rest","hasLabel","finalDescriptionPlacement","finalShape","isDisabledProp","finalIsDisabled","t18","hasCheckmark","baseMods","finalTokens","iconSlot","loadingTarget","t19","resolvedIcon","resolvedRightIcon","rightIconSlot","t20","Object","keys","some","_temp","showDescription","t21","finalPrefix","t22","finalSuffix","canMoveActions","actionsBelowCondition","t23","finalStyles","finalHiddenActionsSpace","t24","t25","t26","t27","t28","t29","t30","t31","t32","t33","t34","t35","t36","t37","t38","t39","t40","t41","finalMods","t42","t43","nativeCellMods","t44","t45","descriptionRef","finalLabelProps","renderWithTooltip","isNativelyDisabled","inertProps","keepEvents","t46","processedChildren","t47","processedDescription","renderItemElement","tooltipTriggerProps","tooltipRef","pointerProps","elementTooltipProps","focusProps","handleRef","T","LabelTag","id","element_0","element_1","element_2","_Item","assign","Action","Badge","CloseAction","ItemWithNativeSlots","ItemBase","CubeItemBaseProps","_c","HotKeys"],"sources":["../../../src/components/Item/Item.tsx"],"sourcesContent":["import {\n BaseProps,\n CONTAINER_STYLES,\n ContainerStyleProps,\n mergeStyles,\n Mods,\n Styles,\n tasty,\n useGlobalStyles,\n} from '@tenphi/tasty';\nimport {\n AnchorHTMLAttributes,\n ForwardedRef,\n forwardRef,\n ForwardRefExoticComponent,\n HTMLAttributes,\n isValidElement,\n KeyboardEvent,\n MouseEvent,\n PointerEvent,\n PropsWithoutRef,\n ReactNode,\n Ref,\n RefAttributes,\n RefObject,\n} from 'react';\nimport { PositionProps } from 'react-aria';\nimport { useHotkeys } from 'react-hotkeys-hook';\n\nimport { useAutoTooltip } from '../../hooks/use-auto-tooltip';\nimport { useWarn } from '../../hooks/use-warn';\nimport { CheckIcon } from '../../icons/CheckIcon';\nimport { LoadingIcon } from '../../icons/LoadingIcon';\nimport { ItemActionProvider } from '../../providers/ItemActionContext';\nimport {\n ITEM_VARIANTS,\n ItemVariant,\n resolveItemVariant,\n} from '../../themes/item-themes';\nimport {\n getDisabledElementProps,\n omitActivationEventProps,\n} from '../../utils/disabled-props';\nimport { highlightText } from '../../utils/highlight-text';\nimport { mergeProps } from '../../utils/merge-props';\nimport {\n DynamicIcon,\n ResolvedIcon,\n resolveIcon,\n} from '../../utils/resolve-icon';\nimport { CubeHotKeysProps, HotKeys } from '../HotKeys/HotKeys';\nimport { IconSwitch } from '../IconSwitch/IconSwitch';\nimport { ItemAction } from '../ItemAction/ItemAction';\nimport { ItemCloseAction } from '../ItemAction/ItemCloseAction';\nimport { ItemBadge } from '../ItemBadge/ItemBadge';\nimport {\n mergeTooltipFocusProps,\n splitTooltipTriggerProps,\n TooltipFocusProps,\n} from '../Tooltip/split-trigger-props';\nimport { CubeTooltipProviderProps } from '../Tooltip/TooltipProvider';\n\nimport type { Props } from '../../types/props';\n\nconst ITEM_SIZE_VALUES = [\n 'xsmall',\n 'small',\n 'medium',\n 'large',\n 'xlarge',\n 'inline',\n] as const;\n\n/** Known modifiers for Item component */\nexport type ItemMods = Mods<{\n 'has-icon'?: boolean;\n 'has-start-content'?: boolean;\n 'has-end-content'?: boolean;\n 'has-right-icon'?: boolean;\n 'has-label'?: boolean;\n 'has-prefix'?: boolean;\n 'has-suffix'?: boolean;\n 'has-description'?: boolean;\n 'wrap-description'?: boolean;\n 'has-actions'?: boolean;\n 'has-actions-content'?: boolean;\n 'has-pinned-actions'?: boolean;\n 'actions-below'?: boolean;\n 'auto-hide-actions'?: boolean;\n 'preserve-actions-space'?: boolean;\n 'actions-replace-suffix'?: boolean;\n 'suffix-placement'?: string;\n checkmark?: boolean;\n disabled?: boolean;\n selected?: boolean;\n loading?: boolean;\n size?: string;\n description?: string;\n type?: string;\n theme?: string;\n shape?: string;\n}>;\n\nexport interface CubeItemProps extends BaseProps, ContainerStyleProps {\n icon?: DynamicIcon<ItemMods> | 'checkmark';\n rightIcon?: DynamicIcon<ItemMods>;\n prefix?: ReactNode;\n suffix?: ReactNode;\n description?: ReactNode;\n descriptionPlacement?: 'inline' | 'block';\n /**\n * Whether a long description wraps onto more lines instead of ending in an ellipsis.\n * @default true for `type=\"card\"` and `type=\"header\"`, false otherwise\n */\n wrapDescription?: boolean;\n /**\n * When true, the item is rendered inside a wrapper element to separate the actions from the item.\n * @default false\n */\n insideWrapper?: boolean;\n /**\n * Whether the item is selected.\n * @default false\n */\n isSelected?: boolean;\n /**\n * Actions to render inline or placeholder mode for ItemButton wrapper.\n * - ReactNode: renders actions inline as part of the grid layout\n * - true: placeholder mode for ItemButton (enables --actions-width calculation)\n */\n actions?: ReactNode | true;\n /**\n * Where the `actions` run sits:\n * - `end` - In a column at the end of the item, beside the label and description\n * - `below` - In a row of its own below the label and description, aligned with the label\n *\n * Ignored with `autoHideActions` and inside a wrapper (`insideWrapper`).\n * @default \"end\"\n */\n actionsPlacement?: 'end' | 'below';\n /**\n * When the `actions` run moves below the label and description, as\n * `actionsPlacement=\"below\"` does from JavaScript:\n * - `true` - On `@mobile`, a viewport narrower than 920px\n * - a string - Any state or condition, such as `'@media(w < 600px)'` or\n * `'@(panel, w < 480px)'`. A container condition needs that container\n * around the item.\n *\n * The switch is CSS only, so the item does not re-render. `pinnedActions`\n * stay at the end either way. Ignored with `autoHideActions` and inside a\n * wrapper (`insideWrapper`).\n */\n actionsBelowState?: boolean | string;\n /**\n * Controls that stay at the end of the item's first row even when the\n * `actions` move below, such as `Item.CloseAction` or a menu trigger. In the\n * `end` placement they follow the actions.\n */\n pinnedActions?: ReactNode;\n /**\n * When true, actions are hidden by default and shown only on hover, focus, or focus-within.\n * `hiddenActionsSpace` decides how the row makes room for them.\n */\n autoHideActions?: boolean;\n /**\n * How auto-hidden actions get their space. Only applies when `autoHideActions` is true.\n * - `collapse`: hidden actions take no width; shown, they narrow the label.\n * - `preserve`: hidden actions keep their width; only their opacity changes.\n * - `suffix`: hidden actions take no width; shown, they take the suffix's place\n * and the suffix fades out. The suffix slot also holds the `hotkeys` hint and a\n * loading icon in it; with the slot empty, it works as `collapse`. Plain `Item`\n * only: `ItemButton` does not support it.\n * @default \"collapse\"\n */\n hiddenActionsSpace?: 'collapse' | 'preserve' | 'suffix';\n /**\n * Where the suffix sits.\n * - `end`: at the end of the row, next to the actions; the label takes the free space.\n * - `after-label`: right after the label, and the free space goes after the suffix.\n * When space runs short, the label still truncates first.\n * @default \"end\"\n */\n suffixPlacement?: 'end' | 'after-label';\n /**\n * When true and insideWrapper is true, this controls the visibility of the actions.\n * @default false\n */\n showActions?: boolean;\n /**\n * When true and insideWrapper is true, the width reserved for the actions\n * run changes without animating. The wrapper sets it while it publishes the\n * first width it measures: on mount, once a closed container opens, or\n * after its run is replaced.\n * @default false\n */\n skipActionsWidthTransition?: boolean;\n /**\n * When true, preserves the actions width when hidden (only changes opacity).\n * Only applies when autoHideActions is true. `hiddenActionsSpace` wins when both are set.\n * @deprecated Use `hiddenActionsSpace=\"preserve\"`.\n * @default false\n */\n preserveActionsSpace?: boolean;\n /**\n * When true, disables focus on action buttons by setting tabIndex={-1}.\n * @default true\n */\n disableActionsFocus?: boolean;\n size?:\n | 'xsmall'\n | 'small'\n | 'medium'\n | 'large'\n | 'xlarge'\n | 'inline'\n | number\n | (string & {});\n type?:\n | 'item'\n | 'header'\n | 'primary'\n | 'outline'\n | 'outline-2'\n | 'clear'\n | 'link'\n | 'card'\n | (string & {});\n theme?:\n | 'default'\n | 'danger'\n | 'success'\n | 'special'\n | 'warning'\n | 'note'\n | 'current'\n | (string & {});\n /** Keyboard shortcut that triggers the element when pressed */\n hotkeys?: string;\n /**\n * Tooltip content and configuration:\n * - string: simple tooltip text\n * - true: auto tooltip on overflow (shows whichever of the label and a string\n * description is truncated)\n * - object: advanced configuration with optional auto property\n */\n tooltip?:\n | string\n | boolean\n | (Omit<CubeTooltipProviderProps, 'children'> & { auto?: boolean });\n /**\n * HTML button type to avoid implicit form submission when used as `as=\"button\"`.\n * Kept separate from visual `type` prop.\n */\n htmlType?: 'button' | 'submit' | 'reset';\n labelProps?: Props;\n descriptionProps?: Props;\n keyboardShortcutProps?: Props;\n /**\n * The slot which the loading icon should replace in loading state.\n * - \"auto\": Smart selection - prefers icon if present, then rightIcon, fallback to icon\n * - Specific slot names: Always use that slot\n * @default \"auto\"\n */\n loadingSlot?: 'auto' | 'icon' | 'rightIcon' | 'prefix' | 'suffix';\n /**\n * When true, shows loading state by replacing the specified slot with LoadingIcon\n * and makes the component disabled.\n */\n isLoading?: boolean;\n /**\n * Shape of the item's border radius.\n * - `card` - Card shape with larger border radius (`1cr`)\n * - `button` - Button shape with default border radius (default)\n * - `sharp` - Sharp corners with no border radius (`0`)\n * - `pill` - Pill shape with fully rounded ends (`round`)\n * @default \"button\"\n */\n shape?: 'card' | 'button' | 'sharp' | 'pill';\n /**\n * @private\n * Default tooltip placement for the item.\n * @default \"top\"\n */\n defaultTooltipPlacement?: PositionProps['placement'];\n /**\n * @private\n * Keeps the item focusable while it is disabled. A composite widget whose\n * arrow keys reach a disabled item, as WAI-ARIA tabs and toolbars do, sets it\n * on its items: the item is then marked `aria-disabled` and kept inert, as it\n * is while it shows a tooltip, instead of taking the native `disabled`\n * attribute, which would drop it from focus.\n */\n keepFocusWhenDisabled?: boolean;\n /**\n * @private\n * The native `disabled` attribute, which `useAction` forwards through\n * `ItemButton`. Treated as an alias of `isDisabled` so that the item stays\n * the only place deciding how the disabled state reaches the DOM.\n */\n disabled?: boolean;\n /**\n * @private\n * Rendered inside the item's element but outside every slot, before them.\n * For a node that has to live in the element without being part of what it\n * shows — the visually hidden native input a button radio lays over itself.\n * Passing such a node as `children` instead would make it part of the label:\n * the auto tooltip and `highlight` only work on a string label, and\n * `has-label` would render an empty, padded `Label` next to a lone icon.\n *\n * As a function it renders the element that takes focus, and receives the\n * tooltip's focus-side trigger props to put on it (see\n * `splitTooltipTriggerProps`): focus lands on that input, not on the item,\n * so on the item they would never open the tooltip from the keyboard. It\n * also learns whether the tooltip can open, which decides whether a\n * disabled input has to keep its focus (see `getDisabledElementProps`).\n */\n hiddenContent?:\n | ReactNode\n | ((\n tooltipFocusProps: TooltipFocusProps,\n isTooltipActive: boolean,\n ) => ReactNode);\n /**\n * Ref to access the label element directly\n */\n labelRef?: Ref<HTMLElement>;\n /**\n * Heading level for the Label element when type=\"header\" or type=\"card\".\n * Changes the Label's HTML tag to the corresponding heading (h1-h6).\n * @default 3\n */\n level?: 1 | 2 | 3 | 4 | 5 | 6;\n /**\n * String to highlight within children.\n * Only works when children is a plain string.\n */\n highlight?: string;\n /**\n * Whether highlight matching is case-sensitive.\n * @default false\n */\n highlightCaseSensitive?: boolean;\n /**\n * Custom styles for highlighted text.\n */\n highlightStyles?: Styles;\n /**\n * Variant of the item.\n */\n variant?: ItemVariant;\n}\n\n/**\n * The props that lay the actions out in the item's own grid. A wrapper whose\n * item is a button with its actions run beside it (`ItemButton`, a tab, a\n * picker trigger) omits them: the run can't move below, and a pinned zone\n * inside the button would nest buttons.\n */\nexport type ItemGridActionsProps =\n 'actionsPlacement' | 'actionsBelowState' | 'pinnedActions';\n\nconst DEFAULT_ICON_STYLES: Styles = {\n $: '>',\n display: 'grid',\n placeItems: 'center',\n placeContent: 'stretch',\n aspectRatio: '1 / 1',\n width: '($size - 2bw)',\n opacity: {\n '': 1,\n 'checkmark & selected': 1,\n 'checkmark & !selected': 0,\n 'checkmark & !selected & hovered': 0.4,\n },\n};\n\n// Shared by the two action zones, `Actions` and `PinnedActions`: a row of\n// action buttons as tall as the item's own slot, its buttons centered in it.\nconst ACTIONS_ZONE_STYLES: Styles = {\n $: '>',\n display: 'flex',\n gap: '$item-gap',\n placeItems: 'center',\n placeSelf: 'stretch',\n boxSizing: 'border-box',\n height: 'min ($size - 2bw)',\n\n // Size for the action buttons\n '$action-size': 'min(max((2x + 2bw), ($size - 1x - 2bw)), (3x - 2bw))',\n // Side padding for the button\n '$side-padding': '(($size - $action-size - 2bw) / 2)',\n};\n\nconst ACTIONS_EVENT_HANDLERS = {\n onClick: (e: MouseEvent) => e.stopPropagation(),\n onPointerDown: (e: PointerEvent) => e.stopPropagation(),\n // A menu item runs on a mouse release it was not pressed on, so a press can\n // start on its trigger and end on it: such a release from an action must not\n // reach the row. Any other release must reach the document, where React Aria\n // ends a touch press; without it a tap on an action ends as a miss.\n onPointerUp: (e: PointerEvent) => {\n if (e.pointerType === 'mouse') e.stopPropagation();\n },\n onMouseDown: (e: MouseEvent) => e.stopPropagation(),\n onMouseUp: (e: MouseEvent) => e.stopPropagation(),\n onKeyDown: (e: KeyboardEvent) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.stopPropagation();\n }\n },\n};\n\nconst ItemElement = tasty({\n as: 'div',\n styles: {\n '@native-row': 'menu-native-row',\n '@interacted':\n 'active | :hover | :focus | :focus-within | :has([data-pressed])',\n // A plain Item's auto-hidden actions while they are hidden.\n '@actions-collapsed':\n 'auto-hide-actions & !preserve-actions-space & !inside-wrapper & !@interacted',\n // The `actions` run on a row of its own below the label and description\n // (only when there is a run: pinned controls alone never move).\n // `actionsBelowState` widens it with a condition of the caller's, which can\n // be a container query: so only sub-elements read it (an item inside its\n // own container sees that container only from them), and every map that\n // reads it keeps its base value as a `_` floor or emits nothing by default.\n '@actions-below': 'has-actions-content & actions-below',\n // Shown auto-hidden actions that take the suffix's place\n // (`hiddenActionsSpace=\"suffix\"`). Hidden, they collapse as above. Never\n // with `@actions-below`, which auto-hidden actions don't take.\n '@actions-in-suffix': 'actions-replace-suffix & @interacted',\n // An `after-label` suffix on the label's line, above an inline description\n // that runs under both (see `gridTemplate`).\n '@suffix-on-label-line':\n 'suffix-placement=after-label & description=inline & has-label',\n\n display: 'inline-grid',\n flow: 'column dense',\n gap: 0,\n outline: 0,\n placeItems: 'stretch',\n placeContent: 'stretch',\n // `pinned` is the last column: the `PinnedActions` zone keeps it when the\n // `actions` run moves below. Empty, it is 0px wide.\n gridTemplate: {\n '': '\"icon prefix label suffix rightIcon actions pinned\" auto \"icon prefix label suffix rightIcon actions pinned\" auto / max-content max-content $label-column $suffix-column max-content max-content max-content',\n 'description=inline':\n '\"icon prefix description suffix rightIcon actions pinned\" auto / max-content max-content $label-column $suffix-column max-content max-content max-content',\n 'description=inline & has-label':\n '\"icon prefix label suffix rightIcon actions pinned\" auto \"icon prefix description suffix rightIcon actions pinned\" auto / max-content max-content $label-column $suffix-column max-content max-content max-content',\n // An `after-label` suffix stays on the label's line, and the description\n // runs under both: in the label's column alone, a longer description\n // would widen that column and push the suffix away from the label.\n '@suffix-on-label-line':\n '\"icon prefix label suffix rightIcon actions pinned\" auto \"icon prefix description description rightIcon actions pinned\" auto / max-content max-content $label-column $suffix-column max-content max-content max-content',\n 'description=block':\n '\"icon prefix label suffix rightIcon actions pinned\" auto \"description description description description description description description\" auto / max-content max-content $label-column $suffix-column max-content max-content max-content',\n },\n // The label and suffix tracks. By default the label takes the free space,\n // so the suffix sits at the end, next to the actions. An `after-label`\n // suffix follows the label and the free space goes after it: the label\n // track stops at its text but still gives way first when space runs short.\n // The suffix track's floor is the suffix's own width (`Suffix.width`), not\n // a `max-content` minimum: that would also take the full text of a\n // description spanning the track, which then overflows a narrow row.\n '$label-column': {\n '': '1sf',\n 'suffix-placement=after-label': 'minmax(0, max-content)',\n },\n '$suffix-column': {\n '': 'max-content',\n 'suffix-placement=after-label': '1fr',\n },\n // Prevent items from shrinking inside vertical flex layouts (Menu, ListBox, etc)\n flexShrink: {\n '': 'initial',\n 'menuitem | listboxitem': 0,\n },\n position: 'relative',\n padding: {\n '': 0,\n 'type=card': '.5x',\n },\n margin: 0,\n radius: {\n '': true,\n 'shape=card': '1cr',\n 'shape=button': true,\n 'shape=sharp': '0',\n 'shape=pill': 'round',\n },\n height: {\n '': 'min $size',\n 'size=inline': '(1lh + 2bw)',\n },\n width: {\n '': 'min $size',\n // An actions run is end content just like a right icon — a trigger that\n // puts its caret in the run instead of the `rightIcon` slot must keep the\n // same minimum as one that does not. Only for a SIBLING run: an in-grid\n // one is laid out by this element's own columns, which already sized the\n // row before the run existed, and widening it there would push a tab's or\n // a tag's border out past its content.\n 'has-icon & (has-right-icon | (has-actions & inside-wrapper))':\n 'min ($size * 2)',\n 'size=inline': 'min (1lh + 2bw)',\n },\n border: '#clear',\n fill: {\n '': '#dark.0',\n 'hovered | focused': '#dark.03',\n selected: '#dark.09',\n 'selected & (hovered | focused)': '#dark.12',\n pressed: '#dark.09',\n disabled: '#clear',\n },\n color: {\n '': '#dark-02',\n hovered: '#dark-02',\n pressed: '#dark',\n disabled: '#disabled-surface-text',\n },\n preset: {\n '': 't3',\n '!type=item': 't3m',\n 'size=xsmall': 't4',\n 'size=xlarge': 't2',\n 'size=inline': 'inherit',\n '!type=item & (size=medium | size=small | size=large)': 't3m',\n '!type=item & size=xlarge': 't2m',\n '(type=header | type=card) & (size=xsmall | size=small | size=medium)':\n 'h6',\n '(type=header | type=card) & size=large': 'h5',\n '(type=header | type=card) & size=xlarge': 'h4',\n },\n recipe: 'reset button',\n transition: 'theme',\n outlineOffset: '$outline-offset',\n cursor: {\n '': 'inherit',\n ':is(a)': 'pointer',\n ':is(button) | listboxitem | menuitem': '$pointer',\n disabled: 'not-allowed',\n },\n\n $size: {\n '': '$size-md',\n 'size=xsmall': '$size-xs',\n 'size=small': '$size-sm',\n 'size=medium': '$size-md',\n 'size=large': '$size-lg',\n 'size=xlarge': '$size-xl',\n 'size=inline': '(1lh + 2bw)',\n },\n '$inline-padding':\n 'max($min-inline-padding, (($size - 1lh - 2bw) / 2 + $inline-compensation))',\n '$block-padding': {\n '': '.5x',\n 'size=xsmall | size=small': '.25x',\n 'size=inline': 0,\n },\n '$inline-compensation': '.5x',\n '$min-inline-padding': '(1x - 1bw)',\n\n // Gap between the `Prefix` / `Suffix` slots and the `Label`. Zero by\n // default because most prefix and suffix content is a box that already\n // carries its own presence — a checkbox, a kbd chip, a badge — and a gap\n // on top of that reads as too much. A BARE GLYPH is the case that needs\n // one: it sits flush against the label, where the same glyph in the `Icon`\n // slot looks spaced because that slot centres it in a `$size` square.\n //\n // Set it at the call site for those:\n // <Item styles={{ '$prefix-gap': '1x' }} prefix={<MemberIcon />}>\n //\n // An `after-label` suffix gets one by default: it sits right after the\n // label's text, with no free space between them to keep them apart.\n '$prefix-gap': 0,\n '$suffix-gap': { '': 0, 'suffix-placement=after-label': '1x' },\n\n '$label-padding-left': {\n '': '$inline-padding',\n 'has-start-content': '0',\n },\n '$label-padding-right': {\n '': '$inline-padding',\n 'has-end-content': '0',\n // Restore padding when actions are hidden AND no other visible end content\n '@actions-collapsed & !has-suffix & !has-right-icon & !has-pinned-actions':\n '$inline-padding',\n 'inside-wrapper & !has-suffix & !has-right-icon & !has-pinned-actions & !preserve-actions-space & !actions-shown':\n '$inline-padding',\n },\n '$label-padding-bottom': {\n '': '$block-padding',\n 'description=inline': '0',\n },\n '$description-padding-left': {\n '': '$inline-padding',\n 'has-start-content': 0,\n 'description=block': '($inline-padding - $inline-compensation + 1bw)',\n 'description=block & !has-start-content': '$inline-padding',\n },\n // The suffix's end padding. Dropped next to a right icon, and next to a\n // sibling run, which already carries `$side-padding` on both sides: the\n // suffix must not add the inline padding on top of it. Same restriction as\n // the minimum width above: only while the run is shown or keeps its space,\n // since a hidden run is 0px wide and the suffix keeps its own end padding\n // then, as the label does (`$label-padding-right`).\n '$suffix-padding-right': {\n '': '$inline-padding',\n 'has-right-icon | (has-actions & inside-wrapper & (actions-shown | preserve-actions-space))': 0,\n },\n '$description-padding-right': {\n '': '$inline-padding',\n 'has-end-content': 0,\n 'description=block': '($inline-padding - $inline-compensation + 1bw)',\n 'description=block & !has-end-content': '$inline-padding',\n // Under a suffix on the label's line, the description runs under the\n // suffix to the row's end, so it ends where the suffix's text does.\n '@suffix-on-label-line': '$suffix-padding-right',\n },\n '$description-padding-bottom': {\n '': 0,\n 'has-label & description=inline': '$block-padding',\n 'has-label & description=block':\n 'max($block-padding, (($size - 4x) / 2) + $block-padding)',\n },\n\n Icon: mergeStyles(DEFAULT_ICON_STYLES, {\n gridArea: 'icon',\n // A native row's Icon, Label and Description are aria-hidden copies of\n // the primary link that keep the slot layout. Presses pass through them\n // to the primary anchor, so it is the hit target wherever the text runs.\n pointerEvents: { '': undefined, '@native-row': 'none' },\n }),\n\n RightIcon: mergeStyles(DEFAULT_ICON_STYLES, { gridArea: 'rightIcon' }),\n\n Label: {\n $: '>',\n margin: 0,\n zIndex: { '': undefined, '@native-row': 1 },\n pointerEvents: { '': undefined, '@native-row': 'none' },\n gridArea: 'label',\n display: 'block',\n placeSelf: 'center start',\n boxSizing: 'border-box',\n placeContent: 'stretch',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n width: '0 100%',\n preset: 'inherit',\n transition: 'padding',\n padding:\n '$block-padding $label-padding-right $label-padding-bottom $label-padding-left',\n // The actions below leave the row's end free: take back the end padding\n // they made the label drop, unless other end content still sits there.\n '$label-padding-right': {\n '': undefined,\n '@actions-below & !has-suffix & !has-right-icon & !has-pinned-actions':\n '$inline-padding',\n },\n },\n\n Description: {\n $: '>',\n gridArea: 'description',\n pointerEvents: { '': undefined, '@native-row': 'none' },\n preset: {\n '': 't4',\n 'type=card | type=header': 't3',\n },\n placeSelf: 'center start',\n boxSizing: 'border-box',\n color: 'inherit',\n opacity: {\n '': 0.75,\n 'type=card | type=header': 1,\n },\n overflow: 'hidden',\n whiteSpace: {\n '': 'nowrap',\n 'wrap-description': 'normal',\n },\n textOverflow: 'ellipsis',\n width: 'initial 100% 100%',\n textAlign: 'left',\n padding:\n '0 $description-padding-right $description-padding-bottom $description-padding-left',\n // As on `Label`.\n '$description-padding-right': {\n '': undefined,\n '@actions-below & !has-suffix & !has-right-icon & !has-pinned-actions':\n '$inline-padding',\n },\n // Its end padding can change as actions show or hide; it moves with\n // them, as the label's and the suffix's do.\n transition: 'padding',\n },\n\n Prefix: {\n $: '>',\n display: 'grid',\n flow: 'column',\n placeItems: 'center',\n placeContent: 'stretch',\n gridArea: 'prefix',\n zIndex: { '': undefined, '@native-row': 1 },\n pointerEvents: { '': undefined, '@native-row': 'none' },\n // The trailing value is `$prefix-gap` (see the token above): the grid\n // supplies no gap and `Label` drops its own left padding for any start\n // content, so a bare prefix glyph would otherwise sit flush against the\n // label. The leading value is the item's gutter, yielding to the icon\n // slot when one is present.\n padding: {\n '': '0 $prefix-gap 0 $inline-padding',\n 'has-icon': '$prefix-gap right',\n },\n },\n\n Suffix: {\n $: '>',\n display: 'grid',\n flow: 'column',\n // On the label's line alone, the label's text sits at the line's end\n // (its bottom padding goes to the description), so the suffix's does too.\n placeItems: { '': 'center', '@suffix-on-label-line': 'end center' },\n placeContent: 'stretch',\n gridArea: 'suffix',\n zIndex: { '': undefined, '@native-row': 1 },\n // A suffix faded out under the actions that took its place no longer\n // responds either: the pointer there reaches the row.\n pointerEvents: {\n '': undefined,\n '@native-row': 'none',\n '@actions-in-suffix': 'none',\n },\n // Mirror of `Prefix`: the leading value is `$suffix-gap`, the trailing\n // one `$suffix-padding-right`.\n padding: '0 $suffix-padding-right 0 $suffix-gap',\n // An `after-label` suffix starts its track, right after the label, and\n // the rest of the track is the row's free space.\n placeSelf: {\n '': undefined,\n 'suffix-placement=after-label': 'stretch start',\n },\n // The floor of an `after-label` suffix's track (`$suffix-column`): the\n // label gives way first, never the suffix.\n width: {\n '': undefined,\n 'suffix-placement=after-label': 'min max-content',\n },\n // Shown actions that take the suffix's place cover it, so it fades out\n // as they fade in.\n opacity: { '': undefined, '@actions-in-suffix': 0 },\n // The run's reserved width animates as it appears; so does this.\n transition: 'padding, opacity',\n },\n\n Actions: mergeStyles(ACTIONS_ZONE_STYLES, {\n zIndex: { '': undefined, '@native-row': 1 },\n pointerEvents: { '': undefined, '@native-row': 'none' },\n gridArea: {\n _: 'actions',\n // Actions that take the suffix's place live in its cell, at its end,\n // where the row's end content sits. Hidden ones stay there too:\n // collapsed and clipped (`@actions-collapsed`), they take no width and\n // no hit area, and hiding them never sends them back to a column of\n // their own, which would narrow the label for the length of their\n // width transition.\n 'actions-replace-suffix': 'suffix',\n // Below, the run takes a row of its own under every other slot, from\n // the label's column (the description's, when that spans the row) to\n // the end.\n '@actions-below': '3 / 3 / auto / -1',\n '@actions-below & description=block': '3 / 1 / auto / -1',\n },\n placeSelf: { '': 'stretch', 'actions-replace-suffix': 'stretch end' },\n // Below, the run starts where the text does and wraps onto more lines.\n placeContent: { _: 'end', '@actions-below': 'center start' },\n flow: { '': undefined, '@actions-below': 'row wrap' },\n height: {\n _: 'min ($size - 2bw)',\n // Below, the row hugs its buttons: a slot-tall row would center them\n // in space above that pushes them away from the text they belong to.\n // The item's rhythm comes back as padding below (see `padding`).\n '@actions-below': 'min 0',\n // Actions in the suffix's cell on the label's line alone take that\n // line's height: a row's would stretch the line, and the row, taller.\n 'actions-replace-suffix & @suffix-on-label-line': 'auto',\n },\n padding: {\n _: '0 $side-padding',\n // Inside a wrapper this column is a PLACEHOLDER: the run itself is a\n // sibling that carries its own side padding, and `--actions-width`\n // already includes it. Repeating it here is at best a no-op — the column\n // is `border-box` and that wide — and at worst wrong: an EMPTY run\n // publishes a width of 0, and the padding would still reserve\n // `2 * $side-padding` for nothing, pushing a right icon inwards.\n 'inside-wrapper': 0,\n // Hidden auto-hide actions collapse to zero width, as documented: the\n // label already restores its own end padding (`$label-padding-right`).\n '@actions-collapsed': 0,\n // Lined up with the text above: the label's start, or the start of a\n // description that spans the row. Twice the block padding below, as a\n // button has no line spacing to lend the bottom edge.\n '@actions-below':\n '0 $inline-padding (2 * $block-padding) $label-padding-left',\n '@actions-below & description=block':\n '0 $inline-padding (2 * $block-padding) $description-padding-left',\n },\n // A hidden action is invisible but would still spill over the label\n // and catch a tap there (a touch screen has no hover to reveal it first).\n // `clip` removes that hit area and keeps the action focusable, so\n // `:focus-within` still reveals it; unlike `hidden`, it never scrolls.\n overflow: {\n '': undefined,\n '@actions-collapsed': 'clip',\n },\n width: {\n '': 'fixed ($actions-width, 0px)',\n 'has-actions-content & !auto-hide-actions':\n 'max calc-size(max-content, size)',\n 'has-actions-content & auto-hide-actions & !preserve-actions-space':\n 'max 0px',\n 'has-actions-content & auto-hide-actions & (!preserve-actions-space & ((@interacted & !inside-wrapper) | (inside-wrapper & actions-shown)))':\n 'max calc-size(max-content, size)',\n 'has-actions-content & auto-hide-actions & preserve-actions-space':\n 'max calc-size(max-content, size)',\n },\n opacity: {\n '': 1,\n 'auto-hide-actions': 0,\n 'auto-hide-actions & ((@interacted & !inside-wrapper) | (inside-wrapper & actions-shown))': 1,\n },\n transition: {\n '': 'width $transition ease-out, opacity $transition ease-out, padding $transition ease-out',\n // The wrapper's first measurement lands here with no width transition,\n // so the row starts at its reserved width instead of growing into it.\n 'skip-actions-width-transition':\n 'opacity $transition ease-out, padding $transition ease-out',\n },\n interpolateSize: 'allow-keywords',\n }),\n\n // Controls that keep the row's end when the `actions` run moves below.\n // Menu rows, the only native rows, take none (see `MenuItem`), so unlike\n // `Actions` it has no native-row handling.\n PinnedActions: mergeStyles(ACTIONS_ZONE_STYLES, {\n gridArea: 'pinned',\n placeContent: 'end',\n // With the actions below, the text can run to several lines: the zone\n // keeps the top corner, its controls on the label's first line, rather\n // than centering on the whole text.\n placeSelf: { _: 'stretch', '@actions-below': 'start stretch' },\n height: { _: 'min ($size - 2bw)', '@actions-below': 'min 0' },\n // Next to a run at the end, the run's own end padding already separates\n // the two, so this one drops its start padding.\n padding: {\n _: '0 $side-padding',\n 'has-actions-content': '$side-padding right',\n '@actions-collapsed': '0 $side-padding',\n // Actions that take the suffix's place are never at the end, shown or\n // hidden: keeping both paddings keeps the row still as they show.\n 'actions-replace-suffix': '0 $side-padding',\n '@actions-below': '$block-padding top, $side-padding left right',\n },\n }),\n },\n variants: {\n ...ITEM_VARIANTS,\n // ItemCard's palette stays local so consumer directives reach this owner.\n 'default.item-card': mergeStyles(ITEM_VARIANTS['default.card'], {\n fill: '#surface',\n border: '#border',\n }),\n },\n styleProps: CONTAINER_STYLES,\n});\n\n// Valid type+theme combinations. `current` is a theme like any other here: it\n// has a flavour for every type, so it is listed wherever `default` is.\nconst STANDARD_THEMES = [\n 'default',\n 'success',\n 'danger',\n 'warning',\n 'note',\n 'special',\n 'current',\n];\nconst CARD_THEMES = [\n 'default',\n 'success',\n 'danger',\n 'warning',\n 'note',\n 'current',\n];\nconst HEADER_THEMES = ['default'];\n\n/**\n * Warns about prop combinations the item does not support: a theme its type\n * has no flavour for, and the icons or loading state the \"link\" type cannot\n * show.\n */\nfunction useItemPropWarnings({\n type,\n theme,\n icon,\n rightIcon,\n isLoading,\n}: {\n type: string;\n theme: string;\n icon: CubeItemProps['icon'];\n rightIcon: CubeItemProps['rightIcon'];\n isLoading: boolean;\n}) {\n const isInvalidCombination =\n (type === 'header' && !HEADER_THEMES.includes(theme)) ||\n (type === 'card' && !CARD_THEMES.includes(theme)) ||\n (!['header', 'card'].includes(type) && !STANDARD_THEMES.includes(theme));\n\n useWarn(isInvalidCombination, {\n key: ['Item', 'invalid-type-theme', type, theme],\n args: [\n `Item: Invalid type+theme combination. type=\"${type}\" does not support theme=\"${theme}\".` +\n (type === 'header'\n ? ' The \"header\" type only supports theme: default.'\n : type === 'card'\n ? ' The \"card\" type only supports themes: default, success, danger, warning, note, current.'\n : ' Standard types support themes: default, success, danger, warning, note, special, current.'),\n ],\n });\n\n // Warn if link type is used with icons or loading state\n const hasLinkWithIcons = type === 'link' && (icon || rightIcon);\n const hasLinkWithLoading = type === 'link' && isLoading;\n const hasLinkRestrictions = hasLinkWithIcons || hasLinkWithLoading;\n\n const linkRestrictionMessages: string[] = [];\n if (hasLinkWithIcons) {\n linkRestrictionMessages.push('icons (`icon` or `rightIcon` props)');\n }\n if (hasLinkWithLoading) {\n linkRestrictionMessages.push('loading state (`isLoading` prop)');\n }\n\n useWarn(hasLinkRestrictions, {\n key: ['Item', 'link-restrictions'],\n args: [\n `Item: The \"link\" type does not support ${linkRestrictionMessages.join(' or ')}. Remove these props when using type=\"link\".`,\n ],\n });\n}\n\n/**\n * Splits `size` between the two ways the element takes it. A named size sets\n * the `size` mod, which picks the matching `$size` in the styles; any other\n * value (a number of pixels or a custom length) sets the `$size` token itself.\n */\nfunction resolveItemSize(size: NonNullable<CubeItemProps['size']>): {\n sizeMod?: string;\n sizeToken?: string;\n} {\n if (typeof size === 'number') return { sizeToken: `${size}px` };\n\n if ((ITEM_SIZE_VALUES as readonly string[]).includes(size)) {\n return { sizeMod: size };\n }\n\n return { sizeToken: size };\n}\n\n/**\n * The slot the loading icon replaces, or `undefined` when the item is not\n * loading. Auto logic: prefer icon if present, then rightIcon, fallback to\n * icon.\n */\nfunction resolveLoadingSlot(\n loadingSlot: NonNullable<CubeItemProps['loadingSlot']>,\n isLoading: boolean,\n icon: ResolvedIcon,\n rightIcon: ResolvedIcon,\n) {\n if (!isLoading) return undefined;\n if (loadingSlot !== 'auto') return loadingSlot;\n\n return rightIcon.hasSlot && !icon.hasSlot ? 'rightIcon' : 'icon';\n}\n\n/** What an icon slot renders, and the key its `IconSwitch` transitions on. */\ninterface IconSlot {\n hasSlot: boolean;\n content: ReactNode;\n key: string;\n}\n\n/** A stable key for icon transitions, based on the icon type. */\nfunction getIconKey(icon: ReactNode) {\n if (isValidElement(icon)) {\n return (\n (icon.type as any)?.displayName || (icon.type as any)?.name || 'icon'\n );\n }\n\n return icon ? 'icon' : 'empty';\n}\n\n/**\n * Applies the loading state to an icon slot. The slot renders when it has an\n * icon or an empty slot was asked for, or when the loading state targets it:\n * the loading icon then replaces the icon.\n */\nfunction resolveIconSlot(icon: ResolvedIcon, isLoadingSlot: boolean): IconSlot {\n if (isLoadingSlot) {\n return { hasSlot: true, content: <LoadingIcon />, key: 'loading' };\n }\n\n return {\n hasSlot: icon.hasSlot,\n content: icon.content,\n key: getIconKey(icon.content),\n };\n}\n\n/**\n * Which HotKeys flavour the shortcut hint wears. `inherit` paints the hint's\n * glyphs and rim from `currentcolor`, so it tracks whatever the row labels\n * itself with; `primary` pins the hint to `#white`; `default` is a neutral\n * `#dark.65` chip built for a page-colored row.\n *\n * The whole `current` theme wants `inherit`: every flavour there derives its\n * label from the inherited color, and a fixed hint cannot follow that. The\n * neutral `#dark.65`-on-`#dark.04` chip all but vanishes on a dark overlay,\n * which is exactly where this theme is meant to be used.\n *\n * `current.primary` is included despite painting its label with\n * `-webkit-text-fill-color` rather than `color`. The hint renders inside the\n * `Suffix` slot, and `CURRENT_PRIMARY_STYLES` recolors that slot to the label\n * color — so `currentcolor` there is the LABEL, not the fill. An earlier\n * version of this comment claimed the opposite and sent it to `primary`, which\n * put a `#white` hint on a light fill (measured cr 2.17 on a `#note` container\n * in dark mode).\n */\nfunction getHotkeysType(theme: string, type: string): CubeHotKeysProps['type'] {\n if (theme === 'current') return 'inherit';\n\n return type === 'primary' ? 'primary' : 'default';\n}\n\n/** Registers `hotkeys` as a global shortcut that clicks the item. */\nfunction useHotkeyClick<T extends HTMLElement>(\n hotkeys: string | undefined,\n isDisabled: boolean,\n ref: ForwardedRef<T>,\n) {\n useHotkeys(\n typeof hotkeys === 'string' ? hotkeys.toLowerCase() : '',\n () => {\n if (!hotkeys) return;\n if (isDisabled) return;\n // Simulate a click on the element so all existing handlers run\n if (ref && typeof ref === 'object' && ref.current) {\n (ref.current as HTMLElement).click();\n }\n },\n {\n enableOnContentEditable: true,\n enabled: !!hotkeys,\n preventDefault: true,\n enableOnFormTags: true,\n },\n [hotkeys, isDisabled],\n );\n}\n\n/**\n * Highlights matches of `highlight` in a plain-string label or description.\n * Any other content is returned as is.\n */\nfunction highlightContent(\n content: ReactNode,\n highlight: string | undefined,\n caseSensitive: boolean,\n highlightStyles: Styles | undefined,\n): ReactNode {\n return typeof content === 'string' && highlight\n ? highlightText(content, highlight, caseSensitive, highlightStyles)\n : content;\n}\n\nexport interface ItemWithNativeLinksProps extends CubeItemProps {\n nativeLinkProps?: AnchorHTMLAttributes<HTMLAnchorElement>;\n nativeMenuItemProps?: AnchorHTMLAttributes<HTMLAnchorElement> & {\n 'data-menu-native-primary'?: string;\n 'data-key'?: string;\n 'data-collection'?: string;\n };\n nativeRowRef?: (element: HTMLAnchorElement | null) => void;\n nativeLabelReferenceId?: string;\n onInlineFocus?: HTMLAttributes<HTMLDivElement>['onFocus'];\n onNativeLinkElement?: (element: HTMLAnchorElement | null) => void;\n onNativeElement?: (element: HTMLElement | null) => void;\n}\n\n// Native defaults stay beneath the owning Item's slot styles and their resets.\nconst NativeItemLink = tasty({\n as: 'a',\n styles: {\n display: 'block',\n color: 'inherit',\n textDecoration: 'none',\n outline: 0,\n zIndex: {\n '': 'auto',\n 'row-native-cell': 1,\n },\n },\n});\n\nconst NATIVE_ROW_TARGET_STYLES: Styles = {\n position: 'absolute',\n inset: '($native-row-inset, 0)',\n width: '($native-row-width, auto)',\n height: '($native-row-height, auto)',\n clipPath: '($native-row-clip, none)',\n zIndex: 0,\n};\n\n// A zero-specificity default restores controls inside pointer-transparent\n// slots. Consumer styles win even when their class was injected earlier.\nconst NATIVE_ROW_CONTROL_SELECTOR =\n ':where([data-menu-native-row]) :where([data-element=Prefix],[data-element=Suffix],[data-element=Actions]) :where(a[href],button,input,select,textarea,label[for],label:has(button,input,select,textarea),[tabindex],[contenteditable=\"\"],[contenteditable=\"true\"],[contenteditable=\"plaintext-only\"],[role=\"button\"],[role=\"checkbox\"],[role=\"switch\"],[role=\"menuitem\"],[role=\"menuitemcheckbox\"],[role=\"menuitemradio\"],[role=\"radio\"],[role=\"textbox\"],[role=\"combobox\"],[role=\"slider\"],[role=\"spinbutton\"],[role=\"link\"])';\nconst NATIVE_ROW_CONTROL_STYLES: Styles = { pointerEvents: 'auto' };\n\nconst HOTKEYS_STYLES: Styles = { padding: '1x left', opacity: 1 };\nconst DISABLED_HOTKEYS_STYLES: Styles = { padding: '1x left', opacity: 0.5 };\n\nconst Item = <T extends HTMLElement = HTMLDivElement>(\n props: ItemWithNativeLinksProps,\n ref: ForwardedRef<T>,\n) => {\n let {\n children,\n size = 'medium',\n type = 'item',\n theme = 'default',\n mods,\n icon: iconProp,\n rightIcon: rightIconProp,\n prefix,\n suffix,\n description,\n descriptionPlacement,\n wrapDescription,\n labelProps,\n descriptionProps,\n keyboardShortcutProps,\n styles,\n htmlType,\n isSelected,\n hotkeys,\n tooltip = true,\n isDisabled,\n // `useAction` (through `ItemButton`) hands the native attribute down as\n // well. Fold it into the disabled state so this component stays the only\n // place deciding how that state reaches the DOM.\n disabled: nativeDisabledProp,\n style,\n loadingSlot = 'auto',\n isLoading = false,\n actions,\n actionsPlacement = 'end',\n actionsBelowState,\n pinnedActions,\n autoHideActions = false,\n hiddenActionsSpace,\n preserveActionsSpace = false,\n suffixPlacement = 'end',\n disableActionsFocus = false,\n shape,\n defaultTooltipPlacement = 'top',\n keepFocusWhenDisabled = false,\n level = 3,\n highlight,\n highlightCaseSensitive = false,\n highlightStyles,\n insideWrapper = false,\n showActions = false,\n skipActionsWidthTransition = false,\n hiddenContent,\n // Destructured so it reaches the label, not the element's DOM attributes.\n labelRef: labelRefProp,\n nativeLinkProps,\n nativeMenuItemProps,\n nativeRowRef,\n nativeLabelReferenceId,\n onInlineFocus,\n onNativeLinkElement,\n onNativeElement,\n tokens,\n ...rest\n } = props;\n\n useGlobalStyles(\n NATIVE_ROW_CONTROL_SELECTOR,\n nativeMenuItemProps ? NATIVE_ROW_CONTROL_STYLES : undefined,\n );\n\n // Determine if Label will be rendered\n const hasLabel = !!(children || labelProps);\n\n // Set default descriptionPlacement based on type\n // For card/header types, use 'block' only when Label is rendered\n const finalDescriptionPlacement =\n descriptionPlacement ??\n ((type === 'card' || type === 'header') && hasLabel ? 'block' : 'inline');\n\n // Set default shape based on type\n const finalShape = shape ?? (type === 'card' ? 'card' : 'button');\n\n const isDisabledProp = isDisabled ?? (nativeDisabledProp || undefined);\n\n // Loading state makes the component disabled\n const finalIsDisabled =\n isDisabledProp === true || (isLoading && isDisabledProp !== false);\n\n useItemPropWarnings({\n type,\n theme,\n icon: iconProp,\n rightIcon: rightIconProp,\n isLoading,\n });\n\n // Determine if we should show a checkmark instead of icon\n const hasCheckmark = iconProp === 'checkmark';\n\n const { sizeMod, sizeToken } = resolveItemSize(size);\n // Built outside `renderItemElement`: read inside that closure, `sizeToken`\n // kept React Compiler from memoizing the mods, slots and hotkeys before it.\n const finalTokens = { ...tokens, ...(sizeToken ? { $size: sizeToken } : {}) };\n\n // Base mods for icon resolution (without icon-dependent mods)\n const baseMods: ItemMods = {\n disabled: finalIsDisabled,\n selected: isSelected === true,\n loading: isLoading,\n ...(sizeMod !== undefined && { size: sizeMod }),\n type,\n theme,\n shape: finalShape,\n ...mods,\n };\n\n // Resolve dynamic icon props (skip resolution for 'checkmark' special value)\n const resolvedIcon = hasCheckmark\n ? { content: null, hasSlot: true }\n : resolveIcon(iconProp as DynamicIcon<ItemMods>, baseMods);\n\n const resolvedRightIcon = resolveIcon(rightIconProp, baseMods);\n\n // Determine which slot to use for loading\n const loadingTarget = resolveLoadingSlot(\n loadingSlot,\n isLoading,\n resolvedIcon,\n resolvedRightIcon,\n );\n\n // Apply loading state to appropriate slots. The checkmark keeps the icon\n // slot even when the loading state targets it.\n const iconSlot: IconSlot = hasCheckmark\n ? { hasSlot: true, content: <CheckIcon />, key: 'checkmark' }\n : resolveIconSlot(resolvedIcon, loadingTarget === 'icon');\n const rightIconSlot = resolveIconSlot(\n resolvedRightIcon,\n loadingTarget === 'rightIcon',\n );\n\n const showDescription =\n !!description ||\n Object.keys(descriptionProps ?? {}).some((key) => key !== 'id');\n\n const finalPrefix = loadingTarget === 'prefix' ? <LoadingIcon /> : prefix;\n\n // Build final suffix: loading icon, custom suffix, or HotKeys hint\n const finalSuffix =\n loadingTarget === 'suffix' ? (\n <LoadingIcon />\n ) : (\n (suffix ??\n (hotkeys ? (\n <HotKeys\n {...(keyboardShortcutProps as any)}\n type={getHotkeysType(theme, type)}\n styles={finalIsDisabled ? DISABLED_HOTKEYS_STYLES : HOTKEYS_STYLES}\n >\n {hotkeys}\n </HotKeys>\n ) : undefined))\n );\n\n // Register global hotkey if provided\n useHotkeyClick(hotkeys, finalIsDisabled, ref);\n\n // The run moves below only from the grid: a wrapper's run is a sibling of\n // the item, and auto-hidden actions would leave an empty row behind.\n const canMoveActions = !insideWrapper && !autoHideActions;\n // `true` moves the actions on `@mobile`. An item that never moves them keeps\n // the very styles it had, so its CSS is unchanged.\n const actionsBelowCondition = canMoveActions\n ? actionsBelowState === true\n ? '@mobile'\n : actionsBelowState || undefined\n : undefined;\n const finalStyles = actionsBelowCondition\n ? {\n // oxlint-disable-next-line tasty/no-runtime-styles-mutation -- forwards the public `actionsBelowState` condition, which the item's own maps read as `@actions-below`\n '@actions-below': `has-actions-content & (actions-below | (${actionsBelowCondition}))`,\n // oxlint-disable-next-line tasty/no-style-spread -- forwards the caller's public `styles` after the condition, so they still win\n ...styles,\n }\n : styles;\n\n // `preserveActionsSpace` is the deprecated spelling of `\"preserve\"`.\n const finalHiddenActionsSpace =\n hiddenActionsSpace ?? (preserveActionsSpace ? 'preserve' : 'collapse');\n\n const finalMods: ItemMods = {\n ...baseMods,\n 'has-icon': iconSlot.hasSlot,\n 'has-start-content': !!(iconSlot.hasSlot || finalPrefix),\n 'has-end-content': !!(\n rightIconSlot.hasSlot ||\n finalSuffix ||\n actions ||\n pinnedActions\n ),\n 'has-right-icon': rightIconSlot.hasSlot,\n 'has-label': hasLabel,\n 'has-prefix': !!finalPrefix,\n 'has-suffix': !!finalSuffix,\n 'has-description': showDescription,\n 'wrap-description':\n showDescription &&\n (wrapDescription ?? (type === 'card' || type === 'header')),\n 'has-actions': !!actions,\n 'has-actions-content': !!(actions && actions !== true),\n 'has-pinned-actions': !!pinnedActions,\n 'actions-below': canMoveActions && actionsPlacement === 'below',\n 'menu-native-row': !!nativeMenuItemProps,\n 'auto-hide-actions': autoHideActions === true,\n 'preserve-actions-space': finalHiddenActionsSpace === 'preserve',\n // Only on the in-grid path: a wrapper's actions are a sibling run at the\n // row's end, which cannot move into the suffix's cell.\n 'actions-replace-suffix':\n autoHideActions === true &&\n finalHiddenActionsSpace === 'suffix' &&\n !!finalSuffix &&\n !!(actions && actions !== true) &&\n !insideWrapper,\n 'suffix-placement': finalSuffix ? suffixPlacement : undefined,\n 'inside-wrapper': insideWrapper,\n 'actions-shown': showActions && insideWrapper,\n 'skip-actions-width-transition':\n skipActionsWidthTransition && insideWrapper,\n checkmark: hasCheckmark,\n description: showDescription ? finalDescriptionPlacement : 'none',\n };\n const nativeCellMods = {\n 'row-native-cell': finalMods['menu-native-row'],\n };\n\n const {\n labelProps: finalLabelProps,\n labelRef,\n descriptionRef,\n renderWithTooltip,\n isTooltipActive,\n } = useAutoTooltip({\n tooltip,\n children,\n // The description truncates exactly like the label, so it is measured with\n // it and shown in the same tooltip. Raw, not highlighted: the tooltip shows\n // plain text.\n description,\n labelProps,\n labelRef: labelRefProp,\n // The hook owns the description's ref, so one passed in `descriptionProps`\n // is handed to it rather than lost under the spread below.\n descriptionRef: (descriptionProps as { ref?: Ref<HTMLElement> } | undefined)\n ?.ref,\n });\n\n // A disabled item still has to be able to show its tooltip — that is usually\n // where the reason for being unavailable is written. The native `disabled`\n // attribute would make the browser drop the hover that opens it, so when a\n // tooltip is present the item is marked `aria-disabled` and kept inert\n // instead.\n const { isNativelyDisabled, inertProps } = getDisabledElementProps({\n isDisabled: finalIsDisabled,\n keepEvents: isTooltipActive || keepFocusWhenDisabled,\n as: (rest as { as?: string }).as,\n });\n\n // Process children and description with highlight if applicable\n const processedChildren = highlightContent(\n children,\n highlight,\n highlightCaseSensitive,\n highlightStyles,\n );\n const processedDescription = highlightContent(\n description,\n highlight,\n highlightCaseSensitive,\n highlightStyles,\n );\n\n // Render function that creates the item element\n const renderItemElement = (\n tooltipTriggerProps?: HTMLAttributes<HTMLElement>,\n tooltipRef?: RefObject<HTMLElement>,\n ) => {\n const { pointerProps: elementTooltipProps, focusProps: tooltipFocusProps } =\n typeof hiddenContent === 'function' || nativeMenuItemProps\n ? splitTooltipTriggerProps(tooltipTriggerProps)\n : { pointerProps: tooltipTriggerProps, focusProps: undefined };\n\n // Use callback ref to merge multiple refs without calling hooks\n const handleRef = (element: HTMLElement | null) => {\n onNativeElement?.(element);\n // Set the component's forwarded ref\n if (typeof ref === 'function') {\n ref(element as T | null);\n } else if (ref) {\n (ref as any).current = element;\n }\n // Set the tooltip ref if provided\n if (tooltipRef) {\n (tooltipRef as any).current = element;\n }\n };\n\n return (\n <ItemElement\n ref={handleRef}\n // Shared with `ItemButton`, which repeats this lookup on the wrapper that\n // carries the row color to actions rendered outside the row.\n variant={\n theme && type\n ? type === 'card' && theme === 'default' && mods?.['item-card']\n ? 'default.item-card'\n : resolveItemVariant(theme, type)\n : undefined\n }\n disabled={isNativelyDisabled}\n aria-disabled={finalIsDisabled}\n // A row that reports `aria-pressed` is a toggle button, where\n // `aria-selected` is not a valid state and screen readers ignore it.\n aria-selected={rest['aria-pressed'] != null ? undefined : isSelected}\n mods={finalMods}\n styles={finalStyles}\n tokens={finalTokens}\n type={htmlType as any}\n {...mergeProps(\n mergeTooltipFocusProps(\n // Natively disabled too: the attribute does not stop the React Aria\n // press a caller such as `Select` attaches (`omitActivationEventProps`).\n finalIsDisabled ? omitActivationEventProps(rest) : rest,\n elementTooltipProps,\n ),\n inertProps,\n )}\n {...(nativeMenuItemProps\n ? { 'aria-disabled': undefined, 'aria-selected': undefined }\n : null)}\n // oxlint-disable-next-line tasty/no-style-prop -- forwards the consumer's public `style` prop\n style={style}\n >\n {nativeMenuItemProps ? (\n <NativeItemLink\n {...mergeTooltipFocusProps(\n mergeProps(nativeLinkProps, nativeMenuItemProps),\n tooltipFocusProps,\n )}\n ref={nativeRowRef}\n styles={NATIVE_ROW_TARGET_STYLES}\n // Block gaps space visible slots, not this out-of-flow target.\n // oxlint-disable-next-line tasty/no-style-prop -- the block parent's `gap` margin (`> *:not(:last-child)`) outranks any style of this element's own\n style={{ margin: 0 }}\n aria-hidden={nativeMenuItemProps['aria-hidden']}\n data-menu-native-link=\"\"\n data-menu-native-hit-area=\"\"\n />\n ) : null}\n {typeof hiddenContent === 'function'\n ? hiddenContent(tooltipFocusProps ?? {}, isTooltipActive)\n : hiddenContent}\n {iconSlot.hasSlot &&\n (nativeLinkProps ? (\n <NativeItemLink\n mods={nativeCellMods}\n data-element=\"Icon\"\n {...nativeLinkProps}\n aria-hidden={true}\n data-menu-native-link=\"\"\n >\n <IconSwitch noWrapper contentKey={iconSlot.key}>\n {iconSlot.content}\n </IconSwitch>\n </NativeItemLink>\n ) : (\n <div data-element=\"Icon\">\n <IconSwitch noWrapper contentKey={iconSlot.key}>\n {iconSlot.content}\n </IconSwitch>\n </div>\n ))}\n {finalPrefix && (\n <div\n data-element=\"Prefix\"\n {...(nativeMenuItemProps ? ACTIONS_EVENT_HANDLERS : null)}\n >\n {finalPrefix}\n </div>\n )}\n {children || labelProps\n ? (() => {\n const LabelTag =\n type === 'header' || type === 'card'\n ? (`h${level}` as const)\n : 'div';\n if (nativeLinkProps && LabelTag !== 'div') {\n // Preserve the heading's semantics, typography and label ref.\n return (\n <LabelTag\n data-element=\"Label\"\n {...finalLabelProps}\n id={nativeLabelReferenceId ?? finalLabelProps.id}\n aria-labelledby={\n finalLabelProps['aria-labelledby'] ??\n (nativeMenuItemProps &&\n finalLabelProps['aria-label'] == null\n ? `${nativeLabelReferenceId}-content`\n : undefined)\n }\n ref={(element: HTMLElement | null) => {\n labelRef(element);\n }}\n >\n <NativeItemLink\n mods={nativeCellMods}\n {...nativeLinkProps}\n id={\n nativeMenuItemProps\n ? `${nativeLabelReferenceId}-content`\n : undefined\n }\n aria-hidden={nativeMenuItemProps ? true : undefined}\n display=\"inline\"\n data-menu-native-link=\"\"\n >\n {processedChildren}\n </NativeItemLink>\n </LabelTag>\n );\n }\n if (nativeLinkProps) {\n return (\n <NativeItemLink\n mods={nativeCellMods}\n data-element=\"Label\"\n {...nativeLinkProps}\n {...finalLabelProps}\n id={nativeLabelReferenceId ?? finalLabelProps.id}\n data-menu-native-link=\"\"\n ref={(element: HTMLAnchorElement | null) => {\n labelRef(element);\n }}\n >\n {processedChildren}\n </NativeItemLink>\n );\n }\n return (\n <LabelTag\n data-element=\"Label\"\n {...finalLabelProps}\n ref={labelRef}\n >\n {processedChildren}\n </LabelTag>\n );\n })()\n : null}\n {showDescription ? (\n nativeLinkProps ? (\n <NativeItemLink\n mods={nativeCellMods}\n data-element=\"Description\"\n {...nativeLinkProps}\n {...descriptionProps}\n data-menu-native-link=\"\"\n ref={(element: HTMLAnchorElement | null) => {\n descriptionRef(element);\n }}\n >\n {processedDescription}\n </NativeItemLink>\n ) : (\n <div\n data-element=\"Description\"\n {...descriptionProps}\n ref={descriptionRef}\n >\n {processedDescription}\n </div>\n )\n ) : null}\n {finalSuffix && (\n <div\n data-element=\"Suffix\"\n {...(nativeMenuItemProps ? ACTIONS_EVENT_HANDLERS : null)}\n >\n {finalSuffix}\n </div>\n )}\n {rightIconSlot.hasSlot && (\n <div data-element=\"RightIcon\">\n <IconSwitch noWrapper contentKey={rightIconSlot.key}>\n {rightIconSlot.content}\n </IconSwitch>\n </div>\n )}\n {actions && (\n <div\n data-element=\"Actions\"\n onFocus={onInlineFocus}\n // The handlers keep a press on an action from also pressing the\n // row. The `true` placeholder has no actions to protect: it only\n // reserves the sibling run's width, under that run's caret, so\n // stopping presses there kept the caret from opening the trigger.\n {...(actions !== true ? ACTIONS_EVENT_HANDLERS : null)}\n >\n {actions !== true ? (\n <ItemActionProvider\n type={type}\n theme={theme}\n disableActionsFocus={disableActionsFocus}\n menuItemAction={!!nativeMenuItemProps}\n isDisabled={finalIsDisabled}\n >\n {actions}\n </ItemActionProvider>\n ) : null}\n </div>\n )}\n {pinnedActions ? (\n <div data-element=\"PinnedActions\" {...ACTIONS_EVENT_HANDLERS}>\n <ItemActionProvider\n type={type}\n theme={theme}\n disableActionsFocus={disableActionsFocus}\n isDisabled={finalIsDisabled}\n >\n {pinnedActions}\n </ItemActionProvider>\n </div>\n ) : null}\n </ItemElement>\n );\n };\n\n return renderWithTooltip(renderItemElement, defaultTooltipPlacement);\n};\n\nconst _Item = Object.assign(forwardRef<HTMLElement, CubeItemProps>(Item), {\n Action: ItemAction,\n Badge: ItemBadge,\n CloseAction: ItemCloseAction,\n});\n\n/** @private Preserves Item layout around native menu targets. */\nexport const ItemWithNativeSlots = _Item as typeof _Item &\n ForwardRefExoticComponent<\n PropsWithoutRef<ItemWithNativeLinksProps> & RefAttributes<HTMLElement>\n >;\n\nexport { _Item as Item };\n\n/**\n * @deprecated Use `Item` instead. This export will be removed in a future version.\n */\nexport { _Item as ItemBase };\nexport type { CubeItemProps as CubeItemBaseProps };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAgEA,MAAMkD,mBAAmB;CACvB;CACA;CACA;CACA;CACA;CACA;AAAQ;AAmSV,MAAMuD,sBAA8B;CAClCC,GAAG;CACHC,SAAS;CACTC,YAAY;CACZC,cAAc;CACdC,aAAa;CACbC,OAAO;CACPC,SAAS;EACP,IAAI;EACJ,wBAAwB;EACxB,yBAAyB;EACzB,mCAAmC;CACrC;AACF;AAIA,MAAMC,sBAA8B;CAClCP,GAAG;CACHC,SAAS;CACTO,KAAK;CACLN,YAAY;CACZO,WAAW;CACXC,WAAW;CACXC,QAAQ;CAGR,gBAAgB;CAEhB,iBAAiB;AACnB;AAEA,MAAMC,yBAAyB;CAC7BC,UAAUC,MAAkBA,EAAEC,gBAAgB;CAC9CC,gBAAgBF,MAAoBA,EAAEC,gBAAgB;CAKtDE,cAAcH,MAAoB;EAChC,IAAIA,EAAEI,gBAAgB,SAASJ,EAAEC,gBAAgB;CACnD;CACAI,cAAcL,MAAkBA,EAAEC,gBAAgB;CAClDK,YAAYN,MAAkBA,EAAEC,gBAAgB;CAChDM,YAAYP,MAAqB;EAC/B,IAAIA,EAAEQ,QAAQ,WAAWR,EAAEQ,QAAQ,KACjCR,EAAEC,gBAAgB;CAEtB;AACF;AAEA,MAAMQ,cAAc3H,MAAM;CACxB4H,IAAI;CACJC,QAAQ;EACN,eAAe;EACf,eACE;EAEF,sBACE;EAOF,kBAAkB;EAIlB,sBAA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AAA;KACe,gBAAA;KACJ8J,SAAAA;KAAa,GAKjB9J,YAAY,OAAZ+C,yBAAA;KAEJ/C,UAAAA,YAAY,OACX,oBAAC,oBAAD;MACQZ;MACCC;MACcqB;MACL,gBAAA,CAAC,CAACgJ;MACNyC,YAAAA;MAEXnM,UAAAA;KAPgB,CAAA,IADpB;IAWG,CAAA;IAEPG,gBACC,oBAAA,OAAA;KAAkB,gBAAA;KAAe,GAAK4C;KACpC,UAAA,oBAAC,oBAAD;MACQ3D;MACCC;MACcqB;MACTyL,YAAAA;MAEXhM,UAAAA;KANgB,CAAA;IAQf,CAAA,IAVP;GArNS;;CAiOE;CAEhB,OAEKoP,kBAAkBQ,mBAAmB1O,uBAAuB;AAAC;AAGtE,MAAMuP,QAAQ7D,OAAO8D,OAAO1U,WAAuCwO,IAAI,GAAG;CACxEmG,QAAQ3S;CACR4S,OAAO1S;CACP2S,aAAa5S;AACf,CAAC;;AAGD,MAAa6S,sBAAsBL;AAniBtB,SAAA1D,MAAAzJ,KAAA;CAAA,OAgJyCA,QAAQ;AAAI"}
|
|
1
|
+
{"version":3,"file":"Item.js","names":["BaseProps","CONTAINER_STYLES","ContainerStyleProps","mergeStyles","Mods","Styles","tasty","useGlobalStyles","AnchorHTMLAttributes","ForwardedRef","forwardRef","ForwardRefExoticComponent","HTMLAttributes","isValidElement","KeyboardEvent","MouseEvent","PointerEvent","PropsWithoutRef","ReactNode","Ref","RefAttributes","RefObject","PositionProps","useHotkeys","useAutoTooltip","useWarn","CheckIcon","LoadingIcon","ItemActionProvider","ITEM_VARIANTS","ItemVariant","resolveItemVariant","getDisabledElementProps","omitActivationEventProps","highlightText","mergeProps","DynamicIcon","ResolvedIcon","resolveIcon","CubeHotKeysProps","HotKeys","IconSwitch","ItemAction","ItemCloseAction","ItemBadge","mergeTooltipFocusProps","splitTooltipTriggerProps","TooltipFocusProps","CubeTooltipProviderProps","Props","ITEM_SIZE_VALUES","const","ItemMods","checkmark","disabled","selected","loading","size","description","type","theme","shape","CubeItemProps","icon","rightIcon","prefix","suffix","descriptionPlacement","wrapDescription","insideWrapper","isSelected","actions","actionsPlacement","actionsBelowState","pinnedActions","autoHideActions","showActions","skipActionsWidthTransition","preserveActionsSpace","disableActionsFocus","hotkeys","tooltip","Omit","auto","htmlType","labelProps","descriptionProps","keyboardShortcutProps","loadingSlot","isLoading","defaultTooltipPlacement","keepFocusWhenDisabled","hiddenContent","tooltipFocusProps","isTooltipActive","labelRef","HTMLElement","level","highlight","highlightCaseSensitive","highlightStyles","variant","ItemGridActionsProps","DEFAULT_ICON_STYLES","$","display","placeItems","placeContent","aspectRatio","width","opacity","ACTIONS_ZONE_STYLES","gap","placeSelf","boxSizing","height","ACTIONS_EVENT_HANDLERS","onClick","e","stopPropagation","onPointerDown","onPointerUp","pointerType","onMouseDown","onMouseUp","onKeyDown","key","ItemElement","as","styles","flow","outline","gridTemplate","flexShrink","position","padding","margin","radius","border","fill","pressed","color","hovered","preset","recipe","transition","outlineOffset","cursor","$size","Icon","gridArea","pointerEvents","undefined","RightIcon","Label","zIndex","whiteSpace","overflow","textOverflow","Description","textAlign","Prefix","Suffix","Actions","_","interpolateSize","PinnedActions","variants","styleProps","STANDARD_THEMES","CARD_THEMES","HEADER_THEMES","useItemPropWarnings","t0","_c","t1","includes","isInvalidCombination","t2","t3","t4","t5","args","hasLinkWithIcons","hasLinkWithLoading","hasLinkRestrictions","linkRestrictionMessages","push","t6","Symbol","for","t7","join","t8","resolveItemSize","NonNullable","sizeMod","sizeToken","resolveLoadingSlot","hasSlot","IconSlot","content","getIconKey","displayName","name","resolveIconSlot","isLoadingSlot","getHotkeysType","useHotkeyClick","isDisabled","ref","toLowerCase","current","click","enableOnContentEditable","enabled","preventDefault","enableOnFormTags","highlightContent","caseSensitive","ItemWithNativeLinksProps","nativeLinkProps","HTMLAnchorElement","nativeMenuItemProps","nativeRowRef","element","nativeLabelReferenceId","onInlineFocus","HTMLDivElement","onNativeLinkElement","onNativeElement","NativeItemLink","textDecoration","NATIVE_ROW_TARGET_STYLES","inset","clipPath","NATIVE_ROW_CONTROL_SELECTOR","NATIVE_ROW_CONTROL_STYLES","HOTKEYS_STYLES","DISABLED_HOTKEYS_STYLES","Item","props","children","mods","iconProp","rightIconProp","nativeDisabledProp","style","t9","t10","t11","t12","t13","t14","t15","t16","labelRefProp","tokens","rest","hasLabel","finalDescriptionPlacement","finalShape","isDisabledProp","finalIsDisabled","t17","hasCheckmark","baseMods","finalTokens","iconSlot","loadingTarget","t18","resolvedIcon","resolvedRightIcon","rightIconSlot","t19","Object","keys","some","_temp","showDescription","t20","finalPrefix","t21","finalSuffix","canMoveActions","actionsBelowCondition","t22","finalStyles","t23","t24","t25","t26","t27","t28","t29","t30","t31","t32","t33","t34","t35","t36","t37","t38","finalMods","t39","t40","nativeCellMods","t41","t42","descriptionRef","finalLabelProps","renderWithTooltip","isNativelyDisabled","inertProps","keepEvents","t43","processedChildren","t44","processedDescription","renderItemElement","tooltipTriggerProps","tooltipRef","pointerProps","elementTooltipProps","focusProps","handleRef","T","LabelTag","id","element_0","element_1","element_2","_Item","assign","Action","Badge","CloseAction","ItemWithNativeSlots","ItemBase","CubeItemBaseProps","_c","HotKeys"],"sources":["../../../src/components/Item/Item.tsx"],"sourcesContent":["import {\n BaseProps,\n CONTAINER_STYLES,\n ContainerStyleProps,\n mergeStyles,\n Mods,\n Styles,\n tasty,\n useGlobalStyles,\n} from '@tenphi/tasty';\nimport {\n AnchorHTMLAttributes,\n ForwardedRef,\n forwardRef,\n ForwardRefExoticComponent,\n HTMLAttributes,\n isValidElement,\n KeyboardEvent,\n MouseEvent,\n PointerEvent,\n PropsWithoutRef,\n ReactNode,\n Ref,\n RefAttributes,\n RefObject,\n} from 'react';\nimport { PositionProps } from 'react-aria';\nimport { useHotkeys } from 'react-hotkeys-hook';\n\nimport { useAutoTooltip } from '../../hooks/use-auto-tooltip';\nimport { useWarn } from '../../hooks/use-warn';\nimport { CheckIcon } from '../../icons/CheckIcon';\nimport { LoadingIcon } from '../../icons/LoadingIcon';\nimport { ItemActionProvider } from '../../providers/ItemActionContext';\nimport {\n ITEM_VARIANTS,\n ItemVariant,\n resolveItemVariant,\n} from '../../themes/item-themes';\nimport {\n getDisabledElementProps,\n omitActivationEventProps,\n} from '../../utils/disabled-props';\nimport { highlightText } from '../../utils/highlight-text';\nimport { mergeProps } from '../../utils/merge-props';\nimport {\n DynamicIcon,\n ResolvedIcon,\n resolveIcon,\n} from '../../utils/resolve-icon';\nimport { CubeHotKeysProps, HotKeys } from '../HotKeys/HotKeys';\nimport { IconSwitch } from '../IconSwitch/IconSwitch';\nimport { ItemAction } from '../ItemAction/ItemAction';\nimport { ItemCloseAction } from '../ItemAction/ItemCloseAction';\nimport { ItemBadge } from '../ItemBadge/ItemBadge';\nimport {\n mergeTooltipFocusProps,\n splitTooltipTriggerProps,\n TooltipFocusProps,\n} from '../Tooltip/split-trigger-props';\nimport { CubeTooltipProviderProps } from '../Tooltip/TooltipProvider';\n\nimport type { Props } from '../../types/props';\n\nconst ITEM_SIZE_VALUES = [\n 'xsmall',\n 'small',\n 'medium',\n 'large',\n 'xlarge',\n 'inline',\n] as const;\n\n/** Known modifiers for Item component */\nexport type ItemMods = Mods<{\n 'has-icon'?: boolean;\n 'has-start-content'?: boolean;\n 'has-end-content'?: boolean;\n 'has-right-icon'?: boolean;\n 'has-label'?: boolean;\n 'has-prefix'?: boolean;\n 'has-suffix'?: boolean;\n 'has-description'?: boolean;\n 'wrap-description'?: boolean;\n 'has-actions'?: boolean;\n 'has-actions-content'?: boolean;\n 'has-pinned-actions'?: boolean;\n 'actions-below'?: boolean;\n 'auto-hide-actions'?: boolean;\n 'preserve-actions-space'?: boolean;\n checkmark?: boolean;\n disabled?: boolean;\n selected?: boolean;\n loading?: boolean;\n size?: string;\n description?: string;\n type?: string;\n theme?: string;\n shape?: string;\n}>;\n\nexport interface CubeItemProps extends BaseProps, ContainerStyleProps {\n icon?: DynamicIcon<ItemMods> | 'checkmark';\n rightIcon?: DynamicIcon<ItemMods>;\n prefix?: ReactNode;\n suffix?: ReactNode;\n description?: ReactNode;\n descriptionPlacement?: 'inline' | 'block';\n /**\n * Whether a long description wraps onto more lines instead of ending in an ellipsis.\n * @default true for `type=\"card\"` and `type=\"header\"`, false otherwise\n */\n wrapDescription?: boolean;\n /**\n * When true, the item is rendered inside a wrapper element to separate the actions from the item.\n * @default false\n */\n insideWrapper?: boolean;\n /**\n * Whether the item is selected.\n * @default false\n */\n isSelected?: boolean;\n /**\n * Actions to render inline or placeholder mode for ItemButton wrapper.\n * - ReactNode: renders actions inline as part of the grid layout\n * - true: placeholder mode for ItemButton (enables --actions-width calculation)\n */\n actions?: ReactNode | true;\n /**\n * Where the `actions` run sits:\n * - `end` - In a column at the end of the item, beside the label and description\n * - `below` - In a row of its own below the label and description, aligned with the label\n *\n * Ignored with `autoHideActions` and inside a wrapper (`insideWrapper`).\n * @default \"end\"\n */\n actionsPlacement?: 'end' | 'below';\n /**\n * When the `actions` run moves below the label and description, as\n * `actionsPlacement=\"below\"` does from JavaScript:\n * - `true` - On `@mobile`, a viewport narrower than 920px\n * - a string - Any state or condition, such as `'@media(w < 600px)'` or\n * `'@(panel, w < 480px)'`. A container condition needs that container\n * around the item.\n *\n * The switch is CSS only, so the item does not re-render. `pinnedActions`\n * stay at the end either way. Ignored with `autoHideActions` and inside a\n * wrapper (`insideWrapper`).\n */\n actionsBelowState?: boolean | string;\n /**\n * Controls that stay at the end of the item's first row even when the\n * `actions` move below, such as `Item.CloseAction` or a menu trigger. In the\n * `end` placement they follow the actions.\n */\n pinnedActions?: ReactNode;\n /**\n * When true, actions are hidden by default and shown only on hover, focus, or focus-within.\n * Uses opacity transition for visual hiding while maintaining layout space.\n */\n autoHideActions?: boolean;\n /**\n * When true and insideWrapper is true, this controls the visibility of the actions.\n * @default false\n */\n showActions?: boolean;\n /**\n * When true and insideWrapper is true, the width reserved for the actions\n * run changes without animating. The wrapper sets it while it publishes the\n * first width it measures: on mount, once a closed container opens, or\n * after its run is replaced.\n * @default false\n */\n skipActionsWidthTransition?: boolean;\n /**\n * When true, preserves the actions width when hidden (only changes opacity).\n * Only applies when autoHideActions is true.\n * @default false\n */\n preserveActionsSpace?: boolean;\n /**\n * When true, disables focus on action buttons by setting tabIndex={-1}.\n * @default true\n */\n disableActionsFocus?: boolean;\n size?:\n | 'xsmall'\n | 'small'\n | 'medium'\n | 'large'\n | 'xlarge'\n | 'inline'\n | number\n | (string & {});\n type?:\n | 'item'\n | 'header'\n | 'primary'\n | 'outline'\n | 'outline-2'\n | 'clear'\n | 'link'\n | 'card'\n | (string & {});\n theme?:\n | 'default'\n | 'danger'\n | 'success'\n | 'special'\n | 'warning'\n | 'note'\n | 'current'\n | (string & {});\n /** Keyboard shortcut that triggers the element when pressed */\n hotkeys?: string;\n /**\n * Tooltip content and configuration:\n * - string: simple tooltip text\n * - true: auto tooltip on overflow (shows whichever of the label and a string\n * description is truncated)\n * - object: advanced configuration with optional auto property\n */\n tooltip?:\n | string\n | boolean\n | (Omit<CubeTooltipProviderProps, 'children'> & { auto?: boolean });\n /**\n * HTML button type to avoid implicit form submission when used as `as=\"button\"`.\n * Kept separate from visual `type` prop.\n */\n htmlType?: 'button' | 'submit' | 'reset';\n labelProps?: Props;\n descriptionProps?: Props;\n keyboardShortcutProps?: Props;\n /**\n * The slot which the loading icon should replace in loading state.\n * - \"auto\": Smart selection - prefers icon if present, then rightIcon, fallback to icon\n * - Specific slot names: Always use that slot\n * @default \"auto\"\n */\n loadingSlot?: 'auto' | 'icon' | 'rightIcon' | 'prefix' | 'suffix';\n /**\n * When true, shows loading state by replacing the specified slot with LoadingIcon\n * and makes the component disabled.\n */\n isLoading?: boolean;\n /**\n * Shape of the item's border radius.\n * - `card` - Card shape with larger border radius (`1cr`)\n * - `button` - Button shape with default border radius (default)\n * - `sharp` - Sharp corners with no border radius (`0`)\n * - `pill` - Pill shape with fully rounded ends (`round`)\n * @default \"button\"\n */\n shape?: 'card' | 'button' | 'sharp' | 'pill';\n /**\n * @private\n * Default tooltip placement for the item.\n * @default \"top\"\n */\n defaultTooltipPlacement?: PositionProps['placement'];\n /**\n * @private\n * Keeps the item focusable while it is disabled. A composite widget whose\n * arrow keys reach a disabled item, as WAI-ARIA tabs and toolbars do, sets it\n * on its items: the item is then marked `aria-disabled` and kept inert, as it\n * is while it shows a tooltip, instead of taking the native `disabled`\n * attribute, which would drop it from focus.\n */\n keepFocusWhenDisabled?: boolean;\n /**\n * @private\n * The native `disabled` attribute, which `useAction` forwards through\n * `ItemButton`. Treated as an alias of `isDisabled` so that the item stays\n * the only place deciding how the disabled state reaches the DOM.\n */\n disabled?: boolean;\n /**\n * @private\n * Rendered inside the item's element but outside every slot, before them.\n * For a node that has to live in the element without being part of what it\n * shows — the visually hidden native input a button radio lays over itself.\n * Passing such a node as `children` instead would make it part of the label:\n * the auto tooltip and `highlight` only work on a string label, and\n * `has-label` would render an empty, padded `Label` next to a lone icon.\n *\n * As a function it renders the element that takes focus, and receives the\n * tooltip's focus-side trigger props to put on it (see\n * `splitTooltipTriggerProps`): focus lands on that input, not on the item,\n * so on the item they would never open the tooltip from the keyboard. It\n * also learns whether the tooltip can open, which decides whether a\n * disabled input has to keep its focus (see `getDisabledElementProps`).\n */\n hiddenContent?:\n | ReactNode\n | ((\n tooltipFocusProps: TooltipFocusProps,\n isTooltipActive: boolean,\n ) => ReactNode);\n /**\n * Ref to access the label element directly\n */\n labelRef?: Ref<HTMLElement>;\n /**\n * Heading level for the Label element when type=\"header\" or type=\"card\".\n * Changes the Label's HTML tag to the corresponding heading (h1-h6).\n * @default 3\n */\n level?: 1 | 2 | 3 | 4 | 5 | 6;\n /**\n * String to highlight within children.\n * Only works when children is a plain string.\n */\n highlight?: string;\n /**\n * Whether highlight matching is case-sensitive.\n * @default false\n */\n highlightCaseSensitive?: boolean;\n /**\n * Custom styles for highlighted text.\n */\n highlightStyles?: Styles;\n /**\n * Variant of the item.\n */\n variant?: ItemVariant;\n}\n\n/**\n * The props that lay the actions out in the item's own grid. A wrapper whose\n * item is a button with its actions run beside it (`ItemButton`, a tab, a\n * picker trigger) omits them: the run can't move below, and a pinned zone\n * inside the button would nest buttons.\n */\nexport type ItemGridActionsProps =\n 'actionsPlacement' | 'actionsBelowState' | 'pinnedActions';\n\nconst DEFAULT_ICON_STYLES: Styles = {\n $: '>',\n display: 'grid',\n placeItems: 'center',\n placeContent: 'stretch',\n aspectRatio: '1 / 1',\n width: '($size - 2bw)',\n opacity: {\n '': 1,\n 'checkmark & selected': 1,\n 'checkmark & !selected': 0,\n 'checkmark & !selected & hovered': 0.4,\n },\n};\n\n// Shared by the two action zones, `Actions` and `PinnedActions`: a row of\n// action buttons as tall as the item's own slot, its buttons centered in it.\nconst ACTIONS_ZONE_STYLES: Styles = {\n $: '>',\n display: 'flex',\n gap: '$item-gap',\n placeItems: 'center',\n placeSelf: 'stretch',\n boxSizing: 'border-box',\n height: 'min ($size - 2bw)',\n\n // Size for the action buttons\n '$action-size': 'min(max((2x + 2bw), ($size - 1x - 2bw)), (3x - 2bw))',\n // Side padding for the button\n '$side-padding': '(($size - $action-size - 2bw) / 2)',\n};\n\nconst ACTIONS_EVENT_HANDLERS = {\n onClick: (e: MouseEvent) => e.stopPropagation(),\n onPointerDown: (e: PointerEvent) => e.stopPropagation(),\n // A menu item runs on a mouse release it was not pressed on, so a press can\n // start on its trigger and end on it: such a release from an action must not\n // reach the row. Any other release must reach the document, where React Aria\n // ends a touch press; without it a tap on an action ends as a miss.\n onPointerUp: (e: PointerEvent) => {\n if (e.pointerType === 'mouse') e.stopPropagation();\n },\n onMouseDown: (e: MouseEvent) => e.stopPropagation(),\n onMouseUp: (e: MouseEvent) => e.stopPropagation(),\n onKeyDown: (e: KeyboardEvent) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.stopPropagation();\n }\n },\n};\n\nconst ItemElement = tasty({\n as: 'div',\n styles: {\n '@native-row': 'menu-native-row',\n '@interacted':\n 'active | :hover | :focus | :focus-within | :has([data-pressed])',\n // A plain Item's auto-hidden actions while they are hidden.\n '@actions-collapsed':\n 'auto-hide-actions & !preserve-actions-space & !inside-wrapper & !@interacted',\n // The `actions` run on a row of its own below the label and description\n // (only when there is a run: pinned controls alone never move).\n // `actionsBelowState` widens it with a condition of the caller's, which can\n // be a container query: so only sub-elements read it (an item inside its\n // own container sees that container only from them), and every map that\n // reads it keeps its base value as a `_` floor or emits nothing by default.\n '@actions-below': 'has-actions-content & actions-below',\n\n display: 'inline-grid',\n flow: 'column dense',\n gap: 0,\n outline: 0,\n placeItems: 'stretch',\n placeContent: 'stretch',\n // `pinned` is the last column: the `PinnedActions` zone keeps it when the\n // `actions` run moves below. Empty, it is 0px wide.\n gridTemplate: {\n '': '\"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',\n 'description=inline':\n '\"icon prefix description suffix rightIcon actions pinned\" auto / max-content max-content 1sf max-content max-content max-content max-content',\n 'description=inline & has-label':\n '\"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',\n 'description=block':\n '\"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',\n },\n // Prevent items from shrinking inside vertical flex layouts (Menu, ListBox, etc)\n flexShrink: {\n '': 'initial',\n 'menuitem | listboxitem': 0,\n },\n position: 'relative',\n padding: {\n '': 0,\n 'type=card': '.5x',\n },\n margin: 0,\n radius: {\n '': true,\n 'shape=card': '1cr',\n 'shape=button': true,\n 'shape=sharp': '0',\n 'shape=pill': 'round',\n },\n height: {\n '': 'min $size',\n 'size=inline': '(1lh + 2bw)',\n },\n width: {\n '': 'min $size',\n // An actions run is end content just like a right icon — a trigger that\n // puts its caret in the run instead of the `rightIcon` slot must keep the\n // same minimum as one that does not. Only for a SIBLING run: an in-grid\n // one is laid out by this element's own columns, which already sized the\n // row before the run existed, and widening it there would push a tab's or\n // a tag's border out past its content.\n 'has-icon & (has-right-icon | (has-actions & inside-wrapper))':\n 'min ($size * 2)',\n 'size=inline': 'min (1lh + 2bw)',\n },\n border: '#clear',\n fill: {\n '': '#dark.0',\n 'hovered | focused': '#dark.03',\n selected: '#dark.09',\n 'selected & (hovered | focused)': '#dark.12',\n pressed: '#dark.09',\n disabled: '#clear',\n },\n color: {\n '': '#dark-02',\n hovered: '#dark-02',\n pressed: '#dark',\n disabled: '#disabled-surface-text',\n },\n preset: {\n '': 't3',\n '!type=item': 't3m',\n 'size=xsmall': 't4',\n 'size=xlarge': 't2',\n 'size=inline': 'inherit',\n '!type=item & (size=medium | size=small | size=large)': 't3m',\n '!type=item & size=xlarge': 't2m',\n '(type=header | type=card) & (size=xsmall | size=small | size=medium)':\n 'h6',\n '(type=header | type=card) & size=large': 'h5',\n '(type=header | type=card) & size=xlarge': 'h4',\n },\n recipe: 'reset button',\n transition: 'theme',\n outlineOffset: '$outline-offset',\n cursor: {\n '': 'inherit',\n ':is(a)': 'pointer',\n ':is(button) | listboxitem | menuitem': '$pointer',\n disabled: 'not-allowed',\n },\n\n $size: {\n '': '$size-md',\n 'size=xsmall': '$size-xs',\n 'size=small': '$size-sm',\n 'size=medium': '$size-md',\n 'size=large': '$size-lg',\n 'size=xlarge': '$size-xl',\n 'size=inline': '(1lh + 2bw)',\n },\n '$inline-padding':\n 'max($min-inline-padding, (($size - 1lh - 2bw) / 2 + $inline-compensation))',\n '$block-padding': {\n '': '.5x',\n 'size=xsmall | size=small': '.25x',\n 'size=inline': 0,\n },\n '$inline-compensation': '.5x',\n '$min-inline-padding': '(1x - 1bw)',\n\n // Gap between the `Prefix` / `Suffix` slots and the `Label`. Zero by\n // default because most prefix and suffix content is a box that already\n // carries its own presence — a checkbox, a kbd chip, a badge — and a gap\n // on top of that reads as too much. A BARE GLYPH is the case that needs\n // one: it sits flush against the label, where the same glyph in the `Icon`\n // slot looks spaced because that slot centres it in a `$size` square.\n //\n // Set it at the call site for those:\n // <Item styles={{ '$prefix-gap': '1x' }} prefix={<MemberIcon />}>\n '$prefix-gap': 0,\n '$suffix-gap': 0,\n\n '$label-padding-left': {\n '': '$inline-padding',\n 'has-start-content': '0',\n },\n '$label-padding-right': {\n '': '$inline-padding',\n 'has-end-content': '0',\n // Restore padding when actions are hidden AND no other visible end content\n '@actions-collapsed & !has-suffix & !has-right-icon & !has-pinned-actions':\n '$inline-padding',\n 'inside-wrapper & !has-suffix & !has-right-icon & !has-pinned-actions & !preserve-actions-space & !actions-shown':\n '$inline-padding',\n },\n '$label-padding-bottom': {\n '': '$block-padding',\n 'description=inline': '0',\n },\n '$description-padding-left': {\n '': '$inline-padding',\n 'has-start-content': 0,\n 'description=block': '($inline-padding - $inline-compensation + 1bw)',\n 'description=block & !has-start-content': '$inline-padding',\n },\n '$description-padding-right': {\n '': '$inline-padding',\n 'has-end-content': 0,\n 'description=block': '($inline-padding - $inline-compensation + 1bw)',\n 'description=block & !has-end-content': '$inline-padding',\n },\n '$description-padding-bottom': {\n '': 0,\n 'has-label & description=inline': '$block-padding',\n 'has-label & description=block':\n 'max($block-padding, (($size - 4x) / 2) + $block-padding)',\n },\n\n Icon: mergeStyles(DEFAULT_ICON_STYLES, {\n gridArea: 'icon',\n // A native row's Icon, Label and Description are aria-hidden copies of\n // the primary link that keep the slot layout. Presses pass through them\n // to the primary anchor, so it is the hit target wherever the text runs.\n pointerEvents: { '': undefined, '@native-row': 'none' },\n }),\n\n RightIcon: mergeStyles(DEFAULT_ICON_STYLES, { gridArea: 'rightIcon' }),\n\n Label: {\n $: '>',\n margin: 0,\n zIndex: { '': undefined, '@native-row': 1 },\n pointerEvents: { '': undefined, '@native-row': 'none' },\n gridArea: 'label',\n display: 'block',\n placeSelf: 'center start',\n boxSizing: 'border-box',\n placeContent: 'stretch',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n width: '0 100%',\n preset: 'inherit',\n transition: 'padding',\n padding:\n '$block-padding $label-padding-right $label-padding-bottom $label-padding-left',\n // The actions below leave the row's end free: take back the end padding\n // they made the label drop, unless other end content still sits there.\n '$label-padding-right': {\n '': undefined,\n '@actions-below & !has-suffix & !has-right-icon & !has-pinned-actions':\n '$inline-padding',\n },\n },\n\n Description: {\n $: '>',\n gridArea: 'description',\n pointerEvents: { '': undefined, '@native-row': 'none' },\n preset: {\n '': 't4',\n 'type=card | type=header': 't3',\n },\n placeSelf: 'center start',\n boxSizing: 'border-box',\n color: 'inherit',\n opacity: {\n '': 0.75,\n 'type=card | type=header': 1,\n },\n overflow: 'hidden',\n whiteSpace: {\n '': 'nowrap',\n 'wrap-description': 'normal',\n },\n textOverflow: 'ellipsis',\n width: 'initial 100% 100%',\n textAlign: 'left',\n padding:\n '0 $description-padding-right $description-padding-bottom $description-padding-left',\n // As on `Label`.\n '$description-padding-right': {\n '': undefined,\n '@actions-below & !has-suffix & !has-right-icon & !has-pinned-actions':\n '$inline-padding',\n },\n },\n\n Prefix: {\n $: '>',\n display: 'grid',\n flow: 'column',\n placeItems: 'center',\n placeContent: 'stretch',\n gridArea: 'prefix',\n zIndex: { '': undefined, '@native-row': 1 },\n pointerEvents: { '': undefined, '@native-row': 'none' },\n // The trailing value is `$prefix-gap` (see the token above): the grid\n // supplies no gap and `Label` drops its own left padding for any start\n // content, so a bare prefix glyph would otherwise sit flush against the\n // label. The leading value is the item's gutter, yielding to the icon\n // slot when one is present.\n padding: {\n '': '0 $prefix-gap 0 $inline-padding',\n 'has-icon': '$prefix-gap right',\n },\n },\n\n Suffix: {\n $: '>',\n display: 'grid',\n flow: 'column',\n placeItems: 'center',\n placeContent: 'stretch',\n gridArea: 'suffix',\n zIndex: { '': undefined, '@native-row': 1 },\n pointerEvents: { '': undefined, '@native-row': 'none' },\n // Mirror of `Prefix`: the leading value is `$suffix-gap`.\n padding: {\n '': '0 $inline-padding 0 $suffix-gap',\n // The TRAILING padding only. Same reason — and the same restriction —\n // as the minimum width above: a sibling run already carries\n // `$side-padding` on both sides, so the suffix must not add the inline\n // padding on top of it, exactly as it does not next to a right icon.\n // Only while the run is shown or keeps its space: a hidden run is 0px\n // wide, so the suffix keeps its own end padding then, as the label\n // does (`$label-padding-right`).\n 'has-right-icon | (has-actions & inside-wrapper & (actions-shown | preserve-actions-space))':\n '$suffix-gap left',\n },\n // The run's reserved width animates as it appears; so does this.\n transition: 'padding',\n },\n\n Actions: mergeStyles(ACTIONS_ZONE_STYLES, {\n zIndex: { '': undefined, '@native-row': 1 },\n pointerEvents: { '': undefined, '@native-row': 'none' },\n // Below, the run takes a row of its own under every other slot, from the\n // label's column (the description's, when that spans the row) to the end.\n gridArea: {\n _: 'actions',\n '@actions-below': '3 / 3 / auto / -1',\n '@actions-below & description=block': '3 / 1 / auto / -1',\n },\n // Below, the run starts where the text does and wraps onto more lines.\n placeContent: { _: 'end', '@actions-below': 'center start' },\n flow: { '': undefined, '@actions-below': 'row wrap' },\n // Below, the row hugs its buttons: a slot-tall row would center them in\n // space above that pushes them away from the text they belong to. The\n // item's rhythm comes back as padding below (see `padding`).\n height: { _: 'min ($size - 2bw)', '@actions-below': 'min 0' },\n padding: {\n _: '0 $side-padding',\n // Inside a wrapper this column is a PLACEHOLDER: the run itself is a\n // sibling that carries its own side padding, and `--actions-width`\n // already includes it. Repeating it here is at best a no-op — the column\n // is `border-box` and that wide — and at worst wrong: an EMPTY run\n // publishes a width of 0, and the padding would still reserve\n // `2 * $side-padding` for nothing, pushing a right icon inwards.\n 'inside-wrapper': 0,\n // Hidden auto-hide actions collapse to zero width, as documented: the\n // label already restores its own end padding (`$label-padding-right`).\n '@actions-collapsed': 0,\n // Lined up with the text above: the label's start, or the start of a\n // description that spans the row. Twice the block padding below, as a\n // button has no line spacing to lend the bottom edge.\n '@actions-below':\n '0 $inline-padding (2 * $block-padding) $label-padding-left',\n '@actions-below & description=block':\n '0 $inline-padding (2 * $block-padding) $description-padding-left',\n },\n // A hidden action is invisible but would still spill over the label\n // and catch a tap there (a touch screen has no hover to reveal it first).\n // `clip` removes that hit area and keeps the action focusable, so\n // `:focus-within` still reveals it; unlike `hidden`, it never scrolls.\n overflow: {\n '': undefined,\n '@actions-collapsed': 'clip',\n },\n width: {\n '': 'fixed ($actions-width, 0px)',\n 'has-actions-content & !auto-hide-actions':\n 'max calc-size(max-content, size)',\n 'has-actions-content & auto-hide-actions & !preserve-actions-space':\n 'max 0px',\n 'has-actions-content & auto-hide-actions & (!preserve-actions-space & ((@interacted & !inside-wrapper) | (inside-wrapper & actions-shown)))':\n 'max calc-size(max-content, size)',\n 'has-actions-content & auto-hide-actions & preserve-actions-space':\n 'max calc-size(max-content, size)',\n },\n opacity: {\n '': 1,\n 'auto-hide-actions': 0,\n 'auto-hide-actions & ((@interacted & !inside-wrapper) | (inside-wrapper & actions-shown))': 1,\n },\n transition: {\n '': 'width $transition ease-out, opacity $transition ease-out, padding $transition ease-out',\n // The wrapper's first measurement lands here with no width transition,\n // so the row starts at its reserved width instead of growing into it.\n 'skip-actions-width-transition':\n 'opacity $transition ease-out, padding $transition ease-out',\n },\n interpolateSize: 'allow-keywords',\n }),\n\n // Controls that keep the row's end when the `actions` run moves below.\n // Menu rows, the only native rows, take none (see `MenuItem`), so unlike\n // `Actions` it has no native-row handling.\n PinnedActions: mergeStyles(ACTIONS_ZONE_STYLES, {\n gridArea: 'pinned',\n placeContent: 'end',\n // With the actions below, the text can run to several lines: the zone\n // keeps the top corner, its controls on the label's first line, rather\n // than centering on the whole text.\n placeSelf: { _: 'stretch', '@actions-below': 'start stretch' },\n height: { _: 'min ($size - 2bw)', '@actions-below': 'min 0' },\n // Next to a run at the end, the run's own end padding already separates\n // the two, so this one drops its start padding.\n padding: {\n _: '0 $side-padding',\n 'has-actions-content': '$side-padding right',\n '@actions-collapsed': '0 $side-padding',\n '@actions-below': '$block-padding top, $side-padding left right',\n },\n }),\n },\n variants: {\n ...ITEM_VARIANTS,\n // ItemCard's palette stays local so consumer directives reach this owner.\n 'default.item-card': mergeStyles(ITEM_VARIANTS['default.card'], {\n fill: '#surface',\n border: '#border',\n }),\n },\n styleProps: CONTAINER_STYLES,\n});\n\n// Valid type+theme combinations. `current` is a theme like any other here: it\n// has a flavour for every type, so it is listed wherever `default` is.\nconst STANDARD_THEMES = [\n 'default',\n 'success',\n 'danger',\n 'warning',\n 'note',\n 'special',\n 'current',\n];\nconst CARD_THEMES = [\n 'default',\n 'success',\n 'danger',\n 'warning',\n 'note',\n 'current',\n];\nconst HEADER_THEMES = ['default'];\n\n/**\n * Warns about prop combinations the item does not support: a theme its type\n * has no flavour for, and the icons or loading state the \"link\" type cannot\n * show.\n */\nfunction useItemPropWarnings({\n type,\n theme,\n icon,\n rightIcon,\n isLoading,\n}: {\n type: string;\n theme: string;\n icon: CubeItemProps['icon'];\n rightIcon: CubeItemProps['rightIcon'];\n isLoading: boolean;\n}) {\n const isInvalidCombination =\n (type === 'header' && !HEADER_THEMES.includes(theme)) ||\n (type === 'card' && !CARD_THEMES.includes(theme)) ||\n (!['header', 'card'].includes(type) && !STANDARD_THEMES.includes(theme));\n\n useWarn(isInvalidCombination, {\n key: ['Item', 'invalid-type-theme', type, theme],\n args: [\n `Item: Invalid type+theme combination. type=\"${type}\" does not support theme=\"${theme}\".` +\n (type === 'header'\n ? ' The \"header\" type only supports theme: default.'\n : type === 'card'\n ? ' The \"card\" type only supports themes: default, success, danger, warning, note, current.'\n : ' Standard types support themes: default, success, danger, warning, note, special, current.'),\n ],\n });\n\n // Warn if link type is used with icons or loading state\n const hasLinkWithIcons = type === 'link' && (icon || rightIcon);\n const hasLinkWithLoading = type === 'link' && isLoading;\n const hasLinkRestrictions = hasLinkWithIcons || hasLinkWithLoading;\n\n const linkRestrictionMessages: string[] = [];\n if (hasLinkWithIcons) {\n linkRestrictionMessages.push('icons (`icon` or `rightIcon` props)');\n }\n if (hasLinkWithLoading) {\n linkRestrictionMessages.push('loading state (`isLoading` prop)');\n }\n\n useWarn(hasLinkRestrictions, {\n key: ['Item', 'link-restrictions'],\n args: [\n `Item: The \"link\" type does not support ${linkRestrictionMessages.join(' or ')}. Remove these props when using type=\"link\".`,\n ],\n });\n}\n\n/**\n * Splits `size` between the two ways the element takes it. A named size sets\n * the `size` mod, which picks the matching `$size` in the styles; any other\n * value (a number of pixels or a custom length) sets the `$size` token itself.\n */\nfunction resolveItemSize(size: NonNullable<CubeItemProps['size']>): {\n sizeMod?: string;\n sizeToken?: string;\n} {\n if (typeof size === 'number') return { sizeToken: `${size}px` };\n\n if ((ITEM_SIZE_VALUES as readonly string[]).includes(size)) {\n return { sizeMod: size };\n }\n\n return { sizeToken: size };\n}\n\n/**\n * The slot the loading icon replaces, or `undefined` when the item is not\n * loading. Auto logic: prefer icon if present, then rightIcon, fallback to\n * icon.\n */\nfunction resolveLoadingSlot(\n loadingSlot: NonNullable<CubeItemProps['loadingSlot']>,\n isLoading: boolean,\n icon: ResolvedIcon,\n rightIcon: ResolvedIcon,\n) {\n if (!isLoading) return undefined;\n if (loadingSlot !== 'auto') return loadingSlot;\n\n return rightIcon.hasSlot && !icon.hasSlot ? 'rightIcon' : 'icon';\n}\n\n/** What an icon slot renders, and the key its `IconSwitch` transitions on. */\ninterface IconSlot {\n hasSlot: boolean;\n content: ReactNode;\n key: string;\n}\n\n/** A stable key for icon transitions, based on the icon type. */\nfunction getIconKey(icon: ReactNode) {\n if (isValidElement(icon)) {\n return (\n (icon.type as any)?.displayName || (icon.type as any)?.name || 'icon'\n );\n }\n\n return icon ? 'icon' : 'empty';\n}\n\n/**\n * Applies the loading state to an icon slot. The slot renders when it has an\n * icon or an empty slot was asked for, or when the loading state targets it:\n * the loading icon then replaces the icon.\n */\nfunction resolveIconSlot(icon: ResolvedIcon, isLoadingSlot: boolean): IconSlot {\n if (isLoadingSlot) {\n return { hasSlot: true, content: <LoadingIcon />, key: 'loading' };\n }\n\n return {\n hasSlot: icon.hasSlot,\n content: icon.content,\n key: getIconKey(icon.content),\n };\n}\n\n/**\n * Which HotKeys flavour the shortcut hint wears. `inherit` paints the hint's\n * glyphs and rim from `currentcolor`, so it tracks whatever the row labels\n * itself with; `primary` pins the hint to `#white`; `default` is a neutral\n * `#dark.65` chip built for a page-colored row.\n *\n * The whole `current` theme wants `inherit`: every flavour there derives its\n * label from the inherited color, and a fixed hint cannot follow that. The\n * neutral `#dark.65`-on-`#dark.04` chip all but vanishes on a dark overlay,\n * which is exactly where this theme is meant to be used.\n *\n * `current.primary` is included despite painting its label with\n * `-webkit-text-fill-color` rather than `color`. The hint renders inside the\n * `Suffix` slot, and `CURRENT_PRIMARY_STYLES` recolors that slot to the label\n * color — so `currentcolor` there is the LABEL, not the fill. An earlier\n * version of this comment claimed the opposite and sent it to `primary`, which\n * put a `#white` hint on a light fill (measured cr 2.17 on a `#note` container\n * in dark mode).\n */\nfunction getHotkeysType(theme: string, type: string): CubeHotKeysProps['type'] {\n if (theme === 'current') return 'inherit';\n\n return type === 'primary' ? 'primary' : 'default';\n}\n\n/** Registers `hotkeys` as a global shortcut that clicks the item. */\nfunction useHotkeyClick<T extends HTMLElement>(\n hotkeys: string | undefined,\n isDisabled: boolean,\n ref: ForwardedRef<T>,\n) {\n useHotkeys(\n typeof hotkeys === 'string' ? hotkeys.toLowerCase() : '',\n () => {\n if (!hotkeys) return;\n if (isDisabled) return;\n // Simulate a click on the element so all existing handlers run\n if (ref && typeof ref === 'object' && ref.current) {\n (ref.current as HTMLElement).click();\n }\n },\n {\n enableOnContentEditable: true,\n enabled: !!hotkeys,\n preventDefault: true,\n enableOnFormTags: true,\n },\n [hotkeys, isDisabled],\n );\n}\n\n/**\n * Highlights matches of `highlight` in a plain-string label or description.\n * Any other content is returned as is.\n */\nfunction highlightContent(\n content: ReactNode,\n highlight: string | undefined,\n caseSensitive: boolean,\n highlightStyles: Styles | undefined,\n): ReactNode {\n return typeof content === 'string' && highlight\n ? highlightText(content, highlight, caseSensitive, highlightStyles)\n : content;\n}\n\nexport interface ItemWithNativeLinksProps extends CubeItemProps {\n nativeLinkProps?: AnchorHTMLAttributes<HTMLAnchorElement>;\n nativeMenuItemProps?: AnchorHTMLAttributes<HTMLAnchorElement> & {\n 'data-menu-native-primary'?: string;\n 'data-key'?: string;\n 'data-collection'?: string;\n };\n nativeRowRef?: (element: HTMLAnchorElement | null) => void;\n nativeLabelReferenceId?: string;\n onInlineFocus?: HTMLAttributes<HTMLDivElement>['onFocus'];\n onNativeLinkElement?: (element: HTMLAnchorElement | null) => void;\n onNativeElement?: (element: HTMLElement | null) => void;\n}\n\n// Native defaults stay beneath the owning Item's slot styles and their resets.\nconst NativeItemLink = tasty({\n as: 'a',\n styles: {\n display: 'block',\n color: 'inherit',\n textDecoration: 'none',\n outline: 0,\n zIndex: {\n '': 'auto',\n 'row-native-cell': 1,\n },\n },\n});\n\nconst NATIVE_ROW_TARGET_STYLES: Styles = {\n position: 'absolute',\n inset: '($native-row-inset, 0)',\n width: '($native-row-width, auto)',\n height: '($native-row-height, auto)',\n clipPath: '($native-row-clip, none)',\n zIndex: 0,\n};\n\n// A zero-specificity default restores controls inside pointer-transparent\n// slots. Consumer styles win even when their class was injected earlier.\nconst NATIVE_ROW_CONTROL_SELECTOR =\n ':where([data-menu-native-row]) :where([data-element=Prefix],[data-element=Suffix],[data-element=Actions]) :where(a[href],button,input,select,textarea,label[for],label:has(button,input,select,textarea),[tabindex],[contenteditable=\"\"],[contenteditable=\"true\"],[contenteditable=\"plaintext-only\"],[role=\"button\"],[role=\"checkbox\"],[role=\"switch\"],[role=\"menuitem\"],[role=\"menuitemcheckbox\"],[role=\"menuitemradio\"],[role=\"radio\"],[role=\"textbox\"],[role=\"combobox\"],[role=\"slider\"],[role=\"spinbutton\"],[role=\"link\"])';\nconst NATIVE_ROW_CONTROL_STYLES: Styles = { pointerEvents: 'auto' };\n\nconst HOTKEYS_STYLES: Styles = { padding: '1x left', opacity: 1 };\nconst DISABLED_HOTKEYS_STYLES: Styles = { padding: '1x left', opacity: 0.5 };\n\nconst Item = <T extends HTMLElement = HTMLDivElement>(\n props: ItemWithNativeLinksProps,\n ref: ForwardedRef<T>,\n) => {\n let {\n children,\n size = 'medium',\n type = 'item',\n theme = 'default',\n mods,\n icon: iconProp,\n rightIcon: rightIconProp,\n prefix,\n suffix,\n description,\n descriptionPlacement,\n wrapDescription,\n labelProps,\n descriptionProps,\n keyboardShortcutProps,\n styles,\n htmlType,\n isSelected,\n hotkeys,\n tooltip = true,\n isDisabled,\n // `useAction` (through `ItemButton`) hands the native attribute down as\n // well. Fold it into the disabled state so this component stays the only\n // place deciding how that state reaches the DOM.\n disabled: nativeDisabledProp,\n style,\n loadingSlot = 'auto',\n isLoading = false,\n actions,\n actionsPlacement = 'end',\n actionsBelowState,\n pinnedActions,\n autoHideActions = false,\n preserveActionsSpace = false,\n disableActionsFocus = false,\n shape,\n defaultTooltipPlacement = 'top',\n keepFocusWhenDisabled = false,\n level = 3,\n highlight,\n highlightCaseSensitive = false,\n highlightStyles,\n insideWrapper = false,\n showActions = false,\n skipActionsWidthTransition = false,\n hiddenContent,\n // Destructured so it reaches the label, not the element's DOM attributes.\n labelRef: labelRefProp,\n nativeLinkProps,\n nativeMenuItemProps,\n nativeRowRef,\n nativeLabelReferenceId,\n onInlineFocus,\n onNativeLinkElement,\n onNativeElement,\n tokens,\n ...rest\n } = props;\n\n useGlobalStyles(\n NATIVE_ROW_CONTROL_SELECTOR,\n nativeMenuItemProps ? NATIVE_ROW_CONTROL_STYLES : undefined,\n );\n\n // Determine if Label will be rendered\n const hasLabel = !!(children || labelProps);\n\n // Set default descriptionPlacement based on type\n // For card/header types, use 'block' only when Label is rendered\n const finalDescriptionPlacement =\n descriptionPlacement ??\n ((type === 'card' || type === 'header') && hasLabel ? 'block' : 'inline');\n\n // Set default shape based on type\n const finalShape = shape ?? (type === 'card' ? 'card' : 'button');\n\n const isDisabledProp = isDisabled ?? (nativeDisabledProp || undefined);\n\n // Loading state makes the component disabled\n const finalIsDisabled =\n isDisabledProp === true || (isLoading && isDisabledProp !== false);\n\n useItemPropWarnings({\n type,\n theme,\n icon: iconProp,\n rightIcon: rightIconProp,\n isLoading,\n });\n\n // Determine if we should show a checkmark instead of icon\n const hasCheckmark = iconProp === 'checkmark';\n\n const { sizeMod, sizeToken } = resolveItemSize(size);\n // Built outside `renderItemElement`: read inside that closure, `sizeToken`\n // kept React Compiler from memoizing the mods, slots and hotkeys before it.\n const finalTokens = { ...tokens, ...(sizeToken ? { $size: sizeToken } : {}) };\n\n // Base mods for icon resolution (without icon-dependent mods)\n const baseMods: ItemMods = {\n disabled: finalIsDisabled,\n selected: isSelected === true,\n loading: isLoading,\n ...(sizeMod !== undefined && { size: sizeMod }),\n type,\n theme,\n shape: finalShape,\n ...mods,\n };\n\n // Resolve dynamic icon props (skip resolution for 'checkmark' special value)\n const resolvedIcon = hasCheckmark\n ? { content: null, hasSlot: true }\n : resolveIcon(iconProp as DynamicIcon<ItemMods>, baseMods);\n\n const resolvedRightIcon = resolveIcon(rightIconProp, baseMods);\n\n // Determine which slot to use for loading\n const loadingTarget = resolveLoadingSlot(\n loadingSlot,\n isLoading,\n resolvedIcon,\n resolvedRightIcon,\n );\n\n // Apply loading state to appropriate slots. The checkmark keeps the icon\n // slot even when the loading state targets it.\n const iconSlot: IconSlot = hasCheckmark\n ? { hasSlot: true, content: <CheckIcon />, key: 'checkmark' }\n : resolveIconSlot(resolvedIcon, loadingTarget === 'icon');\n const rightIconSlot = resolveIconSlot(\n resolvedRightIcon,\n loadingTarget === 'rightIcon',\n );\n\n const showDescription =\n !!description ||\n Object.keys(descriptionProps ?? {}).some((key) => key !== 'id');\n\n const finalPrefix = loadingTarget === 'prefix' ? <LoadingIcon /> : prefix;\n\n // Build final suffix: loading icon, custom suffix, or HotKeys hint\n const finalSuffix =\n loadingTarget === 'suffix' ? (\n <LoadingIcon />\n ) : (\n (suffix ??\n (hotkeys ? (\n <HotKeys\n {...(keyboardShortcutProps as any)}\n type={getHotkeysType(theme, type)}\n styles={finalIsDisabled ? DISABLED_HOTKEYS_STYLES : HOTKEYS_STYLES}\n >\n {hotkeys}\n </HotKeys>\n ) : undefined))\n );\n\n // Register global hotkey if provided\n useHotkeyClick(hotkeys, finalIsDisabled, ref);\n\n // The run moves below only from the grid: a wrapper's run is a sibling of\n // the item, and auto-hidden actions would leave an empty row behind.\n const canMoveActions = !insideWrapper && !autoHideActions;\n // `true` moves the actions on `@mobile`. An item that never moves them keeps\n // the very styles it had, so its CSS is unchanged.\n const actionsBelowCondition = canMoveActions\n ? actionsBelowState === true\n ? '@mobile'\n : actionsBelowState || undefined\n : undefined;\n const finalStyles = actionsBelowCondition\n ? {\n // oxlint-disable-next-line tasty/no-runtime-styles-mutation -- forwards the public `actionsBelowState` condition, which the item's own maps read as `@actions-below`\n '@actions-below': `has-actions-content & (actions-below | (${actionsBelowCondition}))`,\n // oxlint-disable-next-line tasty/no-style-spread -- forwards the caller's public `styles` after the condition, so they still win\n ...styles,\n }\n : styles;\n\n const finalMods: ItemMods = {\n ...baseMods,\n 'has-icon': iconSlot.hasSlot,\n 'has-start-content': !!(iconSlot.hasSlot || finalPrefix),\n 'has-end-content': !!(\n rightIconSlot.hasSlot ||\n finalSuffix ||\n actions ||\n pinnedActions\n ),\n 'has-right-icon': rightIconSlot.hasSlot,\n 'has-label': hasLabel,\n 'has-prefix': !!finalPrefix,\n 'has-suffix': !!finalSuffix,\n 'has-description': showDescription,\n 'wrap-description':\n showDescription &&\n (wrapDescription ?? (type === 'card' || type === 'header')),\n 'has-actions': !!actions,\n 'has-actions-content': !!(actions && actions !== true),\n 'has-pinned-actions': !!pinnedActions,\n 'actions-below': canMoveActions && actionsPlacement === 'below',\n 'menu-native-row': !!nativeMenuItemProps,\n 'auto-hide-actions': autoHideActions === true,\n 'preserve-actions-space': preserveActionsSpace === true,\n 'inside-wrapper': insideWrapper,\n 'actions-shown': showActions && insideWrapper,\n 'skip-actions-width-transition':\n skipActionsWidthTransition && insideWrapper,\n checkmark: hasCheckmark,\n description: showDescription ? finalDescriptionPlacement : 'none',\n };\n const nativeCellMods = {\n 'row-native-cell': finalMods['menu-native-row'],\n };\n\n const {\n labelProps: finalLabelProps,\n labelRef,\n descriptionRef,\n renderWithTooltip,\n isTooltipActive,\n } = useAutoTooltip({\n tooltip,\n children,\n // The description truncates exactly like the label, so it is measured with\n // it and shown in the same tooltip. Raw, not highlighted: the tooltip shows\n // plain text.\n description,\n labelProps,\n labelRef: labelRefProp,\n // The hook owns the description's ref, so one passed in `descriptionProps`\n // is handed to it rather than lost under the spread below.\n descriptionRef: (descriptionProps as { ref?: Ref<HTMLElement> } | undefined)\n ?.ref,\n });\n\n // A disabled item still has to be able to show its tooltip — that is usually\n // where the reason for being unavailable is written. The native `disabled`\n // attribute would make the browser drop the hover that opens it, so when a\n // tooltip is present the item is marked `aria-disabled` and kept inert\n // instead.\n const { isNativelyDisabled, inertProps } = getDisabledElementProps({\n isDisabled: finalIsDisabled,\n keepEvents: isTooltipActive || keepFocusWhenDisabled,\n as: (rest as { as?: string }).as,\n });\n\n // Process children and description with highlight if applicable\n const processedChildren = highlightContent(\n children,\n highlight,\n highlightCaseSensitive,\n highlightStyles,\n );\n const processedDescription = highlightContent(\n description,\n highlight,\n highlightCaseSensitive,\n highlightStyles,\n );\n\n // Render function that creates the item element\n const renderItemElement = (\n tooltipTriggerProps?: HTMLAttributes<HTMLElement>,\n tooltipRef?: RefObject<HTMLElement>,\n ) => {\n const { pointerProps: elementTooltipProps, focusProps: tooltipFocusProps } =\n typeof hiddenContent === 'function' || nativeMenuItemProps\n ? splitTooltipTriggerProps(tooltipTriggerProps)\n : { pointerProps: tooltipTriggerProps, focusProps: undefined };\n\n // Use callback ref to merge multiple refs without calling hooks\n const handleRef = (element: HTMLElement | null) => {\n onNativeElement?.(element);\n // Set the component's forwarded ref\n if (typeof ref === 'function') {\n ref(element as T | null);\n } else if (ref) {\n (ref as any).current = element;\n }\n // Set the tooltip ref if provided\n if (tooltipRef) {\n (tooltipRef as any).current = element;\n }\n };\n\n return (\n <ItemElement\n ref={handleRef}\n // Shared with `ItemButton`, which repeats this lookup on the wrapper that\n // carries the row color to actions rendered outside the row.\n variant={\n theme && type\n ? type === 'card' && theme === 'default' && mods?.['item-card']\n ? 'default.item-card'\n : resolveItemVariant(theme, type)\n : undefined\n }\n disabled={isNativelyDisabled}\n aria-disabled={finalIsDisabled}\n // A row that reports `aria-pressed` is a toggle button, where\n // `aria-selected` is not a valid state and screen readers ignore it.\n aria-selected={rest['aria-pressed'] != null ? undefined : isSelected}\n mods={finalMods}\n styles={finalStyles}\n tokens={finalTokens}\n type={htmlType as any}\n {...mergeProps(\n mergeTooltipFocusProps(\n // Natively disabled too: the attribute does not stop the React Aria\n // press a caller such as `Select` attaches (`omitActivationEventProps`).\n finalIsDisabled ? omitActivationEventProps(rest) : rest,\n elementTooltipProps,\n ),\n inertProps,\n )}\n {...(nativeMenuItemProps\n ? { 'aria-disabled': undefined, 'aria-selected': undefined }\n : null)}\n // oxlint-disable-next-line tasty/no-style-prop -- forwards the consumer's public `style` prop\n style={style}\n >\n {nativeMenuItemProps ? (\n <NativeItemLink\n {...mergeTooltipFocusProps(\n mergeProps(nativeLinkProps, nativeMenuItemProps),\n tooltipFocusProps,\n )}\n ref={nativeRowRef}\n styles={NATIVE_ROW_TARGET_STYLES}\n // Block gaps space visible slots, not this out-of-flow target.\n // oxlint-disable-next-line tasty/no-style-prop -- the block parent's `gap` margin (`> *:not(:last-child)`) outranks any style of this element's own\n style={{ margin: 0 }}\n aria-hidden={nativeMenuItemProps['aria-hidden']}\n data-menu-native-link=\"\"\n data-menu-native-hit-area=\"\"\n />\n ) : null}\n {typeof hiddenContent === 'function'\n ? hiddenContent(tooltipFocusProps ?? {}, isTooltipActive)\n : hiddenContent}\n {iconSlot.hasSlot &&\n (nativeLinkProps ? (\n <NativeItemLink\n mods={nativeCellMods}\n data-element=\"Icon\"\n {...nativeLinkProps}\n aria-hidden={true}\n data-menu-native-link=\"\"\n >\n <IconSwitch noWrapper contentKey={iconSlot.key}>\n {iconSlot.content}\n </IconSwitch>\n </NativeItemLink>\n ) : (\n <div data-element=\"Icon\">\n <IconSwitch noWrapper contentKey={iconSlot.key}>\n {iconSlot.content}\n </IconSwitch>\n </div>\n ))}\n {finalPrefix && (\n <div\n data-element=\"Prefix\"\n {...(nativeMenuItemProps ? ACTIONS_EVENT_HANDLERS : null)}\n >\n {finalPrefix}\n </div>\n )}\n {children || labelProps\n ? (() => {\n const LabelTag =\n type === 'header' || type === 'card'\n ? (`h${level}` as const)\n : 'div';\n if (nativeLinkProps && LabelTag !== 'div') {\n // Preserve the heading's semantics, typography and label ref.\n return (\n <LabelTag\n data-element=\"Label\"\n {...finalLabelProps}\n id={nativeLabelReferenceId ?? finalLabelProps.id}\n aria-labelledby={\n finalLabelProps['aria-labelledby'] ??\n (nativeMenuItemProps &&\n finalLabelProps['aria-label'] == null\n ? `${nativeLabelReferenceId}-content`\n : undefined)\n }\n ref={(element: HTMLElement | null) => {\n labelRef(element);\n }}\n >\n <NativeItemLink\n mods={nativeCellMods}\n {...nativeLinkProps}\n id={\n nativeMenuItemProps\n ? `${nativeLabelReferenceId}-content`\n : undefined\n }\n aria-hidden={nativeMenuItemProps ? true : undefined}\n display=\"inline\"\n data-menu-native-link=\"\"\n >\n {processedChildren}\n </NativeItemLink>\n </LabelTag>\n );\n }\n if (nativeLinkProps) {\n return (\n <NativeItemLink\n mods={nativeCellMods}\n data-element=\"Label\"\n {...nativeLinkProps}\n {...finalLabelProps}\n id={nativeLabelReferenceId ?? finalLabelProps.id}\n data-menu-native-link=\"\"\n ref={(element: HTMLAnchorElement | null) => {\n labelRef(element);\n }}\n >\n {processedChildren}\n </NativeItemLink>\n );\n }\n return (\n <LabelTag\n data-element=\"Label\"\n {...finalLabelProps}\n ref={labelRef}\n >\n {processedChildren}\n </LabelTag>\n );\n })()\n : null}\n {showDescription ? (\n nativeLinkProps ? (\n <NativeItemLink\n mods={nativeCellMods}\n data-element=\"Description\"\n {...nativeLinkProps}\n {...descriptionProps}\n data-menu-native-link=\"\"\n ref={(element: HTMLAnchorElement | null) => {\n descriptionRef(element);\n }}\n >\n {processedDescription}\n </NativeItemLink>\n ) : (\n <div\n data-element=\"Description\"\n {...descriptionProps}\n ref={descriptionRef}\n >\n {processedDescription}\n </div>\n )\n ) : null}\n {finalSuffix && (\n <div\n data-element=\"Suffix\"\n {...(nativeMenuItemProps ? ACTIONS_EVENT_HANDLERS : null)}\n >\n {finalSuffix}\n </div>\n )}\n {rightIconSlot.hasSlot && (\n <div data-element=\"RightIcon\">\n <IconSwitch noWrapper contentKey={rightIconSlot.key}>\n {rightIconSlot.content}\n </IconSwitch>\n </div>\n )}\n {actions && (\n <div\n data-element=\"Actions\"\n onFocus={onInlineFocus}\n // The handlers keep a press on an action from also pressing the\n // row. The `true` placeholder has no actions to protect: it only\n // reserves the sibling run's width, under that run's caret, so\n // stopping presses there kept the caret from opening the trigger.\n {...(actions !== true ? ACTIONS_EVENT_HANDLERS : null)}\n >\n {actions !== true ? (\n <ItemActionProvider\n type={type}\n theme={theme}\n disableActionsFocus={disableActionsFocus}\n menuItemAction={!!nativeMenuItemProps}\n isDisabled={finalIsDisabled}\n >\n {actions}\n </ItemActionProvider>\n ) : null}\n </div>\n )}\n {pinnedActions ? (\n <div data-element=\"PinnedActions\" {...ACTIONS_EVENT_HANDLERS}>\n <ItemActionProvider\n type={type}\n theme={theme}\n disableActionsFocus={disableActionsFocus}\n isDisabled={finalIsDisabled}\n >\n {pinnedActions}\n </ItemActionProvider>\n </div>\n ) : null}\n </ItemElement>\n );\n };\n\n return renderWithTooltip(renderItemElement, defaultTooltipPlacement);\n};\n\nconst _Item = Object.assign(forwardRef<HTMLElement, CubeItemProps>(Item), {\n Action: ItemAction,\n Badge: ItemBadge,\n CloseAction: ItemCloseAction,\n});\n\n/** @private Preserves Item layout around native menu targets. */\nexport const ItemWithNativeSlots = _Item as typeof _Item &\n ForwardRefExoticComponent<\n PropsWithoutRef<ItemWithNativeLinksProps> & RefAttributes<HTMLElement>\n >;\n\nexport { _Item as Item };\n\n/**\n * @deprecated Use `Item` instead. This export will be removed in a future version.\n */\nexport { _Item as ItemBase };\nexport type { CubeItemProps as CubeItemBaseProps };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAgEA,MAAMkD,mBAAmB;CACvB;CACA;CACA;CACA;CACA;CACA;AAAQ;AA6QV,MAAMqD,sBAA8B;CAClCC,GAAG;CACHC,SAAS;CACTC,YAAY;CACZC,cAAc;CACdC,aAAa;CACbC,OAAO;CACPC,SAAS;EACP,IAAI;EACJ,wBAAwB;EACxB,yBAAyB;EACzB,mCAAmC;CACrC;AACF;AAIA,MAAMC,sBAA8B;CAClCP,GAAG;CACHC,SAAS;CACTO,KAAK;CACLN,YAAY;CACZO,WAAW;CACXC,WAAW;CACXC,QAAQ;CAGR,gBAAgB;CAEhB,iBAAiB;AACnB;AAEA,MAAMC,yBAAyB;CAC7BC,UAAUC,MAAkBA,EAAEC,gBAAgB;CAC9CC,gBAAgBF,MAAoBA,EAAEC,gBAAgB;CAKtDE,cAAcH,MAAoB;EAChC,IAAIA,EAAEI,gBAAgB,SAASJ,EAAEC,gBAAgB;CACnD;CACAI,cAAcL,MAAkBA,EAAEC,gBAAgB;CAClDK,YAAYN,MAAkBA,EAAEC,gBAAgB;CAChDM,YAAYP,MAAqB;EAC/B,IAAIA,EAAEQ,QAAQ,WAAWR,EAAEQ,QAAQ,KACjCR,EAAEC,gBAAgB;CAEtB;AACF;AAEA,MAAMQ,cAAczH,MAAM;CACxB0H,IAAI;CACJC,QAAQ;EACN,eAAe;EACf,eACE;EAEF,sBACE;EAOF,kBAAkB;EAElBxB,SAAS;EACTyB,MAAM;EACNlB,KAAK;EACLmB,SAAS;EACTzB,YAAY;EACZC,cAAc;EAGdyB,cAAc;GACZ,IAAI;GACJ,sBACE;GACF,kCACE;GACF,qBACE;EACJ;EAEAC,YAAY;GACV,IAAI;GACJ,0BAA0B;EAC5B;EACAC,UAAU;EACVC,SAAS;GACP,IAAI;GACJ,aAAa;EACf;EACAC,QAAQ;EACRC,QAAQ;GACN,IAAI;GACJ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AAA;IAGP,CAAA;IAEPlI,WACC,oBAAA,OAAA;KACe,gBAAA;KACJ4J,SAAAA;KAAa,GAKjB5J,YAAY,OAAZ6C,yBAAA;KAEJ7C,UAAAA,YAAY,OACX,oBAAC,oBAAD;MACQZ;MACCC;MACcmB;MACL,gBAAA,CAAC,CAACgJ;MACNwC,YAAAA;MAEXhM,UAAAA;KAPgB,CAAA,IADpB;IAWG,CAAA;IAEPG,gBACC,oBAAA,OAAA;KAAkB,gBAAA;KAAe,GAAK0C;KACpC,UAAA,oBAAC,oBAAD;MACQzD;MACCC;MACcmB;MACTwL,YAAAA;MAEX7L,UAAAA;KANgB,CAAA;IAQf,CAAA,IAVP;GArNS;;CAiOE;CAEhB,OAEK8O,kBAAkBQ,mBAAmBtO,uBAAuB;AAAC;AAGtE,MAAMmP,QAAQ1D,OAAO2D,OAAOpU,WAAuCsO,IAAI,GAAG;CACxE+F,QAAQrS;CACRsS,OAAOpS;CACPqS,aAAatS;AACf,CAAC;;AAGD,MAAauS,sBAAsBL;AAphBtB,SAAAvD,MAAAxJ,KAAA;CAAA,OA8IyCA,QAAQ;AAAI"}
|
|
@@ -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-5adbf30 | Cube Dev Team */
|
|
2
2
|
import { ItemWithNativeSlots } from "./Item.js";
|
|
3
3
|
import { subscribeScheme } from "../../hooks/use-scheme.js";
|
|
4
4
|
import { getLayoutScale } from "../../utils/layout-scale.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-5adbf30 | Cube Dev Team */
|
|
2
2
|
import { mergeProps } from "../../utils/merge-props.js";
|
|
3
3
|
import { TooltipProvider } from "../Tooltip/TooltipProvider.js";
|
|
4
4
|
import { getDisabledElementProps } from "../../utils/disabled-props.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-5adbf30 | Cube Dev Team */
|
|
2
2
|
import { ItemAction } from "./ItemAction.js";
|
|
3
3
|
import { useI18n } from "../../i18n/use-i18n.js";
|
|
4
4
|
import { CloseIcon } from "../../icons/CloseIcon.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-5adbf30 | Cube Dev Team */
|
|
2
2
|
import { DisplayTransition } from "../DisplayTransition/DisplayTransition.js";
|
|
3
3
|
import { ItemActionProvider } from "../../providers/ItemActionContext.js";
|
|
4
4
|
import { ITEM_RESTING_COLOR_VARIANTS, ROW_STATE_ALIASES, resolveItemVariant } from "../../themes/item-themes.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-5adbf30 | Cube Dev Team */
|
|
2
2
|
import { TooltipProvider } from "../Tooltip/TooltipProvider.js";
|
|
3
3
|
import { CheckIcon } from "../../icons/CheckIcon.js";
|
|
4
4
|
import { LoadingIcon } from "../../icons/LoadingIcon.js";
|
|
@@ -7,23 +7,13 @@ import "../../index.js";
|
|
|
7
7
|
import { Styles } from "@tenphi/tasty";
|
|
8
8
|
import { HTMLAttributes, ReactNode } from "react";
|
|
9
9
|
//#region src/components/ItemButton/ItemButton.d.ts
|
|
10
|
-
export interface CubeItemButtonProps extends Omit<CubeItemProps, 'size' |
|
|
10
|
+
export interface CubeItemButtonProps extends Omit<CubeItemProps, 'size' | ItemGridActionsProps>, Omit<CubeUseActionProps, keyof CubeItemProps | 'as'> {
|
|
11
11
|
/**
|
|
12
12
|
* The row's trailing controls, rendered beside the button rather than inside
|
|
13
13
|
* it. Pass `null` to keep an empty run — the row reserves no space for it, and
|
|
14
14
|
* the button is not remounted when the actions arrive later.
|
|
15
15
|
*/
|
|
16
16
|
actions?: ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* How auto-hidden actions get their space. Only applies when `autoHideActions` is true.
|
|
19
|
-
* - `collapse`: hidden actions take no width; shown, they narrow the label.
|
|
20
|
-
* - `preserve`: hidden actions keep their width; only their opacity changes.
|
|
21
|
-
*
|
|
22
|
-
* `Item`'s `suffix` mode is not offered: the run sits beside the button, at
|
|
23
|
-
* the row's end, and cannot take the suffix's place inside it.
|
|
24
|
-
* @default "collapse"
|
|
25
|
-
*/
|
|
26
|
-
hiddenActionsSpace?: 'collapse' | 'preserve';
|
|
27
17
|
size?: Omit<CubeItemProps['size'], 'inline'>;
|
|
28
18
|
wrapperStyles?: Styles;
|
|
29
19
|
/**
|
|
@@ -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-5adbf30 | Cube Dev Team */
|
|
2
2
|
import { mergeProps } from "../../utils/merge-props.js";
|
|
3
3
|
import { mergeRefs } from "../../hooks/use-combined-refs.js";
|
|
4
4
|
import { useEvent } from "../../hooks/use-event.js";
|
|
@@ -22,9 +22,8 @@ const StyledItem = tasty(_Item, {
|
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
const ItemButton = forwardRef(function ItemButton(allProps, ref) {
|
|
25
|
-
const { mods, to, htmlType, as, type = "item", theme = "default", onPress, onPressStart: _onPressStart, onPressEnd: _onPressEnd, onPressChange: _onPressChange, onPressUp: _onPressUp, navigationOptions: _navigationOptions, label: _label, actions, actionsProps, size = "medium", wrapperStyles, autoHideActions = false,
|
|
25
|
+
const { mods, to, htmlType, as, type = "item", theme = "default", onPress, onPressStart: _onPressStart, onPressEnd: _onPressEnd, onPressChange: _onPressChange, onPressUp: _onPressUp, navigationOptions: _navigationOptions, label: _label, actions, actionsProps, size = "medium", wrapperStyles, autoHideActions = false, preserveActionsSpace = false, disableActionsFocus = false, isDisabled, isLoading = false, ...rest } = allProps;
|
|
26
26
|
const finalIsDisabled = isDisabled === true || isLoading && isDisabled !== false;
|
|
27
|
-
const isActionsSpacePreserved = (hiddenActionsSpace ?? (preserveActionsSpace ? "preserve" : "collapse")) === "preserve";
|
|
28
27
|
const dismissParentPopover = useDismissParentPopover();
|
|
29
28
|
const buttonElementRef = useRef(null);
|
|
30
29
|
const wrappedOnPress = useEvent((e) => {
|
|
@@ -53,7 +52,7 @@ const ItemButton = forwardRef(function ItemButton(allProps, ref) {
|
|
|
53
52
|
insideWrapper: withWrapper,
|
|
54
53
|
showActions,
|
|
55
54
|
skipActionsWidthTransition,
|
|
56
|
-
|
|
55
|
+
preserveActionsSpace,
|
|
57
56
|
actions: actions ? true : void 0,
|
|
58
57
|
...mergeProps(rest, actionProps),
|
|
59
58
|
"aria-pressed": ariaPressed,
|
|
@@ -75,7 +74,7 @@ const ItemButton = forwardRef(function ItemButton(allProps, ref) {
|
|
|
75
74
|
actions,
|
|
76
75
|
actionsProps,
|
|
77
76
|
autoHideActions,
|
|
78
|
-
preserveActionsSpace
|
|
77
|
+
preserveActionsSpace,
|
|
79
78
|
disableActionsFocus,
|
|
80
79
|
isDisabled: finalIsDisabled,
|
|
81
80
|
children: ({ showActions: showActions_0, skipActionsWidthTransition: skipActionsWidthTransition_0 }) => renderButton(showActions_0, skipActionsWidthTransition_0)
|