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