@dynamic-mockups/design-system 0.2.12 → 0.2.14
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/design-system.css +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +762 -752
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ var mV = (e, n, t) => n in e ? pV(e, n, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var Ke = (e, n, t) => mV(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
4
|
import * as c from "react";
|
|
5
5
|
import S, { useState as vV, useLayoutEffect as hV, useContext as gV, createContext as bV } from "react";
|
|
6
|
-
import { jsx as u, Fragment as ce, jsxs as
|
|
6
|
+
import { jsx as u, Fragment as ce, jsxs as O } from "react/jsx-runtime";
|
|
7
7
|
import * as ir from "react-dom";
|
|
8
8
|
import yV from "react-dom";
|
|
9
9
|
const wV = {
|
|
@@ -180,7 +180,7 @@ const wV = {
|
|
|
180
180
|
black: "var(--gray-12)",
|
|
181
181
|
transparent: "transparent"
|
|
182
182
|
}
|
|
183
|
-
},
|
|
183
|
+
}, T = (e) => `var(--${e})`, cN = (e) => {
|
|
184
184
|
const n = [
|
|
185
185
|
"gray",
|
|
186
186
|
"blue",
|
|
@@ -447,7 +447,7 @@ var DV = [
|
|
|
447
447
|
"span",
|
|
448
448
|
"svg",
|
|
449
449
|
"ul"
|
|
450
|
-
],
|
|
450
|
+
], R = DV.reduce((e, n) => {
|
|
451
451
|
const t = /* @__PURE__ */ nt(`Primitive.${n}`), r = c.forwardRef((o, a) => {
|
|
452
452
|
const { asChild: s, ...i } = o, l = s ? t : n;
|
|
453
453
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u(l, { ...i, ref: a });
|
|
@@ -471,7 +471,7 @@ var ri = Object.freeze({
|
|
|
471
471
|
wordWrap: "normal"
|
|
472
472
|
}), zV = "VisuallyHidden", oi = c.forwardRef(
|
|
473
473
|
(e, n) => /* @__PURE__ */ u(
|
|
474
|
-
|
|
474
|
+
R.span,
|
|
475
475
|
{
|
|
476
476
|
...e,
|
|
477
477
|
ref: n,
|
|
@@ -738,7 +738,7 @@ var lr = "Collapsible", [ZV, si] = re(lr), [YV, Fo] = ZV(lr), ii = c.forwardRef(
|
|
|
738
738
|
open: l,
|
|
739
739
|
onOpenToggle: c.useCallback(() => A((V) => !V), [A]),
|
|
740
740
|
children: /* @__PURE__ */ u(
|
|
741
|
-
|
|
741
|
+
R.div,
|
|
742
742
|
{
|
|
743
743
|
"data-state": Uo(l),
|
|
744
744
|
"data-disabled": a ? "" : void 0,
|
|
@@ -755,7 +755,7 @@ var ci = "CollapsibleTrigger", li = c.forwardRef(
|
|
|
755
755
|
(e, n) => {
|
|
756
756
|
const { __scopeCollapsible: t, ...r } = e, o = Fo(ci, t);
|
|
757
757
|
return /* @__PURE__ */ u(
|
|
758
|
-
|
|
758
|
+
R.button,
|
|
759
759
|
{
|
|
760
760
|
type: "button",
|
|
761
761
|
"aria-controls": o.contentId,
|
|
@@ -794,7 +794,7 @@ var QV = c.forwardRef((e, n) => {
|
|
|
794
794
|
d.current = w.height, p.current = w.width, h.current || (y.style.transitionDuration = g.current.transitionDuration, y.style.animationName = g.current.animationName), l(r);
|
|
795
795
|
}
|
|
796
796
|
}, [s.open, r]), /* @__PURE__ */ u(
|
|
797
|
-
|
|
797
|
+
R.div,
|
|
798
798
|
{
|
|
799
799
|
"data-state": Uo(s.open),
|
|
800
800
|
"data-disabled": s.disabled ? "" : void 0,
|
|
@@ -895,10 +895,10 @@ var [Vi, tf] = Ar(Me), [fi, nf] = Ar(
|
|
|
895
895
|
const { __scopeAccordion: t, disabled: r, dir: o, orientation: a = "vertical", ...s } = e, i = S.useRef(null), l = H(i, n), A = $V(t), d = st(o) === "ltr", f = E(e.onKeyDown, (p) => {
|
|
896
896
|
var N;
|
|
897
897
|
if (!_V.includes(p.key)) return;
|
|
898
|
-
const v = p.target, m = A().filter((
|
|
899
|
-
var
|
|
900
|
-
return !((
|
|
901
|
-
}), h = m.findIndex((
|
|
898
|
+
const v = p.target, m = A().filter((I) => {
|
|
899
|
+
var z;
|
|
900
|
+
return !((z = I.ref.current) != null && z.disabled);
|
|
901
|
+
}), h = m.findIndex((I) => I.ref.current === v), g = m.length;
|
|
902
902
|
if (h === -1) return;
|
|
903
903
|
p.preventDefault();
|
|
904
904
|
let y = h;
|
|
@@ -938,7 +938,7 @@ var [Vi, tf] = Ar(Me), [fi, nf] = Ar(
|
|
|
938
938
|
direction: o,
|
|
939
939
|
orientation: a,
|
|
940
940
|
children: /* @__PURE__ */ u(Jo.Slot, { scope: t, children: /* @__PURE__ */ u(
|
|
941
|
-
|
|
941
|
+
R.div,
|
|
942
942
|
{
|
|
943
943
|
...s,
|
|
944
944
|
"data-orientation": a,
|
|
@@ -983,7 +983,7 @@ var vi = "AccordionHeader", hi = S.forwardRef(
|
|
|
983
983
|
(e, n) => {
|
|
984
984
|
const { __scopeAccordion: t, ...r } = e, o = ur(Me, t), a = _o(vi, t);
|
|
985
985
|
return /* @__PURE__ */ u(
|
|
986
|
-
|
|
986
|
+
R.h3,
|
|
987
987
|
{
|
|
988
988
|
"data-orientation": o.orientation,
|
|
989
989
|
"data-state": wi(a.open),
|
|
@@ -1071,11 +1071,11 @@ var Vf = "DismissableLayer", po = "dismissableLayer.update", ff = "dismissableLa
|
|
|
1071
1071
|
onDismiss: i,
|
|
1072
1072
|
...l
|
|
1073
1073
|
} = e, A = c.useContext(xi), [V, d] = c.useState(null), f = (V == null ? void 0 : V.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = c.useState({}), v = H(n, (b) => d(b)), m = Array.from(A.layers), [h] = [...A.layersWithOutsidePointerEventsDisabled].slice(-1), g = m.indexOf(h), y = V ? m.indexOf(V) : -1, w = A.layersWithOutsidePointerEventsDisabled.size > 0, x = y >= g, P = hf((b) => {
|
|
1074
|
-
const N = b.target,
|
|
1075
|
-
!x ||
|
|
1074
|
+
const N = b.target, I = [...A.branches].some((z) => z.contains(N));
|
|
1075
|
+
!x || I || (o == null || o(b), s == null || s(b), b.defaultPrevented || i == null || i());
|
|
1076
1076
|
}, f), C = gf((b) => {
|
|
1077
1077
|
const N = b.target;
|
|
1078
|
-
[...A.branches].some((
|
|
1078
|
+
[...A.branches].some((z) => z.contains(N)) || (a == null || a(b), s == null || s(b), b.defaultPrevented || i == null || i());
|
|
1079
1079
|
}, f);
|
|
1080
1080
|
return df((b) => {
|
|
1081
1081
|
y === A.layers.size - 1 && (r == null || r(b), !b.defaultPrevented && i && (b.preventDefault(), i()));
|
|
@@ -1090,7 +1090,7 @@ var Vf = "DismissableLayer", po = "dismissableLayer.update", ff = "dismissableLa
|
|
|
1090
1090
|
const b = () => p({});
|
|
1091
1091
|
return document.addEventListener(po, b), () => document.removeEventListener(po, b);
|
|
1092
1092
|
}, []), /* @__PURE__ */ u(
|
|
1093
|
-
|
|
1093
|
+
R.div,
|
|
1094
1094
|
{
|
|
1095
1095
|
...l,
|
|
1096
1096
|
ref: v,
|
|
@@ -1117,7 +1117,7 @@ var mf = "DismissableLayerBranch", vf = c.forwardRef((e, n) => {
|
|
|
1117
1117
|
return t.branches.add(a), () => {
|
|
1118
1118
|
t.branches.delete(a);
|
|
1119
1119
|
};
|
|
1120
|
-
}, [t.branches]), /* @__PURE__ */ u(
|
|
1120
|
+
}, [t.branches]), /* @__PURE__ */ u(R.div, { ...e, ref: o });
|
|
1121
1121
|
});
|
|
1122
1122
|
vf.displayName = mf;
|
|
1123
1123
|
function hf(e, n = globalThis == null ? void 0 : globalThis.document) {
|
|
@@ -1236,7 +1236,7 @@ var qr = "focusScope.autoFocusOnMount", Ur = "focusScope.autoFocusOnUnmount", cs
|
|
|
1236
1236
|
},
|
|
1237
1237
|
[t, r, p.paused]
|
|
1238
1238
|
);
|
|
1239
|
-
return /* @__PURE__ */ u(
|
|
1239
|
+
return /* @__PURE__ */ u(R.div, { tabIndex: -1, ...s, ref: f, onKeyDown: v });
|
|
1240
1240
|
});
|
|
1241
1241
|
dn.displayName = bf;
|
|
1242
1242
|
function yf(e, { select: n = !1 } = {}) {
|
|
@@ -1306,7 +1306,7 @@ var Sf = "Portal", wt = c.forwardRef((e, n) => {
|
|
|
1306
1306
|
const { container: t, ...r } = e, [o, a] = c.useState(!1);
|
|
1307
1307
|
ae(() => a(!0), []);
|
|
1308
1308
|
const s = t || o && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
|
|
1309
|
-
return s ? yV.createPortal(/* @__PURE__ */ u(
|
|
1309
|
+
return s ? yV.createPortal(/* @__PURE__ */ u(R.div, { ...r, ref: n }), s) : null;
|
|
1310
1310
|
});
|
|
1311
1311
|
wt.displayName = Sf;
|
|
1312
1312
|
var Jr = 0;
|
|
@@ -1725,13 +1725,13 @@ function ip(e) {
|
|
|
1725
1725
|
var g = Mn(m), y = t.current, w = "deltaX" in m ? m.deltaX : y[0] - g[0], x = "deltaY" in m ? m.deltaY : y[1] - g[1], P, C = m.target, b = Math.abs(w) > Math.abs(x) ? "h" : "v";
|
|
1726
1726
|
if ("touches" in m && b === "h" && C.type === "range")
|
|
1727
1727
|
return !1;
|
|
1728
|
-
var N = window.getSelection(),
|
|
1729
|
-
if (
|
|
1728
|
+
var N = window.getSelection(), I = N && N.anchorNode, z = I ? I === C || I.contains(C) : !1;
|
|
1729
|
+
if (z)
|
|
1730
1730
|
return !1;
|
|
1731
|
-
var
|
|
1732
|
-
if (!
|
|
1731
|
+
var L = ps(b, C);
|
|
1732
|
+
if (!L)
|
|
1733
1733
|
return !0;
|
|
1734
|
-
if (
|
|
1734
|
+
if (L ? P = b : (P = b === "v" ? "h" : "v", L = ps(b, C)), !L)
|
|
1735
1735
|
return !1;
|
|
1736
1736
|
if (!r.current && "changedTouches" in m && (w || x) && (r.current = P), !P)
|
|
1737
1737
|
return !0;
|
|
@@ -1881,7 +1881,7 @@ var ki = "DialogTrigger", Bi = c.forwardRef(
|
|
|
1881
1881
|
(e, n) => {
|
|
1882
1882
|
const { __scopeDialog: t, ...r } = e, o = De(ki, t), a = H(n, o.triggerRef);
|
|
1883
1883
|
return /* @__PURE__ */ u(
|
|
1884
|
-
|
|
1884
|
+
R.button,
|
|
1885
1885
|
{
|
|
1886
1886
|
type: "button",
|
|
1887
1887
|
"aria-haspopup": "dialog",
|
|
@@ -1917,7 +1917,7 @@ var pp = /* @__PURE__ */ nt("DialogOverlay.RemoveScroll"), mp = c.forwardRef(
|
|
|
1917
1917
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
1918
1918
|
// ie. when `Overlay` and `Content` are siblings
|
|
1919
1919
|
/* @__PURE__ */ u(Vn, { as: pp, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ u(
|
|
1920
|
-
|
|
1920
|
+
R.div,
|
|
1921
1921
|
{
|
|
1922
1922
|
"data-state": ta(o.open),
|
|
1923
1923
|
...r,
|
|
@@ -1988,7 +1988,7 @@ var vp = c.forwardRef(
|
|
|
1988
1988
|
), Gi = c.forwardRef(
|
|
1989
1989
|
(e, n) => {
|
|
1990
1990
|
const { __scopeDialog: t, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...s } = e, i = De(mt, t), l = c.useRef(null), A = H(n, l);
|
|
1991
|
-
return dr(), /* @__PURE__ */
|
|
1991
|
+
return dr(), /* @__PURE__ */ O(ce, { children: [
|
|
1992
1992
|
/* @__PURE__ */ u(
|
|
1993
1993
|
dn,
|
|
1994
1994
|
{
|
|
@@ -2012,7 +2012,7 @@ var vp = c.forwardRef(
|
|
|
2012
2012
|
)
|
|
2013
2013
|
}
|
|
2014
2014
|
),
|
|
2015
|
-
/* @__PURE__ */
|
|
2015
|
+
/* @__PURE__ */ O(ce, { children: [
|
|
2016
2016
|
/* @__PURE__ */ u(bp, { titleId: i.titleId }),
|
|
2017
2017
|
/* @__PURE__ */ u(wp, { contentRef: l, descriptionId: i.descriptionId })
|
|
2018
2018
|
] })
|
|
@@ -2021,14 +2021,14 @@ var vp = c.forwardRef(
|
|
|
2021
2021
|
), ea = "DialogTitle", Zi = c.forwardRef(
|
|
2022
2022
|
(e, n) => {
|
|
2023
2023
|
const { __scopeDialog: t, ...r } = e, o = De(ea, t);
|
|
2024
|
-
return /* @__PURE__ */ u(
|
|
2024
|
+
return /* @__PURE__ */ u(R.h2, { id: o.titleId, ...r, ref: n });
|
|
2025
2025
|
}
|
|
2026
2026
|
);
|
|
2027
2027
|
Zi.displayName = ea;
|
|
2028
2028
|
var Yi = "DialogDescription", Qi = c.forwardRef(
|
|
2029
2029
|
(e, n) => {
|
|
2030
2030
|
const { __scopeDialog: t, ...r } = e, o = De(Yi, t);
|
|
2031
|
-
return /* @__PURE__ */ u(
|
|
2031
|
+
return /* @__PURE__ */ u(R.p, { id: o.descriptionId, ...r, ref: n });
|
|
2032
2032
|
}
|
|
2033
2033
|
);
|
|
2034
2034
|
Qi.displayName = Yi;
|
|
@@ -2036,7 +2036,7 @@ var Fi = "DialogClose", qi = c.forwardRef(
|
|
|
2036
2036
|
(e, n) => {
|
|
2037
2037
|
const { __scopeDialog: t, ...r } = e, o = De(Fi, t);
|
|
2038
2038
|
return /* @__PURE__ */ u(
|
|
2039
|
-
|
|
2039
|
+
R.button,
|
|
2040
2040
|
{
|
|
2041
2041
|
type: "button",
|
|
2042
2042
|
...r,
|
|
@@ -2105,7 +2105,7 @@ var Tt = "AlertDialogContent", [Sp, Ep] = xp(Tt), Op = /* @__PURE__ */ Yo("Alert
|
|
|
2105
2105
|
contentName: Tt,
|
|
2106
2106
|
titleName: rc,
|
|
2107
2107
|
docsSlug: "alert-dialog",
|
|
2108
|
-
children: /* @__PURE__ */ u(Sp, { scope: t, cancelRef: l, children: /* @__PURE__ */
|
|
2108
|
+
children: /* @__PURE__ */ u(Sp, { scope: t, cancelRef: l, children: /* @__PURE__ */ O(
|
|
2109
2109
|
sa,
|
|
2110
2110
|
{
|
|
2111
2111
|
role: "alertdialog",
|
|
@@ -2312,7 +2312,7 @@ var la = "Avatar", [qp] = re(la), [Up, Ac] = qp(la), uc = c.forwardRef(
|
|
|
2312
2312
|
scope: t,
|
|
2313
2313
|
imageLoadingStatus: o,
|
|
2314
2314
|
onImageLoadingStatusChange: a,
|
|
2315
|
-
children: /* @__PURE__ */ u(
|
|
2315
|
+
children: /* @__PURE__ */ u(R.span, { ...r, ref: n })
|
|
2316
2316
|
}
|
|
2317
2317
|
);
|
|
2318
2318
|
}
|
|
@@ -2326,7 +2326,7 @@ var dc = "AvatarImage", Vc = c.forwardRef(
|
|
|
2326
2326
|
});
|
|
2327
2327
|
return ae(() => {
|
|
2328
2328
|
i !== "idle" && l(i);
|
|
2329
|
-
}, [i, l]), i === "loaded" ? /* @__PURE__ */ u(
|
|
2329
|
+
}, [i, l]), i === "loaded" ? /* @__PURE__ */ u(R.img, { ...a, ref: n, src: r }) : null;
|
|
2330
2330
|
}
|
|
2331
2331
|
);
|
|
2332
2332
|
Vc.displayName = dc;
|
|
@@ -2338,7 +2338,7 @@ var fc = "AvatarFallback", pc = c.forwardRef(
|
|
|
2338
2338
|
const l = window.setTimeout(() => i(!0), r);
|
|
2339
2339
|
return () => window.clearTimeout(l);
|
|
2340
2340
|
}
|
|
2341
|
-
}, [r]), s && a.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ u(
|
|
2341
|
+
}, [r]), s && a.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ u(R.span, { ...o, ref: n }) : null;
|
|
2342
2342
|
}
|
|
2343
2343
|
);
|
|
2344
2344
|
pc.displayName = fc;
|
|
@@ -2458,7 +2458,7 @@ var mc = "CheckboxTrigger", vc = c.forwardRef(
|
|
|
2458
2458
|
return g.addEventListener("reset", y), () => g.removeEventListener("reset", y);
|
|
2459
2459
|
}
|
|
2460
2460
|
}, [a, d]), /* @__PURE__ */ u(
|
|
2461
|
-
|
|
2461
|
+
R.button,
|
|
2462
2462
|
{
|
|
2463
2463
|
type: "button",
|
|
2464
2464
|
role: "checkbox",
|
|
@@ -2507,7 +2507,7 @@ var hc = c.forwardRef(
|
|
|
2507
2507
|
name: r,
|
|
2508
2508
|
form: V,
|
|
2509
2509
|
value: l,
|
|
2510
|
-
internal_do_not_use_render: ({ isFormControl: f }) => /* @__PURE__ */
|
|
2510
|
+
internal_do_not_use_render: ({ isFormControl: f }) => /* @__PURE__ */ O(ce, { children: [
|
|
2511
2511
|
/* @__PURE__ */ u(
|
|
2512
2512
|
vc,
|
|
2513
2513
|
{
|
|
@@ -2536,7 +2536,7 @@ var gc = "CheckboxIndicator", bc = c.forwardRef(
|
|
|
2536
2536
|
{
|
|
2537
2537
|
present: r || tt(a.checked) || a.checked === !0,
|
|
2538
2538
|
children: /* @__PURE__ */ u(
|
|
2539
|
-
|
|
2539
|
+
R.span,
|
|
2540
2540
|
{
|
|
2541
2541
|
"data-state": xc(a.checked),
|
|
2542
2542
|
"data-disabled": a.disabled ? "" : void 0,
|
|
@@ -2579,7 +2579,7 @@ var yc = "CheckboxBubbleInput", wc = c.forwardRef(
|
|
|
2579
2579
|
}, [f, m, a, o]);
|
|
2580
2580
|
const g = c.useRef(tt(a) ? !1 : a);
|
|
2581
2581
|
return /* @__PURE__ */ u(
|
|
2582
|
-
|
|
2582
|
+
R.input,
|
|
2583
2583
|
{
|
|
2584
2584
|
type: "checkbox",
|
|
2585
2585
|
"aria-hidden": !0,
|
|
@@ -2902,17 +2902,17 @@ const mm = (e) => ({
|
|
|
2902
2902
|
}, p = Va(o), v = da(p), m = await s.getDimensions(A), h = p === "y", g = h ? "top" : "left", y = h ? "bottom" : "right", w = h ? "clientHeight" : "clientWidth", x = a.reference[v] + a.reference[p] - f[p] - a.floating[v], P = f[p] - a.reference[p], C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(A));
|
|
2903
2903
|
let b = C ? C[w] : 0;
|
|
2904
2904
|
(!b || !await (s.isElement == null ? void 0 : s.isElement(C))) && (b = i.floating[w] || a.floating[v]);
|
|
2905
|
-
const N = x / 2 - P / 2,
|
|
2905
|
+
const N = x / 2 - P / 2, I = b / 2 - m[v] / 2 - 1, z = rt(d[g], I), L = rt(d[y], I), j = z, Z = b - m[v] - L, G = b / 2 - m[v] / 2 + N, q = vo(j, G, Z), B = !l.arrow && Lt(o) != null && G !== q && a.reference[v] / 2 - (G < j ? z : L) - m[v] / 2 < 0, Y = B ? G < j ? G - j : G - Z : 0;
|
|
2906
2906
|
return {
|
|
2907
|
-
[p]: f[p] +
|
|
2907
|
+
[p]: f[p] + Y,
|
|
2908
2908
|
data: {
|
|
2909
|
-
[p]:
|
|
2910
|
-
centerOffset: G -
|
|
2911
|
-
...
|
|
2912
|
-
alignmentOffset:
|
|
2909
|
+
[p]: q,
|
|
2910
|
+
centerOffset: G - q - Y,
|
|
2911
|
+
...B && {
|
|
2912
|
+
alignmentOffset: Y
|
|
2913
2913
|
}
|
|
2914
2914
|
},
|
|
2915
|
-
reset:
|
|
2915
|
+
reset: B
|
|
2916
2916
|
};
|
|
2917
2917
|
}
|
|
2918
2918
|
}), vm = function(e) {
|
|
@@ -2941,55 +2941,55 @@ const mm = (e) => ({
|
|
|
2941
2941
|
return {};
|
|
2942
2942
|
const g = Qe(o), y = Le(i), w = Qe(i) === i, x = await (l.isRTL == null ? void 0 : l.isRTL(A.floating)), P = f || (w || !m ? [Yn(i)] : lm(i)), C = v !== "none";
|
|
2943
2943
|
!f && C && P.push(...Vm(i, m, v, x));
|
|
2944
|
-
const b = [i, ...P], N = await en(n, h),
|
|
2945
|
-
let
|
|
2946
|
-
if (V &&
|
|
2944
|
+
const b = [i, ...P], N = await en(n, h), I = [];
|
|
2945
|
+
let z = ((r = a.flip) == null ? void 0 : r.overflows) || [];
|
|
2946
|
+
if (V && I.push(N[g]), d) {
|
|
2947
2947
|
const G = cm(o, s, x);
|
|
2948
|
-
|
|
2948
|
+
I.push(N[G[0]], N[G[1]]);
|
|
2949
2949
|
}
|
|
2950
|
-
if (
|
|
2950
|
+
if (z = [...z, {
|
|
2951
2951
|
placement: o,
|
|
2952
|
-
overflows:
|
|
2953
|
-
}], !
|
|
2954
|
-
var
|
|
2955
|
-
const G = (((
|
|
2956
|
-
if (
|
|
2952
|
+
overflows: I
|
|
2953
|
+
}], !I.every((G) => G <= 0)) {
|
|
2954
|
+
var L, j;
|
|
2955
|
+
const G = (((L = a.flip) == null ? void 0 : L.index) || 0) + 1, q = b[G];
|
|
2956
|
+
if (q && (!(d === "alignment" ? y !== Le(q) : !1) || // We leave the current main axis only if every placement on that axis
|
|
2957
2957
|
// overflows the main axis.
|
|
2958
|
-
|
|
2958
|
+
z.every((k) => Le(k.placement) === y ? k.overflows[0] > 0 : !0)))
|
|
2959
2959
|
return {
|
|
2960
2960
|
data: {
|
|
2961
2961
|
index: G,
|
|
2962
|
-
overflows:
|
|
2962
|
+
overflows: z
|
|
2963
2963
|
},
|
|
2964
2964
|
reset: {
|
|
2965
|
-
placement:
|
|
2965
|
+
placement: q
|
|
2966
2966
|
}
|
|
2967
2967
|
};
|
|
2968
|
-
let
|
|
2969
|
-
if (!
|
|
2968
|
+
let B = (j = z.filter((Y) => Y.overflows[0] <= 0).sort((Y, k) => Y.overflows[1] - k.overflows[1])[0]) == null ? void 0 : j.placement;
|
|
2969
|
+
if (!B)
|
|
2970
2970
|
switch (p) {
|
|
2971
2971
|
case "bestFit": {
|
|
2972
|
-
var
|
|
2973
|
-
const
|
|
2972
|
+
var Z;
|
|
2973
|
+
const Y = (Z = z.filter((k) => {
|
|
2974
2974
|
if (C) {
|
|
2975
|
-
const
|
|
2976
|
-
return
|
|
2975
|
+
const D = Le(k.placement);
|
|
2976
|
+
return D === y || // Create a bias to the `y` side axis due to horizontal
|
|
2977
2977
|
// reading directions favoring greater width.
|
|
2978
|
-
|
|
2978
|
+
D === "y";
|
|
2979
2979
|
}
|
|
2980
2980
|
return !0;
|
|
2981
|
-
}).map((
|
|
2982
|
-
|
|
2981
|
+
}).map((k) => [k.placement, k.overflows.filter((D) => D > 0).reduce((D, F) => D + F, 0)]).sort((k, D) => k[1] - D[1])[0]) == null ? void 0 : Z[0];
|
|
2982
|
+
Y && (B = Y);
|
|
2983
2983
|
break;
|
|
2984
2984
|
}
|
|
2985
2985
|
case "initialPlacement":
|
|
2986
|
-
|
|
2986
|
+
B = i;
|
|
2987
2987
|
break;
|
|
2988
2988
|
}
|
|
2989
|
-
if (o !==
|
|
2989
|
+
if (o !== B)
|
|
2990
2990
|
return {
|
|
2991
2991
|
reset: {
|
|
2992
|
-
placement:
|
|
2992
|
+
placement: B
|
|
2993
2993
|
}
|
|
2994
2994
|
};
|
|
2995
2995
|
}
|
|
@@ -3221,16 +3221,16 @@ const bm = function(e) {
|
|
|
3221
3221
|
const y = m - V.top - V.bottom, w = v - V.left - V.right, x = rt(m - V[h], y), P = rt(v - V[g], w), C = !n.middlewareData.shift;
|
|
3222
3222
|
let b = x, N = P;
|
|
3223
3223
|
if ((t = n.middlewareData.shift) != null && t.enabled.x && (N = w), (r = n.middlewareData.shift) != null && r.enabled.y && (b = y), C && !f) {
|
|
3224
|
-
const
|
|
3225
|
-
p ? N = v - 2 * (
|
|
3224
|
+
const z = ge(V.left, 0), L = ge(V.right, 0), j = ge(V.top, 0), Z = ge(V.bottom, 0);
|
|
3225
|
+
p ? N = v - 2 * (z !== 0 || L !== 0 ? z + L : ge(V.left, V.right)) : b = m - 2 * (j !== 0 || Z !== 0 ? j + Z : ge(V.top, V.bottom));
|
|
3226
3226
|
}
|
|
3227
3227
|
await l({
|
|
3228
3228
|
...n,
|
|
3229
3229
|
availableWidth: N,
|
|
3230
3230
|
availableHeight: b
|
|
3231
3231
|
});
|
|
3232
|
-
const
|
|
3233
|
-
return v !==
|
|
3232
|
+
const I = await s.getDimensions(i.floating);
|
|
3233
|
+
return v !== I.width || m !== I.height ? {
|
|
3234
3234
|
reset: {
|
|
3235
3235
|
rects: !0
|
|
3236
3236
|
}
|
|
@@ -3806,35 +3806,35 @@ function av(e) {
|
|
|
3806
3806
|
isPositioned: !1
|
|
3807
3807
|
}), [f, p] = c.useState(r);
|
|
3808
3808
|
Fn(f, r) || p(r);
|
|
3809
|
-
const [v, m] = c.useState(null), [h, g] = c.useState(null), y = c.useCallback((
|
|
3810
|
-
|
|
3811
|
-
}, []), w = c.useCallback((
|
|
3812
|
-
|
|
3813
|
-
}, []), x = a || v, P = s || h, C = c.useRef(null), b = c.useRef(null), N = c.useRef(V),
|
|
3809
|
+
const [v, m] = c.useState(null), [h, g] = c.useState(null), y = c.useCallback((k) => {
|
|
3810
|
+
k !== C.current && (C.current = k, m(k));
|
|
3811
|
+
}, []), w = c.useCallback((k) => {
|
|
3812
|
+
k !== b.current && (b.current = k, g(k));
|
|
3813
|
+
}, []), x = a || v, P = s || h, C = c.useRef(null), b = c.useRef(null), N = c.useRef(V), I = l != null, z = oo(l), L = oo(o), j = oo(A), Z = c.useCallback(() => {
|
|
3814
3814
|
if (!C.current || !b.current)
|
|
3815
3815
|
return;
|
|
3816
|
-
const
|
|
3816
|
+
const k = {
|
|
3817
3817
|
placement: n,
|
|
3818
3818
|
strategy: t,
|
|
3819
3819
|
middleware: f
|
|
3820
3820
|
};
|
|
3821
|
-
|
|
3822
|
-
const
|
|
3823
|
-
...
|
|
3821
|
+
L.current && (k.platform = L.current), nv(C.current, b.current, k).then((D) => {
|
|
3822
|
+
const F = {
|
|
3823
|
+
...D,
|
|
3824
3824
|
// The floating element's position may be recomputed while it's closed
|
|
3825
3825
|
// but still mounted (such as when transitioning out). To ensure
|
|
3826
3826
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
3827
3827
|
// setting it to `true` when `open === false` (must be specified).
|
|
3828
3828
|
isPositioned: j.current !== !1
|
|
3829
3829
|
};
|
|
3830
|
-
G.current && !Fn(N.current,
|
|
3831
|
-
d(
|
|
3830
|
+
G.current && !Fn(N.current, F) && (N.current = F, ir.flushSync(() => {
|
|
3831
|
+
d(F);
|
|
3832
3832
|
}));
|
|
3833
3833
|
});
|
|
3834
|
-
}, [f, n, t,
|
|
3834
|
+
}, [f, n, t, L, j]);
|
|
3835
3835
|
Bn(() => {
|
|
3836
|
-
A === !1 && N.current.isPositioned && (N.current.isPositioned = !1, d((
|
|
3837
|
-
...
|
|
3836
|
+
A === !1 && N.current.isPositioned && (N.current.isPositioned = !1, d((k) => ({
|
|
3837
|
+
...k,
|
|
3838
3838
|
isPositioned: !1
|
|
3839
3839
|
})));
|
|
3840
3840
|
}, [A]);
|
|
@@ -3843,47 +3843,47 @@ function av(e) {
|
|
|
3843
3843
|
G.current = !1;
|
|
3844
3844
|
}), []), Bn(() => {
|
|
3845
3845
|
if (x && (C.current = x), P && (b.current = P), x && P) {
|
|
3846
|
-
if (
|
|
3847
|
-
return
|
|
3848
|
-
|
|
3846
|
+
if (z.current)
|
|
3847
|
+
return z.current(x, P, Z);
|
|
3848
|
+
Z();
|
|
3849
3849
|
}
|
|
3850
|
-
}, [x, P,
|
|
3851
|
-
const
|
|
3850
|
+
}, [x, P, Z, z, I]);
|
|
3851
|
+
const q = c.useMemo(() => ({
|
|
3852
3852
|
reference: C,
|
|
3853
3853
|
floating: b,
|
|
3854
3854
|
setReference: y,
|
|
3855
3855
|
setFloating: w
|
|
3856
|
-
}), [y, w]),
|
|
3856
|
+
}), [y, w]), B = c.useMemo(() => ({
|
|
3857
3857
|
reference: x,
|
|
3858
3858
|
floating: P
|
|
3859
|
-
}), [x, P]),
|
|
3860
|
-
const
|
|
3859
|
+
}), [x, P]), Y = c.useMemo(() => {
|
|
3860
|
+
const k = {
|
|
3861
3861
|
position: t,
|
|
3862
3862
|
left: 0,
|
|
3863
3863
|
top: 0
|
|
3864
3864
|
};
|
|
3865
|
-
if (!
|
|
3866
|
-
return
|
|
3867
|
-
const
|
|
3865
|
+
if (!B.floating)
|
|
3866
|
+
return k;
|
|
3867
|
+
const D = Ds(B.floating, V.x), F = Ds(B.floating, V.y);
|
|
3868
3868
|
return i ? {
|
|
3869
|
-
...
|
|
3870
|
-
transform: "translate(" +
|
|
3871
|
-
...Ic(
|
|
3869
|
+
...k,
|
|
3870
|
+
transform: "translate(" + D + "px, " + F + "px)",
|
|
3871
|
+
...Ic(B.floating) >= 1.5 && {
|
|
3872
3872
|
willChange: "transform"
|
|
3873
3873
|
}
|
|
3874
3874
|
} : {
|
|
3875
3875
|
position: t,
|
|
3876
|
-
left:
|
|
3877
|
-
top:
|
|
3876
|
+
left: D,
|
|
3877
|
+
top: F
|
|
3878
3878
|
};
|
|
3879
|
-
}, [t, i,
|
|
3879
|
+
}, [t, i, B.floating, V.x, V.y]);
|
|
3880
3880
|
return c.useMemo(() => ({
|
|
3881
3881
|
...V,
|
|
3882
|
-
update:
|
|
3883
|
-
refs:
|
|
3884
|
-
elements:
|
|
3885
|
-
floatingStyles:
|
|
3886
|
-
}), [V,
|
|
3882
|
+
update: Z,
|
|
3883
|
+
refs: q,
|
|
3884
|
+
elements: B,
|
|
3885
|
+
floatingStyles: Y
|
|
3886
|
+
}), [V, Z, q, B, Y]);
|
|
3887
3887
|
}
|
|
3888
3888
|
const sv = (e) => {
|
|
3889
3889
|
function n(t) {
|
|
@@ -3931,7 +3931,7 @@ const sv = (e) => {
|
|
|
3931
3931
|
var fv = "Arrow", Rc = c.forwardRef((e, n) => {
|
|
3932
3932
|
const { children: t, width: r = 10, height: o = 5, ...a } = e;
|
|
3933
3933
|
return /* @__PURE__ */ u(
|
|
3934
|
-
|
|
3934
|
+
R.svg,
|
|
3935
3935
|
{
|
|
3936
3936
|
...a,
|
|
3937
3937
|
ref: n,
|
|
@@ -3955,13 +3955,13 @@ var Xc = "PopperAnchor", Wc = c.forwardRef(
|
|
|
3955
3955
|
return c.useEffect(() => {
|
|
3956
3956
|
const A = l.current;
|
|
3957
3957
|
l.current = (r == null ? void 0 : r.current) || s.current, A !== l.current && a.onAnchorChange(l.current);
|
|
3958
|
-
}), r ? null : /* @__PURE__ */ u(
|
|
3958
|
+
}), r ? null : /* @__PURE__ */ u(R.div, { ...o, ref: i });
|
|
3959
3959
|
}
|
|
3960
3960
|
);
|
|
3961
3961
|
Wc.displayName = Xc;
|
|
3962
3962
|
var ha = "PopperContent", [vv, hv] = Lc(ha), Hc = c.forwardRef(
|
|
3963
3963
|
(e, n) => {
|
|
3964
|
-
var W,
|
|
3964
|
+
var W, J, K, U, _, $;
|
|
3965
3965
|
const {
|
|
3966
3966
|
__scopePopper: t,
|
|
3967
3967
|
side: r = "bottom",
|
|
@@ -3977,15 +3977,15 @@ var ha = "PopperContent", [vv, hv] = Lc(ha), Hc = c.forwardRef(
|
|
|
3977
3977
|
updatePositionStrategy: p = "optimized",
|
|
3978
3978
|
onPlaced: v,
|
|
3979
3979
|
...m
|
|
3980
|
-
} = e, h = kc(ha, t), [g, y] = c.useState(null), w = H(n, (ie) => y(ie)), [x, P] = c.useState(null), C = pn(x), b = (C == null ? void 0 : C.width) ?? 0, N = (C == null ? void 0 : C.height) ?? 0,
|
|
3981
|
-
padding:
|
|
3982
|
-
boundary:
|
|
3980
|
+
} = e, h = kc(ha, t), [g, y] = c.useState(null), w = H(n, (ie) => y(ie)), [x, P] = c.useState(null), C = pn(x), b = (C == null ? void 0 : C.width) ?? 0, N = (C == null ? void 0 : C.height) ?? 0, I = r + (a !== "center" ? "-" + a : ""), z = typeof V == "number" ? V : { top: 0, right: 0, bottom: 0, left: 0, ...V }, L = Array.isArray(A) ? A : [A], j = L.length > 0, Z = {
|
|
3981
|
+
padding: z,
|
|
3982
|
+
boundary: L.filter(bv),
|
|
3983
3983
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
3984
3984
|
altBoundary: j
|
|
3985
|
-
}, { refs: G, floatingStyles:
|
|
3985
|
+
}, { refs: G, floatingStyles: q, placement: B, isPositioned: Y, middlewareData: k } = av({
|
|
3986
3986
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
3987
3987
|
strategy: "fixed",
|
|
3988
|
-
placement:
|
|
3988
|
+
placement: I,
|
|
3989
3989
|
whileElementsMounted: (...ie) => Um(...ie, {
|
|
3990
3990
|
animationFrame: p === "always"
|
|
3991
3991
|
}),
|
|
@@ -3998,25 +3998,25 @@ var ha = "PopperContent", [vv, hv] = Lc(ha), Hc = c.forwardRef(
|
|
|
3998
3998
|
mainAxis: !0,
|
|
3999
3999
|
crossAxis: !1,
|
|
4000
4000
|
limiter: d === "partial" ? lv() : void 0,
|
|
4001
|
-
...
|
|
4001
|
+
...Z
|
|
4002
4002
|
}),
|
|
4003
|
-
l && Av({ ...
|
|
4003
|
+
l && Av({ ...Z }),
|
|
4004
4004
|
uv({
|
|
4005
|
-
...
|
|
4006
|
-
apply: ({ elements: ie, rects: Q, availableWidth:
|
|
4005
|
+
...Z,
|
|
4006
|
+
apply: ({ elements: ie, rects: Q, availableWidth: ne, availableHeight: ze }) => {
|
|
4007
4007
|
const { width: me, height: Qr } = Q.reference, At = ie.floating.style;
|
|
4008
|
-
At.setProperty("--radix-popper-available-width", `${
|
|
4008
|
+
At.setProperty("--radix-popper-available-width", `${ne}px`), At.setProperty("--radix-popper-available-height", `${ze}px`), At.setProperty("--radix-popper-anchor-width", `${me}px`), At.setProperty("--radix-popper-anchor-height", `${Qr}px`);
|
|
4009
4009
|
}
|
|
4010
4010
|
}),
|
|
4011
4011
|
x && Vv({ element: x, padding: i }),
|
|
4012
4012
|
yv({ arrowWidth: b, arrowHeight: N }),
|
|
4013
|
-
f && dv({ strategy: "referenceHidden", ...
|
|
4013
|
+
f && dv({ strategy: "referenceHidden", ...Z })
|
|
4014
4014
|
]
|
|
4015
|
-
}), [
|
|
4015
|
+
}), [D, F] = Zc(B), ee = Ae(v);
|
|
4016
4016
|
ae(() => {
|
|
4017
|
-
|
|
4018
|
-
}, [
|
|
4019
|
-
const ue = (W =
|
|
4017
|
+
Y && (ee == null || ee());
|
|
4018
|
+
}, [Y, ee]);
|
|
4019
|
+
const ue = (W = k.arrow) == null ? void 0 : W.x, xe = (J = k.arrow) == null ? void 0 : J.y, Ve = ((K = k.arrow) == null ? void 0 : K.centerOffset) !== 0, [Pe, le] = c.useState();
|
|
4020
4020
|
return ae(() => {
|
|
4021
4021
|
g && le(window.getComputedStyle(g).zIndex);
|
|
4022
4022
|
}, [g]), /* @__PURE__ */ u(
|
|
@@ -4025,19 +4025,19 @@ var ha = "PopperContent", [vv, hv] = Lc(ha), Hc = c.forwardRef(
|
|
|
4025
4025
|
ref: G.setFloating,
|
|
4026
4026
|
"data-radix-popper-content-wrapper": "",
|
|
4027
4027
|
style: {
|
|
4028
|
-
...
|
|
4029
|
-
transform:
|
|
4028
|
+
...q,
|
|
4029
|
+
transform: Y ? q.transform : "translate(0, -200%)",
|
|
4030
4030
|
// keep off the page when measuring
|
|
4031
4031
|
minWidth: "max-content",
|
|
4032
4032
|
zIndex: Pe,
|
|
4033
4033
|
"--radix-popper-transform-origin": [
|
|
4034
|
-
(
|
|
4035
|
-
(
|
|
4034
|
+
(U = k.transformOrigin) == null ? void 0 : U.x,
|
|
4035
|
+
(_ = k.transformOrigin) == null ? void 0 : _.y
|
|
4036
4036
|
].join(" "),
|
|
4037
4037
|
// hide the content if using the hide middleware and should be hidden
|
|
4038
4038
|
// set visibility to hidden and disable pointer events so the UI behaves
|
|
4039
4039
|
// as if the PopperContent isn't there at all
|
|
4040
|
-
...(($ =
|
|
4040
|
+
...(($ = k.hide) == null ? void 0 : $.referenceHidden) && {
|
|
4041
4041
|
visibility: "hidden",
|
|
4042
4042
|
pointerEvents: "none"
|
|
4043
4043
|
}
|
|
@@ -4047,23 +4047,23 @@ var ha = "PopperContent", [vv, hv] = Lc(ha), Hc = c.forwardRef(
|
|
|
4047
4047
|
vv,
|
|
4048
4048
|
{
|
|
4049
4049
|
scope: t,
|
|
4050
|
-
placedSide:
|
|
4050
|
+
placedSide: D,
|
|
4051
4051
|
onArrowChange: P,
|
|
4052
4052
|
arrowX: ue,
|
|
4053
4053
|
arrowY: xe,
|
|
4054
4054
|
shouldHideArrow: Ve,
|
|
4055
4055
|
children: /* @__PURE__ */ u(
|
|
4056
|
-
|
|
4056
|
+
R.div,
|
|
4057
4057
|
{
|
|
4058
|
-
"data-side":
|
|
4059
|
-
"data-align":
|
|
4058
|
+
"data-side": D,
|
|
4059
|
+
"data-align": F,
|
|
4060
4060
|
...m,
|
|
4061
4061
|
ref: w,
|
|
4062
4062
|
style: {
|
|
4063
4063
|
...m.style,
|
|
4064
4064
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
4065
4065
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
4066
|
-
animation:
|
|
4066
|
+
animation: Y ? void 0 : "none"
|
|
4067
4067
|
}
|
|
4068
4068
|
}
|
|
4069
4069
|
)
|
|
@@ -4193,7 +4193,7 @@ var Sv = c.forwardRef((e, n) => {
|
|
|
4193
4193
|
[]
|
|
4194
4194
|
),
|
|
4195
4195
|
children: /* @__PURE__ */ u(
|
|
4196
|
-
|
|
4196
|
+
R.div,
|
|
4197
4197
|
{
|
|
4198
4198
|
tabIndex: g || C === 0 ? -1 : 0,
|
|
4199
4199
|
"data-orientation": r,
|
|
@@ -4204,14 +4204,14 @@ var Sv = c.forwardRef((e, n) => {
|
|
|
4204
4204
|
P.current = !0;
|
|
4205
4205
|
}),
|
|
4206
4206
|
onFocus: E(e.onFocus, (N) => {
|
|
4207
|
-
const
|
|
4208
|
-
if (N.target === N.currentTarget &&
|
|
4209
|
-
const
|
|
4210
|
-
if (N.currentTarget.dispatchEvent(
|
|
4211
|
-
const
|
|
4207
|
+
const I = !P.current;
|
|
4208
|
+
if (N.target === N.currentTarget && I && !g) {
|
|
4209
|
+
const z = new CustomEvent(ao, wv);
|
|
4210
|
+
if (N.currentTarget.dispatchEvent(z), !z.defaultPrevented) {
|
|
4211
|
+
const L = x().filter((B) => B.focusable), j = L.find((B) => B.active), Z = L.find((B) => B.id === m), q = [j, Z, ...L].filter(
|
|
4212
4212
|
Boolean
|
|
4213
|
-
).map((
|
|
4214
|
-
Uc(
|
|
4213
|
+
).map((B) => B.ref.current);
|
|
4214
|
+
Uc(q, V);
|
|
4215
4215
|
}
|
|
4216
4216
|
}
|
|
4217
4217
|
P.current = !1;
|
|
@@ -4242,7 +4242,7 @@ var Sv = c.forwardRef((e, n) => {
|
|
|
4242
4242
|
focusable: r,
|
|
4243
4243
|
active: o,
|
|
4244
4244
|
children: /* @__PURE__ */ u(
|
|
4245
|
-
|
|
4245
|
+
R.span,
|
|
4246
4246
|
{
|
|
4247
4247
|
tabIndex: d ? 0 : -1,
|
|
4248
4248
|
"data-orientation": V.orientation,
|
|
@@ -4420,54 +4420,54 @@ var Ne = "MenuContent", [jv, xa] = xt(Ne), nl = c.forwardRef(
|
|
|
4420
4420
|
onDismiss: p,
|
|
4421
4421
|
disableOutsideScroll: v,
|
|
4422
4422
|
...m
|
|
4423
|
-
} = e, h = Pt(Ne, t), g = wn(Ne, t), y = wr(t), w = _c(t), x = Lv(t), [P, C] = c.useState(null), b = c.useRef(null), N = H(n, b, h.onContentChange),
|
|
4424
|
-
var W,
|
|
4425
|
-
const
|
|
4426
|
-
(function
|
|
4427
|
-
|
|
4428
|
-
})(
|
|
4423
|
+
} = e, h = Pt(Ne, t), g = wn(Ne, t), y = wr(t), w = _c(t), x = Lv(t), [P, C] = c.useState(null), b = c.useRef(null), N = H(n, b, h.onContentChange), I = c.useRef(0), z = c.useRef(""), L = c.useRef(0), j = c.useRef(null), Z = c.useRef("right"), G = c.useRef(0), q = v ? Vn : c.Fragment, B = v ? { as: Yv, allowPinchZoom: !0 } : void 0, Y = (D) => {
|
|
4424
|
+
var W, J;
|
|
4425
|
+
const F = z.current + D, ee = x().filter((K) => !K.disabled), ue = document.activeElement, xe = (W = ee.find((K) => K.ref.current === ue)) == null ? void 0 : W.textValue, Ve = ee.map((K) => K.textValue), Pe = rh(Ve, F, xe), le = (J = ee.find((K) => K.textValue === Pe)) == null ? void 0 : J.ref.current;
|
|
4426
|
+
(function K(U) {
|
|
4427
|
+
z.current = U, window.clearTimeout(I.current), U !== "" && (I.current = window.setTimeout(() => K(""), 1e3));
|
|
4428
|
+
})(F), le && setTimeout(() => le.focus());
|
|
4429
4429
|
};
|
|
4430
|
-
c.useEffect(() => () => window.clearTimeout(
|
|
4431
|
-
const
|
|
4432
|
-
var
|
|
4433
|
-
return
|
|
4430
|
+
c.useEffect(() => () => window.clearTimeout(I.current), []), dr();
|
|
4431
|
+
const k = c.useCallback((D) => {
|
|
4432
|
+
var ee, ue;
|
|
4433
|
+
return Z.current === ((ee = j.current) == null ? void 0 : ee.side) && ah(D, (ue = j.current) == null ? void 0 : ue.area);
|
|
4434
4434
|
}, []);
|
|
4435
4435
|
return /* @__PURE__ */ u(
|
|
4436
4436
|
jv,
|
|
4437
4437
|
{
|
|
4438
4438
|
scope: t,
|
|
4439
|
-
searchRef:
|
|
4439
|
+
searchRef: z,
|
|
4440
4440
|
onItemEnter: c.useCallback(
|
|
4441
|
-
(
|
|
4442
|
-
|
|
4441
|
+
(D) => {
|
|
4442
|
+
k(D) && D.preventDefault();
|
|
4443
4443
|
},
|
|
4444
|
-
[
|
|
4444
|
+
[k]
|
|
4445
4445
|
),
|
|
4446
4446
|
onItemLeave: c.useCallback(
|
|
4447
|
-
(
|
|
4448
|
-
var
|
|
4449
|
-
|
|
4447
|
+
(D) => {
|
|
4448
|
+
var F;
|
|
4449
|
+
k(D) || ((F = b.current) == null || F.focus(), C(null));
|
|
4450
4450
|
},
|
|
4451
|
-
[
|
|
4451
|
+
[k]
|
|
4452
4452
|
),
|
|
4453
4453
|
onTriggerLeave: c.useCallback(
|
|
4454
|
-
(
|
|
4455
|
-
|
|
4454
|
+
(D) => {
|
|
4455
|
+
k(D) && D.preventDefault();
|
|
4456
4456
|
},
|
|
4457
|
-
[
|
|
4457
|
+
[k]
|
|
4458
4458
|
),
|
|
4459
|
-
pointerGraceTimerRef:
|
|
4460
|
-
onPointerGraceIntentChange: c.useCallback((
|
|
4461
|
-
j.current =
|
|
4459
|
+
pointerGraceTimerRef: L,
|
|
4460
|
+
onPointerGraceIntentChange: c.useCallback((D) => {
|
|
4461
|
+
j.current = D;
|
|
4462
4462
|
}, []),
|
|
4463
|
-
children: /* @__PURE__ */ u(
|
|
4463
|
+
children: /* @__PURE__ */ u(q, { ...B, children: /* @__PURE__ */ u(
|
|
4464
4464
|
dn,
|
|
4465
4465
|
{
|
|
4466
4466
|
asChild: !0,
|
|
4467
4467
|
trapped: o,
|
|
4468
|
-
onMountAutoFocus: E(a, (
|
|
4469
|
-
var
|
|
4470
|
-
|
|
4468
|
+
onMountAutoFocus: E(a, (D) => {
|
|
4469
|
+
var F;
|
|
4470
|
+
D.preventDefault(), (F = b.current) == null || F.focus({ preventScroll: !0 });
|
|
4471
4471
|
}),
|
|
4472
4472
|
onUnmountAutoFocus: s,
|
|
4473
4473
|
children: /* @__PURE__ */ u(
|
|
@@ -4490,8 +4490,8 @@ var Ne = "MenuContent", [jv, xa] = xt(Ne), nl = c.forwardRef(
|
|
|
4490
4490
|
loop: r,
|
|
4491
4491
|
currentTabStopId: P,
|
|
4492
4492
|
onCurrentTabStopIdChange: C,
|
|
4493
|
-
onEntryFocus: E(l, (
|
|
4494
|
-
g.isUsingKeyboardRef.current ||
|
|
4493
|
+
onEntryFocus: E(l, (D) => {
|
|
4494
|
+
g.isUsingKeyboardRef.current || D.preventDefault();
|
|
4495
4495
|
}),
|
|
4496
4496
|
preventScrollOnEntryFocus: !0,
|
|
4497
4497
|
children: /* @__PURE__ */ u(
|
|
@@ -4506,25 +4506,25 @@ var Ne = "MenuContent", [jv, xa] = xt(Ne), nl = c.forwardRef(
|
|
|
4506
4506
|
...m,
|
|
4507
4507
|
ref: N,
|
|
4508
4508
|
style: { outline: "none", ...m.style },
|
|
4509
|
-
onKeyDown: E(m.onKeyDown, (
|
|
4510
|
-
const
|
|
4511
|
-
|
|
4509
|
+
onKeyDown: E(m.onKeyDown, (D) => {
|
|
4510
|
+
const ee = D.target.closest("[data-radix-menu-content]") === D.currentTarget, ue = D.ctrlKey || D.altKey || D.metaKey, xe = D.key.length === 1;
|
|
4511
|
+
ee && (D.key === "Tab" && D.preventDefault(), !ue && xe && Y(D.key));
|
|
4512
4512
|
const Ve = b.current;
|
|
4513
|
-
if (
|
|
4514
|
-
|
|
4513
|
+
if (D.target !== Ve || !zv.includes(D.key)) return;
|
|
4514
|
+
D.preventDefault();
|
|
4515
4515
|
const le = x().filter((W) => !W.disabled).map((W) => W.ref.current);
|
|
4516
|
-
Jc.includes(
|
|
4516
|
+
Jc.includes(D.key) && le.reverse(), th(le);
|
|
4517
4517
|
}),
|
|
4518
|
-
onBlur: E(e.onBlur, (
|
|
4519
|
-
|
|
4518
|
+
onBlur: E(e.onBlur, (D) => {
|
|
4519
|
+
D.currentTarget.contains(D.target) || (window.clearTimeout(I.current), z.current = "");
|
|
4520
4520
|
}),
|
|
4521
4521
|
onPointerMove: E(
|
|
4522
4522
|
e.onPointerMove,
|
|
4523
|
-
rn((
|
|
4524
|
-
const
|
|
4525
|
-
if (
|
|
4526
|
-
const ue =
|
|
4527
|
-
|
|
4523
|
+
rn((D) => {
|
|
4524
|
+
const F = D.target, ee = G.current !== D.clientX;
|
|
4525
|
+
if (D.currentTarget.contains(F) && ee) {
|
|
4526
|
+
const ue = D.clientX > G.current ? "right" : "left";
|
|
4527
|
+
Z.current = ue, G.current = D.clientX;
|
|
4528
4528
|
}
|
|
4529
4529
|
})
|
|
4530
4530
|
)
|
|
@@ -4544,14 +4544,14 @@ nl.displayName = Ne;
|
|
|
4544
4544
|
var Qv = "MenuGroup", Na = c.forwardRef(
|
|
4545
4545
|
(e, n) => {
|
|
4546
4546
|
const { __scopeMenu: t, ...r } = e;
|
|
4547
|
-
return /* @__PURE__ */ u(
|
|
4547
|
+
return /* @__PURE__ */ u(R.div, { role: "group", ...r, ref: n });
|
|
4548
4548
|
}
|
|
4549
4549
|
);
|
|
4550
4550
|
Na.displayName = Qv;
|
|
4551
4551
|
var Fv = "MenuLabel", rl = c.forwardRef(
|
|
4552
4552
|
(e, n) => {
|
|
4553
4553
|
const { __scopeMenu: t, ...r } = e;
|
|
4554
|
-
return /* @__PURE__ */ u(
|
|
4554
|
+
return /* @__PURE__ */ u(R.div, { ...r, ref: n });
|
|
4555
4555
|
}
|
|
4556
4556
|
);
|
|
4557
4557
|
rl.displayName = Fv;
|
|
@@ -4601,7 +4601,7 @@ var ol = c.forwardRef(
|
|
|
4601
4601
|
disabled: r,
|
|
4602
4602
|
textValue: o ?? f,
|
|
4603
4603
|
children: /* @__PURE__ */ u(ba, { asChild: !0, ...i, focusable: !r, children: /* @__PURE__ */ u(
|
|
4604
|
-
|
|
4604
|
+
R.div,
|
|
4605
4605
|
{
|
|
4606
4606
|
role: "menuitem",
|
|
4607
4607
|
"data-highlighted": V ? "" : void 0,
|
|
@@ -4693,7 +4693,7 @@ var Ca = "MenuItemIndicator", [Al, Kv] = xt(
|
|
|
4693
4693
|
{
|
|
4694
4694
|
present: r || Un(a.checked) || a.checked === !0,
|
|
4695
4695
|
children: /* @__PURE__ */ u(
|
|
4696
|
-
|
|
4696
|
+
R.span,
|
|
4697
4697
|
{
|
|
4698
4698
|
...o,
|
|
4699
4699
|
ref: n,
|
|
@@ -4709,7 +4709,7 @@ var _v = "MenuSeparator", dl = c.forwardRef(
|
|
|
4709
4709
|
(e, n) => {
|
|
4710
4710
|
const { __scopeMenu: t, ...r } = e;
|
|
4711
4711
|
return /* @__PURE__ */ u(
|
|
4712
|
-
|
|
4712
|
+
R.div,
|
|
4713
4713
|
{
|
|
4714
4714
|
role: "separator",
|
|
4715
4715
|
"aria-orientation": "horizontal",
|
|
@@ -4915,7 +4915,7 @@ var yl = "DropdownMenuTrigger", wl = c.forwardRef(
|
|
|
4915
4915
|
(e, n) => {
|
|
4916
4916
|
const { __scopeDropdownMenu: t, disabled: r = !1, ...o } = e, a = gl(yl, t), s = fe(t);
|
|
4917
4917
|
return /* @__PURE__ */ u(ih, { asChild: !0, ...s, children: /* @__PURE__ */ u(
|
|
4918
|
-
|
|
4918
|
+
R.button,
|
|
4919
4919
|
{
|
|
4920
4920
|
type: "button",
|
|
4921
4921
|
id: a.triggerId,
|
|
@@ -5096,7 +5096,7 @@ var Wl = "HoverCardTrigger", Hl = c.forwardRef(
|
|
|
5096
5096
|
(e, n) => {
|
|
5097
5097
|
const { __scopeHoverCard: t, ...r } = e, o = Sr(Wl, t), a = Cr(t);
|
|
5098
5098
|
return /* @__PURE__ */ u(Bt, { asChild: !0, ...a, children: /* @__PURE__ */ u(
|
|
5099
|
-
|
|
5099
|
+
R.a,
|
|
5100
5100
|
{
|
|
5101
5101
|
"data-state": o.open ? "open" : "closed",
|
|
5102
5102
|
...r,
|
|
@@ -5265,7 +5265,7 @@ Fl.displayName = Ql;
|
|
|
5265
5265
|
var ql = "PopoverTrigger", Ul = c.forwardRef(
|
|
5266
5266
|
(e, n) => {
|
|
5267
5267
|
const { __scopePopover: t, ...r } = e, o = it(ql, t), a = xn(t), s = H(n, o.triggerRef), i = /* @__PURE__ */ u(
|
|
5268
|
-
|
|
5268
|
+
R.button,
|
|
5269
5269
|
{
|
|
5270
5270
|
type: "button",
|
|
5271
5271
|
"aria-haspopup": "dialog",
|
|
@@ -5411,7 +5411,7 @@ var cg = /* @__PURE__ */ nt("PopoverContent.RemoveScroll"), lg = c.forwardRef(
|
|
|
5411
5411
|
(e, n) => {
|
|
5412
5412
|
const { __scopePopover: t, ...r } = e, o = it($l, t);
|
|
5413
5413
|
return /* @__PURE__ */ u(
|
|
5414
|
-
|
|
5414
|
+
R.button,
|
|
5415
5415
|
{
|
|
5416
5416
|
type: "button",
|
|
5417
5417
|
...r,
|
|
@@ -5446,7 +5446,7 @@ var Vg = Yl, fg = Fl, pg = Ul, mg = Jl, vg = Kl, hg = eA, Ta = "Progress", Ma =
|
|
|
5446
5446
|
r !== null && !Rs(r, i) && console.error(Pg(`${r}`, "Progress"));
|
|
5447
5447
|
const l = Rs(r, i) ? r : null, A = _n(l) ? a(l, i) : void 0;
|
|
5448
5448
|
return /* @__PURE__ */ u(bg, { scope: t, value: l, max: i, children: /* @__PURE__ */ u(
|
|
5449
|
-
|
|
5449
|
+
R.div,
|
|
5450
5450
|
{
|
|
5451
5451
|
"aria-valuemax": i,
|
|
5452
5452
|
"aria-valuemin": 0,
|
|
@@ -5467,7 +5467,7 @@ var rA = "ProgressIndicator", oA = c.forwardRef(
|
|
|
5467
5467
|
(e, n) => {
|
|
5468
5468
|
const { __scopeProgress: t, ...r } = e, o = yg(rA, t);
|
|
5469
5469
|
return /* @__PURE__ */ u(
|
|
5470
|
-
|
|
5470
|
+
R.div,
|
|
5471
5471
|
{
|
|
5472
5472
|
"data-state": aA(o.value, o.max),
|
|
5473
5473
|
"data-value": o.value ?? void 0,
|
|
@@ -5518,9 +5518,9 @@ var Ng = nA, Cg = oA, Da = "Radio", [Sg, sA] = re(Da), [Eg, Og] = Sg(Da), iA = c
|
|
|
5518
5518
|
form: A,
|
|
5519
5519
|
...V
|
|
5520
5520
|
} = e, [d, f] = c.useState(null), p = H(n, (h) => f(h)), v = c.useRef(!1), m = d ? A || !!d.closest("form") : !0;
|
|
5521
|
-
return /* @__PURE__ */
|
|
5521
|
+
return /* @__PURE__ */ O(Eg, { scope: t, checked: o, disabled: s, children: [
|
|
5522
5522
|
/* @__PURE__ */ u(
|
|
5523
|
-
|
|
5523
|
+
R.button,
|
|
5524
5524
|
{
|
|
5525
5525
|
type: "button",
|
|
5526
5526
|
role: "radio",
|
|
@@ -5558,7 +5558,7 @@ var cA = "RadioIndicator", lA = c.forwardRef(
|
|
|
5558
5558
|
(e, n) => {
|
|
5559
5559
|
const { __scopeRadio: t, forceMount: r, ...o } = e, a = Og(cA, t);
|
|
5560
5560
|
return /* @__PURE__ */ u(oe, { present: r || a.checked, children: /* @__PURE__ */ u(
|
|
5561
|
-
|
|
5561
|
+
R.span,
|
|
5562
5562
|
{
|
|
5563
5563
|
"data-state": uA(a.checked),
|
|
5564
5564
|
"data-disabled": a.disabled ? "" : void 0,
|
|
@@ -5590,7 +5590,7 @@ var Tg = "RadioBubbleInput", AA = c.forwardRef(
|
|
|
5590
5590
|
p.call(V, t), V.dispatchEvent(v);
|
|
5591
5591
|
}
|
|
5592
5592
|
}, [l, t, r]), /* @__PURE__ */ u(
|
|
5593
|
-
|
|
5593
|
+
R.input,
|
|
5594
5594
|
{
|
|
5595
5595
|
type: "radio",
|
|
5596
5596
|
"aria-hidden": !0,
|
|
@@ -5655,7 +5655,7 @@ var Mg = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Or = "RadioGroup",
|
|
|
5655
5655
|
dir: v,
|
|
5656
5656
|
loop: V,
|
|
5657
5657
|
children: /* @__PURE__ */ u(
|
|
5658
|
-
|
|
5658
|
+
R.div,
|
|
5659
5659
|
{
|
|
5660
5660
|
role: "radiogroup",
|
|
5661
5661
|
"aria-required": s,
|
|
@@ -5734,13 +5734,13 @@ var za = "ScrollArea", [hA] = re(za), [Wg, Ce] = hA(za), gA = c.forwardRef(
|
|
|
5734
5734
|
dir: o,
|
|
5735
5735
|
scrollHideDelay: a = 600,
|
|
5736
5736
|
...s
|
|
5737
|
-
} = e, [i, l] = c.useState(null), [A, V] = c.useState(null), [d, f] = c.useState(null), [p, v] = c.useState(null), [m, h] = c.useState(null), [g, y] = c.useState(0), [w, x] = c.useState(0), [P, C] = c.useState(!1), [b, N] = c.useState(!1),
|
|
5737
|
+
} = e, [i, l] = c.useState(null), [A, V] = c.useState(null), [d, f] = c.useState(null), [p, v] = c.useState(null), [m, h] = c.useState(null), [g, y] = c.useState(0), [w, x] = c.useState(0), [P, C] = c.useState(!1), [b, N] = c.useState(!1), I = H(n, (L) => l(L)), z = st(o);
|
|
5738
5738
|
return /* @__PURE__ */ u(
|
|
5739
5739
|
Wg,
|
|
5740
5740
|
{
|
|
5741
5741
|
scope: t,
|
|
5742
5742
|
type: r,
|
|
5743
|
-
dir:
|
|
5743
|
+
dir: z,
|
|
5744
5744
|
scrollHideDelay: a,
|
|
5745
5745
|
scrollArea: i,
|
|
5746
5746
|
viewport: A,
|
|
@@ -5758,11 +5758,11 @@ var za = "ScrollArea", [hA] = re(za), [Wg, Ce] = hA(za), gA = c.forwardRef(
|
|
|
5758
5758
|
onCornerWidthChange: y,
|
|
5759
5759
|
onCornerHeightChange: x,
|
|
5760
5760
|
children: /* @__PURE__ */ u(
|
|
5761
|
-
|
|
5761
|
+
R.div,
|
|
5762
5762
|
{
|
|
5763
|
-
dir:
|
|
5763
|
+
dir: z,
|
|
5764
5764
|
...s,
|
|
5765
|
-
ref:
|
|
5765
|
+
ref: I,
|
|
5766
5766
|
style: {
|
|
5767
5767
|
position: "relative",
|
|
5768
5768
|
// Pass corner sizes as CSS vars to reduce re-renders of context consumers
|
|
@@ -5780,7 +5780,7 @@ gA.displayName = za;
|
|
|
5780
5780
|
var bA = "ScrollAreaViewport", yA = c.forwardRef(
|
|
5781
5781
|
(e, n) => {
|
|
5782
5782
|
const { __scopeScrollArea: t, children: r, nonce: o, ...a } = e, s = Ce(bA, t), i = c.useRef(null), l = H(n, i, s.onViewportChange);
|
|
5783
|
-
return /* @__PURE__ */
|
|
5783
|
+
return /* @__PURE__ */ O(ce, { children: [
|
|
5784
5784
|
/* @__PURE__ */ u(
|
|
5785
5785
|
"style",
|
|
5786
5786
|
{
|
|
@@ -5791,7 +5791,7 @@ var bA = "ScrollAreaViewport", yA = c.forwardRef(
|
|
|
5791
5791
|
}
|
|
5792
5792
|
),
|
|
5793
5793
|
/* @__PURE__ */ u(
|
|
5794
|
-
|
|
5794
|
+
R.div,
|
|
5795
5795
|
{
|
|
5796
5796
|
"data-radix-scroll-area-viewport": "",
|
|
5797
5797
|
...a,
|
|
@@ -6056,19 +6056,19 @@ var Hg = c.forwardRef((e, n) => {
|
|
|
6056
6056
|
onWheelScroll: V,
|
|
6057
6057
|
onResize: d,
|
|
6058
6058
|
...f
|
|
6059
|
-
} = e, p = Ce(je, t), [v, m] = c.useState(null), h = H(n, (
|
|
6060
|
-
function N(
|
|
6059
|
+
} = e, p = Ce(je, t), [v, m] = c.useState(null), h = H(n, (I) => m(I)), g = c.useRef(null), y = c.useRef(""), w = p.viewport, x = r.content - r.viewport, P = Ae(V), C = Ae(l), b = Mr(d, 10);
|
|
6060
|
+
function N(I) {
|
|
6061
6061
|
if (g.current) {
|
|
6062
|
-
const
|
|
6063
|
-
A({ x:
|
|
6062
|
+
const z = I.clientX - g.current.left, L = I.clientY - g.current.top;
|
|
6063
|
+
A({ x: z, y: L });
|
|
6064
6064
|
}
|
|
6065
6065
|
}
|
|
6066
6066
|
return c.useEffect(() => {
|
|
6067
|
-
const
|
|
6068
|
-
const
|
|
6069
|
-
(v == null ? void 0 : v.contains(
|
|
6067
|
+
const I = (z) => {
|
|
6068
|
+
const L = z.target;
|
|
6069
|
+
(v == null ? void 0 : v.contains(L)) && P(z, x);
|
|
6070
6070
|
};
|
|
6071
|
-
return document.addEventListener("wheel",
|
|
6071
|
+
return document.addEventListener("wheel", I, { passive: !1 }), () => document.removeEventListener("wheel", I, { passive: !1 });
|
|
6072
6072
|
}, [w, v, x, P]), c.useEffect(C, [r, C]), It(v, b), It(p.content, b), /* @__PURE__ */ u(
|
|
6073
6073
|
Yg,
|
|
6074
6074
|
{
|
|
@@ -6080,18 +6080,18 @@ var Hg = c.forwardRef((e, n) => {
|
|
|
6080
6080
|
onThumbPositionChange: C,
|
|
6081
6081
|
onThumbPointerDown: Ae(i),
|
|
6082
6082
|
children: /* @__PURE__ */ u(
|
|
6083
|
-
|
|
6083
|
+
R.div,
|
|
6084
6084
|
{
|
|
6085
6085
|
...f,
|
|
6086
6086
|
ref: h,
|
|
6087
6087
|
style: { position: "absolute", ...f.style },
|
|
6088
|
-
onPointerDown: E(e.onPointerDown, (
|
|
6089
|
-
|
|
6088
|
+
onPointerDown: E(e.onPointerDown, (I) => {
|
|
6089
|
+
I.button === 0 && (I.target.setPointerCapture(I.pointerId), g.current = v.getBoundingClientRect(), y.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", p.viewport && (p.viewport.style.scrollBehavior = "auto"), N(I));
|
|
6090
6090
|
}),
|
|
6091
6091
|
onPointerMove: E(e.onPointerMove, N),
|
|
6092
|
-
onPointerUp: E(e.onPointerUp, (
|
|
6093
|
-
const
|
|
6094
|
-
|
|
6092
|
+
onPointerUp: E(e.onPointerUp, (I) => {
|
|
6093
|
+
const z = I.target;
|
|
6094
|
+
z.hasPointerCapture(I.pointerId) && z.releasePointerCapture(I.pointerId), document.body.style.webkitUserSelect = y.current, p.viewport && (p.viewport.style.scrollBehavior = ""), g.current = null;
|
|
6095
6095
|
})
|
|
6096
6096
|
}
|
|
6097
6097
|
)
|
|
@@ -6122,7 +6122,7 @@ var Hg = c.forwardRef((e, n) => {
|
|
|
6122
6122
|
return i(), d.addEventListener("scroll", f), () => d.removeEventListener("scroll", f);
|
|
6123
6123
|
}
|
|
6124
6124
|
}, [a.viewport, V, i]), /* @__PURE__ */ u(
|
|
6125
|
-
|
|
6125
|
+
R.div,
|
|
6126
6126
|
{
|
|
6127
6127
|
"data-state": s.hasThumb ? "visible" : "hidden",
|
|
6128
6128
|
...o,
|
|
@@ -6160,7 +6160,7 @@ var Fg = c.forwardRef((e, n) => {
|
|
|
6160
6160
|
const V = ((d = o.scrollbarY) == null ? void 0 : d.offsetWidth) || 0;
|
|
6161
6161
|
o.onCornerWidthChange(V), s(V);
|
|
6162
6162
|
}), A ? /* @__PURE__ */ u(
|
|
6163
|
-
|
|
6163
|
+
R.div,
|
|
6164
6164
|
{
|
|
6165
6165
|
...r,
|
|
6166
6166
|
ref: n,
|
|
@@ -6257,13 +6257,13 @@ var MA = gA, DA = yA, wo = wA, xo = CA, Jg = SA, Kg = [" ", "Enter", "ArrowUp",
|
|
|
6257
6257
|
defaultProp: o ?? !1,
|
|
6258
6258
|
onChange: a,
|
|
6259
6259
|
caller: ht
|
|
6260
|
-
}), [
|
|
6260
|
+
}), [I, z] = de({
|
|
6261
6261
|
prop: s,
|
|
6262
6262
|
defaultProp: i,
|
|
6263
6263
|
onChange: l,
|
|
6264
6264
|
caller: ht
|
|
6265
|
-
}),
|
|
6266
|
-
return /* @__PURE__ */ u(vn, { ...m, children: /* @__PURE__ */
|
|
6265
|
+
}), L = c.useRef(null), j = h ? v || !!h.closest("form") : !0, [Z, G] = c.useState(/* @__PURE__ */ new Set()), q = Array.from(Z).map((B) => B.props.value).join(";");
|
|
6266
|
+
return /* @__PURE__ */ u(vn, { ...m, children: /* @__PURE__ */ O(
|
|
6267
6267
|
eb,
|
|
6268
6268
|
{
|
|
6269
6269
|
required: p,
|
|
@@ -6275,31 +6275,31 @@ var MA = gA, DA = yA, wo = wA, xo = CA, Jg = SA, Kg = [" ", "Enter", "ArrowUp",
|
|
|
6275
6275
|
valueNodeHasChildren: x,
|
|
6276
6276
|
onValueNodeHasChildrenChange: P,
|
|
6277
6277
|
contentId: ve(),
|
|
6278
|
-
value:
|
|
6279
|
-
onValueChange:
|
|
6278
|
+
value: I,
|
|
6279
|
+
onValueChange: z,
|
|
6280
6280
|
open: b,
|
|
6281
6281
|
onOpenChange: N,
|
|
6282
6282
|
dir: C,
|
|
6283
|
-
triggerPointerDownPosRef:
|
|
6283
|
+
triggerPointerDownPosRef: L,
|
|
6284
6284
|
disabled: f,
|
|
6285
6285
|
children: [
|
|
6286
6286
|
/* @__PURE__ */ u(Dr.Provider, { scope: n, children: /* @__PURE__ */ u(
|
|
6287
6287
|
tb,
|
|
6288
6288
|
{
|
|
6289
6289
|
scope: e.__scopeSelect,
|
|
6290
|
-
onNativeOptionAdd: c.useCallback((
|
|
6291
|
-
G((
|
|
6290
|
+
onNativeOptionAdd: c.useCallback((B) => {
|
|
6291
|
+
G((Y) => new Set(Y).add(B));
|
|
6292
6292
|
}, []),
|
|
6293
|
-
onNativeOptionRemove: c.useCallback((
|
|
6294
|
-
G((
|
|
6295
|
-
const
|
|
6296
|
-
return
|
|
6293
|
+
onNativeOptionRemove: c.useCallback((B) => {
|
|
6294
|
+
G((Y) => {
|
|
6295
|
+
const k = new Set(Y);
|
|
6296
|
+
return k.delete(B), k;
|
|
6297
6297
|
});
|
|
6298
6298
|
}, []),
|
|
6299
6299
|
children: t
|
|
6300
6300
|
}
|
|
6301
6301
|
) }),
|
|
6302
|
-
j ? /* @__PURE__ */
|
|
6302
|
+
j ? /* @__PURE__ */ O(
|
|
6303
6303
|
nu,
|
|
6304
6304
|
{
|
|
6305
6305
|
"aria-hidden": !0,
|
|
@@ -6307,16 +6307,16 @@ var MA = gA, DA = yA, wo = wA, xo = CA, Jg = SA, Kg = [" ", "Enter", "ArrowUp",
|
|
|
6307
6307
|
tabIndex: -1,
|
|
6308
6308
|
name: V,
|
|
6309
6309
|
autoComplete: d,
|
|
6310
|
-
value:
|
|
6311
|
-
onChange: (
|
|
6310
|
+
value: I,
|
|
6311
|
+
onChange: (B) => z(B.target.value),
|
|
6312
6312
|
disabled: f,
|
|
6313
6313
|
form: v,
|
|
6314
6314
|
children: [
|
|
6315
|
-
|
|
6316
|
-
Array.from(
|
|
6315
|
+
I === void 0 ? /* @__PURE__ */ u("option", { value: "" }) : null,
|
|
6316
|
+
Array.from(Z)
|
|
6317
6317
|
]
|
|
6318
6318
|
},
|
|
6319
|
-
|
|
6319
|
+
q
|
|
6320
6320
|
) : null
|
|
6321
6321
|
]
|
|
6322
6322
|
}
|
|
@@ -6335,7 +6335,7 @@ var IA = "SelectTrigger", RA = c.forwardRef(
|
|
|
6335
6335
|
});
|
|
6336
6336
|
};
|
|
6337
6337
|
return /* @__PURE__ */ u(Bt, { asChild: !0, ...a, children: /* @__PURE__ */ u(
|
|
6338
|
-
|
|
6338
|
+
R.button,
|
|
6339
6339
|
{
|
|
6340
6340
|
type: "button",
|
|
6341
6341
|
role: "combobox",
|
|
@@ -6373,7 +6373,7 @@ var LA = "SelectValue", kA = c.forwardRef(
|
|
|
6373
6373
|
return ae(() => {
|
|
6374
6374
|
A(V);
|
|
6375
6375
|
}, [A, V]), /* @__PURE__ */ u(
|
|
6376
|
-
|
|
6376
|
+
R.span,
|
|
6377
6377
|
{
|
|
6378
6378
|
...i,
|
|
6379
6379
|
ref: d,
|
|
@@ -6387,7 +6387,7 @@ kA.displayName = LA;
|
|
|
6387
6387
|
var rb = "SelectIcon", BA = c.forwardRef(
|
|
6388
6388
|
(e, n) => {
|
|
6389
6389
|
const { __scopeSelect: t, children: r, ...o } = e;
|
|
6390
|
-
return /* @__PURE__ */ u(
|
|
6390
|
+
return /* @__PURE__ */ u(R.span, { "aria-hidden": !0, ...o, ref: n, children: r || "▼" });
|
|
6391
6391
|
}
|
|
6392
6392
|
);
|
|
6393
6393
|
BA.displayName = rb;
|
|
@@ -6431,62 +6431,62 @@ var Ee = 10, [HA, lt] = Wt(gt), ab = "SelectContentImpl", sb = /* @__PURE__ */ n
|
|
|
6431
6431
|
avoidCollisions: h,
|
|
6432
6432
|
//
|
|
6433
6433
|
...g
|
|
6434
|
-
} = e, y = ct(gt, t), [w, x] = c.useState(null), [P, C] = c.useState(null), b = H(n, (W) => x(W)), [N,
|
|
6434
|
+
} = e, y = ct(gt, t), [w, x] = c.useState(null), [P, C] = c.useState(null), b = H(n, (W) => x(W)), [N, I] = c.useState(null), [z, L] = c.useState(
|
|
6435
6435
|
null
|
|
6436
|
-
), j = zr(t), [
|
|
6436
|
+
), j = zr(t), [Z, G] = c.useState(!1), q = c.useRef(!1);
|
|
6437
6437
|
c.useEffect(() => {
|
|
6438
6438
|
if (w) return fr(w);
|
|
6439
6439
|
}, [w]), dr();
|
|
6440
|
-
const
|
|
6440
|
+
const B = c.useCallback(
|
|
6441
6441
|
(W) => {
|
|
6442
|
-
const [
|
|
6442
|
+
const [J, ...K] = j().map(($) => $.ref.current), [U] = K.slice(-1), _ = document.activeElement;
|
|
6443
6443
|
for (const $ of W)
|
|
6444
|
-
if ($ ===
|
|
6444
|
+
if ($ === _ || ($ == null || $.scrollIntoView({ block: "nearest" }), $ === J && P && (P.scrollTop = 0), $ === U && P && (P.scrollTop = P.scrollHeight), $ == null || $.focus(), document.activeElement !== _)) return;
|
|
6445
6445
|
},
|
|
6446
6446
|
[j, P]
|
|
6447
|
-
),
|
|
6448
|
-
() =>
|
|
6449
|
-
[
|
|
6447
|
+
), Y = c.useCallback(
|
|
6448
|
+
() => B([N, w]),
|
|
6449
|
+
[B, N, w]
|
|
6450
6450
|
);
|
|
6451
6451
|
c.useEffect(() => {
|
|
6452
|
-
|
|
6453
|
-
}, [
|
|
6454
|
-
const { onOpenChange:
|
|
6452
|
+
Z && Y();
|
|
6453
|
+
}, [Z, Y]);
|
|
6454
|
+
const { onOpenChange: k, triggerPointerDownPosRef: D } = y;
|
|
6455
6455
|
c.useEffect(() => {
|
|
6456
6456
|
if (w) {
|
|
6457
6457
|
let W = { x: 0, y: 0 };
|
|
6458
|
-
const
|
|
6459
|
-
var
|
|
6458
|
+
const J = (U) => {
|
|
6459
|
+
var _, $;
|
|
6460
6460
|
W = {
|
|
6461
|
-
x: Math.abs(Math.round(
|
|
6462
|
-
y: Math.abs(Math.round(
|
|
6461
|
+
x: Math.abs(Math.round(U.pageX) - (((_ = D.current) == null ? void 0 : _.x) ?? 0)),
|
|
6462
|
+
y: Math.abs(Math.round(U.pageY) - ((($ = D.current) == null ? void 0 : $.y) ?? 0))
|
|
6463
6463
|
};
|
|
6464
|
-
},
|
|
6465
|
-
W.x <= 10 && W.y <= 10 ?
|
|
6464
|
+
}, K = (U) => {
|
|
6465
|
+
W.x <= 10 && W.y <= 10 ? U.preventDefault() : w.contains(U.target) || k(!1), document.removeEventListener("pointermove", J), D.current = null;
|
|
6466
6466
|
};
|
|
6467
|
-
return
|
|
6468
|
-
document.removeEventListener("pointermove",
|
|
6467
|
+
return D.current !== null && (document.addEventListener("pointermove", J), document.addEventListener("pointerup", K, { capture: !0, once: !0 })), () => {
|
|
6468
|
+
document.removeEventListener("pointermove", J), document.removeEventListener("pointerup", K, { capture: !0 });
|
|
6469
6469
|
};
|
|
6470
6470
|
}
|
|
6471
|
-
}, [w,
|
|
6472
|
-
const W = () =>
|
|
6471
|
+
}, [w, k, D]), c.useEffect(() => {
|
|
6472
|
+
const W = () => k(!1);
|
|
6473
6473
|
return window.addEventListener("blur", W), window.addEventListener("resize", W), () => {
|
|
6474
6474
|
window.removeEventListener("blur", W), window.removeEventListener("resize", W);
|
|
6475
6475
|
};
|
|
6476
|
-
}, [
|
|
6477
|
-
const [
|
|
6478
|
-
const
|
|
6479
|
-
|
|
6476
|
+
}, [k]);
|
|
6477
|
+
const [F, ee] = ou((W) => {
|
|
6478
|
+
const J = j().filter((_) => !_.disabled), K = J.find((_) => _.ref.current === document.activeElement), U = au(J, W, K);
|
|
6479
|
+
U && setTimeout(() => U.ref.current.focus());
|
|
6480
6480
|
}), ue = c.useCallback(
|
|
6481
|
-
(W,
|
|
6482
|
-
const
|
|
6483
|
-
(y.value !== void 0 && y.value ===
|
|
6481
|
+
(W, J, K) => {
|
|
6482
|
+
const U = !q.current && !K;
|
|
6483
|
+
(y.value !== void 0 && y.value === J || U) && (I(W), U && (q.current = !0));
|
|
6484
6484
|
},
|
|
6485
6485
|
[y.value]
|
|
6486
6486
|
), xe = c.useCallback(() => w == null ? void 0 : w.focus(), [w]), Ve = c.useCallback(
|
|
6487
|
-
(W,
|
|
6488
|
-
const
|
|
6489
|
-
(y.value !== void 0 && y.value ===
|
|
6487
|
+
(W, J, K) => {
|
|
6488
|
+
const U = !q.current && !K;
|
|
6489
|
+
(y.value !== void 0 && y.value === J || U) && L(W);
|
|
6490
6490
|
},
|
|
6491
6491
|
[y.value]
|
|
6492
6492
|
), Pe = r === "popper" ? Po : GA, le = Pe === Po ? {
|
|
@@ -6512,11 +6512,11 @@ var Ee = 10, [HA, lt] = Wt(gt), ab = "SelectContentImpl", sb = /* @__PURE__ */ n
|
|
|
6512
6512
|
selectedItem: N,
|
|
6513
6513
|
onItemLeave: xe,
|
|
6514
6514
|
itemTextRefCallback: Ve,
|
|
6515
|
-
focusSelectedItem:
|
|
6516
|
-
selectedItemText:
|
|
6515
|
+
focusSelectedItem: Y,
|
|
6516
|
+
selectedItemText: z,
|
|
6517
6517
|
position: r,
|
|
6518
|
-
isPositioned:
|
|
6519
|
-
searchRef:
|
|
6518
|
+
isPositioned: Z,
|
|
6519
|
+
searchRef: F,
|
|
6520
6520
|
children: /* @__PURE__ */ u(Vn, { as: sb, allowPinchZoom: !0, children: /* @__PURE__ */ u(
|
|
6521
6521
|
dn,
|
|
6522
6522
|
{
|
|
@@ -6526,8 +6526,8 @@ var Ee = 10, [HA, lt] = Wt(gt), ab = "SelectContentImpl", sb = /* @__PURE__ */ n
|
|
|
6526
6526
|
W.preventDefault();
|
|
6527
6527
|
},
|
|
6528
6528
|
onUnmountAutoFocus: E(o, (W) => {
|
|
6529
|
-
var
|
|
6530
|
-
(
|
|
6529
|
+
var J;
|
|
6530
|
+
(J = y.trigger) == null || J.focus({ preventScroll: !0 }), W.preventDefault();
|
|
6531
6531
|
}),
|
|
6532
6532
|
children: /* @__PURE__ */ u(
|
|
6533
6533
|
yt,
|
|
@@ -6559,14 +6559,14 @@ var Ee = 10, [HA, lt] = Wt(gt), ab = "SelectContentImpl", sb = /* @__PURE__ */ n
|
|
|
6559
6559
|
...g.style
|
|
6560
6560
|
},
|
|
6561
6561
|
onKeyDown: E(g.onKeyDown, (W) => {
|
|
6562
|
-
const
|
|
6563
|
-
if (W.key === "Tab" && W.preventDefault(), !
|
|
6564
|
-
let
|
|
6565
|
-
if (["ArrowUp", "End"].includes(W.key) && (
|
|
6566
|
-
const
|
|
6567
|
-
|
|
6562
|
+
const J = W.ctrlKey || W.altKey || W.metaKey;
|
|
6563
|
+
if (W.key === "Tab" && W.preventDefault(), !J && W.key.length === 1 && ee(W.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(W.key)) {
|
|
6564
|
+
let U = j().filter((_) => !_.disabled).map((_) => _.ref.current);
|
|
6565
|
+
if (["ArrowUp", "End"].includes(W.key) && (U = U.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(W.key)) {
|
|
6566
|
+
const _ = W.target, $ = U.indexOf(_);
|
|
6567
|
+
U = U.slice($ + 1);
|
|
6568
6568
|
}
|
|
6569
|
-
setTimeout(() =>
|
|
6569
|
+
setTimeout(() => B(U)), W.preventDefault();
|
|
6570
6570
|
}
|
|
6571
6571
|
})
|
|
6572
6572
|
}
|
|
@@ -6583,46 +6583,46 @@ jA.displayName = ab;
|
|
|
6583
6583
|
var ib = "SelectItemAlignedPosition", GA = c.forwardRef((e, n) => {
|
|
6584
6584
|
const { __scopeSelect: t, onPlaced: r, ...o } = e, a = ct(gt, t), s = lt(gt, t), [i, l] = c.useState(null), [A, V] = c.useState(null), d = H(n, (b) => V(b)), f = zr(t), p = c.useRef(!1), v = c.useRef(!0), { viewport: m, selectedItem: h, selectedItemText: g, focusSelectedItem: y } = s, w = c.useCallback(() => {
|
|
6585
6585
|
if (a.trigger && a.valueNode && i && A && m && h && g) {
|
|
6586
|
-
const b = a.trigger.getBoundingClientRect(), N = A.getBoundingClientRect(),
|
|
6586
|
+
const b = a.trigger.getBoundingClientRect(), N = A.getBoundingClientRect(), I = a.valueNode.getBoundingClientRect(), z = g.getBoundingClientRect();
|
|
6587
6587
|
if (a.dir !== "rtl") {
|
|
6588
|
-
const
|
|
6588
|
+
const _ = z.left - N.left, $ = I.left - _, ie = b.left - $, Q = b.width + ie, ne = Math.max(Q, N.width), ze = window.innerWidth - Ee, me = on($, [
|
|
6589
6589
|
Ee,
|
|
6590
6590
|
// Prevents the content from going off the starting edge of the
|
|
6591
6591
|
// viewport. It may still go off the ending edge, but this can be
|
|
6592
6592
|
// controlled by the user since they may want to manage overflow in a
|
|
6593
6593
|
// specific way.
|
|
6594
6594
|
// https://github.com/radix-ui/primitives/issues/2049
|
|
6595
|
-
Math.max(Ee, ze -
|
|
6595
|
+
Math.max(Ee, ze - ne)
|
|
6596
6596
|
]);
|
|
6597
6597
|
i.style.minWidth = Q + "px", i.style.left = me + "px";
|
|
6598
6598
|
} else {
|
|
6599
|
-
const
|
|
6599
|
+
const _ = N.right - z.right, $ = window.innerWidth - I.right - _, ie = window.innerWidth - b.right - $, Q = b.width + ie, ne = Math.max(Q, N.width), ze = window.innerWidth - Ee, me = on($, [
|
|
6600
6600
|
Ee,
|
|
6601
|
-
Math.max(Ee, ze -
|
|
6601
|
+
Math.max(Ee, ze - ne)
|
|
6602
6602
|
]);
|
|
6603
6603
|
i.style.minWidth = Q + "px", i.style.right = me + "px";
|
|
6604
6604
|
}
|
|
6605
|
-
const
|
|
6606
|
-
if (
|
|
6607
|
-
const
|
|
6605
|
+
const L = f(), j = window.innerHeight - Ee * 2, Z = m.scrollHeight, G = window.getComputedStyle(A), q = parseInt(G.borderTopWidth, 10), B = parseInt(G.paddingTop, 10), Y = parseInt(G.borderBottomWidth, 10), k = parseInt(G.paddingBottom, 10), D = q + B + Z + k + Y, F = Math.min(h.offsetHeight * 5, D), ee = window.getComputedStyle(m), ue = parseInt(ee.paddingTop, 10), xe = parseInt(ee.paddingBottom, 10), Ve = b.top + b.height / 2 - Ee, Pe = j - Ve, le = h.offsetHeight / 2, W = h.offsetTop + le, J = q + B + W, K = D - J;
|
|
6606
|
+
if (J <= Ve) {
|
|
6607
|
+
const _ = L.length > 0 && h === L[L.length - 1].ref.current;
|
|
6608
6608
|
i.style.bottom = "0px";
|
|
6609
6609
|
const $ = A.clientHeight - m.offsetTop - m.offsetHeight, ie = Math.max(
|
|
6610
6610
|
Pe,
|
|
6611
6611
|
le + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
6612
|
-
(
|
|
6613
|
-
), Q =
|
|
6612
|
+
(_ ? xe : 0) + $ + Y
|
|
6613
|
+
), Q = J + ie;
|
|
6614
6614
|
i.style.height = Q + "px";
|
|
6615
6615
|
} else {
|
|
6616
|
-
const
|
|
6616
|
+
const _ = L.length > 0 && h === L[0].ref.current;
|
|
6617
6617
|
i.style.top = "0px";
|
|
6618
6618
|
const ie = Math.max(
|
|
6619
6619
|
Ve,
|
|
6620
|
-
|
|
6621
|
-
(
|
|
6622
|
-
) +
|
|
6623
|
-
i.style.height = ie + "px", m.scrollTop =
|
|
6620
|
+
q + m.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
6621
|
+
(_ ? ue : 0) + le
|
|
6622
|
+
) + K;
|
|
6623
|
+
i.style.height = ie + "px", m.scrollTop = J - Ve + m.offsetTop;
|
|
6624
6624
|
}
|
|
6625
|
-
i.style.margin = `${Ee}px 0`, i.style.minHeight =
|
|
6625
|
+
i.style.margin = `${Ee}px 0`, i.style.minHeight = F + "px", i.style.maxHeight = j + "px", r == null || r(), requestAnimationFrame(() => p.current = !0);
|
|
6626
6626
|
}
|
|
6627
6627
|
}, [
|
|
6628
6628
|
f,
|
|
@@ -6665,7 +6665,7 @@ var ib = "SelectItemAlignedPosition", GA = c.forwardRef((e, n) => {
|
|
|
6665
6665
|
zIndex: x
|
|
6666
6666
|
},
|
|
6667
6667
|
children: /* @__PURE__ */ u(
|
|
6668
|
-
|
|
6668
|
+
R.div,
|
|
6669
6669
|
{
|
|
6670
6670
|
...o,
|
|
6671
6671
|
ref: d,
|
|
@@ -6717,7 +6717,7 @@ Po.displayName = cb;
|
|
|
6717
6717
|
var [lb, La] = Wt(gt, {}), No = "SelectViewport", ZA = c.forwardRef(
|
|
6718
6718
|
(e, n) => {
|
|
6719
6719
|
const { __scopeSelect: t, nonce: r, ...o } = e, a = lt(No, t), s = La(No, t), i = H(n, a.onViewportChange), l = c.useRef(0);
|
|
6720
|
-
return /* @__PURE__ */
|
|
6720
|
+
return /* @__PURE__ */ O(ce, { children: [
|
|
6721
6721
|
/* @__PURE__ */ u(
|
|
6722
6722
|
"style",
|
|
6723
6723
|
{
|
|
@@ -6728,7 +6728,7 @@ var [lb, La] = Wt(gt, {}), No = "SelectViewport", ZA = c.forwardRef(
|
|
|
6728
6728
|
}
|
|
6729
6729
|
),
|
|
6730
6730
|
/* @__PURE__ */ u(Dr.Slot, { scope: t, children: /* @__PURE__ */ u(
|
|
6731
|
-
|
|
6731
|
+
R.div,
|
|
6732
6732
|
{
|
|
6733
6733
|
"data-radix-select-viewport": "",
|
|
6734
6734
|
role: "presentation",
|
|
@@ -6770,14 +6770,14 @@ ZA.displayName = No;
|
|
|
6770
6770
|
var YA = "SelectGroup", [Ab, ub] = Wt(YA), QA = c.forwardRef(
|
|
6771
6771
|
(e, n) => {
|
|
6772
6772
|
const { __scopeSelect: t, ...r } = e, o = ve();
|
|
6773
|
-
return /* @__PURE__ */ u(Ab, { scope: t, id: o, children: /* @__PURE__ */ u(
|
|
6773
|
+
return /* @__PURE__ */ u(Ab, { scope: t, id: o, children: /* @__PURE__ */ u(R.div, { role: "group", "aria-labelledby": o, ...r, ref: n }) });
|
|
6774
6774
|
}
|
|
6775
6775
|
);
|
|
6776
6776
|
QA.displayName = YA;
|
|
6777
6777
|
var FA = "SelectLabel", qA = c.forwardRef(
|
|
6778
6778
|
(e, n) => {
|
|
6779
6779
|
const { __scopeSelect: t, ...r } = e, o = ub(FA, t);
|
|
6780
|
-
return /* @__PURE__ */ u(
|
|
6780
|
+
return /* @__PURE__ */ u(R.div, { id: o.id, ...r, ref: n });
|
|
6781
6781
|
}
|
|
6782
6782
|
);
|
|
6783
6783
|
qA.displayName = FA;
|
|
@@ -6821,7 +6821,7 @@ var tr = "SelectItem", [db, UA] = Wt(tr), JA = c.forwardRef(
|
|
|
6821
6821
|
disabled: o,
|
|
6822
6822
|
textValue: V,
|
|
6823
6823
|
children: /* @__PURE__ */ u(
|
|
6824
|
-
|
|
6824
|
+
R.div,
|
|
6825
6825
|
{
|
|
6826
6826
|
role: "option",
|
|
6827
6827
|
"aria-labelledby": m,
|
|
@@ -6879,8 +6879,8 @@ var Ut = "SelectItemText", KA = c.forwardRef(
|
|
|
6879
6879
|
() => /* @__PURE__ */ u("option", { value: l.value, disabled: l.disabled, children: p }, l.value),
|
|
6880
6880
|
[l.disabled, l.value, p]
|
|
6881
6881
|
), { onNativeOptionAdd: m, onNativeOptionRemove: h } = A;
|
|
6882
|
-
return ae(() => (m(v), () => h(v)), [m, h, v]), /* @__PURE__ */
|
|
6883
|
-
/* @__PURE__ */ u(
|
|
6882
|
+
return ae(() => (m(v), () => h(v)), [m, h, v]), /* @__PURE__ */ O(ce, { children: [
|
|
6883
|
+
/* @__PURE__ */ u(R.span, { id: l.textId, ...a, ref: f }),
|
|
6884
6884
|
l.isSelected && s.valueNode && !s.valueNodeHasChildren ? ir.createPortal(a.children, s.valueNode) : null
|
|
6885
6885
|
] });
|
|
6886
6886
|
}
|
|
@@ -6889,7 +6889,7 @@ KA.displayName = Ut;
|
|
|
6889
6889
|
var _A = "SelectItemIndicator", $A = c.forwardRef(
|
|
6890
6890
|
(e, n) => {
|
|
6891
6891
|
const { __scopeSelect: t, ...r } = e;
|
|
6892
|
-
return UA(_A, t).isSelected ? /* @__PURE__ */ u(
|
|
6892
|
+
return UA(_A, t).isSelected ? /* @__PURE__ */ u(R.span, { "aria-hidden": !0, ...r, ref: n }) : null;
|
|
6893
6893
|
}
|
|
6894
6894
|
);
|
|
6895
6895
|
$A.displayName = _A;
|
|
@@ -6950,7 +6950,7 @@ var eu = c.forwardRef((e, n) => {
|
|
|
6950
6950
|
const A = i().find((d) => d.ref.current === document.activeElement);
|
|
6951
6951
|
(V = A == null ? void 0 : A.ref.current) == null || V.scrollIntoView({ block: "nearest" });
|
|
6952
6952
|
}, [i]), /* @__PURE__ */ u(
|
|
6953
|
-
|
|
6953
|
+
R.div,
|
|
6954
6954
|
{
|
|
6955
6955
|
"aria-hidden": !0,
|
|
6956
6956
|
...o,
|
|
@@ -6971,7 +6971,7 @@ var eu = c.forwardRef((e, n) => {
|
|
|
6971
6971
|
}), pb = "SelectSeparator", tu = c.forwardRef(
|
|
6972
6972
|
(e, n) => {
|
|
6973
6973
|
const { __scopeSelect: t, ...r } = e;
|
|
6974
|
-
return /* @__PURE__ */ u(
|
|
6974
|
+
return /* @__PURE__ */ u(R.div, { "aria-hidden": !0, ...r, ref: n });
|
|
6975
6975
|
}
|
|
6976
6976
|
);
|
|
6977
6977
|
tu.displayName = pb;
|
|
@@ -6997,7 +6997,7 @@ var vb = "SelectBubbleInput", nu = c.forwardRef(
|
|
|
6997
6997
|
V.call(i, n), i.dispatchEvent(d);
|
|
6998
6998
|
}
|
|
6999
6999
|
}, [s, n]), /* @__PURE__ */ u(
|
|
7000
|
-
|
|
7000
|
+
R.select,
|
|
7001
7001
|
{
|
|
7002
7002
|
...t,
|
|
7003
7003
|
style: { ...ri, ...t.style },
|
|
@@ -7066,32 +7066,32 @@ var gb = zA, bb = RA, yb = kA, wb = BA, xb = XA, Pb = WA, Nb = ZA, Cb = QA, Sb =
|
|
|
7066
7066
|
} = e, h = c.useRef(/* @__PURE__ */ new Set()), g = c.useRef(0), w = s === "horizontal" ? Rb : Lb, [x = [], P] = de({
|
|
7067
7067
|
prop: V,
|
|
7068
7068
|
defaultProp: A,
|
|
7069
|
-
onChange: (
|
|
7070
|
-
var
|
|
7071
|
-
(
|
|
7069
|
+
onChange: (L) => {
|
|
7070
|
+
var Z;
|
|
7071
|
+
(Z = [...h.current][g.current]) == null || Z.focus(), d(L);
|
|
7072
7072
|
}
|
|
7073
7073
|
}), C = c.useRef(x);
|
|
7074
|
-
function b(
|
|
7075
|
-
const j = Hb(x,
|
|
7076
|
-
|
|
7077
|
-
}
|
|
7078
|
-
function N(
|
|
7079
|
-
|
|
7080
|
-
}
|
|
7081
|
-
function
|
|
7082
|
-
const
|
|
7083
|
-
x[g.current] !==
|
|
7084
|
-
}
|
|
7085
|
-
function
|
|
7086
|
-
const G = Yb(a),
|
|
7087
|
-
P((
|
|
7088
|
-
const
|
|
7089
|
-
if (Zb(
|
|
7090
|
-
g.current =
|
|
7091
|
-
const
|
|
7092
|
-
return
|
|
7074
|
+
function b(L) {
|
|
7075
|
+
const j = Hb(x, L);
|
|
7076
|
+
z(L, j);
|
|
7077
|
+
}
|
|
7078
|
+
function N(L) {
|
|
7079
|
+
z(L, g.current);
|
|
7080
|
+
}
|
|
7081
|
+
function I() {
|
|
7082
|
+
const L = C.current[g.current];
|
|
7083
|
+
x[g.current] !== L && f(x);
|
|
7084
|
+
}
|
|
7085
|
+
function z(L, j, { commit: Z } = { commit: !1 }) {
|
|
7086
|
+
const G = Yb(a), q = Qb(Math.round((L - r) / a) * a + r, G), B = on(q, [r, o]);
|
|
7087
|
+
P((Y = []) => {
|
|
7088
|
+
const k = Xb(Y, B, j);
|
|
7089
|
+
if (Zb(k, l * a)) {
|
|
7090
|
+
g.current = k.indexOf(B);
|
|
7091
|
+
const D = String(k) !== String(Y);
|
|
7092
|
+
return D && Z && f(k), D ? k : Y;
|
|
7093
7093
|
} else
|
|
7094
|
-
return
|
|
7094
|
+
return Y;
|
|
7095
7095
|
});
|
|
7096
7096
|
}
|
|
7097
7097
|
return /* @__PURE__ */ u(
|
|
@@ -7122,13 +7122,13 @@ var gb = zA, bb = RA, yb = kA, wb = BA, xb = XA, Pb = WA, Nb = ZA, Cb = QA, Sb =
|
|
|
7122
7122
|
inverted: p,
|
|
7123
7123
|
onSlideStart: i ? void 0 : b,
|
|
7124
7124
|
onSlideMove: i ? void 0 : N,
|
|
7125
|
-
onSlideEnd: i ? void 0 :
|
|
7126
|
-
onHomeKeyDown: () => !i &&
|
|
7127
|
-
onEndKeyDown: () => !i &&
|
|
7128
|
-
onStepKeyDown: ({ event:
|
|
7125
|
+
onSlideEnd: i ? void 0 : I,
|
|
7126
|
+
onHomeKeyDown: () => !i && z(r, 0, { commit: !0 }),
|
|
7127
|
+
onEndKeyDown: () => !i && z(o, x.length - 1, { commit: !0 }),
|
|
7128
|
+
onStepKeyDown: ({ event: L, direction: j }) => {
|
|
7129
7129
|
if (!i) {
|
|
7130
|
-
const
|
|
7131
|
-
|
|
7130
|
+
const q = su.includes(L.key) || L.shiftKey && iu.includes(L.key) ? 10 : 1, B = g.current, Y = x[B], k = a * q * j;
|
|
7131
|
+
z(Y + k, B, { commit: !0 });
|
|
7132
7132
|
}
|
|
7133
7133
|
}
|
|
7134
7134
|
}
|
|
@@ -7266,7 +7266,7 @@ var [uu, du] = lu(Ht, {
|
|
|
7266
7266
|
...A
|
|
7267
7267
|
} = e, V = Rr(Ht, t);
|
|
7268
7268
|
return /* @__PURE__ */ u(
|
|
7269
|
-
|
|
7269
|
+
R.span,
|
|
7270
7270
|
{
|
|
7271
7271
|
...A,
|
|
7272
7272
|
ref: n,
|
|
@@ -7291,7 +7291,7 @@ var [uu, du] = lu(Ht, {
|
|
|
7291
7291
|
(e, n) => {
|
|
7292
7292
|
const { __scopeSlider: t, ...r } = e, o = Rr(fu, t);
|
|
7293
7293
|
return /* @__PURE__ */ u(
|
|
7294
|
-
|
|
7294
|
+
R.span,
|
|
7295
7295
|
{
|
|
7296
7296
|
"data-disabled": o.disabled ? "" : void 0,
|
|
7297
7297
|
"data-orientation": o.orientation,
|
|
@@ -7308,7 +7308,7 @@ var To = "SliderRange", mu = c.forwardRef(
|
|
|
7308
7308
|
(f) => gu(f, o.min, o.max)
|
|
7309
7309
|
), V = l > 1 ? Math.min(...A) : 0, d = 100 - Math.max(...A);
|
|
7310
7310
|
return /* @__PURE__ */ u(
|
|
7311
|
-
|
|
7311
|
+
R.span,
|
|
7312
7312
|
{
|
|
7313
7313
|
"data-orientation": o.orientation,
|
|
7314
7314
|
"data-disabled": o.disabled ? "" : void 0,
|
|
@@ -7340,7 +7340,7 @@ var Mo = "SliderThumb", vu = c.forwardRef(
|
|
|
7340
7340
|
return s.thumbs.add(l), () => {
|
|
7341
7341
|
s.thumbs.delete(l);
|
|
7342
7342
|
};
|
|
7343
|
-
}, [l, s.thumbs]), /* @__PURE__ */
|
|
7343
|
+
}, [l, s.thumbs]), /* @__PURE__ */ O(
|
|
7344
7344
|
"span",
|
|
7345
7345
|
{
|
|
7346
7346
|
style: {
|
|
@@ -7350,7 +7350,7 @@ var Mo = "SliderThumb", vu = c.forwardRef(
|
|
|
7350
7350
|
},
|
|
7351
7351
|
children: [
|
|
7352
7352
|
/* @__PURE__ */ u(Oo.ItemSlot, { scope: e.__scopeSlider, children: /* @__PURE__ */ u(
|
|
7353
|
-
|
|
7353
|
+
R.span,
|
|
7354
7354
|
{
|
|
7355
7355
|
role: "slider",
|
|
7356
7356
|
"aria-label": e["aria-label"] || m,
|
|
@@ -7396,7 +7396,7 @@ var Bb = "RadioBubbleInput", hu = c.forwardRef(
|
|
|
7396
7396
|
V.call(i, n), i.dispatchEvent(d);
|
|
7397
7397
|
}
|
|
7398
7398
|
}, [s, n]), /* @__PURE__ */ u(
|
|
7399
|
-
|
|
7399
|
+
R.input,
|
|
7400
7400
|
{
|
|
7401
7401
|
style: { display: "none" },
|
|
7402
7402
|
...t,
|
|
@@ -7470,9 +7470,9 @@ var Fb = Au, qb = pu, Ub = mu, Jb = vu, Lr = "Switch", [Kb] = re(Lr), [_b, $b] =
|
|
|
7470
7470
|
onChange: A,
|
|
7471
7471
|
caller: Lr
|
|
7472
7472
|
});
|
|
7473
|
-
return /* @__PURE__ */
|
|
7473
|
+
return /* @__PURE__ */ O(_b, { scope: t, checked: g, disabled: i, children: [
|
|
7474
7474
|
/* @__PURE__ */ u(
|
|
7475
|
-
|
|
7475
|
+
R.button,
|
|
7476
7476
|
{
|
|
7477
7477
|
type: "button",
|
|
7478
7478
|
role: "switch",
|
|
@@ -7511,7 +7511,7 @@ var yu = "SwitchThumb", wu = c.forwardRef(
|
|
|
7511
7511
|
(e, n) => {
|
|
7512
7512
|
const { __scopeSwitch: t, ...r } = e, o = $b(yu, t);
|
|
7513
7513
|
return /* @__PURE__ */ u(
|
|
7514
|
-
|
|
7514
|
+
R.span,
|
|
7515
7515
|
{
|
|
7516
7516
|
"data-state": Pu(o.checked),
|
|
7517
7517
|
"data-disabled": o.disabled ? "" : void 0,
|
|
@@ -7597,7 +7597,7 @@ var ty = bu, ny = wu, kr = "Tabs", [ry] = re(kr, [
|
|
|
7597
7597
|
dir: V,
|
|
7598
7598
|
activationMode: l,
|
|
7599
7599
|
children: /* @__PURE__ */ u(
|
|
7600
|
-
|
|
7600
|
+
R.div,
|
|
7601
7601
|
{
|
|
7602
7602
|
dir: V,
|
|
7603
7603
|
"data-orientation": s,
|
|
@@ -7622,7 +7622,7 @@ var Su = "TabsList", Eu = c.forwardRef(
|
|
|
7622
7622
|
dir: a.dir,
|
|
7623
7623
|
loop: r,
|
|
7624
7624
|
children: /* @__PURE__ */ u(
|
|
7625
|
-
|
|
7625
|
+
R.div,
|
|
7626
7626
|
{
|
|
7627
7627
|
role: "tablist",
|
|
7628
7628
|
"aria-orientation": a.orientation,
|
|
@@ -7646,7 +7646,7 @@ var Ou = "TabsTrigger", Tu = c.forwardRef(
|
|
|
7646
7646
|
focusable: !o,
|
|
7647
7647
|
active: V,
|
|
7648
7648
|
children: /* @__PURE__ */ u(
|
|
7649
|
-
|
|
7649
|
+
R.button,
|
|
7650
7650
|
{
|
|
7651
7651
|
type: "button",
|
|
7652
7652
|
role: "tab",
|
|
@@ -7682,7 +7682,7 @@ var Mu = "TabsContent", Du = c.forwardRef(
|
|
|
7682
7682
|
const f = requestAnimationFrame(() => d.current = !1);
|
|
7683
7683
|
return () => cancelAnimationFrame(f);
|
|
7684
7684
|
}, []), /* @__PURE__ */ u(oe, { present: o || V, children: ({ present: f }) => /* @__PURE__ */ u(
|
|
7685
|
-
|
|
7685
|
+
R.div,
|
|
7686
7686
|
{
|
|
7687
7687
|
"data-state": V ? "active" : "inactive",
|
|
7688
7688
|
"data-orientation": i.orientation,
|
|
@@ -7801,7 +7801,7 @@ var zo = "TooltipTrigger", Bu = c.forwardRef(
|
|
|
7801
7801
|
(e, n) => {
|
|
7802
7802
|
const { __scopeTooltip: t, ...r } = e, o = Pn(zo, t), a = Xa(zo, t), s = Xr(t), i = c.useRef(null), l = H(n, i, o.onTriggerChange), A = c.useRef(!1), V = c.useRef(!1), d = c.useCallback(() => A.current = !1, []);
|
|
7803
7803
|
return c.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ u(Bt, { asChild: !0, ...s, children: /* @__PURE__ */ u(
|
|
7804
|
-
|
|
7804
|
+
R.button,
|
|
7805
7805
|
{
|
|
7806
7806
|
"aria-describedby": o.open ? o.contentId : void 0,
|
|
7807
7807
|
"data-state": o.stateAttribute,
|
|
@@ -7891,7 +7891,7 @@ var Rt = "TooltipContent", Wu = c.forwardRef(
|
|
|
7891
7891
|
onPointerDownOutside: s,
|
|
7892
7892
|
onFocusOutside: (d) => d.preventDefault(),
|
|
7893
7893
|
onDismiss: V,
|
|
7894
|
-
children: /* @__PURE__ */
|
|
7894
|
+
children: /* @__PURE__ */ O(
|
|
7895
7895
|
hn,
|
|
7896
7896
|
{
|
|
7897
7897
|
"data-state": l.stateAttribute,
|
|
@@ -8124,7 +8124,7 @@ function sn(...e) {
|
|
|
8124
8124
|
function jy(...e) {
|
|
8125
8125
|
return Object.assign({}, ...e);
|
|
8126
8126
|
}
|
|
8127
|
-
function
|
|
8127
|
+
function te(e, ...n) {
|
|
8128
8128
|
let t, r;
|
|
8129
8129
|
const o = { ...e }, a = jy(...n);
|
|
8130
8130
|
for (const s in a) {
|
|
@@ -8153,7 +8153,7 @@ function ee(e, ...n) {
|
|
|
8153
8153
|
return o.className = X(t, e.className), o.style = sn(r, e.style), o;
|
|
8154
8154
|
}
|
|
8155
8155
|
const dt = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"], se = { m: { type: "enum | string", values: dt, responsive: !0, className: "rt-r-m", customProperties: ["--m"] }, mx: { type: "enum | string", values: dt, responsive: !0, className: "rt-r-mx", customProperties: ["--ml", "--mr"] }, my: { type: "enum | string", values: dt, responsive: !0, className: "rt-r-my", customProperties: ["--mt", "--mb"] }, mt: { type: "enum | string", values: dt, responsive: !0, className: "rt-r-mt", customProperties: ["--mt"] }, mr: { type: "enum | string", values: dt, responsive: !0, className: "rt-r-mr", customProperties: ["--mr"] }, mb: { type: "enum | string", values: dt, responsive: !0, className: "rt-r-mb", customProperties: ["--mb"] }, ml: { type: "enum | string", values: dt, responsive: !0, className: "rt-r-ml", customProperties: ["--ml"] } }, Gy = ["span", "div", "label", "p"], Zy = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Yy = { as: { type: "enum", values: Gy, default: "span" }, ...Se, size: { type: "enum", className: "rt-r-size", values: Zy, responsive: !0 }, ...Wy, ...Ry, ...zy, ...By, ...ky, ...pe, ...we }, at = c.forwardRef((e, n) => {
|
|
8156
|
-
const { children: t, className: r, asChild: o, as: a = "span", color: s, ...i } =
|
|
8156
|
+
const { children: t, className: r, asChild: o, as: a = "span", color: s, ...i } = te(e, Yy, se);
|
|
8157
8157
|
return c.createElement(bt, { "data-accent-color": s, ...i, ref: n, className: X("rt-Text", r) }, o ? t : c.createElement(a, null, t));
|
|
8158
8158
|
});
|
|
8159
8159
|
at.displayName = "Text";
|
|
@@ -8233,7 +8233,7 @@ function qu(e, n) {
|
|
|
8233
8233
|
return c.cloneElement(o, { children: typeof n == "function" ? n(o.props.children) : n });
|
|
8234
8234
|
}
|
|
8235
8235
|
const Uu = c.forwardRef((e, n) => {
|
|
8236
|
-
const { asChild: t, children: r, className: o, style: a, color: s, radius: i, ...l } =
|
|
8236
|
+
const { asChild: t, children: r, className: o, style: a, color: s, radius: i, ...l } = te(e, Jy, se);
|
|
8237
8237
|
return c.createElement(Kp, { "data-accent-color": s, "data-radius": i, className: X("rt-reset", "rt-AvatarRoot", o), style: a, asChild: t }, qu({ asChild: t, children: r }, c.createElement(Ju, { ref: n, ...l })));
|
|
8238
8238
|
});
|
|
8239
8239
|
Uu.displayName = "Avatar";
|
|
@@ -8246,7 +8246,7 @@ const Ju = c.forwardRef(({ fallback: e, ...n }, t) => {
|
|
|
8246
8246
|
});
|
|
8247
8247
|
Ju.displayName = "AvatarImpl";
|
|
8248
8248
|
const Ky = ["1", "2", "3"], _y = ["solid", "soft", "surface", "outline"], $y = { ...Se, size: { type: "enum", className: "rt-r-size", values: Ky, default: "1", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: _y, default: "soft" }, ...Wr, ...we, ...Ue }, Ku = c.forwardRef((e, n) => {
|
|
8249
|
-
const { asChild: t, className: r, color: o, radius: a, ...s } =
|
|
8249
|
+
const { asChild: t, className: r, color: o, radius: a, ...s } = te(e, $y, se), i = t ? bt : "span";
|
|
8250
8250
|
return c.createElement(i, { "data-accent-color": o, "data-radius": a, ...s, ref: n, className: X("rt-reset", "rt-Badge", r) });
|
|
8251
8251
|
});
|
|
8252
8252
|
Ku.displayName = "Badge";
|
|
@@ -8255,12 +8255,12 @@ function mw(e) {
|
|
|
8255
8255
|
return e === "between" ? "space-between" : e;
|
|
8256
8256
|
}
|
|
8257
8257
|
const cn = c.forwardRef((e, n) => {
|
|
8258
|
-
const { className: t, asChild: r, as: o = "div", ...a } =
|
|
8258
|
+
const { className: t, asChild: r, as: o = "div", ...a } = te(e, pw, aw, se);
|
|
8259
8259
|
return c.createElement(r ? ew : o, { ...a, ref: n, className: X("rt-Flex", t) });
|
|
8260
8260
|
});
|
|
8261
8261
|
cn.displayName = "Flex";
|
|
8262
8262
|
const vw = ["1", "2", "3"], hw = { size: { type: "enum", className: "rt-r-size", values: vw, default: "2", responsive: !0 }, loading: { type: "boolean", default: !0 } }, _u = c.forwardRef((e, n) => {
|
|
8263
|
-
const { className: t, children: r, loading: o, ...a } =
|
|
8263
|
+
const { className: t, children: r, loading: o, ...a } = te(e, hw, se);
|
|
8264
8264
|
if (!o) return r;
|
|
8265
8265
|
const s = c.createElement("span", { ...a, ref: n, className: X("rt-Spinner", t) }, c.createElement("span", { className: "rt-SpinnerLeaf" }), c.createElement("span", { className: "rt-SpinnerLeaf" }), c.createElement("span", { className: "rt-SpinnerLeaf" }), c.createElement("span", { className: "rt-SpinnerLeaf" }), c.createElement("span", { className: "rt-SpinnerLeaf" }), c.createElement("span", { className: "rt-SpinnerLeaf" }), c.createElement("span", { className: "rt-SpinnerLeaf" }), c.createElement("span", { className: "rt-SpinnerLeaf" }));
|
|
8266
8266
|
return r === void 0 ? s : c.createElement(cn, { asChild: !0, position: "relative", align: "center", justify: "center" }, c.createElement("span", null, c.createElement("span", { "aria-hidden": !0, style: { display: "contents", visibility: "hidden" }, inert: void 0 }, r), c.createElement(cn, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, c.createElement("span", null, s))));
|
|
@@ -8285,14 +8285,14 @@ function yw(e) {
|
|
|
8285
8285
|
}
|
|
8286
8286
|
}
|
|
8287
8287
|
const ed = c.forwardRef((e, n) => {
|
|
8288
|
-
const { size: t = Xs.size.default } = e, { className: r, children: o, asChild: a, color: s, radius: i, disabled: l = e.loading, ...A } =
|
|
8288
|
+
const { size: t = Xs.size.default } = e, { className: r, children: o, asChild: a, color: s, radius: i, disabled: l = e.loading, ...A } = te(e, Xs, se), V = a ? bt : "button";
|
|
8289
8289
|
return c.createElement(V, { "data-disabled": l || void 0, "data-accent-color": s, "data-radius": i, ...A, ref: n, className: X("rt-reset", "rt-BaseButton", r), disabled: l }, e.loading ? c.createElement(c.Fragment, null, c.createElement("span", { style: { display: "contents", visibility: "hidden" }, "aria-hidden": !0 }, o), c.createElement(gw, null, o), c.createElement(cn, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, c.createElement("span", null, c.createElement(_u, { size: $u(t, yw) })))) : o);
|
|
8290
8290
|
});
|
|
8291
8291
|
ed.displayName = "BaseButton";
|
|
8292
8292
|
const td = c.forwardRef(({ className: e, ...n }, t) => c.createElement(ed, { ...n, ref: t, className: X("rt-Button", e) }));
|
|
8293
8293
|
td.displayName = "Button";
|
|
8294
8294
|
const ww = ["1", "2", "3"], xw = ["soft", "surface", "outline"], Ws = { ...Se, size: { type: "enum", className: "rt-r-size", values: ww, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: xw, default: "soft" }, ...Wr, ...we }, nd = c.createContext({}), rd = c.forwardRef((e, n) => {
|
|
8295
|
-
const { size: t = Ws.size.default } = e, { asChild: r, children: o, className: a, color: s, ...i } =
|
|
8295
|
+
const { size: t = Ws.size.default } = e, { asChild: r, children: o, className: a, color: s, ...i } = te(e, Ws, se), l = r ? bt : "div";
|
|
8296
8296
|
return c.createElement(l, { "data-accent-color": s, ...i, className: X("rt-CalloutRoot", a), ref: n }, c.createElement(nd.Provider, { value: c.useMemo(() => ({ size: t }), [t]) }, o));
|
|
8297
8297
|
});
|
|
8298
8298
|
rd.displayName = "Callout.Root";
|
|
@@ -8304,13 +8304,13 @@ const Pw = c.forwardRef(({ className: e, ...n }, t) => {
|
|
|
8304
8304
|
});
|
|
8305
8305
|
Pw.displayName = "Callout.Text";
|
|
8306
8306
|
const Nw = ["1", "2", "3", "4", "5"], Cw = ["surface", "classic", "ghost"], Sw = { ...Se, size: { type: "enum", className: "rt-r-size", values: Nw, default: "1", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Cw, default: "surface" } }, ad = c.forwardRef((e, n) => {
|
|
8307
|
-
const { asChild: t, className: r, ...o } =
|
|
8307
|
+
const { asChild: t, className: r, ...o } = te(e, Sw, se), a = t ? bt : "div";
|
|
8308
8308
|
return c.createElement(a, { ref: n, ...o, className: X("rt-reset", "rt-BaseCard", "rt-Card", r) });
|
|
8309
8309
|
});
|
|
8310
8310
|
ad.displayName = "Card";
|
|
8311
|
-
var sd =
|
|
8311
|
+
var sd = R;
|
|
8312
8312
|
sd.dispatchDiscreteCustomEvent = Qo;
|
|
8313
|
-
sd.Root =
|
|
8313
|
+
sd.Root = R;
|
|
8314
8314
|
const Ew = ["1", "2", "3"], Ow = ["classic", "surface", "soft"], Tw = { size: { type: "enum", className: "rt-r-size", values: Ew, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Ow, default: "surface" }, ...pe, ...we }, id = S.forwardRef((e, n) => S.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...e, ref: n }, S.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0.75 4.5C0.75 4.08579 1.08579 3.75 1.5 3.75H7.5C7.91421 3.75 8.25 4.08579 8.25 4.5C8.25 4.91421 7.91421 5.25 7.5 5.25H1.5C1.08579 5.25 0.75 4.91421 0.75 4.5Z" })));
|
|
8315
8315
|
id.displayName = "ThickDividerHorizontalIcon";
|
|
8316
8316
|
const Nn = S.forwardRef((e, n) => S.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...e, ref: n }, S.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.53547 0.62293C8.88226 0.849446 8.97976 1.3142 8.75325 1.66099L4.5083 8.1599C4.38833 8.34356 4.19397 8.4655 3.9764 8.49358C3.75883 8.52167 3.53987 8.45309 3.3772 8.30591L0.616113 5.80777C0.308959 5.52987 0.285246 5.05559 0.563148 4.74844C0.84105 4.44128 1.31533 4.41757 1.62249 4.69547L3.73256 6.60459L7.49741 0.840706C7.72393 0.493916 8.18868 0.396414 8.53547 0.62293Z" })));
|
|
@@ -8320,7 +8320,7 @@ cd.displayName = "ChevronDownIcon";
|
|
|
8320
8320
|
const ld = S.forwardRef((e, n) => S.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...e, ref: n }, S.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.23826 0.201711C3.54108 -0.0809141 4.01567 -0.0645489 4.29829 0.238264L7.79829 3.98826C8.06724 4.27642 8.06724 4.72359 7.79829 5.01174L4.29829 8.76174C4.01567 9.06455 3.54108 9.08092 3.23826 8.79829C2.93545 8.51567 2.91909 8.04108 3.20171 7.73826L6.22409 4.5L3.20171 1.26174C2.91909 0.958928 2.93545 0.484337 3.23826 0.201711Z" })));
|
|
8321
8321
|
ld.displayName = "ThickChevronRightIcon";
|
|
8322
8322
|
const Ad = c.forwardRef((e, n) => {
|
|
8323
|
-
const { className: t, color: r, checked: o, defaultChecked: a, onCheckedChange: s, ...i } =
|
|
8323
|
+
const { className: t, color: r, checked: o, defaultChecked: a, onCheckedChange: s, ...i } = te(e, Tw, se), [l, A] = de({ prop: o, defaultProp: a, onChange: s });
|
|
8324
8324
|
return c.createElement(hc, { "data-accent-color": r, ...i, defaultChecked: a, checked: l, onCheckedChange: A, asChild: !1, ref: n, className: X("rt-reset", "rt-BaseCheckboxRoot", "rt-CheckboxRoot", t) }, c.createElement(bc, { asChild: !0, className: "rt-BaseCheckboxIndicator rt-CheckboxIndicator" }, c.createElement(l === "indeterminate" ? id : Nn, null)));
|
|
8325
8325
|
});
|
|
8326
8326
|
Ad.displayName = "Checkbox";
|
|
@@ -8344,7 +8344,7 @@ ud.displayName = "DropdownMenu.Root";
|
|
|
8344
8344
|
const dd = c.forwardRef(({ children: e, ...n }, t) => c.createElement(kh, { ...n, ref: t, asChild: !0 }, Hr(e)));
|
|
8345
8345
|
dd.displayName = "DropdownMenu.Trigger";
|
|
8346
8346
|
const Vd = c.createContext({}), fd = c.forwardRef((e, n) => {
|
|
8347
|
-
const t = Qu(), { size: r = Jt.size.default, variant: o = Jt.variant.default, highContrast: a = Jt.highContrast.default } = e, { className: s, children: i, color: l, container: A, forceMount: V, ...d } =
|
|
8347
|
+
const t = Qu(), { size: r = Jt.size.default, variant: o = Jt.variant.default, highContrast: a = Jt.highContrast.default } = e, { className: s, children: i, color: l, container: A, forceMount: V, ...d } = te(e, Jt), f = l || t.accentColor;
|
|
8348
8348
|
return c.createElement(Ll, { container: A, forceMount: V }, c.createElement(Je, { asChild: !0 }, c.createElement(Bh, { "data-accent-color": f, align: "start", sideOffset: 4, collisionPadding: 10, ...d, asChild: !1, ref: n, className: X("rt-PopperContent", "rt-BaseMenuContent", "rt-DropdownMenuContent", s) }, c.createElement(jr, { type: "auto" }, c.createElement("div", { className: X("rt-BaseMenuViewport", "rt-DropdownMenuViewport") }, c.createElement(Vd.Provider, { value: c.useMemo(() => ({ size: r, variant: o, color: f, highContrast: a }), [r, o, f, a]) }, i))))));
|
|
8349
8349
|
});
|
|
8350
8350
|
fd.displayName = "DropdownMenu.Content";
|
|
@@ -8375,7 +8375,7 @@ const Zw = c.forwardRef((e, n) => {
|
|
|
8375
8375
|
});
|
|
8376
8376
|
Zw.displayName = "DropdownMenu.SubTrigger";
|
|
8377
8377
|
const Yw = c.forwardRef((e, n) => {
|
|
8378
|
-
const { size: t, variant: r, color: o, highContrast: a } = c.useContext(Vd), { className: s, children: i, container: l, forceMount: A, ...V } =
|
|
8378
|
+
const { size: t, variant: r, color: o, highContrast: a } = c.useContext(Vd), { className: s, children: i, container: l, forceMount: A, ...V } = te({ size: t, variant: r, color: o, highContrast: a, ...e }, Jt);
|
|
8379
8379
|
return c.createElement(Ll, { container: l, forceMount: A }, c.createElement(Je, { asChild: !0 }, c.createElement(Fh, { "data-accent-color": o, alignOffset: -Number(t) * 4, sideOffset: 1, collisionPadding: 10, ...V, asChild: !1, ref: n, className: X("rt-PopperContent", "rt-BaseMenuContent", "rt-BaseMenuSubContent", "rt-DropdownMenuContent", "rt-DropdownMenuSubContent", s) }, c.createElement(jr, { type: "auto" }, c.createElement("div", { className: X("rt-BaseMenuViewport", "rt-DropdownMenuViewport") }, i)))));
|
|
8380
8380
|
});
|
|
8381
8381
|
Yw.displayName = "DropdownMenu.SubContent";
|
|
@@ -8386,7 +8386,7 @@ md.displayName = "HoverCard.Root";
|
|
|
8386
8386
|
const vd = c.forwardRef(({ children: e, className: n, ...t }, r) => c.createElement(ng, { ref: r, className: X("rt-HoverCardTrigger", n), ...t, asChild: !0 }, Hr(e)));
|
|
8387
8387
|
vd.displayName = "HoverCard.Trigger";
|
|
8388
8388
|
const hd = c.forwardRef((e, n) => {
|
|
8389
|
-
const { className: t, forceMount: r, container: o, ...a } =
|
|
8389
|
+
const { className: t, forceMount: r, container: o, ...a } = te(e, qw);
|
|
8390
8390
|
return c.createElement(rg, { container: o, forceMount: r }, c.createElement(Je, { asChild: !0 }, c.createElement(og, { align: "start", sideOffset: 8, collisionPadding: 10, ...a, ref: n, className: X("rt-PopperContent", "rt-HoverCardContent", t) })));
|
|
8391
8391
|
});
|
|
8392
8392
|
hd.displayName = "HoverCard.Content";
|
|
@@ -8395,7 +8395,7 @@ gd.displayName = "Popover.Root";
|
|
|
8395
8395
|
const bd = c.forwardRef(({ children: e, ...n }, t) => c.createElement(pg, { ...n, ref: t, asChild: !0 }, Hr(e)));
|
|
8396
8396
|
bd.displayName = "Popover.Trigger";
|
|
8397
8397
|
const yd = c.forwardRef((e, n) => {
|
|
8398
|
-
const { className: t, forceMount: r, container: o, ...a } =
|
|
8398
|
+
const { className: t, forceMount: r, container: o, ...a } = te(e, Jw);
|
|
8399
8399
|
return c.createElement(mg, { container: o, forceMount: r }, c.createElement(Je, { asChild: !0 }, c.createElement(vg, { align: "start", sideOffset: 8, collisionPadding: 10, ...a, ref: n, className: X("rt-PopperContent", "rt-PopoverContent", t) })));
|
|
8400
8400
|
});
|
|
8401
8401
|
yd.displayName = "Popover.Content";
|
|
@@ -8404,12 +8404,12 @@ Kw.displayName = "Popover.Close";
|
|
|
8404
8404
|
const _w = c.forwardRef(({ children: e, ...n }, t) => c.createElement(fg, { ...n, ref: t }));
|
|
8405
8405
|
_w.displayName = "Popover.Anchor";
|
|
8406
8406
|
const $w = ["1", "2", "3"], ex = ["classic", "surface", "soft"], tx = { size: { type: "enum", className: "rt-r-size", values: $w, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: ex, default: "surface" }, ...pe, ...we, ...Ue, duration: { type: "string" } }, Gr = c.forwardRef((e, n) => {
|
|
8407
|
-
const { className: t, style: r, color: o, radius: a, duration: s, ...i } =
|
|
8407
|
+
const { className: t, style: r, color: o, radius: a, duration: s, ...i } = te(e, tx, se);
|
|
8408
8408
|
return c.createElement(Ng, { "data-accent-color": o, "data-radius": a, ref: n, className: X("rt-ProgressRoot", t), style: sn({ "--progress-duration": "value" in i ? void 0 : s, "--progress-value": "value" in i ? i.value : void 0, "--progress-max": "max" in i ? i.max : void 0 }, r), ...i, asChild: !1 }, c.createElement(Cg, { className: "rt-ProgressIndicator" }));
|
|
8409
8409
|
});
|
|
8410
8410
|
Gr.displayName = "Progress";
|
|
8411
8411
|
const nx = ["1", "2", "3"], rx = ["classic", "surface", "soft"], Kt = { ...Se, size: { type: "enum", className: "rt-r-size", values: nx, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: rx, default: "surface" }, ...pe, ...we }, wd = "RadioGroup", [ox] = re(wd, [dA]), xd = dA(), [ax, Pd] = ox(wd), Nd = c.forwardRef(({ color: e = Kt.color.default, highContrast: n = Kt.highContrast.default, size: t = Kt.size.default, variant: r = Kt.variant.default, ...o }, a) => {
|
|
8412
|
-
const { __scopeRadioGroup: s, className: i, ...l } =
|
|
8412
|
+
const { __scopeRadioGroup: s, className: i, ...l } = te(o, se), A = xd(s);
|
|
8413
8413
|
return c.createElement(ax, { scope: s, color: e, highContrast: n, size: t, variant: r }, c.createElement(kg, { ...A, ...l, ref: a, className: X("rt-RadioGroupRoot", i) }));
|
|
8414
8414
|
});
|
|
8415
8415
|
Nd.displayName = "RadioGroup.Root";
|
|
@@ -8419,7 +8419,7 @@ const Cd = c.forwardRef((e, n) => {
|
|
|
8419
8419
|
});
|
|
8420
8420
|
Cd.displayName = "RadioGroup.Item";
|
|
8421
8421
|
const Io = c.forwardRef(({ __scopeRadioGroup: e, ...n }, t) => {
|
|
8422
|
-
const r = Pd("RadioGroupItemRadio", e), o = xd(e), { color: a, className: s } =
|
|
8422
|
+
const r = Pd("RadioGroupItemRadio", e), o = xd(e), { color: a, className: s } = te({ ...n, ...r }, Kt, se);
|
|
8423
8423
|
return c.createElement(Bg, { ...o, "data-accent-color": a, ...n, asChild: !1, ref: t, className: X("rt-reset", "rt-BaseRadioRoot", s) });
|
|
8424
8424
|
});
|
|
8425
8425
|
Io.displayName = "RadioGroup.ItemRadio";
|
|
@@ -8429,12 +8429,12 @@ const sx = ["1", "2", "3"], Za = { size: { type: "enum", className: "rt-r-size",
|
|
|
8429
8429
|
};
|
|
8430
8430
|
Sd.displayName = "Select.Root";
|
|
8431
8431
|
const Ed = c.forwardRef((e, n) => {
|
|
8432
|
-
const t = c.useContext(Ya), { children: r, className: o, color: a, radius: s, placeholder: i, ...l } =
|
|
8432
|
+
const t = c.useContext(Ya), { children: r, className: o, color: a, radius: s, placeholder: i, ...l } = te({ size: t == null ? void 0 : t.size, ...e }, { size: Za.size }, cx, se);
|
|
8433
8433
|
return c.createElement(bb, { asChild: !0 }, c.createElement("button", { "data-accent-color": a, "data-radius": s, ...l, ref: n, className: X("rt-reset", "rt-SelectTrigger", o) }, c.createElement("span", { className: "rt-SelectTriggerInner" }, c.createElement(yb, { placeholder: i }, r)), c.createElement(wb, { asChild: !0 }, c.createElement(cd, { className: "rt-SelectIcon" }))));
|
|
8434
8434
|
});
|
|
8435
8435
|
Ed.displayName = "Select.Trigger";
|
|
8436
8436
|
const Od = c.forwardRef((e, n) => {
|
|
8437
|
-
const t = c.useContext(Ya), { className: r, children: o, color: a, container: s, ...i } =
|
|
8437
|
+
const t = c.useContext(Ya), { className: r, children: o, color: a, container: s, ...i } = te({ size: t == null ? void 0 : t.size, ...e }, { size: Za.size }, Ax), l = Qu(), A = a || l.accentColor;
|
|
8438
8438
|
return c.createElement(xb, { container: s }, c.createElement(Je, { asChild: !0 }, c.createElement(Pb, { "data-accent-color": A, sideOffset: 4, ...i, asChild: !1, ref: n, className: X({ "rt-PopperContent": i.position === "popper" }, "rt-SelectContent", r) }, c.createElement(MA, { type: "auto", className: "rt-ScrollAreaRoot" }, c.createElement(Nb, { asChild: !0, className: "rt-SelectViewport" }, c.createElement(DA, { className: "rt-ScrollAreaViewport", style: { overflowY: void 0 } }, o)), c.createElement(wo, { className: "rt-ScrollAreaScrollbar rt-r-size-1", orientation: "vertical" }, c.createElement(xo, { className: "rt-ScrollAreaThumb" }))))));
|
|
8439
8439
|
});
|
|
8440
8440
|
Od.displayName = "Select.Content";
|
|
@@ -8450,27 +8450,27 @@ dx.displayName = "Select.Label";
|
|
|
8450
8450
|
const Vx = c.forwardRef(({ className: e, ...n }, t) => c.createElement(Mb, { ...n, asChild: !1, ref: t, className: X("rt-SelectSeparator", e) }));
|
|
8451
8451
|
Vx.displayName = "Select.Separator";
|
|
8452
8452
|
const fx = ["horizontal", "vertical"], px = ["1", "2", "3", "4"], mx = { orientation: { type: "enum", className: "rt-r-orientation", values: fx, default: "horizontal", responsive: !0 }, size: { type: "enum", className: "rt-r-size", values: px, default: "1", responsive: !0 }, color: { ...pe.color, default: "gray" }, decorative: { type: "boolean", default: !0 } }, Md = c.forwardRef((e, n) => {
|
|
8453
|
-
const { className: t, color: r, decorative: o, ...a } =
|
|
8453
|
+
const { className: t, color: r, decorative: o, ...a } = te(e, mx, se);
|
|
8454
8454
|
return c.createElement("span", { "data-accent-color": r, role: o ? void 0 : "separator", ...a, ref: n, className: X("rt-Separator", t) });
|
|
8455
8455
|
});
|
|
8456
8456
|
Md.displayName = "Separator";
|
|
8457
8457
|
const vx = ["1", "2", "3"], hx = ["classic", "surface", "soft"], gx = { size: { type: "enum", className: "rt-r-size", values: vx, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: hx, default: "surface" }, ...pe, ...we, ...Ue }, Dd = c.forwardRef((e, n) => {
|
|
8458
|
-
const { className: t, color: r, radius: o, tabIndex: a, ...s } =
|
|
8458
|
+
const { className: t, color: r, radius: o, tabIndex: a, ...s } = te(e, gx, se);
|
|
8459
8459
|
return c.createElement(Fb, { "data-accent-color": r, "data-radius": o, ref: n, ...s, asChild: !1, className: X("rt-SliderRoot", t) }, c.createElement(qb, { className: "rt-SliderTrack" }, c.createElement(Ub, { className: X("rt-SliderRange", { "rt-high-contrast": e.highContrast }), "data-inverted": s.inverted ? "" : void 0 })), (s.value ?? s.defaultValue ?? []).map((i, l) => c.createElement(Jb, { key: l, className: "rt-SliderThumb", ...a !== void 0 ? { tabIndex: a } : void 0 })));
|
|
8460
8460
|
});
|
|
8461
8461
|
Dd.displayName = "Slider";
|
|
8462
8462
|
const bx = ["1", "2", "3"], yx = ["classic", "surface", "soft"], wx = { size: { type: "enum", className: "rt-r-size", values: bx, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: yx, default: "surface" }, ...pe, ...we, ...Ue }, Qa = c.forwardRef((e, n) => {
|
|
8463
|
-
const { className: t, color: r, radius: o, ...a } =
|
|
8463
|
+
const { className: t, color: r, radius: o, ...a } = te(e, wx, se);
|
|
8464
8464
|
return c.createElement(ty, { "data-accent-color": r, "data-radius": o, ...a, asChild: !1, ref: n, className: X("rt-reset", "rt-SwitchRoot", t) }, c.createElement(ny, { className: X("rt-SwitchThumb", { "rt-high-contrast": e.highContrast }) }));
|
|
8465
8465
|
});
|
|
8466
8466
|
Qa.displayName = "Switch";
|
|
8467
8467
|
const xx = ["1", "2"], Px = ["nowrap", "wrap", "wrap-reverse"], Nx = ["start", "center", "end"], Cx = { size: { type: "enum", className: "rt-r-size", values: xx, default: "2", responsive: !0 }, wrap: { type: "enum", className: "rt-r-fw", values: Px, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: Nx, responsive: !0 }, ...pe, ...we }, zd = c.forwardRef((e, n) => {
|
|
8468
|
-
const { className: t, ...r } =
|
|
8468
|
+
const { className: t, ...r } = te(e, se);
|
|
8469
8469
|
return c.createElement(ay, { ...r, ref: n, className: X("rt-TabsRoot", t) });
|
|
8470
8470
|
});
|
|
8471
8471
|
zd.displayName = "Tabs.Root";
|
|
8472
8472
|
const Id = c.forwardRef((e, n) => {
|
|
8473
|
-
const { className: t, color: r, ...o } =
|
|
8473
|
+
const { className: t, color: r, ...o } = te(e, Cx, se);
|
|
8474
8474
|
return c.createElement(sy, { "data-accent-color": r, ...o, asChild: !1, ref: n, className: X("rt-BaseTabList", "rt-TabsList", t) });
|
|
8475
8475
|
});
|
|
8476
8476
|
Id.displayName = "Tabs.List";
|
|
@@ -8480,17 +8480,17 @@ const Rd = c.forwardRef((e, n) => {
|
|
|
8480
8480
|
});
|
|
8481
8481
|
Rd.displayName = "Tabs.Trigger";
|
|
8482
8482
|
const Ld = c.forwardRef((e, n) => {
|
|
8483
|
-
const { className: t, ...r } =
|
|
8483
|
+
const { className: t, ...r } = te(e, se);
|
|
8484
8484
|
return c.createElement(cy, { ...r, ref: n, className: X("rt-TabsContent", t) });
|
|
8485
8485
|
});
|
|
8486
8486
|
Ld.displayName = "Tabs.Content";
|
|
8487
8487
|
const Sx = ["1", "2", "3"], Ex = ["classic", "surface", "soft"], Ox = ["none", "vertical", "horizontal", "both"], Tx = { size: { type: "enum", className: "rt-r-size", values: Sx, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Ex, default: "surface" }, resize: { type: "enum", className: "rt-r-resize", values: Ox, responsive: !0 }, ...pe, ...Ue }, kd = c.forwardRef((e, n) => {
|
|
8488
|
-
const { className: t, color: r, radius: o, style: a, ...s } =
|
|
8488
|
+
const { className: t, color: r, radius: o, style: a, ...s } = te(e, Tx, se);
|
|
8489
8489
|
return c.createElement("div", { "data-accent-color": r, "data-radius": o, className: X("rt-TextAreaRoot", t), style: a }, c.createElement("textarea", { className: "rt-reset rt-TextAreaInput", ref: n, ...s }));
|
|
8490
8490
|
});
|
|
8491
8491
|
kd.displayName = "TextArea";
|
|
8492
8492
|
const Mx = { content: { type: "ReactNode", required: !0 }, width: Be.width, minWidth: Be.minWidth, maxWidth: { ...Be.maxWidth, default: "360px" } }, Bd = c.forwardRef((e, n) => {
|
|
8493
|
-
const { children: t, className: r, open: o, defaultOpen: a, onOpenChange: s, delayDuration: i, disableHoverableContent: l, content: A, container: V, forceMount: d, ...f } =
|
|
8493
|
+
const { children: t, className: r, open: o, defaultOpen: a, onOpenChange: s, delayDuration: i, disableHoverableContent: l, content: A, container: V, forceMount: d, ...f } = te(e, Mx), p = { open: o, defaultOpen: a, onOpenChange: s, delayDuration: i, disableHoverableContent: l };
|
|
8494
8494
|
return c.createElement(Ny, { ...p }, c.createElement(Cy, { asChild: !0 }, t), c.createElement(Sy, { container: V, forceMount: d }, c.createElement(Je, { asChild: !0 }, c.createElement(Ey, { sideOffset: 4, collisionPadding: 10, ...f, asChild: !1, ref: n, className: X("rt-TooltipContent", r) }, c.createElement(at, { as: "p", className: "rt-TooltipText", size: "1" }, A), c.createElement(Oy, { className: "rt-TooltipArrow" })))));
|
|
8495
8495
|
});
|
|
8496
8496
|
Bd.displayName = "Tooltip";
|
|
@@ -8532,17 +8532,17 @@ const Xd = bV({
|
|
|
8532
8532
|
...l
|
|
8533
8533
|
}, A) => {
|
|
8534
8534
|
const V = ["ds-accordion", i].filter(Boolean).join(" "), d = {
|
|
8535
|
-
"--accordion-trigger-color": r ?
|
|
8536
|
-
"--accordion-content-color": o ?
|
|
8537
|
-
"--accordion-border-color": a ?
|
|
8538
|
-
"--accordion-bg-color": s ?
|
|
8539
|
-
}, f = n.map((p) => /* @__PURE__ */
|
|
8535
|
+
"--accordion-trigger-color": r ? T(r) : void 0,
|
|
8536
|
+
"--accordion-content-color": o ? T(o) : void 0,
|
|
8537
|
+
"--accordion-border-color": a ? T(a) : void 0,
|
|
8538
|
+
"--accordion-bg-color": s ? T(s) : void 0
|
|
8539
|
+
}, f = n.map((p) => /* @__PURE__ */ O(
|
|
8540
8540
|
cf,
|
|
8541
8541
|
{
|
|
8542
8542
|
value: p.value,
|
|
8543
8543
|
className: "ds-accordion__item",
|
|
8544
8544
|
children: [
|
|
8545
|
-
/* @__PURE__ */ u(lf, { className: "ds-accordion__header", children: /* @__PURE__ */
|
|
8545
|
+
/* @__PURE__ */ u(lf, { className: "ds-accordion__header", children: /* @__PURE__ */ O(Af, { className: "ds-accordion__trigger", children: [
|
|
8546
8546
|
p.trigger,
|
|
8547
8547
|
/* @__PURE__ */ u(
|
|
8548
8548
|
"svg",
|
|
@@ -8617,17 +8617,17 @@ const zx = S.forwardRef(
|
|
|
8617
8617
|
...p
|
|
8618
8618
|
}, v) => {
|
|
8619
8619
|
const m = {
|
|
8620
|
-
"--alert-dialog-overlay-color": i ?
|
|
8621
|
-
"--alert-dialog-bg-color": l ?
|
|
8622
|
-
"--alert-dialog-title-color": A ?
|
|
8623
|
-
"--alert-dialog-desc-color": V ?
|
|
8624
|
-
"--alert-dialog-action-color": d ?
|
|
8620
|
+
"--alert-dialog-overlay-color": i ? T(i) : void 0,
|
|
8621
|
+
"--alert-dialog-bg-color": l ? T(l) : void 0,
|
|
8622
|
+
"--alert-dialog-title-color": A ? T(A) : void 0,
|
|
8623
|
+
"--alert-dialog-desc-color": V ? T(V) : void 0,
|
|
8624
|
+
"--alert-dialog-action-color": d ? T(d) : void 0
|
|
8625
8625
|
};
|
|
8626
|
-
return /* @__PURE__ */
|
|
8626
|
+
return /* @__PURE__ */ O(Dp, { ...p, children: [
|
|
8627
8627
|
e && /* @__PURE__ */ u(zp, { asChild: !0, children: e }),
|
|
8628
|
-
/* @__PURE__ */
|
|
8628
|
+
/* @__PURE__ */ O(Ip, { children: [
|
|
8629
8629
|
/* @__PURE__ */ u(Rp, { className: "ds-alert-dialog__overlay", style: m }),
|
|
8630
|
-
/* @__PURE__ */
|
|
8630
|
+
/* @__PURE__ */ O(
|
|
8631
8631
|
Lp,
|
|
8632
8632
|
{
|
|
8633
8633
|
ref: v,
|
|
@@ -8636,7 +8636,7 @@ const zx = S.forwardRef(
|
|
|
8636
8636
|
children: [
|
|
8637
8637
|
/* @__PURE__ */ u(Xp, { className: "ds-alert-dialog__title", children: n }),
|
|
8638
8638
|
/* @__PURE__ */ u(Wp, { className: "ds-alert-dialog__description", children: t }),
|
|
8639
|
-
/* @__PURE__ */
|
|
8639
|
+
/* @__PURE__ */ O("div", { className: "ds-alert-dialog__actions", children: [
|
|
8640
8640
|
/* @__PURE__ */ u(Bp, { asChild: !0, children: /* @__PURE__ */ u("button", { className: "ds-alert-dialog__button ds-alert-dialog__button--cancel", onClick: s, children: r }) }),
|
|
8641
8641
|
/* @__PURE__ */ u(kp, { asChild: !0, children: /* @__PURE__ */ u("button", { className: "ds-alert-dialog__button ds-alert-dialog__button--action", onClick: a, children: o }) })
|
|
8642
8642
|
] })
|
|
@@ -8662,8 +8662,8 @@ const Ix = S.forwardRef(
|
|
|
8662
8662
|
...A
|
|
8663
8663
|
}, V) => {
|
|
8664
8664
|
const d = ["ds-avatar", l].filter(Boolean).join(" "), f = {
|
|
8665
|
-
"--avatar-bg-color": s ?
|
|
8666
|
-
"--avatar-text-color": i ?
|
|
8665
|
+
"--avatar-bg-color": s ? T(s) : void 0,
|
|
8666
|
+
"--avatar-text-color": i ? T(i) : void 0
|
|
8667
8667
|
};
|
|
8668
8668
|
return /* @__PURE__ */ u(
|
|
8669
8669
|
Uu,
|
|
@@ -8710,7 +8710,7 @@ const Rx = S.forwardRef(
|
|
|
8710
8710
|
f && `ds-badge--${r}`,
|
|
8711
8711
|
A
|
|
8712
8712
|
].filter(Boolean).join(" ");
|
|
8713
|
-
return /* @__PURE__ */
|
|
8713
|
+
return /* @__PURE__ */ O(
|
|
8714
8714
|
Ku,
|
|
8715
8715
|
{
|
|
8716
8716
|
ref: d,
|
|
@@ -8723,9 +8723,9 @@ const Rx = S.forwardRef(
|
|
|
8723
8723
|
"data-color": r,
|
|
8724
8724
|
"data-high-contrast": o,
|
|
8725
8725
|
style: {
|
|
8726
|
-
"--badge-bg-color": a ?
|
|
8727
|
-
"--badge-text-color": s ?
|
|
8728
|
-
"--badge-border-color": i ?
|
|
8726
|
+
"--badge-bg-color": a ? T(a) : void 0,
|
|
8727
|
+
"--badge-text-color": s ? T(s) : void 0,
|
|
8728
|
+
"--badge-border-color": i ? T(i) : void 0
|
|
8729
8729
|
},
|
|
8730
8730
|
...V,
|
|
8731
8731
|
children: [
|
|
@@ -8769,7 +8769,7 @@ const et = S.forwardRef(
|
|
|
8769
8769
|
m && `ds-button--${r}`,
|
|
8770
8770
|
f
|
|
8771
8771
|
].filter(Boolean).join(" ");
|
|
8772
|
-
return /* @__PURE__ */
|
|
8772
|
+
return /* @__PURE__ */ O(
|
|
8773
8773
|
td,
|
|
8774
8774
|
{
|
|
8775
8775
|
ref: v,
|
|
@@ -8782,13 +8782,13 @@ const et = S.forwardRef(
|
|
|
8782
8782
|
"data-variant": n,
|
|
8783
8783
|
"data-color": r,
|
|
8784
8784
|
style: {
|
|
8785
|
-
"--button-bg-color": o ?
|
|
8786
|
-
"--button-text-color": a ?
|
|
8787
|
-
"--button-border-color": s ?
|
|
8785
|
+
"--button-bg-color": o ? T(o) : void 0,
|
|
8786
|
+
"--button-text-color": a ? T(a) : void 0,
|
|
8787
|
+
"--button-border-color": s ? T(s) : void 0
|
|
8788
8788
|
},
|
|
8789
8789
|
...p,
|
|
8790
8790
|
children: [
|
|
8791
|
-
i && /* @__PURE__ */ u("span", { className: "ds-button__spinner", "aria-hidden": "true", children: /* @__PURE__ */
|
|
8791
|
+
i && /* @__PURE__ */ u("span", { className: "ds-button__spinner", "aria-hidden": "true", children: /* @__PURE__ */ O(
|
|
8792
8792
|
"svg",
|
|
8793
8793
|
{
|
|
8794
8794
|
className: "ds-button__spinner-icon",
|
|
@@ -8839,9 +8839,9 @@ const Lx = S.forwardRef(
|
|
|
8839
8839
|
...i
|
|
8840
8840
|
}, l) => {
|
|
8841
8841
|
const A = ["ds-card", a].filter(Boolean).join(" "), V = {
|
|
8842
|
-
"--card-bg-color": t ?
|
|
8843
|
-
"--card-border-color": r ?
|
|
8844
|
-
"--card-text-color": o ?
|
|
8842
|
+
"--card-bg-color": t ? T(t) : void 0,
|
|
8843
|
+
"--card-border-color": r ? T(r) : void 0,
|
|
8844
|
+
"--card-text-color": o ? T(o) : void 0
|
|
8845
8845
|
};
|
|
8846
8846
|
return /* @__PURE__ */ u(
|
|
8847
8847
|
ad,
|
|
@@ -8883,17 +8883,17 @@ const kx = S.forwardRef(
|
|
|
8883
8883
|
size: e,
|
|
8884
8884
|
className: `ds-checkbox ${A}`,
|
|
8885
8885
|
style: {
|
|
8886
|
-
"--checkbox-bg-color": a ?
|
|
8887
|
-
"--checkbox-checked-color": s ?
|
|
8888
|
-
"--checkbox-border-color": i ?
|
|
8889
|
-
"--checkbox-checkmark-color": l ?
|
|
8886
|
+
"--checkbox-bg-color": a ? T(a) : void 0,
|
|
8887
|
+
"--checkbox-checked-color": s ? T(s) : void 0,
|
|
8888
|
+
"--checkbox-border-color": i ? T(i) : void 0,
|
|
8889
|
+
"--checkbox-checkmark-color": l ? T(l) : void 0
|
|
8890
8890
|
},
|
|
8891
8891
|
...V
|
|
8892
8892
|
}
|
|
8893
8893
|
);
|
|
8894
|
-
return !t && !p ? /* @__PURE__ */ u("div", { className: v, children: m }) : /* @__PURE__ */ u("div", { className: v, children: /* @__PURE__ */
|
|
8894
|
+
return !t && !p ? /* @__PURE__ */ u("div", { className: v, children: m }) : /* @__PURE__ */ u("div", { className: v, children: /* @__PURE__ */ O("div", { className: "ds-checkbox-container", children: [
|
|
8895
8895
|
m,
|
|
8896
|
-
t && /* @__PURE__ */
|
|
8896
|
+
t && /* @__PURE__ */ O("div", { className: "ds-checkbox-label-container", children: [
|
|
8897
8897
|
/* @__PURE__ */ u("label", { className: "ds-checkbox-label", children: t }),
|
|
8898
8898
|
p && /* @__PURE__ */ u(
|
|
8899
8899
|
"div",
|
|
@@ -8922,16 +8922,16 @@ const Bx = S.forwardRef(
|
|
|
8922
8922
|
...V
|
|
8923
8923
|
}, d) => {
|
|
8924
8924
|
const f = {
|
|
8925
|
-
"--dialog-overlay-color": a ?
|
|
8926
|
-
"--dialog-bg-color": s ?
|
|
8927
|
-
"--dialog-title-color": i ?
|
|
8928
|
-
"--dialog-desc-color": l ?
|
|
8925
|
+
"--dialog-overlay-color": a ? T(a) : void 0,
|
|
8926
|
+
"--dialog-bg-color": s ? T(s) : void 0,
|
|
8927
|
+
"--dialog-title-color": i ? T(i) : void 0,
|
|
8928
|
+
"--dialog-desc-color": l ? T(l) : void 0
|
|
8929
8929
|
};
|
|
8930
|
-
return /* @__PURE__ */
|
|
8930
|
+
return /* @__PURE__ */ O(na, { ...V, children: [
|
|
8931
8931
|
e && /* @__PURE__ */ u(ra, { asChild: !0, children: e }),
|
|
8932
|
-
/* @__PURE__ */
|
|
8932
|
+
/* @__PURE__ */ O(oa, { children: [
|
|
8933
8933
|
/* @__PURE__ */ u(aa, { className: "ds-dialog__overlay", style: f }),
|
|
8934
|
-
/* @__PURE__ */
|
|
8934
|
+
/* @__PURE__ */ O(
|
|
8935
8935
|
sa,
|
|
8936
8936
|
{
|
|
8937
8937
|
ref: d,
|
|
@@ -8983,10 +8983,10 @@ const Xx = S.forwardRef(
|
|
|
8983
8983
|
...A
|
|
8984
8984
|
}, V) => {
|
|
8985
8985
|
const d = {
|
|
8986
|
-
"--dropdown-menu-bg-color": a ?
|
|
8987
|
-
"--dropdown-menu-text-color": s ?
|
|
8986
|
+
"--dropdown-menu-bg-color": a ? T(a) : void 0,
|
|
8987
|
+
"--dropdown-menu-text-color": s ? T(s) : void 0
|
|
8988
8988
|
};
|
|
8989
|
-
return /* @__PURE__ */
|
|
8989
|
+
return /* @__PURE__ */ O(ud, { ...A, children: [
|
|
8990
8990
|
/* @__PURE__ */ u(dd, { children: e }),
|
|
8991
8991
|
/* @__PURE__ */ u(
|
|
8992
8992
|
fd,
|
|
@@ -9025,10 +9025,10 @@ const Wx = S.forwardRef(
|
|
|
9025
9025
|
...s
|
|
9026
9026
|
}, i) => {
|
|
9027
9027
|
const l = {
|
|
9028
|
-
"--hover-card-bg-color": t ?
|
|
9029
|
-
"--hover-card-text-color": r ?
|
|
9028
|
+
"--hover-card-bg-color": t ? T(t) : void 0,
|
|
9029
|
+
"--hover-card-text-color": r ? T(r) : void 0
|
|
9030
9030
|
};
|
|
9031
|
-
return /* @__PURE__ */
|
|
9031
|
+
return /* @__PURE__ */ O(md, { ...s, children: [
|
|
9032
9032
|
/* @__PURE__ */ u(vd, { children: e }),
|
|
9033
9033
|
/* @__PURE__ */ u(
|
|
9034
9034
|
hd,
|
|
@@ -9056,9 +9056,9 @@ const Hx = S.forwardRef(
|
|
|
9056
9056
|
...i
|
|
9057
9057
|
}, l) => {
|
|
9058
9058
|
const A = ["ds-label", a].filter(Boolean).join(" "), V = {
|
|
9059
|
-
"--label-text-color": t ?
|
|
9059
|
+
"--label-text-color": t ? T(t) : void 0
|
|
9060
9060
|
};
|
|
9061
|
-
return /* @__PURE__ */
|
|
9061
|
+
return /* @__PURE__ */ O(
|
|
9062
9062
|
at,
|
|
9063
9063
|
{
|
|
9064
9064
|
ref: l,
|
|
@@ -9090,10 +9090,10 @@ const jx = S.forwardRef(
|
|
|
9090
9090
|
...i
|
|
9091
9091
|
}, l) => {
|
|
9092
9092
|
const A = {
|
|
9093
|
-
"--popover-bg-color": r ?
|
|
9094
|
-
"--popover-text-color": o ?
|
|
9093
|
+
"--popover-bg-color": r ? T(r) : void 0,
|
|
9094
|
+
"--popover-text-color": o ? T(o) : void 0
|
|
9095
9095
|
};
|
|
9096
|
-
return /* @__PURE__ */
|
|
9096
|
+
return /* @__PURE__ */ O(gd, { ...i, children: [
|
|
9097
9097
|
/* @__PURE__ */ u(bd, { children: e }),
|
|
9098
9098
|
/* @__PURE__ */ u(
|
|
9099
9099
|
yd,
|
|
@@ -9122,8 +9122,8 @@ const Gx = S.forwardRef(
|
|
|
9122
9122
|
...i
|
|
9123
9123
|
}, l) => {
|
|
9124
9124
|
const A = ["ds-progress", s].filter(Boolean).join(" "), V = {
|
|
9125
|
-
"--progress-bg-color": o ?
|
|
9126
|
-
"--progress-fill-color": a ?
|
|
9125
|
+
"--progress-bg-color": o ? T(o) : void 0,
|
|
9126
|
+
"--progress-fill-color": a ? T(a) : void 0
|
|
9127
9127
|
};
|
|
9128
9128
|
return /* @__PURE__ */ u(
|
|
9129
9129
|
Gr,
|
|
@@ -9209,8 +9209,8 @@ const Zx = S.forwardRef(
|
|
|
9209
9209
|
"data-high-contrast": r,
|
|
9210
9210
|
"data-indeterminate": l,
|
|
9211
9211
|
style: {
|
|
9212
|
-
"--progress-bg-color": A ?
|
|
9213
|
-
"--progress-fill-color": V ?
|
|
9212
|
+
"--progress-bg-color": A ? T(A) : void 0,
|
|
9213
|
+
"--progress-fill-color": V ? T(V) : void 0
|
|
9214
9214
|
},
|
|
9215
9215
|
...f
|
|
9216
9216
|
}
|
|
@@ -9230,8 +9230,8 @@ const Wd = S.forwardRef(
|
|
|
9230
9230
|
...i
|
|
9231
9231
|
}, l) => {
|
|
9232
9232
|
const A = ["ds-radio-group", a].filter(Boolean).join(" "), V = {
|
|
9233
|
-
"--radio-group-color": r ?
|
|
9234
|
-
"--radio-group-text-color": o ?
|
|
9233
|
+
"--radio-group-color": r ? T(r) : void 0,
|
|
9234
|
+
"--radio-group-text-color": o ? T(o) : void 0
|
|
9235
9235
|
};
|
|
9236
9236
|
return /* @__PURE__ */ u(
|
|
9237
9237
|
Nd,
|
|
@@ -9268,7 +9268,7 @@ const Yx = S.forwardRef(
|
|
|
9268
9268
|
...a
|
|
9269
9269
|
}, s) => {
|
|
9270
9270
|
const i = ["ds-scroll-area", r].filter(Boolean).join(" "), l = {
|
|
9271
|
-
"--scroll-area-scrollbar-color": t ?
|
|
9271
|
+
"--scroll-area-scrollbar-color": t ? T(t) : void 0
|
|
9272
9272
|
};
|
|
9273
9273
|
return /* @__PURE__ */ u(
|
|
9274
9274
|
jr,
|
|
@@ -9298,10 +9298,10 @@ const Qx = S.forwardRef(
|
|
|
9298
9298
|
...l
|
|
9299
9299
|
}, A) => {
|
|
9300
9300
|
const V = {
|
|
9301
|
-
"--select-bg-color": o ?
|
|
9302
|
-
"--select-text-color": a ?
|
|
9301
|
+
"--select-bg-color": o ? T(o) : void 0,
|
|
9302
|
+
"--select-text-color": a ? T(a) : void 0
|
|
9303
9303
|
};
|
|
9304
|
-
return /* @__PURE__ */
|
|
9304
|
+
return /* @__PURE__ */ O(Sd, { ...l, children: [
|
|
9305
9305
|
/* @__PURE__ */ u(
|
|
9306
9306
|
Ed,
|
|
9307
9307
|
{
|
|
@@ -9342,7 +9342,7 @@ const Fx = S.forwardRef(
|
|
|
9342
9342
|
orientation: n,
|
|
9343
9343
|
className: s,
|
|
9344
9344
|
style: {
|
|
9345
|
-
"--separator-color": t ?
|
|
9345
|
+
"--separator-color": t ? T(t) : void 0
|
|
9346
9346
|
},
|
|
9347
9347
|
...o
|
|
9348
9348
|
}
|
|
@@ -9364,8 +9364,8 @@ const qx = S.forwardRef(
|
|
|
9364
9364
|
...A
|
|
9365
9365
|
}, V) => {
|
|
9366
9366
|
const d = ["ds-slider", l].filter(Boolean).join(" "), f = {
|
|
9367
|
-
"--slider-track-color": s ?
|
|
9368
|
-
"--slider-thumb-color": i ?
|
|
9367
|
+
"--slider-track-color": s ? T(s) : void 0,
|
|
9368
|
+
"--slider-thumb-color": i ? T(i) : void 0
|
|
9369
9369
|
};
|
|
9370
9370
|
return /* @__PURE__ */ u(
|
|
9371
9371
|
Dd,
|
|
@@ -9440,21 +9440,21 @@ const Ro = S.forwardRef(
|
|
|
9440
9440
|
P && `ds-stepper--${t}`,
|
|
9441
9441
|
`ds-stepper--text-${d}`,
|
|
9442
9442
|
g
|
|
9443
|
-
].filter(Boolean).join(" "),
|
|
9444
|
-
return /* @__PURE__ */
|
|
9443
|
+
].filter(Boolean).join(" "), z = V === "percentage" ? `${Math.round(x)}%` : v.replace("{current}", s.toString()).replace("{total}", i.toString());
|
|
9444
|
+
return /* @__PURE__ */ O(
|
|
9445
9445
|
"div",
|
|
9446
9446
|
{
|
|
9447
9447
|
className: N,
|
|
9448
9448
|
ref: w,
|
|
9449
9449
|
style: {
|
|
9450
|
-
"--stepper-bg-color": o ?
|
|
9451
|
-
"--stepper-bar-color": r ?
|
|
9452
|
-
"--stepper-text-color": f ?
|
|
9450
|
+
"--stepper-bg-color": o ? T(o) : void 0,
|
|
9451
|
+
"--stepper-bar-color": r ? T(r) : void 0,
|
|
9452
|
+
"--stepper-text-color": f ? T(f) : void 0
|
|
9453
9453
|
},
|
|
9454
9454
|
children: [
|
|
9455
|
-
(d === "top-left" || d === "top-center" || d === "top-right" || d === "left") && /* @__PURE__ */
|
|
9455
|
+
(d === "top-left" || d === "top-center" || d === "top-right" || d === "left") && /* @__PURE__ */ O("div", { className: "ds-stepper__text-container", children: [
|
|
9456
9456
|
m && /* @__PURE__ */ u("span", { className: "ds-stepper__start-text", children: m }),
|
|
9457
|
-
p && /* @__PURE__ */ u("span", { className: "ds-stepper__text", "data-size": n, children:
|
|
9457
|
+
p && /* @__PURE__ */ u("span", { className: "ds-stepper__text", "data-size": n, children: z }),
|
|
9458
9458
|
h && /* @__PURE__ */ u("span", { className: "ds-stepper__end-text", children: h })
|
|
9459
9459
|
] }),
|
|
9460
9460
|
/* @__PURE__ */ u(
|
|
@@ -9475,9 +9475,9 @@ const Ro = S.forwardRef(
|
|
|
9475
9475
|
...y
|
|
9476
9476
|
}
|
|
9477
9477
|
),
|
|
9478
|
-
(d === "bottom-left" || d === "bottom-center" || d === "bottom-right" || d === "right") && /* @__PURE__ */
|
|
9478
|
+
(d === "bottom-left" || d === "bottom-center" || d === "bottom-right" || d === "right") && /* @__PURE__ */ O("div", { className: "ds-stepper__text-container", children: [
|
|
9479
9479
|
m && /* @__PURE__ */ u("span", { className: "ds-stepper__start-text", children: m }),
|
|
9480
|
-
p && /* @__PURE__ */ u("span", { className: "ds-stepper__text", "data-size": n, children:
|
|
9480
|
+
p && /* @__PURE__ */ u("span", { className: "ds-stepper__text", "data-size": n, children: z }),
|
|
9481
9481
|
h && /* @__PURE__ */ u("span", { className: "ds-stepper__end-text", children: h })
|
|
9482
9482
|
] })
|
|
9483
9483
|
]
|
|
@@ -9510,15 +9510,15 @@ const Ux = S.forwardRef(
|
|
|
9510
9510
|
size: e,
|
|
9511
9511
|
className: `ds-switch ${l}`,
|
|
9512
9512
|
style: {
|
|
9513
|
-
"--switch-bg-color": a ?
|
|
9514
|
-
"--switch-checked-color": s ?
|
|
9515
|
-
"--switch-thumb-color": i ?
|
|
9513
|
+
"--switch-bg-color": a ? T(a) : void 0,
|
|
9514
|
+
"--switch-checked-color": s ? T(s) : void 0,
|
|
9515
|
+
"--switch-thumb-color": i ? T(i) : void 0
|
|
9516
9516
|
},
|
|
9517
9517
|
...A
|
|
9518
9518
|
}
|
|
9519
9519
|
);
|
|
9520
|
-
return !t && !r ? f : /* @__PURE__ */
|
|
9521
|
-
/* @__PURE__ */
|
|
9520
|
+
return !t && !r ? f : /* @__PURE__ */ O("div", { className: d, children: [
|
|
9521
|
+
/* @__PURE__ */ O("div", { className: "ds-switch-container", children: [
|
|
9522
9522
|
o === "left" && t && /* @__PURE__ */ u("label", { className: "ds-switch-label", children: t }),
|
|
9523
9523
|
f,
|
|
9524
9524
|
o === "right" && t && /* @__PURE__ */ u("label", { className: "ds-switch-label", children: t })
|
|
@@ -9537,10 +9537,10 @@ const Jx = S.forwardRef(
|
|
|
9537
9537
|
...o
|
|
9538
9538
|
}, a) => {
|
|
9539
9539
|
const s = ["ds-tabs", r].filter(Boolean).join(" "), i = {
|
|
9540
|
-
"--tabs-active-color": n ?
|
|
9541
|
-
"--tabs-text-color": t ?
|
|
9540
|
+
"--tabs-active-color": n ? T(n) : void 0,
|
|
9541
|
+
"--tabs-text-color": t ? T(t) : void 0
|
|
9542
9542
|
};
|
|
9543
|
-
return /* @__PURE__ */
|
|
9543
|
+
return /* @__PURE__ */ O(
|
|
9544
9544
|
zd,
|
|
9545
9545
|
{
|
|
9546
9546
|
ref: a,
|
|
@@ -9579,10 +9579,10 @@ const Kx = S.forwardRef(
|
|
|
9579
9579
|
...V
|
|
9580
9580
|
}, d) => {
|
|
9581
9581
|
const f = ["ds-toast", l].filter(Boolean).join(" "), p = {
|
|
9582
|
-
"--toast-bg-color": s ?
|
|
9583
|
-
"--toast-text-color": i ?
|
|
9582
|
+
"--toast-bg-color": s ? T(s) : void 0,
|
|
9583
|
+
"--toast-text-color": i ? T(i) : void 0
|
|
9584
9584
|
};
|
|
9585
|
-
return /* @__PURE__ */
|
|
9585
|
+
return /* @__PURE__ */ O(
|
|
9586
9586
|
rd,
|
|
9587
9587
|
{
|
|
9588
9588
|
ref: d,
|
|
@@ -9594,7 +9594,7 @@ const Kx = S.forwardRef(
|
|
|
9594
9594
|
...V,
|
|
9595
9595
|
children: [
|
|
9596
9596
|
a && /* @__PURE__ */ u(od, { children: a }),
|
|
9597
|
-
(r || o || A) && /* @__PURE__ */
|
|
9597
|
+
(r || o || A) && /* @__PURE__ */ O("div", { children: [
|
|
9598
9598
|
r && /* @__PURE__ */ u("div", { className: "ds-toast__title", children: r }),
|
|
9599
9599
|
o && /* @__PURE__ */ u("div", { className: "ds-toast__message", children: o }),
|
|
9600
9600
|
A
|
|
@@ -9627,14 +9627,14 @@ const _x = S.forwardRef(
|
|
|
9627
9627
|
size: e,
|
|
9628
9628
|
className: A,
|
|
9629
9629
|
style: {
|
|
9630
|
-
"--toggle-bg-color": r ?
|
|
9631
|
-
"--toggle-active-color": o ?
|
|
9632
|
-
"--toggle-text-color": a ?
|
|
9630
|
+
"--toggle-bg-color": r ? T(r) : void 0,
|
|
9631
|
+
"--toggle-active-color": o ? T(o) : void 0,
|
|
9632
|
+
"--toggle-text-color": a ? T(a) : void 0
|
|
9633
9633
|
},
|
|
9634
9634
|
...i
|
|
9635
9635
|
}
|
|
9636
9636
|
);
|
|
9637
|
-
return t ? /* @__PURE__ */
|
|
9637
|
+
return t ? /* @__PURE__ */ O("div", { className: "ds-toggle-wrapper", children: [
|
|
9638
9638
|
V,
|
|
9639
9639
|
/* @__PURE__ */ u("label", { className: "ds-toggle-label", children: t })
|
|
9640
9640
|
] }) : V;
|
|
@@ -9651,8 +9651,8 @@ const $x = S.forwardRef(
|
|
|
9651
9651
|
...a
|
|
9652
9652
|
}, s) => {
|
|
9653
9653
|
const i = ["ds-tooltip", o].filter(Boolean).join(" "), l = {
|
|
9654
|
-
"--tooltip-bg-color": t ?
|
|
9655
|
-
"--tooltip-text-color": r ?
|
|
9654
|
+
"--tooltip-bg-color": t ? T(t) : void 0,
|
|
9655
|
+
"--tooltip-text-color": r ? T(r) : void 0
|
|
9656
9656
|
};
|
|
9657
9657
|
return /* @__PURE__ */ u(
|
|
9658
9658
|
Bd,
|
|
@@ -10106,12 +10106,12 @@ function yP(e, n, t, r) {
|
|
|
10106
10106
|
}), f = [];
|
|
10107
10107
|
}
|
|
10108
10108
|
function x(C, b, N) {
|
|
10109
|
-
const
|
|
10110
|
-
switch (f = f.filter((
|
|
10109
|
+
const I = b !== "success";
|
|
10110
|
+
switch (f = f.filter((z) => z !== C), l) {
|
|
10111
10111
|
case "pending":
|
|
10112
10112
|
break;
|
|
10113
10113
|
case "failed":
|
|
10114
|
-
if (
|
|
10114
|
+
if (I || !e.dataAfterTimeout) return;
|
|
10115
10115
|
break;
|
|
10116
10116
|
default:
|
|
10117
10117
|
return;
|
|
@@ -10120,16 +10120,16 @@ function yP(e, n, t, r) {
|
|
|
10120
10120
|
V = N, y();
|
|
10121
10121
|
return;
|
|
10122
10122
|
}
|
|
10123
|
-
if (
|
|
10123
|
+
if (I) {
|
|
10124
10124
|
V = N, f.length || (s.length ? P() : y());
|
|
10125
10125
|
return;
|
|
10126
10126
|
}
|
|
10127
10127
|
if (v(), w(), !e.random) {
|
|
10128
|
-
const
|
|
10129
|
-
|
|
10128
|
+
const z = e.resources.indexOf(C.resource);
|
|
10129
|
+
z !== -1 && z !== e.index && (e.index = z);
|
|
10130
10130
|
}
|
|
10131
|
-
l = "completed", p.forEach((
|
|
10132
|
-
|
|
10131
|
+
l = "completed", p.forEach((z) => {
|
|
10132
|
+
z(N);
|
|
10133
10133
|
});
|
|
10134
10134
|
}
|
|
10135
10135
|
function P() {
|
|
@@ -10149,8 +10149,8 @@ function yP(e, n, t, r) {
|
|
|
10149
10149
|
const b = {
|
|
10150
10150
|
status: "pending",
|
|
10151
10151
|
resource: C,
|
|
10152
|
-
callback: (N,
|
|
10153
|
-
x(b, N,
|
|
10152
|
+
callback: (N, I) => {
|
|
10153
|
+
x(b, N, I);
|
|
10154
10154
|
}
|
|
10155
10155
|
};
|
|
10156
10156
|
f.push(b), A++, d = setTimeout(P, e.rotate), t(C, n, b.callback);
|
|
@@ -11098,13 +11098,13 @@ const Ge = S.forwardRef(
|
|
|
11098
11098
|
s && "ds-radio-selector--disabled",
|
|
11099
11099
|
l
|
|
11100
11100
|
].filter(Boolean).join(" "), w = {
|
|
11101
|
-
"--radio-selector-active-border": A ?
|
|
11102
|
-
"--radio-selector-active-bg": V ?
|
|
11103
|
-
"--radio-selector-active-text": d ?
|
|
11104
|
-
"--radio-selector-default-border": f ?
|
|
11105
|
-
"--radio-selector-default-text": p ?
|
|
11101
|
+
"--radio-selector-active-border": A ? T(A) : void 0,
|
|
11102
|
+
"--radio-selector-active-bg": V ? T(V) : void 0,
|
|
11103
|
+
"--radio-selector-active-text": d ? T(d) : void 0,
|
|
11104
|
+
"--radio-selector-default-border": f ? T(f) : void 0,
|
|
11105
|
+
"--radio-selector-default-text": p ? T(p) : void 0
|
|
11106
11106
|
}, x = r.startsWith("solar:") ? r : `solar:${r}`;
|
|
11107
|
-
return /* @__PURE__ */
|
|
11107
|
+
return /* @__PURE__ */ O(
|
|
11108
11108
|
"div",
|
|
11109
11109
|
{
|
|
11110
11110
|
ref: g,
|
|
@@ -11117,7 +11117,7 @@ const Ge = S.forwardRef(
|
|
|
11117
11117
|
tabIndex: s ? -1 : 0,
|
|
11118
11118
|
children: [
|
|
11119
11119
|
n && /* @__PURE__ */ u("div", { className: "ds-radio-selector__icon", children: /* @__PURE__ */ u(be, { icon: x, width: 24, height: 24 }) }),
|
|
11120
|
-
/* @__PURE__ */
|
|
11120
|
+
/* @__PURE__ */ O("div", { className: "ds-radio-selector__content", children: [
|
|
11121
11121
|
/* @__PURE__ */ u("div", { className: "ds-radio-selector__title", children: o }),
|
|
11122
11122
|
t && a && /* @__PURE__ */ u("div", { className: "ds-radio-selector__subtext", children: a })
|
|
11123
11123
|
] }),
|
|
@@ -11150,17 +11150,17 @@ const aV = S.forwardRef(
|
|
|
11150
11150
|
r && "ds-checkbox-chip--disabled",
|
|
11151
11151
|
a
|
|
11152
11152
|
].filter(Boolean).join(" "), m = {
|
|
11153
|
-
"--checkbox-chip-checked-border": s ?
|
|
11154
|
-
"--checkbox-chip-checked-bg": i ?
|
|
11155
|
-
"--checkbox-chip-checked-text": l ?
|
|
11156
|
-
"--checkbox-chip-checked-icon": A ?
|
|
11157
|
-
"--checkbox-chip-default-border": V ?
|
|
11158
|
-
"--checkbox-chip-default-text": d ?
|
|
11159
|
-
"--checkbox-chip-default-icon": f ?
|
|
11153
|
+
"--checkbox-chip-checked-border": s ? T(s) : void 0,
|
|
11154
|
+
"--checkbox-chip-checked-bg": i ? T(i) : void 0,
|
|
11155
|
+
"--checkbox-chip-checked-text": l ? T(l) : void 0,
|
|
11156
|
+
"--checkbox-chip-checked-icon": A ? T(A) : void 0,
|
|
11157
|
+
"--checkbox-chip-default-border": V ? T(V) : void 0,
|
|
11158
|
+
"--checkbox-chip-default-text": d ? T(d) : void 0,
|
|
11159
|
+
"--checkbox-chip-default-icon": f ? T(f) : void 0
|
|
11160
11160
|
}, h = () => {
|
|
11161
11161
|
!r && o && o(!n);
|
|
11162
11162
|
}, g = t && (t.includes(".svg") || t.startsWith("/") || t.startsWith("http") || t.includes("data:image")), y = !g && t ? t.startsWith("solar:") ? t : `solar:${t}` : void 0;
|
|
11163
|
-
return /* @__PURE__ */
|
|
11163
|
+
return /* @__PURE__ */ O(
|
|
11164
11164
|
"button",
|
|
11165
11165
|
{
|
|
11166
11166
|
ref: p,
|
|
@@ -11202,8 +11202,8 @@ const pt = S.forwardRef(
|
|
|
11202
11202
|
if (!p.current) return;
|
|
11203
11203
|
const w = p.current, x = w.querySelectorAll(".ds-checkbox-chip");
|
|
11204
11204
|
if (x.length === 0) return;
|
|
11205
|
-
const N = x[0].offsetHeight + 8,
|
|
11206
|
-
m(
|
|
11205
|
+
const N = x[0].offsetHeight + 8, I = w.scrollHeight, z = Math.ceil(I / N);
|
|
11206
|
+
m(z > r);
|
|
11207
11207
|
}, [e, r]);
|
|
11208
11208
|
const h = (w, x) => {
|
|
11209
11209
|
if (!t) return;
|
|
@@ -11249,15 +11249,15 @@ const sV = S.forwardRef(
|
|
|
11249
11249
|
...i
|
|
11250
11250
|
}, l) => {
|
|
11251
11251
|
const A = {
|
|
11252
|
-
"--modal-overlay-color": r ?
|
|
11253
|
-
"--modal-bg-color": o ?
|
|
11252
|
+
"--modal-overlay-color": r ? T(r) : void 0,
|
|
11253
|
+
"--modal-bg-color": o ? T(o) : void 0,
|
|
11254
11254
|
"--modal-width": s
|
|
11255
11255
|
};
|
|
11256
|
-
return /* @__PURE__ */
|
|
11256
|
+
return /* @__PURE__ */ O(na, { ...i, children: [
|
|
11257
11257
|
e && /* @__PURE__ */ u(ra, { asChild: !0, children: e }),
|
|
11258
|
-
/* @__PURE__ */ u(oa, { children: /* @__PURE__ */
|
|
11258
|
+
/* @__PURE__ */ u(oa, { children: /* @__PURE__ */ O(Je, { children: [
|
|
11259
11259
|
/* @__PURE__ */ u(aa, { className: "ds-modal__overlay", style: A }),
|
|
11260
|
-
/* @__PURE__ */
|
|
11260
|
+
/* @__PURE__ */ O(
|
|
11261
11261
|
sa,
|
|
11262
11262
|
{
|
|
11263
11263
|
ref: l,
|
|
@@ -11284,11 +11284,11 @@ const iV = S.forwardRef(
|
|
|
11284
11284
|
children: a
|
|
11285
11285
|
}, s) => {
|
|
11286
11286
|
const i = {
|
|
11287
|
-
"--modal-title-color": t ?
|
|
11288
|
-
"--modal-desc-color": r ?
|
|
11287
|
+
"--modal-title-color": t ? T(t) : void 0,
|
|
11288
|
+
"--modal-desc-color": r ? T(r) : void 0
|
|
11289
11289
|
};
|
|
11290
|
-
return /* @__PURE__ */
|
|
11291
|
-
/* @__PURE__ */
|
|
11290
|
+
return /* @__PURE__ */ O("div", { ref: s, className: `ds-modal__header ${o}`, style: i, children: [
|
|
11291
|
+
/* @__PURE__ */ O("div", { className: "ds-modal__header-text", children: [
|
|
11292
11292
|
/* @__PURE__ */ u(ia, { asChild: !0, children: /* @__PURE__ */ u(at, { as: "div", className: "ds-modal__title", size: "3", weight: "bold", children: e }) }),
|
|
11293
11293
|
n && /* @__PURE__ */ u(ca, { asChild: !0, children: /* @__PURE__ */ u(at, { as: "div", className: "ds-modal__description", size: "1", children: n }) })
|
|
11294
11294
|
] }),
|
|
@@ -11328,21 +11328,21 @@ const Ie = Object.assign(sV, {
|
|
|
11328
11328
|
iconColorToken: A
|
|
11329
11329
|
}, V) => {
|
|
11330
11330
|
const d = ["ds-onboarding-info-box", t].filter(Boolean).join(" "), f = {
|
|
11331
|
-
"--onboarding-info-box-bg": r ?
|
|
11332
|
-
"--onboarding-info-box-border": o ?
|
|
11333
|
-
"--onboarding-info-box-title": a ?
|
|
11334
|
-
"--onboarding-info-box-item-bg": s ?
|
|
11335
|
-
"--onboarding-info-box-item-title": i ?
|
|
11336
|
-
"--onboarding-info-box-item-description": l ?
|
|
11337
|
-
"--onboarding-info-box-icon": A ?
|
|
11331
|
+
"--onboarding-info-box-bg": r ? T(r) : void 0,
|
|
11332
|
+
"--onboarding-info-box-border": o ? T(o) : void 0,
|
|
11333
|
+
"--onboarding-info-box-title": a ? T(a) : void 0,
|
|
11334
|
+
"--onboarding-info-box-item-bg": s ? T(s) : void 0,
|
|
11335
|
+
"--onboarding-info-box-item-title": i ? T(i) : void 0,
|
|
11336
|
+
"--onboarding-info-box-item-description": l ? T(l) : void 0,
|
|
11337
|
+
"--onboarding-info-box-icon": A ? T(A) : void 0
|
|
11338
11338
|
};
|
|
11339
|
-
return /* @__PURE__ */
|
|
11339
|
+
return /* @__PURE__ */ O("div", { ref: V, className: d, style: f, children: [
|
|
11340
11340
|
/* @__PURE__ */ u("h2", { className: "ds-onboarding-info-box__title", children: e }),
|
|
11341
11341
|
/* @__PURE__ */ u("div", { className: "ds-onboarding-info-box__items", children: n.map((p, v) => {
|
|
11342
11342
|
const m = p.icon.startsWith("solar:") ? p.icon : `solar:${p.icon}`;
|
|
11343
|
-
return /* @__PURE__ */
|
|
11343
|
+
return /* @__PURE__ */ O("div", { className: "ds-onboarding-info-box__item", children: [
|
|
11344
11344
|
/* @__PURE__ */ u("div", { className: "ds-onboarding-info-box__item-icon", children: /* @__PURE__ */ u(be, { icon: m, width: 24, height: 24 }) }),
|
|
11345
|
-
/* @__PURE__ */
|
|
11345
|
+
/* @__PURE__ */ O("div", { className: "ds-onboarding-info-box__item-content", children: [
|
|
11346
11346
|
/* @__PURE__ */ u("div", { className: "ds-onboarding-info-box__item-title", children: p.title }),
|
|
11347
11347
|
/* @__PURE__ */ u("div", { className: "ds-onboarding-info-box__item-description", children: p.description })
|
|
11348
11348
|
] })
|
|
@@ -11370,21 +11370,21 @@ const Go = S.forwardRef(
|
|
|
11370
11370
|
buttonTextColorToken: p
|
|
11371
11371
|
}, v) => {
|
|
11372
11372
|
const m = ["ds-cta-box", s].filter(Boolean).join(" "), h = {
|
|
11373
|
-
"--cta-box-bg": i ?
|
|
11374
|
-
"--cta-box-border": l ?
|
|
11375
|
-
"--cta-box-label": A ?
|
|
11376
|
-
"--cta-box-heading": V ?
|
|
11377
|
-
"--cta-box-description": d ?
|
|
11378
|
-
"--cta-box-button-bg": f ?
|
|
11379
|
-
"--cta-box-button-text": p ?
|
|
11373
|
+
"--cta-box-bg": i ? T(i) : void 0,
|
|
11374
|
+
"--cta-box-border": l ? T(l) : void 0,
|
|
11375
|
+
"--cta-box-label": A ? T(A) : void 0,
|
|
11376
|
+
"--cta-box-heading": V ? T(V) : void 0,
|
|
11377
|
+
"--cta-box-description": d ? T(d) : void 0,
|
|
11378
|
+
"--cta-box-button-bg": f ? T(f) : void 0,
|
|
11379
|
+
"--cta-box-button-text": p ? T(p) : void 0
|
|
11380
11380
|
};
|
|
11381
|
-
return /* @__PURE__ */
|
|
11382
|
-
/* @__PURE__ */
|
|
11381
|
+
return /* @__PURE__ */ O("div", { ref: v, className: m, style: h, children: [
|
|
11382
|
+
/* @__PURE__ */ O("div", { className: "ds-cta-box__text", children: [
|
|
11383
11383
|
/* @__PURE__ */ u("div", { className: "ds-cta-box__label", children: e }),
|
|
11384
11384
|
/* @__PURE__ */ u("div", { className: "ds-cta-box__heading", children: n }),
|
|
11385
11385
|
/* @__PURE__ */ u("div", { className: "ds-cta-box__description", children: t })
|
|
11386
11386
|
] }),
|
|
11387
|
-
/* @__PURE__ */
|
|
11387
|
+
/* @__PURE__ */ O(
|
|
11388
11388
|
"button",
|
|
11389
11389
|
{
|
|
11390
11390
|
type: "button",
|
|
@@ -11429,16 +11429,16 @@ const AV = S.forwardRef(
|
|
|
11429
11429
|
resize: a,
|
|
11430
11430
|
className: `ds-textarea ${d}`,
|
|
11431
11431
|
style: {
|
|
11432
|
-
"--textarea-bg-color": s ?
|
|
11433
|
-
"--textarea-border-color": i ?
|
|
11434
|
-
"--textarea-text-color": l ?
|
|
11435
|
-
"--textarea-placeholder-color": A ?
|
|
11436
|
-
"--textarea-focus-border-color": V ?
|
|
11432
|
+
"--textarea-bg-color": s ? T(s) : void 0,
|
|
11433
|
+
"--textarea-border-color": i ? T(i) : void 0,
|
|
11434
|
+
"--textarea-text-color": l ? T(l) : void 0,
|
|
11435
|
+
"--textarea-placeholder-color": A ? T(A) : void 0,
|
|
11436
|
+
"--textarea-focus-border-color": V ? T(V) : void 0
|
|
11437
11437
|
},
|
|
11438
11438
|
...f
|
|
11439
11439
|
}
|
|
11440
11440
|
);
|
|
11441
|
-
return !t && !m ? /* @__PURE__ */ u("div", { className: h, children: g }) : /* @__PURE__ */
|
|
11441
|
+
return !t && !m ? /* @__PURE__ */ u("div", { className: h, children: g }) : /* @__PURE__ */ O("div", { className: h, children: [
|
|
11442
11442
|
t && /* @__PURE__ */ u("label", { className: "ds-textarea-label", children: t }),
|
|
11443
11443
|
g,
|
|
11444
11444
|
m && /* @__PURE__ */ u(
|
|
@@ -11496,119 +11496,129 @@ const Ft = {
|
|
|
11496
11496
|
formStep: { ...Ft.formStep, ...e.formStep },
|
|
11497
11497
|
confirmationStep: { ...Ft.confirmationStep, ...e.confirmationStep },
|
|
11498
11498
|
formTriggerValues: e.formTriggerValues ?? Ft.formTriggerValues
|
|
11499
|
-
}, [V, d] = S.useState(!1), [f, p] = S.useState("selection"), [v, m] = S.useState(""), [h, g] = S.useState(""), y = t !== void 0, w = y ? t : V, x = (
|
|
11500
|
-
y || d(
|
|
11501
|
-
}, P = (
|
|
11502
|
-
const
|
|
11503
|
-
return Array.isArray(
|
|
11499
|
+
}, [V, d] = S.useState(!1), [f, p] = S.useState("selection"), [v, m] = S.useState(""), [h, g] = S.useState(""), y = t !== void 0, w = y ? t : V, x = (D) => {
|
|
11500
|
+
y || d(D), r == null || r(D);
|
|
11501
|
+
}, P = (D) => {
|
|
11502
|
+
const F = A.formTriggerValues;
|
|
11503
|
+
return Array.isArray(F) ? F.includes(D) : D === F;
|
|
11504
11504
|
}, C = () => {
|
|
11505
11505
|
x(!1), p("selection"), m(""), g(""), o == null || o();
|
|
11506
|
-
}, b = (
|
|
11507
|
-
p(
|
|
11506
|
+
}, b = (D) => {
|
|
11507
|
+
p(D), s == null || s(D, { reason: v, feedback: h });
|
|
11508
11508
|
}, N = () => {
|
|
11509
11509
|
v && (P(v) ? b("form") : (a == null || a(v), b("confirmation")));
|
|
11510
|
-
},
|
|
11510
|
+
}, I = () => {
|
|
11511
11511
|
a == null || a(v, h), b("confirmation");
|
|
11512
|
-
},
|
|
11512
|
+
}, z = () => {
|
|
11513
11513
|
b("selection"), g("");
|
|
11514
|
-
},
|
|
11515
|
-
const { linkUrl:
|
|
11516
|
-
|
|
11517
|
-
}, j = /* @__PURE__ */ u(et, { children: "Flag this mockup" }), { selectionStep:
|
|
11518
|
-
|
|
11519
|
-
|
|
11520
|
-
{
|
|
11521
|
-
|
|
11522
|
-
|
|
11523
|
-
|
|
11524
|
-
|
|
11525
|
-
|
|
11526
|
-
|
|
11527
|
-
|
|
11528
|
-
|
|
11529
|
-
|
|
11530
|
-
|
|
11531
|
-
|
|
11532
|
-
|
|
11533
|
-
|
|
11534
|
-
|
|
11535
|
-
{
|
|
11536
|
-
options: Y.options,
|
|
11537
|
-
value: v,
|
|
11538
|
-
onValueChange: m,
|
|
11539
|
-
size: "1"
|
|
11540
|
-
}
|
|
11541
|
-
) }) }),
|
|
11542
|
-
/* @__PURE__ */ u(Ie.Footer, { children: /* @__PURE__ */ u(
|
|
11543
|
-
et,
|
|
11544
|
-
{
|
|
11545
|
-
color: "primary",
|
|
11546
|
-
size: "1",
|
|
11547
|
-
onClick: N,
|
|
11548
|
-
disabled: !v,
|
|
11549
|
-
children: Y.continueButtonText
|
|
11550
|
-
}
|
|
11551
|
-
) })
|
|
11552
|
-
] }),
|
|
11553
|
-
f === "form" && /* @__PURE__ */ T(ce, { children: [
|
|
11554
|
-
/* @__PURE__ */ u(
|
|
11555
|
-
Ie.Header,
|
|
11556
|
-
{
|
|
11557
|
-
title: G.title,
|
|
11558
|
-
description: G.description
|
|
11559
|
-
}
|
|
11560
|
-
),
|
|
11561
|
-
/* @__PURE__ */ u(Ie.Content, { children: /* @__PURE__ */ u(cn, { style: { width: "100%" }, p: "1", children: /* @__PURE__ */ u(
|
|
11562
|
-
AV,
|
|
11563
|
-
{
|
|
11564
|
-
value: h,
|
|
11565
|
-
onChange: (L) => g(L.target.value),
|
|
11566
|
-
placeholder: G.placeholder,
|
|
11567
|
-
rows: 4,
|
|
11568
|
-
resize: "none",
|
|
11569
|
-
size: "1"
|
|
11570
|
-
}
|
|
11571
|
-
) }) }),
|
|
11572
|
-
/* @__PURE__ */ T(Ie.Footer, { children: [
|
|
11573
|
-
/* @__PURE__ */ u(et, { variant: "soft", color: "primary", size: "1", onClick: D, children: G.backButtonText }),
|
|
11514
|
+
}, L = () => {
|
|
11515
|
+
const { linkUrl: D, onLinkClick: F } = A.confirmationStep;
|
|
11516
|
+
F ? F() : D && window.open(D, "_blank", "noopener,noreferrer");
|
|
11517
|
+
}, j = /* @__PURE__ */ u(et, { children: "Flag this mockup" }), { selectionStep: Z, formStep: G, confirmationStep: q } = A, B = () => {
|
|
11518
|
+
x(!0);
|
|
11519
|
+
}, Y = n || j, k = S.isValidElement(Y) ? S.cloneElement(Y, {
|
|
11520
|
+
onClick: (D) => {
|
|
11521
|
+
var ee;
|
|
11522
|
+
const F = (ee = Y.props) == null ? void 0 : ee.onClick;
|
|
11523
|
+
F && F(D), B();
|
|
11524
|
+
}
|
|
11525
|
+
}) : Y;
|
|
11526
|
+
return /* @__PURE__ */ O("div", { ref: l, className: `ds-flag-bad-mockups ${i}`, children: [
|
|
11527
|
+
k,
|
|
11528
|
+
/* @__PURE__ */ O(
|
|
11529
|
+
Ie,
|
|
11530
|
+
{
|
|
11531
|
+
open: w,
|
|
11532
|
+
onOpenChange: x,
|
|
11533
|
+
children: [
|
|
11534
|
+
f === "selection" && /* @__PURE__ */ O(ce, { children: [
|
|
11574
11535
|
/* @__PURE__ */ u(
|
|
11536
|
+
Ie.Header,
|
|
11537
|
+
{
|
|
11538
|
+
title: Z.title,
|
|
11539
|
+
description: Z.description
|
|
11540
|
+
}
|
|
11541
|
+
),
|
|
11542
|
+
/* @__PURE__ */ u(Ie.Content, { children: /* @__PURE__ */ u("div", { style: { width: "100%" }, children: /* @__PURE__ */ u(
|
|
11543
|
+
Wd,
|
|
11544
|
+
{
|
|
11545
|
+
options: Z.options,
|
|
11546
|
+
value: v,
|
|
11547
|
+
onValueChange: m,
|
|
11548
|
+
size: "1"
|
|
11549
|
+
}
|
|
11550
|
+
) }) }),
|
|
11551
|
+
/* @__PURE__ */ u(Ie.Footer, { children: /* @__PURE__ */ u(
|
|
11575
11552
|
et,
|
|
11576
11553
|
{
|
|
11577
11554
|
color: "primary",
|
|
11578
11555
|
size: "1",
|
|
11579
|
-
onClick:
|
|
11580
|
-
disabled: !
|
|
11581
|
-
children:
|
|
11556
|
+
onClick: N,
|
|
11557
|
+
disabled: !v,
|
|
11558
|
+
children: Z.continueButtonText
|
|
11582
11559
|
}
|
|
11583
|
-
)
|
|
11560
|
+
) })
|
|
11561
|
+
] }),
|
|
11562
|
+
f === "form" && /* @__PURE__ */ O(ce, { children: [
|
|
11563
|
+
/* @__PURE__ */ u(
|
|
11564
|
+
Ie.Header,
|
|
11565
|
+
{
|
|
11566
|
+
title: G.title,
|
|
11567
|
+
description: G.description
|
|
11568
|
+
}
|
|
11569
|
+
),
|
|
11570
|
+
/* @__PURE__ */ u(Ie.Content, { children: /* @__PURE__ */ u(cn, { style: { width: "100%" }, p: "1", children: /* @__PURE__ */ u(
|
|
11571
|
+
AV,
|
|
11572
|
+
{
|
|
11573
|
+
value: h,
|
|
11574
|
+
onChange: (D) => g(D.target.value),
|
|
11575
|
+
placeholder: G.placeholder,
|
|
11576
|
+
rows: 4,
|
|
11577
|
+
resize: "none",
|
|
11578
|
+
size: "1"
|
|
11579
|
+
}
|
|
11580
|
+
) }) }),
|
|
11581
|
+
/* @__PURE__ */ O(Ie.Footer, { children: [
|
|
11582
|
+
/* @__PURE__ */ u(et, { variant: "soft", color: "primary", size: "1", onClick: z, children: G.backButtonText }),
|
|
11583
|
+
/* @__PURE__ */ u(
|
|
11584
|
+
et,
|
|
11585
|
+
{
|
|
11586
|
+
color: "primary",
|
|
11587
|
+
size: "1",
|
|
11588
|
+
onClick: I,
|
|
11589
|
+
disabled: !h.trim(),
|
|
11590
|
+
children: G.submitButtonText
|
|
11591
|
+
}
|
|
11592
|
+
)
|
|
11593
|
+
] })
|
|
11594
|
+
] }),
|
|
11595
|
+
f === "confirmation" && /* @__PURE__ */ O(ce, { children: [
|
|
11596
|
+
/* @__PURE__ */ u(
|
|
11597
|
+
Ie.Header,
|
|
11598
|
+
{
|
|
11599
|
+
title: q.title,
|
|
11600
|
+
description: q.description
|
|
11601
|
+
}
|
|
11602
|
+
),
|
|
11603
|
+
/* @__PURE__ */ u(Ie.Content, { children: q.linkText && /* @__PURE__ */ u(
|
|
11604
|
+
at,
|
|
11605
|
+
{
|
|
11606
|
+
size: "1",
|
|
11607
|
+
style: {
|
|
11608
|
+
color: "var(--slate-11)",
|
|
11609
|
+
textDecoration: "underline",
|
|
11610
|
+
cursor: "pointer"
|
|
11611
|
+
},
|
|
11612
|
+
onClick: L,
|
|
11613
|
+
children: q.linkText
|
|
11614
|
+
}
|
|
11615
|
+
) }),
|
|
11616
|
+
/* @__PURE__ */ u(Ie.Footer, { children: /* @__PURE__ */ u(et, { color: "primary", size: "1", onClick: C, children: q.closeButtonText }) })
|
|
11584
11617
|
] })
|
|
11585
|
-
]
|
|
11586
|
-
|
|
11587
|
-
|
|
11588
|
-
|
|
11589
|
-
{
|
|
11590
|
-
title: F.title,
|
|
11591
|
-
description: F.description
|
|
11592
|
-
}
|
|
11593
|
-
),
|
|
11594
|
-
/* @__PURE__ */ u(Ie.Content, { children: F.linkText && /* @__PURE__ */ u(
|
|
11595
|
-
at,
|
|
11596
|
-
{
|
|
11597
|
-
size: "1",
|
|
11598
|
-
style: {
|
|
11599
|
-
color: "var(--slate-11)",
|
|
11600
|
-
textDecoration: "underline",
|
|
11601
|
-
cursor: "pointer"
|
|
11602
|
-
},
|
|
11603
|
-
onClick: k,
|
|
11604
|
-
children: F.linkText
|
|
11605
|
-
}
|
|
11606
|
-
) }),
|
|
11607
|
-
/* @__PURE__ */ u(Ie.Footer, { children: /* @__PURE__ */ u(et, { color: "primary", size: "1", onClick: C, children: F.closeButtonText }) })
|
|
11608
|
-
] })
|
|
11609
|
-
]
|
|
11610
|
-
}
|
|
11611
|
-
) });
|
|
11618
|
+
]
|
|
11619
|
+
}
|
|
11620
|
+
)
|
|
11621
|
+
] });
|
|
11612
11622
|
}
|
|
11613
11623
|
);
|
|
11614
11624
|
tN.displayName = "FlagBadMockups";
|
|
@@ -11623,8 +11633,8 @@ const uV = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB3wAAAiICAYAAAA/ydRVAA
|
|
|
11623
11633
|
const s = ["ds-onboarding-artwork", o].filter(Boolean).join(" "), i = {
|
|
11624
11634
|
background: `linear-gradient(180deg, ${e} 0%, ${n} 100%)`
|
|
11625
11635
|
};
|
|
11626
|
-
return /* @__PURE__ */
|
|
11627
|
-
/* @__PURE__ */
|
|
11636
|
+
return /* @__PURE__ */ O("div", { ref: a, className: s, children: [
|
|
11637
|
+
/* @__PURE__ */ O("div", { className: "ds-onboarding-artwork__background", children: [
|
|
11628
11638
|
/* @__PURE__ */ u(
|
|
11629
11639
|
"div",
|
|
11630
11640
|
{
|
|
@@ -11681,33 +11691,33 @@ const Ze = S.forwardRef(
|
|
|
11681
11691
|
firstQuestion: C = "What is your role?",
|
|
11682
11692
|
firstRadioOptions: b = [],
|
|
11683
11693
|
selectedFirstRadioOption: N,
|
|
11684
|
-
onFirstRadioChange:
|
|
11685
|
-
secondRadioOptions:
|
|
11686
|
-
selectedSecondRadioOption:
|
|
11694
|
+
onFirstRadioChange: I,
|
|
11695
|
+
secondRadioOptions: z = [],
|
|
11696
|
+
selectedSecondRadioOption: L,
|
|
11687
11697
|
onSecondRadioChange: j,
|
|
11688
|
-
textInputValue:
|
|
11698
|
+
textInputValue: Z = "",
|
|
11689
11699
|
onTextInputChange: G,
|
|
11690
|
-
textInputPlaceholder:
|
|
11691
|
-
launcherIcon:
|
|
11692
|
-
launcherHeadline:
|
|
11693
|
-
launcherText:
|
|
11694
|
-
launcherSubtext:
|
|
11695
|
-
infoBoxTitle:
|
|
11696
|
-
infoBoxItems:
|
|
11700
|
+
textInputPlaceholder: q = "Enter your website URL",
|
|
11701
|
+
launcherIcon: B = "rocket-bold",
|
|
11702
|
+
launcherHeadline: Y = "Launcher",
|
|
11703
|
+
launcherText: k = "Let's get your product ready to sell.",
|
|
11704
|
+
launcherSubtext: D = "You're preparing to launch. We'll help you create professional product images so your first listings look credible from day one.",
|
|
11705
|
+
infoBoxTitle: F = "What we will focus on",
|
|
11706
|
+
infoBoxItems: ee = [],
|
|
11697
11707
|
ctaLabel: ue = "YOUR FIRST ACTION",
|
|
11698
11708
|
ctaHeading: xe = "Create your first product mockup",
|
|
11699
11709
|
ctaDescription: Ve = "Choose a template and generate an image you can immediately use in your store or marketplace listing.",
|
|
11700
11710
|
ctaButtonText: Pe = "Get Started",
|
|
11701
11711
|
onCTAClick: le,
|
|
11702
11712
|
artworkBackgroundImage: W,
|
|
11703
|
-
artworkImage:
|
|
11704
|
-
onContinue:
|
|
11705
|
-
onBack:
|
|
11706
|
-
continueDisabled:
|
|
11713
|
+
artworkImage: J,
|
|
11714
|
+
onContinue: K,
|
|
11715
|
+
onBack: U,
|
|
11716
|
+
continueDisabled: _ = !1,
|
|
11707
11717
|
className: $ = "",
|
|
11708
11718
|
onStepChange: ie,
|
|
11709
11719
|
onDataChange: Q,
|
|
11710
|
-
stepId:
|
|
11720
|
+
stepId: ne,
|
|
11711
11721
|
onStepEnter: ze,
|
|
11712
11722
|
onStepExit: me
|
|
11713
11723
|
}, Qr) => {
|
|
@@ -11715,52 +11725,52 @@ const Ze = S.forwardRef(
|
|
|
11715
11725
|
ze == null || ze();
|
|
11716
11726
|
}, [ze]);
|
|
11717
11727
|
const At = S.useCallback(() => {
|
|
11718
|
-
me == null || me(), ie && n < t && ie(n + 1),
|
|
11719
|
-
}, [me, ie, n, t,
|
|
11720
|
-
me == null || me(), ie && n > 1 && ie(n - 1),
|
|
11721
|
-
}, [me, ie, n,
|
|
11728
|
+
me == null || me(), ie && n < t && ie(n + 1), K == null || K();
|
|
11729
|
+
}, [me, ie, n, t, K]), Ja = S.useCallback(() => {
|
|
11730
|
+
me == null || me(), ie && n > 1 && ie(n - 1), U == null || U();
|
|
11731
|
+
}, [me, ie, n, U]), Fr = S.useCallback(
|
|
11722
11732
|
(M) => {
|
|
11723
|
-
s == null || s(M), Q == null || Q({ [
|
|
11733
|
+
s == null || s(M), Q == null || Q({ [ne || "radio"]: M });
|
|
11724
11734
|
},
|
|
11725
|
-
[s, Q,
|
|
11735
|
+
[s, Q, ne]
|
|
11726
11736
|
), Ka = S.useCallback(
|
|
11727
11737
|
(M) => {
|
|
11728
|
-
A == null || A(M), Q == null || Q({ [
|
|
11738
|
+
A == null || A(M), Q == null || Q({ [ne || "checkbox"]: M });
|
|
11729
11739
|
},
|
|
11730
|
-
[A, Q,
|
|
11740
|
+
[A, Q, ne]
|
|
11731
11741
|
), En = S.useCallback(
|
|
11732
11742
|
(M) => {
|
|
11733
|
-
f == null || f(M), Q == null || Q({ [
|
|
11743
|
+
f == null || f(M), Q == null || Q({ [ne || "yesNo"]: M });
|
|
11734
11744
|
},
|
|
11735
|
-
[f, Q,
|
|
11745
|
+
[f, Q, ne]
|
|
11736
11746
|
), _a = S.useCallback(
|
|
11737
11747
|
(M) => {
|
|
11738
|
-
g == null || g(M), Q == null || Q({ [
|
|
11748
|
+
g == null || g(M), Q == null || Q({ [ne || "firstOption"]: M });
|
|
11739
11749
|
},
|
|
11740
|
-
[g, Q,
|
|
11750
|
+
[g, Q, ne]
|
|
11741
11751
|
), $a = S.useCallback(
|
|
11742
11752
|
(M) => {
|
|
11743
|
-
P == null || P(M), Q == null || Q({ [
|
|
11753
|
+
P == null || P(M), Q == null || Q({ [ne || "secondOption"]: M });
|
|
11744
11754
|
},
|
|
11745
|
-
[P, Q,
|
|
11755
|
+
[P, Q, ne]
|
|
11746
11756
|
), es = S.useCallback(
|
|
11747
11757
|
(M) => {
|
|
11748
|
-
|
|
11758
|
+
I == null || I(M), Q == null || Q({ [ne || "firstRadio"]: M });
|
|
11749
11759
|
},
|
|
11750
|
-
[
|
|
11760
|
+
[I, Q, ne]
|
|
11751
11761
|
), ts = S.useCallback(
|
|
11752
11762
|
(M) => {
|
|
11753
|
-
j == null || j(M), Q == null || Q({ [
|
|
11763
|
+
j == null || j(M), Q == null || Q({ [ne || "secondRadio"]: M });
|
|
11754
11764
|
},
|
|
11755
|
-
[j, Q,
|
|
11765
|
+
[j, Q, ne]
|
|
11756
11766
|
), VV = S.useCallback(
|
|
11757
11767
|
(M) => {
|
|
11758
|
-
G == null || G(M), Q == null || Q({ [
|
|
11768
|
+
G == null || G(M), Q == null || Q({ [ne || "textInput"]: M });
|
|
11759
11769
|
},
|
|
11760
|
-
[G, Q,
|
|
11770
|
+
[G, Q, ne]
|
|
11761
11771
|
), ns = S.useCallback(() => {
|
|
11762
|
-
le == null || le(), Q == null || Q({ [
|
|
11763
|
-
}, [le, Q,
|
|
11772
|
+
le == null || le(), Q == null || Q({ [ne || "cta"]: "clicked" });
|
|
11773
|
+
}, [le, Q, ne]), rs = e !== "artwork" && W && J, fV = [
|
|
11764
11774
|
"ds-onboarding-template",
|
|
11765
11775
|
`ds-onboarding-template--${e}`,
|
|
11766
11776
|
rs && "ds-onboarding-template--with-artwork",
|
|
@@ -11770,30 +11780,30 @@ const Ze = S.forwardRef(
|
|
|
11770
11780
|
Zo,
|
|
11771
11781
|
{
|
|
11772
11782
|
gridImageSrc: W,
|
|
11773
|
-
artworkImageSrc:
|
|
11783
|
+
artworkImageSrc: J
|
|
11774
11784
|
}
|
|
11775
11785
|
) : rs ? (
|
|
11776
11786
|
/* Split-screen layout for all steps */
|
|
11777
|
-
/* @__PURE__ */
|
|
11787
|
+
/* @__PURE__ */ O(ce, { children: [
|
|
11778
11788
|
/* @__PURE__ */ u("div", { className: "ds-onboarding-template__split-left", children: /* @__PURE__ */ u("div", { className: "ds-onboarding-template__container", children: e === "launcher" ? (
|
|
11779
11789
|
/* Launcher variation content - no logo on launcher (final step) */
|
|
11780
|
-
/* @__PURE__ */
|
|
11781
|
-
/* @__PURE__ */
|
|
11790
|
+
/* @__PURE__ */ O(ce, { children: [
|
|
11791
|
+
/* @__PURE__ */ O("div", { className: "ds-onboarding-template__launcher-header", children: [
|
|
11782
11792
|
/* @__PURE__ */ u("div", { className: "ds-onboarding-template__launcher-icon-wrapper", children: /* @__PURE__ */ u("div", { className: "ds-onboarding-template__launcher-icon", children: /* @__PURE__ */ u(
|
|
11783
11793
|
be,
|
|
11784
11794
|
{
|
|
11785
|
-
icon:
|
|
11795
|
+
icon: B.startsWith("solar:") ? B : `solar:${B}`,
|
|
11786
11796
|
width: 48,
|
|
11787
11797
|
height: 48
|
|
11788
11798
|
}
|
|
11789
11799
|
) }) }),
|
|
11790
|
-
/* @__PURE__ */ u("h1", { className: "ds-onboarding-template__launcher-headline", children:
|
|
11800
|
+
/* @__PURE__ */ u("h1", { className: "ds-onboarding-template__launcher-headline", children: Y })
|
|
11791
11801
|
] }),
|
|
11792
|
-
/* @__PURE__ */
|
|
11793
|
-
/* @__PURE__ */ u("p", { className: "ds-onboarding-template__launcher-text", children:
|
|
11794
|
-
/* @__PURE__ */ u("p", { className: "ds-onboarding-template__launcher-subtext", children:
|
|
11802
|
+
/* @__PURE__ */ O("div", { className: "ds-onboarding-template__launcher-text-section", children: [
|
|
11803
|
+
/* @__PURE__ */ u("p", { className: "ds-onboarding-template__launcher-text", children: k }),
|
|
11804
|
+
/* @__PURE__ */ u("p", { className: "ds-onboarding-template__launcher-subtext", children: D })
|
|
11795
11805
|
] }),
|
|
11796
|
-
/* @__PURE__ */ u(jo, { title:
|
|
11806
|
+
/* @__PURE__ */ u(jo, { title: F, items: ee }),
|
|
11797
11807
|
/* @__PURE__ */ u(
|
|
11798
11808
|
Go,
|
|
11799
11809
|
{
|
|
@@ -11807,7 +11817,7 @@ const Ze = S.forwardRef(
|
|
|
11807
11817
|
] })
|
|
11808
11818
|
) : (
|
|
11809
11819
|
/* Form steps content */
|
|
11810
|
-
/* @__PURE__ */
|
|
11820
|
+
/* @__PURE__ */ O(ce, { children: [
|
|
11811
11821
|
/* @__PURE__ */ u("div", { className: "ds-onboarding-template__top-bar", children: /* @__PURE__ */ u("div", { className: "ds-onboarding-template__stepper", children: /* @__PURE__ */ u(
|
|
11812
11822
|
Ro,
|
|
11813
11823
|
{
|
|
@@ -11818,7 +11828,7 @@ const Ze = S.forwardRef(
|
|
|
11818
11828
|
size: "2"
|
|
11819
11829
|
}
|
|
11820
11830
|
) }) }),
|
|
11821
|
-
/* @__PURE__ */
|
|
11831
|
+
/* @__PURE__ */ O("div", { className: "ds-onboarding-template__main", children: [
|
|
11822
11832
|
/* @__PURE__ */ u("div", { className: "ds-onboarding-template__headline-section", children: /* @__PURE__ */ u("h2", { className: "ds-onboarding-template__headline", children: r }) }),
|
|
11823
11833
|
(() => {
|
|
11824
11834
|
switch (e) {
|
|
@@ -11849,10 +11859,10 @@ const Ze = S.forwardRef(
|
|
|
11849
11859
|
}
|
|
11850
11860
|
) });
|
|
11851
11861
|
case "buttons-plus-radio":
|
|
11852
|
-
return /* @__PURE__ */
|
|
11853
|
-
/* @__PURE__ */
|
|
11862
|
+
return /* @__PURE__ */ O(ce, { children: [
|
|
11863
|
+
/* @__PURE__ */ O("div", { className: "ds-onboarding-template__yes-no-section", children: [
|
|
11854
11864
|
/* @__PURE__ */ u("p", { className: "ds-onboarding-template__yes-no-question", children: V }),
|
|
11855
|
-
/* @__PURE__ */
|
|
11865
|
+
/* @__PURE__ */ O("div", { className: "ds-onboarding-template__yes-no-buttons", children: [
|
|
11856
11866
|
/* @__PURE__ */ u(
|
|
11857
11867
|
"button",
|
|
11858
11868
|
{
|
|
@@ -11871,7 +11881,7 @@ const Ze = S.forwardRef(
|
|
|
11871
11881
|
)
|
|
11872
11882
|
] })
|
|
11873
11883
|
] }),
|
|
11874
|
-
d === "yes" && /* @__PURE__ */
|
|
11884
|
+
d === "yes" && /* @__PURE__ */ O("div", { className: "ds-onboarding-template__radio-section", children: [
|
|
11875
11885
|
/* @__PURE__ */ u("p", { className: "ds-onboarding-template__second-question", children: p }),
|
|
11876
11886
|
/* @__PURE__ */ u("div", { className: "ds-onboarding-template__radio-list-secondary", children: o.map((M) => /* @__PURE__ */ u(
|
|
11877
11887
|
Ge,
|
|
@@ -11889,8 +11899,8 @@ const Ze = S.forwardRef(
|
|
|
11889
11899
|
] })
|
|
11890
11900
|
] });
|
|
11891
11901
|
case "know-your-customer":
|
|
11892
|
-
return /* @__PURE__ */
|
|
11893
|
-
/* @__PURE__ */
|
|
11902
|
+
return /* @__PURE__ */ O("div", { className: "ds-onboarding-template__double-section", children: [
|
|
11903
|
+
/* @__PURE__ */ O("div", { className: "ds-onboarding-template__section", children: [
|
|
11894
11904
|
/* @__PURE__ */ u("p", { className: "ds-onboarding-template__section-question", children: v }),
|
|
11895
11905
|
/* @__PURE__ */ u("div", { className: "ds-onboarding-template__section-options", children: /* @__PURE__ */ u(
|
|
11896
11906
|
pt,
|
|
@@ -11905,7 +11915,7 @@ const Ze = S.forwardRef(
|
|
|
11905
11915
|
}
|
|
11906
11916
|
) })
|
|
11907
11917
|
] }),
|
|
11908
|
-
/* @__PURE__ */
|
|
11918
|
+
/* @__PURE__ */ O("div", { className: "ds-onboarding-template__section", children: [
|
|
11909
11919
|
/* @__PURE__ */ u("p", { className: "ds-onboarding-template__section-question", children: y }),
|
|
11910
11920
|
/* @__PURE__ */ u("div", { className: "ds-onboarding-template__section-options", children: /* @__PURE__ */ u(
|
|
11911
11921
|
pt,
|
|
@@ -11922,8 +11932,8 @@ const Ze = S.forwardRef(
|
|
|
11922
11932
|
] })
|
|
11923
11933
|
] });
|
|
11924
11934
|
case "double-radio":
|
|
11925
|
-
return /* @__PURE__ */
|
|
11926
|
-
/* @__PURE__ */
|
|
11935
|
+
return /* @__PURE__ */ O("div", { className: "ds-onboarding-template__double-section", children: [
|
|
11936
|
+
/* @__PURE__ */ O("div", { className: "ds-onboarding-template__section", children: [
|
|
11927
11937
|
/* @__PURE__ */ u("p", { className: "ds-onboarding-template__section-question", children: C }),
|
|
11928
11938
|
/* @__PURE__ */ u("div", { className: "ds-onboarding-template__section-radio-grid", children: b.map((M) => /* @__PURE__ */ u(
|
|
11929
11939
|
Ge,
|
|
@@ -11939,12 +11949,12 @@ const Ze = S.forwardRef(
|
|
|
11939
11949
|
M.value
|
|
11940
11950
|
)) })
|
|
11941
11951
|
] }),
|
|
11942
|
-
/* @__PURE__ */
|
|
11952
|
+
/* @__PURE__ */ O("div", { className: "ds-onboarding-template__section", children: [
|
|
11943
11953
|
/* @__PURE__ */ u("p", { className: "ds-onboarding-template__section-question", children: p }),
|
|
11944
|
-
/* @__PURE__ */ u("div", { className: "ds-onboarding-template__section-radio-grid", children:
|
|
11954
|
+
/* @__PURE__ */ u("div", { className: "ds-onboarding-template__section-radio-grid", children: z.map((M) => /* @__PURE__ */ u(
|
|
11945
11955
|
Ge,
|
|
11946
11956
|
{
|
|
11947
|
-
state:
|
|
11957
|
+
state: L === M.value ? "active" : "default",
|
|
11948
11958
|
showIcon: !0,
|
|
11949
11959
|
showSubtext: !0,
|
|
11950
11960
|
icon: M.icon,
|
|
@@ -11962,9 +11972,9 @@ const Ze = S.forwardRef(
|
|
|
11962
11972
|
{
|
|
11963
11973
|
type: "text",
|
|
11964
11974
|
className: "ds-onboarding-template__text-input",
|
|
11965
|
-
value:
|
|
11975
|
+
value: Z,
|
|
11966
11976
|
onChange: (M) => VV(M.target.value),
|
|
11967
|
-
placeholder:
|
|
11977
|
+
placeholder: q
|
|
11968
11978
|
}
|
|
11969
11979
|
) });
|
|
11970
11980
|
default:
|
|
@@ -11976,13 +11986,13 @@ const Ze = S.forwardRef(
|
|
|
11976
11986
|
et,
|
|
11977
11987
|
{
|
|
11978
11988
|
onClick: At,
|
|
11979
|
-
disabled:
|
|
11989
|
+
disabled: _,
|
|
11980
11990
|
size: "3",
|
|
11981
11991
|
rightIcon: /* @__PURE__ */ u(be, { icon: "solar:arrow-right-linear", width: 18, height: 18 }),
|
|
11982
11992
|
children: "Continue"
|
|
11983
11993
|
}
|
|
11984
11994
|
) }),
|
|
11985
|
-
n > 1 && /* @__PURE__ */
|
|
11995
|
+
n > 1 && /* @__PURE__ */ O(
|
|
11986
11996
|
"button",
|
|
11987
11997
|
{
|
|
11988
11998
|
className: "ds-onboarding-template__back-button",
|
|
@@ -12007,27 +12017,27 @@ const Ze = S.forwardRef(
|
|
|
12007
12017
|
Zo,
|
|
12008
12018
|
{
|
|
12009
12019
|
gridImageSrc: W,
|
|
12010
|
-
artworkImageSrc:
|
|
12020
|
+
artworkImageSrc: J
|
|
12011
12021
|
}
|
|
12012
12022
|
) })
|
|
12013
12023
|
] })
|
|
12014
|
-
) : /* @__PURE__ */ u("div", { className: "ds-onboarding-template__container", children: e === "launcher" ? /* @__PURE__ */
|
|
12015
|
-
/* @__PURE__ */
|
|
12024
|
+
) : /* @__PURE__ */ u("div", { className: "ds-onboarding-template__container", children: e === "launcher" ? /* @__PURE__ */ O(ce, { children: [
|
|
12025
|
+
/* @__PURE__ */ O("div", { className: "ds-onboarding-template__launcher-header", children: [
|
|
12016
12026
|
/* @__PURE__ */ u("div", { className: "ds-onboarding-template__launcher-icon-wrapper", children: /* @__PURE__ */ u("div", { className: "ds-onboarding-template__launcher-icon", children: /* @__PURE__ */ u(
|
|
12017
12027
|
be,
|
|
12018
12028
|
{
|
|
12019
|
-
icon:
|
|
12029
|
+
icon: B.startsWith("solar:") ? B : `solar:${B}`,
|
|
12020
12030
|
width: 48,
|
|
12021
12031
|
height: 48
|
|
12022
12032
|
}
|
|
12023
12033
|
) }) }),
|
|
12024
|
-
/* @__PURE__ */ u("h1", { className: "ds-onboarding-template__launcher-headline", children:
|
|
12034
|
+
/* @__PURE__ */ u("h1", { className: "ds-onboarding-template__launcher-headline", children: Y })
|
|
12025
12035
|
] }),
|
|
12026
|
-
/* @__PURE__ */
|
|
12027
|
-
/* @__PURE__ */ u("p", { className: "ds-onboarding-template__launcher-text", children:
|
|
12028
|
-
/* @__PURE__ */ u("p", { className: "ds-onboarding-template__launcher-subtext", children:
|
|
12036
|
+
/* @__PURE__ */ O("div", { className: "ds-onboarding-template__launcher-text-section", children: [
|
|
12037
|
+
/* @__PURE__ */ u("p", { className: "ds-onboarding-template__launcher-text", children: k }),
|
|
12038
|
+
/* @__PURE__ */ u("p", { className: "ds-onboarding-template__launcher-subtext", children: D })
|
|
12029
12039
|
] }),
|
|
12030
|
-
/* @__PURE__ */ u(jo, { title:
|
|
12040
|
+
/* @__PURE__ */ u(jo, { title: F, items: ee }),
|
|
12031
12041
|
/* @__PURE__ */ u(
|
|
12032
12042
|
Go,
|
|
12033
12043
|
{
|
|
@@ -12038,7 +12048,7 @@ const Ze = S.forwardRef(
|
|
|
12038
12048
|
onButtonClick: ns
|
|
12039
12049
|
}
|
|
12040
12050
|
)
|
|
12041
|
-
] }) : /* @__PURE__ */
|
|
12051
|
+
] }) : /* @__PURE__ */ O(ce, { children: [
|
|
12042
12052
|
/* @__PURE__ */ u("div", { className: "ds-onboarding-template__top-bar", children: /* @__PURE__ */ u("div", { className: "ds-onboarding-template__stepper", children: /* @__PURE__ */ u(
|
|
12043
12053
|
Ro,
|
|
12044
12054
|
{
|
|
@@ -12049,7 +12059,7 @@ const Ze = S.forwardRef(
|
|
|
12049
12059
|
size: "2"
|
|
12050
12060
|
}
|
|
12051
12061
|
) }) }),
|
|
12052
|
-
/* @__PURE__ */
|
|
12062
|
+
/* @__PURE__ */ O("div", { className: "ds-onboarding-template__main", children: [
|
|
12053
12063
|
/* @__PURE__ */ u("div", { className: "ds-onboarding-template__headline-section", children: /* @__PURE__ */ u("h2", { className: "ds-onboarding-template__headline", children: r }) }),
|
|
12054
12064
|
e === "radio" && /* @__PURE__ */ u("div", { className: "ds-onboarding-template__radio-list", children: o.map((M) => /* @__PURE__ */ u(
|
|
12055
12065
|
Ge,
|
|
@@ -12073,10 +12083,10 @@ const Ze = S.forwardRef(
|
|
|
12073
12083
|
maxRows: 4
|
|
12074
12084
|
}
|
|
12075
12085
|
) }),
|
|
12076
|
-
e === "buttons-plus-radio" && /* @__PURE__ */
|
|
12077
|
-
/* @__PURE__ */
|
|
12086
|
+
e === "buttons-plus-radio" && /* @__PURE__ */ O(ce, { children: [
|
|
12087
|
+
/* @__PURE__ */ O("div", { className: "ds-onboarding-template__yes-no-section", children: [
|
|
12078
12088
|
/* @__PURE__ */ u("p", { className: "ds-onboarding-template__yes-no-question", children: V }),
|
|
12079
|
-
/* @__PURE__ */
|
|
12089
|
+
/* @__PURE__ */ O("div", { className: "ds-onboarding-template__yes-no-buttons", children: [
|
|
12080
12090
|
/* @__PURE__ */ u(
|
|
12081
12091
|
"button",
|
|
12082
12092
|
{
|
|
@@ -12095,7 +12105,7 @@ const Ze = S.forwardRef(
|
|
|
12095
12105
|
)
|
|
12096
12106
|
] })
|
|
12097
12107
|
] }),
|
|
12098
|
-
d === "yes" && /* @__PURE__ */
|
|
12108
|
+
d === "yes" && /* @__PURE__ */ O("div", { className: "ds-onboarding-template__radio-section", children: [
|
|
12099
12109
|
/* @__PURE__ */ u("p", { className: "ds-onboarding-template__second-question", children: p }),
|
|
12100
12110
|
/* @__PURE__ */ u("div", { className: "ds-onboarding-template__radio-list-secondary", children: o.map((M) => /* @__PURE__ */ u(
|
|
12101
12111
|
Ge,
|
|
@@ -12112,8 +12122,8 @@ const Ze = S.forwardRef(
|
|
|
12112
12122
|
)) })
|
|
12113
12123
|
] })
|
|
12114
12124
|
] }),
|
|
12115
|
-
e === "know-your-customer" && /* @__PURE__ */
|
|
12116
|
-
/* @__PURE__ */
|
|
12125
|
+
e === "know-your-customer" && /* @__PURE__ */ O("div", { className: "ds-onboarding-template__double-section", children: [
|
|
12126
|
+
/* @__PURE__ */ O("div", { className: "ds-onboarding-template__section", children: [
|
|
12117
12127
|
/* @__PURE__ */ u("p", { className: "ds-onboarding-template__section-question", children: v }),
|
|
12118
12128
|
/* @__PURE__ */ u("div", { className: "ds-onboarding-template__section-options", children: /* @__PURE__ */ u(
|
|
12119
12129
|
pt,
|
|
@@ -12128,7 +12138,7 @@ const Ze = S.forwardRef(
|
|
|
12128
12138
|
}
|
|
12129
12139
|
) })
|
|
12130
12140
|
] }),
|
|
12131
|
-
/* @__PURE__ */
|
|
12141
|
+
/* @__PURE__ */ O("div", { className: "ds-onboarding-template__section", children: [
|
|
12132
12142
|
/* @__PURE__ */ u("p", { className: "ds-onboarding-template__section-question", children: y }),
|
|
12133
12143
|
/* @__PURE__ */ u("div", { className: "ds-onboarding-template__section-options", children: /* @__PURE__ */ u(
|
|
12134
12144
|
pt,
|
|
@@ -12144,8 +12154,8 @@ const Ze = S.forwardRef(
|
|
|
12144
12154
|
) })
|
|
12145
12155
|
] })
|
|
12146
12156
|
] }),
|
|
12147
|
-
e === "double-radio" && /* @__PURE__ */
|
|
12148
|
-
/* @__PURE__ */
|
|
12157
|
+
e === "double-radio" && /* @__PURE__ */ O("div", { className: "ds-onboarding-template__double-section", children: [
|
|
12158
|
+
/* @__PURE__ */ O("div", { className: "ds-onboarding-template__section", children: [
|
|
12149
12159
|
/* @__PURE__ */ u("p", { className: "ds-onboarding-template__section-question", children: C }),
|
|
12150
12160
|
/* @__PURE__ */ u("div", { className: "ds-onboarding-template__section-radio-grid", children: b.map((M) => /* @__PURE__ */ u(
|
|
12151
12161
|
Ge,
|
|
@@ -12161,12 +12171,12 @@ const Ze = S.forwardRef(
|
|
|
12161
12171
|
M.value
|
|
12162
12172
|
)) })
|
|
12163
12173
|
] }),
|
|
12164
|
-
/* @__PURE__ */
|
|
12174
|
+
/* @__PURE__ */ O("div", { className: "ds-onboarding-template__section", children: [
|
|
12165
12175
|
/* @__PURE__ */ u("p", { className: "ds-onboarding-template__section-question", children: p }),
|
|
12166
|
-
/* @__PURE__ */ u("div", { className: "ds-onboarding-template__section-radio-grid", children:
|
|
12176
|
+
/* @__PURE__ */ u("div", { className: "ds-onboarding-template__section-radio-grid", children: z.map((M) => /* @__PURE__ */ u(
|
|
12167
12177
|
Ge,
|
|
12168
12178
|
{
|
|
12169
|
-
state:
|
|
12179
|
+
state: L === M.value ? "active" : "default",
|
|
12170
12180
|
showIcon: !0,
|
|
12171
12181
|
showSubtext: !0,
|
|
12172
12182
|
icon: M.icon,
|
|
@@ -12183,13 +12193,13 @@ const Ze = S.forwardRef(
|
|
|
12183
12193
|
et,
|
|
12184
12194
|
{
|
|
12185
12195
|
onClick: At,
|
|
12186
|
-
disabled:
|
|
12196
|
+
disabled: _,
|
|
12187
12197
|
size: "3",
|
|
12188
12198
|
rightIcon: /* @__PURE__ */ u(be, { icon: "solar:arrow-right-linear", width: 18, height: 18 }),
|
|
12189
12199
|
children: "Continue"
|
|
12190
12200
|
}
|
|
12191
12201
|
) }),
|
|
12192
|
-
n > 1 && /* @__PURE__ */
|
|
12202
|
+
n > 1 && /* @__PURE__ */ O(
|
|
12193
12203
|
"button",
|
|
12194
12204
|
{
|
|
12195
12205
|
className: "ds-onboarding-template__back-button",
|
|
@@ -12243,13 +12253,13 @@ const nN = ({
|
|
|
12243
12253
|
}
|
|
12244
12254
|
}, [d.journeyStage, d.currentlySelling, v.length]), g = S.useRef([]);
|
|
12245
12255
|
S.useEffect(() => {
|
|
12246
|
-
var
|
|
12256
|
+
var I;
|
|
12247
12257
|
const b = g.current;
|
|
12248
|
-
if ((p.length !== b.length || p.some((
|
|
12249
|
-
const
|
|
12250
|
-
if (
|
|
12251
|
-
const
|
|
12252
|
-
|
|
12258
|
+
if ((p.length !== b.length || p.some((z, L) => z !== b[L])) && b.length > 0) {
|
|
12259
|
+
const z = (I = v[A]) == null ? void 0 : I.id;
|
|
12260
|
+
if (z) {
|
|
12261
|
+
const L = v.findIndex((j) => j.id === z);
|
|
12262
|
+
L !== -1 && L !== A && V(L);
|
|
12253
12263
|
}
|
|
12254
12264
|
}
|
|
12255
12265
|
g.current = p;
|
|
@@ -13359,7 +13369,7 @@ export {
|
|
|
13359
13369
|
uN as createTheme,
|
|
13360
13370
|
Hn as defaultTheme,
|
|
13361
13371
|
TN as fullOnboardingFlowConfig,
|
|
13362
|
-
|
|
13372
|
+
T as getColorTokenVar,
|
|
13363
13373
|
cN as isColorToken,
|
|
13364
13374
|
PV as radii,
|
|
13365
13375
|
CV as shadows,
|