@cube-dev/ui-kit 0.0.0-canary-266381a → 0.0.0-canary-367446a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_internal/hooks/use-debounced-value.js +1 -1
- package/dist/_internal/hooks/use-deprecation-warning.js +1 -1
- package/dist/_internal/hooks/use-event.js +1 -1
- package/dist/_internal/hooks/use-is-first-render.js +1 -1
- package/dist/_internal/hooks/use-sync-ref.js +1 -1
- package/dist/_internal/hooks/use-timer/timer.js +1 -1
- package/dist/_internal/hooks/use-timer/use-timer.js +1 -1
- package/dist/_internal/hooks/use-warn.js +1 -1
- package/dist/components/Block.js +1 -1
- package/dist/components/CollectionItem.js +1 -1
- package/dist/components/GlobalStyles.js +1 -1
- package/dist/components/GridProvider.js +1 -1
- package/dist/components/HiddenInput.js +1 -1
- package/dist/components/Root.js +1 -1
- package/dist/components/actions/Action/Action.js +1 -1
- package/dist/components/actions/Banner/Banner.js +1 -1
- package/dist/components/actions/Button/Button.js +1 -1
- package/dist/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/actions/ButtonSplit/ButtonSplit.js +1 -1
- package/dist/components/actions/ButtonSplit/context.js +1 -1
- package/dist/components/actions/CommandMenu/CommandMenu.js +1 -1
- package/dist/components/actions/CommandMenu/styled.js +1 -1
- package/dist/components/actions/ItemAction/ItemAction.js +1 -1
- package/dist/components/actions/ItemActionContext.js +1 -1
- package/dist/components/actions/ItemActionsWrapper.js +1 -1
- package/dist/components/actions/ItemButton/ItemButton.js +1 -1
- package/dist/components/actions/Link/Link.js +1 -1
- package/dist/components/actions/Menu/Menu.js +1 -1
- package/dist/components/actions/Menu/MenuCollectionItem.js +1 -1
- package/dist/components/actions/Menu/MenuItem.js +1 -1
- package/dist/components/actions/Menu/MenuSection.js +1 -1
- package/dist/components/actions/Menu/MenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubMenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubmenuTriggerContext.js +1 -1
- package/dist/components/actions/Menu/context.js +1 -1
- package/dist/components/actions/Menu/styled.js +1 -1
- package/dist/components/actions/actions-run.js +1 -1
- package/dist/components/actions/index.js +1 -1
- package/dist/components/actions/use-action.js +1 -1
- package/dist/components/actions/use-anchored-menu.js +1 -1
- package/dist/components/actions/use-context-menu.js +1 -1
- package/dist/components/content/ActiveZone/ActiveZone.js +1 -1
- package/dist/components/content/Alert/Alert.js +1 -1
- package/dist/components/content/Alert/use-alert.js +1 -1
- package/dist/components/content/Avatar/Avatar.js +1 -1
- package/dist/components/content/Badge/Badge.js +1 -1
- package/dist/components/content/Card/Card.js +1 -1
- package/dist/components/content/Content.js +1 -1
- package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +1 -1
- package/dist/components/content/CopySnippet/CopySnippet.js +1 -1
- package/dist/components/content/Disclosure/Disclosure.js +1 -1
- package/dist/components/content/Divider.js +1 -1
- package/dist/components/content/Footer.js +1 -1
- package/dist/components/content/Header.js +1 -1
- package/dist/components/content/HotKeys/HotKeys.js +1 -1
- package/dist/components/content/InfoBadge/InfoBadge.js +1 -1
- package/dist/components/content/InlineInput/InlineInput.js +1 -1
- package/dist/components/content/Item/Item.js +1 -1
- package/dist/components/content/Item/ItemWithNativeLinks.js +1 -1
- package/dist/components/content/ItemBadge/ItemBadge.js +1 -1
- package/dist/components/content/ItemCard/ItemCard.js +1 -1
- package/dist/components/content/Layout/GridLayout.js +1 -1
- package/dist/components/content/Layout/Layout.js +1 -1
- package/dist/components/content/Layout/LayoutBlock.js +1 -1
- package/dist/components/content/Layout/LayoutCenter.js +1 -1
- package/dist/components/content/Layout/LayoutContainer.js +1 -1
- package/dist/components/content/Layout/LayoutContent.js +1 -1
- package/dist/components/content/Layout/LayoutContext.js +1 -1
- package/dist/components/content/Layout/LayoutFlex.js +1 -1
- package/dist/components/content/Layout/LayoutFooter.js +1 -1
- package/dist/components/content/Layout/LayoutGrid.js +1 -1
- package/dist/components/content/Layout/LayoutHeader.js +1 -1
- package/dist/components/content/Layout/LayoutPane.js +1 -1
- package/dist/components/content/Layout/LayoutPanel.js +1 -1
- package/dist/components/content/Layout/LayoutPanelHeader.js +1 -1
- package/dist/components/content/Layout/LayoutPanelTransition.js +1 -1
- package/dist/components/content/Layout/LayoutToolbar.js +1 -1
- package/dist/components/content/Layout/hooks/useTinyScrollbar.js +1 -1
- package/dist/components/content/Layout/index.js +1 -1
- package/dist/components/content/Layout/utils.js +1 -1
- package/dist/components/content/Paragraph.js +1 -1
- package/dist/components/content/Placeholder/Placeholder.js +1 -1
- package/dist/components/content/PrismCode/PrismCode.js +1 -1
- package/dist/components/content/PrismCode/prismSetup.js +1 -1
- package/dist/components/content/PrismDiffCode/PrismDiffCode.js +1 -1
- package/dist/components/content/Result/Result.js +1 -1
- package/dist/components/content/Skeleton/Skeleton.js +1 -1
- package/dist/components/content/Tag/Tag.js +1 -1
- package/dist/components/content/Text.js +1 -1
- package/dist/components/content/TextItem/TextItem.js +1 -1
- package/dist/components/content/Title.js +1 -1
- package/dist/components/content/Tree/Tree.js +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/ItemTable/use-item-table-column-widths.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-drag-drop.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-pagination.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-selection.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-sort.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-tree-model.js +1 -1
- package/dist/components/data/TableBase/ColumnResizer.js +1 -1
- package/dist/components/data/TableBase/RowCollection.js +1 -1
- package/dist/components/data/TableBase/TableHeaderCell.js +1 -1
- package/dist/components/data/TableBase/TableRow.js +1 -1
- package/dist/components/data/TableBase/TableView.js +1 -1
- package/dist/components/data/TableBase/TreeGridTable.js +1 -1
- package/dist/components/data/TableBase/column-header.js +1 -1
- package/dist/components/data/TableBase/column-menu.js +1 -1
- package/dist/components/data/TableBase/column-styles.js +1 -1
- package/dist/components/data/TableBase/column-tint.js +1 -1
- package/dist/components/data/TableBase/row-menu.js +1 -1
- package/dist/components/data/TableBase/styled.js +1 -1
- package/dist/components/data/TableBase/table-tree.js +1 -1
- package/dist/components/data/TableBase/types.js +1 -1
- package/dist/components/data/TableBase/use-cell-selection.js +0 -0
- package/dist/components/data/TableBase/use-column-menu.js +1 -1
- package/dist/components/data/TableBase/use-column-order.js +1 -1
- package/dist/components/data/TableBase/use-column-window.js +1 -1
- package/dist/components/data/TableBase/use-container-width.js +1 -1
- package/dist/components/data/TableBase/use-row-move-animation.js +1 -1
- package/dist/components/data/TableBase/use-scrollability.js +1 -1
- package/dist/components/data/TableBase/use-table-columns.js +1 -1
- package/dist/components/data/TableBase/use-table-search.js +1 -1
- package/dist/components/data/TableBase/use-table-selection.js +1 -1
- package/dist/components/data/TableBase/use-table-sort.js +1 -1
- package/dist/components/data/TableBase/use-table-sorts.js +1 -1
- package/dist/components/data/TableBase/use-table-storage.js +1 -1
- package/dist/components/data/TableBase/use-table-tooltip-refresh.js +1 -1
- package/dist/components/data/TableBase/use-table-tree-state.js +1 -1
- package/dist/components/fields/Checkbox/Checkbox.js +1 -1
- package/dist/components/fields/Checkbox/CheckboxGroup.js +1 -1
- package/dist/components/fields/Checkbox/context.js +1 -1
- package/dist/components/fields/ColorInput/ColorInput.js +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.d.ts +4 -4
- 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 +2 -2
- package/dist/components/fields/SearchComboBox/SearchComboBox.js.map +1 -1
- package/dist/components/fields/SearchInput/SearchInput.js +2 -2
- package/dist/components/fields/SearchInput/SearchInput.js.map +1 -1
- package/dist/components/fields/Select/Select.js +1 -1
- package/dist/components/fields/Slider/Gradation.js +1 -1
- package/dist/components/fields/Slider/HueSlider.js +1 -1
- package/dist/components/fields/Slider/RangeSlider.js +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 +335 -329
- package/dist/components/fields/TagInput/TagInput.js.map +1 -1
- package/dist/components/fields/TagInput/TagList.js +1 -1
- package/dist/components/fields/TagInput/useActiveOption.js +1 -1
- package/dist/components/fields/TagInput/useTagError.js +1 -1
- package/dist/components/fields/TextArea/TextArea.js +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/FieldWrapper/field-description.js +1 -1
- package/dist/components/form/Form/Field.js +1 -1
- package/dist/components/form/Form/Form.js +1 -1
- package/dist/components/form/Form/ModernFormRoot.js +1 -1
- package/dist/components/form/Form/ResetButton/ResetButton.js +1 -1
- package/dist/components/form/Form/SubmitButton/SubmitButton.js +1 -1
- package/dist/components/form/Form/SubmitError.js +1 -1
- package/dist/components/form/Form/backend.js +1 -1
- package/dist/components/form/Form/index.js +1 -1
- package/dist/components/form/Form/modern/actions.js +1 -1
- package/dist/components/form/Form/modern/context.js +1 -1
- package/dist/components/form/Form/modern/controller.js +1 -1
- package/dist/components/form/Form/modern/field-binding.js +1 -1
- package/dist/components/form/Form/modern/field.js +1 -1
- package/dist/components/form/Form/modern/react.js +1 -1
- package/dist/components/form/Form/modern/store.js +1 -1
- package/dist/components/form/Form/modern/validation.js +1 -1
- package/dist/components/form/Form/modern/values.js +1 -1
- package/dist/components/form/Form/reset-unbound-controls.js +1 -1
- package/dist/components/form/Form/use-field/use-field-binding.js +1 -1
- package/dist/components/form/Form/use-field/use-field-props.js +26 -22
- package/dist/components/form/Form/use-field/use-field-props.js.map +1 -1
- package/dist/components/form/Form/use-field/use-field.js +1 -1
- package/dist/components/form/Form/use-form.js +1 -1
- package/dist/components/form/Form/validation.js +1 -1
- package/dist/components/form/Label.js +1 -1
- package/dist/components/form/field-chrome.js +30 -10
- package/dist/components/form/field-chrome.js.map +1 -1
- package/dist/components/form/index.d.ts +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.d.ts +15 -4
- package/dist/components/form/wrapper.js +16 -6
- package/dist/components/form/wrapper.js.map +1 -1
- package/dist/components/helpers/DisplayTransition/DisplayTransition.js +1 -1
- package/dist/components/helpers/IconSwitch/IconSwitch.js +1 -1
- package/dist/components/layout/Flex.js +1 -1
- package/dist/components/layout/Flow.js +1 -1
- package/dist/components/layout/Grid.js +1 -1
- package/dist/components/layout/Panel.js +1 -1
- package/dist/components/layout/Prefix.js +1 -1
- package/dist/components/layout/ResizablePanel.js +1 -1
- package/dist/components/layout/Space.js +1 -1
- package/dist/components/layout/Suffix.js +1 -1
- package/dist/components/navigation/Pagination/Pagination.js +1 -1
- package/dist/components/navigation/Pagination/use-pagination.js +1 -1
- package/dist/components/navigation/Tabs/BoardDragActiveProvider.js +1 -1
- package/dist/components/navigation/Tabs/DraggableTabList.js +1 -1
- package/dist/components/navigation/Tabs/TabButton.js +1 -1
- package/dist/components/navigation/Tabs/TabDropIndicator.js +1 -1
- package/dist/components/navigation/Tabs/TabPanel.js +1 -1
- package/dist/components/navigation/Tabs/TabPicker.js +1 -1
- package/dist/components/navigation/Tabs/Tabs.js +1 -1
- package/dist/components/navigation/Tabs/TabsAction.js +1 -1
- package/dist/components/navigation/Tabs/TabsContext.js +1 -1
- package/dist/components/navigation/Tabs/popover-placement.js +1 -1
- package/dist/components/navigation/Tabs/styled.js +1 -1
- package/dist/components/navigation/Tabs/types.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-editing.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-indicator.js +1 -1
- package/dist/components/organisms/StatsCard/StatsCard.js +1 -1
- package/dist/components/other/Calendar/Calendar.js +1 -1
- package/dist/components/other/Calendar/CalendarCell.js +1 -1
- package/dist/components/other/Calendar/CalendarGrid.js +1 -1
- package/dist/components/other/Calendar/CalendarHeader.js +1 -1
- package/dist/components/other/Calendar/CalendarPanel.js +1 -1
- package/dist/components/other/Calendar/PeriodCalendar.js +1 -1
- package/dist/components/other/Calendar/PeriodGrid.js +1 -1
- package/dist/components/other/Calendar/RangeCalendar.js +1 -1
- package/dist/components/other/Calendar/styled.js +1 -1
- package/dist/components/other/CubeLogo/CubeLogo.js +1 -1
- package/dist/components/other/NoDataIcon/NoDataIcon.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.d.ts +15 -4
- package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js +83 -14
- package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js.map +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
- package/dist/components/overlays/AlertDialog/types.d.ts +2 -1
- package/dist/components/overlays/Dialog/Dialog.js +1 -1
- package/dist/components/overlays/Dialog/DialogContainer.js +1 -1
- package/dist/components/overlays/Dialog/DialogForm.js +1 -1
- package/dist/components/overlays/Dialog/DialogTrigger.js +1 -1
- package/dist/components/overlays/Dialog/ModernDialogForm.js +1 -1
- package/dist/components/overlays/Dialog/context.js +1 -1
- package/dist/components/overlays/Dialog/default-button-text.js +1 -1
- package/dist/components/overlays/Dialog/use-content-overflow.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-container.js +1 -1
- package/dist/components/overlays/Modal/Modal.js +1 -1
- package/dist/components/overlays/Modal/OpenTransitionContext.js +1 -1
- package/dist/components/overlays/Modal/Overlay.js +1 -1
- package/dist/components/overlays/Modal/Popover.js +1 -1
- package/dist/components/overlays/Modal/Tray.js +1 -1
- package/dist/components/overlays/Modal/Underlay.js +1 -1
- package/dist/components/overlays/Modal/modal-containment.js +1 -1
- package/dist/components/overlays/Notifications/Notification.js +1 -1
- package/dist/components/overlays/Notifications/NotificationAction.js +1 -1
- package/dist/components/overlays/Notifications/NotificationCard.js +1 -1
- package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
- package/dist/components/overlays/Notifications/NotificationItem.js +1 -1
- package/dist/components/overlays/Notifications/OverlayContainer.js +1 -1
- package/dist/components/overlays/Notifications/OverlayProvider.js +1 -1
- package/dist/components/overlays/Notifications/PersistentNotificationsList.js +1 -1
- package/dist/components/overlays/Notifications/dismissed-storage.js +1 -1
- package/dist/components/overlays/Notifications/format-relative-time.js +1 -1
- package/dist/components/overlays/Notifications/index.js +1 -1
- package/dist/components/overlays/Notifications/use-notification-state.js +1 -1
- package/dist/components/overlays/Notifications/use-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-overlay-timers.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-state.js +1 -1
- package/dist/components/overlays/Notifications/use-toast-state.js +1 -1
- package/dist/components/overlays/Toast/ToastItem.js +1 -1
- package/dist/components/overlays/Toast/index.js +1 -1
- package/dist/components/overlays/Toast/useProgressToast.js +1 -1
- package/dist/components/overlays/Toast/useToast.js +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipProvider.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipTrigger.js +1 -1
- package/dist/components/overlays/Tooltip/context.js +1 -1
- package/dist/components/overlays/Tooltip/split-trigger-props.js +1 -1
- package/dist/components/portal/Portal.js +1 -1
- package/dist/components/portal/PortalProvider.js +1 -1
- package/dist/components/portal/usePortal.js +1 -1
- package/dist/components/shared/DraggableCollection.js +1 -1
- package/dist/components/shared/InvalidIcon.js +1 -1
- package/dist/components/shared/ValidIcon.js +1 -1
- package/dist/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
- package/dist/components/status/Spin/Cube.js +1 -1
- package/dist/components/status/Spin/InternalSpinner.js +1 -1
- package/dist/components/status/Spin/Spin.js +1 -1
- package/dist/components/status/Spin/SpinsContainer.js +1 -1
- package/dist/data/item-themes.js +1 -1
- package/dist/data/themes.js +1 -1
- package/dist/eslint-plugin/defaults.generated.js +1 -1
- package/dist/eslint-plugin/index.js +1 -1
- package/dist/eslint-plugin/rules/no-redundant-default-prop.js +1 -1
- package/dist/i18n/I18nProvider.js +1 -1
- package/dist/i18n/createFormatter.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/instance.js +1 -1
- package/dist/i18n/locales/de-DE/uikit.js +1 -1
- package/dist/i18n/locales/en-US/uikit.js +1 -1
- package/dist/i18n/locales/es-ES/uikit.js +1 -1
- package/dist/i18n/locales/es-MX/uikit.js +1 -1
- package/dist/i18n/locales/fr-FR/uikit.js +1 -1
- package/dist/i18n/locales/it-IT/uikit.js +1 -1
- package/dist/i18n/locales/ja-JP/uikit.js +1 -1
- package/dist/i18n/locales/nb-NO/uikit.js +1 -1
- package/dist/i18n/locales/pt-BR/uikit.js +1 -1
- package/dist/i18n/locales/pt-PT/uikit.js +1 -1
- package/dist/i18n/locales/sv-SE/uikit.js +1 -1
- package/dist/i18n/locales/vi-VN/uikit.js +1 -1
- package/dist/i18n/locales.js +1 -1
- package/dist/i18n/namespace.js +1 -1
- package/dist/i18n/useFormatter.js +1 -1
- package/dist/i18n/useI18n.js +1 -1
- package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
- package/dist/icons/AdjustmentsIcon.js +1 -1
- package/dist/icons/AiIcon.js +1 -1
- package/dist/icons/AreaChartIcon.js +1 -1
- package/dist/icons/ArrowNarrowDownIcon.js +1 -1
- package/dist/icons/ArrowNarrowUpIcon.js +1 -1
- package/dist/icons/BackwardIcon.js +1 -1
- package/dist/icons/BarChartIcon.js +1 -1
- package/dist/icons/BellFilledIcon.js +1 -1
- package/dist/icons/BellIcon.js +1 -1
- package/dist/icons/BooleanIcon.js +1 -1
- package/dist/icons/CalendarEditIcon.js +1 -1
- package/dist/icons/CalendarIcon.js +1 -1
- package/dist/icons/CaretDownIcon.js +1 -1
- package/dist/icons/CaretUpIcon.js +1 -1
- package/dist/icons/ChartAreaStackedIcon.js +1 -1
- package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarGroupedIcon.js +1 -1
- package/dist/icons/ChartBarHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarLineIcon.js +1 -1
- package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBoxPlot2Icon.js +1 -1
- package/dist/icons/ChartBoxPlotIcon.js +1 -1
- package/dist/icons/ChartBubbleIcon.js +1 -1
- package/dist/icons/ChartDonut2Icon.js +1 -1
- package/dist/icons/ChartFunnelIcon.js +1 -1
- package/dist/icons/ChartHeatmapIcon.js +1 -1
- package/dist/icons/ChartKPIIcon.js +1 -1
- package/dist/icons/ChartPie2Icon.js +1 -1
- package/dist/icons/ChartScatterIcon.js +1 -1
- package/dist/icons/CheckCircleFilledIcon.js +1 -1
- package/dist/icons/CheckCircleIcon.js +1 -1
- package/dist/icons/CheckIcon.js +1 -1
- package/dist/icons/CircleFilledIcon.js +1 -1
- package/dist/icons/ClearIcon.js +1 -1
- package/dist/icons/CloseCircleFilledIcon.js +1 -1
- package/dist/icons/CloseCircleIcon.js +1 -1
- package/dist/icons/CloseIcon.js +1 -1
- package/dist/icons/CodeIcon.js +1 -1
- package/dist/icons/ColumnTotalIcon.js +1 -1
- package/dist/icons/CopyIcon.js +1 -1
- package/dist/icons/CountIcon.js +1 -1
- package/dist/icons/CubeIcon.js +1 -1
- package/dist/icons/CubePauseIcon.js +1 -1
- package/dist/icons/CubePlayIcon.js +1 -1
- package/dist/icons/CurrencyDollarIcon.js +1 -1
- package/dist/icons/DangerIcon.js +1 -1
- package/dist/icons/DashboardIcon.js +1 -1
- package/dist/icons/DatabaseIcon.js +1 -1
- package/dist/icons/DecimalDecreaseIcon.js +1 -1
- package/dist/icons/DecimalIncreaseIcon.js +1 -1
- package/dist/icons/DirectionIcon.js +1 -1
- package/dist/icons/DonutIcon.js +1 -1
- package/dist/icons/DownIcon.js +1 -1
- package/dist/icons/EditIcon.js +1 -1
- package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
- package/dist/icons/ExclamationCircleIcon.js +1 -1
- package/dist/icons/ExclamationIcon.js +1 -1
- package/dist/icons/EyeIcon.js +1 -1
- package/dist/icons/EyeInvisibleIcon.js +1 -1
- package/dist/icons/FilterIcon.js +1 -1
- package/dist/icons/FolderFilledIcon.js +1 -1
- package/dist/icons/FolderIcon.js +1 -1
- package/dist/icons/FolderOpenFilledIcon.js +1 -1
- package/dist/icons/FolderOpenIcon.js +1 -1
- package/dist/icons/ForwardIcon.js +1 -1
- package/dist/icons/GripVerticalIcon.js +1 -1
- package/dist/icons/HierarchyIcon.js +1 -1
- package/dist/icons/HierarchyOpenIcon.js +1 -1
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/InfoCircleIcon.js +1 -1
- package/dist/icons/InfoIcon.js +1 -1
- package/dist/icons/KeyIcon.js +1 -1
- package/dist/icons/LeftIcon.js +1 -1
- package/dist/icons/LineChartIcon.js +1 -1
- package/dist/icons/LoadingIcon.js +1 -1
- package/dist/icons/LockFilledIcon.js +1 -1
- package/dist/icons/LockIcon.js +1 -1
- package/dist/icons/MoreIcon.js +1 -1
- package/dist/icons/NotAllowedIcon.js +1 -1
- package/dist/icons/Number123Icon.js +1 -1
- package/dist/icons/NumberIcon.js +1 -1
- package/dist/icons/PauseCircleFilledIcon.js +1 -1
- package/dist/icons/PauseCircleIcon.js +1 -1
- package/dist/icons/PauseIcon.js +1 -1
- package/dist/icons/PercentageIcon.js +1 -1
- package/dist/icons/PieChartIcon.js +1 -1
- package/dist/icons/PipetteIcon.js +1 -1
- package/dist/icons/PlayCircleIcon.js +1 -1
- package/dist/icons/PlayIcon.js +1 -1
- package/dist/icons/PlusIcon.js +1 -1
- package/dist/icons/ProgressBarIcon.js +1 -1
- package/dist/icons/ReloadIcon.js +1 -1
- package/dist/icons/ReportIcon.js +1 -1
- package/dist/icons/ReturnIcon.js +1 -1
- package/dist/icons/RightIcon.js +1 -1
- package/dist/icons/RowTotalsIcon.js +1 -1
- package/dist/icons/SchemeIcon.js +1 -1
- package/dist/icons/SearchIcon.js +1 -1
- package/dist/icons/SemanticQueryIcon.js +1 -1
- package/dist/icons/SettingsIcon.js +1 -1
- package/dist/icons/ShieldFilledIcon.js +1 -1
- package/dist/icons/ShieldIcon.js +1 -1
- package/dist/icons/SlashIcon.js +1 -1
- package/dist/icons/SparklesIcon.js +1 -1
- package/dist/icons/SqlIcon.js +1 -1
- package/dist/icons/StatsIcon.js +1 -1
- package/dist/icons/StopIcon.js +1 -1
- package/dist/icons/StringIcon.js +1 -1
- package/dist/icons/SubtotalsIcon.js +1 -1
- package/dist/icons/SwitchIcon.js +1 -1
- package/dist/icons/TableIcon.js +1 -1
- package/dist/icons/ThumbsDownIcon.js +1 -1
- package/dist/icons/ThumbsUpIcon.js +1 -1
- package/dist/icons/ThunderboltCrossedIcon.js +1 -1
- package/dist/icons/ThunderboltFilledIcon.js +1 -1
- package/dist/icons/ThunderboltIcon.js +1 -1
- package/dist/icons/TimeIcon.js +1 -1
- package/dist/icons/TrashIcon.js +1 -1
- package/dist/icons/UnlockIcon.js +1 -1
- package/dist/icons/UpIcon.js +1 -1
- package/dist/icons/UserGroupIcon.js +1 -1
- package/dist/icons/UserIcon.js +1 -1
- package/dist/icons/UserLockIcon.js +1 -1
- package/dist/icons/ViewIcon.js +1 -1
- package/dist/icons/WarningFilledIcon.js +1 -1
- package/dist/icons/WarningIcon.js +1 -1
- package/dist/icons/wrap-icon.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/probe/canonicalize.js +1 -1
- package/dist/probe/css.js +1 -1
- package/dist/probe/index.js +1 -1
- package/dist/provider.js +1 -1
- package/dist/providers/TrackingProvider.js +1 -1
- package/dist/providers/navigation-url.js +1 -1
- package/dist/providers/navigationAdapter.default.js +1 -1
- package/dist/providers/use-navigation.js +1 -1
- package/dist/shared/form.d.ts +13 -11
- package/dist/tokens/all-tokens.js +1 -1
- package/dist/tokens/base.js +1 -1
- package/dist/tokens/color-seed.js +1 -1
- package/dist/tokens/color-theme.js +1 -1
- package/dist/tokens/colors.js +1 -1
- package/dist/tokens/layout.js +1 -1
- package/dist/tokens/lazy-styles.js +1 -1
- package/dist/tokens/legacy-color.js +1 -1
- package/dist/tokens/palette-config.js +1 -1
- package/dist/tokens/palette.js +1 -1
- package/dist/tokens/resolve.js +1 -1
- package/dist/tokens/shadows.js +1 -1
- package/dist/tokens/sizes.js +1 -1
- package/dist/tokens/spacing.js +1 -1
- package/dist/tokens/typography.js +1 -1
- package/dist/utils/ResizeSensor.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/dotize.js +1 -1
- package/dist/utils/is-dev-env.js +1 -1
- package/dist/utils/modules.js +1 -1
- package/dist/utils/promise.js +1 -1
- package/dist/utils/raf.js +1 -1
- package/dist/utils/random.js +1 -1
- package/dist/utils/range.js +1 -1
- package/dist/utils/react/RenderCache.js +1 -1
- package/dist/utils/react/Slots.js +1 -1
- package/dist/utils/react/chain.js +1 -1
- package/dist/utils/react/disabledProps.js +1 -1
- package/dist/utils/react/forwardRefWithGenerics.js +1 -1
- package/dist/utils/react/index.js +1 -1
- package/dist/utils/react/interactions.js +1 -1
- package/dist/utils/react/isTextOnly.js +1 -1
- package/dist/utils/react/mapProps.js +1 -1
- package/dist/utils/react/mergeProps.js +1 -1
- package/dist/utils/react/nullableValue.js +1 -1
- package/dist/utils/react/overlayKeyPropagation.js +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/FieldProperties.md +3 -3
- package/docs/components/overlays/AlertDialog.md +38 -4
- 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-367446a | 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";
|
|
@@ -12,7 +12,7 @@ import { generateRandomId } from "../../../utils/random.js";
|
|
|
12
12
|
import { CloseIcon } from "../../../icons/CloseIcon.js";
|
|
13
13
|
import { castNullableArrayValue } from "../../../utils/react/nullableValue.js";
|
|
14
14
|
import { useFieldProps } from "../../form/Form/use-field/use-field-props.js";
|
|
15
|
-
import { wrapWithField } from "../../form/wrapper.js";
|
|
15
|
+
import { rendersFieldChrome, wrapWithField } from "../../form/wrapper.js";
|
|
16
16
|
import { getListBoxOptionId } from "../ListBox/optionId.js";
|
|
17
17
|
import { collectVisibleKeys, filterCollectionNodes, getEdgeVisibleKey, getNextVisibleKey } from "../ListBoxPopover/listNavigation.js";
|
|
18
18
|
import { TextInputBase } from "../TextInput/TextInputBase.js";
|
|
@@ -302,7 +302,7 @@ function TagInputClearButton(t0) {
|
|
|
302
302
|
return t4;
|
|
303
303
|
}
|
|
304
304
|
function TagInput(props, ref) {
|
|
305
|
-
const $ = c(
|
|
305
|
+
const $ = c(302);
|
|
306
306
|
let t0;
|
|
307
307
|
if ($[0] !== props) {
|
|
308
308
|
t0 = castNullableArrayValue(props);
|
|
@@ -905,7 +905,13 @@ function TagInput(props, ref) {
|
|
|
905
905
|
} else t23 = $[125];
|
|
906
906
|
const joinDelimiter = t23;
|
|
907
907
|
const joiner = joinDelimiter ? `${joinDelimiter} ` : " ";
|
|
908
|
-
|
|
908
|
+
let t24;
|
|
909
|
+
if ($[126] !== props) {
|
|
910
|
+
t24 = rendersFieldChrome(props);
|
|
911
|
+
$[126] = props;
|
|
912
|
+
$[127] = t24;
|
|
913
|
+
} else t24 = $[127];
|
|
914
|
+
const hasFieldMessage = t24;
|
|
909
915
|
const commitParts = useEvent((parts, source_0) => {
|
|
910
916
|
if (!parts.length) return "";
|
|
911
917
|
const rules = {
|
|
@@ -947,29 +953,29 @@ function TagInput(props, ref) {
|
|
|
947
953
|
setTagError(error);
|
|
948
954
|
return kept.map(_temp6).join(joiner);
|
|
949
955
|
});
|
|
950
|
-
let
|
|
951
|
-
if ($[
|
|
952
|
-
|
|
956
|
+
let t25;
|
|
957
|
+
if ($[128] !== commitParts || $[129] !== delimiters || $[130] !== draft || $[131] !== setDraft) {
|
|
958
|
+
t25 = () => {
|
|
953
959
|
const rest = commitParts(splitTagText(draft, delimiters));
|
|
954
960
|
setDraft(rest);
|
|
955
961
|
return rest;
|
|
956
962
|
};
|
|
957
|
-
$[
|
|
958
|
-
$[
|
|
959
|
-
$[
|
|
960
|
-
$[
|
|
961
|
-
$[
|
|
962
|
-
} else
|
|
963
|
-
const commitDraft = useEvent(
|
|
964
|
-
let
|
|
965
|
-
if ($[
|
|
966
|
-
|
|
963
|
+
$[128] = commitParts;
|
|
964
|
+
$[129] = delimiters;
|
|
965
|
+
$[130] = draft;
|
|
966
|
+
$[131] = setDraft;
|
|
967
|
+
$[132] = t25;
|
|
968
|
+
} else t25 = $[132];
|
|
969
|
+
const commitDraft = useEvent(t25);
|
|
970
|
+
let t26;
|
|
971
|
+
if ($[133] === Symbol.for("react.memo_cache_sentinel")) {
|
|
972
|
+
t26 = () => {
|
|
967
973
|
const rows = tagListRef.current?.querySelectorAll("[role=\"row\"]:not([aria-disabled=\"true\"])");
|
|
968
974
|
rows?.[rows.length - 1]?.focus();
|
|
969
975
|
};
|
|
970
|
-
$[
|
|
971
|
-
} else
|
|
972
|
-
const focusLastTag = useEvent(
|
|
976
|
+
$[133] = t26;
|
|
977
|
+
} else t26 = $[133];
|
|
978
|
+
const focusLastTag = useEvent(t26);
|
|
973
979
|
const removeValues = useEvent((requested) => {
|
|
974
980
|
const keys_0 = requested.filter((key_4) => !isTagLocked(key_4));
|
|
975
981
|
if (!keys_0.length) return;
|
|
@@ -1007,9 +1013,9 @@ function TagInput(props, ref) {
|
|
|
1007
1013
|
setTimeout(() => inputRef.current?.focus(), 0);
|
|
1008
1014
|
});
|
|
1009
1015
|
const isTabbingRef = useRef(false);
|
|
1010
|
-
let
|
|
1011
|
-
if ($[
|
|
1012
|
-
|
|
1016
|
+
let t27;
|
|
1017
|
+
if ($[134] !== hasOptions || $[135] !== hasResults || $[136] !== moveVirtualFocus || $[137] !== setIsFilterActive || $[138] !== setIsPopoverOpen || $[139] !== shouldShowPopover || $[140] !== term) {
|
|
1018
|
+
t27 = (e) => {
|
|
1013
1019
|
if (!hasOptions) return;
|
|
1014
1020
|
e.preventDefault();
|
|
1015
1021
|
if (!shouldShowPopover) {
|
|
@@ -1020,42 +1026,42 @@ function TagInput(props, ref) {
|
|
|
1020
1026
|
const listState = listStateRef.current;
|
|
1021
1027
|
if (listState) moveVirtualFocus(getNextVisibleKey(listState, e.key === "ArrowDown" ? 1 : -1), "user", term);
|
|
1022
1028
|
};
|
|
1023
|
-
$[
|
|
1024
|
-
$[
|
|
1025
|
-
$[
|
|
1026
|
-
$[
|
|
1027
|
-
$[
|
|
1028
|
-
$[
|
|
1029
|
-
$[
|
|
1030
|
-
$[
|
|
1031
|
-
} else
|
|
1032
|
-
const handleArrowKey = useEvent(
|
|
1033
|
-
let
|
|
1034
|
-
if ($[
|
|
1035
|
-
|
|
1029
|
+
$[134] = hasOptions;
|
|
1030
|
+
$[135] = hasResults;
|
|
1031
|
+
$[136] = moveVirtualFocus;
|
|
1032
|
+
$[137] = setIsFilterActive;
|
|
1033
|
+
$[138] = setIsPopoverOpen;
|
|
1034
|
+
$[139] = shouldShowPopover;
|
|
1035
|
+
$[140] = term;
|
|
1036
|
+
$[141] = t27;
|
|
1037
|
+
} else t27 = $[141];
|
|
1038
|
+
const handleArrowKey = useEvent(t27);
|
|
1039
|
+
let t28;
|
|
1040
|
+
if ($[142] !== moveVirtualFocus || $[143] !== term) {
|
|
1041
|
+
t28 = (e_0) => {
|
|
1036
1042
|
e_0.preventDefault();
|
|
1037
1043
|
const listState_0 = listStateRef.current;
|
|
1038
1044
|
if (listState_0) moveVirtualFocus(getEdgeVisibleKey(listState_0, e_0.key === "Home" ? "first" : "last"), "user", term);
|
|
1039
1045
|
};
|
|
1040
|
-
$[
|
|
1041
|
-
$[
|
|
1042
|
-
$[
|
|
1043
|
-
} else
|
|
1044
|
-
const handleEdgeKey = useEvent(
|
|
1045
|
-
let
|
|
1046
|
-
if ($[
|
|
1047
|
-
|
|
1046
|
+
$[142] = moveVirtualFocus;
|
|
1047
|
+
$[143] = term;
|
|
1048
|
+
$[144] = t28;
|
|
1049
|
+
} else t28 = $[144];
|
|
1050
|
+
const handleEdgeKey = useEvent(t28);
|
|
1051
|
+
let t29;
|
|
1052
|
+
if ($[145] !== focusLastTag || $[146] !== setIsPopoverOpen) {
|
|
1053
|
+
t29 = (e_1) => {
|
|
1048
1054
|
if (isComposingKey(e_1)) return;
|
|
1049
1055
|
e_1.preventDefault();
|
|
1050
1056
|
if (e_1.repeat) return;
|
|
1051
1057
|
setIsPopoverOpen(false);
|
|
1052
1058
|
focusLastTag();
|
|
1053
1059
|
};
|
|
1054
|
-
$[
|
|
1055
|
-
$[
|
|
1056
|
-
$[
|
|
1057
|
-
} else
|
|
1058
|
-
const handleBackspaceKey = useEvent(
|
|
1060
|
+
$[145] = focusLastTag;
|
|
1061
|
+
$[146] = setIsPopoverOpen;
|
|
1062
|
+
$[147] = t29;
|
|
1063
|
+
} else t29 = $[147];
|
|
1064
|
+
const handleBackspaceKey = useEvent(t29);
|
|
1059
1065
|
const handleEnterKey = useEvent((e_2) => {
|
|
1060
1066
|
if (isComposingKey(e_2)) return;
|
|
1061
1067
|
const isCurrent = activeOption != null && activeOption.term === term;
|
|
@@ -1077,9 +1083,9 @@ function TagInput(props, ref) {
|
|
|
1077
1083
|
e_2.preventDefault();
|
|
1078
1084
|
if (term) commitDraft();
|
|
1079
1085
|
});
|
|
1080
|
-
let
|
|
1081
|
-
if ($[
|
|
1082
|
-
|
|
1086
|
+
let t30;
|
|
1087
|
+
if ($[148] !== commitParts || $[149] !== delimiters || $[150] !== draft || $[151] !== joiner || $[152] !== setDraft) {
|
|
1088
|
+
t30 = (e_3) => {
|
|
1083
1089
|
if (isComposingKey(e_3)) return;
|
|
1084
1090
|
e_3.preventDefault();
|
|
1085
1091
|
const el = e_3.currentTarget;
|
|
@@ -1087,17 +1093,17 @@ function TagInput(props, ref) {
|
|
|
1087
1093
|
const end = el.selectionEnd ?? start;
|
|
1088
1094
|
setDraft([commitParts(splitTagText(draft.slice(0, start), delimiters)), draft.slice(end).trimStart()].filter(Boolean).join(joiner));
|
|
1089
1095
|
};
|
|
1090
|
-
$[
|
|
1091
|
-
$[
|
|
1092
|
-
$[
|
|
1093
|
-
$[
|
|
1094
|
-
$[
|
|
1095
|
-
$[
|
|
1096
|
-
} else
|
|
1097
|
-
const handleDelimiterKey = useEvent(
|
|
1098
|
-
let
|
|
1099
|
-
if ($[
|
|
1100
|
-
|
|
1096
|
+
$[148] = commitParts;
|
|
1097
|
+
$[149] = delimiters;
|
|
1098
|
+
$[150] = draft;
|
|
1099
|
+
$[151] = joiner;
|
|
1100
|
+
$[152] = setDraft;
|
|
1101
|
+
$[153] = t30;
|
|
1102
|
+
} else t30 = $[153];
|
|
1103
|
+
const handleDelimiterKey = useEvent(t30);
|
|
1104
|
+
let t31;
|
|
1105
|
+
if ($[154] !== draft || $[155] !== setDraft || $[156] !== setIsPopoverOpen || $[157] !== setTagError || $[158] !== shouldShowPopover || $[159] !== tagError) {
|
|
1106
|
+
t31 = (e_4) => {
|
|
1101
1107
|
if (shouldShowPopover) {
|
|
1102
1108
|
e_4.preventDefault();
|
|
1103
1109
|
e_4.stopPropagation();
|
|
@@ -1111,15 +1117,15 @@ function TagInput(props, ref) {
|
|
|
1111
1117
|
setIsPopoverOpen(false);
|
|
1112
1118
|
}
|
|
1113
1119
|
};
|
|
1114
|
-
$[
|
|
1115
|
-
$[
|
|
1116
|
-
$[
|
|
1117
|
-
$[
|
|
1118
|
-
$[
|
|
1119
|
-
$[
|
|
1120
|
-
$[
|
|
1121
|
-
} else
|
|
1122
|
-
const handleEscapeKey = useEvent(
|
|
1120
|
+
$[154] = draft;
|
|
1121
|
+
$[155] = setDraft;
|
|
1122
|
+
$[156] = setIsPopoverOpen;
|
|
1123
|
+
$[157] = setTagError;
|
|
1124
|
+
$[158] = shouldShowPopover;
|
|
1125
|
+
$[159] = tagError;
|
|
1126
|
+
$[160] = t31;
|
|
1127
|
+
} else t31 = $[160];
|
|
1128
|
+
const handleEscapeKey = useEvent(t31);
|
|
1123
1129
|
const handleKeyDown = useEvent((e_5) => {
|
|
1124
1130
|
onKeyDown?.(e_5);
|
|
1125
1131
|
isTabbingRef.current = e_5.key === "Tab" && !e_5.defaultPrevented;
|
|
@@ -1144,9 +1150,9 @@ function TagInput(props, ref) {
|
|
|
1144
1150
|
setDraft(nextDraft);
|
|
1145
1151
|
if (hasOptions && popoverTrigger !== "manual" && nextDraft.trim()) setIsPopoverOpen(true);
|
|
1146
1152
|
});
|
|
1147
|
-
let
|
|
1148
|
-
if ($[
|
|
1149
|
-
|
|
1153
|
+
let t32;
|
|
1154
|
+
if ($[161] !== commitParts || $[162] !== delimiters || $[163] !== draft || $[164] !== isInteractive || $[165] !== setDraft || $[166] !== setTagError) {
|
|
1155
|
+
t32 = (e_6) => {
|
|
1150
1156
|
if (!isInteractive) return;
|
|
1151
1157
|
const pasted = e_6.clipboardData.getData("text");
|
|
1152
1158
|
if (!pasted || splitTagText(pasted, delimiters).length < 2) return;
|
|
@@ -1157,18 +1163,18 @@ function TagInput(props, ref) {
|
|
|
1157
1163
|
setTagError(null);
|
|
1158
1164
|
setDraft(commitParts(splitTagText(`${draft.slice(0, start_0)}\n${pasted}\n${draft.slice(end_0)}`, delimiters)));
|
|
1159
1165
|
};
|
|
1160
|
-
$[
|
|
1161
|
-
$[
|
|
1162
|
-
$[
|
|
1163
|
-
$[
|
|
1164
|
-
$[
|
|
1165
|
-
$[
|
|
1166
|
-
$[
|
|
1167
|
-
} else
|
|
1168
|
-
const handlePaste = useEvent(
|
|
1169
|
-
let
|
|
1170
|
-
if ($[
|
|
1171
|
-
|
|
1166
|
+
$[161] = commitParts;
|
|
1167
|
+
$[162] = delimiters;
|
|
1168
|
+
$[163] = draft;
|
|
1169
|
+
$[164] = isInteractive;
|
|
1170
|
+
$[165] = setDraft;
|
|
1171
|
+
$[166] = setTagError;
|
|
1172
|
+
$[167] = t32;
|
|
1173
|
+
} else t32 = $[167];
|
|
1174
|
+
const handlePaste = useEvent(t32);
|
|
1175
|
+
let t33;
|
|
1176
|
+
if ($[168] !== allowsCustomValue || $[169] !== commitDraft || $[170] !== draft || $[171] !== hasOptions || $[172] !== isInteractive || $[173] !== setDraft || $[174] !== setTagError || $[175] !== shouldCommitOnBlur || $[176] !== term || $[177] !== termOptionKey) {
|
|
1177
|
+
t33 = () => {
|
|
1172
1178
|
if (!term) return "";
|
|
1173
1179
|
if (!shouldCommitOnBlur || !isInteractive) return draft;
|
|
1174
1180
|
if (hasOptions && !allowsCustomValue && termOptionKey == null) {
|
|
@@ -1178,34 +1184,34 @@ function TagInput(props, ref) {
|
|
|
1178
1184
|
}
|
|
1179
1185
|
return commitDraft();
|
|
1180
1186
|
};
|
|
1181
|
-
$[
|
|
1182
|
-
$[
|
|
1183
|
-
$[
|
|
1184
|
-
$[
|
|
1185
|
-
$[
|
|
1186
|
-
$[
|
|
1187
|
-
$[
|
|
1188
|
-
$[
|
|
1189
|
-
$[
|
|
1190
|
-
$[
|
|
1191
|
-
$[
|
|
1192
|
-
} else
|
|
1193
|
-
const settleDraft = useEvent(
|
|
1194
|
-
let
|
|
1195
|
-
if ($[
|
|
1196
|
-
|
|
1187
|
+
$[168] = allowsCustomValue;
|
|
1188
|
+
$[169] = commitDraft;
|
|
1189
|
+
$[170] = draft;
|
|
1190
|
+
$[171] = hasOptions;
|
|
1191
|
+
$[172] = isInteractive;
|
|
1192
|
+
$[173] = setDraft;
|
|
1193
|
+
$[174] = setTagError;
|
|
1194
|
+
$[175] = shouldCommitOnBlur;
|
|
1195
|
+
$[176] = term;
|
|
1196
|
+
$[177] = termOptionKey;
|
|
1197
|
+
$[178] = t33;
|
|
1198
|
+
} else t33 = $[178];
|
|
1199
|
+
const settleDraft = useEvent(t33);
|
|
1200
|
+
let t34;
|
|
1201
|
+
if ($[179] !== cancelPendingClear || $[180] !== onFocus) {
|
|
1202
|
+
t34 = () => {
|
|
1197
1203
|
cancelPendingClear();
|
|
1198
1204
|
onFocus?.();
|
|
1199
1205
|
};
|
|
1200
|
-
$[
|
|
1201
|
-
$[
|
|
1202
|
-
$[
|
|
1203
|
-
} else
|
|
1204
|
-
const handleCompositeFocus = useEvent(
|
|
1205
|
-
let
|
|
1206
|
-
if ($[
|
|
1207
|
-
|
|
1208
|
-
const { isPressing } =
|
|
1206
|
+
$[179] = cancelPendingClear;
|
|
1207
|
+
$[180] = onFocus;
|
|
1208
|
+
$[181] = t34;
|
|
1209
|
+
} else t34 = $[181];
|
|
1210
|
+
const handleCompositeFocus = useEvent(t34);
|
|
1211
|
+
let t35;
|
|
1212
|
+
if ($[182] !== clearTagErrorAfterPress || $[183] !== onBlur || $[184] !== setIsPopoverOpen || $[185] !== setTagError || $[186] !== setUnpickedCustomValues || $[187] !== settleDraft || $[188] !== tagError) {
|
|
1213
|
+
t35 = (t36) => {
|
|
1214
|
+
const { isPressing } = t36;
|
|
1209
1215
|
setIsPopoverOpen(false);
|
|
1210
1216
|
setUnpickedCustomValues([]);
|
|
1211
1217
|
const wasShowingMessage = tagError != null;
|
|
@@ -1213,38 +1219,38 @@ function TagInput(props, ref) {
|
|
|
1213
1219
|
else setTagError(null);
|
|
1214
1220
|
onBlur?.();
|
|
1215
1221
|
};
|
|
1216
|
-
$[
|
|
1217
|
-
$[
|
|
1218
|
-
$[
|
|
1219
|
-
$[
|
|
1220
|
-
$[
|
|
1221
|
-
$[
|
|
1222
|
-
$[
|
|
1223
|
-
$[
|
|
1224
|
-
} else
|
|
1225
|
-
const handleCompositeBlur = useEvent(
|
|
1226
|
-
const
|
|
1227
|
-
const
|
|
1228
|
-
let
|
|
1229
|
-
if ($[
|
|
1230
|
-
|
|
1231
|
-
wrapperRef:
|
|
1232
|
-
popoverRef:
|
|
1222
|
+
$[182] = clearTagErrorAfterPress;
|
|
1223
|
+
$[183] = onBlur;
|
|
1224
|
+
$[184] = setIsPopoverOpen;
|
|
1225
|
+
$[185] = setTagError;
|
|
1226
|
+
$[186] = setUnpickedCustomValues;
|
|
1227
|
+
$[187] = settleDraft;
|
|
1228
|
+
$[188] = tagError;
|
|
1229
|
+
$[189] = t35;
|
|
1230
|
+
} else t35 = $[189];
|
|
1231
|
+
const handleCompositeBlur = useEvent(t35);
|
|
1232
|
+
const t36 = rootRef;
|
|
1233
|
+
const t37 = popoverRef;
|
|
1234
|
+
let t38;
|
|
1235
|
+
if ($[190] !== handleCompositeBlur || $[191] !== handleCompositeFocus || $[192] !== isDisabled || $[193] !== t36 || $[194] !== t37) {
|
|
1236
|
+
t38 = {
|
|
1237
|
+
wrapperRef: t36,
|
|
1238
|
+
popoverRef: t37,
|
|
1233
1239
|
onFocus: handleCompositeFocus,
|
|
1234
1240
|
onBlur: handleCompositeBlur,
|
|
1235
1241
|
isDisabled
|
|
1236
1242
|
};
|
|
1237
|
-
$[
|
|
1238
|
-
$[
|
|
1239
|
-
$[
|
|
1240
|
-
$[
|
|
1241
|
-
$[
|
|
1242
|
-
$[
|
|
1243
|
-
} else
|
|
1244
|
-
const { compositeFocusProps } = useCompositeFocus(
|
|
1245
|
-
let
|
|
1246
|
-
if ($[
|
|
1247
|
-
|
|
1243
|
+
$[190] = handleCompositeBlur;
|
|
1244
|
+
$[191] = handleCompositeFocus;
|
|
1245
|
+
$[192] = isDisabled;
|
|
1246
|
+
$[193] = t36;
|
|
1247
|
+
$[194] = t37;
|
|
1248
|
+
$[195] = t38;
|
|
1249
|
+
} else t38 = $[195];
|
|
1250
|
+
const { compositeFocusProps } = useCompositeFocus(t38);
|
|
1251
|
+
let t39;
|
|
1252
|
+
if ($[196] !== rootRef || $[197] !== setIsPopoverOpen || $[198] !== settleDraft) {
|
|
1253
|
+
t39 = (e_7) => {
|
|
1248
1254
|
const isTabbing = isTabbingRef.current;
|
|
1249
1255
|
const next_4 = e_7.relatedTarget;
|
|
1250
1256
|
isTabbingRef.current = false;
|
|
@@ -1252,24 +1258,24 @@ function TagInput(props, ref) {
|
|
|
1252
1258
|
setIsPopoverOpen(false);
|
|
1253
1259
|
settleDraft();
|
|
1254
1260
|
};
|
|
1255
|
-
$[
|
|
1256
|
-
$[
|
|
1257
|
-
$[
|
|
1258
|
-
$[
|
|
1259
|
-
} else
|
|
1260
|
-
const handleInputBlur = useEvent(
|
|
1261
|
-
let
|
|
1262
|
-
if ($[
|
|
1263
|
-
|
|
1261
|
+
$[196] = rootRef;
|
|
1262
|
+
$[197] = setIsPopoverOpen;
|
|
1263
|
+
$[198] = settleDraft;
|
|
1264
|
+
$[199] = t39;
|
|
1265
|
+
} else t39 = $[199];
|
|
1266
|
+
const handleInputBlur = useEvent(t39);
|
|
1267
|
+
let t40;
|
|
1268
|
+
if ($[200] !== hasOptions || $[201] !== isInteractive || $[202] !== popoverTrigger || $[203] !== setIsPopoverOpen) {
|
|
1269
|
+
t40 = () => {
|
|
1264
1270
|
if (hasOptions && popoverTrigger === "focus" && isInteractive) setIsPopoverOpen(true);
|
|
1265
1271
|
};
|
|
1266
|
-
$[
|
|
1267
|
-
$[
|
|
1268
|
-
$[
|
|
1269
|
-
$[
|
|
1270
|
-
$[
|
|
1271
|
-
} else
|
|
1272
|
-
const handleInputFocus = useEvent(
|
|
1272
|
+
$[200] = hasOptions;
|
|
1273
|
+
$[201] = isInteractive;
|
|
1274
|
+
$[202] = popoverTrigger;
|
|
1275
|
+
$[203] = setIsPopoverOpen;
|
|
1276
|
+
$[204] = t40;
|
|
1277
|
+
} else t40 = $[204];
|
|
1278
|
+
const handleInputFocus = useEvent(t40);
|
|
1273
1279
|
const tags = uniqueValues.map((value_5) => {
|
|
1274
1280
|
const ownProps = tagProps?.(value_5);
|
|
1275
1281
|
const result = !(getOption(value_5) != null || knownLabels.has(value_5)) && validateTag ? validateTag(value_5) : true;
|
|
@@ -1287,9 +1293,9 @@ function TagInput(props, ref) {
|
|
|
1287
1293
|
const hasBackspaceHint = isInteractive && hasRemovableTags;
|
|
1288
1294
|
const lockedKeys = tags.filter(_temp9).map(_temp0);
|
|
1289
1295
|
const optionDisabledKeys = lockedKeys.length ? [...disabledKeySet, ...lockedKeys] : disabledKeys;
|
|
1290
|
-
let
|
|
1291
|
-
if ($[
|
|
1292
|
-
|
|
1296
|
+
let t41;
|
|
1297
|
+
if ($[205] !== autoFocus || $[206] !== draft || $[207] !== effectiveIsInvalid || $[208] !== handleInputChange || $[209] !== id || $[210] !== isDisabled || $[211] !== isReadOnly || $[212] !== isRequired || $[213] !== label || $[214] !== otherProps || $[215] !== placeholder) {
|
|
1298
|
+
t41 = {
|
|
1293
1299
|
...otherProps,
|
|
1294
1300
|
id,
|
|
1295
1301
|
label,
|
|
@@ -1302,31 +1308,31 @@ function TagInput(props, ref) {
|
|
|
1302
1308
|
autoFocus,
|
|
1303
1309
|
onChange: handleInputChange
|
|
1304
1310
|
};
|
|
1305
|
-
$[
|
|
1306
|
-
$[
|
|
1307
|
-
$[
|
|
1308
|
-
$[
|
|
1309
|
-
$[
|
|
1310
|
-
$[
|
|
1311
|
-
$[
|
|
1312
|
-
$[
|
|
1313
|
-
$[
|
|
1314
|
-
$[
|
|
1315
|
-
$[
|
|
1316
|
-
$[
|
|
1317
|
-
} else
|
|
1318
|
-
const { labelProps, inputProps } = useTextField(
|
|
1311
|
+
$[205] = autoFocus;
|
|
1312
|
+
$[206] = draft;
|
|
1313
|
+
$[207] = effectiveIsInvalid;
|
|
1314
|
+
$[208] = handleInputChange;
|
|
1315
|
+
$[209] = id;
|
|
1316
|
+
$[210] = isDisabled;
|
|
1317
|
+
$[211] = isReadOnly;
|
|
1318
|
+
$[212] = isRequired;
|
|
1319
|
+
$[213] = label;
|
|
1320
|
+
$[214] = otherProps;
|
|
1321
|
+
$[215] = placeholder;
|
|
1322
|
+
$[216] = t41;
|
|
1323
|
+
} else t41 = $[216];
|
|
1324
|
+
const { labelProps, inputProps } = useTextField(t41, inputRef);
|
|
1319
1325
|
const ariaLabel = props["aria-label"];
|
|
1320
1326
|
const ariaLabelledby = props["aria-labelledby"];
|
|
1321
1327
|
const labelId = label ? labelProps.id : void 0;
|
|
1322
|
-
let
|
|
1323
|
-
if ($[
|
|
1324
|
-
|
|
1325
|
-
$[
|
|
1326
|
-
$[
|
|
1327
|
-
$[
|
|
1328
|
-
} else
|
|
1329
|
-
const fieldLabelledby =
|
|
1328
|
+
let t42;
|
|
1329
|
+
if ($[217] !== ariaLabelledby || $[218] !== labelId) {
|
|
1330
|
+
t42 = [labelId, ariaLabelledby].filter(Boolean).join(" ") || void 0;
|
|
1331
|
+
$[217] = ariaLabelledby;
|
|
1332
|
+
$[218] = labelId;
|
|
1333
|
+
$[219] = t42;
|
|
1334
|
+
} else t42 = $[219];
|
|
1335
|
+
const fieldLabelledby = t42;
|
|
1330
1336
|
const describedBy = [];
|
|
1331
1337
|
if (inputProps["aria-describedby"]) describedBy.push(inputProps["aria-describedby"]);
|
|
1332
1338
|
if (tags.length) describedBy.push(summaryId);
|
|
@@ -1340,25 +1346,25 @@ function TagInput(props, ref) {
|
|
|
1340
1346
|
"data-input-type": "taginput",
|
|
1341
1347
|
"aria-describedby": describedBy.join(" ") || void 0
|
|
1342
1348
|
}, hasOptions ? getComboboxProps(listBoxId, shouldShowPopover, activeOptionKey) : void 0);
|
|
1343
|
-
let
|
|
1344
|
-
if ($[
|
|
1345
|
-
|
|
1349
|
+
let t43;
|
|
1350
|
+
if ($[220] !== hasResults || $[221] !== inputRef || $[222] !== setIsFilterActive || $[223] !== setIsPopoverOpen || $[224] !== shouldShowPopover) {
|
|
1351
|
+
t43 = () => {
|
|
1346
1352
|
const willOpen = !shouldShowPopover;
|
|
1347
1353
|
if (willOpen && !hasResults) setIsFilterActive(false);
|
|
1348
1354
|
setIsPopoverOpen(willOpen);
|
|
1349
1355
|
inputRef.current?.focus();
|
|
1350
1356
|
};
|
|
1351
|
-
$[
|
|
1352
|
-
$[
|
|
1353
|
-
$[
|
|
1354
|
-
$[
|
|
1355
|
-
$[
|
|
1356
|
-
$[
|
|
1357
|
-
} else
|
|
1358
|
-
const handleTriggerPress = useEvent(
|
|
1359
|
-
let
|
|
1360
|
-
if ($[
|
|
1361
|
-
|
|
1357
|
+
$[220] = hasResults;
|
|
1358
|
+
$[221] = inputRef;
|
|
1359
|
+
$[222] = setIsFilterActive;
|
|
1360
|
+
$[223] = setIsPopoverOpen;
|
|
1361
|
+
$[224] = shouldShowPopover;
|
|
1362
|
+
$[225] = t43;
|
|
1363
|
+
} else t43 = $[225];
|
|
1364
|
+
const handleTriggerPress = useEvent(t43);
|
|
1365
|
+
let t44;
|
|
1366
|
+
if ($[226] !== ariaLabel || $[227] !== fieldLabelledby || $[228] !== handleTriggerPress || $[229] !== hasOptions || $[230] !== hideTrigger || $[231] !== isInteractive || $[232] !== shouldShowPopover || $[233] !== size || $[234] !== triggerId || $[235] !== triggerStyles) {
|
|
1367
|
+
t44 = hasOptions && !hideTrigger ? /* @__PURE__ */ jsx(TagInputTrigger, {
|
|
1362
1368
|
id: triggerId,
|
|
1363
1369
|
size,
|
|
1364
1370
|
ariaLabel,
|
|
@@ -1368,70 +1374,70 @@ function TagInput(props, ref) {
|
|
|
1368
1374
|
styles: triggerStyles,
|
|
1369
1375
|
onPress: handleTriggerPress
|
|
1370
1376
|
}) : null;
|
|
1371
|
-
$[
|
|
1372
|
-
$[
|
|
1373
|
-
$[
|
|
1374
|
-
$[
|
|
1375
|
-
$[
|
|
1376
|
-
$[
|
|
1377
|
-
$[
|
|
1378
|
-
$[
|
|
1379
|
-
$[
|
|
1380
|
-
$[
|
|
1381
|
-
$[
|
|
1382
|
-
} else
|
|
1383
|
-
const trigger =
|
|
1384
|
-
let
|
|
1385
|
-
if ($[
|
|
1386
|
-
|
|
1377
|
+
$[226] = ariaLabel;
|
|
1378
|
+
$[227] = fieldLabelledby;
|
|
1379
|
+
$[228] = handleTriggerPress;
|
|
1380
|
+
$[229] = hasOptions;
|
|
1381
|
+
$[230] = hideTrigger;
|
|
1382
|
+
$[231] = isInteractive;
|
|
1383
|
+
$[232] = shouldShowPopover;
|
|
1384
|
+
$[233] = size;
|
|
1385
|
+
$[234] = triggerId;
|
|
1386
|
+
$[235] = triggerStyles;
|
|
1387
|
+
$[236] = t44;
|
|
1388
|
+
} else t44 = $[236];
|
|
1389
|
+
const trigger = t44;
|
|
1390
|
+
let t45;
|
|
1391
|
+
if ($[237] !== inputRef || $[238] !== onClear || $[239] !== setDraft || $[240] !== setIsPopoverOpen || $[241] !== setTagError) {
|
|
1392
|
+
t45 = () => {
|
|
1387
1393
|
inputRef.current?.focus();
|
|
1388
1394
|
setDraft("");
|
|
1389
1395
|
setTagError(null);
|
|
1390
1396
|
setIsPopoverOpen(false);
|
|
1391
1397
|
onClear?.();
|
|
1392
1398
|
};
|
|
1393
|
-
$[
|
|
1394
|
-
$[
|
|
1395
|
-
$[
|
|
1396
|
-
$[
|
|
1397
|
-
$[
|
|
1398
|
-
$[
|
|
1399
|
-
} else
|
|
1400
|
-
const clearText = useEvent(
|
|
1399
|
+
$[237] = inputRef;
|
|
1400
|
+
$[238] = onClear;
|
|
1401
|
+
$[239] = setDraft;
|
|
1402
|
+
$[240] = setIsPopoverOpen;
|
|
1403
|
+
$[241] = setTagError;
|
|
1404
|
+
$[242] = t45;
|
|
1405
|
+
} else t45 = $[242];
|
|
1406
|
+
const clearText = useEvent(t45);
|
|
1401
1407
|
const canClear = !!isClearable && isInteractive && draft !== "";
|
|
1402
|
-
let
|
|
1403
|
-
if ($[
|
|
1404
|
-
|
|
1408
|
+
let t46;
|
|
1409
|
+
if ($[243] !== ariaLabel || $[244] !== canClear || $[245] !== clearId || $[246] !== clearText || $[247] !== fieldLabelledby || $[248] !== size) {
|
|
1410
|
+
t46 = canClear ? /* @__PURE__ */ jsx(TagInputClearButton, {
|
|
1405
1411
|
id: clearId,
|
|
1406
1412
|
size,
|
|
1407
1413
|
ariaLabel,
|
|
1408
1414
|
fieldLabelledby,
|
|
1409
1415
|
onPress: clearText
|
|
1410
1416
|
}) : null;
|
|
1411
|
-
$[
|
|
1412
|
-
$[
|
|
1413
|
-
$[
|
|
1414
|
-
$[
|
|
1415
|
-
$[
|
|
1416
|
-
$[
|
|
1417
|
-
$[
|
|
1418
|
-
} else
|
|
1419
|
-
const clearButton =
|
|
1417
|
+
$[243] = ariaLabel;
|
|
1418
|
+
$[244] = canClear;
|
|
1419
|
+
$[245] = clearId;
|
|
1420
|
+
$[246] = clearText;
|
|
1421
|
+
$[247] = fieldLabelledby;
|
|
1422
|
+
$[248] = size;
|
|
1423
|
+
$[249] = t46;
|
|
1424
|
+
} else t46 = $[249];
|
|
1425
|
+
const clearButton = t46;
|
|
1420
1426
|
const hasActions = clearButton != null || trigger != null;
|
|
1421
1427
|
const T0 = TagInputElement;
|
|
1422
|
-
const
|
|
1423
|
-
let t47;
|
|
1424
|
-
if ($[248] !== clearButton || $[249] !== hasActions || $[250] !== trigger) {
|
|
1425
|
-
t47 = hasActions ? /* @__PURE__ */ jsxs(Fragment$1, { children: [clearButton, trigger] }) : null;
|
|
1426
|
-
$[248] = clearButton;
|
|
1427
|
-
$[249] = hasActions;
|
|
1428
|
-
$[250] = trigger;
|
|
1429
|
-
$[251] = t47;
|
|
1430
|
-
} else t47 = $[251];
|
|
1428
|
+
const t47 = qa || "TagInput";
|
|
1431
1429
|
let t48;
|
|
1432
|
-
if ($[
|
|
1433
|
-
t48 = /* @__PURE__ */
|
|
1434
|
-
|
|
1430
|
+
if ($[250] !== clearButton || $[251] !== hasActions || $[252] !== trigger) {
|
|
1431
|
+
t48 = hasActions ? /* @__PURE__ */ jsxs(Fragment$1, { children: [clearButton, trigger] }) : null;
|
|
1432
|
+
$[250] = clearButton;
|
|
1433
|
+
$[251] = hasActions;
|
|
1434
|
+
$[252] = trigger;
|
|
1435
|
+
$[253] = t48;
|
|
1436
|
+
} else t48 = $[253];
|
|
1437
|
+
let t49;
|
|
1438
|
+
if ($[254] !== autoFocus || $[255] !== effectiveIsInvalid || $[256] !== icon || $[257] !== inputRef || $[258] !== inputStyles || $[259] !== isDisabled || $[260] !== isLoading || $[261] !== isValid || $[262] !== mods || $[263] !== prefix || $[264] !== size || $[265] !== suffix || $[266] !== suffixPosition || $[267] !== t47 || $[268] !== t48 || $[269] !== tagInputProps || $[270] !== wrapperRef || $[271] !== wrapperStyles) {
|
|
1439
|
+
t49 = /* @__PURE__ */ jsx(TextInputBase, {
|
|
1440
|
+
qa: t47,
|
|
1435
1441
|
inputRef,
|
|
1436
1442
|
wrapperRef,
|
|
1437
1443
|
inputProps: tagInputProps,
|
|
@@ -1440,7 +1446,7 @@ function TagInput(props, ref) {
|
|
|
1440
1446
|
prefix,
|
|
1441
1447
|
suffix,
|
|
1442
1448
|
suffixPosition,
|
|
1443
|
-
actions:
|
|
1449
|
+
actions: t48,
|
|
1444
1450
|
size,
|
|
1445
1451
|
autoFocus,
|
|
1446
1452
|
isDisabled,
|
|
@@ -1450,27 +1456,27 @@ function TagInput(props, ref) {
|
|
|
1450
1456
|
styles: wrapperStyles,
|
|
1451
1457
|
inputStyles
|
|
1452
1458
|
});
|
|
1453
|
-
$[
|
|
1454
|
-
$[
|
|
1455
|
-
$[
|
|
1456
|
-
$[
|
|
1457
|
-
$[
|
|
1458
|
-
$[
|
|
1459
|
-
$[
|
|
1460
|
-
$[
|
|
1461
|
-
$[
|
|
1462
|
-
$[
|
|
1463
|
-
$[
|
|
1464
|
-
$[
|
|
1465
|
-
$[
|
|
1466
|
-
$[
|
|
1467
|
-
$[
|
|
1468
|
-
$[
|
|
1469
|
-
$[
|
|
1470
|
-
$[
|
|
1471
|
-
$[
|
|
1472
|
-
} else
|
|
1473
|
-
const
|
|
1459
|
+
$[254] = autoFocus;
|
|
1460
|
+
$[255] = effectiveIsInvalid;
|
|
1461
|
+
$[256] = icon;
|
|
1462
|
+
$[257] = inputRef;
|
|
1463
|
+
$[258] = inputStyles;
|
|
1464
|
+
$[259] = isDisabled;
|
|
1465
|
+
$[260] = isLoading;
|
|
1466
|
+
$[261] = isValid;
|
|
1467
|
+
$[262] = mods;
|
|
1468
|
+
$[263] = prefix;
|
|
1469
|
+
$[264] = size;
|
|
1470
|
+
$[265] = suffix;
|
|
1471
|
+
$[266] = suffixPosition;
|
|
1472
|
+
$[267] = t47;
|
|
1473
|
+
$[268] = t48;
|
|
1474
|
+
$[269] = tagInputProps;
|
|
1475
|
+
$[270] = wrapperRef;
|
|
1476
|
+
$[271] = wrapperStyles;
|
|
1477
|
+
$[272] = t49;
|
|
1478
|
+
} else t49 = $[272];
|
|
1479
|
+
const t50 = tags.length ? /* @__PURE__ */ jsx(TagList, {
|
|
1474
1480
|
id: tagListId,
|
|
1475
1481
|
listRef: tagListRef,
|
|
1476
1482
|
inputRef,
|
|
@@ -1484,50 +1490,50 @@ function TagInput(props, ref) {
|
|
|
1484
1490
|
tagStyles,
|
|
1485
1491
|
onRemove: removeValues
|
|
1486
1492
|
}) : null;
|
|
1487
|
-
const
|
|
1488
|
-
const
|
|
1489
|
-
let
|
|
1490
|
-
if ($[
|
|
1491
|
-
|
|
1492
|
-
hidden:
|
|
1493
|
+
const t51 = true;
|
|
1494
|
+
const t52 = tags.length ? t("tagInput.summary", "Selected: {{values}}.", { values: formatList(tags.map(_temp1)) }) : null;
|
|
1495
|
+
let t53;
|
|
1496
|
+
if ($[273] !== summaryId || $[274] !== t52) {
|
|
1497
|
+
t53 = /* @__PURE__ */ jsx("span", {
|
|
1498
|
+
hidden: t51,
|
|
1493
1499
|
id: summaryId,
|
|
1494
|
-
children:
|
|
1500
|
+
children: t52
|
|
1495
1501
|
});
|
|
1496
|
-
$[
|
|
1497
|
-
$[
|
|
1498
|
-
$[
|
|
1499
|
-
} else
|
|
1500
|
-
let t53;
|
|
1501
|
-
if ($[274] !== hasBackspaceHint || $[275] !== t) {
|
|
1502
|
-
t53 = hasBackspaceHint ? t("tagInput.backspaceHint", "Press Backspace to go to the selected values.") : null;
|
|
1503
|
-
$[274] = hasBackspaceHint;
|
|
1504
|
-
$[275] = t;
|
|
1505
|
-
$[276] = t53;
|
|
1506
|
-
} else t53 = $[276];
|
|
1502
|
+
$[273] = summaryId;
|
|
1503
|
+
$[274] = t52;
|
|
1504
|
+
$[275] = t53;
|
|
1505
|
+
} else t53 = $[275];
|
|
1507
1506
|
let t54;
|
|
1508
|
-
if ($[
|
|
1509
|
-
t54 =
|
|
1507
|
+
if ($[276] !== hasBackspaceHint || $[277] !== t) {
|
|
1508
|
+
t54 = hasBackspaceHint ? t("tagInput.backspaceHint", "Press Backspace to go to the selected values.") : null;
|
|
1509
|
+
$[276] = hasBackspaceHint;
|
|
1510
|
+
$[277] = t;
|
|
1511
|
+
$[278] = t54;
|
|
1512
|
+
} else t54 = $[278];
|
|
1513
|
+
let t55;
|
|
1514
|
+
if ($[279] !== hintId || $[280] !== t54) {
|
|
1515
|
+
t55 = /* @__PURE__ */ jsx("span", {
|
|
1510
1516
|
hidden: true,
|
|
1511
1517
|
id: hintId,
|
|
1512
|
-
children:
|
|
1518
|
+
children: t54
|
|
1513
1519
|
});
|
|
1514
|
-
$[
|
|
1515
|
-
$[
|
|
1516
|
-
$[
|
|
1517
|
-
} else
|
|
1518
|
-
let
|
|
1519
|
-
if ($[
|
|
1520
|
-
|
|
1520
|
+
$[279] = hintId;
|
|
1521
|
+
$[280] = t54;
|
|
1522
|
+
$[281] = t55;
|
|
1523
|
+
} else t55 = $[281];
|
|
1524
|
+
let t56;
|
|
1525
|
+
if ($[282] !== announcement.id || $[283] !== announcement.text) {
|
|
1526
|
+
t56 = /* @__PURE__ */ jsx(VisuallyHidden, {
|
|
1521
1527
|
role: "status",
|
|
1522
1528
|
"aria-live": "polite",
|
|
1523
1529
|
"aria-atomic": "true",
|
|
1524
1530
|
children: /* @__PURE__ */ jsx("span", { children: announcement.text }, announcement.id)
|
|
1525
1531
|
});
|
|
1526
|
-
$[
|
|
1527
|
-
$[
|
|
1528
|
-
$[
|
|
1529
|
-
} else
|
|
1530
|
-
const
|
|
1532
|
+
$[282] = announcement.id;
|
|
1533
|
+
$[283] = announcement.text;
|
|
1534
|
+
$[284] = t56;
|
|
1535
|
+
} else t56 = $[284];
|
|
1536
|
+
const t57 = hasOptions ? /* @__PURE__ */ jsx(ListBoxPopover, {
|
|
1531
1537
|
isOpen: shouldShowPopover,
|
|
1532
1538
|
triggerRef: wrapperRef,
|
|
1533
1539
|
popoverRef,
|
|
@@ -1562,9 +1568,9 @@ function TagInput(props, ref) {
|
|
|
1562
1568
|
onClose: () => setIsPopoverOpen(false),
|
|
1563
1569
|
children: popoverChildren
|
|
1564
1570
|
}) : null;
|
|
1565
|
-
let
|
|
1566
|
-
if ($[
|
|
1567
|
-
|
|
1571
|
+
let t58;
|
|
1572
|
+
if ($[285] !== T0 || $[286] !== className || $[287] !== compositeFocusProps || $[288] !== qaVal || $[289] !== rootRef || $[290] !== style || $[291] !== styles || $[292] !== t49 || $[293] !== t50 || $[294] !== t53 || $[295] !== t55 || $[296] !== t56 || $[297] !== t57) {
|
|
1573
|
+
t58 = /* @__PURE__ */ jsxs(T0, {
|
|
1568
1574
|
ref: rootRef,
|
|
1569
1575
|
className,
|
|
1570
1576
|
style,
|
|
@@ -1572,44 +1578,44 @@ function TagInput(props, ref) {
|
|
|
1572
1578
|
styles,
|
|
1573
1579
|
...compositeFocusProps,
|
|
1574
1580
|
children: [
|
|
1575
|
-
t48,
|
|
1576
1581
|
t49,
|
|
1577
|
-
|
|
1578
|
-
|
|
1582
|
+
t50,
|
|
1583
|
+
t53,
|
|
1579
1584
|
t55,
|
|
1580
|
-
t56
|
|
1585
|
+
t56,
|
|
1586
|
+
t57
|
|
1581
1587
|
]
|
|
1582
1588
|
});
|
|
1583
|
-
$[
|
|
1584
|
-
$[
|
|
1585
|
-
$[
|
|
1586
|
-
$[
|
|
1587
|
-
$[
|
|
1588
|
-
$[
|
|
1589
|
-
$[
|
|
1590
|
-
$[
|
|
1591
|
-
$[
|
|
1592
|
-
$[
|
|
1593
|
-
$[
|
|
1594
|
-
$[
|
|
1595
|
-
$[
|
|
1596
|
-
$[
|
|
1597
|
-
} else
|
|
1598
|
-
const tagInputField =
|
|
1589
|
+
$[285] = T0;
|
|
1590
|
+
$[286] = className;
|
|
1591
|
+
$[287] = compositeFocusProps;
|
|
1592
|
+
$[288] = qaVal;
|
|
1593
|
+
$[289] = rootRef;
|
|
1594
|
+
$[290] = style;
|
|
1595
|
+
$[291] = styles;
|
|
1596
|
+
$[292] = t49;
|
|
1597
|
+
$[293] = t50;
|
|
1598
|
+
$[294] = t53;
|
|
1599
|
+
$[295] = t55;
|
|
1600
|
+
$[296] = t56;
|
|
1601
|
+
$[297] = t57;
|
|
1602
|
+
$[298] = t58;
|
|
1603
|
+
} else t58 = $[298];
|
|
1604
|
+
const tagInputField = t58;
|
|
1599
1605
|
const { children: _children, ...fieldProps } = props;
|
|
1600
1606
|
const fieldRef = useCombinedRefs();
|
|
1601
|
-
let
|
|
1602
|
-
if ($[
|
|
1603
|
-
|
|
1604
|
-
$[
|
|
1605
|
-
$[
|
|
1606
|
-
$[
|
|
1607
|
-
} else
|
|
1607
|
+
let t59;
|
|
1608
|
+
if ($[299] !== message || $[300] !== tagError) {
|
|
1609
|
+
t59 = tagError ? /* @__PURE__ */ jsx("span", { children: tagError.text }, tagError.id) : message;
|
|
1610
|
+
$[299] = message;
|
|
1611
|
+
$[300] = tagError;
|
|
1612
|
+
$[301] = t59;
|
|
1613
|
+
} else t59 = $[301];
|
|
1608
1614
|
return wrapWithField(tagInputField, fieldRef, {
|
|
1609
1615
|
...fieldProps,
|
|
1610
1616
|
labelProps: mergeProps$1(labelProps, userLabelProps),
|
|
1611
1617
|
isInvalid: effectiveIsInvalid,
|
|
1612
|
-
message:
|
|
1618
|
+
message: t59,
|
|
1613
1619
|
errorMessage: tagError ? void 0 : errorMessage
|
|
1614
1620
|
});
|
|
1615
1621
|
}
|