@stenajs-webui/elements 19.0.0-next.63 → 19.0.0-next.64
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/index.es.js +127 -126
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.es.js
CHANGED
|
@@ -3000,8 +3000,8 @@ const J1 = (n) => /* @__PURE__ */ b.createElement("svg", { xmlns: "http://www.w3
|
|
|
3000
3000
|
color: L = "var(--swui-text-primary-color)",
|
|
3001
3001
|
flip: i,
|
|
3002
3002
|
icon: o,
|
|
3003
|
-
pulse:
|
|
3004
|
-
rotation:
|
|
3003
|
+
pulse: t,
|
|
3004
|
+
rotation: a,
|
|
3005
3005
|
size: c = 16,
|
|
3006
3006
|
spin: s,
|
|
3007
3007
|
style: l,
|
|
@@ -3026,8 +3026,8 @@ const J1 = (n) => /* @__PURE__ */ b.createElement("svg", { xmlns: "http://www.w3
|
|
|
3026
3026
|
color: L,
|
|
3027
3027
|
flip: i,
|
|
3028
3028
|
icon: o,
|
|
3029
|
-
pulse:
|
|
3030
|
-
rotation:
|
|
3029
|
+
pulse: t,
|
|
3030
|
+
rotation: a,
|
|
3031
3031
|
spin: s,
|
|
3032
3032
|
style: { fontSize: h, ...l },
|
|
3033
3033
|
transform: d,
|
|
@@ -3082,22 +3082,22 @@ const J1 = (n) => /* @__PURE__ */ b.createElement("svg", { xmlns: "http://www.w3
|
|
|
3082
3082
|
children: L,
|
|
3083
3083
|
contentRight: i,
|
|
3084
3084
|
icon: o,
|
|
3085
|
-
variant:
|
|
3086
|
-
loading:
|
|
3085
|
+
variant: t = "standard",
|
|
3086
|
+
loading: a = !1,
|
|
3087
3087
|
...c
|
|
3088
3088
|
}) => /* @__PURE__ */ m(
|
|
3089
3089
|
N,
|
|
3090
3090
|
{
|
|
3091
|
-
className: r(K.banner, K[
|
|
3091
|
+
className: r(K.banner, K[t]),
|
|
3092
3092
|
spacing: L || n && C ? 2 : 1,
|
|
3093
3093
|
indent: 2,
|
|
3094
3094
|
...V(c),
|
|
3095
3095
|
children: [
|
|
3096
3096
|
/* @__PURE__ */ m(Z, { justifyContent: "space-between", children: [
|
|
3097
|
-
/* @__PURE__ */ e(Z, { flex: "none", width: b1, alignItems: "center", children: /* @__PURE__ */ e("div", { className: K.iconBackground, children: (o || g1[
|
|
3097
|
+
/* @__PURE__ */ e(Z, { flex: "none", width: b1, alignItems: "center", children: /* @__PURE__ */ e("div", { className: K.iconBackground, children: (o || g1[t] || a) && /* @__PURE__ */ e(S, { children: a ? /* @__PURE__ */ e(D1, { size: "tiny" }) : /* @__PURE__ */ e(
|
|
3098
3098
|
g,
|
|
3099
3099
|
{
|
|
3100
|
-
icon: o != null ? o : g1[
|
|
3100
|
+
icon: o != null ? o : g1[t],
|
|
3101
3101
|
size: 20,
|
|
3102
3102
|
className: K.icon
|
|
3103
3103
|
}
|
|
@@ -3137,8 +3137,8 @@ const J1 = (n) => /* @__PURE__ */ b.createElement("svg", { xmlns: "http://www.w3
|
|
|
3137
3137
|
onClick: L,
|
|
3138
3138
|
tabIndex: i = 0,
|
|
3139
3139
|
disableTabIndex: o,
|
|
3140
|
-
disabled:
|
|
3141
|
-
variant:
|
|
3140
|
+
disabled: t,
|
|
3141
|
+
variant: a = "standard",
|
|
3142
3142
|
size: c = "medium",
|
|
3143
3143
|
iconLeft: s,
|
|
3144
3144
|
iconRight: l,
|
|
@@ -3150,14 +3150,14 @@ const J1 = (n) => /* @__PURE__ */ b.createElement("svg", { xmlns: "http://www.w3
|
|
|
3150
3150
|
tabIndex: o ? void 0 : i,
|
|
3151
3151
|
className: r(
|
|
3152
3152
|
Q.link,
|
|
3153
|
-
Q[
|
|
3153
|
+
Q[a],
|
|
3154
3154
|
Q[c],
|
|
3155
|
-
|
|
3155
|
+
t && Q.disabled,
|
|
3156
3156
|
C
|
|
3157
3157
|
),
|
|
3158
3158
|
ref: x,
|
|
3159
|
-
href:
|
|
3160
|
-
onClick:
|
|
3159
|
+
href: t ? void 0 : d,
|
|
3160
|
+
onClick: t ? void 0 : L,
|
|
3161
3161
|
...M,
|
|
3162
3162
|
children: [
|
|
3163
3163
|
s && /* @__PURE__ */ e("span", { style: { marginLeft: "2px", marginRight: "6px" }, children: /* @__PURE__ */ e(W, { icon: s }) }),
|
|
@@ -3191,33 +3191,33 @@ const J1 = (n) => /* @__PURE__ */ b.createElement("svg", { xmlns: "http://www.w3
|
|
|
3191
3191
|
text: n.text,
|
|
3192
3192
|
variant: C,
|
|
3193
3193
|
children: [
|
|
3194
|
-
n.items && /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(P2, { children: n.items.map((o,
|
|
3194
|
+
n.items && /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(P2, { children: n.items.map((o, t) => /* @__PURE__ */ e(
|
|
3195
3195
|
E2,
|
|
3196
3196
|
{
|
|
3197
3197
|
text: o.text,
|
|
3198
3198
|
linkText: o.linkText,
|
|
3199
3199
|
onClickLink: o.onClickLink
|
|
3200
3200
|
},
|
|
3201
|
-
|
|
3201
|
+
t
|
|
3202
3202
|
)) }) }),
|
|
3203
3203
|
L
|
|
3204
3204
|
]
|
|
3205
3205
|
}
|
|
3206
3206
|
), Z0 = (n) => {
|
|
3207
3207
|
const [C, L] = m1(n), i = F(
|
|
3208
|
-
(
|
|
3208
|
+
(a) => {
|
|
3209
3209
|
L((c) => ({
|
|
3210
3210
|
...c,
|
|
3211
|
-
items:
|
|
3211
|
+
items: a.map((s) => ({ text: s }))
|
|
3212
3212
|
}));
|
|
3213
3213
|
},
|
|
3214
3214
|
[L]
|
|
3215
3215
|
), o = F(
|
|
3216
|
-
(
|
|
3217
|
-
i(
|
|
3216
|
+
(a) => {
|
|
3217
|
+
i(a.map((c) => c.message));
|
|
3218
3218
|
},
|
|
3219
3219
|
[i]
|
|
3220
|
-
),
|
|
3220
|
+
), t = F(() => {
|
|
3221
3221
|
L(void 0);
|
|
3222
3222
|
}, [L]);
|
|
3223
3223
|
return {
|
|
@@ -3225,7 +3225,7 @@ const J1 = (n) => /* @__PURE__ */ b.createElement("svg", { xmlns: "http://www.w3
|
|
|
3225
3225
|
setBannerState: L,
|
|
3226
3226
|
setBannerResultWithTexts: i,
|
|
3227
3227
|
setBannerResultWithErrors: o,
|
|
3228
|
-
clearBannerResult:
|
|
3228
|
+
clearBannerResult: t
|
|
3229
3229
|
};
|
|
3230
3230
|
}, V2 = (n) => /* @__PURE__ */ b.createElement("svg", { viewBox: "0 0 1024 1024", focusable: "false", "data-icon": "loading", width: "1em", height: "1em", fill: "currentColor", "aria-hidden": "true", ...n }, /* @__PURE__ */ b.createElement("path", { d: "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" })), U2 = K1`
|
|
3231
3231
|
100% {
|
|
@@ -3289,8 +3289,8 @@ const J1 = (n) => /* @__PURE__ */ b.createElement("svg", { xmlns: "http://www.w3
|
|
|
3289
3289
|
leftIcon: L,
|
|
3290
3290
|
left: i,
|
|
3291
3291
|
right: o,
|
|
3292
|
-
rightIcon:
|
|
3293
|
-
label:
|
|
3292
|
+
rightIcon: t,
|
|
3293
|
+
label: a,
|
|
3294
3294
|
iconClassName: c,
|
|
3295
3295
|
labelClassName: s,
|
|
3296
3296
|
spinnerClassName: l,
|
|
@@ -3328,7 +3328,7 @@ const J1 = (n) => /* @__PURE__ */ b.createElement("svg", { xmlns: "http://www.w3
|
|
|
3328
3328
|
}
|
|
3329
3329
|
) : null)
|
|
3330
3330
|
}
|
|
3331
|
-
), y = (o ||
|
|
3331
|
+
), y = (o || t) && /* @__PURE__ */ e(
|
|
3332
3332
|
"div",
|
|
3333
3333
|
{
|
|
3334
3334
|
className: r(
|
|
@@ -3337,10 +3337,10 @@ const J1 = (n) => /* @__PURE__ */ b.createElement("svg", { xmlns: "http://www.w3
|
|
|
3337
3337
|
M,
|
|
3338
3338
|
f && B.responsiveIconOnly
|
|
3339
3339
|
),
|
|
3340
|
-
children: o || (
|
|
3340
|
+
children: o || (t ? /* @__PURE__ */ e(
|
|
3341
3341
|
W,
|
|
3342
3342
|
{
|
|
3343
|
-
icon:
|
|
3343
|
+
icon: t,
|
|
3344
3344
|
className: r(B.iconRight, c)
|
|
3345
3345
|
}
|
|
3346
3346
|
) : null)
|
|
@@ -3348,8 +3348,8 @@ const J1 = (n) => /* @__PURE__ */ b.createElement("svg", { xmlns: "http://www.w3
|
|
|
3348
3348
|
);
|
|
3349
3349
|
return /* @__PURE__ */ m("div", { className: B.buttonContent, children: [
|
|
3350
3350
|
h,
|
|
3351
|
-
|
|
3352
|
-
|
|
3351
|
+
a ? /* @__PURE__ */ e(P, {}) : null,
|
|
3352
|
+
a && /* @__PURE__ */ e(
|
|
3353
3353
|
"span",
|
|
3354
3354
|
{
|
|
3355
3355
|
className: r(
|
|
@@ -3357,10 +3357,10 @@ const J1 = (n) => /* @__PURE__ */ b.createElement("svg", { xmlns: "http://www.w3
|
|
|
3357
3357
|
s,
|
|
3358
3358
|
f && B.responsiveIconOnly
|
|
3359
3359
|
),
|
|
3360
|
-
children:
|
|
3360
|
+
children: a
|
|
3361
3361
|
}
|
|
3362
3362
|
),
|
|
3363
|
-
|
|
3363
|
+
a ? /* @__PURE__ */ e(P, {}) : null,
|
|
3364
3364
|
y
|
|
3365
3365
|
] });
|
|
3366
3366
|
}, f1 = p(
|
|
@@ -3369,8 +3369,8 @@ const J1 = (n) => /* @__PURE__ */ b.createElement("svg", { xmlns: "http://www.w3
|
|
|
3369
3369
|
className: L,
|
|
3370
3370
|
size: i = "medium",
|
|
3371
3371
|
loadingLabel: o,
|
|
3372
|
-
loading:
|
|
3373
|
-
success:
|
|
3372
|
+
loading: t = !1,
|
|
3373
|
+
success: a = !1,
|
|
3374
3374
|
successLabel: c,
|
|
3375
3375
|
leftIcon: s,
|
|
3376
3376
|
left: l,
|
|
@@ -3390,18 +3390,18 @@ const J1 = (n) => /* @__PURE__ */ b.createElement("svg", { xmlns: "http://www.w3
|
|
|
3390
3390
|
}, O) {
|
|
3391
3391
|
const D = u1(
|
|
3392
3392
|
C,
|
|
3393
|
-
t,
|
|
3394
|
-
c,
|
|
3395
3393
|
a,
|
|
3394
|
+
c,
|
|
3395
|
+
t,
|
|
3396
3396
|
o
|
|
3397
3397
|
), N1 = Boolean(
|
|
3398
|
-
C && !
|
|
3399
|
-
), E1 = A || s && !N1 && !l && !M && !d || d && !N1 && !l && !M && !s ||
|
|
3398
|
+
C && !a && !t || a && c || t && o
|
|
3399
|
+
), E1 = A || s && !N1 && !l && !M && !d || d && !N1 && !l && !M && !s || t && !o || a && !c;
|
|
3400
3400
|
return /* @__PURE__ */ e(
|
|
3401
3401
|
"button",
|
|
3402
3402
|
{
|
|
3403
3403
|
ref: O,
|
|
3404
|
-
onClick: f ||
|
|
3404
|
+
onClick: f || a || t ? void 0 : h,
|
|
3405
3405
|
className: r(
|
|
3406
3406
|
j.button,
|
|
3407
3407
|
j[i],
|
|
@@ -3413,8 +3413,8 @@ const J1 = (n) => /* @__PURE__ */ b.createElement("svg", { xmlns: "http://www.w3
|
|
|
3413
3413
|
children: /* @__PURE__ */ e(
|
|
3414
3414
|
Z1,
|
|
3415
3415
|
{
|
|
3416
|
-
success:
|
|
3417
|
-
loading:
|
|
3416
|
+
success: a,
|
|
3417
|
+
loading: t,
|
|
3418
3418
|
leftIcon: s,
|
|
3419
3419
|
left: l,
|
|
3420
3420
|
right: M,
|
|
@@ -3511,17 +3511,17 @@ const J1 = (n) => /* @__PURE__ */ b.createElement("svg", { xmlns: "http://www.w3
|
|
|
3511
3511
|
icon: L = y5[C],
|
|
3512
3512
|
className: i,
|
|
3513
3513
|
spin: o = !1,
|
|
3514
|
-
size:
|
|
3515
|
-
...
|
|
3514
|
+
size: t = "medium",
|
|
3515
|
+
...a
|
|
3516
3516
|
}, c) {
|
|
3517
3517
|
return /* @__PURE__ */ e(
|
|
3518
3518
|
"button",
|
|
3519
3519
|
{
|
|
3520
|
-
...
|
|
3520
|
+
...a,
|
|
3521
3521
|
ref: c,
|
|
3522
3522
|
className: r(
|
|
3523
3523
|
o1.textInputButton,
|
|
3524
|
-
j[
|
|
3524
|
+
j[t],
|
|
3525
3525
|
o1[C],
|
|
3526
3526
|
i
|
|
3527
3527
|
),
|
|
@@ -3591,8 +3591,8 @@ const E5 = p(
|
|
|
3591
3591
|
expandable: L,
|
|
3592
3592
|
selected: i,
|
|
3593
3593
|
className: o,
|
|
3594
|
-
leftIcon:
|
|
3595
|
-
rightIcon:
|
|
3594
|
+
leftIcon: t,
|
|
3595
|
+
rightIcon: a,
|
|
3596
3596
|
children: c,
|
|
3597
3597
|
disabled: s,
|
|
3598
3598
|
variant: l = "standard",
|
|
@@ -3630,10 +3630,10 @@ const E5 = p(
|
|
|
3630
3630
|
p1,
|
|
3631
3631
|
{
|
|
3632
3632
|
label: n,
|
|
3633
|
-
leftIcon:
|
|
3633
|
+
leftIcon: t,
|
|
3634
3634
|
left: d,
|
|
3635
3635
|
right: f ? /* @__PURE__ */ e(T1, {}) : M,
|
|
3636
|
-
rightIcon: x ? G :
|
|
3636
|
+
rightIcon: x ? G : a
|
|
3637
3637
|
}
|
|
3638
3638
|
),
|
|
3639
3639
|
L && /* @__PURE__ */ e(
|
|
@@ -3657,7 +3657,7 @@ const E5 = p(
|
|
|
3657
3657
|
}
|
|
3658
3658
|
), W5 = "_contentMenuButton_c906v_1", H5 = {
|
|
3659
3659
|
contentMenuButton: W5
|
|
3660
|
-
}, z0 = p(({ children: n, ...C }, L) => /* @__PURE__ */ e("label", { className: H5.contentMenuButton, ref: L, ...C, children: /* @__PURE__ */ e(Z, { justifyContent: "flex-start", alignItems: "center", indent: 2, children: n }) })), g0 = p(function({ selected: n, className: C, icon: L, disabled: i, variant: o = "standard", ...
|
|
3660
|
+
}, z0 = p(({ children: n, ...C }, L) => /* @__PURE__ */ e("label", { className: H5.contentMenuButton, ref: L, ...C, children: /* @__PURE__ */ e(Z, { justifyContent: "flex-start", alignItems: "center", indent: 2, children: n }) })), g0 = p(function({ selected: n, className: C, icon: L, disabled: i, variant: o = "standard", ...t }, a) {
|
|
3661
3661
|
return /* @__PURE__ */ e(
|
|
3662
3662
|
_,
|
|
3663
3663
|
{
|
|
@@ -3672,12 +3672,13 @@ const E5 = p(
|
|
|
3672
3672
|
u.button,
|
|
3673
3673
|
n && u.selected,
|
|
3674
3674
|
i && u.disabled,
|
|
3675
|
+
u.iconOnly,
|
|
3675
3676
|
u[o],
|
|
3676
3677
|
C
|
|
3677
3678
|
),
|
|
3678
3679
|
disabled: i,
|
|
3679
|
-
ref:
|
|
3680
|
-
...
|
|
3680
|
+
ref: a,
|
|
3681
|
+
...t,
|
|
3681
3682
|
children: /* @__PURE__ */ e(Z, { justifyContent: "center", alignItems: "center", indent: 1, children: /* @__PURE__ */ e(_, { alignItems: "center", justifyContent: "center", width: "20px", children: /* @__PURE__ */ e(
|
|
3682
3683
|
g,
|
|
3683
3684
|
{
|
|
@@ -3697,8 +3698,8 @@ const E5 = p(
|
|
|
3697
3698
|
leftIcon: L,
|
|
3698
3699
|
children: i,
|
|
3699
3700
|
disabled: o,
|
|
3700
|
-
variant:
|
|
3701
|
-
href:
|
|
3701
|
+
variant: t = "standard",
|
|
3702
|
+
href: a,
|
|
3702
3703
|
...c
|
|
3703
3704
|
}, s) {
|
|
3704
3705
|
var w, E;
|
|
@@ -3708,14 +3709,14 @@ const E5 = p(
|
|
|
3708
3709
|
n ? u.hasLabel : void 0,
|
|
3709
3710
|
o && u.disabled,
|
|
3710
3711
|
(M == null ? void 0 : M.selected) && u.selected,
|
|
3711
|
-
u[
|
|
3712
|
+
u[t],
|
|
3712
3713
|
C
|
|
3713
3714
|
), { renderLink: f, selected: h, ...y } = c, v = (E = (w = d == null ? void 0 : d.renderLink) == null ? void 0 : w.call(
|
|
3714
3715
|
d,
|
|
3715
3716
|
{
|
|
3716
3717
|
...y,
|
|
3717
3718
|
className: x,
|
|
3718
|
-
href: o ? void 0 :
|
|
3719
|
+
href: o ? void 0 : a,
|
|
3719
3720
|
children: l
|
|
3720
3721
|
},
|
|
3721
3722
|
u.selected
|
|
@@ -3723,7 +3724,7 @@ const E5 = p(
|
|
|
3723
3724
|
"a",
|
|
3724
3725
|
{
|
|
3725
3726
|
className: x,
|
|
3726
|
-
href: o ? void 0 :
|
|
3727
|
+
href: o ? void 0 : a,
|
|
3727
3728
|
ref: s,
|
|
3728
3729
|
...y,
|
|
3729
3730
|
children: l
|
|
@@ -3736,8 +3737,8 @@ const E5 = p(
|
|
|
3736
3737
|
children: L,
|
|
3737
3738
|
disabled: i,
|
|
3738
3739
|
variant: o = "standard",
|
|
3739
|
-
href:
|
|
3740
|
-
...
|
|
3740
|
+
href: t,
|
|
3741
|
+
...a
|
|
3741
3742
|
}, c) {
|
|
3742
3743
|
var v, w;
|
|
3743
3744
|
const s = /* @__PURE__ */ e(Z, { justifyContent: "center", indent: 1, children: /* @__PURE__ */ e(_, { alignItems: "center", justifyContent: "center", width: "20px", children: /* @__PURE__ */ e(
|
|
@@ -3748,7 +3749,7 @@ const E5 = p(
|
|
|
3748
3749
|
color: "var(--current-text-color)",
|
|
3749
3750
|
"data-hover": !0
|
|
3750
3751
|
}
|
|
3751
|
-
) }) }), l = "renderLink" in
|
|
3752
|
+
) }) }), l = "renderLink" in a ? a : void 0, d = "selected" in a ? a : void 0, M = r(
|
|
3752
3753
|
u.button,
|
|
3753
3754
|
u.buttonLink,
|
|
3754
3755
|
i && u.disabled,
|
|
@@ -3756,12 +3757,12 @@ const E5 = p(
|
|
|
3756
3757
|
u.iconOnly,
|
|
3757
3758
|
u[o],
|
|
3758
3759
|
n
|
|
3759
|
-
), { renderLink: x, selected: f, ...h } =
|
|
3760
|
+
), { renderLink: x, selected: f, ...h } = a, y = (w = (v = l == null ? void 0 : l.renderLink) == null ? void 0 : v.call(
|
|
3760
3761
|
l,
|
|
3761
3762
|
{
|
|
3762
3763
|
...h,
|
|
3763
3764
|
className: M,
|
|
3764
|
-
href: i ? void 0 :
|
|
3765
|
+
href: i ? void 0 : t,
|
|
3765
3766
|
children: s
|
|
3766
3767
|
},
|
|
3767
3768
|
u.selected
|
|
@@ -3769,7 +3770,7 @@ const E5 = p(
|
|
|
3769
3770
|
"a",
|
|
3770
3771
|
{
|
|
3771
3772
|
className: M,
|
|
3772
|
-
href: i ? void 0 :
|
|
3773
|
+
href: i ? void 0 : t,
|
|
3773
3774
|
ref: c,
|
|
3774
3775
|
...h,
|
|
3775
3776
|
children: s
|
|
@@ -3793,8 +3794,8 @@ const E5 = p(
|
|
|
3793
3794
|
className: L,
|
|
3794
3795
|
size: i = "medium",
|
|
3795
3796
|
loadingLabel: o,
|
|
3796
|
-
loading:
|
|
3797
|
-
success:
|
|
3797
|
+
loading: t = !1,
|
|
3798
|
+
success: a = !1,
|
|
3798
3799
|
successLabel: c,
|
|
3799
3800
|
leftIcon: s,
|
|
3800
3801
|
left: l,
|
|
@@ -3806,12 +3807,12 @@ const E5 = p(
|
|
|
3806
3807
|
}, y) {
|
|
3807
3808
|
const v = u1(
|
|
3808
3809
|
C,
|
|
3809
|
-
t,
|
|
3810
|
-
c,
|
|
3811
3810
|
a,
|
|
3811
|
+
c,
|
|
3812
|
+
t,
|
|
3812
3813
|
o
|
|
3813
3814
|
), w = Boolean(
|
|
3814
|
-
C && !
|
|
3815
|
+
C && !a && !t || a && c || t && o
|
|
3815
3816
|
), E = w && !l && !s && !M && !d, H = s && !w && !l && !M && !d;
|
|
3816
3817
|
return /* @__PURE__ */ e(
|
|
3817
3818
|
"a",
|
|
@@ -3829,8 +3830,8 @@ const E5 = p(
|
|
|
3829
3830
|
children: /* @__PURE__ */ e(
|
|
3830
3831
|
Z1,
|
|
3831
3832
|
{
|
|
3832
|
-
success:
|
|
3833
|
-
loading:
|
|
3833
|
+
success: a,
|
|
3834
|
+
loading: t,
|
|
3834
3835
|
leftIcon: s,
|
|
3835
3836
|
left: l,
|
|
3836
3837
|
right: M,
|
|
@@ -3907,7 +3908,7 @@ const E5 = p(
|
|
|
3907
3908
|
size: L = "medium",
|
|
3908
3909
|
...i
|
|
3909
3910
|
}) => {
|
|
3910
|
-
const o = q5(L),
|
|
3911
|
+
const o = q5(L), t = J5(L);
|
|
3911
3912
|
return /* @__PURE__ */ e(
|
|
3912
3913
|
_,
|
|
3913
3914
|
{
|
|
@@ -3917,7 +3918,7 @@ const E5 = p(
|
|
|
3917
3918
|
height: o,
|
|
3918
3919
|
justifyContent: "center",
|
|
3919
3920
|
alignItems: "center",
|
|
3920
|
-
children: /* @__PURE__ */ e(g, { ...i, color: z(C), size:
|
|
3921
|
+
children: /* @__PURE__ */ e(g, { ...i, color: z(C), size: t })
|
|
3921
3922
|
}
|
|
3922
3923
|
);
|
|
3923
3924
|
}, q5 = (n) => {
|
|
@@ -3959,8 +3960,8 @@ const E5 = p(
|
|
|
3959
3960
|
leftIcon: L,
|
|
3960
3961
|
contentAfterHeading: i,
|
|
3961
3962
|
contentRight: o,
|
|
3962
|
-
contentLeft:
|
|
3963
|
-
contentCenter:
|
|
3963
|
+
contentLeft: t,
|
|
3964
|
+
contentCenter: a,
|
|
3964
3965
|
headingLevel: c = "h2",
|
|
3965
3966
|
...s
|
|
3966
3967
|
}) => /* @__PURE__ */ m(
|
|
@@ -3972,12 +3973,12 @@ const E5 = p(
|
|
|
3972
3973
|
...s,
|
|
3973
3974
|
children: [
|
|
3974
3975
|
/* @__PURE__ */ m(Z, { alignItems: "center", gap: C === "compact" ? 1 : 2, children: [
|
|
3975
|
-
|
|
3976
|
+
t,
|
|
3976
3977
|
L && /* @__PURE__ */ e(g, { icon: L, size: C === "compact" ? 16 : 24 }),
|
|
3977
3978
|
n && /* @__PURE__ */ e(i1, { variant: "h5", as: c, children: n }),
|
|
3978
3979
|
i
|
|
3979
3980
|
] }),
|
|
3980
|
-
|
|
3981
|
+
a && /* @__PURE__ */ e(Z, { alignItems: "center", children: a }),
|
|
3981
3982
|
/* @__PURE__ */ e(Z, { alignItems: "center", children: o })
|
|
3982
3983
|
]
|
|
3983
3984
|
}
|
|
@@ -4047,21 +4048,21 @@ const E5 = p(
|
|
|
4047
4048
|
label: L,
|
|
4048
4049
|
variant: i = "primary",
|
|
4049
4050
|
className: o,
|
|
4050
|
-
...
|
|
4051
|
+
...t
|
|
4051
4052
|
}) => {
|
|
4052
|
-
const
|
|
4053
|
+
const a = (s) => {
|
|
4053
4054
|
s.stopPropagation(), s.preventDefault(), C && C();
|
|
4054
4055
|
}, c = n ? R.removable : void 0;
|
|
4055
4056
|
return /* @__PURE__ */ m(
|
|
4056
4057
|
"div",
|
|
4057
4058
|
{
|
|
4058
4059
|
className: r(R.chip, R[i], c, o),
|
|
4059
|
-
...V(
|
|
4060
|
+
...V(t),
|
|
4060
4061
|
children: [
|
|
4061
4062
|
C ? /* @__PURE__ */ e(
|
|
4062
4063
|
"button",
|
|
4063
4064
|
{
|
|
4064
|
-
onClick:
|
|
4065
|
+
onClick: a,
|
|
4065
4066
|
className: r(R.chipCell, R.label, c),
|
|
4066
4067
|
children: L
|
|
4067
4068
|
}
|
|
@@ -4084,8 +4085,8 @@ const E5 = p(
|
|
|
4084
4085
|
children: L,
|
|
4085
4086
|
maxCharacters: i,
|
|
4086
4087
|
row: o,
|
|
4087
|
-
textWidth:
|
|
4088
|
-
htmlFor:
|
|
4088
|
+
textWidth: t,
|
|
4089
|
+
htmlFor: a,
|
|
4089
4090
|
labelClassName: c,
|
|
4090
4091
|
...s
|
|
4091
4092
|
}) => {
|
|
@@ -4098,9 +4099,9 @@ const E5 = p(
|
|
|
4098
4099
|
children: l
|
|
4099
4100
|
}
|
|
4100
4101
|
);
|
|
4101
|
-
return /* @__PURE__ */ m("label", { htmlFor:
|
|
4102
|
+
return /* @__PURE__ */ m("label", { htmlFor: a, className: c, children: [
|
|
4102
4103
|
/* @__PURE__ */ m(_, { ...s, row: o, gap: !0, children: [
|
|
4103
|
-
/* @__PURE__ */ m(Z, { alignItems: "center", width:
|
|
4104
|
+
/* @__PURE__ */ m(Z, { alignItems: "center", width: t, children: [
|
|
4104
4105
|
/* @__PURE__ */ e(
|
|
4105
4106
|
T,
|
|
4106
4107
|
{
|
|
@@ -4161,15 +4162,15 @@ const E5 = p(
|
|
|
4161
4162
|
value: L,
|
|
4162
4163
|
size: i = "medium",
|
|
4163
4164
|
onValueChange: o,
|
|
4164
|
-
onChange:
|
|
4165
|
-
disabled:
|
|
4165
|
+
onChange: t,
|
|
4166
|
+
disabled: a,
|
|
4166
4167
|
...c
|
|
4167
4168
|
}, s) {
|
|
4168
4169
|
const l = W1(), d = F(
|
|
4169
4170
|
(M) => {
|
|
4170
|
-
|
|
4171
|
+
t == null || t(M), o == null || o(!L);
|
|
4171
4172
|
},
|
|
4172
|
-
[
|
|
4173
|
+
[t, o, L]
|
|
4173
4174
|
);
|
|
4174
4175
|
return /* @__PURE__ */ m(
|
|
4175
4176
|
"div",
|
|
@@ -4178,7 +4179,7 @@ const E5 = p(
|
|
|
4178
4179
|
q.toggleButton,
|
|
4179
4180
|
q[i],
|
|
4180
4181
|
L && q.selected,
|
|
4181
|
-
|
|
4182
|
+
a && q.disabled
|
|
4182
4183
|
),
|
|
4183
4184
|
children: [
|
|
4184
4185
|
/* @__PURE__ */ e(
|
|
@@ -4186,7 +4187,7 @@ const E5 = p(
|
|
|
4186
4187
|
{
|
|
4187
4188
|
type: "checkbox",
|
|
4188
4189
|
onChange: d,
|
|
4189
|
-
disabled:
|
|
4190
|
+
disabled: a,
|
|
4190
4191
|
checked: L,
|
|
4191
4192
|
ref: s,
|
|
4192
4193
|
id: l,
|
|
@@ -4204,7 +4205,7 @@ const E5 = p(
|
|
|
4204
4205
|
width: L,
|
|
4205
4206
|
shadow: i,
|
|
4206
4207
|
trapFocus: o,
|
|
4207
|
-
className:
|
|
4208
|
+
className: t
|
|
4208
4209
|
}) => C ? /* @__PURE__ */ e(Q1, { contain: o, children: /* @__PURE__ */ m(
|
|
4209
4210
|
N,
|
|
4210
4211
|
{
|
|
@@ -4212,7 +4213,7 @@ const E5 = p(
|
|
|
4212
4213
|
shadow: i,
|
|
4213
4214
|
indent: 1,
|
|
4214
4215
|
spacing: 1,
|
|
4215
|
-
className:
|
|
4216
|
+
className: t,
|
|
4216
4217
|
borderRadius: "8px",
|
|
4217
4218
|
children: [
|
|
4218
4219
|
n,
|
|
@@ -4220,24 +4221,24 @@ const E5 = p(
|
|
|
4220
4221
|
]
|
|
4221
4222
|
}
|
|
4222
4223
|
) }) : null, N4 = b.createContext({}), h1 = ({ disableCloseOnClick: n, onClick: C }, L) => {
|
|
4223
|
-
const { close: i } = I1(N4), o = V1(L),
|
|
4224
|
+
const { close: i } = I1(N4), o = V1(L), t = F(
|
|
4224
4225
|
(s) => {
|
|
4225
4226
|
n || i == null || i(), C == null || C(s);
|
|
4226
4227
|
},
|
|
4227
4228
|
[C, i, n]
|
|
4228
|
-
),
|
|
4229
|
+
), a = q1();
|
|
4229
4230
|
return {
|
|
4230
|
-
onClickHandler:
|
|
4231
|
+
onClickHandler: t,
|
|
4231
4232
|
onKeyDown: (s) => {
|
|
4232
4233
|
var l;
|
|
4233
4234
|
switch (s.key) {
|
|
4234
4235
|
case "ArrowDown":
|
|
4235
4236
|
case "ArrowRight":
|
|
4236
|
-
s.preventDefault(),
|
|
4237
|
+
s.preventDefault(), a == null || a.focusNext({ wrap: !0 });
|
|
4237
4238
|
break;
|
|
4238
4239
|
case "ArrowUp":
|
|
4239
4240
|
case "ArrowLeft":
|
|
4240
|
-
s.preventDefault(),
|
|
4241
|
+
s.preventDefault(), a == null || a.focusPrevious({ wrap: !0 });
|
|
4241
4242
|
break;
|
|
4242
4243
|
case " ":
|
|
4243
4244
|
s.preventDefault(), (l = o.current) == null || l.click();
|
|
@@ -4245,31 +4246,31 @@ const E5 = p(
|
|
|
4245
4246
|
},
|
|
4246
4247
|
innerRef: o
|
|
4247
4248
|
};
|
|
4248
|
-
}, H0 = p(function({ disabled: C, onClick: L, disableCloseOnClick: i, ...o },
|
|
4249
|
-
const { onClickHandler:
|
|
4249
|
+
}, H0 = p(function({ disabled: C, onClick: L, disableCloseOnClick: i, ...o }, t) {
|
|
4250
|
+
const { onClickHandler: a, onKeyDown: c, innerRef: s } = h1(
|
|
4250
4251
|
{ disableCloseOnClick: i, onClick: L },
|
|
4251
|
-
|
|
4252
|
+
t
|
|
4252
4253
|
);
|
|
4253
4254
|
return /* @__PURE__ */ e(
|
|
4254
4255
|
P5,
|
|
4255
4256
|
{
|
|
4256
4257
|
onKeyDown: c,
|
|
4257
4258
|
disabled: C,
|
|
4258
|
-
onClick: C ? void 0 :
|
|
4259
|
+
onClick: C ? void 0 : a,
|
|
4259
4260
|
ref: s,
|
|
4260
4261
|
...o
|
|
4261
4262
|
}
|
|
4262
4263
|
);
|
|
4263
4264
|
}), P0 = p(function({ disableCloseOnClick: C, onClick: L, ...i }, o) {
|
|
4264
|
-
const { onClickHandler:
|
|
4265
|
+
const { onClickHandler: t, onKeyDown: a, innerRef: c } = h1(
|
|
4265
4266
|
{ disableCloseOnClick: C, onClick: L },
|
|
4266
4267
|
o
|
|
4267
4268
|
);
|
|
4268
4269
|
return /* @__PURE__ */ e(
|
|
4269
4270
|
E5,
|
|
4270
4271
|
{
|
|
4271
|
-
onKeyDown:
|
|
4272
|
-
onClick: i.disabled ? void 0 :
|
|
4272
|
+
onKeyDown: a,
|
|
4273
|
+
onClick: i.disabled ? void 0 : t,
|
|
4273
4274
|
ref: c,
|
|
4274
4275
|
...i
|
|
4275
4276
|
}
|
|
@@ -4279,8 +4280,8 @@ const E5 = p(
|
|
|
4279
4280
|
right: L,
|
|
4280
4281
|
label: i,
|
|
4281
4282
|
disabled: o,
|
|
4282
|
-
bottom:
|
|
4283
|
-
fullWidthBottomContent:
|
|
4283
|
+
bottom: t,
|
|
4284
|
+
fullWidthBottomContent: a,
|
|
4284
4285
|
...c
|
|
4285
4286
|
}, s) {
|
|
4286
4287
|
const { onKeyDown: l, innerRef: d } = h1(c, s);
|
|
@@ -4300,9 +4301,9 @@ const E5 = p(
|
|
|
4300
4301
|
/* @__PURE__ */ e(p1, { label: i, leftIcon: C }),
|
|
4301
4302
|
L
|
|
4302
4303
|
] }),
|
|
4303
|
-
|
|
4304
|
-
!
|
|
4305
|
-
/* @__PURE__ */ e(Z, { alignItems: "center", width: "100%", children:
|
|
4304
|
+
t && /* @__PURE__ */ m(Z, { children: [
|
|
4305
|
+
!a && C && /* @__PURE__ */ e(M1, { num: 2 }),
|
|
4306
|
+
/* @__PURE__ */ e(Z, { alignItems: "center", width: "100%", children: t })
|
|
4306
4307
|
] })
|
|
4307
4308
|
]
|
|
4308
4309
|
}
|
|
@@ -4315,8 +4316,8 @@ const E5 = p(
|
|
|
4315
4316
|
label: L,
|
|
4316
4317
|
loading: i = !1,
|
|
4317
4318
|
left: o,
|
|
4318
|
-
leftIcon:
|
|
4319
|
-
right:
|
|
4319
|
+
leftIcon: t,
|
|
4320
|
+
right: a,
|
|
4320
4321
|
rightIcon: c,
|
|
4321
4322
|
success: s = !1,
|
|
4322
4323
|
tabIndex: l = 0,
|
|
@@ -4344,9 +4345,9 @@ const E5 = p(
|
|
|
4344
4345
|
{
|
|
4345
4346
|
success: s,
|
|
4346
4347
|
loading: i,
|
|
4347
|
-
leftIcon:
|
|
4348
|
+
leftIcon: t,
|
|
4348
4349
|
left: o,
|
|
4349
|
-
right:
|
|
4350
|
+
right: a,
|
|
4350
4351
|
rightIcon: c,
|
|
4351
4352
|
label: f,
|
|
4352
4353
|
responsiveIconOnly: d
|
|
@@ -4378,16 +4379,16 @@ const E5 = p(
|
|
|
4378
4379
|
variant: L = "info",
|
|
4379
4380
|
size: i = "medium",
|
|
4380
4381
|
label: o,
|
|
4381
|
-
icon:
|
|
4382
|
-
...
|
|
4382
|
+
icon: t,
|
|
4383
|
+
...a
|
|
4383
4384
|
}) => /* @__PURE__ */ m(
|
|
4384
4385
|
"div",
|
|
4385
4386
|
{
|
|
4386
4387
|
className: r(J.tag, J[L], J[i], n),
|
|
4387
4388
|
style: C,
|
|
4388
|
-
...V(
|
|
4389
|
+
...V(a),
|
|
4389
4390
|
children: [
|
|
4390
|
-
|
|
4391
|
+
t && /* @__PURE__ */ e(W, { icon: t, className: J.icon }),
|
|
4391
4392
|
/* @__PURE__ */ e("span", { children: o })
|
|
4392
4393
|
]
|
|
4393
4394
|
}
|
|
@@ -4416,7 +4417,7 @@ const E5 = p(
|
|
|
4416
4417
|
!i && Y.withBorder,
|
|
4417
4418
|
Y[o]
|
|
4418
4419
|
),
|
|
4419
|
-
children: /* @__PURE__ */ e("tbody", { children: d1.map(n, (
|
|
4420
|
+
children: /* @__PURE__ */ e("tbody", { children: d1.map(n, (t, a) => /* @__PURE__ */ e("tr", { className: Y.row, children: t }, a)) })
|
|
4420
4421
|
}
|
|
4421
4422
|
),
|
|
4422
4423
|
L && /* @__PURE__ */ e(Z, { spacing: !0, children: /* @__PURE__ */ e(T, { size: "small", color: z("--lhds-color-ui-600"), children: L }) })
|
|
@@ -4516,8 +4517,8 @@ const E5 = p(
|
|
|
4516
4517
|
arrival: L,
|
|
4517
4518
|
label: i,
|
|
4518
4519
|
size: o = "standard",
|
|
4519
|
-
selected:
|
|
4520
|
-
children:
|
|
4520
|
+
selected: t = !1,
|
|
4521
|
+
children: a
|
|
4521
4522
|
}) => {
|
|
4522
4523
|
const c = n === "ship" ? a2 : t2;
|
|
4523
4524
|
return /* @__PURE__ */ m("div", { className: c1.routeLeg, children: [
|
|
@@ -4525,7 +4526,7 @@ const E5 = p(
|
|
|
4525
4526
|
/* @__PURE__ */ e(I, { variant: "overline", size: "smaller", children: i }),
|
|
4526
4527
|
/* @__PURE__ */ e(P, { num: 2 })
|
|
4527
4528
|
] }),
|
|
4528
|
-
|
|
4529
|
+
t && /* @__PURE__ */ e(
|
|
4529
4530
|
g,
|
|
4530
4531
|
{
|
|
4531
4532
|
icon: Y1,
|
|
@@ -4561,9 +4562,9 @@ const E5 = p(
|
|
|
4561
4562
|
/* @__PURE__ */ e(k1, { ...C, size: o }),
|
|
4562
4563
|
/* @__PURE__ */ e(k1, { ...L, size: o })
|
|
4563
4564
|
] }),
|
|
4564
|
-
|
|
4565
|
+
a && /* @__PURE__ */ m(S, { children: [
|
|
4565
4566
|
/* @__PURE__ */ e("div", {}),
|
|
4566
|
-
/* @__PURE__ */ e("div", { children:
|
|
4567
|
+
/* @__PURE__ */ e("div", { children: a })
|
|
4567
4568
|
] })
|
|
4568
4569
|
] })
|
|
4569
4570
|
] });
|
|
@@ -4583,14 +4584,14 @@ const E5 = p(
|
|
|
4583
4584
|
);
|
|
4584
4585
|
function F1(n, C) {
|
|
4585
4586
|
var H;
|
|
4586
|
-
const L = U(null), i = (H = C.ref) != null ? H : L, [o,
|
|
4587
|
+
const L = U(null), i = (H = C.ref) != null ? H : L, [o, t] = P1((k) => k + 1, 0), a = U(), c = U(), s = U(), l = U(), [d, M] = m1(!1), [x, f] = m1(!1), h = n, y = F(
|
|
4587
4588
|
(k) => {
|
|
4588
4589
|
var A, $;
|
|
4589
|
-
return
|
|
4590
|
+
return a.current = new Promise(
|
|
4590
4591
|
(O, D) => {
|
|
4591
4592
|
c.current = O, l.current = D;
|
|
4592
4593
|
}
|
|
4593
|
-
), f(!1), M(!0),
|
|
4594
|
+
), f(!1), M(!0), t(), s.current = k, C != null && C.modal ? (A = i.current) == null || A.showModal() : ($ = i.current) == null || $.show(), a.current;
|
|
4594
4595
|
},
|
|
4595
4596
|
[i, C == null ? void 0 : C.modal]
|
|
4596
4597
|
), v = F(
|