@cube-dev/ui-kit 0.223.0 → 0.224.1

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 (626) hide show
  1. package/README.md +1 -1
  2. package/dist/CHANGELOG.md +22 -0
  3. package/dist/README.md +1 -1
  4. package/dist/_internal/hooks/use-debounced-value.js +1 -1
  5. package/dist/_internal/hooks/use-deprecation-warning.js +1 -1
  6. package/dist/_internal/hooks/use-event.js +1 -1
  7. package/dist/_internal/hooks/use-is-first-render.js +1 -1
  8. package/dist/_internal/hooks/use-sync-ref.js +1 -1
  9. package/dist/_internal/hooks/use-timer/timer.js +1 -1
  10. package/dist/_internal/hooks/use-timer/use-timer.js +1 -1
  11. package/dist/_internal/hooks/use-warn.js +1 -1
  12. package/dist/components/Block.js +1 -1
  13. package/dist/components/CollectionItem.js +1 -1
  14. package/dist/components/GlobalStyles.js +1 -1
  15. package/dist/components/GridProvider.js +1 -1
  16. package/dist/components/HiddenInput.js +1 -1
  17. package/dist/components/Root.js +1 -1
  18. package/dist/components/actions/Action/Action.js +1 -1
  19. package/dist/components/actions/Banner/Banner.js +1 -1
  20. package/dist/components/actions/Button/AutoCollapseObserver.js +1 -1
  21. package/dist/components/actions/Button/Button.js +1 -1
  22. package/dist/components/actions/Button/index.js +1 -1
  23. package/dist/components/actions/ButtonGroup/ButtonGroup.js +1 -1
  24. package/dist/components/actions/ButtonSplit/ButtonSplit.js +1 -1
  25. package/dist/components/actions/ButtonSplit/context.js +1 -1
  26. package/dist/components/actions/CommandMenu/CommandMenu.js +1 -1
  27. package/dist/components/actions/CommandMenu/styled.js +1 -1
  28. package/dist/components/actions/ItemAction/ItemAction.js +1 -1
  29. package/dist/components/actions/ItemActionContext.js +1 -1
  30. package/dist/components/actions/ItemActionsWrapper.js +1 -1
  31. package/dist/components/actions/ItemButton/ItemButton.js +1 -1
  32. package/dist/components/actions/Link/Link.js +1 -1
  33. package/dist/components/actions/Menu/Menu.js +1 -1
  34. package/dist/components/actions/Menu/MenuCollectionItem.js +1 -1
  35. package/dist/components/actions/Menu/MenuItem.js +1 -1
  36. package/dist/components/actions/Menu/MenuSection.js +1 -1
  37. package/dist/components/actions/Menu/MenuTrigger.js +1 -1
  38. package/dist/components/actions/Menu/SubMenuTrigger.js +1 -1
  39. package/dist/components/actions/Menu/SubmenuTriggerContext.js +1 -1
  40. package/dist/components/actions/Menu/context.js +1 -1
  41. package/dist/components/actions/Menu/styled.js +1 -1
  42. package/dist/components/actions/actions-run.js +1 -1
  43. package/dist/components/actions/touch-context-menu.js +1 -1
  44. package/dist/components/actions/use-action.js +1 -1
  45. package/dist/components/actions/use-anchored-menu.js +1 -1
  46. package/dist/components/actions/use-context-menu.js +1 -1
  47. package/dist/components/content/ActiveZone/ActiveZone.js +1 -1
  48. package/dist/components/content/Alert/Alert.js +1 -1
  49. package/dist/components/content/Alert/use-alert.js +1 -1
  50. package/dist/components/content/Avatar/Avatar.js +1 -1
  51. package/dist/components/content/Badge/Badge.js +1 -1
  52. package/dist/components/content/Card/Card.js +1 -1
  53. package/dist/components/content/Content.js +1 -1
  54. package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +1 -1
  55. package/dist/components/content/CopySnippet/CopySnippet.js +1 -1
  56. package/dist/components/content/Disclosure/Disclosure.js +1 -1
  57. package/dist/components/content/Divider/Divider.js +1 -1
  58. package/dist/components/content/Footer.js +1 -1
  59. package/dist/components/content/Header.js +1 -1
  60. package/dist/components/content/HotKeys/HotKeys.js +1 -1
  61. package/dist/components/content/InfoBadge/InfoBadge.js +1 -1
  62. package/dist/components/content/InlineInput/InlineInput.js +1 -1
  63. package/dist/components/content/Item/Item.js +1 -1
  64. package/dist/components/content/Item/ItemWithNativeLinks.js +1 -1
  65. package/dist/components/content/ItemBadge/ItemBadge.js +1 -1
  66. package/dist/components/content/ItemCard/ItemCard.js +1 -1
  67. package/dist/components/content/Layout/GridLayout.js +1 -1
  68. package/dist/components/content/Layout/Layout.js +1 -1
  69. package/dist/components/content/Layout/LayoutBlock.js +1 -1
  70. package/dist/components/content/Layout/LayoutCenter.js +1 -1
  71. package/dist/components/content/Layout/LayoutContainer.js +1 -1
  72. package/dist/components/content/Layout/LayoutContent.js +1 -1
  73. package/dist/components/content/Layout/LayoutContext.js +1 -1
  74. package/dist/components/content/Layout/LayoutFlex.js +1 -1
  75. package/dist/components/content/Layout/LayoutFooter.js +1 -1
  76. package/dist/components/content/Layout/LayoutGrid.js +1 -1
  77. package/dist/components/content/Layout/LayoutHeader.js +1 -1
  78. package/dist/components/content/Layout/LayoutPane.js +1 -1
  79. package/dist/components/content/Layout/LayoutPanel.js +1 -1
  80. package/dist/components/content/Layout/LayoutPanelHeader.js +1 -1
  81. package/dist/components/content/Layout/LayoutPanelTransition.js +1 -1
  82. package/dist/components/content/Layout/LayoutResizeHandle.js +1 -1
  83. package/dist/components/content/Layout/LayoutToolbar.js +1 -1
  84. package/dist/components/content/Layout/hooks/useTinyScrollbar.js +1 -1
  85. package/dist/components/content/Layout/index.js +1 -1
  86. package/dist/components/content/Layout/utils.js +1 -1
  87. package/dist/components/content/Paragraph.js +1 -1
  88. package/dist/components/content/Placeholder/Placeholder.js +1 -1
  89. package/dist/components/content/PrismCode/PrismCode.js +1 -1
  90. package/dist/components/content/PrismCode/prismSetup.js +1 -1
  91. package/dist/components/content/PrismDiffCode/PrismDiffCode.js +1 -1
  92. package/dist/components/content/Result/Result.js +1 -1
  93. package/dist/components/content/Skeleton/Skeleton.js +1 -1
  94. package/dist/components/content/Tag/Tag.js +1 -1
  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/checked-keys.js +1 -1
  101. package/dist/components/content/Tree/rowId.js +1 -1
  102. package/dist/components/content/Tree/styled.js +1 -1
  103. package/dist/components/content/Tree/tree-index.js +1 -1
  104. package/dist/components/content/Tree/use-checkbox-tree.js +1 -1
  105. package/dist/components/content/Tree/use-load-data.js +1 -1
  106. package/dist/components/content/highlightText.js +1 -1
  107. package/dist/components/content/use-auto-tooltip.js +1 -1
  108. package/dist/components/data/DataTable/DataTable.js +1 -1
  109. package/dist/components/data/ItemTable/ItemTable.js +1 -1
  110. package/dist/components/data/ItemTable/ItemTableBulkBar.js +1 -1
  111. package/dist/components/data/ItemTable/ItemTableDragPreview.js +1 -1
  112. package/dist/components/data/ItemTable/ItemTableFooter.js +1 -1
  113. package/dist/components/data/ItemTable/ItemTableToolbar.js +1 -1
  114. package/dist/components/data/ItemTable/item-table-sections.js +1 -1
  115. package/dist/components/data/ItemTable/use-item-table-column-widths.js +1 -1
  116. package/dist/components/data/ItemTable/use-item-table-drag-drop.js +1 -1
  117. package/dist/components/data/ItemTable/use-item-table-pagination.js +1 -1
  118. package/dist/components/data/ItemTable/use-item-table-selection.js +1 -1
  119. package/dist/components/data/ItemTable/use-item-table-sort.js +1 -1
  120. package/dist/components/data/ItemTable/use-item-table-tree-model.js +1 -1
  121. package/dist/components/data/TableBase/ColumnResizer.js +1 -1
  122. package/dist/components/data/TableBase/RowCollection.js +1 -1
  123. package/dist/components/data/TableBase/TableHeaderCell.js +1 -1
  124. package/dist/components/data/TableBase/TableRow.js +1 -1
  125. package/dist/components/data/TableBase/TableRowLink.js +1 -1
  126. package/dist/components/data/TableBase/TableView.js +1 -1
  127. package/dist/components/data/TableBase/TreeGridTable.js +1 -1
  128. package/dist/components/data/TableBase/column-header.js +1 -1
  129. package/dist/components/data/TableBase/column-menu.js +1 -1
  130. package/dist/components/data/TableBase/column-styles.js +1 -1
  131. package/dist/components/data/TableBase/column-tint.js +1 -1
  132. package/dist/components/data/TableBase/row-menu.js +1 -1
  133. package/dist/components/data/TableBase/styled.js +1 -1
  134. package/dist/components/data/TableBase/table-body-sections.js +1 -1
  135. package/dist/components/data/TableBase/table-tree.js +1 -1
  136. package/dist/components/data/TableBase/types.js +1 -1
  137. package/dist/components/data/TableBase/use-cell-selection.js +0 -0
  138. package/dist/components/data/TableBase/use-column-menu.js +1 -1
  139. package/dist/components/data/TableBase/use-column-order.js +1 -1
  140. package/dist/components/data/TableBase/use-column-window.js +1 -1
  141. package/dist/components/data/TableBase/use-container-width.js +1 -1
  142. package/dist/components/data/TableBase/use-row-move-animation.js +1 -1
  143. package/dist/components/data/TableBase/use-scrollability.js +1 -1
  144. package/dist/components/data/TableBase/use-table-columns.js +1 -1
  145. package/dist/components/data/TableBase/use-table-search.js +1 -1
  146. package/dist/components/data/TableBase/use-table-selection.js +1 -1
  147. package/dist/components/data/TableBase/use-table-sort.js +1 -1
  148. package/dist/components/data/TableBase/use-table-sorts.js +1 -1
  149. package/dist/components/data/TableBase/use-table-storage.js +1 -1
  150. package/dist/components/data/TableBase/use-table-tooltip-refresh.js +1 -1
  151. package/dist/components/data/TableBase/use-table-tree-state.js +1 -1
  152. package/dist/components/fields/Checkbox/Checkbox.js +1 -1
  153. package/dist/components/fields/Checkbox/CheckboxGroup.js +1 -1
  154. package/dist/components/fields/Checkbox/context.js +1 -1
  155. package/dist/components/fields/ColorInput/ColorInput.js +1 -1
  156. package/dist/components/fields/ColorPicker/ColorPicker.js +1 -1
  157. package/dist/components/fields/ColorSwatch/ColorSwatch.js +1 -1
  158. package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js +1 -1
  159. package/dist/components/fields/ComboBox/ComboBox.d.ts +20 -2
  160. package/dist/components/fields/ComboBox/ComboBox.js +601 -643
  161. package/dist/components/fields/ComboBox/ComboBox.js.map +1 -1
  162. package/dist/components/fields/ComboBox/comboBoxOptions.js +1 -1
  163. package/dist/components/fields/CommandTextArea/CommandTextArea.js +1 -1
  164. package/dist/components/fields/CommandTextArea/caretPosition.js +1 -1
  165. package/dist/components/fields/CommandTextArea/useCaretAnchor.js +1 -1
  166. package/dist/components/fields/DatePicker/CalendarPopover.js +1 -1
  167. package/dist/components/fields/DatePicker/DateInput.js +1 -1
  168. package/dist/components/fields/DatePicker/DateInputBase.js +1 -1
  169. package/dist/components/fields/DatePicker/DatePicker.js +1 -1
  170. package/dist/components/fields/DatePicker/DatePickerButton.js +1 -1
  171. package/dist/components/fields/DatePicker/DatePickerElement.js +1 -1
  172. package/dist/components/fields/DatePicker/DatePickerInput.js +1 -1
  173. package/dist/components/fields/DatePicker/DatePickerSegment.js +1 -1
  174. package/dist/components/fields/DatePicker/DateRangePicker.js +1 -1
  175. package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +1 -1
  176. package/dist/components/fields/DatePicker/MonthPicker.js +1 -1
  177. package/dist/components/fields/DatePicker/PeriodPicker.js +1 -1
  178. package/dist/components/fields/DatePicker/QuarterPicker.js +1 -1
  179. package/dist/components/fields/DatePicker/TimeInput.js +1 -1
  180. package/dist/components/fields/DatePicker/WeekPicker.js +1 -1
  181. package/dist/components/fields/DatePicker/YearPicker.js +1 -1
  182. package/dist/components/fields/DatePicker/parseDate.js +1 -1
  183. package/dist/components/fields/DatePicker/period.js +1 -1
  184. package/dist/components/fields/DatePicker/props.js +1 -1
  185. package/dist/components/fields/DatePicker/utils.js +1 -1
  186. package/dist/components/fields/FileInput/FileInput.js +1 -1
  187. package/dist/components/fields/FilterListBox/FilterListBox.js +1 -1
  188. package/dist/components/fields/FilterListBox/styled.js +1 -1
  189. package/dist/components/fields/FilterPicker/FilterPicker.js +1 -1
  190. package/dist/components/fields/FilterPicker/FilterTree.js +1 -1
  191. package/dist/components/fields/Input/Input.js +1 -1
  192. package/dist/components/fields/ListBox/DraggableListBox.js +1 -1
  193. package/dist/components/fields/ListBox/ListBox.js +23 -2
  194. package/dist/components/fields/ListBox/ListBox.js.map +1 -1
  195. package/dist/components/fields/ListBox/empty-row.js +1 -1
  196. package/dist/components/fields/ListBox/optionId.js +1 -1
  197. package/dist/components/fields/ListBox/use-disabled-focus-reset.js +1 -1
  198. package/dist/components/fields/ListBoxPopover/EmptyLabelStatus.js +40 -0
  199. package/dist/components/fields/ListBoxPopover/EmptyLabelStatus.js.map +1 -0
  200. package/dist/components/fields/ListBoxPopover/ListBoxPopover.js +1 -1
  201. package/dist/components/fields/ListBoxPopover/listNavigation.js +1 -1
  202. package/dist/components/fields/ListBoxPopover/useCompositeFocus.js +1 -1
  203. package/dist/components/fields/ListBoxPopover/useDelayedLoading.js +44 -0
  204. package/dist/components/fields/ListBoxPopover/useDelayedLoading.js.map +1 -0
  205. package/dist/components/fields/NumberInput/NumberInput.js +1 -1
  206. package/dist/components/fields/NumberInput/StepButton.js +1 -1
  207. package/dist/components/fields/PasswordInput/PasswordInput.js +1 -1
  208. package/dist/components/fields/Picker/Picker.js +1 -1
  209. package/dist/components/fields/RadioGroup/Radio.js +1 -1
  210. package/dist/components/fields/RadioGroup/RadioGroup.js +1 -1
  211. package/dist/components/fields/RadioGroup/context.js +1 -1
  212. package/dist/components/fields/RadioGroup/joined-styles.js +1 -1
  213. package/dist/components/fields/SearchComboBox/SearchComboBox.d.ts +4 -2
  214. package/dist/components/fields/SearchComboBox/SearchComboBox.js +15 -38
  215. package/dist/components/fields/SearchComboBox/SearchComboBox.js.map +1 -1
  216. package/dist/components/fields/SearchInput/SearchInput.js +1 -1
  217. package/dist/components/fields/Select/Select.js +1 -1
  218. package/dist/components/fields/Slider/Gradation.js +1 -1
  219. package/dist/components/fields/Slider/HueSlider.js +1 -1
  220. package/dist/components/fields/Slider/RangeSlider.js +1 -1
  221. package/dist/components/fields/Slider/Slider.js +1 -1
  222. package/dist/components/fields/Slider/SliderBase.js +1 -1
  223. package/dist/components/fields/Slider/SliderThumb.js +1 -1
  224. package/dist/components/fields/Slider/SliderTrack.js +1 -1
  225. package/dist/components/fields/Slider/elements.js +1 -1
  226. package/dist/components/fields/Slider/index.js +1 -1
  227. package/dist/components/fields/Switch/Switch.js +1 -1
  228. package/dist/components/fields/TagInput/TagInput.js +1 -1
  229. package/dist/components/fields/TagInput/TagList.js +1 -1
  230. package/dist/components/fields/TagInput/useActiveOption.js +1 -1
  231. package/dist/components/fields/TagInput/useSuffixSpace.js +1 -1
  232. package/dist/components/fields/TagInput/useTagError.js +1 -1
  233. package/dist/components/fields/TextArea/TextArea.js +1 -1
  234. package/dist/components/fields/TextInput/TextInput.js +1 -1
  235. package/dist/components/fields/TextInput/TextInputBase.js +1 -1
  236. package/dist/components/fields/TextInput/displayed-validation.js +1 -1
  237. package/dist/components/fields/TextInput/identifier-text-services.js +1 -1
  238. package/dist/components/fields/TextInput/password-manager-ignore.js +1 -1
  239. package/dist/components/fields/TextInput/useAutoSizeTextArea.js +1 -1
  240. package/dist/components/fields/TextInputMapper/TextInputMapper.js +1 -1
  241. package/dist/components/fields/ToggleGroup/ToggleGroup.js +1 -1
  242. package/dist/components/fields/ToggleGroup/ToggleGroupItem.js +1 -1
  243. package/dist/components/fields/ToggleGroup/context.js +1 -1
  244. package/dist/components/fields/TriggerActions.js +1 -1
  245. package/dist/components/fields/color/ColorPanel.js +1 -1
  246. package/dist/components/fields/color/channels.js +1 -1
  247. package/dist/components/fields/color/color.js +1 -1
  248. package/dist/components/fields/color/context.js +1 -1
  249. package/dist/components/fields/option-origin-press.js +1 -1
  250. package/dist/components/fields/popover-width.js +1 -1
  251. package/dist/components/fields/search-text-services.js +1 -1
  252. package/dist/components/form/FieldWrapper/FieldWrapper.js +1 -1
  253. package/dist/components/form/FieldWrapper/field-description.js +1 -1
  254. package/dist/components/form/Form/Field.js +1 -1
  255. package/dist/components/form/Form/Form.js +1 -1
  256. package/dist/components/form/Form/FormContext.js +1 -1
  257. package/dist/components/form/Form/FormElement.js +1 -1
  258. package/dist/components/form/Form/ModernFormRoot.js +1 -1
  259. package/dist/components/form/Form/ResetButton/ResetButton.js +1 -1
  260. package/dist/components/form/Form/SubmitButton/SubmitButton.js +1 -1
  261. package/dist/components/form/Form/SubmitError.js +1 -1
  262. package/dist/components/form/Form/backend.js +1 -1
  263. package/dist/components/form/Form/index.js +1 -1
  264. package/dist/components/form/Form/modern/actions.js +1 -1
  265. package/dist/components/form/Form/modern/context.js +1 -1
  266. package/dist/components/form/Form/modern/controller.js +1 -1
  267. package/dist/components/form/Form/modern/field-binding.js +1 -1
  268. package/dist/components/form/Form/modern/field.js +1 -1
  269. package/dist/components/form/Form/modern/react.js +1 -1
  270. package/dist/components/form/Form/modern/store.js +1 -1
  271. package/dist/components/form/Form/modern/validation.js +1 -1
  272. package/dist/components/form/Form/modern/values.js +1 -1
  273. package/dist/components/form/Form/reset-unbound-controls.js +1 -1
  274. package/dist/components/form/Form/use-field/use-field-binding.js +1 -1
  275. package/dist/components/form/Form/use-field/use-field-props.js +1 -1
  276. package/dist/components/form/Form/use-field/use-field.js +1 -1
  277. package/dist/components/form/Form/use-form.js +1 -1
  278. package/dist/components/form/Form/validation.js +1 -1
  279. package/dist/components/form/Label.js +1 -1
  280. package/dist/components/form/field-chrome.js +1 -1
  281. package/dist/components/form/field-layout.js +1 -1
  282. package/dist/components/form/legacy-tooltip.js +1 -1
  283. package/dist/components/form/validation/ValidationIndicator.js +1 -1
  284. package/dist/components/form/validation/resolve-validation-props.js +1 -1
  285. package/dist/components/form/validation/use-validation-props.js +1 -1
  286. package/dist/components/form/wrapper.js +1 -1
  287. package/dist/components/helpers/DisplayTransition/DisplayTransition.js +1 -1
  288. package/dist/components/helpers/IconSwitch/IconSwitch.js +1 -1
  289. package/dist/components/layout/Flex.js +1 -1
  290. package/dist/components/layout/Flow.js +1 -1
  291. package/dist/components/layout/Grid.js +1 -1
  292. package/dist/components/layout/Panel.js +1 -1
  293. package/dist/components/layout/Prefix.js +1 -1
  294. package/dist/components/layout/ResizablePanel.js +1 -1
  295. package/dist/components/layout/Space.js +1 -1
  296. package/dist/components/layout/Suffix.js +1 -1
  297. package/dist/components/navigation/NavTabs/NavTabs.js +1 -1
  298. package/dist/components/navigation/Pagination/Pagination.js +1 -1
  299. package/dist/components/navigation/Pagination/use-pagination.js +1 -1
  300. package/dist/components/navigation/Tabs/BoardDragActiveProvider.js +1 -1
  301. package/dist/components/navigation/Tabs/DraggableTabList.js +1 -1
  302. package/dist/components/navigation/Tabs/TabButton.js +1 -1
  303. package/dist/components/navigation/Tabs/TabDropIndicator.js +1 -1
  304. package/dist/components/navigation/Tabs/TabPanel.js +1 -1
  305. package/dist/components/navigation/Tabs/TabPicker.js +1 -1
  306. package/dist/components/navigation/Tabs/Tabs.js +1 -1
  307. package/dist/components/navigation/Tabs/TabsAction.js +1 -1
  308. package/dist/components/navigation/Tabs/TabsContext.js +1 -1
  309. package/dist/components/navigation/Tabs/popover-placement.js +1 -1
  310. package/dist/components/navigation/Tabs/scroll-tab-into-strip.js +1 -1
  311. package/dist/components/navigation/Tabs/segmented-styles.js +1 -1
  312. package/dist/components/navigation/Tabs/styled.js +1 -1
  313. package/dist/components/navigation/Tabs/types.js +1 -1
  314. package/dist/components/navigation/Tabs/use-tab-editing.js +1 -1
  315. package/dist/components/navigation/Tabs/use-tab-indicator.js +1 -1
  316. package/dist/components/organisms/StatsCard/StatsCard.js +1 -1
  317. package/dist/components/other/Calendar/Calendar.js +1 -1
  318. package/dist/components/other/Calendar/CalendarCell.js +1 -1
  319. package/dist/components/other/Calendar/CalendarGrid.js +1 -1
  320. package/dist/components/other/Calendar/CalendarHeader.js +1 -1
  321. package/dist/components/other/Calendar/CalendarPanel.js +1 -1
  322. package/dist/components/other/Calendar/PeriodCalendar.js +1 -1
  323. package/dist/components/other/Calendar/PeriodGrid.js +1 -1
  324. package/dist/components/other/Calendar/RangeCalendar.js +1 -1
  325. package/dist/components/other/Calendar/styled.js +1 -1
  326. package/dist/components/other/CubeLogo/CubeLogo.js +1 -1
  327. package/dist/components/other/NoDataIcon/NoDataIcon.js +1 -1
  328. package/dist/components/overlays/AlertDialog/AlertDialog.js +1 -1
  329. package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
  330. package/dist/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
  331. package/dist/components/overlays/Dialog/Dialog.js +1 -1
  332. package/dist/components/overlays/Dialog/DialogContainer.js +1 -1
  333. package/dist/components/overlays/Dialog/DialogForm.js +1 -1
  334. package/dist/components/overlays/Dialog/DialogTrigger.js +1 -1
  335. package/dist/components/overlays/Dialog/ModernDialogForm.js +1 -1
  336. package/dist/components/overlays/Dialog/context.js +1 -1
  337. package/dist/components/overlays/Dialog/default-button-text.js +1 -1
  338. package/dist/components/overlays/Dialog/use-content-overflow.js +1 -1
  339. package/dist/components/overlays/Dialog/use-dialog-container.js +1 -1
  340. package/dist/components/overlays/Dialog/use-dialog-open-sync.js +1 -1
  341. package/dist/components/overlays/Dialog/use-dismiss-confirmation.js +1 -1
  342. package/dist/components/overlays/Dialog/use-retained-dialog-focus.js +1 -1
  343. package/dist/components/overlays/Modal/Modal.js +1 -1
  344. package/dist/components/overlays/Modal/OpenTransitionContext.js +1 -1
  345. package/dist/components/overlays/Modal/Overlay.js +1 -1
  346. package/dist/components/overlays/Modal/Popover.js +1 -1
  347. package/dist/components/overlays/Modal/Tray.js +1 -1
  348. package/dist/components/overlays/Modal/Underlay.js +1 -1
  349. package/dist/components/overlays/Modal/modal-containment.js +1 -1
  350. package/dist/components/overlays/Notifications/Notification.js +1 -1
  351. package/dist/components/overlays/Notifications/NotificationAction.js +1 -1
  352. package/dist/components/overlays/Notifications/NotificationCard.js +1 -1
  353. package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
  354. package/dist/components/overlays/Notifications/NotificationItem.js +1 -1
  355. package/dist/components/overlays/Notifications/OverlayContainer.js +1 -1
  356. package/dist/components/overlays/Notifications/OverlayProvider.js +1 -1
  357. package/dist/components/overlays/Notifications/PersistentNotificationsList.js +1 -1
  358. package/dist/components/overlays/Notifications/dismissed-storage.js +1 -1
  359. package/dist/components/overlays/Notifications/format-relative-time.js +1 -1
  360. package/dist/components/overlays/Notifications/index.js +1 -1
  361. package/dist/components/overlays/Notifications/use-notification-state.js +1 -1
  362. package/dist/components/overlays/Notifications/use-notifications.js +1 -1
  363. package/dist/components/overlays/Notifications/use-overlay-timers.js +1 -1
  364. package/dist/components/overlays/Notifications/use-persistent-notifications.js +1 -1
  365. package/dist/components/overlays/Notifications/use-persistent-state.js +1 -1
  366. package/dist/components/overlays/Notifications/use-toast-state.js +1 -1
  367. package/dist/components/overlays/Toast/ToastItem.js +1 -1
  368. package/dist/components/overlays/Toast/index.js +1 -1
  369. package/dist/components/overlays/Toast/useProgressToast.js +1 -1
  370. package/dist/components/overlays/Toast/useToast.js +1 -1
  371. package/dist/components/overlays/Tooltip/Tooltip.js +1 -1
  372. package/dist/components/overlays/Tooltip/TooltipProvider.js +1 -1
  373. package/dist/components/overlays/Tooltip/TooltipTrigger.js +1 -1
  374. package/dist/components/overlays/Tooltip/context.js +1 -1
  375. package/dist/components/overlays/Tooltip/split-trigger-props.js +1 -1
  376. package/dist/components/portal/Portal.js +1 -1
  377. package/dist/components/portal/PortalProvider.js +1 -1
  378. package/dist/components/portal/usePortal.js +1 -1
  379. package/dist/components/shared/DraggableCollection.js +1 -1
  380. package/dist/components/shared/InvalidIcon.js +1 -1
  381. package/dist/components/shared/ValidIcon.js +1 -1
  382. package/dist/components/shared/disabled-behavior.js +1 -1
  383. package/dist/components/shared/virtual-width.js +1 -1
  384. package/dist/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
  385. package/dist/components/status/Spin/Cube.js +1 -1
  386. package/dist/components/status/Spin/InternalSpinner.js +1 -1
  387. package/dist/components/status/Spin/Spin.js +1 -1
  388. package/dist/components/status/Spin/SpinsContainer.js +1 -1
  389. package/dist/data/item-themes.js +1 -1
  390. package/dist/data/themes.js +1 -1
  391. package/dist/eslint-plugin/defaults.generated.js +5 -1
  392. package/dist/eslint-plugin/defaults.generated.js.map +1 -1
  393. package/dist/eslint-plugin/index.js +1 -1
  394. package/dist/eslint-plugin/rules/no-redundant-default-prop.js +1 -1
  395. package/dist/harness/colors-deps.js +1 -1
  396. package/dist/i18n/I18nProvider.js +1 -1
  397. package/dist/i18n/createFormatter.js +1 -1
  398. package/dist/i18n/index.js +1 -1
  399. package/dist/i18n/instance.js +1 -1
  400. package/dist/i18n/locales/de-DE/uikit.js +1 -1
  401. package/dist/i18n/locales/en-US/uikit.js +1 -1
  402. package/dist/i18n/locales/es-ES/uikit.js +1 -1
  403. package/dist/i18n/locales/es-MX/uikit.js +1 -1
  404. package/dist/i18n/locales/fr-FR/uikit.js +1 -1
  405. package/dist/i18n/locales/it-IT/uikit.js +1 -1
  406. package/dist/i18n/locales/ja-JP/uikit.js +1 -1
  407. package/dist/i18n/locales/nb-NO/uikit.js +1 -1
  408. package/dist/i18n/locales/pt-BR/uikit.js +1 -1
  409. package/dist/i18n/locales/pt-PT/uikit.js +1 -1
  410. package/dist/i18n/locales/sv-SE/uikit.js +1 -1
  411. package/dist/i18n/locales/vi-VN/uikit.js +1 -1
  412. package/dist/i18n/locales.js +1 -1
  413. package/dist/i18n/namespace.js +1 -1
  414. package/dist/i18n/useFormatter.js +1 -1
  415. package/dist/i18n/useI18n.js +1 -1
  416. package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
  417. package/dist/icons/AdjustmentsIcon.js +1 -1
  418. package/dist/icons/AiIcon.js +1 -1
  419. package/dist/icons/AreaChartIcon.js +1 -1
  420. package/dist/icons/ArrowNarrowDownIcon.js +1 -1
  421. package/dist/icons/ArrowNarrowUpIcon.js +1 -1
  422. package/dist/icons/BackwardIcon.js +1 -1
  423. package/dist/icons/BarChartIcon.js +1 -1
  424. package/dist/icons/BellFilledIcon.js +1 -1
  425. package/dist/icons/BellIcon.js +1 -1
  426. package/dist/icons/BooleanIcon.js +1 -1
  427. package/dist/icons/CalendarEditIcon.js +1 -1
  428. package/dist/icons/CalendarIcon.js +1 -1
  429. package/dist/icons/CaretDownIcon.js +1 -1
  430. package/dist/icons/CaretUpIcon.js +1 -1
  431. package/dist/icons/ChartAreaStackedIcon.js +1 -1
  432. package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
  433. package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
  434. package/dist/icons/ChartBarGroupedIcon.js +1 -1
  435. package/dist/icons/ChartBarHorizontalIcon.js +1 -1
  436. package/dist/icons/ChartBarLineIcon.js +1 -1
  437. package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
  438. package/dist/icons/ChartBarStackedIcon.js +1 -1
  439. package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
  440. package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
  441. package/dist/icons/ChartBoxPlot2Icon.js +1 -1
  442. package/dist/icons/ChartBoxPlotIcon.js +1 -1
  443. package/dist/icons/ChartBubbleIcon.js +1 -1
  444. package/dist/icons/ChartDonut2Icon.js +1 -1
  445. package/dist/icons/ChartFunnelIcon.js +1 -1
  446. package/dist/icons/ChartHeatmapIcon.js +1 -1
  447. package/dist/icons/ChartKPIIcon.js +1 -1
  448. package/dist/icons/ChartPie2Icon.js +1 -1
  449. package/dist/icons/ChartScatterIcon.js +1 -1
  450. package/dist/icons/CheckCircleFilledIcon.js +1 -1
  451. package/dist/icons/CheckCircleIcon.js +1 -1
  452. package/dist/icons/CheckIcon.js +1 -1
  453. package/dist/icons/CircleFilledIcon.js +1 -1
  454. package/dist/icons/ClearIcon.js +1 -1
  455. package/dist/icons/CloseCircleFilledIcon.js +1 -1
  456. package/dist/icons/CloseCircleIcon.js +1 -1
  457. package/dist/icons/CloseIcon.js +1 -1
  458. package/dist/icons/CodeIcon.js +1 -1
  459. package/dist/icons/ColumnTotalIcon.js +1 -1
  460. package/dist/icons/CopyIcon.js +1 -1
  461. package/dist/icons/CountIcon.js +1 -1
  462. package/dist/icons/CubeIcon.js +1 -1
  463. package/dist/icons/CubePauseIcon.js +1 -1
  464. package/dist/icons/CubePlayIcon.js +1 -1
  465. package/dist/icons/CurrencyDollarIcon.js +1 -1
  466. package/dist/icons/DangerIcon.js +1 -1
  467. package/dist/icons/DashboardIcon.js +1 -1
  468. package/dist/icons/DatabaseIcon.js +1 -1
  469. package/dist/icons/DecimalDecreaseIcon.js +1 -1
  470. package/dist/icons/DecimalIncreaseIcon.js +1 -1
  471. package/dist/icons/DirectionIcon.js +1 -1
  472. package/dist/icons/DonutIcon.js +1 -1
  473. package/dist/icons/DownIcon.js +1 -1
  474. package/dist/icons/EditIcon.js +1 -1
  475. package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
  476. package/dist/icons/ExclamationCircleIcon.js +1 -1
  477. package/dist/icons/ExclamationIcon.js +1 -1
  478. package/dist/icons/EyeIcon.js +1 -1
  479. package/dist/icons/EyeInvisibleIcon.js +1 -1
  480. package/dist/icons/FilterIcon.js +1 -1
  481. package/dist/icons/FolderFilledIcon.js +1 -1
  482. package/dist/icons/FolderIcon.js +1 -1
  483. package/dist/icons/FolderOpenFilledIcon.js +1 -1
  484. package/dist/icons/FolderOpenIcon.js +1 -1
  485. package/dist/icons/ForwardIcon.js +1 -1
  486. package/dist/icons/GripVerticalIcon.js +1 -1
  487. package/dist/icons/HierarchyIcon.js +1 -1
  488. package/dist/icons/HierarchyOpenIcon.js +1 -1
  489. package/dist/icons/Icon.js +1 -1
  490. package/dist/icons/InfoCircleIcon.js +1 -1
  491. package/dist/icons/InfoIcon.js +1 -1
  492. package/dist/icons/KeyIcon.js +1 -1
  493. package/dist/icons/LeftIcon.js +1 -1
  494. package/dist/icons/LineChartIcon.js +1 -1
  495. package/dist/icons/LoadingIcon.js +1 -1
  496. package/dist/icons/LockFilledIcon.js +1 -1
  497. package/dist/icons/LockIcon.js +1 -1
  498. package/dist/icons/MoreIcon.js +1 -1
  499. package/dist/icons/NotAllowedIcon.js +1 -1
  500. package/dist/icons/Number123Icon.js +1 -1
  501. package/dist/icons/NumberIcon.js +1 -1
  502. package/dist/icons/PauseCircleFilledIcon.js +1 -1
  503. package/dist/icons/PauseCircleIcon.js +1 -1
  504. package/dist/icons/PauseIcon.js +1 -1
  505. package/dist/icons/PercentageIcon.js +1 -1
  506. package/dist/icons/PieChartIcon.js +1 -1
  507. package/dist/icons/PipetteIcon.js +1 -1
  508. package/dist/icons/PlayCircleIcon.js +1 -1
  509. package/dist/icons/PlayIcon.js +1 -1
  510. package/dist/icons/PlusIcon.js +1 -1
  511. package/dist/icons/ProgressBarIcon.js +1 -1
  512. package/dist/icons/ReloadIcon.js +1 -1
  513. package/dist/icons/ReportIcon.js +1 -1
  514. package/dist/icons/ReturnIcon.js +1 -1
  515. package/dist/icons/RightIcon.js +1 -1
  516. package/dist/icons/RowTotalsIcon.js +1 -1
  517. package/dist/icons/SchemeIcon.js +1 -1
  518. package/dist/icons/SearchIcon.js +1 -1
  519. package/dist/icons/SemanticQueryIcon.js +1 -1
  520. package/dist/icons/SettingsIcon.js +1 -1
  521. package/dist/icons/ShieldFilledIcon.js +1 -1
  522. package/dist/icons/ShieldIcon.js +1 -1
  523. package/dist/icons/SlashIcon.js +1 -1
  524. package/dist/icons/SparklesIcon.js +1 -1
  525. package/dist/icons/SqlIcon.js +1 -1
  526. package/dist/icons/StatsIcon.js +1 -1
  527. package/dist/icons/StopIcon.js +1 -1
  528. package/dist/icons/StringIcon.js +1 -1
  529. package/dist/icons/SubtotalsIcon.js +1 -1
  530. package/dist/icons/SwitchIcon.js +1 -1
  531. package/dist/icons/TableIcon.js +1 -1
  532. package/dist/icons/ThumbsDownIcon.js +1 -1
  533. package/dist/icons/ThumbsUpIcon.js +1 -1
  534. package/dist/icons/ThunderboltCrossedIcon.js +1 -1
  535. package/dist/icons/ThunderboltFilledIcon.js +1 -1
  536. package/dist/icons/ThunderboltIcon.js +1 -1
  537. package/dist/icons/TimeIcon.js +1 -1
  538. package/dist/icons/TrashIcon.js +1 -1
  539. package/dist/icons/UnlockIcon.js +1 -1
  540. package/dist/icons/UpIcon.js +1 -1
  541. package/dist/icons/UserGroupIcon.js +1 -1
  542. package/dist/icons/UserIcon.js +1 -1
  543. package/dist/icons/UserLockIcon.js +1 -1
  544. package/dist/icons/ViewIcon.js +1 -1
  545. package/dist/icons/WarningFilledIcon.js +1 -1
  546. package/dist/icons/WarningIcon.js +1 -1
  547. package/dist/icons/wrap-icon.js +1 -1
  548. package/dist/index.js +1 -1
  549. package/dist/probe/canonicalize.js +1 -1
  550. package/dist/probe/css.js +1 -1
  551. package/dist/probe/index.js +1 -1
  552. package/dist/provider.js +1 -1
  553. package/dist/providers/TrackingProvider.js +1 -1
  554. package/dist/providers/navigation-url.js +1 -1
  555. package/dist/providers/navigationAdapter.default.js +1 -1
  556. package/dist/providers/use-navigation.js +1 -1
  557. package/dist/tokens/all-tokens.js +1 -1
  558. package/dist/tokens/base.js +1 -1
  559. package/dist/tokens/color-seed.js +1 -1
  560. package/dist/tokens/color-theme.js +1 -1
  561. package/dist/tokens/colors.js +1 -1
  562. package/dist/tokens/layout.js +1 -1
  563. package/dist/tokens/lazy-styles.js +1 -1
  564. package/dist/tokens/legacy-color.js +1 -1
  565. package/dist/tokens/palette-config.js +1 -1
  566. package/dist/tokens/palette.js +1 -1
  567. package/dist/tokens/resolve.js +1 -1
  568. package/dist/tokens/shadows.js +1 -1
  569. package/dist/tokens/sizes.js +1 -1
  570. package/dist/tokens/spacing.js +1 -1
  571. package/dist/tokens/typography.js +1 -1
  572. package/dist/utils/ResizeSensor.js +1 -1
  573. package/dist/utils/colors.js +1 -1
  574. package/dist/utils/dotize.js +1 -1
  575. package/dist/utils/is-dev-env.js +1 -1
  576. package/dist/utils/layout-scale.js +1 -1
  577. package/dist/utils/modules.js +1 -1
  578. package/dist/utils/promise.js +1 -1
  579. package/dist/utils/raf.js +1 -1
  580. package/dist/utils/random.js +1 -1
  581. package/dist/utils/range.js +1 -1
  582. package/dist/utils/react/RenderCache.js +1 -1
  583. package/dist/utils/react/Slots.js +1 -1
  584. package/dist/utils/react/chain.js +1 -1
  585. package/dist/utils/react/componentBaseProps.js +1 -1
  586. package/dist/utils/react/disabledProps.js +1 -1
  587. package/dist/utils/react/forwardRefWithGenerics.js +1 -1
  588. package/dist/utils/react/index.js +1 -1
  589. package/dist/utils/react/interactions.js +1 -1
  590. package/dist/utils/react/isTextOnly.js +1 -1
  591. package/dist/utils/react/mapProps.js +1 -1
  592. package/dist/utils/react/mergeProps.js +1 -1
  593. package/dist/utils/react/nullableValue.js +1 -1
  594. package/dist/utils/react/overlayKeyPropagation.js +1 -1
  595. package/dist/utils/react/pickBaseCustomizationProps.js +1 -1
  596. package/dist/utils/react/programmaticFocus.js +1 -1
  597. package/dist/utils/react/resolveIcon.js +1 -1
  598. package/dist/utils/react/sharedStore.js +1 -1
  599. package/dist/utils/react/useBufferedValue.js +1 -1
  600. package/dist/utils/react/useCombinedRefs.js +1 -1
  601. package/dist/utils/react/useControlledFocusVisible.js +1 -1
  602. package/dist/utils/react/useEventBus.js +1 -1
  603. package/dist/utils/react/useId.js +1 -1
  604. package/dist/utils/react/useIsDarwin.js +1 -1
  605. package/dist/utils/react/useKeySymbols.js +1 -1
  606. package/dist/utils/react/useLayoutEffect.js +1 -1
  607. package/dist/utils/react/useLocalStorage.js +1 -1
  608. package/dist/utils/react/useMergeStyles.js +1 -1
  609. package/dist/utils/react/useOpenKey.js +1 -1
  610. package/dist/utils/react/useOverlayEscapeGuard.js +1 -1
  611. package/dist/utils/react/useOverlayPosition.js +1 -1
  612. package/dist/utils/react/usePopoverSync.js +1 -1
  613. package/dist/utils/react/useQaProps.js +1 -1
  614. package/dist/utils/react/useScheme.js +1 -1
  615. package/dist/utils/react/useViewportSize.js +1 -1
  616. package/dist/utils/react/wrapNodeIfPlain.js +1 -1
  617. package/dist/utils/selection.js +1 -1
  618. package/dist/utils/styles.js +1 -1
  619. package/dist/utils/tree.js +1 -1
  620. package/dist/utils/warnings.js +1 -1
  621. package/dist/version.js +3 -3
  622. package/docs/Usage.md +2 -2
  623. package/docs/components/fields/ComboBox.md +73 -4
  624. package/docs/components/fields/SearchComboBox.md +11 -5
  625. package/harness/dev.harnesspm/scripts/colors.mjs +1 -1
  626. package/package.json +5 -5
@@ -1,4 +1,4 @@
1
- /** @license MIT | @cube-dev/ui-kit v0.223.0 | Cube Dev Team */
1
+ /** @license MIT | @cube-dev/ui-kit v0.224.1 | Cube Dev Team */
2
2
  import { useLayoutEffect as useLayoutEffect$1 } from "../../../utils/react/useLayoutEffect.js";
3
3
  import { pickBaseCustomizationProps } from "../../../utils/react/pickBaseCustomizationProps.js";
4
4
  import { useCombinedRefs } from "../../../utils/react/useCombinedRefs.js";
@@ -24,6 +24,8 @@ import { DEFAULT_INPUT_STYLES, INPUT_WRAPPER_STYLES } from "../TextInput/TextInp
24
24
  import { getIdentifierTextServices } from "../TextInput/identifier-text-services.js";
25
25
  import { ListBoxPopover } from "../ListBoxPopover/ListBoxPopover.js";
26
26
  import { useCompositeFocus } from "../ListBoxPopover/useCompositeFocus.js";
27
+ import { EmptyLabelStatus } from "../ListBoxPopover/EmptyLabelStatus.js";
28
+ import { useDelayedLoading } from "../ListBoxPopover/useDelayedLoading.js";
27
29
  import { collectOptions, findTypedOption, getItemLabel, highlightOption, resolveHighlightedKey, sortSelectedFirst } from "./comboBoxOptions.js";
28
30
  import { c } from "react/compiler-runtime";
29
31
  import { tasty } from "@tenphi/tasty";
@@ -303,6 +305,7 @@ function useComboBoxKeyboard(t0) {
303
305
  inputRef.current?.focus();
304
306
  return true;
305
307
  }
308
+ onCloseList();
306
309
  if (effectiveInputValue && isClearable) {
307
310
  e_2.preventDefault();
308
311
  onClearValue();
@@ -480,7 +483,7 @@ const ComboBoxInput = forwardRef(function ComboBoxInput(t0, ref) {
480
483
  return t6;
481
484
  });
482
485
  const ComboBox = forwardRef(function ComboBox(props, ref) {
483
- const $ = c(303);
486
+ const $ = c(266);
484
487
  let t0;
485
488
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
486
489
  t0 = { valuePropsMapper: _temp2 };
@@ -488,7 +491,7 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
488
491
  } else t0 = $[0];
489
492
  props = useFieldProps(props, t0);
490
493
  const { t } = useI18n();
491
- let { qa, label, isRequired, isInvalid, isValid, id, icon, prefix, isDisabled, autoFocus, autoComplete: t1, isIdentifier, wrapperRef: t2, inputRef: t3, triggerRef, popoverRef, listBoxRef, isLoading, inputStyles, optionStyles, triggerStyles, listBoxStyles, overlayStyles, suffix, hideTrigger, size: t4, direction: t5, shouldFlip: t6, popoverTrigger: t7, suffixPosition: t8, filter, styles, selectedKey, defaultSelectedKey, inputValue, defaultInputValue, onInputChange, isClearable, onClear, placeholder, allowsCustomValue, shouldCommitOnBlur: t9, clearOnBlur, items, children: renderChildren, sectionStyles, headingStyles, listGap, isReadOnly, overlayOffset: t10, containerPadding: t11, onSelectionChange: externalOnSelectionChange, sortSelectedToTop: sortSelectedToTopProp, onOpenChange, onFocus, onBlur, onKeyDown } = props;
494
+ let { qa, label, isRequired, isInvalid, isValid, id, icon, prefix, isDisabled, autoFocus, autoComplete: t1, isIdentifier, wrapperRef: t2, inputRef: t3, triggerRef, popoverRef, listBoxRef, isLoading, emptyLabel, inputStyles, optionStyles, triggerStyles, listBoxStyles, overlayStyles, suffix, hideTrigger, size: t4, direction: t5, shouldFlip: t6, popoverTrigger: t7, suffixPosition: t8, filter, styles, selectedKey, defaultSelectedKey, inputValue, defaultInputValue, onInputChange, isClearable, onClear, placeholder, allowsCustomValue, shouldCommitOnBlur: t9, clearOnBlur, items, children: renderChildren, sectionStyles, headingStyles, listGap, isReadOnly, overlayOffset: t10, containerPadding: t11, onSelectionChange: externalOnSelectionChange, sortSelectedToTop: sortSelectedToTopProp, onOpenChange, onFocus, onBlur, onKeyDown } = props;
492
495
  const autoComplete = t1 === void 0 ? "off" : t1;
493
496
  let wrapperRef = t2;
494
497
  let inputRef = t3;
@@ -508,28 +511,15 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
508
511
  const comboBoxId = t12;
509
512
  wrapperRef = useCombinedRefs(wrapperRef, ref);
510
513
  popoverRef = useCombinedRefs(popoverRef);
511
- const t13 = wrapperRef;
512
- const t14 = popoverRef;
513
- let t15;
514
- if ($[2] !== defaultInputValue || $[3] !== defaultSelectedKey || $[4] !== inputValue || $[5] !== selectedKey || $[6] !== t13 || $[7] !== t14) {
515
- t15 = {
516
- selectedKey,
517
- defaultSelectedKey,
518
- inputValue,
519
- defaultInputValue,
520
- comboBoxId,
521
- triggerRef: t13,
522
- popoverRef: t14
523
- };
524
- $[2] = defaultInputValue;
525
- $[3] = defaultSelectedKey;
526
- $[4] = inputValue;
527
- $[5] = selectedKey;
528
- $[6] = t13;
529
- $[7] = t14;
530
- $[8] = t15;
531
- } else t15 = $[8];
532
- const { effectiveSelectedKey, internalInputValue, isPopoverOpen, setIsPopoverOpen, setInternalSelectedKey, setInternalInputValue, isControlledKey, isControlledInput } = useComboBoxState(t15);
514
+ const { effectiveSelectedKey, internalInputValue, isPopoverOpen, setIsPopoverOpen, setInternalSelectedKey, setInternalInputValue, isControlledKey, isControlledInput } = useComboBoxState({
515
+ selectedKey,
516
+ defaultSelectedKey,
517
+ inputValue,
518
+ defaultInputValue,
519
+ comboBoxId,
520
+ triggerRef: wrapperRef,
521
+ popoverRef
522
+ });
533
523
  const sortSelectedToTop = sortSelectedToTopProp ?? (items ? true : false);
534
524
  const fieldLayout = splitFieldLayout(props);
535
525
  styles = fieldLayout.styles;
@@ -540,7 +530,7 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
540
530
  if (!isPopoverOpen && sortKey !== effectiveSelectedKey) setSortKey(effectiveSelectedKey);
541
531
  let children;
542
532
  let sortedItems;
543
- if ($[9] !== items || $[10] !== renderChildren || $[11] !== sortKey || $[12] !== sortSelectedToTop) {
533
+ if ($[2] !== items || $[3] !== renderChildren || $[4] !== sortKey || $[5] !== sortSelectedToTop) {
544
534
  sortedItems = items && sortSelectedToTop ? sortSelectedFirst(items, sortKey) : items;
545
535
  children = renderChildren;
546
536
  const renderFn = renderChildren;
@@ -551,125 +541,130 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
551
541
  return rendered;
552
542
  });
553
543
  } catch {}
554
- $[9] = items;
555
- $[10] = renderChildren;
556
- $[11] = sortKey;
557
- $[12] = sortSelectedToTop;
558
- $[13] = children;
559
- $[14] = sortedItems;
544
+ $[2] = items;
545
+ $[3] = renderChildren;
546
+ $[4] = sortKey;
547
+ $[5] = sortSelectedToTop;
548
+ $[6] = children;
549
+ $[7] = sortedItems;
560
550
  } else {
561
- children = $[13];
562
- sortedItems = $[14];
551
+ children = $[6];
552
+ sortedItems = $[7];
563
553
  }
564
- const t16 = children;
565
- let t17;
566
- if ($[15] !== props.disabledKeys || $[16] !== sortedItems || $[17] !== t16) {
567
- t17 = {
568
- children: t16,
554
+ const t13 = children;
555
+ let t14;
556
+ if ($[8] !== props.disabledKeys || $[9] !== sortedItems || $[10] !== t13) {
557
+ t14 = {
558
+ children: t13,
569
559
  items: sortedItems,
570
560
  disabledKeys: props.disabledKeys,
571
561
  selectionMode: "none"
572
562
  };
573
- $[15] = props.disabledKeys;
574
- $[16] = sortedItems;
575
- $[17] = t16;
576
- $[18] = t17;
577
- } else t17 = $[18];
578
- const localCollectionState = useListState(t17);
563
+ $[8] = props.disabledKeys;
564
+ $[9] = sortedItems;
565
+ $[10] = t13;
566
+ $[11] = t14;
567
+ } else t14 = $[11];
568
+ const localCollectionState = useListState(t14);
579
569
  const { selectedLabel, pickLabel } = useSelectedLabel(localCollectionState.collection, effectiveSelectedKey);
580
570
  const effectiveInputValue = isControlledInput ? inputValue : internalInputValue ?? selectedLabel;
581
- let t18;
582
- if ($[19] !== effectiveInputValue || $[20] !== filter) {
583
- t18 = {
571
+ let t15;
572
+ if ($[12] !== effectiveInputValue || $[13] !== filter) {
573
+ t15 = {
584
574
  effectiveInputValue,
585
575
  filter
586
576
  };
587
- $[19] = effectiveInputValue;
588
- $[20] = filter;
589
- $[21] = t18;
590
- } else t18 = $[21];
591
- const { filterFn, matchTypedText, isSameText, setIsFilterActive } = useComboBoxFiltering(t18);
577
+ $[12] = effectiveInputValue;
578
+ $[13] = filter;
579
+ $[14] = t15;
580
+ } else t15 = $[14];
581
+ const { filterFn, matchTypedText, isSameText, setIsFilterActive } = useComboBoxFiltering(t15);
592
582
  const filteredOptions = collectOptions(filterFn(localCollectionState.collection));
593
- let t19;
594
- if ($[22] !== localCollectionState.collection || $[23] !== matchTypedText) {
595
- t19 = () => collectOptions(matchTypedText(localCollectionState.collection));
596
- $[22] = localCollectionState.collection;
597
- $[23] = matchTypedText;
598
- $[24] = t19;
599
- } else t19 = $[24];
600
- const getTypedOptions = t19;
583
+ let t16;
584
+ if ($[15] !== localCollectionState.collection || $[16] !== matchTypedText) {
585
+ t16 = () => collectOptions(matchTypedText(localCollectionState.collection));
586
+ $[15] = localCollectionState.collection;
587
+ $[16] = matchTypedText;
588
+ $[17] = t16;
589
+ } else t16 = $[17];
590
+ const getTypedOptions = t16;
601
591
  const hasResults = filteredOptions.length > 0;
602
- const shouldShowPopover = isPopoverOpen && hasResults;
592
+ const hasEmptyLabel = emptyLabel != null && emptyLabel !== false && emptyLabel !== "";
593
+ const hasLongLoad = useDelayedLoading(!!isLoading);
594
+ const [wasListShown, setWasListShown] = useState(false);
595
+ const shouldShowPopover = isPopoverOpen && (hasResults || hasEmptyLabel && (!isLoading || hasLongLoad || wasListShown));
596
+ if (wasListShown !== shouldShowPopover) setWasListShown(shouldShowPopover);
597
+ const announcesEmptyLabel = shouldShowPopover && !hasResults && !isLoading;
603
598
  const reportedOpenRef = useRef(shouldShowPopover);
604
- let t20;
605
- let t21;
606
- if ($[25] !== onOpenChange || $[26] !== shouldShowPopover) {
607
- t20 = () => {
599
+ let t17;
600
+ let t18;
601
+ if ($[18] !== onOpenChange || $[19] !== shouldShowPopover) {
602
+ t17 = () => {
608
603
  if (reportedOpenRef.current === shouldShowPopover) return;
609
604
  reportedOpenRef.current = shouldShowPopover;
610
605
  onOpenChange?.(shouldShowPopover);
611
606
  };
612
- t21 = [shouldShowPopover, onOpenChange];
613
- $[25] = onOpenChange;
614
- $[26] = shouldShowPopover;
615
- $[27] = t20;
616
- $[28] = t21;
607
+ t18 = [shouldShowPopover, onOpenChange];
608
+ $[18] = onOpenChange;
609
+ $[19] = shouldShowPopover;
610
+ $[20] = t17;
611
+ $[21] = t18;
617
612
  } else {
618
- t20 = $[27];
619
- t21 = $[28];
613
+ t17 = $[20];
614
+ t18 = $[21];
620
615
  }
621
- useEffect(t20, t21);
616
+ useEffect(t17, t18);
622
617
  const { isFocused, focusProps } = useFocus$1();
623
- let t22;
624
- if ($[29] !== isControlledKey || $[30] !== setInternalSelectedKey) {
625
- t22 = (key) => {
618
+ let t19;
619
+ if ($[22] !== isControlledKey || $[23] !== setInternalSelectedKey) {
620
+ t19 = (key) => {
626
621
  if (!isControlledKey) setInternalSelectedKey(key);
627
622
  };
628
- $[29] = isControlledKey;
629
- $[30] = setInternalSelectedKey;
630
- $[31] = t22;
631
- } else t22 = $[31];
632
- const setSelectedKey = t22;
633
- let t23;
634
- if ($[32] !== effectiveInputValue || $[33] !== isControlledInput || $[34] !== onInputChange || $[35] !== setInternalInputValue) {
635
- t23 = (label_0) => {
623
+ $[22] = isControlledKey;
624
+ $[23] = setInternalSelectedKey;
625
+ $[24] = t19;
626
+ } else t19 = $[24];
627
+ const setSelectedKey = t19;
628
+ let t20;
629
+ if ($[25] !== effectiveInputValue || $[26] !== isControlledInput || $[27] !== onInputChange || $[28] !== setInternalInputValue) {
630
+ t20 = (label_0) => {
636
631
  if (!isControlledInput) setInternalInputValue(null);
637
632
  if (label_0 !== effectiveInputValue) onInputChange?.(label_0);
638
633
  };
639
- $[32] = effectiveInputValue;
640
- $[33] = isControlledInput;
641
- $[34] = onInputChange;
642
- $[35] = setInternalInputValue;
643
- $[36] = t23;
644
- } else t23 = $[36];
645
- const showSelectionLabel = t23;
646
- let t24;
647
- if ($[37] !== effectiveSelectedKey || $[38] !== externalOnSelectionChange || $[39] !== setSelectedKey || $[40] !== showSelectionLabel) {
648
- t24 = () => {
634
+ $[25] = effectiveInputValue;
635
+ $[26] = isControlledInput;
636
+ $[27] = onInputChange;
637
+ $[28] = setInternalInputValue;
638
+ $[29] = t20;
639
+ } else t20 = $[29];
640
+ const showSelectionLabel = t20;
641
+ let t21;
642
+ if ($[30] !== effectiveSelectedKey || $[31] !== externalOnSelectionChange || $[32] !== setSelectedKey || $[33] !== showSelectionLabel) {
643
+ t21 = () => {
649
644
  if (effectiveSelectedKey != null) {
650
645
  externalOnSelectionChange?.(null);
651
646
  setSelectedKey(null);
652
647
  }
653
648
  showSelectionLabel("");
654
649
  };
655
- $[37] = effectiveSelectedKey;
656
- $[38] = externalOnSelectionChange;
657
- $[39] = setSelectedKey;
658
- $[40] = showSelectionLabel;
659
- $[41] = t24;
660
- } else t24 = $[41];
661
- const clearSelectionAndInput = t24;
662
- let t25;
663
- if ($[42] !== selectedLabel || $[43] !== showSelectionLabel) {
664
- t25 = () => showSelectionLabel(selectedLabel);
665
- $[42] = selectedLabel;
666
- $[43] = showSelectionLabel;
667
- $[44] = t25;
668
- } else t25 = $[44];
669
- const restoreSelectedLabel = t25;
670
- let t26;
671
- if ($[45] !== clearSelectionAndInput || $[46] !== effectiveInputValue || $[47] !== effectiveSelectedKey || $[48] !== externalOnSelectionChange || $[49] !== restoreSelectedLabel || $[50] !== setSelectedKey || $[51] !== shouldCommitOnBlur || $[52] !== showSelectionLabel) {
672
- t26 = () => {
650
+ $[30] = effectiveSelectedKey;
651
+ $[31] = externalOnSelectionChange;
652
+ $[32] = setSelectedKey;
653
+ $[33] = showSelectionLabel;
654
+ $[34] = t21;
655
+ } else t21 = $[34];
656
+ const clearSelectionAndInput = t21;
657
+ let t22;
658
+ if ($[35] !== selectedLabel || $[36] !== showSelectionLabel) {
659
+ t22 = () => showSelectionLabel(selectedLabel);
660
+ $[35] = selectedLabel;
661
+ $[36] = showSelectionLabel;
662
+ $[37] = t22;
663
+ } else t22 = $[37];
664
+ const restoreSelectedLabel = t22;
665
+ let t23;
666
+ if ($[38] !== clearSelectionAndInput || $[39] !== effectiveInputValue || $[40] !== effectiveSelectedKey || $[41] !== externalOnSelectionChange || $[42] !== restoreSelectedLabel || $[43] !== setSelectedKey || $[44] !== shouldCommitOnBlur || $[45] !== showSelectionLabel) {
667
+ t23 = () => {
673
668
  const value_0 = effectiveInputValue.trim();
674
669
  if (shouldCommitOnBlur && value_0 && effectiveSelectedKey == null) {
675
670
  externalOnSelectionChange?.(value_0);
@@ -678,20 +673,20 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
678
673
  } else if (!value_0) clearSelectionAndInput();
679
674
  else restoreSelectedLabel();
680
675
  };
681
- $[45] = clearSelectionAndInput;
682
- $[46] = effectiveInputValue;
683
- $[47] = effectiveSelectedKey;
684
- $[48] = externalOnSelectionChange;
685
- $[49] = restoreSelectedLabel;
686
- $[50] = setSelectedKey;
687
- $[51] = shouldCommitOnBlur;
688
- $[52] = showSelectionLabel;
689
- $[53] = t26;
690
- } else t26 = $[53];
691
- const settleCustomValueOnBlur = t26;
692
- let t27;
693
- if ($[54] !== clearOnBlur || $[55] !== clearSelectionAndInput || $[56] !== effectiveInputValue || $[57] !== effectiveSelectedKey || $[58] !== externalOnSelectionChange || $[59] !== getTypedOptions || $[60] !== isSameText || $[61] !== localCollectionState || $[62] !== pickLabel || $[63] !== restoreSelectedLabel || $[64] !== setSelectedKey || $[65] !== showSelectionLabel) {
694
- t27 = () => {
676
+ $[38] = clearSelectionAndInput;
677
+ $[39] = effectiveInputValue;
678
+ $[40] = effectiveSelectedKey;
679
+ $[41] = externalOnSelectionChange;
680
+ $[42] = restoreSelectedLabel;
681
+ $[43] = setSelectedKey;
682
+ $[44] = shouldCommitOnBlur;
683
+ $[45] = showSelectionLabel;
684
+ $[46] = t23;
685
+ } else t23 = $[46];
686
+ const settleCustomValueOnBlur = t23;
687
+ let t24;
688
+ if ($[47] !== clearOnBlur || $[48] !== clearSelectionAndInput || $[49] !== effectiveInputValue || $[50] !== effectiveSelectedKey || $[51] !== externalOnSelectionChange || $[52] !== getTypedOptions || $[53] !== isSameText || $[54] !== localCollectionState || $[55] !== pickLabel || $[56] !== restoreSelectedLabel || $[57] !== setSelectedKey || $[58] !== showSelectionLabel) {
689
+ t24 = () => {
695
690
  const matchKey = findTypedOption(getTypedOptions(), effectiveInputValue, effectiveSelectedKey, (key_0) => isItemDisabled(localCollectionState, key_0), isSameText);
696
691
  if (matchKey != null && matchKey !== effectiveSelectedKey) {
697
692
  setSelectedKey(matchKey);
@@ -700,99 +695,76 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
700
695
  } else if (matchKey == null && (clearOnBlur || !effectiveInputValue.trim())) clearSelectionAndInput();
701
696
  else restoreSelectedLabel();
702
697
  };
703
- $[54] = clearOnBlur;
704
- $[55] = clearSelectionAndInput;
705
- $[56] = effectiveInputValue;
706
- $[57] = effectiveSelectedKey;
707
- $[58] = externalOnSelectionChange;
708
- $[59] = getTypedOptions;
709
- $[60] = isSameText;
710
- $[61] = localCollectionState;
711
- $[62] = pickLabel;
712
- $[63] = restoreSelectedLabel;
713
- $[64] = setSelectedKey;
714
- $[65] = showSelectionLabel;
715
- $[66] = t27;
716
- } else t27 = $[66];
717
- const settleTypedOption = t27;
718
- let t28;
719
- if ($[67] !== allowsCustomValue || $[68] !== isReadOnly || $[69] !== onBlur || $[70] !== setIsFilterActive || $[71] !== setIsPopoverOpen || $[72] !== settleCustomValueOnBlur || $[73] !== settleTypedOption) {
720
- t28 = () => {
698
+ $[47] = clearOnBlur;
699
+ $[48] = clearSelectionAndInput;
700
+ $[49] = effectiveInputValue;
701
+ $[50] = effectiveSelectedKey;
702
+ $[51] = externalOnSelectionChange;
703
+ $[52] = getTypedOptions;
704
+ $[53] = isSameText;
705
+ $[54] = localCollectionState;
706
+ $[55] = pickLabel;
707
+ $[56] = restoreSelectedLabel;
708
+ $[57] = setSelectedKey;
709
+ $[58] = showSelectionLabel;
710
+ $[59] = t24;
711
+ } else t24 = $[59];
712
+ const settleTypedOption = t24;
713
+ let t25;
714
+ if ($[60] !== allowsCustomValue || $[61] !== isReadOnly || $[62] !== onBlur || $[63] !== setIsFilterActive || $[64] !== setIsPopoverOpen || $[65] !== settleCustomValueOnBlur || $[66] !== settleTypedOption) {
715
+ t25 = () => {
721
716
  setIsPopoverOpen(false);
722
717
  if (isReadOnly) {} else if (allowsCustomValue) settleCustomValueOnBlur();
723
718
  else settleTypedOption();
724
719
  onBlur?.();
725
720
  setIsFilterActive(false);
726
721
  };
727
- $[67] = allowsCustomValue;
728
- $[68] = isReadOnly;
729
- $[69] = onBlur;
730
- $[70] = setIsFilterActive;
731
- $[71] = setIsPopoverOpen;
732
- $[72] = settleCustomValueOnBlur;
733
- $[73] = settleTypedOption;
734
- $[74] = t28;
735
- } else t28 = $[74];
736
- const handleCompositeBlur = useEvent(t28);
737
- const t29 = wrapperRef;
738
- let t30;
739
- if ($[75] !== handleCompositeBlur || $[76] !== isDisabled || $[77] !== onFocus || $[78] !== popoverRef || $[79] !== t29) {
740
- t30 = {
741
- wrapperRef: t29,
742
- popoverRef,
743
- onFocus,
744
- onBlur: handleCompositeBlur,
745
- isDisabled
746
- };
747
- $[75] = handleCompositeBlur;
748
- $[76] = isDisabled;
749
- $[77] = onFocus;
750
- $[78] = popoverRef;
751
- $[79] = t29;
752
- $[80] = t30;
753
- } else t30 = $[80];
754
- const { compositeFocusProps } = useCompositeFocus(t30);
755
- let t31;
756
- if ($[81] !== isInvalid || $[82] !== isValid) {
757
- t31 = getValidationIcon({
722
+ $[60] = allowsCustomValue;
723
+ $[61] = isReadOnly;
724
+ $[62] = onBlur;
725
+ $[63] = setIsFilterActive;
726
+ $[64] = setIsPopoverOpen;
727
+ $[65] = settleCustomValueOnBlur;
728
+ $[66] = settleTypedOption;
729
+ $[67] = t25;
730
+ } else t25 = $[67];
731
+ const handleCompositeBlur = useEvent(t25);
732
+ const { compositeFocusProps } = useCompositeFocus({
733
+ wrapperRef,
734
+ popoverRef,
735
+ onFocus,
736
+ onBlur: handleCompositeBlur,
737
+ isDisabled
738
+ });
739
+ let t26;
740
+ if ($[68] !== isInvalid || $[69] !== isValid) {
741
+ t26 = getValidationIcon({
758
742
  isInvalid,
759
743
  isValid
760
744
  });
761
- $[81] = isInvalid;
762
- $[82] = isValid;
763
- $[83] = t31;
764
- } else t31 = $[83];
765
- const validationIcon = t31;
745
+ $[68] = isInvalid;
746
+ $[69] = isValid;
747
+ $[70] = t26;
748
+ } else t26 = $[70];
749
+ const validationIcon = t26;
766
750
  const listStateRef = useRef(null);
767
751
  const [activeOptionKey, setActiveOptionKey] = useState(null);
768
- let t32;
769
- if ($[84] !== externalOnSelectionChange || $[85] !== inputRef || $[86] !== pickLabel || $[87] !== setIsFilterActive || $[88] !== setIsPopoverOpen || $[89] !== setSelectedKey || $[90] !== showSelectionLabel) {
770
- t32 = (selection) => {
771
- const key_1 = Array.isArray(selection) ? selection[0] : selection;
772
- setSelectedKey(key_1 ?? null);
773
- setIsFilterActive(false);
774
- showSelectionLabel(key_1 != null ? pickLabel(key_1) : "");
775
- externalOnSelectionChange?.(key_1);
776
- setIsPopoverOpen(false);
777
- setTimeout(() => {
778
- inputRef.current?.focus();
779
- }, 0);
780
- };
781
- $[84] = externalOnSelectionChange;
782
- $[85] = inputRef;
783
- $[86] = pickLabel;
784
- $[87] = setIsFilterActive;
785
- $[88] = setIsPopoverOpen;
786
- $[89] = setSelectedKey;
787
- $[90] = showSelectionLabel;
788
- $[91] = t32;
789
- } else t32 = $[91];
790
- const handleSelectionChange = useEvent(t32);
752
+ const handleSelectionChange = useEvent((selection) => {
753
+ const key_1 = Array.isArray(selection) ? selection[0] : selection;
754
+ setSelectedKey(key_1 ?? null);
755
+ setIsFilterActive(false);
756
+ showSelectionLabel(key_1 != null ? pickLabel(key_1) : "");
757
+ externalOnSelectionChange?.(key_1);
758
+ setIsPopoverOpen(false);
759
+ setTimeout(() => {
760
+ inputRef.current?.focus();
761
+ }, 0);
762
+ });
791
763
  const lastSyncedSelectedKey = useRef(void 0);
792
764
  const selectionClearedByTyping = useRef(false);
793
- let t33;
794
- if ($[92] !== allowsCustomValue || $[93] !== effectiveSelectedKey || $[94] !== externalOnSelectionChange || $[95] !== isControlledInput || $[96] !== isControlledKey || $[97] !== isPopoverOpen || $[98] !== onInputChange || $[99] !== popoverTrigger || $[100] !== setInternalInputValue || $[101] !== setInternalSelectedKey || $[102] !== setIsFilterActive || $[103] !== setIsPopoverOpen) {
795
- t33 = (e) => {
765
+ let t27;
766
+ if ($[71] !== allowsCustomValue || $[72] !== effectiveSelectedKey || $[73] !== externalOnSelectionChange || $[74] !== isControlledInput || $[75] !== isControlledKey || $[76] !== isPopoverOpen || $[77] !== onInputChange || $[78] !== popoverTrigger || $[79] !== setInternalInputValue || $[80] !== setInternalSelectedKey || $[81] !== setIsFilterActive || $[82] !== setIsPopoverOpen) {
767
+ t27 = (e) => {
796
768
  const value_1 = e.target.value;
797
769
  if (!isControlledInput) setInternalInputValue(value_1);
798
770
  onInputChange?.(value_1);
@@ -805,24 +777,24 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
805
777
  }
806
778
  if (popoverTrigger !== "manual" && value_1 && !isPopoverOpen) setIsPopoverOpen(true);
807
779
  };
808
- $[92] = allowsCustomValue;
809
- $[93] = effectiveSelectedKey;
810
- $[94] = externalOnSelectionChange;
811
- $[95] = isControlledInput;
812
- $[96] = isControlledKey;
813
- $[97] = isPopoverOpen;
814
- $[98] = onInputChange;
815
- $[99] = popoverTrigger;
816
- $[100] = setInternalInputValue;
817
- $[101] = setInternalSelectedKey;
818
- $[102] = setIsFilterActive;
819
- $[103] = setIsPopoverOpen;
820
- $[104] = t33;
821
- } else t33 = $[104];
822
- const handleInputChange = useEvent(t33);
823
- let t34;
824
- if ($[105] !== effectiveSelectedKey || $[106] !== isControlledInput || $[107] !== isControlledKey || $[108] !== setInternalInputValue) {
825
- t34 = () => {
780
+ $[71] = allowsCustomValue;
781
+ $[72] = effectiveSelectedKey;
782
+ $[73] = externalOnSelectionChange;
783
+ $[74] = isControlledInput;
784
+ $[75] = isControlledKey;
785
+ $[76] = isPopoverOpen;
786
+ $[77] = onInputChange;
787
+ $[78] = popoverTrigger;
788
+ $[79] = setInternalInputValue;
789
+ $[80] = setInternalSelectedKey;
790
+ $[81] = setIsFilterActive;
791
+ $[82] = setIsPopoverOpen;
792
+ $[83] = t27;
793
+ } else t27 = $[83];
794
+ const handleInputChange = useEvent(t27);
795
+ let t28;
796
+ if ($[84] !== effectiveSelectedKey || $[85] !== isControlledInput || $[86] !== isControlledKey || $[87] !== setInternalInputValue) {
797
+ t28 = () => {
826
798
  const preserveTypedInput = selectionClearedByTyping.current;
827
799
  selectionClearedByTyping.current = false;
828
800
  if (!isControlledKey || isControlledInput) return;
@@ -831,364 +803,327 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
831
803
  if (preserveTypedInput && effectiveSelectedKey == null) return;
832
804
  setInternalInputValue(null);
833
805
  };
834
- $[105] = effectiveSelectedKey;
835
- $[106] = isControlledInput;
836
- $[107] = isControlledKey;
837
- $[108] = setInternalInputValue;
838
- $[109] = t34;
839
- } else t34 = $[109];
840
- let t35;
841
- if ($[110] !== effectiveInputValue || $[111] !== effectiveSelectedKey || $[112] !== isControlledInput || $[113] !== isControlledKey || $[114] !== setInternalInputValue) {
842
- t35 = [
806
+ $[84] = effectiveSelectedKey;
807
+ $[85] = isControlledInput;
808
+ $[86] = isControlledKey;
809
+ $[87] = setInternalInputValue;
810
+ $[88] = t28;
811
+ } else t28 = $[88];
812
+ let t29;
813
+ if ($[89] !== effectiveInputValue || $[90] !== effectiveSelectedKey || $[91] !== isControlledInput || $[92] !== isControlledKey || $[93] !== setInternalInputValue) {
814
+ t29 = [
843
815
  isControlledKey,
844
816
  isControlledInput,
845
817
  effectiveSelectedKey,
846
818
  effectiveInputValue,
847
819
  setInternalInputValue
848
820
  ];
849
- $[110] = effectiveInputValue;
850
- $[111] = effectiveSelectedKey;
851
- $[112] = isControlledInput;
852
- $[113] = isControlledKey;
853
- $[114] = setInternalInputValue;
854
- $[115] = t35;
855
- } else t35 = $[115];
856
- useEffect(t34, t35);
821
+ $[89] = effectiveInputValue;
822
+ $[90] = effectiveSelectedKey;
823
+ $[91] = isControlledInput;
824
+ $[92] = isControlledKey;
825
+ $[93] = setInternalInputValue;
826
+ $[94] = t29;
827
+ } else t29 = $[94];
828
+ useEffect(t28, t29);
857
829
  const showClearButton = isClearable && (allowsCustomValue ? effectiveInputValue !== "" : effectiveSelectedKey != null) && !isDisabled && !isReadOnly;
858
- let t36;
859
- if ($[116] !== hasResults || $[117] !== isDisabled || $[118] !== isReadOnly || $[119] !== setIsFilterActive || $[120] !== setIsPopoverOpen) {
860
- t36 = () => {
830
+ let t30;
831
+ if ($[95] !== hasResults || $[96] !== isDisabled || $[97] !== isReadOnly || $[98] !== setIsFilterActive || $[99] !== setIsPopoverOpen) {
832
+ t30 = () => {
861
833
  if (isReadOnly || isDisabled) return;
862
834
  if (!hasResults) setIsFilterActive(false);
863
835
  setIsPopoverOpen(true);
864
836
  };
865
- $[116] = hasResults;
866
- $[117] = isDisabled;
867
- $[118] = isReadOnly;
868
- $[119] = setIsFilterActive;
869
- $[120] = setIsPopoverOpen;
870
- $[121] = t36;
871
- } else t36 = $[121];
872
- const openList = t36;
873
- let t37;
874
- if ($[122] !== inputRef || $[123] !== openList || $[124] !== setIsPopoverOpen || $[125] !== shouldShowPopover) {
875
- t37 = () => {
876
- if (shouldShowPopover) setIsPopoverOpen(false);
877
- else openList();
878
- inputRef.current?.focus();
879
- };
880
- $[122] = inputRef;
881
- $[123] = openList;
882
- $[124] = setIsPopoverOpen;
883
- $[125] = shouldShowPopover;
884
- $[126] = t37;
885
- } else t37 = $[126];
886
- const toggleList = t37;
887
- let t38;
888
- if ($[127] !== focusProps || $[128] !== isPopoverOpen || $[129] !== openList || $[130] !== popoverTrigger) {
889
- t38 = (e_0) => {
837
+ $[95] = hasResults;
838
+ $[96] = isDisabled;
839
+ $[97] = isReadOnly;
840
+ $[98] = setIsFilterActive;
841
+ $[99] = setIsPopoverOpen;
842
+ $[100] = t30;
843
+ } else t30 = $[100];
844
+ const openList = t30;
845
+ const toggleList = () => {
846
+ if (shouldShowPopover) setIsPopoverOpen(false);
847
+ else openList();
848
+ inputRef.current?.focus();
849
+ };
850
+ let t31;
851
+ if ($[101] !== focusProps || $[102] !== isPopoverOpen || $[103] !== openList || $[104] !== popoverTrigger) {
852
+ t31 = (e_0) => {
890
853
  focusProps.onFocus?.(e_0);
891
854
  if (popoverTrigger === "focus" && !isPopoverOpen) openList();
892
855
  };
893
- $[127] = focusProps;
894
- $[128] = isPopoverOpen;
895
- $[129] = openList;
896
- $[130] = popoverTrigger;
897
- $[131] = t38;
898
- } else t38 = $[131];
899
- const handleInputFocus = useEvent(t38);
856
+ $[101] = focusProps;
857
+ $[102] = isPopoverOpen;
858
+ $[103] = openList;
859
+ $[104] = popoverTrigger;
860
+ $[105] = t31;
861
+ } else t31 = $[105];
862
+ const handleInputFocus = useEvent(t31);
900
863
  const pressStartedOnInputRef = useRef(false);
901
- let t39;
902
- if ($[132] !== hasResults || $[133] !== openList || $[134] !== popoverTrigger || $[135] !== shouldShowPopover) {
903
- t39 = () => {
864
+ let t32;
865
+ if ($[106] !== hasResults || $[107] !== openList || $[108] !== popoverTrigger || $[109] !== shouldShowPopover) {
866
+ t32 = () => {
904
867
  const isInputPress = pressStartedOnInputRef.current;
905
868
  pressStartedOnInputRef.current = false;
906
869
  if (!isInputPress || popoverTrigger === "manual") return;
907
870
  if (!shouldShowPopover && hasResults) openList();
908
871
  };
909
- $[132] = hasResults;
910
- $[133] = openList;
911
- $[134] = popoverTrigger;
912
- $[135] = shouldShowPopover;
913
- $[136] = t39;
914
- } else t39 = $[136];
915
- const handleInputClick = t39;
916
- let t40;
917
- if ($[137] !== focusProps) {
918
- t40 = (e_1) => {
872
+ $[106] = hasResults;
873
+ $[107] = openList;
874
+ $[108] = popoverTrigger;
875
+ $[109] = shouldShowPopover;
876
+ $[110] = t32;
877
+ } else t32 = $[110];
878
+ const handleInputClick = t32;
879
+ let t33;
880
+ if ($[111] !== focusProps) {
881
+ t33 = (e_1) => {
919
882
  focusProps.onBlur?.(e_1);
920
883
  };
921
- $[137] = focusProps;
922
- $[138] = t40;
923
- } else t40 = $[138];
924
- const handleInputBlur = useEvent(t40);
925
- let t41;
926
- if ($[139] !== externalOnSelectionChange || $[140] !== inputRef || $[141] !== isControlledInput || $[142] !== isPopoverOpen || $[143] !== onClear || $[144] !== onInputChange || $[145] !== setInternalInputValue || $[146] !== setIsPopoverOpen || $[147] !== setSelectedKey) {
927
- t41 = () => {
928
- if (!isControlledInput) setInternalInputValue(null);
929
- onInputChange?.("");
930
- setSelectedKey(null);
931
- externalOnSelectionChange?.(null);
932
- if (isPopoverOpen) setIsPopoverOpen(false);
933
- inputRef.current?.focus();
934
- onClear?.();
935
- };
936
- $[139] = externalOnSelectionChange;
937
- $[140] = inputRef;
938
- $[141] = isControlledInput;
939
- $[142] = isPopoverOpen;
940
- $[143] = onClear;
941
- $[144] = onInputChange;
942
- $[145] = setInternalInputValue;
943
- $[146] = setIsPopoverOpen;
944
- $[147] = setSelectedKey;
945
- $[148] = t41;
946
- } else t41 = $[148];
947
- const clearValue = useEvent(t41);
948
- let t42;
949
- if ($[149] !== effectiveInputValue || $[150] !== effectiveSelectedKey || $[151] !== getTypedOptions || $[152] !== isSameText || $[153] !== selectedLabel) {
950
- t42 = () => effectiveSelectedKey != null && isSameText(selectedLabel, effectiveInputValue.trim()) || getTypedOptions().length > 0;
951
- $[149] = effectiveInputValue;
952
- $[150] = effectiveSelectedKey;
953
- $[151] = getTypedOptions;
954
- $[152] = isSameText;
955
- $[153] = selectedLabel;
956
- $[154] = t42;
957
- } else t42 = $[154];
958
- let t43;
959
- if ($[155] !== setIsFilterActive || $[156] !== settleTypedOption) {
960
- t43 = () => {
884
+ $[111] = focusProps;
885
+ $[112] = t33;
886
+ } else t33 = $[112];
887
+ const handleInputBlur = useEvent(t33);
888
+ const clearValue = useEvent(() => {
889
+ if (!isControlledInput) setInternalInputValue(null);
890
+ onInputChange?.("");
891
+ setSelectedKey(null);
892
+ externalOnSelectionChange?.(null);
893
+ if (isPopoverOpen) setIsPopoverOpen(false);
894
+ inputRef.current?.focus();
895
+ onClear?.();
896
+ });
897
+ let t34;
898
+ if ($[113] !== effectiveInputValue || $[114] !== effectiveSelectedKey || $[115] !== getTypedOptions || $[116] !== isSameText || $[117] !== selectedLabel) {
899
+ t34 = () => effectiveSelectedKey != null && isSameText(selectedLabel, effectiveInputValue.trim()) || getTypedOptions().length > 0;
900
+ $[113] = effectiveInputValue;
901
+ $[114] = effectiveSelectedKey;
902
+ $[115] = getTypedOptions;
903
+ $[116] = isSameText;
904
+ $[117] = selectedLabel;
905
+ $[118] = t34;
906
+ } else t34 = $[118];
907
+ let t35;
908
+ if ($[119] !== setIsFilterActive || $[120] !== settleTypedOption) {
909
+ t35 = () => {
961
910
  settleTypedOption();
962
911
  setIsFilterActive(false);
963
912
  };
964
- $[155] = setIsFilterActive;
965
- $[156] = settleTypedOption;
966
- $[157] = t43;
967
- } else t43 = $[157];
968
- let t44;
969
- if ($[158] !== setIsPopoverOpen) {
970
- t44 = () => setIsPopoverOpen(false);
971
- $[158] = setIsPopoverOpen;
972
- $[159] = t44;
973
- } else t44 = $[159];
974
- const t45 = inputRef;
975
- let t46;
976
- if ($[160] !== allowsCustomValue || $[161] !== clearValue || $[162] !== effectiveInputValue || $[163] !== effectiveSelectedKey || $[164] !== handleSelectionChange || $[165] !== isClearable || $[166] !== isReadOnly || $[167] !== onKeyDown || $[168] !== openList || $[169] !== selectedLabel || $[170] !== shouldShowPopover || $[171] !== t42 || $[172] !== t43 || $[173] !== t44 || $[174] !== t45) {
977
- t46 = {
913
+ $[119] = setIsFilterActive;
914
+ $[120] = settleTypedOption;
915
+ $[121] = t35;
916
+ } else t35 = $[121];
917
+ let t36;
918
+ if ($[122] !== setIsPopoverOpen) {
919
+ t36 = () => setIsPopoverOpen(false);
920
+ $[122] = setIsPopoverOpen;
921
+ $[123] = t36;
922
+ } else t36 = $[123];
923
+ const t37 = inputRef;
924
+ let t38;
925
+ if ($[124] !== allowsCustomValue || $[125] !== clearValue || $[126] !== effectiveInputValue || $[127] !== effectiveSelectedKey || $[128] !== handleSelectionChange || $[129] !== isClearable || $[130] !== isReadOnly || $[131] !== onKeyDown || $[132] !== openList || $[133] !== selectedLabel || $[134] !== shouldShowPopover || $[135] !== t34 || $[136] !== t35 || $[137] !== t36 || $[138] !== t37) {
926
+ t38 = {
978
927
  isListShown: shouldShowPopover,
979
928
  isReadOnly,
980
929
  listStateRef,
981
- hasTypedMatch: t42,
930
+ hasTypedMatch: t34,
982
931
  allowsCustomValue,
983
932
  effectiveInputValue,
984
933
  selectedKey: effectiveSelectedKey,
985
934
  selectedLabel,
986
935
  isClearable,
987
936
  onSelectionChange: handleSelectionChange,
988
- onSettleTypedText: t43,
937
+ onSettleTypedText: t35,
989
938
  onClearValue: clearValue,
990
939
  onOpenList: openList,
991
- onCloseList: t44,
992
- inputRef: t45,
940
+ onCloseList: t36,
941
+ inputRef: t37,
993
942
  onVirtualFocus: setActiveOptionKey,
994
943
  onKeyDown
995
944
  };
996
- $[160] = allowsCustomValue;
997
- $[161] = clearValue;
998
- $[162] = effectiveInputValue;
999
- $[163] = effectiveSelectedKey;
1000
- $[164] = handleSelectionChange;
1001
- $[165] = isClearable;
1002
- $[166] = isReadOnly;
1003
- $[167] = onKeyDown;
1004
- $[168] = openList;
1005
- $[169] = selectedLabel;
1006
- $[170] = shouldShowPopover;
1007
- $[171] = t42;
1008
- $[172] = t43;
1009
- $[173] = t44;
1010
- $[174] = t45;
1011
- $[175] = t46;
1012
- } else t46 = $[175];
1013
- const { keyboardProps } = useComboBoxKeyboard(t46);
945
+ $[124] = allowsCustomValue;
946
+ $[125] = clearValue;
947
+ $[126] = effectiveInputValue;
948
+ $[127] = effectiveSelectedKey;
949
+ $[128] = handleSelectionChange;
950
+ $[129] = isClearable;
951
+ $[130] = isReadOnly;
952
+ $[131] = onKeyDown;
953
+ $[132] = openList;
954
+ $[133] = selectedLabel;
955
+ $[134] = shouldShowPopover;
956
+ $[135] = t34;
957
+ $[136] = t35;
958
+ $[137] = t36;
959
+ $[138] = t37;
960
+ $[139] = t38;
961
+ } else t38 = $[139];
962
+ const { keyboardProps } = useComboBoxKeyboard(t38);
1014
963
  if (icon) {
1015
- let t47;
1016
- if ($[176] !== icon) {
1017
- t47 = /* @__PURE__ */ jsx("div", {
964
+ let t39;
965
+ if ($[140] !== icon) {
966
+ t39 = /* @__PURE__ */ jsx("div", {
1018
967
  "data-element": "InputIcon",
1019
968
  children: icon
1020
969
  });
1021
- $[176] = icon;
1022
- $[177] = t47;
1023
- } else t47 = $[177];
1024
- icon = t47;
970
+ $[140] = icon;
971
+ $[141] = t39;
972
+ } else t39 = $[141];
973
+ icon = t39;
1025
974
  if (prefix) {
1026
- let t48;
1027
- if ($[178] !== icon || $[179] !== prefix) {
1028
- t48 = /* @__PURE__ */ jsxs(Fragment$1, { children: [icon, prefix] });
1029
- $[178] = icon;
1030
- $[179] = prefix;
1031
- $[180] = t48;
1032
- } else t48 = $[180];
1033
- prefix = t48;
975
+ let t40;
976
+ if ($[142] !== icon || $[143] !== prefix) {
977
+ t40 = /* @__PURE__ */ jsxs(Fragment$1, { children: [icon, prefix] });
978
+ $[142] = icon;
979
+ $[143] = prefix;
980
+ $[144] = t40;
981
+ } else t40 = $[144];
982
+ prefix = t40;
1034
983
  } else prefix = icon;
1035
984
  }
1036
- let t47;
1037
- if ($[181] !== isInvalid || $[182] !== isValid) {
1038
- t47 = getValidationMods({
985
+ let t39;
986
+ if ($[145] !== isInvalid || $[146] !== isValid) {
987
+ t39 = getValidationMods({
1039
988
  isInvalid,
1040
989
  isValid
1041
990
  });
1042
- $[181] = isInvalid;
1043
- $[182] = isValid;
1044
- $[183] = t47;
1045
- } else t47 = $[183];
1046
- const t48 = !!isReadOnly;
1047
- const t49 = !!prefix;
1048
- let t50;
1049
- if ($[184] !== isDisabled || $[185] !== isFocused || $[186] !== isLoading || $[187] !== props.mods || $[188] !== showClearButton || $[189] !== t47 || $[190] !== t48 || $[191] !== t49) {
1050
- t50 = {
1051
- ...t47,
991
+ $[145] = isInvalid;
992
+ $[146] = isValid;
993
+ $[147] = t39;
994
+ } else t39 = $[147];
995
+ const t40 = !!isReadOnly;
996
+ const t41 = !!prefix;
997
+ let t42;
998
+ if ($[148] !== isDisabled || $[149] !== isFocused || $[150] !== isLoading || $[151] !== props.mods || $[152] !== showClearButton || $[153] !== t39 || $[154] !== t40 || $[155] !== t41) {
999
+ t42 = {
1000
+ ...t39,
1052
1001
  disabled: isDisabled,
1053
- readonly: t48,
1002
+ readonly: t40,
1054
1003
  hovered: false,
1055
1004
  focused: isFocused,
1056
1005
  loading: isLoading,
1057
- prefix: t49,
1006
+ prefix: t41,
1058
1007
  suffix: true,
1059
1008
  clearable: showClearButton,
1060
1009
  ...props.mods
1061
1010
  };
1062
- $[184] = isDisabled;
1063
- $[185] = isFocused;
1064
- $[186] = isLoading;
1065
- $[187] = props.mods;
1066
- $[188] = showClearButton;
1067
- $[189] = t47;
1068
- $[190] = t48;
1069
- $[191] = t49;
1070
- $[192] = t50;
1071
- } else t50 = $[192];
1072
- const mods = t50;
1011
+ $[148] = isDisabled;
1012
+ $[149] = isFocused;
1013
+ $[150] = isLoading;
1014
+ $[151] = props.mods;
1015
+ $[152] = showClearButton;
1016
+ $[153] = t39;
1017
+ $[154] = t40;
1018
+ $[155] = t41;
1019
+ $[156] = t42;
1020
+ } else t42 = $[156];
1021
+ const mods = t42;
1073
1022
  const [comboBoxWidth, setComboBoxWidth] = useState();
1074
- let t51;
1075
- let t52;
1076
- if ($[193] !== hasResults || $[194] !== isPopoverOpen || $[195] !== setIsPopoverOpen) {
1077
- t51 = () => {
1078
- if (isPopoverOpen && !hasResults) setIsPopoverOpen(false);
1023
+ let t43;
1024
+ let t44;
1025
+ if ($[157] !== hasEmptyLabel || $[158] !== hasResults || $[159] !== isPopoverOpen || $[160] !== setIsPopoverOpen) {
1026
+ t43 = () => {
1027
+ if (isPopoverOpen && !hasResults && !hasEmptyLabel) setIsPopoverOpen(false);
1079
1028
  };
1080
- t52 = [
1029
+ t44 = [
1081
1030
  isPopoverOpen,
1082
1031
  hasResults,
1032
+ hasEmptyLabel,
1083
1033
  setIsPopoverOpen
1084
1034
  ];
1085
- $[193] = hasResults;
1086
- $[194] = isPopoverOpen;
1087
- $[195] = setIsPopoverOpen;
1088
- $[196] = t51;
1089
- $[197] = t52;
1035
+ $[157] = hasEmptyLabel;
1036
+ $[158] = hasResults;
1037
+ $[159] = isPopoverOpen;
1038
+ $[160] = setIsPopoverOpen;
1039
+ $[161] = t43;
1040
+ $[162] = t44;
1090
1041
  } else {
1091
- t51 = $[196];
1092
- t52 = $[197];
1042
+ t43 = $[161];
1043
+ t44 = $[162];
1093
1044
  }
1094
- useEffect(t51, t52);
1095
- let t53;
1096
- if ($[198] !== effectiveSelectedKey || $[199] !== shouldShowPopover || $[200] !== wrapperRef) {
1097
- t53 = () => {
1098
- if (!shouldShowPopover) return;
1099
- setComboBoxWidth(wrapperRef.current?.offsetWidth);
1100
- let attempts = 0;
1101
- let frame = 0;
1102
- const tick = () => {
1103
- const key_2 = highlightOption(listStateRef.current, effectiveSelectedKey);
1104
- if (key_2 != null) setActiveOptionKey(key_2);
1105
- attempts = attempts + 1;
1106
- if (key_2 == null && attempts < 8) frame = requestAnimationFrame(tick);
1107
- };
1108
- frame = requestAnimationFrame(() => {
1109
- frame = requestAnimationFrame(tick);
1110
- });
1111
- return () => cancelAnimationFrame(frame);
1045
+ useEffect(t43, t44);
1046
+ const shownOptionKeys = filteredOptions.map(_temp3).join("\0");
1047
+ useLayoutEffect$1(() => {
1048
+ if (!shouldShowPopover) return;
1049
+ setComboBoxWidth(wrapperRef.current?.offsetWidth);
1050
+ let attempts = 0;
1051
+ let frame = 0;
1052
+ const tick = () => {
1053
+ const key_2 = highlightOption(listStateRef.current, effectiveSelectedKey);
1054
+ if (key_2 != null) setActiveOptionKey(key_2);
1055
+ attempts = attempts + 1;
1056
+ if (key_2 == null && attempts < 8) frame = requestAnimationFrame(tick);
1112
1057
  };
1113
- $[198] = effectiveSelectedKey;
1114
- $[199] = shouldShowPopover;
1115
- $[200] = wrapperRef;
1116
- $[201] = t53;
1117
- } else t53 = $[201];
1118
- const t54 = wrapperRef;
1119
- let t55;
1120
- if ($[202] !== effectiveInputValue || $[203] !== effectiveSelectedKey || $[204] !== shouldShowPopover || $[205] !== t54) {
1121
- t55 = [
1122
- shouldShowPopover,
1123
- effectiveSelectedKey,
1124
- effectiveInputValue,
1125
- t54
1126
- ];
1127
- $[202] = effectiveInputValue;
1128
- $[203] = effectiveSelectedKey;
1129
- $[204] = shouldShowPopover;
1130
- $[205] = t54;
1131
- $[206] = t55;
1132
- } else t55 = $[206];
1133
- useLayoutEffect$1(t53, t55);
1134
- const activeDescendant = shouldShowPopover && activeOptionKey != null && filteredOptions.some((option) => option.key === activeOptionKey) ? getListBoxOptionId(`ComboBoxListBox-${comboBoxId}`, activeOptionKey) : void 0;
1135
- const t56 = wrapperRef;
1136
- const t57 = styles;
1137
- let t58;
1138
- if ($[207] !== prefix) {
1139
- t58 = prefix ? /* @__PURE__ */ jsx("div", {
1058
+ frame = requestAnimationFrame(() => {
1059
+ frame = requestAnimationFrame(tick);
1060
+ });
1061
+ return () => cancelAnimationFrame(frame);
1062
+ }, [
1063
+ shouldShowPopover,
1064
+ effectiveSelectedKey,
1065
+ effectiveInputValue,
1066
+ shownOptionKeys,
1067
+ wrapperRef
1068
+ ]);
1069
+ const activeDescendant = shouldShowPopover && activeOptionKey != null && filteredOptions.some((option_0) => option_0.key === activeOptionKey) ? getListBoxOptionId(`ComboBoxListBox-${comboBoxId}`, activeOptionKey) : void 0;
1070
+ const t45 = wrapperRef;
1071
+ const t46 = styles;
1072
+ let t47;
1073
+ if ($[163] !== prefix) {
1074
+ t47 = prefix ? /* @__PURE__ */ jsx("div", {
1140
1075
  "data-element": "Prefix",
1141
1076
  children: prefix
1142
1077
  }) : null;
1143
- $[207] = prefix;
1144
- $[208] = t58;
1145
- } else t58 = $[208];
1146
- let t59;
1147
- if ($[209] !== props) {
1148
- t59 = pickBaseCustomizationProps(props);
1149
- $[209] = props;
1150
- $[210] = t59;
1151
- } else t59 = $[210];
1152
- const t60 = qa || "ComboBox";
1153
- const t61 = inputRef;
1154
- let t62;
1155
- if ($[211] !== focusProps || $[212] !== handleInputBlur) {
1156
- t62 = {
1078
+ $[163] = prefix;
1079
+ $[164] = t47;
1080
+ } else t47 = $[164];
1081
+ let t48;
1082
+ if ($[165] !== props) {
1083
+ t48 = pickBaseCustomizationProps(props);
1084
+ $[165] = props;
1085
+ $[166] = t48;
1086
+ } else t48 = $[166];
1087
+ const t49 = qa || "ComboBox";
1088
+ const t50 = inputRef;
1089
+ let t51;
1090
+ if ($[167] !== focusProps || $[168] !== handleInputBlur) {
1091
+ t51 = {
1157
1092
  ...focusProps,
1158
1093
  onBlur: handleInputBlur
1159
1094
  };
1160
- $[211] = focusProps;
1161
- $[212] = handleInputBlur;
1162
- $[213] = t62;
1163
- } else t62 = $[213];
1164
- let t63;
1165
- if ($[214] === Symbol.for("react.memo_cache_sentinel")) {
1166
- t63 = () => {
1095
+ $[167] = focusProps;
1096
+ $[168] = handleInputBlur;
1097
+ $[169] = t51;
1098
+ } else t51 = $[169];
1099
+ let t52;
1100
+ if ($[170] === Symbol.for("react.memo_cache_sentinel")) {
1101
+ t52 = () => {
1167
1102
  pressStartedOnInputRef.current = true;
1168
1103
  };
1169
- $[214] = t63;
1170
- } else t63 = $[214];
1171
- const t64 = props["aria-label"];
1172
- const t65 = props["aria-labelledby"];
1173
- const t66 = props["aria-describedby"];
1174
- let t67;
1175
- if ($[215] !== t64 || $[216] !== t65 || $[217] !== t66) {
1176
- t67 = {
1177
- "aria-label": t64,
1178
- "aria-labelledby": t65,
1179
- "aria-describedby": t66
1104
+ $[170] = t52;
1105
+ } else t52 = $[170];
1106
+ const t53 = props["aria-label"];
1107
+ const t54 = props["aria-labelledby"];
1108
+ const t55 = props["aria-describedby"];
1109
+ let t56;
1110
+ if ($[171] !== t53 || $[172] !== t54 || $[173] !== t55) {
1111
+ t56 = {
1112
+ "aria-label": t53,
1113
+ "aria-labelledby": t54,
1114
+ "aria-describedby": t55
1180
1115
  };
1181
- $[215] = t64;
1182
- $[216] = t65;
1183
- $[217] = t66;
1184
- $[218] = t67;
1185
- } else t67 = $[218];
1186
- let t68;
1187
- if ($[219] !== activeDescendant || $[220] !== autoComplete || $[221] !== autoFocus || $[222] !== effectiveInputValue || $[223] !== handleInputChange || $[224] !== handleInputClick || $[225] !== handleInputFocus || $[226] !== id || $[227] !== inputStyles || $[228] !== isDisabled || $[229] !== isIdentifier || $[230] !== isInvalid || $[231] !== isReadOnly || $[232] !== isRequired || $[233] !== keyboardProps || $[234] !== mods || $[235] !== placeholder || $[236] !== shouldShowPopover || $[237] !== size || $[238] !== t59 || $[239] !== t60 || $[240] !== t61 || $[241] !== t62 || $[242] !== t67) {
1188
- t68 = /* @__PURE__ */ jsx(ComboBoxInput, {
1189
- customizationProps: t59,
1190
- qa: t60,
1191
- inputRef: t61,
1116
+ $[171] = t53;
1117
+ $[172] = t54;
1118
+ $[173] = t55;
1119
+ $[174] = t56;
1120
+ } else t56 = $[174];
1121
+ let t57;
1122
+ if ($[175] !== activeDescendant || $[176] !== autoComplete || $[177] !== autoFocus || $[178] !== effectiveInputValue || $[179] !== handleInputChange || $[180] !== handleInputClick || $[181] !== handleInputFocus || $[182] !== id || $[183] !== inputStyles || $[184] !== isDisabled || $[185] !== isIdentifier || $[186] !== isInvalid || $[187] !== isReadOnly || $[188] !== isRequired || $[189] !== keyboardProps || $[190] !== mods || $[191] !== placeholder || $[192] !== shouldShowPopover || $[193] !== size || $[194] !== t48 || $[195] !== t49 || $[196] !== t50 || $[197] !== t51 || $[198] !== t56) {
1123
+ t57 = /* @__PURE__ */ jsx(ComboBoxInput, {
1124
+ customizationProps: t48,
1125
+ qa: t49,
1126
+ inputRef: t50,
1192
1127
  id,
1193
1128
  value: effectiveInputValue,
1194
1129
  placeholder,
@@ -1202,68 +1137,75 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
1202
1137
  mods,
1203
1138
  inputStyles,
1204
1139
  keyboardProps,
1205
- focusProps: t62,
1140
+ focusProps: t51,
1206
1141
  isListShown: shouldShowPopover,
1207
1142
  comboBoxId,
1208
1143
  activeDescendant,
1209
1144
  onChange: handleInputChange,
1210
1145
  onFocus: handleInputFocus,
1211
- onPointerDown: t63,
1146
+ onPointerDown: t52,
1212
1147
  onClick: handleInputClick,
1213
- ariaProps: t67,
1148
+ ariaProps: t56,
1214
1149
  isInvalid
1215
1150
  });
1216
- $[219] = activeDescendant;
1217
- $[220] = autoComplete;
1218
- $[221] = autoFocus;
1219
- $[222] = effectiveInputValue;
1220
- $[223] = handleInputChange;
1221
- $[224] = handleInputClick;
1222
- $[225] = handleInputFocus;
1223
- $[226] = id;
1224
- $[227] = inputStyles;
1225
- $[228] = isDisabled;
1226
- $[229] = isIdentifier;
1227
- $[230] = isInvalid;
1228
- $[231] = isReadOnly;
1229
- $[232] = isRequired;
1230
- $[233] = keyboardProps;
1231
- $[234] = mods;
1232
- $[235] = placeholder;
1233
- $[236] = shouldShowPopover;
1234
- $[237] = size;
1235
- $[238] = t59;
1236
- $[239] = t60;
1237
- $[240] = t61;
1238
- $[241] = t62;
1239
- $[242] = t67;
1240
- $[243] = t68;
1241
- } else t68 = $[243];
1242
- let t69;
1243
- if ($[244] !== effectiveSelectedKey || $[245] !== isDisabled || $[246] !== props.name) {
1244
- t69 = props.name ? /* @__PURE__ */ jsx("input", {
1151
+ $[175] = activeDescendant;
1152
+ $[176] = autoComplete;
1153
+ $[177] = autoFocus;
1154
+ $[178] = effectiveInputValue;
1155
+ $[179] = handleInputChange;
1156
+ $[180] = handleInputClick;
1157
+ $[181] = handleInputFocus;
1158
+ $[182] = id;
1159
+ $[183] = inputStyles;
1160
+ $[184] = isDisabled;
1161
+ $[185] = isIdentifier;
1162
+ $[186] = isInvalid;
1163
+ $[187] = isReadOnly;
1164
+ $[188] = isRequired;
1165
+ $[189] = keyboardProps;
1166
+ $[190] = mods;
1167
+ $[191] = placeholder;
1168
+ $[192] = shouldShowPopover;
1169
+ $[193] = size;
1170
+ $[194] = t48;
1171
+ $[195] = t49;
1172
+ $[196] = t50;
1173
+ $[197] = t51;
1174
+ $[198] = t56;
1175
+ $[199] = t57;
1176
+ } else t57 = $[199];
1177
+ let t58;
1178
+ if ($[200] !== effectiveSelectedKey || $[201] !== isDisabled || $[202] !== props.name) {
1179
+ t58 = props.name ? /* @__PURE__ */ jsx("input", {
1245
1180
  type: "hidden",
1246
1181
  name: props.name,
1247
1182
  value: effectiveSelectedKey ?? "",
1248
1183
  disabled: isDisabled
1249
1184
  }) : null;
1250
- $[244] = effectiveSelectedKey;
1251
- $[245] = isDisabled;
1252
- $[246] = props.name;
1253
- $[247] = t69;
1254
- } else t69 = $[247];
1255
- const t70 = suffixPosition === "before" ? suffix : null;
1256
- let t71;
1257
- if ($[248] !== isLoading || $[249] !== validationIcon) {
1258
- t71 = isLoading ? /* @__PURE__ */ jsx(LoadingIcon, { "data-element": "InputIcon" }) : validationIcon;
1259
- $[248] = isLoading;
1260
- $[249] = validationIcon;
1261
- $[250] = t71;
1262
- } else t71 = $[250];
1263
- const t72 = suffixPosition === "after" ? suffix : null;
1264
- let t73;
1265
- if ($[251] !== clearValue || $[252] !== hideTrigger || $[253] !== showClearButton || $[254] !== size || $[255] !== t) {
1266
- t73 = showClearButton && /* @__PURE__ */ jsx(_CollectionItem.Action, {
1185
+ $[200] = effectiveSelectedKey;
1186
+ $[201] = isDisabled;
1187
+ $[202] = props.name;
1188
+ $[203] = t58;
1189
+ } else t58 = $[203];
1190
+ let t59;
1191
+ if ($[204] !== announcesEmptyLabel || $[205] !== emptyLabel) {
1192
+ t59 = emptyLabel !== void 0 ? /* @__PURE__ */ jsx(EmptyLabelStatus, { children: announcesEmptyLabel ? emptyLabel : null }) : null;
1193
+ $[204] = announcesEmptyLabel;
1194
+ $[205] = emptyLabel;
1195
+ $[206] = t59;
1196
+ } else t59 = $[206];
1197
+ const t60 = suffixPosition === "before" ? suffix : null;
1198
+ let t61;
1199
+ if ($[207] !== isLoading || $[208] !== validationIcon) {
1200
+ t61 = isLoading ? /* @__PURE__ */ jsx(LoadingIcon, { "data-element": "InputIcon" }) : validationIcon;
1201
+ $[207] = isLoading;
1202
+ $[208] = validationIcon;
1203
+ $[209] = t61;
1204
+ } else t61 = $[209];
1205
+ const t62 = suffixPosition === "after" ? suffix : null;
1206
+ let t63;
1207
+ if ($[210] !== clearValue || $[211] !== hideTrigger || $[212] !== showClearButton || $[213] !== size || $[214] !== t) {
1208
+ t63 = showClearButton && /* @__PURE__ */ jsx(_CollectionItem.Action, {
1267
1209
  excludeFromTabOrder: true,
1268
1210
  icon: /* @__PURE__ */ jsx(CloseIcon, {}),
1269
1211
  size,
@@ -1273,16 +1215,16 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
1273
1215
  "aria-label": t("comboBox.clearValue", "Clear value"),
1274
1216
  onPress: clearValue
1275
1217
  });
1276
- $[251] = clearValue;
1277
- $[252] = hideTrigger;
1278
- $[253] = showClearButton;
1279
- $[254] = size;
1280
- $[255] = t;
1281
- $[256] = t73;
1282
- } else t73 = $[256];
1283
- let t74;
1284
- if ($[257] !== hideTrigger || $[258] !== isDisabled || $[259] !== isLoading || $[260] !== shouldShowPopover || $[261] !== size || $[262] !== t || $[263] !== toggleList || $[264] !== triggerRef || $[265] !== triggerStyles) {
1285
- t74 = !hideTrigger ? /* @__PURE__ */ jsx(_CollectionItem.Action, {
1218
+ $[210] = clearValue;
1219
+ $[211] = hideTrigger;
1220
+ $[212] = showClearButton;
1221
+ $[213] = size;
1222
+ $[214] = t;
1223
+ $[215] = t63;
1224
+ } else t63 = $[215];
1225
+ let t64;
1226
+ if ($[216] !== hideTrigger || $[217] !== isDisabled || $[218] !== isLoading || $[219] !== shouldShowPopover || $[220] !== size || $[221] !== t || $[222] !== toggleList || $[223] !== triggerRef || $[224] !== triggerStyles) {
1227
+ t64 = !hideTrigger ? /* @__PURE__ */ jsx(_CollectionItem.Action, {
1286
1228
  ref: triggerRef,
1287
1229
  excludeFromTabOrder: true,
1288
1230
  "data-popover-trigger": true,
@@ -1301,49 +1243,56 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
1301
1243
  "aria-label": t("comboBox.showOptions", "Show options"),
1302
1244
  onPress: toggleList
1303
1245
  }) : null;
1304
- $[257] = hideTrigger;
1305
- $[258] = isDisabled;
1306
- $[259] = isLoading;
1307
- $[260] = shouldShowPopover;
1308
- $[261] = size;
1309
- $[262] = t;
1310
- $[263] = toggleList;
1311
- $[264] = triggerRef;
1312
- $[265] = triggerStyles;
1313
- $[266] = t74;
1314
- } else t74 = $[266];
1315
- let t75;
1316
- if ($[267] !== t70 || $[268] !== t71 || $[269] !== t72 || $[270] !== t73 || $[271] !== t74) {
1317
- t75 = /* @__PURE__ */ jsxs("div", {
1246
+ $[216] = hideTrigger;
1247
+ $[217] = isDisabled;
1248
+ $[218] = isLoading;
1249
+ $[219] = shouldShowPopover;
1250
+ $[220] = size;
1251
+ $[221] = t;
1252
+ $[222] = toggleList;
1253
+ $[223] = triggerRef;
1254
+ $[224] = triggerStyles;
1255
+ $[225] = t64;
1256
+ } else t64 = $[225];
1257
+ let t65;
1258
+ if ($[226] !== t60 || $[227] !== t61 || $[228] !== t62 || $[229] !== t63 || $[230] !== t64) {
1259
+ t65 = /* @__PURE__ */ jsxs("div", {
1318
1260
  "data-element": "Suffix",
1319
1261
  children: [
1320
- t70,
1321
- t71,
1322
- t72,
1323
- t73,
1324
- t74
1262
+ t60,
1263
+ t61,
1264
+ t62,
1265
+ t63,
1266
+ t64
1325
1267
  ]
1326
1268
  });
1327
- $[267] = t70;
1328
- $[268] = t71;
1329
- $[269] = t72;
1330
- $[270] = t73;
1331
- $[271] = t74;
1332
- $[272] = t75;
1333
- } else t75 = $[272];
1334
- const t76 = wrapperRef;
1335
- const t77 = props["aria-label"];
1336
- let t78;
1337
- if ($[273] !== setIsPopoverOpen) {
1338
- t78 = () => setIsPopoverOpen(false);
1339
- $[273] = setIsPopoverOpen;
1340
- $[274] = t78;
1341
- } else t78 = $[274];
1342
- let t79;
1343
- if ($[275] !== children || $[276] !== comboBoxWidth || $[277] !== compositeFocusProps || $[278] !== containerPadding || $[279] !== direction || $[280] !== effectiveSelectedKey || $[281] !== filterFn || $[282] !== handleSelectionChange || $[283] !== headingStyles || $[284] !== isDisabled || $[285] !== label || $[286] !== listBoxRef || $[287] !== listBoxStyles || $[288] !== listGap || $[289] !== optionStyles || $[290] !== overlayOffset || $[291] !== overlayStyles || $[292] !== popoverRef || $[293] !== props.disabledKeys || $[294] !== sectionStyles || $[295] !== shouldFlip || $[296] !== shouldShowPopover || $[297] !== size || $[298] !== sortedItems || $[299] !== t76 || $[300] !== t77 || $[301] !== t78) {
1344
- t79 = /* @__PURE__ */ jsx(ListBoxPopover, {
1269
+ $[226] = t60;
1270
+ $[227] = t61;
1271
+ $[228] = t62;
1272
+ $[229] = t63;
1273
+ $[230] = t64;
1274
+ $[231] = t65;
1275
+ } else t65 = $[231];
1276
+ const t66 = wrapperRef;
1277
+ const t67 = props["aria-label"];
1278
+ let t68;
1279
+ if ($[232] !== filterFn || $[233] !== hasResults) {
1280
+ t68 = hasResults ? filterFn : _temp4;
1281
+ $[232] = filterFn;
1282
+ $[233] = hasResults;
1283
+ $[234] = t68;
1284
+ } else t68 = $[234];
1285
+ let t69;
1286
+ if ($[235] !== setIsPopoverOpen) {
1287
+ t69 = () => setIsPopoverOpen(false);
1288
+ $[235] = setIsPopoverOpen;
1289
+ $[236] = t69;
1290
+ } else t69 = $[236];
1291
+ let t70;
1292
+ if ($[237] !== children || $[238] !== comboBoxWidth || $[239] !== compositeFocusProps || $[240] !== containerPadding || $[241] !== direction || $[242] !== effectiveSelectedKey || $[243] !== emptyLabel || $[244] !== handleSelectionChange || $[245] !== headingStyles || $[246] !== isDisabled || $[247] !== label || $[248] !== listBoxRef || $[249] !== listBoxStyles || $[250] !== listGap || $[251] !== optionStyles || $[252] !== overlayOffset || $[253] !== overlayStyles || $[254] !== popoverRef || $[255] !== props.disabledKeys || $[256] !== sectionStyles || $[257] !== shouldFlip || $[258] !== shouldShowPopover || $[259] !== size || $[260] !== sortedItems || $[261] !== t66 || $[262] !== t67 || $[263] !== t68 || $[264] !== t69) {
1293
+ t70 = /* @__PURE__ */ jsx(ListBoxPopover, {
1345
1294
  isOpen: shouldShowPopover,
1346
- triggerRef: t76,
1295
+ triggerRef: t66,
1347
1296
  popoverRef,
1348
1297
  listBoxRef,
1349
1298
  direction,
@@ -1365,55 +1314,58 @@ const ComboBox = forwardRef(function ComboBox(props, ref) {
1365
1314
  items: sortedItems,
1366
1315
  listStateRef,
1367
1316
  label,
1368
- ariaLabel: t77,
1317
+ ariaLabel: t67,
1369
1318
  compositeFocusProps,
1370
- filter: filterFn,
1319
+ filter: t68,
1371
1320
  size,
1321
+ emptyLabel,
1372
1322
  onSelectionChange: handleSelectionChange,
1373
- onClose: t78,
1323
+ onClose: t69,
1374
1324
  children
1375
1325
  });
1376
- $[275] = children;
1377
- $[276] = comboBoxWidth;
1378
- $[277] = compositeFocusProps;
1379
- $[278] = containerPadding;
1380
- $[279] = direction;
1381
- $[280] = effectiveSelectedKey;
1382
- $[281] = filterFn;
1383
- $[282] = handleSelectionChange;
1384
- $[283] = headingStyles;
1385
- $[284] = isDisabled;
1386
- $[285] = label;
1387
- $[286] = listBoxRef;
1388
- $[287] = listBoxStyles;
1389
- $[288] = listGap;
1390
- $[289] = optionStyles;
1391
- $[290] = overlayOffset;
1392
- $[291] = overlayStyles;
1393
- $[292] = popoverRef;
1394
- $[293] = props.disabledKeys;
1395
- $[294] = sectionStyles;
1396
- $[295] = shouldFlip;
1397
- $[296] = shouldShowPopover;
1398
- $[297] = size;
1399
- $[298] = sortedItems;
1400
- $[299] = t76;
1401
- $[300] = t77;
1402
- $[301] = t78;
1403
- $[302] = t79;
1404
- } else t79 = $[302];
1326
+ $[237] = children;
1327
+ $[238] = comboBoxWidth;
1328
+ $[239] = compositeFocusProps;
1329
+ $[240] = containerPadding;
1330
+ $[241] = direction;
1331
+ $[242] = effectiveSelectedKey;
1332
+ $[243] = emptyLabel;
1333
+ $[244] = handleSelectionChange;
1334
+ $[245] = headingStyles;
1335
+ $[246] = isDisabled;
1336
+ $[247] = label;
1337
+ $[248] = listBoxRef;
1338
+ $[249] = listBoxStyles;
1339
+ $[250] = listGap;
1340
+ $[251] = optionStyles;
1341
+ $[252] = overlayOffset;
1342
+ $[253] = overlayStyles;
1343
+ $[254] = popoverRef;
1344
+ $[255] = props.disabledKeys;
1345
+ $[256] = sectionStyles;
1346
+ $[257] = shouldFlip;
1347
+ $[258] = shouldShowPopover;
1348
+ $[259] = size;
1349
+ $[260] = sortedItems;
1350
+ $[261] = t66;
1351
+ $[262] = t67;
1352
+ $[263] = t68;
1353
+ $[264] = t69;
1354
+ $[265] = t70;
1355
+ } else t70 = $[265];
1405
1356
  const comboBoxField = /* @__PURE__ */ jsxs(ComboBoxWrapperElement, {
1406
- ref: t56,
1357
+ ref: t45,
1407
1358
  mods,
1408
- styles: t57,
1359
+ styles: t46,
1409
1360
  "data-size": size,
1410
1361
  ...compositeFocusProps,
1411
1362
  children: [
1363
+ t47,
1364
+ t57,
1412
1365
  t58,
1413
- t68,
1414
- t69,
1415
- t75,
1416
- t79
1366
+ t59,
1367
+ t65,
1368
+ t70
1417
1369
  ]
1418
1370
  });
1419
1371
  const { children: _, ...propsWithoutChildren } = props;
@@ -1438,6 +1390,12 @@ function _temp2(t0) {
1438
1390
  }
1439
1391
  };
1440
1392
  }
1393
+ function _temp3(option) {
1394
+ return String(option.key);
1395
+ }
1396
+ function _temp4() {
1397
+ return [];
1398
+ }
1441
1399
  //#endregion
1442
1400
  export { ComboBox };
1443
1401