@fabio.caffarello/react-design-system 2.1.0 → 3.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/index.cjs +114 -114
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4238 -4079
- package/dist/index.js.map +1 -1
- package/dist/react-design-system.css +1 -1
- package/dist/server/index.cjs +28 -28
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +742 -626
- package/dist/server/index.js.map +1 -1
- package/dist/ui/primitives/Button/Button.d.ts +34 -18
- package/dist/ui/primitives/Chip/Chip.d.ts +39 -3
- package/dist/ui/tokens/colors/brand.d.ts +22 -0
- package/dist/ui/tokens/colors/index.d.ts +5 -4
- package/dist/ui/tokens/colors/primitives.d.ts +2 -2
- package/dist/ui/tokens/colors/semantic.d.ts +2 -2
- package/dist/ui/tokens/colors/types.d.ts +11 -4
- package/dist/ui/tokens/colors/utils.d.ts +2 -2
- package/dist/ui/tokens/index.d.ts +1 -1
- package/package.json +3 -1
package/dist/server/index.js
CHANGED
|
@@ -1,37 +1,113 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
for (var
|
|
16
|
-
|
|
17
|
-
if (
|
|
18
|
-
for (var
|
|
19
|
-
a.indexOf(
|
|
20
|
-
return
|
|
1
|
+
var ne = Object.defineProperty, ie = Object.defineProperties;
|
|
2
|
+
var se = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var _ = Object.getOwnPropertySymbols;
|
|
4
|
+
var K = Object.prototype.hasOwnProperty, X = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var H = (t, a, n) => a in t ? ne(t, a, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[a] = n, b = (t, a) => {
|
|
6
|
+
for (var n in a || (a = {}))
|
|
7
|
+
K.call(a, n) && H(t, n, a[n]);
|
|
8
|
+
if (_)
|
|
9
|
+
for (var n of _(a))
|
|
10
|
+
X.call(a, n) && H(t, n, a[n]);
|
|
11
|
+
return t;
|
|
12
|
+
}, w = (t, a) => ie(t, se(a));
|
|
13
|
+
var y = (t, a) => {
|
|
14
|
+
var n = {};
|
|
15
|
+
for (var r in t)
|
|
16
|
+
K.call(t, r) && a.indexOf(r) < 0 && (n[r] = t[r]);
|
|
17
|
+
if (t != null && _)
|
|
18
|
+
for (var r of _(t))
|
|
19
|
+
a.indexOf(r) < 0 && X.call(t, r) && (n[r] = t[r]);
|
|
20
|
+
return n;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
import {
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
|
|
22
|
+
var Y = (t, a, n) => H(t, typeof a != "symbol" ? a + "" : a, n);
|
|
23
|
+
import { jsx as o, jsxs as T } from "react/jsx-runtime";
|
|
24
|
+
import * as S from "react";
|
|
25
|
+
import ee, { forwardRef as O, memo as le } from "react";
|
|
26
|
+
import { X as oe, AlertCircle as ce, Loader2 as de, CheckCircle2 as Z } from "lucide-react";
|
|
27
|
+
import { clsx as fe } from "clsx";
|
|
28
|
+
import { twMerge as pe } from "tailwind-merge";
|
|
29
|
+
import { cva as ue } from "class-variance-authority";
|
|
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
|
+
}
|
|
105
|
+
class I {
|
|
30
106
|
/**
|
|
31
107
|
* Create a radius token
|
|
32
108
|
*/
|
|
33
109
|
static create(a) {
|
|
34
|
-
const
|
|
110
|
+
const r = {
|
|
35
111
|
none: {
|
|
36
112
|
px: 0,
|
|
37
113
|
tailwind: "rounded-none",
|
|
@@ -74,38 +150,38 @@ class C {
|
|
|
74
150
|
}
|
|
75
151
|
}[a];
|
|
76
152
|
return {
|
|
77
|
-
value:
|
|
78
|
-
rem: `${
|
|
79
|
-
px: `${
|
|
80
|
-
tailwind:
|
|
81
|
-
description:
|
|
153
|
+
value: r.px,
|
|
154
|
+
rem: `${r.px / 16}rem`,
|
|
155
|
+
px: `${r.px}px`,
|
|
156
|
+
tailwind: r.tailwind,
|
|
157
|
+
description: r.description
|
|
82
158
|
};
|
|
83
159
|
}
|
|
84
160
|
}
|
|
85
|
-
const
|
|
86
|
-
none:
|
|
87
|
-
sm:
|
|
88
|
-
md:
|
|
89
|
-
lg:
|
|
90
|
-
xl:
|
|
91
|
-
"2xl":
|
|
92
|
-
"3xl":
|
|
93
|
-
full:
|
|
161
|
+
const Ne = {
|
|
162
|
+
none: I.create("none"),
|
|
163
|
+
sm: I.create("sm"),
|
|
164
|
+
md: I.create("md"),
|
|
165
|
+
lg: I.create("lg"),
|
|
166
|
+
xl: I.create("xl"),
|
|
167
|
+
"2xl": I.create("2xl"),
|
|
168
|
+
"3xl": I.create("3xl"),
|
|
169
|
+
full: I.create("full")
|
|
94
170
|
};
|
|
95
|
-
function
|
|
96
|
-
return
|
|
171
|
+
function F(t) {
|
|
172
|
+
return Ne[t].tailwind;
|
|
97
173
|
}
|
|
98
|
-
class
|
|
174
|
+
class v {
|
|
99
175
|
// 4px base
|
|
100
176
|
/**
|
|
101
177
|
* Create a spacing token from scale value
|
|
102
178
|
*/
|
|
103
179
|
static create(a) {
|
|
104
|
-
const
|
|
180
|
+
const n = a * this.BASE_UNIT, r = n / 16;
|
|
105
181
|
return {
|
|
106
|
-
value:
|
|
107
|
-
rem: `${
|
|
108
|
-
px: `${
|
|
182
|
+
value: n,
|
|
183
|
+
rem: `${r}rem`,
|
|
184
|
+
px: `${n}px`,
|
|
109
185
|
tailwind: this.getTailwindClass(a)
|
|
110
186
|
};
|
|
111
187
|
}
|
|
@@ -162,46 +238,46 @@ class y {
|
|
|
162
238
|
}[a] || String(a);
|
|
163
239
|
}
|
|
164
240
|
}
|
|
165
|
-
|
|
166
|
-
const
|
|
241
|
+
Y(v, "BASE_UNIT", 4);
|
|
242
|
+
const Se = {
|
|
167
243
|
// Micro spacing (0-14px)
|
|
168
|
-
none:
|
|
169
|
-
"0.5":
|
|
244
|
+
none: v.create(0),
|
|
245
|
+
"0.5": v.create(0.5),
|
|
170
246
|
// 2px (half-step)
|
|
171
|
-
xs:
|
|
247
|
+
xs: v.create(1),
|
|
172
248
|
// 4px
|
|
173
|
-
"1.5":
|
|
249
|
+
"1.5": v.create(1.5),
|
|
174
250
|
// 6px (half-step)
|
|
175
|
-
sm:
|
|
251
|
+
sm: v.create(2),
|
|
176
252
|
// 8px
|
|
177
|
-
"2.5":
|
|
253
|
+
"2.5": v.create(2.5),
|
|
178
254
|
// 10px (half-step)
|
|
179
|
-
md:
|
|
255
|
+
md: v.create(3),
|
|
180
256
|
// 12px
|
|
181
|
-
"3.5":
|
|
257
|
+
"3.5": v.create(3.5),
|
|
182
258
|
// 14px (half-step)
|
|
183
259
|
// Standard spacing (16-32px)
|
|
184
|
-
base:
|
|
260
|
+
base: v.create(4),
|
|
185
261
|
// 16px
|
|
186
|
-
lg:
|
|
262
|
+
lg: v.create(6),
|
|
187
263
|
// 24px
|
|
188
|
-
xl:
|
|
264
|
+
xl: v.create(8),
|
|
189
265
|
// 32px
|
|
190
266
|
// Large spacing (40-64px)
|
|
191
|
-
"2xl":
|
|
267
|
+
"2xl": v.create(10),
|
|
192
268
|
// 40px
|
|
193
|
-
"3xl":
|
|
269
|
+
"3xl": v.create(12),
|
|
194
270
|
// 48px
|
|
195
|
-
"4xl":
|
|
271
|
+
"4xl": v.create(16),
|
|
196
272
|
// 64px
|
|
197
273
|
// Extra large spacing (80px+)
|
|
198
|
-
"5xl":
|
|
274
|
+
"5xl": v.create(20),
|
|
199
275
|
// 80px
|
|
200
|
-
"6xl":
|
|
276
|
+
"6xl": v.create(24)
|
|
201
277
|
// 96px
|
|
202
278
|
};
|
|
203
|
-
function
|
|
204
|
-
const
|
|
279
|
+
function l(t, a = "p") {
|
|
280
|
+
const r = Se[t].tailwind;
|
|
205
281
|
return `${{
|
|
206
282
|
p: "p",
|
|
207
283
|
m: "m",
|
|
@@ -222,14 +298,14 @@ function s(r, a = "p") {
|
|
|
222
298
|
"gap-y": "gap-y",
|
|
223
299
|
"space-x": "space-x",
|
|
224
300
|
"space-y": "space-y"
|
|
225
|
-
}[a]}-${
|
|
301
|
+
}[a]}-${r}`;
|
|
226
302
|
}
|
|
227
|
-
class
|
|
303
|
+
class k {
|
|
228
304
|
/**
|
|
229
305
|
* Create font size token
|
|
230
306
|
*/
|
|
231
307
|
static createFontSize(a) {
|
|
232
|
-
const
|
|
308
|
+
const r = {
|
|
233
309
|
"2xs": { px: 10, tailwind: "text-2xs" },
|
|
234
310
|
// micro-text (badge counters, mini chips)
|
|
235
311
|
xs: { px: 12, tailwind: "text-xs" },
|
|
@@ -244,17 +320,17 @@ class w {
|
|
|
244
320
|
"6xl": { px: 60, tailwind: "text-6xl" }
|
|
245
321
|
}[a];
|
|
246
322
|
return {
|
|
247
|
-
value:
|
|
248
|
-
rem: `${
|
|
249
|
-
px: `${
|
|
250
|
-
tailwind:
|
|
323
|
+
value: r.px,
|
|
324
|
+
rem: `${r.px / 16}rem`,
|
|
325
|
+
px: `${r.px}px`,
|
|
326
|
+
tailwind: r.tailwind
|
|
251
327
|
};
|
|
252
328
|
}
|
|
253
329
|
/**
|
|
254
330
|
* Create line height token
|
|
255
331
|
*/
|
|
256
332
|
static createLineHeight(a) {
|
|
257
|
-
const
|
|
333
|
+
const r = {
|
|
258
334
|
none: { value: 1, tailwind: "leading-none" },
|
|
259
335
|
tight: { value: 1.25, tailwind: "leading-tight" },
|
|
260
336
|
snug: { value: 1.375, tailwind: "leading-snug" },
|
|
@@ -263,15 +339,15 @@ class w {
|
|
|
263
339
|
loose: { value: 2, tailwind: "leading-loose" }
|
|
264
340
|
}[a];
|
|
265
341
|
return {
|
|
266
|
-
value:
|
|
267
|
-
tailwind:
|
|
342
|
+
value: r.value,
|
|
343
|
+
tailwind: r.tailwind
|
|
268
344
|
};
|
|
269
345
|
}
|
|
270
346
|
/**
|
|
271
347
|
* Create font weight token
|
|
272
348
|
*/
|
|
273
349
|
static createFontWeight(a) {
|
|
274
|
-
const
|
|
350
|
+
const r = {
|
|
275
351
|
light: { value: 300, tailwind: "font-light" },
|
|
276
352
|
normal: { value: 400, tailwind: "font-normal" },
|
|
277
353
|
medium: { value: 500, tailwind: "font-medium" },
|
|
@@ -279,83 +355,83 @@ class w {
|
|
|
279
355
|
bold: { value: 700, tailwind: "font-bold" }
|
|
280
356
|
}[a];
|
|
281
357
|
return {
|
|
282
|
-
value:
|
|
283
|
-
tailwind:
|
|
358
|
+
value: r.value,
|
|
359
|
+
tailwind: r.tailwind
|
|
284
360
|
};
|
|
285
361
|
}
|
|
286
362
|
/**
|
|
287
363
|
* Create complete typography token
|
|
288
364
|
*/
|
|
289
|
-
static create(a,
|
|
365
|
+
static create(a, n = "normal", r = "normal") {
|
|
290
366
|
return {
|
|
291
367
|
fontSize: this.createFontSize(a),
|
|
292
|
-
lineHeight: this.createLineHeight(
|
|
293
|
-
fontWeight: this.createFontWeight(
|
|
368
|
+
lineHeight: this.createLineHeight(n),
|
|
369
|
+
fontWeight: this.createFontWeight(r)
|
|
294
370
|
};
|
|
295
371
|
}
|
|
296
372
|
}
|
|
297
|
-
|
|
298
|
-
const
|
|
373
|
+
k.createFontWeight("light"), k.createFontWeight("normal"), k.createFontWeight("medium"), k.createFontWeight("semibold"), k.createFontWeight("bold");
|
|
374
|
+
const U = {
|
|
299
375
|
// Headings
|
|
300
|
-
h1:
|
|
301
|
-
h2:
|
|
302
|
-
h3:
|
|
303
|
-
h4:
|
|
304
|
-
h5:
|
|
305
|
-
h6:
|
|
376
|
+
h1: k.create("4xl", "tight", "bold"),
|
|
377
|
+
h2: k.create("3xl", "tight", "bold"),
|
|
378
|
+
h3: k.create("2xl", "snug", "semibold"),
|
|
379
|
+
h4: k.create("xl", "snug", "semibold"),
|
|
380
|
+
h5: k.create("lg", "normal", "medium"),
|
|
381
|
+
h6: k.create("base", "normal", "medium"),
|
|
306
382
|
// Body text
|
|
307
|
-
body:
|
|
308
|
-
bodySmall:
|
|
309
|
-
bodyLarge:
|
|
383
|
+
body: k.create("base", "relaxed", "normal"),
|
|
384
|
+
bodySmall: k.create("sm", "relaxed", "normal"),
|
|
385
|
+
bodyLarge: k.create("lg", "relaxed", "normal"),
|
|
310
386
|
// UI elements
|
|
311
|
-
label:
|
|
312
|
-
caption:
|
|
313
|
-
button:
|
|
387
|
+
label: k.create("sm", "normal", "medium"),
|
|
388
|
+
caption: k.create("xs", "normal", "normal"),
|
|
389
|
+
button: k.create("base", "normal", "medium")
|
|
314
390
|
};
|
|
315
|
-
function
|
|
316
|
-
const a =
|
|
391
|
+
function R(t) {
|
|
392
|
+
const a = U[t];
|
|
317
393
|
return `${a.fontSize.tailwind} ${a.lineHeight.tailwind} ${a.fontWeight.tailwind}`;
|
|
318
394
|
}
|
|
319
|
-
function
|
|
320
|
-
return
|
|
395
|
+
function E(t) {
|
|
396
|
+
return U[t].fontSize.tailwind;
|
|
321
397
|
}
|
|
322
|
-
function
|
|
323
|
-
return
|
|
398
|
+
function B(t) {
|
|
399
|
+
return U[t].fontWeight.tailwind;
|
|
324
400
|
}
|
|
325
|
-
function
|
|
326
|
-
return
|
|
401
|
+
function f(...t) {
|
|
402
|
+
return pe(fe(t));
|
|
327
403
|
}
|
|
328
|
-
const
|
|
329
|
-
const
|
|
330
|
-
return ((
|
|
331
|
-
const
|
|
332
|
-
return
|
|
404
|
+
const P = (t, a) => {
|
|
405
|
+
const n = ue(t, a);
|
|
406
|
+
return ((r) => {
|
|
407
|
+
const i = n(r);
|
|
408
|
+
return f(i);
|
|
333
409
|
});
|
|
334
|
-
},
|
|
410
|
+
}, Q = P(
|
|
335
411
|
// Base classes
|
|
336
|
-
|
|
412
|
+
f(
|
|
337
413
|
"inline-flex",
|
|
338
414
|
"items-center",
|
|
339
415
|
"font-medium",
|
|
340
|
-
|
|
341
|
-
|
|
416
|
+
F("full"),
|
|
417
|
+
l("xs", "gap")
|
|
342
418
|
),
|
|
343
419
|
{
|
|
344
420
|
variants: {
|
|
345
421
|
variant: {
|
|
346
|
-
default:
|
|
422
|
+
default: f(
|
|
347
423
|
"bg-surface-muted",
|
|
348
424
|
"text-fg-primary",
|
|
349
425
|
"border",
|
|
350
426
|
"border-line-default"
|
|
351
427
|
),
|
|
352
|
-
outlined:
|
|
428
|
+
outlined: f(
|
|
353
429
|
"bg-transparent",
|
|
354
430
|
"text-fg-primary",
|
|
355
431
|
"border",
|
|
356
432
|
"border-line-default"
|
|
357
433
|
),
|
|
358
|
-
filled:
|
|
434
|
+
filled: f(
|
|
359
435
|
"bg-surface-brand-strong",
|
|
360
436
|
"text-fg-inverse",
|
|
361
437
|
"border",
|
|
@@ -363,24 +439,24 @@ const H = (r, a) => {
|
|
|
363
439
|
)
|
|
364
440
|
},
|
|
365
441
|
size: {
|
|
366
|
-
sm:
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
442
|
+
sm: f(
|
|
443
|
+
l("xs", "px"),
|
|
444
|
+
l("xs", "py"),
|
|
445
|
+
E("caption")
|
|
370
446
|
),
|
|
371
|
-
md:
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
447
|
+
md: f(
|
|
448
|
+
l("sm", "px"),
|
|
449
|
+
l("xs", "py"),
|
|
450
|
+
E("bodySmall")
|
|
375
451
|
),
|
|
376
|
-
lg:
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
452
|
+
lg: f(
|
|
453
|
+
l("md", "px"),
|
|
454
|
+
l("sm", "py"),
|
|
455
|
+
E("body")
|
|
380
456
|
)
|
|
381
457
|
},
|
|
382
458
|
selected: {
|
|
383
|
-
true:
|
|
459
|
+
true: f(
|
|
384
460
|
"bg-surface-brand-strong",
|
|
385
461
|
"text-fg-inverse",
|
|
386
462
|
"border",
|
|
@@ -420,68 +496,70 @@ const H = (r, a) => {
|
|
|
420
496
|
disabled: !1
|
|
421
497
|
}
|
|
422
498
|
}
|
|
423
|
-
),
|
|
424
|
-
|
|
425
|
-
children:
|
|
499
|
+
), Te = O(function(a, n) {
|
|
500
|
+
const {
|
|
501
|
+
children: r,
|
|
426
502
|
variant: i = "default",
|
|
427
|
-
size:
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
className: f = "",
|
|
503
|
+
size: s = "md",
|
|
504
|
+
selected: c = !1,
|
|
505
|
+
disabled: d = !1,
|
|
506
|
+
className: p = "",
|
|
432
507
|
"aria-label": m,
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
} =
|
|
436
|
-
"children",
|
|
437
|
-
"variant",
|
|
438
|
-
"size",
|
|
439
|
-
"onRemove",
|
|
440
|
-
"selected",
|
|
441
|
-
"disabled",
|
|
442
|
-
"className",
|
|
443
|
-
"aria-label",
|
|
444
|
-
"onClick",
|
|
445
|
-
"tabIndex"
|
|
446
|
-
]);
|
|
447
|
-
const R = (() => {
|
|
508
|
+
tabIndex: u,
|
|
509
|
+
asChild: x = !1
|
|
510
|
+
} = a, $ = (() => {
|
|
448
511
|
if (m) return m;
|
|
449
|
-
if (typeof
|
|
450
|
-
if (typeof
|
|
451
|
-
const
|
|
452
|
-
if (
|
|
453
|
-
return
|
|
512
|
+
if (typeof r == "string") return r;
|
|
513
|
+
if (typeof r == "object" && r !== null && "props" in r) {
|
|
514
|
+
const M = r.props;
|
|
515
|
+
if (M != null && M.children && typeof M.children == "string")
|
|
516
|
+
return M.children;
|
|
454
517
|
}
|
|
455
|
-
})()
|
|
456
|
-
|
|
518
|
+
})();
|
|
519
|
+
if (x)
|
|
520
|
+
return /* @__PURE__ */ o(
|
|
521
|
+
he,
|
|
522
|
+
{
|
|
523
|
+
ref: n,
|
|
524
|
+
className: f(
|
|
525
|
+
Q({ variant: i, size: s, selected: c, disabled: d }),
|
|
526
|
+
p
|
|
527
|
+
),
|
|
528
|
+
"aria-label": m,
|
|
529
|
+
"aria-disabled": d || void 0,
|
|
530
|
+
tabIndex: u,
|
|
531
|
+
children: r
|
|
532
|
+
}
|
|
533
|
+
);
|
|
534
|
+
const { onRemove: C, onClick: L } = a, q = L !== void 0, te = q && !d, re = (M) => {
|
|
535
|
+
d || (M.key === "Enter" || M.key === " ") && (M.preventDefault(), L == null || L());
|
|
457
536
|
};
|
|
458
|
-
return /* @__PURE__ */
|
|
537
|
+
return /* @__PURE__ */ T(
|
|
459
538
|
"div",
|
|
460
|
-
|
|
461
|
-
ref:
|
|
462
|
-
className:
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
539
|
+
{
|
|
540
|
+
ref: n,
|
|
541
|
+
className: f(
|
|
542
|
+
Q({ variant: i, size: s, selected: c, disabled: d }),
|
|
543
|
+
C && l("xs", "pr"),
|
|
544
|
+
p
|
|
466
545
|
),
|
|
467
|
-
"aria-disabled":
|
|
468
|
-
}, g), {
|
|
546
|
+
"aria-disabled": d,
|
|
469
547
|
children: [
|
|
470
|
-
q ? /* @__PURE__ */
|
|
548
|
+
q ? /* @__PURE__ */ o(
|
|
471
549
|
"button",
|
|
472
550
|
{
|
|
473
551
|
type: "button",
|
|
474
|
-
onClick:
|
|
475
|
-
onKeyDown:
|
|
476
|
-
disabled:
|
|
477
|
-
"aria-pressed":
|
|
478
|
-
"aria-label": m ||
|
|
479
|
-
tabIndex:
|
|
480
|
-
className:
|
|
552
|
+
onClick: d ? void 0 : L,
|
|
553
|
+
onKeyDown: re,
|
|
554
|
+
disabled: d,
|
|
555
|
+
"aria-pressed": c ? !0 : void 0,
|
|
556
|
+
"aria-label": m || $,
|
|
557
|
+
tabIndex: u !== void 0 ? u : te ? 0 : void 0,
|
|
558
|
+
className: f(
|
|
481
559
|
"flex-1",
|
|
482
560
|
"bg-transparent",
|
|
483
561
|
"border-0",
|
|
484
|
-
|
|
562
|
+
l("none", "p"),
|
|
485
563
|
"text-inherit",
|
|
486
564
|
"text-left",
|
|
487
565
|
"cursor-pointer",
|
|
@@ -489,124 +567,162 @@ const H = (r, a) => {
|
|
|
489
567
|
"focus:ring-2",
|
|
490
568
|
"focus:ring-line-focus",
|
|
491
569
|
"focus:ring-offset-2",
|
|
492
|
-
|
|
570
|
+
F("full")
|
|
493
571
|
),
|
|
494
|
-
children:
|
|
572
|
+
children: r
|
|
495
573
|
}
|
|
496
|
-
) : /* @__PURE__ */
|
|
497
|
-
|
|
574
|
+
) : /* @__PURE__ */ o("span", { children: r }),
|
|
575
|
+
C && !d && /* @__PURE__ */ o(
|
|
498
576
|
"button",
|
|
499
577
|
{
|
|
500
578
|
type: "button",
|
|
501
|
-
onClick: (
|
|
502
|
-
|
|
579
|
+
onClick: (M) => {
|
|
580
|
+
M.stopPropagation(), C();
|
|
503
581
|
},
|
|
504
|
-
className:
|
|
505
|
-
|
|
582
|
+
className: f(
|
|
583
|
+
l("xs", "ml"),
|
|
506
584
|
"hover:bg-tint-hover",
|
|
507
|
-
|
|
508
|
-
|
|
585
|
+
F("full"),
|
|
586
|
+
l("xs", "p"),
|
|
509
587
|
"transition-colors",
|
|
510
588
|
"focus:outline-none",
|
|
511
589
|
"focus:ring-2",
|
|
512
590
|
"focus:ring-line-focus",
|
|
513
591
|
"focus:ring-offset-1"
|
|
514
592
|
),
|
|
515
|
-
"aria-label": `Remove ${
|
|
516
|
-
children: /* @__PURE__ */
|
|
593
|
+
"aria-label": `Remove ${$ || "chip"}`,
|
|
594
|
+
children: /* @__PURE__ */ o(oe, { className: "h-3 w-3", "aria-hidden": "true" })
|
|
517
595
|
}
|
|
518
596
|
)
|
|
519
597
|
]
|
|
520
|
-
}
|
|
598
|
+
}
|
|
521
599
|
);
|
|
522
600
|
});
|
|
523
|
-
|
|
524
|
-
function
|
|
525
|
-
var
|
|
526
|
-
message:
|
|
601
|
+
Te.displayName = "Chip";
|
|
602
|
+
function Xe(i) {
|
|
603
|
+
var s = i, {
|
|
604
|
+
message: t,
|
|
527
605
|
id: a,
|
|
528
|
-
className:
|
|
529
|
-
} =
|
|
606
|
+
className: n = ""
|
|
607
|
+
} = s, r = y(s, [
|
|
530
608
|
"message",
|
|
531
609
|
"id",
|
|
532
610
|
"className"
|
|
533
611
|
]);
|
|
534
612
|
const c = [
|
|
535
|
-
|
|
536
|
-
|
|
613
|
+
l("xs", "mt"),
|
|
614
|
+
E("bodySmall"),
|
|
537
615
|
"text-fg-error",
|
|
538
616
|
"flex",
|
|
539
617
|
"items-center",
|
|
540
|
-
|
|
541
|
-
],
|
|
542
|
-
return /* @__PURE__ */
|
|
543
|
-
/* @__PURE__ */
|
|
544
|
-
/* @__PURE__ */
|
|
618
|
+
l("xs", "gap")
|
|
619
|
+
], d = f(...c, n);
|
|
620
|
+
return /* @__PURE__ */ T("div", w(b({ role: "alert", id: a, className: d, "aria-live": "polite" }, r), { children: [
|
|
621
|
+
/* @__PURE__ */ o(ce, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }),
|
|
622
|
+
/* @__PURE__ */ o("span", { children: t })
|
|
545
623
|
] }));
|
|
546
624
|
}
|
|
547
|
-
function
|
|
548
|
-
var
|
|
549
|
-
variant:
|
|
625
|
+
function Ye(r) {
|
|
626
|
+
var i = r, {
|
|
627
|
+
variant: t = "info",
|
|
550
628
|
className: a
|
|
551
|
-
} =
|
|
629
|
+
} = i, n = y(i, [
|
|
552
630
|
"variant",
|
|
553
631
|
"className"
|
|
554
632
|
]);
|
|
555
|
-
const
|
|
556
|
-
warning:
|
|
557
|
-
error:
|
|
558
|
-
info:
|
|
633
|
+
const s = {
|
|
634
|
+
warning: f("bg-warning-bg", "text-warning-dark", "border-warning"),
|
|
635
|
+
error: f("bg-error-bg", "text-error-dark", "border-error"),
|
|
636
|
+
info: f("bg-info-bg", "text-info-dark", "border-info")
|
|
559
637
|
};
|
|
560
|
-
return /* @__PURE__ */
|
|
638
|
+
return /* @__PURE__ */ o(
|
|
561
639
|
"div",
|
|
562
|
-
|
|
640
|
+
b({
|
|
563
641
|
role: "alert",
|
|
564
|
-
className:
|
|
642
|
+
className: f(
|
|
565
643
|
"border",
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
644
|
+
l("base", "px"),
|
|
645
|
+
l("sm", "py"),
|
|
646
|
+
F("lg"),
|
|
647
|
+
s[t],
|
|
570
648
|
a
|
|
571
649
|
)
|
|
572
|
-
},
|
|
650
|
+
}, n)
|
|
573
651
|
);
|
|
574
652
|
}
|
|
575
|
-
function
|
|
576
|
-
const
|
|
653
|
+
function g(t, a, n) {
|
|
654
|
+
const r = Ce(t), i = Me(t);
|
|
577
655
|
return {
|
|
578
|
-
hex:
|
|
579
|
-
rgb:
|
|
580
|
-
hsl:
|
|
581
|
-
cssVar: `var(--color-${a}-${
|
|
582
|
-
tailwind: `${a}-${
|
|
656
|
+
hex: t,
|
|
657
|
+
rgb: r,
|
|
658
|
+
hsl: i,
|
|
659
|
+
cssVar: `var(--color-${a}-${n})`,
|
|
660
|
+
tailwind: `${a}-${n}`
|
|
583
661
|
};
|
|
584
662
|
}
|
|
585
|
-
function
|
|
586
|
-
const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(
|
|
663
|
+
function Ce(t) {
|
|
664
|
+
const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
|
|
587
665
|
return a ? `${parseInt(a[1], 16)}, ${parseInt(a[2], 16)}, ${parseInt(a[3], 16)}` : "0, 0, 0";
|
|
588
666
|
}
|
|
589
|
-
function
|
|
590
|
-
const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(
|
|
667
|
+
function Me(t) {
|
|
668
|
+
const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
|
|
591
669
|
if (!a) return "0, 0%, 0%";
|
|
592
|
-
const
|
|
593
|
-
let
|
|
594
|
-
const
|
|
595
|
-
if (
|
|
596
|
-
const
|
|
597
|
-
switch (
|
|
598
|
-
case
|
|
599
|
-
|
|
670
|
+
const n = parseInt(a[1], 16) / 255, r = parseInt(a[2], 16) / 255, i = parseInt(a[3], 16) / 255, s = Math.max(n, r, i), c = Math.min(n, r, i);
|
|
671
|
+
let d = 0, p = 0;
|
|
672
|
+
const m = (s + c) / 2;
|
|
673
|
+
if (s !== c) {
|
|
674
|
+
const u = s - c;
|
|
675
|
+
switch (p = m > 0.5 ? u / (2 - s - c) : u / (s + c), s) {
|
|
676
|
+
case n:
|
|
677
|
+
d = ((r - i) / u + (r < i ? 6 : 0)) / 6;
|
|
600
678
|
break;
|
|
601
|
-
case
|
|
602
|
-
|
|
679
|
+
case r:
|
|
680
|
+
d = ((i - n) / u + 2) / 6;
|
|
681
|
+
break;
|
|
682
|
+
case i:
|
|
683
|
+
d = ((n - r) / u + 4) / 6;
|
|
603
684
|
break;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
return `${Math.round(d * 360)}, ${Math.round(p * 100)}%, ${Math.round(m * 100)}%`;
|
|
688
|
+
}
|
|
689
|
+
g("#f0f4f8", "brand-primary", 50), g("#d9e2ec", "brand-primary", 100), g("#bcccdc", "brand-primary", 200), g("#9fb3c8", "brand-primary", 300), g("#7390ad", "brand-primary", 400), g("#486581", "brand-primary", 500), g("#334e68", "brand-primary", 600), g("#243b53", "brand-primary", 700), g("#1a2a3a", "brand-primary", 800), g("#102a43", "brand-primary", 900), g("#061a35", "brand-primary", 950);
|
|
690
|
+
g("#f7f5ff", "brand-secondary", 50), g("#eee9ff", "brand-secondary", 100), g("#e0d6ff", "brand-secondary", 200), g("#cbb8ff", "brand-secondary", 300), g("#aa89fc", "brand-secondary", 400), g("#8e58f2", "brand-secondary", 500), g("#703bc8", "brand-secondary", 600), g("#582aa2", "brand-secondary", 700), g("#44227e", "brand-secondary", 800), g("#32185d", "brand-secondary", 900), g("#180635", "brand-secondary", 950);
|
|
691
|
+
function e(t, a, n) {
|
|
692
|
+
const r = Fe(t), i = Le(t);
|
|
693
|
+
return {
|
|
694
|
+
hex: t,
|
|
695
|
+
rgb: r,
|
|
696
|
+
hsl: i,
|
|
697
|
+
cssVar: `var(--color-${a}-${n})`,
|
|
698
|
+
tailwind: `${a}-${n}`
|
|
699
|
+
};
|
|
700
|
+
}
|
|
701
|
+
function Fe(t) {
|
|
702
|
+
const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
|
|
703
|
+
return a ? `${parseInt(a[1], 16)}, ${parseInt(a[2], 16)}, ${parseInt(a[3], 16)}` : "0, 0, 0";
|
|
704
|
+
}
|
|
705
|
+
function Le(t) {
|
|
706
|
+
const a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
|
|
707
|
+
if (!a) return "0, 0%, 0%";
|
|
708
|
+
const n = parseInt(a[1], 16) / 255, r = parseInt(a[2], 16) / 255, i = parseInt(a[3], 16) / 255, s = Math.max(n, r, i), c = Math.min(n, r, i);
|
|
709
|
+
let d = 0, p = 0;
|
|
710
|
+
const m = (s + c) / 2;
|
|
711
|
+
if (s !== c) {
|
|
712
|
+
const u = s - c;
|
|
713
|
+
switch (p = m > 0.5 ? u / (2 - s - c) : u / (s + c), s) {
|
|
604
714
|
case n:
|
|
605
|
-
|
|
715
|
+
d = ((r - i) / u + (r < i ? 6 : 0)) / 6;
|
|
716
|
+
break;
|
|
717
|
+
case r:
|
|
718
|
+
d = ((i - n) / u + 2) / 6;
|
|
719
|
+
break;
|
|
720
|
+
case i:
|
|
721
|
+
d = ((n - r) / u + 4) / 6;
|
|
606
722
|
break;
|
|
607
723
|
}
|
|
608
724
|
}
|
|
609
|
-
return `${Math.round(
|
|
725
|
+
return `${Math.round(d * 360)}, ${Math.round(p * 100)}%, ${Math.round(m * 100)}%`;
|
|
610
726
|
}
|
|
611
727
|
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);
|
|
612
728
|
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);
|
|
@@ -627,7 +743,7 @@ e("#fdf2f8", "pink", 50), e("#fce7f3", "pink", 100), e("#fbcfe8", "pink", 200),
|
|
|
627
743
|
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);
|
|
628
744
|
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);
|
|
629
745
|
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);
|
|
630
|
-
class
|
|
746
|
+
class j {
|
|
631
747
|
/**
|
|
632
748
|
* Create a shadow token
|
|
633
749
|
*/
|
|
@@ -671,13 +787,13 @@ class D {
|
|
|
671
787
|
}[a];
|
|
672
788
|
}
|
|
673
789
|
}
|
|
674
|
-
|
|
675
|
-
class
|
|
790
|
+
j.create("none"), j.create("sm"), j.create("md"), j.create("lg"), j.create("xl"), j.create("2xl"), j.create("inner");
|
|
791
|
+
class z {
|
|
676
792
|
/**
|
|
677
793
|
* Create a border width token
|
|
678
794
|
*/
|
|
679
795
|
static createWidth(a) {
|
|
680
|
-
const
|
|
796
|
+
const r = {
|
|
681
797
|
none: {
|
|
682
798
|
px: 0,
|
|
683
799
|
tailwind: "border-0"
|
|
@@ -700,29 +816,29 @@ class F {
|
|
|
700
816
|
}
|
|
701
817
|
}[a];
|
|
702
818
|
return {
|
|
703
|
-
value:
|
|
704
|
-
px: `${
|
|
705
|
-
tailwind:
|
|
819
|
+
value: r.px,
|
|
820
|
+
px: `${r.px}px`,
|
|
821
|
+
tailwind: r.tailwind
|
|
706
822
|
};
|
|
707
823
|
}
|
|
708
824
|
/**
|
|
709
825
|
* Create a complete border token
|
|
710
826
|
*/
|
|
711
|
-
static create(a,
|
|
827
|
+
static create(a, n = "solid") {
|
|
712
828
|
return {
|
|
713
829
|
width: this.createWidth(a),
|
|
714
|
-
style:
|
|
715
|
-
description: `${a} ${
|
|
830
|
+
style: n,
|
|
831
|
+
description: `${a} ${n} border`
|
|
716
832
|
};
|
|
717
833
|
}
|
|
718
834
|
}
|
|
719
|
-
|
|
720
|
-
class
|
|
835
|
+
z.create("none"), z.create("thin"), z.create("base"), z.create("medium"), z.create("thick"), z.create("thin", "dashed"), z.create("base", "dashed"), z.create("thin", "dotted"), z.create("base", "dotted");
|
|
836
|
+
class D {
|
|
721
837
|
/**
|
|
722
838
|
* Create breakpoint token
|
|
723
839
|
*/
|
|
724
840
|
static create(a) {
|
|
725
|
-
const
|
|
841
|
+
const r = {
|
|
726
842
|
sm: { minWidth: 640, tailwind: "sm" },
|
|
727
843
|
md: { minWidth: 768, tailwind: "md" },
|
|
728
844
|
lg: { minWidth: 1024, tailwind: "lg" },
|
|
@@ -731,20 +847,20 @@ class E {
|
|
|
731
847
|
}[a];
|
|
732
848
|
return {
|
|
733
849
|
name: a,
|
|
734
|
-
minWidth:
|
|
735
|
-
px: `${
|
|
736
|
-
rem: `${
|
|
737
|
-
tailwind:
|
|
850
|
+
minWidth: r.minWidth,
|
|
851
|
+
px: `${r.minWidth}px`,
|
|
852
|
+
rem: `${r.minWidth / 16}rem`,
|
|
853
|
+
tailwind: r.tailwind
|
|
738
854
|
};
|
|
739
855
|
}
|
|
740
856
|
}
|
|
741
|
-
|
|
742
|
-
class
|
|
857
|
+
D.create("sm"), D.create("md"), D.create("lg"), D.create("xl"), D.create("2xl");
|
|
858
|
+
class W {
|
|
743
859
|
/**
|
|
744
860
|
* Create an animation token
|
|
745
861
|
*/
|
|
746
|
-
static create(a,
|
|
747
|
-
const
|
|
862
|
+
static create(a, n = "ease-in-out") {
|
|
863
|
+
const r = {
|
|
748
864
|
fast: {
|
|
749
865
|
value: "150ms",
|
|
750
866
|
ms: 150,
|
|
@@ -765,7 +881,7 @@ class A {
|
|
|
765
881
|
ms: 500,
|
|
766
882
|
tailwind: "duration-500"
|
|
767
883
|
}
|
|
768
|
-
},
|
|
884
|
+
}, i = {
|
|
769
885
|
"ease-in": {
|
|
770
886
|
value: "cubic-bezier(0.4, 0, 1, 1)",
|
|
771
887
|
tailwind: "ease-in",
|
|
@@ -788,31 +904,31 @@ class A {
|
|
|
788
904
|
}
|
|
789
905
|
};
|
|
790
906
|
return {
|
|
791
|
-
duration:
|
|
792
|
-
easing: n
|
|
907
|
+
duration: r[a],
|
|
908
|
+
easing: i[n]
|
|
793
909
|
};
|
|
794
910
|
}
|
|
795
911
|
/**
|
|
796
912
|
* Create a transition token
|
|
797
913
|
*/
|
|
798
|
-
static createTransition(a,
|
|
799
|
-
const
|
|
800
|
-
|
|
801
|
-
|
|
914
|
+
static createTransition(a, n = "base", r = "ease-in-out") {
|
|
915
|
+
const i = this.create(n, r), s = Array.isArray(a) ? a.join(", ") : a, c = [
|
|
916
|
+
i.duration.tailwind,
|
|
917
|
+
i.easing.tailwind
|
|
802
918
|
].join(" ");
|
|
803
919
|
return {
|
|
804
|
-
property:
|
|
805
|
-
duration:
|
|
806
|
-
timingFunction:
|
|
920
|
+
property: s,
|
|
921
|
+
duration: i.duration.value,
|
|
922
|
+
timingFunction: i.easing.value,
|
|
807
923
|
tailwind: c
|
|
808
924
|
};
|
|
809
925
|
}
|
|
810
926
|
}
|
|
811
|
-
|
|
927
|
+
W.create("fast"), W.create("base"), W.create("slow"), W.create("slower"), W.createTransition(
|
|
812
928
|
["color", "background-color", "border-color"],
|
|
813
929
|
"base"
|
|
814
|
-
),
|
|
815
|
-
class
|
|
930
|
+
), W.createTransition("opacity", "fast"), W.createTransition("transform", "base"), W.createTransition("all", "base");
|
|
931
|
+
class A {
|
|
816
932
|
/**
|
|
817
933
|
* Create a z-index token
|
|
818
934
|
*/
|
|
@@ -866,13 +982,13 @@ class z {
|
|
|
866
982
|
}[a];
|
|
867
983
|
}
|
|
868
984
|
}
|
|
869
|
-
|
|
870
|
-
class
|
|
985
|
+
A.create("base"), A.create("dropdown"), A.create("sticky"), A.create("fixed"), A.create("modal-backdrop"), A.create("modal"), A.create("popover"), A.create("tooltip"), A.create("toast");
|
|
986
|
+
class N {
|
|
871
987
|
/**
|
|
872
988
|
* Create an opacity token
|
|
873
989
|
*/
|
|
874
990
|
static create(a) {
|
|
875
|
-
const
|
|
991
|
+
const n = a / 100, r = {
|
|
876
992
|
0: "Fully transparent",
|
|
877
993
|
5: "Very light overlay",
|
|
878
994
|
10: "Light overlay",
|
|
@@ -891,7 +1007,7 @@ class k {
|
|
|
891
1007
|
};
|
|
892
1008
|
return {
|
|
893
1009
|
value: a,
|
|
894
|
-
decimal:
|
|
1010
|
+
decimal: n,
|
|
895
1011
|
tailwind: {
|
|
896
1012
|
0: "opacity-0",
|
|
897
1013
|
5: "opacity-5",
|
|
@@ -909,12 +1025,12 @@ class k {
|
|
|
909
1025
|
95: "opacity-95",
|
|
910
1026
|
100: "opacity-100"
|
|
911
1027
|
}[a],
|
|
912
|
-
description:
|
|
1028
|
+
description: r[a]
|
|
913
1029
|
};
|
|
914
1030
|
}
|
|
915
1031
|
}
|
|
916
|
-
|
|
917
|
-
const
|
|
1032
|
+
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 ze = P("w-full", {
|
|
918
1034
|
variants: {
|
|
919
1035
|
size: {
|
|
920
1036
|
sm: "h-1",
|
|
@@ -934,7 +1050,7 @@ const be = H("w-full", {
|
|
|
934
1050
|
size: "md",
|
|
935
1051
|
variant: "primary"
|
|
936
1052
|
}
|
|
937
|
-
}),
|
|
1053
|
+
}), J = P("transition-all", {
|
|
938
1054
|
variants: {
|
|
939
1055
|
variant: {
|
|
940
1056
|
primary: "bg-surface-brand",
|
|
@@ -948,17 +1064,17 @@ const be = H("w-full", {
|
|
|
948
1064
|
defaultVariants: {
|
|
949
1065
|
variant: "primary"
|
|
950
1066
|
}
|
|
951
|
-
}),
|
|
952
|
-
var h =
|
|
1067
|
+
}), Ae = O(function(x, u) {
|
|
1068
|
+
var h = x, {
|
|
953
1069
|
value: a,
|
|
954
|
-
max:
|
|
955
|
-
variant:
|
|
956
|
-
size:
|
|
957
|
-
showLabel:
|
|
1070
|
+
max: n = 100,
|
|
1071
|
+
variant: r = "primary",
|
|
1072
|
+
size: i = "md",
|
|
1073
|
+
showLabel: s = !1,
|
|
958
1074
|
label: c,
|
|
959
|
-
"aria-label":
|
|
960
|
-
className:
|
|
961
|
-
} = h,
|
|
1075
|
+
"aria-label": d,
|
|
1076
|
+
className: p = ""
|
|
1077
|
+
} = h, m = y(h, [
|
|
962
1078
|
"value",
|
|
963
1079
|
"max",
|
|
964
1080
|
"variant",
|
|
@@ -968,38 +1084,38 @@ const be = H("w-full", {
|
|
|
968
1084
|
"aria-label",
|
|
969
1085
|
"className"
|
|
970
1086
|
]);
|
|
971
|
-
const
|
|
972
|
-
return /* @__PURE__ */
|
|
973
|
-
|
|
1087
|
+
const $ = a === void 0, C = $ ? void 0 : Math.min(Math.max(a / n * 100, 0), 100), L = d || ($ ? "Loading in progress" : `Progress: ${C == null ? void 0 : C.toFixed(0)}%`);
|
|
1088
|
+
return /* @__PURE__ */ T("div", w(b({ ref: u, className: f("w-full", p) }, m), { children: [
|
|
1089
|
+
s && (c || !$) && /* @__PURE__ */ T(
|
|
974
1090
|
"div",
|
|
975
1091
|
{
|
|
976
|
-
className:
|
|
1092
|
+
className: f(
|
|
977
1093
|
"flex",
|
|
978
1094
|
"items-center",
|
|
979
1095
|
"justify-between",
|
|
980
|
-
|
|
1096
|
+
l("xs", "mb")
|
|
981
1097
|
),
|
|
982
1098
|
children: [
|
|
983
|
-
c && /* @__PURE__ */
|
|
1099
|
+
c && /* @__PURE__ */ o(
|
|
984
1100
|
"span",
|
|
985
1101
|
{
|
|
986
|
-
className:
|
|
987
|
-
|
|
988
|
-
|
|
1102
|
+
className: f(
|
|
1103
|
+
E("bodySmall"),
|
|
1104
|
+
B("label"),
|
|
989
1105
|
"text-fg-primary"
|
|
990
1106
|
),
|
|
991
1107
|
children: c
|
|
992
1108
|
}
|
|
993
1109
|
),
|
|
994
|
-
|
|
1110
|
+
!$ && C !== void 0 && /* @__PURE__ */ T(
|
|
995
1111
|
"span",
|
|
996
1112
|
{
|
|
997
|
-
className:
|
|
998
|
-
|
|
1113
|
+
className: f(
|
|
1114
|
+
E("bodySmall"),
|
|
999
1115
|
"text-fg-secondary"
|
|
1000
1116
|
),
|
|
1001
1117
|
children: [
|
|
1002
|
-
|
|
1118
|
+
C.toFixed(0),
|
|
1003
1119
|
"%"
|
|
1004
1120
|
]
|
|
1005
1121
|
}
|
|
@@ -1007,32 +1123,32 @@ const be = H("w-full", {
|
|
|
1007
1123
|
]
|
|
1008
1124
|
}
|
|
1009
1125
|
),
|
|
1010
|
-
/* @__PURE__ */
|
|
1126
|
+
/* @__PURE__ */ o(
|
|
1011
1127
|
"div",
|
|
1012
1128
|
{
|
|
1013
1129
|
role: "progressbar",
|
|
1014
|
-
"aria-valuemin":
|
|
1015
|
-
"aria-valuemax":
|
|
1016
|
-
"aria-valuenow":
|
|
1017
|
-
"aria-label":
|
|
1018
|
-
"aria-busy":
|
|
1019
|
-
className:
|
|
1130
|
+
"aria-valuemin": $ ? void 0 : 0,
|
|
1131
|
+
"aria-valuemax": $ ? void 0 : n,
|
|
1132
|
+
"aria-valuenow": $ ? void 0 : a,
|
|
1133
|
+
"aria-label": L,
|
|
1134
|
+
"aria-busy": $,
|
|
1135
|
+
className: f(
|
|
1020
1136
|
"relative",
|
|
1021
1137
|
"w-full",
|
|
1022
1138
|
"overflow-hidden",
|
|
1023
|
-
|
|
1024
|
-
|
|
1139
|
+
ze({ size: i, variant: r }),
|
|
1140
|
+
F("full")
|
|
1025
1141
|
),
|
|
1026
|
-
children:
|
|
1142
|
+
children: $ ? /* @__PURE__ */ o(
|
|
1027
1143
|
"div",
|
|
1028
1144
|
{
|
|
1029
|
-
className:
|
|
1145
|
+
className: f(
|
|
1030
1146
|
"absolute",
|
|
1031
1147
|
"top-0",
|
|
1032
1148
|
"left-0",
|
|
1033
1149
|
"bottom-0",
|
|
1034
|
-
|
|
1035
|
-
|
|
1150
|
+
J({ variant: r }),
|
|
1151
|
+
F("full"),
|
|
1036
1152
|
"motion-reduce:animate-none"
|
|
1037
1153
|
),
|
|
1038
1154
|
style: {
|
|
@@ -1040,19 +1156,19 @@ const be = H("w-full", {
|
|
|
1040
1156
|
animation: "progress-indeterminate 1.5s ease-in-out infinite"
|
|
1041
1157
|
}
|
|
1042
1158
|
}
|
|
1043
|
-
) : /* @__PURE__ */
|
|
1159
|
+
) : /* @__PURE__ */ o(
|
|
1044
1160
|
"div",
|
|
1045
1161
|
{
|
|
1046
|
-
className:
|
|
1162
|
+
className: f(
|
|
1047
1163
|
"h-full",
|
|
1048
|
-
|
|
1049
|
-
|
|
1164
|
+
J({ variant: r }),
|
|
1165
|
+
F("full"),
|
|
1050
1166
|
"transition-all",
|
|
1051
1167
|
"duration-300",
|
|
1052
1168
|
"ease-out"
|
|
1053
1169
|
),
|
|
1054
1170
|
style: {
|
|
1055
|
-
width: `${
|
|
1171
|
+
width: `${C}%`
|
|
1056
1172
|
},
|
|
1057
1173
|
"aria-hidden": "true"
|
|
1058
1174
|
}
|
|
@@ -1061,16 +1177,16 @@ const be = H("w-full", {
|
|
|
1061
1177
|
)
|
|
1062
1178
|
] }));
|
|
1063
1179
|
});
|
|
1064
|
-
|
|
1065
|
-
function
|
|
1066
|
-
var
|
|
1067
|
-
variant:
|
|
1180
|
+
Ae.displayName = "Progress";
|
|
1181
|
+
function Ze(d) {
|
|
1182
|
+
var p = d, {
|
|
1183
|
+
variant: t = "text",
|
|
1068
1184
|
width: a,
|
|
1069
|
-
height:
|
|
1070
|
-
lines:
|
|
1071
|
-
className:
|
|
1072
|
-
"aria-label":
|
|
1073
|
-
} =
|
|
1185
|
+
height: n,
|
|
1186
|
+
lines: r = 1,
|
|
1187
|
+
className: i = "",
|
|
1188
|
+
"aria-label": s
|
|
1189
|
+
} = p, c = y(p, [
|
|
1074
1190
|
"variant",
|
|
1075
1191
|
"width",
|
|
1076
1192
|
"height",
|
|
@@ -1078,48 +1194,48 @@ function De(f) {
|
|
|
1078
1194
|
"className",
|
|
1079
1195
|
"aria-label"
|
|
1080
1196
|
]);
|
|
1081
|
-
const
|
|
1197
|
+
const m = [
|
|
1082
1198
|
"motion-safe:animate-pulse",
|
|
1083
1199
|
"bg-surface-muted",
|
|
1084
|
-
|
|
1085
|
-
],
|
|
1200
|
+
F("sm")
|
|
1201
|
+
], u = {
|
|
1086
1202
|
text: "h-4",
|
|
1087
1203
|
card: "h-32",
|
|
1088
1204
|
list: "h-12",
|
|
1089
|
-
circle:
|
|
1090
|
-
},
|
|
1091
|
-
a && (h.width = a),
|
|
1092
|
-
const
|
|
1093
|
-
return
|
|
1205
|
+
circle: F("full")
|
|
1206
|
+
}, x = f(...m, u[t], i), h = {};
|
|
1207
|
+
a && (h.width = a), n && (h.height = n);
|
|
1208
|
+
const $ = s || `Loading ${t} content`;
|
|
1209
|
+
return t === "text" && r > 1 ? /* @__PURE__ */ o(
|
|
1094
1210
|
"div",
|
|
1095
|
-
|
|
1096
|
-
className:
|
|
1211
|
+
w(b({
|
|
1212
|
+
className: l("sm", "space-y"),
|
|
1097
1213
|
role: "status",
|
|
1098
1214
|
"aria-busy": "true",
|
|
1099
|
-
"aria-label":
|
|
1215
|
+
"aria-label": $
|
|
1100
1216
|
}, c), {
|
|
1101
|
-
children: Array.from({ length:
|
|
1217
|
+
children: Array.from({ length: r }).map((C, L) => /* @__PURE__ */ o(
|
|
1102
1218
|
"div",
|
|
1103
1219
|
{
|
|
1104
|
-
className:
|
|
1105
|
-
style:
|
|
1220
|
+
className: x,
|
|
1221
|
+
style: L === r - 1 ? { width: "75%" } : h,
|
|
1106
1222
|
"aria-hidden": "true"
|
|
1107
1223
|
},
|
|
1108
|
-
|
|
1224
|
+
L
|
|
1109
1225
|
))
|
|
1110
1226
|
})
|
|
1111
|
-
) : /* @__PURE__ */
|
|
1227
|
+
) : /* @__PURE__ */ o(
|
|
1112
1228
|
"div",
|
|
1113
|
-
|
|
1114
|
-
className:
|
|
1229
|
+
b({
|
|
1230
|
+
className: x,
|
|
1115
1231
|
style: h,
|
|
1116
1232
|
role: "status",
|
|
1117
1233
|
"aria-busy": "true",
|
|
1118
|
-
"aria-label":
|
|
1234
|
+
"aria-label": $
|
|
1119
1235
|
}, c)
|
|
1120
1236
|
);
|
|
1121
1237
|
}
|
|
1122
|
-
const
|
|
1238
|
+
const Ee = P("motion-safe:animate-spin", {
|
|
1123
1239
|
variants: {
|
|
1124
1240
|
size: {
|
|
1125
1241
|
sm: "h-4 w-4",
|
|
@@ -1136,52 +1252,52 @@ const xe = H("motion-safe:animate-spin", {
|
|
|
1136
1252
|
size: "md",
|
|
1137
1253
|
variant: "primary"
|
|
1138
1254
|
}
|
|
1139
|
-
}),
|
|
1140
|
-
var
|
|
1255
|
+
}), Ie = le(function(c) {
|
|
1256
|
+
var d = c, {
|
|
1141
1257
|
size: a = "md",
|
|
1142
|
-
variant:
|
|
1143
|
-
label:
|
|
1144
|
-
className:
|
|
1145
|
-
} =
|
|
1258
|
+
variant: n = "primary",
|
|
1259
|
+
label: r,
|
|
1260
|
+
className: i = ""
|
|
1261
|
+
} = d, s = y(d, [
|
|
1146
1262
|
"size",
|
|
1147
1263
|
"variant",
|
|
1148
1264
|
"label",
|
|
1149
1265
|
"className"
|
|
1150
1266
|
]);
|
|
1151
|
-
return /* @__PURE__ */
|
|
1267
|
+
return /* @__PURE__ */ T(
|
|
1152
1268
|
"div",
|
|
1153
|
-
|
|
1154
|
-
className:
|
|
1269
|
+
w(b({
|
|
1270
|
+
className: f("inline-flex", "items-center", i),
|
|
1155
1271
|
role: "status",
|
|
1156
|
-
"aria-label":
|
|
1272
|
+
"aria-label": r || "Loading",
|
|
1157
1273
|
"aria-live": "polite"
|
|
1158
|
-
},
|
|
1274
|
+
}, s), {
|
|
1159
1275
|
children: [
|
|
1160
|
-
/* @__PURE__ */
|
|
1161
|
-
|
|
1276
|
+
/* @__PURE__ */ o(
|
|
1277
|
+
de,
|
|
1162
1278
|
{
|
|
1163
|
-
className:
|
|
1279
|
+
className: f(Ee({ size: a, variant: n })),
|
|
1164
1280
|
"aria-hidden": "true"
|
|
1165
1281
|
}
|
|
1166
1282
|
),
|
|
1167
|
-
|
|
1283
|
+
r && /* @__PURE__ */ o(
|
|
1168
1284
|
"span",
|
|
1169
1285
|
{
|
|
1170
|
-
className:
|
|
1171
|
-
|
|
1172
|
-
|
|
1286
|
+
className: f(
|
|
1287
|
+
l("sm", "ml"),
|
|
1288
|
+
E("bodySmall"),
|
|
1173
1289
|
"text-fg-secondary",
|
|
1174
1290
|
"sr-only"
|
|
1175
1291
|
),
|
|
1176
|
-
children:
|
|
1292
|
+
children: r
|
|
1177
1293
|
}
|
|
1178
1294
|
)
|
|
1179
1295
|
]
|
|
1180
1296
|
})
|
|
1181
1297
|
);
|
|
1182
1298
|
});
|
|
1183
|
-
|
|
1184
|
-
const
|
|
1299
|
+
Ie.displayName = "Spinner";
|
|
1300
|
+
const We = {
|
|
1185
1301
|
primary: {
|
|
1186
1302
|
// exception: variant color — no semantic equivalent (Principle 3, .claude/rules/colors.md)
|
|
1187
1303
|
light: "text-indigo-400",
|
|
@@ -1233,16 +1349,16 @@ const ye = {
|
|
|
1233
1349
|
contrast: "text-fg-inverse"
|
|
1234
1350
|
}
|
|
1235
1351
|
};
|
|
1236
|
-
function
|
|
1237
|
-
var
|
|
1238
|
-
variant:
|
|
1352
|
+
function Re(m, p) {
|
|
1353
|
+
var u = m, {
|
|
1354
|
+
variant: t = "paragraph",
|
|
1239
1355
|
bold: a,
|
|
1240
|
-
italic:
|
|
1241
|
-
className:
|
|
1242
|
-
as:
|
|
1243
|
-
colorRole:
|
|
1356
|
+
italic: n,
|
|
1357
|
+
className: r,
|
|
1358
|
+
as: i,
|
|
1359
|
+
colorRole: s = "neutral",
|
|
1244
1360
|
colorShade: c = "dark"
|
|
1245
|
-
} =
|
|
1361
|
+
} = u, d = y(u, [
|
|
1246
1362
|
"variant",
|
|
1247
1363
|
"bold",
|
|
1248
1364
|
"italic",
|
|
@@ -1251,12 +1367,12 @@ function we(p, m) {
|
|
|
1251
1367
|
"colorRole",
|
|
1252
1368
|
"colorShade"
|
|
1253
1369
|
]);
|
|
1254
|
-
const
|
|
1370
|
+
const x = [];
|
|
1255
1371
|
let h;
|
|
1256
|
-
if (
|
|
1257
|
-
h =
|
|
1372
|
+
if (i)
|
|
1373
|
+
h = i;
|
|
1258
1374
|
else
|
|
1259
|
-
switch (
|
|
1375
|
+
switch (t) {
|
|
1260
1376
|
case "heading":
|
|
1261
1377
|
h = "h2";
|
|
1262
1378
|
break;
|
|
@@ -1267,25 +1383,25 @@ function we(p, m) {
|
|
|
1267
1383
|
h = "p";
|
|
1268
1384
|
break;
|
|
1269
1385
|
}
|
|
1270
|
-
return
|
|
1386
|
+
return t === "heading" ? x.push(R("h2")) : t === "body" || t === "paragraph" ? x.push(R("body")) : t === "bodySmall" ? x.push(R("bodySmall")) : t === "bodyLarge" ? x.push(R("bodyLarge")) : t === "caption" ? x.push(R("caption")) : t === "label" ? x.push(R("label")) : x.push(R("body")), a && x.push("font-bold"), n && x.push("italic"), x.push(We[s][c]), /* @__PURE__ */ o(h, b({ ref: p, className: f(...x, r) }, d));
|
|
1271
1387
|
}
|
|
1272
|
-
const
|
|
1388
|
+
const Ge = O(Re), je = {
|
|
1273
1389
|
sm: "max-w-screen-sm",
|
|
1274
1390
|
md: "max-w-screen-md",
|
|
1275
1391
|
lg: "max-w-screen-lg",
|
|
1276
1392
|
xl: "max-w-screen-xl",
|
|
1277
1393
|
"2xl": "max-w-screen-2xl",
|
|
1278
1394
|
full: "max-w-full"
|
|
1279
|
-
},
|
|
1280
|
-
(
|
|
1281
|
-
var
|
|
1282
|
-
className:
|
|
1395
|
+
}, De = ee.forwardRef(
|
|
1396
|
+
(p, d) => {
|
|
1397
|
+
var m = p, {
|
|
1398
|
+
className: t,
|
|
1283
1399
|
maxWidth: a = "lg",
|
|
1284
|
-
paddingX:
|
|
1285
|
-
paddingY:
|
|
1286
|
-
center:
|
|
1287
|
-
children:
|
|
1288
|
-
} =
|
|
1400
|
+
paddingX: n = "base",
|
|
1401
|
+
paddingY: r = "base",
|
|
1402
|
+
center: i = !0,
|
|
1403
|
+
children: s
|
|
1404
|
+
} = m, c = y(m, [
|
|
1289
1405
|
"className",
|
|
1290
1406
|
"maxWidth",
|
|
1291
1407
|
"paddingX",
|
|
@@ -1293,35 +1409,35 @@ const je = V(we), ve = {
|
|
|
1293
1409
|
"center",
|
|
1294
1410
|
"children"
|
|
1295
1411
|
]);
|
|
1296
|
-
return /* @__PURE__ */
|
|
1412
|
+
return /* @__PURE__ */ o(
|
|
1297
1413
|
"div",
|
|
1298
|
-
|
|
1299
|
-
ref:
|
|
1300
|
-
className:
|
|
1414
|
+
w(b({
|
|
1415
|
+
ref: d,
|
|
1416
|
+
className: f(
|
|
1301
1417
|
"w-full",
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1418
|
+
je[a],
|
|
1419
|
+
l(n, "px"),
|
|
1420
|
+
l(r, "py"),
|
|
1421
|
+
i && "mx-auto",
|
|
1422
|
+
t
|
|
1307
1423
|
)
|
|
1308
1424
|
}, c), {
|
|
1309
|
-
children:
|
|
1425
|
+
children: s
|
|
1310
1426
|
})
|
|
1311
1427
|
);
|
|
1312
1428
|
}
|
|
1313
1429
|
);
|
|
1314
|
-
|
|
1315
|
-
const
|
|
1316
|
-
(
|
|
1317
|
-
var
|
|
1318
|
-
className:
|
|
1430
|
+
De.displayName = "Container";
|
|
1431
|
+
const _e = ee.forwardRef(
|
|
1432
|
+
(p, d) => {
|
|
1433
|
+
var m = p, {
|
|
1434
|
+
className: t,
|
|
1319
1435
|
spacing: a = "base",
|
|
1320
|
-
align:
|
|
1321
|
-
justify:
|
|
1322
|
-
direction:
|
|
1323
|
-
children:
|
|
1324
|
-
} =
|
|
1436
|
+
align: n = "stretch",
|
|
1437
|
+
justify: r = "start",
|
|
1438
|
+
direction: i = "column",
|
|
1439
|
+
children: s
|
|
1440
|
+
} = m, c = y(m, [
|
|
1325
1441
|
"className",
|
|
1326
1442
|
"spacing",
|
|
1327
1443
|
"align",
|
|
@@ -1329,7 +1445,7 @@ const Ne = Y.forwardRef(
|
|
|
1329
1445
|
"direction",
|
|
1330
1446
|
"children"
|
|
1331
1447
|
]);
|
|
1332
|
-
const
|
|
1448
|
+
const u = i === "column" ? l(a, "gap-y") : l(a, "gap-x"), x = {
|
|
1333
1449
|
start: "items-start",
|
|
1334
1450
|
center: "items-center",
|
|
1335
1451
|
end: "items-end",
|
|
@@ -1342,65 +1458,65 @@ const Ne = Y.forwardRef(
|
|
|
1342
1458
|
around: "justify-around",
|
|
1343
1459
|
evenly: "justify-evenly"
|
|
1344
1460
|
};
|
|
1345
|
-
return /* @__PURE__ */
|
|
1461
|
+
return /* @__PURE__ */ o(
|
|
1346
1462
|
"div",
|
|
1347
|
-
|
|
1348
|
-
ref:
|
|
1349
|
-
className:
|
|
1463
|
+
w(b({
|
|
1464
|
+
ref: d,
|
|
1465
|
+
className: f(
|
|
1350
1466
|
"flex",
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
h[
|
|
1355
|
-
|
|
1467
|
+
i === "column" ? "flex-col" : "flex-row",
|
|
1468
|
+
u,
|
|
1469
|
+
x[n],
|
|
1470
|
+
h[r],
|
|
1471
|
+
t
|
|
1356
1472
|
)
|
|
1357
1473
|
}, c), {
|
|
1358
|
-
children:
|
|
1474
|
+
children: s
|
|
1359
1475
|
})
|
|
1360
1476
|
);
|
|
1361
1477
|
}
|
|
1362
1478
|
);
|
|
1363
|
-
|
|
1364
|
-
const
|
|
1365
|
-
function({ option: a, isHighlighted:
|
|
1366
|
-
const
|
|
1367
|
-
a.disabled ||
|
|
1479
|
+
_e.displayName = "Stack";
|
|
1480
|
+
const Ve = O(
|
|
1481
|
+
function({ option: a, isHighlighted: n, onSelect: r }, i) {
|
|
1482
|
+
const s = () => {
|
|
1483
|
+
a.disabled || r(a);
|
|
1368
1484
|
};
|
|
1369
|
-
return /* @__PURE__ */
|
|
1485
|
+
return /* @__PURE__ */ T(
|
|
1370
1486
|
"div",
|
|
1371
1487
|
{
|
|
1372
|
-
ref:
|
|
1488
|
+
ref: i,
|
|
1373
1489
|
role: "option",
|
|
1374
|
-
"aria-selected":
|
|
1490
|
+
"aria-selected": n,
|
|
1375
1491
|
"aria-disabled": a.disabled,
|
|
1376
|
-
onClick:
|
|
1492
|
+
onClick: s,
|
|
1377
1493
|
className: `
|
|
1378
1494
|
flex
|
|
1379
1495
|
items-center
|
|
1380
|
-
${
|
|
1381
|
-
${
|
|
1382
|
-
${
|
|
1496
|
+
${l("sm", "gap")}
|
|
1497
|
+
${l("sm", "px")}
|
|
1498
|
+
${l("sm", "py")}
|
|
1383
1499
|
text-sm
|
|
1384
1500
|
cursor-pointer
|
|
1385
1501
|
transition-colors
|
|
1386
|
-
${
|
|
1502
|
+
${n ? "bg-surface-active" : ""}
|
|
1387
1503
|
${a.disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-surface-hover"}
|
|
1388
1504
|
`,
|
|
1389
1505
|
children: [
|
|
1390
|
-
a.icon && /* @__PURE__ */
|
|
1391
|
-
/* @__PURE__ */
|
|
1506
|
+
a.icon && /* @__PURE__ */ o("span", { className: "flex-shrink-0", children: a.icon }),
|
|
1507
|
+
/* @__PURE__ */ o("span", { className: "flex-1", children: a.label })
|
|
1392
1508
|
]
|
|
1393
1509
|
}
|
|
1394
1510
|
);
|
|
1395
1511
|
}
|
|
1396
1512
|
);
|
|
1397
|
-
|
|
1398
|
-
function
|
|
1399
|
-
var
|
|
1400
|
-
items:
|
|
1513
|
+
Ve.displayName = "AutocompleteOption";
|
|
1514
|
+
function Qe(i) {
|
|
1515
|
+
var s = i, {
|
|
1516
|
+
items: t,
|
|
1401
1517
|
separator: a = "/",
|
|
1402
|
-
className:
|
|
1403
|
-
} =
|
|
1518
|
+
className: n = ""
|
|
1519
|
+
} = s, r = y(s, [
|
|
1404
1520
|
"items",
|
|
1405
1521
|
"separator",
|
|
1406
1522
|
"className"
|
|
@@ -1408,218 +1524,218 @@ function Ee(n) {
|
|
|
1408
1524
|
const c = [
|
|
1409
1525
|
"flex",
|
|
1410
1526
|
"items-center",
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
],
|
|
1414
|
-
return /* @__PURE__ */
|
|
1527
|
+
l("sm", "space-x"),
|
|
1528
|
+
E("bodySmall")
|
|
1529
|
+
], d = f(...c, n);
|
|
1530
|
+
return /* @__PURE__ */ o("nav", w(b({ "aria-label": "Breadcrumb", className: d }, r), { children: /* @__PURE__ */ o(
|
|
1415
1531
|
"ol",
|
|
1416
1532
|
{
|
|
1417
|
-
className:
|
|
1418
|
-
children:
|
|
1419
|
-
const
|
|
1420
|
-
return /* @__PURE__ */
|
|
1421
|
-
|
|
1533
|
+
className: f("flex", "items-center", l("sm", "space-x")),
|
|
1534
|
+
children: t.map((p, m) => {
|
|
1535
|
+
const u = m === t.length - 1;
|
|
1536
|
+
return /* @__PURE__ */ T("li", { className: "flex items-center", children: [
|
|
1537
|
+
m > 0 && /* @__PURE__ */ o(
|
|
1422
1538
|
"span",
|
|
1423
1539
|
{
|
|
1424
|
-
className:
|
|
1425
|
-
|
|
1540
|
+
className: f(
|
|
1541
|
+
l("sm", "mx"),
|
|
1426
1542
|
"text-fg-tertiary"
|
|
1427
1543
|
),
|
|
1428
1544
|
"aria-hidden": "true",
|
|
1429
1545
|
children: a
|
|
1430
1546
|
}
|
|
1431
1547
|
),
|
|
1432
|
-
|
|
1548
|
+
u ? /* @__PURE__ */ o(
|
|
1433
1549
|
"span",
|
|
1434
1550
|
{
|
|
1435
|
-
className:
|
|
1551
|
+
className: f(
|
|
1436
1552
|
"text-fg-primary",
|
|
1437
|
-
|
|
1553
|
+
B("label")
|
|
1438
1554
|
),
|
|
1439
1555
|
"aria-current": "page",
|
|
1440
|
-
children:
|
|
1556
|
+
children: p.label
|
|
1441
1557
|
}
|
|
1442
|
-
) :
|
|
1558
|
+
) : p.href ? /* @__PURE__ */ o(
|
|
1443
1559
|
"a",
|
|
1444
1560
|
{
|
|
1445
|
-
href:
|
|
1446
|
-
className:
|
|
1561
|
+
href: p.href,
|
|
1562
|
+
className: f(
|
|
1447
1563
|
"inline-flex",
|
|
1448
1564
|
"items-center",
|
|
1449
|
-
|
|
1450
|
-
|
|
1565
|
+
l("xs", "px"),
|
|
1566
|
+
l("xs", "pt"),
|
|
1451
1567
|
"border-b-2",
|
|
1452
1568
|
"border-transparent",
|
|
1453
|
-
|
|
1454
|
-
|
|
1569
|
+
E("bodySmall"),
|
|
1570
|
+
B("label"),
|
|
1455
1571
|
"transition-colors",
|
|
1456
1572
|
"text-fg-secondary",
|
|
1457
1573
|
"hover:border-line-emphasis",
|
|
1458
1574
|
"hover:text-fg-primary"
|
|
1459
1575
|
),
|
|
1460
|
-
children:
|
|
1576
|
+
children: p.label
|
|
1461
1577
|
}
|
|
1462
|
-
) : /* @__PURE__ */
|
|
1463
|
-
] },
|
|
1578
|
+
) : /* @__PURE__ */ o("span", { className: "text-fg-secondary", children: p.label })
|
|
1579
|
+
] }, m);
|
|
1464
1580
|
})
|
|
1465
1581
|
}
|
|
1466
1582
|
) }));
|
|
1467
1583
|
}
|
|
1468
|
-
function
|
|
1469
|
-
var
|
|
1470
|
-
children:
|
|
1584
|
+
function Je(r) {
|
|
1585
|
+
var i = r, {
|
|
1586
|
+
children: t,
|
|
1471
1587
|
className: a = ""
|
|
1472
|
-
} =
|
|
1588
|
+
} = i, n = y(i, [
|
|
1473
1589
|
"children",
|
|
1474
1590
|
"className"
|
|
1475
1591
|
]);
|
|
1476
|
-
return /* @__PURE__ */
|
|
1592
|
+
return /* @__PURE__ */ o(
|
|
1477
1593
|
"div",
|
|
1478
|
-
|
|
1479
|
-
className: `flex flex-col ${
|
|
1480
|
-
},
|
|
1481
|
-
children:
|
|
1594
|
+
w(b({
|
|
1595
|
+
className: `flex flex-col ${l("1.5", "space-y")} ${l("lg", "p")} ${l("base", "pb")} ${a}`
|
|
1596
|
+
}, n), {
|
|
1597
|
+
children: t
|
|
1482
1598
|
})
|
|
1483
1599
|
);
|
|
1484
1600
|
}
|
|
1485
|
-
function
|
|
1486
|
-
var
|
|
1487
|
-
children:
|
|
1601
|
+
function ea(r) {
|
|
1602
|
+
var i = r, {
|
|
1603
|
+
children: t,
|
|
1488
1604
|
className: a = ""
|
|
1489
|
-
} =
|
|
1605
|
+
} = i, n = y(i, [
|
|
1490
1606
|
"children",
|
|
1491
1607
|
"className"
|
|
1492
1608
|
]);
|
|
1493
|
-
return /* @__PURE__ */
|
|
1609
|
+
return /* @__PURE__ */ o(
|
|
1494
1610
|
"div",
|
|
1495
|
-
|
|
1496
|
-
className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${
|
|
1497
|
-
},
|
|
1498
|
-
children:
|
|
1611
|
+
w(b({
|
|
1612
|
+
className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${l("sm", "space-x")} ${l("lg", "p")} ${l("base", "pt")} ${a}`
|
|
1613
|
+
}, n), {
|
|
1614
|
+
children: t
|
|
1499
1615
|
})
|
|
1500
1616
|
);
|
|
1501
1617
|
}
|
|
1502
|
-
function
|
|
1503
|
-
var
|
|
1504
|
-
children:
|
|
1618
|
+
function aa(r) {
|
|
1619
|
+
var i = r, {
|
|
1620
|
+
children: t,
|
|
1505
1621
|
className: a = ""
|
|
1506
|
-
} =
|
|
1622
|
+
} = i, n = y(i, [
|
|
1507
1623
|
"children",
|
|
1508
1624
|
"className"
|
|
1509
1625
|
]);
|
|
1510
|
-
return /* @__PURE__ */
|
|
1626
|
+
return /* @__PURE__ */ o(
|
|
1511
1627
|
"div",
|
|
1512
|
-
|
|
1628
|
+
w(b({
|
|
1513
1629
|
className: `
|
|
1514
|
-
${
|
|
1630
|
+
${l("lg", "p")}
|
|
1515
1631
|
border-b
|
|
1516
1632
|
border-line-default
|
|
1517
1633
|
${a}
|
|
1518
1634
|
`
|
|
1519
|
-
},
|
|
1520
|
-
children:
|
|
1635
|
+
}, n), {
|
|
1636
|
+
children: t
|
|
1521
1637
|
})
|
|
1522
1638
|
);
|
|
1523
1639
|
}
|
|
1524
|
-
function
|
|
1525
|
-
var
|
|
1526
|
-
children:
|
|
1640
|
+
function ta(r) {
|
|
1641
|
+
var i = r, {
|
|
1642
|
+
children: t,
|
|
1527
1643
|
className: a = ""
|
|
1528
|
-
} =
|
|
1644
|
+
} = i, n = y(i, [
|
|
1529
1645
|
"children",
|
|
1530
1646
|
"className"
|
|
1531
1647
|
]);
|
|
1532
|
-
return /* @__PURE__ */
|
|
1648
|
+
return /* @__PURE__ */ o(
|
|
1533
1649
|
"div",
|
|
1534
|
-
|
|
1650
|
+
w(b({
|
|
1535
1651
|
className: `
|
|
1536
|
-
${
|
|
1652
|
+
${l("lg", "p")}
|
|
1537
1653
|
border-t
|
|
1538
1654
|
border-line-default
|
|
1539
1655
|
flex
|
|
1540
1656
|
justify-end
|
|
1541
|
-
${
|
|
1657
|
+
${l("sm", "gap")}
|
|
1542
1658
|
${a}
|
|
1543
1659
|
`
|
|
1544
|
-
},
|
|
1545
|
-
children:
|
|
1660
|
+
}, n), {
|
|
1661
|
+
children: t
|
|
1546
1662
|
})
|
|
1547
1663
|
);
|
|
1548
1664
|
}
|
|
1549
|
-
function
|
|
1550
|
-
return /* @__PURE__ */
|
|
1665
|
+
function ra({ children: t, className: a }) {
|
|
1666
|
+
return /* @__PURE__ */ o(
|
|
1551
1667
|
"div",
|
|
1552
1668
|
{
|
|
1553
|
-
className:
|
|
1669
|
+
className: f(
|
|
1554
1670
|
"flex-shrink-0 flex items-center",
|
|
1555
|
-
|
|
1671
|
+
l("sm", "gap"),
|
|
1556
1672
|
a
|
|
1557
1673
|
),
|
|
1558
|
-
children:
|
|
1674
|
+
children: t
|
|
1559
1675
|
}
|
|
1560
1676
|
);
|
|
1561
1677
|
}
|
|
1562
|
-
function
|
|
1563
|
-
children:
|
|
1678
|
+
function na({
|
|
1679
|
+
children: t,
|
|
1564
1680
|
className: a
|
|
1565
1681
|
}) {
|
|
1566
|
-
return /* @__PURE__ */
|
|
1682
|
+
return /* @__PURE__ */ o(
|
|
1567
1683
|
"nav",
|
|
1568
1684
|
{
|
|
1569
|
-
className:
|
|
1685
|
+
className: f(
|
|
1570
1686
|
"flex-1 flex items-center justify-center",
|
|
1571
|
-
|
|
1687
|
+
l("base", "gap"),
|
|
1572
1688
|
"hidden md:flex",
|
|
1573
1689
|
// Hidden on mobile, visible on desktop
|
|
1574
1690
|
a
|
|
1575
1691
|
),
|
|
1576
1692
|
"aria-label": "Main navigation",
|
|
1577
|
-
children:
|
|
1693
|
+
children: t
|
|
1578
1694
|
}
|
|
1579
1695
|
);
|
|
1580
1696
|
}
|
|
1581
|
-
function
|
|
1582
|
-
var
|
|
1583
|
-
className:
|
|
1584
|
-
} =
|
|
1697
|
+
function ia(n) {
|
|
1698
|
+
var r = n, {
|
|
1699
|
+
className: t = ""
|
|
1700
|
+
} = r, a = y(r, [
|
|
1585
1701
|
"className"
|
|
1586
1702
|
]);
|
|
1587
|
-
return /* @__PURE__ */
|
|
1703
|
+
return /* @__PURE__ */ o(
|
|
1588
1704
|
"div",
|
|
1589
|
-
|
|
1705
|
+
b({
|
|
1590
1706
|
role: "separator",
|
|
1591
1707
|
className: `
|
|
1592
1708
|
h-px
|
|
1593
1709
|
bg-line-default
|
|
1594
|
-
${
|
|
1595
|
-
${
|
|
1710
|
+
${l("sm", "my")}
|
|
1711
|
+
${t}
|
|
1596
1712
|
`
|
|
1597
1713
|
}, a)
|
|
1598
1714
|
);
|
|
1599
1715
|
}
|
|
1600
|
-
function
|
|
1601
|
-
var
|
|
1602
|
-
orientation:
|
|
1716
|
+
function sa(r) {
|
|
1717
|
+
var i = r, {
|
|
1718
|
+
orientation: t = "horizontal",
|
|
1603
1719
|
className: a = ""
|
|
1604
|
-
} =
|
|
1720
|
+
} = i, n = y(i, [
|
|
1605
1721
|
"orientation",
|
|
1606
1722
|
"className"
|
|
1607
1723
|
]);
|
|
1608
|
-
return
|
|
1724
|
+
return t === "vertical" ? /* @__PURE__ */ o(
|
|
1609
1725
|
"div",
|
|
1610
|
-
|
|
1611
|
-
className:
|
|
1726
|
+
b({
|
|
1727
|
+
className: f("w-px", "h-6", "bg-line-default", "mx-auto", a),
|
|
1612
1728
|
role: "separator",
|
|
1613
1729
|
"aria-orientation": "vertical"
|
|
1614
|
-
},
|
|
1615
|
-
) : /* @__PURE__ */
|
|
1730
|
+
}, n)
|
|
1731
|
+
) : /* @__PURE__ */ o(
|
|
1616
1732
|
"div",
|
|
1617
|
-
|
|
1618
|
-
className:
|
|
1733
|
+
b({
|
|
1734
|
+
className: f(
|
|
1619
1735
|
"w-full",
|
|
1620
1736
|
"h-px",
|
|
1621
1737
|
"bg-line-default",
|
|
1622
|
-
|
|
1738
|
+
l("sm", "my"),
|
|
1623
1739
|
// my-2 (8px) para consistência com gap-2 usado em outros lugares
|
|
1624
1740
|
"flex-shrink-0",
|
|
1625
1741
|
// Prevenir que separator encolha
|
|
@@ -1632,173 +1748,173 @@ function qe(t) {
|
|
|
1632
1748
|
willChange: "auto",
|
|
1633
1749
|
transform: "none"
|
|
1634
1750
|
}
|
|
1635
|
-
},
|
|
1751
|
+
}, n)
|
|
1636
1752
|
);
|
|
1637
1753
|
}
|
|
1638
|
-
function
|
|
1639
|
-
var
|
|
1640
|
-
const c =
|
|
1641
|
-
return /* @__PURE__ */
|
|
1754
|
+
function la(i) {
|
|
1755
|
+
var s = i, { column: t, row: a, className: n = "" } = s, r = y(s, ["column", "row", "className"]);
|
|
1756
|
+
const c = t.key in a ? a[t.key] : void 0;
|
|
1757
|
+
return /* @__PURE__ */ o(
|
|
1642
1758
|
"td",
|
|
1643
|
-
|
|
1644
|
-
className: `${
|
|
1645
|
-
},
|
|
1646
|
-
children:
|
|
1759
|
+
w(b({
|
|
1760
|
+
className: `${l("lg", "px")} ${l("base", "py")} whitespace-nowrap text-sm text-fg-primary ${t.hiddenOnMobile ? "hidden md:table-cell" : ""} ${n}`
|
|
1761
|
+
}, r), {
|
|
1762
|
+
children: t.render ? t.render(c, a) : String(c != null ? c : "")
|
|
1647
1763
|
})
|
|
1648
1764
|
);
|
|
1649
1765
|
}
|
|
1650
|
-
function
|
|
1651
|
-
items:
|
|
1766
|
+
function oa({
|
|
1767
|
+
items: t,
|
|
1652
1768
|
orientation: a = "vertical",
|
|
1653
|
-
className:
|
|
1769
|
+
className: n = ""
|
|
1654
1770
|
}) {
|
|
1655
|
-
return a === "horizontal" ? /* @__PURE__ */
|
|
1656
|
-
const
|
|
1657
|
-
return /* @__PURE__ */
|
|
1658
|
-
/* @__PURE__ */
|
|
1771
|
+
return a === "horizontal" ? /* @__PURE__ */ o("div", { className: `flex items-start ${n}`, children: t.map((r, i) => {
|
|
1772
|
+
const s = r.status || (i === 0 ? "active" : i < t.findIndex((d) => d.status === "active") ? "completed" : "default"), c = i === t.length - 1;
|
|
1773
|
+
return /* @__PURE__ */ o("div", { className: "flex items-start flex-1", children: /* @__PURE__ */ T("div", { className: "flex flex-col items-center flex-1", children: [
|
|
1774
|
+
/* @__PURE__ */ o(
|
|
1659
1775
|
"div",
|
|
1660
|
-
|
|
1776
|
+
w(b({}, s === "default" ? { "data-marker": "pending" } : {}), {
|
|
1661
1777
|
className: `
|
|
1662
1778
|
flex
|
|
1663
1779
|
items-center
|
|
1664
1780
|
justify-center
|
|
1665
1781
|
w-10
|
|
1666
1782
|
h-10
|
|
1667
|
-
${
|
|
1783
|
+
${F("full")}
|
|
1668
1784
|
border-2
|
|
1669
|
-
${
|
|
1785
|
+
${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"}
|
|
1670
1786
|
`,
|
|
1671
|
-
children:
|
|
1787
|
+
children: r.icon || (s === "completed" ? /* @__PURE__ */ o(Z, { className: "h-4 w-4" }) : i + 1)
|
|
1672
1788
|
})
|
|
1673
1789
|
),
|
|
1674
|
-
!c && /* @__PURE__ */
|
|
1790
|
+
!c && /* @__PURE__ */ o(
|
|
1675
1791
|
"div",
|
|
1676
1792
|
{
|
|
1677
1793
|
className: `
|
|
1678
1794
|
w-full
|
|
1679
1795
|
h-0.5
|
|
1680
|
-
${
|
|
1681
|
-
${
|
|
1796
|
+
${l("sm", "mt")}
|
|
1797
|
+
${s === "completed" ? "bg-success" : "bg-line-emphasis"}
|
|
1682
1798
|
`
|
|
1683
1799
|
}
|
|
1684
1800
|
),
|
|
1685
|
-
/* @__PURE__ */
|
|
1801
|
+
/* @__PURE__ */ T(
|
|
1686
1802
|
"div",
|
|
1687
1803
|
{
|
|
1688
|
-
className: `${
|
|
1804
|
+
className: `${l("base", "mt")} text-center ${l("base", "px")}`,
|
|
1689
1805
|
children: [
|
|
1690
|
-
|
|
1806
|
+
r.timestamp && /* @__PURE__ */ o(
|
|
1691
1807
|
"p",
|
|
1692
1808
|
{
|
|
1693
|
-
className: `text-xs text-fg-tertiary ${
|
|
1694
|
-
children:
|
|
1809
|
+
className: `text-xs text-fg-tertiary ${l("xs", "mb")}`,
|
|
1810
|
+
children: r.timestamp
|
|
1695
1811
|
}
|
|
1696
1812
|
),
|
|
1697
|
-
/* @__PURE__ */
|
|
1698
|
-
|
|
1813
|
+
/* @__PURE__ */ o("h3", { className: "text-sm font-semibold text-fg-primary", children: r.title }),
|
|
1814
|
+
r.description && /* @__PURE__ */ o(
|
|
1699
1815
|
"p",
|
|
1700
1816
|
{
|
|
1701
|
-
className: `text-xs text-fg-secondary ${
|
|
1702
|
-
children:
|
|
1817
|
+
className: `text-xs text-fg-secondary ${l("xs", "mt")}`,
|
|
1818
|
+
children: r.description
|
|
1703
1819
|
}
|
|
1704
1820
|
),
|
|
1705
|
-
|
|
1821
|
+
r.content && /* @__PURE__ */ o("div", { className: l("sm", "mt"), children: r.content })
|
|
1706
1822
|
]
|
|
1707
1823
|
}
|
|
1708
1824
|
)
|
|
1709
|
-
] }) },
|
|
1710
|
-
}) }) : /* @__PURE__ */
|
|
1711
|
-
const
|
|
1712
|
-
return /* @__PURE__ */
|
|
1825
|
+
] }) }, r.id);
|
|
1826
|
+
}) }) : /* @__PURE__ */ o("div", { className: `${l("none", "space-y")} ${n}`, children: t.map((r, i) => {
|
|
1827
|
+
const s = r.status || (i === 0 ? "active" : i < t.findIndex((d) => d.status === "active") ? "completed" : "default"), c = i === t.length - 1;
|
|
1828
|
+
return /* @__PURE__ */ T(
|
|
1713
1829
|
"div",
|
|
1714
1830
|
{
|
|
1715
|
-
className: `flex items-start ${
|
|
1831
|
+
className: `flex items-start ${l("base", "gap")}`,
|
|
1716
1832
|
children: [
|
|
1717
|
-
/* @__PURE__ */
|
|
1718
|
-
/* @__PURE__ */
|
|
1833
|
+
/* @__PURE__ */ T("div", { className: "flex flex-col items-center", children: [
|
|
1834
|
+
/* @__PURE__ */ o(
|
|
1719
1835
|
"div",
|
|
1720
|
-
|
|
1836
|
+
w(b({}, s === "default" ? { "data-marker": "pending" } : {}), {
|
|
1721
1837
|
className: `
|
|
1722
1838
|
flex
|
|
1723
1839
|
items-center
|
|
1724
1840
|
justify-center
|
|
1725
1841
|
w-10
|
|
1726
1842
|
h-10
|
|
1727
|
-
${
|
|
1843
|
+
${F("full")}
|
|
1728
1844
|
border-2
|
|
1729
|
-
${
|
|
1845
|
+
${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"}
|
|
1730
1846
|
`,
|
|
1731
|
-
children:
|
|
1847
|
+
children: r.icon || (s === "completed" ? /* @__PURE__ */ o(Z, { className: "h-4 w-4" }) : i + 1)
|
|
1732
1848
|
})
|
|
1733
1849
|
),
|
|
1734
|
-
!c && /* @__PURE__ */
|
|
1850
|
+
!c && /* @__PURE__ */ o(
|
|
1735
1851
|
"div",
|
|
1736
1852
|
{
|
|
1737
1853
|
className: `
|
|
1738
1854
|
w-0.5
|
|
1739
1855
|
flex-1
|
|
1740
1856
|
min-h-16
|
|
1741
|
-
${
|
|
1742
|
-
${
|
|
1857
|
+
${l("sm", "mt")}
|
|
1858
|
+
${s === "completed" ? "bg-success" : "bg-line-emphasis"}
|
|
1743
1859
|
`
|
|
1744
1860
|
}
|
|
1745
1861
|
)
|
|
1746
1862
|
] }),
|
|
1747
|
-
/* @__PURE__ */
|
|
1748
|
-
|
|
1863
|
+
/* @__PURE__ */ T("div", { className: `flex-1 ${l("xl", "pb")}`, children: [
|
|
1864
|
+
r.timestamp && /* @__PURE__ */ o(
|
|
1749
1865
|
"p",
|
|
1750
1866
|
{
|
|
1751
|
-
className: `text-xs text-fg-tertiary ${
|
|
1752
|
-
children:
|
|
1867
|
+
className: `text-xs text-fg-tertiary ${l("xs", "mb")}`,
|
|
1868
|
+
children: r.timestamp
|
|
1753
1869
|
}
|
|
1754
1870
|
),
|
|
1755
|
-
/* @__PURE__ */
|
|
1871
|
+
/* @__PURE__ */ o(
|
|
1756
1872
|
"h3",
|
|
1757
1873
|
{
|
|
1758
1874
|
className: `
|
|
1759
1875
|
text-base
|
|
1760
1876
|
font-semibold
|
|
1761
|
-
${
|
|
1877
|
+
${s === "active" ? "text-fg-brand-emphasis" : "text-fg-primary"}
|
|
1762
1878
|
`,
|
|
1763
|
-
children:
|
|
1879
|
+
children: r.title
|
|
1764
1880
|
}
|
|
1765
1881
|
),
|
|
1766
|
-
|
|
1882
|
+
r.description && /* @__PURE__ */ o(
|
|
1767
1883
|
"p",
|
|
1768
1884
|
{
|
|
1769
|
-
className: `text-sm text-fg-secondary ${
|
|
1770
|
-
children:
|
|
1885
|
+
className: `text-sm text-fg-secondary ${l("xs", "mt")}`,
|
|
1886
|
+
children: r.description
|
|
1771
1887
|
}
|
|
1772
1888
|
),
|
|
1773
|
-
|
|
1889
|
+
r.content && /* @__PURE__ */ o("div", { className: l("md", "mt"), children: r.content })
|
|
1774
1890
|
] })
|
|
1775
1891
|
]
|
|
1776
1892
|
},
|
|
1777
|
-
|
|
1893
|
+
r.id
|
|
1778
1894
|
);
|
|
1779
1895
|
}) });
|
|
1780
1896
|
}
|
|
1781
1897
|
export {
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1898
|
+
Ve as AutocompleteOption,
|
|
1899
|
+
Qe as Breadcrumb,
|
|
1900
|
+
Te as Chip,
|
|
1901
|
+
De as Container,
|
|
1902
|
+
ea as DialogFooter,
|
|
1903
|
+
Je as DialogHeader,
|
|
1904
|
+
ta as DrawerFooter,
|
|
1905
|
+
aa as DrawerHeader,
|
|
1906
|
+
Xe as ErrorMessage,
|
|
1907
|
+
ra as HeaderActions,
|
|
1908
|
+
na as HeaderNavigation,
|
|
1909
|
+
Ye as Info,
|
|
1910
|
+
ia as MenuSeparator,
|
|
1911
|
+
sa as NavbarSeparator,
|
|
1912
|
+
Ae as Progress,
|
|
1913
|
+
Ze as Skeleton,
|
|
1914
|
+
Ie as Spinner,
|
|
1915
|
+
_e as Stack,
|
|
1916
|
+
la as TableCell,
|
|
1917
|
+
Ge as Text,
|
|
1918
|
+
oa as Timeline
|
|
1803
1919
|
};
|
|
1804
1920
|
//# sourceMappingURL=index.js.map
|