@fabio.caffarello/react-design-system 4.0.0 → 4.1.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/ui/components/Autocomplete/Autocomplete.js +97 -86
- package/dist/granular/ui/components/Autocomplete/Autocomplete.js.map +1 -1
- package/dist/granular/ui/primitives/Button/Button.js +86 -104
- package/dist/granular/ui/primitives/Button/Button.js.map +1 -1
- package/dist/index.cjs +82 -82
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2130 -2137
- package/dist/index.js.map +1 -1
- package/dist/server/index.cjs +13 -13
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +993 -752
- package/dist/server/index.js.map +1 -1
- package/dist/ui/components/Autocomplete/Autocomplete.d.ts +21 -0
- package/dist/ui/server.d.ts +2 -0
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var r in
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
1
|
+
var ge = Object.defineProperty, xe = Object.defineProperties;
|
|
2
|
+
var be = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var B = Object.getOwnPropertySymbols;
|
|
4
|
+
var ee = Object.prototype.hasOwnProperty, ae = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var X = (e, a, r) => a in e ? ge(e, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[a] = r, u = (e, a) => {
|
|
6
|
+
for (var r in a || (a = {}))
|
|
7
|
+
ee.call(a, r) && X(e, r, a[r]);
|
|
8
|
+
if (B)
|
|
9
|
+
for (var r of B(a))
|
|
10
|
+
ae.call(a, r) && X(e, r, a[r]);
|
|
11
11
|
return e;
|
|
12
|
-
}, y = (e,
|
|
13
|
-
var
|
|
12
|
+
}, y = (e, a) => xe(e, be(a));
|
|
13
|
+
var b = (e, a) => {
|
|
14
14
|
var r = {};
|
|
15
|
-
for (var
|
|
16
|
-
|
|
17
|
-
if (e != null &&
|
|
18
|
-
for (var
|
|
19
|
-
|
|
15
|
+
for (var t in e)
|
|
16
|
+
ee.call(e, t) && a.indexOf(t) < 0 && (r[t] = e[t]);
|
|
17
|
+
if (e != null && B)
|
|
18
|
+
for (var t of B(e))
|
|
19
|
+
a.indexOf(t) < 0 && ae.call(e, t) && (r[t] = e[t]);
|
|
20
20
|
return r;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
import { jsx as l, jsxs as v } from "react/jsx-runtime";
|
|
24
|
-
import * as
|
|
25
|
-
import
|
|
26
|
-
import { clsx as
|
|
27
|
-
import { twMerge as
|
|
28
|
-
import { cva as
|
|
29
|
-
import {
|
|
22
|
+
var te = (e, a, r) => X(e, typeof a != "symbol" ? a + "" : a, r);
|
|
23
|
+
import { jsx as l, jsxs as v, Fragment as re } from "react/jsx-runtime";
|
|
24
|
+
import * as V from "react";
|
|
25
|
+
import ce, { memo as M, forwardRef as j } from "react";
|
|
26
|
+
import { clsx as he } from "clsx";
|
|
27
|
+
import { twMerge as ye } from "tailwind-merge";
|
|
28
|
+
import { cva as ve } from "class-variance-authority";
|
|
29
|
+
import { Loader2 as we, X as Ne, AlertCircle as Se, CheckCircle2 as ne } 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(a) {
|
|
35
|
+
const t = {
|
|
36
36
|
none: {
|
|
37
37
|
px: 0,
|
|
38
38
|
tailwind: "rounded-none",
|
|
@@ -73,17 +73,17 @@ class F {
|
|
|
73
73
|
tailwind: "rounded-full",
|
|
74
74
|
description: "Full radius for circular elements"
|
|
75
75
|
}
|
|
76
|
-
}[
|
|
76
|
+
}[a];
|
|
77
77
|
return {
|
|
78
|
-
value:
|
|
79
|
-
rem: `${
|
|
80
|
-
px: `${
|
|
81
|
-
tailwind:
|
|
82
|
-
description:
|
|
78
|
+
value: t.px,
|
|
79
|
+
rem: `${t.px / 16}rem`,
|
|
80
|
+
px: `${t.px}px`,
|
|
81
|
+
tailwind: t.tailwind,
|
|
82
|
+
description: t.description
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
const
|
|
86
|
+
const $e = {
|
|
87
87
|
none: F.create("none"),
|
|
88
88
|
sm: F.create("sm"),
|
|
89
89
|
md: F.create("md"),
|
|
@@ -93,27 +93,27 @@ const xe = {
|
|
|
93
93
|
"3xl": F.create("3xl"),
|
|
94
94
|
full: F.create("full")
|
|
95
95
|
};
|
|
96
|
-
function
|
|
97
|
-
return
|
|
96
|
+
function $(e) {
|
|
97
|
+
return $e[e].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
|
-
static create(
|
|
105
|
-
const r =
|
|
104
|
+
static create(a) {
|
|
105
|
+
const r = a * this.BASE_UNIT, t = r / 16;
|
|
106
106
|
return {
|
|
107
107
|
value: r,
|
|
108
|
-
rem: `${
|
|
108
|
+
rem: `${t}rem`,
|
|
109
109
|
px: `${r}px`,
|
|
110
|
-
tailwind: this.getTailwindClass(
|
|
110
|
+
tailwind: this.getTailwindClass(a)
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
113
|
/**
|
|
114
114
|
* Get Tailwind class for spacing value
|
|
115
115
|
*/
|
|
116
|
-
static getTailwindClass(
|
|
116
|
+
static getTailwindClass(a) {
|
|
117
117
|
return {
|
|
118
118
|
0: "0",
|
|
119
119
|
0.5: "0.5",
|
|
@@ -160,49 +160,49 @@ class S {
|
|
|
160
160
|
// 320px
|
|
161
161
|
96: "96"
|
|
162
162
|
// 384px
|
|
163
|
-
}[
|
|
163
|
+
}[a] || String(a);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
|
|
167
|
-
const
|
|
166
|
+
te(k, "BASE_UNIT", 4);
|
|
167
|
+
const ke = {
|
|
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 i(e,
|
|
205
|
-
const
|
|
204
|
+
function i(e, a = "p") {
|
|
205
|
+
const t = ke[e].tailwind;
|
|
206
206
|
return `${{
|
|
207
207
|
p: "p",
|
|
208
208
|
m: "m",
|
|
@@ -223,14 +223,14 @@ function i(e, t = "p") {
|
|
|
223
223
|
"gap-y": "gap-y",
|
|
224
224
|
"space-x": "space-x",
|
|
225
225
|
"space-y": "space-y"
|
|
226
|
-
}[
|
|
226
|
+
}[a]}-${t}`;
|
|
227
227
|
}
|
|
228
|
-
class
|
|
228
|
+
class C {
|
|
229
229
|
/**
|
|
230
230
|
* Create font size token
|
|
231
231
|
*/
|
|
232
|
-
static createFontSize(
|
|
233
|
-
const
|
|
232
|
+
static createFontSize(a) {
|
|
233
|
+
const t = {
|
|
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,103 +243,103 @@ 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
|
+
}[a];
|
|
247
247
|
return {
|
|
248
|
-
value:
|
|
249
|
-
rem: `${
|
|
250
|
-
px: `${
|
|
251
|
-
tailwind:
|
|
248
|
+
value: t.px,
|
|
249
|
+
rem: `${t.px / 16}rem`,
|
|
250
|
+
px: `${t.px}px`,
|
|
251
|
+
tailwind: t.tailwind
|
|
252
252
|
};
|
|
253
253
|
}
|
|
254
254
|
/**
|
|
255
255
|
* Create line height token
|
|
256
256
|
*/
|
|
257
|
-
static createLineHeight(
|
|
258
|
-
const
|
|
257
|
+
static createLineHeight(a) {
|
|
258
|
+
const t = {
|
|
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
|
+
}[a];
|
|
266
266
|
return {
|
|
267
|
-
value:
|
|
268
|
-
tailwind:
|
|
267
|
+
value: t.value,
|
|
268
|
+
tailwind: t.tailwind
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
271
|
/**
|
|
272
272
|
* Create font weight token
|
|
273
273
|
*/
|
|
274
|
-
static createFontWeight(
|
|
275
|
-
const
|
|
274
|
+
static createFontWeight(a) {
|
|
275
|
+
const t = {
|
|
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
|
+
}[a];
|
|
282
282
|
return {
|
|
283
|
-
value:
|
|
284
|
-
tailwind:
|
|
283
|
+
value: t.value,
|
|
284
|
+
tailwind: t.tailwind
|
|
285
285
|
};
|
|
286
286
|
}
|
|
287
287
|
/**
|
|
288
288
|
* Create complete typography token
|
|
289
289
|
*/
|
|
290
|
-
static create(
|
|
290
|
+
static create(a, r = "normal", t = "normal") {
|
|
291
291
|
return {
|
|
292
|
-
fontSize: this.createFontSize(
|
|
292
|
+
fontSize: this.createFontSize(a),
|
|
293
293
|
lineHeight: this.createLineHeight(r),
|
|
294
|
-
fontWeight: this.createFontWeight(
|
|
294
|
+
fontWeight: this.createFontWeight(t)
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
|
-
|
|
299
|
-
const
|
|
298
|
+
C.createFontWeight("light"), C.createFontWeight("normal"), C.createFontWeight("medium"), C.createFontWeight("semibold"), C.createFontWeight("bold");
|
|
299
|
+
const G = {
|
|
300
300
|
// Headings
|
|
301
|
-
h1:
|
|
302
|
-
h2:
|
|
303
|
-
h3:
|
|
304
|
-
h4:
|
|
305
|
-
h5:
|
|
306
|
-
h6:
|
|
301
|
+
h1: C.create("4xl", "tight", "bold"),
|
|
302
|
+
h2: C.create("3xl", "tight", "bold"),
|
|
303
|
+
h3: C.create("2xl", "snug", "semibold"),
|
|
304
|
+
h4: C.create("xl", "snug", "semibold"),
|
|
305
|
+
h5: C.create("lg", "normal", "medium"),
|
|
306
|
+
h6: C.create("base", "normal", "medium"),
|
|
307
307
|
// Body text
|
|
308
|
-
body:
|
|
309
|
-
bodySmall:
|
|
310
|
-
bodyLarge:
|
|
308
|
+
body: C.create("base", "relaxed", "normal"),
|
|
309
|
+
bodySmall: C.create("sm", "relaxed", "normal"),
|
|
310
|
+
bodyLarge: C.create("lg", "relaxed", "normal"),
|
|
311
311
|
// UI elements
|
|
312
|
-
label:
|
|
313
|
-
caption:
|
|
314
|
-
button:
|
|
312
|
+
label: C.create("sm", "normal", "medium"),
|
|
313
|
+
caption: C.create("xs", "normal", "normal"),
|
|
314
|
+
button: C.create("base", "normal", "medium")
|
|
315
315
|
};
|
|
316
|
-
function
|
|
317
|
-
const
|
|
318
|
-
return `${
|
|
316
|
+
function D(e) {
|
|
317
|
+
const a = G[e];
|
|
318
|
+
return `${a.fontSize.tailwind} ${a.lineHeight.tailwind} ${a.fontWeight.tailwind}`;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
321
|
-
return
|
|
320
|
+
function S(e) {
|
|
321
|
+
return G[e].fontSize.tailwind;
|
|
322
322
|
}
|
|
323
|
-
function
|
|
324
|
-
return
|
|
323
|
+
function O(e) {
|
|
324
|
+
return G[e].fontWeight.tailwind;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
327
|
-
return
|
|
326
|
+
function s(...e) {
|
|
327
|
+
return ye(he(e));
|
|
328
328
|
}
|
|
329
|
-
const
|
|
330
|
-
const r =
|
|
331
|
-
return ((
|
|
332
|
-
const
|
|
333
|
-
return n
|
|
329
|
+
const L = (e, a) => {
|
|
330
|
+
const r = ve(e, a);
|
|
331
|
+
return ((t) => {
|
|
332
|
+
const n = r(t);
|
|
333
|
+
return s(n);
|
|
334
334
|
});
|
|
335
|
-
},
|
|
335
|
+
}, Ce = L(
|
|
336
336
|
// Base classes
|
|
337
|
-
|
|
337
|
+
s(
|
|
338
338
|
"inline-flex",
|
|
339
339
|
"items-center",
|
|
340
340
|
"justify-center",
|
|
341
|
-
|
|
342
|
-
|
|
341
|
+
O("label"),
|
|
342
|
+
$("md"),
|
|
343
343
|
"border"
|
|
344
344
|
),
|
|
345
345
|
{
|
|
@@ -354,20 +354,20 @@ const V = (e, t) => {
|
|
|
354
354
|
secondary: ""
|
|
355
355
|
},
|
|
356
356
|
size: {
|
|
357
|
-
sm:
|
|
357
|
+
sm: s(
|
|
358
358
|
i("1.5", "px"),
|
|
359
359
|
i("0.5", "py"),
|
|
360
|
-
|
|
360
|
+
S("caption")
|
|
361
361
|
),
|
|
362
|
-
md:
|
|
362
|
+
md: s(
|
|
363
363
|
i("sm", "px"),
|
|
364
364
|
i("xs", "py"),
|
|
365
|
-
|
|
365
|
+
S("caption")
|
|
366
366
|
),
|
|
367
|
-
lg:
|
|
367
|
+
lg: s(
|
|
368
368
|
i("sm", "px"),
|
|
369
369
|
i("xs", "py"),
|
|
370
|
-
|
|
370
|
+
S("bodySmall")
|
|
371
371
|
)
|
|
372
372
|
},
|
|
373
373
|
style: {
|
|
@@ -380,32 +380,32 @@ const V = (e, t) => {
|
|
|
380
380
|
{
|
|
381
381
|
variant: "success",
|
|
382
382
|
style: "solid",
|
|
383
|
-
class:
|
|
383
|
+
class: s("bg-success-bg", "text-success-dark", "border-success")
|
|
384
384
|
},
|
|
385
385
|
{
|
|
386
386
|
variant: "warning",
|
|
387
387
|
style: "solid",
|
|
388
|
-
class:
|
|
388
|
+
class: s("bg-warning-bg", "text-warning-dark", "border-warning")
|
|
389
389
|
},
|
|
390
390
|
{
|
|
391
391
|
variant: "error",
|
|
392
392
|
style: "solid",
|
|
393
|
-
class:
|
|
393
|
+
class: s("bg-error-bg", "text-error-dark", "border-error")
|
|
394
394
|
},
|
|
395
395
|
{
|
|
396
396
|
variant: "info",
|
|
397
397
|
style: "solid",
|
|
398
|
-
class:
|
|
398
|
+
class: s("bg-info-bg", "text-info-dark", "border-info")
|
|
399
399
|
},
|
|
400
400
|
{
|
|
401
401
|
variant: "neutral",
|
|
402
402
|
style: "solid",
|
|
403
|
-
class:
|
|
403
|
+
class: s("bg-surface-muted", "text-fg-primary", "border-line-default")
|
|
404
404
|
},
|
|
405
405
|
{
|
|
406
406
|
variant: "primary",
|
|
407
407
|
style: "solid",
|
|
408
|
-
class:
|
|
408
|
+
class: s(
|
|
409
409
|
"bg-surface-brand-subtle",
|
|
410
410
|
"text-fg-brand-emphasis",
|
|
411
411
|
"border-line-brand"
|
|
@@ -417,7 +417,7 @@ const V = (e, t) => {
|
|
|
417
417
|
// bg-pink-300: secondary solid badge — no semantic equivalent
|
|
418
418
|
// (would shift 2 shades to bg-surface-secondary). Kept literal until
|
|
419
419
|
// secondary brand surface palette expands beyond DEFAULT.
|
|
420
|
-
class:
|
|
420
|
+
class: s(
|
|
421
421
|
"bg-pink-300",
|
|
422
422
|
"text-fg-brand-secondary-emphasis",
|
|
423
423
|
"border-line-secondary"
|
|
@@ -427,37 +427,37 @@ const V = (e, t) => {
|
|
|
427
427
|
{
|
|
428
428
|
variant: "success",
|
|
429
429
|
style: "outline",
|
|
430
|
-
class:
|
|
430
|
+
class: s("bg-transparent", "border-success", "text-fg-success")
|
|
431
431
|
},
|
|
432
432
|
{
|
|
433
433
|
variant: "warning",
|
|
434
434
|
style: "outline",
|
|
435
|
-
class:
|
|
435
|
+
class: s("bg-transparent", "border-warning", "text-fg-warning")
|
|
436
436
|
},
|
|
437
437
|
{
|
|
438
438
|
variant: "error",
|
|
439
439
|
style: "outline",
|
|
440
|
-
class:
|
|
440
|
+
class: s("bg-transparent", "border-error", "text-fg-error")
|
|
441
441
|
},
|
|
442
442
|
{
|
|
443
443
|
variant: "info",
|
|
444
444
|
style: "outline",
|
|
445
|
-
class:
|
|
445
|
+
class: s("bg-transparent", "border-info", "text-fg-info")
|
|
446
446
|
},
|
|
447
447
|
{
|
|
448
448
|
variant: "neutral",
|
|
449
449
|
style: "outline",
|
|
450
|
-
class:
|
|
450
|
+
class: s("bg-transparent", "border-line-default", "text-fg-secondary")
|
|
451
451
|
},
|
|
452
452
|
{
|
|
453
453
|
variant: "primary",
|
|
454
454
|
style: "outline",
|
|
455
|
-
class:
|
|
455
|
+
class: s("bg-transparent", "border-line-brand", "text-fg-brand")
|
|
456
456
|
},
|
|
457
457
|
{
|
|
458
458
|
variant: "secondary",
|
|
459
459
|
style: "outline",
|
|
460
|
-
class:
|
|
460
|
+
class: s(
|
|
461
461
|
"bg-transparent",
|
|
462
462
|
"border-line-secondary",
|
|
463
463
|
"text-fg-brand-secondary"
|
|
@@ -470,16 +470,16 @@ const V = (e, t) => {
|
|
|
470
470
|
style: "solid"
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
),
|
|
474
|
-
|
|
475
|
-
var
|
|
476
|
-
variant:
|
|
473
|
+
), Ee = M(
|
|
474
|
+
j(function(x, p) {
|
|
475
|
+
var m = x, {
|
|
476
|
+
variant: a = "neutral",
|
|
477
477
|
size: r = "md",
|
|
478
|
-
style:
|
|
479
|
-
className:
|
|
478
|
+
style: t = "solid",
|
|
479
|
+
className: n = "",
|
|
480
480
|
children: o,
|
|
481
481
|
"aria-label": c
|
|
482
|
-
} =
|
|
482
|
+
} = m, d = b(m, [
|
|
483
483
|
"variant",
|
|
484
484
|
"size",
|
|
485
485
|
"style",
|
|
@@ -487,15 +487,15 @@ const V = (e, t) => {
|
|
|
487
487
|
"children",
|
|
488
488
|
"aria-label"
|
|
489
489
|
]);
|
|
490
|
-
const
|
|
490
|
+
const h = s(Ce({ variant: a, size: r, style: t }), n);
|
|
491
491
|
let f;
|
|
492
492
|
if (c)
|
|
493
493
|
f = c;
|
|
494
494
|
else if (typeof o == "string")
|
|
495
495
|
f = o;
|
|
496
496
|
else if (typeof o == "object" && o !== null && "props" in o) {
|
|
497
|
-
const
|
|
498
|
-
|
|
497
|
+
const g = o.props;
|
|
498
|
+
g != null && g.children && typeof g.children == "string" && (f = g.children);
|
|
499
499
|
}
|
|
500
500
|
return /* @__PURE__ */ l(
|
|
501
501
|
"span",
|
|
@@ -503,132 +503,434 @@ const V = (e, t) => {
|
|
|
503
503
|
ref: p,
|
|
504
504
|
role: "status",
|
|
505
505
|
"aria-label": f,
|
|
506
|
-
className:
|
|
506
|
+
className: h
|
|
507
507
|
}, d), {
|
|
508
508
|
children: o
|
|
509
509
|
})
|
|
510
510
|
);
|
|
511
511
|
})
|
|
512
512
|
);
|
|
513
|
-
|
|
514
|
-
function
|
|
513
|
+
Ee.displayName = "Badge";
|
|
514
|
+
function se(e, a) {
|
|
515
515
|
if (typeof e == "function")
|
|
516
|
-
return e(
|
|
517
|
-
e != null && (e.current =
|
|
516
|
+
return e(a);
|
|
517
|
+
e != null && (e.current = a);
|
|
518
518
|
}
|
|
519
|
-
function
|
|
520
|
-
return (
|
|
519
|
+
function Te(...e) {
|
|
520
|
+
return (a) => {
|
|
521
521
|
let r = !1;
|
|
522
|
-
const
|
|
523
|
-
const o =
|
|
522
|
+
const t = e.map((n) => {
|
|
523
|
+
const o = se(n, a);
|
|
524
524
|
return !r && typeof o == "function" && (r = !0), o;
|
|
525
525
|
});
|
|
526
526
|
if (r)
|
|
527
527
|
return () => {
|
|
528
|
-
for (let
|
|
529
|
-
const o =
|
|
530
|
-
typeof o == "function" ? o() :
|
|
528
|
+
for (let n = 0; n < t.length; n++) {
|
|
529
|
+
const o = t[n];
|
|
530
|
+
typeof o == "function" ? o() : se(e[n], null);
|
|
531
531
|
}
|
|
532
532
|
};
|
|
533
533
|
};
|
|
534
534
|
}
|
|
535
|
-
function
|
|
536
|
-
return
|
|
535
|
+
function Ve(...e) {
|
|
536
|
+
return V.useCallback(Te(...e), e);
|
|
537
537
|
}
|
|
538
538
|
// @__NO_SIDE_EFFECTS__
|
|
539
|
-
function
|
|
540
|
-
const
|
|
541
|
-
var
|
|
542
|
-
let f = r, { children:
|
|
539
|
+
function Ae(e) {
|
|
540
|
+
const a = V.forwardRef((r, t) => {
|
|
541
|
+
var g;
|
|
542
|
+
let f = r, { children: n } = f, o = b(f, ["children"]), c = null, d = !1;
|
|
543
543
|
const p = [];
|
|
544
|
-
|
|
544
|
+
ie(n) && typeof I == "function" && (n = I(n._payload)), V.Children.forEach(n, (w) => {
|
|
545
545
|
var N;
|
|
546
|
-
if (
|
|
546
|
+
if (Re(w)) {
|
|
547
547
|
d = !0;
|
|
548
|
-
const
|
|
549
|
-
let
|
|
550
|
-
|
|
548
|
+
const E = w;
|
|
549
|
+
let T = "child" in E.props ? E.props.child : E.props.children;
|
|
550
|
+
ie(T) && typeof I == "function" && (T = I(T._payload)), c = Fe(E, T), p.push((N = c == null ? void 0 : c.props) == null ? void 0 : N.children);
|
|
551
551
|
} else
|
|
552
552
|
p.push(w);
|
|
553
|
-
}), c ? c =
|
|
553
|
+
}), c ? c = V.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
|
-
!d &&
|
|
558
|
+
!d && V.Children.count(n) === 1 && V.isValidElement(n) && (c = n)
|
|
559
559
|
);
|
|
560
|
-
const
|
|
560
|
+
const x = c ? je(c) : void 0, m = Ve(t, x);
|
|
561
561
|
if (!c) {
|
|
562
|
-
if (
|
|
562
|
+
if (n || n === 0)
|
|
563
563
|
throw new Error(
|
|
564
|
-
d ?
|
|
564
|
+
d ? He(e) : Me(e)
|
|
565
565
|
);
|
|
566
|
-
return
|
|
566
|
+
return n;
|
|
567
567
|
}
|
|
568
|
-
const
|
|
569
|
-
return c.type !==
|
|
568
|
+
const h = De(o, (g = c.props) != null ? g : {});
|
|
569
|
+
return c.type !== V.Fragment && (h.ref = t ? m : x), V.cloneElement(c, h);
|
|
570
570
|
});
|
|
571
|
-
return
|
|
571
|
+
return a.displayName = `${e}.Slot`, a;
|
|
572
|
+
}
|
|
573
|
+
var de = /* @__PURE__ */ Ae("Slot"), ue = /* @__PURE__ */ Symbol.for("radix.slottable");
|
|
574
|
+
// @__NO_SIDE_EFFECTS__
|
|
575
|
+
function Le(e) {
|
|
576
|
+
const a = (r) => "child" in r ? r.children(r.child) : r.children;
|
|
577
|
+
return a.displayName = `${e}.Slottable`, a.__radixId = ue, a;
|
|
572
578
|
}
|
|
573
|
-
var
|
|
579
|
+
var ze = /* @__PURE__ */ Le("Slottable"), Fe = (e, a) => {
|
|
574
580
|
if ("child" in e.props) {
|
|
575
581
|
const r = e.props.child;
|
|
576
|
-
return
|
|
582
|
+
return V.isValidElement(r) ? V.cloneElement(r, void 0, e.props.children(r.props.children)) : null;
|
|
577
583
|
}
|
|
578
|
-
return
|
|
584
|
+
return V.isValidElement(a) ? a : null;
|
|
579
585
|
};
|
|
580
|
-
function
|
|
581
|
-
const r = u({},
|
|
582
|
-
for (const
|
|
583
|
-
const
|
|
584
|
-
/^on[A-Z]/.test(
|
|
586
|
+
function De(e, a) {
|
|
587
|
+
const r = u({}, a);
|
|
588
|
+
for (const t in a) {
|
|
589
|
+
const n = e[t], o = a[t];
|
|
590
|
+
/^on[A-Z]/.test(t) ? n && o ? r[t] = (...d) => {
|
|
585
591
|
const p = o(...d);
|
|
586
|
-
return
|
|
587
|
-
} :
|
|
592
|
+
return n(...d), p;
|
|
593
|
+
} : n && (r[t] = n) : t === "style" ? r[t] = u(u({}, n), o) : t === "className" && (r[t] = [n, o].filter(Boolean).join(" "));
|
|
588
594
|
}
|
|
589
595
|
return u(u({}, e), r);
|
|
590
596
|
}
|
|
591
|
-
function
|
|
592
|
-
var
|
|
593
|
-
let
|
|
594
|
-
return r ? e.ref : (
|
|
597
|
+
function je(e) {
|
|
598
|
+
var t, n;
|
|
599
|
+
let a = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, r = a && "isReactWarning" in a && a.isReactWarning;
|
|
600
|
+
return r ? e.ref : (a = (n = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : n.get, r = a && "isReactWarning" in a && a.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
595
601
|
}
|
|
596
|
-
function
|
|
597
|
-
return
|
|
602
|
+
function Re(e) {
|
|
603
|
+
return V.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ue;
|
|
598
604
|
}
|
|
599
|
-
var
|
|
600
|
-
function
|
|
601
|
-
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof ===
|
|
605
|
+
var _e = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
606
|
+
function ie(e) {
|
|
607
|
+
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === _e && "_payload" in e && Oe(e._payload);
|
|
602
608
|
}
|
|
603
|
-
function
|
|
609
|
+
function Oe(e) {
|
|
604
610
|
return typeof e == "object" && e !== null && "then" in e;
|
|
605
611
|
}
|
|
606
|
-
var
|
|
607
|
-
const
|
|
612
|
+
var Me = (e) => `${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`, He = (e) => `${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, I = V[" use ".trim().toString()];
|
|
613
|
+
const Pe = L("motion-safe:animate-spin", {
|
|
614
|
+
variants: {
|
|
615
|
+
size: {
|
|
616
|
+
sm: "h-4 w-4",
|
|
617
|
+
md: "h-5 w-5",
|
|
618
|
+
lg: "h-8 w-8"
|
|
619
|
+
},
|
|
620
|
+
variant: {
|
|
621
|
+
primary: "text-fg-brand",
|
|
622
|
+
secondary: "text-fg-brand-secondary",
|
|
623
|
+
neutral: "text-fg-secondary"
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
defaultVariants: {
|
|
627
|
+
size: "md",
|
|
628
|
+
variant: "primary"
|
|
629
|
+
}
|
|
630
|
+
}), fe = M(function(c) {
|
|
631
|
+
var d = c, {
|
|
632
|
+
size: a = "md",
|
|
633
|
+
variant: r = "primary",
|
|
634
|
+
label: t,
|
|
635
|
+
className: n = ""
|
|
636
|
+
} = d, o = b(d, [
|
|
637
|
+
"size",
|
|
638
|
+
"variant",
|
|
639
|
+
"label",
|
|
640
|
+
"className"
|
|
641
|
+
]);
|
|
642
|
+
return /* @__PURE__ */ v(
|
|
643
|
+
"div",
|
|
644
|
+
y(u({
|
|
645
|
+
className: s("inline-flex", "items-center", n),
|
|
646
|
+
role: "status",
|
|
647
|
+
"aria-label": t || "Loading",
|
|
648
|
+
"aria-live": "polite"
|
|
649
|
+
}, o), {
|
|
650
|
+
children: [
|
|
651
|
+
/* @__PURE__ */ l(
|
|
652
|
+
we,
|
|
653
|
+
{
|
|
654
|
+
className: s(Pe({ size: a, variant: r })),
|
|
655
|
+
"aria-hidden": "true"
|
|
656
|
+
}
|
|
657
|
+
),
|
|
658
|
+
t && /* @__PURE__ */ l(
|
|
659
|
+
"span",
|
|
660
|
+
{
|
|
661
|
+
className: s(
|
|
662
|
+
i("sm", "ml"),
|
|
663
|
+
S("bodySmall"),
|
|
664
|
+
"text-fg-secondary",
|
|
665
|
+
"sr-only"
|
|
666
|
+
),
|
|
667
|
+
children: t
|
|
668
|
+
}
|
|
669
|
+
)
|
|
670
|
+
]
|
|
671
|
+
})
|
|
672
|
+
);
|
|
673
|
+
});
|
|
674
|
+
fe.displayName = "Spinner";
|
|
675
|
+
const We = L(
|
|
676
|
+
// Base classes
|
|
677
|
+
s(
|
|
678
|
+
"inline-flex",
|
|
679
|
+
"items-center",
|
|
680
|
+
"justify-center",
|
|
681
|
+
D("button").split(" ")[2] || "font-medium",
|
|
682
|
+
// Extract font-medium
|
|
683
|
+
$("md"),
|
|
684
|
+
"transition-colors",
|
|
685
|
+
"focus:outline-none",
|
|
686
|
+
"focus:ring-2",
|
|
687
|
+
"focus:ring-offset-2",
|
|
688
|
+
"disabled:opacity-50",
|
|
689
|
+
"disabled:cursor-not-allowed"
|
|
690
|
+
),
|
|
691
|
+
{
|
|
692
|
+
variants: {
|
|
693
|
+
variant: {
|
|
694
|
+
primary: s(
|
|
695
|
+
"bg-surface-brand-strong",
|
|
696
|
+
"text-fg-inverse",
|
|
697
|
+
"hover:opacity-90",
|
|
698
|
+
"focus:ring-line-brand"
|
|
699
|
+
),
|
|
700
|
+
secondary: s(
|
|
701
|
+
"bg-surface-secondary",
|
|
702
|
+
"text-fg-inverse",
|
|
703
|
+
"hover:opacity-90",
|
|
704
|
+
"focus:ring-line-secondary"
|
|
705
|
+
),
|
|
706
|
+
error: s(
|
|
707
|
+
"bg-error",
|
|
708
|
+
"text-fg-inverse",
|
|
709
|
+
"hover:opacity-90",
|
|
710
|
+
"focus:ring-error"
|
|
711
|
+
),
|
|
712
|
+
outline: s(
|
|
713
|
+
"border-2",
|
|
714
|
+
"border-line-default",
|
|
715
|
+
"bg-transparent",
|
|
716
|
+
"text-fg-primary",
|
|
717
|
+
"hover:bg-surface-hover",
|
|
718
|
+
"focus:ring-line-focus"
|
|
719
|
+
),
|
|
720
|
+
ghost: s(
|
|
721
|
+
"bg-transparent",
|
|
722
|
+
"text-fg-primary",
|
|
723
|
+
"hover:bg-surface-hover",
|
|
724
|
+
"focus:ring-line-focus"
|
|
725
|
+
),
|
|
726
|
+
iconOnly: s(
|
|
727
|
+
"bg-transparent",
|
|
728
|
+
"text-fg-primary",
|
|
729
|
+
"hover:bg-surface-hover",
|
|
730
|
+
"focus:ring-line-focus",
|
|
731
|
+
i("none", "p")
|
|
732
|
+
),
|
|
733
|
+
// Textual call-to-action — brand-coloured text, underline on
|
|
734
|
+
// hover, no chrome (no surface, no border). Padding is zeroed
|
|
735
|
+
// out per size in compoundVariants so the bounding box hugs
|
|
736
|
+
// the text (height intrinsic). Issue #156.
|
|
737
|
+
//
|
|
738
|
+
// Focus ring: `focus:ring-line-focus` keeps the same focus
|
|
739
|
+
// family the other no-chrome variants use (ghost, outline,
|
|
740
|
+
// iconOnly). The base's `focus:ring-2` + `focus:ring-offset-2`
|
|
741
|
+
// produce a 2px ring 2px away from the text bounding box; the
|
|
742
|
+
// 2px offset is rendered in surface-base so the ring contrasts
|
|
743
|
+
// against surface (≥3:1 for WCAG 2.4.11, verified) rather than
|
|
744
|
+
// colliding with the brand-coloured text. The element keeps
|
|
745
|
+
// `getRadiusClass("md")` from the base, which is invisible
|
|
746
|
+
// without chrome but rounds the focus ring corners.
|
|
747
|
+
//
|
|
748
|
+
// hover:underline pairs with `underline-offset-4` so the
|
|
749
|
+
// underline that appears on hover sits clear of the descenders
|
|
750
|
+
// (WCAG-aligned with link best practice). At rest the link
|
|
751
|
+
// carries no underline — the brand colour alone signals
|
|
752
|
+
// affordance, matching the shadcn convention this variant is
|
|
753
|
+
// modelled on (see issue body).
|
|
754
|
+
//
|
|
755
|
+
// disabled: inherits opacity-50 + cursor-not-allowed from the
|
|
756
|
+
// base. We do NOT special-case `disabled:no-underline` because
|
|
757
|
+
// a disabled link should still receive the same visual
|
|
758
|
+
// treatment as a disabled chrome variant — the opacity and
|
|
759
|
+
// cursor signal the disabled state.
|
|
760
|
+
link: s(
|
|
761
|
+
"bg-transparent",
|
|
762
|
+
"text-fg-brand",
|
|
763
|
+
"underline-offset-4",
|
|
764
|
+
"hover:underline",
|
|
765
|
+
"focus:ring-line-focus"
|
|
766
|
+
)
|
|
767
|
+
},
|
|
768
|
+
size: {
|
|
769
|
+
sm: s(
|
|
770
|
+
i("md", "px"),
|
|
771
|
+
i("1.5", "py"),
|
|
772
|
+
S("bodySmall"),
|
|
773
|
+
i("1.5", "gap")
|
|
774
|
+
),
|
|
775
|
+
md: s(
|
|
776
|
+
i("base", "px"),
|
|
777
|
+
i("sm", "py"),
|
|
778
|
+
S("body"),
|
|
779
|
+
i("sm", "gap")
|
|
780
|
+
),
|
|
781
|
+
lg: s(
|
|
782
|
+
i("lg", "px"),
|
|
783
|
+
i("md", "py"),
|
|
784
|
+
S("bodyLarge"),
|
|
785
|
+
i("2.5", "gap")
|
|
786
|
+
)
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
compoundVariants: [
|
|
790
|
+
// IconOnly variant has different sizing
|
|
791
|
+
{
|
|
792
|
+
variant: "iconOnly",
|
|
793
|
+
size: "sm",
|
|
794
|
+
class: s("h-8", "w-8", i("none", "p"))
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
variant: "iconOnly",
|
|
798
|
+
size: "md",
|
|
799
|
+
class: s("h-10", "w-10", i("none", "p"))
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
variant: "iconOnly",
|
|
803
|
+
size: "lg",
|
|
804
|
+
class: s("h-12", "w-12", i("none", "p"))
|
|
805
|
+
},
|
|
806
|
+
// Link variant zeroes the size's padding via compoundVariants so
|
|
807
|
+
// the override runs AFTER the size block's `px-N`/`py-N` and
|
|
808
|
+
// twMerge picks the zero value (`cn` joins variant before
|
|
809
|
+
// compound). The size's typography and gap survive — the link's
|
|
810
|
+
// text scales with size and icons still get gap-N when present.
|
|
811
|
+
// Issue #156.
|
|
812
|
+
{
|
|
813
|
+
variant: "link",
|
|
814
|
+
size: "sm",
|
|
815
|
+
class: s(i("none", "px"), i("none", "py"))
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
variant: "link",
|
|
819
|
+
size: "md",
|
|
820
|
+
class: s(i("none", "px"), i("none", "py"))
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
variant: "link",
|
|
824
|
+
size: "lg",
|
|
825
|
+
class: s(i("none", "px"), i("none", "py"))
|
|
826
|
+
}
|
|
827
|
+
],
|
|
828
|
+
defaultVariants: {
|
|
829
|
+
variant: "primary",
|
|
830
|
+
size: "md"
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
);
|
|
834
|
+
function U({
|
|
835
|
+
children: e,
|
|
836
|
+
position: a
|
|
837
|
+
}) {
|
|
838
|
+
return e ? /* @__PURE__ */ l(
|
|
839
|
+
"span",
|
|
840
|
+
{
|
|
841
|
+
className: `inline-flex items-center ${a === "left" ? i("none", "mr") : i("none", "ml")}`,
|
|
842
|
+
children: e
|
|
843
|
+
}
|
|
844
|
+
) : null;
|
|
845
|
+
}
|
|
846
|
+
const Be = M(
|
|
847
|
+
j(function(T, E) {
|
|
848
|
+
var z = T, {
|
|
849
|
+
variant: a = "primary",
|
|
850
|
+
size: r = "md",
|
|
851
|
+
isLoading: t = !1,
|
|
852
|
+
loadingText: n,
|
|
853
|
+
loadingIcon: o,
|
|
854
|
+
leftIcon: c,
|
|
855
|
+
rightIcon: d,
|
|
856
|
+
fullWidth: p = !1,
|
|
857
|
+
asChild: x = !1,
|
|
858
|
+
as: m,
|
|
859
|
+
className: h = "",
|
|
860
|
+
disabled: f = !1,
|
|
861
|
+
children: g,
|
|
862
|
+
"aria-label": w
|
|
863
|
+
} = z, N = b(z, [
|
|
864
|
+
"variant",
|
|
865
|
+
"size",
|
|
866
|
+
"isLoading",
|
|
867
|
+
"loadingText",
|
|
868
|
+
"loadingIcon",
|
|
869
|
+
"leftIcon",
|
|
870
|
+
"rightIcon",
|
|
871
|
+
"fullWidth",
|
|
872
|
+
"asChild",
|
|
873
|
+
"as",
|
|
874
|
+
"className",
|
|
875
|
+
"disabled",
|
|
876
|
+
"children",
|
|
877
|
+
"aria-label"
|
|
878
|
+
]);
|
|
879
|
+
typeof process != "undefined" && process.env.NODE_ENV !== "production" && x && m !== void 0 && m !== "button" && console.warn(
|
|
880
|
+
"[Button] `as` is ignored when `asChild` is true; the child element is used as the root. Drop one of the two props to silence this warning."
|
|
881
|
+
);
|
|
882
|
+
const P = x ? de : m != null ? m : "button", W = s(
|
|
883
|
+
We({ variant: a, size: r }),
|
|
884
|
+
p && "w-full",
|
|
885
|
+
h
|
|
886
|
+
), K = (a === "iconOnly" || !g && (c || d)) && !w && !g ? "Button" : w, me = o || /* @__PURE__ */ l(fe, { size: r === "sm" ? "sm" : r === "lg" ? "lg" : "md", variant: a === "error" ? "primary" : a === "primary" || a === "secondary" ? "neutral" : "primary" }), J = !x && (m === void 0 || m === "button") && !N.type ? "button" : void 0, Q = u(u({
|
|
887
|
+
className: W,
|
|
888
|
+
disabled: f || t,
|
|
889
|
+
"aria-busy": t,
|
|
890
|
+
"aria-label": K,
|
|
891
|
+
"aria-disabled": f || t
|
|
892
|
+
}, J ? { type: J } : {}), N);
|
|
893
|
+
return x ? /* @__PURE__ */ v(P, y(u({ ref: E }, Q), { children: [
|
|
894
|
+
c && /* @__PURE__ */ l(U, { position: "left", children: c }),
|
|
895
|
+
/* @__PURE__ */ l(ze, { children: g }),
|
|
896
|
+
d && /* @__PURE__ */ l(U, { position: "right", children: d })
|
|
897
|
+
] })) : /* @__PURE__ */ l(P, y(u({ ref: E }, Q), { children: t ? /* @__PURE__ */ v(re, { children: [
|
|
898
|
+
me,
|
|
899
|
+
n && /* @__PURE__ */ l("span", { className: i("sm", "ml"), children: n }),
|
|
900
|
+
!n && g && /* @__PURE__ */ l("span", { className: `${i("sm", "ml")} opacity-0`, children: g })
|
|
901
|
+
] }) : /* @__PURE__ */ v(re, { children: [
|
|
902
|
+
c && /* @__PURE__ */ l(U, { position: "left", children: c }),
|
|
903
|
+
g,
|
|
904
|
+
d && /* @__PURE__ */ l(U, { position: "right", children: d })
|
|
905
|
+
] }) }));
|
|
906
|
+
})
|
|
907
|
+
);
|
|
908
|
+
Be.displayName = "Button";
|
|
909
|
+
const le = L(
|
|
608
910
|
// Base classes
|
|
609
|
-
|
|
911
|
+
s(
|
|
610
912
|
"inline-flex",
|
|
611
913
|
"items-center",
|
|
612
914
|
"font-medium",
|
|
613
|
-
|
|
915
|
+
$("full"),
|
|
614
916
|
i("xs", "gap")
|
|
615
917
|
),
|
|
616
918
|
{
|
|
617
919
|
variants: {
|
|
618
920
|
variant: {
|
|
619
|
-
default:
|
|
921
|
+
default: s(
|
|
620
922
|
"bg-surface-muted",
|
|
621
923
|
"text-fg-primary",
|
|
622
924
|
"border",
|
|
623
925
|
"border-line-default"
|
|
624
926
|
),
|
|
625
|
-
outlined:
|
|
927
|
+
outlined: s(
|
|
626
928
|
"bg-transparent",
|
|
627
929
|
"text-fg-primary",
|
|
628
930
|
"border",
|
|
629
931
|
"border-line-default"
|
|
630
932
|
),
|
|
631
|
-
filled:
|
|
933
|
+
filled: s(
|
|
632
934
|
"bg-surface-brand-strong",
|
|
633
935
|
"text-fg-inverse",
|
|
634
936
|
"border",
|
|
@@ -636,24 +938,24 @@ const Q = V(
|
|
|
636
938
|
)
|
|
637
939
|
},
|
|
638
940
|
size: {
|
|
639
|
-
sm:
|
|
941
|
+
sm: s(
|
|
640
942
|
i("xs", "px"),
|
|
641
943
|
i("xs", "py"),
|
|
642
|
-
|
|
944
|
+
S("caption")
|
|
643
945
|
),
|
|
644
|
-
md:
|
|
946
|
+
md: s(
|
|
645
947
|
i("sm", "px"),
|
|
646
948
|
i("xs", "py"),
|
|
647
|
-
|
|
949
|
+
S("bodySmall")
|
|
648
950
|
),
|
|
649
|
-
lg:
|
|
951
|
+
lg: s(
|
|
650
952
|
i("md", "px"),
|
|
651
953
|
i("sm", "py"),
|
|
652
|
-
|
|
954
|
+
S("body")
|
|
653
955
|
)
|
|
654
956
|
},
|
|
655
957
|
selected: {
|
|
656
|
-
true:
|
|
958
|
+
true: s(
|
|
657
959
|
"bg-surface-brand-strong",
|
|
658
960
|
"text-fg-inverse",
|
|
659
961
|
"border",
|
|
@@ -693,85 +995,85 @@ const Q = V(
|
|
|
693
995
|
disabled: !1
|
|
694
996
|
}
|
|
695
997
|
}
|
|
696
|
-
),
|
|
998
|
+
), Ie = j(function(a, r) {
|
|
697
999
|
const {
|
|
698
|
-
children:
|
|
699
|
-
variant:
|
|
1000
|
+
children: t,
|
|
1001
|
+
variant: n = "default",
|
|
700
1002
|
size: o = "md",
|
|
701
1003
|
selected: c = !1,
|
|
702
1004
|
disabled: d = !1,
|
|
703
1005
|
className: p = "",
|
|
704
|
-
"aria-label":
|
|
705
|
-
tabIndex:
|
|
706
|
-
asChild:
|
|
707
|
-
} =
|
|
708
|
-
if (
|
|
709
|
-
if (typeof
|
|
710
|
-
if (typeof
|
|
711
|
-
const A =
|
|
1006
|
+
"aria-label": x,
|
|
1007
|
+
tabIndex: m,
|
|
1008
|
+
asChild: h = !1
|
|
1009
|
+
} = a, g = (() => {
|
|
1010
|
+
if (x) return x;
|
|
1011
|
+
if (typeof t == "string") return t;
|
|
1012
|
+
if (typeof t == "object" && t !== null && "props" in t) {
|
|
1013
|
+
const A = t.props;
|
|
712
1014
|
if (A != null && A.children && typeof A.children == "string")
|
|
713
1015
|
return A.children;
|
|
714
1016
|
}
|
|
715
1017
|
})();
|
|
716
|
-
if (
|
|
1018
|
+
if (h)
|
|
717
1019
|
return /* @__PURE__ */ l(
|
|
718
|
-
|
|
1020
|
+
de,
|
|
719
1021
|
{
|
|
720
1022
|
ref: r,
|
|
721
|
-
className:
|
|
722
|
-
|
|
1023
|
+
className: s(
|
|
1024
|
+
le({ variant: n, size: o, selected: c, disabled: d }),
|
|
723
1025
|
p
|
|
724
1026
|
),
|
|
725
|
-
"aria-label":
|
|
1027
|
+
"aria-label": x,
|
|
726
1028
|
"aria-disabled": d || void 0,
|
|
727
|
-
tabIndex:
|
|
728
|
-
children:
|
|
1029
|
+
tabIndex: m,
|
|
1030
|
+
children: t
|
|
729
1031
|
}
|
|
730
1032
|
);
|
|
731
|
-
const { onRemove: w, onClick: N, count:
|
|
1033
|
+
const { onRemove: w, onClick: N, count: E } = a, T = N !== void 0, z = T && !d, P = (A) => {
|
|
732
1034
|
d || (A.key === "Enter" || A.key === " ") && (A.preventDefault(), N == null || N());
|
|
733
|
-
},
|
|
1035
|
+
}, W = E !== void 0, Y = c || n === "filled", K = W ? /* @__PURE__ */ l(
|
|
734
1036
|
"span",
|
|
735
1037
|
{
|
|
736
|
-
"aria-hidden":
|
|
737
|
-
className:
|
|
1038
|
+
"aria-hidden": T || void 0,
|
|
1039
|
+
className: s(
|
|
738
1040
|
"inline-flex",
|
|
739
1041
|
"items-center",
|
|
740
1042
|
"justify-center",
|
|
741
1043
|
"tabular-nums",
|
|
742
1044
|
"leading-none",
|
|
743
|
-
|
|
1045
|
+
$("full"),
|
|
744
1046
|
i("xs", "px"),
|
|
745
1047
|
i("0.5", "py"),
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
1048
|
+
S("caption"),
|
|
1049
|
+
O("label"),
|
|
1050
|
+
Y ? s("bg-surface-base", "text-fg-brand-emphasis") : s("bg-surface-brand-strong", "text-fg-inverse")
|
|
749
1051
|
),
|
|
750
|
-
children:
|
|
1052
|
+
children: E
|
|
751
1053
|
}
|
|
752
|
-
) : null,
|
|
1054
|
+
) : null, Z = W && g !== void 0 ? `${g}, ${E}` : g;
|
|
753
1055
|
return /* @__PURE__ */ v(
|
|
754
1056
|
"div",
|
|
755
1057
|
{
|
|
756
1058
|
ref: r,
|
|
757
|
-
className:
|
|
758
|
-
|
|
1059
|
+
className: s(
|
|
1060
|
+
le({ variant: n, size: o, selected: c, disabled: d }),
|
|
759
1061
|
w && i("xs", "pr"),
|
|
760
1062
|
p
|
|
761
1063
|
),
|
|
762
1064
|
"aria-disabled": d,
|
|
763
1065
|
children: [
|
|
764
|
-
|
|
1066
|
+
T ? /* @__PURE__ */ l(
|
|
765
1067
|
"button",
|
|
766
1068
|
{
|
|
767
1069
|
type: "button",
|
|
768
1070
|
onClick: d ? void 0 : N,
|
|
769
|
-
onKeyDown:
|
|
1071
|
+
onKeyDown: P,
|
|
770
1072
|
disabled: d,
|
|
771
1073
|
"aria-pressed": c ? !0 : void 0,
|
|
772
|
-
"aria-label":
|
|
773
|
-
tabIndex:
|
|
774
|
-
className:
|
|
1074
|
+
"aria-label": x || Z,
|
|
1075
|
+
tabIndex: m !== void 0 ? m : z ? 0 : void 0,
|
|
1076
|
+
className: s(
|
|
775
1077
|
"flex-1",
|
|
776
1078
|
"bg-transparent",
|
|
777
1079
|
"border-0",
|
|
@@ -783,12 +1085,12 @@ const Q = V(
|
|
|
783
1085
|
"focus:ring-2",
|
|
784
1086
|
"focus:ring-line-focus",
|
|
785
1087
|
"focus:ring-offset-2",
|
|
786
|
-
|
|
1088
|
+
$("full")
|
|
787
1089
|
),
|
|
788
|
-
children:
|
|
1090
|
+
children: t
|
|
789
1091
|
}
|
|
790
|
-
) : /* @__PURE__ */ l("span", { children:
|
|
791
|
-
|
|
1092
|
+
) : /* @__PURE__ */ l("span", { children: t }),
|
|
1093
|
+
K,
|
|
792
1094
|
w && !d && /* @__PURE__ */ l(
|
|
793
1095
|
"button",
|
|
794
1096
|
{
|
|
@@ -796,10 +1098,10 @@ const Q = V(
|
|
|
796
1098
|
onClick: (A) => {
|
|
797
1099
|
A.stopPropagation(), w();
|
|
798
1100
|
},
|
|
799
|
-
className:
|
|
1101
|
+
className: s(
|
|
800
1102
|
i("xs", "ml"),
|
|
801
1103
|
"hover:bg-tint-hover",
|
|
802
|
-
|
|
1104
|
+
$("full"),
|
|
803
1105
|
i("xs", "p"),
|
|
804
1106
|
"transition-colors",
|
|
805
1107
|
"focus:outline-none",
|
|
@@ -807,101 +1109,101 @@ const Q = V(
|
|
|
807
1109
|
"focus:ring-line-focus",
|
|
808
1110
|
"focus:ring-offset-1"
|
|
809
1111
|
),
|
|
810
|
-
"aria-label": `Remove ${
|
|
811
|
-
children: /* @__PURE__ */ l(
|
|
1112
|
+
"aria-label": `Remove ${g || "chip"}`,
|
|
1113
|
+
children: /* @__PURE__ */ l(Ne, { className: "h-3 w-3", "aria-hidden": "true" })
|
|
812
1114
|
}
|
|
813
1115
|
)
|
|
814
1116
|
]
|
|
815
1117
|
}
|
|
816
1118
|
);
|
|
817
1119
|
});
|
|
818
|
-
|
|
819
|
-
function
|
|
820
|
-
var o =
|
|
1120
|
+
Ie.displayName = "Chip";
|
|
1121
|
+
function La(n) {
|
|
1122
|
+
var o = n, {
|
|
821
1123
|
message: e,
|
|
822
|
-
id:
|
|
1124
|
+
id: a,
|
|
823
1125
|
className: r = ""
|
|
824
|
-
} = o,
|
|
1126
|
+
} = o, t = b(o, [
|
|
825
1127
|
"message",
|
|
826
1128
|
"id",
|
|
827
1129
|
"className"
|
|
828
1130
|
]);
|
|
829
1131
|
const c = [
|
|
830
1132
|
i("xs", "mt"),
|
|
831
|
-
|
|
1133
|
+
S("bodySmall"),
|
|
832
1134
|
"text-fg-error",
|
|
833
1135
|
"flex",
|
|
834
1136
|
"items-center",
|
|
835
1137
|
i("xs", "gap")
|
|
836
|
-
], d =
|
|
837
|
-
return /* @__PURE__ */ v("div", y(u({ role: "alert", id:
|
|
838
|
-
/* @__PURE__ */ l(
|
|
1138
|
+
], d = s(...c, r);
|
|
1139
|
+
return /* @__PURE__ */ v("div", y(u({ role: "alert", id: a, className: d, "aria-live": "polite" }, t), { children: [
|
|
1140
|
+
/* @__PURE__ */ l(Se, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }),
|
|
839
1141
|
/* @__PURE__ */ l("span", { children: e })
|
|
840
1142
|
] }));
|
|
841
1143
|
}
|
|
842
|
-
function
|
|
843
|
-
var
|
|
1144
|
+
function za(t) {
|
|
1145
|
+
var n = t, {
|
|
844
1146
|
variant: e = "info",
|
|
845
|
-
className:
|
|
846
|
-
} =
|
|
1147
|
+
className: a
|
|
1148
|
+
} = n, r = b(n, [
|
|
847
1149
|
"variant",
|
|
848
1150
|
"className"
|
|
849
1151
|
]);
|
|
850
1152
|
const o = {
|
|
851
|
-
warning:
|
|
852
|
-
error:
|
|
853
|
-
info:
|
|
1153
|
+
warning: s("bg-warning-bg", "text-warning-dark", "border-warning"),
|
|
1154
|
+
error: s("bg-error-bg", "text-error-dark", "border-error"),
|
|
1155
|
+
info: s("bg-info-bg", "text-info-dark", "border-info")
|
|
854
1156
|
};
|
|
855
1157
|
return /* @__PURE__ */ l(
|
|
856
1158
|
"div",
|
|
857
1159
|
u({
|
|
858
1160
|
role: "alert",
|
|
859
|
-
className:
|
|
1161
|
+
className: s(
|
|
860
1162
|
"border",
|
|
861
1163
|
i("base", "px"),
|
|
862
1164
|
i("sm", "py"),
|
|
863
|
-
|
|
1165
|
+
$("lg"),
|
|
864
1166
|
o[e],
|
|
865
|
-
|
|
1167
|
+
a
|
|
866
1168
|
)
|
|
867
1169
|
}, r)
|
|
868
1170
|
);
|
|
869
1171
|
}
|
|
870
|
-
const
|
|
1172
|
+
const Ue = s(
|
|
871
1173
|
"block",
|
|
872
|
-
|
|
873
|
-
|
|
1174
|
+
S("label"),
|
|
1175
|
+
O("label"),
|
|
874
1176
|
"text-fg-primary"
|
|
875
|
-
),
|
|
1177
|
+
), Ke = {
|
|
876
1178
|
default: "",
|
|
877
|
-
required:
|
|
1179
|
+
required: s(
|
|
878
1180
|
"after:content-['*']",
|
|
879
1181
|
`after:${i("0.5", "ml")}`,
|
|
880
1182
|
"after:text-fg-error"
|
|
881
1183
|
),
|
|
882
|
-
optional:
|
|
1184
|
+
optional: s(
|
|
883
1185
|
"after:content-['(optional)']",
|
|
884
1186
|
`after:${i("xs", "ml")}`,
|
|
885
1187
|
"after:text-fg-tertiary",
|
|
886
1188
|
"after:font-normal"
|
|
887
1189
|
)
|
|
888
|
-
},
|
|
889
|
-
|
|
890
|
-
var d = c, { variant:
|
|
891
|
-
const p =
|
|
892
|
-
|
|
893
|
-
|
|
1190
|
+
}, Xe = M(
|
|
1191
|
+
j(function(c, o) {
|
|
1192
|
+
var d = c, { variant: a = "default", className: r = "", children: t } = d, n = b(d, ["variant", "className", "children"]);
|
|
1193
|
+
const p = s(
|
|
1194
|
+
Ue,
|
|
1195
|
+
Ke[a],
|
|
894
1196
|
r
|
|
895
1197
|
);
|
|
896
|
-
return /* @__PURE__ */ l("label", y(u({ ref: o, className: p },
|
|
1198
|
+
return /* @__PURE__ */ l("label", y(u({ ref: o, className: p }, n), { children: t }));
|
|
897
1199
|
})
|
|
898
1200
|
);
|
|
899
|
-
|
|
900
|
-
class
|
|
1201
|
+
Xe.displayName = "Label";
|
|
1202
|
+
class R {
|
|
901
1203
|
/**
|
|
902
1204
|
* Create a shadow token
|
|
903
1205
|
*/
|
|
904
|
-
static create(
|
|
1206
|
+
static create(a) {
|
|
905
1207
|
return {
|
|
906
1208
|
none: {
|
|
907
1209
|
value: "none",
|
|
@@ -938,22 +1240,22 @@ class j {
|
|
|
938
1240
|
tailwind: "shadow-inner",
|
|
939
1241
|
description: "Inner shadow for inset elements"
|
|
940
1242
|
}
|
|
941
|
-
}[
|
|
1243
|
+
}[a];
|
|
942
1244
|
}
|
|
943
1245
|
}
|
|
944
|
-
const
|
|
945
|
-
none:
|
|
946
|
-
sm:
|
|
947
|
-
md:
|
|
948
|
-
lg:
|
|
949
|
-
xl:
|
|
950
|
-
"2xl":
|
|
951
|
-
inner:
|
|
1246
|
+
const qe = {
|
|
1247
|
+
none: R.create("none"),
|
|
1248
|
+
sm: R.create("sm"),
|
|
1249
|
+
md: R.create("md"),
|
|
1250
|
+
lg: R.create("lg"),
|
|
1251
|
+
xl: R.create("xl"),
|
|
1252
|
+
"2xl": R.create("2xl"),
|
|
1253
|
+
inner: R.create("inner")
|
|
952
1254
|
};
|
|
953
|
-
function
|
|
954
|
-
return
|
|
1255
|
+
function q(e) {
|
|
1256
|
+
return qe[e].tailwind;
|
|
955
1257
|
}
|
|
956
|
-
const
|
|
1258
|
+
const Ge = L("w-full", {
|
|
957
1259
|
variants: {
|
|
958
1260
|
size: {
|
|
959
1261
|
sm: "h-1",
|
|
@@ -973,7 +1275,7 @@ const Me = V("w-full", {
|
|
|
973
1275
|
size: "md",
|
|
974
1276
|
variant: "primary"
|
|
975
1277
|
}
|
|
976
|
-
}),
|
|
1278
|
+
}), oe = L("transition-all", {
|
|
977
1279
|
variants: {
|
|
978
1280
|
variant: {
|
|
979
1281
|
primary: "bg-surface-brand",
|
|
@@ -987,17 +1289,17 @@ const Me = V("w-full", {
|
|
|
987
1289
|
defaultVariants: {
|
|
988
1290
|
variant: "primary"
|
|
989
1291
|
}
|
|
990
|
-
}),
|
|
991
|
-
var f =
|
|
992
|
-
value:
|
|
1292
|
+
}), Ye = j(function(h, m) {
|
|
1293
|
+
var f = h, {
|
|
1294
|
+
value: a,
|
|
993
1295
|
max: r = 100,
|
|
994
|
-
variant:
|
|
995
|
-
size:
|
|
1296
|
+
variant: t = "primary",
|
|
1297
|
+
size: n = "md",
|
|
996
1298
|
showLabel: o = !1,
|
|
997
1299
|
label: c,
|
|
998
1300
|
"aria-label": d,
|
|
999
1301
|
className: p = ""
|
|
1000
|
-
} = f,
|
|
1302
|
+
} = f, x = b(f, [
|
|
1001
1303
|
"value",
|
|
1002
1304
|
"max",
|
|
1003
1305
|
"variant",
|
|
@@ -1007,12 +1309,12 @@ const Me = V("w-full", {
|
|
|
1007
1309
|
"aria-label",
|
|
1008
1310
|
"className"
|
|
1009
1311
|
]);
|
|
1010
|
-
const
|
|
1011
|
-
return /* @__PURE__ */ v("div", y(u({ ref:
|
|
1012
|
-
o && (c || !
|
|
1312
|
+
const g = a === void 0, w = g ? void 0 : Math.min(Math.max(a / r * 100, 0), 100), N = d || (g ? "Loading in progress" : `Progress: ${w == null ? void 0 : w.toFixed(0)}%`);
|
|
1313
|
+
return /* @__PURE__ */ v("div", y(u({ ref: m, className: s("w-full", p) }, x), { children: [
|
|
1314
|
+
o && (c || !g) && /* @__PURE__ */ v(
|
|
1013
1315
|
"div",
|
|
1014
1316
|
{
|
|
1015
|
-
className:
|
|
1317
|
+
className: s(
|
|
1016
1318
|
"flex",
|
|
1017
1319
|
"items-center",
|
|
1018
1320
|
"justify-between",
|
|
@@ -1022,19 +1324,19 @@ const Me = V("w-full", {
|
|
|
1022
1324
|
c && /* @__PURE__ */ l(
|
|
1023
1325
|
"span",
|
|
1024
1326
|
{
|
|
1025
|
-
className:
|
|
1026
|
-
|
|
1027
|
-
|
|
1327
|
+
className: s(
|
|
1328
|
+
S("bodySmall"),
|
|
1329
|
+
O("label"),
|
|
1028
1330
|
"text-fg-primary"
|
|
1029
1331
|
),
|
|
1030
1332
|
children: c
|
|
1031
1333
|
}
|
|
1032
1334
|
),
|
|
1033
|
-
!
|
|
1335
|
+
!g && w !== void 0 && /* @__PURE__ */ v(
|
|
1034
1336
|
"span",
|
|
1035
1337
|
{
|
|
1036
|
-
className:
|
|
1037
|
-
|
|
1338
|
+
className: s(
|
|
1339
|
+
S("bodySmall"),
|
|
1038
1340
|
"text-fg-secondary"
|
|
1039
1341
|
),
|
|
1040
1342
|
children: [
|
|
@@ -1050,28 +1352,28 @@ const Me = V("w-full", {
|
|
|
1050
1352
|
"div",
|
|
1051
1353
|
{
|
|
1052
1354
|
role: "progressbar",
|
|
1053
|
-
"aria-valuemin":
|
|
1054
|
-
"aria-valuemax":
|
|
1055
|
-
"aria-valuenow":
|
|
1355
|
+
"aria-valuemin": g ? void 0 : 0,
|
|
1356
|
+
"aria-valuemax": g ? void 0 : r,
|
|
1357
|
+
"aria-valuenow": g ? void 0 : a,
|
|
1056
1358
|
"aria-label": N,
|
|
1057
|
-
"aria-busy":
|
|
1058
|
-
className:
|
|
1359
|
+
"aria-busy": g,
|
|
1360
|
+
className: s(
|
|
1059
1361
|
"relative",
|
|
1060
1362
|
"w-full",
|
|
1061
1363
|
"overflow-hidden",
|
|
1062
|
-
|
|
1063
|
-
|
|
1364
|
+
Ge({ size: n, variant: t }),
|
|
1365
|
+
$("full")
|
|
1064
1366
|
),
|
|
1065
|
-
children:
|
|
1367
|
+
children: g ? /* @__PURE__ */ l(
|
|
1066
1368
|
"div",
|
|
1067
1369
|
{
|
|
1068
|
-
className:
|
|
1370
|
+
className: s(
|
|
1069
1371
|
"absolute",
|
|
1070
1372
|
"top-0",
|
|
1071
1373
|
"left-0",
|
|
1072
1374
|
"bottom-0",
|
|
1073
|
-
|
|
1074
|
-
|
|
1375
|
+
oe({ variant: t }),
|
|
1376
|
+
$("full"),
|
|
1075
1377
|
"motion-reduce:animate-none"
|
|
1076
1378
|
),
|
|
1077
1379
|
style: {
|
|
@@ -1082,10 +1384,10 @@ const Me = V("w-full", {
|
|
|
1082
1384
|
) : /* @__PURE__ */ l(
|
|
1083
1385
|
"div",
|
|
1084
1386
|
{
|
|
1085
|
-
className:
|
|
1387
|
+
className: s(
|
|
1086
1388
|
"h-full",
|
|
1087
|
-
|
|
1088
|
-
|
|
1389
|
+
oe({ variant: t }),
|
|
1390
|
+
$("full"),
|
|
1089
1391
|
"transition-all",
|
|
1090
1392
|
"duration-300",
|
|
1091
1393
|
"ease-out"
|
|
@@ -1100,57 +1402,57 @@ const Me = V("w-full", {
|
|
|
1100
1402
|
)
|
|
1101
1403
|
] }));
|
|
1102
1404
|
});
|
|
1103
|
-
|
|
1104
|
-
const
|
|
1405
|
+
Ye.displayName = "Progress";
|
|
1406
|
+
const Ze = {
|
|
1105
1407
|
horizontal: "w-full border-t",
|
|
1106
1408
|
vertical: "h-full border-l self-stretch"
|
|
1107
|
-
},
|
|
1409
|
+
}, Je = {
|
|
1108
1410
|
solid: "border-solid",
|
|
1109
1411
|
dashed: "border-dashed",
|
|
1110
1412
|
dotted: "border-dotted"
|
|
1111
|
-
},
|
|
1413
|
+
}, Qe = M(function(o) {
|
|
1112
1414
|
var c = o, {
|
|
1113
|
-
orientation:
|
|
1415
|
+
orientation: a = "horizontal",
|
|
1114
1416
|
variant: r = "solid",
|
|
1115
|
-
className:
|
|
1116
|
-
} = c,
|
|
1417
|
+
className: t = ""
|
|
1418
|
+
} = c, n = b(c, [
|
|
1117
1419
|
"orientation",
|
|
1118
1420
|
"variant",
|
|
1119
1421
|
"className"
|
|
1120
1422
|
]);
|
|
1121
|
-
const d =
|
|
1423
|
+
const d = s(
|
|
1122
1424
|
"border-0",
|
|
1123
1425
|
"border-line-default",
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1426
|
+
Ze[a],
|
|
1427
|
+
Je[r],
|
|
1428
|
+
t
|
|
1127
1429
|
);
|
|
1128
|
-
return
|
|
1430
|
+
return a === "vertical" ? /* @__PURE__ */ l(
|
|
1129
1431
|
"div",
|
|
1130
1432
|
u({
|
|
1131
1433
|
className: d,
|
|
1132
1434
|
role: "separator",
|
|
1133
1435
|
"aria-orientation": "vertical"
|
|
1134
|
-
},
|
|
1436
|
+
}, n)
|
|
1135
1437
|
) : /* @__PURE__ */ l(
|
|
1136
1438
|
"hr",
|
|
1137
1439
|
u({
|
|
1138
1440
|
className: d,
|
|
1139
1441
|
role: "separator",
|
|
1140
1442
|
"aria-orientation": "horizontal"
|
|
1141
|
-
},
|
|
1443
|
+
}, n)
|
|
1142
1444
|
);
|
|
1143
1445
|
});
|
|
1144
|
-
|
|
1145
|
-
function
|
|
1446
|
+
Qe.displayName = "Separator";
|
|
1447
|
+
function Fa(d) {
|
|
1146
1448
|
var p = d, {
|
|
1147
1449
|
variant: e = "text",
|
|
1148
|
-
width:
|
|
1450
|
+
width: a,
|
|
1149
1451
|
height: r,
|
|
1150
|
-
lines:
|
|
1151
|
-
className:
|
|
1452
|
+
lines: t = 1,
|
|
1453
|
+
className: n = "",
|
|
1152
1454
|
"aria-label": o
|
|
1153
|
-
} = p, c =
|
|
1455
|
+
} = p, c = b(p, [
|
|
1154
1456
|
"variant",
|
|
1155
1457
|
"width",
|
|
1156
1458
|
"height",
|
|
@@ -1158,31 +1460,31 @@ function $a(d) {
|
|
|
1158
1460
|
"className",
|
|
1159
1461
|
"aria-label"
|
|
1160
1462
|
]);
|
|
1161
|
-
const
|
|
1463
|
+
const x = [
|
|
1162
1464
|
"motion-safe:animate-pulse",
|
|
1163
1465
|
"bg-surface-muted",
|
|
1164
|
-
|
|
1165
|
-
],
|
|
1466
|
+
$("sm")
|
|
1467
|
+
], m = {
|
|
1166
1468
|
text: "h-4",
|
|
1167
1469
|
card: "h-32",
|
|
1168
1470
|
list: "h-12",
|
|
1169
|
-
circle:
|
|
1170
|
-
},
|
|
1171
|
-
|
|
1172
|
-
const
|
|
1173
|
-
return e === "text" &&
|
|
1471
|
+
circle: $("full")
|
|
1472
|
+
}, h = s(...x, m[e], n), f = {};
|
|
1473
|
+
a && (f.width = a), r && (f.height = r);
|
|
1474
|
+
const g = o || `Loading ${e} content`;
|
|
1475
|
+
return e === "text" && t > 1 ? /* @__PURE__ */ l(
|
|
1174
1476
|
"div",
|
|
1175
1477
|
y(u({
|
|
1176
1478
|
className: i("sm", "space-y"),
|
|
1177
1479
|
role: "status",
|
|
1178
1480
|
"aria-busy": "true",
|
|
1179
|
-
"aria-label":
|
|
1481
|
+
"aria-label": g
|
|
1180
1482
|
}, c), {
|
|
1181
|
-
children: Array.from({ length:
|
|
1483
|
+
children: Array.from({ length: t }).map((w, N) => /* @__PURE__ */ l(
|
|
1182
1484
|
"div",
|
|
1183
1485
|
{
|
|
1184
|
-
className:
|
|
1185
|
-
style: N ===
|
|
1486
|
+
className: h,
|
|
1487
|
+
style: N === t - 1 ? { width: "75%" } : f,
|
|
1186
1488
|
"aria-hidden": "true"
|
|
1187
1489
|
},
|
|
1188
1490
|
N
|
|
@@ -1191,77 +1493,15 @@ function $a(d) {
|
|
|
1191
1493
|
) : /* @__PURE__ */ l(
|
|
1192
1494
|
"div",
|
|
1193
1495
|
u({
|
|
1194
|
-
className:
|
|
1496
|
+
className: h,
|
|
1195
1497
|
style: f,
|
|
1196
1498
|
role: "status",
|
|
1197
1499
|
"aria-busy": "true",
|
|
1198
|
-
"aria-label":
|
|
1500
|
+
"aria-label": g
|
|
1199
1501
|
}, c)
|
|
1200
1502
|
);
|
|
1201
1503
|
}
|
|
1202
|
-
const
|
|
1203
|
-
variants: {
|
|
1204
|
-
size: {
|
|
1205
|
-
sm: "h-4 w-4",
|
|
1206
|
-
md: "h-5 w-5",
|
|
1207
|
-
lg: "h-8 w-8"
|
|
1208
|
-
},
|
|
1209
|
-
variant: {
|
|
1210
|
-
primary: "text-fg-brand",
|
|
1211
|
-
secondary: "text-fg-brand-secondary",
|
|
1212
|
-
neutral: "text-fg-secondary"
|
|
1213
|
-
}
|
|
1214
|
-
},
|
|
1215
|
-
defaultVariants: {
|
|
1216
|
-
size: "md",
|
|
1217
|
-
variant: "primary"
|
|
1218
|
-
}
|
|
1219
|
-
}), Be = H(function(c) {
|
|
1220
|
-
var d = c, {
|
|
1221
|
-
size: t = "md",
|
|
1222
|
-
variant: r = "primary",
|
|
1223
|
-
label: a,
|
|
1224
|
-
className: s = ""
|
|
1225
|
-
} = d, o = m(d, [
|
|
1226
|
-
"size",
|
|
1227
|
-
"variant",
|
|
1228
|
-
"label",
|
|
1229
|
-
"className"
|
|
1230
|
-
]);
|
|
1231
|
-
return /* @__PURE__ */ v(
|
|
1232
|
-
"div",
|
|
1233
|
-
y(u({
|
|
1234
|
-
className: n("inline-flex", "items-center", s),
|
|
1235
|
-
role: "status",
|
|
1236
|
-
"aria-label": a || "Loading",
|
|
1237
|
-
"aria-live": "polite"
|
|
1238
|
-
}, o), {
|
|
1239
|
-
children: [
|
|
1240
|
-
/* @__PURE__ */ l(
|
|
1241
|
-
ge,
|
|
1242
|
-
{
|
|
1243
|
-
className: n(Oe({ size: t, variant: r })),
|
|
1244
|
-
"aria-hidden": "true"
|
|
1245
|
-
}
|
|
1246
|
-
),
|
|
1247
|
-
a && /* @__PURE__ */ l(
|
|
1248
|
-
"span",
|
|
1249
|
-
{
|
|
1250
|
-
className: n(
|
|
1251
|
-
i("sm", "ml"),
|
|
1252
|
-
k("bodySmall"),
|
|
1253
|
-
"text-fg-secondary",
|
|
1254
|
-
"sr-only"
|
|
1255
|
-
),
|
|
1256
|
-
children: a
|
|
1257
|
-
}
|
|
1258
|
-
)
|
|
1259
|
-
]
|
|
1260
|
-
})
|
|
1261
|
-
);
|
|
1262
|
-
});
|
|
1263
|
-
Be.displayName = "Spinner";
|
|
1264
|
-
const Ue = {
|
|
1504
|
+
const ea = {
|
|
1265
1505
|
primary: {
|
|
1266
1506
|
// exception: variant color — no semantic equivalent (Principle 3, .claude/rules/colors.md)
|
|
1267
1507
|
light: "text-indigo-400",
|
|
@@ -1313,16 +1553,16 @@ const Ue = {
|
|
|
1313
1553
|
contrast: "text-fg-inverse"
|
|
1314
1554
|
}
|
|
1315
1555
|
};
|
|
1316
|
-
function
|
|
1317
|
-
var
|
|
1556
|
+
function aa(x, p) {
|
|
1557
|
+
var m = x, {
|
|
1318
1558
|
variant: e = "paragraph",
|
|
1319
|
-
bold:
|
|
1559
|
+
bold: a,
|
|
1320
1560
|
italic: r,
|
|
1321
|
-
className:
|
|
1322
|
-
as:
|
|
1561
|
+
className: t,
|
|
1562
|
+
as: n,
|
|
1323
1563
|
colorRole: o = "neutral",
|
|
1324
1564
|
colorShade: c = "dark"
|
|
1325
|
-
} =
|
|
1565
|
+
} = m, d = b(m, [
|
|
1326
1566
|
"variant",
|
|
1327
1567
|
"bold",
|
|
1328
1568
|
"italic",
|
|
@@ -1331,10 +1571,10 @@ function Ke(h, p) {
|
|
|
1331
1571
|
"colorRole",
|
|
1332
1572
|
"colorShade"
|
|
1333
1573
|
]);
|
|
1334
|
-
const
|
|
1574
|
+
const h = [];
|
|
1335
1575
|
let f;
|
|
1336
|
-
if (
|
|
1337
|
-
f =
|
|
1576
|
+
if (n)
|
|
1577
|
+
f = n;
|
|
1338
1578
|
else
|
|
1339
1579
|
switch (e) {
|
|
1340
1580
|
case "heading":
|
|
@@ -1347,25 +1587,25 @@ function Ke(h, p) {
|
|
|
1347
1587
|
f = "p";
|
|
1348
1588
|
break;
|
|
1349
1589
|
}
|
|
1350
|
-
return e === "heading" ?
|
|
1590
|
+
return e === "heading" ? h.push(D("h2")) : e === "body" || e === "paragraph" ? h.push(D("body")) : e === "bodySmall" ? h.push(D("bodySmall")) : e === "bodyLarge" ? h.push(D("bodyLarge")) : e === "caption" ? h.push(D("caption")) : e === "label" ? h.push(D("label")) : h.push(D("body")), a && h.push("font-bold"), r && h.push("italic"), h.push(ea[o][c]), /* @__PURE__ */ l(f, u({ ref: p, className: s(...h, t) }, d));
|
|
1351
1591
|
}
|
|
1352
|
-
const _ =
|
|
1592
|
+
const _ = j(aa), ta = {
|
|
1353
1593
|
sm: "max-w-screen-sm",
|
|
1354
1594
|
md: "max-w-screen-md",
|
|
1355
1595
|
lg: "max-w-screen-lg",
|
|
1356
1596
|
xl: "max-w-screen-xl",
|
|
1357
1597
|
"2xl": "max-w-screen-2xl",
|
|
1358
1598
|
full: "max-w-full"
|
|
1359
|
-
},
|
|
1599
|
+
}, ra = ce.forwardRef(
|
|
1360
1600
|
(p, d) => {
|
|
1361
|
-
var
|
|
1601
|
+
var x = p, {
|
|
1362
1602
|
className: e,
|
|
1363
|
-
maxWidth:
|
|
1603
|
+
maxWidth: a = "lg",
|
|
1364
1604
|
paddingX: r = "base",
|
|
1365
|
-
paddingY:
|
|
1366
|
-
center:
|
|
1605
|
+
paddingY: t = "base",
|
|
1606
|
+
center: n = !0,
|
|
1367
1607
|
children: o
|
|
1368
|
-
} =
|
|
1608
|
+
} = x, c = b(x, [
|
|
1369
1609
|
"className",
|
|
1370
1610
|
"maxWidth",
|
|
1371
1611
|
"paddingX",
|
|
@@ -1377,12 +1617,12 @@ const _ = D(Ke), Xe = {
|
|
|
1377
1617
|
"div",
|
|
1378
1618
|
y(u({
|
|
1379
1619
|
ref: d,
|
|
1380
|
-
className:
|
|
1620
|
+
className: s(
|
|
1381
1621
|
"w-full",
|
|
1382
|
-
|
|
1622
|
+
ta[a],
|
|
1383
1623
|
i(r, "px"),
|
|
1384
|
-
i(
|
|
1385
|
-
|
|
1624
|
+
i(t, "py"),
|
|
1625
|
+
n && "mx-auto",
|
|
1386
1626
|
e
|
|
1387
1627
|
)
|
|
1388
1628
|
}, c), {
|
|
@@ -1391,17 +1631,17 @@ const _ = D(Ke), Xe = {
|
|
|
1391
1631
|
);
|
|
1392
1632
|
}
|
|
1393
1633
|
);
|
|
1394
|
-
|
|
1395
|
-
const
|
|
1634
|
+
ra.displayName = "Container";
|
|
1635
|
+
const na = ce.forwardRef(
|
|
1396
1636
|
(p, d) => {
|
|
1397
|
-
var
|
|
1637
|
+
var x = p, {
|
|
1398
1638
|
className: e,
|
|
1399
|
-
spacing:
|
|
1639
|
+
spacing: a = "base",
|
|
1400
1640
|
align: r = "stretch",
|
|
1401
|
-
justify:
|
|
1402
|
-
direction:
|
|
1641
|
+
justify: t = "start",
|
|
1642
|
+
direction: n = "column",
|
|
1403
1643
|
children: o
|
|
1404
|
-
} =
|
|
1644
|
+
} = x, c = b(x, [
|
|
1405
1645
|
"className",
|
|
1406
1646
|
"spacing",
|
|
1407
1647
|
"align",
|
|
@@ -1409,7 +1649,7 @@ const Ge = ae.forwardRef(
|
|
|
1409
1649
|
"direction",
|
|
1410
1650
|
"children"
|
|
1411
1651
|
]);
|
|
1412
|
-
const
|
|
1652
|
+
const m = n === "column" ? i(a, "gap-y") : i(a, "gap-x"), h = {
|
|
1413
1653
|
start: "items-start",
|
|
1414
1654
|
center: "items-center",
|
|
1415
1655
|
end: "items-end",
|
|
@@ -1426,12 +1666,12 @@ const Ge = ae.forwardRef(
|
|
|
1426
1666
|
"div",
|
|
1427
1667
|
y(u({
|
|
1428
1668
|
ref: d,
|
|
1429
|
-
className:
|
|
1669
|
+
className: s(
|
|
1430
1670
|
"flex",
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
f[
|
|
1671
|
+
n === "column" ? "flex-col" : "flex-row",
|
|
1672
|
+
m,
|
|
1673
|
+
h[r],
|
|
1674
|
+
f[t],
|
|
1435
1675
|
e
|
|
1436
1676
|
)
|
|
1437
1677
|
}, c), {
|
|
@@ -1440,13 +1680,13 @@ const Ge = ae.forwardRef(
|
|
|
1440
1680
|
);
|
|
1441
1681
|
}
|
|
1442
1682
|
);
|
|
1443
|
-
|
|
1444
|
-
function
|
|
1445
|
-
var o =
|
|
1683
|
+
na.displayName = "Stack";
|
|
1684
|
+
function sa(n) {
|
|
1685
|
+
var o = n, {
|
|
1446
1686
|
items: e,
|
|
1447
|
-
separator:
|
|
1687
|
+
separator: a = "/",
|
|
1448
1688
|
className: r = ""
|
|
1449
|
-
} = o,
|
|
1689
|
+
} = o, t = b(o, [
|
|
1450
1690
|
"items",
|
|
1451
1691
|
"separator",
|
|
1452
1692
|
"className"
|
|
@@ -1455,32 +1695,32 @@ function Ye(s) {
|
|
|
1455
1695
|
"flex",
|
|
1456
1696
|
"items-center",
|
|
1457
1697
|
i("sm", "space-x"),
|
|
1458
|
-
|
|
1459
|
-
], d =
|
|
1460
|
-
return /* @__PURE__ */ l("nav", y(u({ "aria-label": "Breadcrumb", className: d },
|
|
1698
|
+
S("bodySmall")
|
|
1699
|
+
], d = s(...c, r);
|
|
1700
|
+
return /* @__PURE__ */ l("nav", y(u({ "aria-label": "Breadcrumb", className: d }, t), { children: /* @__PURE__ */ l(
|
|
1461
1701
|
"ol",
|
|
1462
1702
|
{
|
|
1463
|
-
className:
|
|
1464
|
-
children: e.map((p,
|
|
1465
|
-
const
|
|
1703
|
+
className: s("flex", "items-center", i("sm", "space-x")),
|
|
1704
|
+
children: e.map((p, x) => {
|
|
1705
|
+
const m = x === e.length - 1;
|
|
1466
1706
|
return /* @__PURE__ */ v("li", { className: "flex items-center", children: [
|
|
1467
|
-
|
|
1707
|
+
x > 0 && /* @__PURE__ */ l(
|
|
1468
1708
|
"span",
|
|
1469
1709
|
{
|
|
1470
|
-
className:
|
|
1710
|
+
className: s(
|
|
1471
1711
|
i("sm", "mx"),
|
|
1472
1712
|
"text-fg-tertiary"
|
|
1473
1713
|
),
|
|
1474
1714
|
"aria-hidden": "true",
|
|
1475
|
-
children:
|
|
1715
|
+
children: a
|
|
1476
1716
|
}
|
|
1477
1717
|
),
|
|
1478
|
-
|
|
1718
|
+
m ? /* @__PURE__ */ l(
|
|
1479
1719
|
"span",
|
|
1480
1720
|
{
|
|
1481
|
-
className:
|
|
1721
|
+
className: s(
|
|
1482
1722
|
"text-fg-primary",
|
|
1483
|
-
|
|
1723
|
+
O("label")
|
|
1484
1724
|
),
|
|
1485
1725
|
"aria-current": "page",
|
|
1486
1726
|
children: p.label
|
|
@@ -1489,15 +1729,15 @@ function Ye(s) {
|
|
|
1489
1729
|
"a",
|
|
1490
1730
|
{
|
|
1491
1731
|
href: p.href,
|
|
1492
|
-
className:
|
|
1732
|
+
className: s(
|
|
1493
1733
|
"inline-flex",
|
|
1494
1734
|
"items-center",
|
|
1495
1735
|
i("xs", "px"),
|
|
1496
1736
|
i("xs", "pt"),
|
|
1497
1737
|
"border-b-2",
|
|
1498
1738
|
"border-transparent",
|
|
1499
|
-
|
|
1500
|
-
|
|
1739
|
+
S("bodySmall"),
|
|
1740
|
+
O("label"),
|
|
1501
1741
|
"transition-colors",
|
|
1502
1742
|
"text-fg-secondary",
|
|
1503
1743
|
"hover:border-line-emphasis",
|
|
@@ -1506,37 +1746,37 @@ function Ye(s) {
|
|
|
1506
1746
|
children: p.label
|
|
1507
1747
|
}
|
|
1508
1748
|
) : /* @__PURE__ */ l("span", { className: "text-fg-secondary", children: p.label })
|
|
1509
|
-
] },
|
|
1749
|
+
] }, x);
|
|
1510
1750
|
})
|
|
1511
1751
|
}
|
|
1512
1752
|
) }));
|
|
1513
1753
|
}
|
|
1514
|
-
function
|
|
1515
|
-
var
|
|
1754
|
+
function ia(t) {
|
|
1755
|
+
var n = t, { children: e, className: a } = n, r = b(n, ["children", "className"]);
|
|
1516
1756
|
return /* @__PURE__ */ l(
|
|
1517
1757
|
"div",
|
|
1518
1758
|
y(u({
|
|
1519
|
-
className:
|
|
1759
|
+
className: s(
|
|
1520
1760
|
"grid items-start",
|
|
1521
1761
|
i("1.5", "gap"),
|
|
1522
1762
|
i("base", "mb"),
|
|
1523
1763
|
"[&:has([data-card-actions])]:grid-cols-[1fr_auto]",
|
|
1524
1764
|
"[&:has([data-card-actions])>[data-card-actions]]:row-span-full",
|
|
1525
|
-
|
|
1765
|
+
a
|
|
1526
1766
|
)
|
|
1527
1767
|
}, r), {
|
|
1528
1768
|
children: e
|
|
1529
1769
|
})
|
|
1530
1770
|
);
|
|
1531
1771
|
}
|
|
1532
|
-
function
|
|
1772
|
+
function la(c) {
|
|
1533
1773
|
var d = c, {
|
|
1534
1774
|
children: e,
|
|
1535
|
-
icon:
|
|
1775
|
+
icon: a,
|
|
1536
1776
|
badge: r,
|
|
1537
|
-
as:
|
|
1538
|
-
className:
|
|
1539
|
-
} = d, o =
|
|
1777
|
+
as: t = "h2",
|
|
1778
|
+
className: n
|
|
1779
|
+
} = d, o = b(d, [
|
|
1540
1780
|
"children",
|
|
1541
1781
|
"icon",
|
|
1542
1782
|
"badge",
|
|
@@ -1544,38 +1784,38 @@ function Je(c) {
|
|
|
1544
1784
|
"className"
|
|
1545
1785
|
]);
|
|
1546
1786
|
return /* @__PURE__ */ v(
|
|
1547
|
-
|
|
1787
|
+
t,
|
|
1548
1788
|
y(u({
|
|
1549
|
-
className:
|
|
1789
|
+
className: s(
|
|
1550
1790
|
"text-base font-semibold text-fg-primary",
|
|
1551
1791
|
"flex items-center",
|
|
1552
1792
|
i("sm", "gap"),
|
|
1553
|
-
|
|
1793
|
+
n
|
|
1554
1794
|
)
|
|
1555
1795
|
}, o), {
|
|
1556
1796
|
children: [
|
|
1557
|
-
|
|
1797
|
+
a ? /* @__PURE__ */ l("span", { className: "shrink-0 inline-flex", children: a }) : null,
|
|
1558
1798
|
/* @__PURE__ */ l("span", { children: e }),
|
|
1559
1799
|
r ? /* @__PURE__ */ l("span", { className: "inline-flex", children: r }) : null
|
|
1560
1800
|
]
|
|
1561
1801
|
})
|
|
1562
1802
|
);
|
|
1563
1803
|
}
|
|
1564
|
-
function
|
|
1565
|
-
var
|
|
1804
|
+
function oa(t) {
|
|
1805
|
+
var n = t, {
|
|
1566
1806
|
children: e,
|
|
1567
|
-
className:
|
|
1568
|
-
} =
|
|
1807
|
+
className: a
|
|
1808
|
+
} = n, r = b(n, [
|
|
1569
1809
|
"children",
|
|
1570
1810
|
"className"
|
|
1571
1811
|
]);
|
|
1572
|
-
return /* @__PURE__ */ l("p", y(u({ className:
|
|
1812
|
+
return /* @__PURE__ */ l("p", y(u({ className: s("text-sm text-fg-secondary", a) }, r), { children: e }));
|
|
1573
1813
|
}
|
|
1574
|
-
function
|
|
1575
|
-
var
|
|
1814
|
+
function ca(t) {
|
|
1815
|
+
var n = t, {
|
|
1576
1816
|
children: e,
|
|
1577
|
-
className:
|
|
1578
|
-
} =
|
|
1817
|
+
className: a
|
|
1818
|
+
} = n, r = b(n, [
|
|
1579
1819
|
"children",
|
|
1580
1820
|
"className"
|
|
1581
1821
|
]);
|
|
@@ -1583,31 +1823,31 @@ function ea(a) {
|
|
|
1583
1823
|
"div",
|
|
1584
1824
|
y(u({
|
|
1585
1825
|
"data-card-actions": "",
|
|
1586
|
-
className:
|
|
1826
|
+
className: s(
|
|
1587
1827
|
"flex items-center self-start",
|
|
1588
1828
|
i("sm", "gap"),
|
|
1589
|
-
|
|
1829
|
+
a
|
|
1590
1830
|
)
|
|
1591
1831
|
}, r), {
|
|
1592
1832
|
children: e
|
|
1593
1833
|
})
|
|
1594
1834
|
);
|
|
1595
1835
|
}
|
|
1596
|
-
function
|
|
1597
|
-
var
|
|
1598
|
-
return /* @__PURE__ */ l("div", y(u({ className:
|
|
1836
|
+
function da(t) {
|
|
1837
|
+
var n = t, { children: e, className: a } = n, r = b(n, ["children", "className"]);
|
|
1838
|
+
return /* @__PURE__ */ l("div", y(u({ className: s(a) }, r), { children: e }));
|
|
1599
1839
|
}
|
|
1600
|
-
function
|
|
1601
|
-
var
|
|
1840
|
+
function ua(x) {
|
|
1841
|
+
var m = x, {
|
|
1602
1842
|
variant: e = "default",
|
|
1603
|
-
padding:
|
|
1843
|
+
padding: a = "medium",
|
|
1604
1844
|
className: r = "",
|
|
1605
|
-
onClick:
|
|
1606
|
-
"aria-label":
|
|
1845
|
+
onClick: t,
|
|
1846
|
+
"aria-label": n,
|
|
1607
1847
|
"aria-labelledby": o,
|
|
1608
1848
|
asSection: c = !1,
|
|
1609
1849
|
children: d
|
|
1610
|
-
} =
|
|
1850
|
+
} = m, p = b(m, [
|
|
1611
1851
|
"variant",
|
|
1612
1852
|
"padding",
|
|
1613
1853
|
"className",
|
|
@@ -1617,27 +1857,27 @@ function ta(h) {
|
|
|
1617
1857
|
"asSection",
|
|
1618
1858
|
"children"
|
|
1619
1859
|
]);
|
|
1620
|
-
typeof process != "undefined" && process.env.NODE_ENV !== "production" && c && !
|
|
1860
|
+
typeof process != "undefined" && process.env.NODE_ENV !== "production" && c && !n && !o && console.warn(
|
|
1621
1861
|
"[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."
|
|
1622
1862
|
);
|
|
1623
|
-
const
|
|
1624
|
-
|
|
1863
|
+
const h = L(
|
|
1864
|
+
s(
|
|
1625
1865
|
"bg-surface-base",
|
|
1626
|
-
|
|
1866
|
+
$("lg"),
|
|
1627
1867
|
"border",
|
|
1628
1868
|
"border-line-default",
|
|
1629
|
-
|
|
1869
|
+
q("sm")
|
|
1630
1870
|
),
|
|
1631
1871
|
{
|
|
1632
1872
|
variants: {
|
|
1633
1873
|
variant: {
|
|
1634
1874
|
default: "",
|
|
1635
|
-
hover:
|
|
1636
|
-
`hover:${
|
|
1875
|
+
hover: s(
|
|
1876
|
+
`hover:${q("md")}`,
|
|
1637
1877
|
"transition-shadow",
|
|
1638
1878
|
"cursor-pointer"
|
|
1639
1879
|
),
|
|
1640
|
-
selected:
|
|
1880
|
+
selected: s("border-line-brand", q("md"))
|
|
1641
1881
|
},
|
|
1642
1882
|
padding: {
|
|
1643
1883
|
none: "",
|
|
@@ -1651,66 +1891,66 @@ function ta(h) {
|
|
|
1651
1891
|
padding: "medium"
|
|
1652
1892
|
}
|
|
1653
1893
|
}
|
|
1654
|
-
), f =
|
|
1894
|
+
), f = t !== void 0, g = f ? "button" : void 0, w = f ? 0 : void 0, N = s(h({ variant: e, padding: a }), r), T = u({
|
|
1655
1895
|
className: N,
|
|
1656
|
-
role:
|
|
1896
|
+
role: g,
|
|
1657
1897
|
tabIndex: w,
|
|
1658
|
-
onClick:
|
|
1659
|
-
onKeyDown: f ? (
|
|
1660
|
-
f && (
|
|
1898
|
+
onClick: t,
|
|
1899
|
+
onKeyDown: f ? (z) => {
|
|
1900
|
+
f && (z.key === "Enter" || z.key === " ") && (z.preventDefault(), t == null || t());
|
|
1661
1901
|
} : void 0,
|
|
1662
|
-
"aria-label":
|
|
1902
|
+
"aria-label": n,
|
|
1663
1903
|
"aria-labelledby": o
|
|
1664
1904
|
}, p);
|
|
1665
|
-
return c ? /* @__PURE__ */ l("section", y(u({},
|
|
1905
|
+
return c ? /* @__PURE__ */ l("section", y(u({}, T), { children: d })) : /* @__PURE__ */ l("div", y(u({}, T), { children: d }));
|
|
1666
1906
|
}
|
|
1667
|
-
const
|
|
1668
|
-
|
|
1669
|
-
const
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
function
|
|
1676
|
-
var
|
|
1907
|
+
const pe = M(ua);
|
|
1908
|
+
pe.displayName = "Card";
|
|
1909
|
+
const H = pe;
|
|
1910
|
+
H.Header = ia;
|
|
1911
|
+
H.Title = la;
|
|
1912
|
+
H.Subtitle = oa;
|
|
1913
|
+
H.Actions = ca;
|
|
1914
|
+
H.Body = da;
|
|
1915
|
+
function Da(t) {
|
|
1916
|
+
var n = t, {
|
|
1677
1917
|
children: e,
|
|
1678
|
-
className:
|
|
1679
|
-
} =
|
|
1918
|
+
className: a = ""
|
|
1919
|
+
} = n, r = b(n, [
|
|
1680
1920
|
"children",
|
|
1681
1921
|
"className"
|
|
1682
1922
|
]);
|
|
1683
1923
|
return /* @__PURE__ */ l(
|
|
1684
1924
|
"div",
|
|
1685
1925
|
y(u({
|
|
1686
|
-
className: `flex flex-col ${i("1.5", "space-y")} ${i("lg", "p")} ${i("base", "pb")} ${
|
|
1926
|
+
className: `flex flex-col ${i("1.5", "space-y")} ${i("lg", "p")} ${i("base", "pb")} ${a}`
|
|
1687
1927
|
}, r), {
|
|
1688
1928
|
children: e
|
|
1689
1929
|
})
|
|
1690
1930
|
);
|
|
1691
1931
|
}
|
|
1692
|
-
function
|
|
1693
|
-
var
|
|
1932
|
+
function ja(t) {
|
|
1933
|
+
var n = t, {
|
|
1694
1934
|
children: e,
|
|
1695
|
-
className:
|
|
1696
|
-
} =
|
|
1935
|
+
className: a = ""
|
|
1936
|
+
} = n, r = b(n, [
|
|
1697
1937
|
"children",
|
|
1698
1938
|
"className"
|
|
1699
1939
|
]);
|
|
1700
1940
|
return /* @__PURE__ */ l(
|
|
1701
1941
|
"div",
|
|
1702
1942
|
y(u({
|
|
1703
|
-
className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${i("sm", "space-x")} ${i("lg", "p")} ${i("base", "pt")} ${
|
|
1943
|
+
className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${i("sm", "space-x")} ${i("lg", "p")} ${i("base", "pt")} ${a}`
|
|
1704
1944
|
}, r), {
|
|
1705
1945
|
children: e
|
|
1706
1946
|
})
|
|
1707
1947
|
);
|
|
1708
1948
|
}
|
|
1709
|
-
function
|
|
1710
|
-
var
|
|
1949
|
+
function Ra(t) {
|
|
1950
|
+
var n = t, {
|
|
1711
1951
|
children: e,
|
|
1712
|
-
className:
|
|
1713
|
-
} =
|
|
1952
|
+
className: a = ""
|
|
1953
|
+
} = n, r = b(n, [
|
|
1714
1954
|
"children",
|
|
1715
1955
|
"className"
|
|
1716
1956
|
]);
|
|
@@ -1721,18 +1961,18 @@ function Ea(a) {
|
|
|
1721
1961
|
${i("lg", "p")}
|
|
1722
1962
|
border-b
|
|
1723
1963
|
border-line-default
|
|
1724
|
-
${
|
|
1964
|
+
${a}
|
|
1725
1965
|
`
|
|
1726
1966
|
}, r), {
|
|
1727
1967
|
children: e
|
|
1728
1968
|
})
|
|
1729
1969
|
);
|
|
1730
1970
|
}
|
|
1731
|
-
function
|
|
1732
|
-
var
|
|
1971
|
+
function _a(t) {
|
|
1972
|
+
var n = t, {
|
|
1733
1973
|
children: e,
|
|
1734
|
-
className:
|
|
1735
|
-
} =
|
|
1974
|
+
className: a = ""
|
|
1975
|
+
} = n, r = b(n, [
|
|
1736
1976
|
"children",
|
|
1737
1977
|
"className"
|
|
1738
1978
|
]);
|
|
@@ -1746,38 +1986,38 @@ function Ta(a) {
|
|
|
1746
1986
|
flex
|
|
1747
1987
|
justify-end
|
|
1748
1988
|
${i("sm", "gap")}
|
|
1749
|
-
${
|
|
1989
|
+
${a}
|
|
1750
1990
|
`
|
|
1751
1991
|
}, r), {
|
|
1752
1992
|
children: e
|
|
1753
1993
|
})
|
|
1754
1994
|
);
|
|
1755
1995
|
}
|
|
1756
|
-
function
|
|
1996
|
+
function Oa(o) {
|
|
1757
1997
|
var c = o, {
|
|
1758
1998
|
label: e,
|
|
1759
|
-
children:
|
|
1999
|
+
children: a,
|
|
1760
2000
|
wrap: r = !0,
|
|
1761
|
-
className:
|
|
1762
|
-
} = c,
|
|
2001
|
+
className: t
|
|
2002
|
+
} = c, n = b(c, [
|
|
1763
2003
|
"label",
|
|
1764
2004
|
"children",
|
|
1765
2005
|
"wrap",
|
|
1766
2006
|
"className"
|
|
1767
2007
|
]);
|
|
1768
|
-
const p = !(
|
|
2008
|
+
const p = !(n["aria-label"] != null || n["aria-labelledby"] != null) && typeof e == "string" && e !== "" ? e : void 0;
|
|
1769
2009
|
return /* @__PURE__ */ v(
|
|
1770
2010
|
"div",
|
|
1771
2011
|
y(u({
|
|
1772
2012
|
role: "group",
|
|
1773
2013
|
"aria-label": p,
|
|
1774
|
-
className:
|
|
2014
|
+
className: s(
|
|
1775
2015
|
"flex items-center",
|
|
1776
2016
|
r ? "flex-wrap" : "flex-nowrap",
|
|
1777
2017
|
i("sm", "gap"),
|
|
1778
|
-
|
|
2018
|
+
t
|
|
1779
2019
|
)
|
|
1780
|
-
},
|
|
2020
|
+
}, n), {
|
|
1781
2021
|
children: [
|
|
1782
2022
|
e ? (
|
|
1783
2023
|
// shrink-0 keeps the label a stable leading unit: in the wrapping
|
|
@@ -1785,45 +2025,45 @@ function La(o) {
|
|
|
1785
2025
|
// chips overflow — it stays on one line and the chips wrap around it.
|
|
1786
2026
|
/* @__PURE__ */ l("span", { className: "shrink-0 text-fg-secondary text-sm", children: e })
|
|
1787
2027
|
) : null,
|
|
1788
|
-
|
|
2028
|
+
a
|
|
1789
2029
|
]
|
|
1790
2030
|
})
|
|
1791
2031
|
);
|
|
1792
2032
|
}
|
|
1793
|
-
function
|
|
2033
|
+
function Ma({ children: e, className: a }) {
|
|
1794
2034
|
return /* @__PURE__ */ l(
|
|
1795
2035
|
"div",
|
|
1796
2036
|
{
|
|
1797
|
-
className:
|
|
2037
|
+
className: s(
|
|
1798
2038
|
"flex-shrink-0 flex items-center",
|
|
1799
2039
|
i("sm", "gap"),
|
|
1800
|
-
|
|
2040
|
+
a
|
|
1801
2041
|
),
|
|
1802
2042
|
children: e
|
|
1803
2043
|
}
|
|
1804
2044
|
);
|
|
1805
2045
|
}
|
|
1806
|
-
function
|
|
2046
|
+
function Ha({
|
|
1807
2047
|
children: e,
|
|
1808
|
-
className:
|
|
2048
|
+
className: a
|
|
1809
2049
|
}) {
|
|
1810
2050
|
return /* @__PURE__ */ l(
|
|
1811
2051
|
"nav",
|
|
1812
2052
|
{
|
|
1813
|
-
className:
|
|
2053
|
+
className: s(
|
|
1814
2054
|
"flex-1 flex items-center justify-center",
|
|
1815
2055
|
i("base", "gap"),
|
|
1816
2056
|
"hidden md:flex",
|
|
1817
2057
|
// Hidden on mobile, visible on desktop
|
|
1818
|
-
|
|
2058
|
+
a
|
|
1819
2059
|
),
|
|
1820
2060
|
"aria-label": "Main navigation",
|
|
1821
2061
|
children: e
|
|
1822
2062
|
}
|
|
1823
2063
|
);
|
|
1824
2064
|
}
|
|
1825
|
-
const
|
|
1826
|
-
|
|
2065
|
+
const fa = L(
|
|
2066
|
+
s(
|
|
1827
2067
|
"w-full flex flex-col",
|
|
1828
2068
|
i("2xl", "py"),
|
|
1829
2069
|
// 40px vertical breathing room
|
|
@@ -1837,7 +2077,7 @@ const ra = V(
|
|
|
1837
2077
|
variant: {
|
|
1838
2078
|
plain: "",
|
|
1839
2079
|
gradient: "hero-gradient",
|
|
1840
|
-
"gradient-glow":
|
|
2080
|
+
"gradient-glow": s("hero-gradient", "hero-glow")
|
|
1841
2081
|
},
|
|
1842
2082
|
align: {
|
|
1843
2083
|
start: "text-left",
|
|
@@ -1849,27 +2089,27 @@ const ra = V(
|
|
|
1849
2089
|
align: "start"
|
|
1850
2090
|
}
|
|
1851
2091
|
}
|
|
1852
|
-
),
|
|
2092
|
+
), pa = {
|
|
1853
2093
|
start: "items-start",
|
|
1854
2094
|
center: "items-center"
|
|
1855
|
-
},
|
|
2095
|
+
}, ma = {
|
|
1856
2096
|
start: "justify-start",
|
|
1857
2097
|
center: "justify-center"
|
|
1858
|
-
},
|
|
1859
|
-
function(w,
|
|
2098
|
+
}, ga = j(
|
|
2099
|
+
function(w, g) {
|
|
1860
2100
|
var N = w, {
|
|
1861
|
-
kicker:
|
|
2101
|
+
kicker: a,
|
|
1862
2102
|
title: r,
|
|
1863
|
-
description:
|
|
1864
|
-
actions:
|
|
2103
|
+
description: t,
|
|
2104
|
+
actions: n,
|
|
1865
2105
|
kpis: o,
|
|
1866
2106
|
meta: c,
|
|
1867
2107
|
variant: d = "plain",
|
|
1868
2108
|
align: p = "start",
|
|
1869
|
-
className:
|
|
1870
|
-
"aria-label":
|
|
1871
|
-
"aria-labelledby":
|
|
1872
|
-
} = N, f =
|
|
2109
|
+
className: x,
|
|
2110
|
+
"aria-label": m,
|
|
2111
|
+
"aria-labelledby": h
|
|
2112
|
+
} = N, f = b(N, [
|
|
1873
2113
|
"kicker",
|
|
1874
2114
|
"title",
|
|
1875
2115
|
"description",
|
|
@@ -1882,28 +2122,28 @@ const ra = V(
|
|
|
1882
2122
|
"aria-label",
|
|
1883
2123
|
"aria-labelledby"
|
|
1884
2124
|
]);
|
|
1885
|
-
const
|
|
1886
|
-
return typeof process != "undefined" && process.env.NODE_ENV !== "production" && !
|
|
2125
|
+
const E = m != null || h != null, T = m != null ? m : typeof r == "string" ? r : void 0;
|
|
2126
|
+
return typeof process != "undefined" && process.env.NODE_ENV !== "production" && !E && typeof r != "string" && console.warn(
|
|
1887
2127
|
"[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."
|
|
1888
2128
|
), /* @__PURE__ */ v(
|
|
1889
2129
|
"section",
|
|
1890
2130
|
y(u({
|
|
1891
|
-
ref:
|
|
1892
|
-
className:
|
|
1893
|
-
"aria-label":
|
|
1894
|
-
"aria-labelledby":
|
|
2131
|
+
ref: g,
|
|
2132
|
+
className: s(fa({ variant: d, align: p }), x),
|
|
2133
|
+
"aria-label": T,
|
|
2134
|
+
"aria-labelledby": h
|
|
1895
2135
|
}, f), {
|
|
1896
2136
|
children: [
|
|
1897
2137
|
/* @__PURE__ */ v(
|
|
1898
2138
|
"div",
|
|
1899
2139
|
{
|
|
1900
|
-
className:
|
|
2140
|
+
className: s(
|
|
1901
2141
|
"flex flex-col",
|
|
1902
2142
|
i("md", "gap-y"),
|
|
1903
|
-
|
|
2143
|
+
pa[p]
|
|
1904
2144
|
),
|
|
1905
2145
|
children: [
|
|
1906
|
-
|
|
2146
|
+
a ? /* @__PURE__ */ l(
|
|
1907
2147
|
_,
|
|
1908
2148
|
{
|
|
1909
2149
|
as: "span",
|
|
@@ -1911,7 +2151,7 @@ const ra = V(
|
|
|
1911
2151
|
colorRole: "primary",
|
|
1912
2152
|
colorShade: "DEFAULT",
|
|
1913
2153
|
className: "text-sm font-semibold tracking-wide uppercase",
|
|
1914
|
-
children:
|
|
2154
|
+
children: a
|
|
1915
2155
|
}
|
|
1916
2156
|
) : null,
|
|
1917
2157
|
/* @__PURE__ */ l(
|
|
@@ -1923,7 +2163,7 @@ const ra = V(
|
|
|
1923
2163
|
children: r
|
|
1924
2164
|
}
|
|
1925
2165
|
),
|
|
1926
|
-
|
|
2166
|
+
t ? /* @__PURE__ */ l(
|
|
1927
2167
|
_,
|
|
1928
2168
|
{
|
|
1929
2169
|
as: "p",
|
|
@@ -1931,21 +2171,21 @@ const ra = V(
|
|
|
1931
2171
|
colorRole: "neutral",
|
|
1932
2172
|
colorShade: "DEFAULT",
|
|
1933
2173
|
className: "max-w-2xl text-base leading-relaxed sm:text-lg",
|
|
1934
|
-
children:
|
|
2174
|
+
children: t
|
|
1935
2175
|
}
|
|
1936
2176
|
) : null
|
|
1937
2177
|
]
|
|
1938
2178
|
}
|
|
1939
2179
|
),
|
|
1940
|
-
|
|
2180
|
+
n ? /* @__PURE__ */ l(
|
|
1941
2181
|
"div",
|
|
1942
2182
|
{
|
|
1943
|
-
className:
|
|
2183
|
+
className: s(
|
|
1944
2184
|
"flex flex-wrap",
|
|
1945
2185
|
i("sm", "gap"),
|
|
1946
|
-
|
|
2186
|
+
ma[p]
|
|
1947
2187
|
),
|
|
1948
|
-
children:
|
|
2188
|
+
children: n
|
|
1949
2189
|
}
|
|
1950
2190
|
) : null,
|
|
1951
2191
|
o ? /* @__PURE__ */ l("div", { className: "w-full", children: o }) : null,
|
|
@@ -1965,11 +2205,11 @@ const ra = V(
|
|
|
1965
2205
|
);
|
|
1966
2206
|
}
|
|
1967
2207
|
);
|
|
1968
|
-
|
|
1969
|
-
function
|
|
1970
|
-
var
|
|
2208
|
+
ga.displayName = "HeroSection";
|
|
2209
|
+
function Pa(r) {
|
|
2210
|
+
var t = r, {
|
|
1971
2211
|
className: e = ""
|
|
1972
|
-
} =
|
|
2212
|
+
} = t, a = b(t, [
|
|
1973
2213
|
"className"
|
|
1974
2214
|
]);
|
|
1975
2215
|
return /* @__PURE__ */ l(
|
|
@@ -1982,28 +2222,28 @@ function Fa(r) {
|
|
|
1982
2222
|
${i("sm", "my")}
|
|
1983
2223
|
${e}
|
|
1984
2224
|
`
|
|
1985
|
-
},
|
|
2225
|
+
}, a)
|
|
1986
2226
|
);
|
|
1987
2227
|
}
|
|
1988
|
-
function
|
|
1989
|
-
var
|
|
2228
|
+
function Wa(t) {
|
|
2229
|
+
var n = t, {
|
|
1990
2230
|
orientation: e = "horizontal",
|
|
1991
|
-
className:
|
|
1992
|
-
} =
|
|
2231
|
+
className: a = ""
|
|
2232
|
+
} = n, r = b(n, [
|
|
1993
2233
|
"orientation",
|
|
1994
2234
|
"className"
|
|
1995
2235
|
]);
|
|
1996
2236
|
return e === "vertical" ? /* @__PURE__ */ l(
|
|
1997
2237
|
"div",
|
|
1998
2238
|
u({
|
|
1999
|
-
className:
|
|
2239
|
+
className: s("w-px", "h-6", "bg-line-default", "mx-auto", a),
|
|
2000
2240
|
role: "separator",
|
|
2001
2241
|
"aria-orientation": "vertical"
|
|
2002
2242
|
}, r)
|
|
2003
2243
|
) : /* @__PURE__ */ l(
|
|
2004
2244
|
"div",
|
|
2005
2245
|
u({
|
|
2006
|
-
className:
|
|
2246
|
+
className: s(
|
|
2007
2247
|
"w-full",
|
|
2008
2248
|
"h-px",
|
|
2009
2249
|
"bg-line-default",
|
|
@@ -2011,7 +2251,7 @@ function Ra(a) {
|
|
|
2011
2251
|
// my-2 (8px) para consistência com gap-2 usado em outros lugares
|
|
2012
2252
|
"flex-shrink-0",
|
|
2013
2253
|
// Prevenir que separator encolha
|
|
2014
|
-
|
|
2254
|
+
a
|
|
2015
2255
|
),
|
|
2016
2256
|
role: "separator",
|
|
2017
2257
|
"aria-orientation": "horizontal",
|
|
@@ -2023,14 +2263,14 @@ function Ra(a) {
|
|
|
2023
2263
|
}, r)
|
|
2024
2264
|
);
|
|
2025
2265
|
}
|
|
2026
|
-
const
|
|
2266
|
+
const xa = L(
|
|
2027
2267
|
// Base classes
|
|
2028
|
-
|
|
2268
|
+
s("w-full", "flex", "flex-col", i("sm", "gap")),
|
|
2029
2269
|
{
|
|
2030
2270
|
variants: {
|
|
2031
2271
|
variant: {
|
|
2032
|
-
default:
|
|
2033
|
-
compact:
|
|
2272
|
+
default: s(i("base", "mb")),
|
|
2273
|
+
compact: s(i("sm", "mb"))
|
|
2034
2274
|
}
|
|
2035
2275
|
},
|
|
2036
2276
|
defaultVariants: {
|
|
@@ -2038,15 +2278,15 @@ const la = V(
|
|
|
2038
2278
|
}
|
|
2039
2279
|
}
|
|
2040
2280
|
);
|
|
2041
|
-
function
|
|
2281
|
+
function Ba(d) {
|
|
2042
2282
|
var p = d, {
|
|
2043
2283
|
title: e,
|
|
2044
|
-
description:
|
|
2284
|
+
description: a,
|
|
2045
2285
|
breadcrumb: r,
|
|
2046
|
-
actions:
|
|
2047
|
-
variant:
|
|
2286
|
+
actions: t,
|
|
2287
|
+
variant: n = "default",
|
|
2048
2288
|
className: o
|
|
2049
|
-
} = p, c =
|
|
2289
|
+
} = p, c = b(p, [
|
|
2050
2290
|
"title",
|
|
2051
2291
|
"description",
|
|
2052
2292
|
"breadcrumb",
|
|
@@ -2054,8 +2294,8 @@ function ja(d) {
|
|
|
2054
2294
|
"variant",
|
|
2055
2295
|
"className"
|
|
2056
2296
|
]);
|
|
2057
|
-
return /* @__PURE__ */ v("div", y(u({ className:
|
|
2058
|
-
r && r.length > 0 && /* @__PURE__ */ l(
|
|
2297
|
+
return /* @__PURE__ */ v("div", y(u({ className: s(xa({ variant: n }), o) }, c), { children: [
|
|
2298
|
+
r && r.length > 0 && /* @__PURE__ */ l(sa, { items: r }),
|
|
2059
2299
|
/* @__PURE__ */ v(
|
|
2060
2300
|
"div",
|
|
2061
2301
|
{
|
|
@@ -2071,13 +2311,13 @@ function ja(d) {
|
|
|
2071
2311
|
children: e
|
|
2072
2312
|
}
|
|
2073
2313
|
),
|
|
2074
|
-
|
|
2314
|
+
a && /* @__PURE__ */ l(_, { variant: "body", className: "text-fg-secondary", children: a })
|
|
2075
2315
|
] }),
|
|
2076
|
-
|
|
2316
|
+
t && /* @__PURE__ */ l(
|
|
2077
2317
|
"div",
|
|
2078
2318
|
{
|
|
2079
2319
|
className: `flex items-center ${i("sm", "gap")} flex-shrink-0`,
|
|
2080
|
-
children:
|
|
2320
|
+
children: t
|
|
2081
2321
|
}
|
|
2082
2322
|
)
|
|
2083
2323
|
]
|
|
@@ -2085,25 +2325,25 @@ function ja(d) {
|
|
|
2085
2325
|
)
|
|
2086
2326
|
] }));
|
|
2087
2327
|
}
|
|
2088
|
-
const
|
|
2328
|
+
const ba = {
|
|
2089
2329
|
start: "items-start text-left",
|
|
2090
2330
|
center: "items-center text-center"
|
|
2091
|
-
},
|
|
2331
|
+
}, ha = {
|
|
2092
2332
|
neutral: "text-fg-tertiary",
|
|
2093
2333
|
success: "text-fg-success",
|
|
2094
2334
|
warning: "text-fg-warning",
|
|
2095
2335
|
error: "text-fg-error"
|
|
2096
2336
|
};
|
|
2097
|
-
function
|
|
2098
|
-
var
|
|
2337
|
+
function Ia(p) {
|
|
2338
|
+
var x = p, {
|
|
2099
2339
|
value: e,
|
|
2100
|
-
label:
|
|
2340
|
+
label: a,
|
|
2101
2341
|
hint: r,
|
|
2102
|
-
icon:
|
|
2103
|
-
align:
|
|
2342
|
+
icon: t,
|
|
2343
|
+
align: n = "start",
|
|
2104
2344
|
tone: o = "neutral",
|
|
2105
2345
|
className: c
|
|
2106
|
-
} =
|
|
2346
|
+
} = x, d = b(x, [
|
|
2107
2347
|
"value",
|
|
2108
2348
|
"label",
|
|
2109
2349
|
"hint",
|
|
@@ -2112,21 +2352,21 @@ function Da(p) {
|
|
|
2112
2352
|
"tone",
|
|
2113
2353
|
"className"
|
|
2114
2354
|
]);
|
|
2115
|
-
const
|
|
2355
|
+
const m = e == null;
|
|
2116
2356
|
return /* @__PURE__ */ v(
|
|
2117
2357
|
"div",
|
|
2118
2358
|
y(u({
|
|
2119
|
-
className:
|
|
2359
|
+
className: s(
|
|
2120
2360
|
"bg-surface-base flex-1 flex flex-col",
|
|
2121
2361
|
i("base", "p"),
|
|
2122
2362
|
i("xs", "gap-y"),
|
|
2123
|
-
|
|
2363
|
+
ba[n],
|
|
2124
2364
|
c
|
|
2125
2365
|
)
|
|
2126
2366
|
}, d), {
|
|
2127
2367
|
children: [
|
|
2128
|
-
|
|
2129
|
-
|
|
2368
|
+
t ? /* @__PURE__ */ l("span", { className: "text-icon-default inline-flex", children: t }) : null,
|
|
2369
|
+
m ? /* @__PURE__ */ l(
|
|
2130
2370
|
"span",
|
|
2131
2371
|
{
|
|
2132
2372
|
"aria-label": "No data",
|
|
@@ -2134,24 +2374,24 @@ function Da(p) {
|
|
|
2134
2374
|
children: "—"
|
|
2135
2375
|
}
|
|
2136
2376
|
) : /* @__PURE__ */ l("span", { className: "text-fg-primary text-2xl font-semibold leading-tight", children: e }),
|
|
2137
|
-
/* @__PURE__ */ l("span", { className: "text-fg-secondary text-sm", children:
|
|
2138
|
-
r ? /* @__PURE__ */ l("span", { className:
|
|
2377
|
+
/* @__PURE__ */ l("span", { className: "text-fg-secondary text-sm", children: a }),
|
|
2378
|
+
r ? /* @__PURE__ */ l("span", { className: s("text-xs", ha[o]), children: r }) : null
|
|
2139
2379
|
]
|
|
2140
2380
|
})
|
|
2141
2381
|
);
|
|
2142
2382
|
}
|
|
2143
|
-
const
|
|
2383
|
+
const ya = {
|
|
2144
2384
|
2: "md:grid-cols-2",
|
|
2145
2385
|
3: "md:grid-cols-3",
|
|
2146
2386
|
4: "md:grid-cols-4"
|
|
2147
2387
|
};
|
|
2148
|
-
function
|
|
2388
|
+
function Ua(o) {
|
|
2149
2389
|
var c = o, {
|
|
2150
2390
|
layout: e = "grid",
|
|
2151
|
-
cols:
|
|
2391
|
+
cols: a = 4,
|
|
2152
2392
|
className: r,
|
|
2153
|
-
children:
|
|
2154
|
-
} = c,
|
|
2393
|
+
children: t
|
|
2394
|
+
} = c, n = b(c, [
|
|
2155
2395
|
"layout",
|
|
2156
2396
|
"cols",
|
|
2157
2397
|
"className",
|
|
@@ -2161,41 +2401,41 @@ function _a(o) {
|
|
|
2161
2401
|
return /* @__PURE__ */ l(
|
|
2162
2402
|
"div",
|
|
2163
2403
|
y(u({
|
|
2164
|
-
className:
|
|
2404
|
+
className: s(
|
|
2165
2405
|
"bg-line-default border border-line-default overflow-hidden gap-px",
|
|
2166
|
-
|
|
2167
|
-
d ? `grid grid-cols-2 ${
|
|
2406
|
+
$("lg"),
|
|
2407
|
+
d ? `grid grid-cols-2 ${ya[a]}` : "flex",
|
|
2168
2408
|
r
|
|
2169
2409
|
)
|
|
2170
|
-
},
|
|
2171
|
-
children:
|
|
2410
|
+
}, n), {
|
|
2411
|
+
children: t
|
|
2172
2412
|
})
|
|
2173
2413
|
);
|
|
2174
2414
|
}
|
|
2175
|
-
function
|
|
2176
|
-
var o =
|
|
2177
|
-
const c = e.key in
|
|
2415
|
+
function Ka(n) {
|
|
2416
|
+
var o = n, { column: e, row: a, className: r = "" } = o, t = b(o, ["column", "row", "className"]);
|
|
2417
|
+
const c = e.key in a ? a[e.key] : void 0;
|
|
2178
2418
|
return /* @__PURE__ */ l(
|
|
2179
2419
|
"td",
|
|
2180
2420
|
y(u({
|
|
2181
2421
|
className: `${i("lg", "px")} ${i("base", "py")} whitespace-nowrap text-sm text-fg-primary ${e.hiddenOnMobile ? "hidden md:table-cell" : ""} ${r}`
|
|
2182
|
-
},
|
|
2183
|
-
children: e.render ? e.render(c,
|
|
2422
|
+
}, t), {
|
|
2423
|
+
children: e.render ? e.render(c, a) : String(c != null ? c : "")
|
|
2184
2424
|
})
|
|
2185
2425
|
);
|
|
2186
2426
|
}
|
|
2187
|
-
const
|
|
2427
|
+
const va = L(s("flex items-center", "border-b"), {
|
|
2188
2428
|
variants: {
|
|
2189
2429
|
variant: {
|
|
2190
|
-
default:
|
|
2191
|
-
sub:
|
|
2430
|
+
default: s("border-line-default", i("base", "gap-x")),
|
|
2431
|
+
sub: s("border-line-muted", i("sm", "gap-x"))
|
|
2192
2432
|
}
|
|
2193
2433
|
},
|
|
2194
2434
|
defaultVariants: {
|
|
2195
2435
|
variant: "default"
|
|
2196
2436
|
}
|
|
2197
|
-
}),
|
|
2198
|
-
|
|
2437
|
+
}), wa = L(
|
|
2438
|
+
s(
|
|
2199
2439
|
"relative -mb-px inline-flex items-center",
|
|
2200
2440
|
i("xs", "gap-x"),
|
|
2201
2441
|
"border-b-2 border-transparent",
|
|
@@ -2204,25 +2444,25 @@ const ua = V(n("flex items-center", "border-b"), {
|
|
|
2204
2444
|
"focus-visible:ring-2",
|
|
2205
2445
|
"focus-visible:ring-line-focus",
|
|
2206
2446
|
"focus-visible:ring-offset-2",
|
|
2207
|
-
|
|
2447
|
+
$("sm")
|
|
2208
2448
|
),
|
|
2209
2449
|
{
|
|
2210
2450
|
variants: {
|
|
2211
2451
|
variant: {
|
|
2212
|
-
default:
|
|
2452
|
+
default: s(
|
|
2213
2453
|
i("sm", "px"),
|
|
2214
2454
|
i("sm", "py"),
|
|
2215
|
-
|
|
2455
|
+
S("body")
|
|
2216
2456
|
),
|
|
2217
|
-
sub:
|
|
2457
|
+
sub: s(
|
|
2218
2458
|
i("sm", "px"),
|
|
2219
2459
|
i("xs", "py"),
|
|
2220
|
-
|
|
2460
|
+
S("bodySmall")
|
|
2221
2461
|
)
|
|
2222
2462
|
},
|
|
2223
2463
|
active: {
|
|
2224
|
-
true:
|
|
2225
|
-
false:
|
|
2464
|
+
true: s("border-line-brand", "text-fg-brand-emphasis", "font-medium"),
|
|
2465
|
+
false: s(
|
|
2226
2466
|
"text-fg-secondary",
|
|
2227
2467
|
"hover:text-fg-primary",
|
|
2228
2468
|
"hover:border-line-muted"
|
|
@@ -2234,7 +2474,7 @@ const ua = V(n("flex items-center", "border-b"), {
|
|
|
2234
2474
|
{
|
|
2235
2475
|
variant: "sub",
|
|
2236
2476
|
active: !1,
|
|
2237
|
-
class:
|
|
2477
|
+
class: s("text-fg-tertiary", "hover:text-fg-secondary")
|
|
2238
2478
|
}
|
|
2239
2479
|
],
|
|
2240
2480
|
defaultVariants: {
|
|
@@ -2242,21 +2482,21 @@ const ua = V(n("flex items-center", "border-b"), {
|
|
|
2242
2482
|
active: !1
|
|
2243
2483
|
}
|
|
2244
2484
|
}
|
|
2245
|
-
),
|
|
2485
|
+
), Na = s(
|
|
2246
2486
|
"inline-flex items-center justify-center",
|
|
2247
|
-
|
|
2487
|
+
$("full"),
|
|
2248
2488
|
i("xs", "px"),
|
|
2249
2489
|
"bg-surface-muted text-fg-secondary text-xs"
|
|
2250
|
-
),
|
|
2251
|
-
function(
|
|
2252
|
-
var
|
|
2253
|
-
items:
|
|
2490
|
+
), Sa = j(
|
|
2491
|
+
function(x, p) {
|
|
2492
|
+
var m = x, {
|
|
2493
|
+
items: a,
|
|
2254
2494
|
variant: r = "default",
|
|
2255
|
-
linkComponent:
|
|
2256
|
-
className:
|
|
2495
|
+
linkComponent: t,
|
|
2496
|
+
className: n,
|
|
2257
2497
|
"aria-label": o,
|
|
2258
2498
|
"aria-labelledby": c
|
|
2259
|
-
} =
|
|
2499
|
+
} = m, d = b(m, [
|
|
2260
2500
|
"items",
|
|
2261
2501
|
"variant",
|
|
2262
2502
|
"linkComponent",
|
|
@@ -2267,42 +2507,42 @@ const ua = V(n("flex items-center", "border-b"), {
|
|
|
2267
2507
|
typeof process != "undefined" && process.env.NODE_ENV !== "production" && !o && !c && console.warn(
|
|
2268
2508
|
'[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.'
|
|
2269
2509
|
);
|
|
2270
|
-
const
|
|
2510
|
+
const h = t != null ? t : "a";
|
|
2271
2511
|
return /* @__PURE__ */ l(
|
|
2272
2512
|
"nav",
|
|
2273
2513
|
y(u({
|
|
2274
2514
|
ref: p,
|
|
2275
|
-
className:
|
|
2515
|
+
className: s(va({ variant: r }), n),
|
|
2276
2516
|
"aria-label": o,
|
|
2277
2517
|
"aria-labelledby": c
|
|
2278
2518
|
}, d), {
|
|
2279
|
-
children:
|
|
2280
|
-
|
|
2519
|
+
children: a.map((f, g) => /* @__PURE__ */ v(
|
|
2520
|
+
h,
|
|
2281
2521
|
{
|
|
2282
2522
|
href: f.href,
|
|
2283
2523
|
"aria-current": f.active ? "page" : void 0,
|
|
2284
2524
|
"data-active": f.active ? "true" : void 0,
|
|
2285
|
-
className:
|
|
2525
|
+
className: wa({ variant: r, active: !!f.active }),
|
|
2286
2526
|
children: [
|
|
2287
2527
|
f.icon ? /* @__PURE__ */ l("span", { "aria-hidden": "true", className: "inline-flex shrink-0", children: f.icon }) : null,
|
|
2288
2528
|
/* @__PURE__ */ l("span", { children: f.label }),
|
|
2289
|
-
f.count !== void 0 ? /* @__PURE__ */ l("span", { className:
|
|
2529
|
+
f.count !== void 0 ? /* @__PURE__ */ l("span", { className: Na, children: f.count }) : null
|
|
2290
2530
|
]
|
|
2291
2531
|
},
|
|
2292
|
-
f.href ||
|
|
2532
|
+
f.href || g
|
|
2293
2533
|
))
|
|
2294
2534
|
})
|
|
2295
2535
|
);
|
|
2296
2536
|
}
|
|
2297
2537
|
);
|
|
2298
|
-
|
|
2299
|
-
function
|
|
2538
|
+
Sa.displayName = "TabsAsLinks";
|
|
2539
|
+
function Xa({
|
|
2300
2540
|
items: e,
|
|
2301
|
-
orientation:
|
|
2541
|
+
orientation: a = "vertical",
|
|
2302
2542
|
className: r = ""
|
|
2303
2543
|
}) {
|
|
2304
|
-
return
|
|
2305
|
-
const o =
|
|
2544
|
+
return a === "horizontal" ? /* @__PURE__ */ l("div", { className: `flex items-start ${r}`, children: e.map((t, n) => {
|
|
2545
|
+
const o = t.status || (n === 0 ? "active" : n < e.findIndex((d) => d.status === "active") ? "completed" : "default"), c = n === e.length - 1;
|
|
2306
2546
|
return /* @__PURE__ */ l("div", { className: "flex items-start flex-1", children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center flex-1", children: [
|
|
2307
2547
|
/* @__PURE__ */ l(
|
|
2308
2548
|
"div",
|
|
@@ -2313,11 +2553,11 @@ function Ma({
|
|
|
2313
2553
|
justify-center
|
|
2314
2554
|
w-10
|
|
2315
2555
|
h-10
|
|
2316
|
-
${
|
|
2556
|
+
${$("full")}
|
|
2317
2557
|
border-2
|
|
2318
2558
|
${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"}
|
|
2319
2559
|
`,
|
|
2320
|
-
children:
|
|
2560
|
+
children: t.icon || (o === "completed" ? /* @__PURE__ */ l(ne, { className: "h-4 w-4" }) : n + 1)
|
|
2321
2561
|
})
|
|
2322
2562
|
),
|
|
2323
2563
|
!c && /* @__PURE__ */ l(
|
|
@@ -2336,28 +2576,28 @@ function Ma({
|
|
|
2336
2576
|
{
|
|
2337
2577
|
className: `${i("base", "mt")} text-center ${i("base", "px")}`,
|
|
2338
2578
|
children: [
|
|
2339
|
-
|
|
2579
|
+
t.timestamp && /* @__PURE__ */ l(
|
|
2340
2580
|
"p",
|
|
2341
2581
|
{
|
|
2342
2582
|
className: `text-xs text-fg-tertiary ${i("xs", "mb")}`,
|
|
2343
|
-
children:
|
|
2583
|
+
children: t.timestamp
|
|
2344
2584
|
}
|
|
2345
2585
|
),
|
|
2346
|
-
/* @__PURE__ */ l("h3", { className: "text-sm font-semibold text-fg-primary", children:
|
|
2347
|
-
|
|
2586
|
+
/* @__PURE__ */ l("h3", { className: "text-sm font-semibold text-fg-primary", children: t.title }),
|
|
2587
|
+
t.description && /* @__PURE__ */ l(
|
|
2348
2588
|
"p",
|
|
2349
2589
|
{
|
|
2350
2590
|
className: `text-xs text-fg-secondary ${i("xs", "mt")}`,
|
|
2351
|
-
children:
|
|
2591
|
+
children: t.description
|
|
2352
2592
|
}
|
|
2353
2593
|
),
|
|
2354
|
-
|
|
2594
|
+
t.content && /* @__PURE__ */ l("div", { className: i("sm", "mt"), children: t.content })
|
|
2355
2595
|
]
|
|
2356
2596
|
}
|
|
2357
2597
|
)
|
|
2358
|
-
] }) },
|
|
2359
|
-
}) }) : /* @__PURE__ */ l("div", { className: `${i("none", "space-y")} ${r}`, children: e.map((
|
|
2360
|
-
const o =
|
|
2598
|
+
] }) }, t.id);
|
|
2599
|
+
}) }) : /* @__PURE__ */ l("div", { className: `${i("none", "space-y")} ${r}`, children: e.map((t, n) => {
|
|
2600
|
+
const o = t.status || (n === 0 ? "active" : n < e.findIndex((d) => d.status === "active") ? "completed" : "default"), c = n === e.length - 1;
|
|
2361
2601
|
return /* @__PURE__ */ v(
|
|
2362
2602
|
"div",
|
|
2363
2603
|
{
|
|
@@ -2373,11 +2613,11 @@ function Ma({
|
|
|
2373
2613
|
justify-center
|
|
2374
2614
|
w-10
|
|
2375
2615
|
h-10
|
|
2376
|
-
${
|
|
2616
|
+
${$("full")}
|
|
2377
2617
|
border-2
|
|
2378
2618
|
${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"}
|
|
2379
2619
|
`,
|
|
2380
|
-
children:
|
|
2620
|
+
children: t.icon || (o === "completed" ? /* @__PURE__ */ l(ne, { className: "h-4 w-4" }) : n + 1)
|
|
2381
2621
|
})
|
|
2382
2622
|
),
|
|
2383
2623
|
!c && /* @__PURE__ */ l(
|
|
@@ -2394,11 +2634,11 @@ function Ma({
|
|
|
2394
2634
|
)
|
|
2395
2635
|
] }),
|
|
2396
2636
|
/* @__PURE__ */ v("div", { className: `flex-1 ${i("xl", "pb")}`, children: [
|
|
2397
|
-
|
|
2637
|
+
t.timestamp && /* @__PURE__ */ l(
|
|
2398
2638
|
"p",
|
|
2399
2639
|
{
|
|
2400
2640
|
className: `text-xs text-fg-tertiary ${i("xs", "mb")}`,
|
|
2401
|
-
children:
|
|
2641
|
+
children: t.timestamp
|
|
2402
2642
|
}
|
|
2403
2643
|
),
|
|
2404
2644
|
/* @__PURE__ */ l(
|
|
@@ -2409,59 +2649,60 @@ function Ma({
|
|
|
2409
2649
|
font-semibold
|
|
2410
2650
|
${o === "active" ? "text-fg-brand-emphasis" : "text-fg-primary"}
|
|
2411
2651
|
`,
|
|
2412
|
-
children:
|
|
2652
|
+
children: t.title
|
|
2413
2653
|
}
|
|
2414
2654
|
),
|
|
2415
|
-
|
|
2655
|
+
t.description && /* @__PURE__ */ l(
|
|
2416
2656
|
"p",
|
|
2417
2657
|
{
|
|
2418
2658
|
className: `text-sm text-fg-secondary ${i("xs", "mt")}`,
|
|
2419
|
-
children:
|
|
2659
|
+
children: t.description
|
|
2420
2660
|
}
|
|
2421
2661
|
),
|
|
2422
|
-
|
|
2662
|
+
t.content && /* @__PURE__ */ l("div", { className: i("md", "mt"), children: t.content })
|
|
2423
2663
|
] })
|
|
2424
2664
|
]
|
|
2425
2665
|
},
|
|
2426
|
-
|
|
2666
|
+
t.id
|
|
2427
2667
|
);
|
|
2428
2668
|
}) });
|
|
2429
2669
|
}
|
|
2430
2670
|
export {
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
La as
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2671
|
+
Ee as Badge,
|
|
2672
|
+
sa as Breadcrumb,
|
|
2673
|
+
Be as Button,
|
|
2674
|
+
H as Card,
|
|
2675
|
+
ca as CardActions,
|
|
2676
|
+
da as CardBody,
|
|
2677
|
+
ia as CardHeader,
|
|
2678
|
+
oa as CardSubtitle,
|
|
2679
|
+
la as CardTitle,
|
|
2680
|
+
Ie as Chip,
|
|
2681
|
+
ra as Container,
|
|
2682
|
+
ja as DialogFooter,
|
|
2683
|
+
Da as DialogHeader,
|
|
2684
|
+
_a as DrawerFooter,
|
|
2685
|
+
Ra as DrawerHeader,
|
|
2686
|
+
La as ErrorMessage,
|
|
2687
|
+
Oa as FilterChips,
|
|
2688
|
+
Ma as HeaderActions,
|
|
2689
|
+
Ha as HeaderNavigation,
|
|
2690
|
+
ga as HeroSection,
|
|
2691
|
+
za as Info,
|
|
2692
|
+
Xe as Label,
|
|
2693
|
+
Pa as MenuSeparator,
|
|
2694
|
+
Wa as NavbarSeparator,
|
|
2695
|
+
Ba as PageHeader,
|
|
2696
|
+
Ye as Progress,
|
|
2697
|
+
Qe as Separator,
|
|
2698
|
+
Fa as Skeleton,
|
|
2699
|
+
fe as Spinner,
|
|
2700
|
+
na as Stack,
|
|
2701
|
+
Ia as Stat,
|
|
2702
|
+
Ua as StatGroup,
|
|
2703
|
+
Ka as TableCell,
|
|
2704
|
+
Sa as TabsAsLinks,
|
|
2464
2705
|
_ as Text,
|
|
2465
|
-
|
|
2706
|
+
Xa as Timeline
|
|
2466
2707
|
};
|
|
2467
2708
|
//# sourceMappingURL=index.js.map
|