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