@cube-dev/ui-kit 0.0.0-canary-3915bfe → 0.0.0-canary-3cd61ca
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_internal/hooks/use-debounced-value.js +1 -1
- package/dist/_internal/hooks/use-deprecation-warning.js +1 -1
- package/dist/_internal/hooks/use-event.js +1 -1
- package/dist/_internal/hooks/use-is-first-render.js +1 -1
- package/dist/_internal/hooks/use-sync-ref.js +1 -1
- package/dist/_internal/hooks/use-timer/timer.js +1 -1
- package/dist/_internal/hooks/use-timer/use-timer.js +1 -1
- package/dist/_internal/hooks/use-warn.js +1 -1
- package/dist/components/Block.js +1 -1
- package/dist/components/CollectionItem.js +1 -1
- package/dist/components/GlobalStyles.js +1 -1
- package/dist/components/GridProvider.js +1 -1
- package/dist/components/HiddenInput.js +1 -1
- package/dist/components/Root.js +1 -1
- package/dist/components/actions/Action/Action.js +1 -1
- package/dist/components/actions/Banner/Banner.js +1 -1
- package/dist/components/actions/Button/Button.js +1 -1
- package/dist/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/actions/ButtonSplit/ButtonSplit.js +1 -1
- package/dist/components/actions/ButtonSplit/context.js +1 -1
- package/dist/components/actions/CommandMenu/CommandMenu.js +1 -1
- package/dist/components/actions/CommandMenu/styled.js +1 -1
- package/dist/components/actions/ItemAction/ItemAction.js +1 -1
- package/dist/components/actions/ItemActionContext.js +1 -1
- package/dist/components/actions/ItemActionsWrapper.js +1 -1
- package/dist/components/actions/ItemButton/ItemButton.js +1 -1
- package/dist/components/actions/Link/Link.js +1 -1
- package/dist/components/actions/Menu/Menu.js +1 -1
- package/dist/components/actions/Menu/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 +5 -2
- package/dist/components/content/Badge/Badge.js.map +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.js +1 -1
- package/dist/components/fields/CommandTextArea/CommandTextArea.js +1 -1
- package/dist/components/fields/CommandTextArea/caretPosition.js +1 -1
- package/dist/components/fields/CommandTextArea/useCaretAnchor.js +1 -1
- package/dist/components/fields/DatePicker/DateInput.js +1 -1
- package/dist/components/fields/DatePicker/DateInputBase.js +1 -1
- package/dist/components/fields/DatePicker/DatePicker.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerButton.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerElement.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerInput.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerSegment.js +1 -1
- package/dist/components/fields/DatePicker/DateRangePicker.js +1 -1
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +1 -1
- package/dist/components/fields/DatePicker/MonthPicker.js +1 -1
- package/dist/components/fields/DatePicker/PeriodPicker.js +1 -1
- package/dist/components/fields/DatePicker/QuarterPicker.js +1 -1
- package/dist/components/fields/DatePicker/TimeInput.js +1 -1
- package/dist/components/fields/DatePicker/WeekPicker.js +1 -1
- package/dist/components/fields/DatePicker/YearPicker.js +1 -1
- package/dist/components/fields/DatePicker/parseDate.js +1 -1
- package/dist/components/fields/DatePicker/period.js +1 -1
- package/dist/components/fields/DatePicker/props.js +1 -1
- package/dist/components/fields/DatePicker/utils.js +1 -1
- package/dist/components/fields/FileInput/FileInput.js +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js +1 -1
- package/dist/components/fields/FilterPicker/FilterPicker.js +1 -1
- package/dist/components/fields/Input/Input.js +1 -1
- package/dist/components/fields/ListBox/DraggableListBox.js +1 -1
- package/dist/components/fields/ListBox/ListBox.js +1 -1
- package/dist/components/fields/ListBox/optionId.js +1 -1
- package/dist/components/fields/ListBoxPopover/ListBoxPopover.js +1 -1
- package/dist/components/fields/ListBoxPopover/listNavigation.js +1 -1
- package/dist/components/fields/ListBoxPopover/useCompositeFocus.js +1 -1
- package/dist/components/fields/NumberInput/NumberInput.js +1 -1
- package/dist/components/fields/NumberInput/StepButton.js +1 -1
- package/dist/components/fields/PasswordInput/PasswordInput.js +1 -1
- package/dist/components/fields/Picker/Picker.js +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.js +1 -1
- package/dist/components/fields/SearchInput/SearchInput.js +1 -1
- package/dist/components/fields/Select/Select.js +1 -1
- package/dist/components/fields/Slider/Gradation.js +1 -1
- package/dist/components/fields/Slider/HueSlider.js +1 -1
- package/dist/components/fields/Slider/RangeSlider.js +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.js +440 -430
- 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/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-3cd61ca | 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";
|
|
@@ -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(281);
|
|
129
129
|
let t0;
|
|
130
130
|
if ($[0] !== props) {
|
|
131
131
|
t0 = castNullableArrayValue(props);
|
|
@@ -492,86 +492,96 @@ function TagInput(props, ref) {
|
|
|
492
492
|
selectionMode: "none"
|
|
493
493
|
}).collection;
|
|
494
494
|
let t7;
|
|
495
|
-
if ($[78]
|
|
496
|
-
t7 =
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
495
|
+
if ($[78] !== collection) {
|
|
496
|
+
t7 = (key) => {
|
|
497
|
+
const node = collection.getItem(key);
|
|
498
|
+
return node?.type === "item" ? node : null;
|
|
499
|
+
};
|
|
500
|
+
$[78] = collection;
|
|
501
|
+
$[79] = t7;
|
|
502
|
+
} else t7 = $[79];
|
|
503
|
+
const getOption = t7;
|
|
500
504
|
let t8;
|
|
501
|
-
if ($[
|
|
502
|
-
t8 =
|
|
503
|
-
$[
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
505
|
+
if ($[80] === Symbol.for("react.memo_cache_sentinel")) {
|
|
506
|
+
t8 = { sensitivity: "base" };
|
|
507
|
+
$[80] = t8;
|
|
508
|
+
} else t8 = $[80];
|
|
509
|
+
const { contains } = useFilter(t8);
|
|
510
|
+
let t9;
|
|
511
|
+
if ($[81] !== contains || $[82] !== filter) {
|
|
512
|
+
t9 = filter === false ? _temp2 : filter || contains;
|
|
513
|
+
$[81] = contains;
|
|
514
|
+
$[82] = filter;
|
|
515
|
+
$[83] = t9;
|
|
516
|
+
} else t9 = $[83];
|
|
517
|
+
const textFilterFn = t9;
|
|
508
518
|
const [isFilterActive, setIsFilterActive] = useState(false);
|
|
509
519
|
const term = draft.trim();
|
|
510
520
|
const [knownLabels, setKnownLabels] = useState(_temp3);
|
|
511
|
-
let t9;
|
|
512
|
-
if ($[82] !== collection || $[83] !== knownLabels) {
|
|
513
|
-
t9 = (key) => collection.getItem(key)?.textValue || knownLabels.get(key) || key;
|
|
514
|
-
$[82] = collection;
|
|
515
|
-
$[83] = knownLabels;
|
|
516
|
-
$[84] = t9;
|
|
517
|
-
} else t9 = $[84];
|
|
518
|
-
const getOptionLabel = t9;
|
|
519
521
|
let t10;
|
|
520
|
-
if ($[
|
|
521
|
-
t10 = (key_0) =>
|
|
522
|
-
$[
|
|
523
|
-
$[
|
|
524
|
-
$[
|
|
525
|
-
} else t10 = $[
|
|
526
|
-
const
|
|
522
|
+
if ($[84] !== getOption || $[85] !== knownLabels) {
|
|
523
|
+
t10 = (key_0) => getOption(key_0)?.textValue || knownLabels.get(key_0) || key_0;
|
|
524
|
+
$[84] = getOption;
|
|
525
|
+
$[85] = knownLabels;
|
|
526
|
+
$[86] = t10;
|
|
527
|
+
} else t10 = $[86];
|
|
528
|
+
const getOptionLabel = t10;
|
|
527
529
|
let t11;
|
|
528
|
-
if ($[88] !== tagProps) {
|
|
529
|
-
t11 = (key_1) =>
|
|
530
|
+
if ($[87] !== getOptionLabel || $[88] !== tagProps) {
|
|
531
|
+
t11 = (key_1) => textLabel(tagProps?.(key_1)?.children) ?? getOptionLabel(key_1);
|
|
532
|
+
$[87] = getOptionLabel;
|
|
530
533
|
$[88] = tagProps;
|
|
531
534
|
$[89] = t11;
|
|
532
535
|
} else t11 = $[89];
|
|
533
|
-
const
|
|
536
|
+
const getTagLabel = t11;
|
|
534
537
|
let t12;
|
|
535
|
-
if ($[90] !==
|
|
536
|
-
t12 =
|
|
537
|
-
$[90] =
|
|
538
|
+
if ($[90] !== tagProps) {
|
|
539
|
+
t12 = (key_2) => !!tagProps?.(key_2)?.isDisabled;
|
|
540
|
+
$[90] = tagProps;
|
|
538
541
|
$[91] = t12;
|
|
539
542
|
} else t12 = $[91];
|
|
540
|
-
const
|
|
543
|
+
const isTagLocked = t12;
|
|
541
544
|
let t13;
|
|
542
|
-
if ($[92] !==
|
|
543
|
-
t13 = (
|
|
545
|
+
if ($[92] !== disabledKeys) {
|
|
546
|
+
t13 = new Set([...disabledKeys ?? []].map(String));
|
|
547
|
+
$[92] = disabledKeys;
|
|
548
|
+
$[93] = t13;
|
|
549
|
+
} else t13 = $[93];
|
|
550
|
+
const disabledKeySet = t13;
|
|
551
|
+
let t14;
|
|
552
|
+
if ($[94] !== getOption || $[95] !== knownLabels) {
|
|
553
|
+
t14 = (keys) => {
|
|
544
554
|
let next = null;
|
|
545
|
-
for (const
|
|
546
|
-
const label_0 =
|
|
547
|
-
if (label_0 && knownLabels.get(
|
|
555
|
+
for (const key_3 of keys) {
|
|
556
|
+
const label_0 = getOption(key_3)?.textValue;
|
|
557
|
+
if (label_0 && knownLabels.get(key_3) !== label_0) {
|
|
548
558
|
if (!next) next = new Map(knownLabels);
|
|
549
|
-
next.set(
|
|
559
|
+
next.set(key_3, label_0);
|
|
550
560
|
}
|
|
551
561
|
}
|
|
552
562
|
if (next) setKnownLabels(next);
|
|
553
563
|
};
|
|
554
|
-
$[
|
|
555
|
-
$[
|
|
556
|
-
$[
|
|
557
|
-
} else
|
|
558
|
-
const rememberLabels = useEvent(
|
|
559
|
-
let
|
|
560
|
-
if ($[
|
|
561
|
-
|
|
564
|
+
$[94] = getOption;
|
|
565
|
+
$[95] = knownLabels;
|
|
566
|
+
$[96] = t14;
|
|
567
|
+
} else t14 = $[96];
|
|
568
|
+
const rememberLabels = useEvent(t14);
|
|
569
|
+
let t15;
|
|
570
|
+
if ($[97] !== allowsCustomValue || $[98] !== collection || $[99] !== hasOptions) {
|
|
571
|
+
t15 = (text_0) => {
|
|
562
572
|
if (!hasOptions) return null;
|
|
563
573
|
const match = matchOptionText(collection, text_0);
|
|
564
574
|
return match.exact ?? (allowsCustomValue ? null : match.loose);
|
|
565
575
|
};
|
|
566
|
-
$[
|
|
567
|
-
$[
|
|
568
|
-
$[
|
|
569
|
-
$[
|
|
570
|
-
} else
|
|
571
|
-
const findOptionKey =
|
|
572
|
-
let
|
|
573
|
-
if ($[
|
|
574
|
-
|
|
576
|
+
$[97] = allowsCustomValue;
|
|
577
|
+
$[98] = collection;
|
|
578
|
+
$[99] = hasOptions;
|
|
579
|
+
$[100] = t15;
|
|
580
|
+
} else t15 = $[100];
|
|
581
|
+
const findOptionKey = t15;
|
|
582
|
+
let t16;
|
|
583
|
+
if ($[101] !== findOptionKey || $[102] !== normalizeTag) {
|
|
584
|
+
t16 = (text_1) => {
|
|
575
585
|
const optionKey = findOptionKey(text_1);
|
|
576
586
|
if (optionKey != null || !normalizeTag) return {
|
|
577
587
|
optionKey,
|
|
@@ -583,15 +593,15 @@ function TagInput(props, ref) {
|
|
|
583
593
|
typed
|
|
584
594
|
};
|
|
585
595
|
};
|
|
586
|
-
$[
|
|
587
|
-
$[
|
|
588
|
-
$[
|
|
589
|
-
} else
|
|
590
|
-
const resolveTypedText =
|
|
591
|
-
let
|
|
592
|
-
if ($[
|
|
593
|
-
|
|
594
|
-
const source =
|
|
596
|
+
$[101] = findOptionKey;
|
|
597
|
+
$[102] = normalizeTag;
|
|
598
|
+
$[103] = t16;
|
|
599
|
+
} else t16 = $[103];
|
|
600
|
+
const resolveTypedText = t16;
|
|
601
|
+
let t17;
|
|
602
|
+
if ($[104] !== normalizeTag || $[105] !== resolveTypedText) {
|
|
603
|
+
t17 = (part, t18) => {
|
|
604
|
+
const source = t18 === void 0 ? "text" : t18;
|
|
595
605
|
if (source === "text") return resolveTypedText(part);
|
|
596
606
|
if (source === "option") return {
|
|
597
607
|
optionKey: part,
|
|
@@ -602,27 +612,27 @@ function TagInput(props, ref) {
|
|
|
602
612
|
typed: normalizeTag ? normalizeTag(part).trim() : part
|
|
603
613
|
};
|
|
604
614
|
};
|
|
605
|
-
$[
|
|
606
|
-
$[
|
|
607
|
-
$[
|
|
608
|
-
} else
|
|
609
|
-
const resolvePart =
|
|
615
|
+
$[104] = normalizeTag;
|
|
616
|
+
$[105] = resolveTypedText;
|
|
617
|
+
$[106] = t17;
|
|
618
|
+
} else t17 = $[106];
|
|
619
|
+
const resolvePart = t17;
|
|
610
620
|
const termOptionKey = term ? resolveTypedText(term).optionKey : null;
|
|
611
621
|
const optionFilterFn = (nodes) => {
|
|
612
622
|
if (!isFilterActive || !term) return nodes;
|
|
613
|
-
return filterCollectionNodes(nodes, term, textFilterFn, { keep: termOptionKey == null ? void 0 : (
|
|
623
|
+
return filterCollectionNodes(nodes, term, textFilterFn, { keep: termOptionKey == null ? void 0 : (node_0) => String(node_0.key) === termOptionKey });
|
|
614
624
|
};
|
|
615
625
|
const visibleOptionKeys = [];
|
|
616
626
|
if (hasOptions) collectVisibleKeys(optionFilterFn(collection), visibleOptionKeys, disabledKeys ? new Set(disabledKeys) : void 0);
|
|
617
|
-
let
|
|
618
|
-
if ($[
|
|
619
|
-
|
|
620
|
-
$[
|
|
621
|
-
} else
|
|
622
|
-
const [unpickedCustomValues, setUnpickedCustomValues] = useState(
|
|
623
|
-
const customValueKeys = hasOptions && allowsCustomValue ? [...new Set([...uniqueValues, ...unpickedCustomValues].filter((value_0) =>
|
|
627
|
+
let t18;
|
|
628
|
+
if ($[107] === Symbol.for("react.memo_cache_sentinel")) {
|
|
629
|
+
t18 = [];
|
|
630
|
+
$[107] = t18;
|
|
631
|
+
} else t18 = $[107];
|
|
632
|
+
const [unpickedCustomValues, setUnpickedCustomValues] = useState(t18);
|
|
633
|
+
const customValueKeys = hasOptions && allowsCustomValue ? [...new Set([...uniqueValues, ...unpickedCustomValues].filter((value_0) => getOption(value_0) == null && !knownLabels.has(value_0)))].sort(compareText) : [];
|
|
624
634
|
const matchesTerm = typeof filter === "function" ? filter : contains;
|
|
625
|
-
const visibleCustomKeys = isFilterActive && term ? customValueKeys.filter((
|
|
635
|
+
const visibleCustomKeys = isFilterActive && term ? customValueKeys.filter((key_4) => matchesTerm(key_4, term)) : customValueKeys;
|
|
626
636
|
const customTerm = hasOptions && allowsCustomValue && term && termOptionKey == null && !uniqueValues.includes(term) && !customValueKeys.includes(term) ? term : null;
|
|
627
637
|
const popoverChildren = withCustomOptions(children, {
|
|
628
638
|
customKeys: visibleCustomKeys,
|
|
@@ -638,57 +648,57 @@ function TagInput(props, ref) {
|
|
|
638
648
|
const isInteractive = !isDisabled && !isReadOnly;
|
|
639
649
|
const shouldShowPopover = hasOptions && isInteractive && isPopoverOpen && hasResults;
|
|
640
650
|
const notifiedOpenRef = useRef(false);
|
|
641
|
-
let t18;
|
|
642
651
|
let t19;
|
|
643
|
-
|
|
644
|
-
|
|
652
|
+
let t20;
|
|
653
|
+
if ($[108] !== onOpenChange || $[109] !== shouldShowPopover) {
|
|
654
|
+
t19 = () => {
|
|
645
655
|
if (notifiedOpenRef.current === shouldShowPopover) return;
|
|
646
656
|
notifiedOpenRef.current = shouldShowPopover;
|
|
647
657
|
onOpenChange?.(shouldShowPopover);
|
|
648
658
|
};
|
|
649
|
-
|
|
650
|
-
$[
|
|
651
|
-
$[
|
|
652
|
-
$[
|
|
653
|
-
$[
|
|
659
|
+
t20 = [shouldShowPopover, onOpenChange];
|
|
660
|
+
$[108] = onOpenChange;
|
|
661
|
+
$[109] = shouldShowPopover;
|
|
662
|
+
$[110] = t19;
|
|
663
|
+
$[111] = t20;
|
|
654
664
|
} else {
|
|
655
|
-
|
|
656
|
-
|
|
665
|
+
t19 = $[110];
|
|
666
|
+
t20 = $[111];
|
|
657
667
|
}
|
|
658
|
-
useEffect(
|
|
668
|
+
useEffect(t19, t20);
|
|
659
669
|
const [activeOption, setActiveOption] = useState(null);
|
|
660
670
|
const activeOptionKey = activeOption?.key ?? null;
|
|
661
|
-
let
|
|
662
|
-
if ($[
|
|
663
|
-
|
|
671
|
+
let t21;
|
|
672
|
+
if ($[112] !== setActiveOption) {
|
|
673
|
+
t21 = (key_5, source_0, forTerm) => {
|
|
664
674
|
const listState = listStateRef.current;
|
|
665
|
-
if (!listState ||
|
|
675
|
+
if (!listState || key_5 == null) return;
|
|
666
676
|
markKeyboardFocus(listState);
|
|
667
|
-
listState.selectionManager.setFocusedKey(
|
|
677
|
+
listState.selectionManager.setFocusedKey(key_5);
|
|
668
678
|
setActiveOption({
|
|
669
|
-
key:
|
|
679
|
+
key: key_5,
|
|
670
680
|
term: forTerm,
|
|
671
681
|
source: source_0
|
|
672
682
|
});
|
|
673
683
|
};
|
|
674
|
-
$[
|
|
675
|
-
$[
|
|
676
|
-
} else
|
|
677
|
-
const moveVirtualFocus = useEvent(
|
|
684
|
+
$[112] = setActiveOption;
|
|
685
|
+
$[113] = t21;
|
|
686
|
+
} else t21 = $[113];
|
|
687
|
+
const moveVirtualFocus = useEvent(t21);
|
|
678
688
|
const [popoverMinWidth, setPopoverMinWidth] = useState();
|
|
679
689
|
let exactOptionKey = termOptionKey;
|
|
680
690
|
if (exactOptionKey == null && term && customValueKeys.includes(term)) exactOptionKey = term;
|
|
681
|
-
if (exactOptionKey == null && customTerm && (matchOptionText(collection, customTerm).loose != null || customValueKeys.some((
|
|
691
|
+
if (exactOptionKey == null && customTerm && (matchOptionText(collection, customTerm).loose != null || customValueKeys.some((key_6) => isSameText(key_6, customTerm)))) exactOptionKey = customTerm;
|
|
682
692
|
const visibleTargetKeys = [...visibleOptionKeys, ...visibleCustomKeys];
|
|
683
693
|
if (customTerm) visibleTargetKeys.push(customTerm);
|
|
684
694
|
let preferredOptionKey = null;
|
|
685
695
|
if (exactOptionKey != null && visibleTargetKeys.includes(exactOptionKey)) preferredOptionKey = exactOptionKey;
|
|
686
|
-
else if (term) preferredOptionKey = visibleTargetKeys.find((
|
|
696
|
+
else if (term) preferredOptionKey = visibleTargetKeys.find((key_7) => !uniqueValues.includes(String(key_7))) ?? null;
|
|
687
697
|
if (preferredOptionKey == null) preferredOptionKey = visibleTargetKeys[0] ?? null;
|
|
688
698
|
const focusTermRef = useRef(null);
|
|
689
|
-
let
|
|
690
|
-
if ($[
|
|
691
|
-
|
|
699
|
+
let t22;
|
|
700
|
+
if ($[114] !== customTerm || $[115] !== moveVirtualFocus || $[116] !== preferredOptionKey || $[117] !== setActiveOption || $[118] !== setPopoverMinWidth || $[119] !== shouldShowPopover || $[120] !== term || $[121] !== visibleOptionsSignature || $[122] !== wrapperRef) {
|
|
701
|
+
t22 = () => {
|
|
692
702
|
if (!shouldShowPopover) {
|
|
693
703
|
focusTermRef.current = null;
|
|
694
704
|
return;
|
|
@@ -724,20 +734,20 @@ function TagInput(props, ref) {
|
|
|
724
734
|
isCancelled = true;
|
|
725
735
|
};
|
|
726
736
|
};
|
|
727
|
-
$[
|
|
728
|
-
$[
|
|
729
|
-
$[
|
|
730
|
-
$[
|
|
731
|
-
$[
|
|
732
|
-
$[
|
|
733
|
-
$[
|
|
734
|
-
$[
|
|
735
|
-
$[
|
|
736
|
-
$[
|
|
737
|
-
} else
|
|
738
|
-
let
|
|
739
|
-
if ($[
|
|
740
|
-
|
|
737
|
+
$[114] = customTerm;
|
|
738
|
+
$[115] = moveVirtualFocus;
|
|
739
|
+
$[116] = preferredOptionKey;
|
|
740
|
+
$[117] = setActiveOption;
|
|
741
|
+
$[118] = setPopoverMinWidth;
|
|
742
|
+
$[119] = shouldShowPopover;
|
|
743
|
+
$[120] = term;
|
|
744
|
+
$[121] = visibleOptionsSignature;
|
|
745
|
+
$[122] = wrapperRef;
|
|
746
|
+
$[123] = t22;
|
|
747
|
+
} else t22 = $[123];
|
|
748
|
+
let t23;
|
|
749
|
+
if ($[124] !== customTerm || $[125] !== moveVirtualFocus || $[126] !== preferredOptionKey || $[127] !== shouldShowPopover || $[128] !== term || $[129] !== visibleOptionsSignature || $[130] !== wrapperRef) {
|
|
750
|
+
t23 = [
|
|
741
751
|
shouldShowPopover,
|
|
742
752
|
visibleOptionsSignature,
|
|
743
753
|
customTerm,
|
|
@@ -746,42 +756,42 @@ function TagInput(props, ref) {
|
|
|
746
756
|
moveVirtualFocus,
|
|
747
757
|
wrapperRef
|
|
748
758
|
];
|
|
749
|
-
$[
|
|
750
|
-
$[
|
|
751
|
-
$[
|
|
752
|
-
$[
|
|
753
|
-
$[
|
|
754
|
-
$[
|
|
755
|
-
$[
|
|
756
|
-
$[
|
|
757
|
-
} else
|
|
758
|
-
useLayoutEffect(
|
|
759
|
-
let
|
|
760
|
-
if ($[
|
|
761
|
-
|
|
759
|
+
$[124] = customTerm;
|
|
760
|
+
$[125] = moveVirtualFocus;
|
|
761
|
+
$[126] = preferredOptionKey;
|
|
762
|
+
$[127] = shouldShowPopover;
|
|
763
|
+
$[128] = term;
|
|
764
|
+
$[129] = visibleOptionsSignature;
|
|
765
|
+
$[130] = wrapperRef;
|
|
766
|
+
$[131] = t23;
|
|
767
|
+
} else t23 = $[131];
|
|
768
|
+
useLayoutEffect(t22, t23);
|
|
769
|
+
let t24;
|
|
770
|
+
if ($[132] !== setDraftState || $[133] !== setIsFilterActive) {
|
|
771
|
+
t24 = (next_0) => {
|
|
762
772
|
setDraftState(next_0);
|
|
763
773
|
setIsFilterActive(!!next_0.trim());
|
|
764
774
|
};
|
|
765
|
-
$[
|
|
766
|
-
$[
|
|
767
|
-
$[
|
|
768
|
-
} else
|
|
769
|
-
const setDraft = useEvent(
|
|
770
|
-
let
|
|
771
|
-
if ($[
|
|
772
|
-
|
|
775
|
+
$[132] = setDraftState;
|
|
776
|
+
$[133] = setIsFilterActive;
|
|
777
|
+
$[134] = t24;
|
|
778
|
+
} else t24 = $[134];
|
|
779
|
+
const setDraft = useEvent(t24);
|
|
780
|
+
let t25;
|
|
781
|
+
if ($[135] !== setAnnouncement) {
|
|
782
|
+
t25 = (text_2) => {
|
|
773
783
|
setAnnouncement((prev_0) => ({
|
|
774
784
|
id: prev_0.id + 1,
|
|
775
785
|
text: text_2
|
|
776
786
|
}));
|
|
777
787
|
};
|
|
778
|
-
$[
|
|
779
|
-
$[
|
|
780
|
-
} else
|
|
781
|
-
const announce = useEvent(
|
|
782
|
-
let
|
|
783
|
-
if ($[
|
|
784
|
-
|
|
788
|
+
$[135] = setAnnouncement;
|
|
789
|
+
$[136] = t25;
|
|
790
|
+
} else t25 = $[136];
|
|
791
|
+
const announce = useEvent(t25);
|
|
792
|
+
let t26;
|
|
793
|
+
if ($[137] !== maxTags || $[138] !== t) {
|
|
794
|
+
t26 = (rejection) => {
|
|
785
795
|
if (rejection.message) return rejection.message;
|
|
786
796
|
switch (rejection.reason) {
|
|
787
797
|
case "duplicate": return t("tagInput.duplicateValue", "\"{{value}}\" is already added", { value: rejection.text });
|
|
@@ -791,18 +801,18 @@ function TagInput(props, ref) {
|
|
|
791
801
|
default: return t("tagInput.invalidValue", "\"{{value}}\" is not a valid value", { value: rejection.text });
|
|
792
802
|
}
|
|
793
803
|
};
|
|
794
|
-
$[
|
|
795
|
-
$[
|
|
796
|
-
$[137] = t25;
|
|
797
|
-
} else t25 = $[137];
|
|
798
|
-
const rejectionMessage = useEvent(t25);
|
|
799
|
-
let t26;
|
|
800
|
-
if ($[138] !== delimiters) {
|
|
801
|
-
t26 = delimiters.find(_temp5);
|
|
802
|
-
$[138] = delimiters;
|
|
804
|
+
$[137] = maxTags;
|
|
805
|
+
$[138] = t;
|
|
803
806
|
$[139] = t26;
|
|
804
807
|
} else t26 = $[139];
|
|
805
|
-
const
|
|
808
|
+
const rejectionMessage = useEvent(t26);
|
|
809
|
+
let t27;
|
|
810
|
+
if ($[140] !== delimiters) {
|
|
811
|
+
t27 = delimiters.find(_temp5);
|
|
812
|
+
$[140] = delimiters;
|
|
813
|
+
$[141] = t27;
|
|
814
|
+
} else t27 = $[141];
|
|
815
|
+
const joinDelimiter = t27;
|
|
806
816
|
const joiner = joinDelimiter ? `${joinDelimiter} ` : " ";
|
|
807
817
|
const hasFieldMessage = !!label || !!props.forceField;
|
|
808
818
|
const commitParts = useEvent((parts, source_1) => {
|
|
@@ -871,31 +881,31 @@ function TagInput(props, ref) {
|
|
|
871
881
|
setTagError(error);
|
|
872
882
|
return kept.map(_temp7).join(joiner);
|
|
873
883
|
});
|
|
874
|
-
let
|
|
875
|
-
if ($[
|
|
876
|
-
|
|
884
|
+
let t28;
|
|
885
|
+
if ($[142] !== commitParts || $[143] !== delimiters || $[144] !== draft || $[145] !== setDraft) {
|
|
886
|
+
t28 = () => {
|
|
877
887
|
const rest = commitParts(splitTagText(draft, delimiters));
|
|
878
888
|
setDraft(rest);
|
|
879
889
|
return rest;
|
|
880
890
|
};
|
|
881
|
-
$[
|
|
882
|
-
$[
|
|
883
|
-
$[
|
|
884
|
-
$[
|
|
885
|
-
$[
|
|
886
|
-
} else
|
|
887
|
-
const commitDraft = useEvent(
|
|
888
|
-
let
|
|
889
|
-
if ($[
|
|
890
|
-
|
|
891
|
+
$[142] = commitParts;
|
|
892
|
+
$[143] = delimiters;
|
|
893
|
+
$[144] = draft;
|
|
894
|
+
$[145] = setDraft;
|
|
895
|
+
$[146] = t28;
|
|
896
|
+
} else t28 = $[146];
|
|
897
|
+
const commitDraft = useEvent(t28);
|
|
898
|
+
let t29;
|
|
899
|
+
if ($[147] === Symbol.for("react.memo_cache_sentinel")) {
|
|
900
|
+
t29 = () => {
|
|
891
901
|
const rows = tagListRef.current?.querySelectorAll("[role=\"row\"]:not([aria-disabled=\"true\"])");
|
|
892
902
|
rows?.[rows.length - 1]?.focus();
|
|
893
903
|
};
|
|
894
|
-
$[
|
|
895
|
-
} else
|
|
896
|
-
const focusLastTag = useEvent(
|
|
904
|
+
$[147] = t29;
|
|
905
|
+
} else t29 = $[147];
|
|
906
|
+
const focusLastTag = useEvent(t29);
|
|
897
907
|
const removeValues = useEvent((requested) => {
|
|
898
|
-
const keys_0 = requested.filter((
|
|
908
|
+
const keys_0 = requested.filter((key_8) => !isTagLocked(key_8));
|
|
899
909
|
if (!keys_0.length) return;
|
|
900
910
|
const removed = new Set(keys_0);
|
|
901
911
|
const next_1 = uniqueValues.filter((value_1) => !removed.has(value_1));
|
|
@@ -904,20 +914,20 @@ function TagInput(props, ref) {
|
|
|
904
914
|
setTagError(null);
|
|
905
915
|
announce(t("tagInput.removed", "Removed {{value}}", { value: formatList(keys_0.map(getTagLabel)) }));
|
|
906
916
|
});
|
|
907
|
-
const toggleOption = useEvent((
|
|
908
|
-
if (isTagLocked(
|
|
909
|
-
const source_2 =
|
|
917
|
+
const toggleOption = useEvent((key_9) => {
|
|
918
|
+
if (isTagLocked(key_9)) return;
|
|
919
|
+
const source_2 = getOption(key_9) != null ? "option" : customValueKeys.includes(key_9) ? "custom" : "text";
|
|
910
920
|
setTagError(null);
|
|
911
|
-
if (uniqueValues.includes(
|
|
912
|
-
removeValues([
|
|
921
|
+
if (uniqueValues.includes(key_9)) {
|
|
922
|
+
removeValues([key_9]);
|
|
913
923
|
setDraft("");
|
|
914
|
-
if (customValueKeys.includes(
|
|
915
|
-
} else if (!commitParts([
|
|
924
|
+
if (customValueKeys.includes(key_9)) setUnpickedCustomValues((prev_1) => prev_1.includes(key_9) ? prev_1 : [...prev_1, key_9]);
|
|
925
|
+
} else if (!commitParts([key_9], source_2)) setDraft("");
|
|
916
926
|
});
|
|
917
927
|
const handlePopoverSelection = useEvent((selection) => {
|
|
918
928
|
if (!Array.isArray(selection)) return;
|
|
919
929
|
const next_2 = new Set(selection.map(String));
|
|
920
|
-
const changed = [...[...next_2].filter((
|
|
930
|
+
const changed = [...[...next_2].filter((key_10) => !uniqueValues.includes(key_10)), ...uniqueValues.filter((value_3) => !next_2.has(value_3) && (getOption(value_3) != null || visibleCustomKeys.includes(value_3)))];
|
|
921
931
|
changed.forEach(toggleOption);
|
|
922
932
|
const clicked = changed[changed.length - 1];
|
|
923
933
|
if (clicked != null) {
|
|
@@ -966,16 +976,16 @@ function TagInput(props, ref) {
|
|
|
966
976
|
const targetKey = shouldShowPopover ? isCurrent ? activeOption.key : preferredOptionKey : null;
|
|
967
977
|
if (targetKey != null) {
|
|
968
978
|
e.preventDefault();
|
|
969
|
-
const
|
|
970
|
-
if (term && uniqueValues.includes(
|
|
979
|
+
const key_11 = String(targetKey);
|
|
980
|
+
if (term && uniqueValues.includes(key_11) && !(isCurrent && activeOption.source === "user")) {
|
|
971
981
|
setDraft("");
|
|
972
982
|
setTagError(rejectionMessage({
|
|
973
|
-
text: getTagLabel(
|
|
983
|
+
text: getTagLabel(key_11),
|
|
974
984
|
reason: "duplicate"
|
|
975
985
|
}));
|
|
976
986
|
return;
|
|
977
987
|
}
|
|
978
|
-
toggleOption(
|
|
988
|
+
toggleOption(key_11);
|
|
979
989
|
return;
|
|
980
990
|
}
|
|
981
991
|
e.preventDefault();
|
|
@@ -1019,9 +1029,9 @@ function TagInput(props, ref) {
|
|
|
1019
1029
|
setDraft(nextDraft);
|
|
1020
1030
|
if (hasOptions && popoverTrigger !== "manual" && nextDraft.trim()) setIsPopoverOpen(true);
|
|
1021
1031
|
});
|
|
1022
|
-
let
|
|
1023
|
-
if ($[
|
|
1024
|
-
|
|
1032
|
+
let t30;
|
|
1033
|
+
if ($[148] !== commitParts || $[149] !== delimiters || $[150] !== draft || $[151] !== isInteractive || $[152] !== setDraft || $[153] !== setTagError) {
|
|
1034
|
+
t30 = (e_0) => {
|
|
1025
1035
|
if (!isInteractive) return;
|
|
1026
1036
|
const pasted = e_0.clipboardData.getData("text");
|
|
1027
1037
|
if (!pasted || splitTagText(pasted, delimiters).length < 2) return;
|
|
@@ -1032,18 +1042,18 @@ function TagInput(props, ref) {
|
|
|
1032
1042
|
setTagError(null);
|
|
1033
1043
|
setDraft(commitParts(splitTagText(`${draft.slice(0, start_0)}\n${pasted}\n${draft.slice(end_0)}`, delimiters)));
|
|
1034
1044
|
};
|
|
1035
|
-
$[
|
|
1036
|
-
$[
|
|
1037
|
-
$[
|
|
1038
|
-
$[
|
|
1039
|
-
$[
|
|
1040
|
-
$[
|
|
1041
|
-
$[
|
|
1042
|
-
} else
|
|
1043
|
-
const handlePaste = useEvent(
|
|
1044
|
-
let
|
|
1045
|
-
if ($[
|
|
1046
|
-
|
|
1045
|
+
$[148] = commitParts;
|
|
1046
|
+
$[149] = delimiters;
|
|
1047
|
+
$[150] = draft;
|
|
1048
|
+
$[151] = isInteractive;
|
|
1049
|
+
$[152] = setDraft;
|
|
1050
|
+
$[153] = setTagError;
|
|
1051
|
+
$[154] = t30;
|
|
1052
|
+
} else t30 = $[154];
|
|
1053
|
+
const handlePaste = useEvent(t30);
|
|
1054
|
+
let t31;
|
|
1055
|
+
if ($[155] !== allowsCustomValue || $[156] !== commitDraft || $[157] !== draft || $[158] !== hasOptions || $[159] !== isInteractive || $[160] !== setDraft || $[161] !== setTagError || $[162] !== shouldCommitOnBlur || $[163] !== term || $[164] !== termOptionKey) {
|
|
1056
|
+
t31 = () => {
|
|
1047
1057
|
if (!term) return "";
|
|
1048
1058
|
if (!shouldCommitOnBlur || !isInteractive) return draft;
|
|
1049
1059
|
if (hasOptions && !allowsCustomValue && termOptionKey == null) {
|
|
@@ -1053,57 +1063,57 @@ function TagInput(props, ref) {
|
|
|
1053
1063
|
}
|
|
1054
1064
|
return commitDraft();
|
|
1055
1065
|
};
|
|
1056
|
-
$[
|
|
1057
|
-
$[
|
|
1058
|
-
$[
|
|
1059
|
-
$[
|
|
1060
|
-
$[
|
|
1061
|
-
$[
|
|
1062
|
-
$[
|
|
1063
|
-
$[
|
|
1064
|
-
$[
|
|
1065
|
-
$[
|
|
1066
|
-
$[
|
|
1067
|
-
} else
|
|
1068
|
-
const settleDraft = useEvent(
|
|
1069
|
-
let
|
|
1070
|
-
if ($[
|
|
1071
|
-
|
|
1066
|
+
$[155] = allowsCustomValue;
|
|
1067
|
+
$[156] = commitDraft;
|
|
1068
|
+
$[157] = draft;
|
|
1069
|
+
$[158] = hasOptions;
|
|
1070
|
+
$[159] = isInteractive;
|
|
1071
|
+
$[160] = setDraft;
|
|
1072
|
+
$[161] = setTagError;
|
|
1073
|
+
$[162] = shouldCommitOnBlur;
|
|
1074
|
+
$[163] = term;
|
|
1075
|
+
$[164] = termOptionKey;
|
|
1076
|
+
$[165] = t31;
|
|
1077
|
+
} else t31 = $[165];
|
|
1078
|
+
const settleDraft = useEvent(t31);
|
|
1079
|
+
let t32;
|
|
1080
|
+
if ($[166] !== onBlur || $[167] !== setIsPopoverOpen || $[168] !== setTagError || $[169] !== setUnpickedCustomValues || $[170] !== settleDraft) {
|
|
1081
|
+
t32 = () => {
|
|
1072
1082
|
setIsPopoverOpen(false);
|
|
1073
1083
|
setUnpickedCustomValues([]);
|
|
1074
1084
|
if (!settleDraft()) setTagError(null);
|
|
1075
1085
|
onBlur?.();
|
|
1076
1086
|
};
|
|
1077
|
-
$[
|
|
1078
|
-
$[
|
|
1079
|
-
$[
|
|
1080
|
-
$[
|
|
1081
|
-
$[
|
|
1082
|
-
$[
|
|
1083
|
-
} else
|
|
1084
|
-
const handleCompositeBlur = useEvent(
|
|
1085
|
-
const
|
|
1086
|
-
const
|
|
1087
|
-
let
|
|
1088
|
-
if ($[
|
|
1089
|
-
|
|
1090
|
-
wrapperRef:
|
|
1091
|
-
popoverRef:
|
|
1087
|
+
$[166] = onBlur;
|
|
1088
|
+
$[167] = setIsPopoverOpen;
|
|
1089
|
+
$[168] = setTagError;
|
|
1090
|
+
$[169] = setUnpickedCustomValues;
|
|
1091
|
+
$[170] = settleDraft;
|
|
1092
|
+
$[171] = t32;
|
|
1093
|
+
} else t32 = $[171];
|
|
1094
|
+
const handleCompositeBlur = useEvent(t32);
|
|
1095
|
+
const t33 = rootRef;
|
|
1096
|
+
const t34 = popoverRef;
|
|
1097
|
+
let t35;
|
|
1098
|
+
if ($[172] !== handleCompositeBlur || $[173] !== isDisabled || $[174] !== onFocus || $[175] !== t33 || $[176] !== t34) {
|
|
1099
|
+
t35 = {
|
|
1100
|
+
wrapperRef: t33,
|
|
1101
|
+
popoverRef: t34,
|
|
1092
1102
|
onFocus,
|
|
1093
1103
|
onBlur: handleCompositeBlur,
|
|
1094
1104
|
isDisabled
|
|
1095
1105
|
};
|
|
1096
|
-
$[
|
|
1097
|
-
$[
|
|
1098
|
-
$[
|
|
1099
|
-
$[
|
|
1100
|
-
$[
|
|
1101
|
-
$[
|
|
1102
|
-
} else
|
|
1103
|
-
const { compositeFocusProps } = useCompositeFocus(
|
|
1104
|
-
let
|
|
1105
|
-
if ($[
|
|
1106
|
-
|
|
1106
|
+
$[172] = handleCompositeBlur;
|
|
1107
|
+
$[173] = isDisabled;
|
|
1108
|
+
$[174] = onFocus;
|
|
1109
|
+
$[175] = t33;
|
|
1110
|
+
$[176] = t34;
|
|
1111
|
+
$[177] = t35;
|
|
1112
|
+
} else t35 = $[177];
|
|
1113
|
+
const { compositeFocusProps } = useCompositeFocus(t35);
|
|
1114
|
+
let t36;
|
|
1115
|
+
if ($[178] !== rootRef || $[179] !== setIsPopoverOpen || $[180] !== settleDraft) {
|
|
1116
|
+
t36 = (e_1) => {
|
|
1107
1117
|
const isTabbing = isTabbingRef.current;
|
|
1108
1118
|
const next_4 = e_1.relatedTarget;
|
|
1109
1119
|
isTabbingRef.current = false;
|
|
@@ -1111,27 +1121,27 @@ function TagInput(props, ref) {
|
|
|
1111
1121
|
setIsPopoverOpen(false);
|
|
1112
1122
|
settleDraft();
|
|
1113
1123
|
};
|
|
1114
|
-
$[
|
|
1115
|
-
$[
|
|
1116
|
-
$[
|
|
1117
|
-
$[
|
|
1118
|
-
} else
|
|
1119
|
-
const handleInputBlur = useEvent(
|
|
1120
|
-
let
|
|
1121
|
-
if ($[
|
|
1122
|
-
|
|
1124
|
+
$[178] = rootRef;
|
|
1125
|
+
$[179] = setIsPopoverOpen;
|
|
1126
|
+
$[180] = settleDraft;
|
|
1127
|
+
$[181] = t36;
|
|
1128
|
+
} else t36 = $[181];
|
|
1129
|
+
const handleInputBlur = useEvent(t36);
|
|
1130
|
+
let t37;
|
|
1131
|
+
if ($[182] !== hasOptions || $[183] !== isInteractive || $[184] !== popoverTrigger || $[185] !== setIsPopoverOpen) {
|
|
1132
|
+
t37 = () => {
|
|
1123
1133
|
if (hasOptions && popoverTrigger === "focus" && isInteractive) setIsPopoverOpen(true);
|
|
1124
1134
|
};
|
|
1125
|
-
$[
|
|
1126
|
-
$[
|
|
1127
|
-
$[
|
|
1128
|
-
$[
|
|
1129
|
-
$[
|
|
1130
|
-
} else
|
|
1131
|
-
const handleInputFocus = useEvent(
|
|
1135
|
+
$[182] = hasOptions;
|
|
1136
|
+
$[183] = isInteractive;
|
|
1137
|
+
$[184] = popoverTrigger;
|
|
1138
|
+
$[185] = setIsPopoverOpen;
|
|
1139
|
+
$[186] = t37;
|
|
1140
|
+
} else t37 = $[186];
|
|
1141
|
+
const handleInputFocus = useEvent(t37);
|
|
1132
1142
|
const tags = uniqueValues.map((value_5) => {
|
|
1133
1143
|
const ownProps = tagProps?.(value_5);
|
|
1134
|
-
const result_0 = !(
|
|
1144
|
+
const result_0 = !(getOption(value_5) != null || knownLabels.has(value_5)) && validateTag ? validateTag(value_5) : true;
|
|
1135
1145
|
const label_1 = textLabel(ownProps?.children) ?? getOptionLabel(value_5);
|
|
1136
1146
|
return {
|
|
1137
1147
|
key: value_5,
|
|
@@ -1146,9 +1156,9 @@ function TagInput(props, ref) {
|
|
|
1146
1156
|
const hasBackspaceHint = isInteractive && hasRemovableTags;
|
|
1147
1157
|
const lockedKeys = tags.filter(_temp0).map(_temp1);
|
|
1148
1158
|
const optionDisabledKeys = lockedKeys.length ? [...disabledKeySet, ...lockedKeys] : disabledKeys;
|
|
1149
|
-
let
|
|
1150
|
-
if ($[
|
|
1151
|
-
|
|
1159
|
+
let t38;
|
|
1160
|
+
if ($[187] !== autoFocus || $[188] !== draft || $[189] !== effectiveIsInvalid || $[190] !== handleInputChange || $[191] !== id || $[192] !== isDisabled || $[193] !== isReadOnly || $[194] !== isRequired || $[195] !== label || $[196] !== otherProps || $[197] !== placeholder) {
|
|
1161
|
+
t38 = {
|
|
1152
1162
|
...otherProps,
|
|
1153
1163
|
id,
|
|
1154
1164
|
label,
|
|
@@ -1161,20 +1171,20 @@ function TagInput(props, ref) {
|
|
|
1161
1171
|
autoFocus,
|
|
1162
1172
|
onChange: handleInputChange
|
|
1163
1173
|
};
|
|
1164
|
-
$[
|
|
1165
|
-
$[
|
|
1166
|
-
$[
|
|
1167
|
-
$[
|
|
1168
|
-
$[
|
|
1169
|
-
$[
|
|
1170
|
-
$[
|
|
1171
|
-
$[
|
|
1172
|
-
$[
|
|
1173
|
-
$[
|
|
1174
|
-
$[
|
|
1175
|
-
$[
|
|
1176
|
-
} else
|
|
1177
|
-
const { labelProps, inputProps } = useTextField(
|
|
1174
|
+
$[187] = autoFocus;
|
|
1175
|
+
$[188] = draft;
|
|
1176
|
+
$[189] = effectiveIsInvalid;
|
|
1177
|
+
$[190] = handleInputChange;
|
|
1178
|
+
$[191] = id;
|
|
1179
|
+
$[192] = isDisabled;
|
|
1180
|
+
$[193] = isReadOnly;
|
|
1181
|
+
$[194] = isRequired;
|
|
1182
|
+
$[195] = label;
|
|
1183
|
+
$[196] = otherProps;
|
|
1184
|
+
$[197] = placeholder;
|
|
1185
|
+
$[198] = t38;
|
|
1186
|
+
} else t38 = $[198];
|
|
1187
|
+
const { labelProps, inputProps } = useTextField(t38, inputRef);
|
|
1178
1188
|
const labelId = label ? labelProps.id : void 0;
|
|
1179
1189
|
const describedBy = [];
|
|
1180
1190
|
if (inputProps["aria-describedby"]) describedBy.push(inputProps["aria-describedby"]);
|
|
@@ -1196,25 +1206,25 @@ function TagInput(props, ref) {
|
|
|
1196
1206
|
"aria-controls": shouldShowPopover ? listBoxId : void 0,
|
|
1197
1207
|
"aria-activedescendant": shouldShowPopover && activeOptionKey != null ? getListBoxOptionId(listBoxId, activeOptionKey) : void 0
|
|
1198
1208
|
} : null);
|
|
1199
|
-
let
|
|
1200
|
-
if ($[
|
|
1201
|
-
|
|
1209
|
+
let t39;
|
|
1210
|
+
if ($[199] !== hasResults || $[200] !== inputRef || $[201] !== setIsFilterActive || $[202] !== setIsPopoverOpen || $[203] !== shouldShowPopover) {
|
|
1211
|
+
t39 = () => {
|
|
1202
1212
|
const willOpen = !shouldShowPopover;
|
|
1203
1213
|
if (willOpen && !hasResults) setIsFilterActive(false);
|
|
1204
1214
|
setIsPopoverOpen(willOpen);
|
|
1205
1215
|
inputRef.current?.focus();
|
|
1206
1216
|
};
|
|
1207
|
-
$[
|
|
1208
|
-
$[
|
|
1209
|
-
$[
|
|
1210
|
-
$[
|
|
1211
|
-
$[
|
|
1212
|
-
$[
|
|
1213
|
-
} else
|
|
1214
|
-
const handleTriggerPress = useEvent(
|
|
1215
|
-
let
|
|
1216
|
-
if ($[
|
|
1217
|
-
|
|
1217
|
+
$[199] = hasResults;
|
|
1218
|
+
$[200] = inputRef;
|
|
1219
|
+
$[201] = setIsFilterActive;
|
|
1220
|
+
$[202] = setIsPopoverOpen;
|
|
1221
|
+
$[203] = shouldShowPopover;
|
|
1222
|
+
$[204] = t39;
|
|
1223
|
+
} else t39 = $[204];
|
|
1224
|
+
const handleTriggerPress = useEvent(t39);
|
|
1225
|
+
let t40;
|
|
1226
|
+
if ($[205] !== handleTriggerPress || $[206] !== hasOptions || $[207] !== hideTrigger || $[208] !== isInteractive || $[209] !== labelId || $[210] !== shouldShowPopover || $[211] !== size || $[212] !== t || $[213] !== triggerId || $[214] !== triggerStyles) {
|
|
1227
|
+
t40 = hasOptions && !hideTrigger ? /* @__PURE__ */ jsx(ItemAction, {
|
|
1218
1228
|
"data-popover-trigger": true,
|
|
1219
1229
|
id: triggerId,
|
|
1220
1230
|
qa: "TagInputTrigger",
|
|
@@ -1230,40 +1240,40 @@ function TagInput(props, ref) {
|
|
|
1230
1240
|
"aria-labelledby": labelId ? `${triggerId} ${labelId}` : void 0,
|
|
1231
1241
|
onPress: handleTriggerPress
|
|
1232
1242
|
}) : null;
|
|
1233
|
-
$[
|
|
1234
|
-
$[
|
|
1235
|
-
$[
|
|
1236
|
-
$[
|
|
1237
|
-
$[
|
|
1238
|
-
$[
|
|
1239
|
-
$[
|
|
1240
|
-
$[
|
|
1241
|
-
$[
|
|
1242
|
-
$[
|
|
1243
|
-
$[
|
|
1244
|
-
} else
|
|
1245
|
-
const trigger =
|
|
1246
|
-
let
|
|
1247
|
-
if ($[
|
|
1248
|
-
|
|
1243
|
+
$[205] = handleTriggerPress;
|
|
1244
|
+
$[206] = hasOptions;
|
|
1245
|
+
$[207] = hideTrigger;
|
|
1246
|
+
$[208] = isInteractive;
|
|
1247
|
+
$[209] = labelId;
|
|
1248
|
+
$[210] = shouldShowPopover;
|
|
1249
|
+
$[211] = size;
|
|
1250
|
+
$[212] = t;
|
|
1251
|
+
$[213] = triggerId;
|
|
1252
|
+
$[214] = triggerStyles;
|
|
1253
|
+
$[215] = t40;
|
|
1254
|
+
} else t40 = $[215];
|
|
1255
|
+
const trigger = t40;
|
|
1256
|
+
let t41;
|
|
1257
|
+
if ($[216] !== inputRef || $[217] !== onClear || $[218] !== setDraft || $[219] !== setIsPopoverOpen || $[220] !== setTagError) {
|
|
1258
|
+
t41 = () => {
|
|
1249
1259
|
inputRef.current?.focus();
|
|
1250
1260
|
setDraft("");
|
|
1251
1261
|
setTagError(null);
|
|
1252
1262
|
setIsPopoverOpen(false);
|
|
1253
1263
|
onClear?.();
|
|
1254
1264
|
};
|
|
1255
|
-
$[
|
|
1256
|
-
$[
|
|
1257
|
-
$[
|
|
1258
|
-
$[
|
|
1259
|
-
$[
|
|
1260
|
-
$[
|
|
1261
|
-
} else
|
|
1262
|
-
const clearText = useEvent(
|
|
1265
|
+
$[216] = inputRef;
|
|
1266
|
+
$[217] = onClear;
|
|
1267
|
+
$[218] = setDraft;
|
|
1268
|
+
$[219] = setIsPopoverOpen;
|
|
1269
|
+
$[220] = setTagError;
|
|
1270
|
+
$[221] = t41;
|
|
1271
|
+
} else t41 = $[221];
|
|
1272
|
+
const clearText = useEvent(t41);
|
|
1263
1273
|
const canClear = !!isClearable && isInteractive && draft !== "";
|
|
1264
|
-
let
|
|
1265
|
-
if ($[
|
|
1266
|
-
|
|
1274
|
+
let t42;
|
|
1275
|
+
if ($[222] !== canClear || $[223] !== clearId || $[224] !== clearText || $[225] !== labelId || $[226] !== size || $[227] !== t) {
|
|
1276
|
+
t42 = canClear ? /* @__PURE__ */ jsx(ItemAction, {
|
|
1267
1277
|
id: clearId,
|
|
1268
1278
|
qa: "TagInputClearButton",
|
|
1269
1279
|
icon: /* @__PURE__ */ jsx(CloseIcon, {}),
|
|
@@ -1273,30 +1283,30 @@ function TagInput(props, ref) {
|
|
|
1273
1283
|
"aria-labelledby": labelId ? `${clearId} ${labelId}` : void 0,
|
|
1274
1284
|
onPress: clearText
|
|
1275
1285
|
}) : null;
|
|
1276
|
-
$[
|
|
1277
|
-
$[
|
|
1278
|
-
$[
|
|
1279
|
-
$[
|
|
1280
|
-
$[
|
|
1281
|
-
$[
|
|
1282
|
-
$[
|
|
1283
|
-
} else
|
|
1284
|
-
const clearButton =
|
|
1286
|
+
$[222] = canClear;
|
|
1287
|
+
$[223] = clearId;
|
|
1288
|
+
$[224] = clearText;
|
|
1289
|
+
$[225] = labelId;
|
|
1290
|
+
$[226] = size;
|
|
1291
|
+
$[227] = t;
|
|
1292
|
+
$[228] = t42;
|
|
1293
|
+
} else t42 = $[228];
|
|
1294
|
+
const clearButton = t42;
|
|
1285
1295
|
const hasActions = clearButton != null || trigger != null;
|
|
1286
1296
|
const T0 = TagInputElement;
|
|
1287
|
-
const
|
|
1288
|
-
let t43;
|
|
1289
|
-
if ($[227] !== clearButton || $[228] !== hasActions || $[229] !== trigger) {
|
|
1290
|
-
t43 = hasActions ? /* @__PURE__ */ jsxs(Fragment$1, { children: [clearButton, trigger] }) : null;
|
|
1291
|
-
$[227] = clearButton;
|
|
1292
|
-
$[228] = hasActions;
|
|
1293
|
-
$[229] = trigger;
|
|
1294
|
-
$[230] = t43;
|
|
1295
|
-
} else t43 = $[230];
|
|
1297
|
+
const t43 = qa || "TagInput";
|
|
1296
1298
|
let t44;
|
|
1297
|
-
if ($[
|
|
1298
|
-
t44 = /* @__PURE__ */
|
|
1299
|
-
|
|
1299
|
+
if ($[229] !== clearButton || $[230] !== hasActions || $[231] !== trigger) {
|
|
1300
|
+
t44 = hasActions ? /* @__PURE__ */ jsxs(Fragment$1, { children: [clearButton, trigger] }) : null;
|
|
1301
|
+
$[229] = clearButton;
|
|
1302
|
+
$[230] = hasActions;
|
|
1303
|
+
$[231] = trigger;
|
|
1304
|
+
$[232] = t44;
|
|
1305
|
+
} else t44 = $[232];
|
|
1306
|
+
let t45;
|
|
1307
|
+
if ($[233] !== autoFocus || $[234] !== effectiveIsInvalid || $[235] !== icon || $[236] !== inputRef || $[237] !== inputStyles || $[238] !== isDisabled || $[239] !== isLoading || $[240] !== isValid || $[241] !== mods || $[242] !== prefix || $[243] !== size || $[244] !== suffix || $[245] !== suffixPosition || $[246] !== t43 || $[247] !== t44 || $[248] !== tagInputProps || $[249] !== wrapperRef || $[250] !== wrapperStyles) {
|
|
1308
|
+
t45 = /* @__PURE__ */ jsx(TextInputBase, {
|
|
1309
|
+
qa: t43,
|
|
1300
1310
|
inputRef,
|
|
1301
1311
|
wrapperRef,
|
|
1302
1312
|
inputProps: tagInputProps,
|
|
@@ -1305,7 +1315,7 @@ function TagInput(props, ref) {
|
|
|
1305
1315
|
prefix,
|
|
1306
1316
|
suffix,
|
|
1307
1317
|
suffixPosition,
|
|
1308
|
-
actions:
|
|
1318
|
+
actions: t44,
|
|
1309
1319
|
size,
|
|
1310
1320
|
autoFocus,
|
|
1311
1321
|
isDisabled,
|
|
@@ -1315,27 +1325,27 @@ function TagInput(props, ref) {
|
|
|
1315
1325
|
styles: wrapperStyles,
|
|
1316
1326
|
inputStyles
|
|
1317
1327
|
});
|
|
1318
|
-
$[
|
|
1319
|
-
$[
|
|
1320
|
-
$[
|
|
1321
|
-
$[
|
|
1322
|
-
$[
|
|
1323
|
-
$[
|
|
1324
|
-
$[
|
|
1325
|
-
$[
|
|
1326
|
-
$[
|
|
1327
|
-
$[
|
|
1328
|
-
$[
|
|
1329
|
-
$[
|
|
1330
|
-
$[
|
|
1331
|
-
$[
|
|
1332
|
-
$[
|
|
1333
|
-
$[
|
|
1334
|
-
$[
|
|
1335
|
-
$[
|
|
1336
|
-
$[
|
|
1337
|
-
} else
|
|
1338
|
-
const
|
|
1328
|
+
$[233] = autoFocus;
|
|
1329
|
+
$[234] = effectiveIsInvalid;
|
|
1330
|
+
$[235] = icon;
|
|
1331
|
+
$[236] = inputRef;
|
|
1332
|
+
$[237] = inputStyles;
|
|
1333
|
+
$[238] = isDisabled;
|
|
1334
|
+
$[239] = isLoading;
|
|
1335
|
+
$[240] = isValid;
|
|
1336
|
+
$[241] = mods;
|
|
1337
|
+
$[242] = prefix;
|
|
1338
|
+
$[243] = size;
|
|
1339
|
+
$[244] = suffix;
|
|
1340
|
+
$[245] = suffixPosition;
|
|
1341
|
+
$[246] = t43;
|
|
1342
|
+
$[247] = t44;
|
|
1343
|
+
$[248] = tagInputProps;
|
|
1344
|
+
$[249] = wrapperRef;
|
|
1345
|
+
$[250] = wrapperStyles;
|
|
1346
|
+
$[251] = t45;
|
|
1347
|
+
} else t45 = $[251];
|
|
1348
|
+
const t46 = tags.length ? /* @__PURE__ */ jsx(TagList, {
|
|
1339
1349
|
id: tagListId,
|
|
1340
1350
|
listRef: tagListRef,
|
|
1341
1351
|
inputRef,
|
|
@@ -1349,50 +1359,50 @@ function TagInput(props, ref) {
|
|
|
1349
1359
|
tagStyles,
|
|
1350
1360
|
onRemove: removeValues
|
|
1351
1361
|
}) : null;
|
|
1352
|
-
const
|
|
1353
|
-
const
|
|
1354
|
-
let
|
|
1355
|
-
if ($[
|
|
1356
|
-
|
|
1357
|
-
hidden:
|
|
1362
|
+
const t47 = true;
|
|
1363
|
+
const t48 = tags.length ? t("tagInput.summary", "Selected: {{values}}.", { values: formatList(tags.map(_temp10)) }) : null;
|
|
1364
|
+
let t49;
|
|
1365
|
+
if ($[252] !== summaryId || $[253] !== t48) {
|
|
1366
|
+
t49 = /* @__PURE__ */ jsx("span", {
|
|
1367
|
+
hidden: t47,
|
|
1358
1368
|
id: summaryId,
|
|
1359
|
-
children:
|
|
1369
|
+
children: t48
|
|
1360
1370
|
});
|
|
1361
|
-
$[
|
|
1362
|
-
$[
|
|
1363
|
-
$[
|
|
1364
|
-
} else
|
|
1365
|
-
let t49;
|
|
1366
|
-
if ($[253] !== hasBackspaceHint || $[254] !== t) {
|
|
1367
|
-
t49 = hasBackspaceHint ? t("tagInput.backspaceHint", "Press Backspace to go to the selected values.") : null;
|
|
1368
|
-
$[253] = hasBackspaceHint;
|
|
1369
|
-
$[254] = t;
|
|
1370
|
-
$[255] = t49;
|
|
1371
|
-
} else t49 = $[255];
|
|
1371
|
+
$[252] = summaryId;
|
|
1372
|
+
$[253] = t48;
|
|
1373
|
+
$[254] = t49;
|
|
1374
|
+
} else t49 = $[254];
|
|
1372
1375
|
let t50;
|
|
1373
|
-
if ($[
|
|
1374
|
-
t50 =
|
|
1376
|
+
if ($[255] !== hasBackspaceHint || $[256] !== t) {
|
|
1377
|
+
t50 = hasBackspaceHint ? t("tagInput.backspaceHint", "Press Backspace to go to the selected values.") : null;
|
|
1378
|
+
$[255] = hasBackspaceHint;
|
|
1379
|
+
$[256] = t;
|
|
1380
|
+
$[257] = t50;
|
|
1381
|
+
} else t50 = $[257];
|
|
1382
|
+
let t51;
|
|
1383
|
+
if ($[258] !== hintId || $[259] !== t50) {
|
|
1384
|
+
t51 = /* @__PURE__ */ jsx("span", {
|
|
1375
1385
|
hidden: true,
|
|
1376
1386
|
id: hintId,
|
|
1377
|
-
children:
|
|
1387
|
+
children: t50
|
|
1378
1388
|
});
|
|
1379
|
-
$[
|
|
1380
|
-
$[
|
|
1381
|
-
$[
|
|
1382
|
-
} else
|
|
1383
|
-
let
|
|
1384
|
-
if ($[
|
|
1385
|
-
|
|
1389
|
+
$[258] = hintId;
|
|
1390
|
+
$[259] = t50;
|
|
1391
|
+
$[260] = t51;
|
|
1392
|
+
} else t51 = $[260];
|
|
1393
|
+
let t52;
|
|
1394
|
+
if ($[261] !== announcement.id || $[262] !== announcement.text) {
|
|
1395
|
+
t52 = /* @__PURE__ */ jsx(VisuallyHidden, {
|
|
1386
1396
|
role: "status",
|
|
1387
1397
|
"aria-live": "polite",
|
|
1388
1398
|
"aria-atomic": "true",
|
|
1389
1399
|
children: /* @__PURE__ */ jsx("span", { children: announcement.text }, announcement.id)
|
|
1390
1400
|
});
|
|
1391
|
-
$[
|
|
1392
|
-
$[
|
|
1393
|
-
$[
|
|
1394
|
-
} else
|
|
1395
|
-
const
|
|
1401
|
+
$[261] = announcement.id;
|
|
1402
|
+
$[262] = announcement.text;
|
|
1403
|
+
$[263] = t52;
|
|
1404
|
+
} else t52 = $[263];
|
|
1405
|
+
const t53 = hasOptions ? /* @__PURE__ */ jsx(ListBoxPopover, {
|
|
1396
1406
|
isOpen: shouldShowPopover,
|
|
1397
1407
|
triggerRef: wrapperRef,
|
|
1398
1408
|
popoverRef,
|
|
@@ -1426,9 +1436,9 @@ function TagInput(props, ref) {
|
|
|
1426
1436
|
onClose: () => setIsPopoverOpen(false),
|
|
1427
1437
|
children: popoverChildren
|
|
1428
1438
|
}) : null;
|
|
1429
|
-
let
|
|
1430
|
-
if ($[
|
|
1431
|
-
|
|
1439
|
+
let t54;
|
|
1440
|
+
if ($[264] !== T0 || $[265] !== className || $[266] !== compositeFocusProps || $[267] !== qaVal || $[268] !== rootRef || $[269] !== style || $[270] !== styles || $[271] !== t45 || $[272] !== t46 || $[273] !== t49 || $[274] !== t51 || $[275] !== t52 || $[276] !== t53) {
|
|
1441
|
+
t54 = /* @__PURE__ */ jsxs(T0, {
|
|
1432
1442
|
ref: rootRef,
|
|
1433
1443
|
className,
|
|
1434
1444
|
style,
|
|
@@ -1436,44 +1446,44 @@ function TagInput(props, ref) {
|
|
|
1436
1446
|
styles,
|
|
1437
1447
|
...compositeFocusProps,
|
|
1438
1448
|
children: [
|
|
1439
|
-
t44,
|
|
1440
1449
|
t45,
|
|
1441
|
-
|
|
1442
|
-
|
|
1450
|
+
t46,
|
|
1451
|
+
t49,
|
|
1443
1452
|
t51,
|
|
1444
|
-
t52
|
|
1453
|
+
t52,
|
|
1454
|
+
t53
|
|
1445
1455
|
]
|
|
1446
1456
|
});
|
|
1447
|
-
$[
|
|
1448
|
-
$[
|
|
1449
|
-
$[
|
|
1450
|
-
$[
|
|
1451
|
-
$[
|
|
1452
|
-
$[
|
|
1453
|
-
$[
|
|
1454
|
-
$[
|
|
1455
|
-
$[
|
|
1456
|
-
$[
|
|
1457
|
-
$[
|
|
1458
|
-
$[
|
|
1459
|
-
$[
|
|
1460
|
-
$[
|
|
1461
|
-
} else
|
|
1462
|
-
const tagInputField =
|
|
1457
|
+
$[264] = T0;
|
|
1458
|
+
$[265] = className;
|
|
1459
|
+
$[266] = compositeFocusProps;
|
|
1460
|
+
$[267] = qaVal;
|
|
1461
|
+
$[268] = rootRef;
|
|
1462
|
+
$[269] = style;
|
|
1463
|
+
$[270] = styles;
|
|
1464
|
+
$[271] = t45;
|
|
1465
|
+
$[272] = t46;
|
|
1466
|
+
$[273] = t49;
|
|
1467
|
+
$[274] = t51;
|
|
1468
|
+
$[275] = t52;
|
|
1469
|
+
$[276] = t53;
|
|
1470
|
+
$[277] = t54;
|
|
1471
|
+
} else t54 = $[277];
|
|
1472
|
+
const tagInputField = t54;
|
|
1463
1473
|
const { children: _children, ...fieldProps } = props;
|
|
1464
1474
|
const fieldRef = useCombinedRefs();
|
|
1465
|
-
let
|
|
1466
|
-
if ($[
|
|
1467
|
-
|
|
1468
|
-
$[
|
|
1469
|
-
$[
|
|
1470
|
-
$[
|
|
1471
|
-
} else
|
|
1475
|
+
let t55;
|
|
1476
|
+
if ($[278] !== message || $[279] !== tagError) {
|
|
1477
|
+
t55 = tagError ? /* @__PURE__ */ jsx("span", { children: tagError.text }, tagError.id) : message;
|
|
1478
|
+
$[278] = message;
|
|
1479
|
+
$[279] = tagError;
|
|
1480
|
+
$[280] = t55;
|
|
1481
|
+
} else t55 = $[280];
|
|
1472
1482
|
return wrapWithField(tagInputField, fieldRef, {
|
|
1473
1483
|
...fieldProps,
|
|
1474
1484
|
labelProps: mergeProps$1(labelProps, userLabelProps),
|
|
1475
1485
|
isInvalid: effectiveIsInvalid,
|
|
1476
|
-
message:
|
|
1486
|
+
message: t55,
|
|
1477
1487
|
errorMessage: tagError ? void 0 : errorMessage
|
|
1478
1488
|
});
|
|
1479
1489
|
}
|
|
@@ -1506,8 +1516,8 @@ function _temp6(rejection_0) {
|
|
|
1506
1516
|
function _temp5(delimiter) {
|
|
1507
1517
|
return delimiter && !LINE_BREAK.test(delimiter);
|
|
1508
1518
|
}
|
|
1509
|
-
function _temp4(
|
|
1510
|
-
return
|
|
1519
|
+
function _temp4(node_1) {
|
|
1520
|
+
return node_1.type === "section";
|
|
1511
1521
|
}
|
|
1512
1522
|
function _temp3() {
|
|
1513
1523
|
return /* @__PURE__ */ new Map();
|