@cube-dev/ui-kit 0.0.0-canary-5a0d20c → 0.0.0-canary-8e50ee1
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/Divider.d.ts +22 -0
- package/dist/components/content/Divider/Divider.js +159 -0
- package/dist/components/content/Divider/Divider.js.map +1 -0
- 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 +39 -14
- package/dist/components/content/Tree/Tree.js.map +1 -1
- package/dist/components/content/Tree/TreeNode.js +8 -7
- package/dist/components/content/Tree/TreeNode.js.map +1 -1
- package/dist/components/content/Tree/checked-keys.js +158 -0
- package/dist/components/content/Tree/checked-keys.js.map +1 -0
- package/dist/components/content/Tree/rowId.js +16 -0
- package/dist/components/content/Tree/rowId.js.map +1 -0
- package/dist/components/content/Tree/styled.js +1 -1
- package/dist/components/content/Tree/tree-index.js +10 -2
- package/dist/components/content/Tree/tree-index.js.map +1 -1
- package/dist/components/content/Tree/types.d.ts +21 -1
- package/dist/components/content/Tree/use-checkbox-tree.js +17 -123
- 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.d.ts +2 -3
- package/dist/components/fields/Checkbox/Checkbox.js +4 -5
- package/dist/components/fields/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/fields/Checkbox/CheckboxGroup.d.ts +2 -3
- package/dist/components/fields/Checkbox/CheckboxGroup.js +38 -19
- package/dist/components/fields/Checkbox/CheckboxGroup.js.map +1 -1
- package/dist/components/fields/Checkbox/context.js +1 -1
- package/dist/components/fields/ColorInput/ColorInput.d.ts +2 -3
- package/dist/components/fields/ColorInput/ColorInput.js +3 -3
- package/dist/components/fields/ColorInput/ColorInput.js.map +1 -1
- package/dist/components/fields/ColorPicker/ColorPicker.d.ts +3 -9
- package/dist/components/fields/ColorPicker/ColorPicker.js +196 -186
- package/dist/components/fields/ColorPicker/ColorPicker.js.map +1 -1
- package/dist/components/fields/ColorSwatch/ColorSwatch.js +1 -1
- package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.d.ts +2 -3
- package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js +171 -143
- package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js.map +1 -1
- package/dist/components/fields/ComboBox/ComboBox.d.ts +2 -3
- package/dist/components/fields/ComboBox/ComboBox.js +572 -589
- 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 -3
- 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.d.ts +2 -3
- package/dist/components/fields/DatePicker/DateInput.js +5 -6
- package/dist/components/fields/DatePicker/DateInput.js.map +1 -1
- package/dist/components/fields/DatePicker/DateInputBase.js +1 -1
- package/dist/components/fields/DatePicker/DatePicker.d.ts +2 -3
- package/dist/components/fields/DatePicker/DatePicker.js +173 -83
- package/dist/components/fields/DatePicker/DatePicker.js.map +1 -1
- package/dist/components/fields/DatePicker/DatePickerButton.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerElement.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerInput.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerSegment.js +1 -1
- package/dist/components/fields/DatePicker/DateRangePicker.d.ts +2 -3
- package/dist/components/fields/DatePicker/DateRangePicker.js +204 -115
- package/dist/components/fields/DatePicker/DateRangePicker.js.map +1 -1
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.d.ts +2 -3
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +434 -284
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js.map +1 -1
- package/dist/components/fields/DatePicker/MonthPicker.js +1 -1
- package/dist/components/fields/DatePicker/PeriodPicker.d.ts +2 -3
- package/dist/components/fields/DatePicker/PeriodPicker.js +113 -86
- package/dist/components/fields/DatePicker/PeriodPicker.js.map +1 -1
- package/dist/components/fields/DatePicker/QuarterPicker.js +1 -1
- package/dist/components/fields/DatePicker/TimeInput.d.ts +2 -3
- package/dist/components/fields/DatePicker/TimeInput.js +5 -6
- package/dist/components/fields/DatePicker/TimeInput.js.map +1 -1
- package/dist/components/fields/DatePicker/WeekPicker.js +1 -1
- package/dist/components/fields/DatePicker/YearPicker.js +1 -1
- package/dist/components/fields/DatePicker/parseDate.js +1 -1
- package/dist/components/fields/DatePicker/period.js +1 -1
- package/dist/components/fields/DatePicker/props.js +1 -1
- package/dist/components/fields/DatePicker/utils.js +1 -1
- package/dist/components/fields/FileInput/FileInput.d.ts +2 -3
- package/dist/components/fields/FileInput/FileInput.js +141 -114
- package/dist/components/fields/FileInput/FileInput.js.map +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js +12 -64
- package/dist/components/fields/FilterListBox/FilterListBox.js.map +1 -1
- package/dist/components/fields/FilterListBox/styled.js +66 -0
- package/dist/components/fields/FilterListBox/styled.js.map +1 -0
- package/dist/components/fields/FilterPicker/FilterPicker.d.ts +29 -9
- package/dist/components/fields/FilterPicker/FilterPicker.js +75 -16
- package/dist/components/fields/FilterPicker/FilterPicker.js.map +1 -1
- package/dist/components/fields/FilterPicker/FilterTree.js +413 -0
- package/dist/components/fields/FilterPicker/FilterTree.js.map +1 -0
- package/dist/components/fields/Input/Input.js +1 -1
- package/dist/components/fields/ListBox/DraggableListBox.js +1 -1
- package/dist/components/fields/ListBox/ListBox.d.ts +2 -3
- package/dist/components/fields/ListBox/ListBox.js +10 -7
- package/dist/components/fields/ListBox/ListBox.js.map +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 -3
- 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 -3
- package/dist/components/fields/PasswordInput/PasswordInput.js.map +1 -1
- package/dist/components/fields/Picker/Picker.d.ts +3 -9
- package/dist/components/fields/Picker/Picker.js +11 -12
- package/dist/components/fields/Picker/Picker.js.map +1 -1
- package/dist/components/fields/RadioGroup/Radio.js +1 -1
- package/dist/components/fields/RadioGroup/RadioGroup.d.ts +2 -3
- package/dist/components/fields/RadioGroup/RadioGroup.js +110 -73
- package/dist/components/fields/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/components/fields/RadioGroup/context.js +1 -1
- package/dist/components/fields/SearchComboBox/SearchComboBox.d.ts +2 -3
- package/dist/components/fields/SearchComboBox/SearchComboBox.js +21 -12
- package/dist/components/fields/SearchComboBox/SearchComboBox.js.map +1 -1
- package/dist/components/fields/SearchInput/SearchInput.js +3 -3
- package/dist/components/fields/SearchInput/SearchInput.js.map +1 -1
- package/dist/components/fields/Select/Select.d.ts +2 -3
- package/dist/components/fields/Select/Select.js +10 -8
- 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 +42 -25
- package/dist/components/fields/Slider/RangeSlider.js.map +1 -1
- package/dist/components/fields/Slider/Slider.js +39 -36
- package/dist/components/fields/Slider/Slider.js.map +1 -1
- package/dist/components/fields/Slider/SliderBase.js +60 -61
- package/dist/components/fields/Slider/SliderBase.js.map +1 -1
- package/dist/components/fields/Slider/SliderThumb.js +1 -1
- package/dist/components/fields/Slider/SliderTrack.js +1 -1
- package/dist/components/fields/Slider/elements.js +1 -1
- package/dist/components/fields/Slider/index.js +1 -1
- package/dist/components/fields/Slider/types.d.ts +2 -3
- package/dist/components/fields/Switch/Switch.d.ts +2 -3
- package/dist/components/fields/Switch/Switch.js +124 -90
- package/dist/components/fields/Switch/Switch.js.map +1 -1
- package/dist/components/fields/TagInput/TagInput.d.ts +2 -3
- package/dist/components/fields/TagInput/TagInput.js +6 -7
- 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 -3
- package/dist/components/fields/TextArea/TextArea.js.map +1 -1
- package/dist/components/fields/TextInput/TextInput.js +3 -3
- package/dist/components/fields/TextInput/TextInput.js.map +1 -1
- package/dist/components/fields/TextInput/TextInputBase.d.ts +14 -5
- package/dist/components/fields/TextInput/TextInputBase.js +195 -98
- 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/index.d.ts +2 -2
- 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/index.d.ts +2 -2
- package/dist/components/fields/option-origin-press.js +1 -1
- package/dist/components/form/FieldWrapper/FieldWrapper.js +57 -120
- package/dist/components/form/FieldWrapper/FieldWrapper.js.map +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/field-chrome.js.map +1 -1
- package/dist/components/form/index.d.ts +1 -2
- package/dist/components/form/legacy-tooltip.js +2 -15
- package/dist/components/form/legacy-tooltip.js.map +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 +2 -6
- package/dist/components/form/wrapper.js.map +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 +2 -2
- package/dist/components/overlays/Notifications/PersistentNotificationsList.js.map +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.d.ts +3 -4
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/probe/canonicalize.js +1 -1
- package/dist/probe/css.js +1 -1
- package/dist/probe/index.js +1 -1
- package/dist/provider.js +1 -1
- package/dist/providers/TrackingProvider.js +1 -1
- package/dist/providers/navigation-url.js +1 -1
- package/dist/providers/navigationAdapter.default.js +1 -1
- package/dist/providers/use-navigation.js +1 -1
- package/dist/tokens/all-tokens.js +1 -1
- package/dist/tokens/base.js +1 -1
- package/dist/tokens/color-seed.js +1 -1
- package/dist/tokens/color-theme.js +1 -1
- package/dist/tokens/colors.js +1 -1
- package/dist/tokens/layout.js +1 -1
- package/dist/tokens/lazy-styles.js +1 -1
- package/dist/tokens/legacy-color.js +1 -1
- package/dist/tokens/palette-config.js +1 -1
- package/dist/tokens/palette.js +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 +3 -2
- 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/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/CreateComponent.md +1 -1
- package/docs/FieldProperties.md +5 -15
- package/docs/Usage.md +0 -2
- package/docs/components/content/Divider.md +103 -21
- package/docs/components/content/Tree.md +5 -4
- package/docs/components/fields/Checkbox.md +4 -0
- package/docs/components/fields/ColorInput.md +3 -0
- package/docs/components/fields/ColorPicker.md +2 -2
- package/docs/components/fields/ColorSwatchGroup.md +3 -2
- package/docs/components/fields/ComboBox.md +3 -0
- package/docs/components/fields/CommandTextArea.md +4 -0
- package/docs/components/fields/DatePicker.md +4 -0
- package/docs/components/fields/FileInput.md +5 -1
- package/docs/components/fields/FilterListBox.md +3 -0
- package/docs/components/fields/FilterPicker.md +70 -3
- package/docs/components/fields/HueSlider.md +2 -1
- package/docs/components/fields/ListBox.md +3 -0
- package/docs/components/fields/NumberInput.md +5 -1
- package/docs/components/fields/PasswordInput.md +4 -0
- package/docs/components/fields/PeriodPicker.md +4 -0
- package/docs/components/fields/Picker.md +4 -2
- package/docs/components/fields/RadioGroup.md +4 -1
- package/docs/components/fields/SearchComboBox.md +3 -0
- package/docs/components/fields/SearchInput.md +4 -0
- package/docs/components/fields/Select.md +3 -0
- package/docs/components/fields/Slider.md +1 -0
- package/docs/components/fields/Switch.md +1 -0
- package/docs/components/fields/TagInput.md +5 -1
- package/docs/components/fields/TextArea.md +4 -0
- package/docs/components/fields/TextInput.md +33 -2
- package/docs/components/overlays/Tooltip.md +1 -1
- package/package.json +1 -1
- package/dist/components/content/Divider.d.ts +0 -7
- package/dist/components/content/Divider.js +0 -105
- package/dist/components/content/Divider.js.map +0 -1
- package/dist/components/form/field-layout.d.ts +0 -10
- package/dist/components/form/field-layout.js +0 -96
- package/dist/components/form/field-layout.js.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-8e50ee1 | Cube Dev Team */
|
|
2
|
+
import { extractStyles } from "../../../utils/styles.js";
|
|
2
3
|
import { useLayoutEffect as useLayoutEffect$1 } from "../../../utils/react/useLayoutEffect.js";
|
|
3
4
|
import { useCombinedRefs } from "../../../utils/react/useCombinedRefs.js";
|
|
4
5
|
import { usePopoverSync } from "../../../utils/react/usePopoverSync.js";
|
|
@@ -15,7 +16,6 @@ import { getValidationMods } from "../../form/validation/resolve-validation-prop
|
|
|
15
16
|
import { getValidationIcon } from "../../form/validation/ValidationIndicator.js";
|
|
16
17
|
import { useFieldProps } from "../../form/Form/use-field/use-field-props.js";
|
|
17
18
|
import { wrapWithField } from "../../form/wrapper.js";
|
|
18
|
-
import { splitFieldLayout } from "../../form/field-layout.js";
|
|
19
19
|
import { getListBoxOptionId } from "../ListBox/optionId.js";
|
|
20
20
|
import { filterCollectionNodes, getEdgeVisibleKey, getNextVisibleKey, markKeyboardFocus } from "../ListBoxPopover/listNavigation.js";
|
|
21
21
|
import { DEFAULT_INPUT_STYLES, INPUT_WRAPPER_STYLES } from "../TextInput/TextInputBase.js";
|
|
@@ -23,7 +23,7 @@ import { ListBoxPopover } from "../ListBoxPopover/ListBoxPopover.js";
|
|
|
23
23
|
import { useCompositeFocus } from "../ListBoxPopover/useCompositeFocus.js";
|
|
24
24
|
import { collectOptions, findTypedOption, getItemLabel, highlightOption, resolveHighlightedKey, sortSelectedFirst } from "./comboBoxOptions.js";
|
|
25
25
|
import { c } from "react/compiler-runtime";
|
|
26
|
-
import { tasty } from "@tenphi/tasty";
|
|
26
|
+
import { BASE_STYLES, COLOR_STYLES, OUTER_STYLES, tasty } from "@tenphi/tasty";
|
|
27
27
|
import React, { forwardRef, useEffect, useRef, useState } from "react";
|
|
28
28
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
29
29
|
import { useCollator, useFilter, useKeyboard } from "react-aria";
|
|
@@ -37,6 +37,11 @@ const InputElement = tasty({
|
|
|
37
37
|
as: "input",
|
|
38
38
|
styles: DEFAULT_INPUT_STYLES
|
|
39
39
|
});
|
|
40
|
+
const PROP_STYLES = [
|
|
41
|
+
...BASE_STYLES,
|
|
42
|
+
...OUTER_STYLES,
|
|
43
|
+
...COLOR_STYLES
|
|
44
|
+
];
|
|
40
45
|
function useComboBoxState(t0) {
|
|
41
46
|
const $ = c(12);
|
|
42
47
|
const { selectedKey, defaultSelectedKey, inputValue, defaultInputValue, comboBoxId, triggerRef, popoverRef } = t0;
|
|
@@ -456,7 +461,7 @@ const ComboBoxInput = forwardRef(function ComboBoxInput(t0, ref) {
|
|
|
456
461
|
return t5;
|
|
457
462
|
});
|
|
458
463
|
const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
459
|
-
const $ = c(
|
|
464
|
+
const $ = c(279);
|
|
460
465
|
let t0;
|
|
461
466
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
462
467
|
t0 = { valuePropsMapper: _temp2 };
|
|
@@ -464,51 +469,52 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
|
464
469
|
} else t0 = $[0];
|
|
465
470
|
props = useFieldProps(props, t0);
|
|
466
471
|
const { t } = useI18n();
|
|
467
|
-
let { qa, label, isRequired, isInvalid, isValid, id, icon, prefix, isDisabled, autoFocus, autoComplete:
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
let
|
|
471
|
-
|
|
472
|
-
const
|
|
473
|
-
const
|
|
474
|
-
const
|
|
475
|
-
const
|
|
476
|
-
const
|
|
477
|
-
const
|
|
478
|
-
const
|
|
479
|
-
|
|
472
|
+
let { qa, label, extra, labelStyles, isRequired, necessityIndicator, isInvalid, isValid, id, icon, prefix: t1, isDisabled, autoFocus, autoComplete: t2, wrapperRef: t3, inputRef: t4, triggerRef, popoverRef, listBoxRef, isLoading, inputStyles, optionStyles, triggerStyles, listBoxStyles, overlayStyles, suffix, hideTrigger, message, description, size: t5, direction: t6, shouldFlip: t7, popoverTrigger: t8, suffixPosition: t9, filter, styles, labelSuffix, selectedKey, defaultSelectedKey, inputValue, defaultInputValue, onInputChange, isClearable, onClear, placeholder, allowsCustomValue, shouldCommitOnBlur: t10, clearOnBlur, items, children: renderChildren, sectionStyles, headingStyles, listGap, isReadOnly, overlayOffset: t11, containerPadding: t12, onSelectionChange: externalOnSelectionChange, sortSelectedToTop: sortSelectedToTopProp, onOpenChange, onFocus, onBlur, onKeyDown, form, ...otherProps } = props;
|
|
473
|
+
let prefix = t1;
|
|
474
|
+
const autoComplete = t2 === void 0 ? "off" : t2;
|
|
475
|
+
let wrapperRef = t3;
|
|
476
|
+
let inputRef = t4;
|
|
477
|
+
const size = t5 === void 0 ? "medium" : t5;
|
|
478
|
+
const direction = t6 === void 0 ? "bottom" : t6;
|
|
479
|
+
const shouldFlip = t7 === void 0 ? true : t7;
|
|
480
|
+
const popoverTrigger = t8 === void 0 ? "input" : t8;
|
|
481
|
+
const suffixPosition = t9 === void 0 ? "before" : t9;
|
|
482
|
+
const shouldCommitOnBlur = t10 === void 0 ? true : t10;
|
|
483
|
+
const overlayOffset = t11 === void 0 ? 8 : t11;
|
|
484
|
+
const containerPadding = t12 === void 0 ? 8 : t12;
|
|
485
|
+
let t13;
|
|
480
486
|
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
481
|
-
|
|
482
|
-
$[1] =
|
|
483
|
-
} else
|
|
484
|
-
const comboBoxId =
|
|
487
|
+
t13 = generateRandomId();
|
|
488
|
+
$[1] = t13;
|
|
489
|
+
} else t13 = $[1];
|
|
490
|
+
const comboBoxId = t13;
|
|
485
491
|
wrapperRef = useCombinedRefs(wrapperRef, ref);
|
|
486
492
|
popoverRef = useCombinedRefs(popoverRef);
|
|
487
|
-
const
|
|
488
|
-
const
|
|
489
|
-
let
|
|
490
|
-
if ($[2] !==
|
|
491
|
-
|
|
493
|
+
const t14 = wrapperRef;
|
|
494
|
+
const t15 = popoverRef;
|
|
495
|
+
let t16;
|
|
496
|
+
if ($[2] !== comboBoxId || $[3] !== defaultInputValue || $[4] !== defaultSelectedKey || $[5] !== inputValue || $[6] !== selectedKey || $[7] !== t14 || $[8] !== t15) {
|
|
497
|
+
t16 = {
|
|
492
498
|
selectedKey,
|
|
493
499
|
defaultSelectedKey,
|
|
494
500
|
inputValue,
|
|
495
501
|
defaultInputValue,
|
|
496
502
|
comboBoxId,
|
|
497
|
-
triggerRef:
|
|
498
|
-
popoverRef:
|
|
503
|
+
triggerRef: t14,
|
|
504
|
+
popoverRef: t15
|
|
499
505
|
};
|
|
500
|
-
$[2] =
|
|
501
|
-
$[3] =
|
|
502
|
-
$[4] =
|
|
503
|
-
$[5] =
|
|
504
|
-
$[6] =
|
|
506
|
+
$[2] = comboBoxId;
|
|
507
|
+
$[3] = defaultInputValue;
|
|
508
|
+
$[4] = defaultSelectedKey;
|
|
509
|
+
$[5] = inputValue;
|
|
510
|
+
$[6] = selectedKey;
|
|
505
511
|
$[7] = t14;
|
|
506
512
|
$[8] = t15;
|
|
507
|
-
|
|
508
|
-
|
|
513
|
+
$[9] = t16;
|
|
514
|
+
} else t16 = $[9];
|
|
515
|
+
const { effectiveSelectedKey, internalInputValue, isPopoverOpen, setIsPopoverOpen, setInternalSelectedKey, setInternalInputValue, isControlledKey, isControlledInput } = useComboBoxState(t16);
|
|
509
516
|
const sortSelectedToTop = sortSelectedToTopProp ?? (items ? true : false);
|
|
510
|
-
|
|
511
|
-
styles = fieldLayout.styles;
|
|
517
|
+
styles = extractStyles(otherProps, PROP_STYLES, styles);
|
|
512
518
|
inputRef = useCombinedRefs(inputRef);
|
|
513
519
|
triggerRef = useCombinedRefs(triggerRef);
|
|
514
520
|
listBoxRef = useCombinedRefs(listBoxRef);
|
|
@@ -516,7 +522,7 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
|
516
522
|
if (!isPopoverOpen && sortKey !== effectiveSelectedKey) setSortKey(effectiveSelectedKey);
|
|
517
523
|
let children;
|
|
518
524
|
let sortedItems;
|
|
519
|
-
if ($[
|
|
525
|
+
if ($[10] !== items || $[11] !== renderChildren || $[12] !== sortKey || $[13] !== sortSelectedToTop) {
|
|
520
526
|
sortedItems = items && sortSelectedToTop ? sortSelectedFirst(items, sortKey) : items;
|
|
521
527
|
children = renderChildren;
|
|
522
528
|
const renderFn = renderChildren;
|
|
@@ -527,124 +533,124 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
|
527
533
|
return rendered;
|
|
528
534
|
});
|
|
529
535
|
} catch {}
|
|
530
|
-
$[
|
|
531
|
-
$[
|
|
532
|
-
$[
|
|
533
|
-
$[
|
|
534
|
-
$[
|
|
535
|
-
$[
|
|
536
|
+
$[10] = items;
|
|
537
|
+
$[11] = renderChildren;
|
|
538
|
+
$[12] = sortKey;
|
|
539
|
+
$[13] = sortSelectedToTop;
|
|
540
|
+
$[14] = children;
|
|
541
|
+
$[15] = sortedItems;
|
|
536
542
|
} else {
|
|
537
|
-
children = $[
|
|
538
|
-
sortedItems = $[
|
|
543
|
+
children = $[14];
|
|
544
|
+
sortedItems = $[15];
|
|
539
545
|
}
|
|
540
|
-
const
|
|
541
|
-
let
|
|
542
|
-
if ($[
|
|
543
|
-
|
|
544
|
-
children:
|
|
546
|
+
const t17 = children;
|
|
547
|
+
let t18;
|
|
548
|
+
if ($[16] !== props.disabledKeys || $[17] !== sortedItems || $[18] !== t17) {
|
|
549
|
+
t18 = {
|
|
550
|
+
children: t17,
|
|
545
551
|
items: sortedItems,
|
|
546
552
|
disabledKeys: props.disabledKeys,
|
|
547
553
|
selectionMode: "none"
|
|
548
554
|
};
|
|
549
|
-
$[
|
|
550
|
-
$[
|
|
551
|
-
$[17] = t16;
|
|
555
|
+
$[16] = props.disabledKeys;
|
|
556
|
+
$[17] = sortedItems;
|
|
552
557
|
$[18] = t17;
|
|
553
|
-
|
|
554
|
-
|
|
558
|
+
$[19] = t18;
|
|
559
|
+
} else t18 = $[19];
|
|
560
|
+
const localCollectionState = useListState(t18);
|
|
555
561
|
const { selectedLabel, pickLabel } = useSelectedLabel(localCollectionState.collection, effectiveSelectedKey);
|
|
556
562
|
const effectiveInputValue = isControlledInput ? inputValue : internalInputValue ?? selectedLabel;
|
|
557
|
-
let
|
|
558
|
-
if ($[
|
|
559
|
-
|
|
563
|
+
let t19;
|
|
564
|
+
if ($[20] !== effectiveInputValue || $[21] !== filter) {
|
|
565
|
+
t19 = {
|
|
560
566
|
effectiveInputValue,
|
|
561
567
|
filter
|
|
562
568
|
};
|
|
563
|
-
$[
|
|
564
|
-
$[
|
|
565
|
-
$[
|
|
566
|
-
} else
|
|
567
|
-
const { filterFn, isSameText, setIsFilterActive } = useComboBoxFiltering(
|
|
568
|
-
let
|
|
569
|
-
if ($[
|
|
570
|
-
|
|
571
|
-
$[
|
|
572
|
-
$[
|
|
573
|
-
$[
|
|
574
|
-
} else
|
|
575
|
-
const filteredOptions =
|
|
569
|
+
$[20] = effectiveInputValue;
|
|
570
|
+
$[21] = filter;
|
|
571
|
+
$[22] = t19;
|
|
572
|
+
} else t19 = $[22];
|
|
573
|
+
const { filterFn, isSameText, setIsFilterActive } = useComboBoxFiltering(t19);
|
|
574
|
+
let t20;
|
|
575
|
+
if ($[23] !== filterFn || $[24] !== localCollectionState.collection) {
|
|
576
|
+
t20 = collectOptions(filterFn(localCollectionState.collection));
|
|
577
|
+
$[23] = filterFn;
|
|
578
|
+
$[24] = localCollectionState.collection;
|
|
579
|
+
$[25] = t20;
|
|
580
|
+
} else t20 = $[25];
|
|
581
|
+
const filteredOptions = t20;
|
|
576
582
|
const hasResults = filteredOptions.length > 0;
|
|
577
583
|
const shouldShowPopover = isPopoverOpen && hasResults;
|
|
578
584
|
const reportedOpenRef = useRef(shouldShowPopover);
|
|
579
|
-
let t20;
|
|
580
585
|
let t21;
|
|
581
|
-
|
|
582
|
-
|
|
586
|
+
let t22;
|
|
587
|
+
if ($[26] !== onOpenChange || $[27] !== shouldShowPopover) {
|
|
588
|
+
t21 = () => {
|
|
583
589
|
if (reportedOpenRef.current === shouldShowPopover) return;
|
|
584
590
|
reportedOpenRef.current = shouldShowPopover;
|
|
585
591
|
onOpenChange?.(shouldShowPopover);
|
|
586
592
|
};
|
|
587
|
-
|
|
588
|
-
$[
|
|
589
|
-
$[
|
|
590
|
-
$[27] = t20;
|
|
593
|
+
t22 = [shouldShowPopover, onOpenChange];
|
|
594
|
+
$[26] = onOpenChange;
|
|
595
|
+
$[27] = shouldShowPopover;
|
|
591
596
|
$[28] = t21;
|
|
597
|
+
$[29] = t22;
|
|
592
598
|
} else {
|
|
593
|
-
t20 = $[27];
|
|
594
599
|
t21 = $[28];
|
|
600
|
+
t22 = $[29];
|
|
595
601
|
}
|
|
596
|
-
useEffect(
|
|
602
|
+
useEffect(t21, t22);
|
|
597
603
|
const { isFocused, focusProps } = useFocus$1();
|
|
598
|
-
let
|
|
599
|
-
if ($[
|
|
600
|
-
|
|
604
|
+
let t23;
|
|
605
|
+
if ($[30] !== isControlledKey || $[31] !== setInternalSelectedKey) {
|
|
606
|
+
t23 = (key) => {
|
|
601
607
|
if (!isControlledKey) setInternalSelectedKey(key);
|
|
602
608
|
};
|
|
603
|
-
$[
|
|
604
|
-
$[
|
|
605
|
-
$[
|
|
606
|
-
} else
|
|
607
|
-
const setSelectedKey =
|
|
608
|
-
let
|
|
609
|
-
if ($[
|
|
610
|
-
|
|
609
|
+
$[30] = isControlledKey;
|
|
610
|
+
$[31] = setInternalSelectedKey;
|
|
611
|
+
$[32] = t23;
|
|
612
|
+
} else t23 = $[32];
|
|
613
|
+
const setSelectedKey = t23;
|
|
614
|
+
let t24;
|
|
615
|
+
if ($[33] !== effectiveInputValue || $[34] !== isControlledInput || $[35] !== onInputChange || $[36] !== setInternalInputValue) {
|
|
616
|
+
t24 = (label_0) => {
|
|
611
617
|
if (!isControlledInput) setInternalInputValue(null);
|
|
612
618
|
if (label_0 !== effectiveInputValue) onInputChange?.(label_0);
|
|
613
619
|
};
|
|
614
|
-
$[
|
|
615
|
-
$[
|
|
616
|
-
$[
|
|
617
|
-
$[
|
|
618
|
-
$[
|
|
619
|
-
} else
|
|
620
|
-
const showSelectionLabel =
|
|
621
|
-
let
|
|
622
|
-
if ($[
|
|
623
|
-
|
|
620
|
+
$[33] = effectiveInputValue;
|
|
621
|
+
$[34] = isControlledInput;
|
|
622
|
+
$[35] = onInputChange;
|
|
623
|
+
$[36] = setInternalInputValue;
|
|
624
|
+
$[37] = t24;
|
|
625
|
+
} else t24 = $[37];
|
|
626
|
+
const showSelectionLabel = t24;
|
|
627
|
+
let t25;
|
|
628
|
+
if ($[38] !== effectiveSelectedKey || $[39] !== externalOnSelectionChange || $[40] !== setSelectedKey || $[41] !== showSelectionLabel) {
|
|
629
|
+
t25 = () => {
|
|
624
630
|
if (effectiveSelectedKey != null) {
|
|
625
631
|
externalOnSelectionChange?.(null);
|
|
626
632
|
setSelectedKey(null);
|
|
627
633
|
}
|
|
628
634
|
showSelectionLabel("");
|
|
629
635
|
};
|
|
630
|
-
$[
|
|
631
|
-
$[
|
|
632
|
-
$[
|
|
633
|
-
$[
|
|
634
|
-
$[
|
|
635
|
-
} else
|
|
636
|
-
const clearSelectionAndInput =
|
|
637
|
-
let t25;
|
|
638
|
-
if ($[42] !== selectedLabel || $[43] !== showSelectionLabel) {
|
|
639
|
-
t25 = () => showSelectionLabel(selectedLabel);
|
|
640
|
-
$[42] = selectedLabel;
|
|
641
|
-
$[43] = showSelectionLabel;
|
|
642
|
-
$[44] = t25;
|
|
643
|
-
} else t25 = $[44];
|
|
644
|
-
const restoreSelectedLabel = t25;
|
|
636
|
+
$[38] = effectiveSelectedKey;
|
|
637
|
+
$[39] = externalOnSelectionChange;
|
|
638
|
+
$[40] = setSelectedKey;
|
|
639
|
+
$[41] = showSelectionLabel;
|
|
640
|
+
$[42] = t25;
|
|
641
|
+
} else t25 = $[42];
|
|
642
|
+
const clearSelectionAndInput = t25;
|
|
645
643
|
let t26;
|
|
646
|
-
if ($[
|
|
647
|
-
t26 = () =>
|
|
644
|
+
if ($[43] !== selectedLabel || $[44] !== showSelectionLabel) {
|
|
645
|
+
t26 = () => showSelectionLabel(selectedLabel);
|
|
646
|
+
$[43] = selectedLabel;
|
|
647
|
+
$[44] = showSelectionLabel;
|
|
648
|
+
$[45] = t26;
|
|
649
|
+
} else t26 = $[45];
|
|
650
|
+
const restoreSelectedLabel = t26;
|
|
651
|
+
let t27;
|
|
652
|
+
if ($[46] !== clearSelectionAndInput || $[47] !== effectiveInputValue || $[48] !== effectiveSelectedKey || $[49] !== externalOnSelectionChange || $[50] !== restoreSelectedLabel || $[51] !== setSelectedKey || $[52] !== shouldCommitOnBlur || $[53] !== showSelectionLabel) {
|
|
653
|
+
t27 = () => {
|
|
648
654
|
const value_0 = effectiveInputValue.trim();
|
|
649
655
|
if (shouldCommitOnBlur && value_0 && effectiveSelectedKey == null) {
|
|
650
656
|
externalOnSelectionChange?.(value_0);
|
|
@@ -653,20 +659,20 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
|
653
659
|
} else if (!value_0) clearSelectionAndInput();
|
|
654
660
|
else restoreSelectedLabel();
|
|
655
661
|
};
|
|
656
|
-
$[
|
|
657
|
-
$[
|
|
658
|
-
$[
|
|
659
|
-
$[
|
|
660
|
-
$[
|
|
661
|
-
$[
|
|
662
|
-
$[
|
|
663
|
-
$[
|
|
664
|
-
$[
|
|
665
|
-
} else
|
|
666
|
-
const settleCustomValueOnBlur =
|
|
667
|
-
let
|
|
668
|
-
if ($[
|
|
669
|
-
|
|
662
|
+
$[46] = clearSelectionAndInput;
|
|
663
|
+
$[47] = effectiveInputValue;
|
|
664
|
+
$[48] = effectiveSelectedKey;
|
|
665
|
+
$[49] = externalOnSelectionChange;
|
|
666
|
+
$[50] = restoreSelectedLabel;
|
|
667
|
+
$[51] = setSelectedKey;
|
|
668
|
+
$[52] = shouldCommitOnBlur;
|
|
669
|
+
$[53] = showSelectionLabel;
|
|
670
|
+
$[54] = t27;
|
|
671
|
+
} else t27 = $[54];
|
|
672
|
+
const settleCustomValueOnBlur = t27;
|
|
673
|
+
let t28;
|
|
674
|
+
if ($[55] !== clearOnBlur || $[56] !== clearSelectionAndInput || $[57] !== effectiveInputValue || $[58] !== effectiveSelectedKey || $[59] !== externalOnSelectionChange || $[60] !== filteredOptions || $[61] !== isSameText || $[62] !== localCollectionState.disabledKeys || $[63] !== pickLabel || $[64] !== restoreSelectedLabel || $[65] !== setSelectedKey || $[66] !== showSelectionLabel) {
|
|
675
|
+
t28 = () => {
|
|
670
676
|
const matchKey = findTypedOption(filteredOptions, effectiveInputValue, effectiveSelectedKey, localCollectionState.disabledKeys, isSameText);
|
|
671
677
|
if (matchKey != null && matchKey !== effectiveSelectedKey) {
|
|
672
678
|
setSelectedKey(matchKey);
|
|
@@ -675,98 +681,86 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
|
675
681
|
} else if (matchKey == null && (clearOnBlur || !effectiveInputValue.trim())) clearSelectionAndInput();
|
|
676
682
|
else restoreSelectedLabel();
|
|
677
683
|
};
|
|
678
|
-
$[
|
|
679
|
-
$[
|
|
680
|
-
$[
|
|
681
|
-
$[
|
|
682
|
-
$[
|
|
683
|
-
$[
|
|
684
|
-
$[
|
|
685
|
-
$[
|
|
686
|
-
$[
|
|
687
|
-
$[
|
|
688
|
-
$[
|
|
689
|
-
$[
|
|
690
|
-
$[
|
|
691
|
-
} else
|
|
692
|
-
const settleOptionOnBlur =
|
|
693
|
-
let
|
|
694
|
-
if ($[
|
|
695
|
-
|
|
684
|
+
$[55] = clearOnBlur;
|
|
685
|
+
$[56] = clearSelectionAndInput;
|
|
686
|
+
$[57] = effectiveInputValue;
|
|
687
|
+
$[58] = effectiveSelectedKey;
|
|
688
|
+
$[59] = externalOnSelectionChange;
|
|
689
|
+
$[60] = filteredOptions;
|
|
690
|
+
$[61] = isSameText;
|
|
691
|
+
$[62] = localCollectionState.disabledKeys;
|
|
692
|
+
$[63] = pickLabel;
|
|
693
|
+
$[64] = restoreSelectedLabel;
|
|
694
|
+
$[65] = setSelectedKey;
|
|
695
|
+
$[66] = showSelectionLabel;
|
|
696
|
+
$[67] = t28;
|
|
697
|
+
} else t28 = $[67];
|
|
698
|
+
const settleOptionOnBlur = t28;
|
|
699
|
+
let t29;
|
|
700
|
+
if ($[68] !== allowsCustomValue || $[69] !== isReadOnly || $[70] !== onBlur || $[71] !== setIsFilterActive || $[72] !== setIsPopoverOpen || $[73] !== settleCustomValueOnBlur || $[74] !== settleOptionOnBlur) {
|
|
701
|
+
t29 = () => {
|
|
696
702
|
setIsPopoverOpen(false);
|
|
697
703
|
if (isReadOnly) {} else if (allowsCustomValue) settleCustomValueOnBlur();
|
|
698
704
|
else settleOptionOnBlur();
|
|
699
705
|
onBlur?.();
|
|
700
706
|
setIsFilterActive(false);
|
|
701
707
|
};
|
|
702
|
-
$[
|
|
703
|
-
$[
|
|
704
|
-
$[
|
|
705
|
-
$[
|
|
706
|
-
$[
|
|
707
|
-
$[
|
|
708
|
-
$[
|
|
709
|
-
$[
|
|
710
|
-
} else
|
|
711
|
-
const handleCompositeBlur = useEvent(
|
|
712
|
-
const
|
|
713
|
-
let
|
|
714
|
-
if ($[
|
|
715
|
-
|
|
716
|
-
wrapperRef:
|
|
708
|
+
$[68] = allowsCustomValue;
|
|
709
|
+
$[69] = isReadOnly;
|
|
710
|
+
$[70] = onBlur;
|
|
711
|
+
$[71] = setIsFilterActive;
|
|
712
|
+
$[72] = setIsPopoverOpen;
|
|
713
|
+
$[73] = settleCustomValueOnBlur;
|
|
714
|
+
$[74] = settleOptionOnBlur;
|
|
715
|
+
$[75] = t29;
|
|
716
|
+
} else t29 = $[75];
|
|
717
|
+
const handleCompositeBlur = useEvent(t29);
|
|
718
|
+
const t30 = wrapperRef;
|
|
719
|
+
let t31;
|
|
720
|
+
if ($[76] !== handleCompositeBlur || $[77] !== isDisabled || $[78] !== onFocus || $[79] !== popoverRef || $[80] !== t30) {
|
|
721
|
+
t31 = {
|
|
722
|
+
wrapperRef: t30,
|
|
717
723
|
popoverRef,
|
|
718
724
|
onFocus,
|
|
719
725
|
onBlur: handleCompositeBlur,
|
|
720
726
|
isDisabled
|
|
721
727
|
};
|
|
722
|
-
$[
|
|
723
|
-
$[
|
|
724
|
-
$[
|
|
725
|
-
$[
|
|
726
|
-
$[79] = t29;
|
|
728
|
+
$[76] = handleCompositeBlur;
|
|
729
|
+
$[77] = isDisabled;
|
|
730
|
+
$[78] = onFocus;
|
|
731
|
+
$[79] = popoverRef;
|
|
727
732
|
$[80] = t30;
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
+
$[81] = t31;
|
|
734
|
+
} else t31 = $[81];
|
|
735
|
+
const { compositeFocusProps } = useCompositeFocus(t31);
|
|
736
|
+
let t32;
|
|
737
|
+
if ($[82] !== isInvalid || $[83] !== isValid) {
|
|
738
|
+
t32 = getValidationIcon({
|
|
733
739
|
isInvalid,
|
|
734
740
|
isValid
|
|
735
741
|
});
|
|
736
|
-
$[
|
|
737
|
-
$[
|
|
738
|
-
$[
|
|
739
|
-
} else
|
|
740
|
-
const validationIcon =
|
|
742
|
+
$[82] = isInvalid;
|
|
743
|
+
$[83] = isValid;
|
|
744
|
+
$[84] = t32;
|
|
745
|
+
} else t32 = $[84];
|
|
746
|
+
const validationIcon = t32;
|
|
741
747
|
const listStateRef = useRef(null);
|
|
742
748
|
const [activeOptionKey, setActiveOptionKey] = useState(null);
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
}, 0);
|
|
755
|
-
};
|
|
756
|
-
$[84] = externalOnSelectionChange;
|
|
757
|
-
$[85] = inputRef;
|
|
758
|
-
$[86] = pickLabel;
|
|
759
|
-
$[87] = setIsFilterActive;
|
|
760
|
-
$[88] = setIsPopoverOpen;
|
|
761
|
-
$[89] = setSelectedKey;
|
|
762
|
-
$[90] = showSelectionLabel;
|
|
763
|
-
$[91] = t32;
|
|
764
|
-
} else t32 = $[91];
|
|
765
|
-
const handleSelectionChange = useEvent(t32);
|
|
749
|
+
const handleSelectionChange = useEvent((selection) => {
|
|
750
|
+
const key_0 = Array.isArray(selection) ? selection[0] : selection;
|
|
751
|
+
setSelectedKey(key_0 ?? null);
|
|
752
|
+
setIsFilterActive(false);
|
|
753
|
+
showSelectionLabel(key_0 != null ? pickLabel(key_0) : "");
|
|
754
|
+
externalOnSelectionChange?.(key_0);
|
|
755
|
+
setIsPopoverOpen(false);
|
|
756
|
+
setTimeout(() => {
|
|
757
|
+
inputRef.current?.focus();
|
|
758
|
+
}, 0);
|
|
759
|
+
});
|
|
766
760
|
const lastSyncedSelectedKey = useRef(void 0);
|
|
767
761
|
const selectionClearedByTyping = useRef(false);
|
|
768
762
|
let t33;
|
|
769
|
-
if ($[
|
|
763
|
+
if ($[85] !== allowsCustomValue || $[86] !== effectiveSelectedKey || $[87] !== externalOnSelectionChange || $[88] !== isControlledInput || $[89] !== isControlledKey || $[90] !== isPopoverOpen || $[91] !== onInputChange || $[92] !== popoverTrigger || $[93] !== setInternalInputValue || $[94] !== setInternalSelectedKey || $[95] !== setIsFilterActive || $[96] !== setIsPopoverOpen) {
|
|
770
764
|
t33 = (e) => {
|
|
771
765
|
const value_1 = e.target.value;
|
|
772
766
|
if (!isControlledInput) setInternalInputValue(value_1);
|
|
@@ -780,23 +774,23 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
|
780
774
|
}
|
|
781
775
|
if (popoverTrigger !== "manual" && value_1 && !isPopoverOpen) setIsPopoverOpen(true);
|
|
782
776
|
};
|
|
783
|
-
$[
|
|
784
|
-
$[
|
|
785
|
-
$[
|
|
786
|
-
$[
|
|
787
|
-
$[
|
|
788
|
-
$[
|
|
789
|
-
$[
|
|
790
|
-
$[
|
|
791
|
-
$[
|
|
792
|
-
$[
|
|
793
|
-
$[
|
|
794
|
-
$[
|
|
795
|
-
$[
|
|
796
|
-
} else t33 = $[
|
|
777
|
+
$[85] = allowsCustomValue;
|
|
778
|
+
$[86] = effectiveSelectedKey;
|
|
779
|
+
$[87] = externalOnSelectionChange;
|
|
780
|
+
$[88] = isControlledInput;
|
|
781
|
+
$[89] = isControlledKey;
|
|
782
|
+
$[90] = isPopoverOpen;
|
|
783
|
+
$[91] = onInputChange;
|
|
784
|
+
$[92] = popoverTrigger;
|
|
785
|
+
$[93] = setInternalInputValue;
|
|
786
|
+
$[94] = setInternalSelectedKey;
|
|
787
|
+
$[95] = setIsFilterActive;
|
|
788
|
+
$[96] = setIsPopoverOpen;
|
|
789
|
+
$[97] = t33;
|
|
790
|
+
} else t33 = $[97];
|
|
797
791
|
const handleInputChange = useEvent(t33);
|
|
798
792
|
let t34;
|
|
799
|
-
if ($[
|
|
793
|
+
if ($[98] !== effectiveSelectedKey || $[99] !== isControlledInput || $[100] !== isControlledKey || $[101] !== setInternalInputValue) {
|
|
800
794
|
t34 = () => {
|
|
801
795
|
const preserveTypedInput = selectionClearedByTyping.current;
|
|
802
796
|
selectionClearedByTyping.current = false;
|
|
@@ -806,14 +800,14 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
|
806
800
|
if (preserveTypedInput && effectiveSelectedKey == null) return;
|
|
807
801
|
setInternalInputValue(null);
|
|
808
802
|
};
|
|
809
|
-
$[
|
|
810
|
-
$[
|
|
811
|
-
$[
|
|
812
|
-
$[
|
|
813
|
-
$[
|
|
814
|
-
} else t34 = $[
|
|
803
|
+
$[98] = effectiveSelectedKey;
|
|
804
|
+
$[99] = isControlledInput;
|
|
805
|
+
$[100] = isControlledKey;
|
|
806
|
+
$[101] = setInternalInputValue;
|
|
807
|
+
$[102] = t34;
|
|
808
|
+
} else t34 = $[102];
|
|
815
809
|
let t35;
|
|
816
|
-
if ($[
|
|
810
|
+
if ($[103] !== effectiveInputValue || $[104] !== effectiveSelectedKey || $[105] !== isControlledInput || $[106] !== isControlledKey || $[107] !== setInternalInputValue) {
|
|
817
811
|
t35 = [
|
|
818
812
|
isControlledKey,
|
|
819
813
|
isControlledInput,
|
|
@@ -821,115 +815,92 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
|
821
815
|
effectiveInputValue,
|
|
822
816
|
setInternalInputValue
|
|
823
817
|
];
|
|
824
|
-
$[
|
|
825
|
-
$[
|
|
826
|
-
$[
|
|
827
|
-
$[
|
|
828
|
-
$[
|
|
829
|
-
$[
|
|
830
|
-
} else t35 = $[
|
|
818
|
+
$[103] = effectiveInputValue;
|
|
819
|
+
$[104] = effectiveSelectedKey;
|
|
820
|
+
$[105] = isControlledInput;
|
|
821
|
+
$[106] = isControlledKey;
|
|
822
|
+
$[107] = setInternalInputValue;
|
|
823
|
+
$[108] = t35;
|
|
824
|
+
} else t35 = $[108];
|
|
831
825
|
useEffect(t34, t35);
|
|
832
826
|
const showClearButton = isClearable && (allowsCustomValue ? effectiveInputValue !== "" : effectiveSelectedKey != null) && !isDisabled && !isReadOnly;
|
|
833
827
|
let t36;
|
|
834
|
-
if ($[
|
|
828
|
+
if ($[109] !== hasResults || $[110] !== isDisabled || $[111] !== isReadOnly || $[112] !== setIsFilterActive || $[113] !== setIsPopoverOpen) {
|
|
835
829
|
t36 = () => {
|
|
836
830
|
if (isReadOnly || isDisabled) return;
|
|
837
831
|
if (!hasResults) setIsFilterActive(false);
|
|
838
832
|
setIsPopoverOpen(true);
|
|
839
833
|
};
|
|
840
|
-
$[
|
|
841
|
-
$[
|
|
842
|
-
$[
|
|
843
|
-
$[
|
|
844
|
-
$[
|
|
845
|
-
$[
|
|
846
|
-
} else t36 = $[
|
|
834
|
+
$[109] = hasResults;
|
|
835
|
+
$[110] = isDisabled;
|
|
836
|
+
$[111] = isReadOnly;
|
|
837
|
+
$[112] = setIsFilterActive;
|
|
838
|
+
$[113] = setIsPopoverOpen;
|
|
839
|
+
$[114] = t36;
|
|
840
|
+
} else t36 = $[114];
|
|
847
841
|
const openList = t36;
|
|
842
|
+
const toggleList = () => {
|
|
843
|
+
if (shouldShowPopover) setIsPopoverOpen(false);
|
|
844
|
+
else openList();
|
|
845
|
+
inputRef.current?.focus();
|
|
846
|
+
};
|
|
848
847
|
let t37;
|
|
849
|
-
if ($[
|
|
850
|
-
t37 = () => {
|
|
851
|
-
if (shouldShowPopover) setIsPopoverOpen(false);
|
|
852
|
-
else openList();
|
|
853
|
-
inputRef.current?.focus();
|
|
854
|
-
};
|
|
855
|
-
$[122] = inputRef;
|
|
856
|
-
$[123] = openList;
|
|
857
|
-
$[124] = setIsPopoverOpen;
|
|
858
|
-
$[125] = shouldShowPopover;
|
|
859
|
-
$[126] = t37;
|
|
860
|
-
} else t37 = $[126];
|
|
861
|
-
const toggleList = t37;
|
|
862
|
-
let t38;
|
|
863
|
-
if ($[127] !== focusProps || $[128] !== isPopoverOpen || $[129] !== openList || $[130] !== popoverTrigger) {
|
|
864
|
-
t38 = (e_0) => {
|
|
848
|
+
if ($[115] !== focusProps || $[116] !== isPopoverOpen || $[117] !== openList || $[118] !== popoverTrigger) {
|
|
849
|
+
t37 = (e_0) => {
|
|
865
850
|
focusProps.onFocus?.(e_0);
|
|
866
851
|
if (popoverTrigger === "focus" && !isPopoverOpen) openList();
|
|
867
852
|
};
|
|
868
|
-
$[
|
|
869
|
-
$[
|
|
870
|
-
$[
|
|
871
|
-
$[
|
|
872
|
-
$[
|
|
873
|
-
} else
|
|
874
|
-
const handleInputFocus = useEvent(
|
|
853
|
+
$[115] = focusProps;
|
|
854
|
+
$[116] = isPopoverOpen;
|
|
855
|
+
$[117] = openList;
|
|
856
|
+
$[118] = popoverTrigger;
|
|
857
|
+
$[119] = t37;
|
|
858
|
+
} else t37 = $[119];
|
|
859
|
+
const handleInputFocus = useEvent(t37);
|
|
875
860
|
const pressStartedOnInputRef = useRef(false);
|
|
876
|
-
let
|
|
877
|
-
if ($[
|
|
878
|
-
|
|
861
|
+
let t38;
|
|
862
|
+
if ($[120] !== hasResults || $[121] !== openList || $[122] !== popoverTrigger || $[123] !== shouldShowPopover) {
|
|
863
|
+
t38 = () => {
|
|
879
864
|
const isInputPress = pressStartedOnInputRef.current;
|
|
880
865
|
pressStartedOnInputRef.current = false;
|
|
881
866
|
if (!isInputPress || popoverTrigger === "manual") return;
|
|
882
867
|
if (!shouldShowPopover && hasResults) openList();
|
|
883
868
|
};
|
|
884
|
-
$[
|
|
885
|
-
$[
|
|
886
|
-
$[
|
|
887
|
-
$[
|
|
888
|
-
$[
|
|
889
|
-
} else
|
|
890
|
-
const handleInputClick =
|
|
891
|
-
let
|
|
892
|
-
if ($[
|
|
893
|
-
|
|
869
|
+
$[120] = hasResults;
|
|
870
|
+
$[121] = openList;
|
|
871
|
+
$[122] = popoverTrigger;
|
|
872
|
+
$[123] = shouldShowPopover;
|
|
873
|
+
$[124] = t38;
|
|
874
|
+
} else t38 = $[124];
|
|
875
|
+
const handleInputClick = t38;
|
|
876
|
+
let t39;
|
|
877
|
+
if ($[125] !== focusProps) {
|
|
878
|
+
t39 = (e_1) => {
|
|
894
879
|
focusProps.onBlur?.(e_1);
|
|
895
880
|
};
|
|
896
|
-
$[
|
|
897
|
-
$[
|
|
898
|
-
} else
|
|
899
|
-
const handleInputBlur = useEvent(
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
$[
|
|
913
|
-
$[
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
$[144] = onInputChange;
|
|
917
|
-
$[145] = setInternalInputValue;
|
|
918
|
-
$[146] = setIsPopoverOpen;
|
|
919
|
-
$[147] = setSelectedKey;
|
|
920
|
-
$[148] = t41;
|
|
921
|
-
} else t41 = $[148];
|
|
922
|
-
const clearValue = useEvent(t41);
|
|
881
|
+
$[125] = focusProps;
|
|
882
|
+
$[126] = t39;
|
|
883
|
+
} else t39 = $[126];
|
|
884
|
+
const handleInputBlur = useEvent(t39);
|
|
885
|
+
const clearValue = useEvent(() => {
|
|
886
|
+
if (!isControlledInput) setInternalInputValue(null);
|
|
887
|
+
onInputChange?.("");
|
|
888
|
+
setSelectedKey(null);
|
|
889
|
+
externalOnSelectionChange?.(null);
|
|
890
|
+
if (isPopoverOpen) setIsPopoverOpen(false);
|
|
891
|
+
inputRef.current?.focus();
|
|
892
|
+
onClear?.();
|
|
893
|
+
});
|
|
894
|
+
let t40;
|
|
895
|
+
if ($[127] !== setIsPopoverOpen) {
|
|
896
|
+
t40 = () => setIsPopoverOpen(false);
|
|
897
|
+
$[127] = setIsPopoverOpen;
|
|
898
|
+
$[128] = t40;
|
|
899
|
+
} else t40 = $[128];
|
|
900
|
+
const t41 = inputRef;
|
|
923
901
|
let t42;
|
|
924
|
-
if ($[
|
|
925
|
-
t42 =
|
|
926
|
-
$[149] = setIsPopoverOpen;
|
|
927
|
-
$[150] = t42;
|
|
928
|
-
} else t42 = $[150];
|
|
929
|
-
const t43 = inputRef;
|
|
930
|
-
let t44;
|
|
931
|
-
if ($[151] !== allowsCustomValue || $[152] !== clearValue || $[153] !== effectiveInputValue || $[154] !== effectiveSelectedKey || $[155] !== handleSelectionChange || $[156] !== hasResults || $[157] !== isClearable || $[158] !== isReadOnly || $[159] !== onKeyDown || $[160] !== openList || $[161] !== selectedLabel || $[162] !== shouldShowPopover || $[163] !== t42 || $[164] !== t43) {
|
|
932
|
-
t44 = {
|
|
902
|
+
if ($[129] !== allowsCustomValue || $[130] !== clearValue || $[131] !== effectiveInputValue || $[132] !== effectiveSelectedKey || $[133] !== handleSelectionChange || $[134] !== hasResults || $[135] !== isClearable || $[136] !== isReadOnly || $[137] !== onKeyDown || $[138] !== openList || $[139] !== selectedLabel || $[140] !== setActiveOptionKey || $[141] !== shouldShowPopover || $[142] !== t40 || $[143] !== t41) {
|
|
903
|
+
t42 = {
|
|
933
904
|
isListShown: shouldShowPopover,
|
|
934
905
|
isReadOnly,
|
|
935
906
|
listStateRef,
|
|
@@ -942,107 +913,100 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
|
942
913
|
onSelectionChange: handleSelectionChange,
|
|
943
914
|
onClearValue: clearValue,
|
|
944
915
|
onOpenList: openList,
|
|
945
|
-
onCloseList:
|
|
946
|
-
inputRef:
|
|
916
|
+
onCloseList: t40,
|
|
917
|
+
inputRef: t41,
|
|
947
918
|
onVirtualFocus: setActiveOptionKey,
|
|
948
919
|
onKeyDown
|
|
949
920
|
};
|
|
950
|
-
$[
|
|
951
|
-
$[
|
|
952
|
-
$[
|
|
953
|
-
$[
|
|
954
|
-
$[
|
|
955
|
-
$[
|
|
956
|
-
$[
|
|
957
|
-
$[
|
|
958
|
-
$[
|
|
959
|
-
$[
|
|
960
|
-
$[
|
|
961
|
-
$[
|
|
962
|
-
$[
|
|
963
|
-
$[
|
|
964
|
-
$[
|
|
965
|
-
|
|
966
|
-
|
|
921
|
+
$[129] = allowsCustomValue;
|
|
922
|
+
$[130] = clearValue;
|
|
923
|
+
$[131] = effectiveInputValue;
|
|
924
|
+
$[132] = effectiveSelectedKey;
|
|
925
|
+
$[133] = handleSelectionChange;
|
|
926
|
+
$[134] = hasResults;
|
|
927
|
+
$[135] = isClearable;
|
|
928
|
+
$[136] = isReadOnly;
|
|
929
|
+
$[137] = onKeyDown;
|
|
930
|
+
$[138] = openList;
|
|
931
|
+
$[139] = selectedLabel;
|
|
932
|
+
$[140] = setActiveOptionKey;
|
|
933
|
+
$[141] = shouldShowPopover;
|
|
934
|
+
$[142] = t40;
|
|
935
|
+
$[143] = t41;
|
|
936
|
+
$[144] = t42;
|
|
937
|
+
} else t42 = $[144];
|
|
938
|
+
const { keyboardProps } = useComboBoxKeyboard(t42);
|
|
967
939
|
if (icon) {
|
|
968
|
-
let
|
|
969
|
-
if ($[
|
|
970
|
-
|
|
940
|
+
let t43;
|
|
941
|
+
if ($[145] !== icon) {
|
|
942
|
+
t43 = /* @__PURE__ */ jsx("div", {
|
|
971
943
|
"data-element": "InputIcon",
|
|
972
944
|
children: icon
|
|
973
945
|
});
|
|
974
|
-
$[
|
|
975
|
-
$[
|
|
976
|
-
} else
|
|
977
|
-
icon =
|
|
978
|
-
if (prefix) {
|
|
979
|
-
|
|
980
|
-
if ($[168] !== icon || $[169] !== prefix) {
|
|
981
|
-
t46 = /* @__PURE__ */ jsxs(Fragment$1, { children: [icon, prefix] });
|
|
982
|
-
$[168] = icon;
|
|
983
|
-
$[169] = prefix;
|
|
984
|
-
$[170] = t46;
|
|
985
|
-
} else t46 = $[170];
|
|
986
|
-
prefix = t46;
|
|
987
|
-
} else prefix = icon;
|
|
946
|
+
$[145] = icon;
|
|
947
|
+
$[146] = t43;
|
|
948
|
+
} else t43 = $[146];
|
|
949
|
+
icon = t43;
|
|
950
|
+
if (prefix) prefix = /* @__PURE__ */ jsxs(Fragment$1, { children: [icon, prefix] });
|
|
951
|
+
else prefix = icon;
|
|
988
952
|
}
|
|
989
|
-
let
|
|
990
|
-
if ($[
|
|
991
|
-
|
|
953
|
+
let t43;
|
|
954
|
+
if ($[147] !== isInvalid || $[148] !== isValid) {
|
|
955
|
+
t43 = getValidationMods({
|
|
992
956
|
isInvalid,
|
|
993
957
|
isValid
|
|
994
958
|
});
|
|
995
|
-
$[
|
|
996
|
-
$[
|
|
997
|
-
$[
|
|
998
|
-
} else
|
|
999
|
-
const
|
|
1000
|
-
let
|
|
1001
|
-
if ($[
|
|
1002
|
-
|
|
1003
|
-
...
|
|
959
|
+
$[147] = isInvalid;
|
|
960
|
+
$[148] = isValid;
|
|
961
|
+
$[149] = t43;
|
|
962
|
+
} else t43 = $[149];
|
|
963
|
+
const t44 = !!prefix;
|
|
964
|
+
let t45;
|
|
965
|
+
if ($[150] !== isDisabled || $[151] !== isFocused || $[152] !== isLoading || $[153] !== showClearButton || $[154] !== t43 || $[155] !== t44) {
|
|
966
|
+
t45 = {
|
|
967
|
+
...t43,
|
|
1004
968
|
disabled: isDisabled,
|
|
1005
969
|
hovered: false,
|
|
1006
970
|
focused: isFocused,
|
|
1007
971
|
loading: isLoading,
|
|
1008
|
-
prefix:
|
|
972
|
+
prefix: t44,
|
|
1009
973
|
suffix: true,
|
|
1010
974
|
clearable: showClearButton
|
|
1011
975
|
};
|
|
1012
|
-
$[
|
|
1013
|
-
$[
|
|
1014
|
-
$[
|
|
1015
|
-
$[
|
|
1016
|
-
$[
|
|
1017
|
-
$[
|
|
1018
|
-
$[
|
|
1019
|
-
} else
|
|
1020
|
-
const mods =
|
|
976
|
+
$[150] = isDisabled;
|
|
977
|
+
$[151] = isFocused;
|
|
978
|
+
$[152] = isLoading;
|
|
979
|
+
$[153] = showClearButton;
|
|
980
|
+
$[154] = t43;
|
|
981
|
+
$[155] = t44;
|
|
982
|
+
$[156] = t45;
|
|
983
|
+
} else t45 = $[156];
|
|
984
|
+
const mods = t45;
|
|
1021
985
|
const [comboBoxWidth, setComboBoxWidth] = useState();
|
|
1022
|
-
let
|
|
1023
|
-
let
|
|
1024
|
-
if ($[
|
|
1025
|
-
|
|
986
|
+
let t46;
|
|
987
|
+
let t47;
|
|
988
|
+
if ($[157] !== hasResults || $[158] !== isPopoverOpen || $[159] !== setIsPopoverOpen) {
|
|
989
|
+
t46 = () => {
|
|
1026
990
|
if (isPopoverOpen && !hasResults) setIsPopoverOpen(false);
|
|
1027
991
|
};
|
|
1028
|
-
|
|
992
|
+
t47 = [
|
|
1029
993
|
isPopoverOpen,
|
|
1030
994
|
hasResults,
|
|
1031
995
|
setIsPopoverOpen
|
|
1032
996
|
];
|
|
1033
|
-
$[
|
|
1034
|
-
$[
|
|
1035
|
-
$[
|
|
1036
|
-
$[
|
|
1037
|
-
$[
|
|
997
|
+
$[157] = hasResults;
|
|
998
|
+
$[158] = isPopoverOpen;
|
|
999
|
+
$[159] = setIsPopoverOpen;
|
|
1000
|
+
$[160] = t46;
|
|
1001
|
+
$[161] = t47;
|
|
1038
1002
|
} else {
|
|
1039
|
-
|
|
1040
|
-
|
|
1003
|
+
t46 = $[160];
|
|
1004
|
+
t47 = $[161];
|
|
1041
1005
|
}
|
|
1042
|
-
useEffect(
|
|
1043
|
-
let
|
|
1044
|
-
if ($[
|
|
1045
|
-
|
|
1006
|
+
useEffect(t46, t47);
|
|
1007
|
+
let t48;
|
|
1008
|
+
if ($[162] !== effectiveSelectedKey || $[163] !== setActiveOptionKey || $[164] !== shouldShowPopover || $[165] !== wrapperRef) {
|
|
1009
|
+
t48 = () => {
|
|
1046
1010
|
if (!shouldShowPopover) return;
|
|
1047
1011
|
setComboBoxWidth(wrapperRef.current?.offsetWidth);
|
|
1048
1012
|
let attempts = 0;
|
|
@@ -1058,84 +1022,84 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
|
1058
1022
|
});
|
|
1059
1023
|
return () => cancelAnimationFrame(frame);
|
|
1060
1024
|
};
|
|
1061
|
-
$[
|
|
1062
|
-
$[
|
|
1063
|
-
$[
|
|
1064
|
-
$[
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
let
|
|
1068
|
-
if ($[
|
|
1069
|
-
|
|
1025
|
+
$[162] = effectiveSelectedKey;
|
|
1026
|
+
$[163] = setActiveOptionKey;
|
|
1027
|
+
$[164] = shouldShowPopover;
|
|
1028
|
+
$[165] = wrapperRef;
|
|
1029
|
+
$[166] = t48;
|
|
1030
|
+
} else t48 = $[166];
|
|
1031
|
+
let t49;
|
|
1032
|
+
if ($[167] !== effectiveInputValue || $[168] !== effectiveSelectedKey || $[169] !== shouldShowPopover || $[170] !== wrapperRef) {
|
|
1033
|
+
t49 = [
|
|
1070
1034
|
shouldShowPopover,
|
|
1071
1035
|
effectiveSelectedKey,
|
|
1072
1036
|
effectiveInputValue,
|
|
1073
|
-
|
|
1037
|
+
wrapperRef
|
|
1074
1038
|
];
|
|
1075
|
-
$[
|
|
1076
|
-
$[
|
|
1077
|
-
$[
|
|
1078
|
-
$[
|
|
1079
|
-
$[
|
|
1080
|
-
} else
|
|
1081
|
-
useLayoutEffect$1(
|
|
1082
|
-
let
|
|
1083
|
-
if ($[
|
|
1084
|
-
|
|
1085
|
-
$[
|
|
1086
|
-
$[
|
|
1087
|
-
$[
|
|
1088
|
-
$[
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1039
|
+
$[167] = effectiveInputValue;
|
|
1040
|
+
$[168] = effectiveSelectedKey;
|
|
1041
|
+
$[169] = shouldShowPopover;
|
|
1042
|
+
$[170] = wrapperRef;
|
|
1043
|
+
$[171] = t49;
|
|
1044
|
+
} else t49 = $[171];
|
|
1045
|
+
useLayoutEffect$1(t48, t49);
|
|
1046
|
+
let t50;
|
|
1047
|
+
if ($[172] !== activeOptionKey || $[173] !== comboBoxId || $[174] !== filteredOptions || $[175] !== shouldShowPopover) {
|
|
1048
|
+
t50 = shouldShowPopover && activeOptionKey != null && filteredOptions.some((option) => option.key === activeOptionKey) ? getListBoxOptionId(`ComboBoxListBox-${comboBoxId}`, activeOptionKey) : void 0;
|
|
1049
|
+
$[172] = activeOptionKey;
|
|
1050
|
+
$[173] = comboBoxId;
|
|
1051
|
+
$[174] = filteredOptions;
|
|
1052
|
+
$[175] = shouldShowPopover;
|
|
1053
|
+
$[176] = t50;
|
|
1054
|
+
} else t50 = $[176];
|
|
1055
|
+
const activeDescendant = t50;
|
|
1056
|
+
let t51;
|
|
1057
|
+
if ($[177] !== prefix) {
|
|
1058
|
+
t51 = prefix ? /* @__PURE__ */ jsx("div", {
|
|
1094
1059
|
"data-element": "Prefix",
|
|
1095
1060
|
children: prefix
|
|
1096
1061
|
}) : null;
|
|
1097
|
-
$[
|
|
1098
|
-
$[
|
|
1099
|
-
} else
|
|
1100
|
-
const
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
t57 = {
|
|
1062
|
+
$[177] = prefix;
|
|
1063
|
+
$[178] = t51;
|
|
1064
|
+
} else t51 = $[178];
|
|
1065
|
+
const t52 = qa || "ComboBox";
|
|
1066
|
+
let t53;
|
|
1067
|
+
if ($[179] !== focusProps || $[180] !== handleInputBlur) {
|
|
1068
|
+
t53 = {
|
|
1105
1069
|
...focusProps,
|
|
1106
1070
|
onBlur: handleInputBlur
|
|
1107
1071
|
};
|
|
1108
|
-
$[
|
|
1109
|
-
$[
|
|
1110
|
-
$[
|
|
1111
|
-
} else
|
|
1112
|
-
let
|
|
1113
|
-
if ($[
|
|
1114
|
-
|
|
1072
|
+
$[179] = focusProps;
|
|
1073
|
+
$[180] = handleInputBlur;
|
|
1074
|
+
$[181] = t53;
|
|
1075
|
+
} else t53 = $[181];
|
|
1076
|
+
let t54;
|
|
1077
|
+
if ($[182] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1078
|
+
t54 = () => {
|
|
1115
1079
|
pressStartedOnInputRef.current = true;
|
|
1116
1080
|
};
|
|
1117
|
-
$[
|
|
1118
|
-
} else
|
|
1119
|
-
const
|
|
1120
|
-
const
|
|
1121
|
-
const
|
|
1122
|
-
let
|
|
1123
|
-
if ($[
|
|
1124
|
-
|
|
1125
|
-
"aria-label":
|
|
1126
|
-
"aria-labelledby":
|
|
1127
|
-
"aria-describedby":
|
|
1081
|
+
$[182] = t54;
|
|
1082
|
+
} else t54 = $[182];
|
|
1083
|
+
const t55 = props["aria-label"];
|
|
1084
|
+
const t56 = props["aria-labelledby"];
|
|
1085
|
+
const t57 = props["aria-describedby"];
|
|
1086
|
+
let t58;
|
|
1087
|
+
if ($[183] !== t55 || $[184] !== t56 || $[185] !== t57) {
|
|
1088
|
+
t58 = {
|
|
1089
|
+
"aria-label": t55,
|
|
1090
|
+
"aria-labelledby": t56,
|
|
1091
|
+
"aria-describedby": t57
|
|
1128
1092
|
};
|
|
1129
|
-
$[
|
|
1130
|
-
$[
|
|
1131
|
-
$[
|
|
1132
|
-
$[
|
|
1133
|
-
} else
|
|
1134
|
-
let
|
|
1135
|
-
if ($[
|
|
1136
|
-
|
|
1137
|
-
qa:
|
|
1138
|
-
inputRef
|
|
1093
|
+
$[183] = t55;
|
|
1094
|
+
$[184] = t56;
|
|
1095
|
+
$[185] = t57;
|
|
1096
|
+
$[186] = t58;
|
|
1097
|
+
} else t58 = $[186];
|
|
1098
|
+
let t59;
|
|
1099
|
+
if ($[187] !== activeDescendant || $[188] !== autoComplete || $[189] !== autoFocus || $[190] !== comboBoxId || $[191] !== effectiveInputValue || $[192] !== handleInputChange || $[193] !== handleInputClick || $[194] !== handleInputFocus || $[195] !== id || $[196] !== inputRef || $[197] !== inputStyles || $[198] !== isDisabled || $[199] !== isInvalid || $[200] !== isReadOnly || $[201] !== isRequired || $[202] !== keyboardProps || $[203] !== mods || $[204] !== placeholder || $[205] !== shouldShowPopover || $[206] !== size || $[207] !== t52 || $[208] !== t53 || $[209] !== t58) {
|
|
1100
|
+
t59 = /* @__PURE__ */ jsx(ComboBoxInput, {
|
|
1101
|
+
qa: t52,
|
|
1102
|
+
inputRef,
|
|
1139
1103
|
id,
|
|
1140
1104
|
value: effectiveInputValue,
|
|
1141
1105
|
placeholder,
|
|
@@ -1148,53 +1112,54 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
|
1148
1112
|
mods,
|
|
1149
1113
|
inputStyles,
|
|
1150
1114
|
keyboardProps,
|
|
1151
|
-
focusProps:
|
|
1115
|
+
focusProps: t53,
|
|
1152
1116
|
isListShown: shouldShowPopover,
|
|
1153
1117
|
comboBoxId,
|
|
1154
1118
|
activeDescendant,
|
|
1155
1119
|
onChange: handleInputChange,
|
|
1156
1120
|
onFocus: handleInputFocus,
|
|
1157
|
-
onPointerDown:
|
|
1121
|
+
onPointerDown: t54,
|
|
1158
1122
|
onClick: handleInputClick,
|
|
1159
|
-
ariaProps:
|
|
1123
|
+
ariaProps: t58,
|
|
1160
1124
|
isInvalid
|
|
1161
1125
|
});
|
|
1162
|
-
$[
|
|
1163
|
-
$[
|
|
1164
|
-
$[
|
|
1165
|
-
$[
|
|
1166
|
-
$[
|
|
1167
|
-
$[
|
|
1168
|
-
$[
|
|
1169
|
-
$[
|
|
1170
|
-
$[
|
|
1171
|
-
$[
|
|
1172
|
-
$[
|
|
1173
|
-
$[
|
|
1174
|
-
$[
|
|
1175
|
-
$[
|
|
1176
|
-
$[
|
|
1177
|
-
$[
|
|
1178
|
-
$[
|
|
1179
|
-
$[
|
|
1180
|
-
$[
|
|
1181
|
-
$[
|
|
1182
|
-
$[
|
|
1183
|
-
$[
|
|
1184
|
-
$[
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
$[
|
|
1192
|
-
$[
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1126
|
+
$[187] = activeDescendant;
|
|
1127
|
+
$[188] = autoComplete;
|
|
1128
|
+
$[189] = autoFocus;
|
|
1129
|
+
$[190] = comboBoxId;
|
|
1130
|
+
$[191] = effectiveInputValue;
|
|
1131
|
+
$[192] = handleInputChange;
|
|
1132
|
+
$[193] = handleInputClick;
|
|
1133
|
+
$[194] = handleInputFocus;
|
|
1134
|
+
$[195] = id;
|
|
1135
|
+
$[196] = inputRef;
|
|
1136
|
+
$[197] = inputStyles;
|
|
1137
|
+
$[198] = isDisabled;
|
|
1138
|
+
$[199] = isInvalid;
|
|
1139
|
+
$[200] = isReadOnly;
|
|
1140
|
+
$[201] = isRequired;
|
|
1141
|
+
$[202] = keyboardProps;
|
|
1142
|
+
$[203] = mods;
|
|
1143
|
+
$[204] = placeholder;
|
|
1144
|
+
$[205] = shouldShowPopover;
|
|
1145
|
+
$[206] = size;
|
|
1146
|
+
$[207] = t52;
|
|
1147
|
+
$[208] = t53;
|
|
1148
|
+
$[209] = t58;
|
|
1149
|
+
$[210] = t59;
|
|
1150
|
+
} else t59 = $[210];
|
|
1151
|
+
const t60 = suffixPosition === "before" ? suffix : null;
|
|
1152
|
+
let t61;
|
|
1153
|
+
if ($[211] !== isLoading || $[212] !== validationIcon) {
|
|
1154
|
+
t61 = isLoading ? /* @__PURE__ */ jsx(LoadingIcon, { "data-element": "InputIcon" }) : validationIcon;
|
|
1155
|
+
$[211] = isLoading;
|
|
1156
|
+
$[212] = validationIcon;
|
|
1157
|
+
$[213] = t61;
|
|
1158
|
+
} else t61 = $[213];
|
|
1159
|
+
const t62 = suffixPosition === "after" ? suffix : null;
|
|
1160
|
+
let t63;
|
|
1161
|
+
if ($[214] !== clearValue || $[215] !== hideTrigger || $[216] !== showClearButton || $[217] !== size || $[218] !== t) {
|
|
1162
|
+
t63 = showClearButton && /* @__PURE__ */ jsx(_CollectionItem.Action, {
|
|
1198
1163
|
excludeFromTabOrder: true,
|
|
1199
1164
|
icon: /* @__PURE__ */ jsx(CloseIcon, {}),
|
|
1200
1165
|
size,
|
|
@@ -1204,16 +1169,16 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
|
1204
1169
|
"aria-label": t("comboBox.clearValue", "Clear value"),
|
|
1205
1170
|
onPress: clearValue
|
|
1206
1171
|
});
|
|
1207
|
-
$[
|
|
1208
|
-
$[
|
|
1209
|
-
$[
|
|
1210
|
-
$[
|
|
1211
|
-
$[
|
|
1212
|
-
$[
|
|
1213
|
-
} else
|
|
1214
|
-
let
|
|
1215
|
-
if ($[
|
|
1216
|
-
|
|
1172
|
+
$[214] = clearValue;
|
|
1173
|
+
$[215] = hideTrigger;
|
|
1174
|
+
$[216] = showClearButton;
|
|
1175
|
+
$[217] = size;
|
|
1176
|
+
$[218] = t;
|
|
1177
|
+
$[219] = t63;
|
|
1178
|
+
} else t63 = $[219];
|
|
1179
|
+
let t64;
|
|
1180
|
+
if ($[220] !== hideTrigger || $[221] !== isDisabled || $[222] !== isLoading || $[223] !== shouldShowPopover || $[224] !== size || $[225] !== t || $[226] !== toggleList || $[227] !== triggerRef || $[228] !== triggerStyles) {
|
|
1181
|
+
t64 = !hideTrigger ? /* @__PURE__ */ jsx(_CollectionItem.Action, {
|
|
1217
1182
|
ref: triggerRef,
|
|
1218
1183
|
excludeFromTabOrder: true,
|
|
1219
1184
|
"data-popover-trigger": true,
|
|
@@ -1232,49 +1197,49 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
|
1232
1197
|
"aria-label": t("comboBox.showOptions", "Show options"),
|
|
1233
1198
|
onPress: toggleList
|
|
1234
1199
|
}) : null;
|
|
1235
|
-
$[
|
|
1236
|
-
$[
|
|
1237
|
-
$[
|
|
1238
|
-
$[
|
|
1239
|
-
$[
|
|
1240
|
-
$[
|
|
1241
|
-
$[
|
|
1242
|
-
$[
|
|
1243
|
-
$[
|
|
1244
|
-
$[
|
|
1245
|
-
} else
|
|
1246
|
-
let
|
|
1247
|
-
if ($[
|
|
1248
|
-
|
|
1200
|
+
$[220] = hideTrigger;
|
|
1201
|
+
$[221] = isDisabled;
|
|
1202
|
+
$[222] = isLoading;
|
|
1203
|
+
$[223] = shouldShowPopover;
|
|
1204
|
+
$[224] = size;
|
|
1205
|
+
$[225] = t;
|
|
1206
|
+
$[226] = toggleList;
|
|
1207
|
+
$[227] = triggerRef;
|
|
1208
|
+
$[228] = triggerStyles;
|
|
1209
|
+
$[229] = t64;
|
|
1210
|
+
} else t64 = $[229];
|
|
1211
|
+
let t65;
|
|
1212
|
+
if ($[230] !== t60 || $[231] !== t61 || $[232] !== t62 || $[233] !== t63 || $[234] !== t64) {
|
|
1213
|
+
t65 = /* @__PURE__ */ jsxs("div", {
|
|
1249
1214
|
"data-element": "Suffix",
|
|
1250
1215
|
children: [
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1216
|
+
t60,
|
|
1217
|
+
t61,
|
|
1218
|
+
t62,
|
|
1219
|
+
t63,
|
|
1220
|
+
t64
|
|
1256
1221
|
]
|
|
1257
1222
|
});
|
|
1258
|
-
$[
|
|
1259
|
-
$[
|
|
1260
|
-
$[
|
|
1261
|
-
$[
|
|
1262
|
-
$[
|
|
1263
|
-
$[
|
|
1264
|
-
} else
|
|
1265
|
-
const
|
|
1266
|
-
const
|
|
1267
|
-
let
|
|
1268
|
-
if ($[
|
|
1269
|
-
|
|
1270
|
-
$[
|
|
1271
|
-
$[
|
|
1272
|
-
} else
|
|
1273
|
-
let
|
|
1274
|
-
if ($[
|
|
1275
|
-
|
|
1223
|
+
$[230] = t60;
|
|
1224
|
+
$[231] = t61;
|
|
1225
|
+
$[232] = t62;
|
|
1226
|
+
$[233] = t63;
|
|
1227
|
+
$[234] = t64;
|
|
1228
|
+
$[235] = t65;
|
|
1229
|
+
} else t65 = $[235];
|
|
1230
|
+
const t66 = wrapperRef;
|
|
1231
|
+
const t67 = props["aria-label"];
|
|
1232
|
+
let t68;
|
|
1233
|
+
if ($[236] !== setIsPopoverOpen) {
|
|
1234
|
+
t68 = () => setIsPopoverOpen(false);
|
|
1235
|
+
$[236] = setIsPopoverOpen;
|
|
1236
|
+
$[237] = t68;
|
|
1237
|
+
} else t68 = $[237];
|
|
1238
|
+
let t69;
|
|
1239
|
+
if ($[238] !== children || $[239] !== comboBoxWidth || $[240] !== compositeFocusProps || $[241] !== containerPadding || $[242] !== direction || $[243] !== effectiveSelectedKey || $[244] !== filterFn || $[245] !== handleSelectionChange || $[246] !== headingStyles || $[247] !== isDisabled || $[248] !== label || $[249] !== listBoxRef || $[250] !== listBoxStyles || $[251] !== listGap || $[252] !== optionStyles || $[253] !== overlayOffset || $[254] !== overlayStyles || $[255] !== popoverRef || $[256] !== props.disabledKeys || $[257] !== sectionStyles || $[258] !== shouldFlip || $[259] !== shouldShowPopover || $[260] !== size || $[261] !== sortedItems || $[262] !== t66 || $[263] !== t67 || $[264] !== t68) {
|
|
1240
|
+
t69 = /* @__PURE__ */ jsx(ListBoxPopover, {
|
|
1276
1241
|
isOpen: shouldShowPopover,
|
|
1277
|
-
triggerRef:
|
|
1242
|
+
triggerRef: t66,
|
|
1278
1243
|
popoverRef,
|
|
1279
1244
|
listBoxRef,
|
|
1280
1245
|
direction,
|
|
@@ -1296,61 +1261,79 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
|
|
|
1296
1261
|
items: sortedItems,
|
|
1297
1262
|
listStateRef,
|
|
1298
1263
|
label,
|
|
1299
|
-
ariaLabel:
|
|
1264
|
+
ariaLabel: t67,
|
|
1300
1265
|
compositeFocusProps,
|
|
1301
1266
|
filter: filterFn,
|
|
1302
1267
|
size,
|
|
1303
1268
|
onSelectionChange: handleSelectionChange,
|
|
1304
|
-
onClose:
|
|
1269
|
+
onClose: t68,
|
|
1305
1270
|
children
|
|
1306
1271
|
});
|
|
1307
|
-
$[
|
|
1308
|
-
$[
|
|
1309
|
-
$[
|
|
1310
|
-
$[
|
|
1311
|
-
$[
|
|
1312
|
-
$[
|
|
1313
|
-
$[
|
|
1314
|
-
$[
|
|
1315
|
-
$[
|
|
1316
|
-
$[
|
|
1317
|
-
$[
|
|
1318
|
-
$[
|
|
1319
|
-
$[
|
|
1320
|
-
$[
|
|
1321
|
-
$[
|
|
1322
|
-
$[
|
|
1323
|
-
$[
|
|
1324
|
-
$[
|
|
1325
|
-
$[
|
|
1326
|
-
$[
|
|
1327
|
-
$[
|
|
1328
|
-
$[
|
|
1329
|
-
$[
|
|
1330
|
-
$[
|
|
1331
|
-
$[
|
|
1332
|
-
$[
|
|
1333
|
-
$[
|
|
1334
|
-
$[
|
|
1335
|
-
} else
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1272
|
+
$[238] = children;
|
|
1273
|
+
$[239] = comboBoxWidth;
|
|
1274
|
+
$[240] = compositeFocusProps;
|
|
1275
|
+
$[241] = containerPadding;
|
|
1276
|
+
$[242] = direction;
|
|
1277
|
+
$[243] = effectiveSelectedKey;
|
|
1278
|
+
$[244] = filterFn;
|
|
1279
|
+
$[245] = handleSelectionChange;
|
|
1280
|
+
$[246] = headingStyles;
|
|
1281
|
+
$[247] = isDisabled;
|
|
1282
|
+
$[248] = label;
|
|
1283
|
+
$[249] = listBoxRef;
|
|
1284
|
+
$[250] = listBoxStyles;
|
|
1285
|
+
$[251] = listGap;
|
|
1286
|
+
$[252] = optionStyles;
|
|
1287
|
+
$[253] = overlayOffset;
|
|
1288
|
+
$[254] = overlayStyles;
|
|
1289
|
+
$[255] = popoverRef;
|
|
1290
|
+
$[256] = props.disabledKeys;
|
|
1291
|
+
$[257] = sectionStyles;
|
|
1292
|
+
$[258] = shouldFlip;
|
|
1293
|
+
$[259] = shouldShowPopover;
|
|
1294
|
+
$[260] = size;
|
|
1295
|
+
$[261] = sortedItems;
|
|
1296
|
+
$[262] = t66;
|
|
1297
|
+
$[263] = t67;
|
|
1298
|
+
$[264] = t68;
|
|
1299
|
+
$[265] = t69;
|
|
1300
|
+
} else t69 = $[265];
|
|
1301
|
+
let t70;
|
|
1302
|
+
if ($[266] !== compositeFocusProps || $[267] !== mods || $[268] !== size || $[269] !== styles || $[270] !== t51 || $[271] !== t59 || $[272] !== t65 || $[273] !== t69 || $[274] !== wrapperRef) {
|
|
1303
|
+
t70 = /* @__PURE__ */ jsxs(ComboBoxWrapperElement, {
|
|
1304
|
+
ref: wrapperRef,
|
|
1305
|
+
mods,
|
|
1306
|
+
styles,
|
|
1307
|
+
"data-size": size,
|
|
1308
|
+
...compositeFocusProps,
|
|
1309
|
+
children: [
|
|
1310
|
+
t51,
|
|
1311
|
+
t59,
|
|
1312
|
+
t65,
|
|
1313
|
+
t69
|
|
1314
|
+
]
|
|
1315
|
+
});
|
|
1316
|
+
$[266] = compositeFocusProps;
|
|
1317
|
+
$[267] = mods;
|
|
1318
|
+
$[268] = size;
|
|
1319
|
+
$[269] = styles;
|
|
1320
|
+
$[270] = t51;
|
|
1321
|
+
$[271] = t59;
|
|
1322
|
+
$[272] = t65;
|
|
1323
|
+
$[273] = t69;
|
|
1324
|
+
$[274] = wrapperRef;
|
|
1325
|
+
$[275] = t70;
|
|
1326
|
+
} else t70 = $[275];
|
|
1327
|
+
const comboBoxField = t70;
|
|
1328
|
+
let t71;
|
|
1329
|
+
if ($[276] !== comboBoxField || $[277] !== props) {
|
|
1330
|
+
const { children: _, ...propsWithoutChildren } = props;
|
|
1331
|
+
t71 = wrapWithField(comboBoxField, propsWithoutChildren);
|
|
1332
|
+
$[276] = comboBoxField;
|
|
1333
|
+
$[277] = props;
|
|
1334
|
+
$[278] = t71;
|
|
1335
|
+
} else t71 = $[278];
|
|
1336
|
+
return t71;
|
|
1354
1337
|
});
|
|
1355
1338
|
ComboBox.Item = _CollectionItem;
|
|
1356
1339
|
ComboBox.Section = Section;
|