@cube-dev/ui-kit 0.193.2 → 0.194.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CHANGELOG.md +34 -0
- package/dist/_internal/hooks/use-debounced-value.js +1 -1
- package/dist/_internal/hooks/use-deprecation-warning.js +1 -1
- package/dist/_internal/hooks/use-event.js +1 -1
- package/dist/_internal/hooks/use-is-first-render.js +1 -1
- package/dist/_internal/hooks/use-sync-ref.js +1 -1
- package/dist/_internal/hooks/use-timer/timer.js +1 -1
- package/dist/_internal/hooks/use-timer/use-timer.js +1 -1
- package/dist/_internal/hooks/use-warn.js +1 -1
- package/dist/components/Block.js +1 -1
- package/dist/components/CollectionItem.d.ts +25 -12
- package/dist/components/CollectionItem.js +59 -4
- package/dist/components/CollectionItem.js.map +1 -1
- package/dist/components/GlobalStyles.js +1 -1
- package/dist/components/GridProvider.js +1 -1
- package/dist/components/HiddenInput.js +1 -1
- package/dist/components/Root.js +2 -2
- package/dist/components/actions/Action/Action.js +1 -1
- package/dist/components/actions/Banner/Banner.d.ts +1 -1
- package/dist/components/actions/Banner/Banner.js +6 -6
- package/dist/components/actions/Banner/Banner.js.map +1 -1
- package/dist/components/actions/Button/Button.js +2 -2
- package/dist/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/actions/ButtonSplit/ButtonSplit.js +28 -25
- package/dist/components/actions/ButtonSplit/ButtonSplit.js.map +1 -1
- package/dist/components/actions/ButtonSplit/context.js +1 -1
- package/dist/components/actions/CommandMenu/CommandMenu.d.ts +7 -7
- package/dist/components/actions/CommandMenu/CommandMenu.js +232 -239
- package/dist/components/actions/CommandMenu/CommandMenu.js.map +1 -1
- package/dist/components/actions/CommandMenu/styled.js +1 -1
- package/dist/components/actions/ItemAction/ItemAction.js +27 -23
- package/dist/components/actions/ItemAction/ItemAction.js.map +1 -1
- package/dist/components/actions/ItemActionContext.d.ts +3 -0
- package/dist/components/actions/ItemActionContext.js +15 -13
- package/dist/components/actions/ItemActionContext.js.map +1 -1
- package/dist/components/actions/ItemActionsWrapper.js +1 -1
- package/dist/components/actions/ItemButton/ItemButton.d.ts +2 -2
- package/dist/components/actions/ItemButton/ItemButton.js +1 -1
- package/dist/components/actions/Link/Link.js +1 -1
- package/dist/components/actions/Menu/Menu.d.ts +9 -9
- package/dist/components/actions/Menu/Menu.js +88 -64
- package/dist/components/actions/Menu/Menu.js.map +1 -1
- package/dist/components/actions/Menu/MenuCollectionItem.d.ts +18 -0
- package/dist/components/actions/Menu/MenuCollectionItem.js +36 -0
- package/dist/components/actions/Menu/MenuCollectionItem.js.map +1 -0
- package/dist/components/actions/Menu/MenuItem.d.ts +5 -0
- package/dist/components/actions/Menu/MenuItem.js +402 -116
- package/dist/components/actions/Menu/MenuItem.js.map +1 -1
- package/dist/components/actions/Menu/MenuSection.d.ts +3 -1
- package/dist/components/actions/Menu/MenuSection.js +31 -33
- package/dist/components/actions/Menu/MenuSection.js.map +1 -1
- package/dist/components/actions/Menu/MenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubMenuTrigger.d.ts +1 -1
- package/dist/components/actions/Menu/SubMenuTrigger.js +2 -2
- package/dist/components/actions/Menu/SubMenuTrigger.js.map +1 -1
- package/dist/components/actions/Menu/SubmenuTriggerContext.js +1 -1
- package/dist/components/actions/Menu/context.js +1 -1
- package/dist/components/actions/Menu/index.d.ts +1 -0
- package/dist/components/actions/Menu/styled.js +1 -1
- package/dist/components/actions/actions-run.js +1 -1
- package/dist/components/actions/index.d.ts +3 -2
- package/dist/components/actions/index.js +1 -1
- package/dist/components/actions/use-action.js +60 -36
- package/dist/components/actions/use-action.js.map +1 -1
- package/dist/components/actions/use-anchored-menu.js +1 -1
- package/dist/components/actions/use-context-menu.js +2 -2
- package/dist/components/content/ActiveZone/ActiveZone.js +1 -1
- package/dist/components/content/Alert/Alert.js +1 -1
- package/dist/components/content/Alert/use-alert.js +1 -1
- package/dist/components/content/Avatar/Avatar.js +1 -1
- package/dist/components/content/Badge/Badge.js +1 -1
- package/dist/components/content/Card/Card.js +1 -1
- package/dist/components/content/Content.js +1 -1
- package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +1 -1
- package/dist/components/content/CopySnippet/CopySnippet.d.ts +45 -45
- package/dist/components/content/CopySnippet/CopySnippet.js +1 -1
- package/dist/components/content/Disclosure/Disclosure.js +1 -1
- package/dist/components/content/Divider.js +1 -1
- package/dist/components/content/Footer.js +1 -1
- package/dist/components/content/Header.js +1 -1
- package/dist/components/content/HotKeys/HotKeys.js +44 -33
- package/dist/components/content/HotKeys/HotKeys.js.map +1 -1
- package/dist/components/content/InfoBadge/InfoBadge.js +1 -1
- package/dist/components/content/InlineInput/InlineInput.js +1 -1
- package/dist/components/content/Item/Item.d.ts +7 -7
- package/dist/components/content/Item/Item.js +207 -69
- package/dist/components/content/Item/Item.js.map +1 -1
- package/dist/components/content/Item/ItemWithNativeLinks.js +314 -0
- package/dist/components/content/Item/ItemWithNativeLinks.js.map +1 -0
- package/dist/components/content/ItemBadge/ItemBadge.js +1 -1
- package/dist/components/content/ItemCard/ItemCard.d.ts +1 -1
- package/dist/components/content/ItemCard/ItemCard.js +1 -1
- package/dist/components/content/Layout/GridLayout.js +1 -1
- package/dist/components/content/Layout/Layout.js +1 -1
- package/dist/components/content/Layout/LayoutBlock.js +1 -1
- package/dist/components/content/Layout/LayoutCenter.js +1 -1
- package/dist/components/content/Layout/LayoutContainer.js +1 -1
- package/dist/components/content/Layout/LayoutContent.js +1 -1
- package/dist/components/content/Layout/LayoutContext.js +1 -1
- package/dist/components/content/Layout/LayoutFlex.js +1 -1
- package/dist/components/content/Layout/LayoutFooter.js +1 -1
- package/dist/components/content/Layout/LayoutGrid.js +1 -1
- package/dist/components/content/Layout/LayoutHeader.js +1 -1
- package/dist/components/content/Layout/LayoutPane.js +113 -107
- package/dist/components/content/Layout/LayoutPane.js.map +1 -1
- package/dist/components/content/Layout/LayoutPanel.js +44 -48
- package/dist/components/content/Layout/LayoutPanel.js.map +1 -1
- package/dist/components/content/Layout/LayoutPanelHeader.js +2 -2
- package/dist/components/content/Layout/LayoutPanelTransition.js +1 -1
- package/dist/components/content/Layout/LayoutToolbar.js +1 -1
- package/dist/components/content/Layout/hooks/useTinyScrollbar.js +1 -1
- package/dist/components/content/Layout/index.js +1 -1
- package/dist/components/content/Layout/utils.js +1 -1
- package/dist/components/content/Paragraph.js +1 -1
- package/dist/components/content/Placeholder/Placeholder.js +77 -70
- package/dist/components/content/Placeholder/Placeholder.js.map +1 -1
- package/dist/components/content/PrismCode/PrismCode.js +1 -1
- package/dist/components/content/PrismCode/prismSetup.js +1 -1
- package/dist/components/content/PrismDiffCode/PrismDiffCode.js +1 -1
- package/dist/components/content/Result/Result.js +5 -5
- package/dist/components/content/Result/Result.js.map +1 -1
- package/dist/components/content/Skeleton/Skeleton.js +18 -19
- package/dist/components/content/Skeleton/Skeleton.js.map +1 -1
- package/dist/components/content/Tag/Tag.js +2 -2
- package/dist/components/content/Text.d.ts +57 -57
- package/dist/components/content/Text.js +61 -77
- package/dist/components/content/Text.js.map +1 -1
- package/dist/components/content/TextItem/TextItem.js +158 -29
- package/dist/components/content/TextItem/TextItem.js.map +1 -1
- package/dist/components/content/Title.js +66 -48
- package/dist/components/content/Title.js.map +1 -1
- package/dist/components/content/Tree/Tree.js +6 -3
- package/dist/components/content/Tree/Tree.js.map +1 -1
- package/dist/components/content/Tree/TreeNode.js +1 -1
- package/dist/components/content/Tree/styled.js +1 -1
- package/dist/components/content/Tree/tree-index.js +1 -1
- package/dist/components/content/Tree/types.d.ts +2 -2
- package/dist/components/content/Tree/use-checkbox-tree.js +1 -1
- package/dist/components/content/Tree/use-load-data.js +1 -1
- package/dist/components/content/highlightText.js +1 -1
- package/dist/components/content/use-auto-tooltip.js +3 -2
- package/dist/components/content/use-auto-tooltip.js.map +1 -1
- package/dist/components/data/DataTable/DataTable.js +1 -1
- package/dist/components/data/ItemTable/ItemTable.js +1 -1
- package/dist/components/data/ItemTable/ItemTableBulkBar.js +2 -2
- package/dist/components/data/ItemTable/ItemTableDragPreview.js +1 -1
- package/dist/components/data/ItemTable/ItemTableFooter.js +1 -1
- package/dist/components/data/ItemTable/ItemTableToolbar.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-column-widths.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-drag-drop.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-pagination.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-selection.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-sort.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-tree-model.js +1 -1
- package/dist/components/data/TableBase/ColumnResizer.js +1 -1
- package/dist/components/data/TableBase/RowCollection.js +1 -1
- package/dist/components/data/TableBase/TableHeaderCell.js +1 -1
- package/dist/components/data/TableBase/TableRow.js +1 -1
- package/dist/components/data/TableBase/TableView.js +8 -5
- package/dist/components/data/TableBase/TableView.js.map +1 -1
- package/dist/components/data/TableBase/TreeGridTable.js +1 -1
- package/dist/components/data/TableBase/column-header.js +89 -25
- package/dist/components/data/TableBase/column-header.js.map +1 -1
- package/dist/components/data/TableBase/column-menu.js +1 -1
- package/dist/components/data/TableBase/column-styles.js +1 -1
- package/dist/components/data/TableBase/column-tint.js +1 -1
- package/dist/components/data/TableBase/row-menu.js +1 -1
- package/dist/components/data/TableBase/styled.d.ts +1 -1
- package/dist/components/data/TableBase/styled.js +1 -1
- package/dist/components/data/TableBase/table-tree.js +1 -1
- package/dist/components/data/TableBase/types.js +1 -1
- package/dist/components/data/TableBase/use-cell-selection.js +0 -0
- package/dist/components/data/TableBase/use-column-menu.js +1 -1
- package/dist/components/data/TableBase/use-column-order.js +1 -1
- package/dist/components/data/TableBase/use-column-window.js +119 -57
- package/dist/components/data/TableBase/use-column-window.js.map +1 -1
- package/dist/components/data/TableBase/use-container-width.js +1 -1
- package/dist/components/data/TableBase/use-row-move-animation.js +1 -1
- package/dist/components/data/TableBase/use-scrollability.js +1 -1
- package/dist/components/data/TableBase/use-table-columns.js +1 -1
- package/dist/components/data/TableBase/use-table-search.js +1 -1
- package/dist/components/data/TableBase/use-table-selection.js +1 -1
- package/dist/components/data/TableBase/use-table-sort.js +1 -1
- package/dist/components/data/TableBase/use-table-sorts.js +1 -1
- package/dist/components/data/TableBase/use-table-storage.js +1 -1
- package/dist/components/data/TableBase/use-table-tooltip-refresh.js +19 -17
- package/dist/components/data/TableBase/use-table-tooltip-refresh.js.map +1 -1
- package/dist/components/data/TableBase/use-table-tree-state.js +1 -1
- package/dist/components/fields/Checkbox/Checkbox.js +3 -1
- package/dist/components/fields/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/fields/Checkbox/CheckboxGroup.js +13 -13
- package/dist/components/fields/Checkbox/CheckboxGroup.js.map +1 -1
- package/dist/components/fields/Checkbox/context.js +1 -1
- package/dist/components/fields/ColorInput/ColorInput.js +32 -29
- package/dist/components/fields/ColorInput/ColorInput.js.map +1 -1
- package/dist/components/fields/ColorPicker/ColorPicker.d.ts +2 -0
- package/dist/components/fields/ColorPicker/ColorPicker.js +9 -6
- package/dist/components/fields/ColorPicker/ColorPicker.js.map +1 -1
- package/dist/components/fields/ColorSwatch/ColorSwatch.js +1 -1
- package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js +6 -3
- package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js.map +1 -1
- package/dist/components/fields/ComboBox/ComboBox.js +41 -30
- package/dist/components/fields/ComboBox/ComboBox.js.map +1 -1
- package/dist/components/fields/CommandTextArea/CommandTextArea.js +1 -1
- package/dist/components/fields/CommandTextArea/caretPosition.js +1 -1
- package/dist/components/fields/CommandTextArea/useCaretAnchor.js +1 -1
- package/dist/components/fields/DatePicker/DateInput.js +1 -1
- package/dist/components/fields/DatePicker/DateInputBase.js +1 -1
- package/dist/components/fields/DatePicker/DatePicker.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerButton.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerElement.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerInput.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerSegment.js +1 -1
- package/dist/components/fields/DatePicker/DateRangePicker.js +2 -2
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +246 -238
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js.map +1 -1
- package/dist/components/fields/DatePicker/MonthPicker.js +1 -1
- package/dist/components/fields/DatePicker/PeriodPicker.js +1 -1
- package/dist/components/fields/DatePicker/QuarterPicker.js +1 -1
- package/dist/components/fields/DatePicker/TimeInput.js +1 -1
- package/dist/components/fields/DatePicker/WeekPicker.js +1 -1
- package/dist/components/fields/DatePicker/YearPicker.js +1 -1
- package/dist/components/fields/DatePicker/parseDate.js +1 -1
- package/dist/components/fields/DatePicker/period.js +1 -1
- package/dist/components/fields/DatePicker/props.js +1 -1
- package/dist/components/fields/DatePicker/utils.js +1 -1
- package/dist/components/fields/FileInput/FileInput.js +22 -2
- package/dist/components/fields/FileInput/FileInput.js.map +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js +5 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js.map +1 -1
- package/dist/components/fields/FilterPicker/FilterPicker.d.ts +4 -2
- package/dist/components/fields/FilterPicker/FilterPicker.js +4 -3
- package/dist/components/fields/FilterPicker/FilterPicker.js.map +1 -1
- package/dist/components/fields/Input/Input.js +1 -1
- package/dist/components/fields/ListBox/DraggableListBox.js +1 -1
- package/dist/components/fields/ListBox/ListBox.js +8 -7
- package/dist/components/fields/ListBox/ListBox.js.map +1 -1
- package/dist/components/fields/ListBox/optionId.js +1 -1
- package/dist/components/fields/ListBoxPopover/ListBoxPopover.js +36 -32
- package/dist/components/fields/ListBoxPopover/ListBoxPopover.js.map +1 -1
- package/dist/components/fields/ListBoxPopover/listNavigation.js +1 -1
- package/dist/components/fields/ListBoxPopover/useCompositeFocus.js +1 -1
- package/dist/components/fields/NumberInput/NumberInput.js +1 -1
- package/dist/components/fields/NumberInput/StepButton.js +1 -1
- package/dist/components/fields/PasswordInput/PasswordInput.js +1 -1
- package/dist/components/fields/Picker/Picker.d.ts +4 -2
- package/dist/components/fields/Picker/Picker.js +4 -3
- package/dist/components/fields/Picker/Picker.js.map +1 -1
- package/dist/components/fields/RadioGroup/Radio.d.ts +40 -40
- package/dist/components/fields/RadioGroup/Radio.js +2 -2
- package/dist/components/fields/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/fields/RadioGroup/context.js +1 -1
- package/dist/components/fields/SearchComboBox/SearchComboBox.js +1 -1
- package/dist/components/fields/SearchInput/SearchInput.js +1 -1
- package/dist/components/fields/Select/Select.d.ts +4 -4
- package/dist/components/fields/Select/Select.js +36 -33
- package/dist/components/fields/Select/Select.js.map +1 -1
- package/dist/components/fields/Slider/Gradation.js +1 -1
- package/dist/components/fields/Slider/HueSlider.js +1 -1
- package/dist/components/fields/Slider/RangeSlider.js +1 -1
- package/dist/components/fields/Slider/Slider.js +1 -1
- package/dist/components/fields/Slider/SliderBase.js +1 -1
- package/dist/components/fields/Slider/SliderThumb.js +1 -1
- package/dist/components/fields/Slider/SliderTrack.js +1 -1
- package/dist/components/fields/Slider/elements.js +1 -1
- package/dist/components/fields/Slider/index.js +1 -1
- package/dist/components/fields/Switch/Switch.js +1 -1
- package/dist/components/fields/TagInput/TagInput.js +1 -1
- package/dist/components/fields/TagInput/TagList.js +1 -1
- package/dist/components/fields/TagInput/useActiveOption.js +1 -1
- package/dist/components/fields/TagInput/useTagError.js +1 -1
- package/dist/components/fields/TextArea/TextArea.js +1 -1
- package/dist/components/fields/TextInput/TextInput.js +1 -1
- package/dist/components/fields/TextInput/TextInputBase.js +1 -1
- package/dist/components/fields/TextInput/useAutoSizeTextArea.js +1 -1
- package/dist/components/fields/TextInputMapper/TextInputMapper.js +13 -5
- package/dist/components/fields/TextInputMapper/TextInputMapper.js.map +1 -1
- package/dist/components/fields/TriggerActions.js +1 -1
- package/dist/components/fields/color/ColorPanel.js +62 -53
- package/dist/components/fields/color/ColorPanel.js.map +1 -1
- package/dist/components/fields/color/channels.js +1 -1
- package/dist/components/fields/color/color.js +1 -1
- package/dist/components/fields/color/context.js +1 -1
- package/dist/components/form/FieldWrapper/FieldWrapper.d.ts +1 -0
- package/dist/components/form/FieldWrapper/FieldWrapper.js +134 -110
- package/dist/components/form/FieldWrapper/FieldWrapper.js.map +1 -1
- package/dist/components/form/FieldWrapper/field-description.js +102 -0
- package/dist/components/form/FieldWrapper/field-description.js.map +1 -0
- package/dist/components/form/FieldWrapper/types.d.ts +6 -1
- package/dist/components/form/Form/Field.js +1 -1
- package/dist/components/form/Form/Form.js +1 -1
- package/dist/components/form/Form/ModernFormRoot.js +1 -1
- package/dist/components/form/Form/ResetButton/ResetButton.js +1 -1
- package/dist/components/form/Form/SubmitButton/SubmitButton.js +1 -1
- package/dist/components/form/Form/SubmitError.js +1 -1
- package/dist/components/form/Form/backend.js +1 -1
- package/dist/components/form/Form/index.js +1 -1
- package/dist/components/form/Form/modern/actions.js +1 -1
- package/dist/components/form/Form/modern/context.js +1 -1
- package/dist/components/form/Form/modern/controller.js +1 -1
- package/dist/components/form/Form/modern/field-binding.js +1 -1
- package/dist/components/form/Form/modern/field.js +1 -1
- package/dist/components/form/Form/modern/react.js +1 -1
- package/dist/components/form/Form/modern/store.js +1 -1
- package/dist/components/form/Form/modern/validation.js +1 -1
- package/dist/components/form/Form/modern/values.js +1 -1
- package/dist/components/form/Form/reset-unbound-controls.js +1 -1
- package/dist/components/form/Form/use-field/use-field-binding.js +1 -1
- package/dist/components/form/Form/use-field/use-field-props.js +17 -4
- package/dist/components/form/Form/use-field/use-field-props.js.map +1 -1
- package/dist/components/form/Form/use-field/use-field.js +1 -1
- package/dist/components/form/Form/use-form.js +1 -1
- package/dist/components/form/Form/validation.js +1 -1
- package/dist/components/form/Label.js +27 -24
- package/dist/components/form/Label.js.map +1 -1
- package/dist/components/form/legacy-tooltip.js +1 -1
- package/dist/components/form/validation/ValidationIndicator.js +1 -1
- package/dist/components/form/validation/resolve-validation-props.js +1 -1
- package/dist/components/form/validation/use-validation-props.js +1 -1
- package/dist/components/form/wrapper.js +2 -1
- package/dist/components/form/wrapper.js.map +1 -1
- package/dist/components/helpers/DisplayTransition/DisplayTransition.js +1 -1
- package/dist/components/helpers/IconSwitch/IconSwitch.js +1 -1
- package/dist/components/layout/Flex.js +1 -1
- package/dist/components/layout/Flow.js +1 -1
- package/dist/components/layout/Grid.js +1 -1
- package/dist/components/layout/Panel.js +1 -1
- package/dist/components/layout/Prefix.js +1 -1
- package/dist/components/layout/ResizablePanel.js +1 -1
- package/dist/components/layout/Space.js +1 -1
- package/dist/components/layout/Suffix.js +1 -1
- package/dist/components/navigation/Pagination/Pagination.js +1 -1
- package/dist/components/navigation/Pagination/use-pagination.js +1 -1
- package/dist/components/navigation/Tabs/BoardDragActiveProvider.js +1 -1
- package/dist/components/navigation/Tabs/DraggableTabList.js +1 -1
- package/dist/components/navigation/Tabs/TabButton.js +1 -1
- package/dist/components/navigation/Tabs/TabDropIndicator.js +1 -1
- package/dist/components/navigation/Tabs/TabPanel.js +1 -1
- package/dist/components/navigation/Tabs/TabPicker.js +1 -1
- package/dist/components/navigation/Tabs/Tabs.js +1 -1
- package/dist/components/navigation/Tabs/TabsAction.js +1 -1
- package/dist/components/navigation/Tabs/TabsContext.js +1 -1
- package/dist/components/navigation/Tabs/popover-placement.js +1 -1
- package/dist/components/navigation/Tabs/styled.js +1 -1
- package/dist/components/navigation/Tabs/types.d.ts +3 -3
- package/dist/components/navigation/Tabs/types.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-editing.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-indicator.js +1 -1
- package/dist/components/organisms/StatsCard/StatsCard.js +1 -1
- package/dist/components/other/Calendar/Calendar.js +1 -1
- package/dist/components/other/Calendar/CalendarCell.js +1 -1
- package/dist/components/other/Calendar/CalendarGrid.js +1 -1
- package/dist/components/other/Calendar/CalendarHeader.js +1 -1
- package/dist/components/other/Calendar/CalendarPanel.js +1 -1
- package/dist/components/other/Calendar/PeriodCalendar.js +1 -1
- package/dist/components/other/Calendar/PeriodGrid.js +1 -1
- package/dist/components/other/Calendar/RangeCalendar.js +1 -1
- package/dist/components/other/Calendar/styled.js +1 -1
- package/dist/components/other/CubeLogo/CubeLogo.js +1 -1
- package/dist/components/other/NoDataIcon/NoDataIcon.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
- package/dist/components/overlays/Dialog/Dialog.js +1 -1
- package/dist/components/overlays/Dialog/DialogContainer.js +1 -1
- package/dist/components/overlays/Dialog/DialogForm.js +1 -1
- package/dist/components/overlays/Dialog/DialogTrigger.js +1 -1
- package/dist/components/overlays/Dialog/ModernDialogForm.js +1 -1
- package/dist/components/overlays/Dialog/context.js +1 -1
- package/dist/components/overlays/Dialog/default-button-text.js +1 -1
- package/dist/components/overlays/Dialog/use-content-overflow.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-container.js +1 -1
- package/dist/components/overlays/Modal/Modal.js +44 -24
- package/dist/components/overlays/Modal/Modal.js.map +1 -1
- package/dist/components/overlays/Modal/OpenTransitionContext.js +1 -1
- package/dist/components/overlays/Modal/Overlay.js +1 -1
- package/dist/components/overlays/Modal/Popover.js +34 -24
- package/dist/components/overlays/Modal/Popover.js.map +1 -1
- package/dist/components/overlays/Modal/Tray.js +45 -25
- package/dist/components/overlays/Modal/Tray.js.map +1 -1
- package/dist/components/overlays/Modal/Underlay.js +1 -1
- package/dist/components/overlays/Modal/modal-containment.js +145 -0
- package/dist/components/overlays/Modal/modal-containment.js.map +1 -0
- package/dist/components/overlays/Notifications/Notification.js +1 -1
- package/dist/components/overlays/Notifications/NotificationAction.js +1 -1
- package/dist/components/overlays/Notifications/NotificationCard.js +2 -2
- package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
- package/dist/components/overlays/Notifications/NotificationItem.js +1 -1
- package/dist/components/overlays/Notifications/OverlayContainer.js +1 -1
- package/dist/components/overlays/Notifications/OverlayProvider.js +1 -1
- package/dist/components/overlays/Notifications/PersistentNotificationsList.js +2 -2
- package/dist/components/overlays/Notifications/dismissed-storage.js +1 -1
- package/dist/components/overlays/Notifications/format-relative-time.js +1 -1
- package/dist/components/overlays/Notifications/index.js +1 -1
- package/dist/components/overlays/Notifications/use-notification-state.js +1 -1
- package/dist/components/overlays/Notifications/use-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-overlay-timers.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-state.js +1 -1
- package/dist/components/overlays/Notifications/use-toast-state.js +1 -1
- package/dist/components/overlays/Toast/ToastItem.js +1 -1
- package/dist/components/overlays/Toast/index.js +1 -1
- package/dist/components/overlays/Toast/useProgressToast.js +1 -1
- package/dist/components/overlays/Toast/useToast.js +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.js +50 -47
- package/dist/components/overlays/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/overlays/Tooltip/TooltipProvider.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipTrigger.js +95 -100
- package/dist/components/overlays/Tooltip/TooltipTrigger.js.map +1 -1
- package/dist/components/overlays/Tooltip/context.js +1 -1
- package/dist/components/overlays/Tooltip/split-trigger-props.js +1 -1
- package/dist/components/portal/Portal.js +1 -1
- package/dist/components/portal/PortalProvider.js +1 -1
- package/dist/components/portal/usePortal.js +1 -1
- package/dist/components/shared/DraggableCollection.js +1 -1
- package/dist/components/shared/InvalidIcon.js +1 -1
- package/dist/components/shared/ValidIcon.js +1 -1
- package/dist/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
- package/dist/components/status/Spin/Cube.js +1 -1
- package/dist/components/status/Spin/InternalSpinner.js +1 -1
- package/dist/components/status/Spin/Spin.js +1 -1
- package/dist/components/status/Spin/SpinsContainer.js +1 -1
- package/dist/data/item-themes.js +1 -1
- package/dist/data/themes.js +1 -1
- package/dist/eslint-plugin/defaults.generated.js +2 -2
- package/dist/eslint-plugin/defaults.generated.js.map +1 -1
- package/dist/eslint-plugin/index.js +1 -1
- package/dist/eslint-plugin/rules/no-redundant-default-prop.js +1 -1
- package/dist/i18n/I18nProvider.js +3 -2
- package/dist/i18n/I18nProvider.js.map +1 -1
- package/dist/i18n/createFormatter.js +1 -1
- package/dist/i18n/index.d.ts +2 -1
- package/dist/i18n/index.js +3 -2
- package/dist/i18n/index.js.map +1 -1
- package/dist/i18n/instance.d.ts +2 -3
- package/dist/i18n/instance.js +3 -4
- package/dist/i18n/instance.js.map +1 -1
- package/dist/i18n/locales/de-DE/uikit.js +36 -5
- package/dist/i18n/locales/en-US/uikit.js +36 -5
- package/dist/i18n/locales/en-US/uikit.json.d.ts +41 -4
- package/dist/i18n/locales/es-ES/uikit.js +36 -5
- package/dist/i18n/locales/es-MX/uikit.js +36 -5
- package/dist/i18n/locales/fr-FR/uikit.js +36 -5
- package/dist/i18n/locales/it-IT/uikit.js +36 -5
- package/dist/i18n/locales/ja-JP/uikit.js +36 -5
- package/dist/i18n/locales/nb-NO/uikit.js +36 -5
- package/dist/i18n/locales/pt-BR/uikit.js +36 -5
- package/dist/i18n/locales/pt-PT/uikit.js +36 -5
- package/dist/i18n/locales/sv-SE/uikit.js +36 -5
- package/dist/i18n/locales/vi-VN/uikit.js +36 -5
- package/dist/i18n/locales.js +1 -1
- package/dist/i18n/namespace.d.ts +11 -0
- package/dist/i18n/namespace.js +12 -0
- package/dist/i18n/namespace.js.map +1 -0
- package/dist/i18n/useFormatter.js +1 -1
- package/dist/i18n/useI18n.js +5 -3
- package/dist/i18n/useI18n.js.map +1 -1
- package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
- package/dist/icons/AdjustmentsIcon.js +1 -1
- package/dist/icons/AiIcon.js +1 -1
- package/dist/icons/AreaChartIcon.js +1 -1
- package/dist/icons/ArrowNarrowDownIcon.js +1 -1
- package/dist/icons/ArrowNarrowUpIcon.js +1 -1
- package/dist/icons/BackwardIcon.js +1 -1
- package/dist/icons/BarChartIcon.js +1 -1
- package/dist/icons/BellFilledIcon.js +1 -1
- package/dist/icons/BellIcon.js +1 -1
- package/dist/icons/BooleanIcon.js +1 -1
- package/dist/icons/CalendarEditIcon.js +1 -1
- package/dist/icons/CalendarIcon.js +1 -1
- package/dist/icons/CaretDownIcon.js +1 -1
- package/dist/icons/CaretUpIcon.js +1 -1
- package/dist/icons/ChartAreaStackedIcon.js +1 -1
- package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarGroupedIcon.js +1 -1
- package/dist/icons/ChartBarHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarLineIcon.js +1 -1
- package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBoxPlot2Icon.js +1 -1
- package/dist/icons/ChartBoxPlotIcon.js +1 -1
- package/dist/icons/ChartBubbleIcon.js +1 -1
- package/dist/icons/ChartDonut2Icon.js +1 -1
- package/dist/icons/ChartFunnelIcon.js +1 -1
- package/dist/icons/ChartHeatmapIcon.js +1 -1
- package/dist/icons/ChartKPIIcon.js +1 -1
- package/dist/icons/ChartPie2Icon.js +1 -1
- package/dist/icons/ChartScatterIcon.js +1 -1
- package/dist/icons/CheckCircleFilledIcon.js +1 -1
- package/dist/icons/CheckCircleIcon.js +1 -1
- package/dist/icons/CheckIcon.js +1 -1
- package/dist/icons/CircleFilledIcon.js +1 -1
- package/dist/icons/ClearIcon.js +1 -1
- package/dist/icons/CloseCircleFilledIcon.js +1 -1
- package/dist/icons/CloseCircleIcon.js +1 -1
- package/dist/icons/CloseIcon.js +1 -1
- package/dist/icons/CodeIcon.js +1 -1
- package/dist/icons/ColumnTotalIcon.js +1 -1
- package/dist/icons/CopyIcon.js +1 -1
- package/dist/icons/CountIcon.js +1 -1
- package/dist/icons/CubeIcon.js +1 -1
- package/dist/icons/CubePauseIcon.js +1 -1
- package/dist/icons/CubePlayIcon.js +1 -1
- package/dist/icons/CurrencyDollarIcon.js +1 -1
- package/dist/icons/DangerIcon.js +1 -1
- package/dist/icons/DashboardIcon.js +1 -1
- package/dist/icons/DatabaseIcon.js +1 -1
- package/dist/icons/DecimalDecreaseIcon.js +1 -1
- package/dist/icons/DecimalIncreaseIcon.js +1 -1
- package/dist/icons/DirectionIcon.js +1 -1
- package/dist/icons/DonutIcon.js +1 -1
- package/dist/icons/DownIcon.js +1 -1
- package/dist/icons/EditIcon.js +1 -1
- package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
- package/dist/icons/ExclamationCircleIcon.js +1 -1
- package/dist/icons/ExclamationIcon.js +1 -1
- package/dist/icons/EyeIcon.js +1 -1
- package/dist/icons/EyeInvisibleIcon.js +1 -1
- package/dist/icons/FilterIcon.js +1 -1
- package/dist/icons/FolderFilledIcon.js +1 -1
- package/dist/icons/FolderIcon.js +1 -1
- package/dist/icons/FolderOpenFilledIcon.js +1 -1
- package/dist/icons/FolderOpenIcon.js +1 -1
- package/dist/icons/ForwardIcon.js +1 -1
- package/dist/icons/GripVerticalIcon.js +1 -1
- package/dist/icons/HierarchyIcon.js +1 -1
- package/dist/icons/HierarchyOpenIcon.js +1 -1
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/InfoCircleIcon.js +1 -1
- package/dist/icons/InfoIcon.js +1 -1
- package/dist/icons/KeyIcon.js +1 -1
- package/dist/icons/LeftIcon.js +1 -1
- package/dist/icons/LineChartIcon.js +1 -1
- package/dist/icons/LoadingIcon.js +1 -1
- package/dist/icons/LockFilledIcon.js +1 -1
- package/dist/icons/LockIcon.js +1 -1
- package/dist/icons/MoreIcon.js +1 -1
- package/dist/icons/NotAllowedIcon.js +1 -1
- package/dist/icons/Number123Icon.js +1 -1
- package/dist/icons/NumberIcon.js +1 -1
- package/dist/icons/PauseCircleFilledIcon.js +1 -1
- package/dist/icons/PauseCircleIcon.js +1 -1
- package/dist/icons/PauseIcon.js +1 -1
- package/dist/icons/PercentageIcon.js +1 -1
- package/dist/icons/PieChartIcon.js +1 -1
- package/dist/icons/PipetteIcon.js +1 -1
- package/dist/icons/PlayCircleIcon.js +1 -1
- package/dist/icons/PlayIcon.js +1 -1
- package/dist/icons/PlusIcon.js +1 -1
- package/dist/icons/ProgressBarIcon.js +1 -1
- package/dist/icons/ReloadIcon.js +1 -1
- package/dist/icons/ReportIcon.js +1 -1
- package/dist/icons/ReturnIcon.js +1 -1
- package/dist/icons/RightIcon.js +1 -1
- package/dist/icons/RowTotalsIcon.js +1 -1
- package/dist/icons/SchemeIcon.js +1 -1
- package/dist/icons/SearchIcon.js +1 -1
- package/dist/icons/SemanticQueryIcon.js +1 -1
- package/dist/icons/SettingsIcon.js +1 -1
- package/dist/icons/ShieldFilledIcon.js +1 -1
- package/dist/icons/ShieldIcon.js +1 -1
- package/dist/icons/SlashIcon.js +1 -1
- package/dist/icons/SparklesIcon.js +1 -1
- package/dist/icons/SqlIcon.js +1 -1
- package/dist/icons/StatsIcon.js +1 -1
- package/dist/icons/StopIcon.js +1 -1
- package/dist/icons/StringIcon.js +1 -1
- package/dist/icons/SubtotalsIcon.js +1 -1
- package/dist/icons/SwitchIcon.js +1 -1
- package/dist/icons/TableIcon.js +1 -1
- package/dist/icons/ThumbsDownIcon.js +1 -1
- package/dist/icons/ThumbsUpIcon.js +1 -1
- package/dist/icons/ThunderboltCrossedIcon.js +1 -1
- package/dist/icons/ThunderboltFilledIcon.js +1 -1
- package/dist/icons/ThunderboltIcon.js +1 -1
- package/dist/icons/TimeIcon.js +1 -1
- package/dist/icons/TrashIcon.js +1 -1
- package/dist/icons/UnlockIcon.js +1 -1
- package/dist/icons/UpIcon.js +1 -1
- package/dist/icons/UserGroupIcon.js +1 -1
- package/dist/icons/UserIcon.js +1 -1
- package/dist/icons/UserLockIcon.js +1 -1
- package/dist/icons/ViewIcon.js +1 -1
- package/dist/icons/WarningFilledIcon.js +1 -1
- package/dist/icons/WarningIcon.js +1 -1
- package/dist/icons/wrap-icon.js +1 -1
- package/dist/index.d.ts +9 -7
- package/dist/index.js +12 -11
- package/dist/index.js.map +1 -1
- package/dist/probe/canonicalize.js +1 -1
- package/dist/probe/css.js +1 -1
- package/dist/probe/index.js +1 -1
- package/dist/provider.js +2 -2
- package/dist/provider.js.map +1 -1
- package/dist/providers/TrackingProvider.js +1 -1
- package/dist/providers/navigation-url.js +11 -0
- package/dist/providers/navigation-url.js.map +1 -0
- package/dist/providers/navigationAdapter.default.js +1 -1
- package/dist/providers/use-navigation.js +19 -0
- package/dist/providers/use-navigation.js.map +1 -0
- package/dist/tokens/all-tokens.js +1 -1
- package/dist/tokens/base.js +1 -1
- package/dist/tokens/color-seed.js +1 -1
- package/dist/tokens/color-theme.js +1 -1
- package/dist/tokens/colors.js +1 -1
- package/dist/tokens/layout.js +1 -1
- package/dist/tokens/lazy-styles.js +1 -1
- package/dist/tokens/legacy-color.js +1 -1
- package/dist/tokens/palette-config.js +1 -1
- package/dist/tokens/palette.js +1 -1
- package/dist/tokens/resolve.js +1 -1
- package/dist/tokens/shadows.js +1 -1
- package/dist/tokens/sizes.js +1 -1
- package/dist/tokens/spacing.js +1 -1
- package/dist/tokens/typography.js +1 -1
- package/dist/utils/ResizeSensor.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/dotize.js +1 -1
- package/dist/utils/is-dev-env.js +1 -1
- package/dist/utils/modules.js +1 -1
- package/dist/utils/promise.js +1 -1
- package/dist/utils/raf.js +1 -1
- package/dist/utils/random.js +1 -1
- package/dist/utils/range.js +1 -1
- package/dist/utils/react/RenderCache.js +1 -1
- package/dist/utils/react/Slots.js +1 -1
- package/dist/utils/react/chain.js +1 -1
- package/dist/utils/react/disabledProps.js +1 -1
- package/dist/utils/react/forwardRefWithGenerics.js +1 -1
- package/dist/utils/react/index.js +4 -4
- package/dist/utils/react/interactions.js +1 -1
- package/dist/utils/react/isTextOnly.js +1 -1
- package/dist/utils/react/mapProps.js +1 -1
- package/dist/utils/react/mergeProps.js +1 -1
- package/dist/utils/react/nullableValue.js +1 -1
- package/dist/utils/react/overlayKeyPropagation.js +1 -1
- package/dist/utils/react/programmaticFocus.js +1 -1
- package/dist/utils/react/resolveIcon.js +1 -1
- package/dist/utils/react/sharedStore.js +1 -1
- package/dist/utils/react/useBufferedValue.js +1 -1
- package/dist/utils/react/useCombinedRefs.js +1 -1
- package/dist/utils/react/useControlledFocusVisible.js +1 -1
- package/dist/utils/react/useEventBus.js +1 -1
- package/dist/utils/react/useId.js +1 -1
- package/dist/utils/react/useIsDarwin.js +1 -1
- package/dist/utils/react/useKeySymbols.js +1 -1
- package/dist/utils/react/useLayoutEffect.js +1 -1
- package/dist/utils/react/useLocalStorage.js +1 -1
- package/dist/utils/react/useMergeStyles.js +1 -1
- package/dist/utils/react/useOverlayEscapeGuard.js +1 -1
- package/dist/utils/react/usePopoverSync.js +1 -1
- package/dist/utils/react/useQaProps.js +1 -1
- package/dist/utils/react/useScheme.js +1 -1
- package/dist/utils/react/useViewportSize.js +1 -1
- package/dist/utils/react/wrapNodeIfPlain.js +1 -1
- package/dist/utils/selection.js +1 -1
- package/dist/utils/styles.js +1 -1
- package/dist/utils/tree.js +1 -1
- package/dist/utils/warnings.js +1 -1
- package/dist/version.js +2 -2
- package/docs/Usage.md +4 -0
- package/docs/components/CollectionItem.md +5 -1
- package/docs/components/actions/CommandMenu.md +46 -18
- package/docs/components/actions/Menu.md +124 -19
- package/docs/components/content/Layout.md +1 -1
- package/docs/components/content/Placeholder.md +2 -0
- package/docs/components/content/Skeleton.md +2 -0
- package/docs/components/data/ItemTable.md +2 -0
- package/docs/components/overlays/Dialog.md +1 -1
- package/docs/components/overlays/DialogContainer.md +1 -2
- package/docs/components/overlays/DialogTrigger.md +1 -0
- package/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HotKeys.js","names":["BasePropsWithoutChildren","CONTAINER_STYLES","ContainerStyleProps","filterBaseProps","tasty","Children","forwardRef","Fragment","useKeySymbols","extractStyles","Space","Text","StyledHotKeys","qa","role","styles","display","flow","gap","placeSelf","KeyElement","as","placeContent","placeItems","radius","preset","boxSizing","width","height","textAlign","whiteSpace","padding","color","fill","border","CubeHotKeysProps","children","type","HotKeys","props","ref","$","_c","otherProps","t0","toArray","join","parsedKeys","T0","t1","t2","eventProps","labelable","
|
|
1
|
+
{"version":3,"file":"HotKeys.js","names":["BasePropsWithoutChildren","CONTAINER_STYLES","ContainerStyleProps","filterBaseProps","tasty","Children","forwardRef","Fragment","useI18n","useKeySymbols","extractStyles","Space","Text","StyledHotKeys","qa","role","styles","display","flow","gap","placeSelf","KeyElement","as","placeContent","placeItems","radius","preset","boxSizing","width","height","textAlign","whiteSpace","padding","color","fill","border","CubeHotKeysProps","children","type","HotKeys","props","ref","$","_c","otherProps","t","t0","toArray","join","parsedKeys","T0","t1","t2","t3","eventProps","labelable","t4","t5","keyGroup","groupIndex","index","map","key","keyIndex","_HotKeys","displayName"],"sources":["../../../../src/components/content/HotKeys/HotKeys.tsx"],"sourcesContent":["import {\n BasePropsWithoutChildren,\n CONTAINER_STYLES,\n ContainerStyleProps,\n filterBaseProps,\n tasty,\n} from '@tenphi/tasty';\nimport { Children, forwardRef, Fragment } from 'react';\n\nimport { useI18n } from '../../../i18n';\nimport { useKeySymbols } from '../../../utils/react/useKeySymbols';\nimport { extractStyles } from '../../../utils/styles';\nimport { Space } from '../../layout/Space';\nimport { Text } from '../Text';\n\nconst StyledHotKeys = tasty(Space, {\n qa: 'HotKeys',\n role: 'group',\n styles: {\n display: 'inline-flex',\n flow: 'row',\n gap: '1x',\n placeSelf: 'center',\n },\n});\n\nconst KeyElement = tasty({\n as: 'kbd',\n role: 'text',\n styles: {\n display: 'inline-flex',\n placeContent: 'center',\n placeItems: 'center start',\n radius: '1r',\n preset: 'tag',\n boxSizing: 'border-box',\n width: '2.5x max-content max-content',\n height: 'min-content',\n textAlign: 'left',\n whiteSpace: 'nowrap',\n padding: '0 (.5x - 1bw)',\n color: {\n '': '#dark.65',\n 'type=primary': '#white',\n 'type=inherit': '#current',\n },\n fill: {\n '': '#dark.04',\n 'type=primary | type=inherit': '#clear',\n },\n border: {\n '': true,\n 'type=primary': '#white',\n 'type=inherit': '#current',\n },\n },\n});\n\nexport interface CubeHotKeysProps\n extends BasePropsWithoutChildren,\n ContainerStyleProps {\n /**\n * Key combinations, such as `\"mod+k, ctrl+k\"`. An array of text, which\n * `<Trans>` passes to a component slot, is joined into one string first.\n */\n children?: string | readonly (string | number)[];\n type?: 'default' | 'primary' | 'inherit';\n}\n\nfunction HotKeys(props: CubeHotKeysProps, ref) {\n const { children, type, ...otherProps } = props;\n const { t } = useI18n();\n const parsedKeys = useKeySymbols(Children.toArray(children).join(''));\n const styles = extractStyles(otherProps, CONTAINER_STYLES);\n\n return (\n <StyledHotKeys\n qa=\"HotKeys\"\n aria-label={t('hotKeys.ariaLabel', 'Keyboard shortcuts')}\n {...filterBaseProps(otherProps, { eventProps: true, labelable: true })}\n ref={ref}\n styles={styles}\n >\n {parsedKeys.map((keyGroup, groupIndex) => (\n <Fragment key={groupIndex}>\n {groupIndex > 0 && (\n <Text color=\"#dark-03\" role=\"separator\" aria-hidden=\"true\">\n {t('hotKeys.or', 'or')}\n </Text>\n )}\n <Space\n flow=\"row\"\n gap=\"0.25x\"\n role=\"group\"\n aria-label={t('hotKeys.combination', 'Key combination {{index}}', {\n index: groupIndex + 1,\n })}\n >\n {keyGroup.map((key, keyIndex) => (\n <KeyElement\n key={keyIndex}\n data-type={type}\n as=\"kbd\"\n role=\"text\"\n aria-label={t('hotKeys.key', 'Key {{key}}', { key })}\n >\n {key}\n </KeyElement>\n ))}\n </Space>\n </Fragment>\n ))}\n </StyledHotKeys>\n );\n}\n\nconst _HotKeys = forwardRef(HotKeys);\n\n_HotKeys.displayName = 'HotKeys';\n\nexport { _HotKeys as HotKeys };\n"],"mappings":";;;;;;;;;;;;AAeA,MAAMa,gBAAgBT,MAAMO,OAAO;CACjCG,IAAI;CACJC,MAAM;CACNC,QAAQ;EACNC,SAAS;EACTC,MAAM;EACNC,KAAK;EACLC,WAAW;EACb;CACD,CAAC;AAEF,MAAMC,aAAajB,MAAM;CACvBkB,IAAI;CACJP,MAAM;CACNC,QAAQ;EACNC,SAAS;EACTM,cAAc;EACdC,YAAY;EACZC,QAAQ;EACRC,QAAQ;EACRC,WAAW;EACXC,OAAO;EACPC,QAAQ;EACRC,WAAW;EACXC,YAAY;EACZC,SAAS;EACTC,OAAO;GACL,IAAI;GACJ,gBAAgB;GAChB,gBAAgB;GACjB;EACDC,MAAM;GACJ,IAAI;GACJ,+BAA+B;GAChC;EACDC,QAAQ;GACN,IAAI;GACJ,gBAAgB;GAChB,gBAAgB;GAClB;EACF;CACD,CAAC;AAaF,SAAAI,QAAAC,OAAAC,KAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CACE,MAAA,EAAAN,UAAAC,MAAA,GAAAM,eAA0CJ;CAC1C,MAAA,EAAAK,MAAcrC,SAAS;CAAC,IAAAsC;AAAA,KAAAJ,EAAA,OAAAL,UAAA;AACSS,OAAAzC,SAAQ0C,QAASV,SAAS,CAAAW,KAAM,GAAG;AAAAN,IAAA,KAAAL;AAAAK,IAAA,KAAAI;OAAAA,MAAAJ,EAAA;CAApE,MAAAO,aAAmBxC,cAAcqC,GAAoC;CACrE,MAAA9B,SAAeN,cAAckC,YAAY3C,iBAAiB;CAGvD,MAAAiD,KAAArC;CACI,MAAAsC,KAAA;CAAS,IAAAC;AAAA,KAAAV,EAAA,OAAAG,GAAA;AACAO,OAAAP,EAAE,qBAAqB,qBAAqB;AAAAH,IAAA,KAAAG;AAAAH,IAAA,KAAAU;OAAAA,MAAAV,EAAA;CACpD,MAAAW,KAAAlD,gBAAgByC,YAAY;EAAAU,YAAc;EAAIC,WAAa;EAAM,CAAC;CAAA,IAAAC;AAAA,KAAAd,EAAA,OAAAO,cAAAP,EAAA,OAAAG,KAAAH,EAAA,OAAAJ,MAAA;EAAA,IAAAmB;AAAA,MAAAf,EAAA,OAAAG,KAAAH,EAAA,OAAAJ,MAAA;AAItDmB,SAAAC,UAAAC,eACd,qBAAC,uBACEA,aAAa,KACZ,oBAAC;IAAW,OAAA;IAAgB,MAAA;IAAwB,eAAA;cACjDd,EAAE,cAAc,KAAI;KAEzB,EACA,oBAAC;IACM,MAAA;IACD,KAAA;IACC,MAAA;IACO,cAAAA,EAAE,uBAAuB,6BAA6B,EAAAe,OACzDD,aAAa,GACrB,CAAA;cAEAD,SAAQG,KAAKC,KAAAC,aACZ,oBAAC;KAEYzB,aAAAA;KACR,IAAA;KACE,MAAA;KACO,cAAAO,EAAE,eAAe,eAAe,EAAAiB,KAAO,CAAA;eAElDA;OANIC,SAQR,CAAA;KAEL,KA1BeJ,WA2BhB;AAAAjB,KAAA,KAAAG;AAAAH,KAAA,KAAAJ;AAAAI,KAAA,MAAAe;QAAAA,MAAAf,EAAA;AA5BAc,OAAAP,WAAUY,IAAKJ,GA4Bd;AAAAf,IAAA,KAAAO;AAAAP,IAAA,KAAAG;AAAAH,IAAA,KAAAJ;AAAAI,IAAA,KAAAc;OAAAA,MAAAd,EAAA;CAAA,IAAAe;AAAA,KAAAf,EAAA,QAAAQ,MAAAR,EAAA,QAAAD,OAAAC,EAAA,QAAA1B,UAAA0B,EAAA,QAAAU,MAAAV,EAAA,QAAAW,MAAAX,EAAA,QAAAc,IAAA;AAnCJC,OAAA,oBAAC;GACI,IAAAN;GACS,cAAAC;GAA4C,GACpDC;GACCZ;GACGzB;aAEPwC;IA6Ba;AAAAd,IAAA,MAAAQ;AAAAR,IAAA,MAAAD;AAAAC,IAAA,MAAA1B;AAAA0B,IAAA,MAAAU;AAAAV,IAAA,MAAAW;AAAAX,IAAA,MAAAc;AAAAd,IAAA,MAAAe;OAAAA,MAAAf,EAAA;AAAA,QApChBe;;AAwCJ,MAAMO,WAAW1D,WAAWiC,QAAQ;AAEpCyB,SAASC,cAAc"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.194.1 | Cube Dev Team */
|
|
2
2
|
import { useWarn } from "../../../_internal/hooks/use-warn.js";
|
|
3
3
|
import { ItemAction } from "../../actions/ItemAction/ItemAction.js";
|
|
4
4
|
import { ItemBadge } from "../ItemBadge/ItemBadge.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.194.1 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
4
4
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
|
|
2
2
|
import { Props } from "../../../props.js";
|
|
3
3
|
import { CubeTooltipProviderProps } from "../../overlays/Tooltip/TooltipProvider.js";
|
|
4
|
+
import { CubeItemActionProps } from "../../actions/ItemAction/ItemAction.js";
|
|
4
5
|
import { DynamicIcon } from "../../../utils/react/resolveIcon.js";
|
|
5
6
|
import "../../../utils/react/index.js";
|
|
6
7
|
import { CubeItemBadgeProps } from "../ItemBadge/ItemBadge.js";
|
|
7
8
|
import "./index.js";
|
|
9
|
+
import "../../actions/index.js";
|
|
8
10
|
import { ItemVariant } from "../../../data/item-themes.js";
|
|
9
11
|
import { TooltipFocusProps } from "../../overlays/Tooltip/split-trigger-props.js";
|
|
10
|
-
import { CubeItemActionProps } from "../../actions/ItemAction/ItemAction.js";
|
|
11
|
-
import "../../actions/index.js";
|
|
12
12
|
import { BaseProps, ContainerStyleProps, Mods, Styles } from "@tenphi/tasty";
|
|
13
|
-
import
|
|
14
|
-
import { ReactNode, Ref } from "react";
|
|
13
|
+
import { ForwardRefExoticComponent, HTMLAttributes, ReactNode, Ref, RefAttributes } from "react";
|
|
15
14
|
import { PositionProps } from "react-aria";
|
|
16
15
|
import * as _react_types_shared0 from "@react-types/shared";
|
|
17
16
|
|
|
@@ -203,10 +202,11 @@ interface CubeItemProps extends BaseProps, ContainerStyleProps {
|
|
|
203
202
|
*/
|
|
204
203
|
variant?: ItemVariant;
|
|
205
204
|
}
|
|
206
|
-
declare const _Item:
|
|
207
|
-
Action:
|
|
208
|
-
Badge:
|
|
205
|
+
declare const _Item: ForwardRefExoticComponent<CubeItemProps & RefAttributes<HTMLElement>> & {
|
|
206
|
+
Action: ForwardRefExoticComponent<CubeItemActionProps & RefAttributes<_react_types_shared0.FocusableRefValue<HTMLElement, HTMLElement>>>;
|
|
207
|
+
Badge: ForwardRefExoticComponent<CubeItemBadgeProps & RefAttributes<HTMLDivElement>>;
|
|
209
208
|
};
|
|
209
|
+
/** @private Preserves Item layout around native menu targets. */
|
|
210
210
|
//#endregion
|
|
211
211
|
export { CubeItemProps, ItemMods, _Item };
|
|
212
212
|
//# sourceMappingURL=Item.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
2
|
-
import { getDisabledElementProps, omitActivationEventProps } from "../../../utils/react/disabledProps.js";
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.194.1 | Cube Dev Team */
|
|
3
2
|
import { mergeProps } from "../../../utils/react/mergeProps.js";
|
|
4
|
-
import { resolveIcon } from "../../../utils/react/resolveIcon.js";
|
|
5
3
|
import { highlightText } from "../highlightText.js";
|
|
4
|
+
import { getDisabledElementProps, omitActivationEventProps } from "../../../utils/react/disabledProps.js";
|
|
5
|
+
import { resolveIcon } from "../../../utils/react/resolveIcon.js";
|
|
6
6
|
import { useWarn } from "../../../_internal/hooks/use-warn.js";
|
|
7
7
|
import { useAutoTooltip } from "../use-auto-tooltip.js";
|
|
8
8
|
import { ITEM_VARIANTS, resolveItemVariant } from "../../../data/item-themes.js";
|
|
@@ -12,10 +12,10 @@ import { ItemActionProvider } from "../../actions/ItemActionContext.js";
|
|
|
12
12
|
import { ItemAction } from "../../actions/ItemAction/ItemAction.js";
|
|
13
13
|
import { ItemBadge } from "../ItemBadge/ItemBadge.js";
|
|
14
14
|
import { IconSwitch } from "../../helpers/IconSwitch/IconSwitch.js";
|
|
15
|
-
import { splitTooltipTriggerProps } from "../../overlays/Tooltip/split-trigger-props.js";
|
|
15
|
+
import { mergeTooltipFocusProps, splitTooltipTriggerProps } from "../../overlays/Tooltip/split-trigger-props.js";
|
|
16
16
|
import { _HotKeys } from "../HotKeys/HotKeys.js";
|
|
17
17
|
import { c } from "react/compiler-runtime";
|
|
18
|
-
import { CONTAINER_STYLES, tasty } from "@tenphi/tasty";
|
|
18
|
+
import { CONTAINER_STYLES, tasty, useGlobalStyles } from "@tenphi/tasty";
|
|
19
19
|
import { forwardRef, isValidElement } from "react";
|
|
20
20
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
21
21
|
import { useHotkeys } from "react-hotkeys-hook";
|
|
@@ -56,6 +56,7 @@ const ACTIONS_EVENT_HANDLERS = {
|
|
|
56
56
|
const ItemElement = tasty({
|
|
57
57
|
as: "div",
|
|
58
58
|
styles: {
|
|
59
|
+
"@native-row": "menu-native-row",
|
|
59
60
|
"@interacted": "active | :hover | :focus | :focus-within | :has([data-pressed])",
|
|
60
61
|
display: "inline-grid",
|
|
61
62
|
flow: "column dense",
|
|
@@ -192,6 +193,10 @@ const ItemElement = tasty({
|
|
|
192
193
|
Label: {
|
|
193
194
|
$: ">",
|
|
194
195
|
margin: 0,
|
|
196
|
+
zIndex: {
|
|
197
|
+
"": void 0,
|
|
198
|
+
"@native-row": 1
|
|
199
|
+
},
|
|
195
200
|
gridArea: "label",
|
|
196
201
|
display: "block",
|
|
197
202
|
placeSelf: "center start",
|
|
@@ -236,6 +241,14 @@ const ItemElement = tasty({
|
|
|
236
241
|
placeItems: "center",
|
|
237
242
|
placeContent: "stretch",
|
|
238
243
|
gridArea: "prefix",
|
|
244
|
+
zIndex: {
|
|
245
|
+
"": void 0,
|
|
246
|
+
"@native-row": 1
|
|
247
|
+
},
|
|
248
|
+
pointerEvents: {
|
|
249
|
+
"": void 0,
|
|
250
|
+
"@native-row": "none"
|
|
251
|
+
},
|
|
239
252
|
padding: {
|
|
240
253
|
"": "0 $prefix-gap 0 $inline-padding",
|
|
241
254
|
"has-icon": "$prefix-gap right"
|
|
@@ -248,6 +261,14 @@ const ItemElement = tasty({
|
|
|
248
261
|
placeItems: "center",
|
|
249
262
|
placeContent: "stretch",
|
|
250
263
|
gridArea: "suffix",
|
|
264
|
+
zIndex: {
|
|
265
|
+
"": void 0,
|
|
266
|
+
"@native-row": 1
|
|
267
|
+
},
|
|
268
|
+
pointerEvents: {
|
|
269
|
+
"": void 0,
|
|
270
|
+
"@native-row": "none"
|
|
271
|
+
},
|
|
251
272
|
padding: {
|
|
252
273
|
"": "0 $inline-padding 0 $suffix-gap",
|
|
253
274
|
"has-right-icon | (has-actions & inside-wrapper)": "$suffix-gap left"
|
|
@@ -256,6 +277,14 @@ const ItemElement = tasty({
|
|
|
256
277
|
Actions: {
|
|
257
278
|
$: ">",
|
|
258
279
|
gridArea: "actions",
|
|
280
|
+
zIndex: {
|
|
281
|
+
"": void 0,
|
|
282
|
+
"@native-row": 1
|
|
283
|
+
},
|
|
284
|
+
pointerEvents: {
|
|
285
|
+
"": void 0,
|
|
286
|
+
"@native-row": "none"
|
|
287
|
+
},
|
|
259
288
|
display: "flex",
|
|
260
289
|
gap: "1bw",
|
|
261
290
|
placeItems: "center",
|
|
@@ -505,9 +534,32 @@ function useHotkeyClick(hotkeys, isDisabled, ref) {
|
|
|
505
534
|
function highlightContent(content, highlight, caseSensitive, highlightStyles) {
|
|
506
535
|
return typeof content === "string" && highlight ? highlightText(content, highlight, caseSensitive, highlightStyles) : content;
|
|
507
536
|
}
|
|
537
|
+
const NativeItemLink = tasty({
|
|
538
|
+
as: "a",
|
|
539
|
+
styles: {
|
|
540
|
+
display: "block",
|
|
541
|
+
color: "inherit",
|
|
542
|
+
textDecoration: "none",
|
|
543
|
+
outline: 0,
|
|
544
|
+
zIndex: {
|
|
545
|
+
"": "auto",
|
|
546
|
+
"row-native-cell": 1
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
});
|
|
550
|
+
const NATIVE_ROW_TARGET_STYLES = {
|
|
551
|
+
position: "absolute",
|
|
552
|
+
inset: "($native-row-inset, 0)",
|
|
553
|
+
width: "($native-row-width, auto)",
|
|
554
|
+
height: "($native-row-height, auto)",
|
|
555
|
+
clipPath: "($native-row-clip, none)",
|
|
556
|
+
zIndex: 0
|
|
557
|
+
};
|
|
558
|
+
const NATIVE_ROW_CONTROL_SELECTOR = ":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\"])";
|
|
559
|
+
const NATIVE_ROW_CONTROL_STYLES = { pointerEvents: "auto" };
|
|
508
560
|
const Item = (props, ref) => {
|
|
509
|
-
const $ = c(
|
|
510
|
-
const { children, size: t0, type: t1, theme: t2, mods, icon: iconProp, rightIcon: rightIconProp, prefix, suffix, description, descriptionPlacement, labelProps, descriptionProps, keyboardShortcutProps, styles, htmlType, isSelected, hotkeys, tooltip: t3, isDisabled, disabled: nativeDisabledProp, style, loadingSlot: t4, isLoading: t5, actions, autoHideActions: t6, preserveActionsSpace: t7, disableActionsFocus: t8, shape, defaultTooltipPlacement: t9, level: t10, highlight, highlightCaseSensitive: t11, highlightStyles, insideWrapper: t12, showActions: t13, skipActionsWidthTransition: t14, hiddenContent, isDynamicLabel: t15, labelRef: labelRefProp, tokens, ...rest } = props;
|
|
561
|
+
const $ = c(78);
|
|
562
|
+
const { children, size: t0, type: t1, theme: t2, mods, icon: iconProp, rightIcon: rightIconProp, prefix, suffix, description, descriptionPlacement, labelProps, descriptionProps, keyboardShortcutProps, styles, htmlType, isSelected, hotkeys, tooltip: t3, isDisabled, disabled: nativeDisabledProp, style, loadingSlot: t4, isLoading: t5, actions, autoHideActions: t6, preserveActionsSpace: t7, disableActionsFocus: t8, shape, defaultTooltipPlacement: t9, level: t10, highlight, highlightCaseSensitive: t11, highlightStyles, insideWrapper: t12, showActions: t13, skipActionsWidthTransition: t14, hiddenContent, isDynamicLabel: t15, labelRef: labelRefProp, nativeLinkProps, nativeMenuItemProps, nativeRowRef, nativeLabelReferenceId, onInlineFocus, onNativeLinkElement, onNativeElement, tokens, ...rest } = props;
|
|
511
563
|
const size = t0 === void 0 ? "medium" : t0;
|
|
512
564
|
const type = t1 === void 0 ? "item" : t1;
|
|
513
565
|
const theme = t2 === void 0 ? "default" : t2;
|
|
@@ -524,6 +576,7 @@ const Item = (props, ref) => {
|
|
|
524
576
|
const showActions = t13 === void 0 ? false : t13;
|
|
525
577
|
const skipActionsWidthTransition = t14 === void 0 ? false : t14;
|
|
526
578
|
const isDynamicLabel = t15 === void 0 ? false : t15;
|
|
579
|
+
useGlobalStyles(NATIVE_ROW_CONTROL_SELECTOR, nativeMenuItemProps ? NATIVE_ROW_CONTROL_STYLES : void 0);
|
|
527
580
|
const hasLabel = !!(children || labelProps);
|
|
528
581
|
const finalDescriptionPlacement = descriptionPlacement ?? ((type === "card" || type === "header") && hasLabel ? "block" : "inline");
|
|
529
582
|
const finalShape = shape ?? (type === "card" ? "card" : "button");
|
|
@@ -650,14 +703,15 @@ const Item = (props, ref) => {
|
|
|
650
703
|
const t24 = !!finalSuffix;
|
|
651
704
|
const t25 = !!actions;
|
|
652
705
|
const t26 = !!(actions && actions !== true);
|
|
653
|
-
const t27 =
|
|
654
|
-
const t28 =
|
|
655
|
-
const t29 =
|
|
656
|
-
const t30 =
|
|
657
|
-
const t31 =
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
706
|
+
const t27 = !!nativeMenuItemProps;
|
|
707
|
+
const t28 = autoHideActions === true;
|
|
708
|
+
const t29 = preserveActionsSpace === true;
|
|
709
|
+
const t30 = showActions && insideWrapper;
|
|
710
|
+
const t31 = skipActionsWidthTransition && insideWrapper;
|
|
711
|
+
const t32 = showDescription ? finalDescriptionPlacement : "none";
|
|
712
|
+
let t33;
|
|
713
|
+
if ($[38] !== baseMods || $[39] !== hasCheckmark || $[40] !== hasLabel || $[41] !== iconSlot.hasSlot || $[42] !== insideWrapper || $[43] !== rightIconSlot.hasSlot || $[44] !== showDescription || $[45] !== t21 || $[46] !== t22 || $[47] !== t23 || $[48] !== t24 || $[49] !== t25 || $[50] !== t26 || $[51] !== t27 || $[52] !== t28 || $[53] !== t29 || $[54] !== t30 || $[55] !== t31 || $[56] !== t32) {
|
|
714
|
+
t33 = {
|
|
661
715
|
...baseMods,
|
|
662
716
|
"has-icon": iconSlot.hasSlot,
|
|
663
717
|
"has-start-content": t21,
|
|
@@ -669,13 +723,14 @@ const Item = (props, ref) => {
|
|
|
669
723
|
"has-description": showDescription,
|
|
670
724
|
"has-actions": t25,
|
|
671
725
|
"has-actions-content": t26,
|
|
672
|
-
"
|
|
673
|
-
"
|
|
726
|
+
"menu-native-row": t27,
|
|
727
|
+
"auto-hide-actions": t28,
|
|
728
|
+
"preserve-actions-space": t29,
|
|
674
729
|
"inside-wrapper": insideWrapper,
|
|
675
|
-
"actions-shown":
|
|
676
|
-
"skip-actions-width-transition":
|
|
730
|
+
"actions-shown": t30,
|
|
731
|
+
"skip-actions-width-transition": t31,
|
|
677
732
|
checkmark: hasCheckmark,
|
|
678
|
-
description:
|
|
733
|
+
description: t32
|
|
679
734
|
};
|
|
680
735
|
$[38] = baseMods;
|
|
681
736
|
$[39] = hasCheckmark;
|
|
@@ -696,62 +751,72 @@ const Item = (props, ref) => {
|
|
|
696
751
|
$[54] = t30;
|
|
697
752
|
$[55] = t31;
|
|
698
753
|
$[56] = t32;
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
const
|
|
702
|
-
const t34 =
|
|
754
|
+
$[57] = t33;
|
|
755
|
+
} else t33 = $[57];
|
|
756
|
+
const finalMods = t33;
|
|
757
|
+
const t34 = finalMods["menu-native-row"];
|
|
703
758
|
let t35;
|
|
704
|
-
if ($[
|
|
705
|
-
t35 = {
|
|
759
|
+
if ($[58] !== t34) {
|
|
760
|
+
t35 = { "row-native-cell": t34 };
|
|
761
|
+
$[58] = t34;
|
|
762
|
+
$[59] = t35;
|
|
763
|
+
} else t35 = $[59];
|
|
764
|
+
const nativeCellMods = t35;
|
|
765
|
+
const t36 = descriptionProps?.ref;
|
|
766
|
+
const t37 = isDynamicLabel || !!actions || insideWrapper;
|
|
767
|
+
let t38;
|
|
768
|
+
if ($[60] !== children || $[61] !== description || $[62] !== labelProps || $[63] !== labelRefProp || $[64] !== t36 || $[65] !== t37 || $[66] !== tooltip) {
|
|
769
|
+
t38 = {
|
|
706
770
|
tooltip,
|
|
707
771
|
children,
|
|
708
772
|
description,
|
|
709
773
|
labelProps,
|
|
710
774
|
labelRef: labelRefProp,
|
|
711
|
-
descriptionRef:
|
|
712
|
-
isDynamicLabel:
|
|
775
|
+
descriptionRef: t36,
|
|
776
|
+
isDynamicLabel: t37
|
|
713
777
|
};
|
|
714
|
-
$[
|
|
715
|
-
$[
|
|
716
|
-
$[
|
|
717
|
-
$[
|
|
718
|
-
$[
|
|
719
|
-
$[
|
|
720
|
-
$[
|
|
721
|
-
$[
|
|
722
|
-
} else
|
|
723
|
-
const { labelProps: finalLabelProps, labelRef, descriptionRef, renderWithTooltip, isTooltipActive } = useAutoTooltip(
|
|
778
|
+
$[60] = children;
|
|
779
|
+
$[61] = description;
|
|
780
|
+
$[62] = labelProps;
|
|
781
|
+
$[63] = labelRefProp;
|
|
782
|
+
$[64] = t36;
|
|
783
|
+
$[65] = t37;
|
|
784
|
+
$[66] = tooltip;
|
|
785
|
+
$[67] = t38;
|
|
786
|
+
} else t38 = $[67];
|
|
787
|
+
const { labelProps: finalLabelProps, labelRef, descriptionRef, renderWithTooltip, isTooltipActive } = useAutoTooltip(t38);
|
|
724
788
|
const { isNativelyDisabled, isInert, inertProps } = getDisabledElementProps({
|
|
725
789
|
isDisabled: finalIsDisabled,
|
|
726
790
|
keepEvents: isTooltipActive,
|
|
727
791
|
as: rest.as
|
|
728
792
|
});
|
|
729
|
-
let
|
|
730
|
-
if ($[
|
|
731
|
-
|
|
732
|
-
$[
|
|
733
|
-
$[
|
|
734
|
-
$[
|
|
735
|
-
$[
|
|
736
|
-
$[
|
|
737
|
-
} else
|
|
738
|
-
const processedChildren =
|
|
739
|
-
let
|
|
740
|
-
if ($[
|
|
741
|
-
|
|
742
|
-
$[
|
|
743
|
-
$[
|
|
744
|
-
$[
|
|
745
|
-
$[
|
|
746
|
-
$[
|
|
747
|
-
} else
|
|
748
|
-
const processedDescription =
|
|
793
|
+
let t39;
|
|
794
|
+
if ($[68] !== children || $[69] !== highlight || $[70] !== highlightCaseSensitive || $[71] !== highlightStyles) {
|
|
795
|
+
t39 = highlightContent(children, highlight, highlightCaseSensitive, highlightStyles);
|
|
796
|
+
$[68] = children;
|
|
797
|
+
$[69] = highlight;
|
|
798
|
+
$[70] = highlightCaseSensitive;
|
|
799
|
+
$[71] = highlightStyles;
|
|
800
|
+
$[72] = t39;
|
|
801
|
+
} else t39 = $[72];
|
|
802
|
+
const processedChildren = t39;
|
|
803
|
+
let t40;
|
|
804
|
+
if ($[73] !== description || $[74] !== highlight || $[75] !== highlightCaseSensitive || $[76] !== highlightStyles) {
|
|
805
|
+
t40 = highlightContent(description, highlight, highlightCaseSensitive, highlightStyles);
|
|
806
|
+
$[73] = description;
|
|
807
|
+
$[74] = highlight;
|
|
808
|
+
$[75] = highlightCaseSensitive;
|
|
809
|
+
$[76] = highlightStyles;
|
|
810
|
+
$[77] = t40;
|
|
811
|
+
} else t40 = $[77];
|
|
812
|
+
const processedDescription = t40;
|
|
749
813
|
const renderItemElement = (tooltipTriggerProps, tooltipRef) => {
|
|
750
|
-
const { pointerProps: elementTooltipProps, focusProps: tooltipFocusProps } = typeof hiddenContent === "function" ? splitTooltipTriggerProps(tooltipTriggerProps) : {
|
|
814
|
+
const { pointerProps: elementTooltipProps, focusProps: tooltipFocusProps } = typeof hiddenContent === "function" || nativeMenuItemProps ? splitTooltipTriggerProps(tooltipTriggerProps) : {
|
|
751
815
|
pointerProps: tooltipTriggerProps,
|
|
752
816
|
focusProps: void 0
|
|
753
817
|
};
|
|
754
818
|
const handleRef = (element) => {
|
|
819
|
+
onNativeElement?.(element);
|
|
755
820
|
if (typeof ref === "function") ref(element);
|
|
756
821
|
else if (ref) ref.current = element;
|
|
757
822
|
if (tooltipRef) tooltipRef.current = element;
|
|
@@ -767,28 +832,96 @@ const Item = (props, ref) => {
|
|
|
767
832
|
tokens: finalTokens,
|
|
768
833
|
type: htmlType,
|
|
769
834
|
...mergeProps(isInert ? omitActivationEventProps(rest) : rest, elementTooltipProps || {}, inertProps),
|
|
835
|
+
...nativeMenuItemProps ? {
|
|
836
|
+
"aria-disabled": void 0,
|
|
837
|
+
"aria-selected": void 0
|
|
838
|
+
} : null,
|
|
770
839
|
style,
|
|
771
840
|
children: [
|
|
841
|
+
nativeMenuItemProps ? /* @__PURE__ */ jsx(NativeItemLink, {
|
|
842
|
+
...mergeTooltipFocusProps(mergeProps(nativeLinkProps, nativeMenuItemProps), tooltipFocusProps),
|
|
843
|
+
ref: nativeRowRef,
|
|
844
|
+
styles: NATIVE_ROW_TARGET_STYLES,
|
|
845
|
+
style: { margin: 0 },
|
|
846
|
+
"aria-hidden": nativeMenuItemProps["aria-hidden"],
|
|
847
|
+
"data-menu-native-link": "",
|
|
848
|
+
"data-menu-native-hit-area": ""
|
|
849
|
+
}) : null,
|
|
772
850
|
typeof hiddenContent === "function" ? hiddenContent(tooltipFocusProps ?? {}, isTooltipActive) : hiddenContent,
|
|
773
|
-
iconSlot.hasSlot && /* @__PURE__ */ jsx(
|
|
851
|
+
iconSlot.hasSlot && (nativeLinkProps ? /* @__PURE__ */ jsx(NativeItemLink, {
|
|
852
|
+
mods: nativeCellMods,
|
|
774
853
|
"data-element": "Icon",
|
|
854
|
+
...nativeLinkProps,
|
|
855
|
+
"aria-hidden": true,
|
|
856
|
+
"data-menu-native-link": "",
|
|
775
857
|
children: /* @__PURE__ */ jsx(IconSwitch, {
|
|
776
858
|
noWrapper: true,
|
|
777
859
|
contentKey: iconSlot.key,
|
|
778
860
|
children: iconSlot.content
|
|
779
861
|
})
|
|
780
|
-
}),
|
|
862
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
863
|
+
"data-element": "Icon",
|
|
864
|
+
children: /* @__PURE__ */ jsx(IconSwitch, {
|
|
865
|
+
noWrapper: true,
|
|
866
|
+
contentKey: iconSlot.key,
|
|
867
|
+
children: iconSlot.content
|
|
868
|
+
})
|
|
869
|
+
})),
|
|
781
870
|
finalPrefix && /* @__PURE__ */ jsx("div", {
|
|
782
871
|
"data-element": "Prefix",
|
|
872
|
+
...nativeMenuItemProps ? ACTIONS_EVENT_HANDLERS : null,
|
|
783
873
|
children: finalPrefix
|
|
784
874
|
}),
|
|
785
|
-
children || labelProps ?
|
|
786
|
-
"
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
875
|
+
children || labelProps ? (() => {
|
|
876
|
+
const LabelTag = type === "header" || type === "card" ? `h${level}` : "div";
|
|
877
|
+
if (nativeLinkProps && LabelTag !== "div") return /* @__PURE__ */ jsx(LabelTag, {
|
|
878
|
+
"data-element": "Label",
|
|
879
|
+
...finalLabelProps,
|
|
880
|
+
id: nativeLabelReferenceId ?? finalLabelProps.id,
|
|
881
|
+
"aria-labelledby": finalLabelProps["aria-labelledby"] ?? (nativeMenuItemProps && finalLabelProps["aria-label"] == null ? `${nativeLabelReferenceId}-content` : void 0),
|
|
882
|
+
ref: (element_0) => {
|
|
883
|
+
labelRef(element_0);
|
|
884
|
+
},
|
|
885
|
+
children: /* @__PURE__ */ jsx(NativeItemLink, {
|
|
886
|
+
mods: nativeCellMods,
|
|
887
|
+
...nativeLinkProps,
|
|
888
|
+
id: nativeMenuItemProps ? `${nativeLabelReferenceId}-content` : void 0,
|
|
889
|
+
"aria-hidden": nativeMenuItemProps ? true : void 0,
|
|
890
|
+
display: "inline",
|
|
891
|
+
"data-menu-native-link": "",
|
|
892
|
+
children: processedChildren
|
|
893
|
+
})
|
|
894
|
+
});
|
|
895
|
+
if (nativeLinkProps) return /* @__PURE__ */ jsx(NativeItemLink, {
|
|
896
|
+
mods: nativeCellMods,
|
|
897
|
+
"data-element": "Label",
|
|
898
|
+
...nativeLinkProps,
|
|
899
|
+
...finalLabelProps,
|
|
900
|
+
id: nativeLabelReferenceId ?? finalLabelProps.id,
|
|
901
|
+
"data-menu-native-link": "",
|
|
902
|
+
ref: (element_1) => {
|
|
903
|
+
labelRef(element_1);
|
|
904
|
+
},
|
|
905
|
+
children: processedChildren
|
|
906
|
+
});
|
|
907
|
+
return /* @__PURE__ */ jsx(LabelTag, {
|
|
908
|
+
"data-element": "Label",
|
|
909
|
+
...finalLabelProps,
|
|
910
|
+
ref: labelRef,
|
|
911
|
+
children: processedChildren
|
|
912
|
+
});
|
|
913
|
+
})() : null,
|
|
914
|
+
showDescription ? nativeLinkProps ? /* @__PURE__ */ jsx(NativeItemLink, {
|
|
915
|
+
mods: nativeCellMods,
|
|
916
|
+
"data-element": "Description",
|
|
917
|
+
...nativeLinkProps,
|
|
918
|
+
...descriptionProps,
|
|
919
|
+
"data-menu-native-link": "",
|
|
920
|
+
ref: (element_2) => {
|
|
921
|
+
descriptionRef(element_2);
|
|
922
|
+
},
|
|
923
|
+
children: processedDescription
|
|
924
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
792
925
|
"data-element": "Description",
|
|
793
926
|
...descriptionProps,
|
|
794
927
|
ref: descriptionRef,
|
|
@@ -796,6 +929,7 @@ const Item = (props, ref) => {
|
|
|
796
929
|
}) : null,
|
|
797
930
|
finalSuffix && /* @__PURE__ */ jsx("div", {
|
|
798
931
|
"data-element": "Suffix",
|
|
932
|
+
...nativeMenuItemProps ? ACTIONS_EVENT_HANDLERS : null,
|
|
799
933
|
children: finalSuffix
|
|
800
934
|
}),
|
|
801
935
|
rightIconSlot.hasSlot && /* @__PURE__ */ jsx("div", {
|
|
@@ -808,11 +942,13 @@ const Item = (props, ref) => {
|
|
|
808
942
|
}),
|
|
809
943
|
actions && /* @__PURE__ */ jsx("div", {
|
|
810
944
|
"data-element": "Actions",
|
|
945
|
+
onFocus: onInlineFocus,
|
|
811
946
|
...actions !== true ? ACTIONS_EVENT_HANDLERS : null,
|
|
812
947
|
children: actions !== true ? /* @__PURE__ */ jsx(ItemActionProvider, {
|
|
813
948
|
type,
|
|
814
949
|
theme,
|
|
815
950
|
disableActionsFocus,
|
|
951
|
+
menuItemAction: !!nativeMenuItemProps,
|
|
816
952
|
isDisabled: finalIsDisabled,
|
|
817
953
|
children: actions
|
|
818
954
|
}) : null
|
|
@@ -826,10 +962,12 @@ const _Item = Object.assign(forwardRef(Item), {
|
|
|
826
962
|
Action: ItemAction,
|
|
827
963
|
Badge: ItemBadge
|
|
828
964
|
});
|
|
965
|
+
/** @private Preserves Item layout around native menu targets. */
|
|
966
|
+
const ItemWithNativeSlots = _Item;
|
|
829
967
|
function _temp(key) {
|
|
830
968
|
return key !== "id";
|
|
831
969
|
}
|
|
832
970
|
|
|
833
971
|
//#endregion
|
|
834
|
-
export { _Item };
|
|
972
|
+
export { ItemWithNativeSlots, _Item };
|
|
835
973
|
//# sourceMappingURL=Item.js.map
|