@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
@@ -1,26 +1,26 @@
1
1
  import { jsx as t, jsxs as r } from "react/jsx-runtime";
2
- import { useState as h, useMemo as j, useEffect as m } from "react";
2
+ import { useState as u, useMemo as j, useEffect as w } from "react";
3
3
  import "../../../components/Stack/Stack.styles.js";
4
- import { IressStack as c } from "../../../components/Stack/Stack.js";
4
+ import { IressStack as m } from "../../../components/Stack/Stack.js";
5
5
  import { IressSkeleton as e } from "../../../components/Skeleton/Skeleton.js";
6
6
  import "../../../components/Skeleton/Skeleton.styles.js";
7
7
  import "../../../components/Container/Container.styles.js";
8
- import { IressContainer as g } from "../../../components/Container/Container.js";
8
+ import { IressContainer as p } from "../../../components/Container/Container.js";
9
9
  import "../../../components/Row/Row.styles.js";
10
- import { IressRow as a } from "../../../components/Row/Row.js";
10
+ import { IressRow as n } from "../../../components/Row/Row.js";
11
11
  import "../../../components/Col/Col.styles.js";
12
- import { IressCol as y } from "../../../components/Col/Col.js";
12
+ import { IressCol as c } from "../../../components/Col/Col.js";
13
13
  import "../../../components/Inline/Inline.styles.js";
14
14
  import { IressInline as D } from "../../../components/Inline/Inline.js";
15
15
  import { IressDivider as z } from "../../../components/Divider/Divider.js";
16
16
  import "../../../components/Divider/Divider.styles.js";
17
17
  import { IressCard as E } from "../../../components/Card/Card.js";
18
18
  import "../../../components/Card/Card.styles.js";
19
- import { s as T } from "../../../factory-oPXoMw9H.js";
19
+ import { s as x } from "../../../factory-oPXoMw9H.js";
20
20
  import { loading as F } from "../Loading.styles.js";
21
- import { c as H } from "../../../cx-DN21T1EH.js";
22
- import { propagateTestid as I } from "../../../helpers/utility/propagateTestid.js";
23
- const p = () => /* @__PURE__ */ t(y, { span: "4", children: /* @__PURE__ */ t(
21
+ import { c as M } from "../../../cx-DN21T1EH.js";
22
+ import { propagateTestid as S } from "../../../helpers/utility/propagateTestid.js";
23
+ const l = () => /* @__PURE__ */ t(c, { span: "4", children: /* @__PURE__ */ t(
24
24
  E,
25
25
  {
26
26
  stretch: !0,
@@ -28,15 +28,15 @@ const p = () => /* @__PURE__ */ t(y, { span: "4", children: /* @__PURE__ */ t(
28
28
  media: /* @__PURE__ */ t(e, { mode: "rect", height: "300px" }),
29
29
  children: /* @__PURE__ */ t(e, { textStyle: "typography.body.md", width: "50%" })
30
30
  }
31
- ) }), M = () => /* @__PURE__ */ t(g, { children: /* @__PURE__ */ t(a, { gutter: "lg", verticalAlign: "stretch", children: /* @__PURE__ */ t(y, { children: /* @__PURE__ */ r(c, { gap: "md", children: [
31
+ ) }), O = () => /* @__PURE__ */ t(p, { children: /* @__PURE__ */ t(n, { gutter: "lg", verticalAlign: "stretch", children: /* @__PURE__ */ t(c, { children: /* @__PURE__ */ r(m, { gap: "md", children: [
32
32
  /* @__PURE__ */ t(e, { textStyle: "typography.heading.2", width: "75%" }),
33
33
  /* @__PURE__ */ t(e, { mode: "rect", height: "200px" })
34
- ] }) }) }) }), O = () => /* @__PURE__ */ t(g, { children: /* @__PURE__ */ t(a, { gutter: "lg", verticalAlign: "stretch", children: /* @__PURE__ */ t(y, { children: /* @__PURE__ */ r(c, { gap: "md", children: [
34
+ ] }) }) }) }), R = () => /* @__PURE__ */ t(p, { children: /* @__PURE__ */ t(n, { gutter: "lg", verticalAlign: "stretch", children: /* @__PURE__ */ t(c, { children: /* @__PURE__ */ r(m, { gap: "md", children: [
35
35
  /* @__PURE__ */ t(e, { textStyle: "typography.heading.2", width: "75%" }),
36
36
  /* @__PURE__ */ t(e, { mode: "rect", height: "200px" }),
37
37
  /* @__PURE__ */ t(e, { textStyle: "typography.body.md", width: "100px" })
38
- ] }) }) }) }), R = () => /* @__PURE__ */ t(g, { children: /* @__PURE__ */ r(c, { gap: "lg", children: [
39
- /* @__PURE__ */ r(a, { horizontalAlign: "between", verticalAlign: "middle", children: [
38
+ ] }) }) }) }), q = () => /* @__PURE__ */ t(p, { children: /* @__PURE__ */ r(m, { gap: "lg", children: [
39
+ /* @__PURE__ */ r(n, { horizontalAlign: "between", verticalAlign: "middle", children: [
40
40
  /* @__PURE__ */ t(e, { textStyle: "typography.heading.1", width: "25%" }),
41
41
  /* @__PURE__ */ r(D, { gap: "lg", children: [
42
42
  /* @__PURE__ */ t(e, { textStyle: "typography.body.lg", width: "200px" }),
@@ -44,73 +44,70 @@ const p = () => /* @__PURE__ */ t(y, { span: "4", children: /* @__PURE__ */ t(
44
44
  ] })
45
45
  ] }),
46
46
  /* @__PURE__ */ t(z, {}),
47
- /* @__PURE__ */ r(a, { gutter: "lg", children: [
48
- /* @__PURE__ */ t(p, {}),
49
- /* @__PURE__ */ t(p, {}),
50
- /* @__PURE__ */ t(p, {})
47
+ /* @__PURE__ */ r(n, { gutter: "lg", children: [
48
+ /* @__PURE__ */ t(l, {}),
49
+ /* @__PURE__ */ t(l, {}),
50
+ /* @__PURE__ */ t(l, {})
51
51
  ] })
52
- ] }) }), v = {
53
- page: M,
54
- form: O,
55
- dashboard: R
56
- }, dt = ({
57
- className: b,
58
- critical: d,
59
- error: s,
60
- loaded: f,
61
- screenReaderText: C = "Loading...",
62
- template: i = "page",
63
- timeout: u = 500,
64
- ...n
52
+ ] }) }), I = {
53
+ page: O,
54
+ form: R,
55
+ dashboard: q
56
+ }, nt = ({
57
+ className: T,
58
+ critical: s,
59
+ error: d,
60
+ loaded: v,
61
+ screenReaderText: b = "Loading...",
62
+ template: o = "page",
63
+ timeout: g = 500,
64
+ ...a
65
65
  }) => {
66
- const [k, x] = h(!1), [w, A] = h(!1), [S, L] = h(!1), l = F({
67
- error: !!s,
66
+ const [C, k] = u(!1), A = v !== !0 && C, [y, L] = u(!1), f = !!s, h = F({
67
+ error: !!d,
68
68
  pattern: "page",
69
- showCritical: S,
70
- showIndicator: k && !w
69
+ showCritical: y,
70
+ showIndicator: A && !f
71
71
  }), N = j(() => {
72
- if (typeof i == "string" && i in v) {
73
- const o = v[i];
74
- return /* @__PURE__ */ t(o, {});
72
+ if (typeof o == "string" && o in I) {
73
+ const i = I[o];
74
+ return /* @__PURE__ */ t(i, {});
75
75
  }
76
- return i;
77
- }, [i]);
78
- return m(() => {
79
- const o = setTimeout(() => x(!0), u);
76
+ return o;
77
+ }, [o]);
78
+ return w(() => {
79
+ const i = setTimeout(() => k(!0), g);
80
80
  return () => {
81
- clearTimeout(o);
81
+ clearTimeout(i);
82
82
  };
83
- }, [u]), m(() => {
84
- f === !0 && x(!1);
85
- }, [f]), m(() => {
86
- if (!d)
83
+ }, [g]), w(() => {
84
+ if (!s)
87
85
  return;
88
- A(!0);
89
- const o = setTimeout(() => L(!0), 200);
86
+ const i = setTimeout(() => L(!0), 200);
90
87
  return () => {
91
- clearTimeout(o);
88
+ clearTimeout(i);
92
89
  };
93
- }, [d]), /* @__PURE__ */ r(T.div, { className: H(b, l.root), ...n, children: [
94
- s,
95
- !s && !S && /* @__PURE__ */ t(
90
+ }, [s]), /* @__PURE__ */ r(x.div, { className: M(T, h.root), ...a, children: [
91
+ d,
92
+ !d && !y && /* @__PURE__ */ t(
96
93
  "div",
97
94
  {
98
- className: l.message,
99
- "data-testid": I(n["data-testid"], "skeleton"),
95
+ className: h.message,
96
+ "data-testid": S(a["data-testid"], "skeleton"),
100
97
  children: N
101
98
  }
102
99
  ),
103
- !s && w && /* @__PURE__ */ t(
100
+ !d && f && /* @__PURE__ */ t(
104
101
  "div",
105
102
  {
106
- className: l.critical,
107
- "data-testid": I(n["data-testid"], "critical"),
108
- children: d
103
+ className: h.critical,
104
+ "data-testid": S(a["data-testid"], "critical"),
105
+ children: s
109
106
  }
110
107
  ),
111
- /* @__PURE__ */ t(T.div, { srOnly: !0, children: C })
108
+ /* @__PURE__ */ t(x.div, { srOnly: !0, children: b })
112
109
  ] });
113
110
  };
114
111
  export {
115
- dt as PageLoading
112
+ nt as PageLoading
116
113
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as o, jsxs as u } from "react/jsx-runtime";
2
- import { I as p } from "../../../Button-D6AL0bia.js";
2
+ import { I as p } from "../../../Button-mmhMLwp9.js";
3
3
  import "../../../components/Button/CloseButton/CloseButton.js";
4
4
  import { useState as h, useEffect as g } from "react";
5
5
  import { loading as x } from "../Loading.styles.js";
@@ -1,6 +1,6 @@
1
1
  import { useState as A, useMemo as E, useEffect as V } from "react";
2
2
  const l = (r, u = !1, n, t = 0) => {
3
- const [o, c] = A(n ?? 0), f = E(() => !u && !n && w(o, r, t), [
3
+ const [o, w] = A(n ?? 0), c = E(() => !u && !n && a(o, r, t), [
4
4
  r,
5
5
  t,
6
6
  u,
@@ -8,22 +8,18 @@ const l = (r, u = !1, n, t = 0) => {
8
8
  o
9
9
  ]);
10
10
  return V(() => {
11
- if (!f && o < r) {
12
- c(r);
13
- return;
14
- }
15
- const q = performance.now(), P = () => {
16
- const x = Math.max(performance.now() - q, 0), a = o + x;
17
- c(a), w(a, r, t) && requestAnimationFrame(P);
11
+ const q = performance.now(), f = () => {
12
+ const x = Math.max(performance.now() - q, 0), P = o + x;
13
+ w(P), a(P, r, t) && requestAnimationFrame(f);
18
14
  };
19
- requestAnimationFrame(P);
15
+ requestAnimationFrame(f);
20
16
  }, [
21
17
  r,
22
- f,
18
+ c,
23
19
  t,
24
20
  o
25
- ]), n !== void 0 ? u ? r : n : o;
26
- }, w = (r, u, n) => r < u || r < n;
21
+ ]), n !== void 0 ? u ? r : n : !c && o < r ? r : o;
22
+ }, a = (r, u, n) => r < u || r < n;
27
23
  export {
28
24
  l as useEstimatedProgressValue
29
25
  };
@@ -1,24 +1,24 @@
1
- import { useState as i, useRef as m, useEffect as f } from "react";
2
- const p = (e, o = 500, r = 250, c = 250) => {
3
- const [s, t] = i(r === 0), n = m(0);
1
+ import { useState as m, useRef as T, useEffect as f } from "react";
2
+ const a = (e, o = 500, t = 250, c = 250) => {
3
+ const [i, r] = m(t === 0), n = T(0);
4
4
  return f(() => {
5
5
  const u = setTimeout(() => {
6
- e || (t(!0), n.current = performance.now());
7
- }, r);
6
+ e || (r(!0), n.current = performance.now());
7
+ }, t);
8
8
  return () => clearTimeout(u);
9
- }, [r, e]), f(() => {
9
+ }, [t, e]), f(() => {
10
10
  if (e !== !0)
11
11
  return;
12
- if (!n.current || performance.now() - n.current < c) {
13
- t(!1);
14
- return;
15
- }
16
12
  const u = setTimeout(() => {
17
- t(!1);
13
+ (!n.current || performance.now() - n.current < c) && r(!1);
14
+ }, 0), s = setTimeout(() => {
15
+ r(!1);
18
16
  }, o);
19
- return () => clearTimeout(u);
20
- }, [e, o, c]), e !== !0 || s;
17
+ return () => {
18
+ clearTimeout(u), clearTimeout(s);
19
+ };
20
+ }, [e, o, c]), e !== !0 || i;
21
21
  };
22
22
  export {
23
- p as useShouldRenderLoading
23
+ a as useShouldRenderLoading
24
24
  };