@fabio.caffarello/react-design-system 3.11.0 → 3.13.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 +399 -393
- package/dist/granular/index.js.map +1 -1
- package/dist/granular/ui/components/ButtonGroup/ButtonGroup.js +68 -0
- package/dist/granular/ui/components/ButtonGroup/ButtonGroup.js.map +1 -0
- package/dist/granular/ui/components/HeroSection/HeroSection.js +176 -0
- package/dist/granular/ui/components/HeroSection/HeroSection.js.map +1 -0
- package/dist/granular/ui/primitives/Dot/Dot.js +99 -0
- package/dist/granular/ui/primitives/Dot/Dot.js.map +1 -0
- package/dist/index.cjs +48 -48
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1906 -1652
- package/dist/index.js.map +1 -1
- package/dist/react-design-system.css +1 -1
- package/dist/server/index.cjs +10 -10
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +505 -360
- package/dist/server/index.js.map +1 -1
- package/dist/ui/components/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/dist/ui/components/HeroSection/HeroSection.d.ts +101 -0
- package/dist/ui/components/HeroSection/index.d.ts +2 -0
- package/dist/ui/components/index.d.ts +4 -0
- package/dist/ui/primitives/index.d.ts +2 -0
- package/dist/ui/server.d.ts +2 -0
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
var te = Object.defineProperty, re = Object.defineProperties;
|
|
2
2
|
var se = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var P = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var K = Object.prototype.hasOwnProperty, X = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var W = (e, t, r) => t in e ? te(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, f = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
K.call(t, r) && W(e, r, t[r]);
|
|
8
8
|
if (P)
|
|
9
9
|
for (var r of P(t))
|
|
10
|
-
|
|
10
|
+
X.call(t, r) && W(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, y = (e, t) => re(e, se(t));
|
|
13
13
|
var m = (e, t) => {
|
|
14
14
|
var r = {};
|
|
15
15
|
for (var a in e)
|
|
16
|
-
|
|
16
|
+
K.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
|
|
17
17
|
if (e != null && P)
|
|
18
18
|
for (var a of P(e))
|
|
19
|
-
t.indexOf(a) < 0 &&
|
|
19
|
+
t.indexOf(a) < 0 && X.call(e, a) && (r[a] = e[a]);
|
|
20
20
|
return r;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
22
|
+
var q = (e, t, r) => W(e, typeof t != "symbol" ? t + "" : t, r);
|
|
23
23
|
import { jsx as l, jsxs as v } from "react/jsx-runtime";
|
|
24
24
|
import * as E from "react";
|
|
25
|
-
import ee, { memo as
|
|
25
|
+
import ee, { memo as H, forwardRef as j } from "react";
|
|
26
26
|
import { clsx as ne } from "clsx";
|
|
27
27
|
import { twMerge as ie } from "tailwind-merge";
|
|
28
28
|
import { cva as le } from "class-variance-authority";
|
|
29
|
-
import { X as oe, AlertCircle as
|
|
29
|
+
import { X as oe, AlertCircle as ce, Loader2 as de, CheckCircle2 as G } from "lucide-react";
|
|
30
30
|
class F {
|
|
31
31
|
/**
|
|
32
32
|
* Create a radius token
|
|
@@ -93,10 +93,10 @@ const fe = {
|
|
|
93
93
|
"3xl": F.create("3xl"),
|
|
94
94
|
full: F.create("full")
|
|
95
95
|
};
|
|
96
|
-
function
|
|
96
|
+
function k(e) {
|
|
97
97
|
return fe[e].tailwind;
|
|
98
98
|
}
|
|
99
|
-
class
|
|
99
|
+
class S {
|
|
100
100
|
// 4px base
|
|
101
101
|
/**
|
|
102
102
|
* Create a spacing token from scale value
|
|
@@ -163,42 +163,42 @@ class N {
|
|
|
163
163
|
}[t] || String(t);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
|
|
166
|
+
q(S, "BASE_UNIT", 4);
|
|
167
167
|
const ue = {
|
|
168
168
|
// Micro spacing (0-14px)
|
|
169
|
-
none:
|
|
170
|
-
"0.5":
|
|
169
|
+
none: S.create(0),
|
|
170
|
+
"0.5": S.create(0.5),
|
|
171
171
|
// 2px (half-step)
|
|
172
|
-
xs:
|
|
172
|
+
xs: S.create(1),
|
|
173
173
|
// 4px
|
|
174
|
-
"1.5":
|
|
174
|
+
"1.5": S.create(1.5),
|
|
175
175
|
// 6px (half-step)
|
|
176
|
-
sm:
|
|
176
|
+
sm: S.create(2),
|
|
177
177
|
// 8px
|
|
178
|
-
"2.5":
|
|
178
|
+
"2.5": S.create(2.5),
|
|
179
179
|
// 10px (half-step)
|
|
180
|
-
md:
|
|
180
|
+
md: S.create(3),
|
|
181
181
|
// 12px
|
|
182
|
-
"3.5":
|
|
182
|
+
"3.5": S.create(3.5),
|
|
183
183
|
// 14px (half-step)
|
|
184
184
|
// Standard spacing (16-32px)
|
|
185
|
-
base:
|
|
185
|
+
base: S.create(4),
|
|
186
186
|
// 16px
|
|
187
|
-
lg:
|
|
187
|
+
lg: S.create(6),
|
|
188
188
|
// 24px
|
|
189
|
-
xl:
|
|
189
|
+
xl: S.create(8),
|
|
190
190
|
// 32px
|
|
191
191
|
// Large spacing (40-64px)
|
|
192
|
-
"2xl":
|
|
192
|
+
"2xl": S.create(10),
|
|
193
193
|
// 40px
|
|
194
|
-
"3xl":
|
|
194
|
+
"3xl": S.create(12),
|
|
195
195
|
// 48px
|
|
196
|
-
"4xl":
|
|
196
|
+
"4xl": S.create(16),
|
|
197
197
|
// 64px
|
|
198
198
|
// Extra large spacing (80px+)
|
|
199
|
-
"5xl":
|
|
199
|
+
"5xl": S.create(20),
|
|
200
200
|
// 80px
|
|
201
|
-
"6xl":
|
|
201
|
+
"6xl": S.create(24)
|
|
202
202
|
// 96px
|
|
203
203
|
};
|
|
204
204
|
function i(e, t = "p") {
|
|
@@ -317,7 +317,7 @@ function R(e) {
|
|
|
317
317
|
const t = B[e];
|
|
318
318
|
return `${t.fontSize.tailwind} ${t.lineHeight.tailwind} ${t.fontWeight.tailwind}`;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function C(e) {
|
|
321
321
|
return B[e].fontSize.tailwind;
|
|
322
322
|
}
|
|
323
323
|
function M(e) {
|
|
@@ -326,20 +326,20 @@ function M(e) {
|
|
|
326
326
|
function n(...e) {
|
|
327
327
|
return ie(ne(e));
|
|
328
328
|
}
|
|
329
|
-
const
|
|
329
|
+
const V = (e, t) => {
|
|
330
330
|
const r = le(e, t);
|
|
331
331
|
return ((a) => {
|
|
332
332
|
const s = r(a);
|
|
333
333
|
return n(s);
|
|
334
334
|
});
|
|
335
|
-
}, pe =
|
|
335
|
+
}, pe = V(
|
|
336
336
|
// Base classes
|
|
337
337
|
n(
|
|
338
338
|
"inline-flex",
|
|
339
339
|
"items-center",
|
|
340
340
|
"justify-center",
|
|
341
341
|
M("label"),
|
|
342
|
-
|
|
342
|
+
k("md"),
|
|
343
343
|
"border"
|
|
344
344
|
),
|
|
345
345
|
{
|
|
@@ -357,17 +357,17 @@ const A = (e, t) => {
|
|
|
357
357
|
sm: n(
|
|
358
358
|
i("1.5", "px"),
|
|
359
359
|
i("0.5", "py"),
|
|
360
|
-
|
|
360
|
+
C("caption")
|
|
361
361
|
),
|
|
362
362
|
md: n(
|
|
363
363
|
i("sm", "px"),
|
|
364
364
|
i("xs", "py"),
|
|
365
|
-
|
|
365
|
+
C("caption")
|
|
366
366
|
),
|
|
367
367
|
lg: n(
|
|
368
368
|
i("sm", "px"),
|
|
369
369
|
i("xs", "py"),
|
|
370
|
-
|
|
370
|
+
C("bodySmall")
|
|
371
371
|
)
|
|
372
372
|
},
|
|
373
373
|
style: {
|
|
@@ -470,16 +470,16 @@ const A = (e, t) => {
|
|
|
470
470
|
style: "solid"
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
), me =
|
|
474
|
-
|
|
475
|
-
var
|
|
473
|
+
), me = H(
|
|
474
|
+
j(function(b, p) {
|
|
475
|
+
var g = b, {
|
|
476
476
|
variant: t = "neutral",
|
|
477
477
|
size: r = "md",
|
|
478
478
|
style: a = "solid",
|
|
479
479
|
className: s = "",
|
|
480
480
|
children: o,
|
|
481
|
-
"aria-label":
|
|
482
|
-
} =
|
|
481
|
+
"aria-label": c
|
|
482
|
+
} = g, d = m(g, [
|
|
483
483
|
"variant",
|
|
484
484
|
"size",
|
|
485
485
|
"style",
|
|
@@ -487,10 +487,10 @@ const A = (e, t) => {
|
|
|
487
487
|
"children",
|
|
488
488
|
"aria-label"
|
|
489
489
|
]);
|
|
490
|
-
const
|
|
490
|
+
const x = n(pe({ variant: t, size: r, style: a }), s);
|
|
491
491
|
let u;
|
|
492
|
-
if (
|
|
493
|
-
u =
|
|
492
|
+
if (c)
|
|
493
|
+
u = c;
|
|
494
494
|
else if (typeof o == "string")
|
|
495
495
|
u = o;
|
|
496
496
|
else if (typeof o == "object" && o !== null && "props" in o) {
|
|
@@ -499,19 +499,19 @@ const A = (e, t) => {
|
|
|
499
499
|
}
|
|
500
500
|
return /* @__PURE__ */ l(
|
|
501
501
|
"span",
|
|
502
|
-
|
|
502
|
+
y(f({
|
|
503
503
|
ref: p,
|
|
504
504
|
role: "status",
|
|
505
505
|
"aria-label": u,
|
|
506
|
-
className:
|
|
507
|
-
},
|
|
506
|
+
className: x
|
|
507
|
+
}, d), {
|
|
508
508
|
children: o
|
|
509
509
|
})
|
|
510
510
|
);
|
|
511
511
|
})
|
|
512
512
|
);
|
|
513
513
|
me.displayName = "Badge";
|
|
514
|
-
function
|
|
514
|
+
function Y(e, t) {
|
|
515
515
|
if (typeof e == "function")
|
|
516
516
|
return e(t);
|
|
517
517
|
e != null && (e.current = t);
|
|
@@ -520,14 +520,14 @@ function ge(...e) {
|
|
|
520
520
|
return (t) => {
|
|
521
521
|
let r = !1;
|
|
522
522
|
const a = e.map((s) => {
|
|
523
|
-
const o =
|
|
523
|
+
const o = Y(s, t);
|
|
524
524
|
return !r && typeof o == "function" && (r = !0), o;
|
|
525
525
|
});
|
|
526
526
|
if (r)
|
|
527
527
|
return () => {
|
|
528
528
|
for (let s = 0; s < a.length; s++) {
|
|
529
529
|
const o = a[s];
|
|
530
|
-
typeof o == "function" ? o() :
|
|
530
|
+
typeof o == "function" ? o() : Y(e[s], null);
|
|
531
531
|
}
|
|
532
532
|
};
|
|
533
533
|
};
|
|
@@ -539,34 +539,34 @@ function xe(...e) {
|
|
|
539
539
|
function be(e) {
|
|
540
540
|
const t = E.forwardRef((r, a) => {
|
|
541
541
|
var h;
|
|
542
|
-
let u = r, { children: s } = u, o = m(u, ["children"]),
|
|
542
|
+
let u = r, { children: s } = u, o = m(u, ["children"]), c = null, d = !1;
|
|
543
543
|
const p = [];
|
|
544
|
-
|
|
545
|
-
var
|
|
546
|
-
if (
|
|
547
|
-
|
|
548
|
-
const
|
|
549
|
-
let
|
|
550
|
-
|
|
544
|
+
Z(s) && typeof O == "function" && (s = O(s._payload)), E.Children.forEach(s, (w) => {
|
|
545
|
+
var N;
|
|
546
|
+
if (Se(w)) {
|
|
547
|
+
d = !0;
|
|
548
|
+
const A = w;
|
|
549
|
+
let T = "child" in A.props ? A.props.child : A.props.children;
|
|
550
|
+
Z(T) && typeof O == "function" && (T = O(T._payload)), c = ve(A, T), p.push((N = c == null ? void 0 : c.props) == null ? void 0 : N.children);
|
|
551
551
|
} else
|
|
552
552
|
p.push(w);
|
|
553
|
-
}),
|
|
553
|
+
}), c ? c = E.cloneElement(c, 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
|
-
!
|
|
558
|
+
!d && E.Children.count(s) === 1 && E.isValidElement(s) && (c = s)
|
|
559
559
|
);
|
|
560
|
-
const
|
|
561
|
-
if (!
|
|
560
|
+
const b = c ? Ne(c) : void 0, g = xe(a, b);
|
|
561
|
+
if (!c) {
|
|
562
562
|
if (s || s === 0)
|
|
563
563
|
throw new Error(
|
|
564
|
-
|
|
564
|
+
d ? Ee(e) : Ce(e)
|
|
565
565
|
);
|
|
566
566
|
return s;
|
|
567
567
|
}
|
|
568
|
-
const
|
|
569
|
-
return
|
|
568
|
+
const x = we(o, (h = c.props) != null ? h : {});
|
|
569
|
+
return c.type !== E.Fragment && (x.ref = a ? g : b), E.cloneElement(c, x);
|
|
570
570
|
});
|
|
571
571
|
return t.displayName = `${e}.Slot`, t;
|
|
572
572
|
}
|
|
@@ -581,9 +581,9 @@ function we(e, t) {
|
|
|
581
581
|
const r = f({}, t);
|
|
582
582
|
for (const a in t) {
|
|
583
583
|
const s = e[a], o = t[a];
|
|
584
|
-
/^on[A-Z]/.test(a) ? s && o ? r[a] = (...
|
|
585
|
-
const p = o(...
|
|
586
|
-
return s(...
|
|
584
|
+
/^on[A-Z]/.test(a) ? s && o ? r[a] = (...d) => {
|
|
585
|
+
const p = o(...d);
|
|
586
|
+
return s(...d), p;
|
|
587
587
|
} : s && (r[a] = s) : a === "style" ? r[a] = f(f({}, s), o) : a === "className" && (r[a] = [s, o].filter(Boolean).join(" "));
|
|
588
588
|
}
|
|
589
589
|
return f(f({}, e), r);
|
|
@@ -593,24 +593,24 @@ function Ne(e) {
|
|
|
593
593
|
let t = (a = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : a.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
594
594
|
return r ? e.ref : (t = (s = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : s.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function Se(e) {
|
|
597
597
|
return E.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ye;
|
|
598
598
|
}
|
|
599
|
-
var
|
|
600
|
-
function
|
|
601
|
-
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof ===
|
|
599
|
+
var $e = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
600
|
+
function Z(e) {
|
|
601
|
+
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === $e && "_payload" in e && ke(e._payload);
|
|
602
602
|
}
|
|
603
|
-
function
|
|
603
|
+
function ke(e) {
|
|
604
604
|
return typeof e == "object" && e !== null && "then" in e;
|
|
605
605
|
}
|
|
606
|
-
var
|
|
607
|
-
const
|
|
606
|
+
var Ce = (e) => `${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`, Ee = (e) => `${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, O = E[" use ".trim().toString()];
|
|
607
|
+
const J = V(
|
|
608
608
|
// Base classes
|
|
609
609
|
n(
|
|
610
610
|
"inline-flex",
|
|
611
611
|
"items-center",
|
|
612
612
|
"font-medium",
|
|
613
|
-
|
|
613
|
+
k("full"),
|
|
614
614
|
i("xs", "gap")
|
|
615
615
|
),
|
|
616
616
|
{
|
|
@@ -639,17 +639,17 @@ const Z = A(
|
|
|
639
639
|
sm: n(
|
|
640
640
|
i("xs", "px"),
|
|
641
641
|
i("xs", "py"),
|
|
642
|
-
|
|
642
|
+
C("caption")
|
|
643
643
|
),
|
|
644
644
|
md: n(
|
|
645
645
|
i("sm", "px"),
|
|
646
646
|
i("xs", "py"),
|
|
647
|
-
|
|
647
|
+
C("bodySmall")
|
|
648
648
|
),
|
|
649
649
|
lg: n(
|
|
650
650
|
i("md", "px"),
|
|
651
651
|
i("sm", "py"),
|
|
652
|
-
|
|
652
|
+
C("body")
|
|
653
653
|
)
|
|
654
654
|
},
|
|
655
655
|
selected: {
|
|
@@ -693,65 +693,65 @@ const Z = A(
|
|
|
693
693
|
disabled: !1
|
|
694
694
|
}
|
|
695
695
|
}
|
|
696
|
-
), Te =
|
|
696
|
+
), Te = j(function(t, r) {
|
|
697
697
|
const {
|
|
698
698
|
children: a,
|
|
699
699
|
variant: s = "default",
|
|
700
700
|
size: o = "md",
|
|
701
|
-
selected:
|
|
702
|
-
disabled:
|
|
701
|
+
selected: c = !1,
|
|
702
|
+
disabled: d = !1,
|
|
703
703
|
className: p = "",
|
|
704
|
-
"aria-label":
|
|
705
|
-
tabIndex:
|
|
706
|
-
asChild:
|
|
704
|
+
"aria-label": b,
|
|
705
|
+
tabIndex: g,
|
|
706
|
+
asChild: x = !1
|
|
707
707
|
} = t, h = (() => {
|
|
708
|
-
if (
|
|
708
|
+
if (b) return b;
|
|
709
709
|
if (typeof a == "string") return a;
|
|
710
710
|
if (typeof a == "object" && a !== null && "props" in a) {
|
|
711
|
-
const
|
|
712
|
-
if (
|
|
713
|
-
return
|
|
711
|
+
const L = a.props;
|
|
712
|
+
if (L != null && L.children && typeof L.children == "string")
|
|
713
|
+
return L.children;
|
|
714
714
|
}
|
|
715
715
|
})();
|
|
716
|
-
if (
|
|
716
|
+
if (x)
|
|
717
717
|
return /* @__PURE__ */ l(
|
|
718
718
|
he,
|
|
719
719
|
{
|
|
720
720
|
ref: r,
|
|
721
721
|
className: n(
|
|
722
|
-
|
|
722
|
+
J({ variant: s, size: o, selected: c, disabled: d }),
|
|
723
723
|
p
|
|
724
724
|
),
|
|
725
|
-
"aria-label":
|
|
726
|
-
"aria-disabled":
|
|
727
|
-
tabIndex:
|
|
725
|
+
"aria-label": b,
|
|
726
|
+
"aria-disabled": d || void 0,
|
|
727
|
+
tabIndex: g,
|
|
728
728
|
children: a
|
|
729
729
|
}
|
|
730
730
|
);
|
|
731
|
-
const { onRemove: w, onClick:
|
|
732
|
-
|
|
731
|
+
const { onRemove: w, onClick: N } = t, A = N !== void 0, T = A && !d, z = (L) => {
|
|
732
|
+
d || (L.key === "Enter" || L.key === " ") && (L.preventDefault(), N == null || N());
|
|
733
733
|
};
|
|
734
734
|
return /* @__PURE__ */ v(
|
|
735
735
|
"div",
|
|
736
736
|
{
|
|
737
737
|
ref: r,
|
|
738
738
|
className: n(
|
|
739
|
-
|
|
739
|
+
J({ variant: s, size: o, selected: c, disabled: d }),
|
|
740
740
|
w && i("xs", "pr"),
|
|
741
741
|
p
|
|
742
742
|
),
|
|
743
|
-
"aria-disabled":
|
|
743
|
+
"aria-disabled": d,
|
|
744
744
|
children: [
|
|
745
|
-
|
|
745
|
+
A ? /* @__PURE__ */ l(
|
|
746
746
|
"button",
|
|
747
747
|
{
|
|
748
748
|
type: "button",
|
|
749
|
-
onClick:
|
|
750
|
-
onKeyDown:
|
|
751
|
-
disabled:
|
|
752
|
-
"aria-pressed":
|
|
753
|
-
"aria-label":
|
|
754
|
-
tabIndex:
|
|
749
|
+
onClick: d ? void 0 : N,
|
|
750
|
+
onKeyDown: z,
|
|
751
|
+
disabled: d,
|
|
752
|
+
"aria-pressed": c ? !0 : void 0,
|
|
753
|
+
"aria-label": b || h,
|
|
754
|
+
tabIndex: g !== void 0 ? g : T ? 0 : void 0,
|
|
755
755
|
className: n(
|
|
756
756
|
"flex-1",
|
|
757
757
|
"bg-transparent",
|
|
@@ -764,22 +764,22 @@ const Z = A(
|
|
|
764
764
|
"focus:ring-2",
|
|
765
765
|
"focus:ring-line-focus",
|
|
766
766
|
"focus:ring-offset-2",
|
|
767
|
-
|
|
767
|
+
k("full")
|
|
768
768
|
),
|
|
769
769
|
children: a
|
|
770
770
|
}
|
|
771
771
|
) : /* @__PURE__ */ l("span", { children: a }),
|
|
772
|
-
w && !
|
|
772
|
+
w && !d && /* @__PURE__ */ l(
|
|
773
773
|
"button",
|
|
774
774
|
{
|
|
775
775
|
type: "button",
|
|
776
|
-
onClick: (
|
|
777
|
-
|
|
776
|
+
onClick: (L) => {
|
|
777
|
+
L.stopPropagation(), w();
|
|
778
778
|
},
|
|
779
779
|
className: n(
|
|
780
780
|
i("xs", "ml"),
|
|
781
781
|
"hover:bg-tint-hover",
|
|
782
|
-
|
|
782
|
+
k("full"),
|
|
783
783
|
i("xs", "p"),
|
|
784
784
|
"transition-colors",
|
|
785
785
|
"focus:outline-none",
|
|
@@ -796,7 +796,7 @@ const Z = A(
|
|
|
796
796
|
);
|
|
797
797
|
});
|
|
798
798
|
Te.displayName = "Chip";
|
|
799
|
-
function
|
|
799
|
+
function ba(s) {
|
|
800
800
|
var o = s, {
|
|
801
801
|
message: e,
|
|
802
802
|
id: t,
|
|
@@ -806,20 +806,20 @@ function pa(s) {
|
|
|
806
806
|
"id",
|
|
807
807
|
"className"
|
|
808
808
|
]);
|
|
809
|
-
const
|
|
809
|
+
const c = [
|
|
810
810
|
i("xs", "mt"),
|
|
811
|
-
|
|
811
|
+
C("bodySmall"),
|
|
812
812
|
"text-fg-error",
|
|
813
813
|
"flex",
|
|
814
814
|
"items-center",
|
|
815
815
|
i("xs", "gap")
|
|
816
|
-
],
|
|
817
|
-
return /* @__PURE__ */ v("div",
|
|
818
|
-
/* @__PURE__ */ l(
|
|
816
|
+
], d = n(...c, r);
|
|
817
|
+
return /* @__PURE__ */ v("div", y(f({ role: "alert", id: t, className: d, "aria-live": "polite" }, a), { children: [
|
|
818
|
+
/* @__PURE__ */ l(ce, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }),
|
|
819
819
|
/* @__PURE__ */ l("span", { children: e })
|
|
820
820
|
] }));
|
|
821
821
|
}
|
|
822
|
-
function
|
|
822
|
+
function ha(a) {
|
|
823
823
|
var s = a, {
|
|
824
824
|
variant: e = "info",
|
|
825
825
|
className: t
|
|
@@ -840,7 +840,7 @@ function ma(a) {
|
|
|
840
840
|
"border",
|
|
841
841
|
i("base", "px"),
|
|
842
842
|
i("sm", "py"),
|
|
843
|
-
|
|
843
|
+
k("lg"),
|
|
844
844
|
o[e],
|
|
845
845
|
t
|
|
846
846
|
)
|
|
@@ -849,7 +849,7 @@ function ma(a) {
|
|
|
849
849
|
}
|
|
850
850
|
const Le = n(
|
|
851
851
|
"block",
|
|
852
|
-
|
|
852
|
+
C("label"),
|
|
853
853
|
M("label"),
|
|
854
854
|
"text-fg-primary"
|
|
855
855
|
), Ae = {
|
|
@@ -865,19 +865,19 @@ const Le = n(
|
|
|
865
865
|
"after:text-fg-tertiary",
|
|
866
866
|
"after:font-normal"
|
|
867
867
|
)
|
|
868
|
-
}, Ve =
|
|
869
|
-
|
|
870
|
-
var
|
|
868
|
+
}, Ve = H(
|
|
869
|
+
j(function(c, o) {
|
|
870
|
+
var d = c, { variant: t = "default", className: r = "", children: a } = d, s = m(d, ["variant", "className", "children"]);
|
|
871
871
|
const p = n(
|
|
872
872
|
Le,
|
|
873
873
|
Ae[t],
|
|
874
874
|
r
|
|
875
875
|
);
|
|
876
|
-
return /* @__PURE__ */ l("label",
|
|
876
|
+
return /* @__PURE__ */ l("label", y(f({ ref: o, className: p }, s), { children: a }));
|
|
877
877
|
})
|
|
878
878
|
);
|
|
879
879
|
Ve.displayName = "Label";
|
|
880
|
-
class
|
|
880
|
+
class D {
|
|
881
881
|
/**
|
|
882
882
|
* Create a shadow token
|
|
883
883
|
*/
|
|
@@ -922,18 +922,18 @@ class j {
|
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
924
|
const Fe = {
|
|
925
|
-
none:
|
|
926
|
-
sm:
|
|
927
|
-
md:
|
|
928
|
-
lg:
|
|
929
|
-
xl:
|
|
930
|
-
"2xl":
|
|
931
|
-
inner:
|
|
925
|
+
none: D.create("none"),
|
|
926
|
+
sm: D.create("sm"),
|
|
927
|
+
md: D.create("md"),
|
|
928
|
+
lg: D.create("lg"),
|
|
929
|
+
xl: D.create("xl"),
|
|
930
|
+
"2xl": D.create("2xl"),
|
|
931
|
+
inner: D.create("inner")
|
|
932
932
|
};
|
|
933
|
-
function
|
|
933
|
+
function U(e) {
|
|
934
934
|
return Fe[e].tailwind;
|
|
935
935
|
}
|
|
936
|
-
const Re =
|
|
936
|
+
const Re = V("w-full", {
|
|
937
937
|
variants: {
|
|
938
938
|
size: {
|
|
939
939
|
sm: "h-1",
|
|
@@ -953,7 +953,7 @@ const Re = A("w-full", {
|
|
|
953
953
|
size: "md",
|
|
954
954
|
variant: "primary"
|
|
955
955
|
}
|
|
956
|
-
}),
|
|
956
|
+
}), Q = V("transition-all", {
|
|
957
957
|
variants: {
|
|
958
958
|
variant: {
|
|
959
959
|
primary: "bg-surface-brand",
|
|
@@ -967,17 +967,17 @@ const Re = A("w-full", {
|
|
|
967
967
|
defaultVariants: {
|
|
968
968
|
variant: "primary"
|
|
969
969
|
}
|
|
970
|
-
}),
|
|
971
|
-
var u =
|
|
970
|
+
}), De = j(function(x, g) {
|
|
971
|
+
var u = x, {
|
|
972
972
|
value: t,
|
|
973
973
|
max: r = 100,
|
|
974
974
|
variant: a = "primary",
|
|
975
975
|
size: s = "md",
|
|
976
976
|
showLabel: o = !1,
|
|
977
|
-
label:
|
|
978
|
-
"aria-label":
|
|
977
|
+
label: c,
|
|
978
|
+
"aria-label": d,
|
|
979
979
|
className: p = ""
|
|
980
|
-
} = u,
|
|
980
|
+
} = u, b = m(u, [
|
|
981
981
|
"value",
|
|
982
982
|
"max",
|
|
983
983
|
"variant",
|
|
@@ -987,9 +987,9 @@ const Re = A("w-full", {
|
|
|
987
987
|
"aria-label",
|
|
988
988
|
"className"
|
|
989
989
|
]);
|
|
990
|
-
const h = t === void 0, w = h ? void 0 : Math.min(Math.max(t / r * 100, 0), 100),
|
|
991
|
-
return /* @__PURE__ */ v("div",
|
|
992
|
-
o && (
|
|
990
|
+
const h = t === void 0, w = h ? void 0 : Math.min(Math.max(t / r * 100, 0), 100), N = d || (h ? "Loading in progress" : `Progress: ${w == null ? void 0 : w.toFixed(0)}%`);
|
|
991
|
+
return /* @__PURE__ */ v("div", y(f({ ref: g, className: n("w-full", p) }, b), { children: [
|
|
992
|
+
o && (c || !h) && /* @__PURE__ */ v(
|
|
993
993
|
"div",
|
|
994
994
|
{
|
|
995
995
|
className: n(
|
|
@@ -999,22 +999,22 @@ const Re = A("w-full", {
|
|
|
999
999
|
i("xs", "mb")
|
|
1000
1000
|
),
|
|
1001
1001
|
children: [
|
|
1002
|
-
|
|
1002
|
+
c && /* @__PURE__ */ l(
|
|
1003
1003
|
"span",
|
|
1004
1004
|
{
|
|
1005
1005
|
className: n(
|
|
1006
|
-
|
|
1006
|
+
C("bodySmall"),
|
|
1007
1007
|
M("label"),
|
|
1008
1008
|
"text-fg-primary"
|
|
1009
1009
|
),
|
|
1010
|
-
children:
|
|
1010
|
+
children: c
|
|
1011
1011
|
}
|
|
1012
1012
|
),
|
|
1013
1013
|
!h && w !== void 0 && /* @__PURE__ */ v(
|
|
1014
1014
|
"span",
|
|
1015
1015
|
{
|
|
1016
1016
|
className: n(
|
|
1017
|
-
|
|
1017
|
+
C("bodySmall"),
|
|
1018
1018
|
"text-fg-secondary"
|
|
1019
1019
|
),
|
|
1020
1020
|
children: [
|
|
@@ -1033,14 +1033,14 @@ const Re = A("w-full", {
|
|
|
1033
1033
|
"aria-valuemin": h ? void 0 : 0,
|
|
1034
1034
|
"aria-valuemax": h ? void 0 : r,
|
|
1035
1035
|
"aria-valuenow": h ? void 0 : t,
|
|
1036
|
-
"aria-label":
|
|
1036
|
+
"aria-label": N,
|
|
1037
1037
|
"aria-busy": h,
|
|
1038
1038
|
className: n(
|
|
1039
1039
|
"relative",
|
|
1040
1040
|
"w-full",
|
|
1041
1041
|
"overflow-hidden",
|
|
1042
1042
|
Re({ size: s, variant: a }),
|
|
1043
|
-
|
|
1043
|
+
k("full")
|
|
1044
1044
|
),
|
|
1045
1045
|
children: h ? /* @__PURE__ */ l(
|
|
1046
1046
|
"div",
|
|
@@ -1050,8 +1050,8 @@ const Re = A("w-full", {
|
|
|
1050
1050
|
"top-0",
|
|
1051
1051
|
"left-0",
|
|
1052
1052
|
"bottom-0",
|
|
1053
|
-
|
|
1054
|
-
|
|
1053
|
+
Q({ variant: a }),
|
|
1054
|
+
k("full"),
|
|
1055
1055
|
"motion-reduce:animate-none"
|
|
1056
1056
|
),
|
|
1057
1057
|
style: {
|
|
@@ -1064,8 +1064,8 @@ const Re = A("w-full", {
|
|
|
1064
1064
|
{
|
|
1065
1065
|
className: n(
|
|
1066
1066
|
"h-full",
|
|
1067
|
-
|
|
1068
|
-
|
|
1067
|
+
Q({ variant: a }),
|
|
1068
|
+
k("full"),
|
|
1069
1069
|
"transition-all",
|
|
1070
1070
|
"duration-300",
|
|
1071
1071
|
"ease-out"
|
|
@@ -1080,57 +1080,57 @@ const Re = A("w-full", {
|
|
|
1080
1080
|
)
|
|
1081
1081
|
] }));
|
|
1082
1082
|
});
|
|
1083
|
-
|
|
1084
|
-
const
|
|
1083
|
+
De.displayName = "Progress";
|
|
1084
|
+
const je = {
|
|
1085
1085
|
horizontal: "w-full border-t",
|
|
1086
1086
|
vertical: "h-full border-l self-stretch"
|
|
1087
|
-
},
|
|
1087
|
+
}, _e = {
|
|
1088
1088
|
solid: "border-solid",
|
|
1089
1089
|
dashed: "border-dashed",
|
|
1090
1090
|
dotted: "border-dotted"
|
|
1091
|
-
},
|
|
1092
|
-
var
|
|
1091
|
+
}, ze = H(function(o) {
|
|
1092
|
+
var c = o, {
|
|
1093
1093
|
orientation: t = "horizontal",
|
|
1094
1094
|
variant: r = "solid",
|
|
1095
1095
|
className: a = ""
|
|
1096
|
-
} =
|
|
1096
|
+
} = c, s = m(c, [
|
|
1097
1097
|
"orientation",
|
|
1098
1098
|
"variant",
|
|
1099
1099
|
"className"
|
|
1100
1100
|
]);
|
|
1101
|
-
const
|
|
1101
|
+
const d = n(
|
|
1102
1102
|
"border-0",
|
|
1103
1103
|
"border-line-default",
|
|
1104
|
-
|
|
1105
|
-
|
|
1104
|
+
je[t],
|
|
1105
|
+
_e[r],
|
|
1106
1106
|
a
|
|
1107
1107
|
);
|
|
1108
1108
|
return t === "vertical" ? /* @__PURE__ */ l(
|
|
1109
1109
|
"div",
|
|
1110
1110
|
f({
|
|
1111
|
-
className:
|
|
1111
|
+
className: d,
|
|
1112
1112
|
role: "separator",
|
|
1113
1113
|
"aria-orientation": "vertical"
|
|
1114
1114
|
}, s)
|
|
1115
1115
|
) : /* @__PURE__ */ l(
|
|
1116
1116
|
"hr",
|
|
1117
1117
|
f({
|
|
1118
|
-
className:
|
|
1118
|
+
className: d,
|
|
1119
1119
|
role: "separator",
|
|
1120
1120
|
"aria-orientation": "horizontal"
|
|
1121
1121
|
}, s)
|
|
1122
1122
|
);
|
|
1123
1123
|
});
|
|
1124
|
-
|
|
1125
|
-
function
|
|
1126
|
-
var p =
|
|
1124
|
+
ze.displayName = "Separator";
|
|
1125
|
+
function ya(d) {
|
|
1126
|
+
var p = d, {
|
|
1127
1127
|
variant: e = "text",
|
|
1128
1128
|
width: t,
|
|
1129
1129
|
height: r,
|
|
1130
1130
|
lines: a = 1,
|
|
1131
1131
|
className: s = "",
|
|
1132
1132
|
"aria-label": o
|
|
1133
|
-
} = p,
|
|
1133
|
+
} = p, c = m(p, [
|
|
1134
1134
|
"variant",
|
|
1135
1135
|
"width",
|
|
1136
1136
|
"height",
|
|
@@ -1138,48 +1138,48 @@ function ga(c) {
|
|
|
1138
1138
|
"className",
|
|
1139
1139
|
"aria-label"
|
|
1140
1140
|
]);
|
|
1141
|
-
const
|
|
1141
|
+
const b = [
|
|
1142
1142
|
"motion-safe:animate-pulse",
|
|
1143
1143
|
"bg-surface-muted",
|
|
1144
|
-
|
|
1145
|
-
],
|
|
1144
|
+
k("sm")
|
|
1145
|
+
], g = {
|
|
1146
1146
|
text: "h-4",
|
|
1147
1147
|
card: "h-32",
|
|
1148
1148
|
list: "h-12",
|
|
1149
|
-
circle:
|
|
1150
|
-
},
|
|
1149
|
+
circle: k("full")
|
|
1150
|
+
}, x = n(...b, g[e], s), u = {};
|
|
1151
1151
|
t && (u.width = t), r && (u.height = r);
|
|
1152
1152
|
const h = o || `Loading ${e} content`;
|
|
1153
1153
|
return e === "text" && a > 1 ? /* @__PURE__ */ l(
|
|
1154
1154
|
"div",
|
|
1155
|
-
|
|
1155
|
+
y(f({
|
|
1156
1156
|
className: i("sm", "space-y"),
|
|
1157
1157
|
role: "status",
|
|
1158
1158
|
"aria-busy": "true",
|
|
1159
1159
|
"aria-label": h
|
|
1160
|
-
},
|
|
1161
|
-
children: Array.from({ length: a }).map((w,
|
|
1160
|
+
}, c), {
|
|
1161
|
+
children: Array.from({ length: a }).map((w, N) => /* @__PURE__ */ l(
|
|
1162
1162
|
"div",
|
|
1163
1163
|
{
|
|
1164
|
-
className:
|
|
1165
|
-
style:
|
|
1164
|
+
className: x,
|
|
1165
|
+
style: N === a - 1 ? { width: "75%" } : u,
|
|
1166
1166
|
"aria-hidden": "true"
|
|
1167
1167
|
},
|
|
1168
|
-
|
|
1168
|
+
N
|
|
1169
1169
|
))
|
|
1170
1170
|
})
|
|
1171
1171
|
) : /* @__PURE__ */ l(
|
|
1172
1172
|
"div",
|
|
1173
1173
|
f({
|
|
1174
|
-
className:
|
|
1174
|
+
className: x,
|
|
1175
1175
|
style: u,
|
|
1176
1176
|
role: "status",
|
|
1177
1177
|
"aria-busy": "true",
|
|
1178
1178
|
"aria-label": h
|
|
1179
|
-
},
|
|
1179
|
+
}, c)
|
|
1180
1180
|
);
|
|
1181
1181
|
}
|
|
1182
|
-
const
|
|
1182
|
+
const Me = V("motion-safe:animate-spin", {
|
|
1183
1183
|
variants: {
|
|
1184
1184
|
size: {
|
|
1185
1185
|
sm: "h-4 w-4",
|
|
@@ -1196,13 +1196,13 @@ const _e = A("motion-safe:animate-spin", {
|
|
|
1196
1196
|
size: "md",
|
|
1197
1197
|
variant: "primary"
|
|
1198
1198
|
}
|
|
1199
|
-
}),
|
|
1200
|
-
var
|
|
1199
|
+
}), He = H(function(c) {
|
|
1200
|
+
var d = c, {
|
|
1201
1201
|
size: t = "md",
|
|
1202
1202
|
variant: r = "primary",
|
|
1203
1203
|
label: a,
|
|
1204
1204
|
className: s = ""
|
|
1205
|
-
} =
|
|
1205
|
+
} = d, o = m(d, [
|
|
1206
1206
|
"size",
|
|
1207
1207
|
"variant",
|
|
1208
1208
|
"label",
|
|
@@ -1210,7 +1210,7 @@ const _e = A("motion-safe:animate-spin", {
|
|
|
1210
1210
|
]);
|
|
1211
1211
|
return /* @__PURE__ */ v(
|
|
1212
1212
|
"div",
|
|
1213
|
-
|
|
1213
|
+
y(f({
|
|
1214
1214
|
className: n("inline-flex", "items-center", s),
|
|
1215
1215
|
role: "status",
|
|
1216
1216
|
"aria-label": a || "Loading",
|
|
@@ -1218,9 +1218,9 @@ const _e = A("motion-safe:animate-spin", {
|
|
|
1218
1218
|
}, o), {
|
|
1219
1219
|
children: [
|
|
1220
1220
|
/* @__PURE__ */ l(
|
|
1221
|
-
|
|
1221
|
+
de,
|
|
1222
1222
|
{
|
|
1223
|
-
className: n(
|
|
1223
|
+
className: n(Me({ size: t, variant: r })),
|
|
1224
1224
|
"aria-hidden": "true"
|
|
1225
1225
|
}
|
|
1226
1226
|
),
|
|
@@ -1229,7 +1229,7 @@ const _e = A("motion-safe:animate-spin", {
|
|
|
1229
1229
|
{
|
|
1230
1230
|
className: n(
|
|
1231
1231
|
i("sm", "ml"),
|
|
1232
|
-
|
|
1232
|
+
C("bodySmall"),
|
|
1233
1233
|
"text-fg-secondary",
|
|
1234
1234
|
"sr-only"
|
|
1235
1235
|
),
|
|
@@ -1240,8 +1240,8 @@ const _e = A("motion-safe:animate-spin", {
|
|
|
1240
1240
|
})
|
|
1241
1241
|
);
|
|
1242
1242
|
});
|
|
1243
|
-
|
|
1244
|
-
const
|
|
1243
|
+
He.displayName = "Spinner";
|
|
1244
|
+
const Ie = {
|
|
1245
1245
|
primary: {
|
|
1246
1246
|
// exception: variant color — no semantic equivalent (Principle 3, .claude/rules/colors.md)
|
|
1247
1247
|
light: "text-indigo-400",
|
|
@@ -1293,16 +1293,16 @@ const Pe = {
|
|
|
1293
1293
|
contrast: "text-fg-inverse"
|
|
1294
1294
|
}
|
|
1295
1295
|
};
|
|
1296
|
-
function
|
|
1297
|
-
var
|
|
1296
|
+
function Pe(b, p) {
|
|
1297
|
+
var g = b, {
|
|
1298
1298
|
variant: e = "paragraph",
|
|
1299
1299
|
bold: t,
|
|
1300
1300
|
italic: r,
|
|
1301
1301
|
className: a,
|
|
1302
1302
|
as: s,
|
|
1303
1303
|
colorRole: o = "neutral",
|
|
1304
|
-
colorShade:
|
|
1305
|
-
} =
|
|
1304
|
+
colorShade: c = "dark"
|
|
1305
|
+
} = g, d = m(g, [
|
|
1306
1306
|
"variant",
|
|
1307
1307
|
"bold",
|
|
1308
1308
|
"italic",
|
|
@@ -1311,7 +1311,7 @@ function We(x, p) {
|
|
|
1311
1311
|
"colorRole",
|
|
1312
1312
|
"colorShade"
|
|
1313
1313
|
]);
|
|
1314
|
-
const
|
|
1314
|
+
const x = [];
|
|
1315
1315
|
let u;
|
|
1316
1316
|
if (s)
|
|
1317
1317
|
u = s;
|
|
@@ -1327,25 +1327,25 @@ function We(x, p) {
|
|
|
1327
1327
|
u = "p";
|
|
1328
1328
|
break;
|
|
1329
1329
|
}
|
|
1330
|
-
return e === "heading" ?
|
|
1330
|
+
return e === "heading" ? x.push(R("h2")) : e === "body" || e === "paragraph" ? x.push(R("body")) : e === "bodySmall" ? x.push(R("bodySmall")) : e === "bodyLarge" ? x.push(R("bodyLarge")) : e === "caption" ? x.push(R("caption")) : e === "label" ? x.push(R("label")) : x.push(R("body")), t && x.push("font-bold"), r && x.push("italic"), x.push(Ie[o][c]), /* @__PURE__ */ l(u, f({ ref: p, className: n(...x, a) }, d));
|
|
1331
1331
|
}
|
|
1332
|
-
const
|
|
1332
|
+
const _ = j(Pe), Oe = {
|
|
1333
1333
|
sm: "max-w-screen-sm",
|
|
1334
1334
|
md: "max-w-screen-md",
|
|
1335
1335
|
lg: "max-w-screen-lg",
|
|
1336
1336
|
xl: "max-w-screen-xl",
|
|
1337
1337
|
"2xl": "max-w-screen-2xl",
|
|
1338
1338
|
full: "max-w-full"
|
|
1339
|
-
},
|
|
1340
|
-
(p,
|
|
1341
|
-
var
|
|
1339
|
+
}, We = ee.forwardRef(
|
|
1340
|
+
(p, d) => {
|
|
1341
|
+
var b = p, {
|
|
1342
1342
|
className: e,
|
|
1343
1343
|
maxWidth: t = "lg",
|
|
1344
1344
|
paddingX: r = "base",
|
|
1345
1345
|
paddingY: a = "base",
|
|
1346
1346
|
center: s = !0,
|
|
1347
1347
|
children: o
|
|
1348
|
-
} =
|
|
1348
|
+
} = b, c = m(b, [
|
|
1349
1349
|
"className",
|
|
1350
1350
|
"maxWidth",
|
|
1351
1351
|
"paddingX",
|
|
@@ -1355,33 +1355,33 @@ const Q = z(We), He = {
|
|
|
1355
1355
|
]);
|
|
1356
1356
|
return /* @__PURE__ */ l(
|
|
1357
1357
|
"div",
|
|
1358
|
-
|
|
1359
|
-
ref:
|
|
1358
|
+
y(f({
|
|
1359
|
+
ref: d,
|
|
1360
1360
|
className: n(
|
|
1361
1361
|
"w-full",
|
|
1362
|
-
|
|
1362
|
+
Oe[t],
|
|
1363
1363
|
i(r, "px"),
|
|
1364
1364
|
i(a, "py"),
|
|
1365
1365
|
s && "mx-auto",
|
|
1366
1366
|
e
|
|
1367
1367
|
)
|
|
1368
|
-
},
|
|
1368
|
+
}, c), {
|
|
1369
1369
|
children: o
|
|
1370
1370
|
})
|
|
1371
1371
|
);
|
|
1372
1372
|
}
|
|
1373
1373
|
);
|
|
1374
|
-
|
|
1375
|
-
const
|
|
1376
|
-
(p,
|
|
1377
|
-
var
|
|
1374
|
+
We.displayName = "Container";
|
|
1375
|
+
const Ue = ee.forwardRef(
|
|
1376
|
+
(p, d) => {
|
|
1377
|
+
var b = p, {
|
|
1378
1378
|
className: e,
|
|
1379
1379
|
spacing: t = "base",
|
|
1380
1380
|
align: r = "stretch",
|
|
1381
1381
|
justify: a = "start",
|
|
1382
1382
|
direction: s = "column",
|
|
1383
1383
|
children: o
|
|
1384
|
-
} =
|
|
1384
|
+
} = b, c = m(b, [
|
|
1385
1385
|
"className",
|
|
1386
1386
|
"spacing",
|
|
1387
1387
|
"align",
|
|
@@ -1389,7 +1389,7 @@ const Be = ee.forwardRef(
|
|
|
1389
1389
|
"direction",
|
|
1390
1390
|
"children"
|
|
1391
1391
|
]);
|
|
1392
|
-
const
|
|
1392
|
+
const g = s === "column" ? i(t, "gap-y") : i(t, "gap-x"), x = {
|
|
1393
1393
|
start: "items-start",
|
|
1394
1394
|
center: "items-center",
|
|
1395
1395
|
end: "items-end",
|
|
@@ -1404,24 +1404,24 @@ const Be = ee.forwardRef(
|
|
|
1404
1404
|
};
|
|
1405
1405
|
return /* @__PURE__ */ l(
|
|
1406
1406
|
"div",
|
|
1407
|
-
|
|
1408
|
-
ref:
|
|
1407
|
+
y(f({
|
|
1408
|
+
ref: d,
|
|
1409
1409
|
className: n(
|
|
1410
1410
|
"flex",
|
|
1411
1411
|
s === "column" ? "flex-col" : "flex-row",
|
|
1412
|
-
|
|
1413
|
-
|
|
1412
|
+
g,
|
|
1413
|
+
x[r],
|
|
1414
1414
|
u[a],
|
|
1415
1415
|
e
|
|
1416
1416
|
)
|
|
1417
|
-
},
|
|
1417
|
+
}, c), {
|
|
1418
1418
|
children: o
|
|
1419
1419
|
})
|
|
1420
1420
|
);
|
|
1421
1421
|
}
|
|
1422
1422
|
);
|
|
1423
|
-
|
|
1424
|
-
function
|
|
1423
|
+
Ue.displayName = "Stack";
|
|
1424
|
+
function Be(s) {
|
|
1425
1425
|
var o = s, {
|
|
1426
1426
|
items: e,
|
|
1427
1427
|
separator: t = "/",
|
|
@@ -1431,20 +1431,20 @@ function Ue(s) {
|
|
|
1431
1431
|
"separator",
|
|
1432
1432
|
"className"
|
|
1433
1433
|
]);
|
|
1434
|
-
const
|
|
1434
|
+
const c = [
|
|
1435
1435
|
"flex",
|
|
1436
1436
|
"items-center",
|
|
1437
1437
|
i("sm", "space-x"),
|
|
1438
|
-
|
|
1439
|
-
],
|
|
1440
|
-
return /* @__PURE__ */ l("nav",
|
|
1438
|
+
C("bodySmall")
|
|
1439
|
+
], d = n(...c, r);
|
|
1440
|
+
return /* @__PURE__ */ l("nav", y(f({ "aria-label": "Breadcrumb", className: d }, a), { children: /* @__PURE__ */ l(
|
|
1441
1441
|
"ol",
|
|
1442
1442
|
{
|
|
1443
1443
|
className: n("flex", "items-center", i("sm", "space-x")),
|
|
1444
|
-
children: e.map((p,
|
|
1445
|
-
const
|
|
1444
|
+
children: e.map((p, b) => {
|
|
1445
|
+
const g = b === e.length - 1;
|
|
1446
1446
|
return /* @__PURE__ */ v("li", { className: "flex items-center", children: [
|
|
1447
|
-
|
|
1447
|
+
b > 0 && /* @__PURE__ */ l(
|
|
1448
1448
|
"span",
|
|
1449
1449
|
{
|
|
1450
1450
|
className: n(
|
|
@@ -1455,7 +1455,7 @@ function Ue(s) {
|
|
|
1455
1455
|
children: t
|
|
1456
1456
|
}
|
|
1457
1457
|
),
|
|
1458
|
-
|
|
1458
|
+
g ? /* @__PURE__ */ l(
|
|
1459
1459
|
"span",
|
|
1460
1460
|
{
|
|
1461
1461
|
className: n(
|
|
@@ -1476,7 +1476,7 @@ function Ue(s) {
|
|
|
1476
1476
|
i("xs", "pt"),
|
|
1477
1477
|
"border-b-2",
|
|
1478
1478
|
"border-transparent",
|
|
1479
|
-
|
|
1479
|
+
C("bodySmall"),
|
|
1480
1480
|
M("label"),
|
|
1481
1481
|
"transition-colors",
|
|
1482
1482
|
"text-fg-secondary",
|
|
@@ -1486,7 +1486,7 @@ function Ue(s) {
|
|
|
1486
1486
|
children: p.label
|
|
1487
1487
|
}
|
|
1488
1488
|
) : /* @__PURE__ */ l("span", { className: "text-fg-secondary", children: p.label })
|
|
1489
|
-
] },
|
|
1489
|
+
] }, b);
|
|
1490
1490
|
})
|
|
1491
1491
|
}
|
|
1492
1492
|
) }));
|
|
@@ -1495,7 +1495,7 @@ function Ke(a) {
|
|
|
1495
1495
|
var s = a, { children: e, className: t } = s, r = m(s, ["children", "className"]);
|
|
1496
1496
|
return /* @__PURE__ */ l(
|
|
1497
1497
|
"div",
|
|
1498
|
-
|
|
1498
|
+
y(f({
|
|
1499
1499
|
className: n(
|
|
1500
1500
|
"grid items-start",
|
|
1501
1501
|
i("1.5", "gap"),
|
|
@@ -1509,14 +1509,14 @@ function Ke(a) {
|
|
|
1509
1509
|
})
|
|
1510
1510
|
);
|
|
1511
1511
|
}
|
|
1512
|
-
function Xe(
|
|
1513
|
-
var
|
|
1512
|
+
function Xe(c) {
|
|
1513
|
+
var d = c, {
|
|
1514
1514
|
children: e,
|
|
1515
1515
|
icon: t,
|
|
1516
1516
|
badge: r,
|
|
1517
1517
|
as: a = "h2",
|
|
1518
1518
|
className: s
|
|
1519
|
-
} =
|
|
1519
|
+
} = d, o = m(d, [
|
|
1520
1520
|
"children",
|
|
1521
1521
|
"icon",
|
|
1522
1522
|
"badge",
|
|
@@ -1525,7 +1525,7 @@ function Xe(d) {
|
|
|
1525
1525
|
]);
|
|
1526
1526
|
return /* @__PURE__ */ v(
|
|
1527
1527
|
a,
|
|
1528
|
-
|
|
1528
|
+
y(f({
|
|
1529
1529
|
className: n(
|
|
1530
1530
|
"text-base font-semibold text-fg-primary",
|
|
1531
1531
|
"flex items-center",
|
|
@@ -1549,7 +1549,7 @@ function qe(a) {
|
|
|
1549
1549
|
"children",
|
|
1550
1550
|
"className"
|
|
1551
1551
|
]);
|
|
1552
|
-
return /* @__PURE__ */ l("p",
|
|
1552
|
+
return /* @__PURE__ */ l("p", y(f({ className: n("text-sm text-fg-secondary", t) }, r), { children: e }));
|
|
1553
1553
|
}
|
|
1554
1554
|
function Ge(a) {
|
|
1555
1555
|
var s = a, {
|
|
@@ -1561,7 +1561,7 @@ function Ge(a) {
|
|
|
1561
1561
|
]);
|
|
1562
1562
|
return /* @__PURE__ */ l(
|
|
1563
1563
|
"div",
|
|
1564
|
-
|
|
1564
|
+
y(f({
|
|
1565
1565
|
"data-card-actions": "",
|
|
1566
1566
|
className: n(
|
|
1567
1567
|
"flex items-center self-start",
|
|
@@ -1575,19 +1575,19 @@ function Ge(a) {
|
|
|
1575
1575
|
}
|
|
1576
1576
|
function Ye(a) {
|
|
1577
1577
|
var s = a, { children: e, className: t } = s, r = m(s, ["children", "className"]);
|
|
1578
|
-
return /* @__PURE__ */ l("div",
|
|
1578
|
+
return /* @__PURE__ */ l("div", y(f({ className: n(t) }, r), { children: e }));
|
|
1579
1579
|
}
|
|
1580
|
-
function Ze(
|
|
1581
|
-
var
|
|
1580
|
+
function Ze(b) {
|
|
1581
|
+
var g = b, {
|
|
1582
1582
|
variant: e = "default",
|
|
1583
1583
|
padding: t = "medium",
|
|
1584
1584
|
className: r = "",
|
|
1585
1585
|
onClick: a,
|
|
1586
1586
|
"aria-label": s,
|
|
1587
1587
|
"aria-labelledby": o,
|
|
1588
|
-
asSection:
|
|
1589
|
-
children:
|
|
1590
|
-
} =
|
|
1588
|
+
asSection: c = !1,
|
|
1589
|
+
children: d
|
|
1590
|
+
} = g, p = m(g, [
|
|
1591
1591
|
"variant",
|
|
1592
1592
|
"padding",
|
|
1593
1593
|
"className",
|
|
@@ -1597,27 +1597,27 @@ function Ze(x) {
|
|
|
1597
1597
|
"asSection",
|
|
1598
1598
|
"children"
|
|
1599
1599
|
]);
|
|
1600
|
-
typeof process != "undefined" && process.env.NODE_ENV !== "production" &&
|
|
1600
|
+
typeof process != "undefined" && process.env.NODE_ENV !== "production" && c && !s && !o && console.warn(
|
|
1601
1601
|
"[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."
|
|
1602
1602
|
);
|
|
1603
|
-
const
|
|
1603
|
+
const x = V(
|
|
1604
1604
|
n(
|
|
1605
1605
|
"bg-surface-base",
|
|
1606
|
-
|
|
1606
|
+
k("lg"),
|
|
1607
1607
|
"border",
|
|
1608
1608
|
"border-line-default",
|
|
1609
|
-
|
|
1609
|
+
U("sm")
|
|
1610
1610
|
),
|
|
1611
1611
|
{
|
|
1612
1612
|
variants: {
|
|
1613
1613
|
variant: {
|
|
1614
1614
|
default: "",
|
|
1615
1615
|
hover: n(
|
|
1616
|
-
`hover:${
|
|
1616
|
+
`hover:${U("md")}`,
|
|
1617
1617
|
"transition-shadow",
|
|
1618
1618
|
"cursor-pointer"
|
|
1619
1619
|
),
|
|
1620
|
-
selected: n("border-line-brand",
|
|
1620
|
+
selected: n("border-line-brand", U("md"))
|
|
1621
1621
|
},
|
|
1622
1622
|
padding: {
|
|
1623
1623
|
none: "",
|
|
@@ -1631,20 +1631,20 @@ function Ze(x) {
|
|
|
1631
1631
|
padding: "medium"
|
|
1632
1632
|
}
|
|
1633
1633
|
}
|
|
1634
|
-
), u = a !== void 0, h = u ? "button" : void 0, w = u ? 0 : void 0,
|
|
1635
|
-
className:
|
|
1634
|
+
), u = a !== void 0, h = u ? "button" : void 0, w = u ? 0 : void 0, N = n(x({ variant: e, padding: t }), r), T = f({
|
|
1635
|
+
className: N,
|
|
1636
1636
|
role: h,
|
|
1637
1637
|
tabIndex: w,
|
|
1638
1638
|
onClick: a,
|
|
1639
|
-
onKeyDown: u ? (
|
|
1640
|
-
u && (
|
|
1639
|
+
onKeyDown: u ? (z) => {
|
|
1640
|
+
u && (z.key === "Enter" || z.key === " ") && (z.preventDefault(), a == null || a());
|
|
1641
1641
|
} : void 0,
|
|
1642
1642
|
"aria-label": s,
|
|
1643
1643
|
"aria-labelledby": o
|
|
1644
1644
|
}, p);
|
|
1645
|
-
return
|
|
1645
|
+
return c ? /* @__PURE__ */ l("section", y(f({}, T), { children: d })) : /* @__PURE__ */ l("div", y(f({}, T), { children: d }));
|
|
1646
1646
|
}
|
|
1647
|
-
const ae =
|
|
1647
|
+
const ae = H(Ze);
|
|
1648
1648
|
ae.displayName = "Card";
|
|
1649
1649
|
const I = ae;
|
|
1650
1650
|
I.Header = Ke;
|
|
@@ -1652,7 +1652,7 @@ I.Title = Xe;
|
|
|
1652
1652
|
I.Subtitle = qe;
|
|
1653
1653
|
I.Actions = Ge;
|
|
1654
1654
|
I.Body = Ye;
|
|
1655
|
-
function
|
|
1655
|
+
function va(a) {
|
|
1656
1656
|
var s = a, {
|
|
1657
1657
|
children: e,
|
|
1658
1658
|
className: t = ""
|
|
@@ -1662,14 +1662,14 @@ function xa(a) {
|
|
|
1662
1662
|
]);
|
|
1663
1663
|
return /* @__PURE__ */ l(
|
|
1664
1664
|
"div",
|
|
1665
|
-
|
|
1665
|
+
y(f({
|
|
1666
1666
|
className: `flex flex-col ${i("1.5", "space-y")} ${i("lg", "p")} ${i("base", "pb")} ${t}`
|
|
1667
1667
|
}, r), {
|
|
1668
1668
|
children: e
|
|
1669
1669
|
})
|
|
1670
1670
|
);
|
|
1671
1671
|
}
|
|
1672
|
-
function
|
|
1672
|
+
function wa(a) {
|
|
1673
1673
|
var s = a, {
|
|
1674
1674
|
children: e,
|
|
1675
1675
|
className: t = ""
|
|
@@ -1679,14 +1679,14 @@ function ba(a) {
|
|
|
1679
1679
|
]);
|
|
1680
1680
|
return /* @__PURE__ */ l(
|
|
1681
1681
|
"div",
|
|
1682
|
-
|
|
1682
|
+
y(f({
|
|
1683
1683
|
className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${i("sm", "space-x")} ${i("lg", "p")} ${i("base", "pt")} ${t}`
|
|
1684
1684
|
}, r), {
|
|
1685
1685
|
children: e
|
|
1686
1686
|
})
|
|
1687
1687
|
);
|
|
1688
1688
|
}
|
|
1689
|
-
function
|
|
1689
|
+
function Na(a) {
|
|
1690
1690
|
var s = a, {
|
|
1691
1691
|
children: e,
|
|
1692
1692
|
className: t = ""
|
|
@@ -1696,7 +1696,7 @@ function ha(a) {
|
|
|
1696
1696
|
]);
|
|
1697
1697
|
return /* @__PURE__ */ l(
|
|
1698
1698
|
"div",
|
|
1699
|
-
|
|
1699
|
+
y(f({
|
|
1700
1700
|
className: `
|
|
1701
1701
|
${i("lg", "p")}
|
|
1702
1702
|
border-b
|
|
@@ -1708,7 +1708,7 @@ function ha(a) {
|
|
|
1708
1708
|
})
|
|
1709
1709
|
);
|
|
1710
1710
|
}
|
|
1711
|
-
function
|
|
1711
|
+
function Sa(a) {
|
|
1712
1712
|
var s = a, {
|
|
1713
1713
|
children: e,
|
|
1714
1714
|
className: t = ""
|
|
@@ -1718,7 +1718,7 @@ function ya(a) {
|
|
|
1718
1718
|
]);
|
|
1719
1719
|
return /* @__PURE__ */ l(
|
|
1720
1720
|
"div",
|
|
1721
|
-
|
|
1721
|
+
y(f({
|
|
1722
1722
|
className: `
|
|
1723
1723
|
${i("lg", "p")}
|
|
1724
1724
|
border-t
|
|
@@ -1733,13 +1733,13 @@ function ya(a) {
|
|
|
1733
1733
|
})
|
|
1734
1734
|
);
|
|
1735
1735
|
}
|
|
1736
|
-
function
|
|
1737
|
-
var
|
|
1736
|
+
function $a(o) {
|
|
1737
|
+
var c = o, {
|
|
1738
1738
|
label: e,
|
|
1739
1739
|
children: t,
|
|
1740
1740
|
wrap: r = !0,
|
|
1741
1741
|
className: a
|
|
1742
|
-
} =
|
|
1742
|
+
} = c, s = m(c, [
|
|
1743
1743
|
"label",
|
|
1744
1744
|
"children",
|
|
1745
1745
|
"wrap",
|
|
@@ -1748,7 +1748,7 @@ function va(o) {
|
|
|
1748
1748
|
const p = !(s["aria-label"] != null || s["aria-labelledby"] != null) && typeof e == "string" && e !== "" ? e : void 0;
|
|
1749
1749
|
return /* @__PURE__ */ v(
|
|
1750
1750
|
"div",
|
|
1751
|
-
|
|
1751
|
+
y(f({
|
|
1752
1752
|
role: "group",
|
|
1753
1753
|
"aria-label": p,
|
|
1754
1754
|
className: n(
|
|
@@ -1770,7 +1770,7 @@ function va(o) {
|
|
|
1770
1770
|
})
|
|
1771
1771
|
);
|
|
1772
1772
|
}
|
|
1773
|
-
function
|
|
1773
|
+
function ka({ children: e, className: t }) {
|
|
1774
1774
|
return /* @__PURE__ */ l(
|
|
1775
1775
|
"div",
|
|
1776
1776
|
{
|
|
@@ -1783,7 +1783,7 @@ function wa({ children: e, className: t }) {
|
|
|
1783
1783
|
}
|
|
1784
1784
|
);
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1786
|
+
function Ca({
|
|
1787
1787
|
children: e,
|
|
1788
1788
|
className: t
|
|
1789
1789
|
}) {
|
|
@@ -1802,7 +1802,151 @@ function Na({
|
|
|
1802
1802
|
}
|
|
1803
1803
|
);
|
|
1804
1804
|
}
|
|
1805
|
-
|
|
1805
|
+
const Je = V(
|
|
1806
|
+
n(
|
|
1807
|
+
"w-full flex flex-col",
|
|
1808
|
+
i("2xl", "py"),
|
|
1809
|
+
// 40px vertical breathing room
|
|
1810
|
+
i("lg", "px"),
|
|
1811
|
+
// 24px horizontal
|
|
1812
|
+
i("xl", "gap-y")
|
|
1813
|
+
// 32px between major blocks
|
|
1814
|
+
),
|
|
1815
|
+
{
|
|
1816
|
+
variants: {
|
|
1817
|
+
variant: {
|
|
1818
|
+
plain: "",
|
|
1819
|
+
gradient: "hero-gradient",
|
|
1820
|
+
"gradient-glow": n("hero-gradient", "hero-glow")
|
|
1821
|
+
},
|
|
1822
|
+
align: {
|
|
1823
|
+
start: "text-left",
|
|
1824
|
+
center: "text-center"
|
|
1825
|
+
}
|
|
1826
|
+
},
|
|
1827
|
+
defaultVariants: {
|
|
1828
|
+
variant: "plain",
|
|
1829
|
+
align: "start"
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
), Qe = {
|
|
1833
|
+
start: "items-start",
|
|
1834
|
+
center: "items-center"
|
|
1835
|
+
}, ea = {
|
|
1836
|
+
start: "justify-start",
|
|
1837
|
+
center: "justify-center"
|
|
1838
|
+
}, aa = j(
|
|
1839
|
+
function(w, h) {
|
|
1840
|
+
var N = w, {
|
|
1841
|
+
kicker: t,
|
|
1842
|
+
title: r,
|
|
1843
|
+
description: a,
|
|
1844
|
+
actions: s,
|
|
1845
|
+
kpis: o,
|
|
1846
|
+
meta: c,
|
|
1847
|
+
variant: d = "plain",
|
|
1848
|
+
align: p = "start",
|
|
1849
|
+
className: b,
|
|
1850
|
+
"aria-label": g,
|
|
1851
|
+
"aria-labelledby": x
|
|
1852
|
+
} = N, u = m(N, [
|
|
1853
|
+
"kicker",
|
|
1854
|
+
"title",
|
|
1855
|
+
"description",
|
|
1856
|
+
"actions",
|
|
1857
|
+
"kpis",
|
|
1858
|
+
"meta",
|
|
1859
|
+
"variant",
|
|
1860
|
+
"align",
|
|
1861
|
+
"className",
|
|
1862
|
+
"aria-label",
|
|
1863
|
+
"aria-labelledby"
|
|
1864
|
+
]);
|
|
1865
|
+
const A = g != null || x != null, T = g != null ? g : typeof r == "string" ? r : void 0;
|
|
1866
|
+
return typeof process != "undefined" && process.env.NODE_ENV !== "production" && !A && typeof r != "string" && console.warn(
|
|
1867
|
+
"[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."
|
|
1868
|
+
), /* @__PURE__ */ v(
|
|
1869
|
+
"section",
|
|
1870
|
+
y(f({
|
|
1871
|
+
ref: h,
|
|
1872
|
+
className: n(Je({ variant: d, align: p }), b),
|
|
1873
|
+
"aria-label": T,
|
|
1874
|
+
"aria-labelledby": x
|
|
1875
|
+
}, u), {
|
|
1876
|
+
children: [
|
|
1877
|
+
/* @__PURE__ */ v(
|
|
1878
|
+
"div",
|
|
1879
|
+
{
|
|
1880
|
+
className: n(
|
|
1881
|
+
"flex flex-col",
|
|
1882
|
+
i("md", "gap-y"),
|
|
1883
|
+
Qe[p]
|
|
1884
|
+
),
|
|
1885
|
+
children: [
|
|
1886
|
+
t ? /* @__PURE__ */ l(
|
|
1887
|
+
_,
|
|
1888
|
+
{
|
|
1889
|
+
as: "span",
|
|
1890
|
+
variant: "caption",
|
|
1891
|
+
colorRole: "primary",
|
|
1892
|
+
colorShade: "DEFAULT",
|
|
1893
|
+
className: "text-sm font-semibold tracking-wide uppercase",
|
|
1894
|
+
children: t
|
|
1895
|
+
}
|
|
1896
|
+
) : null,
|
|
1897
|
+
/* @__PURE__ */ l(
|
|
1898
|
+
_,
|
|
1899
|
+
{
|
|
1900
|
+
as: "h1",
|
|
1901
|
+
variant: "heading",
|
|
1902
|
+
className: "text-3xl font-bold tracking-tight sm:text-4xl",
|
|
1903
|
+
children: r
|
|
1904
|
+
}
|
|
1905
|
+
),
|
|
1906
|
+
a ? /* @__PURE__ */ l(
|
|
1907
|
+
_,
|
|
1908
|
+
{
|
|
1909
|
+
as: "p",
|
|
1910
|
+
variant: "body",
|
|
1911
|
+
colorRole: "neutral",
|
|
1912
|
+
colorShade: "DEFAULT",
|
|
1913
|
+
className: "max-w-2xl text-base leading-relaxed sm:text-lg",
|
|
1914
|
+
children: a
|
|
1915
|
+
}
|
|
1916
|
+
) : null
|
|
1917
|
+
]
|
|
1918
|
+
}
|
|
1919
|
+
),
|
|
1920
|
+
s ? /* @__PURE__ */ l(
|
|
1921
|
+
"div",
|
|
1922
|
+
{
|
|
1923
|
+
className: n(
|
|
1924
|
+
"flex flex-wrap",
|
|
1925
|
+
i("sm", "gap"),
|
|
1926
|
+
ea[p]
|
|
1927
|
+
),
|
|
1928
|
+
children: s
|
|
1929
|
+
}
|
|
1930
|
+
) : null,
|
|
1931
|
+
o ? /* @__PURE__ */ l("div", { className: "w-full", children: o }) : null,
|
|
1932
|
+
c ? /* @__PURE__ */ l(
|
|
1933
|
+
_,
|
|
1934
|
+
{
|
|
1935
|
+
as: "p",
|
|
1936
|
+
variant: "caption",
|
|
1937
|
+
colorRole: "neutral",
|
|
1938
|
+
colorShade: "light",
|
|
1939
|
+
className: "text-sm",
|
|
1940
|
+
children: c
|
|
1941
|
+
}
|
|
1942
|
+
) : null
|
|
1943
|
+
]
|
|
1944
|
+
})
|
|
1945
|
+
);
|
|
1946
|
+
}
|
|
1947
|
+
);
|
|
1948
|
+
aa.displayName = "HeroSection";
|
|
1949
|
+
function Ea(r) {
|
|
1806
1950
|
var a = r, {
|
|
1807
1951
|
className: e = ""
|
|
1808
1952
|
} = a, t = m(a, [
|
|
@@ -1821,7 +1965,7 @@ function $a(r) {
|
|
|
1821
1965
|
}, t)
|
|
1822
1966
|
);
|
|
1823
1967
|
}
|
|
1824
|
-
function
|
|
1968
|
+
function Ta(a) {
|
|
1825
1969
|
var s = a, {
|
|
1826
1970
|
orientation: e = "horizontal",
|
|
1827
1971
|
className: t = ""
|
|
@@ -1859,7 +2003,7 @@ function Sa(a) {
|
|
|
1859
2003
|
}, r)
|
|
1860
2004
|
);
|
|
1861
2005
|
}
|
|
1862
|
-
const
|
|
2006
|
+
const ta = V(
|
|
1863
2007
|
// Base classes
|
|
1864
2008
|
n("w-full", "flex", "flex-col", i("sm", "gap")),
|
|
1865
2009
|
{
|
|
@@ -1874,15 +2018,15 @@ const Je = A(
|
|
|
1874
2018
|
}
|
|
1875
2019
|
}
|
|
1876
2020
|
);
|
|
1877
|
-
function
|
|
1878
|
-
var p =
|
|
2021
|
+
function La(d) {
|
|
2022
|
+
var p = d, {
|
|
1879
2023
|
title: e,
|
|
1880
2024
|
description: t,
|
|
1881
2025
|
breadcrumb: r,
|
|
1882
2026
|
actions: a,
|
|
1883
2027
|
variant: s = "default",
|
|
1884
2028
|
className: o
|
|
1885
|
-
} = p,
|
|
2029
|
+
} = p, c = m(p, [
|
|
1886
2030
|
"title",
|
|
1887
2031
|
"description",
|
|
1888
2032
|
"breadcrumb",
|
|
@@ -1890,8 +2034,8 @@ function Ca(c) {
|
|
|
1890
2034
|
"variant",
|
|
1891
2035
|
"className"
|
|
1892
2036
|
]);
|
|
1893
|
-
return /* @__PURE__ */ v("div",
|
|
1894
|
-
r && r.length > 0 && /* @__PURE__ */ l(
|
|
2037
|
+
return /* @__PURE__ */ v("div", y(f({ className: n(ta({ variant: s }), o) }, c), { children: [
|
|
2038
|
+
r && r.length > 0 && /* @__PURE__ */ l(Be, { items: r }),
|
|
1895
2039
|
/* @__PURE__ */ v(
|
|
1896
2040
|
"div",
|
|
1897
2041
|
{
|
|
@@ -1899,7 +2043,7 @@ function Ca(c) {
|
|
|
1899
2043
|
children: [
|
|
1900
2044
|
/* @__PURE__ */ v("div", { className: "flex-1 min-w-0", children: [
|
|
1901
2045
|
/* @__PURE__ */ l(
|
|
1902
|
-
|
|
2046
|
+
_,
|
|
1903
2047
|
{
|
|
1904
2048
|
variant: "heading",
|
|
1905
2049
|
as: "h1",
|
|
@@ -1907,7 +2051,7 @@ function Ca(c) {
|
|
|
1907
2051
|
children: e
|
|
1908
2052
|
}
|
|
1909
2053
|
),
|
|
1910
|
-
t && /* @__PURE__ */ l(
|
|
2054
|
+
t && /* @__PURE__ */ l(_, { variant: "body", className: "text-fg-secondary", children: t })
|
|
1911
2055
|
] }),
|
|
1912
2056
|
a && /* @__PURE__ */ l(
|
|
1913
2057
|
"div",
|
|
@@ -1921,25 +2065,25 @@ function Ca(c) {
|
|
|
1921
2065
|
)
|
|
1922
2066
|
] }));
|
|
1923
2067
|
}
|
|
1924
|
-
const
|
|
2068
|
+
const ra = {
|
|
1925
2069
|
start: "items-start text-left",
|
|
1926
2070
|
center: "items-center text-center"
|
|
1927
|
-
},
|
|
2071
|
+
}, sa = {
|
|
1928
2072
|
neutral: "text-fg-tertiary",
|
|
1929
2073
|
success: "text-fg-success",
|
|
1930
2074
|
warning: "text-fg-warning",
|
|
1931
2075
|
error: "text-fg-error"
|
|
1932
2076
|
};
|
|
1933
|
-
function
|
|
1934
|
-
var
|
|
2077
|
+
function Aa(p) {
|
|
2078
|
+
var b = p, {
|
|
1935
2079
|
value: e,
|
|
1936
2080
|
label: t,
|
|
1937
2081
|
hint: r,
|
|
1938
2082
|
icon: a,
|
|
1939
2083
|
align: s = "start",
|
|
1940
2084
|
tone: o = "neutral",
|
|
1941
|
-
className:
|
|
1942
|
-
} =
|
|
2085
|
+
className: c
|
|
2086
|
+
} = b, d = m(b, [
|
|
1943
2087
|
"value",
|
|
1944
2088
|
"label",
|
|
1945
2089
|
"hint",
|
|
@@ -1948,21 +2092,21 @@ function ka(p) {
|
|
|
1948
2092
|
"tone",
|
|
1949
2093
|
"className"
|
|
1950
2094
|
]);
|
|
1951
|
-
const
|
|
2095
|
+
const g = e == null;
|
|
1952
2096
|
return /* @__PURE__ */ v(
|
|
1953
2097
|
"div",
|
|
1954
|
-
|
|
2098
|
+
y(f({
|
|
1955
2099
|
className: n(
|
|
1956
2100
|
"bg-surface-base flex-1 flex flex-col",
|
|
1957
2101
|
i("base", "p"),
|
|
1958
2102
|
i("xs", "gap-y"),
|
|
1959
|
-
|
|
1960
|
-
|
|
2103
|
+
ra[s],
|
|
2104
|
+
c
|
|
1961
2105
|
)
|
|
1962
|
-
},
|
|
2106
|
+
}, d), {
|
|
1963
2107
|
children: [
|
|
1964
2108
|
a ? /* @__PURE__ */ l("span", { className: "text-icon-default inline-flex", children: a }) : null,
|
|
1965
|
-
|
|
2109
|
+
g ? /* @__PURE__ */ l(
|
|
1966
2110
|
"span",
|
|
1967
2111
|
{
|
|
1968
2112
|
"aria-label": "No data",
|
|
@@ -1971,36 +2115,36 @@ function ka(p) {
|
|
|
1971
2115
|
}
|
|
1972
2116
|
) : /* @__PURE__ */ l("span", { className: "text-fg-primary text-2xl font-semibold leading-tight", children: e }),
|
|
1973
2117
|
/* @__PURE__ */ l("span", { className: "text-fg-secondary text-sm", children: t }),
|
|
1974
|
-
r ? /* @__PURE__ */ l("span", { className: n("text-xs",
|
|
2118
|
+
r ? /* @__PURE__ */ l("span", { className: n("text-xs", sa[o]), children: r }) : null
|
|
1975
2119
|
]
|
|
1976
2120
|
})
|
|
1977
2121
|
);
|
|
1978
2122
|
}
|
|
1979
|
-
const
|
|
2123
|
+
const na = {
|
|
1980
2124
|
2: "md:grid-cols-2",
|
|
1981
2125
|
3: "md:grid-cols-3",
|
|
1982
2126
|
4: "md:grid-cols-4"
|
|
1983
2127
|
};
|
|
1984
|
-
function
|
|
1985
|
-
var
|
|
2128
|
+
function Va(o) {
|
|
2129
|
+
var c = o, {
|
|
1986
2130
|
layout: e = "grid",
|
|
1987
2131
|
cols: t = 4,
|
|
1988
2132
|
className: r,
|
|
1989
2133
|
children: a
|
|
1990
|
-
} =
|
|
2134
|
+
} = c, s = m(c, [
|
|
1991
2135
|
"layout",
|
|
1992
2136
|
"cols",
|
|
1993
2137
|
"className",
|
|
1994
2138
|
"children"
|
|
1995
2139
|
]);
|
|
1996
|
-
const
|
|
2140
|
+
const d = e === "grid";
|
|
1997
2141
|
return /* @__PURE__ */ l(
|
|
1998
2142
|
"div",
|
|
1999
|
-
|
|
2143
|
+
y(f({
|
|
2000
2144
|
className: n(
|
|
2001
2145
|
"bg-line-default border border-line-default overflow-hidden gap-px",
|
|
2002
|
-
|
|
2003
|
-
|
|
2146
|
+
k("lg"),
|
|
2147
|
+
d ? `grid grid-cols-2 ${na[t]}` : "flex",
|
|
2004
2148
|
r
|
|
2005
2149
|
)
|
|
2006
2150
|
}, s), {
|
|
@@ -2008,19 +2152,19 @@ function Ea(o) {
|
|
|
2008
2152
|
})
|
|
2009
2153
|
);
|
|
2010
2154
|
}
|
|
2011
|
-
function
|
|
2155
|
+
function Fa(s) {
|
|
2012
2156
|
var o = s, { column: e, row: t, className: r = "" } = o, a = m(o, ["column", "row", "className"]);
|
|
2013
|
-
const
|
|
2157
|
+
const c = e.key in t ? t[e.key] : void 0;
|
|
2014
2158
|
return /* @__PURE__ */ l(
|
|
2015
2159
|
"td",
|
|
2016
|
-
|
|
2160
|
+
y(f({
|
|
2017
2161
|
className: `${i("lg", "px")} ${i("base", "py")} whitespace-nowrap text-sm text-fg-primary ${e.hiddenOnMobile ? "hidden md:table-cell" : ""} ${r}`
|
|
2018
2162
|
}, a), {
|
|
2019
|
-
children: e.render ? e.render(
|
|
2163
|
+
children: e.render ? e.render(c, t) : String(c != null ? c : "")
|
|
2020
2164
|
})
|
|
2021
2165
|
);
|
|
2022
2166
|
}
|
|
2023
|
-
const
|
|
2167
|
+
const ia = V(n("flex items-center", "border-b"), {
|
|
2024
2168
|
variants: {
|
|
2025
2169
|
variant: {
|
|
2026
2170
|
default: n("border-line-default", i("base", "gap-x")),
|
|
@@ -2030,7 +2174,7 @@ const ta = A(n("flex items-center", "border-b"), {
|
|
|
2030
2174
|
defaultVariants: {
|
|
2031
2175
|
variant: "default"
|
|
2032
2176
|
}
|
|
2033
|
-
}),
|
|
2177
|
+
}), la = V(
|
|
2034
2178
|
n(
|
|
2035
2179
|
"relative -mb-px inline-flex items-center",
|
|
2036
2180
|
i("xs", "gap-x"),
|
|
@@ -2040,7 +2184,7 @@ const ta = A(n("flex items-center", "border-b"), {
|
|
|
2040
2184
|
"focus-visible:ring-2",
|
|
2041
2185
|
"focus-visible:ring-line-focus",
|
|
2042
2186
|
"focus-visible:ring-offset-2",
|
|
2043
|
-
|
|
2187
|
+
k("sm")
|
|
2044
2188
|
),
|
|
2045
2189
|
{
|
|
2046
2190
|
variants: {
|
|
@@ -2048,12 +2192,12 @@ const ta = A(n("flex items-center", "border-b"), {
|
|
|
2048
2192
|
default: n(
|
|
2049
2193
|
i("sm", "px"),
|
|
2050
2194
|
i("sm", "py"),
|
|
2051
|
-
|
|
2195
|
+
C("body")
|
|
2052
2196
|
),
|
|
2053
2197
|
sub: n(
|
|
2054
2198
|
i("sm", "px"),
|
|
2055
2199
|
i("xs", "py"),
|
|
2056
|
-
|
|
2200
|
+
C("bodySmall")
|
|
2057
2201
|
)
|
|
2058
2202
|
},
|
|
2059
2203
|
active: {
|
|
@@ -2078,21 +2222,21 @@ const ta = A(n("flex items-center", "border-b"), {
|
|
|
2078
2222
|
active: !1
|
|
2079
2223
|
}
|
|
2080
2224
|
}
|
|
2081
|
-
),
|
|
2225
|
+
), oa = n(
|
|
2082
2226
|
"inline-flex items-center justify-center",
|
|
2083
|
-
|
|
2227
|
+
k("full"),
|
|
2084
2228
|
i("xs", "px"),
|
|
2085
2229
|
"bg-surface-muted text-fg-secondary text-xs"
|
|
2086
|
-
),
|
|
2087
|
-
function(
|
|
2088
|
-
var
|
|
2230
|
+
), ca = j(
|
|
2231
|
+
function(b, p) {
|
|
2232
|
+
var g = b, {
|
|
2089
2233
|
items: t,
|
|
2090
2234
|
variant: r = "default",
|
|
2091
2235
|
linkComponent: a,
|
|
2092
2236
|
className: s,
|
|
2093
2237
|
"aria-label": o,
|
|
2094
|
-
"aria-labelledby":
|
|
2095
|
-
} =
|
|
2238
|
+
"aria-labelledby": c
|
|
2239
|
+
} = g, d = m(g, [
|
|
2096
2240
|
"items",
|
|
2097
2241
|
"variant",
|
|
2098
2242
|
"linkComponent",
|
|
@@ -2100,29 +2244,29 @@ const ta = A(n("flex items-center", "border-b"), {
|
|
|
2100
2244
|
"aria-label",
|
|
2101
2245
|
"aria-labelledby"
|
|
2102
2246
|
]);
|
|
2103
|
-
typeof process != "undefined" && process.env.NODE_ENV !== "production" && !o && !
|
|
2247
|
+
typeof process != "undefined" && process.env.NODE_ENV !== "production" && !o && !c && console.warn(
|
|
2104
2248
|
'[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.'
|
|
2105
2249
|
);
|
|
2106
|
-
const
|
|
2250
|
+
const x = a != null ? a : "a";
|
|
2107
2251
|
return /* @__PURE__ */ l(
|
|
2108
2252
|
"nav",
|
|
2109
|
-
|
|
2253
|
+
y(f({
|
|
2110
2254
|
ref: p,
|
|
2111
|
-
className: n(
|
|
2255
|
+
className: n(ia({ variant: r }), s),
|
|
2112
2256
|
"aria-label": o,
|
|
2113
|
-
"aria-labelledby":
|
|
2114
|
-
},
|
|
2257
|
+
"aria-labelledby": c
|
|
2258
|
+
}, d), {
|
|
2115
2259
|
children: t.map((u, h) => /* @__PURE__ */ v(
|
|
2116
|
-
|
|
2260
|
+
x,
|
|
2117
2261
|
{
|
|
2118
2262
|
href: u.href,
|
|
2119
2263
|
"aria-current": u.active ? "page" : void 0,
|
|
2120
2264
|
"data-active": u.active ? "true" : void 0,
|
|
2121
|
-
className:
|
|
2265
|
+
className: la({ variant: r, active: !!u.active }),
|
|
2122
2266
|
children: [
|
|
2123
2267
|
u.icon ? /* @__PURE__ */ l("span", { "aria-hidden": "true", className: "inline-flex shrink-0", children: u.icon }) : null,
|
|
2124
2268
|
/* @__PURE__ */ l("span", { children: u.label }),
|
|
2125
|
-
u.count !== void 0 ? /* @__PURE__ */ l("span", { className:
|
|
2269
|
+
u.count !== void 0 ? /* @__PURE__ */ l("span", { className: oa, children: u.count }) : null
|
|
2126
2270
|
]
|
|
2127
2271
|
},
|
|
2128
2272
|
u.href || h
|
|
@@ -2131,32 +2275,32 @@ const ta = A(n("flex items-center", "border-b"), {
|
|
|
2131
2275
|
);
|
|
2132
2276
|
}
|
|
2133
2277
|
);
|
|
2134
|
-
|
|
2135
|
-
function
|
|
2278
|
+
ca.displayName = "TabsAsLinks";
|
|
2279
|
+
function Ra({
|
|
2136
2280
|
items: e,
|
|
2137
2281
|
orientation: t = "vertical",
|
|
2138
2282
|
className: r = ""
|
|
2139
2283
|
}) {
|
|
2140
2284
|
return t === "horizontal" ? /* @__PURE__ */ l("div", { className: `flex items-start ${r}`, children: e.map((a, s) => {
|
|
2141
|
-
const o = a.status || (s === 0 ? "active" : s < e.findIndex((
|
|
2285
|
+
const o = a.status || (s === 0 ? "active" : s < e.findIndex((d) => d.status === "active") ? "completed" : "default"), c = s === e.length - 1;
|
|
2142
2286
|
return /* @__PURE__ */ l("div", { className: "flex items-start flex-1", children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center flex-1", children: [
|
|
2143
2287
|
/* @__PURE__ */ l(
|
|
2144
2288
|
"div",
|
|
2145
|
-
|
|
2289
|
+
y(f({}, o === "default" ? { "data-marker": "pending" } : {}), {
|
|
2146
2290
|
className: `
|
|
2147
2291
|
flex
|
|
2148
2292
|
items-center
|
|
2149
2293
|
justify-center
|
|
2150
2294
|
w-10
|
|
2151
2295
|
h-10
|
|
2152
|
-
${
|
|
2296
|
+
${k("full")}
|
|
2153
2297
|
border-2
|
|
2154
2298
|
${o === "completed" ? "bg-success border-success text-fg-inverse" : o === "active" ? "bg-surface-brand-strong border-line-brand text-fg-inverse" : o === "error" ? "bg-error border-error text-fg-inverse" : "bg-surface-base border-line-emphasis text-fg-quaternary"}
|
|
2155
2299
|
`,
|
|
2156
|
-
children: a.icon || (o === "completed" ? /* @__PURE__ */ l(
|
|
2300
|
+
children: a.icon || (o === "completed" ? /* @__PURE__ */ l(G, { className: "h-4 w-4" }) : s + 1)
|
|
2157
2301
|
})
|
|
2158
2302
|
),
|
|
2159
|
-
!
|
|
2303
|
+
!c && /* @__PURE__ */ l(
|
|
2160
2304
|
"div",
|
|
2161
2305
|
{
|
|
2162
2306
|
className: `
|
|
@@ -2193,7 +2337,7 @@ function La({
|
|
|
2193
2337
|
)
|
|
2194
2338
|
] }) }, a.id);
|
|
2195
2339
|
}) }) : /* @__PURE__ */ l("div", { className: `${i("none", "space-y")} ${r}`, children: e.map((a, s) => {
|
|
2196
|
-
const o = a.status || (s === 0 ? "active" : s < e.findIndex((
|
|
2340
|
+
const o = a.status || (s === 0 ? "active" : s < e.findIndex((d) => d.status === "active") ? "completed" : "default"), c = s === e.length - 1;
|
|
2197
2341
|
return /* @__PURE__ */ v(
|
|
2198
2342
|
"div",
|
|
2199
2343
|
{
|
|
@@ -2202,21 +2346,21 @@ function La({
|
|
|
2202
2346
|
/* @__PURE__ */ v("div", { className: "flex flex-col items-center", children: [
|
|
2203
2347
|
/* @__PURE__ */ l(
|
|
2204
2348
|
"div",
|
|
2205
|
-
|
|
2349
|
+
y(f({}, o === "default" ? { "data-marker": "pending" } : {}), {
|
|
2206
2350
|
className: `
|
|
2207
2351
|
flex
|
|
2208
2352
|
items-center
|
|
2209
2353
|
justify-center
|
|
2210
2354
|
w-10
|
|
2211
2355
|
h-10
|
|
2212
|
-
${
|
|
2356
|
+
${k("full")}
|
|
2213
2357
|
border-2
|
|
2214
2358
|
${o === "completed" ? "bg-success border-success text-fg-inverse" : o === "active" ? "bg-surface-brand-strong border-line-brand text-fg-inverse" : o === "error" ? "bg-error border-error text-fg-inverse" : "bg-surface-base border-line-emphasis text-fg-quaternary"}
|
|
2215
2359
|
`,
|
|
2216
|
-
children: a.icon || (o === "completed" ? /* @__PURE__ */ l(
|
|
2360
|
+
children: a.icon || (o === "completed" ? /* @__PURE__ */ l(G, { className: "h-4 w-4" }) : s + 1)
|
|
2217
2361
|
})
|
|
2218
2362
|
),
|
|
2219
|
-
!
|
|
2363
|
+
!c && /* @__PURE__ */ l(
|
|
2220
2364
|
"div",
|
|
2221
2365
|
{
|
|
2222
2366
|
className: `
|
|
@@ -2265,7 +2409,7 @@ function La({
|
|
|
2265
2409
|
}
|
|
2266
2410
|
export {
|
|
2267
2411
|
me as Badge,
|
|
2268
|
-
|
|
2412
|
+
Be as Breadcrumb,
|
|
2269
2413
|
I as Card,
|
|
2270
2414
|
Ge as CardActions,
|
|
2271
2415
|
Ye as CardBody,
|
|
@@ -2273,30 +2417,31 @@ export {
|
|
|
2273
2417
|
qe as CardSubtitle,
|
|
2274
2418
|
Xe as CardTitle,
|
|
2275
2419
|
Te as Chip,
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2420
|
+
We as Container,
|
|
2421
|
+
wa as DialogFooter,
|
|
2422
|
+
va as DialogHeader,
|
|
2423
|
+
Sa as DrawerFooter,
|
|
2424
|
+
Na as DrawerHeader,
|
|
2425
|
+
ba as ErrorMessage,
|
|
2426
|
+
$a as FilterChips,
|
|
2427
|
+
ka as HeaderActions,
|
|
2428
|
+
Ca as HeaderNavigation,
|
|
2429
|
+
aa as HeroSection,
|
|
2430
|
+
ha as Info,
|
|
2286
2431
|
Ve as Label,
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2432
|
+
Ea as MenuSeparator,
|
|
2433
|
+
Ta as NavbarSeparator,
|
|
2434
|
+
La as PageHeader,
|
|
2435
|
+
De as Progress,
|
|
2436
|
+
ze as Separator,
|
|
2437
|
+
ya as Skeleton,
|
|
2438
|
+
He as Spinner,
|
|
2439
|
+
Ue as Stack,
|
|
2440
|
+
Aa as Stat,
|
|
2441
|
+
Va as StatGroup,
|
|
2442
|
+
Fa as TableCell,
|
|
2443
|
+
ca as TabsAsLinks,
|
|
2444
|
+
_ as Text,
|
|
2445
|
+
Ra as Timeline
|
|
2301
2446
|
};
|
|
2302
2447
|
//# sourceMappingURL=index.js.map
|