@cube-dev/ui-kit 0.0.0-canary-05c61de → 0.0.0-canary-5b75dce

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