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