@rte-ds/react 1.3.0 → 1.3.1
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/components/button/Button.d.ts +3 -0
- package/dist/react-package.cjs +1 -1
- package/dist/react-package.js +538 -525
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/react-package.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as r, jsxs as g, Fragment as
|
|
2
|
-
import i6, { forwardRef as z, useState as N, useEffect as
|
|
1
|
+
import { jsx as r, jsxs as g, Fragment as X } from "react/jsx-runtime";
|
|
2
|
+
import i6, { forwardRef as z, useState as N, useEffect as E, useRef as K, createContext as A3, useContext as V3, useCallback as $, Fragment as J1, useMemo as j1, useLayoutEffect as c6 } from "react";
|
|
3
3
|
import { createPortal as a6 } from "react-dom";
|
|
4
4
|
const H1 = {
|
|
5
5
|
xs: 12,
|
|
@@ -37,7 +37,7 @@ function h6({ size: C, content: e, count: t, iconSize: n }) {
|
|
|
37
37
|
return !0;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function n3(C) {
|
|
41
41
|
return typeof C != "number" ? "" : C < w6 ? C.toString() : u6;
|
|
42
42
|
}
|
|
43
43
|
function U1(C) {
|
|
@@ -2724,7 +2724,7 @@ const H6 = ({
|
|
|
2724
2724
|
function I1(C) {
|
|
2725
2725
|
return p6(C, R3, E3);
|
|
2726
2726
|
}
|
|
2727
|
-
const
|
|
2727
|
+
const A = ({ name: C, size: e, color: t, appearance: n, ...l }) => {
|
|
2728
2728
|
if (I1(C)) {
|
|
2729
2729
|
const o = E3[C];
|
|
2730
2730
|
if (o) {
|
|
@@ -2763,7 +2763,7 @@ const le = "_badgeContainer_3v2tn_1", se = "_badge_3v2tn_1", ie = "_hidden_3v2tn
|
|
|
2763
2763
|
var u;
|
|
2764
2764
|
if (t == "icon" && l && !I1(l))
|
|
2765
2765
|
return console.warn(`Badge: Invalid icon name "${l}". Please use a valid icon key.`), null;
|
|
2766
|
-
const i = v6(e), a = D3({ size: e, content: t, iconSize: i }), d = T3({ size: e, content: t, count: n }), v = h6({ size: e, content: t, count: n, iconSize: i }), h = d && ((u =
|
|
2766
|
+
const i = v6(e), a = D3({ size: e, content: t, iconSize: i }), d = T3({ size: e, content: t, count: n }), v = h6({ size: e, content: t, count: n, iconSize: i }), h = d && ((u = n3(n)) == null ? void 0 : u.length) > 2;
|
|
2767
2767
|
return o ? /* @__PURE__ */ g("div", { ref: c, className: n1.badgeContainer, ...s, children: [
|
|
2768
2768
|
/* @__PURE__ */ g(
|
|
2769
2769
|
"div",
|
|
@@ -2777,8 +2777,8 @@ const le = "_badgeContainer_3v2tn_1", se = "_badge_3v2tn_1", ie = "_hidden_3v2tn
|
|
|
2777
2777
|
h ? n1.countOverflow : ""
|
|
2778
2778
|
),
|
|
2779
2779
|
children: [
|
|
2780
|
-
a && /* @__PURE__ */ r(
|
|
2781
|
-
d && /* @__PURE__ */ r("span", { className: n1.count, children:
|
|
2780
|
+
a && /* @__PURE__ */ r(A, { name: l, className: n1.icon, size: i }),
|
|
2781
|
+
d && /* @__PURE__ */ r("span", { className: n1.count, children: n3(n) }, n)
|
|
2782
2782
|
]
|
|
2783
2783
|
}
|
|
2784
2784
|
),
|
|
@@ -2796,15 +2796,15 @@ const le = "_badgeContainer_3v2tn_1", se = "_badge_3v2tn_1", ie = "_hidden_3v2tn
|
|
|
2796
2796
|
h ? n1.countOverflow : ""
|
|
2797
2797
|
),
|
|
2798
2798
|
children: [
|
|
2799
|
-
a && /* @__PURE__ */ r(
|
|
2800
|
-
d && /* @__PURE__ */ r("span", { className: n1.count, children:
|
|
2799
|
+
a && /* @__PURE__ */ r(A, { name: l, className: n1.icon, size: i }),
|
|
2800
|
+
d && /* @__PURE__ */ r("span", { className: n1.count, children: n3(n) }, n)
|
|
2801
2801
|
]
|
|
2802
2802
|
}
|
|
2803
2803
|
) });
|
|
2804
2804
|
}
|
|
2805
2805
|
), D1 = (C, e = 300) => {
|
|
2806
2806
|
const [t, n] = N(C), [l, o] = N(C);
|
|
2807
|
-
return
|
|
2807
|
+
return E(() => {
|
|
2808
2808
|
if (C)
|
|
2809
2809
|
t || (n(!0), o(!1), requestAnimationFrame(() => {
|
|
2810
2810
|
requestAnimationFrame(() => o(!0));
|
|
@@ -2828,10 +2828,10 @@ const le = "_badgeContainer_3v2tn_1", se = "_badge_3v2tn_1", ie = "_hidden_3v2tn
|
|
|
2828
2828
|
s: "m",
|
|
2829
2829
|
m: "m",
|
|
2830
2830
|
l: "l"
|
|
2831
|
-
}, de = "_button_3bzxf_1", we = "_label_3bzxf_169",
|
|
2831
|
+
}, de = "_button_3bzxf_1", we = "_label_3bzxf_169", r3 = {
|
|
2832
2832
|
button: de,
|
|
2833
2833
|
label: we
|
|
2834
|
-
},
|
|
2834
|
+
}, C3 = z(
|
|
2835
2835
|
({
|
|
2836
2836
|
size: C = "m",
|
|
2837
2837
|
label: e,
|
|
@@ -2843,42 +2843,53 @@ const le = "_badgeContainer_3v2tn_1", se = "_badge_3v2tn_1", ie = "_hidden_3v2tn
|
|
|
2843
2843
|
badgeCount: c,
|
|
2844
2844
|
badgeType: i,
|
|
2845
2845
|
badgeIcon: a,
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2846
|
+
icon: d,
|
|
2847
|
+
iconPosition: v = "left",
|
|
2848
|
+
iconColor: h,
|
|
2849
|
+
iconAppearance: u,
|
|
2850
|
+
...p
|
|
2851
|
+
}, Z) => {
|
|
2852
|
+
const L = c > 0 && s === "number" || s === "icon" && a, V = C === "s" ? 16 : C === "m" ? 20 : 24, B = /* @__PURE__ */ g(X, { children: [
|
|
2853
|
+
d && v === "left" && /* @__PURE__ */ r(A, { name: d, size: V, color: h, appearance: u }),
|
|
2854
|
+
/* @__PURE__ */ r("span", { "data-size": C, className: r3.label, children: e }),
|
|
2855
|
+
d && v === "right" && /* @__PURE__ */ r(A, { name: d, size: V, color: h, appearance: u })
|
|
2856
|
+
] });
|
|
2857
|
+
return L ? /* @__PURE__ */ r(
|
|
2858
|
+
C1,
|
|
2859
|
+
{
|
|
2860
|
+
badgeType: i,
|
|
2861
|
+
size: ae[C],
|
|
2862
|
+
content: C === "s" ? "empty" : s,
|
|
2863
|
+
count: c,
|
|
2864
|
+
icon: a,
|
|
2865
|
+
children: /* @__PURE__ */ r(
|
|
2866
|
+
"button",
|
|
2867
|
+
{
|
|
2868
|
+
ref: Z,
|
|
2869
|
+
type: o,
|
|
2870
|
+
className: R(r3.button, n),
|
|
2871
|
+
"data-size": C,
|
|
2872
|
+
"data-variant": t,
|
|
2873
|
+
onClick: l,
|
|
2874
|
+
...p,
|
|
2875
|
+
children: B
|
|
2876
|
+
}
|
|
2877
|
+
)
|
|
2878
|
+
}
|
|
2879
|
+
) : /* @__PURE__ */ r(
|
|
2880
|
+
"button",
|
|
2881
|
+
{
|
|
2882
|
+
ref: Z,
|
|
2883
|
+
type: o,
|
|
2884
|
+
className: R(r3.button, n),
|
|
2885
|
+
"data-size": C,
|
|
2886
|
+
"data-variant": t,
|
|
2887
|
+
onClick: l,
|
|
2888
|
+
...p,
|
|
2889
|
+
children: B
|
|
2890
|
+
}
|
|
2891
|
+
);
|
|
2892
|
+
}
|
|
2882
2893
|
), f3 = {
|
|
2883
2894
|
"icon-button": "_icon-button_1w2tu_1"
|
|
2884
2895
|
}, d1 = z(
|
|
@@ -2915,7 +2926,7 @@ const le = "_badgeContainer_3v2tn_1", se = "_badge_3v2tn_1", ie = "_hidden_3v2tn
|
|
|
2915
2926
|
"data-compact-spacing": c,
|
|
2916
2927
|
onClick: n,
|
|
2917
2928
|
...h,
|
|
2918
|
-
children: /* @__PURE__ */ r(
|
|
2929
|
+
children: /* @__PURE__ */ r(A, { name: o, appearance: s, size: Z3[C] })
|
|
2919
2930
|
}
|
|
2920
2931
|
)
|
|
2921
2932
|
}
|
|
@@ -2930,7 +2941,7 @@ const le = "_badgeContainer_3v2tn_1", se = "_badge_3v2tn_1", ie = "_hidden_3v2tn
|
|
|
2930
2941
|
"data-compact-spacing": c,
|
|
2931
2942
|
onClick: n,
|
|
2932
2943
|
...h,
|
|
2933
|
-
children: /* @__PURE__ */ r(
|
|
2944
|
+
children: /* @__PURE__ */ r(A, { name: o, appearance: s, size: Z3[C] })
|
|
2934
2945
|
}
|
|
2935
2946
|
) : (console.warn(`IconButton: Invalid icon name "${o}". Please use a valid icon key.`), null)
|
|
2936
2947
|
), ue = "_banner_vvnzx_1", S1 = {
|
|
@@ -2954,23 +2965,23 @@ const le = "_badgeContainer_3v2tn_1", se = "_badge_3v2tn_1", ie = "_hidden_3v2tn
|
|
|
2954
2965
|
isOpen: a = !0,
|
|
2955
2966
|
...d
|
|
2956
2967
|
}, v) => {
|
|
2957
|
-
const [h, u] = N(a),
|
|
2968
|
+
const [h, u] = N(a), p = t === "error" ? "alert" : "status", { shouldRender: Z, isAnimating: L } = D1(h, 200), V = {
|
|
2958
2969
|
info: "info",
|
|
2959
2970
|
error: "dangerous",
|
|
2960
2971
|
success: "check-circle",
|
|
2961
2972
|
warning: "warning"
|
|
2962
2973
|
};
|
|
2963
|
-
if (
|
|
2974
|
+
if (E(() => {
|
|
2964
2975
|
u(a);
|
|
2965
2976
|
}, [a]), n === !1 && o === "overlay")
|
|
2966
2977
|
return console.warn("Banner: 'closable' and 'onClose' props must be set when 'position' has 'overlay' value."), null;
|
|
2967
|
-
const
|
|
2978
|
+
const B = () => {
|
|
2968
2979
|
u(!1), l == null || l();
|
|
2969
2980
|
};
|
|
2970
2981
|
return Z && /* @__PURE__ */ g(
|
|
2971
2982
|
"section",
|
|
2972
2983
|
{
|
|
2973
|
-
role:
|
|
2984
|
+
role: p,
|
|
2974
2985
|
className: R(S1.banner, i),
|
|
2975
2986
|
ref: v,
|
|
2976
2987
|
"data-type": t,
|
|
@@ -2978,13 +2989,13 @@ const le = "_badgeContainer_3v2tn_1", se = "_badge_3v2tn_1", ie = "_hidden_3v2tn
|
|
|
2978
2989
|
"data-open": L || void 0,
|
|
2979
2990
|
...d,
|
|
2980
2991
|
children: [
|
|
2981
|
-
/* @__PURE__ */ r("div", { className: S1["banner-icon"], children: /* @__PURE__ */ r(
|
|
2992
|
+
/* @__PURE__ */ r("div", { className: S1["banner-icon"], children: /* @__PURE__ */ r(A, { name: V[t], size: 32 }) }),
|
|
2982
2993
|
/* @__PURE__ */ g("div", { className: S1["banner-content"], children: [
|
|
2983
2994
|
C && /* @__PURE__ */ r("span", { className: S1["banner-title"], children: C }),
|
|
2984
2995
|
e && /* @__PURE__ */ r("div", { className: S1["banner-message"], children: /* @__PURE__ */ r("span", { children: e }) })
|
|
2985
2996
|
] }),
|
|
2986
|
-
s && c && /* @__PURE__ */ r(
|
|
2987
|
-
n && /* @__PURE__ */ r("div", { className: S1["banner-close-icon"], children: /* @__PURE__ */ r(d1, { variant: "neutral", name: "close", onClick:
|
|
2997
|
+
s && c && /* @__PURE__ */ r(C3, { label: c, onClick: s, variant: "text", "aria-label": c, size: "s" }),
|
|
2998
|
+
n && /* @__PURE__ */ r("div", { className: S1["banner-close-icon"], children: /* @__PURE__ */ r(d1, { variant: "neutral", name: "close", onClick: B, "aria-label": "close banner" }) })
|
|
2988
2999
|
]
|
|
2989
3000
|
}
|
|
2990
3001
|
);
|
|
@@ -3082,7 +3093,7 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3082
3093
|
start: t === "top" || t === "bottom" ? window.innerWidth - o.left >= s.width : window.innerHeight - o.top >= s.height
|
|
3083
3094
|
};
|
|
3084
3095
|
return c.start ? "start" : c.end ? "end" : n;
|
|
3085
|
-
},
|
|
3096
|
+
}, e3 = (C, e, t, n = 0, l = "center") => {
|
|
3086
3097
|
const o = e.getBoundingClientRect(), s = t.getBoundingClientRect();
|
|
3087
3098
|
return C === "bottom" ? Le(o, s, n, l) : C === "left" ? Me(o, s, n, l) : C === "right" ? Ze(o, s, n, l) : fe(o, s, n, l);
|
|
3088
3099
|
}, Le = (C, e, t, n) => {
|
|
@@ -3101,20 +3112,20 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3101
3112
|
const l = C.top - e.height - t + window.scrollY;
|
|
3102
3113
|
let o = 0;
|
|
3103
3114
|
return n === "start" ? o = C.left + window.scrollX : n === "end" ? o = C.right - e.width + window.scrollX : o = C.left + C.width / 2 - e.width / 2 + window.scrollX, { top: l, left: o };
|
|
3104
|
-
}, e1 = " ", W = "Enter", A1 = "Tab", x3 = "Backspace", B3 = "Delete",
|
|
3115
|
+
}, e1 = " ", W = "Enter", A1 = "Tab", x3 = "Backspace", B3 = "Delete", Q1 = "ArrowLeft", X1 = "ArrowRight", P1 = "ArrowUp", x1 = "ArrowDown", z1 = "Escape", q1 = () => {
|
|
3105
3116
|
}, B1 = (C = {}, e = {}) => {
|
|
3106
3117
|
const { id: t, interactiveKeyCodes: n } = e, {
|
|
3107
|
-
onKeyDown: l =
|
|
3108
|
-
onKeyUp: o =
|
|
3109
|
-
onBlur: s =
|
|
3110
|
-
onFocus: c =
|
|
3118
|
+
onKeyDown: l = q1,
|
|
3119
|
+
onKeyUp: o = q1,
|
|
3120
|
+
onBlur: s = q1,
|
|
3121
|
+
onFocus: c = q1
|
|
3111
3122
|
} = C, i = K(n ?? [e1, W]);
|
|
3112
3123
|
return { onKeyDown: (u) => {
|
|
3113
|
-
var
|
|
3114
|
-
(
|
|
3124
|
+
var p;
|
|
3125
|
+
(p = i.current) != null && p.includes(u.key) && (!t || u.target.id === t) && (u.preventDefault(), l(u));
|
|
3115
3126
|
}, onKeyUp: (u) => {
|
|
3116
|
-
var
|
|
3117
|
-
(
|
|
3127
|
+
var p;
|
|
3128
|
+
(p = i.current) != null && p.includes(u.key) && (!t || u.target.id === t) && o(u);
|
|
3118
3129
|
}, onBlur: () => {
|
|
3119
3130
|
s();
|
|
3120
3131
|
}, onFocus: () => {
|
|
@@ -3148,7 +3159,7 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3148
3159
|
)
|
|
3149
3160
|
), G1 = ({ children: C, freezeNavigation: e }) => {
|
|
3150
3161
|
const [t, n] = N(null);
|
|
3151
|
-
return
|
|
3162
|
+
return E(() => {
|
|
3152
3163
|
let l = document.getElementById("overlay-root");
|
|
3153
3164
|
l || (l = document.createElement("div"), l.setAttribute("id", "overlay-root"), document.body.appendChild(l), e && (document.body.style.overflow = "hidden", l.style.position = "fixed", l.style.width = "100%", l.style.height = "100%", l.style.top = "0", l.style.left = "0", l.style.zIndex = "999")), n(l);
|
|
3154
3165
|
const { parentNode: o, children: s } = l;
|
|
@@ -3159,7 +3170,7 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3159
3170
|
c && o.removeChild(c);
|
|
3160
3171
|
}
|
|
3161
3172
|
};
|
|
3162
|
-
}, [e]), t ? /* @__PURE__ */ r(
|
|
3173
|
+
}, [e]), t ? /* @__PURE__ */ r(X, { children: a6(C, t) }) : null;
|
|
3163
3174
|
}, L3 = A3(void 0), Be = ({
|
|
3164
3175
|
dropdownId: C,
|
|
3165
3176
|
closeRoot: e,
|
|
@@ -3197,7 +3208,7 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3197
3208
|
return e ? Array.from(e) : [];
|
|
3198
3209
|
}, W3 = (C) => {
|
|
3199
3210
|
const e = K(C || i1.generateId()), [t, n] = N(!1);
|
|
3200
|
-
|
|
3211
|
+
E(() => i1.subscribe(e.current, () => {
|
|
3201
3212
|
n(i1.isOpen(e.current));
|
|
3202
3213
|
}), []);
|
|
3203
3214
|
const l = () => {
|
|
@@ -3231,29 +3242,29 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3231
3242
|
alignment: v = "start",
|
|
3232
3243
|
autofocus: h = !0,
|
|
3233
3244
|
header: u,
|
|
3234
|
-
footer:
|
|
3245
|
+
footer: p,
|
|
3235
3246
|
...Z
|
|
3236
3247
|
}, L) => {
|
|
3237
|
-
const { dropdownId:
|
|
3238
|
-
(
|
|
3239
|
-
m.current =
|
|
3248
|
+
const { dropdownId: V } = W3(n), [B, F] = N(o), { closeRoot: S } = V3(L3) || {}, w = K(null), m = K(null), [b, k] = N(null), [_, y] = N(null), [x, f] = N({ top: 500, left: 500 }), { shouldRender: O, isAnimating: H } = D1(c, pe), M = $(
|
|
3249
|
+
(D) => {
|
|
3250
|
+
m.current = D, k(D), typeof L == "function" ? L(D) : L && (L.current = D);
|
|
3240
3251
|
},
|
|
3241
3252
|
[L]
|
|
3242
|
-
), I = $((
|
|
3243
|
-
w.current =
|
|
3244
|
-
}, []),
|
|
3245
|
-
l &&
|
|
3246
|
-
}, [
|
|
3247
|
-
if (
|
|
3248
|
-
if (
|
|
3249
|
-
|
|
3253
|
+
), I = $((D) => {
|
|
3254
|
+
w.current = D, y(D);
|
|
3255
|
+
}, []), P = $(() => {
|
|
3256
|
+
l && S ? S() : i(), i1.closeAll();
|
|
3257
|
+
}, [S, l, i]), U = (D) => {
|
|
3258
|
+
if (D.key === x1 || D.key === P1) {
|
|
3259
|
+
if (D.stopPropagation(), D.preventDefault(), b === null) return;
|
|
3260
|
+
D.key === x1 ? b3(b) : _e(b);
|
|
3250
3261
|
}
|
|
3251
|
-
}, q = (
|
|
3252
|
-
|
|
3253
|
-
}, T = (
|
|
3254
|
-
if (
|
|
3262
|
+
}, q = (D) => {
|
|
3263
|
+
D.key === z1 && P();
|
|
3264
|
+
}, T = (D) => {
|
|
3265
|
+
if (D.key === A1) {
|
|
3255
3266
|
if (b === null) return;
|
|
3256
|
-
|
|
3267
|
+
D.preventDefault(), b3(b);
|
|
3257
3268
|
}
|
|
3258
3269
|
}, { onKeyDown: Q, onKeyUp: c1 } = B1(
|
|
3259
3270
|
{ onKeyUp: q, onKeyDown: U },
|
|
@@ -3261,19 +3272,19 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3261
3272
|
interactiveKeyCodes: [W, A1, x1, P1, z1]
|
|
3262
3273
|
}
|
|
3263
3274
|
);
|
|
3264
|
-
|
|
3265
|
-
const
|
|
3275
|
+
E(() => {
|
|
3276
|
+
const D = (o1) => {
|
|
3266
3277
|
var v1;
|
|
3267
3278
|
const l1 = o1.target, L1 = document.querySelectorAll("[data-dropdown-id]");
|
|
3268
|
-
Array.from(L1).some((
|
|
3279
|
+
Array.from(L1).some((t3) => t3.contains(l1)) || ((v1 = w.current) == null ? void 0 : v1.contains(l1)) || P();
|
|
3269
3280
|
};
|
|
3270
|
-
return document.addEventListener("mousedown",
|
|
3271
|
-
}, [
|
|
3281
|
+
return document.addEventListener("mousedown", D), () => document.removeEventListener("mousedown", D);
|
|
3282
|
+
}, [P]);
|
|
3272
3283
|
const G = $(
|
|
3273
|
-
(
|
|
3274
|
-
const l1 = m3(
|
|
3284
|
+
(D, o1) => {
|
|
3285
|
+
const l1 = m3(D, o1, "right", d, !0), L1 = g3(D, o1, l1), j = e3(
|
|
3275
3286
|
l1,
|
|
3276
|
-
|
|
3287
|
+
D,
|
|
3277
3288
|
o1,
|
|
3278
3289
|
d,
|
|
3279
3290
|
L1
|
|
@@ -3282,38 +3293,38 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3282
3293
|
},
|
|
3283
3294
|
[d]
|
|
3284
3295
|
), V1 = $(
|
|
3285
|
-
(
|
|
3286
|
-
const j = l1 === "auto" ? m3(
|
|
3296
|
+
(D, o1, l1, L1) => {
|
|
3297
|
+
const j = l1 === "auto" ? m3(D, o1, "bottom") : l1, v1 = L1 ?? g3(D, o1, j), t3 = e3(
|
|
3287
3298
|
j,
|
|
3288
|
-
|
|
3299
|
+
D,
|
|
3289
3300
|
o1,
|
|
3290
3301
|
d,
|
|
3291
3302
|
v1
|
|
3292
3303
|
);
|
|
3293
|
-
F(j), f(
|
|
3304
|
+
F(j), f(t3);
|
|
3294
3305
|
},
|
|
3295
3306
|
[d]
|
|
3296
3307
|
);
|
|
3297
|
-
return
|
|
3308
|
+
return E(() => {
|
|
3298
3309
|
!_ || !b || (l ? G(_, b) : V1(_, b, o, v));
|
|
3299
|
-
}, [l, b, _, o, v, G, V1]),
|
|
3300
|
-
c && b && h && U3(
|
|
3301
|
-
}, [c,
|
|
3310
|
+
}, [l, b, _, o, v, G, V1]), E(() => {
|
|
3311
|
+
c && b && h && U3(V);
|
|
3312
|
+
}, [c, V, b, h]), /* @__PURE__ */ g(Be, { dropdownId: V, closeRoot: P, autoClose: s, children: [
|
|
3302
3313
|
/* @__PURE__ */ r("div", { ref: I, className: _1.trigger, tabIndex: -1, onKeyDown: T, children: C }),
|
|
3303
3314
|
O && /* @__PURE__ */ r(G1, { children: /* @__PURE__ */ g(
|
|
3304
3315
|
"div",
|
|
3305
3316
|
{
|
|
3306
3317
|
className: R(_1.dropdown, e),
|
|
3307
|
-
"data-dropdown-id":
|
|
3308
|
-
"data-position":
|
|
3309
|
-
"data-open":
|
|
3318
|
+
"data-dropdown-id": V,
|
|
3319
|
+
"data-position": B,
|
|
3320
|
+
"data-open": H || void 0,
|
|
3310
3321
|
...Z,
|
|
3311
3322
|
style: {
|
|
3312
3323
|
...t,
|
|
3313
3324
|
top: x.top,
|
|
3314
3325
|
left: x.left
|
|
3315
3326
|
},
|
|
3316
|
-
ref:
|
|
3327
|
+
ref: M,
|
|
3317
3328
|
onKeyUp: c1,
|
|
3318
3329
|
onKeyDown: Q,
|
|
3319
3330
|
children: [
|
|
@@ -3322,9 +3333,9 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3322
3333
|
/* @__PURE__ */ r(a1, {})
|
|
3323
3334
|
] }),
|
|
3324
3335
|
/* @__PURE__ */ r("div", { className: R(_1["dropdown-menu-content"], "rte-dropdown-menu-content"), children: /* @__PURE__ */ r("ul", { className: _1["dropdown-items"], role: "menu", children: a }) }),
|
|
3325
|
-
|
|
3336
|
+
p && /* @__PURE__ */ g("div", { className: R(_1["dropdown-menu-footer"], "rte-dropdown-menu-footer"), children: [
|
|
3326
3337
|
/* @__PURE__ */ r(a1, {}),
|
|
3327
|
-
|
|
3338
|
+
p
|
|
3328
3339
|
] })
|
|
3329
3340
|
]
|
|
3330
3341
|
}
|
|
@@ -3349,32 +3360,32 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3349
3360
|
badgeType: v,
|
|
3350
3361
|
badgeSize: h,
|
|
3351
3362
|
showBadge: u,
|
|
3352
|
-
isSelected:
|
|
3363
|
+
isSelected: p,
|
|
3353
3364
|
onClick: Z,
|
|
3354
3365
|
...L
|
|
3355
3366
|
}) => {
|
|
3356
|
-
const { dropdownId:
|
|
3357
|
-
|
|
3367
|
+
const { dropdownId: V, autoClose: B, closeRoot: F } = V3(L3) || {}, S = `${V}-${C && C.replace(/\s+/g, "")}`, { isOpen: w, open: m } = W3(S), b = () => {
|
|
3368
|
+
V && (i1.closeSubMenus(V), m());
|
|
3358
3369
|
}, k = () => {
|
|
3359
|
-
|
|
3370
|
+
V && i1.closeSubMenus(V);
|
|
3360
3371
|
};
|
|
3361
3372
|
s && t && console.warn(
|
|
3362
3373
|
`DropdownItem: 'hasIndent' prop is ignored when 'leftIcon' is provided : displaying icon '${t}' for dropdownitem with label '${C}' without indentation.`
|
|
3363
3374
|
);
|
|
3364
|
-
const _ = (
|
|
3365
|
-
l || (Z && Z(
|
|
3366
|
-
}, y = (
|
|
3367
|
-
if ([e1, W].includes(
|
|
3375
|
+
const _ = (M) => {
|
|
3376
|
+
l || (Z && Z(M), B && F && F());
|
|
3377
|
+
}, y = (M) => {
|
|
3378
|
+
if ([e1, W].includes(M.key))
|
|
3368
3379
|
if (e) {
|
|
3369
|
-
const I =
|
|
3380
|
+
const I = M.currentTarget.querySelector("a");
|
|
3370
3381
|
I && I.click();
|
|
3371
3382
|
} else {
|
|
3372
3383
|
if (l) return;
|
|
3373
|
-
Z && _(
|
|
3384
|
+
Z && _(M), c && m();
|
|
3374
3385
|
}
|
|
3375
|
-
}, x = (
|
|
3376
|
-
|
|
3377
|
-
}, { onKeyUp: f, onFocus: O, onKeyDown:
|
|
3386
|
+
}, x = (M) => {
|
|
3387
|
+
M.preventDefault(), M.key === A1 && (w && U3(S), M.shiftKey && V && ye(V));
|
|
3388
|
+
}, { onKeyUp: f, onFocus: O, onKeyDown: H } = B1(
|
|
3378
3389
|
{ onKeyUp: x, onFocus: k, onKeyDown: y },
|
|
3379
3390
|
{
|
|
3380
3391
|
interactiveKeyCodes: [e1, W, A1, x1, P1, z1]
|
|
@@ -3384,9 +3395,9 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3384
3395
|
W1,
|
|
3385
3396
|
{
|
|
3386
3397
|
hasParent: !0,
|
|
3387
|
-
dropdownId:
|
|
3398
|
+
dropdownId: S,
|
|
3388
3399
|
isOpen: w,
|
|
3389
|
-
trigger: /* @__PURE__ */ g(
|
|
3400
|
+
trigger: /* @__PURE__ */ g(X, { children: [
|
|
3390
3401
|
/* @__PURE__ */ g(
|
|
3391
3402
|
"li",
|
|
3392
3403
|
{
|
|
@@ -3396,13 +3407,13 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3396
3407
|
role: "menuitem",
|
|
3397
3408
|
onMouseOver: b,
|
|
3398
3409
|
onKeyUp: f,
|
|
3399
|
-
onKeyDown:
|
|
3410
|
+
onKeyDown: H,
|
|
3400
3411
|
onFocus: O,
|
|
3401
3412
|
tabIndex: 0,
|
|
3402
3413
|
children: [
|
|
3403
3414
|
s && /* @__PURE__ */ r("span", { style: { width: "20px" } }),
|
|
3404
3415
|
t && /* @__PURE__ */ r(
|
|
3405
|
-
|
|
3416
|
+
A,
|
|
3406
3417
|
{
|
|
3407
3418
|
name: t,
|
|
3408
3419
|
className: Z1["dropdown-item-icon"],
|
|
@@ -3410,7 +3421,7 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3410
3421
|
}
|
|
3411
3422
|
),
|
|
3412
3423
|
e ? /* @__PURE__ */ r("a", { href: e, style: { flex: "2", textDecoration: "none", color: "inherit" }, children: C }) : /* @__PURE__ */ r("span", { style: { flex: "2" }, children: C }),
|
|
3413
|
-
/* @__PURE__ */ r(
|
|
3424
|
+
/* @__PURE__ */ r(A, { name: "arrow-chevron-right", className: Z1["dropdown-item-icon"] })
|
|
3414
3425
|
]
|
|
3415
3426
|
}
|
|
3416
3427
|
),
|
|
@@ -3418,24 +3429,24 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3418
3429
|
] }),
|
|
3419
3430
|
children: c
|
|
3420
3431
|
}
|
|
3421
|
-
) : /* @__PURE__ */ g(
|
|
3432
|
+
) : /* @__PURE__ */ g(X, { children: [
|
|
3422
3433
|
/* @__PURE__ */ g(
|
|
3423
3434
|
"li",
|
|
3424
3435
|
{
|
|
3425
3436
|
className: Z1["dropdown-item"],
|
|
3426
3437
|
"data-disabled": l,
|
|
3427
|
-
"data-active":
|
|
3438
|
+
"data-active": p,
|
|
3428
3439
|
role: "menuitem",
|
|
3429
3440
|
onClick: _,
|
|
3430
3441
|
onMouseOver: b,
|
|
3431
3442
|
onKeyUp: f,
|
|
3432
|
-
onKeyDown:
|
|
3443
|
+
onKeyDown: H,
|
|
3433
3444
|
onFocus: O,
|
|
3434
3445
|
tabIndex: 0,
|
|
3435
3446
|
...L,
|
|
3436
3447
|
children: [
|
|
3437
3448
|
s && !t && /* @__PURE__ */ r("span", { style: { width: "20px" } }),
|
|
3438
|
-
t && /* @__PURE__ */ r(
|
|
3449
|
+
t && /* @__PURE__ */ r(A, { name: t, className: Z1["dropdown-item-icon"] }),
|
|
3439
3450
|
e ? /* @__PURE__ */ r("a", { href: e, style: { flex: "2", textDecoration: "none", color: "inherit" }, children: C }) : /* @__PURE__ */ r("span", { style: { flex: "2" }, children: C }),
|
|
3440
3451
|
n && /* @__PURE__ */ r("div", { children: n }),
|
|
3441
3452
|
U1({ showBadge: !!u, badgeContent: a, badgeCount: i, badgeIcon: d }) && /* @__PURE__ */ r(C1, { count: i, content: a, icon: d, badgeType: v, size: h })
|
|
@@ -3464,7 +3475,7 @@ const K3 = (C, e, t, n = 0, l = !1) => {
|
|
|
3464
3475
|
...s,
|
|
3465
3476
|
children: [
|
|
3466
3477
|
/* @__PURE__ */ r("span", { className: o3.label, children: C }),
|
|
3467
|
-
n && /* @__PURE__ */ r(
|
|
3478
|
+
n && /* @__PURE__ */ r(A, { name: "external-link", size: 12, className: o3["external-link-icon"] })
|
|
3468
3479
|
]
|
|
3469
3480
|
}
|
|
3470
3481
|
)
|
|
@@ -3489,24 +3500,24 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", l3 = {
|
|
|
3489
3500
|
gap: i = j3,
|
|
3490
3501
|
...a
|
|
3491
3502
|
}, d) => {
|
|
3492
|
-
const v = K(null), h = K(null), [u,
|
|
3503
|
+
const v = K(null), h = K(null), [u, p] = N(null), [Z, L] = N(e), [V, B] = N({ top: 0, left: 0 }), [F, S] = N(!1), { shouldRender: w, isAnimating: m } = D1(F, ke), b = $(
|
|
3493
3504
|
(x) => {
|
|
3494
|
-
h.current = x,
|
|
3505
|
+
h.current = x, p(x), typeof d == "function" ? d(x) : d && (d.current = x);
|
|
3495
3506
|
},
|
|
3496
3507
|
[d]
|
|
3497
3508
|
), k = $(() => {
|
|
3498
3509
|
if (F && v.current && u) {
|
|
3499
|
-
const x = Ie(l, i), f = e === "auto" ? K3(v.current, u, "top", x, !0) : e, O =
|
|
3500
|
-
L(f),
|
|
3510
|
+
const x = Ie(l, i), f = e === "auto" ? K3(v.current, u, "top", x, !0) : e, O = e3(f, v.current, u, x);
|
|
3511
|
+
L(f), B(O);
|
|
3501
3512
|
}
|
|
3502
3513
|
}, [F, e, l, u, i]);
|
|
3503
|
-
|
|
3514
|
+
E(() => (k(), window.addEventListener("scroll", k), () => {
|
|
3504
3515
|
window.removeEventListener("scroll", k);
|
|
3505
3516
|
}), [k]);
|
|
3506
3517
|
const _ = () => {
|
|
3507
|
-
|
|
3518
|
+
S(!0);
|
|
3508
3519
|
}, y = () => {
|
|
3509
|
-
|
|
3520
|
+
S(!1);
|
|
3510
3521
|
};
|
|
3511
3522
|
return /* @__PURE__ */ g(
|
|
3512
3523
|
"div",
|
|
@@ -3532,8 +3543,8 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", l3 = {
|
|
|
3532
3543
|
"data-alignment": t,
|
|
3533
3544
|
"data-arrow": l,
|
|
3534
3545
|
style: {
|
|
3535
|
-
top: `${
|
|
3536
|
-
left: `${
|
|
3546
|
+
top: `${V.top}px`,
|
|
3547
|
+
left: `${V.left}px`
|
|
3537
3548
|
},
|
|
3538
3549
|
...a,
|
|
3539
3550
|
children: n && /* @__PURE__ */ r("span", { role: "tooltip", className: l3.tooltipLabel, children: n })
|
|
@@ -3547,16 +3558,16 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", l3 = {
|
|
|
3547
3558
|
breadcrumbItem: Te
|
|
3548
3559
|
}, s3 = ({ item: C, isLast: e, breadcrumbItemMaxWidth: t }) => {
|
|
3549
3560
|
const [n, l] = N(!1), o = K(), s = K(null);
|
|
3550
|
-
|
|
3551
|
-
var
|
|
3552
|
-
s.current && (o.current = (
|
|
3553
|
-
}, []),
|
|
3561
|
+
E(() => {
|
|
3562
|
+
var p;
|
|
3563
|
+
s.current && (o.current = (p = s.current.querySelector("a")) == null ? void 0 : p.scrollWidth);
|
|
3564
|
+
}, []), E(() => {
|
|
3554
3565
|
(() => {
|
|
3555
3566
|
o.current && t && l(o.current >= t);
|
|
3556
3567
|
})();
|
|
3557
3568
|
}, [t]);
|
|
3558
3569
|
const { showBadge: c, badgeContent: i, badgeCount: a, badgeIcon: d, badgeType: v, badgeSize: h } = C, u = U1({ showBadge: !!c, badgeContent: i, badgeCount: a, badgeIcon: d });
|
|
3559
|
-
return /* @__PURE__ */ r("div", { className: Re.breadcrumbItem, ref: s, children: e ? /* @__PURE__ */ r(
|
|
3570
|
+
return /* @__PURE__ */ r("div", { className: Re.breadcrumbItem, ref: s, children: e ? /* @__PURE__ */ r(X, { children: n ? /* @__PURE__ */ g(
|
|
3560
3571
|
h3,
|
|
3561
3572
|
{
|
|
3562
3573
|
label: C.label,
|
|
@@ -3592,7 +3603,7 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", l3 = {
|
|
|
3592
3603
|
)
|
|
3593
3604
|
]
|
|
3594
3605
|
}
|
|
3595
|
-
) : /* @__PURE__ */ g(
|
|
3606
|
+
) : /* @__PURE__ */ g(X, { children: [
|
|
3596
3607
|
/* @__PURE__ */ r(
|
|
3597
3608
|
"a",
|
|
3598
3609
|
{
|
|
@@ -3605,7 +3616,7 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", l3 = {
|
|
|
3605
3616
|
}
|
|
3606
3617
|
),
|
|
3607
3618
|
u && /* @__PURE__ */ r(C1, { count: a, content: i, icon: d, badgeType: v })
|
|
3608
|
-
] }) }) : /* @__PURE__ */ r(
|
|
3619
|
+
] }) }) : /* @__PURE__ */ r(X, { children: n ? /* @__PURE__ */ g(
|
|
3609
3620
|
h3,
|
|
3610
3621
|
{
|
|
3611
3622
|
label: C.label,
|
|
@@ -3631,7 +3642,7 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", l3 = {
|
|
|
3631
3642
|
u && /* @__PURE__ */ r(C1, { count: a, content: i, icon: d, badgeType: v })
|
|
3632
3643
|
]
|
|
3633
3644
|
}
|
|
3634
|
-
) : /* @__PURE__ */ g(
|
|
3645
|
+
) : /* @__PURE__ */ g(X, { children: [
|
|
3635
3646
|
/* @__PURE__ */ r(
|
|
3636
3647
|
v3,
|
|
3637
3648
|
{
|
|
@@ -3662,12 +3673,12 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", l3 = {
|
|
|
3662
3673
|
}, d) => {
|
|
3663
3674
|
const [v, h] = N(!1);
|
|
3664
3675
|
if ($3(C)) {
|
|
3665
|
-
const { root: u, truncated:
|
|
3676
|
+
const { root: u, truncated: p, remaining: Z } = he(C);
|
|
3666
3677
|
return /* @__PURE__ */ g(
|
|
3667
3678
|
"nav",
|
|
3668
3679
|
{
|
|
3669
3680
|
ref: d,
|
|
3670
|
-
className: R(k1.breadcrumbsContainer,
|
|
3681
|
+
className: R(k1.breadcrumbsContainer, p.length ? k1.truncated : ""),
|
|
3671
3682
|
...a,
|
|
3672
3683
|
role: "navigation",
|
|
3673
3684
|
"aria-label": e,
|
|
@@ -3705,7 +3716,7 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", l3 = {
|
|
|
3705
3716
|
] }),
|
|
3706
3717
|
isOpen: v,
|
|
3707
3718
|
offset: 6,
|
|
3708
|
-
children:
|
|
3719
|
+
children: p.map((L, V) => /* @__PURE__ */ r(
|
|
3709
3720
|
$1,
|
|
3710
3721
|
{
|
|
3711
3722
|
label: L.label,
|
|
@@ -3716,37 +3727,37 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", l3 = {
|
|
|
3716
3727
|
badgeType: L.badgeType,
|
|
3717
3728
|
showBadge: L.showBadge
|
|
3718
3729
|
},
|
|
3719
|
-
L.label +
|
|
3730
|
+
L.label + V
|
|
3720
3731
|
))
|
|
3721
3732
|
}
|
|
3722
3733
|
) }),
|
|
3723
3734
|
/* @__PURE__ */ r("span", { "aria-hidden": "true", className: k1.separator, children: "/" }),
|
|
3724
|
-
Z.map((L,
|
|
3735
|
+
Z.map((L, V) => /* @__PURE__ */ g(J1, { children: [
|
|
3725
3736
|
/* @__PURE__ */ r(
|
|
3726
3737
|
s3,
|
|
3727
3738
|
{
|
|
3728
3739
|
item: L,
|
|
3729
|
-
isLast:
|
|
3740
|
+
isLast: V === Z.length - 1,
|
|
3730
3741
|
breadcrumbItemMaxWidth: t
|
|
3731
3742
|
}
|
|
3732
3743
|
),
|
|
3733
|
-
|
|
3734
|
-
] }, L.label +
|
|
3744
|
+
V < Z.length - 1 && /* @__PURE__ */ r(i3, {})
|
|
3745
|
+
] }, L.label + V))
|
|
3735
3746
|
]
|
|
3736
3747
|
}
|
|
3737
3748
|
);
|
|
3738
3749
|
}
|
|
3739
|
-
return /* @__PURE__ */ r("nav", { ref: d, className: k1.breadcrumbsBadge, ...a, role: "navigation", "aria-label": "Fil d'Ariane", children: C.map((u,
|
|
3750
|
+
return /* @__PURE__ */ r("nav", { ref: d, className: k1.breadcrumbsBadge, ...a, role: "navigation", "aria-label": "Fil d'Ariane", children: C.map((u, p) => /* @__PURE__ */ g(J1, { children: [
|
|
3740
3751
|
/* @__PURE__ */ r(
|
|
3741
3752
|
s3,
|
|
3742
3753
|
{
|
|
3743
3754
|
item: u,
|
|
3744
|
-
isLast:
|
|
3755
|
+
isLast: p === C.length - 1,
|
|
3745
3756
|
breadcrumbItemMaxWidth: t
|
|
3746
3757
|
}
|
|
3747
3758
|
),
|
|
3748
|
-
|
|
3749
|
-
] }, u.label +
|
|
3759
|
+
p < C.length - 1 && /* @__PURE__ */ r(i3, {})
|
|
3760
|
+
] }, u.label + p)) });
|
|
3750
3761
|
}
|
|
3751
3762
|
), $e = {
|
|
3752
3763
|
xs: 240,
|
|
@@ -3757,13 +3768,13 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", l3 = {
|
|
|
3757
3768
|
}, Ke = "_card_1fr4q_1", Ue = {
|
|
3758
3769
|
card: Ke
|
|
3759
3770
|
}, _r = z(
|
|
3760
|
-
({ size: C = "m", cardType: e = "default", clickable: t = !1, disabled: n = !1, children: l, onClick: o,
|
|
3761
|
-
const
|
|
3762
|
-
!n && t && (
|
|
3763
|
-
},
|
|
3771
|
+
({ size: C = "m", cardType: e = "default", clickable: t = !1, disabled: n = !1, children: l, onClick: o, style: s, ...c }, i) => {
|
|
3772
|
+
const a = (p) => {
|
|
3773
|
+
!n && t && (p.key === e1 || p.key === W) && (p.preventDefault(), o == null || o());
|
|
3774
|
+
}, d = () => {
|
|
3764
3775
|
!n && t && (o == null || o());
|
|
3765
|
-
}, { onKeyDown:
|
|
3766
|
-
{ onKeyUp:
|
|
3776
|
+
}, { onKeyDown: v, onKeyUp: h, onBlur: u } = B1(
|
|
3777
|
+
{ onKeyUp: a },
|
|
3767
3778
|
{
|
|
3768
3779
|
interactiveKeyCodes: [e1, W]
|
|
3769
3780
|
}
|
|
@@ -3771,18 +3782,18 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", l3 = {
|
|
|
3771
3782
|
return /* @__PURE__ */ r(
|
|
3772
3783
|
"div",
|
|
3773
3784
|
{
|
|
3774
|
-
ref:
|
|
3785
|
+
ref: i,
|
|
3775
3786
|
className: Ue.card,
|
|
3776
|
-
style: { width: $e[C] },
|
|
3787
|
+
style: { width: $e[C], ...s },
|
|
3777
3788
|
"data-card-type": e,
|
|
3778
3789
|
"data-clickable": t,
|
|
3779
3790
|
"data-disabled": n,
|
|
3780
3791
|
tabIndex: t ? 0 : -1,
|
|
3781
|
-
onClick:
|
|
3782
|
-
onKeyDown:
|
|
3783
|
-
onKeyUp:
|
|
3784
|
-
onBlur:
|
|
3785
|
-
...
|
|
3792
|
+
onClick: d,
|
|
3793
|
+
onKeyDown: v,
|
|
3794
|
+
onKeyUp: h,
|
|
3795
|
+
onBlur: u,
|
|
3796
|
+
...c,
|
|
3786
3797
|
children: l
|
|
3787
3798
|
}
|
|
3788
3799
|
);
|
|
@@ -3809,7 +3820,7 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", l3 = {
|
|
|
3809
3820
|
...a
|
|
3810
3821
|
}) => {
|
|
3811
3822
|
const d = K(null);
|
|
3812
|
-
|
|
3823
|
+
E(() => {
|
|
3813
3824
|
d.current && (d.current.indeterminate = !!i);
|
|
3814
3825
|
}, [i]);
|
|
3815
3826
|
const v = (h) => {
|
|
@@ -3830,8 +3841,8 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", l3 = {
|
|
|
3830
3841
|
...a
|
|
3831
3842
|
}
|
|
3832
3843
|
),
|
|
3833
|
-
/* @__PURE__ */ r("div", { className: `${w1["checkbox-icon-selected"]} ${w1["checkbox-icons"]}`, children: /* @__PURE__ */ r(
|
|
3834
|
-
/* @__PURE__ */ r("div", { className: `${w1["checkbox-icon-indeterminated"]} ${w1["checkbox-icons"]}`, children: /* @__PURE__ */ r(
|
|
3844
|
+
/* @__PURE__ */ r("div", { className: `${w1["checkbox-icon-selected"]} ${w1["checkbox-icons"]}`, children: /* @__PURE__ */ r(A, { name: "check-small", size: 16 }) }),
|
|
3845
|
+
/* @__PURE__ */ r("div", { className: `${w1["checkbox-icon-indeterminated"]} ${w1["checkbox-icons"]}`, children: /* @__PURE__ */ r(A, { name: "check-indeterminate", size: 16 }) }),
|
|
3835
3846
|
/* @__PURE__ */ g("div", { className: w1["checkbox-text-container"], "data-disabled": n, children: [
|
|
3836
3847
|
t && /* @__PURE__ */ r("label", { htmlFor: C, children: e }),
|
|
3837
3848
|
/* @__PURE__ */ r("p", { className: w1["checkbox-description"], children: l }),
|
|
@@ -3877,17 +3888,17 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", l3 = {
|
|
|
3877
3888
|
]
|
|
3878
3889
|
}
|
|
3879
3890
|
),
|
|
3880
|
-
/* @__PURE__ */ r("div", { className: y1.checkboxGroup, "data-direction": e, children: C.map((
|
|
3891
|
+
/* @__PURE__ */ r("div", { className: y1.checkboxGroup, "data-direction": e, children: C.map((p, Z) => /* @__PURE__ */ r(
|
|
3881
3892
|
je,
|
|
3882
3893
|
{
|
|
3883
|
-
id: `${
|
|
3884
|
-
label:
|
|
3894
|
+
id: `${p}-${Z}`,
|
|
3895
|
+
label: p,
|
|
3885
3896
|
showLabel: t,
|
|
3886
3897
|
disabled: a,
|
|
3887
3898
|
error: i,
|
|
3888
3899
|
readOnly: d
|
|
3889
3900
|
},
|
|
3890
|
-
`${
|
|
3901
|
+
`${p}-${Z}`
|
|
3891
3902
|
)) })
|
|
3892
3903
|
] });
|
|
3893
3904
|
}
|
|
@@ -3916,14 +3927,14 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", l3 = {
|
|
|
3916
3927
|
onClose: i,
|
|
3917
3928
|
...a
|
|
3918
3929
|
}, d) => {
|
|
3919
|
-
const v = i6.useRef(null), h = (
|
|
3920
|
-
if (
|
|
3921
|
-
|
|
3922
|
-
else if ((
|
|
3930
|
+
const v = i6.useRef(null), h = (V) => {
|
|
3931
|
+
if (V.key === e1 || V.key === W)
|
|
3932
|
+
V.preventDefault(), n == null || n(V);
|
|
3933
|
+
else if ((V.key === x3 || V.key === B3) && i) {
|
|
3923
3934
|
if (o !== "input") return;
|
|
3924
|
-
|
|
3935
|
+
V.preventDefault(), v.current && v.current.click();
|
|
3925
3936
|
}
|
|
3926
|
-
}, { onBlur: u, onKeyDown:
|
|
3937
|
+
}, { onBlur: u, onKeyDown: p, onKeyUp: Z } = B1(
|
|
3927
3938
|
{ onKeyUp: h },
|
|
3928
3939
|
{
|
|
3929
3940
|
id: C,
|
|
@@ -3943,7 +3954,7 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", l3 = {
|
|
|
3943
3954
|
"data-type": o,
|
|
3944
3955
|
onClick: n,
|
|
3945
3956
|
tabIndex: 0,
|
|
3946
|
-
onKeyDown:
|
|
3957
|
+
onKeyDown: p,
|
|
3947
3958
|
onKeyUp: Z,
|
|
3948
3959
|
onBlur: u,
|
|
3949
3960
|
"aria-checked": L && t,
|
|
@@ -3956,7 +3967,7 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", l3 = {
|
|
|
3956
3967
|
{
|
|
3957
3968
|
className: R(u1["chip-icon"], t ? u1["chip-icon--visible"] : ""),
|
|
3958
3969
|
"aria-hidden": !t,
|
|
3959
|
-
children: /* @__PURE__ */ r(
|
|
3970
|
+
children: /* @__PURE__ */ r(A, { name: "check-circle", appearance: "filled", size: 16 })
|
|
3960
3971
|
}
|
|
3961
3972
|
),
|
|
3962
3973
|
/* @__PURE__ */ r(
|
|
@@ -3964,7 +3975,7 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", l3 = {
|
|
|
3964
3975
|
{
|
|
3965
3976
|
className: R(u1["chip-icon"], t ? "" : u1["chip-icon--visible"]),
|
|
3966
3977
|
"aria-hidden": t,
|
|
3967
|
-
children: /* @__PURE__ */ r(
|
|
3978
|
+
children: /* @__PURE__ */ r(A, { name: "radio-button-empty", size: 16 })
|
|
3968
3979
|
}
|
|
3969
3980
|
)
|
|
3970
3981
|
] }),
|
|
@@ -3980,7 +3991,7 @@ const Ae = "_tooltip_jx6mx_1", De = "_tooltipLabel_jx6mx_22", l3 = {
|
|
|
3980
3991
|
"aria-label": `Supprimer ${e}`,
|
|
3981
3992
|
value: e,
|
|
3982
3993
|
ref: v,
|
|
3983
|
-
children: /* @__PURE__ */ r(
|
|
3994
|
+
children: /* @__PURE__ */ r(A, { className: u1["chip-close-button--icon"], name: "close" })
|
|
3984
3995
|
}
|
|
3985
3996
|
)
|
|
3986
3997
|
]
|
|
@@ -4012,7 +4023,7 @@ const Nr = z(
|
|
|
4012
4023
|
}, ...n });
|
|
4013
4024
|
}
|
|
4014
4025
|
), q3 = (C, ...e) => {
|
|
4015
|
-
|
|
4026
|
+
E(() => {
|
|
4016
4027
|
function t(n) {
|
|
4017
4028
|
if (e.length === 0 || e.some((o) => !o)) return;
|
|
4018
4029
|
e.some((o) => o.contains(n.target)) || C();
|
|
@@ -4030,7 +4041,7 @@ const Nr = z(
|
|
|
4030
4041
|
], Y3 = ot.map(
|
|
4031
4042
|
(C) => C + ":not([disabled]):not([aria-hidden])"
|
|
4032
4043
|
).join(","), Q3 = (C, e) => {
|
|
4033
|
-
|
|
4044
|
+
E(() => {
|
|
4034
4045
|
if (!e || !C)
|
|
4035
4046
|
return;
|
|
4036
4047
|
const t = C.querySelectorAll(Y3);
|
|
@@ -4044,7 +4055,7 @@ const Nr = z(
|
|
|
4044
4055
|
return C.addEventListener("keydown", n), () => C.removeEventListener("keydown", n);
|
|
4045
4056
|
}, [C, e]);
|
|
4046
4057
|
}, X3 = (C) => {
|
|
4047
|
-
|
|
4058
|
+
E(() => {
|
|
4048
4059
|
const e = (t) => {
|
|
4049
4060
|
t.key === "Escape" && (t.preventDefault(), C());
|
|
4050
4061
|
};
|
|
@@ -4075,15 +4086,15 @@ const Nr = z(
|
|
|
4075
4086
|
className: v,
|
|
4076
4087
|
children: h,
|
|
4077
4088
|
...u
|
|
4078
|
-
},
|
|
4079
|
-
const { shouldRender: Z, isAnimating: L } = D1(e, 150), [
|
|
4080
|
-
(
|
|
4081
|
-
S
|
|
4089
|
+
}, p) => {
|
|
4090
|
+
const { shouldRender: Z, isAnimating: L } = D1(e, 150), [V, B] = N(null), F = $(
|
|
4091
|
+
(S) => {
|
|
4092
|
+
B(S), typeof p == "function" ? p(S) : p && (p.current = S);
|
|
4082
4093
|
},
|
|
4083
|
-
[
|
|
4094
|
+
[p]
|
|
4084
4095
|
);
|
|
4085
4096
|
return q3(a ? d : () => {
|
|
4086
|
-
},
|
|
4097
|
+
}, V), X3(d), Q3(V, Z), /* @__PURE__ */ r(X, { children: Z && /* @__PURE__ */ g(G1, { freezeNavigation: !0, children: [
|
|
4087
4098
|
/* @__PURE__ */ r("div", { className: g1["modal-backdrop"], "data-open": L }),
|
|
4088
4099
|
/* @__PURE__ */ g(
|
|
4089
4100
|
"dialog",
|
|
@@ -4098,7 +4109,7 @@ const Nr = z(
|
|
|
4098
4109
|
children: [
|
|
4099
4110
|
/* @__PURE__ */ g("div", { className: g1["modal-header"], children: [
|
|
4100
4111
|
/* @__PURE__ */ g("div", { className: g1["modal-header-text"], children: [
|
|
4101
|
-
n && /* @__PURE__ */ r(
|
|
4112
|
+
n && /* @__PURE__ */ r(A, { name: n, size: H1.xl, appearance: l }),
|
|
4102
4113
|
/* @__PURE__ */ r("h2", { id: `${C}-modal-title`, className: g1["modal-title"], children: t }),
|
|
4103
4114
|
/* @__PURE__ */ r(
|
|
4104
4115
|
d1,
|
|
@@ -4129,7 +4140,7 @@ const Nr = z(
|
|
|
4129
4140
|
] }) });
|
|
4130
4141
|
}
|
|
4131
4142
|
), _3 = 8, y3 = 20, lt = (C) => {
|
|
4132
|
-
|
|
4143
|
+
E(() => (window.addEventListener("scroll", C, !0), () => {
|
|
4133
4144
|
window.removeEventListener("scroll", C, !0);
|
|
4134
4145
|
}), [C]);
|
|
4135
4146
|
}, st = "_popoverTrigger_1oeje_1", it = "_popover_1oeje_1", ct = "_popoverInner_1oeje_25", at = "_popoverContentContainer_1oeje_33", dt = "_popoverTitle_1oeje_40", wt = "_popoverContent_1oeje_33", ut = "_popoverButtonContainer_1oeje_64", f1 = {
|
|
@@ -4156,37 +4167,37 @@ const Nr = z(
|
|
|
4156
4167
|
closeOnEscape: v = !0,
|
|
4157
4168
|
onClickPrimaryButton: h,
|
|
4158
4169
|
onClickSecondaryButton: u,
|
|
4159
|
-
...
|
|
4170
|
+
...p
|
|
4160
4171
|
}, Z) => {
|
|
4161
|
-
const L = K(null), [
|
|
4162
|
-
if (!L.current || !
|
|
4163
|
-
const G = e === "auto" ? K3(L.current,
|
|
4172
|
+
const L = K(null), [V, B] = N(null), [F, S] = N(e), [w, m] = N(t), [b, k] = N({ top: 0, left: 0 }), [_, y] = N(!1), { shouldRender: x, isAnimating: f } = D1(_, 150), [O, H] = N(!1), M = $(() => {
|
|
4173
|
+
if (!L.current || !V) return;
|
|
4174
|
+
const G = e === "auto" ? K3(L.current, V, "top", l ? y3 : _3) : e, V1 = t || g3(L.current, V, G), D = e3(
|
|
4164
4175
|
G,
|
|
4165
4176
|
L.current,
|
|
4166
|
-
|
|
4177
|
+
V,
|
|
4167
4178
|
l ? y3 : _3,
|
|
4168
4179
|
V1
|
|
4169
4180
|
);
|
|
4170
|
-
m(V1), k(
|
|
4171
|
-
}, [e, l,
|
|
4181
|
+
m(V1), k(D), S(G);
|
|
4182
|
+
}, [e, l, V, t]), I = $(() => {
|
|
4172
4183
|
d && y(!1);
|
|
4173
|
-
}, [d]),
|
|
4184
|
+
}, [d]), P = $(() => {
|
|
4174
4185
|
v && y(!1);
|
|
4175
4186
|
}, [v]);
|
|
4176
|
-
Q3(
|
|
4187
|
+
Q3(V, x), q3(I, L.current, V), X3(P), lt(M);
|
|
4177
4188
|
const U = $(
|
|
4178
4189
|
(G) => {
|
|
4179
|
-
|
|
4190
|
+
B(G), typeof Z == "function" ? Z(G) : Z && (Z.current = G), G && _ && requestAnimationFrame(() => {
|
|
4180
4191
|
requestAnimationFrame(() => {
|
|
4181
|
-
|
|
4192
|
+
M();
|
|
4182
4193
|
});
|
|
4183
4194
|
});
|
|
4184
4195
|
},
|
|
4185
|
-
[Z, _,
|
|
4196
|
+
[Z, _, M]
|
|
4186
4197
|
);
|
|
4187
|
-
|
|
4188
|
-
_ &&
|
|
4189
|
-
}, [_,
|
|
4198
|
+
E(() => {
|
|
4199
|
+
_ && V ? (M(), H(!0)) : H(!1);
|
|
4200
|
+
}, [_, V, M]);
|
|
4190
4201
|
const q = (G) => {
|
|
4191
4202
|
G.key === W && (G.preventDefault(), _ || y(!0));
|
|
4192
4203
|
}, T = (G) => {
|
|
@@ -4218,7 +4229,7 @@ const Nr = z(
|
|
|
4218
4229
|
"data-alignment": w,
|
|
4219
4230
|
"data-open": O && f || void 0,
|
|
4220
4231
|
style: { top: `${b.top}px`, left: `${b.left}px` },
|
|
4221
|
-
...
|
|
4232
|
+
...p,
|
|
4222
4233
|
children: /* @__PURE__ */ g("div", { className: f1.popoverInner, children: [
|
|
4223
4234
|
/* @__PURE__ */ g("div", { className: f1.popoverContentContainer, children: [
|
|
4224
4235
|
o && /* @__PURE__ */ r("div", { className: f1.popoverTitle, children: o }),
|
|
@@ -4226,7 +4237,7 @@ const Nr = z(
|
|
|
4226
4237
|
] }),
|
|
4227
4238
|
/* @__PURE__ */ g("div", { className: f1.popoverButtonContainer, children: [
|
|
4228
4239
|
c && /* @__PURE__ */ r(
|
|
4229
|
-
|
|
4240
|
+
C3,
|
|
4230
4241
|
{
|
|
4231
4242
|
className: "popoverButton",
|
|
4232
4243
|
onClick: Q,
|
|
@@ -4235,7 +4246,7 @@ const Nr = z(
|
|
|
4235
4246
|
}
|
|
4236
4247
|
),
|
|
4237
4248
|
/* @__PURE__ */ r(
|
|
4238
|
-
|
|
4249
|
+
C3,
|
|
4239
4250
|
{
|
|
4240
4251
|
className: "popoverButton",
|
|
4241
4252
|
onClick: c1,
|
|
@@ -4312,9 +4323,9 @@ const Nr = z(
|
|
|
4312
4323
|
readOnly: v = !1,
|
|
4313
4324
|
className: h = "",
|
|
4314
4325
|
...u
|
|
4315
|
-
},
|
|
4326
|
+
}, p) => {
|
|
4316
4327
|
if (!(d && a))
|
|
4317
|
-
return /* @__PURE__ */ g("div", { ref:
|
|
4328
|
+
return /* @__PURE__ */ g("div", { ref: p, className: R(O1.radioButtonGroupContainer, h), ...u, children: [
|
|
4318
4329
|
/* @__PURE__ */ g(
|
|
4319
4330
|
"div",
|
|
4320
4331
|
{
|
|
@@ -4363,7 +4374,7 @@ const Nr = z(
|
|
|
4363
4374
|
const o = yt(e);
|
|
4364
4375
|
return /* @__PURE__ */ g("div", { className: O3["assistive-text"], "data-appearance": e, style: { width: `${l}px` }, children: [
|
|
4365
4376
|
t && o && /* @__PURE__ */ r(
|
|
4366
|
-
|
|
4377
|
+
A,
|
|
4367
4378
|
{
|
|
4368
4379
|
name: o,
|
|
4369
4380
|
appearance: "outlined",
|
|
@@ -4381,7 +4392,7 @@ const Nr = z(
|
|
|
4381
4392
|
"requirement-indicator": "_requirement-indicator_1546d_1"
|
|
4382
4393
|
}, K1 = ({ required: C, showLabelRequirement: e }) => {
|
|
4383
4394
|
const t = C ? e ? a3.required : a3.requiredIcon : a3.optional;
|
|
4384
|
-
return /* @__PURE__ */ r(
|
|
4395
|
+
return /* @__PURE__ */ r(X, { children: (e || C) && /* @__PURE__ */ r(
|
|
4385
4396
|
"span",
|
|
4386
4397
|
{
|
|
4387
4398
|
className: Ot["requirement-indicator"],
|
|
@@ -4391,7 +4402,7 @@ const Nr = z(
|
|
|
4391
4402
|
children: t
|
|
4392
4403
|
}
|
|
4393
4404
|
) });
|
|
4394
|
-
}, Nt = "_container_fb63b_1", Ft = "_inputContainer_fb63b_10", kt = "_input_fb63b_10", It = "_inputBar_fb63b_14", At = "_inputField_fb63b_14", Dt = "_text_fb63b_21", Tt = "_inputCounter_fb63b_25", Rt = "_leftIcon_fb63b_28", Et = "_labelContainer_fb63b_40", Pt = "_inputLabel_fb63b_44", zt = "_withLeftIcon_fb63b_71", $t = "_withRightIcon_fb63b_74", Kt = "_rightIcon_fb63b_82",
|
|
4405
|
+
}, Nt = "_container_fb63b_1", Ft = "_inputContainer_fb63b_10", kt = "_input_fb63b_10", It = "_inputBar_fb63b_14", At = "_inputField_fb63b_14", Dt = "_text_fb63b_21", Tt = "_inputCounter_fb63b_25", Rt = "_leftIcon_fb63b_28", Et = "_labelContainer_fb63b_40", Pt = "_inputLabel_fb63b_44", zt = "_withLeftIcon_fb63b_71", $t = "_withRightIcon_fb63b_74", Kt = "_rightIcon_fb63b_82", J = {
|
|
4395
4406
|
container: Nt,
|
|
4396
4407
|
inputContainer: Ft,
|
|
4397
4408
|
input: kt,
|
|
@@ -4421,79 +4432,79 @@ const Nr = z(
|
|
|
4421
4432
|
showAssistiveIcon: v = !1,
|
|
4422
4433
|
assistiveTextLabel: h = "",
|
|
4423
4434
|
error: u = !1,
|
|
4424
|
-
maxLength:
|
|
4435
|
+
maxLength: p,
|
|
4425
4436
|
disabled: Z,
|
|
4426
4437
|
readOnly: L,
|
|
4427
|
-
width:
|
|
4428
|
-
onChange:
|
|
4438
|
+
width: V,
|
|
4439
|
+
onChange: B,
|
|
4429
4440
|
onRightIconClick: F,
|
|
4430
|
-
compactSpacing:
|
|
4441
|
+
compactSpacing: S,
|
|
4431
4442
|
placeholder: w,
|
|
4432
4443
|
rightSlot: m,
|
|
4433
4444
|
highlighted: b,
|
|
4434
4445
|
...k
|
|
4435
4446
|
}, _) => {
|
|
4436
|
-
const y = K(null), x = (j) => ["visibilityOn", "visibilityOff"].includes(j) ?
|
|
4437
|
-
|
|
4438
|
-
o !== void 0 && (
|
|
4439
|
-
}, [o]),
|
|
4447
|
+
const y = K(null), x = (j) => ["visibilityOn", "visibilityOff"].includes(j) ? P ? "visibility-show" : "visibility-hide" : j === "clean" ? "cancel" : "", f = (j) => ["visibilityOn", "visibilityOff"].includes(j) ? P ? "show text" : "hide text" : j === "clean" ? "clear" : "", [O, H] = N(o ?? ""), [M, I] = N(O.length), [P, U] = N(!!c && i === "visibilityOn");
|
|
4448
|
+
E(() => {
|
|
4449
|
+
o !== void 0 && (H(o), I(o.length));
|
|
4450
|
+
}, [o]), E(() => {
|
|
4440
4451
|
U(!!c && i === "visibilityOn");
|
|
4441
4452
|
}, [c, i]);
|
|
4442
4453
|
const q = (j) => {
|
|
4443
4454
|
const v1 = j.target.value;
|
|
4444
|
-
|
|
4455
|
+
H(v1), I(v1.length), B && B(v1);
|
|
4445
4456
|
}, T = () => {
|
|
4446
|
-
i === "clean" && (
|
|
4457
|
+
i === "clean" && (H(""), I(0), B && B("")), ["visibilityOn", "visibilityOff"].includes(i) && c1();
|
|
4447
4458
|
}, Q = () => {
|
|
4448
4459
|
F && F(), T();
|
|
4449
4460
|
}, c1 = () => {
|
|
4450
|
-
U(!
|
|
4461
|
+
U(!P);
|
|
4451
4462
|
}, G = u ? "error" : s, V1 = R(
|
|
4452
|
-
|
|
4453
|
-
G ?
|
|
4454
|
-
i ?
|
|
4455
|
-
),
|
|
4463
|
+
J.inputBar,
|
|
4464
|
+
G ? J.withLeftIcon : "",
|
|
4465
|
+
i ? J.withRightIcon : ""
|
|
4466
|
+
), D = l && typeof p == "number", o1 = x(i), l1 = f(i), L1 = () => L || Z ? !1 : i === "clean" ? !!(O != null && O.length) && c : c && !!i;
|
|
4456
4467
|
return /* @__PURE__ */ g(
|
|
4457
4468
|
"div",
|
|
4458
4469
|
{
|
|
4459
|
-
className:
|
|
4470
|
+
className: J.container,
|
|
4460
4471
|
"data-label-position": t,
|
|
4461
4472
|
"data-error": u,
|
|
4462
|
-
style: { width:
|
|
4463
|
-
"data-compact-spacing":
|
|
4473
|
+
style: { width: V },
|
|
4474
|
+
"data-compact-spacing": S,
|
|
4464
4475
|
children: [
|
|
4465
|
-
e && /* @__PURE__ */ g("div", { className:
|
|
4466
|
-
/* @__PURE__ */ g("div", { className:
|
|
4467
|
-
/* @__PURE__ */ g("label", { className:
|
|
4476
|
+
e && /* @__PURE__ */ g("div", { className: J.text, children: [
|
|
4477
|
+
/* @__PURE__ */ g("div", { className: J.labelContainer, children: [
|
|
4478
|
+
/* @__PURE__ */ g("label", { className: J.inputLabel, id: `inputLabel-${C}`, htmlFor: C, children: [
|
|
4468
4479
|
" ",
|
|
4469
4480
|
e,
|
|
4470
4481
|
" "
|
|
4471
4482
|
] }),
|
|
4472
4483
|
/* @__PURE__ */ r(K1, { required: n, showLabelRequirement: a })
|
|
4473
4484
|
] }),
|
|
4474
|
-
|
|
4485
|
+
D && t === "top" && /* @__PURE__ */ g("p", { className: J.inputCounter, "data-testid": "input-counter", children: [
|
|
4475
4486
|
" ",
|
|
4476
|
-
|
|
4487
|
+
M,
|
|
4477
4488
|
"/",
|
|
4478
|
-
|
|
4489
|
+
p
|
|
4479
4490
|
] })
|
|
4480
4491
|
] }),
|
|
4481
|
-
/* @__PURE__ */ g("div", { className:
|
|
4492
|
+
/* @__PURE__ */ g("div", { className: J.inputContainer, children: [
|
|
4482
4493
|
/* @__PURE__ */ g(
|
|
4483
4494
|
"div",
|
|
4484
4495
|
{
|
|
4485
|
-
className:
|
|
4496
|
+
className: J.input,
|
|
4486
4497
|
"data-label-position": t,
|
|
4487
4498
|
"data-disabled": Z,
|
|
4488
4499
|
"data-read-only": L,
|
|
4489
4500
|
children: [
|
|
4490
4501
|
/* @__PURE__ */ g("div", { className: V1, children: [
|
|
4491
4502
|
G && /* @__PURE__ */ r(
|
|
4492
|
-
|
|
4503
|
+
A,
|
|
4493
4504
|
{
|
|
4494
4505
|
name: G,
|
|
4495
4506
|
appearance: "outlined",
|
|
4496
|
-
className:
|
|
4507
|
+
className: J.leftIcon,
|
|
4497
4508
|
"aria-hidden": "true",
|
|
4498
4509
|
"data-testid": `left-icon ${G}`
|
|
4499
4510
|
}
|
|
@@ -4505,11 +4516,11 @@ const Nr = z(
|
|
|
4505
4516
|
ref: (j) => {
|
|
4506
4517
|
y.current = j, typeof _ == "function" ? _(j) : _ && (_.current = j);
|
|
4507
4518
|
},
|
|
4508
|
-
type:
|
|
4519
|
+
type: P ? "password" : "text",
|
|
4509
4520
|
"data-error": u,
|
|
4510
4521
|
"data-highlighted": b,
|
|
4511
|
-
className:
|
|
4512
|
-
maxLength:
|
|
4522
|
+
className: J.inputField,
|
|
4523
|
+
maxLength: p,
|
|
4513
4524
|
onChange: q,
|
|
4514
4525
|
disabled: Z,
|
|
4515
4526
|
readOnly: L,
|
|
@@ -4526,24 +4537,24 @@ const Nr = z(
|
|
|
4526
4537
|
variant: "neutral",
|
|
4527
4538
|
size: "s",
|
|
4528
4539
|
compactSpacing: !0,
|
|
4529
|
-
className:
|
|
4540
|
+
className: J.rightIcon,
|
|
4530
4541
|
"aria-label": l1,
|
|
4531
4542
|
onClick: Q,
|
|
4532
4543
|
"data-testid": "right-icon"
|
|
4533
4544
|
}
|
|
4534
4545
|
)
|
|
4535
4546
|
] }),
|
|
4536
|
-
m && /* @__PURE__ */ r("div", { className:
|
|
4547
|
+
m && /* @__PURE__ */ r("div", { className: J.rightSlot, children: m })
|
|
4537
4548
|
]
|
|
4538
4549
|
}
|
|
4539
4550
|
),
|
|
4540
4551
|
h && /* @__PURE__ */ r(M3, { label: h, appearance: d, showIcon: v })
|
|
4541
4552
|
] }),
|
|
4542
|
-
|
|
4553
|
+
D && t == "side" && /* @__PURE__ */ g("p", { className: J.inputCounter, "data-testid": "input-counter", children: [
|
|
4543
4554
|
" ",
|
|
4544
|
-
|
|
4555
|
+
M,
|
|
4545
4556
|
"/",
|
|
4546
|
-
|
|
4557
|
+
p,
|
|
4547
4558
|
" "
|
|
4548
4559
|
] })
|
|
4549
4560
|
]
|
|
@@ -4582,28 +4593,28 @@ const Ar = z(
|
|
|
4582
4593
|
style: v,
|
|
4583
4594
|
...h
|
|
4584
4595
|
}, u) => {
|
|
4585
|
-
const
|
|
4586
|
-
|
|
4587
|
-
const y =
|
|
4596
|
+
const p = bt[c], [Z, L] = N(!1), V = K(null);
|
|
4597
|
+
E(() => {
|
|
4598
|
+
const y = V.current;
|
|
4588
4599
|
if (!y) return;
|
|
4589
4600
|
const x = () => {
|
|
4590
4601
|
L(!0);
|
|
4591
4602
|
}, f = (O) => {
|
|
4592
|
-
const
|
|
4593
|
-
|
|
4603
|
+
const H = O.relatedTarget;
|
|
4604
|
+
H && y.contains(H) || L(!1);
|
|
4594
4605
|
};
|
|
4595
4606
|
return y.addEventListener("focusin", x), y.addEventListener("focusout", f), () => {
|
|
4596
4607
|
y.removeEventListener("focusin", x), y.removeEventListener("focusout", f);
|
|
4597
4608
|
};
|
|
4598
4609
|
}, []);
|
|
4599
|
-
const
|
|
4610
|
+
const B = $(
|
|
4600
4611
|
(y) => {
|
|
4601
4612
|
e == null || e(y);
|
|
4602
4613
|
},
|
|
4603
4614
|
[e]
|
|
4604
4615
|
), F = $(() => {
|
|
4605
4616
|
C == null || C(a);
|
|
4606
|
-
}, [C, a]),
|
|
4617
|
+
}, [C, a]), S = $(
|
|
4607
4618
|
(y) => {
|
|
4608
4619
|
y.key === W && (C == null || C(a));
|
|
4609
4620
|
},
|
|
@@ -4614,39 +4625,39 @@ const Ar = z(
|
|
|
4614
4625
|
() => ({
|
|
4615
4626
|
disabled: o,
|
|
4616
4627
|
value: a,
|
|
4617
|
-
onChange:
|
|
4618
|
-
onKeyUp: C ?
|
|
4628
|
+
onChange: B,
|
|
4629
|
+
onKeyUp: C ? S : void 0,
|
|
4619
4630
|
showRightIcon: s,
|
|
4620
4631
|
rightIconAction: "clean",
|
|
4621
4632
|
onRightIconClick: w,
|
|
4622
4633
|
assistiveTextLabel: d,
|
|
4623
4634
|
compactSpacing: i,
|
|
4624
4635
|
placeholder: m,
|
|
4625
|
-
leftIcon:
|
|
4636
|
+
leftIcon: p.showLeftIcon ? "search" : void 0,
|
|
4626
4637
|
...h
|
|
4627
4638
|
}),
|
|
4628
4639
|
[
|
|
4629
4640
|
o,
|
|
4630
4641
|
a,
|
|
4631
|
-
S,
|
|
4632
|
-
C,
|
|
4633
4642
|
B,
|
|
4643
|
+
C,
|
|
4644
|
+
S,
|
|
4634
4645
|
s,
|
|
4635
4646
|
w,
|
|
4636
4647
|
d,
|
|
4637
4648
|
i,
|
|
4638
4649
|
m,
|
|
4639
|
-
|
|
4650
|
+
p.showLeftIcon,
|
|
4640
4651
|
h
|
|
4641
4652
|
]
|
|
4642
4653
|
), k = j1(
|
|
4643
4654
|
() => ({
|
|
4644
|
-
...qt(c,
|
|
4655
|
+
...qt(c, p.showLeftIcon),
|
|
4645
4656
|
...v ?? {}
|
|
4646
4657
|
}),
|
|
4647
|
-
[c,
|
|
4658
|
+
[c, p.showLeftIcon, v]
|
|
4648
4659
|
), _ = j1(() => Yt(i), [i]);
|
|
4649
|
-
return /* @__PURE__ */ r("div", { className: d3.searchbarContainer, role: "search", "data-appearance": c, children: /* @__PURE__ */ r("div", { ref:
|
|
4660
|
+
return /* @__PURE__ */ r("div", { className: d3.searchbarContainer, role: "search", "data-appearance": c, children: /* @__PURE__ */ r("div", { ref: V, className: d3.textInputWrapper, "data-disabled": o, children: /* @__PURE__ */ r(
|
|
4650
4661
|
Ut,
|
|
4651
4662
|
{
|
|
4652
4663
|
id: n ?? "",
|
|
@@ -4654,7 +4665,7 @@ const Ar = z(
|
|
|
4654
4665
|
style: k,
|
|
4655
4666
|
highlighted: Z,
|
|
4656
4667
|
ref: u,
|
|
4657
|
-
rightSlot:
|
|
4668
|
+
rightSlot: p.showSearchButton && /* @__PURE__ */ r(
|
|
4658
4669
|
d1,
|
|
4659
4670
|
{
|
|
4660
4671
|
name: "search",
|
|
@@ -4706,7 +4717,7 @@ const Ar = z(
|
|
|
4706
4717
|
width: 2
|
|
4707
4718
|
} : { left: s.offsetLeft, top: s.offsetTop, width: s.offsetWidth });
|
|
4708
4719
|
}, [e, C, t]);
|
|
4709
|
-
return
|
|
4720
|
+
return E(() => {
|
|
4710
4721
|
const s = C.current;
|
|
4711
4722
|
if (s)
|
|
4712
4723
|
return o(), window.addEventListener("resize", o), s.addEventListener("scroll", o), () => {
|
|
@@ -4715,7 +4726,7 @@ const Ar = z(
|
|
|
4715
4726
|
}, [e, C, o]), n;
|
|
4716
4727
|
}, nn = () => {
|
|
4717
4728
|
const [C, e] = N([]);
|
|
4718
|
-
return
|
|
4729
|
+
return E(() => {
|
|
4719
4730
|
const t = () => {
|
|
4720
4731
|
e(Array.from(document.querySelectorAll(Y3)));
|
|
4721
4732
|
};
|
|
@@ -4732,7 +4743,7 @@ const Ar = z(
|
|
|
4732
4743
|
"segment-label": "_segment-label_j2zz5_79",
|
|
4733
4744
|
"selected-icon": "_selected-icon_j2zz5_92"
|
|
4734
4745
|
}, on = (C) => {
|
|
4735
|
-
|
|
4746
|
+
E(() => {
|
|
4736
4747
|
var o;
|
|
4737
4748
|
const e = C.current;
|
|
4738
4749
|
if (!e) return;
|
|
@@ -4769,34 +4780,34 @@ const Ar = z(
|
|
|
4769
4780
|
showBadge: v,
|
|
4770
4781
|
...h
|
|
4771
4782
|
}) => {
|
|
4772
|
-
const u = K(null),
|
|
4783
|
+
const u = K(null), p = nn();
|
|
4773
4784
|
on(u);
|
|
4774
4785
|
const Z = (w) => {
|
|
4775
4786
|
var m, b;
|
|
4776
4787
|
if (w.key === e1 || w.key === W)
|
|
4777
|
-
|
|
4778
|
-
else if (w.key ===
|
|
4788
|
+
S == null || S(w);
|
|
4789
|
+
else if (w.key === Q1 || w.key === X1) {
|
|
4779
4790
|
const k = (b = (m = u.current) == null ? void 0 : m.parentElement) == null ? void 0 : b.parentElement, _ = Array.from(
|
|
4780
4791
|
(k == null ? void 0 : k.querySelectorAll("." + s1.segment)) ?? []
|
|
4781
4792
|
), y = _.findIndex(
|
|
4782
4793
|
(x) => x === document.activeElement
|
|
4783
4794
|
);
|
|
4784
|
-
w.key ===
|
|
4795
|
+
w.key === X1 ? Cn(y, _) : w.key === Q1 && en(y, _);
|
|
4785
4796
|
}
|
|
4786
4797
|
}, L = (w) => {
|
|
4787
4798
|
if (w.key === A1) {
|
|
4788
|
-
const m = document.activeElement, b = Array.from(
|
|
4799
|
+
const m = document.activeElement, b = Array.from(p).indexOf(
|
|
4789
4800
|
m
|
|
4790
4801
|
);
|
|
4791
|
-
w.shiftKey ? Jt(b,
|
|
4802
|
+
w.shiftKey ? Jt(b, p, s1.segment) : Xt(b, p, s1.segment);
|
|
4792
4803
|
}
|
|
4793
|
-
}, { onBlur:
|
|
4804
|
+
}, { onBlur: V, onKeyDown: B, onKeyUp: F } = B1(
|
|
4794
4805
|
{ onKeyUp: Z, onKeyDown: L },
|
|
4795
4806
|
{
|
|
4796
4807
|
id: C,
|
|
4797
|
-
interactiveKeyCodes: [e1, W, A1,
|
|
4808
|
+
interactiveKeyCodes: [e1, W, A1, Q1, X1]
|
|
4798
4809
|
}
|
|
4799
|
-
),
|
|
4810
|
+
), S = (w) => {
|
|
4800
4811
|
w.preventDefault(), w.stopPropagation(), o == null || o(w);
|
|
4801
4812
|
};
|
|
4802
4813
|
return /* @__PURE__ */ r("div", { className: s1["segment-container"], "data-position": n, ...h, children: /* @__PURE__ */ g(
|
|
@@ -4809,15 +4820,15 @@ const Ar = z(
|
|
|
4809
4820
|
className: s1.segment,
|
|
4810
4821
|
"data-segment-type": e ? "icon" : "label",
|
|
4811
4822
|
"data-selected": l,
|
|
4812
|
-
onKeyDown:
|
|
4823
|
+
onKeyDown: B,
|
|
4813
4824
|
onKeyUp: F,
|
|
4814
|
-
onBlur:
|
|
4815
|
-
onClick:
|
|
4825
|
+
onBlur: V,
|
|
4826
|
+
onClick: S,
|
|
4816
4827
|
tabIndex: 0,
|
|
4817
4828
|
ref: u,
|
|
4818
4829
|
children: [
|
|
4819
|
-
l && /* @__PURE__ */ r(
|
|
4820
|
-
/* @__PURE__ */ r("div", { className: s1["segment-content"], children: e ? /* @__PURE__ */ r(
|
|
4830
|
+
l && /* @__PURE__ */ r(A, { name: "check-small", appearance: "filled", size: 24, className: s1["selected-icon"] }),
|
|
4831
|
+
/* @__PURE__ */ r("div", { className: s1["segment-content"], children: e ? /* @__PURE__ */ r(A, { name: e, appearance: l ? "filled" : "outlined", size: 24 }) : /* @__PURE__ */ r("span", { className: s1["segment-label"], children: t }) }),
|
|
4821
4832
|
U1({ showBadge: !!v, badgeContent: c, badgeCount: s, badgeIcon: i }) && /* @__PURE__ */ r(C1, { count: s, content: c, icon: i, badgeType: a, size: d })
|
|
4822
4833
|
]
|
|
4823
4834
|
}
|
|
@@ -4886,37 +4897,39 @@ const Ar = z(
|
|
|
4886
4897
|
assistiveTextLabel: v,
|
|
4887
4898
|
onClear: h,
|
|
4888
4899
|
onChange: u,
|
|
4889
|
-
options:
|
|
4900
|
+
options: p = [],
|
|
4890
4901
|
disabled: Z,
|
|
4891
4902
|
readonly: L,
|
|
4892
|
-
showResetButton:
|
|
4893
|
-
width:
|
|
4903
|
+
showResetButton: V,
|
|
4904
|
+
width: B = an
|
|
4894
4905
|
}, F) => {
|
|
4895
4906
|
var U, q;
|
|
4896
|
-
const [
|
|
4907
|
+
const [S, w] = N(l || ""), [m, b] = N(!1), k = K(null), _ = (T) => {
|
|
4897
4908
|
k.current = T, typeof F == "function" ? F(T) : F && (F.current = T);
|
|
4898
|
-
}, y =
|
|
4909
|
+
}, y = V && !!S && !L && !Z, x = (U = p.find((T) => T.value === S)) == null ? void 0 : U.label, f = s && !Z && !L, O = () => {
|
|
4899
4910
|
const T = k.current;
|
|
4900
4911
|
if (T) {
|
|
4901
4912
|
const Q = T.getBoundingClientRect();
|
|
4902
4913
|
return window.innerHeight - Q.bottom >= sn ? "bottom" : "top";
|
|
4903
4914
|
}
|
|
4904
4915
|
return "bottom";
|
|
4905
|
-
},
|
|
4916
|
+
}, H = () => {
|
|
4906
4917
|
if (k.current) {
|
|
4907
4918
|
if (Z || L)
|
|
4908
4919
|
return;
|
|
4909
4920
|
k.current.focus(), b(!m);
|
|
4910
4921
|
}
|
|
4911
|
-
},
|
|
4912
|
-
document.activeElement === k.current && (T.key === e1 || T.key === W) && (T.preventDefault(),
|
|
4922
|
+
}, M = (T) => {
|
|
4923
|
+
document.activeElement === k.current && (T.key === e1 || T.key === W) && (T.preventDefault(), H());
|
|
4913
4924
|
}, I = (T) => {
|
|
4914
4925
|
var Q;
|
|
4915
|
-
T.stopPropagation(),
|
|
4916
|
-
},
|
|
4926
|
+
T.stopPropagation(), P(""), h == null || h(), (Q = k.current) == null || Q.focus();
|
|
4927
|
+
}, P = (T) => {
|
|
4917
4928
|
w(T), u == null || u(T), b(!1);
|
|
4918
4929
|
};
|
|
4919
|
-
return
|
|
4930
|
+
return E(() => {
|
|
4931
|
+
w(l || "");
|
|
4932
|
+
}, [l]), /* @__PURE__ */ r(X, { children: /* @__PURE__ */ g("div", { className: r1["select-container"], "data-label-position": t, children: [
|
|
4920
4933
|
o && t === "side" && /* @__PURE__ */ g("label", { htmlFor: C, id: e, className: r1["select-label"], children: [
|
|
4921
4934
|
e,
|
|
4922
4935
|
/* @__PURE__ */ r(K1, { required: n, showLabelRequirement: d })
|
|
@@ -4949,11 +4962,11 @@ const Ar = z(
|
|
|
4949
4962
|
className: r1["select-wrapper"],
|
|
4950
4963
|
role: "combobox",
|
|
4951
4964
|
tabIndex: Z || L ? -1 : 0,
|
|
4952
|
-
onClick:
|
|
4953
|
-
onKeyDown:
|
|
4954
|
-
style: { width:
|
|
4965
|
+
onClick: H,
|
|
4966
|
+
onKeyDown: M,
|
|
4967
|
+
style: { width: B },
|
|
4955
4968
|
children: /* @__PURE__ */ g("div", { className: r1["select-content"], children: [
|
|
4956
|
-
f && /* @__PURE__ */ r(
|
|
4969
|
+
f && /* @__PURE__ */ r(A, { name: "error", className: r1["error-icon"] }),
|
|
4957
4970
|
/* @__PURE__ */ r("div", { className: r1["select-value"], children: /* @__PURE__ */ r("span", { children: x }) }),
|
|
4958
4971
|
/* @__PURE__ */ g("div", { className: r1["select-right-icons"], children: [
|
|
4959
4972
|
y && /* @__PURE__ */ r(
|
|
@@ -4967,7 +4980,7 @@ const Ar = z(
|
|
|
4967
4980
|
}
|
|
4968
4981
|
),
|
|
4969
4982
|
/* @__PURE__ */ r(
|
|
4970
|
-
|
|
4983
|
+
A,
|
|
4971
4984
|
{
|
|
4972
4985
|
name: m ? "arrow-chevron-up" : "arrow-chevron-down",
|
|
4973
4986
|
"data-testid": "trigger-icon",
|
|
@@ -4981,15 +4994,15 @@ const Ar = z(
|
|
|
4981
4994
|
isOpen: m,
|
|
4982
4995
|
position: O(),
|
|
4983
4996
|
children: [
|
|
4984
|
-
|
|
4997
|
+
p.length === 0 && /* @__PURE__ */ r($1, { label: "No options available", onClick: () => {
|
|
4985
4998
|
} }),
|
|
4986
|
-
|
|
4999
|
+
p.map(({ value: T, label: Q }, c1) => /* @__PURE__ */ r(
|
|
4987
5000
|
$1,
|
|
4988
5001
|
{
|
|
4989
5002
|
label: Q,
|
|
4990
|
-
isSelected: T ===
|
|
5003
|
+
isSelected: T === S,
|
|
4991
5004
|
onClick: () => {
|
|
4992
|
-
|
|
5005
|
+
P(T);
|
|
4993
5006
|
}
|
|
4994
5007
|
},
|
|
4995
5008
|
c1 + T
|
|
@@ -5004,7 +5017,7 @@ const Ar = z(
|
|
|
5004
5017
|
appearance: s ? "error" : c,
|
|
5005
5018
|
showIcon: i,
|
|
5006
5019
|
href: a,
|
|
5007
|
-
width:
|
|
5020
|
+
width: B
|
|
5008
5021
|
}
|
|
5009
5022
|
)
|
|
5010
5023
|
] })
|
|
@@ -5116,8 +5129,8 @@ function Nn(C = !1, e = !1) {
|
|
|
5116
5129
|
}
|
|
5117
5130
|
function e6({ icon: C, showIcon: e = !0, label: t, collapsed: n, isNested: l, styleType: o = "item" }) {
|
|
5118
5131
|
const s = Nn(l, n);
|
|
5119
|
-
return /* @__PURE__ */ g(
|
|
5120
|
-
e && C && /* @__PURE__ */ r(
|
|
5132
|
+
return /* @__PURE__ */ g(X, { children: [
|
|
5133
|
+
e && C && /* @__PURE__ */ r(A, { name: C, className: (o === "menu" ? m1 : E1).icon, size: s }),
|
|
5121
5134
|
n ? null : /* @__PURE__ */ r("span", { children: t })
|
|
5122
5135
|
] });
|
|
5123
5136
|
}
|
|
@@ -5174,18 +5187,18 @@ const H3 = z(
|
|
|
5174
5187
|
badge: v,
|
|
5175
5188
|
...h
|
|
5176
5189
|
}, u) => {
|
|
5177
|
-
const
|
|
5190
|
+
const p = K(null), { onKeyDown: Z } = r6({
|
|
5178
5191
|
onEnterOrSpace: n
|
|
5179
5192
|
});
|
|
5180
5193
|
function L() {
|
|
5181
5194
|
var w;
|
|
5182
|
-
(w =
|
|
5195
|
+
(w = p.current) == null || w.setAttribute("data-focused", "true");
|
|
5183
5196
|
}
|
|
5184
|
-
function
|
|
5197
|
+
function V() {
|
|
5185
5198
|
var w;
|
|
5186
|
-
(w =
|
|
5199
|
+
(w = p.current) == null || w.removeAttribute("data-focused");
|
|
5187
5200
|
}
|
|
5188
|
-
const
|
|
5201
|
+
const B = n6(i), F = /* @__PURE__ */ g(X, { children: [
|
|
5189
5202
|
/* @__PURE__ */ r("div", { className: E1.navItemLeft, children: /* @__PURE__ */ r(
|
|
5190
5203
|
e6,
|
|
5191
5204
|
{
|
|
@@ -5198,7 +5211,7 @@ const H3 = z(
|
|
|
5198
5211
|
}
|
|
5199
5212
|
) }),
|
|
5200
5213
|
/* @__PURE__ */ r("div", { className: E1.navItemRight, children: !o && v && /* @__PURE__ */ r(C1, { badgeType: v.badgeType, size: v.size, content: v.content, count: v.count }) })
|
|
5201
|
-
] }),
|
|
5214
|
+
] }), S = /* @__PURE__ */ r(
|
|
5202
5215
|
"div",
|
|
5203
5216
|
{
|
|
5204
5217
|
id: C,
|
|
@@ -5209,7 +5222,7 @@ const H3 = z(
|
|
|
5209
5222
|
"data-active": d,
|
|
5210
5223
|
onClick: n,
|
|
5211
5224
|
ref: (w) => {
|
|
5212
|
-
|
|
5225
|
+
p.current = w, typeof u == "function" ? u(w) : u && "current" in u && (u.current = w);
|
|
5213
5226
|
},
|
|
5214
5227
|
...h,
|
|
5215
5228
|
children: /* @__PURE__ */ r(
|
|
@@ -5217,17 +5230,17 @@ const H3 = z(
|
|
|
5217
5230
|
{
|
|
5218
5231
|
link: s,
|
|
5219
5232
|
label: l,
|
|
5220
|
-
tabIndex:
|
|
5233
|
+
tabIndex: B,
|
|
5221
5234
|
onKeyDown: s ? void 0 : Z,
|
|
5222
5235
|
onFocus: L,
|
|
5223
|
-
onBlur:
|
|
5236
|
+
onBlur: V,
|
|
5224
5237
|
styleType: "item",
|
|
5225
5238
|
children: F
|
|
5226
5239
|
}
|
|
5227
5240
|
)
|
|
5228
5241
|
}
|
|
5229
5242
|
);
|
|
5230
|
-
return /* @__PURE__ */ r(t6, { label: l, collapsed: o, children:
|
|
5243
|
+
return /* @__PURE__ */ r(t6, { label: l, collapsed: o, children: S });
|
|
5231
5244
|
}
|
|
5232
5245
|
), o6 = z(
|
|
5233
5246
|
({
|
|
@@ -5245,21 +5258,21 @@ const H3 = z(
|
|
|
5245
5258
|
appearance: v = "brand",
|
|
5246
5259
|
badge: h,
|
|
5247
5260
|
showDivider: u,
|
|
5248
|
-
...
|
|
5261
|
+
...p
|
|
5249
5262
|
}, Z) => {
|
|
5250
|
-
const [L,
|
|
5251
|
-
function
|
|
5252
|
-
F ||
|
|
5263
|
+
const [L, V] = N(!1), B = c !== void 0 ? c : L, F = c !== void 0;
|
|
5264
|
+
function S() {
|
|
5265
|
+
F || V(!L), t && t();
|
|
5253
5266
|
}
|
|
5254
5267
|
function w() {
|
|
5255
|
-
|
|
5268
|
+
B && !F && V(!1);
|
|
5256
5269
|
}
|
|
5257
5270
|
const { onKeyDown: m } = r6({
|
|
5258
|
-
onEnterOrSpace:
|
|
5271
|
+
onEnterOrSpace: S,
|
|
5259
5272
|
onEscape: w,
|
|
5260
5273
|
includeArrowKeys: !0,
|
|
5261
5274
|
includeEscape: !0
|
|
5262
|
-
}), b = s.length, k = !l && b, _ =
|
|
5275
|
+
}), b = s.length, k = !l && b, _ = B, y = n6(d), x = k && i ? /* @__PURE__ */ r(A, { name: "arrow-chevron-right", className: m1.menuIcon, "data-open": B }) : null, f = /* @__PURE__ */ g(X, { children: [
|
|
5263
5276
|
/* @__PURE__ */ r("div", { className: m1.menuContentLeft, children: /* @__PURE__ */ r(
|
|
5264
5277
|
e6,
|
|
5265
5278
|
{
|
|
@@ -5282,9 +5295,9 @@ const H3 = z(
|
|
|
5282
5295
|
"data-collapsed": l,
|
|
5283
5296
|
"data-appearance": v,
|
|
5284
5297
|
"data-nested": a,
|
|
5285
|
-
"data-open":
|
|
5298
|
+
"data-open": B,
|
|
5286
5299
|
ref: Z,
|
|
5287
|
-
...
|
|
5300
|
+
...p,
|
|
5288
5301
|
children: [
|
|
5289
5302
|
/* @__PURE__ */ r(
|
|
5290
5303
|
C6,
|
|
@@ -5292,55 +5305,55 @@ const H3 = z(
|
|
|
5292
5305
|
link: o,
|
|
5293
5306
|
label: n,
|
|
5294
5307
|
tabIndex: y,
|
|
5295
|
-
onClick:
|
|
5308
|
+
onClick: S,
|
|
5296
5309
|
onKeyDown: m,
|
|
5297
5310
|
styleType: "menu",
|
|
5298
5311
|
children: f
|
|
5299
5312
|
}
|
|
5300
5313
|
),
|
|
5301
|
-
k && /* @__PURE__ */ r("ul", { className: m1.nestedMenu, "data-open":
|
|
5302
|
-
var
|
|
5303
|
-
return (
|
|
5314
|
+
k && /* @__PURE__ */ r("ul", { className: m1.nestedMenu, "data-open": B, children: s.map((M) => {
|
|
5315
|
+
var P;
|
|
5316
|
+
return (P = M.items) != null && P.length ? /* @__PURE__ */ r(
|
|
5304
5317
|
o6,
|
|
5305
5318
|
{
|
|
5306
|
-
label:
|
|
5307
|
-
icon:
|
|
5308
|
-
showIcon:
|
|
5319
|
+
label: M.label,
|
|
5320
|
+
icon: M.icon,
|
|
5321
|
+
showIcon: M.showIcon,
|
|
5309
5322
|
collapsed: l,
|
|
5310
|
-
link:
|
|
5311
|
-
onClick:
|
|
5312
|
-
items:
|
|
5323
|
+
link: M.link,
|
|
5324
|
+
onClick: M.onClick,
|
|
5325
|
+
items: M.items || [],
|
|
5313
5326
|
showMenuIcon: i,
|
|
5314
|
-
showDivider:
|
|
5327
|
+
showDivider: M.showDivider,
|
|
5315
5328
|
isNested: !0,
|
|
5316
5329
|
parentMenuOpen: _,
|
|
5317
5330
|
appearance: v,
|
|
5318
|
-
badge:
|
|
5331
|
+
badge: M.badge
|
|
5319
5332
|
},
|
|
5320
|
-
|
|
5321
|
-
) : /* @__PURE__ */ g(
|
|
5333
|
+
M.id || M.label
|
|
5334
|
+
) : /* @__PURE__ */ g(J1, { children: [
|
|
5322
5335
|
/* @__PURE__ */ r("li", { children: /* @__PURE__ */ r(
|
|
5323
5336
|
H3,
|
|
5324
5337
|
{
|
|
5325
|
-
label:
|
|
5326
|
-
icon:
|
|
5327
|
-
showIcon:
|
|
5338
|
+
label: M.label,
|
|
5339
|
+
icon: M.icon,
|
|
5340
|
+
showIcon: M.showIcon,
|
|
5328
5341
|
collapsed: l,
|
|
5329
|
-
link:
|
|
5330
|
-
onClick:
|
|
5342
|
+
link: M.link,
|
|
5343
|
+
onClick: M.onClick,
|
|
5331
5344
|
isNested: !0,
|
|
5332
5345
|
parentMenuOpen: _,
|
|
5333
5346
|
appearance: v,
|
|
5334
|
-
badge:
|
|
5347
|
+
badge: M.badge
|
|
5335
5348
|
}
|
|
5336
5349
|
) }),
|
|
5337
|
-
|
|
5338
|
-
] },
|
|
5350
|
+
M.showDivider && /* @__PURE__ */ r(a1, { appearance: p3[v] })
|
|
5351
|
+
] }, M.id || M.label);
|
|
5339
5352
|
}) })
|
|
5340
5353
|
]
|
|
5341
5354
|
}
|
|
5342
5355
|
);
|
|
5343
|
-
return /* @__PURE__ */ g(
|
|
5356
|
+
return /* @__PURE__ */ g(X, { children: [
|
|
5344
5357
|
/* @__PURE__ */ r(t6, { label: n, collapsed: l, children: O }),
|
|
5345
5358
|
u && /* @__PURE__ */ r(a1, { appearance: p3[v] })
|
|
5346
5359
|
] });
|
|
@@ -5371,10 +5384,10 @@ const H3 = z(
|
|
|
5371
5384
|
appearance: a = "brand",
|
|
5372
5385
|
activeItem: d
|
|
5373
5386
|
}, v) => {
|
|
5374
|
-
const [h, u] = N(s ?? c), [
|
|
5375
|
-
|
|
5387
|
+
const [h, u] = N(s ?? c), [p, Z] = N(!0);
|
|
5388
|
+
E(() => {
|
|
5376
5389
|
s !== void 0 && u(s);
|
|
5377
|
-
}, [s]),
|
|
5390
|
+
}, [s]), E(() => {
|
|
5378
5391
|
if (h)
|
|
5379
5392
|
Z(!1);
|
|
5380
5393
|
else {
|
|
@@ -5387,16 +5400,16 @@ const H3 = z(
|
|
|
5387
5400
|
const L = () => {
|
|
5388
5401
|
const x = !h;
|
|
5389
5402
|
s === void 0 && u(x), i == null || i(x);
|
|
5390
|
-
},
|
|
5403
|
+
}, V = h ? "arrow-double-right" : "arrow-double-left", B = p3[a], F = (x) => {
|
|
5391
5404
|
[e1, W].includes(x.key) && (x.preventDefault(), n != null && n.onClick && n.onClick());
|
|
5392
|
-
}, { onKeyDown:
|
|
5405
|
+
}, { onKeyDown: S } = B1(
|
|
5393
5406
|
{ onKeyDown: F },
|
|
5394
5407
|
{
|
|
5395
5408
|
interactiveKeyCodes: [e1, W]
|
|
5396
5409
|
}
|
|
5397
5410
|
), w = /* @__PURE__ */ g("div", { className: t1.sideNavHeaderTitle, children: [
|
|
5398
5411
|
/* @__PURE__ */ r("div", { className: t1.sideNavHeaderIdentifier, children: n == null ? void 0 : n.identifier }),
|
|
5399
|
-
h ? "" : /* @__PURE__ */ r("h1", { "data-hidden": !
|
|
5412
|
+
h ? "" : /* @__PURE__ */ r("h1", { "data-hidden": !p, children: n == null ? void 0 : n.title })
|
|
5400
5413
|
] }), m = n == null ? void 0 : n.ariaLabel, b = /* @__PURE__ */ r(
|
|
5401
5414
|
"a",
|
|
5402
5415
|
{
|
|
@@ -5412,7 +5425,7 @@ const H3 = z(
|
|
|
5412
5425
|
className: t1.sideNavHeaderTitleContainer,
|
|
5413
5426
|
tabIndex: 0,
|
|
5414
5427
|
onClick: n == null ? void 0 : n.onClick,
|
|
5415
|
-
onKeyDown:
|
|
5428
|
+
onKeyDown: S,
|
|
5416
5429
|
role: "button",
|
|
5417
5430
|
"aria-label": m,
|
|
5418
5431
|
children: w
|
|
@@ -5420,8 +5433,8 @@ const H3 = z(
|
|
|
5420
5433
|
), _ = n != null && n.link ? b : n != null && n.onClick ? k : /* @__PURE__ */ r("div", { className: t1.sideNavHeaderTitleContainer, children: w });
|
|
5421
5434
|
function y(x) {
|
|
5422
5435
|
return x != null && x.length ? /* @__PURE__ */ r("ul", { children: x.map((f) => {
|
|
5423
|
-
var
|
|
5424
|
-
return ((
|
|
5436
|
+
var H;
|
|
5437
|
+
return ((H = f.items) == null ? void 0 : H.length) ? /* @__PURE__ */ r(
|
|
5425
5438
|
o6,
|
|
5426
5439
|
{
|
|
5427
5440
|
badge: f.badge,
|
|
@@ -5436,7 +5449,7 @@ const H3 = z(
|
|
|
5436
5449
|
showDivider: f.showDivider
|
|
5437
5450
|
},
|
|
5438
5451
|
f.id
|
|
5439
|
-
) : /* @__PURE__ */ g(
|
|
5452
|
+
) : /* @__PURE__ */ g(J1, { children: [
|
|
5440
5453
|
/* @__PURE__ */ r("li", { children: /* @__PURE__ */ r(
|
|
5441
5454
|
H3,
|
|
5442
5455
|
{
|
|
@@ -5452,7 +5465,7 @@ const H3 = z(
|
|
|
5452
5465
|
active: f.id === d && !!d
|
|
5453
5466
|
}
|
|
5454
5467
|
) }),
|
|
5455
|
-
f.showDivider && /* @__PURE__ */ r(a1, { appearance:
|
|
5468
|
+
f.showDivider && /* @__PURE__ */ r(a1, { appearance: B })
|
|
5456
5469
|
] }, f.id);
|
|
5457
5470
|
}) }) : null;
|
|
5458
5471
|
}
|
|
@@ -5467,19 +5480,19 @@ const H3 = z(
|
|
|
5467
5480
|
header: /* @__PURE__ */ g("div", { className: t1.sideNavHeaderContainer, children: [
|
|
5468
5481
|
/* @__PURE__ */ g("div", { className: t1.sideNavHeader, "data-collapsed": h, "data-appearance": a, children: [
|
|
5469
5482
|
_,
|
|
5470
|
-
/* @__PURE__ */ r("div", { className: t1.sideNavHeaderVersion, "data-hidden": !
|
|
5483
|
+
/* @__PURE__ */ r("div", { className: t1.sideNavHeaderVersion, "data-hidden": !p, children: /* @__PURE__ */ r("span", { children: n == null ? void 0 : n.version }) })
|
|
5471
5484
|
] }),
|
|
5472
|
-
/* @__PURE__ */ r(a1, { appearance:
|
|
5485
|
+
/* @__PURE__ */ r(a1, { appearance: B })
|
|
5473
5486
|
] }),
|
|
5474
5487
|
body: /* @__PURE__ */ r("div", { className: t1.sideNavBody, children: y(l) }),
|
|
5475
5488
|
footer: ((o == null ? void 0 : o.length) || e) && /* @__PURE__ */ g("div", { className: t1.sideNavFooterContainer, children: [
|
|
5476
5489
|
(o == null ? void 0 : o.length) && /* @__PURE__ */ r("div", { className: t1.sideNavFooterItems, children: y(o) }),
|
|
5477
|
-
/* @__PURE__ */ r(a1, { appearance:
|
|
5490
|
+
/* @__PURE__ */ r(a1, { appearance: B }),
|
|
5478
5491
|
/* @__PURE__ */ r("div", { className: t1.sideNavFooter, children: e && /* @__PURE__ */ r("div", { className: t1.collapsibleSection, children: /* @__PURE__ */ r(
|
|
5479
5492
|
H3,
|
|
5480
5493
|
{
|
|
5481
5494
|
id: "collapse-button",
|
|
5482
|
-
icon:
|
|
5495
|
+
icon: V,
|
|
5483
5496
|
showIcon: !0,
|
|
5484
5497
|
collapsed: h,
|
|
5485
5498
|
onClick: L,
|
|
@@ -5524,15 +5537,15 @@ const H3 = z(
|
|
|
5524
5537
|
showBadge: v,
|
|
5525
5538
|
badgeContent: h,
|
|
5526
5539
|
badgeIcon: u,
|
|
5527
|
-
badgeType:
|
|
5540
|
+
badgeType: p,
|
|
5528
5541
|
badgeCount: Z,
|
|
5529
5542
|
badgeSize: L,
|
|
5530
|
-
...
|
|
5531
|
-
},
|
|
5532
|
-
const [F,
|
|
5543
|
+
...V
|
|
5544
|
+
}, B) => {
|
|
5545
|
+
const [F, S] = N(!1), w = K(null), m = K(null), b = K(null), [k, _] = l.split("-"), y = (f) => {
|
|
5533
5546
|
[W].includes(f.key) && f.preventDefault();
|
|
5534
5547
|
}, x = (f) => {
|
|
5535
|
-
[W, x1].includes(f.key) &&
|
|
5548
|
+
[W, x1].includes(f.key) && S(!0);
|
|
5536
5549
|
};
|
|
5537
5550
|
return /* @__PURE__ */ g(
|
|
5538
5551
|
"div",
|
|
@@ -5540,7 +5553,7 @@ const H3 = z(
|
|
|
5540
5553
|
className: R(h1.splitButtonContainer, o),
|
|
5541
5554
|
"data-size": e,
|
|
5542
5555
|
"data-compact-spacing": n,
|
|
5543
|
-
ref:
|
|
5556
|
+
ref: B,
|
|
5544
5557
|
children: [
|
|
5545
5558
|
/* @__PURE__ */ g(
|
|
5546
5559
|
"button",
|
|
@@ -5552,10 +5565,10 @@ const H3 = z(
|
|
|
5552
5565
|
onClick: c,
|
|
5553
5566
|
disabled: i,
|
|
5554
5567
|
"data-testid": "Main action button",
|
|
5555
|
-
...
|
|
5568
|
+
...V,
|
|
5556
5569
|
ref: m,
|
|
5557
5570
|
children: [
|
|
5558
|
-
s && /* @__PURE__ */ r(
|
|
5571
|
+
s && /* @__PURE__ */ r(A, { name: s, size: Un[e] }),
|
|
5559
5572
|
/* @__PURE__ */ r("p", { "data-size": e, className: h1.splitButtonLabel, children: t })
|
|
5560
5573
|
]
|
|
5561
5574
|
}
|
|
@@ -5567,12 +5580,12 @@ const H3 = z(
|
|
|
5567
5580
|
ref: b,
|
|
5568
5581
|
autoClose: !0,
|
|
5569
5582
|
dropdownId: "tab-dropdown",
|
|
5570
|
-
onClose: () =>
|
|
5583
|
+
onClose: () => S(!1),
|
|
5571
5584
|
offset: 0,
|
|
5572
5585
|
"data-testid": "Menu container",
|
|
5573
5586
|
position: k,
|
|
5574
5587
|
alignment: _,
|
|
5575
|
-
trigger: U1({ showBadge: !!v, badgeContent: h, badgeCount: Z, badgeIcon: u }) ? /* @__PURE__ */ r(C1, { count: Z, content: h, badgeType:
|
|
5588
|
+
trigger: U1({ showBadge: !!v, badgeContent: h, badgeCount: Z, badgeIcon: u }) ? /* @__PURE__ */ r(C1, { count: Z, content: h, badgeType: p, icon: u, size: L, children: /* @__PURE__ */ r(
|
|
5576
5589
|
"button",
|
|
5577
5590
|
{
|
|
5578
5591
|
type: "button",
|
|
@@ -5586,12 +5599,12 @@ const H3 = z(
|
|
|
5586
5599
|
"data-size": e,
|
|
5587
5600
|
"data-testid": "Menu button",
|
|
5588
5601
|
disabled: i,
|
|
5589
|
-
onClick: () =>
|
|
5602
|
+
onClick: () => S(!0),
|
|
5590
5603
|
onKeyDown: y,
|
|
5591
5604
|
onKeyUp: x,
|
|
5592
|
-
...
|
|
5605
|
+
...V,
|
|
5593
5606
|
ref: w,
|
|
5594
|
-
children: /* @__PURE__ */ r("div", { className: h1.splitButtonRightIconContainer, children: /* @__PURE__ */ r(
|
|
5607
|
+
children: /* @__PURE__ */ r("div", { className: h1.splitButtonRightIconContainer, children: /* @__PURE__ */ r(A, { name: "arrow-chevron-down", size: N3[e] }) })
|
|
5595
5608
|
}
|
|
5596
5609
|
) }) : /* @__PURE__ */ r(
|
|
5597
5610
|
"button",
|
|
@@ -5607,12 +5620,12 @@ const H3 = z(
|
|
|
5607
5620
|
"data-size": e,
|
|
5608
5621
|
"data-testid": "Menu button",
|
|
5609
5622
|
disabled: i,
|
|
5610
|
-
onClick: () =>
|
|
5623
|
+
onClick: () => S(!0),
|
|
5611
5624
|
onKeyDown: y,
|
|
5612
5625
|
onKeyUp: x,
|
|
5613
|
-
...
|
|
5626
|
+
...V,
|
|
5614
5627
|
ref: w,
|
|
5615
|
-
children: /* @__PURE__ */ r("div", { className: h1.splitButtonRightIconContainer, children: /* @__PURE__ */ r(
|
|
5628
|
+
children: /* @__PURE__ */ r("div", { className: h1.splitButtonRightIconContainer, children: /* @__PURE__ */ r(A, { name: "arrow-chevron-down", size: N3[e] }) })
|
|
5616
5629
|
}
|
|
5617
5630
|
),
|
|
5618
5631
|
isOpen: F,
|
|
@@ -5638,7 +5651,7 @@ const H3 = z(
|
|
|
5638
5651
|
}
|
|
5639
5652
|
);
|
|
5640
5653
|
}
|
|
5641
|
-
), Xn = 24, Jn = 40,
|
|
5654
|
+
), Xn = 24, Jn = 40, Y1 = {
|
|
5642
5655
|
"switch-container": "_switch-container_n4wlg_1",
|
|
5643
5656
|
"switch-icon-check": "_switch-icon-check_n4wlg_7",
|
|
5644
5657
|
switch: "_switch_n4wlg_1",
|
|
@@ -5660,17 +5673,17 @@ const H3 = z(
|
|
|
5660
5673
|
if (o || l)
|
|
5661
5674
|
u.stopPropagation();
|
|
5662
5675
|
else {
|
|
5663
|
-
const
|
|
5664
|
-
|
|
5665
|
-
target:
|
|
5666
|
-
currentTarget:
|
|
5676
|
+
const p = u.currentTarget.querySelector('input[type="checkbox"]');
|
|
5677
|
+
p && (p.checked = !a, v({
|
|
5678
|
+
target: p,
|
|
5679
|
+
currentTarget: p
|
|
5667
5680
|
}));
|
|
5668
5681
|
}
|
|
5669
5682
|
};
|
|
5670
5683
|
return /* @__PURE__ */ g(
|
|
5671
5684
|
"div",
|
|
5672
5685
|
{
|
|
5673
|
-
className:
|
|
5686
|
+
className: Y1["switch-container"],
|
|
5674
5687
|
"data-appearance": e,
|
|
5675
5688
|
"data-disabled": l,
|
|
5676
5689
|
"data-read-only": o,
|
|
@@ -5684,7 +5697,7 @@ const H3 = z(
|
|
|
5684
5697
|
type: "checkbox",
|
|
5685
5698
|
role: "switch",
|
|
5686
5699
|
name: C,
|
|
5687
|
-
className:
|
|
5700
|
+
className: Y1.switch,
|
|
5688
5701
|
disabled: l,
|
|
5689
5702
|
defaultChecked: a,
|
|
5690
5703
|
readOnly: o,
|
|
@@ -5695,11 +5708,11 @@ const H3 = z(
|
|
|
5695
5708
|
...i
|
|
5696
5709
|
}
|
|
5697
5710
|
),
|
|
5698
|
-
/* @__PURE__ */ g("div", { className:
|
|
5699
|
-
n && a && /* @__PURE__ */ r(
|
|
5700
|
-
n && !a && /* @__PURE__ */ r(
|
|
5711
|
+
/* @__PURE__ */ g("div", { className: Y1["switch-icon-check"], "data-checked": a, children: [
|
|
5712
|
+
n && a && /* @__PURE__ */ r(A, { name: "check", size: 16 }),
|
|
5713
|
+
n && !a && /* @__PURE__ */ r(A, { name: "close", size: 16 })
|
|
5701
5714
|
] }),
|
|
5702
|
-
t && C && /* @__PURE__ */ r("label", { htmlFor: C, className: R(
|
|
5715
|
+
t && C && /* @__PURE__ */ r("label", { htmlFor: C, className: R(Y1["switch-label"]), children: C })
|
|
5703
5716
|
]
|
|
5704
5717
|
}
|
|
5705
5718
|
);
|
|
@@ -5751,69 +5764,69 @@ const H3 = z(
|
|
|
5751
5764
|
compactSpacing: v,
|
|
5752
5765
|
direction: h,
|
|
5753
5766
|
disabled: u,
|
|
5754
|
-
inverted:
|
|
5767
|
+
inverted: p,
|
|
5755
5768
|
...Z
|
|
5756
5769
|
}, L) => {
|
|
5757
|
-
const
|
|
5770
|
+
const V = {
|
|
5758
5771
|
count: o,
|
|
5759
5772
|
content: s,
|
|
5760
5773
|
icon: c,
|
|
5761
5774
|
badgeType: d
|
|
5762
|
-
},
|
|
5763
|
-
u ?
|
|
5775
|
+
}, B = o && o > 0 && s === "number", S = !u && (l || B || s === "icon" && c), w = K(null), [m, b] = N(null), k = (H) => {
|
|
5776
|
+
u ? H.preventDefault() : (i(H), b((M) => ({ ...M, opacity: 0 })));
|
|
5764
5777
|
}, _ = $(
|
|
5765
|
-
(
|
|
5766
|
-
w.current && !n && b(
|
|
5767
|
-
...
|
|
5778
|
+
(H) => {
|
|
5779
|
+
w.current && !n && b(H === "mouseover" ? (M) => ({
|
|
5780
|
+
...M,
|
|
5768
5781
|
opacity: 1
|
|
5769
|
-
}) : (
|
|
5770
|
-
...
|
|
5782
|
+
}) : (M) => ({
|
|
5783
|
+
...M,
|
|
5771
5784
|
opacity: 0
|
|
5772
5785
|
}));
|
|
5773
5786
|
},
|
|
5774
5787
|
[n]
|
|
5775
|
-
), y = (
|
|
5776
|
-
const
|
|
5777
|
-
(T || (
|
|
5778
|
-
}, x = (
|
|
5788
|
+
), y = (H) => {
|
|
5789
|
+
const M = h === "vertical", I = M && H.key === x1, P = M && H.key === P1, U = !M && H.key === X1, q = !M && H.key === Q1, T = I || U;
|
|
5790
|
+
(T || (P || q)) && (H.preventDefault(), x(T ? "next" : "previous"));
|
|
5791
|
+
}, x = (H) => {
|
|
5779
5792
|
var Q;
|
|
5780
|
-
const
|
|
5781
|
-
if (!
|
|
5782
|
-
const I = Array.from(
|
|
5783
|
-
let U = f(
|
|
5793
|
+
const M = (Q = w.current) == null ? void 0 : Q.parentElement;
|
|
5794
|
+
if (!M) return;
|
|
5795
|
+
const I = Array.from(M.querySelectorAll(`.${w3.tabitem}`)), P = I.findIndex((c1) => c1 === document.activeElement);
|
|
5796
|
+
let U = f(P, I.length, H), q = 0;
|
|
5784
5797
|
const T = I.length;
|
|
5785
5798
|
for (; I[U].getAttribute("data-disabled") === "true" && q < T; )
|
|
5786
|
-
U = f(U, I.length,
|
|
5799
|
+
U = f(U, I.length, H), q++;
|
|
5787
5800
|
I[U].focus(), I[U].click();
|
|
5788
|
-
}, f = (
|
|
5789
|
-
w.current && !n && b(h === "horizontal" ? (
|
|
5790
|
-
var
|
|
5801
|
+
}, f = (H, M, I) => I === "next" ? (H + 1) % M : (H - 1 + M) % M, O = $(() => {
|
|
5802
|
+
w.current && !n && b(h === "horizontal" ? (H) => {
|
|
5803
|
+
var M, I, P, U;
|
|
5791
5804
|
return {
|
|
5792
|
-
...
|
|
5793
|
-
width: (
|
|
5805
|
+
...H,
|
|
5806
|
+
width: (M = w.current) == null ? void 0 : M.offsetWidth,
|
|
5794
5807
|
left: ((I = w.current) == null ? void 0 : I.offsetLeft) ?? 0,
|
|
5795
|
-
top: (((
|
|
5808
|
+
top: (((P = w.current) == null ? void 0 : P.offsetTop) ?? 0) + (((U = w.current) == null ? void 0 : U.offsetHeight) ?? 0)
|
|
5796
5809
|
};
|
|
5797
|
-
} : (
|
|
5798
|
-
var
|
|
5810
|
+
} : (H) => {
|
|
5811
|
+
var M, I;
|
|
5799
5812
|
return {
|
|
5800
|
-
...
|
|
5813
|
+
...H,
|
|
5801
5814
|
left: 0,
|
|
5802
|
-
top: (
|
|
5815
|
+
top: (M = w.current) == null ? void 0 : M.offsetTop,
|
|
5803
5816
|
height: (I = w.current) == null ? void 0 : I.offsetHeight
|
|
5804
5817
|
};
|
|
5805
5818
|
});
|
|
5806
5819
|
}, [n, h]);
|
|
5807
|
-
return
|
|
5808
|
-
var
|
|
5809
|
-
return O(), window.addEventListener("resize", O), (
|
|
5820
|
+
return E(() => {
|
|
5821
|
+
var H;
|
|
5822
|
+
return O(), window.addEventListener("resize", O), (H = w.current) != null && H.parentElement && w.current.parentElement.addEventListener("scroll", O), () => {
|
|
5810
5823
|
window.removeEventListener("resize", O), w.current && w.current.parentElement && w.current.parentElement.removeEventListener("scroll", O);
|
|
5811
5824
|
};
|
|
5812
|
-
}, [O]),
|
|
5813
|
-
var
|
|
5825
|
+
}, [O]), E(() => {
|
|
5826
|
+
var H;
|
|
5814
5827
|
w.current && b(h === "horizontal" ? {
|
|
5815
5828
|
width: w.current.offsetWidth,
|
|
5816
|
-
left: w.current.offsetLeft - (((
|
|
5829
|
+
left: w.current.offsetLeft - (((H = w.current.parentElement) == null ? void 0 : H.scrollLeft) ?? 0),
|
|
5817
5830
|
top: w.current.offsetTop + w.current.offsetHeight,
|
|
5818
5831
|
opacity: 0
|
|
5819
5832
|
} : {
|
|
@@ -5822,7 +5835,7 @@ const H3 = z(
|
|
|
5822
5835
|
height: w.current.offsetHeight,
|
|
5823
5836
|
opacity: 0
|
|
5824
5837
|
});
|
|
5825
|
-
}, [h]), /* @__PURE__ */ g(
|
|
5838
|
+
}, [h]), /* @__PURE__ */ g(X, { children: [
|
|
5826
5839
|
/* @__PURE__ */ g(
|
|
5827
5840
|
"button",
|
|
5828
5841
|
{
|
|
@@ -5836,11 +5849,11 @@ const H3 = z(
|
|
|
5836
5849
|
"data-selected": n,
|
|
5837
5850
|
"data-disabled": u,
|
|
5838
5851
|
"data-direction": h,
|
|
5839
|
-
"data-inverted":
|
|
5852
|
+
"data-inverted": p,
|
|
5840
5853
|
onClick: k,
|
|
5841
5854
|
"data-compact-spacing": v,
|
|
5842
|
-
ref: (
|
|
5843
|
-
w.current =
|
|
5855
|
+
ref: (H) => {
|
|
5856
|
+
w.current = H, typeof L == "function" ? L(H) : L && (L.current = H);
|
|
5844
5857
|
},
|
|
5845
5858
|
onKeyDown: y,
|
|
5846
5859
|
onMouseEnter: () => _("mouseover"),
|
|
@@ -5848,9 +5861,9 @@ const H3 = z(
|
|
|
5848
5861
|
...n && { "data-testid": "tabitem-selected" },
|
|
5849
5862
|
...Z,
|
|
5850
5863
|
children: [
|
|
5851
|
-
a && /* @__PURE__ */ r(
|
|
5864
|
+
a && /* @__PURE__ */ r(A, { name: a, appearance: n ? "filled" : "outlined" }),
|
|
5852
5865
|
t && /* @__PURE__ */ r("span", { children: t }),
|
|
5853
|
-
|
|
5866
|
+
S && /* @__PURE__ */ r(C1, { ...V })
|
|
5854
5867
|
]
|
|
5855
5868
|
}
|
|
5856
5869
|
),
|
|
@@ -5881,41 +5894,41 @@ const H3 = z(
|
|
|
5881
5894
|
overflowType: s = "scrollable",
|
|
5882
5895
|
inverted: c = !1
|
|
5883
5896
|
}, i) => {
|
|
5884
|
-
const [a, d] = N(!1), [v, h] = N(!1), [u,
|
|
5897
|
+
const [a, d] = N(!1), [v, h] = N(!1), [u, p] = N(!1), [Z, L] = N(!1), [V, B] = N(!1), [F, S] = N(!1), w = K(null), m = J3(
|
|
5885
5898
|
w,
|
|
5886
5899
|
l,
|
|
5887
5900
|
t === "horizontal" ? "bottom" : "left"
|
|
5888
5901
|
), k = t === "horizontal" && (a || v) && s === "dropdown", _ = $(() => {
|
|
5889
5902
|
if (w.current) {
|
|
5890
|
-
const
|
|
5891
|
-
d(
|
|
5903
|
+
const H = w.current.offsetWidth < w.current.scrollWidth || w.current.offsetHeight < w.current.scrollHeight, M = w.current.scrollLeft > 0, I = w.current.scrollWidth - w.current.clientWidth - w.current.scrollLeft > 0, P = w.current.scrollTop > 0, U = w.current.scrollHeight - w.current.clientHeight - w.current.scrollTop > 0;
|
|
5904
|
+
d(M), h(I), L(P), p(U), B(H);
|
|
5892
5905
|
}
|
|
5893
5906
|
}, [w]);
|
|
5894
|
-
|
|
5895
|
-
var
|
|
5896
|
-
return _(), window.addEventListener("resize", _), (
|
|
5897
|
-
var
|
|
5898
|
-
window.removeEventListener("resize", _), (
|
|
5907
|
+
E(() => {
|
|
5908
|
+
var H;
|
|
5909
|
+
return _(), window.addEventListener("resize", _), (H = w.current) == null || H.addEventListener("scroll", _), () => {
|
|
5910
|
+
var M;
|
|
5911
|
+
window.removeEventListener("resize", _), (M = w.current) == null || M.removeEventListener("scroll", _);
|
|
5899
5912
|
};
|
|
5900
|
-
}, [_]),
|
|
5913
|
+
}, [_]), E(() => {
|
|
5901
5914
|
!l && C.length > 0 && e(C[0].id);
|
|
5902
5915
|
}, [l, C, e]);
|
|
5903
|
-
const y = (
|
|
5904
|
-
const
|
|
5905
|
-
e(I),
|
|
5906
|
-
const
|
|
5907
|
-
|
|
5916
|
+
const y = (H) => {
|
|
5917
|
+
const M = H.currentTarget, I = M.getAttribute("id") || "";
|
|
5918
|
+
e(I), S(!1);
|
|
5919
|
+
const P = w.current;
|
|
5920
|
+
P && Cr(M, P, t);
|
|
5908
5921
|
}, x = () => {
|
|
5909
5922
|
if (w.current) {
|
|
5910
|
-
const
|
|
5911
|
-
w.current.scrollBy({ ...
|
|
5923
|
+
const H = t === "horizontal" ? { left: -300 } : { top: -300 };
|
|
5924
|
+
w.current.scrollBy({ ...H, behavior: "smooth" });
|
|
5912
5925
|
}
|
|
5913
5926
|
}, f = () => {
|
|
5914
5927
|
if (w.current) {
|
|
5915
|
-
const
|
|
5916
|
-
w.current.scrollBy({ ...
|
|
5928
|
+
const H = t === "horizontal" ? { left: 300 } : { top: 300 };
|
|
5929
|
+
w.current.scrollBy({ ...H, behavior: "smooth" });
|
|
5917
5930
|
}
|
|
5918
|
-
}, O = C.find((
|
|
5931
|
+
}, O = C.find((H) => H.id === l);
|
|
5919
5932
|
return /* @__PURE__ */ g("div", { className: F1["tab-container"], "data-direction": t, children: [
|
|
5920
5933
|
/* @__PURE__ */ r(
|
|
5921
5934
|
"div",
|
|
@@ -5925,7 +5938,7 @@ const H3 = z(
|
|
|
5925
5938
|
role: "presentation",
|
|
5926
5939
|
"data-direction": t,
|
|
5927
5940
|
"data-compact-spacing": o,
|
|
5928
|
-
"data-scrollable":
|
|
5941
|
+
"data-scrollable": V && s === "scrollable" ? !0 : void 0
|
|
5929
5942
|
}
|
|
5930
5943
|
),
|
|
5931
5944
|
/* @__PURE__ */ g(
|
|
@@ -5938,7 +5951,7 @@ const H3 = z(
|
|
|
5938
5951
|
flexDirection: t === "horizontal" ? "row" : "column"
|
|
5939
5952
|
},
|
|
5940
5953
|
children: [
|
|
5941
|
-
|
|
5954
|
+
V && !k && /* @__PURE__ */ r(
|
|
5942
5955
|
d1,
|
|
5943
5956
|
{
|
|
5944
5957
|
name: t === "horizontal" ? "arrow-chevron-left" : "arrow-chevron-up",
|
|
@@ -5955,13 +5968,13 @@ const H3 = z(
|
|
|
5955
5968
|
/* @__PURE__ */ g(
|
|
5956
5969
|
"div",
|
|
5957
5970
|
{
|
|
5958
|
-
ref: (
|
|
5959
|
-
w.current =
|
|
5971
|
+
ref: (H) => {
|
|
5972
|
+
w.current = H, typeof i == "function" ? i(H) : i && (i.current = H);
|
|
5960
5973
|
},
|
|
5961
5974
|
role: "tablist",
|
|
5962
5975
|
"aria-label": "Sample Tabs",
|
|
5963
5976
|
className: F1.tab,
|
|
5964
|
-
"data-alignment":
|
|
5977
|
+
"data-alignment": V ? "start" : n,
|
|
5965
5978
|
"data-direction": t,
|
|
5966
5979
|
"data-overflow-type": s,
|
|
5967
5980
|
children: [
|
|
@@ -5982,18 +5995,18 @@ const H3 = z(
|
|
|
5982
5995
|
{
|
|
5983
5996
|
autoClose: !0,
|
|
5984
5997
|
dropdownId: "tab-dropdown",
|
|
5985
|
-
onClose: () =>
|
|
5998
|
+
onClose: () => S(!1),
|
|
5986
5999
|
offset: 10,
|
|
5987
6000
|
trigger: /* @__PURE__ */ g(
|
|
5988
6001
|
"button",
|
|
5989
6002
|
{
|
|
5990
6003
|
type: "button",
|
|
5991
6004
|
className: F1["tab-dropdown-button"],
|
|
5992
|
-
onClick: () =>
|
|
6005
|
+
onClick: () => S((H) => !H),
|
|
5993
6006
|
"aria-label": "Select tab",
|
|
5994
6007
|
"data-inverted": c,
|
|
5995
6008
|
children: [
|
|
5996
|
-
O && O.icon && /* @__PURE__ */ r(
|
|
6009
|
+
O && O.icon && /* @__PURE__ */ r(A, { name: O.icon, appearance: "filled" }),
|
|
5997
6010
|
O && /* @__PURE__ */ r("div", { style: { flexShrink: 0 }, children: O == null ? void 0 : O.label }),
|
|
5998
6011
|
O.badgeCount && O.badgeCount > 0 && O.badgeContent === "number" && /* @__PURE__ */ r(
|
|
5999
6012
|
C1,
|
|
@@ -6003,46 +6016,46 @@ const H3 = z(
|
|
|
6003
6016
|
count: O.badgeCount
|
|
6004
6017
|
}
|
|
6005
6018
|
),
|
|
6006
|
-
/* @__PURE__ */ r(
|
|
6019
|
+
/* @__PURE__ */ r(A, { style: { flexShrink: 0 }, name: "arrow-chevron-down" })
|
|
6007
6020
|
]
|
|
6008
6021
|
}
|
|
6009
6022
|
),
|
|
6010
6023
|
isOpen: F,
|
|
6011
|
-
children: C.filter((
|
|
6024
|
+
children: C.filter((H) => H.id !== l).map((H, M) => /* @__PURE__ */ r(
|
|
6012
6025
|
$1,
|
|
6013
6026
|
{
|
|
6014
|
-
id:
|
|
6015
|
-
label:
|
|
6027
|
+
id: H.id,
|
|
6028
|
+
label: H.label,
|
|
6016
6029
|
onClick: y,
|
|
6017
|
-
disabled:
|
|
6018
|
-
leftIcon:
|
|
6019
|
-
badgeCount:
|
|
6020
|
-
badgeContent:
|
|
6021
|
-
badgeIcon:
|
|
6022
|
-
badgeType:
|
|
6030
|
+
disabled: H.disabled,
|
|
6031
|
+
leftIcon: H.icon,
|
|
6032
|
+
badgeCount: H.badgeCount,
|
|
6033
|
+
badgeContent: H.badgeContent,
|
|
6034
|
+
badgeIcon: H.badgeIcon,
|
|
6035
|
+
badgeType: H.badgeType,
|
|
6023
6036
|
showBadge: !0
|
|
6024
6037
|
},
|
|
6025
|
-
`${
|
|
6038
|
+
`${H.id}-dropdown-${M}`
|
|
6026
6039
|
))
|
|
6027
6040
|
}
|
|
6028
6041
|
),
|
|
6029
|
-
C.map((
|
|
6042
|
+
C.map((H, M) => /* @__PURE__ */ r(
|
|
6030
6043
|
lr,
|
|
6031
6044
|
{
|
|
6032
6045
|
onClick: y,
|
|
6033
|
-
isSelected: l ===
|
|
6046
|
+
isSelected: l === H.id,
|
|
6034
6047
|
compactSpacing: o,
|
|
6035
6048
|
direction: t,
|
|
6036
6049
|
"data-hidden": k,
|
|
6037
6050
|
inverted: c,
|
|
6038
|
-
...
|
|
6051
|
+
...H
|
|
6039
6052
|
},
|
|
6040
|
-
`${
|
|
6053
|
+
`${H.id}-${M}`
|
|
6041
6054
|
))
|
|
6042
6055
|
]
|
|
6043
6056
|
}
|
|
6044
6057
|
),
|
|
6045
|
-
|
|
6058
|
+
V && !k && /* @__PURE__ */ r(
|
|
6046
6059
|
d1,
|
|
6047
6060
|
{
|
|
6048
6061
|
name: t === "horizontal" ? "arrow-chevron-right" : "arrow-chevron-down",
|
|
@@ -6067,7 +6080,7 @@ const H3 = z(
|
|
|
6067
6080
|
role: "presentation",
|
|
6068
6081
|
"data-direction": t,
|
|
6069
6082
|
"data-compact-spacing": o,
|
|
6070
|
-
"data-scrollable":
|
|
6083
|
+
"data-scrollable": V && s === "scrollable" ? !0 : void 0
|
|
6071
6084
|
}
|
|
6072
6085
|
)
|
|
6073
6086
|
] });
|
|
@@ -6092,18 +6105,18 @@ const H3 = z(
|
|
|
6092
6105
|
"data-compact-spacing": n,
|
|
6093
6106
|
...c,
|
|
6094
6107
|
children: [
|
|
6095
|
-
s && I1(s) && (C === "status" || o) && /* @__PURE__ */ r(
|
|
6108
|
+
s && I1(s) && (C === "status" || o) && /* @__PURE__ */ r(A, { name: s, size: 16 }),
|
|
6096
6109
|
l && /* @__PURE__ */ r("label", { className: F3["tag-label"], "data-compact-spacing": n, children: l })
|
|
6097
6110
|
]
|
|
6098
6111
|
}
|
|
6099
6112
|
))
|
|
6100
|
-
), ir = "
|
|
6113
|
+
), ir = "_container_16ne6_1", cr = "_textarea_16ne6_44", ar = "_label_16ne6_137", p1 = {
|
|
6101
6114
|
container: ir,
|
|
6102
|
-
"top-position-container": "_top-position-
|
|
6103
|
-
"header-container": "_header-
|
|
6104
|
-
"textarea-container": "_textarea-
|
|
6115
|
+
"top-position-container": "_top-position-container_16ne6_9",
|
|
6116
|
+
"header-container": "_header-container_16ne6_30",
|
|
6117
|
+
"textarea-container": "_textarea-container_16ne6_44",
|
|
6105
6118
|
textarea: cr,
|
|
6106
|
-
"character-counter": "_character-
|
|
6119
|
+
"character-counter": "_character-counter_16ne6_126",
|
|
6107
6120
|
label: ar
|
|
6108
6121
|
}, Kr = z(
|
|
6109
6122
|
({
|
|
@@ -6121,14 +6134,14 @@ const H3 = z(
|
|
|
6121
6134
|
["aria-labelledby"]: v,
|
|
6122
6135
|
assistiveTextLink: h,
|
|
6123
6136
|
showLabelRequirement: u = !1,
|
|
6124
|
-
resizeable:
|
|
6137
|
+
resizeable: p = "true",
|
|
6125
6138
|
maxLength: Z,
|
|
6126
6139
|
defaultValue: L,
|
|
6127
|
-
showCounter:
|
|
6128
|
-
value:
|
|
6140
|
+
showCounter: V,
|
|
6141
|
+
value: B,
|
|
6129
6142
|
...F
|
|
6130
|
-
},
|
|
6131
|
-
const [w, m] = N((
|
|
6143
|
+
}, S) => {
|
|
6144
|
+
const [w, m] = N((B == null ? void 0 : B.length) || (L == null ? void 0 : L.length) || 0), b = K(null), k = V && Z, _ = (x) => {
|
|
6132
6145
|
var f;
|
|
6133
6146
|
o && o(x), (f = b.current) == null || f.scrollTo({ top: 0 });
|
|
6134
6147
|
}, y = (x) => {
|
|
@@ -6156,19 +6169,19 @@ const H3 = z(
|
|
|
6156
6169
|
"textarea",
|
|
6157
6170
|
{
|
|
6158
6171
|
ref: (x) => {
|
|
6159
|
-
b.current = x, typeof
|
|
6172
|
+
b.current = x, typeof S == "function" ? S(x) : S && (S.current = x);
|
|
6160
6173
|
},
|
|
6161
6174
|
id: e,
|
|
6162
6175
|
name: t,
|
|
6163
6176
|
className: R(p1.textarea, C),
|
|
6164
|
-
"data-resizeable":
|
|
6177
|
+
"data-resizeable": p,
|
|
6165
6178
|
"data-assistive-text-appearance": d,
|
|
6166
6179
|
onChange: y,
|
|
6167
6180
|
"aria-labelledby": c || v,
|
|
6168
6181
|
maxLength: Z,
|
|
6169
6182
|
onBlur: _,
|
|
6170
6183
|
defaultValue: L,
|
|
6171
|
-
value:
|
|
6184
|
+
value: B,
|
|
6172
6185
|
...F
|
|
6173
6186
|
}
|
|
6174
6187
|
),
|
|
@@ -6223,7 +6236,7 @@ const l6 = A3(null), s6 = () => {
|
|
|
6223
6236
|
}, []), i = () => {
|
|
6224
6237
|
n(!0);
|
|
6225
6238
|
};
|
|
6226
|
-
return
|
|
6239
|
+
return E(() => {
|
|
6227
6240
|
s.length > 0 && (l(C) ? i() : o(C) && c());
|
|
6228
6241
|
}, [s.length, l, o, c, C]), { isInternalOpen: t, hideToast: c, showToast: i };
|
|
6229
6242
|
}, pr = 3e3, Hr = 5e3, Vr = 8e3, Lr = {
|
|
@@ -6238,7 +6251,7 @@ const l6 = A3(null), s6 = () => {
|
|
|
6238
6251
|
}, [e, t]), o = $(() => {
|
|
6239
6252
|
n.current && (clearTimeout(n.current), n.current = null);
|
|
6240
6253
|
}, []);
|
|
6241
|
-
return
|
|
6254
|
+
return E(() => (C && (o(), l()), () => {
|
|
6242
6255
|
o();
|
|
6243
6256
|
}), [l, o, C]), { initializeTimer: l, removeTimer: o };
|
|
6244
6257
|
}, Zr = "_toast_ara8a_1", T1 = {
|
|
@@ -6262,54 +6275,54 @@ const l6 = A3(null), s6 = () => {
|
|
|
6262
6275
|
iconName: v,
|
|
6263
6276
|
showLeftIcon: h = !0,
|
|
6264
6277
|
showActionButton: u = !0,
|
|
6265
|
-
...
|
|
6278
|
+
...p
|
|
6266
6279
|
}, Z) => {
|
|
6267
|
-
const L = !!c && u,
|
|
6268
|
-
{ shouldStartTimer:
|
|
6280
|
+
const L = !!c && u, V = s && !L, [B] = N(C || vr()), { isInternalOpen: F, hideToast: S } = hr(B, o), { addToQueue: w, removeFromQueue: m } = s6(), { shouldRender: b, isAnimating: k } = D1(F, 300), { initializeTimer: _, removeTimer: y } = Mr(
|
|
6281
|
+
{ shouldStartTimer: V && F, duration: a },
|
|
6269
6282
|
() => {
|
|
6270
6283
|
O();
|
|
6271
6284
|
}
|
|
6272
6285
|
), [x, f] = l.split("-"), O = $(() => {
|
|
6273
|
-
|
|
6274
|
-
}, [
|
|
6275
|
-
|
|
6276
|
-
o ? w({ id:
|
|
6277
|
-
}, [o, L, t,
|
|
6278
|
-
const
|
|
6286
|
+
S(), y(), m(B), d == null || d();
|
|
6287
|
+
}, [S, y, m, B, d]);
|
|
6288
|
+
E(() => {
|
|
6289
|
+
o ? w({ id: B, hasActionButton: L, type: t }) : O();
|
|
6290
|
+
}, [o, L, t, V, B, w, O]);
|
|
6291
|
+
const H = () => {
|
|
6279
6292
|
O();
|
|
6280
|
-
},
|
|
6281
|
-
q.stopPropagation(),
|
|
6293
|
+
}, M = (q) => {
|
|
6294
|
+
q.stopPropagation(), V && o && y();
|
|
6282
6295
|
}, I = (q) => {
|
|
6283
|
-
q.stopPropagation(),
|
|
6284
|
-
},
|
|
6296
|
+
q.stopPropagation(), V && _();
|
|
6297
|
+
}, P = h && t !== "neutral", U = h && v && I1(v);
|
|
6285
6298
|
return b && /* @__PURE__ */ r(G1, { children: /* @__PURE__ */ g(
|
|
6286
6299
|
"div",
|
|
6287
6300
|
{
|
|
6288
6301
|
role: "status",
|
|
6289
|
-
className: R(T1.toast,
|
|
6302
|
+
className: R(T1.toast, p.className),
|
|
6290
6303
|
"data-type": t,
|
|
6291
6304
|
"data-position": x,
|
|
6292
6305
|
"data-alignment": f,
|
|
6293
6306
|
"data-open": k || void 0,
|
|
6294
6307
|
ref: Z,
|
|
6295
|
-
onMouseOver:
|
|
6308
|
+
onMouseOver: M,
|
|
6296
6309
|
onMouseOut: I,
|
|
6297
|
-
...
|
|
6310
|
+
...p,
|
|
6298
6311
|
children: [
|
|
6299
6312
|
/* @__PURE__ */ g("div", { className: T1["toast-content"], children: [
|
|
6300
|
-
|
|
6301
|
-
|
|
6313
|
+
P ? /* @__PURE__ */ r(
|
|
6314
|
+
A,
|
|
6302
6315
|
{
|
|
6303
6316
|
name: d6[t],
|
|
6304
6317
|
size: H1.xl,
|
|
6305
6318
|
className: T1["toast-icon"],
|
|
6306
6319
|
"aria-hidden": "true"
|
|
6307
6320
|
}
|
|
6308
|
-
) : U && /* @__PURE__ */ r(
|
|
6321
|
+
) : U && /* @__PURE__ */ r(A, { name: v, size: H1.xl, className: T1["toast-icon"], "aria-hidden": "true" }),
|
|
6309
6322
|
/* @__PURE__ */ r("span", { className: T1["toast-message"], children: e })
|
|
6310
6323
|
] }),
|
|
6311
6324
|
L && /* @__PURE__ */ r(
|
|
6312
|
-
|
|
6325
|
+
C3,
|
|
6313
6326
|
{
|
|
6314
6327
|
variant: t === "neutral" ? "reverse" : "transparent",
|
|
6315
6328
|
onClick: i,
|
|
@@ -6322,7 +6335,7 @@ const l6 = A3(null), s6 = () => {
|
|
|
6322
6335
|
"data-testid": "toast-close-button",
|
|
6323
6336
|
name: "close",
|
|
6324
6337
|
variant: t === "neutral" ? "reverse" : "neutral",
|
|
6325
|
-
onClick:
|
|
6338
|
+
onClick: H
|
|
6326
6339
|
}
|
|
6327
6340
|
)
|
|
6328
6341
|
]
|
|
@@ -6371,14 +6384,14 @@ export {
|
|
|
6371
6384
|
Sr as Banner,
|
|
6372
6385
|
Ln as BaseSideNav,
|
|
6373
6386
|
br as Breadcrumbs,
|
|
6374
|
-
|
|
6387
|
+
C3 as Button,
|
|
6375
6388
|
_r as Card,
|
|
6376
6389
|
je as Checkbox,
|
|
6377
6390
|
yr as CheckboxGroup,
|
|
6378
6391
|
Or as Chip,
|
|
6379
6392
|
a1 as Divider,
|
|
6380
6393
|
rt as Grid,
|
|
6381
|
-
|
|
6394
|
+
A as Icon,
|
|
6382
6395
|
d1 as IconButton,
|
|
6383
6396
|
Nr as IconButtonToggle,
|
|
6384
6397
|
v3 as Link,
|