@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 { mergeStyleLayers } from "./styles.js";
|
|
3
3
|
import { mergeProps } from "./merge-props.js";
|
|
4
4
|
import { hasFieldContent, warnAboutForceField } from "./field-chrome.js";
|
package/dist/version.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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
|
//#region src/version.ts
|
|
3
|
-
const VERSION = "0.0.0-canary-
|
|
3
|
+
const VERSION = "0.0.0-canary-5adbf30";
|
|
4
4
|
const TASTY_VERSION = "3.19.3";
|
|
5
5
|
if (typeof window !== "undefined") {
|
|
6
6
|
const version = VERSION;
|
package/docs/Usage.md
CHANGED
|
@@ -431,7 +431,7 @@ Use `className` and inline `style` when a third-party integration needs to attac
|
|
|
431
431
|
|
|
432
432
|
The package's `tasty.config.ts` lists the other components as `protectedComponents`, and `tasty/no-protected-restyle` from `@tenphi/eslint-plugin-tasty` 1.12.0 or newer reports a restyle of one in your code:
|
|
433
433
|
|
|
434
|
-
- instance `styles`, and `*Styles` props such as `inputStyles` or `triggerStyles`. A field's (`Select`, `ComboBox`, `Picker`, `FilterPicker`, `ListBox`, …) popover, overlay, list box, list and label can only be sized from outside, so `popoverStyles`, `overlayStyles`, `listBoxStyles` and `labelStyles` keep `width`, `height` and the other sizing props, and `listStyles` also keeps `margin` and the other placing ones. Its `headerStyles` and `footerStyles` hold content you supply, so they keep a container's layout props, listed below
|
|
434
|
+
- instance `styles`, and `*Styles` props such as `inputStyles` or `triggerStyles`. A field's (`Select`, `ComboBox`, `Picker`, `FilterPicker`, `ListBox`, …) popover, overlay, list box, list and label can only be sized from outside, so `popoverStyles`, `overlayStyles`, `listBoxStyles` and `labelStyles` keep `width`, `height` and the other sizing props, and `listStyles` also keeps `margin` and the other placing ones. Its `headerStyles` and `footerStyles`, like a `Menu`'s, hold content you supply and draw no fill of their own, so they keep a container's layout props, listed below, and `fill`. Like root `styles`, such a prop passes only as an inline object whose every key is allowed, or a conditional between such objects (a branch may also be `undefined`), with `@tenphi/eslint-plugin-tasty` 1.20.0 or newer;
|
|
435
435
|
- style props other than the ones that place or size the component (`width`, `height`, `gridArea`, `margin`, `inset`, …). Containers (`Card`, `Panel`, `ResizablePanel`, `Content`, `Header`, `Footer`, `Alert`, `Result`, `Skeleton`, and `Layout` and `GridLayout` with their sub-components) also keep the ones that lay out their content: `display`, `padding`, `gap`, `flow`, `place*`, `align*`, `justify*`, `grid*`, `overflow`, `scrollbar`, `textAlign`, and `container` for container queries. A container that draws no fill and no border of its own (`Layout`, `GridLayout`, `Panel`, `ResizablePanel`, `Content`, `Header` and `Footer`) also keeps `fill` and `border`. `Layout`'s sections (`Layout.Content`, `Header`, `Footer`, `Toolbar`, `Block`, `Flex`, `Grid`, `Center` and `Container`) and `Skeleton` keep `fill`, but not `border`: the border that separates stacked sections, or underlines a skeleton's top bar, is UI Kit's. `Placeholder` keeps `radius`, the shape of what it stands in for. Root `styles` that sets only allowed props passes too;
|
|
436
436
|
- `tasty()` wrappers that restyle a protected component, and wrappers of those wrappers.
|
|
437
437
|
|
package/docs/components/Badge.md
CHANGED
|
@@ -30,7 +30,6 @@ Badges are small, circular indicators that display numerical counts or short sta
|
|
|
30
30
|
- **`rightIcon`** `ReactNode` — Icon displayed after the content
|
|
31
31
|
- **`prefix`** `ReactNode` — Content rendered before the label
|
|
32
32
|
- **`suffix`** `ReactNode` — Content rendered after the label
|
|
33
|
-
- **`suffixPlacement`** `'end' | 'after-label'` (default: `end`) — Where the suffix sits: at the end of the row, or right after the label with the free space after it. See `Item`
|
|
34
33
|
- **`description`** `ReactNode` — Secondary text below the main content
|
|
35
34
|
- **`tooltip`** `string | boolean | object` (default: `true`) — Tooltip configuration: string for text, `true` for auto overflow tooltips, or object for advanced config
|
|
36
35
|
- **`hotkeys`** `string` — Keyboard shortcut displayed and triggered
|
|
@@ -38,8 +37,7 @@ Badges are small, circular indicators that display numerical counts or short sta
|
|
|
38
37
|
- **`isLoading`** `boolean` (default: `false`) — Show loading state, replacing an icon slot with a spinner
|
|
39
38
|
- **`actions`** `ReactNode` — Inline action buttons displayed on the right side
|
|
40
39
|
- **`autoHideActions`** `boolean` (default: `false`) — When true, actions are hidden by default and shown on hover or focus
|
|
41
|
-
- **`
|
|
42
|
-
- **`preserveActionsSpace`** `boolean` (default: `false`) — **Deprecated:** use `hiddenActionsSpace="preserve"`. Preserve the actions width when hidden (only changes opacity, not layout)
|
|
40
|
+
- **`preserveActionsSpace`** `boolean` (default: `false`) — Preserve the actions width when hidden (only changes opacity, not layout)
|
|
43
41
|
- **`disableActionsFocus`** `boolean` (default: `false`) — Disable focus on action buttons by setting tabIndex to -1
|
|
44
42
|
- **`level`** `1 | 2 | 3 | 4 | 5 | 6` (default: `3`) — Heading level for the label element when type is "header" or "card"
|
|
45
43
|
- **`highlight`** `string` — String to highlight within children text
|
|
@@ -22,7 +22,6 @@ Banner displays prominent messages and notifications to users. It supports diffe
|
|
|
22
22
|
- **`rightIcon`** `ReactNode` — Icon displayed after the content
|
|
23
23
|
- **`prefix`** `ReactNode` — Content rendered before the label
|
|
24
24
|
- **`suffix`** `ReactNode` — Content rendered after the label
|
|
25
|
-
- **`suffixPlacement`** `'end' | 'after-label'` (default: `end`) — Where the suffix sits: at the end of the row, or right after the label with the free space after it. See `Item`
|
|
26
25
|
- **`actions`** `ReactNode` — Action buttons displayed on the right side of the banner, or below the message on a phone. Use `Banner.Action` for consistent styling
|
|
27
26
|
- **`actionsBelowState`** `boolean | string` (default: `true`) — When the actions move to a row of their own below the label and description. `true` means `@mobile` (a viewport narrower than 920px); `false` keeps them at the end; a string is any state or condition, such as `'@(panel, w < 600px)'`. See [Actions on a Narrow Screen](#actions-on-a-narrow-screen)
|
|
28
27
|
- **`actionsPlacement`** `'end' | 'below'` (default: `'end'`) — Puts the actions below at every width
|
|
@@ -33,8 +32,7 @@ Banner displays prominent messages and notifications to users. It supports diffe
|
|
|
33
32
|
- **`isSelected`** `boolean` (default: `false`) — Whether the banner shows as selected with a checkmark
|
|
34
33
|
- **`isLoading`** `boolean` — Show loading state
|
|
35
34
|
- **`autoHideActions`** `boolean` (default: `false`) — When true, actions are hidden by default and shown on hover or focus
|
|
36
|
-
- **`
|
|
37
|
-
- **`preserveActionsSpace`** `boolean` (default: `false`) — **Deprecated:** use `hiddenActionsSpace="preserve"`. Preserve the actions width when hidden (only changes opacity, not layout)
|
|
35
|
+
- **`preserveActionsSpace`** `boolean` (default: `false`) — Preserve the actions width when hidden (only changes opacity, not layout)
|
|
38
36
|
- **`disableActionsFocus`** `boolean` (default: `false`) — Disable focus on action buttons by setting tabIndex to -1
|
|
39
37
|
- **`level`** `1 | 2 | 3 | 4 | 5 | 6` (default: `3`) — Heading level for the label element when type is "header" or "card"
|
|
40
38
|
- **`highlight`** `string` — String to highlight within children text
|
|
@@ -101,7 +101,6 @@ const items = [{
|
|
|
101
101
|
- **`rightIcon`** `ReactNode` — Icon displayed after the content
|
|
102
102
|
- **`prefix`** `ReactNode` — Content rendered before the label
|
|
103
103
|
- **`suffix`** `ReactNode` — Content rendered after the label
|
|
104
|
-
- **`suffixPlacement`** `'end' | 'after-label'` (default: `end`) — Where the suffix sits: at the end of the row, or right after the label with the free space after it. See `Item`
|
|
105
104
|
- **`description`** `ReactNode` — Secondary text below the main content
|
|
106
105
|
- **`wrapDescription`** `boolean` (default: `false`) — Wrap a long description onto more lines instead of ending it in an ellipsis
|
|
107
106
|
- **`tooltip`** `string | boolean | object` — Tooltip configuration
|
|
@@ -111,8 +110,7 @@ const items = [{
|
|
|
111
110
|
- **`actions`** `ReactNode` — Inline action buttons displayed on the right side
|
|
112
111
|
- **`size`** `'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'inline' | number | string` — Size of the item. In a list it defaults to the list's `size`, and an item's own value overrides it for that row; a number or a custom length such as `6x` sets the row height
|
|
113
112
|
- **`autoHideActions`** `boolean` (default: `false`) — When true, actions are hidden by default and shown on hover or focus
|
|
114
|
-
- **`
|
|
115
|
-
- **`preserveActionsSpace`** `boolean` (default: `false`) — **Deprecated:** use `hiddenActionsSpace="preserve"`. Preserve the actions width when hidden (only changes opacity, not layout)
|
|
113
|
+
- **`preserveActionsSpace`** `boolean` (default: `false`) — Preserve the actions width when hidden (only changes opacity, not layout)
|
|
116
114
|
- **`actionsPlacement`** `'end' | 'below'` (default: `'end'`) — Where the `actions` sit: at the end, or in a row of their own below the label and description. See [Item](./Item.md#actions-below)
|
|
117
115
|
- **`actionsBelowState`** `boolean | string` — When the `actions` move below, from CSS: `true` on `@mobile`, or any state, media or container condition
|
|
118
116
|
- **`pinnedActions`** `ReactNode` — Controls that keep the end of the first row when the `actions` move below, such as `Item.CloseAction`. Not on `Menu.Item` or `CommandMenu.Item`: a control pinned inside a menu row is one no key reaches
|
|
@@ -127,7 +127,7 @@ Customizes the inner ListBox component.
|
|
|
127
127
|
|
|
128
128
|
#### headerStyles
|
|
129
129
|
|
|
130
|
-
|
|
130
|
+
Lays out the header and sets its fill: a container's layout props, the sizing props and `fill`. The border, corner radius, text color and preset are FilterListBox's, and the header's corners follow its box. The search row under a filled header takes the same fill, so the title and the search read as one area.
|
|
131
131
|
|
|
132
132
|
**Sub-elements:**
|
|
133
133
|
|
|
@@ -135,7 +135,7 @@ Customizes the header area when header prop is provided.
|
|
|
135
135
|
|
|
136
136
|
#### footerStyles
|
|
137
137
|
|
|
138
|
-
|
|
138
|
+
Lays out the footer and sets its fill, on the same terms as `headerStyles`.
|
|
139
139
|
|
|
140
140
|
**Sub-elements:**
|
|
141
141
|
|
|
@@ -349,6 +349,23 @@ const categories = [
|
|
|
349
349
|
</FilterListBox>
|
|
350
350
|
```
|
|
351
351
|
|
|
352
|
+
### Filled Header and Footer
|
|
353
|
+
|
|
354
|
+
`headerStyles` and `footerStyles` take a fill as well as a layout, and the header and footer round to FilterListBox's own corners. The search row under a filled header takes the header's fill, so the title and the search read as one area above the list.
|
|
355
|
+
|
|
356
|
+
```jsx
|
|
357
|
+
<FilterListBox
|
|
358
|
+
label="Choose a language"
|
|
359
|
+
header="Programming languages"
|
|
360
|
+
footer="5 languages"
|
|
361
|
+
headerStyles={{ fill: '#surface-2' }}
|
|
362
|
+
footerStyles={{ fill: '#surface-2' }}
|
|
363
|
+
>
|
|
364
|
+
<FilterListBox.Item key="javascript">JavaScript</FilterListBox.Item>
|
|
365
|
+
<FilterListBox.Item key="python">Python</FilterListBox.Item>
|
|
366
|
+
</FilterListBox>
|
|
367
|
+
```
|
|
368
|
+
|
|
352
369
|
### With Custom Filter
|
|
353
370
|
|
|
354
371
|
```jsx
|
|
@@ -85,7 +85,7 @@ Choose a different component when the interaction has another shape:
|
|
|
85
85
|
- **`actions`** `ReactNode` — Custom actions rendered inside the trigger, to the left of the built-in clear button and dropdown caret
|
|
86
86
|
- **`onOpenChange`** `(isOpen: boolean) => void` — Callback called when the popover open state changes
|
|
87
87
|
- **`treeData`** `CubeTreeNodeData[]` — Tree-shaped options. The popover shows a `Tree` in place of the list, and `items` and `children` are not used. Tree mode is multiple selection with checkboxes, and the value is every fully checked key, parents included. With `selectionMode="single"`, the tree has no checkboxes and the value is one leaf
|
|
88
|
-
- **`treeItemProps`** `CubeFilterPickerTreeItemProps | (node, state) => CubeFilterPickerTreeItemProps`, which is `TreeItemProps` without `actions`, `autoHideActions
|
|
88
|
+
- **`treeItemProps`** `CubeFilterPickerTreeItemProps | (node, state) => CubeFilterPickerTreeItemProps`, which is `TreeItemProps` without `actions`, `autoHideActions` and `preserveActionsSpace` — Tree mode only: `Item` props for each row, as `Tree`'s `itemProps` takes them, such as a `prefix` icon or `suffix` marks. A function gets the node and its state. Rows hold nothing focusable, since the search keeps focus; a screen reader names the active row by its title, so marks are visual
|
|
89
89
|
- **`expandedKeys`** `string[]` — Expanded nodes in tree mode (controlled). A search expands nodes on its own and restores these when it clears
|
|
90
90
|
- **`defaultExpandedKeys`** `string[]` — Initially expanded nodes in tree mode (uncontrolled), read once when the picker mounts
|
|
91
91
|
- **`onExpand`** `(expandedKeys: string[]) => void` — Called when the user expands or collapses a node in tree mode, outside a search
|
|
@@ -162,7 +162,7 @@ Customizes section heading elements within the FilterListBox.
|
|
|
162
162
|
|
|
163
163
|
#### headerStyles
|
|
164
164
|
|
|
165
|
-
|
|
165
|
+
Lays out the header and sets its fill, as FilterListBox's `headerStyles` does: a container's layout props, the sizing props and `fill`. The search row under a filled header takes the same fill.
|
|
166
166
|
|
|
167
167
|
#### footerStyles
|
|
168
168
|
|
package/docs/components/Item.md
CHANGED
|
@@ -18,7 +18,6 @@ A foundational component that provides a standardized layout and styling for ite
|
|
|
18
18
|
- **`rightIcon`** — Icon rendered after the content. Can be: ReactNode, `true` (empty slot), or function `({ selected, loading, ...mods }) => ReactNode | true`
|
|
19
19
|
- **`prefix`** `ReactNode` — Element rendered before the content (after icon)
|
|
20
20
|
- **`suffix`** `ReactNode` — Element rendered after the content (before rightIcon)
|
|
21
|
-
- **`suffixPlacement`** `'end' | 'after-label'` (default: `end`) — Where the suffix sits. `end`: at the end of the row, next to the actions, and the label takes the free space. `after-label`: right after the label, and the free space goes after the suffix; when space runs short, the label still truncates first. See [Suffix Placement](#suffix-placement)
|
|
22
21
|
- **`description`** `ReactNode` — Description text displayed with the item
|
|
23
22
|
- **`descriptionPlacement`** `'inline' | 'block'` (default: `inline`) — How the description is positioned relative to the main content. Defaults to `'block'` for `type="card"` and `type="header"`
|
|
24
23
|
- **`wrapDescription`** `boolean` — Whether a long description wraps onto more lines instead of ending in an ellipsis. Defaults to `true` for `type="card"` and `type="header"`, `false` otherwise
|
|
@@ -34,8 +33,7 @@ A foundational component that provides a standardized layout and styling for ite
|
|
|
34
33
|
- **`actionsBelowState`** `boolean | string` — When the `actions` move below, from CSS: `true` on `@mobile` (a viewport narrower than 920px), or any state or condition, such as `'@media(w < 600px)'` or `'@(panel, w < 480px)'`. The item does not re-render to switch. Ignored with `autoHideActions` and inside a wrapper (`ItemButton`)
|
|
35
34
|
- **`pinnedActions`** `ReactNode` — Controls that keep the end of the item's first row even when the `actions` move below, such as `Item.CloseAction` or a menu trigger. In the `end` placement they follow the actions
|
|
36
35
|
- **`autoHideActions`** `boolean` (default: `false`) — When true, actions are hidden by default and shown only on hover, focus, or focus-within
|
|
37
|
-
- **`
|
|
38
|
-
- **`preserveActionsSpace`** `boolean` (default: `false`) — **Deprecated:** use `hiddenActionsSpace="preserve"`, which wins when both are set. When true, preserves the actions width when hidden (only changes opacity). Only applies when `autoHideActions` is true
|
|
36
|
+
- **`preserveActionsSpace`** `boolean` (default: `false`) — When true, preserves the actions width when hidden (only changes opacity). Only applies when `autoHideActions` is true
|
|
39
37
|
- **`disableActionsFocus`** `boolean` (default: `false`) — When true, action buttons are not focusable via keyboard
|
|
40
38
|
- **`hotkeys`** `string` — Keyboard shortcut displayed as a badge (e.g. `"cmd+s"`)
|
|
41
39
|
- **`tooltip`** `string | boolean | object` (default: `true`) — Tooltip content. `true` enables auto tooltip on overflow, a string shows fixed tooltip text, an object supports advanced configuration `{ title, auto, placement, ...tooltipProps }`
|
|
@@ -79,7 +77,7 @@ These properties allow direct style application without using the `styles` prop:
|
|
|
79
77
|
|
|
80
78
|
`Item` lays its slots out on a grid with no gap, and `Label` drops its own inline padding whenever there is start or end content. A `prefix` or `suffix` therefore renders flush against the label by default, which is what most content wants — a checkbox, a kbd chip, a badge and a count are all boxes that already carry their own presence, and a gap on top of one reads as too much.
|
|
81
79
|
|
|
82
|
-
A **bare glyph** is the case that needs spacing: it sits flush, while the same glyph in the `icon` slot looks spaced because that slot centres it inside a `$size`-wide square. Two tokens control it, both `0` by default
|
|
80
|
+
A **bare glyph** is the case that needs spacing: it sits flush, while the same glyph in the `icon` slot looks spaced because that slot centres it inside a `$size`-wide square. Two tokens control it, both `0` by default:
|
|
83
81
|
|
|
84
82
|
| Token | Controls |
|
|
85
83
|
| ------------- | ----------------------------------------------- |
|
|
@@ -112,9 +110,7 @@ The `mods` property accepts the following modifiers:
|
|
|
112
110
|
- **`has-pinned-actions`** `boolean` — Applied when pinnedActions prop is provided
|
|
113
111
|
- **`actions-below`** `boolean` — Applied when `actionsPlacement="below"` takes effect. The styles read the local `@actions-below` state, which `actionsBelowState` widens with its condition
|
|
114
112
|
- **`auto-hide-actions`** `boolean` — Applied when autoHideActions is true
|
|
115
|
-
- **`preserve-actions-space`** `boolean` — Applied when
|
|
116
|
-
- **`actions-replace-suffix`** `boolean` — Applied when shown actions take the suffix's place: `autoHideActions` with `hiddenActionsSpace="suffix"`, a suffix and actions
|
|
117
|
-
- **`suffix-placement`** `'end' | 'after-label'` — Applied when a suffix is present, from `suffixPlacement`
|
|
113
|
+
- **`preserve-actions-space`** `boolean` — Applied when preserveActionsSpace is true
|
|
118
114
|
- **`checkmark`** `boolean` — Applied when using the checkmark icon (icon="checkmark")
|
|
119
115
|
- **`selected`** `boolean` — Applied when isSelected is true
|
|
120
116
|
- **`disabled`** `boolean` — Applied when isDisabled is true or when loading
|
|
@@ -385,31 +381,26 @@ Use `autoHideActions` to hide actions by default and reveal them on hover, focus
|
|
|
385
381
|
|
|
386
382
|
This provides a cleaner interface while keeping actions easily accessible. By default, actions collapse to zero width when hidden.
|
|
387
383
|
|
|
388
|
-
####
|
|
384
|
+
#### Preserve Actions Space
|
|
389
385
|
|
|
390
|
-
`
|
|
391
|
-
|
|
392
|
-
| Value | While hidden | When shown |
|
|
393
|
-
| --- | --- | --- |
|
|
394
|
-
| `collapse` (default) | No width, no hit area | They narrow the label |
|
|
395
|
-
| `preserve` | They keep their width and are only transparent | They fade in; nothing moves |
|
|
396
|
-
| `suffix` | No width, no hit area, and the suffix shows | They take the suffix's place and the suffix fades out; the label keeps its room |
|
|
397
|
-
|
|
398
|
-
Use `suffix` when the suffix is secondary information the actions can stand in for, such as a column's type next to its name: the name keeps the room it has at rest, so a truncated one does not re-flow under the pointer. The actions sit at the end of the suffix's cell, before a `rightIcon`. When they are wider than the suffix, the row makes room for the difference. With `suffixPlacement="after-label"`, that cell holds the row's free space, so the actions land at the row's end and the suffix only fades. The suffix slot also holds the `hotkeys` hint and a loading icon placed there (`loadingSlot="suffix"`), and they fade the same way; with the slot empty, `suffix` works as `collapse`. Keyboard focus still reaches a hidden action and reveals it.
|
|
386
|
+
Use `preserveActionsSpace` together with `autoHideActions` to keep the actions area visible (preserving its width) while only changing the opacity. This prevents content from shifting when actions appear:
|
|
399
387
|
|
|
400
388
|
```jsx
|
|
401
389
|
<Item
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
actions={
|
|
390
|
+
icon={<IconFile />}
|
|
391
|
+
autoHideActions={true}
|
|
392
|
+
preserveActionsSpace={true}
|
|
393
|
+
actions={
|
|
394
|
+
<>
|
|
395
|
+
<Item.Action icon={<IconEdit />} aria-label="Edit" onPress={handleEdit} />
|
|
396
|
+
<Item.Action icon={<IconTrash />} aria-label="Delete" onPress={handleDelete} />
|
|
397
|
+
</>
|
|
398
|
+
}
|
|
406
399
|
>
|
|
407
|
-
|
|
400
|
+
Actions fade in without shifting content
|
|
408
401
|
</Item>
|
|
409
402
|
```
|
|
410
403
|
|
|
411
|
-
`suffix` works on a plain `Item` and on the components that render their actions through one, such as `Tag`, `Badge`, `ItemCard` and `Tree` rows. `ItemButton` takes `collapse` and `preserve` only: its actions sit beside the button, at the row's end, and cannot take a place inside it. `preserveActionsSpace` is the deprecated spelling of `preserve`.
|
|
412
|
-
|
|
413
404
|
#### Actions Below
|
|
414
405
|
|
|
415
406
|
Use `actionsPlacement="below"` to put the actions in a row of their own below the label and description, so a narrow item gives its text the whole width. The row lines up with the label (or with a block description), and its buttons wrap onto more lines when they don't fit.
|
|
@@ -459,18 +450,6 @@ To switch only when space is short, give `actionsBelowState` a condition instead
|
|
|
459
450
|
</Item>
|
|
460
451
|
```
|
|
461
452
|
|
|
462
|
-
### Suffix Placement
|
|
463
|
-
|
|
464
|
-
By default the label takes the row's free space, so the suffix sits at the end, next to the actions. With `suffixPlacement="after-label"`, the suffix follows the label and the free space goes after it. Use it for a suffix that belongs to the label, such as a "Beta" badge. When space runs short, the label still truncates first and the suffix keeps its width. With a description, the suffix stays on the label's line and the description runs under both, however long it is. Auto-hidden actions shown in the free space then move neither the label nor the suffix while there is room.
|
|
465
|
-
|
|
466
|
-
```jsx
|
|
467
|
-
<Item suffixPlacement="after-label" suffix={<Item.Badge>Beta</Item.Badge>}>
|
|
468
|
-
Revenue
|
|
469
|
-
</Item>
|
|
470
|
-
```
|
|
471
|
-
|
|
472
|
-
`$suffix-gap` defaults to `1x` there, so the suffix does not touch the label's text. The placement applies to whatever the suffix slot holds, the `hotkeys` hint included; with the slot empty, `suffixPlacement` changes nothing.
|
|
473
|
-
|
|
474
453
|
### With Tooltip
|
|
475
454
|
|
|
476
455
|
By default, Item shows an auto tooltip when content overflows. The label and a string `description` are both checked, and the tooltip shows the text that is cut off: the label, the description, or both — then the description sits below the label as lighter secondary text. Text the row already shows in full is left out. A description that wraps (`wrapDescription`, on by default for `type="card"` and `type="header"`) only triggers it if a word too long to break overflows. Pass `tooltip={false}` to turn the check off, for example in a very long list that renders every row at once.
|
|
@@ -23,7 +23,6 @@ An interactive button component built on top of `Item` that provides all the lay
|
|
|
23
23
|
- **`rightIcon`** `ReactNode` — Icon displayed after the content
|
|
24
24
|
- **`prefix`** `ReactNode` — Content rendered before the label
|
|
25
25
|
- **`suffix`** `ReactNode` — Content rendered after the label
|
|
26
|
-
- **`suffixPlacement`** `'end' | 'after-label'` (default: `end`) — Where the suffix sits: at the end of the row, or right after the label with the free space after it. See `Item`
|
|
27
26
|
- **`hotkeys`** `string` — Keyboard shortcut that triggers the button (e.g., `"cmd+s"`, `"ctrl+alt+d"`)
|
|
28
27
|
- **`tooltip`** `boolean | string | object` — Tooltip configuration: string for simple text, `true` for auto overflow tooltips, or object for advanced config with optional `auto` property
|
|
29
28
|
- **`isDisabled`** `boolean` — Whether the button is disabled
|
|
@@ -36,8 +35,7 @@ An interactive button component built on top of `Item` that provides all the lay
|
|
|
36
35
|
- **`actions`** `ReactNode` — Inline action buttons displayed on the right side. Use `ItemButton.Action` for consistent styling. Actions automatically inherit the parent button's `type` prop. Pass `null` to keep an empty run, so actions arriving later do not remount the button
|
|
37
36
|
- **`actionsProps`** `HTMLAttributes<HTMLDivElement>` — Props spread on the actions run's container. Only meaningful together with `actions`
|
|
38
37
|
- **`autoHideActions`** `boolean` — When true, actions are hidden by default and fade in on hover
|
|
39
|
-
- **`
|
|
40
|
-
- **`preserveActionsSpace`** `boolean` (default: `false`) — **Deprecated:** use `hiddenActionsSpace="preserve"`. Preserve the actions width when hidden (only changes opacity, not layout)
|
|
38
|
+
- **`preserveActionsSpace`** `boolean` (default: `false`) — Preserve the actions width when hidden (only changes opacity, not layout)
|
|
41
39
|
- **`disableActionsFocus`** `boolean` (default: `false`) — Disable focus on action buttons by setting tabIndex to -1
|
|
42
40
|
- **`level`** `1 | 2 | 3 | 4 | 5 | 6` (default: `3`) — Heading level for the label element when type is "header" or "card"
|
|
43
41
|
- **`highlight`** `string` — String to highlight within children text
|
|
@@ -23,15 +23,13 @@ A card for content with a heading, a body and optional inline actions. It wraps
|
|
|
23
23
|
- **`rightIcon`** `ReactNode` — Icon displayed after the content
|
|
24
24
|
- **`prefix`** `ReactNode` — Content rendered before the label
|
|
25
25
|
- **`suffix`** `ReactNode` — Content rendered after the label
|
|
26
|
-
- **`suffixPlacement`** `'end' | 'after-label'` (default: `end`) — Where the suffix sits: at the end of the row, or right after the label with the free space after it. See `Item`
|
|
27
26
|
- **`tooltip`** `string | boolean | object` (default: `true`) — Tooltip configuration: string for text, `true` for auto overflow tooltips, or object for advanced config
|
|
28
27
|
- **`hotkeys`** `string` — Keyboard shortcut displayed and triggered
|
|
29
28
|
- **`isSelected`** `boolean` (default: `false`) — Whether the card shows as selected with a checkmark
|
|
30
29
|
- **`isLoading`** `boolean` (default: `false`) — Show loading state, replacing an icon slot with a spinner
|
|
31
30
|
- **`actions`** `ReactNode` — Inline action buttons displayed on the right side
|
|
32
31
|
- **`autoHideActions`** `boolean` (default: `false`) — When true, actions are hidden by default and shown on hover or focus
|
|
33
|
-
- **`
|
|
34
|
-
- **`preserveActionsSpace`** `boolean` (default: `false`) — **Deprecated:** use `hiddenActionsSpace="preserve"`. Preserve the actions width when hidden (only changes opacity, not layout)
|
|
32
|
+
- **`preserveActionsSpace`** `boolean` (default: `false`) — Preserve the actions width when hidden (only changes opacity, not layout)
|
|
35
33
|
- **`actionsPlacement`** `'end' | 'below'` (default: `'end'`) — Where the `actions` sit: at the end, or in a row of their own below the label and description. See [Item](./Item.md#actions-below)
|
|
36
34
|
- **`actionsBelowState`** `boolean | string` — When the `actions` move below, from CSS: `true` on `@mobile`, or any state, media or container condition
|
|
37
35
|
- **`pinnedActions`** `ReactNode` — Controls that keep the end of the first row when the `actions` move below, such as `Item.CloseAction`
|
|
@@ -101,11 +101,11 @@ Customizes section heading elements.
|
|
|
101
101
|
|
|
102
102
|
#### headerStyles
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
Lays out the header and sets its fill: a container's layout props, the sizing props and `fill`. The border, corner radius, text color and preset are the list's, and the header's corners follow the list's in every shape.
|
|
105
105
|
|
|
106
106
|
#### footerStyles
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
Lays out the footer and sets its fill, on the same terms as `headerStyles`.
|
|
109
109
|
|
|
110
110
|
### Style Properties
|
|
111
111
|
|
|
@@ -453,6 +453,23 @@ const categories = [
|
|
|
453
453
|
</ListBox>
|
|
454
454
|
```
|
|
455
455
|
|
|
456
|
+
### Filled Header and Footer
|
|
457
|
+
|
|
458
|
+
`headerStyles` and `footerStyles` take a fill as well as a layout, and the header and footer round to the list's inner corners in every shape.
|
|
459
|
+
|
|
460
|
+
```jsx
|
|
461
|
+
<ListBox
|
|
462
|
+
label="Fruits"
|
|
463
|
+
header="Fruits"
|
|
464
|
+
footer="3 fruits"
|
|
465
|
+
headerStyles={{ fill: '#surface-2' }}
|
|
466
|
+
footerStyles={{ fill: '#surface-2' }}
|
|
467
|
+
>
|
|
468
|
+
<ListBox.Item key="apple">Apple</ListBox.Item>
|
|
469
|
+
<ListBox.Item key="banana">Banana</ListBox.Item>
|
|
470
|
+
</ListBox>
|
|
471
|
+
```
|
|
472
|
+
|
|
456
473
|
### Controlled Selection
|
|
457
474
|
|
|
458
475
|
```jsx
|
package/docs/components/Menu.md
CHANGED
|
@@ -29,7 +29,7 @@ Use `Menu` when users expect a composite popup with arrow-key navigation and Tab
|
|
|
29
29
|
|
|
30
30
|
- **`children`** `ReactNode` — Menu items and sections as static children
|
|
31
31
|
- **`items`** `Iterable<T>` — Item objects for dynamic collections
|
|
32
|
-
- **`header`** `ReactNode` —
|
|
32
|
+
- **`header`** `ReactNode` — The menu's title, or other content above its items, such as a card about what the menu acts on. See [Header](#header)
|
|
33
33
|
- **`footer`** `ReactNode` — Optional footer content
|
|
34
34
|
- **`selectionMode`** `'none' | 'single' | 'multiple'` (default: `none`) — Type of selection allowed in the menu
|
|
35
35
|
- **`selectedKeys`** `Iterable<Key>` — Currently selected keys (controlled)
|
|
@@ -40,8 +40,8 @@ Use `Menu` when users expect a composite popup with arrow-key navigation and Tab
|
|
|
40
40
|
- **`size`** `'medium' | 'large'` (default: `medium`) — Size of the menu items
|
|
41
41
|
- **`styles`** `Styles` — Custom styles for the menu container
|
|
42
42
|
- **`menuStyles`** `Styles` — Custom styles for the inner menu list element
|
|
43
|
-
- **`headerStyles`** `Styles` —
|
|
44
|
-
- **`footerStyles`** `Styles` —
|
|
43
|
+
- **`headerStyles`** `Styles` — The header's layout, spacing and fill. See [headerStyles and footerStyles](#headerstyles-and-footerstyles)
|
|
44
|
+
- **`footerStyles`** `Styles` — The footer's layout, spacing and fill
|
|
45
45
|
- **`itemStyles`** `Styles` — Custom styles for menu items
|
|
46
46
|
- **`sectionStyles`** `Styles` — Custom styles for section containers
|
|
47
47
|
- **`sectionHeadingStyles`** `Styles` — Custom styles for section headings
|
|
@@ -63,12 +63,13 @@ Supports [Base properties](../BaseProperties.md)
|
|
|
63
63
|
|
|
64
64
|
#### styles
|
|
65
65
|
|
|
66
|
-
Customizes the root menu container element.
|
|
66
|
+
Customizes the root menu container element. The header and footer are elements of their own, not sub-elements of the root: style them with `headerStyles` and `footerStyles`.
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
#### headerStyles and footerStyles
|
|
69
|
+
|
|
70
|
+
Lay out the header and footer, which hold the content you pass in `header` and `footer`, and set their fill. They take a container's layout props, the sizing props and `fill`. The border that divides them from the items, the corner radius, the text color and the type preset are the menu's, and [`tasty/no-protected-restyle`](../Usage.md#customizing-components) reports a change to them.
|
|
69
71
|
|
|
70
|
-
|
|
71
|
-
- `Divider` - Separator elements between sections
|
|
72
|
+
The header keeps its text on one line. Content that should wrap, such as a card, sets `whiteSpace: 'normal'` on its own element.
|
|
72
73
|
|
|
73
74
|
#### itemStyles
|
|
74
75
|
|
|
@@ -139,7 +140,7 @@ The `mods` property accepts the following modifiers you can override:
|
|
|
139
140
|
|
|
140
141
|
### Content Properties
|
|
141
142
|
|
|
142
|
-
- **`header`** `ReactNode` —
|
|
143
|
+
- **`header`** `ReactNode` — The menu's title, or other content above its items
|
|
143
144
|
- **`footer`** `ReactNode` — Optional footer content
|
|
144
145
|
|
|
145
146
|
## Sub-components
|
|
@@ -417,6 +418,30 @@ const items = [
|
|
|
417
418
|
</Menu>
|
|
418
419
|
```
|
|
419
420
|
|
|
421
|
+
### Header
|
|
422
|
+
|
|
423
|
+
Put the menu's title in `header`. The header sits outside the list of items, so assistive technology neither names nor describes the menu with it, and a keyboard user who opens the menu lands on the first item without hearing it. Name the menu as well: a `MenuTrigger` names it after its button, and any other menu takes an `aria-label`.
|
|
424
|
+
|
|
425
|
+
```jsx
|
|
426
|
+
<Menu aria-label="Git actions" header="Git actions">
|
|
427
|
+
<Menu.Item key="pull">Pull</Menu.Item>
|
|
428
|
+
<Menu.Item key="push">Push</Menu.Item>
|
|
429
|
+
</Menu>
|
|
430
|
+
```
|
|
431
|
+
|
|
432
|
+
A header can hold richer content, such as a card about the value the menu acts on. `headerStyles` gives it the card's spacing and fill, and the header grows with its content. When the card says something the user needs before they choose an item, point the menu's `aria-describedby` at it:
|
|
433
|
+
|
|
434
|
+
```jsx
|
|
435
|
+
<Menu
|
|
436
|
+
aria-label="Value actions"
|
|
437
|
+
aria-describedby="value-card"
|
|
438
|
+
header={<ValueCard id="value-card" value={value} />}
|
|
439
|
+
headerStyles={{ display: 'block', padding: '1x 1.5x', fill: '#surface-2' }}
|
|
440
|
+
>
|
|
441
|
+
<Menu.Item key="copy">Copy value</Menu.Item>
|
|
442
|
+
</Menu>
|
|
443
|
+
```
|
|
444
|
+
|
|
420
445
|
### Menu Items with Tooltips
|
|
421
446
|
|
|
422
447
|
```jsx
|
package/docs/components/Tag.md
CHANGED
|
@@ -32,7 +32,6 @@ Tags are compact, inline elements used to label, categorize, or organize items.
|
|
|
32
32
|
- **`rightIcon`** `ReactNode` — Icon displayed after the content
|
|
33
33
|
- **`prefix`** `ReactNode` — Content rendered before the label
|
|
34
34
|
- **`suffix`** `ReactNode` — Content rendered after the label
|
|
35
|
-
- **`suffixPlacement`** `'end' | 'after-label'` (default: `end`) — Where the suffix sits: at the end of the row, or right after the label with the free space after it. See `Item`
|
|
36
35
|
- **`description`** `ReactNode` — Secondary text below the main content
|
|
37
36
|
- **`tooltip`** `string | boolean | object` (default: `true`) — Tooltip configuration: string for text, `true` for auto overflow tooltips, or object for advanced config
|
|
38
37
|
- **`hotkeys`** `string` — Keyboard shortcut displayed and triggered
|
|
@@ -40,8 +39,7 @@ Tags are compact, inline elements used to label, categorize, or organize items.
|
|
|
40
39
|
- **`isLoading`** `boolean` (default: `false`) — Show loading state, replacing an icon slot with a spinner
|
|
41
40
|
- **`actions`** `ReactNode` — Inline action buttons displayed on the right side
|
|
42
41
|
- **`autoHideActions`** `boolean` (default: `false`) — When true, actions are hidden by default and shown on hover or focus
|
|
43
|
-
- **`
|
|
44
|
-
- **`preserveActionsSpace`** `boolean` (default: `false`) — **Deprecated:** use `hiddenActionsSpace="preserve"`. Preserve the actions width when hidden (only changes opacity, not layout)
|
|
42
|
+
- **`preserveActionsSpace`** `boolean` (default: `false`) — Preserve the actions width when hidden (only changes opacity, not layout)
|
|
45
43
|
- **`disableActionsFocus`** `boolean` (default: `false`) — Disable focus on action buttons by setting tabIndex to -1
|
|
46
44
|
- **`level`** `1 | 2 | 3 | 4 | 5 | 6` (default: `3`) — Heading level for the label element when type is "header" or "card"
|
|
47
45
|
- **`highlight`** `string` — String to highlight within children text
|
package/package.json
CHANGED
package/tasty.config.ts
CHANGED
|
@@ -110,6 +110,14 @@ const containerStyleProps = [
|
|
|
110
110
|
'direction',
|
|
111
111
|
];
|
|
112
112
|
|
|
113
|
+
/**
|
|
114
|
+
* A field's or a menu's header and footer, which are one element, `Menu`'s.
|
|
115
|
+
* It holds content the consumer supplies, as a container does, and draws no
|
|
116
|
+
* fill of its own, so a fill behind that content is the consumer's too, as on
|
|
117
|
+
* a `Layout` section. Its border, which divides it from the list, is UI Kit's.
|
|
118
|
+
*/
|
|
119
|
+
const headerFooterStyleProps = [...containerStyleProps, 'fill'];
|
|
120
|
+
|
|
113
121
|
export default {
|
|
114
122
|
extends: '@tenphi/tasty',
|
|
115
123
|
|
|
@@ -132,7 +140,8 @@ export default {
|
|
|
132
140
|
* whose `styles` are their API. Style props that place or size the root
|
|
133
141
|
* stay allowed, and containers also keep the props that lay out their
|
|
134
142
|
* content. A field's `*Styles` props for its popover, list, label, header
|
|
135
|
-
* and footer
|
|
143
|
+
* and footer, and a menu's for its header and footer, take what
|
|
144
|
+
* `allowedInnerStyleProps` lists for each. The first matching entry decides, so the last entry holds the
|
|
136
145
|
* rest. A sub-component such as `Layout.Content` counts as the export it
|
|
137
146
|
* hangs off, unless an entry names its member path, which then decides
|
|
138
147
|
* first. Our own source imports components by relative path, which never
|
|
@@ -152,8 +161,9 @@ export default {
|
|
|
152
161
|
// outside: how wide they open and how tall they grow depends on the
|
|
153
162
|
// options and the screen they sit in. A label row may need its height
|
|
154
163
|
// pinned so the fields in a row line up. A header or footer holds content
|
|
155
|
-
// the consumer supplies,
|
|
156
|
-
//
|
|
164
|
+
// the consumer supplies, so its layout, its spacing and its fill are the
|
|
165
|
+
// consumer's (`headerFooterStyleProps`). The trigger, input and options
|
|
166
|
+
// keep their look.
|
|
157
167
|
{
|
|
158
168
|
source: '@cube-dev/ui-kit',
|
|
159
169
|
include: [
|
|
@@ -188,8 +198,20 @@ export default {
|
|
|
188
198
|
listBoxStyles: ['dimension'],
|
|
189
199
|
listStyles: ['position', 'dimension'],
|
|
190
200
|
labelStyles: ['dimension'],
|
|
191
|
-
headerStyles:
|
|
192
|
-
footerStyles:
|
|
201
|
+
headerStyles: headerFooterStyleProps,
|
|
202
|
+
footerStyles: headerFooterStyleProps,
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
// A menu's header and footer are the fields' element, on the same terms:
|
|
206
|
+
// a menu's title or a card in `header` takes its layout, spacing and fill
|
|
207
|
+
// there. The list, items and sections keep their look.
|
|
208
|
+
{
|
|
209
|
+
source: '@cube-dev/ui-kit',
|
|
210
|
+
include: ['Menu'],
|
|
211
|
+
allowedStyleProps: ['position', 'dimension'],
|
|
212
|
+
allowedInnerStyleProps: {
|
|
213
|
+
headerStyles: headerFooterStyleProps,
|
|
214
|
+
footerStyles: headerFooterStyleProps,
|
|
193
215
|
},
|
|
194
216
|
},
|
|
195
217
|
{
|