@cube-dev/ui-kit 0.0.0-canary-8a359ff → 0.0.0-canary-f3c5e39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CHANGELOG.md +14 -0
- package/dist/_internal/hooks/use-debounced-value.js +1 -1
- package/dist/_internal/hooks/use-deprecation-warning.js +1 -1
- package/dist/_internal/hooks/use-event.js +1 -1
- package/dist/_internal/hooks/use-is-first-render.js +1 -1
- package/dist/_internal/hooks/use-sync-ref.js +1 -1
- package/dist/_internal/hooks/use-timer/timer.js +1 -1
- package/dist/_internal/hooks/use-timer/use-timer.js +1 -1
- package/dist/_internal/hooks/use-warn.js +1 -1
- package/dist/components/Block.js +1 -1
- package/dist/components/CollectionItem.js +1 -1
- package/dist/components/GlobalStyles.js +1 -1
- package/dist/components/GridProvider.js +1 -1
- package/dist/components/HiddenInput.js +1 -1
- package/dist/components/Root.js +1 -1
- package/dist/components/actions/Action/Action.js +1 -1
- package/dist/components/actions/Banner/Banner.js +1 -1
- package/dist/components/actions/Button/Button.js +1 -1
- package/dist/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/actions/ButtonSplit/ButtonSplit.js +1 -1
- package/dist/components/actions/ButtonSplit/context.js +1 -1
- package/dist/components/actions/CommandMenu/CommandMenu.js +1 -1
- package/dist/components/actions/CommandMenu/styled.js +1 -1
- package/dist/components/actions/ItemAction/ItemAction.js +1 -1
- package/dist/components/actions/ItemActionContext.js +1 -1
- package/dist/components/actions/ItemActionsWrapper.js +1 -1
- package/dist/components/actions/ItemButton/ItemButton.js +1 -1
- package/dist/components/actions/Link/Link.js +1 -1
- package/dist/components/actions/Menu/Menu.js +1 -1
- package/dist/components/actions/Menu/MenuItem.js +1 -1
- package/dist/components/actions/Menu/MenuSection.js +1 -1
- package/dist/components/actions/Menu/MenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubMenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubmenuTriggerContext.js +1 -1
- package/dist/components/actions/Menu/context.js +1 -1
- package/dist/components/actions/Menu/styled.js +1 -1
- package/dist/components/actions/actions-run.js +1 -1
- package/dist/components/actions/index.js +1 -1
- package/dist/components/actions/use-action.js +1 -1
- package/dist/components/actions/use-anchored-menu.js +1 -1
- package/dist/components/actions/use-context-menu.js +1 -1
- package/dist/components/content/ActiveZone/ActiveZone.js +1 -1
- package/dist/components/content/Alert/Alert.js +1 -1
- package/dist/components/content/Alert/use-alert.js +1 -1
- package/dist/components/content/Avatar/Avatar.js +1 -1
- package/dist/components/content/Badge/Badge.js +1 -1
- package/dist/components/content/Card/Card.js +1 -1
- package/dist/components/content/Content.js +1 -1
- package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +1 -1
- package/dist/components/content/CopySnippet/CopySnippet.js +1 -1
- package/dist/components/content/Disclosure/Disclosure.js +1 -1
- package/dist/components/content/Divider.js +1 -1
- package/dist/components/content/Footer.js +1 -1
- package/dist/components/content/Header.js +1 -1
- package/dist/components/content/HotKeys/HotKeys.js +1 -1
- package/dist/components/content/InfoBadge/InfoBadge.js +1 -1
- package/dist/components/content/InlineInput/InlineInput.js +1 -1
- package/dist/components/content/Item/Item.js +1 -1
- package/dist/components/content/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/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 +1 -1
- package/dist/components/content/Tree/TreeNode.js +1 -1
- package/dist/components/content/Tree/styled.js +1 -1
- package/dist/components/content/Tree/tree-index.js +1 -1
- package/dist/components/content/Tree/use-checkbox-tree.js +1 -1
- package/dist/components/content/Tree/use-load-data.js +1 -1
- package/dist/components/content/highlightText.js +1 -1
- package/dist/components/content/use-auto-tooltip.js +1 -1
- package/dist/components/data/DataTable/DataTable.js +1 -1
- package/dist/components/data/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/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/TableView.js +1 -1
- package/dist/components/data/TableBase/column-menu.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-order.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-tree-state.js +1 -1
- package/dist/components/fields/Checkbox/Checkbox.js +1 -1
- package/dist/components/fields/Checkbox/CheckboxGroup.js +1 -1
- package/dist/components/fields/Checkbox/context.js +1 -1
- package/dist/components/fields/ColorInput/ColorInput.js +1 -1
- package/dist/components/fields/ColorPicker/ColorPicker.js +1 -1
- package/dist/components/fields/ColorSwatch/ColorSwatch.js +1 -1
- package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js +1 -1
- package/dist/components/fields/ComboBox/ComboBox.d.ts +2 -0
- package/dist/components/fields/ComboBox/ComboBox.js +4 -3
- package/dist/components/fields/ComboBox/ComboBox.js.map +1 -1
- package/dist/components/fields/CommandTextArea/CommandTextArea.d.ts +2 -0
- package/dist/components/fields/CommandTextArea/CommandTextArea.js +4 -3
- package/dist/components/fields/CommandTextArea/CommandTextArea.js.map +1 -1
- package/dist/components/fields/CommandTextArea/caretPosition.js +1 -1
- package/dist/components/fields/CommandTextArea/useCaretAnchor.js +1 -1
- package/dist/components/fields/DatePicker/DateInput.js +1 -1
- package/dist/components/fields/DatePicker/DateInputBase.js +1 -1
- package/dist/components/fields/DatePicker/DatePicker.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerButton.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerElement.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerInput.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerSegment.js +1 -1
- package/dist/components/fields/DatePicker/DateRangePicker.js +1 -1
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +1 -1
- package/dist/components/fields/DatePicker/MonthPicker.js +1 -1
- package/dist/components/fields/DatePicker/PeriodPicker.js +1 -1
- package/dist/components/fields/DatePicker/QuarterPicker.js +1 -1
- package/dist/components/fields/DatePicker/TimeInput.js +1 -1
- package/dist/components/fields/DatePicker/WeekPicker.js +1 -1
- package/dist/components/fields/DatePicker/YearPicker.js +1 -1
- package/dist/components/fields/DatePicker/parseDate.js +1 -1
- package/dist/components/fields/DatePicker/period.js +1 -1
- package/dist/components/fields/DatePicker/props.js +1 -1
- package/dist/components/fields/DatePicker/utils.js +1 -1
- package/dist/components/fields/FileInput/FileInput.js +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.d.ts +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js +18 -40
- package/dist/components/fields/FilterListBox/FilterListBox.js.map +1 -1
- package/dist/components/fields/FilterPicker/FilterPicker.js +3 -2
- package/dist/components/fields/FilterPicker/FilterPicker.js.map +1 -1
- package/dist/components/fields/Input/Input.js +1 -1
- package/dist/components/fields/ListBox/DraggableListBox.js +1 -1
- package/dist/components/fields/ListBox/ListBox.d.ts +13 -0
- package/dist/components/fields/ListBox/ListBox.js +66 -51
- 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 +30 -28
- package/dist/components/fields/ListBoxPopover/ListBoxPopover.js.map +1 -1
- package/dist/components/fields/ListBoxPopover/listNavigation.js +1 -1
- package/dist/components/fields/ListBoxPopover/useCompositeFocus.js +1 -1
- package/dist/components/fields/NumberInput/NumberInput.js +1 -1
- package/dist/components/fields/NumberInput/StepButton.js +1 -1
- package/dist/components/fields/PasswordInput/PasswordInput.js +1 -1
- package/dist/components/fields/Picker/Picker.d.ts +1 -1
- package/dist/components/fields/Picker/Picker.js +3 -2
- package/dist/components/fields/Picker/Picker.js.map +1 -1
- package/dist/components/fields/RadioGroup/Radio.js +1 -1
- package/dist/components/fields/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/fields/RadioGroup/context.js +1 -1
- package/dist/components/fields/SearchComboBox/SearchComboBox.d.ts +2 -0
- package/dist/components/fields/SearchComboBox/SearchComboBox.js +4 -3
- package/dist/components/fields/SearchComboBox/SearchComboBox.js.map +1 -1
- package/dist/components/fields/SearchInput/SearchInput.js +1 -1
- package/dist/components/fields/Select/Select.d.ts +4 -0
- package/dist/components/fields/Select/Select.js +122 -101
- package/dist/components/fields/Select/Select.js.map +1 -1
- package/dist/components/fields/Slider/Gradation.js +1 -1
- package/dist/components/fields/Slider/HueSlider.js +1 -1
- package/dist/components/fields/Slider/RangeSlider.js +1 -1
- package/dist/components/fields/Slider/Slider.js +1 -1
- package/dist/components/fields/Slider/SliderBase.js +1 -1
- package/dist/components/fields/Slider/SliderThumb.js +1 -1
- package/dist/components/fields/Slider/SliderTrack.js +1 -1
- package/dist/components/fields/Slider/elements.js +1 -1
- package/dist/components/fields/Slider/index.js +1 -1
- package/dist/components/fields/Switch/Switch.js +1 -1
- package/dist/components/fields/TagInput/TagInput.d.ts +2 -0
- package/dist/components/fields/TagInput/TagInput.js +410 -405
- package/dist/components/fields/TagInput/TagInput.js.map +1 -1
- package/dist/components/fields/TagInput/TagList.js +1 -1
- package/dist/components/fields/TextArea/TextArea.js +1 -1
- package/dist/components/fields/TextInput/TextInput.js +1 -1
- package/dist/components/fields/TextInput/TextInputBase.js +1 -1
- package/dist/components/fields/TextInput/useAutoSizeTextArea.js +1 -1
- package/dist/components/fields/TextInputMapper/TextInputMapper.js +1 -1
- package/dist/components/fields/TriggerActions.js +1 -1
- package/dist/components/fields/color/ColorPanel.js +1 -1
- package/dist/components/fields/color/channels.js +1 -1
- package/dist/components/fields/color/color.js +1 -1
- package/dist/components/fields/color/context.js +1 -1
- package/dist/components/form/FieldWrapper/FieldWrapper.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/legacy-tooltip.js +1 -1
- package/dist/components/form/validation/ValidationIndicator.js +1 -1
- package/dist/components/form/validation/resolve-validation-props.js +1 -1
- package/dist/components/form/validation/use-validation-props.js +1 -1
- package/dist/components/form/wrapper.js +1 -1
- package/dist/components/helpers/DisplayTransition/DisplayTransition.js +1 -1
- package/dist/components/helpers/IconSwitch/IconSwitch.js +1 -1
- package/dist/components/layout/Board/Board.js +1 -1
- package/dist/components/layout/Board/BoardProvider.js +1 -1
- package/dist/components/layout/Board/BoardResponsive.js +1 -1
- package/dist/components/layout/Board/Widget.js +1 -1
- package/dist/components/layout/Board/WidgetHost.js +1 -1
- package/dist/components/layout/Board/board-context.js +1 -1
- package/dist/components/layout/Board/board-store.js +1 -1
- package/dist/components/layout/Board/grid-core/calculate.js +1 -1
- package/dist/components/layout/Board/grid-core/collision-modes.js +1 -1
- package/dist/components/layout/Board/grid-core/collision.js +1 -1
- package/dist/components/layout/Board/grid-core/compactors.js +1 -1
- package/dist/components/layout/Board/grid-core/constraints.js +1 -1
- package/dist/components/layout/Board/grid-core/group-move.js +1 -1
- package/dist/components/layout/Board/grid-core/layout.js +1 -1
- package/dist/components/layout/Board/grid-core/placement.js +1 -1
- package/dist/components/layout/Board/grid-core/sort.js +1 -1
- package/dist/components/layout/Board/index.js +1 -1
- package/dist/components/layout/Board/responsive-utils.js +1 -1
- package/dist/components/layout/Board/use-board-layout.js +1 -1
- package/dist/components/layout/Board/use-board-registry.js +1 -1
- package/dist/components/layout/Board/use-board-select-modifier-key.js +1 -1
- package/dist/components/layout/Board/use-board-selection.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/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/use-content-overflow.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-container.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/Notifications/Notification.js +1 -1
- package/dist/components/overlays/Notifications/NotificationAction.js +1 -1
- package/dist/components/overlays/Notifications/NotificationCard.js +1 -1
- package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
- package/dist/components/overlays/Notifications/NotificationItem.js +1 -1
- package/dist/components/overlays/Notifications/OverlayContainer.js +1 -1
- package/dist/components/overlays/Notifications/OverlayProvider.js +1 -1
- package/dist/components/overlays/Notifications/PersistentNotificationsList.js +1 -1
- package/dist/components/overlays/Notifications/dismissed-storage.js +1 -1
- package/dist/components/overlays/Notifications/format-relative-time.js +1 -1
- package/dist/components/overlays/Notifications/index.js +1 -1
- package/dist/components/overlays/Notifications/use-notification-state.js +1 -1
- package/dist/components/overlays/Notifications/use-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-overlay-timers.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-state.js +1 -1
- package/dist/components/overlays/Notifications/use-toast-state.js +1 -1
- package/dist/components/overlays/Toast/ToastItem.js +1 -1
- package/dist/components/overlays/Toast/index.js +1 -1
- package/dist/components/overlays/Toast/useProgressToast.js +1 -1
- package/dist/components/overlays/Toast/useToast.js +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipProvider.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipTrigger.js +1 -1
- package/dist/components/overlays/Tooltip/context.js +1 -1
- package/dist/components/overlays/Tooltip/split-trigger-props.js +1 -1
- package/dist/components/portal/Portal.js +1 -1
- package/dist/components/portal/PortalProvider.js +1 -1
- package/dist/components/portal/usePortal.js +1 -1
- package/dist/components/shared/DraggableCollection.js +1 -1
- package/dist/components/shared/InvalidIcon.js +1 -1
- package/dist/components/shared/ValidIcon.js +1 -1
- package/dist/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
- package/dist/components/status/Spin/Cube.js +1 -1
- package/dist/components/status/Spin/InternalSpinner.js +1 -1
- package/dist/components/status/Spin/Spin.js +1 -1
- package/dist/components/status/Spin/SpinsContainer.js +1 -1
- package/dist/data/item-themes.js +1 -1
- package/dist/data/themes.js +1 -1
- package/dist/eslint-plugin/defaults.generated.js +1 -1
- package/dist/eslint-plugin/index.js +1 -1
- package/dist/eslint-plugin/rules/no-redundant-default-prop.js +1 -1
- package/dist/i18n/I18nProvider.js +1 -1
- package/dist/i18n/createFormatter.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/instance.js +1 -1
- package/dist/i18n/locales/de-DE/uikit.js +1 -1
- package/dist/i18n/locales/en-US/uikit.js +1 -1
- package/dist/i18n/locales/es-ES/uikit.js +1 -1
- package/dist/i18n/locales/es-MX/uikit.js +1 -1
- package/dist/i18n/locales/fr-FR/uikit.js +1 -1
- package/dist/i18n/locales/it-IT/uikit.js +1 -1
- package/dist/i18n/locales/ja-JP/uikit.js +1 -1
- package/dist/i18n/locales/nb-NO/uikit.js +1 -1
- package/dist/i18n/locales/pt-BR/uikit.js +1 -1
- package/dist/i18n/locales/pt-PT/uikit.js +1 -1
- package/dist/i18n/locales/sv-SE/uikit.js +1 -1
- package/dist/i18n/locales/vi-VN/uikit.js +1 -1
- package/dist/i18n/locales.js +1 -1
- package/dist/i18n/useFormatter.js +1 -1
- package/dist/i18n/useI18n.js +1 -1
- package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
- package/dist/icons/AdjustmentsIcon.js +1 -1
- package/dist/icons/AiIcon.js +1 -1
- package/dist/icons/AreaChartIcon.js +1 -1
- package/dist/icons/ArrowNarrowDownIcon.js +1 -1
- package/dist/icons/ArrowNarrowUpIcon.js +1 -1
- package/dist/icons/BackwardIcon.js +1 -1
- package/dist/icons/BarChartIcon.js +1 -1
- package/dist/icons/BellFilledIcon.js +1 -1
- package/dist/icons/BellIcon.js +1 -1
- package/dist/icons/BooleanIcon.js +1 -1
- package/dist/icons/CalendarEditIcon.js +1 -1
- package/dist/icons/CalendarIcon.js +1 -1
- package/dist/icons/CaretDownIcon.js +1 -1
- package/dist/icons/CaretUpIcon.js +1 -1
- package/dist/icons/ChartAreaStackedIcon.js +1 -1
- package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarGroupedIcon.js +1 -1
- package/dist/icons/ChartBarHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarLineIcon.js +1 -1
- package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBoxPlot2Icon.js +1 -1
- package/dist/icons/ChartBoxPlotIcon.js +1 -1
- package/dist/icons/ChartBubbleIcon.js +1 -1
- package/dist/icons/ChartDonut2Icon.js +1 -1
- package/dist/icons/ChartFunnelIcon.js +1 -1
- package/dist/icons/ChartHeatmapIcon.js +1 -1
- package/dist/icons/ChartKPIIcon.js +1 -1
- package/dist/icons/ChartPie2Icon.js +1 -1
- package/dist/icons/ChartScatterIcon.js +1 -1
- package/dist/icons/CheckCircleFilledIcon.js +1 -1
- package/dist/icons/CheckCircleIcon.js +1 -1
- package/dist/icons/CheckIcon.js +1 -1
- package/dist/icons/CircleFilledIcon.js +1 -1
- package/dist/icons/ClearIcon.js +1 -1
- package/dist/icons/CloseCircleFilledIcon.js +1 -1
- package/dist/icons/CloseCircleIcon.js +1 -1
- package/dist/icons/CloseIcon.js +1 -1
- package/dist/icons/CodeIcon.js +1 -1
- package/dist/icons/ColumnTotalIcon.js +1 -1
- package/dist/icons/CopyIcon.js +1 -1
- package/dist/icons/CountIcon.js +1 -1
- package/dist/icons/CubeIcon.js +1 -1
- package/dist/icons/CubePauseIcon.js +1 -1
- package/dist/icons/CubePlayIcon.js +1 -1
- package/dist/icons/CurrencyDollarIcon.js +1 -1
- package/dist/icons/DangerIcon.js +1 -1
- package/dist/icons/DashboardIcon.js +1 -1
- package/dist/icons/DatabaseIcon.js +1 -1
- package/dist/icons/DecimalDecreaseIcon.js +1 -1
- package/dist/icons/DecimalIncreaseIcon.js +1 -1
- package/dist/icons/DirectionIcon.js +1 -1
- package/dist/icons/DonutIcon.js +1 -1
- package/dist/icons/DownIcon.js +1 -1
- package/dist/icons/EditIcon.js +1 -1
- package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
- package/dist/icons/ExclamationCircleIcon.js +1 -1
- package/dist/icons/ExclamationIcon.js +1 -1
- package/dist/icons/EyeIcon.js +1 -1
- package/dist/icons/EyeInvisibleIcon.js +1 -1
- package/dist/icons/FilterIcon.js +1 -1
- package/dist/icons/FolderFilledIcon.js +1 -1
- package/dist/icons/FolderIcon.js +1 -1
- package/dist/icons/FolderOpenFilledIcon.js +1 -1
- package/dist/icons/FolderOpenIcon.js +1 -1
- package/dist/icons/ForwardIcon.js +1 -1
- package/dist/icons/GripVerticalIcon.js +1 -1
- package/dist/icons/HierarchyIcon.js +1 -1
- package/dist/icons/HierarchyOpenIcon.js +1 -1
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/InfoCircleIcon.js +1 -1
- package/dist/icons/InfoIcon.js +1 -1
- package/dist/icons/KeyIcon.js +1 -1
- package/dist/icons/LeftIcon.js +1 -1
- package/dist/icons/LineChartIcon.js +1 -1
- package/dist/icons/LoadingIcon.js +1 -1
- package/dist/icons/LockFilledIcon.js +1 -1
- package/dist/icons/LockIcon.js +1 -1
- package/dist/icons/MoreIcon.js +1 -1
- package/dist/icons/NotAllowedIcon.js +1 -1
- package/dist/icons/Number123Icon.js +1 -1
- package/dist/icons/NumberIcon.js +1 -1
- package/dist/icons/PauseCircleFilledIcon.js +1 -1
- package/dist/icons/PauseCircleIcon.js +1 -1
- package/dist/icons/PauseIcon.js +1 -1
- package/dist/icons/PercentageIcon.js +1 -1
- package/dist/icons/PieChartIcon.js +1 -1
- package/dist/icons/PipetteIcon.js +1 -1
- package/dist/icons/PlayCircleIcon.js +1 -1
- package/dist/icons/PlayIcon.js +1 -1
- package/dist/icons/PlusIcon.js +1 -1
- package/dist/icons/ProgressBarIcon.js +1 -1
- package/dist/icons/ReloadIcon.js +1 -1
- package/dist/icons/ReportIcon.js +1 -1
- package/dist/icons/ReturnIcon.js +1 -1
- package/dist/icons/RightIcon.js +1 -1
- package/dist/icons/RowTotalsIcon.js +1 -1
- package/dist/icons/SchemeIcon.js +1 -1
- package/dist/icons/SearchIcon.js +1 -1
- package/dist/icons/SemanticQueryIcon.js +1 -1
- package/dist/icons/SettingsIcon.js +1 -1
- package/dist/icons/ShieldFilledIcon.js +1 -1
- package/dist/icons/ShieldIcon.js +1 -1
- package/dist/icons/SlashIcon.js +1 -1
- package/dist/icons/SparklesIcon.js +1 -1
- package/dist/icons/SqlIcon.js +1 -1
- package/dist/icons/StatsIcon.js +1 -1
- package/dist/icons/StopIcon.js +1 -1
- package/dist/icons/StringIcon.js +1 -1
- package/dist/icons/SubtotalsIcon.js +1 -1
- package/dist/icons/SwitchIcon.js +1 -1
- package/dist/icons/TableIcon.js +1 -1
- package/dist/icons/ThumbsDownIcon.js +1 -1
- package/dist/icons/ThumbsUpIcon.js +1 -1
- package/dist/icons/ThunderboltCrossedIcon.js +1 -1
- package/dist/icons/ThunderboltFilledIcon.js +1 -1
- package/dist/icons/ThunderboltIcon.js +1 -1
- package/dist/icons/TimeIcon.js +1 -1
- package/dist/icons/TrashIcon.js +1 -1
- package/dist/icons/UnlockIcon.js +1 -1
- package/dist/icons/UpIcon.js +1 -1
- package/dist/icons/UserGroupIcon.js +1 -1
- package/dist/icons/UserIcon.js +1 -1
- package/dist/icons/UserLockIcon.js +1 -1
- package/dist/icons/ViewIcon.js +1 -1
- package/dist/icons/WarningFilledIcon.js +1 -1
- package/dist/icons/WarningIcon.js +1 -1
- package/dist/icons/wrap-icon.js +1 -1
- package/dist/index.js +1 -1
- package/dist/probe/canonicalize.js +1 -1
- package/dist/probe/css.js +1 -1
- package/dist/probe/index.js +1 -1
- package/dist/provider.js +1 -1
- package/dist/providers/TrackingProvider.js +1 -1
- package/dist/providers/navigationAdapter.default.js +1 -1
- package/dist/tokens/all-tokens.js +1 -1
- package/dist/tokens/base.js +1 -1
- package/dist/tokens/color-seed.js +1 -1
- package/dist/tokens/color-theme.js +1 -1
- package/dist/tokens/colors.js +1 -1
- package/dist/tokens/layout.js +1 -1
- package/dist/tokens/lazy-styles.js +1 -1
- package/dist/tokens/legacy-color.js +1 -1
- package/dist/tokens/palette-config.js +1 -1
- package/dist/tokens/palette.js +1 -1
- package/dist/tokens/resolve.js +1 -1
- package/dist/tokens/shadows.js +1 -1
- package/dist/tokens/sizes.js +1 -1
- package/dist/tokens/spacing.js +1 -1
- package/dist/tokens/typography.js +1 -1
- package/dist/utils/ResizeSensor.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/dotize.js +1 -1
- package/dist/utils/is-dev-env.js +1 -1
- package/dist/utils/modules.js +1 -1
- package/dist/utils/promise.js +1 -1
- package/dist/utils/raf.js +1 -1
- package/dist/utils/random.js +1 -1
- package/dist/utils/range.js +1 -1
- package/dist/utils/react/RenderCache.js +1 -1
- package/dist/utils/react/Slots.js +1 -1
- package/dist/utils/react/chain.js +1 -1
- package/dist/utils/react/disabledProps.js +1 -1
- package/dist/utils/react/escapePropagation.js +1 -1
- package/dist/utils/react/forwardRefWithGenerics.js +1 -1
- package/dist/utils/react/index.js +1 -1
- package/dist/utils/react/interactions.js +1 -1
- package/dist/utils/react/isTextOnly.js +1 -1
- package/dist/utils/react/mapProps.js +1 -1
- package/dist/utils/react/mergeProps.js +1 -1
- package/dist/utils/react/nullableValue.js +1 -1
- package/dist/utils/react/programmaticFocus.js +1 -1
- package/dist/utils/react/resolveIcon.js +1 -1
- package/dist/utils/react/sharedStore.js +1 -1
- package/dist/utils/react/useBufferedValue.js +1 -1
- package/dist/utils/react/useCombinedRefs.js +1 -1
- package/dist/utils/react/useControlledFocusVisible.js +1 -1
- package/dist/utils/react/useEventBus.js +1 -1
- package/dist/utils/react/useId.js +1 -1
- package/dist/utils/react/useIsDarwin.js +1 -1
- package/dist/utils/react/useKeySymbols.js +1 -1
- package/dist/utils/react/useLayoutEffect.js +1 -1
- package/dist/utils/react/useLocalStorage.js +1 -1
- package/dist/utils/react/useMergeStyles.js +1 -1
- package/dist/utils/react/useOverlayEscapeGuard.js +1 -1
- package/dist/utils/react/usePopoverSync.js +1 -1
- package/dist/utils/react/useQaProps.js +1 -1
- package/dist/utils/react/useScheme.js +1 -1
- package/dist/utils/react/useViewportSize.js +1 -1
- package/dist/utils/react/wrapNodeIfPlain.js +1 -1
- package/dist/utils/selection.js +1 -1
- package/dist/utils/styles.js +1 -1
- package/dist/utils/tree.js +1 -1
- package/dist/utils/warnings.js +1 -1
- package/dist/version.js +2 -2
- package/docs/components/fields/ComboBox.md +1 -0
- package/docs/components/fields/CommandTextArea.md +1 -0
- package/docs/components/fields/FilterListBox.md +1 -0
- package/docs/components/fields/FilterPicker.md +1 -0
- package/docs/components/fields/ListBox.md +33 -2
- package/docs/components/fields/Picker.md +1 -0
- package/docs/components/fields/SearchComboBox.md +1 -0
- package/docs/components/fields/Select.md +1 -0
- package/docs/components/fields/TagInput.md +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-f3c5e39 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
4
4
|
import { useCombinedRefs } from "../../../utils/react/useCombinedRefs.js";
|
|
@@ -14,10 +14,10 @@ import { castNullableArrayValue } from "../../../utils/react/nullableValue.js";
|
|
|
14
14
|
import { useFieldProps } from "../../form/Form/use-field/use-field-props.js";
|
|
15
15
|
import { wrapWithField } from "../../form/wrapper.js";
|
|
16
16
|
import { getListBoxOptionId } from "../ListBox/optionId.js";
|
|
17
|
+
import { collectVisibleKeys, filterCollectionNodes, getEdgeVisibleKey, getNextVisibleKey, markKeyboardFocus } from "../ListBoxPopover/listNavigation.js";
|
|
17
18
|
import { TextInputBase } from "../TextInput/TextInputBase.js";
|
|
18
19
|
import { ListBoxPopover } from "../ListBoxPopover/ListBoxPopover.js";
|
|
19
20
|
import { useCompositeFocus } from "../ListBoxPopover/useCompositeFocus.js";
|
|
20
|
-
import { collectVisibleKeys, filterCollectionNodes, getEdgeVisibleKey, getNextVisibleKey, markKeyboardFocus } from "../ListBoxPopover/listNavigation.js";
|
|
21
21
|
import { TagList } from "./TagList.js";
|
|
22
22
|
import { c } from "react-compiler-runtime";
|
|
23
23
|
import { CONTAINER_STYLES, tasty } from "@tenphi/tasty";
|
|
@@ -125,7 +125,7 @@ function isComposingKey(e) {
|
|
|
125
125
|
return e.nativeEvent.isComposing || e.keyCode === 229;
|
|
126
126
|
}
|
|
127
127
|
function TagInput(props, ref) {
|
|
128
|
-
const $ = c(
|
|
128
|
+
const $ = c(291);
|
|
129
129
|
let t0;
|
|
130
130
|
if ($[0] !== props) {
|
|
131
131
|
t0 = castNullableArrayValue(props);
|
|
@@ -174,6 +174,7 @@ function TagInput(props, ref) {
|
|
|
174
174
|
let label;
|
|
175
175
|
let listBoxRefProp;
|
|
176
176
|
let listBoxStyles;
|
|
177
|
+
let listGap;
|
|
177
178
|
let maxTags;
|
|
178
179
|
let message;
|
|
179
180
|
let mods;
|
|
@@ -214,7 +215,7 @@ function TagInput(props, ref) {
|
|
|
214
215
|
let wrapperRefProp;
|
|
215
216
|
let wrapperStyles;
|
|
216
217
|
if ($[3] !== props) {
|
|
217
|
-
const { qa: t3, id: t4, label: t5, value: t6, defaultValue: t7, onChange: t8, inputValue: t9, defaultInputValue: t10, onInputChange: t11, placeholder: t12, autoFocus: t13, autoComplete: t14, onFocus: t15, onBlur: t16, onKeyDown: t17, delimiters: t18, validateTag: t19, normalizeTag: t20, maxTags: t21, shouldCommitOnBlur: t22, isClearable: t23, onClear: t24, items: t25, children: t26, allowsCustomValue: t27, filter: t28, disabledKeys: t29, popoverTrigger: t30, onOpenChange: t31, hideTrigger: t32, direction: t33, shouldFlip: t34, overlayOffset: t35, containerPadding: t36, tagProps: t37, icon: t38, prefix: t39, suffix: t40, suffixPosition: t41, size: t42, isDisabled: t43, isReadOnly: t44, isRequired: t45, isLoading: t46, isInvalid: t47, isValid: t48, message: t49, errorMessage: t50, inputRef: t51, wrapperRef: t52, popoverRef: t53, listBoxRef: t54, wrapperStyles: t55, inputStyles: t56, tagListStyles: t57, tagStyles: t58, triggerStyles: t59, overlayStyles: t60, listBoxStyles: t61, optionStyles: t62, sectionStyles: t63, headingStyles: t64,
|
|
218
|
+
const { qa: t3, id: t4, label: t5, value: t6, defaultValue: t7, onChange: t8, inputValue: t9, defaultInputValue: t10, onInputChange: t11, placeholder: t12, autoFocus: t13, autoComplete: t14, onFocus: t15, onBlur: t16, onKeyDown: t17, delimiters: t18, validateTag: t19, normalizeTag: t20, maxTags: t21, shouldCommitOnBlur: t22, isClearable: t23, onClear: t24, items: t25, children: t26, allowsCustomValue: t27, filter: t28, disabledKeys: t29, popoverTrigger: t30, onOpenChange: t31, hideTrigger: t32, direction: t33, shouldFlip: t34, overlayOffset: t35, containerPadding: t36, tagProps: t37, icon: t38, prefix: t39, suffix: t40, suffixPosition: t41, size: t42, isDisabled: t43, isReadOnly: t44, isRequired: t45, isLoading: t46, isInvalid: t47, isValid: t48, message: t49, errorMessage: t50, inputRef: t51, wrapperRef: t52, popoverRef: t53, listBoxRef: t54, wrapperStyles: t55, inputStyles: t56, tagListStyles: t57, tagStyles: t58, triggerStyles: t59, overlayStyles: t60, listBoxStyles: t61, optionStyles: t62, sectionStyles: t63, headingStyles: t64, listGap: t65, labelProps: t66, mods: t67, className: t68, style: t69, qaVal: t70, name, form, ...t71 } = props;
|
|
218
219
|
qa = t3;
|
|
219
220
|
id = t4;
|
|
220
221
|
label = t5;
|
|
@@ -268,12 +269,13 @@ function TagInput(props, ref) {
|
|
|
268
269
|
optionStyles = t62;
|
|
269
270
|
sectionStyles = t63;
|
|
270
271
|
headingStyles = t64;
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
272
|
+
listGap = t65;
|
|
273
|
+
userLabelProps = t66;
|
|
274
|
+
mods = t67;
|
|
275
|
+
className = t68;
|
|
276
|
+
style = t69;
|
|
277
|
+
qaVal = t70;
|
|
278
|
+
otherProps = t71;
|
|
277
279
|
autoComplete = t14 === void 0 ? "off" : t14;
|
|
278
280
|
delimiters = t18 === void 0 ? DEFAULT_DELIMITERS : t18;
|
|
279
281
|
shouldCommitOnBlur = t22 === void 0 ? true : t22;
|
|
@@ -315,45 +317,46 @@ function TagInput(props, ref) {
|
|
|
315
317
|
$[31] = label;
|
|
316
318
|
$[32] = listBoxRefProp;
|
|
317
319
|
$[33] = listBoxStyles;
|
|
318
|
-
$[34] =
|
|
319
|
-
$[35] =
|
|
320
|
-
$[36] =
|
|
321
|
-
$[37] =
|
|
322
|
-
$[38] =
|
|
323
|
-
$[39] =
|
|
324
|
-
$[40] =
|
|
325
|
-
$[41] =
|
|
326
|
-
$[42] =
|
|
327
|
-
$[43] =
|
|
328
|
-
$[44] =
|
|
329
|
-
$[45] =
|
|
330
|
-
$[46] =
|
|
331
|
-
$[47] =
|
|
332
|
-
$[48] =
|
|
333
|
-
$[49] =
|
|
334
|
-
$[50] =
|
|
335
|
-
$[51] =
|
|
336
|
-
$[52] =
|
|
337
|
-
$[53] =
|
|
338
|
-
$[54] =
|
|
339
|
-
$[55] =
|
|
340
|
-
$[56] =
|
|
341
|
-
$[57] =
|
|
342
|
-
$[58] =
|
|
343
|
-
$[59] =
|
|
344
|
-
$[60] =
|
|
345
|
-
$[61] =
|
|
346
|
-
$[62] =
|
|
347
|
-
$[63] =
|
|
348
|
-
$[64] =
|
|
349
|
-
$[65] =
|
|
350
|
-
$[66] =
|
|
351
|
-
$[67] =
|
|
352
|
-
$[68] =
|
|
353
|
-
$[69] =
|
|
354
|
-
$[70] =
|
|
355
|
-
$[71] =
|
|
356
|
-
$[72] =
|
|
320
|
+
$[34] = listGap;
|
|
321
|
+
$[35] = maxTags;
|
|
322
|
+
$[36] = message;
|
|
323
|
+
$[37] = mods;
|
|
324
|
+
$[38] = normalizeTag;
|
|
325
|
+
$[39] = onBlur;
|
|
326
|
+
$[40] = onChange_0;
|
|
327
|
+
$[41] = onClear;
|
|
328
|
+
$[42] = onFocus;
|
|
329
|
+
$[43] = onInputChange;
|
|
330
|
+
$[44] = onKeyDown;
|
|
331
|
+
$[45] = onOpenChange;
|
|
332
|
+
$[46] = optionStyles;
|
|
333
|
+
$[47] = otherProps;
|
|
334
|
+
$[48] = overlayOffset;
|
|
335
|
+
$[49] = overlayStyles;
|
|
336
|
+
$[50] = placeholder;
|
|
337
|
+
$[51] = popoverRefProp;
|
|
338
|
+
$[52] = popoverTrigger;
|
|
339
|
+
$[53] = prefix;
|
|
340
|
+
$[54] = qa;
|
|
341
|
+
$[55] = qaVal;
|
|
342
|
+
$[56] = renderChildren;
|
|
343
|
+
$[57] = sectionStyles;
|
|
344
|
+
$[58] = shouldCommitOnBlur;
|
|
345
|
+
$[59] = shouldFlip;
|
|
346
|
+
$[60] = size;
|
|
347
|
+
$[61] = style;
|
|
348
|
+
$[62] = suffix;
|
|
349
|
+
$[63] = suffixPosition;
|
|
350
|
+
$[64] = t2;
|
|
351
|
+
$[65] = tagListStyles;
|
|
352
|
+
$[66] = tagProps;
|
|
353
|
+
$[67] = tagStyles;
|
|
354
|
+
$[68] = triggerStyles;
|
|
355
|
+
$[69] = userLabelProps;
|
|
356
|
+
$[70] = validateTag;
|
|
357
|
+
$[71] = valueProp;
|
|
358
|
+
$[72] = wrapperRefProp;
|
|
359
|
+
$[73] = wrapperStyles;
|
|
357
360
|
} else {
|
|
358
361
|
allowsCustomValue = $[4];
|
|
359
362
|
autoComplete = $[5];
|
|
@@ -385,45 +388,46 @@ function TagInput(props, ref) {
|
|
|
385
388
|
label = $[31];
|
|
386
389
|
listBoxRefProp = $[32];
|
|
387
390
|
listBoxStyles = $[33];
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
391
|
+
listGap = $[34];
|
|
392
|
+
maxTags = $[35];
|
|
393
|
+
message = $[36];
|
|
394
|
+
mods = $[37];
|
|
395
|
+
normalizeTag = $[38];
|
|
396
|
+
onBlur = $[39];
|
|
397
|
+
onChange_0 = $[40];
|
|
398
|
+
onClear = $[41];
|
|
399
|
+
onFocus = $[42];
|
|
400
|
+
onInputChange = $[43];
|
|
401
|
+
onKeyDown = $[44];
|
|
402
|
+
onOpenChange = $[45];
|
|
403
|
+
optionStyles = $[46];
|
|
404
|
+
otherProps = $[47];
|
|
405
|
+
overlayOffset = $[48];
|
|
406
|
+
overlayStyles = $[49];
|
|
407
|
+
placeholder = $[50];
|
|
408
|
+
popoverRefProp = $[51];
|
|
409
|
+
popoverTrigger = $[52];
|
|
410
|
+
prefix = $[53];
|
|
411
|
+
qa = $[54];
|
|
412
|
+
qaVal = $[55];
|
|
413
|
+
renderChildren = $[56];
|
|
414
|
+
sectionStyles = $[57];
|
|
415
|
+
shouldCommitOnBlur = $[58];
|
|
416
|
+
shouldFlip = $[59];
|
|
417
|
+
size = $[60];
|
|
418
|
+
style = $[61];
|
|
419
|
+
suffix = $[62];
|
|
420
|
+
suffixPosition = $[63];
|
|
421
|
+
t2 = $[64];
|
|
422
|
+
tagListStyles = $[65];
|
|
423
|
+
tagProps = $[66];
|
|
424
|
+
tagStyles = $[67];
|
|
425
|
+
triggerStyles = $[68];
|
|
426
|
+
userLabelProps = $[69];
|
|
427
|
+
validateTag = $[70];
|
|
428
|
+
valueProp = $[71];
|
|
429
|
+
wrapperRefProp = $[72];
|
|
430
|
+
wrapperStyles = $[73];
|
|
427
431
|
}
|
|
428
432
|
const styles = t2;
|
|
429
433
|
const rootRef = useCombinedRefs(ref);
|
|
@@ -434,10 +438,10 @@ function TagInput(props, ref) {
|
|
|
434
438
|
const tagListRef = useRef(null);
|
|
435
439
|
const listStateRef = useRef(null);
|
|
436
440
|
let t3;
|
|
437
|
-
if ($[
|
|
441
|
+
if ($[74] === Symbol.for("react.memo_cache_sentinel")) {
|
|
438
442
|
t3 = generateRandomId();
|
|
439
|
-
$[
|
|
440
|
-
} else t3 = $[
|
|
443
|
+
$[74] = t3;
|
|
444
|
+
} else t3 = $[74];
|
|
441
445
|
const listBoxId = `TagInputListBox-${t3}`;
|
|
442
446
|
const tagListId = useId$1();
|
|
443
447
|
const summaryId = useId$1();
|
|
@@ -445,18 +449,18 @@ function TagInput(props, ref) {
|
|
|
445
449
|
const triggerId = useId$1();
|
|
446
450
|
const clearId = useId$1();
|
|
447
451
|
let t4;
|
|
448
|
-
if ($[
|
|
452
|
+
if ($[75] !== defaultValue) {
|
|
449
453
|
t4 = defaultValue ?? [];
|
|
450
|
-
$[
|
|
451
|
-
$[
|
|
452
|
-
} else t4 = $[
|
|
454
|
+
$[75] = defaultValue;
|
|
455
|
+
$[76] = t4;
|
|
456
|
+
} else t4 = $[76];
|
|
453
457
|
const [values, setValues] = useControlledState(valueProp, t4, onChange_0);
|
|
454
458
|
const uniqueValues = [...new Set((values ?? []).map(String))];
|
|
455
459
|
const [draft, setDraftState] = useControlledState(inputValueProp, defaultInputValue ?? "", onInputChange);
|
|
456
460
|
const [tagError, setTagErrorState] = useState(null);
|
|
457
461
|
const tagErrorIdRef = useRef(0);
|
|
458
462
|
let t5;
|
|
459
|
-
if ($[
|
|
463
|
+
if ($[77] === Symbol.for("react.memo_cache_sentinel")) {
|
|
460
464
|
t5 = (text) => {
|
|
461
465
|
if (text == null) {
|
|
462
466
|
setTagErrorState(null);
|
|
@@ -468,17 +472,17 @@ function TagInput(props, ref) {
|
|
|
468
472
|
text
|
|
469
473
|
});
|
|
470
474
|
};
|
|
471
|
-
$[
|
|
472
|
-
} else t5 = $[
|
|
475
|
+
$[77] = t5;
|
|
476
|
+
} else t5 = $[77];
|
|
473
477
|
const setTagError = useEvent(t5);
|
|
474
478
|
let t6;
|
|
475
|
-
if ($[
|
|
479
|
+
if ($[78] === Symbol.for("react.memo_cache_sentinel")) {
|
|
476
480
|
t6 = {
|
|
477
481
|
id: 0,
|
|
478
482
|
text: ""
|
|
479
483
|
};
|
|
480
|
-
$[
|
|
481
|
-
} else t6 = $[
|
|
484
|
+
$[78] = t6;
|
|
485
|
+
} else t6 = $[78];
|
|
482
486
|
const [announcement, setAnnouncement] = useState(t6);
|
|
483
487
|
let children = renderChildren;
|
|
484
488
|
if (items && typeof renderChildren === "function") children = Array.from(items).map((item, index) => {
|
|
@@ -492,64 +496,64 @@ function TagInput(props, ref) {
|
|
|
492
496
|
selectionMode: "none"
|
|
493
497
|
}).collection;
|
|
494
498
|
let t7;
|
|
495
|
-
if ($[
|
|
499
|
+
if ($[79] !== collection) {
|
|
496
500
|
t7 = (key) => {
|
|
497
501
|
const node = collection.getItem(key);
|
|
498
502
|
return node?.type === "item" ? node : null;
|
|
499
503
|
};
|
|
500
|
-
$[
|
|
501
|
-
$[
|
|
502
|
-
} else t7 = $[
|
|
504
|
+
$[79] = collection;
|
|
505
|
+
$[80] = t7;
|
|
506
|
+
} else t7 = $[80];
|
|
503
507
|
const getOption = t7;
|
|
504
508
|
let t8;
|
|
505
|
-
if ($[
|
|
509
|
+
if ($[81] === Symbol.for("react.memo_cache_sentinel")) {
|
|
506
510
|
t8 = { sensitivity: "base" };
|
|
507
|
-
$[
|
|
508
|
-
} else t8 = $[
|
|
511
|
+
$[81] = t8;
|
|
512
|
+
} else t8 = $[81];
|
|
509
513
|
const { contains } = useFilter(t8);
|
|
510
514
|
let t9;
|
|
511
|
-
if ($[
|
|
515
|
+
if ($[82] !== contains || $[83] !== filter) {
|
|
512
516
|
t9 = filter === false ? _temp2 : filter || contains;
|
|
513
|
-
$[
|
|
514
|
-
$[
|
|
515
|
-
$[
|
|
516
|
-
} else t9 = $[
|
|
517
|
+
$[82] = contains;
|
|
518
|
+
$[83] = filter;
|
|
519
|
+
$[84] = t9;
|
|
520
|
+
} else t9 = $[84];
|
|
517
521
|
const textFilterFn = t9;
|
|
518
522
|
const [isFilterActive, setIsFilterActive] = useState(false);
|
|
519
523
|
const term = draft.trim();
|
|
520
524
|
const [knownLabels, setKnownLabels] = useState(_temp3);
|
|
521
525
|
let t10;
|
|
522
|
-
if ($[
|
|
526
|
+
if ($[85] !== getOption || $[86] !== knownLabels) {
|
|
523
527
|
t10 = (key_0) => getOption(key_0)?.textValue || knownLabels.get(key_0) || key_0;
|
|
524
|
-
$[
|
|
525
|
-
$[
|
|
526
|
-
$[
|
|
527
|
-
} else t10 = $[
|
|
528
|
+
$[85] = getOption;
|
|
529
|
+
$[86] = knownLabels;
|
|
530
|
+
$[87] = t10;
|
|
531
|
+
} else t10 = $[87];
|
|
528
532
|
const getOptionLabel = t10;
|
|
529
533
|
let t11;
|
|
530
|
-
if ($[
|
|
534
|
+
if ($[88] !== getOptionLabel || $[89] !== tagProps) {
|
|
531
535
|
t11 = (key_1) => textLabel(tagProps?.(key_1)?.children) ?? getOptionLabel(key_1);
|
|
532
|
-
$[
|
|
533
|
-
$[
|
|
534
|
-
$[
|
|
535
|
-
} else t11 = $[
|
|
536
|
+
$[88] = getOptionLabel;
|
|
537
|
+
$[89] = tagProps;
|
|
538
|
+
$[90] = t11;
|
|
539
|
+
} else t11 = $[90];
|
|
536
540
|
const getTagLabel = t11;
|
|
537
541
|
let t12;
|
|
538
|
-
if ($[
|
|
542
|
+
if ($[91] !== tagProps) {
|
|
539
543
|
t12 = (key_2) => !!tagProps?.(key_2)?.isDisabled;
|
|
540
|
-
$[
|
|
541
|
-
$[
|
|
542
|
-
} else t12 = $[
|
|
544
|
+
$[91] = tagProps;
|
|
545
|
+
$[92] = t12;
|
|
546
|
+
} else t12 = $[92];
|
|
543
547
|
const isTagLocked = t12;
|
|
544
548
|
let t13;
|
|
545
|
-
if ($[
|
|
549
|
+
if ($[93] !== disabledKeys) {
|
|
546
550
|
t13 = new Set([...disabledKeys ?? []].map(String));
|
|
547
|
-
$[
|
|
548
|
-
$[
|
|
549
|
-
} else t13 = $[
|
|
551
|
+
$[93] = disabledKeys;
|
|
552
|
+
$[94] = t13;
|
|
553
|
+
} else t13 = $[94];
|
|
550
554
|
const disabledKeySet = t13;
|
|
551
555
|
let t14;
|
|
552
|
-
if ($[
|
|
556
|
+
if ($[95] !== getOption || $[96] !== knownLabels) {
|
|
553
557
|
t14 = (keys) => {
|
|
554
558
|
let next = null;
|
|
555
559
|
for (const key_3 of keys) {
|
|
@@ -561,26 +565,26 @@ function TagInput(props, ref) {
|
|
|
561
565
|
}
|
|
562
566
|
if (next) setKnownLabels(next);
|
|
563
567
|
};
|
|
564
|
-
$[
|
|
565
|
-
$[
|
|
566
|
-
$[
|
|
567
|
-
} else t14 = $[
|
|
568
|
+
$[95] = getOption;
|
|
569
|
+
$[96] = knownLabels;
|
|
570
|
+
$[97] = t14;
|
|
571
|
+
} else t14 = $[97];
|
|
568
572
|
const rememberLabels = useEvent(t14);
|
|
569
573
|
let t15;
|
|
570
|
-
if ($[
|
|
574
|
+
if ($[98] !== allowsCustomValue || $[99] !== collection || $[100] !== hasOptions) {
|
|
571
575
|
t15 = (text_0) => {
|
|
572
576
|
if (!hasOptions) return null;
|
|
573
577
|
const match = matchOptionText(collection, text_0);
|
|
574
578
|
return match.exact ?? (allowsCustomValue ? null : match.loose);
|
|
575
579
|
};
|
|
576
|
-
$[
|
|
577
|
-
$[
|
|
578
|
-
$[
|
|
579
|
-
$[
|
|
580
|
-
} else t15 = $[
|
|
580
|
+
$[98] = allowsCustomValue;
|
|
581
|
+
$[99] = collection;
|
|
582
|
+
$[100] = hasOptions;
|
|
583
|
+
$[101] = t15;
|
|
584
|
+
} else t15 = $[101];
|
|
581
585
|
const findOptionKey = t15;
|
|
582
586
|
let t16;
|
|
583
|
-
if ($[
|
|
587
|
+
if ($[102] !== findOptionKey || $[103] !== normalizeTag) {
|
|
584
588
|
t16 = (text_1) => {
|
|
585
589
|
const optionKey = findOptionKey(text_1);
|
|
586
590
|
if (optionKey != null || !normalizeTag) return {
|
|
@@ -593,13 +597,13 @@ function TagInput(props, ref) {
|
|
|
593
597
|
typed
|
|
594
598
|
};
|
|
595
599
|
};
|
|
596
|
-
$[
|
|
597
|
-
$[
|
|
598
|
-
$[
|
|
599
|
-
} else t16 = $[
|
|
600
|
+
$[102] = findOptionKey;
|
|
601
|
+
$[103] = normalizeTag;
|
|
602
|
+
$[104] = t16;
|
|
603
|
+
} else t16 = $[104];
|
|
600
604
|
const resolveTypedText = t16;
|
|
601
605
|
let t17;
|
|
602
|
-
if ($[
|
|
606
|
+
if ($[105] !== normalizeTag || $[106] !== resolveTypedText) {
|
|
603
607
|
t17 = (part, t18) => {
|
|
604
608
|
const source = t18 === void 0 ? "text" : t18;
|
|
605
609
|
if (source === "text") return resolveTypedText(part);
|
|
@@ -612,10 +616,10 @@ function TagInput(props, ref) {
|
|
|
612
616
|
typed: normalizeTag ? normalizeTag(part).trim() : part
|
|
613
617
|
};
|
|
614
618
|
};
|
|
615
|
-
$[
|
|
616
|
-
$[
|
|
617
|
-
$[
|
|
618
|
-
} else t17 = $[
|
|
619
|
+
$[105] = normalizeTag;
|
|
620
|
+
$[106] = resolveTypedText;
|
|
621
|
+
$[107] = t17;
|
|
622
|
+
} else t17 = $[107];
|
|
619
623
|
const resolvePart = t17;
|
|
620
624
|
const termOptionKey = term ? resolveTypedText(term).optionKey : null;
|
|
621
625
|
const optionFilterFn = (nodes) => {
|
|
@@ -625,10 +629,10 @@ function TagInput(props, ref) {
|
|
|
625
629
|
const visibleOptionKeys = [];
|
|
626
630
|
if (hasOptions) collectVisibleKeys(optionFilterFn(collection), visibleOptionKeys, disabledKeys ? new Set(disabledKeys) : void 0);
|
|
627
631
|
let t18;
|
|
628
|
-
if ($[
|
|
632
|
+
if ($[108] === Symbol.for("react.memo_cache_sentinel")) {
|
|
629
633
|
t18 = [];
|
|
630
|
-
$[
|
|
631
|
-
} else t18 = $[
|
|
634
|
+
$[108] = t18;
|
|
635
|
+
} else t18 = $[108];
|
|
632
636
|
const [unpickedCustomValues, setUnpickedCustomValues] = useState(t18);
|
|
633
637
|
const customValueKeys = hasOptions && allowsCustomValue ? [...new Set([...uniqueValues, ...unpickedCustomValues].filter((value_0) => getOption(value_0) == null && !knownLabels.has(value_0)))].sort(compareText) : [];
|
|
634
638
|
const matchesTerm = typeof filter === "function" ? filter : contains;
|
|
@@ -650,26 +654,26 @@ function TagInput(props, ref) {
|
|
|
650
654
|
const notifiedOpenRef = useRef(false);
|
|
651
655
|
let t19;
|
|
652
656
|
let t20;
|
|
653
|
-
if ($[
|
|
657
|
+
if ($[109] !== onOpenChange || $[110] !== shouldShowPopover) {
|
|
654
658
|
t19 = () => {
|
|
655
659
|
if (notifiedOpenRef.current === shouldShowPopover) return;
|
|
656
660
|
notifiedOpenRef.current = shouldShowPopover;
|
|
657
661
|
onOpenChange?.(shouldShowPopover);
|
|
658
662
|
};
|
|
659
663
|
t20 = [shouldShowPopover, onOpenChange];
|
|
660
|
-
$[
|
|
661
|
-
$[
|
|
662
|
-
$[
|
|
663
|
-
$[
|
|
664
|
+
$[109] = onOpenChange;
|
|
665
|
+
$[110] = shouldShowPopover;
|
|
666
|
+
$[111] = t19;
|
|
667
|
+
$[112] = t20;
|
|
664
668
|
} else {
|
|
665
|
-
t19 = $[
|
|
666
|
-
t20 = $[
|
|
669
|
+
t19 = $[111];
|
|
670
|
+
t20 = $[112];
|
|
667
671
|
}
|
|
668
672
|
useEffect(t19, t20);
|
|
669
673
|
const [activeOption, setActiveOption] = useState(null);
|
|
670
674
|
const activeOptionKey = activeOption?.key ?? null;
|
|
671
675
|
let t21;
|
|
672
|
-
if ($[
|
|
676
|
+
if ($[113] !== setActiveOption) {
|
|
673
677
|
t21 = (key_5, source_0, forTerm) => {
|
|
674
678
|
const listState = listStateRef.current;
|
|
675
679
|
if (!listState || key_5 == null) return;
|
|
@@ -681,9 +685,9 @@ function TagInput(props, ref) {
|
|
|
681
685
|
source: source_0
|
|
682
686
|
});
|
|
683
687
|
};
|
|
684
|
-
$[
|
|
685
|
-
$[
|
|
686
|
-
} else t21 = $[
|
|
688
|
+
$[113] = setActiveOption;
|
|
689
|
+
$[114] = t21;
|
|
690
|
+
} else t21 = $[114];
|
|
687
691
|
const moveVirtualFocus = useEvent(t21);
|
|
688
692
|
const [popoverMinWidth, setPopoverMinWidth] = useState();
|
|
689
693
|
let exactOptionKey = termOptionKey;
|
|
@@ -697,7 +701,7 @@ function TagInput(props, ref) {
|
|
|
697
701
|
if (preferredOptionKey == null) preferredOptionKey = visibleTargetKeys[0] ?? null;
|
|
698
702
|
const focusTermRef = useRef(null);
|
|
699
703
|
let t22;
|
|
700
|
-
if ($[
|
|
704
|
+
if ($[115] !== customTerm || $[116] !== moveVirtualFocus || $[117] !== preferredOptionKey || $[118] !== setActiveOption || $[119] !== setPopoverMinWidth || $[120] !== shouldShowPopover || $[121] !== term || $[122] !== visibleOptionsSignature || $[123] !== wrapperRef) {
|
|
701
705
|
t22 = () => {
|
|
702
706
|
if (!shouldShowPopover) {
|
|
703
707
|
focusTermRef.current = null;
|
|
@@ -734,19 +738,19 @@ function TagInput(props, ref) {
|
|
|
734
738
|
isCancelled = true;
|
|
735
739
|
};
|
|
736
740
|
};
|
|
737
|
-
$[
|
|
738
|
-
$[
|
|
739
|
-
$[
|
|
740
|
-
$[
|
|
741
|
-
$[
|
|
742
|
-
$[
|
|
743
|
-
$[
|
|
744
|
-
$[
|
|
745
|
-
$[
|
|
746
|
-
$[
|
|
747
|
-
} else t22 = $[
|
|
741
|
+
$[115] = customTerm;
|
|
742
|
+
$[116] = moveVirtualFocus;
|
|
743
|
+
$[117] = preferredOptionKey;
|
|
744
|
+
$[118] = setActiveOption;
|
|
745
|
+
$[119] = setPopoverMinWidth;
|
|
746
|
+
$[120] = shouldShowPopover;
|
|
747
|
+
$[121] = term;
|
|
748
|
+
$[122] = visibleOptionsSignature;
|
|
749
|
+
$[123] = wrapperRef;
|
|
750
|
+
$[124] = t22;
|
|
751
|
+
} else t22 = $[124];
|
|
748
752
|
let t23;
|
|
749
|
-
if ($[
|
|
753
|
+
if ($[125] !== customTerm || $[126] !== moveVirtualFocus || $[127] !== preferredOptionKey || $[128] !== shouldShowPopover || $[129] !== term || $[130] !== visibleOptionsSignature || $[131] !== wrapperRef) {
|
|
750
754
|
t23 = [
|
|
751
755
|
shouldShowPopover,
|
|
752
756
|
visibleOptionsSignature,
|
|
@@ -756,41 +760,41 @@ function TagInput(props, ref) {
|
|
|
756
760
|
moveVirtualFocus,
|
|
757
761
|
wrapperRef
|
|
758
762
|
];
|
|
759
|
-
$[
|
|
760
|
-
$[
|
|
761
|
-
$[
|
|
762
|
-
$[
|
|
763
|
-
$[
|
|
764
|
-
$[
|
|
765
|
-
$[
|
|
766
|
-
$[
|
|
767
|
-
} else t23 = $[
|
|
763
|
+
$[125] = customTerm;
|
|
764
|
+
$[126] = moveVirtualFocus;
|
|
765
|
+
$[127] = preferredOptionKey;
|
|
766
|
+
$[128] = shouldShowPopover;
|
|
767
|
+
$[129] = term;
|
|
768
|
+
$[130] = visibleOptionsSignature;
|
|
769
|
+
$[131] = wrapperRef;
|
|
770
|
+
$[132] = t23;
|
|
771
|
+
} else t23 = $[132];
|
|
768
772
|
useLayoutEffect(t22, t23);
|
|
769
773
|
let t24;
|
|
770
|
-
if ($[
|
|
774
|
+
if ($[133] !== setDraftState || $[134] !== setIsFilterActive) {
|
|
771
775
|
t24 = (next_0) => {
|
|
772
776
|
setDraftState(next_0);
|
|
773
777
|
setIsFilterActive(!!next_0.trim());
|
|
774
778
|
};
|
|
775
|
-
$[
|
|
776
|
-
$[
|
|
777
|
-
$[
|
|
778
|
-
} else t24 = $[
|
|
779
|
+
$[133] = setDraftState;
|
|
780
|
+
$[134] = setIsFilterActive;
|
|
781
|
+
$[135] = t24;
|
|
782
|
+
} else t24 = $[135];
|
|
779
783
|
const setDraft = useEvent(t24);
|
|
780
784
|
let t25;
|
|
781
|
-
if ($[
|
|
785
|
+
if ($[136] !== setAnnouncement) {
|
|
782
786
|
t25 = (text_2) => {
|
|
783
787
|
setAnnouncement((prev_0) => ({
|
|
784
788
|
id: prev_0.id + 1,
|
|
785
789
|
text: text_2
|
|
786
790
|
}));
|
|
787
791
|
};
|
|
788
|
-
$[
|
|
789
|
-
$[
|
|
790
|
-
} else t25 = $[
|
|
792
|
+
$[136] = setAnnouncement;
|
|
793
|
+
$[137] = t25;
|
|
794
|
+
} else t25 = $[137];
|
|
791
795
|
const announce = useEvent(t25);
|
|
792
796
|
let t26;
|
|
793
|
-
if ($[
|
|
797
|
+
if ($[138] !== maxTags || $[139] !== t) {
|
|
794
798
|
t26 = (rejection) => {
|
|
795
799
|
if (rejection.message) return rejection.message;
|
|
796
800
|
switch (rejection.reason) {
|
|
@@ -801,17 +805,17 @@ function TagInput(props, ref) {
|
|
|
801
805
|
default: return t("tagInput.invalidValue", "\"{{value}}\" is not a valid value", { value: rejection.text });
|
|
802
806
|
}
|
|
803
807
|
};
|
|
804
|
-
$[
|
|
805
|
-
$[
|
|
806
|
-
$[
|
|
807
|
-
} else t26 = $[
|
|
808
|
+
$[138] = maxTags;
|
|
809
|
+
$[139] = t;
|
|
810
|
+
$[140] = t26;
|
|
811
|
+
} else t26 = $[140];
|
|
808
812
|
const rejectionMessage = useEvent(t26);
|
|
809
813
|
let t27;
|
|
810
|
-
if ($[
|
|
814
|
+
if ($[141] !== delimiters) {
|
|
811
815
|
t27 = delimiters.find(_temp5);
|
|
812
|
-
$[
|
|
813
|
-
$[
|
|
814
|
-
} else t27 = $[
|
|
816
|
+
$[141] = delimiters;
|
|
817
|
+
$[142] = t27;
|
|
818
|
+
} else t27 = $[142];
|
|
815
819
|
const joinDelimiter = t27;
|
|
816
820
|
const joiner = joinDelimiter ? `${joinDelimiter} ` : " ";
|
|
817
821
|
const hasFieldMessage = !!label || !!props.forceField;
|
|
@@ -882,27 +886,27 @@ function TagInput(props, ref) {
|
|
|
882
886
|
return kept.map(_temp7).join(joiner);
|
|
883
887
|
});
|
|
884
888
|
let t28;
|
|
885
|
-
if ($[
|
|
889
|
+
if ($[143] !== commitParts || $[144] !== delimiters || $[145] !== draft || $[146] !== setDraft) {
|
|
886
890
|
t28 = () => {
|
|
887
891
|
const rest = commitParts(splitTagText(draft, delimiters));
|
|
888
892
|
setDraft(rest);
|
|
889
893
|
return rest;
|
|
890
894
|
};
|
|
891
|
-
$[
|
|
892
|
-
$[
|
|
893
|
-
$[
|
|
894
|
-
$[
|
|
895
|
-
$[
|
|
896
|
-
} else t28 = $[
|
|
895
|
+
$[143] = commitParts;
|
|
896
|
+
$[144] = delimiters;
|
|
897
|
+
$[145] = draft;
|
|
898
|
+
$[146] = setDraft;
|
|
899
|
+
$[147] = t28;
|
|
900
|
+
} else t28 = $[147];
|
|
897
901
|
const commitDraft = useEvent(t28);
|
|
898
902
|
let t29;
|
|
899
|
-
if ($[
|
|
903
|
+
if ($[148] === Symbol.for("react.memo_cache_sentinel")) {
|
|
900
904
|
t29 = () => {
|
|
901
905
|
const rows = tagListRef.current?.querySelectorAll("[role=\"row\"]:not([aria-disabled=\"true\"])");
|
|
902
906
|
rows?.[rows.length - 1]?.focus();
|
|
903
907
|
};
|
|
904
|
-
$[
|
|
905
|
-
} else t29 = $[
|
|
908
|
+
$[148] = t29;
|
|
909
|
+
} else t29 = $[148];
|
|
906
910
|
const focusLastTag = useEvent(t29);
|
|
907
911
|
const removeValues = useEvent((requested) => {
|
|
908
912
|
const keys_0 = requested.filter((key_8) => !isTagLocked(key_8));
|
|
@@ -1030,7 +1034,7 @@ function TagInput(props, ref) {
|
|
|
1030
1034
|
if (hasOptions && popoverTrigger !== "manual" && nextDraft.trim()) setIsPopoverOpen(true);
|
|
1031
1035
|
});
|
|
1032
1036
|
let t30;
|
|
1033
|
-
if ($[
|
|
1037
|
+
if ($[149] !== commitParts || $[150] !== delimiters || $[151] !== draft || $[152] !== isInteractive || $[153] !== setDraft || $[154] !== setTagError) {
|
|
1034
1038
|
t30 = (e_0) => {
|
|
1035
1039
|
if (!isInteractive) return;
|
|
1036
1040
|
const pasted = e_0.clipboardData.getData("text");
|
|
@@ -1042,17 +1046,17 @@ function TagInput(props, ref) {
|
|
|
1042
1046
|
setTagError(null);
|
|
1043
1047
|
setDraft(commitParts(splitTagText(`${draft.slice(0, start_0)}\n${pasted}\n${draft.slice(end_0)}`, delimiters)));
|
|
1044
1048
|
};
|
|
1045
|
-
$[
|
|
1046
|
-
$[
|
|
1047
|
-
$[
|
|
1048
|
-
$[
|
|
1049
|
-
$[
|
|
1050
|
-
$[
|
|
1051
|
-
$[
|
|
1052
|
-
} else t30 = $[
|
|
1049
|
+
$[149] = commitParts;
|
|
1050
|
+
$[150] = delimiters;
|
|
1051
|
+
$[151] = draft;
|
|
1052
|
+
$[152] = isInteractive;
|
|
1053
|
+
$[153] = setDraft;
|
|
1054
|
+
$[154] = setTagError;
|
|
1055
|
+
$[155] = t30;
|
|
1056
|
+
} else t30 = $[155];
|
|
1053
1057
|
const handlePaste = useEvent(t30);
|
|
1054
1058
|
let t31;
|
|
1055
|
-
if ($[
|
|
1059
|
+
if ($[156] !== allowsCustomValue || $[157] !== commitDraft || $[158] !== draft || $[159] !== hasOptions || $[160] !== isInteractive || $[161] !== setDraft || $[162] !== setTagError || $[163] !== shouldCommitOnBlur || $[164] !== term || $[165] !== termOptionKey) {
|
|
1056
1060
|
t31 = () => {
|
|
1057
1061
|
if (!term) return "";
|
|
1058
1062
|
if (!shouldCommitOnBlur || !isInteractive) return draft;
|
|
@@ -1063,31 +1067,31 @@ function TagInput(props, ref) {
|
|
|
1063
1067
|
}
|
|
1064
1068
|
return commitDraft();
|
|
1065
1069
|
};
|
|
1066
|
-
$[
|
|
1067
|
-
$[
|
|
1068
|
-
$[
|
|
1069
|
-
$[
|
|
1070
|
-
$[
|
|
1071
|
-
$[
|
|
1072
|
-
$[
|
|
1073
|
-
$[
|
|
1074
|
-
$[
|
|
1075
|
-
$[
|
|
1076
|
-
$[
|
|
1077
|
-
} else t31 = $[
|
|
1070
|
+
$[156] = allowsCustomValue;
|
|
1071
|
+
$[157] = commitDraft;
|
|
1072
|
+
$[158] = draft;
|
|
1073
|
+
$[159] = hasOptions;
|
|
1074
|
+
$[160] = isInteractive;
|
|
1075
|
+
$[161] = setDraft;
|
|
1076
|
+
$[162] = setTagError;
|
|
1077
|
+
$[163] = shouldCommitOnBlur;
|
|
1078
|
+
$[164] = term;
|
|
1079
|
+
$[165] = termOptionKey;
|
|
1080
|
+
$[166] = t31;
|
|
1081
|
+
} else t31 = $[166];
|
|
1078
1082
|
const settleDraft = useEvent(t31);
|
|
1079
1083
|
const pendingClearRef = useRef(null);
|
|
1080
1084
|
let t32;
|
|
1081
|
-
if ($[
|
|
1085
|
+
if ($[167] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1082
1086
|
t32 = () => {
|
|
1083
1087
|
pendingClearRef.current?.();
|
|
1084
1088
|
pendingClearRef.current = null;
|
|
1085
1089
|
};
|
|
1086
|
-
$[
|
|
1087
|
-
} else t32 = $[
|
|
1090
|
+
$[167] = t32;
|
|
1091
|
+
} else t32 = $[167];
|
|
1088
1092
|
const cancelPendingClear = t32;
|
|
1089
1093
|
let t33;
|
|
1090
|
-
if ($[
|
|
1094
|
+
if ($[168] !== setTagError) {
|
|
1091
1095
|
t33 = () => {
|
|
1092
1096
|
cancelPendingClear();
|
|
1093
1097
|
let timer;
|
|
@@ -1106,34 +1110,34 @@ function TagInput(props, ref) {
|
|
|
1106
1110
|
clearTimeout(timer);
|
|
1107
1111
|
};
|
|
1108
1112
|
};
|
|
1109
|
-
$[
|
|
1110
|
-
$[
|
|
1111
|
-
} else t33 = $[
|
|
1113
|
+
$[168] = setTagError;
|
|
1114
|
+
$[169] = t33;
|
|
1115
|
+
} else t33 = $[169];
|
|
1112
1116
|
const clearTagErrorAfterPress = t33;
|
|
1113
1117
|
let t34;
|
|
1114
1118
|
let t35;
|
|
1115
|
-
if ($[
|
|
1119
|
+
if ($[170] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1116
1120
|
t34 = () => () => pendingClearRef.current?.();
|
|
1117
1121
|
t35 = [];
|
|
1118
|
-
$[
|
|
1119
|
-
$[
|
|
1122
|
+
$[170] = t34;
|
|
1123
|
+
$[171] = t35;
|
|
1120
1124
|
} else {
|
|
1121
|
-
t34 = $[
|
|
1122
|
-
t35 = $[
|
|
1125
|
+
t34 = $[170];
|
|
1126
|
+
t35 = $[171];
|
|
1123
1127
|
}
|
|
1124
1128
|
useEffect(t34, t35);
|
|
1125
1129
|
let t36;
|
|
1126
|
-
if ($[
|
|
1130
|
+
if ($[172] !== onFocus) {
|
|
1127
1131
|
t36 = () => {
|
|
1128
1132
|
cancelPendingClear();
|
|
1129
1133
|
onFocus?.();
|
|
1130
1134
|
};
|
|
1131
|
-
$[
|
|
1132
|
-
$[
|
|
1133
|
-
} else t36 = $[
|
|
1135
|
+
$[172] = onFocus;
|
|
1136
|
+
$[173] = t36;
|
|
1137
|
+
} else t36 = $[173];
|
|
1134
1138
|
const handleCompositeFocus = useEvent(t36);
|
|
1135
1139
|
let t37;
|
|
1136
|
-
if ($[
|
|
1140
|
+
if ($[174] !== clearTagErrorAfterPress || $[175] !== onBlur || $[176] !== setIsPopoverOpen || $[177] !== setTagError || $[178] !== setUnpickedCustomValues || $[179] !== settleDraft || $[180] !== tagError) {
|
|
1137
1141
|
t37 = (t38) => {
|
|
1138
1142
|
const { isPressing } = t38;
|
|
1139
1143
|
setIsPopoverOpen(false);
|
|
@@ -1143,20 +1147,20 @@ function TagInput(props, ref) {
|
|
|
1143
1147
|
else setTagError(null);
|
|
1144
1148
|
onBlur?.();
|
|
1145
1149
|
};
|
|
1146
|
-
$[
|
|
1147
|
-
$[
|
|
1148
|
-
$[
|
|
1149
|
-
$[
|
|
1150
|
-
$[
|
|
1151
|
-
$[
|
|
1152
|
-
$[
|
|
1153
|
-
$[
|
|
1154
|
-
} else t37 = $[
|
|
1150
|
+
$[174] = clearTagErrorAfterPress;
|
|
1151
|
+
$[175] = onBlur;
|
|
1152
|
+
$[176] = setIsPopoverOpen;
|
|
1153
|
+
$[177] = setTagError;
|
|
1154
|
+
$[178] = setUnpickedCustomValues;
|
|
1155
|
+
$[179] = settleDraft;
|
|
1156
|
+
$[180] = tagError;
|
|
1157
|
+
$[181] = t37;
|
|
1158
|
+
} else t37 = $[181];
|
|
1155
1159
|
const handleCompositeBlur = useEvent(t37);
|
|
1156
1160
|
const t38 = rootRef;
|
|
1157
1161
|
const t39 = popoverRef;
|
|
1158
1162
|
let t40;
|
|
1159
|
-
if ($[
|
|
1163
|
+
if ($[182] !== handleCompositeBlur || $[183] !== handleCompositeFocus || $[184] !== isDisabled || $[185] !== t38 || $[186] !== t39) {
|
|
1160
1164
|
t40 = {
|
|
1161
1165
|
wrapperRef: t38,
|
|
1162
1166
|
popoverRef: t39,
|
|
@@ -1164,16 +1168,16 @@ function TagInput(props, ref) {
|
|
|
1164
1168
|
onBlur: handleCompositeBlur,
|
|
1165
1169
|
isDisabled
|
|
1166
1170
|
};
|
|
1167
|
-
$[
|
|
1168
|
-
$[
|
|
1169
|
-
$[
|
|
1170
|
-
$[
|
|
1171
|
-
$[
|
|
1172
|
-
$[
|
|
1173
|
-
} else t40 = $[
|
|
1171
|
+
$[182] = handleCompositeBlur;
|
|
1172
|
+
$[183] = handleCompositeFocus;
|
|
1173
|
+
$[184] = isDisabled;
|
|
1174
|
+
$[185] = t38;
|
|
1175
|
+
$[186] = t39;
|
|
1176
|
+
$[187] = t40;
|
|
1177
|
+
} else t40 = $[187];
|
|
1174
1178
|
const { compositeFocusProps } = useCompositeFocus(t40);
|
|
1175
1179
|
let t41;
|
|
1176
|
-
if ($[
|
|
1180
|
+
if ($[188] !== rootRef || $[189] !== setIsPopoverOpen || $[190] !== settleDraft) {
|
|
1177
1181
|
t41 = (e_1) => {
|
|
1178
1182
|
const isTabbing = isTabbingRef.current;
|
|
1179
1183
|
const next_4 = e_1.relatedTarget;
|
|
@@ -1182,23 +1186,23 @@ function TagInput(props, ref) {
|
|
|
1182
1186
|
setIsPopoverOpen(false);
|
|
1183
1187
|
settleDraft();
|
|
1184
1188
|
};
|
|
1185
|
-
$[
|
|
1186
|
-
$[
|
|
1187
|
-
$[
|
|
1188
|
-
$[
|
|
1189
|
-
} else t41 = $[
|
|
1189
|
+
$[188] = rootRef;
|
|
1190
|
+
$[189] = setIsPopoverOpen;
|
|
1191
|
+
$[190] = settleDraft;
|
|
1192
|
+
$[191] = t41;
|
|
1193
|
+
} else t41 = $[191];
|
|
1190
1194
|
const handleInputBlur = useEvent(t41);
|
|
1191
1195
|
let t42;
|
|
1192
|
-
if ($[
|
|
1196
|
+
if ($[192] !== hasOptions || $[193] !== isInteractive || $[194] !== popoverTrigger || $[195] !== setIsPopoverOpen) {
|
|
1193
1197
|
t42 = () => {
|
|
1194
1198
|
if (hasOptions && popoverTrigger === "focus" && isInteractive) setIsPopoverOpen(true);
|
|
1195
1199
|
};
|
|
1196
|
-
$[
|
|
1197
|
-
$[
|
|
1198
|
-
$[
|
|
1199
|
-
$[
|
|
1200
|
-
$[
|
|
1201
|
-
} else t42 = $[
|
|
1200
|
+
$[192] = hasOptions;
|
|
1201
|
+
$[193] = isInteractive;
|
|
1202
|
+
$[194] = popoverTrigger;
|
|
1203
|
+
$[195] = setIsPopoverOpen;
|
|
1204
|
+
$[196] = t42;
|
|
1205
|
+
} else t42 = $[196];
|
|
1202
1206
|
const handleInputFocus = useEvent(t42);
|
|
1203
1207
|
const tags = uniqueValues.map((value_5) => {
|
|
1204
1208
|
const ownProps = tagProps?.(value_5);
|
|
@@ -1218,7 +1222,7 @@ function TagInput(props, ref) {
|
|
|
1218
1222
|
const lockedKeys = tags.filter(_temp0).map(_temp1);
|
|
1219
1223
|
const optionDisabledKeys = lockedKeys.length ? [...disabledKeySet, ...lockedKeys] : disabledKeys;
|
|
1220
1224
|
let t43;
|
|
1221
|
-
if ($[
|
|
1225
|
+
if ($[197] !== autoFocus || $[198] !== draft || $[199] !== effectiveIsInvalid || $[200] !== handleInputChange || $[201] !== id || $[202] !== isDisabled || $[203] !== isReadOnly || $[204] !== isRequired || $[205] !== label || $[206] !== otherProps || $[207] !== placeholder) {
|
|
1222
1226
|
t43 = {
|
|
1223
1227
|
...otherProps,
|
|
1224
1228
|
id,
|
|
@@ -1232,19 +1236,19 @@ function TagInput(props, ref) {
|
|
|
1232
1236
|
autoFocus,
|
|
1233
1237
|
onChange: handleInputChange
|
|
1234
1238
|
};
|
|
1235
|
-
$[
|
|
1236
|
-
$[
|
|
1237
|
-
$[
|
|
1238
|
-
$[
|
|
1239
|
-
$[
|
|
1240
|
-
$[
|
|
1241
|
-
$[
|
|
1242
|
-
$[
|
|
1243
|
-
$[
|
|
1244
|
-
$[
|
|
1245
|
-
$[
|
|
1246
|
-
$[
|
|
1247
|
-
} else t43 = $[
|
|
1239
|
+
$[197] = autoFocus;
|
|
1240
|
+
$[198] = draft;
|
|
1241
|
+
$[199] = effectiveIsInvalid;
|
|
1242
|
+
$[200] = handleInputChange;
|
|
1243
|
+
$[201] = id;
|
|
1244
|
+
$[202] = isDisabled;
|
|
1245
|
+
$[203] = isReadOnly;
|
|
1246
|
+
$[204] = isRequired;
|
|
1247
|
+
$[205] = label;
|
|
1248
|
+
$[206] = otherProps;
|
|
1249
|
+
$[207] = placeholder;
|
|
1250
|
+
$[208] = t43;
|
|
1251
|
+
} else t43 = $[208];
|
|
1248
1252
|
const { labelProps, inputProps } = useTextField(t43, inputRef);
|
|
1249
1253
|
const labelId = label ? labelProps.id : void 0;
|
|
1250
1254
|
const describedBy = [];
|
|
@@ -1268,23 +1272,23 @@ function TagInput(props, ref) {
|
|
|
1268
1272
|
"aria-activedescendant": shouldShowPopover && activeOptionKey != null ? getListBoxOptionId(listBoxId, activeOptionKey) : void 0
|
|
1269
1273
|
} : null);
|
|
1270
1274
|
let t44;
|
|
1271
|
-
if ($[
|
|
1275
|
+
if ($[209] !== hasResults || $[210] !== inputRef || $[211] !== setIsFilterActive || $[212] !== setIsPopoverOpen || $[213] !== shouldShowPopover) {
|
|
1272
1276
|
t44 = () => {
|
|
1273
1277
|
const willOpen = !shouldShowPopover;
|
|
1274
1278
|
if (willOpen && !hasResults) setIsFilterActive(false);
|
|
1275
1279
|
setIsPopoverOpen(willOpen);
|
|
1276
1280
|
inputRef.current?.focus();
|
|
1277
1281
|
};
|
|
1278
|
-
$[
|
|
1279
|
-
$[
|
|
1280
|
-
$[
|
|
1281
|
-
$[
|
|
1282
|
-
$[
|
|
1283
|
-
$[
|
|
1284
|
-
} else t44 = $[
|
|
1282
|
+
$[209] = hasResults;
|
|
1283
|
+
$[210] = inputRef;
|
|
1284
|
+
$[211] = setIsFilterActive;
|
|
1285
|
+
$[212] = setIsPopoverOpen;
|
|
1286
|
+
$[213] = shouldShowPopover;
|
|
1287
|
+
$[214] = t44;
|
|
1288
|
+
} else t44 = $[214];
|
|
1285
1289
|
const handleTriggerPress = useEvent(t44);
|
|
1286
1290
|
let t45;
|
|
1287
|
-
if ($[
|
|
1291
|
+
if ($[215] !== handleTriggerPress || $[216] !== hasOptions || $[217] !== hideTrigger || $[218] !== isInteractive || $[219] !== labelId || $[220] !== shouldShowPopover || $[221] !== size || $[222] !== t || $[223] !== triggerId || $[224] !== triggerStyles) {
|
|
1288
1292
|
t45 = hasOptions && !hideTrigger ? /* @__PURE__ */ jsx(ItemAction, {
|
|
1289
1293
|
"data-popover-trigger": true,
|
|
1290
1294
|
id: triggerId,
|
|
@@ -1301,21 +1305,21 @@ function TagInput(props, ref) {
|
|
|
1301
1305
|
"aria-labelledby": labelId ? `${triggerId} ${labelId}` : void 0,
|
|
1302
1306
|
onPress: handleTriggerPress
|
|
1303
1307
|
}) : null;
|
|
1304
|
-
$[
|
|
1305
|
-
$[
|
|
1306
|
-
$[
|
|
1307
|
-
$[
|
|
1308
|
-
$[
|
|
1309
|
-
$[
|
|
1310
|
-
$[
|
|
1311
|
-
$[
|
|
1312
|
-
$[
|
|
1313
|
-
$[
|
|
1314
|
-
$[
|
|
1315
|
-
} else t45 = $[
|
|
1308
|
+
$[215] = handleTriggerPress;
|
|
1309
|
+
$[216] = hasOptions;
|
|
1310
|
+
$[217] = hideTrigger;
|
|
1311
|
+
$[218] = isInteractive;
|
|
1312
|
+
$[219] = labelId;
|
|
1313
|
+
$[220] = shouldShowPopover;
|
|
1314
|
+
$[221] = size;
|
|
1315
|
+
$[222] = t;
|
|
1316
|
+
$[223] = triggerId;
|
|
1317
|
+
$[224] = triggerStyles;
|
|
1318
|
+
$[225] = t45;
|
|
1319
|
+
} else t45 = $[225];
|
|
1316
1320
|
const trigger = t45;
|
|
1317
1321
|
let t46;
|
|
1318
|
-
if ($[
|
|
1322
|
+
if ($[226] !== inputRef || $[227] !== onClear || $[228] !== setDraft || $[229] !== setIsPopoverOpen || $[230] !== setTagError) {
|
|
1319
1323
|
t46 = () => {
|
|
1320
1324
|
inputRef.current?.focus();
|
|
1321
1325
|
setDraft("");
|
|
@@ -1323,17 +1327,17 @@ function TagInput(props, ref) {
|
|
|
1323
1327
|
setIsPopoverOpen(false);
|
|
1324
1328
|
onClear?.();
|
|
1325
1329
|
};
|
|
1326
|
-
$[
|
|
1327
|
-
$[
|
|
1328
|
-
$[
|
|
1329
|
-
$[
|
|
1330
|
-
$[
|
|
1331
|
-
$[
|
|
1332
|
-
} else t46 = $[
|
|
1330
|
+
$[226] = inputRef;
|
|
1331
|
+
$[227] = onClear;
|
|
1332
|
+
$[228] = setDraft;
|
|
1333
|
+
$[229] = setIsPopoverOpen;
|
|
1334
|
+
$[230] = setTagError;
|
|
1335
|
+
$[231] = t46;
|
|
1336
|
+
} else t46 = $[231];
|
|
1333
1337
|
const clearText = useEvent(t46);
|
|
1334
1338
|
const canClear = !!isClearable && isInteractive && draft !== "";
|
|
1335
1339
|
let t47;
|
|
1336
|
-
if ($[
|
|
1340
|
+
if ($[232] !== canClear || $[233] !== clearId || $[234] !== clearText || $[235] !== labelId || $[236] !== size || $[237] !== t) {
|
|
1337
1341
|
t47 = canClear ? /* @__PURE__ */ jsx(ItemAction, {
|
|
1338
1342
|
id: clearId,
|
|
1339
1343
|
qa: "TagInputClearButton",
|
|
@@ -1344,28 +1348,28 @@ function TagInput(props, ref) {
|
|
|
1344
1348
|
"aria-labelledby": labelId ? `${clearId} ${labelId}` : void 0,
|
|
1345
1349
|
onPress: clearText
|
|
1346
1350
|
}) : null;
|
|
1347
|
-
$[
|
|
1348
|
-
$[
|
|
1349
|
-
$[
|
|
1350
|
-
$[
|
|
1351
|
-
$[
|
|
1352
|
-
$[
|
|
1353
|
-
$[
|
|
1354
|
-
} else t47 = $[
|
|
1351
|
+
$[232] = canClear;
|
|
1352
|
+
$[233] = clearId;
|
|
1353
|
+
$[234] = clearText;
|
|
1354
|
+
$[235] = labelId;
|
|
1355
|
+
$[236] = size;
|
|
1356
|
+
$[237] = t;
|
|
1357
|
+
$[238] = t47;
|
|
1358
|
+
} else t47 = $[238];
|
|
1355
1359
|
const clearButton = t47;
|
|
1356
1360
|
const hasActions = clearButton != null || trigger != null;
|
|
1357
1361
|
const T0 = TagInputElement;
|
|
1358
1362
|
const t48 = qa || "TagInput";
|
|
1359
1363
|
let t49;
|
|
1360
|
-
if ($[
|
|
1364
|
+
if ($[239] !== clearButton || $[240] !== hasActions || $[241] !== trigger) {
|
|
1361
1365
|
t49 = hasActions ? /* @__PURE__ */ jsxs(Fragment$1, { children: [clearButton, trigger] }) : null;
|
|
1362
|
-
$[
|
|
1363
|
-
$[
|
|
1364
|
-
$[
|
|
1365
|
-
$[
|
|
1366
|
-
} else t49 = $[
|
|
1366
|
+
$[239] = clearButton;
|
|
1367
|
+
$[240] = hasActions;
|
|
1368
|
+
$[241] = trigger;
|
|
1369
|
+
$[242] = t49;
|
|
1370
|
+
} else t49 = $[242];
|
|
1367
1371
|
let t50;
|
|
1368
|
-
if ($[
|
|
1372
|
+
if ($[243] !== autoFocus || $[244] !== effectiveIsInvalid || $[245] !== icon || $[246] !== inputRef || $[247] !== inputStyles || $[248] !== isDisabled || $[249] !== isLoading || $[250] !== isValid || $[251] !== mods || $[252] !== prefix || $[253] !== size || $[254] !== suffix || $[255] !== suffixPosition || $[256] !== t48 || $[257] !== t49 || $[258] !== tagInputProps || $[259] !== wrapperRef || $[260] !== wrapperStyles) {
|
|
1369
1373
|
t50 = /* @__PURE__ */ jsx(TextInputBase, {
|
|
1370
1374
|
qa: t48,
|
|
1371
1375
|
inputRef,
|
|
@@ -1386,26 +1390,26 @@ function TagInput(props, ref) {
|
|
|
1386
1390
|
styles: wrapperStyles,
|
|
1387
1391
|
inputStyles
|
|
1388
1392
|
});
|
|
1389
|
-
$[
|
|
1390
|
-
$[
|
|
1391
|
-
$[
|
|
1392
|
-
$[
|
|
1393
|
-
$[
|
|
1394
|
-
$[
|
|
1395
|
-
$[
|
|
1396
|
-
$[
|
|
1397
|
-
$[
|
|
1398
|
-
$[
|
|
1399
|
-
$[
|
|
1400
|
-
$[
|
|
1401
|
-
$[
|
|
1402
|
-
$[
|
|
1403
|
-
$[
|
|
1404
|
-
$[
|
|
1405
|
-
$[
|
|
1406
|
-
$[
|
|
1407
|
-
$[
|
|
1408
|
-
} else t50 = $[
|
|
1393
|
+
$[243] = autoFocus;
|
|
1394
|
+
$[244] = effectiveIsInvalid;
|
|
1395
|
+
$[245] = icon;
|
|
1396
|
+
$[246] = inputRef;
|
|
1397
|
+
$[247] = inputStyles;
|
|
1398
|
+
$[248] = isDisabled;
|
|
1399
|
+
$[249] = isLoading;
|
|
1400
|
+
$[250] = isValid;
|
|
1401
|
+
$[251] = mods;
|
|
1402
|
+
$[252] = prefix;
|
|
1403
|
+
$[253] = size;
|
|
1404
|
+
$[254] = suffix;
|
|
1405
|
+
$[255] = suffixPosition;
|
|
1406
|
+
$[256] = t48;
|
|
1407
|
+
$[257] = t49;
|
|
1408
|
+
$[258] = tagInputProps;
|
|
1409
|
+
$[259] = wrapperRef;
|
|
1410
|
+
$[260] = wrapperStyles;
|
|
1411
|
+
$[261] = t50;
|
|
1412
|
+
} else t50 = $[261];
|
|
1409
1413
|
const t51 = tags.length ? /* @__PURE__ */ jsx(TagList, {
|
|
1410
1414
|
id: tagListId,
|
|
1411
1415
|
listRef: tagListRef,
|
|
@@ -1423,46 +1427,46 @@ function TagInput(props, ref) {
|
|
|
1423
1427
|
const t52 = true;
|
|
1424
1428
|
const t53 = tags.length ? t("tagInput.summary", "Selected: {{values}}.", { values: formatList(tags.map(_temp10)) }) : null;
|
|
1425
1429
|
let t54;
|
|
1426
|
-
if ($[
|
|
1430
|
+
if ($[262] !== summaryId || $[263] !== t53) {
|
|
1427
1431
|
t54 = /* @__PURE__ */ jsx("span", {
|
|
1428
1432
|
hidden: t52,
|
|
1429
1433
|
id: summaryId,
|
|
1430
1434
|
children: t53
|
|
1431
1435
|
});
|
|
1432
|
-
$[
|
|
1433
|
-
$[
|
|
1434
|
-
$[
|
|
1435
|
-
} else t54 = $[
|
|
1436
|
+
$[262] = summaryId;
|
|
1437
|
+
$[263] = t53;
|
|
1438
|
+
$[264] = t54;
|
|
1439
|
+
} else t54 = $[264];
|
|
1436
1440
|
let t55;
|
|
1437
|
-
if ($[
|
|
1441
|
+
if ($[265] !== hasBackspaceHint || $[266] !== t) {
|
|
1438
1442
|
t55 = hasBackspaceHint ? t("tagInput.backspaceHint", "Press Backspace to go to the selected values.") : null;
|
|
1439
|
-
$[
|
|
1440
|
-
$[
|
|
1441
|
-
$[
|
|
1442
|
-
} else t55 = $[
|
|
1443
|
+
$[265] = hasBackspaceHint;
|
|
1444
|
+
$[266] = t;
|
|
1445
|
+
$[267] = t55;
|
|
1446
|
+
} else t55 = $[267];
|
|
1443
1447
|
let t56;
|
|
1444
|
-
if ($[
|
|
1448
|
+
if ($[268] !== hintId || $[269] !== t55) {
|
|
1445
1449
|
t56 = /* @__PURE__ */ jsx("span", {
|
|
1446
1450
|
hidden: true,
|
|
1447
1451
|
id: hintId,
|
|
1448
1452
|
children: t55
|
|
1449
1453
|
});
|
|
1450
|
-
$[
|
|
1451
|
-
$[
|
|
1452
|
-
$[
|
|
1453
|
-
} else t56 = $[
|
|
1454
|
+
$[268] = hintId;
|
|
1455
|
+
$[269] = t55;
|
|
1456
|
+
$[270] = t56;
|
|
1457
|
+
} else t56 = $[270];
|
|
1454
1458
|
let t57;
|
|
1455
|
-
if ($[
|
|
1459
|
+
if ($[271] !== announcement.id || $[272] !== announcement.text) {
|
|
1456
1460
|
t57 = /* @__PURE__ */ jsx(VisuallyHidden, {
|
|
1457
1461
|
role: "status",
|
|
1458
1462
|
"aria-live": "polite",
|
|
1459
1463
|
"aria-atomic": "true",
|
|
1460
1464
|
children: /* @__PURE__ */ jsx("span", { children: announcement.text }, announcement.id)
|
|
1461
1465
|
});
|
|
1462
|
-
$[
|
|
1463
|
-
$[
|
|
1464
|
-
$[
|
|
1465
|
-
} else t57 = $[
|
|
1466
|
+
$[271] = announcement.id;
|
|
1467
|
+
$[272] = announcement.text;
|
|
1468
|
+
$[273] = t57;
|
|
1469
|
+
} else t57 = $[273];
|
|
1466
1470
|
const t58 = hasOptions ? /* @__PURE__ */ jsx(ListBoxPopover, {
|
|
1467
1471
|
isOpen: shouldShowPopover,
|
|
1468
1472
|
triggerRef: wrapperRef,
|
|
@@ -1480,6 +1484,7 @@ function TagInput(props, ref) {
|
|
|
1480
1484
|
optionHighlight: isFilterActive ? term : void 0,
|
|
1481
1485
|
sectionStyles,
|
|
1482
1486
|
headingStyles,
|
|
1487
|
+
listGap,
|
|
1483
1488
|
selectionMode: "multiple",
|
|
1484
1489
|
selectedKeys: uniqueValues,
|
|
1485
1490
|
isCheckable: true,
|
|
@@ -1498,7 +1503,7 @@ function TagInput(props, ref) {
|
|
|
1498
1503
|
children: popoverChildren
|
|
1499
1504
|
}) : null;
|
|
1500
1505
|
let t59;
|
|
1501
|
-
if ($[
|
|
1506
|
+
if ($[274] !== T0 || $[275] !== className || $[276] !== compositeFocusProps || $[277] !== qaVal || $[278] !== rootRef || $[279] !== style || $[280] !== styles || $[281] !== t50 || $[282] !== t51 || $[283] !== t54 || $[284] !== t56 || $[285] !== t57 || $[286] !== t58) {
|
|
1502
1507
|
t59 = /* @__PURE__ */ jsxs(T0, {
|
|
1503
1508
|
ref: rootRef,
|
|
1504
1509
|
className,
|
|
@@ -1515,31 +1520,31 @@ function TagInput(props, ref) {
|
|
|
1515
1520
|
t58
|
|
1516
1521
|
]
|
|
1517
1522
|
});
|
|
1518
|
-
$[
|
|
1519
|
-
$[
|
|
1520
|
-
$[
|
|
1521
|
-
$[
|
|
1522
|
-
$[
|
|
1523
|
-
$[
|
|
1524
|
-
$[
|
|
1525
|
-
$[
|
|
1526
|
-
$[
|
|
1527
|
-
$[
|
|
1528
|
-
$[
|
|
1529
|
-
$[
|
|
1530
|
-
$[
|
|
1531
|
-
$[
|
|
1532
|
-
} else t59 = $[
|
|
1523
|
+
$[274] = T0;
|
|
1524
|
+
$[275] = className;
|
|
1525
|
+
$[276] = compositeFocusProps;
|
|
1526
|
+
$[277] = qaVal;
|
|
1527
|
+
$[278] = rootRef;
|
|
1528
|
+
$[279] = style;
|
|
1529
|
+
$[280] = styles;
|
|
1530
|
+
$[281] = t50;
|
|
1531
|
+
$[282] = t51;
|
|
1532
|
+
$[283] = t54;
|
|
1533
|
+
$[284] = t56;
|
|
1534
|
+
$[285] = t57;
|
|
1535
|
+
$[286] = t58;
|
|
1536
|
+
$[287] = t59;
|
|
1537
|
+
} else t59 = $[287];
|
|
1533
1538
|
const tagInputField = t59;
|
|
1534
1539
|
const { children: _children, ...fieldProps } = props;
|
|
1535
1540
|
const fieldRef = useCombinedRefs();
|
|
1536
1541
|
let t60;
|
|
1537
|
-
if ($[
|
|
1542
|
+
if ($[288] !== message || $[289] !== tagError) {
|
|
1538
1543
|
t60 = tagError ? /* @__PURE__ */ jsx("span", { children: tagError.text }, tagError.id) : message;
|
|
1539
|
-
$[
|
|
1540
|
-
$[
|
|
1541
|
-
$[
|
|
1542
|
-
} else t60 = $[
|
|
1544
|
+
$[288] = message;
|
|
1545
|
+
$[289] = tagError;
|
|
1546
|
+
$[290] = t60;
|
|
1547
|
+
} else t60 = $[290];
|
|
1543
1548
|
return wrapWithField(tagInputField, fieldRef, {
|
|
1544
1549
|
...fieldProps,
|
|
1545
1550
|
labelProps: mergeProps$1(labelProps, userLabelProps),
|