@cube-dev/ui-kit 0.0.0-canary-810c6f7 → 0.0.0-canary-5adbf30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Action/Action.js +1 -1
- package/dist/components/ActiveZone/ActiveZone.js +1 -1
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Alert/use-alert.js +1 -1
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/AlertDialogApiProvider.js +1 -1
- package/dist/components/AlertDialog/AlertDialogZone.js +1 -1
- package/dist/components/Avatar/Avatar.js +1 -1
- package/dist/components/Badge/Badge.js +1 -1
- package/dist/components/Banner/Banner.js +1 -1
- package/dist/components/Block/Block.js +1 -1
- package/dist/components/Button/AutoCollapseObserver.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonSplit/ButtonSplit.js +1 -1
- package/dist/components/ButtonSplit/ButtonSplitContext.js +1 -1
- package/dist/components/Calendar/Calendar.js +1 -1
- package/dist/components/Calendar/CalendarCell.js +1 -1
- package/dist/components/Calendar/CalendarGrid.js +1 -1
- package/dist/components/Calendar/CalendarHeader.js +1 -1
- package/dist/components/Calendar/CalendarPanel.js +1 -1
- package/dist/components/Calendar/PeriodCalendar.js +1 -1
- package/dist/components/Calendar/PeriodGrid.js +1 -1
- package/dist/components/Calendar/RangeCalendar.js +1 -1
- package/dist/components/Calendar/styled.js +1 -1
- package/dist/components/Card/Card.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Checkbox/CheckboxGroup.js +1 -1
- package/dist/components/Checkbox/CheckboxGroupContext.js +1 -1
- package/dist/components/CollectionItem/CollectionItem.js +1 -1
- package/dist/components/ColorInput/ColorInput.js +1 -1
- package/dist/components/ColorPanel/ColorPanel.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +1 -1
- package/dist/components/ColorSwatch/ColorSwatch.js +1 -1
- package/dist/components/ColorSwatchGroup/ColorSwatchGroup.js +1 -1
- package/dist/components/ComboBox/ComboBox.js +1 -1
- package/dist/components/ComboBox/combo-box-options.js +1 -1
- package/dist/components/CommandMenu/CommandMenu.js +1 -1
- package/dist/components/CommandMenu/styled.js +2 -1
- package/dist/components/CommandMenu/styled.js.map +1 -1
- package/dist/components/CommandTextArea/CommandTextArea.js +1 -1
- package/dist/components/CommandTextArea/caret-position.js +1 -1
- package/dist/components/CommandTextArea/use-caret-anchor.js +1 -1
- package/dist/components/Content/Content.js +1 -1
- package/dist/components/CopyPasteBlock/CopyPasteBlock.js +1 -1
- package/dist/components/CopySnippet/CopySnippet.js +1 -1
- package/dist/components/CubeLogo/CubeLogo.js +1 -1
- package/dist/components/DataTable/DataTable.js +1 -1
- package/dist/components/DatePicker/CalendarPopover.js +1 -1
- package/dist/components/DatePicker/DateInput.js +1 -1
- package/dist/components/DatePicker/DateInputBase.js +1 -1
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/DatePicker/DatePickerButton.js +1 -1
- package/dist/components/DatePicker/DatePickerElement.js +1 -1
- package/dist/components/DatePicker/DatePickerInput.js +1 -1
- package/dist/components/DatePicker/DatePickerSegment.js +1 -1
- package/dist/components/DatePicker/DateRangePicker.js +1 -1
- package/dist/components/DatePicker/DateRangeSeparatedPicker.js +1 -1
- package/dist/components/DatePicker/MonthPicker.js +1 -1
- package/dist/components/DatePicker/PeriodPicker.js +1 -1
- package/dist/components/DatePicker/QuarterPicker.js +1 -1
- package/dist/components/DatePicker/TimeInput.js +1 -1
- package/dist/components/DatePicker/WeekPicker.js +1 -1
- package/dist/components/DatePicker/YearPicker.js +1 -1
- package/dist/components/DatePicker/parse-date.js +1 -1
- package/dist/components/DatePicker/period.js +1 -1
- package/dist/components/DatePicker/props.js +1 -1
- package/dist/components/DatePicker/utils.js +1 -1
- package/dist/components/Dialog/Dialog.js +1 -1
- package/dist/components/Dialog/DialogContainer.js +1 -1
- package/dist/components/Dialog/DialogContext.js +1 -1
- package/dist/components/Dialog/DialogForm.js +1 -1
- package/dist/components/Dialog/DialogTrigger.js +1 -1
- package/dist/components/Dialog/ModernDialogForm.js +1 -1
- package/dist/components/Dialog/default-button-text.js +1 -1
- package/dist/components/Dialog/use-content-overflow.js +1 -1
- package/dist/components/Dialog/use-dialog-container.js +1 -1
- package/dist/components/Dialog/use-dialog-open-sync.js +1 -1
- package/dist/components/Dialog/use-dismiss-confirmation.js +1 -1
- package/dist/components/Dialog/use-retained-dialog-focus.js +1 -1
- package/dist/components/Disclosure/Disclosure.js +1 -1
- package/dist/components/DisplayTransition/DisplayTransition.js +1 -1
- package/dist/components/Divider/Divider.js +1 -1
- package/dist/components/DraggableCollection/DraggableCollection.js +1 -1
- package/dist/components/FieldWrapper/FieldWrapper.js +1 -1
- package/dist/components/FieldWrapper/field-description.js +1 -1
- package/dist/components/FileInput/FileInput.js +1 -1
- package/dist/components/FilterListBox/FilterListBox.js +3 -2
- package/dist/components/FilterListBox/FilterListBox.js.map +1 -1
- package/dist/components/FilterListBox/styled.js +19 -2
- package/dist/components/FilterListBox/styled.js.map +1 -1
- package/dist/components/FilterPicker/FilterPicker.d.ts +3 -4
- package/dist/components/FilterPicker/FilterPicker.js +1 -1
- package/dist/components/FilterPicker/FilterPicker.js.map +1 -1
- package/dist/components/FilterPicker/FilterTree.js +72 -64
- package/dist/components/FilterPicker/FilterTree.js.map +1 -1
- package/dist/components/Flex/Flex.js +1 -1
- package/dist/components/Flow/Flow.js +1 -1
- package/dist/components/Footer/Footer.js +1 -1
- package/dist/components/Form/Field.js +1 -1
- package/dist/components/Form/Form.js +1 -1
- package/dist/components/Form/FormContext.js +1 -1
- package/dist/components/Form/FormElement.js +1 -1
- package/dist/components/Form/ModernFormRoot.js +1 -1
- package/dist/components/Form/ResetButton.js +1 -1
- package/dist/components/Form/SubmitButton.js +1 -1
- package/dist/components/Form/SubmitError.js +1 -1
- package/dist/components/Form/backend.js +1 -1
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Form/modern/ModernActions.js +1 -1
- package/dist/components/Form/modern/ModernControllerContext.js +1 -1
- package/dist/components/Form/modern/controller.js +1 -1
- package/dist/components/Form/modern/field-binding.js +1 -1
- package/dist/components/Form/modern/field.js +1 -1
- package/dist/components/Form/modern/react.js +1 -1
- package/dist/components/Form/modern/store.js +1 -1
- package/dist/components/Form/modern/validation.js +1 -1
- package/dist/components/Form/modern/values.js +1 -1
- package/dist/components/Form/reset-unbound-controls.js +1 -1
- package/dist/components/Form/use-field/use-field-binding.js +1 -1
- package/dist/components/Form/use-field/use-field-props.js +1 -1
- package/dist/components/Form/use-field/use-field.js +1 -1
- package/dist/components/Form/use-form.js +1 -1
- package/dist/components/Form/validation.js +1 -1
- package/dist/components/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/components/Grid/Grid.js +1 -1
- package/dist/components/GridProvider/GridProvider.js +1 -1
- package/dist/components/Header/Header.js +1 -1
- package/dist/components/HiddenInput/HiddenInput.js +1 -1
- package/dist/components/HotKeys/HotKeys.js +1 -1
- package/dist/components/IconSwitch/IconSwitch.js +1 -1
- package/dist/components/InfoBadge/InfoBadge.js +1 -1
- package/dist/components/InlineInput/InlineInput.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Item/Item.d.ts +2 -24
- package/dist/components/Item/Item.js +148 -196
- package/dist/components/Item/Item.js.map +1 -1
- package/dist/components/Item/ItemWithNativeLinks.js +1 -1
- package/dist/components/ItemAction/ItemAction.js +1 -1
- package/dist/components/ItemAction/ItemCloseAction.js +1 -1
- package/dist/components/ItemActionsWrapper/ItemActionsWrapper.js +1 -1
- package/dist/components/ItemBadge/ItemBadge.js +1 -1
- package/dist/components/ItemButton/ItemButton.d.ts +1 -11
- package/dist/components/ItemButton/ItemButton.js +4 -5
- package/dist/components/ItemButton/ItemButton.js.map +1 -1
- package/dist/components/ItemCard/ItemCard.js +1 -1
- package/dist/components/ItemTable/ItemTable.js +1 -1
- package/dist/components/ItemTable/ItemTableBulkBar.js +1 -1
- package/dist/components/ItemTable/ItemTableDragPreview.js +1 -1
- package/dist/components/ItemTable/ItemTableFooter.js +1 -1
- package/dist/components/ItemTable/ItemTableToolbar.js +1 -1
- package/dist/components/ItemTable/item-table-sections.js +1 -1
- package/dist/components/ItemTable/use-item-table-column-widths.js +1 -1
- package/dist/components/ItemTable/use-item-table-drag-drop.js +1 -1
- package/dist/components/ItemTable/use-item-table-pagination.js +1 -1
- package/dist/components/ItemTable/use-item-table-selection.js +1 -1
- package/dist/components/ItemTable/use-item-table-sort.js +1 -1
- package/dist/components/ItemTable/use-item-table-tree-model.js +1 -1
- package/dist/components/Label/Label.js +1 -1
- package/dist/components/Layout/GridLayout.js +1 -1
- package/dist/components/Layout/Layout.js +1 -1
- package/dist/components/Layout/LayoutBlock.js +1 -1
- package/dist/components/Layout/LayoutCenter.js +1 -1
- package/dist/components/Layout/LayoutContainer.js +1 -1
- package/dist/components/Layout/LayoutContent.js +1 -1
- package/dist/components/Layout/LayoutContext.js +1 -1
- package/dist/components/Layout/LayoutFlex.js +1 -1
- package/dist/components/Layout/LayoutFooter.js +1 -1
- package/dist/components/Layout/LayoutGrid.js +1 -1
- package/dist/components/Layout/LayoutHeader.js +1 -1
- package/dist/components/Layout/LayoutPane.js +1 -1
- package/dist/components/Layout/LayoutPanel.js +1 -1
- package/dist/components/Layout/LayoutPanelHeader.js +1 -1
- package/dist/components/Layout/LayoutPanelTransition.js +1 -1
- package/dist/components/Layout/LayoutResizeHandle.js +1 -1
- package/dist/components/Layout/LayoutToolbar.js +1 -1
- package/dist/components/Layout/index.js +1 -1
- package/dist/components/Layout/use-tiny-scrollbar.js +1 -1
- package/dist/components/Layout/utils.js +1 -1
- package/dist/components/Link/Link.js +1 -1
- package/dist/components/ListBox/DraggableListBox.js +1 -1
- package/dist/components/ListBox/ListBox.js +6 -1
- package/dist/components/ListBox/ListBox.js.map +1 -1
- package/dist/components/ListBox/empty-row.js +1 -1
- package/dist/components/ListBox/option-id.js +1 -1
- package/dist/components/ListBox/use-disabled-focus-reset.js +1 -1
- package/dist/components/ListBoxPopover/EmptyLabelStatus.js +1 -1
- package/dist/components/ListBoxPopover/ListBoxPopover.js +1 -1
- package/dist/components/ListBoxPopover/list-navigation.js +1 -1
- package/dist/components/ListBoxPopover/use-composite-focus.js +1 -1
- package/dist/components/ListBoxPopover/use-delayed-loading.js +1 -1
- package/dist/components/LoadingAnimation/LoadingAnimation.js +1 -1
- package/dist/components/Menu/Menu.d.ts +13 -0
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/Menu.js.map +1 -1
- package/dist/components/Menu/MenuCollectionItem.js +1 -1
- package/dist/components/Menu/MenuContext.js +1 -1
- package/dist/components/Menu/MenuItem.js +1 -1
- package/dist/components/Menu/MenuSection.js +1 -1
- package/dist/components/Menu/MenuTrigger.js +1 -1
- package/dist/components/Menu/SubMenuTrigger.js +1 -1
- package/dist/components/Menu/SubmenuTriggerContext.js +1 -1
- package/dist/components/Menu/styled.js +5 -4
- package/dist/components/Menu/styled.js.map +1 -1
- package/dist/components/Menu/touch-context-menu.js +1 -1
- package/dist/components/Menu/use-anchored-menu.js +1 -1
- package/dist/components/Menu/use-context-menu.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/ModalContainmentProvider.js +1 -1
- package/dist/components/Modal/OpenTransitionContext.js +1 -1
- package/dist/components/Modal/Overlay.js +1 -1
- package/dist/components/Modal/Popover.js +1 -1
- package/dist/components/Modal/Tray.js +1 -1
- package/dist/components/Modal/Underlay.js +1 -1
- package/dist/components/NavTabs/NavTabs.js +1 -1
- package/dist/components/NoDataIcon/NoDataIcon.js +1 -1
- package/dist/components/Notifications/Notification.js +1 -1
- package/dist/components/Notifications/NotificationAction.js +1 -1
- package/dist/components/Notifications/NotificationCard.js +1 -1
- package/dist/components/Notifications/NotificationContext.js +1 -1
- package/dist/components/Notifications/NotificationItem.js +1 -1
- package/dist/components/Notifications/OverlayContainer.js +1 -1
- package/dist/components/Notifications/OverlayProvider.js +1 -1
- package/dist/components/Notifications/PersistentNotificationsList.js +1 -1
- package/dist/components/Notifications/dismissed-storage.js +1 -1
- package/dist/components/Notifications/format-relative-time.js +1 -1
- package/dist/components/Notifications/index.js +1 -1
- package/dist/components/Notifications/use-live-region.js +1 -1
- package/dist/components/Notifications/use-notification-state.js +1 -1
- package/dist/components/Notifications/use-notifications.js +1 -1
- package/dist/components/Notifications/use-overlay-timers.js +1 -1
- package/dist/components/Notifications/use-persistent-notifications.js +1 -1
- package/dist/components/Notifications/use-persistent-state.js +1 -1
- package/dist/components/Notifications/use-toast-state.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +1 -1
- package/dist/components/NumberInput/StepButton.js +1 -1
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Pagination/use-pagination.js +1 -1
- package/dist/components/Panel/Panel.js +1 -1
- package/dist/components/Paragraph/Paragraph.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.js +1 -1
- package/dist/components/Picker/Picker.js +1 -1
- package/dist/components/Placeholder/Placeholder.js +1 -1
- package/dist/components/Portal/Portal.js +1 -1
- package/dist/components/Portal/PortalProvider.js +1 -1
- package/dist/components/Portal/use-portal.js +1 -1
- package/dist/components/Prefix/Prefix.js +1 -1
- package/dist/components/PrismCode/PrismCode.js +1 -1
- package/dist/components/PrismCode/prism-setup.js +1 -1
- package/dist/components/PrismDiffCode/PrismDiffCode.js +1 -1
- package/dist/components/RadioGroup/Radio.d.ts +1 -3
- package/dist/components/RadioGroup/Radio.js +2 -4
- package/dist/components/RadioGroup/Radio.js.map +1 -1
- package/dist/components/RadioGroup/RadioContext.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/RadioGroup/joined-styles.js +1 -1
- package/dist/components/RenderCache/RenderCache.js +1 -1
- package/dist/components/ResizablePanel/ResizablePanel.js +1 -1
- package/dist/components/Result/Result.js +1 -1
- package/dist/components/Root/Root.js +1 -1
- package/dist/components/SearchComboBox/SearchComboBox.js +1 -1
- package/dist/components/SearchInput/SearchInput.js +1 -1
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Skeleton/Skeleton.js +1 -1
- package/dist/components/Slider/Gradation.js +1 -1
- package/dist/components/Slider/HueSlider.js +1 -1
- package/dist/components/Slider/RangeSlider.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Slider/SliderBase.js +1 -1
- package/dist/components/Slider/SliderThumb.js +1 -1
- package/dist/components/Slider/SliderTrack.js +1 -1
- package/dist/components/Slider/elements.js +1 -1
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/Space/Space.js +1 -1
- package/dist/components/Spin/Cube.js +1 -1
- package/dist/components/Spin/InternalSpinner.js +1 -1
- package/dist/components/Spin/Spin.js +1 -1
- package/dist/components/Spin/SpinsContainer.js +1 -1
- package/dist/components/StatsCard/StatsCard.js +1 -1
- package/dist/components/Suffix/Suffix.js +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/TableBase/ColumnResizer.js +1 -1
- package/dist/components/TableBase/RowCollection.js +1 -1
- package/dist/components/TableBase/TableHeaderCell.js +1 -1
- package/dist/components/TableBase/TableRow.js +1 -1
- package/dist/components/TableBase/TableRowLink.js +1 -1
- package/dist/components/TableBase/TableView.js +1 -1
- package/dist/components/TableBase/TreeGridTable.js +1 -1
- package/dist/components/TableBase/column-header.js +3 -3
- package/dist/components/TableBase/column-header.js.map +1 -1
- package/dist/components/TableBase/column-menu.js +1 -1
- package/dist/components/TableBase/column-styles.js +1 -1
- package/dist/components/TableBase/column-tint.js +1 -1
- package/dist/components/TableBase/row-menu.js +1 -1
- package/dist/components/TableBase/styled.js +1 -1
- package/dist/components/TableBase/table-body-sections.js +1 -1
- package/dist/components/TableBase/table-tree.js +1 -1
- package/dist/components/TableBase/types.js +1 -1
- package/dist/components/TableBase/use-cell-selection.js +0 -0
- package/dist/components/TableBase/use-column-menu.js +1 -1
- package/dist/components/TableBase/use-column-order.js +1 -1
- package/dist/components/TableBase/use-column-window.js +1 -1
- package/dist/components/TableBase/use-container-width.js +1 -1
- package/dist/components/TableBase/use-row-move-animation.js +1 -1
- package/dist/components/TableBase/use-scrollability.js +1 -1
- package/dist/components/TableBase/use-table-columns.js +1 -1
- package/dist/components/TableBase/use-table-search.js +1 -1
- package/dist/components/TableBase/use-table-selection.js +1 -1
- package/dist/components/TableBase/use-table-sort.js +1 -1
- package/dist/components/TableBase/use-table-sorts.js +1 -1
- package/dist/components/TableBase/use-table-storage.js +1 -1
- package/dist/components/TableBase/use-table-tooltip-refresh.js +1 -1
- package/dist/components/TableBase/use-table-tree-state.js +1 -1
- package/dist/components/Tabs/BoardDragActiveProvider.js +1 -1
- package/dist/components/Tabs/DraggableTabList.js +1 -1
- package/dist/components/Tabs/TabButton.js +2 -2
- package/dist/components/Tabs/TabButton.js.map +1 -1
- package/dist/components/Tabs/TabDropIndicator.js +1 -1
- package/dist/components/Tabs/TabPanel.js +1 -1
- package/dist/components/Tabs/TabPicker.js +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/TabsAction.js +1 -1
- package/dist/components/Tabs/TabsContext.js +1 -1
- package/dist/components/Tabs/popover-placement.js +1 -1
- package/dist/components/Tabs/scroll-tab-into-strip.js +1 -1
- package/dist/components/Tabs/segmented-styles.js +1 -1
- package/dist/components/Tabs/styled.js +1 -1
- package/dist/components/Tabs/types.d.ts +1 -1
- package/dist/components/Tabs/types.js +1 -1
- package/dist/components/Tabs/types.js.map +1 -1
- package/dist/components/Tabs/use-tab-editing.js +1 -1
- package/dist/components/Tabs/use-tab-indicator.js +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TagInput/TagInput.js +1 -1
- package/dist/components/TagInput/TagList.js +1 -1
- package/dist/components/TagInput/use-active-option.js +1 -1
- package/dist/components/TagInput/use-suffix-space.js +1 -1
- package/dist/components/TagInput/use-tag-error.js +1 -1
- package/dist/components/Text/Text.js +1 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/TextInput/TextInput.js +1 -1
- package/dist/components/TextInput/TextInputBase.js +1 -1
- package/dist/components/TextInput/displayed-validation.js +1 -1
- package/dist/components/TextInput/identifier-text-services.js +1 -1
- package/dist/components/TextInput/password-manager-ignore.js +1 -1
- package/dist/components/TextInput/use-auto-size-text-area.js +1 -1
- package/dist/components/TextInputMapper/TextInputMapper.js +1 -1
- package/dist/components/TextItem/TextItem.js +1 -1
- package/dist/components/Title/Title.js +1 -1
- package/dist/components/Toast/AnnouncedToastItem.js +1 -1
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Toast/ToastItem.js +1 -1
- package/dist/components/Toast/use-progress-toast.js +1 -1
- package/dist/components/Toast/use-toast.js +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/components/ToggleGroup/ToggleGroupContext.js +1 -1
- package/dist/components/ToggleGroup/ToggleGroupItem.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Tooltip/TooltipContext.js +1 -1
- package/dist/components/Tooltip/TooltipProvider.js +1 -1
- package/dist/components/Tooltip/TooltipTrigger.js +1 -1
- package/dist/components/Tooltip/last-press.js +1 -1
- package/dist/components/Tooltip/split-trigger-props.js +1 -1
- package/dist/components/Tree/Tree.js +1 -1
- package/dist/components/Tree/TreeNode.js +1 -1
- package/dist/components/Tree/checked-keys.js +1 -1
- package/dist/components/Tree/row-id.js +1 -1
- package/dist/components/Tree/styled.js +1 -1
- package/dist/components/Tree/tree-index.js +1 -1
- package/dist/components/Tree/types.d.ts +2 -3
- package/dist/components/Tree/use-checkbox-tree.js +1 -1
- package/dist/components/Tree/use-load-data.js +1 -1
- package/dist/components/TriggerActions/TriggerActions.js +1 -1
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/ValidationIndicator/InvalidIcon.js +1 -1
- package/dist/components/ValidationIndicator/ValidIcon.js +1 -1
- package/dist/components/ValidationIndicator/ValidationIndicator.js +1 -1
- package/dist/eslint-plugin/defaults.generated.js +1 -55
- package/dist/eslint-plugin/defaults.generated.js.map +1 -1
- package/dist/eslint-plugin/index.js +1 -1
- package/dist/eslint-plugin/rules/no-redundant-default-prop.js +1 -1
- package/dist/harness/colors-deps.js +1 -1
- package/dist/hooks/use-action.js +1 -1
- package/dist/hooks/use-auto-tooltip.js +1 -1
- package/dist/hooks/use-buffered-value.js +1 -1
- package/dist/hooks/use-combined-refs.js +1 -1
- package/dist/hooks/use-controlled-focus-visible.js +1 -1
- package/dist/hooks/use-debounced-value.js +1 -1
- package/dist/hooks/use-deprecation-warning.js +1 -1
- package/dist/hooks/use-event.js +1 -1
- package/dist/hooks/use-id.js +1 -1
- package/dist/hooks/use-is-darwin.js +1 -1
- package/dist/hooks/use-is-first-render.js +1 -1
- package/dist/hooks/use-key-symbols.js +1 -1
- package/dist/hooks/use-layout-effect.d.ts +1 -1
- package/dist/hooks/use-layout-effect.js +1 -1
- package/dist/hooks/use-local-storage.js +1 -1
- package/dist/hooks/use-merge-styles.js +1 -1
- package/dist/hooks/use-open-key.js +1 -1
- package/dist/hooks/use-overlay-escape-guard.js +1 -1
- package/dist/hooks/use-overlay-position.js +1 -1
- package/dist/hooks/use-popover-sync.js +1 -1
- package/dist/hooks/use-qa-props.js +1 -1
- package/dist/hooks/use-scheme.js +1 -1
- package/dist/hooks/use-sync-ref.js +1 -1
- package/dist/hooks/use-timer/Timer.js +1 -1
- package/dist/hooks/use-timer/use-timer.js +1 -1
- package/dist/hooks/use-validation-props.js +1 -1
- package/dist/hooks/use-viewport-size.js +1 -1
- package/dist/hooks/use-warn.js +1 -1
- package/dist/i18n/I18nProvider.js +1 -1
- package/dist/i18n/add-uikit-locale.js +1 -1
- package/dist/i18n/create-formatter.js +1 -1
- package/dist/i18n/instance.js +1 -1
- package/dist/i18n/locales/de-DE/uikit.js +1 -1
- package/dist/i18n/locales/en-US/uikit.js +1 -1
- package/dist/i18n/locales/es-ES/uikit.js +1 -1
- package/dist/i18n/locales/es-MX/uikit.js +1 -1
- package/dist/i18n/locales/fr-FR/uikit.js +1 -1
- package/dist/i18n/locales/it-IT/uikit.js +1 -1
- package/dist/i18n/locales/ja-JP/uikit.js +1 -1
- package/dist/i18n/locales/nb-NO/uikit.js +1 -1
- package/dist/i18n/locales/pt-BR/uikit.js +1 -1
- package/dist/i18n/locales/pt-PT/uikit.js +1 -1
- package/dist/i18n/locales/sv-SE/uikit.js +1 -1
- package/dist/i18n/locales/vi-VN/uikit.js +1 -1
- package/dist/i18n/locales.js +1 -1
- package/dist/i18n/namespace.js +1 -1
- package/dist/i18n/use-formatter.js +1 -1
- package/dist/i18n/use-i18n.js +1 -1
- package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
- package/dist/icons/AdjustmentsIcon.js +1 -1
- package/dist/icons/AiIcon.js +1 -1
- package/dist/icons/AreaChartIcon.js +1 -1
- package/dist/icons/ArrowNarrowDownIcon.js +1 -1
- package/dist/icons/ArrowNarrowUpIcon.js +1 -1
- package/dist/icons/BackwardIcon.js +1 -1
- package/dist/icons/BarChartIcon.js +1 -1
- package/dist/icons/BellFilledIcon.js +1 -1
- package/dist/icons/BellIcon.js +1 -1
- package/dist/icons/BooleanIcon.js +1 -1
- package/dist/icons/CalendarEditIcon.js +1 -1
- package/dist/icons/CalendarIcon.js +1 -1
- package/dist/icons/CaretDownIcon.js +1 -1
- package/dist/icons/CaretUpIcon.js +1 -1
- package/dist/icons/ChartAreaStackedIcon.js +1 -1
- package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarGroupedIcon.js +1 -1
- package/dist/icons/ChartBarHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarLineIcon.js +1 -1
- package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBoxPlot2Icon.js +1 -1
- package/dist/icons/ChartBoxPlotIcon.js +1 -1
- package/dist/icons/ChartBubbleIcon.js +1 -1
- package/dist/icons/ChartDonut2Icon.js +1 -1
- package/dist/icons/ChartFunnelIcon.js +1 -1
- package/dist/icons/ChartHeatmapIcon.js +1 -1
- package/dist/icons/ChartKPIIcon.js +1 -1
- package/dist/icons/ChartPie2Icon.js +1 -1
- package/dist/icons/ChartScatterIcon.js +1 -1
- package/dist/icons/CheckCircleFilledIcon.js +1 -1
- package/dist/icons/CheckCircleIcon.js +1 -1
- package/dist/icons/CheckIcon.js +1 -1
- package/dist/icons/CircleFilledIcon.js +1 -1
- package/dist/icons/ClearIcon.js +1 -1
- package/dist/icons/CloseCircleFilledIcon.js +1 -1
- package/dist/icons/CloseCircleIcon.js +1 -1
- package/dist/icons/CloseIcon.js +1 -1
- package/dist/icons/CodeIcon.js +1 -1
- package/dist/icons/ColumnTotalIcon.js +1 -1
- package/dist/icons/CopyIcon.js +1 -1
- package/dist/icons/CountIcon.js +1 -1
- package/dist/icons/CubeIcon.js +1 -1
- package/dist/icons/CubePauseIcon.js +1 -1
- package/dist/icons/CubePlayIcon.js +1 -1
- package/dist/icons/CurrencyDollarIcon.js +1 -1
- package/dist/icons/DangerIcon.js +1 -1
- package/dist/icons/DashboardIcon.js +1 -1
- package/dist/icons/DatabaseIcon.js +1 -1
- package/dist/icons/DecimalDecreaseIcon.js +1 -1
- package/dist/icons/DecimalIncreaseIcon.js +1 -1
- package/dist/icons/DirectionIcon.js +1 -1
- package/dist/icons/DonutIcon.js +1 -1
- package/dist/icons/DownIcon.js +1 -1
- package/dist/icons/EditIcon.js +1 -1
- package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
- package/dist/icons/ExclamationCircleIcon.js +1 -1
- package/dist/icons/ExclamationIcon.js +1 -1
- package/dist/icons/EyeIcon.js +1 -1
- package/dist/icons/EyeInvisibleIcon.js +1 -1
- package/dist/icons/FilterIcon.js +1 -1
- package/dist/icons/FolderFilledIcon.js +1 -1
- package/dist/icons/FolderIcon.js +1 -1
- package/dist/icons/FolderOpenFilledIcon.js +1 -1
- package/dist/icons/FolderOpenIcon.js +1 -1
- package/dist/icons/ForwardIcon.js +1 -1
- package/dist/icons/GripVerticalIcon.js +1 -1
- package/dist/icons/HierarchyIcon.js +1 -1
- package/dist/icons/HierarchyOpenIcon.js +1 -1
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/InfoCircleIcon.js +1 -1
- package/dist/icons/InfoIcon.js +1 -1
- package/dist/icons/KeyIcon.js +1 -1
- package/dist/icons/LeftIcon.js +1 -1
- package/dist/icons/LineChartIcon.js +1 -1
- package/dist/icons/LoadingIcon.js +1 -1
- package/dist/icons/LockFilledIcon.js +1 -1
- package/dist/icons/LockIcon.js +1 -1
- package/dist/icons/MoreIcon.js +1 -1
- package/dist/icons/NotAllowedIcon.js +1 -1
- package/dist/icons/Number123Icon.js +1 -1
- package/dist/icons/NumberIcon.js +1 -1
- package/dist/icons/PauseCircleFilledIcon.js +1 -1
- package/dist/icons/PauseCircleIcon.js +1 -1
- package/dist/icons/PauseIcon.js +1 -1
- package/dist/icons/PercentageIcon.js +1 -1
- package/dist/icons/PieChartIcon.js +1 -1
- package/dist/icons/PipetteIcon.js +1 -1
- package/dist/icons/PlayCircleIcon.js +1 -1
- package/dist/icons/PlayIcon.js +1 -1
- package/dist/icons/PlusIcon.js +1 -1
- package/dist/icons/ProgressBarIcon.js +1 -1
- package/dist/icons/ReloadIcon.js +1 -1
- package/dist/icons/ReportIcon.js +1 -1
- package/dist/icons/ReturnIcon.js +1 -1
- package/dist/icons/RightIcon.js +1 -1
- package/dist/icons/RowTotalsIcon.js +1 -1
- package/dist/icons/SchemeIcon.js +1 -1
- package/dist/icons/SearchIcon.js +1 -1
- package/dist/icons/SemanticQueryIcon.js +1 -1
- package/dist/icons/SettingsIcon.js +1 -1
- package/dist/icons/ShieldFilledIcon.js +1 -1
- package/dist/icons/ShieldIcon.js +1 -1
- package/dist/icons/SlashIcon.js +1 -1
- package/dist/icons/SparklesIcon.js +1 -1
- package/dist/icons/SqlIcon.js +1 -1
- package/dist/icons/StatsIcon.js +1 -1
- package/dist/icons/StopIcon.js +1 -1
- package/dist/icons/StringIcon.js +1 -1
- package/dist/icons/SubtotalsIcon.js +1 -1
- package/dist/icons/SwitchIcon.js +1 -1
- package/dist/icons/TableIcon.js +1 -1
- package/dist/icons/ThumbsDownIcon.js +1 -1
- package/dist/icons/ThumbsUpIcon.js +1 -1
- package/dist/icons/ThunderboltCrossedIcon.js +1 -1
- package/dist/icons/ThunderboltFilledIcon.js +1 -1
- package/dist/icons/ThunderboltIcon.js +1 -1
- package/dist/icons/TimeIcon.js +1 -1
- package/dist/icons/TrashIcon.js +1 -1
- package/dist/icons/UnlockIcon.js +1 -1
- package/dist/icons/UpIcon.js +1 -1
- package/dist/icons/UserGroupIcon.js +1 -1
- package/dist/icons/UserIcon.js +1 -1
- package/dist/icons/UserLockIcon.js +1 -1
- package/dist/icons/ViewIcon.js +1 -1
- package/dist/icons/WarningFilledIcon.js +1 -1
- package/dist/icons/WarningIcon.js +1 -1
- package/dist/icons/wrap-icon.js +1 -1
- package/dist/index.js +1 -1
- package/dist/probe/canonicalize.js +1 -1
- package/dist/probe/css.js +1 -1
- package/dist/probe/index.js +1 -1
- package/dist/providers/ColorPopoverContext.js +1 -1
- package/dist/providers/EventBusProvider.js +1 -1
- package/dist/providers/ItemActionContext.js +1 -1
- package/dist/providers/Provider.js +1 -1
- package/dist/providers/SlotProvider.js +1 -1
- package/dist/providers/TrackingProvider.js +1 -1
- package/dist/providers/navigation-adapter.default.js +1 -1
- package/dist/providers/navigation-url.js +1 -1
- package/dist/providers/use-navigation.js +1 -1
- package/dist/themes/item-themes.js +1 -1
- package/dist/themes/themes.js +1 -1
- package/dist/tokens/all-tokens.js +1 -1
- package/dist/tokens/base.js +1 -1
- package/dist/tokens/color-seed.js +1 -1
- package/dist/tokens/color-theme.js +1 -1
- package/dist/tokens/colors.js +1 -1
- package/dist/tokens/layout.js +1 -1
- package/dist/tokens/lazy-styles.js +1 -1
- package/dist/tokens/legacy-color.js +1 -1
- package/dist/tokens/palette-config.js +1 -1
- package/dist/tokens/palette.js +1 -1
- package/dist/tokens/resolve.js +1 -1
- package/dist/tokens/shadows.js +1 -1
- package/dist/tokens/sizes.js +1 -1
- package/dist/tokens/spacing.js +1 -1
- package/dist/tokens/typography.js +1 -1
- package/dist/utils/ResizeSensor.js +1 -1
- package/dist/utils/actions-run.js +1 -1
- package/dist/utils/chain.js +1 -1
- package/dist/utils/color/channels.js +1 -1
- package/dist/utils/color/color.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/component-base-props.js +1 -1
- package/dist/utils/disabled-behavior.js +1 -1
- package/dist/utils/disabled-props.js +1 -1
- package/dist/utils/dotize.js +1 -1
- package/dist/utils/field-chrome.js +1 -1
- package/dist/utils/field-layout.js +1 -1
- package/dist/utils/forward-ref-with-generics.js +1 -1
- package/dist/utils/highlight-text.js +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/interactions.js +1 -1
- package/dist/utils/is-dev-env.js +1 -1
- package/dist/utils/is-text-only.js +1 -1
- package/dist/utils/layout-scale.js +1 -1
- package/dist/utils/legacy-tooltip.js +1 -1
- package/dist/utils/map-props.js +1 -1
- package/dist/utils/merge-props.js +1 -1
- package/dist/utils/modules.js +1 -1
- package/dist/utils/nullable-value.js +1 -1
- package/dist/utils/option-origin-press.js +1 -1
- package/dist/utils/overlay-key-propagation.js +1 -1
- package/dist/utils/pick-base-customization-props.js +1 -1
- package/dist/utils/popover-width.js +1 -1
- package/dist/utils/programmatic-focus.js +1 -1
- package/dist/utils/promise.js +1 -1
- package/dist/utils/raf.js +1 -1
- package/dist/utils/random.js +1 -1
- package/dist/utils/range.js +1 -1
- package/dist/utils/resolve-icon.js +1 -1
- package/dist/utils/resolve-validation-props.js +1 -1
- package/dist/utils/search-text-services.js +1 -1
- package/dist/utils/selection.js +1 -1
- package/dist/utils/shared-store.js +1 -1
- package/dist/utils/styles.js +1 -1
- package/dist/utils/tree.js +1 -1
- package/dist/utils/virtual-width.js +1 -1
- package/dist/utils/warnings.js +1 -1
- package/dist/utils/wrap-node-if-plain.js +1 -1
- package/dist/utils/wrap-with-field.js +1 -1
- package/dist/version.js +2 -2
- package/docs/Usage.md +1 -1
- package/docs/components/Badge.md +1 -3
- package/docs/components/Banner.md +1 -3
- package/docs/components/CollectionItem.md +1 -3
- package/docs/components/FilterListBox.md +19 -2
- package/docs/components/FilterPicker.md +2 -2
- package/docs/components/Item.md +15 -36
- package/docs/components/ItemButton.md +1 -3
- package/docs/components/ItemCard.md +1 -3
- package/docs/components/ListBox.md +19 -2
- package/docs/components/Menu.md +33 -8
- package/docs/components/Tag.md +1 -3
- package/package.json +1 -1
- package/tasty.config.ts +27 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-5adbf30 | Cube Dev Team */
|
|
2
2
|
import { mergeProps } from "../../utils/merge-props.js";
|
|
3
3
|
import { useAutoTooltip } from "../../hooks/use-auto-tooltip.js";
|
|
4
4
|
import { highlightText } from "../../utils/highlight-text.js";
|
|
@@ -73,8 +73,6 @@ const ItemElement = tasty({
|
|
|
73
73
|
"@interacted": "active | :hover | :focus | :focus-within | :has([data-pressed])",
|
|
74
74
|
"@actions-collapsed": "auto-hide-actions & !preserve-actions-space & !inside-wrapper & !@interacted",
|
|
75
75
|
"@actions-below": "has-actions-content & actions-below",
|
|
76
|
-
"@actions-in-suffix": "actions-replace-suffix & @interacted",
|
|
77
|
-
"@suffix-on-label-line": "suffix-placement=after-label & description=inline & has-label",
|
|
78
76
|
display: "inline-grid",
|
|
79
77
|
flow: "column dense",
|
|
80
78
|
gap: 0,
|
|
@@ -82,19 +80,10 @@ const ItemElement = tasty({
|
|
|
82
80
|
placeItems: "stretch",
|
|
83
81
|
placeContent: "stretch",
|
|
84
82
|
gridTemplate: {
|
|
85
|
-
"": "\"icon prefix label suffix rightIcon actions pinned\" auto \"icon prefix label suffix rightIcon actions pinned\" auto / max-content max-content
|
|
86
|
-
"description=inline": "\"icon prefix description suffix rightIcon actions pinned\" auto / max-content max-content
|
|
87
|
-
"description=inline & has-label": "\"icon prefix label suffix rightIcon actions pinned\" auto \"icon prefix description suffix rightIcon actions pinned\" auto / max-content max-content
|
|
88
|
-
"
|
|
89
|
-
"description=block": "\"icon prefix label suffix rightIcon actions pinned\" auto \"description description description description description description description\" auto / max-content max-content $label-column $suffix-column max-content max-content max-content"
|
|
90
|
-
},
|
|
91
|
-
"$label-column": {
|
|
92
|
-
"": "1sf",
|
|
93
|
-
"suffix-placement=after-label": "minmax(0, max-content)"
|
|
94
|
-
},
|
|
95
|
-
"$suffix-column": {
|
|
96
|
-
"": "max-content",
|
|
97
|
-
"suffix-placement=after-label": "1fr"
|
|
83
|
+
"": "\"icon prefix label suffix rightIcon actions pinned\" auto \"icon prefix label suffix rightIcon actions pinned\" auto / max-content max-content 1sf max-content max-content max-content max-content",
|
|
84
|
+
"description=inline": "\"icon prefix description suffix rightIcon actions pinned\" auto / max-content max-content 1sf max-content max-content max-content max-content",
|
|
85
|
+
"description=inline & has-label": "\"icon prefix label suffix rightIcon actions pinned\" auto \"icon prefix description suffix rightIcon actions pinned\" auto / max-content max-content 1sf max-content max-content max-content max-content",
|
|
86
|
+
"description=block": "\"icon prefix label suffix rightIcon actions pinned\" auto \"description description description description description description description\" auto / max-content max-content 1sf max-content max-content max-content max-content"
|
|
98
87
|
},
|
|
99
88
|
flexShrink: {
|
|
100
89
|
"": "initial",
|
|
@@ -176,10 +165,7 @@ const ItemElement = tasty({
|
|
|
176
165
|
"$inline-compensation": ".5x",
|
|
177
166
|
"$min-inline-padding": "(1x - 1bw)",
|
|
178
167
|
"$prefix-gap": 0,
|
|
179
|
-
"$suffix-gap":
|
|
180
|
-
"": 0,
|
|
181
|
-
"suffix-placement=after-label": "1x"
|
|
182
|
-
},
|
|
168
|
+
"$suffix-gap": 0,
|
|
183
169
|
"$label-padding-left": {
|
|
184
170
|
"": "$inline-padding",
|
|
185
171
|
"has-start-content": "0"
|
|
@@ -200,16 +186,11 @@ const ItemElement = tasty({
|
|
|
200
186
|
"description=block": "($inline-padding - $inline-compensation + 1bw)",
|
|
201
187
|
"description=block & !has-start-content": "$inline-padding"
|
|
202
188
|
},
|
|
203
|
-
"$suffix-padding-right": {
|
|
204
|
-
"": "$inline-padding",
|
|
205
|
-
"has-right-icon | (has-actions & inside-wrapper & (actions-shown | preserve-actions-space))": 0
|
|
206
|
-
},
|
|
207
189
|
"$description-padding-right": {
|
|
208
190
|
"": "$inline-padding",
|
|
209
191
|
"has-end-content": 0,
|
|
210
192
|
"description=block": "($inline-padding - $inline-compensation + 1bw)",
|
|
211
|
-
"description=block & !has-end-content": "$inline-padding"
|
|
212
|
-
"@suffix-on-label-line": "$suffix-padding-right"
|
|
193
|
+
"description=block & !has-end-content": "$inline-padding"
|
|
213
194
|
},
|
|
214
195
|
"$description-padding-bottom": {
|
|
215
196
|
"": 0,
|
|
@@ -282,8 +263,7 @@ const ItemElement = tasty({
|
|
|
282
263
|
"$description-padding-right": {
|
|
283
264
|
"": void 0,
|
|
284
265
|
"@actions-below & !has-suffix & !has-right-icon & !has-pinned-actions": "$inline-padding"
|
|
285
|
-
}
|
|
286
|
-
transition: "padding"
|
|
266
|
+
}
|
|
287
267
|
},
|
|
288
268
|
Prefix: {
|
|
289
269
|
$: ">",
|
|
@@ -309,10 +289,7 @@ const ItemElement = tasty({
|
|
|
309
289
|
$: ">",
|
|
310
290
|
display: "grid",
|
|
311
291
|
flow: "column",
|
|
312
|
-
placeItems:
|
|
313
|
-
"": "center",
|
|
314
|
-
"@suffix-on-label-line": "end center"
|
|
315
|
-
},
|
|
292
|
+
placeItems: "center",
|
|
316
293
|
placeContent: "stretch",
|
|
317
294
|
gridArea: "suffix",
|
|
318
295
|
zIndex: {
|
|
@@ -321,23 +298,13 @@ const ItemElement = tasty({
|
|
|
321
298
|
},
|
|
322
299
|
pointerEvents: {
|
|
323
300
|
"": void 0,
|
|
324
|
-
"@native-row": "none"
|
|
325
|
-
"@actions-in-suffix": "none"
|
|
326
|
-
},
|
|
327
|
-
padding: "0 $suffix-padding-right 0 $suffix-gap",
|
|
328
|
-
placeSelf: {
|
|
329
|
-
"": void 0,
|
|
330
|
-
"suffix-placement=after-label": "stretch start"
|
|
331
|
-
},
|
|
332
|
-
width: {
|
|
333
|
-
"": void 0,
|
|
334
|
-
"suffix-placement=after-label": "min max-content"
|
|
301
|
+
"@native-row": "none"
|
|
335
302
|
},
|
|
336
|
-
|
|
337
|
-
"":
|
|
338
|
-
"
|
|
303
|
+
padding: {
|
|
304
|
+
"": "0 $inline-padding 0 $suffix-gap",
|
|
305
|
+
"has-right-icon | (has-actions & inside-wrapper & (actions-shown | preserve-actions-space))": "$suffix-gap left"
|
|
339
306
|
},
|
|
340
|
-
transition: "padding
|
|
307
|
+
transition: "padding"
|
|
341
308
|
},
|
|
342
309
|
Actions: mergeStyles(ACTIONS_ZONE_STYLES, {
|
|
343
310
|
zIndex: {
|
|
@@ -350,14 +317,9 @@ const ItemElement = tasty({
|
|
|
350
317
|
},
|
|
351
318
|
gridArea: {
|
|
352
319
|
_: "actions",
|
|
353
|
-
"actions-replace-suffix": "suffix",
|
|
354
320
|
"@actions-below": "3 / 3 / auto / -1",
|
|
355
321
|
"@actions-below & description=block": "3 / 1 / auto / -1"
|
|
356
322
|
},
|
|
357
|
-
placeSelf: {
|
|
358
|
-
"": "stretch",
|
|
359
|
-
"actions-replace-suffix": "stretch end"
|
|
360
|
-
},
|
|
361
323
|
placeContent: {
|
|
362
324
|
_: "end",
|
|
363
325
|
"@actions-below": "center start"
|
|
@@ -368,8 +330,7 @@ const ItemElement = tasty({
|
|
|
368
330
|
},
|
|
369
331
|
height: {
|
|
370
332
|
_: "min ($size - 2bw)",
|
|
371
|
-
"@actions-below": "min 0"
|
|
372
|
-
"actions-replace-suffix & @suffix-on-label-line": "auto"
|
|
333
|
+
"@actions-below": "min 0"
|
|
373
334
|
},
|
|
374
335
|
padding: {
|
|
375
336
|
_: "0 $side-padding",
|
|
@@ -415,7 +376,6 @@ const ItemElement = tasty({
|
|
|
415
376
|
_: "0 $side-padding",
|
|
416
377
|
"has-actions-content": "$side-padding right",
|
|
417
378
|
"@actions-collapsed": "0 $side-padding",
|
|
418
|
-
"actions-replace-suffix": "0 $side-padding",
|
|
419
379
|
"@actions-below": "$block-padding top, $side-padding left right"
|
|
420
380
|
}
|
|
421
381
|
})
|
|
@@ -668,8 +628,8 @@ const DISABLED_HOTKEYS_STYLES = {
|
|
|
668
628
|
opacity: .5
|
|
669
629
|
};
|
|
670
630
|
const Item = (props, ref) => {
|
|
671
|
-
const $ = c(
|
|
672
|
-
const { children, size: t0, type: t1, theme: t2, mods, icon: iconProp, rightIcon: rightIconProp, prefix, suffix, description, descriptionPlacement, wrapDescription, labelProps, descriptionProps, keyboardShortcutProps, styles, htmlType, isSelected, hotkeys, tooltip: t3, isDisabled, disabled: nativeDisabledProp, style, loadingSlot: t4, isLoading: t5, actions, actionsPlacement: t6, actionsBelowState, pinnedActions, autoHideActions: t7,
|
|
631
|
+
const $ = c(83);
|
|
632
|
+
const { children, size: t0, type: t1, theme: t2, mods, icon: iconProp, rightIcon: rightIconProp, prefix, suffix, description, descriptionPlacement, wrapDescription, labelProps, descriptionProps, keyboardShortcutProps, styles, htmlType, isSelected, hotkeys, tooltip: t3, isDisabled, disabled: nativeDisabledProp, style, loadingSlot: t4, isLoading: t5, actions, actionsPlacement: t6, actionsBelowState, pinnedActions, autoHideActions: t7, preserveActionsSpace: t8, disableActionsFocus: t9, shape, defaultTooltipPlacement: t10, keepFocusWhenDisabled: t11, level: t12, highlight, highlightCaseSensitive: t13, highlightStyles, insideWrapper: t14, showActions: t15, skipActionsWidthTransition: t16, hiddenContent, labelRef: labelRefProp, nativeLinkProps, nativeMenuItemProps, nativeRowRef, nativeLabelReferenceId, onInlineFocus, onNativeLinkElement, onNativeElement, tokens, ...rest } = props;
|
|
673
633
|
const size = t0 === void 0 ? "medium" : t0;
|
|
674
634
|
const type = t1 === void 0 ? "item" : t1;
|
|
675
635
|
const theme = t2 === void 0 ? "default" : t2;
|
|
@@ -679,24 +639,23 @@ const Item = (props, ref) => {
|
|
|
679
639
|
const actionsPlacement = t6 === void 0 ? "end" : t6;
|
|
680
640
|
const autoHideActions = t7 === void 0 ? false : t7;
|
|
681
641
|
const preserveActionsSpace = t8 === void 0 ? false : t8;
|
|
682
|
-
const
|
|
683
|
-
const
|
|
684
|
-
const
|
|
685
|
-
const
|
|
686
|
-
const
|
|
687
|
-
const
|
|
688
|
-
const
|
|
689
|
-
const
|
|
690
|
-
const skipActionsWidthTransition = t17 === void 0 ? false : t17;
|
|
642
|
+
const disableActionsFocus = t9 === void 0 ? false : t9;
|
|
643
|
+
const defaultTooltipPlacement = t10 === void 0 ? "top" : t10;
|
|
644
|
+
const keepFocusWhenDisabled = t11 === void 0 ? false : t11;
|
|
645
|
+
const level = t12 === void 0 ? 3 : t12;
|
|
646
|
+
const highlightCaseSensitive = t13 === void 0 ? false : t13;
|
|
647
|
+
const insideWrapper = t14 === void 0 ? false : t14;
|
|
648
|
+
const showActions = t15 === void 0 ? false : t15;
|
|
649
|
+
const skipActionsWidthTransition = t16 === void 0 ? false : t16;
|
|
691
650
|
useGlobalStyles(NATIVE_ROW_CONTROL_SELECTOR, nativeMenuItemProps ? NATIVE_ROW_CONTROL_STYLES : void 0);
|
|
692
651
|
const hasLabel = !!(children || labelProps);
|
|
693
652
|
const finalDescriptionPlacement = descriptionPlacement ?? ((type === "card" || type === "header") && hasLabel ? "block" : "inline");
|
|
694
653
|
const finalShape = shape ?? (type === "card" ? "card" : "button");
|
|
695
654
|
const isDisabledProp = isDisabled ?? (nativeDisabledProp || void 0);
|
|
696
655
|
const finalIsDisabled = isDisabledProp === true || isLoading && isDisabledProp !== false;
|
|
697
|
-
let
|
|
656
|
+
let t17;
|
|
698
657
|
if ($[0] !== iconProp || $[1] !== isLoading || $[2] !== rightIconProp || $[3] !== theme || $[4] !== type) {
|
|
699
|
-
|
|
658
|
+
t17 = {
|
|
700
659
|
type,
|
|
701
660
|
theme,
|
|
702
661
|
icon: iconProp,
|
|
@@ -708,15 +667,15 @@ const Item = (props, ref) => {
|
|
|
708
667
|
$[2] = rightIconProp;
|
|
709
668
|
$[3] = theme;
|
|
710
669
|
$[4] = type;
|
|
711
|
-
$[5] =
|
|
712
|
-
} else
|
|
713
|
-
useItemPropWarnings(
|
|
670
|
+
$[5] = t17;
|
|
671
|
+
} else t17 = $[5];
|
|
672
|
+
useItemPropWarnings(t17);
|
|
714
673
|
const hasCheckmark = iconProp === "checkmark";
|
|
715
674
|
let baseMods;
|
|
716
675
|
let finalTokens;
|
|
717
676
|
let iconSlot;
|
|
718
677
|
let loadingTarget;
|
|
719
|
-
let
|
|
678
|
+
let t18;
|
|
720
679
|
if ($[6] !== finalIsDisabled || $[7] !== finalShape || $[8] !== hasCheckmark || $[9] !== iconProp || $[10] !== isLoading || $[11] !== isSelected || $[12] !== loadingSlot || $[13] !== mods || $[14] !== rightIconProp || $[15] !== size || $[16] !== theme || $[17] !== tokens || $[18] !== type) {
|
|
721
680
|
const { sizeMod, sizeToken } = resolveItemSize(size);
|
|
722
681
|
finalTokens = {
|
|
@@ -744,7 +703,7 @@ const Item = (props, ref) => {
|
|
|
744
703
|
content: /* @__PURE__ */ jsx(CheckIcon, {}),
|
|
745
704
|
key: "checkmark"
|
|
746
705
|
} : resolveIconSlot(resolvedIcon, loadingTarget === "icon");
|
|
747
|
-
|
|
706
|
+
t18 = resolveIconSlot(resolvedRightIcon, loadingTarget === "rightIcon");
|
|
748
707
|
$[6] = finalIsDisabled;
|
|
749
708
|
$[7] = finalShape;
|
|
750
709
|
$[8] = hasCheckmark;
|
|
@@ -762,34 +721,34 @@ const Item = (props, ref) => {
|
|
|
762
721
|
$[20] = finalTokens;
|
|
763
722
|
$[21] = iconSlot;
|
|
764
723
|
$[22] = loadingTarget;
|
|
765
|
-
$[23] =
|
|
724
|
+
$[23] = t18;
|
|
766
725
|
} else {
|
|
767
726
|
baseMods = $[19];
|
|
768
727
|
finalTokens = $[20];
|
|
769
728
|
iconSlot = $[21];
|
|
770
729
|
loadingTarget = $[22];
|
|
771
|
-
|
|
730
|
+
t18 = $[23];
|
|
772
731
|
}
|
|
773
|
-
const rightIconSlot =
|
|
774
|
-
let
|
|
732
|
+
const rightIconSlot = t18;
|
|
733
|
+
let t19;
|
|
775
734
|
if ($[24] !== description || $[25] !== descriptionProps) {
|
|
776
|
-
|
|
735
|
+
t19 = !!description || Object.keys(descriptionProps ?? {}).some(_temp);
|
|
777
736
|
$[24] = description;
|
|
778
737
|
$[25] = descriptionProps;
|
|
779
|
-
$[26] =
|
|
780
|
-
} else
|
|
781
|
-
const showDescription =
|
|
782
|
-
let
|
|
738
|
+
$[26] = t19;
|
|
739
|
+
} else t19 = $[26];
|
|
740
|
+
const showDescription = t19;
|
|
741
|
+
let t20;
|
|
783
742
|
if ($[27] !== loadingTarget || $[28] !== prefix) {
|
|
784
|
-
|
|
743
|
+
t20 = loadingTarget === "prefix" ? /* @__PURE__ */ jsx(LoadingIcon, {}) : prefix;
|
|
785
744
|
$[27] = loadingTarget;
|
|
786
745
|
$[28] = prefix;
|
|
787
|
-
$[29] =
|
|
788
|
-
} else
|
|
789
|
-
const finalPrefix =
|
|
790
|
-
let
|
|
746
|
+
$[29] = t20;
|
|
747
|
+
} else t20 = $[29];
|
|
748
|
+
const finalPrefix = t20;
|
|
749
|
+
let t21;
|
|
791
750
|
if ($[30] !== finalIsDisabled || $[31] !== hotkeys || $[32] !== keyboardShortcutProps || $[33] !== loadingTarget || $[34] !== suffix || $[35] !== theme || $[36] !== type) {
|
|
792
|
-
|
|
751
|
+
t21 = loadingTarget === "suffix" ? /* @__PURE__ */ jsx(LoadingIcon, {}) : suffix ?? (hotkeys ? /* @__PURE__ */ jsx(_HotKeys, {
|
|
793
752
|
...keyboardShortcutProps,
|
|
794
753
|
type: getHotkeysType(theme, type),
|
|
795
754
|
styles: finalIsDisabled ? DISABLED_HOTKEYS_STYLES : HOTKEYS_STYLES,
|
|
@@ -802,68 +761,63 @@ const Item = (props, ref) => {
|
|
|
802
761
|
$[34] = suffix;
|
|
803
762
|
$[35] = theme;
|
|
804
763
|
$[36] = type;
|
|
805
|
-
$[37] =
|
|
806
|
-
} else
|
|
807
|
-
const finalSuffix =
|
|
764
|
+
$[37] = t21;
|
|
765
|
+
} else t21 = $[37];
|
|
766
|
+
const finalSuffix = t21;
|
|
808
767
|
useHotkeyClick(hotkeys, finalIsDisabled, ref);
|
|
809
768
|
const canMoveActions = !insideWrapper && !autoHideActions;
|
|
810
769
|
const actionsBelowCondition = canMoveActions ? actionsBelowState === true ? "@mobile" : actionsBelowState || void 0 : void 0;
|
|
811
|
-
let
|
|
770
|
+
let t22;
|
|
812
771
|
if ($[38] !== actionsBelowCondition || $[39] !== styles) {
|
|
813
|
-
|
|
772
|
+
t22 = actionsBelowCondition ? {
|
|
814
773
|
"@actions-below": `has-actions-content & (actions-below | (${actionsBelowCondition}))`,
|
|
815
774
|
...styles
|
|
816
775
|
} : styles;
|
|
817
776
|
$[38] = actionsBelowCondition;
|
|
818
777
|
$[39] = styles;
|
|
819
|
-
$[40] =
|
|
820
|
-
} else
|
|
821
|
-
const finalStyles =
|
|
822
|
-
const
|
|
823
|
-
const t24 = !!(
|
|
824
|
-
const t25 = !!
|
|
825
|
-
const t26 = !!
|
|
826
|
-
const t27 =
|
|
827
|
-
const t28 =
|
|
828
|
-
const t29 = !!actions;
|
|
829
|
-
const t30 = !!
|
|
830
|
-
const t31 =
|
|
831
|
-
const t32 =
|
|
832
|
-
const t33 =
|
|
833
|
-
const t34 =
|
|
834
|
-
const t35 =
|
|
835
|
-
const t36 =
|
|
836
|
-
const t37 =
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
let t41;
|
|
841
|
-
if ($[41] !== baseMods || $[42] !== hasCheckmark || $[43] !== hasLabel || $[44] !== iconSlot.hasSlot || $[45] !== insideWrapper || $[46] !== rightIconSlot.hasSlot || $[47] !== showDescription || $[48] !== t24 || $[49] !== t25 || $[50] !== t26 || $[51] !== t27 || $[52] !== t28 || $[53] !== t29 || $[54] !== t30 || $[55] !== t31 || $[56] !== t32 || $[57] !== t33 || $[58] !== t34 || $[59] !== t35 || $[60] !== t36 || $[61] !== t37 || $[62] !== t38 || $[63] !== t39 || $[64] !== t40) {
|
|
842
|
-
t41 = {
|
|
778
|
+
$[40] = t22;
|
|
779
|
+
} else t22 = $[40];
|
|
780
|
+
const finalStyles = t22;
|
|
781
|
+
const t23 = !!(iconSlot.hasSlot || finalPrefix);
|
|
782
|
+
const t24 = !!(rightIconSlot.hasSlot || finalSuffix || actions || pinnedActions);
|
|
783
|
+
const t25 = !!finalPrefix;
|
|
784
|
+
const t26 = !!finalSuffix;
|
|
785
|
+
const t27 = showDescription && (wrapDescription ?? (type === "card" || type === "header"));
|
|
786
|
+
const t28 = !!actions;
|
|
787
|
+
const t29 = !!(actions && actions !== true);
|
|
788
|
+
const t30 = !!pinnedActions;
|
|
789
|
+
const t31 = canMoveActions && actionsPlacement === "below";
|
|
790
|
+
const t32 = !!nativeMenuItemProps;
|
|
791
|
+
const t33 = autoHideActions === true;
|
|
792
|
+
const t34 = preserveActionsSpace === true;
|
|
793
|
+
const t35 = showActions && insideWrapper;
|
|
794
|
+
const t36 = skipActionsWidthTransition && insideWrapper;
|
|
795
|
+
const t37 = showDescription ? finalDescriptionPlacement : "none";
|
|
796
|
+
let t38;
|
|
797
|
+
if ($[41] !== baseMods || $[42] !== hasCheckmark || $[43] !== hasLabel || $[44] !== iconSlot.hasSlot || $[45] !== insideWrapper || $[46] !== rightIconSlot.hasSlot || $[47] !== showDescription || $[48] !== t23 || $[49] !== t24 || $[50] !== t25 || $[51] !== t26 || $[52] !== t27 || $[53] !== t28 || $[54] !== t29 || $[55] !== t30 || $[56] !== t31 || $[57] !== t32 || $[58] !== t33 || $[59] !== t34 || $[60] !== t35 || $[61] !== t36 || $[62] !== t37) {
|
|
798
|
+
t38 = {
|
|
843
799
|
...baseMods,
|
|
844
800
|
"has-icon": iconSlot.hasSlot,
|
|
845
|
-
"has-start-content":
|
|
846
|
-
"has-end-content":
|
|
801
|
+
"has-start-content": t23,
|
|
802
|
+
"has-end-content": t24,
|
|
847
803
|
"has-right-icon": rightIconSlot.hasSlot,
|
|
848
804
|
"has-label": hasLabel,
|
|
849
|
-
"has-prefix":
|
|
850
|
-
"has-suffix":
|
|
805
|
+
"has-prefix": t25,
|
|
806
|
+
"has-suffix": t26,
|
|
851
807
|
"has-description": showDescription,
|
|
852
|
-
"wrap-description":
|
|
853
|
-
"has-actions":
|
|
854
|
-
"has-actions-content":
|
|
855
|
-
"has-pinned-actions":
|
|
856
|
-
"actions-below":
|
|
857
|
-
"menu-native-row":
|
|
858
|
-
"auto-hide-actions":
|
|
859
|
-
"preserve-actions-space":
|
|
860
|
-
"actions-replace-suffix": t36,
|
|
861
|
-
"suffix-placement": t37,
|
|
808
|
+
"wrap-description": t27,
|
|
809
|
+
"has-actions": t28,
|
|
810
|
+
"has-actions-content": t29,
|
|
811
|
+
"has-pinned-actions": t30,
|
|
812
|
+
"actions-below": t31,
|
|
813
|
+
"menu-native-row": t32,
|
|
814
|
+
"auto-hide-actions": t33,
|
|
815
|
+
"preserve-actions-space": t34,
|
|
862
816
|
"inside-wrapper": insideWrapper,
|
|
863
|
-
"actions-shown":
|
|
864
|
-
"skip-actions-width-transition":
|
|
817
|
+
"actions-shown": t35,
|
|
818
|
+
"skip-actions-width-transition": t36,
|
|
865
819
|
checkmark: hasCheckmark,
|
|
866
|
-
description:
|
|
820
|
+
description: t37
|
|
867
821
|
};
|
|
868
822
|
$[41] = baseMods;
|
|
869
823
|
$[42] = hasCheckmark;
|
|
@@ -872,79 +826,77 @@ const Item = (props, ref) => {
|
|
|
872
826
|
$[45] = insideWrapper;
|
|
873
827
|
$[46] = rightIconSlot.hasSlot;
|
|
874
828
|
$[47] = showDescription;
|
|
875
|
-
$[48] =
|
|
876
|
-
$[49] =
|
|
877
|
-
$[50] =
|
|
878
|
-
$[51] =
|
|
879
|
-
$[52] =
|
|
880
|
-
$[53] =
|
|
881
|
-
$[54] =
|
|
882
|
-
$[55] =
|
|
883
|
-
$[56] =
|
|
884
|
-
$[57] =
|
|
885
|
-
$[58] =
|
|
886
|
-
$[59] =
|
|
887
|
-
$[60] =
|
|
888
|
-
$[61] =
|
|
889
|
-
$[62] =
|
|
890
|
-
$[63] =
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
if ($[68] !== children || $[69] !== description || $[70] !== labelProps || $[71] !== labelRefProp || $[72] !== t44 || $[73] !== tooltip) {
|
|
906
|
-
t45 = {
|
|
829
|
+
$[48] = t23;
|
|
830
|
+
$[49] = t24;
|
|
831
|
+
$[50] = t25;
|
|
832
|
+
$[51] = t26;
|
|
833
|
+
$[52] = t27;
|
|
834
|
+
$[53] = t28;
|
|
835
|
+
$[54] = t29;
|
|
836
|
+
$[55] = t30;
|
|
837
|
+
$[56] = t31;
|
|
838
|
+
$[57] = t32;
|
|
839
|
+
$[58] = t33;
|
|
840
|
+
$[59] = t34;
|
|
841
|
+
$[60] = t35;
|
|
842
|
+
$[61] = t36;
|
|
843
|
+
$[62] = t37;
|
|
844
|
+
$[63] = t38;
|
|
845
|
+
} else t38 = $[63];
|
|
846
|
+
const finalMods = t38;
|
|
847
|
+
const t39 = finalMods["menu-native-row"];
|
|
848
|
+
let t40;
|
|
849
|
+
if ($[64] !== t39) {
|
|
850
|
+
t40 = { "row-native-cell": t39 };
|
|
851
|
+
$[64] = t39;
|
|
852
|
+
$[65] = t40;
|
|
853
|
+
} else t40 = $[65];
|
|
854
|
+
const nativeCellMods = t40;
|
|
855
|
+
const t41 = descriptionProps?.ref;
|
|
856
|
+
let t42;
|
|
857
|
+
if ($[66] !== children || $[67] !== description || $[68] !== labelProps || $[69] !== labelRefProp || $[70] !== t41 || $[71] !== tooltip) {
|
|
858
|
+
t42 = {
|
|
907
859
|
tooltip,
|
|
908
860
|
children,
|
|
909
861
|
description,
|
|
910
862
|
labelProps,
|
|
911
863
|
labelRef: labelRefProp,
|
|
912
|
-
descriptionRef:
|
|
864
|
+
descriptionRef: t41
|
|
913
865
|
};
|
|
914
|
-
$[
|
|
915
|
-
$[
|
|
916
|
-
$[
|
|
917
|
-
$[
|
|
918
|
-
$[
|
|
919
|
-
$[
|
|
920
|
-
$[
|
|
921
|
-
} else
|
|
922
|
-
const { labelProps: finalLabelProps, labelRef, descriptionRef, renderWithTooltip, isTooltipActive } = useAutoTooltip(
|
|
866
|
+
$[66] = children;
|
|
867
|
+
$[67] = description;
|
|
868
|
+
$[68] = labelProps;
|
|
869
|
+
$[69] = labelRefProp;
|
|
870
|
+
$[70] = t41;
|
|
871
|
+
$[71] = tooltip;
|
|
872
|
+
$[72] = t42;
|
|
873
|
+
} else t42 = $[72];
|
|
874
|
+
const { labelProps: finalLabelProps, labelRef, descriptionRef, renderWithTooltip, isTooltipActive } = useAutoTooltip(t42);
|
|
923
875
|
const { isNativelyDisabled, inertProps } = getDisabledElementProps({
|
|
924
876
|
isDisabled: finalIsDisabled,
|
|
925
877
|
keepEvents: isTooltipActive || keepFocusWhenDisabled,
|
|
926
878
|
as: rest.as
|
|
927
879
|
});
|
|
928
|
-
let
|
|
929
|
-
if ($[
|
|
930
|
-
|
|
931
|
-
$[
|
|
932
|
-
$[
|
|
933
|
-
$[
|
|
934
|
-
$[
|
|
935
|
-
$[
|
|
936
|
-
} else
|
|
937
|
-
const processedChildren =
|
|
938
|
-
let
|
|
939
|
-
if ($[
|
|
940
|
-
|
|
941
|
-
$[
|
|
942
|
-
$[
|
|
943
|
-
$[
|
|
944
|
-
$[
|
|
945
|
-
$[
|
|
946
|
-
} else
|
|
947
|
-
const processedDescription =
|
|
880
|
+
let t43;
|
|
881
|
+
if ($[73] !== children || $[74] !== highlight || $[75] !== highlightCaseSensitive || $[76] !== highlightStyles) {
|
|
882
|
+
t43 = highlightContent(children, highlight, highlightCaseSensitive, highlightStyles);
|
|
883
|
+
$[73] = children;
|
|
884
|
+
$[74] = highlight;
|
|
885
|
+
$[75] = highlightCaseSensitive;
|
|
886
|
+
$[76] = highlightStyles;
|
|
887
|
+
$[77] = t43;
|
|
888
|
+
} else t43 = $[77];
|
|
889
|
+
const processedChildren = t43;
|
|
890
|
+
let t44;
|
|
891
|
+
if ($[78] !== description || $[79] !== highlight || $[80] !== highlightCaseSensitive || $[81] !== highlightStyles) {
|
|
892
|
+
t44 = highlightContent(description, highlight, highlightCaseSensitive, highlightStyles);
|
|
893
|
+
$[78] = description;
|
|
894
|
+
$[79] = highlight;
|
|
895
|
+
$[80] = highlightCaseSensitive;
|
|
896
|
+
$[81] = highlightStyles;
|
|
897
|
+
$[82] = t44;
|
|
898
|
+
} else t44 = $[82];
|
|
899
|
+
const processedDescription = t44;
|
|
948
900
|
const renderItemElement = (tooltipTriggerProps, tooltipRef) => {
|
|
949
901
|
const { pointerProps: elementTooltipProps, focusProps: tooltipFocusProps } = typeof hiddenContent === "function" || nativeMenuItemProps ? splitTooltipTriggerProps(tooltipTriggerProps) : {
|
|
950
902
|
pointerProps: tooltipTriggerProps,
|