@fabio.caffarello/react-design-system 3.7.0 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/hooks/index.cjs +2 -0
- package/dist/hooks/index.cjs.map +1 -0
- package/dist/hooks/index.js +23 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/index.cjs +32 -58
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1146 -1130
- package/dist/index.js.map +1 -1
- package/dist/react-design-system.css +1 -1
- package/dist/server/index.cjs +25 -25
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +450 -432
- package/dist/server/index.js.map +1 -1
- package/dist/ui/components/Accordion/Accordion.d.ts +9 -1
- package/dist/ui/hooks-entry.d.ts +2 -0
- package/dist/ui/utils/tailwind-safelist.d.ts +3 -1
- package/package.json +17 -13
package/dist/server/index.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
var de = Object.defineProperty, ce = Object.defineProperties;
|
|
2
2
|
var fe = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var K = Object.getOwnPropertySymbols;
|
|
4
4
|
var Q = Object.prototype.hasOwnProperty, J = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var G = (t, a, n) => a in t ? de(t, a, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[a] = n, p = (t, a) => {
|
|
6
6
|
for (var n in a || (a = {}))
|
|
7
7
|
Q.call(a, n) && G(t, n, a[n]);
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
8
|
+
if (K)
|
|
9
|
+
for (var n of K(a))
|
|
10
10
|
J.call(a, n) && G(t, n, a[n]);
|
|
11
11
|
return t;
|
|
12
|
-
},
|
|
12
|
+
}, h = (t, a) => ce(t, fe(a));
|
|
13
13
|
var g = (t, a) => {
|
|
14
14
|
var n = {};
|
|
15
15
|
for (var r in t)
|
|
16
16
|
Q.call(t, r) && a.indexOf(r) < 0 && (n[r] = t[r]);
|
|
17
|
-
if (t != null &&
|
|
18
|
-
for (var r of
|
|
17
|
+
if (t != null && K)
|
|
18
|
+
for (var r of K(t))
|
|
19
19
|
a.indexOf(r) < 0 && J.call(t, r) && (n[r] = t[r]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
22
|
var ee = (t, a, n) => G(t, typeof a != "symbol" ? a + "" : a, n);
|
|
23
|
-
import { jsx as
|
|
24
|
-
import * as
|
|
25
|
-
import
|
|
23
|
+
import { jsx as c, jsxs as S } from "react/jsx-runtime";
|
|
24
|
+
import * as E from "react";
|
|
25
|
+
import le, { memo as P, forwardRef as q } from "react";
|
|
26
26
|
import { clsx as pe } from "clsx";
|
|
27
27
|
import { twMerge as ue } from "tailwind-merge";
|
|
28
28
|
import { cva as me } from "class-variance-authority";
|
|
29
29
|
import { X as be, AlertCircle as ge, Loader2 as xe, CheckCircle2 as ae } from "lucide-react";
|
|
30
|
-
class
|
|
30
|
+
class V {
|
|
31
31
|
/**
|
|
32
32
|
* Create a radius token
|
|
33
33
|
*/
|
|
@@ -83,20 +83,20 @@ class I {
|
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
const
|
|
87
|
-
none:
|
|
88
|
-
sm:
|
|
89
|
-
md:
|
|
90
|
-
lg:
|
|
91
|
-
xl:
|
|
92
|
-
"2xl":
|
|
93
|
-
"3xl":
|
|
94
|
-
full:
|
|
86
|
+
const he = {
|
|
87
|
+
none: V.create("none"),
|
|
88
|
+
sm: V.create("sm"),
|
|
89
|
+
md: V.create("md"),
|
|
90
|
+
lg: V.create("lg"),
|
|
91
|
+
xl: V.create("xl"),
|
|
92
|
+
"2xl": V.create("2xl"),
|
|
93
|
+
"3xl": V.create("3xl"),
|
|
94
|
+
full: V.create("full")
|
|
95
95
|
};
|
|
96
|
-
function
|
|
97
|
-
return
|
|
96
|
+
function M(t) {
|
|
97
|
+
return he[t].tailwind;
|
|
98
98
|
}
|
|
99
|
-
class
|
|
99
|
+
class k {
|
|
100
100
|
// 4px base
|
|
101
101
|
/**
|
|
102
102
|
* Create a spacing token from scale value
|
|
@@ -163,46 +163,46 @@ class N {
|
|
|
163
163
|
}[a] || String(a);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
ee(
|
|
167
|
-
const
|
|
166
|
+
ee(k, "BASE_UNIT", 4);
|
|
167
|
+
const ye = {
|
|
168
168
|
// Micro spacing (0-14px)
|
|
169
|
-
none:
|
|
170
|
-
"0.5":
|
|
169
|
+
none: k.create(0),
|
|
170
|
+
"0.5": k.create(0.5),
|
|
171
171
|
// 2px (half-step)
|
|
172
|
-
xs:
|
|
172
|
+
xs: k.create(1),
|
|
173
173
|
// 4px
|
|
174
|
-
"1.5":
|
|
174
|
+
"1.5": k.create(1.5),
|
|
175
175
|
// 6px (half-step)
|
|
176
|
-
sm:
|
|
176
|
+
sm: k.create(2),
|
|
177
177
|
// 8px
|
|
178
|
-
"2.5":
|
|
178
|
+
"2.5": k.create(2.5),
|
|
179
179
|
// 10px (half-step)
|
|
180
|
-
md:
|
|
180
|
+
md: k.create(3),
|
|
181
181
|
// 12px
|
|
182
|
-
"3.5":
|
|
182
|
+
"3.5": k.create(3.5),
|
|
183
183
|
// 14px (half-step)
|
|
184
184
|
// Standard spacing (16-32px)
|
|
185
|
-
base:
|
|
185
|
+
base: k.create(4),
|
|
186
186
|
// 16px
|
|
187
|
-
lg:
|
|
187
|
+
lg: k.create(6),
|
|
188
188
|
// 24px
|
|
189
|
-
xl:
|
|
189
|
+
xl: k.create(8),
|
|
190
190
|
// 32px
|
|
191
191
|
// Large spacing (40-64px)
|
|
192
|
-
"2xl":
|
|
192
|
+
"2xl": k.create(10),
|
|
193
193
|
// 40px
|
|
194
|
-
"3xl":
|
|
194
|
+
"3xl": k.create(12),
|
|
195
195
|
// 48px
|
|
196
|
-
"4xl":
|
|
196
|
+
"4xl": k.create(16),
|
|
197
197
|
// 64px
|
|
198
198
|
// Extra large spacing (80px+)
|
|
199
|
-
"5xl":
|
|
199
|
+
"5xl": k.create(20),
|
|
200
200
|
// 80px
|
|
201
|
-
"6xl":
|
|
201
|
+
"6xl": k.create(24)
|
|
202
202
|
// 96px
|
|
203
203
|
};
|
|
204
204
|
function d(t, a = "p") {
|
|
205
|
-
const r =
|
|
205
|
+
const r = ye[t].tailwind;
|
|
206
206
|
return `${{
|
|
207
207
|
p: "p",
|
|
208
208
|
m: "m",
|
|
@@ -225,7 +225,7 @@ function d(t, a = "p") {
|
|
|
225
225
|
"space-y": "space-y"
|
|
226
226
|
}[a]}-${r}`;
|
|
227
227
|
}
|
|
228
|
-
class
|
|
228
|
+
class $ {
|
|
229
229
|
/**
|
|
230
230
|
* Create font size token
|
|
231
231
|
*/
|
|
@@ -295,51 +295,51 @@ class k {
|
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
|
-
|
|
298
|
+
$.createFontWeight("light"), $.createFontWeight("normal"), $.createFontWeight("medium"), $.createFontWeight("semibold"), $.createFontWeight("bold");
|
|
299
299
|
const Z = {
|
|
300
300
|
// Headings
|
|
301
|
-
h1:
|
|
302
|
-
h2:
|
|
303
|
-
h3:
|
|
304
|
-
h4:
|
|
305
|
-
h5:
|
|
306
|
-
h6:
|
|
301
|
+
h1: $.create("4xl", "tight", "bold"),
|
|
302
|
+
h2: $.create("3xl", "tight", "bold"),
|
|
303
|
+
h3: $.create("2xl", "snug", "semibold"),
|
|
304
|
+
h4: $.create("xl", "snug", "semibold"),
|
|
305
|
+
h5: $.create("lg", "normal", "medium"),
|
|
306
|
+
h6: $.create("base", "normal", "medium"),
|
|
307
307
|
// Body text
|
|
308
|
-
body:
|
|
309
|
-
bodySmall:
|
|
310
|
-
bodyLarge:
|
|
308
|
+
body: $.create("base", "relaxed", "normal"),
|
|
309
|
+
bodySmall: $.create("sm", "relaxed", "normal"),
|
|
310
|
+
bodyLarge: $.create("lg", "relaxed", "normal"),
|
|
311
311
|
// UI elements
|
|
312
|
-
label:
|
|
313
|
-
caption:
|
|
314
|
-
button:
|
|
312
|
+
label: $.create("sm", "normal", "medium"),
|
|
313
|
+
caption: $.create("xs", "normal", "normal"),
|
|
314
|
+
button: $.create("base", "normal", "medium")
|
|
315
315
|
};
|
|
316
|
-
function
|
|
316
|
+
function R(t) {
|
|
317
317
|
const a = Z[t];
|
|
318
318
|
return `${a.fontSize.tailwind} ${a.lineHeight.tailwind} ${a.fontWeight.tailwind}`;
|
|
319
319
|
}
|
|
320
320
|
function z(t) {
|
|
321
321
|
return Z[t].fontSize.tailwind;
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function O(t) {
|
|
324
324
|
return Z[t].fontWeight.tailwind;
|
|
325
325
|
}
|
|
326
326
|
function l(...t) {
|
|
327
327
|
return ue(pe(t));
|
|
328
328
|
}
|
|
329
|
-
const
|
|
329
|
+
const _ = (t, a) => {
|
|
330
330
|
const n = me(t, a);
|
|
331
331
|
return ((r) => {
|
|
332
332
|
const s = n(r);
|
|
333
333
|
return l(s);
|
|
334
334
|
});
|
|
335
|
-
}, ve =
|
|
335
|
+
}, ve = _(
|
|
336
336
|
// Base classes
|
|
337
337
|
l(
|
|
338
338
|
"inline-flex",
|
|
339
339
|
"items-center",
|
|
340
340
|
"justify-center",
|
|
341
|
-
|
|
342
|
-
|
|
341
|
+
O("label"),
|
|
342
|
+
M("md"),
|
|
343
343
|
"border"
|
|
344
344
|
),
|
|
345
345
|
{
|
|
@@ -470,15 +470,15 @@ const j = (t, a) => {
|
|
|
470
470
|
style: "solid"
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
), we =
|
|
474
|
-
|
|
473
|
+
), we = P(
|
|
474
|
+
q(function(b, u) {
|
|
475
475
|
var m = b, {
|
|
476
476
|
variant: a = "neutral",
|
|
477
477
|
size: n = "md",
|
|
478
478
|
style: r = "solid",
|
|
479
479
|
className: s = "",
|
|
480
480
|
children: i,
|
|
481
|
-
"aria-label":
|
|
481
|
+
"aria-label": o
|
|
482
482
|
} = m, f = g(m, [
|
|
483
483
|
"variant",
|
|
484
484
|
"size",
|
|
@@ -487,23 +487,23 @@ const j = (t, a) => {
|
|
|
487
487
|
"children",
|
|
488
488
|
"aria-label"
|
|
489
489
|
]);
|
|
490
|
-
const
|
|
490
|
+
const y = l(ve({ variant: a, size: n, style: r }), s);
|
|
491
491
|
let x;
|
|
492
|
-
if (
|
|
493
|
-
x =
|
|
492
|
+
if (o)
|
|
493
|
+
x = o;
|
|
494
494
|
else if (typeof i == "string")
|
|
495
495
|
x = i;
|
|
496
496
|
else if (typeof i == "object" && i !== null && "props" in i) {
|
|
497
497
|
const v = i.props;
|
|
498
498
|
v != null && v.children && typeof v.children == "string" && (x = v.children);
|
|
499
499
|
}
|
|
500
|
-
return /* @__PURE__ */
|
|
500
|
+
return /* @__PURE__ */ c(
|
|
501
501
|
"span",
|
|
502
|
-
|
|
502
|
+
h(p({
|
|
503
503
|
ref: u,
|
|
504
504
|
role: "status",
|
|
505
505
|
"aria-label": x,
|
|
506
|
-
className:
|
|
506
|
+
className: y
|
|
507
507
|
}, f), {
|
|
508
508
|
children: i
|
|
509
509
|
})
|
|
@@ -532,45 +532,52 @@ function Ne(...t) {
|
|
|
532
532
|
};
|
|
533
533
|
};
|
|
534
534
|
}
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
return typeof t == "object" && t !== null && "then" in t;
|
|
538
|
-
}
|
|
539
|
-
function le(t) {
|
|
540
|
-
return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === ke && "_payload" in t && $e(t._payload);
|
|
535
|
+
function ke(...t) {
|
|
536
|
+
return E.useCallback(Ne(...t), t);
|
|
541
537
|
}
|
|
542
538
|
// @__NO_SIDE_EFFECTS__
|
|
543
|
-
function
|
|
544
|
-
const a =
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
const
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
539
|
+
function $e(t) {
|
|
540
|
+
const a = E.forwardRef((n, r) => {
|
|
541
|
+
var v;
|
|
542
|
+
let x = n, { children: s } = x, i = g(x, ["children"]), o = null, f = !1;
|
|
543
|
+
const u = [];
|
|
544
|
+
re(s) && typeof X == "function" && (s = X(s._payload)), E.Children.forEach(s, (N) => {
|
|
545
|
+
var T;
|
|
546
|
+
if (ze(N)) {
|
|
547
|
+
f = !0;
|
|
548
|
+
const D = N;
|
|
549
|
+
let L = "child" in D.props ? D.props.child : D.props.children;
|
|
550
|
+
re(L) && typeof X == "function" && (L = X(L._payload)), o = Ce(D, L), u.push((T = o == null ? void 0 : o.props) == null ? void 0 : T.children);
|
|
551
|
+
} else
|
|
552
|
+
u.push(N);
|
|
553
|
+
}), o ? o = E.cloneElement(o, void 0, u) : (
|
|
554
|
+
// A `Slottable` was found but it didn't resolve to a single element (e.g.
|
|
555
|
+
// it wrapped multiple elements, text, or a render-prop `child` that
|
|
556
|
+
// wasn't an element). Don't fall back to treating the `Slottable` wrapper
|
|
557
|
+
// itself as the slot target — throw a descriptive error below instead.
|
|
558
|
+
!f && E.Children.count(s) === 1 && E.isValidElement(s) && (o = s)
|
|
559
|
+
);
|
|
560
|
+
const b = o ? Ee(o) : void 0, m = ke(r, b);
|
|
561
|
+
if (!o) {
|
|
562
|
+
if (s || s === 0)
|
|
563
|
+
throw new Error(
|
|
564
|
+
f ? Ie(t) : Ae(t)
|
|
565
|
+
);
|
|
566
|
+
return s;
|
|
564
567
|
}
|
|
565
|
-
|
|
568
|
+
const y = Me(i, (v = o.props) != null ? v : {});
|
|
569
|
+
return o.type !== E.Fragment && (y.ref = r ? m : b), E.cloneElement(o, y);
|
|
566
570
|
});
|
|
567
|
-
return a.displayName = `${t}.
|
|
571
|
+
return a.displayName = `${t}.Slot`, a;
|
|
568
572
|
}
|
|
569
|
-
var
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
573
|
+
var Se = /* @__PURE__ */ $e("Slot"), Te = /* @__PURE__ */ Symbol.for("radix.slottable"), Ce = (t, a) => {
|
|
574
|
+
if ("child" in t.props) {
|
|
575
|
+
const n = t.props.child;
|
|
576
|
+
return E.isValidElement(n) ? E.cloneElement(n, void 0, t.props.children(n.props.children)) : null;
|
|
577
|
+
}
|
|
578
|
+
return E.isValidElement(a) ? a : null;
|
|
579
|
+
};
|
|
580
|
+
function Me(t, a) {
|
|
574
581
|
const n = p({}, a);
|
|
575
582
|
for (const r in a) {
|
|
576
583
|
const s = t[r], i = a[r];
|
|
@@ -581,18 +588,29 @@ function Le(t, a) {
|
|
|
581
588
|
}
|
|
582
589
|
return p(p({}, t), n);
|
|
583
590
|
}
|
|
584
|
-
function
|
|
591
|
+
function Ee(t) {
|
|
585
592
|
var r, s;
|
|
586
593
|
let a = (r = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : r.get, n = a && "isReactWarning" in a && a.isReactWarning;
|
|
587
594
|
return n ? t.ref : (a = (s = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : s.get, n = a && "isReactWarning" in a && a.isReactWarning, n ? t.props.ref : t.props.ref || t.ref);
|
|
588
595
|
}
|
|
589
|
-
|
|
596
|
+
function ze(t) {
|
|
597
|
+
return E.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === Te;
|
|
598
|
+
}
|
|
599
|
+
var Fe = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
600
|
+
function re(t) {
|
|
601
|
+
return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === Fe && "_payload" in t && Le(t._payload);
|
|
602
|
+
}
|
|
603
|
+
function Le(t) {
|
|
604
|
+
return typeof t == "object" && t !== null && "then" in t;
|
|
605
|
+
}
|
|
606
|
+
var Ae = (t) => `${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`, Ie = (t) => `${t} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, X = E[" use ".trim().toString()];
|
|
607
|
+
const ne = _(
|
|
590
608
|
// Base classes
|
|
591
609
|
l(
|
|
592
610
|
"inline-flex",
|
|
593
611
|
"items-center",
|
|
594
612
|
"font-medium",
|
|
595
|
-
|
|
613
|
+
M("full"),
|
|
596
614
|
d("xs", "gap")
|
|
597
615
|
),
|
|
598
616
|
{
|
|
@@ -675,17 +693,17 @@ const re = j(
|
|
|
675
693
|
disabled: !1
|
|
676
694
|
}
|
|
677
695
|
}
|
|
678
|
-
),
|
|
696
|
+
), De = q(function(a, n) {
|
|
679
697
|
const {
|
|
680
698
|
children: r,
|
|
681
699
|
variant: s = "default",
|
|
682
700
|
size: i = "md",
|
|
683
|
-
selected:
|
|
701
|
+
selected: o = !1,
|
|
684
702
|
disabled: f = !1,
|
|
685
703
|
className: u = "",
|
|
686
704
|
"aria-label": b,
|
|
687
705
|
tabIndex: m,
|
|
688
|
-
asChild:
|
|
706
|
+
asChild: y = !1
|
|
689
707
|
} = a, v = (() => {
|
|
690
708
|
if (b) return b;
|
|
691
709
|
if (typeof r == "string") return r;
|
|
@@ -695,13 +713,13 @@ const re = j(
|
|
|
695
713
|
return F.children;
|
|
696
714
|
}
|
|
697
715
|
})();
|
|
698
|
-
if (
|
|
699
|
-
return /* @__PURE__ */
|
|
700
|
-
|
|
716
|
+
if (y)
|
|
717
|
+
return /* @__PURE__ */ c(
|
|
718
|
+
Se,
|
|
701
719
|
{
|
|
702
720
|
ref: n,
|
|
703
721
|
className: l(
|
|
704
|
-
|
|
722
|
+
ne({ variant: s, size: i, selected: o, disabled: f }),
|
|
705
723
|
u
|
|
706
724
|
),
|
|
707
725
|
"aria-label": b,
|
|
@@ -710,30 +728,30 @@ const re = j(
|
|
|
710
728
|
children: r
|
|
711
729
|
}
|
|
712
730
|
);
|
|
713
|
-
const { onRemove:
|
|
714
|
-
f || (F.key === "Enter" || F.key === " ") && (F.preventDefault(),
|
|
731
|
+
const { onRemove: N, onClick: T } = a, D = T !== void 0, L = D && !f, H = (F) => {
|
|
732
|
+
f || (F.key === "Enter" || F.key === " ") && (F.preventDefault(), T == null || T());
|
|
715
733
|
};
|
|
716
|
-
return /* @__PURE__ */
|
|
734
|
+
return /* @__PURE__ */ S(
|
|
717
735
|
"div",
|
|
718
736
|
{
|
|
719
737
|
ref: n,
|
|
720
738
|
className: l(
|
|
721
|
-
|
|
722
|
-
|
|
739
|
+
ne({ variant: s, size: i, selected: o, disabled: f }),
|
|
740
|
+
N && d("xs", "pr"),
|
|
723
741
|
u
|
|
724
742
|
),
|
|
725
743
|
"aria-disabled": f,
|
|
726
744
|
children: [
|
|
727
|
-
|
|
745
|
+
D ? /* @__PURE__ */ c(
|
|
728
746
|
"button",
|
|
729
747
|
{
|
|
730
748
|
type: "button",
|
|
731
|
-
onClick: f ? void 0 :
|
|
732
|
-
onKeyDown:
|
|
749
|
+
onClick: f ? void 0 : T,
|
|
750
|
+
onKeyDown: H,
|
|
733
751
|
disabled: f,
|
|
734
|
-
"aria-pressed":
|
|
752
|
+
"aria-pressed": o ? !0 : void 0,
|
|
735
753
|
"aria-label": b || v,
|
|
736
|
-
tabIndex: m !== void 0 ? m :
|
|
754
|
+
tabIndex: m !== void 0 ? m : L ? 0 : void 0,
|
|
737
755
|
className: l(
|
|
738
756
|
"flex-1",
|
|
739
757
|
"bg-transparent",
|
|
@@ -746,22 +764,22 @@ const re = j(
|
|
|
746
764
|
"focus:ring-2",
|
|
747
765
|
"focus:ring-line-focus",
|
|
748
766
|
"focus:ring-offset-2",
|
|
749
|
-
|
|
767
|
+
M("full")
|
|
750
768
|
),
|
|
751
769
|
children: r
|
|
752
770
|
}
|
|
753
|
-
) : /* @__PURE__ */
|
|
754
|
-
|
|
771
|
+
) : /* @__PURE__ */ c("span", { children: r }),
|
|
772
|
+
N && !f && /* @__PURE__ */ c(
|
|
755
773
|
"button",
|
|
756
774
|
{
|
|
757
775
|
type: "button",
|
|
758
776
|
onClick: (F) => {
|
|
759
|
-
F.stopPropagation(),
|
|
777
|
+
F.stopPropagation(), N();
|
|
760
778
|
},
|
|
761
779
|
className: l(
|
|
762
780
|
d("xs", "ml"),
|
|
763
781
|
"hover:bg-tint-hover",
|
|
764
|
-
|
|
782
|
+
M("full"),
|
|
765
783
|
d("xs", "p"),
|
|
766
784
|
"transition-colors",
|
|
767
785
|
"focus:outline-none",
|
|
@@ -770,15 +788,15 @@ const re = j(
|
|
|
770
788
|
"focus:ring-offset-1"
|
|
771
789
|
),
|
|
772
790
|
"aria-label": `Remove ${v || "chip"}`,
|
|
773
|
-
children: /* @__PURE__ */
|
|
791
|
+
children: /* @__PURE__ */ c(be, { className: "h-3 w-3", "aria-hidden": "true" })
|
|
774
792
|
}
|
|
775
793
|
)
|
|
776
794
|
]
|
|
777
795
|
}
|
|
778
796
|
);
|
|
779
797
|
});
|
|
780
|
-
|
|
781
|
-
function
|
|
798
|
+
De.displayName = "Chip";
|
|
799
|
+
function va(s) {
|
|
782
800
|
var i = s, {
|
|
783
801
|
message: t,
|
|
784
802
|
id: a,
|
|
@@ -788,20 +806,20 @@ function xa(s) {
|
|
|
788
806
|
"id",
|
|
789
807
|
"className"
|
|
790
808
|
]);
|
|
791
|
-
const
|
|
809
|
+
const o = [
|
|
792
810
|
d("xs", "mt"),
|
|
793
811
|
z("bodySmall"),
|
|
794
812
|
"text-fg-error",
|
|
795
813
|
"flex",
|
|
796
814
|
"items-center",
|
|
797
815
|
d("xs", "gap")
|
|
798
|
-
], f = l(...
|
|
799
|
-
return /* @__PURE__ */
|
|
800
|
-
/* @__PURE__ */
|
|
801
|
-
/* @__PURE__ */
|
|
816
|
+
], f = l(...o, n);
|
|
817
|
+
return /* @__PURE__ */ S("div", h(p({ role: "alert", id: a, className: f, "aria-live": "polite" }, r), { children: [
|
|
818
|
+
/* @__PURE__ */ c(ge, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }),
|
|
819
|
+
/* @__PURE__ */ c("span", { children: t })
|
|
802
820
|
] }));
|
|
803
821
|
}
|
|
804
|
-
function
|
|
822
|
+
function wa(r) {
|
|
805
823
|
var s = r, {
|
|
806
824
|
variant: t = "info",
|
|
807
825
|
className: a
|
|
@@ -814,7 +832,7 @@ function ya(r) {
|
|
|
814
832
|
error: l("bg-error-bg", "text-error-dark", "border-error"),
|
|
815
833
|
info: l("bg-info-bg", "text-info-dark", "border-info")
|
|
816
834
|
};
|
|
817
|
-
return /* @__PURE__ */
|
|
835
|
+
return /* @__PURE__ */ c(
|
|
818
836
|
"div",
|
|
819
837
|
p({
|
|
820
838
|
role: "alert",
|
|
@@ -822,19 +840,19 @@ function ya(r) {
|
|
|
822
840
|
"border",
|
|
823
841
|
d("base", "px"),
|
|
824
842
|
d("sm", "py"),
|
|
825
|
-
|
|
843
|
+
M("lg"),
|
|
826
844
|
i[t],
|
|
827
845
|
a
|
|
828
846
|
)
|
|
829
847
|
}, n)
|
|
830
848
|
);
|
|
831
849
|
}
|
|
832
|
-
const
|
|
850
|
+
const Ve = l(
|
|
833
851
|
"block",
|
|
834
852
|
z("label"),
|
|
835
|
-
|
|
853
|
+
O("label"),
|
|
836
854
|
"text-fg-primary"
|
|
837
|
-
),
|
|
855
|
+
), We = {
|
|
838
856
|
default: "",
|
|
839
857
|
required: l(
|
|
840
858
|
"after:content-['*']",
|
|
@@ -847,20 +865,20 @@ const Ae = l(
|
|
|
847
865
|
"after:text-fg-tertiary",
|
|
848
866
|
"after:font-normal"
|
|
849
867
|
)
|
|
850
|
-
},
|
|
851
|
-
|
|
852
|
-
var f =
|
|
868
|
+
}, Re = P(
|
|
869
|
+
q(function(o, i) {
|
|
870
|
+
var f = o, { variant: a = "default", className: n = "", children: r } = f, s = g(f, ["variant", "className", "children"]);
|
|
853
871
|
const u = l(
|
|
854
|
-
|
|
855
|
-
|
|
872
|
+
Ve,
|
|
873
|
+
We[a],
|
|
856
874
|
n
|
|
857
875
|
);
|
|
858
|
-
return /* @__PURE__ */
|
|
876
|
+
return /* @__PURE__ */ c("label", h(p({ ref: i, className: u }, s), { children: r }));
|
|
859
877
|
})
|
|
860
878
|
);
|
|
861
|
-
|
|
879
|
+
Re.displayName = "Label";
|
|
862
880
|
function w(t, a, n) {
|
|
863
|
-
const r =
|
|
881
|
+
const r = je(t), s = _e(t);
|
|
864
882
|
return {
|
|
865
883
|
hex: t,
|
|
866
884
|
rgb: r,
|
|
@@ -869,19 +887,19 @@ function w(t, a, n) {
|
|
|
869
887
|
tailwind: `${a}-${n}`
|
|
870
888
|
};
|
|
871
889
|
}
|
|
872
|
-
function
|
|
890
|
+
function je(t) {
|
|
873
891
|
const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
|
|
874
892
|
return a ? `${parseInt(a[1], 16)}, ${parseInt(a[2], 16)}, ${parseInt(a[3], 16)}` : "0, 0, 0";
|
|
875
893
|
}
|
|
876
|
-
function
|
|
894
|
+
function _e(t) {
|
|
877
895
|
const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
|
|
878
896
|
if (!a) return "0, 0%, 0%";
|
|
879
|
-
const n = parseInt(a[1], 16) / 255, r = parseInt(a[2], 16) / 255, s = parseInt(a[3], 16) / 255, i = Math.max(n, r, s),
|
|
897
|
+
const n = parseInt(a[1], 16) / 255, r = parseInt(a[2], 16) / 255, s = parseInt(a[3], 16) / 255, i = Math.max(n, r, s), o = Math.min(n, r, s);
|
|
880
898
|
let f = 0, u = 0;
|
|
881
|
-
const b = (i +
|
|
882
|
-
if (i !==
|
|
883
|
-
const m = i -
|
|
884
|
-
switch (u = b > 0.5 ? m / (2 - i -
|
|
899
|
+
const b = (i + o) / 2;
|
|
900
|
+
if (i !== o) {
|
|
901
|
+
const m = i - o;
|
|
902
|
+
switch (u = b > 0.5 ? m / (2 - i - o) : m / (i + o), i) {
|
|
885
903
|
case n:
|
|
886
904
|
f = ((r - s) / m + (r < s ? 6 : 0)) / 6;
|
|
887
905
|
break;
|
|
@@ -898,7 +916,7 @@ function We(t) {
|
|
|
898
916
|
w("#f0f4f8", "brand-primary", 50), w("#d9e2ec", "brand-primary", 100), w("#bcccdc", "brand-primary", 200), w("#9fb3c8", "brand-primary", 300), w("#7390ad", "brand-primary", 400), w("#486581", "brand-primary", 500), w("#334e68", "brand-primary", 600), w("#243b53", "brand-primary", 700), w("#1a2a3a", "brand-primary", 800), w("#102a43", "brand-primary", 900), w("#061a35", "brand-primary", 950);
|
|
899
917
|
w("#f7f5ff", "brand-secondary", 50), w("#eee9ff", "brand-secondary", 100), w("#e0d6ff", "brand-secondary", 200), w("#cbb8ff", "brand-secondary", 300), w("#aa89fc", "brand-secondary", 400), w("#8e58f2", "brand-secondary", 500), w("#703bc8", "brand-secondary", 600), w("#582aa2", "brand-secondary", 700), w("#44227e", "brand-secondary", 800), w("#32185d", "brand-secondary", 900), w("#180635", "brand-secondary", 950);
|
|
900
918
|
function e(t, a, n) {
|
|
901
|
-
const r =
|
|
919
|
+
const r = He(t), s = Be(t);
|
|
902
920
|
return {
|
|
903
921
|
hex: t,
|
|
904
922
|
rgb: r,
|
|
@@ -907,19 +925,19 @@ function e(t, a, n) {
|
|
|
907
925
|
tailwind: `${a}-${n}`
|
|
908
926
|
};
|
|
909
927
|
}
|
|
910
|
-
function
|
|
928
|
+
function He(t) {
|
|
911
929
|
const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
|
|
912
930
|
return a ? `${parseInt(a[1], 16)}, ${parseInt(a[2], 16)}, ${parseInt(a[3], 16)}` : "0, 0, 0";
|
|
913
931
|
}
|
|
914
|
-
function
|
|
932
|
+
function Be(t) {
|
|
915
933
|
const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
|
|
916
934
|
if (!a) return "0, 0%, 0%";
|
|
917
|
-
const n = parseInt(a[1], 16) / 255, r = parseInt(a[2], 16) / 255, s = parseInt(a[3], 16) / 255, i = Math.max(n, r, s),
|
|
935
|
+
const n = parseInt(a[1], 16) / 255, r = parseInt(a[2], 16) / 255, s = parseInt(a[3], 16) / 255, i = Math.max(n, r, s), o = Math.min(n, r, s);
|
|
918
936
|
let f = 0, u = 0;
|
|
919
|
-
const b = (i +
|
|
920
|
-
if (i !==
|
|
921
|
-
const m = i -
|
|
922
|
-
switch (u = b > 0.5 ? m / (2 - i -
|
|
937
|
+
const b = (i + o) / 2;
|
|
938
|
+
if (i !== o) {
|
|
939
|
+
const m = i - o;
|
|
940
|
+
switch (u = b > 0.5 ? m / (2 - i - o) : m / (i + o), i) {
|
|
923
941
|
case n:
|
|
924
942
|
f = ((r - s) / m + (r < s ? 6 : 0)) / 6;
|
|
925
943
|
break;
|
|
@@ -952,7 +970,7 @@ e("#fdf2f8", "pink", 50), e("#fce7f3", "pink", 100), e("#fbcfe8", "pink", 200),
|
|
|
952
970
|
e("#faf5ff", "purple", 50), e("#f3e8ff", "purple", 100), e("#e9d5ff", "purple", 200), e("#d8b4fe", "purple", 300), e("#c084fc", "purple", 400), e("#a855f7", "purple", 500), e("#9333ea", "purple", 600), e("#7e22ce", "purple", 700), e("#6b21a8", "purple", 800), e("#581c87", "purple", 900), e("#3b0764", "purple", 950);
|
|
953
971
|
e("#f0fdfa", "teal", 50), e("#ccfbf1", "teal", 100), e("#99f6e4", "teal", 200), e("#5eead4", "teal", 300), e("#2dd4bf", "teal", 400), e("#14b8a6", "teal", 500), e("#0d9488", "teal", 600), e("#0f766e", "teal", 700), e("#115e59", "teal", 800), e("#134e4a", "teal", 900), e("#042f2e", "teal", 950);
|
|
954
972
|
e("#f7fee7", "lime", 50), e("#ecfccb", "lime", 100), e("#d9f99d", "lime", 200), e("#bef264", "lime", 300), e("#a3e635", "lime", 400), e("#84cc16", "lime", 500), e("#65a30d", "lime", 600), e("#4d7c0f", "lime", 700), e("#3f6212", "lime", 800), e("#365314", "lime", 900), e("#1a2e05", "lime", 950);
|
|
955
|
-
class
|
|
973
|
+
class j {
|
|
956
974
|
/**
|
|
957
975
|
* Create a shadow token
|
|
958
976
|
*/
|
|
@@ -996,19 +1014,19 @@ class W {
|
|
|
996
1014
|
}[a];
|
|
997
1015
|
}
|
|
998
1016
|
}
|
|
999
|
-
const
|
|
1000
|
-
none:
|
|
1001
|
-
sm:
|
|
1002
|
-
md:
|
|
1003
|
-
lg:
|
|
1004
|
-
xl:
|
|
1005
|
-
"2xl":
|
|
1006
|
-
inner:
|
|
1017
|
+
const Oe = {
|
|
1018
|
+
none: j.create("none"),
|
|
1019
|
+
sm: j.create("sm"),
|
|
1020
|
+
md: j.create("md"),
|
|
1021
|
+
lg: j.create("lg"),
|
|
1022
|
+
xl: j.create("xl"),
|
|
1023
|
+
"2xl": j.create("2xl"),
|
|
1024
|
+
inner: j.create("inner")
|
|
1007
1025
|
};
|
|
1008
1026
|
function Y(t) {
|
|
1009
|
-
return
|
|
1027
|
+
return Oe[t].tailwind;
|
|
1010
1028
|
}
|
|
1011
|
-
class
|
|
1029
|
+
class A {
|
|
1012
1030
|
/**
|
|
1013
1031
|
* Create a border width token
|
|
1014
1032
|
*/
|
|
@@ -1052,8 +1070,8 @@ class E {
|
|
|
1052
1070
|
};
|
|
1053
1071
|
}
|
|
1054
1072
|
}
|
|
1055
|
-
|
|
1056
|
-
class
|
|
1073
|
+
A.create("none"), A.create("thin"), A.create("base"), A.create("medium"), A.create("thick"), A.create("thin", "dashed"), A.create("base", "dashed"), A.create("thin", "dotted"), A.create("base", "dotted");
|
|
1074
|
+
class B {
|
|
1057
1075
|
/**
|
|
1058
1076
|
* Create breakpoint token
|
|
1059
1077
|
*/
|
|
@@ -1074,8 +1092,8 @@ class _ {
|
|
|
1074
1092
|
};
|
|
1075
1093
|
}
|
|
1076
1094
|
}
|
|
1077
|
-
|
|
1078
|
-
class
|
|
1095
|
+
B.create("sm"), B.create("md"), B.create("lg"), B.create("xl"), B.create("2xl");
|
|
1096
|
+
class W {
|
|
1079
1097
|
/**
|
|
1080
1098
|
* Create an animation token
|
|
1081
1099
|
*/
|
|
@@ -1132,7 +1150,7 @@ class D {
|
|
|
1132
1150
|
* Create a transition token
|
|
1133
1151
|
*/
|
|
1134
1152
|
static createTransition(a, n = "base", r = "ease-in-out") {
|
|
1135
|
-
const s = this.create(n, r), i = Array.isArray(a) ? a.join(", ") : a,
|
|
1153
|
+
const s = this.create(n, r), i = Array.isArray(a) ? a.join(", ") : a, o = [
|
|
1136
1154
|
s.duration.tailwind,
|
|
1137
1155
|
s.easing.tailwind
|
|
1138
1156
|
].join(" ");
|
|
@@ -1140,15 +1158,15 @@ class D {
|
|
|
1140
1158
|
property: i,
|
|
1141
1159
|
duration: s.duration.value,
|
|
1142
1160
|
timingFunction: s.easing.value,
|
|
1143
|
-
tailwind:
|
|
1161
|
+
tailwind: o
|
|
1144
1162
|
};
|
|
1145
1163
|
}
|
|
1146
1164
|
}
|
|
1147
|
-
|
|
1165
|
+
W.create("fast"), W.create("base"), W.create("slow"), W.create("slower"), W.createTransition(
|
|
1148
1166
|
["color", "background-color", "border-color"],
|
|
1149
1167
|
"base"
|
|
1150
|
-
),
|
|
1151
|
-
class
|
|
1168
|
+
), W.createTransition("opacity", "fast"), W.createTransition("transform", "base"), W.createTransition("all", "base");
|
|
1169
|
+
class I {
|
|
1152
1170
|
/**
|
|
1153
1171
|
* Create a z-index token
|
|
1154
1172
|
*/
|
|
@@ -1202,8 +1220,8 @@ class A {
|
|
|
1202
1220
|
}[a];
|
|
1203
1221
|
}
|
|
1204
1222
|
}
|
|
1205
|
-
|
|
1206
|
-
class
|
|
1223
|
+
I.create("base"), I.create("dropdown"), I.create("sticky"), I.create("fixed"), I.create("modal-backdrop"), I.create("modal"), I.create("popover"), I.create("tooltip"), I.create("toast");
|
|
1224
|
+
class C {
|
|
1207
1225
|
/**
|
|
1208
1226
|
* Create an opacity token
|
|
1209
1227
|
*/
|
|
@@ -1249,8 +1267,8 @@ class S {
|
|
|
1249
1267
|
};
|
|
1250
1268
|
}
|
|
1251
1269
|
}
|
|
1252
|
-
|
|
1253
|
-
const
|
|
1270
|
+
C.create(0), C.create(5), C.create(10), C.create(20), C.create(25), C.create(30), C.create(40), C.create(50), C.create(60), C.create(70), C.create(75), C.create(80), C.create(90), C.create(95), C.create(100);
|
|
1271
|
+
const Pe = _("w-full", {
|
|
1254
1272
|
variants: {
|
|
1255
1273
|
size: {
|
|
1256
1274
|
sm: "h-1",
|
|
@@ -1270,7 +1288,7 @@ const He = j("w-full", {
|
|
|
1270
1288
|
size: "md",
|
|
1271
1289
|
variant: "primary"
|
|
1272
1290
|
}
|
|
1273
|
-
}),
|
|
1291
|
+
}), se = _("transition-all", {
|
|
1274
1292
|
variants: {
|
|
1275
1293
|
variant: {
|
|
1276
1294
|
primary: "bg-surface-brand",
|
|
@@ -1284,14 +1302,14 @@ const He = j("w-full", {
|
|
|
1284
1302
|
defaultVariants: {
|
|
1285
1303
|
variant: "primary"
|
|
1286
1304
|
}
|
|
1287
|
-
}),
|
|
1288
|
-
var x =
|
|
1305
|
+
}), qe = q(function(y, m) {
|
|
1306
|
+
var x = y, {
|
|
1289
1307
|
value: a,
|
|
1290
1308
|
max: n = 100,
|
|
1291
1309
|
variant: r = "primary",
|
|
1292
1310
|
size: s = "md",
|
|
1293
1311
|
showLabel: i = !1,
|
|
1294
|
-
label:
|
|
1312
|
+
label: o,
|
|
1295
1313
|
"aria-label": f,
|
|
1296
1314
|
className: u = ""
|
|
1297
1315
|
} = x, b = g(x, [
|
|
@@ -1304,9 +1322,9 @@ const He = j("w-full", {
|
|
|
1304
1322
|
"aria-label",
|
|
1305
1323
|
"className"
|
|
1306
1324
|
]);
|
|
1307
|
-
const v = a === void 0,
|
|
1308
|
-
return /* @__PURE__ */
|
|
1309
|
-
i && (
|
|
1325
|
+
const v = a === void 0, N = v ? void 0 : Math.min(Math.max(a / n * 100, 0), 100), T = f || (v ? "Loading in progress" : `Progress: ${N == null ? void 0 : N.toFixed(0)}%`);
|
|
1326
|
+
return /* @__PURE__ */ S("div", h(p({ ref: m, className: l("w-full", u) }, b), { children: [
|
|
1327
|
+
i && (o || !v) && /* @__PURE__ */ S(
|
|
1310
1328
|
"div",
|
|
1311
1329
|
{
|
|
1312
1330
|
className: l(
|
|
@@ -1316,18 +1334,18 @@ const He = j("w-full", {
|
|
|
1316
1334
|
d("xs", "mb")
|
|
1317
1335
|
),
|
|
1318
1336
|
children: [
|
|
1319
|
-
|
|
1337
|
+
o && /* @__PURE__ */ c(
|
|
1320
1338
|
"span",
|
|
1321
1339
|
{
|
|
1322
1340
|
className: l(
|
|
1323
1341
|
z("bodySmall"),
|
|
1324
|
-
|
|
1342
|
+
O("label"),
|
|
1325
1343
|
"text-fg-primary"
|
|
1326
1344
|
),
|
|
1327
|
-
children:
|
|
1345
|
+
children: o
|
|
1328
1346
|
}
|
|
1329
1347
|
),
|
|
1330
|
-
!v &&
|
|
1348
|
+
!v && N !== void 0 && /* @__PURE__ */ S(
|
|
1331
1349
|
"span",
|
|
1332
1350
|
{
|
|
1333
1351
|
className: l(
|
|
@@ -1335,7 +1353,7 @@ const He = j("w-full", {
|
|
|
1335
1353
|
"text-fg-secondary"
|
|
1336
1354
|
),
|
|
1337
1355
|
children: [
|
|
1338
|
-
|
|
1356
|
+
N.toFixed(0),
|
|
1339
1357
|
"%"
|
|
1340
1358
|
]
|
|
1341
1359
|
}
|
|
@@ -1343,23 +1361,23 @@ const He = j("w-full", {
|
|
|
1343
1361
|
]
|
|
1344
1362
|
}
|
|
1345
1363
|
),
|
|
1346
|
-
/* @__PURE__ */
|
|
1364
|
+
/* @__PURE__ */ c(
|
|
1347
1365
|
"div",
|
|
1348
1366
|
{
|
|
1349
1367
|
role: "progressbar",
|
|
1350
1368
|
"aria-valuemin": v ? void 0 : 0,
|
|
1351
1369
|
"aria-valuemax": v ? void 0 : n,
|
|
1352
1370
|
"aria-valuenow": v ? void 0 : a,
|
|
1353
|
-
"aria-label":
|
|
1371
|
+
"aria-label": T,
|
|
1354
1372
|
"aria-busy": v,
|
|
1355
1373
|
className: l(
|
|
1356
1374
|
"relative",
|
|
1357
1375
|
"w-full",
|
|
1358
1376
|
"overflow-hidden",
|
|
1359
|
-
|
|
1360
|
-
|
|
1377
|
+
Pe({ size: s, variant: r }),
|
|
1378
|
+
M("full")
|
|
1361
1379
|
),
|
|
1362
|
-
children: v ? /* @__PURE__ */
|
|
1380
|
+
children: v ? /* @__PURE__ */ c(
|
|
1363
1381
|
"div",
|
|
1364
1382
|
{
|
|
1365
1383
|
className: l(
|
|
@@ -1367,8 +1385,8 @@ const He = j("w-full", {
|
|
|
1367
1385
|
"top-0",
|
|
1368
1386
|
"left-0",
|
|
1369
1387
|
"bottom-0",
|
|
1370
|
-
|
|
1371
|
-
|
|
1388
|
+
se({ variant: r }),
|
|
1389
|
+
M("full"),
|
|
1372
1390
|
"motion-reduce:animate-none"
|
|
1373
1391
|
),
|
|
1374
1392
|
style: {
|
|
@@ -1376,19 +1394,19 @@ const He = j("w-full", {
|
|
|
1376
1394
|
animation: "progress-indeterminate 1.5s ease-in-out infinite"
|
|
1377
1395
|
}
|
|
1378
1396
|
}
|
|
1379
|
-
) : /* @__PURE__ */
|
|
1397
|
+
) : /* @__PURE__ */ c(
|
|
1380
1398
|
"div",
|
|
1381
1399
|
{
|
|
1382
1400
|
className: l(
|
|
1383
1401
|
"h-full",
|
|
1384
|
-
|
|
1385
|
-
|
|
1402
|
+
se({ variant: r }),
|
|
1403
|
+
M("full"),
|
|
1386
1404
|
"transition-all",
|
|
1387
1405
|
"duration-300",
|
|
1388
1406
|
"ease-out"
|
|
1389
1407
|
),
|
|
1390
1408
|
style: {
|
|
1391
|
-
width: `${
|
|
1409
|
+
width: `${N}%`
|
|
1392
1410
|
},
|
|
1393
1411
|
"aria-hidden": "true"
|
|
1394
1412
|
}
|
|
@@ -1397,20 +1415,20 @@ const He = j("w-full", {
|
|
|
1397
1415
|
)
|
|
1398
1416
|
] }));
|
|
1399
1417
|
});
|
|
1400
|
-
|
|
1401
|
-
const
|
|
1418
|
+
qe.displayName = "Progress";
|
|
1419
|
+
const Ue = {
|
|
1402
1420
|
horizontal: "w-full border-t",
|
|
1403
1421
|
vertical: "h-full border-l self-stretch"
|
|
1404
|
-
},
|
|
1422
|
+
}, Ke = {
|
|
1405
1423
|
solid: "border-solid",
|
|
1406
1424
|
dashed: "border-dashed",
|
|
1407
1425
|
dotted: "border-dotted"
|
|
1408
|
-
},
|
|
1409
|
-
var
|
|
1426
|
+
}, Xe = P(function(i) {
|
|
1427
|
+
var o = i, {
|
|
1410
1428
|
orientation: a = "horizontal",
|
|
1411
1429
|
variant: n = "solid",
|
|
1412
1430
|
className: r = ""
|
|
1413
|
-
} =
|
|
1431
|
+
} = o, s = g(o, [
|
|
1414
1432
|
"orientation",
|
|
1415
1433
|
"variant",
|
|
1416
1434
|
"className"
|
|
@@ -1418,18 +1436,18 @@ const Oe = {
|
|
|
1418
1436
|
const f = l(
|
|
1419
1437
|
"border-0",
|
|
1420
1438
|
"border-line-default",
|
|
1421
|
-
|
|
1422
|
-
|
|
1439
|
+
Ue[a],
|
|
1440
|
+
Ke[n],
|
|
1423
1441
|
r
|
|
1424
1442
|
);
|
|
1425
|
-
return a === "vertical" ? /* @__PURE__ */
|
|
1443
|
+
return a === "vertical" ? /* @__PURE__ */ c(
|
|
1426
1444
|
"div",
|
|
1427
1445
|
p({
|
|
1428
1446
|
className: f,
|
|
1429
1447
|
role: "separator",
|
|
1430
1448
|
"aria-orientation": "vertical"
|
|
1431
1449
|
}, s)
|
|
1432
|
-
) : /* @__PURE__ */
|
|
1450
|
+
) : /* @__PURE__ */ c(
|
|
1433
1451
|
"hr",
|
|
1434
1452
|
p({
|
|
1435
1453
|
className: f,
|
|
@@ -1438,8 +1456,8 @@ const Oe = {
|
|
|
1438
1456
|
}, s)
|
|
1439
1457
|
);
|
|
1440
1458
|
});
|
|
1441
|
-
|
|
1442
|
-
function
|
|
1459
|
+
Xe.displayName = "Separator";
|
|
1460
|
+
function Na(f) {
|
|
1443
1461
|
var u = f, {
|
|
1444
1462
|
variant: t = "text",
|
|
1445
1463
|
width: a,
|
|
@@ -1447,7 +1465,7 @@ function ha(f) {
|
|
|
1447
1465
|
lines: r = 1,
|
|
1448
1466
|
className: s = "",
|
|
1449
1467
|
"aria-label": i
|
|
1450
|
-
} = u,
|
|
1468
|
+
} = u, o = g(u, [
|
|
1451
1469
|
"variant",
|
|
1452
1470
|
"width",
|
|
1453
1471
|
"height",
|
|
@@ -1458,45 +1476,45 @@ function ha(f) {
|
|
|
1458
1476
|
const b = [
|
|
1459
1477
|
"motion-safe:animate-pulse",
|
|
1460
1478
|
"bg-surface-muted",
|
|
1461
|
-
|
|
1479
|
+
M("sm")
|
|
1462
1480
|
], m = {
|
|
1463
1481
|
text: "h-4",
|
|
1464
1482
|
card: "h-32",
|
|
1465
1483
|
list: "h-12",
|
|
1466
|
-
circle:
|
|
1467
|
-
},
|
|
1484
|
+
circle: M("full")
|
|
1485
|
+
}, y = l(...b, m[t], s), x = {};
|
|
1468
1486
|
a && (x.width = a), n && (x.height = n);
|
|
1469
1487
|
const v = i || `Loading ${t} content`;
|
|
1470
|
-
return t === "text" && r > 1 ? /* @__PURE__ */
|
|
1488
|
+
return t === "text" && r > 1 ? /* @__PURE__ */ c(
|
|
1471
1489
|
"div",
|
|
1472
|
-
|
|
1490
|
+
h(p({
|
|
1473
1491
|
className: d("sm", "space-y"),
|
|
1474
1492
|
role: "status",
|
|
1475
1493
|
"aria-busy": "true",
|
|
1476
1494
|
"aria-label": v
|
|
1477
|
-
},
|
|
1478
|
-
children: Array.from({ length: r }).map((
|
|
1495
|
+
}, o), {
|
|
1496
|
+
children: Array.from({ length: r }).map((N, T) => /* @__PURE__ */ c(
|
|
1479
1497
|
"div",
|
|
1480
1498
|
{
|
|
1481
|
-
className:
|
|
1482
|
-
style:
|
|
1499
|
+
className: y,
|
|
1500
|
+
style: T === r - 1 ? { width: "75%" } : x,
|
|
1483
1501
|
"aria-hidden": "true"
|
|
1484
1502
|
},
|
|
1485
|
-
|
|
1503
|
+
T
|
|
1486
1504
|
))
|
|
1487
1505
|
})
|
|
1488
|
-
) : /* @__PURE__ */
|
|
1506
|
+
) : /* @__PURE__ */ c(
|
|
1489
1507
|
"div",
|
|
1490
1508
|
p({
|
|
1491
|
-
className:
|
|
1509
|
+
className: y,
|
|
1492
1510
|
style: x,
|
|
1493
1511
|
role: "status",
|
|
1494
1512
|
"aria-busy": "true",
|
|
1495
1513
|
"aria-label": v
|
|
1496
|
-
},
|
|
1514
|
+
}, o)
|
|
1497
1515
|
);
|
|
1498
1516
|
}
|
|
1499
|
-
const
|
|
1517
|
+
const Ge = _("motion-safe:animate-spin", {
|
|
1500
1518
|
variants: {
|
|
1501
1519
|
size: {
|
|
1502
1520
|
sm: "h-4 w-4",
|
|
@@ -1513,8 +1531,8 @@ const Ue = j("motion-safe:animate-spin", {
|
|
|
1513
1531
|
size: "md",
|
|
1514
1532
|
variant: "primary"
|
|
1515
1533
|
}
|
|
1516
|
-
}),
|
|
1517
|
-
var f =
|
|
1534
|
+
}), Ye = P(function(o) {
|
|
1535
|
+
var f = o, {
|
|
1518
1536
|
size: a = "md",
|
|
1519
1537
|
variant: n = "primary",
|
|
1520
1538
|
label: r,
|
|
@@ -1525,23 +1543,23 @@ const Ue = j("motion-safe:animate-spin", {
|
|
|
1525
1543
|
"label",
|
|
1526
1544
|
"className"
|
|
1527
1545
|
]);
|
|
1528
|
-
return /* @__PURE__ */
|
|
1546
|
+
return /* @__PURE__ */ S(
|
|
1529
1547
|
"div",
|
|
1530
|
-
|
|
1548
|
+
h(p({
|
|
1531
1549
|
className: l("inline-flex", "items-center", s),
|
|
1532
1550
|
role: "status",
|
|
1533
1551
|
"aria-label": r || "Loading",
|
|
1534
1552
|
"aria-live": "polite"
|
|
1535
1553
|
}, i), {
|
|
1536
1554
|
children: [
|
|
1537
|
-
/* @__PURE__ */
|
|
1555
|
+
/* @__PURE__ */ c(
|
|
1538
1556
|
xe,
|
|
1539
1557
|
{
|
|
1540
|
-
className: l(
|
|
1558
|
+
className: l(Ge({ size: a, variant: n })),
|
|
1541
1559
|
"aria-hidden": "true"
|
|
1542
1560
|
}
|
|
1543
1561
|
),
|
|
1544
|
-
r && /* @__PURE__ */
|
|
1562
|
+
r && /* @__PURE__ */ c(
|
|
1545
1563
|
"span",
|
|
1546
1564
|
{
|
|
1547
1565
|
className: l(
|
|
@@ -1557,8 +1575,8 @@ const Ue = j("motion-safe:animate-spin", {
|
|
|
1557
1575
|
})
|
|
1558
1576
|
);
|
|
1559
1577
|
});
|
|
1560
|
-
|
|
1561
|
-
const
|
|
1578
|
+
Ye.displayName = "Spinner";
|
|
1579
|
+
const Ze = {
|
|
1562
1580
|
primary: {
|
|
1563
1581
|
// exception: variant color — no semantic equivalent (Principle 3, .claude/rules/colors.md)
|
|
1564
1582
|
light: "text-indigo-400",
|
|
@@ -1610,7 +1628,7 @@ const Xe = {
|
|
|
1610
1628
|
contrast: "text-fg-inverse"
|
|
1611
1629
|
}
|
|
1612
1630
|
};
|
|
1613
|
-
function
|
|
1631
|
+
function Qe(b, u) {
|
|
1614
1632
|
var m = b, {
|
|
1615
1633
|
variant: t = "paragraph",
|
|
1616
1634
|
bold: a,
|
|
@@ -1618,7 +1636,7 @@ function Ge(b, u) {
|
|
|
1618
1636
|
className: r,
|
|
1619
1637
|
as: s,
|
|
1620
1638
|
colorRole: i = "neutral",
|
|
1621
|
-
colorShade:
|
|
1639
|
+
colorShade: o = "dark"
|
|
1622
1640
|
} = m, f = g(m, [
|
|
1623
1641
|
"variant",
|
|
1624
1642
|
"bold",
|
|
@@ -1628,7 +1646,7 @@ function Ge(b, u) {
|
|
|
1628
1646
|
"colorRole",
|
|
1629
1647
|
"colorShade"
|
|
1630
1648
|
]);
|
|
1631
|
-
const
|
|
1649
|
+
const y = [];
|
|
1632
1650
|
let x;
|
|
1633
1651
|
if (s)
|
|
1634
1652
|
x = s;
|
|
@@ -1644,16 +1662,16 @@ function Ge(b, u) {
|
|
|
1644
1662
|
x = "p";
|
|
1645
1663
|
break;
|
|
1646
1664
|
}
|
|
1647
|
-
return t === "heading" ?
|
|
1665
|
+
return t === "heading" ? y.push(R("h2")) : t === "body" || t === "paragraph" ? y.push(R("body")) : t === "bodySmall" ? y.push(R("bodySmall")) : t === "bodyLarge" ? y.push(R("bodyLarge")) : t === "caption" ? y.push(R("caption")) : t === "label" ? y.push(R("label")) : y.push(R("body")), a && y.push("font-bold"), n && y.push("italic"), y.push(Ze[i][o]), /* @__PURE__ */ c(x, p({ ref: u, className: l(...y, r) }, f));
|
|
1648
1666
|
}
|
|
1649
|
-
const
|
|
1667
|
+
const ie = q(Qe), Je = {
|
|
1650
1668
|
sm: "max-w-screen-sm",
|
|
1651
1669
|
md: "max-w-screen-md",
|
|
1652
1670
|
lg: "max-w-screen-lg",
|
|
1653
1671
|
xl: "max-w-screen-xl",
|
|
1654
1672
|
"2xl": "max-w-screen-2xl",
|
|
1655
1673
|
full: "max-w-full"
|
|
1656
|
-
},
|
|
1674
|
+
}, ea = le.forwardRef(
|
|
1657
1675
|
(u, f) => {
|
|
1658
1676
|
var b = u, {
|
|
1659
1677
|
className: t,
|
|
@@ -1662,7 +1680,7 @@ const se = O(Ge), Ye = {
|
|
|
1662
1680
|
paddingY: r = "base",
|
|
1663
1681
|
center: s = !0,
|
|
1664
1682
|
children: i
|
|
1665
|
-
} = b,
|
|
1683
|
+
} = b, o = g(b, [
|
|
1666
1684
|
"className",
|
|
1667
1685
|
"maxWidth",
|
|
1668
1686
|
"paddingX",
|
|
@@ -1670,26 +1688,26 @@ const se = O(Ge), Ye = {
|
|
|
1670
1688
|
"center",
|
|
1671
1689
|
"children"
|
|
1672
1690
|
]);
|
|
1673
|
-
return /* @__PURE__ */
|
|
1691
|
+
return /* @__PURE__ */ c(
|
|
1674
1692
|
"div",
|
|
1675
|
-
|
|
1693
|
+
h(p({
|
|
1676
1694
|
ref: f,
|
|
1677
1695
|
className: l(
|
|
1678
1696
|
"w-full",
|
|
1679
|
-
|
|
1697
|
+
Je[a],
|
|
1680
1698
|
d(n, "px"),
|
|
1681
1699
|
d(r, "py"),
|
|
1682
1700
|
s && "mx-auto",
|
|
1683
1701
|
t
|
|
1684
1702
|
)
|
|
1685
|
-
},
|
|
1703
|
+
}, o), {
|
|
1686
1704
|
children: i
|
|
1687
1705
|
})
|
|
1688
1706
|
);
|
|
1689
1707
|
}
|
|
1690
1708
|
);
|
|
1691
|
-
|
|
1692
|
-
const
|
|
1709
|
+
ea.displayName = "Container";
|
|
1710
|
+
const aa = le.forwardRef(
|
|
1693
1711
|
(u, f) => {
|
|
1694
1712
|
var b = u, {
|
|
1695
1713
|
className: t,
|
|
@@ -1698,7 +1716,7 @@ const Qe = ie.forwardRef(
|
|
|
1698
1716
|
justify: r = "start",
|
|
1699
1717
|
direction: s = "column",
|
|
1700
1718
|
children: i
|
|
1701
|
-
} = b,
|
|
1719
|
+
} = b, o = g(b, [
|
|
1702
1720
|
"className",
|
|
1703
1721
|
"spacing",
|
|
1704
1722
|
"align",
|
|
@@ -1706,7 +1724,7 @@ const Qe = ie.forwardRef(
|
|
|
1706
1724
|
"direction",
|
|
1707
1725
|
"children"
|
|
1708
1726
|
]);
|
|
1709
|
-
const m = s === "column" ? d(a, "gap-y") : d(a, "gap-x"),
|
|
1727
|
+
const m = s === "column" ? d(a, "gap-y") : d(a, "gap-x"), y = {
|
|
1710
1728
|
start: "items-start",
|
|
1711
1729
|
center: "items-center",
|
|
1712
1730
|
end: "items-end",
|
|
@@ -1719,26 +1737,26 @@ const Qe = ie.forwardRef(
|
|
|
1719
1737
|
around: "justify-around",
|
|
1720
1738
|
evenly: "justify-evenly"
|
|
1721
1739
|
};
|
|
1722
|
-
return /* @__PURE__ */
|
|
1740
|
+
return /* @__PURE__ */ c(
|
|
1723
1741
|
"div",
|
|
1724
|
-
|
|
1742
|
+
h(p({
|
|
1725
1743
|
ref: f,
|
|
1726
1744
|
className: l(
|
|
1727
1745
|
"flex",
|
|
1728
1746
|
s === "column" ? "flex-col" : "flex-row",
|
|
1729
1747
|
m,
|
|
1730
|
-
|
|
1748
|
+
y[n],
|
|
1731
1749
|
x[r],
|
|
1732
1750
|
t
|
|
1733
1751
|
)
|
|
1734
|
-
},
|
|
1752
|
+
}, o), {
|
|
1735
1753
|
children: i
|
|
1736
1754
|
})
|
|
1737
1755
|
);
|
|
1738
1756
|
}
|
|
1739
1757
|
);
|
|
1740
|
-
|
|
1741
|
-
function
|
|
1758
|
+
aa.displayName = "Stack";
|
|
1759
|
+
function ta(s) {
|
|
1742
1760
|
var i = s, {
|
|
1743
1761
|
items: t,
|
|
1744
1762
|
separator: a = "/",
|
|
@@ -1748,20 +1766,20 @@ function Je(s) {
|
|
|
1748
1766
|
"separator",
|
|
1749
1767
|
"className"
|
|
1750
1768
|
]);
|
|
1751
|
-
const
|
|
1769
|
+
const o = [
|
|
1752
1770
|
"flex",
|
|
1753
1771
|
"items-center",
|
|
1754
1772
|
d("sm", "space-x"),
|
|
1755
1773
|
z("bodySmall")
|
|
1756
|
-
], f = l(...
|
|
1757
|
-
return /* @__PURE__ */
|
|
1774
|
+
], f = l(...o, n);
|
|
1775
|
+
return /* @__PURE__ */ c("nav", h(p({ "aria-label": "Breadcrumb", className: f }, r), { children: /* @__PURE__ */ c(
|
|
1758
1776
|
"ol",
|
|
1759
1777
|
{
|
|
1760
1778
|
className: l("flex", "items-center", d("sm", "space-x")),
|
|
1761
1779
|
children: t.map((u, b) => {
|
|
1762
1780
|
const m = b === t.length - 1;
|
|
1763
|
-
return /* @__PURE__ */
|
|
1764
|
-
b > 0 && /* @__PURE__ */
|
|
1781
|
+
return /* @__PURE__ */ S("li", { className: "flex items-center", children: [
|
|
1782
|
+
b > 0 && /* @__PURE__ */ c(
|
|
1765
1783
|
"span",
|
|
1766
1784
|
{
|
|
1767
1785
|
className: l(
|
|
@@ -1772,17 +1790,17 @@ function Je(s) {
|
|
|
1772
1790
|
children: a
|
|
1773
1791
|
}
|
|
1774
1792
|
),
|
|
1775
|
-
m ? /* @__PURE__ */
|
|
1793
|
+
m ? /* @__PURE__ */ c(
|
|
1776
1794
|
"span",
|
|
1777
1795
|
{
|
|
1778
1796
|
className: l(
|
|
1779
1797
|
"text-fg-primary",
|
|
1780
|
-
|
|
1798
|
+
O("label")
|
|
1781
1799
|
),
|
|
1782
1800
|
"aria-current": "page",
|
|
1783
1801
|
children: u.label
|
|
1784
1802
|
}
|
|
1785
|
-
) : u.href ? /* @__PURE__ */
|
|
1803
|
+
) : u.href ? /* @__PURE__ */ c(
|
|
1786
1804
|
"a",
|
|
1787
1805
|
{
|
|
1788
1806
|
href: u.href,
|
|
@@ -1794,7 +1812,7 @@ function Je(s) {
|
|
|
1794
1812
|
"border-b-2",
|
|
1795
1813
|
"border-transparent",
|
|
1796
1814
|
z("bodySmall"),
|
|
1797
|
-
|
|
1815
|
+
O("label"),
|
|
1798
1816
|
"transition-colors",
|
|
1799
1817
|
"text-fg-secondary",
|
|
1800
1818
|
"hover:border-line-emphasis",
|
|
@@ -1802,17 +1820,17 @@ function Je(s) {
|
|
|
1802
1820
|
),
|
|
1803
1821
|
children: u.label
|
|
1804
1822
|
}
|
|
1805
|
-
) : /* @__PURE__ */
|
|
1823
|
+
) : /* @__PURE__ */ c("span", { className: "text-fg-secondary", children: u.label })
|
|
1806
1824
|
] }, b);
|
|
1807
1825
|
})
|
|
1808
1826
|
}
|
|
1809
1827
|
) }));
|
|
1810
1828
|
}
|
|
1811
|
-
function
|
|
1829
|
+
function ra(r) {
|
|
1812
1830
|
var s = r, { children: t, className: a } = s, n = g(s, ["children", "className"]);
|
|
1813
|
-
return /* @__PURE__ */
|
|
1831
|
+
return /* @__PURE__ */ c(
|
|
1814
1832
|
"div",
|
|
1815
|
-
|
|
1833
|
+
h(p({
|
|
1816
1834
|
className: l(
|
|
1817
1835
|
"grid items-start",
|
|
1818
1836
|
d("1.5", "gap"),
|
|
@@ -1826,8 +1844,8 @@ function ea(r) {
|
|
|
1826
1844
|
})
|
|
1827
1845
|
);
|
|
1828
1846
|
}
|
|
1829
|
-
function
|
|
1830
|
-
var f =
|
|
1847
|
+
function na(o) {
|
|
1848
|
+
var f = o, {
|
|
1831
1849
|
children: t,
|
|
1832
1850
|
icon: a,
|
|
1833
1851
|
badge: n,
|
|
@@ -1840,9 +1858,9 @@ function aa(c) {
|
|
|
1840
1858
|
"as",
|
|
1841
1859
|
"className"
|
|
1842
1860
|
]);
|
|
1843
|
-
return /* @__PURE__ */
|
|
1861
|
+
return /* @__PURE__ */ S(
|
|
1844
1862
|
r,
|
|
1845
|
-
|
|
1863
|
+
h(p({
|
|
1846
1864
|
className: l(
|
|
1847
1865
|
"text-base font-semibold text-fg-primary",
|
|
1848
1866
|
"flex items-center",
|
|
@@ -1851,14 +1869,14 @@ function aa(c) {
|
|
|
1851
1869
|
)
|
|
1852
1870
|
}, i), {
|
|
1853
1871
|
children: [
|
|
1854
|
-
a ? /* @__PURE__ */
|
|
1855
|
-
/* @__PURE__ */
|
|
1856
|
-
n ? /* @__PURE__ */
|
|
1872
|
+
a ? /* @__PURE__ */ c("span", { className: "shrink-0 inline-flex", children: a }) : null,
|
|
1873
|
+
/* @__PURE__ */ c("span", { children: t }),
|
|
1874
|
+
n ? /* @__PURE__ */ c("span", { className: "inline-flex", children: n }) : null
|
|
1857
1875
|
]
|
|
1858
1876
|
})
|
|
1859
1877
|
);
|
|
1860
1878
|
}
|
|
1861
|
-
function
|
|
1879
|
+
function sa(r) {
|
|
1862
1880
|
var s = r, {
|
|
1863
1881
|
children: t,
|
|
1864
1882
|
className: a
|
|
@@ -1866,9 +1884,9 @@ function ta(r) {
|
|
|
1866
1884
|
"children",
|
|
1867
1885
|
"className"
|
|
1868
1886
|
]);
|
|
1869
|
-
return /* @__PURE__ */
|
|
1887
|
+
return /* @__PURE__ */ c("p", h(p({ className: l("text-sm text-fg-secondary", a) }, n), { children: t }));
|
|
1870
1888
|
}
|
|
1871
|
-
function
|
|
1889
|
+
function ia(r) {
|
|
1872
1890
|
var s = r, {
|
|
1873
1891
|
children: t,
|
|
1874
1892
|
className: a
|
|
@@ -1876,9 +1894,9 @@ function ra(r) {
|
|
|
1876
1894
|
"children",
|
|
1877
1895
|
"className"
|
|
1878
1896
|
]);
|
|
1879
|
-
return /* @__PURE__ */
|
|
1897
|
+
return /* @__PURE__ */ c(
|
|
1880
1898
|
"div",
|
|
1881
|
-
|
|
1899
|
+
h(p({
|
|
1882
1900
|
"data-card-actions": "",
|
|
1883
1901
|
className: l(
|
|
1884
1902
|
"flex items-center self-start",
|
|
@@ -1890,11 +1908,11 @@ function ra(r) {
|
|
|
1890
1908
|
})
|
|
1891
1909
|
);
|
|
1892
1910
|
}
|
|
1893
|
-
function
|
|
1911
|
+
function la(r) {
|
|
1894
1912
|
var s = r, { children: t, className: a } = s, n = g(s, ["children", "className"]);
|
|
1895
|
-
return /* @__PURE__ */
|
|
1913
|
+
return /* @__PURE__ */ c("div", h(p({ className: l(a) }, n), { children: t }));
|
|
1896
1914
|
}
|
|
1897
|
-
function
|
|
1915
|
+
function oa(b) {
|
|
1898
1916
|
var m = b, {
|
|
1899
1917
|
variant: t = "default",
|
|
1900
1918
|
padding: a = "medium",
|
|
@@ -1902,7 +1920,7 @@ function sa(b) {
|
|
|
1902
1920
|
onClick: r,
|
|
1903
1921
|
"aria-label": s,
|
|
1904
1922
|
"aria-labelledby": i,
|
|
1905
|
-
asSection:
|
|
1923
|
+
asSection: o = !1,
|
|
1906
1924
|
children: f
|
|
1907
1925
|
} = m, u = g(m, [
|
|
1908
1926
|
"variant",
|
|
@@ -1914,13 +1932,13 @@ function sa(b) {
|
|
|
1914
1932
|
"asSection",
|
|
1915
1933
|
"children"
|
|
1916
1934
|
]);
|
|
1917
|
-
typeof process != "undefined" && process.env.NODE_ENV !== "production" &&
|
|
1935
|
+
typeof process != "undefined" && process.env.NODE_ENV !== "production" && o && !s && !i && console.warn(
|
|
1918
1936
|
"[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."
|
|
1919
1937
|
);
|
|
1920
|
-
const
|
|
1938
|
+
const y = _(
|
|
1921
1939
|
l(
|
|
1922
1940
|
"bg-surface-base",
|
|
1923
|
-
|
|
1941
|
+
M("lg"),
|
|
1924
1942
|
"border",
|
|
1925
1943
|
"border-line-default",
|
|
1926
1944
|
Y("sm")
|
|
@@ -1948,28 +1966,28 @@ function sa(b) {
|
|
|
1948
1966
|
padding: "medium"
|
|
1949
1967
|
}
|
|
1950
1968
|
}
|
|
1951
|
-
), x = r !== void 0, v = x ? "button" : void 0,
|
|
1952
|
-
className:
|
|
1969
|
+
), x = r !== void 0, v = x ? "button" : void 0, N = x ? 0 : void 0, T = l(y({ variant: t, padding: a }), n), L = p({
|
|
1970
|
+
className: T,
|
|
1953
1971
|
role: v,
|
|
1954
|
-
tabIndex:
|
|
1972
|
+
tabIndex: N,
|
|
1955
1973
|
onClick: r,
|
|
1956
|
-
onKeyDown: x ? (
|
|
1957
|
-
x && (
|
|
1974
|
+
onKeyDown: x ? (H) => {
|
|
1975
|
+
x && (H.key === "Enter" || H.key === " ") && (H.preventDefault(), r == null || r());
|
|
1958
1976
|
} : void 0,
|
|
1959
1977
|
"aria-label": s,
|
|
1960
1978
|
"aria-labelledby": i
|
|
1961
1979
|
}, u);
|
|
1962
|
-
return
|
|
1980
|
+
return o ? /* @__PURE__ */ c("section", h(p({}, L), { children: f })) : /* @__PURE__ */ c("div", h(p({}, L), { children: f }));
|
|
1963
1981
|
}
|
|
1964
|
-
const oe =
|
|
1982
|
+
const oe = P(oa);
|
|
1965
1983
|
oe.displayName = "Card";
|
|
1966
|
-
const
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
function
|
|
1984
|
+
const U = oe;
|
|
1985
|
+
U.Header = ra;
|
|
1986
|
+
U.Title = na;
|
|
1987
|
+
U.Subtitle = sa;
|
|
1988
|
+
U.Actions = ia;
|
|
1989
|
+
U.Body = la;
|
|
1990
|
+
function ka(r) {
|
|
1973
1991
|
var s = r, {
|
|
1974
1992
|
children: t,
|
|
1975
1993
|
className: a = ""
|
|
@@ -1977,16 +1995,16 @@ function va(r) {
|
|
|
1977
1995
|
"children",
|
|
1978
1996
|
"className"
|
|
1979
1997
|
]);
|
|
1980
|
-
return /* @__PURE__ */
|
|
1998
|
+
return /* @__PURE__ */ c(
|
|
1981
1999
|
"div",
|
|
1982
|
-
|
|
2000
|
+
h(p({
|
|
1983
2001
|
className: `flex flex-col ${d("1.5", "space-y")} ${d("lg", "p")} ${d("base", "pb")} ${a}`
|
|
1984
2002
|
}, n), {
|
|
1985
2003
|
children: t
|
|
1986
2004
|
})
|
|
1987
2005
|
);
|
|
1988
2006
|
}
|
|
1989
|
-
function
|
|
2007
|
+
function $a(r) {
|
|
1990
2008
|
var s = r, {
|
|
1991
2009
|
children: t,
|
|
1992
2010
|
className: a = ""
|
|
@@ -1994,16 +2012,16 @@ function wa(r) {
|
|
|
1994
2012
|
"children",
|
|
1995
2013
|
"className"
|
|
1996
2014
|
]);
|
|
1997
|
-
return /* @__PURE__ */
|
|
2015
|
+
return /* @__PURE__ */ c(
|
|
1998
2016
|
"div",
|
|
1999
|
-
|
|
2017
|
+
h(p({
|
|
2000
2018
|
className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${d("sm", "space-x")} ${d("lg", "p")} ${d("base", "pt")} ${a}`
|
|
2001
2019
|
}, n), {
|
|
2002
2020
|
children: t
|
|
2003
2021
|
})
|
|
2004
2022
|
);
|
|
2005
2023
|
}
|
|
2006
|
-
function
|
|
2024
|
+
function Sa(r) {
|
|
2007
2025
|
var s = r, {
|
|
2008
2026
|
children: t,
|
|
2009
2027
|
className: a = ""
|
|
@@ -2011,9 +2029,9 @@ function Na(r) {
|
|
|
2011
2029
|
"children",
|
|
2012
2030
|
"className"
|
|
2013
2031
|
]);
|
|
2014
|
-
return /* @__PURE__ */
|
|
2032
|
+
return /* @__PURE__ */ c(
|
|
2015
2033
|
"div",
|
|
2016
|
-
|
|
2034
|
+
h(p({
|
|
2017
2035
|
className: `
|
|
2018
2036
|
${d("lg", "p")}
|
|
2019
2037
|
border-b
|
|
@@ -2025,7 +2043,7 @@ function Na(r) {
|
|
|
2025
2043
|
})
|
|
2026
2044
|
);
|
|
2027
2045
|
}
|
|
2028
|
-
function
|
|
2046
|
+
function Ta(r) {
|
|
2029
2047
|
var s = r, {
|
|
2030
2048
|
children: t,
|
|
2031
2049
|
className: a = ""
|
|
@@ -2033,9 +2051,9 @@ function ka(r) {
|
|
|
2033
2051
|
"children",
|
|
2034
2052
|
"className"
|
|
2035
2053
|
]);
|
|
2036
|
-
return /* @__PURE__ */
|
|
2054
|
+
return /* @__PURE__ */ c(
|
|
2037
2055
|
"div",
|
|
2038
|
-
|
|
2056
|
+
h(p({
|
|
2039
2057
|
className: `
|
|
2040
2058
|
${d("lg", "p")}
|
|
2041
2059
|
border-t
|
|
@@ -2050,8 +2068,8 @@ function ka(r) {
|
|
|
2050
2068
|
})
|
|
2051
2069
|
);
|
|
2052
2070
|
}
|
|
2053
|
-
function
|
|
2054
|
-
return /* @__PURE__ */
|
|
2071
|
+
function Ca({ children: t, className: a }) {
|
|
2072
|
+
return /* @__PURE__ */ c(
|
|
2055
2073
|
"div",
|
|
2056
2074
|
{
|
|
2057
2075
|
className: l(
|
|
@@ -2063,11 +2081,11 @@ function $a({ children: t, className: a }) {
|
|
|
2063
2081
|
}
|
|
2064
2082
|
);
|
|
2065
2083
|
}
|
|
2066
|
-
function
|
|
2084
|
+
function Ma({
|
|
2067
2085
|
children: t,
|
|
2068
2086
|
className: a
|
|
2069
2087
|
}) {
|
|
2070
|
-
return /* @__PURE__ */
|
|
2088
|
+
return /* @__PURE__ */ c(
|
|
2071
2089
|
"nav",
|
|
2072
2090
|
{
|
|
2073
2091
|
className: l(
|
|
@@ -2082,13 +2100,13 @@ function Sa({
|
|
|
2082
2100
|
}
|
|
2083
2101
|
);
|
|
2084
2102
|
}
|
|
2085
|
-
function
|
|
2103
|
+
function Ea(n) {
|
|
2086
2104
|
var r = n, {
|
|
2087
2105
|
className: t = ""
|
|
2088
2106
|
} = r, a = g(r, [
|
|
2089
2107
|
"className"
|
|
2090
2108
|
]);
|
|
2091
|
-
return /* @__PURE__ */
|
|
2109
|
+
return /* @__PURE__ */ c(
|
|
2092
2110
|
"div",
|
|
2093
2111
|
p({
|
|
2094
2112
|
role: "separator",
|
|
@@ -2101,7 +2119,7 @@ function Ca(n) {
|
|
|
2101
2119
|
}, a)
|
|
2102
2120
|
);
|
|
2103
2121
|
}
|
|
2104
|
-
function
|
|
2122
|
+
function za(r) {
|
|
2105
2123
|
var s = r, {
|
|
2106
2124
|
orientation: t = "horizontal",
|
|
2107
2125
|
className: a = ""
|
|
@@ -2109,14 +2127,14 @@ function Ta(r) {
|
|
|
2109
2127
|
"orientation",
|
|
2110
2128
|
"className"
|
|
2111
2129
|
]);
|
|
2112
|
-
return t === "vertical" ? /* @__PURE__ */
|
|
2130
|
+
return t === "vertical" ? /* @__PURE__ */ c(
|
|
2113
2131
|
"div",
|
|
2114
2132
|
p({
|
|
2115
2133
|
className: l("w-px", "h-6", "bg-line-default", "mx-auto", a),
|
|
2116
2134
|
role: "separator",
|
|
2117
2135
|
"aria-orientation": "vertical"
|
|
2118
2136
|
}, n)
|
|
2119
|
-
) : /* @__PURE__ */
|
|
2137
|
+
) : /* @__PURE__ */ c(
|
|
2120
2138
|
"div",
|
|
2121
2139
|
p({
|
|
2122
2140
|
className: l(
|
|
@@ -2139,7 +2157,7 @@ function Ta(r) {
|
|
|
2139
2157
|
}, n)
|
|
2140
2158
|
);
|
|
2141
2159
|
}
|
|
2142
|
-
const
|
|
2160
|
+
const da = _(
|
|
2143
2161
|
// Base classes
|
|
2144
2162
|
l("w-full", "flex", "flex-col", d("sm", "gap")),
|
|
2145
2163
|
{
|
|
@@ -2154,7 +2172,7 @@ const ia = j(
|
|
|
2154
2172
|
}
|
|
2155
2173
|
}
|
|
2156
2174
|
);
|
|
2157
|
-
function
|
|
2175
|
+
function Fa(f) {
|
|
2158
2176
|
var u = f, {
|
|
2159
2177
|
title: t,
|
|
2160
2178
|
description: a,
|
|
@@ -2162,7 +2180,7 @@ function Ma(f) {
|
|
|
2162
2180
|
actions: r,
|
|
2163
2181
|
variant: s = "default",
|
|
2164
2182
|
className: i
|
|
2165
|
-
} = u,
|
|
2183
|
+
} = u, o = g(u, [
|
|
2166
2184
|
"title",
|
|
2167
2185
|
"description",
|
|
2168
2186
|
"breadcrumb",
|
|
@@ -2170,16 +2188,16 @@ function Ma(f) {
|
|
|
2170
2188
|
"variant",
|
|
2171
2189
|
"className"
|
|
2172
2190
|
]);
|
|
2173
|
-
return /* @__PURE__ */
|
|
2174
|
-
n && n.length > 0 && /* @__PURE__ */
|
|
2175
|
-
/* @__PURE__ */
|
|
2191
|
+
return /* @__PURE__ */ S("div", h(p({ className: l(da({ variant: s }), i) }, o), { children: [
|
|
2192
|
+
n && n.length > 0 && /* @__PURE__ */ c(ta, { items: n }),
|
|
2193
|
+
/* @__PURE__ */ S(
|
|
2176
2194
|
"div",
|
|
2177
2195
|
{
|
|
2178
2196
|
className: `flex items-start justify-between ${d("base", "gap")}`,
|
|
2179
2197
|
children: [
|
|
2180
|
-
/* @__PURE__ */
|
|
2181
|
-
/* @__PURE__ */
|
|
2182
|
-
|
|
2198
|
+
/* @__PURE__ */ S("div", { className: "flex-1 min-w-0", children: [
|
|
2199
|
+
/* @__PURE__ */ c(
|
|
2200
|
+
ie,
|
|
2183
2201
|
{
|
|
2184
2202
|
variant: "heading",
|
|
2185
2203
|
as: "h1",
|
|
@@ -2187,9 +2205,9 @@ function Ma(f) {
|
|
|
2187
2205
|
children: t
|
|
2188
2206
|
}
|
|
2189
2207
|
),
|
|
2190
|
-
a && /* @__PURE__ */
|
|
2208
|
+
a && /* @__PURE__ */ c(ie, { variant: "body", className: "text-fg-secondary", children: a })
|
|
2191
2209
|
] }),
|
|
2192
|
-
r && /* @__PURE__ */
|
|
2210
|
+
r && /* @__PURE__ */ c(
|
|
2193
2211
|
"div",
|
|
2194
2212
|
{
|
|
2195
2213
|
className: `flex items-center ${d("sm", "gap")} flex-shrink-0`,
|
|
@@ -2201,16 +2219,16 @@ function Ma(f) {
|
|
|
2201
2219
|
)
|
|
2202
2220
|
] }));
|
|
2203
2221
|
}
|
|
2204
|
-
const
|
|
2222
|
+
const ca = {
|
|
2205
2223
|
start: "items-start text-left",
|
|
2206
2224
|
center: "items-center text-center"
|
|
2207
|
-
},
|
|
2225
|
+
}, fa = {
|
|
2208
2226
|
neutral: "text-fg-tertiary",
|
|
2209
2227
|
success: "text-fg-success",
|
|
2210
2228
|
warning: "text-fg-warning",
|
|
2211
2229
|
error: "text-fg-error"
|
|
2212
2230
|
};
|
|
2213
|
-
function
|
|
2231
|
+
function La(u) {
|
|
2214
2232
|
var b = u, {
|
|
2215
2233
|
value: t,
|
|
2216
2234
|
label: a,
|
|
@@ -2218,7 +2236,7 @@ function za(u) {
|
|
|
2218
2236
|
icon: r,
|
|
2219
2237
|
align: s = "start",
|
|
2220
2238
|
tone: i = "neutral",
|
|
2221
|
-
className:
|
|
2239
|
+
className: o
|
|
2222
2240
|
} = b, f = g(b, [
|
|
2223
2241
|
"value",
|
|
2224
2242
|
"label",
|
|
@@ -2229,58 +2247,58 @@ function za(u) {
|
|
|
2229
2247
|
"className"
|
|
2230
2248
|
]);
|
|
2231
2249
|
const m = t == null;
|
|
2232
|
-
return /* @__PURE__ */
|
|
2250
|
+
return /* @__PURE__ */ S(
|
|
2233
2251
|
"div",
|
|
2234
|
-
|
|
2252
|
+
h(p({
|
|
2235
2253
|
className: l(
|
|
2236
2254
|
"bg-surface-base flex-1 flex flex-col",
|
|
2237
2255
|
d("base", "p"),
|
|
2238
2256
|
d("xs", "gap-y"),
|
|
2239
|
-
|
|
2240
|
-
|
|
2257
|
+
ca[s],
|
|
2258
|
+
o
|
|
2241
2259
|
)
|
|
2242
2260
|
}, f), {
|
|
2243
2261
|
children: [
|
|
2244
|
-
r ? /* @__PURE__ */
|
|
2245
|
-
m ? /* @__PURE__ */
|
|
2262
|
+
r ? /* @__PURE__ */ c("span", { className: "text-icon-default inline-flex", children: r }) : null,
|
|
2263
|
+
m ? /* @__PURE__ */ c(
|
|
2246
2264
|
"span",
|
|
2247
2265
|
{
|
|
2248
2266
|
"aria-label": "No data",
|
|
2249
2267
|
className: "text-fg-tertiary text-2xl font-semibold leading-tight",
|
|
2250
2268
|
children: "—"
|
|
2251
2269
|
}
|
|
2252
|
-
) : /* @__PURE__ */
|
|
2253
|
-
/* @__PURE__ */
|
|
2254
|
-
n ? /* @__PURE__ */
|
|
2270
|
+
) : /* @__PURE__ */ c("span", { className: "text-fg-primary text-2xl font-semibold leading-tight", children: t }),
|
|
2271
|
+
/* @__PURE__ */ c("span", { className: "text-fg-secondary text-sm", children: a }),
|
|
2272
|
+
n ? /* @__PURE__ */ c("span", { className: l("text-xs", fa[i]), children: n }) : null
|
|
2255
2273
|
]
|
|
2256
2274
|
})
|
|
2257
2275
|
);
|
|
2258
2276
|
}
|
|
2259
|
-
const
|
|
2277
|
+
const pa = {
|
|
2260
2278
|
2: "md:grid-cols-2",
|
|
2261
2279
|
3: "md:grid-cols-3",
|
|
2262
2280
|
4: "md:grid-cols-4"
|
|
2263
2281
|
};
|
|
2264
|
-
function
|
|
2265
|
-
var
|
|
2282
|
+
function Aa(i) {
|
|
2283
|
+
var o = i, {
|
|
2266
2284
|
layout: t = "grid",
|
|
2267
2285
|
cols: a = 4,
|
|
2268
2286
|
className: n,
|
|
2269
2287
|
children: r
|
|
2270
|
-
} =
|
|
2288
|
+
} = o, s = g(o, [
|
|
2271
2289
|
"layout",
|
|
2272
2290
|
"cols",
|
|
2273
2291
|
"className",
|
|
2274
2292
|
"children"
|
|
2275
2293
|
]);
|
|
2276
2294
|
const f = t === "grid";
|
|
2277
|
-
return /* @__PURE__ */
|
|
2295
|
+
return /* @__PURE__ */ c(
|
|
2278
2296
|
"div",
|
|
2279
|
-
|
|
2297
|
+
h(p({
|
|
2280
2298
|
className: l(
|
|
2281
2299
|
"bg-line-default border border-line-default overflow-hidden gap-px",
|
|
2282
|
-
|
|
2283
|
-
f ? `grid grid-cols-2 ${
|
|
2300
|
+
M("lg"),
|
|
2301
|
+
f ? `grid grid-cols-2 ${pa[a]}` : "flex",
|
|
2284
2302
|
n
|
|
2285
2303
|
)
|
|
2286
2304
|
}, s), {
|
|
@@ -2288,43 +2306,43 @@ function La(i) {
|
|
|
2288
2306
|
})
|
|
2289
2307
|
);
|
|
2290
2308
|
}
|
|
2291
|
-
function
|
|
2309
|
+
function Ia(s) {
|
|
2292
2310
|
var i = s, { column: t, row: a, className: n = "" } = i, r = g(i, ["column", "row", "className"]);
|
|
2293
|
-
const
|
|
2294
|
-
return /* @__PURE__ */
|
|
2311
|
+
const o = t.key in a ? a[t.key] : void 0;
|
|
2312
|
+
return /* @__PURE__ */ c(
|
|
2295
2313
|
"td",
|
|
2296
|
-
|
|
2314
|
+
h(p({
|
|
2297
2315
|
className: `${d("lg", "px")} ${d("base", "py")} whitespace-nowrap text-sm text-fg-primary ${t.hiddenOnMobile ? "hidden md:table-cell" : ""} ${n}`
|
|
2298
2316
|
}, r), {
|
|
2299
|
-
children: t.render ? t.render(
|
|
2317
|
+
children: t.render ? t.render(o, a) : String(o != null ? o : "")
|
|
2300
2318
|
})
|
|
2301
2319
|
);
|
|
2302
2320
|
}
|
|
2303
|
-
function
|
|
2321
|
+
function Da({
|
|
2304
2322
|
items: t,
|
|
2305
2323
|
orientation: a = "vertical",
|
|
2306
2324
|
className: n = ""
|
|
2307
2325
|
}) {
|
|
2308
|
-
return a === "horizontal" ? /* @__PURE__ */
|
|
2309
|
-
const i = r.status || (s === 0 ? "active" : s < t.findIndex((f) => f.status === "active") ? "completed" : "default"),
|
|
2310
|
-
return /* @__PURE__ */
|
|
2311
|
-
/* @__PURE__ */
|
|
2326
|
+
return a === "horizontal" ? /* @__PURE__ */ c("div", { className: `flex items-start ${n}`, children: t.map((r, s) => {
|
|
2327
|
+
const i = r.status || (s === 0 ? "active" : s < t.findIndex((f) => f.status === "active") ? "completed" : "default"), o = s === t.length - 1;
|
|
2328
|
+
return /* @__PURE__ */ c("div", { className: "flex items-start flex-1", children: /* @__PURE__ */ S("div", { className: "flex flex-col items-center flex-1", children: [
|
|
2329
|
+
/* @__PURE__ */ c(
|
|
2312
2330
|
"div",
|
|
2313
|
-
|
|
2331
|
+
h(p({}, i === "default" ? { "data-marker": "pending" } : {}), {
|
|
2314
2332
|
className: `
|
|
2315
2333
|
flex
|
|
2316
2334
|
items-center
|
|
2317
2335
|
justify-center
|
|
2318
2336
|
w-10
|
|
2319
2337
|
h-10
|
|
2320
|
-
${
|
|
2338
|
+
${M("full")}
|
|
2321
2339
|
border-2
|
|
2322
2340
|
${i === "completed" ? "bg-success border-success text-fg-inverse" : i === "active" ? "bg-surface-brand-strong border-line-brand text-fg-inverse" : i === "error" ? "bg-error border-error text-fg-inverse" : "bg-surface-base border-line-emphasis text-fg-quaternary"}
|
|
2323
2341
|
`,
|
|
2324
|
-
children: r.icon || (i === "completed" ? /* @__PURE__ */
|
|
2342
|
+
children: r.icon || (i === "completed" ? /* @__PURE__ */ c(ae, { className: "h-4 w-4" }) : s + 1)
|
|
2325
2343
|
})
|
|
2326
2344
|
),
|
|
2327
|
-
!
|
|
2345
|
+
!o && /* @__PURE__ */ c(
|
|
2328
2346
|
"div",
|
|
2329
2347
|
{
|
|
2330
2348
|
className: `
|
|
@@ -2335,56 +2353,56 @@ function Ea({
|
|
|
2335
2353
|
`
|
|
2336
2354
|
}
|
|
2337
2355
|
),
|
|
2338
|
-
/* @__PURE__ */
|
|
2356
|
+
/* @__PURE__ */ S(
|
|
2339
2357
|
"div",
|
|
2340
2358
|
{
|
|
2341
2359
|
className: `${d("base", "mt")} text-center ${d("base", "px")}`,
|
|
2342
2360
|
children: [
|
|
2343
|
-
r.timestamp && /* @__PURE__ */
|
|
2361
|
+
r.timestamp && /* @__PURE__ */ c(
|
|
2344
2362
|
"p",
|
|
2345
2363
|
{
|
|
2346
2364
|
className: `text-xs text-fg-tertiary ${d("xs", "mb")}`,
|
|
2347
2365
|
children: r.timestamp
|
|
2348
2366
|
}
|
|
2349
2367
|
),
|
|
2350
|
-
/* @__PURE__ */
|
|
2351
|
-
r.description && /* @__PURE__ */
|
|
2368
|
+
/* @__PURE__ */ c("h3", { className: "text-sm font-semibold text-fg-primary", children: r.title }),
|
|
2369
|
+
r.description && /* @__PURE__ */ c(
|
|
2352
2370
|
"p",
|
|
2353
2371
|
{
|
|
2354
2372
|
className: `text-xs text-fg-secondary ${d("xs", "mt")}`,
|
|
2355
2373
|
children: r.description
|
|
2356
2374
|
}
|
|
2357
2375
|
),
|
|
2358
|
-
r.content && /* @__PURE__ */
|
|
2376
|
+
r.content && /* @__PURE__ */ c("div", { className: d("sm", "mt"), children: r.content })
|
|
2359
2377
|
]
|
|
2360
2378
|
}
|
|
2361
2379
|
)
|
|
2362
2380
|
] }) }, r.id);
|
|
2363
|
-
}) }) : /* @__PURE__ */
|
|
2364
|
-
const i = r.status || (s === 0 ? "active" : s < t.findIndex((f) => f.status === "active") ? "completed" : "default"),
|
|
2365
|
-
return /* @__PURE__ */
|
|
2381
|
+
}) }) : /* @__PURE__ */ c("div", { className: `${d("none", "space-y")} ${n}`, children: t.map((r, s) => {
|
|
2382
|
+
const i = r.status || (s === 0 ? "active" : s < t.findIndex((f) => f.status === "active") ? "completed" : "default"), o = s === t.length - 1;
|
|
2383
|
+
return /* @__PURE__ */ S(
|
|
2366
2384
|
"div",
|
|
2367
2385
|
{
|
|
2368
2386
|
className: `flex items-start ${d("base", "gap")}`,
|
|
2369
2387
|
children: [
|
|
2370
|
-
/* @__PURE__ */
|
|
2371
|
-
/* @__PURE__ */
|
|
2388
|
+
/* @__PURE__ */ S("div", { className: "flex flex-col items-center", children: [
|
|
2389
|
+
/* @__PURE__ */ c(
|
|
2372
2390
|
"div",
|
|
2373
|
-
|
|
2391
|
+
h(p({}, i === "default" ? { "data-marker": "pending" } : {}), {
|
|
2374
2392
|
className: `
|
|
2375
2393
|
flex
|
|
2376
2394
|
items-center
|
|
2377
2395
|
justify-center
|
|
2378
2396
|
w-10
|
|
2379
2397
|
h-10
|
|
2380
|
-
${
|
|
2398
|
+
${M("full")}
|
|
2381
2399
|
border-2
|
|
2382
2400
|
${i === "completed" ? "bg-success border-success text-fg-inverse" : i === "active" ? "bg-surface-brand-strong border-line-brand text-fg-inverse" : i === "error" ? "bg-error border-error text-fg-inverse" : "bg-surface-base border-line-emphasis text-fg-quaternary"}
|
|
2383
2401
|
`,
|
|
2384
|
-
children: r.icon || (i === "completed" ? /* @__PURE__ */
|
|
2402
|
+
children: r.icon || (i === "completed" ? /* @__PURE__ */ c(ae, { className: "h-4 w-4" }) : s + 1)
|
|
2385
2403
|
})
|
|
2386
2404
|
),
|
|
2387
|
-
!
|
|
2405
|
+
!o && /* @__PURE__ */ c(
|
|
2388
2406
|
"div",
|
|
2389
2407
|
{
|
|
2390
2408
|
className: `
|
|
@@ -2397,15 +2415,15 @@ function Ea({
|
|
|
2397
2415
|
}
|
|
2398
2416
|
)
|
|
2399
2417
|
] }),
|
|
2400
|
-
/* @__PURE__ */
|
|
2401
|
-
r.timestamp && /* @__PURE__ */
|
|
2418
|
+
/* @__PURE__ */ S("div", { className: `flex-1 ${d("xl", "pb")}`, children: [
|
|
2419
|
+
r.timestamp && /* @__PURE__ */ c(
|
|
2402
2420
|
"p",
|
|
2403
2421
|
{
|
|
2404
2422
|
className: `text-xs text-fg-tertiary ${d("xs", "mb")}`,
|
|
2405
2423
|
children: r.timestamp
|
|
2406
2424
|
}
|
|
2407
2425
|
),
|
|
2408
|
-
/* @__PURE__ */
|
|
2426
|
+
/* @__PURE__ */ c(
|
|
2409
2427
|
"h3",
|
|
2410
2428
|
{
|
|
2411
2429
|
className: `
|
|
@@ -2416,14 +2434,14 @@ function Ea({
|
|
|
2416
2434
|
children: r.title
|
|
2417
2435
|
}
|
|
2418
2436
|
),
|
|
2419
|
-
r.description && /* @__PURE__ */
|
|
2437
|
+
r.description && /* @__PURE__ */ c(
|
|
2420
2438
|
"p",
|
|
2421
2439
|
{
|
|
2422
2440
|
className: `text-sm text-fg-secondary ${d("xs", "mt")}`,
|
|
2423
2441
|
children: r.description
|
|
2424
2442
|
}
|
|
2425
2443
|
),
|
|
2426
|
-
r.content && /* @__PURE__ */
|
|
2444
|
+
r.content && /* @__PURE__ */ c("div", { className: d("md", "mt"), children: r.content })
|
|
2427
2445
|
] })
|
|
2428
2446
|
]
|
|
2429
2447
|
},
|
|
@@ -2433,36 +2451,36 @@ function Ea({
|
|
|
2433
2451
|
}
|
|
2434
2452
|
export {
|
|
2435
2453
|
we as Badge,
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2454
|
+
ta as Breadcrumb,
|
|
2455
|
+
U as Card,
|
|
2456
|
+
ia as CardActions,
|
|
2457
|
+
la as CardBody,
|
|
2458
|
+
ra as CardHeader,
|
|
2459
|
+
sa as CardSubtitle,
|
|
2460
|
+
na as CardTitle,
|
|
2461
|
+
De as Chip,
|
|
2462
|
+
ea as Container,
|
|
2463
|
+
$a as DialogFooter,
|
|
2464
|
+
ka as DialogHeader,
|
|
2465
|
+
Ta as DrawerFooter,
|
|
2466
|
+
Sa as DrawerHeader,
|
|
2467
|
+
va as ErrorMessage,
|
|
2468
|
+
Ca as HeaderActions,
|
|
2469
|
+
Ma as HeaderNavigation,
|
|
2470
|
+
wa as Info,
|
|
2471
|
+
Re as Label,
|
|
2472
|
+
Ea as MenuSeparator,
|
|
2473
|
+
za as NavbarSeparator,
|
|
2474
|
+
Fa as PageHeader,
|
|
2475
|
+
qe as Progress,
|
|
2476
|
+
Xe as Separator,
|
|
2477
|
+
Na as Skeleton,
|
|
2478
|
+
Ye as Spinner,
|
|
2479
|
+
aa as Stack,
|
|
2480
|
+
La as Stat,
|
|
2481
|
+
Aa as StatGroup,
|
|
2482
|
+
Ia as TableCell,
|
|
2483
|
+
ie as Text,
|
|
2484
|
+
Da as Timeline
|
|
2467
2485
|
};
|
|
2468
2486
|
//# sourceMappingURL=index.js.map
|