@iress-oss/ids-components 5.13.1 → 5.14.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 (220) hide show
  1. package/dist/{AutocompleteNoResults-Bk7q5K89.js → AutocompleteNoResults-BJwn3Csz.js} +1 -1
  2. package/dist/{ComboboxHiddenInput-BRgHrfvH.js → ComboboxHiddenInput-Dgwi3tti.js} +6 -6
  3. package/dist/{FieldAppendToLabel-B7A85TG1.js → FieldAppendToLabel-DOal1Jmq.js} +4 -4
  4. package/dist/{InputBase-K0leqZnv.js → InputBase-DevBiqf2.js} +2 -2
  5. package/dist/Loading.module-CC_6gnKJ.js +13 -0
  6. package/dist/LoadingSuspense-COCIFlsi.js +5692 -0
  7. package/dist/LogoFromSrc-0jeEBge9.js +59 -0
  8. package/dist/MenuItem.module-mlKiHW50.js +24 -0
  9. package/dist/Popover.module-BVX_vz5-.js +11 -0
  10. package/dist/{SelectControl-415DMBPp.js → SelectControl-CrSaqFGs.js} +2 -2
  11. package/dist/{SliderTicks-B6vu-MUH.js → SliderTicks-C2tiJ8Jz.js} +2 -2
  12. package/dist/TabSet.module-BdTRhXdV.js +13 -0
  13. package/dist/Table.module-Dax40UyV.js +32 -0
  14. package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
  15. package/dist/components/Alert/Alert.js +2 -2
  16. package/dist/components/Alert/index.js +1 -1
  17. package/dist/components/Autocomplete/Autocomplete.js +3 -3
  18. package/dist/components/Autocomplete/components/AutocompleteNoResults.js +1 -1
  19. package/dist/components/Autocomplete/index.js +1 -1
  20. package/dist/components/Badge/Badge.js +5 -5
  21. package/dist/components/Button/Button.js +3 -3
  22. package/dist/components/Button/CloseButton/CloseButton.js +2 -2
  23. package/dist/components/Button/index.js +1 -1
  24. package/dist/components/ButtonGroup/ButtonGroup.js +3 -3
  25. package/dist/components/ButtonGroup/hooks/useIDSButtonGroupItem.js +2 -2
  26. package/dist/components/ButtonGroup/index.js +1 -1
  27. package/dist/components/Card/helpers/composeIDSCard.js +1 -1
  28. package/dist/components/Checkbox/Checkbox.js +2 -2
  29. package/dist/components/Checkbox/helpers/mapCheckboxGroupOptions.js +1 -1
  30. package/dist/components/Checkbox/index.js +1 -1
  31. package/dist/components/CheckboxGroup/CheckboxGroup.js +7 -7
  32. package/dist/components/CheckboxMark/CheckboxMark.js +1 -1
  33. package/dist/components/CheckboxMark/CheckboxMark.types.js +2 -2
  34. package/dist/components/Col/Col.js +1 -1
  35. package/dist/components/Combobox/Combobox.js +3 -3
  36. package/dist/components/Combobox/MultiCombobox/MultiCombobox.js +3 -3
  37. package/dist/components/Combobox/components/ComboboxHiddenInput.js +2 -2
  38. package/dist/components/Combobox/components/ComboboxResults.js +6 -6
  39. package/dist/components/Combobox/components/ComboboxResultsDescriptor.js +3 -3
  40. package/dist/components/Combobox/index.js +1 -1
  41. package/dist/components/Container/Container.js +1 -1
  42. package/dist/components/Divider/Divider.js +1 -1
  43. package/dist/components/Expander/Expander.js +2 -2
  44. package/dist/components/Field/Field.js +2 -2
  45. package/dist/components/Field/FieldGroup/FieldGroup.js +3 -3
  46. package/dist/components/Field/components/FieldAppendToLabel.js +4 -4
  47. package/dist/components/Filter/Filter.js +3 -3
  48. package/dist/components/Filter/components/FilterResetButton.js +3 -3
  49. package/dist/components/Filter/components/FilterSearch.js +3 -3
  50. package/dist/components/Filter/index.js +1 -1
  51. package/dist/components/Form/Form.js +1 -1
  52. package/dist/components/Form/FormField/FormField.js +3 -3
  53. package/dist/components/Form/FormField/FormFieldset.js +3 -3
  54. package/dist/components/Form/HookForm/HookForm.js +2 -2
  55. package/dist/components/Form/components/FormValidationSummary.js +1 -1
  56. package/dist/components/Form/index.js +1 -1
  57. package/dist/components/Hide/Hide.js +2 -2
  58. package/dist/components/Hide/helpers/composeHideClasses.js +5 -5
  59. package/dist/components/Hide/index.js +1 -1
  60. package/dist/components/Icon/Icon.js +3 -3
  61. package/dist/components/Icon/index.js +1 -1
  62. package/dist/components/Inline/Inline.js +3 -3
  63. package/dist/components/Inline/index.js +1 -1
  64. package/dist/components/Input/ClearButton/ClearButton.js +1 -1
  65. package/dist/components/Input/Input.js +3 -3
  66. package/dist/components/Input/InputBase/InputBase.js +2 -2
  67. package/dist/components/Input/index.js +1 -1
  68. package/dist/components/InputCurrency/InputCurrency.js +1 -1
  69. package/dist/components/InputCurrency/index.js +1 -1
  70. package/dist/components/Label/LabelBase/LabelBase.js +2 -2
  71. package/dist/components/Menu/Menu.js +1 -1
  72. package/dist/components/Menu/MenuDivider/MenuDivider.js +3 -3
  73. package/dist/components/Menu/MenuHeading/MenuHeading.js +3 -3
  74. package/dist/components/Menu/MenuItem/MenuItem.js +1 -1
  75. package/dist/components/Menu/MenuItem/hooks/useMenuItemButtonProps.js +2 -2
  76. package/dist/components/Menu/MenuItem/hooks/useMenuItemComposite.js +2 -2
  77. package/dist/components/Menu/MenuText/MenuText.js +4 -4
  78. package/dist/components/Menu/helpers/mapMenuItems.js +1 -1
  79. package/dist/components/Menu/hooks/useMenuStyles.js +4 -4
  80. package/dist/components/Menu/index.js +1 -1
  81. package/dist/components/Modal/Modal.js +3 -3
  82. package/dist/components/Modal/hooks/useModal.js +17 -14
  83. package/dist/components/Modal/index.js +1 -1
  84. package/dist/components/Navbar/Navbar.js +3 -3
  85. package/dist/components/Navbar/components/HomeLinkContent.js +2 -2
  86. package/dist/components/Navbar/components/LogoFromSrc.js +1 -1
  87. package/dist/components/Navbar/components/NavbarLogo.js +3 -3
  88. package/dist/components/Navbar/index.js +1 -1
  89. package/dist/components/Panel/Panel.js +1 -1
  90. package/dist/components/Placeholder/Placeholder.js +2 -2
  91. package/dist/components/Popover/InputPopover/InputPopover.js +37 -35
  92. package/dist/components/Popover/InputPopover/InputPopoverActivator.js +1 -1
  93. package/dist/components/Popover/InputPopover/InputPopoverProvider.js +55 -53
  94. package/dist/components/Popover/Popover.js +40 -38
  95. package/dist/components/Popover/PopoverProvider.js +47 -45
  96. package/dist/components/Popover/components/NestedPopoverActivator.js +9 -0
  97. package/dist/components/Popover/components/PopoverActivator.js +2 -2
  98. package/dist/components/Popover/components/PopoverContent.js +3 -3
  99. package/dist/components/Popover/helpers/composeFloatingProps.js +26 -22
  100. package/dist/components/Popover/helpers/handlePopoverTabKey.js +16 -13
  101. package/dist/components/Popover/helpers/waitUntilTrue.js +12 -0
  102. package/dist/components/Popover/hooks/usePopoverActivatorInteractions.js +25 -17
  103. package/dist/components/Popover/hooks/usePopoverItem.js +1 -1
  104. package/dist/components/Popover/hooks/usePopoverNavigation.js +1 -1
  105. package/dist/components/Progress/Progress.js +2 -2
  106. package/dist/components/Radio/Radio.js +2 -2
  107. package/dist/components/Radio/helpers/mapRadioGroupOptions.js +1 -1
  108. package/dist/components/Radio/index.js +1 -1
  109. package/dist/components/RadioGroup/RadioGroup.js +4 -4
  110. package/dist/components/Readonly/Readonly.js +4 -4
  111. package/dist/components/Readonly/index.js +1 -1
  112. package/dist/components/RichSelect/RichSelect.js +2 -2
  113. package/dist/components/RichSelect/SelectBody/SelectBody.js +5 -5
  114. package/dist/components/RichSelect/SelectCreate/SelectCreate.js +3 -3
  115. package/dist/components/RichSelect/SelectHeading/SelectHeading.js +3 -3
  116. package/dist/components/RichSelect/SelectLabel/SelectLabel.js +2 -2
  117. package/dist/components/RichSelect/SelectMenu/SelectMenu.js +3 -3
  118. package/dist/components/RichSelect/SelectMenu/SelectMenuItem.js +3 -3
  119. package/dist/components/RichSelect/SelectSearch/SelectSearch.js +3 -3
  120. package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.js +2 -2
  121. package/dist/components/RichSelect/SelectTags/SelectTags.js +3 -3
  122. package/dist/components/RichSelect/components/SelectActivator.js +1 -1
  123. package/dist/components/RichSelect/components/SelectOptions.js +3 -3
  124. package/dist/components/RichSelect/index.js +1 -1
  125. package/dist/components/Row/Row.js +3 -3
  126. package/dist/components/Row/index.js +1 -1
  127. package/dist/components/Select/Select.js +3 -3
  128. package/dist/components/Select/components/SelectControl.js +2 -2
  129. package/dist/components/Select/components/SelectReadonly.js +3 -3
  130. package/dist/components/Select/helpers/mapSelectOptions.js +1 -1
  131. package/dist/components/Select/helpers/nodesToSelectOptions.js +1 -1
  132. package/dist/components/Select/index.js +1 -1
  133. package/dist/components/Skeleton/Skeleton.js +3 -3
  134. package/dist/components/SkipLink/SkipLink.js +2 -2
  135. package/dist/components/Slideout/Slideout.js +3 -3
  136. package/dist/components/Slideout/components/SlideoutInner.js +2 -2
  137. package/dist/components/Slideout/hooks/useSlideout.js +17 -14
  138. package/dist/components/Slideout/index.js +1 -1
  139. package/dist/components/Slider/Slider.js +3 -3
  140. package/dist/components/Slider/components/SliderTicks.js +2 -2
  141. package/dist/components/Slider/index.js +1 -1
  142. package/dist/components/Spinner/Spinner.js +2 -2
  143. package/dist/components/Spinner/index.js +1 -1
  144. package/dist/components/Stack/Stack.js +1 -1
  145. package/dist/components/TabSet/Tab/Tab.js +2 -2
  146. package/dist/components/TabSet/TabSet.js +3 -3
  147. package/dist/components/TabSet/components/TabSetItem.js +2 -2
  148. package/dist/components/Table/Table.js +3 -3
  149. package/dist/components/Table/TableBody/TableBody.js +16 -16
  150. package/dist/components/Table/components/TableEmpty.js +1 -1
  151. package/dist/components/Table/components/TableHeader.js +1 -1
  152. package/dist/components/Table/components/TableHeaderCell.js +2 -2
  153. package/dist/components/Table/components/TableSortButton.js +4 -4
  154. package/dist/components/Table/hooks/useIDSTableColumnStyles.js +2 -2
  155. package/dist/components/Table/index.js +1 -1
  156. package/dist/components/Tag/Tag.js +2 -2
  157. package/dist/components/Tag/TagInput/TagInput.js +1 -1
  158. package/dist/components/Tag/components/TagListInput/TagListInput.js +2 -2
  159. package/dist/components/Tag/index.js +1 -1
  160. package/dist/components/Text/Text.js +1 -1
  161. package/dist/components/Toaster/Toast/Toast.js +2 -2
  162. package/dist/components/Toaster/Toast/ToastAnimated.js +3 -3
  163. package/dist/components/Toaster/Toast/ToastIcon.js +1 -1
  164. package/dist/components/Toaster/Toaster.js +4 -4
  165. package/dist/components/Toaster/ToasterProvider.js +1 -1
  166. package/dist/components/Toaster/hooks/useToaster.js +1 -1
  167. package/dist/components/Toaster/index.js +1 -1
  168. package/dist/components/Toggle/Toggle.js +4 -4
  169. package/dist/components/Tooltip/Tooltip.js +3 -3
  170. package/dist/components/ValidationMessage/ValidationBase/ValidationBase.js +2 -2
  171. package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +2 -2
  172. package/dist/constants.js +1 -1
  173. package/dist/{floating-ui.react-D_ysmiM3.js → floating-ui.react-RKRjRgyj.js} +972 -961
  174. package/dist/fuzzysort-eoXOpoo6.js +395 -0
  175. package/dist/helpers/label-value/getQueryRangeExclusive.js +1 -1
  176. package/dist/helpers/label-value/highlightQueryInLabel.js +1 -1
  177. package/dist/helpers/label-value/searchLabelValues.js +1 -1
  178. package/dist/index-2QXL0WYc.js +45 -0
  179. package/dist/main.js +309 -308
  180. package/dist/patterns/Loading/Loading.js +4 -3
  181. package/dist/patterns/Loading/LoadingSuspense.js +7 -0
  182. package/dist/patterns/Loading/components/ComponentLoading.js +3 -3
  183. package/dist/patterns/Loading/components/DefaultLoading.js +4 -4
  184. package/dist/patterns/Loading/components/LongLoading.js +132 -0
  185. package/dist/patterns/Loading/components/PageLoading.js +4 -4
  186. package/dist/patterns/Loading/components/StartUpLoading.js +105 -9
  187. package/dist/patterns/Loading/components/ValidateLoading.js +3 -3
  188. package/dist/patterns/Loading/hooks/useEstimatedProgressValue.js +29 -0
  189. package/dist/patterns/Loading/hooks/useShouldRenderLoading.js +19 -15
  190. package/dist/patterns/Loading/hooks/useShowIndicator.js +20 -0
  191. package/dist/patterns/Loading/hooks/useSuspenseResource.js +27 -0
  192. package/dist/patterns/Loading/index.js +3 -2
  193. package/dist/src/components/Popover/Popover.types.d.ts +1 -0
  194. package/dist/src/components/Popover/components/NestedPopoverActivator.d.ts +5 -0
  195. package/dist/src/components/Popover/helpers/handlePopoverTabKey.d.ts +1 -1
  196. package/dist/src/components/Popover/helpers/waitUntilTrue.d.ts +1 -0
  197. package/dist/src/components/RichSelect/RichSelect.types.d.ts +14 -0
  198. package/dist/src/components/RichSelect/components/SelectOptions.d.ts +2 -2
  199. package/dist/src/patterns/Loading/Loading.d.ts +7 -2
  200. package/dist/src/patterns/Loading/LoadingSuspense.d.ts +73 -0
  201. package/dist/src/patterns/Loading/components/LongLoading.d.ts +60 -0
  202. package/dist/src/patterns/Loading/components/StartUpLoading.d.ts +1 -1
  203. package/dist/src/patterns/Loading/hooks/useEstimatedProgressValue.d.ts +11 -0
  204. package/dist/src/patterns/Loading/hooks/useShouldRenderLoading.d.ts +2 -1
  205. package/dist/src/patterns/Loading/hooks/useShowIndicator.d.ts +9 -0
  206. package/dist/src/patterns/Loading/hooks/useSuspenseResource.d.ts +17 -0
  207. package/dist/src/patterns/Loading/index.d.ts +1 -0
  208. package/dist/style.css +1 -1
  209. package/dist/{useIDSButtonGroupItem-Dzgv35ni.js → useIDSButtonGroupItem-DWuujtfY.js} +2 -2
  210. package/package.json +9 -9
  211. package/dist/Loading-CZ64hUvP.js +0 -5638
  212. package/dist/LogoFromSrc-tAhdMB9Y.js +0 -59
  213. package/dist/MenuItem.module-Br0lJU3k.js +0 -24
  214. package/dist/Popover.module-COHnD5HM.js +0 -11
  215. package/dist/StartUpLoading-DpO7RfDY.js +0 -145
  216. package/dist/TabSet.module-Bje9oAao.js +0 -13
  217. package/dist/Table.module-CSNtX5ab.js +0 -32
  218. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  219. package/dist/fuzzysort-CuIReeYY.js +0 -393
  220. package/dist/index-Cu0xwYjD.js +0 -42
@@ -1,47 +1,49 @@
1
1
  import { jsx as o, jsxs as j } from "react/jsx-runtime";
2
2
  import { forwardRef as F } from "react";
3
- import { c as i } from "../../../index-Cu0xwYjD.js";
3
+ import { c as i } from "../../../index-2QXL0WYc.js";
4
4
  import { GlobalCSSClass as S } from "../../../enums.js";
5
5
  import { propagateTestid as m } from "../../../helpers/utility/propagateTestid.js";
6
- import { s as r } from "../../../Popover.module-COHnD5HM.js";
6
+ import { s as r } from "../../../Popover.module-BVX_vz5-.js";
7
7
  import { InputPopoverProvider as W } from "./InputPopoverProvider.js";
8
8
  import { PopoverContent as b } from "../components/PopoverContent.js";
9
9
  import { InputPopoverActivator as w } from "./InputPopoverActivator.js";
10
10
  import { composePopoverWidth as E } from "../helpers/composePopoverWidth.js";
11
- const G = ({
11
+ import { NestedPopoverActivator as G } from "../components/NestedPopoverActivator.js";
12
+ import { usePopover as R } from "../hooks/usePopover.js";
13
+ const k = ({
12
14
  activator: p,
13
15
  align: s = "auto",
14
- autoHighlight: c = !0,
15
- children: v,
16
+ autoHighlight: v = !0,
17
+ children: c,
16
18
  className: n,
17
- container: l,
18
- contentClassName: d,
19
+ container: d,
20
+ contentClassName: l,
19
21
  defaultShow: f,
20
- disabledAutoToggle: a,
21
- displayMode: e = "overlay",
22
+ disabledAutoToggle: e,
23
+ displayMode: a = "overlay",
22
24
  focusStartIndex: u,
23
- minLength: h,
24
- onActivated: I,
25
- onDeactivated: P,
25
+ minLength: P,
26
+ onActivated: h,
27
+ onDeactivated: I,
26
28
  onNavigate: x,
27
- show: y,
28
- type: A = "listbox",
29
- width: C,
29
+ show: A,
30
+ type: N = "listbox",
31
+ width: y,
30
32
  ...t
31
- }, N) => /* @__PURE__ */ o(
33
+ }, C) => /* @__PURE__ */ o(
32
34
  W,
33
35
  {
34
36
  align: s,
35
- autoHighlight: c,
37
+ autoHighlight: v,
36
38
  defaultShow: f,
37
- disabledAutoToggle: a,
38
- matchActivatorWidth: e === "overlay",
39
- onActivated: I,
40
- onDeactivated: P,
39
+ disabledAutoToggle: e,
40
+ matchActivatorWidth: a === "overlay",
41
+ onActivated: h,
42
+ onDeactivated: I,
41
43
  onNavigate: x,
42
- ref: N,
43
- type: A,
44
- show: y,
44
+ ref: C,
45
+ type: N,
46
+ show: A,
45
47
  focusStartIndex: u,
46
48
  children: /* @__PURE__ */ j(
47
49
  "div",
@@ -54,32 +56,32 @@ const G = ({
54
56
  r.hasInputActivator
55
57
  ),
56
58
  children: [
57
- /* @__PURE__ */ o(
59
+ /* @__PURE__ */ o(G, { parentPopover: R(), children: /* @__PURE__ */ o(
58
60
  w,
59
61
  {
60
62
  "data-testid": m(t["data-testid"], "activator"),
61
- disabledAutoToggle: a,
62
- minLength: h,
63
+ disabledAutoToggle: e,
64
+ minLength: P,
63
65
  children: p
64
66
  }
65
- ),
67
+ ) }),
66
68
  /* @__PURE__ */ o(
67
69
  b,
68
70
  {
69
- className: i(r.inputActivatorPortal, d),
70
- container: l,
71
+ className: i(r.inputActivatorPortal, l),
72
+ container: d,
71
73
  "data-testid": m(t["data-testid"], "content"),
72
- displayMode: e,
73
- style: E(C),
74
+ displayMode: a,
75
+ style: E(y),
74
76
  virtualFocus: !0,
75
- children: v
77
+ children: c
76
78
  }
77
79
  )
78
80
  ]
79
81
  }
80
82
  )
81
83
  }
82
- ), O = F(G);
84
+ ), V = F(k);
83
85
  export {
84
- O as IressInputPopover
86
+ V as IressInputPopover
85
87
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as E } from "react/jsx-runtime";
2
- import { s as R } from "../../../Popover.module-COHnD5HM.js";
2
+ import { s as R } from "../../../Popover.module-BVX_vz5-.js";
3
3
  import { usePopover as k } from "../hooks/usePopover.js";
4
4
  import { useCallback as f, cloneElement as F } from "react";
5
5
  import { hasFocus as S } from "../helpers/hasFocus.js";
@@ -1,101 +1,103 @@
1
- import { jsx as H } from "react/jsx-runtime";
2
- import { forwardRef as N, useRef as V, useMemo as d } from "react";
3
- import { o as _, f as q, c as y, d as U, j as $, g as z, h as G, i as K } from "../../../floating-ui.react-D_ysmiM3.js";
4
- import { POPOVER_USE_MAX_HEIGHT as X } from "../Popover.types.js";
5
- import { usePopoverState as k } from "../hooks/usePopoverState.js";
6
- import { usePopoverNavigation as B } from "../hooks/usePopoverNavigation.js";
7
- import { usePopoverAria as J } from "../hooks/usePopoverAria.js";
8
- import { PopoverContext as L } from "../PopoverProvider.js";
9
- import { usePopoverImperativeHandle as Q } from "../hooks/usePopoverImperativeHandle.js";
10
- import { focusableElements as W } from "../../../helpers/dom/focusableElements.js";
11
- const Y = N(
1
+ import { jsx as N } from "react/jsx-runtime";
2
+ import { forwardRef as V, useRef as _, useMemo as h } from "react";
3
+ import { o as q, f as y, c as U, d as $, j as z, g as G, h as K, i as X } from "../../../floating-ui.react-RKRjRgyj.js";
4
+ import { POPOVER_USE_MAX_HEIGHT as k } 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 { PopoverContext as Q } from "../PopoverProvider.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
12
  ({
13
13
  align: c,
14
- autoHighlight: h,
14
+ autoHighlight: v,
15
15
  children: w,
16
- defaultShow: v,
16
+ defaultShow: I,
17
17
  disabledAutoToggle: u,
18
18
  focusStartIndex: g,
19
19
  matchActivatorWidth: l = !0,
20
20
  onActivated: a,
21
21
  onDeactivated: m,
22
- onNavigate: I,
23
- show: O,
22
+ onNavigate: O,
23
+ show: F,
24
24
  type: n
25
- }, F) => {
26
- const E = c === "auto", f = V(null), t = k({
27
- defaultShow: v,
28
- show: O
29
- }), R = d(() => {
30
- const o = [_(5), q({ padding: 5 })];
31
- return l && o.push(
32
- y({
33
- apply({ rects: r, availableHeight: s, elements: C }) {
25
+ }, E) => {
26
+ const R = c === "auto", f = _(null), r = B({
27
+ defaultShow: I,
28
+ show: F
29
+ }), S = h(() => {
30
+ const e = [q(5), y({ padding: 5 })];
31
+ return l && e.push(
32
+ U({
33
+ apply({ rects: t, availableHeight: s, elements: H }) {
34
34
  requestAnimationFrame(() => {
35
- Object.assign(C.floating.style, {
36
- width: `${r.reference.width}px`,
37
- maxHeight: s > X ? `${s}px` : void 0
35
+ Object.assign(H.floating.style, {
36
+ width: `${t.reference.width}px`,
37
+ maxHeight: s > k ? `${s}px` : void 0
38
38
  });
39
39
  });
40
40
  },
41
41
  padding: 5
42
42
  })
43
- ), o;
44
- }, [l]), e = U({
45
- open: t.show,
46
- onOpenChange: (o, r, s) => {
47
- t.setShow(o), o ? a == null || a(r, s, i) : m == null || m(r, s, i);
43
+ ), e;
44
+ }, [l]), o = $({
45
+ open: r.show,
46
+ onOpenChange: (e, t, s) => {
47
+ r.setShow(e), e ? a == null || a(t, s, i) : m == null || m(t, s, i);
48
48
  },
49
- middleware: R,
50
- placement: E ? void 0 : c,
51
- whileElementsMounted: $
52
- }), S = z(e.context, {
49
+ middleware: S,
50
+ placement: R ? void 0 : c,
51
+ whileElementsMounted: z
52
+ }), M = G(o.context, {
53
53
  enabled: !u,
54
54
  escapeKey: !1
55
- }), M = G(e.context, {
55
+ }), b = K(o.context, {
56
56
  role: n
57
- }), { activeIndex: i, list: x, listNav: b } = B(
58
- e.context,
57
+ }), { activeIndex: i, list: x, listNav: j, setActiveIndex: d } = J(
58
+ o.context,
59
59
  n,
60
60
  {
61
- focusItemOnOpen: h,
61
+ focusItemOnOpen: v,
62
62
  virtual: !0
63
63
  },
64
- I,
64
+ O,
65
65
  g
66
- ), P = K([S, M, b]), p = J(), j = d(
66
+ ), P = X([M, b, j]), p = L(), C = h(
67
67
  () => ({
68
68
  ...p,
69
- ...t,
69
+ ...r,
70
70
  activeIndex: i,
71
- api: e,
71
+ api: o,
72
72
  disabledAutoToggle: u,
73
73
  getFocusableActivator: () => {
74
- const o = e.elements.reference;
75
- return (o == null ? void 0 : o.querySelector("[role=combobox]")) ?? W(o)[0];
74
+ const e = o.elements.reference;
75
+ return (e == null ? void 0 : e.querySelector("[role=combobox]")) ?? Y(e)[0];
76
76
  },
77
77
  getVirtualFocus: () => f.current,
78
78
  interactions: P,
79
79
  list: x,
80
- setShowWithReason: (o, r, s) => e.context.onOpenChange(o, r, s),
81
- setVirtualFocus: (o) => f.current = o,
80
+ setActiveIndex: d,
81
+ setShowWithReason: (e, t, s) => o.context.onOpenChange(e, t, s),
82
+ setVirtualFocus: (e) => f.current = e,
82
83
  type: n
83
84
  }),
84
85
  [
85
86
  i,
86
- e,
87
+ o,
87
88
  p,
88
89
  u,
89
90
  P,
90
91
  x,
91
- t,
92
+ d,
93
+ r,
92
94
  n
93
95
  ]
94
96
  );
95
- return Q(F, e, p, t), /* @__PURE__ */ H(L.Provider, { value: j, children: w });
97
+ return W(E, o, p, r), /* @__PURE__ */ N(Q.Provider, { value: C, children: w });
96
98
  }
97
99
  );
98
- Y.displayName = "InputPopoverProvider";
100
+ Z.displayName = "InputPopoverProvider";
99
101
  export {
100
- Y as InputPopoverProvider
102
+ Z as InputPopoverProvider
101
103
  };
@@ -1,81 +1,83 @@
1
- import { jsx as t, jsxs as I } from "react/jsx-runtime";
2
- import { forwardRef as N, useRef as W } from "react";
3
- import { c as j } from "../../index-Cu0xwYjD.js";
1
+ import { jsx as t, jsxs as C } from "react/jsx-runtime";
2
+ import { forwardRef as I, useRef as W } from "react";
3
+ import { c as j } from "../../index-2QXL0WYc.js";
4
4
  import { PopoverType as R } from "./Popover.types.js";
5
5
  import { FloatingUIAlign as S, GlobalCSSClass as b } from "../../enums.js";
6
6
  import { idsLogger as k } from "../../helpers/utility/idsLogger.js";
7
- import { propagateTestid as a } from "../../helpers/utility/propagateTestid.js";
8
- import { s as E } from "../../Popover.module-COHnD5HM.js";
7
+ import { propagateTestid as s } from "../../helpers/utility/propagateTestid.js";
8
+ import { s as E } from "../../Popover.module-BVX_vz5-.js";
9
9
  import { PopoverProvider as F } from "./PopoverProvider.js";
10
10
  import { PopoverActivator as G } from "./components/PopoverActivator.js";
11
11
  import { PopoverContent as L } from "./components/PopoverContent.js";
12
12
  import { composePopoverWidth as U } from "./helpers/composePopoverWidth.js";
13
- const q = ({
13
+ import { usePopover as q } from "./hooks/usePopover.js";
14
+ import { NestedPopoverActivator as z } from "./components/NestedPopoverActivator.js";
15
+ const B = ({
14
16
  activator: p,
15
17
  align: d = "auto",
16
18
  children: n,
17
- className: l,
18
- container: c,
19
- contentClassName: f,
20
- defaultShow: v,
19
+ className: c,
20
+ container: l,
21
+ contentClassName: v,
22
+ defaultShow: f,
21
23
  disabledAutoToggle: h,
22
24
  displayMode: e = "overlay",
23
- focusStartIndex: g,
24
- matchActivatorWidth: P,
25
+ focusStartIndex: P,
26
+ matchActivatorWidth: g,
25
27
  onActivated: y,
26
28
  onDeactivated: A,
27
- onNavigate: x,
28
- type: T,
29
- show: u,
29
+ onNavigate: u,
30
+ type: x,
31
+ show: N,
30
32
  width: r,
31
33
  virtualFocus: i,
32
34
  ...o
33
- }, w) => {
34
- const C = W(null), s = P && e === "overlay";
35
+ }, T) => {
36
+ const w = W(null), m = g && e === "overlay";
35
37
  return r !== void 0 && k(
36
38
  "IressPopover: The width prop is deprecated. Please use the --iress-width and --iress-max-width design token instead."
37
39
  ), /* @__PURE__ */ t(
38
40
  F,
39
41
  {
40
42
  align: d,
41
- defaultShow: v,
43
+ defaultShow: f,
42
44
  disabledAutoToggle: h,
43
- focusStartIndex: g,
44
- matchActivatorWidth: s,
45
+ focusStartIndex: P,
46
+ matchActivatorWidth: m,
45
47
  onActivated: y,
46
48
  onDeactivated: A,
47
- onNavigate: x,
48
- ref: w,
49
- show: u,
50
- type: T,
49
+ onNavigate: u,
50
+ ref: T,
51
+ show: N,
52
+ type: x,
51
53
  virtualFocus: i,
52
- children: /* @__PURE__ */ I(
54
+ children: /* @__PURE__ */ C(
53
55
  "div",
54
56
  {
55
57
  ...o,
56
58
  className: j(
57
- l,
59
+ c,
58
60
  b.FormElement,
59
61
  E.popover
60
62
  ),
61
- ref: C,
63
+ ref: w,
62
64
  children: [
63
- /* @__PURE__ */ t(
65
+ /* @__PURE__ */ t(z, { parentPopover: q(), children: /* @__PURE__ */ t(
64
66
  G,
65
67
  {
66
- "data-testid": a(o["data-testid"], "activator"),
68
+ "data-testid": s(o["data-testid"], "activator"),
67
69
  children: p
68
70
  }
69
- ),
71
+ ) }),
70
72
  /* @__PURE__ */ t(
71
73
  L,
72
74
  {
73
- className: f,
74
- container: c,
75
- "data-testid": a(o["data-testid"], "content"),
75
+ className: v,
76
+ container: l,
77
+ "data-testid": s(o["data-testid"], "content"),
76
78
  displayMode: e,
77
79
  style: {
78
- ...U(r, s),
80
+ ...U(r, m),
79
81
  ...o.style
80
82
  },
81
83
  virtualFocus: i,
@@ -87,9 +89,9 @@ const q = ({
87
89
  )
88
90
  }
89
91
  );
90
- }, m = N(q);
91
- m.Align = S;
92
- m.Type = R;
92
+ }, a = I(B);
93
+ a.Align = S;
94
+ a.Type = R;
93
95
  export {
94
- m as IressPopover
96
+ a as IressPopover
95
97
  };
@@ -1,93 +1,94 @@
1
- import { jsx as V } from "react/jsx-runtime";
2
- import { createContext as _, forwardRef as k, useRef as q, useMemo as f } from "react";
3
- import { o as U, b as $, f as y, s as z, c as G, d as X, e as B, g as J, h as K, i as L, j as Q } from "../../floating-ui.react-D_ysmiM3.js";
4
- import { POPOVER_USE_MAX_HEIGHT as W } from "./Popover.types.js";
5
- import { usePopoverState as Y } from "./hooks/usePopoverState.js";
6
- import { usePopoverNavigation as Z } from "./hooks/usePopoverNavigation.js";
1
+ import { jsx as _ } from "react/jsx-runtime";
2
+ import { createContext as k, forwardRef as q, useRef as U, useMemo as f } from "react";
3
+ import { o as $, b as y, f as z, s as G, c as X, d as B, e as J, g as K, h as L, i as Q, j as W } from "../../floating-ui.react-RKRjRgyj.js";
4
+ import { POPOVER_USE_MAX_HEIGHT as Y } from "./Popover.types.js";
5
+ import { usePopoverState as Z } from "./hooks/usePopoverState.js";
6
+ import { usePopoverNavigation as A } from "./hooks/usePopoverNavigation.js";
7
7
  import { usePopoverAria as T } from "./hooks/usePopoverAria.js";
8
- import { usePopoverImperativeHandle as A } from "./hooks/usePopoverImperativeHandle.js";
9
- import { focusableElements as D } from "../../helpers/dom/focusableElements.js";
10
- const ee = _(
8
+ import { usePopoverImperativeHandle as D } from "./hooks/usePopoverImperativeHandle.js";
9
+ import { focusableElements as ee } from "../../helpers/dom/focusableElements.js";
10
+ const oe = k(
11
11
  void 0
12
- ), oe = k(
12
+ ), te = q(
13
13
  ({
14
14
  align: x,
15
- children: C,
15
+ children: I,
16
16
  defaultShow: E,
17
17
  disabledAutoToggle: n,
18
- focusStartIndex: I,
18
+ focusStartIndex: R,
19
19
  matchActivatorWidth: P,
20
20
  onActivated: c,
21
21
  onDeactivated: m,
22
- onNavigate: R,
22
+ onNavigate: S,
23
23
  type: i,
24
- show: S,
24
+ show: b,
25
25
  virtualFocus: u
26
- }, b) => {
27
- const p = x === "auto", h = q(null), r = Y({
26
+ }, g) => {
27
+ const p = x === "auto", h = U(null), r = Z({
28
28
  defaultShow: E,
29
- show: S
30
- }), g = f(() => {
29
+ show: b
30
+ }), M = f(() => {
31
31
  const e = [
32
- U(5),
33
- p ? $() : y(),
34
- z()
32
+ $(5),
33
+ p ? y() : z(),
34
+ G()
35
35
  ];
36
36
  return P && e.push(
37
- G({
38
- apply({ rects: s, availableHeight: t, elements: H }) {
37
+ X({
38
+ apply({ rects: s, availableHeight: t, elements: V }) {
39
39
  requestAnimationFrame(() => {
40
- Object.assign(H.floating.style, {
40
+ Object.assign(V.floating.style, {
41
41
  width: `${s.reference.width}px`,
42
- maxHeight: t > W ? `${t}px` : void 0
42
+ maxHeight: t > Y ? `${t}px` : void 0
43
43
  });
44
44
  });
45
45
  },
46
46
  padding: 5
47
47
  })
48
48
  ), e;
49
- }, [p, P]), o = X({
49
+ }, [p, P]), o = B({
50
50
  open: r.show,
51
51
  onOpenChange: (e, s, t) => {
52
52
  r.setShow(e), e ? c == null || c(s, t, a) : m == null || m(s, t, a);
53
53
  },
54
- middleware: g,
54
+ middleware: M,
55
55
  placement: p ? void 0 : x,
56
- whileElementsMounted: Q
57
- }), M = B(o.context, {
58
- enabled: !n
56
+ whileElementsMounted: W
59
57
  }), N = J(o.context, {
60
58
  enabled: !n
61
59
  }), j = K(o.context, {
60
+ enabled: !n
61
+ }), F = L(o.context, {
62
62
  role: i
63
- }), { activeIndex: a, list: w, listNav: F } = Z(
63
+ }), { activeIndex: a, list: d, listNav: H, setActiveIndex: v } = A(
64
64
  o.context,
65
65
  i,
66
66
  {
67
67
  focusItemOnOpen: !0,
68
68
  virtual: u
69
69
  },
70
- R,
71
- I
72
- ), l = T(), d = L([M, N, j, F]), v = f(() => u ? {
70
+ S,
71
+ R
72
+ ), l = T(), w = Q([N, j, F, H]), O = f(() => u ? {
73
73
  getVirtualFocus: () => h.current,
74
74
  setVirtualFocus: (e) => {
75
75
  h.current = e;
76
76
  }
77
- } : {}, [u]), O = f(
77
+ } : {}, [u]), C = f(
78
78
  () => ({
79
79
  ...l,
80
80
  ...r,
81
- ...v,
81
+ ...O,
82
82
  api: o,
83
83
  activeIndex: a,
84
84
  disabledAutoToggle: n,
85
85
  getFocusableActivator: () => {
86
86
  const e = o.elements.reference;
87
- return (e == null ? void 0 : e.querySelector("[role=combobox]")) ?? D(e)[0];
87
+ return (e == null ? void 0 : e.querySelector("[role=combobox]")) ?? ee(e)[0];
88
88
  },
89
- interactions: d,
90
- list: w,
89
+ interactions: w,
90
+ list: d,
91
+ setActiveIndex: v,
91
92
  setShowWithReason: (e, s, t) => o.context.onOpenChange(e, s, t),
92
93
  type: i
93
94
  }),
@@ -96,18 +97,19 @@ const ee = _(
96
97
  o,
97
98
  l,
98
99
  n,
99
- d,
100
100
  w,
101
+ d,
102
+ v,
101
103
  r,
102
104
  i,
103
- v
105
+ O
104
106
  ]
105
107
  );
106
- return A(b, o, l, r, O), /* @__PURE__ */ V(ee.Provider, { value: O, children: C });
108
+ return D(g, o, l, r, C), /* @__PURE__ */ _(oe.Provider, { value: C, children: I });
107
109
  }
108
110
  );
109
- oe.displayName = "PopoverProvider";
111
+ te.displayName = "PopoverProvider";
110
112
  export {
111
- ee as PopoverContext,
112
- oe as PopoverProvider
113
+ oe as PopoverContext,
114
+ te as PopoverProvider
113
115
  };
@@ -0,0 +1,9 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { p as e } from "../../../floating-ui.react-RKRjRgyj.js";
3
+ const m = ({
4
+ children: t,
5
+ parentPopover: o
6
+ }) => o ? /* @__PURE__ */ r(e, { elementsRef: o.list, children: t }) : t;
7
+ export {
8
+ m as NestedPopoverActivator
9
+ };
@@ -1,11 +1,11 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
- import { s as u } from "../../../Popover.module-COHnD5HM.js";
2
+ import { s as u } from "../../../Popover.module-BVX_vz5-.js";
3
3
  import { PopoverCssClass as l } from "../Popover.types.js";
4
4
  import { usePopover as m } from "../hooks/usePopover.js";
5
5
  import { useRef as A, useMemo as g, useEffect as b } from "react";
6
6
  import { focusableElements as v } from "../../../helpers/dom/focusableElements.js";
7
7
  import { usePopoverActivatorInteractions as T } from "../hooks/usePopoverActivatorInteractions.js";
8
- import { c as x } from "../../../index-Cu0xwYjD.js";
8
+ import { c as x } from "../../../index-2QXL0WYc.js";
9
9
  const P = [
10
10
  "aria-controls",
11
11
  "aria-expanded",
@@ -1,8 +1,8 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { c } from "../../../index-Cu0xwYjD.js";
3
- import { s as m } from "../../../Popover.module-COHnD5HM.js";
2
+ import { c } from "../../../index-2QXL0WYc.js";
3
+ import { s as m } from "../../../Popover.module-BVX_vz5-.js";
4
4
  import { usePopover as F } from "../hooks/usePopover.js";
5
- import { k as g, F as h, l as p, m as i, n as P, p as I, q as N } from "../../../floating-ui.react-D_ysmiM3.js";
5
+ import { k as g, F as h, l as p, m as i, n as P, p as I, q as N } from "../../../floating-ui.react-RKRjRgyj.js";
6
6
  import { composePopoverFloatingProps as x } from "../helpers/composeFloatingProps.js";
7
7
  const l = ({
8
8
  children: e,