@cube-dev/ui-kit 0.212.0 → 0.213.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CHANGELOG.md +22 -0
- package/dist/_internal/hooks/use-debounced-value.js +1 -1
- package/dist/_internal/hooks/use-deprecation-warning.js +1 -1
- package/dist/_internal/hooks/use-event.js +1 -1
- package/dist/_internal/hooks/use-is-first-render.js +1 -1
- package/dist/_internal/hooks/use-sync-ref.js +1 -1
- package/dist/_internal/hooks/use-timer/timer.js +1 -1
- package/dist/_internal/hooks/use-timer/use-timer.js +1 -1
- package/dist/_internal/hooks/use-warn.js +1 -1
- package/dist/components/Block.js +1 -1
- package/dist/components/CollectionItem.js +1 -1
- package/dist/components/GlobalStyles.js +1 -1
- package/dist/components/GridProvider.d.ts +2 -1
- package/dist/components/GridProvider.js +6 -4
- package/dist/components/GridProvider.js.map +1 -1
- package/dist/components/HiddenInput.js +1 -1
- package/dist/components/Root.js +1 -1
- package/dist/components/actions/Action/Action.js +1 -1
- package/dist/components/actions/Banner/Banner.js +1 -1
- package/dist/components/actions/Button/AutoCollapseObserver.js +1 -1
- package/dist/components/actions/Button/Button.js +1 -1
- package/dist/components/actions/Button/index.js +1 -1
- package/dist/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/actions/ButtonSplit/ButtonSplit.js +1 -1
- package/dist/components/actions/ButtonSplit/context.js +1 -1
- package/dist/components/actions/CommandMenu/CommandMenu.d.ts +3 -2
- package/dist/components/actions/CommandMenu/CommandMenu.js +128 -131
- package/dist/components/actions/CommandMenu/CommandMenu.js.map +1 -1
- package/dist/components/actions/CommandMenu/styled.js +1 -1
- package/dist/components/actions/ItemAction/ItemAction.js +1 -1
- package/dist/components/actions/ItemActionContext.js +1 -1
- package/dist/components/actions/ItemActionsWrapper.js +1 -1
- package/dist/components/actions/ItemButton/ItemButton.js +1 -1
- package/dist/components/actions/Link/Link.js +1 -1
- package/dist/components/actions/Menu/Menu.js +1 -1
- package/dist/components/actions/Menu/MenuCollectionItem.js +1 -1
- package/dist/components/actions/Menu/MenuItem.js +1 -1
- package/dist/components/actions/Menu/MenuSection.js +1 -1
- package/dist/components/actions/Menu/MenuTrigger.js +4 -3
- package/dist/components/actions/Menu/MenuTrigger.js.map +1 -1
- package/dist/components/actions/Menu/SubMenuTrigger.js +4 -3
- package/dist/components/actions/Menu/SubMenuTrigger.js.map +1 -1
- package/dist/components/actions/Menu/SubmenuTriggerContext.js +1 -1
- package/dist/components/actions/Menu/context.js +1 -1
- package/dist/components/actions/Menu/styled.js +1 -1
- package/dist/components/actions/actions-run.js +1 -1
- package/dist/components/actions/use-action.js +1 -1
- package/dist/components/actions/use-anchored-menu.js +1 -1
- package/dist/components/actions/use-context-menu.js +1 -1
- package/dist/components/content/ActiveZone/ActiveZone.js +1 -1
- package/dist/components/content/Alert/Alert.js +1 -1
- package/dist/components/content/Alert/use-alert.js +1 -1
- package/dist/components/content/Avatar/Avatar.js +1 -1
- package/dist/components/content/Badge/Badge.js +1 -1
- package/dist/components/content/Card/Card.js +1 -1
- package/dist/components/content/Content.js +1 -1
- package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +1 -1
- package/dist/components/content/CopySnippet/CopySnippet.js +1 -1
- package/dist/components/content/Disclosure/Disclosure.js +1 -1
- package/dist/components/content/Divider/Divider.js +1 -1
- package/dist/components/content/Footer.js +1 -1
- package/dist/components/content/Header.js +1 -1
- package/dist/components/content/HotKeys/HotKeys.js +1 -1
- package/dist/components/content/InfoBadge/InfoBadge.js +1 -1
- package/dist/components/content/InlineInput/InlineInput.js +1 -1
- package/dist/components/content/Item/Item.js +1 -1
- package/dist/components/content/Item/ItemWithNativeLinks.js +6 -10
- package/dist/components/content/Item/ItemWithNativeLinks.js.map +1 -1
- package/dist/components/content/ItemBadge/ItemBadge.js +1 -1
- package/dist/components/content/ItemCard/ItemCard.js +1 -1
- package/dist/components/content/Layout/GridLayout.js +1 -1
- package/dist/components/content/Layout/Layout.d.ts +3 -2
- package/dist/components/content/Layout/Layout.js +12 -5
- package/dist/components/content/Layout/Layout.js.map +1 -1
- package/dist/components/content/Layout/LayoutBlock.js +1 -1
- package/dist/components/content/Layout/LayoutCenter.js +1 -1
- package/dist/components/content/Layout/LayoutContainer.d.ts +3 -2
- package/dist/components/content/Layout/LayoutContainer.js +4 -3
- package/dist/components/content/Layout/LayoutContainer.js.map +1 -1
- package/dist/components/content/Layout/LayoutContent.d.ts +3 -2
- package/dist/components/content/Layout/LayoutContent.js +56 -45
- package/dist/components/content/Layout/LayoutContent.js.map +1 -1
- package/dist/components/content/Layout/LayoutContext.js +1 -1
- package/dist/components/content/Layout/LayoutFlex.js +1 -1
- package/dist/components/content/Layout/LayoutFooter.js +1 -1
- package/dist/components/content/Layout/LayoutGrid.js +1 -1
- package/dist/components/content/Layout/LayoutHeader.js +3 -3
- package/dist/components/content/Layout/LayoutHeader.js.map +1 -1
- package/dist/components/content/Layout/LayoutPane.d.ts +3 -2
- package/dist/components/content/Layout/LayoutPane.js +66 -55
- package/dist/components/content/Layout/LayoutPane.js.map +1 -1
- package/dist/components/content/Layout/LayoutPanel.d.ts +3 -2
- package/dist/components/content/Layout/LayoutPanel.js +15 -8
- package/dist/components/content/Layout/LayoutPanel.js.map +1 -1
- package/dist/components/content/Layout/LayoutPanelHeader.d.ts +3 -2
- package/dist/components/content/Layout/LayoutPanelHeader.js +38 -68
- package/dist/components/content/Layout/LayoutPanelHeader.js.map +1 -1
- package/dist/components/content/Layout/LayoutPanelTransition.js +1 -1
- package/dist/components/content/Layout/LayoutToolbar.js +1 -1
- package/dist/components/content/Layout/hooks/useTinyScrollbar.js +1 -1
- package/dist/components/content/Layout/index.js +1 -1
- package/dist/components/content/Layout/utils.js +1 -1
- package/dist/components/content/Paragraph.js +1 -1
- package/dist/components/content/Placeholder/Placeholder.d.ts +3 -2
- package/dist/components/content/Placeholder/Placeholder.js +16 -37
- package/dist/components/content/Placeholder/Placeholder.js.map +1 -1
- package/dist/components/content/PrismCode/PrismCode.js +1 -1
- package/dist/components/content/PrismCode/prismSetup.js +1 -1
- package/dist/components/content/PrismDiffCode/PrismDiffCode.js +1 -1
- package/dist/components/content/Result/Result.js +1 -1
- package/dist/components/content/Skeleton/Skeleton.js +1 -1
- package/dist/components/content/Tag/Tag.js +1 -1
- package/dist/components/content/Text.js +1 -1
- package/dist/components/content/TextItem/TextItem.js +1 -1
- package/dist/components/content/Title.js +1 -1
- package/dist/components/content/Tree/Tree.js +11 -3
- package/dist/components/content/Tree/Tree.js.map +1 -1
- package/dist/components/content/Tree/TreeNode.js +1 -1
- package/dist/components/content/Tree/checked-keys.js +1 -1
- package/dist/components/content/Tree/rowId.js +1 -1
- package/dist/components/content/Tree/styled.js +1 -1
- package/dist/components/content/Tree/tree-index.js +1 -1
- package/dist/components/content/Tree/types.d.ts +3 -2
- package/dist/components/content/Tree/use-checkbox-tree.js +1 -1
- package/dist/components/content/Tree/use-load-data.js +1 -1
- package/dist/components/content/highlightText.js +1 -1
- package/dist/components/content/use-auto-tooltip.js +1 -1
- package/dist/components/data/DataTable/DataTable.js +3 -1
- package/dist/components/data/DataTable/DataTable.js.map +1 -1
- package/dist/components/data/DataTable/types.d.ts +3 -2
- package/dist/components/data/ItemTable/ItemTable.js +3 -1
- package/dist/components/data/ItemTable/ItemTable.js.map +1 -1
- package/dist/components/data/ItemTable/ItemTableBulkBar.js +1 -1
- package/dist/components/data/ItemTable/ItemTableDragPreview.js +1 -1
- package/dist/components/data/ItemTable/ItemTableFooter.js +1 -1
- package/dist/components/data/ItemTable/ItemTableToolbar.js +1 -1
- package/dist/components/data/ItemTable/item-table-sections.js +1 -1
- package/dist/components/data/ItemTable/types.d.ts +3 -2
- package/dist/components/data/ItemTable/use-item-table-column-widths.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-drag-drop.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-pagination.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-selection.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-sort.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-tree-model.js +1 -1
- package/dist/components/data/TableBase/ColumnResizer.js +1 -1
- package/dist/components/data/TableBase/RowCollection.js +1 -1
- package/dist/components/data/TableBase/TableHeaderCell.js +1 -1
- package/dist/components/data/TableBase/TableRow.js +1 -1
- package/dist/components/data/TableBase/TableRowLink.js +1 -1
- package/dist/components/data/TableBase/TableView.d.ts +1 -0
- package/dist/components/data/TableBase/TableView.js +7 -2
- package/dist/components/data/TableBase/TableView.js.map +1 -1
- package/dist/components/data/TableBase/TreeGridTable.js +1 -1
- package/dist/components/data/TableBase/column-header.js +1 -1
- package/dist/components/data/TableBase/column-menu.js +1 -1
- package/dist/components/data/TableBase/column-styles.js +1 -1
- package/dist/components/data/TableBase/column-tint.js +1 -1
- package/dist/components/data/TableBase/row-menu.js +1 -1
- package/dist/components/data/TableBase/styled.js +1 -1
- package/dist/components/data/TableBase/table-body-sections.js +1 -1
- package/dist/components/data/TableBase/table-tree.js +1 -1
- package/dist/components/data/TableBase/types.js +1 -1
- package/dist/components/data/TableBase/use-cell-selection.js +0 -0
- package/dist/components/data/TableBase/use-column-menu.js +1 -1
- package/dist/components/data/TableBase/use-column-order.js +1 -1
- package/dist/components/data/TableBase/use-column-window.js +1 -1
- package/dist/components/data/TableBase/use-container-width.js +1 -1
- package/dist/components/data/TableBase/use-row-move-animation.js +1 -1
- package/dist/components/data/TableBase/use-scrollability.js +1 -1
- package/dist/components/data/TableBase/use-table-columns.js +1 -1
- package/dist/components/data/TableBase/use-table-search.js +1 -1
- package/dist/components/data/TableBase/use-table-selection.js +1 -1
- package/dist/components/data/TableBase/use-table-sort.js +1 -1
- package/dist/components/data/TableBase/use-table-sorts.js +1 -1
- package/dist/components/data/TableBase/use-table-storage.js +1 -1
- package/dist/components/data/TableBase/use-table-tooltip-refresh.js +1 -1
- package/dist/components/data/TableBase/use-table-tree-state.js +1 -1
- package/dist/components/fields/Checkbox/Checkbox.d.ts +3 -2
- package/dist/components/fields/Checkbox/Checkbox.js +5 -6
- package/dist/components/fields/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/fields/Checkbox/CheckboxGroup.d.ts +3 -2
- package/dist/components/fields/Checkbox/CheckboxGroup.js +38 -31
- package/dist/components/fields/Checkbox/CheckboxGroup.js.map +1 -1
- package/dist/components/fields/Checkbox/context.js +1 -1
- package/dist/components/fields/ColorInput/ColorInput.d.ts +3 -2
- package/dist/components/fields/ColorInput/ColorInput.js +1 -1
- package/dist/components/fields/ColorInput/ColorInput.js.map +1 -1
- package/dist/components/fields/ColorPicker/ColorPicker.d.ts +3 -2
- package/dist/components/fields/ColorPicker/ColorPicker.js +150 -137
- package/dist/components/fields/ColorPicker/ColorPicker.js.map +1 -1
- package/dist/components/fields/ColorSwatch/ColorSwatch.d.ts +3 -2
- package/dist/components/fields/ColorSwatch/ColorSwatch.js +47 -28
- package/dist/components/fields/ColorSwatch/ColorSwatch.js.map +1 -1
- package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.d.ts +3 -2
- package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js +157 -135
- package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js.map +1 -1
- package/dist/components/fields/ComboBox/ComboBox.d.ts +3 -2
- package/dist/components/fields/ComboBox/ComboBox.js +240 -225
- package/dist/components/fields/ComboBox/ComboBox.js.map +1 -1
- package/dist/components/fields/ComboBox/comboBoxOptions.js +1 -1
- package/dist/components/fields/CommandTextArea/CommandTextArea.js +1 -1
- package/dist/components/fields/CommandTextArea/caretPosition.js +1 -1
- package/dist/components/fields/CommandTextArea/useCaretAnchor.js +1 -1
- package/dist/components/fields/DatePicker/CalendarPopover.js +4 -3
- package/dist/components/fields/DatePicker/CalendarPopover.js.map +1 -1
- package/dist/components/fields/DatePicker/DateInput.d.ts +3 -2
- package/dist/components/fields/DatePicker/DateInput.js +4 -1
- package/dist/components/fields/DatePicker/DateInput.js.map +1 -1
- package/dist/components/fields/DatePicker/DateInputBase.js +108 -92
- package/dist/components/fields/DatePicker/DateInputBase.js.map +1 -1
- package/dist/components/fields/DatePicker/DatePicker.d.ts +3 -2
- package/dist/components/fields/DatePicker/DatePicker.js +42 -32
- package/dist/components/fields/DatePicker/DatePicker.js.map +1 -1
- package/dist/components/fields/DatePicker/DatePickerButton.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerElement.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerInput.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerSegment.js +1 -1
- package/dist/components/fields/DatePicker/DateRangePicker.d.ts +3 -2
- package/dist/components/fields/DatePicker/DateRangePicker.js +32 -27
- package/dist/components/fields/DatePicker/DateRangePicker.js.map +1 -1
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.d.ts +3 -2
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +185 -175
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js.map +1 -1
- package/dist/components/fields/DatePicker/MonthPicker.js +1 -1
- package/dist/components/fields/DatePicker/PeriodPicker.d.ts +3 -2
- package/dist/components/fields/DatePicker/PeriodPicker.js +97 -86
- package/dist/components/fields/DatePicker/PeriodPicker.js.map +1 -1
- package/dist/components/fields/DatePicker/QuarterPicker.js +1 -1
- package/dist/components/fields/DatePicker/TimeInput.d.ts +3 -2
- package/dist/components/fields/DatePicker/TimeInput.js +4 -1
- package/dist/components/fields/DatePicker/TimeInput.js.map +1 -1
- package/dist/components/fields/DatePicker/WeekPicker.js +1 -1
- package/dist/components/fields/DatePicker/YearPicker.js +1 -1
- package/dist/components/fields/DatePicker/parseDate.js +1 -1
- package/dist/components/fields/DatePicker/period.js +1 -1
- package/dist/components/fields/DatePicker/props.js +1 -1
- package/dist/components/fields/DatePicker/utils.js +1 -1
- package/dist/components/fields/FileInput/FileInput.d.ts +3 -2
- package/dist/components/fields/FileInput/FileInput.js +104 -87
- package/dist/components/fields/FileInput/FileInput.js.map +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js +3 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js.map +1 -1
- package/dist/components/fields/FilterListBox/styled.js +1 -1
- package/dist/components/fields/FilterPicker/FilterPicker.d.ts +2 -2
- package/dist/components/fields/FilterPicker/FilterPicker.js +4 -3
- package/dist/components/fields/FilterPicker/FilterPicker.js.map +1 -1
- package/dist/components/fields/FilterPicker/FilterTree.js +1 -1
- package/dist/components/fields/Input/Input.js +1 -1
- package/dist/components/fields/ListBox/DraggableListBox.js +1 -1
- package/dist/components/fields/ListBox/ListBox.d.ts +3 -2
- package/dist/components/fields/ListBox/ListBox.js +15 -3
- package/dist/components/fields/ListBox/ListBox.js.map +1 -1
- package/dist/components/fields/ListBox/empty-row.js +1 -1
- package/dist/components/fields/ListBox/optionId.js +1 -1
- package/dist/components/fields/ListBoxPopover/ListBoxPopover.js +4 -3
- package/dist/components/fields/ListBoxPopover/ListBoxPopover.js.map +1 -1
- package/dist/components/fields/ListBoxPopover/listNavigation.js +1 -1
- package/dist/components/fields/ListBoxPopover/useCompositeFocus.js +1 -1
- package/dist/components/fields/NumberInput/NumberInput.js +1 -1
- package/dist/components/fields/NumberInput/StepButton.js +1 -1
- package/dist/components/fields/PasswordInput/PasswordInput.js +1 -1
- package/dist/components/fields/Picker/Picker.d.ts +2 -2
- package/dist/components/fields/Picker/Picker.js +4 -3
- package/dist/components/fields/Picker/Picker.js.map +1 -1
- package/dist/components/fields/RadioGroup/Radio.d.ts +6 -5
- package/dist/components/fields/RadioGroup/Radio.js +113 -137
- package/dist/components/fields/RadioGroup/Radio.js.map +1 -1
- package/dist/components/fields/RadioGroup/RadioGroup.d.ts +3 -2
- package/dist/components/fields/RadioGroup/RadioGroup.js +67 -79
- package/dist/components/fields/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/components/fields/RadioGroup/context.js +1 -1
- package/dist/components/fields/RadioGroup/joined-styles.js +100 -0
- package/dist/components/fields/RadioGroup/joined-styles.js.map +1 -0
- package/dist/components/fields/SearchComboBox/SearchComboBox.d.ts +3 -2
- package/dist/components/fields/SearchComboBox/SearchComboBox.js +7 -3
- package/dist/components/fields/SearchComboBox/SearchComboBox.js.map +1 -1
- package/dist/components/fields/SearchInput/SearchInput.js +1 -1
- package/dist/components/fields/Select/Select.d.ts +5 -3
- package/dist/components/fields/Select/Select.js +87 -69
- package/dist/components/fields/Select/Select.js.map +1 -1
- package/dist/components/fields/Slider/Gradation.js +1 -1
- package/dist/components/fields/Slider/HueSlider.js +1 -1
- package/dist/components/fields/Slider/RangeSlider.js +1 -1
- package/dist/components/fields/Slider/Slider.js +1 -1
- package/dist/components/fields/Slider/SliderBase.js +44 -24
- package/dist/components/fields/Slider/SliderBase.js.map +1 -1
- package/dist/components/fields/Slider/SliderThumb.js +1 -1
- package/dist/components/fields/Slider/SliderTrack.js +1 -1
- package/dist/components/fields/Slider/elements.js +1 -1
- package/dist/components/fields/Slider/index.js +1 -1
- package/dist/components/fields/Slider/types.d.ts +3 -2
- package/dist/components/fields/Switch/Switch.d.ts +3 -2
- package/dist/components/fields/Switch/Switch.js +9 -3
- package/dist/components/fields/Switch/Switch.js.map +1 -1
- package/dist/components/fields/TagInput/TagInput.d.ts +3 -2
- package/dist/components/fields/TagInput/TagInput.js +5 -5
- package/dist/components/fields/TagInput/TagInput.js.map +1 -1
- package/dist/components/fields/TagInput/TagList.js +1 -1
- package/dist/components/fields/TagInput/useActiveOption.js +1 -1
- package/dist/components/fields/TagInput/useTagError.js +1 -1
- package/dist/components/fields/TextArea/TextArea.js +1 -1
- package/dist/components/fields/TextInput/TextInput.js +1 -1
- package/dist/components/fields/TextInput/TextInputBase.d.ts +3 -2
- package/dist/components/fields/TextInput/TextInputBase.js +14 -3
- package/dist/components/fields/TextInput/TextInputBase.js.map +1 -1
- package/dist/components/fields/TextInput/displayed-validation.js +1 -1
- package/dist/components/fields/TextInput/useAutoSizeTextArea.js +1 -1
- package/dist/components/fields/TextInputMapper/TextInputMapper.js +1 -1
- package/dist/components/fields/ToggleGroup/ToggleGroup.d.ts +53 -0
- package/dist/components/fields/ToggleGroup/ToggleGroup.js +237 -0
- package/dist/components/fields/ToggleGroup/ToggleGroup.js.map +1 -0
- package/dist/components/fields/ToggleGroup/ToggleGroupItem.d.ts +29 -0
- package/dist/components/fields/ToggleGroup/ToggleGroupItem.js +166 -0
- package/dist/components/fields/ToggleGroup/ToggleGroupItem.js.map +1 -0
- package/dist/components/fields/ToggleGroup/context.d.ts +8 -0
- package/dist/components/fields/ToggleGroup/context.js +13 -0
- package/dist/components/fields/ToggleGroup/context.js.map +1 -0
- package/dist/components/fields/ToggleGroup/index.d.ts +5 -0
- package/dist/components/fields/TriggerActions.js +1 -1
- package/dist/components/fields/color/ColorPanel.js +1 -1
- package/dist/components/fields/color/channels.js +1 -1
- package/dist/components/fields/color/color.js +1 -1
- package/dist/components/fields/color/context.js +1 -1
- package/dist/components/fields/index.d.ts +5 -1
- package/dist/components/fields/option-origin-press.js +1 -1
- package/dist/components/form/FieldWrapper/FieldWrapper.js +1 -1
- package/dist/components/form/FieldWrapper/field-description.js +1 -1
- package/dist/components/form/Form/Field.js +1 -1
- package/dist/components/form/Form/Form.d.ts +3 -2
- package/dist/components/form/Form/Form.js +6 -4
- package/dist/components/form/Form/Form.js.map +1 -1
- package/dist/components/form/Form/FormContext.js +1 -1
- package/dist/components/form/Form/FormElement.js +1 -1
- package/dist/components/form/Form/ModernFormRoot.js +43 -40
- package/dist/components/form/Form/ModernFormRoot.js.map +1 -1
- package/dist/components/form/Form/ResetButton/ResetButton.js +1 -1
- package/dist/components/form/Form/SubmitButton/SubmitButton.js +1 -1
- package/dist/components/form/Form/SubmitError.js +1 -1
- package/dist/components/form/Form/backend.js +1 -1
- package/dist/components/form/Form/index.js +1 -1
- package/dist/components/form/Form/modern/actions.js +1 -1
- package/dist/components/form/Form/modern/context.js +1 -1
- package/dist/components/form/Form/modern/controller.js +1 -1
- package/dist/components/form/Form/modern/field-binding.js +1 -1
- package/dist/components/form/Form/modern/field.js +1 -1
- package/dist/components/form/Form/modern/react.js +1 -1
- package/dist/components/form/Form/modern/store.js +1 -1
- package/dist/components/form/Form/modern/validation.js +1 -1
- package/dist/components/form/Form/modern/values.js +1 -1
- package/dist/components/form/Form/reset-unbound-controls.js +1 -1
- package/dist/components/form/Form/use-field/use-field-binding.js +1 -1
- package/dist/components/form/Form/use-field/use-field-props.js +1 -1
- package/dist/components/form/Form/use-field/use-field.js +1 -1
- package/dist/components/form/Form/use-form.js +1 -1
- package/dist/components/form/Form/validation.js +1 -1
- package/dist/components/form/Label.d.ts +3 -2
- package/dist/components/form/Label.js +31 -26
- package/dist/components/form/Label.js.map +1 -1
- package/dist/components/form/field-chrome.js +1 -1
- package/dist/components/form/field-layout.js +1 -1
- package/dist/components/form/legacy-tooltip.js +1 -1
- package/dist/components/form/validation/ValidationIndicator.js +1 -1
- package/dist/components/form/validation/resolve-validation-props.js +1 -1
- package/dist/components/form/validation/use-validation-props.js +1 -1
- package/dist/components/form/wrapper.js +1 -1
- package/dist/components/helpers/DisplayTransition/DisplayTransition.js +1 -1
- package/dist/components/helpers/IconSwitch/IconSwitch.js +1 -1
- package/dist/components/layout/Flex.js +1 -1
- package/dist/components/layout/Flow.js +1 -1
- package/dist/components/layout/Grid.js +1 -1
- package/dist/components/layout/Panel.js +1 -1
- package/dist/components/layout/Prefix.d.ts +3 -2
- package/dist/components/layout/Prefix.js +22 -17
- package/dist/components/layout/Prefix.js.map +1 -1
- package/dist/components/layout/ResizablePanel.js +1 -1
- package/dist/components/layout/Space.js +1 -1
- package/dist/components/layout/Suffix.d.ts +3 -2
- package/dist/components/layout/Suffix.js +22 -17
- package/dist/components/layout/Suffix.js.map +1 -1
- package/dist/components/navigation/Pagination/Pagination.js +1 -1
- package/dist/components/navigation/Pagination/use-pagination.js +1 -1
- package/dist/components/navigation/Tabs/BoardDragActiveProvider.js +1 -1
- package/dist/components/navigation/Tabs/DraggableTabList.js +1 -1
- package/dist/components/navigation/Tabs/TabButton.js +148 -143
- package/dist/components/navigation/Tabs/TabButton.js.map +1 -1
- package/dist/components/navigation/Tabs/TabDropIndicator.js +1 -1
- package/dist/components/navigation/Tabs/TabPanel.js +1 -1
- package/dist/components/navigation/Tabs/TabPicker.js +1 -1
- package/dist/components/navigation/Tabs/Tabs.js +15 -5
- package/dist/components/navigation/Tabs/Tabs.js.map +1 -1
- package/dist/components/navigation/Tabs/TabsAction.js +1 -1
- package/dist/components/navigation/Tabs/TabsContext.js +1 -1
- package/dist/components/navigation/Tabs/popover-placement.js +1 -1
- package/dist/components/navigation/Tabs/segmented-styles.js +1 -1
- package/dist/components/navigation/Tabs/styled.js +1 -1
- package/dist/components/navigation/Tabs/types.d.ts +4 -3
- package/dist/components/navigation/Tabs/types.js +1 -1
- package/dist/components/navigation/Tabs/types.js.map +1 -1
- package/dist/components/navigation/Tabs/use-tab-editing.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-indicator.js +54 -101
- package/dist/components/navigation/Tabs/use-tab-indicator.js.map +1 -1
- package/dist/components/organisms/StatsCard/StatsCard.js +1 -1
- package/dist/components/other/Calendar/Calendar.js +1 -1
- package/dist/components/other/Calendar/CalendarCell.js +1 -1
- package/dist/components/other/Calendar/CalendarGrid.js +1 -1
- package/dist/components/other/Calendar/CalendarHeader.js +1 -1
- package/dist/components/other/Calendar/CalendarPanel.js +1 -1
- package/dist/components/other/Calendar/PeriodCalendar.js +1 -1
- package/dist/components/other/Calendar/PeriodGrid.js +1 -1
- package/dist/components/other/Calendar/RangeCalendar.js +1 -1
- package/dist/components/other/Calendar/styled.js +1 -1
- package/dist/components/other/CubeLogo/CubeLogo.js +1 -1
- package/dist/components/other/NoDataIcon/NoDataIcon.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
- package/dist/components/overlays/Dialog/Dialog.d.ts +3 -2
- package/dist/components/overlays/Dialog/Dialog.js +5 -2
- package/dist/components/overlays/Dialog/Dialog.js.map +1 -1
- package/dist/components/overlays/Dialog/DialogContainer.js +1 -1
- package/dist/components/overlays/Dialog/DialogForm.js +1 -1
- package/dist/components/overlays/Dialog/DialogTrigger.js +4 -3
- package/dist/components/overlays/Dialog/DialogTrigger.js.map +1 -1
- package/dist/components/overlays/Dialog/ModernDialogForm.js +1 -1
- package/dist/components/overlays/Dialog/context.js +1 -1
- package/dist/components/overlays/Dialog/default-button-text.js +1 -1
- package/dist/components/overlays/Dialog/use-content-overflow.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-container.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-open-sync.js +1 -1
- package/dist/components/overlays/Dialog/use-dismiss-confirmation.js +1 -1
- package/dist/components/overlays/Dialog/use-retained-dialog-focus.js +1 -1
- package/dist/components/overlays/Modal/Modal.js +1 -1
- package/dist/components/overlays/Modal/OpenTransitionContext.js +1 -1
- package/dist/components/overlays/Modal/Overlay.js +1 -1
- package/dist/components/overlays/Modal/Popover.js +1 -1
- package/dist/components/overlays/Modal/Tray.js +1 -1
- package/dist/components/overlays/Modal/Underlay.js +1 -1
- package/dist/components/overlays/Modal/modal-containment.js +1 -1
- package/dist/components/overlays/Notifications/Notification.js +1 -1
- package/dist/components/overlays/Notifications/NotificationAction.js +1 -1
- package/dist/components/overlays/Notifications/NotificationCard.js +1 -1
- package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
- package/dist/components/overlays/Notifications/NotificationItem.js +1 -1
- package/dist/components/overlays/Notifications/OverlayContainer.js +1 -1
- package/dist/components/overlays/Notifications/OverlayProvider.js +1 -1
- package/dist/components/overlays/Notifications/PersistentNotificationsList.js +1 -1
- package/dist/components/overlays/Notifications/dismissed-storage.js +1 -1
- package/dist/components/overlays/Notifications/format-relative-time.js +1 -1
- package/dist/components/overlays/Notifications/index.js +1 -1
- package/dist/components/overlays/Notifications/use-notification-state.js +1 -1
- package/dist/components/overlays/Notifications/use-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-overlay-timers.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-state.js +1 -1
- package/dist/components/overlays/Notifications/use-toast-state.js +1 -1
- package/dist/components/overlays/Toast/ToastItem.js +1 -1
- package/dist/components/overlays/Toast/index.js +1 -1
- package/dist/components/overlays/Toast/useProgressToast.js +1 -1
- package/dist/components/overlays/Toast/useToast.js +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.d.ts +3 -2
- package/dist/components/overlays/Tooltip/Tooltip.js +60 -28
- package/dist/components/overlays/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/overlays/Tooltip/TooltipProvider.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipTrigger.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipTrigger.js.map +1 -1
- package/dist/components/overlays/Tooltip/context.js +1 -1
- package/dist/components/overlays/Tooltip/split-trigger-props.js +1 -1
- package/dist/components/portal/Portal.js +1 -1
- package/dist/components/portal/PortalProvider.js +1 -1
- package/dist/components/portal/usePortal.js +1 -1
- package/dist/components/shared/DraggableCollection.js +1 -1
- package/dist/components/shared/InvalidIcon.js +1 -1
- package/dist/components/shared/ValidIcon.js +1 -1
- package/dist/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
- package/dist/components/status/Spin/Cube.js +1 -1
- package/dist/components/status/Spin/InternalSpinner.js +1 -1
- package/dist/components/status/Spin/Spin.js +1 -1
- package/dist/components/status/Spin/SpinsContainer.js +1 -1
- package/dist/data/item-themes.js +3 -3
- package/dist/data/item-themes.js.map +1 -1
- package/dist/data/themes.js +1 -1
- package/dist/eslint-plugin/defaults.generated.js +1 -1
- package/dist/eslint-plugin/index.js +1 -1
- package/dist/eslint-plugin/rules/no-redundant-default-prop.js +1 -1
- package/dist/i18n/I18nProvider.js +1 -1
- package/dist/i18n/createFormatter.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/instance.js +1 -1
- package/dist/i18n/locales/de-DE/uikit.js +1 -1
- package/dist/i18n/locales/en-US/uikit.js +1 -1
- package/dist/i18n/locales/es-ES/uikit.js +1 -1
- package/dist/i18n/locales/es-MX/uikit.js +1 -1
- package/dist/i18n/locales/fr-FR/uikit.js +1 -1
- package/dist/i18n/locales/it-IT/uikit.js +1 -1
- package/dist/i18n/locales/ja-JP/uikit.js +1 -1
- package/dist/i18n/locales/nb-NO/uikit.js +1 -1
- package/dist/i18n/locales/pt-BR/uikit.js +1 -1
- package/dist/i18n/locales/pt-PT/uikit.js +1 -1
- package/dist/i18n/locales/sv-SE/uikit.js +1 -1
- package/dist/i18n/locales/vi-VN/uikit.js +1 -1
- package/dist/i18n/locales.js +1 -1
- package/dist/i18n/namespace.js +1 -1
- package/dist/i18n/useFormatter.js +1 -1
- package/dist/i18n/useI18n.js +1 -1
- package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
- package/dist/icons/AdjustmentsIcon.js +1 -1
- package/dist/icons/AiIcon.js +1 -1
- package/dist/icons/AreaChartIcon.js +1 -1
- package/dist/icons/ArrowNarrowDownIcon.js +1 -1
- package/dist/icons/ArrowNarrowUpIcon.js +1 -1
- package/dist/icons/BackwardIcon.js +1 -1
- package/dist/icons/BarChartIcon.js +1 -1
- package/dist/icons/BellFilledIcon.js +1 -1
- package/dist/icons/BellIcon.js +1 -1
- package/dist/icons/BooleanIcon.js +1 -1
- package/dist/icons/CalendarEditIcon.js +1 -1
- package/dist/icons/CalendarIcon.js +1 -1
- package/dist/icons/CaretDownIcon.js +1 -1
- package/dist/icons/CaretUpIcon.js +1 -1
- package/dist/icons/ChartAreaStackedIcon.js +1 -1
- package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarGroupedIcon.js +1 -1
- package/dist/icons/ChartBarHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarLineIcon.js +1 -1
- package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBoxPlot2Icon.js +1 -1
- package/dist/icons/ChartBoxPlotIcon.js +1 -1
- package/dist/icons/ChartBubbleIcon.js +1 -1
- package/dist/icons/ChartDonut2Icon.js +1 -1
- package/dist/icons/ChartFunnelIcon.js +1 -1
- package/dist/icons/ChartHeatmapIcon.js +1 -1
- package/dist/icons/ChartKPIIcon.js +1 -1
- package/dist/icons/ChartPie2Icon.js +1 -1
- package/dist/icons/ChartScatterIcon.js +1 -1
- package/dist/icons/CheckCircleFilledIcon.js +1 -1
- package/dist/icons/CheckCircleIcon.js +1 -1
- package/dist/icons/CheckIcon.js +1 -1
- package/dist/icons/CircleFilledIcon.js +1 -1
- package/dist/icons/ClearIcon.js +1 -1
- package/dist/icons/CloseCircleFilledIcon.js +1 -1
- package/dist/icons/CloseCircleIcon.js +1 -1
- package/dist/icons/CloseIcon.js +1 -1
- package/dist/icons/CodeIcon.js +1 -1
- package/dist/icons/ColumnTotalIcon.js +1 -1
- package/dist/icons/CopyIcon.js +1 -1
- package/dist/icons/CountIcon.js +1 -1
- package/dist/icons/CubeIcon.js +1 -1
- package/dist/icons/CubePauseIcon.js +1 -1
- package/dist/icons/CubePlayIcon.js +1 -1
- package/dist/icons/CurrencyDollarIcon.js +1 -1
- package/dist/icons/DangerIcon.js +1 -1
- package/dist/icons/DashboardIcon.js +1 -1
- package/dist/icons/DatabaseIcon.js +1 -1
- package/dist/icons/DecimalDecreaseIcon.js +1 -1
- package/dist/icons/DecimalIncreaseIcon.js +1 -1
- package/dist/icons/DirectionIcon.js +1 -1
- package/dist/icons/DonutIcon.js +1 -1
- package/dist/icons/DownIcon.js +1 -1
- package/dist/icons/EditIcon.js +1 -1
- package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
- package/dist/icons/ExclamationCircleIcon.js +1 -1
- package/dist/icons/ExclamationIcon.js +1 -1
- package/dist/icons/EyeIcon.js +1 -1
- package/dist/icons/EyeInvisibleIcon.js +1 -1
- package/dist/icons/FilterIcon.js +1 -1
- package/dist/icons/FolderFilledIcon.js +1 -1
- package/dist/icons/FolderIcon.js +1 -1
- package/dist/icons/FolderOpenFilledIcon.js +1 -1
- package/dist/icons/FolderOpenIcon.js +1 -1
- package/dist/icons/ForwardIcon.js +1 -1
- package/dist/icons/GripVerticalIcon.js +1 -1
- package/dist/icons/HierarchyIcon.js +1 -1
- package/dist/icons/HierarchyOpenIcon.js +1 -1
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/InfoCircleIcon.js +1 -1
- package/dist/icons/InfoIcon.js +1 -1
- package/dist/icons/KeyIcon.js +1 -1
- package/dist/icons/LeftIcon.js +1 -1
- package/dist/icons/LineChartIcon.js +1 -1
- package/dist/icons/LoadingIcon.js +1 -1
- package/dist/icons/LockFilledIcon.js +1 -1
- package/dist/icons/LockIcon.js +1 -1
- package/dist/icons/MoreIcon.js +1 -1
- package/dist/icons/NotAllowedIcon.js +1 -1
- package/dist/icons/Number123Icon.js +1 -1
- package/dist/icons/NumberIcon.js +1 -1
- package/dist/icons/PauseCircleFilledIcon.js +1 -1
- package/dist/icons/PauseCircleIcon.js +1 -1
- package/dist/icons/PauseIcon.js +1 -1
- package/dist/icons/PercentageIcon.js +1 -1
- package/dist/icons/PieChartIcon.js +1 -1
- package/dist/icons/PipetteIcon.js +1 -1
- package/dist/icons/PlayCircleIcon.js +1 -1
- package/dist/icons/PlayIcon.js +1 -1
- package/dist/icons/PlusIcon.js +1 -1
- package/dist/icons/ProgressBarIcon.js +1 -1
- package/dist/icons/ReloadIcon.js +1 -1
- package/dist/icons/ReportIcon.js +1 -1
- package/dist/icons/ReturnIcon.js +1 -1
- package/dist/icons/RightIcon.js +1 -1
- package/dist/icons/RowTotalsIcon.js +1 -1
- package/dist/icons/SchemeIcon.js +1 -1
- package/dist/icons/SearchIcon.js +1 -1
- package/dist/icons/SemanticQueryIcon.js +1 -1
- package/dist/icons/SettingsIcon.js +1 -1
- package/dist/icons/ShieldFilledIcon.js +1 -1
- package/dist/icons/ShieldIcon.js +1 -1
- package/dist/icons/SlashIcon.js +1 -1
- package/dist/icons/SparklesIcon.js +1 -1
- package/dist/icons/SqlIcon.js +1 -1
- package/dist/icons/StatsIcon.js +1 -1
- package/dist/icons/StopIcon.js +1 -1
- package/dist/icons/StringIcon.js +1 -1
- package/dist/icons/SubtotalsIcon.js +1 -1
- package/dist/icons/SwitchIcon.js +1 -1
- package/dist/icons/TableIcon.js +1 -1
- package/dist/icons/ThumbsDownIcon.js +1 -1
- package/dist/icons/ThumbsUpIcon.js +1 -1
- package/dist/icons/ThunderboltCrossedIcon.js +1 -1
- package/dist/icons/ThunderboltFilledIcon.js +1 -1
- package/dist/icons/ThunderboltIcon.js +1 -1
- package/dist/icons/TimeIcon.js +1 -1
- package/dist/icons/TrashIcon.js +1 -1
- package/dist/icons/UnlockIcon.js +1 -1
- package/dist/icons/UpIcon.js +1 -1
- package/dist/icons/UserGroupIcon.js +1 -1
- package/dist/icons/UserIcon.js +1 -1
- package/dist/icons/UserLockIcon.js +1 -1
- package/dist/icons/ViewIcon.js +1 -1
- package/dist/icons/WarningFilledIcon.js +1 -1
- package/dist/icons/WarningIcon.js +1 -1
- package/dist/icons/wrap-icon.js +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/probe/canonicalize.js +1 -1
- package/dist/probe/css.js +1 -1
- package/dist/probe/index.js +1 -1
- package/dist/provider.js +1 -1
- package/dist/providers/TrackingProvider.js +1 -1
- package/dist/providers/navigation-url.js +1 -1
- package/dist/providers/navigationAdapter.default.js +1 -1
- package/dist/providers/use-navigation.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 +12 -3
- package/dist/tokens/palette.js.map +1 -1
- package/dist/tokens/resolve.js +1 -1
- package/dist/tokens/shadows.js +1 -1
- package/dist/tokens/sizes.js +1 -1
- package/dist/tokens/spacing.js +1 -1
- package/dist/tokens/typography.js +1 -1
- package/dist/utils/ResizeSensor.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/dotize.js +1 -1
- package/dist/utils/is-dev-env.js +1 -1
- package/dist/utils/layout-scale.js +25 -0
- package/dist/utils/layout-scale.js.map +1 -0
- package/dist/utils/modules.js +1 -1
- package/dist/utils/promise.js +1 -1
- package/dist/utils/raf.js +1 -1
- package/dist/utils/random.js +1 -1
- package/dist/utils/range.js +1 -1
- package/dist/utils/react/RenderCache.js +1 -1
- package/dist/utils/react/Slots.js +1 -1
- package/dist/utils/react/chain.js +1 -1
- package/dist/utils/react/componentBaseProps.d.ts +9 -0
- package/dist/utils/react/componentBaseProps.js +15 -0
- package/dist/utils/react/componentBaseProps.js.map +1 -0
- package/dist/utils/react/disabledProps.js +1 -1
- package/dist/utils/react/forwardRefWithGenerics.js +1 -1
- package/dist/utils/react/index.js +1 -1
- package/dist/utils/react/interactions.js +1 -1
- package/dist/utils/react/isTextOnly.js +1 -1
- package/dist/utils/react/mapProps.js +1 -1
- package/dist/utils/react/mergeProps.js +1 -1
- package/dist/utils/react/nullableValue.js +1 -1
- package/dist/utils/react/overlayKeyPropagation.js +1 -1
- package/dist/utils/react/pickBaseCustomizationProps.d.ts +2 -0
- package/dist/utils/react/pickBaseCustomizationProps.js +16 -0
- package/dist/utils/react/pickBaseCustomizationProps.js.map +1 -0
- package/dist/utils/react/programmaticFocus.js +1 -1
- package/dist/utils/react/resolveIcon.js +1 -1
- package/dist/utils/react/sharedStore.js +1 -1
- package/dist/utils/react/useBufferedValue.js +1 -1
- package/dist/utils/react/useCombinedRefs.js +1 -1
- package/dist/utils/react/useControlledFocusVisible.js +1 -1
- package/dist/utils/react/useEventBus.js +1 -1
- package/dist/utils/react/useId.js +1 -1
- package/dist/utils/react/useIsDarwin.js +1 -1
- package/dist/utils/react/useKeySymbols.js +1 -1
- package/dist/utils/react/useLayoutEffect.js +1 -1
- package/dist/utils/react/useLocalStorage.js +1 -1
- package/dist/utils/react/useMergeStyles.js +1 -1
- package/dist/utils/react/useOverlayEscapeGuard.js +1 -1
- package/dist/utils/react/useOverlayPosition.js +75 -0
- package/dist/utils/react/useOverlayPosition.js.map +1 -0
- package/dist/utils/react/usePopoverSync.js +1 -1
- package/dist/utils/react/useQaProps.js +1 -1
- package/dist/utils/react/useScheme.js +1 -1
- package/dist/utils/react/useViewportSize.js +1 -1
- package/dist/utils/react/wrapNodeIfPlain.js +1 -1
- package/dist/utils/selection.js +1 -1
- package/dist/utils/styles.js +1 -1
- package/dist/utils/tree.js +1 -1
- package/dist/utils/warnings.js +1 -1
- package/dist/version.js +2 -2
- package/docs/BaseProperties.md +9 -4
- package/docs/CreateComponent.md +15 -8
- package/docs/Theming.md +2 -0
- package/docs/Usage.md +2 -0
- package/docs/components/GridProvider.md +1 -1
- package/docs/components/fields/ColorSwatchGroup.md +7 -5
- package/docs/components/fields/RadioGroup.md +13 -0
- package/docs/components/fields/ToggleGroup.md +227 -0
- package/package.json +1 -1
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @cube-dev/ui-kit
|
|
2
2
|
|
|
3
|
+
## 0.213.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1654](https://github.com/cube-js/cube-ui-kit/pull/1654) [`db345c310`](https://github.com/cube-js/cube-ui-kit/commit/db345c310829c073c6ad7386526c57650649de3c) Thanks [@tenphi](https://github.com/tenphi)! - Affected fields, layout components, overlays, tabs, trees and tables forward supported QA, class, inline style, token and modifier props to their control or root. Radio, checkbox, color swatch and toggle groups follow the same contract, and `ToggleGroup.Item` accepts integration styles and classes on its button. These component APIs own their slot names and expose `theme` or `title` only where they control appearance or content. `Slider`, `RangeSlider`, `HueSlider` and `Label` honor a caller-provided `qa`.
|
|
8
|
+
|
|
9
|
+
- [#1651](https://github.com/cube-js/cube-ui-kit/pull/1651) [`6788c5357`](https://github.com/cube-js/cube-ui-kit/commit/6788c53576b18b0591822e31cf9a75c385029d85) Thanks [@tenphi](https://github.com/tenphi)! - **ToggleGroup:** a new form field, a joined row of toggle buttons that holds a value. In `selectionMode="single"` (the default) at most one item is on, and pressing it again clears the selection; in `selectionMode="multiple"` each item toggles on its own. It takes `Picker`'s selection API (`selectedKey` / `defaultSelectedKey`, `selectedKeys` / `defaultSelectedKeys`, `onSelectionChange`), binds to a `Form` as a key or `null` in single mode and an array of keys in multiple mode, and takes `size`, `type` (`outline`, `outline-2`, `clear`) and the field props. Items are `ToggleGroup.Item` with `icon`, `children`, `tooltip`, `aria-label` and `isDisabled`, keyed by their React `key` or an explicit `id`. A single group is a `radiogroup` and a multiple one a `toolbar`: the arrow keys move between the items, Space and Enter toggle them, and the group is one tab stop. A disabled item with a tooltip stays focusable so the keyboard can reach the reason. It looks like `Radio.Group type="button"`, and the two share one style definition. Use `Radio.Group type="button"` when exactly one option must always be selected.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#1652](https://github.com/cube-js/cube-ui-kit/pull/1652) [`c4a92bc0b`](https://github.com/cube-js/cube-ui-kit/commit/c4a92bc0b4361ca89cb8213c09230fe373f35272) Thanks [@tenphi](https://github.com/tenphi)! - `RadioGroup` (with `Radio.ButtonGroup` and `Radio.Tabs`), `CheckboxGroup` and `ColorSwatchGroup` now put the caller's `qaVal`, `className`, `style`, `tokens` and `mods` on the group element, as `ToggleGroup` and `Picker` do. A caller's `mods` go over the group's own, and its `tokens` merge with them. `CheckboxGroup` also takes the caller's `qa`.
|
|
14
|
+
|
|
15
|
+
- [#1649](https://github.com/cube-js/cube-ui-kit/pull/1649) [`95f5cea72`](https://github.com/cube-js/cube-ui-kit/commit/95f5cea72c40e76f41a31708ed04efe9613c0abd) Thanks [@tenphi](https://github.com/tenphi)! - An open overlay that changes size now moves to stay on screen, as it does when it opens. Before, it kept the place it opened in: a menu that gained a longer item while open ran past the screen edge, a submenu or popover whose content grew ran past the bottom, a `Select` list squeezed against the edge cut its new option short, and a `DateRangePicker` with `hideTrigger` paged to a six-week month ran off the screen. This covers `MenuTrigger` and its submenus, `DialogTrigger` popovers (and so `Picker`, `FilterPicker`, the date and period pickers, `ColorPicker` and `ColorInput`), `Select` and `DateRangePicker` with `hideTrigger`, on every opening. The lists of `ComboBox`, `SearchComboBox`, `TagInput` and `CommandTextArea` re-place too: a list that opened above its field because it was long moves back below once filtering shortens it. A `Select` list wider than the screen now keeps its `containerPadding` margin (8px by default) on the right too, instead of touching the edge.
|
|
16
|
+
|
|
17
|
+
- [#1651](https://github.com/cube-js/cube-ui-kit/pull/1651) [`6788c5357`](https://github.com/cube-js/cube-ui-kit/commit/6788c53576b18b0591822e31cf9a75c385029d85) Thanks [@tenphi](https://github.com/tenphi)! - **Radio.Group `type="button"`:** the group isolates its stacking (`isolation: isolate`), so the selected button, which is raised above its neighbours to show its border, can no longer paint over a sticky header or another positioned element outside the group. And an `xsmall` button is at least 26px wide instead of 24px: its neighbours cover one border width of each side, so it keeps a 24px target (WCAG 2.5.8). The other sizes look the same.
|
|
18
|
+
|
|
19
|
+
- [#1651](https://github.com/cube-js/cube-ui-kit/pull/1651) [`6788c5357`](https://github.com/cube-js/cube-ui-kit/commit/6788c53576b18b0591822e31cf9a75c385029d85) Thanks [@tenphi](https://github.com/tenphi)! - **Palette:** the label of a selected `outline` or `outline-2` item (a selected `Radio.Group type="button"` button, an `ItemButton type="outline" isSelected`, a `ToggleGroup` item) now meets WCAG AA (4.5:1) in light mode: it measured 4.47:1 on `outline` and 4.20:1 on `outline-2`, and now 4.89:1 and 4.59:1. The `accent-text-soft` tokens behind it, which links and selected `clear` items use too, are a little darker in light mode and a little lighter in dark mode; their high-contrast values and a palette seeded with your own `accent` color are unchanged. And a selected `outline`, `outline-2` or `clear` label now takes the stronger `accent-text` while keyboard focused, as it already did on hover, in every scheme: its fill darkens then too, and the soft label measured 4.46:1 on a focused `outline-2` item.
|
|
20
|
+
|
|
21
|
+
- [#1653](https://github.com/cube-js/cube-ui-kit/pull/1653) [`6648b89b5`](https://github.com/cube-js/cube-ui-kit/commit/6648b89b5b3f029c2ccc6a4feac1dfc091a083a2) Thanks [@tenphi](https://github.com/tenphi)! - **Tabs:** the selection indicator of `default` and `narrow` tabs now follows the selected tab when it changes size or moves while the selection stays the same: a title that loads after the tab is selected, a renamed tab, a tab before it that grows or shrinks, a tab added or closed before it, a reorder through `keyOrder`, or a change of `tabListPadding`. Before, it kept the width and place it measured when the tab was selected, so a tab opened with a short placeholder title kept a short indicator once its real title loaded, and the published (compiled) build did not re-measure when tabs were added, closed or reordered either.
|
|
22
|
+
|
|
23
|
+
- [#1647](https://github.com/cube-js/cube-ui-kit/pull/1647) [`828af921d`](https://github.com/cube-js/cube-ui-kit/commit/828af921da3a601d6722a6744b8b2a64e6dd1f9b) Thanks [@tenphi](https://github.com/tenphi)! - **Tabs:** inside an element with `transform: scale(…)`, such as a zoomable canvas, the selection indicator of `default` and `narrow` tabs now sits under the selected tab and stays there when the scale changes, and a strip with more tabs than fit scrolls the active tab fully into view. Before, both were off by the scale: the indicator was placed at the scale's share of the tab's offset and width, and the strip scrolled only that share of the way.
|
|
24
|
+
|
|
3
25
|
## 0.212.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.213.0 | Cube Dev Team */
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { useEffect, useRef, useState } from "react";
|
|
4
4
|
//#region src/_internal/hooks/use-debounced-value.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.213.0 | Cube Dev Team */
|
|
2
2
|
import { deprecationWarning } from "../../utils/warnings.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import React, { useEffect } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.213.0 | Cube Dev Team */
|
|
2
2
|
import { useLayoutEffect as useLayoutEffect$1 } from "../../utils/react/useLayoutEffect.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { useRef } from "react";
|
package/dist/components/Block.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.213.0 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../utils/styles.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { CONTAINER_STYLES, filterBaseProps, tasty } from "@tenphi/tasty";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.213.0 | Cube Dev Team */
|
|
2
2
|
import { ItemAction } from "./actions/ItemAction/ItemAction.js";
|
|
3
3
|
import { ItemBadge } from "./content/ItemBadge/ItemBadge.js";
|
|
4
4
|
import { Item } from "react-stately";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.213.0 | Cube Dev Team */
|
|
2
2
|
import { mergeStyleLayers } from "../utils/styles.js";
|
|
3
3
|
import { usePaletteValue } from "../tokens/palette-config.js";
|
|
4
4
|
import { getTokens } from "../tokens/all-tokens.js";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
|
|
2
|
+
import { BaseProps } from "@tenphi/tasty";
|
|
2
3
|
import { ReactNode } from "react";
|
|
3
4
|
//#region src/components/GridProvider.d.ts
|
|
4
|
-
export interface CubeGridProviderProps {
|
|
5
|
+
export interface CubeGridProviderProps extends Pick<BaseProps, 'tokens'> {
|
|
5
6
|
children: ReactNode;
|
|
6
7
|
columns?: number;
|
|
7
8
|
/** Gap between columns, as a single Tasty value such as `'1x'`, or a number of pixels. */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.213.0 | Cube Dev Team */
|
|
2
2
|
import { useCombinedRefs } from "../utils/react/useCombinedRefs.js";
|
|
3
|
-
import {
|
|
3
|
+
import { filterComponentBaseProps } from "../utils/react/componentBaseProps.js";
|
|
4
|
+
import { tasty } from "@tenphi/tasty";
|
|
4
5
|
import { forwardRef, useCallback, useEffect, useState } from "react";
|
|
5
6
|
import { jsx } from "react/jsx-runtime";
|
|
6
7
|
//#region src/components/GridProvider.tsx
|
|
@@ -44,12 +45,13 @@ const GridProvider = forwardRef(function GridProvider(props, outerRef) {
|
|
|
44
45
|
resizeCallback();
|
|
45
46
|
}, [resizeCallback]);
|
|
46
47
|
return /* @__PURE__ */ jsx(GridElement, {
|
|
47
|
-
...
|
|
48
|
+
...filterComponentBaseProps(props, { eventProps: true }),
|
|
48
49
|
ref,
|
|
49
50
|
tokens: {
|
|
50
51
|
"$grid-width": toLength(width),
|
|
51
52
|
"$columns-amount": columns,
|
|
52
|
-
"$column-gap": toLength(gap)
|
|
53
|
+
"$column-gap": toLength(gap),
|
|
54
|
+
...props.tokens
|
|
53
55
|
},
|
|
54
56
|
children
|
|
55
57
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridProvider.js","names":["
|
|
1
|
+
{"version":3,"file":"GridProvider.js","names":["BaseProps","tasty","forwardRef","ReactNode","useCallback","useEffect","useState","filterComponentBaseProps","useCombinedRefs","GridElement","styles","display","toLength","value","CubeGridProviderProps","Pick","children","columns","gap","width","initialWidth","GridProvider","HTMLDivElement","props","outerRef","ref","forcedWidth","setWidth","resizeCallback","el","current","parentElement","computedStyle","getComputedStyle","containerWidth","clientWidth","parseFloat","paddingLeft","paddingRight","parentNode","sensor","then","module","ResizeSensor","detach","eventProps","tokens"],"sources":["../../src/components/GridProvider.tsx"],"sourcesContent":["import { BaseProps, tasty } from '@tenphi/tasty';\nimport { forwardRef, ReactNode, useCallback, useEffect, useState } from 'react';\n\nimport { filterComponentBaseProps } from '../utils/react/componentBaseProps';\nimport { useCombinedRefs } from '../utils/react/useCombinedRefs';\n\nconst GridElement = tasty({\n styles: {\n display: 'contents',\n '$column-width':\n '(($grid-width - ($column-gap * ($columns-amount - 1))) / $columns-amount)',\n },\n});\n\n/** Numbers are pixels: a custom property gets no default unit. */\nfunction toLength(value: string | number) {\n return typeof value === 'number' ? `${value}px` : value;\n}\n\nexport interface CubeGridProviderProps extends Pick<BaseProps, 'tokens'> {\n children: ReactNode;\n columns?: number;\n /** Gap between columns, as a single Tasty value such as `'1x'`, or a number of pixels. */\n gap?: string | number;\n /** Forced container width, as a single Tasty value, or a number of pixels. */\n width?: string | number;\n /** Width before the resize observer measures the container, as a single Tasty value, or a number of pixels. */\n initialWidth?: string | number;\n}\n\nexport const GridProvider = forwardRef<HTMLDivElement, CubeGridProviderProps>(\n function GridProvider(props, outerRef) {\n let ref = useCombinedRefs(outerRef);\n\n let {\n children,\n columns = 2,\n gap = 0,\n width: forcedWidth,\n initialWidth,\n } = props;\n\n let [width, setWidth] = useState<string | number>(\n forcedWidth || initialWidth || '100vw',\n );\n\n const resizeCallback = useCallback(() => {\n const el = ref?.current?.parentElement;\n\n if (!el) return;\n\n const computedStyle = getComputedStyle(el);\n const containerWidth =\n el.clientWidth -\n parseFloat(computedStyle.paddingLeft) -\n parseFloat(computedStyle.paddingRight);\n\n setWidth(`${containerWidth}px`);\n }, [ref, columns, gap]);\n\n useEffect(() => {\n if (forcedWidth) return;\n\n const el = ref && ref.current && ref.current.parentNode;\n\n if (!el) return;\n\n let sensor;\n\n import('../utils/ResizeSensor')\n .then((module) => module.ResizeSensor)\n .then((ResizeSensor) => {\n sensor = new ResizeSensor(el, resizeCallback);\n });\n\n return () => {\n if (sensor) {\n sensor.detach();\n }\n };\n }, [resizeCallback]);\n\n useEffect(() => {\n if (forcedWidth) return;\n\n resizeCallback();\n }, [resizeCallback]);\n\n return (\n <GridElement\n {...filterComponentBaseProps(props, { eventProps: true })}\n ref={ref}\n tokens={{\n '$grid-width': toLength(width),\n '$columns-amount': columns,\n '$column-gap': toLength(gap),\n ...props.tokens,\n }}\n >\n {children}\n </GridElement>\n );\n },\n);\n"],"mappings":";;;;;;;AAMA,MAAMS,cAAcR,MAAM,EACxBS,QAAQ;CACNC,SAAS;CACT,iBACE;AACJ,EACF,CAAC;;AAGD,SAASC,SAASC,OAAwB;CACxC,OAAO,OAAOA,UAAU,WAAW,GAAGA,MAAK,MAAOA;AACpD;AAaA,MAAaQ,eAAenB,WAC1B,SAASmB,aAAaE,OAAOC,UAAU;CACrC,IAAIC,MAAMjB,gBAAgBgB,QAAQ;CAElC,IAAI,EACFR,UACAC,UAAU,GACVC,MAAM,GACNC,OAAOO,aACPN,iBACEG;CAEJ,IAAI,CAACJ,OAAOQ,YAAYrB,SACtBoB,eAAeN,gBAAgB,OACjC;CAEA,MAAMQ,iBAAiBxB,kBAAkB;EACvC,MAAMyB,KAAKJ,KAAKK,SAASC;EAEzB,IAAI,CAACF,IAAI;EAET,MAAMG,gBAAgBC,iBAAiBJ,EAAE;EACzC,MAAMK,iBACJL,GAAGM,cACHC,WAAWJ,cAAcK,WAAW,IACpCD,WAAWJ,cAAcM,YAAY;EAEvCX,SAAS,GAAGO,eAAc,GAAI;CAChC,GAAG;EAACT;EAAKR;EAASC;CAAG,CAAC;CAEtBb,gBAAgB;EACd,IAAIqB,aAAa;EAEjB,MAAMG,OAAKJ,OAAOA,IAAIK,WAAWL,IAAIK,QAAQS;EAE7C,IAAI,CAACV,MAAI;EAET,IAAIW;EAEJ,OAAO,2BAAwB,CAC5BC,MAAMC,WAAWA,OAAOC,YAAY,CAAC,CACrCF,MAAME,iBAAiB;GACtBH,SAAS,IAAIG,aAAad,MAAID,cAAc;EAC9C,CAAC;EAEH,aAAa;GACX,IAAIY,QACFA,OAAOI,OAAO;EAElB;CACF,GAAG,CAAChB,cAAc,CAAC;CAEnBvB,gBAAgB;EACd,IAAIqB,aAAa;EAEjBE,eAAe;CACjB,GAAG,CAACA,cAAc,CAAC;CAEnB,OACE,oBAAC,aAAD;EACE,GAAIrB,yBAAyBgB,OAAO,EAAEsB,YAAY,KAAK,CAAC;EACnDpB;EACL,QAAQ;GACN,eAAeb,SAASO,KAAK;GAC7B,mBAAmBF;GACnB,eAAeL,SAASM,GAAG;GAC3B,GAAGK,MAAMuB;EACX;EAEC9B;CACU,CAAA;AAEjB,CACF"}
|
package/dist/components/Root.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.213.0 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../utils/styles.js";
|
|
3
3
|
import { PortalProvider } from "./portal/PortalProvider.js";
|
|
4
4
|
import { TASTY_VERSION, VERSION } from "../version.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.213.0 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { useAction } from "../use-action.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.213.0 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
3
3
|
import { useI18n } from "../../../i18n/useI18n.js";
|
|
4
4
|
import { Item as _Item } from "../../content/Item/Item.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.213.0 | Cube Dev Team */
|
|
2
2
|
import { useLayoutEffect as useLayoutEffect$1 } from "../../../utils/react/useLayoutEffect.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { useEffectEvent, useRef } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.213.0 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { mergeProps } from "../../../utils/react/mergeProps.js";
|
|
4
4
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.213.0 | Cube Dev Team */
|
|
2
2
|
import { Button as Button$1, DEFAULT_BUTTON_STYLES } from "./Button.js";
|
|
3
3
|
import { ButtonGroup } from "../ButtonGroup/ButtonGroup.js";
|
|
4
4
|
import { ButtonSplit } from "../ButtonSplit/ButtonSplit.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.213.0 | Cube Dev Team */
|
|
2
2
|
import { useSlotProps } from "../../../utils/react/Slots.js";
|
|
3
3
|
import { Space } from "../../layout/Space.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.213.0 | Cube Dev Team */
|
|
2
2
|
import { extractStyles, mergeStyleLayers } from "../../../utils/styles.js";
|
|
3
3
|
import { mergeProps } from "../../../utils/react/mergeProps.js";
|
|
4
4
|
import { useI18n } from "../../../i18n/useI18n.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.213.0 | Cube Dev Team */
|
|
2
2
|
import { createContext, useContext } from "react";
|
|
3
3
|
//#region src/components/actions/ButtonSplit/context.ts
|
|
4
4
|
const ButtonSplitContext = createContext(null);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
|
+
import { ComponentBasePropsWithoutChildren } from "../../../utils/react/componentBaseProps.js";
|
|
2
3
|
import { ItemAction } from "../ItemAction/ItemAction.js";
|
|
3
4
|
import { CubeMenuItemProps } from "../Menu/MenuCollectionItem.js";
|
|
4
5
|
import { CubeMenuProps } from "../Menu/Menu.js";
|
|
@@ -6,7 +7,7 @@ import "../index.js";
|
|
|
6
7
|
import { ItemBadge } from "../../content/ItemBadge/ItemBadge.js";
|
|
7
8
|
import { CubeCollectionItemProps } from "../../CollectionItem.js";
|
|
8
9
|
import "../../../index.js";
|
|
9
|
-
import {
|
|
10
|
+
import { ContainerStyleProps, Styles } from "@tenphi/tasty";
|
|
10
11
|
import React, { ReactElement, ReactNode } from "react";
|
|
11
12
|
import { FocusStrategy } from "@react-types/shared";
|
|
12
13
|
//#region src/components/actions/CommandMenu/CommandMenu.d.ts
|
|
@@ -17,7 +18,7 @@ export interface CommandMenuItem {
|
|
|
17
18
|
forceMount?: boolean;
|
|
18
19
|
[key: string]: any;
|
|
19
20
|
}
|
|
20
|
-
export interface CubeCommandMenuProps<T> extends
|
|
21
|
+
export interface CubeCommandMenuProps<T> extends ComponentBasePropsWithoutChildren, ContainerStyleProps, Omit<CubeMenuProps<T>, 'selectedKeys' | 'defaultSelectedKeys' | 'onSelectionChange'> {
|
|
21
22
|
searchPlaceholder?: string;
|
|
22
23
|
searchValue?: string;
|
|
23
24
|
onSearchChange?: (value: string) => void;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.213.0 | Cube Dev Team */
|
|
2
2
|
import { extractStyles, mergeStyleLayers } from "../../../utils/styles.js";
|
|
3
3
|
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
4
4
|
import { LoadingIcon } from "../../../icons/LoadingIcon.js";
|
|
5
5
|
import { useI18n } from "../../../i18n/useI18n.js";
|
|
6
|
+
import { filterComponentBaseProps } from "../../../utils/react/componentBaseProps.js";
|
|
6
7
|
import { useMenuContext } from "../Menu/context.js";
|
|
7
8
|
import { MenuCollectionItem as _MenuCollectionItem, getMenuItemReactKey } from "../Menu/MenuCollectionItem.js";
|
|
8
9
|
import { MenuItem } from "../Menu/MenuItem.js";
|
|
@@ -11,7 +12,7 @@ import { MenuSection } from "../Menu/MenuSection.js";
|
|
|
11
12
|
import { MenuTrigger as _MenuTrigger } from "../Menu/MenuTrigger.js";
|
|
12
13
|
import { StyledCommandMenu, StyledEmptyState, StyledLoadingWrapper, StyledSearchInput } from "./styled.js";
|
|
13
14
|
import { c } from "react/compiler-runtime";
|
|
14
|
-
import { CONTAINER_STYLES
|
|
15
|
+
import { CONTAINER_STYLES } from "@tenphi/tasty";
|
|
15
16
|
import React, { useId, useRef, useState } from "react";
|
|
16
17
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
18
|
import { useFilter, useMenu } from "react-aria";
|
|
@@ -38,7 +39,7 @@ function getNextEnabledKey(keys, currentKey, direction, isDisabled) {
|
|
|
38
39
|
return ahead.find(isEnabled) ?? ordered.find(isEnabled) ?? null;
|
|
39
40
|
}
|
|
40
41
|
function CommandMenu(props, ref) {
|
|
41
|
-
const $ = c(
|
|
42
|
+
const $ = c(82);
|
|
42
43
|
const { t } = useI18n();
|
|
43
44
|
const { searchPlaceholder: t0, searchValue: controlledSearchValue, onSearchChange, filter: customFilter, emptyLabel: t1, searchInputStyles, headerStyles, footerStyles, isLoading: t2, shouldFilter: t3, autoFocus: t4, size: t5, qa, styles, selectedKeys, defaultSelectedKeys, onSelectionChange, onAction, header, footer, ...restMenuProps } = props;
|
|
44
45
|
let t6;
|
|
@@ -324,119 +325,115 @@ function CommandMenu(props, ref) {
|
|
|
324
325
|
useSyncRef(contextProps, menuRef);
|
|
325
326
|
const t18 = !!footer;
|
|
326
327
|
const t19 = !!header;
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
if ($[26] !== t18 || $[27] !== t19 || $[28] !== t20 || $[29] !== t21 || $[30] !== viewHasSections) {
|
|
331
|
-
t22 = {
|
|
328
|
+
let t20;
|
|
329
|
+
if ($[26] !== completeProps.mods || $[27] !== t18 || $[28] !== t19 || $[29] !== viewHasSections) {
|
|
330
|
+
t20 = {
|
|
332
331
|
sections: viewHasSections,
|
|
333
332
|
footer: t18,
|
|
334
333
|
header: t19,
|
|
335
|
-
|
|
336
|
-
tray: t21
|
|
334
|
+
...completeProps.mods
|
|
337
335
|
};
|
|
338
|
-
$[26] =
|
|
339
|
-
$[27] =
|
|
340
|
-
$[28] =
|
|
341
|
-
$[29] =
|
|
342
|
-
$[30] =
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
$[32] =
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
const t24 = t23;
|
|
336
|
+
$[26] = completeProps.mods;
|
|
337
|
+
$[27] = t18;
|
|
338
|
+
$[28] = t19;
|
|
339
|
+
$[29] = viewHasSections;
|
|
340
|
+
$[30] = t20;
|
|
341
|
+
} else t20 = $[30];
|
|
342
|
+
const mods = t20;
|
|
343
|
+
let t21;
|
|
344
|
+
if ($[31] !== props) {
|
|
345
|
+
t21 = filterComponentBaseProps(props);
|
|
346
|
+
$[31] = props;
|
|
347
|
+
$[32] = t21;
|
|
348
|
+
} else t21 = $[32];
|
|
349
|
+
const t22 = t21;
|
|
353
350
|
let wrapperProps;
|
|
354
|
-
if ($[
|
|
355
|
-
const { "aria-label": _ariaLabel, "aria-labelledby": _ariaLabelledBy, "aria-describedby": _ariaDescribedBy, "aria-details": _ariaDetails, ...
|
|
356
|
-
wrapperProps =
|
|
357
|
-
$[
|
|
358
|
-
$[
|
|
359
|
-
} else wrapperProps = $[
|
|
351
|
+
if ($[33] !== t22) {
|
|
352
|
+
const { "aria-label": _ariaLabel, "aria-labelledby": _ariaLabelledBy, "aria-describedby": _ariaDescribedBy, "aria-details": _ariaDetails, ...t23 } = t22;
|
|
353
|
+
wrapperProps = t23;
|
|
354
|
+
$[33] = t22;
|
|
355
|
+
$[34] = wrapperProps;
|
|
356
|
+
} else wrapperProps = $[34];
|
|
360
357
|
const T0 = StyledCommandMenu;
|
|
361
|
-
const
|
|
362
|
-
const
|
|
363
|
-
let
|
|
364
|
-
if ($[
|
|
365
|
-
|
|
358
|
+
const t23 = qa || "CommandMenu";
|
|
359
|
+
const t24 = mergeStyleLayers(extractedStyles, styles);
|
|
360
|
+
let t25;
|
|
361
|
+
if ($[35] !== header || $[36] !== headerStyles || $[37] !== size) {
|
|
362
|
+
t25 = header && /* @__PURE__ */ jsx(StyledHeader, {
|
|
366
363
|
role: "presentation",
|
|
367
364
|
"data-size": size,
|
|
368
365
|
styles: mergeStyleLayers({ border: "none" }, headerStyles),
|
|
369
366
|
children: header
|
|
370
367
|
});
|
|
371
|
-
$[
|
|
372
|
-
$[
|
|
373
|
-
$[
|
|
374
|
-
$[
|
|
375
|
-
} else
|
|
376
|
-
const
|
|
377
|
-
const
|
|
378
|
-
const
|
|
379
|
-
const
|
|
380
|
-
const
|
|
368
|
+
$[35] = header;
|
|
369
|
+
$[36] = headerStyles;
|
|
370
|
+
$[37] = size;
|
|
371
|
+
$[38] = t25;
|
|
372
|
+
} else t25 = $[38];
|
|
373
|
+
const t26 = completeProps["aria-label"] ?? searchPlaceholder;
|
|
374
|
+
const t27 = completeProps["aria-labelledby"];
|
|
375
|
+
const t28 = completeProps["aria-describedby"];
|
|
376
|
+
const t29 = completeProps["aria-details"];
|
|
377
|
+
const t30 = !isLoading && !showEmptyState ? menuId : void 0;
|
|
378
|
+
let t31;
|
|
379
|
+
if ($[39] !== autoFocus) {
|
|
380
|
+
t31 = autoFocus ? { "data-autofocus": "" } : void 0;
|
|
381
|
+
$[39] = autoFocus;
|
|
382
|
+
$[40] = t31;
|
|
383
|
+
} else t31 = $[40];
|
|
384
|
+
let t32;
|
|
385
|
+
if ($[41] !== handleSearchChange) {
|
|
386
|
+
t32 = (e_2) => handleSearchChange(e_2.target.value);
|
|
387
|
+
$[41] = handleSearchChange;
|
|
388
|
+
$[42] = t32;
|
|
389
|
+
} else t32 = $[42];
|
|
381
390
|
let t33;
|
|
382
|
-
if ($[
|
|
383
|
-
t33 =
|
|
384
|
-
$[40] = autoFocus;
|
|
385
|
-
$[41] = t33;
|
|
386
|
-
} else t33 = $[41];
|
|
387
|
-
let t34;
|
|
388
|
-
if ($[42] !== handleSearchChange) {
|
|
389
|
-
t34 = (e_2) => handleSearchChange(e_2.target.value);
|
|
390
|
-
$[42] = handleSearchChange;
|
|
391
|
-
$[43] = t34;
|
|
392
|
-
} else t34 = $[43];
|
|
393
|
-
let t35;
|
|
394
|
-
if ($[44] !== activeDescendant || $[45] !== handleSearchKeyDown || $[46] !== searchInputStyles || $[47] !== searchPlaceholder || $[48] !== searchValue || $[49] !== size || $[50] !== t28 || $[51] !== t29 || $[52] !== t30 || $[53] !== t31 || $[54] !== t32 || $[55] !== t33 || $[56] !== t34) {
|
|
395
|
-
t35 = /* @__PURE__ */ jsx(StyledSearchInput, {
|
|
391
|
+
if ($[43] !== activeDescendant || $[44] !== handleSearchKeyDown || $[45] !== searchInputStyles || $[46] !== searchPlaceholder || $[47] !== searchValue || $[48] !== size || $[49] !== t26 || $[50] !== t27 || $[51] !== t28 || $[52] !== t29 || $[53] !== t30 || $[54] !== t31 || $[55] !== t32) {
|
|
392
|
+
t33 = /* @__PURE__ */ jsx(StyledSearchInput, {
|
|
396
393
|
ref: searchInputRef,
|
|
397
394
|
type: "search",
|
|
398
395
|
placeholder: searchPlaceholder,
|
|
399
396
|
value: searchValue,
|
|
400
397
|
styles: searchInputStyles,
|
|
401
398
|
"data-size": size,
|
|
402
|
-
"aria-label":
|
|
403
|
-
"aria-labelledby":
|
|
404
|
-
"aria-describedby":
|
|
405
|
-
"aria-details":
|
|
406
|
-
"aria-controls":
|
|
399
|
+
"aria-label": t26,
|
|
400
|
+
"aria-labelledby": t27,
|
|
401
|
+
"aria-describedby": t28,
|
|
402
|
+
"aria-details": t29,
|
|
403
|
+
"aria-controls": t30,
|
|
407
404
|
role: "searchbox",
|
|
408
405
|
"aria-activedescendant": activeDescendant,
|
|
409
|
-
...
|
|
410
|
-
onChange:
|
|
406
|
+
...t31,
|
|
407
|
+
onChange: t32,
|
|
411
408
|
onKeyDown: handleSearchKeyDown
|
|
412
409
|
});
|
|
413
|
-
$[
|
|
414
|
-
$[
|
|
415
|
-
$[
|
|
416
|
-
$[
|
|
417
|
-
$[
|
|
418
|
-
$[
|
|
419
|
-
$[
|
|
420
|
-
$[
|
|
421
|
-
$[
|
|
422
|
-
$[
|
|
423
|
-
$[
|
|
424
|
-
$[
|
|
425
|
-
$[
|
|
426
|
-
$[
|
|
427
|
-
} else
|
|
428
|
-
let
|
|
429
|
-
if ($[
|
|
430
|
-
|
|
410
|
+
$[43] = activeDescendant;
|
|
411
|
+
$[44] = handleSearchKeyDown;
|
|
412
|
+
$[45] = searchInputStyles;
|
|
413
|
+
$[46] = searchPlaceholder;
|
|
414
|
+
$[47] = searchValue;
|
|
415
|
+
$[48] = size;
|
|
416
|
+
$[49] = t26;
|
|
417
|
+
$[50] = t27;
|
|
418
|
+
$[51] = t28;
|
|
419
|
+
$[52] = t29;
|
|
420
|
+
$[53] = t30;
|
|
421
|
+
$[54] = t31;
|
|
422
|
+
$[55] = t32;
|
|
423
|
+
$[56] = t33;
|
|
424
|
+
} else t33 = $[56];
|
|
425
|
+
let t34;
|
|
426
|
+
if ($[57] !== isLoading || $[58] !== t) {
|
|
427
|
+
t34 = isLoading && /* @__PURE__ */ jsx(StyledLoadingWrapper, { children: /* @__PURE__ */ jsx(LoadingIcon, {
|
|
431
428
|
role: "progressbar",
|
|
432
429
|
"aria-label": t("commandMenu.loading", "Loading commands"),
|
|
433
430
|
"aria-hidden": false
|
|
434
431
|
}) });
|
|
435
|
-
$[
|
|
436
|
-
$[
|
|
437
|
-
$[
|
|
438
|
-
} else
|
|
439
|
-
const
|
|
432
|
+
$[57] = isLoading;
|
|
433
|
+
$[58] = t;
|
|
434
|
+
$[59] = t34;
|
|
435
|
+
} else t34 = $[59];
|
|
436
|
+
const t35 = !isLoading && !showEmptyState && /* @__PURE__ */ jsx(StyledMenu, {
|
|
440
437
|
...menuProps,
|
|
441
438
|
ref: menuRef,
|
|
442
439
|
id: menuId,
|
|
@@ -452,61 +449,61 @@ function CommandMenu(props, ref) {
|
|
|
452
449
|
},
|
|
453
450
|
children: renderedItems
|
|
454
451
|
});
|
|
455
|
-
let
|
|
456
|
-
if ($[
|
|
457
|
-
|
|
458
|
-
$[
|
|
459
|
-
$[
|
|
460
|
-
$[
|
|
461
|
-
$[
|
|
462
|
-
} else
|
|
463
|
-
let
|
|
464
|
-
if ($[
|
|
465
|
-
|
|
452
|
+
let t36;
|
|
453
|
+
if ($[60] !== emptyLabel || $[61] !== isLoading || $[62] !== showEmptyState) {
|
|
454
|
+
t36 = !isLoading && showEmptyState && /* @__PURE__ */ jsx(StyledEmptyState, { children: emptyLabel });
|
|
455
|
+
$[60] = emptyLabel;
|
|
456
|
+
$[61] = isLoading;
|
|
457
|
+
$[62] = showEmptyState;
|
|
458
|
+
$[63] = t36;
|
|
459
|
+
} else t36 = $[63];
|
|
460
|
+
let t37;
|
|
461
|
+
if ($[64] !== footer || $[65] !== footerStyles || $[66] !== size) {
|
|
462
|
+
t37 = footer && /* @__PURE__ */ jsx(StyledFooter, {
|
|
466
463
|
role: "presentation",
|
|
467
464
|
"data-size": size,
|
|
468
465
|
styles: footerStyles,
|
|
469
466
|
children: footer
|
|
470
467
|
});
|
|
471
|
-
$[
|
|
472
|
-
$[
|
|
473
|
-
$[
|
|
474
|
-
$[
|
|
475
|
-
} else
|
|
476
|
-
let
|
|
477
|
-
if ($[
|
|
478
|
-
|
|
468
|
+
$[64] = footer;
|
|
469
|
+
$[65] = footerStyles;
|
|
470
|
+
$[66] = size;
|
|
471
|
+
$[67] = t37;
|
|
472
|
+
} else t37 = $[67];
|
|
473
|
+
let t38;
|
|
474
|
+
if ($[68] !== T0 || $[69] !== domRef || $[70] !== mods || $[71] !== size || $[72] !== t23 || $[73] !== t24 || $[74] !== t25 || $[75] !== t33 || $[76] !== t34 || $[77] !== t35 || $[78] !== t36 || $[79] !== t37 || $[80] !== wrapperProps) {
|
|
475
|
+
t38 = /* @__PURE__ */ jsxs(T0, {
|
|
479
476
|
...wrapperProps,
|
|
480
477
|
ref: domRef,
|
|
481
|
-
qa:
|
|
478
|
+
qa: t23,
|
|
482
479
|
"data-size": size,
|
|
483
480
|
mods,
|
|
484
|
-
styles:
|
|
481
|
+
styles: t24,
|
|
485
482
|
children: [
|
|
486
|
-
|
|
483
|
+
t25,
|
|
484
|
+
t33,
|
|
485
|
+
t34,
|
|
487
486
|
t35,
|
|
488
487
|
t36,
|
|
489
|
-
t37
|
|
490
|
-
t38,
|
|
491
|
-
t39
|
|
488
|
+
t37
|
|
492
489
|
]
|
|
493
490
|
});
|
|
494
|
-
$[
|
|
495
|
-
$[
|
|
496
|
-
$[
|
|
497
|
-
$[
|
|
498
|
-
$[
|
|
499
|
-
$[
|
|
500
|
-
$[
|
|
501
|
-
$[
|
|
502
|
-
$[
|
|
503
|
-
$[
|
|
504
|
-
$[
|
|
505
|
-
$[
|
|
506
|
-
$[
|
|
507
|
-
$[
|
|
508
|
-
} else
|
|
509
|
-
return
|
|
491
|
+
$[68] = T0;
|
|
492
|
+
$[69] = domRef;
|
|
493
|
+
$[70] = mods;
|
|
494
|
+
$[71] = size;
|
|
495
|
+
$[72] = t23;
|
|
496
|
+
$[73] = t24;
|
|
497
|
+
$[74] = t25;
|
|
498
|
+
$[75] = t33;
|
|
499
|
+
$[76] = t34;
|
|
500
|
+
$[77] = t35;
|
|
501
|
+
$[78] = t36;
|
|
502
|
+
$[79] = t37;
|
|
503
|
+
$[80] = wrapperProps;
|
|
504
|
+
$[81] = t38;
|
|
505
|
+
} else t38 = $[81];
|
|
506
|
+
return t38;
|
|
510
507
|
}
|
|
511
508
|
function _temp7(item_2) {
|
|
512
509
|
return item_2.type === "section";
|