@fabio.caffarello/react-design-system 4.2.0 → 4.3.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 +137 -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 +55 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2618 -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 +670 -565
- package/dist/server/index.js.map +1 -1
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/primitives/DataBadge/DataBadge.d.ts +56 -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 z } 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"),
|
|
@@ -313,15 +313,15 @@ const Z = {
|
|
|
313
313
|
caption: E.create("xs", "normal", "normal"),
|
|
314
314
|
button: E.create("base", "normal", "medium")
|
|
315
315
|
};
|
|
316
|
-
function
|
|
317
|
-
const a =
|
|
316
|
+
function F(e) {
|
|
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
|
+
z(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 =
|
|
550
|
+
ie(k) && typeof q == "function" && (k = q(k._payload)), o = Fe(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 = ze(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 De = /* @__PURE__ */ Le("Slottable"), Fe = (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 ze(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
|
),
|
|
@@ -678,7 +678,7 @@ const Pe = L(
|
|
|
678
678
|
"inline-flex",
|
|
679
679
|
"items-center",
|
|
680
680
|
"justify-center",
|
|
681
|
-
|
|
681
|
+
F("button").split(" ")[2] || "font-medium",
|
|
682
682
|
// Extract font-medium
|
|
683
683
|
$("md"),
|
|
684
684
|
"transition-colors",
|
|
@@ -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
|
+
z(function(k, T) {
|
|
848
|
+
var D = 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
|
+
} = D, S = h(D, [
|
|
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(De, { 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 = z(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, D = 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 : D ? 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,112 @@ 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
|
+
},
|
|
1146
|
+
size: {
|
|
1147
|
+
sm: n(
|
|
1148
|
+
s("1.5", "px"),
|
|
1149
|
+
s("0.5", "py"),
|
|
1150
|
+
s("0.5", "gap"),
|
|
1151
|
+
"[&_svg]:size-3"
|
|
1152
|
+
),
|
|
1153
|
+
md: n(
|
|
1154
|
+
s("sm", "px"),
|
|
1155
|
+
s("0.5", "py"),
|
|
1156
|
+
s("xs", "gap"),
|
|
1157
|
+
"[&_svg]:size-3.5"
|
|
1158
|
+
)
|
|
1159
|
+
}
|
|
1160
|
+
},
|
|
1161
|
+
defaultVariants: { tone: "neutral", size: "md" }
|
|
1162
|
+
}
|
|
1163
|
+
), Ke = M(
|
|
1164
|
+
z(function(b, p) {
|
|
1165
|
+
var m = b, {
|
|
1166
|
+
label: a,
|
|
1167
|
+
source: r,
|
|
1168
|
+
tone: t = "neutral",
|
|
1169
|
+
size: i = "md",
|
|
1170
|
+
icon: c,
|
|
1171
|
+
className: o = ""
|
|
1172
|
+
} = m, d = h(m, [
|
|
1173
|
+
"label",
|
|
1174
|
+
"source",
|
|
1175
|
+
"tone",
|
|
1176
|
+
"size",
|
|
1177
|
+
"icon",
|
|
1178
|
+
"className"
|
|
1179
|
+
]);
|
|
1180
|
+
const x = r != null && r !== "", u = i === "sm" ? "caption" : "bodySmall";
|
|
1181
|
+
return /* @__PURE__ */ v(
|
|
1182
|
+
"span",
|
|
1183
|
+
y(f({
|
|
1184
|
+
ref: p,
|
|
1185
|
+
className: n(Ue({ tone: t, size: i }), o)
|
|
1186
|
+
}, d), {
|
|
1187
|
+
children: [
|
|
1188
|
+
c ? /* @__PURE__ */ l(
|
|
1189
|
+
"span",
|
|
1190
|
+
{
|
|
1191
|
+
className: "inline-flex shrink-0 items-center",
|
|
1192
|
+
"aria-hidden": "true",
|
|
1193
|
+
children: c
|
|
1194
|
+
}
|
|
1195
|
+
) : null,
|
|
1196
|
+
/* @__PURE__ */ l(
|
|
1197
|
+
"span",
|
|
1198
|
+
{
|
|
1199
|
+
className: n(
|
|
1200
|
+
w(u),
|
|
1201
|
+
j("label")
|
|
1202
|
+
),
|
|
1203
|
+
children: a
|
|
1204
|
+
}
|
|
1205
|
+
),
|
|
1206
|
+
x ? /* @__PURE__ */ v(Z, { children: [
|
|
1207
|
+
/* @__PURE__ */ l("span", { "aria-hidden": "true", className: w("caption"), children: "·" }),
|
|
1208
|
+
/* @__PURE__ */ l(
|
|
1209
|
+
"span",
|
|
1210
|
+
{
|
|
1211
|
+
className: n(
|
|
1212
|
+
w("caption"),
|
|
1213
|
+
j("caption")
|
|
1214
|
+
),
|
|
1215
|
+
children: r
|
|
1216
|
+
}
|
|
1217
|
+
)
|
|
1218
|
+
] }) : null
|
|
1219
|
+
]
|
|
1220
|
+
})
|
|
1221
|
+
);
|
|
1222
|
+
})
|
|
1223
|
+
);
|
|
1224
|
+
Ke.displayName = "DataBadge";
|
|
1225
|
+
function ja(i) {
|
|
1226
|
+
var c = i, {
|
|
1123
1227
|
message: e,
|
|
1124
1228
|
id: a,
|
|
1125
1229
|
className: r = ""
|
|
@@ -1129,23 +1233,23 @@ function _a(s) {
|
|
|
1129
1233
|
"className"
|
|
1130
1234
|
]);
|
|
1131
1235
|
const o = [
|
|
1132
|
-
|
|
1133
|
-
|
|
1236
|
+
s("xs", "mt"),
|
|
1237
|
+
w("bodySmall"),
|
|
1134
1238
|
"text-fg-error",
|
|
1135
1239
|
"flex",
|
|
1136
1240
|
"items-center",
|
|
1137
|
-
|
|
1241
|
+
s("xs", "gap")
|
|
1138
1242
|
], d = n(...o, r);
|
|
1139
|
-
return /* @__PURE__ */ v("div", y(
|
|
1243
|
+
return /* @__PURE__ */ v("div", y(f({ role: "alert", id: a, className: d, "aria-live": "polite" }, t), { children: [
|
|
1140
1244
|
/* @__PURE__ */ l(Se, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }),
|
|
1141
1245
|
/* @__PURE__ */ l("span", { children: e })
|
|
1142
1246
|
] }));
|
|
1143
1247
|
}
|
|
1144
|
-
function
|
|
1145
|
-
var
|
|
1248
|
+
function Ra(t) {
|
|
1249
|
+
var i = t, {
|
|
1146
1250
|
variant: e = "info",
|
|
1147
1251
|
className: a
|
|
1148
|
-
} =
|
|
1252
|
+
} = i, r = h(i, [
|
|
1149
1253
|
"variant",
|
|
1150
1254
|
"className"
|
|
1151
1255
|
]);
|
|
@@ -1156,12 +1260,12 @@ function ja(t) {
|
|
|
1156
1260
|
};
|
|
1157
1261
|
return /* @__PURE__ */ l(
|
|
1158
1262
|
"div",
|
|
1159
|
-
|
|
1263
|
+
f({
|
|
1160
1264
|
role: "alert",
|
|
1161
1265
|
className: n(
|
|
1162
1266
|
"border",
|
|
1163
|
-
|
|
1164
|
-
|
|
1267
|
+
s("base", "px"),
|
|
1268
|
+
s("sm", "py"),
|
|
1165
1269
|
$("lg"),
|
|
1166
1270
|
c[e],
|
|
1167
1271
|
a
|
|
@@ -1169,7 +1273,7 @@ function ja(t) {
|
|
|
1169
1273
|
}, r)
|
|
1170
1274
|
);
|
|
1171
1275
|
}
|
|
1172
|
-
const
|
|
1276
|
+
const qe = L(
|
|
1173
1277
|
n(
|
|
1174
1278
|
"w-full",
|
|
1175
1279
|
$("md"),
|
|
@@ -1205,18 +1309,18 @@ const Ue = L(
|
|
|
1205
1309
|
size: {
|
|
1206
1310
|
sm: n(
|
|
1207
1311
|
"h-8",
|
|
1208
|
-
|
|
1209
|
-
|
|
1312
|
+
w("bodySmall"),
|
|
1313
|
+
s("md", "px")
|
|
1210
1314
|
),
|
|
1211
1315
|
md: n(
|
|
1212
1316
|
"h-10",
|
|
1213
|
-
|
|
1214
|
-
|
|
1317
|
+
w("body"),
|
|
1318
|
+
s("base", "px")
|
|
1215
1319
|
),
|
|
1216
1320
|
lg: n(
|
|
1217
1321
|
"h-12",
|
|
1218
|
-
|
|
1219
|
-
|
|
1322
|
+
w("bodyLarge"),
|
|
1323
|
+
s("lg", "px")
|
|
1220
1324
|
)
|
|
1221
1325
|
},
|
|
1222
1326
|
state: {
|
|
@@ -1236,16 +1340,16 @@ const Ue = L(
|
|
|
1236
1340
|
}
|
|
1237
1341
|
}
|
|
1238
1342
|
);
|
|
1239
|
-
function
|
|
1343
|
+
function Xe({
|
|
1240
1344
|
error: e,
|
|
1241
1345
|
success: a,
|
|
1242
1346
|
helperText: r,
|
|
1243
1347
|
errorId: t,
|
|
1244
|
-
helperId:
|
|
1348
|
+
helperId: i
|
|
1245
1349
|
}) {
|
|
1246
1350
|
const c = n(
|
|
1247
|
-
|
|
1248
|
-
|
|
1351
|
+
s("xs", "mt"),
|
|
1352
|
+
F("caption"),
|
|
1249
1353
|
e && "text-fg-error",
|
|
1250
1354
|
a && "text-fg-success",
|
|
1251
1355
|
!e && !a && "text-fg-secondary"
|
|
@@ -1253,30 +1357,30 @@ function Ke({
|
|
|
1253
1357
|
return /* @__PURE__ */ l(
|
|
1254
1358
|
"div",
|
|
1255
1359
|
{
|
|
1256
|
-
id: t ||
|
|
1360
|
+
id: t || i,
|
|
1257
1361
|
className: c,
|
|
1258
1362
|
role: e || a ? "alert" : void 0,
|
|
1259
1363
|
children: r || (e ? "Error" : a ? "Success" : "")
|
|
1260
1364
|
}
|
|
1261
1365
|
);
|
|
1262
1366
|
}
|
|
1263
|
-
const
|
|
1264
|
-
function(T,
|
|
1367
|
+
const Ge = z(
|
|
1368
|
+
function(T, S) {
|
|
1265
1369
|
var k = T, {
|
|
1266
1370
|
id: a,
|
|
1267
1371
|
label: r,
|
|
1268
1372
|
error: t = !1,
|
|
1269
|
-
success:
|
|
1373
|
+
success: i = !1,
|
|
1270
1374
|
helperText: c,
|
|
1271
1375
|
size: o = "md",
|
|
1272
1376
|
variant: d = "outlined",
|
|
1273
1377
|
leftIcon: p,
|
|
1274
|
-
rightIcon:
|
|
1378
|
+
rightIcon: b,
|
|
1275
1379
|
rightSlot: m,
|
|
1276
|
-
className:
|
|
1277
|
-
disabled:
|
|
1380
|
+
className: x = "",
|
|
1381
|
+
disabled: u = !1,
|
|
1278
1382
|
type: g = "text"
|
|
1279
|
-
} = k,
|
|
1383
|
+
} = k, N = h(k, [
|
|
1280
1384
|
"id",
|
|
1281
1385
|
"label",
|
|
1282
1386
|
"error",
|
|
@@ -1294,19 +1398,19 @@ const qe = _(
|
|
|
1294
1398
|
typeof process != "undefined" && process.env.NODE_ENV !== "production" && r && !a && console.warn(
|
|
1295
1399
|
"[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
1400
|
);
|
|
1297
|
-
const
|
|
1298
|
-
|
|
1401
|
+
const D = 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(
|
|
1402
|
+
qe({ variant: d, size: o, state: D }),
|
|
1299
1403
|
// Icon padding — `pl-9` / `pr-9` aren't on the spacing scale (no
|
|
1300
1404
|
// semantic key for 36px) so they stay raw at the `sm` size; md/lg use
|
|
1301
1405
|
// the getter. Mirrors the original Input contract.
|
|
1302
|
-
p && (o === "sm" ? "pl-9" :
|
|
1303
|
-
(
|
|
1304
|
-
|
|
1406
|
+
p && (o === "sm" ? "pl-9" : s(o === "lg" ? "3xl" : "2xl", "pl")),
|
|
1407
|
+
(b || m) && (o === "sm" ? "pr-9" : s(o === "lg" ? "3xl" : "2xl", "pr")),
|
|
1408
|
+
x
|
|
1305
1409
|
), V = n(
|
|
1306
1410
|
"block",
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1411
|
+
F("label"),
|
|
1412
|
+
s("xs", "mb"),
|
|
1413
|
+
u && "opacity-50"
|
|
1310
1414
|
);
|
|
1311
1415
|
return /* @__PURE__ */ v("div", { className: "w-full", children: [
|
|
1312
1416
|
r && /* @__PURE__ */ l("label", { htmlFor: a, className: V, children: r }),
|
|
@@ -1320,76 +1424,76 @@ const qe = _(
|
|
|
1320
1424
|
),
|
|
1321
1425
|
/* @__PURE__ */ l(
|
|
1322
1426
|
"input",
|
|
1323
|
-
|
|
1427
|
+
f({
|
|
1324
1428
|
id: a,
|
|
1325
|
-
ref:
|
|
1429
|
+
ref: S,
|
|
1326
1430
|
type: g,
|
|
1327
1431
|
className: U,
|
|
1328
|
-
disabled:
|
|
1432
|
+
disabled: u,
|
|
1329
1433
|
"aria-invalid": t,
|
|
1330
|
-
"aria-required":
|
|
1331
|
-
"aria-describedby":
|
|
1434
|
+
"aria-required": N.required,
|
|
1435
|
+
"aria-describedby": R || B,
|
|
1332
1436
|
suppressHydrationWarning: !0
|
|
1333
|
-
},
|
|
1437
|
+
}, N)
|
|
1334
1438
|
),
|
|
1335
|
-
(
|
|
1439
|
+
(b || m) && /* @__PURE__ */ l(
|
|
1336
1440
|
"div",
|
|
1337
1441
|
{
|
|
1338
|
-
className: `absolute right-3 top-0 bottom-0 flex items-center ${
|
|
1442
|
+
className: `absolute right-3 top-0 bottom-0 flex items-center ${s("xs", "gap")}`,
|
|
1339
1443
|
children: m != null ? m : /* @__PURE__ */ l(
|
|
1340
1444
|
"div",
|
|
1341
1445
|
{
|
|
1342
1446
|
className: `text-fg-secondary opacity-60 pointer-events-none ${P}`,
|
|
1343
|
-
children:
|
|
1447
|
+
children: b
|
|
1344
1448
|
}
|
|
1345
1449
|
)
|
|
1346
1450
|
}
|
|
1347
1451
|
)
|
|
1348
1452
|
] }),
|
|
1349
|
-
(t ||
|
|
1350
|
-
|
|
1453
|
+
(t || i || c) && /* @__PURE__ */ l(
|
|
1454
|
+
Xe,
|
|
1351
1455
|
{
|
|
1352
1456
|
error: t,
|
|
1353
|
-
success:
|
|
1457
|
+
success: i,
|
|
1354
1458
|
helperText: c,
|
|
1355
|
-
errorId:
|
|
1356
|
-
helperId:
|
|
1459
|
+
errorId: R,
|
|
1460
|
+
helperId: B
|
|
1357
1461
|
}
|
|
1358
1462
|
)
|
|
1359
1463
|
] });
|
|
1360
1464
|
}
|
|
1361
1465
|
);
|
|
1362
|
-
|
|
1363
|
-
const
|
|
1466
|
+
Ge.displayName = "InputBase";
|
|
1467
|
+
const Ye = n(
|
|
1364
1468
|
"block",
|
|
1365
|
-
|
|
1366
|
-
|
|
1469
|
+
w("label"),
|
|
1470
|
+
j("label"),
|
|
1367
1471
|
"text-fg-primary"
|
|
1368
|
-
),
|
|
1472
|
+
), Ze = {
|
|
1369
1473
|
default: "",
|
|
1370
1474
|
required: n(
|
|
1371
1475
|
"after:content-['*']",
|
|
1372
|
-
`after:${
|
|
1476
|
+
`after:${s("0.5", "ml")}`,
|
|
1373
1477
|
"after:text-fg-error"
|
|
1374
1478
|
),
|
|
1375
1479
|
optional: n(
|
|
1376
1480
|
"after:content-['(optional)']",
|
|
1377
|
-
`after:${
|
|
1481
|
+
`after:${s("xs", "ml")}`,
|
|
1378
1482
|
"after:text-fg-tertiary",
|
|
1379
1483
|
"after:font-normal"
|
|
1380
1484
|
)
|
|
1381
|
-
},
|
|
1382
|
-
|
|
1383
|
-
var d = o, { variant: a = "default", className: r = "", children: t } = d,
|
|
1485
|
+
}, Je = M(
|
|
1486
|
+
z(function(o, c) {
|
|
1487
|
+
var d = o, { variant: a = "default", className: r = "", children: t } = d, i = h(d, ["variant", "className", "children"]);
|
|
1384
1488
|
const p = n(
|
|
1385
|
-
|
|
1386
|
-
|
|
1489
|
+
Ye,
|
|
1490
|
+
Ze[a],
|
|
1387
1491
|
r
|
|
1388
1492
|
);
|
|
1389
|
-
return /* @__PURE__ */ l("label", y(
|
|
1493
|
+
return /* @__PURE__ */ l("label", y(f({ ref: c, className: p }, i), { children: t }));
|
|
1390
1494
|
})
|
|
1391
1495
|
);
|
|
1392
|
-
|
|
1496
|
+
Je.displayName = "Label";
|
|
1393
1497
|
class O {
|
|
1394
1498
|
/**
|
|
1395
1499
|
* Create a shadow token
|
|
@@ -1434,7 +1538,7 @@ class O {
|
|
|
1434
1538
|
}[a];
|
|
1435
1539
|
}
|
|
1436
1540
|
}
|
|
1437
|
-
const
|
|
1541
|
+
const Qe = {
|
|
1438
1542
|
none: O.create("none"),
|
|
1439
1543
|
sm: O.create("sm"),
|
|
1440
1544
|
md: O.create("md"),
|
|
@@ -1444,9 +1548,9 @@ const Ze = {
|
|
|
1444
1548
|
inner: O.create("inner")
|
|
1445
1549
|
};
|
|
1446
1550
|
function Y(e) {
|
|
1447
|
-
return
|
|
1551
|
+
return Qe[e].tailwind;
|
|
1448
1552
|
}
|
|
1449
|
-
const
|
|
1553
|
+
const ea = L("w-full", {
|
|
1450
1554
|
variants: {
|
|
1451
1555
|
size: {
|
|
1452
1556
|
sm: "h-1",
|
|
@@ -1480,17 +1584,17 @@ const Je = L("w-full", {
|
|
|
1480
1584
|
defaultVariants: {
|
|
1481
1585
|
variant: "primary"
|
|
1482
1586
|
}
|
|
1483
|
-
}),
|
|
1484
|
-
var
|
|
1587
|
+
}), aa = z(function(x, m) {
|
|
1588
|
+
var u = x, {
|
|
1485
1589
|
value: a,
|
|
1486
1590
|
max: r = 100,
|
|
1487
1591
|
variant: t = "primary",
|
|
1488
|
-
size:
|
|
1592
|
+
size: i = "md",
|
|
1489
1593
|
showLabel: c = !1,
|
|
1490
1594
|
label: o,
|
|
1491
1595
|
"aria-label": d,
|
|
1492
1596
|
className: p = ""
|
|
1493
|
-
} =
|
|
1597
|
+
} = u, b = h(u, [
|
|
1494
1598
|
"value",
|
|
1495
1599
|
"max",
|
|
1496
1600
|
"variant",
|
|
@@ -1500,8 +1604,8 @@ const Je = L("w-full", {
|
|
|
1500
1604
|
"aria-label",
|
|
1501
1605
|
"className"
|
|
1502
1606
|
]);
|
|
1503
|
-
const g = a === void 0,
|
|
1504
|
-
return /* @__PURE__ */ v("div", y(
|
|
1607
|
+
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)}%`);
|
|
1608
|
+
return /* @__PURE__ */ v("div", y(f({ ref: m, className: n("w-full", p) }, b), { children: [
|
|
1505
1609
|
c && (o || !g) && /* @__PURE__ */ v(
|
|
1506
1610
|
"div",
|
|
1507
1611
|
{
|
|
@@ -1509,29 +1613,29 @@ const Je = L("w-full", {
|
|
|
1509
1613
|
"flex",
|
|
1510
1614
|
"items-center",
|
|
1511
1615
|
"justify-between",
|
|
1512
|
-
|
|
1616
|
+
s("xs", "mb")
|
|
1513
1617
|
),
|
|
1514
1618
|
children: [
|
|
1515
1619
|
o && /* @__PURE__ */ l(
|
|
1516
1620
|
"span",
|
|
1517
1621
|
{
|
|
1518
1622
|
className: n(
|
|
1519
|
-
|
|
1520
|
-
|
|
1623
|
+
w("bodySmall"),
|
|
1624
|
+
j("label"),
|
|
1521
1625
|
"text-fg-primary"
|
|
1522
1626
|
),
|
|
1523
1627
|
children: o
|
|
1524
1628
|
}
|
|
1525
1629
|
),
|
|
1526
|
-
!g &&
|
|
1630
|
+
!g && N !== void 0 && /* @__PURE__ */ v(
|
|
1527
1631
|
"span",
|
|
1528
1632
|
{
|
|
1529
1633
|
className: n(
|
|
1530
|
-
|
|
1634
|
+
w("bodySmall"),
|
|
1531
1635
|
"text-fg-secondary"
|
|
1532
1636
|
),
|
|
1533
1637
|
children: [
|
|
1534
|
-
|
|
1638
|
+
N.toFixed(0),
|
|
1535
1639
|
"%"
|
|
1536
1640
|
]
|
|
1537
1641
|
}
|
|
@@ -1546,13 +1650,13 @@ const Je = L("w-full", {
|
|
|
1546
1650
|
"aria-valuemin": g ? void 0 : 0,
|
|
1547
1651
|
"aria-valuemax": g ? void 0 : r,
|
|
1548
1652
|
"aria-valuenow": g ? void 0 : a,
|
|
1549
|
-
"aria-label":
|
|
1653
|
+
"aria-label": S,
|
|
1550
1654
|
"aria-busy": g,
|
|
1551
1655
|
className: n(
|
|
1552
1656
|
"relative",
|
|
1553
1657
|
"w-full",
|
|
1554
1658
|
"overflow-hidden",
|
|
1555
|
-
|
|
1659
|
+
ea({ size: i, variant: t }),
|
|
1556
1660
|
$("full")
|
|
1557
1661
|
),
|
|
1558
1662
|
children: g ? /* @__PURE__ */ l(
|
|
@@ -1584,7 +1688,7 @@ const Je = L("w-full", {
|
|
|
1584
1688
|
"ease-out"
|
|
1585
1689
|
),
|
|
1586
1690
|
style: {
|
|
1587
|
-
width: `${
|
|
1691
|
+
width: `${N}%`
|
|
1588
1692
|
},
|
|
1589
1693
|
"aria-hidden": "true"
|
|
1590
1694
|
}
|
|
@@ -1593,20 +1697,20 @@ const Je = L("w-full", {
|
|
|
1593
1697
|
)
|
|
1594
1698
|
] }));
|
|
1595
1699
|
});
|
|
1596
|
-
|
|
1597
|
-
const
|
|
1700
|
+
aa.displayName = "Progress";
|
|
1701
|
+
const ta = {
|
|
1598
1702
|
horizontal: "w-full border-t",
|
|
1599
1703
|
vertical: "h-full border-l self-stretch"
|
|
1600
|
-
},
|
|
1704
|
+
}, ra = {
|
|
1601
1705
|
solid: "border-solid",
|
|
1602
1706
|
dashed: "border-dashed",
|
|
1603
1707
|
dotted: "border-dotted"
|
|
1604
|
-
},
|
|
1708
|
+
}, na = M(function(c) {
|
|
1605
1709
|
var o = c, {
|
|
1606
1710
|
orientation: a = "horizontal",
|
|
1607
1711
|
variant: r = "solid",
|
|
1608
1712
|
className: t = ""
|
|
1609
|
-
} = o,
|
|
1713
|
+
} = o, i = h(o, [
|
|
1610
1714
|
"orientation",
|
|
1611
1715
|
"variant",
|
|
1612
1716
|
"className"
|
|
@@ -1614,34 +1718,34 @@ const ea = {
|
|
|
1614
1718
|
const d = n(
|
|
1615
1719
|
"border-0",
|
|
1616
1720
|
"border-line-default",
|
|
1617
|
-
|
|
1618
|
-
|
|
1721
|
+
ta[a],
|
|
1722
|
+
ra[r],
|
|
1619
1723
|
t
|
|
1620
1724
|
);
|
|
1621
1725
|
return a === "vertical" ? /* @__PURE__ */ l(
|
|
1622
1726
|
"div",
|
|
1623
|
-
|
|
1727
|
+
f({
|
|
1624
1728
|
className: d,
|
|
1625
1729
|
role: "separator",
|
|
1626
1730
|
"aria-orientation": "vertical"
|
|
1627
|
-
},
|
|
1731
|
+
}, i)
|
|
1628
1732
|
) : /* @__PURE__ */ l(
|
|
1629
1733
|
"hr",
|
|
1630
|
-
|
|
1734
|
+
f({
|
|
1631
1735
|
className: d,
|
|
1632
1736
|
role: "separator",
|
|
1633
1737
|
"aria-orientation": "horizontal"
|
|
1634
|
-
},
|
|
1738
|
+
}, i)
|
|
1635
1739
|
);
|
|
1636
1740
|
});
|
|
1637
|
-
|
|
1638
|
-
function
|
|
1741
|
+
na.displayName = "Separator";
|
|
1742
|
+
function Ba(d) {
|
|
1639
1743
|
var p = d, {
|
|
1640
1744
|
variant: e = "text",
|
|
1641
1745
|
width: a,
|
|
1642
1746
|
height: r,
|
|
1643
1747
|
lines: t = 1,
|
|
1644
|
-
className:
|
|
1748
|
+
className: i = "",
|
|
1645
1749
|
"aria-label": c
|
|
1646
1750
|
} = p, o = h(p, [
|
|
1647
1751
|
"variant",
|
|
@@ -1651,7 +1755,7 @@ function za(d) {
|
|
|
1651
1755
|
"className",
|
|
1652
1756
|
"aria-label"
|
|
1653
1757
|
]);
|
|
1654
|
-
const
|
|
1758
|
+
const b = [
|
|
1655
1759
|
"motion-safe:animate-pulse",
|
|
1656
1760
|
"bg-surface-muted",
|
|
1657
1761
|
$("sm")
|
|
@@ -1660,39 +1764,39 @@ function za(d) {
|
|
|
1660
1764
|
card: "h-32",
|
|
1661
1765
|
list: "h-12",
|
|
1662
1766
|
circle: $("full")
|
|
1663
|
-
},
|
|
1664
|
-
a && (
|
|
1767
|
+
}, x = n(...b, m[e], i), u = {};
|
|
1768
|
+
a && (u.width = a), r && (u.height = r);
|
|
1665
1769
|
const g = c || `Loading ${e} content`;
|
|
1666
1770
|
return e === "text" && t > 1 ? /* @__PURE__ */ l(
|
|
1667
1771
|
"div",
|
|
1668
|
-
y(
|
|
1669
|
-
className:
|
|
1772
|
+
y(f({
|
|
1773
|
+
className: s("sm", "space-y"),
|
|
1670
1774
|
role: "status",
|
|
1671
1775
|
"aria-busy": "true",
|
|
1672
1776
|
"aria-label": g
|
|
1673
1777
|
}, o), {
|
|
1674
|
-
children: Array.from({ length: t }).map((
|
|
1778
|
+
children: Array.from({ length: t }).map((N, S) => /* @__PURE__ */ l(
|
|
1675
1779
|
"div",
|
|
1676
1780
|
{
|
|
1677
|
-
className:
|
|
1678
|
-
style:
|
|
1781
|
+
className: x,
|
|
1782
|
+
style: S === t - 1 ? { width: "75%" } : u,
|
|
1679
1783
|
"aria-hidden": "true"
|
|
1680
1784
|
},
|
|
1681
|
-
|
|
1785
|
+
S
|
|
1682
1786
|
))
|
|
1683
1787
|
})
|
|
1684
1788
|
) : /* @__PURE__ */ l(
|
|
1685
1789
|
"div",
|
|
1686
|
-
|
|
1687
|
-
className:
|
|
1688
|
-
style:
|
|
1790
|
+
f({
|
|
1791
|
+
className: x,
|
|
1792
|
+
style: u,
|
|
1689
1793
|
role: "status",
|
|
1690
1794
|
"aria-busy": "true",
|
|
1691
1795
|
"aria-label": g
|
|
1692
1796
|
}, o)
|
|
1693
1797
|
);
|
|
1694
1798
|
}
|
|
1695
|
-
const
|
|
1799
|
+
const sa = {
|
|
1696
1800
|
primary: {
|
|
1697
1801
|
// exception: variant color — no semantic equivalent (Principle 3, .claude/rules/colors.md)
|
|
1698
1802
|
light: "text-indigo-400",
|
|
@@ -1744,13 +1848,13 @@ const ra = {
|
|
|
1744
1848
|
contrast: "text-fg-inverse"
|
|
1745
1849
|
}
|
|
1746
1850
|
};
|
|
1747
|
-
function
|
|
1748
|
-
var m =
|
|
1851
|
+
function ia(b, p) {
|
|
1852
|
+
var m = b, {
|
|
1749
1853
|
variant: e = "paragraph",
|
|
1750
1854
|
bold: a,
|
|
1751
1855
|
italic: r,
|
|
1752
1856
|
className: t,
|
|
1753
|
-
as:
|
|
1857
|
+
as: i,
|
|
1754
1858
|
colorRole: c = "neutral",
|
|
1755
1859
|
colorShade: o = "dark"
|
|
1756
1860
|
} = m, d = h(m, [
|
|
@@ -1762,41 +1866,41 @@ function na(x, p) {
|
|
|
1762
1866
|
"colorRole",
|
|
1763
1867
|
"colorShade"
|
|
1764
1868
|
]);
|
|
1765
|
-
const
|
|
1766
|
-
let
|
|
1767
|
-
if (
|
|
1768
|
-
|
|
1869
|
+
const x = [];
|
|
1870
|
+
let u;
|
|
1871
|
+
if (i)
|
|
1872
|
+
u = i;
|
|
1769
1873
|
else
|
|
1770
1874
|
switch (e) {
|
|
1771
1875
|
case "heading":
|
|
1772
|
-
|
|
1876
|
+
u = "h2";
|
|
1773
1877
|
break;
|
|
1774
1878
|
case "list":
|
|
1775
|
-
|
|
1879
|
+
u = "li";
|
|
1776
1880
|
break;
|
|
1777
1881
|
default:
|
|
1778
|
-
|
|
1882
|
+
u = "p";
|
|
1779
1883
|
break;
|
|
1780
1884
|
}
|
|
1781
|
-
return e === "heading" ?
|
|
1885
|
+
return e === "heading" ? x.push(F("h2")) : e === "body" || e === "paragraph" ? x.push(F("body")) : e === "bodySmall" ? x.push(F("bodySmall")) : e === "bodyLarge" ? x.push(F("bodyLarge")) : e === "caption" ? x.push(F("caption")) : e === "label" ? x.push(F("label")) : x.push(F("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
1886
|
}
|
|
1783
|
-
const
|
|
1887
|
+
const H = z(ia), la = {
|
|
1784
1888
|
sm: "max-w-screen-sm",
|
|
1785
1889
|
md: "max-w-screen-md",
|
|
1786
1890
|
lg: "max-w-screen-lg",
|
|
1787
1891
|
xl: "max-w-screen-xl",
|
|
1788
1892
|
"2xl": "max-w-screen-2xl",
|
|
1789
1893
|
full: "max-w-full"
|
|
1790
|
-
},
|
|
1894
|
+
}, oa = ce.forwardRef(
|
|
1791
1895
|
(p, d) => {
|
|
1792
|
-
var
|
|
1896
|
+
var b = p, {
|
|
1793
1897
|
className: e,
|
|
1794
1898
|
maxWidth: a = "lg",
|
|
1795
1899
|
paddingX: r = "base",
|
|
1796
1900
|
paddingY: t = "base",
|
|
1797
|
-
center:
|
|
1901
|
+
center: i = !0,
|
|
1798
1902
|
children: c
|
|
1799
|
-
} =
|
|
1903
|
+
} = b, o = h(b, [
|
|
1800
1904
|
"className",
|
|
1801
1905
|
"maxWidth",
|
|
1802
1906
|
"paddingX",
|
|
@@ -1806,14 +1910,14 @@ const M = _(na), sa = {
|
|
|
1806
1910
|
]);
|
|
1807
1911
|
return /* @__PURE__ */ l(
|
|
1808
1912
|
"div",
|
|
1809
|
-
y(
|
|
1913
|
+
y(f({
|
|
1810
1914
|
ref: d,
|
|
1811
1915
|
className: n(
|
|
1812
1916
|
"w-full",
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1917
|
+
la[a],
|
|
1918
|
+
s(r, "px"),
|
|
1919
|
+
s(t, "py"),
|
|
1920
|
+
i && "mx-auto",
|
|
1817
1921
|
e
|
|
1818
1922
|
)
|
|
1819
1923
|
}, o), {
|
|
@@ -1822,17 +1926,17 @@ const M = _(na), sa = {
|
|
|
1822
1926
|
);
|
|
1823
1927
|
}
|
|
1824
1928
|
);
|
|
1825
|
-
|
|
1826
|
-
const
|
|
1929
|
+
oa.displayName = "Container";
|
|
1930
|
+
const ca = ce.forwardRef(
|
|
1827
1931
|
(p, d) => {
|
|
1828
|
-
var
|
|
1932
|
+
var b = p, {
|
|
1829
1933
|
className: e,
|
|
1830
1934
|
spacing: a = "base",
|
|
1831
1935
|
align: r = "stretch",
|
|
1832
1936
|
justify: t = "start",
|
|
1833
|
-
direction:
|
|
1937
|
+
direction: i = "column",
|
|
1834
1938
|
children: c
|
|
1835
|
-
} =
|
|
1939
|
+
} = b, o = h(b, [
|
|
1836
1940
|
"className",
|
|
1837
1941
|
"spacing",
|
|
1838
1942
|
"align",
|
|
@@ -1840,12 +1944,12 @@ const la = ce.forwardRef(
|
|
|
1840
1944
|
"direction",
|
|
1841
1945
|
"children"
|
|
1842
1946
|
]);
|
|
1843
|
-
const m =
|
|
1947
|
+
const m = i === "column" ? s(a, "gap-y") : s(a, "gap-x"), x = {
|
|
1844
1948
|
start: "items-start",
|
|
1845
1949
|
center: "items-center",
|
|
1846
1950
|
end: "items-end",
|
|
1847
1951
|
stretch: "items-stretch"
|
|
1848
|
-
},
|
|
1952
|
+
}, u = {
|
|
1849
1953
|
start: "justify-start",
|
|
1850
1954
|
center: "justify-center",
|
|
1851
1955
|
end: "justify-end",
|
|
@@ -1855,14 +1959,14 @@ const la = ce.forwardRef(
|
|
|
1855
1959
|
};
|
|
1856
1960
|
return /* @__PURE__ */ l(
|
|
1857
1961
|
"div",
|
|
1858
|
-
y(
|
|
1962
|
+
y(f({
|
|
1859
1963
|
ref: d,
|
|
1860
1964
|
className: n(
|
|
1861
1965
|
"flex",
|
|
1862
|
-
|
|
1966
|
+
i === "column" ? "flex-col" : "flex-row",
|
|
1863
1967
|
m,
|
|
1864
|
-
|
|
1865
|
-
|
|
1968
|
+
x[r],
|
|
1969
|
+
u[t],
|
|
1866
1970
|
e
|
|
1867
1971
|
)
|
|
1868
1972
|
}, o), {
|
|
@@ -1871,9 +1975,9 @@ const la = ce.forwardRef(
|
|
|
1871
1975
|
);
|
|
1872
1976
|
}
|
|
1873
1977
|
);
|
|
1874
|
-
|
|
1875
|
-
function
|
|
1876
|
-
var c =
|
|
1978
|
+
ca.displayName = "Stack";
|
|
1979
|
+
function da(i) {
|
|
1980
|
+
var c = i, {
|
|
1877
1981
|
items: e,
|
|
1878
1982
|
separator: a = "/",
|
|
1879
1983
|
className: r = ""
|
|
@@ -1885,21 +1989,21 @@ function oa(s) {
|
|
|
1885
1989
|
const o = [
|
|
1886
1990
|
"flex",
|
|
1887
1991
|
"items-center",
|
|
1888
|
-
|
|
1889
|
-
|
|
1992
|
+
s("sm", "space-x"),
|
|
1993
|
+
w("bodySmall")
|
|
1890
1994
|
], d = n(...o, r);
|
|
1891
|
-
return /* @__PURE__ */ l("nav", y(
|
|
1995
|
+
return /* @__PURE__ */ l("nav", y(f({ "aria-label": "Breadcrumb", className: d }, t), { children: /* @__PURE__ */ l(
|
|
1892
1996
|
"ol",
|
|
1893
1997
|
{
|
|
1894
|
-
className: n("flex", "items-center",
|
|
1895
|
-
children: e.map((p,
|
|
1896
|
-
const m =
|
|
1998
|
+
className: n("flex", "items-center", s("sm", "space-x")),
|
|
1999
|
+
children: e.map((p, b) => {
|
|
2000
|
+
const m = b === e.length - 1;
|
|
1897
2001
|
return /* @__PURE__ */ v("li", { className: "flex items-center", children: [
|
|
1898
|
-
|
|
2002
|
+
b > 0 && /* @__PURE__ */ l(
|
|
1899
2003
|
"span",
|
|
1900
2004
|
{
|
|
1901
2005
|
className: n(
|
|
1902
|
-
|
|
2006
|
+
s("sm", "mx"),
|
|
1903
2007
|
"text-fg-tertiary"
|
|
1904
2008
|
),
|
|
1905
2009
|
"aria-hidden": "true",
|
|
@@ -1911,7 +2015,7 @@ function oa(s) {
|
|
|
1911
2015
|
{
|
|
1912
2016
|
className: n(
|
|
1913
2017
|
"text-fg-primary",
|
|
1914
|
-
|
|
2018
|
+
j("label")
|
|
1915
2019
|
),
|
|
1916
2020
|
"aria-current": "page",
|
|
1917
2021
|
children: p.label
|
|
@@ -1923,12 +2027,12 @@ function oa(s) {
|
|
|
1923
2027
|
className: n(
|
|
1924
2028
|
"inline-flex",
|
|
1925
2029
|
"items-center",
|
|
1926
|
-
|
|
1927
|
-
|
|
2030
|
+
s("xs", "px"),
|
|
2031
|
+
s("xs", "pt"),
|
|
1928
2032
|
"border-b-2",
|
|
1929
2033
|
"border-transparent",
|
|
1930
|
-
|
|
1931
|
-
|
|
2034
|
+
w("bodySmall"),
|
|
2035
|
+
j("label"),
|
|
1932
2036
|
"transition-colors",
|
|
1933
2037
|
"text-fg-secondary",
|
|
1934
2038
|
"hover:border-line-emphasis",
|
|
@@ -1937,20 +2041,20 @@ function oa(s) {
|
|
|
1937
2041
|
children: p.label
|
|
1938
2042
|
}
|
|
1939
2043
|
) : /* @__PURE__ */ l("span", { className: "text-fg-secondary", children: p.label })
|
|
1940
|
-
] },
|
|
2044
|
+
] }, b);
|
|
1941
2045
|
})
|
|
1942
2046
|
}
|
|
1943
2047
|
) }));
|
|
1944
2048
|
}
|
|
1945
|
-
function
|
|
1946
|
-
var
|
|
2049
|
+
function ua(t) {
|
|
2050
|
+
var i = t, { children: e, className: a } = i, r = h(i, ["children", "className"]);
|
|
1947
2051
|
return /* @__PURE__ */ l(
|
|
1948
2052
|
"div",
|
|
1949
|
-
y(
|
|
2053
|
+
y(f({
|
|
1950
2054
|
className: n(
|
|
1951
2055
|
"grid items-start",
|
|
1952
|
-
|
|
1953
|
-
|
|
2056
|
+
s("1.5", "gap"),
|
|
2057
|
+
s("base", "mb"),
|
|
1954
2058
|
"[&:has([data-card-actions])]:grid-cols-[1fr_auto]",
|
|
1955
2059
|
"[&:has([data-card-actions])>[data-card-actions]]:row-span-full",
|
|
1956
2060
|
a
|
|
@@ -1960,13 +2064,13 @@ function ca(t) {
|
|
|
1960
2064
|
})
|
|
1961
2065
|
);
|
|
1962
2066
|
}
|
|
1963
|
-
function
|
|
2067
|
+
function fa(o) {
|
|
1964
2068
|
var d = o, {
|
|
1965
2069
|
children: e,
|
|
1966
2070
|
icon: a,
|
|
1967
2071
|
badge: r,
|
|
1968
2072
|
as: t = "h2",
|
|
1969
|
-
className:
|
|
2073
|
+
className: i
|
|
1970
2074
|
} = d, c = h(d, [
|
|
1971
2075
|
"children",
|
|
1972
2076
|
"icon",
|
|
@@ -1976,12 +2080,12 @@ function da(o) {
|
|
|
1976
2080
|
]);
|
|
1977
2081
|
return /* @__PURE__ */ v(
|
|
1978
2082
|
t,
|
|
1979
|
-
y(
|
|
2083
|
+
y(f({
|
|
1980
2084
|
className: n(
|
|
1981
2085
|
"text-base font-semibold text-fg-primary",
|
|
1982
2086
|
"flex items-center",
|
|
1983
|
-
|
|
1984
|
-
|
|
2087
|
+
s("sm", "gap"),
|
|
2088
|
+
i
|
|
1985
2089
|
)
|
|
1986
2090
|
}, c), {
|
|
1987
2091
|
children: [
|
|
@@ -1992,31 +2096,31 @@ function da(o) {
|
|
|
1992
2096
|
})
|
|
1993
2097
|
);
|
|
1994
2098
|
}
|
|
1995
|
-
function
|
|
1996
|
-
var
|
|
2099
|
+
function pa(t) {
|
|
2100
|
+
var i = t, {
|
|
1997
2101
|
children: e,
|
|
1998
2102
|
className: a
|
|
1999
|
-
} =
|
|
2103
|
+
} = i, r = h(i, [
|
|
2000
2104
|
"children",
|
|
2001
2105
|
"className"
|
|
2002
2106
|
]);
|
|
2003
|
-
return /* @__PURE__ */ l("p", y(
|
|
2107
|
+
return /* @__PURE__ */ l("p", y(f({ className: n("text-sm text-fg-secondary", a) }, r), { children: e }));
|
|
2004
2108
|
}
|
|
2005
|
-
function
|
|
2006
|
-
var
|
|
2109
|
+
function ma(t) {
|
|
2110
|
+
var i = t, {
|
|
2007
2111
|
children: e,
|
|
2008
2112
|
className: a
|
|
2009
|
-
} =
|
|
2113
|
+
} = i, r = h(i, [
|
|
2010
2114
|
"children",
|
|
2011
2115
|
"className"
|
|
2012
2116
|
]);
|
|
2013
2117
|
return /* @__PURE__ */ l(
|
|
2014
2118
|
"div",
|
|
2015
|
-
y(
|
|
2119
|
+
y(f({
|
|
2016
2120
|
"data-card-actions": "",
|
|
2017
2121
|
className: n(
|
|
2018
2122
|
"flex items-center self-start",
|
|
2019
|
-
|
|
2123
|
+
s("sm", "gap"),
|
|
2020
2124
|
a
|
|
2021
2125
|
)
|
|
2022
2126
|
}, r), {
|
|
@@ -2024,17 +2128,17 @@ function fa(t) {
|
|
|
2024
2128
|
})
|
|
2025
2129
|
);
|
|
2026
2130
|
}
|
|
2027
|
-
function
|
|
2028
|
-
var
|
|
2029
|
-
return /* @__PURE__ */ l("div", y(
|
|
2131
|
+
function ga(t) {
|
|
2132
|
+
var i = t, { children: e, className: a } = i, r = h(i, ["children", "className"]);
|
|
2133
|
+
return /* @__PURE__ */ l("div", y(f({ className: n(a) }, r), { children: e }));
|
|
2030
2134
|
}
|
|
2031
|
-
function
|
|
2032
|
-
var m =
|
|
2135
|
+
function ba(b) {
|
|
2136
|
+
var m = b, {
|
|
2033
2137
|
variant: e = "default",
|
|
2034
2138
|
padding: a = "medium",
|
|
2035
2139
|
className: r = "",
|
|
2036
2140
|
onClick: t,
|
|
2037
|
-
"aria-label":
|
|
2141
|
+
"aria-label": i,
|
|
2038
2142
|
"aria-labelledby": c,
|
|
2039
2143
|
asSection: o = !1,
|
|
2040
2144
|
children: d
|
|
@@ -2048,10 +2152,10 @@ function ma(x) {
|
|
|
2048
2152
|
"asSection",
|
|
2049
2153
|
"children"
|
|
2050
2154
|
]);
|
|
2051
|
-
typeof process != "undefined" && process.env.NODE_ENV !== "production" && o && !
|
|
2155
|
+
typeof process != "undefined" && process.env.NODE_ENV !== "production" && o && !i && !c && console.warn(
|
|
2052
2156
|
"[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
2157
|
);
|
|
2054
|
-
const
|
|
2158
|
+
const x = L(
|
|
2055
2159
|
n(
|
|
2056
2160
|
"bg-surface-base",
|
|
2057
2161
|
$("lg"),
|
|
@@ -2072,9 +2176,9 @@ function ma(x) {
|
|
|
2072
2176
|
},
|
|
2073
2177
|
padding: {
|
|
2074
2178
|
none: "",
|
|
2075
|
-
small:
|
|
2076
|
-
medium:
|
|
2077
|
-
large:
|
|
2179
|
+
small: s("xs", "p"),
|
|
2180
|
+
medium: s("base", "p"),
|
|
2181
|
+
large: s("lg", "p")
|
|
2078
2182
|
}
|
|
2079
2183
|
},
|
|
2080
2184
|
defaultVariants: {
|
|
@@ -2082,74 +2186,74 @@ function ma(x) {
|
|
|
2082
2186
|
padding: "medium"
|
|
2083
2187
|
}
|
|
2084
2188
|
}
|
|
2085
|
-
),
|
|
2086
|
-
className:
|
|
2189
|
+
), u = t !== void 0, g = u ? "button" : void 0, N = u ? 0 : void 0, S = n(x({ variant: e, padding: a }), r), k = f({
|
|
2190
|
+
className: S,
|
|
2087
2191
|
role: g,
|
|
2088
|
-
tabIndex:
|
|
2192
|
+
tabIndex: N,
|
|
2089
2193
|
onClick: t,
|
|
2090
|
-
onKeyDown:
|
|
2091
|
-
|
|
2194
|
+
onKeyDown: u ? (D) => {
|
|
2195
|
+
u && (D.key === "Enter" || D.key === " ") && (D.preventDefault(), t == null || t());
|
|
2092
2196
|
} : void 0,
|
|
2093
|
-
"aria-label":
|
|
2197
|
+
"aria-label": i,
|
|
2094
2198
|
"aria-labelledby": c
|
|
2095
2199
|
}, p);
|
|
2096
|
-
return o ? /* @__PURE__ */ l("section", y(
|
|
2200
|
+
return o ? /* @__PURE__ */ l("section", y(f({}, k), { children: d })) : /* @__PURE__ */ l("div", y(f({}, k), { children: d }));
|
|
2097
2201
|
}
|
|
2098
|
-
const pe =
|
|
2202
|
+
const pe = M(ba);
|
|
2099
2203
|
pe.displayName = "Card";
|
|
2100
2204
|
const W = pe;
|
|
2101
|
-
W.Header =
|
|
2102
|
-
W.Title =
|
|
2103
|
-
W.Subtitle =
|
|
2104
|
-
W.Actions =
|
|
2105
|
-
W.Body =
|
|
2106
|
-
function
|
|
2107
|
-
var
|
|
2205
|
+
W.Header = ua;
|
|
2206
|
+
W.Title = fa;
|
|
2207
|
+
W.Subtitle = pa;
|
|
2208
|
+
W.Actions = ma;
|
|
2209
|
+
W.Body = ga;
|
|
2210
|
+
function Oa(t) {
|
|
2211
|
+
var i = t, {
|
|
2108
2212
|
children: e,
|
|
2109
2213
|
className: a = ""
|
|
2110
|
-
} =
|
|
2214
|
+
} = i, r = h(i, [
|
|
2111
2215
|
"children",
|
|
2112
2216
|
"className"
|
|
2113
2217
|
]);
|
|
2114
2218
|
return /* @__PURE__ */ l(
|
|
2115
2219
|
"div",
|
|
2116
|
-
y(
|
|
2117
|
-
className: `flex flex-col ${
|
|
2220
|
+
y(f({
|
|
2221
|
+
className: `flex flex-col ${s("1.5", "space-y")} ${s("lg", "p")} ${s("base", "pb")} ${a}`
|
|
2118
2222
|
}, r), {
|
|
2119
2223
|
children: e
|
|
2120
2224
|
})
|
|
2121
2225
|
);
|
|
2122
2226
|
}
|
|
2123
|
-
function
|
|
2124
|
-
var
|
|
2227
|
+
function Ma(t) {
|
|
2228
|
+
var i = t, {
|
|
2125
2229
|
children: e,
|
|
2126
2230
|
className: a = ""
|
|
2127
|
-
} =
|
|
2231
|
+
} = i, r = h(i, [
|
|
2128
2232
|
"children",
|
|
2129
2233
|
"className"
|
|
2130
2234
|
]);
|
|
2131
2235
|
return /* @__PURE__ */ l(
|
|
2132
2236
|
"div",
|
|
2133
|
-
y(
|
|
2134
|
-
className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${
|
|
2237
|
+
y(f({
|
|
2238
|
+
className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${s("sm", "space-x")} ${s("lg", "p")} ${s("base", "pt")} ${a}`
|
|
2135
2239
|
}, r), {
|
|
2136
2240
|
children: e
|
|
2137
2241
|
})
|
|
2138
2242
|
);
|
|
2139
2243
|
}
|
|
2140
|
-
function
|
|
2141
|
-
var
|
|
2244
|
+
function Ha(t) {
|
|
2245
|
+
var i = t, {
|
|
2142
2246
|
children: e,
|
|
2143
2247
|
className: a = ""
|
|
2144
|
-
} =
|
|
2248
|
+
} = i, r = h(i, [
|
|
2145
2249
|
"children",
|
|
2146
2250
|
"className"
|
|
2147
2251
|
]);
|
|
2148
2252
|
return /* @__PURE__ */ l(
|
|
2149
2253
|
"div",
|
|
2150
|
-
y(
|
|
2254
|
+
y(f({
|
|
2151
2255
|
className: `
|
|
2152
|
-
${
|
|
2256
|
+
${s("lg", "p")}
|
|
2153
2257
|
border-b
|
|
2154
2258
|
border-line-default
|
|
2155
2259
|
${a}
|
|
@@ -2159,24 +2263,24 @@ function Ma(t) {
|
|
|
2159
2263
|
})
|
|
2160
2264
|
);
|
|
2161
2265
|
}
|
|
2162
|
-
function
|
|
2163
|
-
var
|
|
2266
|
+
function Pa(t) {
|
|
2267
|
+
var i = t, {
|
|
2164
2268
|
children: e,
|
|
2165
2269
|
className: a = ""
|
|
2166
|
-
} =
|
|
2270
|
+
} = i, r = h(i, [
|
|
2167
2271
|
"children",
|
|
2168
2272
|
"className"
|
|
2169
2273
|
]);
|
|
2170
2274
|
return /* @__PURE__ */ l(
|
|
2171
2275
|
"div",
|
|
2172
|
-
y(
|
|
2276
|
+
y(f({
|
|
2173
2277
|
className: `
|
|
2174
|
-
${
|
|
2278
|
+
${s("lg", "p")}
|
|
2175
2279
|
border-t
|
|
2176
2280
|
border-line-default
|
|
2177
2281
|
flex
|
|
2178
2282
|
justify-end
|
|
2179
|
-
${
|
|
2283
|
+
${s("sm", "gap")}
|
|
2180
2284
|
${a}
|
|
2181
2285
|
`
|
|
2182
2286
|
}, r), {
|
|
@@ -2184,31 +2288,31 @@ function Ba(t) {
|
|
|
2184
2288
|
})
|
|
2185
2289
|
);
|
|
2186
2290
|
}
|
|
2187
|
-
function
|
|
2291
|
+
function Ia(c) {
|
|
2188
2292
|
var o = c, {
|
|
2189
2293
|
label: e,
|
|
2190
2294
|
children: a,
|
|
2191
2295
|
wrap: r = !0,
|
|
2192
2296
|
className: t
|
|
2193
|
-
} = o,
|
|
2297
|
+
} = o, i = h(o, [
|
|
2194
2298
|
"label",
|
|
2195
2299
|
"children",
|
|
2196
2300
|
"wrap",
|
|
2197
2301
|
"className"
|
|
2198
2302
|
]);
|
|
2199
|
-
const p = !(
|
|
2303
|
+
const p = !(i["aria-label"] != null || i["aria-labelledby"] != null) && typeof e == "string" && e !== "" ? e : void 0;
|
|
2200
2304
|
return /* @__PURE__ */ v(
|
|
2201
2305
|
"div",
|
|
2202
|
-
y(
|
|
2306
|
+
y(f({
|
|
2203
2307
|
role: "group",
|
|
2204
2308
|
"aria-label": p,
|
|
2205
2309
|
className: n(
|
|
2206
2310
|
"flex items-center",
|
|
2207
2311
|
r ? "flex-wrap" : "flex-nowrap",
|
|
2208
|
-
|
|
2312
|
+
s("sm", "gap"),
|
|
2209
2313
|
t
|
|
2210
2314
|
)
|
|
2211
|
-
},
|
|
2315
|
+
}, i), {
|
|
2212
2316
|
children: [
|
|
2213
2317
|
e ? (
|
|
2214
2318
|
// shrink-0 keeps the label a stable leading unit: in the wrapping
|
|
@@ -2221,20 +2325,20 @@ function Ha(c) {
|
|
|
2221
2325
|
})
|
|
2222
2326
|
);
|
|
2223
2327
|
}
|
|
2224
|
-
function
|
|
2328
|
+
function Wa({ children: e, className: a }) {
|
|
2225
2329
|
return /* @__PURE__ */ l(
|
|
2226
2330
|
"div",
|
|
2227
2331
|
{
|
|
2228
2332
|
className: n(
|
|
2229
2333
|
"flex-shrink-0 flex items-center",
|
|
2230
|
-
|
|
2334
|
+
s("sm", "gap"),
|
|
2231
2335
|
a
|
|
2232
2336
|
),
|
|
2233
2337
|
children: e
|
|
2234
2338
|
}
|
|
2235
2339
|
);
|
|
2236
2340
|
}
|
|
2237
|
-
function
|
|
2341
|
+
function Ua({
|
|
2238
2342
|
children: e,
|
|
2239
2343
|
className: a
|
|
2240
2344
|
}) {
|
|
@@ -2243,7 +2347,7 @@ function Ia({
|
|
|
2243
2347
|
{
|
|
2244
2348
|
className: n(
|
|
2245
2349
|
"flex-1 flex items-center justify-center",
|
|
2246
|
-
|
|
2350
|
+
s("base", "gap"),
|
|
2247
2351
|
"hidden md:flex",
|
|
2248
2352
|
// Hidden on mobile, visible on desktop
|
|
2249
2353
|
a
|
|
@@ -2253,14 +2357,14 @@ function Ia({
|
|
|
2253
2357
|
}
|
|
2254
2358
|
);
|
|
2255
2359
|
}
|
|
2256
|
-
const
|
|
2360
|
+
const xa = L(
|
|
2257
2361
|
n(
|
|
2258
2362
|
"w-full flex flex-col",
|
|
2259
|
-
|
|
2363
|
+
s("2xl", "py"),
|
|
2260
2364
|
// 40px vertical breathing room
|
|
2261
|
-
|
|
2365
|
+
s("lg", "px"),
|
|
2262
2366
|
// 24px horizontal
|
|
2263
|
-
|
|
2367
|
+
s("xl", "gap-y")
|
|
2264
2368
|
// 32px between major blocks
|
|
2265
2369
|
),
|
|
2266
2370
|
{
|
|
@@ -2280,27 +2384,27 @@ const ga = L(
|
|
|
2280
2384
|
align: "start"
|
|
2281
2385
|
}
|
|
2282
2386
|
}
|
|
2283
|
-
),
|
|
2387
|
+
), ha = {
|
|
2284
2388
|
start: "items-start",
|
|
2285
2389
|
center: "items-center"
|
|
2286
|
-
},
|
|
2390
|
+
}, ya = {
|
|
2287
2391
|
start: "justify-start",
|
|
2288
2392
|
center: "justify-center"
|
|
2289
|
-
},
|
|
2290
|
-
function(
|
|
2291
|
-
var
|
|
2393
|
+
}, va = z(
|
|
2394
|
+
function(N, g) {
|
|
2395
|
+
var S = N, {
|
|
2292
2396
|
kicker: a,
|
|
2293
2397
|
title: r,
|
|
2294
2398
|
description: t,
|
|
2295
|
-
actions:
|
|
2399
|
+
actions: i,
|
|
2296
2400
|
kpis: c,
|
|
2297
2401
|
meta: o,
|
|
2298
2402
|
variant: d = "plain",
|
|
2299
2403
|
align: p = "start",
|
|
2300
|
-
className:
|
|
2404
|
+
className: b,
|
|
2301
2405
|
"aria-label": m,
|
|
2302
|
-
"aria-labelledby":
|
|
2303
|
-
} =
|
|
2406
|
+
"aria-labelledby": x
|
|
2407
|
+
} = S, u = h(S, [
|
|
2304
2408
|
"kicker",
|
|
2305
2409
|
"title",
|
|
2306
2410
|
"description",
|
|
@@ -2313,29 +2417,29 @@ const ga = L(
|
|
|
2313
2417
|
"aria-label",
|
|
2314
2418
|
"aria-labelledby"
|
|
2315
2419
|
]);
|
|
2316
|
-
const T = m != null ||
|
|
2420
|
+
const T = m != null || x != null, k = m != null ? m : typeof r == "string" ? r : void 0;
|
|
2317
2421
|
return typeof process != "undefined" && process.env.NODE_ENV !== "production" && !T && typeof r != "string" && console.warn(
|
|
2318
2422
|
"[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
2423
|
), /* @__PURE__ */ v(
|
|
2320
2424
|
"section",
|
|
2321
|
-
y(
|
|
2425
|
+
y(f({
|
|
2322
2426
|
ref: g,
|
|
2323
|
-
className: n(
|
|
2427
|
+
className: n(xa({ variant: d, align: p }), b),
|
|
2324
2428
|
"aria-label": k,
|
|
2325
|
-
"aria-labelledby":
|
|
2326
|
-
},
|
|
2429
|
+
"aria-labelledby": x
|
|
2430
|
+
}, u), {
|
|
2327
2431
|
children: [
|
|
2328
2432
|
/* @__PURE__ */ v(
|
|
2329
2433
|
"div",
|
|
2330
2434
|
{
|
|
2331
2435
|
className: n(
|
|
2332
2436
|
"flex flex-col",
|
|
2333
|
-
|
|
2334
|
-
|
|
2437
|
+
s("md", "gap-y"),
|
|
2438
|
+
ha[p]
|
|
2335
2439
|
),
|
|
2336
2440
|
children: [
|
|
2337
2441
|
a ? /* @__PURE__ */ l(
|
|
2338
|
-
|
|
2442
|
+
H,
|
|
2339
2443
|
{
|
|
2340
2444
|
as: "span",
|
|
2341
2445
|
variant: "caption",
|
|
@@ -2346,7 +2450,7 @@ const ga = L(
|
|
|
2346
2450
|
}
|
|
2347
2451
|
) : null,
|
|
2348
2452
|
/* @__PURE__ */ l(
|
|
2349
|
-
|
|
2453
|
+
H,
|
|
2350
2454
|
{
|
|
2351
2455
|
as: "h1",
|
|
2352
2456
|
variant: "heading",
|
|
@@ -2355,7 +2459,7 @@ const ga = L(
|
|
|
2355
2459
|
}
|
|
2356
2460
|
),
|
|
2357
2461
|
t ? /* @__PURE__ */ l(
|
|
2358
|
-
|
|
2462
|
+
H,
|
|
2359
2463
|
{
|
|
2360
2464
|
as: "p",
|
|
2361
2465
|
variant: "body",
|
|
@@ -2368,20 +2472,20 @@ const ga = L(
|
|
|
2368
2472
|
]
|
|
2369
2473
|
}
|
|
2370
2474
|
),
|
|
2371
|
-
|
|
2475
|
+
i ? /* @__PURE__ */ l(
|
|
2372
2476
|
"div",
|
|
2373
2477
|
{
|
|
2374
2478
|
className: n(
|
|
2375
2479
|
"flex flex-wrap",
|
|
2376
|
-
|
|
2377
|
-
|
|
2480
|
+
s("sm", "gap"),
|
|
2481
|
+
ya[p]
|
|
2378
2482
|
),
|
|
2379
|
-
children:
|
|
2483
|
+
children: i
|
|
2380
2484
|
}
|
|
2381
2485
|
) : null,
|
|
2382
2486
|
c ? /* @__PURE__ */ l("div", { className: "w-full", children: c }) : null,
|
|
2383
2487
|
o ? /* @__PURE__ */ l(
|
|
2384
|
-
|
|
2488
|
+
H,
|
|
2385
2489
|
{
|
|
2386
2490
|
as: "p",
|
|
2387
2491
|
variant: "caption",
|
|
@@ -2396,8 +2500,8 @@ const ga = L(
|
|
|
2396
2500
|
);
|
|
2397
2501
|
}
|
|
2398
2502
|
);
|
|
2399
|
-
|
|
2400
|
-
function
|
|
2503
|
+
va.displayName = "HeroSection";
|
|
2504
|
+
function Ka(r) {
|
|
2401
2505
|
var t = r, {
|
|
2402
2506
|
className: e = ""
|
|
2403
2507
|
} = t, a = h(t, [
|
|
@@ -2405,40 +2509,40 @@ function Wa(r) {
|
|
|
2405
2509
|
]);
|
|
2406
2510
|
return /* @__PURE__ */ l(
|
|
2407
2511
|
"div",
|
|
2408
|
-
|
|
2512
|
+
f({
|
|
2409
2513
|
role: "separator",
|
|
2410
2514
|
className: `
|
|
2411
2515
|
h-px
|
|
2412
2516
|
bg-line-default
|
|
2413
|
-
${
|
|
2517
|
+
${s("sm", "my")}
|
|
2414
2518
|
${e}
|
|
2415
2519
|
`
|
|
2416
2520
|
}, a)
|
|
2417
2521
|
);
|
|
2418
2522
|
}
|
|
2419
|
-
function
|
|
2420
|
-
var
|
|
2523
|
+
function qa(t) {
|
|
2524
|
+
var i = t, {
|
|
2421
2525
|
orientation: e = "horizontal",
|
|
2422
2526
|
className: a = ""
|
|
2423
|
-
} =
|
|
2527
|
+
} = i, r = h(i, [
|
|
2424
2528
|
"orientation",
|
|
2425
2529
|
"className"
|
|
2426
2530
|
]);
|
|
2427
2531
|
return e === "vertical" ? /* @__PURE__ */ l(
|
|
2428
2532
|
"div",
|
|
2429
|
-
|
|
2533
|
+
f({
|
|
2430
2534
|
className: n("w-px", "h-6", "bg-line-default", "mx-auto", a),
|
|
2431
2535
|
role: "separator",
|
|
2432
2536
|
"aria-orientation": "vertical"
|
|
2433
2537
|
}, r)
|
|
2434
2538
|
) : /* @__PURE__ */ l(
|
|
2435
2539
|
"div",
|
|
2436
|
-
|
|
2540
|
+
f({
|
|
2437
2541
|
className: n(
|
|
2438
2542
|
"w-full",
|
|
2439
2543
|
"h-px",
|
|
2440
2544
|
"bg-line-default",
|
|
2441
|
-
|
|
2545
|
+
s("sm", "my"),
|
|
2442
2546
|
// my-2 (8px) para consistência com gap-2 usado em outros lugares
|
|
2443
2547
|
"flex-shrink-0",
|
|
2444
2548
|
// Prevenir que separator encolha
|
|
@@ -2454,14 +2558,14 @@ function Ua(t) {
|
|
|
2454
2558
|
}, r)
|
|
2455
2559
|
);
|
|
2456
2560
|
}
|
|
2457
|
-
const
|
|
2561
|
+
const wa = L(
|
|
2458
2562
|
// Base classes
|
|
2459
|
-
n("w-full", "flex", "flex-col",
|
|
2563
|
+
n("w-full", "flex", "flex-col", s("sm", "gap")),
|
|
2460
2564
|
{
|
|
2461
2565
|
variants: {
|
|
2462
2566
|
variant: {
|
|
2463
|
-
default: n(
|
|
2464
|
-
compact: n(
|
|
2567
|
+
default: n(s("base", "mb")),
|
|
2568
|
+
compact: n(s("sm", "mb"))
|
|
2465
2569
|
}
|
|
2466
2570
|
},
|
|
2467
2571
|
defaultVariants: {
|
|
@@ -2469,13 +2573,13 @@ const ya = L(
|
|
|
2469
2573
|
}
|
|
2470
2574
|
}
|
|
2471
2575
|
);
|
|
2472
|
-
function
|
|
2576
|
+
function Xa(d) {
|
|
2473
2577
|
var p = d, {
|
|
2474
2578
|
title: e,
|
|
2475
2579
|
description: a,
|
|
2476
2580
|
breadcrumb: r,
|
|
2477
2581
|
actions: t,
|
|
2478
|
-
variant:
|
|
2582
|
+
variant: i = "default",
|
|
2479
2583
|
className: c
|
|
2480
2584
|
} = p, o = h(p, [
|
|
2481
2585
|
"title",
|
|
@@ -2485,29 +2589,29 @@ function Ka(d) {
|
|
|
2485
2589
|
"variant",
|
|
2486
2590
|
"className"
|
|
2487
2591
|
]);
|
|
2488
|
-
return /* @__PURE__ */ v("div", y(
|
|
2489
|
-
r && r.length > 0 && /* @__PURE__ */ l(
|
|
2592
|
+
return /* @__PURE__ */ v("div", y(f({ className: n(wa({ variant: i }), c) }, o), { children: [
|
|
2593
|
+
r && r.length > 0 && /* @__PURE__ */ l(da, { items: r }),
|
|
2490
2594
|
/* @__PURE__ */ v(
|
|
2491
2595
|
"div",
|
|
2492
2596
|
{
|
|
2493
|
-
className: `flex items-start justify-between ${
|
|
2597
|
+
className: `flex items-start justify-between ${s("base", "gap")}`,
|
|
2494
2598
|
children: [
|
|
2495
2599
|
/* @__PURE__ */ v("div", { className: "flex-1 min-w-0", children: [
|
|
2496
2600
|
/* @__PURE__ */ l(
|
|
2497
|
-
|
|
2601
|
+
H,
|
|
2498
2602
|
{
|
|
2499
2603
|
variant: "heading",
|
|
2500
2604
|
as: "h1",
|
|
2501
|
-
className: `${
|
|
2605
|
+
className: `${s("sm", "mb")} text-2xl font-bold`,
|
|
2502
2606
|
children: e
|
|
2503
2607
|
}
|
|
2504
2608
|
),
|
|
2505
|
-
a && /* @__PURE__ */ l(
|
|
2609
|
+
a && /* @__PURE__ */ l(H, { variant: "body", className: "text-fg-secondary", children: a })
|
|
2506
2610
|
] }),
|
|
2507
2611
|
t && /* @__PURE__ */ l(
|
|
2508
2612
|
"div",
|
|
2509
2613
|
{
|
|
2510
|
-
className: `flex items-center ${
|
|
2614
|
+
className: `flex items-center ${s("sm", "gap")} flex-shrink-0`,
|
|
2511
2615
|
children: t
|
|
2512
2616
|
}
|
|
2513
2617
|
)
|
|
@@ -2516,25 +2620,25 @@ function Ka(d) {
|
|
|
2516
2620
|
)
|
|
2517
2621
|
] }));
|
|
2518
2622
|
}
|
|
2519
|
-
const
|
|
2623
|
+
const Na = {
|
|
2520
2624
|
start: "items-start text-left",
|
|
2521
2625
|
center: "items-center text-center"
|
|
2522
|
-
},
|
|
2626
|
+
}, Sa = {
|
|
2523
2627
|
neutral: "text-fg-tertiary",
|
|
2524
2628
|
success: "text-fg-success",
|
|
2525
2629
|
warning: "text-fg-warning",
|
|
2526
2630
|
error: "text-fg-error"
|
|
2527
2631
|
};
|
|
2528
|
-
function
|
|
2529
|
-
var
|
|
2632
|
+
function Ga(p) {
|
|
2633
|
+
var b = p, {
|
|
2530
2634
|
value: e,
|
|
2531
2635
|
label: a,
|
|
2532
2636
|
hint: r,
|
|
2533
2637
|
icon: t,
|
|
2534
|
-
align:
|
|
2638
|
+
align: i = "start",
|
|
2535
2639
|
tone: c = "neutral",
|
|
2536
2640
|
className: o
|
|
2537
|
-
} =
|
|
2641
|
+
} = b, d = h(b, [
|
|
2538
2642
|
"value",
|
|
2539
2643
|
"label",
|
|
2540
2644
|
"hint",
|
|
@@ -2546,12 +2650,12 @@ function qa(p) {
|
|
|
2546
2650
|
const m = e == null;
|
|
2547
2651
|
return /* @__PURE__ */ v(
|
|
2548
2652
|
"div",
|
|
2549
|
-
y(
|
|
2653
|
+
y(f({
|
|
2550
2654
|
className: n(
|
|
2551
2655
|
"bg-surface-base flex-1 flex flex-col",
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2656
|
+
s("base", "p"),
|
|
2657
|
+
s("xs", "gap-y"),
|
|
2658
|
+
Na[i],
|
|
2555
2659
|
o
|
|
2556
2660
|
)
|
|
2557
2661
|
}, d), {
|
|
@@ -2566,23 +2670,23 @@ function qa(p) {
|
|
|
2566
2670
|
}
|
|
2567
2671
|
) : /* @__PURE__ */ l("span", { className: "text-fg-primary text-2xl font-semibold leading-tight", children: e }),
|
|
2568
2672
|
/* @__PURE__ */ l("span", { className: "text-fg-secondary text-sm", children: a }),
|
|
2569
|
-
r ? /* @__PURE__ */ l("span", { className: n("text-xs",
|
|
2673
|
+
r ? /* @__PURE__ */ l("span", { className: n("text-xs", Sa[c]), children: r }) : null
|
|
2570
2674
|
]
|
|
2571
2675
|
})
|
|
2572
2676
|
);
|
|
2573
2677
|
}
|
|
2574
|
-
const
|
|
2678
|
+
const $a = {
|
|
2575
2679
|
2: "md:grid-cols-2",
|
|
2576
2680
|
3: "md:grid-cols-3",
|
|
2577
2681
|
4: "md:grid-cols-4"
|
|
2578
2682
|
};
|
|
2579
|
-
function
|
|
2683
|
+
function Ya(c) {
|
|
2580
2684
|
var o = c, {
|
|
2581
2685
|
layout: e = "grid",
|
|
2582
2686
|
cols: a = 4,
|
|
2583
2687
|
className: r,
|
|
2584
2688
|
children: t
|
|
2585
|
-
} = o,
|
|
2689
|
+
} = o, i = h(o, [
|
|
2586
2690
|
"layout",
|
|
2587
2691
|
"cols",
|
|
2588
2692
|
"className",
|
|
@@ -2591,44 +2695,44 @@ function Xa(c) {
|
|
|
2591
2695
|
const d = e === "grid";
|
|
2592
2696
|
return /* @__PURE__ */ l(
|
|
2593
2697
|
"div",
|
|
2594
|
-
y(
|
|
2698
|
+
y(f({
|
|
2595
2699
|
className: n(
|
|
2596
2700
|
"bg-line-default border border-line-default overflow-hidden gap-px",
|
|
2597
2701
|
$("lg"),
|
|
2598
|
-
d ? `grid grid-cols-2 ${
|
|
2702
|
+
d ? `grid grid-cols-2 ${$a[a]}` : "flex",
|
|
2599
2703
|
r
|
|
2600
2704
|
)
|
|
2601
|
-
},
|
|
2705
|
+
}, i), {
|
|
2602
2706
|
children: t
|
|
2603
2707
|
})
|
|
2604
2708
|
);
|
|
2605
2709
|
}
|
|
2606
|
-
function
|
|
2607
|
-
var c =
|
|
2710
|
+
function Za(i) {
|
|
2711
|
+
var c = i, { column: e, row: a, className: r = "" } = c, t = h(c, ["column", "row", "className"]);
|
|
2608
2712
|
const o = e.key in a ? a[e.key] : void 0;
|
|
2609
2713
|
return /* @__PURE__ */ l(
|
|
2610
2714
|
"td",
|
|
2611
|
-
y(
|
|
2612
|
-
className: `${
|
|
2715
|
+
y(f({
|
|
2716
|
+
className: `${s("lg", "px")} ${s("base", "py")} whitespace-nowrap text-sm text-fg-primary ${e.hiddenOnMobile ? "hidden md:table-cell" : ""} ${r}`
|
|
2613
2717
|
}, t), {
|
|
2614
2718
|
children: e.render ? e.render(o, a) : String(o != null ? o : "")
|
|
2615
2719
|
})
|
|
2616
2720
|
);
|
|
2617
2721
|
}
|
|
2618
|
-
const
|
|
2722
|
+
const ka = L(n("flex items-center", "border-b"), {
|
|
2619
2723
|
variants: {
|
|
2620
2724
|
variant: {
|
|
2621
|
-
default: n("border-line-default",
|
|
2622
|
-
sub: n("border-line-muted",
|
|
2725
|
+
default: n("border-line-default", s("base", "gap-x")),
|
|
2726
|
+
sub: n("border-line-muted", s("sm", "gap-x"))
|
|
2623
2727
|
}
|
|
2624
2728
|
},
|
|
2625
2729
|
defaultVariants: {
|
|
2626
2730
|
variant: "default"
|
|
2627
2731
|
}
|
|
2628
|
-
}),
|
|
2732
|
+
}), Ca = L(
|
|
2629
2733
|
n(
|
|
2630
2734
|
"relative -mb-px inline-flex items-center",
|
|
2631
|
-
|
|
2735
|
+
s("xs", "gap-x"),
|
|
2632
2736
|
"border-b-2 border-transparent",
|
|
2633
2737
|
"transition-colors",
|
|
2634
2738
|
"focus:outline-none",
|
|
@@ -2641,14 +2745,14 @@ const Sa = L(n("flex items-center", "border-b"), {
|
|
|
2641
2745
|
variants: {
|
|
2642
2746
|
variant: {
|
|
2643
2747
|
default: n(
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2748
|
+
s("sm", "px"),
|
|
2749
|
+
s("sm", "py"),
|
|
2750
|
+
w("body")
|
|
2647
2751
|
),
|
|
2648
2752
|
sub: n(
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2753
|
+
s("sm", "px"),
|
|
2754
|
+
s("xs", "py"),
|
|
2755
|
+
w("bodySmall")
|
|
2652
2756
|
)
|
|
2653
2757
|
},
|
|
2654
2758
|
active: {
|
|
@@ -2673,18 +2777,18 @@ const Sa = L(n("flex items-center", "border-b"), {
|
|
|
2673
2777
|
active: !1
|
|
2674
2778
|
}
|
|
2675
2779
|
}
|
|
2676
|
-
),
|
|
2780
|
+
), Ea = n(
|
|
2677
2781
|
"inline-flex items-center justify-center",
|
|
2678
2782
|
$("full"),
|
|
2679
|
-
|
|
2783
|
+
s("xs", "px"),
|
|
2680
2784
|
"bg-surface-muted text-fg-secondary text-xs"
|
|
2681
|
-
),
|
|
2682
|
-
function(
|
|
2683
|
-
var m =
|
|
2785
|
+
), Ta = z(
|
|
2786
|
+
function(b, p) {
|
|
2787
|
+
var m = b, {
|
|
2684
2788
|
items: a,
|
|
2685
2789
|
variant: r = "default",
|
|
2686
2790
|
linkComponent: t,
|
|
2687
|
-
className:
|
|
2791
|
+
className: i,
|
|
2688
2792
|
"aria-label": c,
|
|
2689
2793
|
"aria-labelledby": o
|
|
2690
2794
|
} = m, d = h(m, [
|
|
@@ -2698,46 +2802,46 @@ const Sa = L(n("flex items-center", "border-b"), {
|
|
|
2698
2802
|
typeof process != "undefined" && process.env.NODE_ENV !== "production" && !c && !o && console.warn(
|
|
2699
2803
|
'[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
2804
|
);
|
|
2701
|
-
const
|
|
2805
|
+
const x = t != null ? t : "a";
|
|
2702
2806
|
return /* @__PURE__ */ l(
|
|
2703
2807
|
"nav",
|
|
2704
|
-
y(
|
|
2808
|
+
y(f({
|
|
2705
2809
|
ref: p,
|
|
2706
|
-
className: n(
|
|
2810
|
+
className: n(ka({ variant: r }), i),
|
|
2707
2811
|
"aria-label": c,
|
|
2708
2812
|
"aria-labelledby": o
|
|
2709
2813
|
}, d), {
|
|
2710
|
-
children: a.map((
|
|
2711
|
-
|
|
2814
|
+
children: a.map((u, g) => /* @__PURE__ */ v(
|
|
2815
|
+
x,
|
|
2712
2816
|
{
|
|
2713
|
-
href:
|
|
2714
|
-
"aria-current":
|
|
2715
|
-
"data-active":
|
|
2716
|
-
className:
|
|
2817
|
+
href: u.href,
|
|
2818
|
+
"aria-current": u.active ? "page" : void 0,
|
|
2819
|
+
"data-active": u.active ? "true" : void 0,
|
|
2820
|
+
className: Ca({ variant: r, active: !!u.active }),
|
|
2717
2821
|
children: [
|
|
2718
|
-
|
|
2719
|
-
/* @__PURE__ */ l("span", { children:
|
|
2720
|
-
|
|
2822
|
+
u.icon ? /* @__PURE__ */ l("span", { "aria-hidden": "true", className: "inline-flex shrink-0", children: u.icon }) : null,
|
|
2823
|
+
/* @__PURE__ */ l("span", { children: u.label }),
|
|
2824
|
+
u.count !== void 0 ? /* @__PURE__ */ l("span", { className: Ea, children: u.count }) : null
|
|
2721
2825
|
]
|
|
2722
2826
|
},
|
|
2723
|
-
|
|
2827
|
+
u.href || g
|
|
2724
2828
|
))
|
|
2725
2829
|
})
|
|
2726
2830
|
);
|
|
2727
2831
|
}
|
|
2728
2832
|
);
|
|
2729
|
-
|
|
2730
|
-
function
|
|
2833
|
+
Ta.displayName = "TabsAsLinks";
|
|
2834
|
+
function Ja({
|
|
2731
2835
|
items: e,
|
|
2732
2836
|
orientation: a = "vertical",
|
|
2733
2837
|
className: r = ""
|
|
2734
2838
|
}) {
|
|
2735
|
-
return a === "horizontal" ? /* @__PURE__ */ l("div", { className: `flex items-start ${r}`, children: e.map((t,
|
|
2736
|
-
const c = t.status || (
|
|
2839
|
+
return a === "horizontal" ? /* @__PURE__ */ l("div", { className: `flex items-start ${r}`, children: e.map((t, i) => {
|
|
2840
|
+
const c = t.status || (i === 0 ? "active" : i < e.findIndex((d) => d.status === "active") ? "completed" : "default"), o = i === e.length - 1;
|
|
2737
2841
|
return /* @__PURE__ */ l("div", { className: "flex items-start flex-1", children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center flex-1", children: [
|
|
2738
2842
|
/* @__PURE__ */ l(
|
|
2739
2843
|
"div",
|
|
2740
|
-
y(
|
|
2844
|
+
y(f({}, c === "default" ? { "data-marker": "pending" } : {}), {
|
|
2741
2845
|
className: `
|
|
2742
2846
|
flex
|
|
2743
2847
|
items-center
|
|
@@ -2748,7 +2852,7 @@ function Ya({
|
|
|
2748
2852
|
border-2
|
|
2749
2853
|
${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
2854
|
`,
|
|
2751
|
-
children: t.icon || (c === "completed" ? /* @__PURE__ */ l(ne, { className: "h-4 w-4" }) :
|
|
2855
|
+
children: t.icon || (c === "completed" ? /* @__PURE__ */ l(ne, { className: "h-4 w-4" }) : i + 1)
|
|
2752
2856
|
})
|
|
2753
2857
|
),
|
|
2754
2858
|
!o && /* @__PURE__ */ l(
|
|
@@ -2757,7 +2861,7 @@ function Ya({
|
|
|
2757
2861
|
className: `
|
|
2758
2862
|
w-full
|
|
2759
2863
|
h-0.5
|
|
2760
|
-
${
|
|
2864
|
+
${s("sm", "mt")}
|
|
2761
2865
|
${c === "completed" ? "bg-success" : "bg-line-emphasis"}
|
|
2762
2866
|
`
|
|
2763
2867
|
}
|
|
@@ -2765,12 +2869,12 @@ function Ya({
|
|
|
2765
2869
|
/* @__PURE__ */ v(
|
|
2766
2870
|
"div",
|
|
2767
2871
|
{
|
|
2768
|
-
className: `${
|
|
2872
|
+
className: `${s("base", "mt")} text-center ${s("base", "px")}`,
|
|
2769
2873
|
children: [
|
|
2770
2874
|
t.timestamp && /* @__PURE__ */ l(
|
|
2771
2875
|
"p",
|
|
2772
2876
|
{
|
|
2773
|
-
className: `text-xs text-fg-tertiary ${
|
|
2877
|
+
className: `text-xs text-fg-tertiary ${s("xs", "mb")}`,
|
|
2774
2878
|
children: t.timestamp
|
|
2775
2879
|
}
|
|
2776
2880
|
),
|
|
@@ -2778,26 +2882,26 @@ function Ya({
|
|
|
2778
2882
|
t.description && /* @__PURE__ */ l(
|
|
2779
2883
|
"p",
|
|
2780
2884
|
{
|
|
2781
|
-
className: `text-xs text-fg-secondary ${
|
|
2885
|
+
className: `text-xs text-fg-secondary ${s("xs", "mt")}`,
|
|
2782
2886
|
children: t.description
|
|
2783
2887
|
}
|
|
2784
2888
|
),
|
|
2785
|
-
t.content && /* @__PURE__ */ l("div", { className:
|
|
2889
|
+
t.content && /* @__PURE__ */ l("div", { className: s("sm", "mt"), children: t.content })
|
|
2786
2890
|
]
|
|
2787
2891
|
}
|
|
2788
2892
|
)
|
|
2789
2893
|
] }) }, t.id);
|
|
2790
|
-
}) }) : /* @__PURE__ */ l("div", { className: `${
|
|
2791
|
-
const c = t.status || (
|
|
2894
|
+
}) }) : /* @__PURE__ */ l("div", { className: `${s("none", "space-y")} ${r}`, children: e.map((t, i) => {
|
|
2895
|
+
const c = t.status || (i === 0 ? "active" : i < e.findIndex((d) => d.status === "active") ? "completed" : "default"), o = i === e.length - 1;
|
|
2792
2896
|
return /* @__PURE__ */ v(
|
|
2793
2897
|
"div",
|
|
2794
2898
|
{
|
|
2795
|
-
className: `flex items-start ${
|
|
2899
|
+
className: `flex items-start ${s("base", "gap")}`,
|
|
2796
2900
|
children: [
|
|
2797
2901
|
/* @__PURE__ */ v("div", { className: "flex flex-col items-center", children: [
|
|
2798
2902
|
/* @__PURE__ */ l(
|
|
2799
2903
|
"div",
|
|
2800
|
-
y(
|
|
2904
|
+
y(f({}, c === "default" ? { "data-marker": "pending" } : {}), {
|
|
2801
2905
|
className: `
|
|
2802
2906
|
flex
|
|
2803
2907
|
items-center
|
|
@@ -2808,7 +2912,7 @@ function Ya({
|
|
|
2808
2912
|
border-2
|
|
2809
2913
|
${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
2914
|
`,
|
|
2811
|
-
children: t.icon || (c === "completed" ? /* @__PURE__ */ l(ne, { className: "h-4 w-4" }) :
|
|
2915
|
+
children: t.icon || (c === "completed" ? /* @__PURE__ */ l(ne, { className: "h-4 w-4" }) : i + 1)
|
|
2812
2916
|
})
|
|
2813
2917
|
),
|
|
2814
2918
|
!o && /* @__PURE__ */ l(
|
|
@@ -2818,17 +2922,17 @@ function Ya({
|
|
|
2818
2922
|
w-0.5
|
|
2819
2923
|
flex-1
|
|
2820
2924
|
min-h-16
|
|
2821
|
-
${
|
|
2925
|
+
${s("sm", "mt")}
|
|
2822
2926
|
${c === "completed" ? "bg-success" : "bg-line-emphasis"}
|
|
2823
2927
|
`
|
|
2824
2928
|
}
|
|
2825
2929
|
)
|
|
2826
2930
|
] }),
|
|
2827
|
-
/* @__PURE__ */ v("div", { className: `flex-1 ${
|
|
2931
|
+
/* @__PURE__ */ v("div", { className: `flex-1 ${s("xl", "pb")}`, children: [
|
|
2828
2932
|
t.timestamp && /* @__PURE__ */ l(
|
|
2829
2933
|
"p",
|
|
2830
2934
|
{
|
|
2831
|
-
className: `text-xs text-fg-tertiary ${
|
|
2935
|
+
className: `text-xs text-fg-tertiary ${s("xs", "mb")}`,
|
|
2832
2936
|
children: t.timestamp
|
|
2833
2937
|
}
|
|
2834
2938
|
),
|
|
@@ -2846,11 +2950,11 @@ function Ya({
|
|
|
2846
2950
|
t.description && /* @__PURE__ */ l(
|
|
2847
2951
|
"p",
|
|
2848
2952
|
{
|
|
2849
|
-
className: `text-sm text-fg-secondary ${
|
|
2953
|
+
className: `text-sm text-fg-secondary ${s("xs", "mt")}`,
|
|
2850
2954
|
children: t.description
|
|
2851
2955
|
}
|
|
2852
2956
|
),
|
|
2853
|
-
t.content && /* @__PURE__ */ l("div", { className:
|
|
2957
|
+
t.content && /* @__PURE__ */ l("div", { className: s("md", "mt"), children: t.content })
|
|
2854
2958
|
] })
|
|
2855
2959
|
]
|
|
2856
2960
|
},
|
|
@@ -2860,41 +2964,42 @@ function Ya({
|
|
|
2860
2964
|
}
|
|
2861
2965
|
export {
|
|
2862
2966
|
Ee as Badge,
|
|
2863
|
-
|
|
2967
|
+
da as Breadcrumb,
|
|
2864
2968
|
Ie as Button,
|
|
2865
2969
|
W as Card,
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2970
|
+
ma as CardActions,
|
|
2971
|
+
ga as CardBody,
|
|
2972
|
+
ua as CardHeader,
|
|
2973
|
+
pa as CardSubtitle,
|
|
2974
|
+
fa as CardTitle,
|
|
2871
2975
|
We as Chip,
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2976
|
+
oa as Container,
|
|
2977
|
+
Ke as DataBadge,
|
|
2978
|
+
Ma as DialogFooter,
|
|
2979
|
+
Oa as DialogHeader,
|
|
2980
|
+
Pa as DrawerFooter,
|
|
2981
|
+
Ha as DrawerHeader,
|
|
2982
|
+
ja as ErrorMessage,
|
|
2983
|
+
Ia as FilterChips,
|
|
2984
|
+
Wa as HeaderActions,
|
|
2985
|
+
Ua as HeaderNavigation,
|
|
2986
|
+
va as HeroSection,
|
|
2987
|
+
Ra as Info,
|
|
2988
|
+
Ge as InputBase,
|
|
2989
|
+
Je as Label,
|
|
2990
|
+
Ka as MenuSeparator,
|
|
2991
|
+
qa as NavbarSeparator,
|
|
2992
|
+
Xa as PageHeader,
|
|
2993
|
+
aa as Progress,
|
|
2994
|
+
na as Separator,
|
|
2995
|
+
Ba as Skeleton,
|
|
2891
2996
|
fe as Spinner,
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2997
|
+
ca as Stack,
|
|
2998
|
+
Ga as Stat,
|
|
2999
|
+
Ya as StatGroup,
|
|
3000
|
+
Za as TableCell,
|
|
3001
|
+
Ta as TabsAsLinks,
|
|
3002
|
+
H as Text,
|
|
3003
|
+
Ja as Timeline
|
|
2899
3004
|
};
|
|
2900
3005
|
//# sourceMappingURL=index.js.map
|