@cube-dev/ui-kit 0.0.0-canary-7e9f239 → 0.0.0-canary-13b59ed
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/README.md +0 -2
- package/dist/CHANGELOG.md +0 -46
- package/dist/README.md +0 -2
- 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 -10
- package/dist/components/GlobalStyles.js.map +1 -1
- package/dist/components/GridProvider.js +1 -1
- package/dist/components/HiddenInput.js +1 -1
- package/dist/components/Root.js +1 -1
- package/dist/components/actions/Action/Action.js +1 -1
- package/dist/components/actions/Banner/Banner.js +1 -1
- package/dist/components/actions/Button/AutoCollapseObserver.js +1 -1
- package/dist/components/actions/Button/Button.js +5 -4
- package/dist/components/actions/Button/Button.js.map +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 +0 -7
- package/dist/components/actions/CommandMenu/CommandMenu.js +85 -94
- 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 +6 -5
- package/dist/components/actions/ItemAction/ItemAction.js.map +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 +2 -4
- package/dist/components/actions/ItemButton/ItemButton.js.map +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 +59 -63
- package/dist/components/actions/Menu/MenuTrigger.js.map +1 -1
- package/dist/components/actions/Menu/SubMenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubmenuTriggerContext.js +1 -1
- package/dist/components/actions/Menu/context.js +1 -1
- package/dist/components/actions/Menu/styled.js +1 -1
- package/dist/components/actions/actions-run.js +1 -1
- package/dist/components/actions/use-action.js +2 -4
- package/dist/components/actions/use-action.js.map +1 -1
- package/dist/components/actions/use-anchored-menu.js +1 -1
- package/dist/components/actions/use-context-menu.d.ts +1 -4
- package/dist/components/actions/use-context-menu.js +1 -6
- package/dist/components/actions/use-context-menu.js.map +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 +6 -9
- package/dist/components/content/Item/Item.js.map +1 -1
- package/dist/components/content/Item/ItemWithNativeLinks.js +1 -1
- package/dist/components/content/ItemBadge/ItemBadge.js +1 -1
- package/dist/components/content/ItemCard/ItemCard.js +1 -1
- package/dist/components/content/Layout/GridLayout.js +1 -1
- package/dist/components/content/Layout/Layout.js +1 -1
- package/dist/components/content/Layout/LayoutBlock.js +1 -1
- package/dist/components/content/Layout/LayoutCenter.js +1 -1
- package/dist/components/content/Layout/LayoutContainer.js +1 -1
- package/dist/components/content/Layout/LayoutContent.js +1 -1
- package/dist/components/content/Layout/LayoutContext.js +1 -1
- package/dist/components/content/Layout/LayoutFlex.js +1 -1
- package/dist/components/content/Layout/LayoutFooter.js +1 -1
- package/dist/components/content/Layout/LayoutGrid.js +1 -1
- package/dist/components/content/Layout/LayoutHeader.js +1 -1
- package/dist/components/content/Layout/LayoutPane.js +1 -1
- package/dist/components/content/Layout/LayoutPanel.js +1 -1
- package/dist/components/content/Layout/LayoutPanelHeader.js +1 -1
- package/dist/components/content/Layout/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.js +1 -1
- package/dist/components/content/PrismCode/PrismCode.js +1 -1
- package/dist/components/content/PrismCode/prismSetup.js +1 -1
- package/dist/components/content/PrismDiffCode/PrismDiffCode.js +1 -1
- package/dist/components/content/Result/Result.js +1 -1
- package/dist/components/content/Skeleton/Skeleton.js +1 -1
- package/dist/components/content/Tag/Tag.js +1 -1
- package/dist/components/content/Text.js +1 -1
- package/dist/components/content/TextItem/TextItem.js +1 -1
- package/dist/components/content/Title.js +1 -1
- package/dist/components/content/Tree/Tree.js +19 -26
- package/dist/components/content/Tree/Tree.js.map +1 -1
- package/dist/components/content/Tree/TreeNode.js +4 -5
- package/dist/components/content/Tree/TreeNode.js.map +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 +8 -15
- package/dist/components/content/Tree/styled.js.map +1 -1
- package/dist/components/content/Tree/tree-index.js +2 -21
- package/dist/components/content/Tree/tree-index.js.map +1 -1
- package/dist/components/content/Tree/types.d.ts +5 -15
- 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 +1 -1
- package/dist/components/data/DataTable/types.d.ts +2 -4
- package/dist/components/data/ItemTable/ItemTable.js +1 -1
- package/dist/components/data/ItemTable/ItemTableBulkBar.js +1 -1
- package/dist/components/data/ItemTable/ItemTableDragPreview.js +1 -1
- package/dist/components/data/ItemTable/ItemTableFooter.js +1 -1
- package/dist/components/data/ItemTable/ItemTableToolbar.js +1 -1
- package/dist/components/data/ItemTable/item-table-sections.js +1 -1
- package/dist/components/data/ItemTable/types.d.ts +4 -8
- 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.js +2 -13
- 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.js +1 -1
- package/dist/components/fields/Checkbox/CheckboxGroup.js +1 -1
- package/dist/components/fields/Checkbox/context.js +1 -1
- package/dist/components/fields/ColorInput/ColorInput.js +1 -3
- package/dist/components/fields/ColorInput/ColorInput.js.map +1 -1
- package/dist/components/fields/ColorPicker/ColorPicker.js +1 -1
- package/dist/components/fields/ColorSwatch/ColorSwatch.js +1 -1
- package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js +1 -1
- package/dist/components/fields/ComboBox/ComboBox.d.ts +1 -2
- package/dist/components/fields/ComboBox/ComboBox.js +138 -150
- 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 +4 -2
- package/dist/components/fields/CommandTextArea/CommandTextArea.js.map +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 +1 -1
- package/dist/components/fields/DatePicker/DateInput.js +1 -1
- package/dist/components/fields/DatePicker/DateInputBase.js +1 -1
- package/dist/components/fields/DatePicker/DatePicker.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerButton.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerElement.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerInput.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerSegment.js +1 -1
- package/dist/components/fields/DatePicker/DateRangePicker.js +1 -1
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +1 -1
- package/dist/components/fields/DatePicker/MonthPicker.js +1 -1
- package/dist/components/fields/DatePicker/PeriodPicker.js +1 -1
- package/dist/components/fields/DatePicker/QuarterPicker.js +1 -1
- package/dist/components/fields/DatePicker/TimeInput.js +1 -1
- package/dist/components/fields/DatePicker/WeekPicker.js +1 -1
- package/dist/components/fields/DatePicker/YearPicker.js +1 -1
- package/dist/components/fields/DatePicker/parseDate.js +1 -1
- package/dist/components/fields/DatePicker/period.js +1 -1
- package/dist/components/fields/DatePicker/props.js +1 -1
- package/dist/components/fields/DatePicker/utils.js +1 -1
- package/dist/components/fields/FileInput/FileInput.js +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.d.ts +0 -17
- package/dist/components/fields/FilterListBox/FilterListBox.js +4 -7
- 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 +12 -59
- package/dist/components/fields/FilterPicker/FilterPicker.js +14 -36
- package/dist/components/fields/FilterPicker/FilterPicker.js.map +1 -1
- package/dist/components/fields/FilterPicker/FilterTree.js +69 -114
- package/dist/components/fields/FilterPicker/FilterTree.js.map +1 -1
- package/dist/components/fields/FilterPicker/index.d.ts +2 -2
- package/dist/components/fields/Input/Input.js +1 -1
- package/dist/components/fields/ListBox/DraggableListBox.js +1 -1
- package/dist/components/fields/ListBox/ListBox.js +13 -45
- 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 +3 -4
- 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.js +2 -3
- package/dist/components/fields/Picker/Picker.js.map +1 -1
- package/dist/components/fields/RadioGroup/Radio.js +2 -2
- package/dist/components/fields/RadioGroup/Radio.js.map +1 -1
- package/dist/components/fields/RadioGroup/RadioGroup.js +2 -6
- 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 +2 -3
- package/dist/components/fields/RadioGroup/joined-styles.js.map +1 -1
- package/dist/components/fields/SearchComboBox/SearchComboBox.d.ts +0 -7
- package/dist/components/fields/SearchComboBox/SearchComboBox.js +3 -7
- package/dist/components/fields/SearchComboBox/SearchComboBox.js.map +1 -1
- package/dist/components/fields/SearchInput/SearchInput.js +2 -3
- package/dist/components/fields/SearchInput/SearchInput.js.map +1 -1
- package/dist/components/fields/Select/Select.js +33 -36
- package/dist/components/fields/Select/Select.js.map +1 -1
- package/dist/components/fields/Slider/Gradation.js +1 -1
- package/dist/components/fields/Slider/HueSlider.js +1 -1
- package/dist/components/fields/Slider/RangeSlider.js +1 -1
- package/dist/components/fields/Slider/Slider.js +1 -1
- package/dist/components/fields/Slider/SliderBase.js +1 -1
- package/dist/components/fields/Slider/SliderThumb.js +1 -1
- package/dist/components/fields/Slider/SliderTrack.js +1 -1
- package/dist/components/fields/Slider/elements.js +1 -1
- package/dist/components/fields/Slider/index.js +1 -1
- package/dist/components/fields/Switch/Switch.js +18 -27
- package/dist/components/fields/Switch/Switch.js.map +1 -1
- package/dist/components/fields/TagInput/TagInput.js +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/useSuffixSpace.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 +1 -1
- package/dist/components/fields/TextInput/TextInputBase.js +1 -1
- 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/identifier-text-services.js +1 -1
- package/dist/components/fields/TextInput/password-manager-ignore.js +1 -1
- package/dist/components/fields/TextInput/useAutoSizeTextArea.js +1 -1
- package/dist/components/fields/TextInputMapper/TextInputMapper.d.ts +2 -2
- package/dist/components/fields/TextInputMapper/TextInputMapper.js +1 -2
- package/dist/components/fields/TextInputMapper/TextInputMapper.js.map +1 -1
- package/dist/components/fields/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/components/fields/ToggleGroup/ToggleGroupItem.js +1 -1
- package/dist/components/fields/ToggleGroup/context.js +1 -1
- package/dist/components/fields/TriggerActions.js +1 -1
- package/dist/components/fields/color/ColorPanel.js +1 -1
- package/dist/components/fields/color/channels.js +1 -1
- package/dist/components/fields/color/color.js +1 -1
- package/dist/components/fields/color/context.js +1 -1
- package/dist/components/fields/index.d.ts +2 -3
- 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.js +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 +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.js +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.js +1 -1
- package/dist/components/layout/ResizablePanel.js +1 -1
- package/dist/components/layout/Space.js +1 -1
- package/dist/components/layout/Suffix.js +1 -1
- package/dist/components/navigation/NavTabs/NavTabs.js +1 -1
- package/dist/components/navigation/Pagination/Pagination.js +1 -1
- package/dist/components/navigation/Pagination/use-pagination.js +1 -1
- package/dist/components/navigation/Tabs/BoardDragActiveProvider.js +1 -1
- package/dist/components/navigation/Tabs/DraggableTabList.js +1 -1
- package/dist/components/navigation/Tabs/TabButton.js +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 +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/scroll-tab-into-strip.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.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-editing.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-indicator.js +1 -1
- package/dist/components/organisms/StatsCard/StatsCard.js +1 -1
- package/dist/components/other/Calendar/Calendar.js +1 -1
- package/dist/components/other/Calendar/CalendarCell.js +1 -1
- package/dist/components/other/Calendar/CalendarGrid.js +1 -1
- package/dist/components/other/Calendar/CalendarHeader.js +1 -1
- package/dist/components/other/Calendar/CalendarPanel.js +1 -1
- package/dist/components/other/Calendar/PeriodCalendar.js +1 -1
- package/dist/components/other/Calendar/PeriodGrid.js +1 -1
- package/dist/components/other/Calendar/RangeCalendar.js +1 -1
- package/dist/components/other/Calendar/styled.js +1 -1
- package/dist/components/other/CubeLogo/CubeLogo.js +1 -1
- package/dist/components/other/NoDataIcon/NoDataIcon.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
- package/dist/components/overlays/Dialog/Dialog.js +14 -16
- 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 +46 -107
- 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/context.js.map +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 +2 -2
- package/dist/components/overlays/Dialog/use-retained-dialog-focus.js.map +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.js +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/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 +1 -1
- package/dist/data/themes.js +1 -1
- package/dist/eslint-plugin/defaults.generated.js +3 -8
- 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/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 +2 -3
- package/dist/index.js +1 -1
- package/dist/probe/canonicalize.js +1 -1
- package/dist/probe/css.js +1 -1
- package/dist/probe/index.js +1 -1
- package/dist/provider.js +1 -1
- package/dist/providers/TrackingProvider.js +1 -1
- package/dist/providers/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 +25 -4
- package/dist/tokens/base.js.map +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 +61 -10
- 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 +1 -1
- package/dist/utils/modules.js +1 -1
- package/dist/utils/promise.js +1 -1
- package/dist/utils/raf.js +1 -1
- package/dist/utils/random.js +1 -1
- package/dist/utils/range.js +1 -1
- package/dist/utils/react/RenderCache.js +1 -1
- package/dist/utils/react/Slots.js +1 -1
- package/dist/utils/react/chain.js +1 -1
- package/dist/utils/react/componentBaseProps.js +1 -1
- package/dist/utils/react/disabledProps.d.ts +3 -9
- package/dist/utils/react/disabledProps.js +5 -9
- package/dist/utils/react/disabledProps.js.map +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.js +1 -1
- package/dist/utils/react/programmaticFocus.js +1 -1
- package/dist/utils/react/resolveIcon.js +1 -1
- package/dist/utils/react/sharedStore.js +1 -1
- package/dist/utils/react/useBufferedValue.js +1 -1
- package/dist/utils/react/useCombinedRefs.js +1 -1
- package/dist/utils/react/useControlledFocusVisible.js +1 -1
- package/dist/utils/react/useEventBus.js +1 -1
- package/dist/utils/react/useId.js +1 -1
- package/dist/utils/react/useIsDarwin.js +1 -1
- package/dist/utils/react/useKeySymbols.js +1 -1
- package/dist/utils/react/useLayoutEffect.js +1 -1
- package/dist/utils/react/useLocalStorage.js +1 -1
- package/dist/utils/react/useMergeStyles.js +1 -1
- package/dist/utils/react/useOverlayEscapeGuard.js +1 -1
- package/dist/utils/react/useOverlayPosition.js +1 -1
- package/dist/utils/react/usePopoverSync.js +1 -1
- package/dist/utils/react/useQaProps.js +1 -1
- package/dist/utils/react/useScheme.js +1 -1
- package/dist/utils/react/useViewportSize.js +1 -1
- package/dist/utils/react/wrapNodeIfPlain.js +1 -1
- package/dist/utils/selection.js +1 -1
- package/dist/utils/styles.js +1 -1
- package/dist/utils/tree.js +1 -1
- package/dist/utils/warnings.js +1 -1
- package/dist/version.js +3 -3
- package/harness/plugin.json +1 -1
- package/package.json +8 -11
- package/{docs/components/Block.md → src/components/Block.docs.mdx} +7 -1
- package/{docs/components/CollectionItem.md → src/components/CollectionItem.docs.mdx} +12 -8
- package/{docs/components/GridProvider.md → src/components/GridProvider.docs.mdx} +4 -0
- package/{docs/components/Root.md → src/components/Root.docs.mdx} +6 -2
- package/{docs/components/actions/Action.md → src/components/actions/Action/Action.docs.mdx} +7 -1
- package/{docs/components/actions/Banner.md → src/components/actions/Banner/Banner.docs.mdx} +17 -3
- package/{docs/components/actions/Button.md → src/components/actions/Button/Button.docs.mdx} +21 -4
- package/{docs/components/actions/ButtonGroup.md → src/components/actions/ButtonGroup/ButtonGroup.docs.mdx} +6 -2
- package/{docs/components/actions/ButtonSplit.md → src/components/actions/ButtonSplit/ButtonSplit.docs.mdx} +20 -3
- package/{docs/components/actions/CommandMenu.md → src/components/actions/CommandMenu/CommandMenu.docs.mdx} +33 -18
- package/{docs/components/actions/ItemAction.md → src/components/actions/ItemAction/ItemAction.docs.mdx} +10 -1
- package/{docs/components/actions/ItemButton.md → src/components/actions/ItemButton/ItemButton.docs.mdx} +18 -9
- package/{docs/components/actions/Link.md → src/components/actions/Link/Link.docs.mdx} +13 -3
- package/{docs/components/actions/Menu.md → src/components/actions/Menu/Menu.docs.mdx} +27 -15
- package/{docs/components/actions/MenuTrigger.md → src/components/actions/Menu/MenuTrigger.docs.mdx} +5 -1
- package/{docs/components/actions/SubMenuTrigger.md → src/components/actions/Menu/SubMenuTrigger.docs.mdx} +5 -1
- package/{docs/components/actions/use-anchored-menu.md → src/components/actions/use-anchored-menu.docs.mdx} +9 -5
- package/{docs/components/actions/use-context-menu.md → src/components/actions/use-context-menu.docs.mdx} +12 -21
- package/{docs/components/content/ActiveZone.md → src/components/content/ActiveZone/ActiveZone.docs.mdx} +7 -1
- package/{docs/components/content/Alert.md → src/components/content/Alert/Alert.docs.mdx} +19 -1
- package/{docs/components/content/Avatar.md → src/components/content/Avatar/Avatar.docs.mdx} +7 -1
- package/{docs/components/content/Badge.md → src/components/content/Badge/Badge.docs.mdx} +23 -2
- package/{docs/components/content/Card.md → src/components/content/Card/Card.docs.mdx} +7 -1
- package/{docs/components/content/Content.md → src/components/content/Content.docs.mdx} +5 -1
- package/{docs/components/content/CopyPasteBlock.md → src/components/content/CopyPasteBlock/CopyPasteBlock.docs.mdx} +7 -1
- package/{docs/components/content/CopySnippet.md → src/components/content/CopySnippet/CopySnippet.docs.mdx} +7 -1
- package/{docs/components/content/Disclosure.md → src/components/content/Disclosure/Disclosure.docs.mdx} +34 -3
- package/{docs/components/content/Divider.md → src/components/content/Divider/Divider.docs.mdx} +12 -2
- package/{docs/components/content/Footer.md → src/components/content/Footer.docs.mdx} +5 -1
- package/{docs/components/content/Header.md → src/components/content/Header.docs.mdx} +5 -1
- package/{docs/components/content/HotKeys.md → src/components/content/HotKeys/HotKeys.docs.mdx} +41 -5
- package/{docs/components/content/InfoBadge.md → src/components/content/InfoBadge/InfoBadge.docs.mdx} +7 -1
- package/{docs/components/content/InlineInput.md → src/components/content/InlineInput/InlineInput.docs.mdx} +36 -3
- package/{docs/components/content/Item.md → src/components/content/Item/Item.docs.mdx} +36 -16
- package/{docs/components/content/ItemBadge.md → src/components/content/ItemBadge/ItemBadge.docs.mdx} +7 -1
- package/{docs/components/content/ItemCard.md → src/components/content/ItemCard/ItemCard.docs.mdx} +21 -6
- package/{docs/components/content/Layout.md → src/components/content/Layout/Layout.docs.mdx} +40 -6
- package/{docs/components/content/Paragraph.md → src/components/content/Paragraph.docs.mdx} +8 -2
- package/{docs/components/content/Placeholder.md → src/components/content/Placeholder/Placeholder.docs.mdx} +7 -1
- package/{docs/components/content/PrismCode.md → src/components/content/PrismCode/PrismCode.docs.mdx} +7 -1
- package/{docs/components/content/PrismDiffCode.md → src/components/content/PrismDiffCode/PrismDiffCode.docs.mdx} +7 -1
- package/{docs/components/content/Result.md → src/components/content/Result/Result.docs.mdx} +49 -4
- package/{docs/components/content/Skeleton.md → src/components/content/Skeleton/Skeleton.docs.mdx} +8 -2
- package/{docs/components/content/Tag.md → src/components/content/Tag/Tag.docs.mdx} +21 -2
- package/{docs/components/content/Text.md → src/components/content/Text.docs.mdx} +7 -1
- package/{docs/components/content/TextItem.md → src/components/content/TextItem/TextItem.docs.mdx} +30 -4
- package/{docs/components/content/Title.md → src/components/content/Title.docs.mdx} +5 -1
- package/{docs/components/content/Tree.md → src/components/content/Tree/Tree.docs.mdx} +35 -10
- package/{docs/components/data/DataTable.md → src/components/data/DataTable/DataTable.docs.mdx} +43 -7
- package/{docs/components/data/ItemTable.md → src/components/data/ItemTable/ItemTable.docs.mdx} +73 -14
- package/{docs/components/fields/Checkbox.md → src/components/fields/Checkbox/Checkbox.docs.mdx} +14 -6
- package/{docs/components/fields/ColorInput.md → src/components/fields/ColorInput/ColorInput.docs.mdx} +19 -7
- package/{docs/components/fields/ColorPicker.md → src/components/fields/ColorPicker/ColorPicker.docs.mdx} +24 -10
- package/{docs/components/fields/ColorSwatch.md → src/components/fields/ColorSwatch/ColorSwatch.docs.mdx} +17 -5
- package/{docs/components/fields/ColorSwatchGroup.md → src/components/fields/ColorSwatchGroup/ColorSwatchGroup.docs.mdx} +25 -7
- package/{docs/components/fields/ComboBox.md → src/components/fields/ComboBox/ComboBox.docs.mdx} +66 -21
- package/{docs/components/fields/CommandTextArea.md → src/components/fields/CommandTextArea/CommandTextArea.docs.mdx} +22 -14
- package/{docs/components/fields/DatePicker.md → src/components/fields/DatePicker/DatePicker.docs.mdx} +13 -5
- package/{docs/components/fields/PeriodPicker.md → src/components/fields/DatePicker/PeriodPicker.docs.mdx} +32 -5
- package/{docs/components/fields/FileInput.md → src/components/fields/FileInput/FileInput.docs.mdx} +16 -6
- package/{docs/components/fields/FilterListBox.md → src/components/fields/FilterListBox/FilterListBox.docs.mdx} +48 -55
- package/{docs/components/fields/FilterPicker.md → src/components/fields/FilterPicker/FilterPicker.docs.mdx} +68 -120
- package/{docs/components/fields/ListBox.md → src/components/fields/ListBox/ListBox.docs.mdx} +64 -14
- package/{docs/components/fields/NumberInput.md → src/components/fields/NumberInput/NumberInput.docs.mdx} +18 -8
- package/{docs/components/fields/PasswordInput.md → src/components/fields/PasswordInput/PasswordInput.docs.mdx} +15 -7
- package/{docs/components/fields/Picker.md → src/components/fields/Picker/Picker.docs.mdx} +53 -23
- package/{docs/components/fields/RadioGroup.md → src/components/fields/RadioGroup/RadioGroup.docs.mdx} +26 -16
- package/{docs/components/fields/SearchComboBox.md → src/components/fields/SearchComboBox/SearchComboBox.docs.mdx} +39 -17
- package/{docs/components/fields/SearchInput.md → src/components/fields/SearchInput/SearchInput.docs.mdx} +18 -8
- package/{docs/components/fields/Select.md → src/components/fields/Select/Select.docs.mdx} +55 -20
- package/{docs/components/fields/HueSlider.md → src/components/fields/Slider/HueSlider.docs.mdx} +26 -6
- package/{docs/components/fields/Slider.md → src/components/fields/Slider/Slider.docs.mdx} +34 -2
- package/{docs/components/fields/Switch.md → src/components/fields/Switch/Switch.docs.mdx} +38 -6
- package/{docs/components/fields/TagInput.md → src/components/fields/TagInput/TagInput.docs.mdx} +45 -12
- package/{docs/components/fields/TextArea.md → src/components/fields/TextArea/TextArea.docs.mdx} +30 -4
- package/{docs/components/fields/TextInput.md → src/components/fields/TextInput/TextInput.docs.mdx} +19 -9
- package/{docs/components/fields/TextInputMapper.md → src/components/fields/TextInputMapper/TextInputMapper.docs.mdx} +12 -3
- package/{docs/components/fields/ToggleGroup.md → src/components/fields/ToggleGroup/ToggleGroup.docs.mdx} +33 -12
- package/{docs/components/form/Field.md → src/components/form/Form/Field.docs.mdx} +16 -6
- package/{docs/components/form/Form.md → src/components/form/Form/Form.docs.mdx} +21 -6
- package/{docs/components/form/FormInstance.md → src/components/form/Form/FormInstance.docs.mdx} +9 -1
- package/src/components/form/Form/ModernForm.docs.mdx +6 -0
- package/{docs/components/form/ModernForm.md → src/components/form/Form/modern-form-guide.md} +4 -4
- package/{docs/components/form → src/components/form/Form}/modern-form-migration.md +1 -1
- package/src/components/form/Form/modern-form-typecheck.md +35 -0
- package/{docs/components/helpers/DisplayTransition.md → src/components/helpers/DisplayTransition/DisplayTransition.docs.mdx} +18 -3
- package/{docs/components/helpers/IconSwitch.md → src/components/helpers/IconSwitch/IconSwitch.docs.mdx} +19 -4
- package/{docs/components/layout/Flex.md → src/components/layout/Flex.docs.mdx} +5 -1
- package/{docs/components/layout/Flow.md → src/components/layout/Flow.docs.mdx} +5 -1
- package/{docs/components/layout/Grid.md → src/components/layout/Grid.docs.mdx} +5 -1
- package/{docs/components/layout/Panel.md → src/components/layout/Panel.docs.mdx} +6 -2
- package/{docs/components/layout/Prefix.md → src/components/layout/Prefix.docs.mdx} +5 -1
- package/{docs/components/layout/ResizablePanel.md → src/components/layout/ResizablePanel.docs.mdx} +11 -2
- package/{docs/components/layout/Space.md → src/components/layout/Space.docs.mdx} +5 -1
- package/{docs/components/layout/Suffix.md → src/components/layout/Suffix.docs.mdx} +5 -1
- package/{docs/components/navigation/NavTabs.md → src/components/navigation/NavTabs/NavTabs.docs.mdx} +16 -6
- package/{docs/components/navigation/Pagination.md → src/components/navigation/Pagination/Pagination.docs.mdx} +25 -4
- package/{docs/components/navigation/Tabs.md → src/components/navigation/Tabs/Tabs.docs.mdx} +94 -13
- package/{docs/components/organisms/StatsCard.md → src/components/organisms/StatsCard/StatsCard.docs.mdx} +6 -2
- package/{docs/components/other/Calendar.md → src/components/other/Calendar/Calendar.docs.mdx} +23 -5
- package/{docs/components/other/CubeLogo.md → src/components/other/CubeLogo/CubeLogo.docs.mdx} +7 -1
- package/{docs/components/other/NoDataIcon.md → src/components/other/NoDataIcon/NoDataIcon.docs.mdx} +9 -3
- package/{docs/components/overlays/AlertDialog.md → src/components/overlays/AlertDialog/AlertDialog.docs.mdx} +10 -26
- package/{docs/components/overlays/Dialog.md → src/components/overlays/Dialog/Dialog.docs.mdx} +13 -9
- package/{docs/components/overlays/DialogContainer.md → src/components/overlays/Dialog/DialogContainer.docs.mdx} +12 -5
- package/{docs/components/overlays/DialogForm.md → src/components/overlays/Dialog/DialogForm.docs.mdx} +23 -14
- package/{docs/components/overlays/DialogTrigger.md → src/components/overlays/Dialog/DialogTrigger.docs.mdx} +11 -6
- package/{docs/components/overlays/UseDialogContainer.md → src/components/overlays/Dialog/UseDialogContainer.docs.mdx} +7 -3
- package/{docs/components/overlays/Notifications.md → src/components/overlays/Notifications/Notifications.docs.mdx} +29 -6
- package/{docs/components/overlays/Toast.md → src/components/overlays/Toast/Toast.docs.mdx} +30 -11
- package/{docs/components/overlays/Tooltip.md → src/components/overlays/Tooltip/Tooltip.docs.mdx} +22 -5
- package/{docs/components/overlays/TooltipProvider.md → src/components/overlays/Tooltip/TooltipProvider.docs.mdx} +5 -1
- package/{docs/components/overlays/TooltipTrigger.md → src/components/overlays/Tooltip/TooltipTrigger.docs.mdx} +5 -1
- package/{docs/components/portal/Portal.md → src/components/portal/Portal.docs.mdx} +7 -1
- package/{docs/components/status/LoadingAnimation.md → src/components/status/LoadingAnimation/LoadingAnimation.docs.mdx} +8 -2
- package/{docs/components/status/Spin.md → src/components/status/Spin/Spin.docs.mdx} +7 -1
- package/{docs/BaseProperties.md → src/stories/BaseProperties.docs.mdx} +5 -1
- package/{docs/Colors.md → src/stories/Colors.docs.mdx} +23 -1
- package/{docs/ComplexLayout.md → src/stories/ComplexLayout.docs.mdx} +34 -1
- package/{docs/CreateComponent.md → src/stories/CreateComponent.docs.mdx} +8 -13
- package/{docs/FieldProperties.md → src/stories/FieldProperties.docs.mdx} +10 -6
- package/{docs/Introduction.md → src/stories/Introduction.docs.mdx} +11 -7
- package/{docs/RenderCache.md → src/stories/RenderCache.docs.mdx} +7 -0
- package/{docs/SimpleLayout.md → src/stories/SimpleLayout.docs.mdx} +27 -0
- package/{docs/Theming.md → src/stories/Theming.docs.mdx} +17 -3
- package/{docs/Typography.md → src/stories/Typography.docs.mdx} +20 -0
- package/{docs/Usage.md → src/stories/Usage.docs.mdx} +14 -10
- package/{docs/Utilities.md → src/stories/Utilities.docs.mdx} +4 -0
- package/src/tasty.config.ts +85 -0
- package/dist/components/actions/touch-context-menu.js +0 -145
- package/dist/components/actions/touch-context-menu.js.map +0 -1
- package/dist/components/fields/popover-width.js +0 -19
- package/dist/components/fields/popover-width.js.map +0 -1
- package/dist/components/fields/search-text-services.d.ts +0 -14
- package/dist/components/fields/search-text-services.js +0 -18
- package/dist/components/fields/search-text-services.js.map +0 -1
- package/dist/components/shared/virtual-width.js +0 -76
- package/dist/components/shared/virtual-width.js.map +0 -1
- package/dist/utils/react/useOpenKey.js +0 -52
- package/dist/utils/react/useOpenKey.js.map +0 -1
- package/docs/llms.txt +0 -174
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import { Canvas, Meta } from '@storybook/addon-docs/blocks';
|
|
2
|
+
|
|
3
|
+
import * as ThemingStories from './Theming.stories';
|
|
4
|
+
|
|
5
|
+
<Meta of={ThemingStories} />
|
|
6
|
+
|
|
1
7
|
# Theming
|
|
2
8
|
|
|
3
9
|
The whole palette is generated by [Glaze](https://github.com/tenphi/glaze) from a handful of seeds, one per **zone**: the accent, the base, and each of the four status themes. Those seeds are tunable at runtime — change one and every token re-resolves, in light, dark, and high-contrast schemes at once.
|
|
@@ -251,6 +257,8 @@ Two things worth noticing while you tune:
|
|
|
251
257
|
- The **neutral** surfaces carry saturation factors of 0.10–0.175, so they read as a faint tint of the brand hue. That is where the saturation seed is legible — the solid accents hide it.
|
|
252
258
|
- The **syntax** colors do not move at all — they are their own theme with their own seed, so neither the accent hue nor the saturation reaches them.
|
|
253
259
|
|
|
260
|
+
<Canvas of={ThemingStories.Playground} />
|
|
261
|
+
|
|
254
262
|
## Status themes
|
|
255
263
|
|
|
256
264
|
Each status theme is a Glaze `extend()` of the default theme with its own seed, so tuning one moves only its own `#<theme>-*` family.
|
|
@@ -269,6 +277,8 @@ Two consequences worth stating. A vivid status color under a muted palette gives
|
|
|
269
277
|
|
|
270
278
|
A muted seed _beside_ an accent color is not expressible, because the zone is seeded one way or the other: a color there leaves the inherited saturation at its default. Mute the status themes individually if you want that.
|
|
271
279
|
|
|
280
|
+
<Canvas of={ThemingStories.StatusThemes} />
|
|
281
|
+
|
|
272
282
|
## Contrast level
|
|
273
283
|
|
|
274
284
|
By default contrast is a two-tier switch: normal colors plus a separate high-contrast set, selected by `<html data-contrast="high">` or a `prefers-contrast: more` preference.
|
|
@@ -281,6 +291,8 @@ The one exception is level `100`: there the normal colors already _are_ the high
|
|
|
281
291
|
|
|
282
292
|
Because level `0` reproduces `'auto'` exactly, tier included, shipping the slider and defaulting it off costs a consumer nothing.
|
|
283
293
|
|
|
294
|
+
<Canvas of={ThemingStories.ContrastLevel} />
|
|
295
|
+
|
|
284
296
|
## Theme builder
|
|
285
297
|
|
|
286
298
|
The `Theme Builder` story puts the whole config behind controls and renders the result into a single region, with one line drawn through the middle of the page: **the left column is the theme, the two switches over the preview are the viewing conditions.** Everything on the left writes to the palette config and would ship with the product; **Light / Dark** and **Normal / High contrast** write nothing at all — the same theme renders in all four combinations, and moving between them is how you check a theme rather than how you change one.
|
|
@@ -293,7 +305,7 @@ Those headings are also why the field labels are bare. `Seeded by` and `Hue` app
|
|
|
293
305
|
|
|
294
306
|
The **contrast level** needs no on/off switch: level `0` and `'auto'` are output-identical, tier included, so the slider at rest _is_ the shipped palette.
|
|
295
307
|
|
|
296
|
-
Status themes are four chips on one line rather than eight sliders. Each chip is a `theme="current"` `Button` colored by its own theme with a [ColorSwatch](
|
|
308
|
+
Status themes are four chips on one line rather than eight sliders. Each chip is a `theme="current"` `Button` colored by its own theme with a [ColorSwatch](/docs/forms-colorswatch--docs) of its accent, so the group answers the question you actually have — do these four still read as four different things — at a glance; press one to open its hue and saturation. The hue is not printed on the chip: it belongs to the slider that sets it, and carrying it there cost the whole row, since `success — 157°` is wide enough that four of them have to stack.
|
|
297
309
|
|
|
298
310
|
**Reset**, **Export** and **JSON** sit at the top of the column, not the bottom. The one button you reach for when an experiment goes wrong should not be behind the controls that caused it. `Export` opens the config as a `setPaletteConfig()` call to copy; `JSON` downloads `palette.json` on the press, with no intermediate state worth a second click. Both carry the config _as written_ rather than the resolved one, so an inherited `base` stays inherited instead of being frozen to whatever the accent happened to be.
|
|
299
311
|
|
|
@@ -370,6 +382,8 @@ Notes:
|
|
|
370
382
|
|
|
371
383
|
`renderPaletteTokens()` is the same thing without the aliases and companion tokens, if you want only the Glaze palette.
|
|
372
384
|
|
|
385
|
+
<Canvas of={ThemingStories.ThemeBuilder} />
|
|
386
|
+
|
|
373
387
|
## Reading and reacting to the config
|
|
374
388
|
|
|
375
389
|
```tsx
|
|
@@ -457,5 +471,5 @@ invalidatePaletteTokens(); // only needed once the kit is already mounted
|
|
|
457
471
|
|
|
458
472
|
## See also
|
|
459
473
|
|
|
460
|
-
- [Colors](
|
|
461
|
-
- [Usage](
|
|
474
|
+
- [Colors](/docs/getting-started-colors--docs) — how to pair surfaces with foregrounds, and what each token family is for.
|
|
475
|
+
- [Usage](/docs/getting-started-usage--docs) — the full token reference.
|
|
@@ -1,13 +1,29 @@
|
|
|
1
|
+
import { Canvas, Meta } from '@storybook/addon-docs/blocks';
|
|
2
|
+
|
|
3
|
+
import * as TypographyStories from './Typography.stories';
|
|
4
|
+
|
|
5
|
+
<Meta of={TypographyStories} />
|
|
6
|
+
|
|
1
7
|
# Typography
|
|
2
8
|
|
|
3
9
|
There are many ways to create typography elements like text labels and headings. You can use complete components, presets or low-level styles to get exact text label you want.
|
|
4
10
|
|
|
5
11
|
## Typography Components
|
|
6
12
|
|
|
13
|
+
### Presets
|
|
14
|
+
|
|
15
|
+
<Canvas of={TypographyStories.Presets} />
|
|
16
|
+
|
|
7
17
|
### Paragraphs
|
|
8
18
|
|
|
9
19
|
Paragraphs with gaps between them.
|
|
10
20
|
|
|
21
|
+
<Canvas of={TypographyStories.Paragraph} />
|
|
22
|
+
|
|
23
|
+
### Text labels
|
|
24
|
+
|
|
25
|
+
<Canvas of={TypographyStories.Text} />
|
|
26
|
+
|
|
11
27
|
### Links
|
|
12
28
|
|
|
13
29
|
Use `!` prefix to open link in new tab.
|
|
@@ -25,9 +41,13 @@ Use `!` prefix to open link in new tab.
|
|
|
25
41
|
);
|
|
26
42
|
```
|
|
27
43
|
|
|
44
|
+
<Canvas of={TypographyStories.ExternalLink} />
|
|
45
|
+
|
|
28
46
|
Use `@` prefix to navigate to the new page without using the Router.
|
|
29
47
|
|
|
30
48
|
```jsx
|
|
31
49
|
<Link to="@">Reload this page</Link> |
|
|
32
50
|
<Link to="@/">Move to the Main Page</Link>;
|
|
33
51
|
```
|
|
52
|
+
|
|
53
|
+
<Canvas of={TypographyStories.LinkWithoutUsingRouter} />
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { Meta } from '@storybook/addon-docs/blocks';
|
|
2
|
+
|
|
3
|
+
<Meta title="Getting Started/Usage" />
|
|
4
|
+
|
|
1
5
|
# Usage Guide
|
|
2
6
|
|
|
3
7
|
This guide covers the design system foundations — tokens, presets, colors, units, and patterns — needed to build and maintain components in Cube UI Kit.
|
|
@@ -34,7 +38,7 @@ Tasty provides custom units that map to CSS custom properties defined on the Roo
|
|
|
34
38
|
| `x` | `var(--gap)` | `2x` → `calc(var(--gap) * 2)` | 16px |
|
|
35
39
|
| `r` | `var(--radius)` | `1r` → `var(--radius)` | 6px |
|
|
36
40
|
| `cr` | `var(--card-radius)` | `1cr` → `var(--card-radius)` | 10px |
|
|
37
|
-
| `bw` | `var(--border-width)` | `1bw` → `var(--border-width)` | 1px |
|
|
41
|
+
| `bw` | `var(--border-width)` | `1bw` → `var(--border-width)` | .5px at 2dppx and up, else 1px |
|
|
38
42
|
| `ow` | `var(--outline-width)` | `1ow` → `var(--outline-width)` | 3px |
|
|
39
43
|
|
|
40
44
|
## Base Tokens
|
|
@@ -45,7 +49,7 @@ These CSS custom properties are defined in `src/tokens/base.ts` and applied glob
|
|
|
45
49
|
| --- | --- | --- |
|
|
46
50
|
| `$gap` | `8px` | Base spacing unit (used with `x` multiplier) |
|
|
47
51
|
| `$radius` | `6px` | Base border radius (used with `r` multiplier) |
|
|
48
|
-
| `$border-width` | `1px` | Base border width (used with `bw` multiplier) |
|
|
52
|
+
| `$border-width` | `.5px` / `1px` | Base border width (used with `bw` multiplier). A `.5px` hairline on screens of 2dppx and up; `1px` on lower-density screens, where a browser would round `.5px` up and `bw` math would drift, and in high contrast. Border colors (`#border`, `#<theme>-border`, `#<theme>-alert-border`) step a quarter further from their surface where the hairline is drawn, so the thinner line keeps its contrast. Size anything that sits against a border with `bw` (`(1x - 1bw)`, `-1bw`), never a literal `1px`. |
|
|
49
53
|
| `$outline-width` | `3px` | Width of a field's thick focus ring (used with `ow` multiplier) |
|
|
50
54
|
| `$outline-offset` | `1px` | Gap between a focus outline and its element |
|
|
51
55
|
| `$ring-width` | `1px` | Width of a hairline focus or selection ring |
|
|
@@ -114,7 +118,7 @@ All color tokens use `#name` syntax in styles. Opacity variants use `#name.NN` (
|
|
|
114
118
|
|
|
115
119
|
The palette is generated by [`@tenphi/glaze`](https://github.com/tenphi/glaze) (see `src/tokens/palette.ts`). Every color token is emitted as a state map with `light`, `@dark`, and `@hc` (high-contrast) variants, so the entire UI Kit adapts to dark / high-contrast schemes automatically.
|
|
116
120
|
|
|
117
|
-
The seeds it is generated from — brand hue, saturation, per-status hues, `pastel`, `contrastLevel` — are tunable at runtime. See [Theming](
|
|
121
|
+
The seeds it is generated from — brand hue, saturation, per-status hues, `pastel`, `contrastLevel` — are tunable at runtime. See [Theming](/docs/getting-started-theming--docs).
|
|
118
122
|
|
|
119
123
|
### Color Schemes
|
|
120
124
|
|
|
@@ -214,7 +218,7 @@ In the `default` theme these tokens are unprefixed (`#accent-surface`). In color
|
|
|
214
218
|
|
|
215
219
|
Each colored theme (`primary`, `purple`, `success`, `danger`, `warning`, `note`) also provides its own tinted `<theme>-surface` (banner / chip background) and `<theme>-surface-text` (banner text).
|
|
216
220
|
|
|
217
|
-
The hues below are the _defaults_; each is tunable at runtime (see [Theming](
|
|
221
|
+
The hues below are the _defaults_; each is tunable at runtime (see [Theming](/docs/getting-started-theming--docs)).
|
|
218
222
|
|
|
219
223
|
| Group | Default hue | Purpose |
|
|
220
224
|
| -------------------------- | ----------- | ----------------------------- |
|
|
@@ -249,7 +253,7 @@ To theme a _region_ instead of the document — a theme preview, or a dark panel
|
|
|
249
253
|
</Block>
|
|
250
254
|
```
|
|
251
255
|
|
|
252
|
-
Full contract, caveats and a live playground: [Theming](
|
|
256
|
+
Full contract, caveats and a live playground: [Theming](/docs/getting-started-theming--docs).
|
|
253
257
|
|
|
254
258
|
### Legacy Aliases
|
|
255
259
|
|
|
@@ -427,7 +431,7 @@ Component themes are set via the `theme` prop or `theme=name` modifier:
|
|
|
427
431
|
|
|
428
432
|
Most components are a design contract: customize them through their own props (`type`, `theme`, `size`, …), `tokens` and `mods` rather than by restyling them. The layout and typography primitives (`Element`, `Block`, `Flex`, `Flow`, `Grid`, `Space`, `Prefix`, `Suffix`, `Text`, `TextItem`, `Title`, `Paragraph`, `Typography`, `ButtonGroup` and `Button.Group`), the `Action` base and the icons (including `IconSwitch`) are the exception: their `styles` are their API.
|
|
429
433
|
|
|
430
|
-
Use `className` and inline `style` when a third-party integration needs to attach its own CSS. The [base properties guide](
|
|
434
|
+
Use `className` and inline `style` when a third-party integration needs to attach its own CSS. The [base properties guide](/docs/getting-started-base-properties--docs) explains the component-specific roles of `theme` and `title`.
|
|
431
435
|
|
|
432
436
|
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
437
|
|
|
@@ -435,7 +439,7 @@ The package's `tasty.config.ts` lists the other components as `protectedComponen
|
|
|
435
439
|
- 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
440
|
- `tasty()` wrappers that restyle a protected component, and wrappers of those wrappers.
|
|
437
441
|
|
|
438
|
-
On an input, the style props that place or size it act on its outer element: the field wrapper when it renders (see [Field properties](
|
|
442
|
+
On an input, the style props that place or size it act on its outer element: the field wrapper when it renders (see [Field properties](/docs/getting-started-field-properties--docs)), the input itself otherwise. Its `styles` always style the input, so a root `styles` that only sizes it passes the rule but sizes the input inside the field, not the field. To size the input alone, beside a side label for example, use its `controlWidth` prop. Input components take no other style props.
|
|
439
443
|
|
|
440
444
|
A component's own prop that shares a name with a style passes, such as a field's `direction` and `filter`, a text field's `resize`, `ColorSwatch`'s `color` or `AlertDialog`'s `content`.
|
|
441
445
|
|
|
@@ -619,14 +623,14 @@ const form = Form.useController<{ email: string | null }>({
|
|
|
619
623
|
|
|
620
624
|
Inputs subscribe to their own values and errors. For other reactive UI, use `Form.useValue(form, path)` for one value, `Form.useFieldState(form, path)` for field metadata, or a selector for derived state. `<Form.Subscribe>` keeps an inline region's subscription separate from its parent. Keep imperative getters in handlers and effects.
|
|
621
625
|
|
|
622
|
-
[Modern Form](
|
|
626
|
+
[Modern Form](/docs/forms-modernform--docs) explains which API to choose for server data, nullable values, nested fields, conditional sections, cross-field and remote validation, errors, and external actions. Use that guide for implementation recipes and the [migration checklist](https://github.com/cube-js/cube-ui-kit/blob/main/docs/modern-form-migration.md) when converting an existing form.
|
|
623
627
|
|
|
624
628
|
### Legacy forms
|
|
625
629
|
|
|
626
|
-
`Form.useForm()` and roots without a modern controller keep the legacy backend. `DialogForm` also supports modern controllers; `Form.Item` remains legacy-only. See [FormInstance (legacy)](
|
|
630
|
+
`Form.useForm()` and roots without a modern controller keep the legacy backend. `DialogForm` also supports modern controllers; `Form.Item` remains legacy-only. See [FormInstance (legacy)](/docs/forms-forminstance--docs) for legacy instance methods, defaults, and dot notation.
|
|
627
631
|
|
|
628
632
|
### Shared field integration
|
|
629
633
|
|
|
630
|
-
Built-in inputs have field support; they do not need a `Field` wrapper. Modern `name` and `field` bindings, and legacy string `name` bindings, connect through `useFieldProps`. Custom controls use that hook and `wrapWithField`. [Field Properties](
|
|
634
|
+
Built-in inputs have field support; they do not need a `Field` wrapper. Modern `name` and `field` bindings, and legacy string `name` bindings, connect through `useFieldProps`. Custom controls use that hook and `wrapWithField`. [Field Properties](/docs/getting-started-field-properties--docs) documents shared labels, validation, state, and presentation props.
|
|
631
635
|
|
|
632
636
|
Fields render their chrome when there is something to show: a label, a form binding, or a description, message, field styles or props, or `isHidden`, and on `TextInput`, `TextArea`, `PasswordInput` and `NumberInput` a `validate`. A field with none of them renders only the control. Use `isBare` for an inline control with no room for its chrome, or when a parent owns the field layout and feedback; a supplied label remains accessible but visually hidden. `isBare={false}` renders the chrome anyway. Message content never chooses whether the wrapper exists. `errorMessage={null}` suppresses error text and its fallback while preserving the description and invalid state.
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UI Kit's internal component tokens, for its own lint
|
|
3
|
+
*
|
|
4
|
+
* A component token that one file sets and another reads, and that no
|
|
5
|
+
* component's docs offer consumers. `@tenphi/eslint-plugin-tasty` merges the
|
|
6
|
+
* `tasty.config.*` files on the path from a linted file up to its project
|
|
7
|
+
* root, so these names reach everything under `src/` on top of the root
|
|
8
|
+
* config. A consumer's files are on no such path, and its `extends` reads only
|
|
9
|
+
* the package root's config, so its lint never accepts them.
|
|
10
|
+
*
|
|
11
|
+
* A token a component's docs offer consumers goes in the root config's
|
|
12
|
+
* `componentTokens` instead. `src/tokens/tasty-config.test.ts` fails when a
|
|
13
|
+
* name here is set by no component, or is already listed elsewhere.
|
|
14
|
+
*/
|
|
15
|
+
export default {
|
|
16
|
+
tokens: [
|
|
17
|
+
// Button, Item, ItemAction and Badge: the inline padding and its parts.
|
|
18
|
+
'$inline-padding',
|
|
19
|
+
'$inline-compensation',
|
|
20
|
+
'$min-inline-padding',
|
|
21
|
+
// Item and ItemActionsWrapper: the actions run, and the rows
|
|
22
|
+
// ItemWithNativeLinks draws.
|
|
23
|
+
'$actions-width',
|
|
24
|
+
'$native-row-inset',
|
|
25
|
+
'$native-row-width',
|
|
26
|
+
'$native-row-height',
|
|
27
|
+
'$native-row-clip',
|
|
28
|
+
|
|
29
|
+
// ColorPanel, ColorSwatch, ColorSwatchGroup and HueSlider set these per
|
|
30
|
+
// render through `tokens`.
|
|
31
|
+
'#color-picker',
|
|
32
|
+
'#color-picker-contrast',
|
|
33
|
+
'#color-swatch',
|
|
34
|
+
'#slider-thumb-hovered',
|
|
35
|
+
'$columns',
|
|
36
|
+
// Slider: the track's range and value, and the value label's width.
|
|
37
|
+
'$slider-range-start',
|
|
38
|
+
'$slider-range-end',
|
|
39
|
+
'$slider-value',
|
|
40
|
+
'$slider-value-width',
|
|
41
|
+
|
|
42
|
+
// DatePicker's segments and InlineInput's measured width.
|
|
43
|
+
'$segment-min-width',
|
|
44
|
+
'$input-width',
|
|
45
|
+
// Form, for FieldWrapper's side label.
|
|
46
|
+
'$label-width',
|
|
47
|
+
|
|
48
|
+
// Layout and its panes, panels and tiny scrollbar (`useTinyScrollbar`).
|
|
49
|
+
'$inset-top',
|
|
50
|
+
'$inset-right',
|
|
51
|
+
'$inset-bottom',
|
|
52
|
+
'$inset-left',
|
|
53
|
+
'$layout-border-size',
|
|
54
|
+
'$pane-size',
|
|
55
|
+
'$pane-min-size',
|
|
56
|
+
'$panel-size',
|
|
57
|
+
'$min-size',
|
|
58
|
+
'$max-size',
|
|
59
|
+
'$scrollbar-h-left',
|
|
60
|
+
'$scrollbar-h-width',
|
|
61
|
+
'$scrollbar-v-top',
|
|
62
|
+
'$scrollbar-v-height',
|
|
63
|
+
// ResizablePanel.
|
|
64
|
+
'$visual-size',
|
|
65
|
+
'$size-compensation',
|
|
66
|
+
|
|
67
|
+
// Tabs: the active tab's indicator.
|
|
68
|
+
'$indicator-start',
|
|
69
|
+
'$indicator-size',
|
|
70
|
+
// Tree, and TableView's tree column.
|
|
71
|
+
'$tree-height',
|
|
72
|
+
'$tree-padding',
|
|
73
|
+
'$tree-content-height',
|
|
74
|
+
'$tree-level',
|
|
75
|
+
'$tree-row-offset',
|
|
76
|
+
// TableView's sections.
|
|
77
|
+
'$section-table-width',
|
|
78
|
+
'$section-viewport-width',
|
|
79
|
+
|
|
80
|
+
// Notifications' overlay stack and the Cube spinner.
|
|
81
|
+
'$item-index',
|
|
82
|
+
'$item-top',
|
|
83
|
+
'$cube-spin-size',
|
|
84
|
+
],
|
|
85
|
+
};
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-7e9f239 | Cube Dev Team */
|
|
2
|
-
//#region src/components/actions/touch-context-menu.ts
|
|
3
|
-
/** React Aria's `useLongPress` threshold. */
|
|
4
|
-
const LONG_PRESS_DELAY = 500;
|
|
5
|
-
/**
|
|
6
|
-
* How long after a long press its own `click` can still arrive. React Aria's
|
|
7
|
-
* `useLongPress` waits the same.
|
|
8
|
-
*/
|
|
9
|
-
const LATE_CLICK_WINDOW = 100;
|
|
10
|
-
/** How far a finger may drift and still count as held still (iOS allows 10 pt). */
|
|
11
|
-
const MOVE_TOLERANCE = 10;
|
|
12
|
-
/** A text field keeps its own long press: placing the caret, selecting, pasting. */
|
|
13
|
-
const TEXT_FIELD = "input, textarea, select, [contenteditable]:not([contenteditable=\"false\"])";
|
|
14
|
-
/**
|
|
15
|
-
* Marks an element whose touch long press opens its context menu. `GlobalStyles`
|
|
16
|
-
* turns iOS's own long-press callout off on it.
|
|
17
|
-
*/
|
|
18
|
-
const TOUCH_CONTEXT_MENU_ATTRIBUTE = "data-context-menu";
|
|
19
|
-
/**
|
|
20
|
-
* Opens context menus on a touch long press, on every platform.
|
|
21
|
-
*
|
|
22
|
-
* iOS fires no `contextmenu` on a long press (WebKit bug 213953), so a menu that
|
|
23
|
-
* only answers that event can't be opened there at all. Inside `container`, a
|
|
24
|
-
* touch held still for 500 ms on an element marked `data-context-menu` fires
|
|
25
|
-
* one at the touch point, and the menu opens through the same handler as a
|
|
26
|
-
* right-click. Android fires its own earlier (~400 ms); that one claims the
|
|
27
|
-
* press instead, so the menu opens once.
|
|
28
|
-
*
|
|
29
|
-
* Once a menu opens, the long press owns the gesture, as React Aria's
|
|
30
|
-
* `useLongPress` does: a bubbling `pointercancel` ends every `usePress` in and
|
|
31
|
-
* around the element, and the `click` some platforms still fire on release is
|
|
32
|
-
* swallowed, so lifting the finger does not also activate the row. A text
|
|
33
|
-
* selection can't start during the press.
|
|
34
|
-
*
|
|
35
|
-
* No long press starts in a text field, moves more than 10 px, or starts on a
|
|
36
|
-
* handle that took the press itself by preventing its `pointerdown`, such as
|
|
37
|
-
* React Aria's `useMove` on a column resizer or a slider.
|
|
38
|
-
*
|
|
39
|
-
* Returns the cleanup.
|
|
40
|
-
*/
|
|
41
|
-
function bindTouchContextMenu(container) {
|
|
42
|
-
if (typeof PointerEvent === "undefined") return () => {};
|
|
43
|
-
const doc = container.ownerDocument;
|
|
44
|
-
let press = null;
|
|
45
|
-
let isSwallowingClick = false;
|
|
46
|
-
let clickTimer;
|
|
47
|
-
function release(event) {
|
|
48
|
-
if (!press) return;
|
|
49
|
-
if (event instanceof PointerEvent) {
|
|
50
|
-
if (event.pointerId !== press.down.pointerId) return;
|
|
51
|
-
if (event.type === "pointercancel" && !event.isTrusted) return;
|
|
52
|
-
}
|
|
53
|
-
clearTimeout(press.timer);
|
|
54
|
-
if (press.isClaimed) {
|
|
55
|
-
isSwallowingClick = true;
|
|
56
|
-
clickTimer = setTimeout(() => {
|
|
57
|
-
isSwallowingClick = false;
|
|
58
|
-
}, LATE_CLICK_WINDOW);
|
|
59
|
-
}
|
|
60
|
-
press = null;
|
|
61
|
-
doc.removeEventListener("pointerup", release, true);
|
|
62
|
-
doc.removeEventListener("pointercancel", release, true);
|
|
63
|
-
doc.removeEventListener("pointermove", onPointerMove, true);
|
|
64
|
-
}
|
|
65
|
-
function onPointerMove(event) {
|
|
66
|
-
if (!press || press.isClaimed) return;
|
|
67
|
-
if (event.pointerId !== press.down.pointerId) return;
|
|
68
|
-
const { clientX, clientY } = press.down;
|
|
69
|
-
if (Math.hypot(event.clientX - clientX, event.clientY - clientY) > MOVE_TOLERANCE) release();
|
|
70
|
-
}
|
|
71
|
-
function claim(current) {
|
|
72
|
-
current.isClaimed = true;
|
|
73
|
-
current.down.target?.dispatchEvent(new PointerEvent("pointercancel", { bubbles: true }));
|
|
74
|
-
}
|
|
75
|
-
function onPointerDown(event) {
|
|
76
|
-
if (event.pointerType !== "touch" || !event.isPrimary) return;
|
|
77
|
-
const target = event.target instanceof Element ? event.target.closest(`[${TOUCH_CONTEXT_MENU_ATTRIBUTE}]`) : null;
|
|
78
|
-
if (!target || !container.contains(target)) return;
|
|
79
|
-
if (event.target.closest(TEXT_FIELD)) return;
|
|
80
|
-
release();
|
|
81
|
-
clearTimeout(clickTimer);
|
|
82
|
-
isSwallowingClick = false;
|
|
83
|
-
const current = {
|
|
84
|
-
down: event,
|
|
85
|
-
isClaimed: false
|
|
86
|
-
};
|
|
87
|
-
current.timer = setTimeout(() => {
|
|
88
|
-
const origin = event.target;
|
|
89
|
-
if (event.defaultPrevented || !(origin instanceof Element) || !origin.isConnected) {
|
|
90
|
-
release();
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
const { clientX, clientY, screenX, screenY } = event;
|
|
94
|
-
if (!origin.dispatchEvent(new MouseEvent("contextmenu", {
|
|
95
|
-
bubbles: true,
|
|
96
|
-
cancelable: true,
|
|
97
|
-
clientX,
|
|
98
|
-
clientY,
|
|
99
|
-
screenX,
|
|
100
|
-
screenY
|
|
101
|
-
})) && press === current) claim(current);
|
|
102
|
-
}, LONG_PRESS_DELAY);
|
|
103
|
-
press = current;
|
|
104
|
-
doc.addEventListener("pointerup", release, true);
|
|
105
|
-
doc.addEventListener("pointercancel", release, true);
|
|
106
|
-
doc.addEventListener("pointermove", onPointerMove, true);
|
|
107
|
-
}
|
|
108
|
-
function onContextMenu(event) {
|
|
109
|
-
if (!press) return;
|
|
110
|
-
if (press.isClaimed) {
|
|
111
|
-
event.preventDefault();
|
|
112
|
-
event.stopImmediatePropagation();
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
clearTimeout(press.timer);
|
|
116
|
-
if (event.isTrusted) claim(press);
|
|
117
|
-
}
|
|
118
|
-
function onClick(event) {
|
|
119
|
-
if (!isSwallowingClick) return;
|
|
120
|
-
isSwallowingClick = false;
|
|
121
|
-
event.preventDefault();
|
|
122
|
-
event.stopPropagation();
|
|
123
|
-
}
|
|
124
|
-
function onSelectStart(event) {
|
|
125
|
-
if (press) event.preventDefault();
|
|
126
|
-
}
|
|
127
|
-
container.addEventListener("pointerdown", onPointerDown, true);
|
|
128
|
-
container.addEventListener("contextmenu", onContextMenu, true);
|
|
129
|
-
container.addEventListener("click", onClick, true);
|
|
130
|
-
container.addEventListener("selectstart", onSelectStart);
|
|
131
|
-
container.addEventListener("dragstart", release);
|
|
132
|
-
return () => {
|
|
133
|
-
release();
|
|
134
|
-
clearTimeout(clickTimer);
|
|
135
|
-
container.removeEventListener("pointerdown", onPointerDown, true);
|
|
136
|
-
container.removeEventListener("contextmenu", onContextMenu, true);
|
|
137
|
-
container.removeEventListener("click", onClick, true);
|
|
138
|
-
container.removeEventListener("selectstart", onSelectStart);
|
|
139
|
-
container.removeEventListener("dragstart", release);
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
//#endregion
|
|
143
|
-
export { TOUCH_CONTEXT_MENU_ATTRIBUTE, bindTouchContextMenu };
|
|
144
|
-
|
|
145
|
-
//# sourceMappingURL=touch-context-menu.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"touch-context-menu.js","names":["LONG_PRESS_DELAY","LATE_CLICK_WINDOW","MOVE_TOLERANCE","TEXT_FIELD","TOUCH_CONTEXT_MENU_ATTRIBUTE","Press","down","PointerEvent","timer","ReturnType","setTimeout","isClaimed","bindTouchContextMenu","container","HTMLElement","doc","ownerDocument","press","isSwallowingClick","clickTimer","release","event","Event","pointerId","type","isTrusted","clearTimeout","removeEventListener","onPointerMove","clientX","clientY","Math","hypot","claim","current","target","dispatchEvent","bubbles","onPointerDown","pointerType","isPrimary","Element","closest","contains","origin","defaultPrevented","isConnected","screenX","screenY","isOpened","MouseEvent","cancelable","addEventListener","onContextMenu","preventDefault","stopImmediatePropagation","onClick","stopPropagation","onSelectStart"],"sources":["../../../src/components/actions/touch-context-menu.ts"],"sourcesContent":["/** React Aria's `useLongPress` threshold. */\nconst LONG_PRESS_DELAY = 500;\n\n/**\n * How long after a long press its own `click` can still arrive. React Aria's\n * `useLongPress` waits the same.\n */\nconst LATE_CLICK_WINDOW = 100;\n\n/** How far a finger may drift and still count as held still (iOS allows 10 pt). */\nconst MOVE_TOLERANCE = 10;\n\n/** A text field keeps its own long press: placing the caret, selecting, pasting. */\nconst TEXT_FIELD =\n 'input, textarea, select, [contenteditable]:not([contenteditable=\"false\"])';\n\n/**\n * Marks an element whose touch long press opens its context menu. `GlobalStyles`\n * turns iOS's own long-press callout off on it.\n */\nexport const TOUCH_CONTEXT_MENU_ATTRIBUTE = 'data-context-menu';\n\ninterface Press {\n down: PointerEvent;\n timer?: ReturnType<typeof setTimeout>;\n /** A menu opened: the long press owns the rest of the gesture. */\n isClaimed: boolean;\n}\n\n/**\n * Opens context menus on a touch long press, on every platform.\n *\n * iOS fires no `contextmenu` on a long press (WebKit bug 213953), so a menu that\n * only answers that event can't be opened there at all. Inside `container`, a\n * touch held still for 500 ms on an element marked `data-context-menu` fires\n * one at the touch point, and the menu opens through the same handler as a\n * right-click. Android fires its own earlier (~400 ms); that one claims the\n * press instead, so the menu opens once.\n *\n * Once a menu opens, the long press owns the gesture, as React Aria's\n * `useLongPress` does: a bubbling `pointercancel` ends every `usePress` in and\n * around the element, and the `click` some platforms still fire on release is\n * swallowed, so lifting the finger does not also activate the row. A text\n * selection can't start during the press.\n *\n * No long press starts in a text field, moves more than 10 px, or starts on a\n * handle that took the press itself by preventing its `pointerdown`, such as\n * React Aria's `useMove` on a column resizer or a slider.\n *\n * Returns the cleanup.\n */\nexport function bindTouchContextMenu(container: HTMLElement): () => void {\n // Every supported browser has `PointerEvent`; older jsdom (Cloud runs 26)\n // does not, while user-event still dispatches touch pointer events there.\n if (typeof PointerEvent === 'undefined') return () => {};\n\n const doc = container.ownerDocument;\n let press: Press | null = null;\n let isSwallowingClick = false;\n let clickTimer: ReturnType<typeof setTimeout> | undefined;\n\n function release(event?: Event) {\n if (!press) return;\n if (event instanceof PointerEvent) {\n // Another pointer's release, such as a mouse's, doesn't end this touch.\n if (event.pointerId !== press.down.pointerId) return;\n // A synthetic `pointercancel`, ours included, ends somebody's press, not\n // the finger's contact: only the browser cancels that.\n if (event.type === 'pointercancel' && !event.isTrusted) return;\n }\n\n clearTimeout(press.timer);\n if (press.isClaimed) {\n isSwallowingClick = true;\n clickTimer = setTimeout(() => {\n isSwallowingClick = false;\n }, LATE_CLICK_WINDOW);\n }\n press = null;\n doc.removeEventListener('pointerup', release, true);\n doc.removeEventListener('pointercancel', release, true);\n doc.removeEventListener('pointermove', onPointerMove, true);\n }\n\n // A finger that moves is not holding still. A scroll ends the touch with a\n // `pointercancel`, but a drag inside `touch-action: none` sends none.\n function onPointerMove(event: PointerEvent) {\n if (!press || press.isClaimed) return;\n if (event.pointerId !== press.down.pointerId) return;\n\n const { clientX, clientY } = press.down;\n\n if (\n Math.hypot(event.clientX - clientX, event.clientY - clientY) >\n MOVE_TOLERANCE\n )\n release();\n }\n\n function claim(current: Press) {\n current.isClaimed = true;\n current.down.target?.dispatchEvent(\n new PointerEvent('pointercancel', { bubbles: true }),\n );\n }\n\n function onPointerDown(event: PointerEvent) {\n if (event.pointerType !== 'touch' || !event.isPrimary) return;\n\n const target =\n event.target instanceof Element\n ? event.target.closest(`[${TOUCH_CONTEXT_MENU_ATTRIBUTE}]`)\n : null;\n\n if (!target || !container.contains(target)) return;\n if ((event.target as Element).closest(TEXT_FIELD)) return;\n\n release();\n clearTimeout(clickTimer);\n isSwallowingClick = false;\n\n const current: Press = { down: event, isClaimed: false };\n\n current.timer = setTimeout(() => {\n const origin = event.target;\n\n // A handle that took the press, such as `useMove`'s, prevented it.\n if (\n event.defaultPrevented ||\n !(origin instanceof Element) ||\n !origin.isConnected\n ) {\n release();\n\n return;\n }\n\n const { clientX, clientY, screenX, screenY } = event;\n const isOpened = !origin.dispatchEvent(\n new MouseEvent('contextmenu', {\n bubbles: true,\n cancelable: true,\n clientX,\n clientY,\n screenX,\n screenY,\n }),\n );\n\n if (isOpened && press === current) claim(current);\n }, LONG_PRESS_DELAY);\n press = current;\n doc.addEventListener('pointerup', release, true);\n doc.addEventListener('pointercancel', release, true);\n doc.addEventListener('pointermove', onPointerMove, true);\n }\n\n function onContextMenu(event: MouseEvent) {\n if (!press) return;\n\n // The platform's own long-press menu, after one has already opened.\n if (press.isClaimed) {\n event.preventDefault();\n event.stopImmediatePropagation();\n\n return;\n }\n\n // This press has its `contextmenu` now: ours, a nested binding's, or the\n // platform's. A native one is the platform's long press; when no handler\n // takes it, the browser shows its own menu and ends the touch anyway.\n clearTimeout(press.timer);\n if (event.isTrusted) claim(press);\n }\n\n function onClick(event: MouseEvent) {\n if (!isSwallowingClick) return;\n\n isSwallowingClick = false;\n event.preventDefault();\n event.stopPropagation();\n }\n\n function onSelectStart(event: Event) {\n if (press) event.preventDefault();\n }\n\n container.addEventListener('pointerdown', onPointerDown, true);\n container.addEventListener('contextmenu', onContextMenu, true);\n container.addEventListener('click', onClick, true);\n container.addEventListener('selectstart', onSelectStart);\n // A native drag takes the press over: reorderable tabs and columns start one\n // on a touch long press too.\n container.addEventListener('dragstart', release);\n\n return () => {\n release();\n clearTimeout(clickTimer);\n container.removeEventListener('pointerdown', onPointerDown, true);\n container.removeEventListener('contextmenu', onContextMenu, true);\n container.removeEventListener('click', onClick, true);\n container.removeEventListener('selectstart', onSelectStart);\n container.removeEventListener('dragstart', release);\n };\n}\n"],"mappings":";;;AACA,MAAMA,mBAAmB;;;;;AAMzB,MAAMC,oBAAoB;;AAG1B,MAAMC,iBAAiB;;AAGvB,MAAMC,aACJ;;;;;AAMF,MAAaC,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;AA+B5C,SAAgBQ,qBAAqBC,WAAoC;CAGvE,IAAI,OAAON,iBAAiB,aAAa,aAAa,CAAC;CAEvD,MAAMQ,MAAMF,UAAUG;CACtB,IAAIC,QAAsB;CAC1B,IAAIC,oBAAoB;CACxB,IAAIC;CAEJ,SAASC,QAAQC,OAAe;EAC9B,IAAI,CAACJ,OAAO;EACZ,IAAII,iBAAiBd,cAAc;GAEjC,IAAIc,MAAME,cAAcN,MAAMX,KAAKiB,WAAW;GAG9C,IAAIF,MAAMG,SAAS,mBAAmB,CAACH,MAAMI,WAAW;EAC1D;EAEAC,aAAaT,MAAMT,KAAK;EACxB,IAAIS,MAAMN,WAAW;GACnBO,oBAAoB;GACpBC,aAAaT,iBAAiB;IAC5BQ,oBAAoB;GACtB,GAAGjB,iBAAiB;EACtB;EACAgB,QAAQ;EACRF,IAAIY,oBAAoB,aAAaP,SAAS,IAAI;EAClDL,IAAIY,oBAAoB,iBAAiBP,SAAS,IAAI;EACtDL,IAAIY,oBAAoB,eAAeC,eAAe,IAAI;CAC5D;CAIA,SAASA,cAAcP,OAAqB;EAC1C,IAAI,CAACJ,SAASA,MAAMN,WAAW;EAC/B,IAAIU,MAAME,cAAcN,MAAMX,KAAKiB,WAAW;EAE9C,MAAM,EAAEM,SAASC,YAAYb,MAAMX;EAEnC,IACEyB,KAAKC,MAAMX,MAAMQ,UAAUA,SAASR,MAAMS,UAAUA,OAAO,IAC3D5B,gBAEAkB,QAAQ;CACZ;CAEA,SAASa,MAAMC,SAAgB;EAC7BA,QAAQvB,YAAY;EACpBuB,QAAQ5B,KAAK6B,QAAQC,cACnB,IAAI7B,aAAa,iBAAiB,EAAE8B,SAAS,KAAK,CAAC,CACrD;CACF;CAEA,SAASC,cAAcjB,OAAqB;EAC1C,IAAIA,MAAMkB,gBAAgB,WAAW,CAAClB,MAAMmB,WAAW;EAEvD,MAAML,SACJd,MAAMc,kBAAkBM,UACpBpB,MAAMc,OAAOO,QAAQ,IAAItC,6BAA4B,EAAG,IACxD;EAEN,IAAI,CAAC+B,UAAU,CAACtB,UAAU8B,SAASR,MAAM,GAAG;EAC5C,IAAKd,MAAMc,OAAmBO,QAAQvC,UAAU,GAAG;EAEnDiB,QAAQ;EACRM,aAAaP,UAAU;EACvBD,oBAAoB;EAEpB,MAAMgB,UAAiB;GAAE5B,MAAMe;GAAOV,WAAW;EAAM;EAEvDuB,QAAQ1B,QAAQE,iBAAiB;GAC/B,MAAMkC,SAASvB,MAAMc;GAGrB,IACEd,MAAMwB,oBACN,EAAED,kBAAkBH,YACpB,CAACG,OAAOE,aACR;IACA1B,QAAQ;IAER;GACF;GAEA,MAAM,EAAES,SAASC,SAASiB,SAASC,YAAY3B;GAY/C,IAAI4B,CAXcL,OAAOR,cACvB,IAAIc,WAAW,eAAe;IAC5Bb,SAAS;IACTc,YAAY;IACZtB;IACAC;IACAiB;IACAC;GACF,CAAC,CACH,KAEgB/B,UAAUiB,SAASD,MAAMC,OAAO;EAClD,GAAGlC,gBAAgB;EACnBiB,QAAQiB;EACRnB,IAAIqC,iBAAiB,aAAahC,SAAS,IAAI;EAC/CL,IAAIqC,iBAAiB,iBAAiBhC,SAAS,IAAI;EACnDL,IAAIqC,iBAAiB,eAAexB,eAAe,IAAI;CACzD;CAEA,SAASyB,cAAchC,OAAmB;EACxC,IAAI,CAACJ,OAAO;EAGZ,IAAIA,MAAMN,WAAW;GACnBU,MAAMiC,eAAe;GACrBjC,MAAMkC,yBAAyB;GAE/B;EACF;EAKA7B,aAAaT,MAAMT,KAAK;EACxB,IAAIa,MAAMI,WAAWQ,MAAMhB,KAAK;CAClC;CAEA,SAASuC,QAAQnC,OAAmB;EAClC,IAAI,CAACH,mBAAmB;EAExBA,oBAAoB;EACpBG,MAAMiC,eAAe;EACrBjC,MAAMoC,gBAAgB;CACxB;CAEA,SAASC,cAAcrC,OAAc;EACnC,IAAIJ,OAAOI,MAAMiC,eAAe;CAClC;CAEAzC,UAAUuC,iBAAiB,eAAed,eAAe,IAAI;CAC7DzB,UAAUuC,iBAAiB,eAAeC,eAAe,IAAI;CAC7DxC,UAAUuC,iBAAiB,SAASI,SAAS,IAAI;CACjD3C,UAAUuC,iBAAiB,eAAeM,aAAa;CAGvD7C,UAAUuC,iBAAiB,aAAahC,OAAO;CAE/C,aAAa;EACXA,QAAQ;EACRM,aAAaP,UAAU;EACvBN,UAAUc,oBAAoB,eAAeW,eAAe,IAAI;EAChEzB,UAAUc,oBAAoB,eAAe0B,eAAe,IAAI;EAChExC,UAAUc,oBAAoB,SAAS6B,SAAS,IAAI;EACpD3C,UAAUc,oBAAoB,eAAe+B,aAAa;EAC1D7C,UAAUc,oBAAoB,aAAaP,OAAO;CACpD;AACF"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-7e9f239 | Cube Dev Team */
|
|
2
|
-
//#region src/components/fields/popover-width.ts
|
|
3
|
-
/**
|
|
4
|
-
* The width of a picker's popover: Picker, FilterPicker, and the
|
|
5
|
-
* `ListBoxPopover` of ComboBox, SearchComboBox, TagInput and CommandTextArea.
|
|
6
|
-
*
|
|
7
|
-
* - **Floor:** the trigger's width (`$overlay-min-width`, which each popover
|
|
8
|
-
* sets from it and defaults to `30x`), and never under `30x`.
|
|
9
|
-
* - **Preferred:** its content. A virtualized list counts its widest rows
|
|
10
|
-
* (`shared/virtual-width.ts`).
|
|
11
|
-
* - **Cap:** half the viewport on a wide screen. On a narrow one half is under
|
|
12
|
-
* the floor, so the cap is the viewport less a margin, which React Aria's
|
|
13
|
-
* `containerPadding` keeps the popover inside. `60x` joins the two.
|
|
14
|
-
*/
|
|
15
|
-
const POPOVER_WIDTH = "max($overlay-min-width, 30x) max-content max(50vw, min(100vw - 2x, 60x))";
|
|
16
|
-
//#endregion
|
|
17
|
-
export { POPOVER_WIDTH };
|
|
18
|
-
|
|
19
|
-
//# sourceMappingURL=popover-width.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popover-width.js","names":["POPOVER_WIDTH"],"sources":["../../../src/components/fields/popover-width.ts"],"sourcesContent":["/**\n * The width of a picker's popover: Picker, FilterPicker, and the\n * `ListBoxPopover` of ComboBox, SearchComboBox, TagInput and CommandTextArea.\n *\n * - **Floor:** the trigger's width (`$overlay-min-width`, which each popover\n * sets from it and defaults to `30x`), and never under `30x`.\n * - **Preferred:** its content. A virtualized list counts its widest rows\n * (`shared/virtual-width.ts`).\n * - **Cap:** half the viewport on a wide screen. On a narrow one half is under\n * the floor, so the cap is the viewport less a margin, which React Aria's\n * `containerPadding` keeps the popover inside. `60x` joins the two.\n */\nexport const POPOVER_WIDTH =\n 'max($overlay-min-width, 30x) max-content max(50vw, min(100vw - 2x, 60x))';\n"],"mappings":";;;;;;;;;;;;;;AAYA,MAAaA,gBACX"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { AriaAttributes, DOMAttributes, InputHTMLAttributes } from "react";
|
|
3
|
-
//#region src/components/fields/search-text-services.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Attributes a caller may set on a component's own search input, such as `enterKeyHint`,
|
|
6
|
-
* `autoCorrect` or `inputMode`. What the component owns, or takes as a prop of its own, is
|
|
7
|
-
* left out, so every key here reaches the input in every component that takes it. A data
|
|
8
|
-
* attribute the component sets itself, such as `data-size`, still wins.
|
|
9
|
-
*/
|
|
10
|
-
export type CubeSearchInputAttributes = Omit<InputHTMLAttributes<HTMLInputElement>, keyof DOMAttributes<HTMLInputElement> | keyof AriaAttributes | 'value' | 'defaultValue' | 'type' | 'role' | 'id' | 'placeholder' | 'autoFocus' | 'disabled' | 'readOnly' | 'className' | 'style'> & {
|
|
11
|
-
[key: `data-${string}`]: string | undefined;
|
|
12
|
-
};
|
|
13
|
-
//#endregion
|
|
14
|
-
//# sourceMappingURL=search-text-services.d.ts.map
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-7e9f239 | Cube Dev Team */
|
|
2
|
-
//#region src/components/fields/search-text-services.ts
|
|
3
|
-
/**
|
|
4
|
-
* What a search input asks of a phone keyboard: a Search key in place of Return, and no capital
|
|
5
|
-
* first letter, corrections or spell check, because a query is often an identifier (a member,
|
|
6
|
-
* cube or deployment name). iOS labels the key Search for `type="search"` only inside a
|
|
7
|
-
* `<form action>`, so `enterkeyhint` says it. Merged first, so a caller's own value wins.
|
|
8
|
-
*/
|
|
9
|
-
const SEARCH_TEXT_SERVICES = {
|
|
10
|
-
enterKeyHint: "search",
|
|
11
|
-
autoCapitalize: "none",
|
|
12
|
-
autoCorrect: "off",
|
|
13
|
-
spellCheck: "false"
|
|
14
|
-
};
|
|
15
|
-
//#endregion
|
|
16
|
-
export { SEARCH_TEXT_SERVICES };
|
|
17
|
-
|
|
18
|
-
//# sourceMappingURL=search-text-services.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search-text-services.js","names":["AriaAttributes","DOMAttributes","InputHTMLAttributes","SEARCH_TEXT_SERVICES","enterKeyHint","autoCapitalize","autoCorrect","spellCheck","const","CubeSearchInputAttributes","Omit","HTMLInputElement","key"],"sources":["../../../src/components/fields/search-text-services.ts"],"sourcesContent":["import type { AriaAttributes, DOMAttributes, InputHTMLAttributes } from 'react';\n\n/**\n * What a search input asks of a phone keyboard: a Search key in place of Return, and no capital\n * first letter, corrections or spell check, because a query is often an identifier (a member,\n * cube or deployment name). iOS labels the key Search for `type=\"search\"` only inside a\n * `<form action>`, so `enterkeyhint` says it. Merged first, so a caller's own value wins.\n */\nexport const SEARCH_TEXT_SERVICES = {\n enterKeyHint: 'search',\n autoCapitalize: 'none',\n autoCorrect: 'off',\n spellCheck: 'false',\n} as const;\n\n/**\n * Attributes a caller may set on a component's own search input, such as `enterKeyHint`,\n * `autoCorrect` or `inputMode`. What the component owns, or takes as a prop of its own, is\n * left out, so every key here reaches the input in every component that takes it. A data\n * attribute the component sets itself, such as `data-size`, still wins.\n */\nexport type CubeSearchInputAttributes = Omit<\n InputHTMLAttributes<HTMLInputElement>,\n | keyof DOMAttributes<HTMLInputElement>\n | keyof AriaAttributes\n | 'value'\n | 'defaultValue'\n | 'type'\n | 'role'\n | 'id'\n | 'placeholder'\n | 'autoFocus'\n | 'disabled'\n | 'readOnly'\n | 'className'\n | 'style'\n> & {\n [key: `data-${string}`]: string | undefined;\n};\n"],"mappings":";;;;;;;;AAQA,MAAaG,uBAAuB;CAClCC,cAAc;CACdC,gBAAgB;CAChBC,aAAa;CACbC,YAAY;AACd"}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-7e9f239 | Cube Dev Team */
|
|
2
|
-
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { useEffect, useState } from "react";
|
|
4
|
-
import { defaultRangeExtractor } from "@tanstack/react-virtual";
|
|
5
|
-
//#region src/components/shared/virtual-width.ts
|
|
6
|
-
/**
|
|
7
|
-
* The indexes of the rows whose text is longest, by `getLength`, in no set
|
|
8
|
-
* order. Text length stands in for width only to choose the rows: the browser
|
|
9
|
-
* sizes the list from the rows it renders, icons and suffixes included.
|
|
10
|
-
*/
|
|
11
|
-
function getLongestRows(count, getLength) {
|
|
12
|
-
const rows = [];
|
|
13
|
-
for (let index = 0; index < count; index++) {
|
|
14
|
-
const length = getLength(index);
|
|
15
|
-
const shortest = rows[2];
|
|
16
|
-
if (shortest && length <= shortest.length) continue;
|
|
17
|
-
rows.splice(2, 1, {
|
|
18
|
-
index,
|
|
19
|
-
length
|
|
20
|
-
});
|
|
21
|
-
rows.sort((a, b) => b.length - a.length);
|
|
22
|
-
}
|
|
23
|
-
return rows.map((row) => row.index);
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* A `rangeExtractor` result: the rows react-virtual renders for `range`, and
|
|
27
|
-
* `rows` with them, in index order.
|
|
28
|
-
*/
|
|
29
|
-
function rangeWithRows(range, rows) {
|
|
30
|
-
const indexes = defaultRangeExtractor(range);
|
|
31
|
-
const extra = rows.filter((index) => index < range.count && !indexes.includes(index));
|
|
32
|
-
return extra.length ? [...indexes, ...extra].sort((a, b) => a - b) : indexes;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* The widest the element's content box has been since it mounted, in whole
|
|
36
|
-
* pixels. The element gives it to an empty spacer of its own as a preferred
|
|
37
|
-
* width with a `100%` floor and cap: sized to its content, the element counts
|
|
38
|
-
* a percentage floor and cap as none, so the spacer widens its `max-content`;
|
|
39
|
-
* otherwise the spacer just fills it. Observe an element that outlives the rows
|
|
40
|
-
* it holds the width of: ListBox's scroll element, which stays when a
|
|
41
|
-
* reorderable list swaps its `ul` as a search starts, and FilterTree's list,
|
|
42
|
-
* which stays when a search that matches nothing replaces the tree. A popover
|
|
43
|
-
* unmounts its list when it closes, so each opening starts afresh.
|
|
44
|
-
*/
|
|
45
|
-
function useHeldWidth(ref) {
|
|
46
|
-
const $ = c(3);
|
|
47
|
-
const [width, setWidth] = useState(0);
|
|
48
|
-
let t0;
|
|
49
|
-
let t1;
|
|
50
|
-
if ($[0] !== ref) {
|
|
51
|
-
t0 = () => {
|
|
52
|
-
const element = ref.current;
|
|
53
|
-
if (!element || typeof ResizeObserver === "undefined") return;
|
|
54
|
-
const observer = new ResizeObserver((t2) => {
|
|
55
|
-
const [entry] = t2;
|
|
56
|
-
const next = Math.ceil(entry.contentRect.width);
|
|
57
|
-
setWidth((current) => Math.max(current, next));
|
|
58
|
-
});
|
|
59
|
-
observer.observe(element);
|
|
60
|
-
return () => observer.disconnect();
|
|
61
|
-
};
|
|
62
|
-
t1 = [ref];
|
|
63
|
-
$[0] = ref;
|
|
64
|
-
$[1] = t0;
|
|
65
|
-
$[2] = t1;
|
|
66
|
-
} else {
|
|
67
|
-
t0 = $[1];
|
|
68
|
-
t1 = $[2];
|
|
69
|
-
}
|
|
70
|
-
useEffect(t0, t1);
|
|
71
|
-
return width;
|
|
72
|
-
}
|
|
73
|
-
//#endregion
|
|
74
|
-
export { getLongestRows, rangeWithRows, useHeldWidth };
|
|
75
|
-
|
|
76
|
-
//# sourceMappingURL=virtual-width.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"virtual-width.js","names":["defaultRangeExtractor","useEffect","useState","Range","RefObject","LONGEST_ROW_COUNT","getLongestRows","count","getLength","index","rows","length","shortest","splice","sort","a","b","map","row","rangeWithRows","range","indexes","extra","filter","includes","useHeldWidth","ref","$","_c","width","setWidth","t0","t1","element","current","ResizeObserver","observer","t2","entry","next","Math","ceil","contentRect","max","observe","disconnect","_c"],"sources":["../../../src/components/shared/virtual-width.ts"],"sourcesContent":["import { defaultRangeExtractor } from '@tanstack/react-virtual';\nimport { useEffect, useState } from 'react';\n\nimport type { Range } from '@tanstack/react-virtual';\nimport type { RefObject } from 'react';\n\n/**\n * How a virtualized list (ListBox, Tree) sizes a popover to its rows.\n *\n * The list stacks its rendered rows in one grid cell, each moved down to its\n * offset, so their widths size the list as a list that isn't virtualized is\n * sized by all of its rows. Only the rendered rows count, so the list also:\n *\n * - keeps the rows with the longest text rendered wherever it is scrolled\n * (`getLongestRows`, `rangeWithRows`), so its width is set when it opens;\n * - holds the widest width it has had (`useHeldWidth`), so a row the text\n * length missed only widens it, and a filter that leaves only short rows\n * doesn't narrow it. ListBox holds it itself; a Tree's is held by\n * FilterPicker's FilterTree, which filters it.\n */\n\n/** How many of a virtualized list's longest rows stay rendered. */\nconst LONGEST_ROW_COUNT = 3;\n\n/**\n * The indexes of the rows whose text is longest, by `getLength`, in no set\n * order. Text length stands in for width only to choose the rows: the browser\n * sizes the list from the rows it renders, icons and suffixes included.\n */\nexport function getLongestRows(\n count: number,\n getLength: (index: number) => number,\n): number[] {\n const rows: { index: number; length: number }[] = [];\n\n for (let index = 0; index < count; index++) {\n const length = getLength(index);\n const shortest = rows[LONGEST_ROW_COUNT - 1];\n\n // On a tie the earlier row stays.\n if (shortest && length <= shortest.length) continue;\n\n rows.splice(LONGEST_ROW_COUNT - 1, 1, { index, length });\n rows.sort((a, b) => b.length - a.length);\n }\n\n return rows.map((row) => row.index);\n}\n\n/**\n * A `rangeExtractor` result: the rows react-virtual renders for `range`, and\n * `rows` with them, in index order.\n */\nexport function rangeWithRows(range: Range, rows: readonly number[]) {\n const indexes = defaultRangeExtractor(range);\n const extra = rows.filter(\n (index) => index < range.count && !indexes.includes(index),\n );\n\n return extra.length ? [...indexes, ...extra].sort((a, b) => a - b) : indexes;\n}\n\n/**\n * The widest the element's content box has been since it mounted, in whole\n * pixels. The element gives it to an empty spacer of its own as a preferred\n * width with a `100%` floor and cap: sized to its content, the element counts\n * a percentage floor and cap as none, so the spacer widens its `max-content`;\n * otherwise the spacer just fills it. Observe an element that outlives the rows\n * it holds the width of: ListBox's scroll element, which stays when a\n * reorderable list swaps its `ul` as a search starts, and FilterTree's list,\n * which stays when a search that matches nothing replaces the tree. A popover\n * unmounts its list when it closes, so each opening starts afresh.\n */\nexport function useHeldWidth(ref: RefObject<HTMLElement | null>) {\n const [width, setWidth] = useState(0);\n\n useEffect(() => {\n const element = ref.current;\n\n // A consumer's jsdom may have no ResizeObserver.\n if (!element || typeof ResizeObserver === 'undefined') return;\n\n const observer = new ResizeObserver(([entry]) => {\n // Rounded up: a fraction of a pixel less cuts the widest row's text.\n const next = Math.ceil(entry.contentRect.width);\n\n setWidth((current) => Math.max(current, next));\n });\n\n observer.observe(element);\n\n return () => observer.disconnect();\n }, [ref]);\n\n return width;\n}\n"],"mappings":";;;;;;;;;;AA6BA,SAAgBM,eACdC,OACAC,WACU;CACV,MAAME,OAA4C,CAAA;CAElD,KAAK,IAAID,QAAQ,GAAGA,QAAQF,OAAOE,SAAS;EAC1C,MAAME,SAASH,UAAUC,KAAK;EAC9B,MAAMG,WAAWF,KAAKL;EAGtB,IAAIO,YAAYD,UAAUC,SAASD,QAAQ;EAE3CD,KAAKG,OAAOR,GAAuB,GAAG;GAAEI;GAAOE;EAAO,CAAC;EACvDD,KAAKI,MAAMC,GAAGC,MAAMA,EAAEL,SAASI,EAAEJ,MAAM;CACzC;CAEA,OAAOD,KAAKO,KAAKC,QAAQA,IAAIT,KAAK;AACpC;;;;;AAMA,SAAgBU,cAAcC,OAAcV,MAAyB;CACnE,MAAMW,UAAUrB,sBAAsBoB,KAAK;CAC3C,MAAME,QAAQZ,KAAKa,QAChBd,UAAUA,QAAQW,MAAMb,SAAS,CAACc,QAAQG,SAASf,KAAK,CAC3D;CAEA,OAAOa,MAAMX,SAAS,CAAC,GAAGU,SAAS,GAAGC,KAAK,CAAC,CAACR,MAAMC,GAAGC,MAAMD,IAAIC,CAAC,IAAIK;AACvE;;;;;;;;;;;;AAaA,SAAOI,aAAAC,KAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CACL,MAAA,CAAAC,OAAAC,YAA0B5B,SAAS,CAAC;CAAE,IAAA6B;CAAA,IAAAC;CAAA,IAAAL,EAAA,OAAAD,KAAA;EAE5BK,WAAA;GACR,MAAAE,UAAgBP,IAAGQ;GAGnB,IAAI,CAACD,WAAW,OAAOE,mBAAmB,aAAW;GAErD,MAAAC,WAAiB,IAAID,gBAAeE,OAAA;IAAC,MAAA,CAAAC,SAAAD;IAEnC,MAAAE,OAAaC,KAAIC,KAAMH,MAAKI,YAAYb,KAAM;IAE9CC,UAASI,YAAaM,KAAIG,IAAKT,SAASK,IAAI,CAAC;GAAC,CAC/C;GAEDH,SAAQQ,QAASX,OAAO;GAAC,aAEZG,SAAQS,WAAY;EAAC;EACjCb,KAAA,CAACN,GAAG;EAACC,EAAA,KAAAD;EAAAC,EAAA,KAAAI;EAAAJ,EAAA,KAAAK;CAAA,OAAA;EAAAD,KAAAJ,EAAA;EAAAK,KAAAL,EAAA;CAAA;CAhBR1B,UAAU8B,IAgBPC,EAAK;CAAC,OAEFH;AAAK"}
|