@fabio.caffarello/react-design-system 4.2.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/granular/index.js +438 -431
- package/dist/granular/index.js.map +1 -1
- package/dist/granular/ui/primitives/DataBadge/DataBadge.js +140 -0
- package/dist/granular/ui/primitives/DataBadge/DataBadge.js.map +1 -0
- package/dist/granular/ui/tokens/chart.js +73 -0
- package/dist/granular/ui/tokens/chart.js.map +1 -0
- package/dist/index.cjs +59 -59
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2621 -2444
- package/dist/index.js.map +1 -1
- package/dist/react-design-system.css +1 -1
- package/dist/server/index.cjs +15 -15
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +669 -561
- package/dist/server/index.js.map +1 -1
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/primitives/DataBadge/DataBadge.d.ts +59 -0
- package/dist/ui/primitives/DataBadge/index.d.ts +2 -0
- package/dist/ui/primitives/index.d.ts +2 -0
- package/dist/ui/server.d.ts +2 -0
- package/dist/ui/tokens/TokenVisualizations.d.ts +17 -0
- package/dist/ui/tokens/chart.d.ts +79 -0
- package/dist/ui/tokens/index.d.ts +3 -0
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
var ge = Object.defineProperty,
|
|
2
|
-
var
|
|
1
|
+
var ge = Object.defineProperty, be = Object.defineProperties;
|
|
2
|
+
var xe = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var K = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var G = (e, a, r) => a in e ? ge(e, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[a] = r,
|
|
4
|
+
var ae = Object.prototype.hasOwnProperty, te = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var G = (e, a, r) => a in e ? ge(e, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[a] = r, f = (e, a) => {
|
|
6
6
|
for (var r in a || (a = {}))
|
|
7
|
-
|
|
7
|
+
ae.call(a, r) && G(e, r, a[r]);
|
|
8
8
|
if (K)
|
|
9
9
|
for (var r of K(a))
|
|
10
|
-
|
|
10
|
+
te.call(a, r) && G(e, r, a[r]);
|
|
11
11
|
return e;
|
|
12
|
-
}, y = (e, a) =>
|
|
12
|
+
}, y = (e, a) => be(e, xe(a));
|
|
13
13
|
var h = (e, a) => {
|
|
14
14
|
var r = {};
|
|
15
15
|
for (var t in e)
|
|
16
|
-
|
|
16
|
+
ae.call(e, t) && a.indexOf(t) < 0 && (r[t] = e[t]);
|
|
17
17
|
if (e != null && K)
|
|
18
18
|
for (var t of K(e))
|
|
19
|
-
a.indexOf(t) < 0 &&
|
|
19
|
+
a.indexOf(t) < 0 && te.call(e, t) && (r[t] = e[t]);
|
|
20
20
|
return r;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
import { jsx as l, jsxs as v, Fragment as
|
|
22
|
+
var re = (e, a, r) => G(e, typeof a != "symbol" ? a + "" : a, r);
|
|
23
|
+
import { jsx as l, jsxs as v, Fragment as Z } from "react/jsx-runtime";
|
|
24
24
|
import * as A from "react";
|
|
25
|
-
import ce, { memo as
|
|
25
|
+
import ce, { memo as M, forwardRef as F } from "react";
|
|
26
26
|
import { clsx as he } from "clsx";
|
|
27
27
|
import { twMerge as ye } from "tailwind-merge";
|
|
28
28
|
import { cva as ve } from "class-variance-authority";
|
|
29
29
|
import { Loader2 as we, X as Ne, AlertCircle as Se, CheckCircle2 as ne } from "lucide-react";
|
|
30
|
-
class
|
|
30
|
+
class _ {
|
|
31
31
|
/**
|
|
32
32
|
* Create a radius token
|
|
33
33
|
*/
|
|
@@ -84,14 +84,14 @@ class j {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
const $e = {
|
|
87
|
-
none:
|
|
88
|
-
sm:
|
|
89
|
-
md:
|
|
90
|
-
lg:
|
|
91
|
-
xl:
|
|
92
|
-
"2xl":
|
|
93
|
-
"3xl":
|
|
94
|
-
full:
|
|
87
|
+
none: _.create("none"),
|
|
88
|
+
sm: _.create("sm"),
|
|
89
|
+
md: _.create("md"),
|
|
90
|
+
lg: _.create("lg"),
|
|
91
|
+
xl: _.create("xl"),
|
|
92
|
+
"2xl": _.create("2xl"),
|
|
93
|
+
"3xl": _.create("3xl"),
|
|
94
|
+
full: _.create("full")
|
|
95
95
|
};
|
|
96
96
|
function $(e) {
|
|
97
97
|
return $e[e].tailwind;
|
|
@@ -163,7 +163,7 @@ class C {
|
|
|
163
163
|
}[a] || String(a);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
|
|
166
|
+
re(C, "BASE_UNIT", 4);
|
|
167
167
|
const ke = {
|
|
168
168
|
// Micro spacing (0-14px)
|
|
169
169
|
none: C.create(0),
|
|
@@ -201,7 +201,7 @@ const ke = {
|
|
|
201
201
|
"6xl": C.create(24)
|
|
202
202
|
// 96px
|
|
203
203
|
};
|
|
204
|
-
function
|
|
204
|
+
function s(e, a = "p") {
|
|
205
205
|
const t = ke[e].tailwind;
|
|
206
206
|
return `${{
|
|
207
207
|
p: "p",
|
|
@@ -296,7 +296,7 @@ class E {
|
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
298
|
E.createFontWeight("light"), E.createFontWeight("normal"), E.createFontWeight("medium"), E.createFontWeight("semibold"), E.createFontWeight("bold");
|
|
299
|
-
const
|
|
299
|
+
const J = {
|
|
300
300
|
// Headings
|
|
301
301
|
h1: E.create("4xl", "tight", "bold"),
|
|
302
302
|
h2: E.create("3xl", "tight", "bold"),
|
|
@@ -314,14 +314,14 @@ const Z = {
|
|
|
314
314
|
button: E.create("base", "normal", "medium")
|
|
315
315
|
};
|
|
316
316
|
function D(e) {
|
|
317
|
-
const a =
|
|
317
|
+
const a = J[e];
|
|
318
318
|
return `${a.fontSize.tailwind} ${a.lineHeight.tailwind} ${a.fontWeight.tailwind}`;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
321
|
-
return
|
|
320
|
+
function w(e) {
|
|
321
|
+
return J[e].fontSize.tailwind;
|
|
322
322
|
}
|
|
323
|
-
function
|
|
324
|
-
return
|
|
323
|
+
function j(e) {
|
|
324
|
+
return J[e].fontWeight.tailwind;
|
|
325
325
|
}
|
|
326
326
|
function n(...e) {
|
|
327
327
|
return ye(he(e));
|
|
@@ -329,8 +329,8 @@ function n(...e) {
|
|
|
329
329
|
const L = (e, a) => {
|
|
330
330
|
const r = ve(e, a);
|
|
331
331
|
return ((t) => {
|
|
332
|
-
const
|
|
333
|
-
return n(
|
|
332
|
+
const i = r(t);
|
|
333
|
+
return n(i);
|
|
334
334
|
});
|
|
335
335
|
}, Ce = L(
|
|
336
336
|
// Base classes
|
|
@@ -338,7 +338,7 @@ const L = (e, a) => {
|
|
|
338
338
|
"inline-flex",
|
|
339
339
|
"items-center",
|
|
340
340
|
"justify-center",
|
|
341
|
-
|
|
341
|
+
j("label"),
|
|
342
342
|
$("md"),
|
|
343
343
|
"border"
|
|
344
344
|
),
|
|
@@ -355,19 +355,19 @@ const L = (e, a) => {
|
|
|
355
355
|
},
|
|
356
356
|
size: {
|
|
357
357
|
sm: n(
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
358
|
+
s("1.5", "px"),
|
|
359
|
+
s("0.5", "py"),
|
|
360
|
+
w("caption")
|
|
361
361
|
),
|
|
362
362
|
md: n(
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
363
|
+
s("sm", "px"),
|
|
364
|
+
s("xs", "py"),
|
|
365
|
+
w("caption")
|
|
366
366
|
),
|
|
367
367
|
lg: n(
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
368
|
+
s("sm", "px"),
|
|
369
|
+
s("xs", "py"),
|
|
370
|
+
w("bodySmall")
|
|
371
371
|
)
|
|
372
372
|
},
|
|
373
373
|
style: {
|
|
@@ -470,13 +470,13 @@ const L = (e, a) => {
|
|
|
470
470
|
style: "solid"
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
), Ee =
|
|
474
|
-
|
|
475
|
-
var m =
|
|
473
|
+
), Ee = M(
|
|
474
|
+
F(function(b, p) {
|
|
475
|
+
var m = b, {
|
|
476
476
|
variant: a = "neutral",
|
|
477
477
|
size: r = "md",
|
|
478
478
|
style: t = "solid",
|
|
479
|
-
className:
|
|
479
|
+
className: i = "",
|
|
480
480
|
children: c,
|
|
481
481
|
"aria-label": o
|
|
482
482
|
} = m, d = h(m, [
|
|
@@ -487,23 +487,23 @@ const L = (e, a) => {
|
|
|
487
487
|
"children",
|
|
488
488
|
"aria-label"
|
|
489
489
|
]);
|
|
490
|
-
const
|
|
491
|
-
let
|
|
490
|
+
const x = n(Ce({ variant: a, size: r, style: t }), i);
|
|
491
|
+
let u;
|
|
492
492
|
if (o)
|
|
493
|
-
|
|
493
|
+
u = o;
|
|
494
494
|
else if (typeof c == "string")
|
|
495
|
-
|
|
495
|
+
u = c;
|
|
496
496
|
else if (typeof c == "object" && c !== null && "props" in c) {
|
|
497
497
|
const g = c.props;
|
|
498
|
-
g != null && g.children && typeof g.children == "string" && (
|
|
498
|
+
g != null && g.children && typeof g.children == "string" && (u = g.children);
|
|
499
499
|
}
|
|
500
500
|
return /* @__PURE__ */ l(
|
|
501
501
|
"span",
|
|
502
|
-
y(
|
|
502
|
+
y(f({
|
|
503
503
|
ref: p,
|
|
504
504
|
role: "status",
|
|
505
|
-
"aria-label":
|
|
506
|
-
className:
|
|
505
|
+
"aria-label": u,
|
|
506
|
+
className: x
|
|
507
507
|
}, d), {
|
|
508
508
|
children: c
|
|
509
509
|
})
|
|
@@ -519,15 +519,15 @@ function se(e, a) {
|
|
|
519
519
|
function Te(...e) {
|
|
520
520
|
return (a) => {
|
|
521
521
|
let r = !1;
|
|
522
|
-
const t = e.map((
|
|
523
|
-
const c = se(
|
|
522
|
+
const t = e.map((i) => {
|
|
523
|
+
const c = se(i, a);
|
|
524
524
|
return !r && typeof c == "function" && (r = !0), c;
|
|
525
525
|
});
|
|
526
526
|
if (r)
|
|
527
527
|
return () => {
|
|
528
|
-
for (let
|
|
529
|
-
const c = t[
|
|
530
|
-
typeof c == "function" ? c() : se(e[
|
|
528
|
+
for (let i = 0; i < t.length; i++) {
|
|
529
|
+
const c = t[i];
|
|
530
|
+
typeof c == "function" ? c() : se(e[i], null);
|
|
531
531
|
}
|
|
532
532
|
};
|
|
533
533
|
};
|
|
@@ -539,34 +539,34 @@ function Ve(...e) {
|
|
|
539
539
|
function Ae(e) {
|
|
540
540
|
const a = A.forwardRef((r, t) => {
|
|
541
541
|
var g;
|
|
542
|
-
let
|
|
542
|
+
let u = r, { children: i } = u, c = h(u, ["children"]), o = null, d = !1;
|
|
543
543
|
const p = [];
|
|
544
|
-
ie(
|
|
545
|
-
var
|
|
546
|
-
if (
|
|
544
|
+
ie(i) && typeof q == "function" && (i = q(i._payload)), A.Children.forEach(i, (N) => {
|
|
545
|
+
var S;
|
|
546
|
+
if (je(N)) {
|
|
547
547
|
d = !0;
|
|
548
|
-
const T =
|
|
548
|
+
const T = N;
|
|
549
549
|
let k = "child" in T.props ? T.props.child : T.props.children;
|
|
550
|
-
ie(k) && typeof q == "function" && (k = q(k._payload)), o = De(T, k), p.push((
|
|
550
|
+
ie(k) && typeof q == "function" && (k = q(k._payload)), o = De(T, k), p.push((S = o == null ? void 0 : o.props) == null ? void 0 : S.children);
|
|
551
551
|
} else
|
|
552
|
-
p.push(
|
|
552
|
+
p.push(N);
|
|
553
553
|
}), o ? o = A.cloneElement(o, void 0, p) : (
|
|
554
554
|
// A `Slottable` was found but it didn't resolve to a single element (e.g.
|
|
555
555
|
// it wrapped multiple elements, text, or a render-prop `child` that
|
|
556
556
|
// wasn't an element). Don't fall back to treating the `Slottable` wrapper
|
|
557
557
|
// itself as the slot target — throw a descriptive error below instead.
|
|
558
|
-
!d && A.Children.count(
|
|
558
|
+
!d && A.Children.count(i) === 1 && A.isValidElement(i) && (o = i)
|
|
559
559
|
);
|
|
560
|
-
const
|
|
560
|
+
const b = o ? _e(o) : void 0, m = Ve(t, b);
|
|
561
561
|
if (!o) {
|
|
562
|
-
if (
|
|
562
|
+
if (i || i === 0)
|
|
563
563
|
throw new Error(
|
|
564
|
-
d ?
|
|
564
|
+
d ? Me(e) : Oe(e)
|
|
565
565
|
);
|
|
566
|
-
return
|
|
566
|
+
return i;
|
|
567
567
|
}
|
|
568
|
-
const
|
|
569
|
-
return o.type !== A.Fragment && (
|
|
568
|
+
const x = Fe(c, (g = o.props) != null ? g : {});
|
|
569
|
+
return o.type !== A.Fragment && (x.ref = t ? m : b), A.cloneElement(o, x);
|
|
570
570
|
});
|
|
571
571
|
return a.displayName = `${e}.Slot`, a;
|
|
572
572
|
}
|
|
@@ -576,40 +576,40 @@ function Le(e) {
|
|
|
576
576
|
const a = (r) => "child" in r ? r.children(r.child) : r.children;
|
|
577
577
|
return a.displayName = `${e}.Slottable`, a.__radixId = ue, a;
|
|
578
578
|
}
|
|
579
|
-
var
|
|
579
|
+
var ze = /* @__PURE__ */ Le("Slottable"), De = (e, a) => {
|
|
580
580
|
if ("child" in e.props) {
|
|
581
581
|
const r = e.props.child;
|
|
582
582
|
return A.isValidElement(r) ? A.cloneElement(r, void 0, e.props.children(r.props.children)) : null;
|
|
583
583
|
}
|
|
584
584
|
return A.isValidElement(a) ? a : null;
|
|
585
585
|
};
|
|
586
|
-
function
|
|
587
|
-
const r =
|
|
586
|
+
function Fe(e, a) {
|
|
587
|
+
const r = f({}, a);
|
|
588
588
|
for (const t in a) {
|
|
589
|
-
const
|
|
590
|
-
/^on[A-Z]/.test(t) ?
|
|
589
|
+
const i = e[t], c = a[t];
|
|
590
|
+
/^on[A-Z]/.test(t) ? i && c ? r[t] = (...d) => {
|
|
591
591
|
const p = c(...d);
|
|
592
|
-
return
|
|
593
|
-
} :
|
|
592
|
+
return i(...d), p;
|
|
593
|
+
} : i && (r[t] = i) : t === "style" ? r[t] = f(f({}, i), c) : t === "className" && (r[t] = [i, c].filter(Boolean).join(" "));
|
|
594
594
|
}
|
|
595
|
-
return
|
|
595
|
+
return f(f({}, e), r);
|
|
596
596
|
}
|
|
597
|
-
function
|
|
598
|
-
var t,
|
|
597
|
+
function _e(e) {
|
|
598
|
+
var t, i;
|
|
599
599
|
let a = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, r = a && "isReactWarning" in a && a.isReactWarning;
|
|
600
|
-
return r ? e.ref : (a = (
|
|
600
|
+
return r ? e.ref : (a = (i = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : i.get, r = a && "isReactWarning" in a && a.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function je(e) {
|
|
603
603
|
return A.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ue;
|
|
604
604
|
}
|
|
605
605
|
var Re = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
606
606
|
function ie(e) {
|
|
607
|
-
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === Re && "_payload" in e &&
|
|
607
|
+
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === Re && "_payload" in e && Be(e._payload);
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function Be(e) {
|
|
610
610
|
return typeof e == "object" && e !== null && "then" in e;
|
|
611
611
|
}
|
|
612
|
-
var
|
|
612
|
+
var Oe = (e) => `${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`, Me = (e) => `${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, q = A[" use ".trim().toString()];
|
|
613
613
|
const He = L("motion-safe:animate-spin", {
|
|
614
614
|
variants: {
|
|
615
615
|
size: {
|
|
@@ -627,12 +627,12 @@ const He = L("motion-safe:animate-spin", {
|
|
|
627
627
|
size: "md",
|
|
628
628
|
variant: "primary"
|
|
629
629
|
}
|
|
630
|
-
}), fe =
|
|
630
|
+
}), fe = M(function(o) {
|
|
631
631
|
var d = o, {
|
|
632
632
|
size: a = "md",
|
|
633
633
|
variant: r = "primary",
|
|
634
634
|
label: t,
|
|
635
|
-
className:
|
|
635
|
+
className: i = ""
|
|
636
636
|
} = d, c = h(d, [
|
|
637
637
|
"size",
|
|
638
638
|
"variant",
|
|
@@ -641,8 +641,8 @@ const He = L("motion-safe:animate-spin", {
|
|
|
641
641
|
]);
|
|
642
642
|
return /* @__PURE__ */ v(
|
|
643
643
|
"div",
|
|
644
|
-
y(
|
|
645
|
-
className: n("inline-flex", "items-center",
|
|
644
|
+
y(f({
|
|
645
|
+
className: n("inline-flex", "items-center", i),
|
|
646
646
|
role: "status",
|
|
647
647
|
"aria-label": t || "Loading",
|
|
648
648
|
"aria-live": "polite"
|
|
@@ -659,8 +659,8 @@ const He = L("motion-safe:animate-spin", {
|
|
|
659
659
|
"span",
|
|
660
660
|
{
|
|
661
661
|
className: n(
|
|
662
|
-
|
|
663
|
-
|
|
662
|
+
s("sm", "ml"),
|
|
663
|
+
w("bodySmall"),
|
|
664
664
|
"text-fg-secondary",
|
|
665
665
|
"sr-only"
|
|
666
666
|
),
|
|
@@ -728,7 +728,7 @@ const Pe = L(
|
|
|
728
728
|
"text-fg-primary",
|
|
729
729
|
"hover:bg-surface-hover",
|
|
730
730
|
"focus:ring-line-focus",
|
|
731
|
-
|
|
731
|
+
s("none", "p")
|
|
732
732
|
),
|
|
733
733
|
// Textual call-to-action — brand-coloured text, underline on
|
|
734
734
|
// hover, no chrome (no surface, no border). Padding is zeroed
|
|
@@ -767,22 +767,22 @@ const Pe = L(
|
|
|
767
767
|
},
|
|
768
768
|
size: {
|
|
769
769
|
sm: n(
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
770
|
+
s("md", "px"),
|
|
771
|
+
s("1.5", "py"),
|
|
772
|
+
w("bodySmall"),
|
|
773
|
+
s("1.5", "gap")
|
|
774
774
|
),
|
|
775
775
|
md: n(
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
776
|
+
s("base", "px"),
|
|
777
|
+
s("sm", "py"),
|
|
778
|
+
w("body"),
|
|
779
|
+
s("sm", "gap")
|
|
780
780
|
),
|
|
781
781
|
lg: n(
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
782
|
+
s("lg", "px"),
|
|
783
|
+
s("md", "py"),
|
|
784
|
+
w("bodyLarge"),
|
|
785
|
+
s("2.5", "gap")
|
|
786
786
|
)
|
|
787
787
|
}
|
|
788
788
|
},
|
|
@@ -791,17 +791,17 @@ const Pe = L(
|
|
|
791
791
|
{
|
|
792
792
|
variant: "iconOnly",
|
|
793
793
|
size: "sm",
|
|
794
|
-
class: n("h-8", "w-8",
|
|
794
|
+
class: n("h-8", "w-8", s("none", "p"))
|
|
795
795
|
},
|
|
796
796
|
{
|
|
797
797
|
variant: "iconOnly",
|
|
798
798
|
size: "md",
|
|
799
|
-
class: n("h-10", "w-10",
|
|
799
|
+
class: n("h-10", "w-10", s("none", "p"))
|
|
800
800
|
},
|
|
801
801
|
{
|
|
802
802
|
variant: "iconOnly",
|
|
803
803
|
size: "lg",
|
|
804
|
-
class: n("h-12", "w-12",
|
|
804
|
+
class: n("h-12", "w-12", s("none", "p"))
|
|
805
805
|
},
|
|
806
806
|
// Link variant zeroes the size's padding via compoundVariants so
|
|
807
807
|
// the override runs AFTER the size block's `px-N`/`py-N` and
|
|
@@ -812,17 +812,17 @@ const Pe = L(
|
|
|
812
812
|
{
|
|
813
813
|
variant: "link",
|
|
814
814
|
size: "sm",
|
|
815
|
-
class: n(
|
|
815
|
+
class: n(s("none", "px"), s("none", "py"))
|
|
816
816
|
},
|
|
817
817
|
{
|
|
818
818
|
variant: "link",
|
|
819
819
|
size: "md",
|
|
820
|
-
class: n(
|
|
820
|
+
class: n(s("none", "px"), s("none", "py"))
|
|
821
821
|
},
|
|
822
822
|
{
|
|
823
823
|
variant: "link",
|
|
824
824
|
size: "lg",
|
|
825
|
-
class: n(
|
|
825
|
+
class: n(s("none", "px"), s("none", "py"))
|
|
826
826
|
}
|
|
827
827
|
],
|
|
828
828
|
defaultVariants: {
|
|
@@ -838,29 +838,29 @@ function X({
|
|
|
838
838
|
return e ? /* @__PURE__ */ l(
|
|
839
839
|
"span",
|
|
840
840
|
{
|
|
841
|
-
className: `inline-flex items-center ${a === "left" ?
|
|
841
|
+
className: `inline-flex items-center ${a === "left" ? s("none", "mr") : s("none", "ml")}`,
|
|
842
842
|
children: e
|
|
843
843
|
}
|
|
844
844
|
) : null;
|
|
845
845
|
}
|
|
846
|
-
const Ie =
|
|
847
|
-
|
|
848
|
-
var
|
|
846
|
+
const Ie = M(
|
|
847
|
+
F(function(k, T) {
|
|
848
|
+
var z = k, {
|
|
849
849
|
variant: a = "primary",
|
|
850
850
|
size: r = "md",
|
|
851
851
|
isLoading: t = !1,
|
|
852
|
-
loadingText:
|
|
852
|
+
loadingText: i,
|
|
853
853
|
loadingIcon: c,
|
|
854
854
|
leftIcon: o,
|
|
855
855
|
rightIcon: d,
|
|
856
856
|
fullWidth: p = !1,
|
|
857
|
-
asChild:
|
|
857
|
+
asChild: b = !1,
|
|
858
858
|
as: m,
|
|
859
|
-
className:
|
|
860
|
-
disabled:
|
|
859
|
+
className: x = "",
|
|
860
|
+
disabled: u = !1,
|
|
861
861
|
children: g,
|
|
862
|
-
"aria-label":
|
|
863
|
-
} =
|
|
862
|
+
"aria-label": N
|
|
863
|
+
} = z, S = h(z, [
|
|
864
864
|
"variant",
|
|
865
865
|
"size",
|
|
866
866
|
"isLoading",
|
|
@@ -876,29 +876,29 @@ const Ie = H(
|
|
|
876
876
|
"children",
|
|
877
877
|
"aria-label"
|
|
878
878
|
]);
|
|
879
|
-
typeof process != "undefined" && process.env.NODE_ENV !== "production" &&
|
|
879
|
+
typeof process != "undefined" && process.env.NODE_ENV !== "production" && b && m !== void 0 && m !== "button" && console.warn(
|
|
880
880
|
"[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."
|
|
881
881
|
);
|
|
882
|
-
const
|
|
882
|
+
const R = b ? de : m != null ? m : "button", B = n(
|
|
883
883
|
Pe({ variant: a, size: r }),
|
|
884
884
|
p && "w-full",
|
|
885
|
-
|
|
886
|
-
), I = (a === "iconOnly" || !g && (o || d)) && !
|
|
887
|
-
className:
|
|
888
|
-
disabled:
|
|
885
|
+
x
|
|
886
|
+
), I = (a === "iconOnly" || !g && (o || d)) && !N && !g ? "Button" : N, me = c || /* @__PURE__ */ l(fe, { size: r === "sm" ? "sm" : r === "lg" ? "lg" : "md", variant: a === "error" ? "primary" : a === "primary" || a === "secondary" ? "neutral" : "primary" }), Q = !b && (m === void 0 || m === "button") && !S.type ? "button" : void 0, ee = f(f({
|
|
887
|
+
className: B,
|
|
888
|
+
disabled: u || t,
|
|
889
889
|
"aria-busy": t,
|
|
890
890
|
"aria-label": I,
|
|
891
|
-
"aria-disabled":
|
|
892
|
-
},
|
|
893
|
-
return
|
|
891
|
+
"aria-disabled": u || t
|
|
892
|
+
}, Q ? { type: Q } : {}), S);
|
|
893
|
+
return b ? /* @__PURE__ */ v(R, y(f({ ref: T }, ee), { children: [
|
|
894
894
|
o && /* @__PURE__ */ l(X, { position: "left", children: o }),
|
|
895
|
-
/* @__PURE__ */ l(
|
|
895
|
+
/* @__PURE__ */ l(ze, { children: g }),
|
|
896
896
|
d && /* @__PURE__ */ l(X, { position: "right", children: d })
|
|
897
|
-
] })) : /* @__PURE__ */ l(
|
|
897
|
+
] })) : /* @__PURE__ */ l(R, y(f({ ref: T }, ee), { children: t ? /* @__PURE__ */ v(Z, { children: [
|
|
898
898
|
me,
|
|
899
|
-
|
|
900
|
-
!
|
|
901
|
-
] }) : /* @__PURE__ */ v(
|
|
899
|
+
i && /* @__PURE__ */ l("span", { className: s("sm", "ml"), children: i }),
|
|
900
|
+
!i && g && /* @__PURE__ */ l("span", { className: `${s("sm", "ml")} opacity-0`, children: g })
|
|
901
|
+
] }) : /* @__PURE__ */ v(Z, { children: [
|
|
902
902
|
o && /* @__PURE__ */ l(X, { position: "left", children: o }),
|
|
903
903
|
g,
|
|
904
904
|
d && /* @__PURE__ */ l(X, { position: "right", children: d })
|
|
@@ -913,7 +913,7 @@ const le = L(
|
|
|
913
913
|
"items-center",
|
|
914
914
|
"font-medium",
|
|
915
915
|
$("full"),
|
|
916
|
-
|
|
916
|
+
s("xs", "gap")
|
|
917
917
|
),
|
|
918
918
|
{
|
|
919
919
|
variants: {
|
|
@@ -939,19 +939,19 @@ const le = L(
|
|
|
939
939
|
},
|
|
940
940
|
size: {
|
|
941
941
|
sm: n(
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
942
|
+
s("xs", "px"),
|
|
943
|
+
s("xs", "py"),
|
|
944
|
+
w("caption")
|
|
945
945
|
),
|
|
946
946
|
md: n(
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
947
|
+
s("sm", "px"),
|
|
948
|
+
s("xs", "py"),
|
|
949
|
+
w("bodySmall")
|
|
950
950
|
),
|
|
951
951
|
lg: n(
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
952
|
+
s("md", "px"),
|
|
953
|
+
s("sm", "py"),
|
|
954
|
+
w("body")
|
|
955
955
|
)
|
|
956
956
|
},
|
|
957
957
|
selected: {
|
|
@@ -995,19 +995,19 @@ const le = L(
|
|
|
995
995
|
disabled: !1
|
|
996
996
|
}
|
|
997
997
|
}
|
|
998
|
-
), We =
|
|
998
|
+
), We = F(function(a, r) {
|
|
999
999
|
const {
|
|
1000
1000
|
children: t,
|
|
1001
|
-
variant:
|
|
1001
|
+
variant: i = "default",
|
|
1002
1002
|
size: c = "md",
|
|
1003
1003
|
selected: o = !1,
|
|
1004
1004
|
disabled: d = !1,
|
|
1005
1005
|
className: p = "",
|
|
1006
|
-
"aria-label":
|
|
1006
|
+
"aria-label": b,
|
|
1007
1007
|
tabIndex: m,
|
|
1008
|
-
asChild:
|
|
1008
|
+
asChild: x = !1
|
|
1009
1009
|
} = a, g = (() => {
|
|
1010
|
-
if (
|
|
1010
|
+
if (b) return b;
|
|
1011
1011
|
if (typeof t == "string") return t;
|
|
1012
1012
|
if (typeof t == "object" && t !== null && "props" in t) {
|
|
1013
1013
|
const V = t.props;
|
|
@@ -1015,24 +1015,24 @@ const le = L(
|
|
|
1015
1015
|
return V.children;
|
|
1016
1016
|
}
|
|
1017
1017
|
})();
|
|
1018
|
-
if (
|
|
1018
|
+
if (x)
|
|
1019
1019
|
return /* @__PURE__ */ l(
|
|
1020
1020
|
de,
|
|
1021
1021
|
{
|
|
1022
1022
|
ref: r,
|
|
1023
1023
|
className: n(
|
|
1024
|
-
le({ variant:
|
|
1024
|
+
le({ variant: i, size: c, selected: o, disabled: d }),
|
|
1025
1025
|
p
|
|
1026
1026
|
),
|
|
1027
|
-
"aria-label":
|
|
1027
|
+
"aria-label": b,
|
|
1028
1028
|
"aria-disabled": d || void 0,
|
|
1029
1029
|
tabIndex: m,
|
|
1030
1030
|
children: t
|
|
1031
1031
|
}
|
|
1032
1032
|
);
|
|
1033
|
-
const { onRemove:
|
|
1034
|
-
d || (V.key === "Enter" || V.key === " ") && (V.preventDefault(),
|
|
1035
|
-
},
|
|
1033
|
+
const { onRemove: N, onClick: S, count: T } = a, k = S !== void 0, z = k && !d, R = (V) => {
|
|
1034
|
+
d || (V.key === "Enter" || V.key === " ") && (V.preventDefault(), S == null || S());
|
|
1035
|
+
}, B = T !== void 0, P = o || i === "filled", I = B ? /* @__PURE__ */ l(
|
|
1036
1036
|
"span",
|
|
1037
1037
|
{
|
|
1038
1038
|
"aria-hidden": k || void 0,
|
|
@@ -1043,22 +1043,22 @@ const le = L(
|
|
|
1043
1043
|
"tabular-nums",
|
|
1044
1044
|
"leading-none",
|
|
1045
1045
|
$("full"),
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1046
|
+
s("xs", "px"),
|
|
1047
|
+
s("0.5", "py"),
|
|
1048
|
+
w("caption"),
|
|
1049
|
+
j("label"),
|
|
1050
1050
|
P ? n("bg-surface-base", "text-fg-brand-emphasis") : n("bg-surface-brand-strong", "text-fg-inverse")
|
|
1051
1051
|
),
|
|
1052
1052
|
children: T
|
|
1053
1053
|
}
|
|
1054
|
-
) : null, U =
|
|
1054
|
+
) : null, U = B && g !== void 0 ? `${g}, ${T}` : g;
|
|
1055
1055
|
return /* @__PURE__ */ v(
|
|
1056
1056
|
"div",
|
|
1057
1057
|
{
|
|
1058
1058
|
ref: r,
|
|
1059
1059
|
className: n(
|
|
1060
|
-
le({ variant:
|
|
1061
|
-
|
|
1060
|
+
le({ variant: i, size: c, selected: o, disabled: d }),
|
|
1061
|
+
N && s("xs", "pr"),
|
|
1062
1062
|
p
|
|
1063
1063
|
),
|
|
1064
1064
|
"aria-disabled": d,
|
|
@@ -1067,17 +1067,17 @@ const le = L(
|
|
|
1067
1067
|
"button",
|
|
1068
1068
|
{
|
|
1069
1069
|
type: "button",
|
|
1070
|
-
onClick: d ? void 0 :
|
|
1071
|
-
onKeyDown:
|
|
1070
|
+
onClick: d ? void 0 : S,
|
|
1071
|
+
onKeyDown: R,
|
|
1072
1072
|
disabled: d,
|
|
1073
1073
|
"aria-pressed": o ? !0 : void 0,
|
|
1074
|
-
"aria-label":
|
|
1075
|
-
tabIndex: m !== void 0 ? m :
|
|
1074
|
+
"aria-label": b || U,
|
|
1075
|
+
tabIndex: m !== void 0 ? m : z ? 0 : void 0,
|
|
1076
1076
|
className: n(
|
|
1077
1077
|
"flex-1",
|
|
1078
1078
|
"bg-transparent",
|
|
1079
1079
|
"border-0",
|
|
1080
|
-
|
|
1080
|
+
s("none", "p"),
|
|
1081
1081
|
"text-inherit",
|
|
1082
1082
|
"text-left",
|
|
1083
1083
|
"cursor-pointer",
|
|
@@ -1091,18 +1091,18 @@ const le = L(
|
|
|
1091
1091
|
}
|
|
1092
1092
|
) : /* @__PURE__ */ l("span", { children: t }),
|
|
1093
1093
|
I,
|
|
1094
|
-
|
|
1094
|
+
N && !d && /* @__PURE__ */ l(
|
|
1095
1095
|
"button",
|
|
1096
1096
|
{
|
|
1097
1097
|
type: "button",
|
|
1098
1098
|
onClick: (V) => {
|
|
1099
|
-
V.stopPropagation(),
|
|
1099
|
+
V.stopPropagation(), N();
|
|
1100
1100
|
},
|
|
1101
1101
|
className: n(
|
|
1102
|
-
|
|
1102
|
+
s("xs", "ml"),
|
|
1103
1103
|
"hover:bg-tint-hover",
|
|
1104
1104
|
$("full"),
|
|
1105
|
-
|
|
1105
|
+
s("xs", "p"),
|
|
1106
1106
|
"transition-colors",
|
|
1107
1107
|
"focus:outline-none",
|
|
1108
1108
|
"focus:ring-2",
|
|
@@ -1118,8 +1118,115 @@ const le = L(
|
|
|
1118
1118
|
);
|
|
1119
1119
|
});
|
|
1120
1120
|
We.displayName = "Chip";
|
|
1121
|
-
|
|
1122
|
-
|
|
1121
|
+
const Ue = L(
|
|
1122
|
+
n("inline-flex", "items-center", "border", $("md")),
|
|
1123
|
+
{
|
|
1124
|
+
variants: {
|
|
1125
|
+
tone: {
|
|
1126
|
+
neutral: n(
|
|
1127
|
+
"bg-surface-muted",
|
|
1128
|
+
"text-fg-primary",
|
|
1129
|
+
"border-line-default"
|
|
1130
|
+
),
|
|
1131
|
+
success: n("bg-success-bg", "text-success-dark", "border-success"),
|
|
1132
|
+
warning: n("bg-warning-bg", "text-warning-dark", "border-warning"),
|
|
1133
|
+
error: n("bg-error-bg", "text-error-dark", "border-error"),
|
|
1134
|
+
info: n("bg-info-bg", "text-info-dark", "border-info"),
|
|
1135
|
+
primary: n(
|
|
1136
|
+
"bg-surface-brand-subtle",
|
|
1137
|
+
"text-fg-brand-emphasis",
|
|
1138
|
+
"border-line-brand"
|
|
1139
|
+
),
|
|
1140
|
+
secondary: n(
|
|
1141
|
+
"bg-surface-secondary-subtle",
|
|
1142
|
+
"text-fg-brand-secondary-emphasis",
|
|
1143
|
+
"border-line-secondary"
|
|
1144
|
+
),
|
|
1145
|
+
// Categorical data-viz tone — fuchsia soft-wash, sibling to the
|
|
1146
|
+
// chart palette. Not a status; distinct from secondary (brand violet).
|
|
1147
|
+
dataviz: n("bg-dataviz-bg", "text-dataviz-dark", "border-dataviz")
|
|
1148
|
+
},
|
|
1149
|
+
size: {
|
|
1150
|
+
sm: n(
|
|
1151
|
+
s("1.5", "px"),
|
|
1152
|
+
s("0.5", "py"),
|
|
1153
|
+
s("0.5", "gap"),
|
|
1154
|
+
"[&_svg]:size-3"
|
|
1155
|
+
),
|
|
1156
|
+
md: n(
|
|
1157
|
+
s("sm", "px"),
|
|
1158
|
+
s("0.5", "py"),
|
|
1159
|
+
s("xs", "gap"),
|
|
1160
|
+
"[&_svg]:size-3.5"
|
|
1161
|
+
)
|
|
1162
|
+
}
|
|
1163
|
+
},
|
|
1164
|
+
defaultVariants: { tone: "neutral", size: "md" }
|
|
1165
|
+
}
|
|
1166
|
+
), Ke = M(
|
|
1167
|
+
F(function(b, p) {
|
|
1168
|
+
var m = b, {
|
|
1169
|
+
label: a,
|
|
1170
|
+
source: r,
|
|
1171
|
+
tone: t = "neutral",
|
|
1172
|
+
size: i = "md",
|
|
1173
|
+
icon: c,
|
|
1174
|
+
className: o = ""
|
|
1175
|
+
} = m, d = h(m, [
|
|
1176
|
+
"label",
|
|
1177
|
+
"source",
|
|
1178
|
+
"tone",
|
|
1179
|
+
"size",
|
|
1180
|
+
"icon",
|
|
1181
|
+
"className"
|
|
1182
|
+
]);
|
|
1183
|
+
const x = r != null && r !== "", u = i === "sm" ? "caption" : "bodySmall";
|
|
1184
|
+
return /* @__PURE__ */ v(
|
|
1185
|
+
"span",
|
|
1186
|
+
y(f({
|
|
1187
|
+
ref: p,
|
|
1188
|
+
className: n(Ue({ tone: t, size: i }), o)
|
|
1189
|
+
}, d), {
|
|
1190
|
+
children: [
|
|
1191
|
+
c ? /* @__PURE__ */ l(
|
|
1192
|
+
"span",
|
|
1193
|
+
{
|
|
1194
|
+
className: "inline-flex shrink-0 items-center",
|
|
1195
|
+
"aria-hidden": "true",
|
|
1196
|
+
children: c
|
|
1197
|
+
}
|
|
1198
|
+
) : null,
|
|
1199
|
+
/* @__PURE__ */ l(
|
|
1200
|
+
"span",
|
|
1201
|
+
{
|
|
1202
|
+
className: n(
|
|
1203
|
+
w(u),
|
|
1204
|
+
j("label")
|
|
1205
|
+
),
|
|
1206
|
+
children: a
|
|
1207
|
+
}
|
|
1208
|
+
),
|
|
1209
|
+
x ? /* @__PURE__ */ v(Z, { children: [
|
|
1210
|
+
/* @__PURE__ */ l("span", { "aria-hidden": "true", className: w("caption"), children: "·" }),
|
|
1211
|
+
/* @__PURE__ */ l(
|
|
1212
|
+
"span",
|
|
1213
|
+
{
|
|
1214
|
+
className: n(
|
|
1215
|
+
w("caption"),
|
|
1216
|
+
j("caption")
|
|
1217
|
+
),
|
|
1218
|
+
children: r
|
|
1219
|
+
}
|
|
1220
|
+
)
|
|
1221
|
+
] }) : null
|
|
1222
|
+
]
|
|
1223
|
+
})
|
|
1224
|
+
);
|
|
1225
|
+
})
|
|
1226
|
+
);
|
|
1227
|
+
Ke.displayName = "DataBadge";
|
|
1228
|
+
function ja(i) {
|
|
1229
|
+
var c = i, {
|
|
1123
1230
|
message: e,
|
|
1124
1231
|
id: a,
|
|
1125
1232
|
className: r = ""
|
|
@@ -1129,23 +1236,23 @@ function _a(s) {
|
|
|
1129
1236
|
"className"
|
|
1130
1237
|
]);
|
|
1131
1238
|
const o = [
|
|
1132
|
-
|
|
1133
|
-
|
|
1239
|
+
s("xs", "mt"),
|
|
1240
|
+
w("bodySmall"),
|
|
1134
1241
|
"text-fg-error",
|
|
1135
1242
|
"flex",
|
|
1136
1243
|
"items-center",
|
|
1137
|
-
|
|
1244
|
+
s("xs", "gap")
|
|
1138
1245
|
], d = n(...o, r);
|
|
1139
|
-
return /* @__PURE__ */ v("div", y(
|
|
1246
|
+
return /* @__PURE__ */ v("div", y(f({ role: "alert", id: a, className: d, "aria-live": "polite" }, t), { children: [
|
|
1140
1247
|
/* @__PURE__ */ l(Se, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }),
|
|
1141
1248
|
/* @__PURE__ */ l("span", { children: e })
|
|
1142
1249
|
] }));
|
|
1143
1250
|
}
|
|
1144
|
-
function
|
|
1145
|
-
var
|
|
1251
|
+
function Ra(t) {
|
|
1252
|
+
var i = t, {
|
|
1146
1253
|
variant: e = "info",
|
|
1147
1254
|
className: a
|
|
1148
|
-
} =
|
|
1255
|
+
} = i, r = h(i, [
|
|
1149
1256
|
"variant",
|
|
1150
1257
|
"className"
|
|
1151
1258
|
]);
|
|
@@ -1156,12 +1263,12 @@ function ja(t) {
|
|
|
1156
1263
|
};
|
|
1157
1264
|
return /* @__PURE__ */ l(
|
|
1158
1265
|
"div",
|
|
1159
|
-
|
|
1266
|
+
f({
|
|
1160
1267
|
role: "alert",
|
|
1161
1268
|
className: n(
|
|
1162
1269
|
"border",
|
|
1163
|
-
|
|
1164
|
-
|
|
1270
|
+
s("base", "px"),
|
|
1271
|
+
s("sm", "py"),
|
|
1165
1272
|
$("lg"),
|
|
1166
1273
|
c[e],
|
|
1167
1274
|
a
|
|
@@ -1169,7 +1276,7 @@ function ja(t) {
|
|
|
1169
1276
|
}, r)
|
|
1170
1277
|
);
|
|
1171
1278
|
}
|
|
1172
|
-
const
|
|
1279
|
+
const qe = L(
|
|
1173
1280
|
n(
|
|
1174
1281
|
"w-full",
|
|
1175
1282
|
$("md"),
|
|
@@ -1205,18 +1312,18 @@ const Ue = L(
|
|
|
1205
1312
|
size: {
|
|
1206
1313
|
sm: n(
|
|
1207
1314
|
"h-8",
|
|
1208
|
-
|
|
1209
|
-
|
|
1315
|
+
w("bodySmall"),
|
|
1316
|
+
s("md", "px")
|
|
1210
1317
|
),
|
|
1211
1318
|
md: n(
|
|
1212
1319
|
"h-10",
|
|
1213
|
-
|
|
1214
|
-
|
|
1320
|
+
w("body"),
|
|
1321
|
+
s("base", "px")
|
|
1215
1322
|
),
|
|
1216
1323
|
lg: n(
|
|
1217
1324
|
"h-12",
|
|
1218
|
-
|
|
1219
|
-
|
|
1325
|
+
w("bodyLarge"),
|
|
1326
|
+
s("lg", "px")
|
|
1220
1327
|
)
|
|
1221
1328
|
},
|
|
1222
1329
|
state: {
|
|
@@ -1236,15 +1343,15 @@ const Ue = L(
|
|
|
1236
1343
|
}
|
|
1237
1344
|
}
|
|
1238
1345
|
);
|
|
1239
|
-
function
|
|
1346
|
+
function Xe({
|
|
1240
1347
|
error: e,
|
|
1241
1348
|
success: a,
|
|
1242
1349
|
helperText: r,
|
|
1243
1350
|
errorId: t,
|
|
1244
|
-
helperId:
|
|
1351
|
+
helperId: i
|
|
1245
1352
|
}) {
|
|
1246
1353
|
const c = n(
|
|
1247
|
-
|
|
1354
|
+
s("xs", "mt"),
|
|
1248
1355
|
D("caption"),
|
|
1249
1356
|
e && "text-fg-error",
|
|
1250
1357
|
a && "text-fg-success",
|
|
@@ -1253,30 +1360,30 @@ function Ke({
|
|
|
1253
1360
|
return /* @__PURE__ */ l(
|
|
1254
1361
|
"div",
|
|
1255
1362
|
{
|
|
1256
|
-
id: t ||
|
|
1363
|
+
id: t || i,
|
|
1257
1364
|
className: c,
|
|
1258
1365
|
role: e || a ? "alert" : void 0,
|
|
1259
1366
|
children: r || (e ? "Error" : a ? "Success" : "")
|
|
1260
1367
|
}
|
|
1261
1368
|
);
|
|
1262
1369
|
}
|
|
1263
|
-
const
|
|
1264
|
-
function(T,
|
|
1370
|
+
const Ge = F(
|
|
1371
|
+
function(T, S) {
|
|
1265
1372
|
var k = T, {
|
|
1266
1373
|
id: a,
|
|
1267
1374
|
label: r,
|
|
1268
1375
|
error: t = !1,
|
|
1269
|
-
success:
|
|
1376
|
+
success: i = !1,
|
|
1270
1377
|
helperText: c,
|
|
1271
1378
|
size: o = "md",
|
|
1272
1379
|
variant: d = "outlined",
|
|
1273
1380
|
leftIcon: p,
|
|
1274
|
-
rightIcon:
|
|
1381
|
+
rightIcon: b,
|
|
1275
1382
|
rightSlot: m,
|
|
1276
|
-
className:
|
|
1277
|
-
disabled:
|
|
1383
|
+
className: x = "",
|
|
1384
|
+
disabled: u = !1,
|
|
1278
1385
|
type: g = "text"
|
|
1279
|
-
} = k,
|
|
1386
|
+
} = k, N = h(k, [
|
|
1280
1387
|
"id",
|
|
1281
1388
|
"label",
|
|
1282
1389
|
"error",
|
|
@@ -1294,19 +1401,19 @@ const qe = _(
|
|
|
1294
1401
|
typeof process != "undefined" && process.env.NODE_ENV !== "production" && r && !a && console.warn(
|
|
1295
1402
|
"[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."
|
|
1296
1403
|
);
|
|
1297
|
-
const
|
|
1298
|
-
|
|
1404
|
+
const z = t ? "error" : i ? "success" : "default", R = t && a ? `${a}-error` : void 0, B = c && a ? `${a}-helper` : void 0, P = o === "sm" ? "h-4 w-4" : o === "lg" ? "h-5 w-5" : "h-4 w-4", I = o === "sm" ? "top-2" : o === "lg" ? "top-3.5" : "top-2.5", U = n(
|
|
1405
|
+
qe({ variant: d, size: o, state: z }),
|
|
1299
1406
|
// Icon padding — `pl-9` / `pr-9` aren't on the spacing scale (no
|
|
1300
1407
|
// semantic key for 36px) so they stay raw at the `sm` size; md/lg use
|
|
1301
1408
|
// the getter. Mirrors the original Input contract.
|
|
1302
|
-
p && (o === "sm" ? "pl-9" :
|
|
1303
|
-
(
|
|
1304
|
-
|
|
1409
|
+
p && (o === "sm" ? "pl-9" : s(o === "lg" ? "3xl" : "2xl", "pl")),
|
|
1410
|
+
(b || m) && (o === "sm" ? "pr-9" : s(o === "lg" ? "3xl" : "2xl", "pr")),
|
|
1411
|
+
x
|
|
1305
1412
|
), V = n(
|
|
1306
1413
|
"block",
|
|
1307
1414
|
D("label"),
|
|
1308
|
-
|
|
1309
|
-
|
|
1415
|
+
s("xs", "mb"),
|
|
1416
|
+
u && "opacity-50"
|
|
1310
1417
|
);
|
|
1311
1418
|
return /* @__PURE__ */ v("div", { className: "w-full", children: [
|
|
1312
1419
|
r && /* @__PURE__ */ l("label", { htmlFor: a, className: V, children: r }),
|
|
@@ -1320,76 +1427,76 @@ const qe = _(
|
|
|
1320
1427
|
),
|
|
1321
1428
|
/* @__PURE__ */ l(
|
|
1322
1429
|
"input",
|
|
1323
|
-
|
|
1430
|
+
f({
|
|
1324
1431
|
id: a,
|
|
1325
|
-
ref:
|
|
1432
|
+
ref: S,
|
|
1326
1433
|
type: g,
|
|
1327
1434
|
className: U,
|
|
1328
|
-
disabled:
|
|
1435
|
+
disabled: u,
|
|
1329
1436
|
"aria-invalid": t,
|
|
1330
|
-
"aria-required":
|
|
1331
|
-
"aria-describedby":
|
|
1437
|
+
"aria-required": N.required,
|
|
1438
|
+
"aria-describedby": R || B,
|
|
1332
1439
|
suppressHydrationWarning: !0
|
|
1333
|
-
},
|
|
1440
|
+
}, N)
|
|
1334
1441
|
),
|
|
1335
|
-
(
|
|
1442
|
+
(b || m) && /* @__PURE__ */ l(
|
|
1336
1443
|
"div",
|
|
1337
1444
|
{
|
|
1338
|
-
className: `absolute right-3 top-0 bottom-0 flex items-center ${
|
|
1445
|
+
className: `absolute right-3 top-0 bottom-0 flex items-center ${s("xs", "gap")}`,
|
|
1339
1446
|
children: m != null ? m : /* @__PURE__ */ l(
|
|
1340
1447
|
"div",
|
|
1341
1448
|
{
|
|
1342
1449
|
className: `text-fg-secondary opacity-60 pointer-events-none ${P}`,
|
|
1343
|
-
children:
|
|
1450
|
+
children: b
|
|
1344
1451
|
}
|
|
1345
1452
|
)
|
|
1346
1453
|
}
|
|
1347
1454
|
)
|
|
1348
1455
|
] }),
|
|
1349
|
-
(t ||
|
|
1350
|
-
|
|
1456
|
+
(t || i || c) && /* @__PURE__ */ l(
|
|
1457
|
+
Xe,
|
|
1351
1458
|
{
|
|
1352
1459
|
error: t,
|
|
1353
|
-
success:
|
|
1460
|
+
success: i,
|
|
1354
1461
|
helperText: c,
|
|
1355
|
-
errorId:
|
|
1356
|
-
helperId:
|
|
1462
|
+
errorId: R,
|
|
1463
|
+
helperId: B
|
|
1357
1464
|
}
|
|
1358
1465
|
)
|
|
1359
1466
|
] });
|
|
1360
1467
|
}
|
|
1361
1468
|
);
|
|
1362
|
-
|
|
1363
|
-
const
|
|
1469
|
+
Ge.displayName = "InputBase";
|
|
1470
|
+
const Ye = n(
|
|
1364
1471
|
"block",
|
|
1365
|
-
|
|
1366
|
-
|
|
1472
|
+
w("label"),
|
|
1473
|
+
j("label"),
|
|
1367
1474
|
"text-fg-primary"
|
|
1368
|
-
),
|
|
1475
|
+
), Ze = {
|
|
1369
1476
|
default: "",
|
|
1370
1477
|
required: n(
|
|
1371
1478
|
"after:content-['*']",
|
|
1372
|
-
`after:${
|
|
1479
|
+
`after:${s("0.5", "ml")}`,
|
|
1373
1480
|
"after:text-fg-error"
|
|
1374
1481
|
),
|
|
1375
1482
|
optional: n(
|
|
1376
1483
|
"after:content-['(optional)']",
|
|
1377
|
-
`after:${
|
|
1484
|
+
`after:${s("xs", "ml")}`,
|
|
1378
1485
|
"after:text-fg-tertiary",
|
|
1379
1486
|
"after:font-normal"
|
|
1380
1487
|
)
|
|
1381
|
-
},
|
|
1382
|
-
|
|
1383
|
-
var d = o, { variant: a = "default", className: r = "", children: t } = d,
|
|
1488
|
+
}, Je = M(
|
|
1489
|
+
F(function(o, c) {
|
|
1490
|
+
var d = o, { variant: a = "default", className: r = "", children: t } = d, i = h(d, ["variant", "className", "children"]);
|
|
1384
1491
|
const p = n(
|
|
1385
|
-
|
|
1386
|
-
|
|
1492
|
+
Ye,
|
|
1493
|
+
Ze[a],
|
|
1387
1494
|
r
|
|
1388
1495
|
);
|
|
1389
|
-
return /* @__PURE__ */ l("label", y(
|
|
1496
|
+
return /* @__PURE__ */ l("label", y(f({ ref: c, className: p }, i), { children: t }));
|
|
1390
1497
|
})
|
|
1391
1498
|
);
|
|
1392
|
-
|
|
1499
|
+
Je.displayName = "Label";
|
|
1393
1500
|
class O {
|
|
1394
1501
|
/**
|
|
1395
1502
|
* Create a shadow token
|
|
@@ -1434,7 +1541,7 @@ class O {
|
|
|
1434
1541
|
}[a];
|
|
1435
1542
|
}
|
|
1436
1543
|
}
|
|
1437
|
-
const
|
|
1544
|
+
const Qe = {
|
|
1438
1545
|
none: O.create("none"),
|
|
1439
1546
|
sm: O.create("sm"),
|
|
1440
1547
|
md: O.create("md"),
|
|
@@ -1444,9 +1551,9 @@ const Ze = {
|
|
|
1444
1551
|
inner: O.create("inner")
|
|
1445
1552
|
};
|
|
1446
1553
|
function Y(e) {
|
|
1447
|
-
return
|
|
1554
|
+
return Qe[e].tailwind;
|
|
1448
1555
|
}
|
|
1449
|
-
const
|
|
1556
|
+
const ea = L("w-full", {
|
|
1450
1557
|
variants: {
|
|
1451
1558
|
size: {
|
|
1452
1559
|
sm: "h-1",
|
|
@@ -1480,17 +1587,17 @@ const Je = L("w-full", {
|
|
|
1480
1587
|
defaultVariants: {
|
|
1481
1588
|
variant: "primary"
|
|
1482
1589
|
}
|
|
1483
|
-
}),
|
|
1484
|
-
var
|
|
1590
|
+
}), aa = F(function(x, m) {
|
|
1591
|
+
var u = x, {
|
|
1485
1592
|
value: a,
|
|
1486
1593
|
max: r = 100,
|
|
1487
1594
|
variant: t = "primary",
|
|
1488
|
-
size:
|
|
1595
|
+
size: i = "md",
|
|
1489
1596
|
showLabel: c = !1,
|
|
1490
1597
|
label: o,
|
|
1491
1598
|
"aria-label": d,
|
|
1492
1599
|
className: p = ""
|
|
1493
|
-
} =
|
|
1600
|
+
} = u, b = h(u, [
|
|
1494
1601
|
"value",
|
|
1495
1602
|
"max",
|
|
1496
1603
|
"variant",
|
|
@@ -1500,8 +1607,8 @@ const Je = L("w-full", {
|
|
|
1500
1607
|
"aria-label",
|
|
1501
1608
|
"className"
|
|
1502
1609
|
]);
|
|
1503
|
-
const g = a === void 0,
|
|
1504
|
-
return /* @__PURE__ */ v("div", y(
|
|
1610
|
+
const g = a === void 0, N = g ? void 0 : Math.min(Math.max(a / r * 100, 0), 100), S = d || (g ? "Loading in progress" : `Progress: ${N == null ? void 0 : N.toFixed(0)}%`);
|
|
1611
|
+
return /* @__PURE__ */ v("div", y(f({ ref: m, className: n("w-full", p) }, b), { children: [
|
|
1505
1612
|
c && (o || !g) && /* @__PURE__ */ v(
|
|
1506
1613
|
"div",
|
|
1507
1614
|
{
|
|
@@ -1509,29 +1616,29 @@ const Je = L("w-full", {
|
|
|
1509
1616
|
"flex",
|
|
1510
1617
|
"items-center",
|
|
1511
1618
|
"justify-between",
|
|
1512
|
-
|
|
1619
|
+
s("xs", "mb")
|
|
1513
1620
|
),
|
|
1514
1621
|
children: [
|
|
1515
1622
|
o && /* @__PURE__ */ l(
|
|
1516
1623
|
"span",
|
|
1517
1624
|
{
|
|
1518
1625
|
className: n(
|
|
1519
|
-
|
|
1520
|
-
|
|
1626
|
+
w("bodySmall"),
|
|
1627
|
+
j("label"),
|
|
1521
1628
|
"text-fg-primary"
|
|
1522
1629
|
),
|
|
1523
1630
|
children: o
|
|
1524
1631
|
}
|
|
1525
1632
|
),
|
|
1526
|
-
!g &&
|
|
1633
|
+
!g && N !== void 0 && /* @__PURE__ */ v(
|
|
1527
1634
|
"span",
|
|
1528
1635
|
{
|
|
1529
1636
|
className: n(
|
|
1530
|
-
|
|
1637
|
+
w("bodySmall"),
|
|
1531
1638
|
"text-fg-secondary"
|
|
1532
1639
|
),
|
|
1533
1640
|
children: [
|
|
1534
|
-
|
|
1641
|
+
N.toFixed(0),
|
|
1535
1642
|
"%"
|
|
1536
1643
|
]
|
|
1537
1644
|
}
|
|
@@ -1546,13 +1653,13 @@ const Je = L("w-full", {
|
|
|
1546
1653
|
"aria-valuemin": g ? void 0 : 0,
|
|
1547
1654
|
"aria-valuemax": g ? void 0 : r,
|
|
1548
1655
|
"aria-valuenow": g ? void 0 : a,
|
|
1549
|
-
"aria-label":
|
|
1656
|
+
"aria-label": S,
|
|
1550
1657
|
"aria-busy": g,
|
|
1551
1658
|
className: n(
|
|
1552
1659
|
"relative",
|
|
1553
1660
|
"w-full",
|
|
1554
1661
|
"overflow-hidden",
|
|
1555
|
-
|
|
1662
|
+
ea({ size: i, variant: t }),
|
|
1556
1663
|
$("full")
|
|
1557
1664
|
),
|
|
1558
1665
|
children: g ? /* @__PURE__ */ l(
|
|
@@ -1584,7 +1691,7 @@ const Je = L("w-full", {
|
|
|
1584
1691
|
"ease-out"
|
|
1585
1692
|
),
|
|
1586
1693
|
style: {
|
|
1587
|
-
width: `${
|
|
1694
|
+
width: `${N}%`
|
|
1588
1695
|
},
|
|
1589
1696
|
"aria-hidden": "true"
|
|
1590
1697
|
}
|
|
@@ -1593,20 +1700,20 @@ const Je = L("w-full", {
|
|
|
1593
1700
|
)
|
|
1594
1701
|
] }));
|
|
1595
1702
|
});
|
|
1596
|
-
|
|
1597
|
-
const
|
|
1703
|
+
aa.displayName = "Progress";
|
|
1704
|
+
const ta = {
|
|
1598
1705
|
horizontal: "w-full border-t",
|
|
1599
1706
|
vertical: "h-full border-l self-stretch"
|
|
1600
|
-
},
|
|
1707
|
+
}, ra = {
|
|
1601
1708
|
solid: "border-solid",
|
|
1602
1709
|
dashed: "border-dashed",
|
|
1603
1710
|
dotted: "border-dotted"
|
|
1604
|
-
},
|
|
1711
|
+
}, na = M(function(c) {
|
|
1605
1712
|
var o = c, {
|
|
1606
1713
|
orientation: a = "horizontal",
|
|
1607
1714
|
variant: r = "solid",
|
|
1608
1715
|
className: t = ""
|
|
1609
|
-
} = o,
|
|
1716
|
+
} = o, i = h(o, [
|
|
1610
1717
|
"orientation",
|
|
1611
1718
|
"variant",
|
|
1612
1719
|
"className"
|
|
@@ -1614,34 +1721,34 @@ const ea = {
|
|
|
1614
1721
|
const d = n(
|
|
1615
1722
|
"border-0",
|
|
1616
1723
|
"border-line-default",
|
|
1617
|
-
|
|
1618
|
-
|
|
1724
|
+
ta[a],
|
|
1725
|
+
ra[r],
|
|
1619
1726
|
t
|
|
1620
1727
|
);
|
|
1621
1728
|
return a === "vertical" ? /* @__PURE__ */ l(
|
|
1622
1729
|
"div",
|
|
1623
|
-
|
|
1730
|
+
f({
|
|
1624
1731
|
className: d,
|
|
1625
1732
|
role: "separator",
|
|
1626
1733
|
"aria-orientation": "vertical"
|
|
1627
|
-
},
|
|
1734
|
+
}, i)
|
|
1628
1735
|
) : /* @__PURE__ */ l(
|
|
1629
1736
|
"hr",
|
|
1630
|
-
|
|
1737
|
+
f({
|
|
1631
1738
|
className: d,
|
|
1632
1739
|
role: "separator",
|
|
1633
1740
|
"aria-orientation": "horizontal"
|
|
1634
|
-
},
|
|
1741
|
+
}, i)
|
|
1635
1742
|
);
|
|
1636
1743
|
});
|
|
1637
|
-
|
|
1638
|
-
function
|
|
1744
|
+
na.displayName = "Separator";
|
|
1745
|
+
function Ba(d) {
|
|
1639
1746
|
var p = d, {
|
|
1640
1747
|
variant: e = "text",
|
|
1641
1748
|
width: a,
|
|
1642
1749
|
height: r,
|
|
1643
1750
|
lines: t = 1,
|
|
1644
|
-
className:
|
|
1751
|
+
className: i = "",
|
|
1645
1752
|
"aria-label": c
|
|
1646
1753
|
} = p, o = h(p, [
|
|
1647
1754
|
"variant",
|
|
@@ -1651,7 +1758,7 @@ function za(d) {
|
|
|
1651
1758
|
"className",
|
|
1652
1759
|
"aria-label"
|
|
1653
1760
|
]);
|
|
1654
|
-
const
|
|
1761
|
+
const b = [
|
|
1655
1762
|
"motion-safe:animate-pulse",
|
|
1656
1763
|
"bg-surface-muted",
|
|
1657
1764
|
$("sm")
|
|
@@ -1660,39 +1767,39 @@ function za(d) {
|
|
|
1660
1767
|
card: "h-32",
|
|
1661
1768
|
list: "h-12",
|
|
1662
1769
|
circle: $("full")
|
|
1663
|
-
},
|
|
1664
|
-
a && (
|
|
1770
|
+
}, x = n(...b, m[e], i), u = {};
|
|
1771
|
+
a && (u.width = a), r && (u.height = r);
|
|
1665
1772
|
const g = c || `Loading ${e} content`;
|
|
1666
1773
|
return e === "text" && t > 1 ? /* @__PURE__ */ l(
|
|
1667
1774
|
"div",
|
|
1668
|
-
y(
|
|
1669
|
-
className:
|
|
1775
|
+
y(f({
|
|
1776
|
+
className: s("sm", "space-y"),
|
|
1670
1777
|
role: "status",
|
|
1671
1778
|
"aria-busy": "true",
|
|
1672
1779
|
"aria-label": g
|
|
1673
1780
|
}, o), {
|
|
1674
|
-
children: Array.from({ length: t }).map((
|
|
1781
|
+
children: Array.from({ length: t }).map((N, S) => /* @__PURE__ */ l(
|
|
1675
1782
|
"div",
|
|
1676
1783
|
{
|
|
1677
|
-
className:
|
|
1678
|
-
style:
|
|
1784
|
+
className: x,
|
|
1785
|
+
style: S === t - 1 ? { width: "75%" } : u,
|
|
1679
1786
|
"aria-hidden": "true"
|
|
1680
1787
|
},
|
|
1681
|
-
|
|
1788
|
+
S
|
|
1682
1789
|
))
|
|
1683
1790
|
})
|
|
1684
1791
|
) : /* @__PURE__ */ l(
|
|
1685
1792
|
"div",
|
|
1686
|
-
|
|
1687
|
-
className:
|
|
1688
|
-
style:
|
|
1793
|
+
f({
|
|
1794
|
+
className: x,
|
|
1795
|
+
style: u,
|
|
1689
1796
|
role: "status",
|
|
1690
1797
|
"aria-busy": "true",
|
|
1691
1798
|
"aria-label": g
|
|
1692
1799
|
}, o)
|
|
1693
1800
|
);
|
|
1694
1801
|
}
|
|
1695
|
-
const
|
|
1802
|
+
const sa = {
|
|
1696
1803
|
primary: {
|
|
1697
1804
|
// exception: variant color — no semantic equivalent (Principle 3, .claude/rules/colors.md)
|
|
1698
1805
|
light: "text-indigo-400",
|
|
@@ -1744,13 +1851,13 @@ const ra = {
|
|
|
1744
1851
|
contrast: "text-fg-inverse"
|
|
1745
1852
|
}
|
|
1746
1853
|
};
|
|
1747
|
-
function
|
|
1748
|
-
var m =
|
|
1854
|
+
function ia(b, p) {
|
|
1855
|
+
var m = b, {
|
|
1749
1856
|
variant: e = "paragraph",
|
|
1750
1857
|
bold: a,
|
|
1751
1858
|
italic: r,
|
|
1752
1859
|
className: t,
|
|
1753
|
-
as:
|
|
1860
|
+
as: i,
|
|
1754
1861
|
colorRole: c = "neutral",
|
|
1755
1862
|
colorShade: o = "dark"
|
|
1756
1863
|
} = m, d = h(m, [
|
|
@@ -1762,41 +1869,41 @@ function na(x, p) {
|
|
|
1762
1869
|
"colorRole",
|
|
1763
1870
|
"colorShade"
|
|
1764
1871
|
]);
|
|
1765
|
-
const
|
|
1766
|
-
let
|
|
1767
|
-
if (
|
|
1768
|
-
|
|
1872
|
+
const x = [];
|
|
1873
|
+
let u;
|
|
1874
|
+
if (i)
|
|
1875
|
+
u = i;
|
|
1769
1876
|
else
|
|
1770
1877
|
switch (e) {
|
|
1771
1878
|
case "heading":
|
|
1772
|
-
|
|
1879
|
+
u = "h2";
|
|
1773
1880
|
break;
|
|
1774
1881
|
case "list":
|
|
1775
|
-
|
|
1882
|
+
u = "li";
|
|
1776
1883
|
break;
|
|
1777
1884
|
default:
|
|
1778
|
-
|
|
1885
|
+
u = "p";
|
|
1779
1886
|
break;
|
|
1780
1887
|
}
|
|
1781
|
-
return e === "heading" ?
|
|
1888
|
+
return e === "heading" ? x.push(D("h2")) : e === "body" || e === "paragraph" ? x.push(D("body")) : e === "bodySmall" ? x.push(D("bodySmall")) : e === "bodyLarge" ? x.push(D("bodyLarge")) : e === "caption" ? x.push(D("caption")) : e === "label" ? x.push(D("label")) : x.push(D("body")), a && x.push("font-bold"), r && x.push("italic"), x.push(sa[c][o]), /* @__PURE__ */ l(u, f({ ref: p, className: n(...x, t) }, d));
|
|
1782
1889
|
}
|
|
1783
|
-
const
|
|
1890
|
+
const H = F(ia), la = {
|
|
1784
1891
|
sm: "max-w-screen-sm",
|
|
1785
1892
|
md: "max-w-screen-md",
|
|
1786
1893
|
lg: "max-w-screen-lg",
|
|
1787
1894
|
xl: "max-w-screen-xl",
|
|
1788
1895
|
"2xl": "max-w-screen-2xl",
|
|
1789
1896
|
full: "max-w-full"
|
|
1790
|
-
},
|
|
1897
|
+
}, oa = ce.forwardRef(
|
|
1791
1898
|
(p, d) => {
|
|
1792
|
-
var
|
|
1899
|
+
var b = p, {
|
|
1793
1900
|
className: e,
|
|
1794
1901
|
maxWidth: a = "lg",
|
|
1795
1902
|
paddingX: r = "base",
|
|
1796
1903
|
paddingY: t = "base",
|
|
1797
|
-
center:
|
|
1904
|
+
center: i = !0,
|
|
1798
1905
|
children: c
|
|
1799
|
-
} =
|
|
1906
|
+
} = b, o = h(b, [
|
|
1800
1907
|
"className",
|
|
1801
1908
|
"maxWidth",
|
|
1802
1909
|
"paddingX",
|
|
@@ -1806,14 +1913,14 @@ const M = _(na), sa = {
|
|
|
1806
1913
|
]);
|
|
1807
1914
|
return /* @__PURE__ */ l(
|
|
1808
1915
|
"div",
|
|
1809
|
-
y(
|
|
1916
|
+
y(f({
|
|
1810
1917
|
ref: d,
|
|
1811
1918
|
className: n(
|
|
1812
1919
|
"w-full",
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1920
|
+
la[a],
|
|
1921
|
+
s(r, "px"),
|
|
1922
|
+
s(t, "py"),
|
|
1923
|
+
i && "mx-auto",
|
|
1817
1924
|
e
|
|
1818
1925
|
)
|
|
1819
1926
|
}, o), {
|
|
@@ -1822,17 +1929,17 @@ const M = _(na), sa = {
|
|
|
1822
1929
|
);
|
|
1823
1930
|
}
|
|
1824
1931
|
);
|
|
1825
|
-
|
|
1826
|
-
const
|
|
1932
|
+
oa.displayName = "Container";
|
|
1933
|
+
const ca = ce.forwardRef(
|
|
1827
1934
|
(p, d) => {
|
|
1828
|
-
var
|
|
1935
|
+
var b = p, {
|
|
1829
1936
|
className: e,
|
|
1830
1937
|
spacing: a = "base",
|
|
1831
1938
|
align: r = "stretch",
|
|
1832
1939
|
justify: t = "start",
|
|
1833
|
-
direction:
|
|
1940
|
+
direction: i = "column",
|
|
1834
1941
|
children: c
|
|
1835
|
-
} =
|
|
1942
|
+
} = b, o = h(b, [
|
|
1836
1943
|
"className",
|
|
1837
1944
|
"spacing",
|
|
1838
1945
|
"align",
|
|
@@ -1840,12 +1947,12 @@ const la = ce.forwardRef(
|
|
|
1840
1947
|
"direction",
|
|
1841
1948
|
"children"
|
|
1842
1949
|
]);
|
|
1843
|
-
const m =
|
|
1950
|
+
const m = i === "column" ? s(a, "gap-y") : s(a, "gap-x"), x = {
|
|
1844
1951
|
start: "items-start",
|
|
1845
1952
|
center: "items-center",
|
|
1846
1953
|
end: "items-end",
|
|
1847
1954
|
stretch: "items-stretch"
|
|
1848
|
-
},
|
|
1955
|
+
}, u = {
|
|
1849
1956
|
start: "justify-start",
|
|
1850
1957
|
center: "justify-center",
|
|
1851
1958
|
end: "justify-end",
|
|
@@ -1855,14 +1962,14 @@ const la = ce.forwardRef(
|
|
|
1855
1962
|
};
|
|
1856
1963
|
return /* @__PURE__ */ l(
|
|
1857
1964
|
"div",
|
|
1858
|
-
y(
|
|
1965
|
+
y(f({
|
|
1859
1966
|
ref: d,
|
|
1860
1967
|
className: n(
|
|
1861
1968
|
"flex",
|
|
1862
|
-
|
|
1969
|
+
i === "column" ? "flex-col" : "flex-row",
|
|
1863
1970
|
m,
|
|
1864
|
-
|
|
1865
|
-
|
|
1971
|
+
x[r],
|
|
1972
|
+
u[t],
|
|
1866
1973
|
e
|
|
1867
1974
|
)
|
|
1868
1975
|
}, o), {
|
|
@@ -1871,9 +1978,9 @@ const la = ce.forwardRef(
|
|
|
1871
1978
|
);
|
|
1872
1979
|
}
|
|
1873
1980
|
);
|
|
1874
|
-
|
|
1875
|
-
function
|
|
1876
|
-
var c =
|
|
1981
|
+
ca.displayName = "Stack";
|
|
1982
|
+
function da(i) {
|
|
1983
|
+
var c = i, {
|
|
1877
1984
|
items: e,
|
|
1878
1985
|
separator: a = "/",
|
|
1879
1986
|
className: r = ""
|
|
@@ -1885,21 +1992,21 @@ function oa(s) {
|
|
|
1885
1992
|
const o = [
|
|
1886
1993
|
"flex",
|
|
1887
1994
|
"items-center",
|
|
1888
|
-
|
|
1889
|
-
|
|
1995
|
+
s("sm", "space-x"),
|
|
1996
|
+
w("bodySmall")
|
|
1890
1997
|
], d = n(...o, r);
|
|
1891
|
-
return /* @__PURE__ */ l("nav", y(
|
|
1998
|
+
return /* @__PURE__ */ l("nav", y(f({ "aria-label": "Breadcrumb", className: d }, t), { children: /* @__PURE__ */ l(
|
|
1892
1999
|
"ol",
|
|
1893
2000
|
{
|
|
1894
|
-
className: n("flex", "items-center",
|
|
1895
|
-
children: e.map((p,
|
|
1896
|
-
const m =
|
|
2001
|
+
className: n("flex", "items-center", s("sm", "space-x")),
|
|
2002
|
+
children: e.map((p, b) => {
|
|
2003
|
+
const m = b === e.length - 1;
|
|
1897
2004
|
return /* @__PURE__ */ v("li", { className: "flex items-center", children: [
|
|
1898
|
-
|
|
2005
|
+
b > 0 && /* @__PURE__ */ l(
|
|
1899
2006
|
"span",
|
|
1900
2007
|
{
|
|
1901
2008
|
className: n(
|
|
1902
|
-
|
|
2009
|
+
s("sm", "mx"),
|
|
1903
2010
|
"text-fg-tertiary"
|
|
1904
2011
|
),
|
|
1905
2012
|
"aria-hidden": "true",
|
|
@@ -1911,7 +2018,7 @@ function oa(s) {
|
|
|
1911
2018
|
{
|
|
1912
2019
|
className: n(
|
|
1913
2020
|
"text-fg-primary",
|
|
1914
|
-
|
|
2021
|
+
j("label")
|
|
1915
2022
|
),
|
|
1916
2023
|
"aria-current": "page",
|
|
1917
2024
|
children: p.label
|
|
@@ -1923,12 +2030,12 @@ function oa(s) {
|
|
|
1923
2030
|
className: n(
|
|
1924
2031
|
"inline-flex",
|
|
1925
2032
|
"items-center",
|
|
1926
|
-
|
|
1927
|
-
|
|
2033
|
+
s("xs", "px"),
|
|
2034
|
+
s("xs", "pt"),
|
|
1928
2035
|
"border-b-2",
|
|
1929
2036
|
"border-transparent",
|
|
1930
|
-
|
|
1931
|
-
|
|
2037
|
+
w("bodySmall"),
|
|
2038
|
+
j("label"),
|
|
1932
2039
|
"transition-colors",
|
|
1933
2040
|
"text-fg-secondary",
|
|
1934
2041
|
"hover:border-line-emphasis",
|
|
@@ -1937,20 +2044,20 @@ function oa(s) {
|
|
|
1937
2044
|
children: p.label
|
|
1938
2045
|
}
|
|
1939
2046
|
) : /* @__PURE__ */ l("span", { className: "text-fg-secondary", children: p.label })
|
|
1940
|
-
] },
|
|
2047
|
+
] }, b);
|
|
1941
2048
|
})
|
|
1942
2049
|
}
|
|
1943
2050
|
) }));
|
|
1944
2051
|
}
|
|
1945
|
-
function
|
|
1946
|
-
var
|
|
2052
|
+
function ua(t) {
|
|
2053
|
+
var i = t, { children: e, className: a } = i, r = h(i, ["children", "className"]);
|
|
1947
2054
|
return /* @__PURE__ */ l(
|
|
1948
2055
|
"div",
|
|
1949
|
-
y(
|
|
2056
|
+
y(f({
|
|
1950
2057
|
className: n(
|
|
1951
2058
|
"grid items-start",
|
|
1952
|
-
|
|
1953
|
-
|
|
2059
|
+
s("1.5", "gap"),
|
|
2060
|
+
s("base", "mb"),
|
|
1954
2061
|
"[&:has([data-card-actions])]:grid-cols-[1fr_auto]",
|
|
1955
2062
|
"[&:has([data-card-actions])>[data-card-actions]]:row-span-full",
|
|
1956
2063
|
a
|
|
@@ -1960,13 +2067,13 @@ function ca(t) {
|
|
|
1960
2067
|
})
|
|
1961
2068
|
);
|
|
1962
2069
|
}
|
|
1963
|
-
function
|
|
2070
|
+
function fa(o) {
|
|
1964
2071
|
var d = o, {
|
|
1965
2072
|
children: e,
|
|
1966
2073
|
icon: a,
|
|
1967
2074
|
badge: r,
|
|
1968
2075
|
as: t = "h2",
|
|
1969
|
-
className:
|
|
2076
|
+
className: i
|
|
1970
2077
|
} = d, c = h(d, [
|
|
1971
2078
|
"children",
|
|
1972
2079
|
"icon",
|
|
@@ -1976,12 +2083,12 @@ function da(o) {
|
|
|
1976
2083
|
]);
|
|
1977
2084
|
return /* @__PURE__ */ v(
|
|
1978
2085
|
t,
|
|
1979
|
-
y(
|
|
2086
|
+
y(f({
|
|
1980
2087
|
className: n(
|
|
1981
2088
|
"text-base font-semibold text-fg-primary",
|
|
1982
2089
|
"flex items-center",
|
|
1983
|
-
|
|
1984
|
-
|
|
2090
|
+
s("sm", "gap"),
|
|
2091
|
+
i
|
|
1985
2092
|
)
|
|
1986
2093
|
}, c), {
|
|
1987
2094
|
children: [
|
|
@@ -1992,31 +2099,31 @@ function da(o) {
|
|
|
1992
2099
|
})
|
|
1993
2100
|
);
|
|
1994
2101
|
}
|
|
1995
|
-
function
|
|
1996
|
-
var
|
|
2102
|
+
function pa(t) {
|
|
2103
|
+
var i = t, {
|
|
1997
2104
|
children: e,
|
|
1998
2105
|
className: a
|
|
1999
|
-
} =
|
|
2106
|
+
} = i, r = h(i, [
|
|
2000
2107
|
"children",
|
|
2001
2108
|
"className"
|
|
2002
2109
|
]);
|
|
2003
|
-
return /* @__PURE__ */ l("p", y(
|
|
2110
|
+
return /* @__PURE__ */ l("p", y(f({ className: n("text-sm text-fg-secondary", a) }, r), { children: e }));
|
|
2004
2111
|
}
|
|
2005
|
-
function
|
|
2006
|
-
var
|
|
2112
|
+
function ma(t) {
|
|
2113
|
+
var i = t, {
|
|
2007
2114
|
children: e,
|
|
2008
2115
|
className: a
|
|
2009
|
-
} =
|
|
2116
|
+
} = i, r = h(i, [
|
|
2010
2117
|
"children",
|
|
2011
2118
|
"className"
|
|
2012
2119
|
]);
|
|
2013
2120
|
return /* @__PURE__ */ l(
|
|
2014
2121
|
"div",
|
|
2015
|
-
y(
|
|
2122
|
+
y(f({
|
|
2016
2123
|
"data-card-actions": "",
|
|
2017
2124
|
className: n(
|
|
2018
2125
|
"flex items-center self-start",
|
|
2019
|
-
|
|
2126
|
+
s("sm", "gap"),
|
|
2020
2127
|
a
|
|
2021
2128
|
)
|
|
2022
2129
|
}, r), {
|
|
@@ -2024,17 +2131,17 @@ function fa(t) {
|
|
|
2024
2131
|
})
|
|
2025
2132
|
);
|
|
2026
2133
|
}
|
|
2027
|
-
function
|
|
2028
|
-
var
|
|
2029
|
-
return /* @__PURE__ */ l("div", y(
|
|
2134
|
+
function ga(t) {
|
|
2135
|
+
var i = t, { children: e, className: a } = i, r = h(i, ["children", "className"]);
|
|
2136
|
+
return /* @__PURE__ */ l("div", y(f({ className: n(a) }, r), { children: e }));
|
|
2030
2137
|
}
|
|
2031
|
-
function
|
|
2032
|
-
var m =
|
|
2138
|
+
function ba(b) {
|
|
2139
|
+
var m = b, {
|
|
2033
2140
|
variant: e = "default",
|
|
2034
2141
|
padding: a = "medium",
|
|
2035
2142
|
className: r = "",
|
|
2036
2143
|
onClick: t,
|
|
2037
|
-
"aria-label":
|
|
2144
|
+
"aria-label": i,
|
|
2038
2145
|
"aria-labelledby": c,
|
|
2039
2146
|
asSection: o = !1,
|
|
2040
2147
|
children: d
|
|
@@ -2048,10 +2155,10 @@ function ma(x) {
|
|
|
2048
2155
|
"asSection",
|
|
2049
2156
|
"children"
|
|
2050
2157
|
]);
|
|
2051
|
-
typeof process != "undefined" && process.env.NODE_ENV !== "production" && o && !
|
|
2158
|
+
typeof process != "undefined" && process.env.NODE_ENV !== "production" && o && !i && !c && console.warn(
|
|
2052
2159
|
"[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."
|
|
2053
2160
|
);
|
|
2054
|
-
const
|
|
2161
|
+
const x = L(
|
|
2055
2162
|
n(
|
|
2056
2163
|
"bg-surface-base",
|
|
2057
2164
|
$("lg"),
|
|
@@ -2072,9 +2179,9 @@ function ma(x) {
|
|
|
2072
2179
|
},
|
|
2073
2180
|
padding: {
|
|
2074
2181
|
none: "",
|
|
2075
|
-
small:
|
|
2076
|
-
medium:
|
|
2077
|
-
large:
|
|
2182
|
+
small: s("xs", "p"),
|
|
2183
|
+
medium: s("base", "p"),
|
|
2184
|
+
large: s("lg", "p")
|
|
2078
2185
|
}
|
|
2079
2186
|
},
|
|
2080
2187
|
defaultVariants: {
|
|
@@ -2082,74 +2189,74 @@ function ma(x) {
|
|
|
2082
2189
|
padding: "medium"
|
|
2083
2190
|
}
|
|
2084
2191
|
}
|
|
2085
|
-
),
|
|
2086
|
-
className:
|
|
2192
|
+
), u = t !== void 0, g = u ? "button" : void 0, N = u ? 0 : void 0, S = n(x({ variant: e, padding: a }), r), k = f({
|
|
2193
|
+
className: S,
|
|
2087
2194
|
role: g,
|
|
2088
|
-
tabIndex:
|
|
2195
|
+
tabIndex: N,
|
|
2089
2196
|
onClick: t,
|
|
2090
|
-
onKeyDown:
|
|
2091
|
-
|
|
2197
|
+
onKeyDown: u ? (z) => {
|
|
2198
|
+
u && (z.key === "Enter" || z.key === " ") && (z.preventDefault(), t == null || t());
|
|
2092
2199
|
} : void 0,
|
|
2093
|
-
"aria-label":
|
|
2200
|
+
"aria-label": i,
|
|
2094
2201
|
"aria-labelledby": c
|
|
2095
2202
|
}, p);
|
|
2096
|
-
return o ? /* @__PURE__ */ l("section", y(
|
|
2203
|
+
return o ? /* @__PURE__ */ l("section", y(f({}, k), { children: d })) : /* @__PURE__ */ l("div", y(f({}, k), { children: d }));
|
|
2097
2204
|
}
|
|
2098
|
-
const pe =
|
|
2205
|
+
const pe = M(ba);
|
|
2099
2206
|
pe.displayName = "Card";
|
|
2100
2207
|
const W = pe;
|
|
2101
|
-
W.Header =
|
|
2102
|
-
W.Title =
|
|
2103
|
-
W.Subtitle =
|
|
2104
|
-
W.Actions =
|
|
2105
|
-
W.Body =
|
|
2106
|
-
function
|
|
2107
|
-
var
|
|
2208
|
+
W.Header = ua;
|
|
2209
|
+
W.Title = fa;
|
|
2210
|
+
W.Subtitle = pa;
|
|
2211
|
+
W.Actions = ma;
|
|
2212
|
+
W.Body = ga;
|
|
2213
|
+
function Oa(t) {
|
|
2214
|
+
var i = t, {
|
|
2108
2215
|
children: e,
|
|
2109
2216
|
className: a = ""
|
|
2110
|
-
} =
|
|
2217
|
+
} = i, r = h(i, [
|
|
2111
2218
|
"children",
|
|
2112
2219
|
"className"
|
|
2113
2220
|
]);
|
|
2114
2221
|
return /* @__PURE__ */ l(
|
|
2115
2222
|
"div",
|
|
2116
|
-
y(
|
|
2117
|
-
className: `flex flex-col ${
|
|
2223
|
+
y(f({
|
|
2224
|
+
className: `flex flex-col ${s("1.5", "space-y")} ${s("lg", "p")} ${s("base", "pb")} ${a}`
|
|
2118
2225
|
}, r), {
|
|
2119
2226
|
children: e
|
|
2120
2227
|
})
|
|
2121
2228
|
);
|
|
2122
2229
|
}
|
|
2123
|
-
function
|
|
2124
|
-
var
|
|
2230
|
+
function Ma(t) {
|
|
2231
|
+
var i = t, {
|
|
2125
2232
|
children: e,
|
|
2126
2233
|
className: a = ""
|
|
2127
|
-
} =
|
|
2234
|
+
} = i, r = h(i, [
|
|
2128
2235
|
"children",
|
|
2129
2236
|
"className"
|
|
2130
2237
|
]);
|
|
2131
2238
|
return /* @__PURE__ */ l(
|
|
2132
2239
|
"div",
|
|
2133
|
-
y(
|
|
2134
|
-
className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${
|
|
2240
|
+
y(f({
|
|
2241
|
+
className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${s("sm", "space-x")} ${s("lg", "p")} ${s("base", "pt")} ${a}`
|
|
2135
2242
|
}, r), {
|
|
2136
2243
|
children: e
|
|
2137
2244
|
})
|
|
2138
2245
|
);
|
|
2139
2246
|
}
|
|
2140
|
-
function
|
|
2141
|
-
var
|
|
2247
|
+
function Ha(t) {
|
|
2248
|
+
var i = t, {
|
|
2142
2249
|
children: e,
|
|
2143
2250
|
className: a = ""
|
|
2144
|
-
} =
|
|
2251
|
+
} = i, r = h(i, [
|
|
2145
2252
|
"children",
|
|
2146
2253
|
"className"
|
|
2147
2254
|
]);
|
|
2148
2255
|
return /* @__PURE__ */ l(
|
|
2149
2256
|
"div",
|
|
2150
|
-
y(
|
|
2257
|
+
y(f({
|
|
2151
2258
|
className: `
|
|
2152
|
-
${
|
|
2259
|
+
${s("lg", "p")}
|
|
2153
2260
|
border-b
|
|
2154
2261
|
border-line-default
|
|
2155
2262
|
${a}
|
|
@@ -2159,24 +2266,24 @@ function Ma(t) {
|
|
|
2159
2266
|
})
|
|
2160
2267
|
);
|
|
2161
2268
|
}
|
|
2162
|
-
function
|
|
2163
|
-
var
|
|
2269
|
+
function Pa(t) {
|
|
2270
|
+
var i = t, {
|
|
2164
2271
|
children: e,
|
|
2165
2272
|
className: a = ""
|
|
2166
|
-
} =
|
|
2273
|
+
} = i, r = h(i, [
|
|
2167
2274
|
"children",
|
|
2168
2275
|
"className"
|
|
2169
2276
|
]);
|
|
2170
2277
|
return /* @__PURE__ */ l(
|
|
2171
2278
|
"div",
|
|
2172
|
-
y(
|
|
2279
|
+
y(f({
|
|
2173
2280
|
className: `
|
|
2174
|
-
${
|
|
2281
|
+
${s("lg", "p")}
|
|
2175
2282
|
border-t
|
|
2176
2283
|
border-line-default
|
|
2177
2284
|
flex
|
|
2178
2285
|
justify-end
|
|
2179
|
-
${
|
|
2286
|
+
${s("sm", "gap")}
|
|
2180
2287
|
${a}
|
|
2181
2288
|
`
|
|
2182
2289
|
}, r), {
|
|
@@ -2184,31 +2291,31 @@ function Ba(t) {
|
|
|
2184
2291
|
})
|
|
2185
2292
|
);
|
|
2186
2293
|
}
|
|
2187
|
-
function
|
|
2294
|
+
function Ia(c) {
|
|
2188
2295
|
var o = c, {
|
|
2189
2296
|
label: e,
|
|
2190
2297
|
children: a,
|
|
2191
2298
|
wrap: r = !0,
|
|
2192
2299
|
className: t
|
|
2193
|
-
} = o,
|
|
2300
|
+
} = o, i = h(o, [
|
|
2194
2301
|
"label",
|
|
2195
2302
|
"children",
|
|
2196
2303
|
"wrap",
|
|
2197
2304
|
"className"
|
|
2198
2305
|
]);
|
|
2199
|
-
const p = !(
|
|
2306
|
+
const p = !(i["aria-label"] != null || i["aria-labelledby"] != null) && typeof e == "string" && e !== "" ? e : void 0;
|
|
2200
2307
|
return /* @__PURE__ */ v(
|
|
2201
2308
|
"div",
|
|
2202
|
-
y(
|
|
2309
|
+
y(f({
|
|
2203
2310
|
role: "group",
|
|
2204
2311
|
"aria-label": p,
|
|
2205
2312
|
className: n(
|
|
2206
2313
|
"flex items-center",
|
|
2207
2314
|
r ? "flex-wrap" : "flex-nowrap",
|
|
2208
|
-
|
|
2315
|
+
s("sm", "gap"),
|
|
2209
2316
|
t
|
|
2210
2317
|
)
|
|
2211
|
-
},
|
|
2318
|
+
}, i), {
|
|
2212
2319
|
children: [
|
|
2213
2320
|
e ? (
|
|
2214
2321
|
// shrink-0 keeps the label a stable leading unit: in the wrapping
|
|
@@ -2221,20 +2328,20 @@ function Ha(c) {
|
|
|
2221
2328
|
})
|
|
2222
2329
|
);
|
|
2223
2330
|
}
|
|
2224
|
-
function
|
|
2331
|
+
function Wa({ children: e, className: a }) {
|
|
2225
2332
|
return /* @__PURE__ */ l(
|
|
2226
2333
|
"div",
|
|
2227
2334
|
{
|
|
2228
2335
|
className: n(
|
|
2229
2336
|
"flex-shrink-0 flex items-center",
|
|
2230
|
-
|
|
2337
|
+
s("sm", "gap"),
|
|
2231
2338
|
a
|
|
2232
2339
|
),
|
|
2233
2340
|
children: e
|
|
2234
2341
|
}
|
|
2235
2342
|
);
|
|
2236
2343
|
}
|
|
2237
|
-
function
|
|
2344
|
+
function Ua({
|
|
2238
2345
|
children: e,
|
|
2239
2346
|
className: a
|
|
2240
2347
|
}) {
|
|
@@ -2243,7 +2350,7 @@ function Ia({
|
|
|
2243
2350
|
{
|
|
2244
2351
|
className: n(
|
|
2245
2352
|
"flex-1 flex items-center justify-center",
|
|
2246
|
-
|
|
2353
|
+
s("base", "gap"),
|
|
2247
2354
|
"hidden md:flex",
|
|
2248
2355
|
// Hidden on mobile, visible on desktop
|
|
2249
2356
|
a
|
|
@@ -2253,14 +2360,14 @@ function Ia({
|
|
|
2253
2360
|
}
|
|
2254
2361
|
);
|
|
2255
2362
|
}
|
|
2256
|
-
const
|
|
2363
|
+
const xa = L(
|
|
2257
2364
|
n(
|
|
2258
2365
|
"w-full flex flex-col",
|
|
2259
|
-
|
|
2366
|
+
s("2xl", "py"),
|
|
2260
2367
|
// 40px vertical breathing room
|
|
2261
|
-
|
|
2368
|
+
s("lg", "px"),
|
|
2262
2369
|
// 24px horizontal
|
|
2263
|
-
|
|
2370
|
+
s("xl", "gap-y")
|
|
2264
2371
|
// 32px between major blocks
|
|
2265
2372
|
),
|
|
2266
2373
|
{
|
|
@@ -2280,27 +2387,27 @@ const ga = L(
|
|
|
2280
2387
|
align: "start"
|
|
2281
2388
|
}
|
|
2282
2389
|
}
|
|
2283
|
-
),
|
|
2390
|
+
), ha = {
|
|
2284
2391
|
start: "items-start",
|
|
2285
2392
|
center: "items-center"
|
|
2286
|
-
},
|
|
2393
|
+
}, ya = {
|
|
2287
2394
|
start: "justify-start",
|
|
2288
2395
|
center: "justify-center"
|
|
2289
|
-
},
|
|
2290
|
-
function(
|
|
2291
|
-
var
|
|
2396
|
+
}, va = F(
|
|
2397
|
+
function(N, g) {
|
|
2398
|
+
var S = N, {
|
|
2292
2399
|
kicker: a,
|
|
2293
2400
|
title: r,
|
|
2294
2401
|
description: t,
|
|
2295
|
-
actions:
|
|
2402
|
+
actions: i,
|
|
2296
2403
|
kpis: c,
|
|
2297
2404
|
meta: o,
|
|
2298
2405
|
variant: d = "plain",
|
|
2299
2406
|
align: p = "start",
|
|
2300
|
-
className:
|
|
2407
|
+
className: b,
|
|
2301
2408
|
"aria-label": m,
|
|
2302
|
-
"aria-labelledby":
|
|
2303
|
-
} =
|
|
2409
|
+
"aria-labelledby": x
|
|
2410
|
+
} = S, u = h(S, [
|
|
2304
2411
|
"kicker",
|
|
2305
2412
|
"title",
|
|
2306
2413
|
"description",
|
|
@@ -2313,29 +2420,29 @@ const ga = L(
|
|
|
2313
2420
|
"aria-label",
|
|
2314
2421
|
"aria-labelledby"
|
|
2315
2422
|
]);
|
|
2316
|
-
const T = m != null ||
|
|
2423
|
+
const T = m != null || x != null, k = m != null ? m : typeof r == "string" ? r : void 0;
|
|
2317
2424
|
return typeof process != "undefined" && process.env.NODE_ENV !== "production" && !T && typeof r != "string" && console.warn(
|
|
2318
2425
|
"[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."
|
|
2319
2426
|
), /* @__PURE__ */ v(
|
|
2320
2427
|
"section",
|
|
2321
|
-
y(
|
|
2428
|
+
y(f({
|
|
2322
2429
|
ref: g,
|
|
2323
|
-
className: n(
|
|
2430
|
+
className: n(xa({ variant: d, align: p }), b),
|
|
2324
2431
|
"aria-label": k,
|
|
2325
|
-
"aria-labelledby":
|
|
2326
|
-
},
|
|
2432
|
+
"aria-labelledby": x
|
|
2433
|
+
}, u), {
|
|
2327
2434
|
children: [
|
|
2328
2435
|
/* @__PURE__ */ v(
|
|
2329
2436
|
"div",
|
|
2330
2437
|
{
|
|
2331
2438
|
className: n(
|
|
2332
2439
|
"flex flex-col",
|
|
2333
|
-
|
|
2334
|
-
|
|
2440
|
+
s("md", "gap-y"),
|
|
2441
|
+
ha[p]
|
|
2335
2442
|
),
|
|
2336
2443
|
children: [
|
|
2337
2444
|
a ? /* @__PURE__ */ l(
|
|
2338
|
-
|
|
2445
|
+
H,
|
|
2339
2446
|
{
|
|
2340
2447
|
as: "span",
|
|
2341
2448
|
variant: "caption",
|
|
@@ -2346,7 +2453,7 @@ const ga = L(
|
|
|
2346
2453
|
}
|
|
2347
2454
|
) : null,
|
|
2348
2455
|
/* @__PURE__ */ l(
|
|
2349
|
-
|
|
2456
|
+
H,
|
|
2350
2457
|
{
|
|
2351
2458
|
as: "h1",
|
|
2352
2459
|
variant: "heading",
|
|
@@ -2355,7 +2462,7 @@ const ga = L(
|
|
|
2355
2462
|
}
|
|
2356
2463
|
),
|
|
2357
2464
|
t ? /* @__PURE__ */ l(
|
|
2358
|
-
|
|
2465
|
+
H,
|
|
2359
2466
|
{
|
|
2360
2467
|
as: "p",
|
|
2361
2468
|
variant: "body",
|
|
@@ -2368,20 +2475,20 @@ const ga = L(
|
|
|
2368
2475
|
]
|
|
2369
2476
|
}
|
|
2370
2477
|
),
|
|
2371
|
-
|
|
2478
|
+
i ? /* @__PURE__ */ l(
|
|
2372
2479
|
"div",
|
|
2373
2480
|
{
|
|
2374
2481
|
className: n(
|
|
2375
2482
|
"flex flex-wrap",
|
|
2376
|
-
|
|
2377
|
-
|
|
2483
|
+
s("sm", "gap"),
|
|
2484
|
+
ya[p]
|
|
2378
2485
|
),
|
|
2379
|
-
children:
|
|
2486
|
+
children: i
|
|
2380
2487
|
}
|
|
2381
2488
|
) : null,
|
|
2382
2489
|
c ? /* @__PURE__ */ l("div", { className: "w-full", children: c }) : null,
|
|
2383
2490
|
o ? /* @__PURE__ */ l(
|
|
2384
|
-
|
|
2491
|
+
H,
|
|
2385
2492
|
{
|
|
2386
2493
|
as: "p",
|
|
2387
2494
|
variant: "caption",
|
|
@@ -2396,8 +2503,8 @@ const ga = L(
|
|
|
2396
2503
|
);
|
|
2397
2504
|
}
|
|
2398
2505
|
);
|
|
2399
|
-
|
|
2400
|
-
function
|
|
2506
|
+
va.displayName = "HeroSection";
|
|
2507
|
+
function Ka(r) {
|
|
2401
2508
|
var t = r, {
|
|
2402
2509
|
className: e = ""
|
|
2403
2510
|
} = t, a = h(t, [
|
|
@@ -2405,40 +2512,40 @@ function Wa(r) {
|
|
|
2405
2512
|
]);
|
|
2406
2513
|
return /* @__PURE__ */ l(
|
|
2407
2514
|
"div",
|
|
2408
|
-
|
|
2515
|
+
f({
|
|
2409
2516
|
role: "separator",
|
|
2410
2517
|
className: `
|
|
2411
2518
|
h-px
|
|
2412
2519
|
bg-line-default
|
|
2413
|
-
${
|
|
2520
|
+
${s("sm", "my")}
|
|
2414
2521
|
${e}
|
|
2415
2522
|
`
|
|
2416
2523
|
}, a)
|
|
2417
2524
|
);
|
|
2418
2525
|
}
|
|
2419
|
-
function
|
|
2420
|
-
var
|
|
2526
|
+
function qa(t) {
|
|
2527
|
+
var i = t, {
|
|
2421
2528
|
orientation: e = "horizontal",
|
|
2422
2529
|
className: a = ""
|
|
2423
|
-
} =
|
|
2530
|
+
} = i, r = h(i, [
|
|
2424
2531
|
"orientation",
|
|
2425
2532
|
"className"
|
|
2426
2533
|
]);
|
|
2427
2534
|
return e === "vertical" ? /* @__PURE__ */ l(
|
|
2428
2535
|
"div",
|
|
2429
|
-
|
|
2536
|
+
f({
|
|
2430
2537
|
className: n("w-px", "h-6", "bg-line-default", "mx-auto", a),
|
|
2431
2538
|
role: "separator",
|
|
2432
2539
|
"aria-orientation": "vertical"
|
|
2433
2540
|
}, r)
|
|
2434
2541
|
) : /* @__PURE__ */ l(
|
|
2435
2542
|
"div",
|
|
2436
|
-
|
|
2543
|
+
f({
|
|
2437
2544
|
className: n(
|
|
2438
2545
|
"w-full",
|
|
2439
2546
|
"h-px",
|
|
2440
2547
|
"bg-line-default",
|
|
2441
|
-
|
|
2548
|
+
s("sm", "my"),
|
|
2442
2549
|
// my-2 (8px) para consistência com gap-2 usado em outros lugares
|
|
2443
2550
|
"flex-shrink-0",
|
|
2444
2551
|
// Prevenir que separator encolha
|
|
@@ -2454,14 +2561,14 @@ function Ua(t) {
|
|
|
2454
2561
|
}, r)
|
|
2455
2562
|
);
|
|
2456
2563
|
}
|
|
2457
|
-
const
|
|
2564
|
+
const wa = L(
|
|
2458
2565
|
// Base classes
|
|
2459
|
-
n("w-full", "flex", "flex-col",
|
|
2566
|
+
n("w-full", "flex", "flex-col", s("sm", "gap")),
|
|
2460
2567
|
{
|
|
2461
2568
|
variants: {
|
|
2462
2569
|
variant: {
|
|
2463
|
-
default: n(
|
|
2464
|
-
compact: n(
|
|
2570
|
+
default: n(s("base", "mb")),
|
|
2571
|
+
compact: n(s("sm", "mb"))
|
|
2465
2572
|
}
|
|
2466
2573
|
},
|
|
2467
2574
|
defaultVariants: {
|
|
@@ -2469,13 +2576,13 @@ const ya = L(
|
|
|
2469
2576
|
}
|
|
2470
2577
|
}
|
|
2471
2578
|
);
|
|
2472
|
-
function
|
|
2579
|
+
function Xa(d) {
|
|
2473
2580
|
var p = d, {
|
|
2474
2581
|
title: e,
|
|
2475
2582
|
description: a,
|
|
2476
2583
|
breadcrumb: r,
|
|
2477
2584
|
actions: t,
|
|
2478
|
-
variant:
|
|
2585
|
+
variant: i = "default",
|
|
2479
2586
|
className: c
|
|
2480
2587
|
} = p, o = h(p, [
|
|
2481
2588
|
"title",
|
|
@@ -2485,29 +2592,29 @@ function Ka(d) {
|
|
|
2485
2592
|
"variant",
|
|
2486
2593
|
"className"
|
|
2487
2594
|
]);
|
|
2488
|
-
return /* @__PURE__ */ v("div", y(
|
|
2489
|
-
r && r.length > 0 && /* @__PURE__ */ l(
|
|
2595
|
+
return /* @__PURE__ */ v("div", y(f({ className: n(wa({ variant: i }), c) }, o), { children: [
|
|
2596
|
+
r && r.length > 0 && /* @__PURE__ */ l(da, { items: r }),
|
|
2490
2597
|
/* @__PURE__ */ v(
|
|
2491
2598
|
"div",
|
|
2492
2599
|
{
|
|
2493
|
-
className: `flex items-start justify-between ${
|
|
2600
|
+
className: `flex items-start justify-between ${s("base", "gap")}`,
|
|
2494
2601
|
children: [
|
|
2495
2602
|
/* @__PURE__ */ v("div", { className: "flex-1 min-w-0", children: [
|
|
2496
2603
|
/* @__PURE__ */ l(
|
|
2497
|
-
|
|
2604
|
+
H,
|
|
2498
2605
|
{
|
|
2499
2606
|
variant: "heading",
|
|
2500
2607
|
as: "h1",
|
|
2501
|
-
className: `${
|
|
2608
|
+
className: `${s("sm", "mb")} text-2xl font-bold`,
|
|
2502
2609
|
children: e
|
|
2503
2610
|
}
|
|
2504
2611
|
),
|
|
2505
|
-
a && /* @__PURE__ */ l(
|
|
2612
|
+
a && /* @__PURE__ */ l(H, { variant: "body", className: "text-fg-secondary", children: a })
|
|
2506
2613
|
] }),
|
|
2507
2614
|
t && /* @__PURE__ */ l(
|
|
2508
2615
|
"div",
|
|
2509
2616
|
{
|
|
2510
|
-
className: `flex items-center ${
|
|
2617
|
+
className: `flex items-center ${s("sm", "gap")} flex-shrink-0`,
|
|
2511
2618
|
children: t
|
|
2512
2619
|
}
|
|
2513
2620
|
)
|
|
@@ -2516,25 +2623,25 @@ function Ka(d) {
|
|
|
2516
2623
|
)
|
|
2517
2624
|
] }));
|
|
2518
2625
|
}
|
|
2519
|
-
const
|
|
2626
|
+
const Na = {
|
|
2520
2627
|
start: "items-start text-left",
|
|
2521
2628
|
center: "items-center text-center"
|
|
2522
|
-
},
|
|
2629
|
+
}, Sa = {
|
|
2523
2630
|
neutral: "text-fg-tertiary",
|
|
2524
2631
|
success: "text-fg-success",
|
|
2525
2632
|
warning: "text-fg-warning",
|
|
2526
2633
|
error: "text-fg-error"
|
|
2527
2634
|
};
|
|
2528
|
-
function
|
|
2529
|
-
var
|
|
2635
|
+
function Ga(p) {
|
|
2636
|
+
var b = p, {
|
|
2530
2637
|
value: e,
|
|
2531
2638
|
label: a,
|
|
2532
2639
|
hint: r,
|
|
2533
2640
|
icon: t,
|
|
2534
|
-
align:
|
|
2641
|
+
align: i = "start",
|
|
2535
2642
|
tone: c = "neutral",
|
|
2536
2643
|
className: o
|
|
2537
|
-
} =
|
|
2644
|
+
} = b, d = h(b, [
|
|
2538
2645
|
"value",
|
|
2539
2646
|
"label",
|
|
2540
2647
|
"hint",
|
|
@@ -2546,12 +2653,12 @@ function qa(p) {
|
|
|
2546
2653
|
const m = e == null;
|
|
2547
2654
|
return /* @__PURE__ */ v(
|
|
2548
2655
|
"div",
|
|
2549
|
-
y(
|
|
2656
|
+
y(f({
|
|
2550
2657
|
className: n(
|
|
2551
2658
|
"bg-surface-base flex-1 flex flex-col",
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2659
|
+
s("base", "p"),
|
|
2660
|
+
s("xs", "gap-y"),
|
|
2661
|
+
Na[i],
|
|
2555
2662
|
o
|
|
2556
2663
|
)
|
|
2557
2664
|
}, d), {
|
|
@@ -2566,23 +2673,23 @@ function qa(p) {
|
|
|
2566
2673
|
}
|
|
2567
2674
|
) : /* @__PURE__ */ l("span", { className: "text-fg-primary text-2xl font-semibold leading-tight", children: e }),
|
|
2568
2675
|
/* @__PURE__ */ l("span", { className: "text-fg-secondary text-sm", children: a }),
|
|
2569
|
-
r ? /* @__PURE__ */ l("span", { className: n("text-xs",
|
|
2676
|
+
r ? /* @__PURE__ */ l("span", { className: n("text-xs", Sa[c]), children: r }) : null
|
|
2570
2677
|
]
|
|
2571
2678
|
})
|
|
2572
2679
|
);
|
|
2573
2680
|
}
|
|
2574
|
-
const
|
|
2681
|
+
const $a = {
|
|
2575
2682
|
2: "md:grid-cols-2",
|
|
2576
2683
|
3: "md:grid-cols-3",
|
|
2577
2684
|
4: "md:grid-cols-4"
|
|
2578
2685
|
};
|
|
2579
|
-
function
|
|
2686
|
+
function Ya(c) {
|
|
2580
2687
|
var o = c, {
|
|
2581
2688
|
layout: e = "grid",
|
|
2582
2689
|
cols: a = 4,
|
|
2583
2690
|
className: r,
|
|
2584
2691
|
children: t
|
|
2585
|
-
} = o,
|
|
2692
|
+
} = o, i = h(o, [
|
|
2586
2693
|
"layout",
|
|
2587
2694
|
"cols",
|
|
2588
2695
|
"className",
|
|
@@ -2591,44 +2698,44 @@ function Xa(c) {
|
|
|
2591
2698
|
const d = e === "grid";
|
|
2592
2699
|
return /* @__PURE__ */ l(
|
|
2593
2700
|
"div",
|
|
2594
|
-
y(
|
|
2701
|
+
y(f({
|
|
2595
2702
|
className: n(
|
|
2596
2703
|
"bg-line-default border border-line-default overflow-hidden gap-px",
|
|
2597
2704
|
$("lg"),
|
|
2598
|
-
d ? `grid grid-cols-2 ${
|
|
2705
|
+
d ? `grid grid-cols-2 ${$a[a]}` : "flex",
|
|
2599
2706
|
r
|
|
2600
2707
|
)
|
|
2601
|
-
},
|
|
2708
|
+
}, i), {
|
|
2602
2709
|
children: t
|
|
2603
2710
|
})
|
|
2604
2711
|
);
|
|
2605
2712
|
}
|
|
2606
|
-
function
|
|
2607
|
-
var c =
|
|
2713
|
+
function Za(i) {
|
|
2714
|
+
var c = i, { column: e, row: a, className: r = "" } = c, t = h(c, ["column", "row", "className"]);
|
|
2608
2715
|
const o = e.key in a ? a[e.key] : void 0;
|
|
2609
2716
|
return /* @__PURE__ */ l(
|
|
2610
2717
|
"td",
|
|
2611
|
-
y(
|
|
2612
|
-
className: `${
|
|
2718
|
+
y(f({
|
|
2719
|
+
className: `${s("lg", "px")} ${s("base", "py")} whitespace-nowrap text-sm text-fg-primary ${e.hiddenOnMobile ? "hidden md:table-cell" : ""} ${r}`
|
|
2613
2720
|
}, t), {
|
|
2614
2721
|
children: e.render ? e.render(o, a) : String(o != null ? o : "")
|
|
2615
2722
|
})
|
|
2616
2723
|
);
|
|
2617
2724
|
}
|
|
2618
|
-
const
|
|
2725
|
+
const ka = L(n("flex items-center", "border-b"), {
|
|
2619
2726
|
variants: {
|
|
2620
2727
|
variant: {
|
|
2621
|
-
default: n("border-line-default",
|
|
2622
|
-
sub: n("border-line-muted",
|
|
2728
|
+
default: n("border-line-default", s("base", "gap-x")),
|
|
2729
|
+
sub: n("border-line-muted", s("sm", "gap-x"))
|
|
2623
2730
|
}
|
|
2624
2731
|
},
|
|
2625
2732
|
defaultVariants: {
|
|
2626
2733
|
variant: "default"
|
|
2627
2734
|
}
|
|
2628
|
-
}),
|
|
2735
|
+
}), Ca = L(
|
|
2629
2736
|
n(
|
|
2630
2737
|
"relative -mb-px inline-flex items-center",
|
|
2631
|
-
|
|
2738
|
+
s("xs", "gap-x"),
|
|
2632
2739
|
"border-b-2 border-transparent",
|
|
2633
2740
|
"transition-colors",
|
|
2634
2741
|
"focus:outline-none",
|
|
@@ -2641,14 +2748,14 @@ const Sa = L(n("flex items-center", "border-b"), {
|
|
|
2641
2748
|
variants: {
|
|
2642
2749
|
variant: {
|
|
2643
2750
|
default: n(
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2751
|
+
s("sm", "px"),
|
|
2752
|
+
s("sm", "py"),
|
|
2753
|
+
w("body")
|
|
2647
2754
|
),
|
|
2648
2755
|
sub: n(
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2756
|
+
s("sm", "px"),
|
|
2757
|
+
s("xs", "py"),
|
|
2758
|
+
w("bodySmall")
|
|
2652
2759
|
)
|
|
2653
2760
|
},
|
|
2654
2761
|
active: {
|
|
@@ -2673,18 +2780,18 @@ const Sa = L(n("flex items-center", "border-b"), {
|
|
|
2673
2780
|
active: !1
|
|
2674
2781
|
}
|
|
2675
2782
|
}
|
|
2676
|
-
),
|
|
2783
|
+
), Ea = n(
|
|
2677
2784
|
"inline-flex items-center justify-center",
|
|
2678
2785
|
$("full"),
|
|
2679
|
-
|
|
2786
|
+
s("xs", "px"),
|
|
2680
2787
|
"bg-surface-muted text-fg-secondary text-xs"
|
|
2681
|
-
),
|
|
2682
|
-
function(
|
|
2683
|
-
var m =
|
|
2788
|
+
), Ta = F(
|
|
2789
|
+
function(b, p) {
|
|
2790
|
+
var m = b, {
|
|
2684
2791
|
items: a,
|
|
2685
2792
|
variant: r = "default",
|
|
2686
2793
|
linkComponent: t,
|
|
2687
|
-
className:
|
|
2794
|
+
className: i,
|
|
2688
2795
|
"aria-label": c,
|
|
2689
2796
|
"aria-labelledby": o
|
|
2690
2797
|
} = m, d = h(m, [
|
|
@@ -2698,46 +2805,46 @@ const Sa = L(n("flex items-center", "border-b"), {
|
|
|
2698
2805
|
typeof process != "undefined" && process.env.NODE_ENV !== "production" && !c && !o && console.warn(
|
|
2699
2806
|
'[TabsAsLinks] renders a <nav> landmark and should have an accessible name. Pass `aria-label` (e.g. "Painel") or `aria-labelledby` — multiple unnamed navs on a page are ambiguous to screen readers.'
|
|
2700
2807
|
);
|
|
2701
|
-
const
|
|
2808
|
+
const x = t != null ? t : "a";
|
|
2702
2809
|
return /* @__PURE__ */ l(
|
|
2703
2810
|
"nav",
|
|
2704
|
-
y(
|
|
2811
|
+
y(f({
|
|
2705
2812
|
ref: p,
|
|
2706
|
-
className: n(
|
|
2813
|
+
className: n(ka({ variant: r }), i),
|
|
2707
2814
|
"aria-label": c,
|
|
2708
2815
|
"aria-labelledby": o
|
|
2709
2816
|
}, d), {
|
|
2710
|
-
children: a.map((
|
|
2711
|
-
|
|
2817
|
+
children: a.map((u, g) => /* @__PURE__ */ v(
|
|
2818
|
+
x,
|
|
2712
2819
|
{
|
|
2713
|
-
href:
|
|
2714
|
-
"aria-current":
|
|
2715
|
-
"data-active":
|
|
2716
|
-
className:
|
|
2820
|
+
href: u.href,
|
|
2821
|
+
"aria-current": u.active ? "page" : void 0,
|
|
2822
|
+
"data-active": u.active ? "true" : void 0,
|
|
2823
|
+
className: Ca({ variant: r, active: !!u.active }),
|
|
2717
2824
|
children: [
|
|
2718
|
-
|
|
2719
|
-
/* @__PURE__ */ l("span", { children:
|
|
2720
|
-
|
|
2825
|
+
u.icon ? /* @__PURE__ */ l("span", { "aria-hidden": "true", className: "inline-flex shrink-0", children: u.icon }) : null,
|
|
2826
|
+
/* @__PURE__ */ l("span", { children: u.label }),
|
|
2827
|
+
u.count !== void 0 ? /* @__PURE__ */ l("span", { className: Ea, children: u.count }) : null
|
|
2721
2828
|
]
|
|
2722
2829
|
},
|
|
2723
|
-
|
|
2830
|
+
u.href || g
|
|
2724
2831
|
))
|
|
2725
2832
|
})
|
|
2726
2833
|
);
|
|
2727
2834
|
}
|
|
2728
2835
|
);
|
|
2729
|
-
|
|
2730
|
-
function
|
|
2836
|
+
Ta.displayName = "TabsAsLinks";
|
|
2837
|
+
function Ja({
|
|
2731
2838
|
items: e,
|
|
2732
2839
|
orientation: a = "vertical",
|
|
2733
2840
|
className: r = ""
|
|
2734
2841
|
}) {
|
|
2735
|
-
return a === "horizontal" ? /* @__PURE__ */ l("div", { className: `flex items-start ${r}`, children: e.map((t,
|
|
2736
|
-
const c = t.status || (
|
|
2842
|
+
return a === "horizontal" ? /* @__PURE__ */ l("div", { className: `flex items-start ${r}`, children: e.map((t, i) => {
|
|
2843
|
+
const c = t.status || (i === 0 ? "active" : i < e.findIndex((d) => d.status === "active") ? "completed" : "default"), o = i === e.length - 1;
|
|
2737
2844
|
return /* @__PURE__ */ l("div", { className: "flex items-start flex-1", children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center flex-1", children: [
|
|
2738
2845
|
/* @__PURE__ */ l(
|
|
2739
2846
|
"div",
|
|
2740
|
-
y(
|
|
2847
|
+
y(f({}, c === "default" ? { "data-marker": "pending" } : {}), {
|
|
2741
2848
|
className: `
|
|
2742
2849
|
flex
|
|
2743
2850
|
items-center
|
|
@@ -2748,7 +2855,7 @@ function Ya({
|
|
|
2748
2855
|
border-2
|
|
2749
2856
|
${c === "completed" ? "bg-success border-success text-fg-inverse" : c === "active" ? "bg-surface-brand-strong border-line-brand text-fg-inverse" : c === "error" ? "bg-error border-error text-fg-inverse" : "bg-surface-base border-line-emphasis text-fg-quaternary"}
|
|
2750
2857
|
`,
|
|
2751
|
-
children: t.icon || (c === "completed" ? /* @__PURE__ */ l(ne, { className: "h-4 w-4" }) :
|
|
2858
|
+
children: t.icon || (c === "completed" ? /* @__PURE__ */ l(ne, { className: "h-4 w-4" }) : i + 1)
|
|
2752
2859
|
})
|
|
2753
2860
|
),
|
|
2754
2861
|
!o && /* @__PURE__ */ l(
|
|
@@ -2757,7 +2864,7 @@ function Ya({
|
|
|
2757
2864
|
className: `
|
|
2758
2865
|
w-full
|
|
2759
2866
|
h-0.5
|
|
2760
|
-
${
|
|
2867
|
+
${s("sm", "mt")}
|
|
2761
2868
|
${c === "completed" ? "bg-success" : "bg-line-emphasis"}
|
|
2762
2869
|
`
|
|
2763
2870
|
}
|
|
@@ -2765,12 +2872,12 @@ function Ya({
|
|
|
2765
2872
|
/* @__PURE__ */ v(
|
|
2766
2873
|
"div",
|
|
2767
2874
|
{
|
|
2768
|
-
className: `${
|
|
2875
|
+
className: `${s("base", "mt")} text-center ${s("base", "px")}`,
|
|
2769
2876
|
children: [
|
|
2770
2877
|
t.timestamp && /* @__PURE__ */ l(
|
|
2771
2878
|
"p",
|
|
2772
2879
|
{
|
|
2773
|
-
className: `text-xs text-fg-tertiary ${
|
|
2880
|
+
className: `text-xs text-fg-tertiary ${s("xs", "mb")}`,
|
|
2774
2881
|
children: t.timestamp
|
|
2775
2882
|
}
|
|
2776
2883
|
),
|
|
@@ -2778,26 +2885,26 @@ function Ya({
|
|
|
2778
2885
|
t.description && /* @__PURE__ */ l(
|
|
2779
2886
|
"p",
|
|
2780
2887
|
{
|
|
2781
|
-
className: `text-xs text-fg-secondary ${
|
|
2888
|
+
className: `text-xs text-fg-secondary ${s("xs", "mt")}`,
|
|
2782
2889
|
children: t.description
|
|
2783
2890
|
}
|
|
2784
2891
|
),
|
|
2785
|
-
t.content && /* @__PURE__ */ l("div", { className:
|
|
2892
|
+
t.content && /* @__PURE__ */ l("div", { className: s("sm", "mt"), children: t.content })
|
|
2786
2893
|
]
|
|
2787
2894
|
}
|
|
2788
2895
|
)
|
|
2789
2896
|
] }) }, t.id);
|
|
2790
|
-
}) }) : /* @__PURE__ */ l("div", { className: `${
|
|
2791
|
-
const c = t.status || (
|
|
2897
|
+
}) }) : /* @__PURE__ */ l("div", { className: `${s("none", "space-y")} ${r}`, children: e.map((t, i) => {
|
|
2898
|
+
const c = t.status || (i === 0 ? "active" : i < e.findIndex((d) => d.status === "active") ? "completed" : "default"), o = i === e.length - 1;
|
|
2792
2899
|
return /* @__PURE__ */ v(
|
|
2793
2900
|
"div",
|
|
2794
2901
|
{
|
|
2795
|
-
className: `flex items-start ${
|
|
2902
|
+
className: `flex items-start ${s("base", "gap")}`,
|
|
2796
2903
|
children: [
|
|
2797
2904
|
/* @__PURE__ */ v("div", { className: "flex flex-col items-center", children: [
|
|
2798
2905
|
/* @__PURE__ */ l(
|
|
2799
2906
|
"div",
|
|
2800
|
-
y(
|
|
2907
|
+
y(f({}, c === "default" ? { "data-marker": "pending" } : {}), {
|
|
2801
2908
|
className: `
|
|
2802
2909
|
flex
|
|
2803
2910
|
items-center
|
|
@@ -2808,7 +2915,7 @@ function Ya({
|
|
|
2808
2915
|
border-2
|
|
2809
2916
|
${c === "completed" ? "bg-success border-success text-fg-inverse" : c === "active" ? "bg-surface-brand-strong border-line-brand text-fg-inverse" : c === "error" ? "bg-error border-error text-fg-inverse" : "bg-surface-base border-line-emphasis text-fg-quaternary"}
|
|
2810
2917
|
`,
|
|
2811
|
-
children: t.icon || (c === "completed" ? /* @__PURE__ */ l(ne, { className: "h-4 w-4" }) :
|
|
2918
|
+
children: t.icon || (c === "completed" ? /* @__PURE__ */ l(ne, { className: "h-4 w-4" }) : i + 1)
|
|
2812
2919
|
})
|
|
2813
2920
|
),
|
|
2814
2921
|
!o && /* @__PURE__ */ l(
|
|
@@ -2818,17 +2925,17 @@ function Ya({
|
|
|
2818
2925
|
w-0.5
|
|
2819
2926
|
flex-1
|
|
2820
2927
|
min-h-16
|
|
2821
|
-
${
|
|
2928
|
+
${s("sm", "mt")}
|
|
2822
2929
|
${c === "completed" ? "bg-success" : "bg-line-emphasis"}
|
|
2823
2930
|
`
|
|
2824
2931
|
}
|
|
2825
2932
|
)
|
|
2826
2933
|
] }),
|
|
2827
|
-
/* @__PURE__ */ v("div", { className: `flex-1 ${
|
|
2934
|
+
/* @__PURE__ */ v("div", { className: `flex-1 ${s("xl", "pb")}`, children: [
|
|
2828
2935
|
t.timestamp && /* @__PURE__ */ l(
|
|
2829
2936
|
"p",
|
|
2830
2937
|
{
|
|
2831
|
-
className: `text-xs text-fg-tertiary ${
|
|
2938
|
+
className: `text-xs text-fg-tertiary ${s("xs", "mb")}`,
|
|
2832
2939
|
children: t.timestamp
|
|
2833
2940
|
}
|
|
2834
2941
|
),
|
|
@@ -2846,11 +2953,11 @@ function Ya({
|
|
|
2846
2953
|
t.description && /* @__PURE__ */ l(
|
|
2847
2954
|
"p",
|
|
2848
2955
|
{
|
|
2849
|
-
className: `text-sm text-fg-secondary ${
|
|
2956
|
+
className: `text-sm text-fg-secondary ${s("xs", "mt")}`,
|
|
2850
2957
|
children: t.description
|
|
2851
2958
|
}
|
|
2852
2959
|
),
|
|
2853
|
-
t.content && /* @__PURE__ */ l("div", { className:
|
|
2960
|
+
t.content && /* @__PURE__ */ l("div", { className: s("md", "mt"), children: t.content })
|
|
2854
2961
|
] })
|
|
2855
2962
|
]
|
|
2856
2963
|
},
|
|
@@ -2860,41 +2967,42 @@ function Ya({
|
|
|
2860
2967
|
}
|
|
2861
2968
|
export {
|
|
2862
2969
|
Ee as Badge,
|
|
2863
|
-
|
|
2970
|
+
da as Breadcrumb,
|
|
2864
2971
|
Ie as Button,
|
|
2865
2972
|
W as Card,
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2973
|
+
ma as CardActions,
|
|
2974
|
+
ga as CardBody,
|
|
2975
|
+
ua as CardHeader,
|
|
2976
|
+
pa as CardSubtitle,
|
|
2977
|
+
fa as CardTitle,
|
|
2871
2978
|
We as Chip,
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2979
|
+
oa as Container,
|
|
2980
|
+
Ke as DataBadge,
|
|
2981
|
+
Ma as DialogFooter,
|
|
2982
|
+
Oa as DialogHeader,
|
|
2983
|
+
Pa as DrawerFooter,
|
|
2984
|
+
Ha as DrawerHeader,
|
|
2985
|
+
ja as ErrorMessage,
|
|
2986
|
+
Ia as FilterChips,
|
|
2987
|
+
Wa as HeaderActions,
|
|
2988
|
+
Ua as HeaderNavigation,
|
|
2989
|
+
va as HeroSection,
|
|
2990
|
+
Ra as Info,
|
|
2991
|
+
Ge as InputBase,
|
|
2992
|
+
Je as Label,
|
|
2993
|
+
Ka as MenuSeparator,
|
|
2994
|
+
qa as NavbarSeparator,
|
|
2995
|
+
Xa as PageHeader,
|
|
2996
|
+
aa as Progress,
|
|
2997
|
+
na as Separator,
|
|
2998
|
+
Ba as Skeleton,
|
|
2891
2999
|
fe as Spinner,
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
3000
|
+
ca as Stack,
|
|
3001
|
+
Ga as Stat,
|
|
3002
|
+
Ya as StatGroup,
|
|
3003
|
+
Za as TableCell,
|
|
3004
|
+
Ta as TabsAsLinks,
|
|
3005
|
+
H as Text,
|
|
3006
|
+
Ja as Timeline
|
|
2899
3007
|
};
|
|
2900
3008
|
//# sourceMappingURL=index.js.map
|