sunkit-ui 0.1.0-alpha.1

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.
Files changed (39) hide show
  1. package/README.md +463 -0
  2. package/dist/components/Alert/Alert.d.ts +12 -0
  3. package/dist/components/Alert/index.d.ts +2 -0
  4. package/dist/components/Button/Button.d.ts +18 -0
  5. package/dist/components/Button/index.d.ts +2 -0
  6. package/dist/components/Card/Card.d.ts +29 -0
  7. package/dist/components/Card/index.d.ts +2 -0
  8. package/dist/components/ColorPicker/ColorPicker.d.ts +15 -0
  9. package/dist/components/ColorPicker/index.d.ts +2 -0
  10. package/dist/components/DatePicker/DatePicker.d.ts +27 -0
  11. package/dist/components/DatePicker/index.d.ts +2 -0
  12. package/dist/components/Input/Input.d.ts +22 -0
  13. package/dist/components/Input/index.d.ts +2 -0
  14. package/dist/components/Progress/Progress.d.ts +14 -0
  15. package/dist/components/Progress/index.d.ts +2 -0
  16. package/dist/components/Select/Select.d.ts +35 -0
  17. package/dist/components/Select/index.d.ts +2 -0
  18. package/dist/components/Slider/Slider.d.ts +27 -0
  19. package/dist/components/Slider/index.d.ts +2 -0
  20. package/dist/components/Textarea/Textarea.d.ts +22 -0
  21. package/dist/components/Textarea/index.d.ts +2 -0
  22. package/dist/components/Theme/ThemeProvider.d.ts +15 -0
  23. package/dist/components/Theme/index.d.ts +2 -0
  24. package/dist/components/Toggle/Toggle.d.ts +23 -0
  25. package/dist/components/Toggle/index.d.ts +2 -0
  26. package/dist/hooks/useButtonSound.d.ts +2 -0
  27. package/dist/hooks/useColorPickerSound.d.ts +4 -0
  28. package/dist/hooks/useInputSound.d.ts +2 -0
  29. package/dist/hooks/usePickerSound.d.ts +5 -0
  30. package/dist/hooks/useSelectSound.d.ts +5 -0
  31. package/dist/hooks/useSliderSound.d.ts +2 -0
  32. package/dist/hooks/useToggleSound.d.ts +2 -0
  33. package/dist/index.d.ts +27 -0
  34. package/dist/lib/accent.d.ts +17 -0
  35. package/dist/lib/utils.d.ts +2 -0
  36. package/dist/sunkit.cjs +1 -0
  37. package/dist/sunkit.js +4028 -0
  38. package/dist/tokens/colors.d.ts +12 -0
  39. package/package.json +67 -0
package/dist/sunkit.js ADDED
@@ -0,0 +1,4028 @@
1
+ import e, { createContext as t, forwardRef as n, useCallback as r, useContext as i, useEffect as a, useId as o, useMemo as s, useRef as c, useState as l } from "react";
2
+ import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
3
+ //#region node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
4
+ function p(e) {
5
+ var t, n, r = "";
6
+ if (typeof e == "string" || typeof e == "number") r += e;
7
+ else if (typeof e == "object") if (Array.isArray(e)) {
8
+ var i = e.length;
9
+ for (t = 0; t < i; t++) e[t] && (n = p(e[t])) && (r && (r += " "), r += n);
10
+ } else for (n in e) e[n] && (r && (r += " "), r += n);
11
+ return r;
12
+ }
13
+ function m() {
14
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = p(e)) && (r && (r += " "), r += t);
15
+ return r;
16
+ }
17
+ //#endregion
18
+ //#region node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs
19
+ var h = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, g = m, _ = (e, t) => (n) => {
20
+ if (t?.variants == null) return g(e, n?.class, n?.className);
21
+ let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
22
+ let t = n?.[e], a = i?.[e];
23
+ if (t === null) return null;
24
+ let o = h(t) || h(a);
25
+ return r[e][o];
26
+ }), o = n && Object.entries(n).reduce((e, t) => {
27
+ let [n, r] = t;
28
+ return r === void 0 || (e[n] = r), e;
29
+ }, {});
30
+ return g(e, a, t?.compoundVariants?.reduce((e, t) => {
31
+ let { class: n, className: r, ...a } = t;
32
+ return Object.entries(a).every((e) => {
33
+ let [t, n] = e;
34
+ return Array.isArray(n) ? n.includes({
35
+ ...i,
36
+ ...o
37
+ }[t]) : {
38
+ ...i,
39
+ ...o
40
+ }[t] === n;
41
+ }) ? [
42
+ ...e,
43
+ n,
44
+ r
45
+ ] : e;
46
+ }, []), n?.class, n?.className);
47
+ }, v = (e, t) => {
48
+ let n = Array(e.length + t.length);
49
+ for (let t = 0; t < e.length; t++) n[t] = e[t];
50
+ for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
51
+ return n;
52
+ }, y = (e, t) => ({
53
+ classGroupId: e,
54
+ validator: t
55
+ }), b = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
56
+ nextPart: e,
57
+ validators: t,
58
+ classGroupId: n
59
+ }), x = "-", S = [], C = "arbitrary..", w = (e) => {
60
+ let t = D(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
61
+ return {
62
+ getClassGroupId: (e) => {
63
+ if (e.startsWith("[") && e.endsWith("]")) return E(e);
64
+ let n = e.split(x);
65
+ return T(n, +(n[0] === "" && n.length > 1), t);
66
+ },
67
+ getConflictingClassGroupIds: (e, t) => {
68
+ if (t) {
69
+ let t = r[e], i = n[e];
70
+ return t ? i ? v(i, t) : t : i || S;
71
+ }
72
+ return n[e] || S;
73
+ }
74
+ };
75
+ }, T = (e, t, n) => {
76
+ if (e.length - t === 0) return n.classGroupId;
77
+ let r = e[t], i = n.nextPart.get(r);
78
+ if (i) {
79
+ let n = T(e, t + 1, i);
80
+ if (n) return n;
81
+ }
82
+ let a = n.validators;
83
+ if (a === null) return;
84
+ let o = t === 0 ? e.join(x) : e.slice(t).join(x), s = a.length;
85
+ for (let e = 0; e < s; e++) {
86
+ let t = a[e];
87
+ if (t.validator(o)) return t.classGroupId;
88
+ }
89
+ }, E = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
90
+ let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
91
+ return r ? C + r : void 0;
92
+ })(), D = (e) => {
93
+ let { theme: t, classGroups: n } = e;
94
+ return O(n, t);
95
+ }, O = (e, t) => {
96
+ let n = b();
97
+ for (let r in e) {
98
+ let i = e[r];
99
+ k(i, n, r, t);
100
+ }
101
+ return n;
102
+ }, k = (e, t, n, r) => {
103
+ let i = e.length;
104
+ for (let a = 0; a < i; a++) {
105
+ let i = e[a];
106
+ A(i, t, n, r);
107
+ }
108
+ }, A = (e, t, n, r) => {
109
+ if (typeof e == "string") {
110
+ j(e, t, n);
111
+ return;
112
+ }
113
+ if (typeof e == "function") {
114
+ M(e, t, n, r);
115
+ return;
116
+ }
117
+ N(e, t, n, r);
118
+ }, j = (e, t, n) => {
119
+ let r = e === "" ? t : P(t, e);
120
+ r.classGroupId = n;
121
+ }, M = (e, t, n, r) => {
122
+ if (F(e)) {
123
+ k(e(r), t, n, r);
124
+ return;
125
+ }
126
+ t.validators === null && (t.validators = []), t.validators.push(y(n, e));
127
+ }, N = (e, t, n, r) => {
128
+ let i = Object.entries(e), a = i.length;
129
+ for (let e = 0; e < a; e++) {
130
+ let [a, o] = i[e];
131
+ k(o, P(t, a), n, r);
132
+ }
133
+ }, P = (e, t) => {
134
+ let n = e, r = t.split(x), i = r.length;
135
+ for (let e = 0; e < i; e++) {
136
+ let t = r[e], i = n.nextPart.get(t);
137
+ i || (i = b(), n.nextPart.set(t, i)), n = i;
138
+ }
139
+ return n;
140
+ }, F = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, I = (e) => {
141
+ if (e < 1) return {
142
+ get: () => void 0,
143
+ set: () => {}
144
+ };
145
+ let t = 0, n = Object.create(null), r = Object.create(null), i = (i, a) => {
146
+ n[i] = a, t++, t > e && (t = 0, r = n, n = Object.create(null));
147
+ };
148
+ return {
149
+ get(e) {
150
+ let t = n[e];
151
+ if (t !== void 0) return t;
152
+ if ((t = r[e]) !== void 0) return i(e, t), t;
153
+ },
154
+ set(e, t) {
155
+ e in n ? n[e] = t : i(e, t);
156
+ }
157
+ };
158
+ }, ee = "!", L = ":", R = [], z = (e, t, n, r, i) => ({
159
+ modifiers: e,
160
+ hasImportantModifier: t,
161
+ baseClassName: n,
162
+ maybePostfixModifierPosition: r,
163
+ isExternal: i
164
+ }), B = (e) => {
165
+ let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
166
+ let t = [], n = 0, r = 0, i = 0, a, o = e.length;
167
+ for (let s = 0; s < o; s++) {
168
+ let o = e[s];
169
+ if (n === 0 && r === 0) {
170
+ if (o === L) {
171
+ t.push(e.slice(i, s)), i = s + 1;
172
+ continue;
173
+ }
174
+ if (o === "/") {
175
+ a = s;
176
+ continue;
177
+ }
178
+ }
179
+ o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
180
+ }
181
+ let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
182
+ s.endsWith(ee) ? (c = s.slice(0, -1), l = !0) : s.startsWith(ee) && (c = s.slice(1), l = !0);
183
+ let u = a && a > i ? a - i : void 0;
184
+ return z(t, l, c, u);
185
+ };
186
+ if (t) {
187
+ let e = t + L, n = r;
188
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : z(R, !1, t, void 0, !0);
189
+ }
190
+ if (n) {
191
+ let e = r;
192
+ r = (t) => n({
193
+ className: t,
194
+ parseClassName: e
195
+ });
196
+ }
197
+ return r;
198
+ }, V = (e) => {
199
+ let t = /* @__PURE__ */ new Map();
200
+ return e.orderSensitiveModifiers.forEach((e, n) => {
201
+ t.set(e, 1e6 + n);
202
+ }), (e) => {
203
+ let n = [], r = [];
204
+ for (let i = 0; i < e.length; i++) {
205
+ let a = e[i], o = a[0] === "[", s = t.has(a);
206
+ o || s ? (r.length > 0 && (r.sort(), n.push(...r), r = []), n.push(a)) : r.push(a);
207
+ }
208
+ return r.length > 0 && (r.sort(), n.push(...r)), n;
209
+ };
210
+ }, H = (e) => ({
211
+ cache: I(e.cacheSize),
212
+ parseClassName: B(e),
213
+ sortModifiers: V(e),
214
+ ...w(e)
215
+ }), te = /\s+/, U = (e, t) => {
216
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a } = t, o = [], s = e.trim().split(te), c = "";
217
+ for (let e = s.length - 1; e >= 0; --e) {
218
+ let t = s[e], { isExternal: l, modifiers: u, hasImportantModifier: d, baseClassName: f, maybePostfixModifierPosition: p } = n(t);
219
+ if (l) {
220
+ c = t + (c.length > 0 ? " " + c : c);
221
+ continue;
222
+ }
223
+ let m = !!p, h = r(m ? f.substring(0, p) : f);
224
+ if (!h) {
225
+ if (!m) {
226
+ c = t + (c.length > 0 ? " " + c : c);
227
+ continue;
228
+ }
229
+ if (h = r(f), !h) {
230
+ c = t + (c.length > 0 ? " " + c : c);
231
+ continue;
232
+ }
233
+ m = !1;
234
+ }
235
+ let g = u.length === 0 ? "" : u.length === 1 ? u[0] : a(u).join(":"), _ = d ? g + ee : g, v = _ + h;
236
+ if (o.indexOf(v) > -1) continue;
237
+ o.push(v);
238
+ let y = i(h, m);
239
+ for (let e = 0; e < y.length; ++e) {
240
+ let t = y[e];
241
+ o.push(_ + t);
242
+ }
243
+ c = t + (c.length > 0 ? " " + c : c);
244
+ }
245
+ return c;
246
+ }, W = (...e) => {
247
+ let t = 0, n, r, i = "";
248
+ for (; t < e.length;) (n = e[t++]) && (r = G(n)) && (i && (i += " "), i += r);
249
+ return i;
250
+ }, G = (e) => {
251
+ if (typeof e == "string") return e;
252
+ let t, n = "";
253
+ for (let r = 0; r < e.length; r++) e[r] && (t = G(e[r])) && (n && (n += " "), n += t);
254
+ return n;
255
+ }, K = (e, ...t) => {
256
+ let n, r, i, a, o = (o) => (n = H(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
257
+ let t = r(e);
258
+ if (t) return t;
259
+ let a = U(e, n);
260
+ return i(e, a), a;
261
+ };
262
+ return a = o, (...e) => a(W(...e));
263
+ }, q = [], J = (e) => {
264
+ let t = (t) => t[e] || q;
265
+ return t.isThemeGetter = !0, t;
266
+ }, ne = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, re = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ie = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, ae = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, oe = /\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$/, se = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, ce = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, le = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ue = (e) => ie.test(e), Y = (e) => !!e && !Number.isNaN(Number(e)), X = (e) => !!e && Number.isInteger(Number(e)), de = (e) => e.endsWith("%") && Y(e.slice(0, -1)), fe = (e) => ae.test(e), pe = () => !0, me = (e) => oe.test(e) && !se.test(e), he = () => !1, ge = (e) => ce.test(e), _e = (e) => le.test(e), ve = (e) => !Z(e) && !Q(e), ye = (e) => Pe(e, Re, he), Z = (e) => ne.test(e), be = (e) => Pe(e, ze, me), xe = (e) => Pe(e, Be, Y), Se = (e) => Pe(e, He, pe), Ce = (e) => Pe(e, Ve, he), we = (e) => Pe(e, Ie, he), Te = (e) => Pe(e, Le, _e), Ee = (e) => Pe(e, Ue, ge), Q = (e) => re.test(e), De = (e) => Fe(e, ze), Oe = (e) => Fe(e, Ve), ke = (e) => Fe(e, Ie), Ae = (e) => Fe(e, Re), je = (e) => Fe(e, Le), Me = (e) => Fe(e, Ue, !0), Ne = (e) => Fe(e, He, !0), Pe = (e, t, n) => {
267
+ let r = ne.exec(e);
268
+ return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
269
+ }, Fe = (e, t, n = !1) => {
270
+ let r = re.exec(e);
271
+ return r ? r[1] ? t(r[1]) : n : !1;
272
+ }, Ie = (e) => e === "position" || e === "percentage", Le = (e) => e === "image" || e === "url", Re = (e) => e === "length" || e === "size" || e === "bg-size", ze = (e) => e === "length", Be = (e) => e === "number", Ve = (e) => e === "family-name", He = (e) => e === "number" || e === "weight", Ue = (e) => e === "shadow", We = /* @__PURE__ */ K(() => {
273
+ let e = J("color"), t = J("font"), n = J("text"), r = J("font-weight"), i = J("tracking"), a = J("leading"), o = J("breakpoint"), s = J("container"), c = J("spacing"), l = J("radius"), u = J("shadow"), d = J("inset-shadow"), f = J("text-shadow"), p = J("drop-shadow"), m = J("blur"), h = J("perspective"), g = J("aspect"), _ = J("ease"), v = J("animate"), y = () => [
274
+ "auto",
275
+ "avoid",
276
+ "all",
277
+ "avoid-page",
278
+ "page",
279
+ "left",
280
+ "right",
281
+ "column"
282
+ ], b = () => [
283
+ "center",
284
+ "top",
285
+ "bottom",
286
+ "left",
287
+ "right",
288
+ "top-left",
289
+ "left-top",
290
+ "top-right",
291
+ "right-top",
292
+ "bottom-right",
293
+ "right-bottom",
294
+ "bottom-left",
295
+ "left-bottom"
296
+ ], x = () => [
297
+ ...b(),
298
+ Q,
299
+ Z
300
+ ], S = () => [
301
+ "auto",
302
+ "hidden",
303
+ "clip",
304
+ "visible",
305
+ "scroll"
306
+ ], C = () => [
307
+ "auto",
308
+ "contain",
309
+ "none"
310
+ ], w = () => [
311
+ Q,
312
+ Z,
313
+ c
314
+ ], T = () => [
315
+ ue,
316
+ "full",
317
+ "auto",
318
+ ...w()
319
+ ], E = () => [
320
+ X,
321
+ "none",
322
+ "subgrid",
323
+ Q,
324
+ Z
325
+ ], D = () => [
326
+ "auto",
327
+ { span: [
328
+ "full",
329
+ X,
330
+ Q,
331
+ Z
332
+ ] },
333
+ X,
334
+ Q,
335
+ Z
336
+ ], O = () => [
337
+ X,
338
+ "auto",
339
+ Q,
340
+ Z
341
+ ], k = () => [
342
+ "auto",
343
+ "min",
344
+ "max",
345
+ "fr",
346
+ Q,
347
+ Z
348
+ ], A = () => [
349
+ "start",
350
+ "end",
351
+ "center",
352
+ "between",
353
+ "around",
354
+ "evenly",
355
+ "stretch",
356
+ "baseline",
357
+ "center-safe",
358
+ "end-safe"
359
+ ], j = () => [
360
+ "start",
361
+ "end",
362
+ "center",
363
+ "stretch",
364
+ "center-safe",
365
+ "end-safe"
366
+ ], M = () => ["auto", ...w()], N = () => [
367
+ ue,
368
+ "auto",
369
+ "full",
370
+ "dvw",
371
+ "dvh",
372
+ "lvw",
373
+ "lvh",
374
+ "svw",
375
+ "svh",
376
+ "min",
377
+ "max",
378
+ "fit",
379
+ ...w()
380
+ ], P = () => [
381
+ ue,
382
+ "screen",
383
+ "full",
384
+ "dvw",
385
+ "lvw",
386
+ "svw",
387
+ "min",
388
+ "max",
389
+ "fit",
390
+ ...w()
391
+ ], F = () => [
392
+ ue,
393
+ "screen",
394
+ "full",
395
+ "lh",
396
+ "dvh",
397
+ "lvh",
398
+ "svh",
399
+ "min",
400
+ "max",
401
+ "fit",
402
+ ...w()
403
+ ], I = () => [
404
+ e,
405
+ Q,
406
+ Z
407
+ ], ee = () => [
408
+ ...b(),
409
+ ke,
410
+ we,
411
+ { position: [Q, Z] }
412
+ ], L = () => ["no-repeat", { repeat: [
413
+ "",
414
+ "x",
415
+ "y",
416
+ "space",
417
+ "round"
418
+ ] }], R = () => [
419
+ "auto",
420
+ "cover",
421
+ "contain",
422
+ Ae,
423
+ ye,
424
+ { size: [Q, Z] }
425
+ ], z = () => [
426
+ de,
427
+ De,
428
+ be
429
+ ], B = () => [
430
+ "",
431
+ "none",
432
+ "full",
433
+ l,
434
+ Q,
435
+ Z
436
+ ], V = () => [
437
+ "",
438
+ Y,
439
+ De,
440
+ be
441
+ ], H = () => [
442
+ "solid",
443
+ "dashed",
444
+ "dotted",
445
+ "double"
446
+ ], te = () => [
447
+ "normal",
448
+ "multiply",
449
+ "screen",
450
+ "overlay",
451
+ "darken",
452
+ "lighten",
453
+ "color-dodge",
454
+ "color-burn",
455
+ "hard-light",
456
+ "soft-light",
457
+ "difference",
458
+ "exclusion",
459
+ "hue",
460
+ "saturation",
461
+ "color",
462
+ "luminosity"
463
+ ], U = () => [
464
+ Y,
465
+ de,
466
+ ke,
467
+ we
468
+ ], W = () => [
469
+ "",
470
+ "none",
471
+ m,
472
+ Q,
473
+ Z
474
+ ], G = () => [
475
+ "none",
476
+ Y,
477
+ Q,
478
+ Z
479
+ ], K = () => [
480
+ "none",
481
+ Y,
482
+ Q,
483
+ Z
484
+ ], q = () => [
485
+ Y,
486
+ Q,
487
+ Z
488
+ ], ne = () => [
489
+ ue,
490
+ "full",
491
+ ...w()
492
+ ];
493
+ return {
494
+ cacheSize: 500,
495
+ theme: {
496
+ animate: [
497
+ "spin",
498
+ "ping",
499
+ "pulse",
500
+ "bounce"
501
+ ],
502
+ aspect: ["video"],
503
+ blur: [fe],
504
+ breakpoint: [fe],
505
+ color: [pe],
506
+ container: [fe],
507
+ "drop-shadow": [fe],
508
+ ease: [
509
+ "in",
510
+ "out",
511
+ "in-out"
512
+ ],
513
+ font: [ve],
514
+ "font-weight": [
515
+ "thin",
516
+ "extralight",
517
+ "light",
518
+ "normal",
519
+ "medium",
520
+ "semibold",
521
+ "bold",
522
+ "extrabold",
523
+ "black"
524
+ ],
525
+ "inset-shadow": [fe],
526
+ leading: [
527
+ "none",
528
+ "tight",
529
+ "snug",
530
+ "normal",
531
+ "relaxed",
532
+ "loose"
533
+ ],
534
+ perspective: [
535
+ "dramatic",
536
+ "near",
537
+ "normal",
538
+ "midrange",
539
+ "distant",
540
+ "none"
541
+ ],
542
+ radius: [fe],
543
+ shadow: [fe],
544
+ spacing: ["px", Y],
545
+ text: [fe],
546
+ "text-shadow": [fe],
547
+ tracking: [
548
+ "tighter",
549
+ "tight",
550
+ "normal",
551
+ "wide",
552
+ "wider",
553
+ "widest"
554
+ ]
555
+ },
556
+ classGroups: {
557
+ aspect: [{ aspect: [
558
+ "auto",
559
+ "square",
560
+ ue,
561
+ Z,
562
+ Q,
563
+ g
564
+ ] }],
565
+ container: ["container"],
566
+ columns: [{ columns: [
567
+ Y,
568
+ Z,
569
+ Q,
570
+ s
571
+ ] }],
572
+ "break-after": [{ "break-after": y() }],
573
+ "break-before": [{ "break-before": y() }],
574
+ "break-inside": [{ "break-inside": [
575
+ "auto",
576
+ "avoid",
577
+ "avoid-page",
578
+ "avoid-column"
579
+ ] }],
580
+ "box-decoration": [{ "box-decoration": ["slice", "clone"] }],
581
+ box: [{ box: ["border", "content"] }],
582
+ display: [
583
+ "block",
584
+ "inline-block",
585
+ "inline",
586
+ "flex",
587
+ "inline-flex",
588
+ "table",
589
+ "inline-table",
590
+ "table-caption",
591
+ "table-cell",
592
+ "table-column",
593
+ "table-column-group",
594
+ "table-footer-group",
595
+ "table-header-group",
596
+ "table-row-group",
597
+ "table-row",
598
+ "flow-root",
599
+ "grid",
600
+ "inline-grid",
601
+ "contents",
602
+ "list-item",
603
+ "hidden"
604
+ ],
605
+ sr: ["sr-only", "not-sr-only"],
606
+ float: [{ float: [
607
+ "right",
608
+ "left",
609
+ "none",
610
+ "start",
611
+ "end"
612
+ ] }],
613
+ clear: [{ clear: [
614
+ "left",
615
+ "right",
616
+ "both",
617
+ "none",
618
+ "start",
619
+ "end"
620
+ ] }],
621
+ isolation: ["isolate", "isolation-auto"],
622
+ "object-fit": [{ object: [
623
+ "contain",
624
+ "cover",
625
+ "fill",
626
+ "none",
627
+ "scale-down"
628
+ ] }],
629
+ "object-position": [{ object: x() }],
630
+ overflow: [{ overflow: S() }],
631
+ "overflow-x": [{ "overflow-x": S() }],
632
+ "overflow-y": [{ "overflow-y": S() }],
633
+ overscroll: [{ overscroll: C() }],
634
+ "overscroll-x": [{ "overscroll-x": C() }],
635
+ "overscroll-y": [{ "overscroll-y": C() }],
636
+ position: [
637
+ "static",
638
+ "fixed",
639
+ "absolute",
640
+ "relative",
641
+ "sticky"
642
+ ],
643
+ inset: [{ inset: T() }],
644
+ "inset-x": [{ "inset-x": T() }],
645
+ "inset-y": [{ "inset-y": T() }],
646
+ start: [{
647
+ "inset-s": T(),
648
+ start: T()
649
+ }],
650
+ end: [{
651
+ "inset-e": T(),
652
+ end: T()
653
+ }],
654
+ "inset-bs": [{ "inset-bs": T() }],
655
+ "inset-be": [{ "inset-be": T() }],
656
+ top: [{ top: T() }],
657
+ right: [{ right: T() }],
658
+ bottom: [{ bottom: T() }],
659
+ left: [{ left: T() }],
660
+ visibility: [
661
+ "visible",
662
+ "invisible",
663
+ "collapse"
664
+ ],
665
+ z: [{ z: [
666
+ X,
667
+ "auto",
668
+ Q,
669
+ Z
670
+ ] }],
671
+ basis: [{ basis: [
672
+ ue,
673
+ "full",
674
+ "auto",
675
+ s,
676
+ ...w()
677
+ ] }],
678
+ "flex-direction": [{ flex: [
679
+ "row",
680
+ "row-reverse",
681
+ "col",
682
+ "col-reverse"
683
+ ] }],
684
+ "flex-wrap": [{ flex: [
685
+ "nowrap",
686
+ "wrap",
687
+ "wrap-reverse"
688
+ ] }],
689
+ flex: [{ flex: [
690
+ Y,
691
+ ue,
692
+ "auto",
693
+ "initial",
694
+ "none",
695
+ Z
696
+ ] }],
697
+ grow: [{ grow: [
698
+ "",
699
+ Y,
700
+ Q,
701
+ Z
702
+ ] }],
703
+ shrink: [{ shrink: [
704
+ "",
705
+ Y,
706
+ Q,
707
+ Z
708
+ ] }],
709
+ order: [{ order: [
710
+ X,
711
+ "first",
712
+ "last",
713
+ "none",
714
+ Q,
715
+ Z
716
+ ] }],
717
+ "grid-cols": [{ "grid-cols": E() }],
718
+ "col-start-end": [{ col: D() }],
719
+ "col-start": [{ "col-start": O() }],
720
+ "col-end": [{ "col-end": O() }],
721
+ "grid-rows": [{ "grid-rows": E() }],
722
+ "row-start-end": [{ row: D() }],
723
+ "row-start": [{ "row-start": O() }],
724
+ "row-end": [{ "row-end": O() }],
725
+ "grid-flow": [{ "grid-flow": [
726
+ "row",
727
+ "col",
728
+ "dense",
729
+ "row-dense",
730
+ "col-dense"
731
+ ] }],
732
+ "auto-cols": [{ "auto-cols": k() }],
733
+ "auto-rows": [{ "auto-rows": k() }],
734
+ gap: [{ gap: w() }],
735
+ "gap-x": [{ "gap-x": w() }],
736
+ "gap-y": [{ "gap-y": w() }],
737
+ "justify-content": [{ justify: [...A(), "normal"] }],
738
+ "justify-items": [{ "justify-items": [...j(), "normal"] }],
739
+ "justify-self": [{ "justify-self": ["auto", ...j()] }],
740
+ "align-content": [{ content: ["normal", ...A()] }],
741
+ "align-items": [{ items: [...j(), { baseline: ["", "last"] }] }],
742
+ "align-self": [{ self: [
743
+ "auto",
744
+ ...j(),
745
+ { baseline: ["", "last"] }
746
+ ] }],
747
+ "place-content": [{ "place-content": A() }],
748
+ "place-items": [{ "place-items": [...j(), "baseline"] }],
749
+ "place-self": [{ "place-self": ["auto", ...j()] }],
750
+ p: [{ p: w() }],
751
+ px: [{ px: w() }],
752
+ py: [{ py: w() }],
753
+ ps: [{ ps: w() }],
754
+ pe: [{ pe: w() }],
755
+ pbs: [{ pbs: w() }],
756
+ pbe: [{ pbe: w() }],
757
+ pt: [{ pt: w() }],
758
+ pr: [{ pr: w() }],
759
+ pb: [{ pb: w() }],
760
+ pl: [{ pl: w() }],
761
+ m: [{ m: M() }],
762
+ mx: [{ mx: M() }],
763
+ my: [{ my: M() }],
764
+ ms: [{ ms: M() }],
765
+ me: [{ me: M() }],
766
+ mbs: [{ mbs: M() }],
767
+ mbe: [{ mbe: M() }],
768
+ mt: [{ mt: M() }],
769
+ mr: [{ mr: M() }],
770
+ mb: [{ mb: M() }],
771
+ ml: [{ ml: M() }],
772
+ "space-x": [{ "space-x": w() }],
773
+ "space-x-reverse": ["space-x-reverse"],
774
+ "space-y": [{ "space-y": w() }],
775
+ "space-y-reverse": ["space-y-reverse"],
776
+ size: [{ size: N() }],
777
+ "inline-size": [{ inline: ["auto", ...P()] }],
778
+ "min-inline-size": [{ "min-inline": ["auto", ...P()] }],
779
+ "max-inline-size": [{ "max-inline": ["none", ...P()] }],
780
+ "block-size": [{ block: ["auto", ...F()] }],
781
+ "min-block-size": [{ "min-block": ["auto", ...F()] }],
782
+ "max-block-size": [{ "max-block": ["none", ...F()] }],
783
+ w: [{ w: [
784
+ s,
785
+ "screen",
786
+ ...N()
787
+ ] }],
788
+ "min-w": [{ "min-w": [
789
+ s,
790
+ "screen",
791
+ "none",
792
+ ...N()
793
+ ] }],
794
+ "max-w": [{ "max-w": [
795
+ s,
796
+ "screen",
797
+ "none",
798
+ "prose",
799
+ { screen: [o] },
800
+ ...N()
801
+ ] }],
802
+ h: [{ h: [
803
+ "screen",
804
+ "lh",
805
+ ...N()
806
+ ] }],
807
+ "min-h": [{ "min-h": [
808
+ "screen",
809
+ "lh",
810
+ "none",
811
+ ...N()
812
+ ] }],
813
+ "max-h": [{ "max-h": [
814
+ "screen",
815
+ "lh",
816
+ ...N()
817
+ ] }],
818
+ "font-size": [{ text: [
819
+ "base",
820
+ n,
821
+ De,
822
+ be
823
+ ] }],
824
+ "font-smoothing": ["antialiased", "subpixel-antialiased"],
825
+ "font-style": ["italic", "not-italic"],
826
+ "font-weight": [{ font: [
827
+ r,
828
+ Ne,
829
+ Se
830
+ ] }],
831
+ "font-stretch": [{ "font-stretch": [
832
+ "ultra-condensed",
833
+ "extra-condensed",
834
+ "condensed",
835
+ "semi-condensed",
836
+ "normal",
837
+ "semi-expanded",
838
+ "expanded",
839
+ "extra-expanded",
840
+ "ultra-expanded",
841
+ de,
842
+ Z
843
+ ] }],
844
+ "font-family": [{ font: [
845
+ Oe,
846
+ Ce,
847
+ t
848
+ ] }],
849
+ "font-features": [{ "font-features": [Z] }],
850
+ "fvn-normal": ["normal-nums"],
851
+ "fvn-ordinal": ["ordinal"],
852
+ "fvn-slashed-zero": ["slashed-zero"],
853
+ "fvn-figure": ["lining-nums", "oldstyle-nums"],
854
+ "fvn-spacing": ["proportional-nums", "tabular-nums"],
855
+ "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
856
+ tracking: [{ tracking: [
857
+ i,
858
+ Q,
859
+ Z
860
+ ] }],
861
+ "line-clamp": [{ "line-clamp": [
862
+ Y,
863
+ "none",
864
+ Q,
865
+ xe
866
+ ] }],
867
+ leading: [{ leading: [a, ...w()] }],
868
+ "list-image": [{ "list-image": [
869
+ "none",
870
+ Q,
871
+ Z
872
+ ] }],
873
+ "list-style-position": [{ list: ["inside", "outside"] }],
874
+ "list-style-type": [{ list: [
875
+ "disc",
876
+ "decimal",
877
+ "none",
878
+ Q,
879
+ Z
880
+ ] }],
881
+ "text-alignment": [{ text: [
882
+ "left",
883
+ "center",
884
+ "right",
885
+ "justify",
886
+ "start",
887
+ "end"
888
+ ] }],
889
+ "placeholder-color": [{ placeholder: I() }],
890
+ "text-color": [{ text: I() }],
891
+ "text-decoration": [
892
+ "underline",
893
+ "overline",
894
+ "line-through",
895
+ "no-underline"
896
+ ],
897
+ "text-decoration-style": [{ decoration: [...H(), "wavy"] }],
898
+ "text-decoration-thickness": [{ decoration: [
899
+ Y,
900
+ "from-font",
901
+ "auto",
902
+ Q,
903
+ be
904
+ ] }],
905
+ "text-decoration-color": [{ decoration: I() }],
906
+ "underline-offset": [{ "underline-offset": [
907
+ Y,
908
+ "auto",
909
+ Q,
910
+ Z
911
+ ] }],
912
+ "text-transform": [
913
+ "uppercase",
914
+ "lowercase",
915
+ "capitalize",
916
+ "normal-case"
917
+ ],
918
+ "text-overflow": [
919
+ "truncate",
920
+ "text-ellipsis",
921
+ "text-clip"
922
+ ],
923
+ "text-wrap": [{ text: [
924
+ "wrap",
925
+ "nowrap",
926
+ "balance",
927
+ "pretty"
928
+ ] }],
929
+ indent: [{ indent: w() }],
930
+ "vertical-align": [{ align: [
931
+ "baseline",
932
+ "top",
933
+ "middle",
934
+ "bottom",
935
+ "text-top",
936
+ "text-bottom",
937
+ "sub",
938
+ "super",
939
+ Q,
940
+ Z
941
+ ] }],
942
+ whitespace: [{ whitespace: [
943
+ "normal",
944
+ "nowrap",
945
+ "pre",
946
+ "pre-line",
947
+ "pre-wrap",
948
+ "break-spaces"
949
+ ] }],
950
+ break: [{ break: [
951
+ "normal",
952
+ "words",
953
+ "all",
954
+ "keep"
955
+ ] }],
956
+ wrap: [{ wrap: [
957
+ "break-word",
958
+ "anywhere",
959
+ "normal"
960
+ ] }],
961
+ hyphens: [{ hyphens: [
962
+ "none",
963
+ "manual",
964
+ "auto"
965
+ ] }],
966
+ content: [{ content: [
967
+ "none",
968
+ Q,
969
+ Z
970
+ ] }],
971
+ "bg-attachment": [{ bg: [
972
+ "fixed",
973
+ "local",
974
+ "scroll"
975
+ ] }],
976
+ "bg-clip": [{ "bg-clip": [
977
+ "border",
978
+ "padding",
979
+ "content",
980
+ "text"
981
+ ] }],
982
+ "bg-origin": [{ "bg-origin": [
983
+ "border",
984
+ "padding",
985
+ "content"
986
+ ] }],
987
+ "bg-position": [{ bg: ee() }],
988
+ "bg-repeat": [{ bg: L() }],
989
+ "bg-size": [{ bg: R() }],
990
+ "bg-image": [{ bg: [
991
+ "none",
992
+ {
993
+ linear: [
994
+ { to: [
995
+ "t",
996
+ "tr",
997
+ "r",
998
+ "br",
999
+ "b",
1000
+ "bl",
1001
+ "l",
1002
+ "tl"
1003
+ ] },
1004
+ X,
1005
+ Q,
1006
+ Z
1007
+ ],
1008
+ radial: [
1009
+ "",
1010
+ Q,
1011
+ Z
1012
+ ],
1013
+ conic: [
1014
+ X,
1015
+ Q,
1016
+ Z
1017
+ ]
1018
+ },
1019
+ je,
1020
+ Te
1021
+ ] }],
1022
+ "bg-color": [{ bg: I() }],
1023
+ "gradient-from-pos": [{ from: z() }],
1024
+ "gradient-via-pos": [{ via: z() }],
1025
+ "gradient-to-pos": [{ to: z() }],
1026
+ "gradient-from": [{ from: I() }],
1027
+ "gradient-via": [{ via: I() }],
1028
+ "gradient-to": [{ to: I() }],
1029
+ rounded: [{ rounded: B() }],
1030
+ "rounded-s": [{ "rounded-s": B() }],
1031
+ "rounded-e": [{ "rounded-e": B() }],
1032
+ "rounded-t": [{ "rounded-t": B() }],
1033
+ "rounded-r": [{ "rounded-r": B() }],
1034
+ "rounded-b": [{ "rounded-b": B() }],
1035
+ "rounded-l": [{ "rounded-l": B() }],
1036
+ "rounded-ss": [{ "rounded-ss": B() }],
1037
+ "rounded-se": [{ "rounded-se": B() }],
1038
+ "rounded-ee": [{ "rounded-ee": B() }],
1039
+ "rounded-es": [{ "rounded-es": B() }],
1040
+ "rounded-tl": [{ "rounded-tl": B() }],
1041
+ "rounded-tr": [{ "rounded-tr": B() }],
1042
+ "rounded-br": [{ "rounded-br": B() }],
1043
+ "rounded-bl": [{ "rounded-bl": B() }],
1044
+ "border-w": [{ border: V() }],
1045
+ "border-w-x": [{ "border-x": V() }],
1046
+ "border-w-y": [{ "border-y": V() }],
1047
+ "border-w-s": [{ "border-s": V() }],
1048
+ "border-w-e": [{ "border-e": V() }],
1049
+ "border-w-bs": [{ "border-bs": V() }],
1050
+ "border-w-be": [{ "border-be": V() }],
1051
+ "border-w-t": [{ "border-t": V() }],
1052
+ "border-w-r": [{ "border-r": V() }],
1053
+ "border-w-b": [{ "border-b": V() }],
1054
+ "border-w-l": [{ "border-l": V() }],
1055
+ "divide-x": [{ "divide-x": V() }],
1056
+ "divide-x-reverse": ["divide-x-reverse"],
1057
+ "divide-y": [{ "divide-y": V() }],
1058
+ "divide-y-reverse": ["divide-y-reverse"],
1059
+ "border-style": [{ border: [
1060
+ ...H(),
1061
+ "hidden",
1062
+ "none"
1063
+ ] }],
1064
+ "divide-style": [{ divide: [
1065
+ ...H(),
1066
+ "hidden",
1067
+ "none"
1068
+ ] }],
1069
+ "border-color": [{ border: I() }],
1070
+ "border-color-x": [{ "border-x": I() }],
1071
+ "border-color-y": [{ "border-y": I() }],
1072
+ "border-color-s": [{ "border-s": I() }],
1073
+ "border-color-e": [{ "border-e": I() }],
1074
+ "border-color-bs": [{ "border-bs": I() }],
1075
+ "border-color-be": [{ "border-be": I() }],
1076
+ "border-color-t": [{ "border-t": I() }],
1077
+ "border-color-r": [{ "border-r": I() }],
1078
+ "border-color-b": [{ "border-b": I() }],
1079
+ "border-color-l": [{ "border-l": I() }],
1080
+ "divide-color": [{ divide: I() }],
1081
+ "outline-style": [{ outline: [
1082
+ ...H(),
1083
+ "none",
1084
+ "hidden"
1085
+ ] }],
1086
+ "outline-offset": [{ "outline-offset": [
1087
+ Y,
1088
+ Q,
1089
+ Z
1090
+ ] }],
1091
+ "outline-w": [{ outline: [
1092
+ "",
1093
+ Y,
1094
+ De,
1095
+ be
1096
+ ] }],
1097
+ "outline-color": [{ outline: I() }],
1098
+ shadow: [{ shadow: [
1099
+ "",
1100
+ "none",
1101
+ u,
1102
+ Me,
1103
+ Ee
1104
+ ] }],
1105
+ "shadow-color": [{ shadow: I() }],
1106
+ "inset-shadow": [{ "inset-shadow": [
1107
+ "none",
1108
+ d,
1109
+ Me,
1110
+ Ee
1111
+ ] }],
1112
+ "inset-shadow-color": [{ "inset-shadow": I() }],
1113
+ "ring-w": [{ ring: V() }],
1114
+ "ring-w-inset": ["ring-inset"],
1115
+ "ring-color": [{ ring: I() }],
1116
+ "ring-offset-w": [{ "ring-offset": [Y, be] }],
1117
+ "ring-offset-color": [{ "ring-offset": I() }],
1118
+ "inset-ring-w": [{ "inset-ring": V() }],
1119
+ "inset-ring-color": [{ "inset-ring": I() }],
1120
+ "text-shadow": [{ "text-shadow": [
1121
+ "none",
1122
+ f,
1123
+ Me,
1124
+ Ee
1125
+ ] }],
1126
+ "text-shadow-color": [{ "text-shadow": I() }],
1127
+ opacity: [{ opacity: [
1128
+ Y,
1129
+ Q,
1130
+ Z
1131
+ ] }],
1132
+ "mix-blend": [{ "mix-blend": [
1133
+ ...te(),
1134
+ "plus-darker",
1135
+ "plus-lighter"
1136
+ ] }],
1137
+ "bg-blend": [{ "bg-blend": te() }],
1138
+ "mask-clip": [{ "mask-clip": [
1139
+ "border",
1140
+ "padding",
1141
+ "content",
1142
+ "fill",
1143
+ "stroke",
1144
+ "view"
1145
+ ] }, "mask-no-clip"],
1146
+ "mask-composite": [{ mask: [
1147
+ "add",
1148
+ "subtract",
1149
+ "intersect",
1150
+ "exclude"
1151
+ ] }],
1152
+ "mask-image-linear-pos": [{ "mask-linear": [Y] }],
1153
+ "mask-image-linear-from-pos": [{ "mask-linear-from": U() }],
1154
+ "mask-image-linear-to-pos": [{ "mask-linear-to": U() }],
1155
+ "mask-image-linear-from-color": [{ "mask-linear-from": I() }],
1156
+ "mask-image-linear-to-color": [{ "mask-linear-to": I() }],
1157
+ "mask-image-t-from-pos": [{ "mask-t-from": U() }],
1158
+ "mask-image-t-to-pos": [{ "mask-t-to": U() }],
1159
+ "mask-image-t-from-color": [{ "mask-t-from": I() }],
1160
+ "mask-image-t-to-color": [{ "mask-t-to": I() }],
1161
+ "mask-image-r-from-pos": [{ "mask-r-from": U() }],
1162
+ "mask-image-r-to-pos": [{ "mask-r-to": U() }],
1163
+ "mask-image-r-from-color": [{ "mask-r-from": I() }],
1164
+ "mask-image-r-to-color": [{ "mask-r-to": I() }],
1165
+ "mask-image-b-from-pos": [{ "mask-b-from": U() }],
1166
+ "mask-image-b-to-pos": [{ "mask-b-to": U() }],
1167
+ "mask-image-b-from-color": [{ "mask-b-from": I() }],
1168
+ "mask-image-b-to-color": [{ "mask-b-to": I() }],
1169
+ "mask-image-l-from-pos": [{ "mask-l-from": U() }],
1170
+ "mask-image-l-to-pos": [{ "mask-l-to": U() }],
1171
+ "mask-image-l-from-color": [{ "mask-l-from": I() }],
1172
+ "mask-image-l-to-color": [{ "mask-l-to": I() }],
1173
+ "mask-image-x-from-pos": [{ "mask-x-from": U() }],
1174
+ "mask-image-x-to-pos": [{ "mask-x-to": U() }],
1175
+ "mask-image-x-from-color": [{ "mask-x-from": I() }],
1176
+ "mask-image-x-to-color": [{ "mask-x-to": I() }],
1177
+ "mask-image-y-from-pos": [{ "mask-y-from": U() }],
1178
+ "mask-image-y-to-pos": [{ "mask-y-to": U() }],
1179
+ "mask-image-y-from-color": [{ "mask-y-from": I() }],
1180
+ "mask-image-y-to-color": [{ "mask-y-to": I() }],
1181
+ "mask-image-radial": [{ "mask-radial": [Q, Z] }],
1182
+ "mask-image-radial-from-pos": [{ "mask-radial-from": U() }],
1183
+ "mask-image-radial-to-pos": [{ "mask-radial-to": U() }],
1184
+ "mask-image-radial-from-color": [{ "mask-radial-from": I() }],
1185
+ "mask-image-radial-to-color": [{ "mask-radial-to": I() }],
1186
+ "mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
1187
+ "mask-image-radial-size": [{ "mask-radial": [{
1188
+ closest: ["side", "corner"],
1189
+ farthest: ["side", "corner"]
1190
+ }] }],
1191
+ "mask-image-radial-pos": [{ "mask-radial-at": b() }],
1192
+ "mask-image-conic-pos": [{ "mask-conic": [Y] }],
1193
+ "mask-image-conic-from-pos": [{ "mask-conic-from": U() }],
1194
+ "mask-image-conic-to-pos": [{ "mask-conic-to": U() }],
1195
+ "mask-image-conic-from-color": [{ "mask-conic-from": I() }],
1196
+ "mask-image-conic-to-color": [{ "mask-conic-to": I() }],
1197
+ "mask-mode": [{ mask: [
1198
+ "alpha",
1199
+ "luminance",
1200
+ "match"
1201
+ ] }],
1202
+ "mask-origin": [{ "mask-origin": [
1203
+ "border",
1204
+ "padding",
1205
+ "content",
1206
+ "fill",
1207
+ "stroke",
1208
+ "view"
1209
+ ] }],
1210
+ "mask-position": [{ mask: ee() }],
1211
+ "mask-repeat": [{ mask: L() }],
1212
+ "mask-size": [{ mask: R() }],
1213
+ "mask-type": [{ "mask-type": ["alpha", "luminance"] }],
1214
+ "mask-image": [{ mask: [
1215
+ "none",
1216
+ Q,
1217
+ Z
1218
+ ] }],
1219
+ filter: [{ filter: [
1220
+ "",
1221
+ "none",
1222
+ Q,
1223
+ Z
1224
+ ] }],
1225
+ blur: [{ blur: W() }],
1226
+ brightness: [{ brightness: [
1227
+ Y,
1228
+ Q,
1229
+ Z
1230
+ ] }],
1231
+ contrast: [{ contrast: [
1232
+ Y,
1233
+ Q,
1234
+ Z
1235
+ ] }],
1236
+ "drop-shadow": [{ "drop-shadow": [
1237
+ "",
1238
+ "none",
1239
+ p,
1240
+ Me,
1241
+ Ee
1242
+ ] }],
1243
+ "drop-shadow-color": [{ "drop-shadow": I() }],
1244
+ grayscale: [{ grayscale: [
1245
+ "",
1246
+ Y,
1247
+ Q,
1248
+ Z
1249
+ ] }],
1250
+ "hue-rotate": [{ "hue-rotate": [
1251
+ Y,
1252
+ Q,
1253
+ Z
1254
+ ] }],
1255
+ invert: [{ invert: [
1256
+ "",
1257
+ Y,
1258
+ Q,
1259
+ Z
1260
+ ] }],
1261
+ saturate: [{ saturate: [
1262
+ Y,
1263
+ Q,
1264
+ Z
1265
+ ] }],
1266
+ sepia: [{ sepia: [
1267
+ "",
1268
+ Y,
1269
+ Q,
1270
+ Z
1271
+ ] }],
1272
+ "backdrop-filter": [{ "backdrop-filter": [
1273
+ "",
1274
+ "none",
1275
+ Q,
1276
+ Z
1277
+ ] }],
1278
+ "backdrop-blur": [{ "backdrop-blur": W() }],
1279
+ "backdrop-brightness": [{ "backdrop-brightness": [
1280
+ Y,
1281
+ Q,
1282
+ Z
1283
+ ] }],
1284
+ "backdrop-contrast": [{ "backdrop-contrast": [
1285
+ Y,
1286
+ Q,
1287
+ Z
1288
+ ] }],
1289
+ "backdrop-grayscale": [{ "backdrop-grayscale": [
1290
+ "",
1291
+ Y,
1292
+ Q,
1293
+ Z
1294
+ ] }],
1295
+ "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
1296
+ Y,
1297
+ Q,
1298
+ Z
1299
+ ] }],
1300
+ "backdrop-invert": [{ "backdrop-invert": [
1301
+ "",
1302
+ Y,
1303
+ Q,
1304
+ Z
1305
+ ] }],
1306
+ "backdrop-opacity": [{ "backdrop-opacity": [
1307
+ Y,
1308
+ Q,
1309
+ Z
1310
+ ] }],
1311
+ "backdrop-saturate": [{ "backdrop-saturate": [
1312
+ Y,
1313
+ Q,
1314
+ Z
1315
+ ] }],
1316
+ "backdrop-sepia": [{ "backdrop-sepia": [
1317
+ "",
1318
+ Y,
1319
+ Q,
1320
+ Z
1321
+ ] }],
1322
+ "border-collapse": [{ border: ["collapse", "separate"] }],
1323
+ "border-spacing": [{ "border-spacing": w() }],
1324
+ "border-spacing-x": [{ "border-spacing-x": w() }],
1325
+ "border-spacing-y": [{ "border-spacing-y": w() }],
1326
+ "table-layout": [{ table: ["auto", "fixed"] }],
1327
+ caption: [{ caption: ["top", "bottom"] }],
1328
+ transition: [{ transition: [
1329
+ "",
1330
+ "all",
1331
+ "colors",
1332
+ "opacity",
1333
+ "shadow",
1334
+ "transform",
1335
+ "none",
1336
+ Q,
1337
+ Z
1338
+ ] }],
1339
+ "transition-behavior": [{ transition: ["normal", "discrete"] }],
1340
+ duration: [{ duration: [
1341
+ Y,
1342
+ "initial",
1343
+ Q,
1344
+ Z
1345
+ ] }],
1346
+ ease: [{ ease: [
1347
+ "linear",
1348
+ "initial",
1349
+ _,
1350
+ Q,
1351
+ Z
1352
+ ] }],
1353
+ delay: [{ delay: [
1354
+ Y,
1355
+ Q,
1356
+ Z
1357
+ ] }],
1358
+ animate: [{ animate: [
1359
+ "none",
1360
+ v,
1361
+ Q,
1362
+ Z
1363
+ ] }],
1364
+ backface: [{ backface: ["hidden", "visible"] }],
1365
+ perspective: [{ perspective: [
1366
+ h,
1367
+ Q,
1368
+ Z
1369
+ ] }],
1370
+ "perspective-origin": [{ "perspective-origin": x() }],
1371
+ rotate: [{ rotate: G() }],
1372
+ "rotate-x": [{ "rotate-x": G() }],
1373
+ "rotate-y": [{ "rotate-y": G() }],
1374
+ "rotate-z": [{ "rotate-z": G() }],
1375
+ scale: [{ scale: K() }],
1376
+ "scale-x": [{ "scale-x": K() }],
1377
+ "scale-y": [{ "scale-y": K() }],
1378
+ "scale-z": [{ "scale-z": K() }],
1379
+ "scale-3d": ["scale-3d"],
1380
+ skew: [{ skew: q() }],
1381
+ "skew-x": [{ "skew-x": q() }],
1382
+ "skew-y": [{ "skew-y": q() }],
1383
+ transform: [{ transform: [
1384
+ Q,
1385
+ Z,
1386
+ "",
1387
+ "none",
1388
+ "gpu",
1389
+ "cpu"
1390
+ ] }],
1391
+ "transform-origin": [{ origin: x() }],
1392
+ "transform-style": [{ transform: ["3d", "flat"] }],
1393
+ translate: [{ translate: ne() }],
1394
+ "translate-x": [{ "translate-x": ne() }],
1395
+ "translate-y": [{ "translate-y": ne() }],
1396
+ "translate-z": [{ "translate-z": ne() }],
1397
+ "translate-none": ["translate-none"],
1398
+ accent: [{ accent: I() }],
1399
+ appearance: [{ appearance: ["none", "auto"] }],
1400
+ "caret-color": [{ caret: I() }],
1401
+ "color-scheme": [{ scheme: [
1402
+ "normal",
1403
+ "dark",
1404
+ "light",
1405
+ "light-dark",
1406
+ "only-dark",
1407
+ "only-light"
1408
+ ] }],
1409
+ cursor: [{ cursor: [
1410
+ "auto",
1411
+ "default",
1412
+ "pointer",
1413
+ "wait",
1414
+ "text",
1415
+ "move",
1416
+ "help",
1417
+ "not-allowed",
1418
+ "none",
1419
+ "context-menu",
1420
+ "progress",
1421
+ "cell",
1422
+ "crosshair",
1423
+ "vertical-text",
1424
+ "alias",
1425
+ "copy",
1426
+ "no-drop",
1427
+ "grab",
1428
+ "grabbing",
1429
+ "all-scroll",
1430
+ "col-resize",
1431
+ "row-resize",
1432
+ "n-resize",
1433
+ "e-resize",
1434
+ "s-resize",
1435
+ "w-resize",
1436
+ "ne-resize",
1437
+ "nw-resize",
1438
+ "se-resize",
1439
+ "sw-resize",
1440
+ "ew-resize",
1441
+ "ns-resize",
1442
+ "nesw-resize",
1443
+ "nwse-resize",
1444
+ "zoom-in",
1445
+ "zoom-out",
1446
+ Q,
1447
+ Z
1448
+ ] }],
1449
+ "field-sizing": [{ "field-sizing": ["fixed", "content"] }],
1450
+ "pointer-events": [{ "pointer-events": ["auto", "none"] }],
1451
+ resize: [{ resize: [
1452
+ "none",
1453
+ "",
1454
+ "y",
1455
+ "x"
1456
+ ] }],
1457
+ "scroll-behavior": [{ scroll: ["auto", "smooth"] }],
1458
+ "scroll-m": [{ "scroll-m": w() }],
1459
+ "scroll-mx": [{ "scroll-mx": w() }],
1460
+ "scroll-my": [{ "scroll-my": w() }],
1461
+ "scroll-ms": [{ "scroll-ms": w() }],
1462
+ "scroll-me": [{ "scroll-me": w() }],
1463
+ "scroll-mbs": [{ "scroll-mbs": w() }],
1464
+ "scroll-mbe": [{ "scroll-mbe": w() }],
1465
+ "scroll-mt": [{ "scroll-mt": w() }],
1466
+ "scroll-mr": [{ "scroll-mr": w() }],
1467
+ "scroll-mb": [{ "scroll-mb": w() }],
1468
+ "scroll-ml": [{ "scroll-ml": w() }],
1469
+ "scroll-p": [{ "scroll-p": w() }],
1470
+ "scroll-px": [{ "scroll-px": w() }],
1471
+ "scroll-py": [{ "scroll-py": w() }],
1472
+ "scroll-ps": [{ "scroll-ps": w() }],
1473
+ "scroll-pe": [{ "scroll-pe": w() }],
1474
+ "scroll-pbs": [{ "scroll-pbs": w() }],
1475
+ "scroll-pbe": [{ "scroll-pbe": w() }],
1476
+ "scroll-pt": [{ "scroll-pt": w() }],
1477
+ "scroll-pr": [{ "scroll-pr": w() }],
1478
+ "scroll-pb": [{ "scroll-pb": w() }],
1479
+ "scroll-pl": [{ "scroll-pl": w() }],
1480
+ "snap-align": [{ snap: [
1481
+ "start",
1482
+ "end",
1483
+ "center",
1484
+ "align-none"
1485
+ ] }],
1486
+ "snap-stop": [{ snap: ["normal", "always"] }],
1487
+ "snap-type": [{ snap: [
1488
+ "none",
1489
+ "x",
1490
+ "y",
1491
+ "both"
1492
+ ] }],
1493
+ "snap-strictness": [{ snap: ["mandatory", "proximity"] }],
1494
+ touch: [{ touch: [
1495
+ "auto",
1496
+ "none",
1497
+ "manipulation"
1498
+ ] }],
1499
+ "touch-x": [{ "touch-pan": [
1500
+ "x",
1501
+ "left",
1502
+ "right"
1503
+ ] }],
1504
+ "touch-y": [{ "touch-pan": [
1505
+ "y",
1506
+ "up",
1507
+ "down"
1508
+ ] }],
1509
+ "touch-pz": ["touch-pinch-zoom"],
1510
+ select: [{ select: [
1511
+ "none",
1512
+ "text",
1513
+ "all",
1514
+ "auto"
1515
+ ] }],
1516
+ "will-change": [{ "will-change": [
1517
+ "auto",
1518
+ "scroll",
1519
+ "contents",
1520
+ "transform",
1521
+ Q,
1522
+ Z
1523
+ ] }],
1524
+ fill: [{ fill: ["none", ...I()] }],
1525
+ "stroke-w": [{ stroke: [
1526
+ Y,
1527
+ De,
1528
+ be,
1529
+ xe
1530
+ ] }],
1531
+ stroke: [{ stroke: ["none", ...I()] }],
1532
+ "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
1533
+ },
1534
+ conflictingClassGroups: {
1535
+ overflow: ["overflow-x", "overflow-y"],
1536
+ overscroll: ["overscroll-x", "overscroll-y"],
1537
+ inset: [
1538
+ "inset-x",
1539
+ "inset-y",
1540
+ "inset-bs",
1541
+ "inset-be",
1542
+ "start",
1543
+ "end",
1544
+ "top",
1545
+ "right",
1546
+ "bottom",
1547
+ "left"
1548
+ ],
1549
+ "inset-x": ["right", "left"],
1550
+ "inset-y": ["top", "bottom"],
1551
+ flex: [
1552
+ "basis",
1553
+ "grow",
1554
+ "shrink"
1555
+ ],
1556
+ gap: ["gap-x", "gap-y"],
1557
+ p: [
1558
+ "px",
1559
+ "py",
1560
+ "ps",
1561
+ "pe",
1562
+ "pbs",
1563
+ "pbe",
1564
+ "pt",
1565
+ "pr",
1566
+ "pb",
1567
+ "pl"
1568
+ ],
1569
+ px: ["pr", "pl"],
1570
+ py: ["pt", "pb"],
1571
+ m: [
1572
+ "mx",
1573
+ "my",
1574
+ "ms",
1575
+ "me",
1576
+ "mbs",
1577
+ "mbe",
1578
+ "mt",
1579
+ "mr",
1580
+ "mb",
1581
+ "ml"
1582
+ ],
1583
+ mx: ["mr", "ml"],
1584
+ my: ["mt", "mb"],
1585
+ size: ["w", "h"],
1586
+ "font-size": ["leading"],
1587
+ "fvn-normal": [
1588
+ "fvn-ordinal",
1589
+ "fvn-slashed-zero",
1590
+ "fvn-figure",
1591
+ "fvn-spacing",
1592
+ "fvn-fraction"
1593
+ ],
1594
+ "fvn-ordinal": ["fvn-normal"],
1595
+ "fvn-slashed-zero": ["fvn-normal"],
1596
+ "fvn-figure": ["fvn-normal"],
1597
+ "fvn-spacing": ["fvn-normal"],
1598
+ "fvn-fraction": ["fvn-normal"],
1599
+ "line-clamp": ["display", "overflow"],
1600
+ rounded: [
1601
+ "rounded-s",
1602
+ "rounded-e",
1603
+ "rounded-t",
1604
+ "rounded-r",
1605
+ "rounded-b",
1606
+ "rounded-l",
1607
+ "rounded-ss",
1608
+ "rounded-se",
1609
+ "rounded-ee",
1610
+ "rounded-es",
1611
+ "rounded-tl",
1612
+ "rounded-tr",
1613
+ "rounded-br",
1614
+ "rounded-bl"
1615
+ ],
1616
+ "rounded-s": ["rounded-ss", "rounded-es"],
1617
+ "rounded-e": ["rounded-se", "rounded-ee"],
1618
+ "rounded-t": ["rounded-tl", "rounded-tr"],
1619
+ "rounded-r": ["rounded-tr", "rounded-br"],
1620
+ "rounded-b": ["rounded-br", "rounded-bl"],
1621
+ "rounded-l": ["rounded-tl", "rounded-bl"],
1622
+ "border-spacing": ["border-spacing-x", "border-spacing-y"],
1623
+ "border-w": [
1624
+ "border-w-x",
1625
+ "border-w-y",
1626
+ "border-w-s",
1627
+ "border-w-e",
1628
+ "border-w-bs",
1629
+ "border-w-be",
1630
+ "border-w-t",
1631
+ "border-w-r",
1632
+ "border-w-b",
1633
+ "border-w-l"
1634
+ ],
1635
+ "border-w-x": ["border-w-r", "border-w-l"],
1636
+ "border-w-y": ["border-w-t", "border-w-b"],
1637
+ "border-color": [
1638
+ "border-color-x",
1639
+ "border-color-y",
1640
+ "border-color-s",
1641
+ "border-color-e",
1642
+ "border-color-bs",
1643
+ "border-color-be",
1644
+ "border-color-t",
1645
+ "border-color-r",
1646
+ "border-color-b",
1647
+ "border-color-l"
1648
+ ],
1649
+ "border-color-x": ["border-color-r", "border-color-l"],
1650
+ "border-color-y": ["border-color-t", "border-color-b"],
1651
+ translate: [
1652
+ "translate-x",
1653
+ "translate-y",
1654
+ "translate-none"
1655
+ ],
1656
+ "translate-none": [
1657
+ "translate",
1658
+ "translate-x",
1659
+ "translate-y",
1660
+ "translate-z"
1661
+ ],
1662
+ "scroll-m": [
1663
+ "scroll-mx",
1664
+ "scroll-my",
1665
+ "scroll-ms",
1666
+ "scroll-me",
1667
+ "scroll-mbs",
1668
+ "scroll-mbe",
1669
+ "scroll-mt",
1670
+ "scroll-mr",
1671
+ "scroll-mb",
1672
+ "scroll-ml"
1673
+ ],
1674
+ "scroll-mx": ["scroll-mr", "scroll-ml"],
1675
+ "scroll-my": ["scroll-mt", "scroll-mb"],
1676
+ "scroll-p": [
1677
+ "scroll-px",
1678
+ "scroll-py",
1679
+ "scroll-ps",
1680
+ "scroll-pe",
1681
+ "scroll-pbs",
1682
+ "scroll-pbe",
1683
+ "scroll-pt",
1684
+ "scroll-pr",
1685
+ "scroll-pb",
1686
+ "scroll-pl"
1687
+ ],
1688
+ "scroll-px": ["scroll-pr", "scroll-pl"],
1689
+ "scroll-py": ["scroll-pt", "scroll-pb"],
1690
+ touch: [
1691
+ "touch-x",
1692
+ "touch-y",
1693
+ "touch-pz"
1694
+ ],
1695
+ "touch-x": ["touch"],
1696
+ "touch-y": ["touch"],
1697
+ "touch-pz": ["touch"]
1698
+ },
1699
+ conflictingClassGroupModifiers: { "font-size": ["leading"] },
1700
+ orderSensitiveModifiers: [
1701
+ "*",
1702
+ "**",
1703
+ "after",
1704
+ "backdrop",
1705
+ "before",
1706
+ "details-content",
1707
+ "file",
1708
+ "first-letter",
1709
+ "first-line",
1710
+ "marker",
1711
+ "placeholder",
1712
+ "selection"
1713
+ ]
1714
+ };
1715
+ });
1716
+ //#endregion
1717
+ //#region src/lib/utils.ts
1718
+ function $(...e) {
1719
+ return We(m(e));
1720
+ }
1721
+ //#endregion
1722
+ //#region src/hooks/useButtonSound.ts
1723
+ function Ge(e) {
1724
+ return e.current ||= new (window.AudioContext ?? window.webkitAudioContext)(), e.current;
1725
+ }
1726
+ function Ke(e) {
1727
+ try {
1728
+ let t = Ge(e), n = t.currentTime, r = 340 + Math.random() * 80, i = t.createOscillator(), a = t.createGain(), o = t.createBiquadFilter();
1729
+ o.type = "lowpass", o.frequency.value = 1800, i.connect(o), o.connect(a), a.connect(t.destination), i.type = "sine", i.frequency.setValueAtTime(r, n), i.frequency.exponentialRampToValueAtTime(r * .72, n + .07), a.gain.setValueAtTime(1e-4, n), a.gain.exponentialRampToValueAtTime(.18, n + .008), a.gain.exponentialRampToValueAtTime(1e-4, n + .09), i.start(n), i.stop(n + .1);
1730
+ } catch {}
1731
+ }
1732
+ function qe(e) {
1733
+ try {
1734
+ let t = Ge(e), n = t.currentTime, r = 480 + Math.random() * 120, i = t.createOscillator(), a = t.createGain(), o = t.createBiquadFilter();
1735
+ o.type = "bandpass", o.frequency.value = 900, o.Q.value = 1.2, i.connect(o), o.connect(a), a.connect(t.destination), i.type = "triangle", i.frequency.setValueAtTime(r, n), i.frequency.exponentialRampToValueAtTime(r * 1.25, n + .04), a.gain.setValueAtTime(1e-4, n), a.gain.exponentialRampToValueAtTime(.12, n + .006), a.gain.exponentialRampToValueAtTime(1e-4, n + .12), i.start(n), i.stop(n + .14);
1736
+ } catch {}
1737
+ }
1738
+ function Je(e) {
1739
+ let t = c(null), n = r(() => Ke(t), []), i = r(() => {
1740
+ qe(t);
1741
+ }, []), o = r((e) => {
1742
+ e.buttons === 1 && qe(t);
1743
+ }, []);
1744
+ a(() => {
1745
+ let r = e.current;
1746
+ if (!r) return;
1747
+ let a = (e) => {
1748
+ e.preventDefault(), Ke(t);
1749
+ }, s = (e) => {
1750
+ e.preventDefault(), qe(t);
1751
+ };
1752
+ return r.addEventListener("mousedown", n), r.addEventListener("mouseup", i), r.addEventListener("mouseleave", o), r.addEventListener("touchstart", a, { passive: !1 }), r.addEventListener("touchend", s, { passive: !1 }), () => {
1753
+ r.removeEventListener("mousedown", n), r.removeEventListener("mouseup", i), r.removeEventListener("mouseleave", o), r.removeEventListener("touchstart", a), r.removeEventListener("touchend", s);
1754
+ };
1755
+ }, [
1756
+ e,
1757
+ n,
1758
+ i,
1759
+ o
1760
+ ]);
1761
+ }
1762
+ //#endregion
1763
+ //#region src/lib/accent.ts
1764
+ function Ye(e) {
1765
+ let t = e.replace("#", ""), n = parseInt(t.slice(0, 2), 16) / 255, r = parseInt(t.slice(2, 4), 16) / 255, i = parseInt(t.slice(4, 6), 16) / 255, a = Math.max(n, r, i), o = Math.min(n, r, i), s = (a + o) / 2, c = 0, l = 0;
1766
+ if (a !== o) {
1767
+ let e = a - o;
1768
+ switch (c = s > .5 ? e / (2 - a - o) : e / (a + o), a) {
1769
+ case n:
1770
+ l = ((r - i) / e + (r < i ? 6 : 0)) / 6;
1771
+ break;
1772
+ case r:
1773
+ l = ((i - n) / e + 2) / 6;
1774
+ break;
1775
+ case i:
1776
+ l = ((n - r) / e + 4) / 6;
1777
+ break;
1778
+ }
1779
+ }
1780
+ return [
1781
+ Math.round(l * 360),
1782
+ Math.round(c * 100),
1783
+ Math.round(s * 100)
1784
+ ];
1785
+ }
1786
+ function Xe(e, t, n) {
1787
+ let r = t / 100, i = n / 100, a = r * Math.min(i, 1 - i), o = (t) => {
1788
+ let n = (t + e / 30) % 12, r = i - a * Math.max(Math.min(n - 3, 9 - n, 1), -1);
1789
+ return Math.round(255 * r).toString(16).padStart(2, "0");
1790
+ };
1791
+ return `#${o(0)}${o(8)}${o(4)}`;
1792
+ }
1793
+ function Ze(e) {
1794
+ if (!e || !e.startsWith("#")) return {
1795
+ fill: e,
1796
+ border: e
1797
+ };
1798
+ let [t, n, r] = Ye(e), i = Math.max(r - 28, 20);
1799
+ return {
1800
+ fill: e,
1801
+ border: Xe(t, Math.min(n + 10, 100), i)
1802
+ };
1803
+ }
1804
+ function Qe(e, t, n, r) {
1805
+ return r ? Ze(r) : {
1806
+ fill: t[e] ?? t.neutral ?? "#E8E4DC",
1807
+ border: n[e] ?? n.neutral ?? "#5a5550"
1808
+ };
1809
+ }
1810
+ //#endregion
1811
+ //#region src/components/Theme/ThemeProvider.tsx
1812
+ var $e = t({});
1813
+ function et() {
1814
+ return i($e);
1815
+ }
1816
+ function tt({ accentColor: e, dark: t, className: n, style: r, children: i }) {
1817
+ let a = s(() => ({
1818
+ accentColor: e,
1819
+ dark: t
1820
+ }), [e, t]), o = {
1821
+ ...e ? { "--sk-accent": e } : {},
1822
+ ...r
1823
+ };
1824
+ return /* @__PURE__ */ d($e.Provider, {
1825
+ value: a,
1826
+ children: /* @__PURE__ */ d("div", {
1827
+ className: $(t === !0 ? "dark" : t === !1 ? "light" : "", n),
1828
+ "data-theme": t === !0 ? "dark" : t === !1 ? "light" : void 0,
1829
+ style: o,
1830
+ children: i
1831
+ })
1832
+ });
1833
+ }
1834
+ //#endregion
1835
+ //#region src/components/Button/Button.tsx
1836
+ var nt = _([
1837
+ "inline-flex items-center justify-center gap-[7px]",
1838
+ "font-[system-ui,_-apple-system,_sans-serif] font-medium leading-none",
1839
+ "cursor-pointer border outline-none select-none relative",
1840
+ "rounded-[var(--btn-radius)]",
1841
+ "btn-transition",
1842
+ "active:scale-[0.972]",
1843
+ "hover:brightness-[1.05]",
1844
+ "btn-shadow hover:btn-shadow-hover active:btn-shadow-active",
1845
+ "[-webkit-tap-highlight-color:transparent]"
1846
+ ].join(" "), {
1847
+ variants: {
1848
+ color: {
1849
+ rose: "bg-pastel-rose text-pastel-rose-dark border-pastel-rose-dark/[0.22]",
1850
+ peach: "bg-pastel-peach text-pastel-peach-dark border-pastel-peach-dark/[0.22]",
1851
+ lemon: "bg-pastel-lemon text-pastel-lemon-dark border-pastel-lemon-dark/[0.22]",
1852
+ mint: "bg-pastel-mint text-pastel-mint-dark border-pastel-mint-dark/[0.22]",
1853
+ sky: "bg-pastel-sky text-pastel-sky-dark border-pastel-sky-dark/[0.22]",
1854
+ lavender: "bg-pastel-lavender text-pastel-lavender-dark border-pastel-lavender-dark/[0.22]",
1855
+ lilac: "bg-pastel-lilac text-pastel-lilac-dark border-pastel-lilac-dark/[0.22]",
1856
+ neutral: "bg-pastel-neutral text-pastel-neutral-dark border-pastel-neutral-dark/[0.22]",
1857
+ custom: ""
1858
+ },
1859
+ size: {
1860
+ default: "px-[18px] py-[10px] text-sm",
1861
+ sm: "px-[13px] py-[7px] text-xs",
1862
+ "icon-only": "p-[10px] w-10 h-10 text-sm",
1863
+ "icon-sm": "p-[7px] w-8 h-8 text-xs"
1864
+ }
1865
+ },
1866
+ defaultVariants: {
1867
+ color: "lavender",
1868
+ size: "default"
1869
+ }
1870
+ });
1871
+ function rt(e, t) {
1872
+ return e === "icon-only" || t === "only" ? e === "sm" ? "icon-sm" : "icon-only" : e === "sm" ? "sm" : "default";
1873
+ }
1874
+ var it = () => /* @__PURE__ */ d("svg", {
1875
+ width: "14",
1876
+ height: "14",
1877
+ viewBox: "0 0 24 24",
1878
+ fill: "none",
1879
+ stroke: "currentColor",
1880
+ strokeWidth: "2.2",
1881
+ strokeLinecap: "round",
1882
+ strokeLinejoin: "round",
1883
+ children: /* @__PURE__ */ d("polygon", { points: "5 3 19 12 5 21 5 3" })
1884
+ }), at = () => /* @__PURE__ */ d("svg", {
1885
+ width: "14",
1886
+ height: "14",
1887
+ viewBox: "0 0 24 24",
1888
+ fill: "none",
1889
+ stroke: "currentColor",
1890
+ strokeWidth: "2.2",
1891
+ strokeLinecap: "round",
1892
+ strokeLinejoin: "round",
1893
+ children: /* @__PURE__ */ d("polygon", { points: "12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2" })
1894
+ });
1895
+ function ot({ ref: e, color: t = "lavender", accentColor: n, size: a = "default", icon: o = "none", iconLeft: s, iconRight: l, iconOnly: p, radius: m = 10, children: h, className: g, style: _, ...v }) {
1896
+ let y = c(null), { accentColor: b } = i($e), x = r((t) => {
1897
+ y.current = t, typeof e == "function" ? e(t) : e != null && (e.current = t);
1898
+ }, [e]);
1899
+ Je(y);
1900
+ let S = a === "icon-only" || o === "only", C = n ?? b, w;
1901
+ if (C) {
1902
+ let { fill: e, border: t } = Ze(C);
1903
+ w = {
1904
+ backgroundColor: e,
1905
+ color: t,
1906
+ borderColor: `${t}38`
1907
+ };
1908
+ }
1909
+ return /* @__PURE__ */ d("button", {
1910
+ ref: x,
1911
+ className: $(nt({
1912
+ color: C ? "custom" : t,
1913
+ size: rt(a, o)
1914
+ }), g),
1915
+ style: {
1916
+ "--btn-radius": `${m}px`,
1917
+ ...w,
1918
+ ..._
1919
+ },
1920
+ ...v,
1921
+ children: S ? /* @__PURE__ */ d("span", {
1922
+ className: "flex items-center leading-none shrink-0",
1923
+ children: p ?? /* @__PURE__ */ d(at, {})
1924
+ }) : /* @__PURE__ */ f(u, { children: [
1925
+ o === "left" && /* @__PURE__ */ d("span", {
1926
+ className: "flex items-center leading-none shrink-0",
1927
+ children: s ?? /* @__PURE__ */ d(it, {})
1928
+ }),
1929
+ /* @__PURE__ */ d("span", {
1930
+ className: "[text-shadow:0_1px_0_rgba(255,255,255,0.35)]",
1931
+ children: h
1932
+ }),
1933
+ o === "right" && /* @__PURE__ */ d("span", {
1934
+ className: "flex items-center leading-none shrink-0",
1935
+ children: l ?? /* @__PURE__ */ d(it, {})
1936
+ })
1937
+ ] })
1938
+ });
1939
+ }
1940
+ //#endregion
1941
+ //#region src/hooks/useInputSound.ts
1942
+ function st(e) {
1943
+ return e.current ||= new (window.AudioContext ?? window.webkitAudioContext)(), e.current;
1944
+ }
1945
+ function ct(e) {
1946
+ try {
1947
+ let t = st(e), n = t.currentTime, r = t.createOscillator(), i = t.createGain();
1948
+ r.connect(i), i.connect(t.destination), r.type = "sine", r.frequency.setValueAtTime(1600, n), r.frequency.exponentialRampToValueAtTime(1050, n + .18), i.gain.setValueAtTime(1e-4, n), i.gain.exponentialRampToValueAtTime(.055, n + .012), i.gain.exponentialRampToValueAtTime(1e-4, n + .26), r.start(n), r.stop(n + .28);
1949
+ } catch {}
1950
+ }
1951
+ function lt(e) {
1952
+ let t = c(null);
1953
+ a(() => {
1954
+ let n = e.current;
1955
+ if (!n) return;
1956
+ let r = () => ct(t);
1957
+ return n.addEventListener("focus", r), () => n.removeEventListener("focus", r);
1958
+ }, [e]);
1959
+ }
1960
+ //#endregion
1961
+ //#region src/components/Input/Input.tsx
1962
+ var ut = _([
1963
+ "w-full min-w-0",
1964
+ "font-[system-ui,_-apple-system,_sans-serif] text-[13px] leading-none",
1965
+ "text-[var(--sk-text)] placeholder:text-[var(--sk-text-placeholder)]",
1966
+ "outline-none",
1967
+ "disabled:opacity-50 disabled:cursor-not-allowed",
1968
+ "transition-[box-shadow,border-color,background-color,opacity] duration-[150ms] ease-out"
1969
+ ].join(" "), {
1970
+ variants: {
1971
+ variant: {
1972
+ default: [
1973
+ "bg-[var(--sk-surface)] border",
1974
+ "rounded-[var(--field-radius)]",
1975
+ "btn-shadow hover:btn-shadow-hover",
1976
+ "focus-visible:btn-shadow-hover",
1977
+ "hover:brightness-[1.03]"
1978
+ ].join(" "),
1979
+ filled: [
1980
+ "bg-[var(--sk-surface-filled)] border border-[var(--sk-border)]",
1981
+ "rounded-[var(--field-radius)]",
1982
+ "shadow-[inset_0_1px_3px_var(--sk-shadow-b)]",
1983
+ "hover:bg-[var(--sk-surface-hover)]",
1984
+ "focus-visible:bg-[var(--sk-surface)] focus-visible:shadow-[inset_0_1px_2px_var(--sk-shadow-c)]"
1985
+ ].join(" "),
1986
+ ghost: [
1987
+ "bg-transparent border-0 border-b-[1.5px] border-[var(--sk-border-strong)]",
1988
+ "rounded-none shadow-none",
1989
+ "hover:border-[var(--sk-border-strong)]",
1990
+ "focus-visible:border-b-2 focus-visible:bg-[var(--sk-surface)]"
1991
+ ].join(" ")
1992
+ },
1993
+ tone: {
1994
+ rose: "border-pastel-rose-dark/[0.25] focus-visible:border-pastel-rose-dark/[0.55]",
1995
+ peach: "border-pastel-peach-dark/[0.25] focus-visible:border-pastel-peach-dark/[0.55]",
1996
+ lemon: "border-pastel-lemon-dark/[0.25] focus-visible:border-pastel-lemon-dark/[0.55]",
1997
+ mint: "border-pastel-mint-dark/[0.25] focus-visible:border-pastel-mint-dark/[0.55]",
1998
+ sky: "border-pastel-sky-dark/[0.25] focus-visible:border-pastel-sky-dark/[0.55]",
1999
+ lavender: "border-pastel-lavender-dark/[0.25] focus-visible:border-pastel-lavender-dark/[0.55]",
2000
+ lilac: "border-pastel-lilac-dark/[0.25] focus-visible:border-pastel-lilac-dark/[0.55]",
2001
+ neutral: "border-pastel-neutral-dark/[0.25] focus-visible:border-pastel-neutral-dark/[0.55]",
2002
+ custom: "border-[var(--sk-border)]"
2003
+ },
2004
+ size: {
2005
+ default: "h-[40px] px-[12px] py-[10px]",
2006
+ sm: "h-[32px] px-[10px] py-[8px] text-[12px]"
2007
+ },
2008
+ invalid: {
2009
+ true: "border-red-600/50 focus-visible:border-red-600/70",
2010
+ false: ""
2011
+ }
2012
+ },
2013
+ compoundVariants: [
2014
+ {
2015
+ variant: "ghost",
2016
+ tone: "rose",
2017
+ className: "border-pastel-rose-dark/[0.40] focus-visible:border-pastel-rose-dark/[0.70]"
2018
+ },
2019
+ {
2020
+ variant: "ghost",
2021
+ tone: "peach",
2022
+ className: "border-pastel-peach-dark/[0.40] focus-visible:border-pastel-peach-dark/[0.70]"
2023
+ },
2024
+ {
2025
+ variant: "ghost",
2026
+ tone: "lemon",
2027
+ className: "border-pastel-lemon-dark/[0.40] focus-visible:border-pastel-lemon-dark/[0.70]"
2028
+ },
2029
+ {
2030
+ variant: "ghost",
2031
+ tone: "mint",
2032
+ className: "border-pastel-mint-dark/[0.40] focus-visible:border-pastel-mint-dark/[0.70]"
2033
+ },
2034
+ {
2035
+ variant: "ghost",
2036
+ tone: "sky",
2037
+ className: "border-pastel-sky-dark/[0.40] focus-visible:border-pastel-sky-dark/[0.70]"
2038
+ },
2039
+ {
2040
+ variant: "ghost",
2041
+ tone: "lavender",
2042
+ className: "border-pastel-lavender-dark/[0.40] focus-visible:border-pastel-lavender-dark/[0.70]"
2043
+ },
2044
+ {
2045
+ variant: "ghost",
2046
+ tone: "lilac",
2047
+ className: "border-pastel-lilac-dark/[0.40] focus-visible:border-pastel-lilac-dark/[0.70]"
2048
+ },
2049
+ {
2050
+ variant: "ghost",
2051
+ tone: "neutral",
2052
+ className: "border-pastel-neutral-dark/[0.35] focus-visible:border-pastel-neutral-dark/[0.65]"
2053
+ }
2054
+ ],
2055
+ defaultVariants: {
2056
+ variant: "default",
2057
+ tone: "neutral",
2058
+ size: "default",
2059
+ invalid: !1
2060
+ }
2061
+ }), dt = n(function({ id: e, label: t, description: n, error: a, radius: s = 12, leftAdornment: u, rightAdornment: p, className: m, containerClassName: h, variant: g, tone: _, size: v, invalid: y, required: b, disabled: x, accentColor: S, "aria-describedby": C, ...w }, T) {
2062
+ let E = c(null), D = o(), O = e ?? `input-${D}`, k = n ? `${O}-description` : void 0, A = a ? `${O}-error` : void 0, j = [
2063
+ C,
2064
+ k,
2065
+ A
2066
+ ].filter(Boolean).join(" ") || void 0, M = y ?? !!a, { accentColor: N } = i($e), P = S ?? N, [F, I] = l(!1);
2067
+ lt(E);
2068
+ let ee = r((e) => {
2069
+ E.current = e, typeof T == "function" ? T(e) : T != null && (T.current = e);
2070
+ }, [T]), L = P ? "custom" : _ ?? "neutral", R;
2071
+ if (P && F && !M) {
2072
+ let { border: e } = Ze(P);
2073
+ R = { borderColor: `${e}99` };
2074
+ } else if (P && !M) {
2075
+ let { border: e } = Ze(P);
2076
+ R = { borderColor: `${e}44` };
2077
+ }
2078
+ return /* @__PURE__ */ f("div", {
2079
+ className: $("w-full", h),
2080
+ children: [
2081
+ t != null && /* @__PURE__ */ d("label", {
2082
+ htmlFor: O,
2083
+ className: $("block mb-[6px] text-[12px] leading-none font-medium text-[var(--sk-text-label)]", x && "opacity-60"),
2084
+ children: /* @__PURE__ */ f("span", {
2085
+ className: "inline-flex items-center gap-2",
2086
+ children: [t, b ? /* @__PURE__ */ d("span", {
2087
+ className: "text-[var(--sk-text-muted)]",
2088
+ children: "*"
2089
+ }) : null]
2090
+ })
2091
+ }),
2092
+ /* @__PURE__ */ f("div", {
2093
+ className: $("relative w-full", u ? "pl-[34px]" : "", p ? "pr-[34px]" : ""),
2094
+ style: { "--field-radius": `${s}px` },
2095
+ children: [
2096
+ u ? /* @__PURE__ */ d("div", {
2097
+ className: "absolute left-[10px] top-1/2 -translate-y-1/2 text-[var(--sk-text-muted)] pointer-events-none",
2098
+ children: u
2099
+ }) : null,
2100
+ /* @__PURE__ */ d("input", {
2101
+ ref: ee,
2102
+ id: O,
2103
+ className: $(ut({
2104
+ variant: g,
2105
+ tone: L,
2106
+ size: v,
2107
+ invalid: M
2108
+ }), u ? "pl-[34px]" : "", p ? "pr-[34px]" : "", m),
2109
+ style: R,
2110
+ "aria-invalid": M || void 0,
2111
+ "aria-describedby": j,
2112
+ required: b,
2113
+ disabled: x,
2114
+ onFocus: (e) => {
2115
+ I(!0), w.onFocus?.(e);
2116
+ },
2117
+ onBlur: (e) => {
2118
+ I(!1), w.onBlur?.(e);
2119
+ },
2120
+ ...w
2121
+ }),
2122
+ p ? /* @__PURE__ */ d("div", {
2123
+ className: "absolute right-[10px] top-1/2 -translate-y-1/2 text-[var(--sk-text-muted)] pointer-events-none",
2124
+ children: p
2125
+ }) : null
2126
+ ]
2127
+ }),
2128
+ n != null && /* @__PURE__ */ d("div", {
2129
+ id: k,
2130
+ className: "mt-[6px] text-[12px] leading-snug text-[var(--sk-text-desc)]",
2131
+ children: n
2132
+ }),
2133
+ a != null && /* @__PURE__ */ d("div", {
2134
+ id: A,
2135
+ className: "mt-[6px] text-[12px] leading-snug text-[var(--sk-text-error)]",
2136
+ children: a
2137
+ })
2138
+ ]
2139
+ });
2140
+ });
2141
+ //#endregion
2142
+ //#region src/hooks/useToggleSound.ts
2143
+ function ft(e) {
2144
+ return e.current ||= new (window.AudioContext ?? window.webkitAudioContext)(), e.current;
2145
+ }
2146
+ function pt(e) {
2147
+ try {
2148
+ let t = ft(e), n = t.currentTime;
2149
+ for (let e = 0; e < 2; e++) {
2150
+ let r = n + e * .032, i = t.createOscillator(), a = t.createGain(), o = t.createBiquadFilter();
2151
+ o.type = "bandpass", o.frequency.value = 1100 + e * 500, o.Q.value = 7, i.connect(o), o.connect(a), a.connect(t.destination), i.type = "square", i.frequency.setValueAtTime(500 + e * 180, r), a.gain.setValueAtTime(1e-4, r), a.gain.exponentialRampToValueAtTime(.065, r + .004), a.gain.exponentialRampToValueAtTime(1e-4, r + .038), i.start(r), i.stop(r + .045);
2152
+ }
2153
+ } catch {}
2154
+ }
2155
+ function mt(e) {
2156
+ try {
2157
+ let t = ft(e), n = t.currentTime, r = t.createOscillator(), i = t.createGain(), a = t.createBiquadFilter();
2158
+ a.type = "bandpass", a.frequency.value = 700, a.Q.value = 5, r.connect(a), a.connect(i), i.connect(t.destination), r.type = "square", r.frequency.setValueAtTime(460, n), r.frequency.exponentialRampToValueAtTime(260, n + .055), i.gain.setValueAtTime(1e-4, n), i.gain.exponentialRampToValueAtTime(.07, n + .005), i.gain.exponentialRampToValueAtTime(1e-4, n + .06), r.start(n), r.stop(n + .07);
2159
+ } catch {}
2160
+ }
2161
+ function ht(e, t) {
2162
+ let n = c(null), r = c(t);
2163
+ a(() => {
2164
+ r.current = t;
2165
+ }), a(() => {
2166
+ let t = e.current;
2167
+ if (!t) return;
2168
+ let i = () => {
2169
+ r.current ? mt(n) : pt(n);
2170
+ };
2171
+ return t.addEventListener("click", i), () => t.removeEventListener("click", i);
2172
+ }, [e]);
2173
+ }
2174
+ //#endregion
2175
+ //#region src/components/Toggle/Toggle.tsx
2176
+ var gt = "cubic-bezier(0.34, 1.42, 0.64, 1)", _t = "cubic-bezier(0.4, 0, 1, 1)", vt = {
2177
+ default: {
2178
+ w: 46,
2179
+ h: 28,
2180
+ knob: 22,
2181
+ left: 3,
2182
+ travel: 18
2183
+ },
2184
+ sm: {
2185
+ w: 38,
2186
+ h: 22,
2187
+ knob: 17,
2188
+ left: 3,
2189
+ travel: 15
2190
+ }
2191
+ }, yt = _("inline-flex items-center gap-3 font-[system-ui,_-apple-system,_sans-serif] select-none", {
2192
+ variants: {
2193
+ size: {
2194
+ default: "",
2195
+ sm: ""
2196
+ },
2197
+ disabled: {
2198
+ true: "opacity-60 cursor-not-allowed",
2199
+ false: "cursor-pointer"
2200
+ }
2201
+ },
2202
+ defaultVariants: {
2203
+ size: "default",
2204
+ disabled: !1
2205
+ }
2206
+ }), bt = {
2207
+ rose: {
2208
+ off: "border-pastel-rose-dark/[0.22]",
2209
+ on: "bg-pastel-rose/55 border-pastel-rose-dark/[0.30]"
2210
+ },
2211
+ peach: {
2212
+ off: "border-pastel-peach-dark/[0.22]",
2213
+ on: "bg-pastel-peach/55 border-pastel-peach-dark/[0.30]"
2214
+ },
2215
+ lemon: {
2216
+ off: "border-pastel-lemon-dark/[0.22]",
2217
+ on: "bg-pastel-lemon/60 border-pastel-lemon-dark/[0.30]"
2218
+ },
2219
+ mint: {
2220
+ off: "border-pastel-mint-dark/[0.22]",
2221
+ on: "bg-pastel-mint/55 border-pastel-mint-dark/[0.30]"
2222
+ },
2223
+ sky: {
2224
+ off: "border-pastel-sky-dark/[0.22]",
2225
+ on: "bg-pastel-sky/55 border-pastel-sky-dark/[0.30]"
2226
+ },
2227
+ lavender: {
2228
+ off: "border-pastel-lavender-dark/[0.22]",
2229
+ on: "bg-pastel-lavender/55 border-pastel-lavender-dark/[0.30]"
2230
+ },
2231
+ lilac: {
2232
+ off: "border-pastel-lilac-dark/[0.22]",
2233
+ on: "bg-pastel-lilac/55 border-pastel-lilac-dark/[0.30]"
2234
+ },
2235
+ neutral: {
2236
+ off: "border-pastel-neutral-dark/[0.22]",
2237
+ on: "bg-pastel-neutral/55 border-pastel-neutral-dark/[0.30]"
2238
+ }
2239
+ }, xt = n(function({ id: e, label: t, description: n, size: a = "default", tone: u = "neutral", disabled: p = !1, checked: m, defaultChecked: h = !1, onCheckedChange: g, className: _, accentColor: v, "aria-describedby": y, ...b }, x) {
2240
+ let S = c(null), C = o(), w = e ?? `toggle-${C}`, T = n ? `${w}-description` : void 0, E = [y, T].filter(Boolean).join(" ") || void 0, { accentColor: D } = i($e), O = v ?? D, k = m != null, [A, j] = l(h), M = k ? !!m : A, [N, P] = l(!1), F = vt[a ?? "default"], I = s(() => {
2241
+ if (!p) return () => {
2242
+ let e = !M;
2243
+ k || j(e), g?.(e);
2244
+ };
2245
+ }, [
2246
+ M,
2247
+ p,
2248
+ k,
2249
+ g
2250
+ ]);
2251
+ ht(S, M);
2252
+ let ee = r((e) => {
2253
+ S.current = e, typeof x == "function" ? x(e) : x != null && (x.current = e);
2254
+ }, [x]), L = bt[u ?? "neutral"] ?? bt.neutral, R = M ? "inset 0 1px 0 rgba(255,255,255,0.25), inset 0 2px 7px rgba(0,0,0,0.13)" : "var(--sk-shadow-a) 0 1px 0 0, 0 3px 8px -1px var(--sk-shadow-b), 0 6px 16px -4px var(--sk-shadow-c), inset 0 1px 0 var(--sk-inset-light), inset 0 -2px 0 var(--sk-inset-dark)", z = N ? Math.round(F.knob * 1.22) : F.knob, B = M ? F.travel - (z - F.knob) : 0, V = {
2255
+ position: "absolute",
2256
+ top: "50%",
2257
+ left: F.left,
2258
+ width: z,
2259
+ height: F.knob,
2260
+ borderRadius: "999px",
2261
+ background: "var(--sk-knob)",
2262
+ boxShadow: "0 2px 10px rgba(0,0,0,0.10), 0 1px 0 rgba(0,0,0,0.10)",
2263
+ transform: `translateX(${B}px) translateY(-50%)`,
2264
+ transition: N ? `transform 80ms ${_t}, width 80ms ${_t}` : `transform 260ms ${gt}, width 200ms ${gt}`
2265
+ }, H;
2266
+ if (O && M) {
2267
+ let { fill: e, border: t } = Ze(O);
2268
+ H = {
2269
+ backgroundColor: `${e}cc`,
2270
+ borderColor: `${t}55`
2271
+ };
2272
+ } else if (O && !M) {
2273
+ let { border: e } = Ze(O);
2274
+ H = { borderColor: `${e}38` };
2275
+ }
2276
+ let te = {
2277
+ width: F.w,
2278
+ height: F.h,
2279
+ boxShadow: R,
2280
+ transition: "background-color 180ms ease-out, border-color 180ms ease-out, box-shadow 150ms ease-out",
2281
+ ...H
2282
+ };
2283
+ return /* @__PURE__ */ f("div", {
2284
+ className: $(yt({
2285
+ size: a,
2286
+ disabled: p
2287
+ }), _),
2288
+ children: [/* @__PURE__ */ d("button", {
2289
+ ...b,
2290
+ ref: ee,
2291
+ id: w,
2292
+ type: b.type ?? "button",
2293
+ role: "switch",
2294
+ "aria-checked": M,
2295
+ "aria-disabled": p || void 0,
2296
+ "aria-describedby": E,
2297
+ disabled: !!p,
2298
+ onClick: I,
2299
+ onMouseDown: () => !p && P(!0),
2300
+ onMouseUp: () => P(!1),
2301
+ onMouseLeave: () => P(!1),
2302
+ onTouchStart: () => !p && P(!0),
2303
+ onTouchEnd: () => P(!1),
2304
+ className: $("relative shrink-0 rounded-full border outline-none", "focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-[var(--sk-border-strong)]", "bg-[var(--sk-surface)]", !O && L.off, !O && M ? L.on : "", p ? "pointer-events-none" : "cursor-pointer"),
2305
+ style: te,
2306
+ children: /* @__PURE__ */ d("span", { style: V })
2307
+ }), (t != null || n != null) && /* @__PURE__ */ f("div", {
2308
+ className: "min-w-0",
2309
+ children: [t != null && /* @__PURE__ */ d("div", {
2310
+ className: $("text-[13px] leading-none font-medium text-[var(--sk-text-label)]", p && "opacity-60"),
2311
+ children: t
2312
+ }), n != null && /* @__PURE__ */ d("div", {
2313
+ id: T,
2314
+ className: "mt-[6px] text-[12px] leading-snug text-[var(--sk-text-desc)]",
2315
+ children: n
2316
+ })]
2317
+ })]
2318
+ });
2319
+ });
2320
+ //#endregion
2321
+ //#region src/hooks/useSelectSound.ts
2322
+ function St(e) {
2323
+ return e.current ||= new (window.AudioContext ?? window.webkitAudioContext)(), e.current;
2324
+ }
2325
+ function Ct(e) {
2326
+ try {
2327
+ let t = St(e), n = t.currentTime, r = t.createOscillator(), i = t.createGain(), a = t.createBiquadFilter();
2328
+ a.type = "lowpass", a.frequency.value = 2200, r.connect(a), a.connect(i), i.connect(t.destination), r.type = "sine", r.frequency.setValueAtTime(820, n), r.frequency.exponentialRampToValueAtTime(680, n + .06), i.gain.setValueAtTime(1e-4, n), i.gain.exponentialRampToValueAtTime(.07, n + .01), i.gain.exponentialRampToValueAtTime(1e-4, n + .1), r.start(n), r.stop(n + .12);
2329
+ } catch {}
2330
+ }
2331
+ function wt(e) {
2332
+ try {
2333
+ let t = St(e), n = t.currentTime, r = t.createOscillator(), i = t.createGain(), a = t.createBiquadFilter();
2334
+ a.type = "bandpass", a.frequency.value = 1400, a.Q.value = 3, r.connect(a), a.connect(i), i.connect(t.destination), r.type = "triangle", r.frequency.setValueAtTime(1100, n), r.frequency.exponentialRampToValueAtTime(1300, n + .025), i.gain.setValueAtTime(1e-4, n), i.gain.exponentialRampToValueAtTime(.06, n + .005), i.gain.exponentialRampToValueAtTime(1e-4, n + .045), r.start(n), r.stop(n + .05);
2335
+ } catch {}
2336
+ }
2337
+ function Tt() {
2338
+ return c(null);
2339
+ }
2340
+ //#endregion
2341
+ //#region src/components/Select/Select.tsx
2342
+ var Et = _([
2343
+ "w-full min-w-0 inline-flex items-center justify-between gap-2",
2344
+ "font-[system-ui,_-apple-system,_sans-serif] text-[13px] leading-none",
2345
+ "text-[var(--sk-text)]",
2346
+ "outline-none cursor-pointer select-none",
2347
+ "transition-[box-shadow,border-color,background-color,opacity] duration-[150ms] ease-out",
2348
+ "disabled:opacity-50 disabled:cursor-not-allowed"
2349
+ ].join(" "), {
2350
+ variants: {
2351
+ variant: {
2352
+ default: [
2353
+ "bg-[var(--sk-surface)] border rounded-[var(--field-radius)]",
2354
+ "btn-shadow hover:btn-shadow-hover",
2355
+ "hover:brightness-[1.03]",
2356
+ "focus-visible:btn-shadow-hover"
2357
+ ].join(" "),
2358
+ filled: [
2359
+ "bg-[var(--sk-surface-filled)] border border-[var(--sk-border)] rounded-[var(--field-radius)]",
2360
+ "shadow-[inset_0_1px_3px_var(--sk-shadow-b)]",
2361
+ "hover:bg-[var(--sk-surface-hover)]",
2362
+ "focus-visible:bg-[var(--sk-surface)]"
2363
+ ].join(" "),
2364
+ ghost: [
2365
+ "bg-transparent border-0 border-b-[1.5px] border-[var(--sk-border-strong)] rounded-none",
2366
+ "hover:border-[var(--sk-border-strong)]",
2367
+ "focus-visible:border-b-2 focus-visible:bg-[var(--sk-surface)]"
2368
+ ].join(" ")
2369
+ },
2370
+ tone: {
2371
+ rose: "border-pastel-rose-dark/[0.25] focus-visible:border-pastel-rose-dark/[0.55]",
2372
+ peach: "border-pastel-peach-dark/[0.25] focus-visible:border-pastel-peach-dark/[0.55]",
2373
+ lemon: "border-pastel-lemon-dark/[0.25] focus-visible:border-pastel-lemon-dark/[0.55]",
2374
+ mint: "border-pastel-mint-dark/[0.25] focus-visible:border-pastel-mint-dark/[0.55]",
2375
+ sky: "border-pastel-sky-dark/[0.25] focus-visible:border-pastel-sky-dark/[0.55]",
2376
+ lavender: "border-pastel-lavender-dark/[0.25] focus-visible:border-pastel-lavender-dark/[0.55]",
2377
+ lilac: "border-pastel-lilac-dark/[0.25] focus-visible:border-pastel-lilac-dark/[0.55]",
2378
+ neutral: "border-pastel-neutral-dark/[0.25] focus-visible:border-pastel-neutral-dark/[0.55]",
2379
+ custom: "border-[var(--sk-border)]"
2380
+ },
2381
+ size: {
2382
+ default: "h-[40px] px-[12px] py-[10px]",
2383
+ sm: "h-[32px] px-[10px] py-[8px] text-[12px]"
2384
+ },
2385
+ invalid: {
2386
+ true: "border-red-600/50 focus-visible:border-red-600/70",
2387
+ false: ""
2388
+ }
2389
+ },
2390
+ defaultVariants: {
2391
+ variant: "default",
2392
+ tone: "neutral",
2393
+ size: "default",
2394
+ invalid: !1
2395
+ }
2396
+ }), Dt = ({ open: e }) => /* @__PURE__ */ d("svg", {
2397
+ width: "12",
2398
+ height: "12",
2399
+ viewBox: "0 0 24 24",
2400
+ fill: "none",
2401
+ stroke: "currentColor",
2402
+ strokeWidth: "2.5",
2403
+ strokeLinecap: "round",
2404
+ strokeLinejoin: "round",
2405
+ style: {
2406
+ transition: "transform 180ms cubic-bezier(0.34,1.42,0.64,1)",
2407
+ transform: e ? "rotate(180deg)" : "rotate(0deg)",
2408
+ flexShrink: 0
2409
+ },
2410
+ children: /* @__PURE__ */ d("path", { d: "M6 9l6 6 6-6" })
2411
+ }), Ot = () => /* @__PURE__ */ d("svg", {
2412
+ width: "12",
2413
+ height: "12",
2414
+ viewBox: "0 0 24 24",
2415
+ fill: "none",
2416
+ stroke: "currentColor",
2417
+ strokeWidth: "2.5",
2418
+ strokeLinecap: "round",
2419
+ strokeLinejoin: "round",
2420
+ children: /* @__PURE__ */ d("path", { d: "M20 6L9 17l-5-5" })
2421
+ }), kt = n(function({ options: e, value: t, defaultValue: n, onChange: s, placeholder: u = "Select…", disabled: p = !1, searchable: m = !1, label: h, description: g, error: _, radius: v = 12, id: y, "aria-describedby": b, containerClassName: x, className: S, variant: C = "default", tone: w, size: T = "default", invalid: E, accentColor: D }, O) {
2422
+ let k = Tt(), A = o(), j = y ?? `select-${A}`, M = `${j}-list`, N = g ? `${j}-description` : void 0, P = _ ? `${j}-error` : void 0, F = [
2423
+ b,
2424
+ N,
2425
+ P
2426
+ ].filter(Boolean).join(" ") || void 0, I = E ?? !!_, { accentColor: ee } = i($e), L = D ?? ee, R = t !== void 0, [z, B] = l(n ?? ""), V = R ? t : z, [H, te] = l(!1), [U, W] = l(-1), [G, K] = l(""), q = c(null), J = c(null), ne = c(null), re = r((e) => {
2427
+ q.current = e, typeof O == "function" ? O(e) : O != null && (O.current = e);
2428
+ }, [O]), ie = m && G ? e.filter((e) => e.label.toLowerCase().includes(G.toLowerCase())) : e, ae = r(() => {
2429
+ if (p) return;
2430
+ te(!0), K("");
2431
+ let e = ie.findIndex((e) => e.value === V);
2432
+ W(e >= 0 ? e : 0), Ct(k);
2433
+ }, [
2434
+ p,
2435
+ ie,
2436
+ V,
2437
+ k
2438
+ ]), oe = r(() => {
2439
+ te(!1), K(""), q.current?.focus();
2440
+ }, []), se = r((e) => {
2441
+ e.disabled || (R || B(e.value), s?.(e.value), wt(k), oe());
2442
+ }, [
2443
+ R,
2444
+ s,
2445
+ k,
2446
+ oe
2447
+ ]);
2448
+ a(() => {
2449
+ if (!H) return;
2450
+ let e = (e) => {
2451
+ !q.current?.contains(e.target) && !J.current?.contains(e.target) && oe();
2452
+ };
2453
+ return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
2454
+ }, [H, oe]), a(() => {
2455
+ H && m && setTimeout(() => ne.current?.focus(), 10);
2456
+ }, [H, m]);
2457
+ let ce = (e) => {
2458
+ e.key === "Enter" || e.key === " " || e.key === "ArrowDown" ? (e.preventDefault(), H ? W((e) => Math.min(e + 1, ie.length - 1)) : ae()) : e.key === "ArrowUp" ? (e.preventDefault(), H && W((e) => Math.max(e - 1, 0))) : e.key === "Escape" && oe();
2459
+ }, le = (e) => {
2460
+ if (e.key === "ArrowDown") e.preventDefault(), W((e) => Math.min(e + 1, ie.length - 1));
2461
+ else if (e.key === "ArrowUp") e.preventDefault(), W((e) => Math.max(e - 1, 0));
2462
+ else if (e.key === "Enter") {
2463
+ e.preventDefault();
2464
+ let t = ie[U];
2465
+ t && se(t);
2466
+ } else e.key === "Escape" && oe();
2467
+ }, ue = e.find((e) => e.value === V)?.label, Y = L ? "custom" : w ?? "neutral", X;
2468
+ if (L && !I) {
2469
+ let { border: e } = Ze(L);
2470
+ X = { borderColor: H ? `${e}99` : `${e}44` };
2471
+ }
2472
+ let de;
2473
+ if (L) {
2474
+ let { border: e } = Ze(L);
2475
+ de = { color: e };
2476
+ }
2477
+ let fe = {
2478
+ position: "absolute",
2479
+ top: "calc(100% + 4px)",
2480
+ left: 0,
2481
+ right: 0,
2482
+ zIndex: 50,
2483
+ borderRadius: v,
2484
+ background: "var(--sk-bg)",
2485
+ backdropFilter: "blur(12px)",
2486
+ WebkitBackdropFilter: "blur(12px)",
2487
+ boxShadow: "0 4px 24px -4px var(--sk-shadow-b), 0 1px 3px var(--sk-shadow-c), inset 0 0 0 1px var(--sk-border)",
2488
+ overflow: "hidden",
2489
+ maxHeight: 260,
2490
+ display: "flex",
2491
+ flexDirection: "column"
2492
+ };
2493
+ return /* @__PURE__ */ f("div", {
2494
+ className: $("w-full", x),
2495
+ style: { "--field-radius": `${v}px` },
2496
+ children: [
2497
+ h != null && /* @__PURE__ */ d("label", {
2498
+ htmlFor: j,
2499
+ className: $("block mb-[6px] text-[12px] leading-none font-medium text-[var(--sk-text-label)]", p && "opacity-60"),
2500
+ children: h
2501
+ }),
2502
+ /* @__PURE__ */ f("div", {
2503
+ className: "relative w-full",
2504
+ children: [/* @__PURE__ */ f("button", {
2505
+ ref: re,
2506
+ id: j,
2507
+ type: "button",
2508
+ role: "combobox",
2509
+ "aria-haspopup": "listbox",
2510
+ "aria-expanded": H,
2511
+ "aria-controls": H ? M : void 0,
2512
+ "aria-invalid": I || void 0,
2513
+ "aria-describedby": F,
2514
+ disabled: !!p,
2515
+ onClick: () => H ? oe() : ae(),
2516
+ onKeyDown: ce,
2517
+ className: $(Et({
2518
+ variant: C,
2519
+ tone: Y,
2520
+ size: T,
2521
+ invalid: I
2522
+ }), S),
2523
+ style: X,
2524
+ children: [/* @__PURE__ */ d("span", {
2525
+ className: $("truncate", !ue && "text-[var(--sk-text-placeholder)]"),
2526
+ children: ue ?? u
2527
+ }), /* @__PURE__ */ d("span", {
2528
+ className: "text-[var(--sk-text-muted)]",
2529
+ children: /* @__PURE__ */ d(Dt, { open: H })
2530
+ })]
2531
+ }), H && /* @__PURE__ */ f("div", {
2532
+ ref: J,
2533
+ role: "listbox",
2534
+ id: M,
2535
+ onKeyDown: le,
2536
+ style: fe,
2537
+ children: [m && /* @__PURE__ */ d("div", {
2538
+ className: "p-[6px] border-b border-[var(--sk-border-subtle)]",
2539
+ children: /* @__PURE__ */ d("input", {
2540
+ ref: ne,
2541
+ type: "text",
2542
+ placeholder: "Search…",
2543
+ value: G,
2544
+ onChange: (e) => {
2545
+ K(e.target.value), W(0);
2546
+ },
2547
+ className: "w-full outline-none bg-transparent text-[13px] text-[var(--sk-text)] placeholder:text-[var(--sk-text-placeholder)] px-[6px] py-[4px]"
2548
+ })
2549
+ }), /* @__PURE__ */ d("div", {
2550
+ className: "overflow-y-auto p-[4px]",
2551
+ style: { maxHeight: m ? 210 : 252 },
2552
+ children: ie.length === 0 ? /* @__PURE__ */ d("div", {
2553
+ className: "text-[12px] text-[var(--sk-text-muted)] px-[10px] py-[8px]",
2554
+ children: "No options"
2555
+ }) : ie.map((e, t) => /* @__PURE__ */ f("button", {
2556
+ type: "button",
2557
+ role: "option",
2558
+ "aria-selected": e.value === V,
2559
+ "aria-disabled": e.disabled,
2560
+ tabIndex: -1,
2561
+ onMouseEnter: () => W(t),
2562
+ onClick: () => se(e),
2563
+ className: $("w-full flex items-center justify-between gap-2 px-[10px] py-[7px] rounded-[8px]", "text-[13px] text-[var(--sk-text)] leading-none text-left outline-none cursor-pointer", "transition-colors duration-75", t === U && !e.disabled && "bg-[var(--sk-surface-filled)]", e.value === V && "font-medium", e.disabled && "opacity-40 cursor-not-allowed"),
2564
+ children: [/* @__PURE__ */ d("span", {
2565
+ className: "truncate",
2566
+ children: e.label
2567
+ }), e.value === V && /* @__PURE__ */ d("span", {
2568
+ className: "text-[var(--sk-text-muted)] shrink-0",
2569
+ style: de,
2570
+ children: /* @__PURE__ */ d(Ot, {})
2571
+ })]
2572
+ }, e.value))
2573
+ })]
2574
+ })]
2575
+ }),
2576
+ g != null && /* @__PURE__ */ d("div", {
2577
+ id: N,
2578
+ className: "mt-[6px] text-[12px] leading-snug text-[var(--sk-text-desc)]",
2579
+ children: g
2580
+ }),
2581
+ _ != null && /* @__PURE__ */ d("div", {
2582
+ id: P,
2583
+ className: "mt-[6px] text-[12px] leading-snug text-[var(--sk-text-error)]",
2584
+ children: _
2585
+ })
2586
+ ]
2587
+ });
2588
+ });
2589
+ //#endregion
2590
+ //#region src/hooks/useSliderSound.ts
2591
+ function At(e) {
2592
+ return e.current ||= new (window.AudioContext ?? window.webkitAudioContext)(), e.current;
2593
+ }
2594
+ function jt(e, t) {
2595
+ try {
2596
+ let n = At(e), r = n.currentTime, i = 300 + t * 600, a = n.createOscillator(), o = n.createGain(), s = n.createBiquadFilter();
2597
+ s.type = "bandpass", s.frequency.value = i * 1.5, s.Q.value = 4, a.connect(s), s.connect(o), o.connect(n.destination), a.type = "triangle", a.frequency.setValueAtTime(i, r), o.gain.setValueAtTime(1e-4, r), o.gain.exponentialRampToValueAtTime(.04, r + .004), o.gain.exponentialRampToValueAtTime(1e-4, r + .028), a.start(r), a.stop(r + .032);
2598
+ } catch {}
2599
+ }
2600
+ function Mt(e, t, n) {
2601
+ let r = c(null), i = c(0);
2602
+ a(() => {
2603
+ let a = e.current;
2604
+ if (!a) return;
2605
+ let o = () => {
2606
+ let e = performance.now();
2607
+ if (e - i.current < 16) return;
2608
+ i.current = e;
2609
+ let o = (parseFloat(a.value) - t) / (n - t || 1);
2610
+ jt(r, Math.max(0, Math.min(1, o)));
2611
+ };
2612
+ return a.addEventListener("input", o), () => a.removeEventListener("input", o);
2613
+ }, [
2614
+ e,
2615
+ t,
2616
+ n
2617
+ ]);
2618
+ }
2619
+ //#endregion
2620
+ //#region src/components/Slider/Slider.tsx
2621
+ var Nt = "cubic-bezier(0.34, 1.42, 0.64, 1)", Pt = "cubic-bezier(0.4, 0, 1, 1)", Ft = {
2622
+ default: 6,
2623
+ sm: 4
2624
+ }, It = {
2625
+ default: 20,
2626
+ sm: 15
2627
+ }, Lt = {
2628
+ rose: "#F9C5D1",
2629
+ peach: "#FDDBB4",
2630
+ lemon: "#FFF1A8",
2631
+ mint: "#B8F0D8",
2632
+ sky: "#B8DFFE",
2633
+ lavender: "#D4C5F9",
2634
+ lilac: "#F0C8F0",
2635
+ neutral: "#E8E4DC"
2636
+ }, Rt = {
2637
+ rose: "#c2607a",
2638
+ peach: "#b87a3a",
2639
+ lemon: "#8a7820",
2640
+ mint: "#2a7a58",
2641
+ sky: "#2a68a0",
2642
+ lavender: "#5a3eaa",
2643
+ lilac: "#8a3a8a",
2644
+ neutral: "#5a5550"
2645
+ }, zt = n(function({ min: e = 0, max: t = 100, step: n = 1, value: a, defaultValue: s = 0, onValueChange: u, tone: p = "lavender", accentColor: m, size: h = "default", label: g, description: _, showValue: v = !1, showMinMax: y = !1, marks: b, disabled: x = !1, id: S, className: C }, w) {
2646
+ let T = c(null), E = o(), D = S ?? `slider-${E}`, O = _ ? `${D}-desc` : void 0, { accentColor: k } = i($e), A = m ?? k, j = a !== void 0, [M, N] = l(s), P = j ? a : M, [F, I] = l(!1);
2647
+ Mt(T, e, t);
2648
+ let ee = r((e) => {
2649
+ T.current = e, typeof w == "function" ? w(e) : w != null && (w.current = e);
2650
+ }, [w]), L = (e) => {
2651
+ let t = parseFloat(e.target.value);
2652
+ j || N(t), u?.(t);
2653
+ }, R = Ft[h], z = It[h], B = (P - e) / (t - e || 1) * 100, { fill: V, border: H } = Qe(p, Lt, Rt, A), te = F ? Math.round(z * 1.18) : z, U = {
2654
+ position: "relative",
2655
+ width: "100%",
2656
+ height: R,
2657
+ borderRadius: 999,
2658
+ background: "var(--sk-track-empty)",
2659
+ boxShadow: "inset 0 1px 2px var(--sk-shadow-c)"
2660
+ }, W = {
2661
+ position: "absolute",
2662
+ left: 0,
2663
+ top: 0,
2664
+ height: "100%",
2665
+ width: `${B}%`,
2666
+ borderRadius: 999,
2667
+ background: V,
2668
+ boxShadow: `0 0 0 1px ${H}33`,
2669
+ transition: "width 60ms ease-out"
2670
+ }, G = {
2671
+ position: "absolute",
2672
+ top: "50%",
2673
+ left: `${B}%`,
2674
+ width: te,
2675
+ height: te,
2676
+ borderRadius: 999,
2677
+ background: "var(--sk-knob)",
2678
+ boxShadow: "0 2px 8px var(--sk-shadow-b), 0 1px 0 var(--sk-shadow-c)",
2679
+ transform: "translate(-50%, -50%)",
2680
+ transition: F ? `width 60ms ${Pt}, height 60ms ${Pt}, box-shadow 60ms ease` : `width 200ms ${Nt}, height 200ms ${Nt}, box-shadow 150ms ease`,
2681
+ pointerEvents: "none",
2682
+ border: "1.5px solid var(--sk-border)"
2683
+ };
2684
+ return /* @__PURE__ */ f("div", {
2685
+ className: $("w-full select-none font-[system-ui,_-apple-system,_sans-serif]", x && "opacity-50 cursor-not-allowed", C),
2686
+ children: [
2687
+ (g != null || v) && /* @__PURE__ */ f("div", {
2688
+ className: "flex items-center justify-between mb-[8px]",
2689
+ children: [g != null && /* @__PURE__ */ d("label", {
2690
+ htmlFor: D,
2691
+ className: $("text-[12px] leading-none font-medium text-[var(--sk-text-label)]", x && "opacity-60"),
2692
+ children: g
2693
+ }), v && /* @__PURE__ */ d("span", {
2694
+ className: "text-[12px] leading-none text-[var(--sk-text-muted)] tabular-nums",
2695
+ children: P
2696
+ })]
2697
+ }),
2698
+ /* @__PURE__ */ f("div", {
2699
+ className: "relative",
2700
+ style: { paddingBlock: z / 2 },
2701
+ children: [
2702
+ /* @__PURE__ */ f("div", {
2703
+ style: U,
2704
+ children: [/* @__PURE__ */ d("div", { style: W }), /* @__PURE__ */ d("div", { style: G })]
2705
+ }),
2706
+ /* @__PURE__ */ d("input", {
2707
+ ref: ee,
2708
+ id: D,
2709
+ type: "range",
2710
+ min: e,
2711
+ max: t,
2712
+ step: n,
2713
+ value: P,
2714
+ disabled: x,
2715
+ "aria-valuemin": e,
2716
+ "aria-valuemax": t,
2717
+ "aria-valuenow": P,
2718
+ "aria-describedby": O,
2719
+ onChange: L,
2720
+ onMouseDown: () => !x && I(!0),
2721
+ onMouseUp: () => I(!1),
2722
+ onMouseLeave: () => I(!1),
2723
+ onTouchStart: () => !x && I(!0),
2724
+ onTouchEnd: () => I(!1),
2725
+ className: "absolute inset-0 w-full h-full opacity-0 cursor-pointer disabled:cursor-not-allowed",
2726
+ style: { margin: 0 }
2727
+ }),
2728
+ b && b.length > 0 && /* @__PURE__ */ d("div", {
2729
+ className: "relative mt-[4px]",
2730
+ style: { height: 16 },
2731
+ children: b.map((n) => /* @__PURE__ */ f("div", {
2732
+ className: "absolute flex flex-col items-center gap-[2px]",
2733
+ style: {
2734
+ left: `${(n.value - e) / (t - e || 1) * 100}%`,
2735
+ transform: "translateX(-50%)"
2736
+ },
2737
+ children: [/* @__PURE__ */ d("div", { className: "w-[1px] h-[4px] bg-[var(--sk-border-strong)] rounded-full" }), n.label && /* @__PURE__ */ d("span", {
2738
+ className: "text-[10px] leading-none text-[var(--sk-text-muted)]",
2739
+ children: n.label
2740
+ })]
2741
+ }, n.value))
2742
+ }),
2743
+ y && !b && /* @__PURE__ */ f("div", {
2744
+ className: "flex justify-between mt-[4px]",
2745
+ children: [/* @__PURE__ */ d("span", {
2746
+ className: "text-[10px] leading-none text-[var(--sk-text-desc)] tabular-nums",
2747
+ children: e
2748
+ }), /* @__PURE__ */ d("span", {
2749
+ className: "text-[10px] leading-none text-[var(--sk-text-desc)] tabular-nums",
2750
+ children: t
2751
+ })]
2752
+ })
2753
+ ]
2754
+ }),
2755
+ _ != null && /* @__PURE__ */ d("div", {
2756
+ id: O,
2757
+ className: "mt-[4px] text-[12px] leading-snug text-[var(--sk-text-desc)]",
2758
+ children: _
2759
+ })
2760
+ ]
2761
+ });
2762
+ }), Bt = _([
2763
+ "w-full min-w-0",
2764
+ "font-[system-ui,_-apple-system,_sans-serif] text-[13px] text-[var(--sk-text)] leading-[1.5]",
2765
+ "outline-none resize-none",
2766
+ "placeholder:text-[var(--sk-text-placeholder)]",
2767
+ "disabled:opacity-50 disabled:cursor-not-allowed",
2768
+ "transition-[box-shadow,border-color,background-color,opacity] duration-[150ms] ease-out"
2769
+ ].join(" "), {
2770
+ variants: {
2771
+ variant: {
2772
+ default: [
2773
+ "bg-[var(--sk-surface)] border",
2774
+ "rounded-[var(--field-radius)]",
2775
+ "btn-shadow hover:btn-shadow-hover",
2776
+ "focus-visible:btn-shadow-hover",
2777
+ "hover:brightness-[1.03]"
2778
+ ].join(" "),
2779
+ filled: [
2780
+ "bg-[var(--sk-surface-filled)] border border-[var(--sk-border)]",
2781
+ "rounded-[var(--field-radius)]",
2782
+ "shadow-[inset_0_1px_3px_var(--sk-shadow-b)]",
2783
+ "hover:bg-[var(--sk-surface-hover)]",
2784
+ "focus-visible:bg-[var(--sk-surface)] focus-visible:shadow-[inset_0_1px_2px_var(--sk-shadow-c)]"
2785
+ ].join(" "),
2786
+ ghost: [
2787
+ "bg-transparent border-0 border-b-[1.5px] border-[var(--sk-border-strong)]",
2788
+ "rounded-none shadow-none",
2789
+ "hover:border-[var(--sk-border-strong)]",
2790
+ "focus-visible:border-b-2 focus-visible:bg-[var(--sk-surface)]"
2791
+ ].join(" ")
2792
+ },
2793
+ tone: {
2794
+ rose: "border-pastel-rose-dark/[0.25] focus-visible:border-pastel-rose-dark/[0.55]",
2795
+ peach: "border-pastel-peach-dark/[0.25] focus-visible:border-pastel-peach-dark/[0.55]",
2796
+ lemon: "border-pastel-lemon-dark/[0.25] focus-visible:border-pastel-lemon-dark/[0.55]",
2797
+ mint: "border-pastel-mint-dark/[0.25] focus-visible:border-pastel-mint-dark/[0.55]",
2798
+ sky: "border-pastel-sky-dark/[0.25] focus-visible:border-pastel-sky-dark/[0.55]",
2799
+ lavender: "border-pastel-lavender-dark/[0.25] focus-visible:border-pastel-lavender-dark/[0.55]",
2800
+ lilac: "border-pastel-lilac-dark/[0.25] focus-visible:border-pastel-lilac-dark/[0.55]",
2801
+ neutral: "border-pastel-neutral-dark/[0.25] focus-visible:border-pastel-neutral-dark/[0.55]",
2802
+ custom: "border-[var(--sk-border)]"
2803
+ },
2804
+ invalid: {
2805
+ true: "border-red-600/50 focus-visible:border-red-600/70",
2806
+ false: ""
2807
+ }
2808
+ },
2809
+ compoundVariants: [
2810
+ {
2811
+ variant: "ghost",
2812
+ tone: "rose",
2813
+ className: "border-pastel-rose-dark/[0.40] focus-visible:border-pastel-rose-dark/[0.70]"
2814
+ },
2815
+ {
2816
+ variant: "ghost",
2817
+ tone: "peach",
2818
+ className: "border-pastel-peach-dark/[0.40] focus-visible:border-pastel-peach-dark/[0.70]"
2819
+ },
2820
+ {
2821
+ variant: "ghost",
2822
+ tone: "lemon",
2823
+ className: "border-pastel-lemon-dark/[0.40] focus-visible:border-pastel-lemon-dark/[0.70]"
2824
+ },
2825
+ {
2826
+ variant: "ghost",
2827
+ tone: "mint",
2828
+ className: "border-pastel-mint-dark/[0.40] focus-visible:border-pastel-mint-dark/[0.70]"
2829
+ },
2830
+ {
2831
+ variant: "ghost",
2832
+ tone: "sky",
2833
+ className: "border-pastel-sky-dark/[0.40] focus-visible:border-pastel-sky-dark/[0.70]"
2834
+ },
2835
+ {
2836
+ variant: "ghost",
2837
+ tone: "lavender",
2838
+ className: "border-pastel-lavender-dark/[0.40] focus-visible:border-pastel-lavender-dark/[0.70]"
2839
+ },
2840
+ {
2841
+ variant: "ghost",
2842
+ tone: "lilac",
2843
+ className: "border-pastel-lilac-dark/[0.40] focus-visible:border-pastel-lilac-dark/[0.70]"
2844
+ },
2845
+ {
2846
+ variant: "ghost",
2847
+ tone: "neutral",
2848
+ className: "border-pastel-neutral-dark/[0.35] focus-visible:border-pastel-neutral-dark/[0.65]"
2849
+ }
2850
+ ],
2851
+ defaultVariants: {
2852
+ variant: "default",
2853
+ tone: "neutral",
2854
+ invalid: !1
2855
+ }
2856
+ }), Vt = n(function({ id: e, label: t, description: n, error: a, radius: s = 12, rows: u = 4, autoResize: p = !1, showCount: m = !1, maxLength: h, className: g, containerClassName: _, variant: v, tone: y, invalid: b, required: x, disabled: S, accentColor: C, "aria-describedby": w, onChange: T, ...E }, D) {
2857
+ let O = c(null), k = o(), A = e ?? `textarea-${k}`, j = n ? `${A}-description` : void 0, M = a ? `${A}-error` : void 0, N = [
2858
+ w,
2859
+ j,
2860
+ M
2861
+ ].filter(Boolean).join(" ") || void 0, P = b ?? !!a, { accentColor: F } = i($e), I = C ?? F, [ee, L] = l(!1);
2862
+ lt(O);
2863
+ let R = r((e) => {
2864
+ O.current = e, typeof D == "function" ? D(e) : D != null && (D.current = e);
2865
+ }, [D]), z = (e) => {
2866
+ p && O.current && (O.current.style.height = "auto", O.current.style.height = `${O.current.scrollHeight}px`), T?.(e);
2867
+ }, B = I ? "custom" : y ?? "neutral", V;
2868
+ if (I && !P) {
2869
+ let { border: e } = Ze(I);
2870
+ V = { borderColor: ee ? `${e}99` : `${e}44` };
2871
+ }
2872
+ let H = typeof E.value == "string" ? E.value.length : typeof E.defaultValue == "string" ? E.defaultValue.length : 0;
2873
+ return /* @__PURE__ */ f("div", {
2874
+ className: $("w-full", _),
2875
+ style: { "--field-radius": `${s}px` },
2876
+ children: [
2877
+ t != null && /* @__PURE__ */ d("label", {
2878
+ htmlFor: A,
2879
+ className: $("block mb-[6px] text-[12px] leading-none font-medium text-[var(--sk-text-label)]", S && "opacity-60"),
2880
+ children: /* @__PURE__ */ f("span", {
2881
+ className: "inline-flex items-center gap-2",
2882
+ children: [t, x ? /* @__PURE__ */ d("span", {
2883
+ className: "text-[var(--sk-text-muted)]",
2884
+ children: "*"
2885
+ }) : null]
2886
+ })
2887
+ }),
2888
+ /* @__PURE__ */ f("div", {
2889
+ className: "relative",
2890
+ children: [/* @__PURE__ */ d("textarea", {
2891
+ ref: R,
2892
+ id: A,
2893
+ rows: u,
2894
+ maxLength: h,
2895
+ className: $(Bt({
2896
+ variant: v,
2897
+ tone: B,
2898
+ invalid: P
2899
+ }), "px-[12px] py-[10px]", g),
2900
+ style: V,
2901
+ "aria-invalid": P || void 0,
2902
+ "aria-describedby": N,
2903
+ required: x,
2904
+ disabled: S,
2905
+ onChange: z,
2906
+ onFocus: (e) => {
2907
+ L(!0), E.onFocus?.(e);
2908
+ },
2909
+ onBlur: (e) => {
2910
+ L(!1), E.onBlur?.(e);
2911
+ },
2912
+ ...E
2913
+ }), m && h != null && /* @__PURE__ */ f("div", {
2914
+ className: "absolute bottom-[8px] right-[10px] text-[11px] leading-none text-[var(--sk-text-desc)] pointer-events-none",
2915
+ children: [
2916
+ H,
2917
+ "/",
2918
+ h
2919
+ ]
2920
+ })]
2921
+ }),
2922
+ n != null && /* @__PURE__ */ d("div", {
2923
+ id: j,
2924
+ className: "mt-[6px] text-[12px] leading-snug text-[var(--sk-text-desc)]",
2925
+ children: n
2926
+ }),
2927
+ a != null && /* @__PURE__ */ d("div", {
2928
+ id: M,
2929
+ className: "mt-[6px] text-[12px] leading-snug text-[var(--sk-text-error)]",
2930
+ children: a
2931
+ })
2932
+ ]
2933
+ });
2934
+ }), Ht = {
2935
+ sm: 4,
2936
+ default: 8,
2937
+ lg: 12
2938
+ }, Ut = {
2939
+ rose: "#F9C5D1",
2940
+ peach: "#FDDBB4",
2941
+ lemon: "#FFF1A8",
2942
+ mint: "#B8F0D8",
2943
+ sky: "#B8DFFE",
2944
+ lavender: "#D4C5F9",
2945
+ lilac: "#F0C8F0",
2946
+ neutral: "#E8E4DC"
2947
+ }, Wt = {
2948
+ rose: "#c2607a",
2949
+ peach: "#b87a3a",
2950
+ lemon: "#8a7820",
2951
+ mint: "#2a7a58",
2952
+ sky: "#2a68a0",
2953
+ lavender: "#5a3eaa",
2954
+ lilac: "#8a3a8a",
2955
+ neutral: "#5a5550"
2956
+ };
2957
+ function Gt({ value: e, tone: t = "lavender", accentColor: n, size: r = "default", label: a, showValue: o = !1, animated: s = !0, className: c }) {
2958
+ let { accentColor: l } = i($e), u = n ?? l, p = e === void 0, m = p ? 0 : Math.max(0, Math.min(100, e)), h = Ht[r], { fill: g, border: _ } = Qe(t, Ut, Wt, u), v = {
2959
+ position: "relative",
2960
+ height: h,
2961
+ borderRadius: 999,
2962
+ background: "var(--sk-track-empty)",
2963
+ overflow: "hidden",
2964
+ boxShadow: "inset 0 1px 2px var(--sk-shadow-c)"
2965
+ }, y = p ? {
2966
+ position: "absolute",
2967
+ top: 0,
2968
+ height: "100%",
2969
+ width: "40%",
2970
+ borderRadius: 999,
2971
+ background: g,
2972
+ boxShadow: `0 0 0 1px ${_}33`,
2973
+ animation: s ? "progress-indeterminate 1.6s ease-in-out infinite" : "none"
2974
+ } : {
2975
+ position: "absolute",
2976
+ top: 0,
2977
+ left: 0,
2978
+ height: "100%",
2979
+ width: `${m}%`,
2980
+ borderRadius: 999,
2981
+ background: g,
2982
+ boxShadow: `0 0 0 1px ${_}33`,
2983
+ transition: s ? "width 400ms cubic-bezier(0.4, 0, 0.2, 1)" : "none"
2984
+ };
2985
+ return /* @__PURE__ */ f("div", {
2986
+ className: $("w-full font-[system-ui,_-apple-system,_sans-serif]", c),
2987
+ children: [(a != null || o && !p) && /* @__PURE__ */ f("div", {
2988
+ className: "flex items-center justify-between mb-[6px]",
2989
+ children: [a != null && /* @__PURE__ */ d("span", {
2990
+ className: "text-[12px] leading-none font-medium text-[var(--sk-text-label)]",
2991
+ children: a
2992
+ }), o && !p && /* @__PURE__ */ f("span", {
2993
+ className: "text-[12px] leading-none text-[var(--sk-text-muted)] tabular-nums",
2994
+ children: [m, "%"]
2995
+ })]
2996
+ }), /* @__PURE__ */ d("div", {
2997
+ role: "progressbar",
2998
+ "aria-valuenow": p ? void 0 : m,
2999
+ "aria-valuemin": p ? void 0 : 0,
3000
+ "aria-valuemax": p ? void 0 : 100,
3001
+ style: v,
3002
+ children: /* @__PURE__ */ d("div", { style: y })
3003
+ })]
3004
+ });
3005
+ }
3006
+ //#endregion
3007
+ //#region src/components/Card/Card.tsx
3008
+ var Kt = _([
3009
+ "font-[system-ui,_-apple-system,_sans-serif]",
3010
+ "overflow-hidden",
3011
+ "transition-[box-shadow,background-color,border-color] duration-150 ease-out"
3012
+ ].join(" "), {
3013
+ variants: {
3014
+ variant: {
3015
+ elevated: "bg-[var(--sk-surface)] border btn-shadow",
3016
+ filled: "border",
3017
+ outline: "bg-transparent border"
3018
+ },
3019
+ tone: {
3020
+ rose: "",
3021
+ peach: "",
3022
+ lemon: "",
3023
+ mint: "",
3024
+ sky: "",
3025
+ lavender: "",
3026
+ lilac: "",
3027
+ neutral: "",
3028
+ custom: ""
3029
+ }
3030
+ },
3031
+ compoundVariants: [
3032
+ {
3033
+ variant: "elevated",
3034
+ tone: "rose",
3035
+ className: "border-pastel-rose-dark/[0.15]"
3036
+ },
3037
+ {
3038
+ variant: "elevated",
3039
+ tone: "peach",
3040
+ className: "border-pastel-peach-dark/[0.15]"
3041
+ },
3042
+ {
3043
+ variant: "elevated",
3044
+ tone: "lemon",
3045
+ className: "border-pastel-lemon-dark/[0.15]"
3046
+ },
3047
+ {
3048
+ variant: "elevated",
3049
+ tone: "mint",
3050
+ className: "border-pastel-mint-dark/[0.15]"
3051
+ },
3052
+ {
3053
+ variant: "elevated",
3054
+ tone: "sky",
3055
+ className: "border-pastel-sky-dark/[0.15]"
3056
+ },
3057
+ {
3058
+ variant: "elevated",
3059
+ tone: "lavender",
3060
+ className: "border-pastel-lavender-dark/[0.15]"
3061
+ },
3062
+ {
3063
+ variant: "elevated",
3064
+ tone: "lilac",
3065
+ className: "border-pastel-lilac-dark/[0.15]"
3066
+ },
3067
+ {
3068
+ variant: "elevated",
3069
+ tone: "neutral",
3070
+ className: "border-pastel-neutral-dark/[0.15]"
3071
+ },
3072
+ {
3073
+ variant: "filled",
3074
+ tone: "rose",
3075
+ className: "bg-pastel-rose/40 border-pastel-rose-dark/[0.18]"
3076
+ },
3077
+ {
3078
+ variant: "filled",
3079
+ tone: "peach",
3080
+ className: "bg-pastel-peach/40 border-pastel-peach-dark/[0.18]"
3081
+ },
3082
+ {
3083
+ variant: "filled",
3084
+ tone: "lemon",
3085
+ className: "bg-pastel-lemon/45 border-pastel-lemon-dark/[0.18]"
3086
+ },
3087
+ {
3088
+ variant: "filled",
3089
+ tone: "mint",
3090
+ className: "bg-pastel-mint/40 border-pastel-mint-dark/[0.18]"
3091
+ },
3092
+ {
3093
+ variant: "filled",
3094
+ tone: "sky",
3095
+ className: "bg-pastel-sky/40 border-pastel-sky-dark/[0.18]"
3096
+ },
3097
+ {
3098
+ variant: "filled",
3099
+ tone: "lavender",
3100
+ className: "bg-pastel-lavender/40 border-pastel-lavender-dark/[0.18]"
3101
+ },
3102
+ {
3103
+ variant: "filled",
3104
+ tone: "lilac",
3105
+ className: "bg-pastel-lilac/40 border-pastel-lilac-dark/[0.18]"
3106
+ },
3107
+ {
3108
+ variant: "filled",
3109
+ tone: "neutral",
3110
+ className: "bg-pastel-neutral/40 border-pastel-neutral-dark/[0.18]"
3111
+ },
3112
+ {
3113
+ variant: "outline",
3114
+ tone: "rose",
3115
+ className: "border-pastel-rose-dark/[0.35]"
3116
+ },
3117
+ {
3118
+ variant: "outline",
3119
+ tone: "peach",
3120
+ className: "border-pastel-peach-dark/[0.35]"
3121
+ },
3122
+ {
3123
+ variant: "outline",
3124
+ tone: "lemon",
3125
+ className: "border-pastel-lemon-dark/[0.35]"
3126
+ },
3127
+ {
3128
+ variant: "outline",
3129
+ tone: "mint",
3130
+ className: "border-pastel-mint-dark/[0.35]"
3131
+ },
3132
+ {
3133
+ variant: "outline",
3134
+ tone: "sky",
3135
+ className: "border-pastel-sky-dark/[0.35]"
3136
+ },
3137
+ {
3138
+ variant: "outline",
3139
+ tone: "lavender",
3140
+ className: "border-pastel-lavender-dark/[0.35]"
3141
+ },
3142
+ {
3143
+ variant: "outline",
3144
+ tone: "lilac",
3145
+ className: "border-pastel-lilac-dark/[0.35]"
3146
+ },
3147
+ {
3148
+ variant: "outline",
3149
+ tone: "neutral",
3150
+ className: "border-pastel-neutral-dark/[0.35]"
3151
+ }
3152
+ ],
3153
+ defaultVariants: {
3154
+ variant: "elevated",
3155
+ tone: "neutral"
3156
+ }
3157
+ });
3158
+ function qt({ as: e = "div", variant: t = "elevated", tone: n = "neutral", accentColor: r, radius: a = 16, padding: o, className: s, style: c, children: l, ...u }) {
3159
+ let { accentColor: f } = i($e), p = r ?? f, m;
3160
+ if (p) {
3161
+ let { fill: e, border: n } = Ze(p);
3162
+ m = t === "filled" ? {
3163
+ backgroundColor: `${e}66`,
3164
+ borderColor: `${n}30`
3165
+ } : t === "outline" ? { borderColor: `${n}55` } : { borderColor: `${n}25` };
3166
+ }
3167
+ let h = {
3168
+ borderRadius: a,
3169
+ ...o == null ? {} : { padding: o },
3170
+ ...m,
3171
+ ...c
3172
+ };
3173
+ return /* @__PURE__ */ d(e, {
3174
+ className: $(Kt({
3175
+ variant: t,
3176
+ tone: p ? "custom" : n
3177
+ }), s),
3178
+ style: h,
3179
+ ...u,
3180
+ children: l
3181
+ });
3182
+ }
3183
+ function Jt({ className: e, children: t, ...n }) {
3184
+ return /* @__PURE__ */ d("div", {
3185
+ className: $("px-[20px] py-[16px] border-b border-[var(--sk-border-subtle)] text-[var(--sk-text)]", e),
3186
+ ...n,
3187
+ children: t
3188
+ });
3189
+ }
3190
+ function Yt({ className: e, children: t, ...n }) {
3191
+ return /* @__PURE__ */ d("div", {
3192
+ className: $("px-[20px] py-[16px] text-[var(--sk-text)]", e),
3193
+ ...n,
3194
+ children: t
3195
+ });
3196
+ }
3197
+ function Xt({ className: e, children: t, ...n }) {
3198
+ return /* @__PURE__ */ d("div", {
3199
+ className: $("px-[20px] py-[14px] border-t border-[var(--sk-border-subtle)] text-[var(--sk-text)]", e),
3200
+ ...n,
3201
+ children: t
3202
+ });
3203
+ }
3204
+ qt.Header = Jt, qt.Body = Yt, qt.Footer = Xt;
3205
+ //#endregion
3206
+ //#region src/tokens/colors.ts
3207
+ var Zt = [
3208
+ {
3209
+ id: "rose",
3210
+ label: "Rose",
3211
+ hex: "#F9C5D1",
3212
+ darkHex: "#c2607a"
3213
+ },
3214
+ {
3215
+ id: "peach",
3216
+ label: "Peach",
3217
+ hex: "#FDDBB4",
3218
+ darkHex: "#b87a3a"
3219
+ },
3220
+ {
3221
+ id: "lemon",
3222
+ label: "Lemon",
3223
+ hex: "#FFF1A8",
3224
+ darkHex: "#8a7820"
3225
+ },
3226
+ {
3227
+ id: "mint",
3228
+ label: "Mint",
3229
+ hex: "#B8F0D8",
3230
+ darkHex: "#2a7a58"
3231
+ },
3232
+ {
3233
+ id: "sky",
3234
+ label: "Sky",
3235
+ hex: "#B8DFFE",
3236
+ darkHex: "#2a68a0"
3237
+ },
3238
+ {
3239
+ id: "lavender",
3240
+ label: "Lavender",
3241
+ hex: "#D4C5F9",
3242
+ darkHex: "#5a3eaa"
3243
+ },
3244
+ {
3245
+ id: "lilac",
3246
+ label: "Lilac",
3247
+ hex: "#F0C8F0",
3248
+ darkHex: "#8a3a8a"
3249
+ },
3250
+ {
3251
+ id: "neutral",
3252
+ label: "Neutral",
3253
+ hex: "#E8E4DC",
3254
+ darkHex: "#5a5550"
3255
+ }
3256
+ ], Qt = Object.fromEntries(Zt.map((e) => [e.id, {
3257
+ hex: e.hex,
3258
+ darkHex: e.darkHex
3259
+ }]));
3260
+ //#endregion
3261
+ //#region src/hooks/useColorPickerSound.ts
3262
+ function $t(e) {
3263
+ return e.current ||= new (window.AudioContext ?? window.webkitAudioContext)(), e.current;
3264
+ }
3265
+ var en = {
3266
+ rose: 523.25,
3267
+ peach: 587.33,
3268
+ lemon: 659.25,
3269
+ mint: 698.46,
3270
+ sky: 783.99,
3271
+ lavender: 880,
3272
+ lilac: 987.77,
3273
+ neutral: 261.63
3274
+ };
3275
+ function tn(e, t) {
3276
+ try {
3277
+ let n = $t(e), r = n.currentTime, i = n.createOscillator(), a = n.createGain(), o = n.createBiquadFilter();
3278
+ o.type = "lowpass", o.frequency.value = t * 3, o.Q.value = .8, i.connect(o), o.connect(a), a.connect(n.destination), i.type = "sine", i.frequency.setValueAtTime(t, r), i.frequency.exponentialRampToValueAtTime(t * .98, r + .15), a.gain.setValueAtTime(1e-4, r), a.gain.exponentialRampToValueAtTime(.08, r + .008), a.gain.exponentialRampToValueAtTime(1e-4, r + .22), i.start(r), i.stop(r + .25);
3279
+ } catch {}
3280
+ }
3281
+ function nn() {
3282
+ return c(null);
3283
+ }
3284
+ function rn(e, t) {
3285
+ tn(e, en[t] ?? 523.25);
3286
+ }
3287
+ //#endregion
3288
+ //#region src/components/ColorPicker/ColorPicker.tsx
3289
+ var an = {
3290
+ default: 32,
3291
+ sm: 24
3292
+ }, on = {
3293
+ default: 14,
3294
+ sm: 11
3295
+ }, sn = ({ size: e }) => /* @__PURE__ */ d("svg", {
3296
+ width: e,
3297
+ height: e,
3298
+ viewBox: "0 0 24 24",
3299
+ fill: "none",
3300
+ stroke: "currentColor",
3301
+ strokeWidth: "2.8",
3302
+ strokeLinecap: "round",
3303
+ strokeLinejoin: "round",
3304
+ children: /* @__PURE__ */ d("path", { d: "M20 6L9 17l-5-5" })
3305
+ });
3306
+ function cn({ value: t, defaultValue: n, onChange: r, size: i = "default", disabled: a = !1, label: s, description: c, className: l, id: u }) {
3307
+ let p = nn(), m = o(), h = u ?? `colorpicker-${m}`, g = c ? `${h}-desc` : void 0, [_, v] = e.useState(n), y = t !== void 0, b = y ? t : _, x = an[i], S = on[i], C = (e) => {
3308
+ a || (y || v(e), r?.(e), rn(p, e));
3309
+ };
3310
+ return /* @__PURE__ */ f("div", {
3311
+ className: $("inline-flex flex-col gap-[8px] font-[system-ui,_-apple-system,_sans-serif]", l),
3312
+ children: [
3313
+ s != null && /* @__PURE__ */ d("div", {
3314
+ className: $("text-[12px] leading-none font-medium text-[var(--sk-text-label)]", a && "opacity-60"),
3315
+ children: s
3316
+ }),
3317
+ /* @__PURE__ */ d("div", {
3318
+ role: "radiogroup",
3319
+ id: h,
3320
+ "aria-describedby": g,
3321
+ "aria-label": typeof s == "string" ? s : void 0,
3322
+ className: "flex flex-wrap gap-[8px]",
3323
+ children: Zt.map((e) => {
3324
+ let t = e.id === b;
3325
+ return /* @__PURE__ */ d("button", {
3326
+ type: "button",
3327
+ role: "radio",
3328
+ "aria-checked": t,
3329
+ "aria-label": e.label,
3330
+ disabled: a,
3331
+ onClick: () => C(e.id),
3332
+ className: $("rounded-full outline-none cursor-pointer", "transition-[transform,box-shadow] duration-150 ease-out", "hover:scale-[1.12]", "focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-[var(--sk-border-strong)]", a && "opacity-50 cursor-not-allowed pointer-events-none", t ? "scale-[1.08] shadow-[0_0_0_2.5px_var(--sk-border-strong),inset_0_2px_6px_rgba(0,0,0,0.15)]" : "btn-shadow"),
3333
+ style: {
3334
+ width: x,
3335
+ height: x,
3336
+ background: e.hex,
3337
+ display: "inline-flex",
3338
+ alignItems: "center",
3339
+ justifyContent: "center",
3340
+ border: `1.5px solid ${e.darkHex}33`
3341
+ },
3342
+ children: t && /* @__PURE__ */ d("span", {
3343
+ style: {
3344
+ color: e.darkHex,
3345
+ display: "flex"
3346
+ },
3347
+ children: /* @__PURE__ */ d(sn, { size: S })
3348
+ })
3349
+ }, e.id);
3350
+ })
3351
+ }),
3352
+ c != null && /* @__PURE__ */ d("div", {
3353
+ id: g,
3354
+ className: "text-[12px] leading-snug text-[var(--sk-text-desc)]",
3355
+ children: c
3356
+ })
3357
+ ]
3358
+ });
3359
+ }
3360
+ //#endregion
3361
+ //#region src/hooks/usePickerSound.ts
3362
+ function ln(e) {
3363
+ return e.current ||= new (window.AudioContext ?? window.webkitAudioContext)(), e.current;
3364
+ }
3365
+ function un(e, t) {
3366
+ try {
3367
+ let n = ln(e), r = n.currentTime, i = n.sampleRate * .08, a = n.createBuffer(1, i, n.sampleRate), o = a.getChannelData(0);
3368
+ for (let e = 0; e < i; e++) o[e] = (Math.random() * 2 - 1) * .4;
3369
+ let s = n.createBufferSource();
3370
+ s.buffer = a;
3371
+ let c = n.createBiquadFilter();
3372
+ c.type = "bandpass", c.frequency.value = t === "next" ? 900 : 600, c.Q.value = 2.5;
3373
+ let l = n.createGain();
3374
+ s.connect(c), c.connect(l), l.connect(n.destination), l.gain.setValueAtTime(1e-4, r), l.gain.exponentialRampToValueAtTime(.07, r + .01), l.gain.exponentialRampToValueAtTime(1e-4, r + .07), s.start(r);
3375
+ } catch {}
3376
+ }
3377
+ function dn(e) {
3378
+ try {
3379
+ let t = ln(e), n = t.currentTime, r = t.createOscillator(), i = t.createGain();
3380
+ r.connect(i), i.connect(t.destination), r.type = "sine", r.frequency.setValueAtTime(1600, n), r.frequency.exponentialRampToValueAtTime(1050, n + .18), i.gain.setValueAtTime(1e-4, n), i.gain.exponentialRampToValueAtTime(.055, n + .012), i.gain.exponentialRampToValueAtTime(1e-4, n + .26), r.start(n), r.stop(n + .28);
3381
+ } catch {}
3382
+ }
3383
+ function fn() {
3384
+ return c(null);
3385
+ }
3386
+ //#endregion
3387
+ //#region src/components/DatePicker/DatePicker.tsx
3388
+ var pn = [
3389
+ "Su",
3390
+ "Mo",
3391
+ "Tu",
3392
+ "We",
3393
+ "Th",
3394
+ "Fr",
3395
+ "Sa"
3396
+ ], mn = [
3397
+ "January",
3398
+ "February",
3399
+ "March",
3400
+ "April",
3401
+ "May",
3402
+ "June",
3403
+ "July",
3404
+ "August",
3405
+ "September",
3406
+ "October",
3407
+ "November",
3408
+ "December"
3409
+ ], hn = {
3410
+ rose: "#F9C5D1",
3411
+ peach: "#FDDBB4",
3412
+ lemon: "#FFF1A8",
3413
+ mint: "#B8F0D8",
3414
+ sky: "#B8DFFE",
3415
+ lavender: "#D4C5F9",
3416
+ lilac: "#F0C8F0",
3417
+ neutral: "#E8E4DC"
3418
+ }, gn = {
3419
+ rose: "#c2607a",
3420
+ peach: "#b87a3a",
3421
+ lemon: "#8a7820",
3422
+ mint: "#2a7a58",
3423
+ sky: "#2a68a0",
3424
+ lavender: "#5a3eaa",
3425
+ lilac: "#8a3a8a",
3426
+ neutral: "#5a5550"
3427
+ };
3428
+ function _n(e, t) {
3429
+ return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
3430
+ }
3431
+ function vn(e, t) {
3432
+ return new Date(e.getFullYear(), e.getMonth(), e.getDate()) < new Date(t.getFullYear(), t.getMonth(), t.getDate());
3433
+ }
3434
+ function yn(e, t) {
3435
+ return new Date(e.getFullYear(), e.getMonth(), e.getDate()) > new Date(t.getFullYear(), t.getMonth(), t.getDate());
3436
+ }
3437
+ function bn(e) {
3438
+ return e.toLocaleDateString("en-US", {
3439
+ year: "numeric",
3440
+ month: "short",
3441
+ day: "numeric"
3442
+ });
3443
+ }
3444
+ function xn([e, t]) {
3445
+ return !e && !t ? "" : e && !t ? bn(e) : !e && t ? bn(t) : `${bn(e)} – ${bn(t)}`;
3446
+ }
3447
+ function Sn(e) {
3448
+ let t = e.trim();
3449
+ if (!t) return null;
3450
+ let n = new Date(t);
3451
+ if (!isNaN(n.getTime()) && n.getFullYear() > 1e3 && n.getFullYear() < 3e3) return n;
3452
+ let r = t.match(/^(\d{1,2})[/-](\d{1,2})[/-](\d{4})$/);
3453
+ if (r) {
3454
+ let e = new Date(+r[3], r[1] - 1, +r[2]);
3455
+ if (!isNaN(e.getTime())) return e;
3456
+ }
3457
+ let i = t.match(/^(\d{4})[/-](\d{1,2})[/-](\d{1,2})$/);
3458
+ if (i) {
3459
+ let e = new Date(+i[1], i[2] - 1, +i[3]);
3460
+ if (!isNaN(e.getTime())) return e;
3461
+ }
3462
+ return null;
3463
+ }
3464
+ function Cn(e, t) {
3465
+ return new Date(e, t + 1, 0).getDate();
3466
+ }
3467
+ function wn(e, t) {
3468
+ return new Date(e, t, 1).getDay();
3469
+ }
3470
+ function Tn(e, t) {
3471
+ return t === 11 ? [e + 1, 0] : [e, t + 1];
3472
+ }
3473
+ var En = () => /* @__PURE__ */ f("svg", {
3474
+ width: "14",
3475
+ height: "14",
3476
+ viewBox: "0 0 24 24",
3477
+ fill: "none",
3478
+ stroke: "currentColor",
3479
+ strokeWidth: "2",
3480
+ strokeLinecap: "round",
3481
+ strokeLinejoin: "round",
3482
+ children: [
3483
+ /* @__PURE__ */ d("rect", {
3484
+ x: "3",
3485
+ y: "4",
3486
+ width: "18",
3487
+ height: "18",
3488
+ rx: "2"
3489
+ }),
3490
+ /* @__PURE__ */ d("line", {
3491
+ x1: "16",
3492
+ y1: "2",
3493
+ x2: "16",
3494
+ y2: "6"
3495
+ }),
3496
+ /* @__PURE__ */ d("line", {
3497
+ x1: "8",
3498
+ y1: "2",
3499
+ x2: "8",
3500
+ y2: "6"
3501
+ }),
3502
+ /* @__PURE__ */ d("line", {
3503
+ x1: "3",
3504
+ y1: "10",
3505
+ x2: "21",
3506
+ y2: "10"
3507
+ })
3508
+ ]
3509
+ }), Dn = () => /* @__PURE__ */ d("svg", {
3510
+ width: "14",
3511
+ height: "14",
3512
+ viewBox: "0 0 24 24",
3513
+ fill: "none",
3514
+ stroke: "currentColor",
3515
+ strokeWidth: "2.2",
3516
+ strokeLinecap: "round",
3517
+ strokeLinejoin: "round",
3518
+ children: /* @__PURE__ */ d("path", { d: "M15 18l-6-6 6-6" })
3519
+ }), On = () => /* @__PURE__ */ d("svg", {
3520
+ width: "14",
3521
+ height: "14",
3522
+ viewBox: "0 0 24 24",
3523
+ fill: "none",
3524
+ stroke: "currentColor",
3525
+ strokeWidth: "2.2",
3526
+ strokeLinecap: "round",
3527
+ strokeLinejoin: "round",
3528
+ children: /* @__PURE__ */ d("path", { d: "M9 18l6-6-6-6" })
3529
+ });
3530
+ function kn({ activeYear: e, fill: t, border: n, onSelect: r }) {
3531
+ let i = (/* @__PURE__ */ new Date()).getFullYear(), [a, o] = l(e - e % 12), s = Array.from({ length: 12 }, (e, t) => a + t);
3532
+ return /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ f("div", {
3533
+ className: "flex items-center justify-between px-[14px] py-[12px] border-b border-[var(--sk-border-subtle)]",
3534
+ children: [
3535
+ /* @__PURE__ */ d("button", {
3536
+ type: "button",
3537
+ onClick: () => o((e) => e - 12),
3538
+ className: "w-[28px] h-[28px] rounded-full flex items-center justify-center text-[var(--sk-text-muted)] hover:bg-[var(--sk-surface-filled)] hover:text-[var(--sk-text)] outline-none cursor-pointer transition-colors duration-100",
3539
+ children: /* @__PURE__ */ d(Dn, {})
3540
+ }),
3541
+ /* @__PURE__ */ f("span", {
3542
+ className: "text-[13px] font-semibold text-[var(--sk-text-label)] select-none",
3543
+ children: [
3544
+ a,
3545
+ "–",
3546
+ a + 11
3547
+ ]
3548
+ }),
3549
+ /* @__PURE__ */ d("button", {
3550
+ type: "button",
3551
+ onClick: () => o((e) => e + 12),
3552
+ className: "w-[28px] h-[28px] rounded-full flex items-center justify-center text-[var(--sk-text-muted)] hover:bg-[var(--sk-surface-filled)] hover:text-[var(--sk-text)] outline-none cursor-pointer transition-colors duration-100",
3553
+ children: /* @__PURE__ */ d(On, {})
3554
+ })
3555
+ ]
3556
+ }), /* @__PURE__ */ d("div", {
3557
+ className: "grid grid-cols-3 gap-[4px] p-[12px]",
3558
+ children: s.map((a) => {
3559
+ let o = a === e;
3560
+ return /* @__PURE__ */ d("button", {
3561
+ type: "button",
3562
+ onClick: () => r(a),
3563
+ className: $("rounded-[8px] py-[9px] text-[13px] cursor-pointer transition-colors duration-75 outline-none", o ? "font-semibold" : "text-[var(--sk-text)] hover:bg-[var(--sk-surface-filled)]", a === i && !o && "font-semibold"),
3564
+ style: o ? {
3565
+ background: t,
3566
+ border: `1.5px solid ${n}55`
3567
+ } : void 0,
3568
+ children: a
3569
+ }, a);
3570
+ })
3571
+ })] });
3572
+ }
3573
+ function An({ year: e, month: t, mode: n, selectedDate: r, rangeStart: i, rangeEnd: a, hoverDate: o, minDate: s, maxDate: c, fill: l, border: u, focusedDate: p, onDayClick: m, onDayHover: h }) {
3574
+ let g = /* @__PURE__ */ new Date(), _ = Cn(e, t), v = wn(e, t), y = [];
3575
+ for (let e = 0; e < v; e++) y.push(null);
3576
+ for (let n = 1; n <= _; n++) y.push(new Date(e, t, n));
3577
+ let b = (e) => s != null && vn(e, s) || c != null && yn(e, c), x = i ?? null, S = a ?? (i && !a ? o ?? null : null);
3578
+ return x && S && yn(x, S) && ([x, S] = [S, x]), /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("div", {
3579
+ className: "grid grid-cols-7 px-[10px] pt-[10px] pb-[4px]",
3580
+ children: pn.map((e) => /* @__PURE__ */ d("div", {
3581
+ className: "text-center text-[11px] font-semibold text-[var(--sk-text-muted)] leading-none py-[2px]",
3582
+ children: e
3583
+ }, e))
3584
+ }), /* @__PURE__ */ d("div", {
3585
+ className: "grid grid-cols-7 px-[10px] pb-[10px] gap-y-[2px]",
3586
+ children: y.map((e, t) => {
3587
+ if (e === null) return /* @__PURE__ */ d("div", {}, `e-${t}`);
3588
+ let o = n === "single" ? r != null && _n(e, r) : i != null && _n(e, i) || a != null && _n(e, a), s = n === "range" && x != null && _n(e, x), c = n === "range" && S != null && _n(e, S), _ = n === "range" && x != null && S != null && yn(e, x) && vn(e, S), v = o || s || c, y = p != null && _n(e, p), C = _n(e, g), w = b(e), T = v ? {
3589
+ background: l,
3590
+ border: `1.5px solid ${u}55`,
3591
+ boxShadow: "inset 0 1px 0 rgba(255,255,255,0.35)"
3592
+ } : _ ? { background: `${l}99` } : y && !w ? { background: "var(--sk-surface-filled)" } : {};
3593
+ return /* @__PURE__ */ f("button", {
3594
+ type: "button",
3595
+ role: "gridcell",
3596
+ "aria-selected": o,
3597
+ "aria-disabled": w,
3598
+ tabIndex: y ? 0 : -1,
3599
+ onClick: () => !w && m(e),
3600
+ onMouseEnter: () => !w && h(e),
3601
+ onMouseLeave: () => h(null),
3602
+ className: $("relative flex items-center justify-center", "text-[12px] text-[var(--sk-text)] leading-none aspect-square", "outline-none transition-colors duration-75", !w && "cursor-pointer", w && "opacity-30 cursor-not-allowed", v ? "rounded-[8px] font-semibold" : "rounded-[8px]", C && !v && "font-semibold", !v && !_ && !w && "hover:bg-[var(--sk-surface-filled)]", _ && !s && !c && "rounded-none", s && !c && "rounded-l-[8px] rounded-r-none", !s && c && "rounded-r-[8px] rounded-l-none"),
3603
+ style: T,
3604
+ children: [/* @__PURE__ */ d("span", { children: e.getDate() }), C && !v && /* @__PURE__ */ d("span", {
3605
+ className: "absolute bottom-[3px] left-1/2 -translate-x-1/2 w-[3px] h-[3px] rounded-full",
3606
+ style: { background: u }
3607
+ })]
3608
+ }, e.getTime());
3609
+ })
3610
+ })] });
3611
+ }
3612
+ var jn = n(function({ mode: e = "single", value: t, defaultValue: n = null, onChange: s, rangeValue: u, defaultRangeValue: p = [null, null], onRangeChange: m, minDate: h, maxDate: g, disabled: _ = !1, label: v, description: y, tone: b = "lavender", accentColor: x, size: S = "default", placeholder: C, id: w, className: T, containerClassName: E }, D) {
3613
+ let O = fn(), k = o(), A = w ?? `datepicker-${k}`, j = `${A}-panel`, M = y ? `${A}-desc` : void 0, { accentColor: N } = i($e), { fill: P, border: F } = Qe(b, hn, gn, x ?? N), I = e === "single" && t !== void 0, [ee, L] = l(n), R = I ? t ?? null : ee, z = e === "range" && u !== void 0, [B, V] = l(p), H = z ? u : B, te = /* @__PURE__ */ new Date(), U = e === "single" ? R ?? te : H[0] ?? te, [W, G] = l(U.getFullYear()), [K, q] = l(U.getMonth()), [J, ne] = l("days"), [re, ie] = l(null), [ae, oe] = l("start"), [se, ce] = l(!1), le = C ?? (e === "range" ? "Pick a range…" : "Pick a date…");
3614
+ function ue() {
3615
+ return e === "range" ? xn(H) : R ? bn(R) : "";
3616
+ }
3617
+ let [Y, X] = l(ue), [de, fe] = l(!1);
3618
+ a(() => {
3619
+ de || X(ue());
3620
+ }, [
3621
+ R,
3622
+ H[0],
3623
+ H[1],
3624
+ de
3625
+ ]);
3626
+ let pe = c(null), me = c(null), he = r((e) => {
3627
+ pe.current = e, typeof D == "function" ? D(e) : D != null && (D.current = e);
3628
+ }, [D]), ge = r(() => {
3629
+ _ || (ne("days"), ce(!0));
3630
+ }, [_]), _e = r(() => {
3631
+ ce(!1), ie(null);
3632
+ }, []);
3633
+ a(() => {
3634
+ if (!se) return;
3635
+ let e = (e) => {
3636
+ pe.current?.closest(".dp-root")?.contains(e.target) || _e();
3637
+ };
3638
+ return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
3639
+ }, [se, _e]);
3640
+ let ve = () => {
3641
+ K === 0 ? (q(11), G((e) => e - 1)) : q((e) => e - 1), un(O, "prev");
3642
+ }, ye = () => {
3643
+ K === 11 ? (q(0), G((e) => e + 1)) : q((e) => e + 1), un(O, "next");
3644
+ }, Z = (e) => {
3645
+ I || L(e), s?.(e), dn(O), X(bn(e)), _e();
3646
+ }, be = (e) => {
3647
+ if (ae === "start" || H[0] && H[1]) {
3648
+ let t = [e, null];
3649
+ z || V(t), m?.(t), X(bn(e)), oe("end"), dn(O);
3650
+ } else {
3651
+ let t = H[0], n = e;
3652
+ yn(t, n) && ([t, n] = [n, t]);
3653
+ let r = [t, n];
3654
+ z || V(r), m?.(r), X(xn(r)), oe("start"), dn(O), _e();
3655
+ }
3656
+ }, xe = (t) => {
3657
+ e === "range" ? be(t) : Z(t);
3658
+ }, Se = () => {
3659
+ let t = Y.trim();
3660
+ if (!t) {
3661
+ if (e === "single") I || L(null), s?.(null);
3662
+ else {
3663
+ let e = [null, null];
3664
+ z || V(e), m?.(e);
3665
+ }
3666
+ X("");
3667
+ return;
3668
+ }
3669
+ if (e === "range") {
3670
+ let e = t.split(/\s*[–-]\s*(?=\w)/), n = Sn(e[0] ?? ""), r = e[1] ? Sn(e[1]) : null;
3671
+ if (n) {
3672
+ let e = [n, r ?? null];
3673
+ z || V(e), m?.(e), X(xn(e)), G(n.getFullYear()), q(n.getMonth());
3674
+ } else X(xn(H));
3675
+ } else {
3676
+ let e = Sn(t);
3677
+ e ? (I || L(e), s?.(e), X(bn(e)), G(e.getFullYear()), q(e.getMonth())) : X(ue());
3678
+ }
3679
+ }, Ce = S === "sm" ? 32 : 40, we = S === "sm" ? 10 : 12, Te = S === "sm" ? 12 : 13, Ee = `${mn[K]} ${W}`, [Q, De] = Tn(W, K), Oe = `${mn[De]} ${Q}`, ke = {
3680
+ position: "absolute",
3681
+ top: "calc(100% + 4px)",
3682
+ left: 0,
3683
+ zIndex: 50,
3684
+ width: e === "range" ? 560 : 280,
3685
+ borderRadius: 16,
3686
+ background: "var(--sk-bg)",
3687
+ backdropFilter: "blur(14px)",
3688
+ WebkitBackdropFilter: "blur(14px)",
3689
+ boxShadow: "0 8px 32px -6px var(--sk-shadow-b), 0 2px 6px var(--sk-shadow-c), inset 0 0 0 1px var(--sk-border)",
3690
+ overflow: "hidden"
3691
+ }, Ae = "w-[28px] h-[28px] rounded-full flex items-center justify-center text-[var(--sk-text-muted)] hover:bg-[var(--sk-surface-filled)] hover:text-[var(--sk-text)] outline-none cursor-pointer transition-colors duration-100", je = "text-[13px] font-semibold text-[var(--sk-text-label)] select-none hover:text-[var(--sk-text)] cursor-pointer transition-colors duration-100 outline-none rounded-[6px] px-[6px] py-[2px] hover:bg-[var(--sk-surface-filled)]";
3692
+ return /* @__PURE__ */ f("div", {
3693
+ className: $("w-full font-[system-ui,_-apple-system,_sans-serif] dp-root", E),
3694
+ children: [
3695
+ v != null && /* @__PURE__ */ d("label", {
3696
+ htmlFor: A,
3697
+ className: $("block mb-[6px] text-[12px] leading-none font-medium text-[var(--sk-text-label)]", _ && "opacity-60"),
3698
+ children: v
3699
+ }),
3700
+ /* @__PURE__ */ f("div", {
3701
+ className: "relative",
3702
+ children: [/* @__PURE__ */ f("div", {
3703
+ className: $("relative w-full inline-flex items-center", "bg-[var(--sk-surface)] border rounded-[12px]", "btn-shadow hover:btn-shadow-hover hover:brightness-[1.03]", "transition-[box-shadow,border-color,background-color] duration-150 ease-out", _ && "opacity-50 pointer-events-none", T),
3704
+ style: {
3705
+ height: Ce,
3706
+ borderColor: se ? `${F}88` : `${F}44`
3707
+ },
3708
+ children: [/* @__PURE__ */ d("input", {
3709
+ ref: he,
3710
+ id: A,
3711
+ type: "text",
3712
+ autoComplete: "off",
3713
+ disabled: !!_,
3714
+ placeholder: le,
3715
+ "aria-haspopup": "dialog",
3716
+ "aria-expanded": se,
3717
+ "aria-controls": se ? j : void 0,
3718
+ "aria-describedby": M,
3719
+ value: Y,
3720
+ onChange: (e) => {
3721
+ X(e.target.value), fe(!0);
3722
+ },
3723
+ onFocus: () => {
3724
+ fe(!0), ge();
3725
+ },
3726
+ onBlur: () => {
3727
+ fe(!1), Se();
3728
+ },
3729
+ onKeyDown: (e) => {
3730
+ e.key === "Enter" && e.currentTarget.blur(), e.key === "Escape" && (_e(), e.currentTarget.blur());
3731
+ },
3732
+ className: $("flex-1 min-w-0 bg-transparent outline-none cursor-text select-text", "placeholder:text-[var(--sk-text-placeholder)] text-[var(--sk-text)]"),
3733
+ style: {
3734
+ paddingInline: we,
3735
+ fontSize: Te
3736
+ }
3737
+ }), /* @__PURE__ */ d("button", {
3738
+ type: "button",
3739
+ tabIndex: -1,
3740
+ "aria-label": "Toggle calendar",
3741
+ onMouseDown: (e) => {
3742
+ e.preventDefault(), se ? _e() : (pe.current?.focus(), ge());
3743
+ },
3744
+ className: "shrink-0 flex items-center justify-center text-[var(--sk-text-muted)] hover:text-[var(--sk-text)] cursor-pointer pr-[10px] transition-colors duration-100 outline-none",
3745
+ children: /* @__PURE__ */ d(En, {})
3746
+ })]
3747
+ }), se && /* @__PURE__ */ f("div", {
3748
+ ref: me,
3749
+ id: j,
3750
+ role: "dialog",
3751
+ "aria-label": "Date picker",
3752
+ tabIndex: -1,
3753
+ style: ke,
3754
+ children: [J === "years" ? /* @__PURE__ */ d(kn, {
3755
+ activeYear: W,
3756
+ fill: P,
3757
+ border: F,
3758
+ onSelect: (e) => {
3759
+ G(e), ne("days");
3760
+ }
3761
+ }) : /* @__PURE__ */ f("div", {
3762
+ className: $("flex", e === "range" && "divide-x divide-[var(--sk-border-subtle)]"),
3763
+ children: [/* @__PURE__ */ f("div", {
3764
+ className: $(e === "range" ? "w-[280px]" : "w-full"),
3765
+ children: [/* @__PURE__ */ f("div", {
3766
+ className: "flex items-center justify-between px-[14px] py-[12px] border-b border-[var(--sk-border-subtle)]",
3767
+ children: [
3768
+ /* @__PURE__ */ d("button", {
3769
+ type: "button",
3770
+ "aria-label": "Previous month",
3771
+ onClick: ve,
3772
+ className: Ae,
3773
+ children: /* @__PURE__ */ d(Dn, {})
3774
+ }),
3775
+ /* @__PURE__ */ d("button", {
3776
+ type: "button",
3777
+ onClick: () => ne("years"),
3778
+ className: je,
3779
+ children: Ee
3780
+ }),
3781
+ e === "single" && /* @__PURE__ */ d("button", {
3782
+ type: "button",
3783
+ "aria-label": "Next month",
3784
+ onClick: ye,
3785
+ className: Ae,
3786
+ children: /* @__PURE__ */ d(On, {})
3787
+ }),
3788
+ e === "range" && /* @__PURE__ */ d("div", { className: "w-[28px]" })
3789
+ ]
3790
+ }), /* @__PURE__ */ d(An, {
3791
+ year: W,
3792
+ month: K,
3793
+ mode: e,
3794
+ selectedDate: R,
3795
+ rangeStart: H[0],
3796
+ rangeEnd: H[1],
3797
+ hoverDate: re,
3798
+ minDate: h,
3799
+ maxDate: g,
3800
+ fill: P,
3801
+ border: F,
3802
+ onDayClick: xe,
3803
+ onDayHover: ie
3804
+ })]
3805
+ }), e === "range" && /* @__PURE__ */ f("div", {
3806
+ className: "w-[280px]",
3807
+ children: [/* @__PURE__ */ f("div", {
3808
+ className: "flex items-center justify-between px-[14px] py-[12px] border-b border-[var(--sk-border-subtle)]",
3809
+ children: [
3810
+ /* @__PURE__ */ d("div", { className: "w-[28px]" }),
3811
+ /* @__PURE__ */ d("button", {
3812
+ type: "button",
3813
+ onClick: () => ne("years"),
3814
+ className: je,
3815
+ children: Oe
3816
+ }),
3817
+ /* @__PURE__ */ d("button", {
3818
+ type: "button",
3819
+ "aria-label": "Next month",
3820
+ onClick: ye,
3821
+ className: Ae,
3822
+ children: /* @__PURE__ */ d(On, {})
3823
+ })
3824
+ ]
3825
+ }), /* @__PURE__ */ d(An, {
3826
+ year: Q,
3827
+ month: De,
3828
+ mode: e,
3829
+ rangeStart: H[0],
3830
+ rangeEnd: H[1],
3831
+ hoverDate: re,
3832
+ minDate: h,
3833
+ maxDate: g,
3834
+ fill: P,
3835
+ border: F,
3836
+ onDayClick: xe,
3837
+ onDayHover: ie
3838
+ })]
3839
+ })]
3840
+ }), e === "range" && J === "days" && /* @__PURE__ */ d("div", {
3841
+ className: "px-[14px] py-[10px] border-t border-[var(--sk-border-subtle)] text-[11px] text-[var(--sk-text-muted)] text-center",
3842
+ children: ae === "start" || H[0] && H[1] ? "Click to set start date" : "Click to set end date"
3843
+ })]
3844
+ })]
3845
+ }),
3846
+ y != null && /* @__PURE__ */ d("div", {
3847
+ id: M,
3848
+ className: "mt-[6px] text-[12px] leading-snug text-[var(--sk-text-desc)]",
3849
+ children: y
3850
+ })
3851
+ ]
3852
+ });
3853
+ }), Mn = {
3854
+ info: {
3855
+ bg: "bg-pastel-sky/45 dark:bg-pastel-sky/20",
3856
+ border: "border-pastel-sky-dark/[0.20] dark:border-pastel-sky-dark/[0.35]",
3857
+ iconColor: "text-pastel-sky-dark",
3858
+ title: "text-pastel-sky-dark"
3859
+ },
3860
+ success: {
3861
+ bg: "bg-pastel-mint/45 dark:bg-pastel-mint/20",
3862
+ border: "border-pastel-mint-dark/[0.20] dark:border-pastel-mint-dark/[0.35]",
3863
+ iconColor: "text-pastel-mint-dark",
3864
+ title: "text-pastel-mint-dark"
3865
+ },
3866
+ warning: {
3867
+ bg: "bg-pastel-lemon/50 dark:bg-pastel-lemon/20",
3868
+ border: "border-pastel-lemon-dark/[0.20] dark:border-pastel-lemon-dark/[0.35]",
3869
+ iconColor: "text-pastel-lemon-dark",
3870
+ title: "text-pastel-lemon-dark"
3871
+ },
3872
+ error: {
3873
+ bg: "bg-pastel-rose/45 dark:bg-pastel-rose/20",
3874
+ border: "border-pastel-rose-dark/[0.20] dark:border-pastel-rose-dark/[0.35]",
3875
+ iconColor: "text-pastel-rose-dark",
3876
+ title: "text-pastel-rose-dark"
3877
+ }
3878
+ }, Nn = () => /* @__PURE__ */ f("svg", {
3879
+ width: "16",
3880
+ height: "16",
3881
+ viewBox: "0 0 24 24",
3882
+ fill: "none",
3883
+ stroke: "currentColor",
3884
+ strokeWidth: "2",
3885
+ strokeLinecap: "round",
3886
+ strokeLinejoin: "round",
3887
+ children: [
3888
+ /* @__PURE__ */ d("circle", {
3889
+ cx: "12",
3890
+ cy: "12",
3891
+ r: "10"
3892
+ }),
3893
+ /* @__PURE__ */ d("line", {
3894
+ x1: "12",
3895
+ y1: "8",
3896
+ x2: "12",
3897
+ y2: "12"
3898
+ }),
3899
+ /* @__PURE__ */ d("line", {
3900
+ x1: "12",
3901
+ y1: "16",
3902
+ x2: "12.01",
3903
+ y2: "16"
3904
+ })
3905
+ ]
3906
+ }), Pn = () => /* @__PURE__ */ f("svg", {
3907
+ width: "16",
3908
+ height: "16",
3909
+ viewBox: "0 0 24 24",
3910
+ fill: "none",
3911
+ stroke: "currentColor",
3912
+ strokeWidth: "2.2",
3913
+ strokeLinecap: "round",
3914
+ strokeLinejoin: "round",
3915
+ children: [/* @__PURE__ */ d("path", { d: "M22 11.08V12a10 10 0 11-5.93-9.14" }), /* @__PURE__ */ d("polyline", { points: "22 4 12 14.01 9 11.01" })]
3916
+ }), Fn = () => /* @__PURE__ */ f("svg", {
3917
+ width: "16",
3918
+ height: "16",
3919
+ viewBox: "0 0 24 24",
3920
+ fill: "none",
3921
+ stroke: "currentColor",
3922
+ strokeWidth: "2",
3923
+ strokeLinecap: "round",
3924
+ strokeLinejoin: "round",
3925
+ children: [
3926
+ /* @__PURE__ */ d("path", { d: "M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z" }),
3927
+ /* @__PURE__ */ d("line", {
3928
+ x1: "12",
3929
+ y1: "9",
3930
+ x2: "12",
3931
+ y2: "13"
3932
+ }),
3933
+ /* @__PURE__ */ d("line", {
3934
+ x1: "12",
3935
+ y1: "17",
3936
+ x2: "12.01",
3937
+ y2: "17"
3938
+ })
3939
+ ]
3940
+ }), In = () => /* @__PURE__ */ f("svg", {
3941
+ width: "16",
3942
+ height: "16",
3943
+ viewBox: "0 0 24 24",
3944
+ fill: "none",
3945
+ stroke: "currentColor",
3946
+ strokeWidth: "2",
3947
+ strokeLinecap: "round",
3948
+ strokeLinejoin: "round",
3949
+ children: [
3950
+ /* @__PURE__ */ d("circle", {
3951
+ cx: "12",
3952
+ cy: "12",
3953
+ r: "10"
3954
+ }),
3955
+ /* @__PURE__ */ d("line", {
3956
+ x1: "15",
3957
+ y1: "9",
3958
+ x2: "9",
3959
+ y2: "15"
3960
+ }),
3961
+ /* @__PURE__ */ d("line", {
3962
+ x1: "9",
3963
+ y1: "9",
3964
+ x2: "15",
3965
+ y2: "15"
3966
+ })
3967
+ ]
3968
+ }), Ln = () => /* @__PURE__ */ f("svg", {
3969
+ width: "14",
3970
+ height: "14",
3971
+ viewBox: "0 0 24 24",
3972
+ fill: "none",
3973
+ stroke: "currentColor",
3974
+ strokeWidth: "2.2",
3975
+ strokeLinecap: "round",
3976
+ strokeLinejoin: "round",
3977
+ children: [/* @__PURE__ */ d("line", {
3978
+ x1: "18",
3979
+ y1: "6",
3980
+ x2: "6",
3981
+ y2: "18"
3982
+ }), /* @__PURE__ */ d("line", {
3983
+ x1: "6",
3984
+ y1: "6",
3985
+ x2: "18",
3986
+ y2: "18"
3987
+ })]
3988
+ }), Rn = {
3989
+ info: /* @__PURE__ */ d(Nn, {}),
3990
+ success: /* @__PURE__ */ d(Pn, {}),
3991
+ warning: /* @__PURE__ */ d(Fn, {}),
3992
+ error: /* @__PURE__ */ d(In, {})
3993
+ };
3994
+ function zn({ variant: e = "info", title: t, children: n, dismissable: r = !1, onDismiss: i, icon: a, className: o }) {
3995
+ let [s, c] = l("in"), u = Mn[e];
3996
+ return s === "out" ? null : /* @__PURE__ */ f("div", {
3997
+ role: "alert",
3998
+ style: { animation: "alert-in 220ms cubic-bezier(0.34, 1.42, 0.64, 1) both" },
3999
+ className: $("flex gap-[10px] items-start", "rounded-[12px] border px-[14px] py-[12px]", "font-[system-ui,_-apple-system,_sans-serif]", u.bg, u.border, o),
4000
+ children: [
4001
+ /* @__PURE__ */ d("span", {
4002
+ className: $("shrink-0 mt-[1px]", u.iconColor),
4003
+ children: a ?? Rn[e]
4004
+ }),
4005
+ /* @__PURE__ */ f("div", {
4006
+ className: "flex-1 min-w-0",
4007
+ children: [t != null && /* @__PURE__ */ d("div", {
4008
+ className: $("text-[13px] font-semibold leading-none mb-[4px]", u.title),
4009
+ children: t
4010
+ }), n != null && /* @__PURE__ */ d("div", {
4011
+ className: "text-[12px] leading-snug text-[var(--sk-text-muted)]",
4012
+ children: n
4013
+ })]
4014
+ }),
4015
+ r && /* @__PURE__ */ d("button", {
4016
+ type: "button",
4017
+ "aria-label": "Dismiss",
4018
+ onClick: () => {
4019
+ c("out"), i?.();
4020
+ },
4021
+ className: "shrink-0 mt-[1px] text-[var(--sk-text-muted)] hover:text-[var(--sk-text)] outline-none focus-visible:ring-2 focus-visible:ring-[var(--sk-border-strong)] rounded-[4px] cursor-pointer transition-colors duration-100",
4022
+ children: /* @__PURE__ */ d(Ln, {})
4023
+ })
4024
+ ]
4025
+ });
4026
+ }
4027
+ //#endregion
4028
+ export { zn as Alert, ot as Button, Zt as COLORS, Qt as COLOR_MAP, qt as Card, cn as ColorPicker, jn as DatePicker, dt as Input, Gt as Progress, kt as Select, zt as Slider, Vt as Textarea, $e as ThemeContext, tt as ThemeProvider, xt as Toggle, Ze as hexToAccentPair, Qe as resolveAccent, et as useTheme };