@fabio.caffarello/react-design-system 4.5.0 → 4.7.0
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/granular/ui/components/Stat/StatGroup.js +51 -36
- package/dist/granular/ui/components/Stat/StatGroup.js.map +1 -1
- package/dist/granular/ui/primitives/Avatar/Avatar.js +39 -34
- package/dist/granular/ui/primitives/Avatar/Avatar.js.map +1 -1
- package/dist/index.cjs +10 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +601 -582
- package/dist/index.js.map +1 -1
- package/dist/react-design-system.css +1 -1
- package/dist/server/index.cjs +13 -13
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +331 -317
- package/dist/server/index.js.map +1 -1
- package/dist/ui/components/Stat/StatGroup.d.ts +59 -11
- package/dist/ui/primitives/Avatar/Avatar.d.ts +38 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1431,16 +1431,16 @@ const No = (e, t) => {
|
|
|
1431
1431
|
c = p + (c.length > 0 ? " " + c : c);
|
|
1432
1432
|
continue;
|
|
1433
1433
|
}
|
|
1434
|
-
let
|
|
1435
|
-
if (
|
|
1434
|
+
let g = !!y, v;
|
|
1435
|
+
if (g) {
|
|
1436
1436
|
const S = w.substring(0, y);
|
|
1437
1437
|
v = s(S);
|
|
1438
1438
|
const N = v && i[v] ? s(w) : void 0;
|
|
1439
|
-
N && N !== v && (v = N,
|
|
1439
|
+
N && N !== v && (v = N, g = !1);
|
|
1440
1440
|
} else
|
|
1441
1441
|
v = s(w);
|
|
1442
1442
|
if (!v) {
|
|
1443
|
-
if (!
|
|
1443
|
+
if (!g) {
|
|
1444
1444
|
c = p + (c.length > 0 ? " " + c : c);
|
|
1445
1445
|
continue;
|
|
1446
1446
|
}
|
|
@@ -1448,13 +1448,13 @@ const No = (e, t) => {
|
|
|
1448
1448
|
c = p + (c.length > 0 ? " " + c : c);
|
|
1449
1449
|
continue;
|
|
1450
1450
|
}
|
|
1451
|
-
|
|
1451
|
+
g = !1;
|
|
1452
1452
|
}
|
|
1453
1453
|
const k = b.length === 0 ? "" : b.length === 1 ? b[0] : o(b).join(":"), $ = h ? k + ss : k, C = $ + v;
|
|
1454
1454
|
if (l.indexOf(C) > -1)
|
|
1455
1455
|
continue;
|
|
1456
1456
|
l.push(C);
|
|
1457
|
-
const j = a(v,
|
|
1457
|
+
const j = a(v, g);
|
|
1458
1458
|
for (let S = 0; S < j.length; ++S) {
|
|
1459
1459
|
const N = j[S];
|
|
1460
1460
|
l.push($ + N);
|
|
@@ -1502,7 +1502,7 @@ const No = (e, t) => {
|
|
|
1502
1502
|
const s = Dn.exec(e);
|
|
1503
1503
|
return s ? s[1] ? t(s[1]) : r : !1;
|
|
1504
1504
|
}, Rn = (e) => e === "position" || e === "percentage", _n = (e) => e === "image" || e === "url", Ln = (e) => e === "length" || e === "size" || e === "bg-size", Fn = (e) => e === "length", fi = (e) => e === "number", zn = (e) => e === "family-name", On = (e) => e === "number" || e === "weight", Pn = (e) => e === "shadow", mi = () => {
|
|
1505
|
-
const e = Ce("color"), t = Ce("font"), r = Ce("text"), s = Ce("font-weight"), a = Ce("tracking"), o = Ce("leading"), i = Ce("breakpoint"), l = Ce("container"), d = Ce("spacing"), c = Ce("radius"), u = Ce("shadow"), p = Ce("inset-shadow"), m = Ce("text-shadow"), b = Ce("drop-shadow"), h = Ce("blur"), w = Ce("perspective"), y = Ce("aspect"),
|
|
1505
|
+
const e = Ce("color"), t = Ce("font"), r = Ce("text"), s = Ce("font-weight"), a = Ce("tracking"), o = Ce("leading"), i = Ce("breakpoint"), l = Ce("container"), d = Ce("spacing"), c = Ce("radius"), u = Ce("shadow"), p = Ce("inset-shadow"), m = Ce("text-shadow"), b = Ce("drop-shadow"), h = Ce("blur"), w = Ce("perspective"), y = Ce("aspect"), g = Ce("ease"), v = Ce("animate"), k = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], $ = () => [
|
|
1506
1506
|
"center",
|
|
1507
1507
|
"top",
|
|
1508
1508
|
"bottom",
|
|
@@ -3595,7 +3595,7 @@ const No = (e, t) => {
|
|
|
3595
3595
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
3596
3596
|
*/
|
|
3597
3597
|
ease: [{
|
|
3598
|
-
ease: ["linear", "initial",
|
|
3598
|
+
ease: ["linear", "initial", g, Z, X]
|
|
3599
3599
|
}],
|
|
3600
3600
|
/**
|
|
3601
3601
|
* Transition Delay
|
|
@@ -4187,7 +4187,7 @@ const No = (e, t) => {
|
|
|
4187
4187
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
4188
4188
|
};
|
|
4189
4189
|
}, pi = /* @__PURE__ */ Uo(mi);
|
|
4190
|
-
function
|
|
4190
|
+
function x(...e) {
|
|
4191
4191
|
return pi(Sn(e));
|
|
4192
4192
|
}
|
|
4193
4193
|
const rn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sn = Sn, bi = (e, t) => (r) => {
|
|
@@ -4204,8 +4204,8 @@ const rn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sn = Sn, b
|
|
|
4204
4204
|
}, {}), d = t == null || (s = t.compoundVariants) === null || s === void 0 ? void 0 : s.reduce((c, u) => {
|
|
4205
4205
|
let h = u, { class: p, className: m } = h, b = P(h, ["class", "className"]);
|
|
4206
4206
|
return Object.entries(b).every((w) => {
|
|
4207
|
-
let [y,
|
|
4208
|
-
return Array.isArray(
|
|
4207
|
+
let [y, g] = w;
|
|
4208
|
+
return Array.isArray(g) ? g.includes(A(A({}, o), l)[y]) : A(A({}, o), l)[y] === g;
|
|
4209
4209
|
}) ? [
|
|
4210
4210
|
...c,
|
|
4211
4211
|
p,
|
|
@@ -4217,7 +4217,7 @@ const rn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sn = Sn, b
|
|
|
4217
4217
|
const r = bi(e, t);
|
|
4218
4218
|
return ((s) => {
|
|
4219
4219
|
const a = r(s);
|
|
4220
|
-
return
|
|
4220
|
+
return x(a);
|
|
4221
4221
|
});
|
|
4222
4222
|
};
|
|
4223
4223
|
function bs(...e) {
|
|
@@ -4483,7 +4483,7 @@ function gi() {
|
|
|
4483
4483
|
return "Fragment";
|
|
4484
4484
|
case v:
|
|
4485
4485
|
return "Profiler";
|
|
4486
|
-
case
|
|
4486
|
+
case g:
|
|
4487
4487
|
return "StrictMode";
|
|
4488
4488
|
case j:
|
|
4489
4489
|
return "Suspense";
|
|
@@ -4665,7 +4665,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
4665
4665
|
function m(F) {
|
|
4666
4666
|
return typeof F == "object" && F !== null && F.$$typeof === h;
|
|
4667
4667
|
}
|
|
4668
|
-
var b = xe, h = /* @__PURE__ */ Symbol.for("react.transitional.element"), w = /* @__PURE__ */ Symbol.for("react.portal"), y = /* @__PURE__ */ Symbol.for("react.fragment"),
|
|
4668
|
+
var b = xe, h = /* @__PURE__ */ Symbol.for("react.transitional.element"), w = /* @__PURE__ */ Symbol.for("react.portal"), y = /* @__PURE__ */ Symbol.for("react.fragment"), g = /* @__PURE__ */ Symbol.for("react.strict_mode"), v = /* @__PURE__ */ Symbol.for("react.profiler"), k = /* @__PURE__ */ Symbol.for("react.consumer"), $ = /* @__PURE__ */ Symbol.for("react.context"), C = /* @__PURE__ */ Symbol.for("react.forward_ref"), j = /* @__PURE__ */ Symbol.for("react.suspense"), S = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), D = /* @__PURE__ */ Symbol.for("react.lazy"), _ = /* @__PURE__ */ Symbol.for("react.activity"), M = /* @__PURE__ */ Symbol.for("react.client.reference"), T = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, I = Object.prototype.hasOwnProperty, R = Array.isArray, z = console.createTask ? console.createTask : function() {
|
|
4669
4669
|
return null;
|
|
4670
4670
|
};
|
|
4671
4671
|
b = {
|
|
@@ -4895,8 +4895,8 @@ function Un({
|
|
|
4895
4895
|
titleId: a,
|
|
4896
4896
|
descriptionId: o
|
|
4897
4897
|
}) {
|
|
4898
|
-
const [i, l] = V(r), [d, c] = V(0), [u, p] = V(0), m = Q(() => (c((
|
|
4899
|
-
t === void 0 && l(
|
|
4898
|
+
const [i, l] = V(r), [d, c] = V(0), [u, p] = V(0), m = Q(() => (c((g) => g + 1), () => c((g) => g - 1)), []), b = Q(() => (p((g) => g + 1), () => p((g) => g - 1)), []), h = t !== void 0 ? t : i, w = (g) => {
|
|
4899
|
+
t === void 0 && l(g), s == null || s(g);
|
|
4900
4900
|
};
|
|
4901
4901
|
ir(h), Y(() => (h ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
4902
4902
|
document.body.style.overflow = "";
|
|
@@ -5026,15 +5026,15 @@ function of(s) {
|
|
|
5026
5026
|
"className"
|
|
5027
5027
|
]);
|
|
5028
5028
|
const o = {
|
|
5029
|
-
warning:
|
|
5030
|
-
error:
|
|
5031
|
-
info:
|
|
5029
|
+
warning: x("bg-warning-bg", "text-warning-dark", "border-warning"),
|
|
5030
|
+
error: x("bg-error-bg", "text-error-dark", "border-error"),
|
|
5031
|
+
info: x("bg-info-bg", "text-info-dark", "border-info")
|
|
5032
5032
|
};
|
|
5033
5033
|
return /* @__PURE__ */ n.jsx(
|
|
5034
5034
|
"div",
|
|
5035
5035
|
A({
|
|
5036
5036
|
role: "alert",
|
|
5037
|
-
className:
|
|
5037
|
+
className: x(
|
|
5038
5038
|
"border",
|
|
5039
5039
|
f("base", "px"),
|
|
5040
5040
|
f("sm", "py"),
|
|
@@ -5131,7 +5131,7 @@ function Ei(c, d) {
|
|
|
5131
5131
|
m = "p";
|
|
5132
5132
|
break;
|
|
5133
5133
|
}
|
|
5134
|
-
return e === "heading" ? p.push($e("h2")) : e === "body" || e === "paragraph" ? p.push($e("body")) : e === "bodySmall" ? p.push($e("bodySmall")) : e === "bodyLarge" ? p.push($e("bodyLarge")) : e === "caption" ? p.push($e("caption")) : e === "label" ? p.push($e("label")) : p.push($e("body")), t && p.push("font-bold"), r && p.push("italic"), p.push(Ci[o][i]), /* @__PURE__ */ n.jsx(m, A({ ref: d, className:
|
|
5134
|
+
return e === "heading" ? p.push($e("h2")) : e === "body" || e === "paragraph" ? p.push($e("body")) : e === "bodySmall" ? p.push($e("bodySmall")) : e === "bodyLarge" ? p.push($e("bodyLarge")) : e === "caption" ? p.push($e("caption")) : e === "label" ? p.push($e("label")) : p.push($e("body")), t && p.push("font-bold"), r && p.push("italic"), p.push(Ci[o][i]), /* @__PURE__ */ n.jsx(m, A({ ref: d, className: x(...p, s) }, l));
|
|
5135
5135
|
}
|
|
5136
5136
|
const Pe = be(Ei);
|
|
5137
5137
|
const Gn = (...e) => e.filter((t, r, s) => !!t && t.trim() !== "" && s.indexOf(t) === r).join(" ").trim();
|
|
@@ -5163,14 +5163,14 @@ const Ti = (e) => {
|
|
|
5163
5163
|
}, Di = Te({}), Mi = () => he(Di), Ri = be(
|
|
5164
5164
|
(c, d) => {
|
|
5165
5165
|
var u = c, { color: e, size: t, strokeWidth: r, absoluteStrokeWidth: s, className: a = "", children: o, iconNode: i } = u, l = P(u, ["color", "size", "strokeWidth", "absoluteStrokeWidth", "className", "children", "iconNode"]);
|
|
5166
|
-
var
|
|
5166
|
+
var g, v, k;
|
|
5167
5167
|
const {
|
|
5168
5168
|
size: p = 24,
|
|
5169
5169
|
strokeWidth: m = 2,
|
|
5170
5170
|
absoluteStrokeWidth: b = !1,
|
|
5171
5171
|
color: h = "currentColor",
|
|
5172
5172
|
className: w = ""
|
|
5173
|
-
} = (
|
|
5173
|
+
} = (g = Mi()) != null ? g : {}, y = (s != null ? s : b) ? Number(r != null ? r : m) * 24 / Number(t != null ? t : p) : r != null ? r : m;
|
|
5174
5174
|
return ts(
|
|
5175
5175
|
"svg",
|
|
5176
5176
|
A(A(L(A({
|
|
@@ -5389,8 +5389,8 @@ function $l(e) {
|
|
|
5389
5389
|
if (Tl(h)) {
|
|
5390
5390
|
l = !0;
|
|
5391
5391
|
const y = h;
|
|
5392
|
-
let
|
|
5393
|
-
un(
|
|
5392
|
+
let g = "child" in y.props ? y.props.child : y.props.children;
|
|
5393
|
+
un(g) && typeof vr == "function" && (g = vr(g._payload)), i = El(y, g), d.push((w = i == null ? void 0 : i.props) == null ? void 0 : w.children);
|
|
5394
5394
|
} else
|
|
5395
5395
|
d.push(h);
|
|
5396
5396
|
}), i ? i = ze.cloneElement(i, void 0, d) : (
|
|
@@ -5485,7 +5485,7 @@ const Ll = Ne("motion-safe:animate-spin", {
|
|
|
5485
5485
|
return /* @__PURE__ */ n.jsxs(
|
|
5486
5486
|
"div",
|
|
5487
5487
|
L(A({
|
|
5488
|
-
className:
|
|
5488
|
+
className: x("inline-flex", "items-center", a),
|
|
5489
5489
|
role: "status",
|
|
5490
5490
|
"aria-label": s || "Loading",
|
|
5491
5491
|
"aria-live": "polite"
|
|
@@ -5494,14 +5494,14 @@ const Ll = Ne("motion-safe:animate-spin", {
|
|
|
5494
5494
|
/* @__PURE__ */ n.jsx(
|
|
5495
5495
|
Yn,
|
|
5496
5496
|
{
|
|
5497
|
-
className:
|
|
5497
|
+
className: x(Ll({ size: t, variant: r })),
|
|
5498
5498
|
"aria-hidden": "true"
|
|
5499
5499
|
}
|
|
5500
5500
|
),
|
|
5501
5501
|
s && /* @__PURE__ */ n.jsx(
|
|
5502
5502
|
"span",
|
|
5503
5503
|
{
|
|
5504
|
-
className:
|
|
5504
|
+
className: x(
|
|
5505
5505
|
f("sm", "ml"),
|
|
5506
5506
|
le("bodySmall"),
|
|
5507
5507
|
"text-fg-secondary",
|
|
@@ -5517,7 +5517,7 @@ const Ll = Ne("motion-safe:animate-spin", {
|
|
|
5517
5517
|
Jn.displayName = "Spinner";
|
|
5518
5518
|
const Fl = Ne(
|
|
5519
5519
|
// Base classes
|
|
5520
|
-
|
|
5520
|
+
x(
|
|
5521
5521
|
"inline-flex",
|
|
5522
5522
|
"items-center",
|
|
5523
5523
|
"justify-center",
|
|
@@ -5534,25 +5534,25 @@ const Fl = Ne(
|
|
|
5534
5534
|
{
|
|
5535
5535
|
variants: {
|
|
5536
5536
|
variant: {
|
|
5537
|
-
primary:
|
|
5537
|
+
primary: x(
|
|
5538
5538
|
"bg-surface-brand-strong",
|
|
5539
5539
|
"text-fg-inverse",
|
|
5540
5540
|
"hover:opacity-90",
|
|
5541
5541
|
"focus:ring-line-brand"
|
|
5542
5542
|
),
|
|
5543
|
-
secondary:
|
|
5543
|
+
secondary: x(
|
|
5544
5544
|
"bg-surface-secondary",
|
|
5545
5545
|
"text-fg-inverse",
|
|
5546
5546
|
"hover:opacity-90",
|
|
5547
5547
|
"focus:ring-line-secondary"
|
|
5548
5548
|
),
|
|
5549
|
-
error:
|
|
5549
|
+
error: x(
|
|
5550
5550
|
"bg-error",
|
|
5551
5551
|
"text-fg-inverse",
|
|
5552
5552
|
"hover:opacity-90",
|
|
5553
5553
|
"focus:ring-error"
|
|
5554
5554
|
),
|
|
5555
|
-
outline:
|
|
5555
|
+
outline: x(
|
|
5556
5556
|
"border-2",
|
|
5557
5557
|
"border-line-default",
|
|
5558
5558
|
"bg-transparent",
|
|
@@ -5560,13 +5560,13 @@ const Fl = Ne(
|
|
|
5560
5560
|
"hover:bg-surface-hover",
|
|
5561
5561
|
"focus:ring-line-focus"
|
|
5562
5562
|
),
|
|
5563
|
-
ghost:
|
|
5563
|
+
ghost: x(
|
|
5564
5564
|
"bg-transparent",
|
|
5565
5565
|
"text-fg-primary",
|
|
5566
5566
|
"hover:bg-surface-hover",
|
|
5567
5567
|
"focus:ring-line-focus"
|
|
5568
5568
|
),
|
|
5569
|
-
iconOnly:
|
|
5569
|
+
iconOnly: x(
|
|
5570
5570
|
"bg-transparent",
|
|
5571
5571
|
"text-fg-primary",
|
|
5572
5572
|
"hover:bg-surface-hover",
|
|
@@ -5600,7 +5600,7 @@ const Fl = Ne(
|
|
|
5600
5600
|
// a disabled link should still receive the same visual
|
|
5601
5601
|
// treatment as a disabled chrome variant — the opacity and
|
|
5602
5602
|
// cursor signal the disabled state.
|
|
5603
|
-
link:
|
|
5603
|
+
link: x(
|
|
5604
5604
|
"bg-transparent",
|
|
5605
5605
|
"text-fg-brand",
|
|
5606
5606
|
"underline-offset-4",
|
|
@@ -5609,19 +5609,19 @@ const Fl = Ne(
|
|
|
5609
5609
|
)
|
|
5610
5610
|
},
|
|
5611
5611
|
size: {
|
|
5612
|
-
sm:
|
|
5612
|
+
sm: x(
|
|
5613
5613
|
f("md", "px"),
|
|
5614
5614
|
f("1.5", "py"),
|
|
5615
5615
|
le("bodySmall"),
|
|
5616
5616
|
f("1.5", "gap")
|
|
5617
5617
|
),
|
|
5618
|
-
md:
|
|
5618
|
+
md: x(
|
|
5619
5619
|
f("base", "px"),
|
|
5620
5620
|
f("sm", "py"),
|
|
5621
5621
|
le("body"),
|
|
5622
5622
|
f("sm", "gap")
|
|
5623
5623
|
),
|
|
5624
|
-
lg:
|
|
5624
|
+
lg: x(
|
|
5625
5625
|
f("lg", "px"),
|
|
5626
5626
|
f("md", "py"),
|
|
5627
5627
|
le("bodyLarge"),
|
|
@@ -5634,17 +5634,17 @@ const Fl = Ne(
|
|
|
5634
5634
|
{
|
|
5635
5635
|
variant: "iconOnly",
|
|
5636
5636
|
size: "sm",
|
|
5637
|
-
class:
|
|
5637
|
+
class: x("h-8", "w-8", f("none", "p"))
|
|
5638
5638
|
},
|
|
5639
5639
|
{
|
|
5640
5640
|
variant: "iconOnly",
|
|
5641
5641
|
size: "md",
|
|
5642
|
-
class:
|
|
5642
|
+
class: x("h-10", "w-10", f("none", "p"))
|
|
5643
5643
|
},
|
|
5644
5644
|
{
|
|
5645
5645
|
variant: "iconOnly",
|
|
5646
5646
|
size: "lg",
|
|
5647
|
-
class:
|
|
5647
|
+
class: x("h-12", "w-12", f("none", "p"))
|
|
5648
5648
|
},
|
|
5649
5649
|
// Link variant zeroes the size's padding via compoundVariants so
|
|
5650
5650
|
// the override runs AFTER the size block's `px-N`/`py-N` and
|
|
@@ -5655,17 +5655,17 @@ const Fl = Ne(
|
|
|
5655
5655
|
{
|
|
5656
5656
|
variant: "link",
|
|
5657
5657
|
size: "sm",
|
|
5658
|
-
class:
|
|
5658
|
+
class: x(f("none", "px"), f("none", "py"))
|
|
5659
5659
|
},
|
|
5660
5660
|
{
|
|
5661
5661
|
variant: "link",
|
|
5662
5662
|
size: "md",
|
|
5663
|
-
class:
|
|
5663
|
+
class: x(f("none", "px"), f("none", "py"))
|
|
5664
5664
|
},
|
|
5665
5665
|
{
|
|
5666
5666
|
variant: "link",
|
|
5667
5667
|
size: "lg",
|
|
5668
|
-
class:
|
|
5668
|
+
class: x(f("none", "px"), f("none", "py"))
|
|
5669
5669
|
}
|
|
5670
5670
|
],
|
|
5671
5671
|
defaultVariants: {
|
|
@@ -5687,8 +5687,8 @@ function yr({
|
|
|
5687
5687
|
) : null;
|
|
5688
5688
|
}
|
|
5689
5689
|
const ie = _e(
|
|
5690
|
-
be(function(
|
|
5691
|
-
var v =
|
|
5690
|
+
be(function(g, y) {
|
|
5691
|
+
var v = g, {
|
|
5692
5692
|
variant: t = "primary",
|
|
5693
5693
|
size: r = "md",
|
|
5694
5694
|
isLoading: s = !1,
|
|
@@ -5722,7 +5722,7 @@ const ie = _e(
|
|
|
5722
5722
|
typeof process != "undefined" && process.env.NODE_ENV !== "production" && c && u !== void 0 && u !== "button" && console.warn(
|
|
5723
5723
|
"[Button] `as` is ignored when `asChild` is true; the child element is used as the root. Drop one of the two props to silence this warning."
|
|
5724
5724
|
);
|
|
5725
|
-
const k = c ? qn : u != null ? u : "button", $ =
|
|
5725
|
+
const k = c ? qn : u != null ? u : "button", $ = x(
|
|
5726
5726
|
Fl({ variant: t, size: r }),
|
|
5727
5727
|
d && "w-full",
|
|
5728
5728
|
p
|
|
@@ -5750,7 +5750,7 @@ const ie = _e(
|
|
|
5750
5750
|
);
|
|
5751
5751
|
ie.displayName = "Button";
|
|
5752
5752
|
const zl = Ne(
|
|
5753
|
-
|
|
5753
|
+
x(
|
|
5754
5754
|
"w-full",
|
|
5755
5755
|
G("md"),
|
|
5756
5756
|
"transition-colors",
|
|
@@ -5763,18 +5763,18 @@ const zl = Ne(
|
|
|
5763
5763
|
{
|
|
5764
5764
|
variants: {
|
|
5765
5765
|
variant: {
|
|
5766
|
-
default:
|
|
5766
|
+
default: x(
|
|
5767
5767
|
"border-0",
|
|
5768
5768
|
"border-b-2",
|
|
5769
5769
|
"border-line-default",
|
|
5770
5770
|
"focus:border-line-focus"
|
|
5771
5771
|
),
|
|
5772
|
-
outlined:
|
|
5772
|
+
outlined: x(
|
|
5773
5773
|
"border",
|
|
5774
5774
|
"border-line-default",
|
|
5775
5775
|
"focus:border-line-focus"
|
|
5776
5776
|
),
|
|
5777
|
-
filled:
|
|
5777
|
+
filled: x(
|
|
5778
5778
|
"bg-surface-muted",
|
|
5779
5779
|
"border-0",
|
|
5780
5780
|
"focus:bg-surface-base",
|
|
@@ -5783,17 +5783,17 @@ const zl = Ne(
|
|
|
5783
5783
|
)
|
|
5784
5784
|
},
|
|
5785
5785
|
size: {
|
|
5786
|
-
sm:
|
|
5786
|
+
sm: x(
|
|
5787
5787
|
"h-8",
|
|
5788
5788
|
le("bodySmall"),
|
|
5789
5789
|
f("md", "px")
|
|
5790
5790
|
),
|
|
5791
|
-
md:
|
|
5791
|
+
md: x(
|
|
5792
5792
|
"h-10",
|
|
5793
5793
|
le("body"),
|
|
5794
5794
|
f("base", "px")
|
|
5795
5795
|
),
|
|
5796
|
-
lg:
|
|
5796
|
+
lg: x(
|
|
5797
5797
|
"h-12",
|
|
5798
5798
|
le("bodyLarge"),
|
|
5799
5799
|
f("lg", "px")
|
|
@@ -5801,8 +5801,8 @@ const zl = Ne(
|
|
|
5801
5801
|
},
|
|
5802
5802
|
state: {
|
|
5803
5803
|
default: "",
|
|
5804
|
-
error:
|
|
5805
|
-
success:
|
|
5804
|
+
error: x("border-error", "focus:border-error", "focus:ring-error"),
|
|
5805
|
+
success: x(
|
|
5806
5806
|
"border-success",
|
|
5807
5807
|
"focus:border-success",
|
|
5808
5808
|
"focus:ring-success"
|
|
@@ -5823,7 +5823,7 @@ function Ol({
|
|
|
5823
5823
|
errorId: s,
|
|
5824
5824
|
helperId: a
|
|
5825
5825
|
}) {
|
|
5826
|
-
const o =
|
|
5826
|
+
const o = x(
|
|
5827
5827
|
f("xs", "mt"),
|
|
5828
5828
|
$e("caption"),
|
|
5829
5829
|
e && "text-fg-error",
|
|
@@ -5842,7 +5842,7 @@ function Ol({
|
|
|
5842
5842
|
}
|
|
5843
5843
|
const Zn = be(
|
|
5844
5844
|
function(y, w) {
|
|
5845
|
-
var
|
|
5845
|
+
var g = y, {
|
|
5846
5846
|
id: t,
|
|
5847
5847
|
label: r,
|
|
5848
5848
|
error: s = !1,
|
|
@@ -5856,7 +5856,7 @@ const Zn = be(
|
|
|
5856
5856
|
className: p = "",
|
|
5857
5857
|
disabled: m = !1,
|
|
5858
5858
|
type: b = "text"
|
|
5859
|
-
} =
|
|
5859
|
+
} = g, h = P(g, [
|
|
5860
5860
|
"id",
|
|
5861
5861
|
"label",
|
|
5862
5862
|
"error",
|
|
@@ -5874,7 +5874,7 @@ const Zn = be(
|
|
|
5874
5874
|
typeof process != "undefined" && process.env.NODE_ENV !== "production" && r && !t && console.warn(
|
|
5875
5875
|
"[InputBase] `label` was provided without an `id`. The <label> cannot bind to the input (InputBase does not auto-generate an id — that needs a client hook). Pass an `id`, or use the interactive `Input` which auto-generates one."
|
|
5876
5876
|
);
|
|
5877
|
-
const v = s ? "error" : a ? "success" : "default", k = s && t ? `${t}-error` : void 0, $ = o && t ? `${t}-helper` : void 0, C = i === "sm" ? "h-4 w-4" : i === "lg" ? "h-5 w-5" : "h-4 w-4", j = i === "sm" ? "top-2" : i === "lg" ? "top-3.5" : "top-2.5", S =
|
|
5877
|
+
const v = s ? "error" : a ? "success" : "default", k = s && t ? `${t}-error` : void 0, $ = o && t ? `${t}-helper` : void 0, C = i === "sm" ? "h-4 w-4" : i === "lg" ? "h-5 w-5" : "h-4 w-4", j = i === "sm" ? "top-2" : i === "lg" ? "top-3.5" : "top-2.5", S = x(
|
|
5878
5878
|
zl({ variant: l, size: i, state: v }),
|
|
5879
5879
|
// Icon padding — `pl-9` / `pr-9` aren't on the spacing scale (no
|
|
5880
5880
|
// semantic key for 36px) so they stay raw at the `sm` size; md/lg use
|
|
@@ -5882,7 +5882,7 @@ const Zn = be(
|
|
|
5882
5882
|
d && (i === "sm" ? "pl-9" : f(i === "lg" ? "3xl" : "2xl", "pl")),
|
|
5883
5883
|
(c || u) && (i === "sm" ? "pr-9" : f(i === "lg" ? "3xl" : "2xl", "pr")),
|
|
5884
5884
|
p
|
|
5885
|
-
), N =
|
|
5885
|
+
), N = x(
|
|
5886
5886
|
"block",
|
|
5887
5887
|
$e("label"),
|
|
5888
5888
|
f("xs", "mb"),
|
|
@@ -5959,7 +5959,7 @@ const We = _e(
|
|
|
5959
5959
|
type: h = "text",
|
|
5960
5960
|
value: w,
|
|
5961
5961
|
onChange: y
|
|
5962
|
-
} = $,
|
|
5962
|
+
} = $, g = P($, [
|
|
5963
5963
|
"id",
|
|
5964
5964
|
"label",
|
|
5965
5965
|
"error",
|
|
@@ -6059,7 +6059,7 @@ const We = _e(
|
|
|
6059
6059
|
type: _,
|
|
6060
6060
|
value: w,
|
|
6061
6061
|
onChange: y
|
|
6062
|
-
},
|
|
6062
|
+
}, g)
|
|
6063
6063
|
);
|
|
6064
6064
|
})
|
|
6065
6065
|
);
|
|
@@ -6075,7 +6075,7 @@ function Pl({
|
|
|
6075
6075
|
}
|
|
6076
6076
|
const Vl = Ne(
|
|
6077
6077
|
// Base classes
|
|
6078
|
-
|
|
6078
|
+
x(
|
|
6079
6079
|
"inline-flex",
|
|
6080
6080
|
"items-center",
|
|
6081
6081
|
"transition-colors",
|
|
@@ -6090,13 +6090,13 @@ const Vl = Ne(
|
|
|
6090
6090
|
{
|
|
6091
6091
|
variants: {
|
|
6092
6092
|
variant: {
|
|
6093
|
-
default:
|
|
6093
|
+
default: x(
|
|
6094
6094
|
"text-fg-primary",
|
|
6095
6095
|
"hover:opacity-80",
|
|
6096
6096
|
"focus-visible:opacity-100",
|
|
6097
6097
|
"focus:ring-line-brand"
|
|
6098
6098
|
),
|
|
6099
|
-
underline:
|
|
6099
|
+
underline: x(
|
|
6100
6100
|
"text-fg-primary",
|
|
6101
6101
|
"hover:opacity-80",
|
|
6102
6102
|
"focus-visible:opacity-100",
|
|
@@ -6105,7 +6105,7 @@ const Vl = Ne(
|
|
|
6105
6105
|
"hover:border-current",
|
|
6106
6106
|
"focus:ring-line-brand"
|
|
6107
6107
|
),
|
|
6108
|
-
background:
|
|
6108
|
+
background: x(
|
|
6109
6109
|
"text-fg-primary",
|
|
6110
6110
|
"hover:bg-surface-hover",
|
|
6111
6111
|
G("md"),
|
|
@@ -6113,17 +6113,17 @@ const Vl = Ne(
|
|
|
6113
6113
|
)
|
|
6114
6114
|
},
|
|
6115
6115
|
size: {
|
|
6116
|
-
sm:
|
|
6116
|
+
sm: x(
|
|
6117
6117
|
f("sm", "px"),
|
|
6118
6118
|
f("xs", "py"),
|
|
6119
6119
|
le("bodySmall")
|
|
6120
6120
|
),
|
|
6121
|
-
md:
|
|
6121
|
+
md: x(
|
|
6122
6122
|
f("base", "px"),
|
|
6123
6123
|
f("sm", "py"),
|
|
6124
6124
|
le("body")
|
|
6125
6125
|
),
|
|
6126
|
-
lg:
|
|
6126
|
+
lg: x(
|
|
6127
6127
|
f("lg", "px"),
|
|
6128
6128
|
f("md", "py"),
|
|
6129
6129
|
le("bodyLarge")
|
|
@@ -6194,19 +6194,19 @@ const Vl = Ne(
|
|
|
6194
6194
|
"onClick",
|
|
6195
6195
|
"onKeyDown"
|
|
6196
6196
|
]);
|
|
6197
|
-
const y = K(() => s !== void 0 ? s : !1, [s]), { NextLink:
|
|
6197
|
+
const y = K(() => s !== void 0 ? s : !1, [s]), { NextLink: g } = Pl({ href: t, active: y }), v = l || g || "a", k = K(() => {
|
|
6198
6198
|
if (!y) return "";
|
|
6199
6199
|
switch (o) {
|
|
6200
6200
|
case "underline":
|
|
6201
|
-
return
|
|
6201
|
+
return x(
|
|
6202
6202
|
"border-b-2",
|
|
6203
6203
|
"border-line-brand",
|
|
6204
6204
|
"text-fg-brand-emphasis"
|
|
6205
6205
|
);
|
|
6206
6206
|
case "background":
|
|
6207
|
-
return
|
|
6207
|
+
return x("bg-surface-brand-muted", "text-fg-brand-emphasis");
|
|
6208
6208
|
default:
|
|
6209
|
-
return
|
|
6209
|
+
return x("text-fg-brand-emphasis", "font-semibold");
|
|
6210
6210
|
}
|
|
6211
6211
|
}, [y, o]), $ = Q(
|
|
6212
6212
|
(S) => {
|
|
@@ -6228,7 +6228,7 @@ const Vl = Ne(
|
|
|
6228
6228
|
[a, p]
|
|
6229
6229
|
), j = K(() => {
|
|
6230
6230
|
const S = A({
|
|
6231
|
-
className:
|
|
6231
|
+
className: x(
|
|
6232
6232
|
Vl({ variant: o, size: i }),
|
|
6233
6233
|
k,
|
|
6234
6234
|
a && "opacity-50 cursor-not-allowed pointer-events-none",
|
|
@@ -6243,7 +6243,7 @@ const Vl = Ne(
|
|
|
6243
6243
|
"data-active": y,
|
|
6244
6244
|
"data-disabled": a
|
|
6245
6245
|
}, m);
|
|
6246
|
-
return
|
|
6246
|
+
return g && !l ? L(A({}, S), {
|
|
6247
6247
|
href: a ? void 0 : t
|
|
6248
6248
|
}) : L(A({}, S), {
|
|
6249
6249
|
href: a ? void 0 : t
|
|
@@ -6259,7 +6259,7 @@ const Vl = Ne(
|
|
|
6259
6259
|
$,
|
|
6260
6260
|
C,
|
|
6261
6261
|
t,
|
|
6262
|
-
|
|
6262
|
+
g,
|
|
6263
6263
|
l,
|
|
6264
6264
|
m
|
|
6265
6265
|
]);
|
|
@@ -6269,7 +6269,7 @@ const Vl = Ne(
|
|
|
6269
6269
|
gs.displayName = "NavLink";
|
|
6270
6270
|
const Wl = Ne(
|
|
6271
6271
|
// Base classes
|
|
6272
|
-
|
|
6272
|
+
x(
|
|
6273
6273
|
"inline-flex",
|
|
6274
6274
|
"items-center",
|
|
6275
6275
|
"justify-center",
|
|
@@ -6289,17 +6289,17 @@ const Wl = Ne(
|
|
|
6289
6289
|
secondary: ""
|
|
6290
6290
|
},
|
|
6291
6291
|
size: {
|
|
6292
|
-
sm:
|
|
6292
|
+
sm: x(
|
|
6293
6293
|
f("1.5", "px"),
|
|
6294
6294
|
f("0.5", "py"),
|
|
6295
6295
|
le("caption")
|
|
6296
6296
|
),
|
|
6297
|
-
md:
|
|
6297
|
+
md: x(
|
|
6298
6298
|
f("sm", "px"),
|
|
6299
6299
|
f("xs", "py"),
|
|
6300
6300
|
le("caption")
|
|
6301
6301
|
),
|
|
6302
|
-
lg:
|
|
6302
|
+
lg: x(
|
|
6303
6303
|
f("sm", "px"),
|
|
6304
6304
|
f("xs", "py"),
|
|
6305
6305
|
le("bodySmall")
|
|
@@ -6315,32 +6315,32 @@ const Wl = Ne(
|
|
|
6315
6315
|
{
|
|
6316
6316
|
variant: "success",
|
|
6317
6317
|
style: "solid",
|
|
6318
|
-
class:
|
|
6318
|
+
class: x("bg-success-bg", "text-success-dark", "border-success")
|
|
6319
6319
|
},
|
|
6320
6320
|
{
|
|
6321
6321
|
variant: "warning",
|
|
6322
6322
|
style: "solid",
|
|
6323
|
-
class:
|
|
6323
|
+
class: x("bg-warning-bg", "text-warning-dark", "border-warning")
|
|
6324
6324
|
},
|
|
6325
6325
|
{
|
|
6326
6326
|
variant: "error",
|
|
6327
6327
|
style: "solid",
|
|
6328
|
-
class:
|
|
6328
|
+
class: x("bg-error-bg", "text-error-dark", "border-error")
|
|
6329
6329
|
},
|
|
6330
6330
|
{
|
|
6331
6331
|
variant: "info",
|
|
6332
6332
|
style: "solid",
|
|
6333
|
-
class:
|
|
6333
|
+
class: x("bg-info-bg", "text-info-dark", "border-info")
|
|
6334
6334
|
},
|
|
6335
6335
|
{
|
|
6336
6336
|
variant: "neutral",
|
|
6337
6337
|
style: "solid",
|
|
6338
|
-
class:
|
|
6338
|
+
class: x("bg-surface-muted", "text-fg-primary", "border-line-default")
|
|
6339
6339
|
},
|
|
6340
6340
|
{
|
|
6341
6341
|
variant: "primary",
|
|
6342
6342
|
style: "solid",
|
|
6343
|
-
class:
|
|
6343
|
+
class: x(
|
|
6344
6344
|
"bg-surface-brand-subtle",
|
|
6345
6345
|
"text-fg-brand-emphasis",
|
|
6346
6346
|
"border-line-brand"
|
|
@@ -6352,7 +6352,7 @@ const Wl = Ne(
|
|
|
6352
6352
|
// bg-pink-300: secondary solid badge — no semantic equivalent
|
|
6353
6353
|
// (would shift 2 shades to bg-surface-secondary). Kept literal until
|
|
6354
6354
|
// secondary brand surface palette expands beyond DEFAULT.
|
|
6355
|
-
class:
|
|
6355
|
+
class: x(
|
|
6356
6356
|
"bg-pink-300",
|
|
6357
6357
|
"text-fg-brand-secondary-emphasis",
|
|
6358
6358
|
"border-line-secondary"
|
|
@@ -6362,37 +6362,37 @@ const Wl = Ne(
|
|
|
6362
6362
|
{
|
|
6363
6363
|
variant: "success",
|
|
6364
6364
|
style: "outline",
|
|
6365
|
-
class:
|
|
6365
|
+
class: x("bg-transparent", "border-success", "text-fg-success")
|
|
6366
6366
|
},
|
|
6367
6367
|
{
|
|
6368
6368
|
variant: "warning",
|
|
6369
6369
|
style: "outline",
|
|
6370
|
-
class:
|
|
6370
|
+
class: x("bg-transparent", "border-warning", "text-fg-warning")
|
|
6371
6371
|
},
|
|
6372
6372
|
{
|
|
6373
6373
|
variant: "error",
|
|
6374
6374
|
style: "outline",
|
|
6375
|
-
class:
|
|
6375
|
+
class: x("bg-transparent", "border-error", "text-fg-error")
|
|
6376
6376
|
},
|
|
6377
6377
|
{
|
|
6378
6378
|
variant: "info",
|
|
6379
6379
|
style: "outline",
|
|
6380
|
-
class:
|
|
6380
|
+
class: x("bg-transparent", "border-info", "text-fg-info")
|
|
6381
6381
|
},
|
|
6382
6382
|
{
|
|
6383
6383
|
variant: "neutral",
|
|
6384
6384
|
style: "outline",
|
|
6385
|
-
class:
|
|
6385
|
+
class: x("bg-transparent", "border-line-default", "text-fg-secondary")
|
|
6386
6386
|
},
|
|
6387
6387
|
{
|
|
6388
6388
|
variant: "primary",
|
|
6389
6389
|
style: "outline",
|
|
6390
|
-
class:
|
|
6390
|
+
class: x("bg-transparent", "border-line-brand", "text-fg-brand")
|
|
6391
6391
|
},
|
|
6392
6392
|
{
|
|
6393
6393
|
variant: "secondary",
|
|
6394
6394
|
style: "outline",
|
|
6395
|
-
class:
|
|
6395
|
+
class: x(
|
|
6396
6396
|
"bg-transparent",
|
|
6397
6397
|
"border-line-secondary",
|
|
6398
6398
|
"text-fg-brand-secondary"
|
|
@@ -6422,7 +6422,7 @@ const Wl = Ne(
|
|
|
6422
6422
|
"children",
|
|
6423
6423
|
"aria-label"
|
|
6424
6424
|
]);
|
|
6425
|
-
const p =
|
|
6425
|
+
const p = x(Wl({ variant: t, size: r, style: s }), a);
|
|
6426
6426
|
let m;
|
|
6427
6427
|
if (i)
|
|
6428
6428
|
m = i;
|
|
@@ -6454,7 +6454,7 @@ const Bl = _e(function({
|
|
|
6454
6454
|
helperId: o
|
|
6455
6455
|
}) {
|
|
6456
6456
|
const i = K(
|
|
6457
|
-
() =>
|
|
6457
|
+
() => x(
|
|
6458
6458
|
f("xs", "mt"),
|
|
6459
6459
|
$e("caption"),
|
|
6460
6460
|
t && "text-fg-error",
|
|
@@ -6502,19 +6502,19 @@ const Bl = _e(function({
|
|
|
6502
6502
|
"disabled",
|
|
6503
6503
|
"id"
|
|
6504
6504
|
]);
|
|
6505
|
-
const y = ve(),
|
|
6506
|
-
() => o ? `${
|
|
6507
|
-
[o,
|
|
6505
|
+
const y = ve(), g = p || `select-${y}`, v = K(
|
|
6506
|
+
() => o ? `${g}-error` : void 0,
|
|
6507
|
+
[o, g]
|
|
6508
6508
|
), k = K(
|
|
6509
|
-
() => l ? `${
|
|
6510
|
-
[l,
|
|
6509
|
+
() => l ? `${g}-helper` : void 0,
|
|
6510
|
+
[l, g]
|
|
6511
6511
|
), $ = K(() => "focus:border-line-focus", []), C = K(() => "focus:border-error", []), j = K(() => "focus:border-success", []), S = Q(
|
|
6512
6512
|
(T) => T === "error" ? C.replace("focus:border-", "focus:ring-") : T === "success" ? j.replace("focus:border-", "focus:ring-") : $.replace("focus:border-", "focus:ring-"),
|
|
6513
6513
|
[C, j, $]
|
|
6514
6514
|
), N = K(
|
|
6515
6515
|
() => Ne(
|
|
6516
6516
|
// Base classes
|
|
6517
|
-
|
|
6517
|
+
x(
|
|
6518
6518
|
"block",
|
|
6519
6519
|
"w-full",
|
|
6520
6520
|
G("md"),
|
|
@@ -6530,26 +6530,26 @@ const Bl = _e(function({
|
|
|
6530
6530
|
{
|
|
6531
6531
|
variants: {
|
|
6532
6532
|
size: {
|
|
6533
|
-
sm:
|
|
6533
|
+
sm: x(
|
|
6534
6534
|
"h-8",
|
|
6535
6535
|
le("bodySmall"),
|
|
6536
6536
|
f("md", "px")
|
|
6537
6537
|
),
|
|
6538
|
-
md:
|
|
6538
|
+
md: x(
|
|
6539
6539
|
"h-10",
|
|
6540
6540
|
le("body"),
|
|
6541
6541
|
f("base", "px")
|
|
6542
6542
|
),
|
|
6543
|
-
lg:
|
|
6543
|
+
lg: x(
|
|
6544
6544
|
"h-12",
|
|
6545
6545
|
le("bodyLarge"),
|
|
6546
6546
|
f("lg", "px")
|
|
6547
6547
|
)
|
|
6548
6548
|
},
|
|
6549
6549
|
state: {
|
|
6550
|
-
default:
|
|
6551
|
-
error:
|
|
6552
|
-
success:
|
|
6550
|
+
default: x("border-line-default", S()),
|
|
6551
|
+
error: x("border-error", S("error")),
|
|
6552
|
+
success: x("border-success", S("success"))
|
|
6553
6553
|
}
|
|
6554
6554
|
},
|
|
6555
6555
|
defaultVariants: {
|
|
@@ -6563,10 +6563,10 @@ const Bl = _e(function({
|
|
|
6563
6563
|
() => o ? "error" : i ? "success" : "default",
|
|
6564
6564
|
[o, i]
|
|
6565
6565
|
), _ = K(
|
|
6566
|
-
() =>
|
|
6566
|
+
() => x(N({ size: d, state: D }), c),
|
|
6567
6567
|
[N, d, D, c]
|
|
6568
6568
|
), M = K(
|
|
6569
|
-
() =>
|
|
6569
|
+
() => x(
|
|
6570
6570
|
"block",
|
|
6571
6571
|
$e("label"),
|
|
6572
6572
|
f("xs", "mb"),
|
|
@@ -6575,11 +6575,11 @@ const Bl = _e(function({
|
|
|
6575
6575
|
[u]
|
|
6576
6576
|
);
|
|
6577
6577
|
return /* @__PURE__ */ n.jsxs("div", { className: "w-full", children: [
|
|
6578
|
-
a && /* @__PURE__ */ n.jsx("label", { htmlFor:
|
|
6578
|
+
a && /* @__PURE__ */ n.jsx("label", { htmlFor: g, className: M, children: a }),
|
|
6579
6579
|
/* @__PURE__ */ n.jsxs(
|
|
6580
6580
|
"select",
|
|
6581
6581
|
L(A({
|
|
6582
|
-
id:
|
|
6582
|
+
id: g,
|
|
6583
6583
|
ref: b,
|
|
6584
6584
|
className: _,
|
|
6585
6585
|
disabled: u,
|
|
@@ -6645,7 +6645,7 @@ const Ul = _e(
|
|
|
6645
6645
|
const m = ve(), b = l != null ? l : m, h = K(() => "focus:border-line-focus", []), w = K(() => "focus:border-error", []), y = K(
|
|
6646
6646
|
() => t ? w.replace("focus:border-", "focus:ring-") : h.replace("focus:border-", "focus:ring-"),
|
|
6647
6647
|
[t, w, h]
|
|
6648
|
-
),
|
|
6648
|
+
), g = K(
|
|
6649
6649
|
() => ({
|
|
6650
6650
|
none: "resize-none",
|
|
6651
6651
|
both: "resize",
|
|
@@ -6654,7 +6654,7 @@ const Ul = _e(
|
|
|
6654
6654
|
}),
|
|
6655
6655
|
[]
|
|
6656
6656
|
), v = K(
|
|
6657
|
-
() =>
|
|
6657
|
+
() => x(
|
|
6658
6658
|
"block",
|
|
6659
6659
|
"w-full",
|
|
6660
6660
|
G("md"),
|
|
@@ -6665,11 +6665,11 @@ const Ul = _e(
|
|
|
6665
6665
|
"focus:outline-none",
|
|
6666
6666
|
"focus:ring-2",
|
|
6667
6667
|
"focus:ring-offset-2",
|
|
6668
|
-
|
|
6669
|
-
|
|
6668
|
+
g[s],
|
|
6669
|
+
x(t ? "border-error" : r ? "border-success" : "border-line-default", y),
|
|
6670
6670
|
a
|
|
6671
6671
|
),
|
|
6672
|
-
[s,
|
|
6672
|
+
[s, g, t, r, y, a]
|
|
6673
6673
|
), k = K(
|
|
6674
6674
|
() => i ? `${b}-helper` : void 0,
|
|
6675
6675
|
[i, b]
|
|
@@ -6692,7 +6692,7 @@ const Ul = _e(
|
|
|
6692
6692
|
"p",
|
|
6693
6693
|
{
|
|
6694
6694
|
id: k,
|
|
6695
|
-
className:
|
|
6695
|
+
className: x(
|
|
6696
6696
|
f("xs", "mt"),
|
|
6697
6697
|
le("bodySmall"),
|
|
6698
6698
|
t ? "text-fg-error" : r ? "text-fg-success" : "text-fg-secondary"
|
|
@@ -6705,7 +6705,7 @@ const Ul = _e(
|
|
|
6705
6705
|
"label",
|
|
6706
6706
|
{
|
|
6707
6707
|
htmlFor: b,
|
|
6708
|
-
className:
|
|
6708
|
+
className: x(
|
|
6709
6709
|
"block",
|
|
6710
6710
|
f("xs", "mb"),
|
|
6711
6711
|
le("label"),
|
|
@@ -6721,19 +6721,19 @@ const Ul = _e(
|
|
|
6721
6721
|
})
|
|
6722
6722
|
);
|
|
6723
6723
|
Ul.displayName = "Textarea";
|
|
6724
|
-
const Gl =
|
|
6724
|
+
const Gl = x(
|
|
6725
6725
|
"block",
|
|
6726
6726
|
le("label"),
|
|
6727
6727
|
Ve("label"),
|
|
6728
6728
|
"text-fg-primary"
|
|
6729
6729
|
), Kl = {
|
|
6730
6730
|
default: "",
|
|
6731
|
-
required:
|
|
6731
|
+
required: x(
|
|
6732
6732
|
"after:content-['*']",
|
|
6733
6733
|
`after:${f("0.5", "ml")}`,
|
|
6734
6734
|
"after:text-fg-error"
|
|
6735
6735
|
),
|
|
6736
|
-
optional:
|
|
6736
|
+
optional: x(
|
|
6737
6737
|
"after:content-['(optional)']",
|
|
6738
6738
|
`after:${f("xs", "ml")}`,
|
|
6739
6739
|
"after:text-fg-tertiary",
|
|
@@ -6742,7 +6742,7 @@ const Gl = g(
|
|
|
6742
6742
|
}, sr = _e(
|
|
6743
6743
|
be(function(i, o) {
|
|
6744
6744
|
var l = i, { variant: t = "default", className: r = "", children: s } = l, a = P(l, ["variant", "className", "children"]);
|
|
6745
|
-
const d =
|
|
6745
|
+
const d = x(
|
|
6746
6746
|
Gl,
|
|
6747
6747
|
Kl[t],
|
|
6748
6748
|
r
|
|
@@ -6768,7 +6768,7 @@ function Yl(a) {
|
|
|
6768
6768
|
"flex",
|
|
6769
6769
|
"items-center",
|
|
6770
6770
|
f("xs", "gap")
|
|
6771
|
-
], l =
|
|
6771
|
+
], l = x(...i, r);
|
|
6772
6772
|
return /* @__PURE__ */ n.jsxs("div", L(A({ role: "alert", id: t, className: l, "aria-live": "polite" }, s), { children: [
|
|
6773
6773
|
/* @__PURE__ */ n.jsx(Ar, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }),
|
|
6774
6774
|
/* @__PURE__ */ n.jsx("span", { children: e })
|
|
@@ -6896,7 +6896,7 @@ const nr = be(function(u, c) {
|
|
|
6896
6896
|
"aria-label",
|
|
6897
6897
|
"preservePositioning"
|
|
6898
6898
|
]);
|
|
6899
|
-
const [m, b] = V(!1), h = ee(null), w = ee(null), y = ee(null),
|
|
6899
|
+
const [m, b] = V(!1), h = ee(null), w = ee(null), y = ee(null), g = `tooltip-${ve()}`, v = () => {
|
|
6900
6900
|
const T = setTimeout(() => {
|
|
6901
6901
|
b(!0);
|
|
6902
6902
|
}, a);
|
|
@@ -6928,7 +6928,7 @@ const nr = be(function(u, c) {
|
|
|
6928
6928
|
left: "border-l-surface-inverse",
|
|
6929
6929
|
right: "border-r-surface-inverse"
|
|
6930
6930
|
})[T], N = Ne(
|
|
6931
|
-
|
|
6931
|
+
x(
|
|
6932
6932
|
"absolute",
|
|
6933
6933
|
Ae("tooltip"),
|
|
6934
6934
|
f("sm", "px"),
|
|
@@ -6943,28 +6943,28 @@ const nr = be(function(u, c) {
|
|
|
6943
6943
|
{
|
|
6944
6944
|
variants: {
|
|
6945
6945
|
position: {
|
|
6946
|
-
top:
|
|
6946
|
+
top: x(
|
|
6947
6947
|
"bottom-full",
|
|
6948
6948
|
"left-1/2",
|
|
6949
6949
|
"transform",
|
|
6950
6950
|
"-translate-x-1/2",
|
|
6951
6951
|
f("sm", "mb")
|
|
6952
6952
|
),
|
|
6953
|
-
bottom:
|
|
6953
|
+
bottom: x(
|
|
6954
6954
|
"top-full",
|
|
6955
6955
|
"left-1/2",
|
|
6956
6956
|
"transform",
|
|
6957
6957
|
"-translate-x-1/2",
|
|
6958
6958
|
f("sm", "mt")
|
|
6959
6959
|
),
|
|
6960
|
-
left:
|
|
6960
|
+
left: x(
|
|
6961
6961
|
"right-full",
|
|
6962
6962
|
"top-1/2",
|
|
6963
6963
|
"transform",
|
|
6964
6964
|
"-translate-y-1/2",
|
|
6965
6965
|
f("sm", "mr")
|
|
6966
6966
|
),
|
|
6967
|
-
right:
|
|
6967
|
+
right: x(
|
|
6968
6968
|
"left-full",
|
|
6969
6969
|
"top-1/2",
|
|
6970
6970
|
"transform",
|
|
@@ -6978,7 +6978,7 @@ const nr = be(function(u, c) {
|
|
|
6978
6978
|
}
|
|
6979
6979
|
}
|
|
6980
6980
|
), D = Ne(
|
|
6981
|
-
|
|
6981
|
+
x(
|
|
6982
6982
|
"absolute",
|
|
6983
6983
|
"w-0",
|
|
6984
6984
|
"h-0",
|
|
@@ -6988,28 +6988,28 @@ const nr = be(function(u, c) {
|
|
|
6988
6988
|
{
|
|
6989
6989
|
variants: {
|
|
6990
6990
|
position: {
|
|
6991
|
-
top:
|
|
6991
|
+
top: x(
|
|
6992
6992
|
"top-full",
|
|
6993
6993
|
"left-1/2",
|
|
6994
6994
|
"transform",
|
|
6995
6995
|
"-translate-x-1/2",
|
|
6996
6996
|
S("top")
|
|
6997
6997
|
),
|
|
6998
|
-
bottom:
|
|
6998
|
+
bottom: x(
|
|
6999
6999
|
"bottom-full",
|
|
7000
7000
|
"left-1/2",
|
|
7001
7001
|
"transform",
|
|
7002
7002
|
"-translate-x-1/2",
|
|
7003
7003
|
S("bottom")
|
|
7004
7004
|
),
|
|
7005
|
-
left:
|
|
7005
|
+
left: x(
|
|
7006
7006
|
"left-full",
|
|
7007
7007
|
"top-1/2",
|
|
7008
7008
|
"transform",
|
|
7009
7009
|
"-translate-y-1/2",
|
|
7010
7010
|
S("left")
|
|
7011
7011
|
),
|
|
7012
|
-
right:
|
|
7012
|
+
right: x(
|
|
7013
7013
|
"right-full",
|
|
7014
7014
|
"top-1/2",
|
|
7015
7015
|
"transform",
|
|
@@ -7026,7 +7026,7 @@ const nr = be(function(u, c) {
|
|
|
7026
7026
|
const T = r, I = T.props, R = I.ref;
|
|
7027
7027
|
return ar(T, {
|
|
7028
7028
|
ref: bs(y, R),
|
|
7029
|
-
"aria-describedby": m ?
|
|
7029
|
+
"aria-describedby": m ? g : I["aria-describedby"],
|
|
7030
7030
|
onMouseEnter: (z) => {
|
|
7031
7031
|
var O;
|
|
7032
7032
|
v(), (O = I.onMouseEnter) == null || O.call(I, z);
|
|
@@ -7048,20 +7048,20 @@ const nr = be(function(u, c) {
|
|
|
7048
7048
|
j(z), (O = I.onKeyDown) == null || O.call(I, z);
|
|
7049
7049
|
}
|
|
7050
7050
|
});
|
|
7051
|
-
})() : r, M =
|
|
7051
|
+
})() : r, M = x(l ? "static" : "relative", "inline-block", o);
|
|
7052
7052
|
return /* @__PURE__ */ n.jsxs("div", L(A({ ref: c, className: M }, d), { children: [
|
|
7053
7053
|
_,
|
|
7054
7054
|
m && /* @__PURE__ */ n.jsxs(
|
|
7055
7055
|
"div",
|
|
7056
7056
|
{
|
|
7057
7057
|
ref: w,
|
|
7058
|
-
id:
|
|
7059
|
-
className:
|
|
7058
|
+
id: g,
|
|
7059
|
+
className: x(N({ position: s })),
|
|
7060
7060
|
role: "tooltip",
|
|
7061
7061
|
"aria-live": "polite",
|
|
7062
7062
|
children: [
|
|
7063
7063
|
t,
|
|
7064
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
7064
|
+
/* @__PURE__ */ n.jsx("div", { className: x(D({ position: s })), "aria-hidden": "true" })
|
|
7065
7065
|
]
|
|
7066
7066
|
}
|
|
7067
7067
|
)
|
|
@@ -7093,7 +7093,7 @@ function Jl(l) {
|
|
|
7093
7093
|
card: "h-32",
|
|
7094
7094
|
list: "h-12",
|
|
7095
7095
|
circle: G("full")
|
|
7096
|
-
}, p =
|
|
7096
|
+
}, p = x(...c, u[e], a), m = {};
|
|
7097
7097
|
t && (m.width = t), r && (m.height = r);
|
|
7098
7098
|
const b = o || `Loading ${e} content`;
|
|
7099
7099
|
return e === "text" && s > 1 ? /* @__PURE__ */ n.jsx(
|
|
@@ -7184,7 +7184,7 @@ const Qn = be(
|
|
|
7184
7184
|
open: a,
|
|
7185
7185
|
onOpenChange: o,
|
|
7186
7186
|
storageKey: d
|
|
7187
|
-
}), y = ee(null), [
|
|
7187
|
+
}), y = ee(null), [g, v] = V(h ? "auto" : 0);
|
|
7188
7188
|
Y(() => {
|
|
7189
7189
|
y.current && v(h ? y.current.scrollHeight : 0);
|
|
7190
7190
|
}, [h, t]), Y(() => {
|
|
@@ -7210,7 +7210,7 @@ const Qn = be(
|
|
|
7210
7210
|
"aria-expanded": h,
|
|
7211
7211
|
"aria-controls": k,
|
|
7212
7212
|
"aria-disabled": i,
|
|
7213
|
-
className:
|
|
7213
|
+
className: x(
|
|
7214
7214
|
"w-full",
|
|
7215
7215
|
"text-left",
|
|
7216
7216
|
"focus:outline-none",
|
|
@@ -7228,7 +7228,7 @@ const Qn = be(
|
|
|
7228
7228
|
id: k,
|
|
7229
7229
|
ref: y,
|
|
7230
7230
|
style: {
|
|
7231
|
-
height: typeof
|
|
7231
|
+
height: typeof g == "number" ? `${g}px` : g,
|
|
7232
7232
|
overflow: "hidden",
|
|
7233
7233
|
transition: `height ${l}ms ease-in-out`
|
|
7234
7234
|
},
|
|
@@ -7267,11 +7267,11 @@ const ys = _e(
|
|
|
7267
7267
|
), y = K(
|
|
7268
7268
|
() => o ? `${h}-helper` : void 0,
|
|
7269
7269
|
[o, h]
|
|
7270
|
-
),
|
|
7271
|
-
() => s ? v.replace("focus:border-", "focus:ring-") :
|
|
7272
|
-
[s, v,
|
|
7270
|
+
), g = K(() => "focus:border-line-focus", []), v = K(() => "focus:border-error", []), k = K(
|
|
7271
|
+
() => s ? v.replace("focus:border-", "focus:ring-") : g.replace("focus:border-", "focus:ring-"),
|
|
7272
|
+
[s, v, g]
|
|
7273
7273
|
), $ = K(
|
|
7274
|
-
() =>
|
|
7274
|
+
() => x(
|
|
7275
7275
|
"h-4",
|
|
7276
7276
|
"w-4",
|
|
7277
7277
|
G("sm"),
|
|
@@ -7290,7 +7290,7 @@ const ys = _e(
|
|
|
7290
7290
|
),
|
|
7291
7291
|
[k, s, a, i]
|
|
7292
7292
|
), C = K(
|
|
7293
|
-
() =>
|
|
7293
|
+
() => x(
|
|
7294
7294
|
$e("label"),
|
|
7295
7295
|
f("sm", "ml"),
|
|
7296
7296
|
l ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
|
|
@@ -7304,7 +7304,7 @@ const ys = _e(
|
|
|
7304
7304
|
);
|
|
7305
7305
|
return Y(() => {
|
|
7306
7306
|
j.current && (j.current.indeterminate = d);
|
|
7307
|
-
}, [d]), /* @__PURE__ */ n.jsxs("div", { className:
|
|
7307
|
+
}, [d]), /* @__PURE__ */ n.jsxs("div", { className: x("flex", "flex-col", f("sm", "my")), children: [
|
|
7308
7308
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center", children: [
|
|
7309
7309
|
/* @__PURE__ */ n.jsx(
|
|
7310
7310
|
"input",
|
|
@@ -7325,7 +7325,7 @@ const ys = _e(
|
|
|
7325
7325
|
"div",
|
|
7326
7326
|
{
|
|
7327
7327
|
id: w || y,
|
|
7328
|
-
className:
|
|
7328
|
+
className: x(
|
|
7329
7329
|
f("xs", "mt"),
|
|
7330
7330
|
$e("caption"),
|
|
7331
7331
|
s ? "text-fg-error" : a ? "text-fg-success" : "text-fg-secondary"
|
|
@@ -7363,11 +7363,11 @@ const Ql = _e(
|
|
|
7363
7363
|
), w = K(
|
|
7364
7364
|
() => o ? `${b}-helper` : void 0,
|
|
7365
7365
|
[o, b]
|
|
7366
|
-
), y = K(() => "focus:border-line-focus", []),
|
|
7367
|
-
() => s ?
|
|
7368
|
-
[s,
|
|
7366
|
+
), y = K(() => "focus:border-line-focus", []), g = K(() => "focus:border-error", []), v = K(
|
|
7367
|
+
() => s ? g.replace("focus:border-", "focus:ring-") : y.replace("focus:border-", "focus:ring-"),
|
|
7368
|
+
[s, g, y]
|
|
7369
7369
|
), k = K(
|
|
7370
|
-
() =>
|
|
7370
|
+
() => x(
|
|
7371
7371
|
"h-4",
|
|
7372
7372
|
"w-4",
|
|
7373
7373
|
"border",
|
|
@@ -7385,14 +7385,14 @@ const Ql = _e(
|
|
|
7385
7385
|
),
|
|
7386
7386
|
[v, s, a, i]
|
|
7387
7387
|
), $ = K(
|
|
7388
|
-
() =>
|
|
7388
|
+
() => x(
|
|
7389
7389
|
$e("label"),
|
|
7390
7390
|
f("sm", "ml"),
|
|
7391
7391
|
l ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
|
|
7392
7392
|
),
|
|
7393
7393
|
[l]
|
|
7394
7394
|
);
|
|
7395
|
-
return /* @__PURE__ */ n.jsxs("div", { className:
|
|
7395
|
+
return /* @__PURE__ */ n.jsxs("div", { className: x("flex", "flex-col", f("sm", "my")), children: [
|
|
7396
7396
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center", children: [
|
|
7397
7397
|
/* @__PURE__ */ n.jsx(
|
|
7398
7398
|
"input",
|
|
@@ -7413,7 +7413,7 @@ const Ql = _e(
|
|
|
7413
7413
|
"div",
|
|
7414
7414
|
{
|
|
7415
7415
|
id: h || w,
|
|
7416
|
-
className:
|
|
7416
|
+
className: x(
|
|
7417
7417
|
f("xs", "mt"),
|
|
7418
7418
|
$e("caption"),
|
|
7419
7419
|
s ? "text-fg-error" : a ? "text-fg-success" : "text-fg-secondary"
|
|
@@ -7526,11 +7526,11 @@ const tc = Ne("w-full", {
|
|
|
7526
7526
|
"className"
|
|
7527
7527
|
]);
|
|
7528
7528
|
const b = t === void 0, h = b ? void 0 : Math.min(Math.max(t / r * 100, 0), 100), w = l || (b ? "Loading in progress" : `Progress: ${h == null ? void 0 : h.toFixed(0)}%`);
|
|
7529
|
-
return /* @__PURE__ */ n.jsxs("div", L(A({ ref: u, className:
|
|
7529
|
+
return /* @__PURE__ */ n.jsxs("div", L(A({ ref: u, className: x("w-full", d) }, c), { children: [
|
|
7530
7530
|
o && (i || !b) && /* @__PURE__ */ n.jsxs(
|
|
7531
7531
|
"div",
|
|
7532
7532
|
{
|
|
7533
|
-
className:
|
|
7533
|
+
className: x(
|
|
7534
7534
|
"flex",
|
|
7535
7535
|
"items-center",
|
|
7536
7536
|
"justify-between",
|
|
@@ -7540,7 +7540,7 @@ const tc = Ne("w-full", {
|
|
|
7540
7540
|
i && /* @__PURE__ */ n.jsx(
|
|
7541
7541
|
"span",
|
|
7542
7542
|
{
|
|
7543
|
-
className:
|
|
7543
|
+
className: x(
|
|
7544
7544
|
le("bodySmall"),
|
|
7545
7545
|
Ve("label"),
|
|
7546
7546
|
"text-fg-primary"
|
|
@@ -7551,7 +7551,7 @@ const tc = Ne("w-full", {
|
|
|
7551
7551
|
!b && h !== void 0 && /* @__PURE__ */ n.jsxs(
|
|
7552
7552
|
"span",
|
|
7553
7553
|
{
|
|
7554
|
-
className:
|
|
7554
|
+
className: x(
|
|
7555
7555
|
le("bodySmall"),
|
|
7556
7556
|
"text-fg-secondary"
|
|
7557
7557
|
),
|
|
@@ -7573,7 +7573,7 @@ const tc = Ne("w-full", {
|
|
|
7573
7573
|
"aria-valuenow": b ? void 0 : t,
|
|
7574
7574
|
"aria-label": w,
|
|
7575
7575
|
"aria-busy": b,
|
|
7576
|
-
className:
|
|
7576
|
+
className: x(
|
|
7577
7577
|
"relative",
|
|
7578
7578
|
"w-full",
|
|
7579
7579
|
"overflow-hidden",
|
|
@@ -7583,7 +7583,7 @@ const tc = Ne("w-full", {
|
|
|
7583
7583
|
children: b ? /* @__PURE__ */ n.jsx(
|
|
7584
7584
|
"div",
|
|
7585
7585
|
{
|
|
7586
|
-
className:
|
|
7586
|
+
className: x(
|
|
7587
7587
|
"absolute",
|
|
7588
7588
|
"top-0",
|
|
7589
7589
|
"left-0",
|
|
@@ -7600,7 +7600,7 @@ const tc = Ne("w-full", {
|
|
|
7600
7600
|
) : /* @__PURE__ */ n.jsx(
|
|
7601
7601
|
"div",
|
|
7602
7602
|
{
|
|
7603
|
-
className:
|
|
7603
|
+
className: x(
|
|
7604
7604
|
"h-full",
|
|
7605
7605
|
fn({ variant: s }),
|
|
7606
7606
|
G("full"),
|
|
@@ -7646,9 +7646,9 @@ const rc = _e(
|
|
|
7646
7646
|
"onChange",
|
|
7647
7647
|
"id"
|
|
7648
7648
|
]);
|
|
7649
|
-
const y = d !== void 0, [
|
|
7649
|
+
const y = d !== void 0, [g, v] = V(
|
|
7650
7650
|
c != null ? c : !1
|
|
7651
|
-
), k = y ? !!d :
|
|
7651
|
+
), k = y ? !!d : g, $ = ve(), C = p || `switch-${$}`, j = K(
|
|
7652
7652
|
() => r ? `${C}-label` : void 0,
|
|
7653
7653
|
[r, C]
|
|
7654
7654
|
), S = K(
|
|
@@ -7658,7 +7658,7 @@ const rc = _e(
|
|
|
7658
7658
|
() => "focus:border-line-focus".replace("focus:border-", "focus:ring-"),
|
|
7659
7659
|
[]
|
|
7660
7660
|
), _ = K(
|
|
7661
|
-
() =>
|
|
7661
|
+
() => x(
|
|
7662
7662
|
"relative",
|
|
7663
7663
|
"inline-flex",
|
|
7664
7664
|
"shrink-0",
|
|
@@ -7691,7 +7691,7 @@ const rc = _e(
|
|
|
7691
7691
|
i
|
|
7692
7692
|
]
|
|
7693
7693
|
), M = K(
|
|
7694
|
-
() =>
|
|
7694
|
+
() => x(
|
|
7695
7695
|
"pointer-events-none",
|
|
7696
7696
|
"inline-block",
|
|
7697
7697
|
G("full"),
|
|
@@ -7704,7 +7704,7 @@ const rc = _e(
|
|
|
7704
7704
|
),
|
|
7705
7705
|
[N.thumb, N.translate, k]
|
|
7706
7706
|
);
|
|
7707
|
-
return /* @__PURE__ */ n.jsxs("div", { className:
|
|
7707
|
+
return /* @__PURE__ */ n.jsxs("div", { className: x("flex", "items-start", f("md", "gap")), children: [
|
|
7708
7708
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center", children: [
|
|
7709
7709
|
/* @__PURE__ */ n.jsx(
|
|
7710
7710
|
"button",
|
|
@@ -7770,7 +7770,7 @@ const rc = _e(
|
|
|
7770
7770
|
{
|
|
7771
7771
|
id: j,
|
|
7772
7772
|
htmlFor: C,
|
|
7773
|
-
className:
|
|
7773
|
+
className: x(
|
|
7774
7774
|
"block",
|
|
7775
7775
|
le("bodySmall"),
|
|
7776
7776
|
Ve("label"),
|
|
@@ -7784,7 +7784,7 @@ const rc = _e(
|
|
|
7784
7784
|
"p",
|
|
7785
7785
|
{
|
|
7786
7786
|
id: S,
|
|
7787
|
-
className:
|
|
7787
|
+
className: x(
|
|
7788
7788
|
f("xs", "mt"),
|
|
7789
7789
|
le("bodySmall"),
|
|
7790
7790
|
a ? "text-fg-error" : o ? "text-fg-success" : "text-fg-secondary"
|
|
@@ -7814,7 +7814,7 @@ const sc = {
|
|
|
7814
7814
|
"variant",
|
|
7815
7815
|
"className"
|
|
7816
7816
|
]);
|
|
7817
|
-
const l =
|
|
7817
|
+
const l = x(
|
|
7818
7818
|
"border-0",
|
|
7819
7819
|
"border-line-default",
|
|
7820
7820
|
sc[t],
|
|
@@ -7838,8 +7838,8 @@ const sc = {
|
|
|
7838
7838
|
);
|
|
7839
7839
|
});
|
|
7840
7840
|
ta.displayName = "Separator";
|
|
7841
|
-
const ac = be(function(
|
|
7842
|
-
var v =
|
|
7841
|
+
const ac = be(function(g, y) {
|
|
7842
|
+
var v = g, {
|
|
7843
7843
|
value: t,
|
|
7844
7844
|
defaultValue: r,
|
|
7845
7845
|
min: s = 0,
|
|
@@ -7902,7 +7902,7 @@ const ac = be(function(x, y) {
|
|
|
7902
7902
|
if (d || D) return;
|
|
7903
7903
|
const se = O(ae.clientX);
|
|
7904
7904
|
B(se);
|
|
7905
|
-
}, W = () => "focus:ring-line-brand ring-offset-2", F = Ne(
|
|
7905
|
+
}, W = () => "focus:ring-line-brand ring-offset-2", F = Ne(x("relative", "cursor-pointer"), {
|
|
7906
7906
|
variants: {
|
|
7907
7907
|
size: {
|
|
7908
7908
|
sm: "h-1",
|
|
@@ -7919,7 +7919,7 @@ const ac = be(function(x, y) {
|
|
|
7919
7919
|
disabled: !1
|
|
7920
7920
|
}
|
|
7921
7921
|
}), q = Ne(
|
|
7922
|
-
|
|
7922
|
+
x(
|
|
7923
7923
|
"absolute",
|
|
7924
7924
|
"bg-surface-brand",
|
|
7925
7925
|
G("full"),
|
|
@@ -7951,12 +7951,12 @@ const ac = be(function(x, y) {
|
|
|
7951
7951
|
}
|
|
7952
7952
|
}
|
|
7953
7953
|
), de = typeof R == "number" ? R : R[0], oe = Array.isArray(R) ? R[0] : s, pe = Array.isArray(R) ? R[1] : de, te = z(oe), ne = z(pe);
|
|
7954
|
-
return /* @__PURE__ */ n.jsxs("div", L(A({ ref: y, className:
|
|
7954
|
+
return /* @__PURE__ */ n.jsxs("div", L(A({ ref: y, className: x("w-full", h) }, w), { children: [
|
|
7955
7955
|
/* @__PURE__ */ n.jsxs(
|
|
7956
7956
|
"label",
|
|
7957
7957
|
{
|
|
7958
7958
|
id: $,
|
|
7959
|
-
className:
|
|
7959
|
+
className: x(
|
|
7960
7960
|
"block",
|
|
7961
7961
|
le("bodySmall"),
|
|
7962
7962
|
Ve("label"),
|
|
@@ -7968,7 +7968,7 @@ const ac = be(function(x, y) {
|
|
|
7968
7968
|
c && /* @__PURE__ */ n.jsx(
|
|
7969
7969
|
"span",
|
|
7970
7970
|
{
|
|
7971
|
-
className:
|
|
7971
|
+
className: x(f("sm", "ml"), "text-fg-secondary"),
|
|
7972
7972
|
children: i === "range" ? `${oe} - ${pe}` : de
|
|
7973
7973
|
}
|
|
7974
7974
|
)
|
|
@@ -7983,7 +7983,7 @@ const ac = be(function(x, y) {
|
|
|
7983
7983
|
"div",
|
|
7984
7984
|
{
|
|
7985
7985
|
ref: k,
|
|
7986
|
-
className:
|
|
7986
|
+
className: x(
|
|
7987
7987
|
F({ size: l, disabled: d }),
|
|
7988
7988
|
"bg-surface-muted",
|
|
7989
7989
|
G("full")
|
|
@@ -7999,7 +7999,7 @@ const ac = be(function(x, y) {
|
|
|
7999
7999
|
/* @__PURE__ */ n.jsx(
|
|
8000
8000
|
"div",
|
|
8001
8001
|
{
|
|
8002
|
-
className:
|
|
8002
|
+
className: x(
|
|
8003
8003
|
"absolute",
|
|
8004
8004
|
F({ size: l }),
|
|
8005
8005
|
"bg-surface-brand",
|
|
@@ -8017,7 +8017,7 @@ const ac = be(function(x, y) {
|
|
|
8017
8017
|
return /* @__PURE__ */ n.jsx(
|
|
8018
8018
|
"div",
|
|
8019
8019
|
{
|
|
8020
|
-
className:
|
|
8020
|
+
className: x(
|
|
8021
8021
|
"absolute",
|
|
8022
8022
|
"w-1",
|
|
8023
8023
|
"h-1",
|
|
@@ -8038,7 +8038,7 @@ const ac = be(function(x, y) {
|
|
|
8038
8038
|
/* @__PURE__ */ n.jsx(
|
|
8039
8039
|
"div",
|
|
8040
8040
|
{
|
|
8041
|
-
className:
|
|
8041
|
+
className: x(
|
|
8042
8042
|
q({ size: l, active: M === "min" })
|
|
8043
8043
|
),
|
|
8044
8044
|
style: { left: `${te}%` },
|
|
@@ -8053,7 +8053,7 @@ const ac = be(function(x, y) {
|
|
|
8053
8053
|
/* @__PURE__ */ n.jsx(
|
|
8054
8054
|
"div",
|
|
8055
8055
|
{
|
|
8056
|
-
className:
|
|
8056
|
+
className: x(
|
|
8057
8057
|
q({ size: l, active: M === "max" })
|
|
8058
8058
|
),
|
|
8059
8059
|
style: { left: `${ne}%` },
|
|
@@ -8068,7 +8068,7 @@ const ac = be(function(x, y) {
|
|
|
8068
8068
|
] }) : /* @__PURE__ */ n.jsx(
|
|
8069
8069
|
"div",
|
|
8070
8070
|
{
|
|
8071
|
-
className:
|
|
8071
|
+
className: x(q({ size: l, active: D })),
|
|
8072
8072
|
style: { left: `${ne}%` },
|
|
8073
8073
|
onMouseDown: (ae) => H(ae)
|
|
8074
8074
|
}
|
|
@@ -8076,7 +8076,7 @@ const ac = be(function(x, y) {
|
|
|
8076
8076
|
c && !b && /* @__PURE__ */ n.jsx("div", { className: "absolute -top-6 left-0 right-0 flex justify-center", children: /* @__PURE__ */ n.jsx(
|
|
8077
8077
|
"span",
|
|
8078
8078
|
{
|
|
8079
|
-
className:
|
|
8079
|
+
className: x(
|
|
8080
8080
|
le("caption"),
|
|
8081
8081
|
"text-fg-secondary",
|
|
8082
8082
|
"bg-surface-overlay",
|
|
@@ -8096,7 +8096,7 @@ const ac = be(function(x, y) {
|
|
|
8096
8096
|
ac.displayName = "Slider";
|
|
8097
8097
|
const mn = Ne(
|
|
8098
8098
|
// Base classes
|
|
8099
|
-
|
|
8099
|
+
x(
|
|
8100
8100
|
"inline-flex",
|
|
8101
8101
|
"items-center",
|
|
8102
8102
|
"font-medium",
|
|
@@ -8106,19 +8106,19 @@ const mn = Ne(
|
|
|
8106
8106
|
{
|
|
8107
8107
|
variants: {
|
|
8108
8108
|
variant: {
|
|
8109
|
-
default:
|
|
8109
|
+
default: x(
|
|
8110
8110
|
"bg-surface-muted",
|
|
8111
8111
|
"text-fg-primary",
|
|
8112
8112
|
"border",
|
|
8113
8113
|
"border-line-default"
|
|
8114
8114
|
),
|
|
8115
|
-
outlined:
|
|
8115
|
+
outlined: x(
|
|
8116
8116
|
"bg-transparent",
|
|
8117
8117
|
"text-fg-primary",
|
|
8118
8118
|
"border",
|
|
8119
8119
|
"border-line-default"
|
|
8120
8120
|
),
|
|
8121
|
-
filled:
|
|
8121
|
+
filled: x(
|
|
8122
8122
|
"bg-surface-brand-strong",
|
|
8123
8123
|
"text-fg-inverse",
|
|
8124
8124
|
"border",
|
|
@@ -8126,24 +8126,24 @@ const mn = Ne(
|
|
|
8126
8126
|
)
|
|
8127
8127
|
},
|
|
8128
8128
|
size: {
|
|
8129
|
-
sm:
|
|
8129
|
+
sm: x(
|
|
8130
8130
|
f("xs", "px"),
|
|
8131
8131
|
f("xs", "py"),
|
|
8132
8132
|
le("caption")
|
|
8133
8133
|
),
|
|
8134
|
-
md:
|
|
8134
|
+
md: x(
|
|
8135
8135
|
f("sm", "px"),
|
|
8136
8136
|
f("xs", "py"),
|
|
8137
8137
|
le("bodySmall")
|
|
8138
8138
|
),
|
|
8139
|
-
lg:
|
|
8139
|
+
lg: x(
|
|
8140
8140
|
f("md", "px"),
|
|
8141
8141
|
f("sm", "py"),
|
|
8142
8142
|
le("body")
|
|
8143
8143
|
)
|
|
8144
8144
|
},
|
|
8145
8145
|
selected: {
|
|
8146
|
-
true:
|
|
8146
|
+
true: x(
|
|
8147
8147
|
"bg-surface-brand-strong",
|
|
8148
8148
|
"text-fg-inverse",
|
|
8149
8149
|
"border",
|
|
@@ -8208,7 +8208,7 @@ const mn = Ne(
|
|
|
8208
8208
|
qn,
|
|
8209
8209
|
{
|
|
8210
8210
|
ref: r,
|
|
8211
|
-
className:
|
|
8211
|
+
className: x(
|
|
8212
8212
|
mn({ variant: a, size: o, selected: i, disabled: l }),
|
|
8213
8213
|
d
|
|
8214
8214
|
),
|
|
@@ -8218,13 +8218,13 @@ const mn = Ne(
|
|
|
8218
8218
|
children: s
|
|
8219
8219
|
}
|
|
8220
8220
|
);
|
|
8221
|
-
const { onRemove: h, onClick: w, count: y } = t,
|
|
8221
|
+
const { onRemove: h, onClick: w, count: y } = t, g = w !== void 0, v = g && !l, k = (N) => {
|
|
8222
8222
|
l || (N.key === "Enter" || N.key === " ") && (N.preventDefault(), w == null || w());
|
|
8223
8223
|
}, $ = y !== void 0, C = i || a === "filled", j = $ ? /* @__PURE__ */ n.jsx(
|
|
8224
8224
|
"span",
|
|
8225
8225
|
{
|
|
8226
|
-
"aria-hidden":
|
|
8227
|
-
className:
|
|
8226
|
+
"aria-hidden": g || void 0,
|
|
8227
|
+
className: x(
|
|
8228
8228
|
"inline-flex",
|
|
8229
8229
|
"items-center",
|
|
8230
8230
|
"justify-center",
|
|
@@ -8235,7 +8235,7 @@ const mn = Ne(
|
|
|
8235
8235
|
f("0.5", "py"),
|
|
8236
8236
|
le("caption"),
|
|
8237
8237
|
Ve("label"),
|
|
8238
|
-
C ?
|
|
8238
|
+
C ? x("bg-surface-base", "text-fg-brand-emphasis") : x("bg-surface-brand-strong", "text-fg-inverse")
|
|
8239
8239
|
),
|
|
8240
8240
|
children: y
|
|
8241
8241
|
}
|
|
@@ -8244,14 +8244,14 @@ const mn = Ne(
|
|
|
8244
8244
|
"div",
|
|
8245
8245
|
{
|
|
8246
8246
|
ref: r,
|
|
8247
|
-
className:
|
|
8247
|
+
className: x(
|
|
8248
8248
|
mn({ variant: a, size: o, selected: i, disabled: l }),
|
|
8249
8249
|
h && f("xs", "pr"),
|
|
8250
8250
|
d
|
|
8251
8251
|
),
|
|
8252
8252
|
"aria-disabled": l,
|
|
8253
8253
|
children: [
|
|
8254
|
-
|
|
8254
|
+
g ? /* @__PURE__ */ n.jsx(
|
|
8255
8255
|
"button",
|
|
8256
8256
|
{
|
|
8257
8257
|
type: "button",
|
|
@@ -8261,7 +8261,7 @@ const mn = Ne(
|
|
|
8261
8261
|
"aria-pressed": i ? !0 : void 0,
|
|
8262
8262
|
"aria-label": c || S,
|
|
8263
8263
|
tabIndex: u !== void 0 ? u : v ? 0 : void 0,
|
|
8264
|
-
className:
|
|
8264
|
+
className: x(
|
|
8265
8265
|
"flex-1",
|
|
8266
8266
|
"bg-transparent",
|
|
8267
8267
|
"border-0",
|
|
@@ -8286,7 +8286,7 @@ const mn = Ne(
|
|
|
8286
8286
|
onClick: (N) => {
|
|
8287
8287
|
N.stopPropagation(), h();
|
|
8288
8288
|
},
|
|
8289
|
-
className:
|
|
8289
|
+
className: x(
|
|
8290
8290
|
f("xs", "ml"),
|
|
8291
8291
|
"hover:bg-tint-hover",
|
|
8292
8292
|
G("full"),
|
|
@@ -8306,40 +8306,44 @@ const mn = Ne(
|
|
|
8306
8306
|
);
|
|
8307
8307
|
});
|
|
8308
8308
|
ra.displayName = "Chip";
|
|
8309
|
-
const as = be(function(
|
|
8310
|
-
var
|
|
8309
|
+
const as = be(function(p, u) {
|
|
8310
|
+
var m = p, {
|
|
8311
8311
|
src: t,
|
|
8312
8312
|
alt: r,
|
|
8313
8313
|
fallback: s,
|
|
8314
8314
|
size: a = "md",
|
|
8315
8315
|
variant: o = "circle",
|
|
8316
|
-
|
|
8317
|
-
|
|
8318
|
-
|
|
8316
|
+
loading: i = "eager",
|
|
8317
|
+
"aria-label": l,
|
|
8318
|
+
className: d = ""
|
|
8319
|
+
} = m, c = P(m, [
|
|
8319
8320
|
"src",
|
|
8320
8321
|
"alt",
|
|
8321
8322
|
"fallback",
|
|
8322
8323
|
"size",
|
|
8323
8324
|
"variant",
|
|
8325
|
+
"loading",
|
|
8324
8326
|
"aria-label",
|
|
8325
8327
|
"className"
|
|
8326
8328
|
]);
|
|
8327
|
-
const [
|
|
8329
|
+
const [b, h] = V(!1), [w, y] = V(!1), g = {
|
|
8328
8330
|
xs: "h-6 w-6 text-xs",
|
|
8329
8331
|
sm: "h-8 w-8 text-sm",
|
|
8330
8332
|
md: "h-10 w-10 text-base",
|
|
8331
8333
|
lg: "h-12 w-12 text-lg",
|
|
8332
|
-
xl: "h-16 w-16 text-xl"
|
|
8333
|
-
|
|
8334
|
+
xl: "h-16 w-16 text-xl",
|
|
8335
|
+
"2xl": "h-24 w-24 text-3xl",
|
|
8336
|
+
"3xl": "h-28 w-28 text-4xl"
|
|
8337
|
+
}, v = {
|
|
8334
8338
|
circle: G("full"),
|
|
8335
8339
|
square: G("none"),
|
|
8336
8340
|
rounded: G("md")
|
|
8337
|
-
},
|
|
8341
|
+
}, k = !t || b, $ = typeof s == "string" ? s.toUpperCase().slice(0, 2) : s, C = l || r || "User avatar";
|
|
8338
8342
|
return /* @__PURE__ */ n.jsxs(
|
|
8339
8343
|
"div",
|
|
8340
8344
|
L(A({
|
|
8341
|
-
ref:
|
|
8342
|
-
className:
|
|
8345
|
+
ref: u,
|
|
8346
|
+
className: x(
|
|
8343
8347
|
"relative",
|
|
8344
8348
|
"inline-flex",
|
|
8345
8349
|
"items-center",
|
|
@@ -8347,50 +8351,51 @@ const as = be(function(u, c) {
|
|
|
8347
8351
|
"shrink-0",
|
|
8348
8352
|
"font-medium",
|
|
8349
8353
|
"overflow-hidden",
|
|
8350
|
-
|
|
8351
|
-
|
|
8354
|
+
g[a],
|
|
8355
|
+
v[o],
|
|
8352
8356
|
"bg-surface-muted",
|
|
8353
8357
|
"text-fg-primary",
|
|
8354
|
-
|
|
8358
|
+
d
|
|
8355
8359
|
),
|
|
8356
8360
|
role: "img",
|
|
8357
|
-
"aria-label":
|
|
8358
|
-
},
|
|
8361
|
+
"aria-label": C
|
|
8362
|
+
}, c), {
|
|
8359
8363
|
children: [
|
|
8360
|
-
!
|
|
8364
|
+
!k && t && /* @__PURE__ */ n.jsx(
|
|
8361
8365
|
"img",
|
|
8362
8366
|
{
|
|
8363
8367
|
src: t,
|
|
8364
8368
|
alt: r || "",
|
|
8365
|
-
|
|
8369
|
+
loading: i,
|
|
8370
|
+
className: x(
|
|
8366
8371
|
"w-full",
|
|
8367
8372
|
"h-full",
|
|
8368
8373
|
"object-cover",
|
|
8369
|
-
|
|
8370
|
-
|
|
8374
|
+
v[o],
|
|
8375
|
+
w ? "opacity-100" : "opacity-0",
|
|
8371
8376
|
"transition-opacity",
|
|
8372
8377
|
"duration-200"
|
|
8373
8378
|
),
|
|
8374
|
-
onLoad: () =>
|
|
8379
|
+
onLoad: () => y(!0),
|
|
8375
8380
|
onError: () => {
|
|
8376
|
-
|
|
8381
|
+
h(!0), y(!1);
|
|
8377
8382
|
},
|
|
8378
8383
|
"aria-hidden": "true"
|
|
8379
8384
|
}
|
|
8380
8385
|
),
|
|
8381
|
-
|
|
8386
|
+
k && /* @__PURE__ */ n.jsx(
|
|
8382
8387
|
"span",
|
|
8383
8388
|
{
|
|
8384
|
-
className:
|
|
8389
|
+
className: x(
|
|
8385
8390
|
"flex",
|
|
8386
8391
|
"items-center",
|
|
8387
8392
|
"justify-center",
|
|
8388
8393
|
"w-full",
|
|
8389
8394
|
"h-full",
|
|
8390
|
-
|
|
8395
|
+
v[o]
|
|
8391
8396
|
),
|
|
8392
8397
|
"aria-hidden": "true",
|
|
8393
|
-
children:
|
|
8398
|
+
children: $ || "?"
|
|
8394
8399
|
}
|
|
8395
8400
|
)
|
|
8396
8401
|
]
|
|
@@ -8423,7 +8428,7 @@ function lf(l) {
|
|
|
8423
8428
|
return /* @__PURE__ */ n.jsxs(
|
|
8424
8429
|
"div",
|
|
8425
8430
|
L(A({
|
|
8426
|
-
className:
|
|
8431
|
+
className: x("flex", "items-center", c[a], o),
|
|
8427
8432
|
role: "group",
|
|
8428
8433
|
"aria-label": `${u.length} avatars`
|
|
8429
8434
|
}, i), {
|
|
@@ -8467,7 +8472,7 @@ function lf(l) {
|
|
|
8467
8472
|
}
|
|
8468
8473
|
const oc = Ne(
|
|
8469
8474
|
// Base classes
|
|
8470
|
-
|
|
8475
|
+
x("inline-block", G("full")),
|
|
8471
8476
|
{
|
|
8472
8477
|
variants: {
|
|
8473
8478
|
variant: {
|
|
@@ -8512,7 +8517,7 @@ const oc = Ne(
|
|
|
8512
8517
|
"aria-label"
|
|
8513
8518
|
]);
|
|
8514
8519
|
const c = K(
|
|
8515
|
-
() =>
|
|
8520
|
+
() => x(oc({ variant: t, size: r }), s),
|
|
8516
8521
|
[t, r, s]
|
|
8517
8522
|
), u = K(() => a || {
|
|
8518
8523
|
online: "Online",
|
|
@@ -8535,41 +8540,41 @@ const oc = Ne(
|
|
|
8535
8540
|
);
|
|
8536
8541
|
ic.displayName = "Dot";
|
|
8537
8542
|
const lc = Ne(
|
|
8538
|
-
|
|
8543
|
+
x("inline-flex", "items-center", "border", G("md")),
|
|
8539
8544
|
{
|
|
8540
8545
|
variants: {
|
|
8541
8546
|
tone: {
|
|
8542
|
-
neutral:
|
|
8547
|
+
neutral: x(
|
|
8543
8548
|
"bg-surface-muted",
|
|
8544
8549
|
"text-fg-primary",
|
|
8545
8550
|
"border-line-default"
|
|
8546
8551
|
),
|
|
8547
|
-
success:
|
|
8548
|
-
warning:
|
|
8549
|
-
error:
|
|
8550
|
-
info:
|
|
8551
|
-
primary:
|
|
8552
|
+
success: x("bg-success-bg", "text-success-dark", "border-success"),
|
|
8553
|
+
warning: x("bg-warning-bg", "text-warning-dark", "border-warning"),
|
|
8554
|
+
error: x("bg-error-bg", "text-error-dark", "border-error"),
|
|
8555
|
+
info: x("bg-info-bg", "text-info-dark", "border-info"),
|
|
8556
|
+
primary: x(
|
|
8552
8557
|
"bg-surface-brand-subtle",
|
|
8553
8558
|
"text-fg-brand-emphasis",
|
|
8554
8559
|
"border-line-brand"
|
|
8555
8560
|
),
|
|
8556
|
-
secondary:
|
|
8561
|
+
secondary: x(
|
|
8557
8562
|
"bg-surface-secondary-subtle",
|
|
8558
8563
|
"text-fg-brand-secondary-emphasis",
|
|
8559
8564
|
"border-line-secondary"
|
|
8560
8565
|
),
|
|
8561
8566
|
// Categorical data-viz tone — fuchsia soft-wash, sibling to the
|
|
8562
8567
|
// chart palette. Not a status; distinct from secondary (brand violet).
|
|
8563
|
-
dataviz:
|
|
8568
|
+
dataviz: x("bg-dataviz-bg", "text-dataviz-dark", "border-dataviz")
|
|
8564
8569
|
},
|
|
8565
8570
|
size: {
|
|
8566
|
-
sm:
|
|
8571
|
+
sm: x(
|
|
8567
8572
|
f("1.5", "px"),
|
|
8568
8573
|
f("0.5", "py"),
|
|
8569
8574
|
f("0.5", "gap"),
|
|
8570
8575
|
"[&_svg]:size-3"
|
|
8571
8576
|
),
|
|
8572
|
-
md:
|
|
8577
|
+
md: x(
|
|
8573
8578
|
f("sm", "px"),
|
|
8574
8579
|
f("0.5", "py"),
|
|
8575
8580
|
f("xs", "gap"),
|
|
@@ -8601,7 +8606,7 @@ const lc = Ne(
|
|
|
8601
8606
|
"span",
|
|
8602
8607
|
L(A({
|
|
8603
8608
|
ref: d,
|
|
8604
|
-
className:
|
|
8609
|
+
className: x(lc({ tone: s, size: a }), i)
|
|
8605
8610
|
}, l), {
|
|
8606
8611
|
children: [
|
|
8607
8612
|
o ? /* @__PURE__ */ n.jsx(
|
|
@@ -8615,7 +8620,7 @@ const lc = Ne(
|
|
|
8615
8620
|
/* @__PURE__ */ n.jsx(
|
|
8616
8621
|
"span",
|
|
8617
8622
|
{
|
|
8618
|
-
className:
|
|
8623
|
+
className: x(
|
|
8619
8624
|
le(m),
|
|
8620
8625
|
Ve("label")
|
|
8621
8626
|
),
|
|
@@ -8627,7 +8632,7 @@ const lc = Ne(
|
|
|
8627
8632
|
/* @__PURE__ */ n.jsx(
|
|
8628
8633
|
"span",
|
|
8629
8634
|
{
|
|
8630
|
-
className:
|
|
8635
|
+
className: x(
|
|
8631
8636
|
le("caption"),
|
|
8632
8637
|
Ve("caption")
|
|
8633
8638
|
),
|
|
@@ -8646,7 +8651,7 @@ function dc(s) {
|
|
|
8646
8651
|
return /* @__PURE__ */ n.jsx(
|
|
8647
8652
|
"div",
|
|
8648
8653
|
L(A({
|
|
8649
|
-
className:
|
|
8654
|
+
className: x(
|
|
8650
8655
|
"grid items-start",
|
|
8651
8656
|
f("1.5", "gap"),
|
|
8652
8657
|
f("base", "mb"),
|
|
@@ -8676,7 +8681,7 @@ function uc(i) {
|
|
|
8676
8681
|
return /* @__PURE__ */ n.jsxs(
|
|
8677
8682
|
s,
|
|
8678
8683
|
L(A({
|
|
8679
|
-
className:
|
|
8684
|
+
className: x(
|
|
8680
8685
|
"text-base font-semibold text-fg-primary",
|
|
8681
8686
|
"flex items-center",
|
|
8682
8687
|
f("sm", "gap"),
|
|
@@ -8699,7 +8704,7 @@ function fc(s) {
|
|
|
8699
8704
|
"children",
|
|
8700
8705
|
"className"
|
|
8701
8706
|
]);
|
|
8702
|
-
return /* @__PURE__ */ n.jsx("p", L(A({ className:
|
|
8707
|
+
return /* @__PURE__ */ n.jsx("p", L(A({ className: x("text-sm text-fg-secondary", t) }, r), { children: e }));
|
|
8703
8708
|
}
|
|
8704
8709
|
function mc(s) {
|
|
8705
8710
|
var a = s, {
|
|
@@ -8713,7 +8718,7 @@ function mc(s) {
|
|
|
8713
8718
|
"div",
|
|
8714
8719
|
L(A({
|
|
8715
8720
|
"data-card-actions": "",
|
|
8716
|
-
className:
|
|
8721
|
+
className: x(
|
|
8717
8722
|
"flex items-center self-start",
|
|
8718
8723
|
f("sm", "gap"),
|
|
8719
8724
|
t
|
|
@@ -8725,7 +8730,7 @@ function mc(s) {
|
|
|
8725
8730
|
}
|
|
8726
8731
|
function pc(s) {
|
|
8727
8732
|
var a = s, { children: e, className: t } = a, r = P(a, ["children", "className"]);
|
|
8728
|
-
return /* @__PURE__ */ n.jsx("div", L(A({ className:
|
|
8733
|
+
return /* @__PURE__ */ n.jsx("div", L(A({ className: x(t) }, r), { children: e }));
|
|
8729
8734
|
}
|
|
8730
8735
|
function bc(c) {
|
|
8731
8736
|
var u = c, {
|
|
@@ -8751,7 +8756,7 @@ function bc(c) {
|
|
|
8751
8756
|
"[Card] `asSection={true}` requires an accessible name. Pass `aria-labelledby` pointing to your Card.Title `id`, or `aria-label`. A <section> without a name is an anonymous landmark that hurts screen-reader navigation."
|
|
8752
8757
|
);
|
|
8753
8758
|
const p = Ne(
|
|
8754
|
-
|
|
8759
|
+
x(
|
|
8755
8760
|
"bg-surface-base",
|
|
8756
8761
|
G("lg"),
|
|
8757
8762
|
"border",
|
|
@@ -8762,12 +8767,12 @@ function bc(c) {
|
|
|
8762
8767
|
variants: {
|
|
8763
8768
|
variant: {
|
|
8764
8769
|
default: "",
|
|
8765
|
-
hover:
|
|
8770
|
+
hover: x(
|
|
8766
8771
|
`hover:${ke("md")}`,
|
|
8767
8772
|
"transition-shadow",
|
|
8768
8773
|
"cursor-pointer"
|
|
8769
8774
|
),
|
|
8770
|
-
selected:
|
|
8775
|
+
selected: x("border-line-brand", ke("md"))
|
|
8771
8776
|
},
|
|
8772
8777
|
padding: {
|
|
8773
8778
|
none: "",
|
|
@@ -8781,7 +8786,7 @@ function bc(c) {
|
|
|
8781
8786
|
padding: "medium"
|
|
8782
8787
|
}
|
|
8783
8788
|
}
|
|
8784
|
-
), m = s !== void 0, b = m ? "button" : void 0, h = m ? 0 : void 0, w =
|
|
8789
|
+
), m = s !== void 0, b = m ? "button" : void 0, h = m ? 0 : void 0, w = x(p({ variant: e, padding: t }), r), g = A({
|
|
8785
8790
|
className: w,
|
|
8786
8791
|
role: b,
|
|
8787
8792
|
tabIndex: h,
|
|
@@ -8792,7 +8797,7 @@ function bc(c) {
|
|
|
8792
8797
|
"aria-label": a,
|
|
8793
8798
|
"aria-labelledby": o
|
|
8794
8799
|
}, d);
|
|
8795
|
-
return i ? /* @__PURE__ */ n.jsx("section", L(A({},
|
|
8800
|
+
return i ? /* @__PURE__ */ n.jsx("section", L(A({}, g), { children: l })) : /* @__PURE__ */ n.jsx("div", L(A({}, g), { children: l }));
|
|
8796
8801
|
}
|
|
8797
8802
|
const sa = _e(bc);
|
|
8798
8803
|
sa.displayName = "Card";
|
|
@@ -8833,7 +8838,7 @@ function cf(d) {
|
|
|
8833
8838
|
return /* @__PURE__ */ n.jsxs(
|
|
8834
8839
|
"div",
|
|
8835
8840
|
L(A({
|
|
8836
|
-
className:
|
|
8841
|
+
className: x(
|
|
8837
8842
|
"bg-surface-base flex-1 flex flex-col",
|
|
8838
8843
|
f("base", "p"),
|
|
8839
8844
|
f("xs", "gap-y"),
|
|
@@ -8852,7 +8857,7 @@ function cf(d) {
|
|
|
8852
8857
|
}
|
|
8853
8858
|
) : /* @__PURE__ */ n.jsx("span", { className: "text-fg-primary text-2xl font-semibold leading-tight", children: e }),
|
|
8854
8859
|
/* @__PURE__ */ n.jsx("span", { className: "text-fg-secondary text-sm", children: t }),
|
|
8855
|
-
r ? /* @__PURE__ */ n.jsx("span", { className:
|
|
8860
|
+
r ? /* @__PURE__ */ n.jsx("span", { className: x("text-xs", xc[o]), children: r }) : null
|
|
8856
8861
|
]
|
|
8857
8862
|
})
|
|
8858
8863
|
);
|
|
@@ -8862,30 +8867,44 @@ const gc = {
|
|
|
8862
8867
|
3: "md:grid-cols-3",
|
|
8863
8868
|
4: "md:grid-cols-4"
|
|
8864
8869
|
};
|
|
8865
|
-
function df(
|
|
8866
|
-
var
|
|
8870
|
+
function df(i) {
|
|
8871
|
+
var l = i, {
|
|
8867
8872
|
layout: e = "grid",
|
|
8868
8873
|
cols: t = 4,
|
|
8869
|
-
|
|
8870
|
-
|
|
8871
|
-
|
|
8874
|
+
floatingBadge: r,
|
|
8875
|
+
className: s,
|
|
8876
|
+
children: a
|
|
8877
|
+
} = l, o = P(l, [
|
|
8872
8878
|
"layout",
|
|
8873
8879
|
"cols",
|
|
8880
|
+
"floatingBadge",
|
|
8874
8881
|
"className",
|
|
8875
8882
|
"children"
|
|
8876
8883
|
]);
|
|
8877
|
-
const
|
|
8878
|
-
return /* @__PURE__ */ n.
|
|
8884
|
+
const d = e === "grid";
|
|
8885
|
+
return /* @__PURE__ */ n.jsxs(
|
|
8879
8886
|
"div",
|
|
8880
8887
|
L(A({
|
|
8881
|
-
className:
|
|
8882
|
-
"
|
|
8883
|
-
|
|
8884
|
-
|
|
8885
|
-
r
|
|
8888
|
+
className: x(
|
|
8889
|
+
"relative",
|
|
8890
|
+
r && f("base", "pt"),
|
|
8891
|
+
s
|
|
8886
8892
|
)
|
|
8887
|
-
},
|
|
8888
|
-
children:
|
|
8893
|
+
}, o), {
|
|
8894
|
+
children: [
|
|
8895
|
+
r ? /* @__PURE__ */ n.jsx("div", { className: "absolute top-4 left-1/2 -translate-x-1/2 -translate-y-1/2 z-10", children: r }) : null,
|
|
8896
|
+
/* @__PURE__ */ n.jsx(
|
|
8897
|
+
"div",
|
|
8898
|
+
{
|
|
8899
|
+
className: x(
|
|
8900
|
+
"bg-line-default border border-line-default overflow-hidden gap-px",
|
|
8901
|
+
G("lg"),
|
|
8902
|
+
d ? `grid grid-cols-2 ${gc[t]}` : "flex"
|
|
8903
|
+
),
|
|
8904
|
+
children: a
|
|
8905
|
+
}
|
|
8906
|
+
)
|
|
8907
|
+
]
|
|
8889
8908
|
})
|
|
8890
8909
|
);
|
|
8891
8910
|
}
|
|
@@ -8907,7 +8926,7 @@ function uf(o) {
|
|
|
8907
8926
|
L(A({
|
|
8908
8927
|
role: "group",
|
|
8909
8928
|
"aria-label": d,
|
|
8910
|
-
className:
|
|
8929
|
+
className: x(
|
|
8911
8930
|
"flex items-center",
|
|
8912
8931
|
r ? "flex-wrap" : "flex-nowrap",
|
|
8913
8932
|
f("sm", "gap"),
|
|
@@ -8983,7 +9002,7 @@ function pf(l) {
|
|
|
8983
9002
|
"success",
|
|
8984
9003
|
"className"
|
|
8985
9004
|
]);
|
|
8986
|
-
const c =
|
|
9005
|
+
const c = x(
|
|
8987
9006
|
f("lg", "gap"),
|
|
8988
9007
|
"flex",
|
|
8989
9008
|
"flex-col",
|
|
@@ -8991,14 +9010,14 @@ function pf(l) {
|
|
|
8991
9010
|
);
|
|
8992
9011
|
if ("form" in i && i.form !== void 0) {
|
|
8993
9012
|
const w = i, {
|
|
8994
|
-
form:
|
|
9013
|
+
form: g,
|
|
8995
9014
|
onSubmit: v,
|
|
8996
9015
|
onSubmitError: k
|
|
8997
9016
|
} = w, $ = P(w, [
|
|
8998
9017
|
"form",
|
|
8999
9018
|
"onSubmit",
|
|
9000
9019
|
"onSubmitError"
|
|
9001
|
-
]), C =
|
|
9020
|
+
]), C = g.handleSubmit(
|
|
9002
9021
|
(j) => pr(null, null, function* () {
|
|
9003
9022
|
if (!r)
|
|
9004
9023
|
try {
|
|
@@ -9011,7 +9030,7 @@ function pf(l) {
|
|
|
9011
9030
|
k == null || k(j);
|
|
9012
9031
|
}
|
|
9013
9032
|
);
|
|
9014
|
-
return /* @__PURE__ */ n.jsx(yc, { form:
|
|
9033
|
+
return /* @__PURE__ */ n.jsx(yc, { form: g, loading: r, children: /* @__PURE__ */ n.jsxs(
|
|
9015
9034
|
"form",
|
|
9016
9035
|
L(A({
|
|
9017
9036
|
className: c,
|
|
@@ -9024,7 +9043,7 @@ function pf(l) {
|
|
|
9024
9043
|
"div",
|
|
9025
9044
|
{
|
|
9026
9045
|
role: "alert",
|
|
9027
|
-
className:
|
|
9046
|
+
className: x(
|
|
9028
9047
|
f("md", "p"),
|
|
9029
9048
|
Re("sm"),
|
|
9030
9049
|
"text-error-dark",
|
|
@@ -9040,7 +9059,7 @@ function pf(l) {
|
|
|
9040
9059
|
"div",
|
|
9041
9060
|
{
|
|
9042
9061
|
role: "alert",
|
|
9043
|
-
className:
|
|
9062
|
+
className: x(
|
|
9044
9063
|
f("md", "p"),
|
|
9045
9064
|
Re("sm"),
|
|
9046
9065
|
"text-success-dark",
|
|
@@ -9056,8 +9075,8 @@ function pf(l) {
|
|
|
9056
9075
|
})
|
|
9057
9076
|
) });
|
|
9058
9077
|
}
|
|
9059
|
-
const p = i.onSubmit || t, y = i, { onSubmit: m } = y, b = P(y, ["onSubmit"]), h = (
|
|
9060
|
-
|
|
9078
|
+
const p = i.onSubmit || t, y = i, { onSubmit: m } = y, b = P(y, ["onSubmit"]), h = (g) => {
|
|
9079
|
+
g.preventDefault(), p && !r && (p == null || p(g));
|
|
9061
9080
|
};
|
|
9062
9081
|
return /* @__PURE__ */ n.jsxs(
|
|
9063
9082
|
"form",
|
|
@@ -9072,7 +9091,7 @@ function pf(l) {
|
|
|
9072
9091
|
"div",
|
|
9073
9092
|
{
|
|
9074
9093
|
role: "alert",
|
|
9075
|
-
className:
|
|
9094
|
+
className: x(
|
|
9076
9095
|
f("md", "p"),
|
|
9077
9096
|
Re("sm"),
|
|
9078
9097
|
"text-error-dark",
|
|
@@ -9088,7 +9107,7 @@ function pf(l) {
|
|
|
9088
9107
|
"div",
|
|
9089
9108
|
{
|
|
9090
9109
|
role: "alert",
|
|
9091
|
-
className:
|
|
9110
|
+
className: x(
|
|
9092
9111
|
f("md", "p"),
|
|
9093
9112
|
Re("sm"),
|
|
9094
9113
|
"text-success-dark",
|
|
@@ -9242,8 +9261,8 @@ var Ot = (e) => it(e) && !da(e) ? e : {
|
|
|
9242
9261
|
value: e,
|
|
9243
9262
|
message: ""
|
|
9244
9263
|
}, Oc = (e, t, r, s, a, o) => pr(null, null, function* () {
|
|
9245
|
-
const { ref: i, refs: l, required: d, maxLength: c, minLength: u, min: p, max: m, pattern: b, validate: h, name: w, valueAsNumber: y, mount:
|
|
9246
|
-
if (!
|
|
9264
|
+
const { ref: i, refs: l, required: d, maxLength: c, minLength: u, min: p, max: m, pattern: b, validate: h, name: w, valueAsNumber: y, mount: g } = e._f, v = Ke(r, w);
|
|
9265
|
+
if (!g || t.has(w))
|
|
9247
9266
|
return {};
|
|
9248
9267
|
const k = l ? l[0] : i, $ = (D) => {
|
|
9249
9268
|
if (a && k.reportValidity) {
|
|
@@ -9394,7 +9413,7 @@ function Vc(e) {
|
|
|
9394
9413
|
argA: C,
|
|
9395
9414
|
argB: Kr(j)
|
|
9396
9415
|
});
|
|
9397
|
-
},
|
|
9416
|
+
}, g = (C, j) => {
|
|
9398
9417
|
if (o)
|
|
9399
9418
|
return;
|
|
9400
9419
|
const S = r._getFieldArray(s);
|
|
@@ -9463,7 +9482,7 @@ function Vc(e) {
|
|
|
9463
9482
|
values: mt(r._formValues)
|
|
9464
9483
|
}), C ? j(s, !1) : r.unregister(s);
|
|
9465
9484
|
}), [s, r, a, i, o]), {
|
|
9466
|
-
swap: xe.useCallback(
|
|
9485
|
+
swap: xe.useCallback(g, [m, s, r, o]),
|
|
9467
9486
|
move: xe.useCallback(v, [m, s, r, o]),
|
|
9468
9487
|
prepend: xe.useCallback(h, [
|
|
9469
9488
|
m,
|
|
@@ -9507,7 +9526,7 @@ function bf({
|
|
|
9507
9526
|
return /* @__PURE__ */ n.jsxs(
|
|
9508
9527
|
"div",
|
|
9509
9528
|
{
|
|
9510
|
-
className:
|
|
9529
|
+
className: x(
|
|
9511
9530
|
"flex",
|
|
9512
9531
|
"flex-col",
|
|
9513
9532
|
f("sm", "gap"),
|
|
@@ -9518,7 +9537,7 @@ function bf({
|
|
|
9518
9537
|
sr,
|
|
9519
9538
|
{
|
|
9520
9539
|
htmlFor: e,
|
|
9521
|
-
className:
|
|
9540
|
+
className: x(
|
|
9522
9541
|
"block",
|
|
9523
9542
|
Re("sm"),
|
|
9524
9543
|
er("medium"),
|
|
@@ -9566,18 +9585,18 @@ function Wc(a) {
|
|
|
9566
9585
|
"items-center",
|
|
9567
9586
|
f("sm", "space-x"),
|
|
9568
9587
|
le("bodySmall")
|
|
9569
|
-
], l =
|
|
9588
|
+
], l = x(...i, r);
|
|
9570
9589
|
return /* @__PURE__ */ n.jsx("nav", L(A({ "aria-label": "Breadcrumb", className: l }, s), { children: /* @__PURE__ */ n.jsx(
|
|
9571
9590
|
"ol",
|
|
9572
9591
|
{
|
|
9573
|
-
className:
|
|
9592
|
+
className: x("flex", "items-center", f("sm", "space-x")),
|
|
9574
9593
|
children: e.map((d, c) => {
|
|
9575
9594
|
const u = c === e.length - 1;
|
|
9576
9595
|
return /* @__PURE__ */ n.jsxs("li", { className: "flex items-center", children: [
|
|
9577
9596
|
c > 0 && /* @__PURE__ */ n.jsx(
|
|
9578
9597
|
"span",
|
|
9579
9598
|
{
|
|
9580
|
-
className:
|
|
9599
|
+
className: x(
|
|
9581
9600
|
f("sm", "mx"),
|
|
9582
9601
|
"text-fg-tertiary"
|
|
9583
9602
|
),
|
|
@@ -9588,7 +9607,7 @@ function Wc(a) {
|
|
|
9588
9607
|
u ? /* @__PURE__ */ n.jsx(
|
|
9589
9608
|
"span",
|
|
9590
9609
|
{
|
|
9591
|
-
className:
|
|
9610
|
+
className: x(
|
|
9592
9611
|
"text-fg-primary",
|
|
9593
9612
|
Ve("label")
|
|
9594
9613
|
),
|
|
@@ -9599,7 +9618,7 @@ function Wc(a) {
|
|
|
9599
9618
|
"a",
|
|
9600
9619
|
{
|
|
9601
9620
|
href: d.href,
|
|
9602
|
-
className:
|
|
9621
|
+
className: x(
|
|
9603
9622
|
"inline-flex",
|
|
9604
9623
|
"items-center",
|
|
9605
9624
|
f("xs", "px"),
|
|
@@ -9643,29 +9662,29 @@ function Hc(d) {
|
|
|
9643
9662
|
e > 1 && r(e - 1);
|
|
9644
9663
|
}, p = () => {
|
|
9645
9664
|
e < t && r(e + 1);
|
|
9646
|
-
}, m = (
|
|
9647
|
-
|
|
9665
|
+
}, m = (g) => {
|
|
9666
|
+
g >= 1 && g <= t && g !== e && r(g);
|
|
9648
9667
|
}, b = () => {
|
|
9649
|
-
const
|
|
9668
|
+
const g = [];
|
|
9650
9669
|
if (t <= 5)
|
|
9651
9670
|
for (let k = 1; k <= t; k++)
|
|
9652
|
-
|
|
9671
|
+
g.push(k);
|
|
9653
9672
|
else if (e <= 3) {
|
|
9654
9673
|
for (let k = 1; k <= 4; k++)
|
|
9655
|
-
|
|
9656
|
-
|
|
9674
|
+
g.push(k);
|
|
9675
|
+
g.push("ellipsis"), g.push(t);
|
|
9657
9676
|
} else if (e >= t - 2) {
|
|
9658
|
-
|
|
9677
|
+
g.push(1), g.push("ellipsis");
|
|
9659
9678
|
for (let k = t - 3; k <= t; k++)
|
|
9660
|
-
|
|
9679
|
+
g.push(k);
|
|
9661
9680
|
} else {
|
|
9662
|
-
|
|
9681
|
+
g.push(1), g.push("ellipsis");
|
|
9663
9682
|
for (let k = e - 1; k <= e + 1; k++)
|
|
9664
|
-
|
|
9665
|
-
|
|
9683
|
+
g.push(k);
|
|
9684
|
+
g.push("ellipsis"), g.push(t);
|
|
9666
9685
|
}
|
|
9667
|
-
return
|
|
9668
|
-
}, h = s && a ? (e - 1) * a + 1 : void 0, w = s && a ? Math.min(e * a, s) : void 0, y =
|
|
9686
|
+
return g;
|
|
9687
|
+
}, h = s && a ? (e - 1) * a + 1 : void 0, w = s && a ? Math.min(e * a, s) : void 0, y = x(
|
|
9669
9688
|
"flex",
|
|
9670
9689
|
"items-center",
|
|
9671
9690
|
"justify-between",
|
|
@@ -9674,7 +9693,7 @@ function Hc(d) {
|
|
|
9674
9693
|
i
|
|
9675
9694
|
);
|
|
9676
9695
|
return /* @__PURE__ */ n.jsxs("nav", L(A({ className: y, "aria-label": "Pagination" }, l), { children: [
|
|
9677
|
-
/* @__PURE__ */ n.jsxs("div", { className:
|
|
9696
|
+
/* @__PURE__ */ n.jsxs("div", { className: x("flex", "items-center", f("sm", "gap")), children: [
|
|
9678
9697
|
/* @__PURE__ */ n.jsx(
|
|
9679
9698
|
ie,
|
|
9680
9699
|
{
|
|
@@ -9688,13 +9707,13 @@ function Hc(d) {
|
|
|
9688
9707
|
/* @__PURE__ */ n.jsx(
|
|
9689
9708
|
"div",
|
|
9690
9709
|
{
|
|
9691
|
-
className:
|
|
9692
|
-
children: b().map((
|
|
9693
|
-
if (
|
|
9710
|
+
className: x("flex", "items-center", f("xs", "gap")),
|
|
9711
|
+
children: b().map((g, v) => {
|
|
9712
|
+
if (g === "ellipsis")
|
|
9694
9713
|
return /* @__PURE__ */ n.jsx(
|
|
9695
9714
|
"span",
|
|
9696
9715
|
{
|
|
9697
|
-
className:
|
|
9716
|
+
className: x(
|
|
9698
9717
|
f("sm", "px"),
|
|
9699
9718
|
"text-fg-tertiary"
|
|
9700
9719
|
),
|
|
@@ -9702,7 +9721,7 @@ function Hc(d) {
|
|
|
9702
9721
|
},
|
|
9703
9722
|
`ellipsis-${v}`
|
|
9704
9723
|
);
|
|
9705
|
-
const k =
|
|
9724
|
+
const k = g, $ = k === e;
|
|
9706
9725
|
return /* @__PURE__ */ n.jsx(
|
|
9707
9726
|
ie,
|
|
9708
9727
|
{
|
|
@@ -9732,7 +9751,7 @@ function Hc(d) {
|
|
|
9732
9751
|
o && s && a && /* @__PURE__ */ n.jsxs(
|
|
9733
9752
|
"div",
|
|
9734
9753
|
{
|
|
9735
|
-
className:
|
|
9754
|
+
className: x(Re("sm"), "text-fg-primary"),
|
|
9736
9755
|
children: [
|
|
9737
9756
|
"Showing ",
|
|
9738
9757
|
h,
|
|
@@ -9764,7 +9783,7 @@ function Bc(d) {
|
|
|
9764
9783
|
"variant",
|
|
9765
9784
|
"className"
|
|
9766
9785
|
]);
|
|
9767
|
-
const u =
|
|
9786
|
+
const u = x(
|
|
9768
9787
|
"flex",
|
|
9769
9788
|
"flex-col",
|
|
9770
9789
|
"items-center",
|
|
@@ -9783,12 +9802,12 @@ function Bc(d) {
|
|
|
9783
9802
|
"aria-label": `${e}. ${t}`
|
|
9784
9803
|
}, l), {
|
|
9785
9804
|
children: [
|
|
9786
|
-
m && a && /* @__PURE__ */ n.jsx("div", { className:
|
|
9805
|
+
m && a && /* @__PURE__ */ n.jsx("div", { className: x(f("base", "mb")), "aria-hidden": "true", children: a }),
|
|
9787
9806
|
/* @__PURE__ */ n.jsx(
|
|
9788
9807
|
Pe,
|
|
9789
9808
|
{
|
|
9790
9809
|
as: "h3",
|
|
9791
|
-
className:
|
|
9810
|
+
className: x(
|
|
9792
9811
|
le("h4"),
|
|
9793
9812
|
er("semibold"),
|
|
9794
9813
|
"text-fg-primary",
|
|
@@ -9801,7 +9820,7 @@ function Bc(d) {
|
|
|
9801
9820
|
Pe,
|
|
9802
9821
|
{
|
|
9803
9822
|
as: "p",
|
|
9804
|
-
className:
|
|
9823
|
+
className: x(
|
|
9805
9824
|
le("bodySmall"),
|
|
9806
9825
|
"text-fg-secondary",
|
|
9807
9826
|
f("md", "mb"),
|
|
@@ -9832,7 +9851,7 @@ function Uc(l) {
|
|
|
9832
9851
|
"className",
|
|
9833
9852
|
"aria-label"
|
|
9834
9853
|
]);
|
|
9835
|
-
const [c, u] = V(!1), [p, m] = V(-1), b = ee(null), h = ee(null), w = ee(null), y = ee([]),
|
|
9854
|
+
const [c, u] = V(!1), [p, m] = V(-1), b = ee(null), h = ee(null), w = ee(null), y = ee([]), g = ve(), v = `dropdown-menu-${g}`, k = `dropdown-trigger-${g}`;
|
|
9836
9855
|
Y(() => {
|
|
9837
9856
|
const D = (_) => {
|
|
9838
9857
|
b.current && !b.current.contains(_.target) && (u(!1), m(-1));
|
|
@@ -9940,7 +9959,7 @@ function Uc(l) {
|
|
|
9940
9959
|
return /* @__PURE__ */ n.jsxs(
|
|
9941
9960
|
"div",
|
|
9942
9961
|
L(A({
|
|
9943
|
-
className:
|
|
9962
|
+
className: x("relative", "inline-block", a),
|
|
9944
9963
|
ref: b
|
|
9945
9964
|
}, i), {
|
|
9946
9965
|
children: [
|
|
@@ -9949,7 +9968,7 @@ function Uc(l) {
|
|
|
9949
9968
|
/* @__PURE__ */ n.jsx(
|
|
9950
9969
|
"div",
|
|
9951
9970
|
{
|
|
9952
|
-
className:
|
|
9971
|
+
className: x("fixed", "inset-0", "z-10"),
|
|
9953
9972
|
onClick: () => {
|
|
9954
9973
|
u(!1), m(-1);
|
|
9955
9974
|
},
|
|
@@ -9961,7 +9980,7 @@ function Uc(l) {
|
|
|
9961
9980
|
{
|
|
9962
9981
|
ref: w,
|
|
9963
9982
|
id: v,
|
|
9964
|
-
className:
|
|
9983
|
+
className: x(
|
|
9965
9984
|
"absolute",
|
|
9966
9985
|
// micro-z: dropdown content above its own backdrop
|
|
9967
9986
|
"z-20",
|
|
@@ -9980,8 +9999,8 @@ function Uc(l) {
|
|
|
9980
9999
|
"aria-orientation": "vertical",
|
|
9981
10000
|
"aria-labelledby": k,
|
|
9982
10001
|
"aria-activedescendant": p >= 0 ? `${v}-item-${p}` : void 0,
|
|
9983
|
-
children: /* @__PURE__ */ n.jsx("div", { className:
|
|
9984
|
-
const M =
|
|
10002
|
+
children: /* @__PURE__ */ n.jsx("div", { className: x(f("xs", "py")), role: "none", children: t.map((D, _) => {
|
|
10003
|
+
const M = x(
|
|
9985
10004
|
"block",
|
|
9986
10005
|
f("base", "px"),
|
|
9987
10006
|
f("xs", "py"),
|
|
@@ -9989,11 +10008,11 @@ function Uc(l) {
|
|
|
9989
10008
|
"w-full",
|
|
9990
10009
|
"text-left",
|
|
9991
10010
|
"focus:outline-none",
|
|
9992
|
-
D.disabled ?
|
|
10011
|
+
D.disabled ? x("text-fg-disabled", "cursor-not-allowed", "opacity-50") : D.variant === "danger" ? x(
|
|
9993
10012
|
"text-error-dark",
|
|
9994
10013
|
"hover:bg-error-bg-emphasis",
|
|
9995
10014
|
"focus:bg-error-bg-emphasis"
|
|
9996
|
-
) :
|
|
10015
|
+
) : x(
|
|
9997
10016
|
"text-fg-primary",
|
|
9998
10017
|
"hover:bg-surface-hover",
|
|
9999
10018
|
"focus:bg-surface-hover"
|
|
@@ -10112,7 +10131,7 @@ function ma(l) {
|
|
|
10112
10131
|
"onFocus",
|
|
10113
10132
|
"className"
|
|
10114
10133
|
]);
|
|
10115
|
-
const { selectedDate: c, selectedRange: u, mode: p, onDateChange: m } = fa(), [b, h] = V(""), [w, y] = V(!1),
|
|
10134
|
+
const { selectedDate: c, selectedRange: u, mode: p, onDateChange: m } = fa(), [b, h] = V(""), [w, y] = V(!1), g = ee(null);
|
|
10116
10135
|
Y(() => {
|
|
10117
10136
|
p === "single" && c ? h(Jt(c, t)) : p === "range" && u ? u.start && u.end ? h(
|
|
10118
10137
|
`${Jt(u.start, t)} - ${Jt(u.end, t)}`
|
|
@@ -10131,12 +10150,12 @@ function ma(l) {
|
|
|
10131
10150
|
}
|
|
10132
10151
|
}, $ = () => {
|
|
10133
10152
|
var C;
|
|
10134
|
-
(C =
|
|
10153
|
+
(C = g.current) == null || C.focus();
|
|
10135
10154
|
};
|
|
10136
10155
|
return /* @__PURE__ */ n.jsx("div", L(A({ className: `relative ${o}` }, i), { children: /* @__PURE__ */ n.jsx(
|
|
10137
10156
|
We,
|
|
10138
10157
|
{
|
|
10139
|
-
ref:
|
|
10158
|
+
ref: g,
|
|
10140
10159
|
type: "text",
|
|
10141
10160
|
value: b,
|
|
10142
10161
|
onChange: v,
|
|
@@ -10219,7 +10238,7 @@ function pa(a) {
|
|
|
10219
10238
|
disabledDates: b
|
|
10220
10239
|
} = fa(), [h, w] = V(
|
|
10221
10240
|
e || i || (l == null ? void 0 : l.start) || /* @__PURE__ */ new Date()
|
|
10222
|
-
), y = ee(null), [
|
|
10241
|
+
), y = ee(null), [g, v] = V(() => {
|
|
10223
10242
|
const I = /* @__PURE__ */ new Date(), R = e || i || (l == null ? void 0 : l.start) || I;
|
|
10224
10243
|
return i && Zt(i, R) ? i : Zt(I, R) ? I : new Date(R.getFullYear(), R.getMonth(), 1);
|
|
10225
10244
|
});
|
|
@@ -10234,16 +10253,16 @@ function pa(a) {
|
|
|
10234
10253
|
}
|
|
10235
10254
|
if (!y.current) return;
|
|
10236
10255
|
const I = new Date(
|
|
10237
|
-
|
|
10238
|
-
|
|
10239
|
-
|
|
10256
|
+
g.getFullYear(),
|
|
10257
|
+
g.getMonth(),
|
|
10258
|
+
g.getDate()
|
|
10240
10259
|
).toISOString(), R = y.current.querySelector(
|
|
10241
10260
|
`[data-date="${I}"]`
|
|
10242
10261
|
);
|
|
10243
10262
|
R && R.focus();
|
|
10244
|
-
}, [
|
|
10263
|
+
}, [g]);
|
|
10245
10264
|
const $ = (() => {
|
|
10246
|
-
if (Zt(
|
|
10265
|
+
if (Zt(g, h)) return g;
|
|
10247
10266
|
const I = /* @__PURE__ */ new Date();
|
|
10248
10267
|
return Zt(I, h) ? I : new Date(h.getFullYear(), h.getMonth(), 1);
|
|
10249
10268
|
})(), C = Gc(h), j = Kc(h), S = [];
|
|
@@ -10399,7 +10418,7 @@ function pa(a) {
|
|
|
10399
10418
|
p,
|
|
10400
10419
|
m,
|
|
10401
10420
|
b
|
|
10402
|
-
), W = wt(z, /* @__PURE__ */ new Date()), F = wt(z,
|
|
10421
|
+
), W = wt(z, /* @__PURE__ */ new Date()), F = wt(z, g), q = wt(z, $);
|
|
10403
10422
|
return /* @__PURE__ */ n.jsx(
|
|
10404
10423
|
"button",
|
|
10405
10424
|
{
|
|
@@ -10454,18 +10473,18 @@ function Tr({
|
|
|
10454
10473
|
const [b, h] = V(!1), w = ee(null), y = ee(null);
|
|
10455
10474
|
return Y(() => {
|
|
10456
10475
|
if (!b) return;
|
|
10457
|
-
const
|
|
10476
|
+
const g = (v) => {
|
|
10458
10477
|
var j, S, N, D;
|
|
10459
10478
|
const k = v.target, $ = (S = (j = w.current) == null ? void 0 : j.contains(k)) != null ? S : !1, C = (D = (N = y.current) == null ? void 0 : N.contains(k)) != null ? D : !1;
|
|
10460
10479
|
!$ && !C && h(!1);
|
|
10461
10480
|
};
|
|
10462
|
-
return document.addEventListener("mousedown",
|
|
10481
|
+
return document.addEventListener("mousedown", g), () => document.removeEventListener("mousedown", g);
|
|
10463
10482
|
}, [b]), Y(() => {
|
|
10464
10483
|
if (!b) return;
|
|
10465
|
-
const
|
|
10484
|
+
const g = (v) => {
|
|
10466
10485
|
v.key === "Escape" && h(!1);
|
|
10467
10486
|
};
|
|
10468
|
-
return document.addEventListener("keydown",
|
|
10487
|
+
return document.addEventListener("keydown", g), () => document.removeEventListener("keydown", g);
|
|
10469
10488
|
}, [b]), e ? /* @__PURE__ */ n.jsx(
|
|
10470
10489
|
hn,
|
|
10471
10490
|
{
|
|
@@ -10602,23 +10621,23 @@ function Zc(o) {
|
|
|
10602
10621
|
b.querySelectorAll(
|
|
10603
10622
|
'[role="tab"]:not([disabled])'
|
|
10604
10623
|
)
|
|
10605
|
-
),
|
|
10624
|
+
), g = y.findIndex(
|
|
10606
10625
|
($) => $ === document.activeElement
|
|
10607
10626
|
);
|
|
10608
|
-
if (
|
|
10609
|
-
let v =
|
|
10610
|
-
d === "horizontal" ? w.key === "ArrowRight" ? (w.preventDefault(), v = (
|
|
10627
|
+
if (g === -1) return;
|
|
10628
|
+
let v = g;
|
|
10629
|
+
d === "horizontal" ? w.key === "ArrowRight" ? (w.preventDefault(), v = (g + 1) % y.length) : w.key === "ArrowLeft" && (w.preventDefault(), v = (g - 1 + y.length) % y.length) : w.key === "ArrowDown" ? (w.preventDefault(), v = (g + 1) % y.length) : w.key === "ArrowUp" && (w.preventDefault(), v = (g - 1 + y.length) % y.length), w.key === "Home" ? (w.preventDefault(), v = 0) : w.key === "End" && (w.preventDefault(), v = y.length - 1), v !== g && ((k = y[v]) == null || k.focus());
|
|
10611
10630
|
};
|
|
10612
10631
|
return b.addEventListener("keydown", h), () => b.removeEventListener("keydown", h);
|
|
10613
10632
|
}, [d]);
|
|
10614
|
-
const u = r === "compact" && d === "vertical" ? "flex" : "inline-flex", p =
|
|
10633
|
+
const u = r === "compact" && d === "vertical" ? "flex" : "inline-flex", p = x(d === "vertical" ? "flex-col" : "flex-row", f("xs", "gap"));
|
|
10615
10634
|
return /* @__PURE__ */ n.jsx(
|
|
10616
10635
|
"div",
|
|
10617
10636
|
L(A({
|
|
10618
10637
|
ref: c,
|
|
10619
10638
|
role: "tablist",
|
|
10620
10639
|
"aria-orientation": d,
|
|
10621
|
-
className:
|
|
10640
|
+
className: x(
|
|
10622
10641
|
u,
|
|
10623
10642
|
p,
|
|
10624
10643
|
f("xs", "p"),
|
|
@@ -10652,18 +10671,18 @@ function Qc(l) {
|
|
|
10652
10671
|
onValueChange: u,
|
|
10653
10672
|
orientation: p,
|
|
10654
10673
|
activationMode: m
|
|
10655
|
-
} = $s(), b = c === e, h = (
|
|
10656
|
-
r || ((m === "automatic" || b) && u(e), a == null || a(
|
|
10657
|
-
}, w = (
|
|
10674
|
+
} = $s(), b = c === e, h = (g) => {
|
|
10675
|
+
r || ((m === "automatic" || b) && u(e), a == null || a(g));
|
|
10676
|
+
}, w = (g) => {
|
|
10658
10677
|
var v;
|
|
10659
|
-
m === "automatic" && !r && !b && u(e), (v = i.onFocus) == null || v.call(i,
|
|
10660
|
-
}, y = (
|
|
10661
|
-
if (!r && !(
|
|
10662
|
-
if (m === "manual" && (
|
|
10663
|
-
|
|
10678
|
+
m === "automatic" && !r && !b && u(e), (v = i.onFocus) == null || v.call(i, g);
|
|
10679
|
+
}, y = (g) => {
|
|
10680
|
+
if (!r && !(g.key === "ArrowRight" || g.key === "ArrowLeft" || g.key === "ArrowDown" || g.key === "ArrowUp" || g.key === "Home" || g.key === "End")) {
|
|
10681
|
+
if (m === "manual" && (g.key === "Enter" || g.key === " ")) {
|
|
10682
|
+
g.preventDefault(), u(e);
|
|
10664
10683
|
return;
|
|
10665
10684
|
}
|
|
10666
|
-
o == null || o(
|
|
10685
|
+
o == null || o(g);
|
|
10667
10686
|
}
|
|
10668
10687
|
};
|
|
10669
10688
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -10679,7 +10698,7 @@ function Qc(l) {
|
|
|
10679
10698
|
onClick: h,
|
|
10680
10699
|
onFocus: w,
|
|
10681
10700
|
onKeyDown: y,
|
|
10682
|
-
className:
|
|
10701
|
+
className: x(
|
|
10683
10702
|
"inline-flex",
|
|
10684
10703
|
"items-center",
|
|
10685
10704
|
"justify-center",
|
|
@@ -10693,7 +10712,7 @@ function Qc(l) {
|
|
|
10693
10712
|
"focus:ring-line-focus",
|
|
10694
10713
|
"focus:ring-offset-2",
|
|
10695
10714
|
G("sm"),
|
|
10696
|
-
b ?
|
|
10715
|
+
b ? x("bg-surface-brand-strong", "text-fg-inverse") : x("text-fg-secondary", "hover:bg-surface-active"),
|
|
10697
10716
|
r ? "opacity-50 cursor-not-allowed" : "cursor-pointer",
|
|
10698
10717
|
s
|
|
10699
10718
|
)
|
|
@@ -10764,13 +10783,13 @@ const vf = Dr, Ss = be(
|
|
|
10764
10783
|
]);
|
|
10765
10784
|
const [h, w] = V(
|
|
10766
10785
|
typeof l == "string" ? l : ""
|
|
10767
|
-
), [y,
|
|
10786
|
+
), [y, g] = V(null), v = i !== void 0, k = v ? i : h, $ = k != null && String(k).length > 0, C = (N) => {
|
|
10768
10787
|
const D = N.target.value;
|
|
10769
10788
|
v || w(D), d == null || d(N), y && clearTimeout(y);
|
|
10770
10789
|
const _ = setTimeout(() => {
|
|
10771
10790
|
t == null || t(D);
|
|
10772
10791
|
}, o);
|
|
10773
|
-
|
|
10792
|
+
g(_);
|
|
10774
10793
|
}, j = () => {
|
|
10775
10794
|
v || w("");
|
|
10776
10795
|
const N = {
|
|
@@ -10782,7 +10801,7 @@ const vf = Dr, Ss = be(
|
|
|
10782
10801
|
var D;
|
|
10783
10802
|
N.key === "Enter" && t && t(String(k || "")), (D = u.onKeyDown) == null || D.call(u, N);
|
|
10784
10803
|
};
|
|
10785
|
-
return /* @__PURE__ */ n.jsx("div", { className:
|
|
10804
|
+
return /* @__PURE__ */ n.jsx("div", { className: x("relative", c), children: /* @__PURE__ */ n.jsx(
|
|
10786
10805
|
We,
|
|
10787
10806
|
L(A({
|
|
10788
10807
|
ref: p
|
|
@@ -10803,7 +10822,7 @@ const vf = Dr, Ss = be(
|
|
|
10803
10822
|
children: /* @__PURE__ */ n.jsx(Oe, { className: "h-4 w-4" })
|
|
10804
10823
|
}
|
|
10805
10824
|
) : void 0,
|
|
10806
|
-
className:
|
|
10825
|
+
className: x(f("lg", "pr"))
|
|
10807
10826
|
})
|
|
10808
10827
|
) });
|
|
10809
10828
|
}
|
|
@@ -10861,11 +10880,11 @@ const Cs = be(
|
|
|
10861
10880
|
"aria-label": b,
|
|
10862
10881
|
"aria-labelledby": h
|
|
10863
10882
|
}, w) {
|
|
10864
|
-
const [y,
|
|
10883
|
+
const [y, g] = V({ top: 0, left: 0, width: 0 });
|
|
10865
10884
|
Y(() => {
|
|
10866
10885
|
if (i.current) {
|
|
10867
10886
|
const k = i.current.getBoundingClientRect();
|
|
10868
|
-
|
|
10887
|
+
g({
|
|
10869
10888
|
top: k.bottom + window.scrollY + 4,
|
|
10870
10889
|
left: k.left + window.scrollX,
|
|
10871
10890
|
width: k.width
|
|
@@ -10978,7 +10997,7 @@ const td = be(
|
|
|
10978
10997
|
size: h = "md",
|
|
10979
10998
|
label: w,
|
|
10980
10999
|
"aria-label": y,
|
|
10981
|
-
"aria-labelledby":
|
|
11000
|
+
"aria-labelledby": g,
|
|
10982
11001
|
id: v,
|
|
10983
11002
|
name: k,
|
|
10984
11003
|
form: $
|
|
@@ -11049,7 +11068,7 @@ const td = be(
|
|
|
11049
11068
|
} else
|
|
11050
11069
|
O("");
|
|
11051
11070
|
}, [q, t]), Y(() => {
|
|
11052
|
-
}, [w, y,
|
|
11071
|
+
}, [w, y, g, S]);
|
|
11053
11072
|
const U = M && (pe || l || !!c), re = U && I >= 0 && I < oe.length ? `${N}-option-${I}` : void 0;
|
|
11054
11073
|
return /* @__PURE__ */ n.jsxs("div", { ref: H, className: `relative ${m}`, children: [
|
|
11055
11074
|
/* @__PURE__ */ n.jsx(
|
|
@@ -11059,7 +11078,7 @@ const td = be(
|
|
|
11059
11078
|
id: S,
|
|
11060
11079
|
label: w,
|
|
11061
11080
|
"aria-label": y,
|
|
11062
|
-
"aria-labelledby":
|
|
11081
|
+
"aria-labelledby": g,
|
|
11063
11082
|
role: "combobox",
|
|
11064
11083
|
"aria-expanded": U,
|
|
11065
11084
|
"aria-controls": U ? N : void 0,
|
|
@@ -11102,8 +11121,8 @@ const td = be(
|
|
|
11102
11121
|
loading: l,
|
|
11103
11122
|
emptyMessage: c,
|
|
11104
11123
|
containerRef: H,
|
|
11105
|
-
"aria-labelledby":
|
|
11106
|
-
"aria-label":
|
|
11124
|
+
"aria-labelledby": g,
|
|
11125
|
+
"aria-label": g ? void 0 : y || w
|
|
11107
11126
|
}
|
|
11108
11127
|
)
|
|
11109
11128
|
] });
|
|
@@ -11128,7 +11147,7 @@ const rd = be(
|
|
|
11128
11147
|
size: h = "md",
|
|
11129
11148
|
label: w
|
|
11130
11149
|
}, y) {
|
|
11131
|
-
const
|
|
11150
|
+
const g = ve(), v = `${g}-list`, [k, $] = V(s), [C, j] = V(!1), [S, N] = V(-1), [D, _] = V(""), M = ee(null), T = ee(null), I = ee(null), R = r !== void 0, z = R ? r : k, O = t.filter(
|
|
11132
11151
|
(U) => z.includes(U.value)
|
|
11133
11152
|
), B = (() => {
|
|
11134
11153
|
let U = t;
|
|
@@ -11189,12 +11208,12 @@ const rd = be(
|
|
|
11189
11208
|
return document.addEventListener("mousedown", U), () => document.removeEventListener("mousedown", U);
|
|
11190
11209
|
}, [C]);
|
|
11191
11210
|
const te = B.filter((U) => !U.disabled).every((U) => z.includes(U.value)), ne = C && (ce || l || !!c), ae = u != null && z.length >= u, se = ne && S >= 0 && S < B.length ? `${v}-option-${S}` : void 0;
|
|
11192
|
-
return /* @__PURE__ */ n.jsxs("div", { ref: M, className:
|
|
11211
|
+
return /* @__PURE__ */ n.jsxs("div", { ref: M, className: x("relative", m), children: [
|
|
11193
11212
|
/* @__PURE__ */ n.jsx(
|
|
11194
11213
|
"label",
|
|
11195
11214
|
{
|
|
11196
|
-
htmlFor:
|
|
11197
|
-
className:
|
|
11215
|
+
htmlFor: g,
|
|
11216
|
+
className: x(
|
|
11198
11217
|
"block",
|
|
11199
11218
|
f("sm", "mb"),
|
|
11200
11219
|
"text-sm",
|
|
@@ -11207,7 +11226,7 @@ const rd = be(
|
|
|
11207
11226
|
/* @__PURE__ */ n.jsxs(
|
|
11208
11227
|
"div",
|
|
11209
11228
|
{
|
|
11210
|
-
className:
|
|
11229
|
+
className: x(
|
|
11211
11230
|
"flex",
|
|
11212
11231
|
"flex-wrap",
|
|
11213
11232
|
f("sm", "gap"),
|
|
@@ -11236,7 +11255,7 @@ const rd = be(
|
|
|
11236
11255
|
/* @__PURE__ */ n.jsx(
|
|
11237
11256
|
"input",
|
|
11238
11257
|
{
|
|
11239
|
-
id:
|
|
11258
|
+
id: g,
|
|
11240
11259
|
ref: (U) => {
|
|
11241
11260
|
typeof y == "function" ? y(U) : y && (y.current = U), T.current = U;
|
|
11242
11261
|
},
|
|
@@ -11253,7 +11272,7 @@ const rd = be(
|
|
|
11253
11272
|
onFocus: () => j(!0),
|
|
11254
11273
|
placeholder: z.length === 0 ? i : "",
|
|
11255
11274
|
disabled: d,
|
|
11256
|
-
className:
|
|
11275
|
+
className: x(
|
|
11257
11276
|
"flex-1",
|
|
11258
11277
|
"min-w-32",
|
|
11259
11278
|
"outline-none",
|
|
@@ -11277,7 +11296,7 @@ const rd = be(
|
|
|
11277
11296
|
// so they stop accepting clicks silently (maxSelected was a
|
|
11278
11297
|
// no-op with no affordance before).
|
|
11279
11298
|
disabled: U.disabled || ae && !z.includes(U.value),
|
|
11280
|
-
icon: z.includes(U.value) ? /* @__PURE__ */ n.jsx(Kn, { className:
|
|
11299
|
+
icon: z.includes(U.value) ? /* @__PURE__ */ n.jsx(Kn, { className: x("h-4", "w-4", "text-fg-brand") }) : U.icon
|
|
11281
11300
|
})),
|
|
11282
11301
|
highlightedIndex: S,
|
|
11283
11302
|
onSelect: F,
|
|
@@ -11309,18 +11328,18 @@ function yf({
|
|
|
11309
11328
|
icon: p,
|
|
11310
11329
|
emptyIcon: m
|
|
11311
11330
|
}) {
|
|
11312
|
-
const [b, h] = V(t), [w, y] = V(null),
|
|
11331
|
+
const [b, h] = V(t), [w, y] = V(null), g = e !== void 0, v = w != null ? w : g ? e : b, k = {
|
|
11313
11332
|
sm: "h-4 w-4",
|
|
11314
11333
|
md: "h-5 w-5",
|
|
11315
11334
|
lg: "h-6 w-6"
|
|
11316
11335
|
}, $ = (N) => {
|
|
11317
|
-
o || (
|
|
11336
|
+
o || (g || h(N), d == null || d(N));
|
|
11318
11337
|
}, C = (N) => {
|
|
11319
11338
|
o || (y(N), c == null || c(N));
|
|
11320
11339
|
}, j = () => {
|
|
11321
11340
|
o || y(null);
|
|
11322
11341
|
}, S = (N) => {
|
|
11323
|
-
const D = N + 1, _ = i && v >= D - 0.5 && v < D, M = v >= D, T =
|
|
11342
|
+
const D = N + 1, _ = i && v >= D - 0.5 && v < D, M = v >= D, T = x(
|
|
11324
11343
|
k[s],
|
|
11325
11344
|
Me("base"),
|
|
11326
11345
|
!o && "cursor-pointer",
|
|
@@ -11357,7 +11376,7 @@ function yf({
|
|
|
11357
11376
|
return /* @__PURE__ */ n.jsxs(
|
|
11358
11377
|
"div",
|
|
11359
11378
|
{
|
|
11360
|
-
className:
|
|
11379
|
+
className: x(
|
|
11361
11380
|
"inline-flex",
|
|
11362
11381
|
"items-center",
|
|
11363
11382
|
f("xs", "gap"),
|
|
@@ -11367,7 +11386,7 @@ function yf({
|
|
|
11367
11386
|
/* @__PURE__ */ n.jsx(
|
|
11368
11387
|
"div",
|
|
11369
11388
|
{
|
|
11370
|
-
className:
|
|
11389
|
+
className: x("flex", "items-center"),
|
|
11371
11390
|
role: o ? "img" : void 0,
|
|
11372
11391
|
"aria-label": o ? `Rating: ${v} out of ${r}` : void 0,
|
|
11373
11392
|
children: Array.from({ length: r }, (N, D) => S(D))
|
|
@@ -11376,7 +11395,7 @@ function yf({
|
|
|
11376
11395
|
l && /* @__PURE__ */ n.jsxs(
|
|
11377
11396
|
"span",
|
|
11378
11397
|
{
|
|
11379
|
-
className:
|
|
11398
|
+
className: x(
|
|
11380
11399
|
f("sm", "ml"),
|
|
11381
11400
|
Re("sm"),
|
|
11382
11401
|
"text-fg-secondary"
|
|
@@ -11406,11 +11425,11 @@ function wf({
|
|
|
11406
11425
|
label: u,
|
|
11407
11426
|
description: p
|
|
11408
11427
|
}) {
|
|
11409
|
-
const [m, b] = V([]), [h, w] = V(!1), y = ee(null),
|
|
11428
|
+
const [m, b] = V([]), [h, w] = V(!1), y = ee(null), g = (M) => {
|
|
11410
11429
|
if (M === 0) return "0 Bytes";
|
|
11411
11430
|
const T = 1024, I = ["Bytes", "KB", "MB", "GB"], R = Math.floor(Math.log(M) / Math.log(T));
|
|
11412
11431
|
return Math.round(M / Math.pow(T, R) * 100) / 100 + " " + I[R];
|
|
11413
|
-
}, v = (M) => r && M.size > r ? `File size exceeds ${
|
|
11432
|
+
}, v = (M) => r && M.size > r ? `File size exceeds ${g(r)}` : null, k = (M) => {
|
|
11414
11433
|
const T = Array.from(M), I = [];
|
|
11415
11434
|
return T.forEach((R) => {
|
|
11416
11435
|
const z = v(R), O = `${Date.now()}-${Math.random().toString(36).slice(2, 11)}`, H = {
|
|
@@ -11464,7 +11483,7 @@ function wf({
|
|
|
11464
11483
|
return /* @__PURE__ */ n.jsxs(
|
|
11465
11484
|
"div",
|
|
11466
11485
|
{
|
|
11467
|
-
className:
|
|
11486
|
+
className: x(
|
|
11468
11487
|
f("lg", "gap"),
|
|
11469
11488
|
"flex",
|
|
11470
11489
|
"flex-col",
|
|
@@ -11475,7 +11494,7 @@ function wf({
|
|
|
11475
11494
|
u && /* @__PURE__ */ n.jsx(
|
|
11476
11495
|
"label",
|
|
11477
11496
|
{
|
|
11478
|
-
className:
|
|
11497
|
+
className: x(
|
|
11479
11498
|
"block",
|
|
11480
11499
|
Re("sm"),
|
|
11481
11500
|
er("medium"),
|
|
@@ -11488,7 +11507,7 @@ function wf({
|
|
|
11488
11507
|
p && /* @__PURE__ */ n.jsx(
|
|
11489
11508
|
"p",
|
|
11490
11509
|
{
|
|
11491
|
-
className:
|
|
11510
|
+
className: x(
|
|
11492
11511
|
Re("sm"),
|
|
11493
11512
|
"text-fg-secondary"
|
|
11494
11513
|
),
|
|
@@ -11503,7 +11522,7 @@ function wf({
|
|
|
11503
11522
|
onDragOver: j,
|
|
11504
11523
|
onDragLeave: S,
|
|
11505
11524
|
onClick: _,
|
|
11506
|
-
className:
|
|
11525
|
+
className: x(
|
|
11507
11526
|
"relative",
|
|
11508
11527
|
"border-2",
|
|
11509
11528
|
"border-dashed",
|
|
@@ -11514,7 +11533,7 @@ function wf({
|
|
|
11514
11533
|
"cursor-pointer",
|
|
11515
11534
|
Me("base"),
|
|
11516
11535
|
"focus:border-line-focus",
|
|
11517
|
-
d ? "opacity-50 cursor-not-allowed" :
|
|
11536
|
+
d ? "opacity-50 cursor-not-allowed" : x(
|
|
11518
11537
|
"hover:border-line-strong",
|
|
11519
11538
|
"focus:outline-none",
|
|
11520
11539
|
"focus:ring-2",
|
|
@@ -11541,7 +11560,7 @@ function wf({
|
|
|
11541
11560
|
/* @__PURE__ */ n.jsxs(
|
|
11542
11561
|
"div",
|
|
11543
11562
|
{
|
|
11544
|
-
className:
|
|
11563
|
+
className: x(
|
|
11545
11564
|
"flex",
|
|
11546
11565
|
"flex-col",
|
|
11547
11566
|
"items-center",
|
|
@@ -11551,7 +11570,7 @@ function wf({
|
|
|
11551
11570
|
/* @__PURE__ */ n.jsx(
|
|
11552
11571
|
wl,
|
|
11553
11572
|
{
|
|
11554
|
-
className:
|
|
11573
|
+
className: x(
|
|
11555
11574
|
"h-8",
|
|
11556
11575
|
"w-8",
|
|
11557
11576
|
h ? "text-fg-brand" : "text-fg-secondary"
|
|
@@ -11562,7 +11581,7 @@ function wf({
|
|
|
11562
11581
|
/* @__PURE__ */ n.jsx(
|
|
11563
11582
|
"span",
|
|
11564
11583
|
{
|
|
11565
|
-
className:
|
|
11584
|
+
className: x(
|
|
11566
11585
|
Re("sm"),
|
|
11567
11586
|
er("medium"),
|
|
11568
11587
|
"text-fg-primary"
|
|
@@ -11573,7 +11592,7 @@ function wf({
|
|
|
11573
11592
|
e && /* @__PURE__ */ n.jsxs(
|
|
11574
11593
|
"p",
|
|
11575
11594
|
{
|
|
11576
|
-
className:
|
|
11595
|
+
className: x(
|
|
11577
11596
|
Re("xs"),
|
|
11578
11597
|
"text-fg-secondary",
|
|
11579
11598
|
f("xs", "mt")
|
|
@@ -11587,13 +11606,13 @@ function wf({
|
|
|
11587
11606
|
r && /* @__PURE__ */ n.jsxs(
|
|
11588
11607
|
"p",
|
|
11589
11608
|
{
|
|
11590
|
-
className:
|
|
11609
|
+
className: x(
|
|
11591
11610
|
Re("xs"),
|
|
11592
11611
|
"text-fg-secondary"
|
|
11593
11612
|
),
|
|
11594
11613
|
children: [
|
|
11595
11614
|
"Max size: ",
|
|
11596
|
-
|
|
11615
|
+
g(r)
|
|
11597
11616
|
]
|
|
11598
11617
|
}
|
|
11599
11618
|
)
|
|
@@ -11604,10 +11623,10 @@ function wf({
|
|
|
11604
11623
|
]
|
|
11605
11624
|
}
|
|
11606
11625
|
),
|
|
11607
|
-
m.length > 0 && /* @__PURE__ */ n.jsx("div", { className:
|
|
11626
|
+
m.length > 0 && /* @__PURE__ */ n.jsx("div", { className: x("flex", "flex-col", f("sm", "gap")), children: m.map((M) => /* @__PURE__ */ n.jsxs(
|
|
11608
11627
|
"div",
|
|
11609
11628
|
{
|
|
11610
|
-
className:
|
|
11629
|
+
className: x(
|
|
11611
11630
|
"flex",
|
|
11612
11631
|
"items-center",
|
|
11613
11632
|
f("md", "gap"),
|
|
@@ -11623,19 +11642,19 @@ function wf({
|
|
|
11623
11642
|
{
|
|
11624
11643
|
src: M.preview,
|
|
11625
11644
|
alt: M.file.name,
|
|
11626
|
-
className:
|
|
11645
|
+
className: x(
|
|
11627
11646
|
"w-12",
|
|
11628
11647
|
"h-12",
|
|
11629
11648
|
"object-cover",
|
|
11630
11649
|
G("md")
|
|
11631
11650
|
)
|
|
11632
11651
|
}
|
|
11633
|
-
) : /* @__PURE__ */ n.jsx(rl, { className:
|
|
11634
|
-
/* @__PURE__ */ n.jsxs("div", { className:
|
|
11652
|
+
) : /* @__PURE__ */ n.jsx(rl, { className: x("h-8", "w-8", "text-fg-secondary") }),
|
|
11653
|
+
/* @__PURE__ */ n.jsxs("div", { className: x("flex-1", "min-w-0"), children: [
|
|
11635
11654
|
/* @__PURE__ */ n.jsx(
|
|
11636
11655
|
"p",
|
|
11637
11656
|
{
|
|
11638
|
-
className:
|
|
11657
|
+
className: x(
|
|
11639
11658
|
Re("sm"),
|
|
11640
11659
|
er("medium"),
|
|
11641
11660
|
"text-fg-primary",
|
|
@@ -11647,17 +11666,17 @@ function wf({
|
|
|
11647
11666
|
/* @__PURE__ */ n.jsx(
|
|
11648
11667
|
"p",
|
|
11649
11668
|
{
|
|
11650
|
-
className:
|
|
11669
|
+
className: x(
|
|
11651
11670
|
Re("xs"),
|
|
11652
11671
|
"text-fg-secondary"
|
|
11653
11672
|
),
|
|
11654
|
-
children:
|
|
11673
|
+
children: g(M.file.size)
|
|
11655
11674
|
}
|
|
11656
11675
|
),
|
|
11657
11676
|
M.error && /* @__PURE__ */ n.jsxs(
|
|
11658
11677
|
"div",
|
|
11659
11678
|
{
|
|
11660
|
-
className:
|
|
11679
|
+
className: x(
|
|
11661
11680
|
"flex",
|
|
11662
11681
|
"items-center",
|
|
11663
11682
|
f("xs", "gap"),
|
|
@@ -11667,13 +11686,13 @@ function wf({
|
|
|
11667
11686
|
/* @__PURE__ */ n.jsx(
|
|
11668
11687
|
Ar,
|
|
11669
11688
|
{
|
|
11670
|
-
className:
|
|
11689
|
+
className: x("h-3", "w-3", "text-fg-error")
|
|
11671
11690
|
}
|
|
11672
11691
|
),
|
|
11673
11692
|
/* @__PURE__ */ n.jsx(
|
|
11674
11693
|
"span",
|
|
11675
11694
|
{
|
|
11676
|
-
className:
|
|
11695
|
+
className: x(
|
|
11677
11696
|
Re("xs"),
|
|
11678
11697
|
"text-fg-error"
|
|
11679
11698
|
),
|
|
@@ -11683,9 +11702,9 @@ function wf({
|
|
|
11683
11702
|
]
|
|
11684
11703
|
}
|
|
11685
11704
|
),
|
|
11686
|
-
l && M.progress !== void 0 && /* @__PURE__ */ n.jsx("div", { className:
|
|
11705
|
+
l && M.progress !== void 0 && /* @__PURE__ */ n.jsx("div", { className: x(f("sm", "mt")), children: /* @__PURE__ */ n.jsx(ea, { value: M.progress, size: "sm" }) })
|
|
11687
11706
|
] }),
|
|
11688
|
-
!M.error && !l && /* @__PURE__ */ n.jsx(Nr, { className:
|
|
11707
|
+
!M.error && !l && /* @__PURE__ */ n.jsx(Nr, { className: x("h-5", "w-5", "text-fg-success") }),
|
|
11689
11708
|
/* @__PURE__ */ n.jsx(
|
|
11690
11709
|
ie,
|
|
11691
11710
|
{
|
|
@@ -11722,7 +11741,7 @@ function xa({
|
|
|
11722
11741
|
triggerClassName: p = "",
|
|
11723
11742
|
contentClassName: m = ""
|
|
11724
11743
|
}) {
|
|
11725
|
-
const [b, h] = V(s), w = ee(null), y = ee(null), [
|
|
11744
|
+
const [b, h] = V(s), w = ee(null), y = ee(null), [g, v] = V({ top: 0, left: 0 }), k = ve(), $ = r !== void 0, C = $ ? r : b;
|
|
11726
11745
|
ir(C);
|
|
11727
11746
|
const j = Q(() => {
|
|
11728
11747
|
if (!w.current || !y.current) return;
|
|
@@ -11793,8 +11812,8 @@ function xa({
|
|
|
11793
11812
|
${m}
|
|
11794
11813
|
`,
|
|
11795
11814
|
style: {
|
|
11796
|
-
top: `${
|
|
11797
|
-
left: `${
|
|
11815
|
+
top: `${g.top}px`,
|
|
11816
|
+
left: `${g.left}px`
|
|
11798
11817
|
},
|
|
11799
11818
|
role: "dialog",
|
|
11800
11819
|
"aria-modal": "false",
|
|
@@ -11872,7 +11891,7 @@ function jf({
|
|
|
11872
11891
|
helperText: l,
|
|
11873
11892
|
className: d = ""
|
|
11874
11893
|
}) {
|
|
11875
|
-
const [c, u] = V(t || ""), [p, m] = V(12), [b, h] = V(0), [w, y] = V("AM"), [
|
|
11894
|
+
const [c, u] = V(t || ""), [p, m] = V(12), [b, h] = V(0), [w, y] = V("AM"), [g, v] = V(!1), k = e !== void 0, $ = k ? e : c, C = Q(
|
|
11876
11895
|
(O) => {
|
|
11877
11896
|
if (!O) return { hours: 12, minutes: 0, amPm: "AM" };
|
|
11878
11897
|
if (r === "24h") {
|
|
@@ -12083,7 +12102,7 @@ function jf({
|
|
|
12083
12102
|
return /* @__PURE__ */ n.jsx("div", { className: d, children: /* @__PURE__ */ n.jsx(
|
|
12084
12103
|
xa,
|
|
12085
12104
|
{
|
|
12086
|
-
open: a ? !1 :
|
|
12105
|
+
open: a ? !1 : g,
|
|
12087
12106
|
onOpenChange: (O) => {
|
|
12088
12107
|
a || v(O);
|
|
12089
12108
|
},
|
|
@@ -12100,7 +12119,7 @@ function jf({
|
|
|
12100
12119
|
className: "cursor-pointer",
|
|
12101
12120
|
role: "combobox",
|
|
12102
12121
|
"aria-haspopup": "dialog",
|
|
12103
|
-
"aria-expanded": !a &&
|
|
12122
|
+
"aria-expanded": !a && g,
|
|
12104
12123
|
onKeyDown: R
|
|
12105
12124
|
}
|
|
12106
12125
|
),
|
|
@@ -12139,7 +12158,7 @@ function kf({
|
|
|
12139
12158
|
m(j);
|
|
12140
12159
|
}
|
|
12141
12160
|
}, [h]);
|
|
12142
|
-
const
|
|
12161
|
+
const g = (j) => {
|
|
12143
12162
|
const S = j.target.value;
|
|
12144
12163
|
(/^#[0-9A-F]{6}$/i.test(S) || S === "") && (b || u(S), s == null || s(S), S && m(w(S)));
|
|
12145
12164
|
}, v = (j, S) => {
|
|
@@ -12259,7 +12278,7 @@ function kf({
|
|
|
12259
12278
|
{
|
|
12260
12279
|
label: "Hex",
|
|
12261
12280
|
value: h,
|
|
12262
|
-
onChange:
|
|
12281
|
+
onChange: g,
|
|
12263
12282
|
disabled: i,
|
|
12264
12283
|
placeholder: "#000000",
|
|
12265
12284
|
className: "font-mono"
|
|
@@ -12323,7 +12342,7 @@ function kf({
|
|
|
12323
12342
|
We,
|
|
12324
12343
|
{
|
|
12325
12344
|
value: h,
|
|
12326
|
-
onChange:
|
|
12345
|
+
onChange: g,
|
|
12327
12346
|
disabled: i,
|
|
12328
12347
|
placeholder: "#000000",
|
|
12329
12348
|
className: "w-24 font-mono"
|
|
@@ -12439,7 +12458,7 @@ function ya({
|
|
|
12439
12458
|
right: "right-0 top-0 bottom-0",
|
|
12440
12459
|
top: "top-0 left-0 right-0",
|
|
12441
12460
|
bottom: "bottom-0 left-0 right-0"
|
|
12442
|
-
},
|
|
12461
|
+
}, g = /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
12443
12462
|
/* @__PURE__ */ n.jsx(
|
|
12444
12463
|
"div",
|
|
12445
12464
|
{
|
|
@@ -12518,7 +12537,7 @@ function ya({
|
|
|
12518
12537
|
}
|
|
12519
12538
|
)
|
|
12520
12539
|
] });
|
|
12521
|
-
return typeof window != "undefined" ? ot(
|
|
12540
|
+
return typeof window != "undefined" ? ot(g, document.body) : null;
|
|
12522
12541
|
}
|
|
12523
12542
|
function od(s) {
|
|
12524
12543
|
var a = s, {
|
|
@@ -12627,7 +12646,7 @@ const ja = be(
|
|
|
12627
12646
|
s == null || s(w), c(!d);
|
|
12628
12647
|
}, p = rr.count(t) === 1 && Mt(t);
|
|
12629
12648
|
if (r === !0 || r === void 0 && p) {
|
|
12630
|
-
const w = rr.only(t), y = w.props.onClick,
|
|
12649
|
+
const w = rr.only(t), y = w.props.onClick, g = (v) => {
|
|
12631
12650
|
y == null || y(v), v.defaultPrevented || u(v);
|
|
12632
12651
|
};
|
|
12633
12652
|
return ar(w, L(A({}, a), {
|
|
@@ -12635,7 +12654,7 @@ const ja = be(
|
|
|
12635
12654
|
tabIndex: (h = w.props.tabIndex) != null ? h : 0,
|
|
12636
12655
|
"aria-haspopup": "menu",
|
|
12637
12656
|
"aria-expanded": d,
|
|
12638
|
-
onClick:
|
|
12657
|
+
onClick: g,
|
|
12639
12658
|
ref: cd(o, w.props.ref)
|
|
12640
12659
|
}));
|
|
12641
12660
|
}
|
|
@@ -12671,9 +12690,9 @@ function dd({
|
|
|
12671
12690
|
}, [s]), Y(() => {
|
|
12672
12691
|
if (s && i.current && l.current) {
|
|
12673
12692
|
const p = () => {
|
|
12674
|
-
const h = l.current.getBoundingClientRect(), w = i.current.getBoundingClientRect(), y = window.scrollY,
|
|
12693
|
+
const h = l.current.getBoundingClientRect(), w = i.current.getBoundingClientRect(), y = window.scrollY, g = window.scrollX;
|
|
12675
12694
|
let v = 0, k = 0;
|
|
12676
|
-
o === "bottom" ? (v = h.bottom + y + 4, r === "start" ? k = h.left +
|
|
12695
|
+
o === "bottom" ? (v = h.bottom + y + 4, r === "start" ? k = h.left + g : r === "end" ? k = h.right + g - w.width : k = h.left + g + (h.width - w.width) / 2) : o === "top" ? (v = h.top + y - w.height - 4, r === "start" ? k = h.left + g : r === "end" ? k = h.right + g - w.width : k = h.left + g + (h.width - w.width) / 2) : o === "right" ? (k = h.right + g + 4, r === "start" ? v = h.top + y : r === "end" ? v = h.bottom + y - w.height : v = h.top + y + (h.height - w.height) / 2) : o === "left" && (k = h.left + g - w.width - 4, r === "start" ? v = h.top + y : r === "end" ? v = h.bottom + y - w.height : v = h.top + y + (h.height - w.height) / 2);
|
|
12677
12696
|
const $ = 8;
|
|
12678
12697
|
v = Math.max(
|
|
12679
12698
|
$,
|
|
@@ -12685,7 +12704,7 @@ function dd({
|
|
|
12685
12704
|
$,
|
|
12686
12705
|
Math.min(
|
|
12687
12706
|
k,
|
|
12688
|
-
window.innerWidth +
|
|
12707
|
+
window.innerWidth + g - w.width - $
|
|
12689
12708
|
)
|
|
12690
12709
|
), c({ top: v, left: k });
|
|
12691
12710
|
};
|
|
@@ -12863,7 +12882,7 @@ function Nf({
|
|
|
12863
12882
|
return /* @__PURE__ */ n.jsxs(
|
|
12864
12883
|
"div",
|
|
12865
12884
|
{
|
|
12866
|
-
className:
|
|
12885
|
+
className: x(
|
|
12867
12886
|
"border border-line-default",
|
|
12868
12887
|
G("md"),
|
|
12869
12888
|
"overflow-hidden",
|
|
@@ -12876,7 +12895,7 @@ function Nf({
|
|
|
12876
12895
|
type: "button",
|
|
12877
12896
|
onClick: () => d(c.id),
|
|
12878
12897
|
disabled: p,
|
|
12879
|
-
className:
|
|
12898
|
+
className: x(
|
|
12880
12899
|
"w-full flex items-center justify-between",
|
|
12881
12900
|
f("base", "px"),
|
|
12882
12901
|
f("md", "py"),
|
|
@@ -12911,7 +12930,7 @@ function Nf({
|
|
|
12911
12930
|
"div",
|
|
12912
12931
|
{
|
|
12913
12932
|
id: `accordion-content-${c.id}`,
|
|
12914
|
-
className:
|
|
12933
|
+
className: x(
|
|
12915
12934
|
"grid",
|
|
12916
12935
|
Me("base"),
|
|
12917
12936
|
u ? "grid-rows-[1fr] opacity-100" : "grid-rows-[0fr] opacity-0"
|
|
@@ -12920,7 +12939,7 @@ function Nf({
|
|
|
12920
12939
|
children: /* @__PURE__ */ n.jsx("div", { className: "min-h-0 overflow-hidden", children: /* @__PURE__ */ n.jsx(
|
|
12921
12940
|
"div",
|
|
12922
12941
|
{
|
|
12923
|
-
className:
|
|
12942
|
+
className: x(
|
|
12924
12943
|
f("base", "px"),
|
|
12925
12944
|
f("md", "py"),
|
|
12926
12945
|
"text-fg-secondary",
|
|
@@ -12993,7 +13012,7 @@ function fd(a) {
|
|
|
12993
13012
|
L(A({
|
|
12994
13013
|
href: r || "/",
|
|
12995
13014
|
variant: "default",
|
|
12996
|
-
className:
|
|
13015
|
+
className: x("flex items-center font-semibold text-lg", t)
|
|
12997
13016
|
}, s), {
|
|
12998
13017
|
children: e
|
|
12999
13018
|
})
|
|
@@ -13006,7 +13025,7 @@ function md({
|
|
|
13006
13025
|
return /* @__PURE__ */ n.jsx(
|
|
13007
13026
|
"nav",
|
|
13008
13027
|
{
|
|
13009
|
-
className:
|
|
13028
|
+
className: x(
|
|
13010
13029
|
"flex-1 flex items-center justify-center",
|
|
13011
13030
|
f("base", "gap"),
|
|
13012
13031
|
"hidden md:flex",
|
|
@@ -13022,7 +13041,7 @@ function pd({ children: e, className: t }) {
|
|
|
13022
13041
|
return /* @__PURE__ */ n.jsx(
|
|
13023
13042
|
"div",
|
|
13024
13043
|
{
|
|
13025
|
-
className:
|
|
13044
|
+
className: x(
|
|
13026
13045
|
"flex-shrink-0 flex items-center",
|
|
13027
13046
|
f("sm", "gap"),
|
|
13028
13047
|
t
|
|
@@ -13045,7 +13064,7 @@ function bd({
|
|
|
13045
13064
|
variant: s,
|
|
13046
13065
|
size: a,
|
|
13047
13066
|
onClick: i,
|
|
13048
|
-
className:
|
|
13067
|
+
className: x("md:hidden", e),
|
|
13049
13068
|
"aria-label": o ? "Close menu" : "Open menu",
|
|
13050
13069
|
"aria-expanded": o,
|
|
13051
13070
|
children: o ? d : l
|
|
@@ -13068,7 +13087,7 @@ function hd({
|
|
|
13068
13087
|
size: "sm",
|
|
13069
13088
|
closeOnOverlayClick: !0,
|
|
13070
13089
|
closeOnEscape: !0,
|
|
13071
|
-
children: /* @__PURE__ */ n.jsx(ya, { className:
|
|
13090
|
+
children: /* @__PURE__ */ n.jsx(ya, { className: x(f("base", "p"), t), children: /* @__PURE__ */ n.jsx(
|
|
13072
13091
|
"nav",
|
|
13073
13092
|
{
|
|
13074
13093
|
className: `flex flex-col ${f("sm", "gap")}`,
|
|
@@ -13107,7 +13126,7 @@ const xd = {
|
|
|
13107
13126
|
"div",
|
|
13108
13127
|
L(A({
|
|
13109
13128
|
ref: l,
|
|
13110
|
-
className:
|
|
13129
|
+
className: x(
|
|
13111
13130
|
"w-full",
|
|
13112
13131
|
xd[t],
|
|
13113
13132
|
f(r, "px"),
|
|
@@ -13156,7 +13175,7 @@ const Wt = xe.forwardRef(
|
|
|
13156
13175
|
"div",
|
|
13157
13176
|
L(A({
|
|
13158
13177
|
ref: l,
|
|
13159
|
-
className:
|
|
13178
|
+
className: x(
|
|
13160
13179
|
"flex",
|
|
13161
13180
|
a === "column" ? "flex-col" : "flex-row",
|
|
13162
13181
|
u,
|
|
@@ -13173,13 +13192,13 @@ const Wt = xe.forwardRef(
|
|
|
13173
13192
|
Wt.displayName = "Stack";
|
|
13174
13193
|
const gd = Ne(
|
|
13175
13194
|
// Base classes
|
|
13176
|
-
|
|
13195
|
+
x("w-full", "bg-surface-base", "transition-shadow", "transition-colors"),
|
|
13177
13196
|
{
|
|
13178
13197
|
variants: {
|
|
13179
13198
|
variant: {
|
|
13180
13199
|
default: "",
|
|
13181
13200
|
elevated: ke("sm"),
|
|
13182
|
-
bordered:
|
|
13201
|
+
bordered: x("border-b", "border-line-muted")
|
|
13183
13202
|
}
|
|
13184
13203
|
},
|
|
13185
13204
|
defaultVariants: {
|
|
@@ -13210,10 +13229,10 @@ function lr(l) {
|
|
|
13210
13229
|
children: e
|
|
13211
13230
|
}
|
|
13212
13231
|
);
|
|
13213
|
-
return a ? /* @__PURE__ */ n.jsx(vn, { children: /* @__PURE__ */ n.jsx("div", L(A({ className:
|
|
13232
|
+
return a ? /* @__PURE__ */ n.jsx(vn, { children: /* @__PURE__ */ n.jsx("div", L(A({ className: x(o) }, i), { children: c })) }) : /* @__PURE__ */ n.jsx(vn, { children: /* @__PURE__ */ n.jsx(
|
|
13214
13233
|
"header",
|
|
13215
13234
|
L(A({
|
|
13216
|
-
className:
|
|
13235
|
+
className: x(
|
|
13217
13236
|
gd({ variant: t }),
|
|
13218
13237
|
r && `sticky top-0 ${Ae("sticky")}`,
|
|
13219
13238
|
r && "backdrop-blur-sm bg-surface-base/95",
|
|
@@ -13231,7 +13250,7 @@ lr.Hamburger = bd;
|
|
|
13231
13250
|
lr.MobileMenu = hd;
|
|
13232
13251
|
const yn = Ne(
|
|
13233
13252
|
// Base classes
|
|
13234
|
-
|
|
13253
|
+
x("flex", "items-center", f("sm", "gap")),
|
|
13235
13254
|
{
|
|
13236
13255
|
variants: {
|
|
13237
13256
|
orientation: {
|
|
@@ -13302,7 +13321,7 @@ function vd(d) {
|
|
|
13302
13321
|
active: b.active,
|
|
13303
13322
|
disabled: b.disabled,
|
|
13304
13323
|
variant: w,
|
|
13305
|
-
className:
|
|
13324
|
+
className: x(
|
|
13306
13325
|
"flex items-center",
|
|
13307
13326
|
f("sm", "gap"),
|
|
13308
13327
|
t === "vertical" && "w-full justify-start",
|
|
@@ -13320,14 +13339,14 @@ function vd(d) {
|
|
|
13320
13339
|
return o ? /* @__PURE__ */ n.jsx(
|
|
13321
13340
|
"div",
|
|
13322
13341
|
L(A({
|
|
13323
|
-
className:
|
|
13342
|
+
className: x(yn({ orientation: t, variant: r }), s)
|
|
13324
13343
|
}, l), {
|
|
13325
13344
|
children: m
|
|
13326
13345
|
})
|
|
13327
13346
|
) : /* @__PURE__ */ n.jsx(
|
|
13328
13347
|
"nav",
|
|
13329
13348
|
L(A({
|
|
13330
|
-
className:
|
|
13349
|
+
className: x(yn({ orientation: t, variant: r }), s),
|
|
13331
13350
|
"aria-label": a
|
|
13332
13351
|
}, l), {
|
|
13333
13352
|
children: m
|
|
@@ -13339,12 +13358,12 @@ function $f(e) {
|
|
|
13339
13358
|
}
|
|
13340
13359
|
const yd = Ne(
|
|
13341
13360
|
// Base classes
|
|
13342
|
-
|
|
13361
|
+
x("w-full", "flex", "flex-col", f("sm", "gap")),
|
|
13343
13362
|
{
|
|
13344
13363
|
variants: {
|
|
13345
13364
|
variant: {
|
|
13346
|
-
default:
|
|
13347
|
-
compact:
|
|
13365
|
+
default: x(f("base", "mb")),
|
|
13366
|
+
compact: x(f("sm", "mb"))
|
|
13348
13367
|
}
|
|
13349
13368
|
},
|
|
13350
13369
|
defaultVariants: {
|
|
@@ -13368,7 +13387,7 @@ function Sf(l) {
|
|
|
13368
13387
|
"variant",
|
|
13369
13388
|
"className"
|
|
13370
13389
|
]);
|
|
13371
|
-
return /* @__PURE__ */ n.jsxs("div", L(A({ className:
|
|
13390
|
+
return /* @__PURE__ */ n.jsxs("div", L(A({ className: x(yd({ variant: a }), o) }, i), { children: [
|
|
13372
13391
|
r && r.length > 0 && /* @__PURE__ */ n.jsx(Wc, { items: r }),
|
|
13373
13392
|
/* @__PURE__ */ n.jsxs(
|
|
13374
13393
|
"div",
|
|
@@ -13410,7 +13429,7 @@ function Cf(s) {
|
|
|
13410
13429
|
return /* @__PURE__ */ n.jsx(
|
|
13411
13430
|
"div",
|
|
13412
13431
|
{
|
|
13413
|
-
className:
|
|
13432
|
+
className: x(
|
|
13414
13433
|
f("base", "p"),
|
|
13415
13434
|
"bg-surface-muted",
|
|
13416
13435
|
G("md"),
|
|
@@ -13486,7 +13505,7 @@ function Ef(p) {
|
|
|
13486
13505
|
}, [e, t]), Y(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
13487
13506
|
document.body.style.overflow = "";
|
|
13488
13507
|
}), [e]), !e) return null;
|
|
13489
|
-
const
|
|
13508
|
+
const g = [
|
|
13490
13509
|
"fixed",
|
|
13491
13510
|
"inset-0",
|
|
13492
13511
|
Ae("modal"),
|
|
@@ -13508,7 +13527,7 @@ function Ef(p) {
|
|
|
13508
13527
|
].filter(Boolean).join(" "), C = /* @__PURE__ */ n.jsxs(
|
|
13509
13528
|
"div",
|
|
13510
13529
|
{
|
|
13511
|
-
className:
|
|
13530
|
+
className: g.join(" "),
|
|
13512
13531
|
role: "dialog",
|
|
13513
13532
|
"aria-modal": "true",
|
|
13514
13533
|
"aria-labelledby": y,
|
|
@@ -13624,7 +13643,7 @@ function wn({
|
|
|
13624
13643
|
defaultSortColumn: h,
|
|
13625
13644
|
defaultSortDirection: w = "asc",
|
|
13626
13645
|
filters: y,
|
|
13627
|
-
filterValues:
|
|
13646
|
+
filterValues: g,
|
|
13628
13647
|
onFilter: v,
|
|
13629
13648
|
initialFilterValues: k = {},
|
|
13630
13649
|
selectable: $ = !1,
|
|
@@ -13647,7 +13666,7 @@ function wn({
|
|
|
13647
13666
|
}) {
|
|
13648
13667
|
const F = K(() => s || (i !== void 0 && l ? "server" : "client"), [s, i, l]), q = a !== void 0, [de, oe] = V(1), [pe, te] = V(c), ne = q ? a : de, ae = o != null ? o : pe, se = K(() => F === "server" ? i != null ? i : 0 : t.length, [F, i, t.length]), U = K(() => Math.ceil(se / ae), [se, ae]), re = p !== void 0, [J, ue] = V(
|
|
13649
13668
|
h || ""
|
|
13650
|
-
), [Ie, qe] = V(w), we = re ? p : J, Fe = re ? m || "asc" : Ie, zr =
|
|
13669
|
+
), [Ie, qe] = V(w), we = re ? p : J, Fe = re ? m || "asc" : Ie, zr = g !== void 0, [Ya, qa] = V(k), cr = zr ? g : Ya, Or = C !== void 0, [Xa, Ja] = V(
|
|
13651
13670
|
[]
|
|
13652
13671
|
), Xe = Or ? C : Xa, dr = K(() => !y || y.length === 0 ? t : t.filter((fe) => y.every((ye) => {
|
|
13653
13672
|
const Se = cr[ye.key];
|
|
@@ -13854,7 +13873,7 @@ function Sa(d) {
|
|
|
13854
13873
|
if (!e.sortable || !m && !p) return;
|
|
13855
13874
|
const j = u.column === e.key && u.direction === "asc" ? "desc" : "asc";
|
|
13856
13875
|
m ? m(e.key, j) : p(e.key, j);
|
|
13857
|
-
},
|
|
13876
|
+
}, g = (j) => {
|
|
13858
13877
|
$ && (j.key === "Enter" || j.key === " ") && (j.preventDefault(), y());
|
|
13859
13878
|
}, v = (j) => {
|
|
13860
13879
|
if (j.preventDefault(), j.stopPropagation(), !h.current || !s) return;
|
|
@@ -13890,7 +13909,7 @@ function Sa(d) {
|
|
|
13890
13909
|
"aria-sort": k ? C === "asc" ? "ascending" : "descending" : $ ? "none" : void 0,
|
|
13891
13910
|
className: `${f("lg", "px")} ${f("md", "py")} text-left text-xs font-medium text-fg-tertiary uppercase tracking-wider ${$ ? "cursor-pointer hover:bg-surface-active focus:bg-surface-active focus:outline-none focus:ring-2 focus:ring-line-focus focus:ring-offset-2 select-none" : ""} ${e.hiddenOnMobile ? "hidden md:table-cell" : ""} ${i}`,
|
|
13892
13911
|
onClick: $ ? y : void 0,
|
|
13893
|
-
onKeyDown: $ ?
|
|
13912
|
+
onKeyDown: $ ? g : void 0,
|
|
13894
13913
|
tabIndex: $ ? 0 : void 0,
|
|
13895
13914
|
style: r ? { width: `${r}px`, minWidth: `${r}px` } : void 0
|
|
13896
13915
|
}, l), {
|
|
@@ -14078,7 +14097,7 @@ function is(i) {
|
|
|
14078
14097
|
getRowId: m,
|
|
14079
14098
|
actions: b,
|
|
14080
14099
|
onRowClick: h
|
|
14081
|
-
} = lt(), w = m(e, t), y = u.selectedRows.includes(w),
|
|
14100
|
+
} = lt(), w = m(e, t), y = u.selectedRows.includes(w), g = !!h, v = ($) => {
|
|
14082
14101
|
s && s($), h && h(e);
|
|
14083
14102
|
}, k = ($) => {
|
|
14084
14103
|
h && ($.key === "Enter" || $.key === " ") && ($.key === " " && $.preventDefault(), h(e));
|
|
@@ -14089,9 +14108,9 @@ function is(i) {
|
|
|
14089
14108
|
role: "row",
|
|
14090
14109
|
"aria-selected": c ? y : void 0,
|
|
14091
14110
|
"aria-rowindex": t + 1,
|
|
14092
|
-
tabIndex:
|
|
14093
|
-
onKeyDown:
|
|
14094
|
-
className: `hover:bg-surface-hover ${
|
|
14111
|
+
tabIndex: g ? 0 : void 0,
|
|
14112
|
+
onKeyDown: g ? k : void 0,
|
|
14113
|
+
className: `hover:bg-surface-hover ${g ? "cursor-pointer" : ""} ${y ? "bg-surface-selected" : ""} ${r}`,
|
|
14095
14114
|
onClick: v,
|
|
14096
14115
|
style: a
|
|
14097
14116
|
}, o), {
|
|
@@ -14221,16 +14240,16 @@ function Da(s) {
|
|
|
14221
14240
|
containerHeight: p == null ? void 0 : p.containerHeight,
|
|
14222
14241
|
overscan: (p == null ? void 0 : p.overscan) || 5,
|
|
14223
14242
|
enabled: u || !1
|
|
14224
|
-
}), h = K(() => u && b.virtualItems.length > 0 ? b.virtualItems.map((
|
|
14225
|
-
row: o[
|
|
14226
|
-
index:
|
|
14227
|
-
})).filter((
|
|
14243
|
+
}), h = K(() => u && b.virtualItems.length > 0 ? b.virtualItems.map((g) => ({
|
|
14244
|
+
row: o[g.index],
|
|
14245
|
+
index: g.index
|
|
14246
|
+
})).filter((g) => g.row !== void 0) : o.map((g, v) => ({ row: g, index: v })), [u, b.virtualItems, o]);
|
|
14228
14247
|
return i ? /* @__PURE__ */ n.jsx(
|
|
14229
14248
|
"tbody",
|
|
14230
14249
|
L(A({
|
|
14231
14250
|
className: `bg-surface-base divide-y divide-line-default ${t}`
|
|
14232
14251
|
}, r), {
|
|
14233
|
-
children: Array.from({ length: 5 }).map((
|
|
14252
|
+
children: Array.from({ length: 5 }).map((g, v) => /* @__PURE__ */ n.jsx("tr", { children: Array.from({ length: m }).map((k, $) => /* @__PURE__ */ n.jsx(
|
|
14234
14253
|
"td",
|
|
14235
14254
|
{
|
|
14236
14255
|
className: `${f("lg", "px")} ${f("base", "py")}`,
|
|
@@ -14258,7 +14277,7 @@ function Da(s) {
|
|
|
14258
14277
|
L(A({
|
|
14259
14278
|
className: `bg-surface-base divide-y divide-line-default ${t}`
|
|
14260
14279
|
}, r), {
|
|
14261
|
-
children: o.map((
|
|
14280
|
+
children: o.map((g, v) => e(g, v))
|
|
14262
14281
|
})
|
|
14263
14282
|
) : /* @__PURE__ */ n.jsx(
|
|
14264
14283
|
"tbody",
|
|
@@ -14277,7 +14296,7 @@ function Da(s) {
|
|
|
14277
14296
|
children: /* @__PURE__ */ n.jsx("td", { colSpan: m })
|
|
14278
14297
|
}
|
|
14279
14298
|
),
|
|
14280
|
-
h.map(({ row:
|
|
14299
|
+
h.map(({ row: g, index: v }) => /* @__PURE__ */ n.jsx(is, { row: g, rowIndex: v }, v)),
|
|
14281
14300
|
b.virtualItems.length > 0 && /* @__PURE__ */ n.jsx(
|
|
14282
14301
|
"tr",
|
|
14283
14302
|
{
|
|
@@ -14294,7 +14313,7 @@ function Da(s) {
|
|
|
14294
14313
|
] })
|
|
14295
14314
|
) : (
|
|
14296
14315
|
// Normal rendering
|
|
14297
|
-
h.map(({ row:
|
|
14316
|
+
h.map(({ row: g, index: v }) => /* @__PURE__ */ n.jsx(is, { row: g, rowIndex: v }, v))
|
|
14298
14317
|
)
|
|
14299
14318
|
})
|
|
14300
14319
|
);
|
|
@@ -14326,7 +14345,7 @@ function Nd(i) {
|
|
|
14326
14345
|
}, y = (v) => {
|
|
14327
14346
|
const k = L(A({}, d), { [v]: "" });
|
|
14328
14347
|
c(k), t(k);
|
|
14329
|
-
},
|
|
14348
|
+
}, g = Object.values(d).filter(
|
|
14330
14349
|
(v) => v !== "" && v !== null && v !== void 0
|
|
14331
14350
|
).length;
|
|
14332
14351
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -14351,11 +14370,11 @@ function Nd(i) {
|
|
|
14351
14370
|
children: [
|
|
14352
14371
|
/* @__PURE__ */ n.jsx(nl, { className: "h-4 w-4" }),
|
|
14353
14372
|
/* @__PURE__ */ n.jsx("span", { children: "Filters" }),
|
|
14354
|
-
|
|
14373
|
+
g > 0 && /* @__PURE__ */ n.jsx(
|
|
14355
14374
|
"span",
|
|
14356
14375
|
{
|
|
14357
14376
|
className: `inline-flex items-center ${f("sm", "px")} ${f("0.5", "py")} rounded text-xs font-medium bg-surface-brand-muted text-fg-brand-emphasis`,
|
|
14358
|
-
children:
|
|
14377
|
+
children: g
|
|
14359
14378
|
}
|
|
14360
14379
|
)
|
|
14361
14380
|
]
|
|
@@ -14503,7 +14522,7 @@ function $d(u) {
|
|
|
14503
14522
|
e > 1 && s(e - 1);
|
|
14504
14523
|
}, y = () => {
|
|
14505
14524
|
e < m && s(e + 1);
|
|
14506
|
-
},
|
|
14525
|
+
}, g = () => {
|
|
14507
14526
|
e > 1 && s(1);
|
|
14508
14527
|
}, v = () => {
|
|
14509
14528
|
e < m && s(m);
|
|
@@ -14585,7 +14604,7 @@ function $d(u) {
|
|
|
14585
14604
|
{
|
|
14586
14605
|
variant: "ghost",
|
|
14587
14606
|
size: "sm",
|
|
14588
|
-
onClick:
|
|
14607
|
+
onClick: g,
|
|
14589
14608
|
disabled: e === 1,
|
|
14590
14609
|
"aria-label": "First page",
|
|
14591
14610
|
children: [
|
|
@@ -14751,7 +14770,7 @@ function Sd(e) {
|
|
|
14751
14770
|
selectable: h,
|
|
14752
14771
|
selectedRows: w,
|
|
14753
14772
|
onSelectionChange: y,
|
|
14754
|
-
rowId:
|
|
14773
|
+
rowId: g,
|
|
14755
14774
|
actions: v,
|
|
14756
14775
|
onRowClick: k,
|
|
14757
14776
|
paginationMode: $,
|
|
@@ -14791,7 +14810,7 @@ function Sd(e) {
|
|
|
14791
14810
|
selectable: h,
|
|
14792
14811
|
selectedRows: w,
|
|
14793
14812
|
onSelectionChange: y,
|
|
14794
|
-
rowId:
|
|
14813
|
+
rowId: g,
|
|
14795
14814
|
actions: v,
|
|
14796
14815
|
onRowClick: k,
|
|
14797
14816
|
emptyMessage: l,
|
|
@@ -14827,27 +14846,27 @@ function Tf(e = {}) {
|
|
|
14827
14846
|
} = e, [o, i] = V(t), [l, d] = V(!1), [c, u] = V(null), p = ee(
|
|
14828
14847
|
null
|
|
14829
14848
|
), m = Q(
|
|
14830
|
-
(
|
|
14849
|
+
(g, v) => {
|
|
14831
14850
|
const k = Math.max(
|
|
14832
14851
|
r,
|
|
14833
14852
|
s ? Math.min(v, s) : v
|
|
14834
14853
|
);
|
|
14835
14854
|
i(($) => L(A({}, $), {
|
|
14836
|
-
[
|
|
14855
|
+
[g]: k
|
|
14837
14856
|
}));
|
|
14838
14857
|
},
|
|
14839
14858
|
[r, s]
|
|
14840
14859
|
), b = Q(() => {
|
|
14841
14860
|
i(t);
|
|
14842
14861
|
}, [t]), h = Q(
|
|
14843
|
-
(
|
|
14844
|
-
a && (d(!0), u(
|
|
14862
|
+
(g, v, k) => {
|
|
14863
|
+
a && (d(!0), u(g), p.current = { startX: v, startWidth: k });
|
|
14845
14864
|
},
|
|
14846
14865
|
[a]
|
|
14847
14866
|
), w = Q(
|
|
14848
|
-
(
|
|
14867
|
+
(g) => {
|
|
14849
14868
|
if (!l || !c || !p.current) return;
|
|
14850
|
-
const v =
|
|
14869
|
+
const v = g - p.current.startX, k = p.current.startWidth + v;
|
|
14851
14870
|
m(c, k);
|
|
14852
14871
|
},
|
|
14853
14872
|
[l, c, m]
|
|
@@ -14856,9 +14875,9 @@ function Tf(e = {}) {
|
|
|
14856
14875
|
}, []);
|
|
14857
14876
|
return Y(() => {
|
|
14858
14877
|
if (!l || typeof window == "undefined") return;
|
|
14859
|
-
const
|
|
14860
|
-
return document.addEventListener("mousemove",
|
|
14861
|
-
document.removeEventListener("mousemove",
|
|
14878
|
+
const g = (k) => w(k.clientX), v = () => y();
|
|
14879
|
+
return document.addEventListener("mousemove", g), document.addEventListener("mouseup", v), () => {
|
|
14880
|
+
document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", v);
|
|
14862
14881
|
};
|
|
14863
14882
|
}, [l, w, y]), {
|
|
14864
14883
|
columnWidths: o,
|
|
@@ -15106,7 +15125,7 @@ function Ad({
|
|
|
15106
15125
|
[i, u, h]
|
|
15107
15126
|
), y = Q(() => {
|
|
15108
15127
|
i && (p(!1), m.current = 0, b.current = d);
|
|
15109
|
-
}, [i, d]),
|
|
15128
|
+
}, [i, d]), g = Q(
|
|
15110
15129
|
(v) => {
|
|
15111
15130
|
i && (v.preventDefault(), v.stopPropagation(), p(!0), m.current = v.clientX, b.current = d);
|
|
15112
15131
|
},
|
|
@@ -15122,7 +15141,7 @@ function Ad({
|
|
|
15122
15141
|
}, [e, t, r, u]), {
|
|
15123
15142
|
width: d,
|
|
15124
15143
|
isResizing: u,
|
|
15125
|
-
startResize:
|
|
15144
|
+
startResize: g,
|
|
15126
15145
|
setWidth: h
|
|
15127
15146
|
};
|
|
15128
15147
|
}
|
|
@@ -15208,8 +15227,8 @@ function Dd({
|
|
|
15208
15227
|
const u = c.target;
|
|
15209
15228
|
if ((u.tagName === "INPUT" || u.tagName === "TEXTAREA" || u.isContentEditable) && !t && !a)
|
|
15210
15229
|
return;
|
|
15211
|
-
const m = e.length === 1 ? c.key.toLowerCase() === e.toLowerCase() : c.key === e, b = t ? c.ctrlKey || c.metaKey : !c.ctrlKey && !c.metaKey, h = r ? c.shiftKey : !c.shiftKey, w = s ? c.altKey : !c.altKey, y = a ? c.metaKey : !c.metaKey,
|
|
15212
|
-
m &&
|
|
15230
|
+
const m = e.length === 1 ? c.key.toLowerCase() === e.toLowerCase() : c.key === e, b = t ? c.ctrlKey || c.metaKey : !c.ctrlKey && !c.metaKey, h = r ? c.shiftKey : !c.shiftKey, w = s ? c.altKey : !c.altKey, y = a ? c.metaKey : !c.metaKey, g = t ? (c.ctrlKey || c.metaKey) && !a : b && y;
|
|
15231
|
+
m && g && h && w && (l && (c.preventDefault(), c.stopPropagation()), o());
|
|
15213
15232
|
},
|
|
15214
15233
|
[i, e, t, r, s, a, o, l]
|
|
15215
15234
|
);
|
|
@@ -15248,7 +15267,7 @@ function Fa({
|
|
|
15248
15267
|
return ls(l.contentWidth);
|
|
15249
15268
|
}, [b, h] = V(
|
|
15250
15269
|
p
|
|
15251
|
-
), [w, y] = V({}), { isMobile:
|
|
15270
|
+
), [w, y] = V({}), { isMobile: g } = Id({
|
|
15252
15271
|
mobileBreakpoint: d.mobileBreakpoint,
|
|
15253
15272
|
onMobileChange: (R) => {
|
|
15254
15273
|
o == null || o(R), R && d.mobileVariant === "collapse" && !u && (h(!0), s == null || s(!0));
|
|
@@ -15267,10 +15286,10 @@ function Fa({
|
|
|
15267
15286
|
onWidthChange: (R) => {
|
|
15268
15287
|
a == null || a(R), d.storageKey && d.persistWidth && typeof window != "undefined" && localStorage.setItem(`${d.storageKey}-width`, String(R));
|
|
15269
15288
|
},
|
|
15270
|
-
enabled: d.resizable && !
|
|
15289
|
+
enabled: d.resizable && !g
|
|
15271
15290
|
});
|
|
15272
15291
|
Td({
|
|
15273
|
-
isActive:
|
|
15292
|
+
isActive: g && d.mobileVariant === "overlay" && !b,
|
|
15274
15293
|
containerRef: c,
|
|
15275
15294
|
restoreFocus: !0
|
|
15276
15295
|
});
|
|
@@ -15333,7 +15352,7 @@ function Fa({
|
|
|
15333
15352
|
setCollapsed: S,
|
|
15334
15353
|
currentWidth: v,
|
|
15335
15354
|
setWidth: _,
|
|
15336
|
-
isMobile:
|
|
15355
|
+
isMobile: g,
|
|
15337
15356
|
isResizing: k,
|
|
15338
15357
|
startResize: $,
|
|
15339
15358
|
groupStates: w,
|
|
@@ -15347,7 +15366,7 @@ function Fa({
|
|
|
15347
15366
|
S,
|
|
15348
15367
|
v,
|
|
15349
15368
|
_,
|
|
15350
|
-
|
|
15369
|
+
g,
|
|
15351
15370
|
k,
|
|
15352
15371
|
$,
|
|
15353
15372
|
w,
|
|
@@ -15377,7 +15396,7 @@ function za({
|
|
|
15377
15396
|
overlayBackdrop: h,
|
|
15378
15397
|
persistState: w,
|
|
15379
15398
|
persistWidth: y,
|
|
15380
|
-
storageKey:
|
|
15399
|
+
storageKey: g,
|
|
15381
15400
|
keyboardShortcut: v,
|
|
15382
15401
|
enableKeyboardShortcut: k,
|
|
15383
15402
|
// State props
|
|
@@ -15410,7 +15429,7 @@ function za({
|
|
|
15410
15429
|
overlayBackdrop: h,
|
|
15411
15430
|
persistState: w,
|
|
15412
15431
|
persistWidth: y,
|
|
15413
|
-
storageKey:
|
|
15432
|
+
storageKey: g,
|
|
15414
15433
|
keyboardShortcut: v,
|
|
15415
15434
|
enableKeyboardShortcut: k,
|
|
15416
15435
|
children: /* @__PURE__ */ n.jsx(
|
|
@@ -15660,16 +15679,16 @@ function Ha(w) {
|
|
|
15660
15679
|
"aria-label"
|
|
15661
15680
|
]);
|
|
15662
15681
|
var z, O;
|
|
15663
|
-
const { collapsed:
|
|
15682
|
+
const { collapsed: g, toggle: v } = xt(), { animationDuration: k, animationEasing: $ } = ht(), C = Ut(), j = c != null ? c : C.keyboardShortcut, S = u != null ? u : C.enableKeyboardShortcut, N = () => {
|
|
15664
15683
|
if (typeof r == "function")
|
|
15665
|
-
return r(
|
|
15684
|
+
return r(g);
|
|
15666
15685
|
if (r)
|
|
15667
15686
|
return r;
|
|
15668
|
-
if (
|
|
15687
|
+
if (g && s)
|
|
15669
15688
|
return s;
|
|
15670
|
-
if (!
|
|
15689
|
+
if (!g && a)
|
|
15671
15690
|
return a;
|
|
15672
|
-
const H =
|
|
15691
|
+
const H = g ? bl : ml;
|
|
15673
15692
|
return /* @__PURE__ */ n.jsx(
|
|
15674
15693
|
H,
|
|
15675
15694
|
{
|
|
@@ -15681,7 +15700,7 @@ function Ha(w) {
|
|
|
15681
15700
|
}
|
|
15682
15701
|
}
|
|
15683
15702
|
);
|
|
15684
|
-
}, D =
|
|
15703
|
+
}, D = g ? "Expand sidebar" : "Collapse sidebar", _ = d != null ? d : Od[e], M = l ? `${g ? "Expand" : "Collapse"} sidebar${S ? ` (${j})` : ""}` : void 0, T = t ? {
|
|
15685
15704
|
transform: `translate(${(z = t.x) != null ? z : 0}px, ${(O = t.y) != null ? O : 0}px)`
|
|
15686
15705
|
} : {}, I = e === "floating" ? A({
|
|
15687
15706
|
// Toggle sempre na borda direita da sidebar completa (<aside>)
|
|
@@ -15728,7 +15747,7 @@ function Ha(w) {
|
|
|
15728
15747
|
// Ensure left doesn't interfere
|
|
15729
15748
|
} : {}), e !== "floating" ? I : {}), e === "floating" ? { zIndex: nn.fixed.value } : {}), m),
|
|
15730
15749
|
"aria-label": b || D,
|
|
15731
|
-
"aria-expanded": !
|
|
15750
|
+
"aria-expanded": !g,
|
|
15732
15751
|
"aria-controls": "side-navbar-sidebar",
|
|
15733
15752
|
"data-position": e
|
|
15734
15753
|
}, h), {
|
|
@@ -15819,7 +15838,7 @@ function Wd(o) {
|
|
|
15819
15838
|
collapsed: h,
|
|
15820
15839
|
setCollapsed: w,
|
|
15821
15840
|
currentWidth: y,
|
|
15822
|
-
isResizing:
|
|
15841
|
+
isResizing: g,
|
|
15823
15842
|
sidebarRef: v,
|
|
15824
15843
|
isMobile: k
|
|
15825
15844
|
} = l, {
|
|
@@ -15840,7 +15859,7 @@ function Wd(o) {
|
|
|
15840
15859
|
L(A({
|
|
15841
15860
|
ref: v,
|
|
15842
15861
|
id: "side-navbar-sidebar",
|
|
15843
|
-
className:
|
|
15862
|
+
className: x(
|
|
15844
15863
|
F,
|
|
15845
15864
|
"flex",
|
|
15846
15865
|
"h-full",
|
|
@@ -15857,7 +15876,7 @@ function Wd(o) {
|
|
|
15857
15876
|
borderRight: "1px solid var(--color-line-default)",
|
|
15858
15877
|
width: O,
|
|
15859
15878
|
minWidth: O,
|
|
15860
|
-
transitionProperty:
|
|
15879
|
+
transitionProperty: g ? "none" : "width, min-width, transform",
|
|
15861
15880
|
transitionDuration: `${S}ms`,
|
|
15862
15881
|
transitionTimingFunction: N
|
|
15863
15882
|
}, r),
|
|
@@ -15996,8 +16015,8 @@ const Hd = {
|
|
|
15996
16015
|
inline: `flex-row ${f("sm", "gap")} w-full ${f("md", "px")}`,
|
|
15997
16016
|
below: `flex-col ${f("1.5", "gap")}`
|
|
15998
16017
|
};
|
|
15999
|
-
function Gd(
|
|
16000
|
-
var v =
|
|
16018
|
+
function Gd(g) {
|
|
16019
|
+
var v = g, {
|
|
16001
16020
|
id: e,
|
|
16002
16021
|
icon: t,
|
|
16003
16022
|
label: r,
|
|
@@ -16046,7 +16065,7 @@ function Gd(x) {
|
|
|
16046
16065
|
}, _ = j !== "tooltip" && a && r && /* @__PURE__ */ n.jsx(
|
|
16047
16066
|
"span",
|
|
16048
16067
|
{
|
|
16049
|
-
className:
|
|
16068
|
+
className: x(
|
|
16050
16069
|
"text-xs",
|
|
16051
16070
|
"flex-shrink-0",
|
|
16052
16071
|
// Prevenir que label encolha
|
|
@@ -16062,7 +16081,7 @@ function Gd(x) {
|
|
|
16062
16081
|
},
|
|
16063
16082
|
children: r
|
|
16064
16083
|
}
|
|
16065
|
-
), M =
|
|
16084
|
+
), M = x(
|
|
16066
16085
|
"relative",
|
|
16067
16086
|
"flex",
|
|
16068
16087
|
"items-center",
|
|
@@ -16084,7 +16103,7 @@ function Gd(x) {
|
|
|
16084
16103
|
// Remover todas as transições que possam causar movimento
|
|
16085
16104
|
"[&>*]:!transition-none",
|
|
16086
16105
|
"[&>*]:!transform-none",
|
|
16087
|
-
j === "tooltip" ? N.container :
|
|
16106
|
+
j === "tooltip" ? N.container : x(f("sm", "px"), f("1.5", "py")),
|
|
16088
16107
|
j !== "tooltip" && Ud[j],
|
|
16089
16108
|
h ? "opacity-50 cursor-not-allowed" : "cursor-pointer",
|
|
16090
16109
|
w
|
|
@@ -16096,7 +16115,7 @@ function Gd(x) {
|
|
|
16096
16115
|
/* @__PURE__ */ n.jsx(
|
|
16097
16116
|
"span",
|
|
16098
16117
|
{
|
|
16099
|
-
className:
|
|
16118
|
+
className: x(
|
|
16100
16119
|
"flex-shrink-0",
|
|
16101
16120
|
N.icon,
|
|
16102
16121
|
"[&>svg]:transition-none",
|
|
@@ -16127,7 +16146,7 @@ function Gd(x) {
|
|
|
16127
16146
|
l != null && /* @__PURE__ */ n.jsx(
|
|
16128
16147
|
"span",
|
|
16129
16148
|
{
|
|
16130
|
-
className:
|
|
16149
|
+
className: x(
|
|
16131
16150
|
"absolute",
|
|
16132
16151
|
"-top-1",
|
|
16133
16152
|
"-right-1",
|
|
@@ -16155,7 +16174,7 @@ function Gd(x) {
|
|
|
16155
16174
|
target: m,
|
|
16156
16175
|
rel: m === "_blank" ? "noopener noreferrer" : void 0,
|
|
16157
16176
|
onClick: D,
|
|
16158
|
-
className:
|
|
16177
|
+
className: x(M, T[c]),
|
|
16159
16178
|
style: R,
|
|
16160
16179
|
"aria-label": r,
|
|
16161
16180
|
"aria-current": S ? "page" : void 0,
|
|
@@ -16169,7 +16188,7 @@ function Gd(x) {
|
|
|
16169
16188
|
type: "button",
|
|
16170
16189
|
onClick: D,
|
|
16171
16190
|
disabled: h,
|
|
16172
|
-
className:
|
|
16191
|
+
className: x(M, T[c]),
|
|
16173
16192
|
style: R,
|
|
16174
16193
|
"aria-label": r,
|
|
16175
16194
|
"aria-current": S ? "page" : void 0
|
|
@@ -16190,14 +16209,14 @@ function Kd(s) {
|
|
|
16190
16209
|
return e === "vertical" ? /* @__PURE__ */ n.jsx(
|
|
16191
16210
|
"div",
|
|
16192
16211
|
A({
|
|
16193
|
-
className:
|
|
16212
|
+
className: x("w-px", "h-6", "bg-line-default", "mx-auto", t),
|
|
16194
16213
|
role: "separator",
|
|
16195
16214
|
"aria-orientation": "vertical"
|
|
16196
16215
|
}, r)
|
|
16197
16216
|
) : /* @__PURE__ */ n.jsx(
|
|
16198
16217
|
"div",
|
|
16199
16218
|
A({
|
|
16200
|
-
className:
|
|
16219
|
+
className: x(
|
|
16201
16220
|
"w-full",
|
|
16202
16221
|
"h-px",
|
|
16203
16222
|
"bg-line-default",
|
|
@@ -16233,7 +16252,7 @@ function Yd(l) {
|
|
|
16233
16252
|
"children",
|
|
16234
16253
|
"className"
|
|
16235
16254
|
]);
|
|
16236
|
-
const [c, u] = V(s), p = `navbar-group-${ve()}`, m = /* @__PURE__ */ n.jsxs("span", { className:
|
|
16255
|
+
const [c, u] = V(s), p = `navbar-group-${ve()}`, m = /* @__PURE__ */ n.jsxs("span", { className: x("flex items-center", f("1.5", "gap")), children: [
|
|
16237
16256
|
r && /* @__PURE__ */ n.jsx("span", { className: "shrink-0", children: c ? /* @__PURE__ */ n.jsx(
|
|
16238
16257
|
Tt,
|
|
16239
16258
|
{
|
|
@@ -16249,7 +16268,7 @@ function Yd(l) {
|
|
|
16249
16268
|
) }),
|
|
16250
16269
|
/* @__PURE__ */ n.jsx("span", { children: t })
|
|
16251
16270
|
] });
|
|
16252
|
-
return /* @__PURE__ */ n.jsxs("div", L(A({ id: e, className:
|
|
16271
|
+
return /* @__PURE__ */ n.jsxs("div", L(A({ id: e, className: x("flex flex-col", o) }, i), { children: [
|
|
16253
16272
|
t && (r ? (
|
|
16254
16273
|
// Collapsible header is a real button: keyboard operable
|
|
16255
16274
|
// (Enter/Space activate it natively) with disclosure ARIA. The
|
|
@@ -16261,7 +16280,7 @@ function Yd(l) {
|
|
|
16261
16280
|
onClick: () => u(!c),
|
|
16262
16281
|
"aria-expanded": !c,
|
|
16263
16282
|
"aria-controls": c ? void 0 : p,
|
|
16264
|
-
className:
|
|
16283
|
+
className: x(
|
|
16265
16284
|
f("sm", "px"),
|
|
16266
16285
|
f("1.5", "py"),
|
|
16267
16286
|
"text-xs text-fg-tertiary uppercase tracking-wider",
|
|
@@ -16273,7 +16292,7 @@ function Yd(l) {
|
|
|
16273
16292
|
) : /* @__PURE__ */ n.jsx(
|
|
16274
16293
|
"div",
|
|
16275
16294
|
{
|
|
16276
|
-
className:
|
|
16295
|
+
className: x(
|
|
16277
16296
|
f("sm", "px"),
|
|
16278
16297
|
f("1.5", "py"),
|
|
16279
16298
|
"text-xs text-fg-tertiary uppercase tracking-wider"
|
|
@@ -16321,7 +16340,7 @@ function _t(u) {
|
|
|
16321
16340
|
"className",
|
|
16322
16341
|
"style"
|
|
16323
16342
|
]);
|
|
16324
|
-
const m = xt(), b = ht(), h = ee(null), [w, y] = V(null), [
|
|
16343
|
+
const m = xt(), b = ht(), h = ee(null), [w, y] = V(null), [g, v] = V(!1), k = o === "inline" && !m.collapsed, $ = k ? typeof i == "number" ? `${i}px` : i : b.navigationWidth, C = K(
|
|
16325
16344
|
() => ({
|
|
16326
16345
|
// Inherited from root
|
|
16327
16346
|
collapsed: m.collapsed,
|
|
@@ -16330,7 +16349,7 @@ function _t(u) {
|
|
|
16330
16349
|
navbarRef: h,
|
|
16331
16350
|
activeItem: w,
|
|
16332
16351
|
setActiveItem: y,
|
|
16333
|
-
isHovered:
|
|
16352
|
+
isHovered: g,
|
|
16334
16353
|
showInternalToggle: s,
|
|
16335
16354
|
togglePosition: a,
|
|
16336
16355
|
labelMode: o
|
|
@@ -16339,7 +16358,7 @@ function _t(u) {
|
|
|
16339
16358
|
m.collapsed,
|
|
16340
16359
|
m.toggle,
|
|
16341
16360
|
w,
|
|
16342
|
-
|
|
16361
|
+
g,
|
|
16343
16362
|
s,
|
|
16344
16363
|
a,
|
|
16345
16364
|
o
|
|
@@ -16349,7 +16368,7 @@ function _t(u) {
|
|
|
16349
16368
|
"nav",
|
|
16350
16369
|
L(A({
|
|
16351
16370
|
ref: h,
|
|
16352
|
-
className:
|
|
16371
|
+
className: x(
|
|
16353
16372
|
"relative",
|
|
16354
16373
|
"flex-shrink-0",
|
|
16355
16374
|
"flex",
|
|
@@ -16384,7 +16403,7 @@ function _t(u) {
|
|
|
16384
16403
|
/* @__PURE__ */ n.jsx(
|
|
16385
16404
|
"div",
|
|
16386
16405
|
{
|
|
16387
|
-
className:
|
|
16406
|
+
className: x(
|
|
16388
16407
|
"relative",
|
|
16389
16408
|
// Create new stacking context
|
|
16390
16409
|
"flex-1",
|
|
@@ -16598,7 +16617,7 @@ function Qd(c) {
|
|
|
16598
16617
|
collapsed: p,
|
|
16599
16618
|
activeGroup: m,
|
|
16600
16619
|
setActiveGroup: b
|
|
16601
|
-
} = Fr(), { groupStates: h, toggleGroup: w, setGroupCollapsed: y } = xt(), { animationDuration:
|
|
16620
|
+
} = Fr(), { groupStates: h, toggleGroup: w, setGroupCollapsed: y } = xt(), { animationDuration: g } = ht(), v = ee(!1);
|
|
16602
16621
|
if (Y(() => {
|
|
16603
16622
|
!v.current && h[e] === void 0 && (v.current = !0, y(e, o));
|
|
16604
16623
|
}, [e, o, h, y]), p)
|
|
@@ -16654,7 +16673,7 @@ function Qd(c) {
|
|
|
16654
16673
|
transition-transform
|
|
16655
16674
|
${k ? "-rotate-90" : "rotate-0"}
|
|
16656
16675
|
`,
|
|
16657
|
-
style: { transitionDuration: `${
|
|
16676
|
+
style: { transitionDuration: `${g}ms` },
|
|
16658
16677
|
"aria-hidden": "true"
|
|
16659
16678
|
}
|
|
16660
16679
|
)
|
|
@@ -16662,7 +16681,7 @@ function Qd(c) {
|
|
|
16662
16681
|
]
|
|
16663
16682
|
}
|
|
16664
16683
|
),
|
|
16665
|
-
a ? /* @__PURE__ */ n.jsx(Qn, { open: !k, duration:
|
|
16684
|
+
a ? /* @__PURE__ */ n.jsx(Qn, { open: !k, duration: g, children: /* @__PURE__ */ n.jsx(
|
|
16666
16685
|
"div",
|
|
16667
16686
|
{
|
|
16668
16687
|
id: `sidebar-group-${e}`,
|
|
@@ -16692,7 +16711,7 @@ function tu({
|
|
|
16692
16711
|
}
|
|
16693
16712
|
function Lt(a) {
|
|
16694
16713
|
var o = a, { children: e, className: t = "", style: r } = o, s = P(o, ["children", "className", "style"]);
|
|
16695
|
-
const i = xt(), l = ht(), d = ee(null), [c, u] = V(0), [p, m] = V(!1), [b, h] = V(!1), [w, y] = V(null),
|
|
16714
|
+
const i = xt(), l = ht(), d = ee(null), [c, u] = V(0), [p, m] = V(!1), [b, h] = V(!1), [w, y] = V(null), g = Q(() => m(!0), []), v = Q(() => m(!1), []), k = Q(() => h(!0), []), $ = Q(() => h(!1), []), C = K(
|
|
16696
16715
|
() => ({
|
|
16697
16716
|
// Inherited from root
|
|
16698
16717
|
collapsed: i.collapsed,
|
|
@@ -16704,7 +16723,7 @@ function Lt(a) {
|
|
|
16704
16723
|
setScrollPosition: u,
|
|
16705
16724
|
hasHeader: p,
|
|
16706
16725
|
hasFooter: b,
|
|
16707
|
-
registerHeader:
|
|
16726
|
+
registerHeader: g,
|
|
16708
16727
|
unregisterHeader: v,
|
|
16709
16728
|
registerFooter: k,
|
|
16710
16729
|
unregisterFooter: $,
|
|
@@ -16718,7 +16737,7 @@ function Lt(a) {
|
|
|
16718
16737
|
c,
|
|
16719
16738
|
p,
|
|
16720
16739
|
b,
|
|
16721
|
-
|
|
16740
|
+
g,
|
|
16722
16741
|
v,
|
|
16723
16742
|
k,
|
|
16724
16743
|
$,
|
|
@@ -16729,7 +16748,7 @@ function Lt(a) {
|
|
|
16729
16748
|
"div",
|
|
16730
16749
|
L(A({
|
|
16731
16750
|
ref: d,
|
|
16732
|
-
className:
|
|
16751
|
+
className: x(
|
|
16733
16752
|
"flex",
|
|
16734
16753
|
"flex-col",
|
|
16735
16754
|
"h-full",
|
|
@@ -16778,7 +16797,7 @@ function Ye(D) {
|
|
|
16778
16797
|
persistWidth: h = !1,
|
|
16779
16798
|
defaultCollapsed: w = !1,
|
|
16780
16799
|
collapsed: y,
|
|
16781
|
-
onCollapseChange:
|
|
16800
|
+
onCollapseChange: g,
|
|
16782
16801
|
onWidthChange: v,
|
|
16783
16802
|
onMobileChange: k,
|
|
16784
16803
|
exclusiveGroups: $ = !1,
|
|
@@ -16844,7 +16863,7 @@ function Ye(D) {
|
|
|
16844
16863
|
persistWidth: h,
|
|
16845
16864
|
defaultCollapsed: w,
|
|
16846
16865
|
collapsed: y,
|
|
16847
|
-
onCollapseChange:
|
|
16866
|
+
onCollapseChange: g,
|
|
16848
16867
|
onWidthChange: v,
|
|
16849
16868
|
onMobileChange: k,
|
|
16850
16869
|
exclusiveGroups: $,
|
|
@@ -17002,7 +17021,7 @@ function Ua(l) {
|
|
|
17002
17021
|
document.removeEventListener("keydown", $);
|
|
17003
17022
|
};
|
|
17004
17023
|
}, [c, u, s]), !c) return null;
|
|
17005
|
-
const
|
|
17024
|
+
const g = {
|
|
17006
17025
|
sm: "max-w-sm",
|
|
17007
17026
|
md: "max-w-md",
|
|
17008
17027
|
lg: "max-w-lg",
|
|
@@ -17038,7 +17057,7 @@ function Ua(l) {
|
|
|
17038
17057
|
"aria-describedby": h ? m : void 0,
|
|
17039
17058
|
className: `
|
|
17040
17059
|
relative w-full
|
|
17041
|
-
${
|
|
17060
|
+
${g[t]}
|
|
17042
17061
|
bg-surface-overlay
|
|
17043
17062
|
${G("lg")}
|
|
17044
17063
|
${ke("xl")}
|
|
@@ -17452,7 +17471,7 @@ function du({
|
|
|
17452
17471
|
}
|
|
17453
17472
|
}, y = (j) => {
|
|
17454
17473
|
o && (e[j].disabled || (p || u(j), s == null || s(j)));
|
|
17455
|
-
},
|
|
17474
|
+
}, g = e[m], v = m === 0, k = m === e.length - 1, $ = (j, S, N) => `Step ${S + 1}${j.title ? `: ${j.title}` : ""}${N === "error" ? " (error)" : ""}`, C = (j, S) => j === "completed" ? /* @__PURE__ */ n.jsx(Kn, { className: "h-5 w-5" }) : j === "error" ? /* @__PURE__ */ n.jsx(Ar, { className: "h-5 w-5", "aria-hidden": "true" }) : i ? S + 1 : null;
|
|
17456
17475
|
return l === "vertical" ? /* @__PURE__ */ n.jsxs("div", { className: `flex ${f("base", "gap")} ${d}`, children: [
|
|
17457
17476
|
/* @__PURE__ */ n.jsx("div", { className: "flex flex-col", children: e.map((j, S) => {
|
|
17458
17477
|
const N = j.status || b(S), D = S === m;
|
|
@@ -17533,7 +17552,7 @@ function du({
|
|
|
17533
17552
|
"div",
|
|
17534
17553
|
{
|
|
17535
17554
|
role: "region",
|
|
17536
|
-
"aria-labelledby":
|
|
17555
|
+
"aria-labelledby": g ? `${g.id}-title` : void 0,
|
|
17537
17556
|
className: `
|
|
17538
17557
|
${f("lg", "p")}
|
|
17539
17558
|
border
|
|
@@ -17541,7 +17560,7 @@ function du({
|
|
|
17541
17560
|
${G("lg")}
|
|
17542
17561
|
bg-surface-base
|
|
17543
17562
|
`,
|
|
17544
|
-
children:
|
|
17563
|
+
children: g == null ? void 0 : g.content
|
|
17545
17564
|
}
|
|
17546
17565
|
),
|
|
17547
17566
|
/* @__PURE__ */ n.jsxs(
|
|
@@ -17634,7 +17653,7 @@ function du({
|
|
|
17634
17653
|
"div",
|
|
17635
17654
|
{
|
|
17636
17655
|
role: "region",
|
|
17637
|
-
"aria-labelledby":
|
|
17656
|
+
"aria-labelledby": g ? `${g.id}-title` : void 0,
|
|
17638
17657
|
className: `
|
|
17639
17658
|
${f("lg", "p")}
|
|
17640
17659
|
border
|
|
@@ -17642,7 +17661,7 @@ function du({
|
|
|
17642
17661
|
${G("lg")}
|
|
17643
17662
|
bg-surface-base
|
|
17644
17663
|
`,
|
|
17645
|
-
children:
|
|
17664
|
+
children: g == null ? void 0 : g.content
|
|
17646
17665
|
}
|
|
17647
17666
|
),
|
|
17648
17667
|
/* @__PURE__ */ n.jsxs("div", { className: `flex justify-between ${f("base", "gap")}`, children: [
|
|
@@ -17800,7 +17819,7 @@ function Kf({
|
|
|
17800
17819
|
emptyMessage: i = "No commands found",
|
|
17801
17820
|
className: l = ""
|
|
17802
17821
|
}) {
|
|
17803
|
-
const [d, c] = V(r), [u, p] = V(""), [m, b] = V(0), h = ee(null), w = ee(null), y = ee(null),
|
|
17822
|
+
const [d, c] = V(r), [u, p] = V(""), [m, b] = V(0), h = ee(null), w = ee(null), y = ee(null), g = ve(), v = t !== void 0, k = v ? t : d;
|
|
17804
17823
|
ir(k), Mr(y, k);
|
|
17805
17824
|
const C = e.filter((T) => {
|
|
17806
17825
|
var H, B;
|
|
@@ -17815,7 +17834,7 @@ function Kf({
|
|
|
17815
17834
|
return T[R] || (T[R] = []), T[R].push(I), T;
|
|
17816
17835
|
},
|
|
17817
17836
|
{}
|
|
17818
|
-
), j = Object.values(C).flat(), S = k && j[m] ? `${
|
|
17837
|
+
), j = Object.values(C).flat(), S = k && j[m] ? `${g}-option-${m}` : void 0, N = Q(
|
|
17819
17838
|
(T) => {
|
|
17820
17839
|
v || c(T), s == null || s(T), T && (p(""), b(0));
|
|
17821
17840
|
},
|
|
@@ -17932,7 +17951,7 @@ function Kf({
|
|
|
17932
17951
|
className: "flex-1 border-0 focus:ring-0",
|
|
17933
17952
|
role: "combobox",
|
|
17934
17953
|
"aria-expanded": k,
|
|
17935
|
-
"aria-controls":
|
|
17954
|
+
"aria-controls": g,
|
|
17936
17955
|
"aria-activedescendant": S,
|
|
17937
17956
|
"aria-autocomplete": "list",
|
|
17938
17957
|
"aria-label": o
|
|
@@ -17965,7 +17984,7 @@ function Kf({
|
|
|
17965
17984
|
"div",
|
|
17966
17985
|
{
|
|
17967
17986
|
ref: w,
|
|
17968
|
-
id:
|
|
17987
|
+
id: g,
|
|
17969
17988
|
role: "listbox",
|
|
17970
17989
|
"aria-label": "Commands",
|
|
17971
17990
|
className: `
|
|
@@ -18001,7 +18020,7 @@ function Kf({
|
|
|
18001
18020
|
"button",
|
|
18002
18021
|
{
|
|
18003
18022
|
type: "button",
|
|
18004
|
-
id: `${
|
|
18023
|
+
id: `${g}-option-${O}`,
|
|
18005
18024
|
role: "option",
|
|
18006
18025
|
"aria-selected": H,
|
|
18007
18026
|
tabIndex: -1,
|
|
@@ -18105,7 +18124,7 @@ function Yf({
|
|
|
18105
18124
|
onColumnResize: h,
|
|
18106
18125
|
selectable: w = !1,
|
|
18107
18126
|
selectedRows: y,
|
|
18108
|
-
onSelectionChange:
|
|
18127
|
+
onSelectionChange: g,
|
|
18109
18128
|
rowId: v,
|
|
18110
18129
|
exportable: k = !1,
|
|
18111
18130
|
onExport: $,
|
|
@@ -18197,7 +18216,7 @@ function Yf({
|
|
|
18197
18216
|
filters: S,
|
|
18198
18217
|
selectable: w,
|
|
18199
18218
|
selectedRows: y,
|
|
18200
|
-
onSelectionChange:
|
|
18219
|
+
onSelectionChange: g,
|
|
18201
18220
|
rowId: v,
|
|
18202
18221
|
actions: N,
|
|
18203
18222
|
resizable: u,
|
|
@@ -18248,7 +18267,7 @@ function qf({
|
|
|
18248
18267
|
if (!o) return w;
|
|
18249
18268
|
const $ = (m - 1) * a, C = $ + a;
|
|
18250
18269
|
return w.slice($, C);
|
|
18251
|
-
}, [w, m, a, o]),
|
|
18270
|
+
}, [w, m, a, o]), g = o ? Math.ceil(w.length / a) : 1, v = ($) => {
|
|
18252
18271
|
b($);
|
|
18253
18272
|
}, k = ($) => {
|
|
18254
18273
|
p($), b(1);
|
|
@@ -18287,11 +18306,11 @@ function qf({
|
|
|
18287
18306
|
} : void 0
|
|
18288
18307
|
}
|
|
18289
18308
|
),
|
|
18290
|
-
o &&
|
|
18309
|
+
o && g > 1 && /* @__PURE__ */ n.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ n.jsx(
|
|
18291
18310
|
Hc,
|
|
18292
18311
|
{
|
|
18293
18312
|
currentPage: m,
|
|
18294
|
-
totalPages:
|
|
18313
|
+
totalPages: g,
|
|
18295
18314
|
onPageChange: v
|
|
18296
18315
|
}
|
|
18297
18316
|
) }),
|
|
@@ -18326,12 +18345,12 @@ function Xf({
|
|
|
18326
18345
|
/* @__PURE__ */ n.jsx(
|
|
18327
18346
|
du,
|
|
18328
18347
|
{
|
|
18329
|
-
steps: e.map((y,
|
|
18348
|
+
steps: e.map((y, g) => ({
|
|
18330
18349
|
id: y.id,
|
|
18331
18350
|
title: y.title,
|
|
18332
18351
|
content: y.content,
|
|
18333
18352
|
description: y.description,
|
|
18334
|
-
status:
|
|
18353
|
+
status: g < a ? "completed" : g === a ? w ? "error" : "active" : "pending"
|
|
18335
18354
|
})),
|
|
18336
18355
|
currentStep: a,
|
|
18337
18356
|
onStepChange: m,
|
|
@@ -18399,13 +18418,13 @@ function Jf({
|
|
|
18399
18418
|
), m = K(() => {
|
|
18400
18419
|
let y = e;
|
|
18401
18420
|
if (d.trim() && t) {
|
|
18402
|
-
const
|
|
18403
|
-
y = y.filter((v) => t(
|
|
18421
|
+
const g = d.toLowerCase();
|
|
18422
|
+
y = y.filter((v) => t(g, v));
|
|
18404
18423
|
}
|
|
18405
|
-
return r && Object.keys(u).length > 0 && (y = y.filter((
|
|
18406
|
-
}, [e, d, u, t, r]), b = (y,
|
|
18424
|
+
return r && Object.keys(u).length > 0 && (y = y.filter((g) => r(u, g))), y;
|
|
18425
|
+
}, [e, d, u, t, r]), b = (y, g) => {
|
|
18407
18426
|
p((v) => L(A({}, v), {
|
|
18408
|
-
[y]:
|
|
18427
|
+
[y]: g
|
|
18409
18428
|
}));
|
|
18410
18429
|
}, h = () => {
|
|
18411
18430
|
p({}), c("");
|
|
@@ -18421,7 +18440,7 @@ function Jf({
|
|
|
18421
18440
|
}
|
|
18422
18441
|
) }),
|
|
18423
18442
|
a.length > 0 && /* @__PURE__ */ n.jsx("div", { className: `flex flex-wrap ${f("sm", "gap")}`, children: a.map((y) => {
|
|
18424
|
-
var
|
|
18443
|
+
var g;
|
|
18425
18444
|
return /* @__PURE__ */ n.jsxs(
|
|
18426
18445
|
"div",
|
|
18427
18446
|
{
|
|
@@ -18443,7 +18462,7 @@ function Jf({
|
|
|
18443
18462
|
),
|
|
18444
18463
|
children: [
|
|
18445
18464
|
/* @__PURE__ */ n.jsx("option", { value: "", children: "All" }),
|
|
18446
|
-
(
|
|
18465
|
+
(g = y.options) == null ? void 0 : g.map((v) => /* @__PURE__ */ n.jsx(
|
|
18447
18466
|
"option",
|
|
18448
18467
|
{
|
|
18449
18468
|
value: String(v.value || ""),
|
|
@@ -18473,7 +18492,7 @@ function Jf({
|
|
|
18473
18492
|
"div",
|
|
18474
18493
|
{
|
|
18475
18494
|
className: `grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 ${f("base", "gap")}`,
|
|
18476
|
-
children: m.map((y,
|
|
18495
|
+
children: m.map((y, g) => /* @__PURE__ */ n.jsx("div", { children: s(y, g) }, g))
|
|
18477
18496
|
}
|
|
18478
18497
|
)
|
|
18479
18498
|
] }) });
|
|
@@ -18496,7 +18515,7 @@ function Zf({
|
|
|
18496
18515
|
] });
|
|
18497
18516
|
}
|
|
18498
18517
|
const uu = Ne(
|
|
18499
|
-
|
|
18518
|
+
x(
|
|
18500
18519
|
"w-full flex flex-col",
|
|
18501
18520
|
f("2xl", "py"),
|
|
18502
18521
|
// 40px vertical breathing room
|
|
@@ -18510,7 +18529,7 @@ const uu = Ne(
|
|
|
18510
18529
|
variant: {
|
|
18511
18530
|
plain: "",
|
|
18512
18531
|
gradient: "hero-gradient",
|
|
18513
|
-
"gradient-glow":
|
|
18532
|
+
"gradient-glow": x("hero-gradient", "hero-glow")
|
|
18514
18533
|
},
|
|
18515
18534
|
align: {
|
|
18516
18535
|
start: "text-left",
|
|
@@ -18555,22 +18574,22 @@ const uu = Ne(
|
|
|
18555
18574
|
"aria-label",
|
|
18556
18575
|
"aria-labelledby"
|
|
18557
18576
|
]);
|
|
18558
|
-
const y = u != null || p != null,
|
|
18577
|
+
const y = u != null || p != null, g = u != null ? u : typeof r == "string" ? r : void 0;
|
|
18559
18578
|
return typeof process != "undefined" && process.env.NODE_ENV !== "production" && !y && typeof r != "string" && console.warn(
|
|
18560
18579
|
"[HeroSection] A non-string `title` was provided without `aria-label` or `aria-labelledby`. The hero <section> landmark will have no accessible name. Pass `aria-label`, or set `aria-labelledby` to your title's id."
|
|
18561
18580
|
), /* @__PURE__ */ n.jsxs(
|
|
18562
18581
|
"section",
|
|
18563
18582
|
L(A({
|
|
18564
18583
|
ref: b,
|
|
18565
|
-
className:
|
|
18566
|
-
"aria-label":
|
|
18584
|
+
className: x(uu({ variant: l, align: d }), c),
|
|
18585
|
+
"aria-label": g,
|
|
18567
18586
|
"aria-labelledby": p
|
|
18568
18587
|
}, m), {
|
|
18569
18588
|
children: [
|
|
18570
18589
|
/* @__PURE__ */ n.jsxs(
|
|
18571
18590
|
"div",
|
|
18572
18591
|
{
|
|
18573
|
-
className:
|
|
18592
|
+
className: x(
|
|
18574
18593
|
"flex flex-col",
|
|
18575
18594
|
f("md", "gap-y"),
|
|
18576
18595
|
fu[d]
|
|
@@ -18613,7 +18632,7 @@ const uu = Ne(
|
|
|
18613
18632
|
a ? /* @__PURE__ */ n.jsx(
|
|
18614
18633
|
"div",
|
|
18615
18634
|
{
|
|
18616
|
-
className:
|
|
18635
|
+
className: x(
|
|
18617
18636
|
"flex flex-wrap",
|
|
18618
18637
|
f("sm", "gap"),
|
|
18619
18638
|
mu[d]
|
|
@@ -18639,18 +18658,18 @@ const uu = Ne(
|
|
|
18639
18658
|
}
|
|
18640
18659
|
);
|
|
18641
18660
|
pu.displayName = "HeroSection";
|
|
18642
|
-
const bu = Ne(
|
|
18661
|
+
const bu = Ne(x("flex items-center", "border-b"), {
|
|
18643
18662
|
variants: {
|
|
18644
18663
|
variant: {
|
|
18645
|
-
default:
|
|
18646
|
-
sub:
|
|
18664
|
+
default: x("border-line-default", f("base", "gap-x")),
|
|
18665
|
+
sub: x("border-line-muted", f("sm", "gap-x"))
|
|
18647
18666
|
}
|
|
18648
18667
|
},
|
|
18649
18668
|
defaultVariants: {
|
|
18650
18669
|
variant: "default"
|
|
18651
18670
|
}
|
|
18652
18671
|
}), hu = Ne(
|
|
18653
|
-
|
|
18672
|
+
x(
|
|
18654
18673
|
"relative -mb-px inline-flex items-center",
|
|
18655
18674
|
f("xs", "gap-x"),
|
|
18656
18675
|
"border-b-2 border-transparent",
|
|
@@ -18664,20 +18683,20 @@ const bu = Ne(g("flex items-center", "border-b"), {
|
|
|
18664
18683
|
{
|
|
18665
18684
|
variants: {
|
|
18666
18685
|
variant: {
|
|
18667
|
-
default:
|
|
18686
|
+
default: x(
|
|
18668
18687
|
f("sm", "px"),
|
|
18669
18688
|
f("sm", "py"),
|
|
18670
18689
|
le("body")
|
|
18671
18690
|
),
|
|
18672
|
-
sub:
|
|
18691
|
+
sub: x(
|
|
18673
18692
|
f("sm", "px"),
|
|
18674
18693
|
f("xs", "py"),
|
|
18675
18694
|
le("bodySmall")
|
|
18676
18695
|
)
|
|
18677
18696
|
},
|
|
18678
18697
|
active: {
|
|
18679
|
-
true:
|
|
18680
|
-
false:
|
|
18698
|
+
true: x("border-line-brand", "text-fg-brand-emphasis", "font-medium"),
|
|
18699
|
+
false: x(
|
|
18681
18700
|
"text-fg-secondary",
|
|
18682
18701
|
"hover:text-fg-primary",
|
|
18683
18702
|
"hover:border-line-muted"
|
|
@@ -18689,7 +18708,7 @@ const bu = Ne(g("flex items-center", "border-b"), {
|
|
|
18689
18708
|
{
|
|
18690
18709
|
variant: "sub",
|
|
18691
18710
|
active: !1,
|
|
18692
|
-
class:
|
|
18711
|
+
class: x("text-fg-tertiary", "hover:text-fg-secondary")
|
|
18693
18712
|
}
|
|
18694
18713
|
],
|
|
18695
18714
|
defaultVariants: {
|
|
@@ -18697,7 +18716,7 @@ const bu = Ne(g("flex items-center", "border-b"), {
|
|
|
18697
18716
|
active: !1
|
|
18698
18717
|
}
|
|
18699
18718
|
}
|
|
18700
|
-
), xu =
|
|
18719
|
+
), xu = x(
|
|
18701
18720
|
"inline-flex items-center justify-center",
|
|
18702
18721
|
G("full"),
|
|
18703
18722
|
f("xs", "px"),
|
|
@@ -18727,7 +18746,7 @@ const bu = Ne(g("flex items-center", "border-b"), {
|
|
|
18727
18746
|
"nav",
|
|
18728
18747
|
L(A({
|
|
18729
18748
|
ref: d,
|
|
18730
|
-
className:
|
|
18749
|
+
className: x(bu({ variant: r }), a),
|
|
18731
18750
|
"aria-label": o,
|
|
18732
18751
|
"aria-labelledby": i
|
|
18733
18752
|
}, l), {
|
|
@@ -18777,7 +18796,7 @@ function Qf(i) {
|
|
|
18777
18796
|
"div",
|
|
18778
18797
|
L(A({
|
|
18779
18798
|
role: "group",
|
|
18780
|
-
className:
|
|
18799
|
+
className: x(
|
|
18781
18800
|
"inline-flex",
|
|
18782
18801
|
d[t],
|
|
18783
18802
|
c[r],
|
|
@@ -18999,7 +19018,7 @@ export {
|
|
|
18999
19018
|
po as YELLOW,
|
|
19000
19019
|
Nn as blendColors,
|
|
19001
19020
|
es as clampWidth,
|
|
19002
|
-
|
|
19021
|
+
x as cn,
|
|
19003
19022
|
Wu as darken,
|
|
19004
19023
|
Le as defaultConfigValues,
|
|
19005
19024
|
Qt as defaultThemeValues,
|