@fabio.caffarello/react-design-system 4.4.0 → 4.6.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/README.md +15 -1
- package/dist/granular/ui/components/Stat/StatGroup.js +51 -36
- package/dist/granular/ui/components/Stat/StatGroup.js.map +1 -1
- package/dist/index.cjs +31 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +577 -563
- 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/tokens.css +2920 -0
- package/dist/ui/components/Stat/StatGroup.d.ts +59 -11
- package/package.json +16 -14
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"),
|
|
@@ -8330,7 +8330,7 @@ const as = be(function(u, c) {
|
|
|
8330
8330
|
md: "h-10 w-10 text-base",
|
|
8331
8331
|
lg: "h-12 w-12 text-lg",
|
|
8332
8332
|
xl: "h-16 w-16 text-xl"
|
|
8333
|
-
},
|
|
8333
|
+
}, g = {
|
|
8334
8334
|
circle: G("full"),
|
|
8335
8335
|
square: G("none"),
|
|
8336
8336
|
rounded: G("md")
|
|
@@ -8339,7 +8339,7 @@ const as = be(function(u, c) {
|
|
|
8339
8339
|
"div",
|
|
8340
8340
|
L(A({
|
|
8341
8341
|
ref: c,
|
|
8342
|
-
className:
|
|
8342
|
+
className: x(
|
|
8343
8343
|
"relative",
|
|
8344
8344
|
"inline-flex",
|
|
8345
8345
|
"items-center",
|
|
@@ -8348,7 +8348,7 @@ const as = be(function(u, c) {
|
|
|
8348
8348
|
"font-medium",
|
|
8349
8349
|
"overflow-hidden",
|
|
8350
8350
|
y[a],
|
|
8351
|
-
|
|
8351
|
+
g[o],
|
|
8352
8352
|
"bg-surface-muted",
|
|
8353
8353
|
"text-fg-primary",
|
|
8354
8354
|
l
|
|
@@ -8362,11 +8362,11 @@ const as = be(function(u, c) {
|
|
|
8362
8362
|
{
|
|
8363
8363
|
src: t,
|
|
8364
8364
|
alt: r || "",
|
|
8365
|
-
className:
|
|
8365
|
+
className: x(
|
|
8366
8366
|
"w-full",
|
|
8367
8367
|
"h-full",
|
|
8368
8368
|
"object-cover",
|
|
8369
|
-
|
|
8369
|
+
g[o],
|
|
8370
8370
|
h ? "opacity-100" : "opacity-0",
|
|
8371
8371
|
"transition-opacity",
|
|
8372
8372
|
"duration-200"
|
|
@@ -8381,13 +8381,13 @@ const as = be(function(u, c) {
|
|
|
8381
8381
|
v && /* @__PURE__ */ n.jsx(
|
|
8382
8382
|
"span",
|
|
8383
8383
|
{
|
|
8384
|
-
className:
|
|
8384
|
+
className: x(
|
|
8385
8385
|
"flex",
|
|
8386
8386
|
"items-center",
|
|
8387
8387
|
"justify-center",
|
|
8388
8388
|
"w-full",
|
|
8389
8389
|
"h-full",
|
|
8390
|
-
|
|
8390
|
+
g[o]
|
|
8391
8391
|
),
|
|
8392
8392
|
"aria-hidden": "true",
|
|
8393
8393
|
children: k || "?"
|
|
@@ -8423,7 +8423,7 @@ function lf(l) {
|
|
|
8423
8423
|
return /* @__PURE__ */ n.jsxs(
|
|
8424
8424
|
"div",
|
|
8425
8425
|
L(A({
|
|
8426
|
-
className:
|
|
8426
|
+
className: x("flex", "items-center", c[a], o),
|
|
8427
8427
|
role: "group",
|
|
8428
8428
|
"aria-label": `${u.length} avatars`
|
|
8429
8429
|
}, i), {
|
|
@@ -8467,7 +8467,7 @@ function lf(l) {
|
|
|
8467
8467
|
}
|
|
8468
8468
|
const oc = Ne(
|
|
8469
8469
|
// Base classes
|
|
8470
|
-
|
|
8470
|
+
x("inline-block", G("full")),
|
|
8471
8471
|
{
|
|
8472
8472
|
variants: {
|
|
8473
8473
|
variant: {
|
|
@@ -8512,7 +8512,7 @@ const oc = Ne(
|
|
|
8512
8512
|
"aria-label"
|
|
8513
8513
|
]);
|
|
8514
8514
|
const c = K(
|
|
8515
|
-
() =>
|
|
8515
|
+
() => x(oc({ variant: t, size: r }), s),
|
|
8516
8516
|
[t, r, s]
|
|
8517
8517
|
), u = K(() => a || {
|
|
8518
8518
|
online: "Online",
|
|
@@ -8535,41 +8535,41 @@ const oc = Ne(
|
|
|
8535
8535
|
);
|
|
8536
8536
|
ic.displayName = "Dot";
|
|
8537
8537
|
const lc = Ne(
|
|
8538
|
-
|
|
8538
|
+
x("inline-flex", "items-center", "border", G("md")),
|
|
8539
8539
|
{
|
|
8540
8540
|
variants: {
|
|
8541
8541
|
tone: {
|
|
8542
|
-
neutral:
|
|
8542
|
+
neutral: x(
|
|
8543
8543
|
"bg-surface-muted",
|
|
8544
8544
|
"text-fg-primary",
|
|
8545
8545
|
"border-line-default"
|
|
8546
8546
|
),
|
|
8547
|
-
success:
|
|
8548
|
-
warning:
|
|
8549
|
-
error:
|
|
8550
|
-
info:
|
|
8551
|
-
primary:
|
|
8547
|
+
success: x("bg-success-bg", "text-success-dark", "border-success"),
|
|
8548
|
+
warning: x("bg-warning-bg", "text-warning-dark", "border-warning"),
|
|
8549
|
+
error: x("bg-error-bg", "text-error-dark", "border-error"),
|
|
8550
|
+
info: x("bg-info-bg", "text-info-dark", "border-info"),
|
|
8551
|
+
primary: x(
|
|
8552
8552
|
"bg-surface-brand-subtle",
|
|
8553
8553
|
"text-fg-brand-emphasis",
|
|
8554
8554
|
"border-line-brand"
|
|
8555
8555
|
),
|
|
8556
|
-
secondary:
|
|
8556
|
+
secondary: x(
|
|
8557
8557
|
"bg-surface-secondary-subtle",
|
|
8558
8558
|
"text-fg-brand-secondary-emphasis",
|
|
8559
8559
|
"border-line-secondary"
|
|
8560
8560
|
),
|
|
8561
8561
|
// Categorical data-viz tone — fuchsia soft-wash, sibling to the
|
|
8562
8562
|
// chart palette. Not a status; distinct from secondary (brand violet).
|
|
8563
|
-
dataviz:
|
|
8563
|
+
dataviz: x("bg-dataviz-bg", "text-dataviz-dark", "border-dataviz")
|
|
8564
8564
|
},
|
|
8565
8565
|
size: {
|
|
8566
|
-
sm:
|
|
8566
|
+
sm: x(
|
|
8567
8567
|
f("1.5", "px"),
|
|
8568
8568
|
f("0.5", "py"),
|
|
8569
8569
|
f("0.5", "gap"),
|
|
8570
8570
|
"[&_svg]:size-3"
|
|
8571
8571
|
),
|
|
8572
|
-
md:
|
|
8572
|
+
md: x(
|
|
8573
8573
|
f("sm", "px"),
|
|
8574
8574
|
f("0.5", "py"),
|
|
8575
8575
|
f("xs", "gap"),
|
|
@@ -8601,7 +8601,7 @@ const lc = Ne(
|
|
|
8601
8601
|
"span",
|
|
8602
8602
|
L(A({
|
|
8603
8603
|
ref: d,
|
|
8604
|
-
className:
|
|
8604
|
+
className: x(lc({ tone: s, size: a }), i)
|
|
8605
8605
|
}, l), {
|
|
8606
8606
|
children: [
|
|
8607
8607
|
o ? /* @__PURE__ */ n.jsx(
|
|
@@ -8615,7 +8615,7 @@ const lc = Ne(
|
|
|
8615
8615
|
/* @__PURE__ */ n.jsx(
|
|
8616
8616
|
"span",
|
|
8617
8617
|
{
|
|
8618
|
-
className:
|
|
8618
|
+
className: x(
|
|
8619
8619
|
le(m),
|
|
8620
8620
|
Ve("label")
|
|
8621
8621
|
),
|
|
@@ -8627,7 +8627,7 @@ const lc = Ne(
|
|
|
8627
8627
|
/* @__PURE__ */ n.jsx(
|
|
8628
8628
|
"span",
|
|
8629
8629
|
{
|
|
8630
|
-
className:
|
|
8630
|
+
className: x(
|
|
8631
8631
|
le("caption"),
|
|
8632
8632
|
Ve("caption")
|
|
8633
8633
|
),
|
|
@@ -8646,7 +8646,7 @@ function dc(s) {
|
|
|
8646
8646
|
return /* @__PURE__ */ n.jsx(
|
|
8647
8647
|
"div",
|
|
8648
8648
|
L(A({
|
|
8649
|
-
className:
|
|
8649
|
+
className: x(
|
|
8650
8650
|
"grid items-start",
|
|
8651
8651
|
f("1.5", "gap"),
|
|
8652
8652
|
f("base", "mb"),
|
|
@@ -8676,7 +8676,7 @@ function uc(i) {
|
|
|
8676
8676
|
return /* @__PURE__ */ n.jsxs(
|
|
8677
8677
|
s,
|
|
8678
8678
|
L(A({
|
|
8679
|
-
className:
|
|
8679
|
+
className: x(
|
|
8680
8680
|
"text-base font-semibold text-fg-primary",
|
|
8681
8681
|
"flex items-center",
|
|
8682
8682
|
f("sm", "gap"),
|
|
@@ -8699,7 +8699,7 @@ function fc(s) {
|
|
|
8699
8699
|
"children",
|
|
8700
8700
|
"className"
|
|
8701
8701
|
]);
|
|
8702
|
-
return /* @__PURE__ */ n.jsx("p", L(A({ className:
|
|
8702
|
+
return /* @__PURE__ */ n.jsx("p", L(A({ className: x("text-sm text-fg-secondary", t) }, r), { children: e }));
|
|
8703
8703
|
}
|
|
8704
8704
|
function mc(s) {
|
|
8705
8705
|
var a = s, {
|
|
@@ -8713,7 +8713,7 @@ function mc(s) {
|
|
|
8713
8713
|
"div",
|
|
8714
8714
|
L(A({
|
|
8715
8715
|
"data-card-actions": "",
|
|
8716
|
-
className:
|
|
8716
|
+
className: x(
|
|
8717
8717
|
"flex items-center self-start",
|
|
8718
8718
|
f("sm", "gap"),
|
|
8719
8719
|
t
|
|
@@ -8725,7 +8725,7 @@ function mc(s) {
|
|
|
8725
8725
|
}
|
|
8726
8726
|
function pc(s) {
|
|
8727
8727
|
var a = s, { children: e, className: t } = a, r = P(a, ["children", "className"]);
|
|
8728
|
-
return /* @__PURE__ */ n.jsx("div", L(A({ className:
|
|
8728
|
+
return /* @__PURE__ */ n.jsx("div", L(A({ className: x(t) }, r), { children: e }));
|
|
8729
8729
|
}
|
|
8730
8730
|
function bc(c) {
|
|
8731
8731
|
var u = c, {
|
|
@@ -8751,7 +8751,7 @@ function bc(c) {
|
|
|
8751
8751
|
"[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
8752
|
);
|
|
8753
8753
|
const p = Ne(
|
|
8754
|
-
|
|
8754
|
+
x(
|
|
8755
8755
|
"bg-surface-base",
|
|
8756
8756
|
G("lg"),
|
|
8757
8757
|
"border",
|
|
@@ -8762,12 +8762,12 @@ function bc(c) {
|
|
|
8762
8762
|
variants: {
|
|
8763
8763
|
variant: {
|
|
8764
8764
|
default: "",
|
|
8765
|
-
hover:
|
|
8765
|
+
hover: x(
|
|
8766
8766
|
`hover:${ke("md")}`,
|
|
8767
8767
|
"transition-shadow",
|
|
8768
8768
|
"cursor-pointer"
|
|
8769
8769
|
),
|
|
8770
|
-
selected:
|
|
8770
|
+
selected: x("border-line-brand", ke("md"))
|
|
8771
8771
|
},
|
|
8772
8772
|
padding: {
|
|
8773
8773
|
none: "",
|
|
@@ -8781,7 +8781,7 @@ function bc(c) {
|
|
|
8781
8781
|
padding: "medium"
|
|
8782
8782
|
}
|
|
8783
8783
|
}
|
|
8784
|
-
), m = s !== void 0, b = m ? "button" : void 0, h = m ? 0 : void 0, w =
|
|
8784
|
+
), 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
8785
|
className: w,
|
|
8786
8786
|
role: b,
|
|
8787
8787
|
tabIndex: h,
|
|
@@ -8792,7 +8792,7 @@ function bc(c) {
|
|
|
8792
8792
|
"aria-label": a,
|
|
8793
8793
|
"aria-labelledby": o
|
|
8794
8794
|
}, d);
|
|
8795
|
-
return i ? /* @__PURE__ */ n.jsx("section", L(A({},
|
|
8795
|
+
return i ? /* @__PURE__ */ n.jsx("section", L(A({}, g), { children: l })) : /* @__PURE__ */ n.jsx("div", L(A({}, g), { children: l }));
|
|
8796
8796
|
}
|
|
8797
8797
|
const sa = _e(bc);
|
|
8798
8798
|
sa.displayName = "Card";
|
|
@@ -8833,7 +8833,7 @@ function cf(d) {
|
|
|
8833
8833
|
return /* @__PURE__ */ n.jsxs(
|
|
8834
8834
|
"div",
|
|
8835
8835
|
L(A({
|
|
8836
|
-
className:
|
|
8836
|
+
className: x(
|
|
8837
8837
|
"bg-surface-base flex-1 flex flex-col",
|
|
8838
8838
|
f("base", "p"),
|
|
8839
8839
|
f("xs", "gap-y"),
|
|
@@ -8852,7 +8852,7 @@ function cf(d) {
|
|
|
8852
8852
|
}
|
|
8853
8853
|
) : /* @__PURE__ */ n.jsx("span", { className: "text-fg-primary text-2xl font-semibold leading-tight", children: e }),
|
|
8854
8854
|
/* @__PURE__ */ n.jsx("span", { className: "text-fg-secondary text-sm", children: t }),
|
|
8855
|
-
r ? /* @__PURE__ */ n.jsx("span", { className:
|
|
8855
|
+
r ? /* @__PURE__ */ n.jsx("span", { className: x("text-xs", xc[o]), children: r }) : null
|
|
8856
8856
|
]
|
|
8857
8857
|
})
|
|
8858
8858
|
);
|
|
@@ -8862,30 +8862,44 @@ const gc = {
|
|
|
8862
8862
|
3: "md:grid-cols-3",
|
|
8863
8863
|
4: "md:grid-cols-4"
|
|
8864
8864
|
};
|
|
8865
|
-
function df(
|
|
8866
|
-
var
|
|
8865
|
+
function df(i) {
|
|
8866
|
+
var l = i, {
|
|
8867
8867
|
layout: e = "grid",
|
|
8868
8868
|
cols: t = 4,
|
|
8869
|
-
|
|
8870
|
-
|
|
8871
|
-
|
|
8869
|
+
floatingBadge: r,
|
|
8870
|
+
className: s,
|
|
8871
|
+
children: a
|
|
8872
|
+
} = l, o = P(l, [
|
|
8872
8873
|
"layout",
|
|
8873
8874
|
"cols",
|
|
8875
|
+
"floatingBadge",
|
|
8874
8876
|
"className",
|
|
8875
8877
|
"children"
|
|
8876
8878
|
]);
|
|
8877
|
-
const
|
|
8878
|
-
return /* @__PURE__ */ n.
|
|
8879
|
+
const d = e === "grid";
|
|
8880
|
+
return /* @__PURE__ */ n.jsxs(
|
|
8879
8881
|
"div",
|
|
8880
8882
|
L(A({
|
|
8881
|
-
className:
|
|
8882
|
-
"
|
|
8883
|
-
|
|
8884
|
-
|
|
8885
|
-
r
|
|
8883
|
+
className: x(
|
|
8884
|
+
"relative",
|
|
8885
|
+
r && f("base", "pt"),
|
|
8886
|
+
s
|
|
8886
8887
|
)
|
|
8887
|
-
},
|
|
8888
|
-
children:
|
|
8888
|
+
}, o), {
|
|
8889
|
+
children: [
|
|
8890
|
+
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,
|
|
8891
|
+
/* @__PURE__ */ n.jsx(
|
|
8892
|
+
"div",
|
|
8893
|
+
{
|
|
8894
|
+
className: x(
|
|
8895
|
+
"bg-line-default border border-line-default overflow-hidden gap-px",
|
|
8896
|
+
G("lg"),
|
|
8897
|
+
d ? `grid grid-cols-2 ${gc[t]}` : "flex"
|
|
8898
|
+
),
|
|
8899
|
+
children: a
|
|
8900
|
+
}
|
|
8901
|
+
)
|
|
8902
|
+
]
|
|
8889
8903
|
})
|
|
8890
8904
|
);
|
|
8891
8905
|
}
|
|
@@ -8907,7 +8921,7 @@ function uf(o) {
|
|
|
8907
8921
|
L(A({
|
|
8908
8922
|
role: "group",
|
|
8909
8923
|
"aria-label": d,
|
|
8910
|
-
className:
|
|
8924
|
+
className: x(
|
|
8911
8925
|
"flex items-center",
|
|
8912
8926
|
r ? "flex-wrap" : "flex-nowrap",
|
|
8913
8927
|
f("sm", "gap"),
|
|
@@ -8983,7 +8997,7 @@ function pf(l) {
|
|
|
8983
8997
|
"success",
|
|
8984
8998
|
"className"
|
|
8985
8999
|
]);
|
|
8986
|
-
const c =
|
|
9000
|
+
const c = x(
|
|
8987
9001
|
f("lg", "gap"),
|
|
8988
9002
|
"flex",
|
|
8989
9003
|
"flex-col",
|
|
@@ -8991,14 +9005,14 @@ function pf(l) {
|
|
|
8991
9005
|
);
|
|
8992
9006
|
if ("form" in i && i.form !== void 0) {
|
|
8993
9007
|
const w = i, {
|
|
8994
|
-
form:
|
|
9008
|
+
form: g,
|
|
8995
9009
|
onSubmit: v,
|
|
8996
9010
|
onSubmitError: k
|
|
8997
9011
|
} = w, $ = P(w, [
|
|
8998
9012
|
"form",
|
|
8999
9013
|
"onSubmit",
|
|
9000
9014
|
"onSubmitError"
|
|
9001
|
-
]), C =
|
|
9015
|
+
]), C = g.handleSubmit(
|
|
9002
9016
|
(j) => pr(null, null, function* () {
|
|
9003
9017
|
if (!r)
|
|
9004
9018
|
try {
|
|
@@ -9011,7 +9025,7 @@ function pf(l) {
|
|
|
9011
9025
|
k == null || k(j);
|
|
9012
9026
|
}
|
|
9013
9027
|
);
|
|
9014
|
-
return /* @__PURE__ */ n.jsx(yc, { form:
|
|
9028
|
+
return /* @__PURE__ */ n.jsx(yc, { form: g, loading: r, children: /* @__PURE__ */ n.jsxs(
|
|
9015
9029
|
"form",
|
|
9016
9030
|
L(A({
|
|
9017
9031
|
className: c,
|
|
@@ -9024,7 +9038,7 @@ function pf(l) {
|
|
|
9024
9038
|
"div",
|
|
9025
9039
|
{
|
|
9026
9040
|
role: "alert",
|
|
9027
|
-
className:
|
|
9041
|
+
className: x(
|
|
9028
9042
|
f("md", "p"),
|
|
9029
9043
|
Re("sm"),
|
|
9030
9044
|
"text-error-dark",
|
|
@@ -9040,7 +9054,7 @@ function pf(l) {
|
|
|
9040
9054
|
"div",
|
|
9041
9055
|
{
|
|
9042
9056
|
role: "alert",
|
|
9043
|
-
className:
|
|
9057
|
+
className: x(
|
|
9044
9058
|
f("md", "p"),
|
|
9045
9059
|
Re("sm"),
|
|
9046
9060
|
"text-success-dark",
|
|
@@ -9056,8 +9070,8 @@ function pf(l) {
|
|
|
9056
9070
|
})
|
|
9057
9071
|
) });
|
|
9058
9072
|
}
|
|
9059
|
-
const p = i.onSubmit || t, y = i, { onSubmit: m } = y, b = P(y, ["onSubmit"]), h = (
|
|
9060
|
-
|
|
9073
|
+
const p = i.onSubmit || t, y = i, { onSubmit: m } = y, b = P(y, ["onSubmit"]), h = (g) => {
|
|
9074
|
+
g.preventDefault(), p && !r && (p == null || p(g));
|
|
9061
9075
|
};
|
|
9062
9076
|
return /* @__PURE__ */ n.jsxs(
|
|
9063
9077
|
"form",
|
|
@@ -9072,7 +9086,7 @@ function pf(l) {
|
|
|
9072
9086
|
"div",
|
|
9073
9087
|
{
|
|
9074
9088
|
role: "alert",
|
|
9075
|
-
className:
|
|
9089
|
+
className: x(
|
|
9076
9090
|
f("md", "p"),
|
|
9077
9091
|
Re("sm"),
|
|
9078
9092
|
"text-error-dark",
|
|
@@ -9088,7 +9102,7 @@ function pf(l) {
|
|
|
9088
9102
|
"div",
|
|
9089
9103
|
{
|
|
9090
9104
|
role: "alert",
|
|
9091
|
-
className:
|
|
9105
|
+
className: x(
|
|
9092
9106
|
f("md", "p"),
|
|
9093
9107
|
Re("sm"),
|
|
9094
9108
|
"text-success-dark",
|
|
@@ -9242,8 +9256,8 @@ var Ot = (e) => it(e) && !da(e) ? e : {
|
|
|
9242
9256
|
value: e,
|
|
9243
9257
|
message: ""
|
|
9244
9258
|
}, 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 (!
|
|
9259
|
+
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);
|
|
9260
|
+
if (!g || t.has(w))
|
|
9247
9261
|
return {};
|
|
9248
9262
|
const k = l ? l[0] : i, $ = (D) => {
|
|
9249
9263
|
if (a && k.reportValidity) {
|
|
@@ -9394,7 +9408,7 @@ function Vc(e) {
|
|
|
9394
9408
|
argA: C,
|
|
9395
9409
|
argB: Kr(j)
|
|
9396
9410
|
});
|
|
9397
|
-
},
|
|
9411
|
+
}, g = (C, j) => {
|
|
9398
9412
|
if (o)
|
|
9399
9413
|
return;
|
|
9400
9414
|
const S = r._getFieldArray(s);
|
|
@@ -9463,7 +9477,7 @@ function Vc(e) {
|
|
|
9463
9477
|
values: mt(r._formValues)
|
|
9464
9478
|
}), C ? j(s, !1) : r.unregister(s);
|
|
9465
9479
|
}), [s, r, a, i, o]), {
|
|
9466
|
-
swap: xe.useCallback(
|
|
9480
|
+
swap: xe.useCallback(g, [m, s, r, o]),
|
|
9467
9481
|
move: xe.useCallback(v, [m, s, r, o]),
|
|
9468
9482
|
prepend: xe.useCallback(h, [
|
|
9469
9483
|
m,
|
|
@@ -9507,7 +9521,7 @@ function bf({
|
|
|
9507
9521
|
return /* @__PURE__ */ n.jsxs(
|
|
9508
9522
|
"div",
|
|
9509
9523
|
{
|
|
9510
|
-
className:
|
|
9524
|
+
className: x(
|
|
9511
9525
|
"flex",
|
|
9512
9526
|
"flex-col",
|
|
9513
9527
|
f("sm", "gap"),
|
|
@@ -9518,7 +9532,7 @@ function bf({
|
|
|
9518
9532
|
sr,
|
|
9519
9533
|
{
|
|
9520
9534
|
htmlFor: e,
|
|
9521
|
-
className:
|
|
9535
|
+
className: x(
|
|
9522
9536
|
"block",
|
|
9523
9537
|
Re("sm"),
|
|
9524
9538
|
er("medium"),
|
|
@@ -9566,18 +9580,18 @@ function Wc(a) {
|
|
|
9566
9580
|
"items-center",
|
|
9567
9581
|
f("sm", "space-x"),
|
|
9568
9582
|
le("bodySmall")
|
|
9569
|
-
], l =
|
|
9583
|
+
], l = x(...i, r);
|
|
9570
9584
|
return /* @__PURE__ */ n.jsx("nav", L(A({ "aria-label": "Breadcrumb", className: l }, s), { children: /* @__PURE__ */ n.jsx(
|
|
9571
9585
|
"ol",
|
|
9572
9586
|
{
|
|
9573
|
-
className:
|
|
9587
|
+
className: x("flex", "items-center", f("sm", "space-x")),
|
|
9574
9588
|
children: e.map((d, c) => {
|
|
9575
9589
|
const u = c === e.length - 1;
|
|
9576
9590
|
return /* @__PURE__ */ n.jsxs("li", { className: "flex items-center", children: [
|
|
9577
9591
|
c > 0 && /* @__PURE__ */ n.jsx(
|
|
9578
9592
|
"span",
|
|
9579
9593
|
{
|
|
9580
|
-
className:
|
|
9594
|
+
className: x(
|
|
9581
9595
|
f("sm", "mx"),
|
|
9582
9596
|
"text-fg-tertiary"
|
|
9583
9597
|
),
|
|
@@ -9588,7 +9602,7 @@ function Wc(a) {
|
|
|
9588
9602
|
u ? /* @__PURE__ */ n.jsx(
|
|
9589
9603
|
"span",
|
|
9590
9604
|
{
|
|
9591
|
-
className:
|
|
9605
|
+
className: x(
|
|
9592
9606
|
"text-fg-primary",
|
|
9593
9607
|
Ve("label")
|
|
9594
9608
|
),
|
|
@@ -9599,7 +9613,7 @@ function Wc(a) {
|
|
|
9599
9613
|
"a",
|
|
9600
9614
|
{
|
|
9601
9615
|
href: d.href,
|
|
9602
|
-
className:
|
|
9616
|
+
className: x(
|
|
9603
9617
|
"inline-flex",
|
|
9604
9618
|
"items-center",
|
|
9605
9619
|
f("xs", "px"),
|
|
@@ -9643,29 +9657,29 @@ function Hc(d) {
|
|
|
9643
9657
|
e > 1 && r(e - 1);
|
|
9644
9658
|
}, p = () => {
|
|
9645
9659
|
e < t && r(e + 1);
|
|
9646
|
-
}, m = (
|
|
9647
|
-
|
|
9660
|
+
}, m = (g) => {
|
|
9661
|
+
g >= 1 && g <= t && g !== e && r(g);
|
|
9648
9662
|
}, b = () => {
|
|
9649
|
-
const
|
|
9663
|
+
const g = [];
|
|
9650
9664
|
if (t <= 5)
|
|
9651
9665
|
for (let k = 1; k <= t; k++)
|
|
9652
|
-
|
|
9666
|
+
g.push(k);
|
|
9653
9667
|
else if (e <= 3) {
|
|
9654
9668
|
for (let k = 1; k <= 4; k++)
|
|
9655
|
-
|
|
9656
|
-
|
|
9669
|
+
g.push(k);
|
|
9670
|
+
g.push("ellipsis"), g.push(t);
|
|
9657
9671
|
} else if (e >= t - 2) {
|
|
9658
|
-
|
|
9672
|
+
g.push(1), g.push("ellipsis");
|
|
9659
9673
|
for (let k = t - 3; k <= t; k++)
|
|
9660
|
-
|
|
9674
|
+
g.push(k);
|
|
9661
9675
|
} else {
|
|
9662
|
-
|
|
9676
|
+
g.push(1), g.push("ellipsis");
|
|
9663
9677
|
for (let k = e - 1; k <= e + 1; k++)
|
|
9664
|
-
|
|
9665
|
-
|
|
9678
|
+
g.push(k);
|
|
9679
|
+
g.push("ellipsis"), g.push(t);
|
|
9666
9680
|
}
|
|
9667
|
-
return
|
|
9668
|
-
}, h = s && a ? (e - 1) * a + 1 : void 0, w = s && a ? Math.min(e * a, s) : void 0, y =
|
|
9681
|
+
return g;
|
|
9682
|
+
}, h = s && a ? (e - 1) * a + 1 : void 0, w = s && a ? Math.min(e * a, s) : void 0, y = x(
|
|
9669
9683
|
"flex",
|
|
9670
9684
|
"items-center",
|
|
9671
9685
|
"justify-between",
|
|
@@ -9674,7 +9688,7 @@ function Hc(d) {
|
|
|
9674
9688
|
i
|
|
9675
9689
|
);
|
|
9676
9690
|
return /* @__PURE__ */ n.jsxs("nav", L(A({ className: y, "aria-label": "Pagination" }, l), { children: [
|
|
9677
|
-
/* @__PURE__ */ n.jsxs("div", { className:
|
|
9691
|
+
/* @__PURE__ */ n.jsxs("div", { className: x("flex", "items-center", f("sm", "gap")), children: [
|
|
9678
9692
|
/* @__PURE__ */ n.jsx(
|
|
9679
9693
|
ie,
|
|
9680
9694
|
{
|
|
@@ -9688,13 +9702,13 @@ function Hc(d) {
|
|
|
9688
9702
|
/* @__PURE__ */ n.jsx(
|
|
9689
9703
|
"div",
|
|
9690
9704
|
{
|
|
9691
|
-
className:
|
|
9692
|
-
children: b().map((
|
|
9693
|
-
if (
|
|
9705
|
+
className: x("flex", "items-center", f("xs", "gap")),
|
|
9706
|
+
children: b().map((g, v) => {
|
|
9707
|
+
if (g === "ellipsis")
|
|
9694
9708
|
return /* @__PURE__ */ n.jsx(
|
|
9695
9709
|
"span",
|
|
9696
9710
|
{
|
|
9697
|
-
className:
|
|
9711
|
+
className: x(
|
|
9698
9712
|
f("sm", "px"),
|
|
9699
9713
|
"text-fg-tertiary"
|
|
9700
9714
|
),
|
|
@@ -9702,7 +9716,7 @@ function Hc(d) {
|
|
|
9702
9716
|
},
|
|
9703
9717
|
`ellipsis-${v}`
|
|
9704
9718
|
);
|
|
9705
|
-
const k =
|
|
9719
|
+
const k = g, $ = k === e;
|
|
9706
9720
|
return /* @__PURE__ */ n.jsx(
|
|
9707
9721
|
ie,
|
|
9708
9722
|
{
|
|
@@ -9732,7 +9746,7 @@ function Hc(d) {
|
|
|
9732
9746
|
o && s && a && /* @__PURE__ */ n.jsxs(
|
|
9733
9747
|
"div",
|
|
9734
9748
|
{
|
|
9735
|
-
className:
|
|
9749
|
+
className: x(Re("sm"), "text-fg-primary"),
|
|
9736
9750
|
children: [
|
|
9737
9751
|
"Showing ",
|
|
9738
9752
|
h,
|
|
@@ -9764,7 +9778,7 @@ function Bc(d) {
|
|
|
9764
9778
|
"variant",
|
|
9765
9779
|
"className"
|
|
9766
9780
|
]);
|
|
9767
|
-
const u =
|
|
9781
|
+
const u = x(
|
|
9768
9782
|
"flex",
|
|
9769
9783
|
"flex-col",
|
|
9770
9784
|
"items-center",
|
|
@@ -9783,12 +9797,12 @@ function Bc(d) {
|
|
|
9783
9797
|
"aria-label": `${e}. ${t}`
|
|
9784
9798
|
}, l), {
|
|
9785
9799
|
children: [
|
|
9786
|
-
m && a && /* @__PURE__ */ n.jsx("div", { className:
|
|
9800
|
+
m && a && /* @__PURE__ */ n.jsx("div", { className: x(f("base", "mb")), "aria-hidden": "true", children: a }),
|
|
9787
9801
|
/* @__PURE__ */ n.jsx(
|
|
9788
9802
|
Pe,
|
|
9789
9803
|
{
|
|
9790
9804
|
as: "h3",
|
|
9791
|
-
className:
|
|
9805
|
+
className: x(
|
|
9792
9806
|
le("h4"),
|
|
9793
9807
|
er("semibold"),
|
|
9794
9808
|
"text-fg-primary",
|
|
@@ -9801,7 +9815,7 @@ function Bc(d) {
|
|
|
9801
9815
|
Pe,
|
|
9802
9816
|
{
|
|
9803
9817
|
as: "p",
|
|
9804
|
-
className:
|
|
9818
|
+
className: x(
|
|
9805
9819
|
le("bodySmall"),
|
|
9806
9820
|
"text-fg-secondary",
|
|
9807
9821
|
f("md", "mb"),
|
|
@@ -9832,7 +9846,7 @@ function Uc(l) {
|
|
|
9832
9846
|
"className",
|
|
9833
9847
|
"aria-label"
|
|
9834
9848
|
]);
|
|
9835
|
-
const [c, u] = V(!1), [p, m] = V(-1), b = ee(null), h = ee(null), w = ee(null), y = ee([]),
|
|
9849
|
+
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
9850
|
Y(() => {
|
|
9837
9851
|
const D = (_) => {
|
|
9838
9852
|
b.current && !b.current.contains(_.target) && (u(!1), m(-1));
|
|
@@ -9940,7 +9954,7 @@ function Uc(l) {
|
|
|
9940
9954
|
return /* @__PURE__ */ n.jsxs(
|
|
9941
9955
|
"div",
|
|
9942
9956
|
L(A({
|
|
9943
|
-
className:
|
|
9957
|
+
className: x("relative", "inline-block", a),
|
|
9944
9958
|
ref: b
|
|
9945
9959
|
}, i), {
|
|
9946
9960
|
children: [
|
|
@@ -9949,7 +9963,7 @@ function Uc(l) {
|
|
|
9949
9963
|
/* @__PURE__ */ n.jsx(
|
|
9950
9964
|
"div",
|
|
9951
9965
|
{
|
|
9952
|
-
className:
|
|
9966
|
+
className: x("fixed", "inset-0", "z-10"),
|
|
9953
9967
|
onClick: () => {
|
|
9954
9968
|
u(!1), m(-1);
|
|
9955
9969
|
},
|
|
@@ -9961,7 +9975,7 @@ function Uc(l) {
|
|
|
9961
9975
|
{
|
|
9962
9976
|
ref: w,
|
|
9963
9977
|
id: v,
|
|
9964
|
-
className:
|
|
9978
|
+
className: x(
|
|
9965
9979
|
"absolute",
|
|
9966
9980
|
// micro-z: dropdown content above its own backdrop
|
|
9967
9981
|
"z-20",
|
|
@@ -9980,8 +9994,8 @@ function Uc(l) {
|
|
|
9980
9994
|
"aria-orientation": "vertical",
|
|
9981
9995
|
"aria-labelledby": k,
|
|
9982
9996
|
"aria-activedescendant": p >= 0 ? `${v}-item-${p}` : void 0,
|
|
9983
|
-
children: /* @__PURE__ */ n.jsx("div", { className:
|
|
9984
|
-
const M =
|
|
9997
|
+
children: /* @__PURE__ */ n.jsx("div", { className: x(f("xs", "py")), role: "none", children: t.map((D, _) => {
|
|
9998
|
+
const M = x(
|
|
9985
9999
|
"block",
|
|
9986
10000
|
f("base", "px"),
|
|
9987
10001
|
f("xs", "py"),
|
|
@@ -9989,11 +10003,11 @@ function Uc(l) {
|
|
|
9989
10003
|
"w-full",
|
|
9990
10004
|
"text-left",
|
|
9991
10005
|
"focus:outline-none",
|
|
9992
|
-
D.disabled ?
|
|
10006
|
+
D.disabled ? x("text-fg-disabled", "cursor-not-allowed", "opacity-50") : D.variant === "danger" ? x(
|
|
9993
10007
|
"text-error-dark",
|
|
9994
10008
|
"hover:bg-error-bg-emphasis",
|
|
9995
10009
|
"focus:bg-error-bg-emphasis"
|
|
9996
|
-
) :
|
|
10010
|
+
) : x(
|
|
9997
10011
|
"text-fg-primary",
|
|
9998
10012
|
"hover:bg-surface-hover",
|
|
9999
10013
|
"focus:bg-surface-hover"
|
|
@@ -10112,7 +10126,7 @@ function ma(l) {
|
|
|
10112
10126
|
"onFocus",
|
|
10113
10127
|
"className"
|
|
10114
10128
|
]);
|
|
10115
|
-
const { selectedDate: c, selectedRange: u, mode: p, onDateChange: m } = fa(), [b, h] = V(""), [w, y] = V(!1),
|
|
10129
|
+
const { selectedDate: c, selectedRange: u, mode: p, onDateChange: m } = fa(), [b, h] = V(""), [w, y] = V(!1), g = ee(null);
|
|
10116
10130
|
Y(() => {
|
|
10117
10131
|
p === "single" && c ? h(Jt(c, t)) : p === "range" && u ? u.start && u.end ? h(
|
|
10118
10132
|
`${Jt(u.start, t)} - ${Jt(u.end, t)}`
|
|
@@ -10131,12 +10145,12 @@ function ma(l) {
|
|
|
10131
10145
|
}
|
|
10132
10146
|
}, $ = () => {
|
|
10133
10147
|
var C;
|
|
10134
|
-
(C =
|
|
10148
|
+
(C = g.current) == null || C.focus();
|
|
10135
10149
|
};
|
|
10136
10150
|
return /* @__PURE__ */ n.jsx("div", L(A({ className: `relative ${o}` }, i), { children: /* @__PURE__ */ n.jsx(
|
|
10137
10151
|
We,
|
|
10138
10152
|
{
|
|
10139
|
-
ref:
|
|
10153
|
+
ref: g,
|
|
10140
10154
|
type: "text",
|
|
10141
10155
|
value: b,
|
|
10142
10156
|
onChange: v,
|
|
@@ -10219,7 +10233,7 @@ function pa(a) {
|
|
|
10219
10233
|
disabledDates: b
|
|
10220
10234
|
} = fa(), [h, w] = V(
|
|
10221
10235
|
e || i || (l == null ? void 0 : l.start) || /* @__PURE__ */ new Date()
|
|
10222
|
-
), y = ee(null), [
|
|
10236
|
+
), y = ee(null), [g, v] = V(() => {
|
|
10223
10237
|
const I = /* @__PURE__ */ new Date(), R = e || i || (l == null ? void 0 : l.start) || I;
|
|
10224
10238
|
return i && Zt(i, R) ? i : Zt(I, R) ? I : new Date(R.getFullYear(), R.getMonth(), 1);
|
|
10225
10239
|
});
|
|
@@ -10234,16 +10248,16 @@ function pa(a) {
|
|
|
10234
10248
|
}
|
|
10235
10249
|
if (!y.current) return;
|
|
10236
10250
|
const I = new Date(
|
|
10237
|
-
|
|
10238
|
-
|
|
10239
|
-
|
|
10251
|
+
g.getFullYear(),
|
|
10252
|
+
g.getMonth(),
|
|
10253
|
+
g.getDate()
|
|
10240
10254
|
).toISOString(), R = y.current.querySelector(
|
|
10241
10255
|
`[data-date="${I}"]`
|
|
10242
10256
|
);
|
|
10243
10257
|
R && R.focus();
|
|
10244
|
-
}, [
|
|
10258
|
+
}, [g]);
|
|
10245
10259
|
const $ = (() => {
|
|
10246
|
-
if (Zt(
|
|
10260
|
+
if (Zt(g, h)) return g;
|
|
10247
10261
|
const I = /* @__PURE__ */ new Date();
|
|
10248
10262
|
return Zt(I, h) ? I : new Date(h.getFullYear(), h.getMonth(), 1);
|
|
10249
10263
|
})(), C = Gc(h), j = Kc(h), S = [];
|
|
@@ -10399,7 +10413,7 @@ function pa(a) {
|
|
|
10399
10413
|
p,
|
|
10400
10414
|
m,
|
|
10401
10415
|
b
|
|
10402
|
-
), W = wt(z, /* @__PURE__ */ new Date()), F = wt(z,
|
|
10416
|
+
), W = wt(z, /* @__PURE__ */ new Date()), F = wt(z, g), q = wt(z, $);
|
|
10403
10417
|
return /* @__PURE__ */ n.jsx(
|
|
10404
10418
|
"button",
|
|
10405
10419
|
{
|
|
@@ -10454,18 +10468,18 @@ function Tr({
|
|
|
10454
10468
|
const [b, h] = V(!1), w = ee(null), y = ee(null);
|
|
10455
10469
|
return Y(() => {
|
|
10456
10470
|
if (!b) return;
|
|
10457
|
-
const
|
|
10471
|
+
const g = (v) => {
|
|
10458
10472
|
var j, S, N, D;
|
|
10459
10473
|
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
10474
|
!$ && !C && h(!1);
|
|
10461
10475
|
};
|
|
10462
|
-
return document.addEventListener("mousedown",
|
|
10476
|
+
return document.addEventListener("mousedown", g), () => document.removeEventListener("mousedown", g);
|
|
10463
10477
|
}, [b]), Y(() => {
|
|
10464
10478
|
if (!b) return;
|
|
10465
|
-
const
|
|
10479
|
+
const g = (v) => {
|
|
10466
10480
|
v.key === "Escape" && h(!1);
|
|
10467
10481
|
};
|
|
10468
|
-
return document.addEventListener("keydown",
|
|
10482
|
+
return document.addEventListener("keydown", g), () => document.removeEventListener("keydown", g);
|
|
10469
10483
|
}, [b]), e ? /* @__PURE__ */ n.jsx(
|
|
10470
10484
|
hn,
|
|
10471
10485
|
{
|
|
@@ -10602,23 +10616,23 @@ function Zc(o) {
|
|
|
10602
10616
|
b.querySelectorAll(
|
|
10603
10617
|
'[role="tab"]:not([disabled])'
|
|
10604
10618
|
)
|
|
10605
|
-
),
|
|
10619
|
+
), g = y.findIndex(
|
|
10606
10620
|
($) => $ === document.activeElement
|
|
10607
10621
|
);
|
|
10608
|
-
if (
|
|
10609
|
-
let v =
|
|
10610
|
-
d === "horizontal" ? w.key === "ArrowRight" ? (w.preventDefault(), v = (
|
|
10622
|
+
if (g === -1) return;
|
|
10623
|
+
let v = g;
|
|
10624
|
+
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
10625
|
};
|
|
10612
10626
|
return b.addEventListener("keydown", h), () => b.removeEventListener("keydown", h);
|
|
10613
10627
|
}, [d]);
|
|
10614
|
-
const u = r === "compact" && d === "vertical" ? "flex" : "inline-flex", p =
|
|
10628
|
+
const u = r === "compact" && d === "vertical" ? "flex" : "inline-flex", p = x(d === "vertical" ? "flex-col" : "flex-row", f("xs", "gap"));
|
|
10615
10629
|
return /* @__PURE__ */ n.jsx(
|
|
10616
10630
|
"div",
|
|
10617
10631
|
L(A({
|
|
10618
10632
|
ref: c,
|
|
10619
10633
|
role: "tablist",
|
|
10620
10634
|
"aria-orientation": d,
|
|
10621
|
-
className:
|
|
10635
|
+
className: x(
|
|
10622
10636
|
u,
|
|
10623
10637
|
p,
|
|
10624
10638
|
f("xs", "p"),
|
|
@@ -10652,18 +10666,18 @@ function Qc(l) {
|
|
|
10652
10666
|
onValueChange: u,
|
|
10653
10667
|
orientation: p,
|
|
10654
10668
|
activationMode: m
|
|
10655
|
-
} = $s(), b = c === e, h = (
|
|
10656
|
-
r || ((m === "automatic" || b) && u(e), a == null || a(
|
|
10657
|
-
}, w = (
|
|
10669
|
+
} = $s(), b = c === e, h = (g) => {
|
|
10670
|
+
r || ((m === "automatic" || b) && u(e), a == null || a(g));
|
|
10671
|
+
}, w = (g) => {
|
|
10658
10672
|
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
|
-
|
|
10673
|
+
m === "automatic" && !r && !b && u(e), (v = i.onFocus) == null || v.call(i, g);
|
|
10674
|
+
}, y = (g) => {
|
|
10675
|
+
if (!r && !(g.key === "ArrowRight" || g.key === "ArrowLeft" || g.key === "ArrowDown" || g.key === "ArrowUp" || g.key === "Home" || g.key === "End")) {
|
|
10676
|
+
if (m === "manual" && (g.key === "Enter" || g.key === " ")) {
|
|
10677
|
+
g.preventDefault(), u(e);
|
|
10664
10678
|
return;
|
|
10665
10679
|
}
|
|
10666
|
-
o == null || o(
|
|
10680
|
+
o == null || o(g);
|
|
10667
10681
|
}
|
|
10668
10682
|
};
|
|
10669
10683
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -10679,7 +10693,7 @@ function Qc(l) {
|
|
|
10679
10693
|
onClick: h,
|
|
10680
10694
|
onFocus: w,
|
|
10681
10695
|
onKeyDown: y,
|
|
10682
|
-
className:
|
|
10696
|
+
className: x(
|
|
10683
10697
|
"inline-flex",
|
|
10684
10698
|
"items-center",
|
|
10685
10699
|
"justify-center",
|
|
@@ -10693,7 +10707,7 @@ function Qc(l) {
|
|
|
10693
10707
|
"focus:ring-line-focus",
|
|
10694
10708
|
"focus:ring-offset-2",
|
|
10695
10709
|
G("sm"),
|
|
10696
|
-
b ?
|
|
10710
|
+
b ? x("bg-surface-brand-strong", "text-fg-inverse") : x("text-fg-secondary", "hover:bg-surface-active"),
|
|
10697
10711
|
r ? "opacity-50 cursor-not-allowed" : "cursor-pointer",
|
|
10698
10712
|
s
|
|
10699
10713
|
)
|
|
@@ -10764,13 +10778,13 @@ const vf = Dr, Ss = be(
|
|
|
10764
10778
|
]);
|
|
10765
10779
|
const [h, w] = V(
|
|
10766
10780
|
typeof l == "string" ? l : ""
|
|
10767
|
-
), [y,
|
|
10781
|
+
), [y, g] = V(null), v = i !== void 0, k = v ? i : h, $ = k != null && String(k).length > 0, C = (N) => {
|
|
10768
10782
|
const D = N.target.value;
|
|
10769
10783
|
v || w(D), d == null || d(N), y && clearTimeout(y);
|
|
10770
10784
|
const _ = setTimeout(() => {
|
|
10771
10785
|
t == null || t(D);
|
|
10772
10786
|
}, o);
|
|
10773
|
-
|
|
10787
|
+
g(_);
|
|
10774
10788
|
}, j = () => {
|
|
10775
10789
|
v || w("");
|
|
10776
10790
|
const N = {
|
|
@@ -10782,7 +10796,7 @@ const vf = Dr, Ss = be(
|
|
|
10782
10796
|
var D;
|
|
10783
10797
|
N.key === "Enter" && t && t(String(k || "")), (D = u.onKeyDown) == null || D.call(u, N);
|
|
10784
10798
|
};
|
|
10785
|
-
return /* @__PURE__ */ n.jsx("div", { className:
|
|
10799
|
+
return /* @__PURE__ */ n.jsx("div", { className: x("relative", c), children: /* @__PURE__ */ n.jsx(
|
|
10786
10800
|
We,
|
|
10787
10801
|
L(A({
|
|
10788
10802
|
ref: p
|
|
@@ -10803,7 +10817,7 @@ const vf = Dr, Ss = be(
|
|
|
10803
10817
|
children: /* @__PURE__ */ n.jsx(Oe, { className: "h-4 w-4" })
|
|
10804
10818
|
}
|
|
10805
10819
|
) : void 0,
|
|
10806
|
-
className:
|
|
10820
|
+
className: x(f("lg", "pr"))
|
|
10807
10821
|
})
|
|
10808
10822
|
) });
|
|
10809
10823
|
}
|
|
@@ -10861,11 +10875,11 @@ const Cs = be(
|
|
|
10861
10875
|
"aria-label": b,
|
|
10862
10876
|
"aria-labelledby": h
|
|
10863
10877
|
}, w) {
|
|
10864
|
-
const [y,
|
|
10878
|
+
const [y, g] = V({ top: 0, left: 0, width: 0 });
|
|
10865
10879
|
Y(() => {
|
|
10866
10880
|
if (i.current) {
|
|
10867
10881
|
const k = i.current.getBoundingClientRect();
|
|
10868
|
-
|
|
10882
|
+
g({
|
|
10869
10883
|
top: k.bottom + window.scrollY + 4,
|
|
10870
10884
|
left: k.left + window.scrollX,
|
|
10871
10885
|
width: k.width
|
|
@@ -10978,7 +10992,7 @@ const td = be(
|
|
|
10978
10992
|
size: h = "md",
|
|
10979
10993
|
label: w,
|
|
10980
10994
|
"aria-label": y,
|
|
10981
|
-
"aria-labelledby":
|
|
10995
|
+
"aria-labelledby": g,
|
|
10982
10996
|
id: v,
|
|
10983
10997
|
name: k,
|
|
10984
10998
|
form: $
|
|
@@ -11049,7 +11063,7 @@ const td = be(
|
|
|
11049
11063
|
} else
|
|
11050
11064
|
O("");
|
|
11051
11065
|
}, [q, t]), Y(() => {
|
|
11052
|
-
}, [w, y,
|
|
11066
|
+
}, [w, y, g, S]);
|
|
11053
11067
|
const U = M && (pe || l || !!c), re = U && I >= 0 && I < oe.length ? `${N}-option-${I}` : void 0;
|
|
11054
11068
|
return /* @__PURE__ */ n.jsxs("div", { ref: H, className: `relative ${m}`, children: [
|
|
11055
11069
|
/* @__PURE__ */ n.jsx(
|
|
@@ -11059,7 +11073,7 @@ const td = be(
|
|
|
11059
11073
|
id: S,
|
|
11060
11074
|
label: w,
|
|
11061
11075
|
"aria-label": y,
|
|
11062
|
-
"aria-labelledby":
|
|
11076
|
+
"aria-labelledby": g,
|
|
11063
11077
|
role: "combobox",
|
|
11064
11078
|
"aria-expanded": U,
|
|
11065
11079
|
"aria-controls": U ? N : void 0,
|
|
@@ -11102,8 +11116,8 @@ const td = be(
|
|
|
11102
11116
|
loading: l,
|
|
11103
11117
|
emptyMessage: c,
|
|
11104
11118
|
containerRef: H,
|
|
11105
|
-
"aria-labelledby":
|
|
11106
|
-
"aria-label":
|
|
11119
|
+
"aria-labelledby": g,
|
|
11120
|
+
"aria-label": g ? void 0 : y || w
|
|
11107
11121
|
}
|
|
11108
11122
|
)
|
|
11109
11123
|
] });
|
|
@@ -11128,7 +11142,7 @@ const rd = be(
|
|
|
11128
11142
|
size: h = "md",
|
|
11129
11143
|
label: w
|
|
11130
11144
|
}, y) {
|
|
11131
|
-
const
|
|
11145
|
+
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
11146
|
(U) => z.includes(U.value)
|
|
11133
11147
|
), B = (() => {
|
|
11134
11148
|
let U = t;
|
|
@@ -11189,12 +11203,12 @@ const rd = be(
|
|
|
11189
11203
|
return document.addEventListener("mousedown", U), () => document.removeEventListener("mousedown", U);
|
|
11190
11204
|
}, [C]);
|
|
11191
11205
|
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:
|
|
11206
|
+
return /* @__PURE__ */ n.jsxs("div", { ref: M, className: x("relative", m), children: [
|
|
11193
11207
|
/* @__PURE__ */ n.jsx(
|
|
11194
11208
|
"label",
|
|
11195
11209
|
{
|
|
11196
|
-
htmlFor:
|
|
11197
|
-
className:
|
|
11210
|
+
htmlFor: g,
|
|
11211
|
+
className: x(
|
|
11198
11212
|
"block",
|
|
11199
11213
|
f("sm", "mb"),
|
|
11200
11214
|
"text-sm",
|
|
@@ -11207,7 +11221,7 @@ const rd = be(
|
|
|
11207
11221
|
/* @__PURE__ */ n.jsxs(
|
|
11208
11222
|
"div",
|
|
11209
11223
|
{
|
|
11210
|
-
className:
|
|
11224
|
+
className: x(
|
|
11211
11225
|
"flex",
|
|
11212
11226
|
"flex-wrap",
|
|
11213
11227
|
f("sm", "gap"),
|
|
@@ -11236,7 +11250,7 @@ const rd = be(
|
|
|
11236
11250
|
/* @__PURE__ */ n.jsx(
|
|
11237
11251
|
"input",
|
|
11238
11252
|
{
|
|
11239
|
-
id:
|
|
11253
|
+
id: g,
|
|
11240
11254
|
ref: (U) => {
|
|
11241
11255
|
typeof y == "function" ? y(U) : y && (y.current = U), T.current = U;
|
|
11242
11256
|
},
|
|
@@ -11253,7 +11267,7 @@ const rd = be(
|
|
|
11253
11267
|
onFocus: () => j(!0),
|
|
11254
11268
|
placeholder: z.length === 0 ? i : "",
|
|
11255
11269
|
disabled: d,
|
|
11256
|
-
className:
|
|
11270
|
+
className: x(
|
|
11257
11271
|
"flex-1",
|
|
11258
11272
|
"min-w-32",
|
|
11259
11273
|
"outline-none",
|
|
@@ -11277,7 +11291,7 @@ const rd = be(
|
|
|
11277
11291
|
// so they stop accepting clicks silently (maxSelected was a
|
|
11278
11292
|
// no-op with no affordance before).
|
|
11279
11293
|
disabled: U.disabled || ae && !z.includes(U.value),
|
|
11280
|
-
icon: z.includes(U.value) ? /* @__PURE__ */ n.jsx(Kn, { className:
|
|
11294
|
+
icon: z.includes(U.value) ? /* @__PURE__ */ n.jsx(Kn, { className: x("h-4", "w-4", "text-fg-brand") }) : U.icon
|
|
11281
11295
|
})),
|
|
11282
11296
|
highlightedIndex: S,
|
|
11283
11297
|
onSelect: F,
|
|
@@ -11309,18 +11323,18 @@ function yf({
|
|
|
11309
11323
|
icon: p,
|
|
11310
11324
|
emptyIcon: m
|
|
11311
11325
|
}) {
|
|
11312
|
-
const [b, h] = V(t), [w, y] = V(null),
|
|
11326
|
+
const [b, h] = V(t), [w, y] = V(null), g = e !== void 0, v = w != null ? w : g ? e : b, k = {
|
|
11313
11327
|
sm: "h-4 w-4",
|
|
11314
11328
|
md: "h-5 w-5",
|
|
11315
11329
|
lg: "h-6 w-6"
|
|
11316
11330
|
}, $ = (N) => {
|
|
11317
|
-
o || (
|
|
11331
|
+
o || (g || h(N), d == null || d(N));
|
|
11318
11332
|
}, C = (N) => {
|
|
11319
11333
|
o || (y(N), c == null || c(N));
|
|
11320
11334
|
}, j = () => {
|
|
11321
11335
|
o || y(null);
|
|
11322
11336
|
}, S = (N) => {
|
|
11323
|
-
const D = N + 1, _ = i && v >= D - 0.5 && v < D, M = v >= D, T =
|
|
11337
|
+
const D = N + 1, _ = i && v >= D - 0.5 && v < D, M = v >= D, T = x(
|
|
11324
11338
|
k[s],
|
|
11325
11339
|
Me("base"),
|
|
11326
11340
|
!o && "cursor-pointer",
|
|
@@ -11357,7 +11371,7 @@ function yf({
|
|
|
11357
11371
|
return /* @__PURE__ */ n.jsxs(
|
|
11358
11372
|
"div",
|
|
11359
11373
|
{
|
|
11360
|
-
className:
|
|
11374
|
+
className: x(
|
|
11361
11375
|
"inline-flex",
|
|
11362
11376
|
"items-center",
|
|
11363
11377
|
f("xs", "gap"),
|
|
@@ -11367,7 +11381,7 @@ function yf({
|
|
|
11367
11381
|
/* @__PURE__ */ n.jsx(
|
|
11368
11382
|
"div",
|
|
11369
11383
|
{
|
|
11370
|
-
className:
|
|
11384
|
+
className: x("flex", "items-center"),
|
|
11371
11385
|
role: o ? "img" : void 0,
|
|
11372
11386
|
"aria-label": o ? `Rating: ${v} out of ${r}` : void 0,
|
|
11373
11387
|
children: Array.from({ length: r }, (N, D) => S(D))
|
|
@@ -11376,7 +11390,7 @@ function yf({
|
|
|
11376
11390
|
l && /* @__PURE__ */ n.jsxs(
|
|
11377
11391
|
"span",
|
|
11378
11392
|
{
|
|
11379
|
-
className:
|
|
11393
|
+
className: x(
|
|
11380
11394
|
f("sm", "ml"),
|
|
11381
11395
|
Re("sm"),
|
|
11382
11396
|
"text-fg-secondary"
|
|
@@ -11406,11 +11420,11 @@ function wf({
|
|
|
11406
11420
|
label: u,
|
|
11407
11421
|
description: p
|
|
11408
11422
|
}) {
|
|
11409
|
-
const [m, b] = V([]), [h, w] = V(!1), y = ee(null),
|
|
11423
|
+
const [m, b] = V([]), [h, w] = V(!1), y = ee(null), g = (M) => {
|
|
11410
11424
|
if (M === 0) return "0 Bytes";
|
|
11411
11425
|
const T = 1024, I = ["Bytes", "KB", "MB", "GB"], R = Math.floor(Math.log(M) / Math.log(T));
|
|
11412
11426
|
return Math.round(M / Math.pow(T, R) * 100) / 100 + " " + I[R];
|
|
11413
|
-
}, v = (M) => r && M.size > r ? `File size exceeds ${
|
|
11427
|
+
}, v = (M) => r && M.size > r ? `File size exceeds ${g(r)}` : null, k = (M) => {
|
|
11414
11428
|
const T = Array.from(M), I = [];
|
|
11415
11429
|
return T.forEach((R) => {
|
|
11416
11430
|
const z = v(R), O = `${Date.now()}-${Math.random().toString(36).slice(2, 11)}`, H = {
|
|
@@ -11464,7 +11478,7 @@ function wf({
|
|
|
11464
11478
|
return /* @__PURE__ */ n.jsxs(
|
|
11465
11479
|
"div",
|
|
11466
11480
|
{
|
|
11467
|
-
className:
|
|
11481
|
+
className: x(
|
|
11468
11482
|
f("lg", "gap"),
|
|
11469
11483
|
"flex",
|
|
11470
11484
|
"flex-col",
|
|
@@ -11475,7 +11489,7 @@ function wf({
|
|
|
11475
11489
|
u && /* @__PURE__ */ n.jsx(
|
|
11476
11490
|
"label",
|
|
11477
11491
|
{
|
|
11478
|
-
className:
|
|
11492
|
+
className: x(
|
|
11479
11493
|
"block",
|
|
11480
11494
|
Re("sm"),
|
|
11481
11495
|
er("medium"),
|
|
@@ -11488,7 +11502,7 @@ function wf({
|
|
|
11488
11502
|
p && /* @__PURE__ */ n.jsx(
|
|
11489
11503
|
"p",
|
|
11490
11504
|
{
|
|
11491
|
-
className:
|
|
11505
|
+
className: x(
|
|
11492
11506
|
Re("sm"),
|
|
11493
11507
|
"text-fg-secondary"
|
|
11494
11508
|
),
|
|
@@ -11503,7 +11517,7 @@ function wf({
|
|
|
11503
11517
|
onDragOver: j,
|
|
11504
11518
|
onDragLeave: S,
|
|
11505
11519
|
onClick: _,
|
|
11506
|
-
className:
|
|
11520
|
+
className: x(
|
|
11507
11521
|
"relative",
|
|
11508
11522
|
"border-2",
|
|
11509
11523
|
"border-dashed",
|
|
@@ -11514,7 +11528,7 @@ function wf({
|
|
|
11514
11528
|
"cursor-pointer",
|
|
11515
11529
|
Me("base"),
|
|
11516
11530
|
"focus:border-line-focus",
|
|
11517
|
-
d ? "opacity-50 cursor-not-allowed" :
|
|
11531
|
+
d ? "opacity-50 cursor-not-allowed" : x(
|
|
11518
11532
|
"hover:border-line-strong",
|
|
11519
11533
|
"focus:outline-none",
|
|
11520
11534
|
"focus:ring-2",
|
|
@@ -11541,7 +11555,7 @@ function wf({
|
|
|
11541
11555
|
/* @__PURE__ */ n.jsxs(
|
|
11542
11556
|
"div",
|
|
11543
11557
|
{
|
|
11544
|
-
className:
|
|
11558
|
+
className: x(
|
|
11545
11559
|
"flex",
|
|
11546
11560
|
"flex-col",
|
|
11547
11561
|
"items-center",
|
|
@@ -11551,7 +11565,7 @@ function wf({
|
|
|
11551
11565
|
/* @__PURE__ */ n.jsx(
|
|
11552
11566
|
wl,
|
|
11553
11567
|
{
|
|
11554
|
-
className:
|
|
11568
|
+
className: x(
|
|
11555
11569
|
"h-8",
|
|
11556
11570
|
"w-8",
|
|
11557
11571
|
h ? "text-fg-brand" : "text-fg-secondary"
|
|
@@ -11562,7 +11576,7 @@ function wf({
|
|
|
11562
11576
|
/* @__PURE__ */ n.jsx(
|
|
11563
11577
|
"span",
|
|
11564
11578
|
{
|
|
11565
|
-
className:
|
|
11579
|
+
className: x(
|
|
11566
11580
|
Re("sm"),
|
|
11567
11581
|
er("medium"),
|
|
11568
11582
|
"text-fg-primary"
|
|
@@ -11573,7 +11587,7 @@ function wf({
|
|
|
11573
11587
|
e && /* @__PURE__ */ n.jsxs(
|
|
11574
11588
|
"p",
|
|
11575
11589
|
{
|
|
11576
|
-
className:
|
|
11590
|
+
className: x(
|
|
11577
11591
|
Re("xs"),
|
|
11578
11592
|
"text-fg-secondary",
|
|
11579
11593
|
f("xs", "mt")
|
|
@@ -11587,13 +11601,13 @@ function wf({
|
|
|
11587
11601
|
r && /* @__PURE__ */ n.jsxs(
|
|
11588
11602
|
"p",
|
|
11589
11603
|
{
|
|
11590
|
-
className:
|
|
11604
|
+
className: x(
|
|
11591
11605
|
Re("xs"),
|
|
11592
11606
|
"text-fg-secondary"
|
|
11593
11607
|
),
|
|
11594
11608
|
children: [
|
|
11595
11609
|
"Max size: ",
|
|
11596
|
-
|
|
11610
|
+
g(r)
|
|
11597
11611
|
]
|
|
11598
11612
|
}
|
|
11599
11613
|
)
|
|
@@ -11604,10 +11618,10 @@ function wf({
|
|
|
11604
11618
|
]
|
|
11605
11619
|
}
|
|
11606
11620
|
),
|
|
11607
|
-
m.length > 0 && /* @__PURE__ */ n.jsx("div", { className:
|
|
11621
|
+
m.length > 0 && /* @__PURE__ */ n.jsx("div", { className: x("flex", "flex-col", f("sm", "gap")), children: m.map((M) => /* @__PURE__ */ n.jsxs(
|
|
11608
11622
|
"div",
|
|
11609
11623
|
{
|
|
11610
|
-
className:
|
|
11624
|
+
className: x(
|
|
11611
11625
|
"flex",
|
|
11612
11626
|
"items-center",
|
|
11613
11627
|
f("md", "gap"),
|
|
@@ -11623,19 +11637,19 @@ function wf({
|
|
|
11623
11637
|
{
|
|
11624
11638
|
src: M.preview,
|
|
11625
11639
|
alt: M.file.name,
|
|
11626
|
-
className:
|
|
11640
|
+
className: x(
|
|
11627
11641
|
"w-12",
|
|
11628
11642
|
"h-12",
|
|
11629
11643
|
"object-cover",
|
|
11630
11644
|
G("md")
|
|
11631
11645
|
)
|
|
11632
11646
|
}
|
|
11633
|
-
) : /* @__PURE__ */ n.jsx(rl, { className:
|
|
11634
|
-
/* @__PURE__ */ n.jsxs("div", { className:
|
|
11647
|
+
) : /* @__PURE__ */ n.jsx(rl, { className: x("h-8", "w-8", "text-fg-secondary") }),
|
|
11648
|
+
/* @__PURE__ */ n.jsxs("div", { className: x("flex-1", "min-w-0"), children: [
|
|
11635
11649
|
/* @__PURE__ */ n.jsx(
|
|
11636
11650
|
"p",
|
|
11637
11651
|
{
|
|
11638
|
-
className:
|
|
11652
|
+
className: x(
|
|
11639
11653
|
Re("sm"),
|
|
11640
11654
|
er("medium"),
|
|
11641
11655
|
"text-fg-primary",
|
|
@@ -11647,17 +11661,17 @@ function wf({
|
|
|
11647
11661
|
/* @__PURE__ */ n.jsx(
|
|
11648
11662
|
"p",
|
|
11649
11663
|
{
|
|
11650
|
-
className:
|
|
11664
|
+
className: x(
|
|
11651
11665
|
Re("xs"),
|
|
11652
11666
|
"text-fg-secondary"
|
|
11653
11667
|
),
|
|
11654
|
-
children:
|
|
11668
|
+
children: g(M.file.size)
|
|
11655
11669
|
}
|
|
11656
11670
|
),
|
|
11657
11671
|
M.error && /* @__PURE__ */ n.jsxs(
|
|
11658
11672
|
"div",
|
|
11659
11673
|
{
|
|
11660
|
-
className:
|
|
11674
|
+
className: x(
|
|
11661
11675
|
"flex",
|
|
11662
11676
|
"items-center",
|
|
11663
11677
|
f("xs", "gap"),
|
|
@@ -11667,13 +11681,13 @@ function wf({
|
|
|
11667
11681
|
/* @__PURE__ */ n.jsx(
|
|
11668
11682
|
Ar,
|
|
11669
11683
|
{
|
|
11670
|
-
className:
|
|
11684
|
+
className: x("h-3", "w-3", "text-fg-error")
|
|
11671
11685
|
}
|
|
11672
11686
|
),
|
|
11673
11687
|
/* @__PURE__ */ n.jsx(
|
|
11674
11688
|
"span",
|
|
11675
11689
|
{
|
|
11676
|
-
className:
|
|
11690
|
+
className: x(
|
|
11677
11691
|
Re("xs"),
|
|
11678
11692
|
"text-fg-error"
|
|
11679
11693
|
),
|
|
@@ -11683,9 +11697,9 @@ function wf({
|
|
|
11683
11697
|
]
|
|
11684
11698
|
}
|
|
11685
11699
|
),
|
|
11686
|
-
l && M.progress !== void 0 && /* @__PURE__ */ n.jsx("div", { className:
|
|
11700
|
+
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
11701
|
] }),
|
|
11688
|
-
!M.error && !l && /* @__PURE__ */ n.jsx(Nr, { className:
|
|
11702
|
+
!M.error && !l && /* @__PURE__ */ n.jsx(Nr, { className: x("h-5", "w-5", "text-fg-success") }),
|
|
11689
11703
|
/* @__PURE__ */ n.jsx(
|
|
11690
11704
|
ie,
|
|
11691
11705
|
{
|
|
@@ -11722,7 +11736,7 @@ function xa({
|
|
|
11722
11736
|
triggerClassName: p = "",
|
|
11723
11737
|
contentClassName: m = ""
|
|
11724
11738
|
}) {
|
|
11725
|
-
const [b, h] = V(s), w = ee(null), y = ee(null), [
|
|
11739
|
+
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
11740
|
ir(C);
|
|
11727
11741
|
const j = Q(() => {
|
|
11728
11742
|
if (!w.current || !y.current) return;
|
|
@@ -11793,8 +11807,8 @@ function xa({
|
|
|
11793
11807
|
${m}
|
|
11794
11808
|
`,
|
|
11795
11809
|
style: {
|
|
11796
|
-
top: `${
|
|
11797
|
-
left: `${
|
|
11810
|
+
top: `${g.top}px`,
|
|
11811
|
+
left: `${g.left}px`
|
|
11798
11812
|
},
|
|
11799
11813
|
role: "dialog",
|
|
11800
11814
|
"aria-modal": "false",
|
|
@@ -11872,7 +11886,7 @@ function jf({
|
|
|
11872
11886
|
helperText: l,
|
|
11873
11887
|
className: d = ""
|
|
11874
11888
|
}) {
|
|
11875
|
-
const [c, u] = V(t || ""), [p, m] = V(12), [b, h] = V(0), [w, y] = V("AM"), [
|
|
11889
|
+
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
11890
|
(O) => {
|
|
11877
11891
|
if (!O) return { hours: 12, minutes: 0, amPm: "AM" };
|
|
11878
11892
|
if (r === "24h") {
|
|
@@ -12083,7 +12097,7 @@ function jf({
|
|
|
12083
12097
|
return /* @__PURE__ */ n.jsx("div", { className: d, children: /* @__PURE__ */ n.jsx(
|
|
12084
12098
|
xa,
|
|
12085
12099
|
{
|
|
12086
|
-
open: a ? !1 :
|
|
12100
|
+
open: a ? !1 : g,
|
|
12087
12101
|
onOpenChange: (O) => {
|
|
12088
12102
|
a || v(O);
|
|
12089
12103
|
},
|
|
@@ -12100,7 +12114,7 @@ function jf({
|
|
|
12100
12114
|
className: "cursor-pointer",
|
|
12101
12115
|
role: "combobox",
|
|
12102
12116
|
"aria-haspopup": "dialog",
|
|
12103
|
-
"aria-expanded": !a &&
|
|
12117
|
+
"aria-expanded": !a && g,
|
|
12104
12118
|
onKeyDown: R
|
|
12105
12119
|
}
|
|
12106
12120
|
),
|
|
@@ -12139,7 +12153,7 @@ function kf({
|
|
|
12139
12153
|
m(j);
|
|
12140
12154
|
}
|
|
12141
12155
|
}, [h]);
|
|
12142
|
-
const
|
|
12156
|
+
const g = (j) => {
|
|
12143
12157
|
const S = j.target.value;
|
|
12144
12158
|
(/^#[0-9A-F]{6}$/i.test(S) || S === "") && (b || u(S), s == null || s(S), S && m(w(S)));
|
|
12145
12159
|
}, v = (j, S) => {
|
|
@@ -12259,7 +12273,7 @@ function kf({
|
|
|
12259
12273
|
{
|
|
12260
12274
|
label: "Hex",
|
|
12261
12275
|
value: h,
|
|
12262
|
-
onChange:
|
|
12276
|
+
onChange: g,
|
|
12263
12277
|
disabled: i,
|
|
12264
12278
|
placeholder: "#000000",
|
|
12265
12279
|
className: "font-mono"
|
|
@@ -12323,7 +12337,7 @@ function kf({
|
|
|
12323
12337
|
We,
|
|
12324
12338
|
{
|
|
12325
12339
|
value: h,
|
|
12326
|
-
onChange:
|
|
12340
|
+
onChange: g,
|
|
12327
12341
|
disabled: i,
|
|
12328
12342
|
placeholder: "#000000",
|
|
12329
12343
|
className: "w-24 font-mono"
|
|
@@ -12439,7 +12453,7 @@ function ya({
|
|
|
12439
12453
|
right: "right-0 top-0 bottom-0",
|
|
12440
12454
|
top: "top-0 left-0 right-0",
|
|
12441
12455
|
bottom: "bottom-0 left-0 right-0"
|
|
12442
|
-
},
|
|
12456
|
+
}, g = /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
12443
12457
|
/* @__PURE__ */ n.jsx(
|
|
12444
12458
|
"div",
|
|
12445
12459
|
{
|
|
@@ -12518,7 +12532,7 @@ function ya({
|
|
|
12518
12532
|
}
|
|
12519
12533
|
)
|
|
12520
12534
|
] });
|
|
12521
|
-
return typeof window != "undefined" ? ot(
|
|
12535
|
+
return typeof window != "undefined" ? ot(g, document.body) : null;
|
|
12522
12536
|
}
|
|
12523
12537
|
function od(s) {
|
|
12524
12538
|
var a = s, {
|
|
@@ -12627,7 +12641,7 @@ const ja = be(
|
|
|
12627
12641
|
s == null || s(w), c(!d);
|
|
12628
12642
|
}, p = rr.count(t) === 1 && Mt(t);
|
|
12629
12643
|
if (r === !0 || r === void 0 && p) {
|
|
12630
|
-
const w = rr.only(t), y = w.props.onClick,
|
|
12644
|
+
const w = rr.only(t), y = w.props.onClick, g = (v) => {
|
|
12631
12645
|
y == null || y(v), v.defaultPrevented || u(v);
|
|
12632
12646
|
};
|
|
12633
12647
|
return ar(w, L(A({}, a), {
|
|
@@ -12635,7 +12649,7 @@ const ja = be(
|
|
|
12635
12649
|
tabIndex: (h = w.props.tabIndex) != null ? h : 0,
|
|
12636
12650
|
"aria-haspopup": "menu",
|
|
12637
12651
|
"aria-expanded": d,
|
|
12638
|
-
onClick:
|
|
12652
|
+
onClick: g,
|
|
12639
12653
|
ref: cd(o, w.props.ref)
|
|
12640
12654
|
}));
|
|
12641
12655
|
}
|
|
@@ -12671,9 +12685,9 @@ function dd({
|
|
|
12671
12685
|
}, [s]), Y(() => {
|
|
12672
12686
|
if (s && i.current && l.current) {
|
|
12673
12687
|
const p = () => {
|
|
12674
|
-
const h = l.current.getBoundingClientRect(), w = i.current.getBoundingClientRect(), y = window.scrollY,
|
|
12688
|
+
const h = l.current.getBoundingClientRect(), w = i.current.getBoundingClientRect(), y = window.scrollY, g = window.scrollX;
|
|
12675
12689
|
let v = 0, k = 0;
|
|
12676
|
-
o === "bottom" ? (v = h.bottom + y + 4, r === "start" ? k = h.left +
|
|
12690
|
+
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
12691
|
const $ = 8;
|
|
12678
12692
|
v = Math.max(
|
|
12679
12693
|
$,
|
|
@@ -12685,7 +12699,7 @@ function dd({
|
|
|
12685
12699
|
$,
|
|
12686
12700
|
Math.min(
|
|
12687
12701
|
k,
|
|
12688
|
-
window.innerWidth +
|
|
12702
|
+
window.innerWidth + g - w.width - $
|
|
12689
12703
|
)
|
|
12690
12704
|
), c({ top: v, left: k });
|
|
12691
12705
|
};
|
|
@@ -12863,7 +12877,7 @@ function Nf({
|
|
|
12863
12877
|
return /* @__PURE__ */ n.jsxs(
|
|
12864
12878
|
"div",
|
|
12865
12879
|
{
|
|
12866
|
-
className:
|
|
12880
|
+
className: x(
|
|
12867
12881
|
"border border-line-default",
|
|
12868
12882
|
G("md"),
|
|
12869
12883
|
"overflow-hidden",
|
|
@@ -12876,7 +12890,7 @@ function Nf({
|
|
|
12876
12890
|
type: "button",
|
|
12877
12891
|
onClick: () => d(c.id),
|
|
12878
12892
|
disabled: p,
|
|
12879
|
-
className:
|
|
12893
|
+
className: x(
|
|
12880
12894
|
"w-full flex items-center justify-between",
|
|
12881
12895
|
f("base", "px"),
|
|
12882
12896
|
f("md", "py"),
|
|
@@ -12911,7 +12925,7 @@ function Nf({
|
|
|
12911
12925
|
"div",
|
|
12912
12926
|
{
|
|
12913
12927
|
id: `accordion-content-${c.id}`,
|
|
12914
|
-
className:
|
|
12928
|
+
className: x(
|
|
12915
12929
|
"grid",
|
|
12916
12930
|
Me("base"),
|
|
12917
12931
|
u ? "grid-rows-[1fr] opacity-100" : "grid-rows-[0fr] opacity-0"
|
|
@@ -12920,7 +12934,7 @@ function Nf({
|
|
|
12920
12934
|
children: /* @__PURE__ */ n.jsx("div", { className: "min-h-0 overflow-hidden", children: /* @__PURE__ */ n.jsx(
|
|
12921
12935
|
"div",
|
|
12922
12936
|
{
|
|
12923
|
-
className:
|
|
12937
|
+
className: x(
|
|
12924
12938
|
f("base", "px"),
|
|
12925
12939
|
f("md", "py"),
|
|
12926
12940
|
"text-fg-secondary",
|
|
@@ -12993,7 +13007,7 @@ function fd(a) {
|
|
|
12993
13007
|
L(A({
|
|
12994
13008
|
href: r || "/",
|
|
12995
13009
|
variant: "default",
|
|
12996
|
-
className:
|
|
13010
|
+
className: x("flex items-center font-semibold text-lg", t)
|
|
12997
13011
|
}, s), {
|
|
12998
13012
|
children: e
|
|
12999
13013
|
})
|
|
@@ -13006,7 +13020,7 @@ function md({
|
|
|
13006
13020
|
return /* @__PURE__ */ n.jsx(
|
|
13007
13021
|
"nav",
|
|
13008
13022
|
{
|
|
13009
|
-
className:
|
|
13023
|
+
className: x(
|
|
13010
13024
|
"flex-1 flex items-center justify-center",
|
|
13011
13025
|
f("base", "gap"),
|
|
13012
13026
|
"hidden md:flex",
|
|
@@ -13022,7 +13036,7 @@ function pd({ children: e, className: t }) {
|
|
|
13022
13036
|
return /* @__PURE__ */ n.jsx(
|
|
13023
13037
|
"div",
|
|
13024
13038
|
{
|
|
13025
|
-
className:
|
|
13039
|
+
className: x(
|
|
13026
13040
|
"flex-shrink-0 flex items-center",
|
|
13027
13041
|
f("sm", "gap"),
|
|
13028
13042
|
t
|
|
@@ -13045,7 +13059,7 @@ function bd({
|
|
|
13045
13059
|
variant: s,
|
|
13046
13060
|
size: a,
|
|
13047
13061
|
onClick: i,
|
|
13048
|
-
className:
|
|
13062
|
+
className: x("md:hidden", e),
|
|
13049
13063
|
"aria-label": o ? "Close menu" : "Open menu",
|
|
13050
13064
|
"aria-expanded": o,
|
|
13051
13065
|
children: o ? d : l
|
|
@@ -13068,7 +13082,7 @@ function hd({
|
|
|
13068
13082
|
size: "sm",
|
|
13069
13083
|
closeOnOverlayClick: !0,
|
|
13070
13084
|
closeOnEscape: !0,
|
|
13071
|
-
children: /* @__PURE__ */ n.jsx(ya, { className:
|
|
13085
|
+
children: /* @__PURE__ */ n.jsx(ya, { className: x(f("base", "p"), t), children: /* @__PURE__ */ n.jsx(
|
|
13072
13086
|
"nav",
|
|
13073
13087
|
{
|
|
13074
13088
|
className: `flex flex-col ${f("sm", "gap")}`,
|
|
@@ -13107,7 +13121,7 @@ const xd = {
|
|
|
13107
13121
|
"div",
|
|
13108
13122
|
L(A({
|
|
13109
13123
|
ref: l,
|
|
13110
|
-
className:
|
|
13124
|
+
className: x(
|
|
13111
13125
|
"w-full",
|
|
13112
13126
|
xd[t],
|
|
13113
13127
|
f(r, "px"),
|
|
@@ -13156,7 +13170,7 @@ const Wt = xe.forwardRef(
|
|
|
13156
13170
|
"div",
|
|
13157
13171
|
L(A({
|
|
13158
13172
|
ref: l,
|
|
13159
|
-
className:
|
|
13173
|
+
className: x(
|
|
13160
13174
|
"flex",
|
|
13161
13175
|
a === "column" ? "flex-col" : "flex-row",
|
|
13162
13176
|
u,
|
|
@@ -13173,13 +13187,13 @@ const Wt = xe.forwardRef(
|
|
|
13173
13187
|
Wt.displayName = "Stack";
|
|
13174
13188
|
const gd = Ne(
|
|
13175
13189
|
// Base classes
|
|
13176
|
-
|
|
13190
|
+
x("w-full", "bg-surface-base", "transition-shadow", "transition-colors"),
|
|
13177
13191
|
{
|
|
13178
13192
|
variants: {
|
|
13179
13193
|
variant: {
|
|
13180
13194
|
default: "",
|
|
13181
13195
|
elevated: ke("sm"),
|
|
13182
|
-
bordered:
|
|
13196
|
+
bordered: x("border-b", "border-line-muted")
|
|
13183
13197
|
}
|
|
13184
13198
|
},
|
|
13185
13199
|
defaultVariants: {
|
|
@@ -13210,10 +13224,10 @@ function lr(l) {
|
|
|
13210
13224
|
children: e
|
|
13211
13225
|
}
|
|
13212
13226
|
);
|
|
13213
|
-
return a ? /* @__PURE__ */ n.jsx(vn, { children: /* @__PURE__ */ n.jsx("div", L(A({ className:
|
|
13227
|
+
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
13228
|
"header",
|
|
13215
13229
|
L(A({
|
|
13216
|
-
className:
|
|
13230
|
+
className: x(
|
|
13217
13231
|
gd({ variant: t }),
|
|
13218
13232
|
r && `sticky top-0 ${Ae("sticky")}`,
|
|
13219
13233
|
r && "backdrop-blur-sm bg-surface-base/95",
|
|
@@ -13231,7 +13245,7 @@ lr.Hamburger = bd;
|
|
|
13231
13245
|
lr.MobileMenu = hd;
|
|
13232
13246
|
const yn = Ne(
|
|
13233
13247
|
// Base classes
|
|
13234
|
-
|
|
13248
|
+
x("flex", "items-center", f("sm", "gap")),
|
|
13235
13249
|
{
|
|
13236
13250
|
variants: {
|
|
13237
13251
|
orientation: {
|
|
@@ -13302,7 +13316,7 @@ function vd(d) {
|
|
|
13302
13316
|
active: b.active,
|
|
13303
13317
|
disabled: b.disabled,
|
|
13304
13318
|
variant: w,
|
|
13305
|
-
className:
|
|
13319
|
+
className: x(
|
|
13306
13320
|
"flex items-center",
|
|
13307
13321
|
f("sm", "gap"),
|
|
13308
13322
|
t === "vertical" && "w-full justify-start",
|
|
@@ -13320,14 +13334,14 @@ function vd(d) {
|
|
|
13320
13334
|
return o ? /* @__PURE__ */ n.jsx(
|
|
13321
13335
|
"div",
|
|
13322
13336
|
L(A({
|
|
13323
|
-
className:
|
|
13337
|
+
className: x(yn({ orientation: t, variant: r }), s)
|
|
13324
13338
|
}, l), {
|
|
13325
13339
|
children: m
|
|
13326
13340
|
})
|
|
13327
13341
|
) : /* @__PURE__ */ n.jsx(
|
|
13328
13342
|
"nav",
|
|
13329
13343
|
L(A({
|
|
13330
|
-
className:
|
|
13344
|
+
className: x(yn({ orientation: t, variant: r }), s),
|
|
13331
13345
|
"aria-label": a
|
|
13332
13346
|
}, l), {
|
|
13333
13347
|
children: m
|
|
@@ -13339,12 +13353,12 @@ function $f(e) {
|
|
|
13339
13353
|
}
|
|
13340
13354
|
const yd = Ne(
|
|
13341
13355
|
// Base classes
|
|
13342
|
-
|
|
13356
|
+
x("w-full", "flex", "flex-col", f("sm", "gap")),
|
|
13343
13357
|
{
|
|
13344
13358
|
variants: {
|
|
13345
13359
|
variant: {
|
|
13346
|
-
default:
|
|
13347
|
-
compact:
|
|
13360
|
+
default: x(f("base", "mb")),
|
|
13361
|
+
compact: x(f("sm", "mb"))
|
|
13348
13362
|
}
|
|
13349
13363
|
},
|
|
13350
13364
|
defaultVariants: {
|
|
@@ -13368,7 +13382,7 @@ function Sf(l) {
|
|
|
13368
13382
|
"variant",
|
|
13369
13383
|
"className"
|
|
13370
13384
|
]);
|
|
13371
|
-
return /* @__PURE__ */ n.jsxs("div", L(A({ className:
|
|
13385
|
+
return /* @__PURE__ */ n.jsxs("div", L(A({ className: x(yd({ variant: a }), o) }, i), { children: [
|
|
13372
13386
|
r && r.length > 0 && /* @__PURE__ */ n.jsx(Wc, { items: r }),
|
|
13373
13387
|
/* @__PURE__ */ n.jsxs(
|
|
13374
13388
|
"div",
|
|
@@ -13410,7 +13424,7 @@ function Cf(s) {
|
|
|
13410
13424
|
return /* @__PURE__ */ n.jsx(
|
|
13411
13425
|
"div",
|
|
13412
13426
|
{
|
|
13413
|
-
className:
|
|
13427
|
+
className: x(
|
|
13414
13428
|
f("base", "p"),
|
|
13415
13429
|
"bg-surface-muted",
|
|
13416
13430
|
G("md"),
|
|
@@ -13486,7 +13500,7 @@ function Ef(p) {
|
|
|
13486
13500
|
}, [e, t]), Y(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
13487
13501
|
document.body.style.overflow = "";
|
|
13488
13502
|
}), [e]), !e) return null;
|
|
13489
|
-
const
|
|
13503
|
+
const g = [
|
|
13490
13504
|
"fixed",
|
|
13491
13505
|
"inset-0",
|
|
13492
13506
|
Ae("modal"),
|
|
@@ -13508,7 +13522,7 @@ function Ef(p) {
|
|
|
13508
13522
|
].filter(Boolean).join(" "), C = /* @__PURE__ */ n.jsxs(
|
|
13509
13523
|
"div",
|
|
13510
13524
|
{
|
|
13511
|
-
className:
|
|
13525
|
+
className: g.join(" "),
|
|
13512
13526
|
role: "dialog",
|
|
13513
13527
|
"aria-modal": "true",
|
|
13514
13528
|
"aria-labelledby": y,
|
|
@@ -13624,7 +13638,7 @@ function wn({
|
|
|
13624
13638
|
defaultSortColumn: h,
|
|
13625
13639
|
defaultSortDirection: w = "asc",
|
|
13626
13640
|
filters: y,
|
|
13627
|
-
filterValues:
|
|
13641
|
+
filterValues: g,
|
|
13628
13642
|
onFilter: v,
|
|
13629
13643
|
initialFilterValues: k = {},
|
|
13630
13644
|
selectable: $ = !1,
|
|
@@ -13647,7 +13661,7 @@ function wn({
|
|
|
13647
13661
|
}) {
|
|
13648
13662
|
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
13663
|
h || ""
|
|
13650
|
-
), [Ie, qe] = V(w), we = re ? p : J, Fe = re ? m || "asc" : Ie, zr =
|
|
13664
|
+
), [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
13665
|
[]
|
|
13652
13666
|
), Xe = Or ? C : Xa, dr = K(() => !y || y.length === 0 ? t : t.filter((fe) => y.every((ye) => {
|
|
13653
13667
|
const Se = cr[ye.key];
|
|
@@ -13854,7 +13868,7 @@ function Sa(d) {
|
|
|
13854
13868
|
if (!e.sortable || !m && !p) return;
|
|
13855
13869
|
const j = u.column === e.key && u.direction === "asc" ? "desc" : "asc";
|
|
13856
13870
|
m ? m(e.key, j) : p(e.key, j);
|
|
13857
|
-
},
|
|
13871
|
+
}, g = (j) => {
|
|
13858
13872
|
$ && (j.key === "Enter" || j.key === " ") && (j.preventDefault(), y());
|
|
13859
13873
|
}, v = (j) => {
|
|
13860
13874
|
if (j.preventDefault(), j.stopPropagation(), !h.current || !s) return;
|
|
@@ -13890,7 +13904,7 @@ function Sa(d) {
|
|
|
13890
13904
|
"aria-sort": k ? C === "asc" ? "ascending" : "descending" : $ ? "none" : void 0,
|
|
13891
13905
|
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
13906
|
onClick: $ ? y : void 0,
|
|
13893
|
-
onKeyDown: $ ?
|
|
13907
|
+
onKeyDown: $ ? g : void 0,
|
|
13894
13908
|
tabIndex: $ ? 0 : void 0,
|
|
13895
13909
|
style: r ? { width: `${r}px`, minWidth: `${r}px` } : void 0
|
|
13896
13910
|
}, l), {
|
|
@@ -14078,7 +14092,7 @@ function is(i) {
|
|
|
14078
14092
|
getRowId: m,
|
|
14079
14093
|
actions: b,
|
|
14080
14094
|
onRowClick: h
|
|
14081
|
-
} = lt(), w = m(e, t), y = u.selectedRows.includes(w),
|
|
14095
|
+
} = lt(), w = m(e, t), y = u.selectedRows.includes(w), g = !!h, v = ($) => {
|
|
14082
14096
|
s && s($), h && h(e);
|
|
14083
14097
|
}, k = ($) => {
|
|
14084
14098
|
h && ($.key === "Enter" || $.key === " ") && ($.key === " " && $.preventDefault(), h(e));
|
|
@@ -14089,9 +14103,9 @@ function is(i) {
|
|
|
14089
14103
|
role: "row",
|
|
14090
14104
|
"aria-selected": c ? y : void 0,
|
|
14091
14105
|
"aria-rowindex": t + 1,
|
|
14092
|
-
tabIndex:
|
|
14093
|
-
onKeyDown:
|
|
14094
|
-
className: `hover:bg-surface-hover ${
|
|
14106
|
+
tabIndex: g ? 0 : void 0,
|
|
14107
|
+
onKeyDown: g ? k : void 0,
|
|
14108
|
+
className: `hover:bg-surface-hover ${g ? "cursor-pointer" : ""} ${y ? "bg-surface-selected" : ""} ${r}`,
|
|
14095
14109
|
onClick: v,
|
|
14096
14110
|
style: a
|
|
14097
14111
|
}, o), {
|
|
@@ -14221,16 +14235,16 @@ function Da(s) {
|
|
|
14221
14235
|
containerHeight: p == null ? void 0 : p.containerHeight,
|
|
14222
14236
|
overscan: (p == null ? void 0 : p.overscan) || 5,
|
|
14223
14237
|
enabled: u || !1
|
|
14224
|
-
}), h = K(() => u && b.virtualItems.length > 0 ? b.virtualItems.map((
|
|
14225
|
-
row: o[
|
|
14226
|
-
index:
|
|
14227
|
-
})).filter((
|
|
14238
|
+
}), h = K(() => u && b.virtualItems.length > 0 ? b.virtualItems.map((g) => ({
|
|
14239
|
+
row: o[g.index],
|
|
14240
|
+
index: g.index
|
|
14241
|
+
})).filter((g) => g.row !== void 0) : o.map((g, v) => ({ row: g, index: v })), [u, b.virtualItems, o]);
|
|
14228
14242
|
return i ? /* @__PURE__ */ n.jsx(
|
|
14229
14243
|
"tbody",
|
|
14230
14244
|
L(A({
|
|
14231
14245
|
className: `bg-surface-base divide-y divide-line-default ${t}`
|
|
14232
14246
|
}, r), {
|
|
14233
|
-
children: Array.from({ length: 5 }).map((
|
|
14247
|
+
children: Array.from({ length: 5 }).map((g, v) => /* @__PURE__ */ n.jsx("tr", { children: Array.from({ length: m }).map((k, $) => /* @__PURE__ */ n.jsx(
|
|
14234
14248
|
"td",
|
|
14235
14249
|
{
|
|
14236
14250
|
className: `${f("lg", "px")} ${f("base", "py")}`,
|
|
@@ -14258,7 +14272,7 @@ function Da(s) {
|
|
|
14258
14272
|
L(A({
|
|
14259
14273
|
className: `bg-surface-base divide-y divide-line-default ${t}`
|
|
14260
14274
|
}, r), {
|
|
14261
|
-
children: o.map((
|
|
14275
|
+
children: o.map((g, v) => e(g, v))
|
|
14262
14276
|
})
|
|
14263
14277
|
) : /* @__PURE__ */ n.jsx(
|
|
14264
14278
|
"tbody",
|
|
@@ -14277,7 +14291,7 @@ function Da(s) {
|
|
|
14277
14291
|
children: /* @__PURE__ */ n.jsx("td", { colSpan: m })
|
|
14278
14292
|
}
|
|
14279
14293
|
),
|
|
14280
|
-
h.map(({ row:
|
|
14294
|
+
h.map(({ row: g, index: v }) => /* @__PURE__ */ n.jsx(is, { row: g, rowIndex: v }, v)),
|
|
14281
14295
|
b.virtualItems.length > 0 && /* @__PURE__ */ n.jsx(
|
|
14282
14296
|
"tr",
|
|
14283
14297
|
{
|
|
@@ -14294,7 +14308,7 @@ function Da(s) {
|
|
|
14294
14308
|
] })
|
|
14295
14309
|
) : (
|
|
14296
14310
|
// Normal rendering
|
|
14297
|
-
h.map(({ row:
|
|
14311
|
+
h.map(({ row: g, index: v }) => /* @__PURE__ */ n.jsx(is, { row: g, rowIndex: v }, v))
|
|
14298
14312
|
)
|
|
14299
14313
|
})
|
|
14300
14314
|
);
|
|
@@ -14326,7 +14340,7 @@ function Nd(i) {
|
|
|
14326
14340
|
}, y = (v) => {
|
|
14327
14341
|
const k = L(A({}, d), { [v]: "" });
|
|
14328
14342
|
c(k), t(k);
|
|
14329
|
-
},
|
|
14343
|
+
}, g = Object.values(d).filter(
|
|
14330
14344
|
(v) => v !== "" && v !== null && v !== void 0
|
|
14331
14345
|
).length;
|
|
14332
14346
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -14351,11 +14365,11 @@ function Nd(i) {
|
|
|
14351
14365
|
children: [
|
|
14352
14366
|
/* @__PURE__ */ n.jsx(nl, { className: "h-4 w-4" }),
|
|
14353
14367
|
/* @__PURE__ */ n.jsx("span", { children: "Filters" }),
|
|
14354
|
-
|
|
14368
|
+
g > 0 && /* @__PURE__ */ n.jsx(
|
|
14355
14369
|
"span",
|
|
14356
14370
|
{
|
|
14357
14371
|
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:
|
|
14372
|
+
children: g
|
|
14359
14373
|
}
|
|
14360
14374
|
)
|
|
14361
14375
|
]
|
|
@@ -14503,7 +14517,7 @@ function $d(u) {
|
|
|
14503
14517
|
e > 1 && s(e - 1);
|
|
14504
14518
|
}, y = () => {
|
|
14505
14519
|
e < m && s(e + 1);
|
|
14506
|
-
},
|
|
14520
|
+
}, g = () => {
|
|
14507
14521
|
e > 1 && s(1);
|
|
14508
14522
|
}, v = () => {
|
|
14509
14523
|
e < m && s(m);
|
|
@@ -14585,7 +14599,7 @@ function $d(u) {
|
|
|
14585
14599
|
{
|
|
14586
14600
|
variant: "ghost",
|
|
14587
14601
|
size: "sm",
|
|
14588
|
-
onClick:
|
|
14602
|
+
onClick: g,
|
|
14589
14603
|
disabled: e === 1,
|
|
14590
14604
|
"aria-label": "First page",
|
|
14591
14605
|
children: [
|
|
@@ -14751,7 +14765,7 @@ function Sd(e) {
|
|
|
14751
14765
|
selectable: h,
|
|
14752
14766
|
selectedRows: w,
|
|
14753
14767
|
onSelectionChange: y,
|
|
14754
|
-
rowId:
|
|
14768
|
+
rowId: g,
|
|
14755
14769
|
actions: v,
|
|
14756
14770
|
onRowClick: k,
|
|
14757
14771
|
paginationMode: $,
|
|
@@ -14791,7 +14805,7 @@ function Sd(e) {
|
|
|
14791
14805
|
selectable: h,
|
|
14792
14806
|
selectedRows: w,
|
|
14793
14807
|
onSelectionChange: y,
|
|
14794
|
-
rowId:
|
|
14808
|
+
rowId: g,
|
|
14795
14809
|
actions: v,
|
|
14796
14810
|
onRowClick: k,
|
|
14797
14811
|
emptyMessage: l,
|
|
@@ -14827,27 +14841,27 @@ function Tf(e = {}) {
|
|
|
14827
14841
|
} = e, [o, i] = V(t), [l, d] = V(!1), [c, u] = V(null), p = ee(
|
|
14828
14842
|
null
|
|
14829
14843
|
), m = Q(
|
|
14830
|
-
(
|
|
14844
|
+
(g, v) => {
|
|
14831
14845
|
const k = Math.max(
|
|
14832
14846
|
r,
|
|
14833
14847
|
s ? Math.min(v, s) : v
|
|
14834
14848
|
);
|
|
14835
14849
|
i(($) => L(A({}, $), {
|
|
14836
|
-
[
|
|
14850
|
+
[g]: k
|
|
14837
14851
|
}));
|
|
14838
14852
|
},
|
|
14839
14853
|
[r, s]
|
|
14840
14854
|
), b = Q(() => {
|
|
14841
14855
|
i(t);
|
|
14842
14856
|
}, [t]), h = Q(
|
|
14843
|
-
(
|
|
14844
|
-
a && (d(!0), u(
|
|
14857
|
+
(g, v, k) => {
|
|
14858
|
+
a && (d(!0), u(g), p.current = { startX: v, startWidth: k });
|
|
14845
14859
|
},
|
|
14846
14860
|
[a]
|
|
14847
14861
|
), w = Q(
|
|
14848
|
-
(
|
|
14862
|
+
(g) => {
|
|
14849
14863
|
if (!l || !c || !p.current) return;
|
|
14850
|
-
const v =
|
|
14864
|
+
const v = g - p.current.startX, k = p.current.startWidth + v;
|
|
14851
14865
|
m(c, k);
|
|
14852
14866
|
},
|
|
14853
14867
|
[l, c, m]
|
|
@@ -14856,9 +14870,9 @@ function Tf(e = {}) {
|
|
|
14856
14870
|
}, []);
|
|
14857
14871
|
return Y(() => {
|
|
14858
14872
|
if (!l || typeof window == "undefined") return;
|
|
14859
|
-
const
|
|
14860
|
-
return document.addEventListener("mousemove",
|
|
14861
|
-
document.removeEventListener("mousemove",
|
|
14873
|
+
const g = (k) => w(k.clientX), v = () => y();
|
|
14874
|
+
return document.addEventListener("mousemove", g), document.addEventListener("mouseup", v), () => {
|
|
14875
|
+
document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", v);
|
|
14862
14876
|
};
|
|
14863
14877
|
}, [l, w, y]), {
|
|
14864
14878
|
columnWidths: o,
|
|
@@ -15106,7 +15120,7 @@ function Ad({
|
|
|
15106
15120
|
[i, u, h]
|
|
15107
15121
|
), y = Q(() => {
|
|
15108
15122
|
i && (p(!1), m.current = 0, b.current = d);
|
|
15109
|
-
}, [i, d]),
|
|
15123
|
+
}, [i, d]), g = Q(
|
|
15110
15124
|
(v) => {
|
|
15111
15125
|
i && (v.preventDefault(), v.stopPropagation(), p(!0), m.current = v.clientX, b.current = d);
|
|
15112
15126
|
},
|
|
@@ -15122,7 +15136,7 @@ function Ad({
|
|
|
15122
15136
|
}, [e, t, r, u]), {
|
|
15123
15137
|
width: d,
|
|
15124
15138
|
isResizing: u,
|
|
15125
|
-
startResize:
|
|
15139
|
+
startResize: g,
|
|
15126
15140
|
setWidth: h
|
|
15127
15141
|
};
|
|
15128
15142
|
}
|
|
@@ -15208,8 +15222,8 @@ function Dd({
|
|
|
15208
15222
|
const u = c.target;
|
|
15209
15223
|
if ((u.tagName === "INPUT" || u.tagName === "TEXTAREA" || u.isContentEditable) && !t && !a)
|
|
15210
15224
|
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 &&
|
|
15225
|
+
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;
|
|
15226
|
+
m && g && h && w && (l && (c.preventDefault(), c.stopPropagation()), o());
|
|
15213
15227
|
},
|
|
15214
15228
|
[i, e, t, r, s, a, o, l]
|
|
15215
15229
|
);
|
|
@@ -15248,7 +15262,7 @@ function Fa({
|
|
|
15248
15262
|
return ls(l.contentWidth);
|
|
15249
15263
|
}, [b, h] = V(
|
|
15250
15264
|
p
|
|
15251
|
-
), [w, y] = V({}), { isMobile:
|
|
15265
|
+
), [w, y] = V({}), { isMobile: g } = Id({
|
|
15252
15266
|
mobileBreakpoint: d.mobileBreakpoint,
|
|
15253
15267
|
onMobileChange: (R) => {
|
|
15254
15268
|
o == null || o(R), R && d.mobileVariant === "collapse" && !u && (h(!0), s == null || s(!0));
|
|
@@ -15267,10 +15281,10 @@ function Fa({
|
|
|
15267
15281
|
onWidthChange: (R) => {
|
|
15268
15282
|
a == null || a(R), d.storageKey && d.persistWidth && typeof window != "undefined" && localStorage.setItem(`${d.storageKey}-width`, String(R));
|
|
15269
15283
|
},
|
|
15270
|
-
enabled: d.resizable && !
|
|
15284
|
+
enabled: d.resizable && !g
|
|
15271
15285
|
});
|
|
15272
15286
|
Td({
|
|
15273
|
-
isActive:
|
|
15287
|
+
isActive: g && d.mobileVariant === "overlay" && !b,
|
|
15274
15288
|
containerRef: c,
|
|
15275
15289
|
restoreFocus: !0
|
|
15276
15290
|
});
|
|
@@ -15333,7 +15347,7 @@ function Fa({
|
|
|
15333
15347
|
setCollapsed: S,
|
|
15334
15348
|
currentWidth: v,
|
|
15335
15349
|
setWidth: _,
|
|
15336
|
-
isMobile:
|
|
15350
|
+
isMobile: g,
|
|
15337
15351
|
isResizing: k,
|
|
15338
15352
|
startResize: $,
|
|
15339
15353
|
groupStates: w,
|
|
@@ -15347,7 +15361,7 @@ function Fa({
|
|
|
15347
15361
|
S,
|
|
15348
15362
|
v,
|
|
15349
15363
|
_,
|
|
15350
|
-
|
|
15364
|
+
g,
|
|
15351
15365
|
k,
|
|
15352
15366
|
$,
|
|
15353
15367
|
w,
|
|
@@ -15377,7 +15391,7 @@ function za({
|
|
|
15377
15391
|
overlayBackdrop: h,
|
|
15378
15392
|
persistState: w,
|
|
15379
15393
|
persistWidth: y,
|
|
15380
|
-
storageKey:
|
|
15394
|
+
storageKey: g,
|
|
15381
15395
|
keyboardShortcut: v,
|
|
15382
15396
|
enableKeyboardShortcut: k,
|
|
15383
15397
|
// State props
|
|
@@ -15410,7 +15424,7 @@ function za({
|
|
|
15410
15424
|
overlayBackdrop: h,
|
|
15411
15425
|
persistState: w,
|
|
15412
15426
|
persistWidth: y,
|
|
15413
|
-
storageKey:
|
|
15427
|
+
storageKey: g,
|
|
15414
15428
|
keyboardShortcut: v,
|
|
15415
15429
|
enableKeyboardShortcut: k,
|
|
15416
15430
|
children: /* @__PURE__ */ n.jsx(
|
|
@@ -15660,16 +15674,16 @@ function Ha(w) {
|
|
|
15660
15674
|
"aria-label"
|
|
15661
15675
|
]);
|
|
15662
15676
|
var z, O;
|
|
15663
|
-
const { collapsed:
|
|
15677
|
+
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
15678
|
if (typeof r == "function")
|
|
15665
|
-
return r(
|
|
15679
|
+
return r(g);
|
|
15666
15680
|
if (r)
|
|
15667
15681
|
return r;
|
|
15668
|
-
if (
|
|
15682
|
+
if (g && s)
|
|
15669
15683
|
return s;
|
|
15670
|
-
if (!
|
|
15684
|
+
if (!g && a)
|
|
15671
15685
|
return a;
|
|
15672
|
-
const H =
|
|
15686
|
+
const H = g ? bl : ml;
|
|
15673
15687
|
return /* @__PURE__ */ n.jsx(
|
|
15674
15688
|
H,
|
|
15675
15689
|
{
|
|
@@ -15681,7 +15695,7 @@ function Ha(w) {
|
|
|
15681
15695
|
}
|
|
15682
15696
|
}
|
|
15683
15697
|
);
|
|
15684
|
-
}, D =
|
|
15698
|
+
}, D = g ? "Expand sidebar" : "Collapse sidebar", _ = d != null ? d : Od[e], M = l ? `${g ? "Expand" : "Collapse"} sidebar${S ? ` (${j})` : ""}` : void 0, T = t ? {
|
|
15685
15699
|
transform: `translate(${(z = t.x) != null ? z : 0}px, ${(O = t.y) != null ? O : 0}px)`
|
|
15686
15700
|
} : {}, I = e === "floating" ? A({
|
|
15687
15701
|
// Toggle sempre na borda direita da sidebar completa (<aside>)
|
|
@@ -15728,7 +15742,7 @@ function Ha(w) {
|
|
|
15728
15742
|
// Ensure left doesn't interfere
|
|
15729
15743
|
} : {}), e !== "floating" ? I : {}), e === "floating" ? { zIndex: nn.fixed.value } : {}), m),
|
|
15730
15744
|
"aria-label": b || D,
|
|
15731
|
-
"aria-expanded": !
|
|
15745
|
+
"aria-expanded": !g,
|
|
15732
15746
|
"aria-controls": "side-navbar-sidebar",
|
|
15733
15747
|
"data-position": e
|
|
15734
15748
|
}, h), {
|
|
@@ -15819,7 +15833,7 @@ function Wd(o) {
|
|
|
15819
15833
|
collapsed: h,
|
|
15820
15834
|
setCollapsed: w,
|
|
15821
15835
|
currentWidth: y,
|
|
15822
|
-
isResizing:
|
|
15836
|
+
isResizing: g,
|
|
15823
15837
|
sidebarRef: v,
|
|
15824
15838
|
isMobile: k
|
|
15825
15839
|
} = l, {
|
|
@@ -15840,7 +15854,7 @@ function Wd(o) {
|
|
|
15840
15854
|
L(A({
|
|
15841
15855
|
ref: v,
|
|
15842
15856
|
id: "side-navbar-sidebar",
|
|
15843
|
-
className:
|
|
15857
|
+
className: x(
|
|
15844
15858
|
F,
|
|
15845
15859
|
"flex",
|
|
15846
15860
|
"h-full",
|
|
@@ -15857,7 +15871,7 @@ function Wd(o) {
|
|
|
15857
15871
|
borderRight: "1px solid var(--color-line-default)",
|
|
15858
15872
|
width: O,
|
|
15859
15873
|
minWidth: O,
|
|
15860
|
-
transitionProperty:
|
|
15874
|
+
transitionProperty: g ? "none" : "width, min-width, transform",
|
|
15861
15875
|
transitionDuration: `${S}ms`,
|
|
15862
15876
|
transitionTimingFunction: N
|
|
15863
15877
|
}, r),
|
|
@@ -15996,8 +16010,8 @@ const Hd = {
|
|
|
15996
16010
|
inline: `flex-row ${f("sm", "gap")} w-full ${f("md", "px")}`,
|
|
15997
16011
|
below: `flex-col ${f("1.5", "gap")}`
|
|
15998
16012
|
};
|
|
15999
|
-
function Gd(
|
|
16000
|
-
var v =
|
|
16013
|
+
function Gd(g) {
|
|
16014
|
+
var v = g, {
|
|
16001
16015
|
id: e,
|
|
16002
16016
|
icon: t,
|
|
16003
16017
|
label: r,
|
|
@@ -16046,7 +16060,7 @@ function Gd(x) {
|
|
|
16046
16060
|
}, _ = j !== "tooltip" && a && r && /* @__PURE__ */ n.jsx(
|
|
16047
16061
|
"span",
|
|
16048
16062
|
{
|
|
16049
|
-
className:
|
|
16063
|
+
className: x(
|
|
16050
16064
|
"text-xs",
|
|
16051
16065
|
"flex-shrink-0",
|
|
16052
16066
|
// Prevenir que label encolha
|
|
@@ -16062,7 +16076,7 @@ function Gd(x) {
|
|
|
16062
16076
|
},
|
|
16063
16077
|
children: r
|
|
16064
16078
|
}
|
|
16065
|
-
), M =
|
|
16079
|
+
), M = x(
|
|
16066
16080
|
"relative",
|
|
16067
16081
|
"flex",
|
|
16068
16082
|
"items-center",
|
|
@@ -16084,7 +16098,7 @@ function Gd(x) {
|
|
|
16084
16098
|
// Remover todas as transições que possam causar movimento
|
|
16085
16099
|
"[&>*]:!transition-none",
|
|
16086
16100
|
"[&>*]:!transform-none",
|
|
16087
|
-
j === "tooltip" ? N.container :
|
|
16101
|
+
j === "tooltip" ? N.container : x(f("sm", "px"), f("1.5", "py")),
|
|
16088
16102
|
j !== "tooltip" && Ud[j],
|
|
16089
16103
|
h ? "opacity-50 cursor-not-allowed" : "cursor-pointer",
|
|
16090
16104
|
w
|
|
@@ -16096,7 +16110,7 @@ function Gd(x) {
|
|
|
16096
16110
|
/* @__PURE__ */ n.jsx(
|
|
16097
16111
|
"span",
|
|
16098
16112
|
{
|
|
16099
|
-
className:
|
|
16113
|
+
className: x(
|
|
16100
16114
|
"flex-shrink-0",
|
|
16101
16115
|
N.icon,
|
|
16102
16116
|
"[&>svg]:transition-none",
|
|
@@ -16127,7 +16141,7 @@ function Gd(x) {
|
|
|
16127
16141
|
l != null && /* @__PURE__ */ n.jsx(
|
|
16128
16142
|
"span",
|
|
16129
16143
|
{
|
|
16130
|
-
className:
|
|
16144
|
+
className: x(
|
|
16131
16145
|
"absolute",
|
|
16132
16146
|
"-top-1",
|
|
16133
16147
|
"-right-1",
|
|
@@ -16155,7 +16169,7 @@ function Gd(x) {
|
|
|
16155
16169
|
target: m,
|
|
16156
16170
|
rel: m === "_blank" ? "noopener noreferrer" : void 0,
|
|
16157
16171
|
onClick: D,
|
|
16158
|
-
className:
|
|
16172
|
+
className: x(M, T[c]),
|
|
16159
16173
|
style: R,
|
|
16160
16174
|
"aria-label": r,
|
|
16161
16175
|
"aria-current": S ? "page" : void 0,
|
|
@@ -16169,7 +16183,7 @@ function Gd(x) {
|
|
|
16169
16183
|
type: "button",
|
|
16170
16184
|
onClick: D,
|
|
16171
16185
|
disabled: h,
|
|
16172
|
-
className:
|
|
16186
|
+
className: x(M, T[c]),
|
|
16173
16187
|
style: R,
|
|
16174
16188
|
"aria-label": r,
|
|
16175
16189
|
"aria-current": S ? "page" : void 0
|
|
@@ -16190,14 +16204,14 @@ function Kd(s) {
|
|
|
16190
16204
|
return e === "vertical" ? /* @__PURE__ */ n.jsx(
|
|
16191
16205
|
"div",
|
|
16192
16206
|
A({
|
|
16193
|
-
className:
|
|
16207
|
+
className: x("w-px", "h-6", "bg-line-default", "mx-auto", t),
|
|
16194
16208
|
role: "separator",
|
|
16195
16209
|
"aria-orientation": "vertical"
|
|
16196
16210
|
}, r)
|
|
16197
16211
|
) : /* @__PURE__ */ n.jsx(
|
|
16198
16212
|
"div",
|
|
16199
16213
|
A({
|
|
16200
|
-
className:
|
|
16214
|
+
className: x(
|
|
16201
16215
|
"w-full",
|
|
16202
16216
|
"h-px",
|
|
16203
16217
|
"bg-line-default",
|
|
@@ -16233,7 +16247,7 @@ function Yd(l) {
|
|
|
16233
16247
|
"children",
|
|
16234
16248
|
"className"
|
|
16235
16249
|
]);
|
|
16236
|
-
const [c, u] = V(s), p = `navbar-group-${ve()}`, m = /* @__PURE__ */ n.jsxs("span", { className:
|
|
16250
|
+
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
16251
|
r && /* @__PURE__ */ n.jsx("span", { className: "shrink-0", children: c ? /* @__PURE__ */ n.jsx(
|
|
16238
16252
|
Tt,
|
|
16239
16253
|
{
|
|
@@ -16249,7 +16263,7 @@ function Yd(l) {
|
|
|
16249
16263
|
) }),
|
|
16250
16264
|
/* @__PURE__ */ n.jsx("span", { children: t })
|
|
16251
16265
|
] });
|
|
16252
|
-
return /* @__PURE__ */ n.jsxs("div", L(A({ id: e, className:
|
|
16266
|
+
return /* @__PURE__ */ n.jsxs("div", L(A({ id: e, className: x("flex flex-col", o) }, i), { children: [
|
|
16253
16267
|
t && (r ? (
|
|
16254
16268
|
// Collapsible header is a real button: keyboard operable
|
|
16255
16269
|
// (Enter/Space activate it natively) with disclosure ARIA. The
|
|
@@ -16261,7 +16275,7 @@ function Yd(l) {
|
|
|
16261
16275
|
onClick: () => u(!c),
|
|
16262
16276
|
"aria-expanded": !c,
|
|
16263
16277
|
"aria-controls": c ? void 0 : p,
|
|
16264
|
-
className:
|
|
16278
|
+
className: x(
|
|
16265
16279
|
f("sm", "px"),
|
|
16266
16280
|
f("1.5", "py"),
|
|
16267
16281
|
"text-xs text-fg-tertiary uppercase tracking-wider",
|
|
@@ -16273,7 +16287,7 @@ function Yd(l) {
|
|
|
16273
16287
|
) : /* @__PURE__ */ n.jsx(
|
|
16274
16288
|
"div",
|
|
16275
16289
|
{
|
|
16276
|
-
className:
|
|
16290
|
+
className: x(
|
|
16277
16291
|
f("sm", "px"),
|
|
16278
16292
|
f("1.5", "py"),
|
|
16279
16293
|
"text-xs text-fg-tertiary uppercase tracking-wider"
|
|
@@ -16321,7 +16335,7 @@ function _t(u) {
|
|
|
16321
16335
|
"className",
|
|
16322
16336
|
"style"
|
|
16323
16337
|
]);
|
|
16324
|
-
const m = xt(), b = ht(), h = ee(null), [w, y] = V(null), [
|
|
16338
|
+
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
16339
|
() => ({
|
|
16326
16340
|
// Inherited from root
|
|
16327
16341
|
collapsed: m.collapsed,
|
|
@@ -16330,7 +16344,7 @@ function _t(u) {
|
|
|
16330
16344
|
navbarRef: h,
|
|
16331
16345
|
activeItem: w,
|
|
16332
16346
|
setActiveItem: y,
|
|
16333
|
-
isHovered:
|
|
16347
|
+
isHovered: g,
|
|
16334
16348
|
showInternalToggle: s,
|
|
16335
16349
|
togglePosition: a,
|
|
16336
16350
|
labelMode: o
|
|
@@ -16339,7 +16353,7 @@ function _t(u) {
|
|
|
16339
16353
|
m.collapsed,
|
|
16340
16354
|
m.toggle,
|
|
16341
16355
|
w,
|
|
16342
|
-
|
|
16356
|
+
g,
|
|
16343
16357
|
s,
|
|
16344
16358
|
a,
|
|
16345
16359
|
o
|
|
@@ -16349,7 +16363,7 @@ function _t(u) {
|
|
|
16349
16363
|
"nav",
|
|
16350
16364
|
L(A({
|
|
16351
16365
|
ref: h,
|
|
16352
|
-
className:
|
|
16366
|
+
className: x(
|
|
16353
16367
|
"relative",
|
|
16354
16368
|
"flex-shrink-0",
|
|
16355
16369
|
"flex",
|
|
@@ -16384,7 +16398,7 @@ function _t(u) {
|
|
|
16384
16398
|
/* @__PURE__ */ n.jsx(
|
|
16385
16399
|
"div",
|
|
16386
16400
|
{
|
|
16387
|
-
className:
|
|
16401
|
+
className: x(
|
|
16388
16402
|
"relative",
|
|
16389
16403
|
// Create new stacking context
|
|
16390
16404
|
"flex-1",
|
|
@@ -16598,7 +16612,7 @@ function Qd(c) {
|
|
|
16598
16612
|
collapsed: p,
|
|
16599
16613
|
activeGroup: m,
|
|
16600
16614
|
setActiveGroup: b
|
|
16601
|
-
} = Fr(), { groupStates: h, toggleGroup: w, setGroupCollapsed: y } = xt(), { animationDuration:
|
|
16615
|
+
} = Fr(), { groupStates: h, toggleGroup: w, setGroupCollapsed: y } = xt(), { animationDuration: g } = ht(), v = ee(!1);
|
|
16602
16616
|
if (Y(() => {
|
|
16603
16617
|
!v.current && h[e] === void 0 && (v.current = !0, y(e, o));
|
|
16604
16618
|
}, [e, o, h, y]), p)
|
|
@@ -16654,7 +16668,7 @@ function Qd(c) {
|
|
|
16654
16668
|
transition-transform
|
|
16655
16669
|
${k ? "-rotate-90" : "rotate-0"}
|
|
16656
16670
|
`,
|
|
16657
|
-
style: { transitionDuration: `${
|
|
16671
|
+
style: { transitionDuration: `${g}ms` },
|
|
16658
16672
|
"aria-hidden": "true"
|
|
16659
16673
|
}
|
|
16660
16674
|
)
|
|
@@ -16662,7 +16676,7 @@ function Qd(c) {
|
|
|
16662
16676
|
]
|
|
16663
16677
|
}
|
|
16664
16678
|
),
|
|
16665
|
-
a ? /* @__PURE__ */ n.jsx(Qn, { open: !k, duration:
|
|
16679
|
+
a ? /* @__PURE__ */ n.jsx(Qn, { open: !k, duration: g, children: /* @__PURE__ */ n.jsx(
|
|
16666
16680
|
"div",
|
|
16667
16681
|
{
|
|
16668
16682
|
id: `sidebar-group-${e}`,
|
|
@@ -16692,7 +16706,7 @@ function tu({
|
|
|
16692
16706
|
}
|
|
16693
16707
|
function Lt(a) {
|
|
16694
16708
|
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),
|
|
16709
|
+
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
16710
|
() => ({
|
|
16697
16711
|
// Inherited from root
|
|
16698
16712
|
collapsed: i.collapsed,
|
|
@@ -16704,7 +16718,7 @@ function Lt(a) {
|
|
|
16704
16718
|
setScrollPosition: u,
|
|
16705
16719
|
hasHeader: p,
|
|
16706
16720
|
hasFooter: b,
|
|
16707
|
-
registerHeader:
|
|
16721
|
+
registerHeader: g,
|
|
16708
16722
|
unregisterHeader: v,
|
|
16709
16723
|
registerFooter: k,
|
|
16710
16724
|
unregisterFooter: $,
|
|
@@ -16718,7 +16732,7 @@ function Lt(a) {
|
|
|
16718
16732
|
c,
|
|
16719
16733
|
p,
|
|
16720
16734
|
b,
|
|
16721
|
-
|
|
16735
|
+
g,
|
|
16722
16736
|
v,
|
|
16723
16737
|
k,
|
|
16724
16738
|
$,
|
|
@@ -16729,7 +16743,7 @@ function Lt(a) {
|
|
|
16729
16743
|
"div",
|
|
16730
16744
|
L(A({
|
|
16731
16745
|
ref: d,
|
|
16732
|
-
className:
|
|
16746
|
+
className: x(
|
|
16733
16747
|
"flex",
|
|
16734
16748
|
"flex-col",
|
|
16735
16749
|
"h-full",
|
|
@@ -16778,7 +16792,7 @@ function Ye(D) {
|
|
|
16778
16792
|
persistWidth: h = !1,
|
|
16779
16793
|
defaultCollapsed: w = !1,
|
|
16780
16794
|
collapsed: y,
|
|
16781
|
-
onCollapseChange:
|
|
16795
|
+
onCollapseChange: g,
|
|
16782
16796
|
onWidthChange: v,
|
|
16783
16797
|
onMobileChange: k,
|
|
16784
16798
|
exclusiveGroups: $ = !1,
|
|
@@ -16844,7 +16858,7 @@ function Ye(D) {
|
|
|
16844
16858
|
persistWidth: h,
|
|
16845
16859
|
defaultCollapsed: w,
|
|
16846
16860
|
collapsed: y,
|
|
16847
|
-
onCollapseChange:
|
|
16861
|
+
onCollapseChange: g,
|
|
16848
16862
|
onWidthChange: v,
|
|
16849
16863
|
onMobileChange: k,
|
|
16850
16864
|
exclusiveGroups: $,
|
|
@@ -17002,7 +17016,7 @@ function Ua(l) {
|
|
|
17002
17016
|
document.removeEventListener("keydown", $);
|
|
17003
17017
|
};
|
|
17004
17018
|
}, [c, u, s]), !c) return null;
|
|
17005
|
-
const
|
|
17019
|
+
const g = {
|
|
17006
17020
|
sm: "max-w-sm",
|
|
17007
17021
|
md: "max-w-md",
|
|
17008
17022
|
lg: "max-w-lg",
|
|
@@ -17038,7 +17052,7 @@ function Ua(l) {
|
|
|
17038
17052
|
"aria-describedby": h ? m : void 0,
|
|
17039
17053
|
className: `
|
|
17040
17054
|
relative w-full
|
|
17041
|
-
${
|
|
17055
|
+
${g[t]}
|
|
17042
17056
|
bg-surface-overlay
|
|
17043
17057
|
${G("lg")}
|
|
17044
17058
|
${ke("xl")}
|
|
@@ -17452,7 +17466,7 @@ function du({
|
|
|
17452
17466
|
}
|
|
17453
17467
|
}, y = (j) => {
|
|
17454
17468
|
o && (e[j].disabled || (p || u(j), s == null || s(j)));
|
|
17455
|
-
},
|
|
17469
|
+
}, 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
17470
|
return l === "vertical" ? /* @__PURE__ */ n.jsxs("div", { className: `flex ${f("base", "gap")} ${d}`, children: [
|
|
17457
17471
|
/* @__PURE__ */ n.jsx("div", { className: "flex flex-col", children: e.map((j, S) => {
|
|
17458
17472
|
const N = j.status || b(S), D = S === m;
|
|
@@ -17533,7 +17547,7 @@ function du({
|
|
|
17533
17547
|
"div",
|
|
17534
17548
|
{
|
|
17535
17549
|
role: "region",
|
|
17536
|
-
"aria-labelledby":
|
|
17550
|
+
"aria-labelledby": g ? `${g.id}-title` : void 0,
|
|
17537
17551
|
className: `
|
|
17538
17552
|
${f("lg", "p")}
|
|
17539
17553
|
border
|
|
@@ -17541,7 +17555,7 @@ function du({
|
|
|
17541
17555
|
${G("lg")}
|
|
17542
17556
|
bg-surface-base
|
|
17543
17557
|
`,
|
|
17544
|
-
children:
|
|
17558
|
+
children: g == null ? void 0 : g.content
|
|
17545
17559
|
}
|
|
17546
17560
|
),
|
|
17547
17561
|
/* @__PURE__ */ n.jsxs(
|
|
@@ -17634,7 +17648,7 @@ function du({
|
|
|
17634
17648
|
"div",
|
|
17635
17649
|
{
|
|
17636
17650
|
role: "region",
|
|
17637
|
-
"aria-labelledby":
|
|
17651
|
+
"aria-labelledby": g ? `${g.id}-title` : void 0,
|
|
17638
17652
|
className: `
|
|
17639
17653
|
${f("lg", "p")}
|
|
17640
17654
|
border
|
|
@@ -17642,7 +17656,7 @@ function du({
|
|
|
17642
17656
|
${G("lg")}
|
|
17643
17657
|
bg-surface-base
|
|
17644
17658
|
`,
|
|
17645
|
-
children:
|
|
17659
|
+
children: g == null ? void 0 : g.content
|
|
17646
17660
|
}
|
|
17647
17661
|
),
|
|
17648
17662
|
/* @__PURE__ */ n.jsxs("div", { className: `flex justify-between ${f("base", "gap")}`, children: [
|
|
@@ -17800,7 +17814,7 @@ function Kf({
|
|
|
17800
17814
|
emptyMessage: i = "No commands found",
|
|
17801
17815
|
className: l = ""
|
|
17802
17816
|
}) {
|
|
17803
|
-
const [d, c] = V(r), [u, p] = V(""), [m, b] = V(0), h = ee(null), w = ee(null), y = ee(null),
|
|
17817
|
+
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
17818
|
ir(k), Mr(y, k);
|
|
17805
17819
|
const C = e.filter((T) => {
|
|
17806
17820
|
var H, B;
|
|
@@ -17815,7 +17829,7 @@ function Kf({
|
|
|
17815
17829
|
return T[R] || (T[R] = []), T[R].push(I), T;
|
|
17816
17830
|
},
|
|
17817
17831
|
{}
|
|
17818
|
-
), j = Object.values(C).flat(), S = k && j[m] ? `${
|
|
17832
|
+
), j = Object.values(C).flat(), S = k && j[m] ? `${g}-option-${m}` : void 0, N = Q(
|
|
17819
17833
|
(T) => {
|
|
17820
17834
|
v || c(T), s == null || s(T), T && (p(""), b(0));
|
|
17821
17835
|
},
|
|
@@ -17932,7 +17946,7 @@ function Kf({
|
|
|
17932
17946
|
className: "flex-1 border-0 focus:ring-0",
|
|
17933
17947
|
role: "combobox",
|
|
17934
17948
|
"aria-expanded": k,
|
|
17935
|
-
"aria-controls":
|
|
17949
|
+
"aria-controls": g,
|
|
17936
17950
|
"aria-activedescendant": S,
|
|
17937
17951
|
"aria-autocomplete": "list",
|
|
17938
17952
|
"aria-label": o
|
|
@@ -17965,7 +17979,7 @@ function Kf({
|
|
|
17965
17979
|
"div",
|
|
17966
17980
|
{
|
|
17967
17981
|
ref: w,
|
|
17968
|
-
id:
|
|
17982
|
+
id: g,
|
|
17969
17983
|
role: "listbox",
|
|
17970
17984
|
"aria-label": "Commands",
|
|
17971
17985
|
className: `
|
|
@@ -18001,7 +18015,7 @@ function Kf({
|
|
|
18001
18015
|
"button",
|
|
18002
18016
|
{
|
|
18003
18017
|
type: "button",
|
|
18004
|
-
id: `${
|
|
18018
|
+
id: `${g}-option-${O}`,
|
|
18005
18019
|
role: "option",
|
|
18006
18020
|
"aria-selected": H,
|
|
18007
18021
|
tabIndex: -1,
|
|
@@ -18105,7 +18119,7 @@ function Yf({
|
|
|
18105
18119
|
onColumnResize: h,
|
|
18106
18120
|
selectable: w = !1,
|
|
18107
18121
|
selectedRows: y,
|
|
18108
|
-
onSelectionChange:
|
|
18122
|
+
onSelectionChange: g,
|
|
18109
18123
|
rowId: v,
|
|
18110
18124
|
exportable: k = !1,
|
|
18111
18125
|
onExport: $,
|
|
@@ -18197,7 +18211,7 @@ function Yf({
|
|
|
18197
18211
|
filters: S,
|
|
18198
18212
|
selectable: w,
|
|
18199
18213
|
selectedRows: y,
|
|
18200
|
-
onSelectionChange:
|
|
18214
|
+
onSelectionChange: g,
|
|
18201
18215
|
rowId: v,
|
|
18202
18216
|
actions: N,
|
|
18203
18217
|
resizable: u,
|
|
@@ -18248,7 +18262,7 @@ function qf({
|
|
|
18248
18262
|
if (!o) return w;
|
|
18249
18263
|
const $ = (m - 1) * a, C = $ + a;
|
|
18250
18264
|
return w.slice($, C);
|
|
18251
|
-
}, [w, m, a, o]),
|
|
18265
|
+
}, [w, m, a, o]), g = o ? Math.ceil(w.length / a) : 1, v = ($) => {
|
|
18252
18266
|
b($);
|
|
18253
18267
|
}, k = ($) => {
|
|
18254
18268
|
p($), b(1);
|
|
@@ -18287,11 +18301,11 @@ function qf({
|
|
|
18287
18301
|
} : void 0
|
|
18288
18302
|
}
|
|
18289
18303
|
),
|
|
18290
|
-
o &&
|
|
18304
|
+
o && g > 1 && /* @__PURE__ */ n.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ n.jsx(
|
|
18291
18305
|
Hc,
|
|
18292
18306
|
{
|
|
18293
18307
|
currentPage: m,
|
|
18294
|
-
totalPages:
|
|
18308
|
+
totalPages: g,
|
|
18295
18309
|
onPageChange: v
|
|
18296
18310
|
}
|
|
18297
18311
|
) }),
|
|
@@ -18326,12 +18340,12 @@ function Xf({
|
|
|
18326
18340
|
/* @__PURE__ */ n.jsx(
|
|
18327
18341
|
du,
|
|
18328
18342
|
{
|
|
18329
|
-
steps: e.map((y,
|
|
18343
|
+
steps: e.map((y, g) => ({
|
|
18330
18344
|
id: y.id,
|
|
18331
18345
|
title: y.title,
|
|
18332
18346
|
content: y.content,
|
|
18333
18347
|
description: y.description,
|
|
18334
|
-
status:
|
|
18348
|
+
status: g < a ? "completed" : g === a ? w ? "error" : "active" : "pending"
|
|
18335
18349
|
})),
|
|
18336
18350
|
currentStep: a,
|
|
18337
18351
|
onStepChange: m,
|
|
@@ -18399,13 +18413,13 @@ function Jf({
|
|
|
18399
18413
|
), m = K(() => {
|
|
18400
18414
|
let y = e;
|
|
18401
18415
|
if (d.trim() && t) {
|
|
18402
|
-
const
|
|
18403
|
-
y = y.filter((v) => t(
|
|
18416
|
+
const g = d.toLowerCase();
|
|
18417
|
+
y = y.filter((v) => t(g, v));
|
|
18404
18418
|
}
|
|
18405
|
-
return r && Object.keys(u).length > 0 && (y = y.filter((
|
|
18406
|
-
}, [e, d, u, t, r]), b = (y,
|
|
18419
|
+
return r && Object.keys(u).length > 0 && (y = y.filter((g) => r(u, g))), y;
|
|
18420
|
+
}, [e, d, u, t, r]), b = (y, g) => {
|
|
18407
18421
|
p((v) => L(A({}, v), {
|
|
18408
|
-
[y]:
|
|
18422
|
+
[y]: g
|
|
18409
18423
|
}));
|
|
18410
18424
|
}, h = () => {
|
|
18411
18425
|
p({}), c("");
|
|
@@ -18421,7 +18435,7 @@ function Jf({
|
|
|
18421
18435
|
}
|
|
18422
18436
|
) }),
|
|
18423
18437
|
a.length > 0 && /* @__PURE__ */ n.jsx("div", { className: `flex flex-wrap ${f("sm", "gap")}`, children: a.map((y) => {
|
|
18424
|
-
var
|
|
18438
|
+
var g;
|
|
18425
18439
|
return /* @__PURE__ */ n.jsxs(
|
|
18426
18440
|
"div",
|
|
18427
18441
|
{
|
|
@@ -18443,7 +18457,7 @@ function Jf({
|
|
|
18443
18457
|
),
|
|
18444
18458
|
children: [
|
|
18445
18459
|
/* @__PURE__ */ n.jsx("option", { value: "", children: "All" }),
|
|
18446
|
-
(
|
|
18460
|
+
(g = y.options) == null ? void 0 : g.map((v) => /* @__PURE__ */ n.jsx(
|
|
18447
18461
|
"option",
|
|
18448
18462
|
{
|
|
18449
18463
|
value: String(v.value || ""),
|
|
@@ -18473,7 +18487,7 @@ function Jf({
|
|
|
18473
18487
|
"div",
|
|
18474
18488
|
{
|
|
18475
18489
|
className: `grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 ${f("base", "gap")}`,
|
|
18476
|
-
children: m.map((y,
|
|
18490
|
+
children: m.map((y, g) => /* @__PURE__ */ n.jsx("div", { children: s(y, g) }, g))
|
|
18477
18491
|
}
|
|
18478
18492
|
)
|
|
18479
18493
|
] }) });
|
|
@@ -18496,7 +18510,7 @@ function Zf({
|
|
|
18496
18510
|
] });
|
|
18497
18511
|
}
|
|
18498
18512
|
const uu = Ne(
|
|
18499
|
-
|
|
18513
|
+
x(
|
|
18500
18514
|
"w-full flex flex-col",
|
|
18501
18515
|
f("2xl", "py"),
|
|
18502
18516
|
// 40px vertical breathing room
|
|
@@ -18510,7 +18524,7 @@ const uu = Ne(
|
|
|
18510
18524
|
variant: {
|
|
18511
18525
|
plain: "",
|
|
18512
18526
|
gradient: "hero-gradient",
|
|
18513
|
-
"gradient-glow":
|
|
18527
|
+
"gradient-glow": x("hero-gradient", "hero-glow")
|
|
18514
18528
|
},
|
|
18515
18529
|
align: {
|
|
18516
18530
|
start: "text-left",
|
|
@@ -18555,22 +18569,22 @@ const uu = Ne(
|
|
|
18555
18569
|
"aria-label",
|
|
18556
18570
|
"aria-labelledby"
|
|
18557
18571
|
]);
|
|
18558
|
-
const y = u != null || p != null,
|
|
18572
|
+
const y = u != null || p != null, g = u != null ? u : typeof r == "string" ? r : void 0;
|
|
18559
18573
|
return typeof process != "undefined" && process.env.NODE_ENV !== "production" && !y && typeof r != "string" && console.warn(
|
|
18560
18574
|
"[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
18575
|
), /* @__PURE__ */ n.jsxs(
|
|
18562
18576
|
"section",
|
|
18563
18577
|
L(A({
|
|
18564
18578
|
ref: b,
|
|
18565
|
-
className:
|
|
18566
|
-
"aria-label":
|
|
18579
|
+
className: x(uu({ variant: l, align: d }), c),
|
|
18580
|
+
"aria-label": g,
|
|
18567
18581
|
"aria-labelledby": p
|
|
18568
18582
|
}, m), {
|
|
18569
18583
|
children: [
|
|
18570
18584
|
/* @__PURE__ */ n.jsxs(
|
|
18571
18585
|
"div",
|
|
18572
18586
|
{
|
|
18573
|
-
className:
|
|
18587
|
+
className: x(
|
|
18574
18588
|
"flex flex-col",
|
|
18575
18589
|
f("md", "gap-y"),
|
|
18576
18590
|
fu[d]
|
|
@@ -18613,7 +18627,7 @@ const uu = Ne(
|
|
|
18613
18627
|
a ? /* @__PURE__ */ n.jsx(
|
|
18614
18628
|
"div",
|
|
18615
18629
|
{
|
|
18616
|
-
className:
|
|
18630
|
+
className: x(
|
|
18617
18631
|
"flex flex-wrap",
|
|
18618
18632
|
f("sm", "gap"),
|
|
18619
18633
|
mu[d]
|
|
@@ -18639,18 +18653,18 @@ const uu = Ne(
|
|
|
18639
18653
|
}
|
|
18640
18654
|
);
|
|
18641
18655
|
pu.displayName = "HeroSection";
|
|
18642
|
-
const bu = Ne(
|
|
18656
|
+
const bu = Ne(x("flex items-center", "border-b"), {
|
|
18643
18657
|
variants: {
|
|
18644
18658
|
variant: {
|
|
18645
|
-
default:
|
|
18646
|
-
sub:
|
|
18659
|
+
default: x("border-line-default", f("base", "gap-x")),
|
|
18660
|
+
sub: x("border-line-muted", f("sm", "gap-x"))
|
|
18647
18661
|
}
|
|
18648
18662
|
},
|
|
18649
18663
|
defaultVariants: {
|
|
18650
18664
|
variant: "default"
|
|
18651
18665
|
}
|
|
18652
18666
|
}), hu = Ne(
|
|
18653
|
-
|
|
18667
|
+
x(
|
|
18654
18668
|
"relative -mb-px inline-flex items-center",
|
|
18655
18669
|
f("xs", "gap-x"),
|
|
18656
18670
|
"border-b-2 border-transparent",
|
|
@@ -18664,20 +18678,20 @@ const bu = Ne(g("flex items-center", "border-b"), {
|
|
|
18664
18678
|
{
|
|
18665
18679
|
variants: {
|
|
18666
18680
|
variant: {
|
|
18667
|
-
default:
|
|
18681
|
+
default: x(
|
|
18668
18682
|
f("sm", "px"),
|
|
18669
18683
|
f("sm", "py"),
|
|
18670
18684
|
le("body")
|
|
18671
18685
|
),
|
|
18672
|
-
sub:
|
|
18686
|
+
sub: x(
|
|
18673
18687
|
f("sm", "px"),
|
|
18674
18688
|
f("xs", "py"),
|
|
18675
18689
|
le("bodySmall")
|
|
18676
18690
|
)
|
|
18677
18691
|
},
|
|
18678
18692
|
active: {
|
|
18679
|
-
true:
|
|
18680
|
-
false:
|
|
18693
|
+
true: x("border-line-brand", "text-fg-brand-emphasis", "font-medium"),
|
|
18694
|
+
false: x(
|
|
18681
18695
|
"text-fg-secondary",
|
|
18682
18696
|
"hover:text-fg-primary",
|
|
18683
18697
|
"hover:border-line-muted"
|
|
@@ -18689,7 +18703,7 @@ const bu = Ne(g("flex items-center", "border-b"), {
|
|
|
18689
18703
|
{
|
|
18690
18704
|
variant: "sub",
|
|
18691
18705
|
active: !1,
|
|
18692
|
-
class:
|
|
18706
|
+
class: x("text-fg-tertiary", "hover:text-fg-secondary")
|
|
18693
18707
|
}
|
|
18694
18708
|
],
|
|
18695
18709
|
defaultVariants: {
|
|
@@ -18697,7 +18711,7 @@ const bu = Ne(g("flex items-center", "border-b"), {
|
|
|
18697
18711
|
active: !1
|
|
18698
18712
|
}
|
|
18699
18713
|
}
|
|
18700
|
-
), xu =
|
|
18714
|
+
), xu = x(
|
|
18701
18715
|
"inline-flex items-center justify-center",
|
|
18702
18716
|
G("full"),
|
|
18703
18717
|
f("xs", "px"),
|
|
@@ -18727,7 +18741,7 @@ const bu = Ne(g("flex items-center", "border-b"), {
|
|
|
18727
18741
|
"nav",
|
|
18728
18742
|
L(A({
|
|
18729
18743
|
ref: d,
|
|
18730
|
-
className:
|
|
18744
|
+
className: x(bu({ variant: r }), a),
|
|
18731
18745
|
"aria-label": o,
|
|
18732
18746
|
"aria-labelledby": i
|
|
18733
18747
|
}, l), {
|
|
@@ -18777,7 +18791,7 @@ function Qf(i) {
|
|
|
18777
18791
|
"div",
|
|
18778
18792
|
L(A({
|
|
18779
18793
|
role: "group",
|
|
18780
|
-
className:
|
|
18794
|
+
className: x(
|
|
18781
18795
|
"inline-flex",
|
|
18782
18796
|
d[t],
|
|
18783
18797
|
c[r],
|
|
@@ -18999,7 +19013,7 @@ export {
|
|
|
18999
19013
|
po as YELLOW,
|
|
19000
19014
|
Nn as blendColors,
|
|
19001
19015
|
es as clampWidth,
|
|
19002
|
-
|
|
19016
|
+
x as cn,
|
|
19003
19017
|
Wu as darken,
|
|
19004
19018
|
Le as defaultConfigValues,
|
|
19005
19019
|
Qt as defaultThemeValues,
|