@cube-dev/ui-kit 0.0.0-canary-a84d0ed → 0.0.0-canary-cb45a83

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.
Files changed (567) hide show
  1. package/dist/_internal/hooks/use-debounced-value.js +1 -1
  2. package/dist/_internal/hooks/use-deprecation-warning.js +1 -1
  3. package/dist/_internal/hooks/use-event.js +1 -1
  4. package/dist/_internal/hooks/use-is-first-render.js +1 -1
  5. package/dist/_internal/hooks/use-sync-ref.js +1 -1
  6. package/dist/_internal/hooks/use-timer/timer.js +1 -1
  7. package/dist/_internal/hooks/use-timer/use-timer.js +1 -1
  8. package/dist/_internal/hooks/use-warn.js +1 -1
  9. package/dist/components/Block.js +1 -1
  10. package/dist/components/CollectionItem.js +1 -1
  11. package/dist/components/GlobalStyles.js +1 -1
  12. package/dist/components/GridProvider.js +1 -1
  13. package/dist/components/HiddenInput.js +1 -1
  14. package/dist/components/Root.js +1 -1
  15. package/dist/components/actions/Action/Action.js +1 -1
  16. package/dist/components/actions/Banner/Banner.js +1 -1
  17. package/dist/components/actions/Button/Button.js +1 -1
  18. package/dist/components/actions/ButtonGroup/ButtonGroup.js +1 -1
  19. package/dist/components/actions/ButtonSplit/ButtonSplit.js +1 -1
  20. package/dist/components/actions/ButtonSplit/context.js +1 -1
  21. package/dist/components/actions/CommandMenu/CommandMenu.js +1 -1
  22. package/dist/components/actions/CommandMenu/styled.js +1 -1
  23. package/dist/components/actions/ItemAction/ItemAction.js +1 -1
  24. package/dist/components/actions/ItemActionContext.js +1 -1
  25. package/dist/components/actions/ItemActionsWrapper.js +1 -1
  26. package/dist/components/actions/ItemButton/ItemButton.js +1 -1
  27. package/dist/components/actions/Link/Link.js +1 -1
  28. package/dist/components/actions/Menu/Menu.js +1 -1
  29. package/dist/components/actions/Menu/MenuItem.js +1 -1
  30. package/dist/components/actions/Menu/MenuSection.js +1 -1
  31. package/dist/components/actions/Menu/MenuTrigger.js +1 -1
  32. package/dist/components/actions/Menu/SubMenuTrigger.js +1 -1
  33. package/dist/components/actions/Menu/SubmenuTriggerContext.js +1 -1
  34. package/dist/components/actions/Menu/context.js +1 -1
  35. package/dist/components/actions/Menu/styled.js +1 -1
  36. package/dist/components/actions/actions-run.js +1 -1
  37. package/dist/components/actions/index.js +1 -1
  38. package/dist/components/actions/use-action.js +1 -1
  39. package/dist/components/actions/use-anchored-menu.js +1 -1
  40. package/dist/components/actions/use-context-menu.js +1 -1
  41. package/dist/components/content/ActiveZone/ActiveZone.js +1 -1
  42. package/dist/components/content/Alert/Alert.js +1 -1
  43. package/dist/components/content/Alert/use-alert.js +1 -1
  44. package/dist/components/content/Avatar/Avatar.js +1 -1
  45. package/dist/components/content/Badge/Badge.js +1 -1
  46. package/dist/components/content/Card/Card.js +1 -1
  47. package/dist/components/content/Content.js +1 -1
  48. package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +1 -1
  49. package/dist/components/content/CopySnippet/CopySnippet.js +1 -1
  50. package/dist/components/content/Disclosure/Disclosure.js +1 -1
  51. package/dist/components/content/Divider.js +1 -1
  52. package/dist/components/content/Footer.js +1 -1
  53. package/dist/components/content/Header.js +1 -1
  54. package/dist/components/content/HotKeys/HotKeys.js +1 -1
  55. package/dist/components/content/InfoBadge/InfoBadge.js +1 -1
  56. package/dist/components/content/InlineInput/InlineInput.js +1 -1
  57. package/dist/components/content/Item/Item.js +1 -1
  58. package/dist/components/content/ItemBadge/ItemBadge.js +1 -1
  59. package/dist/components/content/ItemCard/ItemCard.js +1 -1
  60. package/dist/components/content/Layout/GridLayout.js +1 -1
  61. package/dist/components/content/Layout/Layout.js +1 -1
  62. package/dist/components/content/Layout/LayoutBlock.js +1 -1
  63. package/dist/components/content/Layout/LayoutCenter.js +1 -1
  64. package/dist/components/content/Layout/LayoutContainer.js +1 -1
  65. package/dist/components/content/Layout/LayoutContent.js +1 -1
  66. package/dist/components/content/Layout/LayoutContext.js +1 -1
  67. package/dist/components/content/Layout/LayoutFlex.js +1 -1
  68. package/dist/components/content/Layout/LayoutFooter.js +1 -1
  69. package/dist/components/content/Layout/LayoutGrid.js +1 -1
  70. package/dist/components/content/Layout/LayoutHeader.js +1 -1
  71. package/dist/components/content/Layout/LayoutPane.js +1 -1
  72. package/dist/components/content/Layout/LayoutPanel.js +1 -1
  73. package/dist/components/content/Layout/LayoutPanelHeader.js +1 -1
  74. package/dist/components/content/Layout/LayoutToolbar.js +1 -1
  75. package/dist/components/content/Layout/hooks/useTinyScrollbar.js +1 -1
  76. package/dist/components/content/Layout/index.js +1 -1
  77. package/dist/components/content/Layout/utils.js +1 -1
  78. package/dist/components/content/Paragraph.js +1 -1
  79. package/dist/components/content/Placeholder/Placeholder.js +1 -1
  80. package/dist/components/content/PrismCode/PrismCode.js +1 -1
  81. package/dist/components/content/PrismCode/prismSetup.js +1 -1
  82. package/dist/components/content/PrismDiffCode/PrismDiffCode.js +1 -1
  83. package/dist/components/content/Result/Result.js +1 -1
  84. package/dist/components/content/Skeleton/Skeleton.js +1 -1
  85. package/dist/components/content/Tag/Tag.js +1 -1
  86. package/dist/components/content/Text.d.ts +14 -14
  87. package/dist/components/content/Text.js +1 -1
  88. package/dist/components/content/TextItem/TextItem.js +1 -1
  89. package/dist/components/content/Title.js +1 -1
  90. package/dist/components/content/Tree/Tree.js +1 -1
  91. package/dist/components/content/Tree/TreeNode.js +1 -1
  92. package/dist/components/content/Tree/styled.js +1 -1
  93. package/dist/components/content/Tree/tree-index.js +1 -1
  94. package/dist/components/content/Tree/use-checkbox-tree.js +1 -1
  95. package/dist/components/content/Tree/use-load-data.js +1 -1
  96. package/dist/components/content/highlightText.js +1 -1
  97. package/dist/components/content/use-auto-tooltip.js +1 -1
  98. package/dist/components/data/DataTable/DataTable.js +1 -1
  99. package/dist/components/data/ItemTable/ItemTable.js +1 -1
  100. package/dist/components/data/ItemTable/ItemTableBulkBar.js +1 -1
  101. package/dist/components/data/ItemTable/ItemTableDragPreview.js +1 -1
  102. package/dist/components/data/ItemTable/ItemTableFooter.js +1 -1
  103. package/dist/components/data/ItemTable/ItemTableToolbar.js +1 -1
  104. package/dist/components/data/TableBase/ColumnResizer.js +1 -1
  105. package/dist/components/data/TableBase/RowCollection.js +1 -1
  106. package/dist/components/data/TableBase/TableHeaderCell.js +1 -1
  107. package/dist/components/data/TableBase/TableRow.js +1 -1
  108. package/dist/components/data/TableBase/TableView.js +1 -1
  109. package/dist/components/data/TableBase/column-menu.js +1 -1
  110. package/dist/components/data/TableBase/column-tint.js +1 -1
  111. package/dist/components/data/TableBase/row-menu.js +1 -1
  112. package/dist/components/data/TableBase/styled.js +1 -1
  113. package/dist/components/data/TableBase/table-tree.js +1 -1
  114. package/dist/components/data/TableBase/types.js +1 -1
  115. package/dist/components/data/TableBase/use-cell-selection.js +0 -0
  116. package/dist/components/data/TableBase/use-column-order.js +1 -1
  117. package/dist/components/data/TableBase/use-container-width.js +1 -1
  118. package/dist/components/data/TableBase/use-row-move-animation.js +1 -1
  119. package/dist/components/data/TableBase/use-scrollability.js +1 -1
  120. package/dist/components/data/TableBase/use-table-columns.js +1 -1
  121. package/dist/components/data/TableBase/use-table-search.js +1 -1
  122. package/dist/components/data/TableBase/use-table-selection.js +1 -1
  123. package/dist/components/data/TableBase/use-table-sort.js +1 -1
  124. package/dist/components/data/TableBase/use-table-sorts.js +1 -1
  125. package/dist/components/data/TableBase/use-table-storage.js +1 -1
  126. package/dist/components/data/TableBase/use-table-tree-state.js +1 -1
  127. package/dist/components/fields/Checkbox/Checkbox.js +1 -1
  128. package/dist/components/fields/Checkbox/CheckboxGroup.js +1 -1
  129. package/dist/components/fields/Checkbox/context.js +1 -1
  130. package/dist/components/fields/ColorInput/ColorInput.js +1 -1
  131. package/dist/components/fields/ColorPicker/ColorPicker.js +1 -1
  132. package/dist/components/fields/ColorSwatch/ColorSwatch.js +1 -1
  133. package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js +1 -1
  134. package/dist/components/fields/ComboBox/ComboBox.js +6 -2
  135. package/dist/components/fields/ComboBox/ComboBox.js.map +1 -1
  136. package/dist/components/fields/CommandTextArea/CommandTextArea.js +1 -1
  137. package/dist/components/fields/CommandTextArea/caretPosition.js +1 -1
  138. package/dist/components/fields/CommandTextArea/useCaretAnchor.js +1 -1
  139. package/dist/components/fields/DatePicker/DateInput.js +1 -1
  140. package/dist/components/fields/DatePicker/DateInputBase.js +1 -1
  141. package/dist/components/fields/DatePicker/DatePicker.js +1 -1
  142. package/dist/components/fields/DatePicker/DatePickerButton.js +1 -1
  143. package/dist/components/fields/DatePicker/DatePickerElement.js +1 -1
  144. package/dist/components/fields/DatePicker/DatePickerInput.js +1 -1
  145. package/dist/components/fields/DatePicker/DatePickerSegment.js +1 -1
  146. package/dist/components/fields/DatePicker/DateRangePicker.js +1 -1
  147. package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +1 -1
  148. package/dist/components/fields/DatePicker/MonthPicker.js +1 -1
  149. package/dist/components/fields/DatePicker/PeriodPicker.js +1 -1
  150. package/dist/components/fields/DatePicker/QuarterPicker.js +1 -1
  151. package/dist/components/fields/DatePicker/TimeInput.js +1 -1
  152. package/dist/components/fields/DatePicker/WeekPicker.js +1 -1
  153. package/dist/components/fields/DatePicker/YearPicker.js +1 -1
  154. package/dist/components/fields/DatePicker/parseDate.js +1 -1
  155. package/dist/components/fields/DatePicker/period.js +1 -1
  156. package/dist/components/fields/DatePicker/props.js +1 -1
  157. package/dist/components/fields/DatePicker/utils.js +1 -1
  158. package/dist/components/fields/FileInput/FileInput.js +1 -1
  159. package/dist/components/fields/FilterListBox/FilterListBox.js +3 -2
  160. package/dist/components/fields/FilterListBox/FilterListBox.js.map +1 -1
  161. package/dist/components/fields/FilterPicker/FilterPicker.js +1 -1
  162. package/dist/components/fields/Input/Input.js +1 -1
  163. package/dist/components/fields/ListBox/DraggableListBox.js +1 -1
  164. package/dist/components/fields/ListBox/ListBox.js +1 -1
  165. package/dist/components/fields/ListBox/optionId.js +1 -1
  166. package/dist/components/fields/ListBoxPopover/ListBoxPopover.js +1 -1
  167. package/dist/components/fields/ListBoxPopover/listNavigation.js +1 -1
  168. package/dist/components/fields/ListBoxPopover/useCompositeFocus.js +1 -1
  169. package/dist/components/fields/NumberInput/NumberInput.js +1 -1
  170. package/dist/components/fields/NumberInput/StepButton.js +1 -1
  171. package/dist/components/fields/PasswordInput/PasswordInput.js +1 -1
  172. package/dist/components/fields/Picker/Picker.js +1 -1
  173. package/dist/components/fields/RadioGroup/Radio.js +1 -1
  174. package/dist/components/fields/RadioGroup/RadioGroup.js +1 -1
  175. package/dist/components/fields/RadioGroup/context.js +1 -1
  176. package/dist/components/fields/SearchComboBox/SearchComboBox.js +1 -1
  177. package/dist/components/fields/SearchInput/SearchInput.js +1 -1
  178. package/dist/components/fields/Select/Select.js +1 -1
  179. package/dist/components/fields/Slider/Gradation.js +1 -1
  180. package/dist/components/fields/Slider/HueSlider.js +1 -1
  181. package/dist/components/fields/Slider/RangeSlider.js +1 -1
  182. package/dist/components/fields/Slider/Slider.js +1 -1
  183. package/dist/components/fields/Slider/SliderBase.js +1 -1
  184. package/dist/components/fields/Slider/SliderThumb.js +1 -1
  185. package/dist/components/fields/Slider/SliderTrack.js +1 -1
  186. package/dist/components/fields/Slider/elements.js +1 -1
  187. package/dist/components/fields/Slider/index.js +1 -1
  188. package/dist/components/fields/Switch/Switch.js +1 -1
  189. package/dist/components/fields/TagInput/TagInput.js +579 -606
  190. package/dist/components/fields/TagInput/TagInput.js.map +1 -1
  191. package/dist/components/fields/TagInput/TagList.js +1 -1
  192. package/dist/components/fields/TextArea/TextArea.js +1 -1
  193. package/dist/components/fields/TextInput/TextInput.js +1 -1
  194. package/dist/components/fields/TextInput/TextInputBase.js +1 -1
  195. package/dist/components/fields/TextInput/useAutoSizeTextArea.js +1 -1
  196. package/dist/components/fields/TextInputMapper/TextInputMapper.js +1 -1
  197. package/dist/components/fields/TriggerActions.js +1 -1
  198. package/dist/components/fields/color/ColorPanel.js +1 -1
  199. package/dist/components/fields/color/channels.js +1 -1
  200. package/dist/components/fields/color/color.js +1 -1
  201. package/dist/components/fields/color/context.js +1 -1
  202. package/dist/components/form/FieldWrapper/FieldWrapper.js +1 -1
  203. package/dist/components/form/Form/Field.js +1 -1
  204. package/dist/components/form/Form/Form.js +1 -1
  205. package/dist/components/form/Form/ModernFormRoot.js +1 -1
  206. package/dist/components/form/Form/ResetButton/ResetButton.js +1 -1
  207. package/dist/components/form/Form/SubmitButton/SubmitButton.js +1 -1
  208. package/dist/components/form/Form/SubmitError.js +1 -1
  209. package/dist/components/form/Form/backend.js +1 -1
  210. package/dist/components/form/Form/index.js +1 -1
  211. package/dist/components/form/Form/modern/actions.js +1 -1
  212. package/dist/components/form/Form/modern/context.js +1 -1
  213. package/dist/components/form/Form/modern/controller.js +1 -1
  214. package/dist/components/form/Form/modern/field-binding.js +1 -1
  215. package/dist/components/form/Form/modern/field.js +1 -1
  216. package/dist/components/form/Form/modern/react.js +1 -1
  217. package/dist/components/form/Form/modern/store.js +1 -1
  218. package/dist/components/form/Form/modern/validation.js +1 -1
  219. package/dist/components/form/Form/modern/values.js +1 -1
  220. package/dist/components/form/Form/use-field/use-field-binding.js +1 -1
  221. package/dist/components/form/Form/use-field/use-field-props.js +1 -1
  222. package/dist/components/form/Form/use-field/use-field.js +1 -1
  223. package/dist/components/form/Form/use-form.js +1 -1
  224. package/dist/components/form/Form/validation.js +1 -1
  225. package/dist/components/form/Label.js +1 -1
  226. package/dist/components/form/legacy-tooltip.js +1 -1
  227. package/dist/components/form/validation/ValidationIndicator.js +1 -1
  228. package/dist/components/form/validation/resolve-validation-props.js +1 -1
  229. package/dist/components/form/validation/use-validation-props.js +1 -1
  230. package/dist/components/form/wrapper.js +1 -1
  231. package/dist/components/helpers/DisplayTransition/DisplayTransition.js +1 -1
  232. package/dist/components/helpers/IconSwitch/IconSwitch.js +1 -1
  233. package/dist/components/layout/Board/Board.js +1 -1
  234. package/dist/components/layout/Board/BoardProvider.js +1 -1
  235. package/dist/components/layout/Board/BoardResponsive.js +1 -1
  236. package/dist/components/layout/Board/Widget.js +1 -1
  237. package/dist/components/layout/Board/WidgetHost.js +1 -1
  238. package/dist/components/layout/Board/board-context.js +1 -1
  239. package/dist/components/layout/Board/board-store.js +1 -1
  240. package/dist/components/layout/Board/grid-core/calculate.js +1 -1
  241. package/dist/components/layout/Board/grid-core/collision-modes.js +1 -1
  242. package/dist/components/layout/Board/grid-core/collision.js +1 -1
  243. package/dist/components/layout/Board/grid-core/compactors.js +1 -1
  244. package/dist/components/layout/Board/grid-core/constraints.js +1 -1
  245. package/dist/components/layout/Board/grid-core/group-move.js +1 -1
  246. package/dist/components/layout/Board/grid-core/layout.js +1 -1
  247. package/dist/components/layout/Board/grid-core/placement.js +1 -1
  248. package/dist/components/layout/Board/grid-core/sort.js +1 -1
  249. package/dist/components/layout/Board/index.js +1 -1
  250. package/dist/components/layout/Board/responsive-utils.js +1 -1
  251. package/dist/components/layout/Board/use-board-layout.js +1 -1
  252. package/dist/components/layout/Board/use-board-registry.js +1 -1
  253. package/dist/components/layout/Board/use-board-select-modifier-key.js +1 -1
  254. package/dist/components/layout/Board/use-board-selection.js +1 -1
  255. package/dist/components/layout/Flex.js +1 -1
  256. package/dist/components/layout/Flow.js +1 -1
  257. package/dist/components/layout/Grid.js +1 -1
  258. package/dist/components/layout/Panel.js +1 -1
  259. package/dist/components/layout/Prefix.js +1 -1
  260. package/dist/components/layout/ResizablePanel.js +1 -1
  261. package/dist/components/layout/Space.js +1 -1
  262. package/dist/components/layout/Suffix.js +1 -1
  263. package/dist/components/navigation/Pagination/Pagination.js +1 -1
  264. package/dist/components/navigation/Pagination/use-pagination.js +1 -1
  265. package/dist/components/navigation/Tabs/DraggableTabList.js +1 -1
  266. package/dist/components/navigation/Tabs/TabButton.js +1 -1
  267. package/dist/components/navigation/Tabs/TabDropIndicator.js +1 -1
  268. package/dist/components/navigation/Tabs/TabPanel.js +1 -1
  269. package/dist/components/navigation/Tabs/TabPicker.js +1 -1
  270. package/dist/components/navigation/Tabs/Tabs.js +1 -1
  271. package/dist/components/navigation/Tabs/TabsAction.js +1 -1
  272. package/dist/components/navigation/Tabs/TabsContext.js +1 -1
  273. package/dist/components/navigation/Tabs/popover-placement.js +1 -1
  274. package/dist/components/navigation/Tabs/styled.js +1 -1
  275. package/dist/components/navigation/Tabs/types.js +1 -1
  276. package/dist/components/navigation/Tabs/use-tab-editing.js +1 -1
  277. package/dist/components/navigation/Tabs/use-tab-indicator.js +1 -1
  278. package/dist/components/organisms/StatsCard/StatsCard.js +1 -1
  279. package/dist/components/other/Calendar/Calendar.js +1 -1
  280. package/dist/components/other/Calendar/CalendarCell.js +1 -1
  281. package/dist/components/other/Calendar/CalendarGrid.js +1 -1
  282. package/dist/components/other/Calendar/CalendarHeader.js +1 -1
  283. package/dist/components/other/Calendar/CalendarPanel.js +1 -1
  284. package/dist/components/other/Calendar/PeriodCalendar.js +1 -1
  285. package/dist/components/other/Calendar/PeriodGrid.js +1 -1
  286. package/dist/components/other/Calendar/RangeCalendar.js +1 -1
  287. package/dist/components/other/Calendar/styled.js +1 -1
  288. package/dist/components/other/CubeLogo/CubeLogo.js +1 -1
  289. package/dist/components/other/NoDataIcon/NoDataIcon.js +1 -1
  290. package/dist/components/overlays/AlertDialog/AlertDialog.js +1 -1
  291. package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
  292. package/dist/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
  293. package/dist/components/overlays/Dialog/Dialog.js +1 -1
  294. package/dist/components/overlays/Dialog/DialogContainer.js +1 -1
  295. package/dist/components/overlays/Dialog/DialogForm.js +1 -1
  296. package/dist/components/overlays/Dialog/DialogTrigger.js +1 -1
  297. package/dist/components/overlays/Dialog/ModernDialogForm.js +1 -1
  298. package/dist/components/overlays/Dialog/context.js +1 -1
  299. package/dist/components/overlays/Dialog/use-content-overflow.js +1 -1
  300. package/dist/components/overlays/Dialog/use-dialog-container.js +1 -1
  301. package/dist/components/overlays/Modal/Modal.js +1 -1
  302. package/dist/components/overlays/Modal/OpenTransitionContext.js +1 -1
  303. package/dist/components/overlays/Modal/Overlay.js +1 -1
  304. package/dist/components/overlays/Modal/Popover.js +1 -1
  305. package/dist/components/overlays/Modal/Tray.js +1 -1
  306. package/dist/components/overlays/Modal/Underlay.js +1 -1
  307. package/dist/components/overlays/Notifications/Notification.js +1 -1
  308. package/dist/components/overlays/Notifications/NotificationAction.js +1 -1
  309. package/dist/components/overlays/Notifications/NotificationCard.js +1 -1
  310. package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
  311. package/dist/components/overlays/Notifications/NotificationItem.js +1 -1
  312. package/dist/components/overlays/Notifications/OverlayContainer.js +1 -1
  313. package/dist/components/overlays/Notifications/OverlayProvider.js +1 -1
  314. package/dist/components/overlays/Notifications/PersistentNotificationsList.js +1 -1
  315. package/dist/components/overlays/Notifications/dismissed-storage.js +1 -1
  316. package/dist/components/overlays/Notifications/format-relative-time.js +1 -1
  317. package/dist/components/overlays/Notifications/index.js +1 -1
  318. package/dist/components/overlays/Notifications/use-notification-state.js +1 -1
  319. package/dist/components/overlays/Notifications/use-notifications.js +1 -1
  320. package/dist/components/overlays/Notifications/use-overlay-timers.js +1 -1
  321. package/dist/components/overlays/Notifications/use-persistent-notifications.js +1 -1
  322. package/dist/components/overlays/Notifications/use-persistent-state.js +1 -1
  323. package/dist/components/overlays/Notifications/use-toast-state.js +1 -1
  324. package/dist/components/overlays/Toast/ToastItem.js +1 -1
  325. package/dist/components/overlays/Toast/index.js +1 -1
  326. package/dist/components/overlays/Toast/useProgressToast.js +1 -1
  327. package/dist/components/overlays/Toast/useToast.js +1 -1
  328. package/dist/components/overlays/Tooltip/Tooltip.js +1 -1
  329. package/dist/components/overlays/Tooltip/TooltipProvider.js +1 -1
  330. package/dist/components/overlays/Tooltip/TooltipTrigger.js +1 -1
  331. package/dist/components/overlays/Tooltip/context.js +1 -1
  332. package/dist/components/overlays/Tooltip/split-trigger-props.js +1 -1
  333. package/dist/components/portal/Portal.js +1 -1
  334. package/dist/components/portal/PortalProvider.js +1 -1
  335. package/dist/components/portal/usePortal.js +1 -1
  336. package/dist/components/shared/DraggableCollection.js +1 -1
  337. package/dist/components/shared/InvalidIcon.js +1 -1
  338. package/dist/components/shared/ValidIcon.js +1 -1
  339. package/dist/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
  340. package/dist/components/status/Spin/Cube.js +1 -1
  341. package/dist/components/status/Spin/InternalSpinner.js +1 -1
  342. package/dist/components/status/Spin/Spin.js +1 -1
  343. package/dist/components/status/Spin/SpinsContainer.js +1 -1
  344. package/dist/data/item-themes.js +1 -1
  345. package/dist/data/themes.js +1 -1
  346. package/dist/eslint-plugin/defaults.generated.js +1 -1
  347. package/dist/eslint-plugin/index.js +1 -1
  348. package/dist/eslint-plugin/rules/no-redundant-default-prop.js +1 -1
  349. package/dist/i18n/I18nProvider.js +1 -1
  350. package/dist/i18n/createFormatter.js +1 -1
  351. package/dist/i18n/index.js +1 -1
  352. package/dist/i18n/instance.js +1 -1
  353. package/dist/i18n/locales/de-DE/uikit.js +1 -1
  354. package/dist/i18n/locales/en-US/uikit.js +1 -1
  355. package/dist/i18n/locales/es-ES/uikit.js +1 -1
  356. package/dist/i18n/locales/es-MX/uikit.js +1 -1
  357. package/dist/i18n/locales/fr-FR/uikit.js +1 -1
  358. package/dist/i18n/locales/it-IT/uikit.js +1 -1
  359. package/dist/i18n/locales/ja-JP/uikit.js +1 -1
  360. package/dist/i18n/locales/nb-NO/uikit.js +1 -1
  361. package/dist/i18n/locales/pt-BR/uikit.js +1 -1
  362. package/dist/i18n/locales/pt-PT/uikit.js +1 -1
  363. package/dist/i18n/locales/sv-SE/uikit.js +1 -1
  364. package/dist/i18n/locales/vi-VN/uikit.js +1 -1
  365. package/dist/i18n/locales.js +1 -1
  366. package/dist/i18n/useFormatter.js +1 -1
  367. package/dist/i18n/useI18n.js +1 -1
  368. package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
  369. package/dist/icons/AdjustmentsIcon.js +1 -1
  370. package/dist/icons/AiIcon.js +1 -1
  371. package/dist/icons/AreaChartIcon.js +1 -1
  372. package/dist/icons/ArrowNarrowDownIcon.js +1 -1
  373. package/dist/icons/ArrowNarrowUpIcon.js +1 -1
  374. package/dist/icons/BackwardIcon.js +1 -1
  375. package/dist/icons/BarChartIcon.js +1 -1
  376. package/dist/icons/BellFilledIcon.js +1 -1
  377. package/dist/icons/BellIcon.js +1 -1
  378. package/dist/icons/BooleanIcon.js +1 -1
  379. package/dist/icons/CalendarEditIcon.js +1 -1
  380. package/dist/icons/CalendarIcon.js +1 -1
  381. package/dist/icons/CaretDownIcon.js +1 -1
  382. package/dist/icons/CaretUpIcon.js +1 -1
  383. package/dist/icons/ChartAreaStackedIcon.js +1 -1
  384. package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
  385. package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
  386. package/dist/icons/ChartBarGroupedIcon.js +1 -1
  387. package/dist/icons/ChartBarHorizontalIcon.js +1 -1
  388. package/dist/icons/ChartBarLineIcon.js +1 -1
  389. package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
  390. package/dist/icons/ChartBarStackedIcon.js +1 -1
  391. package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
  392. package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
  393. package/dist/icons/ChartBoxPlot2Icon.js +1 -1
  394. package/dist/icons/ChartBoxPlotIcon.js +1 -1
  395. package/dist/icons/ChartBubbleIcon.js +1 -1
  396. package/dist/icons/ChartDonut2Icon.js +1 -1
  397. package/dist/icons/ChartFunnelIcon.js +1 -1
  398. package/dist/icons/ChartHeatmapIcon.js +1 -1
  399. package/dist/icons/ChartKPIIcon.js +1 -1
  400. package/dist/icons/ChartPie2Icon.js +1 -1
  401. package/dist/icons/ChartScatterIcon.js +1 -1
  402. package/dist/icons/CheckCircleFilledIcon.js +1 -1
  403. package/dist/icons/CheckCircleIcon.js +1 -1
  404. package/dist/icons/CheckIcon.js +1 -1
  405. package/dist/icons/CircleFilledIcon.js +1 -1
  406. package/dist/icons/ClearIcon.js +1 -1
  407. package/dist/icons/CloseCircleFilledIcon.js +1 -1
  408. package/dist/icons/CloseCircleIcon.js +1 -1
  409. package/dist/icons/CloseIcon.js +1 -1
  410. package/dist/icons/CodeIcon.js +1 -1
  411. package/dist/icons/ColumnTotalIcon.js +1 -1
  412. package/dist/icons/CopyIcon.js +1 -1
  413. package/dist/icons/CountIcon.js +1 -1
  414. package/dist/icons/CubeIcon.js +1 -1
  415. package/dist/icons/CubePauseIcon.js +1 -1
  416. package/dist/icons/CubePlayIcon.js +1 -1
  417. package/dist/icons/CurrencyDollarIcon.js +1 -1
  418. package/dist/icons/DangerIcon.js +1 -1
  419. package/dist/icons/DashboardIcon.js +1 -1
  420. package/dist/icons/DatabaseIcon.js +1 -1
  421. package/dist/icons/DecimalDecreaseIcon.js +1 -1
  422. package/dist/icons/DecimalIncreaseIcon.js +1 -1
  423. package/dist/icons/DirectionIcon.js +1 -1
  424. package/dist/icons/DonutIcon.js +1 -1
  425. package/dist/icons/DownIcon.js +1 -1
  426. package/dist/icons/EditIcon.js +1 -1
  427. package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
  428. package/dist/icons/ExclamationCircleIcon.js +1 -1
  429. package/dist/icons/ExclamationIcon.js +1 -1
  430. package/dist/icons/EyeIcon.js +1 -1
  431. package/dist/icons/EyeInvisibleIcon.js +1 -1
  432. package/dist/icons/FilterIcon.js +1 -1
  433. package/dist/icons/FolderFilledIcon.js +1 -1
  434. package/dist/icons/FolderIcon.js +1 -1
  435. package/dist/icons/FolderOpenFilledIcon.js +1 -1
  436. package/dist/icons/FolderOpenIcon.js +1 -1
  437. package/dist/icons/ForwardIcon.js +1 -1
  438. package/dist/icons/GripVerticalIcon.js +1 -1
  439. package/dist/icons/HierarchyIcon.js +1 -1
  440. package/dist/icons/HierarchyOpenIcon.js +1 -1
  441. package/dist/icons/Icon.js +1 -1
  442. package/dist/icons/InfoCircleIcon.js +1 -1
  443. package/dist/icons/InfoIcon.js +1 -1
  444. package/dist/icons/KeyIcon.js +1 -1
  445. package/dist/icons/LeftIcon.js +1 -1
  446. package/dist/icons/LineChartIcon.js +1 -1
  447. package/dist/icons/LoadingIcon.js +1 -1
  448. package/dist/icons/LockFilledIcon.js +1 -1
  449. package/dist/icons/LockIcon.js +1 -1
  450. package/dist/icons/MoreIcon.js +1 -1
  451. package/dist/icons/NotAllowedIcon.js +1 -1
  452. package/dist/icons/Number123Icon.js +1 -1
  453. package/dist/icons/NumberIcon.js +1 -1
  454. package/dist/icons/PauseCircleFilledIcon.js +1 -1
  455. package/dist/icons/PauseCircleIcon.js +1 -1
  456. package/dist/icons/PauseIcon.js +1 -1
  457. package/dist/icons/PercentageIcon.js +1 -1
  458. package/dist/icons/PieChartIcon.js +1 -1
  459. package/dist/icons/PipetteIcon.js +1 -1
  460. package/dist/icons/PlayCircleIcon.js +1 -1
  461. package/dist/icons/PlayIcon.js +1 -1
  462. package/dist/icons/PlusIcon.js +1 -1
  463. package/dist/icons/ProgressBarIcon.js +1 -1
  464. package/dist/icons/ReloadIcon.js +1 -1
  465. package/dist/icons/ReportIcon.js +1 -1
  466. package/dist/icons/ReturnIcon.js +1 -1
  467. package/dist/icons/RightIcon.js +1 -1
  468. package/dist/icons/RowTotalsIcon.js +1 -1
  469. package/dist/icons/SchemeIcon.js +1 -1
  470. package/dist/icons/SearchIcon.js +1 -1
  471. package/dist/icons/SemanticQueryIcon.js +1 -1
  472. package/dist/icons/SettingsIcon.js +1 -1
  473. package/dist/icons/ShieldFilledIcon.js +1 -1
  474. package/dist/icons/ShieldIcon.js +1 -1
  475. package/dist/icons/SlashIcon.js +1 -1
  476. package/dist/icons/SparklesIcon.js +1 -1
  477. package/dist/icons/SqlIcon.js +1 -1
  478. package/dist/icons/StatsIcon.js +1 -1
  479. package/dist/icons/StopIcon.js +1 -1
  480. package/dist/icons/StringIcon.js +1 -1
  481. package/dist/icons/SubtotalsIcon.js +1 -1
  482. package/dist/icons/SwitchIcon.js +1 -1
  483. package/dist/icons/TableIcon.js +1 -1
  484. package/dist/icons/ThumbsDownIcon.js +1 -1
  485. package/dist/icons/ThumbsUpIcon.js +1 -1
  486. package/dist/icons/ThunderboltCrossedIcon.js +1 -1
  487. package/dist/icons/ThunderboltFilledIcon.js +1 -1
  488. package/dist/icons/ThunderboltIcon.js +1 -1
  489. package/dist/icons/TimeIcon.js +1 -1
  490. package/dist/icons/TrashIcon.js +1 -1
  491. package/dist/icons/UnlockIcon.js +1 -1
  492. package/dist/icons/UpIcon.js +1 -1
  493. package/dist/icons/UserGroupIcon.js +1 -1
  494. package/dist/icons/UserIcon.js +1 -1
  495. package/dist/icons/UserLockIcon.js +1 -1
  496. package/dist/icons/ViewIcon.js +1 -1
  497. package/dist/icons/WarningFilledIcon.js +1 -1
  498. package/dist/icons/WarningIcon.js +1 -1
  499. package/dist/icons/wrap-icon.js +1 -1
  500. package/dist/index.js +1 -1
  501. package/dist/probe/canonicalize.js +1 -1
  502. package/dist/probe/css.js +1 -1
  503. package/dist/probe/index.js +1 -1
  504. package/dist/provider.js +1 -1
  505. package/dist/providers/TrackingProvider.js +1 -1
  506. package/dist/providers/navigationAdapter.default.js +1 -1
  507. package/dist/tokens/all-tokens.js +1 -1
  508. package/dist/tokens/base.js +1 -1
  509. package/dist/tokens/color-seed.js +1 -1
  510. package/dist/tokens/color-theme.js +1 -1
  511. package/dist/tokens/colors.js +1 -1
  512. package/dist/tokens/layout.js +1 -1
  513. package/dist/tokens/lazy-styles.js +1 -1
  514. package/dist/tokens/legacy-color.js +1 -1
  515. package/dist/tokens/palette-config.js +1 -1
  516. package/dist/tokens/palette.js +1 -1
  517. package/dist/tokens/resolve.js +1 -1
  518. package/dist/tokens/shadows.js +1 -1
  519. package/dist/tokens/sizes.js +1 -1
  520. package/dist/tokens/spacing.js +1 -1
  521. package/dist/tokens/typography.js +1 -1
  522. package/dist/utils/ResizeSensor.js +1 -1
  523. package/dist/utils/colors.js +1 -1
  524. package/dist/utils/dotize.js +1 -1
  525. package/dist/utils/is-dev-env.js +1 -1
  526. package/dist/utils/modules.js +1 -1
  527. package/dist/utils/promise.js +1 -1
  528. package/dist/utils/raf.js +1 -1
  529. package/dist/utils/random.js +1 -1
  530. package/dist/utils/range.js +1 -1
  531. package/dist/utils/react/RenderCache.js +1 -1
  532. package/dist/utils/react/Slots.js +1 -1
  533. package/dist/utils/react/chain.js +1 -1
  534. package/dist/utils/react/disabledProps.js +1 -1
  535. package/dist/utils/react/escapePropagation.js +1 -1
  536. package/dist/utils/react/forwardRefWithGenerics.js +1 -1
  537. package/dist/utils/react/index.js +1 -1
  538. package/dist/utils/react/interactions.js +1 -1
  539. package/dist/utils/react/isTextOnly.js +1 -1
  540. package/dist/utils/react/mapProps.js +1 -1
  541. package/dist/utils/react/mergeProps.js +1 -1
  542. package/dist/utils/react/nullableValue.js +1 -1
  543. package/dist/utils/react/programmaticFocus.js +1 -1
  544. package/dist/utils/react/resolveIcon.js +1 -1
  545. package/dist/utils/react/sharedStore.js +1 -1
  546. package/dist/utils/react/useBufferedValue.js +1 -1
  547. package/dist/utils/react/useCombinedRefs.js +1 -1
  548. package/dist/utils/react/useControlledFocusVisible.js +1 -1
  549. package/dist/utils/react/useEventBus.js +1 -1
  550. package/dist/utils/react/useId.js +1 -1
  551. package/dist/utils/react/useIsDarwin.js +1 -1
  552. package/dist/utils/react/useKeySymbols.js +1 -1
  553. package/dist/utils/react/useLayoutEffect.js +1 -1
  554. package/dist/utils/react/useLocalStorage.js +1 -1
  555. package/dist/utils/react/useMergeStyles.js +1 -1
  556. package/dist/utils/react/useOverlayEscapeGuard.js +1 -1
  557. package/dist/utils/react/usePopoverSync.js +1 -1
  558. package/dist/utils/react/useQaProps.js +1 -1
  559. package/dist/utils/react/useScheme.js +1 -1
  560. package/dist/utils/react/useViewportSize.js +1 -1
  561. package/dist/utils/react/wrapNodeIfPlain.js +1 -1
  562. package/dist/utils/selection.js +1 -1
  563. package/dist/utils/styles.js +1 -1
  564. package/dist/utils/tree.js +1 -1
  565. package/dist/utils/warnings.js +1 -1
  566. package/dist/version.js +2 -2
  567. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-a84d0ed | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.0.0-canary-cb45a83 | 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";
@@ -59,7 +59,7 @@ function isComposingKey(e) {
59
59
  return e.nativeEvent.isComposing || e.keyCode === 229;
60
60
  }
61
61
  function TagInput(props, ref) {
62
- const $ = c(401);
62
+ const $ = c(393);
63
63
  let t0;
64
64
  if ($[0] !== props) {
65
65
  t0 = castNullableArrayValue(props);
@@ -478,37 +478,26 @@ function TagInput(props, ref) {
478
478
  } else t16 = $[94];
479
479
  const disabledKeySet = t16;
480
480
  let t17;
481
- let t18;
482
- if ($[95] !== collection || $[96] !== knownLabels || $[97] !== uniqueValues) {
483
- t17 = () => {
481
+ if ($[95] !== collection || $[96] !== knownLabels) {
482
+ t17 = (keys) => {
484
483
  let next = null;
485
- for (const value_0 of uniqueValues) {
486
- const label_0 = collection.getItem(value_0)?.textValue;
487
- if (label_0 && knownLabels.get(value_0) !== label_0) {
484
+ for (const key_0 of keys) {
485
+ const label_0 = collection.getItem(key_0)?.textValue;
486
+ if (label_0 && knownLabels.get(key_0) !== label_0) {
488
487
  if (!next) next = new Map(knownLabels);
489
- next.set(value_0, label_0);
488
+ next.set(key_0, label_0);
490
489
  }
491
490
  }
492
491
  if (next) setKnownLabels(next);
493
492
  };
494
- t18 = [
495
- uniqueValues,
496
- collection,
497
- knownLabels
498
- ];
499
493
  $[95] = collection;
500
494
  $[96] = knownLabels;
501
- $[97] = uniqueValues;
502
- $[98] = t17;
503
- $[99] = t18;
504
- } else {
505
- t17 = $[98];
506
- t18 = $[99];
507
- }
508
- useEffect(t17, t18);
509
- let t19;
510
- if ($[100] !== collection || $[101] !== hasOptions) {
511
- t19 = (text_0) => {
495
+ $[97] = t17;
496
+ } else t17 = $[97];
497
+ const rememberLabels = useEvent(t17);
498
+ let t18;
499
+ if ($[98] !== collection || $[99] !== hasOptions) {
500
+ t18 = (text_0) => {
512
501
  if (!hasOptions) return null;
513
502
  for (const node of collection) {
514
503
  const nodes = node.type === "section" ? [...node.childNodes] : [node];
@@ -519,214 +508,194 @@ function TagInput(props, ref) {
519
508
  }
520
509
  return null;
521
510
  };
522
- $[100] = collection;
523
- $[101] = hasOptions;
524
- $[102] = t19;
525
- } else t19 = $[102];
526
- const findOptionKey = t19;
527
- let t20;
528
- if ($[103] !== isFilterActive || $[104] !== term || $[105] !== textFilterFn) {
529
- t20 = (nodes_0) => {
511
+ $[98] = collection;
512
+ $[99] = hasOptions;
513
+ $[100] = t18;
514
+ } else t18 = $[100];
515
+ const findOptionKey = t18;
516
+ let t19;
517
+ if ($[101] !== isFilterActive || $[102] !== term || $[103] !== textFilterFn) {
518
+ t19 = (nodes_0) => {
530
519
  if (!isFilterActive || !term) return nodes_0;
531
520
  return filterCollectionNodes(nodes_0, term, textFilterFn);
532
521
  };
533
- $[103] = isFilterActive;
534
- $[104] = term;
535
- $[105] = textFilterFn;
536
- $[106] = t20;
537
- } else t20 = $[106];
538
- const optionFilterFn = t20;
539
- let t21;
522
+ $[101] = isFilterActive;
523
+ $[102] = term;
524
+ $[103] = textFilterFn;
525
+ $[104] = t19;
526
+ } else t19 = $[104];
527
+ const optionFilterFn = t19;
528
+ let t20;
540
529
  bb0: {
541
530
  if (!hasOptions) {
542
- let t22;
543
- if ($[107] === Symbol.for("react.memo_cache_sentinel")) {
544
- t22 = [];
545
- $[107] = t22;
546
- } else t22 = $[107];
547
- t21 = t22;
531
+ let t21;
532
+ if ($[105] === Symbol.for("react.memo_cache_sentinel")) {
533
+ t21 = [];
534
+ $[105] = t21;
535
+ } else t21 = $[105];
536
+ t20 = t21;
548
537
  break bb0;
549
538
  }
550
- let keys;
551
- if ($[108] !== collection || $[109] !== disabledKeys || $[110] !== optionFilterFn) {
552
- keys = [];
553
- collectVisibleKeys(optionFilterFn(collection), keys, disabledKeys ? new Set(disabledKeys) : void 0);
554
- $[108] = collection;
555
- $[109] = disabledKeys;
556
- $[110] = optionFilterFn;
557
- $[111] = keys;
558
- } else keys = $[111];
559
- t21 = keys;
539
+ let keys_0;
540
+ if ($[106] !== collection || $[107] !== disabledKeys || $[108] !== optionFilterFn) {
541
+ keys_0 = [];
542
+ collectVisibleKeys(optionFilterFn(collection), keys_0, disabledKeys ? new Set(disabledKeys) : void 0);
543
+ $[106] = collection;
544
+ $[107] = disabledKeys;
545
+ $[108] = optionFilterFn;
546
+ $[109] = keys_0;
547
+ } else keys_0 = $[109];
548
+ t20 = keys_0;
560
549
  }
561
- const visibleOptionKeys = t21;
550
+ const visibleOptionKeys = t20;
562
551
  const customTerm = hasOptions && allowsCustomValue && term && findOptionKey(term) == null && !uniqueValues.includes(term) ? term : null;
563
- let t22;
552
+ let t21;
564
553
  bb1: {
565
554
  if (!customTerm) {
566
- t22 = children;
555
+ t21 = children;
567
556
  break bb1;
568
557
  }
569
- let t23;
570
- if ($[112] !== customTerm) {
571
- t23 = /* @__PURE__ */ jsx(_CollectionItem, {
558
+ let t22;
559
+ if ($[110] !== customTerm) {
560
+ t22 = /* @__PURE__ */ jsx(_CollectionItem, {
572
561
  textValue: customTerm,
573
562
  children: customTerm
574
563
  }, customTerm);
575
- $[112] = customTerm;
576
- $[113] = t23;
577
- } else t23 = $[113];
578
- const customOption = t23;
564
+ $[110] = customTerm;
565
+ $[111] = t22;
566
+ } else t22 = $[111];
567
+ const customOption = t22;
579
568
  if (!visibleOptionKeys.length) {
580
- t22 = customOption;
569
+ t21 = customOption;
581
570
  break bb1;
582
571
  }
572
+ let t23;
573
+ if ($[112] !== t) {
574
+ t23 = t("tagInput.customValue", "Custom value");
575
+ $[112] = t;
576
+ $[113] = t23;
577
+ } else t23 = $[113];
583
578
  let t24;
584
- if ($[114] !== t) {
585
- t24 = t("tagInput.customValue", "Custom value");
586
- $[114] = t;
587
- $[115] = t24;
588
- } else t24 = $[115];
589
- let t25;
590
- if ($[116] !== customOption || $[117] !== t24) {
591
- t25 = /* @__PURE__ */ jsx(Section, {
592
- "aria-label": t24,
579
+ if ($[114] !== customOption || $[115] !== t23) {
580
+ t24 = /* @__PURE__ */ jsx(Section, {
581
+ "aria-label": t23,
593
582
  children: customOption
594
583
  }, "__custom_value__");
595
- $[116] = customOption;
596
- $[117] = t24;
597
- $[118] = t25;
598
- } else t25 = $[118];
599
- const customSection = t25;
584
+ $[114] = customOption;
585
+ $[115] = t23;
586
+ $[116] = t24;
587
+ } else t24 = $[116];
588
+ const customSection = t24;
600
589
  if ([...collection].some(_temp4)) {
590
+ let t25;
591
+ if ($[117] !== children) {
592
+ t25 = Array.isArray(children) ? children : [children];
593
+ $[117] = children;
594
+ $[118] = t25;
595
+ } else t25 = $[118];
601
596
  let t26;
602
- if ($[119] !== children) {
603
- t26 = Array.isArray(children) ? children : [children];
604
- $[119] = children;
605
- $[120] = t26;
606
- } else t26 = $[120];
607
- let t27;
608
- if ($[121] !== customSection || $[122] !== t26) {
609
- t27 = [...t26, customSection];
610
- $[121] = customSection;
611
- $[122] = t26;
612
- $[123] = t27;
613
- } else t27 = $[123];
614
- t22 = t27;
597
+ if ($[119] !== customSection || $[120] !== t25) {
598
+ t26 = [...t25, customSection];
599
+ $[119] = customSection;
600
+ $[120] = t25;
601
+ $[121] = t26;
602
+ } else t26 = $[121];
603
+ t21 = t26;
615
604
  break bb1;
616
605
  }
617
- let t26;
618
- if ($[124] !== t) {
619
- t26 = t("tagInput.options", "Options");
620
- $[124] = t;
606
+ let t25;
607
+ if ($[122] !== t) {
608
+ t25 = t("tagInput.options", "Options");
609
+ $[122] = t;
610
+ $[123] = t25;
611
+ } else t25 = $[123];
612
+ const t26 = children;
613
+ let t27;
614
+ if ($[124] !== t25 || $[125] !== t26) {
615
+ t27 = /* @__PURE__ */ jsx(Section, {
616
+ "aria-label": t25,
617
+ children: t26
618
+ }, "__options__");
619
+ $[124] = t25;
621
620
  $[125] = t26;
622
- } else t26 = $[125];
623
- const t27 = children;
621
+ $[126] = t27;
622
+ } else t27 = $[126];
624
623
  let t28;
625
- if ($[126] !== t26 || $[127] !== t27) {
626
- t28 = /* @__PURE__ */ jsx(Section, {
627
- "aria-label": t26,
628
- children: t27
629
- }, "__options__");
630
- $[126] = t26;
631
- $[127] = t27;
632
- $[128] = t28;
633
- } else t28 = $[128];
634
- let t29;
635
- if ($[129] !== customSection || $[130] !== t28) {
636
- t29 = [t28, customSection];
637
- $[129] = customSection;
638
- $[130] = t28;
639
- $[131] = t29;
640
- } else t29 = $[131];
641
- t22 = t29;
624
+ if ($[127] !== customSection || $[128] !== t27) {
625
+ t28 = [t27, customSection];
626
+ $[127] = customSection;
627
+ $[128] = t27;
628
+ $[129] = t28;
629
+ } else t28 = $[129];
630
+ t21 = t28;
642
631
  }
643
- const popoverChildren = t22;
632
+ const popoverChildren = t21;
644
633
  const hasResults = visibleOptionKeys.length > 0 || customTerm != null;
645
634
  const visibleOptionsSignature = visibleOptionKeys.join("\0");
646
635
  const [isPopoverOpen, setIsPopoverOpen] = useState(false);
647
636
  const isInteractive = !isDisabled && !isReadOnly;
648
637
  const shouldShowPopover = hasOptions && isInteractive && isPopoverOpen && hasResults;
649
- let t23;
650
- let t24;
651
- if ($[132] !== hasOptions || $[133] !== hasResults || $[134] !== isPopoverOpen) {
652
- t23 = () => {
653
- if (isPopoverOpen && hasOptions && !hasResults) setIsPopoverOpen(false);
654
- };
655
- t24 = [
656
- isPopoverOpen,
657
- hasOptions,
658
- hasResults
659
- ];
660
- $[132] = hasOptions;
661
- $[133] = hasResults;
662
- $[134] = isPopoverOpen;
663
- $[135] = t23;
664
- $[136] = t24;
665
- } else {
666
- t23 = $[135];
667
- t24 = $[136];
668
- }
669
- useEffect(t23, t24);
670
638
  const notifiedOpenRef = useRef(false);
671
- let t25;
672
- let t26;
673
- if ($[137] !== onOpenChange || $[138] !== shouldShowPopover) {
674
- t25 = () => {
639
+ let t22;
640
+ let t23;
641
+ if ($[130] !== onOpenChange || $[131] !== shouldShowPopover) {
642
+ t22 = () => {
675
643
  if (notifiedOpenRef.current === shouldShowPopover) return;
676
644
  notifiedOpenRef.current = shouldShowPopover;
677
645
  onOpenChange?.(shouldShowPopover);
678
646
  };
679
- t26 = [shouldShowPopover, onOpenChange];
680
- $[137] = onOpenChange;
681
- $[138] = shouldShowPopover;
682
- $[139] = t25;
683
- $[140] = t26;
647
+ t23 = [shouldShowPopover, onOpenChange];
648
+ $[130] = onOpenChange;
649
+ $[131] = shouldShowPopover;
650
+ $[132] = t22;
651
+ $[133] = t23;
684
652
  } else {
685
- t25 = $[139];
686
- t26 = $[140];
653
+ t22 = $[132];
654
+ t23 = $[133];
687
655
  }
688
- useEffect(t25, t26);
656
+ useEffect(t22, t23);
689
657
  const [activeOption, setActiveOption] = useState(null);
690
658
  const activeOptionKey = activeOption?.key ?? null;
691
- let t27;
692
- if ($[141] === Symbol.for("react.memo_cache_sentinel")) {
693
- t27 = (key_0, source, forTerm) => {
659
+ let t24;
660
+ if ($[134] === Symbol.for("react.memo_cache_sentinel")) {
661
+ t24 = (key_1, source, forTerm) => {
694
662
  const listState = listStateRef.current;
695
- if (!listState || key_0 == null) return;
663
+ if (!listState || key_1 == null) return;
696
664
  markKeyboardFocus(listState);
697
- listState.selectionManager.setFocusedKey(key_0);
665
+ listState.selectionManager.setFocusedKey(key_1);
698
666
  setActiveOption({
699
- key: key_0,
667
+ key: key_1,
700
668
  term: forTerm,
701
669
  source
702
670
  });
703
671
  };
704
- $[141] = t27;
705
- } else t27 = $[141];
706
- const moveVirtualFocus = useEvent(t27);
672
+ $[134] = t24;
673
+ } else t24 = $[134];
674
+ const moveVirtualFocus = useEvent(t24);
707
675
  const [popoverMinWidth, setPopoverMinWidth] = useState();
708
676
  const exactOptionKey = term ? findOptionKey(term) : null;
709
- let t28;
710
- if ($[142] !== customTerm || $[143] !== visibleOptionKeys) {
711
- t28 = customTerm ? [...visibleOptionKeys, customTerm] : visibleOptionKeys;
712
- $[142] = customTerm;
713
- $[143] = visibleOptionKeys;
714
- $[144] = t28;
715
- } else t28 = $[144];
716
- const visibleTargetKeys = t28;
677
+ let t25;
678
+ if ($[135] !== customTerm || $[136] !== visibleOptionKeys) {
679
+ t25 = customTerm ? [...visibleOptionKeys, customTerm] : visibleOptionKeys;
680
+ $[135] = customTerm;
681
+ $[136] = visibleOptionKeys;
682
+ $[137] = t25;
683
+ } else t25 = $[137];
684
+ const visibleTargetKeys = t25;
717
685
  const preferredOptionKey = exactOptionKey != null && visibleTargetKeys.includes(exactOptionKey) ? exactOptionKey : visibleTargetKeys[0] ?? null;
718
686
  const focusTermRef = useRef(null);
719
- let t29;
720
- if ($[145] !== moveVirtualFocus || $[146] !== preferredOptionKey || $[147] !== shouldShowPopover || $[148] !== term || $[149] !== visibleTargetKeys || $[150] !== wrapperRef) {
721
- t29 = () => {
687
+ let t26;
688
+ let t27;
689
+ if ($[138] !== customTerm || $[139] !== exactOptionKey || $[140] !== moveVirtualFocus || $[141] !== shouldShowPopover || $[142] !== term || $[143] !== visibleOptionsSignature || $[144] !== wrapperRef) {
690
+ t26 = () => {
722
691
  if (!shouldShowPopover) {
723
- setActiveOption(null);
724
692
  focusTermRef.current = null;
725
693
  return;
726
694
  }
727
695
  setPopoverMinWidth(wrapperRef.current?.offsetWidth);
728
- const visibleKeys = visibleTargetKeys;
729
- const preferredKey = preferredOptionKey;
696
+ const visibleKeys = visibleOptionsSignature ? visibleOptionsSignature.split("\0") : [];
697
+ if (customTerm) visibleKeys.push(customTerm);
698
+ const preferredKey = exactOptionKey != null && visibleKeys.includes(exactOptionKey) ? exactOptionKey : visibleKeys[0] ?? null;
730
699
  const isNewTerm = !!term && focusTermRef.current !== term;
731
700
  focusTermRef.current = term;
732
701
  let attempts = 0;
@@ -755,55 +724,53 @@ function TagInput(props, ref) {
755
724
  isCancelled = true;
756
725
  };
757
726
  };
758
- $[145] = moveVirtualFocus;
759
- $[146] = preferredOptionKey;
760
- $[147] = shouldShowPopover;
761
- $[148] = term;
762
- $[149] = visibleTargetKeys;
763
- $[150] = wrapperRef;
764
- $[151] = t29;
765
- } else t29 = $[151];
766
- let t30;
767
- if ($[152] !== customTerm || $[153] !== exactOptionKey || $[154] !== shouldShowPopover || $[155] !== term || $[156] !== visibleOptionsSignature) {
768
- t30 = [
727
+ t27 = [
769
728
  shouldShowPopover,
770
729
  visibleOptionsSignature,
771
730
  customTerm,
772
731
  term,
773
- exactOptionKey
732
+ exactOptionKey,
733
+ moveVirtualFocus,
734
+ wrapperRef
774
735
  ];
775
- $[152] = customTerm;
776
- $[153] = exactOptionKey;
777
- $[154] = shouldShowPopover;
778
- $[155] = term;
779
- $[156] = visibleOptionsSignature;
780
- $[157] = t30;
781
- } else t30 = $[157];
782
- useLayoutEffect(t29, t30);
783
- let t31;
784
- if ($[158] !== setDraftState) {
785
- t31 = (next_0) => {
736
+ $[138] = customTerm;
737
+ $[139] = exactOptionKey;
738
+ $[140] = moveVirtualFocus;
739
+ $[141] = shouldShowPopover;
740
+ $[142] = term;
741
+ $[143] = visibleOptionsSignature;
742
+ $[144] = wrapperRef;
743
+ $[145] = t26;
744
+ $[146] = t27;
745
+ } else {
746
+ t26 = $[145];
747
+ t27 = $[146];
748
+ }
749
+ useLayoutEffect(t26, t27);
750
+ let t28;
751
+ if ($[147] !== setDraftState) {
752
+ t28 = (next_0) => {
786
753
  setDraftState(next_0);
787
754
  setIsFilterActive(!!next_0.trim());
788
755
  };
789
- $[158] = setDraftState;
790
- $[159] = t31;
791
- } else t31 = $[159];
792
- const setDraft = useEvent(t31);
793
- let t32;
794
- if ($[160] === Symbol.for("react.memo_cache_sentinel")) {
795
- t32 = (text_1) => {
756
+ $[147] = setDraftState;
757
+ $[148] = t28;
758
+ } else t28 = $[148];
759
+ const setDraft = useEvent(t28);
760
+ let t29;
761
+ if ($[149] === Symbol.for("react.memo_cache_sentinel")) {
762
+ t29 = (text_1) => {
796
763
  setAnnouncement((prev_0) => ({
797
764
  id: prev_0.id + 1,
798
765
  text: text_1
799
766
  }));
800
767
  };
801
- $[160] = t32;
802
- } else t32 = $[160];
803
- const announce = useEvent(t32);
804
- let t33;
805
- if ($[161] !== t) {
806
- t33 = (rejection) => {
768
+ $[149] = t29;
769
+ } else t29 = $[149];
770
+ const announce = useEvent(t29);
771
+ let t30;
772
+ if ($[150] !== t) {
773
+ t30 = (rejection) => {
807
774
  if (rejection.message) return rejection.message;
808
775
  switch (rejection.reason) {
809
776
  case "duplicate": return t("tagInput.duplicateValue", "\"{{value}}\" is already added", { value: rejection.text });
@@ -812,15 +779,15 @@ function TagInput(props, ref) {
812
779
  default: return t("tagInput.invalidValue", "\"{{value}}\" is not a valid value", { value: rejection.text });
813
780
  }
814
781
  };
815
- $[161] = t;
816
- $[162] = t33;
817
- } else t33 = $[162];
818
- const rejectionMessage = useEvent(t33);
782
+ $[150] = t;
783
+ $[151] = t30;
784
+ } else t30 = $[151];
785
+ const rejectionMessage = useEvent(t30);
819
786
  const joiner = delimiters[0] ? `${delimiters[0]} ` : " ";
820
787
  const hasFieldMessage = !!label || !!props.forceField;
821
- let t34;
822
- if ($[163] !== allowsCustomValue || $[164] !== announce || $[165] !== disabledKeySet || $[166] !== findOptionKey || $[167] !== formatList || $[168] !== getOptionLabel || $[169] !== hasFieldMessage || $[170] !== hasOptions || $[171] !== joiner || $[172] !== rejectionMessage || $[173] !== setTagError || $[174] !== setValues || $[175] !== t || $[176] !== uniqueValues || $[177] !== validateTag) {
823
- t34 = (parts) => {
788
+ let t31;
789
+ if ($[152] !== allowsCustomValue || $[153] !== announce || $[154] !== disabledKeySet || $[155] !== findOptionKey || $[156] !== formatList || $[157] !== getOptionLabel || $[158] !== hasFieldMessage || $[159] !== hasOptions || $[160] !== joiner || $[161] !== rejectionMessage || $[162] !== rememberLabels || $[163] !== setTagError || $[164] !== setValues || $[165] !== t || $[166] !== uniqueValues || $[167] !== validateTag) {
790
+ t31 = (parts) => {
824
791
  if (!parts.length) return "";
825
792
  const present = new Set(uniqueValues);
826
793
  const accepted = [];
@@ -866,6 +833,7 @@ function TagInput(props, ref) {
866
833
  const error = rejected.length ? rejectionMessage(rejected[0]) : null;
867
834
  const messages = [];
868
835
  if (accepted.length) {
836
+ rememberLabels(accepted);
869
837
  setValues([...uniqueValues, ...accepted]);
870
838
  messages.push(t("tagInput.added", "Added {{value}}", { value: formatList(accepted.map(getOptionLabel)) }));
871
839
  }
@@ -874,80 +842,81 @@ function TagInput(props, ref) {
874
842
  setTagError(error);
875
843
  return rejected.map(_temp5).join(joiner);
876
844
  };
877
- $[163] = allowsCustomValue;
878
- $[164] = announce;
879
- $[165] = disabledKeySet;
880
- $[166] = findOptionKey;
881
- $[167] = formatList;
882
- $[168] = getOptionLabel;
883
- $[169] = hasFieldMessage;
884
- $[170] = hasOptions;
885
- $[171] = joiner;
886
- $[172] = rejectionMessage;
887
- $[173] = setTagError;
888
- $[174] = setValues;
889
- $[175] = t;
890
- $[176] = uniqueValues;
891
- $[177] = validateTag;
892
- $[178] = t34;
893
- } else t34 = $[178];
894
- const commitParts = useEvent(t34);
895
- let t35;
896
- if ($[179] !== commitParts || $[180] !== delimiters || $[181] !== draft || $[182] !== setDraft) {
897
- t35 = () => {
845
+ $[152] = allowsCustomValue;
846
+ $[153] = announce;
847
+ $[154] = disabledKeySet;
848
+ $[155] = findOptionKey;
849
+ $[156] = formatList;
850
+ $[157] = getOptionLabel;
851
+ $[158] = hasFieldMessage;
852
+ $[159] = hasOptions;
853
+ $[160] = joiner;
854
+ $[161] = rejectionMessage;
855
+ $[162] = rememberLabels;
856
+ $[163] = setTagError;
857
+ $[164] = setValues;
858
+ $[165] = t;
859
+ $[166] = uniqueValues;
860
+ $[167] = validateTag;
861
+ $[168] = t31;
862
+ } else t31 = $[168];
863
+ const commitParts = useEvent(t31);
864
+ let t32;
865
+ if ($[169] !== commitParts || $[170] !== delimiters || $[171] !== draft || $[172] !== setDraft) {
866
+ t32 = () => {
898
867
  setDraft(commitParts(splitTagText(draft, delimiters)));
899
868
  };
900
- $[179] = commitParts;
901
- $[180] = delimiters;
902
- $[181] = draft;
903
- $[182] = setDraft;
904
- $[183] = t35;
905
- } else t35 = $[183];
906
- const commitDraft = useEvent(t35);
907
- let t36;
908
- if ($[184] !== announce || $[185] !== formatList || $[186] !== getOptionLabel || $[187] !== inputRef || $[188] !== setTagError || $[189] !== setValues || $[190] !== t || $[191] !== uniqueValues) {
909
- t36 = (keys_0) => {
910
- const removed = new Set(keys_0);
911
- const next_1 = uniqueValues.filter((value_1) => !removed.has(value_1));
869
+ $[169] = commitParts;
870
+ $[170] = delimiters;
871
+ $[171] = draft;
872
+ $[172] = setDraft;
873
+ $[173] = t32;
874
+ } else t32 = $[173];
875
+ const commitDraft = useEvent(t32);
876
+ let t33;
877
+ if ($[174] !== announce || $[175] !== formatList || $[176] !== getOptionLabel || $[177] !== inputRef || $[178] !== setTagError || $[179] !== setValues || $[180] !== t || $[181] !== uniqueValues) {
878
+ t33 = (keys_1) => {
879
+ const removed = new Set(keys_1);
880
+ const next_1 = uniqueValues.filter((value_0) => !removed.has(value_0));
912
881
  if (!next_1.length) inputRef.current?.focus();
913
882
  setValues(next_1);
914
883
  setTagError(null);
915
- announce(t("tagInput.removed", "Removed {{value}}", { value: formatList(keys_0.map(getOptionLabel)) }));
884
+ announce(t("tagInput.removed", "Removed {{value}}", { value: formatList(keys_1.map(getOptionLabel)) }));
916
885
  };
917
- $[184] = announce;
918
- $[185] = formatList;
919
- $[186] = getOptionLabel;
920
- $[187] = inputRef;
921
- $[188] = setTagError;
922
- $[189] = setValues;
923
- $[190] = t;
924
- $[191] = uniqueValues;
925
- $[192] = t36;
926
- } else t36 = $[192];
927
- const removeValues = useEvent(t36);
928
- let t37;
929
- if ($[193] !== commitParts || $[194] !== removeValues || $[195] !== setDraft || $[196] !== setTagError || $[197] !== uniqueValues) {
930
- t37 = (key_1) => {
886
+ $[174] = announce;
887
+ $[175] = formatList;
888
+ $[176] = getOptionLabel;
889
+ $[177] = inputRef;
890
+ $[178] = setTagError;
891
+ $[179] = setValues;
892
+ $[180] = t;
893
+ $[181] = uniqueValues;
894
+ $[182] = t33;
895
+ } else t33 = $[182];
896
+ const removeValues = useEvent(t33);
897
+ let t34;
898
+ if ($[183] !== commitParts || $[184] !== removeValues || $[185] !== setDraft || $[186] !== setTagError || $[187] !== uniqueValues) {
899
+ t34 = (key_2) => {
931
900
  setTagError(null);
932
- if (uniqueValues.includes(key_1)) {
933
- removeValues([key_1]);
901
+ if (uniqueValues.includes(key_2)) {
902
+ removeValues([key_2]);
934
903
  setDraft("");
935
- } else setDraft(commitParts([key_1]));
904
+ } else setDraft(commitParts([key_2]));
936
905
  };
937
- $[193] = commitParts;
938
- $[194] = removeValues;
939
- $[195] = setDraft;
940
- $[196] = setTagError;
941
- $[197] = uniqueValues;
942
- $[198] = t37;
943
- } else t37 = $[198];
944
- const toggleOption = useEvent(t37);
945
- let t38;
946
- if ($[199] !== collection || $[200] !== customTerm || $[201] !== inputRef || $[202] !== toggleOption || $[203] !== uniqueValues) {
947
- t38 = (selection) => {
906
+ $[183] = commitParts;
907
+ $[184] = removeValues;
908
+ $[185] = setDraft;
909
+ $[186] = setTagError;
910
+ $[187] = uniqueValues;
911
+ $[188] = t34;
912
+ } else t34 = $[188];
913
+ const toggleOption = useEvent(t34);
914
+ let t35;
915
+ if ($[189] !== collection || $[190] !== customTerm || $[191] !== inputRef || $[192] !== toggleOption || $[193] !== uniqueValues) {
916
+ t35 = (selection) => {
948
917
  if (!Array.isArray(selection)) return;
949
918
  const next_2 = new Set(selection.map(String));
950
- const changed = [...[...next_2].filter((key_2) => !uniqueValues.includes(key_2)), ...uniqueValues.filter((value_2) => !next_2.has(value_2) && (collection.getItem(value_2) != null || value_2 === customTerm))];
919
+ const changed = [...[...next_2].filter((key_3) => !uniqueValues.includes(key_3)), ...uniqueValues.filter((value_1) => !next_2.has(value_1) && (collection.getItem(value_1) != null || value_1 === customTerm))];
951
920
  changed.forEach(toggleOption);
952
921
  const clicked = changed[changed.length - 1];
953
922
  if (clicked != null) {
@@ -960,18 +929,18 @@ function TagInput(props, ref) {
960
929
  }
961
930
  setTimeout(() => inputRef.current?.focus(), 0);
962
931
  };
963
- $[199] = collection;
964
- $[200] = customTerm;
965
- $[201] = inputRef;
966
- $[202] = toggleOption;
967
- $[203] = uniqueValues;
968
- $[204] = t38;
969
- } else t38 = $[204];
970
- const handlePopoverSelection = useEvent(t38);
932
+ $[189] = collection;
933
+ $[190] = customTerm;
934
+ $[191] = inputRef;
935
+ $[192] = toggleOption;
936
+ $[193] = uniqueValues;
937
+ $[194] = t35;
938
+ } else t35 = $[194];
939
+ const handlePopoverSelection = useEvent(t35);
971
940
  const isTabbingRef = useRef(false);
972
- let t39;
973
- if ($[205] !== activeOption || $[206] !== commitDraft || $[207] !== commitParts || $[208] !== delimiters || $[209] !== draft || $[210] !== getOptionLabel || $[211] !== hasOptions || $[212] !== hasResults || $[213] !== isInteractive || $[214] !== joiner || $[215] !== moveVirtualFocus || $[216] !== onKeyDown || $[217] !== preferredOptionKey || $[218] !== rejectionMessage || $[219] !== setDraft || $[220] !== setTagError || $[221] !== shouldShowPopover || $[222] !== term || $[223] !== toggleOption || $[224] !== uniqueValues) {
974
- t39 = (e) => {
941
+ let t36;
942
+ if ($[195] !== activeOption || $[196] !== commitDraft || $[197] !== commitParts || $[198] !== delimiters || $[199] !== draft || $[200] !== getOptionLabel || $[201] !== hasOptions || $[202] !== hasResults || $[203] !== isInteractive || $[204] !== joiner || $[205] !== moveVirtualFocus || $[206] !== onKeyDown || $[207] !== preferredOptionKey || $[208] !== rejectionMessage || $[209] !== setDraft || $[210] !== setTagError || $[211] !== shouldShowPopover || $[212] !== term || $[213] !== toggleOption || $[214] !== uniqueValues) {
943
+ t36 = (e) => {
975
944
  onKeyDown?.(e);
976
945
  isTabbingRef.current = e.key === "Tab" && !e.defaultPrevented;
977
946
  if (e.defaultPrevented || !isInteractive) return;
@@ -998,15 +967,15 @@ function TagInput(props, ref) {
998
967
  const targetKey = shouldShowPopover ? isCurrent ? activeOption.key : preferredOptionKey : null;
999
968
  if (targetKey != null) {
1000
969
  e.preventDefault();
1001
- const key_3 = String(targetKey);
1002
- if (term && uniqueValues.includes(key_3) && !(isCurrent && activeOption.source === "user")) {
970
+ const key_4 = String(targetKey);
971
+ if (term && uniqueValues.includes(key_4) && !(isCurrent && activeOption.source === "user")) {
1003
972
  setTagError(rejectionMessage({
1004
- text: getOptionLabel(key_3),
973
+ text: getOptionLabel(key_4),
1005
974
  reason: "duplicate"
1006
975
  }));
1007
976
  return;
1008
977
  }
1009
- toggleOption(key_3);
978
+ toggleOption(key_4);
1010
979
  return;
1011
980
  }
1012
981
  if (!term) return;
@@ -1033,36 +1002,38 @@ function TagInput(props, ref) {
1033
1002
  e.stopPropagation();
1034
1003
  setDraft("");
1035
1004
  setTagError(null);
1005
+ setIsPopoverOpen(false);
1036
1006
  }
1037
1007
  }
1038
1008
  };
1039
- $[205] = activeOption;
1040
- $[206] = commitDraft;
1041
- $[207] = commitParts;
1042
- $[208] = delimiters;
1043
- $[209] = draft;
1044
- $[210] = getOptionLabel;
1045
- $[211] = hasOptions;
1046
- $[212] = hasResults;
1047
- $[213] = isInteractive;
1048
- $[214] = joiner;
1049
- $[215] = moveVirtualFocus;
1050
- $[216] = onKeyDown;
1051
- $[217] = preferredOptionKey;
1052
- $[218] = rejectionMessage;
1053
- $[219] = setDraft;
1054
- $[220] = setTagError;
1055
- $[221] = shouldShowPopover;
1056
- $[222] = term;
1057
- $[223] = toggleOption;
1058
- $[224] = uniqueValues;
1059
- $[225] = t39;
1060
- } else t39 = $[225];
1061
- const handleKeyDown = useEvent(t39);
1062
- let t40;
1063
- if ($[226] !== commitParts || $[227] !== delimiters || $[228] !== hasOptions || $[229] !== joiner || $[230] !== popoverTrigger || $[231] !== setDraft || $[232] !== setTagError) {
1064
- t40 = (next_3) => {
1009
+ $[195] = activeOption;
1010
+ $[196] = commitDraft;
1011
+ $[197] = commitParts;
1012
+ $[198] = delimiters;
1013
+ $[199] = draft;
1014
+ $[200] = getOptionLabel;
1015
+ $[201] = hasOptions;
1016
+ $[202] = hasResults;
1017
+ $[203] = isInteractive;
1018
+ $[204] = joiner;
1019
+ $[205] = moveVirtualFocus;
1020
+ $[206] = onKeyDown;
1021
+ $[207] = preferredOptionKey;
1022
+ $[208] = rejectionMessage;
1023
+ $[209] = setDraft;
1024
+ $[210] = setTagError;
1025
+ $[211] = shouldShowPopover;
1026
+ $[212] = term;
1027
+ $[213] = toggleOption;
1028
+ $[214] = uniqueValues;
1029
+ $[215] = t36;
1030
+ } else t36 = $[215];
1031
+ const handleKeyDown = useEvent(t36);
1032
+ let t37;
1033
+ if ($[216] !== commitParts || $[217] !== delimiters || $[218] !== hasOptions || $[219] !== joiner || $[220] !== popoverTrigger || $[221] !== rememberLabels || $[222] !== setDraft || $[223] !== setTagError || $[224] !== uniqueValues) {
1034
+ t37 = (next_3) => {
1065
1035
  setTagError(null);
1036
+ rememberLabels(uniqueValues);
1066
1037
  const pattern = delimiterPattern(delimiters);
1067
1038
  const parts_0 = pattern ? next_3.split(pattern) : [next_3];
1068
1039
  let nextDraft = next_3;
@@ -1073,19 +1044,21 @@ function TagInput(props, ref) {
1073
1044
  setDraft(nextDraft);
1074
1045
  if (hasOptions && popoverTrigger !== "manual" && nextDraft.trim()) setIsPopoverOpen(true);
1075
1046
  };
1076
- $[226] = commitParts;
1077
- $[227] = delimiters;
1078
- $[228] = hasOptions;
1079
- $[229] = joiner;
1080
- $[230] = popoverTrigger;
1081
- $[231] = setDraft;
1082
- $[232] = setTagError;
1083
- $[233] = t40;
1084
- } else t40 = $[233];
1085
- const handleInputChange = useEvent(t40);
1086
- let t41;
1087
- if ($[234] !== commitParts || $[235] !== delimiters || $[236] !== draft || $[237] !== isInteractive || $[238] !== setDraft || $[239] !== setTagError) {
1088
- t41 = (e_0) => {
1047
+ $[216] = commitParts;
1048
+ $[217] = delimiters;
1049
+ $[218] = hasOptions;
1050
+ $[219] = joiner;
1051
+ $[220] = popoverTrigger;
1052
+ $[221] = rememberLabels;
1053
+ $[222] = setDraft;
1054
+ $[223] = setTagError;
1055
+ $[224] = uniqueValues;
1056
+ $[225] = t37;
1057
+ } else t37 = $[225];
1058
+ const handleInputChange = useEvent(t37);
1059
+ let t38;
1060
+ if ($[226] !== commitParts || $[227] !== delimiters || $[228] !== draft || $[229] !== isInteractive || $[230] !== setDraft || $[231] !== setTagError) {
1061
+ t38 = (e_0) => {
1089
1062
  if (!isInteractive) return;
1090
1063
  const pasted = e_0.clipboardData.getData("text");
1091
1064
  if (!pasted || splitTagText(pasted, delimiters).length < 2) return;
@@ -1096,70 +1069,70 @@ function TagInput(props, ref) {
1096
1069
  setTagError(null);
1097
1070
  setDraft(commitParts(splitTagText(`${draft.slice(0, start_0)}\n${pasted}\n${draft.slice(end_0)}`, delimiters)));
1098
1071
  };
1099
- $[234] = commitParts;
1100
- $[235] = delimiters;
1101
- $[236] = draft;
1102
- $[237] = isInteractive;
1103
- $[238] = setDraft;
1104
- $[239] = setTagError;
1105
- $[240] = t41;
1106
- } else t41 = $[240];
1107
- const handlePaste = useEvent(t41);
1108
- let t42;
1109
- if ($[241] !== allowsCustomValue || $[242] !== commitDraft || $[243] !== findOptionKey || $[244] !== hasOptions || $[245] !== isInteractive || $[246] !== setDraft || $[247] !== setTagError || $[248] !== shouldCommitOnBlur || $[249] !== term) {
1110
- t42 = () => {
1072
+ $[226] = commitParts;
1073
+ $[227] = delimiters;
1074
+ $[228] = draft;
1075
+ $[229] = isInteractive;
1076
+ $[230] = setDraft;
1077
+ $[231] = setTagError;
1078
+ $[232] = t38;
1079
+ } else t38 = $[232];
1080
+ const handlePaste = useEvent(t38);
1081
+ let t39;
1082
+ if ($[233] !== allowsCustomValue || $[234] !== commitDraft || $[235] !== findOptionKey || $[236] !== hasOptions || $[237] !== isInteractive || $[238] !== setDraft || $[239] !== setTagError || $[240] !== shouldCommitOnBlur || $[241] !== term) {
1083
+ t39 = () => {
1111
1084
  if (!term || !shouldCommitOnBlur || !isInteractive) return;
1112
1085
  if (hasOptions && !allowsCustomValue && findOptionKey(term) == null) {
1113
1086
  setDraft("");
1114
1087
  setTagError(null);
1115
1088
  } else commitDraft();
1116
1089
  };
1117
- $[241] = allowsCustomValue;
1118
- $[242] = commitDraft;
1119
- $[243] = findOptionKey;
1120
- $[244] = hasOptions;
1121
- $[245] = isInteractive;
1122
- $[246] = setDraft;
1123
- $[247] = setTagError;
1124
- $[248] = shouldCommitOnBlur;
1125
- $[249] = term;
1126
- $[250] = t42;
1127
- } else t42 = $[250];
1128
- const settleDraft = useEvent(t42);
1129
- let t43;
1130
- if ($[251] !== onBlur || $[252] !== settleDraft) {
1131
- t43 = () => {
1090
+ $[233] = allowsCustomValue;
1091
+ $[234] = commitDraft;
1092
+ $[235] = findOptionKey;
1093
+ $[236] = hasOptions;
1094
+ $[237] = isInteractive;
1095
+ $[238] = setDraft;
1096
+ $[239] = setTagError;
1097
+ $[240] = shouldCommitOnBlur;
1098
+ $[241] = term;
1099
+ $[242] = t39;
1100
+ } else t39 = $[242];
1101
+ const settleDraft = useEvent(t39);
1102
+ let t40;
1103
+ if ($[243] !== onBlur || $[244] !== settleDraft) {
1104
+ t40 = () => {
1132
1105
  setIsPopoverOpen(false);
1133
1106
  settleDraft();
1134
1107
  onBlur?.();
1135
1108
  };
1136
- $[251] = onBlur;
1137
- $[252] = settleDraft;
1138
- $[253] = t43;
1139
- } else t43 = $[253];
1140
- const handleCompositeBlur = useEvent(t43);
1141
- const t44 = rootRef;
1142
- const t45 = popoverRef;
1143
- let t46;
1144
- if ($[254] !== handleCompositeBlur || $[255] !== isDisabled || $[256] !== onFocus || $[257] !== t44 || $[258] !== t45) {
1145
- t46 = {
1146
- wrapperRef: t44,
1147
- popoverRef: t45,
1109
+ $[243] = onBlur;
1110
+ $[244] = settleDraft;
1111
+ $[245] = t40;
1112
+ } else t40 = $[245];
1113
+ const handleCompositeBlur = useEvent(t40);
1114
+ const t41 = rootRef;
1115
+ const t42 = popoverRef;
1116
+ let t43;
1117
+ if ($[246] !== handleCompositeBlur || $[247] !== isDisabled || $[248] !== onFocus || $[249] !== t41 || $[250] !== t42) {
1118
+ t43 = {
1119
+ wrapperRef: t41,
1120
+ popoverRef: t42,
1148
1121
  onFocus,
1149
1122
  onBlur: handleCompositeBlur,
1150
1123
  isDisabled
1151
1124
  };
1152
- $[254] = handleCompositeBlur;
1153
- $[255] = isDisabled;
1154
- $[256] = onFocus;
1155
- $[257] = t44;
1156
- $[258] = t45;
1157
- $[259] = t46;
1158
- } else t46 = $[259];
1159
- const { compositeFocusProps } = useCompositeFocus(t46);
1160
- let t47;
1161
- if ($[260] !== rootRef || $[261] !== settleDraft) {
1162
- t47 = (e_1) => {
1125
+ $[246] = handleCompositeBlur;
1126
+ $[247] = isDisabled;
1127
+ $[248] = onFocus;
1128
+ $[249] = t41;
1129
+ $[250] = t42;
1130
+ $[251] = t43;
1131
+ } else t43 = $[251];
1132
+ const { compositeFocusProps } = useCompositeFocus(t43);
1133
+ let t44;
1134
+ if ($[252] !== rootRef || $[253] !== settleDraft) {
1135
+ t44 = (e_1) => {
1163
1136
  const isTabbing = isTabbingRef.current;
1164
1137
  const next_4 = e_1.relatedTarget;
1165
1138
  isTabbingRef.current = false;
@@ -1167,48 +1140,48 @@ function TagInput(props, ref) {
1167
1140
  setIsPopoverOpen(false);
1168
1141
  settleDraft();
1169
1142
  };
1170
- $[260] = rootRef;
1171
- $[261] = settleDraft;
1172
- $[262] = t47;
1173
- } else t47 = $[262];
1174
- const handleInputBlur = useEvent(t47);
1175
- let t48;
1176
- if ($[263] !== hasOptions || $[264] !== isInteractive || $[265] !== popoverTrigger) {
1177
- t48 = () => {
1143
+ $[252] = rootRef;
1144
+ $[253] = settleDraft;
1145
+ $[254] = t44;
1146
+ } else t44 = $[254];
1147
+ const handleInputBlur = useEvent(t44);
1148
+ let t45;
1149
+ if ($[255] !== hasOptions || $[256] !== isInteractive || $[257] !== popoverTrigger) {
1150
+ t45 = () => {
1178
1151
  if (hasOptions && popoverTrigger === "focus" && isInteractive) setIsPopoverOpen(true);
1179
1152
  };
1180
- $[263] = hasOptions;
1181
- $[264] = isInteractive;
1182
- $[265] = popoverTrigger;
1183
- $[266] = t48;
1184
- } else t48 = $[266];
1185
- const handleInputFocus = useEvent(t48);
1186
- let t49;
1187
- if ($[267] !== collection || $[268] !== getOptionLabel || $[269] !== knownLabels || $[270] !== t || $[271] !== tagProps || $[272] !== uniqueValues || $[273] !== validateTag) {
1188
- t49 = uniqueValues.map((value_3) => {
1189
- const result_0 = !(collection.getItem(value_3) != null || knownLabels.has(value_3)) && validateTag ? validateTag(value_3) : true;
1190
- const label_1 = getOptionLabel(value_3);
1153
+ $[255] = hasOptions;
1154
+ $[256] = isInteractive;
1155
+ $[257] = popoverTrigger;
1156
+ $[258] = t45;
1157
+ } else t45 = $[258];
1158
+ const handleInputFocus = useEvent(t45);
1159
+ let t46;
1160
+ if ($[259] !== collection || $[260] !== getOptionLabel || $[261] !== knownLabels || $[262] !== t || $[263] !== tagProps || $[264] !== uniqueValues || $[265] !== validateTag) {
1161
+ t46 = uniqueValues.map((value_2) => {
1162
+ const result_0 = !(collection.getItem(value_2) != null || knownLabels.has(value_2)) && validateTag ? validateTag(value_2) : true;
1163
+ const label_1 = getOptionLabel(value_2);
1191
1164
  return {
1192
- key: value_3,
1165
+ key: value_2,
1193
1166
  label: label_1,
1194
1167
  invalidMessage: typeof result_0 === "string" ? result_0 : result_0 === false ? t("tagInput.invalidValue", "\"{{value}}\" is not a valid value", { value: label_1 }) : void 0,
1195
- tagProps: tagProps?.(value_3)
1168
+ tagProps: tagProps?.(value_2)
1196
1169
  };
1197
1170
  });
1198
- $[267] = collection;
1199
- $[268] = getOptionLabel;
1200
- $[269] = knownLabels;
1201
- $[270] = t;
1202
- $[271] = tagProps;
1203
- $[272] = uniqueValues;
1204
- $[273] = validateTag;
1205
- $[274] = t49;
1206
- } else t49 = $[274];
1207
- const tags = t49;
1171
+ $[259] = collection;
1172
+ $[260] = getOptionLabel;
1173
+ $[261] = knownLabels;
1174
+ $[262] = t;
1175
+ $[263] = tagProps;
1176
+ $[264] = uniqueValues;
1177
+ $[265] = validateTag;
1178
+ $[266] = t46;
1179
+ } else t46 = $[266];
1180
+ const tags = t46;
1208
1181
  const effectiveIsInvalid = tagError ? true : isInvalid;
1209
- let t50;
1210
- if ($[275] !== autoFocus || $[276] !== draft || $[277] !== effectiveIsInvalid || $[278] !== handleInputChange || $[279] !== id || $[280] !== isDisabled || $[281] !== isReadOnly || $[282] !== isRequired || $[283] !== label || $[284] !== otherProps || $[285] !== placeholder) {
1211
- t50 = {
1182
+ let t47;
1183
+ if ($[267] !== autoFocus || $[268] !== draft || $[269] !== effectiveIsInvalid || $[270] !== handleInputChange || $[271] !== id || $[272] !== isDisabled || $[273] !== isReadOnly || $[274] !== isRequired || $[275] !== label || $[276] !== otherProps || $[277] !== placeholder) {
1184
+ t47 = {
1212
1185
  ...otherProps,
1213
1186
  id,
1214
1187
  label,
@@ -1221,39 +1194,39 @@ function TagInput(props, ref) {
1221
1194
  autoFocus,
1222
1195
  onChange: handleInputChange
1223
1196
  };
1224
- $[275] = autoFocus;
1225
- $[276] = draft;
1226
- $[277] = effectiveIsInvalid;
1227
- $[278] = handleInputChange;
1228
- $[279] = id;
1229
- $[280] = isDisabled;
1230
- $[281] = isReadOnly;
1231
- $[282] = isRequired;
1232
- $[283] = label;
1233
- $[284] = otherProps;
1234
- $[285] = placeholder;
1235
- $[286] = t50;
1236
- } else t50 = $[286];
1237
- const { labelProps, inputProps } = useTextField(t50, inputRef);
1197
+ $[267] = autoFocus;
1198
+ $[268] = draft;
1199
+ $[269] = effectiveIsInvalid;
1200
+ $[270] = handleInputChange;
1201
+ $[271] = id;
1202
+ $[272] = isDisabled;
1203
+ $[273] = isReadOnly;
1204
+ $[274] = isRequired;
1205
+ $[275] = label;
1206
+ $[276] = otherProps;
1207
+ $[277] = placeholder;
1208
+ $[278] = t47;
1209
+ } else t47 = $[278];
1210
+ const { labelProps, inputProps } = useTextField(t47, inputRef);
1238
1211
  const labelId = label ? labelProps.id : void 0;
1239
- let t51;
1240
- if ($[287] !== activeOptionKey || $[288] !== autoComplete || $[289] !== handleInputBlur || $[290] !== handleInputFocus || $[291] !== handleKeyDown || $[292] !== handlePaste || $[293] !== hasOptions || $[294] !== inputProps || $[295] !== shouldShowPopover || $[296] !== summaryId || $[297] !== uniqueValues.length) {
1241
- let t52;
1242
- if ($[299] !== inputProps || $[300] !== summaryId || $[301] !== uniqueValues.length) {
1243
- t52 = [inputProps["aria-describedby"], uniqueValues.length ? summaryId : null].filter(Boolean).join(" ") || void 0;
1244
- $[299] = inputProps;
1245
- $[300] = summaryId;
1246
- $[301] = uniqueValues.length;
1247
- $[302] = t52;
1248
- } else t52 = $[302];
1249
- t51 = mergeProps$1(inputProps, {
1212
+ let t48;
1213
+ if ($[279] !== activeOptionKey || $[280] !== autoComplete || $[281] !== handleInputBlur || $[282] !== handleInputFocus || $[283] !== handleKeyDown || $[284] !== handlePaste || $[285] !== hasOptions || $[286] !== inputProps || $[287] !== shouldShowPopover || $[288] !== summaryId || $[289] !== uniqueValues.length) {
1214
+ let t49;
1215
+ if ($[291] !== inputProps || $[292] !== summaryId || $[293] !== uniqueValues.length) {
1216
+ t49 = [inputProps["aria-describedby"], uniqueValues.length ? summaryId : null].filter(Boolean).join(" ") || void 0;
1217
+ $[291] = inputProps;
1218
+ $[292] = summaryId;
1219
+ $[293] = uniqueValues.length;
1220
+ $[294] = t49;
1221
+ } else t49 = $[294];
1222
+ t48 = mergeProps$1(inputProps, {
1250
1223
  onKeyDown: handleKeyDown,
1251
1224
  onPaste: handlePaste,
1252
1225
  onBlur: handleInputBlur,
1253
1226
  onFocus: handleInputFocus,
1254
1227
  autoComplete,
1255
1228
  "data-input-type": "taginput",
1256
- "aria-describedby": t52
1229
+ "aria-describedby": t49
1257
1230
  }, hasOptions ? {
1258
1231
  role: "combobox",
1259
1232
  "aria-autocomplete": "list",
@@ -1262,37 +1235,37 @@ function TagInput(props, ref) {
1262
1235
  "aria-controls": shouldShowPopover ? listBoxId : void 0,
1263
1236
  "aria-activedescendant": shouldShowPopover && activeOptionKey != null ? getListBoxOptionId(listBoxId, activeOptionKey) : void 0
1264
1237
  } : null);
1265
- $[287] = activeOptionKey;
1266
- $[288] = autoComplete;
1267
- $[289] = handleInputBlur;
1268
- $[290] = handleInputFocus;
1269
- $[291] = handleKeyDown;
1270
- $[292] = handlePaste;
1271
- $[293] = hasOptions;
1272
- $[294] = inputProps;
1273
- $[295] = shouldShowPopover;
1274
- $[296] = summaryId;
1275
- $[297] = uniqueValues.length;
1276
- $[298] = t51;
1277
- } else t51 = $[298];
1278
- const tagInputProps = t51;
1279
- let t52;
1280
- if ($[303] !== hasResults || $[304] !== inputRef || $[305] !== shouldShowPopover) {
1281
- t52 = () => {
1238
+ $[279] = activeOptionKey;
1239
+ $[280] = autoComplete;
1240
+ $[281] = handleInputBlur;
1241
+ $[282] = handleInputFocus;
1242
+ $[283] = handleKeyDown;
1243
+ $[284] = handlePaste;
1244
+ $[285] = hasOptions;
1245
+ $[286] = inputProps;
1246
+ $[287] = shouldShowPopover;
1247
+ $[288] = summaryId;
1248
+ $[289] = uniqueValues.length;
1249
+ $[290] = t48;
1250
+ } else t48 = $[290];
1251
+ const tagInputProps = t48;
1252
+ let t49;
1253
+ if ($[295] !== hasResults || $[296] !== inputRef || $[297] !== shouldShowPopover) {
1254
+ t49 = () => {
1282
1255
  const willOpen = !shouldShowPopover;
1283
1256
  if (willOpen && !hasResults) setIsFilterActive(false);
1284
1257
  setIsPopoverOpen(willOpen);
1285
1258
  inputRef.current?.focus();
1286
1259
  };
1287
- $[303] = hasResults;
1288
- $[304] = inputRef;
1289
- $[305] = shouldShowPopover;
1290
- $[306] = t52;
1291
- } else t52 = $[306];
1292
- const handleTriggerPress = useEvent(t52);
1293
- let t53;
1294
- if ($[307] !== handleTriggerPress || $[308] !== hasOptions || $[309] !== hideTrigger || $[310] !== isInteractive || $[311] !== labelId || $[312] !== shouldShowPopover || $[313] !== size || $[314] !== t || $[315] !== triggerId || $[316] !== triggerStyles) {
1295
- t53 = hasOptions && !hideTrigger ? /* @__PURE__ */ jsx(ItemAction, {
1260
+ $[295] = hasResults;
1261
+ $[296] = inputRef;
1262
+ $[297] = shouldShowPopover;
1263
+ $[298] = t49;
1264
+ } else t49 = $[298];
1265
+ const handleTriggerPress = useEvent(t49);
1266
+ let t50;
1267
+ if ($[299] !== handleTriggerPress || $[300] !== hasOptions || $[301] !== hideTrigger || $[302] !== isInteractive || $[303] !== labelId || $[304] !== shouldShowPopover || $[305] !== size || $[306] !== t || $[307] !== triggerId || $[308] !== triggerStyles) {
1268
+ t50 = hasOptions && !hideTrigger ? /* @__PURE__ */ jsx(ItemAction, {
1296
1269
  "data-popover-trigger": true,
1297
1270
  id: triggerId,
1298
1271
  qa: "TagInputTrigger",
@@ -1308,24 +1281,24 @@ function TagInput(props, ref) {
1308
1281
  "aria-labelledby": labelId ? `${triggerId} ${labelId}` : void 0,
1309
1282
  onPress: handleTriggerPress
1310
1283
  }) : null;
1311
- $[307] = handleTriggerPress;
1312
- $[308] = hasOptions;
1313
- $[309] = hideTrigger;
1314
- $[310] = isInteractive;
1315
- $[311] = labelId;
1316
- $[312] = shouldShowPopover;
1317
- $[313] = size;
1318
- $[314] = t;
1319
- $[315] = triggerId;
1320
- $[316] = triggerStyles;
1321
- $[317] = t53;
1322
- } else t53 = $[317];
1323
- const trigger = t53;
1324
- const t54 = qa || "TagInput";
1325
- let t55;
1326
- if ($[318] !== autoFocus || $[319] !== effectiveIsInvalid || $[320] !== icon || $[321] !== inputRef || $[322] !== inputStyles || $[323] !== isDisabled || $[324] !== isLoading || $[325] !== isValid || $[326] !== mods || $[327] !== prefix || $[328] !== size || $[329] !== suffix || $[330] !== suffixPosition || $[331] !== t54 || $[332] !== tagInputProps || $[333] !== trigger || $[334] !== wrapperRef || $[335] !== wrapperStyles) {
1327
- t55 = /* @__PURE__ */ jsx(TextInputBase, {
1328
- qa: t54,
1284
+ $[299] = handleTriggerPress;
1285
+ $[300] = hasOptions;
1286
+ $[301] = hideTrigger;
1287
+ $[302] = isInteractive;
1288
+ $[303] = labelId;
1289
+ $[304] = shouldShowPopover;
1290
+ $[305] = size;
1291
+ $[306] = t;
1292
+ $[307] = triggerId;
1293
+ $[308] = triggerStyles;
1294
+ $[309] = t50;
1295
+ } else t50 = $[309];
1296
+ const trigger = t50;
1297
+ const t51 = qa || "TagInput";
1298
+ let t52;
1299
+ if ($[310] !== autoFocus || $[311] !== effectiveIsInvalid || $[312] !== icon || $[313] !== inputRef || $[314] !== inputStyles || $[315] !== isDisabled || $[316] !== isLoading || $[317] !== isValid || $[318] !== mods || $[319] !== prefix || $[320] !== size || $[321] !== suffix || $[322] !== suffixPosition || $[323] !== t51 || $[324] !== tagInputProps || $[325] !== trigger || $[326] !== wrapperRef || $[327] !== wrapperStyles) {
1300
+ t52 = /* @__PURE__ */ jsx(TextInputBase, {
1301
+ qa: t51,
1329
1302
  inputRef,
1330
1303
  wrapperRef,
1331
1304
  inputProps: tagInputProps,
@@ -1344,29 +1317,29 @@ function TagInput(props, ref) {
1344
1317
  styles: wrapperStyles,
1345
1318
  inputStyles
1346
1319
  });
1347
- $[318] = autoFocus;
1348
- $[319] = effectiveIsInvalid;
1349
- $[320] = icon;
1350
- $[321] = inputRef;
1351
- $[322] = inputStyles;
1352
- $[323] = isDisabled;
1353
- $[324] = isLoading;
1354
- $[325] = isValid;
1355
- $[326] = mods;
1356
- $[327] = prefix;
1357
- $[328] = size;
1358
- $[329] = suffix;
1359
- $[330] = suffixPosition;
1360
- $[331] = t54;
1361
- $[332] = tagInputProps;
1362
- $[333] = trigger;
1363
- $[334] = wrapperRef;
1364
- $[335] = wrapperStyles;
1365
- $[336] = t55;
1366
- } else t55 = $[336];
1367
- let t56;
1368
- if ($[337] !== isDisabled || $[338] !== isReadOnly || $[339] !== labelId || $[340] !== removeValues || $[341] !== size || $[342] !== t || $[343] !== tagListId || $[344] !== tagListStyles || $[345] !== tagStyles || $[346] !== tags) {
1369
- t56 = tags.length ? /* @__PURE__ */ jsx(TagList, {
1320
+ $[310] = autoFocus;
1321
+ $[311] = effectiveIsInvalid;
1322
+ $[312] = icon;
1323
+ $[313] = inputRef;
1324
+ $[314] = inputStyles;
1325
+ $[315] = isDisabled;
1326
+ $[316] = isLoading;
1327
+ $[317] = isValid;
1328
+ $[318] = mods;
1329
+ $[319] = prefix;
1330
+ $[320] = size;
1331
+ $[321] = suffix;
1332
+ $[322] = suffixPosition;
1333
+ $[323] = t51;
1334
+ $[324] = tagInputProps;
1335
+ $[325] = trigger;
1336
+ $[326] = wrapperRef;
1337
+ $[327] = wrapperStyles;
1338
+ $[328] = t52;
1339
+ } else t52 = $[328];
1340
+ let t53;
1341
+ if ($[329] !== isDisabled || $[330] !== isReadOnly || $[331] !== labelId || $[332] !== removeValues || $[333] !== size || $[334] !== t || $[335] !== tagListId || $[336] !== tagListStyles || $[337] !== tagStyles || $[338] !== tags) {
1342
+ t53 = tags.length ? /* @__PURE__ */ jsx(TagList, {
1370
1343
  id: tagListId,
1371
1344
  listRef: tagListRef,
1372
1345
  "aria-label": t("tagInput.selectedValues", "Selected values"),
@@ -1379,52 +1352,52 @@ function TagInput(props, ref) {
1379
1352
  tagStyles,
1380
1353
  onRemove: removeValues
1381
1354
  }) : null;
1382
- $[337] = isDisabled;
1383
- $[338] = isReadOnly;
1384
- $[339] = labelId;
1385
- $[340] = removeValues;
1386
- $[341] = size;
1387
- $[342] = t;
1388
- $[343] = tagListId;
1389
- $[344] = tagListStyles;
1390
- $[345] = tagStyles;
1391
- $[346] = tags;
1392
- $[347] = t56;
1393
- } else t56 = $[347];
1394
- let t57;
1395
- if ($[348] !== formatList || $[349] !== t || $[350] !== tags) {
1396
- t57 = tags.length ? t("tagInput.summary", "Selected: {{values}}", { values: formatList(tags.map(_temp7)) }) : null;
1397
- $[348] = formatList;
1398
- $[349] = t;
1399
- $[350] = tags;
1400
- $[351] = t57;
1401
- } else t57 = $[351];
1402
- let t58;
1403
- if ($[352] !== summaryId || $[353] !== t57) {
1404
- t58 = /* @__PURE__ */ jsx("span", {
1355
+ $[329] = isDisabled;
1356
+ $[330] = isReadOnly;
1357
+ $[331] = labelId;
1358
+ $[332] = removeValues;
1359
+ $[333] = size;
1360
+ $[334] = t;
1361
+ $[335] = tagListId;
1362
+ $[336] = tagListStyles;
1363
+ $[337] = tagStyles;
1364
+ $[338] = tags;
1365
+ $[339] = t53;
1366
+ } else t53 = $[339];
1367
+ let t54;
1368
+ if ($[340] !== formatList || $[341] !== t || $[342] !== tags) {
1369
+ t54 = tags.length ? t("tagInput.summary", "Selected: {{values}}", { values: formatList(tags.map(_temp7)) }) : null;
1370
+ $[340] = formatList;
1371
+ $[341] = t;
1372
+ $[342] = tags;
1373
+ $[343] = t54;
1374
+ } else t54 = $[343];
1375
+ let t55;
1376
+ if ($[344] !== summaryId || $[345] !== t54) {
1377
+ t55 = /* @__PURE__ */ jsx("span", {
1405
1378
  hidden: true,
1406
1379
  id: summaryId,
1407
- children: t57
1380
+ children: t54
1408
1381
  });
1409
- $[352] = summaryId;
1410
- $[353] = t57;
1411
- $[354] = t58;
1412
- } else t58 = $[354];
1413
- let t59;
1414
- if ($[355] !== announcement.id || $[356] !== announcement.text) {
1415
- t59 = /* @__PURE__ */ jsx(VisuallyHidden, {
1382
+ $[344] = summaryId;
1383
+ $[345] = t54;
1384
+ $[346] = t55;
1385
+ } else t55 = $[346];
1386
+ let t56;
1387
+ if ($[347] !== announcement.id || $[348] !== announcement.text) {
1388
+ t56 = /* @__PURE__ */ jsx(VisuallyHidden, {
1416
1389
  role: "status",
1417
1390
  "aria-live": "polite",
1418
1391
  "aria-atomic": "true",
1419
1392
  children: /* @__PURE__ */ jsx("span", { children: announcement.text }, announcement.id)
1420
1393
  });
1421
- $[355] = announcement.id;
1422
- $[356] = announcement.text;
1423
- $[357] = t59;
1424
- } else t59 = $[357];
1425
- let t60;
1426
- if ($[358] !== compositeFocusProps || $[359] !== containerPadding || $[360] !== direction || $[361] !== disabledKeys || $[362] !== handlePopoverSelection || $[363] !== hasOptions || $[364] !== headingStyles || $[365] !== isDisabled || $[366] !== isFilterActive || $[367] !== label || $[368] !== listBoxRef || $[369] !== listBoxStyles || $[370] !== optionFilterFn || $[371] !== optionStyles || $[372] !== overlayOffset || $[373] !== overlayStyles || $[374] !== popoverChildren || $[375] !== popoverMinWidth || $[376] !== popoverRef || $[377] !== props || $[378] !== sectionStyles || $[379] !== shouldFlip || $[380] !== shouldShowPopover || $[381] !== size || $[382] !== term || $[383] !== uniqueValues || $[384] !== wrapperRef) {
1427
- t60 = hasOptions ? /* @__PURE__ */ jsx(ListBoxPopover, {
1394
+ $[347] = announcement.id;
1395
+ $[348] = announcement.text;
1396
+ $[349] = t56;
1397
+ } else t56 = $[349];
1398
+ let t57;
1399
+ if ($[350] !== compositeFocusProps || $[351] !== containerPadding || $[352] !== direction || $[353] !== disabledKeys || $[354] !== handlePopoverSelection || $[355] !== hasOptions || $[356] !== headingStyles || $[357] !== isDisabled || $[358] !== isFilterActive || $[359] !== label || $[360] !== listBoxRef || $[361] !== listBoxStyles || $[362] !== optionFilterFn || $[363] !== optionStyles || $[364] !== overlayOffset || $[365] !== overlayStyles || $[366] !== popoverChildren || $[367] !== popoverMinWidth || $[368] !== popoverRef || $[369] !== props || $[370] !== sectionStyles || $[371] !== shouldFlip || $[372] !== shouldShowPopover || $[373] !== size || $[374] !== term || $[375] !== uniqueValues || $[376] !== wrapperRef) {
1400
+ t57 = hasOptions ? /* @__PURE__ */ jsx(ListBoxPopover, {
1428
1401
  isOpen: shouldShowPopover,
1429
1402
  triggerRef: wrapperRef,
1430
1403
  popoverRef,
@@ -1457,38 +1430,38 @@ function TagInput(props, ref) {
1457
1430
  onClose: () => setIsPopoverOpen(false),
1458
1431
  children: popoverChildren
1459
1432
  }) : null;
1460
- $[358] = compositeFocusProps;
1461
- $[359] = containerPadding;
1462
- $[360] = direction;
1463
- $[361] = disabledKeys;
1464
- $[362] = handlePopoverSelection;
1465
- $[363] = hasOptions;
1466
- $[364] = headingStyles;
1467
- $[365] = isDisabled;
1468
- $[366] = isFilterActive;
1469
- $[367] = label;
1470
- $[368] = listBoxRef;
1471
- $[369] = listBoxStyles;
1472
- $[370] = optionFilterFn;
1473
- $[371] = optionStyles;
1474
- $[372] = overlayOffset;
1475
- $[373] = overlayStyles;
1476
- $[374] = popoverChildren;
1477
- $[375] = popoverMinWidth;
1478
- $[376] = popoverRef;
1479
- $[377] = props;
1480
- $[378] = sectionStyles;
1481
- $[379] = shouldFlip;
1482
- $[380] = shouldShowPopover;
1483
- $[381] = size;
1484
- $[382] = term;
1485
- $[383] = uniqueValues;
1486
- $[384] = wrapperRef;
1487
- $[385] = t60;
1488
- } else t60 = $[385];
1489
- let t61;
1490
- if ($[386] !== className || $[387] !== compositeFocusProps || $[388] !== qaVal || $[389] !== rootRef || $[390] !== style || $[391] !== styles || $[392] !== t55 || $[393] !== t56 || $[394] !== t58 || $[395] !== t59 || $[396] !== t60) {
1491
- t61 = /* @__PURE__ */ jsxs(TagInputElement, {
1433
+ $[350] = compositeFocusProps;
1434
+ $[351] = containerPadding;
1435
+ $[352] = direction;
1436
+ $[353] = disabledKeys;
1437
+ $[354] = handlePopoverSelection;
1438
+ $[355] = hasOptions;
1439
+ $[356] = headingStyles;
1440
+ $[357] = isDisabled;
1441
+ $[358] = isFilterActive;
1442
+ $[359] = label;
1443
+ $[360] = listBoxRef;
1444
+ $[361] = listBoxStyles;
1445
+ $[362] = optionFilterFn;
1446
+ $[363] = optionStyles;
1447
+ $[364] = overlayOffset;
1448
+ $[365] = overlayStyles;
1449
+ $[366] = popoverChildren;
1450
+ $[367] = popoverMinWidth;
1451
+ $[368] = popoverRef;
1452
+ $[369] = props;
1453
+ $[370] = sectionStyles;
1454
+ $[371] = shouldFlip;
1455
+ $[372] = shouldShowPopover;
1456
+ $[373] = size;
1457
+ $[374] = term;
1458
+ $[375] = uniqueValues;
1459
+ $[376] = wrapperRef;
1460
+ $[377] = t57;
1461
+ } else t57 = $[377];
1462
+ let t58;
1463
+ if ($[378] !== className || $[379] !== compositeFocusProps || $[380] !== qaVal || $[381] !== rootRef || $[382] !== style || $[383] !== styles || $[384] !== t52 || $[385] !== t53 || $[386] !== t55 || $[387] !== t56 || $[388] !== t57) {
1464
+ t58 = /* @__PURE__ */ jsxs(TagInputElement, {
1492
1465
  ref: rootRef,
1493
1466
  className,
1494
1467
  style,
@@ -1496,41 +1469,41 @@ function TagInput(props, ref) {
1496
1469
  styles,
1497
1470
  ...compositeFocusProps,
1498
1471
  children: [
1472
+ t52,
1473
+ t53,
1499
1474
  t55,
1500
1475
  t56,
1501
- t58,
1502
- t59,
1503
- t60
1476
+ t57
1504
1477
  ]
1505
1478
  });
1506
- $[386] = className;
1507
- $[387] = compositeFocusProps;
1508
- $[388] = qaVal;
1509
- $[389] = rootRef;
1510
- $[390] = style;
1511
- $[391] = styles;
1512
- $[392] = t55;
1513
- $[393] = t56;
1514
- $[394] = t58;
1515
- $[395] = t59;
1516
- $[396] = t60;
1517
- $[397] = t61;
1518
- } else t61 = $[397];
1519
- const tagInputField = t61;
1479
+ $[378] = className;
1480
+ $[379] = compositeFocusProps;
1481
+ $[380] = qaVal;
1482
+ $[381] = rootRef;
1483
+ $[382] = style;
1484
+ $[383] = styles;
1485
+ $[384] = t52;
1486
+ $[385] = t53;
1487
+ $[386] = t55;
1488
+ $[387] = t56;
1489
+ $[388] = t57;
1490
+ $[389] = t58;
1491
+ } else t58 = $[389];
1492
+ const tagInputField = t58;
1520
1493
  const { children: _children, ...fieldProps } = props;
1521
1494
  const fieldRef = useCombinedRefs();
1522
- let t62;
1523
- if ($[398] !== message || $[399] !== tagError) {
1524
- t62 = tagError ? /* @__PURE__ */ jsx("span", { children: tagError.text }, tagError.id) : message;
1525
- $[398] = message;
1526
- $[399] = tagError;
1527
- $[400] = t62;
1528
- } else t62 = $[400];
1495
+ let t59;
1496
+ if ($[390] !== message || $[391] !== tagError) {
1497
+ t59 = tagError ? /* @__PURE__ */ jsx("span", { children: tagError.text }, tagError.id) : message;
1498
+ $[390] = message;
1499
+ $[391] = tagError;
1500
+ $[392] = t59;
1501
+ } else t59 = $[392];
1529
1502
  return wrapWithField(tagInputField, fieldRef, {
1530
1503
  ...fieldProps,
1531
1504
  labelProps: mergeProps$1(labelProps, userLabelProps),
1532
1505
  isInvalid: effectiveIsInvalid,
1533
- message: t62,
1506
+ message: t59,
1534
1507
  errorMessage: tagError ? void 0 : errorMessage
1535
1508
  });
1536
1509
  }