@iress-oss/ids-components 6.0.0-alpha.1 → 6.0.0-alpha.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 (141) hide show
  1. package/dist/{Autocomplete-CLvWVHp6.js → Autocomplete-C5ubHBTi.js} +1 -1
  2. package/dist/{Button-D6AL0bia.js → Button-mmhMLwp9.js} +4 -1
  3. package/dist/{Provider-BXQiO7Gp.js → Provider-8wS70V56.js} +13 -13
  4. package/dist/{TableProvider-_4Whj6P5.js → TableProvider-bdUNuoG-.js} +1 -11
  5. package/dist/components/Alert/Alert.js +2 -2
  6. package/dist/components/Alert/Alert.styles.js +14 -14
  7. package/dist/components/Autocomplete/Autocomplete.js +2 -2
  8. package/dist/components/Autocomplete/index.js +1 -1
  9. package/dist/components/Badge/Badge.styles.js +4 -4
  10. package/dist/components/Button/Button.js +1 -1
  11. package/dist/components/Button/CloseButton/CloseButton.js +1 -1
  12. package/dist/components/Button/index.js +1 -1
  13. package/dist/components/Card/Card.styles.js +16 -16
  14. package/dist/components/Checkbox/Checkbox.styles.js +5 -5
  15. package/dist/components/CheckboxGroup/CheckboxGroup.styles.js +10 -10
  16. package/dist/components/Container/Container.styles.js +1 -1
  17. package/dist/components/Divider/Divider.styles.js +1 -1
  18. package/dist/components/Expander/Expander.styles.js +3 -3
  19. package/dist/components/Field/Field.styles.js +9 -9
  20. package/dist/components/Field/FieldGroup/FieldGroup.styles.js +5 -5
  21. package/dist/components/Field/components/FieldHint.js +1 -1
  22. package/dist/components/Filter/Filter.js +3 -3
  23. package/dist/components/Filter/Filter.styles.js +3 -3
  24. package/dist/components/Filter/components/FilterResetButton.js +1 -1
  25. package/dist/components/Inline/Inline.styles.js +1 -1
  26. package/dist/components/Input/Input.js +84 -86
  27. package/dist/components/Input/Input.styles.js +7 -7
  28. package/dist/components/Label/Label.styles.js +3 -3
  29. package/dist/components/Link/Link.styles.js +2 -2
  30. package/dist/components/Menu/Menu.js +1 -1
  31. package/dist/components/Menu/Menu.styles.js +11 -11
  32. package/dist/components/Menu/MenuItem/MenuItem.js +2 -2
  33. package/dist/components/Menu/MenuText/MenuText.js +1 -1
  34. package/dist/components/Modal/Modal.js +106 -112
  35. package/dist/components/Modal/Modal.styles.js +8 -8
  36. package/dist/components/Popover/components/NestedPopoverActivator.js +1 -1
  37. package/dist/components/Popover/components/PopoverContent.js +1 -1
  38. package/dist/components/Popover/helpers/handlePopoverTabKey.js +1 -1
  39. package/dist/components/Popover/hooks/usePopover.js +1 -1
  40. package/dist/components/Popover/hooks/usePopoverItem.js +1 -1
  41. package/dist/components/Popover/hooks/usePopoverNavigation.js +1 -1
  42. package/dist/components/Progress/Progress.js +35 -41
  43. package/dist/components/Progress/Progress.styles.js +3 -3
  44. package/dist/components/Provider/Provider.js +3 -3
  45. package/dist/components/Provider/index.js +1 -1
  46. package/dist/components/Radio/Radio.js +66 -60
  47. package/dist/components/Radio/Radio.styles.js +5 -5
  48. package/dist/components/RadioGroup/RadioGroup.styles.js +4 -4
  49. package/dist/components/Readonly/Readonly.styles.js +4 -4
  50. package/dist/components/RichSelect/RichSelect.js +2 -2
  51. package/dist/components/RichSelect/RichSelect.styles.js +9 -9
  52. package/dist/components/RichSelect/SelectHeading/SelectHeading.js +1 -1
  53. package/dist/components/RichSelect/SelectLabel/SelectLabel.styles.js +5 -5
  54. package/dist/components/RichSelect/SelectTags/SelectTags.js +49 -51
  55. package/dist/components/RichSelect/SelectTags/SelectTags.styles.js +3 -3
  56. package/dist/components/RichSelect/index.js +1 -1
  57. package/dist/components/Select/Select.styles.js +8 -8
  58. package/dist/components/Skeleton/Skeleton.styles.js +1 -1
  59. package/dist/components/SkipLink/SkipLink.js +1 -1
  60. package/dist/components/SkipLink/SkipLink.styles.js +1 -1
  61. package/dist/components/Slideout/Slideout.js +75 -70
  62. package/dist/components/Slideout/Slideout.styles.js +7 -7
  63. package/dist/components/Slideout/components/SlideoutInner.js +1 -1
  64. package/dist/components/Slideout/hooks/usePushElement.js +1 -1
  65. package/dist/components/Slider/Slider.styles.js +3 -3
  66. package/dist/components/Stack/Stack.styles.js +1 -1
  67. package/dist/components/TabSet/Tab/Tab.js +1 -1
  68. package/dist/components/TabSet/Tab/Tab.styles.js +2 -2
  69. package/dist/components/TabSet/TabSet.js +55 -52
  70. package/dist/components/TabSet/TabSet.styles.js +3 -3
  71. package/dist/components/Table/Table.js +1 -1
  72. package/dist/components/Table/TableBody/TableBody.js +1 -1
  73. package/dist/components/Table/TableProvider.js +2 -2
  74. package/dist/components/Table/components/TableEmpty.js +1 -1
  75. package/dist/components/Table/components/TableHeader.js +1 -1
  76. package/dist/components/Table/components/TableHeaderCell.js +1 -1
  77. package/dist/components/Table/components/TableRows.js +1 -1
  78. package/dist/components/Table/helpers/composeTableColumnDefs.js +1 -1
  79. package/dist/components/Table/hooks/useTableColumnSort.js +1 -1
  80. package/dist/components/Table/hooks/useTableColumnStyles.js +1 -1
  81. package/dist/components/Tag/Tag.js +1 -1
  82. package/dist/components/Tag/Tag.styles.js +4 -4
  83. package/dist/components/Text/Text.styles.js +3 -2
  84. package/dist/components/Toaster/Toaster.js +1 -1
  85. package/dist/components/Toaster/Toaster.styles.js +1 -1
  86. package/dist/components/Toaster/components/Toast/Toast.js +1 -1
  87. package/dist/components/Toaster/components/Toast/Toast.styles.js +12 -12
  88. package/dist/components/Toaster/components/Toast/ToastAnimated.js +18 -16
  89. package/dist/components/Toggle/Toggle.js +63 -58
  90. package/dist/components/Toggle/Toggle.styles.js +12 -12
  91. package/dist/components/Tooltip/Tooltip.js +1 -1
  92. package/dist/components/Tooltip/Tooltip.styles.js +1 -1
  93. package/dist/components/ValidationMessage/ValidationMessage.js +1 -1
  94. package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +4 -4
  95. package/dist/{composeTableColumnDefs-Hmd6yfdj.js → composeTableColumnDefs-BfFBOARB.js} +0 -10
  96. package/dist/constants.js +1 -1
  97. package/dist/{floating-ui.react-CmSaAiNF.js → floating-ui.react-BetVZ099.js} +1 -1
  98. package/dist/helpers/styling/mapGutterToGap.js +7 -7
  99. package/dist/helpers/transition/getTransitionDuration.js +2 -2
  100. package/dist/{index-CvOVcYUc.js → index-CZ9ot38T.js} +83 -131
  101. package/dist/{index.esm-8uZEha-3.js → index.esm-CL8gh5wr.js} +0 -4
  102. package/dist/main.js +3 -3
  103. package/dist/patterns/Loading/Loading.styles.js +13 -13
  104. package/dist/patterns/Loading/LoadingSuspense.js +27 -27
  105. package/dist/patterns/Loading/components/ComponentLoading.js +38 -43
  106. package/dist/patterns/Loading/components/PageLoading.js +57 -60
  107. package/dist/patterns/Loading/components/ValidateLoading.js +1 -1
  108. package/dist/patterns/Loading/hooks/useEstimatedProgressValue.js +8 -12
  109. package/dist/patterns/Loading/hooks/useShouldRenderLoading.js +14 -14
  110. package/dist/patterns/Shadow/Shadow.js +8831 -19057
  111. package/dist/src/components/Alert/Alert.styles.d.ts +1 -1
  112. package/dist/src/components/Badge/Badge.styles.d.ts +2 -2
  113. package/dist/src/components/Card/Card.styles.d.ts +2 -2
  114. package/dist/src/components/Checkbox/Checkbox.styles.d.ts +3 -3
  115. package/dist/src/components/CheckboxGroup/CheckboxGroup.styles.d.ts +4 -4
  116. package/dist/src/components/Expander/Expander.styles.d.ts +2 -2
  117. package/dist/src/components/Field/Field.styles.d.ts +6 -6
  118. package/dist/src/components/Inline/Inline.d.ts +1 -2
  119. package/dist/src/components/Menu/Menu.styles.d.ts +5 -5
  120. package/dist/src/components/Modal/Modal.styles.d.ts +2 -2
  121. package/dist/src/components/Radio/Radio.styles.d.ts +1 -1
  122. package/dist/src/components/RadioGroup/RadioGroup.styles.d.ts +4 -4
  123. package/dist/src/components/RichSelect/RichSelect.styles.d.ts +7 -7
  124. package/dist/src/components/Row/Row.d.ts +1 -2
  125. package/dist/src/components/Select/Select.styles.d.ts +7 -7
  126. package/dist/src/components/Skeleton/Skeleton.styles.d.ts +1 -1
  127. package/dist/src/components/Slideout/Slideout.styles.d.ts +2 -2
  128. package/dist/src/components/Stack/Stack.d.ts +1 -2
  129. package/dist/src/components/Toaster/components/Toast/Toast.styles.d.ts +4 -4
  130. package/dist/src/components/Toggle/Toggle.d.ts +10 -2
  131. package/dist/src/components/Toggle/Toggle.styles.d.ts +4 -4
  132. package/dist/src/interfaces.d.ts +8 -10
  133. package/dist/src/patterns/Loading/Loading.styles.d.ts +10 -10
  134. package/dist/src/styled-system/jsx/create-style-context.d.ts +17 -10
  135. package/dist/src/styled-system/tokens/tokens.d.ts +1 -1
  136. package/dist/src/styled-system/types/conditions.d.ts +1 -1
  137. package/dist/src/styled-system/types/jsx.d.ts +8 -6
  138. package/dist/src/styled-system/types/prop-type.d.ts +2 -2
  139. package/dist/src/types.d.ts +3 -1
  140. package/dist/style.css +1 -1
  141. package/package.json +17 -17
@@ -16,7 +16,7 @@ const t = ["wrapper", "control", "element"], c = e({
16
16
  display: "block",
17
17
  width: "[100%]",
18
18
  height: "[calc({sizes.input.height} - 2px)]",
19
- paddingInline: "spacing.200",
19
+ paddingInline: "spacing.2",
20
20
  appearance: "none",
21
21
  border: "[0]",
22
22
  background: "[transparent]",
@@ -32,7 +32,7 @@ const t = ["wrapper", "control", "element"], c = e({
32
32
  width: {
33
33
  2: {
34
34
  wrapper: {
35
- width: "[calc({spacing.spacing.200} + calc({sizes.chevron.select} * 2) + {sizes.input.2})]"
35
+ width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.2})]"
36
36
  },
37
37
  element: {
38
38
  width: "auto"
@@ -40,7 +40,7 @@ const t = ["wrapper", "control", "element"], c = e({
40
40
  },
41
41
  4: {
42
42
  wrapper: {
43
- width: "[calc({spacing.spacing.200} + calc({sizes.chevron.select} * 2) + {sizes.input.4})]"
43
+ width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.4})]"
44
44
  },
45
45
  element: {
46
46
  width: "auto"
@@ -48,7 +48,7 @@ const t = ["wrapper", "control", "element"], c = e({
48
48
  },
49
49
  6: {
50
50
  wrapper: {
51
- width: "[calc({spacing.spacing.200} + calc({sizes.chevron.select} * 2) + {sizes.input.6})]"
51
+ width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.6})]"
52
52
  },
53
53
  element: {
54
54
  width: "auto"
@@ -56,7 +56,7 @@ const t = ["wrapper", "control", "element"], c = e({
56
56
  },
57
57
  8: {
58
58
  wrapper: {
59
- width: "[calc({spacing.spacing.200} + calc({sizes.chevron.select} * 2) + {sizes.input.8})]"
59
+ width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.8})]"
60
60
  },
61
61
  element: {
62
62
  width: "auto"
@@ -64,7 +64,7 @@ const t = ["wrapper", "control", "element"], c = e({
64
64
  },
65
65
  10: {
66
66
  wrapper: {
67
- width: "[calc({spacing.spacing.200} + calc({sizes.chevron.select} * 2) + {sizes.input.10})]"
67
+ width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.10})]"
68
68
  },
69
69
  element: {
70
70
  width: "auto"
@@ -72,12 +72,12 @@ const t = ["wrapper", "control", "element"], c = e({
72
72
  },
73
73
  12: {
74
74
  wrapper: {
75
- width: "[calc({spacing.spacing.200} + calc({sizes.chevron.select} * 2) + {sizes.input.12})]"
75
+ width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.12})]"
76
76
  }
77
77
  },
78
78
  16: {
79
79
  wrapper: {
80
- width: "[calc({spacing.spacing.200} + calc({sizes.chevron.select} * 2) + {sizes.input.16})]"
80
+ width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.16})]"
81
81
  },
82
82
  element: {
83
83
  width: "auto"
@@ -25,7 +25,7 @@ const o = t({
25
25
  },
26
26
  text: {
27
27
  width: "[100%]",
28
- height: "[spacing.600]"
28
+ height: "[spacing.6]"
29
29
  }
30
30
  }
31
31
  },
@@ -1,6 +1,6 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { forwardRef as m } from "react";
3
- import { I as p } from "../../Button-D6AL0bia.js";
3
+ import { I as p } from "../../Button-mmhMLwp9.js";
4
4
  import "../Button/CloseButton/CloseButton.js";
5
5
  import { c as k } from "../../cx-DN21T1EH.js";
6
6
  import { skipLink as n } from "./SkipLink.styles.js";
@@ -6,7 +6,7 @@ const s = t({
6
6
  left: "[50%]",
7
7
  zIndex: "100",
8
8
  transform: "[translateX(-50%) translateY(-125%)]",
9
- marginTop: "spacing.200",
9
+ marginTop: "spacing.2",
10
10
  _focus: {
11
11
  transform: "[translateX(-50%) translateY(0)]"
12
12
  }
@@ -1,23 +1,23 @@
1
- import { jsx as C } from "react/jsx-runtime";
2
- import { c as V } from "../../cx-DN21T1EH.js";
3
- import { useState as ee, useRef as A, useEffect as b, useMemo as O, useCallback as te } from "react";
4
- import { u as ne, b as oe, c as re, d as se, e as le, g as ie } from "../../floating-ui.react-CmSaAiNF.js";
1
+ import { jsx as _ } from "react/jsx-runtime";
2
+ import { c as z } from "../../cx-DN21T1EH.js";
3
+ import { useState as V, useRef as ee, useEffect as b, useMemo as A, useCallback as te } from "react";
4
+ import { u as ne, b as oe, c as re, d as se, e as le, g as ie } from "../../floating-ui.react-BetVZ099.js";
5
5
  import { idsLogger as ue } from "../../helpers/utility/idsLogger.js";
6
6
  import { propagateTestid as ae } from "../../helpers/utility/propagateTestid.js";
7
7
  import { SlideoutInner as fe } from "./components/SlideoutInner.js";
8
8
  import { slideout as ce } from "./Slideout.styles.js";
9
9
  import { useIdIfNeeded as de } from "../../hooks/useIdIfNeeded.js";
10
10
  import { IressText as he } from "../Text/Text.js";
11
- import { usePushElement as me } from "./hooks/usePushElement.js";
12
- import { s as pe } from "../../is-valid-prop-Ce0wiweq.js";
13
- import { GlobalCSSClass as P } from "../../enums.js";
14
- import { timeStringToNumber as ge } from "../../helpers/transition/timeStringToNumber.js";
15
- import { useProviderSlideout as ye } from "./hooks/useProviderSlideout.js";
11
+ import { usePushElement as pe } from "./hooks/usePushElement.js";
12
+ import { s as me } from "../../is-valid-prop-Ce0wiweq.js";
13
+ import { GlobalCSSClass as O } from "../../enums.js";
14
+ import { useProviderSlideout as ge } from "./hooks/useProviderSlideout.js";
15
+ import { getTransitionDuration as ye } from "../../helpers/transition/getTransitionDuration.js";
16
16
  function Se(o) {
17
17
  function l() {
18
18
  r && (e.length > 0 && /^[~+>]$/.test(e[e.length - 1]) && e.push(" "), e.push(r));
19
19
  }
20
- var e = [], t, r, i, n = [0], s = 0, a, u = /(?:[^\\]|(?:^|[^\\])(?:\\\\)+)$/, d = /^\s+$/, p = [
20
+ var e = [], t, r, i, n = [0], s = 0, a, u = /(?:[^\\]|(?:^|[^\\])(?:\\\\)+)$/, d = /^\s+$/, m = [
21
21
  /\s+|\/\*|["'>~+[(]/g,
22
22
  // general
23
23
  /\s+|\/\*|["'[\]()]/g,
@@ -30,7 +30,7 @@ function Se(o) {
30
30
  // comment
31
31
  ];
32
32
  for (o = o.trim(); ; )
33
- if (r = "", i = p[n[n.length - 1]], i.lastIndex = s, t = i.exec(o), t)
33
+ if (r = "", i = m[n[n.length - 1]], i.lastIndex = s, t = i.exec(o), t)
34
34
  if (a = s, s = i.lastIndex, a < s - t[0].length && (r = o.substring(
35
35
  a,
36
36
  s - t[0].length
@@ -40,7 +40,7 @@ function Se(o) {
40
40
  else if (t[0] === "(")
41
41
  n.push(2);
42
42
  else if (/^["']$/.test(t[0]))
43
- n.push(3), p[3] = new RegExp(t[0], "g");
43
+ n.push(3), m[3] = new RegExp(t[0], "g");
44
44
  else if (t[0] === "/*")
45
45
  n.push(4);
46
46
  else if (/^[\])]$/.test(t[0]) && n.length > 0)
@@ -56,23 +56,23 @@ function Se(o) {
56
56
  }
57
57
  return e.join("").trim();
58
58
  }
59
- function be(o, l = document, e = null) {
60
- return we(o, !1, l, e);
59
+ function Ee(o, l = document, e = null) {
60
+ return be(o, !1, l, e);
61
61
  }
62
- function we(o, l, e, t = null) {
62
+ function be(o, l, e, t = null) {
63
63
  o = Se(o);
64
64
  let r = e.querySelector(o);
65
- return document.head.createShadowRoot || document.head.attachShadow ? r || _(o, ",").reduce((n, s) => {
65
+ return document.head.createShadowRoot || document.head.attachShadow ? r || C(o, ",").reduce((n, s) => {
66
66
  if (n)
67
67
  return n;
68
- const a = _(s.replace(/^\s+/g, "").replace(/\s*([>+~]+)\s*/g, "$1"), " ").filter((g) => !!g).map((g) => _(g, ">")), u = a.length - 1, d = a[u][a[u].length - 1], p = Ie(d, e, t), E = Ee(a, u, e);
69
- return n = p.find(E), n || null;
68
+ const a = C(s.replace(/^\s+/g, "").replace(/\s*([>+~]+)\s*/g, "$1"), " ").filter((g) => !!g).map((g) => C(g, ">")), u = a.length - 1, d = a[u][a[u].length - 1], m = Ne(d, e, t), w = we(a, u, e);
69
+ return n = m.find(w), n || null;
70
70
  }, null) : r;
71
71
  }
72
- function Ee(o, l, e) {
72
+ function we(o, l, e) {
73
73
  return (t) => {
74
74
  let r = l, i = t, n = !1;
75
- for (; i && !Ne(i); ) {
75
+ for (; i && !Ie(i); ) {
76
76
  let s = !0;
77
77
  if (o[r].length === 1)
78
78
  s = i.matches(o[r]);
@@ -96,17 +96,17 @@ function Ee(o, l, e) {
96
96
  return n;
97
97
  };
98
98
  }
99
- function _(o, l) {
99
+ function C(o, l) {
100
100
  return o.match(/\\?.|^$/g).reduce((e, t) => (t === '"' && !e.sQuote ? (e.quote ^= 1, e.a[e.a.length - 1] += t) : t === "'" && !e.quote ? (e.sQuote ^= 1, e.a[e.a.length - 1] += t) : !e.quote && !e.sQuote && t === l ? e.a.push("") : e.a[e.a.length - 1] += t, e), { a: [""] }).a;
101
101
  }
102
- function Ne(o) {
102
+ function Ie(o) {
103
103
  return o.nodeType === Node.DOCUMENT_FRAGMENT_NODE || o.nodeType === Node.DOCUMENT_NODE;
104
104
  }
105
105
  function T(o, l) {
106
106
  const e = o.parentNode;
107
107
  return e && e.host && e.nodeType === 11 ? e.host : e === l ? null : e;
108
108
  }
109
- function Ie(o = null, l, e = null) {
109
+ function Ne(o = null, l, e = null) {
110
110
  let t = [];
111
111
  if (e)
112
112
  t = e;
@@ -133,69 +133,74 @@ const Ue = ({
133
133
  heading: a,
134
134
  mode: u = "overlay",
135
135
  onEntered: d,
136
- onExited: p,
137
- onShowChange: E,
136
+ onExited: m,
137
+ onShowChange: w,
138
138
  onStatus: g,
139
- onTransitionEnd: R,
139
+ onTransitionEnd: D,
140
140
  position: y = "right",
141
- show: N,
142
- size: I = "sm",
143
- style: F,
141
+ show: I,
142
+ size: N = "sm",
143
+ style: P,
144
144
  ...x
145
145
  }) => {
146
- const [U, Q] = ee(i), M = A(240), S = A(null), w = ye(x.id), q = de({ id: x.id }), v = `${q}--heading`, j = w.opened || N || U, D = (f, m, k) => {
147
- w?.show?.(f), Q(f), E?.(f, k);
146
+ const [F, U] = V(i);
147
+ let M = 240;
148
+ const S = ee(null), E = ge(x.id), R = de({ id: x.id }), v = `${R}--heading`, Q = E.opened || I || F, q = (f, p, k) => {
149
+ E?.show?.(f), U(f), w?.(f, k);
148
150
  }, { context: h } = ne({
149
- open: j,
150
- onOpenChange: D
151
- }), G = oe(h, {
151
+ open: Q,
152
+ onOpenChange: q
153
+ }), j = oe(h, {
152
154
  enabled: !0,
153
155
  outsidePress: !1
154
- }), H = re(h), B = se([G, H]), { isMounted: L, status: c } = le(h, {
155
- duration: M.current
156
- }), J = ce({
156
+ }), G = re(h), H = se([j, G]);
157
+ h.refs.floating.current && (M = ye(
158
+ h.refs.floating.current,
159
+ 1.2,
160
+ 240
161
+ ));
162
+ const { isMounted: B, status: c } = le(h, {
163
+ duration: M
164
+ }), L = ce({
157
165
  position: y,
158
- size: I,
166
+ size: N,
159
167
  status: c,
160
168
  mode: u
161
169
  });
162
170
  b(() => {
163
- w.opened && N && ue(
171
+ E.opened && I && ue(
164
172
  "IressSlideout: Please use either IressSlideoutProvider for uncontrolled components, or the show prop for controlled components, rather than both. If you use both, the open state of the slideout will become unpredictable. If you want to show a slideout by default in uncontrolled mode, use the defaultShow prop."
165
173
  );
166
- }, [w.opened, N]), b(() => {
174
+ }, [E.opened, I]), b(() => {
167
175
  g?.(c);
168
176
  }, [c, g]), b(() => {
169
- const f = (m) => typeof m == "string" ? be(m) : m instanceof Element ? m : m?.current;
177
+ const f = (p) => typeof p == "string" ? Ee(p) : p instanceof Element ? p : p?.current;
170
178
  return u === "overlay" ? S.current = null : S.current = f(n), () => {
171
179
  S.current = null;
172
180
  };
173
181
  }, [n, u]), b(() => {
174
- c === "initial" && h.refs.floating?.current && (M.current = ge(
175
- window.getComputedStyle(h.refs.floating.current, null)?.getPropertyValue("--iress-transition-duration") || ".3s"
176
- ) * 1.2);
177
- }, [h.refs.floating, c]), b(() => {
178
182
  c === "open" && h.refs.floating?.current?.focus();
179
183
  }, [h.refs.floating, c]);
180
- const K = O(
184
+ const J = A(
181
185
  () => ({
186
+ // eslint-disable-next-line react-hooks/refs -- we want to forward the ref
182
187
  element: S.current ?? null,
183
188
  isActive: u === "push",
184
189
  position: y,
185
- size: I,
190
+ size: N,
186
191
  status: c
187
192
  }),
188
- [S, u, y, I, c]
193
+ [S, u, y, N, c]
189
194
  );
190
- me(K);
191
- const W = te(
195
+ pe(J);
196
+ const K = te(
192
197
  (f) => {
193
- R?.(f);
194
- const m = y === "right" ? "right" : "left";
195
- !(f.propertyName === m || f.propertyName === "opacity" || !f.propertyName) || f.target !== f.currentTarget || (c === "open" ? d?.() : c === "close" && p?.());
198
+ D?.(f);
199
+ const p = y === "right" ? "right" : "left";
200
+ !(f.propertyName === p || f.propertyName === "opacity" || !f.propertyName) || f.target !== f.currentTarget || (c === "open" ? d?.() : c === "close" && m?.());
196
201
  },
197
- [R, y, c, d, p]
198
- ), $ = O(() => typeof a == "string" ? /* @__PURE__ */ C(
202
+ [D, y, c, d, m]
203
+ ), $ = A(() => typeof a == "string" ? /* @__PURE__ */ _(
199
204
  he,
200
205
  {
201
206
  id: v,
@@ -204,32 +209,32 @@ const Ue = ({
204
209
  children: a
205
210
  }
206
211
  ) : a, [r, v, a]);
207
- if (!L) return null;
208
- const X = V(
209
- J.root,
212
+ if (!B) return null;
213
+ const W = z(
214
+ L.root,
210
215
  l,
211
- P.Slideout,
212
- c === "open" && P.SlideoutOpen
213
- ), [Y, Z] = pe(x), z = {
216
+ O.Slideout,
217
+ c === "open" && O.SlideoutOpen
218
+ ), [X, Y] = me(x), Z = {
214
219
  "aria-labelledby": $ ? v : void 0,
215
220
  children: o,
216
- className: X,
221
+ className: W,
217
222
  closeText: e,
218
223
  "data-testid": r,
219
224
  footer: s,
220
225
  floatingRef: (f) => h.refs.setFloating(f),
221
226
  heading: $,
222
- id: q,
223
- onOpenChange: D,
224
- ...Y,
225
- ...B.getFloatingProps(Z),
226
- onTransitionEnd: W
227
+ id: R,
228
+ onOpenChange: q,
229
+ ...X,
230
+ ...H.getFloatingProps(Y),
231
+ onTransitionEnd: K
227
232
  };
228
- return /* @__PURE__ */ C(ie, { root: t, children: /* @__PURE__ */ C(
233
+ return /* @__PURE__ */ _(ie, { root: t, children: /* @__PURE__ */ _(
229
234
  fe,
230
235
  {
231
- ...z,
232
- style: F,
236
+ ...Z,
237
+ style: P,
233
238
  "data-testid": r
234
239
  }
235
240
  ) });
@@ -5,7 +5,7 @@ const i = t({
5
5
  root: {
6
6
  textStyle: "typography.body.md",
7
7
  position: "fixed",
8
- insetBlockStart: "spacing.000",
8
+ insetBlockStart: "spacing.0",
9
9
  height: "[100%]",
10
10
  maxWidth: "[100%]",
11
11
  overflowY: "auto",
@@ -31,15 +31,15 @@ const i = t({
31
31
  },
32
32
  closeButton: {
33
33
  position: "absolute",
34
- insetInlineEnd: "spacing.050",
35
- insetBlockStart: "spacing.050"
34
+ insetInlineEnd: "spacing.1",
35
+ insetBlockStart: "spacing.1"
36
36
  }
37
37
  },
38
38
  variants: {
39
39
  position: {
40
40
  right: {
41
41
  root: {
42
- insetInlineEnd: "spacing.000",
42
+ insetInlineEnd: "spacing.0",
43
43
  borderStartStartRadius: "radius.050",
44
44
  borderEndStartRadius: "radius.050",
45
45
  borderStartEndRadius: "radius.000",
@@ -51,7 +51,7 @@ const i = t({
51
51
  },
52
52
  left: {
53
53
  root: {
54
- insetInlineStart: "spacing.000",
54
+ insetInlineStart: "spacing.0",
55
55
  borderStartStartRadius: "radius.000",
56
56
  borderEndStartRadius: "radius.000",
57
57
  borderStartEndRadius: "radius.050",
@@ -143,7 +143,7 @@ const i = t({
143
143
  position: "right",
144
144
  css: {
145
145
  root: {
146
- insetInlineEnd: "spacing.000"
146
+ insetInlineEnd: "spacing.0"
147
147
  }
148
148
  }
149
149
  },
@@ -152,7 +152,7 @@ const i = t({
152
152
  position: "left",
153
153
  css: {
154
154
  root: {
155
- insetInlineStart: "spacing.000"
155
+ insetInlineStart: "spacing.0"
156
156
  }
157
157
  }
158
158
  }
@@ -1,6 +1,6 @@
1
1
  import { jsxs as c, jsx as d } from "react/jsx-runtime";
2
2
  import { propagateTestid as o } from "../../../helpers/utility/propagateTestid.js";
3
- import "../../../Button-D6AL0bia.js";
3
+ import "../../../Button-mmhMLwp9.js";
4
4
  import { IressCloseButton as j } from "../../Button/CloseButton/CloseButton.js";
5
5
  import { slideout as v } from "../Slideout.styles.js";
6
6
  import { s as f } from "../../../factory-oPXoMw9H.js";
@@ -1,6 +1,6 @@
1
1
  import { useRef as m, useEffect as y } from "react";
2
2
  import { GlobalCSSClass as e } from "../../../enums.js";
3
- import { t as p } from "../../../index-CvOVcYUc.js";
3
+ import { t as p } from "../../../index-CZ9ot38T.js";
4
4
  import { useBreakpoint as S } from "../../../hooks/useBreakpoint.js";
5
5
  function h({
6
6
  element: r,
@@ -19,7 +19,7 @@ const i = e({
19
19
  cursor: "pointer",
20
20
  borderRadius: "radius.100",
21
21
  height: "slider.thumb",
22
- margin: "spacing.000",
22
+ margin: "spacing.0",
23
23
  width: "[100%]",
24
24
  _focus: {
25
25
  outline: "[none]"
@@ -59,7 +59,7 @@ const i = e({
59
59
  lineHeight: 1,
60
60
  "& option": {
61
61
  minHeight: "[0]",
62
- padding: "spacing.000"
62
+ padding: "spacing.0"
63
63
  }
64
64
  },
65
65
  tickMark: {
@@ -67,7 +67,7 @@ const i = e({
67
67
  flex: "[0 0 0]",
68
68
  marginInlineStart: "var(--iress-tick-label-width)",
69
69
  width: "[0]",
70
- padding: "spacing.000",
70
+ padding: "spacing.0",
71
71
  _selected: {
72
72
  _before: {
73
73
  backgroundColor: "colour.primary.fill"
@@ -4,7 +4,7 @@ const i = e({
4
4
  display: "flex",
5
5
  flexDirection: "column",
6
6
  "& > :not(.ids-field)": {
7
- marginBlock: "spacing.000"
7
+ marginBlock: "spacing.0"
8
8
  // If you stick it in a stack, you should be using gap instead of margin to space the items inside the stack
9
9
  }
10
10
  },
@@ -6,7 +6,7 @@ import { createPortal as H } from "react-dom";
6
6
  import { s as K } from "../../../factory-oPXoMw9H.js";
7
7
  import { tab as q } from "./Tab.styles.js";
8
8
  import { c as G } from "../../../cx-DN21T1EH.js";
9
- import { a as U } from "../../../floating-ui.react-CmSaAiNF.js";
9
+ import { a as U } from "../../../floating-ui.react-BetVZ099.js";
10
10
  import { focusableElements as W } from "../../../helpers/dom/focusableElements.js";
11
11
  import { GlobalCSSClass as Y } from "../../../enums.js";
12
12
  import { TabSetContext as z } from "../TabSetProvider.js";
@@ -7,8 +7,8 @@ const e = t({
7
7
  display: "inline-flex",
8
8
  minHeight: "input.height",
9
9
  position: "relative",
10
- px: "spacing.250",
11
- py: "spacing.300",
10
+ px: "spacing.3",
11
+ py: "spacing.3",
12
12
  textOverflow: "ellipsis",
13
13
  textDecoration: "none",
14
14
  textStyle: "typography.body.md",
@@ -1,92 +1,95 @@
1
- import { jsx as e, jsxs as v, Fragment as N } from "react/jsx-runtime";
2
- import { C as T } from "../../floating-ui.react-CmSaAiNF.js";
1
+ import { jsx as e, jsxs as p, Fragment as N } from "react/jsx-runtime";
2
+ import { C as T } from "../../floating-ui.react-BetVZ099.js";
3
3
  import { propagateTestid as C } from "../../helpers/utility/propagateTestid.js";
4
- import { TabSetProvider as y, TabSetContext as h } from "./TabSetProvider.js";
5
- import { useState as d, useContext as u, useEffect as x } from "react";
6
- import { s as m } from "../../factory-oPXoMw9H.js";
7
- import { tabSet as I } from "./TabSet.styles.js";
8
- import { c as n } from "../../cx-DN21T1EH.js";
9
- import { GlobalCSSClass as $ } from "../../enums.js";
10
- const g = (a) => {
11
- const [c, r] = d({}), t = u(h);
4
+ import { TabSetProvider as y, TabSetContext as v } from "./TabSetProvider.js";
5
+ import { useState as u, useContext as h, useEffect as x, useRef as I } from "react";
6
+ import { s as n } from "../../factory-oPXoMw9H.js";
7
+ import { tabSet as $ } from "./TabSet.styles.js";
8
+ import { c as m } from "../../cx-DN21T1EH.js";
9
+ import { GlobalCSSClass as g } from "../../enums.js";
10
+ const j = (r) => {
11
+ const a = I({}), s = h(v);
12
+ let t;
13
+ if (s?.hover) {
14
+ const { offsetLeft: c, scrollWidth: o } = s.hover;
15
+ t = {
16
+ opacity: 1,
17
+ left: `${c}px`,
18
+ width: `${o}px`
19
+ };
20
+ } else
21
+ t = {
22
+ // eslint-disable-next-line react-hooks/refs -- we want to persist the previous style
23
+ ...a.current,
24
+ opacity: 0
25
+ };
12
26
  return x(() => {
13
- if (t?.hover) {
14
- const { offsetLeft: s, scrollWidth: o } = t.hover;
15
- r({
16
- opacity: 1,
17
- left: `${s}px`,
18
- width: `${o}px`
19
- });
20
- } else
21
- r((s) => ({
22
- ...s,
23
- opacity: 0
24
- }));
25
- }, [t?.hover]), /* @__PURE__ */ e("div", { ...a, style: c });
26
- }, j = (a) => {
27
- const [c, r] = d({}), t = u(h);
27
+ s?.hover && (a.current = t);
28
+ }, [s?.hover, t]), /* @__PURE__ */ e("div", { ...r, style: t });
29
+ }, w = (r) => {
30
+ const [a, s] = u({}), t = h(v);
28
31
  return x(() => {
29
- const s = setTimeout(() => {
32
+ const c = setTimeout(() => {
30
33
  if (t?.active) {
31
34
  const { offsetLeft: o, scrollWidth: l } = t.active;
32
- r({
35
+ s({
33
36
  left: `${o}px`,
34
37
  width: `${l}px`
35
38
  });
36
39
  }
37
40
  }, 150);
38
- return () => clearTimeout(s);
39
- }, [t?.active]), /* @__PURE__ */ e("div", { ...a, style: c });
41
+ return () => clearTimeout(c);
42
+ }, [t?.active]), /* @__PURE__ */ e("div", { ...r, style: a });
40
43
  }, k = ({
41
- children: a,
42
- className: c,
43
- defaultSelected: r,
44
+ children: r,
45
+ className: a,
46
+ defaultSelected: s,
44
47
  layout: t = "top-left",
45
- onChange: s,
48
+ onChange: c,
46
49
  panelStyle: o,
47
50
  selected: l,
48
- tabHolderStyle: f,
49
- ...p
51
+ tabHolderStyle: d,
52
+ ...f
50
53
  }) => {
51
- const [S, b] = d(null), i = I({ layout: t });
54
+ const [S, b] = u(null), i = $({ layout: t });
52
55
  return /* @__PURE__ */ e(
53
56
  y,
54
57
  {
55
- defaultSelected: r,
56
- onChange: s,
58
+ defaultSelected: s,
59
+ onChange: c,
57
60
  panel: S,
58
61
  selected: l,
59
62
  children: /* @__PURE__ */ e(
60
- m.div,
63
+ n.div,
61
64
  {
62
- className: n(c, i.root, $.TabSet),
63
- ...p,
64
- children: a && /* @__PURE__ */ v(N, { children: [
65
- /* @__PURE__ */ v(
66
- m.div,
65
+ className: m(a, i.root, g.TabSet),
66
+ ...f,
67
+ children: r && /* @__PURE__ */ p(N, { children: [
68
+ /* @__PURE__ */ p(
69
+ n.div,
67
70
  {
68
- ...f,
69
- className: n(i.listHolder, f?.className),
71
+ ...d,
72
+ className: m(i.listHolder, d?.className),
70
73
  children: [
71
- /* @__PURE__ */ e(j, { className: i.activeIndicator }),
72
- /* @__PURE__ */ e(g, { className: i.hoverIndicator }),
74
+ /* @__PURE__ */ e(w, { className: i.activeIndicator }),
75
+ /* @__PURE__ */ e(j, { className: i.hoverIndicator }),
73
76
  /* @__PURE__ */ e(
74
77
  T,
75
78
  {
76
79
  render: /* @__PURE__ */ e("div", { className: i.list, role: "tablist" }),
77
80
  loop: !1,
78
- children: a
81
+ children: r
79
82
  }
80
83
  )
81
84
  ]
82
85
  }
83
86
  ),
84
87
  /* @__PURE__ */ e(
85
- m.div,
88
+ n.div,
86
89
  {
87
90
  ...o,
88
- className: n(i.panel, o?.className),
89
- "data-testid": o?.["data-testid"] ?? C(p["data-testid"], "panel"),
91
+ className: m(i.panel, o?.className),
92
+ "data-testid": o?.["data-testid"] ?? C(f["data-testid"], "panel"),
90
93
  ref: b
91
94
  }
92
95
  )
@@ -18,7 +18,7 @@ const e = t({
18
18
  flexWrap: "wrap",
19
19
  borderBottom: "divider",
20
20
  "& > :has(.ids-badge)": {
21
- mr: "spacing.350"
21
+ mr: "spacing.4"
22
22
  }
23
23
  },
24
24
  listHolder: {
@@ -41,8 +41,8 @@ const e = t({
41
41
  },
42
42
  hoverIndicator: {
43
43
  position: "absolute",
44
- top: "spacing.150",
45
- bottom: "spacing.150",
44
+ top: "spacing.2",
45
+ bottom: "spacing.2",
46
46
  left: "[0]",
47
47
  bg: "colour.primary.surfaceHover",
48
48
  transition: "all",