@cube-dev/ui-kit 0.0.0-canary-8700a46 → 0.0.0-canary-3b2471f

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