@iress-oss/ids-components 0.0.1-dev.2 → 0.0.1-dev.20

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 (239) hide show
  1. package/README.md +1 -1
  2. package/dist/{AutocompleteNoResults-ImNh0dmJ.js → AutocompleteNoResults-CogA3XZs.js} +1 -1
  3. package/dist/{ComboboxHiddenInput-BVhoQtv3.js → ComboboxHiddenInput-gTOjjF3f.js} +5 -5
  4. package/dist/{FieldAppendToLabel-CY2e0YuF.js → FieldAppendToLabel-DCv5E5th.js} +13 -11
  5. package/dist/{InputBase-LsLk3nX1.js → InputBase-BFK9n82f.js} +1 -1
  6. package/dist/Loading.module-g2pe-Gfx.js +13 -0
  7. package/dist/LoadingSuspense-BwlrIicY.js +5773 -0
  8. package/dist/LogoFromSrc-BnImWqt6.js +59 -0
  9. package/dist/MenuItem.module-BxcFZeSh.js +24 -0
  10. package/dist/Popover.module-BKrF_xRW.js +11 -0
  11. package/dist/PopoverProvider-d3hhpW2k.js +142 -0
  12. package/dist/{SelectControl-BJo08wJN.js → SelectControl-D1SJlplM.js} +1 -1
  13. package/dist/SlideoutProvider-CQh140HM.js +200 -0
  14. package/dist/{SliderTicks-MkaJGb9A.js → SliderTicks-DQN0Ka4d.js} +1 -1
  15. package/dist/TabSet.module-FRUnHgA1.js +13 -0
  16. package/dist/Table.module-r-RfIeLI.js +32 -0
  17. package/dist/components/Alert/Alert.js +1 -1
  18. package/dist/components/Alert/index.js +1 -1
  19. package/dist/components/Autocomplete/Autocomplete.js +8 -6
  20. package/dist/components/Autocomplete/components/AutocompleteInstructions.js +12 -0
  21. package/dist/components/Autocomplete/components/AutocompleteNoResults.js +1 -1
  22. package/dist/components/Autocomplete/hooks/useAutocompleteSearch.js +160 -95
  23. package/dist/components/Autocomplete/index.js +1 -1
  24. package/dist/components/Badge/Badge.js +4 -4
  25. package/dist/components/Button/Button.js +2 -2
  26. package/dist/components/Button/CloseButton/CloseButton.js +1 -1
  27. package/dist/components/Button/index.js +1 -1
  28. package/dist/components/ButtonGroup/ButtonGroup.js +2 -2
  29. package/dist/components/ButtonGroup/hooks/useIDSButtonGroupItem.js +1 -1
  30. package/dist/components/ButtonGroup/index.js +1 -1
  31. package/dist/components/Checkbox/Checkbox.js +1 -1
  32. package/dist/components/Checkbox/helpers/mapCheckboxGroupOptions.js +1 -1
  33. package/dist/components/Checkbox/index.js +1 -1
  34. package/dist/components/CheckboxGroup/CheckboxGroup.js +6 -6
  35. package/dist/components/CheckboxMark/CheckboxMark.types.js +2 -2
  36. package/dist/components/Combobox/Combobox.js +7 -5
  37. package/dist/components/Combobox/MultiCombobox/MultiCombobox.js +7 -5
  38. package/dist/components/Combobox/components/ComboboxHiddenInput.js +1 -1
  39. package/dist/components/Combobox/components/ComboboxResults.js +8 -6
  40. package/dist/components/Combobox/components/ComboboxResultsDescriptor.js +6 -4
  41. package/dist/components/Combobox/index.js +1 -1
  42. package/dist/components/Expander/Expander.js +1 -1
  43. package/dist/components/Field/Field.js +1 -1
  44. package/dist/components/Field/FieldGroup/FieldGroup.js +2 -2
  45. package/dist/components/Field/components/FieldAppendToLabel.js +7 -5
  46. package/dist/components/Filter/Filter.js +7 -5
  47. package/dist/components/Filter/components/FilterResetButton.js +6 -4
  48. package/dist/components/Filter/components/FilterSearch.js +6 -4
  49. package/dist/components/Filter/index.js +1 -1
  50. package/dist/components/Form/Form.js +1 -1
  51. package/dist/components/Form/FormField/FormField.js +45 -39
  52. package/dist/components/Form/FormField/FormFieldset.js +13 -11
  53. package/dist/components/Form/HookForm/HookForm.js +1 -1
  54. package/dist/components/Form/index.js +1 -1
  55. package/dist/components/Hide/Hide.js +1 -1
  56. package/dist/components/Hide/helpers/composeHideClasses.js +7 -5
  57. package/dist/components/Hide/index.js +1 -1
  58. package/dist/components/Icon/Icon.js +6 -4
  59. package/dist/components/Icon/index.js +1 -1
  60. package/dist/components/Inline/Inline.js +6 -4
  61. package/dist/components/Inline/index.js +1 -1
  62. package/dist/components/Input/ClearButton/ClearButton.js +1 -1
  63. package/dist/components/Input/Input.js +2 -2
  64. package/dist/components/Input/InputBase/InputBase.js +1 -1
  65. package/dist/components/Input/index.js +1 -1
  66. package/dist/components/InputCurrency/InputCurrency.js +1 -1
  67. package/dist/components/InputCurrency/index.js +1 -1
  68. package/dist/components/Label/LabelBase/LabelBase.js +1 -1
  69. package/dist/components/Menu/Menu.js +1 -1
  70. package/dist/components/Menu/MenuDivider/MenuDivider.js +6 -4
  71. package/dist/components/Menu/MenuHeading/MenuHeading.js +2 -2
  72. package/dist/components/Menu/MenuItem/MenuItem.js +1 -1
  73. package/dist/components/Menu/MenuItem/hooks/useMenuItemButtonProps.js +1 -1
  74. package/dist/components/Menu/MenuItem/hooks/useMenuItemComposite.js +2 -2
  75. package/dist/components/Menu/MenuItem/hooks/useMenuItemInteractions.js +41 -41
  76. package/dist/components/Menu/MenuText/MenuText.js +7 -5
  77. package/dist/components/Menu/helpers/mapMenuItems.js +1 -1
  78. package/dist/components/Menu/hooks/useMenuStyles.js +3 -3
  79. package/dist/components/Menu/index.js +1 -1
  80. package/dist/components/Modal/Modal.js +2 -2
  81. package/dist/components/Modal/hooks/useModal.js +17 -14
  82. package/dist/components/Modal/index.js +1 -1
  83. package/dist/components/Navbar/Navbar.js +2 -2
  84. package/dist/components/Navbar/components/HomeLinkContent.js +2 -2
  85. package/dist/components/Navbar/components/LogoFromSrc.js +1 -1
  86. package/dist/components/Navbar/components/NavbarLogo.js +2 -2
  87. package/dist/components/Navbar/index.js +1 -1
  88. package/dist/components/Placeholder/Placeholder.js +1 -1
  89. package/dist/components/Popover/InputPopover/InputPopover.js +36 -34
  90. package/dist/components/Popover/InputPopover/InputPopoverActivator.js +1 -1
  91. package/dist/components/Popover/InputPopover/InputPopoverProvider.js +72 -66
  92. package/dist/components/Popover/Popover.js +32 -30
  93. package/dist/components/Popover/PopoverProvider.js +13 -111
  94. package/dist/components/Popover/components/NestedPopoverActivator.js +9 -0
  95. package/dist/components/Popover/components/PopoverActivator.js +40 -41
  96. package/dist/components/Popover/components/PopoverContent.js +15 -15
  97. package/dist/components/Popover/helpers/composeFloatingProps.js +26 -22
  98. package/dist/components/Popover/helpers/handlePopoverTabKey.js +16 -13
  99. package/dist/components/Popover/helpers/waitUntilTrue.js +12 -0
  100. package/dist/components/Popover/hooks/usePopover.js +1 -1
  101. package/dist/components/Popover/hooks/usePopoverActivatorInteractions.js +25 -17
  102. package/dist/components/Popover/hooks/usePopoverItem.js +1 -1
  103. package/dist/components/Popover/hooks/usePopoverNavigation.js +1 -1
  104. package/dist/components/Progress/Progress.js +1 -1
  105. package/dist/components/Provider/Provider.js +38 -0
  106. package/dist/components/Provider/index.js +4 -0
  107. package/dist/components/Radio/Radio.js +1 -1
  108. package/dist/components/Radio/helpers/mapRadioGroupOptions.js +1 -1
  109. package/dist/components/Radio/index.js +1 -1
  110. package/dist/components/RadioGroup/RadioGroup.js +3 -3
  111. package/dist/components/Readonly/Readonly.js +7 -5
  112. package/dist/components/Readonly/index.js +1 -1
  113. package/dist/components/RichSelect/RichSelect.js +6 -4
  114. package/dist/components/RichSelect/SelectBody/SelectBody.js +7 -5
  115. package/dist/components/RichSelect/SelectCreate/SelectCreate.js +11 -9
  116. package/dist/components/RichSelect/SelectHeading/SelectHeading.js +6 -4
  117. package/dist/components/RichSelect/SelectLabel/SelectLabel.js +1 -1
  118. package/dist/components/RichSelect/SelectMenu/SelectMenu.js +6 -4
  119. package/dist/components/RichSelect/SelectMenu/SelectMenuItem.js +6 -4
  120. package/dist/components/RichSelect/SelectSearch/SelectSearch.js +5 -3
  121. package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.js +1 -1
  122. package/dist/components/RichSelect/SelectTags/SelectTags.js +5 -3
  123. package/dist/components/RichSelect/components/SelectActivator.js +1 -1
  124. package/dist/components/RichSelect/components/SelectOptions.js +6 -4
  125. package/dist/components/RichSelect/index.js +1 -1
  126. package/dist/components/Row/Row.js +6 -4
  127. package/dist/components/Row/index.js +1 -1
  128. package/dist/components/Select/Select.js +2 -2
  129. package/dist/components/Select/components/SelectControl.js +1 -1
  130. package/dist/components/Select/components/SelectReadonly.js +6 -4
  131. package/dist/components/Select/helpers/mapSelectOptions.js +1 -1
  132. package/dist/components/Select/helpers/nodesToSelectOptions.js +3 -3
  133. package/dist/components/Select/index.js +1 -1
  134. package/dist/components/Skeleton/Skeleton.js +2 -2
  135. package/dist/components/SkipLink/SkipLink.js +1 -1
  136. package/dist/components/Slideout/Slideout.js +5 -3
  137. package/dist/components/Slideout/SlideoutProvider.js +6 -89
  138. package/dist/components/Slideout/components/SlideoutInner.js +3 -2
  139. package/dist/components/Slideout/hooks/useIDSProvidedSlideout.js +1 -1
  140. package/dist/components/Slideout/hooks/useSlideout.js +17 -14
  141. package/dist/components/Slideout/index.js +7 -7
  142. package/dist/components/Slider/Slider.js +2 -2
  143. package/dist/components/Slider/components/SliderTicks.js +1 -1
  144. package/dist/components/Slider/index.js +1 -1
  145. package/dist/components/Spinner/Spinner.js +1 -1
  146. package/dist/components/Spinner/index.js +1 -1
  147. package/dist/components/TabSet/Tab/Tab.js +74 -62
  148. package/dist/components/TabSet/TabSet.js +2 -2
  149. package/dist/components/TabSet/components/TabSetItem.js +2 -2
  150. package/dist/components/Table/Table.js +4 -3
  151. package/dist/components/Table/TableBody/TableBody.js +2 -2
  152. package/dist/components/Table/TableProvider.js +29 -25
  153. package/dist/components/Table/components/TableEmpty.js +1 -1
  154. package/dist/components/Table/components/TableHeader.js +2 -2
  155. package/dist/components/Table/components/TableHeaderCell.js +2 -2
  156. package/dist/components/Table/components/TableRows.js +1 -1
  157. package/dist/components/Table/components/TableSortButton.js +2 -2
  158. package/dist/components/Table/helpers/composeIDSTableColumnDefs.js +5 -5
  159. package/dist/components/Table/hooks/useIDSTableColumnStyles.js +1 -1
  160. package/dist/components/Table/index.js +1 -1
  161. package/dist/components/Tag/Tag.js +1 -1
  162. package/dist/components/Tag/TagInput/TagInput.js +1 -1
  163. package/dist/components/Tag/components/TagListInput/TagListInput.js +1 -1
  164. package/dist/components/Tag/index.js +1 -1
  165. package/dist/components/Toaster/Toast/Toast.js +1 -1
  166. package/dist/components/Toaster/Toast/ToastAnimated.js +2 -2
  167. package/dist/components/Toaster/Toast/ToastIcon.js +1 -1
  168. package/dist/components/Toaster/Toaster.js +3 -3
  169. package/dist/components/Toaster/ToasterProvider.js +1 -1
  170. package/dist/components/Toaster/hooks/useToaster.js +24 -3
  171. package/dist/components/Toaster/index.js +11 -10
  172. package/dist/components/Toggle/Toggle.js +3 -3
  173. package/dist/components/Tooltip/Tooltip.js +18 -18
  174. package/dist/components/ValidationMessage/ValidationBase/ValidationBase.js +1 -1
  175. package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +1 -1
  176. package/dist/constants.js +11 -11
  177. package/dist/{floating-ui.react-D_ysmiM3.js → floating-ui.react-nmA48tb2.js} +1055 -1034
  178. package/dist/helpers/dom/closestCrossShadow.js +26 -0
  179. package/dist/helpers/dom/domUtils.js +12 -0
  180. package/dist/helpers/formatting/formatDateTime.js +21 -16
  181. package/dist/helpers/label-value/highlightQueryInLabelValue.js +6 -5
  182. package/dist/{index-CmsyHM_3.js → index-BQfnxwrU.js} +2 -2
  183. package/dist/{index-CtOScEKX.js → index-Dms7F5NM.js} +8 -8
  184. package/dist/main.js +185 -181
  185. package/dist/patterns/Loading/Loading.js +1 -1
  186. package/dist/patterns/Loading/LoadingSuspense.js +5 -49
  187. package/dist/patterns/Loading/components/ComponentLoading.js +2 -2
  188. package/dist/patterns/Loading/components/DefaultLoading.js +2 -2
  189. package/dist/patterns/Loading/components/LongLoading.js +2 -2
  190. package/dist/patterns/Loading/components/PageLoading.js +2 -2
  191. package/dist/patterns/Loading/components/StartUpLoading.js +2 -2
  192. package/dist/patterns/Loading/components/ValidateLoading.js +2 -2
  193. package/dist/patterns/Loading/index.js +3 -2
  194. package/dist/src/components/Autocomplete/Autocomplete.types.d.ts +38 -0
  195. package/dist/src/components/Autocomplete/components/AutocompleteInstructions.d.ts +2 -0
  196. package/dist/src/components/Autocomplete/hooks/useAutocompleteSearch.d.ts +5 -1
  197. package/dist/src/components/Form/Form.types.d.ts +10 -1
  198. package/dist/src/components/Form/FormField/FormField.d.ts +1 -1
  199. package/dist/src/components/Form/FormField/FormField.types.d.ts +8 -2
  200. package/dist/src/components/Modal/Modal.types.d.ts +4 -0
  201. package/dist/src/components/Popover/Popover.types.d.ts +3 -1
  202. package/dist/src/components/Popover/components/NestedPopoverActivator.d.ts +5 -0
  203. package/dist/src/components/Popover/helpers/handlePopoverTabKey.d.ts +1 -1
  204. package/dist/src/components/Popover/helpers/waitUntilTrue.d.ts +1 -0
  205. package/dist/src/components/Provider/Provider.d.ts +20 -0
  206. package/dist/src/components/Provider/index.d.ts +1 -0
  207. package/dist/src/components/RichSelect/RichSelect.types.d.ts +27 -1
  208. package/dist/src/components/RichSelect/SelectMenu/SelectMenuItem.d.ts +1 -1
  209. package/dist/src/components/RichSelect/components/SelectOptions.d.ts +4 -2
  210. package/dist/src/components/Slideout/Slideout.types.d.ts +5 -1
  211. package/dist/src/components/Table/Table.d.ts +7 -6
  212. package/dist/src/components/Table/Table.types.d.ts +10 -1
  213. package/dist/src/components/Table/TableProvider.d.ts +5 -2
  214. package/dist/src/components/Toaster/Toast/Toast.types.d.ts +2 -1
  215. package/dist/src/components/Toaster/ToasterProvider.d.ts +5 -2
  216. package/dist/src/components/Toaster/hooks/useToaster.d.ts +3 -3
  217. package/dist/src/constants.d.ts +7 -7
  218. package/dist/src/helpers/dom/closestCrossShadow.d.ts +9 -0
  219. package/dist/src/helpers/dom/domUtils.d.ts +5 -0
  220. package/dist/src/interfaces.d.ts +1 -0
  221. package/dist/src/main.d.ts +1 -0
  222. package/dist/src/patterns/Loading/LoadingSuspense.d.ts +1 -2
  223. package/dist/src/patterns/Loading/components/PageLoading.d.ts +3 -3
  224. package/dist/src/patterns/Loading/hooks/useShouldRenderLoading.d.ts +1 -0
  225. package/dist/src/patterns/Loading/index.d.ts +1 -0
  226. package/dist/style.css +1 -1
  227. package/dist/{useIDSButtonGroupItem-Y0ZSkNW8.js → useIDSButtonGroupItem-VfKx4O-O.js} +1 -1
  228. package/dist/vitest.config.d.ts +2 -0
  229. package/package.json +16 -28
  230. package/dist/Loading-rKDsRTjZ.js +0 -5638
  231. package/dist/Loading.module-C58kTwE4.js +0 -13
  232. package/dist/LogoFromSrc-KxC2Gztm.js +0 -59
  233. package/dist/MenuItem.module-3aqP1ZMw.js +0 -24
  234. package/dist/Popover.module-CLIdWyZD.js +0 -11
  235. package/dist/TabSet.module-DGDICWMf.js +0 -13
  236. package/dist/Table.module-Co33h7CZ.js +0 -32
  237. package/dist/components/Autocomplete/hooks/useAutocompleteFlags.js +0 -16
  238. package/dist/src/components/Autocomplete/hooks/useAutocompleteFlags.d.ts +0 -5
  239. /package/dist/{setupTests.d.ts → vitest.setup.d.ts} +0 -0
@@ -1,88 +1,100 @@
1
- import { jsx as n, jsxs as u } from "react/jsx-runtime";
2
- import { c as m } from "../../../index-2QXL0WYc.js";
3
- import { forwardRef as v, useEffect as N } from "react";
4
- import { useIdIfNeeded as T } from "../../../hooks/useIdIfNeeded.js";
5
- import { useTabSetItems as h } from "../hooks/useTabSetItems.js";
6
- import { TabSetItem as I } from "../components/TabSetItem.js";
7
- import { createPortal as $ } from "react-dom";
8
- const j = "ids-tab-v5131", w = "ids-tab--active-v5131", l = {
9
- tab: j,
10
- active: w
11
- }, p = v(
12
- ({ className: r, type: a = "button", ...i }, s) => /* @__PURE__ */ n(
1
+ import { jsx as r, jsxs as h, Fragment as A } from "react/jsx-runtime";
2
+ import { c as l } from "../../../index-2QXL0WYc.js";
3
+ import { forwardRef as w, useEffect as x } from "react";
4
+ import { useIdIfNeeded as g } from "../../../hooks/useIdIfNeeded.js";
5
+ import { useTabSetItems as k } from "../hooks/useTabSetItems.js";
6
+ import { TabSetItem as u } from "../components/TabSetItem.js";
7
+ import { createPortal as N } from "react-dom";
8
+ const T = "ids-tab-v5200", I = "ids-tab--active-v5200", f = {
9
+ tab: T,
10
+ active: I
11
+ }, v = w(
12
+ ({ className: d, type: o = "button", ...n }, s) => /* @__PURE__ */ r(
13
13
  "button",
14
14
  {
15
- className: m(r, l.tab),
16
- ...i,
17
- type: a,
15
+ className: l(d, f.tab),
16
+ ...n,
17
+ type: o,
18
18
  ref: s
19
19
  }
20
20
  )
21
- ), y = ({
22
- active: r,
23
- children: a,
24
- className: i,
21
+ ), $ = ({
22
+ active: d,
23
+ children: o,
24
+ className: n,
25
25
  "data-testid": s,
26
- label: b,
27
- value: o,
28
- ...d
29
- }, f) => {
30
- const e = T(d), t = h();
31
- N(() => {
26
+ label: p,
27
+ value: a,
28
+ ...m
29
+ }, b) => {
30
+ const e = g(m), t = k();
31
+ x(() => {
32
32
  t == null || t.register({
33
33
  id: e,
34
- value: o
34
+ value: a
35
35
  });
36
- }, [e, t, o]);
37
- const c = t ? t.isActive(e, o) : r;
36
+ }, [e, t, a]);
37
+ const c = t ? t.isActive(e, a) : d;
38
38
  if (t) {
39
- const x = a && c;
40
- return /* @__PURE__ */ u(
41
- I,
42
- {
43
- index: t.indexOf(e, o),
44
- handleSelection: t.activate,
45
- selected: c,
46
- value: o,
47
- children: [
48
- /* @__PURE__ */ n(
49
- p,
39
+ const y = o && c;
40
+ return /* @__PURE__ */ h(A, { children: [
41
+ /* @__PURE__ */ r(
42
+ u,
43
+ {
44
+ index: t.indexOf(e, a),
45
+ handleSelection: t.activate,
46
+ selected: c,
47
+ value: a,
48
+ children: /* @__PURE__ */ r(
49
+ v,
50
50
  {
51
- className: m(i, {
52
- [l.active]: c
51
+ className: l(n, {
52
+ [f.active]: c
53
53
  }),
54
- "aria-controls": a ? `${e}--panel` : void 0,
54
+ "aria-controls": o ? `${e}--panel` : void 0,
55
55
  role: "tab",
56
56
  "data-testid": s,
57
- ...d,
57
+ ...m,
58
58
  id: e,
59
- ref: f,
60
- children: b
59
+ ref: b,
60
+ children: p
61
61
  }
62
- ),
63
- x && t.panel && $(
64
- /* @__PURE__ */ n("div", { "aria-labelledby": e, id: `${e}--panel`, role: "tabpanel", children: a }),
65
- t.panel,
66
- `${e}--panel`
67
62
  )
68
- ]
69
- }
70
- );
63
+ }
64
+ ),
65
+ t.panel && N(
66
+ /* @__PURE__ */ r(
67
+ "div",
68
+ {
69
+ "aria-labelledby": e,
70
+ id: `${e}--panel`,
71
+ role: "tabpanel",
72
+ onKeyDown: (i) => {
73
+ (i.key === "ArrowLeft" || i.key === "ArrowRight" || i.key === "ArrowUp" || i.key === "ArrowDown") && i.stopPropagation();
74
+ },
75
+ hidden: !y,
76
+ children: o
77
+ }
78
+ ),
79
+ t.panel,
80
+ `${e}--panel`
81
+ )
82
+ ] });
71
83
  }
72
- return /* @__PURE__ */ n(
73
- p,
84
+ return /* @__PURE__ */ r(
85
+ v,
74
86
  {
75
- className: m(i, {
76
- [l.active]: c
87
+ className: l(n, {
88
+ [f.active]: c
77
89
  }),
78
90
  "data-testid": s,
79
- ...d,
91
+ ...m,
80
92
  id: e,
81
- ref: f,
82
- children: b
93
+ ref: b,
94
+ children: p
83
95
  }
84
96
  );
85
- }, k = v(y);
97
+ }, K = w($);
86
98
  export {
87
- k as IressTab
99
+ K as IressTab
88
100
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as a, jsxs as d } from "react/jsx-runtime";
2
2
  import { c as n } from "../../index-2QXL0WYc.js";
3
- import { s as e } from "../../TabSet.module-DGDICWMf.js";
4
- import { C as c } from "../../floating-ui.react-D_ysmiM3.js";
3
+ import { s as e } from "../../TabSet.module-FRUnHgA1.js";
4
+ import { C as c } from "../../floating-ui.react-nmA48tb2.js";
5
5
  import { propagateTestid as b } from "../../helpers/utility/propagateTestid.js";
6
6
  import { TabSetLayout as u } from "./TabSet.types.js";
7
7
  import { TabSetProvider as S } from "./TabSetProvider.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as u } from "react/jsx-runtime";
2
- import { s as A } from "../../../TabSet.module-DGDICWMf.js";
3
- import { a as d } from "../../../floating-ui.react-D_ysmiM3.js";
2
+ import { s as A } from "../../../TabSet.module-FRUnHgA1.js";
3
+ import { a as d } from "../../../floating-ui.react-nmA48tb2.js";
4
4
  import { focusableElements as f } from "../../../helpers/dom/focusableElements.js";
5
5
  const m = (i, t, e, a) => {
6
6
  var o;
@@ -1,17 +1,18 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../index-2QXL0WYc.js";
3
3
  import "./Table.types.js";
4
- import "../../Table.module-Co33h7CZ.js";
4
+ import "../../Table.module-r-RfIeLI.js";
5
5
  import "react";
6
6
  import "../../helpers/utility/idsLogger.js";
7
7
  import "../../hooks/useIdIfNeeded.js";
8
8
  import "./components/TableEmpty.js";
9
9
  import "../../enums.js";
10
10
  import "../../helpers/utility/propagateTestid.js";
11
- import { J as T } from "../../Loading-rKDsRTjZ.js";
11
+ import { J as c } from "../../LoadingSuspense-BwlrIicY.js";
12
12
  import "./TableProvider.js";
13
13
  import "./helpers/hasColumns.js";
14
14
  import "./components/TableRows.js";
15
+ import "./hooks/useTable.js";
15
16
  export {
16
- T as IressTable
17
+ c as IressTable
17
18
  };
@@ -2,9 +2,9 @@ import { jsx as t, jsxs as y, Fragment as B } from "react/jsx-runtime";
2
2
  import { propagateTestid as T } from "../../../helpers/utility/propagateTestid.js";
3
3
  import { c as C } from "../../../index-2QXL0WYc.js";
4
4
  import { TableEmpty as F } from "../components/TableEmpty.js";
5
- import { U as G } from "../../../Loading-rKDsRTjZ.js";
5
+ import { U as G } from "../../../LoadingSuspense-BwlrIicY.js";
6
6
  import { IressTableProvider as V } from "../TableProvider.js";
7
- import { s as f } from "../../../Table.module-Co33h7CZ.js";
7
+ import { s as f } from "../../../Table.module-r-RfIeLI.js";
8
8
  import { useState as j, useEffect as k } from "react";
9
9
  import { useIdIfNeeded as w } from "../../../hooks/useIdIfNeeded.js";
10
10
  import { hasColumns as A } from "../helpers/hasColumns.js";
@@ -1,34 +1,38 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { useMemo as r } from "react";
3
- import { composeIDSTableColumnDefs as p } from "./helpers/composeIDSTableColumnDefs.js";
4
- import { u as f } from "../../index-CtOScEKX.js";
5
- import { composeIDSTableInitialSorting as g } from "./helpers/composeIDSTableInitialSorting.js";
6
- import { getTableContext as d } from "./TableContext.js";
7
- import { findColumnByKey as c } from "./helpers/findColumnByKey.js";
8
- import { g as u, a as S } from "../../index-CmsyHM_3.js";
9
- const I = ({
10
- children: i,
11
- columns: o,
12
- rows: e
13
- }) => {
14
- const m = r(() => p(e, o), [o, e]), t = f({
1
+ import { jsx as d } from "react/jsx-runtime";
2
+ import { forwardRef as f, useMemo as r, useImperativeHandle as p } from "react";
3
+ import { composeIDSTableColumnDefs as g } from "./helpers/composeIDSTableColumnDefs.js";
4
+ import { u as c } from "../../index-Dms7F5NM.js";
5
+ import { composeIDSTableInitialSorting as u } from "./helpers/composeIDSTableInitialSorting.js";
6
+ import { getTableContext as S } from "./TableContext.js";
7
+ import { findColumnByKey as b } from "./helpers/findColumnByKey.js";
8
+ import { g as C, a as R } from "../../index-BQfnxwrU.js";
9
+ const T = ({ children: i, columns: e, rows: o }, a) => {
10
+ const m = r(() => g(o, e), [e, o]), t = c({
15
11
  columns: m,
16
- data: e,
17
- getCoreRowModel: S(),
18
- getSortedRowModel: u(),
12
+ data: o,
13
+ getCoreRowModel: R(),
14
+ getSortedRowModel: C(),
19
15
  initialState: {
20
- sorting: g(o)
16
+ sorting: u(e)
21
17
  }
22
- }), a = r(
18
+ }), n = r(
23
19
  () => ({
24
20
  api: t,
25
- getColumnByKey: (l) => c(l, o)
21
+ getColumnByKey: (s) => b(s, e)
26
22
  }),
27
23
  // eslint-disable-next-line react-hooks/exhaustive-deps -- only update when columns and rows change
28
- [e, o, t.getState().sorting]
29
- ), { Provider: n } = d();
30
- return /* @__PURE__ */ s(n, { value: a, children: i });
31
- };
24
+ [o, e, t.getState().sorting]
25
+ );
26
+ p(
27
+ a,
28
+ () => ({
29
+ api: t
30
+ }),
31
+ [t]
32
+ );
33
+ const { Provider: l } = S();
34
+ return /* @__PURE__ */ d(l, { value: n, children: i });
35
+ }, B = f(T);
32
36
  export {
33
- I as IressTableProvider
37
+ B as IressTableProvider
34
38
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { s } from "../../../Table.module-Co33h7CZ.js";
2
+ import { s } from "../../../Table.module-r-RfIeLI.js";
3
3
  import { useTable as l } from "../hooks/useTable.js";
4
4
  const u = ({ children: r }) => {
5
5
  const t = l(), o = t == null ? void 0 : t.api.getSortedRowModel().rows;
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../../helpers/utility/propagateTestid.js";
3
- import "../../../index-CtOScEKX.js";
4
- import { U as i } from "../../../Loading-rKDsRTjZ.js";
3
+ import "../../../index-Dms7F5NM.js";
4
+ import { U as i } from "../../../LoadingSuspense-BwlrIicY.js";
5
5
  import "../hooks/useTable.js";
6
6
  export {
7
7
  i as TableHeader
@@ -1,8 +1,8 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../hooks/useIDSTableColumnStyles.js";
3
3
  import "../hooks/useIDSTableColumnSort.js";
4
- import { aa as t } from "../../../Loading-rKDsRTjZ.js";
4
+ import { ad as a } from "../../../LoadingSuspense-BwlrIicY.js";
5
5
  import "../hooks/useTable.js";
6
6
  export {
7
- t as TableHeaderCell
7
+ a as TableHeaderCell
8
8
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
- import { f as $ } from "../../../index-CtOScEKX.js";
2
+ import { f as $ } from "../../../index-Dms7F5NM.js";
3
3
  import { TableBodyCell as g } from "./TableBodyCell.js";
4
4
  import { useTable as x } from "../hooks/useTable.js";
5
5
  import { propagateTestid as y } from "../../../helpers/utility/propagateTestid.js";
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
- import { a9 as a } from "../../../Loading-rKDsRTjZ.js";
3
- import "../../../Table.module-Co33h7CZ.js";
2
+ import { ac as a } from "../../../LoadingSuspense-BwlrIicY.js";
3
+ import "../../../Table.module-r-RfIeLI.js";
4
4
  import "../../../index-2QXL0WYc.js";
5
5
  export {
6
6
  a as TableSortButton
@@ -1,8 +1,8 @@
1
- import { jsx as b } from "react/jsx-runtime";
2
- import { IressTableFormattedValue as o } from "../TableFormattedValue/TableFormattedValue.js";
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { IressTableFormattedValue as b } from "../TableFormattedValue/TableFormattedValue.js";
3
3
  import { formatObjectKey as g } from "../../../helpers/formatting/formatObjectKey.js";
4
4
  import { getFormatFromValue as d } from "./getFormatFromValue.js";
5
- import { b as F } from "../../../index-CmsyHM_3.js";
5
+ import { c as F } from "../../../index-BQfnxwrU.js";
6
6
  const h = (p, a) => {
7
7
  const s = F();
8
8
  return a ? (Array.isArray(a) ? a.map((e) => [
@@ -11,8 +11,8 @@ const h = (p, a) => {
11
11
  ]) : Object.entries(a)).map(([e, r]) => {
12
12
  const f = !!(r != null && r.sort) || !!(r != null && r.sortFn), i = {
13
13
  id: e,
14
- cell: (t) => /* @__PURE__ */ b(
15
- o,
14
+ cell: (t) => /* @__PURE__ */ o(
15
+ b,
16
16
  {
17
17
  currencyCode: r == null ? void 0 : r.currencyCode,
18
18
  format: (r == null ? void 0 : r.format) ?? d(t.getValue()),
@@ -1,4 +1,4 @@
1
- import { s as r } from "../../../Table.module-Co33h7CZ.js";
1
+ import { s as r } from "../../../Table.module-r-RfIeLI.js";
2
2
  import { c as s } from "../../../index-2QXL0WYc.js";
3
3
  import { useTable as a } from "./useTable.js";
4
4
  const b = ({
@@ -1,5 +1,5 @@
1
1
  import { TABLE_CELL_FORMATS as r, TABLE_COLUMN_ALIGN as l, TABLE_SCOPES as a, TableCellFormat as T, TableColumnAlign as m, TableScope as s } from "./Table.types.js";
2
- import { J as L } from "../../Loading-rKDsRTjZ.js";
2
+ import { J as L } from "../../LoadingSuspense-BwlrIicY.js";
3
3
  import { IressTableFormattedValue as A } from "./TableFormattedValue/TableFormattedValue.js";
4
4
  import { IressTableBody as C } from "./TableBody/TableBody.js";
5
5
  export {
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../index-2QXL0WYc.js";
4
- import { K as s } from "../../Loading-rKDsRTjZ.js";
4
+ import { K as s } from "../../LoadingSuspense-BwlrIicY.js";
5
5
  import "../../helpers/utility/propagateTestid.js";
6
6
  export {
7
7
  s as IressTag
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../../hooks/useControlledState.js";
4
- import { L as s } from "../../../Loading-rKDsRTjZ.js";
4
+ import { L as s } from "../../../LoadingSuspense-BwlrIicY.js";
5
5
  import "../../../helpers/form/getValueAsEvent.js";
6
6
  export {
7
7
  s as IressTagInput
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
2
2
  import "../../../../index-2QXL0WYc.js";
3
3
  import "react";
4
4
  import "../../../../helpers/utility/propagateTestid.js";
5
- import { a0 as a } from "../../../../Loading-rKDsRTjZ.js";
5
+ import { a0 as a } from "../../../../LoadingSuspense-BwlrIicY.js";
6
6
  export {
7
7
  a as TagListInput
8
8
  };
@@ -1,4 +1,4 @@
1
- import { K as r, L as e } from "../../Loading-rKDsRTjZ.js";
1
+ import { K as r, L as e } from "../../LoadingSuspense-BwlrIicY.js";
2
2
  export {
3
3
  r as IressTag,
4
4
  e as IressTagInput
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../../index-2QXL0WYc.js";
3
- import { M as f, T as x } from "../../../Loading-rKDsRTjZ.js";
3
+ import { M as f, T as x } from "../../../LoadingSuspense-BwlrIicY.js";
4
4
  import "../../../enums.js";
5
5
  import "../../../helpers/utility/propagateTestid.js";
6
6
  import "../../Inline/Inline.types.js";
@@ -1,9 +1,9 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../../index-2QXL0WYc.js";
4
- import { ac as s } from "../../../Loading-rKDsRTjZ.js";
4
+ import { a6 as s } from "../../../LoadingSuspense-BwlrIicY.js";
5
5
  import "../../../helpers/transition/getTransitionDuration.js";
6
- import "../../../floating-ui.react-D_ysmiM3.js";
6
+ import "../../../floating-ui.react-nmA48tb2.js";
7
7
  export {
8
8
  s as IressToastAnimated
9
9
  };
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { ab as m } from "../../../Loading-rKDsRTjZ.js";
2
+ import { a5 as m } from "../../../LoadingSuspense-BwlrIicY.js";
3
3
  import "../../Icon/Icon.types.js";
4
4
  export {
5
5
  m as ToastIcon
@@ -2,10 +2,10 @@ import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "./Toaster.types.js";
4
4
  import "../../index-2QXL0WYc.js";
5
- import { ad as d } from "../../Loading-rKDsRTjZ.js";
5
+ import { a7 as f } from "../../LoadingSuspense-BwlrIicY.js";
6
6
  import "../../enums.js";
7
7
  import "../Stack/Stack.js";
8
- import "../../floating-ui.react-D_ysmiM3.js";
8
+ import "../../floating-ui.react-nmA48tb2.js";
9
9
  export {
10
- d as IressToaster
10
+ f as IressToaster
11
11
  };
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { O as s, N as a } from "../../Loading-rKDsRTjZ.js";
3
+ import { O as s, N as a } from "../../LoadingSuspense-BwlrIicY.js";
4
4
  export {
5
5
  s as IressToasterProvider,
6
6
  a as ToasterContext
@@ -1,5 +1,26 @@
1
- import "react";
2
- import { P as s } from "../../../Loading-rKDsRTjZ.js";
1
+ import { useContext as u, useEffect as a, useMemo as c } from "react";
2
+ import { N as f } from "../../../LoadingSuspense-BwlrIicY.js";
3
+ const w = (e) => {
4
+ const r = u(f);
5
+ if (r === void 0)
6
+ throw new Error("useToaster must be used within a IressToasterProvider");
7
+ const { show: t, setOptions: i, options: o, animateOut: n } = r;
8
+ return a(() => {
9
+ e && i({
10
+ ...o,
11
+ position: e ?? o.position
12
+ });
13
+ }, [e]), c(
14
+ () => ({
15
+ success: (s) => t({ ...s, status: "success" }),
16
+ error: (s) => t({ ...s, status: "error" }),
17
+ info: (s) => t({ ...s, status: "info" }),
18
+ close: n,
19
+ options: o
20
+ }),
21
+ [n, o, t]
22
+ );
23
+ };
3
24
  export {
4
- s as useToaster
25
+ w as useToaster
5
26
  };
@@ -1,16 +1,17 @@
1
- import { TOAST_ANIMATION as o, TOAST_STATUS as r } from "./Toast/Toast.types.js";
2
- import { TOASTER_ARIA_ATTRIBUTES as I, TOASTER_POSITION as e, TOAST_POSITION_ANIMATION_MATRIX as t, ToasterPosition as O } from "./Toaster.types.js";
3
- import { M as S, O as _, T as N, N as P, P as R } from "../../Loading-rKDsRTjZ.js";
1
+ import { TOAST_ANIMATION as r, TOAST_STATUS as s } from "./Toast/Toast.types.js";
2
+ import { TOASTER_ARIA_ATTRIBUTES as e, TOASTER_POSITION as t, TOAST_POSITION_ANIMATION_MATRIX as I, ToasterPosition as O } from "./Toaster.types.js";
3
+ import { M as S, O as _, T as N, N as x } from "../../LoadingSuspense-BwlrIicY.js";
4
+ import { useToaster as f } from "./hooks/useToaster.js";
4
5
  export {
5
6
  S as IressToast,
6
7
  _ as IressToasterProvider,
7
- I as TOASTER_ARIA_ATTRIBUTES,
8
- e as TOASTER_POSITION,
9
- o as TOAST_ANIMATION,
10
- t as TOAST_POSITION_ANIMATION_MATRIX,
11
- r as TOAST_STATUS,
8
+ e as TOASTER_ARIA_ATTRIBUTES,
9
+ t as TOASTER_POSITION,
10
+ r as TOAST_ANIMATION,
11
+ I as TOAST_POSITION_ANIMATION_MATRIX,
12
+ s as TOAST_STATUS,
12
13
  N as Toast,
13
- P as ToasterContext,
14
+ x as ToasterContext,
14
15
  O as ToasterPosition,
15
- R as useToaster
16
+ f as useToaster
16
17
  };
@@ -7,7 +7,7 @@ import "../CheckboxMark/CheckboxMark.types.js";
7
7
  import { IressCheckboxMark as N } from "../CheckboxMark/CheckboxMark.js";
8
8
  import { ButtonCssClass as T } from "../Button/Button.types.js";
9
9
  import { ToggleLayout as w } from "./Toggle.types.js";
10
- const L = "ids-toggle--toggle-base-v5131", M = "ids-toggle--checkbox-mark-v5131", S = "ids-toggle--toggle-button-v5131", j = "ids-toggle--button-checked-v5131", R = "ids-toggle--toggle-button-container-v5131", $ = "ids-toggle--label-v5131", E = "ids-toggle--layout__inline-v5131", G = "ids-toggle--layout__stack-v5131", t = {
10
+ const L = "ids-toggle--toggle-base-v5200", M = "ids-toggle--checkbox-mark-v5200", S = "ids-toggle--toggle-button-v5200", j = "ids-toggle--button-checked-v5200", R = "ids-toggle--toggle-button-container-v5200", $ = "ids-toggle--label-v5200", E = "ids-toggle--layout__inline-v5200", G = "ids-toggle--layout__stack-v5200", t = {
11
11
  toggleBase: L,
12
12
  checkboxMark: M,
13
13
  toggleButton: S,
@@ -15,8 +15,8 @@ const L = "ids-toggle--toggle-base-v5131", M = "ids-toggle--checkbox-mark-v5131"
15
15
  toggleButtonContainer: R,
16
16
  label: $,
17
17
  layout__inline: E,
18
- "layout__inline-reverse": "ids-toggle--layout__inline-reverse-v5131",
19
- "layout__inline-between": "ids-toggle--layout__inline-between-v5131",
18
+ "layout__inline-reverse": "ids-toggle--layout__inline-reverse-v5200",
19
+ "layout__inline-between": "ids-toggle--layout__inline-between-v5200",
20
20
  layout__stack: G
21
21
  }, O = ({
22
22
  hiddenLabel: o,
@@ -1,36 +1,36 @@
1
- import { jsxs as p, jsx as a } from "react/jsx-runtime";
1
+ import { jsxs as f, jsx as a } from "react/jsx-runtime";
2
2
  import { useState as P, useEffect as R, Fragment as S } from "react";
3
3
  import { c as j } from "../../index-2QXL0WYc.js";
4
- import { d as E, o as H, b as L, f as M, s as B, t as D, v as G, g as U, h as W, i as k } from "../../floating-ui.react-D_ysmiM3.js";
5
- import { FloatingUIAlign as q } from "../../enums.js";
4
+ import { i as E, o as H, p as L, h as M, q as k, r as q, t as B, k as D, l as G, m as U } from "../../floating-ui.react-nmA48tb2.js";
5
+ import { FloatingUIAlign as W } from "../../enums.js";
6
6
  import { propagateTestid as m } from "../../helpers/utility/propagateTestid.js";
7
7
  import { toArray as z } from "../../helpers/formatting/toArray.js";
8
8
  import { idsLogger as J } from "../../helpers/utility/idsLogger.js";
9
9
  import { focusableElements as K } from "../../helpers/dom/focusableElements.js";
10
- const Q = "ids-tooltip-v5131", V = "ids-tooltip--content-v5131", r = {
10
+ const Q = "ids-tooltip-v5200", V = "ids-tooltip--content-v5200", r = {
11
11
  tooltip: Q,
12
12
  content: V
13
13
  }, X = ({
14
14
  children: o,
15
15
  className: u,
16
16
  align: n = "top",
17
- delay: d = 500,
18
- open: h = !1,
17
+ delay: h = 500,
18
+ open: d = !1,
19
19
  tooltipText: g,
20
20
  "data-testid": s,
21
21
  ...v
22
22
  }) => {
23
23
  const F = {
24
24
  [r.tooltip]: !0
25
- }, I = j(u, F), i = n === "auto", [c, b] = P(h), { refs: t, floatingStyles: A, context: e } = E({
25
+ }, I = j(u, F), i = n === "auto", [c, A] = P(d), { refs: t, floatingStyles: b, context: e } = E({
26
26
  placement: i ? void 0 : n,
27
27
  open: c,
28
- onOpenChange: b,
29
- middleware: [H(5), i ? L() : M(), B()]
30
- }), x = D(e, {
28
+ onOpenChange: A,
29
+ middleware: [H(5), i ? L() : M(), k()]
30
+ }), x = q(e, {
31
31
  move: !1,
32
- delay: { open: d, close: 500 }
33
- }), y = G(e), C = U(e), T = W(e, { role: "tooltip" }), { getReferenceProps: w, getFloatingProps: N } = k([
32
+ delay: { open: h, close: 500 }
33
+ }), y = B(e), C = D(e), T = G(e, { role: "tooltip" }), { getReferenceProps: w, getFloatingProps: N } = U([
34
34
  x,
35
35
  y,
36
36
  C,
@@ -44,7 +44,7 @@ const Q = "ids-tooltip-v5131", V = "ids-tooltip--content-v5131", r = {
44
44
  To fix this warning, change the activator to either IressButton, IressMenuItem or another focusable component.`,
45
45
  "warn"
46
46
  );
47
- }, [o, t.reference]), /* @__PURE__ */ p("div", { className: I, ...v, "data-testid": s, children: [
47
+ }, [o, t.reference]), /* @__PURE__ */ f("div", { className: I, ...v, "data-testid": s, children: [
48
48
  /* @__PURE__ */ a(
49
49
  "div",
50
50
  {
@@ -59,19 +59,19 @@ const Q = "ids-tooltip-v5131", V = "ids-tooltip--content-v5131", r = {
59
59
  "div",
60
60
  {
61
61
  className: r.content,
62
- style: A,
62
+ style: b,
63
63
  "data-testid": m(s, "tooltip-text"),
64
64
  ref: t.setFloating,
65
65
  ...N(),
66
- children: z(g).map((l, f, O) => /* @__PURE__ */ p(S, { children: [
66
+ children: z(g).map((l, p, O) => /* @__PURE__ */ f(S, { children: [
67
67
  l,
68
- f < O.length - 1 && /* @__PURE__ */ a("br", {})
69
- ] }, f))
68
+ p < O.length - 1 && /* @__PURE__ */ a("br", {})
69
+ ] }, p))
70
70
  }
71
71
  )
72
72
  ] });
73
73
  };
74
- X.Align = q;
74
+ X.Align = W;
75
75
  export {
76
76
  X as IressTooltip
77
77
  };