@iress-oss/ids-components 6.0.0-alpha.20 → 6.0.0-alpha.21
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/{Button-BTkololu.js → Button-BwZzMODc.js} +8 -9
- package/dist/{Provider-B87u_maF.js → Provider-Dw49edAo.js} +21 -31
- package/dist/components/Alert/Alert.js +34 -34
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/CloseButton/CloseButton.js +12 -11
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Field/components/FieldFooter.js +10 -9
- package/dist/components/Field/components/FieldHint.js +3 -2
- package/dist/components/Filter/Filter.js +2 -1
- package/dist/components/Filter/components/FilterResetButton.js +1 -1
- package/dist/components/Filter/components/FilterSearch.d.ts +1 -1
- package/dist/components/Icon/Icon.constants.d.ts +7 -0
- package/dist/components/Icon/Icon.constants.js +10 -0
- package/dist/components/Icon/Icon.d.ts +34 -16
- package/dist/components/Icon/Icon.js +68 -30
- package/dist/components/Icon/Icon.styles.d.ts +23 -0
- package/dist/components/Icon/Icon.styles.js +38 -4
- package/dist/components/Icon/IconProvider.d.ts +100 -0
- package/dist/components/Icon/IconProvider.js +66 -0
- package/dist/components/Icon/components/FontLoader.d.ts +31 -0
- package/dist/components/Icon/components/FontLoader.js +29 -0
- package/dist/components/Icon/helpers/getMaterialSymbolsList.d.ts +12 -0
- package/dist/components/Icon/helpers/getMaterialSymbolsList.js +12 -0
- package/dist/components/Icon/helpers/iconMapping.d.ts +78 -0
- package/dist/components/Icon/helpers/iconMapping.js +75 -0
- package/dist/components/Icon/hooks/useDynamicFontSubsetting.d.ts +45 -0
- package/dist/components/Icon/hooks/useDynamicFontSubsetting.js +78 -0
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/components/Icon/index.js +6 -2
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Input.styles.js +12 -1
- package/dist/components/Link/Link.js +39 -40
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Panel/Panel.styles.js +1 -1
- package/dist/components/Placeholder/Placeholder.d.ts +5 -1
- package/dist/components/Placeholder/Placeholder.js +48 -28
- package/dist/components/Placeholder/Placeholder.styles.js +10 -9
- package/dist/components/Progress/Progress.js +1 -1
- package/dist/components/Provider/Provider.d.ts +9 -5
- package/dist/components/Provider/Provider.js +5 -2
- package/dist/components/Provider/index.js +1 -1
- package/dist/components/RichSelect/RichSelect.styles.js +1 -1
- package/dist/components/RichSelect/SelectCreate/SelectCreate.js +1 -0
- package/dist/components/RichSelect/SelectHeading/SelectHeading.js +1 -1
- package/dist/components/RichSelect/SelectLabel/SelectLabel.styles.d.ts +1 -1
- package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.js +11 -10
- package/dist/components/RichSelect/SelectTags/SelectTags.js +3 -2
- package/dist/components/RichSelect/SelectTags/SelectTags.styles.d.ts +1 -1
- package/dist/components/SkipLink/SkipLink.js +1 -1
- package/dist/components/Slideout/components/SlideoutInner.js +1 -1
- package/dist/components/Slideout/hooks/usePushElement.js +1 -1
- package/dist/components/Spinner/Spinner.js +5 -4
- package/dist/components/TabSet/TabSet.styles.js +3 -1
- package/dist/components/Table/Table.styles.js +7 -3
- package/dist/components/Table/components/TableSortButton.js +24 -15
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Toaster/components/Toast/Toast.js +30 -30
- package/dist/components/Toaster/components/Toast/Toast.styles.d.ts +1 -1
- package/dist/components/Toaster/components/Toast/Toast.styles.js +0 -4
- package/dist/{index-0AvnPY9d.js → index-Bir9MtY7.js} +0 -4
- package/dist/index.d-CZvOUeIl.js +3808 -0
- package/dist/main.js +257 -253
- package/dist/patterns/Loading/components/ValidateLoading.js +1 -1
- package/dist/patterns/Shadow/Shadow.d.ts +0 -4
- package/dist/patterns/Shadow/Shadow.js +407 -459
- package/dist/style.css +1 -1
- package/dist/styled-system/recipes/table.d.ts +1 -1
- package/dist/styled-system/tokens/tokens.d.ts +1 -1
- package/dist/types.d.ts +4 -0
- package/package.json +5 -4
|
@@ -2,15 +2,16 @@ import { jsxs as p, jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
import { GlobalCSSClass as e } from "../../enums.js";
|
|
3
3
|
import { IressIcon as N } from "../Icon/Icon.js";
|
|
4
4
|
import "../Icon/Icon.styles.js";
|
|
5
|
+
import "../Icon/IconProvider.js";
|
|
5
6
|
import { chatty as d, spinner as f } from "./Spinner.styles.js";
|
|
6
|
-
import { c as
|
|
7
|
+
import { c as t } from "../../cx-DN21T1EH.js";
|
|
7
8
|
const S = (r) => {
|
|
8
9
|
if (r.variant === "chatty") {
|
|
9
10
|
const { className: c, screenreaderText: i, ...l } = r, s = d();
|
|
10
11
|
return /* @__PURE__ */ p(
|
|
11
12
|
"span",
|
|
12
13
|
{
|
|
13
|
-
className:
|
|
14
|
+
className: t(c, s.root, e.Spinner),
|
|
14
15
|
"aria-label": i,
|
|
15
16
|
role: "status",
|
|
16
17
|
...l,
|
|
@@ -22,12 +23,12 @@ const S = (r) => {
|
|
|
22
23
|
}
|
|
23
24
|
);
|
|
24
25
|
}
|
|
25
|
-
const { className:
|
|
26
|
+
const { className: n, spin: o = "half", ...m } = r;
|
|
26
27
|
return /* @__PURE__ */ a(
|
|
27
28
|
N,
|
|
28
29
|
{
|
|
29
30
|
...m,
|
|
30
|
-
className: n
|
|
31
|
+
className: t(n, f(), e.Spinner),
|
|
31
32
|
name: "spinner-third",
|
|
32
33
|
spin: o
|
|
33
34
|
}
|
|
@@ -41,11 +41,13 @@ const e = t({
|
|
|
41
41
|
position: "relative"
|
|
42
42
|
},
|
|
43
43
|
panel: {
|
|
44
|
-
pt: "md",
|
|
45
44
|
textStyle: "typography.body.md",
|
|
46
45
|
_focusVisible: {
|
|
47
46
|
layerStyle: "elevation.focus",
|
|
48
47
|
outline: "[none]"
|
|
48
|
+
},
|
|
49
|
+
"& > :not([hidden])": {
|
|
50
|
+
pt: "sm"
|
|
49
51
|
}
|
|
50
52
|
},
|
|
51
53
|
activeIndicator: {
|
|
@@ -27,6 +27,10 @@ const r = {
|
|
|
27
27
|
"sortIcon",
|
|
28
28
|
"table__sortIcon"
|
|
29
29
|
],
|
|
30
|
+
[
|
|
31
|
+
"sortIconActive",
|
|
32
|
+
"table__sortIconActive"
|
|
33
|
+
],
|
|
30
34
|
[
|
|
31
35
|
"activator",
|
|
32
36
|
"table__activator"
|
|
@@ -35,7 +39,7 @@ const r = {
|
|
|
35
39
|
"rowGroupHeader",
|
|
36
40
|
"table__rowGroupHeader"
|
|
37
41
|
]
|
|
38
|
-
], m = /* @__PURE__ */ d.map(([t, e]) => [t, p(e, r, c(b, t))]),
|
|
42
|
+
], m = /* @__PURE__ */ d.map(([t, e]) => [t, p(e, r, c(b, t))]), _ = s((t = {}) => Object.fromEntries(m.map(([e, o]) => [e, o.recipeFn(t)]))), a = [
|
|
39
43
|
"alternate",
|
|
40
44
|
"compact",
|
|
41
45
|
"hover",
|
|
@@ -43,7 +47,7 @@ const r = {
|
|
|
43
47
|
"sortButtonNoWrap",
|
|
44
48
|
"tableBodyOpen",
|
|
45
49
|
"hiddenCaption"
|
|
46
|
-
],
|
|
50
|
+
], u = (t) => ({ ...r, ...l(t) }), g = /* @__PURE__ */ Object.assign(_, {
|
|
47
51
|
__recipe__: !1,
|
|
48
52
|
__name__: "table",
|
|
49
53
|
raw: (t) => t,
|
|
@@ -75,7 +79,7 @@ const r = {
|
|
|
75
79
|
splitVariantProps(t) {
|
|
76
80
|
return i(t, a);
|
|
77
81
|
},
|
|
78
|
-
getVariantProps:
|
|
82
|
+
getVariantProps: u
|
|
79
83
|
}), V = n({
|
|
80
84
|
base: {
|
|
81
85
|
textAlign: "start"
|
|
@@ -1,29 +1,38 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { IressIcon as
|
|
1
|
+
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { IressIcon as t } from "../../Icon/Icon.js";
|
|
3
3
|
import "../../Icon/Icon.styles.js";
|
|
4
|
+
import "../../Icon/IconProvider.js";
|
|
4
5
|
import { table as p } from "../Table.styles.js";
|
|
5
6
|
const i = ({
|
|
6
|
-
children:
|
|
7
|
-
label:
|
|
8
|
-
noWrap:
|
|
9
|
-
sort:
|
|
10
|
-
toggleSorting:
|
|
7
|
+
children: s,
|
|
8
|
+
label: n = "sortable",
|
|
9
|
+
noWrap: a = !0,
|
|
10
|
+
sort: e,
|
|
11
|
+
toggleSorting: c
|
|
11
12
|
}) => {
|
|
12
|
-
const
|
|
13
|
-
return /* @__PURE__ */
|
|
13
|
+
const d = e?.desc ? "arrow_drop_down" : "arrow_drop_up", o = p({ sortButtonNoWrap: a });
|
|
14
|
+
return /* @__PURE__ */ m(
|
|
14
15
|
"button",
|
|
15
16
|
{
|
|
16
17
|
type: "button",
|
|
17
18
|
className: o.sortHeader,
|
|
18
|
-
onClick:
|
|
19
|
+
onClick: c,
|
|
19
20
|
children: [
|
|
20
|
-
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
|
|
21
|
+
s,
|
|
22
|
+
/* @__PURE__ */ r(
|
|
23
|
+
t,
|
|
23
24
|
{
|
|
24
|
-
name:
|
|
25
|
+
name: "sort",
|
|
25
26
|
className: o.sortIcon,
|
|
26
|
-
screenreaderText:
|
|
27
|
+
screenreaderText: n
|
|
28
|
+
}
|
|
29
|
+
),
|
|
30
|
+
e && /* @__PURE__ */ r(
|
|
31
|
+
t,
|
|
32
|
+
{
|
|
33
|
+
name: d,
|
|
34
|
+
className: o.sortIconActive,
|
|
35
|
+
screenreaderText: e.desc ? "(sorted descending)" : "(sorted ascending)"
|
|
27
36
|
}
|
|
28
37
|
)
|
|
29
38
|
]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as h, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as B, useMemo as D } from "react";
|
|
3
3
|
import { propagateTestid as P } from "../../helpers/utility/propagateTestid.js";
|
|
4
|
-
import "../../Button-
|
|
4
|
+
import "../../Button-BwZzMODc.js";
|
|
5
5
|
import { IressCloseButton as j } from "../Button/CloseButton/CloseButton.js";
|
|
6
6
|
import { tag as l } from "./Tag.styles.js";
|
|
7
7
|
import { c as w } from "../../css-DNdLYQld.js";
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as I, createElement as b } from "react";
|
|
3
3
|
import { propagateTestid as c } from "../../../../helpers/utility/propagateTestid.js";
|
|
4
|
-
import { I as v } from "../../../../Button-
|
|
4
|
+
import { I as v } from "../../../../Button-BwZzMODc.js";
|
|
5
5
|
import { IressCloseButton as C } from "../../../Button/CloseButton/CloseButton.js";
|
|
6
6
|
import "../../../Inline/Inline.styles.js";
|
|
7
|
-
import { IressInline as
|
|
7
|
+
import { IressInline as n } from "../../../Inline/Inline.js";
|
|
8
8
|
import { IressText as T } from "../../../Text/Text.js";
|
|
9
9
|
import { c as l } from "../../../../cx-DN21T1EH.js";
|
|
10
10
|
import { toast as k } from "./Toast.styles.js";
|
|
11
11
|
import { s as B } from "../../../../factory-CsinCTPr.js";
|
|
12
12
|
import { IressIcon as S } from "../../../Icon/Icon.js";
|
|
13
13
|
import "../../../Icon/Icon.styles.js";
|
|
14
|
+
import "../../../Icon/IconProvider.js";
|
|
14
15
|
import { GlobalCSSClass as j } from "../../../../enums.js";
|
|
15
16
|
const w = {
|
|
16
17
|
error: "colour.system.danger.text",
|
|
@@ -20,71 +21,70 @@ const w = {
|
|
|
20
21
|
error: "ban",
|
|
21
22
|
success: "check",
|
|
22
23
|
info: "info-square"
|
|
23
|
-
},
|
|
24
|
+
}, _ = I(
|
|
24
25
|
({
|
|
25
26
|
actions: i,
|
|
26
|
-
heading:
|
|
27
|
-
status:
|
|
27
|
+
heading: s,
|
|
28
|
+
status: r,
|
|
28
29
|
children: p,
|
|
29
30
|
content: d,
|
|
30
31
|
dismissible: f = !0,
|
|
31
32
|
onClose: h,
|
|
32
|
-
"data-testid":
|
|
33
|
+
"data-testid": t,
|
|
33
34
|
className: u,
|
|
34
35
|
...x
|
|
35
36
|
}, y) => {
|
|
36
|
-
const
|
|
37
|
+
const o = k({ status: r }), g = !!i?.length;
|
|
37
38
|
return /* @__PURE__ */ e(
|
|
38
39
|
B.div,
|
|
39
40
|
{
|
|
40
41
|
...x,
|
|
41
|
-
"data-testid":
|
|
42
|
-
className: l(u,
|
|
42
|
+
"data-testid": t,
|
|
43
|
+
className: l(u, o.root, j.Toast),
|
|
43
44
|
tabIndex: -1,
|
|
44
45
|
ref: y,
|
|
45
|
-
children: /* @__PURE__ */ e("div", { className:
|
|
46
|
+
children: /* @__PURE__ */ e("div", { className: o.panel, children: /* @__PURE__ */ m(n, { gap: "sm", verticalAlign: "top", noWrap: !0, children: [
|
|
46
47
|
/* @__PURE__ */ e(
|
|
47
48
|
S,
|
|
48
49
|
{
|
|
49
|
-
name: A[
|
|
50
|
-
screenreaderText: `${
|
|
51
|
-
textStyle: "typography.heading.
|
|
52
|
-
|
|
53
|
-
color: w[o]
|
|
50
|
+
name: A[r],
|
|
51
|
+
screenreaderText: `${r}: `,
|
|
52
|
+
textStyle: "typography.heading.4",
|
|
53
|
+
color: w[r]
|
|
54
54
|
}
|
|
55
55
|
),
|
|
56
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ m(
|
|
57
57
|
"div",
|
|
58
58
|
{
|
|
59
|
-
className:
|
|
60
|
-
"data-testid": c(
|
|
59
|
+
className: o.wrapper,
|
|
60
|
+
"data-testid": c(t, "content"),
|
|
61
61
|
children: [
|
|
62
|
-
|
|
62
|
+
s && /* @__PURE__ */ e(
|
|
63
63
|
T,
|
|
64
64
|
{
|
|
65
|
-
className:
|
|
66
|
-
"data-testid": c(
|
|
67
|
-
children: typeof
|
|
65
|
+
className: o.heading,
|
|
66
|
+
"data-testid": c(t, "heading"),
|
|
67
|
+
children: typeof s == "string" ? /* @__PURE__ */ e("h2", { children: s }) : s
|
|
68
68
|
}
|
|
69
69
|
),
|
|
70
70
|
f && /* @__PURE__ */ e(
|
|
71
71
|
C,
|
|
72
72
|
{
|
|
73
73
|
"data-testid": c(
|
|
74
|
-
|
|
74
|
+
t,
|
|
75
75
|
"close-button__button"
|
|
76
76
|
),
|
|
77
|
-
className:
|
|
77
|
+
className: o.closeButton,
|
|
78
78
|
onClick: (a) => h?.(a),
|
|
79
79
|
screenreaderText: "Dismiss"
|
|
80
80
|
}
|
|
81
81
|
),
|
|
82
|
-
/* @__PURE__ */ e("div", { className:
|
|
83
|
-
g && /* @__PURE__ */ e(
|
|
82
|
+
/* @__PURE__ */ e("div", { className: o.content, children: d ?? p }),
|
|
83
|
+
g && /* @__PURE__ */ e(n, { gap: "sm", mt: "spacing.1", children: i?.map((a, N) => /* @__PURE__ */ b(
|
|
84
84
|
v,
|
|
85
85
|
{
|
|
86
86
|
...a,
|
|
87
|
-
className: l(a.className,
|
|
87
|
+
className: l(a.className, o.action),
|
|
88
88
|
key: N
|
|
89
89
|
}
|
|
90
90
|
)) })
|
|
@@ -96,7 +96,7 @@ const w = {
|
|
|
96
96
|
);
|
|
97
97
|
}
|
|
98
98
|
);
|
|
99
|
-
|
|
99
|
+
_.displayName = "Toast";
|
|
100
100
|
export {
|
|
101
|
-
|
|
101
|
+
_ as Toast
|
|
102
102
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const toast: import('../../../../styled-system/types').SlotRecipeRuntimeFn<"content" | "heading" | "
|
|
1
|
+
export declare const toast: import('../../../../styled-system/types').SlotRecipeRuntimeFn<"content" | "heading" | "wrapper" | "action" | "root" | "closeButton" | "panel", {
|
|
2
2
|
status: {
|
|
3
3
|
error: {
|
|
4
4
|
panel: {
|
|
@@ -5,7 +5,6 @@ const r = o({
|
|
|
5
5
|
"action",
|
|
6
6
|
"panel",
|
|
7
7
|
"wrapper",
|
|
8
|
-
"icon",
|
|
9
8
|
"heading",
|
|
10
9
|
"content",
|
|
11
10
|
"closeButton"
|
|
@@ -33,9 +32,6 @@ const r = o({
|
|
|
33
32
|
lineHeight: "1.5",
|
|
34
33
|
paddingRight: "spacing.6"
|
|
35
34
|
},
|
|
36
|
-
icon: {
|
|
37
|
-
lineHeight: "normal"
|
|
38
|
-
},
|
|
39
35
|
heading: {
|
|
40
36
|
display: "inline-block",
|
|
41
37
|
marginBottom: "spacing.1",
|
|
@@ -11,10 +11,6 @@ const s = {
|
|
|
11
11
|
value: "1px solid var(--iress-colour-neutral-70, #6D7278)",
|
|
12
12
|
variable: "var(--borders-input)"
|
|
13
13
|
},
|
|
14
|
-
"borders.placeholder": {
|
|
15
|
-
value: "1.5px solid var(--iress-colour-neutral-30, #E2E6EA)",
|
|
16
|
-
variable: "var(--borders-placeholder)"
|
|
17
|
-
},
|
|
18
14
|
"borders.hover": {
|
|
19
15
|
value: "1px solid var(--iress-colour-primary-fill, #003271)",
|
|
20
16
|
variable: "var(--borders-hover)"
|