@iress-oss/ids-components 5.20.8 → 5.20.9

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 (438) hide show
  1. package/dist/AutocompleteNoResults-B9WjoXJo.js +10 -0
  2. package/dist/Badge-BqaFutTZ.js +40 -0
  3. package/dist/CheckboxGroup-WLxp9nIX.js +79 -0
  4. package/dist/CheckboxMark.types-CW7xyywE.js +17 -0
  5. package/dist/ClearButton-s0_b3pvJ.js +25 -0
  6. package/dist/ComboboxHiddenInput-DH3V3Dyg.js +27 -0
  7. package/dist/Expander-B3_k6HJq.js +55 -0
  8. package/dist/InputBase-BnBuTYZm.js +48 -0
  9. package/dist/LabelBase-CV1O4V_d.js +51 -0
  10. package/dist/Loading.module-DdUL1FMv.js +16 -0
  11. package/dist/LogoFromSrc-7oPJTvAO.js +50 -0
  12. package/dist/LongLoading-Dw8sUYlh.js +117 -0
  13. package/dist/MenuItem.module-guf-3YyL.js +24 -0
  14. package/dist/Placeholder-C1YrHg4w.js +35 -0
  15. package/dist/Popover.module-6flgSLob.js +10 -0
  16. package/dist/PopoverProvider-DgUOscvy.js +109 -0
  17. package/dist/Progress-BypnLSGF.js +35 -0
  18. package/dist/RadioGroup-DtA0WE3l.js +78 -0
  19. package/dist/SelectControl-D8Y9Up2f.js +28 -0
  20. package/dist/Skeleton-D_iuo6Xw.js +34 -0
  21. package/dist/SkipLink-rElTLeMe.js +15 -0
  22. package/dist/SlideoutProvider-DnaE67W-.js +125 -0
  23. package/dist/SliderTicks-BqTI-XhQ.js +47 -0
  24. package/dist/StartUpLoading-DFAMmjg3.js +68 -0
  25. package/dist/Tab-C08D4jxr.js +68 -0
  26. package/dist/TabSet.module-q8a7ksiF.js +13 -0
  27. package/dist/Table.module-DnaTe51E.js +32 -0
  28. package/dist/Toggle-CF22OY-P.js +66 -0
  29. package/dist/Tooltip-BxM_1Wtq.js +60 -0
  30. package/dist/ValidationBase-A2Ed7iem.js +29 -0
  31. package/dist/ValidationSummary-D6Wa4vOf.js +38 -0
  32. package/dist/chunk-efA98nb6.js +13 -0
  33. package/dist/classnames-BTnCYmAN.js +31 -0
  34. package/dist/components/Alert/Alert.js +2 -11
  35. package/dist/components/Alert/Alert.types.js +8 -8
  36. package/dist/components/Alert/index.js +3 -6
  37. package/dist/components/Autocomplete/Autocomplete.js +2 -45
  38. package/dist/components/Autocomplete/Autocomplete.types.js +0 -1
  39. package/dist/components/Autocomplete/components/AutocompleteInstructions.js +10 -10
  40. package/dist/components/Autocomplete/components/AutocompleteNoResults.js +2 -5
  41. package/dist/components/Autocomplete/hooks/useAutocompleteSearch.js +2 -191
  42. package/dist/components/Autocomplete/index.js +3 -6
  43. package/dist/components/Badge/Badge.js +2 -49
  44. package/dist/components/Badge/Badge.types.js +14 -14
  45. package/dist/components/Badge/index.js +3 -7
  46. package/dist/components/Button/Button.js +2 -10
  47. package/dist/components/Button/Button.types.js +22 -20
  48. package/dist/components/Button/CloseButton/CloseButton.js +2 -7
  49. package/dist/components/Button/CloseButton/CloseButton.types.js +0 -1
  50. package/dist/components/Button/index.js +3 -11
  51. package/dist/components/ButtonGroup/ButtonGroup.js +2 -72
  52. package/dist/components/ButtonGroup/ButtonGroup.types.js +0 -1
  53. package/dist/components/ButtonGroup/ButtonGroupProvider.js +26 -33
  54. package/dist/components/ButtonGroup/hooks/useButtonGroup.js +6 -6
  55. package/dist/components/ButtonGroup/hooks/useIDSButtonGroupItem.js +2 -6
  56. package/dist/components/ButtonGroup/index.js +3 -6
  57. package/dist/components/Card/Card.js +34 -48
  58. package/dist/components/Card/Card.types.js +8 -5
  59. package/dist/components/Card/components/ButtonCard.js +29 -37
  60. package/dist/components/Card/components/LinkCard.js +28 -36
  61. package/dist/components/Card/helpers/composeIDSCard.js +18 -26
  62. package/dist/components/Card/helpers/composeIDSCardSlots.js +47 -32
  63. package/dist/components/Card/index.js +7 -15
  64. package/dist/components/Checkbox/Checkbox.js +2 -15
  65. package/dist/components/Checkbox/Checkbox.types.js +0 -1
  66. package/dist/components/Checkbox/helpers/mapCheckboxGroupOptions.js +12 -19
  67. package/dist/components/Checkbox/index.js +2 -4
  68. package/dist/components/CheckboxGroup/CheckboxGroup.js +2 -99
  69. package/dist/components/CheckboxGroup/CheckboxGroup.types.js +10 -10
  70. package/dist/components/CheckboxGroup/CheckboxGroupContext.js +5 -5
  71. package/dist/components/CheckboxGroup/index.js +3 -7
  72. package/dist/components/CheckboxMark/CheckboxMark.js +29 -40
  73. package/dist/components/CheckboxMark/CheckboxMark.types.js +2 -16
  74. package/dist/components/CheckboxMark/index.js +3 -6
  75. package/dist/components/Col/Col.js +14 -33
  76. package/dist/components/Col/Col.types.js +67 -65
  77. package/dist/components/Col/index.js +3 -12
  78. package/dist/components/Combobox/Combobox.js +2 -48
  79. package/dist/components/Combobox/Combobox.types.js +0 -1
  80. package/dist/components/Combobox/MultiCombobox/MultiCombobox.js +2 -46
  81. package/dist/components/Combobox/MultiCombobox/MultiCombobox.types.js +0 -1
  82. package/dist/components/Combobox/components/ComboboxHiddenInput.js +2 -8
  83. package/dist/components/Combobox/components/ComboboxResults.js +2 -41
  84. package/dist/components/Combobox/components/ComboboxResultsDescriptor.js +2 -40
  85. package/dist/components/Combobox/hooks/useComboboxFlags.js +11 -14
  86. package/dist/components/Combobox/hooks/useComboboxInlineCompletion.js +39 -59
  87. package/dist/components/Combobox/index.js +2 -5
  88. package/dist/components/Container/Container.js +12 -21
  89. package/dist/components/Container/Container.types.js +6 -4
  90. package/dist/components/Container/index.js +3 -6
  91. package/dist/components/Divider/Divider.js +14 -21
  92. package/dist/components/Divider/Divider.types.js +6 -4
  93. package/dist/components/Divider/index.js +2 -5
  94. package/dist/components/Expander/Expander.js +2 -80
  95. package/dist/components/Expander/Expander.types.js +10 -6
  96. package/dist/components/Expander/index.js +3 -7
  97. package/dist/components/Field/Field.js +2 -71
  98. package/dist/components/Field/Field.types.js +0 -1
  99. package/dist/components/Field/FieldGroup/FieldGroup.js +2 -77
  100. package/dist/components/Field/FieldGroup/FieldGroup.types.js +0 -1
  101. package/dist/components/Field/components/FieldAppendToLabel.js +2 -43
  102. package/dist/components/Field/components/FieldLegend.js +9 -6
  103. package/dist/components/Field/helpers/getUniqueItemsByKey.js +4 -8
  104. package/dist/components/Field/index.js +2 -6
  105. package/dist/components/Filter/Filter.js +2 -45
  106. package/dist/components/Filter/Filter.types.js +0 -1
  107. package/dist/components/Filter/components/FilterLabel.js +6 -10
  108. package/dist/components/Filter/components/FilterResetButton.js +2 -39
  109. package/dist/components/Filter/components/FilterSearch.js +2 -39
  110. package/dist/components/Filter/hooks/useFilterFlags.js +15 -24
  111. package/dist/components/Filter/index.js +2 -4
  112. package/dist/components/Form/Form.js +2 -6
  113. package/dist/components/Form/Form.types.js +6 -4
  114. package/dist/components/Form/FormContext.js +5 -7
  115. package/dist/components/Form/FormField/FormField.js +2 -91
  116. package/dist/components/Form/FormField/FormField.types.js +6 -4
  117. package/dist/components/Form/FormField/FormFieldset.js +2 -81
  118. package/dist/components/Form/FormField/helpers/getErrorTypeMessage.js +9 -19
  119. package/dist/components/Form/FormField/helpers/transformCustomRulesToValidateRule.js +23 -33
  120. package/dist/components/Form/HookForm/HookForm.js +2 -12
  121. package/dist/components/Form/components/FormValidationSummary.js +22 -22
  122. package/dist/components/Form/hooks/useNoDefaultValueInForms.js +6 -13
  123. package/dist/components/Form/index.js +4 -13
  124. package/dist/components/HeadingWithDeprecatedFallback/HeadingWithDeprecatedFallback.js +12 -14
  125. package/dist/components/Hide/Hide.js +2 -7
  126. package/dist/components/Hide/Hide.types.js +8 -5
  127. package/dist/components/Hide/helpers/composeHideClasses.js +2 -40
  128. package/dist/components/Hide/index.js +3 -7
  129. package/dist/components/Icon/Icon.js +2 -40
  130. package/dist/components/Icon/Icon.types.js +35 -30
  131. package/dist/components/Icon/index.js +3 -15
  132. package/dist/components/Inline/Inline.js +2 -41
  133. package/dist/components/Inline/Inline.types.js +6 -4
  134. package/dist/components/Inline/index.js +3 -6
  135. package/dist/components/Input/ClearButton/ClearButton.js +2 -20
  136. package/dist/components/Input/Input.js +2 -14
  137. package/dist/components/Input/Input.types.js +15 -15
  138. package/dist/components/Input/InputBase/InputBase.js +2 -9
  139. package/dist/components/Input/InputBase/InputBase.types.js +0 -1
  140. package/dist/components/Input/index.js +3 -7
  141. package/dist/components/InputCurrency/InputCurrency.js +2 -8
  142. package/dist/components/InputCurrency/InputCurrency.types.js +0 -1
  143. package/dist/components/InputCurrency/index.js +2 -4
  144. package/dist/components/Label/Label.js +9 -6
  145. package/dist/components/Label/Label.types.js +0 -1
  146. package/dist/components/Label/LabelBase/LabelBase.js +2 -70
  147. package/dist/components/Label/LabelBase/LabelBase.types.js +0 -1
  148. package/dist/components/Label/index.js +2 -4
  149. package/dist/components/Menu/Menu.js +49 -63
  150. package/dist/components/Menu/Menu.types.js +17 -10
  151. package/dist/components/Menu/MenuDivider/MenuDivider.js +2 -39
  152. package/dist/components/Menu/MenuHeading/MenuHeading.js +2 -8
  153. package/dist/components/Menu/MenuItem/MenuItem.js +2 -11
  154. package/dist/components/Menu/MenuItem/MenuItem.types.js +10 -6
  155. package/dist/components/Menu/MenuItem/hooks/useMenuItemAria.js +11 -16
  156. package/dist/components/Menu/MenuItem/hooks/useMenuItemButtonProps.js +44 -46
  157. package/dist/components/Menu/MenuItem/hooks/useMenuItemComposite.js +17 -14
  158. package/dist/components/Menu/MenuItem/hooks/useMenuItemInteractions.js +53 -64
  159. package/dist/components/Menu/MenuItem/hooks/useMenuItemRole.js +8 -8
  160. package/dist/components/Menu/MenuProvider.js +45 -66
  161. package/dist/components/Menu/MenuText/MenuText.js +2 -40
  162. package/dist/components/Menu/helpers/mapMenuItems.js +2 -47
  163. package/dist/components/Menu/hooks/useMenu.js +6 -6
  164. package/dist/components/Menu/hooks/useMenuAria.js +13 -18
  165. package/dist/components/Menu/hooks/useMenuComposite.js +7 -7
  166. package/dist/components/Menu/hooks/useMenuRole.js +11 -12
  167. package/dist/components/Menu/hooks/useMenuStyles.js +2 -26
  168. package/dist/components/Menu/index.js +10 -29
  169. package/dist/components/Modal/Modal.js +2 -16
  170. package/dist/components/Modal/Modal.types.js +9 -4
  171. package/dist/components/Modal/ModalProvider.js +26 -31
  172. package/dist/components/Modal/hooks/useIDSProvidedModal.js +12 -12
  173. package/dist/components/Modal/hooks/useModal.js +11 -19
  174. package/dist/components/Modal/index.js +5 -11
  175. package/dist/components/Navbar/Navbar.js +2 -13
  176. package/dist/components/Navbar/Navbar.types.js +6 -4
  177. package/dist/components/Navbar/components/HomeLinkContent.js +2 -6
  178. package/dist/components/Navbar/components/LogoFromSrc.js +2 -6
  179. package/dist/components/Navbar/components/NavbarLogo.js +2 -8
  180. package/dist/components/Navbar/index.js +3 -6
  181. package/dist/components/Panel/Panel.js +21 -35
  182. package/dist/components/Panel/Panel.types.js +12 -11
  183. package/dist/components/Panel/index.js +3 -8
  184. package/dist/components/Placeholder/Placeholder.js +2 -42
  185. package/dist/components/Placeholder/Placeholder.types.js +0 -1
  186. package/dist/components/Placeholder/index.js +2 -4
  187. package/dist/components/Popover/InputPopover/InputPopover.js +51 -87
  188. package/dist/components/Popover/InputPopover/InputPopover.types.js +0 -1
  189. package/dist/components/Popover/InputPopover/InputPopoverActivator.js +50 -58
  190. package/dist/components/Popover/InputPopover/InputPopoverProvider.js +86 -107
  191. package/dist/components/Popover/Popover.js +59 -97
  192. package/dist/components/Popover/Popover.types.js +14 -15
  193. package/dist/components/Popover/PopoverProvider.js +2 -15
  194. package/dist/components/Popover/components/NestedPopoverActivator.js +9 -9
  195. package/dist/components/Popover/components/PopoverActivator.js +63 -81
  196. package/dist/components/Popover/components/PopoverContent.js +51 -58
  197. package/dist/components/Popover/helpers/composeFloatingProps.js +42 -33
  198. package/dist/components/Popover/helpers/composePopoverWidth.js +7 -4
  199. package/dist/components/Popover/helpers/handlePopoverTabKey.js +23 -29
  200. package/dist/components/Popover/helpers/hasFocus.js +7 -7
  201. package/dist/components/Popover/helpers/waitUntilTrue.js +11 -11
  202. package/dist/components/Popover/hooks/usePopover.js +6 -6
  203. package/dist/components/Popover/hooks/usePopoverActivatorInteractions.js +23 -32
  204. package/dist/components/Popover/hooks/usePopoverAria.js +12 -17
  205. package/dist/components/Popover/hooks/usePopoverImperativeHandle.js +20 -24
  206. package/dist/components/Popover/hooks/usePopoverItem.js +20 -16
  207. package/dist/components/Popover/hooks/usePopoverNavigation.js +32 -31
  208. package/dist/components/Popover/hooks/usePopoverState.js +21 -28
  209. package/dist/components/Popover/index.js +5 -13
  210. package/dist/components/Progress/Progress.js +2 -48
  211. package/dist/components/Progress/Progress.types.js +0 -1
  212. package/dist/components/Progress/index.js +2 -4
  213. package/dist/components/Provider/Provider.js +2 -38
  214. package/dist/components/Provider/index.js +2 -4
  215. package/dist/components/Radio/Radio.js +2 -11
  216. package/dist/components/Radio/Radio.types.js +0 -1
  217. package/dist/components/Radio/helpers/mapRadioGroupOptions.js +12 -19
  218. package/dist/components/Radio/index.js +2 -4
  219. package/dist/components/RadioGroup/RadioGroup.js +2 -98
  220. package/dist/components/RadioGroup/RadioGroup.types.js +11 -11
  221. package/dist/components/RadioGroup/RadioGroupContext.js +5 -5
  222. package/dist/components/RadioGroup/index.js +3 -8
  223. package/dist/components/Readonly/Readonly.js +2 -43
  224. package/dist/components/Readonly/Readonly.types.js +0 -1
  225. package/dist/components/Readonly/index.js +2 -4
  226. package/dist/components/RichSelect/RichSelect.js +2 -42
  227. package/dist/components/RichSelect/RichSelect.types.js +0 -1
  228. package/dist/components/RichSelect/SelectBody/SelectBody.js +2 -56
  229. package/dist/components/RichSelect/SelectBody/SelectBody.types.js +0 -1
  230. package/dist/components/RichSelect/SelectCreate/SelectCreate.js +2 -63
  231. package/dist/components/RichSelect/SelectCreate/SelectCreate.types.js +0 -1
  232. package/dist/components/RichSelect/SelectHeading/SelectHeading.js +2 -40
  233. package/dist/components/RichSelect/SelectHeading/SelectHeading.types.js +0 -1
  234. package/dist/components/RichSelect/SelectLabel/SelectLabel.js +2 -12
  235. package/dist/components/RichSelect/SelectLabel/SelectLabel.types.js +0 -1
  236. package/dist/components/RichSelect/SelectMenu/SelectMenu.js +2 -44
  237. package/dist/components/RichSelect/SelectMenu/SelectMenu.types.js +0 -1
  238. package/dist/components/RichSelect/SelectMenu/SelectMenuItem.js +2 -39
  239. package/dist/components/RichSelect/SelectSearch/SelectSearch.js +2 -39
  240. package/dist/components/RichSelect/SelectSearch/SelectSearch.types.js +0 -1
  241. package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.js +2 -8
  242. package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.types.js +0 -1
  243. package/dist/components/RichSelect/SelectTags/SelectTags.js +2 -45
  244. package/dist/components/RichSelect/SelectTags/SelectTags.types.js +0 -1
  245. package/dist/components/RichSelect/components/SelectActivator.js +2 -7
  246. package/dist/components/RichSelect/components/SelectHiddenInput.js +18 -29
  247. package/dist/components/RichSelect/components/SelectOptions.js +2 -40
  248. package/dist/components/RichSelect/hooks/useRichSelectState.js +15 -17
  249. package/dist/components/RichSelect/index.js +3 -16
  250. package/dist/components/Row/Row.js +2 -41
  251. package/dist/components/Row/Row.types.js +6 -4
  252. package/dist/components/Row/index.js +3 -6
  253. package/dist/components/Select/Select.js +2 -14
  254. package/dist/components/Select/Select.types.js +0 -1
  255. package/dist/components/Select/SelectOption/SelectOption.js +8 -8
  256. package/dist/components/Select/components/SelectControl.js +2 -9
  257. package/dist/components/Select/components/SelectReadonly.js +2 -40
  258. package/dist/components/Select/helpers/mapSelectOptions.js +2 -21
  259. package/dist/components/Select/helpers/nodesToSelectOptions.js +2 -9
  260. package/dist/components/Select/index.js +3 -9
  261. package/dist/components/Skeleton/Skeleton.js +2 -44
  262. package/dist/components/Skeleton/Skeleton.types.js +10 -6
  263. package/dist/components/Skeleton/index.js +3 -7
  264. package/dist/components/SkipLink/SkipLink.js +2 -30
  265. package/dist/components/SkipLink/SkipLink.types.js +0 -1
  266. package/dist/components/SkipLink/index.js +2 -4
  267. package/dist/components/Slideout/Slideout.js +2 -18
  268. package/dist/components/Slideout/Slideout.types.js +14 -14
  269. package/dist/components/Slideout/SlideoutProvider.js +2 -8
  270. package/dist/components/Slideout/components/SlideoutInner.js +2 -8
  271. package/dist/components/Slideout/hooks/useIDSProvidedSlideout.js +12 -12
  272. package/dist/components/Slideout/hooks/useSlideout.js +11 -19
  273. package/dist/components/Slideout/index.js +5 -16
  274. package/dist/components/Slider/Slider.js +2 -12
  275. package/dist/components/Slider/Slider.types.js +0 -1
  276. package/dist/components/Slider/components/SliderTicks.js +2 -10
  277. package/dist/components/Slider/index.js +2 -4
  278. package/dist/components/Spinner/Spinner.js +2 -6
  279. package/dist/components/Spinner/Spinner.types.js +0 -1
  280. package/dist/components/Spinner/index.js +2 -4
  281. package/dist/components/Stack/Stack.js +15 -26
  282. package/dist/components/Stack/Stack.types.js +6 -4
  283. package/dist/components/Stack/index.js +3 -6
  284. package/dist/components/TabSet/Tab/Tab.js +2 -100
  285. package/dist/components/TabSet/Tab/Tab.types.js +0 -1
  286. package/dist/components/TabSet/TabSet.js +37 -58
  287. package/dist/components/TabSet/TabSet.types.js +10 -6
  288. package/dist/components/TabSet/TabSetProvider.js +45 -49
  289. package/dist/components/TabSet/components/TabSetItem.js +24 -44
  290. package/dist/components/TabSet/helpers/mapTabs.js +2 -33
  291. package/dist/components/TabSet/hooks/useTabSetItems.js +5 -5
  292. package/dist/components/TabSet/index.js +21 -11
  293. package/dist/components/Table/Table.js +2 -18
  294. package/dist/components/Table/Table.types.js +22 -22
  295. package/dist/components/Table/TableBody/TableBody.js +2 -125
  296. package/dist/components/Table/TableBody/TableBody.types.js +0 -1
  297. package/dist/components/Table/TableContext.js +9 -9
  298. package/dist/components/Table/TableFormattedValue/TableFormattedValue.js +11 -17
  299. package/dist/components/Table/TableFormattedValue/TableFormattedValue.types.js +0 -1
  300. package/dist/components/Table/TableProvider.js +31 -38
  301. package/dist/components/Table/components/TableBodyCell.js +16 -30
  302. package/dist/components/Table/components/TableEmpty.js +15 -11
  303. package/dist/components/Table/components/TableHeader.js +2 -8
  304. package/dist/components/Table/components/TableHeaderCell.js +2 -8
  305. package/dist/components/Table/components/TableRows.js +29 -48
  306. package/dist/components/Table/components/TableSortButton.js +2 -7
  307. package/dist/components/Table/helpers/composeIDSTableColumnDefs.js +29 -41
  308. package/dist/components/Table/helpers/composeIDSTableInitialSorting.js +6 -9
  309. package/dist/components/Table/helpers/findColumnByKey.js +4 -4
  310. package/dist/components/Table/helpers/getFormatFromValue.js +7 -10
  311. package/dist/components/Table/helpers/hasColumns.js +4 -4
  312. package/dist/components/Table/hooks/useIDSTableColumnSort.js +18 -23
  313. package/dist/components/Table/hooks/useIDSTableColumnStyles.js +21 -23
  314. package/dist/components/Table/hooks/useTable.js +5 -5
  315. package/dist/components/Table/index.js +4 -15
  316. package/dist/components/Tag/Tag.js +2 -8
  317. package/dist/components/Tag/Tag.types.js +0 -1
  318. package/dist/components/Tag/TagInput/TagInput.js +2 -8
  319. package/dist/components/Tag/TagInput/TagInput.types.js +0 -1
  320. package/dist/components/Tag/components/TagListInput/TagListInput.js +2 -8
  321. package/dist/components/Tag/components/TagListInput/TagListInput.types.js +0 -1
  322. package/dist/components/Tag/index.js +2 -5
  323. package/dist/components/Text/Text.js +19 -34
  324. package/dist/components/Text/Text.types.js +18 -18
  325. package/dist/components/Text/index.js +3 -6
  326. package/dist/components/Toaster/Toast/Toast.js +2 -13
  327. package/dist/components/Toaster/Toast/Toast.types.js +12 -9
  328. package/dist/components/Toaster/Toast/ToastAnimated.js +2 -9
  329. package/dist/components/Toaster/Toast/ToastIcon.js +2 -6
  330. package/dist/components/Toaster/Toaster.js +2 -11
  331. package/dist/components/Toaster/Toaster.types.js +23 -25
  332. package/dist/components/Toaster/ToasterProvider.js +2 -7
  333. package/dist/components/Toaster/hooks/useToaster.js +2 -26
  334. package/dist/components/Toaster/index.js +4 -17
  335. package/dist/components/Toggle/Toggle.js +2 -102
  336. package/dist/components/Toggle/Toggle.types.js +10 -10
  337. package/dist/components/Toggle/index.js +3 -7
  338. package/dist/components/Tooltip/Tooltip.js +2 -77
  339. package/dist/components/Tooltip/Tooltip.types.js +0 -1
  340. package/dist/components/Tooltip/index.js +2 -4
  341. package/dist/components/ValidationMessage/ValidationBase/ValidationBase.js +2 -51
  342. package/dist/components/ValidationMessage/ValidationBase/ValidationBase.types.js +0 -1
  343. package/dist/components/ValidationMessage/ValidationLink/ValidationLink.js +15 -21
  344. package/dist/components/ValidationMessage/ValidationLink/ValidationLink.types.js +0 -1
  345. package/dist/components/ValidationMessage/ValidationMessage.js +11 -8
  346. package/dist/components/ValidationMessage/ValidationMessage.types.js +0 -1
  347. package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +2 -69
  348. package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.types.js +0 -1
  349. package/dist/components/ValidationMessage/index.js +4 -8
  350. package/dist/constants-C4s0aMXs.js +161 -0
  351. package/dist/constants.js +2 -193
  352. package/dist/enums.js +42 -22
  353. package/dist/floating-ui.react-Dj2ev6bJ.js +3098 -0
  354. package/dist/fuzzysort-BZ6Yv-YR.js +377 -0
  355. package/dist/helpers/dom/closestCrossShadow.js +19 -24
  356. package/dist/helpers/dom/domUtils.js +10 -11
  357. package/dist/helpers/dom/focusableElements.js +7 -9
  358. package/dist/helpers/dom/getActiveElement.js +7 -7
  359. package/dist/helpers/dom/hasShadowDom.js +4 -4
  360. package/dist/helpers/form/getFormControlValueAsString.js +4 -4
  361. package/dist/helpers/form/getFormControlValueAsStringIfDefined.js +6 -7
  362. package/dist/helpers/form/getValueAsEvent.js +6 -6
  363. package/dist/helpers/form/isValidFormInputElement.js +4 -4
  364. package/dist/helpers/formatting/capitalizeFirstLetter.js +4 -4
  365. package/dist/helpers/formatting/formatCurrency.js +14 -21
  366. package/dist/helpers/formatting/formatDate.js +16 -22
  367. package/dist/helpers/formatting/formatDateTime.js +49 -54
  368. package/dist/helpers/formatting/formatObjectKey.js +4 -4
  369. package/dist/helpers/formatting/formatPercentage.js +6 -6
  370. package/dist/helpers/formatting/stringReplacer.js +8 -8
  371. package/dist/helpers/formatting/toArray.js +4 -4
  372. package/dist/helpers/formatting/toCSSLengthValue.js +6 -6
  373. package/dist/helpers/label-value/composeLabelValueDescriptor.js +9 -12
  374. package/dist/helpers/label-value/getQueryRangeExclusive.js +10 -13
  375. package/dist/helpers/label-value/getValueFromLabelValues.js +7 -7
  376. package/dist/helpers/label-value/highlightQueryInLabel.js +7 -6
  377. package/dist/helpers/label-value/highlightQueryInLabelValue.js +8 -8
  378. package/dist/helpers/label-value/searchLabelValues.js +12 -11
  379. package/dist/helpers/responsive/getResponsiveLayoutModifiers.js +8 -10
  380. package/dist/helpers/responsive/getResponsivePaddingClasses.js +6 -10
  381. package/dist/helpers/transition/getTransitionDuration.js +5 -7
  382. package/dist/helpers/transition/timeStringToNumber.js +4 -4
  383. package/dist/helpers/utility/generateScopedName.js +8 -9
  384. package/dist/helpers/utility/idsLogger.js +5 -9
  385. package/dist/helpers/utility/propagateTestid.js +4 -4
  386. package/dist/hooks/index.js +5 -11
  387. package/dist/hooks/useAriaRelationship.js +20 -35
  388. package/dist/hooks/useBreakpoint.js +16 -16
  389. package/dist/hooks/useControlledState.js +35 -53
  390. package/dist/hooks/useIdIfNeeded.js +7 -7
  391. package/dist/hooks/useResponsiveProps.js +25 -25
  392. package/dist/index.esm-BCkAygZA.js +169 -0
  393. package/dist/interfaces.js +0 -1
  394. package/dist/lib-CUMSFn3v.js +1415 -0
  395. package/dist/main-CTy1XcUn.js +4604 -0
  396. package/dist/main.js +88 -336
  397. package/dist/patterns/Loading/Loading.js +2 -8
  398. package/dist/patterns/Loading/LoadingSuspense.js +2 -7
  399. package/dist/patterns/Loading/components/ComponentLoading.js +2 -10
  400. package/dist/patterns/Loading/components/DefaultLoading.js +2 -9
  401. package/dist/patterns/Loading/components/LongLoading.js +2 -132
  402. package/dist/patterns/Loading/components/PageLoading.js +2 -14
  403. package/dist/patterns/Loading/components/StartUpLoading.js +2 -107
  404. package/dist/patterns/Loading/components/ValidateLoading.js +2 -9
  405. package/dist/patterns/Loading/hooks/useEstimatedProgressValue.js +25 -25
  406. package/dist/patterns/Loading/hooks/useShouldRenderLoading.js +26 -23
  407. package/dist/patterns/Loading/hooks/useShowIndicator.js +18 -19
  408. package/dist/patterns/Loading/hooks/useSuspenseResource.js +19 -26
  409. package/dist/patterns/Loading/index.js +2 -5
  410. package/dist/style.css +2 -1
  411. package/dist/types.js +0 -1
  412. package/dist/useAutocompleteSearch-CBgqGiKn.js +179 -0
  413. package/dist/useIDSButtonGroupItem-BkzYQzAi.js +21 -0
  414. package/dist/useMenuStyles-cry3mes_.js +20 -0
  415. package/package.json +15 -15
  416. package/dist/AutocompleteNoResults-B60rzwfa.js +0 -12
  417. package/dist/ComboboxHiddenInput-BUswpU00.js +0 -32
  418. package/dist/FieldAppendToLabel-BK8cAMZT.js +0 -77
  419. package/dist/InputBase-B6gEHXZ7.js +0 -56
  420. package/dist/Loading.module-BXP_0EH0.js +0 -13
  421. package/dist/LoadingSuspense-CuQm3zqO.js +0 -5740
  422. package/dist/LogoFromSrc-BvialtyP.js +0 -59
  423. package/dist/MenuItem.module-BFPHZtJl.js +0 -24
  424. package/dist/Popover.module-oIsv6lht.js +0 -11
  425. package/dist/PopoverProvider-BMBTLkRr.js +0 -142
  426. package/dist/SelectControl-Bf6qXlwP.js +0 -47
  427. package/dist/SlideoutProvider-CQh140HM.js +0 -200
  428. package/dist/SliderTicks-DRFLh0Rw.js +0 -74
  429. package/dist/TabSet.module-Dks7jQfN.js +0 -13
  430. package/dist/Table.module-BARl9Jy6.js +0 -32
  431. package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
  432. package/dist/floating-ui.react-DfIjfJIq.js +0 -3503
  433. package/dist/fuzzysort-BNka47rs.js +0 -395
  434. package/dist/index-BaVtNOfa.js +0 -1693
  435. package/dist/index-DLnR8XTt.js +0 -47
  436. package/dist/index-cbHCAGLB.js +0 -40
  437. package/dist/index.esm-CL8gh5wr.js +0 -192
  438. package/dist/useIDSButtonGroupItem-DXJpvTGd.js +0 -29
@@ -1,36 +1,22 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import { c as u } from "../../index-cbHCAGLB.js";
3
- import { PanelCssClass as s, PanelBackground as f } from "./Panel.types.js";
4
- import { GlobalCSSClass as B, PaddingSize as C, TextAlign as P } from "../../enums.js";
5
- import { getResponsivePaddingClasses as x } from "../../helpers/responsive/getResponsivePaddingClasses.js";
6
- const a = ({
7
- children: e,
8
- background: o = "default",
9
- noBorderRadius: r,
10
- noGutter: t,
11
- padding: n = "md",
12
- stretch: i,
13
- textAlign: l = "inherit",
14
- className: d,
15
- ...m
16
- }) => {
17
- const c = {
18
- [s.Stretch]: i,
19
- [s.NoBorderRadius]: r,
20
- [s.NoGutter]: t
21
- }, g = u(
22
- d,
23
- s.Base,
24
- `${B.TextAlignBase}--${l}`,
25
- `${s.Background}--${o}`,
26
- x(n),
27
- c
28
- );
29
- return /* @__PURE__ */ p("div", { className: g, ...m, children: e });
30
- };
31
- a.Background = f;
32
- a.Padding = C;
33
- a.TextAlign = P;
34
- export {
35
- a as IressPanel
1
+ import { n as e } from "../../chunk-efA98nb6.js";
2
+ import { t } from "../../classnames-BTnCYmAN.js";
3
+ import { GlobalCSSClass as n, PaddingSize as r, TextAlign as i } from "../../enums.js";
4
+ import { PanelBackground as a, PanelCssClass as o } from "./Panel.types.js";
5
+ import { getResponsivePaddingClasses as s } from "../../helpers/responsive/getResponsivePaddingClasses.js";
6
+ import { jsx as c } from "react/jsx-runtime";
7
+ //#region src/components/Panel/Panel.tsx
8
+ var l = /* @__PURE__ */ e(t(), 1), u = ({ children: e, background: t = "default", noBorderRadius: r, noGutter: i, padding: a = "md", stretch: u, textAlign: d = "inherit", className: f, ...p }) => {
9
+ let m = {
10
+ [o.Stretch]: u,
11
+ [o.NoBorderRadius]: r,
12
+ [o.NoGutter]: i
13
+ };
14
+ return /* @__PURE__ */ c("div", {
15
+ className: (0, l.default)(f, o.Base, `${n.TextAlignBase}--${d}`, `${o.Background}--${t}`, s(a), m),
16
+ ...p,
17
+ children: e
18
+ });
36
19
  };
20
+ u.Background = a, u.Padding = r, u.TextAlign = i;
21
+ //#endregion
22
+ export { u as IressPanel };
@@ -1,12 +1,13 @@
1
- var t = /* @__PURE__ */ ((r) => (r.Background = "iress--background", r.Base = "iress-u-panel", r.NoBorderRadius = "iress--no-border-radius", r.NoGutter = "iress--no-gutter", r.Stretch = "iress--stretch", r))(t || {}), e = /* @__PURE__ */ ((r) => (r.Default = "default", r.Alt = "alt", r.Page = "page", r.Transparent = "transparent", r))(e || {});
2
- const u = [
3
- "default",
4
- "alt",
5
- "page",
6
- "transparent"
1
+ //#region src/components/Panel/Panel.types.ts
2
+ var e = /* @__PURE__ */ function(e) {
3
+ return e.Background = "iress--background", e.Base = "iress-u-panel", e.NoBorderRadius = "iress--no-border-radius", e.NoGutter = "iress--no-gutter", e.Stretch = "iress--stretch", e;
4
+ }({}), t = /* @__PURE__ */ function(e) {
5
+ return e.Default = "default", e.Alt = "alt", e.Page = "page", e.Transparent = "transparent", e;
6
+ }({}), n = [
7
+ "default",
8
+ "alt",
9
+ "page",
10
+ "transparent"
7
11
  ];
8
- export {
9
- u as PANEL_BACKGROUNDS,
10
- e as PanelBackground,
11
- t as PanelCssClass
12
- };
12
+ //#endregion
13
+ export { n as PANEL_BACKGROUNDS, t as PanelBackground, e as PanelCssClass };
@@ -1,8 +1,3 @@
1
- import { PANEL_BACKGROUNDS as s, PanelBackground as a, PanelCssClass as o } from "./Panel.types.js";
2
- import { IressPanel as n } from "./Panel.js";
3
- export {
4
- n as IressPanel,
5
- s as PANEL_BACKGROUNDS,
6
- a as PanelBackground,
7
- o as PanelCssClass
8
- };
1
+ import { PANEL_BACKGROUNDS as e, PanelBackground as t, PanelCssClass as n } from "./Panel.types.js";
2
+ import { IressPanel as r } from "./Panel.js";
3
+ export { r as IressPanel, e as PANEL_BACKGROUNDS, t as PanelBackground, n as PanelCssClass };
@@ -1,42 +1,2 @@
1
- import { jsxs as s, jsx as o } from "react/jsx-runtime";
2
- import { c as m } from "../../index-cbHCAGLB.js";
3
- import { toCSSLengthValue as a } from "../../helpers/formatting/toCSSLengthValue.js";
4
- const x = "ids-placeholder-v5208", u = "ids-placeholder--transparent-v5208", l = {
5
- placeholder: x,
6
- transparent: u
7
- }, f = ({
8
- children: n,
9
- className: c,
10
- height: e = "auto",
11
- stretch: p,
12
- style: t,
13
- transparent: d,
14
- width: r = "auto",
15
- ...h
16
- }) => {
17
- const i = e === "auto" ? p ? "100%" : e : a(e);
18
- return /* @__PURE__ */ s(
19
- "div",
20
- {
21
- className: m(c, l.placeholder, {
22
- [l.transparent]: d
23
- }),
24
- ...h,
25
- style: {
26
- ...t,
27
- width: r ? a(r) : t?.width,
28
- height: i
29
- },
30
- children: [
31
- /* @__PURE__ */ s("svg", { xmlns: "http://www.w3.org/2000/svg", children: [
32
- /* @__PURE__ */ o("line", { x1: "0", y1: "0", x2: "100%", y2: "100%" }),
33
- /* @__PURE__ */ o("line", { x1: "100%", y1: "0", x2: "0", y2: "100%" })
34
- ] }),
35
- n
36
- ]
37
- }
38
- );
39
- };
40
- export {
41
- f as IressPlaceholder
42
- };
1
+ import { t as e } from "../../Placeholder-C1YrHg4w.js";
2
+ export { e as IressPlaceholder };
@@ -1,4 +1,2 @@
1
- import { IressPlaceholder as o } from "./Placeholder.js";
2
- export {
3
- o as IressPlaceholder
4
- };
1
+ import { t as e } from "../../Placeholder-C1YrHg4w.js";
2
+ export { e as IressPlaceholder };
@@ -1,87 +1,51 @@
1
- import { jsx as o, jsxs as j } from "react/jsx-runtime";
2
- import { forwardRef as F } from "react";
3
- import { c as i } from "../../../index-cbHCAGLB.js";
4
- import { GlobalCSSClass as S } from "../../../enums.js";
5
- import { propagateTestid as m } from "../../../helpers/utility/propagateTestid.js";
6
- import { s as r } from "../../../Popover.module-oIsv6lht.js";
7
- import { InputPopoverProvider as W } from "./InputPopoverProvider.js";
8
- import { PopoverContent as b } from "../components/PopoverContent.js";
9
- import { InputPopoverActivator as w } from "./InputPopoverActivator.js";
10
- import { composePopoverWidth as E } from "../helpers/composePopoverWidth.js";
11
- import { NestedPopoverActivator as G } from "../components/NestedPopoverActivator.js";
12
- import { usePopover as R } from "../hooks/usePopover.js";
13
- const k = ({
14
- activator: p,
15
- align: s = "auto",
16
- autoHighlight: v = !0,
17
- children: c,
18
- className: n,
19
- container: d,
20
- contentClassName: l,
21
- defaultShow: f,
22
- disabledAutoToggle: e,
23
- displayMode: a = "overlay",
24
- focusStartIndex: u,
25
- minLength: P,
26
- onActivated: h,
27
- onDeactivated: I,
28
- onNavigate: x,
29
- show: A,
30
- type: N = "listbox",
31
- width: y,
32
- ...t
33
- }, C) => /* @__PURE__ */ o(
34
- W,
35
- {
36
- align: s,
37
- autoHighlight: v,
38
- defaultShow: f,
39
- disabledAutoToggle: e,
40
- matchActivatorWidth: a === "overlay",
41
- onActivated: h,
42
- onDeactivated: I,
43
- onNavigate: x,
44
- ref: C,
45
- type: N,
46
- show: A,
47
- focusStartIndex: u,
48
- children: /* @__PURE__ */ j(
49
- "div",
50
- {
51
- ...t,
52
- className: i(
53
- n,
54
- S.FormElement,
55
- r.popover,
56
- r.hasInputActivator
57
- ),
58
- children: [
59
- /* @__PURE__ */ o(G, { parentPopover: R(), children: /* @__PURE__ */ o(
60
- w,
61
- {
62
- "data-testid": m(t["data-testid"], "activator"),
63
- disabledAutoToggle: e,
64
- minLength: P,
65
- children: p
66
- }
67
- ) }),
68
- /* @__PURE__ */ o(
69
- b,
70
- {
71
- className: i(r.inputActivatorPortal, l),
72
- container: d,
73
- "data-testid": m(t["data-testid"], "content"),
74
- displayMode: a,
75
- style: E(y),
76
- virtualFocus: !0,
77
- children: c
78
- }
79
- )
80
- ]
81
- }
82
- )
83
- }
84
- ), V = F(k);
85
- export {
86
- V as IressInputPopover
87
- };
1
+ import { n as e } from "../../../chunk-efA98nb6.js";
2
+ import { t } from "../../../classnames-BTnCYmAN.js";
3
+ import { GlobalCSSClass as n } from "../../../enums.js";
4
+ import { propagateTestid as r } from "../../../helpers/utility/propagateTestid.js";
5
+ import { t as i } from "../../../Popover.module-6flgSLob.js";
6
+ import { usePopover as a } from "../hooks/usePopover.js";
7
+ import { PopoverContent as o } from "../components/PopoverContent.js";
8
+ import { composePopoverWidth as s } from "../helpers/composePopoverWidth.js";
9
+ import { NestedPopoverActivator as c } from "../components/NestedPopoverActivator.js";
10
+ import { InputPopoverProvider as l } from "./InputPopoverProvider.js";
11
+ import { InputPopoverActivator as u } from "./InputPopoverActivator.js";
12
+ import { forwardRef as d } from "react";
13
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
14
+ //#region src/components/Popover/InputPopover/InputPopover.tsx
15
+ var m = /* @__PURE__ */ e(t(), 1), h = d(({ activator: e, align: t = "auto", autoHighlight: d = !0, children: h, className: g, container: _, contentClassName: v, defaultShow: y, disabledAutoToggle: b, displayMode: x = "overlay", focusStartIndex: S, minLength: C, onActivated: w, onDeactivated: T, onNavigate: E, show: D, type: O = "listbox", width: k, ...A }, j) => /* @__PURE__ */ f(l, {
16
+ align: t,
17
+ autoHighlight: d,
18
+ defaultShow: y,
19
+ disabledAutoToggle: b,
20
+ matchActivatorWidth: x === "overlay",
21
+ onActivated: w,
22
+ onDeactivated: T,
23
+ onNavigate: E,
24
+ ref: j,
25
+ type: O,
26
+ show: D,
27
+ focusStartIndex: S,
28
+ children: /* @__PURE__ */ p("div", {
29
+ ...A,
30
+ className: (0, m.default)(g, n.FormElement, i.popover, i.hasInputActivator),
31
+ children: [/* @__PURE__ */ f(c, {
32
+ parentPopover: a(),
33
+ children: /* @__PURE__ */ f(u, {
34
+ "data-testid": r(A["data-testid"], "activator"),
35
+ disabledAutoToggle: b,
36
+ minLength: C,
37
+ children: e
38
+ })
39
+ }), /* @__PURE__ */ f(o, {
40
+ className: (0, m.default)(i.inputActivatorPortal, v),
41
+ container: _,
42
+ "data-testid": r(A["data-testid"], "content"),
43
+ displayMode: x,
44
+ style: s(k),
45
+ virtualFocus: !0,
46
+ children: h
47
+ })]
48
+ })
49
+ }));
50
+ //#endregion
51
+ export { h as IressInputPopover };
@@ -1,59 +1,51 @@
1
- import { jsx as w } from "react/jsx-runtime";
2
- import { s as C } from "../../../Popover.module-oIsv6lht.js";
3
- import { usePopover as E } from "../hooks/usePopover.js";
4
- import { useCallback as i, cloneElement as R } from "react";
5
- import { hasFocus as P } from "../helpers/hasFocus.js";
6
- import { usePopoverActivatorInteractions as k } from "../hooks/usePopoverActivatorInteractions.js";
7
- const L = ({
8
- children: a,
9
- disabledAutoToggle: s,
10
- minLength: v,
11
- ...f
12
- }) => {
13
- const t = E(), n = a?.props, o = v ?? n.minLength ?? 1, c = "focus", u = i(
14
- (e) => {
15
- const r = e.currentTarget.value;
16
- if (!s) {
17
- const h = r.length >= o;
18
- h && t?.show === !1 ? t.setShowWithReason(!0, e.nativeEvent, c) : !h && t?.show && t.setShowWithReason(!1, e.nativeEvent, c);
19
- }
20
- n.onChange?.(e, r);
21
- },
22
- [n, s, o, t]
23
- ), p = i(
24
- (e) => {
25
- const r = e.currentTarget.value;
26
- n.onClick?.(e), !s && t?.show === !1 && P(e.currentTarget) && r.length >= o && t.setShowWithReason(!0, e.nativeEvent, c);
27
- },
28
- [n, s, o, t]
29
- ), l = i(
30
- (e) => {
31
- n.onFocus?.(e), !s && (!o || e.currentTarget.value.length >= o) && t?.show === !1 && t.setShowWithReason(!0, e.nativeEvent, "focus");
32
- },
33
- [n, s, o, t]
34
- ), m = k(
35
- t,
36
- n
37
- );
38
- return /* @__PURE__ */ w(
39
- "div",
40
- {
41
- ...f,
42
- className: C.activator,
43
- ref: t?.api.refs.setReference,
44
- children: a && t && R(
45
- a,
46
- t.interactions.getReferenceProps({
47
- ...m,
48
- "aria-autocomplete": "list",
49
- onChange: u,
50
- onClick: p,
51
- onFocus: l
52
- })
53
- )
54
- }
55
- );
56
- };
57
- export {
58
- L as InputPopoverActivator
1
+ import { t as e } from "../../../Popover.module-6flgSLob.js";
2
+ import { usePopover as t } from "../hooks/usePopover.js";
3
+ import { usePopoverActivatorInteractions as n } from "../hooks/usePopoverActivatorInteractions.js";
4
+ import { hasFocus as r } from "../helpers/hasFocus.js";
5
+ import { cloneElement as i, useCallback as a } from "react";
6
+ import { jsx as o } from "react/jsx-runtime";
7
+ //#region src/components/Popover/InputPopover/InputPopoverActivator.tsx
8
+ var s = ({ children: s, disabledAutoToggle: c, minLength: l, ...u }) => {
9
+ let d = t(), f = s?.props, p = l ?? f.minLength ?? 1, m = "focus", h = a((e) => {
10
+ let t = e.currentTarget.value;
11
+ if (!c) {
12
+ let n = t.length >= p;
13
+ n && d?.show === !1 ? d.setShowWithReason(!0, e.nativeEvent, m) : !n && d?.show && d.setShowWithReason(!1, e.nativeEvent, m);
14
+ }
15
+ f.onChange?.(e, t);
16
+ }, [
17
+ f,
18
+ c,
19
+ p,
20
+ d
21
+ ]), g = a((e) => {
22
+ let t = e.currentTarget.value;
23
+ f.onClick?.(e), !c && d?.show === !1 && r(e.currentTarget) && t.length >= p && d.setShowWithReason(!0, e.nativeEvent, m);
24
+ }, [
25
+ f,
26
+ c,
27
+ p,
28
+ d
29
+ ]), _ = a((e) => {
30
+ f.onFocus?.(e), !c && (!p || e.currentTarget.value.length >= p) && d?.show === !1 && d.setShowWithReason(!0, e.nativeEvent, "focus");
31
+ }, [
32
+ f,
33
+ c,
34
+ p,
35
+ d
36
+ ]), v = n(d, f);
37
+ return /* @__PURE__ */ o("div", {
38
+ ...u,
39
+ className: e.activator,
40
+ ref: d?.api.refs.setReference,
41
+ children: s && d && i(s, d.interactions.getReferenceProps({
42
+ ...v,
43
+ "aria-autocomplete": "list",
44
+ onChange: h,
45
+ onClick: g,
46
+ onFocus: _
47
+ }))
48
+ });
59
49
  };
50
+ //#endregion
51
+ export { s as InputPopoverActivator };
@@ -1,107 +1,86 @@
1
- import { jsx as S } from "react/jsx-runtime";
2
- import { forwardRef as V, useRef as _, useMemo as P, useCallback as k } from "react";
3
- import { o as q, h as y, s as U, i as $, j as z, k as D, l as G, m as K } from "../../../floating-ui.react-DfIjfJIq.js";
4
- import { POPOVER_USE_MAX_HEIGHT as X } from "../Popover.types.js";
5
- import { usePopoverState as B } from "../hooks/usePopoverState.js";
6
- import { usePopoverNavigation as J } from "../hooks/usePopoverNavigation.js";
7
- import { usePopoverAria as L } from "../hooks/usePopoverAria.js";
8
- import { a as Q } from "../../../PopoverProvider-BMBTLkRr.js";
9
- import { usePopoverImperativeHandle as W } from "../hooks/usePopoverImperativeHandle.js";
10
- import { focusableElements as Y } from "../../../helpers/dom/focusableElements.js";
11
- const Z = V(
12
- ({
13
- align: p,
14
- autoHighlight: h,
15
- children: w,
16
- defaultShow: I,
17
- disabledAutoToggle: c,
18
- focusStartIndex: u,
19
- matchActivatorWidth: l = !0,
20
- onActivated: O,
21
- onDeactivated: g,
22
- onNavigate: F,
23
- show: E,
24
- type: n
25
- }, R) => {
26
- const b = p === "auto", f = _(null), r = B({
27
- defaultShow: I,
28
- show: E
29
- }), A = P(() => {
30
- const e = [q(5), y({ padding: 5 })];
31
- return l && e.push(
32
- U({
33
- apply({ rects: s, availableHeight: t, elements: N }) {
34
- requestAnimationFrame(() => {
35
- Object.assign(N.floating.style, {
36
- width: `${s.reference.width}px`,
37
- maxHeight: t > X ? `${t}px` : void 0
38
- });
39
- });
40
- },
41
- padding: 5
42
- })
43
- ), e;
44
- }, [l]), o = $({
45
- open: r.show,
46
- onOpenChange: (e, s, t) => {
47
- r.setShow(e), e ? O?.(s, t, i) : g?.(s, t, i);
48
- },
49
- middleware: A,
50
- placement: b ? void 0 : p,
51
- whileElementsMounted: z
52
- }), C = D(o.context, {
53
- enabled: !c,
54
- escapeKey: !1
55
- }), M = G(o.context, {
56
- role: n
57
- }), { activeIndex: i, list: v, listNav: j, setActiveIndex: a } = J(
58
- o.context,
59
- n,
60
- {
61
- focusItemOnOpen: h,
62
- virtual: !0
63
- },
64
- F,
65
- u
66
- ), d = K([C, M, j]), m = L(), x = k(() => {
67
- a(u ?? null);
68
- }, [u, a]), H = P(
69
- () => ({
70
- ...m,
71
- ...r,
72
- activeIndex: i,
73
- api: o,
74
- disabledAutoToggle: c,
75
- getFocusableActivator: () => {
76
- const e = o.elements.reference;
77
- return e?.querySelector("[role=combobox]") ?? Y(e)[0];
78
- },
79
- getVirtualFocus: () => f.current,
80
- interactions: d,
81
- list: v,
82
- resetActiveIndex: x,
83
- setActiveIndex: a,
84
- setShowWithReason: (e, s, t) => o.context.onOpenChange(e, s, t),
85
- setVirtualFocus: (e) => f.current = e,
86
- type: n
87
- }),
88
- [
89
- i,
90
- o,
91
- m,
92
- c,
93
- d,
94
- v,
95
- x,
96
- a,
97
- r,
98
- n
99
- ]
100
- );
101
- return W(R, o, m, r), /* @__PURE__ */ S(Q.Provider, { value: H, children: w });
102
- }
103
- );
104
- Z.displayName = "InputPopoverProvider";
105
- export {
106
- Z as InputPopoverProvider
107
- };
1
+ import "../Popover.types.js";
2
+ import { C as e, E as t, S as n, T as r, d as i, g as a, u as o, y as s } from "../../../floating-ui.react-Dj2ev6bJ.js";
3
+ import { usePopoverState as c } from "../hooks/usePopoverState.js";
4
+ import { usePopoverNavigation as l } from "../hooks/usePopoverNavigation.js";
5
+ import { usePopoverAria as u } from "../hooks/usePopoverAria.js";
6
+ import { usePopoverImperativeHandle as d } from "../hooks/usePopoverImperativeHandle.js";
7
+ import { focusableElements as f } from "../../../helpers/dom/focusableElements.js";
8
+ import { t as p } from "../../../PopoverProvider-DgUOscvy.js";
9
+ import { forwardRef as m, useCallback as h, useMemo as g, useRef as _ } from "react";
10
+ import { jsx as v } from "react/jsx-runtime";
11
+ //#region src/components/Popover/InputPopover/InputPopoverProvider.tsx
12
+ var y = m(({ align: m, autoHighlight: y, children: b, defaultShow: x, disabledAutoToggle: S, focusStartIndex: C, matchActivatorWidth: w = !0, onActivated: T, onDeactivated: E, onNavigate: D, show: O, type: k }, A) => {
13
+ let j = m === "auto", M = _(null), N = c({
14
+ defaultShow: x,
15
+ show: O
16
+ }), P = g(() => {
17
+ let t = [e(5), n({ padding: 5 })];
18
+ return w && t.push(r({
19
+ apply({ rects: e, availableHeight: t, elements: n }) {
20
+ requestAnimationFrame(() => {
21
+ Object.assign(n.floating.style, {
22
+ width: `${e.reference.width}px`,
23
+ maxHeight: t > 200 ? `${t}px` : void 0
24
+ });
25
+ });
26
+ },
27
+ padding: 5
28
+ })), t;
29
+ }, [w]), F = i({
30
+ open: N.show,
31
+ onOpenChange: (e, t, n) => {
32
+ N.setShow(e), e ? T?.(t, n, R) : E?.(t, n, R);
33
+ },
34
+ middleware: P,
35
+ placement: j ? void 0 : m,
36
+ whileElementsMounted: t
37
+ }), I = o(F.context, {
38
+ enabled: !S,
39
+ escapeKey: !1
40
+ }), L = s(F.context, { role: k }), { activeIndex: R, list: z, listNav: B, setActiveIndex: V } = l(F.context, k, {
41
+ focusItemOnOpen: y,
42
+ virtual: !0
43
+ }, D, C), H = a([
44
+ I,
45
+ L,
46
+ B
47
+ ]), U = u(), W = h(() => {
48
+ V(C ?? null);
49
+ }, [C, V]), G = g(() => ({
50
+ ...U,
51
+ ...N,
52
+ activeIndex: R,
53
+ api: F,
54
+ disabledAutoToggle: S,
55
+ getFocusableActivator: () => {
56
+ let e = F.elements.reference;
57
+ return e?.querySelector("[role=combobox]") ?? f(e)[0];
58
+ },
59
+ getVirtualFocus: () => M.current,
60
+ interactions: H,
61
+ list: z,
62
+ resetActiveIndex: W,
63
+ setActiveIndex: V,
64
+ setShowWithReason: (e, t, n) => F.context.onOpenChange(e, t, n),
65
+ setVirtualFocus: (e) => M.current = e,
66
+ type: k
67
+ }), [
68
+ R,
69
+ F,
70
+ U,
71
+ S,
72
+ H,
73
+ z,
74
+ W,
75
+ V,
76
+ N,
77
+ k
78
+ ]);
79
+ return d(A, F, U, N), /* @__PURE__ */ v(p.Provider, {
80
+ value: G,
81
+ children: b
82
+ });
83
+ });
84
+ y.displayName = "InputPopoverProvider";
85
+ //#endregion
86
+ export { y as InputPopoverProvider };