@noey-17/yearn-ui 0.7.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.js ADDED
@@ -0,0 +1,2632 @@
1
+ import e from "prop-types";
2
+ import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
3
+ import * as i from "react";
4
+ import { useEffect as a, useRef as o, useState as s } from "react";
5
+ //#region node_modules/tailwind-merge/dist/bundle-mjs.mjs
6
+ var c = (e, t) => {
7
+ let n = Array(e.length + t.length);
8
+ for (let t = 0; t < e.length; t++) n[t] = e[t];
9
+ for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
10
+ return n;
11
+ }, l = (e, t) => ({
12
+ classGroupId: e,
13
+ validator: t
14
+ }), u = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
15
+ nextPart: e,
16
+ validators: t,
17
+ classGroupId: n
18
+ }), d = "-", f = [], p = "arbitrary..", m = (e) => {
19
+ let t = _(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
20
+ return {
21
+ getClassGroupId: (e) => {
22
+ if (e.startsWith("[") && e.endsWith("]")) return g(e);
23
+ let n = e.split(d);
24
+ return h(n, +(n[0] === "" && n.length > 1), t);
25
+ },
26
+ getConflictingClassGroupIds: (e, t) => {
27
+ if (t) {
28
+ let t = r[e], i = n[e];
29
+ return t ? i ? c(i, t) : t : i || f;
30
+ }
31
+ return n[e] || f;
32
+ }
33
+ };
34
+ }, h = (e, t, n) => {
35
+ if (e.length - t === 0) return n.classGroupId;
36
+ let r = e[t], i = n.nextPart.get(r);
37
+ if (i) {
38
+ let n = h(e, t + 1, i);
39
+ if (n) return n;
40
+ }
41
+ let a = n.validators;
42
+ if (a === null) return;
43
+ let o = t === 0 ? e.join(d) : e.slice(t).join(d), s = a.length;
44
+ for (let e = 0; e < s; e++) {
45
+ let t = a[e];
46
+ if (t.validator(o)) return t.classGroupId;
47
+ }
48
+ }, g = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
49
+ let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
50
+ return r ? p + r : void 0;
51
+ })(), _ = (e) => {
52
+ let { theme: t, classGroups: n } = e;
53
+ return v(n, t);
54
+ }, v = (e, t) => {
55
+ let n = u();
56
+ for (let r in e) {
57
+ let i = e[r];
58
+ y(i, n, r, t);
59
+ }
60
+ return n;
61
+ }, y = (e, t, n, r) => {
62
+ let i = e.length;
63
+ for (let a = 0; a < i; a++) {
64
+ let i = e[a];
65
+ b(i, t, n, r);
66
+ }
67
+ }, b = (e, t, n, r) => {
68
+ if (typeof e == "string") {
69
+ x(e, t, n);
70
+ return;
71
+ }
72
+ if (typeof e == "function") {
73
+ S(e, t, n, r);
74
+ return;
75
+ }
76
+ C(e, t, n, r);
77
+ }, x = (e, t, n) => {
78
+ let r = e === "" ? t : w(t, e);
79
+ r.classGroupId = n;
80
+ }, S = (e, t, n, r) => {
81
+ if (T(e)) {
82
+ y(e(r), t, n, r);
83
+ return;
84
+ }
85
+ t.validators === null && (t.validators = []), t.validators.push(l(n, e));
86
+ }, C = (e, t, n, r) => {
87
+ let i = Object.entries(e), a = i.length;
88
+ for (let e = 0; e < a; e++) {
89
+ let [a, o] = i[e];
90
+ y(o, w(t, a), n, r);
91
+ }
92
+ }, w = (e, t) => {
93
+ let n = e, r = t.split(d), i = r.length;
94
+ for (let e = 0; e < i; e++) {
95
+ let t = r[e], i = n.nextPart.get(t);
96
+ i || (i = u(), n.nextPart.set(t, i)), n = i;
97
+ }
98
+ return n;
99
+ }, T = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, ee = (e) => {
100
+ if (e < 1) return {
101
+ get: () => void 0,
102
+ set: () => {}
103
+ };
104
+ let t = 0, n = Object.create(null), r = Object.create(null), i = (i, a) => {
105
+ n[i] = a, t++, t > e && (t = 0, r = n, n = Object.create(null));
106
+ };
107
+ return {
108
+ get(e) {
109
+ let t = n[e];
110
+ if (t !== void 0) return t;
111
+ if ((t = r[e]) !== void 0) return i(e, t), t;
112
+ },
113
+ set(e, t) {
114
+ e in n ? n[e] = t : i(e, t);
115
+ }
116
+ };
117
+ }, E = "!", D = ":", te = [], O = (e, t, n, r, i) => ({
118
+ modifiers: e,
119
+ hasImportantModifier: t,
120
+ baseClassName: n,
121
+ maybePostfixModifierPosition: r,
122
+ isExternal: i
123
+ }), k = (e) => {
124
+ let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
125
+ let t = [], n = 0, r = 0, i = 0, a, o = e.length;
126
+ for (let s = 0; s < o; s++) {
127
+ let o = e[s];
128
+ if (n === 0 && r === 0) {
129
+ if (o === D) {
130
+ t.push(e.slice(i, s)), i = s + 1;
131
+ continue;
132
+ }
133
+ if (o === "/") {
134
+ a = s;
135
+ continue;
136
+ }
137
+ }
138
+ o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
139
+ }
140
+ let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
141
+ s.endsWith(E) ? (c = s.slice(0, -1), l = !0) : s.startsWith(E) && (c = s.slice(1), l = !0);
142
+ let u = a && a > i ? a - i : void 0;
143
+ return O(t, l, c, u);
144
+ };
145
+ if (t) {
146
+ let e = t + D, n = r;
147
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : O(te, !1, t, void 0, !0);
148
+ }
149
+ if (n) {
150
+ let e = r;
151
+ r = (t) => n({
152
+ className: t,
153
+ parseClassName: e
154
+ });
155
+ }
156
+ return r;
157
+ }, A = (e) => {
158
+ let t = /* @__PURE__ */ new Map();
159
+ return e.orderSensitiveModifiers.forEach((e, n) => {
160
+ t.set(e, 1e6 + n);
161
+ }), (e) => {
162
+ let n = [], r = [];
163
+ for (let i = 0; i < e.length; i++) {
164
+ let a = e[i], o = a[0] === "[", s = t.has(a);
165
+ o || s ? (r.length > 0 && (r.sort(), n.push(...r), r = []), n.push(a)) : r.push(a);
166
+ }
167
+ return r.length > 0 && (r.sort(), n.push(...r)), n;
168
+ };
169
+ }, j = (e) => ({
170
+ cache: ee(e.cacheSize),
171
+ parseClassName: k(e),
172
+ sortModifiers: A(e),
173
+ ...m(e)
174
+ }), ne = /\s+/, re = (e, t) => {
175
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a } = t, o = [], s = e.trim().split(ne), c = "";
176
+ for (let e = s.length - 1; e >= 0; --e) {
177
+ let t = s[e], { isExternal: l, modifiers: u, hasImportantModifier: d, baseClassName: f, maybePostfixModifierPosition: p } = n(t);
178
+ if (l) {
179
+ c = t + (c.length > 0 ? " " + c : c);
180
+ continue;
181
+ }
182
+ let m = !!p, h = r(m ? f.substring(0, p) : f);
183
+ if (!h) {
184
+ if (!m) {
185
+ c = t + (c.length > 0 ? " " + c : c);
186
+ continue;
187
+ }
188
+ if (h = r(f), !h) {
189
+ c = t + (c.length > 0 ? " " + c : c);
190
+ continue;
191
+ }
192
+ m = !1;
193
+ }
194
+ let g = u.length === 0 ? "" : u.length === 1 ? u[0] : a(u).join(":"), _ = d ? g + E : g, v = _ + h;
195
+ if (o.indexOf(v) > -1) continue;
196
+ o.push(v);
197
+ let y = i(h, m);
198
+ for (let e = 0; e < y.length; ++e) {
199
+ let t = y[e];
200
+ o.push(_ + t);
201
+ }
202
+ c = t + (c.length > 0 ? " " + c : c);
203
+ }
204
+ return c;
205
+ }, M = (...e) => {
206
+ let t = 0, n, r, i = "";
207
+ for (; t < e.length;) (n = e[t++]) && (r = ie(n)) && (i && (i += " "), i += r);
208
+ return i;
209
+ }, ie = (e) => {
210
+ if (typeof e == "string") return e;
211
+ let t, n = "";
212
+ for (let r = 0; r < e.length; r++) e[r] && (t = ie(e[r])) && (n && (n += " "), n += t);
213
+ return n;
214
+ }, ae = (e, ...t) => {
215
+ let n, r, i, a, o = (o) => (n = j(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
216
+ let t = r(e);
217
+ if (t) return t;
218
+ let a = re(e, n);
219
+ return i(e, a), a;
220
+ };
221
+ return a = o, (...e) => a(M(...e));
222
+ }, oe = [], N = (e) => {
223
+ let t = (t) => t[e] || oe;
224
+ return t.isThemeGetter = !0, t;
225
+ }, P = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, F = /^\((?:(\w[\w-]*):)?(.+)\)$/i, I = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, L = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, se = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, R = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, ce = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, z = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, B = (e) => I.test(e), V = (e) => !!e && !Number.isNaN(Number(e)), H = (e) => !!e && Number.isInteger(Number(e)), le = (e) => e.endsWith("%") && V(e.slice(0, -1)), U = (e) => L.test(e), ue = () => !0, W = (e) => se.test(e) && !R.test(e), G = () => !1, K = (e) => ce.test(e), de = (e) => z.test(e), fe = (e) => !q(e) && !Y(e), pe = (e) => Z(e, Oe, G), q = (e) => P.test(e), J = (e) => Z(e, ke, W), me = (e) => Z(e, Ae, V), he = (e) => Z(e, Me, ue), ge = (e) => Z(e, je, G), _e = (e) => Z(e, Ee, G), ve = (e) => Z(e, De, de), ye = (e) => Z(e, Ne, K), Y = (e) => F.test(e), X = (e) => Q(e, ke), be = (e) => Q(e, je), xe = (e) => Q(e, Ee), Se = (e) => Q(e, Oe), Ce = (e) => Q(e, De), we = (e) => Q(e, Ne, !0), Te = (e) => Q(e, Me, !0), Z = (e, t, n) => {
226
+ let r = P.exec(e);
227
+ return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
228
+ }, Q = (e, t, n = !1) => {
229
+ let r = F.exec(e);
230
+ return r ? r[1] ? t(r[1]) : n : !1;
231
+ }, Ee = (e) => e === "position" || e === "percentage", De = (e) => e === "image" || e === "url", Oe = (e) => e === "length" || e === "size" || e === "bg-size", ke = (e) => e === "length", Ae = (e) => e === "number", je = (e) => e === "family-name", Me = (e) => e === "number" || e === "weight", Ne = (e) => e === "shadow", Pe = () => {
232
+ let e = N("color"), t = N("font"), n = N("text"), r = N("font-weight"), i = N("tracking"), a = N("leading"), o = N("breakpoint"), s = N("container"), c = N("spacing"), l = N("radius"), u = N("shadow"), d = N("inset-shadow"), f = N("text-shadow"), p = N("drop-shadow"), m = N("blur"), h = N("perspective"), g = N("aspect"), _ = N("ease"), v = N("animate"), y = () => [
233
+ "auto",
234
+ "avoid",
235
+ "all",
236
+ "avoid-page",
237
+ "page",
238
+ "left",
239
+ "right",
240
+ "column"
241
+ ], b = () => [
242
+ "center",
243
+ "top",
244
+ "bottom",
245
+ "left",
246
+ "right",
247
+ "top-left",
248
+ "left-top",
249
+ "top-right",
250
+ "right-top",
251
+ "bottom-right",
252
+ "right-bottom",
253
+ "bottom-left",
254
+ "left-bottom"
255
+ ], x = () => [
256
+ ...b(),
257
+ Y,
258
+ q
259
+ ], S = () => [
260
+ "auto",
261
+ "hidden",
262
+ "clip",
263
+ "visible",
264
+ "scroll"
265
+ ], C = () => [
266
+ "auto",
267
+ "contain",
268
+ "none"
269
+ ], w = () => [
270
+ Y,
271
+ q,
272
+ c
273
+ ], T = () => [
274
+ B,
275
+ "full",
276
+ "auto",
277
+ ...w()
278
+ ], ee = () => [
279
+ H,
280
+ "none",
281
+ "subgrid",
282
+ Y,
283
+ q
284
+ ], E = () => [
285
+ "auto",
286
+ { span: [
287
+ "full",
288
+ H,
289
+ Y,
290
+ q
291
+ ] },
292
+ H,
293
+ Y,
294
+ q
295
+ ], D = () => [
296
+ H,
297
+ "auto",
298
+ Y,
299
+ q
300
+ ], te = () => [
301
+ "auto",
302
+ "min",
303
+ "max",
304
+ "fr",
305
+ Y,
306
+ q
307
+ ], O = () => [
308
+ "start",
309
+ "end",
310
+ "center",
311
+ "between",
312
+ "around",
313
+ "evenly",
314
+ "stretch",
315
+ "baseline",
316
+ "center-safe",
317
+ "end-safe"
318
+ ], k = () => [
319
+ "start",
320
+ "end",
321
+ "center",
322
+ "stretch",
323
+ "center-safe",
324
+ "end-safe"
325
+ ], A = () => ["auto", ...w()], j = () => [
326
+ B,
327
+ "auto",
328
+ "full",
329
+ "dvw",
330
+ "dvh",
331
+ "lvw",
332
+ "lvh",
333
+ "svw",
334
+ "svh",
335
+ "min",
336
+ "max",
337
+ "fit",
338
+ ...w()
339
+ ], ne = () => [
340
+ B,
341
+ "screen",
342
+ "full",
343
+ "dvw",
344
+ "lvw",
345
+ "svw",
346
+ "min",
347
+ "max",
348
+ "fit",
349
+ ...w()
350
+ ], re = () => [
351
+ B,
352
+ "screen",
353
+ "full",
354
+ "lh",
355
+ "dvh",
356
+ "lvh",
357
+ "svh",
358
+ "min",
359
+ "max",
360
+ "fit",
361
+ ...w()
362
+ ], M = () => [
363
+ e,
364
+ Y,
365
+ q
366
+ ], ie = () => [
367
+ ...b(),
368
+ xe,
369
+ _e,
370
+ { position: [Y, q] }
371
+ ], ae = () => ["no-repeat", { repeat: [
372
+ "",
373
+ "x",
374
+ "y",
375
+ "space",
376
+ "round"
377
+ ] }], oe = () => [
378
+ "auto",
379
+ "cover",
380
+ "contain",
381
+ Se,
382
+ pe,
383
+ { size: [Y, q] }
384
+ ], P = () => [
385
+ le,
386
+ X,
387
+ J
388
+ ], F = () => [
389
+ "",
390
+ "none",
391
+ "full",
392
+ l,
393
+ Y,
394
+ q
395
+ ], I = () => [
396
+ "",
397
+ V,
398
+ X,
399
+ J
400
+ ], L = () => [
401
+ "solid",
402
+ "dashed",
403
+ "dotted",
404
+ "double"
405
+ ], se = () => [
406
+ "normal",
407
+ "multiply",
408
+ "screen",
409
+ "overlay",
410
+ "darken",
411
+ "lighten",
412
+ "color-dodge",
413
+ "color-burn",
414
+ "hard-light",
415
+ "soft-light",
416
+ "difference",
417
+ "exclusion",
418
+ "hue",
419
+ "saturation",
420
+ "color",
421
+ "luminosity"
422
+ ], R = () => [
423
+ V,
424
+ le,
425
+ xe,
426
+ _e
427
+ ], ce = () => [
428
+ "",
429
+ "none",
430
+ m,
431
+ Y,
432
+ q
433
+ ], z = () => [
434
+ "none",
435
+ V,
436
+ Y,
437
+ q
438
+ ], W = () => [
439
+ "none",
440
+ V,
441
+ Y,
442
+ q
443
+ ], G = () => [
444
+ V,
445
+ Y,
446
+ q
447
+ ], K = () => [
448
+ B,
449
+ "full",
450
+ ...w()
451
+ ];
452
+ return {
453
+ cacheSize: 500,
454
+ theme: {
455
+ animate: [
456
+ "spin",
457
+ "ping",
458
+ "pulse",
459
+ "bounce"
460
+ ],
461
+ aspect: ["video"],
462
+ blur: [U],
463
+ breakpoint: [U],
464
+ color: [ue],
465
+ container: [U],
466
+ "drop-shadow": [U],
467
+ ease: [
468
+ "in",
469
+ "out",
470
+ "in-out"
471
+ ],
472
+ font: [fe],
473
+ "font-weight": [
474
+ "thin",
475
+ "extralight",
476
+ "light",
477
+ "normal",
478
+ "medium",
479
+ "semibold",
480
+ "bold",
481
+ "extrabold",
482
+ "black"
483
+ ],
484
+ "inset-shadow": [U],
485
+ leading: [
486
+ "none",
487
+ "tight",
488
+ "snug",
489
+ "normal",
490
+ "relaxed",
491
+ "loose"
492
+ ],
493
+ perspective: [
494
+ "dramatic",
495
+ "near",
496
+ "normal",
497
+ "midrange",
498
+ "distant",
499
+ "none"
500
+ ],
501
+ radius: [U],
502
+ shadow: [U],
503
+ spacing: ["px", V],
504
+ text: [U],
505
+ "text-shadow": [U],
506
+ tracking: [
507
+ "tighter",
508
+ "tight",
509
+ "normal",
510
+ "wide",
511
+ "wider",
512
+ "widest"
513
+ ]
514
+ },
515
+ classGroups: {
516
+ aspect: [{ aspect: [
517
+ "auto",
518
+ "square",
519
+ B,
520
+ q,
521
+ Y,
522
+ g
523
+ ] }],
524
+ container: ["container"],
525
+ columns: [{ columns: [
526
+ V,
527
+ q,
528
+ Y,
529
+ s
530
+ ] }],
531
+ "break-after": [{ "break-after": y() }],
532
+ "break-before": [{ "break-before": y() }],
533
+ "break-inside": [{ "break-inside": [
534
+ "auto",
535
+ "avoid",
536
+ "avoid-page",
537
+ "avoid-column"
538
+ ] }],
539
+ "box-decoration": [{ "box-decoration": ["slice", "clone"] }],
540
+ box: [{ box: ["border", "content"] }],
541
+ display: [
542
+ "block",
543
+ "inline-block",
544
+ "inline",
545
+ "flex",
546
+ "inline-flex",
547
+ "table",
548
+ "inline-table",
549
+ "table-caption",
550
+ "table-cell",
551
+ "table-column",
552
+ "table-column-group",
553
+ "table-footer-group",
554
+ "table-header-group",
555
+ "table-row-group",
556
+ "table-row",
557
+ "flow-root",
558
+ "grid",
559
+ "inline-grid",
560
+ "contents",
561
+ "list-item",
562
+ "hidden"
563
+ ],
564
+ sr: ["sr-only", "not-sr-only"],
565
+ float: [{ float: [
566
+ "right",
567
+ "left",
568
+ "none",
569
+ "start",
570
+ "end"
571
+ ] }],
572
+ clear: [{ clear: [
573
+ "left",
574
+ "right",
575
+ "both",
576
+ "none",
577
+ "start",
578
+ "end"
579
+ ] }],
580
+ isolation: ["isolate", "isolation-auto"],
581
+ "object-fit": [{ object: [
582
+ "contain",
583
+ "cover",
584
+ "fill",
585
+ "none",
586
+ "scale-down"
587
+ ] }],
588
+ "object-position": [{ object: x() }],
589
+ overflow: [{ overflow: S() }],
590
+ "overflow-x": [{ "overflow-x": S() }],
591
+ "overflow-y": [{ "overflow-y": S() }],
592
+ overscroll: [{ overscroll: C() }],
593
+ "overscroll-x": [{ "overscroll-x": C() }],
594
+ "overscroll-y": [{ "overscroll-y": C() }],
595
+ position: [
596
+ "static",
597
+ "fixed",
598
+ "absolute",
599
+ "relative",
600
+ "sticky"
601
+ ],
602
+ inset: [{ inset: T() }],
603
+ "inset-x": [{ "inset-x": T() }],
604
+ "inset-y": [{ "inset-y": T() }],
605
+ start: [{
606
+ "inset-s": T(),
607
+ start: T()
608
+ }],
609
+ end: [{
610
+ "inset-e": T(),
611
+ end: T()
612
+ }],
613
+ "inset-bs": [{ "inset-bs": T() }],
614
+ "inset-be": [{ "inset-be": T() }],
615
+ top: [{ top: T() }],
616
+ right: [{ right: T() }],
617
+ bottom: [{ bottom: T() }],
618
+ left: [{ left: T() }],
619
+ visibility: [
620
+ "visible",
621
+ "invisible",
622
+ "collapse"
623
+ ],
624
+ z: [{ z: [
625
+ H,
626
+ "auto",
627
+ Y,
628
+ q
629
+ ] }],
630
+ basis: [{ basis: [
631
+ B,
632
+ "full",
633
+ "auto",
634
+ s,
635
+ ...w()
636
+ ] }],
637
+ "flex-direction": [{ flex: [
638
+ "row",
639
+ "row-reverse",
640
+ "col",
641
+ "col-reverse"
642
+ ] }],
643
+ "flex-wrap": [{ flex: [
644
+ "nowrap",
645
+ "wrap",
646
+ "wrap-reverse"
647
+ ] }],
648
+ flex: [{ flex: [
649
+ V,
650
+ B,
651
+ "auto",
652
+ "initial",
653
+ "none",
654
+ q
655
+ ] }],
656
+ grow: [{ grow: [
657
+ "",
658
+ V,
659
+ Y,
660
+ q
661
+ ] }],
662
+ shrink: [{ shrink: [
663
+ "",
664
+ V,
665
+ Y,
666
+ q
667
+ ] }],
668
+ order: [{ order: [
669
+ H,
670
+ "first",
671
+ "last",
672
+ "none",
673
+ Y,
674
+ q
675
+ ] }],
676
+ "grid-cols": [{ "grid-cols": ee() }],
677
+ "col-start-end": [{ col: E() }],
678
+ "col-start": [{ "col-start": D() }],
679
+ "col-end": [{ "col-end": D() }],
680
+ "grid-rows": [{ "grid-rows": ee() }],
681
+ "row-start-end": [{ row: E() }],
682
+ "row-start": [{ "row-start": D() }],
683
+ "row-end": [{ "row-end": D() }],
684
+ "grid-flow": [{ "grid-flow": [
685
+ "row",
686
+ "col",
687
+ "dense",
688
+ "row-dense",
689
+ "col-dense"
690
+ ] }],
691
+ "auto-cols": [{ "auto-cols": te() }],
692
+ "auto-rows": [{ "auto-rows": te() }],
693
+ gap: [{ gap: w() }],
694
+ "gap-x": [{ "gap-x": w() }],
695
+ "gap-y": [{ "gap-y": w() }],
696
+ "justify-content": [{ justify: [...O(), "normal"] }],
697
+ "justify-items": [{ "justify-items": [...k(), "normal"] }],
698
+ "justify-self": [{ "justify-self": ["auto", ...k()] }],
699
+ "align-content": [{ content: ["normal", ...O()] }],
700
+ "align-items": [{ items: [...k(), { baseline: ["", "last"] }] }],
701
+ "align-self": [{ self: [
702
+ "auto",
703
+ ...k(),
704
+ { baseline: ["", "last"] }
705
+ ] }],
706
+ "place-content": [{ "place-content": O() }],
707
+ "place-items": [{ "place-items": [...k(), "baseline"] }],
708
+ "place-self": [{ "place-self": ["auto", ...k()] }],
709
+ p: [{ p: w() }],
710
+ px: [{ px: w() }],
711
+ py: [{ py: w() }],
712
+ ps: [{ ps: w() }],
713
+ pe: [{ pe: w() }],
714
+ pbs: [{ pbs: w() }],
715
+ pbe: [{ pbe: w() }],
716
+ pt: [{ pt: w() }],
717
+ pr: [{ pr: w() }],
718
+ pb: [{ pb: w() }],
719
+ pl: [{ pl: w() }],
720
+ m: [{ m: A() }],
721
+ mx: [{ mx: A() }],
722
+ my: [{ my: A() }],
723
+ ms: [{ ms: A() }],
724
+ me: [{ me: A() }],
725
+ mbs: [{ mbs: A() }],
726
+ mbe: [{ mbe: A() }],
727
+ mt: [{ mt: A() }],
728
+ mr: [{ mr: A() }],
729
+ mb: [{ mb: A() }],
730
+ ml: [{ ml: A() }],
731
+ "space-x": [{ "space-x": w() }],
732
+ "space-x-reverse": ["space-x-reverse"],
733
+ "space-y": [{ "space-y": w() }],
734
+ "space-y-reverse": ["space-y-reverse"],
735
+ size: [{ size: j() }],
736
+ "inline-size": [{ inline: ["auto", ...ne()] }],
737
+ "min-inline-size": [{ "min-inline": ["auto", ...ne()] }],
738
+ "max-inline-size": [{ "max-inline": ["none", ...ne()] }],
739
+ "block-size": [{ block: ["auto", ...re()] }],
740
+ "min-block-size": [{ "min-block": ["auto", ...re()] }],
741
+ "max-block-size": [{ "max-block": ["none", ...re()] }],
742
+ w: [{ w: [
743
+ s,
744
+ "screen",
745
+ ...j()
746
+ ] }],
747
+ "min-w": [{ "min-w": [
748
+ s,
749
+ "screen",
750
+ "none",
751
+ ...j()
752
+ ] }],
753
+ "max-w": [{ "max-w": [
754
+ s,
755
+ "screen",
756
+ "none",
757
+ "prose",
758
+ { screen: [o] },
759
+ ...j()
760
+ ] }],
761
+ h: [{ h: [
762
+ "screen",
763
+ "lh",
764
+ ...j()
765
+ ] }],
766
+ "min-h": [{ "min-h": [
767
+ "screen",
768
+ "lh",
769
+ "none",
770
+ ...j()
771
+ ] }],
772
+ "max-h": [{ "max-h": [
773
+ "screen",
774
+ "lh",
775
+ ...j()
776
+ ] }],
777
+ "font-size": [{ text: [
778
+ "base",
779
+ n,
780
+ X,
781
+ J
782
+ ] }],
783
+ "font-smoothing": ["antialiased", "subpixel-antialiased"],
784
+ "font-style": ["italic", "not-italic"],
785
+ "font-weight": [{ font: [
786
+ r,
787
+ Te,
788
+ he
789
+ ] }],
790
+ "font-stretch": [{ "font-stretch": [
791
+ "ultra-condensed",
792
+ "extra-condensed",
793
+ "condensed",
794
+ "semi-condensed",
795
+ "normal",
796
+ "semi-expanded",
797
+ "expanded",
798
+ "extra-expanded",
799
+ "ultra-expanded",
800
+ le,
801
+ q
802
+ ] }],
803
+ "font-family": [{ font: [
804
+ be,
805
+ ge,
806
+ t
807
+ ] }],
808
+ "font-features": [{ "font-features": [q] }],
809
+ "fvn-normal": ["normal-nums"],
810
+ "fvn-ordinal": ["ordinal"],
811
+ "fvn-slashed-zero": ["slashed-zero"],
812
+ "fvn-figure": ["lining-nums", "oldstyle-nums"],
813
+ "fvn-spacing": ["proportional-nums", "tabular-nums"],
814
+ "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
815
+ tracking: [{ tracking: [
816
+ i,
817
+ Y,
818
+ q
819
+ ] }],
820
+ "line-clamp": [{ "line-clamp": [
821
+ V,
822
+ "none",
823
+ Y,
824
+ me
825
+ ] }],
826
+ leading: [{ leading: [a, ...w()] }],
827
+ "list-image": [{ "list-image": [
828
+ "none",
829
+ Y,
830
+ q
831
+ ] }],
832
+ "list-style-position": [{ list: ["inside", "outside"] }],
833
+ "list-style-type": [{ list: [
834
+ "disc",
835
+ "decimal",
836
+ "none",
837
+ Y,
838
+ q
839
+ ] }],
840
+ "text-alignment": [{ text: [
841
+ "left",
842
+ "center",
843
+ "right",
844
+ "justify",
845
+ "start",
846
+ "end"
847
+ ] }],
848
+ "placeholder-color": [{ placeholder: M() }],
849
+ "text-color": [{ text: M() }],
850
+ "text-decoration": [
851
+ "underline",
852
+ "overline",
853
+ "line-through",
854
+ "no-underline"
855
+ ],
856
+ "text-decoration-style": [{ decoration: [...L(), "wavy"] }],
857
+ "text-decoration-thickness": [{ decoration: [
858
+ V,
859
+ "from-font",
860
+ "auto",
861
+ Y,
862
+ J
863
+ ] }],
864
+ "text-decoration-color": [{ decoration: M() }],
865
+ "underline-offset": [{ "underline-offset": [
866
+ V,
867
+ "auto",
868
+ Y,
869
+ q
870
+ ] }],
871
+ "text-transform": [
872
+ "uppercase",
873
+ "lowercase",
874
+ "capitalize",
875
+ "normal-case"
876
+ ],
877
+ "text-overflow": [
878
+ "truncate",
879
+ "text-ellipsis",
880
+ "text-clip"
881
+ ],
882
+ "text-wrap": [{ text: [
883
+ "wrap",
884
+ "nowrap",
885
+ "balance",
886
+ "pretty"
887
+ ] }],
888
+ indent: [{ indent: w() }],
889
+ "vertical-align": [{ align: [
890
+ "baseline",
891
+ "top",
892
+ "middle",
893
+ "bottom",
894
+ "text-top",
895
+ "text-bottom",
896
+ "sub",
897
+ "super",
898
+ Y,
899
+ q
900
+ ] }],
901
+ whitespace: [{ whitespace: [
902
+ "normal",
903
+ "nowrap",
904
+ "pre",
905
+ "pre-line",
906
+ "pre-wrap",
907
+ "break-spaces"
908
+ ] }],
909
+ break: [{ break: [
910
+ "normal",
911
+ "words",
912
+ "all",
913
+ "keep"
914
+ ] }],
915
+ wrap: [{ wrap: [
916
+ "break-word",
917
+ "anywhere",
918
+ "normal"
919
+ ] }],
920
+ hyphens: [{ hyphens: [
921
+ "none",
922
+ "manual",
923
+ "auto"
924
+ ] }],
925
+ content: [{ content: [
926
+ "none",
927
+ Y,
928
+ q
929
+ ] }],
930
+ "bg-attachment": [{ bg: [
931
+ "fixed",
932
+ "local",
933
+ "scroll"
934
+ ] }],
935
+ "bg-clip": [{ "bg-clip": [
936
+ "border",
937
+ "padding",
938
+ "content",
939
+ "text"
940
+ ] }],
941
+ "bg-origin": [{ "bg-origin": [
942
+ "border",
943
+ "padding",
944
+ "content"
945
+ ] }],
946
+ "bg-position": [{ bg: ie() }],
947
+ "bg-repeat": [{ bg: ae() }],
948
+ "bg-size": [{ bg: oe() }],
949
+ "bg-image": [{ bg: [
950
+ "none",
951
+ {
952
+ linear: [
953
+ { to: [
954
+ "t",
955
+ "tr",
956
+ "r",
957
+ "br",
958
+ "b",
959
+ "bl",
960
+ "l",
961
+ "tl"
962
+ ] },
963
+ H,
964
+ Y,
965
+ q
966
+ ],
967
+ radial: [
968
+ "",
969
+ Y,
970
+ q
971
+ ],
972
+ conic: [
973
+ H,
974
+ Y,
975
+ q
976
+ ]
977
+ },
978
+ Ce,
979
+ ve
980
+ ] }],
981
+ "bg-color": [{ bg: M() }],
982
+ "gradient-from-pos": [{ from: P() }],
983
+ "gradient-via-pos": [{ via: P() }],
984
+ "gradient-to-pos": [{ to: P() }],
985
+ "gradient-from": [{ from: M() }],
986
+ "gradient-via": [{ via: M() }],
987
+ "gradient-to": [{ to: M() }],
988
+ rounded: [{ rounded: F() }],
989
+ "rounded-s": [{ "rounded-s": F() }],
990
+ "rounded-e": [{ "rounded-e": F() }],
991
+ "rounded-t": [{ "rounded-t": F() }],
992
+ "rounded-r": [{ "rounded-r": F() }],
993
+ "rounded-b": [{ "rounded-b": F() }],
994
+ "rounded-l": [{ "rounded-l": F() }],
995
+ "rounded-ss": [{ "rounded-ss": F() }],
996
+ "rounded-se": [{ "rounded-se": F() }],
997
+ "rounded-ee": [{ "rounded-ee": F() }],
998
+ "rounded-es": [{ "rounded-es": F() }],
999
+ "rounded-tl": [{ "rounded-tl": F() }],
1000
+ "rounded-tr": [{ "rounded-tr": F() }],
1001
+ "rounded-br": [{ "rounded-br": F() }],
1002
+ "rounded-bl": [{ "rounded-bl": F() }],
1003
+ "border-w": [{ border: I() }],
1004
+ "border-w-x": [{ "border-x": I() }],
1005
+ "border-w-y": [{ "border-y": I() }],
1006
+ "border-w-s": [{ "border-s": I() }],
1007
+ "border-w-e": [{ "border-e": I() }],
1008
+ "border-w-bs": [{ "border-bs": I() }],
1009
+ "border-w-be": [{ "border-be": I() }],
1010
+ "border-w-t": [{ "border-t": I() }],
1011
+ "border-w-r": [{ "border-r": I() }],
1012
+ "border-w-b": [{ "border-b": I() }],
1013
+ "border-w-l": [{ "border-l": I() }],
1014
+ "divide-x": [{ "divide-x": I() }],
1015
+ "divide-x-reverse": ["divide-x-reverse"],
1016
+ "divide-y": [{ "divide-y": I() }],
1017
+ "divide-y-reverse": ["divide-y-reverse"],
1018
+ "border-style": [{ border: [
1019
+ ...L(),
1020
+ "hidden",
1021
+ "none"
1022
+ ] }],
1023
+ "divide-style": [{ divide: [
1024
+ ...L(),
1025
+ "hidden",
1026
+ "none"
1027
+ ] }],
1028
+ "border-color": [{ border: M() }],
1029
+ "border-color-x": [{ "border-x": M() }],
1030
+ "border-color-y": [{ "border-y": M() }],
1031
+ "border-color-s": [{ "border-s": M() }],
1032
+ "border-color-e": [{ "border-e": M() }],
1033
+ "border-color-bs": [{ "border-bs": M() }],
1034
+ "border-color-be": [{ "border-be": M() }],
1035
+ "border-color-t": [{ "border-t": M() }],
1036
+ "border-color-r": [{ "border-r": M() }],
1037
+ "border-color-b": [{ "border-b": M() }],
1038
+ "border-color-l": [{ "border-l": M() }],
1039
+ "divide-color": [{ divide: M() }],
1040
+ "outline-style": [{ outline: [
1041
+ ...L(),
1042
+ "none",
1043
+ "hidden"
1044
+ ] }],
1045
+ "outline-offset": [{ "outline-offset": [
1046
+ V,
1047
+ Y,
1048
+ q
1049
+ ] }],
1050
+ "outline-w": [{ outline: [
1051
+ "",
1052
+ V,
1053
+ X,
1054
+ J
1055
+ ] }],
1056
+ "outline-color": [{ outline: M() }],
1057
+ shadow: [{ shadow: [
1058
+ "",
1059
+ "none",
1060
+ u,
1061
+ we,
1062
+ ye
1063
+ ] }],
1064
+ "shadow-color": [{ shadow: M() }],
1065
+ "inset-shadow": [{ "inset-shadow": [
1066
+ "none",
1067
+ d,
1068
+ we,
1069
+ ye
1070
+ ] }],
1071
+ "inset-shadow-color": [{ "inset-shadow": M() }],
1072
+ "ring-w": [{ ring: I() }],
1073
+ "ring-w-inset": ["ring-inset"],
1074
+ "ring-color": [{ ring: M() }],
1075
+ "ring-offset-w": [{ "ring-offset": [V, J] }],
1076
+ "ring-offset-color": [{ "ring-offset": M() }],
1077
+ "inset-ring-w": [{ "inset-ring": I() }],
1078
+ "inset-ring-color": [{ "inset-ring": M() }],
1079
+ "text-shadow": [{ "text-shadow": [
1080
+ "none",
1081
+ f,
1082
+ we,
1083
+ ye
1084
+ ] }],
1085
+ "text-shadow-color": [{ "text-shadow": M() }],
1086
+ opacity: [{ opacity: [
1087
+ V,
1088
+ Y,
1089
+ q
1090
+ ] }],
1091
+ "mix-blend": [{ "mix-blend": [
1092
+ ...se(),
1093
+ "plus-darker",
1094
+ "plus-lighter"
1095
+ ] }],
1096
+ "bg-blend": [{ "bg-blend": se() }],
1097
+ "mask-clip": [{ "mask-clip": [
1098
+ "border",
1099
+ "padding",
1100
+ "content",
1101
+ "fill",
1102
+ "stroke",
1103
+ "view"
1104
+ ] }, "mask-no-clip"],
1105
+ "mask-composite": [{ mask: [
1106
+ "add",
1107
+ "subtract",
1108
+ "intersect",
1109
+ "exclude"
1110
+ ] }],
1111
+ "mask-image-linear-pos": [{ "mask-linear": [V] }],
1112
+ "mask-image-linear-from-pos": [{ "mask-linear-from": R() }],
1113
+ "mask-image-linear-to-pos": [{ "mask-linear-to": R() }],
1114
+ "mask-image-linear-from-color": [{ "mask-linear-from": M() }],
1115
+ "mask-image-linear-to-color": [{ "mask-linear-to": M() }],
1116
+ "mask-image-t-from-pos": [{ "mask-t-from": R() }],
1117
+ "mask-image-t-to-pos": [{ "mask-t-to": R() }],
1118
+ "mask-image-t-from-color": [{ "mask-t-from": M() }],
1119
+ "mask-image-t-to-color": [{ "mask-t-to": M() }],
1120
+ "mask-image-r-from-pos": [{ "mask-r-from": R() }],
1121
+ "mask-image-r-to-pos": [{ "mask-r-to": R() }],
1122
+ "mask-image-r-from-color": [{ "mask-r-from": M() }],
1123
+ "mask-image-r-to-color": [{ "mask-r-to": M() }],
1124
+ "mask-image-b-from-pos": [{ "mask-b-from": R() }],
1125
+ "mask-image-b-to-pos": [{ "mask-b-to": R() }],
1126
+ "mask-image-b-from-color": [{ "mask-b-from": M() }],
1127
+ "mask-image-b-to-color": [{ "mask-b-to": M() }],
1128
+ "mask-image-l-from-pos": [{ "mask-l-from": R() }],
1129
+ "mask-image-l-to-pos": [{ "mask-l-to": R() }],
1130
+ "mask-image-l-from-color": [{ "mask-l-from": M() }],
1131
+ "mask-image-l-to-color": [{ "mask-l-to": M() }],
1132
+ "mask-image-x-from-pos": [{ "mask-x-from": R() }],
1133
+ "mask-image-x-to-pos": [{ "mask-x-to": R() }],
1134
+ "mask-image-x-from-color": [{ "mask-x-from": M() }],
1135
+ "mask-image-x-to-color": [{ "mask-x-to": M() }],
1136
+ "mask-image-y-from-pos": [{ "mask-y-from": R() }],
1137
+ "mask-image-y-to-pos": [{ "mask-y-to": R() }],
1138
+ "mask-image-y-from-color": [{ "mask-y-from": M() }],
1139
+ "mask-image-y-to-color": [{ "mask-y-to": M() }],
1140
+ "mask-image-radial": [{ "mask-radial": [Y, q] }],
1141
+ "mask-image-radial-from-pos": [{ "mask-radial-from": R() }],
1142
+ "mask-image-radial-to-pos": [{ "mask-radial-to": R() }],
1143
+ "mask-image-radial-from-color": [{ "mask-radial-from": M() }],
1144
+ "mask-image-radial-to-color": [{ "mask-radial-to": M() }],
1145
+ "mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
1146
+ "mask-image-radial-size": [{ "mask-radial": [{
1147
+ closest: ["side", "corner"],
1148
+ farthest: ["side", "corner"]
1149
+ }] }],
1150
+ "mask-image-radial-pos": [{ "mask-radial-at": b() }],
1151
+ "mask-image-conic-pos": [{ "mask-conic": [V] }],
1152
+ "mask-image-conic-from-pos": [{ "mask-conic-from": R() }],
1153
+ "mask-image-conic-to-pos": [{ "mask-conic-to": R() }],
1154
+ "mask-image-conic-from-color": [{ "mask-conic-from": M() }],
1155
+ "mask-image-conic-to-color": [{ "mask-conic-to": M() }],
1156
+ "mask-mode": [{ mask: [
1157
+ "alpha",
1158
+ "luminance",
1159
+ "match"
1160
+ ] }],
1161
+ "mask-origin": [{ "mask-origin": [
1162
+ "border",
1163
+ "padding",
1164
+ "content",
1165
+ "fill",
1166
+ "stroke",
1167
+ "view"
1168
+ ] }],
1169
+ "mask-position": [{ mask: ie() }],
1170
+ "mask-repeat": [{ mask: ae() }],
1171
+ "mask-size": [{ mask: oe() }],
1172
+ "mask-type": [{ "mask-type": ["alpha", "luminance"] }],
1173
+ "mask-image": [{ mask: [
1174
+ "none",
1175
+ Y,
1176
+ q
1177
+ ] }],
1178
+ filter: [{ filter: [
1179
+ "",
1180
+ "none",
1181
+ Y,
1182
+ q
1183
+ ] }],
1184
+ blur: [{ blur: ce() }],
1185
+ brightness: [{ brightness: [
1186
+ V,
1187
+ Y,
1188
+ q
1189
+ ] }],
1190
+ contrast: [{ contrast: [
1191
+ V,
1192
+ Y,
1193
+ q
1194
+ ] }],
1195
+ "drop-shadow": [{ "drop-shadow": [
1196
+ "",
1197
+ "none",
1198
+ p,
1199
+ we,
1200
+ ye
1201
+ ] }],
1202
+ "drop-shadow-color": [{ "drop-shadow": M() }],
1203
+ grayscale: [{ grayscale: [
1204
+ "",
1205
+ V,
1206
+ Y,
1207
+ q
1208
+ ] }],
1209
+ "hue-rotate": [{ "hue-rotate": [
1210
+ V,
1211
+ Y,
1212
+ q
1213
+ ] }],
1214
+ invert: [{ invert: [
1215
+ "",
1216
+ V,
1217
+ Y,
1218
+ q
1219
+ ] }],
1220
+ saturate: [{ saturate: [
1221
+ V,
1222
+ Y,
1223
+ q
1224
+ ] }],
1225
+ sepia: [{ sepia: [
1226
+ "",
1227
+ V,
1228
+ Y,
1229
+ q
1230
+ ] }],
1231
+ "backdrop-filter": [{ "backdrop-filter": [
1232
+ "",
1233
+ "none",
1234
+ Y,
1235
+ q
1236
+ ] }],
1237
+ "backdrop-blur": [{ "backdrop-blur": ce() }],
1238
+ "backdrop-brightness": [{ "backdrop-brightness": [
1239
+ V,
1240
+ Y,
1241
+ q
1242
+ ] }],
1243
+ "backdrop-contrast": [{ "backdrop-contrast": [
1244
+ V,
1245
+ Y,
1246
+ q
1247
+ ] }],
1248
+ "backdrop-grayscale": [{ "backdrop-grayscale": [
1249
+ "",
1250
+ V,
1251
+ Y,
1252
+ q
1253
+ ] }],
1254
+ "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
1255
+ V,
1256
+ Y,
1257
+ q
1258
+ ] }],
1259
+ "backdrop-invert": [{ "backdrop-invert": [
1260
+ "",
1261
+ V,
1262
+ Y,
1263
+ q
1264
+ ] }],
1265
+ "backdrop-opacity": [{ "backdrop-opacity": [
1266
+ V,
1267
+ Y,
1268
+ q
1269
+ ] }],
1270
+ "backdrop-saturate": [{ "backdrop-saturate": [
1271
+ V,
1272
+ Y,
1273
+ q
1274
+ ] }],
1275
+ "backdrop-sepia": [{ "backdrop-sepia": [
1276
+ "",
1277
+ V,
1278
+ Y,
1279
+ q
1280
+ ] }],
1281
+ "border-collapse": [{ border: ["collapse", "separate"] }],
1282
+ "border-spacing": [{ "border-spacing": w() }],
1283
+ "border-spacing-x": [{ "border-spacing-x": w() }],
1284
+ "border-spacing-y": [{ "border-spacing-y": w() }],
1285
+ "table-layout": [{ table: ["auto", "fixed"] }],
1286
+ caption: [{ caption: ["top", "bottom"] }],
1287
+ transition: [{ transition: [
1288
+ "",
1289
+ "all",
1290
+ "colors",
1291
+ "opacity",
1292
+ "shadow",
1293
+ "transform",
1294
+ "none",
1295
+ Y,
1296
+ q
1297
+ ] }],
1298
+ "transition-behavior": [{ transition: ["normal", "discrete"] }],
1299
+ duration: [{ duration: [
1300
+ V,
1301
+ "initial",
1302
+ Y,
1303
+ q
1304
+ ] }],
1305
+ ease: [{ ease: [
1306
+ "linear",
1307
+ "initial",
1308
+ _,
1309
+ Y,
1310
+ q
1311
+ ] }],
1312
+ delay: [{ delay: [
1313
+ V,
1314
+ Y,
1315
+ q
1316
+ ] }],
1317
+ animate: [{ animate: [
1318
+ "none",
1319
+ v,
1320
+ Y,
1321
+ q
1322
+ ] }],
1323
+ backface: [{ backface: ["hidden", "visible"] }],
1324
+ perspective: [{ perspective: [
1325
+ h,
1326
+ Y,
1327
+ q
1328
+ ] }],
1329
+ "perspective-origin": [{ "perspective-origin": x() }],
1330
+ rotate: [{ rotate: z() }],
1331
+ "rotate-x": [{ "rotate-x": z() }],
1332
+ "rotate-y": [{ "rotate-y": z() }],
1333
+ "rotate-z": [{ "rotate-z": z() }],
1334
+ scale: [{ scale: W() }],
1335
+ "scale-x": [{ "scale-x": W() }],
1336
+ "scale-y": [{ "scale-y": W() }],
1337
+ "scale-z": [{ "scale-z": W() }],
1338
+ "scale-3d": ["scale-3d"],
1339
+ skew: [{ skew: G() }],
1340
+ "skew-x": [{ "skew-x": G() }],
1341
+ "skew-y": [{ "skew-y": G() }],
1342
+ transform: [{ transform: [
1343
+ Y,
1344
+ q,
1345
+ "",
1346
+ "none",
1347
+ "gpu",
1348
+ "cpu"
1349
+ ] }],
1350
+ "transform-origin": [{ origin: x() }],
1351
+ "transform-style": [{ transform: ["3d", "flat"] }],
1352
+ translate: [{ translate: K() }],
1353
+ "translate-x": [{ "translate-x": K() }],
1354
+ "translate-y": [{ "translate-y": K() }],
1355
+ "translate-z": [{ "translate-z": K() }],
1356
+ "translate-none": ["translate-none"],
1357
+ accent: [{ accent: M() }],
1358
+ appearance: [{ appearance: ["none", "auto"] }],
1359
+ "caret-color": [{ caret: M() }],
1360
+ "color-scheme": [{ scheme: [
1361
+ "normal",
1362
+ "dark",
1363
+ "light",
1364
+ "light-dark",
1365
+ "only-dark",
1366
+ "only-light"
1367
+ ] }],
1368
+ cursor: [{ cursor: [
1369
+ "auto",
1370
+ "default",
1371
+ "pointer",
1372
+ "wait",
1373
+ "text",
1374
+ "move",
1375
+ "help",
1376
+ "not-allowed",
1377
+ "none",
1378
+ "context-menu",
1379
+ "progress",
1380
+ "cell",
1381
+ "crosshair",
1382
+ "vertical-text",
1383
+ "alias",
1384
+ "copy",
1385
+ "no-drop",
1386
+ "grab",
1387
+ "grabbing",
1388
+ "all-scroll",
1389
+ "col-resize",
1390
+ "row-resize",
1391
+ "n-resize",
1392
+ "e-resize",
1393
+ "s-resize",
1394
+ "w-resize",
1395
+ "ne-resize",
1396
+ "nw-resize",
1397
+ "se-resize",
1398
+ "sw-resize",
1399
+ "ew-resize",
1400
+ "ns-resize",
1401
+ "nesw-resize",
1402
+ "nwse-resize",
1403
+ "zoom-in",
1404
+ "zoom-out",
1405
+ Y,
1406
+ q
1407
+ ] }],
1408
+ "field-sizing": [{ "field-sizing": ["fixed", "content"] }],
1409
+ "pointer-events": [{ "pointer-events": ["auto", "none"] }],
1410
+ resize: [{ resize: [
1411
+ "none",
1412
+ "",
1413
+ "y",
1414
+ "x"
1415
+ ] }],
1416
+ "scroll-behavior": [{ scroll: ["auto", "smooth"] }],
1417
+ "scroll-m": [{ "scroll-m": w() }],
1418
+ "scroll-mx": [{ "scroll-mx": w() }],
1419
+ "scroll-my": [{ "scroll-my": w() }],
1420
+ "scroll-ms": [{ "scroll-ms": w() }],
1421
+ "scroll-me": [{ "scroll-me": w() }],
1422
+ "scroll-mbs": [{ "scroll-mbs": w() }],
1423
+ "scroll-mbe": [{ "scroll-mbe": w() }],
1424
+ "scroll-mt": [{ "scroll-mt": w() }],
1425
+ "scroll-mr": [{ "scroll-mr": w() }],
1426
+ "scroll-mb": [{ "scroll-mb": w() }],
1427
+ "scroll-ml": [{ "scroll-ml": w() }],
1428
+ "scroll-p": [{ "scroll-p": w() }],
1429
+ "scroll-px": [{ "scroll-px": w() }],
1430
+ "scroll-py": [{ "scroll-py": w() }],
1431
+ "scroll-ps": [{ "scroll-ps": w() }],
1432
+ "scroll-pe": [{ "scroll-pe": w() }],
1433
+ "scroll-pbs": [{ "scroll-pbs": w() }],
1434
+ "scroll-pbe": [{ "scroll-pbe": w() }],
1435
+ "scroll-pt": [{ "scroll-pt": w() }],
1436
+ "scroll-pr": [{ "scroll-pr": w() }],
1437
+ "scroll-pb": [{ "scroll-pb": w() }],
1438
+ "scroll-pl": [{ "scroll-pl": w() }],
1439
+ "snap-align": [{ snap: [
1440
+ "start",
1441
+ "end",
1442
+ "center",
1443
+ "align-none"
1444
+ ] }],
1445
+ "snap-stop": [{ snap: ["normal", "always"] }],
1446
+ "snap-type": [{ snap: [
1447
+ "none",
1448
+ "x",
1449
+ "y",
1450
+ "both"
1451
+ ] }],
1452
+ "snap-strictness": [{ snap: ["mandatory", "proximity"] }],
1453
+ touch: [{ touch: [
1454
+ "auto",
1455
+ "none",
1456
+ "manipulation"
1457
+ ] }],
1458
+ "touch-x": [{ "touch-pan": [
1459
+ "x",
1460
+ "left",
1461
+ "right"
1462
+ ] }],
1463
+ "touch-y": [{ "touch-pan": [
1464
+ "y",
1465
+ "up",
1466
+ "down"
1467
+ ] }],
1468
+ "touch-pz": ["touch-pinch-zoom"],
1469
+ select: [{ select: [
1470
+ "none",
1471
+ "text",
1472
+ "all",
1473
+ "auto"
1474
+ ] }],
1475
+ "will-change": [{ "will-change": [
1476
+ "auto",
1477
+ "scroll",
1478
+ "contents",
1479
+ "transform",
1480
+ Y,
1481
+ q
1482
+ ] }],
1483
+ fill: [{ fill: ["none", ...M()] }],
1484
+ "stroke-w": [{ stroke: [
1485
+ V,
1486
+ X,
1487
+ J,
1488
+ me
1489
+ ] }],
1490
+ stroke: [{ stroke: ["none", ...M()] }],
1491
+ "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
1492
+ },
1493
+ conflictingClassGroups: {
1494
+ overflow: ["overflow-x", "overflow-y"],
1495
+ overscroll: ["overscroll-x", "overscroll-y"],
1496
+ inset: [
1497
+ "inset-x",
1498
+ "inset-y",
1499
+ "inset-bs",
1500
+ "inset-be",
1501
+ "start",
1502
+ "end",
1503
+ "top",
1504
+ "right",
1505
+ "bottom",
1506
+ "left"
1507
+ ],
1508
+ "inset-x": ["right", "left"],
1509
+ "inset-y": ["top", "bottom"],
1510
+ flex: [
1511
+ "basis",
1512
+ "grow",
1513
+ "shrink"
1514
+ ],
1515
+ gap: ["gap-x", "gap-y"],
1516
+ p: [
1517
+ "px",
1518
+ "py",
1519
+ "ps",
1520
+ "pe",
1521
+ "pbs",
1522
+ "pbe",
1523
+ "pt",
1524
+ "pr",
1525
+ "pb",
1526
+ "pl"
1527
+ ],
1528
+ px: ["pr", "pl"],
1529
+ py: ["pt", "pb"],
1530
+ m: [
1531
+ "mx",
1532
+ "my",
1533
+ "ms",
1534
+ "me",
1535
+ "mbs",
1536
+ "mbe",
1537
+ "mt",
1538
+ "mr",
1539
+ "mb",
1540
+ "ml"
1541
+ ],
1542
+ mx: ["mr", "ml"],
1543
+ my: ["mt", "mb"],
1544
+ size: ["w", "h"],
1545
+ "font-size": ["leading"],
1546
+ "fvn-normal": [
1547
+ "fvn-ordinal",
1548
+ "fvn-slashed-zero",
1549
+ "fvn-figure",
1550
+ "fvn-spacing",
1551
+ "fvn-fraction"
1552
+ ],
1553
+ "fvn-ordinal": ["fvn-normal"],
1554
+ "fvn-slashed-zero": ["fvn-normal"],
1555
+ "fvn-figure": ["fvn-normal"],
1556
+ "fvn-spacing": ["fvn-normal"],
1557
+ "fvn-fraction": ["fvn-normal"],
1558
+ "line-clamp": ["display", "overflow"],
1559
+ rounded: [
1560
+ "rounded-s",
1561
+ "rounded-e",
1562
+ "rounded-t",
1563
+ "rounded-r",
1564
+ "rounded-b",
1565
+ "rounded-l",
1566
+ "rounded-ss",
1567
+ "rounded-se",
1568
+ "rounded-ee",
1569
+ "rounded-es",
1570
+ "rounded-tl",
1571
+ "rounded-tr",
1572
+ "rounded-br",
1573
+ "rounded-bl"
1574
+ ],
1575
+ "rounded-s": ["rounded-ss", "rounded-es"],
1576
+ "rounded-e": ["rounded-se", "rounded-ee"],
1577
+ "rounded-t": ["rounded-tl", "rounded-tr"],
1578
+ "rounded-r": ["rounded-tr", "rounded-br"],
1579
+ "rounded-b": ["rounded-br", "rounded-bl"],
1580
+ "rounded-l": ["rounded-tl", "rounded-bl"],
1581
+ "border-spacing": ["border-spacing-x", "border-spacing-y"],
1582
+ "border-w": [
1583
+ "border-w-x",
1584
+ "border-w-y",
1585
+ "border-w-s",
1586
+ "border-w-e",
1587
+ "border-w-bs",
1588
+ "border-w-be",
1589
+ "border-w-t",
1590
+ "border-w-r",
1591
+ "border-w-b",
1592
+ "border-w-l"
1593
+ ],
1594
+ "border-w-x": ["border-w-r", "border-w-l"],
1595
+ "border-w-y": ["border-w-t", "border-w-b"],
1596
+ "border-color": [
1597
+ "border-color-x",
1598
+ "border-color-y",
1599
+ "border-color-s",
1600
+ "border-color-e",
1601
+ "border-color-bs",
1602
+ "border-color-be",
1603
+ "border-color-t",
1604
+ "border-color-r",
1605
+ "border-color-b",
1606
+ "border-color-l"
1607
+ ],
1608
+ "border-color-x": ["border-color-r", "border-color-l"],
1609
+ "border-color-y": ["border-color-t", "border-color-b"],
1610
+ translate: [
1611
+ "translate-x",
1612
+ "translate-y",
1613
+ "translate-none"
1614
+ ],
1615
+ "translate-none": [
1616
+ "translate",
1617
+ "translate-x",
1618
+ "translate-y",
1619
+ "translate-z"
1620
+ ],
1621
+ "scroll-m": [
1622
+ "scroll-mx",
1623
+ "scroll-my",
1624
+ "scroll-ms",
1625
+ "scroll-me",
1626
+ "scroll-mbs",
1627
+ "scroll-mbe",
1628
+ "scroll-mt",
1629
+ "scroll-mr",
1630
+ "scroll-mb",
1631
+ "scroll-ml"
1632
+ ],
1633
+ "scroll-mx": ["scroll-mr", "scroll-ml"],
1634
+ "scroll-my": ["scroll-mt", "scroll-mb"],
1635
+ "scroll-p": [
1636
+ "scroll-px",
1637
+ "scroll-py",
1638
+ "scroll-ps",
1639
+ "scroll-pe",
1640
+ "scroll-pbs",
1641
+ "scroll-pbe",
1642
+ "scroll-pt",
1643
+ "scroll-pr",
1644
+ "scroll-pb",
1645
+ "scroll-pl"
1646
+ ],
1647
+ "scroll-px": ["scroll-pr", "scroll-pl"],
1648
+ "scroll-py": ["scroll-pt", "scroll-pb"],
1649
+ touch: [
1650
+ "touch-x",
1651
+ "touch-y",
1652
+ "touch-pz"
1653
+ ],
1654
+ "touch-x": ["touch"],
1655
+ "touch-y": ["touch"],
1656
+ "touch-pz": ["touch"]
1657
+ },
1658
+ conflictingClassGroupModifiers: { "font-size": ["leading"] },
1659
+ orderSensitiveModifiers: [
1660
+ "*",
1661
+ "**",
1662
+ "after",
1663
+ "backdrop",
1664
+ "before",
1665
+ "details-content",
1666
+ "file",
1667
+ "first-letter",
1668
+ "first-line",
1669
+ "marker",
1670
+ "placeholder",
1671
+ "selection"
1672
+ ]
1673
+ };
1674
+ }, Fe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (Ie(e, "cacheSize", t), Ie(e, "prefix", n), Ie(e, "experimentalParseClassName", r), Le(e.theme, a.theme), Le(e.classGroups, a.classGroups), Le(e.conflictingClassGroups, a.conflictingClassGroups), Le(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), Ie(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), Re(e.theme, i.theme), Re(e.classGroups, i.classGroups), Re(e.conflictingClassGroups, i.conflictingClassGroups), Re(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), ze(e, i, "orderSensitiveModifiers"), e), Ie = (e, t, n) => {
1675
+ n !== void 0 && (e[t] = n);
1676
+ }, Le = (e, t) => {
1677
+ if (t) for (let n in t) Ie(e, n, t[n]);
1678
+ }, Re = (e, t) => {
1679
+ if (t) for (let n in t) ze(e, t, n);
1680
+ }, ze = (e, t, n) => {
1681
+ let r = t[n];
1682
+ r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
1683
+ }, $ = ((e, ...t) => typeof e == "function" ? ae(Pe, e, ...t) : ae(() => Fe(Pe(), e), ...t))({ extend: { theme: { text: [
1684
+ "display-xs",
1685
+ "display-sm",
1686
+ "display-md",
1687
+ "display-lg",
1688
+ "display-xl",
1689
+ "display-2xl"
1690
+ ] } } }), Be = {
1691
+ xs: "h-8 px-3 py-1.5 text-xs gap-1",
1692
+ sm: "h-9 px-3.5 py-2 text-sm gap-1",
1693
+ md: "h-10 px-3.5 py-2.5 text-sm gap-1",
1694
+ lg: "h-11 px-4 py-2.5 text-md gap-1.5",
1695
+ xl: "h-12 px-[18px] py-3 text-md gap-1.5"
1696
+ }, Ve = {
1697
+ xs: "h-8 w-8 p-1.5",
1698
+ sm: "h-9 w-9 p-2",
1699
+ md: "h-10 w-10 p-2.5",
1700
+ lg: "h-11 w-11 p-3",
1701
+ xl: "h-12 w-12 p-3"
1702
+ }, He = {
1703
+ primary: $("bg-bg-brand-solid text-text-white shadow-xs", "after:absolute after:inset-0 after:rounded-[inherit] after:pointer-events-none", "after:shadow-[var(--button-inset-shadow)]", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2"),
1704
+ secondary: $("bg-bg-primary text-text-secondary border border-border-primary shadow-xs", "hover:bg-bg-secondary hover:text-text-primary", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2"),
1705
+ tertiary: $("bg-transparent text-text-tertiary", "hover:bg-bg-secondary hover:text-text-primary", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2"),
1706
+ destructive: $("bg-bg-error-solid text-text-white shadow-xs", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-red-500 focus-visible:ring-offset-2"),
1707
+ "link-color": $("bg-transparent text-fg-brand-primary px-0 h-auto", "hover:text-fg-brand-secondary", "focus-visible:outline-none focus-visible:rounded focus-visible:ring-2 focus-visible:ring-focus-ring"),
1708
+ "link-gray": $("bg-transparent text-text-tertiary px-0 h-auto", "hover:text-text-primary", "focus-visible:outline-none focus-visible:rounded focus-visible:ring-2 focus-visible:ring-focus-ring"),
1709
+ ghost: $("bg-transparent text-fg-brand-primary", "hover:bg-bg-brand-primary", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2")
1710
+ };
1711
+ function Ue({ children: e, variant: i = "primary", size: a = "md", disabled: o = !1, loading: s = !1, iconOnly: c = !1, leadingIcon: l, trailingIcon: u, onClick: d, type: f = "button", className: p }) {
1712
+ return /* @__PURE__ */ n("button", {
1713
+ type: f,
1714
+ disabled: o || s,
1715
+ onClick: d,
1716
+ className: $("relative inline-flex items-center justify-center font-semibold rounded-[var(--radius-control)]", "whitespace-nowrap cursor-pointer transition-colors duration-150", "disabled:opacity-50 disabled:cursor-not-allowed", "before:absolute before:inset-0 before:rounded-[inherit] before:pointer-events-none", "before:bg-white/0 hover:before:bg-white/[0.08] before:transition-colors before:duration-150", c ? Ve[a] : Be[a], He[i] ?? He.primary, p),
1717
+ children: s ? /* @__PURE__ */ n(We, { size: a }) : /* @__PURE__ */ r(t, { children: [
1718
+ l && /* @__PURE__ */ n("span", {
1719
+ className: "shrink-0 size-5 flex items-center justify-center",
1720
+ children: l
1721
+ }),
1722
+ !c && e,
1723
+ c && !l && e,
1724
+ u && !c && /* @__PURE__ */ n("span", {
1725
+ className: "shrink-0 size-5 flex items-center justify-center",
1726
+ children: u
1727
+ })
1728
+ ] })
1729
+ });
1730
+ }
1731
+ function We({ size: e }) {
1732
+ return /* @__PURE__ */ n("span", {
1733
+ className: $("block rounded-full border-2 border-current border-t-transparent animate-spin", {
1734
+ xs: "size-3",
1735
+ sm: "size-3.5",
1736
+ md: "size-4",
1737
+ lg: "size-4",
1738
+ xl: "size-5"
1739
+ }[e]),
1740
+ role: "status",
1741
+ "aria-label": "Loading"
1742
+ });
1743
+ }
1744
+ Ue.propTypes = {
1745
+ children: e.node,
1746
+ variant: e.oneOf([
1747
+ "primary",
1748
+ "secondary",
1749
+ "tertiary",
1750
+ "destructive",
1751
+ "link-color",
1752
+ "link-gray",
1753
+ "ghost"
1754
+ ]),
1755
+ size: e.oneOf([
1756
+ "xs",
1757
+ "sm",
1758
+ "md",
1759
+ "lg",
1760
+ "xl"
1761
+ ]),
1762
+ disabled: e.bool,
1763
+ loading: e.bool,
1764
+ iconOnly: e.bool,
1765
+ leadingIcon: e.node,
1766
+ trailingIcon: e.node,
1767
+ onClick: e.func,
1768
+ type: e.string,
1769
+ className: e.string
1770
+ };
1771
+ //#endregion
1772
+ //#region src/components/Input.jsx
1773
+ var Ge = {
1774
+ sm: "h-9 px-3 py-2 text-sm gap-1.5",
1775
+ md: "h-10 px-3.5 py-2.5 text-sm gap-2",
1776
+ lg: "h-11 px-4 py-3 text-md gap-2"
1777
+ };
1778
+ function Ke({ label: e, hint: t, error: i, required: a, disabled: o, size: s = "md", leadingIcon: c, trailingIcon: l, id: u, className: d, ...f }) {
1779
+ let p = !!i;
1780
+ return /* @__PURE__ */ r("div", {
1781
+ className: "flex flex-col gap-1.5 w-full",
1782
+ children: [
1783
+ e && /* @__PURE__ */ r("label", {
1784
+ htmlFor: u,
1785
+ className: "text-sm font-medium text-text-secondary",
1786
+ children: [e, a && /* @__PURE__ */ n("span", {
1787
+ className: "ml-0.5 text-fg-brand-primary",
1788
+ children: "*"
1789
+ })]
1790
+ }),
1791
+ /* @__PURE__ */ r("div", {
1792
+ className: $("relative flex items-center", "bg-bg-primary rounded-[var(--radius-control)] shadow-xs", "border border-border-primary", "transition-colors duration-150", "has-[:focus]:border-2 has-[:focus]:border-border-brand", p && "border-border-error", o && "opacity-50", Ge[s]),
1793
+ children: [
1794
+ c && /* @__PURE__ */ n("span", {
1795
+ className: "shrink-0 size-5 flex items-center justify-center text-fg-tertiary mr-2",
1796
+ children: c
1797
+ }),
1798
+ /* @__PURE__ */ n("input", {
1799
+ id: u,
1800
+ disabled: o,
1801
+ className: $("flex-1 min-w-0 bg-transparent outline-none", "text-text-primary placeholder:text-text-placeholder", "disabled:cursor-not-allowed", d),
1802
+ ...f
1803
+ }),
1804
+ (l || p) && /* @__PURE__ */ n("span", {
1805
+ className: $("shrink-0 size-5 flex items-center justify-center ml-2", p ? "text-fg-error-primary" : "text-fg-tertiary"),
1806
+ children: p ? /* @__PURE__ */ n(qe, {}) : l
1807
+ })
1808
+ ]
1809
+ }),
1810
+ (t || i) && /* @__PURE__ */ n("p", {
1811
+ className: $("text-sm", p ? "text-fg-error-primary" : "text-text-tertiary"),
1812
+ children: i ?? t
1813
+ })
1814
+ ]
1815
+ });
1816
+ }
1817
+ function qe() {
1818
+ return /* @__PURE__ */ r("svg", {
1819
+ xmlns: "http://www.w3.org/2000/svg",
1820
+ width: "16",
1821
+ height: "16",
1822
+ viewBox: "0 0 24 24",
1823
+ fill: "none",
1824
+ stroke: "currentColor",
1825
+ strokeWidth: "2",
1826
+ strokeLinecap: "round",
1827
+ strokeLinejoin: "round",
1828
+ "aria-hidden": "true",
1829
+ children: [
1830
+ /* @__PURE__ */ n("circle", {
1831
+ cx: "12",
1832
+ cy: "12",
1833
+ r: "10"
1834
+ }),
1835
+ /* @__PURE__ */ n("line", {
1836
+ x1: "12",
1837
+ y1: "8",
1838
+ x2: "12",
1839
+ y2: "12"
1840
+ }),
1841
+ /* @__PURE__ */ n("line", {
1842
+ x1: "12",
1843
+ y1: "16",
1844
+ x2: "12.01",
1845
+ y2: "16"
1846
+ })
1847
+ ]
1848
+ });
1849
+ }
1850
+ Ke.propTypes = {
1851
+ label: e.string,
1852
+ hint: e.string,
1853
+ error: e.string,
1854
+ required: e.bool,
1855
+ disabled: e.bool,
1856
+ size: e.oneOf([
1857
+ "sm",
1858
+ "md",
1859
+ "lg"
1860
+ ]),
1861
+ leadingIcon: e.node,
1862
+ trailingIcon: e.node,
1863
+ id: e.string,
1864
+ className: e.string
1865
+ };
1866
+ //#endregion
1867
+ //#region src/components/Menu.jsx
1868
+ function Je({ children: e, className: t }) {
1869
+ return /* @__PURE__ */ n("div", {
1870
+ role: "listbox",
1871
+ className: $("bg-bg-primary border border-[rgba(0,0,0,0.1)] rounded-xl py-1", "shadow-[0px_12px_16px_-4px_rgba(0,0,0,0.08),0px_4px_6px_-2px_rgba(0,0,0,0.03),0px_2px_2px_-1px_rgba(0,0,0,0.04)]", "max-h-64 overflow-y-auto", t),
1872
+ children: e
1873
+ });
1874
+ }
1875
+ Je.propTypes = {
1876
+ children: e.node.isRequired,
1877
+ className: e.string
1878
+ };
1879
+ //#endregion
1880
+ //#region src/components/MenuItem.jsx
1881
+ function Ye() {
1882
+ return /* @__PURE__ */ n("svg", {
1883
+ width: "16",
1884
+ height: "16",
1885
+ viewBox: "0 0 16 16",
1886
+ fill: "none",
1887
+ xmlns: "http://www.w3.org/2000/svg",
1888
+ "aria-hidden": "true",
1889
+ children: /* @__PURE__ */ n("path", {
1890
+ d: "M13.333 4L6 11.333 2.667 8",
1891
+ stroke: "currentColor",
1892
+ strokeWidth: "1.5",
1893
+ strokeLinecap: "round",
1894
+ strokeLinejoin: "round"
1895
+ })
1896
+ });
1897
+ }
1898
+ var Xe = {
1899
+ sm: "text-sm",
1900
+ md: "text-md",
1901
+ lg: "text-md"
1902
+ };
1903
+ function Ze({ label: e, supportingText: t, selected: i = !1, disabled: a = !1, onClick: o, leadingIcon: s, size: c = "md", className: l }) {
1904
+ return /* @__PURE__ */ n("div", {
1905
+ className: "px-1.5 py-px",
1906
+ role: "option",
1907
+ "aria-selected": i,
1908
+ "aria-disabled": a,
1909
+ children: /* @__PURE__ */ r("div", {
1910
+ onClick: a ? void 0 : o,
1911
+ className: $("flex items-center gap-2 p-2 rounded-md", "transition-colors duration-100", a ? "opacity-50 cursor-not-allowed" : "cursor-pointer hover:bg-bg-secondary", l),
1912
+ children: [
1913
+ s && /* @__PURE__ */ n("span", {
1914
+ className: "shrink-0 size-4 flex items-center justify-center text-fg-tertiary",
1915
+ children: s
1916
+ }),
1917
+ /* @__PURE__ */ r("div", {
1918
+ className: "flex-1 flex gap-2 items-center min-w-0",
1919
+ children: [/* @__PURE__ */ n("span", {
1920
+ className: $("font-medium text-text-primary whitespace-nowrap", Xe[c]),
1921
+ children: e
1922
+ }), t && /* @__PURE__ */ n("span", {
1923
+ className: $("text-text-tertiary whitespace-nowrap", Xe[c]),
1924
+ children: t
1925
+ })]
1926
+ }),
1927
+ i && /* @__PURE__ */ n("span", {
1928
+ className: "shrink-0 text-fg-brand-primary",
1929
+ children: /* @__PURE__ */ n(Ye, {})
1930
+ })
1931
+ ]
1932
+ })
1933
+ });
1934
+ }
1935
+ Ze.propTypes = {
1936
+ label: e.string.isRequired,
1937
+ supportingText: e.string,
1938
+ selected: e.bool,
1939
+ disabled: e.bool,
1940
+ onClick: e.func,
1941
+ leadingIcon: e.node,
1942
+ size: e.oneOf([
1943
+ "sm",
1944
+ "md",
1945
+ "lg"
1946
+ ]),
1947
+ className: e.string
1948
+ };
1949
+ //#endregion
1950
+ //#region node_modules/@untitledui/icons/dist/Check.mjs
1951
+ var Qe = ({ size: e = 24, color: t = "currentColor", ...n }) => i.createElement("svg", {
1952
+ viewBox: "0 0 24 24",
1953
+ width: e,
1954
+ height: e,
1955
+ stroke: t,
1956
+ strokeWidth: "2",
1957
+ fill: "none",
1958
+ strokeLinecap: "round",
1959
+ strokeLinejoin: "round",
1960
+ "aria-hidden": "true",
1961
+ ...n
1962
+ }, i.createElement("path", { d: "M20 6 9 17l-5-5" }));
1963
+ Qe.displayName = "Check";
1964
+ //#endregion
1965
+ //#region node_modules/@untitledui/icons/dist/ChevronRight.mjs
1966
+ var $e = ({ size: e = 24, color: t = "currentColor", ...n }) => i.createElement("svg", {
1967
+ viewBox: "0 0 24 24",
1968
+ width: e,
1969
+ height: e,
1970
+ stroke: t,
1971
+ strokeWidth: "2",
1972
+ fill: "none",
1973
+ strokeLinecap: "round",
1974
+ strokeLinejoin: "round",
1975
+ "aria-hidden": "true",
1976
+ ...n
1977
+ }, i.createElement("path", { d: "m9 18 6-6-6-6" }));
1978
+ $e.displayName = "ChevronRight";
1979
+ //#endregion
1980
+ //#region src/components/DropdownMenuItem.jsx
1981
+ function et({ label: e, supportingText: t, icon: i, shortcut: a, chevron: o = !1, selected: s = !1, divider: c = !1, disabled: l = !1, onClick: u, className: d }) {
1982
+ return c ? /* @__PURE__ */ n("div", {
1983
+ className: $("h-px bg-border-secondary my-1", d),
1984
+ role: "separator"
1985
+ }) : /* @__PURE__ */ n("div", {
1986
+ role: "menuitem",
1987
+ tabIndex: l ? -1 : 0,
1988
+ "aria-disabled": l,
1989
+ "aria-selected": s,
1990
+ onClick: l ? void 0 : u,
1991
+ onKeyDown: l ? void 0 : (e) => {
1992
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), u?.());
1993
+ },
1994
+ className: $("flex items-center px-1.5 py-px w-full outline-none", l ? "cursor-not-allowed opacity-50" : "cursor-pointer", d),
1995
+ children: /* @__PURE__ */ r("div", {
1996
+ className: $("flex flex-1 gap-3 items-center overflow-hidden pl-[10px] pr-1.5 py-2 rounded-sm", !l && "hover:bg-bg-secondary focus-visible:bg-bg-secondary"),
1997
+ children: [
1998
+ i && /* @__PURE__ */ n("span", {
1999
+ className: "shrink-0 size-4 flex items-center justify-center text-fg-tertiary",
2000
+ children: i
2001
+ }),
2002
+ /* @__PURE__ */ r("span", {
2003
+ className: "flex-1 flex gap-2 items-center min-w-0",
2004
+ children: [/* @__PURE__ */ n("span", {
2005
+ className: "truncate text-sm font-semibold text-text-secondary",
2006
+ children: e
2007
+ }), t && /* @__PURE__ */ n("span", {
2008
+ className: "shrink-0 text-sm text-text-tertiary",
2009
+ children: t
2010
+ })]
2011
+ }),
2012
+ a && /* @__PURE__ */ n("span", {
2013
+ className: "shrink-0 text-xs font-medium text-text-placeholder ml-auto pl-2",
2014
+ children: a
2015
+ }),
2016
+ s && /* @__PURE__ */ n("span", {
2017
+ className: "shrink-0 size-4 flex items-center justify-center text-fg-brand-primary",
2018
+ children: /* @__PURE__ */ n(Qe, { size: 16 })
2019
+ }),
2020
+ o && /* @__PURE__ */ n("span", {
2021
+ className: "shrink-0 size-4 flex items-center justify-center text-fg-tertiary",
2022
+ children: /* @__PURE__ */ n($e, { size: 16 })
2023
+ })
2024
+ ]
2025
+ })
2026
+ });
2027
+ }
2028
+ et.propTypes = {
2029
+ label: e.string,
2030
+ supportingText: e.string,
2031
+ icon: e.node,
2032
+ shortcut: e.string,
2033
+ chevron: e.bool,
2034
+ selected: e.bool,
2035
+ divider: e.bool,
2036
+ disabled: e.bool,
2037
+ onClick: e.func,
2038
+ className: e.string
2039
+ };
2040
+ //#endregion
2041
+ //#region src/components/Tab2.jsx
2042
+ function tt({ tabs: e = [], value: t, onChange: r, className: i }) {
2043
+ return /* @__PURE__ */ n("div", {
2044
+ role: "tablist",
2045
+ className: $("inline-flex items-center gap-4 p-2 rounded-full bg-bg-brand-solid", i),
2046
+ children: e.map((e) => {
2047
+ let i = e.value === t;
2048
+ return /* @__PURE__ */ n("button", {
2049
+ role: "tab",
2050
+ type: "button",
2051
+ "aria-selected": i,
2052
+ onClick: () => r?.(e.value),
2053
+ className: $("px-4 py-2 rounded-full text-lg font-medium whitespace-nowrap cursor-pointer", "transition-colors duration-150 outline-none", "focus-visible:ring-2 focus-visible:ring-white/60 focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-bg-brand-solid)]", i ? "bg-bg-primary text-text-primary" : "text-text-white"),
2054
+ children: e.label
2055
+ }, e.value);
2056
+ })
2057
+ });
2058
+ }
2059
+ tt.propTypes = {
2060
+ tabs: e.arrayOf(e.shape({
2061
+ label: e.string.isRequired,
2062
+ value: e.string.isRequired
2063
+ })),
2064
+ value: e.string,
2065
+ onChange: e.func,
2066
+ className: e.string
2067
+ };
2068
+ //#endregion
2069
+ //#region src/components/Modal.jsx
2070
+ function nt() {
2071
+ return /* @__PURE__ */ n("svg", {
2072
+ width: "20",
2073
+ height: "20",
2074
+ viewBox: "0 0 20 20",
2075
+ fill: "none",
2076
+ xmlns: "http://www.w3.org/2000/svg",
2077
+ "aria-hidden": "true",
2078
+ children: /* @__PURE__ */ n("path", {
2079
+ d: "M15 5L5 15M5 5l10 10",
2080
+ stroke: "currentColor",
2081
+ strokeWidth: "1.67",
2082
+ strokeLinecap: "round",
2083
+ strokeLinejoin: "round"
2084
+ })
2085
+ });
2086
+ }
2087
+ function rt({ title: e, description: t, onClose: i, footer: o, footerDivider: s = !1, children: c, className: l }) {
2088
+ return a(() => {
2089
+ let e = (e) => {
2090
+ e.key === "Escape" && i();
2091
+ };
2092
+ return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
2093
+ }, [i]), /* @__PURE__ */ r("div", {
2094
+ className: "fixed inset-0 z-50 flex items-center justify-center p-8",
2095
+ onClick: i,
2096
+ children: [/* @__PURE__ */ n("div", {
2097
+ className: "absolute inset-0 bg-[#0a0a0a]/40",
2098
+ "aria-hidden": "true"
2099
+ }), /* @__PURE__ */ r("div", {
2100
+ role: "dialog",
2101
+ "aria-modal": "true",
2102
+ "aria-labelledby": e ? "modal-title" : void 0,
2103
+ onClick: (e) => e.stopPropagation(),
2104
+ className: $("relative flex flex-col w-full max-w-[400px] bg-bg-primary rounded-2xl overflow-hidden", "shadow-[0px_20px_24px_-4px_rgba(0,0,0,0.08),0px_8px_8px_-4px_rgba(0,0,0,0.03),0px_3px_3px_-1.5px_rgba(0,0,0,0.04)]", l),
2105
+ children: [
2106
+ /* @__PURE__ */ r("div", {
2107
+ className: "flex items-start pl-6 pr-3 py-3",
2108
+ children: [/* @__PURE__ */ r("div", {
2109
+ className: "flex-1 min-w-0 flex flex-col gap-0.5 py-0.5",
2110
+ children: [e && /* @__PURE__ */ n("p", {
2111
+ id: "modal-title",
2112
+ className: "text-md font-semibold text-text-primary",
2113
+ children: e
2114
+ }), t && /* @__PURE__ */ n("p", {
2115
+ className: "text-sm text-text-tertiary",
2116
+ children: t
2117
+ })]
2118
+ }), /* @__PURE__ */ n("button", {
2119
+ onClick: i,
2120
+ "aria-label": "Close modal",
2121
+ className: $("shrink-0 flex items-center justify-center size-9 rounded-full", "bg-bg-tertiary text-text-tertiary", "hover:bg-bg-secondary hover:text-text-primary", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2", "transition-colors duration-150 cursor-pointer"),
2122
+ children: /* @__PURE__ */ n(nt, {})
2123
+ })]
2124
+ }),
2125
+ /* @__PURE__ */ n("div", { className: "h-px bg-border-primary" }),
2126
+ c && /* @__PURE__ */ n("div", {
2127
+ className: "px-6 py-6",
2128
+ children: c
2129
+ }),
2130
+ o && /* @__PURE__ */ r("div", {
2131
+ className: "pt-8",
2132
+ children: [s && /* @__PURE__ */ n("div", { className: "h-px bg-border-primary" }), /* @__PURE__ */ n("div", {
2133
+ className: "px-6 pb-6",
2134
+ children: o
2135
+ })]
2136
+ })
2137
+ ]
2138
+ })]
2139
+ });
2140
+ }
2141
+ rt.propTypes = {
2142
+ title: e.string,
2143
+ description: e.string,
2144
+ onClose: e.func.isRequired,
2145
+ footer: e.node,
2146
+ footerDivider: e.bool,
2147
+ children: e.node,
2148
+ className: e.string
2149
+ };
2150
+ //#endregion
2151
+ //#region src/components/Checkbox.jsx
2152
+ function it({ size: e }) {
2153
+ return e === "md" ? /* @__PURE__ */ n("svg", {
2154
+ width: "12",
2155
+ height: "12",
2156
+ viewBox: "0 0 12 12",
2157
+ fill: "none",
2158
+ "aria-hidden": "true",
2159
+ children: /* @__PURE__ */ n("path", {
2160
+ d: "M10 3L4.5 8.5 2 6",
2161
+ stroke: "white",
2162
+ strokeWidth: "1.67",
2163
+ strokeLinecap: "round",
2164
+ strokeLinejoin: "round"
2165
+ })
2166
+ }) : /* @__PURE__ */ n("svg", {
2167
+ width: "10",
2168
+ height: "10",
2169
+ viewBox: "0 0 10 10",
2170
+ fill: "none",
2171
+ "aria-hidden": "true",
2172
+ children: /* @__PURE__ */ n("path", {
2173
+ d: "M8.333 2.5L3.75 7.083 1.667 5",
2174
+ stroke: "white",
2175
+ strokeWidth: "1.5",
2176
+ strokeLinecap: "round",
2177
+ strokeLinejoin: "round"
2178
+ })
2179
+ });
2180
+ }
2181
+ function at({ size: e }) {
2182
+ return e === "md" ? /* @__PURE__ */ n("svg", {
2183
+ width: "12",
2184
+ height: "12",
2185
+ viewBox: "0 0 12 12",
2186
+ fill: "none",
2187
+ "aria-hidden": "true",
2188
+ children: /* @__PURE__ */ n("path", {
2189
+ d: "M2.5 6h7",
2190
+ stroke: "white",
2191
+ strokeWidth: "1.67",
2192
+ strokeLinecap: "round"
2193
+ })
2194
+ }) : /* @__PURE__ */ n("svg", {
2195
+ width: "10",
2196
+ height: "10",
2197
+ viewBox: "0 0 10 10",
2198
+ fill: "none",
2199
+ "aria-hidden": "true",
2200
+ children: /* @__PURE__ */ n("path", {
2201
+ d: "M2 5h6",
2202
+ stroke: "white",
2203
+ strokeWidth: "1.5",
2204
+ strokeLinecap: "round"
2205
+ })
2206
+ });
2207
+ }
2208
+ function ot({ id: e, label: t, description: i, size: s = "md", checked: c = !1, indeterminate: l = !1, disabled: u = !1, onChange: d, tabIndex: f, className: p }) {
2209
+ let m = o(null), h = c || l;
2210
+ return a(() => {
2211
+ m.current && (m.current.indeterminate = l);
2212
+ }, [l]), /* @__PURE__ */ r("label", {
2213
+ htmlFor: e,
2214
+ className: $("inline-flex items-start gap-3 group outline-none", u ? "cursor-not-allowed opacity-50" : "cursor-pointer", p),
2215
+ children: [/* @__PURE__ */ r("div", {
2216
+ className: $("relative shrink-0", s === "md" ? "size-5 mt-px" : "size-4 mt-0.5"),
2217
+ children: [/* @__PURE__ */ n("input", {
2218
+ ref: m,
2219
+ id: e,
2220
+ type: "checkbox",
2221
+ checked: c,
2222
+ disabled: u,
2223
+ onChange: d,
2224
+ "aria-checked": l ? "mixed" : c,
2225
+ tabIndex: f,
2226
+ className: "peer absolute inset-0 opacity-0 w-full h-full cursor-pointer m-0"
2227
+ }), /* @__PURE__ */ n("span", {
2228
+ className: $("pointer-events-none absolute inset-0 flex items-center justify-center transition-all duration-150", s === "md" ? "rounded-md" : "rounded-sm", h ? [
2229
+ "bg-bg-brand-solid shadow-xs",
2230
+ "after:absolute after:inset-0 after:rounded-[inherit] after:pointer-events-none",
2231
+ "after:shadow-[var(--button-inset-shadow)]"
2232
+ ] : "border border-border-primary bg-bg-primary", !u && ["group-hover:shadow-[0_0_0_4px_var(--color-brand-100)]", "peer-focus-visible:shadow-[0_0_0_4px_var(--color-brand-100)]"]),
2233
+ children: l ? /* @__PURE__ */ n(at, { size: s }) : c ? /* @__PURE__ */ n(it, { size: s }) : null
2234
+ })]
2235
+ }), (t || i) && /* @__PURE__ */ r("div", {
2236
+ className: "flex flex-col gap-0.5 min-w-0",
2237
+ children: [t && /* @__PURE__ */ n("span", {
2238
+ className: "text-sm font-medium text-text-secondary",
2239
+ children: t
2240
+ }), i && /* @__PURE__ */ n("span", {
2241
+ className: "text-sm text-text-tertiary",
2242
+ children: i
2243
+ })]
2244
+ })]
2245
+ });
2246
+ }
2247
+ ot.propTypes = {
2248
+ id: e.string,
2249
+ label: e.string,
2250
+ description: e.string,
2251
+ size: e.oneOf(["sm", "md"]),
2252
+ checked: e.bool,
2253
+ indeterminate: e.bool,
2254
+ disabled: e.bool,
2255
+ onChange: e.func,
2256
+ tabIndex: e.number,
2257
+ className: e.string
2258
+ };
2259
+ //#endregion
2260
+ //#region src/components/MultiSelect.jsx
2261
+ function st() {
2262
+ return /* @__PURE__ */ n("svg", {
2263
+ width: "16",
2264
+ height: "16",
2265
+ viewBox: "0 0 24 24",
2266
+ fill: "none",
2267
+ stroke: "currentColor",
2268
+ strokeWidth: "2",
2269
+ strokeLinecap: "round",
2270
+ strokeLinejoin: "round",
2271
+ "aria-hidden": "true",
2272
+ children: /* @__PURE__ */ n("path", { d: "M6 9l6 6 6-6" })
2273
+ });
2274
+ }
2275
+ function ct() {
2276
+ return /* @__PURE__ */ n("svg", {
2277
+ width: "20",
2278
+ height: "20",
2279
+ viewBox: "0 0 20 20",
2280
+ fill: "none",
2281
+ xmlns: "http://www.w3.org/2000/svg",
2282
+ "aria-hidden": "true",
2283
+ children: /* @__PURE__ */ n("path", {
2284
+ d: "M17.5 17.5l-3.625-3.625M15.833 9.167a6.667 6.667 0 1 1-13.333 0 6.667 6.667 0 0 1 13.333 0Z",
2285
+ stroke: "currentColor",
2286
+ strokeWidth: "1.67",
2287
+ strokeLinecap: "round",
2288
+ strokeLinejoin: "round"
2289
+ })
2290
+ });
2291
+ }
2292
+ function lt({ label: e, supportingText: t, checked: r, disabled: i, onClick: a }) {
2293
+ return /* @__PURE__ */ n(et, {
2294
+ label: e,
2295
+ supportingText: t,
2296
+ icon: /* @__PURE__ */ n(ot, {
2297
+ checked: r,
2298
+ size: "sm",
2299
+ onChange: () => {},
2300
+ tabIndex: -1,
2301
+ className: "pointer-events-none"
2302
+ }),
2303
+ disabled: i,
2304
+ onClick: a
2305
+ });
2306
+ }
2307
+ var ut = {
2308
+ sm: "h-9 px-3 py-2 text-sm gap-1.5",
2309
+ md: "h-10 px-3.5 py-2.5 text-sm gap-2",
2310
+ lg: "h-11 px-4 py-3 text-md gap-2"
2311
+ };
2312
+ function dt({ label: e, hint: t, error: i, required: c, disabled: l, size: u = "md", helpIcon: d, placeholder: f = "Select…", options: p = [], values: m = [], onChange: h, id: g, className: _, emptyTitle: v = "No results found", emptyDescription: y = "Please try a different search term." }) {
2313
+ let [b, x] = s(!1), [S, C] = s(""), w = o(null), T = o(null), ee = !!i, E = S.trim() ? p.filter((e) => e.label.toLowerCase().includes(S.toLowerCase())) : p, D = m.length, te = p.filter((e) => !e.disabled).map((e) => e.value);
2314
+ a(() => {
2315
+ b && T.current?.focus();
2316
+ }, [b]), a(() => {
2317
+ if (!b) return;
2318
+ let e = (e) => {
2319
+ w.current?.contains(e.target) || x(!1);
2320
+ };
2321
+ return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
2322
+ }, [b]), a(() => {
2323
+ if (!b) return;
2324
+ let e = (e) => {
2325
+ e.key === "Escape" && x(!1);
2326
+ };
2327
+ return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
2328
+ }, [b]);
2329
+ let O = (e) => {
2330
+ let t = m.includes(e) ? m.filter((t) => t !== e) : [...m, e];
2331
+ h?.(t);
2332
+ };
2333
+ return /* @__PURE__ */ r("div", {
2334
+ className: "flex flex-col gap-1.5 w-full",
2335
+ children: [
2336
+ e && /* @__PURE__ */ r("div", {
2337
+ className: "flex items-center gap-1",
2338
+ children: [/* @__PURE__ */ r("label", {
2339
+ htmlFor: g,
2340
+ className: "text-sm font-medium text-text-secondary",
2341
+ children: [e, c && /* @__PURE__ */ n("span", {
2342
+ className: "ml-0.5 text-fg-brand-primary",
2343
+ children: "*"
2344
+ })]
2345
+ }), d && /* @__PURE__ */ n("span", {
2346
+ className: "text-fg-tertiary flex items-center",
2347
+ children: d
2348
+ })]
2349
+ }),
2350
+ /* @__PURE__ */ r("div", {
2351
+ ref: w,
2352
+ className: "relative w-full",
2353
+ children: [/* @__PURE__ */ r("button", {
2354
+ id: g,
2355
+ type: "button",
2356
+ disabled: l,
2357
+ onClick: () => !l && x((e) => !e),
2358
+ "aria-haspopup": "listbox",
2359
+ "aria-expanded": b,
2360
+ className: $("relative flex items-center w-full", "bg-bg-primary rounded-[var(--radius-control)] shadow-xs", "border transition-colors duration-150", b ? "border-2 border-border-brand" : "border-border-primary", ee && !b && "border-border-error", l && "opacity-50 cursor-not-allowed", ut[u], _),
2361
+ children: [/* @__PURE__ */ n("span", {
2362
+ className: $("flex-1 min-w-0 text-left", D === 0 && "text-text-placeholder"),
2363
+ children: D > 0 ? /* @__PURE__ */ n("span", {
2364
+ className: "font-medium text-text-primary truncate",
2365
+ children: p.filter((e) => m.includes(e.value)).map((e) => e.label).join(", ")
2366
+ }) : f
2367
+ }), /* @__PURE__ */ n("span", {
2368
+ className: "shrink-0 flex items-center justify-center text-fg-tertiary ml-2 pointer-events-none",
2369
+ children: /* @__PURE__ */ n(st, {})
2370
+ })]
2371
+ }), b && /* @__PURE__ */ n("div", {
2372
+ className: "absolute top-full left-0 right-0 z-10 mt-1",
2373
+ children: /* @__PURE__ */ r("div", {
2374
+ className: $("bg-bg-primary border border-[rgba(0,0,0,0.1)] rounded-xl overflow-hidden", "shadow-[0px_12px_16px_-4px_rgba(0,0,0,0.08),0px_4px_6px_-2px_rgba(0,0,0,0.03),0px_2px_2px_-1px_rgba(0,0,0,0.04)]"),
2375
+ children: [
2376
+ /* @__PURE__ */ n("div", {
2377
+ className: "border-b border-border-secondary py-0.5",
2378
+ children: /* @__PURE__ */ r("div", {
2379
+ className: "flex items-center gap-2 px-3 py-2",
2380
+ children: [/* @__PURE__ */ n("span", {
2381
+ className: "shrink-0 text-text-placeholder",
2382
+ children: /* @__PURE__ */ n(ct, {})
2383
+ }), /* @__PURE__ */ n("input", {
2384
+ ref: T,
2385
+ type: "text",
2386
+ value: S,
2387
+ onChange: (e) => C(e.target.value),
2388
+ placeholder: "Search",
2389
+ className: "flex-1 min-w-0 bg-transparent outline-none text-md text-text-primary placeholder:text-text-placeholder"
2390
+ })]
2391
+ })
2392
+ }),
2393
+ E.length > 0 ? /* @__PURE__ */ n("div", {
2394
+ className: "py-1 max-h-[304px] overflow-y-auto",
2395
+ children: E.map((e) => /* @__PURE__ */ n(lt, {
2396
+ label: e.label,
2397
+ supportingText: e.supportingText,
2398
+ checked: m.includes(e.value),
2399
+ disabled: e.disabled,
2400
+ onClick: () => O(e.value)
2401
+ }, e.value))
2402
+ }) : /* @__PURE__ */ r("div", {
2403
+ className: "flex flex-col items-center gap-3 px-4 py-5",
2404
+ children: [
2405
+ /* @__PURE__ */ n("div", {
2406
+ className: $("flex items-center justify-center size-8 rounded-md", "border border-border-primary bg-bg-primary", "shadow-[0px_1px_2px_rgba(0,0,0,0.05),inset_0px_0px_0px_1px_rgba(0,0,0,0.24),inset_0px_-2px_0px_0px_rgba(0,0,0,0.12)]"),
2407
+ children: /* @__PURE__ */ n("span", {
2408
+ className: "text-text-tertiary size-4 flex items-center justify-center",
2409
+ children: /* @__PURE__ */ n(ct, {})
2410
+ })
2411
+ }),
2412
+ /* @__PURE__ */ r("div", {
2413
+ className: "flex flex-col gap-0.5 items-center text-center",
2414
+ children: [/* @__PURE__ */ n("p", {
2415
+ className: "text-sm font-semibold text-text-primary",
2416
+ children: v
2417
+ }), /* @__PURE__ */ n("p", {
2418
+ className: "text-sm text-text-tertiary",
2419
+ children: y
2420
+ })]
2421
+ }),
2422
+ /* @__PURE__ */ n("button", {
2423
+ type: "button",
2424
+ onClick: () => {
2425
+ C(""), T.current?.focus();
2426
+ },
2427
+ className: "text-sm font-semibold text-fg-brand-primary hover:text-fg-brand-secondary transition-colors cursor-pointer",
2428
+ children: "Clear search"
2429
+ })
2430
+ ]
2431
+ }),
2432
+ /* @__PURE__ */ r("div", {
2433
+ className: "flex items-center justify-between p-3 border-t border-[rgba(0,0,0,0.1)]",
2434
+ children: [/* @__PURE__ */ n(Ue, {
2435
+ variant: "secondary",
2436
+ size: "sm",
2437
+ onClick: (e) => {
2438
+ e.stopPropagation(), h?.([]);
2439
+ },
2440
+ children: "Reset"
2441
+ }), /* @__PURE__ */ n(Ue, {
2442
+ variant: "secondary",
2443
+ size: "sm",
2444
+ onClick: (e) => {
2445
+ e.stopPropagation(), h?.(te);
2446
+ },
2447
+ children: "Select all"
2448
+ })]
2449
+ })
2450
+ ]
2451
+ })
2452
+ })]
2453
+ }),
2454
+ (t || i) && /* @__PURE__ */ n("p", {
2455
+ className: $("text-sm", ee ? "text-fg-error-primary" : "text-text-tertiary"),
2456
+ children: i ?? t
2457
+ })
2458
+ ]
2459
+ });
2460
+ }
2461
+ dt.propTypes = {
2462
+ label: e.string,
2463
+ hint: e.string,
2464
+ error: e.string,
2465
+ required: e.bool,
2466
+ disabled: e.bool,
2467
+ size: e.oneOf([
2468
+ "sm",
2469
+ "md",
2470
+ "lg"
2471
+ ]),
2472
+ helpIcon: e.node,
2473
+ placeholder: e.string,
2474
+ options: e.arrayOf(e.shape({
2475
+ value: e.string.isRequired,
2476
+ label: e.string.isRequired,
2477
+ supportingText: e.string,
2478
+ disabled: e.bool
2479
+ })),
2480
+ values: e.arrayOf(e.string),
2481
+ onChange: e.func,
2482
+ id: e.string,
2483
+ className: e.string,
2484
+ emptyTitle: e.string,
2485
+ emptyDescription: e.string
2486
+ };
2487
+ //#endregion
2488
+ //#region src/components/Select.jsx
2489
+ var ft = {
2490
+ sm: "h-9 px-3 py-2 text-sm gap-1.5",
2491
+ md: "h-10 px-3.5 py-2.5 text-sm gap-2",
2492
+ lg: "h-11 px-4 py-3 text-md gap-2"
2493
+ };
2494
+ function pt() {
2495
+ return /* @__PURE__ */ n("svg", {
2496
+ xmlns: "http://www.w3.org/2000/svg",
2497
+ width: "16",
2498
+ height: "16",
2499
+ viewBox: "0 0 24 24",
2500
+ fill: "none",
2501
+ stroke: "currentColor",
2502
+ strokeWidth: "2",
2503
+ strokeLinecap: "round",
2504
+ strokeLinejoin: "round",
2505
+ "aria-hidden": "true",
2506
+ children: /* @__PURE__ */ n("path", { d: "M6 9l6 6 6-6" })
2507
+ });
2508
+ }
2509
+ function mt({ label: e, hint: i, error: c, required: l, disabled: u, size: d = "md", leadingIcon: f, helpIcon: p, placeholder: m, options: h = [], value: g, onChange: _, id: v, className: y }) {
2510
+ let [b, x] = s(!1), S = o(null), C = !!c, w = h.find((e) => e.value === g);
2511
+ a(() => {
2512
+ if (!b) return;
2513
+ let e = (e) => {
2514
+ S.current?.contains(e.target) || x(!1);
2515
+ };
2516
+ return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
2517
+ }, [b]), a(() => {
2518
+ if (!b) return;
2519
+ let e = (e) => {
2520
+ e.key === "Escape" && x(!1);
2521
+ };
2522
+ return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
2523
+ }, [b]);
2524
+ let T = (e) => {
2525
+ _?.(e.value), x(!1);
2526
+ };
2527
+ return /* @__PURE__ */ r("div", {
2528
+ className: "flex flex-col gap-1.5 w-full",
2529
+ children: [
2530
+ e && /* @__PURE__ */ r("div", {
2531
+ className: "flex items-center gap-1",
2532
+ children: [/* @__PURE__ */ r("label", {
2533
+ htmlFor: v,
2534
+ className: "text-sm font-medium text-text-secondary",
2535
+ children: [e, l && /* @__PURE__ */ n("span", {
2536
+ className: "ml-0.5 text-fg-brand-primary",
2537
+ children: "*"
2538
+ })]
2539
+ }), p && /* @__PURE__ */ n("span", {
2540
+ className: "text-fg-tertiary flex items-center",
2541
+ children: p
2542
+ })]
2543
+ }),
2544
+ /* @__PURE__ */ r("div", {
2545
+ ref: S,
2546
+ className: "relative w-full",
2547
+ children: [/* @__PURE__ */ r("button", {
2548
+ id: v,
2549
+ type: "button",
2550
+ disabled: u,
2551
+ onClick: () => !u && x((e) => !e),
2552
+ "aria-haspopup": "listbox",
2553
+ "aria-expanded": b,
2554
+ className: $("relative flex items-center w-full", "bg-bg-primary rounded-[var(--radius-control)] shadow-xs", "border transition-colors duration-150", b ? "border-2 border-border-brand" : "border-border-primary", C && !b && "border-border-error", u && "opacity-50 cursor-not-allowed", ft[d], y),
2555
+ children: [
2556
+ f && /* @__PURE__ */ n("span", {
2557
+ className: "shrink-0 size-5 flex items-center justify-center text-fg-tertiary mr-2",
2558
+ children: f
2559
+ }),
2560
+ /* @__PURE__ */ n("span", {
2561
+ className: $("flex-1 min-w-0 text-left flex items-center gap-2", !w && "text-text-placeholder"),
2562
+ children: w ? /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n("span", {
2563
+ className: "font-medium text-text-primary whitespace-nowrap",
2564
+ children: w.label
2565
+ }), w.supportingText && /* @__PURE__ */ n("span", {
2566
+ className: "text-text-tertiary whitespace-nowrap",
2567
+ children: w.supportingText
2568
+ })] }) : m
2569
+ }),
2570
+ /* @__PURE__ */ n("span", {
2571
+ className: "shrink-0 flex items-center justify-center text-fg-tertiary ml-2 pointer-events-none",
2572
+ children: /* @__PURE__ */ n(pt, {})
2573
+ })
2574
+ ]
2575
+ }), b && /* @__PURE__ */ n("div", {
2576
+ className: "absolute top-full left-0 right-0 z-10 mt-1",
2577
+ children: /* @__PURE__ */ n(Je, { children: h.map((e) => /* @__PURE__ */ n(et, {
2578
+ label: e.label,
2579
+ supportingText: e.supportingText,
2580
+ selected: e.value === g,
2581
+ disabled: e.disabled,
2582
+ onClick: () => T(e)
2583
+ }, e.value)) })
2584
+ })]
2585
+ }),
2586
+ (i || c) && /* @__PURE__ */ n("p", {
2587
+ className: $("text-sm", C ? "text-fg-error-primary" : "text-text-tertiary"),
2588
+ children: c ?? i
2589
+ })
2590
+ ]
2591
+ });
2592
+ }
2593
+ mt.propTypes = {
2594
+ label: e.string,
2595
+ hint: e.string,
2596
+ error: e.string,
2597
+ required: e.bool,
2598
+ disabled: e.bool,
2599
+ size: e.oneOf([
2600
+ "sm",
2601
+ "md",
2602
+ "lg"
2603
+ ]),
2604
+ leadingIcon: e.node,
2605
+ helpIcon: e.node,
2606
+ placeholder: e.string,
2607
+ options: e.arrayOf(e.shape({
2608
+ value: e.string.isRequired,
2609
+ label: e.string.isRequired,
2610
+ supportingText: e.string,
2611
+ disabled: e.bool
2612
+ })),
2613
+ value: e.string,
2614
+ onChange: e.func,
2615
+ id: e.string,
2616
+ className: e.string
2617
+ };
2618
+ var ht = {
2619
+ spinner: "_spinner_p4rlg_1",
2620
+ spin: "_spin_p4rlg_1"
2621
+ };
2622
+ //#endregion
2623
+ //#region src/components/Spinner.jsx
2624
+ function gt() {
2625
+ return /* @__PURE__ */ n("div", {
2626
+ className: ht.spinner,
2627
+ role: "status",
2628
+ "aria-label": "Loading"
2629
+ });
2630
+ }
2631
+ //#endregion
2632
+ export { Ue as Button, et as DropdownMenuItem, Ke as Input, Je as Menu, Ze as MenuItem, rt as Modal, dt as MultiSelect, mt as Select, gt as Spinner, tt as Tab2, $ as cx };