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