@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
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { useState as w, useRef as N, useCallback as s, useEffect as F } from "react";
|
|
2
|
+
const P = ({
|
|
3
|
+
icons: f,
|
|
4
|
+
buildUrl: m,
|
|
5
|
+
dataAttribute: l,
|
|
6
|
+
fontFamily: u,
|
|
7
|
+
disabled: i = !1,
|
|
8
|
+
noSubsetting: c = !1
|
|
9
|
+
}) => {
|
|
10
|
+
const [h, $] = w(/* @__PURE__ */ new Set()), [E, y] = w(!1), a = N(null), o = s((e) => {
|
|
11
|
+
$((t) => {
|
|
12
|
+
const n = new Set(t);
|
|
13
|
+
return e.forEach((L) => n.add(L)), n;
|
|
14
|
+
});
|
|
15
|
+
}, []), p = s((e) => {
|
|
16
|
+
e?.parentNode && e.parentNode.removeChild(e);
|
|
17
|
+
}, []), C = s(
|
|
18
|
+
(e, t) => {
|
|
19
|
+
o(t), p(e), c && y(!0);
|
|
20
|
+
},
|
|
21
|
+
[o, p, c]
|
|
22
|
+
), d = s(
|
|
23
|
+
(e) => {
|
|
24
|
+
setTimeout(() => {
|
|
25
|
+
o(e);
|
|
26
|
+
}, 3e3);
|
|
27
|
+
},
|
|
28
|
+
[o]
|
|
29
|
+
), S = s(
|
|
30
|
+
(e, t) => {
|
|
31
|
+
"fonts" in document ? (document.fonts.check(`24px "${u}"`) ? Promise.resolve() : document.fonts.load(`24px "${u}"`).catch(() => {
|
|
32
|
+
})).then(() => C(e, t)).catch(() => d(t)) : setTimeout(() => o(t), 1e3);
|
|
33
|
+
},
|
|
34
|
+
[u, C, d, o]
|
|
35
|
+
);
|
|
36
|
+
return F(() => () => {
|
|
37
|
+
a.current?.parentNode && a.current.parentNode.removeChild(a.current);
|
|
38
|
+
}, []), F(() => {
|
|
39
|
+
if (i)
|
|
40
|
+
return;
|
|
41
|
+
const e = Array.from(f);
|
|
42
|
+
e.sort((x, v) => x.localeCompare(v));
|
|
43
|
+
const t = m(e), n = document.querySelector(`style[data-${l}]`);
|
|
44
|
+
if (n?.getAttribute("data-url") === t) {
|
|
45
|
+
c && y(!0);
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
(async () => {
|
|
49
|
+
try {
|
|
50
|
+
const I = `@layer reset { ${await (await fetch(t)).text()} }`, r = document.createElement("style");
|
|
51
|
+
r.textContent = I, r.setAttribute(`data-${l}`, "true"), r.setAttribute("data-url", t), document.head.appendChild(r), a.current = r, S(n, e);
|
|
52
|
+
} catch {
|
|
53
|
+
d(e);
|
|
54
|
+
}
|
|
55
|
+
})();
|
|
56
|
+
}, [
|
|
57
|
+
f,
|
|
58
|
+
m,
|
|
59
|
+
l,
|
|
60
|
+
i,
|
|
61
|
+
S,
|
|
62
|
+
d
|
|
63
|
+
]), {
|
|
64
|
+
/**
|
|
65
|
+
* Set of icons that have been loaded and are ready to use
|
|
66
|
+
*/
|
|
67
|
+
loadedIcons: h,
|
|
68
|
+
/**
|
|
69
|
+
* Check if a specific icon has been loaded
|
|
70
|
+
* In noSubsetting mode, returns true if fullyLoaded
|
|
71
|
+
* In subsetting mode, only returns true for individually loaded icons
|
|
72
|
+
*/
|
|
73
|
+
isIconLoaded: (e) => c ? E : h.has(e)
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
export {
|
|
77
|
+
P as useDynamicFontSubsetting
|
|
78
|
+
};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { IressIcon as e } from "./Icon.js";
|
|
2
|
-
import {
|
|
2
|
+
import { MATERIAL_SYMBOLS as f } from "./Icon.constants.js";
|
|
3
|
+
import { icon as p } from "./Icon.styles.js";
|
|
4
|
+
import { IressIconProvider as t } from "./IconProvider.js";
|
|
3
5
|
export {
|
|
4
6
|
e as IressIcon,
|
|
5
|
-
|
|
7
|
+
t as IressIconProvider,
|
|
8
|
+
f as MATERIAL_SYMBOLS,
|
|
9
|
+
p as icon
|
|
6
10
|
};
|
|
@@ -13,7 +13,7 @@ import { input as X } from "./Input.styles.js";
|
|
|
13
13
|
import { s as Z } from "../../factory-CsinCTPr.js";
|
|
14
14
|
import { s as _ } from "../../is-valid-prop-DweT-eOL.js";
|
|
15
15
|
import { useNoDefaultValueInForms as ee } from "../../patterns/Form/hooks/useNoDefaultValueInForms.js";
|
|
16
|
-
import "../../Button-
|
|
16
|
+
import "../../Button-BwZzMODc.js";
|
|
17
17
|
import { IressCloseButton as te } from "../Button/CloseButton/CloseButton.js";
|
|
18
18
|
const re = ({ rows: t, ...c }, P) => {
|
|
19
19
|
const {
|
|
@@ -4,7 +4,7 @@ const o = r({
|
|
|
4
4
|
base: {
|
|
5
5
|
wrapper: {
|
|
6
6
|
// Performance: CSS containment limits style recalculation scope
|
|
7
|
-
contain: "style
|
|
7
|
+
contain: "style",
|
|
8
8
|
display: "flex",
|
|
9
9
|
alignItems: "stretch",
|
|
10
10
|
borderRadius: "radius.system.form",
|
|
@@ -221,6 +221,17 @@ const o = r({
|
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
},
|
|
224
|
+
compoundVariants: [
|
|
225
|
+
{
|
|
226
|
+
isTextarea: !0,
|
|
227
|
+
stretched: !0,
|
|
228
|
+
css: {
|
|
229
|
+
formControl: {
|
|
230
|
+
height: "[100%]"
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
],
|
|
224
235
|
defaultVariants: {}
|
|
225
236
|
});
|
|
226
237
|
export {
|
|
@@ -1,85 +1,84 @@
|
|
|
1
|
-
import { jsxs as L, Fragment as N, jsx as
|
|
1
|
+
import { jsxs as L, Fragment as N, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as S, useId as P, useMemo as m, useCallback as j } from "react";
|
|
3
3
|
import { IressSpinner as v } from "../Spinner/Spinner.js";
|
|
4
4
|
import "../Spinner/Spinner.styles.js";
|
|
5
5
|
import { s as w } from "../../is-valid-prop-DweT-eOL.js";
|
|
6
|
-
import { c as
|
|
6
|
+
import { c as e } from "../../css-DNdLYQld.js";
|
|
7
7
|
import { c as G } from "../../cx-DN21T1EH.js";
|
|
8
8
|
import { link as F } from "./Link.styles.js";
|
|
9
|
-
import { GlobalCSSClass as
|
|
9
|
+
import { GlobalCSSClass as b } from "../../enums.js";
|
|
10
10
|
const M = ({
|
|
11
|
-
active:
|
|
11
|
+
active: h,
|
|
12
12
|
append: n,
|
|
13
|
-
children:
|
|
13
|
+
children: p,
|
|
14
14
|
className: f,
|
|
15
|
-
element:
|
|
15
|
+
element: c,
|
|
16
16
|
loading: r = !1,
|
|
17
17
|
onClick: l,
|
|
18
|
-
prepend:
|
|
19
|
-
...
|
|
20
|
-
},
|
|
21
|
-
const
|
|
22
|
-
active:
|
|
18
|
+
prepend: a,
|
|
19
|
+
...u
|
|
20
|
+
}, y) => {
|
|
21
|
+
const i = P(), s = F.raw({
|
|
22
|
+
active: h,
|
|
23
23
|
loading: !!r
|
|
24
|
-
}), [
|
|
25
|
-
() => w(
|
|
26
|
-
[
|
|
27
|
-
),
|
|
24
|
+
}), [d, t] = m(
|
|
25
|
+
() => w(u),
|
|
26
|
+
[u]
|
|
27
|
+
), k = j(
|
|
28
28
|
(I) => {
|
|
29
29
|
r || l?.(I);
|
|
30
30
|
},
|
|
31
31
|
[r, l]
|
|
32
|
-
),
|
|
32
|
+
), C = m(
|
|
33
33
|
() => ({
|
|
34
34
|
children: /* @__PURE__ */ L(N, { children: [
|
|
35
|
-
|
|
36
|
-
!!r && /* @__PURE__ */
|
|
35
|
+
a && !r && /* @__PURE__ */ o("span", { className: e(s.prepend), children: a }),
|
|
36
|
+
!!r && /* @__PURE__ */ o(
|
|
37
37
|
v,
|
|
38
38
|
{
|
|
39
|
-
className:
|
|
40
|
-
|
|
41
|
-
id: a,
|
|
39
|
+
className: e(s.spinner),
|
|
40
|
+
id: i,
|
|
42
41
|
screenreaderText: r === !0 ? "Loading" : r
|
|
43
42
|
}
|
|
44
43
|
),
|
|
45
|
-
|
|
46
|
-
n && /* @__PURE__ */
|
|
44
|
+
p && /* @__PURE__ */ o("span", { className: e(s.content), children: p }),
|
|
45
|
+
n && /* @__PURE__ */ o("span", { className: e(s.append), children: n })
|
|
47
46
|
] }),
|
|
48
47
|
className: G(
|
|
49
48
|
f,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
e(s.root, d),
|
|
50
|
+
b.Group,
|
|
51
|
+
b.Link
|
|
53
52
|
),
|
|
54
|
-
onClick:
|
|
53
|
+
onClick: k
|
|
55
54
|
}),
|
|
56
55
|
[
|
|
57
56
|
n,
|
|
58
|
-
|
|
57
|
+
p,
|
|
59
58
|
f,
|
|
60
|
-
|
|
59
|
+
k,
|
|
61
60
|
r,
|
|
62
|
-
c,
|
|
63
61
|
a,
|
|
64
|
-
|
|
62
|
+
i,
|
|
63
|
+
d,
|
|
65
64
|
s.append,
|
|
66
65
|
s.content,
|
|
67
66
|
s.prepend,
|
|
68
67
|
s.root,
|
|
69
68
|
s.spinner
|
|
70
69
|
]
|
|
71
|
-
),
|
|
72
|
-
() =>
|
|
73
|
-
[
|
|
70
|
+
), x = m(
|
|
71
|
+
() => c ?? (t.href ? "a" : "button"),
|
|
72
|
+
[c, t.href]
|
|
74
73
|
);
|
|
75
|
-
return /* @__PURE__ */
|
|
76
|
-
|
|
74
|
+
return /* @__PURE__ */ o(
|
|
75
|
+
x,
|
|
77
76
|
{
|
|
78
|
-
"aria-describedby": r ?
|
|
79
|
-
type:
|
|
80
|
-
...
|
|
77
|
+
"aria-describedby": r ? i : void 0,
|
|
78
|
+
type: c || !t.href ? "button" : void 0,
|
|
79
|
+
...C,
|
|
81
80
|
...t,
|
|
82
|
-
ref:
|
|
81
|
+
ref: y
|
|
83
82
|
}
|
|
84
83
|
);
|
|
85
84
|
}, R = S(M);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n, jsxs as v } from "react/jsx-runtime";
|
|
2
2
|
import { useState as Z, useEffect as w, useMemo as oo } from "react";
|
|
3
|
-
import "../../Button-
|
|
3
|
+
import "../../Button-BwZzMODc.js";
|
|
4
4
|
import { IressCloseButton as eo } from "../Button/CloseButton/CloseButton.js";
|
|
5
5
|
import { u as to, b as so, c as ro, d as no, e as ao, F as io, f as lo, g as co } from "../../floating-ui.react-BlU6Nz_4.js";
|
|
6
6
|
import { idsLogger as mo } from "../../helpers/utility/idsLogger.js";
|
|
@@ -2,7 +2,7 @@ import { c as a } from "../../cva-DtPMccE9.js";
|
|
|
2
2
|
const o = a({
|
|
3
3
|
base: {
|
|
4
4
|
// Performance: CSS containment (no paint to allow overflow)
|
|
5
|
-
contain: "
|
|
5
|
+
contain: "style",
|
|
6
6
|
display: "block",
|
|
7
7
|
boxSizing: "border-box",
|
|
8
8
|
borderRadius: "radius.system.layout",
|
|
@@ -5,6 +5,10 @@ export interface IressPlaceholderProps extends Omit<IressStyledProps, 'width'> {
|
|
|
5
5
|
* Description of the placeholder's envisioned contents.
|
|
6
6
|
*/
|
|
7
7
|
children?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Title for the placeholder content.
|
|
10
|
+
*/
|
|
11
|
+
heading?: ReactNode;
|
|
8
12
|
/**
|
|
9
13
|
* Sets the height of the placeholder.
|
|
10
14
|
*/
|
|
@@ -19,6 +23,6 @@ export interface IressPlaceholderProps extends Omit<IressStyledProps, 'width'> {
|
|
|
19
23
|
width?: string | number;
|
|
20
24
|
}
|
|
21
25
|
export declare const IressPlaceholder: {
|
|
22
|
-
({ children, className, height, stretch, style, width, ...restProps }: IressPlaceholderProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
({ children, className, heading, height, stretch, style, width, ...restProps }: IressPlaceholderProps): import("react/jsx-runtime").JSX.Element;
|
|
23
27
|
displayName: string;
|
|
24
28
|
};
|
|
@@ -1,40 +1,60 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { toCSSLengthValue as
|
|
3
|
-
import { c as
|
|
4
|
-
import { placeholder as
|
|
5
|
-
import { IressText as
|
|
6
|
-
import { GlobalCSSClass as
|
|
7
|
-
const
|
|
8
|
-
children:
|
|
9
|
-
className:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { jsxs as c, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { toCSSLengthValue as m } from "../../helpers/formatting/toCSSLengthValue.js";
|
|
3
|
+
import { c as g } from "../../cx-DN21T1EH.js";
|
|
4
|
+
import { placeholder as y } from "./Placeholder.styles.js";
|
|
5
|
+
import { IressText as n } from "../Text/Text.js";
|
|
6
|
+
import { GlobalCSSClass as u } from "../../enums.js";
|
|
7
|
+
const f = ({
|
|
8
|
+
children: l,
|
|
9
|
+
className: i,
|
|
10
|
+
heading: o,
|
|
11
|
+
height: t = "auto",
|
|
12
|
+
stretch: p,
|
|
13
|
+
style: r,
|
|
14
|
+
width: a = "auto",
|
|
15
|
+
...h
|
|
15
16
|
}) => {
|
|
16
|
-
const
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
|
|
17
|
+
const x = t === "auto" ? p ? "100%" : t : m(t), e = y(), d = !l && !o;
|
|
18
|
+
return /* @__PURE__ */ c(
|
|
19
|
+
n,
|
|
19
20
|
{
|
|
20
|
-
className:
|
|
21
|
-
...
|
|
21
|
+
className: g(i, e.root, u.Placeholder),
|
|
22
|
+
...h,
|
|
22
23
|
style: {
|
|
23
|
-
...
|
|
24
|
-
width:
|
|
25
|
-
height:
|
|
24
|
+
...r,
|
|
25
|
+
width: a ? m(a) : r?.width,
|
|
26
|
+
height: x
|
|
26
27
|
},
|
|
27
28
|
children: [
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
|
|
29
|
+
d && /* @__PURE__ */ c("svg", { xmlns: "http://www.w3.org/2000/svg", className: e.svg, children: [
|
|
30
|
+
/* @__PURE__ */ s(
|
|
31
|
+
"line",
|
|
32
|
+
{
|
|
33
|
+
x1: "0",
|
|
34
|
+
y1: "0",
|
|
35
|
+
x2: "100%",
|
|
36
|
+
y2: "100%",
|
|
37
|
+
className: e.line
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ s(
|
|
41
|
+
"line",
|
|
42
|
+
{
|
|
43
|
+
x1: "100%",
|
|
44
|
+
y1: "0",
|
|
45
|
+
x2: "0",
|
|
46
|
+
y2: "100%",
|
|
47
|
+
className: e.line
|
|
48
|
+
}
|
|
49
|
+
)
|
|
31
50
|
] }),
|
|
32
|
-
|
|
51
|
+
o && /* @__PURE__ */ s(n, { element: "strong", textStyle: "typography.heading.4", children: o }),
|
|
52
|
+
l
|
|
33
53
|
]
|
|
34
54
|
}
|
|
35
55
|
);
|
|
36
56
|
};
|
|
37
|
-
|
|
57
|
+
f.displayName = "IressPlaceholder";
|
|
38
58
|
export {
|
|
39
|
-
|
|
59
|
+
f as IressPlaceholder
|
|
40
60
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { s as
|
|
2
|
-
const
|
|
1
|
+
import { s as o } from "../../sva-B7kca5XO.js";
|
|
2
|
+
const r = o({
|
|
3
3
|
slots: ["root", "svg", "line"],
|
|
4
4
|
base: {
|
|
5
5
|
root: {
|
|
6
6
|
alignItems: "center",
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
flexDirection: "column",
|
|
8
|
+
bg: "colour.primary.surface",
|
|
9
|
+
color: "colour.primary.text",
|
|
10
10
|
boxSizing: "border-box",
|
|
11
11
|
display: "flex",
|
|
12
12
|
justifyContent: "center",
|
|
@@ -21,12 +21,13 @@ const t = e({
|
|
|
21
21
|
zIndex: "[-1]"
|
|
22
22
|
},
|
|
23
23
|
line: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
display: "none",
|
|
25
|
+
strokeWidth: "0.5px",
|
|
26
|
+
stroke: "colour.primary.fill",
|
|
27
|
+
strokeOpacity: "0.1"
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
});
|
|
30
31
|
export {
|
|
31
|
-
|
|
32
|
+
r as placeholder
|
|
32
33
|
};
|
|
@@ -6,7 +6,7 @@ import { progress as b } from "./Progress.styles.js";
|
|
|
6
6
|
import { s as p } from "../../factory-CsinCTPr.js";
|
|
7
7
|
import { s as x } from "../../is-valid-prop-DweT-eOL.js";
|
|
8
8
|
import { GlobalCSSClass as C } from "../../enums.js";
|
|
9
|
-
import { t as N } from "../../index-
|
|
9
|
+
import { t as N } from "../../index-Bir9MtY7.js";
|
|
10
10
|
const h = ({
|
|
11
11
|
backgroundImage: e,
|
|
12
12
|
borderRadius: t,
|
|
@@ -2,6 +2,7 @@ import { FloatingUIContainer } from '../../types';
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { IressToasterProviderProps } from '../Toaster';
|
|
4
4
|
import { IressSlideoutProviderProps } from '../Slideout';
|
|
5
|
+
import { IressIconProviderProps } from '../Icon';
|
|
5
6
|
export interface IressProviderProps extends IressSlideoutProviderProps, Pick<IressToasterProviderProps, 'position'> {
|
|
6
7
|
/**
|
|
7
8
|
* The contents of your application, and/or the components which will be calling slideouts, modals and toasts.
|
|
@@ -13,15 +14,18 @@ export interface IressProviderProps extends IressSlideoutProviderProps, Pick<Ire
|
|
|
13
14
|
*/
|
|
14
15
|
container?: FloatingUIContainer;
|
|
15
16
|
/**
|
|
16
|
-
*
|
|
17
|
+
* Disable automatic font subsetting via Google Fonts CDN
|
|
18
|
+
* When false, only icons actually used in the component tree are loaded
|
|
19
|
+
* When true, the full Material Symbols font is loaded
|
|
20
|
+
* @default false
|
|
17
21
|
*/
|
|
18
|
-
|
|
22
|
+
noSubsetting?: IressIconProviderProps['noSubsetting'];
|
|
19
23
|
/**
|
|
20
|
-
* If you don't want to load the Iress
|
|
24
|
+
* If you don't want to load the default Iress font from the CDN, set this to true.
|
|
21
25
|
*/
|
|
22
|
-
|
|
26
|
+
noDefaultFont?: boolean;
|
|
23
27
|
}
|
|
24
28
|
export declare const IressProvider: {
|
|
25
|
-
({ children, container, noDefaultFont,
|
|
29
|
+
({ children, container, noDefaultFont, position, ...restProps }: IressProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
26
30
|
displayName: string;
|
|
27
31
|
};
|
|
@@ -12,7 +12,10 @@ import "../Slideout/Slideout.styles.js";
|
|
|
12
12
|
import "../Slideout/SlideoutProvider.js";
|
|
13
13
|
import "../Slideout/hooks/useSlideout.js";
|
|
14
14
|
import "react-dom";
|
|
15
|
-
import { I as
|
|
15
|
+
import { I as j } from "../../Provider-Dw49edAo.js";
|
|
16
|
+
import "../Icon/Icon.js";
|
|
17
|
+
import "../Icon/Icon.styles.js";
|
|
18
|
+
import "../Icon/IconProvider.js";
|
|
16
19
|
export {
|
|
17
|
-
|
|
20
|
+
j as IressProvider
|
|
18
21
|
};
|
|
@@ -8,6 +8,7 @@ import { IressMenuItem as I } from "../../Menu/MenuItem/MenuItem.js";
|
|
|
8
8
|
import "../../Menu/MenuText/MenuText.js";
|
|
9
9
|
import { IressIcon as f } from "../../Icon/Icon.js";
|
|
10
10
|
import "../../Icon/Icon.styles.js";
|
|
11
|
+
import "../../Icon/IconProvider.js";
|
|
11
12
|
import { IressSelectHeading as u } from "../SelectHeading/SelectHeading.js";
|
|
12
13
|
const b = ({
|
|
13
14
|
fluid: m = !0,
|
|
@@ -8,7 +8,7 @@ import "../../Menu/MenuDivider/MenuDivider.js";
|
|
|
8
8
|
import "../../Menu/MenuItem/MenuItem.js";
|
|
9
9
|
import { IressMenuHeading as g } from "../../Menu/MenuText/MenuText.js";
|
|
10
10
|
import { GlobalCSSClass as a } from "../../../enums.js";
|
|
11
|
-
import { I as h } from "../../../Button-
|
|
11
|
+
import { I as h } from "../../../Button-BwZzMODc.js";
|
|
12
12
|
import "../../Button/CloseButton/CloseButton.js";
|
|
13
13
|
import "../../Popover/Popover.js";
|
|
14
14
|
import "../../Popover/Popover.styles.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const selectLabel: import('../../../styled-system/types').SlotRecipeRuntimeFn<"
|
|
1
|
+
export declare const selectLabel: import('../../../styled-system/types').SlotRecipeRuntimeFn<"contents" | "placeholder" | "append" | "prepend" | "selectLabel", {
|
|
2
2
|
showDefaultChevron: {
|
|
3
3
|
true: {
|
|
4
4
|
selectLabel: {
|
|
@@ -4,6 +4,7 @@ import { c as h } from "../../../cx-DN21T1EH.js";
|
|
|
4
4
|
import { selectSearchInput as v } from "./SelectSearchInput.styles.js";
|
|
5
5
|
import { IressIcon as b } from "../../Icon/Icon.js";
|
|
6
6
|
import "../../Icon/Icon.styles.js";
|
|
7
|
+
import "../../Icon/IconProvider.js";
|
|
7
8
|
import { IressInput as d } from "../../Input/Input.js";
|
|
8
9
|
import "../../Input/Input.styles.js";
|
|
9
10
|
import { usePopoverItem as x } from "../../Popover/hooks/usePopoverItem.js";
|
|
@@ -11,30 +12,30 @@ import { GlobalCSSClass as R } from "../../../enums.js";
|
|
|
11
12
|
const P = u(
|
|
12
13
|
({
|
|
13
14
|
"aria-label": s,
|
|
14
|
-
autoComplete:
|
|
15
|
-
className:
|
|
16
|
-
placeholder:
|
|
15
|
+
autoComplete: m = "off",
|
|
16
|
+
className: a,
|
|
17
|
+
placeholder: e = "Search",
|
|
17
18
|
prepend: c = /* @__PURE__ */ t(b, { name: "search" }),
|
|
18
19
|
...p
|
|
19
20
|
}, n) => {
|
|
20
|
-
const
|
|
21
|
-
return S(n, () =>
|
|
21
|
+
const r = I(null), { isActiveInPopover: i, ...o } = x(), l = v({ isActiveInPopover: i });
|
|
22
|
+
return S(n, () => r.current), /* @__PURE__ */ t(
|
|
22
23
|
d,
|
|
23
24
|
{
|
|
24
25
|
...p,
|
|
25
26
|
...o,
|
|
26
27
|
tabIndex: void 0,
|
|
27
|
-
"aria-label": s ??
|
|
28
|
-
autoComplete:
|
|
28
|
+
"aria-label": s ?? e ?? "Search",
|
|
29
|
+
autoComplete: m,
|
|
29
30
|
className: h(
|
|
30
31
|
l.root,
|
|
31
|
-
|
|
32
|
+
a,
|
|
32
33
|
R.RichSelectSearchInput
|
|
33
34
|
),
|
|
34
|
-
placeholder:
|
|
35
|
+
placeholder: e,
|
|
35
36
|
prepend: c,
|
|
36
37
|
ref: (f) => {
|
|
37
|
-
|
|
38
|
+
r.current = f, o?.ref?.(r.current?.input ?? null);
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
);
|
|
@@ -21,10 +21,11 @@ import "../../Popover/Popover.styles.js";
|
|
|
21
21
|
import "../../Popover/InputPopover/InputPopover.js";
|
|
22
22
|
import { usePopover as V } from "../../Popover/hooks/usePopover.js";
|
|
23
23
|
import "../../Popover/hooks/useFloatingPopover.js";
|
|
24
|
-
import { I as G } from "../../../Button-
|
|
24
|
+
import { I as G } from "../../../Button-BwZzMODc.js";
|
|
25
25
|
import "../../Button/CloseButton/CloseButton.js";
|
|
26
26
|
import { IressIcon as R } from "../../Icon/Icon.js";
|
|
27
27
|
import "../../Icon/Icon.styles.js";
|
|
28
|
+
import "../../Icon/IconProvider.js";
|
|
28
29
|
import { GlobalCSSClass as S } from "../../../enums.js";
|
|
29
30
|
import "../../Inline/Inline.styles.js";
|
|
30
31
|
import { IressInline as W } from "../../Inline/Inline.js";
|
|
@@ -83,7 +84,7 @@ const C = (r, s) => {
|
|
|
83
84
|
deleteButton: /* @__PURE__ */ o(
|
|
84
85
|
L,
|
|
85
86
|
{
|
|
86
|
-
activator: /* @__PURE__ */ o(G, { mode: "
|
|
87
|
+
activator: /* @__PURE__ */ o(G, { mode: "muted", children: /* @__PURE__ */ o(
|
|
87
88
|
R,
|
|
88
89
|
{
|
|
89
90
|
name: "chevron-circle-down",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const selectTags: import('../../../styled-system/types').SlotRecipeRuntimeFn<"
|
|
1
|
+
export declare const selectTags: import('../../../styled-system/types').SlotRecipeRuntimeFn<"tag" | "root" | "placeholder" | "append" | "prepend" | "tagsList", {
|
|
2
2
|
showDefaultChevron: {
|
|
3
3
|
true: {
|
|
4
4
|
root: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as t } from "react";
|
|
3
|
-
import { I as m } from "../../Button-
|
|
3
|
+
import { I as m } from "../../Button-BwZzMODc.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,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-BwZzMODc.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-CsinCTPr.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-Bir9MtY7.js";
|
|
4
4
|
import { useBreakpoint as S } from "../../../hooks/useBreakpoint.js";
|
|
5
5
|
function h({
|
|
6
6
|
element: r,
|