@cube-dev/ui-kit 0.0.0-canary-c64f303 → 0.0.0-canary-8b468fb
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 +1 -2
- 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 +8 -1
- 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 +1 -1
- package/dist/components/actions/Menu/MenuSection.js +8 -1
- 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 -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 +2 -1
- 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 +2 -27
- package/dist/components/content/Item/Item.js +231 -240
- 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 +118 -123
- 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.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 +125 -231
- 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 +0 -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-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 +0 -8
- package/dist/components/fields/Checkbox/Checkbox.js +39 -58
- 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 +2 -10
- package/dist/components/fields/RadioGroup/Radio.js +213 -215
- 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 +2 -3
- package/dist/components/fields/Select/Select.js +2 -5
- 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 +9 -11
- 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 +4 -6
- package/dist/components/form/Form/Field.js.map +1 -1
- package/dist/components/form/Form/Form.js +20 -5
- 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/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 +3 -5
- 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 +110 -131
- 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 +1 -2
- 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 +18 -9
- 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 +6 -5
- 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 +71 -64
- 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-content-overflow.js +68 -0
- package/dist/components/overlays/Dialog/use-content-overflow.js.map +1 -0
- 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 +69 -72
- package/dist/components/overlays/Tooltip/TooltipTrigger.js.map +1 -1
- package/dist/components/overlays/Tooltip/context.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 +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 +2 -9
- 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 +0 -2
- package/docs/components/content/InfoBadge.md +1 -1
- package/docs/components/content/Layout.md +1 -1
- package/docs/components/fields/Checkbox.md +0 -11
- 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 +0 -3
- package/docs/components/form/Field.md +2 -2
- package/docs/components/form/Form.md +2 -0
- package/docs/components/navigation/Tabs.md +3 -3
- package/docs/components/overlays/Dialog.md +30 -3
- package/docs/components/overlays/DialogForm.md +1 -0
- package/package.json +1 -1
- package/dist/components/form/legacy-tooltip.js +0 -28
- package/dist/components/form/legacy-tooltip.js.map +0 -1
- package/dist/components/overlays/Tooltip/split-trigger-props.d.ts +0 -16
- package/dist/components/overlays/Tooltip/split-trigger-props.js +0 -54
- package/dist/components/overlays/Tooltip/split-trigger-props.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-8b468fb | 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,7 +12,6 @@ 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";
|
|
16
15
|
import { _HotKeys } from "../HotKeys/HotKeys.js";
|
|
17
16
|
import { c } from "react-compiler-runtime";
|
|
18
17
|
import { CONTAINER_STYLES, tasty } from "@tenphi/tasty";
|
|
@@ -288,8 +287,8 @@ const ItemElement = tasty({
|
|
|
288
287
|
styleProps: CONTAINER_STYLES
|
|
289
288
|
});
|
|
290
289
|
const Item = (props, ref) => {
|
|
291
|
-
const $ = c(
|
|
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,
|
|
290
|
+
const $ = c(119);
|
|
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;
|
|
293
292
|
const size = t0 === void 0 ? "medium" : t0;
|
|
294
293
|
const type = t1 === void 0 ? "item" : t1;
|
|
295
294
|
const theme = t2 === void 0 ? "default" : t2;
|
|
@@ -304,15 +303,14 @@ const Item = (props, ref) => {
|
|
|
304
303
|
const highlightCaseSensitive = t11 === void 0 ? false : t11;
|
|
305
304
|
const insideWrapper = t12 === void 0 ? false : t12;
|
|
306
305
|
const showActions = t13 === void 0 ? false : t13;
|
|
307
|
-
const isDynamicLabel = t14 === void 0 ? false : t14;
|
|
308
306
|
const hasLabel = !!(children || labelProps);
|
|
309
307
|
const finalDescriptionPlacement = descriptionPlacement ?? ((type === "card" || type === "header") && hasLabel ? "block" : "inline");
|
|
310
308
|
const finalShape = shape ?? (type === "card" ? "card" : "button");
|
|
311
309
|
const isDisabledProp = isDisabled ?? (nativeDisabledProp || void 0);
|
|
312
310
|
const finalIsDisabled = isDisabledProp === true || isLoading && isDisabledProp !== false;
|
|
313
|
-
let
|
|
311
|
+
let t14;
|
|
314
312
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
315
|
-
|
|
313
|
+
t14 = [
|
|
316
314
|
"default",
|
|
317
315
|
"success",
|
|
318
316
|
"danger",
|
|
@@ -321,12 +319,12 @@ const Item = (props, ref) => {
|
|
|
321
319
|
"special",
|
|
322
320
|
"current"
|
|
323
321
|
];
|
|
324
|
-
$[0] =
|
|
325
|
-
} else
|
|
326
|
-
const STANDARD_THEMES =
|
|
327
|
-
let
|
|
322
|
+
$[0] = t14;
|
|
323
|
+
} else t14 = $[0];
|
|
324
|
+
const STANDARD_THEMES = t14;
|
|
325
|
+
let t15;
|
|
328
326
|
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
329
|
-
|
|
327
|
+
t15 = [
|
|
330
328
|
"default",
|
|
331
329
|
"success",
|
|
332
330
|
"danger",
|
|
@@ -334,26 +332,26 @@ const Item = (props, ref) => {
|
|
|
334
332
|
"note",
|
|
335
333
|
"current"
|
|
336
334
|
];
|
|
337
|
-
$[1] =
|
|
338
|
-
} else
|
|
339
|
-
const CARD_THEMES =
|
|
340
|
-
let
|
|
335
|
+
$[1] = t15;
|
|
336
|
+
} else t15 = $[1];
|
|
337
|
+
const CARD_THEMES = t15;
|
|
338
|
+
let t16;
|
|
341
339
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
342
|
-
|
|
343
|
-
$[2] =
|
|
344
|
-
} else
|
|
345
|
-
const HEADER_THEMES =
|
|
346
|
-
let
|
|
340
|
+
t16 = ["default"];
|
|
341
|
+
$[2] = t16;
|
|
342
|
+
} else t16 = $[2];
|
|
343
|
+
const HEADER_THEMES = t16;
|
|
344
|
+
let t17;
|
|
347
345
|
if ($[3] !== theme || $[4] !== type) {
|
|
348
|
-
|
|
346
|
+
t17 = type === "header" && !HEADER_THEMES.includes(theme) || type === "card" && !CARD_THEMES.includes(theme) || !["header", "card"].includes(type) && !STANDARD_THEMES.includes(theme);
|
|
349
347
|
$[3] = theme;
|
|
350
348
|
$[4] = type;
|
|
351
|
-
$[5] =
|
|
352
|
-
} else
|
|
353
|
-
const isInvalidCombination =
|
|
354
|
-
let
|
|
349
|
+
$[5] = t17;
|
|
350
|
+
} else t17 = $[5];
|
|
351
|
+
const isInvalidCombination = t17;
|
|
352
|
+
let t18;
|
|
355
353
|
if ($[6] !== theme || $[7] !== type) {
|
|
356
|
-
|
|
354
|
+
t18 = [
|
|
357
355
|
"Item",
|
|
358
356
|
"invalid-type-theme",
|
|
359
357
|
type,
|
|
@@ -361,26 +359,26 @@ const Item = (props, ref) => {
|
|
|
361
359
|
];
|
|
362
360
|
$[6] = theme;
|
|
363
361
|
$[7] = type;
|
|
364
|
-
$[8] =
|
|
365
|
-
} else
|
|
366
|
-
const
|
|
362
|
+
$[8] = t18;
|
|
363
|
+
} else t18 = $[8];
|
|
364
|
+
const t19 = `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.");
|
|
365
|
+
let t20;
|
|
366
|
+
if ($[9] !== t19) {
|
|
367
|
+
t20 = [t19];
|
|
368
|
+
$[9] = t19;
|
|
369
|
+
$[10] = t20;
|
|
370
|
+
} else t20 = $[10];
|
|
367
371
|
let t21;
|
|
368
|
-
if ($[
|
|
369
|
-
t21 =
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
} else t21 = $[10];
|
|
373
|
-
let t22;
|
|
374
|
-
if ($[11] !== t19 || $[12] !== t21) {
|
|
375
|
-
t22 = {
|
|
376
|
-
key: t19,
|
|
377
|
-
args: t21
|
|
372
|
+
if ($[11] !== t18 || $[12] !== t20) {
|
|
373
|
+
t21 = {
|
|
374
|
+
key: t18,
|
|
375
|
+
args: t20
|
|
378
376
|
};
|
|
379
|
-
$[11] =
|
|
380
|
-
$[12] =
|
|
381
|
-
$[13] =
|
|
382
|
-
} else
|
|
383
|
-
useWarn(isInvalidCombination,
|
|
377
|
+
$[11] = t18;
|
|
378
|
+
$[12] = t20;
|
|
379
|
+
$[13] = t21;
|
|
380
|
+
} else t21 = $[13];
|
|
381
|
+
useWarn(isInvalidCombination, t21);
|
|
384
382
|
const hasLinkWithIcons = type === "link" && (iconProp || rightIconProp);
|
|
385
383
|
const hasLinkWithLoading = type === "link" && isLoading;
|
|
386
384
|
const hasLinkRestrictions = hasLinkWithIcons || hasLinkWithLoading;
|
|
@@ -393,46 +391,46 @@ const Item = (props, ref) => {
|
|
|
393
391
|
$[15] = hasLinkWithLoading;
|
|
394
392
|
$[16] = linkRestrictionMessages;
|
|
395
393
|
} else linkRestrictionMessages = $[16];
|
|
396
|
-
let
|
|
394
|
+
let t22;
|
|
397
395
|
if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
|
|
398
|
-
|
|
399
|
-
$[17] =
|
|
400
|
-
} else
|
|
401
|
-
const
|
|
402
|
-
let
|
|
403
|
-
if ($[18] !==
|
|
404
|
-
|
|
405
|
-
key:
|
|
406
|
-
args: [
|
|
396
|
+
t22 = ["Item", "link-restrictions"];
|
|
397
|
+
$[17] = t22;
|
|
398
|
+
} else t22 = $[17];
|
|
399
|
+
const t23 = `Item: The "link" type does not support ${linkRestrictionMessages.join(" or ")}. Remove these props when using type="link".`;
|
|
400
|
+
let t24;
|
|
401
|
+
if ($[18] !== t23) {
|
|
402
|
+
t24 = {
|
|
403
|
+
key: t22,
|
|
404
|
+
args: [t23]
|
|
407
405
|
};
|
|
408
|
-
$[18] =
|
|
409
|
-
$[19] =
|
|
410
|
-
} else
|
|
411
|
-
useWarn(hasLinkRestrictions,
|
|
406
|
+
$[18] = t23;
|
|
407
|
+
$[19] = t24;
|
|
408
|
+
} else t24 = $[19];
|
|
409
|
+
useWarn(hasLinkRestrictions, t24);
|
|
412
410
|
const hasCheckmark = iconProp === "checkmark";
|
|
413
|
-
let
|
|
411
|
+
let t25;
|
|
414
412
|
if ($[20] !== size) {
|
|
415
|
-
|
|
413
|
+
t25 = typeof size === "number" || !ITEM_SIZE_VALUES.includes(size);
|
|
416
414
|
$[20] = size;
|
|
417
|
-
$[21] =
|
|
418
|
-
} else
|
|
419
|
-
const isCustomSize =
|
|
415
|
+
$[21] = t25;
|
|
416
|
+
} else t25 = $[21];
|
|
417
|
+
const isCustomSize = t25;
|
|
420
418
|
const sizeTokenValue = typeof size === "number" ? `${size}px` : isCustomSize ? size : void 0;
|
|
421
|
-
const
|
|
422
|
-
let
|
|
419
|
+
const t26 = isSelected === true;
|
|
420
|
+
let t27;
|
|
423
421
|
if ($[22] !== isCustomSize || $[23] !== size) {
|
|
424
|
-
|
|
422
|
+
t27 = !isCustomSize && { size };
|
|
425
423
|
$[22] = isCustomSize;
|
|
426
424
|
$[23] = size;
|
|
427
|
-
$[24] =
|
|
428
|
-
} else
|
|
429
|
-
let
|
|
430
|
-
if ($[25] !== finalIsDisabled || $[26] !== finalShape || $[27] !== isLoading || $[28] !== mods || $[29] !==
|
|
431
|
-
|
|
425
|
+
$[24] = t27;
|
|
426
|
+
} else t27 = $[24];
|
|
427
|
+
let t28;
|
|
428
|
+
if ($[25] !== finalIsDisabled || $[26] !== finalShape || $[27] !== isLoading || $[28] !== mods || $[29] !== t26 || $[30] !== t27 || $[31] !== theme || $[32] !== type) {
|
|
429
|
+
t28 = {
|
|
432
430
|
disabled: finalIsDisabled,
|
|
433
|
-
selected:
|
|
431
|
+
selected: t26,
|
|
434
432
|
loading: isLoading,
|
|
435
|
-
...
|
|
433
|
+
...t27,
|
|
436
434
|
type,
|
|
437
435
|
theme,
|
|
438
436
|
shape: finalShape,
|
|
@@ -442,59 +440,59 @@ const Item = (props, ref) => {
|
|
|
442
440
|
$[26] = finalShape;
|
|
443
441
|
$[27] = isLoading;
|
|
444
442
|
$[28] = mods;
|
|
445
|
-
$[29] =
|
|
446
|
-
$[30] =
|
|
443
|
+
$[29] = t26;
|
|
444
|
+
$[30] = t27;
|
|
447
445
|
$[31] = theme;
|
|
448
446
|
$[32] = type;
|
|
449
|
-
$[33] =
|
|
450
|
-
} else
|
|
451
|
-
const baseMods =
|
|
452
|
-
let
|
|
447
|
+
$[33] = t28;
|
|
448
|
+
} else t28 = $[33];
|
|
449
|
+
const baseMods = t28;
|
|
450
|
+
let t29;
|
|
453
451
|
bb0: {
|
|
454
452
|
if (hasCheckmark) {
|
|
455
|
-
let
|
|
453
|
+
let t30;
|
|
456
454
|
if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
|
|
457
|
-
|
|
455
|
+
t30 = {
|
|
458
456
|
content: null,
|
|
459
457
|
hasSlot: true
|
|
460
458
|
};
|
|
461
|
-
$[34] =
|
|
462
|
-
} else
|
|
463
|
-
|
|
459
|
+
$[34] = t30;
|
|
460
|
+
} else t30 = $[34];
|
|
461
|
+
t29 = t30;
|
|
464
462
|
break bb0;
|
|
465
463
|
}
|
|
466
|
-
const
|
|
467
|
-
let
|
|
468
|
-
if ($[35] !== baseMods || $[36] !==
|
|
469
|
-
|
|
464
|
+
const t30 = iconProp;
|
|
465
|
+
let t31;
|
|
466
|
+
if ($[35] !== baseMods || $[36] !== t30) {
|
|
467
|
+
t31 = resolveIcon(t30, baseMods);
|
|
470
468
|
$[35] = baseMods;
|
|
471
|
-
$[36] =
|
|
472
|
-
$[37] =
|
|
473
|
-
} else
|
|
474
|
-
|
|
469
|
+
$[36] = t30;
|
|
470
|
+
$[37] = t31;
|
|
471
|
+
} else t31 = $[37];
|
|
472
|
+
t29 = t31;
|
|
475
473
|
}
|
|
476
|
-
const resolvedIcon =
|
|
477
|
-
let
|
|
474
|
+
const resolvedIcon = t29;
|
|
475
|
+
let t30;
|
|
478
476
|
if ($[38] !== baseMods || $[39] !== rightIconProp) {
|
|
479
|
-
|
|
477
|
+
t30 = resolveIcon(rightIconProp, baseMods);
|
|
480
478
|
$[38] = baseMods;
|
|
481
479
|
$[39] = rightIconProp;
|
|
482
|
-
$[40] =
|
|
483
|
-
} else
|
|
484
|
-
const resolvedRightIcon =
|
|
485
|
-
let
|
|
480
|
+
$[40] = t30;
|
|
481
|
+
} else t30 = $[40];
|
|
482
|
+
const resolvedRightIcon = t30;
|
|
483
|
+
let t31;
|
|
486
484
|
bb1: {
|
|
487
485
|
if (loadingSlot !== "auto") {
|
|
488
|
-
|
|
486
|
+
t31 = loadingSlot;
|
|
489
487
|
break bb1;
|
|
490
488
|
}
|
|
491
489
|
if (resolvedRightIcon.hasSlot && !resolvedIcon.hasSlot) {
|
|
492
|
-
|
|
490
|
+
t31 = "rightIcon";
|
|
493
491
|
break bb1;
|
|
494
492
|
}
|
|
495
|
-
|
|
493
|
+
t31 = "icon";
|
|
496
494
|
}
|
|
497
|
-
const resolvedLoadingSlot =
|
|
495
|
+
const resolvedLoadingSlot = t31;
|
|
498
496
|
const hasIconSlot = resolvedIcon.hasSlot || isLoading && resolvedLoadingSlot === "icon";
|
|
499
497
|
const hasRightIconSlot = resolvedRightIcon.hasSlot || isLoading && resolvedLoadingSlot === "rightIcon";
|
|
500
498
|
let copyProps;
|
|
@@ -504,64 +502,64 @@ const Item = (props, ref) => {
|
|
|
504
502
|
$[41] = descriptionProps;
|
|
505
503
|
$[42] = copyProps;
|
|
506
504
|
} else copyProps = $[42];
|
|
507
|
-
let
|
|
505
|
+
let t32;
|
|
508
506
|
if ($[43] !== copyProps || $[44] !== description) {
|
|
509
|
-
|
|
507
|
+
t32 = description || Object.keys(copyProps).length > 0;
|
|
510
508
|
$[43] = copyProps;
|
|
511
509
|
$[44] = description;
|
|
512
|
-
$[45] =
|
|
513
|
-
} else
|
|
514
|
-
const showDescription = !!
|
|
515
|
-
let
|
|
510
|
+
$[45] = t32;
|
|
511
|
+
} else t32 = $[45];
|
|
512
|
+
const showDescription = !!t32;
|
|
513
|
+
let t33;
|
|
516
514
|
if ($[46] !== isLoading || $[47] !== resolvedIcon.content || $[48] !== resolvedLoadingSlot) {
|
|
517
|
-
|
|
515
|
+
t33 = isLoading && resolvedLoadingSlot === "icon" ? /* @__PURE__ */ jsx(LoadingIcon, {}) : resolvedIcon.content;
|
|
518
516
|
$[46] = isLoading;
|
|
519
517
|
$[47] = resolvedIcon.content;
|
|
520
518
|
$[48] = resolvedLoadingSlot;
|
|
521
|
-
$[49] =
|
|
522
|
-
} else
|
|
523
|
-
const finalIcon =
|
|
524
|
-
let
|
|
519
|
+
$[49] = t33;
|
|
520
|
+
} else t33 = $[49];
|
|
521
|
+
const finalIcon = t33;
|
|
522
|
+
let t34;
|
|
525
523
|
if ($[50] !== isLoading || $[51] !== resolvedLoadingSlot || $[52] !== resolvedRightIcon.content) {
|
|
526
|
-
|
|
524
|
+
t34 = isLoading && resolvedLoadingSlot === "rightIcon" ? /* @__PURE__ */ jsx(LoadingIcon, {}) : resolvedRightIcon.content;
|
|
527
525
|
$[50] = isLoading;
|
|
528
526
|
$[51] = resolvedLoadingSlot;
|
|
529
527
|
$[52] = resolvedRightIcon.content;
|
|
530
|
-
$[53] =
|
|
531
|
-
} else
|
|
532
|
-
const finalRightIcon =
|
|
533
|
-
let
|
|
528
|
+
$[53] = t34;
|
|
529
|
+
} else t34 = $[53];
|
|
530
|
+
const finalRightIcon = t34;
|
|
531
|
+
let t35;
|
|
534
532
|
if ($[54] !== finalIcon || $[55] !== hasCheckmark || $[56] !== isLoading || $[57] !== resolvedLoadingSlot) {
|
|
535
|
-
|
|
533
|
+
t35 = hasCheckmark ? "checkmark" : isLoading && resolvedLoadingSlot === "icon" ? "loading" : isValidElement(finalIcon) ? finalIcon.type?.displayName || finalIcon.type?.name || "icon" : finalIcon ? "icon" : "empty";
|
|
536
534
|
$[54] = finalIcon;
|
|
537
535
|
$[55] = hasCheckmark;
|
|
538
536
|
$[56] = isLoading;
|
|
539
537
|
$[57] = resolvedLoadingSlot;
|
|
540
|
-
$[58] =
|
|
541
|
-
} else
|
|
542
|
-
const iconKey =
|
|
543
|
-
let
|
|
538
|
+
$[58] = t35;
|
|
539
|
+
} else t35 = $[58];
|
|
540
|
+
const iconKey = t35;
|
|
541
|
+
let t36;
|
|
544
542
|
if ($[59] !== finalRightIcon || $[60] !== isLoading || $[61] !== resolvedLoadingSlot) {
|
|
545
|
-
|
|
543
|
+
t36 = isLoading && resolvedLoadingSlot === "rightIcon" ? "loading" : isValidElement(finalRightIcon) ? finalRightIcon.type?.displayName || finalRightIcon.type?.name || "icon" : finalRightIcon ? "icon" : "empty";
|
|
546
544
|
$[59] = finalRightIcon;
|
|
547
545
|
$[60] = isLoading;
|
|
548
546
|
$[61] = resolvedLoadingSlot;
|
|
549
|
-
$[62] =
|
|
550
|
-
} else
|
|
551
|
-
const rightIconKey =
|
|
552
|
-
let
|
|
547
|
+
$[62] = t36;
|
|
548
|
+
} else t36 = $[62];
|
|
549
|
+
const rightIconKey = t36;
|
|
550
|
+
let t37;
|
|
553
551
|
if ($[63] !== isLoading || $[64] !== prefix || $[65] !== resolvedLoadingSlot) {
|
|
554
|
-
|
|
552
|
+
t37 = isLoading && resolvedLoadingSlot === "prefix" ? /* @__PURE__ */ jsx(LoadingIcon, {}) : prefix;
|
|
555
553
|
$[63] = isLoading;
|
|
556
554
|
$[64] = prefix;
|
|
557
555
|
$[65] = resolvedLoadingSlot;
|
|
558
|
-
$[66] =
|
|
559
|
-
} else
|
|
560
|
-
const finalPrefix =
|
|
556
|
+
$[66] = t37;
|
|
557
|
+
} else t37 = $[66];
|
|
558
|
+
const finalPrefix = t37;
|
|
561
559
|
const hotkeysType = theme === "current" ? "inherit" : type === "primary" ? "primary" : "default";
|
|
562
|
-
let
|
|
560
|
+
let t38;
|
|
563
561
|
if ($[67] !== finalIsDisabled || $[68] !== hotkeys || $[69] !== hotkeysType || $[70] !== isLoading || $[71] !== keyboardShortcutProps || $[72] !== resolvedLoadingSlot || $[73] !== suffix) {
|
|
564
|
-
|
|
562
|
+
t38 = isLoading && resolvedLoadingSlot === "suffix" ? /* @__PURE__ */ jsx(LoadingIcon, {}) : suffix ?? (hotkeys ? /* @__PURE__ */ jsx(_HotKeys, {
|
|
565
563
|
...keyboardShortcutProps,
|
|
566
564
|
type: hotkeysType,
|
|
567
565
|
styles: {
|
|
@@ -577,18 +575,18 @@ const Item = (props, ref) => {
|
|
|
577
575
|
$[71] = keyboardShortcutProps;
|
|
578
576
|
$[72] = resolvedLoadingSlot;
|
|
579
577
|
$[73] = suffix;
|
|
580
|
-
$[74] =
|
|
581
|
-
} else
|
|
582
|
-
const finalSuffix =
|
|
583
|
-
let
|
|
578
|
+
$[74] = t38;
|
|
579
|
+
} else t38 = $[74];
|
|
580
|
+
const finalSuffix = t38;
|
|
581
|
+
let t39;
|
|
584
582
|
if ($[75] !== hotkeys) {
|
|
585
|
-
|
|
583
|
+
t39 = typeof hotkeys === "string" ? hotkeys.toLowerCase() : "";
|
|
586
584
|
$[75] = hotkeys;
|
|
587
|
-
$[76] =
|
|
588
|
-
} else
|
|
589
|
-
let
|
|
585
|
+
$[76] = t39;
|
|
586
|
+
} else t39 = $[76];
|
|
587
|
+
let t40;
|
|
590
588
|
if ($[77] !== finalIsDisabled || $[78] !== hotkeys || $[79] !== ref) {
|
|
591
|
-
|
|
589
|
+
t40 = () => {
|
|
592
590
|
if (!hotkeys) return;
|
|
593
591
|
if (finalIsDisabled) return;
|
|
594
592
|
if (ref && typeof ref === "object" && ref.current) ref.current.click();
|
|
@@ -596,58 +594,58 @@ const Item = (props, ref) => {
|
|
|
596
594
|
$[77] = finalIsDisabled;
|
|
597
595
|
$[78] = hotkeys;
|
|
598
596
|
$[79] = ref;
|
|
599
|
-
$[80] =
|
|
600
|
-
} else
|
|
601
|
-
const
|
|
602
|
-
let
|
|
603
|
-
if ($[81] !==
|
|
604
|
-
|
|
597
|
+
$[80] = t40;
|
|
598
|
+
} else t40 = $[80];
|
|
599
|
+
const t41 = !!hotkeys;
|
|
600
|
+
let t42;
|
|
601
|
+
if ($[81] !== t41) {
|
|
602
|
+
t42 = {
|
|
605
603
|
enableOnContentEditable: true,
|
|
606
|
-
enabled:
|
|
604
|
+
enabled: t41,
|
|
607
605
|
preventDefault: true,
|
|
608
606
|
enableOnFormTags: true
|
|
609
607
|
};
|
|
610
|
-
$[81] =
|
|
611
|
-
$[82] =
|
|
612
|
-
} else
|
|
613
|
-
let
|
|
608
|
+
$[81] = t41;
|
|
609
|
+
$[82] = t42;
|
|
610
|
+
} else t42 = $[82];
|
|
611
|
+
let t43;
|
|
614
612
|
if ($[83] !== finalIsDisabled || $[84] !== hotkeys) {
|
|
615
|
-
|
|
613
|
+
t43 = [hotkeys, finalIsDisabled];
|
|
616
614
|
$[83] = finalIsDisabled;
|
|
617
615
|
$[84] = hotkeys;
|
|
618
|
-
$[85] =
|
|
619
|
-
} else
|
|
620
|
-
useHotkeys(t40,
|
|
621
|
-
const
|
|
622
|
-
const
|
|
623
|
-
const
|
|
624
|
-
const
|
|
625
|
-
const
|
|
626
|
-
const
|
|
627
|
-
const
|
|
628
|
-
const
|
|
629
|
-
const
|
|
630
|
-
const
|
|
631
|
-
let
|
|
632
|
-
if ($[86] !== baseMods || $[87] !== hasCheckmark || $[88] !== hasIconSlot || $[89] !== hasLabel || $[90] !== hasRightIconSlot || $[91] !== insideWrapper || $[92] !== showDescription || $[93] !==
|
|
633
|
-
|
|
616
|
+
$[85] = t43;
|
|
617
|
+
} else t43 = $[85];
|
|
618
|
+
useHotkeys(t39, t40, t42, t43);
|
|
619
|
+
const t44 = !!(hasIconSlot || finalPrefix);
|
|
620
|
+
const t45 = !!(hasRightIconSlot || finalSuffix || actions);
|
|
621
|
+
const t46 = !!finalPrefix;
|
|
622
|
+
const t47 = !!finalSuffix;
|
|
623
|
+
const t48 = !!actions;
|
|
624
|
+
const t49 = !!(actions && actions !== true);
|
|
625
|
+
const t50 = autoHideActions === true;
|
|
626
|
+
const t51 = preserveActionsSpace === true;
|
|
627
|
+
const t52 = showActions && insideWrapper;
|
|
628
|
+
const t53 = showDescription ? finalDescriptionPlacement : "none";
|
|
629
|
+
let t54;
|
|
630
|
+
if ($[86] !== baseMods || $[87] !== hasCheckmark || $[88] !== hasIconSlot || $[89] !== hasLabel || $[90] !== hasRightIconSlot || $[91] !== insideWrapper || $[92] !== showDescription || $[93] !== t44 || $[94] !== t45 || $[95] !== t46 || $[96] !== t47 || $[97] !== t48 || $[98] !== t49 || $[99] !== t50 || $[100] !== t51 || $[101] !== t52 || $[102] !== t53) {
|
|
631
|
+
t54 = {
|
|
634
632
|
...baseMods,
|
|
635
633
|
"has-icon": hasIconSlot,
|
|
636
|
-
"has-start-content":
|
|
637
|
-
"has-end-content":
|
|
634
|
+
"has-start-content": t44,
|
|
635
|
+
"has-end-content": t45,
|
|
638
636
|
"has-right-icon": hasRightIconSlot,
|
|
639
637
|
"has-label": hasLabel,
|
|
640
|
-
"has-prefix":
|
|
641
|
-
"has-suffix":
|
|
638
|
+
"has-prefix": t46,
|
|
639
|
+
"has-suffix": t47,
|
|
642
640
|
"has-description": showDescription,
|
|
643
|
-
"has-actions":
|
|
644
|
-
"has-actions-content":
|
|
645
|
-
"auto-hide-actions":
|
|
646
|
-
"preserve-actions-space":
|
|
641
|
+
"has-actions": t48,
|
|
642
|
+
"has-actions-content": t49,
|
|
643
|
+
"auto-hide-actions": t50,
|
|
644
|
+
"preserve-actions-space": t51,
|
|
647
645
|
"inside-wrapper": insideWrapper,
|
|
648
|
-
"actions-shown":
|
|
646
|
+
"actions-shown": t52,
|
|
649
647
|
checkmark: hasCheckmark,
|
|
650
|
-
description:
|
|
648
|
+
description: t53
|
|
651
649
|
};
|
|
652
650
|
$[86] = baseMods;
|
|
653
651
|
$[87] = hasCheckmark;
|
|
@@ -656,83 +654,77 @@ const Item = (props, ref) => {
|
|
|
656
654
|
$[90] = hasRightIconSlot;
|
|
657
655
|
$[91] = insideWrapper;
|
|
658
656
|
$[92] = showDescription;
|
|
659
|
-
$[93] =
|
|
660
|
-
$[94] =
|
|
661
|
-
$[95] =
|
|
662
|
-
$[96] =
|
|
663
|
-
$[97] =
|
|
664
|
-
$[98] =
|
|
665
|
-
$[99] =
|
|
666
|
-
$[100] =
|
|
667
|
-
$[101] =
|
|
668
|
-
$[102] =
|
|
669
|
-
$[103] =
|
|
670
|
-
} else
|
|
671
|
-
const finalMods =
|
|
672
|
-
const
|
|
673
|
-
let
|
|
674
|
-
if ($[104] !== children || $[105] !== labelProps || $[106] !==
|
|
675
|
-
|
|
657
|
+
$[93] = t44;
|
|
658
|
+
$[94] = t45;
|
|
659
|
+
$[95] = t46;
|
|
660
|
+
$[96] = t47;
|
|
661
|
+
$[97] = t48;
|
|
662
|
+
$[98] = t49;
|
|
663
|
+
$[99] = t50;
|
|
664
|
+
$[100] = t51;
|
|
665
|
+
$[101] = t52;
|
|
666
|
+
$[102] = t53;
|
|
667
|
+
$[103] = t54;
|
|
668
|
+
} else t54 = $[103];
|
|
669
|
+
const finalMods = t54;
|
|
670
|
+
const t55 = !!actions || insideWrapper;
|
|
671
|
+
let t56;
|
|
672
|
+
if ($[104] !== children || $[105] !== labelProps || $[106] !== t55 || $[107] !== tooltip) {
|
|
673
|
+
t56 = {
|
|
676
674
|
tooltip,
|
|
677
675
|
children,
|
|
678
676
|
labelProps,
|
|
679
|
-
|
|
680
|
-
isDynamicLabel: t56
|
|
677
|
+
isDynamicLabel: t55
|
|
681
678
|
};
|
|
682
679
|
$[104] = children;
|
|
683
680
|
$[105] = labelProps;
|
|
684
|
-
$[106] =
|
|
685
|
-
$[107] =
|
|
686
|
-
$[108] =
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
const { labelProps: finalLabelProps, labelRef, renderWithTooltip, isTooltipActive } = useAutoTooltip(t57);
|
|
681
|
+
$[106] = t55;
|
|
682
|
+
$[107] = tooltip;
|
|
683
|
+
$[108] = t56;
|
|
684
|
+
} else t56 = $[108];
|
|
685
|
+
const { labelProps: finalLabelProps, labelRef, renderWithTooltip, isTooltipActive } = useAutoTooltip(t56);
|
|
690
686
|
const { isNativelyDisabled, isInert, inertProps } = getDisabledElementProps({
|
|
691
687
|
isDisabled: finalIsDisabled,
|
|
692
688
|
keepEvents: isTooltipActive,
|
|
693
689
|
as: rest.as
|
|
694
690
|
});
|
|
695
|
-
let
|
|
691
|
+
let t57;
|
|
696
692
|
bb2: {
|
|
697
693
|
if (typeof children === "string" && highlight) {
|
|
698
|
-
let
|
|
699
|
-
if ($[
|
|
700
|
-
|
|
701
|
-
$[
|
|
702
|
-
$[
|
|
703
|
-
$[
|
|
704
|
-
$[
|
|
705
|
-
$[
|
|
706
|
-
} else
|
|
707
|
-
|
|
694
|
+
let t58;
|
|
695
|
+
if ($[109] !== children || $[110] !== highlight || $[111] !== highlightCaseSensitive || $[112] !== highlightStyles) {
|
|
696
|
+
t58 = highlightText(children, highlight, highlightCaseSensitive, highlightStyles);
|
|
697
|
+
$[109] = children;
|
|
698
|
+
$[110] = highlight;
|
|
699
|
+
$[111] = highlightCaseSensitive;
|
|
700
|
+
$[112] = highlightStyles;
|
|
701
|
+
$[113] = t58;
|
|
702
|
+
} else t58 = $[113];
|
|
703
|
+
t57 = t58;
|
|
708
704
|
break bb2;
|
|
709
705
|
}
|
|
710
|
-
|
|
706
|
+
t57 = children;
|
|
711
707
|
}
|
|
712
|
-
const processedChildren =
|
|
713
|
-
let
|
|
708
|
+
const processedChildren = t57;
|
|
709
|
+
let t58;
|
|
714
710
|
bb3: {
|
|
715
711
|
if (typeof description === "string" && highlight) {
|
|
716
|
-
let
|
|
717
|
-
if ($[
|
|
718
|
-
|
|
719
|
-
$[
|
|
720
|
-
$[
|
|
721
|
-
$[
|
|
722
|
-
$[
|
|
723
|
-
$[
|
|
724
|
-
} else
|
|
725
|
-
|
|
712
|
+
let t59;
|
|
713
|
+
if ($[114] !== description || $[115] !== highlight || $[116] !== highlightCaseSensitive || $[117] !== highlightStyles) {
|
|
714
|
+
t59 = highlightText(description, highlight, highlightCaseSensitive, highlightStyles);
|
|
715
|
+
$[114] = description;
|
|
716
|
+
$[115] = highlight;
|
|
717
|
+
$[116] = highlightCaseSensitive;
|
|
718
|
+
$[117] = highlightStyles;
|
|
719
|
+
$[118] = t59;
|
|
720
|
+
} else t59 = $[118];
|
|
721
|
+
t58 = t59;
|
|
726
722
|
break bb3;
|
|
727
723
|
}
|
|
728
|
-
|
|
724
|
+
t58 = description;
|
|
729
725
|
}
|
|
730
|
-
const processedDescription =
|
|
726
|
+
const processedDescription = t58;
|
|
731
727
|
const renderItemElement = (tooltipTriggerProps, tooltipRef) => {
|
|
732
|
-
const { pointerProps: elementTooltipProps, focusProps: tooltipFocusProps } = typeof hiddenContent === "function" ? splitTooltipTriggerProps(tooltipTriggerProps) : {
|
|
733
|
-
pointerProps: tooltipTriggerProps,
|
|
734
|
-
focusProps: void 0
|
|
735
|
-
};
|
|
736
728
|
const handleRef = (element) => {
|
|
737
729
|
if (typeof ref === "function") ref(element);
|
|
738
730
|
else if (ref) ref.current = element;
|
|
@@ -751,10 +743,9 @@ const Item = (props, ref) => {
|
|
|
751
743
|
...sizeTokenValue ? { $size: sizeTokenValue } : {}
|
|
752
744
|
},
|
|
753
745
|
type: htmlType,
|
|
754
|
-
...mergeProps(isInert ? omitActivationEventProps(rest) : rest,
|
|
746
|
+
...mergeProps(isInert ? omitActivationEventProps(rest) : rest, tooltipTriggerProps || {}, inertProps),
|
|
755
747
|
style,
|
|
756
748
|
children: [
|
|
757
|
-
typeof hiddenContent === "function" ? hiddenContent(tooltipFocusProps ?? {}) : hiddenContent,
|
|
758
749
|
hasIconSlot && /* @__PURE__ */ jsx("div", {
|
|
759
750
|
"data-element": "Icon",
|
|
760
751
|
children: /* @__PURE__ */ jsx(IconSwitch, {
|