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