@cube-dev/ui-kit 0.0.0-canary-8292376 → 0.0.0-canary-50fa86a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_internal/hooks/use-debounced-value.js +1 -1
- package/dist/_internal/hooks/use-deprecation-warning.js +1 -1
- package/dist/_internal/hooks/use-event.js +1 -1
- package/dist/_internal/hooks/use-is-first-render.js +1 -1
- package/dist/_internal/hooks/use-sync-ref.js +1 -1
- package/dist/_internal/hooks/use-timer/timer.js +1 -1
- package/dist/_internal/hooks/use-timer/use-timer.js +1 -1
- package/dist/_internal/hooks/use-warn.js +1 -1
- package/dist/components/Block.js +1 -1
- package/dist/components/CollectionItem.js +1 -1
- package/dist/components/GlobalStyles.js +1 -1
- package/dist/components/GridProvider.js +1 -1
- package/dist/components/HiddenInput.js +1 -1
- package/dist/components/Root.js +1 -1
- package/dist/components/actions/Action/Action.js +1 -1
- package/dist/components/actions/Banner/Banner.js +1 -1
- package/dist/components/actions/Button/Button.js +1 -1
- package/dist/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/actions/ButtonSplit/ButtonSplit.js +1 -1
- package/dist/components/actions/ButtonSplit/context.js +1 -1
- package/dist/components/actions/CommandMenu/CommandMenu.js +1 -1
- package/dist/components/actions/CommandMenu/styled.js +1 -1
- package/dist/components/actions/ItemAction/ItemAction.js +1 -1
- package/dist/components/actions/ItemActionContext.js +1 -1
- package/dist/components/actions/ItemActionsWrapper.js +1 -1
- package/dist/components/actions/ItemButton/ItemButton.js +1 -1
- package/dist/components/actions/Link/Link.js +1 -1
- package/dist/components/actions/Menu/Menu.js +1 -1
- package/dist/components/actions/Menu/MenuCollectionItem.js +1 -1
- package/dist/components/actions/Menu/MenuItem.js +1 -1
- package/dist/components/actions/Menu/MenuSection.js +1 -1
- package/dist/components/actions/Menu/MenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubMenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubmenuTriggerContext.js +1 -1
- package/dist/components/actions/Menu/context.js +1 -1
- package/dist/components/actions/Menu/styled.js +1 -1
- package/dist/components/actions/actions-run.js +1 -1
- package/dist/components/actions/index.js +1 -1
- package/dist/components/actions/use-action.js +1 -1
- package/dist/components/actions/use-anchored-menu.js +1 -1
- package/dist/components/actions/use-context-menu.js +1 -1
- package/dist/components/content/ActiveZone/ActiveZone.js +1 -1
- package/dist/components/content/Alert/Alert.js +1 -1
- package/dist/components/content/Alert/use-alert.js +1 -1
- package/dist/components/content/Avatar/Avatar.js +1 -1
- package/dist/components/content/Badge/Badge.js +1 -1
- package/dist/components/content/Card/Card.js +1 -1
- package/dist/components/content/Content.js +1 -1
- package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +1 -1
- package/dist/components/content/CopySnippet/CopySnippet.js +1 -1
- package/dist/components/content/Disclosure/Disclosure.js +1 -1
- package/dist/components/content/Divider.js +1 -1
- package/dist/components/content/Footer.js +1 -1
- package/dist/components/content/Header.js +1 -1
- package/dist/components/content/HotKeys/HotKeys.js +1 -1
- package/dist/components/content/InfoBadge/InfoBadge.js +1 -1
- package/dist/components/content/InlineInput/InlineInput.js +1 -1
- package/dist/components/content/Item/Item.js +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 +14 -39
- package/dist/components/content/Tree/Tree.js.map +1 -1
- package/dist/components/content/Tree/TreeNode.js +7 -8
- package/dist/components/content/Tree/TreeNode.js.map +1 -1
- package/dist/components/content/Tree/styled.js +1 -1
- package/dist/components/content/Tree/tree-index.js +2 -10
- package/dist/components/content/Tree/tree-index.js.map +1 -1
- package/dist/components/content/Tree/types.d.ts +1 -21
- package/dist/components/content/Tree/use-checkbox-tree.js +123 -17
- package/dist/components/content/Tree/use-checkbox-tree.js.map +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/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/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 +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-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 +3 -1
- 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 +3 -2
- package/dist/components/fields/ComboBox/ComboBox.js +10 -3
- 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 +3 -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/DateInput.js +1 -1
- package/dist/components/fields/DatePicker/DateInputBase.js +1 -1
- package/dist/components/fields/DatePicker/DatePicker.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerButton.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerElement.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerInput.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerSegment.js +1 -1
- package/dist/components/fields/DatePicker/DateRangePicker.js +1 -1
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +1 -1
- package/dist/components/fields/DatePicker/MonthPicker.js +1 -1
- package/dist/components/fields/DatePicker/PeriodPicker.js +1 -1
- package/dist/components/fields/DatePicker/QuarterPicker.js +1 -1
- package/dist/components/fields/DatePicker/TimeInput.js +1 -1
- package/dist/components/fields/DatePicker/WeekPicker.js +1 -1
- package/dist/components/fields/DatePicker/YearPicker.js +1 -1
- package/dist/components/fields/DatePicker/parseDate.js +1 -1
- package/dist/components/fields/DatePicker/period.js +1 -1
- package/dist/components/fields/DatePicker/props.js +1 -1
- package/dist/components/fields/DatePicker/utils.js +1 -1
- package/dist/components/fields/FileInput/FileInput.js +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js +56 -3
- package/dist/components/fields/FilterListBox/FilterListBox.js.map +1 -1
- package/dist/components/fields/FilterPicker/FilterPicker.d.ts +1 -27
- package/dist/components/fields/FilterPicker/FilterPicker.js +6 -66
- package/dist/components/fields/FilterPicker/FilterPicker.js.map +1 -1
- package/dist/components/fields/Input/Input.js +1 -1
- package/dist/components/fields/ListBox/DraggableListBox.js +1 -1
- package/dist/components/fields/ListBox/ListBox.js +1 -1
- package/dist/components/fields/ListBox/optionId.js +1 -1
- package/dist/components/fields/ListBoxPopover/ListBoxPopover.js +1 -1
- package/dist/components/fields/ListBoxPopover/listNavigation.js +1 -1
- package/dist/components/fields/ListBoxPopover/useCompositeFocus.js +1 -1
- package/dist/components/fields/NumberInput/NumberInput.js +3 -1
- package/dist/components/fields/NumberInput/NumberInput.js.map +1 -1
- package/dist/components/fields/NumberInput/StepButton.js +1 -1
- package/dist/components/fields/PasswordInput/PasswordInput.js +3 -1
- package/dist/components/fields/PasswordInput/PasswordInput.js.map +1 -1
- package/dist/components/fields/Picker/Picker.js +1 -1
- package/dist/components/fields/RadioGroup/Radio.js +1 -1
- package/dist/components/fields/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/fields/RadioGroup/context.js +1 -1
- package/dist/components/fields/SearchComboBox/SearchComboBox.d.ts +6 -2
- package/dist/components/fields/SearchComboBox/SearchComboBox.js +4 -3
- package/dist/components/fields/SearchComboBox/SearchComboBox.js.map +1 -1
- package/dist/components/fields/SearchInput/SearchInput.js +51 -47
- package/dist/components/fields/SearchInput/SearchInput.js.map +1 -1
- package/dist/components/fields/Select/Select.js +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 +39 -29
- package/dist/components/fields/Slider/RangeSlider.js.map +1 -1
- package/dist/components/fields/Slider/Slider.js +60 -64
- package/dist/components/fields/Slider/Slider.js.map +1 -1
- package/dist/components/fields/Slider/SliderBase.js +1 -1
- package/dist/components/fields/Slider/SliderThumb.js +1 -1
- package/dist/components/fields/Slider/SliderTrack.js +1 -1
- package/dist/components/fields/Slider/elements.js +1 -1
- package/dist/components/fields/Slider/index.js +1 -1
- package/dist/components/fields/Switch/Switch.js +1 -1
- package/dist/components/fields/TagInput/TagInput.d.ts +2 -0
- package/dist/components/fields/TagInput/TagInput.js +11 -8
- package/dist/components/fields/TagInput/TagInput.js.map +1 -1
- package/dist/components/fields/TagInput/TagList.js +1 -1
- package/dist/components/fields/TagInput/useActiveOption.js +1 -1
- package/dist/components/fields/TagInput/useTagError.js +1 -1
- package/dist/components/fields/TextArea/TextArea.js +3 -1
- package/dist/components/fields/TextArea/TextArea.js.map +1 -1
- package/dist/components/fields/TextInput/TextInput.js +3 -1
- package/dist/components/fields/TextInput/TextInput.js.map +1 -1
- package/dist/components/fields/TextInput/TextInputBase.js +1 -1
- package/dist/components/fields/TextInput/displayed-validation.js +1 -1
- package/dist/components/fields/TextInput/useAutoSizeTextArea.js +1 -1
- package/dist/components/fields/TextInputMapper/TextInputMapper.js +1 -1
- package/dist/components/fields/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/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/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/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/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/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 +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 +1 -1
- package/dist/components/overlays/Dialog/ModernDialogForm.js +1 -1
- package/dist/components/overlays/Dialog/context.js +1 -1
- package/dist/components/overlays/Dialog/default-button-text.js +1 -1
- package/dist/components/overlays/Dialog/use-content-overflow.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-container.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-open-sync.js +1 -1
- package/dist/components/overlays/Dialog/use-retained-dialog-focus.js +1 -1
- package/dist/components/overlays/Modal/Modal.js +1 -1
- package/dist/components/overlays/Modal/OpenTransitionContext.js +1 -1
- package/dist/components/overlays/Modal/Overlay.js +1 -1
- package/dist/components/overlays/Modal/Popover.js +1 -1
- package/dist/components/overlays/Modal/Tray.js +1 -1
- package/dist/components/overlays/Modal/Underlay.js +1 -1
- package/dist/components/overlays/Modal/modal-containment.js +1 -1
- package/dist/components/overlays/Notifications/Notification.js +1 -1
- package/dist/components/overlays/Notifications/NotificationAction.js +1 -1
- package/dist/components/overlays/Notifications/NotificationCard.js +1 -1
- package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
- package/dist/components/overlays/Notifications/NotificationItem.js +1 -1
- package/dist/components/overlays/Notifications/OverlayContainer.js +1 -1
- package/dist/components/overlays/Notifications/OverlayProvider.js +1 -1
- package/dist/components/overlays/Notifications/PersistentNotificationsList.js +1 -1
- package/dist/components/overlays/Notifications/dismissed-storage.js +1 -1
- package/dist/components/overlays/Notifications/format-relative-time.js +1 -1
- package/dist/components/overlays/Notifications/index.js +1 -1
- package/dist/components/overlays/Notifications/use-notification-state.js +1 -1
- package/dist/components/overlays/Notifications/use-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-overlay-timers.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-state.js +1 -1
- package/dist/components/overlays/Notifications/use-toast-state.js +1 -1
- package/dist/components/overlays/Toast/ToastItem.js +1 -1
- package/dist/components/overlays/Toast/index.js +1 -1
- package/dist/components/overlays/Toast/useProgressToast.js +1 -1
- package/dist/components/overlays/Toast/useToast.js +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.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 +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.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/shared/form.d.ts +3 -1
- package/dist/tokens/all-tokens.js +1 -1
- package/dist/tokens/base.js +1 -1
- package/dist/tokens/color-seed.js +1 -1
- package/dist/tokens/color-theme.js +1 -1
- package/dist/tokens/colors.js +1 -1
- package/dist/tokens/layout.js +1 -1
- package/dist/tokens/lazy-styles.js +1 -1
- package/dist/tokens/legacy-color.js +1 -1
- package/dist/tokens/palette-config.js +1 -1
- package/dist/tokens/palette.js +1 -1
- package/dist/tokens/resolve.js +1 -1
- package/dist/tokens/shadows.js +1 -1
- package/dist/tokens/sizes.js +1 -1
- package/dist/tokens/spacing.js +1 -1
- package/dist/tokens/typography.js +1 -1
- package/dist/utils/ResizeSensor.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/dotize.js +1 -1
- package/dist/utils/is-dev-env.js +1 -1
- package/dist/utils/modules.js +1 -1
- package/dist/utils/promise.js +1 -1
- package/dist/utils/raf.js +1 -1
- package/dist/utils/random.js +1 -1
- package/dist/utils/range.js +1 -1
- package/dist/utils/react/RenderCache.js +1 -1
- package/dist/utils/react/Slots.js +1 -1
- package/dist/utils/react/chain.js +1 -1
- package/dist/utils/react/disabledProps.js +1 -1
- package/dist/utils/react/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 +44 -7
- package/dist/utils/react/overlayKeyPropagation.js.map +1 -1
- package/dist/utils/react/programmaticFocus.js +1 -1
- package/dist/utils/react/resolveIcon.js +1 -1
- package/dist/utils/react/sharedStore.js +1 -1
- package/dist/utils/react/useBufferedValue.js +1 -1
- package/dist/utils/react/useCombinedRefs.js +1 -1
- package/dist/utils/react/useControlledFocusVisible.js +1 -1
- package/dist/utils/react/useEventBus.js +1 -1
- package/dist/utils/react/useId.js +1 -1
- package/dist/utils/react/useIsDarwin.js +1 -1
- package/dist/utils/react/useKeySymbols.js +1 -1
- package/dist/utils/react/useLayoutEffect.js +1 -1
- package/dist/utils/react/useLocalStorage.js +1 -1
- package/dist/utils/react/useMergeStyles.js +1 -1
- package/dist/utils/react/useOverlayEscapeGuard.js +1 -1
- package/dist/utils/react/usePopoverSync.js +1 -1
- package/dist/utils/react/useQaProps.js +1 -1
- package/dist/utils/react/useScheme.js +1 -1
- package/dist/utils/react/useViewportSize.js +1 -1
- package/dist/utils/react/wrapNodeIfPlain.js +1 -1
- package/dist/utils/selection.js +1 -1
- package/dist/utils/styles.js +1 -1
- package/dist/utils/tree.js +1 -1
- package/dist/utils/warnings.js +1 -1
- package/dist/version.js +2 -2
- package/docs/components/content/Tree.md +4 -5
- package/docs/components/fields/ColorInput.md +1 -1
- package/docs/components/fields/ComboBox.md +1 -1
- package/docs/components/fields/CommandTextArea.md +2 -2
- package/docs/components/fields/FilterPicker.md +1 -67
- package/docs/components/fields/NumberInput.md +2 -2
- package/docs/components/fields/PasswordInput.md +5 -5
- package/docs/components/fields/SearchComboBox.md +1 -1
- package/docs/components/fields/SearchInput.md +1 -1
- package/docs/components/fields/TagInput.md +1 -1
- package/docs/components/fields/TextArea.md +8 -5
- package/docs/components/fields/TextInput.md +8 -5
- package/package.json +1 -1
- package/dist/components/content/Tree/checked-keys.js +0 -158
- package/dist/components/content/Tree/checked-keys.js.map +0 -1
- package/dist/components/content/Tree/rowId.js +0 -16
- package/dist/components/content/Tree/rowId.js.map +0 -1
- package/dist/components/fields/FilterListBox/styled.js +0 -66
- package/dist/components/fields/FilterListBox/styled.js.map +0 -1
- package/dist/components/fields/FilterPicker/FilterTree.js +0 -413
- package/dist/components/fields/FilterPicker/FilterTree.js.map +0 -1
|
@@ -56,7 +56,7 @@ A combobox component that combines a text input with a dropdown list, allowing u
|
|
|
56
56
|
|
|
57
57
|
#### Notable Properties
|
|
58
58
|
|
|
59
|
-
**onKeyDown** - Runs before ComboBox's own key handling, listed under [Keyboard Navigation](#keyboard-navigation). Calling `e.preventDefault()` takes the key over: ComboBox skips its handling for that event, so a prevented `ArrowDown` does not open the popover or move focus, and a prevented `Enter` does not select the focused option or commit a custom value. Without `preventDefault()` the built-in handling runs as usual after your handler. The event is React Aria's keyboard event (`KeyboardEvent` from `@react-types/shared`). `Escape` and `Tab` go on to ancestors, so a surrounding `Dialog` still closes on `Escape` and
|
|
59
|
+
**onKeyDown** - Runs before ComboBox's own key handling, listed under [Keyboard Navigation](#keyboard-navigation). Calling `e.preventDefault()` takes the key over: ComboBox skips its handling for that event, so a prevented `ArrowDown` does not open the popover or move focus, and a prevented `Enter` does not select the focused option or commit a custom value. Without `preventDefault()` the built-in handling runs as usual after your handler. The event is React Aria's keyboard event (`KeyboardEvent` from `@react-types/shared`). `Escape` and `Tab` go on to ancestors, so a surrounding `Dialog` still closes on `Escape` and moves focus on `Tab`, unless ComboBox acts on them or you prevent them: `Escape` that closes the list or clears the value stops at the input, and so does an `Escape` or `Tab` you prevent. Other keys stop at the input unless you call `e.continuePropagation()`.
|
|
60
60
|
|
|
61
61
|
```jsx
|
|
62
62
|
<ComboBox
|
|
@@ -115,8 +115,8 @@ These properties allow direct style application without using the `styles` prop:
|
|
|
115
115
|
- `Tab` — Moves focus into / out of the textarea.
|
|
116
116
|
- `ArrowUp` / `ArrowDown` — Move the highlighted option (only while the popover is open; otherwise moves the caret).
|
|
117
117
|
- `Home` / `End` — Jump to the first / last option while open.
|
|
118
|
-
- `Enter` / `Tab` — Insert the highlighted option while open; otherwise insert a newline / submit.
|
|
119
|
-
- `Escape` — Close the popover without changing the text.
|
|
118
|
+
- `Enter` / `Tab` — Insert the highlighted option while open; otherwise insert a newline / submit. A `Tab` that inserts an option keeps focus in the textarea, inside a `Dialog` too.
|
|
119
|
+
- `Escape` — Close the popover without changing the text. With the popover closed, `Escape` goes on to a surrounding `Dialog` and closes it, unless your `onKeyDown` prevents it.
|
|
120
120
|
|
|
121
121
|
### Screen Reader Support
|
|
122
122
|
|
|
@@ -8,7 +8,6 @@ A button-triggered field for keeping one or more selected values from a **search
|
|
|
8
8
|
- Users need a visible search field to find options
|
|
9
9
|
- A compact button trigger is preferable to an always-visible input
|
|
10
10
|
- Multiple selection, checkboxes, select-all, grouped options, or a custom trigger summary are needed
|
|
11
|
-
- The options form a tree, such as groups and their members, and parents should be checkable as a whole (`treeData`)
|
|
12
11
|
- The selection should participate in form state and validation
|
|
13
12
|
|
|
14
13
|
Choose a different component when the interaction has another shape:
|
|
@@ -79,10 +78,6 @@ Choose a different component when the interaction has another shape:
|
|
|
79
78
|
- **`onClear`** `() => void` — Callback called when the clear button is pressed
|
|
80
79
|
- **`actions`** `ReactNode` — Custom actions rendered inside the trigger, to the left of the built-in clear button and dropdown caret
|
|
81
80
|
- **`onOpenChange`** `(isOpen: boolean) => void` — Callback called when the popover open state changes
|
|
82
|
-
- **`treeData`** `CubeTreeNodeData[]` — Tree-shaped options. The popover shows a checkable `Tree` in place of the list, and `items` and `children` are not used. Tree mode is always multiple selection, and the value is every fully checked key, parents included
|
|
83
|
-
- **`expandedKeys`** `string[]` — Expanded nodes in tree mode (controlled). A search expands nodes on its own and restores these when it clears
|
|
84
|
-
- **`defaultExpandedKeys`** `string[]` — Initially expanded nodes in tree mode (uncontrolled), read once when the picker mounts
|
|
85
|
-
- **`onExpand`** `(expandedKeys: string[]) => void` — Called when the user expands or collapses a node in tree mode, outside a search
|
|
86
81
|
- **`isReorderable`** `boolean` (default: `false`) — Enable drag-and-drop item reordering in the dropdown list
|
|
87
82
|
- **`onReorder`** `(newOrder: string[]) => void` — Callback when items are reordered via drag-and-drop or keyboard (Alt+Arrow)
|
|
88
83
|
|
|
@@ -273,7 +268,7 @@ For dynamic content, use the `items` prop with a render function. Virtualization
|
|
|
273
268
|
|
|
274
269
|
### Dynamic Sections Pattern
|
|
275
270
|
|
|
276
|
-
For
|
|
271
|
+
For hierarchical data with sections, use the `items` prop with nested render functions. Each section contains a `children` array of items.
|
|
277
272
|
|
|
278
273
|
```jsx
|
|
279
274
|
const categories = [
|
|
@@ -323,8 +318,6 @@ const categories = [
|
|
|
323
318
|
- `single` - Allows selecting only one item at a time
|
|
324
319
|
- `multiple` - Allows selecting multiple items
|
|
325
320
|
|
|
326
|
-
With `treeData`, the picker is always `multiple`.
|
|
327
|
-
|
|
328
321
|
### Button Types
|
|
329
322
|
|
|
330
323
|
- `outline` - Default outlined button style; `mods={{ selected: true }}` adds a brand-tinted fill
|
|
@@ -531,53 +524,6 @@ const DEFAULT_KEY = 'apple';
|
|
|
531
524
|
</FilterPicker>
|
|
532
525
|
```
|
|
533
526
|
|
|
534
|
-
### Tree Options
|
|
535
|
-
|
|
536
|
-
Pass `treeData` to pick from a tree. The popover shows a checkable Tree under the same header, search and footer, and `items` and `children` are not used.
|
|
537
|
-
|
|
538
|
-
- **Value.** Tree mode is always multiple selection. `selectedKeys` is every fully checked key, parents included, in tree order. A parent key passed without its children checks its whole subtree.
|
|
539
|
-
- **Cascade.** Checking a parent checks its children, and a parent with only some of them checked is half-checked. The cascade runs over the whole tree, so unchecking a node during a search keeps the nodes the search hides as they were.
|
|
540
|
-
- **Search.** A node that matches keeps its whole subtree. The ancestors of deeper matches stay with only their matching branches, and every node with a match below it opens. This expansion belongs to the search: it starts over whenever the query changes, and clearing the search brings back the nodes the user had open. Nodes match on `textValue`, else on `title` when it is a string, else on `key`.
|
|
541
|
-
- **Summary.** The default trigger summary lists the topmost checked nodes: "Design" rather than "Design, Dieter Rams, Susan Kare". `renderSummary` receives every checked key, conducted over the tree and in tree order, as `onSelectionChange` reports them.
|
|
542
|
-
- **Disabling.** Disable a node with its own `isDisabled` or `isCheckboxDisabled`; `disabledKeys` does not apply. A disabled node's key in the value still checks its subtree, and Enter or Space on a row whose checkbox is disabled does nothing. The cascade passes through a disabled node: checking its parent checks the enabled nodes below it, and its own state follows them.
|
|
543
|
-
- **Expansion.** Uncontrolled expansion starts from `defaultExpandedKeys`, read once when the picker mounts, and is kept across opening and closing the popover. For nodes that arrive later, pass `expandedKeys`.
|
|
544
|
-
- **List-only props.** These apply to the flat list and have no effect with `treeData`: `items`, `children`, `disabledKeys`, `allowsCustomValue`, `showSelectAll`, `selectAllLabel`, `isCheckable`, `disallowEmptySelection`, `sortSelectedToTop`, `isReorderable`, `onReorder`, `onOptionClick`, `focusOnHover`, `listGap`, `listStyles`, `optionStyles`, `sectionStyles` and `headingStyles`.
|
|
545
|
-
|
|
546
|
-
```jsx
|
|
547
|
-
const userGroups = [
|
|
548
|
-
{
|
|
549
|
-
key: 'engineering',
|
|
550
|
-
title: 'Engineering',
|
|
551
|
-
children: [
|
|
552
|
-
{ key: 'engineering:ada', title: 'Ada Lovelace' },
|
|
553
|
-
{ key: 'engineering:grace', title: 'Grace Hopper' },
|
|
554
|
-
],
|
|
555
|
-
},
|
|
556
|
-
{
|
|
557
|
-
key: 'design',
|
|
558
|
-
title: 'Design',
|
|
559
|
-
children: [
|
|
560
|
-
{ key: 'design:dieter', title: 'Dieter Rams' },
|
|
561
|
-
{ key: 'design:susan', title: 'Susan Kare' },
|
|
562
|
-
],
|
|
563
|
-
},
|
|
564
|
-
{ key: 'contractors', title: 'Contractors', isLeaf: true },
|
|
565
|
-
];
|
|
566
|
-
|
|
567
|
-
<FilterPicker
|
|
568
|
-
isClearable
|
|
569
|
-
label="User groups"
|
|
570
|
-
placeholder="Select user groups..."
|
|
571
|
-
searchPlaceholder="Search groups and members..."
|
|
572
|
-
treeData={userGroups}
|
|
573
|
-
defaultSelectedKeys={['design', 'engineering:ada']}
|
|
574
|
-
defaultExpandedKeys={['engineering']}
|
|
575
|
-
onSelectionChange={(keys) => console.log(keys)}
|
|
576
|
-
/>
|
|
577
|
-
```
|
|
578
|
-
|
|
579
|
-
Keys must be unique across the whole tree. When one person belongs to several groups, give each occurrence its own key (`engineering:ada`, `support:ada`) and map the keys back to people in `onSelectionChange`.
|
|
580
|
-
|
|
581
527
|
### Loading Items
|
|
582
528
|
|
|
583
529
|
Use `isLoadingItems` to indicate that items are currently being fetched. Unlike `isLoading`, the trigger stays enabled so users can still open the popover and interact with items that have already loaded. A loading spinner appears in the search input suffix.
|
|
@@ -660,16 +606,6 @@ const [keyOrder, setKeyOrder] = useState([
|
|
|
660
606
|
- `Home/End` - Navigate to first/last option
|
|
661
607
|
- `Alt+ArrowUp` / `Alt+ArrowDown` - Reorder the focused item (when `isReorderable`)
|
|
662
608
|
|
|
663
|
-
With `treeData`, focus stays in the search input and the keys drive the active row:
|
|
664
|
-
|
|
665
|
-
- `Arrow Up/Down` - Move the active row
|
|
666
|
-
- `Home/End`, `Page Up/Page Down` - Move the active row to the first or last row
|
|
667
|
-
- `Arrow Right` - Expands the active row, or moves to its first child when it is open. With text in the search, only when the caret is at the end
|
|
668
|
-
- `Arrow Left` - Collapses the active row, or moves to its parent. With text in the search, only when the caret is at the start
|
|
669
|
-
- `Space` - Toggles the active row while the search is empty; otherwise types a space
|
|
670
|
-
- `Enter` - Toggles the active row and closes the popover
|
|
671
|
-
- `Escape` - Clears the search, then closes the popover
|
|
672
|
-
|
|
673
609
|
### Screen Reader Support
|
|
674
610
|
|
|
675
611
|
- Trigger button announces current selection state
|
|
@@ -686,8 +622,6 @@ With `treeData`, focus stays in the search input and the keys drive the active r
|
|
|
686
622
|
- `aria-controls` - References the popover while it is open
|
|
687
623
|
- `aria-describedby` - Associates help text and descriptions
|
|
688
624
|
|
|
689
|
-
In tree mode, the search input is a `combobox` with `aria-haspopup="tree"`, `aria-controls` naming the tree while it has rows, and `aria-activedescendant` naming the active row. Each row reports its level, position and expansion, and its checkbox reports checked, not checked or mixed. Nothing in the tree is a tab stop, so `Tab` moves from the search to the footer.
|
|
690
|
-
|
|
691
625
|
## Best Practices
|
|
692
626
|
|
|
693
627
|
1. **Do**: Provide clear, descriptive labels for the trigger
|
|
@@ -51,7 +51,7 @@ A number input component that allows users to enter numeric values and increment
|
|
|
51
51
|
- `Home` / `End` set the value to `minValue` / `maxValue`, when those are set
|
|
52
52
|
- `Enter` commits the typed number, firing `onChange` when the value changed
|
|
53
53
|
|
|
54
|
-
Because they run first, `e.preventDefault()` in `onKeyDown` cannot cancel them: it cancels
|
|
54
|
+
Because they run first, `e.preventDefault()` in `onKeyDown` cannot cancel them: it cancels what the browser would do with the key, such as submitting a surrounding form on `Enter`, and keeps an `Escape` or `Tab` at the input (below). That makes NumberInput the exception among the fields with built-in key handling (`ComboBox`, `SearchComboBox`, `TagInput` and `CommandTextArea` run your handler first and skip their own handling for a key you prevent), and it is what makes an `Enter` handler work here: by the time it runs, the typed number is committed and any `onChange` for it has fired.
|
|
55
55
|
|
|
56
56
|
```jsx
|
|
57
57
|
<NumberInput
|
|
@@ -64,7 +64,7 @@ Because they run first, `e.preventDefault()` in `onKeyDown` cannot cancel them:
|
|
|
64
64
|
/>
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
The handler receives React Aria's keyboard event rather than a plain React one. Keys other than `Enter` continue to ancestors as usual; `Enter` stops at the input unless you call `e.continuePropagation()`.
|
|
67
|
+
The handler receives React Aria's keyboard event rather than a plain React one. Keys other than `Enter` continue to ancestors as usual; `Enter` stops at the input unless you call `e.continuePropagation()`. As in every field, an `Escape` or `Tab` your handler prevents stays at the input, so a surrounding `Dialog` neither closes nor moves focus on it.
|
|
68
68
|
|
|
69
69
|
### Base Properties
|
|
70
70
|
|
|
@@ -36,9 +36,11 @@ A password input is a specialized text field that masks user input to protect se
|
|
|
36
36
|
|
|
37
37
|
#### Keyboard Events
|
|
38
38
|
|
|
39
|
-
`onKeyDown` and `onKeyUp` are attached to the `<input>` by React Aria's `useTextField`. PasswordInput has no key handling of its own, so the handler simply receives the event: `e.preventDefault()` cancels
|
|
39
|
+
`onKeyDown` and `onKeyUp` are attached to the `<input>` by React Aria's `useTextField`. PasswordInput has no key handling of its own, so the handler simply receives the event: `e.preventDefault()` cancels what the browser would do with the key, such as typing the character or submitting a surrounding form on `Enter`. The visibility toggle is a separate button and never sees the input's keys.
|
|
40
40
|
|
|
41
|
-
The handler receives React Aria's keyboard event rather than a plain React one, and once you pass `onKeyDown`
|
|
41
|
+
The handler receives React Aria's keyboard event rather than a plain React one, and once you pass `onKeyDown` React Aria stops the key's propagation after your handler: a parent's `onKeyDown` no longer sees it. Call `e.continuePropagation()` for the keys that should travel on.
|
|
42
|
+
|
|
43
|
+
`Escape` and `Tab` are the exception, as in every field: they go on to ancestors, so a surrounding `Dialog` still closes on `Escape` and moves focus on `Tab`. When your handler acts on one, call `e.preventDefault()` and it stays at the input. To sign in on `Enter`:
|
|
42
44
|
|
|
43
45
|
```jsx
|
|
44
46
|
<PasswordInput
|
|
@@ -47,14 +49,12 @@ The handler receives React Aria's keyboard event rather than a plain React one,
|
|
|
47
49
|
if (e.key === 'Enter') {
|
|
48
50
|
e.preventDefault(); // keep a surrounding form from submitting
|
|
49
51
|
signIn();
|
|
50
|
-
} else {
|
|
51
|
-
e.continuePropagation(); // let Escape still close a Dialog
|
|
52
52
|
}
|
|
53
53
|
}}
|
|
54
54
|
/>
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
The fields that do handle keys themselves (`ComboBox`, `SearchComboBox`, `TagInput`, `CommandTextArea`) run your `onKeyDown` first and skip their own handling for a key you prevent. `NumberInput` is the exception: React Aria runs its stepping and `Enter` commit before your handler.
|
|
57
|
+
The fields that do handle keys themselves (`ComboBox`, `SearchComboBox`, `TagInput`, `CommandTextArea`) run your `onKeyDown` first and skip their own handling for a key you prevent. `NumberInput` is the exception: React Aria runs its stepping and `Enter` commit before your handler. In all of them, a prevented `Escape` or `Tab` stays at the input.
|
|
58
58
|
|
|
59
59
|
### Base Properties
|
|
60
60
|
|
|
@@ -46,7 +46,7 @@ Choose a different component when the interaction has another outcome:
|
|
|
46
46
|
- **`onOpenChange`** `(isOpen: boolean) => void` — Fired when the popover opens or closes
|
|
47
47
|
- **`onFocus`** `() => void` — Fired when focus enters the component
|
|
48
48
|
- **`onBlur`** `() => void` — Fired when focus leaves the component
|
|
49
|
-
- **`onKeyDown`** `(e: KeyboardEvent) => void` — Fired when a key is pressed on the input, before the component's own key handling. Call `e.preventDefault()` to skip that handling for the key: a prevented `Enter` selects nothing and does not call `onSubmit`, a prevented `ArrowDown` does not open the popover. The event is React Aria's keyboard event,
|
|
49
|
+
- **`onKeyDown`** `(e: KeyboardEvent) => void` — Fired when a key is pressed on the input, before the component's own key handling. Call `e.preventDefault()` to skip that handling for the key: a prevented `Enter` selects nothing and does not call `onSubmit`, a prevented `ArrowDown` does not open the popover. The event is React Aria's keyboard event. `Escape` and `Tab` go on to ancestors, so a surrounding `Dialog` still closes on `Escape` and moves focus on `Tab`, unless SearchComboBox acts on them or the handler prevents them. It acts on `Escape` while the list is open or the input has text: it closes the list, or clears the text, or, when `isClearable` is off, keeps the browser from clearing it, so the `Escape` that closes the dialog is the one pressed with the input empty. Other keys stop at the input unless the handler calls `e.continuePropagation()`
|
|
50
50
|
- **`prefix`** `ReactNode` — Content rendered before the input
|
|
51
51
|
- **`suffix`** `ReactNode` — Content rendered after the input
|
|
52
52
|
- **`suffixPosition`** `'before' | 'after'` (default: `before`) — Position of suffix relative to status icons
|
|
@@ -181,7 +181,7 @@ const [searchValue, setSearchValue] = useState('');
|
|
|
181
181
|
### Keyboard Navigation
|
|
182
182
|
|
|
183
183
|
- `Tab` - Moves focus to the search input. The clear button is skipped: it is not in the `Tab` order
|
|
184
|
-
- `Escape` - Clears the search input and calls `onClear`, whether or not `isClearable` is set, as in a native search field. With the input already empty, `Escape` is left to the surrounding UI, so a `Dialog` closes on the next press
|
|
184
|
+
- `Escape` - Clears the search input and calls `onClear`, whether or not `isClearable` is set, as in a native search field. With the input already empty, `Escape` is left to the surrounding UI, so a `Dialog` closes on the next press. An `onKeyDown` that prevents it keeps it at the input, as in every field; one that doesn't leaves `Escape` and `Tab` going on to the surrounding UI
|
|
185
185
|
- `Enter` - Submits search or triggers onSubmit callback
|
|
186
186
|
- All standard text input keyboard shortcuts work for text entry
|
|
187
187
|
|
|
@@ -53,7 +53,7 @@ A multi-value field. The user types a value into a single-line input and commits
|
|
|
53
53
|
- **`onOpenChange`** `(isOpen: boolean) => void` — Called when the suggestions popover opens or closes
|
|
54
54
|
- **`onFocus`** `() => void` — Called when focus enters the component: the input, a chip or the popover
|
|
55
55
|
- **`onBlur`** `() => void` — Called when focus leaves the component entirely, after the typed text is committed and before the press that moved focus is handled, so a Save click sees the new value
|
|
56
|
-
- **`onKeyDown`** `(e: KeyboardEvent) => void` — Called when a key is pressed in the input, before the component handles it. Call `e.preventDefault()` to stop the built-in handling
|
|
56
|
+
- **`onKeyDown`** `(e: KeyboardEvent) => void` — Called when a key is pressed in the input, before the component handles it. Call `e.preventDefault()` to stop the built-in handling. `Escape` and `Tab` go on to ancestors, so a surrounding `Dialog` still closes on `Escape` and moves focus on `Tab`, unless TagInput acts on them or you prevent them
|
|
57
57
|
- **`inputRef`**, **`wrapperRef`**, **`popoverRef`**, **`listBoxRef`** `RefObject` — Refs to the input, the bordered input box, the popover and its listbox. The forwarded `ref` points at the root, which holds the input and the chips
|
|
58
58
|
- **`mods`** `Record<string, boolean>` — Modifiers for the bordered input box, see [Modifiers](#modifiers)
|
|
59
59
|
|
|
@@ -65,9 +65,11 @@ These properties allow direct style application without using the `styles` prop:
|
|
|
65
65
|
|
|
66
66
|
### Keyboard Events
|
|
67
67
|
|
|
68
|
-
`onKeyDown` and `onKeyUp` are attached to the `<textarea>` by React Aria's `useTextField`. TextArea has no key handling of its own, so the handler simply receives the event: `e.preventDefault()` cancels
|
|
68
|
+
`onKeyDown` and `onKeyUp` are attached to the `<textarea>` by React Aria's `useTextField`. TextArea has no key handling of its own, so the handler simply receives the event: `e.preventDefault()` cancels what the browser would do with the key, such as inserting a newline on `Enter`.
|
|
69
69
|
|
|
70
|
-
The handler receives React Aria's keyboard event rather than a plain React one, and once you pass `onKeyDown`
|
|
70
|
+
The handler receives React Aria's keyboard event rather than a plain React one, and once you pass `onKeyDown` React Aria stops the key's propagation after your handler: a parent's `onKeyDown` no longer sees it. Call `e.continuePropagation()` for the keys that should travel on.
|
|
71
|
+
|
|
72
|
+
`Escape` and `Tab` are the exception, as in every field: they go on to ancestors, so a surrounding `Dialog` still closes on `Escape` and moves focus on `Tab`. When your handler acts on one, call `e.preventDefault()` and it stays at the textarea:
|
|
71
73
|
|
|
72
74
|
```jsx
|
|
73
75
|
<TextArea
|
|
@@ -76,14 +78,15 @@ The handler receives React Aria's keyboard event rather than a plain React one,
|
|
|
76
78
|
if (e.key === 'Enter' && (e.metaKey || e.ctrlKey)) {
|
|
77
79
|
e.preventDefault(); // no newline
|
|
78
80
|
send();
|
|
79
|
-
} else {
|
|
80
|
-
e.
|
|
81
|
+
} else if (e.key === 'Escape' && isEditing) {
|
|
82
|
+
e.preventDefault(); // keep a surrounding Dialog open
|
|
83
|
+
cancelEdit();
|
|
81
84
|
}
|
|
82
85
|
}}
|
|
83
86
|
/>
|
|
84
87
|
```
|
|
85
88
|
|
|
86
|
-
The fields that do handle keys themselves (`ComboBox`, `SearchComboBox`, `TagInput`, `CommandTextArea`) run your `onKeyDown` first and skip their own handling for a key you prevent. `NumberInput` is the exception: React Aria runs its stepping and `Enter` commit before your handler.
|
|
89
|
+
The fields that do handle keys themselves (`ComboBox`, `SearchComboBox`, `TagInput`, `CommandTextArea`) run your `onKeyDown` first and skip their own handling for a key you prevent. `NumberInput` is the exception: React Aria runs its stepping and `Enter` commit before your handler. In all of them, a prevented `Escape` or `Tab` stays at the input.
|
|
87
90
|
|
|
88
91
|
### Base Properties
|
|
89
92
|
|
|
@@ -45,9 +45,11 @@ A text input component that allows users to input custom text entries with a key
|
|
|
45
45
|
|
|
46
46
|
#### Keyboard Events
|
|
47
47
|
|
|
48
|
-
`onKeyDown` and `onKeyUp` are attached to the `<input>` by React Aria's `useTextField`. TextInput has no key handling of its own, so the handler simply receives the event: `e.preventDefault()` cancels
|
|
48
|
+
`onKeyDown` and `onKeyUp` are attached to the `<input>` by React Aria's `useTextField`. TextInput has no key handling of its own, so the handler simply receives the event: `e.preventDefault()` cancels what the browser would do with the key, such as typing the character or submitting a surrounding form on `Enter`.
|
|
49
49
|
|
|
50
|
-
The handler receives React Aria's keyboard event rather than a plain React one, and once you pass `onKeyDown`
|
|
50
|
+
The handler receives React Aria's keyboard event rather than a plain React one, and once you pass `onKeyDown` React Aria stops the key's propagation after your handler: a parent's `onKeyDown` no longer sees it. Call `e.continuePropagation()` for the keys that should travel on.
|
|
51
|
+
|
|
52
|
+
`Escape` and `Tab` are the exception, as in every field: they go on to ancestors, so a surrounding `Dialog` still closes on `Escape` and moves focus on `Tab`. When your handler acts on one, call `e.preventDefault()` and it stays at the input:
|
|
51
53
|
|
|
52
54
|
```jsx
|
|
53
55
|
<TextInput
|
|
@@ -56,14 +58,15 @@ The handler receives React Aria's keyboard event rather than a plain React one,
|
|
|
56
58
|
if (e.key === 'Enter') {
|
|
57
59
|
e.preventDefault(); // keep a surrounding form from submitting
|
|
58
60
|
commit();
|
|
59
|
-
} else {
|
|
60
|
-
e.
|
|
61
|
+
} else if (e.key === 'Escape') {
|
|
62
|
+
e.preventDefault(); // keep a surrounding Dialog open
|
|
63
|
+
revert();
|
|
61
64
|
}
|
|
62
65
|
}}
|
|
63
66
|
/>
|
|
64
67
|
```
|
|
65
68
|
|
|
66
|
-
The fields that do handle keys themselves (`ComboBox`, `SearchComboBox`, `TagInput`, `CommandTextArea`) run your `onKeyDown` first and skip their own handling for a key you prevent. `NumberInput` is the exception: React Aria runs its stepping and `Enter` commit before your handler.
|
|
69
|
+
The fields that do handle keys themselves (`ComboBox`, `SearchComboBox`, `TagInput`, `CommandTextArea`) run your `onKeyDown` first and skip their own handling for a key you prevent. `NumberInput` is the exception: React Aria runs its stepping and `Enter` commit before your handler. In all of them, a prevented `Escape` or `Tab` stays at the input.
|
|
67
70
|
|
|
68
71
|
### Base Properties
|
|
69
72
|
|
package/package.json
CHANGED
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-8292376 | Cube Dev Team */
|
|
2
|
-
//#region src/components/content/Tree/checked-keys.ts
|
|
3
|
-
/**
|
|
4
|
-
* Pure checkbox cascade for a tree: which keys are fully checked and which
|
|
5
|
-
* are half-checked, and what one toggle does to them.
|
|
6
|
-
*
|
|
7
|
-
* Shared by `Tree` (through `useCheckboxTree`) and `FilterPicker`'s tree
|
|
8
|
-
* mode. The picker renders a filtered copy of `treeData` but must conduct
|
|
9
|
-
* over the whole tree, so a search never reads a hidden node as unchecked.
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* Returns whether a node should be checkable (i.e. clicking the
|
|
13
|
-
* checkbox should affect it).
|
|
14
|
-
*
|
|
15
|
-
* Skips:
|
|
16
|
-
* - explicitly disabled nodes (`isDisabled === true`)
|
|
17
|
-
* - explicitly disabled checkboxes (`isCheckboxDisabled === true`)
|
|
18
|
-
* - nodes that opted out via `isCheckable === false`
|
|
19
|
-
*/
|
|
20
|
-
function isNodeEligible(node) {
|
|
21
|
-
if (!node) return false;
|
|
22
|
-
if (node.isDisabled) return false;
|
|
23
|
-
if (node.isCheckboxDisabled) return false;
|
|
24
|
-
if (node.isCheckable === false) return false;
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Recursively walk a subtree bottom-up, deriving which nodes are fully
|
|
29
|
-
* checked vs half-checked. Mutates `checked` and `half` in place.
|
|
30
|
-
*/
|
|
31
|
-
function deriveCheckedState(node, index, checked, half) {
|
|
32
|
-
const childKeys = index.childrenOf.get(node.key) ?? [];
|
|
33
|
-
if (childKeys.length === 0) {
|
|
34
|
-
const eligible = isNodeEligible(node);
|
|
35
|
-
const isChecked = checked.has(node.key);
|
|
36
|
-
return {
|
|
37
|
-
allChecked: !eligible || isChecked,
|
|
38
|
-
anyChecked: isChecked,
|
|
39
|
-
anyEligible: eligible
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
let allChecked = true;
|
|
43
|
-
let anyChecked = false;
|
|
44
|
-
let anyEligible = false;
|
|
45
|
-
for (const childKey of childKeys) {
|
|
46
|
-
const child = index.byKey.get(childKey);
|
|
47
|
-
if (!child) continue;
|
|
48
|
-
const r = deriveCheckedState(child, index, checked, half);
|
|
49
|
-
if (r.anyEligible) anyEligible = true;
|
|
50
|
-
if (!r.allChecked) allChecked = false;
|
|
51
|
-
if (r.anyChecked) anyChecked = true;
|
|
52
|
-
}
|
|
53
|
-
const eligible = isNodeEligible(node);
|
|
54
|
-
if (!anyEligible) half.delete(node.key);
|
|
55
|
-
else if (allChecked) {
|
|
56
|
-
checked.add(node.key);
|
|
57
|
-
half.delete(node.key);
|
|
58
|
-
} else if (anyChecked) {
|
|
59
|
-
checked.delete(node.key);
|
|
60
|
-
half.add(node.key);
|
|
61
|
-
} else {
|
|
62
|
-
checked.delete(node.key);
|
|
63
|
-
half.delete(node.key);
|
|
64
|
-
}
|
|
65
|
-
return {
|
|
66
|
-
allChecked: !eligible ? allChecked : checked.has(node.key) && allChecked,
|
|
67
|
-
anyChecked: anyChecked || checked.has(node.key),
|
|
68
|
-
anyEligible: anyEligible || eligible
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Derive `{ checked, halfChecked }` from a source-of-truth `checked` set,
|
|
73
|
-
* as AntD does:
|
|
74
|
-
*
|
|
75
|
-
* - First down: a checked key checks its eligible descendants, so a parent
|
|
76
|
-
* key stands for its subtree even when its children aren't listed, and
|
|
77
|
-
* even when the parent's own checkbox is disabled.
|
|
78
|
-
* - Then bottom-up: a parent is fully checked iff every eligible
|
|
79
|
-
* descendant leaf is checked, and half-checked iff at least one eligible
|
|
80
|
-
* descendant is checked or half-checked, but not all.
|
|
81
|
-
*
|
|
82
|
-
* Both passes look through ineligible nodes (disabled / opt-out): such a
|
|
83
|
-
* node neither forces a parent into the unchecked nor half state, nor
|
|
84
|
-
* stops a cascade from reaching the eligible nodes below it. A locked
|
|
85
|
-
* node with no eligible descendants keeps its own state.
|
|
86
|
-
*/
|
|
87
|
-
function deriveCheckedSets(treeData, index, source) {
|
|
88
|
-
const checked = /* @__PURE__ */ new Set();
|
|
89
|
-
const halfChecked = /* @__PURE__ */ new Set();
|
|
90
|
-
const checkSubtree = (node) => {
|
|
91
|
-
if (isNodeEligible(node)) checked.add(node.key);
|
|
92
|
-
for (const ck of index.childrenOf.get(node.key) ?? []) {
|
|
93
|
-
const child = index.byKey.get(ck);
|
|
94
|
-
if (child) checkSubtree(child);
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
for (const key of source) {
|
|
98
|
-
checked.add(key);
|
|
99
|
-
for (const childKey of index.childrenOf.get(key) ?? []) {
|
|
100
|
-
const child = index.byKey.get(childKey);
|
|
101
|
-
if (child) checkSubtree(child);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
for (const root of treeData) deriveCheckedState(root, index, checked, halfChecked);
|
|
105
|
-
return {
|
|
106
|
-
checked,
|
|
107
|
-
halfChecked
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Toggle `key` against the derived `checked` set: propagate *down*
|
|
112
|
-
* through its subtree, looking through ineligible nodes as
|
|
113
|
-
* `deriveCheckedSets` does, and drop its ancestors. Returns the next
|
|
114
|
-
* source-of-truth set, or `null` when the node can't be toggled. Pass the
|
|
115
|
-
* result through `deriveCheckedSets`, which adds back the ancestors that
|
|
116
|
-
* end up fully checked.
|
|
117
|
-
*
|
|
118
|
-
* Seed it with the derived set, not the source one. The source set may
|
|
119
|
-
* only contain leaf keys (e.g. when `defaultCheckedKeys` is leaf-only, or
|
|
120
|
-
* a consumer in controlled-array mode passes only leaves), so it would
|
|
121
|
-
* read a fully checked parent as unchecked.
|
|
122
|
-
*/
|
|
123
|
-
function toggleCheckedKey(index, checked, key) {
|
|
124
|
-
const node = index.byKey.get(key);
|
|
125
|
-
if (!node || !isNodeEligible(node)) return null;
|
|
126
|
-
const willCheck = !checked.has(key);
|
|
127
|
-
const next = new Set(checked);
|
|
128
|
-
const apply = (n) => {
|
|
129
|
-
let follows = false;
|
|
130
|
-
for (const ck of index.childrenOf.get(n.key) ?? []) {
|
|
131
|
-
const child = index.byKey.get(ck);
|
|
132
|
-
if (child && apply(child)) follows = true;
|
|
133
|
-
}
|
|
134
|
-
if (follows || isNodeEligible(n)) {
|
|
135
|
-
if (willCheck) next.add(n.key);
|
|
136
|
-
else next.delete(n.key);
|
|
137
|
-
}
|
|
138
|
-
return follows || isNodeEligible(n);
|
|
139
|
-
};
|
|
140
|
-
apply(node);
|
|
141
|
-
let parentKey = index.parentOf.get(key);
|
|
142
|
-
while (parentKey) {
|
|
143
|
-
next.delete(parentKey);
|
|
144
|
-
parentKey = index.parentOf.get(parentKey);
|
|
145
|
-
}
|
|
146
|
-
return next;
|
|
147
|
-
}
|
|
148
|
-
/** A checked set as an array in tree order; keys the tree lacks go last. */
|
|
149
|
-
function toOrderedKeys(index, checked) {
|
|
150
|
-
const set = new Set(checked);
|
|
151
|
-
const ordered = [...index.byKey.keys()].filter((key) => set.has(key));
|
|
152
|
-
for (const key of set) if (!index.byKey.has(key)) ordered.push(key);
|
|
153
|
-
return ordered;
|
|
154
|
-
}
|
|
155
|
-
//#endregion
|
|
156
|
-
export { deriveCheckedSets, isNodeEligible, toOrderedKeys, toggleCheckedKey };
|
|
157
|
-
|
|
158
|
-
//# sourceMappingURL=checked-keys.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checked-keys.js","names":["TreeIndex","CubeTreeNodeData","isNodeEligible","node","isDisabled","isCheckboxDisabled","isCheckable","deriveCheckedState","index","checked","Set","half","allChecked","anyChecked","anyEligible","childKeys","childrenOf","get","key","length","eligible","isChecked","has","childKey","child","byKey","r","delete","add","deriveCheckedSets","treeData","source","Iterable","halfChecked","checkSubtree","ck","root","toggleCheckedKey","willCheck","next","apply","n","follows","parentKey","parentOf","toOrderedKeys","set","ordered","keys","filter","push"],"sources":["../../../../src/components/content/Tree/checked-keys.ts"],"sourcesContent":["import type { TreeIndex } from './tree-index';\nimport type { CubeTreeNodeData } from './types';\n\n/**\n * Pure checkbox cascade for a tree: which keys are fully checked and which\n * are half-checked, and what one toggle does to them.\n *\n * Shared by `Tree` (through `useCheckboxTree`) and `FilterPicker`'s tree\n * mode. The picker renders a filtered copy of `treeData` but must conduct\n * over the whole tree, so a search never reads a hidden node as unchecked.\n */\n\n/**\n * Returns whether a node should be checkable (i.e. clicking the\n * checkbox should affect it).\n *\n * Skips:\n * - explicitly disabled nodes (`isDisabled === true`)\n * - explicitly disabled checkboxes (`isCheckboxDisabled === true`)\n * - nodes that opted out via `isCheckable === false`\n */\nexport function isNodeEligible(node: CubeTreeNodeData | undefined): boolean {\n if (!node) return false;\n if (node.isDisabled) return false;\n if (node.isCheckboxDisabled) return false;\n if (node.isCheckable === false) return false;\n return true;\n}\n\n/**\n * Recursively walk a subtree bottom-up, deriving which nodes are fully\n * checked vs half-checked. Mutates `checked` and `half` in place.\n */\nfunction deriveCheckedState(\n node: CubeTreeNodeData,\n index: TreeIndex,\n checked: Set<string>,\n half: Set<string>,\n): { allChecked: boolean; anyChecked: boolean; anyEligible: boolean } {\n const childKeys = index.childrenOf.get(node.key) ?? [];\n\n if (childKeys.length === 0) {\n const eligible = isNodeEligible(node);\n const isChecked = checked.has(node.key);\n return {\n allChecked: !eligible || isChecked,\n anyChecked: isChecked,\n anyEligible: eligible,\n };\n }\n\n let allChecked = true;\n let anyChecked = false;\n let anyEligible = false;\n\n for (const childKey of childKeys) {\n const child = index.byKey.get(childKey);\n if (!child) continue;\n const r = deriveCheckedState(child, index, checked, half);\n if (r.anyEligible) anyEligible = true;\n if (!r.allChecked) allChecked = false;\n if (r.anyChecked) anyChecked = true;\n }\n\n const eligible = isNodeEligible(node);\n\n if (!anyEligible) {\n // No eligible descendants — this node behaves like a leaf for\n // checking purposes: its own checked state stands as-is.\n half.delete(node.key);\n } else if (allChecked) {\n checked.add(node.key);\n half.delete(node.key);\n } else if (anyChecked) {\n checked.delete(node.key);\n half.add(node.key);\n } else {\n checked.delete(node.key);\n half.delete(node.key);\n }\n\n return {\n allChecked: !eligible ? allChecked : checked.has(node.key) && allChecked,\n anyChecked: anyChecked || checked.has(node.key),\n anyEligible: anyEligible || eligible,\n };\n}\n\n/**\n * Derive `{ checked, halfChecked }` from a source-of-truth `checked` set,\n * as AntD does:\n *\n * - First down: a checked key checks its eligible descendants, so a parent\n * key stands for its subtree even when its children aren't listed, and\n * even when the parent's own checkbox is disabled.\n * - Then bottom-up: a parent is fully checked iff every eligible\n * descendant leaf is checked, and half-checked iff at least one eligible\n * descendant is checked or half-checked, but not all.\n *\n * Both passes look through ineligible nodes (disabled / opt-out): such a\n * node neither forces a parent into the unchecked nor half state, nor\n * stops a cascade from reaching the eligible nodes below it. A locked\n * node with no eligible descendants keeps its own state.\n */\nexport function deriveCheckedSets(\n treeData: CubeTreeNodeData[],\n index: TreeIndex,\n source: Iterable<string>,\n): { checked: Set<string>; halfChecked: Set<string> } {\n const checked = new Set<string>();\n const halfChecked = new Set<string>();\n\n const checkSubtree = (node: CubeTreeNodeData) => {\n if (isNodeEligible(node)) checked.add(node.key);\n for (const ck of index.childrenOf.get(node.key) ?? []) {\n const child = index.byKey.get(ck);\n if (child) checkSubtree(child);\n }\n };\n\n // A key stands for its subtree even when its own checkbox is off limits,\n // so a locked parent in the value keeps its checked children, and with\n // them its own key, through the bottom-up pass.\n for (const key of source) {\n checked.add(key);\n for (const childKey of index.childrenOf.get(key) ?? []) {\n const child = index.byKey.get(childKey);\n if (child) checkSubtree(child);\n }\n }\n\n for (const root of treeData) {\n deriveCheckedState(root, index, checked, halfChecked);\n }\n\n return { checked, halfChecked };\n}\n\n/**\n * Toggle `key` against the derived `checked` set: propagate *down*\n * through its subtree, looking through ineligible nodes as\n * `deriveCheckedSets` does, and drop its ancestors. Returns the next\n * source-of-truth set, or `null` when the node can't be toggled. Pass the\n * result through `deriveCheckedSets`, which adds back the ancestors that\n * end up fully checked.\n *\n * Seed it with the derived set, not the source one. The source set may\n * only contain leaf keys (e.g. when `defaultCheckedKeys` is leaf-only, or\n * a consumer in controlled-array mode passes only leaves), so it would\n * read a fully checked parent as unchecked.\n */\nexport function toggleCheckedKey(\n index: TreeIndex,\n checked: Set<string>,\n key: string,\n): Set<string> | null {\n const node = index.byKey.get(key);\n if (!node || !isNodeEligible(node)) return null;\n\n const willCheck = !checked.has(key);\n const next = new Set(checked);\n\n // Returns whether the subtree holds an eligible node. A locked node\n // above one follows it; a locked node with none keeps its own state.\n const apply = (n: CubeTreeNodeData): boolean => {\n let follows = false;\n for (const ck of index.childrenOf.get(n.key) ?? []) {\n const child = index.byKey.get(ck);\n if (child && apply(child)) follows = true;\n }\n if (follows || isNodeEligible(n)) {\n if (willCheck) next.add(n.key);\n else next.delete(n.key);\n }\n return follows || isNodeEligible(n);\n };\n\n apply(node);\n\n // The bottom-up pass decides the ancestors, locked siblings' subtrees\n // included. Dropping them here also keeps an ancestor from a set taken as\n // given (the object form) from conducting down onto untouched siblings.\n let parentKey = index.parentOf.get(key);\n while (parentKey) {\n next.delete(parentKey);\n parentKey = index.parentOf.get(parentKey);\n }\n\n return next;\n}\n\n/** A checked set as an array in tree order; keys the tree lacks go last. */\nexport function toOrderedKeys(\n index: TreeIndex,\n checked: Iterable<string>,\n): string[] {\n const set = new Set(checked);\n const ordered = [...index.byKey.keys()].filter((key) => set.has(key));\n\n for (const key of set) {\n if (!index.byKey.has(key)) ordered.push(key);\n }\n\n return ordered;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAqBA,SAAgBE,eAAeC,MAA6C;CAC1E,IAAI,CAACA,MAAM,OAAO;CAClB,IAAIA,KAAKC,YAAY,OAAO;CAC5B,IAAID,KAAKE,oBAAoB,OAAO;CACpC,IAAIF,KAAKG,gBAAgB,OAAO,OAAO;CACvC,OAAO;AACT;;;;;AAMA,SAASC,mBACPJ,MACAK,OACAC,SACAE,MACoE;CACpE,MAAMI,YAAYP,MAAMQ,WAAWC,IAAId,KAAKe,GAAG,KAAK,CAAA;CAEpD,IAAIH,UAAUI,WAAW,GAAG;EAC1B,MAAMC,WAAWlB,eAAeC,IAAI;EACpC,MAAMkB,YAAYZ,QAAQa,IAAInB,KAAKe,GAAG;EACtC,OAAO;GACLN,YAAY,CAACQ,YAAYC;GACzBR,YAAYQ;GACZP,aAAaM;EACf;CACF;CAEA,IAAIR,aAAa;CACjB,IAAIC,aAAa;CACjB,IAAIC,cAAc;CAElB,KAAK,MAAMS,YAAYR,WAAW;EAChC,MAAMS,QAAQhB,MAAMiB,MAAMR,IAAIM,QAAQ;EACtC,IAAI,CAACC,OAAO;EACZ,MAAME,IAAInB,mBAAmBiB,OAAOhB,OAAOC,SAASE,IAAI;EACxD,IAAIe,EAAEZ,aAAaA,cAAc;EACjC,IAAI,CAACY,EAAEd,YAAYA,aAAa;EAChC,IAAIc,EAAEb,YAAYA,aAAa;CACjC;CAEA,MAAMO,WAAWlB,eAAeC,IAAI;CAEpC,IAAI,CAACW,aAGHH,KAAKgB,OAAOxB,KAAKe,GAAG;MACf,IAAIN,YAAY;EACrBH,QAAQmB,IAAIzB,KAAKe,GAAG;EACpBP,KAAKgB,OAAOxB,KAAKe,GAAG;CACtB,OAAO,IAAIL,YAAY;EACrBJ,QAAQkB,OAAOxB,KAAKe,GAAG;EACvBP,KAAKiB,IAAIzB,KAAKe,GAAG;CACnB,OAAO;EACLT,QAAQkB,OAAOxB,KAAKe,GAAG;EACvBP,KAAKgB,OAAOxB,KAAKe,GAAG;CACtB;CAEA,OAAO;EACLN,YAAY,CAACQ,WAAWR,aAAaH,QAAQa,IAAInB,KAAKe,GAAG,KAAKN;EAC9DC,YAAYA,cAAcJ,QAAQa,IAAInB,KAAKe,GAAG;EAC9CJ,aAAaA,eAAeM;CAC9B;AACF;;;;;;;;;;;;;;;;;AAkBA,SAAgBS,kBACdC,UACAtB,OACAuB,QACoD;CACpD,MAAMtB,0BAAU,IAAIC,IAAY;CAChC,MAAMuB,8BAAc,IAAIvB,IAAY;CAEpC,MAAMwB,gBAAgB/B,SAA2B;EAC/C,IAAID,eAAeC,IAAI,GAAGM,QAAQmB,IAAIzB,KAAKe,GAAG;EAC9C,KAAK,MAAMiB,MAAM3B,MAAMQ,WAAWC,IAAId,KAAKe,GAAG,KAAK,CAAA,GAAI;GACrD,MAAMM,QAAQhB,MAAMiB,MAAMR,IAAIkB,EAAE;GAChC,IAAIX,OAAOU,aAAaV,KAAK;EAC/B;CACF;CAKA,KAAK,MAAMN,OAAOa,QAAQ;EACxBtB,QAAQmB,IAAIV,GAAG;EACf,KAAK,MAAMK,YAAYf,MAAMQ,WAAWC,IAAIC,GAAG,KAAK,CAAA,GAAI;GACtD,MAAMM,QAAQhB,MAAMiB,MAAMR,IAAIM,QAAQ;GACtC,IAAIC,OAAOU,aAAaV,KAAK;EAC/B;CACF;CAEA,KAAK,MAAMY,QAAQN,UACjBvB,mBAAmB6B,MAAM5B,OAAOC,SAASwB,WAAW;CAGtD,OAAO;EAAExB;EAASwB;CAAY;AAChC;;;;;;;;;;;;;;AAeA,SAAgBI,iBACd7B,OACAC,SACAS,KACoB;CACpB,MAAMf,OAAOK,MAAMiB,MAAMR,IAAIC,GAAG;CAChC,IAAI,CAACf,QAAQ,CAACD,eAAeC,IAAI,GAAG,OAAO;CAE3C,MAAMmC,YAAY,CAAC7B,QAAQa,IAAIJ,GAAG;CAClC,MAAMqB,OAAO,IAAI7B,IAAID,OAAO;CAI5B,MAAM+B,SAASC,MAAiC;EAC9C,IAAIC,UAAU;EACd,KAAK,MAAMP,MAAM3B,MAAMQ,WAAWC,IAAIwB,EAAEvB,GAAG,KAAK,CAAA,GAAI;GAClD,MAAMM,QAAQhB,MAAMiB,MAAMR,IAAIkB,EAAE;GAChC,IAAIX,SAASgB,MAAMhB,KAAK,GAAGkB,UAAU;EACvC;EACA,IAAIA,WAAWxC,eAAeuC,CAAC,GAAG;GAChC,IAAIH,WAAWC,KAAKX,IAAIa,EAAEvB,GAAG;QACxBqB,KAAKZ,OAAOc,EAAEvB,GAAG;EACxB;EACA,OAAOwB,WAAWxC,eAAeuC,CAAC;CACpC;CAEAD,MAAMrC,IAAI;CAKV,IAAIwC,YAAYnC,MAAMoC,SAAS3B,IAAIC,GAAG;CACtC,OAAOyB,WAAW;EAChBJ,KAAKZ,OAAOgB,SAAS;EACrBA,YAAYnC,MAAMoC,SAAS3B,IAAI0B,SAAS;CAC1C;CAEA,OAAOJ;AACT;;AAGA,SAAgBM,cACdrC,OACAC,SACU;CACV,MAAMqC,MAAM,IAAIpC,IAAID,OAAO;CAC3B,MAAMsC,UAAU,CAAC,GAAGvC,MAAMiB,MAAMuB,KAAK,CAAC,CAAC,CAACC,QAAQ/B,QAAQ4B,IAAIxB,IAAIJ,GAAG,CAAC;CAEpE,KAAK,MAAMA,OAAO4B,KAChB,IAAI,CAACtC,MAAMiB,MAAMH,IAAIJ,GAAG,GAAG6B,QAAQG,KAAKhC,GAAG;CAG7C,OAAO6B;AACT"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-8292376 | Cube Dev Team */
|
|
2
|
-
//#region src/components/content/Tree/rowId.ts
|
|
3
|
-
/**
|
|
4
|
-
* The DOM id of the row with `key` in the tree whose id is `treeId`, for the
|
|
5
|
-
* `aria-activedescendant` of an input that drives the tree with virtual
|
|
6
|
-
* focus. React Aria's `useGridListItem` assigns it, and `react-aria` does not
|
|
7
|
-
* re-export its `getRowId`, so this mirrors that format: the tree id, a dash,
|
|
8
|
-
* then the key with whitespace removed (see `ListBox/optionId.ts`).
|
|
9
|
-
*/
|
|
10
|
-
function getTreeRowId(treeId, key) {
|
|
11
|
-
return `${treeId}-${key.replace(/\s*/g, "")}`;
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
export { getTreeRowId };
|
|
15
|
-
|
|
16
|
-
//# sourceMappingURL=rowId.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rowId.js","names":["getTreeRowId","treeId","key","replace"],"sources":["../../../../src/components/content/Tree/rowId.ts"],"sourcesContent":["/**\n * The DOM id of the row with `key` in the tree whose id is `treeId`, for the\n * `aria-activedescendant` of an input that drives the tree with virtual\n * focus. React Aria's `useGridListItem` assigns it, and `react-aria` does not\n * re-export its `getRowId`, so this mirrors that format: the tree id, a dash,\n * then the key with whitespace removed (see `ListBox/optionId.ts`).\n */\nexport function getTreeRowId(treeId: string, key: string): string {\n return `${treeId}-${key.replace(/\\s*/g, '')}`;\n}\n"],"mappings":";;;;;;;;;AAOA,SAAgBA,aAAaC,QAAgBC,KAAqB;CAChE,OAAO,GAAGD,OAAM,GAAIC,IAAIC,QAAQ,QAAQ,EAAE;AAC5C"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-8292376 | Cube Dev Team */
|
|
2
|
-
import { StyledHeader } from "../../actions/Menu/styled.js";
|
|
3
|
-
import { DEFAULT_INPUT_STYLES, INPUT_WRAPPER_STYLES } from "../TextInput/TextInputBase.js";
|
|
4
|
-
import { mergeStyles, tasty } from "@tenphi/tasty";
|
|
5
|
-
//#region src/components/fields/FilterListBox/styled.ts
|
|
6
|
-
/**
|
|
7
|
-
* The chrome FilterListBox draws around its list: the frame, the search row
|
|
8
|
-
* and the header above it. FilterPicker's tree mode draws the same chrome
|
|
9
|
-
* around a `Tree`, so both read as one control.
|
|
10
|
-
*/
|
|
11
|
-
const FilterListBoxWrapperElement = tasty({ styles: {
|
|
12
|
-
display: "grid",
|
|
13
|
-
flow: "column",
|
|
14
|
-
gridColumns: "1sf",
|
|
15
|
-
gridRows: "max-content max-content 1sf",
|
|
16
|
-
gap: 0,
|
|
17
|
-
position: "relative",
|
|
18
|
-
radius: true,
|
|
19
|
-
color: "#dark-02",
|
|
20
|
-
transition: "theme",
|
|
21
|
-
outline: {
|
|
22
|
-
"": "#purple-03.0",
|
|
23
|
-
"invalid & focused": "#danger.50",
|
|
24
|
-
focused: "#purple-03"
|
|
25
|
-
},
|
|
26
|
-
border: {
|
|
27
|
-
"": true,
|
|
28
|
-
focused: "#primary-text",
|
|
29
|
-
valid: "#success-text.50",
|
|
30
|
-
invalid: "#danger-text.50",
|
|
31
|
-
disabled: true,
|
|
32
|
-
popover: false
|
|
33
|
-
}
|
|
34
|
-
} });
|
|
35
|
-
const SearchWrapperElement = tasty({
|
|
36
|
-
qa: "FilterListBoxSearchWrapper",
|
|
37
|
-
styles: mergeStyles(INPUT_WRAPPER_STYLES, {
|
|
38
|
-
border: "bottom",
|
|
39
|
-
radius: "1r top",
|
|
40
|
-
fill: "#clear",
|
|
41
|
-
height: "($size + 1x)",
|
|
42
|
-
$size: {
|
|
43
|
-
"": "$size-md",
|
|
44
|
-
"size=small": "$size-sm",
|
|
45
|
-
"size=medium": "$size-md",
|
|
46
|
-
"size=large": "$size-lg"
|
|
47
|
-
}
|
|
48
|
-
})
|
|
49
|
-
});
|
|
50
|
-
const SearchInputElement = tasty({
|
|
51
|
-
as: "input",
|
|
52
|
-
styles: mergeStyles(DEFAULT_INPUT_STYLES, {
|
|
53
|
-
fill: "#clear",
|
|
54
|
-
padding: {
|
|
55
|
-
"": ".5x 1.5x",
|
|
56
|
-
prefix: "0 1.5x 0 .5x",
|
|
57
|
-
suffix: ".5x .5x .5x 1.5x",
|
|
58
|
-
"prefix & suffix": "0 .5x 0 .5x"
|
|
59
|
-
}
|
|
60
|
-
})
|
|
61
|
-
});
|
|
62
|
-
const StyledHeaderWithoutBorder = tasty(StyledHeader, { styles: { border: false } });
|
|
63
|
-
//#endregion
|
|
64
|
-
export { FilterListBoxWrapperElement, SearchInputElement, SearchWrapperElement, StyledHeaderWithoutBorder };
|
|
65
|
-
|
|
66
|
-
//# sourceMappingURL=styled.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styled.js","names":["mergeStyles","tasty","StyledHeader","DEFAULT_INPUT_STYLES","INPUT_WRAPPER_STYLES","FilterListBoxWrapperElement","styles","display","flow","gridColumns","gridRows","gap","position","radius","color","transition","outline","focused","border","valid","invalid","disabled","popover","SearchWrapperElement","qa","fill","height","$size","SearchInputElement","as","padding","prefix","suffix","StyledHeaderWithoutBorder"],"sources":["../../../../src/components/fields/FilterListBox/styled.ts"],"sourcesContent":["import { mergeStyles, tasty } from '@tenphi/tasty';\n\nimport { StyledHeader } from '../../actions/Menu/styled';\nimport {\n DEFAULT_INPUT_STYLES,\n INPUT_WRAPPER_STYLES,\n} from '../TextInput/TextInputBase';\n\n/**\n * The chrome FilterListBox draws around its list: the frame, the search row\n * and the header above it. FilterPicker's tree mode draws the same chrome\n * around a `Tree`, so both read as one control.\n */\n\nexport const FilterListBoxWrapperElement = tasty({\n styles: {\n display: 'grid',\n flow: 'column',\n gridColumns: '1sf',\n gridRows: 'max-content max-content 1sf',\n gap: 0,\n position: 'relative',\n radius: true,\n color: '#dark-02',\n transition: 'theme',\n outline: {\n '': '#purple-03.0',\n 'invalid & focused': '#danger.50',\n focused: '#purple-03',\n },\n border: {\n '': true,\n focused: '#primary-text',\n valid: '#success-text.50',\n invalid: '#danger-text.50',\n disabled: true,\n popover: false,\n },\n },\n});\n\nexport const SearchWrapperElement = tasty({\n qa: 'FilterListBoxSearchWrapper',\n styles: mergeStyles(INPUT_WRAPPER_STYLES, {\n border: 'bottom',\n radius: '1r top',\n fill: '#clear',\n height: '($size + 1x)',\n $size: {\n '': '$size-md',\n 'size=small': '$size-sm',\n 'size=medium': '$size-md',\n 'size=large': '$size-lg',\n },\n }),\n});\n\nexport const SearchInputElement = tasty({\n as: 'input',\n styles: mergeStyles(DEFAULT_INPUT_STYLES, {\n fill: '#clear',\n padding: {\n '': '.5x 1.5x',\n prefix: '0 1.5x 0 .5x',\n suffix: '.5x .5x .5x 1.5x',\n 'prefix & suffix': '0 .5x 0 .5x',\n },\n }),\n});\n\nexport const StyledHeaderWithoutBorder = tasty(StyledHeader, {\n styles: {\n border: false,\n },\n});\n"],"mappings":";;;;;;;;;;AAcA,MAAaK,8BAA8BJ,MAAM,EAC/CK,QAAQ;CACNC,SAAS;CACTC,MAAM;CACNC,aAAa;CACbC,UAAU;CACVC,KAAK;CACLC,UAAU;CACVC,QAAQ;CACRC,OAAO;CACPC,YAAY;CACZC,SAAS;EACP,IAAI;EACJ,qBAAqB;EACrBC,SAAS;CACX;CACAC,QAAQ;EACN,IAAI;EACJD,SAAS;EACTE,OAAO;EACPC,SAAS;EACTC,UAAU;EACVC,SAAS;CACX;AACF,EACF,CAAC;AAED,MAAaC,uBAAuBtB,MAAM;CACxCuB,IAAI;CACJlB,QAAQN,YAAYI,sBAAsB;EACxCc,QAAQ;EACRL,QAAQ;EACRY,MAAM;EACNC,QAAQ;EACRC,OAAO;GACL,IAAI;GACJ,cAAc;GACd,eAAe;GACf,cAAc;EAChB;CACF,CAAC;AACH,CAAC;AAED,MAAaC,qBAAqB3B,MAAM;CACtC4B,IAAI;CACJvB,QAAQN,YAAYG,sBAAsB;EACxCsB,MAAM;EACNK,SAAS;GACP,IAAI;GACJC,QAAQ;GACRC,QAAQ;GACR,mBAAmB;EACrB;CACF,CAAC;AACH,CAAC;AAED,MAAaC,4BAA4BhC,MAAMC,cAAc,EAC3DI,QAAQ,EACNY,QAAQ,MACV,EACF,CAAC"}
|