@iress-oss/ids-components 5.15.0 → 5.15.2

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 (187) hide show
  1. package/README.md +1 -1
  2. package/dist/{AutocompleteNoResults-CvhIxKQI.js → AutocompleteNoResults-DmkoqKJm.js} +1 -1
  3. package/dist/{ComboboxHiddenInput-B7ztqo0l.js → ComboboxHiddenInput-CLb6Xp8s.js} +5 -5
  4. package/dist/{FieldAppendToLabel-DgXoSKDG.js → FieldAppendToLabel-Dw0Mn-US.js} +3 -3
  5. package/dist/{InputBase-nWIFJcGj.js → InputBase-55eUCLgT.js} +1 -1
  6. package/dist/Loading.module-DUh3NIWC.js +13 -0
  7. package/dist/{LoadingSuspense-BdXYIsHy.js → LoadingSuspense-BMFBqvXJ.js} +1357 -1367
  8. package/dist/LogoFromSrc-7tFjDtcF.js +59 -0
  9. package/dist/MenuItem.module-bTAQrrT3.js +24 -0
  10. package/dist/Popover.module-Ct33fXgT.js +11 -0
  11. package/dist/PopoverProvider-BAhkQIhz.js +137 -0
  12. package/dist/{SelectControl-CYKkf3rM.js → SelectControl-BbirMx9B.js} +1 -1
  13. package/dist/{SliderTicks-Dqz-k-xS.js → SliderTicks-Jb0VVHsB.js} +1 -1
  14. package/dist/TabSet.module-z2bbww8p.js +13 -0
  15. package/dist/Table.module-DNbVlA6R.js +32 -0
  16. package/dist/components/Alert/Alert.js +1 -1
  17. package/dist/components/Alert/index.js +1 -1
  18. package/dist/components/Autocomplete/Autocomplete.js +3 -3
  19. package/dist/components/Autocomplete/components/AutocompleteNoResults.js +1 -1
  20. package/dist/components/Autocomplete/index.js +1 -1
  21. package/dist/components/Badge/Badge.js +4 -4
  22. package/dist/components/Button/Button.js +2 -2
  23. package/dist/components/Button/CloseButton/CloseButton.js +1 -1
  24. package/dist/components/Button/index.js +1 -1
  25. package/dist/components/ButtonGroup/ButtonGroup.js +2 -2
  26. package/dist/components/ButtonGroup/hooks/useIDSButtonGroupItem.js +1 -1
  27. package/dist/components/ButtonGroup/index.js +1 -1
  28. package/dist/components/Checkbox/Checkbox.js +1 -1
  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 +6 -6
  32. package/dist/components/CheckboxMark/CheckboxMark.types.js +2 -2
  33. package/dist/components/Combobox/Combobox.js +3 -3
  34. package/dist/components/Combobox/MultiCombobox/MultiCombobox.js +3 -3
  35. package/dist/components/Combobox/components/ComboboxHiddenInput.js +1 -1
  36. package/dist/components/Combobox/components/ComboboxResults.js +4 -4
  37. package/dist/components/Combobox/components/ComboboxResultsDescriptor.js +2 -2
  38. package/dist/components/Combobox/index.js +1 -1
  39. package/dist/components/Expander/Expander.js +1 -1
  40. package/dist/components/Field/Field.js +1 -1
  41. package/dist/components/Field/FieldGroup/FieldGroup.js +2 -2
  42. package/dist/components/Field/components/FieldAppendToLabel.js +3 -3
  43. package/dist/components/Filter/Filter.js +3 -3
  44. package/dist/components/Filter/components/FilterResetButton.js +2 -2
  45. package/dist/components/Filter/components/FilterSearch.js +2 -2
  46. package/dist/components/Filter/index.js +1 -1
  47. package/dist/components/Form/Form.js +1 -1
  48. package/dist/components/Form/FormField/FormField.js +2 -2
  49. package/dist/components/Form/FormField/FormFieldset.js +2 -2
  50. package/dist/components/Form/HookForm/HookForm.js +1 -1
  51. package/dist/components/Form/index.js +1 -1
  52. package/dist/components/Hide/Hide.js +1 -1
  53. package/dist/components/Hide/helpers/composeHideClasses.js +2 -2
  54. package/dist/components/Hide/index.js +1 -1
  55. package/dist/components/Icon/Icon.js +2 -2
  56. package/dist/components/Icon/index.js +1 -1
  57. package/dist/components/Inline/Inline.js +2 -2
  58. package/dist/components/Inline/index.js +1 -1
  59. package/dist/components/Input/ClearButton/ClearButton.js +1 -1
  60. package/dist/components/Input/Input.js +2 -2
  61. package/dist/components/Input/InputBase/InputBase.js +1 -1
  62. package/dist/components/Input/index.js +1 -1
  63. package/dist/components/InputCurrency/InputCurrency.js +1 -1
  64. package/dist/components/InputCurrency/index.js +1 -1
  65. package/dist/components/Label/LabelBase/LabelBase.js +1 -1
  66. package/dist/components/Menu/Menu.js +1 -1
  67. package/dist/components/Menu/MenuDivider/MenuDivider.js +2 -2
  68. package/dist/components/Menu/MenuHeading/MenuHeading.js +2 -2
  69. package/dist/components/Menu/MenuItem/MenuItem.js +1 -1
  70. package/dist/components/Menu/MenuItem/hooks/useMenuItemButtonProps.js +1 -1
  71. package/dist/components/Menu/MenuItem/hooks/useMenuItemComposite.js +2 -2
  72. package/dist/components/Menu/MenuText/MenuText.js +3 -3
  73. package/dist/components/Menu/helpers/mapMenuItems.js +1 -1
  74. package/dist/components/Menu/hooks/useMenuStyles.js +3 -3
  75. package/dist/components/Menu/index.js +1 -1
  76. package/dist/components/Modal/Modal.js +2 -2
  77. package/dist/components/Modal/index.js +1 -1
  78. package/dist/components/Navbar/Navbar.js +2 -2
  79. package/dist/components/Navbar/components/HomeLinkContent.js +2 -2
  80. package/dist/components/Navbar/components/LogoFromSrc.js +1 -1
  81. package/dist/components/Navbar/components/NavbarLogo.js +2 -2
  82. package/dist/components/Navbar/index.js +1 -1
  83. package/dist/components/Placeholder/Placeholder.js +1 -1
  84. package/dist/components/Popover/InputPopover/InputPopover.js +1 -1
  85. package/dist/components/Popover/InputPopover/InputPopoverActivator.js +1 -1
  86. package/dist/components/Popover/InputPopover/InputPopoverProvider.js +23 -23
  87. package/dist/components/Popover/Popover.js +12 -12
  88. package/dist/components/Popover/PopoverProvider.js +12 -113
  89. package/dist/components/Popover/components/NestedPopoverActivator.js +3 -3
  90. package/dist/components/Popover/components/PopoverActivator.js +40 -41
  91. package/dist/components/Popover/components/PopoverContent.js +15 -15
  92. package/dist/components/Popover/helpers/handlePopoverTabKey.js +1 -1
  93. package/dist/components/Popover/hooks/usePopover.js +1 -1
  94. package/dist/components/Popover/hooks/usePopoverItem.js +1 -1
  95. package/dist/components/Popover/hooks/usePopoverNavigation.js +1 -1
  96. package/dist/components/Progress/Progress.js +1 -1
  97. package/dist/components/Provider/Provider.js +1 -1
  98. package/dist/components/Radio/Radio.js +1 -1
  99. package/dist/components/Radio/helpers/mapRadioGroupOptions.js +1 -1
  100. package/dist/components/Radio/index.js +1 -1
  101. package/dist/components/RadioGroup/RadioGroup.js +3 -3
  102. package/dist/components/Readonly/Readonly.js +3 -3
  103. package/dist/components/Readonly/index.js +1 -1
  104. package/dist/components/RichSelect/RichSelect.js +2 -2
  105. package/dist/components/RichSelect/SelectBody/SelectBody.js +2 -2
  106. package/dist/components/RichSelect/SelectCreate/SelectCreate.js +2 -2
  107. package/dist/components/RichSelect/SelectHeading/SelectHeading.js +2 -2
  108. package/dist/components/RichSelect/SelectLabel/SelectLabel.js +1 -1
  109. package/dist/components/RichSelect/SelectMenu/SelectMenu.js +2 -2
  110. package/dist/components/RichSelect/SelectMenu/SelectMenuItem.js +2 -2
  111. package/dist/components/RichSelect/SelectSearch/SelectSearch.js +1 -1
  112. package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.js +1 -1
  113. package/dist/components/RichSelect/SelectTags/SelectTags.js +1 -1
  114. package/dist/components/RichSelect/components/SelectActivator.js +1 -1
  115. package/dist/components/RichSelect/components/SelectOptions.js +2 -2
  116. package/dist/components/RichSelect/index.js +1 -1
  117. package/dist/components/Row/Row.js +2 -2
  118. package/dist/components/Row/index.js +1 -1
  119. package/dist/components/Select/Select.js +2 -2
  120. package/dist/components/Select/components/SelectControl.js +1 -1
  121. package/dist/components/Select/components/SelectReadonly.js +2 -2
  122. package/dist/components/Select/helpers/mapSelectOptions.js +1 -1
  123. package/dist/components/Select/helpers/nodesToSelectOptions.js +1 -1
  124. package/dist/components/Select/index.js +1 -1
  125. package/dist/components/Skeleton/Skeleton.js +2 -2
  126. package/dist/components/SkipLink/SkipLink.js +1 -1
  127. package/dist/components/Slideout/Slideout.js +4 -3
  128. package/dist/components/Slideout/components/SlideoutInner.js +3 -2
  129. package/dist/components/Slideout/index.js +1 -1
  130. package/dist/components/Slider/Slider.js +2 -2
  131. package/dist/components/Slider/components/SliderTicks.js +1 -1
  132. package/dist/components/Slider/index.js +1 -1
  133. package/dist/components/Spinner/Spinner.js +1 -1
  134. package/dist/components/Spinner/index.js +1 -1
  135. package/dist/components/TabSet/Tab/Tab.js +1 -1
  136. package/dist/components/TabSet/TabSet.js +2 -2
  137. package/dist/components/TabSet/components/TabSetItem.js +2 -2
  138. package/dist/components/Table/Table.js +2 -2
  139. package/dist/components/Table/TableBody/TableBody.js +2 -2
  140. package/dist/components/Table/components/TableEmpty.js +1 -1
  141. package/dist/components/Table/components/TableHeader.js +1 -1
  142. package/dist/components/Table/components/TableHeaderCell.js +1 -1
  143. package/dist/components/Table/components/TableSortButton.js +2 -2
  144. package/dist/components/Table/hooks/useIDSTableColumnStyles.js +1 -1
  145. package/dist/components/Table/index.js +1 -1
  146. package/dist/components/Tag/Tag.js +1 -1
  147. package/dist/components/Tag/TagInput/TagInput.js +1 -1
  148. package/dist/components/Tag/components/TagListInput/TagListInput.js +1 -1
  149. package/dist/components/Tag/index.js +1 -1
  150. package/dist/components/Toaster/Toast/Toast.js +1 -1
  151. package/dist/components/Toaster/Toast/ToastAnimated.js +2 -2
  152. package/dist/components/Toaster/Toast/ToastIcon.js +1 -1
  153. package/dist/components/Toaster/Toaster.js +2 -2
  154. package/dist/components/Toaster/ToasterProvider.js +1 -1
  155. package/dist/components/Toaster/hooks/useToaster.js +1 -1
  156. package/dist/components/Toaster/index.js +1 -1
  157. package/dist/components/Toggle/Toggle.js +3 -3
  158. package/dist/components/Tooltip/Tooltip.js +18 -18
  159. package/dist/components/ValidationMessage/ValidationBase/ValidationBase.js +1 -1
  160. package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +1 -1
  161. package/dist/constants.js +1 -1
  162. package/dist/{floating-ui.react-SmaXvp4L.js → floating-ui.react-nmA48tb2.js} +201 -207
  163. package/dist/helpers/dom/domUtils.js +12 -0
  164. package/dist/helpers/formatting/formatDateTime.js +21 -16
  165. package/dist/main.js +2 -2
  166. package/dist/patterns/Loading/Loading.js +1 -1
  167. package/dist/patterns/Loading/LoadingSuspense.js +1 -1
  168. package/dist/patterns/Loading/components/ComponentLoading.js +2 -2
  169. package/dist/patterns/Loading/components/DefaultLoading.js +2 -2
  170. package/dist/patterns/Loading/components/LongLoading.js +2 -2
  171. package/dist/patterns/Loading/components/PageLoading.js +2 -2
  172. package/dist/patterns/Loading/components/StartUpLoading.js +2 -2
  173. package/dist/patterns/Loading/components/ValidateLoading.js +2 -2
  174. package/dist/patterns/Loading/index.js +1 -1
  175. package/dist/src/helpers/dom/domUtils.d.ts +5 -0
  176. package/dist/style.css +1 -1
  177. package/dist/{useIDSButtonGroupItem-CniAJ9N5.js → useIDSButtonGroupItem-BdwMUgHj.js} +1 -1
  178. package/dist/vite.config.d.ts +1 -1
  179. package/dist/vitest.config.d.ts +2 -0
  180. package/package.json +1 -26
  181. package/dist/Loading.module-Bs6DSfb4.js +0 -13
  182. package/dist/LogoFromSrc-CtJE0Fsr.js +0 -59
  183. package/dist/MenuItem.module-Bj20OWCC.js +0 -24
  184. package/dist/Popover.module-DJ-RK5B3.js +0 -11
  185. package/dist/TabSet.module-Cu1itlcf.js +0 -13
  186. package/dist/Table.module-Bb7fJIr8.js +0 -32
  187. /package/dist/{setupTests.d.ts → vitest.setup.d.ts} +0 -0
@@ -1,11 +1,11 @@
1
1
  import { jsx as N } from "react/jsx-runtime";
2
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-SmaXvp4L.js";
4
- import { POPOVER_USE_MAX_HEIGHT as k } from "../Popover.types.js";
3
+ import { o as q, h as y, s as U, i as $, j as k, k as z, l as G, m as K } from "../../../floating-ui.react-nmA48tb2.js";
4
+ import { POPOVER_USE_MAX_HEIGHT as X } from "../Popover.types.js";
5
5
  import { usePopoverState as B } from "../hooks/usePopoverState.js";
6
6
  import { usePopoverNavigation as J } from "../hooks/usePopoverNavigation.js";
7
7
  import { usePopoverAria as L } from "../hooks/usePopoverAria.js";
8
- import { PopoverContext as Q } from "../PopoverProvider.js";
8
+ import { a as Q } from "../../../PopoverProvider-BAhkQIhz.js";
9
9
  import { usePopoverImperativeHandle as W } from "../hooks/usePopoverImperativeHandle.js";
10
10
  import { focusableElements as Y } from "../../../helpers/dom/focusableElements.js";
11
11
  const Z = V(
@@ -14,12 +14,12 @@ const Z = V(
14
14
  autoHighlight: v,
15
15
  children: w,
16
16
  defaultShow: I,
17
- disabledAutoToggle: u,
18
- focusStartIndex: g,
17
+ disabledAutoToggle: a,
18
+ focusStartIndex: O,
19
19
  matchActivatorWidth: l = !0,
20
- onActivated: a,
20
+ onActivated: u,
21
21
  onDeactivated: m,
22
- onNavigate: O,
22
+ onNavigate: g,
23
23
  show: F,
24
24
  type: n
25
25
  }, E) => {
@@ -34,7 +34,7 @@ const Z = V(
34
34
  requestAnimationFrame(() => {
35
35
  Object.assign(H.floating.style, {
36
36
  width: `${t.reference.width}px`,
37
- maxHeight: s > k ? `${s}px` : void 0
37
+ maxHeight: s > X ? `${s}px` : void 0
38
38
  });
39
39
  });
40
40
  },
@@ -44,40 +44,40 @@ const Z = V(
44
44
  }, [l]), o = $({
45
45
  open: r.show,
46
46
  onOpenChange: (e, t, s) => {
47
- r.setShow(e), e ? a == null || a(t, s, i) : m == null || m(t, s, i);
47
+ r.setShow(e), e ? u == null || u(t, s, i) : m == null || m(t, s, i);
48
48
  },
49
49
  middleware: S,
50
50
  placement: R ? void 0 : c,
51
- whileElementsMounted: z
52
- }), M = G(o.context, {
53
- enabled: !u,
51
+ whileElementsMounted: k
52
+ }), M = z(o.context, {
53
+ enabled: !a,
54
54
  escapeKey: !1
55
- }), b = K(o.context, {
55
+ }), b = G(o.context, {
56
56
  role: n
57
- }), { activeIndex: i, list: x, listNav: j, setActiveIndex: d } = J(
57
+ }), { activeIndex: i, list: x, listNav: j, setActiveIndex: P } = J(
58
58
  o.context,
59
59
  n,
60
60
  {
61
61
  focusItemOnOpen: v,
62
62
  virtual: !0
63
63
  },
64
- O,
65
- g
66
- ), P = X([M, b, j]), p = L(), C = h(
64
+ g,
65
+ O
66
+ ), d = K([M, b, j]), p = L(), C = h(
67
67
  () => ({
68
68
  ...p,
69
69
  ...r,
70
70
  activeIndex: i,
71
71
  api: o,
72
- disabledAutoToggle: u,
72
+ disabledAutoToggle: a,
73
73
  getFocusableActivator: () => {
74
74
  const e = o.elements.reference;
75
75
  return (e == null ? void 0 : e.querySelector("[role=combobox]")) ?? Y(e)[0];
76
76
  },
77
77
  getVirtualFocus: () => f.current,
78
- interactions: P,
78
+ interactions: d,
79
79
  list: x,
80
- setActiveIndex: d,
80
+ setActiveIndex: P,
81
81
  setShowWithReason: (e, t, s) => o.context.onOpenChange(e, t, s),
82
82
  setVirtualFocus: (e) => f.current = e,
83
83
  type: n
@@ -86,10 +86,10 @@ const Z = V(
86
86
  i,
87
87
  o,
88
88
  p,
89
- u,
90
- P,
91
- x,
89
+ a,
92
90
  d,
91
+ x,
92
+ P,
93
93
  r,
94
94
  n
95
95
  ]
@@ -4,9 +4,9 @@ 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 s } from "../../helpers/utility/propagateTestid.js";
8
- import { s as E } from "../../Popover.module-DJ-RK5B3.js";
9
- import { PopoverProvider as F } from "./PopoverProvider.js";
7
+ import { propagateTestid as a } from "../../helpers/utility/propagateTestid.js";
8
+ import { s as E } from "../../Popover.module-Ct33fXgT.js";
9
+ import { P as F } from "../../PopoverProvider-BAhkQIhz.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";
@@ -33,7 +33,7 @@ const B = ({
33
33
  virtualFocus: i,
34
34
  ...o
35
35
  }, T) => {
36
- const w = W(null), m = g && e === "overlay";
36
+ const w = W(null), s = g && e === "overlay";
37
37
  return r !== void 0 && k(
38
38
  "IressPopover: The width prop is deprecated. Please use the --iress-width and --iress-max-width design token instead."
39
39
  ), /* @__PURE__ */ t(
@@ -43,7 +43,7 @@ const B = ({
43
43
  defaultShow: f,
44
44
  disabledAutoToggle: h,
45
45
  focusStartIndex: P,
46
- matchActivatorWidth: m,
46
+ matchActivatorWidth: s,
47
47
  onActivated: y,
48
48
  onDeactivated: A,
49
49
  onNavigate: u,
@@ -65,7 +65,7 @@ const B = ({
65
65
  /* @__PURE__ */ t(z, { parentPopover: q(), children: /* @__PURE__ */ t(
66
66
  G,
67
67
  {
68
- "data-testid": s(o["data-testid"], "activator"),
68
+ "data-testid": a(o["data-testid"], "activator"),
69
69
  children: p
70
70
  }
71
71
  ) }),
@@ -74,10 +74,10 @@ const B = ({
74
74
  {
75
75
  className: v,
76
76
  container: l,
77
- "data-testid": s(o["data-testid"], "content"),
77
+ "data-testid": a(o["data-testid"], "content"),
78
78
  displayMode: e,
79
79
  style: {
80
- ...U(r, m),
80
+ ...U(r, s),
81
81
  ...o.style
82
82
  },
83
83
  virtualFocus: i,
@@ -89,9 +89,9 @@ const B = ({
89
89
  )
90
90
  }
91
91
  );
92
- }, a = I(B);
93
- a.Align = S;
94
- a.Type = R;
92
+ }, m = I(B);
93
+ m.Align = S;
94
+ m.Type = R;
95
95
  export {
96
- a as IressPopover
96
+ m as IressPopover
97
97
  };
@@ -1,115 +1,14 @@
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-SmaXvp4L.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
- import { usePopoverAria as T } from "./hooks/usePopoverAria.js";
8
- import { usePopoverImperativeHandle as D } from "./hooks/usePopoverImperativeHandle.js";
9
- import { focusableElements as ee } from "../../helpers/dom/focusableElements.js";
10
- const oe = k(
11
- void 0
12
- ), te = q(
13
- ({
14
- align: x,
15
- children: I,
16
- defaultShow: E,
17
- disabledAutoToggle: n,
18
- focusStartIndex: R,
19
- matchActivatorWidth: P,
20
- onActivated: c,
21
- onDeactivated: m,
22
- onNavigate: S,
23
- type: i,
24
- show: b,
25
- virtualFocus: u
26
- }, g) => {
27
- const p = x === "auto", h = U(null), r = Z({
28
- defaultShow: E,
29
- show: b
30
- }), M = f(() => {
31
- const e = [
32
- $(5),
33
- p ? y() : z(),
34
- G()
35
- ];
36
- return P && e.push(
37
- X({
38
- apply({ rects: s, availableHeight: t, elements: V }) {
39
- requestAnimationFrame(() => {
40
- Object.assign(V.floating.style, {
41
- width: `${s.reference.width}px`,
42
- maxHeight: t > Y ? `${t}px` : void 0
43
- });
44
- });
45
- },
46
- padding: 5
47
- })
48
- ), e;
49
- }, [p, P]), o = B({
50
- open: r.show,
51
- onOpenChange: (e, s, t) => {
52
- r.setShow(e), e ? c == null || c(s, t, a) : m == null || m(s, t, a);
53
- },
54
- middleware: M,
55
- placement: p ? void 0 : x,
56
- whileElementsMounted: W
57
- }), N = J(o.context, {
58
- enabled: !n
59
- }), j = K(o.context, {
60
- enabled: !n
61
- }), F = L(o.context, {
62
- role: i
63
- }), { activeIndex: a, list: d, listNav: H, setActiveIndex: v } = A(
64
- o.context,
65
- i,
66
- {
67
- focusItemOnOpen: !0,
68
- virtual: u
69
- },
70
- S,
71
- R
72
- ), l = T(), w = Q([N, j, F, H]), O = f(() => u ? {
73
- getVirtualFocus: () => h.current,
74
- setVirtualFocus: (e) => {
75
- h.current = e;
76
- }
77
- } : {}, [u]), C = f(
78
- () => ({
79
- ...l,
80
- ...r,
81
- ...O,
82
- api: o,
83
- activeIndex: a,
84
- disabledAutoToggle: n,
85
- getFocusableActivator: () => {
86
- const e = o.elements.reference;
87
- return (e == null ? void 0 : e.querySelector("[role=combobox]")) ?? ee(e)[0];
88
- },
89
- interactions: w,
90
- list: d,
91
- setActiveIndex: v,
92
- setShowWithReason: (e, s, t) => o.context.onOpenChange(e, s, t),
93
- type: i
94
- }),
95
- [
96
- a,
97
- o,
98
- l,
99
- n,
100
- w,
101
- d,
102
- v,
103
- r,
104
- i,
105
- O
106
- ]
107
- );
108
- return D(g, o, l, r, C), /* @__PURE__ */ _(oe.Provider, { value: C, children: I });
109
- }
110
- );
111
- te.displayName = "PopoverProvider";
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "../../floating-ui.react-nmA48tb2.js";
4
+ import "./Popover.types.js";
5
+ import "./hooks/usePopoverState.js";
6
+ import "./hooks/usePopoverNavigation.js";
7
+ import "./hooks/usePopoverAria.js";
8
+ import "./hooks/usePopoverImperativeHandle.js";
9
+ import "../../helpers/dom/focusableElements.js";
10
+ import { a as x, P as d } from "../../PopoverProvider-BAhkQIhz.js";
112
11
  export {
113
- oe as PopoverContext,
114
- te as PopoverProvider
12
+ x as PopoverContext,
13
+ d as PopoverProvider
115
14
  };
@@ -1,9 +1,9 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { p as e } from "../../../floating-ui.react-SmaXvp4L.js";
3
- const m = ({
2
+ import { f as e } from "../../../floating-ui.react-nmA48tb2.js";
3
+ const f = ({
4
4
  children: t,
5
5
  parentPopover: o
6
6
  }) => o ? /* @__PURE__ */ r(e, { elementsRef: o.list, children: t }) : t;
7
7
  export {
8
- m as NestedPopoverActivator
8
+ f as NestedPopoverActivator
9
9
  };
@@ -1,11 +1,12 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
- import { s as u } from "../../../Popover.module-DJ-RK5B3.js";
3
- import { PopoverCssClass as l } from "../Popover.types.js";
4
- import { usePopover as m } from "../hooks/usePopover.js";
5
- import { useRef as A, useMemo as g, useEffect as b } from "react";
6
- import { focusableElements as v } from "../../../helpers/dom/focusableElements.js";
7
- import { usePopoverActivatorInteractions as T } from "../hooks/usePopoverActivatorInteractions.js";
8
- import { c as x } from "../../../index-2QXL0WYc.js";
2
+ import { s as c } from "../../../Popover.module-Ct33fXgT.js";
3
+ import { PopoverCssClass as m } from "../Popover.types.js";
4
+ import { usePopover as g } from "../hooks/usePopover.js";
5
+ import { useRef as A, useMemo as b, useEffect as v } from "react";
6
+ import { focusableElements as T } from "../../../helpers/dom/focusableElements.js";
7
+ import { safeClosest as f } from "../../../helpers/dom/domUtils.js";
8
+ import { usePopoverActivatorInteractions as x } from "../hooks/usePopoverActivatorInteractions.js";
9
+ import { c as E } from "../../../index-2QXL0WYc.js";
9
10
  const P = [
10
11
  "aria-controls",
11
12
  "aria-expanded",
@@ -14,75 +15,73 @@ const P = [
14
15
  "id",
15
16
  "role",
16
17
  "tabindex"
17
- ], y = (s, c) => {
18
- const t = s.querySelector("[id]"), a = t == null ? void 0 : t.getAttribute("id");
19
- t == null || t.removeAttribute("id"), P.forEach((e) => {
20
- const n = s.getAttribute(e);
21
- s.removeAttribute(e), n && c.setAttribute(e, n);
22
- }), a && c.setAttribute("id", a);
23
- }, F = ({
24
- children: s,
25
- ...c
18
+ ], y = (o, i) => {
19
+ const t = o.querySelector("[id]"), a = t == null ? void 0 : t.getAttribute("id");
20
+ t == null || t.removeAttribute("id"), P.forEach((s) => {
21
+ const n = o.getAttribute(s);
22
+ o.removeAttribute(s), n && i.setAttribute(s, n);
23
+ }), a && i.setAttribute("id", a);
24
+ }, N = ({
25
+ children: o,
26
+ ...i
26
27
  }) => {
27
- const t = m(), a = A(null), e = s == null ? void 0 : s.props, n = T(
28
+ const t = g(), a = A(null), s = o == null ? void 0 : o.props, n = x(
28
29
  t,
29
- e
30
- ), f = g(() => {
30
+ s
31
+ ), l = b(() => {
31
32
  if (t != null && t.show)
32
33
  return [
33
34
  ...t.getAriaControls(),
34
- e["aria-controls"],
35
+ s["aria-controls"],
35
36
  t.api.context.floatingId
36
37
  ].join(" ").trim();
37
- }, [e, t]);
38
- return b(() => {
39
- var r, o;
38
+ }, [s, t]);
39
+ return v(() => {
40
+ var r, e;
40
41
  !a.current || !(t != null && t.getVirtualFocus) || t.activeIndex === null || (setTimeout(
41
42
  () => {
42
- var i;
43
- return (i = t == null ? void 0 : t.api.refs.domReference.current) == null ? void 0 : i.removeAttribute(
43
+ var u;
44
+ return (u = t == null ? void 0 : t.api.refs.domReference.current) == null ? void 0 : u.removeAttribute(
44
45
  "aria-activedescendant"
45
46
  );
46
47
  }
47
48
  ), a.current.setAttribute(
48
49
  "aria-activedescendant",
49
- ((o = (r = t.list.current) == null ? void 0 : r[t.activeIndex]) == null ? void 0 : o.id) ?? ""
50
+ ((e = (r = t.list.current) == null ? void 0 : r[t.activeIndex]) == null ? void 0 : e.id) ?? ""
50
51
  ));
51
52
  }, [t]), /* @__PURE__ */ d(
52
53
  "div",
53
54
  {
54
- ...c,
55
- className: x(u.activator, {
56
- [l.Active]: t == null ? void 0 : t.show
55
+ ...i,
56
+ className: E(c.activator, {
57
+ [m.Active]: t == null ? void 0 : t.show
57
58
  }),
58
59
  ...t == null ? void 0 : t.interactions.getReferenceProps({
59
60
  ...n,
60
- "aria-controls": f,
61
- role: e.role,
61
+ "aria-controls": l,
62
+ role: s.role,
62
63
  ref: (r) => {
63
64
  if (!r) return;
64
65
  t == null || t.api.refs.setReference(r);
65
- const o = (r == null ? void 0 : r.querySelector("[role=combobox]")) ?? v(r)[0];
66
- o && (a.current = o, y(r, o));
66
+ const e = (r == null ? void 0 : r.querySelector("[role=combobox]")) ?? T(r)[0];
67
+ e && (a.current = e, y(r, e));
67
68
  },
68
69
  onBlur: (r) => {
69
- var o;
70
- (o = r.relatedTarget) != null && o.closest(`.${u.content}`) && (r.preventDefault(), r.stopPropagation());
70
+ r.relatedTarget instanceof Element && f(r.relatedTarget, `.${c.content}`) && (r.preventDefault(), r.stopPropagation());
71
71
  },
72
72
  onFocus: (r) => {
73
- var o;
74
- t != null && t.disabledAutoToggle || r.relatedTarget && (r.relatedTarget.hasAttribute("data-floating-ui-focus-guard") || (o = r.relatedTarget) != null && o.closest(`.${u.content}`)) && t.show && (setTimeout(() => {
75
- var i;
76
- (i = a.current) == null || i.focus();
73
+ t != null && t.disabledAutoToggle || r.relatedTarget instanceof Element && (r.relatedTarget.hasAttribute("data-floating-ui-focus-guard") || f(r.relatedTarget, `.${c.content}`)) && t.show && (setTimeout(() => {
74
+ var e;
75
+ (e = a.current) == null || e.focus();
77
76
  }), setTimeout(() => {
78
77
  t.setShowWithReason(!1, r.nativeEvent, "focus");
79
78
  }, 300));
80
79
  }
81
80
  }),
82
- children: s
81
+ children: o
83
82
  }
84
83
  );
85
84
  };
86
85
  export {
87
- F as PopoverActivator
86
+ N as PopoverActivator
88
87
  };
@@ -1,25 +1,25 @@
1
- import { jsx as n } from "react/jsx-runtime";
1
+ import { jsx as e } from "react/jsx-runtime";
2
2
  import { c } from "../../../index-2QXL0WYc.js";
3
- import { s as m } from "../../../Popover.module-DJ-RK5B3.js";
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-SmaXvp4L.js";
3
+ import { s as m } from "../../../Popover.module-Ct33fXgT.js";
4
+ import { usePopover as g } from "../hooks/usePopover.js";
5
+ import { b as F, F as h, c as p, d as i, e as P, f as I, g as N } from "../../../floating-ui.react-nmA48tb2.js";
6
6
  import { composePopoverFloatingProps as x } from "../helpers/composeFloatingProps.js";
7
7
  const l = ({
8
- children: e,
8
+ children: n,
9
9
  className: o,
10
10
  displayMode: r,
11
11
  style: s,
12
12
  virtualFocus: a,
13
13
  ...f
14
14
  }) => {
15
- const t = F();
15
+ const t = g();
16
16
  if (!t) return null;
17
17
  const u = x(
18
18
  t,
19
19
  r,
20
20
  s
21
21
  );
22
- return /* @__PURE__ */ n(I, { elementsRef: t.list, children: /* @__PURE__ */ n(
22
+ return /* @__PURE__ */ e(I, { elementsRef: t.list, children: /* @__PURE__ */ e(
23
23
  N,
24
24
  {
25
25
  context: t.api.context,
@@ -27,7 +27,7 @@ const l = ({
27
27
  modal: !1,
28
28
  disabled: !(t != null && t.show),
29
29
  returnFocus: !a,
30
- children: /* @__PURE__ */ n(
30
+ children: /* @__PURE__ */ e(
31
31
  "div",
32
32
  {
33
33
  ...f,
@@ -35,25 +35,25 @@ const l = ({
35
35
  hidden: !(t != null && t.show),
36
36
  ref: t == null ? void 0 : t.api.refs.setFloating,
37
37
  ...u,
38
- children: e
38
+ children: n
39
39
  }
40
40
  )
41
41
  }
42
42
  ) });
43
43
  }, d = ({
44
- className: e,
44
+ className: n,
45
45
  container: o,
46
46
  ...r
47
47
  }) => {
48
48
  const s = p();
49
- return o ? /* @__PURE__ */ n(i, { id: s, children: /* @__PURE__ */ n(P, { root: o, preserveTabOrder: !0, children: /* @__PURE__ */ n(
49
+ return o ? /* @__PURE__ */ e(i, { id: s, children: /* @__PURE__ */ e(P, { root: o, preserveTabOrder: !0, children: /* @__PURE__ */ e(
50
50
  l,
51
51
  {
52
52
  ...r,
53
- className: c(e, m.portal)
53
+ className: c(n, m.portal)
54
54
  }
55
- ) }) }) : /* @__PURE__ */ n(i, { id: s, children: /* @__PURE__ */ n(l, { ...r, className: e }) });
56
- }, q = (e) => g() === null ? /* @__PURE__ */ n(h, { children: /* @__PURE__ */ n(d, { ...e }) }) : /* @__PURE__ */ n(d, { ...e });
55
+ ) }) }) : /* @__PURE__ */ e(i, { id: s, children: /* @__PURE__ */ e(l, { ...r, className: n }) });
56
+ }, y = (n) => F() === null ? /* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(d, { ...n }) }) : /* @__PURE__ */ e(d, { ...n });
57
57
  export {
58
- q as PopoverContent
58
+ y as PopoverContent
59
59
  };
@@ -1,5 +1,5 @@
1
1
  import { t as f } from "../../../index.esm-BnSuefUA.js";
2
- import { s as c } from "../../../Popover.module-DJ-RK5B3.js";
2
+ import { s as c } from "../../../Popover.module-Ct33fXgT.js";
3
3
  import { FOCUSABLE_QUERY_SELECTOR as l } from "../../../constants.js";
4
4
  import { focusableElements as m } from "../../../helpers/dom/focusableElements.js";
5
5
  import { waitUntilTrue as u } from "./waitUntilTrue.js";
@@ -1,5 +1,5 @@
1
1
  import { useContext as o } from "react";
2
- import { PopoverContext as t } from "../PopoverProvider.js";
2
+ import { a as t } from "../../../PopoverProvider-BAhkQIhz.js";
3
3
  const p = () => o(t);
4
4
  export {
5
5
  p as usePopover
@@ -1,4 +1,4 @@
1
- import { u as r } from "../../../floating-ui.react-SmaXvp4L.js";
1
+ import { u as r } from "../../../floating-ui.react-nmA48tb2.js";
2
2
  import { useId as f, useEffect as I } from "react";
3
3
  import { usePopover as a } from "./usePopover.js";
4
4
  const b = (i, e = null) => {
@@ -1,5 +1,5 @@
1
1
  import { useMemo as a, useState as O, useEffect as R, useRef as r } from "react";
2
- import { r as d } from "../../../floating-ui.react-SmaXvp4L.js";
2
+ import { n as d } from "../../../floating-ui.react-nmA48tb2.js";
3
3
  const E = (l, n, e, t, i = 0) => {
4
4
  const s = a(
5
5
  () => !!(n && ["menu", "listbox"].includes(n)),
@@ -3,7 +3,7 @@ import { useState as f, useEffect as v } from "react";
3
3
  import { propagateTestid as h } from "../../helpers/utility/propagateTestid.js";
4
4
  import { stringReplacer as M } from "../../helpers/formatting/stringReplacer.js";
5
5
  import { c as S } from "../../index-2QXL0WYc.js";
6
- const x = "ids-progress-v5150", b = "ids-progress--indicator-v5150", n = {
6
+ const x = "ids-progress-v5151", b = "ids-progress--indicator-v5151", n = {
7
7
  progress: x,
8
8
  indicator: b
9
9
  }, N = ({
@@ -1,5 +1,5 @@
1
1
  import { jsxs as d, jsx as s } from "react/jsx-runtime";
2
- import { O as c } from "../../LoadingSuspense-BdXYIsHy.js";
2
+ import { O as c } from "../../LoadingSuspense-BMFBqvXJ.js";
3
3
  import { IressModalProvider as l } from "../Modal/ModalProvider.js";
4
4
  import "react";
5
5
  import { IressSlideoutProvider as p } from "../Slideout/SlideoutProvider.js";
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../index-2QXL0WYc.js";
3
- import { u as d } from "../../LoadingSuspense-BdXYIsHy.js";
3
+ import { u as d } from "../../LoadingSuspense-BMFBqvXJ.js";
4
4
  import "react";
5
5
  import "../../hooks/useIdIfNeeded.js";
6
6
  import "../../helpers/utility/propagateTestid.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { u as t } from "../../../LoadingSuspense-BdXYIsHy.js";
2
+ import { u as t } from "../../../LoadingSuspense-BMFBqvXJ.js";
3
3
  import { idsLogger as p } from "../../../helpers/utility/idsLogger.js";
4
4
  import { getFormControlValueAsString as d } from "../../../helpers/form/getFormControlValueAsString.js";
5
5
  const f = (r) => r != null && r.length ? (p(
@@ -1,4 +1,4 @@
1
- import { u as s } from "../../LoadingSuspense-BdXYIsHy.js";
1
+ import { u as s } from "../../LoadingSuspense-BMFBqvXJ.js";
2
2
  export {
3
3
  s as IressRadio
4
4
  };
@@ -5,12 +5,12 @@ import { forwardRef as W, useRef as j, useMemo as w, useImperativeHandle as D }
5
5
  import { useControlledState as F } from "../../hooks/useControlledState.js";
6
6
  import { RadioGroupContext as H } from "./RadioGroupContext.js";
7
7
  import { useNoDefaultValueInForms as M } from "../Form/hooks/useNoDefaultValueInForms.js";
8
- const P = "ids-radio-group-v5150", z = "ids-radio-group--stack-v5150", A = "ids-radio-group--block-v5150", B = "ids-radio-group--inline-v5150", J = "ids-radio-group--inline-flex-v5150", K = "ids-radio-group--inline-equal-width-v5150", G = {
8
+ const P = "ids-radio-group-v5151", z = "ids-radio-group--stack-v5151", A = "ids-radio-group--block-v5151", B = "ids-radio-group--inline-v5151", J = "ids-radio-group--inline-flex-v5151", K = "ids-radio-group--inline-equal-width-v5151", G = {
9
9
  radioGroup: P,
10
10
  stack: z,
11
- "ids-radio": "ids-radio-v5150",
11
+ "ids-radio": "ids-radio-v5151",
12
12
  block: A,
13
- "ids-radio--label": "ids-radio--label-v5150",
13
+ "ids-radio--label": "ids-radio--label-v5151",
14
14
  inline: B,
15
15
  inlineFlex: J,
16
16
  inlineEqualWidth: K
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../helpers/utility/propagateTestid.js";
4
- import { v as N } from "../../LoadingSuspense-BdXYIsHy.js";
4
+ import { v as N } from "../../LoadingSuspense-BMFBqvXJ.js";
5
5
  import "../../fuzzysort-eoXOpoo6.js";
6
6
  import "../Badge/Badge.js";
7
7
  import "../../index-2QXL0WYc.js";
@@ -14,7 +14,7 @@ import "../Expander/Expander.js";
14
14
  import "../Form/FormContext.js";
15
15
  import "../Menu/Menu.js";
16
16
  import "../Menu/MenuProvider.js";
17
- import "../Popover/PopoverProvider.js";
17
+ import "../../PopoverProvider-BAhkQIhz.js";
18
18
  import "../CheckboxMark/CheckboxMark.types.js";
19
19
  import "../CheckboxMark/CheckboxMark.js";
20
20
  import "../Modal/ModalProvider.js";
@@ -35,7 +35,7 @@ import "../TabSet/TabSet.js";
35
35
  import "../Toggle/Toggle.js";
36
36
  import "../Tooltip/Tooltip.js";
37
37
  import "../ValidationMessage/ValidationMessage.js";
38
- import "../../InputBase-nWIFJcGj.js";
38
+ import "../../InputBase-55eUCLgT.js";
39
39
  import "../Form/hooks/useNoDefaultValueInForms.js";
40
40
  export {
41
41
  N as IressReadonly
@@ -1,4 +1,4 @@
1
- import { v as r } from "../../LoadingSuspense-BdXYIsHy.js";
1
+ import { v as r } from "../../LoadingSuspense-BMFBqvXJ.js";
2
2
  export {
3
3
  r as IressReadonly
4
4
  };