@cube-dev/ui-kit 0.0.0-canary-05c61de → 0.0.0-canary-5b75dce
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.d.ts +4 -4
- 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 +26 -14
- package/dist/components/content/Layout/Layout.js.map +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.d.ts +11 -0
- package/dist/components/content/Layout/LayoutPanel.js +23 -13
- package/dist/components/content/Layout/LayoutPanel.js.map +1 -1
- package/dist/components/content/Layout/LayoutPanelHeader.js +1 -1
- package/dist/components/content/Layout/LayoutPanelTransition.js +53 -49
- package/dist/components/content/Layout/LayoutPanelTransition.js.map +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.d.ts +14 -14
- 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/ComboBox/comboBoxOptions.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 +107 -112
- package/dist/components/fields/NumberInput/NumberInput.js.map +1 -1
- package/dist/components/fields/NumberInput/StepButton.js +1 -1
- package/dist/components/fields/PasswordInput/PasswordInput.js +1 -2
- package/dist/components/fields/PasswordInput/PasswordInput.js.map +1 -1
- package/dist/components/fields/Picker/Picker.js +1 -1
- package/dist/components/fields/RadioGroup/Radio.d.ts +8 -8
- 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 -3
- package/dist/components/fields/SearchComboBox/SearchComboBox.js.map +1 -1
- package/dist/components/fields/SearchInput/SearchInput.js +47 -47
- 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 +987 -396
- 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 -2
- package/dist/components/fields/TextArea/TextArea.js.map +1 -1
- package/dist/components/fields/TextInput/TextInput.js +1 -2
- package/dist/components/fields/TextInput/TextInput.js.map +1 -1
- package/dist/components/fields/TextInput/TextInputBase.js +1 -1
- package/dist/components/fields/TextInput/displayed-validation.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/fields/option-origin-press.js +1 -1
- package/dist/components/form/FieldWrapper/FieldWrapper.d.ts +9 -8
- package/dist/components/form/FieldWrapper/FieldWrapper.js +5 -2
- package/dist/components/form/FieldWrapper/FieldWrapper.js.map +1 -1
- package/dist/components/form/FieldWrapper/field-description.js +1 -1
- package/dist/components/form/Form/Field.js +1 -1
- package/dist/components/form/Form/Form.js +1 -1
- package/dist/components/form/Form/ModernFormRoot.js +1 -1
- package/dist/components/form/Form/ResetButton/ResetButton.js +1 -1
- package/dist/components/form/Form/SubmitButton/SubmitButton.js +1 -1
- package/dist/components/form/Form/SubmitError.js +1 -1
- package/dist/components/form/Form/backend.js +1 -1
- package/dist/components/form/Form/index.js +1 -1
- package/dist/components/form/Form/modern/actions.js +1 -1
- package/dist/components/form/Form/modern/context.js +1 -1
- package/dist/components/form/Form/modern/controller.js +1 -1
- package/dist/components/form/Form/modern/field-binding.js +1 -1
- package/dist/components/form/Form/modern/field.js +1 -1
- package/dist/components/form/Form/modern/react.js +1 -1
- package/dist/components/form/Form/modern/store.js +1 -1
- package/dist/components/form/Form/modern/validation.js +1 -1
- package/dist/components/form/Form/modern/values.js +1 -1
- package/dist/components/form/Form/reset-unbound-controls.js +1 -1
- package/dist/components/form/Form/use-field/use-field-binding.js +1 -1
- package/dist/components/form/Form/use-field/use-field-props.d.ts +0 -6
- package/dist/components/form/Form/use-field/use-field-props.js +40 -47
- 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 +4 -45
- package/dist/components/form/field-chrome.js.map +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 +5 -10
- package/dist/components/form/wrapper.js +6 -16
- package/dist/components/form/wrapper.js.map +1 -1
- package/dist/components/helpers/DisplayTransition/DisplayTransition.js +1 -1
- package/dist/components/helpers/IconSwitch/IconSwitch.js +1 -1
- package/dist/components/layout/Flex.js +1 -1
- package/dist/components/layout/Flow.js +1 -1
- package/dist/components/layout/Grid.js +1 -1
- package/dist/components/layout/Panel.js +1 -1
- package/dist/components/layout/Prefix.js +1 -1
- package/dist/components/layout/ResizablePanel.js +1 -1
- package/dist/components/layout/Space.js +1 -1
- package/dist/components/layout/Suffix.js +1 -1
- package/dist/components/navigation/Pagination/Pagination.js +1 -1
- package/dist/components/navigation/Pagination/use-pagination.js +1 -1
- package/dist/components/navigation/Tabs/BoardDragActiveProvider.js +1 -1
- package/dist/components/navigation/Tabs/DraggableTabList.js +1 -1
- package/dist/components/navigation/Tabs/TabButton.js +1 -1
- package/dist/components/navigation/Tabs/TabDropIndicator.js +1 -1
- package/dist/components/navigation/Tabs/TabPanel.js +1 -1
- package/dist/components/navigation/Tabs/TabPicker.js +1 -1
- package/dist/components/navigation/Tabs/Tabs.js +1 -1
- package/dist/components/navigation/Tabs/TabsAction.js +1 -1
- package/dist/components/navigation/Tabs/TabsContext.js +1 -1
- package/dist/components/navigation/Tabs/popover-placement.js +1 -1
- package/dist/components/navigation/Tabs/styled.js +1 -1
- package/dist/components/navigation/Tabs/types.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-editing.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-indicator.js +1 -1
- package/dist/components/organisms/StatsCard/StatsCard.js +1 -1
- package/dist/components/other/Calendar/Calendar.js +1 -1
- package/dist/components/other/Calendar/CalendarCell.js +1 -1
- package/dist/components/other/Calendar/CalendarGrid.js +1 -1
- package/dist/components/other/Calendar/CalendarHeader.js +1 -1
- package/dist/components/other/Calendar/CalendarPanel.js +1 -1
- package/dist/components/other/Calendar/PeriodCalendar.js +1 -1
- package/dist/components/other/Calendar/PeriodGrid.js +1 -1
- package/dist/components/other/Calendar/RangeCalendar.js +1 -1
- package/dist/components/other/Calendar/styled.js +1 -1
- package/dist/components/other/CubeLogo/CubeLogo.js +1 -1
- package/dist/components/other/NoDataIcon/NoDataIcon.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
- package/dist/components/overlays/Dialog/Dialog.js +1 -1
- package/dist/components/overlays/Dialog/DialogContainer.js +1 -1
- package/dist/components/overlays/Dialog/DialogForm.js +1 -1
- package/dist/components/overlays/Dialog/DialogTrigger.js +1 -1
- package/dist/components/overlays/Dialog/ModernDialogForm.js +1 -1
- package/dist/components/overlays/Dialog/context.js +1 -1
- package/dist/components/overlays/Dialog/default-button-text.js +1 -1
- package/dist/components/overlays/Dialog/use-content-overflow.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-container.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-open-sync.js +1 -1
- package/dist/components/overlays/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.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/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 +6 -12
- 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 +3 -3
- package/docs/CreateComponent.md +1 -1
- package/docs/FieldProperties.md +7 -10
- package/docs/Usage.md +1 -1
- package/docs/components/content/Layout.md +47 -0
- package/docs/tasty/configuration.md +1 -1
- package/docs/tasty/dsl.md +0 -2
- package/docs/tasty/pipeline.md +2 -2
- package/docs/tasty/react-api.md +0 -7
- package/docs/tasty/runtime-benchmarks.md +7 -7
- package/docs/tasty/tasty-static.md +0 -33
- package/package.json +2 -2
|
@@ -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-5b75dce | 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";
|
|
@@ -11,7 +11,6 @@ import { DirectionIcon } from "../../../icons/DirectionIcon.js";
|
|
|
11
11
|
import { generateRandomId } from "../../../utils/random.js";
|
|
12
12
|
import { CloseIcon } from "../../../icons/CloseIcon.js";
|
|
13
13
|
import { castNullableArrayValue } from "../../../utils/react/nullableValue.js";
|
|
14
|
-
import { withFieldChrome } from "../../form/field-chrome.js";
|
|
15
14
|
import { useFieldProps } from "../../form/Form/use-field/use-field-props.js";
|
|
16
15
|
import { rendersFieldChrome, wrapWithField } from "../../form/wrapper.js";
|
|
17
16
|
import { getListBoxOptionId } from "../ListBox/optionId.js";
|
|
@@ -303,7 +302,7 @@ function TagInputClearButton(t0) {
|
|
|
303
302
|
return t4;
|
|
304
303
|
}
|
|
305
304
|
function TagInput(props, ref) {
|
|
306
|
-
const $ = c(
|
|
305
|
+
const $ = c(302);
|
|
307
306
|
let t0;
|
|
308
307
|
if ($[0] !== props) {
|
|
309
308
|
t0 = castNullableArrayValue(props);
|
|
@@ -320,20 +319,294 @@ function TagInput(props, ref) {
|
|
|
320
319
|
$[2] = t1;
|
|
321
320
|
} else t1 = $[2];
|
|
322
321
|
props = useFieldProps(props, t1);
|
|
323
|
-
props = withFieldChrome(props);
|
|
324
322
|
const { t } = useI18n();
|
|
325
323
|
const { formatList } = useFormatter();
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
324
|
+
let allowsCustomValue;
|
|
325
|
+
let autoComplete;
|
|
326
|
+
let autoFocus;
|
|
327
|
+
let className;
|
|
328
|
+
let containerPadding;
|
|
329
|
+
let defaultInputValue;
|
|
330
|
+
let defaultValue;
|
|
331
|
+
let delimiters;
|
|
332
|
+
let direction;
|
|
333
|
+
let disabledKeys;
|
|
334
|
+
let errorMessage;
|
|
335
|
+
let filter;
|
|
336
|
+
let headingStyles;
|
|
337
|
+
let hideTrigger;
|
|
338
|
+
let icon;
|
|
339
|
+
let id;
|
|
340
|
+
let inputRefProp;
|
|
341
|
+
let inputStyles;
|
|
342
|
+
let inputValueProp;
|
|
343
|
+
let isClearable;
|
|
344
|
+
let isDisabled;
|
|
345
|
+
let isInvalid;
|
|
346
|
+
let isLoading;
|
|
347
|
+
let isReadOnly;
|
|
348
|
+
let isRequired;
|
|
349
|
+
let isValid;
|
|
350
|
+
let items;
|
|
351
|
+
let label;
|
|
352
|
+
let listBoxRefProp;
|
|
353
|
+
let listBoxStyles;
|
|
354
|
+
let listGap;
|
|
355
|
+
let maxTags;
|
|
356
|
+
let message;
|
|
357
|
+
let mods;
|
|
358
|
+
let normalizeTag;
|
|
359
|
+
let onBlur;
|
|
360
|
+
let onChange_0;
|
|
361
|
+
let onClear;
|
|
362
|
+
let onFocus;
|
|
363
|
+
let onInputChange;
|
|
364
|
+
let onKeyDown;
|
|
365
|
+
let onOpenChange;
|
|
366
|
+
let optionStyles;
|
|
367
|
+
let otherProps;
|
|
368
|
+
let overlayOffset;
|
|
369
|
+
let overlayStyles;
|
|
370
|
+
let placeholder;
|
|
371
|
+
let popoverRefProp;
|
|
372
|
+
let popoverTrigger;
|
|
373
|
+
let prefix;
|
|
374
|
+
let qa;
|
|
375
|
+
let qaVal;
|
|
376
|
+
let renderChildren;
|
|
377
|
+
let sectionStyles;
|
|
378
|
+
let shouldCommitOnBlur;
|
|
379
|
+
let shouldFlip;
|
|
380
|
+
let size;
|
|
381
|
+
let style;
|
|
382
|
+
let suffix;
|
|
383
|
+
let suffixPosition;
|
|
384
|
+
let t2;
|
|
385
|
+
let tagListStyles;
|
|
386
|
+
let tagProps;
|
|
387
|
+
let tagStyles;
|
|
388
|
+
let triggerStyles;
|
|
389
|
+
let userLabelProps;
|
|
390
|
+
let validateTag;
|
|
391
|
+
let valueProp;
|
|
392
|
+
let wrapperRefProp;
|
|
393
|
+
let wrapperStyles;
|
|
394
|
+
if ($[3] !== props) {
|
|
395
|
+
const { qa: t3, id: t4, label: t5, value: t6, defaultValue: t7, onChange: t8, inputValue: t9, defaultInputValue: t10, onInputChange: t11, placeholder: t12, autoFocus: t13, autoComplete: t14, onFocus: t15, onBlur: t16, onKeyDown: t17, delimiters: t18, validateTag: t19, normalizeTag: t20, maxTags: t21, shouldCommitOnBlur: t22, isClearable: t23, onClear: t24, items: t25, children: t26, allowsCustomValue: t27, filter: t28, disabledKeys: t29, popoverTrigger: t30, onOpenChange: t31, hideTrigger: t32, direction: t33, shouldFlip: t34, overlayOffset: t35, containerPadding: t36, tagProps: t37, icon: t38, prefix: t39, suffix: t40, suffixPosition: t41, size: t42, isDisabled: t43, isReadOnly: t44, isRequired: t45, isLoading: t46, isInvalid: t47, isValid: t48, message: t49, errorMessage: t50, inputRef: t51, wrapperRef: t52, popoverRef: t53, listBoxRef: t54, wrapperStyles: t55, inputStyles: t56, tagListStyles: t57, tagStyles: t58, triggerStyles: t59, overlayStyles: t60, listBoxStyles: t61, optionStyles: t62, sectionStyles: t63, headingStyles: t64, listGap: t65, labelProps: t66, mods: t67, className: t68, style: t69, qaVal: t70, name, form, ...t71 } = props;
|
|
396
|
+
qa = t3;
|
|
397
|
+
id = t4;
|
|
398
|
+
label = t5;
|
|
399
|
+
valueProp = t6;
|
|
400
|
+
defaultValue = t7;
|
|
401
|
+
onChange_0 = t8;
|
|
402
|
+
inputValueProp = t9;
|
|
403
|
+
defaultInputValue = t10;
|
|
404
|
+
onInputChange = t11;
|
|
405
|
+
placeholder = t12;
|
|
406
|
+
autoFocus = t13;
|
|
407
|
+
onFocus = t15;
|
|
408
|
+
onBlur = t16;
|
|
409
|
+
onKeyDown = t17;
|
|
410
|
+
validateTag = t19;
|
|
411
|
+
normalizeTag = t20;
|
|
412
|
+
maxTags = t21;
|
|
413
|
+
isClearable = t23;
|
|
414
|
+
onClear = t24;
|
|
415
|
+
items = t25;
|
|
416
|
+
renderChildren = t26;
|
|
417
|
+
allowsCustomValue = t27;
|
|
418
|
+
filter = t28;
|
|
419
|
+
disabledKeys = t29;
|
|
420
|
+
onOpenChange = t31;
|
|
421
|
+
hideTrigger = t32;
|
|
422
|
+
tagProps = t37;
|
|
423
|
+
icon = t38;
|
|
424
|
+
prefix = t39;
|
|
425
|
+
suffix = t40;
|
|
426
|
+
suffixPosition = t41;
|
|
427
|
+
isDisabled = t43;
|
|
428
|
+
isReadOnly = t44;
|
|
429
|
+
isRequired = t45;
|
|
430
|
+
isLoading = t46;
|
|
431
|
+
isInvalid = t47;
|
|
432
|
+
isValid = t48;
|
|
433
|
+
message = t49;
|
|
434
|
+
errorMessage = t50;
|
|
435
|
+
inputRefProp = t51;
|
|
436
|
+
wrapperRefProp = t52;
|
|
437
|
+
popoverRefProp = t53;
|
|
438
|
+
listBoxRefProp = t54;
|
|
439
|
+
wrapperStyles = t55;
|
|
440
|
+
inputStyles = t56;
|
|
441
|
+
tagListStyles = t57;
|
|
442
|
+
tagStyles = t58;
|
|
443
|
+
triggerStyles = t59;
|
|
444
|
+
overlayStyles = t60;
|
|
445
|
+
listBoxStyles = t61;
|
|
446
|
+
optionStyles = t62;
|
|
447
|
+
sectionStyles = t63;
|
|
448
|
+
headingStyles = t64;
|
|
449
|
+
listGap = t65;
|
|
450
|
+
userLabelProps = t66;
|
|
451
|
+
mods = t67;
|
|
452
|
+
className = t68;
|
|
453
|
+
style = t69;
|
|
454
|
+
qaVal = t70;
|
|
455
|
+
otherProps = t71;
|
|
456
|
+
autoComplete = t14 === void 0 ? "off" : t14;
|
|
457
|
+
delimiters = t18 === void 0 ? DEFAULT_DELIMITERS : t18;
|
|
458
|
+
shouldCommitOnBlur = t22 === void 0 ? true : t22;
|
|
459
|
+
popoverTrigger = t30 === void 0 ? "input" : t30;
|
|
460
|
+
direction = t33 === void 0 ? "bottom" : t33;
|
|
461
|
+
shouldFlip = t34 === void 0 ? true : t34;
|
|
462
|
+
overlayOffset = t35 === void 0 ? 8 : t35;
|
|
463
|
+
containerPadding = t36 === void 0 ? 8 : t36;
|
|
464
|
+
size = t42 === void 0 ? "medium" : t42;
|
|
465
|
+
t2 = extractStyles(otherProps, CONTAINER_STYLES);
|
|
466
|
+
$[3] = props;
|
|
467
|
+
$[4] = allowsCustomValue;
|
|
468
|
+
$[5] = autoComplete;
|
|
469
|
+
$[6] = autoFocus;
|
|
470
|
+
$[7] = className;
|
|
471
|
+
$[8] = containerPadding;
|
|
472
|
+
$[9] = defaultInputValue;
|
|
473
|
+
$[10] = defaultValue;
|
|
474
|
+
$[11] = delimiters;
|
|
475
|
+
$[12] = direction;
|
|
476
|
+
$[13] = disabledKeys;
|
|
477
|
+
$[14] = errorMessage;
|
|
478
|
+
$[15] = filter;
|
|
479
|
+
$[16] = headingStyles;
|
|
480
|
+
$[17] = hideTrigger;
|
|
481
|
+
$[18] = icon;
|
|
482
|
+
$[19] = id;
|
|
483
|
+
$[20] = inputRefProp;
|
|
484
|
+
$[21] = inputStyles;
|
|
485
|
+
$[22] = inputValueProp;
|
|
486
|
+
$[23] = isClearable;
|
|
487
|
+
$[24] = isDisabled;
|
|
488
|
+
$[25] = isInvalid;
|
|
489
|
+
$[26] = isLoading;
|
|
490
|
+
$[27] = isReadOnly;
|
|
491
|
+
$[28] = isRequired;
|
|
492
|
+
$[29] = isValid;
|
|
493
|
+
$[30] = items;
|
|
494
|
+
$[31] = label;
|
|
495
|
+
$[32] = listBoxRefProp;
|
|
496
|
+
$[33] = listBoxStyles;
|
|
497
|
+
$[34] = listGap;
|
|
498
|
+
$[35] = maxTags;
|
|
499
|
+
$[36] = message;
|
|
500
|
+
$[37] = mods;
|
|
501
|
+
$[38] = normalizeTag;
|
|
502
|
+
$[39] = onBlur;
|
|
503
|
+
$[40] = onChange_0;
|
|
504
|
+
$[41] = onClear;
|
|
505
|
+
$[42] = onFocus;
|
|
506
|
+
$[43] = onInputChange;
|
|
507
|
+
$[44] = onKeyDown;
|
|
508
|
+
$[45] = onOpenChange;
|
|
509
|
+
$[46] = optionStyles;
|
|
510
|
+
$[47] = otherProps;
|
|
511
|
+
$[48] = overlayOffset;
|
|
512
|
+
$[49] = overlayStyles;
|
|
513
|
+
$[50] = placeholder;
|
|
514
|
+
$[51] = popoverRefProp;
|
|
515
|
+
$[52] = popoverTrigger;
|
|
516
|
+
$[53] = prefix;
|
|
517
|
+
$[54] = qa;
|
|
518
|
+
$[55] = qaVal;
|
|
519
|
+
$[56] = renderChildren;
|
|
520
|
+
$[57] = sectionStyles;
|
|
521
|
+
$[58] = shouldCommitOnBlur;
|
|
522
|
+
$[59] = shouldFlip;
|
|
523
|
+
$[60] = size;
|
|
524
|
+
$[61] = style;
|
|
525
|
+
$[62] = suffix;
|
|
526
|
+
$[63] = suffixPosition;
|
|
527
|
+
$[64] = t2;
|
|
528
|
+
$[65] = tagListStyles;
|
|
529
|
+
$[66] = tagProps;
|
|
530
|
+
$[67] = tagStyles;
|
|
531
|
+
$[68] = triggerStyles;
|
|
532
|
+
$[69] = userLabelProps;
|
|
533
|
+
$[70] = validateTag;
|
|
534
|
+
$[71] = valueProp;
|
|
535
|
+
$[72] = wrapperRefProp;
|
|
536
|
+
$[73] = wrapperStyles;
|
|
537
|
+
} else {
|
|
538
|
+
allowsCustomValue = $[4];
|
|
539
|
+
autoComplete = $[5];
|
|
540
|
+
autoFocus = $[6];
|
|
541
|
+
className = $[7];
|
|
542
|
+
containerPadding = $[8];
|
|
543
|
+
defaultInputValue = $[9];
|
|
544
|
+
defaultValue = $[10];
|
|
545
|
+
delimiters = $[11];
|
|
546
|
+
direction = $[12];
|
|
547
|
+
disabledKeys = $[13];
|
|
548
|
+
errorMessage = $[14];
|
|
549
|
+
filter = $[15];
|
|
550
|
+
headingStyles = $[16];
|
|
551
|
+
hideTrigger = $[17];
|
|
552
|
+
icon = $[18];
|
|
553
|
+
id = $[19];
|
|
554
|
+
inputRefProp = $[20];
|
|
555
|
+
inputStyles = $[21];
|
|
556
|
+
inputValueProp = $[22];
|
|
557
|
+
isClearable = $[23];
|
|
558
|
+
isDisabled = $[24];
|
|
559
|
+
isInvalid = $[25];
|
|
560
|
+
isLoading = $[26];
|
|
561
|
+
isReadOnly = $[27];
|
|
562
|
+
isRequired = $[28];
|
|
563
|
+
isValid = $[29];
|
|
564
|
+
items = $[30];
|
|
565
|
+
label = $[31];
|
|
566
|
+
listBoxRefProp = $[32];
|
|
567
|
+
listBoxStyles = $[33];
|
|
568
|
+
listGap = $[34];
|
|
569
|
+
maxTags = $[35];
|
|
570
|
+
message = $[36];
|
|
571
|
+
mods = $[37];
|
|
572
|
+
normalizeTag = $[38];
|
|
573
|
+
onBlur = $[39];
|
|
574
|
+
onChange_0 = $[40];
|
|
575
|
+
onClear = $[41];
|
|
576
|
+
onFocus = $[42];
|
|
577
|
+
onInputChange = $[43];
|
|
578
|
+
onKeyDown = $[44];
|
|
579
|
+
onOpenChange = $[45];
|
|
580
|
+
optionStyles = $[46];
|
|
581
|
+
otherProps = $[47];
|
|
582
|
+
overlayOffset = $[48];
|
|
583
|
+
overlayStyles = $[49];
|
|
584
|
+
placeholder = $[50];
|
|
585
|
+
popoverRefProp = $[51];
|
|
586
|
+
popoverTrigger = $[52];
|
|
587
|
+
prefix = $[53];
|
|
588
|
+
qa = $[54];
|
|
589
|
+
qaVal = $[55];
|
|
590
|
+
renderChildren = $[56];
|
|
591
|
+
sectionStyles = $[57];
|
|
592
|
+
shouldCommitOnBlur = $[58];
|
|
593
|
+
shouldFlip = $[59];
|
|
594
|
+
size = $[60];
|
|
595
|
+
style = $[61];
|
|
596
|
+
suffix = $[62];
|
|
597
|
+
suffixPosition = $[63];
|
|
598
|
+
t2 = $[64];
|
|
599
|
+
tagListStyles = $[65];
|
|
600
|
+
tagProps = $[66];
|
|
601
|
+
tagStyles = $[67];
|
|
602
|
+
triggerStyles = $[68];
|
|
603
|
+
userLabelProps = $[69];
|
|
604
|
+
validateTag = $[70];
|
|
605
|
+
valueProp = $[71];
|
|
606
|
+
wrapperRefProp = $[72];
|
|
607
|
+
wrapperStyles = $[73];
|
|
608
|
+
}
|
|
609
|
+
const styles = t2;
|
|
337
610
|
const rootRef = useCombinedRefs(ref);
|
|
338
611
|
const inputRef = useCombinedRefs(inputRefProp);
|
|
339
612
|
const wrapperRef = useCombinedRefs(wrapperRefProp);
|
|
@@ -341,30 +614,36 @@ function TagInput(props, ref) {
|
|
|
341
614
|
const listBoxRef = useCombinedRefs(listBoxRefProp);
|
|
342
615
|
const tagListRef = useRef(null);
|
|
343
616
|
const listStateRef = useRef(null);
|
|
344
|
-
let
|
|
345
|
-
if ($[
|
|
346
|
-
|
|
347
|
-
$[
|
|
348
|
-
} else
|
|
349
|
-
const listBoxId = `TagInputListBox-${
|
|
617
|
+
let t3;
|
|
618
|
+
if ($[74] === Symbol.for("react.memo_cache_sentinel")) {
|
|
619
|
+
t3 = generateRandomId();
|
|
620
|
+
$[74] = t3;
|
|
621
|
+
} else t3 = $[74];
|
|
622
|
+
const listBoxId = `TagInputListBox-${t3}`;
|
|
350
623
|
const tagListId = useId$1();
|
|
351
624
|
const summaryId = useId$1();
|
|
352
625
|
const hintId = useId$1();
|
|
353
626
|
const triggerId = useId$1();
|
|
354
627
|
const clearId = useId$1();
|
|
355
|
-
|
|
628
|
+
let t4;
|
|
629
|
+
if ($[75] !== defaultValue) {
|
|
630
|
+
t4 = defaultValue ?? [];
|
|
631
|
+
$[75] = defaultValue;
|
|
632
|
+
$[76] = t4;
|
|
633
|
+
} else t4 = $[76];
|
|
634
|
+
const [values, setValues] = useControlledState(valueProp, t4, onChange_0);
|
|
356
635
|
const uniqueValues = [...new Set((values ?? []).map(String))];
|
|
357
636
|
const [draft, setDraftState] = useControlledState(inputValueProp, defaultInputValue ?? "", onInputChange);
|
|
358
637
|
const { tagError, setTagError, clearTagErrorAfterPress, cancelPendingClear } = useTagError();
|
|
359
|
-
let
|
|
360
|
-
if ($[
|
|
361
|
-
|
|
638
|
+
let t5;
|
|
639
|
+
if ($[77] === Symbol.for("react.memo_cache_sentinel")) {
|
|
640
|
+
t5 = {
|
|
362
641
|
id: 0,
|
|
363
642
|
text: ""
|
|
364
643
|
};
|
|
365
|
-
$[
|
|
366
|
-
} else
|
|
367
|
-
const [announcement, setAnnouncement] = useState(
|
|
644
|
+
$[77] = t5;
|
|
645
|
+
} else t5 = $[77];
|
|
646
|
+
const [announcement, setAnnouncement] = useState(t5);
|
|
368
647
|
let children = renderChildren;
|
|
369
648
|
if (items && typeof renderChildren === "function") children = Array.from(items).map((item, index) => {
|
|
370
649
|
const rendered = renderChildren(item);
|
|
@@ -376,40 +655,59 @@ function TagInput(props, ref) {
|
|
|
376
655
|
children,
|
|
377
656
|
selectionMode: "none"
|
|
378
657
|
}).collection;
|
|
379
|
-
let
|
|
380
|
-
if ($[
|
|
381
|
-
|
|
658
|
+
let t6;
|
|
659
|
+
if ($[78] !== collection) {
|
|
660
|
+
t6 = (key) => {
|
|
382
661
|
const node = collection.getItem(key);
|
|
383
662
|
return node?.type === "item" ? node : null;
|
|
384
663
|
};
|
|
385
|
-
$[
|
|
386
|
-
$[
|
|
387
|
-
} else
|
|
388
|
-
const getOption =
|
|
389
|
-
let
|
|
390
|
-
if ($[
|
|
391
|
-
|
|
392
|
-
$[
|
|
393
|
-
} else
|
|
394
|
-
const { contains } = useFilter(
|
|
664
|
+
$[78] = collection;
|
|
665
|
+
$[79] = t6;
|
|
666
|
+
} else t6 = $[79];
|
|
667
|
+
const getOption = t6;
|
|
668
|
+
let t7;
|
|
669
|
+
if ($[80] === Symbol.for("react.memo_cache_sentinel")) {
|
|
670
|
+
t7 = { sensitivity: "base" };
|
|
671
|
+
$[80] = t7;
|
|
672
|
+
} else t7 = $[80];
|
|
673
|
+
const { contains } = useFilter(t7);
|
|
395
674
|
const textFilterFn = filter === false ? showEveryOption : filter || contains;
|
|
396
675
|
const [isFilterActive, setIsFilterActive] = useState(false);
|
|
397
676
|
const term = draft.trim();
|
|
398
677
|
const [knownLabels, setKnownLabels] = useState(_temp2);
|
|
399
|
-
let
|
|
400
|
-
if ($[
|
|
401
|
-
|
|
402
|
-
$[
|
|
403
|
-
$[
|
|
404
|
-
$[
|
|
405
|
-
} else
|
|
406
|
-
const getOptionLabel =
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
678
|
+
let t8;
|
|
679
|
+
if ($[81] !== getOption || $[82] !== knownLabels) {
|
|
680
|
+
t8 = (key_0) => getOption(key_0)?.textValue || knownLabels.get(key_0) || key_0;
|
|
681
|
+
$[81] = getOption;
|
|
682
|
+
$[82] = knownLabels;
|
|
683
|
+
$[83] = t8;
|
|
684
|
+
} else t8 = $[83];
|
|
685
|
+
const getOptionLabel = t8;
|
|
686
|
+
let t9;
|
|
687
|
+
if ($[84] !== getOptionLabel || $[85] !== tagProps) {
|
|
688
|
+
t9 = (key_1) => textLabel(tagProps?.(key_1)?.children) ?? getOptionLabel(key_1);
|
|
689
|
+
$[84] = getOptionLabel;
|
|
690
|
+
$[85] = tagProps;
|
|
691
|
+
$[86] = t9;
|
|
692
|
+
} else t9 = $[86];
|
|
693
|
+
const getTagLabel = t9;
|
|
694
|
+
let t10;
|
|
695
|
+
if ($[87] !== tagProps) {
|
|
696
|
+
t10 = (key_2) => !!tagProps?.(key_2)?.isDisabled;
|
|
697
|
+
$[87] = tagProps;
|
|
698
|
+
$[88] = t10;
|
|
699
|
+
} else t10 = $[88];
|
|
700
|
+
const isTagLocked = t10;
|
|
701
|
+
let t11;
|
|
702
|
+
if ($[89] !== disabledKeys) {
|
|
703
|
+
t11 = new Set([...disabledKeys ?? []].map(String));
|
|
704
|
+
$[89] = disabledKeys;
|
|
705
|
+
$[90] = t11;
|
|
706
|
+
} else t11 = $[90];
|
|
707
|
+
const disabledKeySet = t11;
|
|
708
|
+
let t12;
|
|
709
|
+
if ($[91] !== getOption || $[92] !== knownLabels) {
|
|
710
|
+
t12 = (keys) => {
|
|
413
711
|
let next = null;
|
|
414
712
|
for (const key_3 of keys) {
|
|
415
713
|
const label_0 = getOption(key_3)?.textValue;
|
|
@@ -420,40 +718,62 @@ function TagInput(props, ref) {
|
|
|
420
718
|
}
|
|
421
719
|
if (next) setKnownLabels(next);
|
|
422
720
|
};
|
|
423
|
-
$[
|
|
424
|
-
$[
|
|
425
|
-
$[
|
|
426
|
-
} else
|
|
427
|
-
const rememberLabels = useEvent(
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
const optionKey = findOptionKey(text_0);
|
|
435
|
-
if (optionKey != null || !normalizeTag) return {
|
|
436
|
-
optionKey,
|
|
437
|
-
typed: text_0
|
|
438
|
-
};
|
|
439
|
-
const typed = normalizeTag(text_0).trim();
|
|
440
|
-
return {
|
|
441
|
-
optionKey: typed ? findOptionKey(typed) : null,
|
|
442
|
-
typed
|
|
721
|
+
$[91] = getOption;
|
|
722
|
+
$[92] = knownLabels;
|
|
723
|
+
$[93] = t12;
|
|
724
|
+
} else t12 = $[93];
|
|
725
|
+
const rememberLabels = useEvent(t12);
|
|
726
|
+
let t13;
|
|
727
|
+
if ($[94] !== allowsCustomValue || $[95] !== collection || $[96] !== hasOptions) {
|
|
728
|
+
t13 = (text) => {
|
|
729
|
+
if (!hasOptions) return null;
|
|
730
|
+
const match = matchOptionText(collection, text);
|
|
731
|
+
return match.exact ?? (allowsCustomValue ? null : match.loose);
|
|
443
732
|
};
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
733
|
+
$[94] = allowsCustomValue;
|
|
734
|
+
$[95] = collection;
|
|
735
|
+
$[96] = hasOptions;
|
|
736
|
+
$[97] = t13;
|
|
737
|
+
} else t13 = $[97];
|
|
738
|
+
const findOptionKey = t13;
|
|
739
|
+
let t14;
|
|
740
|
+
if ($[98] !== findOptionKey || $[99] !== normalizeTag) {
|
|
741
|
+
t14 = (text_0) => {
|
|
742
|
+
const optionKey = findOptionKey(text_0);
|
|
743
|
+
if (optionKey != null || !normalizeTag) return {
|
|
744
|
+
optionKey,
|
|
745
|
+
typed: text_0
|
|
746
|
+
};
|
|
747
|
+
const typed = normalizeTag(text_0).trim();
|
|
748
|
+
return {
|
|
749
|
+
optionKey: typed ? findOptionKey(typed) : null,
|
|
750
|
+
typed
|
|
751
|
+
};
|
|
451
752
|
};
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
753
|
+
$[98] = findOptionKey;
|
|
754
|
+
$[99] = normalizeTag;
|
|
755
|
+
$[100] = t14;
|
|
756
|
+
} else t14 = $[100];
|
|
757
|
+
const resolveTypedText = t14;
|
|
758
|
+
let t15;
|
|
759
|
+
if ($[101] !== normalizeTag || $[102] !== resolveTypedText) {
|
|
760
|
+
t15 = (part, t16) => {
|
|
761
|
+
const source = t16 === void 0 ? "text" : t16;
|
|
762
|
+
if (source === "text") return resolveTypedText(part);
|
|
763
|
+
if (source === "option") return {
|
|
764
|
+
optionKey: part,
|
|
765
|
+
typed: part
|
|
766
|
+
};
|
|
767
|
+
return {
|
|
768
|
+
optionKey: null,
|
|
769
|
+
typed: normalizeTag ? normalizeTag(part).trim() : part
|
|
770
|
+
};
|
|
455
771
|
};
|
|
456
|
-
|
|
772
|
+
$[101] = normalizeTag;
|
|
773
|
+
$[102] = resolveTypedText;
|
|
774
|
+
$[103] = t15;
|
|
775
|
+
} else t15 = $[103];
|
|
776
|
+
const resolvePart = t15;
|
|
457
777
|
const termOptionKey = term ? resolveTypedText(term).optionKey : null;
|
|
458
778
|
const optionFilterFn = (nodes) => {
|
|
459
779
|
if (!isFilterActive || !term) return nodes;
|
|
@@ -461,12 +781,12 @@ function TagInput(props, ref) {
|
|
|
461
781
|
};
|
|
462
782
|
const visibleOptionKeys = [];
|
|
463
783
|
if (hasOptions) collectVisibleKeys(optionFilterFn(collection), visibleOptionKeys, disabledKeys ? new Set(disabledKeys) : void 0);
|
|
464
|
-
let
|
|
465
|
-
if ($[
|
|
466
|
-
|
|
467
|
-
$[
|
|
468
|
-
} else
|
|
469
|
-
const [unpickedCustomValues, setUnpickedCustomValues] = useState(
|
|
784
|
+
let t16;
|
|
785
|
+
if ($[104] === Symbol.for("react.memo_cache_sentinel")) {
|
|
786
|
+
t16 = [];
|
|
787
|
+
$[104] = t16;
|
|
788
|
+
} else t16 = $[104];
|
|
789
|
+
const [unpickedCustomValues, setUnpickedCustomValues] = useState(t16);
|
|
470
790
|
const { keys: customValueKeys, visibleKeys: visibleCustomKeys, typedKey: customTerm } = hasOptions && allowsCustomValue ? getCustomRows({
|
|
471
791
|
values: uniqueValues,
|
|
472
792
|
unpicked: unpickedCustomValues,
|
|
@@ -490,11 +810,24 @@ function TagInput(props, ref) {
|
|
|
490
810
|
const isInteractive = !isDisabled && !isReadOnly;
|
|
491
811
|
const shouldShowPopover = hasOptions && isInteractive && isPopoverOpen && hasResults;
|
|
492
812
|
const notifiedOpenRef = useRef(false);
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
813
|
+
let t17;
|
|
814
|
+
let t18;
|
|
815
|
+
if ($[105] !== onOpenChange || $[106] !== shouldShowPopover) {
|
|
816
|
+
t17 = () => {
|
|
817
|
+
if (notifiedOpenRef.current === shouldShowPopover) return;
|
|
818
|
+
notifiedOpenRef.current = shouldShowPopover;
|
|
819
|
+
onOpenChange?.(shouldShowPopover);
|
|
820
|
+
};
|
|
821
|
+
t18 = [shouldShowPopover, onOpenChange];
|
|
822
|
+
$[105] = onOpenChange;
|
|
823
|
+
$[106] = shouldShowPopover;
|
|
824
|
+
$[107] = t17;
|
|
825
|
+
$[108] = t18;
|
|
826
|
+
} else {
|
|
827
|
+
t17 = $[107];
|
|
828
|
+
t18 = $[108];
|
|
829
|
+
}
|
|
830
|
+
useEffect(t17, t18);
|
|
498
831
|
const visibleTargetKeys = [...visibleOptionKeys, ...visibleCustomKeys];
|
|
499
832
|
if (customTerm) visibleTargetKeys.push(customTerm);
|
|
500
833
|
const preferredOptionKey = getPreferredRowKey(visibleTargetKeys, getExactRowKey(collection, {
|
|
@@ -503,50 +836,82 @@ function TagInput(props, ref) {
|
|
|
503
836
|
customTerm,
|
|
504
837
|
customValueKeys
|
|
505
838
|
}), term, uniqueValues);
|
|
506
|
-
const { activeOption, setActiveOption, moveVirtualFocus, popoverMinWidth } = useActiveOption({
|
|
507
|
-
listStateRef,
|
|
508
|
-
wrapperRef,
|
|
509
|
-
isOpen: shouldShowPopover,
|
|
510
|
-
visibleOptionsSignature,
|
|
511
|
-
customTerm,
|
|
512
|
-
term,
|
|
513
|
-
preferredOptionKey
|
|
514
|
-
});
|
|
515
|
-
const activeOptionKey = activeOption?.key ?? null;
|
|
516
839
|
let t19;
|
|
517
|
-
if ($[
|
|
518
|
-
t19 =
|
|
840
|
+
if ($[109] !== customTerm || $[110] !== preferredOptionKey || $[111] !== shouldShowPopover || $[112] !== term || $[113] !== visibleOptionsSignature || $[114] !== wrapperRef) {
|
|
841
|
+
t19 = {
|
|
842
|
+
listStateRef,
|
|
843
|
+
wrapperRef,
|
|
844
|
+
isOpen: shouldShowPopover,
|
|
845
|
+
visibleOptionsSignature,
|
|
846
|
+
customTerm,
|
|
847
|
+
term,
|
|
848
|
+
preferredOptionKey
|
|
849
|
+
};
|
|
850
|
+
$[109] = customTerm;
|
|
851
|
+
$[110] = preferredOptionKey;
|
|
852
|
+
$[111] = shouldShowPopover;
|
|
853
|
+
$[112] = term;
|
|
854
|
+
$[113] = visibleOptionsSignature;
|
|
855
|
+
$[114] = wrapperRef;
|
|
856
|
+
$[115] = t19;
|
|
857
|
+
} else t19 = $[115];
|
|
858
|
+
const { activeOption, setActiveOption, moveVirtualFocus, popoverMinWidth } = useActiveOption(t19);
|
|
859
|
+
const activeOptionKey = activeOption?.key ?? null;
|
|
860
|
+
let t20;
|
|
861
|
+
if ($[116] !== setDraftState || $[117] !== setIsFilterActive) {
|
|
862
|
+
t20 = (next_0) => {
|
|
519
863
|
setDraftState(next_0);
|
|
520
864
|
setIsFilterActive(!!next_0.trim());
|
|
521
865
|
};
|
|
522
|
-
$[
|
|
523
|
-
$[
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
866
|
+
$[116] = setDraftState;
|
|
867
|
+
$[117] = setIsFilterActive;
|
|
868
|
+
$[118] = t20;
|
|
869
|
+
} else t20 = $[118];
|
|
870
|
+
const setDraft = useEvent(t20);
|
|
871
|
+
let t21;
|
|
872
|
+
if ($[119] !== setAnnouncement) {
|
|
873
|
+
t21 = (text_1) => {
|
|
529
874
|
setAnnouncement((prev) => ({
|
|
530
875
|
id: prev.id + 1,
|
|
531
876
|
text: text_1
|
|
532
877
|
}));
|
|
533
878
|
};
|
|
534
|
-
$[
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
const
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
879
|
+
$[119] = setAnnouncement;
|
|
880
|
+
$[120] = t21;
|
|
881
|
+
} else t21 = $[120];
|
|
882
|
+
const announce = useEvent(t21);
|
|
883
|
+
let t22;
|
|
884
|
+
if ($[121] !== maxTags || $[122] !== t) {
|
|
885
|
+
t22 = (rejection) => {
|
|
886
|
+
if (rejection.message) return rejection.message;
|
|
887
|
+
switch (rejection.reason) {
|
|
888
|
+
case "duplicate": return t("tagInput.duplicateValue", "\"{{value}}\" is already added", { value: rejection.text });
|
|
889
|
+
case "unknown": return t("tagInput.unknownValue", "\"{{value}}\" is not in the list", { value: rejection.text });
|
|
890
|
+
case "unavailable": return t("tagInput.unavailableValue", "\"{{value}}\" is not available", { value: rejection.text });
|
|
891
|
+
case "limit": return t("tagInput.limitReached", "You can add up to {{count}}", { count: maxTags });
|
|
892
|
+
default: return t("tagInput.invalidValue", "\"{{value}}\" is not a valid value", { value: rejection.text });
|
|
893
|
+
}
|
|
894
|
+
};
|
|
895
|
+
$[121] = maxTags;
|
|
896
|
+
$[122] = t;
|
|
897
|
+
$[123] = t22;
|
|
898
|
+
} else t22 = $[123];
|
|
899
|
+
const rejectionMessage = useEvent(t22);
|
|
900
|
+
let t23;
|
|
901
|
+
if ($[124] !== delimiters) {
|
|
902
|
+
t23 = delimiters.find(_temp4);
|
|
903
|
+
$[124] = delimiters;
|
|
904
|
+
$[125] = t23;
|
|
905
|
+
} else t23 = $[125];
|
|
906
|
+
const joinDelimiter = t23;
|
|
548
907
|
const joiner = joinDelimiter ? `${joinDelimiter} ` : " ";
|
|
549
|
-
|
|
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;
|
|
550
915
|
const commitParts = useEvent((parts, source_0) => {
|
|
551
916
|
if (!parts.length) return "";
|
|
552
917
|
const rules = {
|
|
@@ -588,20 +953,29 @@ function TagInput(props, ref) {
|
|
|
588
953
|
setTagError(error);
|
|
589
954
|
return kept.map(_temp6).join(joiner);
|
|
590
955
|
});
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
956
|
+
let t25;
|
|
957
|
+
if ($[128] !== commitParts || $[129] !== delimiters || $[130] !== draft || $[131] !== setDraft) {
|
|
958
|
+
t25 = () => {
|
|
959
|
+
const rest = commitParts(splitTagText(draft, delimiters));
|
|
960
|
+
setDraft(rest);
|
|
961
|
+
return rest;
|
|
962
|
+
};
|
|
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 = () => {
|
|
599
973
|
const rows = tagListRef.current?.querySelectorAll("[role=\"row\"]:not([aria-disabled=\"true\"])");
|
|
600
974
|
rows?.[rows.length - 1]?.focus();
|
|
601
975
|
};
|
|
602
|
-
$[
|
|
603
|
-
} else
|
|
604
|
-
const focusLastTag = useEvent(
|
|
976
|
+
$[133] = t26;
|
|
977
|
+
} else t26 = $[133];
|
|
978
|
+
const focusLastTag = useEvent(t26);
|
|
605
979
|
const removeValues = useEvent((requested) => {
|
|
606
980
|
const keys_0 = requested.filter((key_4) => !isTagLocked(key_4));
|
|
607
981
|
if (!keys_0.length) return;
|
|
@@ -639,35 +1013,55 @@ function TagInput(props, ref) {
|
|
|
639
1013
|
setTimeout(() => inputRef.current?.focus(), 0);
|
|
640
1014
|
});
|
|
641
1015
|
const isTabbingRef = useRef(false);
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
e
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
1016
|
+
let t27;
|
|
1017
|
+
if ($[134] !== hasOptions || $[135] !== hasResults || $[136] !== moveVirtualFocus || $[137] !== setIsFilterActive || $[138] !== setIsPopoverOpen || $[139] !== shouldShowPopover || $[140] !== term) {
|
|
1018
|
+
t27 = (e) => {
|
|
1019
|
+
if (!hasOptions) return;
|
|
1020
|
+
e.preventDefault();
|
|
1021
|
+
if (!shouldShowPopover) {
|
|
1022
|
+
if (!hasResults) setIsFilterActive(false);
|
|
1023
|
+
setIsPopoverOpen(true);
|
|
1024
|
+
return;
|
|
1025
|
+
}
|
|
1026
|
+
const listState = listStateRef.current;
|
|
1027
|
+
if (listState) moveVirtualFocus(getNextVisibleKey(listState, e.key === "ArrowDown" ? 1 : -1), "user", term);
|
|
1028
|
+
};
|
|
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) => {
|
|
1042
|
+
e_0.preventDefault();
|
|
1043
|
+
const listState_0 = listStateRef.current;
|
|
1044
|
+
if (listState_0) moveVirtualFocus(getEdgeVisibleKey(listState_0, e_0.key === "Home" ? "first" : "last"), "user", term);
|
|
1045
|
+
};
|
|
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) => {
|
|
661
1054
|
if (isComposingKey(e_1)) return;
|
|
662
1055
|
e_1.preventDefault();
|
|
663
1056
|
if (e_1.repeat) return;
|
|
664
1057
|
setIsPopoverOpen(false);
|
|
665
1058
|
focusLastTag();
|
|
666
1059
|
};
|
|
667
|
-
$[
|
|
668
|
-
$[
|
|
669
|
-
|
|
670
|
-
|
|
1060
|
+
$[145] = focusLastTag;
|
|
1061
|
+
$[146] = setIsPopoverOpen;
|
|
1062
|
+
$[147] = t29;
|
|
1063
|
+
} else t29 = $[147];
|
|
1064
|
+
const handleBackspaceKey = useEvent(t29);
|
|
671
1065
|
const handleEnterKey = useEvent((e_2) => {
|
|
672
1066
|
if (isComposingKey(e_2)) return;
|
|
673
1067
|
const isCurrent = activeOption != null && activeOption.term === term;
|
|
@@ -689,17 +1083,27 @@ function TagInput(props, ref) {
|
|
|
689
1083
|
e_2.preventDefault();
|
|
690
1084
|
if (term) commitDraft();
|
|
691
1085
|
});
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
e_3
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
1086
|
+
let t30;
|
|
1087
|
+
if ($[148] !== commitParts || $[149] !== delimiters || $[150] !== draft || $[151] !== joiner || $[152] !== setDraft) {
|
|
1088
|
+
t30 = (e_3) => {
|
|
1089
|
+
if (isComposingKey(e_3)) return;
|
|
1090
|
+
e_3.preventDefault();
|
|
1091
|
+
const el = e_3.currentTarget;
|
|
1092
|
+
const start = el.selectionStart ?? draft.length;
|
|
1093
|
+
const end = el.selectionEnd ?? start;
|
|
1094
|
+
setDraft([commitParts(splitTagText(draft.slice(0, start), delimiters)), draft.slice(end).trimStart()].filter(Boolean).join(joiner));
|
|
1095
|
+
};
|
|
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) => {
|
|
703
1107
|
if (shouldShowPopover) {
|
|
704
1108
|
e_4.preventDefault();
|
|
705
1109
|
e_4.stopPropagation();
|
|
@@ -713,14 +1117,15 @@ function TagInput(props, ref) {
|
|
|
713
1117
|
setIsPopoverOpen(false);
|
|
714
1118
|
}
|
|
715
1119
|
};
|
|
716
|
-
$[
|
|
717
|
-
$[
|
|
718
|
-
$[
|
|
719
|
-
$[
|
|
720
|
-
$[
|
|
721
|
-
$[
|
|
722
|
-
|
|
723
|
-
|
|
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);
|
|
724
1129
|
const handleKeyDown = useEvent((e_5) => {
|
|
725
1130
|
onKeyDown?.(e_5);
|
|
726
1131
|
isTabbingRef.current = e_5.key === "Tab" && !e_5.defaultPrevented;
|
|
@@ -745,48 +1150,107 @@ function TagInput(props, ref) {
|
|
|
745
1150
|
setDraft(nextDraft);
|
|
746
1151
|
if (hasOptions && popoverTrigger !== "manual" && nextDraft.trim()) setIsPopoverOpen(true);
|
|
747
1152
|
});
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
});
|
|
759
|
-
const settleDraft = useEvent(() => {
|
|
760
|
-
if (!term) return "";
|
|
761
|
-
if (!shouldCommitOnBlur || !isInteractive) return draft;
|
|
762
|
-
if (hasOptions && !allowsCustomValue && termOptionKey == null) {
|
|
763
|
-
setDraft("");
|
|
1153
|
+
let t32;
|
|
1154
|
+
if ($[161] !== commitParts || $[162] !== delimiters || $[163] !== draft || $[164] !== isInteractive || $[165] !== setDraft || $[166] !== setTagError) {
|
|
1155
|
+
t32 = (e_6) => {
|
|
1156
|
+
if (!isInteractive) return;
|
|
1157
|
+
const pasted = e_6.clipboardData.getData("text");
|
|
1158
|
+
if (!pasted || splitTagText(pasted, delimiters).length < 2) return;
|
|
1159
|
+
e_6.preventDefault();
|
|
1160
|
+
const el_0 = e_6.currentTarget;
|
|
1161
|
+
const start_0 = el_0.selectionStart ?? draft.length;
|
|
1162
|
+
const end_0 = el_0.selectionEnd ?? draft.length;
|
|
764
1163
|
setTagError(null);
|
|
765
|
-
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
1164
|
+
setDraft(commitParts(splitTagText(`${draft.slice(0, start_0)}\n${pasted}\n${draft.slice(end_0)}`, delimiters)));
|
|
1165
|
+
};
|
|
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 = () => {
|
|
1178
|
+
if (!term) return "";
|
|
1179
|
+
if (!shouldCommitOnBlur || !isInteractive) return draft;
|
|
1180
|
+
if (hasOptions && !allowsCustomValue && termOptionKey == null) {
|
|
1181
|
+
setDraft("");
|
|
1182
|
+
setTagError(null);
|
|
1183
|
+
return "";
|
|
1184
|
+
}
|
|
1185
|
+
return commitDraft();
|
|
1186
|
+
};
|
|
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 = () => {
|
|
773
1203
|
cancelPendingClear();
|
|
774
1204
|
onFocus?.();
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
|
|
1205
|
+
};
|
|
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;
|
|
778
1215
|
setIsPopoverOpen(false);
|
|
779
1216
|
setUnpickedCustomValues([]);
|
|
780
1217
|
const wasShowingMessage = tagError != null;
|
|
781
1218
|
if (!settleDraft()) if (isPressing && wasShowingMessage) clearTagErrorAfterPress();
|
|
782
1219
|
else setTagError(null);
|
|
783
1220
|
onBlur?.();
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
1221
|
+
};
|
|
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,
|
|
1239
|
+
onFocus: handleCompositeFocus,
|
|
1240
|
+
onBlur: handleCompositeBlur,
|
|
1241
|
+
isDisabled
|
|
1242
|
+
};
|
|
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) => {
|
|
790
1254
|
const isTabbing = isTabbingRef.current;
|
|
791
1255
|
const next_4 = e_7.relatedTarget;
|
|
792
1256
|
isTabbingRef.current = false;
|
|
@@ -794,14 +1258,24 @@ function TagInput(props, ref) {
|
|
|
794
1258
|
setIsPopoverOpen(false);
|
|
795
1259
|
settleDraft();
|
|
796
1260
|
};
|
|
797
|
-
$[
|
|
798
|
-
$[
|
|
799
|
-
$[
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
const
|
|
803
|
-
|
|
804
|
-
|
|
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 = () => {
|
|
1270
|
+
if (hasOptions && popoverTrigger === "focus" && isInteractive) setIsPopoverOpen(true);
|
|
1271
|
+
};
|
|
1272
|
+
$[200] = hasOptions;
|
|
1273
|
+
$[201] = isInteractive;
|
|
1274
|
+
$[202] = popoverTrigger;
|
|
1275
|
+
$[203] = setIsPopoverOpen;
|
|
1276
|
+
$[204] = t40;
|
|
1277
|
+
} else t40 = $[204];
|
|
1278
|
+
const handleInputFocus = useEvent(t40);
|
|
805
1279
|
const tags = uniqueValues.map((value_5) => {
|
|
806
1280
|
const ownProps = tagProps?.(value_5);
|
|
807
1281
|
const result = !(getOption(value_5) != null || knownLabels.has(value_5)) && validateTag ? validateTag(value_5) : true;
|
|
@@ -819,22 +1293,46 @@ function TagInput(props, ref) {
|
|
|
819
1293
|
const hasBackspaceHint = isInteractive && hasRemovableTags;
|
|
820
1294
|
const lockedKeys = tags.filter(_temp9).map(_temp0);
|
|
821
1295
|
const optionDisabledKeys = lockedKeys.length ? [...disabledKeySet, ...lockedKeys] : disabledKeys;
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
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 = {
|
|
1299
|
+
...otherProps,
|
|
1300
|
+
id,
|
|
1301
|
+
label,
|
|
1302
|
+
value: draft,
|
|
1303
|
+
placeholder,
|
|
1304
|
+
isDisabled,
|
|
1305
|
+
isReadOnly,
|
|
1306
|
+
isRequired,
|
|
1307
|
+
isInvalid: effectiveIsInvalid,
|
|
1308
|
+
autoFocus,
|
|
1309
|
+
onChange: handleInputChange
|
|
1310
|
+
};
|
|
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);
|
|
835
1325
|
const ariaLabel = props["aria-label"];
|
|
836
1326
|
const ariaLabelledby = props["aria-labelledby"];
|
|
837
|
-
const
|
|
1327
|
+
const labelId = label ? labelProps.id : void 0;
|
|
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;
|
|
838
1336
|
const describedBy = [];
|
|
839
1337
|
if (inputProps["aria-describedby"]) describedBy.push(inputProps["aria-describedby"]);
|
|
840
1338
|
if (tags.length) describedBy.push(summaryId);
|
|
@@ -848,183 +1346,276 @@ function TagInput(props, ref) {
|
|
|
848
1346
|
"data-input-type": "taginput",
|
|
849
1347
|
"aria-describedby": describedBy.join(" ") || void 0
|
|
850
1348
|
}, hasOptions ? getComboboxProps(listBoxId, shouldShowPopover, activeOptionKey) : void 0);
|
|
851
|
-
let
|
|
852
|
-
if ($[
|
|
853
|
-
|
|
1349
|
+
let t43;
|
|
1350
|
+
if ($[220] !== hasResults || $[221] !== inputRef || $[222] !== setIsFilterActive || $[223] !== setIsPopoverOpen || $[224] !== shouldShowPopover) {
|
|
1351
|
+
t43 = () => {
|
|
854
1352
|
const willOpen = !shouldShowPopover;
|
|
855
1353
|
if (willOpen && !hasResults) setIsFilterActive(false);
|
|
856
1354
|
setIsPopoverOpen(willOpen);
|
|
857
1355
|
inputRef.current?.focus();
|
|
858
1356
|
};
|
|
859
|
-
$[
|
|
860
|
-
$[
|
|
861
|
-
$[
|
|
862
|
-
$[
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
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, {
|
|
1368
|
+
id: triggerId,
|
|
1369
|
+
size,
|
|
1370
|
+
ariaLabel,
|
|
1371
|
+
fieldLabelledby,
|
|
1372
|
+
isOpen: shouldShowPopover,
|
|
1373
|
+
isDisabled: !isInteractive,
|
|
1374
|
+
styles: triggerStyles,
|
|
1375
|
+
onPress: handleTriggerPress
|
|
1376
|
+
}) : null;
|
|
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 = () => {
|
|
1393
|
+
inputRef.current?.focus();
|
|
1394
|
+
setDraft("");
|
|
1395
|
+
setTagError(null);
|
|
1396
|
+
setIsPopoverOpen(false);
|
|
1397
|
+
onClear?.();
|
|
1398
|
+
};
|
|
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);
|
|
1407
|
+
const canClear = !!isClearable && isInteractive && draft !== "";
|
|
1408
|
+
let t46;
|
|
1409
|
+
if ($[243] !== ariaLabel || $[244] !== canClear || $[245] !== clearId || $[246] !== clearText || $[247] !== fieldLabelledby || $[248] !== size) {
|
|
1410
|
+
t46 = canClear ? /* @__PURE__ */ jsx(TagInputClearButton, {
|
|
1411
|
+
id: clearId,
|
|
1412
|
+
size,
|
|
1413
|
+
ariaLabel,
|
|
1414
|
+
fieldLabelledby,
|
|
1415
|
+
onPress: clearText
|
|
1416
|
+
}) : null;
|
|
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;
|
|
889
1426
|
const hasActions = clearButton != null || trigger != null;
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
$[
|
|
895
|
-
$[
|
|
896
|
-
$[
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
1427
|
+
const T0 = TagInputElement;
|
|
1428
|
+
const t47 = qa || "TagInput";
|
|
1429
|
+
let t48;
|
|
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
|
+
isBare: true,
|
|
1441
|
+
qa: t47,
|
|
1442
|
+
inputRef,
|
|
1443
|
+
wrapperRef,
|
|
1444
|
+
inputProps: tagInputProps,
|
|
1445
|
+
mods,
|
|
1446
|
+
icon,
|
|
1447
|
+
prefix,
|
|
1448
|
+
suffix,
|
|
1449
|
+
suffixPosition,
|
|
1450
|
+
actions: t48,
|
|
1451
|
+
size,
|
|
1452
|
+
autoFocus,
|
|
1453
|
+
isDisabled,
|
|
1454
|
+
isLoading,
|
|
1455
|
+
isInvalid: effectiveIsInvalid,
|
|
1456
|
+
isValid,
|
|
1457
|
+
styles: wrapperStyles,
|
|
1458
|
+
inputStyles
|
|
1459
|
+
});
|
|
1460
|
+
$[254] = autoFocus;
|
|
1461
|
+
$[255] = effectiveIsInvalid;
|
|
1462
|
+
$[256] = icon;
|
|
1463
|
+
$[257] = inputRef;
|
|
1464
|
+
$[258] = inputStyles;
|
|
1465
|
+
$[259] = isDisabled;
|
|
1466
|
+
$[260] = isLoading;
|
|
1467
|
+
$[261] = isValid;
|
|
1468
|
+
$[262] = mods;
|
|
1469
|
+
$[263] = prefix;
|
|
1470
|
+
$[264] = size;
|
|
1471
|
+
$[265] = suffix;
|
|
1472
|
+
$[266] = suffixPosition;
|
|
1473
|
+
$[267] = t47;
|
|
1474
|
+
$[268] = t48;
|
|
1475
|
+
$[269] = tagInputProps;
|
|
1476
|
+
$[270] = wrapperRef;
|
|
1477
|
+
$[271] = wrapperStyles;
|
|
1478
|
+
$[272] = t49;
|
|
1479
|
+
} else t49 = $[272];
|
|
1480
|
+
const t50 = tags.length ? /* @__PURE__ */ jsx(TagList, {
|
|
1481
|
+
id: tagListId,
|
|
1482
|
+
listRef: tagListRef,
|
|
1483
|
+
inputRef,
|
|
1484
|
+
"aria-label": ariaLabel ? t("tagInput.selectedValuesFor", "Selected values, {{label}}", { label: ariaLabel }) : t("tagInput.selectedValues", "Selected values"),
|
|
1485
|
+
"aria-labelledby": fieldLabelledby,
|
|
1486
|
+
tags,
|
|
1487
|
+
size: TAG_SIZES[size] ?? "xsmall",
|
|
1488
|
+
isDisabled,
|
|
1489
|
+
isReadOnly,
|
|
1490
|
+
styles: tagListStyles,
|
|
1491
|
+
tagStyles,
|
|
1492
|
+
onRemove: removeValues
|
|
1493
|
+
}) : null;
|
|
1494
|
+
const t51 = true;
|
|
1495
|
+
const t52 = tags.length ? t("tagInput.summary", "Selected: {{values}}.", { values: formatList(tags.map(_temp1)) }) : null;
|
|
1496
|
+
let t53;
|
|
1497
|
+
if ($[273] !== summaryId || $[274] !== t52) {
|
|
1498
|
+
t53 = /* @__PURE__ */ jsx("span", {
|
|
1499
|
+
hidden: t51,
|
|
903
1500
|
id: summaryId,
|
|
904
|
-
children:
|
|
1501
|
+
children: t52
|
|
905
1502
|
});
|
|
906
|
-
$[
|
|
907
|
-
$[
|
|
908
|
-
$[
|
|
909
|
-
} else
|
|
910
|
-
let
|
|
911
|
-
if ($[
|
|
912
|
-
|
|
913
|
-
$[
|
|
914
|
-
$[
|
|
915
|
-
$[
|
|
916
|
-
} else
|
|
917
|
-
let
|
|
918
|
-
if ($[
|
|
919
|
-
|
|
1503
|
+
$[273] = summaryId;
|
|
1504
|
+
$[274] = t52;
|
|
1505
|
+
$[275] = t53;
|
|
1506
|
+
} else t53 = $[275];
|
|
1507
|
+
let t54;
|
|
1508
|
+
if ($[276] !== hasBackspaceHint || $[277] !== t) {
|
|
1509
|
+
t54 = hasBackspaceHint ? t("tagInput.backspaceHint", "Press Backspace to go to the selected values.") : null;
|
|
1510
|
+
$[276] = hasBackspaceHint;
|
|
1511
|
+
$[277] = t;
|
|
1512
|
+
$[278] = t54;
|
|
1513
|
+
} else t54 = $[278];
|
|
1514
|
+
let t55;
|
|
1515
|
+
if ($[279] !== hintId || $[280] !== t54) {
|
|
1516
|
+
t55 = /* @__PURE__ */ jsx("span", {
|
|
920
1517
|
hidden: true,
|
|
921
1518
|
id: hintId,
|
|
922
|
-
children:
|
|
1519
|
+
children: t54
|
|
923
1520
|
});
|
|
924
|
-
$[
|
|
925
|
-
$[
|
|
926
|
-
$[
|
|
927
|
-
} else
|
|
928
|
-
let
|
|
929
|
-
if ($[
|
|
930
|
-
|
|
1521
|
+
$[279] = hintId;
|
|
1522
|
+
$[280] = t54;
|
|
1523
|
+
$[281] = t55;
|
|
1524
|
+
} else t55 = $[281];
|
|
1525
|
+
let t56;
|
|
1526
|
+
if ($[282] !== announcement.id || $[283] !== announcement.text) {
|
|
1527
|
+
t56 = /* @__PURE__ */ jsx(VisuallyHidden, {
|
|
931
1528
|
role: "status",
|
|
932
1529
|
"aria-live": "polite",
|
|
933
1530
|
"aria-atomic": "true",
|
|
934
1531
|
children: /* @__PURE__ */ jsx("span", { children: announcement.text }, announcement.id)
|
|
935
1532
|
});
|
|
936
|
-
$[
|
|
937
|
-
$[
|
|
938
|
-
$[
|
|
939
|
-
} else
|
|
940
|
-
const
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
isDisabled,
|
|
1009
|
-
disabledKeys: optionDisabledKeys,
|
|
1010
|
-
listStateRef,
|
|
1011
|
-
ariaLabel,
|
|
1012
|
-
ariaLabelledby: fieldLabelledby,
|
|
1013
|
-
compositeFocusProps,
|
|
1014
|
-
filter: optionFilterFn,
|
|
1015
|
-
size,
|
|
1016
|
-
onSelectionChange: handlePopoverSelection,
|
|
1017
|
-
onClose: () => setIsPopoverOpen(false),
|
|
1018
|
-
children: popoverChildren
|
|
1019
|
-
}) : null
|
|
1020
|
-
]
|
|
1021
|
-
});
|
|
1533
|
+
$[282] = announcement.id;
|
|
1534
|
+
$[283] = announcement.text;
|
|
1535
|
+
$[284] = t56;
|
|
1536
|
+
} else t56 = $[284];
|
|
1537
|
+
const t57 = hasOptions ? /* @__PURE__ */ jsx(ListBoxPopover, {
|
|
1538
|
+
isOpen: shouldShowPopover,
|
|
1539
|
+
triggerRef: wrapperRef,
|
|
1540
|
+
popoverRef,
|
|
1541
|
+
listBoxRef,
|
|
1542
|
+
direction,
|
|
1543
|
+
shouldFlip,
|
|
1544
|
+
overlayOffset,
|
|
1545
|
+
containerPadding,
|
|
1546
|
+
comboBoxWidth: popoverMinWidth,
|
|
1547
|
+
listBoxId,
|
|
1548
|
+
overlayStyles,
|
|
1549
|
+
listBoxStyles,
|
|
1550
|
+
optionStyles,
|
|
1551
|
+
optionHighlight: isFilterActive ? term : void 0,
|
|
1552
|
+
sectionStyles,
|
|
1553
|
+
headingStyles,
|
|
1554
|
+
listGap,
|
|
1555
|
+
selectionMode: "multiple",
|
|
1556
|
+
selectedKeys: uniqueValues,
|
|
1557
|
+
isCheckable: true,
|
|
1558
|
+
shouldCloseOnTriggerInteraction: false,
|
|
1559
|
+
isDisabled,
|
|
1560
|
+
disabledKeys: optionDisabledKeys,
|
|
1561
|
+
listStateRef,
|
|
1562
|
+
ariaLabel,
|
|
1563
|
+
ariaLabelledby: fieldLabelledby,
|
|
1564
|
+
compositeFocusProps,
|
|
1565
|
+
filter: optionFilterFn,
|
|
1566
|
+
size,
|
|
1567
|
+
onSelectionChange: handlePopoverSelection,
|
|
1568
|
+
onClose: () => setIsPopoverOpen(false),
|
|
1569
|
+
children: popoverChildren
|
|
1570
|
+
}) : null;
|
|
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, {
|
|
1574
|
+
ref: rootRef,
|
|
1575
|
+
className,
|
|
1576
|
+
style,
|
|
1577
|
+
qaVal,
|
|
1578
|
+
styles,
|
|
1579
|
+
...compositeFocusProps,
|
|
1580
|
+
children: [
|
|
1581
|
+
t49,
|
|
1582
|
+
t50,
|
|
1583
|
+
t53,
|
|
1584
|
+
t55,
|
|
1585
|
+
t56,
|
|
1586
|
+
t57
|
|
1587
|
+
]
|
|
1588
|
+
});
|
|
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;
|
|
1022
1605
|
const { children: _children, ...fieldProps } = props;
|
|
1023
|
-
|
|
1606
|
+
const fieldRef = useCombinedRefs();
|
|
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];
|
|
1614
|
+
return wrapWithField(tagInputField, fieldRef, {
|
|
1024
1615
|
...fieldProps,
|
|
1025
1616
|
labelProps: mergeProps$1(labelProps, userLabelProps),
|
|
1026
1617
|
isInvalid: effectiveIsInvalid,
|
|
1027
|
-
message:
|
|
1618
|
+
message: t59,
|
|
1028
1619
|
errorMessage: tagError ? void 0 : errorMessage
|
|
1029
1620
|
});
|
|
1030
1621
|
}
|