@fabio.caffarello/react-design-system 3.0.0 → 3.2.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/index.cjs +82 -82
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4375 -4293
- package/dist/index.js.map +1 -1
- package/dist/react-design-system.css +1 -1
- package/dist/server/index.cjs +28 -28
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +943 -532
- package/dist/server/index.js.map +1 -1
- package/dist/ui/primitives/Button/Button.d.ts +34 -18
- package/dist/ui/primitives/Chip/Chip.d.ts +39 -3
- package/dist/ui/primitives/Separator/Separator.d.ts +0 -14
- package/dist/ui/server.d.ts +6 -0
- package/package.json +2 -1
package/dist/server/index.js
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
1
|
+
var se = Object.defineProperty, le = Object.defineProperties;
|
|
2
|
+
var oe = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var P = Object.getOwnPropertySymbols;
|
|
4
|
+
var Z = Object.prototype.hasOwnProperty, G = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var K = (r, a, n) => a in r ? se(r, a, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[a] = n, m = (r, a) => {
|
|
6
|
+
for (var n in a || (a = {}))
|
|
7
|
+
Z.call(a, n) && K(r, n, a[n]);
|
|
8
|
+
if (P)
|
|
9
|
+
for (var n of P(a))
|
|
10
|
+
G.call(a, n) && K(r, n, a[n]);
|
|
11
11
|
return r;
|
|
12
|
-
},
|
|
12
|
+
}, v = (r, a) => le(r, oe(a));
|
|
13
13
|
var h = (r, a) => {
|
|
14
|
-
var
|
|
14
|
+
var n = {};
|
|
15
15
|
for (var t in r)
|
|
16
|
-
|
|
17
|
-
if (r != null &&
|
|
18
|
-
for (var t of
|
|
19
|
-
a.indexOf(t) < 0 &&
|
|
20
|
-
return
|
|
16
|
+
Z.call(r, t) && a.indexOf(t) < 0 && (n[t] = r[t]);
|
|
17
|
+
if (r != null && P)
|
|
18
|
+
for (var t of P(r))
|
|
19
|
+
a.indexOf(t) < 0 && G.call(r, t) && (n[t] = r[t]);
|
|
20
|
+
return n;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
import {
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import { clsx as
|
|
27
|
-
import { twMerge as
|
|
28
|
-
import { cva as
|
|
29
|
-
|
|
22
|
+
var Q = (r, a, n) => K(r, typeof a != "symbol" ? a + "" : a, n);
|
|
23
|
+
import { jsx as d, jsxs as C } from "react/jsx-runtime";
|
|
24
|
+
import * as S from "react";
|
|
25
|
+
import re, { memo as H, forwardRef as j } from "react";
|
|
26
|
+
import { clsx as de } from "clsx";
|
|
27
|
+
import { twMerge as ce } from "tailwind-merge";
|
|
28
|
+
import { cva as fe } from "class-variance-authority";
|
|
29
|
+
import { X as pe, AlertCircle as ue, Loader2 as me, CheckCircle2 as J } from "lucide-react";
|
|
30
|
+
class I {
|
|
30
31
|
/**
|
|
31
32
|
* Create a radius token
|
|
32
33
|
*/
|
|
@@ -82,30 +83,30 @@ class A {
|
|
|
82
83
|
};
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
|
-
const
|
|
86
|
-
none:
|
|
87
|
-
sm:
|
|
88
|
-
md:
|
|
89
|
-
lg:
|
|
90
|
-
xl:
|
|
91
|
-
"2xl":
|
|
92
|
-
"3xl":
|
|
93
|
-
full:
|
|
86
|
+
const be = {
|
|
87
|
+
none: I.create("none"),
|
|
88
|
+
sm: I.create("sm"),
|
|
89
|
+
md: I.create("md"),
|
|
90
|
+
lg: I.create("lg"),
|
|
91
|
+
xl: I.create("xl"),
|
|
92
|
+
"2xl": I.create("2xl"),
|
|
93
|
+
"3xl": I.create("3xl"),
|
|
94
|
+
full: I.create("full")
|
|
94
95
|
};
|
|
95
|
-
function
|
|
96
|
-
return
|
|
96
|
+
function M(r) {
|
|
97
|
+
return be[r].tailwind;
|
|
97
98
|
}
|
|
98
|
-
class
|
|
99
|
+
class k {
|
|
99
100
|
// 4px base
|
|
100
101
|
/**
|
|
101
102
|
* Create a spacing token from scale value
|
|
102
103
|
*/
|
|
103
104
|
static create(a) {
|
|
104
|
-
const
|
|
105
|
+
const n = a * this.BASE_UNIT, t = n / 16;
|
|
105
106
|
return {
|
|
106
|
-
value:
|
|
107
|
+
value: n,
|
|
107
108
|
rem: `${t}rem`,
|
|
108
|
-
px: `${
|
|
109
|
+
px: `${n}px`,
|
|
109
110
|
tailwind: this.getTailwindClass(a)
|
|
110
111
|
};
|
|
111
112
|
}
|
|
@@ -162,46 +163,46 @@ class w {
|
|
|
162
163
|
}[a] || String(a);
|
|
163
164
|
}
|
|
164
165
|
}
|
|
165
|
-
|
|
166
|
-
const
|
|
166
|
+
Q(k, "BASE_UNIT", 4);
|
|
167
|
+
const ge = {
|
|
167
168
|
// Micro spacing (0-14px)
|
|
168
|
-
none:
|
|
169
|
-
"0.5":
|
|
169
|
+
none: k.create(0),
|
|
170
|
+
"0.5": k.create(0.5),
|
|
170
171
|
// 2px (half-step)
|
|
171
|
-
xs:
|
|
172
|
+
xs: k.create(1),
|
|
172
173
|
// 4px
|
|
173
|
-
"1.5":
|
|
174
|
+
"1.5": k.create(1.5),
|
|
174
175
|
// 6px (half-step)
|
|
175
|
-
sm:
|
|
176
|
+
sm: k.create(2),
|
|
176
177
|
// 8px
|
|
177
|
-
"2.5":
|
|
178
|
+
"2.5": k.create(2.5),
|
|
178
179
|
// 10px (half-step)
|
|
179
|
-
md:
|
|
180
|
+
md: k.create(3),
|
|
180
181
|
// 12px
|
|
181
|
-
"3.5":
|
|
182
|
+
"3.5": k.create(3.5),
|
|
182
183
|
// 14px (half-step)
|
|
183
184
|
// Standard spacing (16-32px)
|
|
184
|
-
base:
|
|
185
|
+
base: k.create(4),
|
|
185
186
|
// 16px
|
|
186
|
-
lg:
|
|
187
|
+
lg: k.create(6),
|
|
187
188
|
// 24px
|
|
188
|
-
xl:
|
|
189
|
+
xl: k.create(8),
|
|
189
190
|
// 32px
|
|
190
191
|
// Large spacing (40-64px)
|
|
191
|
-
"2xl":
|
|
192
|
+
"2xl": k.create(10),
|
|
192
193
|
// 40px
|
|
193
|
-
"3xl":
|
|
194
|
+
"3xl": k.create(12),
|
|
194
195
|
// 48px
|
|
195
|
-
"4xl":
|
|
196
|
+
"4xl": k.create(16),
|
|
196
197
|
// 64px
|
|
197
198
|
// Extra large spacing (80px+)
|
|
198
|
-
"5xl":
|
|
199
|
+
"5xl": k.create(20),
|
|
199
200
|
// 80px
|
|
200
|
-
"6xl":
|
|
201
|
+
"6xl": k.create(24)
|
|
201
202
|
// 96px
|
|
202
203
|
};
|
|
203
|
-
function
|
|
204
|
-
const t =
|
|
204
|
+
function o(r, a = "p") {
|
|
205
|
+
const t = ge[r].tailwind;
|
|
205
206
|
return `${{
|
|
206
207
|
p: "p",
|
|
207
208
|
m: "m",
|
|
@@ -224,7 +225,7 @@ function l(r, a = "p") {
|
|
|
224
225
|
"space-y": "space-y"
|
|
225
226
|
}[a]}-${t}`;
|
|
226
227
|
}
|
|
227
|
-
class
|
|
228
|
+
class $ {
|
|
228
229
|
/**
|
|
229
230
|
* Create font size token
|
|
230
231
|
*/
|
|
@@ -286,76 +287,330 @@ class v {
|
|
|
286
287
|
/**
|
|
287
288
|
* Create complete typography token
|
|
288
289
|
*/
|
|
289
|
-
static create(a,
|
|
290
|
+
static create(a, n = "normal", t = "normal") {
|
|
290
291
|
return {
|
|
291
292
|
fontSize: this.createFontSize(a),
|
|
292
|
-
lineHeight: this.createLineHeight(
|
|
293
|
+
lineHeight: this.createLineHeight(n),
|
|
293
294
|
fontWeight: this.createFontWeight(t)
|
|
294
295
|
};
|
|
295
296
|
}
|
|
296
297
|
}
|
|
297
|
-
|
|
298
|
-
const
|
|
298
|
+
$.createFontWeight("light"), $.createFontWeight("normal"), $.createFontWeight("medium"), $.createFontWeight("semibold"), $.createFontWeight("bold");
|
|
299
|
+
const Y = {
|
|
299
300
|
// Headings
|
|
300
|
-
h1:
|
|
301
|
-
h2:
|
|
302
|
-
h3:
|
|
303
|
-
h4:
|
|
304
|
-
h5:
|
|
305
|
-
h6:
|
|
301
|
+
h1: $.create("4xl", "tight", "bold"),
|
|
302
|
+
h2: $.create("3xl", "tight", "bold"),
|
|
303
|
+
h3: $.create("2xl", "snug", "semibold"),
|
|
304
|
+
h4: $.create("xl", "snug", "semibold"),
|
|
305
|
+
h5: $.create("lg", "normal", "medium"),
|
|
306
|
+
h6: $.create("base", "normal", "medium"),
|
|
306
307
|
// Body text
|
|
307
|
-
body:
|
|
308
|
-
bodySmall:
|
|
309
|
-
bodyLarge:
|
|
308
|
+
body: $.create("base", "relaxed", "normal"),
|
|
309
|
+
bodySmall: $.create("sm", "relaxed", "normal"),
|
|
310
|
+
bodyLarge: $.create("lg", "relaxed", "normal"),
|
|
310
311
|
// UI elements
|
|
311
|
-
label:
|
|
312
|
-
caption:
|
|
313
|
-
button:
|
|
312
|
+
label: $.create("sm", "normal", "medium"),
|
|
313
|
+
caption: $.create("xs", "normal", "normal"),
|
|
314
|
+
button: $.create("base", "normal", "medium")
|
|
314
315
|
};
|
|
315
|
-
function
|
|
316
|
-
const a =
|
|
316
|
+
function D(r) {
|
|
317
|
+
const a = Y[r];
|
|
317
318
|
return `${a.fontSize.tailwind} ${a.lineHeight.tailwind} ${a.fontWeight.tailwind}`;
|
|
318
319
|
}
|
|
319
|
-
function
|
|
320
|
-
return
|
|
320
|
+
function L(r) {
|
|
321
|
+
return Y[r].fontSize.tailwind;
|
|
321
322
|
}
|
|
322
|
-
function
|
|
323
|
-
return
|
|
323
|
+
function B(r) {
|
|
324
|
+
return Y[r].fontWeight.tailwind;
|
|
324
325
|
}
|
|
325
|
-
function
|
|
326
|
-
return
|
|
326
|
+
function l(...r) {
|
|
327
|
+
return ce(de(r));
|
|
327
328
|
}
|
|
328
|
-
const
|
|
329
|
-
const
|
|
329
|
+
const R = (r, a) => {
|
|
330
|
+
const n = fe(r, a);
|
|
330
331
|
return ((t) => {
|
|
331
|
-
const
|
|
332
|
-
return
|
|
332
|
+
const i = n(t);
|
|
333
|
+
return l(i);
|
|
333
334
|
});
|
|
334
|
-
},
|
|
335
|
+
}, xe = R(
|
|
335
336
|
// Base classes
|
|
336
|
-
|
|
337
|
+
l(
|
|
338
|
+
"inline-flex",
|
|
339
|
+
"items-center",
|
|
340
|
+
"justify-center",
|
|
341
|
+
B("label"),
|
|
342
|
+
M("md"),
|
|
343
|
+
"border"
|
|
344
|
+
),
|
|
345
|
+
{
|
|
346
|
+
variants: {
|
|
347
|
+
variant: {
|
|
348
|
+
success: "",
|
|
349
|
+
warning: "",
|
|
350
|
+
error: "",
|
|
351
|
+
info: "",
|
|
352
|
+
neutral: "",
|
|
353
|
+
primary: "",
|
|
354
|
+
secondary: ""
|
|
355
|
+
},
|
|
356
|
+
size: {
|
|
357
|
+
sm: l(
|
|
358
|
+
o("1.5", "px"),
|
|
359
|
+
o("0.5", "py"),
|
|
360
|
+
L("caption")
|
|
361
|
+
),
|
|
362
|
+
md: l(
|
|
363
|
+
o("sm", "px"),
|
|
364
|
+
o("xs", "py"),
|
|
365
|
+
L("caption")
|
|
366
|
+
),
|
|
367
|
+
lg: l(
|
|
368
|
+
o("sm", "px"),
|
|
369
|
+
o("xs", "py"),
|
|
370
|
+
L("bodySmall")
|
|
371
|
+
)
|
|
372
|
+
},
|
|
373
|
+
style: {
|
|
374
|
+
solid: "",
|
|
375
|
+
outline: ""
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
compoundVariants: [
|
|
379
|
+
// Solid style variants
|
|
380
|
+
{
|
|
381
|
+
variant: "success",
|
|
382
|
+
style: "solid",
|
|
383
|
+
class: l("bg-success-bg", "text-success-dark", "border-success")
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
variant: "warning",
|
|
387
|
+
style: "solid",
|
|
388
|
+
class: l("bg-warning-bg", "text-warning-dark", "border-warning")
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
variant: "error",
|
|
392
|
+
style: "solid",
|
|
393
|
+
class: l("bg-error-bg", "text-error-dark", "border-error")
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
variant: "info",
|
|
397
|
+
style: "solid",
|
|
398
|
+
class: l("bg-info-bg", "text-info-dark", "border-info")
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
variant: "neutral",
|
|
402
|
+
style: "solid",
|
|
403
|
+
class: l("bg-surface-muted", "text-fg-primary", "border-line-default")
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
variant: "primary",
|
|
407
|
+
style: "solid",
|
|
408
|
+
class: l(
|
|
409
|
+
"bg-surface-brand-subtle",
|
|
410
|
+
"text-fg-brand-emphasis",
|
|
411
|
+
"border-line-brand"
|
|
412
|
+
)
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
variant: "secondary",
|
|
416
|
+
style: "solid",
|
|
417
|
+
// bg-pink-300: secondary solid badge — no semantic equivalent
|
|
418
|
+
// (would shift 2 shades to bg-surface-secondary). Kept literal until
|
|
419
|
+
// secondary brand surface palette expands beyond DEFAULT.
|
|
420
|
+
class: l(
|
|
421
|
+
"bg-pink-300",
|
|
422
|
+
"text-fg-brand-secondary-emphasis",
|
|
423
|
+
"border-line-secondary"
|
|
424
|
+
)
|
|
425
|
+
},
|
|
426
|
+
// Outline style variants
|
|
427
|
+
{
|
|
428
|
+
variant: "success",
|
|
429
|
+
style: "outline",
|
|
430
|
+
class: l("bg-transparent", "border-success", "text-fg-success")
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
variant: "warning",
|
|
434
|
+
style: "outline",
|
|
435
|
+
class: l("bg-transparent", "border-warning", "text-fg-warning")
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
variant: "error",
|
|
439
|
+
style: "outline",
|
|
440
|
+
class: l("bg-transparent", "border-error", "text-fg-error")
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
variant: "info",
|
|
444
|
+
style: "outline",
|
|
445
|
+
class: l("bg-transparent", "border-info", "text-fg-info")
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
variant: "neutral",
|
|
449
|
+
style: "outline",
|
|
450
|
+
class: l("bg-transparent", "border-line-default", "text-fg-secondary")
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
variant: "primary",
|
|
454
|
+
style: "outline",
|
|
455
|
+
class: l("bg-transparent", "border-line-brand", "text-fg-brand")
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
variant: "secondary",
|
|
459
|
+
style: "outline",
|
|
460
|
+
class: l(
|
|
461
|
+
"bg-transparent",
|
|
462
|
+
"border-line-secondary",
|
|
463
|
+
"text-fg-brand-secondary"
|
|
464
|
+
)
|
|
465
|
+
}
|
|
466
|
+
],
|
|
467
|
+
defaultVariants: {
|
|
468
|
+
variant: "neutral",
|
|
469
|
+
size: "md",
|
|
470
|
+
style: "solid"
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
), ye = H(
|
|
474
|
+
j(function(b, p) {
|
|
475
|
+
var u = b, {
|
|
476
|
+
variant: a = "neutral",
|
|
477
|
+
size: n = "md",
|
|
478
|
+
style: t = "solid",
|
|
479
|
+
className: i = "",
|
|
480
|
+
children: s,
|
|
481
|
+
"aria-label": c
|
|
482
|
+
} = u, f = h(u, [
|
|
483
|
+
"variant",
|
|
484
|
+
"size",
|
|
485
|
+
"style",
|
|
486
|
+
"className",
|
|
487
|
+
"children",
|
|
488
|
+
"aria-label"
|
|
489
|
+
]);
|
|
490
|
+
const x = l(xe({ variant: a, size: n, style: t }), i);
|
|
491
|
+
let g;
|
|
492
|
+
if (c)
|
|
493
|
+
g = c;
|
|
494
|
+
else if (typeof s == "string")
|
|
495
|
+
g = s;
|
|
496
|
+
else if (typeof s == "object" && s !== null && "props" in s) {
|
|
497
|
+
const y = s.props;
|
|
498
|
+
y != null && y.children && typeof y.children == "string" && (g = y.children);
|
|
499
|
+
}
|
|
500
|
+
return /* @__PURE__ */ d(
|
|
501
|
+
"span",
|
|
502
|
+
v(m({
|
|
503
|
+
ref: p,
|
|
504
|
+
role: "status",
|
|
505
|
+
"aria-label": g,
|
|
506
|
+
className: x
|
|
507
|
+
}, f), {
|
|
508
|
+
children: s
|
|
509
|
+
})
|
|
510
|
+
);
|
|
511
|
+
})
|
|
512
|
+
);
|
|
513
|
+
ye.displayName = "Badge";
|
|
514
|
+
function ee(r, a) {
|
|
515
|
+
if (typeof r == "function")
|
|
516
|
+
return r(a);
|
|
517
|
+
r != null && (r.current = a);
|
|
518
|
+
}
|
|
519
|
+
function he(...r) {
|
|
520
|
+
return (a) => {
|
|
521
|
+
let n = !1;
|
|
522
|
+
const t = r.map((i) => {
|
|
523
|
+
const s = ee(i, a);
|
|
524
|
+
return !n && typeof s == "function" && (n = !0), s;
|
|
525
|
+
});
|
|
526
|
+
if (n)
|
|
527
|
+
return () => {
|
|
528
|
+
for (let i = 0; i < t.length; i++) {
|
|
529
|
+
const s = t[i];
|
|
530
|
+
typeof s == "function" ? s() : ee(r[i], null);
|
|
531
|
+
}
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
var we = /* @__PURE__ */ Symbol.for("react.lazy"), U = S[" use ".trim().toString()];
|
|
536
|
+
function ve(r) {
|
|
537
|
+
return typeof r == "object" && r !== null && "then" in r;
|
|
538
|
+
}
|
|
539
|
+
function ne(r) {
|
|
540
|
+
return r != null && typeof r == "object" && "$$typeof" in r && r.$$typeof === we && "_payload" in r && ve(r._payload);
|
|
541
|
+
}
|
|
542
|
+
// @__NO_SIDE_EFFECTS__
|
|
543
|
+
function ke(r) {
|
|
544
|
+
const a = /* @__PURE__ */ Ne(r), n = S.forwardRef((t, i) => {
|
|
545
|
+
let b = t, { children: s } = b, c = h(b, ["children"]);
|
|
546
|
+
ne(s) && typeof U == "function" && (s = U(s._payload));
|
|
547
|
+
const f = S.Children.toArray(s), p = f.find(Te);
|
|
548
|
+
if (p) {
|
|
549
|
+
const u = p.props.children, x = f.map((g) => g === p ? S.Children.count(u) > 1 ? S.Children.only(null) : S.isValidElement(u) ? u.props.children : null : g);
|
|
550
|
+
return /* @__PURE__ */ d(a, v(m({}, c), { ref: i, children: S.isValidElement(u) ? S.cloneElement(u, void 0, x) : null }));
|
|
551
|
+
}
|
|
552
|
+
return /* @__PURE__ */ d(a, v(m({}, c), { ref: i, children: s }));
|
|
553
|
+
});
|
|
554
|
+
return n.displayName = `${r}.Slot`, n;
|
|
555
|
+
}
|
|
556
|
+
var $e = /* @__PURE__ */ ke("Slot");
|
|
557
|
+
// @__NO_SIDE_EFFECTS__
|
|
558
|
+
function Ne(r) {
|
|
559
|
+
const a = S.forwardRef((n, t) => {
|
|
560
|
+
let c = n, { children: i } = c, s = h(c, ["children"]);
|
|
561
|
+
if (ne(i) && typeof U == "function" && (i = U(i._payload)), S.isValidElement(i)) {
|
|
562
|
+
const f = Me(i), p = Ce(s, i.props);
|
|
563
|
+
return i.type !== S.Fragment && (p.ref = t ? he(t, f) : f), S.cloneElement(i, p);
|
|
564
|
+
}
|
|
565
|
+
return S.Children.count(i) > 1 ? S.Children.only(null) : null;
|
|
566
|
+
});
|
|
567
|
+
return a.displayName = `${r}.SlotClone`, a;
|
|
568
|
+
}
|
|
569
|
+
var Se = /* @__PURE__ */ Symbol("radix.slottable");
|
|
570
|
+
function Te(r) {
|
|
571
|
+
return S.isValidElement(r) && typeof r.type == "function" && "__radixId" in r.type && r.type.__radixId === Se;
|
|
572
|
+
}
|
|
573
|
+
function Ce(r, a) {
|
|
574
|
+
const n = m({}, a);
|
|
575
|
+
for (const t in a) {
|
|
576
|
+
const i = r[t], s = a[t];
|
|
577
|
+
/^on[A-Z]/.test(t) ? i && s ? n[t] = (...f) => {
|
|
578
|
+
const p = s(...f);
|
|
579
|
+
return i(...f), p;
|
|
580
|
+
} : i && (n[t] = i) : t === "style" ? n[t] = m(m({}, i), s) : t === "className" && (n[t] = [i, s].filter(Boolean).join(" "));
|
|
581
|
+
}
|
|
582
|
+
return m(m({}, r), n);
|
|
583
|
+
}
|
|
584
|
+
function Me(r) {
|
|
585
|
+
var t, i;
|
|
586
|
+
let a = (t = Object.getOwnPropertyDescriptor(r.props, "ref")) == null ? void 0 : t.get, n = a && "isReactWarning" in a && a.isReactWarning;
|
|
587
|
+
return n ? r.ref : (a = (i = Object.getOwnPropertyDescriptor(r, "ref")) == null ? void 0 : i.get, n = a && "isReactWarning" in a && a.isReactWarning, n ? r.props.ref : r.props.ref || r.ref);
|
|
588
|
+
}
|
|
589
|
+
const ae = R(
|
|
590
|
+
// Base classes
|
|
591
|
+
l(
|
|
337
592
|
"inline-flex",
|
|
338
593
|
"items-center",
|
|
339
594
|
"font-medium",
|
|
340
|
-
|
|
341
|
-
|
|
595
|
+
M("full"),
|
|
596
|
+
o("xs", "gap")
|
|
342
597
|
),
|
|
343
598
|
{
|
|
344
599
|
variants: {
|
|
345
600
|
variant: {
|
|
346
|
-
default:
|
|
601
|
+
default: l(
|
|
347
602
|
"bg-surface-muted",
|
|
348
603
|
"text-fg-primary",
|
|
349
604
|
"border",
|
|
350
605
|
"border-line-default"
|
|
351
606
|
),
|
|
352
|
-
outlined:
|
|
607
|
+
outlined: l(
|
|
353
608
|
"bg-transparent",
|
|
354
609
|
"text-fg-primary",
|
|
355
610
|
"border",
|
|
356
611
|
"border-line-default"
|
|
357
612
|
),
|
|
358
|
-
filled:
|
|
613
|
+
filled: l(
|
|
359
614
|
"bg-surface-brand-strong",
|
|
360
615
|
"text-fg-inverse",
|
|
361
616
|
"border",
|
|
@@ -363,24 +618,24 @@ const O = (r, a) => {
|
|
|
363
618
|
)
|
|
364
619
|
},
|
|
365
620
|
size: {
|
|
366
|
-
sm:
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
621
|
+
sm: l(
|
|
622
|
+
o("xs", "px"),
|
|
623
|
+
o("xs", "py"),
|
|
624
|
+
L("caption")
|
|
370
625
|
),
|
|
371
|
-
md:
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
626
|
+
md: l(
|
|
627
|
+
o("sm", "px"),
|
|
628
|
+
o("xs", "py"),
|
|
629
|
+
L("bodySmall")
|
|
375
630
|
),
|
|
376
|
-
lg:
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
631
|
+
lg: l(
|
|
632
|
+
o("md", "px"),
|
|
633
|
+
o("sm", "py"),
|
|
634
|
+
L("body")
|
|
380
635
|
)
|
|
381
636
|
},
|
|
382
637
|
selected: {
|
|
383
|
-
true:
|
|
638
|
+
true: l(
|
|
384
639
|
"bg-surface-brand-strong",
|
|
385
640
|
"text-fg-inverse",
|
|
386
641
|
"border",
|
|
@@ -420,68 +675,70 @@ const O = (r, a) => {
|
|
|
420
675
|
disabled: !1
|
|
421
676
|
}
|
|
422
677
|
}
|
|
423
|
-
),
|
|
424
|
-
|
|
425
|
-
children:
|
|
678
|
+
), Le = j(function(a, n) {
|
|
679
|
+
const {
|
|
680
|
+
children: t,
|
|
426
681
|
variant: i = "default",
|
|
427
|
-
size:
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
"
|
|
437
|
-
"
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
"disabled",
|
|
442
|
-
"className",
|
|
443
|
-
"aria-label",
|
|
444
|
-
"onClick",
|
|
445
|
-
"tabIndex"
|
|
446
|
-
]);
|
|
447
|
-
const q = (() => {
|
|
448
|
-
if (m) return m;
|
|
449
|
-
if (typeof a == "string") return a;
|
|
450
|
-
if (typeof a == "object" && a !== null && "props" in a) {
|
|
451
|
-
const M = a.props;
|
|
452
|
-
if (M != null && M.children && typeof M.children == "string")
|
|
453
|
-
return M.children;
|
|
682
|
+
size: s = "md",
|
|
683
|
+
selected: c = !1,
|
|
684
|
+
disabled: f = !1,
|
|
685
|
+
className: p = "",
|
|
686
|
+
"aria-label": b,
|
|
687
|
+
tabIndex: u,
|
|
688
|
+
asChild: x = !1
|
|
689
|
+
} = a, y = (() => {
|
|
690
|
+
if (b) return b;
|
|
691
|
+
if (typeof t == "string") return t;
|
|
692
|
+
if (typeof t == "object" && t !== null && "props" in t) {
|
|
693
|
+
const F = t.props;
|
|
694
|
+
if (F != null && F.children && typeof F.children == "string")
|
|
695
|
+
return F.children;
|
|
454
696
|
}
|
|
455
|
-
})()
|
|
456
|
-
|
|
697
|
+
})();
|
|
698
|
+
if (x)
|
|
699
|
+
return /* @__PURE__ */ d(
|
|
700
|
+
$e,
|
|
701
|
+
{
|
|
702
|
+
ref: n,
|
|
703
|
+
className: l(
|
|
704
|
+
ae({ variant: i, size: s, selected: c, disabled: f }),
|
|
705
|
+
p
|
|
706
|
+
),
|
|
707
|
+
"aria-label": b,
|
|
708
|
+
"aria-disabled": f || void 0,
|
|
709
|
+
tabIndex: u,
|
|
710
|
+
children: t
|
|
711
|
+
}
|
|
712
|
+
);
|
|
713
|
+
const { onRemove: T, onClick: z } = a, q = z !== void 0, _ = q && !f, ie = (F) => {
|
|
714
|
+
f || (F.key === "Enter" || F.key === " ") && (F.preventDefault(), z == null || z());
|
|
457
715
|
};
|
|
458
|
-
return /* @__PURE__ */
|
|
716
|
+
return /* @__PURE__ */ C(
|
|
459
717
|
"div",
|
|
460
|
-
|
|
461
|
-
ref:
|
|
462
|
-
className:
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
718
|
+
{
|
|
719
|
+
ref: n,
|
|
720
|
+
className: l(
|
|
721
|
+
ae({ variant: i, size: s, selected: c, disabled: f }),
|
|
722
|
+
T && o("xs", "pr"),
|
|
723
|
+
p
|
|
466
724
|
),
|
|
467
|
-
"aria-disabled":
|
|
468
|
-
}, x), {
|
|
725
|
+
"aria-disabled": f,
|
|
469
726
|
children: [
|
|
470
|
-
|
|
727
|
+
q ? /* @__PURE__ */ d(
|
|
471
728
|
"button",
|
|
472
729
|
{
|
|
473
730
|
type: "button",
|
|
474
|
-
onClick:
|
|
475
|
-
onKeyDown:
|
|
476
|
-
disabled:
|
|
477
|
-
"aria-pressed":
|
|
478
|
-
"aria-label":
|
|
479
|
-
tabIndex: u !== void 0 ? u :
|
|
480
|
-
className:
|
|
731
|
+
onClick: f ? void 0 : z,
|
|
732
|
+
onKeyDown: ie,
|
|
733
|
+
disabled: f,
|
|
734
|
+
"aria-pressed": c ? !0 : void 0,
|
|
735
|
+
"aria-label": b || y,
|
|
736
|
+
tabIndex: u !== void 0 ? u : _ ? 0 : void 0,
|
|
737
|
+
className: l(
|
|
481
738
|
"flex-1",
|
|
482
739
|
"bg-transparent",
|
|
483
740
|
"border-0",
|
|
484
|
-
|
|
741
|
+
o("none", "p"),
|
|
485
742
|
"text-inherit",
|
|
486
743
|
"text-left",
|
|
487
744
|
"cursor-pointer",
|
|
@@ -489,162 +746,192 @@ const O = (r, a) => {
|
|
|
489
746
|
"focus:ring-2",
|
|
490
747
|
"focus:ring-line-focus",
|
|
491
748
|
"focus:ring-offset-2",
|
|
492
|
-
|
|
749
|
+
M("full")
|
|
493
750
|
),
|
|
494
|
-
children:
|
|
751
|
+
children: t
|
|
495
752
|
}
|
|
496
|
-
) : /* @__PURE__ */
|
|
497
|
-
|
|
753
|
+
) : /* @__PURE__ */ d("span", { children: t }),
|
|
754
|
+
T && !f && /* @__PURE__ */ d(
|
|
498
755
|
"button",
|
|
499
756
|
{
|
|
500
757
|
type: "button",
|
|
501
|
-
onClick: (
|
|
502
|
-
|
|
758
|
+
onClick: (F) => {
|
|
759
|
+
F.stopPropagation(), T();
|
|
503
760
|
},
|
|
504
|
-
className:
|
|
505
|
-
|
|
761
|
+
className: l(
|
|
762
|
+
o("xs", "ml"),
|
|
506
763
|
"hover:bg-tint-hover",
|
|
507
|
-
|
|
508
|
-
|
|
764
|
+
M("full"),
|
|
765
|
+
o("xs", "p"),
|
|
509
766
|
"transition-colors",
|
|
510
767
|
"focus:outline-none",
|
|
511
768
|
"focus:ring-2",
|
|
512
769
|
"focus:ring-line-focus",
|
|
513
770
|
"focus:ring-offset-1"
|
|
514
771
|
),
|
|
515
|
-
"aria-label": `Remove ${
|
|
516
|
-
children: /* @__PURE__ */
|
|
772
|
+
"aria-label": `Remove ${y || "chip"}`,
|
|
773
|
+
children: /* @__PURE__ */ d(pe, { className: "h-3 w-3", "aria-hidden": "true" })
|
|
517
774
|
}
|
|
518
775
|
)
|
|
519
776
|
]
|
|
520
|
-
}
|
|
777
|
+
}
|
|
521
778
|
);
|
|
522
779
|
});
|
|
523
|
-
|
|
524
|
-
function
|
|
525
|
-
var s =
|
|
780
|
+
Le.displayName = "Chip";
|
|
781
|
+
function ia(i) {
|
|
782
|
+
var s = i, {
|
|
526
783
|
message: r,
|
|
527
784
|
id: a,
|
|
528
|
-
className:
|
|
785
|
+
className: n = ""
|
|
529
786
|
} = s, t = h(s, [
|
|
530
787
|
"message",
|
|
531
788
|
"id",
|
|
532
789
|
"className"
|
|
533
790
|
]);
|
|
534
791
|
const c = [
|
|
535
|
-
|
|
536
|
-
|
|
792
|
+
o("xs", "mt"),
|
|
793
|
+
L("bodySmall"),
|
|
537
794
|
"text-fg-error",
|
|
538
795
|
"flex",
|
|
539
796
|
"items-center",
|
|
540
|
-
|
|
541
|
-
], f =
|
|
542
|
-
return /* @__PURE__ */
|
|
543
|
-
/* @__PURE__ */
|
|
544
|
-
/* @__PURE__ */
|
|
797
|
+
o("xs", "gap")
|
|
798
|
+
], f = l(...c, n);
|
|
799
|
+
return /* @__PURE__ */ C("div", v(m({ role: "alert", id: a, className: f, "aria-live": "polite" }, t), { children: [
|
|
800
|
+
/* @__PURE__ */ d(ue, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }),
|
|
801
|
+
/* @__PURE__ */ d("span", { children: r })
|
|
545
802
|
] }));
|
|
546
803
|
}
|
|
547
|
-
function
|
|
548
|
-
var
|
|
804
|
+
function sa(t) {
|
|
805
|
+
var i = t, {
|
|
549
806
|
variant: r = "info",
|
|
550
807
|
className: a
|
|
551
|
-
} =
|
|
808
|
+
} = i, n = h(i, [
|
|
552
809
|
"variant",
|
|
553
810
|
"className"
|
|
554
811
|
]);
|
|
555
812
|
const s = {
|
|
556
|
-
warning:
|
|
557
|
-
error:
|
|
558
|
-
info:
|
|
813
|
+
warning: l("bg-warning-bg", "text-warning-dark", "border-warning"),
|
|
814
|
+
error: l("bg-error-bg", "text-error-dark", "border-error"),
|
|
815
|
+
info: l("bg-info-bg", "text-info-dark", "border-info")
|
|
559
816
|
};
|
|
560
|
-
return /* @__PURE__ */
|
|
817
|
+
return /* @__PURE__ */ d(
|
|
561
818
|
"div",
|
|
562
|
-
|
|
819
|
+
m({
|
|
563
820
|
role: "alert",
|
|
564
|
-
className:
|
|
821
|
+
className: l(
|
|
565
822
|
"border",
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
823
|
+
o("base", "px"),
|
|
824
|
+
o("sm", "py"),
|
|
825
|
+
M("lg"),
|
|
569
826
|
s[r],
|
|
570
827
|
a
|
|
571
828
|
)
|
|
572
|
-
},
|
|
829
|
+
}, n)
|
|
573
830
|
);
|
|
574
831
|
}
|
|
575
|
-
|
|
576
|
-
|
|
832
|
+
const ze = l(
|
|
833
|
+
"block",
|
|
834
|
+
L("label"),
|
|
835
|
+
B("label"),
|
|
836
|
+
"text-fg-primary"
|
|
837
|
+
), Fe = {
|
|
838
|
+
default: "",
|
|
839
|
+
required: l(
|
|
840
|
+
"after:content-['*']",
|
|
841
|
+
`after:${o("0.5", "ml")}`,
|
|
842
|
+
"after:text-fg-error"
|
|
843
|
+
),
|
|
844
|
+
optional: l(
|
|
845
|
+
"after:content-['(optional)']",
|
|
846
|
+
`after:${o("xs", "ml")}`,
|
|
847
|
+
"after:text-fg-tertiary",
|
|
848
|
+
"after:font-normal"
|
|
849
|
+
)
|
|
850
|
+
}, Ae = H(
|
|
851
|
+
j(function(c, s) {
|
|
852
|
+
var f = c, { variant: a = "default", className: n = "", children: t } = f, i = h(f, ["variant", "className", "children"]);
|
|
853
|
+
const p = l(
|
|
854
|
+
ze,
|
|
855
|
+
Fe[a],
|
|
856
|
+
n
|
|
857
|
+
);
|
|
858
|
+
return /* @__PURE__ */ d("label", v(m({ ref: s, className: p }, i), { children: t }));
|
|
859
|
+
})
|
|
860
|
+
);
|
|
861
|
+
Ae.displayName = "Label";
|
|
862
|
+
function w(r, a, n) {
|
|
863
|
+
const t = Ee(r), i = Ie(r);
|
|
577
864
|
return {
|
|
578
865
|
hex: r,
|
|
579
866
|
rgb: t,
|
|
580
|
-
hsl:
|
|
581
|
-
cssVar: `var(--color-${a}-${
|
|
582
|
-
tailwind: `${a}-${
|
|
867
|
+
hsl: i,
|
|
868
|
+
cssVar: `var(--color-${a}-${n})`,
|
|
869
|
+
tailwind: `${a}-${n}`
|
|
583
870
|
};
|
|
584
871
|
}
|
|
585
|
-
function
|
|
872
|
+
function Ee(r) {
|
|
586
873
|
const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);
|
|
587
874
|
return a ? `${parseInt(a[1], 16)}, ${parseInt(a[2], 16)}, ${parseInt(a[3], 16)}` : "0, 0, 0";
|
|
588
875
|
}
|
|
589
|
-
function
|
|
876
|
+
function Ie(r) {
|
|
590
877
|
const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);
|
|
591
878
|
if (!a) return "0, 0%, 0%";
|
|
592
|
-
const
|
|
593
|
-
let f = 0,
|
|
594
|
-
const
|
|
879
|
+
const n = parseInt(a[1], 16) / 255, t = parseInt(a[2], 16) / 255, i = parseInt(a[3], 16) / 255, s = Math.max(n, t, i), c = Math.min(n, t, i);
|
|
880
|
+
let f = 0, p = 0;
|
|
881
|
+
const b = (s + c) / 2;
|
|
595
882
|
if (s !== c) {
|
|
596
883
|
const u = s - c;
|
|
597
|
-
switch (
|
|
598
|
-
case
|
|
599
|
-
f = ((t -
|
|
884
|
+
switch (p = b > 0.5 ? u / (2 - s - c) : u / (s + c), s) {
|
|
885
|
+
case n:
|
|
886
|
+
f = ((t - i) / u + (t < i ? 6 : 0)) / 6;
|
|
600
887
|
break;
|
|
601
888
|
case t:
|
|
602
|
-
f = ((
|
|
889
|
+
f = ((i - n) / u + 2) / 6;
|
|
603
890
|
break;
|
|
604
|
-
case
|
|
605
|
-
f = ((
|
|
891
|
+
case i:
|
|
892
|
+
f = ((n - t) / u + 4) / 6;
|
|
606
893
|
break;
|
|
607
894
|
}
|
|
608
895
|
}
|
|
609
|
-
return `${Math.round(f * 360)}, ${Math.round(
|
|
896
|
+
return `${Math.round(f * 360)}, ${Math.round(p * 100)}%, ${Math.round(b * 100)}%`;
|
|
610
897
|
}
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
function e(r, a,
|
|
614
|
-
const t =
|
|
898
|
+
w("#f0f4f8", "brand-primary", 50), w("#d9e2ec", "brand-primary", 100), w("#bcccdc", "brand-primary", 200), w("#9fb3c8", "brand-primary", 300), w("#7390ad", "brand-primary", 400), w("#486581", "brand-primary", 500), w("#334e68", "brand-primary", 600), w("#243b53", "brand-primary", 700), w("#1a2a3a", "brand-primary", 800), w("#102a43", "brand-primary", 900), w("#061a35", "brand-primary", 950);
|
|
899
|
+
w("#f7f5ff", "brand-secondary", 50), w("#eee9ff", "brand-secondary", 100), w("#e0d6ff", "brand-secondary", 200), w("#cbb8ff", "brand-secondary", 300), w("#aa89fc", "brand-secondary", 400), w("#8e58f2", "brand-secondary", 500), w("#703bc8", "brand-secondary", 600), w("#582aa2", "brand-secondary", 700), w("#44227e", "brand-secondary", 800), w("#32185d", "brand-secondary", 900), w("#180635", "brand-secondary", 950);
|
|
900
|
+
function e(r, a, n) {
|
|
901
|
+
const t = We(r), i = De(r);
|
|
615
902
|
return {
|
|
616
903
|
hex: r,
|
|
617
904
|
rgb: t,
|
|
618
|
-
hsl:
|
|
619
|
-
cssVar: `var(--color-${a}-${
|
|
620
|
-
tailwind: `${a}-${
|
|
905
|
+
hsl: i,
|
|
906
|
+
cssVar: `var(--color-${a}-${n})`,
|
|
907
|
+
tailwind: `${a}-${n}`
|
|
621
908
|
};
|
|
622
909
|
}
|
|
623
|
-
function
|
|
910
|
+
function We(r) {
|
|
624
911
|
const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);
|
|
625
912
|
return a ? `${parseInt(a[1], 16)}, ${parseInt(a[2], 16)}, ${parseInt(a[3], 16)}` : "0, 0, 0";
|
|
626
913
|
}
|
|
627
|
-
function
|
|
914
|
+
function De(r) {
|
|
628
915
|
const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);
|
|
629
916
|
if (!a) return "0, 0%, 0%";
|
|
630
|
-
const
|
|
631
|
-
let f = 0,
|
|
632
|
-
const
|
|
917
|
+
const n = parseInt(a[1], 16) / 255, t = parseInt(a[2], 16) / 255, i = parseInt(a[3], 16) / 255, s = Math.max(n, t, i), c = Math.min(n, t, i);
|
|
918
|
+
let f = 0, p = 0;
|
|
919
|
+
const b = (s + c) / 2;
|
|
633
920
|
if (s !== c) {
|
|
634
921
|
const u = s - c;
|
|
635
|
-
switch (
|
|
636
|
-
case
|
|
637
|
-
f = ((t -
|
|
922
|
+
switch (p = b > 0.5 ? u / (2 - s - c) : u / (s + c), s) {
|
|
923
|
+
case n:
|
|
924
|
+
f = ((t - i) / u + (t < i ? 6 : 0)) / 6;
|
|
638
925
|
break;
|
|
639
926
|
case t:
|
|
640
|
-
f = ((
|
|
927
|
+
f = ((i - n) / u + 2) / 6;
|
|
641
928
|
break;
|
|
642
|
-
case
|
|
643
|
-
f = ((
|
|
929
|
+
case i:
|
|
930
|
+
f = ((n - t) / u + 4) / 6;
|
|
644
931
|
break;
|
|
645
932
|
}
|
|
646
933
|
}
|
|
647
|
-
return `${Math.round(f * 360)}, ${Math.round(
|
|
934
|
+
return `${Math.round(f * 360)}, ${Math.round(p * 100)}%, ${Math.round(b * 100)}%`;
|
|
648
935
|
}
|
|
649
936
|
e("#eef2ff", "indigo", 50), e("#e0e7ff", "indigo", 100), e("#c7d2fe", "indigo", 200), e("#a5b4fc", "indigo", 300), e("#818cf8", "indigo", 400), e("#6366f1", "indigo", 500), e("#4f46e5", "indigo", 600), e("#4338ca", "indigo", 700), e("#3730a3", "indigo", 800), e("#312e81", "indigo", 900), e("#1e1b4b", "indigo", 950);
|
|
650
937
|
e("#f5f3ff", "violet", 50), e("#ede9fe", "violet", 100), e("#ddd6fe", "violet", 200), e("#c4b5fd", "violet", 300), e("#a78bfa", "violet", 400), e("#8b5cf6", "violet", 500), e("#7c3aed", "violet", 600), e("#6d28d9", "violet", 700), e("#5b21b6", "violet", 800), e("#4c1d95", "violet", 900), e("#2e1065", "violet", 950);
|
|
@@ -665,7 +952,7 @@ e("#fdf2f8", "pink", 50), e("#fce7f3", "pink", 100), e("#fbcfe8", "pink", 200),
|
|
|
665
952
|
e("#faf5ff", "purple", 50), e("#f3e8ff", "purple", 100), e("#e9d5ff", "purple", 200), e("#d8b4fe", "purple", 300), e("#c084fc", "purple", 400), e("#a855f7", "purple", 500), e("#9333ea", "purple", 600), e("#7e22ce", "purple", 700), e("#6b21a8", "purple", 800), e("#581c87", "purple", 900), e("#3b0764", "purple", 950);
|
|
666
953
|
e("#f0fdfa", "teal", 50), e("#ccfbf1", "teal", 100), e("#99f6e4", "teal", 200), e("#5eead4", "teal", 300), e("#2dd4bf", "teal", 400), e("#14b8a6", "teal", 500), e("#0d9488", "teal", 600), e("#0f766e", "teal", 700), e("#115e59", "teal", 800), e("#134e4a", "teal", 900), e("#042f2e", "teal", 950);
|
|
667
954
|
e("#f7fee7", "lime", 50), e("#ecfccb", "lime", 100), e("#d9f99d", "lime", 200), e("#bef264", "lime", 300), e("#a3e635", "lime", 400), e("#84cc16", "lime", 500), e("#65a30d", "lime", 600), e("#4d7c0f", "lime", 700), e("#3f6212", "lime", 800), e("#365314", "lime", 900), e("#1a2e05", "lime", 950);
|
|
668
|
-
class
|
|
955
|
+
class V {
|
|
669
956
|
/**
|
|
670
957
|
* Create a shadow token
|
|
671
958
|
*/
|
|
@@ -709,8 +996,19 @@ class D {
|
|
|
709
996
|
}[a];
|
|
710
997
|
}
|
|
711
998
|
}
|
|
712
|
-
|
|
713
|
-
|
|
999
|
+
const Ve = {
|
|
1000
|
+
none: V.create("none"),
|
|
1001
|
+
sm: V.create("sm"),
|
|
1002
|
+
md: V.create("md"),
|
|
1003
|
+
lg: V.create("lg"),
|
|
1004
|
+
xl: V.create("xl"),
|
|
1005
|
+
"2xl": V.create("2xl"),
|
|
1006
|
+
inner: V.create("inner")
|
|
1007
|
+
};
|
|
1008
|
+
function X(r) {
|
|
1009
|
+
return Ve[r].tailwind;
|
|
1010
|
+
}
|
|
1011
|
+
class A {
|
|
714
1012
|
/**
|
|
715
1013
|
* Create a border width token
|
|
716
1014
|
*/
|
|
@@ -746,16 +1044,16 @@ class z {
|
|
|
746
1044
|
/**
|
|
747
1045
|
* Create a complete border token
|
|
748
1046
|
*/
|
|
749
|
-
static create(a,
|
|
1047
|
+
static create(a, n = "solid") {
|
|
750
1048
|
return {
|
|
751
1049
|
width: this.createWidth(a),
|
|
752
|
-
style:
|
|
753
|
-
description: `${a} ${
|
|
1050
|
+
style: n,
|
|
1051
|
+
description: `${a} ${n} border`
|
|
754
1052
|
};
|
|
755
1053
|
}
|
|
756
1054
|
}
|
|
757
|
-
|
|
758
|
-
class
|
|
1055
|
+
A.create("none"), A.create("thin"), A.create("base"), A.create("medium"), A.create("thick"), A.create("thin", "dashed"), A.create("base", "dashed"), A.create("thin", "dotted"), A.create("base", "dotted");
|
|
1056
|
+
class O {
|
|
759
1057
|
/**
|
|
760
1058
|
* Create breakpoint token
|
|
761
1059
|
*/
|
|
@@ -776,12 +1074,12 @@ class E {
|
|
|
776
1074
|
};
|
|
777
1075
|
}
|
|
778
1076
|
}
|
|
779
|
-
|
|
1077
|
+
O.create("sm"), O.create("md"), O.create("lg"), O.create("xl"), O.create("2xl");
|
|
780
1078
|
class W {
|
|
781
1079
|
/**
|
|
782
1080
|
* Create an animation token
|
|
783
1081
|
*/
|
|
784
|
-
static create(a,
|
|
1082
|
+
static create(a, n = "ease-in-out") {
|
|
785
1083
|
const t = {
|
|
786
1084
|
fast: {
|
|
787
1085
|
value: "150ms",
|
|
@@ -803,7 +1101,7 @@ class W {
|
|
|
803
1101
|
ms: 500,
|
|
804
1102
|
tailwind: "duration-500"
|
|
805
1103
|
}
|
|
806
|
-
},
|
|
1104
|
+
}, i = {
|
|
807
1105
|
"ease-in": {
|
|
808
1106
|
value: "cubic-bezier(0.4, 0, 1, 1)",
|
|
809
1107
|
tailwind: "ease-in",
|
|
@@ -827,21 +1125,21 @@ class W {
|
|
|
827
1125
|
};
|
|
828
1126
|
return {
|
|
829
1127
|
duration: t[a],
|
|
830
|
-
easing: n
|
|
1128
|
+
easing: i[n]
|
|
831
1129
|
};
|
|
832
1130
|
}
|
|
833
1131
|
/**
|
|
834
1132
|
* Create a transition token
|
|
835
1133
|
*/
|
|
836
|
-
static createTransition(a,
|
|
837
|
-
const
|
|
838
|
-
|
|
839
|
-
|
|
1134
|
+
static createTransition(a, n = "base", t = "ease-in-out") {
|
|
1135
|
+
const i = this.create(n, t), s = Array.isArray(a) ? a.join(", ") : a, c = [
|
|
1136
|
+
i.duration.tailwind,
|
|
1137
|
+
i.easing.tailwind
|
|
840
1138
|
].join(" ");
|
|
841
1139
|
return {
|
|
842
1140
|
property: s,
|
|
843
|
-
duration:
|
|
844
|
-
timingFunction:
|
|
1141
|
+
duration: i.duration.value,
|
|
1142
|
+
timingFunction: i.easing.value,
|
|
845
1143
|
tailwind: c
|
|
846
1144
|
};
|
|
847
1145
|
}
|
|
@@ -850,7 +1148,7 @@ W.create("fast"), W.create("base"), W.create("slow"), W.create("slower"), W.crea
|
|
|
850
1148
|
["color", "background-color", "border-color"],
|
|
851
1149
|
"base"
|
|
852
1150
|
), W.createTransition("opacity", "fast"), W.createTransition("transform", "base"), W.createTransition("all", "base");
|
|
853
|
-
class
|
|
1151
|
+
class E {
|
|
854
1152
|
/**
|
|
855
1153
|
* Create a z-index token
|
|
856
1154
|
*/
|
|
@@ -904,13 +1202,13 @@ class L {
|
|
|
904
1202
|
}[a];
|
|
905
1203
|
}
|
|
906
1204
|
}
|
|
907
|
-
|
|
908
|
-
class
|
|
1205
|
+
E.create("base"), E.create("dropdown"), E.create("sticky"), E.create("fixed"), E.create("modal-backdrop"), E.create("modal"), E.create("popover"), E.create("tooltip"), E.create("toast");
|
|
1206
|
+
class N {
|
|
909
1207
|
/**
|
|
910
1208
|
* Create an opacity token
|
|
911
1209
|
*/
|
|
912
1210
|
static create(a) {
|
|
913
|
-
const
|
|
1211
|
+
const n = a / 100, t = {
|
|
914
1212
|
0: "Fully transparent",
|
|
915
1213
|
5: "Very light overlay",
|
|
916
1214
|
10: "Light overlay",
|
|
@@ -929,7 +1227,7 @@ class $ {
|
|
|
929
1227
|
};
|
|
930
1228
|
return {
|
|
931
1229
|
value: a,
|
|
932
|
-
decimal:
|
|
1230
|
+
decimal: n,
|
|
933
1231
|
tailwind: {
|
|
934
1232
|
0: "opacity-0",
|
|
935
1233
|
5: "opacity-5",
|
|
@@ -951,8 +1249,8 @@ class $ {
|
|
|
951
1249
|
};
|
|
952
1250
|
}
|
|
953
1251
|
}
|
|
954
|
-
|
|
955
|
-
const
|
|
1252
|
+
N.create(0), N.create(5), N.create(10), N.create(20), N.create(25), N.create(30), N.create(40), N.create(50), N.create(60), N.create(70), N.create(75), N.create(80), N.create(90), N.create(95), N.create(100);
|
|
1253
|
+
const je = R("w-full", {
|
|
956
1254
|
variants: {
|
|
957
1255
|
size: {
|
|
958
1256
|
sm: "h-1",
|
|
@@ -972,7 +1270,7 @@ const he = O("w-full", {
|
|
|
972
1270
|
size: "md",
|
|
973
1271
|
variant: "primary"
|
|
974
1272
|
}
|
|
975
|
-
}),
|
|
1273
|
+
}), te = R("transition-all", {
|
|
976
1274
|
variants: {
|
|
977
1275
|
variant: {
|
|
978
1276
|
primary: "bg-surface-brand",
|
|
@@ -986,17 +1284,17 @@ const he = O("w-full", {
|
|
|
986
1284
|
defaultVariants: {
|
|
987
1285
|
variant: "primary"
|
|
988
1286
|
}
|
|
989
|
-
}),
|
|
990
|
-
var
|
|
1287
|
+
}), Re = j(function(x, u) {
|
|
1288
|
+
var g = x, {
|
|
991
1289
|
value: a,
|
|
992
|
-
max:
|
|
1290
|
+
max: n = 100,
|
|
993
1291
|
variant: t = "primary",
|
|
994
|
-
size:
|
|
1292
|
+
size: i = "md",
|
|
995
1293
|
showLabel: s = !1,
|
|
996
1294
|
label: c,
|
|
997
1295
|
"aria-label": f,
|
|
998
|
-
className:
|
|
999
|
-
} =
|
|
1296
|
+
className: p = ""
|
|
1297
|
+
} = g, b = h(g, [
|
|
1000
1298
|
"value",
|
|
1001
1299
|
"max",
|
|
1002
1300
|
"variant",
|
|
@@ -1006,38 +1304,38 @@ const he = O("w-full", {
|
|
|
1006
1304
|
"aria-label",
|
|
1007
1305
|
"className"
|
|
1008
1306
|
]);
|
|
1009
|
-
const
|
|
1010
|
-
return /* @__PURE__ */
|
|
1011
|
-
s && (c || !
|
|
1307
|
+
const y = a === void 0, T = y ? void 0 : Math.min(Math.max(a / n * 100, 0), 100), z = f || (y ? "Loading in progress" : `Progress: ${T == null ? void 0 : T.toFixed(0)}%`);
|
|
1308
|
+
return /* @__PURE__ */ C("div", v(m({ ref: u, className: l("w-full", p) }, b), { children: [
|
|
1309
|
+
s && (c || !y) && /* @__PURE__ */ C(
|
|
1012
1310
|
"div",
|
|
1013
1311
|
{
|
|
1014
|
-
className:
|
|
1312
|
+
className: l(
|
|
1015
1313
|
"flex",
|
|
1016
1314
|
"items-center",
|
|
1017
1315
|
"justify-between",
|
|
1018
|
-
|
|
1316
|
+
o("xs", "mb")
|
|
1019
1317
|
),
|
|
1020
1318
|
children: [
|
|
1021
|
-
c && /* @__PURE__ */
|
|
1319
|
+
c && /* @__PURE__ */ d(
|
|
1022
1320
|
"span",
|
|
1023
1321
|
{
|
|
1024
|
-
className:
|
|
1025
|
-
|
|
1026
|
-
|
|
1322
|
+
className: l(
|
|
1323
|
+
L("bodySmall"),
|
|
1324
|
+
B("label"),
|
|
1027
1325
|
"text-fg-primary"
|
|
1028
1326
|
),
|
|
1029
1327
|
children: c
|
|
1030
1328
|
}
|
|
1031
1329
|
),
|
|
1032
|
-
!
|
|
1330
|
+
!y && T !== void 0 && /* @__PURE__ */ C(
|
|
1033
1331
|
"span",
|
|
1034
1332
|
{
|
|
1035
|
-
className:
|
|
1036
|
-
|
|
1333
|
+
className: l(
|
|
1334
|
+
L("bodySmall"),
|
|
1037
1335
|
"text-fg-secondary"
|
|
1038
1336
|
),
|
|
1039
1337
|
children: [
|
|
1040
|
-
|
|
1338
|
+
T.toFixed(0),
|
|
1041
1339
|
"%"
|
|
1042
1340
|
]
|
|
1043
1341
|
}
|
|
@@ -1045,32 +1343,32 @@ const he = O("w-full", {
|
|
|
1045
1343
|
]
|
|
1046
1344
|
}
|
|
1047
1345
|
),
|
|
1048
|
-
/* @__PURE__ */
|
|
1346
|
+
/* @__PURE__ */ d(
|
|
1049
1347
|
"div",
|
|
1050
1348
|
{
|
|
1051
1349
|
role: "progressbar",
|
|
1052
|
-
"aria-valuemin":
|
|
1053
|
-
"aria-valuemax":
|
|
1054
|
-
"aria-valuenow":
|
|
1055
|
-
"aria-label":
|
|
1056
|
-
"aria-busy":
|
|
1057
|
-
className:
|
|
1350
|
+
"aria-valuemin": y ? void 0 : 0,
|
|
1351
|
+
"aria-valuemax": y ? void 0 : n,
|
|
1352
|
+
"aria-valuenow": y ? void 0 : a,
|
|
1353
|
+
"aria-label": z,
|
|
1354
|
+
"aria-busy": y,
|
|
1355
|
+
className: l(
|
|
1058
1356
|
"relative",
|
|
1059
1357
|
"w-full",
|
|
1060
1358
|
"overflow-hidden",
|
|
1061
|
-
|
|
1062
|
-
|
|
1359
|
+
je({ size: i, variant: t }),
|
|
1360
|
+
M("full")
|
|
1063
1361
|
),
|
|
1064
|
-
children:
|
|
1362
|
+
children: y ? /* @__PURE__ */ d(
|
|
1065
1363
|
"div",
|
|
1066
1364
|
{
|
|
1067
|
-
className:
|
|
1365
|
+
className: l(
|
|
1068
1366
|
"absolute",
|
|
1069
1367
|
"top-0",
|
|
1070
1368
|
"left-0",
|
|
1071
1369
|
"bottom-0",
|
|
1072
|
-
|
|
1073
|
-
|
|
1370
|
+
te({ variant: t }),
|
|
1371
|
+
M("full"),
|
|
1074
1372
|
"motion-reduce:animate-none"
|
|
1075
1373
|
),
|
|
1076
1374
|
style: {
|
|
@@ -1078,19 +1376,19 @@ const he = O("w-full", {
|
|
|
1078
1376
|
animation: "progress-indeterminate 1.5s ease-in-out infinite"
|
|
1079
1377
|
}
|
|
1080
1378
|
}
|
|
1081
|
-
) : /* @__PURE__ */
|
|
1379
|
+
) : /* @__PURE__ */ d(
|
|
1082
1380
|
"div",
|
|
1083
1381
|
{
|
|
1084
|
-
className:
|
|
1382
|
+
className: l(
|
|
1085
1383
|
"h-full",
|
|
1086
|
-
|
|
1087
|
-
|
|
1384
|
+
te({ variant: t }),
|
|
1385
|
+
M("full"),
|
|
1088
1386
|
"transition-all",
|
|
1089
1387
|
"duration-300",
|
|
1090
1388
|
"ease-out"
|
|
1091
1389
|
),
|
|
1092
1390
|
style: {
|
|
1093
|
-
width: `${
|
|
1391
|
+
width: `${T}%`
|
|
1094
1392
|
},
|
|
1095
1393
|
"aria-hidden": "true"
|
|
1096
1394
|
}
|
|
@@ -1099,16 +1397,57 @@ const he = O("w-full", {
|
|
|
1099
1397
|
)
|
|
1100
1398
|
] }));
|
|
1101
1399
|
});
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1400
|
+
Re.displayName = "Progress";
|
|
1401
|
+
const _e = {
|
|
1402
|
+
horizontal: "w-full border-t",
|
|
1403
|
+
vertical: "h-full border-l self-stretch"
|
|
1404
|
+
}, Oe = {
|
|
1405
|
+
solid: "border-solid",
|
|
1406
|
+
dashed: "border-dashed",
|
|
1407
|
+
dotted: "border-dotted"
|
|
1408
|
+
}, Be = H(function(s) {
|
|
1409
|
+
var c = s, {
|
|
1410
|
+
orientation: a = "horizontal",
|
|
1411
|
+
variant: n = "solid",
|
|
1412
|
+
className: t = ""
|
|
1413
|
+
} = c, i = h(c, [
|
|
1414
|
+
"orientation",
|
|
1415
|
+
"variant",
|
|
1416
|
+
"className"
|
|
1417
|
+
]);
|
|
1418
|
+
const f = l(
|
|
1419
|
+
"border-0",
|
|
1420
|
+
"border-line-default",
|
|
1421
|
+
_e[a],
|
|
1422
|
+
Oe[n],
|
|
1423
|
+
t
|
|
1424
|
+
);
|
|
1425
|
+
return a === "vertical" ? /* @__PURE__ */ d(
|
|
1426
|
+
"div",
|
|
1427
|
+
m({
|
|
1428
|
+
className: f,
|
|
1429
|
+
role: "separator",
|
|
1430
|
+
"aria-orientation": "vertical"
|
|
1431
|
+
}, i)
|
|
1432
|
+
) : /* @__PURE__ */ d(
|
|
1433
|
+
"hr",
|
|
1434
|
+
m({
|
|
1435
|
+
className: f,
|
|
1436
|
+
role: "separator",
|
|
1437
|
+
"aria-orientation": "horizontal"
|
|
1438
|
+
}, i)
|
|
1439
|
+
);
|
|
1440
|
+
});
|
|
1441
|
+
Be.displayName = "Separator";
|
|
1442
|
+
function la(f) {
|
|
1443
|
+
var p = f, {
|
|
1105
1444
|
variant: r = "text",
|
|
1106
1445
|
width: a,
|
|
1107
|
-
height:
|
|
1446
|
+
height: n,
|
|
1108
1447
|
lines: t = 1,
|
|
1109
|
-
className:
|
|
1448
|
+
className: i = "",
|
|
1110
1449
|
"aria-label": s
|
|
1111
|
-
} =
|
|
1450
|
+
} = p, c = h(p, [
|
|
1112
1451
|
"variant",
|
|
1113
1452
|
"width",
|
|
1114
1453
|
"height",
|
|
@@ -1116,48 +1455,48 @@ function Ee(f) {
|
|
|
1116
1455
|
"className",
|
|
1117
1456
|
"aria-label"
|
|
1118
1457
|
]);
|
|
1119
|
-
const
|
|
1458
|
+
const b = [
|
|
1120
1459
|
"motion-safe:animate-pulse",
|
|
1121
1460
|
"bg-surface-muted",
|
|
1122
|
-
|
|
1461
|
+
M("sm")
|
|
1123
1462
|
], u = {
|
|
1124
1463
|
text: "h-4",
|
|
1125
1464
|
card: "h-32",
|
|
1126
1465
|
list: "h-12",
|
|
1127
|
-
circle:
|
|
1128
|
-
}, x =
|
|
1129
|
-
a && (
|
|
1130
|
-
const
|
|
1131
|
-
return r === "text" && t > 1 ? /* @__PURE__ */
|
|
1466
|
+
circle: M("full")
|
|
1467
|
+
}, x = l(...b, u[r], i), g = {};
|
|
1468
|
+
a && (g.width = a), n && (g.height = n);
|
|
1469
|
+
const y = s || `Loading ${r} content`;
|
|
1470
|
+
return r === "text" && t > 1 ? /* @__PURE__ */ d(
|
|
1132
1471
|
"div",
|
|
1133
|
-
|
|
1134
|
-
className:
|
|
1472
|
+
v(m({
|
|
1473
|
+
className: o("sm", "space-y"),
|
|
1135
1474
|
role: "status",
|
|
1136
1475
|
"aria-busy": "true",
|
|
1137
|
-
"aria-label":
|
|
1476
|
+
"aria-label": y
|
|
1138
1477
|
}, c), {
|
|
1139
|
-
children: Array.from({ length: t }).map((
|
|
1478
|
+
children: Array.from({ length: t }).map((T, z) => /* @__PURE__ */ d(
|
|
1140
1479
|
"div",
|
|
1141
1480
|
{
|
|
1142
1481
|
className: x,
|
|
1143
|
-
style:
|
|
1482
|
+
style: z === t - 1 ? { width: "75%" } : g,
|
|
1144
1483
|
"aria-hidden": "true"
|
|
1145
1484
|
},
|
|
1146
|
-
|
|
1485
|
+
z
|
|
1147
1486
|
))
|
|
1148
1487
|
})
|
|
1149
|
-
) : /* @__PURE__ */
|
|
1488
|
+
) : /* @__PURE__ */ d(
|
|
1150
1489
|
"div",
|
|
1151
|
-
|
|
1490
|
+
m({
|
|
1152
1491
|
className: x,
|
|
1153
|
-
style:
|
|
1492
|
+
style: g,
|
|
1154
1493
|
role: "status",
|
|
1155
1494
|
"aria-busy": "true",
|
|
1156
|
-
"aria-label":
|
|
1495
|
+
"aria-label": y
|
|
1157
1496
|
}, c)
|
|
1158
1497
|
);
|
|
1159
1498
|
}
|
|
1160
|
-
const
|
|
1499
|
+
const He = R("motion-safe:animate-spin", {
|
|
1161
1500
|
variants: {
|
|
1162
1501
|
size: {
|
|
1163
1502
|
sm: "h-4 w-4",
|
|
@@ -1174,40 +1513,40 @@ const we = O("motion-safe:animate-spin", {
|
|
|
1174
1513
|
size: "md",
|
|
1175
1514
|
variant: "primary"
|
|
1176
1515
|
}
|
|
1177
|
-
}),
|
|
1516
|
+
}), Pe = H(function(c) {
|
|
1178
1517
|
var f = c, {
|
|
1179
1518
|
size: a = "md",
|
|
1180
|
-
variant:
|
|
1519
|
+
variant: n = "primary",
|
|
1181
1520
|
label: t,
|
|
1182
|
-
className:
|
|
1521
|
+
className: i = ""
|
|
1183
1522
|
} = f, s = h(f, [
|
|
1184
1523
|
"size",
|
|
1185
1524
|
"variant",
|
|
1186
1525
|
"label",
|
|
1187
1526
|
"className"
|
|
1188
1527
|
]);
|
|
1189
|
-
return /* @__PURE__ */
|
|
1528
|
+
return /* @__PURE__ */ C(
|
|
1190
1529
|
"div",
|
|
1191
|
-
|
|
1192
|
-
className:
|
|
1530
|
+
v(m({
|
|
1531
|
+
className: l("inline-flex", "items-center", i),
|
|
1193
1532
|
role: "status",
|
|
1194
1533
|
"aria-label": t || "Loading",
|
|
1195
1534
|
"aria-live": "polite"
|
|
1196
1535
|
}, s), {
|
|
1197
1536
|
children: [
|
|
1198
|
-
/* @__PURE__ */
|
|
1199
|
-
|
|
1537
|
+
/* @__PURE__ */ d(
|
|
1538
|
+
me,
|
|
1200
1539
|
{
|
|
1201
|
-
className:
|
|
1540
|
+
className: l(He({ size: a, variant: n })),
|
|
1202
1541
|
"aria-hidden": "true"
|
|
1203
1542
|
}
|
|
1204
1543
|
),
|
|
1205
|
-
t && /* @__PURE__ */
|
|
1544
|
+
t && /* @__PURE__ */ d(
|
|
1206
1545
|
"span",
|
|
1207
1546
|
{
|
|
1208
|
-
className:
|
|
1209
|
-
|
|
1210
|
-
|
|
1547
|
+
className: l(
|
|
1548
|
+
o("sm", "ml"),
|
|
1549
|
+
L("bodySmall"),
|
|
1211
1550
|
"text-fg-secondary",
|
|
1212
1551
|
"sr-only"
|
|
1213
1552
|
),
|
|
@@ -1218,8 +1557,8 @@ const we = O("motion-safe:animate-spin", {
|
|
|
1218
1557
|
})
|
|
1219
1558
|
);
|
|
1220
1559
|
});
|
|
1221
|
-
|
|
1222
|
-
const
|
|
1560
|
+
Pe.displayName = "Spinner";
|
|
1561
|
+
const Ue = {
|
|
1223
1562
|
primary: {
|
|
1224
1563
|
// exception: variant color — no semantic equivalent (Principle 3, .claude/rules/colors.md)
|
|
1225
1564
|
light: "text-indigo-400",
|
|
@@ -1271,13 +1610,13 @@ const ke = {
|
|
|
1271
1610
|
contrast: "text-fg-inverse"
|
|
1272
1611
|
}
|
|
1273
1612
|
};
|
|
1274
|
-
function
|
|
1275
|
-
var u =
|
|
1613
|
+
function qe(b, p) {
|
|
1614
|
+
var u = b, {
|
|
1276
1615
|
variant: r = "paragraph",
|
|
1277
1616
|
bold: a,
|
|
1278
|
-
italic:
|
|
1617
|
+
italic: n,
|
|
1279
1618
|
className: t,
|
|
1280
|
-
as:
|
|
1619
|
+
as: i,
|
|
1281
1620
|
colorRole: s = "neutral",
|
|
1282
1621
|
colorShade: c = "dark"
|
|
1283
1622
|
} = u, f = h(u, [
|
|
@@ -1290,40 +1629,40 @@ function $e(p, m) {
|
|
|
1290
1629
|
"colorShade"
|
|
1291
1630
|
]);
|
|
1292
1631
|
const x = [];
|
|
1293
|
-
let
|
|
1294
|
-
if (
|
|
1295
|
-
|
|
1632
|
+
let g;
|
|
1633
|
+
if (i)
|
|
1634
|
+
g = i;
|
|
1296
1635
|
else
|
|
1297
1636
|
switch (r) {
|
|
1298
1637
|
case "heading":
|
|
1299
|
-
|
|
1638
|
+
g = "h2";
|
|
1300
1639
|
break;
|
|
1301
1640
|
case "list":
|
|
1302
|
-
|
|
1641
|
+
g = "li";
|
|
1303
1642
|
break;
|
|
1304
1643
|
default:
|
|
1305
|
-
|
|
1644
|
+
g = "p";
|
|
1306
1645
|
break;
|
|
1307
1646
|
}
|
|
1308
|
-
return r === "heading" ? x.push(
|
|
1647
|
+
return r === "heading" ? x.push(D("h2")) : r === "body" || r === "paragraph" ? x.push(D("body")) : r === "bodySmall" ? x.push(D("bodySmall")) : r === "bodyLarge" ? x.push(D("bodyLarge")) : r === "caption" ? x.push(D("caption")) : r === "label" ? x.push(D("label")) : x.push(D("body")), a && x.push("font-bold"), n && x.push("italic"), x.push(Ue[s][c]), /* @__PURE__ */ d(g, m({ ref: p, className: l(...x, t) }, f));
|
|
1309
1648
|
}
|
|
1310
|
-
const
|
|
1649
|
+
const oa = j(qe), Ke = {
|
|
1311
1650
|
sm: "max-w-screen-sm",
|
|
1312
1651
|
md: "max-w-screen-md",
|
|
1313
1652
|
lg: "max-w-screen-lg",
|
|
1314
1653
|
xl: "max-w-screen-xl",
|
|
1315
1654
|
"2xl": "max-w-screen-2xl",
|
|
1316
1655
|
full: "max-w-full"
|
|
1317
|
-
},
|
|
1318
|
-
(
|
|
1319
|
-
var
|
|
1656
|
+
}, Xe = re.forwardRef(
|
|
1657
|
+
(p, f) => {
|
|
1658
|
+
var b = p, {
|
|
1320
1659
|
className: r,
|
|
1321
1660
|
maxWidth: a = "lg",
|
|
1322
|
-
paddingX:
|
|
1661
|
+
paddingX: n = "base",
|
|
1323
1662
|
paddingY: t = "base",
|
|
1324
|
-
center:
|
|
1663
|
+
center: i = !0,
|
|
1325
1664
|
children: s
|
|
1326
|
-
} =
|
|
1665
|
+
} = b, c = h(b, [
|
|
1327
1666
|
"className",
|
|
1328
1667
|
"maxWidth",
|
|
1329
1668
|
"paddingX",
|
|
@@ -1331,16 +1670,16 @@ const Ve = H($e), Ne = {
|
|
|
1331
1670
|
"center",
|
|
1332
1671
|
"children"
|
|
1333
1672
|
]);
|
|
1334
|
-
return /* @__PURE__ */
|
|
1673
|
+
return /* @__PURE__ */ d(
|
|
1335
1674
|
"div",
|
|
1336
|
-
|
|
1675
|
+
v(m({
|
|
1337
1676
|
ref: f,
|
|
1338
|
-
className:
|
|
1677
|
+
className: l(
|
|
1339
1678
|
"w-full",
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1679
|
+
Ke[a],
|
|
1680
|
+
o(n, "px"),
|
|
1681
|
+
o(t, "py"),
|
|
1682
|
+
i && "mx-auto",
|
|
1344
1683
|
r
|
|
1345
1684
|
)
|
|
1346
1685
|
}, c), {
|
|
@@ -1349,17 +1688,17 @@ const Ve = H($e), Ne = {
|
|
|
1349
1688
|
);
|
|
1350
1689
|
}
|
|
1351
1690
|
);
|
|
1352
|
-
|
|
1353
|
-
const
|
|
1354
|
-
(
|
|
1355
|
-
var
|
|
1691
|
+
Xe.displayName = "Container";
|
|
1692
|
+
const Ye = re.forwardRef(
|
|
1693
|
+
(p, f) => {
|
|
1694
|
+
var b = p, {
|
|
1356
1695
|
className: r,
|
|
1357
1696
|
spacing: a = "base",
|
|
1358
|
-
align:
|
|
1697
|
+
align: n = "stretch",
|
|
1359
1698
|
justify: t = "start",
|
|
1360
|
-
direction:
|
|
1699
|
+
direction: i = "column",
|
|
1361
1700
|
children: s
|
|
1362
|
-
} =
|
|
1701
|
+
} = b, c = h(b, [
|
|
1363
1702
|
"className",
|
|
1364
1703
|
"spacing",
|
|
1365
1704
|
"align",
|
|
@@ -1367,12 +1706,12 @@ const Me = Q.forwardRef(
|
|
|
1367
1706
|
"direction",
|
|
1368
1707
|
"children"
|
|
1369
1708
|
]);
|
|
1370
|
-
const u =
|
|
1709
|
+
const u = i === "column" ? o(a, "gap-y") : o(a, "gap-x"), x = {
|
|
1371
1710
|
start: "items-start",
|
|
1372
1711
|
center: "items-center",
|
|
1373
1712
|
end: "items-end",
|
|
1374
1713
|
stretch: "items-stretch"
|
|
1375
|
-
},
|
|
1714
|
+
}, g = {
|
|
1376
1715
|
start: "justify-start",
|
|
1377
1716
|
center: "justify-center",
|
|
1378
1717
|
end: "justify-end",
|
|
@@ -1380,16 +1719,16 @@ const Me = Q.forwardRef(
|
|
|
1380
1719
|
around: "justify-around",
|
|
1381
1720
|
evenly: "justify-evenly"
|
|
1382
1721
|
};
|
|
1383
|
-
return /* @__PURE__ */
|
|
1722
|
+
return /* @__PURE__ */ d(
|
|
1384
1723
|
"div",
|
|
1385
|
-
|
|
1724
|
+
v(m({
|
|
1386
1725
|
ref: f,
|
|
1387
|
-
className:
|
|
1726
|
+
className: l(
|
|
1388
1727
|
"flex",
|
|
1389
|
-
|
|
1728
|
+
i === "column" ? "flex-col" : "flex-row",
|
|
1390
1729
|
u,
|
|
1391
|
-
x[
|
|
1392
|
-
|
|
1730
|
+
x[n],
|
|
1731
|
+
g[t],
|
|
1393
1732
|
r
|
|
1394
1733
|
)
|
|
1395
1734
|
}, c), {
|
|
@@ -1398,46 +1737,46 @@ const Me = Q.forwardRef(
|
|
|
1398
1737
|
);
|
|
1399
1738
|
}
|
|
1400
1739
|
);
|
|
1401
|
-
|
|
1402
|
-
const
|
|
1403
|
-
function({ option: a, isHighlighted:
|
|
1740
|
+
Ye.displayName = "Stack";
|
|
1741
|
+
const Ze = j(
|
|
1742
|
+
function({ option: a, isHighlighted: n, onSelect: t }, i) {
|
|
1404
1743
|
const s = () => {
|
|
1405
1744
|
a.disabled || t(a);
|
|
1406
1745
|
};
|
|
1407
|
-
return /* @__PURE__ */
|
|
1746
|
+
return /* @__PURE__ */ C(
|
|
1408
1747
|
"div",
|
|
1409
1748
|
{
|
|
1410
|
-
ref:
|
|
1749
|
+
ref: i,
|
|
1411
1750
|
role: "option",
|
|
1412
|
-
"aria-selected":
|
|
1751
|
+
"aria-selected": n,
|
|
1413
1752
|
"aria-disabled": a.disabled,
|
|
1414
1753
|
onClick: s,
|
|
1415
1754
|
className: `
|
|
1416
1755
|
flex
|
|
1417
1756
|
items-center
|
|
1418
|
-
${
|
|
1419
|
-
${
|
|
1420
|
-
${
|
|
1757
|
+
${o("sm", "gap")}
|
|
1758
|
+
${o("sm", "px")}
|
|
1759
|
+
${o("sm", "py")}
|
|
1421
1760
|
text-sm
|
|
1422
1761
|
cursor-pointer
|
|
1423
1762
|
transition-colors
|
|
1424
|
-
${
|
|
1763
|
+
${n ? "bg-surface-active" : ""}
|
|
1425
1764
|
${a.disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-surface-hover"}
|
|
1426
1765
|
`,
|
|
1427
1766
|
children: [
|
|
1428
|
-
a.icon && /* @__PURE__ */
|
|
1429
|
-
/* @__PURE__ */
|
|
1767
|
+
a.icon && /* @__PURE__ */ d("span", { className: "flex-shrink-0", children: a.icon }),
|
|
1768
|
+
/* @__PURE__ */ d("span", { className: "flex-1", children: a.label })
|
|
1430
1769
|
]
|
|
1431
1770
|
}
|
|
1432
1771
|
);
|
|
1433
1772
|
}
|
|
1434
1773
|
);
|
|
1435
|
-
|
|
1436
|
-
function
|
|
1437
|
-
var s =
|
|
1774
|
+
Ze.displayName = "AutocompleteOption";
|
|
1775
|
+
function da(i) {
|
|
1776
|
+
var s = i, {
|
|
1438
1777
|
items: r,
|
|
1439
1778
|
separator: a = "/",
|
|
1440
|
-
className:
|
|
1779
|
+
className: n = ""
|
|
1441
1780
|
} = s, t = h(s, [
|
|
1442
1781
|
"items",
|
|
1443
1782
|
"separator",
|
|
@@ -1446,167 +1785,235 @@ function He(n) {
|
|
|
1446
1785
|
const c = [
|
|
1447
1786
|
"flex",
|
|
1448
1787
|
"items-center",
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
], f =
|
|
1452
|
-
return /* @__PURE__ */
|
|
1788
|
+
o("sm", "space-x"),
|
|
1789
|
+
L("bodySmall")
|
|
1790
|
+
], f = l(...c, n);
|
|
1791
|
+
return /* @__PURE__ */ d("nav", v(m({ "aria-label": "Breadcrumb", className: f }, t), { children: /* @__PURE__ */ d(
|
|
1453
1792
|
"ol",
|
|
1454
1793
|
{
|
|
1455
|
-
className:
|
|
1456
|
-
children: r.map((
|
|
1457
|
-
const u =
|
|
1458
|
-
return /* @__PURE__ */
|
|
1459
|
-
|
|
1794
|
+
className: l("flex", "items-center", o("sm", "space-x")),
|
|
1795
|
+
children: r.map((p, b) => {
|
|
1796
|
+
const u = b === r.length - 1;
|
|
1797
|
+
return /* @__PURE__ */ C("li", { className: "flex items-center", children: [
|
|
1798
|
+
b > 0 && /* @__PURE__ */ d(
|
|
1460
1799
|
"span",
|
|
1461
1800
|
{
|
|
1462
|
-
className:
|
|
1463
|
-
|
|
1801
|
+
className: l(
|
|
1802
|
+
o("sm", "mx"),
|
|
1464
1803
|
"text-fg-tertiary"
|
|
1465
1804
|
),
|
|
1466
1805
|
"aria-hidden": "true",
|
|
1467
1806
|
children: a
|
|
1468
1807
|
}
|
|
1469
1808
|
),
|
|
1470
|
-
u ? /* @__PURE__ */
|
|
1809
|
+
u ? /* @__PURE__ */ d(
|
|
1471
1810
|
"span",
|
|
1472
1811
|
{
|
|
1473
|
-
className:
|
|
1812
|
+
className: l(
|
|
1474
1813
|
"text-fg-primary",
|
|
1475
|
-
|
|
1814
|
+
B("label")
|
|
1476
1815
|
),
|
|
1477
1816
|
"aria-current": "page",
|
|
1478
|
-
children:
|
|
1817
|
+
children: p.label
|
|
1479
1818
|
}
|
|
1480
|
-
) :
|
|
1819
|
+
) : p.href ? /* @__PURE__ */ d(
|
|
1481
1820
|
"a",
|
|
1482
1821
|
{
|
|
1483
|
-
href:
|
|
1484
|
-
className:
|
|
1822
|
+
href: p.href,
|
|
1823
|
+
className: l(
|
|
1485
1824
|
"inline-flex",
|
|
1486
1825
|
"items-center",
|
|
1487
|
-
|
|
1488
|
-
|
|
1826
|
+
o("xs", "px"),
|
|
1827
|
+
o("xs", "pt"),
|
|
1489
1828
|
"border-b-2",
|
|
1490
1829
|
"border-transparent",
|
|
1491
|
-
|
|
1492
|
-
|
|
1830
|
+
L("bodySmall"),
|
|
1831
|
+
B("label"),
|
|
1493
1832
|
"transition-colors",
|
|
1494
1833
|
"text-fg-secondary",
|
|
1495
1834
|
"hover:border-line-emphasis",
|
|
1496
1835
|
"hover:text-fg-primary"
|
|
1497
1836
|
),
|
|
1498
|
-
children:
|
|
1837
|
+
children: p.label
|
|
1499
1838
|
}
|
|
1500
|
-
) : /* @__PURE__ */
|
|
1501
|
-
] },
|
|
1839
|
+
) : /* @__PURE__ */ d("span", { className: "text-fg-secondary", children: p.label })
|
|
1840
|
+
] }, b);
|
|
1502
1841
|
})
|
|
1503
1842
|
}
|
|
1504
1843
|
) }));
|
|
1505
1844
|
}
|
|
1506
|
-
|
|
1507
|
-
var
|
|
1845
|
+
const Ge = H(function(b) {
|
|
1846
|
+
var u = b, {
|
|
1847
|
+
variant: a = "default",
|
|
1848
|
+
padding: n = "medium",
|
|
1849
|
+
className: t = "",
|
|
1850
|
+
onClick: i,
|
|
1851
|
+
"aria-label": s,
|
|
1852
|
+
"aria-labelledby": c,
|
|
1853
|
+
children: f
|
|
1854
|
+
} = u, p = h(u, [
|
|
1855
|
+
"variant",
|
|
1856
|
+
"padding",
|
|
1857
|
+
"className",
|
|
1858
|
+
"onClick",
|
|
1859
|
+
"aria-label",
|
|
1860
|
+
"aria-labelledby",
|
|
1861
|
+
"children"
|
|
1862
|
+
]);
|
|
1863
|
+
const x = R(
|
|
1864
|
+
l(
|
|
1865
|
+
"bg-surface-base",
|
|
1866
|
+
M("lg"),
|
|
1867
|
+
"border",
|
|
1868
|
+
"border-line-default",
|
|
1869
|
+
X("sm")
|
|
1870
|
+
),
|
|
1871
|
+
{
|
|
1872
|
+
variants: {
|
|
1873
|
+
variant: {
|
|
1874
|
+
default: "",
|
|
1875
|
+
hover: l(
|
|
1876
|
+
`hover:${X("md")}`,
|
|
1877
|
+
"transition-shadow",
|
|
1878
|
+
"cursor-pointer"
|
|
1879
|
+
),
|
|
1880
|
+
selected: l("border-line-brand", X("md"))
|
|
1881
|
+
},
|
|
1882
|
+
padding: {
|
|
1883
|
+
none: "",
|
|
1884
|
+
small: o("xs", "p"),
|
|
1885
|
+
medium: o("base", "p"),
|
|
1886
|
+
large: o("lg", "p")
|
|
1887
|
+
}
|
|
1888
|
+
},
|
|
1889
|
+
defaultVariants: {
|
|
1890
|
+
variant: "default",
|
|
1891
|
+
padding: "medium"
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
), g = i !== void 0, y = g ? "button" : void 0, T = g ? 0 : void 0, z = l(x({ variant: a, padding: n }), t);
|
|
1895
|
+
return /* @__PURE__ */ d(
|
|
1896
|
+
"div",
|
|
1897
|
+
v(m({
|
|
1898
|
+
className: z,
|
|
1899
|
+
role: y,
|
|
1900
|
+
tabIndex: T,
|
|
1901
|
+
onClick: i,
|
|
1902
|
+
onKeyDown: (_) => {
|
|
1903
|
+
g && (_.key === "Enter" || _.key === " ") && (_.preventDefault(), i == null || i());
|
|
1904
|
+
},
|
|
1905
|
+
"aria-label": s,
|
|
1906
|
+
"aria-labelledby": c
|
|
1907
|
+
}, p), {
|
|
1908
|
+
children: f
|
|
1909
|
+
})
|
|
1910
|
+
);
|
|
1911
|
+
});
|
|
1912
|
+
Ge.displayName = "Card";
|
|
1913
|
+
function ca(t) {
|
|
1914
|
+
var i = t, {
|
|
1508
1915
|
children: r,
|
|
1509
1916
|
className: a = ""
|
|
1510
|
-
} =
|
|
1917
|
+
} = i, n = h(i, [
|
|
1511
1918
|
"children",
|
|
1512
1919
|
"className"
|
|
1513
1920
|
]);
|
|
1514
|
-
return /* @__PURE__ */
|
|
1921
|
+
return /* @__PURE__ */ d(
|
|
1515
1922
|
"div",
|
|
1516
|
-
|
|
1517
|
-
className: `flex flex-col ${
|
|
1518
|
-
},
|
|
1923
|
+
v(m({
|
|
1924
|
+
className: `flex flex-col ${o("1.5", "space-y")} ${o("lg", "p")} ${o("base", "pb")} ${a}`
|
|
1925
|
+
}, n), {
|
|
1519
1926
|
children: r
|
|
1520
1927
|
})
|
|
1521
1928
|
);
|
|
1522
1929
|
}
|
|
1523
|
-
function
|
|
1524
|
-
var
|
|
1930
|
+
function fa(t) {
|
|
1931
|
+
var i = t, {
|
|
1525
1932
|
children: r,
|
|
1526
1933
|
className: a = ""
|
|
1527
|
-
} =
|
|
1934
|
+
} = i, n = h(i, [
|
|
1528
1935
|
"children",
|
|
1529
1936
|
"className"
|
|
1530
1937
|
]);
|
|
1531
|
-
return /* @__PURE__ */
|
|
1938
|
+
return /* @__PURE__ */ d(
|
|
1532
1939
|
"div",
|
|
1533
|
-
|
|
1534
|
-
className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${
|
|
1535
|
-
},
|
|
1940
|
+
v(m({
|
|
1941
|
+
className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${o("sm", "space-x")} ${o("lg", "p")} ${o("base", "pt")} ${a}`
|
|
1942
|
+
}, n), {
|
|
1536
1943
|
children: r
|
|
1537
1944
|
})
|
|
1538
1945
|
);
|
|
1539
1946
|
}
|
|
1540
|
-
function
|
|
1541
|
-
var
|
|
1947
|
+
function pa(t) {
|
|
1948
|
+
var i = t, {
|
|
1542
1949
|
children: r,
|
|
1543
1950
|
className: a = ""
|
|
1544
|
-
} =
|
|
1951
|
+
} = i, n = h(i, [
|
|
1545
1952
|
"children",
|
|
1546
1953
|
"className"
|
|
1547
1954
|
]);
|
|
1548
|
-
return /* @__PURE__ */
|
|
1955
|
+
return /* @__PURE__ */ d(
|
|
1549
1956
|
"div",
|
|
1550
|
-
|
|
1957
|
+
v(m({
|
|
1551
1958
|
className: `
|
|
1552
|
-
${
|
|
1959
|
+
${o("lg", "p")}
|
|
1553
1960
|
border-b
|
|
1554
1961
|
border-line-default
|
|
1555
1962
|
${a}
|
|
1556
1963
|
`
|
|
1557
|
-
},
|
|
1964
|
+
}, n), {
|
|
1558
1965
|
children: r
|
|
1559
1966
|
})
|
|
1560
1967
|
);
|
|
1561
1968
|
}
|
|
1562
|
-
function
|
|
1563
|
-
var
|
|
1969
|
+
function ua(t) {
|
|
1970
|
+
var i = t, {
|
|
1564
1971
|
children: r,
|
|
1565
1972
|
className: a = ""
|
|
1566
|
-
} =
|
|
1973
|
+
} = i, n = h(i, [
|
|
1567
1974
|
"children",
|
|
1568
1975
|
"className"
|
|
1569
1976
|
]);
|
|
1570
|
-
return /* @__PURE__ */
|
|
1977
|
+
return /* @__PURE__ */ d(
|
|
1571
1978
|
"div",
|
|
1572
|
-
|
|
1979
|
+
v(m({
|
|
1573
1980
|
className: `
|
|
1574
|
-
${
|
|
1981
|
+
${o("lg", "p")}
|
|
1575
1982
|
border-t
|
|
1576
1983
|
border-line-default
|
|
1577
1984
|
flex
|
|
1578
1985
|
justify-end
|
|
1579
|
-
${
|
|
1986
|
+
${o("sm", "gap")}
|
|
1580
1987
|
${a}
|
|
1581
1988
|
`
|
|
1582
|
-
},
|
|
1989
|
+
}, n), {
|
|
1583
1990
|
children: r
|
|
1584
1991
|
})
|
|
1585
1992
|
);
|
|
1586
1993
|
}
|
|
1587
|
-
function
|
|
1588
|
-
return /* @__PURE__ */
|
|
1994
|
+
function ma({ children: r, className: a }) {
|
|
1995
|
+
return /* @__PURE__ */ d(
|
|
1589
1996
|
"div",
|
|
1590
1997
|
{
|
|
1591
|
-
className:
|
|
1998
|
+
className: l(
|
|
1592
1999
|
"flex-shrink-0 flex items-center",
|
|
1593
|
-
|
|
2000
|
+
o("sm", "gap"),
|
|
1594
2001
|
a
|
|
1595
2002
|
),
|
|
1596
2003
|
children: r
|
|
1597
2004
|
}
|
|
1598
2005
|
);
|
|
1599
2006
|
}
|
|
1600
|
-
function
|
|
2007
|
+
function ba({
|
|
1601
2008
|
children: r,
|
|
1602
2009
|
className: a
|
|
1603
2010
|
}) {
|
|
1604
|
-
return /* @__PURE__ */
|
|
2011
|
+
return /* @__PURE__ */ d(
|
|
1605
2012
|
"nav",
|
|
1606
2013
|
{
|
|
1607
|
-
className:
|
|
2014
|
+
className: l(
|
|
1608
2015
|
"flex-1 flex items-center justify-center",
|
|
1609
|
-
|
|
2016
|
+
o("base", "gap"),
|
|
1610
2017
|
"hidden md:flex",
|
|
1611
2018
|
// Hidden on mobile, visible on desktop
|
|
1612
2019
|
a
|
|
@@ -1616,48 +2023,48 @@ function Pe({
|
|
|
1616
2023
|
}
|
|
1617
2024
|
);
|
|
1618
2025
|
}
|
|
1619
|
-
function
|
|
1620
|
-
var t =
|
|
2026
|
+
function ga(n) {
|
|
2027
|
+
var t = n, {
|
|
1621
2028
|
className: r = ""
|
|
1622
2029
|
} = t, a = h(t, [
|
|
1623
2030
|
"className"
|
|
1624
2031
|
]);
|
|
1625
|
-
return /* @__PURE__ */
|
|
2032
|
+
return /* @__PURE__ */ d(
|
|
1626
2033
|
"div",
|
|
1627
|
-
|
|
2034
|
+
m({
|
|
1628
2035
|
role: "separator",
|
|
1629
2036
|
className: `
|
|
1630
2037
|
h-px
|
|
1631
2038
|
bg-line-default
|
|
1632
|
-
${
|
|
2039
|
+
${o("sm", "my")}
|
|
1633
2040
|
${r}
|
|
1634
2041
|
`
|
|
1635
2042
|
}, a)
|
|
1636
2043
|
);
|
|
1637
2044
|
}
|
|
1638
|
-
function
|
|
1639
|
-
var
|
|
2045
|
+
function xa(t) {
|
|
2046
|
+
var i = t, {
|
|
1640
2047
|
orientation: r = "horizontal",
|
|
1641
2048
|
className: a = ""
|
|
1642
|
-
} =
|
|
2049
|
+
} = i, n = h(i, [
|
|
1643
2050
|
"orientation",
|
|
1644
2051
|
"className"
|
|
1645
2052
|
]);
|
|
1646
|
-
return r === "vertical" ? /* @__PURE__ */
|
|
2053
|
+
return r === "vertical" ? /* @__PURE__ */ d(
|
|
1647
2054
|
"div",
|
|
1648
|
-
|
|
1649
|
-
className:
|
|
2055
|
+
m({
|
|
2056
|
+
className: l("w-px", "h-6", "bg-line-default", "mx-auto", a),
|
|
1650
2057
|
role: "separator",
|
|
1651
2058
|
"aria-orientation": "vertical"
|
|
1652
|
-
},
|
|
1653
|
-
) : /* @__PURE__ */
|
|
2059
|
+
}, n)
|
|
2060
|
+
) : /* @__PURE__ */ d(
|
|
1654
2061
|
"div",
|
|
1655
|
-
|
|
1656
|
-
className:
|
|
2062
|
+
m({
|
|
2063
|
+
className: l(
|
|
1657
2064
|
"w-full",
|
|
1658
2065
|
"h-px",
|
|
1659
2066
|
"bg-line-default",
|
|
1660
|
-
|
|
2067
|
+
o("sm", "my"),
|
|
1661
2068
|
// my-2 (8px) para consistência com gap-2 usado em outros lugares
|
|
1662
2069
|
"flex-shrink-0",
|
|
1663
2070
|
// Prevenir que separator encolha
|
|
@@ -1670,127 +2077,127 @@ function Ke(t) {
|
|
|
1670
2077
|
willChange: "auto",
|
|
1671
2078
|
transform: "none"
|
|
1672
2079
|
}
|
|
1673
|
-
},
|
|
2080
|
+
}, n)
|
|
1674
2081
|
);
|
|
1675
2082
|
}
|
|
1676
|
-
function
|
|
1677
|
-
var s =
|
|
2083
|
+
function ya(i) {
|
|
2084
|
+
var s = i, { column: r, row: a, className: n = "" } = s, t = h(s, ["column", "row", "className"]);
|
|
1678
2085
|
const c = r.key in a ? a[r.key] : void 0;
|
|
1679
|
-
return /* @__PURE__ */
|
|
2086
|
+
return /* @__PURE__ */ d(
|
|
1680
2087
|
"td",
|
|
1681
|
-
|
|
1682
|
-
className: `${
|
|
2088
|
+
v(m({
|
|
2089
|
+
className: `${o("lg", "px")} ${o("base", "py")} whitespace-nowrap text-sm text-fg-primary ${r.hiddenOnMobile ? "hidden md:table-cell" : ""} ${n}`
|
|
1683
2090
|
}, t), {
|
|
1684
2091
|
children: r.render ? r.render(c, a) : String(c != null ? c : "")
|
|
1685
2092
|
})
|
|
1686
2093
|
);
|
|
1687
2094
|
}
|
|
1688
|
-
function
|
|
2095
|
+
function ha({
|
|
1689
2096
|
items: r,
|
|
1690
2097
|
orientation: a = "vertical",
|
|
1691
|
-
className:
|
|
2098
|
+
className: n = ""
|
|
1692
2099
|
}) {
|
|
1693
|
-
return a === "horizontal" ? /* @__PURE__ */
|
|
1694
|
-
const s = t.status || (
|
|
1695
|
-
return /* @__PURE__ */
|
|
1696
|
-
/* @__PURE__ */
|
|
2100
|
+
return a === "horizontal" ? /* @__PURE__ */ d("div", { className: `flex items-start ${n}`, children: r.map((t, i) => {
|
|
2101
|
+
const s = t.status || (i === 0 ? "active" : i < r.findIndex((f) => f.status === "active") ? "completed" : "default"), c = i === r.length - 1;
|
|
2102
|
+
return /* @__PURE__ */ d("div", { className: "flex items-start flex-1", children: /* @__PURE__ */ C("div", { className: "flex flex-col items-center flex-1", children: [
|
|
2103
|
+
/* @__PURE__ */ d(
|
|
1697
2104
|
"div",
|
|
1698
|
-
|
|
2105
|
+
v(m({}, s === "default" ? { "data-marker": "pending" } : {}), {
|
|
1699
2106
|
className: `
|
|
1700
2107
|
flex
|
|
1701
2108
|
items-center
|
|
1702
2109
|
justify-center
|
|
1703
2110
|
w-10
|
|
1704
2111
|
h-10
|
|
1705
|
-
${
|
|
2112
|
+
${M("full")}
|
|
1706
2113
|
border-2
|
|
1707
2114
|
${s === "completed" ? "bg-success border-success text-fg-inverse" : s === "active" ? "bg-surface-brand-strong border-line-brand text-fg-inverse" : s === "error" ? "bg-error border-error text-fg-inverse" : "bg-surface-base border-line-emphasis text-fg-quaternary"}
|
|
1708
2115
|
`,
|
|
1709
|
-
children: t.icon || (s === "completed" ? /* @__PURE__ */
|
|
2116
|
+
children: t.icon || (s === "completed" ? /* @__PURE__ */ d(J, { className: "h-4 w-4" }) : i + 1)
|
|
1710
2117
|
})
|
|
1711
2118
|
),
|
|
1712
|
-
!c && /* @__PURE__ */
|
|
2119
|
+
!c && /* @__PURE__ */ d(
|
|
1713
2120
|
"div",
|
|
1714
2121
|
{
|
|
1715
2122
|
className: `
|
|
1716
2123
|
w-full
|
|
1717
2124
|
h-0.5
|
|
1718
|
-
${
|
|
2125
|
+
${o("sm", "mt")}
|
|
1719
2126
|
${s === "completed" ? "bg-success" : "bg-line-emphasis"}
|
|
1720
2127
|
`
|
|
1721
2128
|
}
|
|
1722
2129
|
),
|
|
1723
|
-
/* @__PURE__ */
|
|
2130
|
+
/* @__PURE__ */ C(
|
|
1724
2131
|
"div",
|
|
1725
2132
|
{
|
|
1726
|
-
className: `${
|
|
2133
|
+
className: `${o("base", "mt")} text-center ${o("base", "px")}`,
|
|
1727
2134
|
children: [
|
|
1728
|
-
t.timestamp && /* @__PURE__ */
|
|
2135
|
+
t.timestamp && /* @__PURE__ */ d(
|
|
1729
2136
|
"p",
|
|
1730
2137
|
{
|
|
1731
|
-
className: `text-xs text-fg-tertiary ${
|
|
2138
|
+
className: `text-xs text-fg-tertiary ${o("xs", "mb")}`,
|
|
1732
2139
|
children: t.timestamp
|
|
1733
2140
|
}
|
|
1734
2141
|
),
|
|
1735
|
-
/* @__PURE__ */
|
|
1736
|
-
t.description && /* @__PURE__ */
|
|
2142
|
+
/* @__PURE__ */ d("h3", { className: "text-sm font-semibold text-fg-primary", children: t.title }),
|
|
2143
|
+
t.description && /* @__PURE__ */ d(
|
|
1737
2144
|
"p",
|
|
1738
2145
|
{
|
|
1739
|
-
className: `text-xs text-fg-secondary ${
|
|
2146
|
+
className: `text-xs text-fg-secondary ${o("xs", "mt")}`,
|
|
1740
2147
|
children: t.description
|
|
1741
2148
|
}
|
|
1742
2149
|
),
|
|
1743
|
-
t.content && /* @__PURE__ */
|
|
2150
|
+
t.content && /* @__PURE__ */ d("div", { className: o("sm", "mt"), children: t.content })
|
|
1744
2151
|
]
|
|
1745
2152
|
}
|
|
1746
2153
|
)
|
|
1747
2154
|
] }) }, t.id);
|
|
1748
|
-
}) }) : /* @__PURE__ */
|
|
1749
|
-
const s = t.status || (
|
|
1750
|
-
return /* @__PURE__ */
|
|
2155
|
+
}) }) : /* @__PURE__ */ d("div", { className: `${o("none", "space-y")} ${n}`, children: r.map((t, i) => {
|
|
2156
|
+
const s = t.status || (i === 0 ? "active" : i < r.findIndex((f) => f.status === "active") ? "completed" : "default"), c = i === r.length - 1;
|
|
2157
|
+
return /* @__PURE__ */ C(
|
|
1751
2158
|
"div",
|
|
1752
2159
|
{
|
|
1753
|
-
className: `flex items-start ${
|
|
2160
|
+
className: `flex items-start ${o("base", "gap")}`,
|
|
1754
2161
|
children: [
|
|
1755
|
-
/* @__PURE__ */
|
|
1756
|
-
/* @__PURE__ */
|
|
2162
|
+
/* @__PURE__ */ C("div", { className: "flex flex-col items-center", children: [
|
|
2163
|
+
/* @__PURE__ */ d(
|
|
1757
2164
|
"div",
|
|
1758
|
-
|
|
2165
|
+
v(m({}, s === "default" ? { "data-marker": "pending" } : {}), {
|
|
1759
2166
|
className: `
|
|
1760
2167
|
flex
|
|
1761
2168
|
items-center
|
|
1762
2169
|
justify-center
|
|
1763
2170
|
w-10
|
|
1764
2171
|
h-10
|
|
1765
|
-
${
|
|
2172
|
+
${M("full")}
|
|
1766
2173
|
border-2
|
|
1767
2174
|
${s === "completed" ? "bg-success border-success text-fg-inverse" : s === "active" ? "bg-surface-brand-strong border-line-brand text-fg-inverse" : s === "error" ? "bg-error border-error text-fg-inverse" : "bg-surface-base border-line-emphasis text-fg-quaternary"}
|
|
1768
2175
|
`,
|
|
1769
|
-
children: t.icon || (s === "completed" ? /* @__PURE__ */
|
|
2176
|
+
children: t.icon || (s === "completed" ? /* @__PURE__ */ d(J, { className: "h-4 w-4" }) : i + 1)
|
|
1770
2177
|
})
|
|
1771
2178
|
),
|
|
1772
|
-
!c && /* @__PURE__ */
|
|
2179
|
+
!c && /* @__PURE__ */ d(
|
|
1773
2180
|
"div",
|
|
1774
2181
|
{
|
|
1775
2182
|
className: `
|
|
1776
2183
|
w-0.5
|
|
1777
2184
|
flex-1
|
|
1778
2185
|
min-h-16
|
|
1779
|
-
${
|
|
2186
|
+
${o("sm", "mt")}
|
|
1780
2187
|
${s === "completed" ? "bg-success" : "bg-line-emphasis"}
|
|
1781
2188
|
`
|
|
1782
2189
|
}
|
|
1783
2190
|
)
|
|
1784
2191
|
] }),
|
|
1785
|
-
/* @__PURE__ */
|
|
1786
|
-
t.timestamp && /* @__PURE__ */
|
|
2192
|
+
/* @__PURE__ */ C("div", { className: `flex-1 ${o("xl", "pb")}`, children: [
|
|
2193
|
+
t.timestamp && /* @__PURE__ */ d(
|
|
1787
2194
|
"p",
|
|
1788
2195
|
{
|
|
1789
|
-
className: `text-xs text-fg-tertiary ${
|
|
2196
|
+
className: `text-xs text-fg-tertiary ${o("xs", "mb")}`,
|
|
1790
2197
|
children: t.timestamp
|
|
1791
2198
|
}
|
|
1792
2199
|
),
|
|
1793
|
-
/* @__PURE__ */
|
|
2200
|
+
/* @__PURE__ */ d(
|
|
1794
2201
|
"h3",
|
|
1795
2202
|
{
|
|
1796
2203
|
className: `
|
|
@@ -1801,14 +2208,14 @@ function Ge({
|
|
|
1801
2208
|
children: t.title
|
|
1802
2209
|
}
|
|
1803
2210
|
),
|
|
1804
|
-
t.description && /* @__PURE__ */
|
|
2211
|
+
t.description && /* @__PURE__ */ d(
|
|
1805
2212
|
"p",
|
|
1806
2213
|
{
|
|
1807
|
-
className: `text-sm text-fg-secondary ${
|
|
2214
|
+
className: `text-sm text-fg-secondary ${o("xs", "mt")}`,
|
|
1808
2215
|
children: t.description
|
|
1809
2216
|
}
|
|
1810
2217
|
),
|
|
1811
|
-
t.content && /* @__PURE__ */
|
|
2218
|
+
t.content && /* @__PURE__ */ d("div", { className: o("md", "mt"), children: t.content })
|
|
1812
2219
|
] })
|
|
1813
2220
|
]
|
|
1814
2221
|
},
|
|
@@ -1817,26 +2224,30 @@ function Ge({
|
|
|
1817
2224
|
}) });
|
|
1818
2225
|
}
|
|
1819
2226
|
export {
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
2227
|
+
Ze as AutocompleteOption,
|
|
2228
|
+
ye as Badge,
|
|
2229
|
+
da as Breadcrumb,
|
|
2230
|
+
Ge as Card,
|
|
2231
|
+
Le as Chip,
|
|
2232
|
+
Xe as Container,
|
|
2233
|
+
fa as DialogFooter,
|
|
2234
|
+
ca as DialogHeader,
|
|
2235
|
+
ua as DrawerFooter,
|
|
2236
|
+
pa as DrawerHeader,
|
|
2237
|
+
ia as ErrorMessage,
|
|
2238
|
+
ma as HeaderActions,
|
|
2239
|
+
ba as HeaderNavigation,
|
|
2240
|
+
sa as Info,
|
|
2241
|
+
Ae as Label,
|
|
2242
|
+
ga as MenuSeparator,
|
|
2243
|
+
xa as NavbarSeparator,
|
|
2244
|
+
Re as Progress,
|
|
2245
|
+
Be as Separator,
|
|
2246
|
+
la as Skeleton,
|
|
2247
|
+
Pe as Spinner,
|
|
2248
|
+
Ye as Stack,
|
|
2249
|
+
ya as TableCell,
|
|
2250
|
+
oa as Text,
|
|
2251
|
+
ha as Timeline
|
|
1841
2252
|
};
|
|
1842
2253
|
//# sourceMappingURL=index.js.map
|