@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
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
80
|
+
width: "[calc({spacing.spacing.2} + calc({sizes.chevron.select} * 2) + {sizes.input.16})]"
|
|
81
81
|
},
|
|
82
82
|
element: {
|
|
83
83
|
width: "auto"
|
|
@@ -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-
|
|
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";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { u as ne, b as oe, c as re, d as se, e as le, g as ie } from "../../floating-ui.react-
|
|
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
|
|
12
|
-
import { s as
|
|
13
|
-
import { GlobalCSSClass as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
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+$/,
|
|
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 =
|
|
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),
|
|
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
|
|
60
|
-
return
|
|
59
|
+
function Ee(o, l = document, e = null) {
|
|
60
|
+
return be(o, !1, l, e);
|
|
61
61
|
}
|
|
62
|
-
function
|
|
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 ||
|
|
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 =
|
|
69
|
-
return n =
|
|
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
|
|
72
|
+
function we(o, l, e) {
|
|
73
73
|
return (t) => {
|
|
74
74
|
let r = l, i = t, n = !1;
|
|
75
|
-
for (; 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
|
|
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
|
|
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
|
|
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:
|
|
137
|
-
onShowChange:
|
|
136
|
+
onExited: m,
|
|
137
|
+
onShowChange: w,
|
|
138
138
|
onStatus: g,
|
|
139
|
-
onTransitionEnd:
|
|
139
|
+
onTransitionEnd: D,
|
|
140
140
|
position: y = "right",
|
|
141
|
-
show:
|
|
142
|
-
size:
|
|
143
|
-
style:
|
|
141
|
+
show: I,
|
|
142
|
+
size: N = "sm",
|
|
143
|
+
style: P,
|
|
144
144
|
...x
|
|
145
145
|
}) => {
|
|
146
|
-
const [
|
|
147
|
-
|
|
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:
|
|
150
|
-
onOpenChange:
|
|
151
|
-
}),
|
|
151
|
+
open: Q,
|
|
152
|
+
onOpenChange: q
|
|
153
|
+
}), j = oe(h, {
|
|
152
154
|
enabled: !0,
|
|
153
155
|
outsidePress: !1
|
|
154
|
-
}),
|
|
155
|
-
|
|
156
|
-
|
|
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:
|
|
166
|
+
size: N,
|
|
159
167
|
status: c,
|
|
160
168
|
mode: u
|
|
161
169
|
});
|
|
162
170
|
b(() => {
|
|
163
|
-
|
|
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
|
-
}, [
|
|
174
|
+
}, [E.opened, I]), b(() => {
|
|
167
175
|
g?.(c);
|
|
168
176
|
}, [c, g]), b(() => {
|
|
169
|
-
const f = (
|
|
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
|
|
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:
|
|
190
|
+
size: N,
|
|
186
191
|
status: c
|
|
187
192
|
}),
|
|
188
|
-
[S, u, y,
|
|
193
|
+
[S, u, y, N, c]
|
|
189
194
|
);
|
|
190
|
-
|
|
191
|
-
const
|
|
195
|
+
pe(J);
|
|
196
|
+
const K = te(
|
|
192
197
|
(f) => {
|
|
193
|
-
|
|
194
|
-
const
|
|
195
|
-
!(f.propertyName ===
|
|
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
|
-
[
|
|
198
|
-
), $ =
|
|
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 (!
|
|
208
|
-
const
|
|
209
|
-
|
|
212
|
+
if (!B) return null;
|
|
213
|
+
const W = z(
|
|
214
|
+
L.root,
|
|
210
215
|
l,
|
|
211
|
-
|
|
212
|
-
c === "open" &&
|
|
213
|
-
), [
|
|
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:
|
|
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:
|
|
223
|
-
onOpenChange:
|
|
224
|
-
...
|
|
225
|
-
...
|
|
226
|
-
onTransitionEnd:
|
|
227
|
+
id: R,
|
|
228
|
+
onOpenChange: q,
|
|
229
|
+
...X,
|
|
230
|
+
...H.getFloatingProps(Y),
|
|
231
|
+
onTransitionEnd: K
|
|
227
232
|
};
|
|
228
|
-
return /* @__PURE__ */
|
|
233
|
+
return /* @__PURE__ */ _(ie, { root: t, children: /* @__PURE__ */ _(
|
|
229
234
|
fe,
|
|
230
235
|
{
|
|
231
|
-
...
|
|
232
|
-
style:
|
|
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.
|
|
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.
|
|
35
|
-
insetBlockStart: "spacing.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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-
|
|
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-
|
|
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.
|
|
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.
|
|
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.
|
|
70
|
+
padding: "spacing.0",
|
|
71
71
|
_selected: {
|
|
72
72
|
_before: {
|
|
73
73
|
backgroundColor: "colour.primary.fill"
|
|
@@ -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-
|
|
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.
|
|
11
|
-
py: "spacing.
|
|
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
|
|
2
|
-
import { C as T } from "../../floating-ui.react-
|
|
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
|
|
5
|
-
import { useState as
|
|
6
|
-
import { s as
|
|
7
|
-
import { tabSet as
|
|
8
|
-
import { c as
|
|
9
|
-
import { GlobalCSSClass as
|
|
10
|
-
const
|
|
11
|
-
const
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
|
32
|
+
const c = setTimeout(() => {
|
|
30
33
|
if (t?.active) {
|
|
31
34
|
const { offsetLeft: o, scrollWidth: l } = t.active;
|
|
32
|
-
|
|
35
|
+
s({
|
|
33
36
|
left: `${o}px`,
|
|
34
37
|
width: `${l}px`
|
|
35
38
|
});
|
|
36
39
|
}
|
|
37
40
|
}, 150);
|
|
38
|
-
return () => clearTimeout(
|
|
39
|
-
}, [t?.active]), /* @__PURE__ */ e("div", { ...
|
|
41
|
+
return () => clearTimeout(c);
|
|
42
|
+
}, [t?.active]), /* @__PURE__ */ e("div", { ...r, style: a });
|
|
40
43
|
}, k = ({
|
|
41
|
-
children:
|
|
42
|
-
className:
|
|
43
|
-
defaultSelected:
|
|
44
|
+
children: r,
|
|
45
|
+
className: a,
|
|
46
|
+
defaultSelected: s,
|
|
44
47
|
layout: t = "top-left",
|
|
45
|
-
onChange:
|
|
48
|
+
onChange: c,
|
|
46
49
|
panelStyle: o,
|
|
47
50
|
selected: l,
|
|
48
|
-
tabHolderStyle:
|
|
49
|
-
...
|
|
51
|
+
tabHolderStyle: d,
|
|
52
|
+
...f
|
|
50
53
|
}) => {
|
|
51
|
-
const [S, b] =
|
|
54
|
+
const [S, b] = u(null), i = $({ layout: t });
|
|
52
55
|
return /* @__PURE__ */ e(
|
|
53
56
|
y,
|
|
54
57
|
{
|
|
55
|
-
defaultSelected:
|
|
56
|
-
onChange:
|
|
58
|
+
defaultSelected: s,
|
|
59
|
+
onChange: c,
|
|
57
60
|
panel: S,
|
|
58
61
|
selected: l,
|
|
59
62
|
children: /* @__PURE__ */ e(
|
|
60
|
-
|
|
63
|
+
n.div,
|
|
61
64
|
{
|
|
62
|
-
className:
|
|
63
|
-
...
|
|
64
|
-
children:
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
|
|
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
|
-
...
|
|
69
|
-
className:
|
|
71
|
+
...d,
|
|
72
|
+
className: m(i.listHolder, d?.className),
|
|
70
73
|
children: [
|
|
71
|
-
/* @__PURE__ */ e(
|
|
72
|
-
/* @__PURE__ */ e(
|
|
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:
|
|
81
|
+
children: r
|
|
79
82
|
}
|
|
80
83
|
)
|
|
81
84
|
]
|
|
82
85
|
}
|
|
83
86
|
),
|
|
84
87
|
/* @__PURE__ */ e(
|
|
85
|
-
|
|
88
|
+
n.div,
|
|
86
89
|
{
|
|
87
90
|
...o,
|
|
88
|
-
className:
|
|
89
|
-
"data-testid": o?.["data-testid"] ?? C(
|
|
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.
|
|
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.
|
|
45
|
-
bottom: "spacing.
|
|
44
|
+
top: "spacing.2",
|
|
45
|
+
bottom: "spacing.2",
|
|
46
46
|
left: "[0]",
|
|
47
47
|
bg: "colour.primary.surfaceHover",
|
|
48
48
|
transition: "all",
|