@cube-dev/ui-kit 0.0.0-canary-ac46c4b → 0.0.0-canary-9bde021
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_internal/hooks/use-debounced-value.js +1 -1
- package/dist/_internal/hooks/use-deprecation-warning.js +1 -1
- package/dist/_internal/hooks/use-event.js +1 -1
- package/dist/_internal/hooks/use-is-first-render.js +1 -1
- package/dist/_internal/hooks/use-sync-ref.js +1 -1
- package/dist/_internal/hooks/use-timer/timer.js +1 -1
- package/dist/_internal/hooks/use-timer/use-timer.js +1 -1
- package/dist/_internal/hooks/use-warn.js +1 -1
- package/dist/components/Block.js +1 -1
- package/dist/components/CollectionItem.js +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 +1 -1
- package/dist/components/actions/Action/Action.js +1 -1
- package/dist/components/actions/Banner/Banner.js +1 -1
- package/dist/components/actions/Button/Button.js +1 -1
- package/dist/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/actions/ButtonSplit/ButtonSplit.js +2 -1
- 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.js +1 -8
- 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 +1 -1
- package/dist/components/actions/ItemActionContext.js +1 -1
- package/dist/components/actions/ItemActionsWrapper.js +1 -1
- package/dist/components/actions/ItemButton/ItemButton.js +1 -1
- package/dist/components/actions/Link/Link.js +1 -1
- package/dist/components/actions/Menu/Menu.js +1 -1
- package/dist/components/actions/Menu/Menu.js.map +1 -1
- package/dist/components/actions/Menu/MenuItem.js +19 -15
- package/dist/components/actions/Menu/MenuItem.js.map +1 -1
- package/dist/components/actions/Menu/MenuSection.js +1 -8
- 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.js +1 -7
- 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/styled.js +1 -1
- package/dist/components/actions/actions-run.js +1 -1
- package/dist/components/actions/index.js +1 -1
- package/dist/components/actions/use-action.js +1 -1
- package/dist/components/actions/use-anchored-menu.js +1 -1
- package/dist/components/actions/use-context-menu.js +1 -1
- package/dist/components/content/ActiveZone/ActiveZone.js +1 -1
- package/dist/components/content/Alert/Alert.js +1 -1
- package/dist/components/content/Alert/use-alert.js +1 -1
- package/dist/components/content/Avatar/Avatar.js +1 -1
- package/dist/components/content/Badge/Badge.js +1 -1
- package/dist/components/content/Card/Card.js +1 -1
- package/dist/components/content/Content.js +1 -2
- package/dist/components/content/Content.js.map +1 -1
- package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +1 -1
- package/dist/components/content/CopySnippet/CopySnippet.js +1 -1
- package/dist/components/content/Disclosure/Disclosure.js +1 -1
- package/dist/components/content/Divider.js +1 -1
- package/dist/components/content/Footer.js +1 -1
- package/dist/components/content/Header.js +1 -1
- package/dist/components/content/HotKeys/HotKeys.js +1 -1
- package/dist/components/content/InfoBadge/InfoBadge.js +1 -1
- package/dist/components/content/InlineInput/InlineInput.js +1 -1
- package/dist/components/content/Item/Item.d.ts +27 -2
- package/dist/components/content/Item/Item.js +240 -231
- package/dist/components/content/Item/Item.js.map +1 -1
- package/dist/components/content/ItemBadge/ItemBadge.js +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 +123 -118
- package/dist/components/content/Layout/LayoutHeader.js.map +1 -1
- package/dist/components/content/Layout/LayoutPane.js +1 -1
- package/dist/components/content/Layout/LayoutPanel.js +1 -1
- package/dist/components/content/Layout/LayoutPanelHeader.js +1 -1
- package/dist/components/content/Layout/LayoutToolbar.js +1 -1
- package/dist/components/content/Layout/hooks/useTinyScrollbar.js +1 -1
- package/dist/components/content/Layout/index.js +1 -1
- package/dist/components/content/Layout/utils.js +1 -1
- package/dist/components/content/Paragraph.js +1 -1
- package/dist/components/content/Placeholder/Placeholder.js +1 -1
- package/dist/components/content/PrismCode/PrismCode.js +1 -1
- package/dist/components/content/PrismCode/prismSetup.js +1 -1
- package/dist/components/content/PrismDiffCode/PrismDiffCode.js +1 -1
- package/dist/components/content/Result/Result.js +1 -1
- package/dist/components/content/Skeleton/Skeleton.js +1 -1
- package/dist/components/content/Tag/Tag.js +1 -1
- package/dist/components/content/Text.d.ts +14 -14
- package/dist/components/content/Text.js +1 -1
- package/dist/components/content/TextItem/TextItem.js +1 -1
- package/dist/components/content/Title.js +1 -1
- package/dist/components/content/Tree/Tree.js +1 -1
- package/dist/components/content/Tree/TreeNode.js +1 -1
- package/dist/components/content/Tree/styled.js +1 -1
- package/dist/components/content/Tree/tree-index.js +1 -1
- package/dist/components/content/Tree/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.d.ts +1 -1
- package/dist/components/content/use-auto-tooltip.js +231 -125
- 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 +1 -1
- package/dist/components/data/ItemTable/ItemTableDragPreview.js +1 -1
- package/dist/components/data/ItemTable/ItemTableFooter.js +1 -1
- package/dist/components/data/ItemTable/ItemTableToolbar.js +1 -1
- package/dist/components/data/TableBase/ColumnResizer.js +1 -1
- package/dist/components/data/TableBase/RowCollection.js +1 -1
- package/dist/components/data/TableBase/TableHeaderCell.js +1 -1
- package/dist/components/data/TableBase/TableRow.js +1 -1
- package/dist/components/data/TableBase/TableView.js +1 -1
- package/dist/components/data/TableBase/column-menu.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 -0
- 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-order.js +1 -1
- package/dist/components/data/TableBase/use-container-width.js +1 -1
- package/dist/components/data/TableBase/use-row-move-animation.js +1 -1
- package/dist/components/data/TableBase/use-scrollability.js +1 -1
- package/dist/components/data/TableBase/use-table-columns.js +1 -1
- package/dist/components/data/TableBase/use-table-search.js +1 -1
- package/dist/components/data/TableBase/use-table-selection.js +1 -1
- package/dist/components/data/TableBase/use-table-sort.js +1 -1
- package/dist/components/data/TableBase/use-table-sorts.js +1 -1
- package/dist/components/data/TableBase/use-table-storage.js +1 -1
- package/dist/components/data/TableBase/use-table-tree-state.js +1 -1
- package/dist/components/fields/Checkbox/Checkbox.d.ts +8 -0
- package/dist/components/fields/Checkbox/Checkbox.js +58 -39
- package/dist/components/fields/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/fields/Checkbox/CheckboxGroup.js +2 -2
- 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 +1 -1
- package/dist/components/fields/ColorPicker/ColorPicker.d.ts +1 -1
- package/dist/components/fields/ColorPicker/ColorPicker.js +1 -1
- 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 +1 -1
- package/dist/components/fields/ComboBox/ComboBox.js +1 -1
- package/dist/components/fields/CommandTextArea/CommandTextArea.js +1 -1
- package/dist/components/fields/CommandTextArea/caretPosition.js +1 -1
- package/dist/components/fields/CommandTextArea/useCaretAnchor.js +1 -1
- package/dist/components/fields/DatePicker/DateInput.js +1 -1
- package/dist/components/fields/DatePicker/DateInputBase.js +1 -1
- package/dist/components/fields/DatePicker/DatePicker.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerButton.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerElement.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerInput.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerSegment.js +1 -1
- package/dist/components/fields/DatePicker/DateRangePicker.js +1 -1
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +1 -1
- package/dist/components/fields/DatePicker/MonthPicker.js +1 -1
- package/dist/components/fields/DatePicker/PeriodPicker.js +1 -1
- package/dist/components/fields/DatePicker/QuarterPicker.js +1 -1
- package/dist/components/fields/DatePicker/TimeInput.js +1 -1
- package/dist/components/fields/DatePicker/WeekPicker.js +1 -1
- package/dist/components/fields/DatePicker/YearPicker.js +1 -1
- package/dist/components/fields/DatePicker/parseDate.js +1 -1
- package/dist/components/fields/DatePicker/period.js +1 -1
- package/dist/components/fields/DatePicker/props.js +1 -1
- package/dist/components/fields/DatePicker/utils.js +1 -1
- package/dist/components/fields/FileInput/FileInput.js +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js +1 -1
- package/dist/components/fields/FilterPicker/FilterPicker.d.ts +2 -2
- package/dist/components/fields/FilterPicker/FilterPicker.js +1 -1
- package/dist/components/fields/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 +1 -1
- package/dist/components/fields/ListBoxPopover/ListBoxPopover.js +1 -1
- package/dist/components/fields/ListBoxPopover/listNavigation.js +1 -1
- package/dist/components/fields/ListBoxPopover/useCompositeFocus.js +1 -1
- package/dist/components/fields/NumberInput/NumberInput.js +1 -1
- package/dist/components/fields/NumberInput/StepButton.js +1 -1
- package/dist/components/fields/PasswordInput/PasswordInput.js +1 -1
- package/dist/components/fields/Picker/Picker.d.ts +2 -2
- package/dist/components/fields/Picker/Picker.js +1 -1
- package/dist/components/fields/Picker/Picker.js.map +1 -1
- package/dist/components/fields/RadioGroup/Radio.d.ts +10 -2
- package/dist/components/fields/RadioGroup/Radio.js +215 -213
- package/dist/components/fields/RadioGroup/Radio.js.map +1 -1
- package/dist/components/fields/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/fields/RadioGroup/context.js +1 -1
- package/dist/components/fields/SearchComboBox/SearchComboBox.js +1 -1
- package/dist/components/fields/SearchInput/SearchInput.js +1 -1
- package/dist/components/fields/Select/Select.d.ts +3 -2
- package/dist/components/fields/Select/Select.js +5 -2
- 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/TextArea/TextArea.js +1 -1
- package/dist/components/fields/TextInput/TextInput.js +1 -1
- package/dist/components/fields/TextInput/TextInputBase.js +2 -2
- package/dist/components/fields/TextInput/TextInputBase.js.map +1 -1
- package/dist/components/fields/TextInput/useAutoSizeTextArea.js +1 -1
- package/dist/components/fields/TextInputMapper/TextInputMapper.js +1 -1
- package/dist/components/fields/TriggerActions.js +1 -1
- package/dist/components/fields/color/ColorPanel.js +1 -1
- package/dist/components/fields/color/channels.js +1 -1
- package/dist/components/fields/color/color.js +1 -1
- package/dist/components/fields/color/context.js +1 -1
- package/dist/components/form/FieldWrapper/FieldWrapper.d.ts +1 -1
- package/dist/components/form/FieldWrapper/FieldWrapper.js +11 -9
- package/dist/components/form/FieldWrapper/FieldWrapper.js.map +1 -1
- package/dist/components/form/FieldWrapper/types.d.ts +1 -1
- package/dist/components/form/Form/Field.js +6 -4
- package/dist/components/form/Form/Field.js.map +1 -1
- package/dist/components/form/Form/Form.js +5 -20
- package/dist/components/form/Form/Form.js.map +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/use-field/use-field-binding.js +1 -1
- package/dist/components/form/Form/use-field/use-field-props.js +1 -1
- package/dist/components/form/Form/use-field/use-field.js +1 -1
- package/dist/components/form/Form/use-form.js +1 -1
- package/dist/components/form/Form/validation.js +1 -1
- package/dist/components/form/Label.js +1 -1
- package/dist/components/form/legacy-tooltip.js +28 -0
- package/dist/components/form/legacy-tooltip.js.map +1 -0
- 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 +5 -3
- 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/Board/Board.js +1 -1
- package/dist/components/layout/Board/BoardProvider.js +1 -1
- package/dist/components/layout/Board/BoardResponsive.js +1 -1
- package/dist/components/layout/Board/Widget.js +1 -1
- package/dist/components/layout/Board/WidgetHost.js +1 -1
- package/dist/components/layout/Board/board-context.js +1 -1
- package/dist/components/layout/Board/board-store.js +1 -1
- package/dist/components/layout/Board/grid-core/calculate.js +1 -1
- package/dist/components/layout/Board/grid-core/collision-modes.js +1 -1
- package/dist/components/layout/Board/grid-core/collision.js +1 -1
- package/dist/components/layout/Board/grid-core/compactors.js +1 -1
- package/dist/components/layout/Board/grid-core/constraints.js +1 -1
- package/dist/components/layout/Board/grid-core/group-move.js +1 -1
- package/dist/components/layout/Board/grid-core/layout.js +1 -1
- package/dist/components/layout/Board/grid-core/placement.js +1 -1
- package/dist/components/layout/Board/grid-core/sort.js +1 -1
- package/dist/components/layout/Board/index.js +1 -1
- package/dist/components/layout/Board/responsive-utils.js +1 -1
- package/dist/components/layout/Board/use-board-layout.js +1 -1
- package/dist/components/layout/Board/use-board-registry.js +1 -1
- package/dist/components/layout/Board/use-board-select-modifier-key.js +1 -1
- package/dist/components/layout/Board/use-board-selection.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/DraggableTabList.js +1 -1
- package/dist/components/navigation/Tabs/TabButton.js +131 -110
- package/dist/components/navigation/Tabs/TabButton.js.map +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 +2 -1
- package/dist/components/navigation/Tabs/TabPicker.js.map +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 +2 -2
- package/dist/components/navigation/Tabs/styled.js.map +1 -1
- 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 +9 -18
- package/dist/components/overlays/Dialog/Dialog.js.map +1 -1
- package/dist/components/overlays/Dialog/DialogContainer.js +1 -1
- package/dist/components/overlays/Dialog/DialogForm.js +5 -6
- package/dist/components/overlays/Dialog/DialogForm.js.map +1 -1
- package/dist/components/overlays/Dialog/DialogTrigger.js +1 -1
- package/dist/components/overlays/Dialog/ModernDialogForm.js +64 -71
- package/dist/components/overlays/Dialog/ModernDialogForm.js.map +1 -1
- package/dist/components/overlays/Dialog/context.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-container.js +1 -1
- package/dist/components/overlays/Modal/Modal.js +1 -1
- package/dist/components/overlays/Modal/OpenTransitionContext.js +1 -1
- package/dist/components/overlays/Modal/Overlay.js +1 -1
- package/dist/components/overlays/Modal/Popover.js +1 -1
- package/dist/components/overlays/Modal/Tray.js +1 -1
- package/dist/components/overlays/Modal/Underlay.js +1 -1
- package/dist/components/overlays/Notifications/Notification.js +1 -1
- package/dist/components/overlays/Notifications/NotificationAction.js +1 -1
- package/dist/components/overlays/Notifications/NotificationCard.js +1 -1
- package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
- package/dist/components/overlays/Notifications/NotificationItem.js +1 -1
- package/dist/components/overlays/Notifications/OverlayContainer.js +1 -1
- package/dist/components/overlays/Notifications/OverlayProvider.js +1 -1
- package/dist/components/overlays/Notifications/PersistentNotificationsList.js +1 -1
- package/dist/components/overlays/Notifications/dismissed-storage.js +1 -1
- package/dist/components/overlays/Notifications/format-relative-time.js +1 -1
- package/dist/components/overlays/Notifications/index.js +1 -1
- package/dist/components/overlays/Notifications/use-notification-state.js +1 -1
- package/dist/components/overlays/Notifications/use-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-overlay-timers.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-state.js +1 -1
- package/dist/components/overlays/Notifications/use-toast-state.js +1 -1
- package/dist/components/overlays/Toast/ToastItem.js +1 -1
- package/dist/components/overlays/Toast/index.js +1 -1
- package/dist/components/overlays/Toast/useProgressToast.js +1 -1
- package/dist/components/overlays/Toast/useToast.js +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipProvider.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipTrigger.js +72 -69
- 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.d.ts +16 -0
- package/dist/components/overlays/Tooltip/split-trigger-props.js +54 -0
- package/dist/components/overlays/Tooltip/split-trigger-props.js.map +1 -0
- 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 +1 -1
- package/dist/eslint-plugin/index.js +1 -1
- package/dist/eslint-plugin/rules/no-redundant-default-prop.js +1 -1
- package/dist/i18n/I18nProvider.js +1 -1
- package/dist/i18n/createFormatter.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/instance.js +1 -1
- package/dist/i18n/locales/de-DE/uikit.js +1 -1
- package/dist/i18n/locales/en-US/uikit.js +1 -1
- package/dist/i18n/locales/es-ES/uikit.js +1 -1
- package/dist/i18n/locales/es-MX/uikit.js +1 -1
- package/dist/i18n/locales/fr-FR/uikit.js +1 -1
- package/dist/i18n/locales/it-IT/uikit.js +1 -1
- package/dist/i18n/locales/ja-JP/uikit.js +1 -1
- package/dist/i18n/locales/nb-NO/uikit.js +1 -1
- package/dist/i18n/locales/pt-BR/uikit.js +1 -1
- package/dist/i18n/locales/pt-PT/uikit.js +1 -1
- package/dist/i18n/locales/sv-SE/uikit.js +1 -1
- package/dist/i18n/locales/vi-VN/uikit.js +1 -1
- package/dist/i18n/locales.js +1 -1
- package/dist/i18n/useFormatter.js +1 -1
- package/dist/i18n/useI18n.js +1 -1
- package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
- package/dist/icons/AdjustmentsIcon.js +1 -1
- package/dist/icons/AiIcon.js +1 -1
- package/dist/icons/AreaChartIcon.js +1 -1
- package/dist/icons/ArrowNarrowDownIcon.js +1 -1
- package/dist/icons/ArrowNarrowUpIcon.js +1 -1
- package/dist/icons/BackwardIcon.js +1 -1
- package/dist/icons/BarChartIcon.js +1 -1
- package/dist/icons/BellFilledIcon.js +1 -1
- package/dist/icons/BellIcon.js +1 -1
- package/dist/icons/BooleanIcon.js +1 -1
- package/dist/icons/CalendarEditIcon.js +1 -1
- package/dist/icons/CalendarIcon.js +1 -1
- package/dist/icons/CaretDownIcon.js +1 -1
- package/dist/icons/CaretUpIcon.js +1 -1
- package/dist/icons/ChartAreaStackedIcon.js +1 -1
- package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarGroupedIcon.js +1 -1
- package/dist/icons/ChartBarHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarLineIcon.js +1 -1
- package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBoxPlot2Icon.js +1 -1
- package/dist/icons/ChartBoxPlotIcon.js +1 -1
- package/dist/icons/ChartBubbleIcon.js +1 -1
- package/dist/icons/ChartDonut2Icon.js +1 -1
- package/dist/icons/ChartFunnelIcon.js +1 -1
- package/dist/icons/ChartHeatmapIcon.js +1 -1
- package/dist/icons/ChartKPIIcon.js +1 -1
- package/dist/icons/ChartPie2Icon.js +1 -1
- package/dist/icons/ChartScatterIcon.js +1 -1
- package/dist/icons/CheckCircleFilledIcon.js +1 -1
- package/dist/icons/CheckCircleIcon.js +1 -1
- package/dist/icons/CheckIcon.js +1 -1
- package/dist/icons/CircleFilledIcon.js +1 -1
- package/dist/icons/ClearIcon.js +1 -1
- package/dist/icons/CloseCircleFilledIcon.js +1 -1
- package/dist/icons/CloseCircleIcon.js +1 -1
- package/dist/icons/CloseIcon.js +1 -1
- package/dist/icons/CodeIcon.js +1 -1
- package/dist/icons/ColumnTotalIcon.js +1 -1
- package/dist/icons/CopyIcon.js +1 -1
- package/dist/icons/CountIcon.js +1 -1
- package/dist/icons/CubeIcon.js +1 -1
- package/dist/icons/CubePauseIcon.js +1 -1
- package/dist/icons/CubePlayIcon.js +1 -1
- package/dist/icons/CurrencyDollarIcon.js +1 -1
- package/dist/icons/DangerIcon.js +1 -1
- package/dist/icons/DashboardIcon.js +1 -1
- package/dist/icons/DatabaseIcon.js +1 -1
- package/dist/icons/DecimalDecreaseIcon.js +1 -1
- package/dist/icons/DecimalIncreaseIcon.js +1 -1
- package/dist/icons/DirectionIcon.js +1 -1
- package/dist/icons/DonutIcon.js +1 -1
- package/dist/icons/DownIcon.js +1 -1
- package/dist/icons/EditIcon.js +1 -1
- package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
- package/dist/icons/ExclamationCircleIcon.js +1 -1
- package/dist/icons/ExclamationIcon.js +1 -1
- package/dist/icons/EyeIcon.js +1 -1
- package/dist/icons/EyeInvisibleIcon.js +1 -1
- package/dist/icons/FilterIcon.js +1 -1
- package/dist/icons/FolderFilledIcon.js +1 -1
- package/dist/icons/FolderIcon.js +1 -1
- package/dist/icons/FolderOpenFilledIcon.js +1 -1
- package/dist/icons/FolderOpenIcon.js +1 -1
- package/dist/icons/ForwardIcon.js +1 -1
- package/dist/icons/GripVerticalIcon.js +1 -1
- package/dist/icons/HierarchyIcon.js +1 -1
- package/dist/icons/HierarchyOpenIcon.js +1 -1
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/InfoCircleIcon.js +1 -1
- package/dist/icons/InfoIcon.js +1 -1
- package/dist/icons/KeyIcon.js +1 -1
- package/dist/icons/LeftIcon.js +1 -1
- package/dist/icons/LineChartIcon.js +1 -1
- package/dist/icons/LoadingIcon.js +1 -1
- package/dist/icons/LockFilledIcon.js +1 -1
- package/dist/icons/LockIcon.js +1 -1
- package/dist/icons/MoreIcon.js +1 -1
- package/dist/icons/NotAllowedIcon.js +1 -1
- package/dist/icons/Number123Icon.js +1 -1
- package/dist/icons/NumberIcon.js +1 -1
- package/dist/icons/PauseCircleFilledIcon.js +1 -1
- package/dist/icons/PauseCircleIcon.js +1 -1
- package/dist/icons/PauseIcon.js +1 -1
- package/dist/icons/PercentageIcon.js +1 -1
- package/dist/icons/PieChartIcon.js +1 -1
- package/dist/icons/PipetteIcon.js +1 -1
- package/dist/icons/PlayCircleIcon.js +1 -1
- package/dist/icons/PlayIcon.js +1 -1
- package/dist/icons/PlusIcon.js +1 -1
- package/dist/icons/ProgressBarIcon.js +1 -1
- package/dist/icons/ReloadIcon.js +1 -1
- package/dist/icons/ReportIcon.js +1 -1
- package/dist/icons/ReturnIcon.js +1 -1
- package/dist/icons/RightIcon.js +1 -1
- package/dist/icons/RowTotalsIcon.js +1 -1
- package/dist/icons/SchemeIcon.js +1 -1
- package/dist/icons/SearchIcon.js +1 -1
- package/dist/icons/SemanticQueryIcon.js +1 -1
- package/dist/icons/SettingsIcon.js +1 -1
- package/dist/icons/ShieldFilledIcon.js +1 -1
- package/dist/icons/ShieldIcon.js +1 -1
- package/dist/icons/SlashIcon.js +1 -1
- package/dist/icons/SparklesIcon.js +1 -1
- package/dist/icons/SqlIcon.js +1 -1
- package/dist/icons/StatsIcon.js +1 -1
- package/dist/icons/StopIcon.js +1 -1
- package/dist/icons/StringIcon.js +1 -1
- package/dist/icons/SubtotalsIcon.js +1 -1
- package/dist/icons/SwitchIcon.js +1 -1
- package/dist/icons/TableIcon.js +1 -1
- package/dist/icons/ThumbsDownIcon.js +1 -1
- package/dist/icons/ThumbsUpIcon.js +1 -1
- package/dist/icons/ThunderboltCrossedIcon.js +1 -1
- package/dist/icons/ThunderboltFilledIcon.js +1 -1
- package/dist/icons/ThunderboltIcon.js +1 -1
- package/dist/icons/TimeIcon.js +1 -1
- package/dist/icons/TrashIcon.js +1 -1
- package/dist/icons/UnlockIcon.js +1 -1
- package/dist/icons/UpIcon.js +1 -1
- package/dist/icons/UserGroupIcon.js +1 -1
- package/dist/icons/UserIcon.js +1 -1
- package/dist/icons/UserLockIcon.js +1 -1
- package/dist/icons/ViewIcon.js +1 -1
- package/dist/icons/WarningFilledIcon.js +1 -1
- package/dist/icons/WarningIcon.js +1 -1
- package/dist/icons/wrap-icon.js +1 -1
- package/dist/index.js +1 -1
- package/dist/probe/canonicalize.js +1 -1
- package/dist/probe/css.js +1 -1
- package/dist/probe/index.js +1 -1
- package/dist/provider.js +1 -1
- package/dist/providers/TrackingProvider.js +1 -1
- package/dist/providers/navigationAdapter.default.js +1 -1
- package/dist/shared/form.d.ts +9 -2
- 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/escapePropagation.js +1 -1
- package/dist/utils/react/forwardRefWithGenerics.js +1 -1
- package/dist/utils/react/index.js +1 -1
- package/dist/utils/react/interactions.js +1 -1
- package/dist/utils/react/isTextOnly.js +1 -1
- package/dist/utils/react/mapProps.js +1 -1
- package/dist/utils/react/mergeProps.js +1 -1
- package/dist/utils/react/nullableValue.js +1 -1
- package/dist/utils/react/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/FieldProperties.md +2 -2
- package/docs/components/actions/ButtonSplit.md +2 -0
- package/docs/components/content/InfoBadge.md +1 -1
- package/docs/components/content/Layout.md +1 -1
- package/docs/components/fields/Checkbox.md +11 -0
- package/docs/components/fields/ColorPicker.md +1 -1
- package/docs/components/fields/FilterPicker.md +1 -1
- package/docs/components/fields/Picker.md +1 -1
- package/docs/components/fields/RadioGroup.md +2 -2
- package/docs/components/fields/Select.md +3 -0
- package/docs/components/form/Field.md +2 -2
- package/docs/components/form/Form.md +0 -2
- package/docs/components/navigation/Tabs.md +3 -3
- package/docs/components/overlays/Dialog.md +3 -30
- package/docs/components/overlays/DialogForm.md +0 -1
- package/package.json +1 -1
- package/dist/components/overlays/Dialog/use-content-overflow.js +0 -68
- package/dist/components/overlays/Dialog/use-content-overflow.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-9bde021 | Cube Dev Team */
|
|
2
2
|
import { getDisabledElementProps, omitActivationEventProps } from "../../../utils/react/disabledProps.js";
|
|
3
3
|
import { mergeProps } from "../../../utils/react/mergeProps.js";
|
|
4
4
|
import { resolveIcon } from "../../../utils/react/resolveIcon.js";
|
|
@@ -12,6 +12,7 @@ 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
16
|
import { _HotKeys } from "../HotKeys/HotKeys.js";
|
|
16
17
|
import { c } from "react-compiler-runtime";
|
|
17
18
|
import { CONTAINER_STYLES, tasty } from "@tenphi/tasty";
|
|
@@ -287,8 +288,8 @@ const ItemElement = tasty({
|
|
|
287
288
|
styleProps: CONTAINER_STYLES
|
|
288
289
|
});
|
|
289
290
|
const Item = (props, ref) => {
|
|
290
|
-
const $ = c(
|
|
291
|
-
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, tokens, ...rest } = props;
|
|
291
|
+
const $ = c(120);
|
|
292
|
+
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, hiddenContent, isDynamicLabel: t14, labelRef: labelRefProp, tokens, ...rest } = props;
|
|
292
293
|
const size = t0 === void 0 ? "medium" : t0;
|
|
293
294
|
const type = t1 === void 0 ? "item" : t1;
|
|
294
295
|
const theme = t2 === void 0 ? "default" : t2;
|
|
@@ -303,14 +304,15 @@ const Item = (props, ref) => {
|
|
|
303
304
|
const highlightCaseSensitive = t11 === void 0 ? false : t11;
|
|
304
305
|
const insideWrapper = t12 === void 0 ? false : t12;
|
|
305
306
|
const showActions = t13 === void 0 ? false : t13;
|
|
307
|
+
const isDynamicLabel = t14 === void 0 ? false : t14;
|
|
306
308
|
const hasLabel = !!(children || labelProps);
|
|
307
309
|
const finalDescriptionPlacement = descriptionPlacement ?? ((type === "card" || type === "header") && hasLabel ? "block" : "inline");
|
|
308
310
|
const finalShape = shape ?? (type === "card" ? "card" : "button");
|
|
309
311
|
const isDisabledProp = isDisabled ?? (nativeDisabledProp || void 0);
|
|
310
312
|
const finalIsDisabled = isDisabledProp === true || isLoading && isDisabledProp !== false;
|
|
311
|
-
let
|
|
313
|
+
let t15;
|
|
312
314
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
313
|
-
|
|
315
|
+
t15 = [
|
|
314
316
|
"default",
|
|
315
317
|
"success",
|
|
316
318
|
"danger",
|
|
@@ -319,12 +321,12 @@ const Item = (props, ref) => {
|
|
|
319
321
|
"special",
|
|
320
322
|
"current"
|
|
321
323
|
];
|
|
322
|
-
$[0] =
|
|
323
|
-
} else
|
|
324
|
-
const STANDARD_THEMES =
|
|
325
|
-
let
|
|
324
|
+
$[0] = t15;
|
|
325
|
+
} else t15 = $[0];
|
|
326
|
+
const STANDARD_THEMES = t15;
|
|
327
|
+
let t16;
|
|
326
328
|
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
327
|
-
|
|
329
|
+
t16 = [
|
|
328
330
|
"default",
|
|
329
331
|
"success",
|
|
330
332
|
"danger",
|
|
@@ -332,26 +334,26 @@ const Item = (props, ref) => {
|
|
|
332
334
|
"note",
|
|
333
335
|
"current"
|
|
334
336
|
];
|
|
335
|
-
$[1] =
|
|
336
|
-
} else
|
|
337
|
-
const CARD_THEMES =
|
|
338
|
-
let t16;
|
|
339
|
-
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
340
|
-
t16 = ["default"];
|
|
341
|
-
$[2] = t16;
|
|
342
|
-
} else t16 = $[2];
|
|
343
|
-
const HEADER_THEMES = t16;
|
|
337
|
+
$[1] = t16;
|
|
338
|
+
} else t16 = $[1];
|
|
339
|
+
const CARD_THEMES = t16;
|
|
344
340
|
let t17;
|
|
341
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
342
|
+
t17 = ["default"];
|
|
343
|
+
$[2] = t17;
|
|
344
|
+
} else t17 = $[2];
|
|
345
|
+
const HEADER_THEMES = t17;
|
|
346
|
+
let t18;
|
|
345
347
|
if ($[3] !== theme || $[4] !== type) {
|
|
346
|
-
|
|
348
|
+
t18 = type === "header" && !HEADER_THEMES.includes(theme) || type === "card" && !CARD_THEMES.includes(theme) || !["header", "card"].includes(type) && !STANDARD_THEMES.includes(theme);
|
|
347
349
|
$[3] = theme;
|
|
348
350
|
$[4] = type;
|
|
349
|
-
$[5] =
|
|
350
|
-
} else
|
|
351
|
-
const isInvalidCombination =
|
|
352
|
-
let
|
|
351
|
+
$[5] = t18;
|
|
352
|
+
} else t18 = $[5];
|
|
353
|
+
const isInvalidCombination = t18;
|
|
354
|
+
let t19;
|
|
353
355
|
if ($[6] !== theme || $[7] !== type) {
|
|
354
|
-
|
|
356
|
+
t19 = [
|
|
355
357
|
"Item",
|
|
356
358
|
"invalid-type-theme",
|
|
357
359
|
type,
|
|
@@ -359,26 +361,26 @@ const Item = (props, ref) => {
|
|
|
359
361
|
];
|
|
360
362
|
$[6] = theme;
|
|
361
363
|
$[7] = type;
|
|
362
|
-
$[8] =
|
|
363
|
-
} else
|
|
364
|
-
const
|
|
365
|
-
let t20;
|
|
366
|
-
if ($[9] !== t19) {
|
|
367
|
-
t20 = [t19];
|
|
368
|
-
$[9] = t19;
|
|
369
|
-
$[10] = t20;
|
|
370
|
-
} else t20 = $[10];
|
|
364
|
+
$[8] = t19;
|
|
365
|
+
} else t19 = $[8];
|
|
366
|
+
const t20 = `Item: Invalid type+theme combination. type="${type}" does not support theme="${theme}".` + (type === "header" ? " The \"header\" type only supports theme: default." : type === "card" ? " The \"card\" type only supports themes: default, success, danger, warning, note, current." : " Standard types support themes: default, success, danger, warning, note, special, current.");
|
|
371
367
|
let t21;
|
|
372
|
-
if ($[
|
|
373
|
-
t21 =
|
|
374
|
-
|
|
375
|
-
|
|
368
|
+
if ($[9] !== t20) {
|
|
369
|
+
t21 = [t20];
|
|
370
|
+
$[9] = t20;
|
|
371
|
+
$[10] = t21;
|
|
372
|
+
} else t21 = $[10];
|
|
373
|
+
let t22;
|
|
374
|
+
if ($[11] !== t19 || $[12] !== t21) {
|
|
375
|
+
t22 = {
|
|
376
|
+
key: t19,
|
|
377
|
+
args: t21
|
|
376
378
|
};
|
|
377
|
-
$[11] =
|
|
378
|
-
$[12] =
|
|
379
|
-
$[13] =
|
|
380
|
-
} else
|
|
381
|
-
useWarn(isInvalidCombination,
|
|
379
|
+
$[11] = t19;
|
|
380
|
+
$[12] = t21;
|
|
381
|
+
$[13] = t22;
|
|
382
|
+
} else t22 = $[13];
|
|
383
|
+
useWarn(isInvalidCombination, t22);
|
|
382
384
|
const hasLinkWithIcons = type === "link" && (iconProp || rightIconProp);
|
|
383
385
|
const hasLinkWithLoading = type === "link" && isLoading;
|
|
384
386
|
const hasLinkRestrictions = hasLinkWithIcons || hasLinkWithLoading;
|
|
@@ -391,46 +393,46 @@ const Item = (props, ref) => {
|
|
|
391
393
|
$[15] = hasLinkWithLoading;
|
|
392
394
|
$[16] = linkRestrictionMessages;
|
|
393
395
|
} else linkRestrictionMessages = $[16];
|
|
394
|
-
let
|
|
396
|
+
let t23;
|
|
395
397
|
if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
|
|
396
|
-
|
|
397
|
-
$[17] =
|
|
398
|
-
} else
|
|
399
|
-
const
|
|
400
|
-
let
|
|
401
|
-
if ($[18] !==
|
|
402
|
-
|
|
403
|
-
key:
|
|
404
|
-
args: [
|
|
398
|
+
t23 = ["Item", "link-restrictions"];
|
|
399
|
+
$[17] = t23;
|
|
400
|
+
} else t23 = $[17];
|
|
401
|
+
const t24 = `Item: The "link" type does not support ${linkRestrictionMessages.join(" or ")}. Remove these props when using type="link".`;
|
|
402
|
+
let t25;
|
|
403
|
+
if ($[18] !== t24) {
|
|
404
|
+
t25 = {
|
|
405
|
+
key: t23,
|
|
406
|
+
args: [t24]
|
|
405
407
|
};
|
|
406
|
-
$[18] =
|
|
407
|
-
$[19] =
|
|
408
|
-
} else
|
|
409
|
-
useWarn(hasLinkRestrictions,
|
|
408
|
+
$[18] = t24;
|
|
409
|
+
$[19] = t25;
|
|
410
|
+
} else t25 = $[19];
|
|
411
|
+
useWarn(hasLinkRestrictions, t25);
|
|
410
412
|
const hasCheckmark = iconProp === "checkmark";
|
|
411
|
-
let
|
|
413
|
+
let t26;
|
|
412
414
|
if ($[20] !== size) {
|
|
413
|
-
|
|
415
|
+
t26 = typeof size === "number" || !ITEM_SIZE_VALUES.includes(size);
|
|
414
416
|
$[20] = size;
|
|
415
|
-
$[21] =
|
|
416
|
-
} else
|
|
417
|
-
const isCustomSize =
|
|
417
|
+
$[21] = t26;
|
|
418
|
+
} else t26 = $[21];
|
|
419
|
+
const isCustomSize = t26;
|
|
418
420
|
const sizeTokenValue = typeof size === "number" ? `${size}px` : isCustomSize ? size : void 0;
|
|
419
|
-
const
|
|
420
|
-
let
|
|
421
|
+
const t27 = isSelected === true;
|
|
422
|
+
let t28;
|
|
421
423
|
if ($[22] !== isCustomSize || $[23] !== size) {
|
|
422
|
-
|
|
424
|
+
t28 = !isCustomSize && { size };
|
|
423
425
|
$[22] = isCustomSize;
|
|
424
426
|
$[23] = size;
|
|
425
|
-
$[24] =
|
|
426
|
-
} else
|
|
427
|
-
let
|
|
428
|
-
if ($[25] !== finalIsDisabled || $[26] !== finalShape || $[27] !== isLoading || $[28] !== mods || $[29] !==
|
|
429
|
-
|
|
427
|
+
$[24] = t28;
|
|
428
|
+
} else t28 = $[24];
|
|
429
|
+
let t29;
|
|
430
|
+
if ($[25] !== finalIsDisabled || $[26] !== finalShape || $[27] !== isLoading || $[28] !== mods || $[29] !== t27 || $[30] !== t28 || $[31] !== theme || $[32] !== type) {
|
|
431
|
+
t29 = {
|
|
430
432
|
disabled: finalIsDisabled,
|
|
431
|
-
selected:
|
|
433
|
+
selected: t27,
|
|
432
434
|
loading: isLoading,
|
|
433
|
-
...
|
|
435
|
+
...t28,
|
|
434
436
|
type,
|
|
435
437
|
theme,
|
|
436
438
|
shape: finalShape,
|
|
@@ -440,59 +442,59 @@ const Item = (props, ref) => {
|
|
|
440
442
|
$[26] = finalShape;
|
|
441
443
|
$[27] = isLoading;
|
|
442
444
|
$[28] = mods;
|
|
443
|
-
$[29] =
|
|
444
|
-
$[30] =
|
|
445
|
+
$[29] = t27;
|
|
446
|
+
$[30] = t28;
|
|
445
447
|
$[31] = theme;
|
|
446
448
|
$[32] = type;
|
|
447
|
-
$[33] =
|
|
448
|
-
} else
|
|
449
|
-
const baseMods =
|
|
450
|
-
let
|
|
449
|
+
$[33] = t29;
|
|
450
|
+
} else t29 = $[33];
|
|
451
|
+
const baseMods = t29;
|
|
452
|
+
let t30;
|
|
451
453
|
bb0: {
|
|
452
454
|
if (hasCheckmark) {
|
|
453
|
-
let
|
|
455
|
+
let t31;
|
|
454
456
|
if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
|
|
455
|
-
|
|
457
|
+
t31 = {
|
|
456
458
|
content: null,
|
|
457
459
|
hasSlot: true
|
|
458
460
|
};
|
|
459
|
-
$[34] =
|
|
460
|
-
} else
|
|
461
|
-
|
|
461
|
+
$[34] = t31;
|
|
462
|
+
} else t31 = $[34];
|
|
463
|
+
t30 = t31;
|
|
462
464
|
break bb0;
|
|
463
465
|
}
|
|
464
|
-
const
|
|
465
|
-
let
|
|
466
|
-
if ($[35] !== baseMods || $[36] !==
|
|
467
|
-
|
|
466
|
+
const t31 = iconProp;
|
|
467
|
+
let t32;
|
|
468
|
+
if ($[35] !== baseMods || $[36] !== t31) {
|
|
469
|
+
t32 = resolveIcon(t31, baseMods);
|
|
468
470
|
$[35] = baseMods;
|
|
469
|
-
$[36] =
|
|
470
|
-
$[37] =
|
|
471
|
-
} else
|
|
472
|
-
|
|
471
|
+
$[36] = t31;
|
|
472
|
+
$[37] = t32;
|
|
473
|
+
} else t32 = $[37];
|
|
474
|
+
t30 = t32;
|
|
473
475
|
}
|
|
474
|
-
const resolvedIcon =
|
|
475
|
-
let
|
|
476
|
+
const resolvedIcon = t30;
|
|
477
|
+
let t31;
|
|
476
478
|
if ($[38] !== baseMods || $[39] !== rightIconProp) {
|
|
477
|
-
|
|
479
|
+
t31 = resolveIcon(rightIconProp, baseMods);
|
|
478
480
|
$[38] = baseMods;
|
|
479
481
|
$[39] = rightIconProp;
|
|
480
|
-
$[40] =
|
|
481
|
-
} else
|
|
482
|
-
const resolvedRightIcon =
|
|
483
|
-
let
|
|
482
|
+
$[40] = t31;
|
|
483
|
+
} else t31 = $[40];
|
|
484
|
+
const resolvedRightIcon = t31;
|
|
485
|
+
let t32;
|
|
484
486
|
bb1: {
|
|
485
487
|
if (loadingSlot !== "auto") {
|
|
486
|
-
|
|
488
|
+
t32 = loadingSlot;
|
|
487
489
|
break bb1;
|
|
488
490
|
}
|
|
489
491
|
if (resolvedRightIcon.hasSlot && !resolvedIcon.hasSlot) {
|
|
490
|
-
|
|
492
|
+
t32 = "rightIcon";
|
|
491
493
|
break bb1;
|
|
492
494
|
}
|
|
493
|
-
|
|
495
|
+
t32 = "icon";
|
|
494
496
|
}
|
|
495
|
-
const resolvedLoadingSlot =
|
|
497
|
+
const resolvedLoadingSlot = t32;
|
|
496
498
|
const hasIconSlot = resolvedIcon.hasSlot || isLoading && resolvedLoadingSlot === "icon";
|
|
497
499
|
const hasRightIconSlot = resolvedRightIcon.hasSlot || isLoading && resolvedLoadingSlot === "rightIcon";
|
|
498
500
|
let copyProps;
|
|
@@ -502,64 +504,64 @@ const Item = (props, ref) => {
|
|
|
502
504
|
$[41] = descriptionProps;
|
|
503
505
|
$[42] = copyProps;
|
|
504
506
|
} else copyProps = $[42];
|
|
505
|
-
let
|
|
507
|
+
let t33;
|
|
506
508
|
if ($[43] !== copyProps || $[44] !== description) {
|
|
507
|
-
|
|
509
|
+
t33 = description || Object.keys(copyProps).length > 0;
|
|
508
510
|
$[43] = copyProps;
|
|
509
511
|
$[44] = description;
|
|
510
|
-
$[45] =
|
|
511
|
-
} else
|
|
512
|
-
const showDescription = !!
|
|
513
|
-
let
|
|
512
|
+
$[45] = t33;
|
|
513
|
+
} else t33 = $[45];
|
|
514
|
+
const showDescription = !!t33;
|
|
515
|
+
let t34;
|
|
514
516
|
if ($[46] !== isLoading || $[47] !== resolvedIcon.content || $[48] !== resolvedLoadingSlot) {
|
|
515
|
-
|
|
517
|
+
t34 = isLoading && resolvedLoadingSlot === "icon" ? /* @__PURE__ */ jsx(LoadingIcon, {}) : resolvedIcon.content;
|
|
516
518
|
$[46] = isLoading;
|
|
517
519
|
$[47] = resolvedIcon.content;
|
|
518
520
|
$[48] = resolvedLoadingSlot;
|
|
519
|
-
$[49] =
|
|
520
|
-
} else
|
|
521
|
-
const finalIcon =
|
|
522
|
-
let
|
|
521
|
+
$[49] = t34;
|
|
522
|
+
} else t34 = $[49];
|
|
523
|
+
const finalIcon = t34;
|
|
524
|
+
let t35;
|
|
523
525
|
if ($[50] !== isLoading || $[51] !== resolvedLoadingSlot || $[52] !== resolvedRightIcon.content) {
|
|
524
|
-
|
|
526
|
+
t35 = isLoading && resolvedLoadingSlot === "rightIcon" ? /* @__PURE__ */ jsx(LoadingIcon, {}) : resolvedRightIcon.content;
|
|
525
527
|
$[50] = isLoading;
|
|
526
528
|
$[51] = resolvedLoadingSlot;
|
|
527
529
|
$[52] = resolvedRightIcon.content;
|
|
528
|
-
$[53] =
|
|
529
|
-
} else
|
|
530
|
-
const finalRightIcon =
|
|
531
|
-
let
|
|
530
|
+
$[53] = t35;
|
|
531
|
+
} else t35 = $[53];
|
|
532
|
+
const finalRightIcon = t35;
|
|
533
|
+
let t36;
|
|
532
534
|
if ($[54] !== finalIcon || $[55] !== hasCheckmark || $[56] !== isLoading || $[57] !== resolvedLoadingSlot) {
|
|
533
|
-
|
|
535
|
+
t36 = hasCheckmark ? "checkmark" : isLoading && resolvedLoadingSlot === "icon" ? "loading" : isValidElement(finalIcon) ? finalIcon.type?.displayName || finalIcon.type?.name || "icon" : finalIcon ? "icon" : "empty";
|
|
534
536
|
$[54] = finalIcon;
|
|
535
537
|
$[55] = hasCheckmark;
|
|
536
538
|
$[56] = isLoading;
|
|
537
539
|
$[57] = resolvedLoadingSlot;
|
|
538
|
-
$[58] =
|
|
539
|
-
} else
|
|
540
|
-
const iconKey =
|
|
541
|
-
let
|
|
540
|
+
$[58] = t36;
|
|
541
|
+
} else t36 = $[58];
|
|
542
|
+
const iconKey = t36;
|
|
543
|
+
let t37;
|
|
542
544
|
if ($[59] !== finalRightIcon || $[60] !== isLoading || $[61] !== resolvedLoadingSlot) {
|
|
543
|
-
|
|
545
|
+
t37 = isLoading && resolvedLoadingSlot === "rightIcon" ? "loading" : isValidElement(finalRightIcon) ? finalRightIcon.type?.displayName || finalRightIcon.type?.name || "icon" : finalRightIcon ? "icon" : "empty";
|
|
544
546
|
$[59] = finalRightIcon;
|
|
545
547
|
$[60] = isLoading;
|
|
546
548
|
$[61] = resolvedLoadingSlot;
|
|
547
|
-
$[62] =
|
|
548
|
-
} else
|
|
549
|
-
const rightIconKey =
|
|
550
|
-
let
|
|
549
|
+
$[62] = t37;
|
|
550
|
+
} else t37 = $[62];
|
|
551
|
+
const rightIconKey = t37;
|
|
552
|
+
let t38;
|
|
551
553
|
if ($[63] !== isLoading || $[64] !== prefix || $[65] !== resolvedLoadingSlot) {
|
|
552
|
-
|
|
554
|
+
t38 = isLoading && resolvedLoadingSlot === "prefix" ? /* @__PURE__ */ jsx(LoadingIcon, {}) : prefix;
|
|
553
555
|
$[63] = isLoading;
|
|
554
556
|
$[64] = prefix;
|
|
555
557
|
$[65] = resolvedLoadingSlot;
|
|
556
|
-
$[66] =
|
|
557
|
-
} else
|
|
558
|
-
const finalPrefix =
|
|
558
|
+
$[66] = t38;
|
|
559
|
+
} else t38 = $[66];
|
|
560
|
+
const finalPrefix = t38;
|
|
559
561
|
const hotkeysType = theme === "current" ? "inherit" : type === "primary" ? "primary" : "default";
|
|
560
|
-
let
|
|
562
|
+
let t39;
|
|
561
563
|
if ($[67] !== finalIsDisabled || $[68] !== hotkeys || $[69] !== hotkeysType || $[70] !== isLoading || $[71] !== keyboardShortcutProps || $[72] !== resolvedLoadingSlot || $[73] !== suffix) {
|
|
562
|
-
|
|
564
|
+
t39 = isLoading && resolvedLoadingSlot === "suffix" ? /* @__PURE__ */ jsx(LoadingIcon, {}) : suffix ?? (hotkeys ? /* @__PURE__ */ jsx(_HotKeys, {
|
|
563
565
|
...keyboardShortcutProps,
|
|
564
566
|
type: hotkeysType,
|
|
565
567
|
styles: {
|
|
@@ -575,18 +577,18 @@ const Item = (props, ref) => {
|
|
|
575
577
|
$[71] = keyboardShortcutProps;
|
|
576
578
|
$[72] = resolvedLoadingSlot;
|
|
577
579
|
$[73] = suffix;
|
|
578
|
-
$[74] =
|
|
579
|
-
} else
|
|
580
|
-
const finalSuffix =
|
|
581
|
-
let
|
|
580
|
+
$[74] = t39;
|
|
581
|
+
} else t39 = $[74];
|
|
582
|
+
const finalSuffix = t39;
|
|
583
|
+
let t40;
|
|
582
584
|
if ($[75] !== hotkeys) {
|
|
583
|
-
|
|
585
|
+
t40 = typeof hotkeys === "string" ? hotkeys.toLowerCase() : "";
|
|
584
586
|
$[75] = hotkeys;
|
|
585
|
-
$[76] =
|
|
586
|
-
} else
|
|
587
|
-
let
|
|
587
|
+
$[76] = t40;
|
|
588
|
+
} else t40 = $[76];
|
|
589
|
+
let t41;
|
|
588
590
|
if ($[77] !== finalIsDisabled || $[78] !== hotkeys || $[79] !== ref) {
|
|
589
|
-
|
|
591
|
+
t41 = () => {
|
|
590
592
|
if (!hotkeys) return;
|
|
591
593
|
if (finalIsDisabled) return;
|
|
592
594
|
if (ref && typeof ref === "object" && ref.current) ref.current.click();
|
|
@@ -594,58 +596,58 @@ const Item = (props, ref) => {
|
|
|
594
596
|
$[77] = finalIsDisabled;
|
|
595
597
|
$[78] = hotkeys;
|
|
596
598
|
$[79] = ref;
|
|
597
|
-
$[80] =
|
|
598
|
-
} else
|
|
599
|
-
const
|
|
600
|
-
let
|
|
601
|
-
if ($[81] !==
|
|
602
|
-
|
|
599
|
+
$[80] = t41;
|
|
600
|
+
} else t41 = $[80];
|
|
601
|
+
const t42 = !!hotkeys;
|
|
602
|
+
let t43;
|
|
603
|
+
if ($[81] !== t42) {
|
|
604
|
+
t43 = {
|
|
603
605
|
enableOnContentEditable: true,
|
|
604
|
-
enabled:
|
|
606
|
+
enabled: t42,
|
|
605
607
|
preventDefault: true,
|
|
606
608
|
enableOnFormTags: true
|
|
607
609
|
};
|
|
608
|
-
$[81] =
|
|
609
|
-
$[82] =
|
|
610
|
-
} else
|
|
611
|
-
let
|
|
610
|
+
$[81] = t42;
|
|
611
|
+
$[82] = t43;
|
|
612
|
+
} else t43 = $[82];
|
|
613
|
+
let t44;
|
|
612
614
|
if ($[83] !== finalIsDisabled || $[84] !== hotkeys) {
|
|
613
|
-
|
|
615
|
+
t44 = [hotkeys, finalIsDisabled];
|
|
614
616
|
$[83] = finalIsDisabled;
|
|
615
617
|
$[84] = hotkeys;
|
|
616
|
-
$[85] =
|
|
617
|
-
} else
|
|
618
|
-
useHotkeys(
|
|
619
|
-
const
|
|
620
|
-
const
|
|
621
|
-
const
|
|
622
|
-
const
|
|
623
|
-
const
|
|
624
|
-
const
|
|
625
|
-
const
|
|
626
|
-
const
|
|
627
|
-
const
|
|
628
|
-
const
|
|
629
|
-
let
|
|
630
|
-
if ($[86] !== baseMods || $[87] !== hasCheckmark || $[88] !== hasIconSlot || $[89] !== hasLabel || $[90] !== hasRightIconSlot || $[91] !== insideWrapper || $[92] !== showDescription || $[93] !==
|
|
631
|
-
|
|
618
|
+
$[85] = t44;
|
|
619
|
+
} else t44 = $[85];
|
|
620
|
+
useHotkeys(t40, t41, t43, t44);
|
|
621
|
+
const t45 = !!(hasIconSlot || finalPrefix);
|
|
622
|
+
const t46 = !!(hasRightIconSlot || finalSuffix || actions);
|
|
623
|
+
const t47 = !!finalPrefix;
|
|
624
|
+
const t48 = !!finalSuffix;
|
|
625
|
+
const t49 = !!actions;
|
|
626
|
+
const t50 = !!(actions && actions !== true);
|
|
627
|
+
const t51 = autoHideActions === true;
|
|
628
|
+
const t52 = preserveActionsSpace === true;
|
|
629
|
+
const t53 = showActions && insideWrapper;
|
|
630
|
+
const t54 = showDescription ? finalDescriptionPlacement : "none";
|
|
631
|
+
let t55;
|
|
632
|
+
if ($[86] !== baseMods || $[87] !== hasCheckmark || $[88] !== hasIconSlot || $[89] !== hasLabel || $[90] !== hasRightIconSlot || $[91] !== insideWrapper || $[92] !== showDescription || $[93] !== t45 || $[94] !== t46 || $[95] !== t47 || $[96] !== t48 || $[97] !== t49 || $[98] !== t50 || $[99] !== t51 || $[100] !== t52 || $[101] !== t53 || $[102] !== t54) {
|
|
633
|
+
t55 = {
|
|
632
634
|
...baseMods,
|
|
633
635
|
"has-icon": hasIconSlot,
|
|
634
|
-
"has-start-content":
|
|
635
|
-
"has-end-content":
|
|
636
|
+
"has-start-content": t45,
|
|
637
|
+
"has-end-content": t46,
|
|
636
638
|
"has-right-icon": hasRightIconSlot,
|
|
637
639
|
"has-label": hasLabel,
|
|
638
|
-
"has-prefix":
|
|
639
|
-
"has-suffix":
|
|
640
|
+
"has-prefix": t47,
|
|
641
|
+
"has-suffix": t48,
|
|
640
642
|
"has-description": showDescription,
|
|
641
|
-
"has-actions":
|
|
642
|
-
"has-actions-content":
|
|
643
|
-
"auto-hide-actions":
|
|
644
|
-
"preserve-actions-space":
|
|
643
|
+
"has-actions": t49,
|
|
644
|
+
"has-actions-content": t50,
|
|
645
|
+
"auto-hide-actions": t51,
|
|
646
|
+
"preserve-actions-space": t52,
|
|
645
647
|
"inside-wrapper": insideWrapper,
|
|
646
|
-
"actions-shown":
|
|
648
|
+
"actions-shown": t53,
|
|
647
649
|
checkmark: hasCheckmark,
|
|
648
|
-
description:
|
|
650
|
+
description: t54
|
|
649
651
|
};
|
|
650
652
|
$[86] = baseMods;
|
|
651
653
|
$[87] = hasCheckmark;
|
|
@@ -654,77 +656,83 @@ const Item = (props, ref) => {
|
|
|
654
656
|
$[90] = hasRightIconSlot;
|
|
655
657
|
$[91] = insideWrapper;
|
|
656
658
|
$[92] = showDescription;
|
|
657
|
-
$[93] =
|
|
658
|
-
$[94] =
|
|
659
|
-
$[95] =
|
|
660
|
-
$[96] =
|
|
661
|
-
$[97] =
|
|
662
|
-
$[98] =
|
|
663
|
-
$[99] =
|
|
664
|
-
$[100] =
|
|
665
|
-
$[101] =
|
|
666
|
-
$[102] =
|
|
667
|
-
$[103] =
|
|
668
|
-
} else
|
|
669
|
-
const finalMods =
|
|
670
|
-
const
|
|
671
|
-
let
|
|
672
|
-
if ($[104] !== children || $[105] !== labelProps || $[106] !==
|
|
673
|
-
|
|
659
|
+
$[93] = t45;
|
|
660
|
+
$[94] = t46;
|
|
661
|
+
$[95] = t47;
|
|
662
|
+
$[96] = t48;
|
|
663
|
+
$[97] = t49;
|
|
664
|
+
$[98] = t50;
|
|
665
|
+
$[99] = t51;
|
|
666
|
+
$[100] = t52;
|
|
667
|
+
$[101] = t53;
|
|
668
|
+
$[102] = t54;
|
|
669
|
+
$[103] = t55;
|
|
670
|
+
} else t55 = $[103];
|
|
671
|
+
const finalMods = t55;
|
|
672
|
+
const t56 = isDynamicLabel || !!actions || insideWrapper;
|
|
673
|
+
let t57;
|
|
674
|
+
if ($[104] !== children || $[105] !== labelProps || $[106] !== labelRefProp || $[107] !== t56 || $[108] !== tooltip) {
|
|
675
|
+
t57 = {
|
|
674
676
|
tooltip,
|
|
675
677
|
children,
|
|
676
678
|
labelProps,
|
|
677
|
-
|
|
679
|
+
labelRef: labelRefProp,
|
|
680
|
+
isDynamicLabel: t56
|
|
678
681
|
};
|
|
679
682
|
$[104] = children;
|
|
680
683
|
$[105] = labelProps;
|
|
681
|
-
$[106] =
|
|
682
|
-
$[107] =
|
|
683
|
-
$[108] =
|
|
684
|
-
|
|
685
|
-
|
|
684
|
+
$[106] = labelRefProp;
|
|
685
|
+
$[107] = t56;
|
|
686
|
+
$[108] = tooltip;
|
|
687
|
+
$[109] = t57;
|
|
688
|
+
} else t57 = $[109];
|
|
689
|
+
const { labelProps: finalLabelProps, labelRef, renderWithTooltip, isTooltipActive } = useAutoTooltip(t57);
|
|
686
690
|
const { isNativelyDisabled, isInert, inertProps } = getDisabledElementProps({
|
|
687
691
|
isDisabled: finalIsDisabled,
|
|
688
692
|
keepEvents: isTooltipActive,
|
|
689
693
|
as: rest.as
|
|
690
694
|
});
|
|
691
|
-
let
|
|
695
|
+
let t58;
|
|
692
696
|
bb2: {
|
|
693
697
|
if (typeof children === "string" && highlight) {
|
|
694
|
-
let
|
|
695
|
-
if ($[
|
|
696
|
-
|
|
697
|
-
$[
|
|
698
|
-
$[
|
|
699
|
-
$[
|
|
700
|
-
$[
|
|
701
|
-
$[
|
|
702
|
-
} else
|
|
703
|
-
|
|
698
|
+
let t59;
|
|
699
|
+
if ($[110] !== children || $[111] !== highlight || $[112] !== highlightCaseSensitive || $[113] !== highlightStyles) {
|
|
700
|
+
t59 = highlightText(children, highlight, highlightCaseSensitive, highlightStyles);
|
|
701
|
+
$[110] = children;
|
|
702
|
+
$[111] = highlight;
|
|
703
|
+
$[112] = highlightCaseSensitive;
|
|
704
|
+
$[113] = highlightStyles;
|
|
705
|
+
$[114] = t59;
|
|
706
|
+
} else t59 = $[114];
|
|
707
|
+
t58 = t59;
|
|
704
708
|
break bb2;
|
|
705
709
|
}
|
|
706
|
-
|
|
710
|
+
t58 = children;
|
|
707
711
|
}
|
|
708
|
-
const processedChildren =
|
|
709
|
-
let
|
|
712
|
+
const processedChildren = t58;
|
|
713
|
+
let t59;
|
|
710
714
|
bb3: {
|
|
711
715
|
if (typeof description === "string" && highlight) {
|
|
712
|
-
let
|
|
713
|
-
if ($[
|
|
714
|
-
|
|
715
|
-
$[
|
|
716
|
-
$[
|
|
717
|
-
$[
|
|
718
|
-
$[
|
|
719
|
-
$[
|
|
720
|
-
} else
|
|
721
|
-
|
|
716
|
+
let t60;
|
|
717
|
+
if ($[115] !== description || $[116] !== highlight || $[117] !== highlightCaseSensitive || $[118] !== highlightStyles) {
|
|
718
|
+
t60 = highlightText(description, highlight, highlightCaseSensitive, highlightStyles);
|
|
719
|
+
$[115] = description;
|
|
720
|
+
$[116] = highlight;
|
|
721
|
+
$[117] = highlightCaseSensitive;
|
|
722
|
+
$[118] = highlightStyles;
|
|
723
|
+
$[119] = t60;
|
|
724
|
+
} else t60 = $[119];
|
|
725
|
+
t59 = t60;
|
|
722
726
|
break bb3;
|
|
723
727
|
}
|
|
724
|
-
|
|
728
|
+
t59 = description;
|
|
725
729
|
}
|
|
726
|
-
const processedDescription =
|
|
730
|
+
const processedDescription = t59;
|
|
727
731
|
const renderItemElement = (tooltipTriggerProps, tooltipRef) => {
|
|
732
|
+
const { pointerProps: elementTooltipProps, focusProps: tooltipFocusProps } = typeof hiddenContent === "function" ? splitTooltipTriggerProps(tooltipTriggerProps) : {
|
|
733
|
+
pointerProps: tooltipTriggerProps,
|
|
734
|
+
focusProps: void 0
|
|
735
|
+
};
|
|
728
736
|
const handleRef = (element) => {
|
|
729
737
|
if (typeof ref === "function") ref(element);
|
|
730
738
|
else if (ref) ref.current = element;
|
|
@@ -743,9 +751,10 @@ const Item = (props, ref) => {
|
|
|
743
751
|
...sizeTokenValue ? { $size: sizeTokenValue } : {}
|
|
744
752
|
},
|
|
745
753
|
type: htmlType,
|
|
746
|
-
...mergeProps(isInert ? omitActivationEventProps(rest) : rest,
|
|
754
|
+
...mergeProps(isInert ? omitActivationEventProps(rest) : rest, elementTooltipProps || {}, inertProps),
|
|
747
755
|
style,
|
|
748
756
|
children: [
|
|
757
|
+
typeof hiddenContent === "function" ? hiddenContent(tooltipFocusProps ?? {}) : hiddenContent,
|
|
749
758
|
hasIconSlot && /* @__PURE__ */ jsx("div", {
|
|
750
759
|
"data-element": "Icon",
|
|
751
760
|
children: /* @__PURE__ */ jsx(IconSwitch, {
|