@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.
- package/dist/{Autocomplete-CLvWVHp6.js → Autocomplete-C5ubHBTi.js} +1 -1
- package/dist/{Button-D6AL0bia.js → Button-mmhMLwp9.js} +4 -1
- package/dist/{Provider-BXQiO7Gp.js → Provider-8wS70V56.js} +13 -13
- package/dist/{TableProvider-_4Whj6P5.js → TableProvider-bdUNuoG-.js} +1 -11
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/Alert/Alert.styles.js +14 -14
- package/dist/components/Autocomplete/Autocomplete.js +2 -2
- package/dist/components/Autocomplete/index.js +1 -1
- package/dist/components/Badge/Badge.styles.js +4 -4
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/CloseButton/CloseButton.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Card/Card.styles.js +16 -16
- package/dist/components/Checkbox/Checkbox.styles.js +5 -5
- package/dist/components/CheckboxGroup/CheckboxGroup.styles.js +10 -10
- package/dist/components/Container/Container.styles.js +1 -1
- package/dist/components/Divider/Divider.styles.js +1 -1
- package/dist/components/Expander/Expander.styles.js +3 -3
- package/dist/components/Field/Field.styles.js +9 -9
- package/dist/components/Field/FieldGroup/FieldGroup.styles.js +5 -5
- package/dist/components/Field/components/FieldHint.js +1 -1
- package/dist/components/Filter/Filter.js +3 -3
- package/dist/components/Filter/Filter.styles.js +3 -3
- package/dist/components/Filter/components/FilterResetButton.js +1 -1
- package/dist/components/Inline/Inline.styles.js +1 -1
- package/dist/components/Input/Input.js +84 -86
- package/dist/components/Input/Input.styles.js +7 -7
- package/dist/components/Label/Label.styles.js +3 -3
- package/dist/components/Link/Link.styles.js +2 -2
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/Menu.styles.js +11 -11
- package/dist/components/Menu/MenuItem/MenuItem.js +2 -2
- package/dist/components/Menu/MenuText/MenuText.js +1 -1
- package/dist/components/Modal/Modal.js +106 -112
- package/dist/components/Modal/Modal.styles.js +8 -8
- package/dist/components/Popover/components/NestedPopoverActivator.js +1 -1
- package/dist/components/Popover/components/PopoverContent.js +1 -1
- package/dist/components/Popover/helpers/handlePopoverTabKey.js +1 -1
- package/dist/components/Popover/hooks/usePopover.js +1 -1
- package/dist/components/Popover/hooks/usePopoverItem.js +1 -1
- package/dist/components/Popover/hooks/usePopoverNavigation.js +1 -1
- package/dist/components/Progress/Progress.js +35 -41
- package/dist/components/Progress/Progress.styles.js +3 -3
- package/dist/components/Provider/Provider.js +3 -3
- package/dist/components/Provider/index.js +1 -1
- package/dist/components/Radio/Radio.js +66 -60
- package/dist/components/Radio/Radio.styles.js +5 -5
- package/dist/components/RadioGroup/RadioGroup.styles.js +4 -4
- package/dist/components/Readonly/Readonly.styles.js +4 -4
- package/dist/components/RichSelect/RichSelect.js +2 -2
- package/dist/components/RichSelect/RichSelect.styles.js +9 -9
- package/dist/components/RichSelect/SelectHeading/SelectHeading.js +1 -1
- package/dist/components/RichSelect/SelectLabel/SelectLabel.styles.js +5 -5
- package/dist/components/RichSelect/SelectTags/SelectTags.js +49 -51
- package/dist/components/RichSelect/SelectTags/SelectTags.styles.js +3 -3
- package/dist/components/RichSelect/index.js +1 -1
- package/dist/components/Select/Select.styles.js +8 -8
- package/dist/components/Skeleton/Skeleton.styles.js +1 -1
- package/dist/components/SkipLink/SkipLink.js +1 -1
- package/dist/components/SkipLink/SkipLink.styles.js +1 -1
- package/dist/components/Slideout/Slideout.js +75 -70
- package/dist/components/Slideout/Slideout.styles.js +7 -7
- package/dist/components/Slideout/components/SlideoutInner.js +1 -1
- package/dist/components/Slideout/hooks/usePushElement.js +1 -1
- package/dist/components/Slider/Slider.styles.js +3 -3
- package/dist/components/Stack/Stack.styles.js +1 -1
- package/dist/components/TabSet/Tab/Tab.js +1 -1
- package/dist/components/TabSet/Tab/Tab.styles.js +2 -2
- package/dist/components/TabSet/TabSet.js +55 -52
- package/dist/components/TabSet/TabSet.styles.js +3 -3
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/TableBody/TableBody.js +1 -1
- package/dist/components/Table/TableProvider.js +2 -2
- package/dist/components/Table/components/TableEmpty.js +1 -1
- package/dist/components/Table/components/TableHeader.js +1 -1
- package/dist/components/Table/components/TableHeaderCell.js +1 -1
- package/dist/components/Table/components/TableRows.js +1 -1
- package/dist/components/Table/helpers/composeTableColumnDefs.js +1 -1
- package/dist/components/Table/hooks/useTableColumnSort.js +1 -1
- package/dist/components/Table/hooks/useTableColumnStyles.js +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Tag/Tag.styles.js +4 -4
- package/dist/components/Text/Text.styles.js +3 -2
- package/dist/components/Toaster/Toaster.js +1 -1
- package/dist/components/Toaster/Toaster.styles.js +1 -1
- package/dist/components/Toaster/components/Toast/Toast.js +1 -1
- package/dist/components/Toaster/components/Toast/Toast.styles.js +12 -12
- package/dist/components/Toaster/components/Toast/ToastAnimated.js +18 -16
- package/dist/components/Toggle/Toggle.js +63 -58
- package/dist/components/Toggle/Toggle.styles.js +12 -12
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Tooltip/Tooltip.styles.js +1 -1
- package/dist/components/ValidationMessage/ValidationMessage.js +1 -1
- package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +4 -4
- package/dist/{composeTableColumnDefs-Hmd6yfdj.js → composeTableColumnDefs-BfFBOARB.js} +0 -10
- package/dist/constants.js +1 -1
- package/dist/{floating-ui.react-CmSaAiNF.js → floating-ui.react-BetVZ099.js} +1 -1
- package/dist/helpers/styling/mapGutterToGap.js +7 -7
- package/dist/helpers/transition/getTransitionDuration.js +2 -2
- package/dist/{index-CvOVcYUc.js → index-CZ9ot38T.js} +83 -131
- package/dist/{index.esm-8uZEha-3.js → index.esm-CL8gh5wr.js} +0 -4
- package/dist/main.js +3 -3
- package/dist/patterns/Loading/Loading.styles.js +13 -13
- package/dist/patterns/Loading/LoadingSuspense.js +27 -27
- package/dist/patterns/Loading/components/ComponentLoading.js +38 -43
- package/dist/patterns/Loading/components/PageLoading.js +57 -60
- package/dist/patterns/Loading/components/ValidateLoading.js +1 -1
- package/dist/patterns/Loading/hooks/useEstimatedProgressValue.js +8 -12
- package/dist/patterns/Loading/hooks/useShouldRenderLoading.js +14 -14
- package/dist/patterns/Shadow/Shadow.js +8831 -19057
- package/dist/src/components/Alert/Alert.styles.d.ts +1 -1
- package/dist/src/components/Badge/Badge.styles.d.ts +2 -2
- package/dist/src/components/Card/Card.styles.d.ts +2 -2
- package/dist/src/components/Checkbox/Checkbox.styles.d.ts +3 -3
- package/dist/src/components/CheckboxGroup/CheckboxGroup.styles.d.ts +4 -4
- package/dist/src/components/Expander/Expander.styles.d.ts +2 -2
- package/dist/src/components/Field/Field.styles.d.ts +6 -6
- package/dist/src/components/Inline/Inline.d.ts +1 -2
- package/dist/src/components/Menu/Menu.styles.d.ts +5 -5
- package/dist/src/components/Modal/Modal.styles.d.ts +2 -2
- package/dist/src/components/Radio/Radio.styles.d.ts +1 -1
- package/dist/src/components/RadioGroup/RadioGroup.styles.d.ts +4 -4
- package/dist/src/components/RichSelect/RichSelect.styles.d.ts +7 -7
- package/dist/src/components/Row/Row.d.ts +1 -2
- package/dist/src/components/Select/Select.styles.d.ts +7 -7
- package/dist/src/components/Skeleton/Skeleton.styles.d.ts +1 -1
- package/dist/src/components/Slideout/Slideout.styles.d.ts +2 -2
- package/dist/src/components/Stack/Stack.d.ts +1 -2
- package/dist/src/components/Toaster/components/Toast/Toast.styles.d.ts +4 -4
- package/dist/src/components/Toggle/Toggle.d.ts +10 -2
- package/dist/src/components/Toggle/Toggle.styles.d.ts +4 -4
- package/dist/src/interfaces.d.ts +8 -10
- package/dist/src/patterns/Loading/Loading.styles.d.ts +10 -10
- package/dist/src/styled-system/jsx/create-style-context.d.ts +17 -10
- package/dist/src/styled-system/tokens/tokens.d.ts +1 -1
- package/dist/src/styled-system/types/conditions.d.ts +1 -1
- package/dist/src/styled-system/types/jsx.d.ts +8 -6
- package/dist/src/styled-system/types/prop-type.d.ts +2 -2
- package/dist/src/types.d.ts +3 -1
- package/dist/style.css +1 -1
- 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
|
|
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
|
|
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
|
|
8
|
+
import { IressContainer as p } from "../../../components/Container/Container.js";
|
|
9
9
|
import "../../../components/Row/Row.styles.js";
|
|
10
|
-
import { IressRow as
|
|
10
|
+
import { IressRow as n } from "../../../components/Row/Row.js";
|
|
11
11
|
import "../../../components/Col/Col.styles.js";
|
|
12
|
-
import { IressCol as
|
|
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
|
|
19
|
+
import { s as x } from "../../../factory-oPXoMw9H.js";
|
|
20
20
|
import { loading as F } from "../Loading.styles.js";
|
|
21
|
-
import { c as
|
|
22
|
-
import { propagateTestid as
|
|
23
|
-
const
|
|
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
|
-
) }),
|
|
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
|
-
] }) }) }) }),
|
|
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
|
-
] }) }) }) }),
|
|
39
|
-
/* @__PURE__ */ r(
|
|
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(
|
|
48
|
-
/* @__PURE__ */ t(
|
|
49
|
-
/* @__PURE__ */ t(
|
|
50
|
-
/* @__PURE__ */ t(
|
|
47
|
+
/* @__PURE__ */ r(n, { gutter: "lg", children: [
|
|
48
|
+
/* @__PURE__ */ t(l, {}),
|
|
49
|
+
/* @__PURE__ */ t(l, {}),
|
|
50
|
+
/* @__PURE__ */ t(l, {})
|
|
51
51
|
] })
|
|
52
|
-
] }) }),
|
|
53
|
-
page:
|
|
54
|
-
form:
|
|
55
|
-
dashboard:
|
|
56
|
-
},
|
|
57
|
-
className:
|
|
58
|
-
critical:
|
|
59
|
-
error:
|
|
60
|
-
loaded:
|
|
61
|
-
screenReaderText:
|
|
62
|
-
template:
|
|
63
|
-
timeout:
|
|
64
|
-
...
|
|
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 [
|
|
67
|
-
error: !!
|
|
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:
|
|
70
|
-
showIndicator:
|
|
69
|
+
showCritical: y,
|
|
70
|
+
showIndicator: A && !f
|
|
71
71
|
}), N = j(() => {
|
|
72
|
-
if (typeof
|
|
73
|
-
const
|
|
74
|
-
return /* @__PURE__ */ t(
|
|
72
|
+
if (typeof o == "string" && o in I) {
|
|
73
|
+
const i = I[o];
|
|
74
|
+
return /* @__PURE__ */ t(i, {});
|
|
75
75
|
}
|
|
76
|
-
return
|
|
77
|
-
}, [
|
|
78
|
-
return
|
|
79
|
-
const
|
|
76
|
+
return o;
|
|
77
|
+
}, [o]);
|
|
78
|
+
return w(() => {
|
|
79
|
+
const i = setTimeout(() => k(!0), g);
|
|
80
80
|
return () => {
|
|
81
|
-
clearTimeout(
|
|
81
|
+
clearTimeout(i);
|
|
82
82
|
};
|
|
83
|
-
}, [
|
|
84
|
-
|
|
85
|
-
}, [f]), m(() => {
|
|
86
|
-
if (!d)
|
|
83
|
+
}, [g]), w(() => {
|
|
84
|
+
if (!s)
|
|
87
85
|
return;
|
|
88
|
-
|
|
89
|
-
const o = setTimeout(() => L(!0), 200);
|
|
86
|
+
const i = setTimeout(() => L(!0), 200);
|
|
90
87
|
return () => {
|
|
91
|
-
clearTimeout(
|
|
88
|
+
clearTimeout(i);
|
|
92
89
|
};
|
|
93
|
-
}, [
|
|
94
|
-
|
|
95
|
-
!
|
|
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:
|
|
99
|
-
"data-testid":
|
|
95
|
+
className: h.message,
|
|
96
|
+
"data-testid": S(a["data-testid"], "skeleton"),
|
|
100
97
|
children: N
|
|
101
98
|
}
|
|
102
99
|
),
|
|
103
|
-
!
|
|
100
|
+
!d && f && /* @__PURE__ */ t(
|
|
104
101
|
"div",
|
|
105
102
|
{
|
|
106
|
-
className:
|
|
107
|
-
"data-testid":
|
|
108
|
-
children:
|
|
103
|
+
className: h.critical,
|
|
104
|
+
"data-testid": S(a["data-testid"], "critical"),
|
|
105
|
+
children: s
|
|
109
106
|
}
|
|
110
107
|
),
|
|
111
|
-
/* @__PURE__ */ t(
|
|
108
|
+
/* @__PURE__ */ t(x.div, { srOnly: !0, children: b })
|
|
112
109
|
] });
|
|
113
110
|
};
|
|
114
111
|
export {
|
|
115
|
-
|
|
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-
|
|
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,
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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(
|
|
15
|
+
requestAnimationFrame(f);
|
|
20
16
|
}, [
|
|
21
17
|
r,
|
|
22
|
-
|
|
18
|
+
c,
|
|
23
19
|
t,
|
|
24
20
|
o
|
|
25
|
-
]), n !== void 0 ? u ? r : n : o;
|
|
26
|
-
},
|
|
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
|
|
2
|
-
const
|
|
3
|
-
const [
|
|
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 || (
|
|
7
|
-
},
|
|
6
|
+
e || (r(!0), n.current = performance.now());
|
|
7
|
+
}, t);
|
|
8
8
|
return () => clearTimeout(u);
|
|
9
|
-
}, [
|
|
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
|
-
|
|
13
|
+
(!n.current || performance.now() - n.current < c) && r(!1);
|
|
14
|
+
}, 0), s = setTimeout(() => {
|
|
15
|
+
r(!1);
|
|
18
16
|
}, o);
|
|
19
|
-
return () =>
|
|
20
|
-
|
|
17
|
+
return () => {
|
|
18
|
+
clearTimeout(u), clearTimeout(s);
|
|
19
|
+
};
|
|
20
|
+
}, [e, o, c]), e !== !0 || i;
|
|
21
21
|
};
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
a as useShouldRenderLoading
|
|
24
24
|
};
|