@possibly6400/ui-kit 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/dist/index.mjs +209 -183
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -14,16 +14,16 @@ function Br() {
|
|
|
14
14
|
if (qe) return ue;
|
|
15
15
|
qe = 1;
|
|
16
16
|
var r = z, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, i = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
-
function l(d,
|
|
18
|
-
var
|
|
19
|
-
x !== void 0 && (
|
|
20
|
-
for (
|
|
21
|
-
if (d && d.defaultProps) for (
|
|
22
|
-
return { $$typeof: t, type: d, key:
|
|
17
|
+
function l(d, f, x) {
|
|
18
|
+
var p, g = {}, w = null, P = null;
|
|
19
|
+
x !== void 0 && (w = "" + x), f.key !== void 0 && (w = "" + f.key), f.ref !== void 0 && (P = f.ref);
|
|
20
|
+
for (p in f) o.call(f, p) && !c.hasOwnProperty(p) && (g[p] = f[p]);
|
|
21
|
+
if (d && d.defaultProps) for (p in f = d.defaultProps, f) g[p] === void 0 && (g[p] = f[p]);
|
|
22
|
+
return { $$typeof: t, type: d, key: w, ref: P, props: g, _owner: i.current };
|
|
23
23
|
}
|
|
24
24
|
return ue.Fragment = n, ue.jsx = l, ue.jsxs = l, ue;
|
|
25
25
|
}
|
|
26
|
-
var
|
|
26
|
+
var pe = {};
|
|
27
27
|
/**
|
|
28
28
|
* @license React
|
|
29
29
|
* react-jsx-runtime.development.js
|
|
@@ -36,7 +36,7 @@ var fe = {};
|
|
|
36
36
|
var Je;
|
|
37
37
|
function Vr() {
|
|
38
38
|
return Je || (Je = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
-
var r = z, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"),
|
|
39
|
+
var r = z, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), k = Symbol.iterator, h = "@@iterator";
|
|
40
40
|
function v(e) {
|
|
41
41
|
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
@@ -64,7 +64,7 @@ function Vr() {
|
|
|
64
64
|
var O = !1, V = !1, Y = !1, H = !1, me = !1, ee;
|
|
65
65
|
ee = Symbol.for("react.module.reference");
|
|
66
66
|
function ae(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e === o || e === c || me || e === i || e === x || e ===
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === o || e === c || me || e === i || e === x || e === p || H || e === P || O || V || Y || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === g || e.$$typeof === l || e.$$typeof === d || e.$$typeof === f || // This needs to include all possible module reference object
|
|
68
68
|
// types supported by any Flight configuration anywhere since
|
|
69
69
|
// we don't know which Flight build this will end up being used
|
|
70
70
|
// with.
|
|
@@ -98,7 +98,7 @@ function Vr() {
|
|
|
98
98
|
return "StrictMode";
|
|
99
99
|
case x:
|
|
100
100
|
return "Suspense";
|
|
101
|
-
case
|
|
101
|
+
case p:
|
|
102
102
|
return "SuspenseList";
|
|
103
103
|
}
|
|
104
104
|
if (typeof e == "object")
|
|
@@ -109,12 +109,12 @@ function Vr() {
|
|
|
109
109
|
case l:
|
|
110
110
|
var u = e;
|
|
111
111
|
return R(u._context) + ".Provider";
|
|
112
|
-
case
|
|
112
|
+
case f:
|
|
113
113
|
return ie(e, e.render, "ForwardRef");
|
|
114
114
|
case g:
|
|
115
115
|
var b = e.displayName || null;
|
|
116
116
|
return b !== null ? b : W(e.type) || "Memo";
|
|
117
|
-
case
|
|
117
|
+
case w: {
|
|
118
118
|
var E = e, S = E._payload, C = E._init;
|
|
119
119
|
try {
|
|
120
120
|
return W(C(S));
|
|
@@ -129,7 +129,7 @@ function Vr() {
|
|
|
129
129
|
function ze() {
|
|
130
130
|
}
|
|
131
131
|
ze.__reactDisabledLog = !0;
|
|
132
|
-
function
|
|
132
|
+
function pr() {
|
|
133
133
|
{
|
|
134
134
|
if (Z === 0) {
|
|
135
135
|
X = console.log, le = console.info, re = console.warn, K = console.error, ce = console.group, D = console.groupCollapsed, Ae = console.groupEnd;
|
|
@@ -152,7 +152,7 @@ function Vr() {
|
|
|
152
152
|
Z++;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function fr() {
|
|
156
156
|
{
|
|
157
157
|
if (Z--, Z === 0) {
|
|
158
158
|
var e = {
|
|
@@ -219,7 +219,7 @@ function Vr() {
|
|
|
219
219
|
var E = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
221
221
|
var S;
|
|
222
|
-
S = ye.current, ye.current = null,
|
|
222
|
+
S = ye.current, ye.current = null, pr();
|
|
223
223
|
try {
|
|
224
224
|
if (a) {
|
|
225
225
|
var C = function() {
|
|
@@ -254,17 +254,17 @@ function Vr() {
|
|
|
254
254
|
}
|
|
255
255
|
} catch (L) {
|
|
256
256
|
if (L && b && typeof L.stack == "string") {
|
|
257
|
-
for (var
|
|
257
|
+
for (var _ = L.stack.split(`
|
|
258
258
|
`), I = b.stack.split(`
|
|
259
|
-
`), A =
|
|
259
|
+
`), A = _.length - 1, M = I.length - 1; A >= 1 && M >= 0 && _[A] !== I[M]; )
|
|
260
260
|
M--;
|
|
261
261
|
for (; A >= 1 && M >= 0; A--, M--)
|
|
262
|
-
if (
|
|
262
|
+
if (_[A] !== I[M]) {
|
|
263
263
|
if (A !== 1 || M !== 1)
|
|
264
264
|
do
|
|
265
|
-
if (A--, M--, M < 0 ||
|
|
265
|
+
if (A--, M--, M < 0 || _[A] !== I[M]) {
|
|
266
266
|
var $ = `
|
|
267
|
-
` +
|
|
267
|
+
` + _[A].replace(" at new ", " at ");
|
|
268
268
|
return e.displayName && $.includes("<anonymous>") && ($ = $.replace("<anonymous>", e.displayName)), typeof e == "function" && he.set(e, $), $;
|
|
269
269
|
}
|
|
270
270
|
while (A >= 1 && M >= 0);
|
|
@@ -272,7 +272,7 @@ function Vr() {
|
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
_e = !1, ye.current = S,
|
|
275
|
+
_e = !1, ye.current = S, fr(), Error.prepareStackTrace = E;
|
|
276
276
|
}
|
|
277
277
|
var oe = e ? e.displayName || e.name : "", Q = oe ? xe(oe) : "";
|
|
278
278
|
return typeof e == "function" && he.set(e, Q), Q;
|
|
@@ -294,16 +294,16 @@ function Vr() {
|
|
|
294
294
|
switch (e) {
|
|
295
295
|
case x:
|
|
296
296
|
return xe("Suspense");
|
|
297
|
-
case
|
|
297
|
+
case p:
|
|
298
298
|
return xe("SuspenseList");
|
|
299
299
|
}
|
|
300
300
|
if (typeof e == "object")
|
|
301
301
|
switch (e.$$typeof) {
|
|
302
|
-
case
|
|
302
|
+
case f:
|
|
303
303
|
return mr(e.render);
|
|
304
304
|
case g:
|
|
305
305
|
return ge(e.type, a, u);
|
|
306
|
-
case
|
|
306
|
+
case w: {
|
|
307
307
|
var b = e, E = b._payload, S = b._init;
|
|
308
308
|
try {
|
|
309
309
|
return ge(S(E), a, u);
|
|
@@ -326,17 +326,17 @@ function Vr() {
|
|
|
326
326
|
var S = Function.call.bind(de);
|
|
327
327
|
for (var C in e)
|
|
328
328
|
if (S(e, C)) {
|
|
329
|
-
var
|
|
329
|
+
var _ = void 0;
|
|
330
330
|
try {
|
|
331
331
|
if (typeof e[C] != "function") {
|
|
332
332
|
var I = Error((b || "React class") + ": " + u + " type `" + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[C] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
333
|
throw I.name = "Invariant Violation", I;
|
|
334
334
|
}
|
|
335
|
-
|
|
335
|
+
_ = e[C](a, C, b, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
336
|
} catch (A) {
|
|
337
|
-
|
|
337
|
+
_ = A;
|
|
338
338
|
}
|
|
339
|
-
|
|
339
|
+
_ && !(_ instanceof Error) && (ve(E), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", b || "React class", u, C, typeof _), ve(null)), _ instanceof Error && !(_.message in Ie) && (Ie[_.message] = !0, ve(E), j("Failed %s type: %s", u, _.message), ve(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
@@ -412,7 +412,7 @@ function Vr() {
|
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
var Rr = function(e, a, u, b, E, S, C) {
|
|
415
|
-
var
|
|
415
|
+
var _ = {
|
|
416
416
|
// This tag allows us to uniquely identify this as a React Element
|
|
417
417
|
$$typeof: t,
|
|
418
418
|
// Built-in properties that belong on the element
|
|
@@ -423,27 +423,27 @@ function Vr() {
|
|
|
423
423
|
// Record the component responsible for creating this element.
|
|
424
424
|
_owner: S
|
|
425
425
|
};
|
|
426
|
-
return
|
|
426
|
+
return _._store = {}, Object.defineProperty(_._store, "validated", {
|
|
427
427
|
configurable: !1,
|
|
428
428
|
enumerable: !1,
|
|
429
429
|
writable: !0,
|
|
430
430
|
value: !1
|
|
431
|
-
}), Object.defineProperty(
|
|
431
|
+
}), Object.defineProperty(_, "_self", {
|
|
432
432
|
configurable: !1,
|
|
433
433
|
enumerable: !1,
|
|
434
434
|
writable: !1,
|
|
435
435
|
value: b
|
|
436
|
-
}), Object.defineProperty(
|
|
436
|
+
}), Object.defineProperty(_, "_source", {
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
439
439
|
writable: !1,
|
|
440
440
|
value: E
|
|
441
|
-
}), Object.freeze && (Object.freeze(
|
|
441
|
+
}), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
|
|
442
442
|
};
|
|
443
443
|
function Sr(e, a, u, b, E) {
|
|
444
444
|
{
|
|
445
|
-
var S, C = {},
|
|
446
|
-
u !== void 0 && (Fe(u),
|
|
445
|
+
var S, C = {}, _ = null, I = null;
|
|
446
|
+
u !== void 0 && (Fe(u), _ = "" + u), Cr(a) && (Fe(a.key), _ = "" + a.key), _r(a) && (I = a.ref, jr(a, E));
|
|
447
447
|
for (S in a)
|
|
448
448
|
de.call(a, S) && !wr.hasOwnProperty(S) && (C[S] = a[S]);
|
|
449
449
|
if (e && e.defaultProps) {
|
|
@@ -451,11 +451,11 @@ function Vr() {
|
|
|
451
451
|
for (S in A)
|
|
452
452
|
C[S] === void 0 && (C[S] = A[S]);
|
|
453
453
|
}
|
|
454
|
-
if (
|
|
454
|
+
if (_ || I) {
|
|
455
455
|
var M = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
-
|
|
456
|
+
_ && kr(C, M), I && Er(C, M);
|
|
457
457
|
}
|
|
458
|
-
return Rr(e,
|
|
458
|
+
return Rr(e, _, I, E, b, De.current, C);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
461
|
var je = N.ReactCurrentOwner, Ge = N.ReactDebugCurrentFrame;
|
|
@@ -539,7 +539,7 @@ Check the top-level render call using <` + u + ">.");
|
|
|
539
539
|
var u;
|
|
540
540
|
if (typeof a == "function")
|
|
541
541
|
u = a.propTypes;
|
|
542
|
-
else if (typeof a == "object" && (a.$$typeof ===
|
|
542
|
+
else if (typeof a == "object" && (a.$$typeof === f || // Note: Memo only checks outer props here.
|
|
543
543
|
// Inner props are checked in the reconciler.
|
|
544
544
|
a.$$typeof === g))
|
|
545
545
|
u = a.propTypes;
|
|
@@ -573,12 +573,12 @@ Check the top-level render call using <` + u + ">.");
|
|
|
573
573
|
{
|
|
574
574
|
var C = ae(e);
|
|
575
575
|
if (!C) {
|
|
576
|
-
var
|
|
577
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
576
|
+
var _ = "";
|
|
577
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (_ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
578
578
|
var I = Nr();
|
|
579
|
-
I ?
|
|
579
|
+
I ? _ += I : _ += Be();
|
|
580
580
|
var A;
|
|
581
|
-
e === null ? A = "null" : Ce(e) ? A = "array" : e !== void 0 && e.$$typeof === t ? (A = "<" + (W(e.type) || "Unknown") + " />",
|
|
581
|
+
e === null ? A = "null" : Ce(e) ? A = "array" : e !== void 0 && e.$$typeof === t ? (A = "<" + (W(e.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : A = typeof e, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", A, _);
|
|
582
582
|
}
|
|
583
583
|
var M = Sr(e, a, u, E, S);
|
|
584
584
|
if (M == null)
|
|
@@ -620,8 +620,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
620
620
|
return Ke(e, a, u, !1);
|
|
621
621
|
}
|
|
622
622
|
var Ir = Mr, Lr = zr;
|
|
623
|
-
|
|
624
|
-
}()),
|
|
623
|
+
pe.Fragment = o, pe.jsx = Ir, pe.jsxs = Lr;
|
|
624
|
+
}()), pe;
|
|
625
625
|
}
|
|
626
626
|
process.env.NODE_ENV === "production" ? Ne.exports = Br() : Ne.exports = Vr();
|
|
627
627
|
var s = Ne.exports;
|
|
@@ -649,8 +649,8 @@ const Pe = "-", Yr = (r) => {
|
|
|
649
649
|
return d[0] === "" && d.length !== 1 && d.shift(), tr(d, t) || Zr(l);
|
|
650
650
|
},
|
|
651
651
|
getConflictingClassGroupIds: (l, d) => {
|
|
652
|
-
const
|
|
653
|
-
return d && o[l] ? [...
|
|
652
|
+
const f = n[l] || [];
|
|
653
|
+
return d && o[l] ? [...f, ...o[l]] : f;
|
|
654
654
|
}
|
|
655
655
|
};
|
|
656
656
|
}, tr = (r, t) => {
|
|
@@ -745,13 +745,13 @@ const Pe = "-", Yr = (r) => {
|
|
|
745
745
|
separator: t,
|
|
746
746
|
experimentalParseClassName: n
|
|
747
747
|
} = r, o = t.length === 1, i = t[0], c = t.length, l = (d) => {
|
|
748
|
-
const
|
|
749
|
-
let x = 0,
|
|
748
|
+
const f = [];
|
|
749
|
+
let x = 0, p = 0, g;
|
|
750
750
|
for (let v = 0; v < d.length; v++) {
|
|
751
751
|
let N = d[v];
|
|
752
752
|
if (x === 0) {
|
|
753
753
|
if (N === i && (o || d.slice(v, v + c) === t)) {
|
|
754
|
-
|
|
754
|
+
f.push(d.slice(p, v)), p = v + c;
|
|
755
755
|
continue;
|
|
756
756
|
}
|
|
757
757
|
if (N === "/") {
|
|
@@ -761,9 +761,9 @@ const Pe = "-", Yr = (r) => {
|
|
|
761
761
|
}
|
|
762
762
|
N === "[" ? x++ : N === "]" && x--;
|
|
763
763
|
}
|
|
764
|
-
const
|
|
764
|
+
const w = f.length === 0 ? d : d.substring(p), P = w.startsWith(or), k = P ? w.substring(1) : w, h = g && g > p ? g - p : void 0;
|
|
765
765
|
return {
|
|
766
|
-
modifiers:
|
|
766
|
+
modifiers: f,
|
|
767
767
|
hasImportantModifier: P,
|
|
768
768
|
baseClassName: k,
|
|
769
769
|
maybePostfixModifierPosition: h
|
|
@@ -792,26 +792,26 @@ const Pe = "-", Yr = (r) => {
|
|
|
792
792
|
getConflictingClassGroupIds: i
|
|
793
793
|
} = t, c = [], l = r.trim().split(rt);
|
|
794
794
|
let d = "";
|
|
795
|
-
for (let
|
|
796
|
-
const x = l[
|
|
797
|
-
modifiers:
|
|
795
|
+
for (let f = l.length - 1; f >= 0; f -= 1) {
|
|
796
|
+
const x = l[f], {
|
|
797
|
+
modifiers: p,
|
|
798
798
|
hasImportantModifier: g,
|
|
799
|
-
baseClassName:
|
|
799
|
+
baseClassName: w,
|
|
800
800
|
maybePostfixModifierPosition: P
|
|
801
801
|
} = n(x);
|
|
802
|
-
let k = !!P, h = o(k ?
|
|
802
|
+
let k = !!P, h = o(k ? w.substring(0, P) : w);
|
|
803
803
|
if (!h) {
|
|
804
804
|
if (!k) {
|
|
805
805
|
d = x + (d.length > 0 ? " " + d : d);
|
|
806
806
|
continue;
|
|
807
807
|
}
|
|
808
|
-
if (h = o(
|
|
808
|
+
if (h = o(w), !h) {
|
|
809
809
|
d = x + (d.length > 0 ? " " + d : d);
|
|
810
810
|
continue;
|
|
811
811
|
}
|
|
812
812
|
k = !1;
|
|
813
813
|
}
|
|
814
|
-
const v = Qr(
|
|
814
|
+
const v = Qr(p).join(":"), N = g ? v + or : v, j = N + h;
|
|
815
815
|
if (c.includes(j))
|
|
816
816
|
continue;
|
|
817
817
|
c.push(j);
|
|
@@ -840,16 +840,16 @@ const nr = (r) => {
|
|
|
840
840
|
};
|
|
841
841
|
function nt(r, ...t) {
|
|
842
842
|
let n, o, i, c = l;
|
|
843
|
-
function l(
|
|
844
|
-
const x = t.reduce((
|
|
845
|
-
return n = et(x), o = n.cache.get, i = n.cache.set, c = d, d(
|
|
843
|
+
function l(f) {
|
|
844
|
+
const x = t.reduce((p, g) => g(p), r());
|
|
845
|
+
return n = et(x), o = n.cache.get, i = n.cache.set, c = d, d(f);
|
|
846
846
|
}
|
|
847
|
-
function d(
|
|
848
|
-
const x = o(
|
|
847
|
+
function d(f) {
|
|
848
|
+
const x = o(f);
|
|
849
849
|
if (x)
|
|
850
850
|
return x;
|
|
851
|
-
const
|
|
852
|
-
return i(
|
|
851
|
+
const p = tt(f, n);
|
|
852
|
+
return i(f, p), p;
|
|
853
853
|
}
|
|
854
854
|
return function() {
|
|
855
855
|
return c(ot.apply(null, arguments));
|
|
@@ -858,7 +858,7 @@ function nt(r, ...t) {
|
|
|
858
858
|
const T = (r) => {
|
|
859
859
|
const t = (n) => n[r] || [];
|
|
860
860
|
return t.isThemeGetter = !0, t;
|
|
861
|
-
}, sr = /^\[(?:([a-z-]+):)?(.+)\]$/i, st = /^\d+\/\d+$/, at = /* @__PURE__ */ new Set(["px", "full", "screen"]), it = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, lt = /\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$/, ct = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, dt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ut = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, U = (r) => ne(r) || at.has(r) || st.test(r), q = (r) => se(r, "length", vt), ne = (r) => !!r && !Number.isNaN(Number(r)), Se = (r) => se(r, "number", ne),
|
|
861
|
+
}, sr = /^\[(?:([a-z-]+):)?(.+)\]$/i, st = /^\d+\/\d+$/, at = /* @__PURE__ */ new Set(["px", "full", "screen"]), it = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, lt = /\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$/, ct = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, dt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ut = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, U = (r) => ne(r) || at.has(r) || st.test(r), q = (r) => se(r, "length", vt), ne = (r) => !!r && !Number.isNaN(Number(r)), Se = (r) => se(r, "number", ne), fe = (r) => !!r && Number.isInteger(Number(r)), pt = (r) => r.endsWith("%") && ne(r.slice(0, -1)), m = (r) => sr.test(r), J = (r) => it.test(r), ft = /* @__PURE__ */ new Set(["length", "size", "percentage"]), bt = (r) => se(r, ft, ar), mt = (r) => se(r, "position", ar), xt = /* @__PURE__ */ new Set(["image", "url"]), ht = (r) => se(r, xt, wt), gt = (r) => se(r, "", yt), be = () => !0, se = (r, t, n) => {
|
|
862
862
|
const o = sr.exec(r);
|
|
863
863
|
return o ? o[1] ? typeof t == "string" ? o[1] === t : t.has(o[1]) : n(o[2]) : !1;
|
|
864
864
|
}, vt = (r) => (
|
|
@@ -867,7 +867,7 @@ const T = (r) => {
|
|
|
867
867
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
868
868
|
lt.test(r) && !ct.test(r)
|
|
869
869
|
), ar = () => !1, yt = (r) => dt.test(r), wt = (r) => ut.test(r), _t = () => {
|
|
870
|
-
const r = T("colors"), t = T("spacing"), n = T("blur"), o = T("brightness"), i = T("borderColor"), c = T("borderRadius"), l = T("borderSpacing"), d = T("borderWidth"),
|
|
870
|
+
const r = T("colors"), t = T("spacing"), n = T("blur"), o = T("brightness"), i = T("borderColor"), c = T("borderRadius"), l = T("borderSpacing"), d = T("borderWidth"), f = T("contrast"), x = T("grayscale"), p = T("hueRotate"), g = T("invert"), w = T("gap"), P = T("gradientColorStops"), k = T("gradientColorStopPositions"), h = T("inset"), v = T("margin"), N = T("opacity"), j = T("padding"), B = T("saturate"), O = T("scale"), V = T("sepia"), Y = T("skew"), H = T("space"), me = T("translate"), ee = () => ["auto", "contain", "none"], ae = () => ["auto", "hidden", "clip", "visible", "scroll"], ie = () => ["auto", m, t], R = () => [m, t], W = () => ["", U, q], F = () => ["auto", ne, m], Z = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], X = () => ["solid", "dashed", "dotted", "double", "none"], le = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], re = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], K = () => ["", "0", m], ce = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], D = () => [ne, m];
|
|
871
871
|
return {
|
|
872
872
|
cacheSize: 500,
|
|
873
873
|
separator: ":",
|
|
@@ -886,7 +886,7 @@ const T = (r) => {
|
|
|
886
886
|
invert: K(),
|
|
887
887
|
gap: R(),
|
|
888
888
|
gradientColorStops: [r],
|
|
889
|
-
gradientColorStopPositions: [
|
|
889
|
+
gradientColorStopPositions: [pt, q],
|
|
890
890
|
inset: ie(),
|
|
891
891
|
margin: ie(),
|
|
892
892
|
opacity: D(),
|
|
@@ -1112,7 +1112,7 @@ const T = (r) => {
|
|
|
1112
1112
|
* @see https://tailwindcss.com/docs/z-index
|
|
1113
1113
|
*/
|
|
1114
1114
|
z: [{
|
|
1115
|
-
z: ["auto",
|
|
1115
|
+
z: ["auto", fe, m]
|
|
1116
1116
|
}],
|
|
1117
1117
|
// Flexbox and Grid
|
|
1118
1118
|
/**
|
|
@@ -1162,7 +1162,7 @@ const T = (r) => {
|
|
|
1162
1162
|
* @see https://tailwindcss.com/docs/order
|
|
1163
1163
|
*/
|
|
1164
1164
|
order: [{
|
|
1165
|
-
order: ["first", "last", "none",
|
|
1165
|
+
order: ["first", "last", "none", fe, m]
|
|
1166
1166
|
}],
|
|
1167
1167
|
/**
|
|
1168
1168
|
* Grid Template Columns
|
|
@@ -1177,7 +1177,7 @@ const T = (r) => {
|
|
|
1177
1177
|
*/
|
|
1178
1178
|
"col-start-end": [{
|
|
1179
1179
|
col: ["auto", {
|
|
1180
|
-
span: ["full",
|
|
1180
|
+
span: ["full", fe, m]
|
|
1181
1181
|
}, m]
|
|
1182
1182
|
}],
|
|
1183
1183
|
/**
|
|
@@ -1207,7 +1207,7 @@ const T = (r) => {
|
|
|
1207
1207
|
*/
|
|
1208
1208
|
"row-start-end": [{
|
|
1209
1209
|
row: ["auto", {
|
|
1210
|
-
span: [
|
|
1210
|
+
span: [fe, m]
|
|
1211
1211
|
}, m]
|
|
1212
1212
|
}],
|
|
1213
1213
|
/**
|
|
@@ -1250,21 +1250,21 @@ const T = (r) => {
|
|
|
1250
1250
|
* @see https://tailwindcss.com/docs/gap
|
|
1251
1251
|
*/
|
|
1252
1252
|
gap: [{
|
|
1253
|
-
gap: [
|
|
1253
|
+
gap: [w]
|
|
1254
1254
|
}],
|
|
1255
1255
|
/**
|
|
1256
1256
|
* Gap X
|
|
1257
1257
|
* @see https://tailwindcss.com/docs/gap
|
|
1258
1258
|
*/
|
|
1259
1259
|
"gap-x": [{
|
|
1260
|
-
"gap-x": [
|
|
1260
|
+
"gap-x": [w]
|
|
1261
1261
|
}],
|
|
1262
1262
|
/**
|
|
1263
1263
|
* Gap Y
|
|
1264
1264
|
* @see https://tailwindcss.com/docs/gap
|
|
1265
1265
|
*/
|
|
1266
1266
|
"gap-y": [{
|
|
1267
|
-
"gap-y": [
|
|
1267
|
+
"gap-y": [w]
|
|
1268
1268
|
}],
|
|
1269
1269
|
/**
|
|
1270
1270
|
* Justify Content
|
|
@@ -2298,7 +2298,7 @@ const T = (r) => {
|
|
|
2298
2298
|
* @see https://tailwindcss.com/docs/contrast
|
|
2299
2299
|
*/
|
|
2300
2300
|
contrast: [{
|
|
2301
|
-
contrast: [
|
|
2301
|
+
contrast: [f]
|
|
2302
2302
|
}],
|
|
2303
2303
|
/**
|
|
2304
2304
|
* Drop Shadow
|
|
@@ -2319,7 +2319,7 @@ const T = (r) => {
|
|
|
2319
2319
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2320
2320
|
*/
|
|
2321
2321
|
"hue-rotate": [{
|
|
2322
|
-
"hue-rotate": [
|
|
2322
|
+
"hue-rotate": [p]
|
|
2323
2323
|
}],
|
|
2324
2324
|
/**
|
|
2325
2325
|
* Invert
|
|
@@ -2369,7 +2369,7 @@ const T = (r) => {
|
|
|
2369
2369
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2370
2370
|
*/
|
|
2371
2371
|
"backdrop-contrast": [{
|
|
2372
|
-
"backdrop-contrast": [
|
|
2372
|
+
"backdrop-contrast": [f]
|
|
2373
2373
|
}],
|
|
2374
2374
|
/**
|
|
2375
2375
|
* Backdrop Grayscale
|
|
@@ -2383,7 +2383,7 @@ const T = (r) => {
|
|
|
2383
2383
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2384
2384
|
*/
|
|
2385
2385
|
"backdrop-hue-rotate": [{
|
|
2386
|
-
"backdrop-hue-rotate": [
|
|
2386
|
+
"backdrop-hue-rotate": [p]
|
|
2387
2387
|
}],
|
|
2388
2388
|
/**
|
|
2389
2389
|
* Backdrop Invert
|
|
@@ -2526,7 +2526,7 @@ const T = (r) => {
|
|
|
2526
2526
|
* @see https://tailwindcss.com/docs/rotate
|
|
2527
2527
|
*/
|
|
2528
2528
|
rotate: [{
|
|
2529
|
-
rotate: [
|
|
2529
|
+
rotate: [fe, m]
|
|
2530
2530
|
}],
|
|
2531
2531
|
/**
|
|
2532
2532
|
* Translate X
|
|
@@ -2896,7 +2896,7 @@ const T = (r) => {
|
|
|
2896
2896
|
}
|
|
2897
2897
|
};
|
|
2898
2898
|
}, Ct = /* @__PURE__ */ nt(_t);
|
|
2899
|
-
function
|
|
2899
|
+
function y(...r) {
|
|
2900
2900
|
return Ct(Ur(r));
|
|
2901
2901
|
}
|
|
2902
2902
|
const jt = {
|
|
@@ -2920,7 +2920,7 @@ const jt = {
|
|
|
2920
2920
|
"button",
|
|
2921
2921
|
{
|
|
2922
2922
|
ref: d,
|
|
2923
|
-
className:
|
|
2923
|
+
className: y(
|
|
2924
2924
|
"inline-flex items-center justify-center",
|
|
2925
2925
|
"font-medium transition-all duration-200",
|
|
2926
2926
|
"focus-visible focus:outline-none",
|
|
@@ -2932,10 +2932,10 @@ const jt = {
|
|
|
2932
2932
|
disabled: o || n,
|
|
2933
2933
|
...l,
|
|
2934
2934
|
children: [
|
|
2935
|
-
/* @__PURE__ */ s.jsx("span", { className:
|
|
2935
|
+
/* @__PURE__ */ s.jsx("span", { className: y("inline-flex items-center", n ? "w-4 h-4 mr-2" : "w-0 h-4"), children: /* @__PURE__ */ s.jsxs(
|
|
2936
2936
|
"svg",
|
|
2937
2937
|
{
|
|
2938
|
-
className:
|
|
2938
|
+
className: y("animate-spin h-4 w-4", !n && "opacity-0"),
|
|
2939
2939
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2940
2940
|
fill: "none",
|
|
2941
2941
|
viewBox: "0 0 24 24",
|
|
@@ -2994,33 +2994,33 @@ const Et = "_button_7snfv_7", Rt = "_state_7snfv_75", St = "_icon_7snfv_149", Nt
|
|
|
2994
2994
|
className: c,
|
|
2995
2995
|
...l
|
|
2996
2996
|
}) => {
|
|
2997
|
-
const [d,
|
|
2997
|
+
const [d, f] = er(!1), x = Dr(), p = $r(null), g = async (w) => {
|
|
2998
2998
|
var P, k;
|
|
2999
2999
|
if (n && !d)
|
|
3000
3000
|
try {
|
|
3001
|
-
await n(),
|
|
3001
|
+
await n(), f(!0), (P = p.current) == null || P.focus(), setTimeout(() => {
|
|
3002
3002
|
var h;
|
|
3003
|
-
|
|
3003
|
+
f(!1), (h = p.current) == null || h.blur();
|
|
3004
3004
|
}, 3e3);
|
|
3005
3005
|
} catch (h) {
|
|
3006
3006
|
console.error("Submit failed:", h);
|
|
3007
3007
|
}
|
|
3008
|
-
(k = l.onClick) == null || k.call(l,
|
|
3008
|
+
(k = l.onClick) == null || k.call(l, w);
|
|
3009
3009
|
};
|
|
3010
3010
|
return /* @__PURE__ */ s.jsxs(
|
|
3011
3011
|
"button",
|
|
3012
3012
|
{
|
|
3013
3013
|
...l,
|
|
3014
|
-
ref:
|
|
3014
|
+
ref: p,
|
|
3015
3015
|
type: "submit",
|
|
3016
3016
|
disabled: o,
|
|
3017
3017
|
onClick: g,
|
|
3018
|
-
className:
|
|
3018
|
+
className: y(G.button, Tt[i], c),
|
|
3019
3019
|
"aria-label": d ? "Submission successful" : l["aria-label"] || "Submit",
|
|
3020
3020
|
"aria-disabled": o,
|
|
3021
3021
|
children: [
|
|
3022
3022
|
/* @__PURE__ */ s.jsx("div", { className: G.outline }),
|
|
3023
|
-
/* @__PURE__ */ s.jsxs("div", { className:
|
|
3023
|
+
/* @__PURE__ */ s.jsxs("div", { className: y(G.state, G["state--default"]), children: [
|
|
3024
3024
|
/* @__PURE__ */ s.jsx("div", { className: G.icon, children: /* @__PURE__ */ s.jsxs(
|
|
3025
3025
|
"svg",
|
|
3026
3026
|
{
|
|
@@ -3060,7 +3060,7 @@ const Et = "_button_7snfv_7", Rt = "_state_7snfv_75", St = "_icon_7snfv_149", Nt
|
|
|
3060
3060
|
) }),
|
|
3061
3061
|
/* @__PURE__ */ s.jsx("p", { children: Qe(typeof r == "string" ? r : "Send Message") })
|
|
3062
3062
|
] }),
|
|
3063
|
-
/* @__PURE__ */ s.jsxs("div", { className:
|
|
3063
|
+
/* @__PURE__ */ s.jsxs("div", { className: y(G.state, G["state--sent"]), children: [
|
|
3064
3064
|
/* @__PURE__ */ s.jsx("div", { className: G.icon, children: /* @__PURE__ */ s.jsx(
|
|
3065
3065
|
"svg",
|
|
3066
3066
|
{
|
|
@@ -3095,34 +3095,59 @@ const Et = "_button_7snfv_7", Rt = "_state_7snfv_75", St = "_icon_7snfv_149", Nt
|
|
|
3095
3095
|
}
|
|
3096
3096
|
);
|
|
3097
3097
|
}, Pt = {
|
|
3098
|
-
sm: "px-
|
|
3099
|
-
md: "px-
|
|
3100
|
-
lg: "px-6 py-3 text-
|
|
3098
|
+
sm: "px-4 py-2 text-sm",
|
|
3099
|
+
md: "px-5 py-[10px] text-base",
|
|
3100
|
+
lg: "px-6 py-3 text-lg"
|
|
3101
3101
|
}, lr = z.forwardRef(({
|
|
3102
3102
|
size: r = "md",
|
|
3103
3103
|
error: t = !1,
|
|
3104
3104
|
className: n,
|
|
3105
3105
|
disabled: o,
|
|
3106
3106
|
...i
|
|
3107
|
-
}, c) => /* @__PURE__ */ s.
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3107
|
+
}, c) => /* @__PURE__ */ s.jsxs("div", { className: "relative inline-flex items-center", children: [
|
|
3108
|
+
/* @__PURE__ */ s.jsx(
|
|
3109
|
+
"input",
|
|
3110
|
+
{
|
|
3111
|
+
ref: c,
|
|
3112
|
+
className: y(
|
|
3113
|
+
"bg-transparent",
|
|
3114
|
+
"border-none",
|
|
3115
|
+
"outline-none",
|
|
3116
|
+
"max-w-[190px]",
|
|
3117
|
+
"rounded-full",
|
|
3118
|
+
"text-text-primary",
|
|
3119
|
+
"transition-colors duration-200",
|
|
3120
|
+
"disabled:text-text-disabled disabled:cursor-not-allowed",
|
|
3121
|
+
t ? "shadow-[inset_2px_5px_10px_var(--input-shadow-error)] cursor-help" : "shadow-[inset_2px_5px_10px_var(--input-shadow)]",
|
|
3122
|
+
Pt[r],
|
|
3123
|
+
n
|
|
3124
|
+
),
|
|
3125
|
+
style: t ? { paddingRight: "2rem" } : void 0,
|
|
3126
|
+
disabled: o,
|
|
3127
|
+
"aria-invalid": t,
|
|
3128
|
+
...i
|
|
3129
|
+
}
|
|
3130
|
+
),
|
|
3131
|
+
t && /* @__PURE__ */ s.jsx(
|
|
3132
|
+
"svg",
|
|
3133
|
+
{
|
|
3134
|
+
className: "absolute right-2 w-4 h-4 text-danger pointer-events-none flex-shrink-0",
|
|
3135
|
+
fill: "none",
|
|
3136
|
+
viewBox: "0 0 24 24",
|
|
3137
|
+
stroke: "currentColor",
|
|
3138
|
+
strokeWidth: "2",
|
|
3139
|
+
"aria-hidden": "true",
|
|
3140
|
+
children: /* @__PURE__ */ s.jsx(
|
|
3141
|
+
"path",
|
|
3142
|
+
{
|
|
3143
|
+
strokeLinecap: "round",
|
|
3144
|
+
strokeLinejoin: "round",
|
|
3145
|
+
d: "M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
3146
|
+
}
|
|
3147
|
+
)
|
|
3148
|
+
}
|
|
3149
|
+
)
|
|
3150
|
+
] }));
|
|
3126
3151
|
lr.displayName = "Input";
|
|
3127
3152
|
const At = z.forwardRef(({
|
|
3128
3153
|
label: r,
|
|
@@ -3133,14 +3158,14 @@ const At = z.forwardRef(({
|
|
|
3133
3158
|
onChange: c,
|
|
3134
3159
|
...l
|
|
3135
3160
|
}, d) => {
|
|
3136
|
-
const
|
|
3137
|
-
return /* @__PURE__ */ s.jsxs("div", { className:
|
|
3138
|
-
/* @__PURE__ */ s.jsxs("label", { className:
|
|
3161
|
+
const f = z.useId();
|
|
3162
|
+
return /* @__PURE__ */ s.jsxs("div", { className: y("flex items-center space-x-2", o && "cursor-not-allowed", t && !o && "cursor-help", n), children: [
|
|
3163
|
+
/* @__PURE__ */ s.jsxs("label", { className: y("checkbox-container", o && "opacity-50 cursor-not-allowed", t && !o && "cursor-help", !o && !t && "cursor-pointer"), children: [
|
|
3139
3164
|
/* @__PURE__ */ s.jsx(
|
|
3140
3165
|
"input",
|
|
3141
3166
|
{
|
|
3142
3167
|
ref: d,
|
|
3143
|
-
id:
|
|
3168
|
+
id: f,
|
|
3144
3169
|
type: "checkbox",
|
|
3145
3170
|
disabled: o,
|
|
3146
3171
|
checked: i,
|
|
@@ -3156,17 +3181,17 @@ const At = z.forwardRef(({
|
|
|
3156
3181
|
{
|
|
3157
3182
|
d: "M 0 16 V 56 A 8 8 90 0 0 8 64 H 56 A 8 8 90 0 0 64 56 V 8 A 8 8 90 0 0 56 0 H 8 A 8 8 90 0 0 0 8 V 16 L 32 48 L 64 16 V 8 A 8 8 90 0 0 56 0 H 8 A 8 8 90 0 0 0 8 V 56 A 8 8 90 0 0 8 64 H 56 A 8 8 90 0 0 64 56 V 16",
|
|
3158
3183
|
pathLength: "575.0541381835938",
|
|
3159
|
-
className:
|
|
3184
|
+
className: y("checkbox-path", t && "checkbox-path-error")
|
|
3160
3185
|
}
|
|
3161
3186
|
) })
|
|
3162
3187
|
] }),
|
|
3163
3188
|
r && /* @__PURE__ */ s.jsx(
|
|
3164
3189
|
"label",
|
|
3165
3190
|
{
|
|
3166
|
-
htmlFor:
|
|
3167
|
-
className:
|
|
3191
|
+
htmlFor: f,
|
|
3192
|
+
className: y(
|
|
3168
3193
|
"text-sm font-medium select-none",
|
|
3169
|
-
o ? "text-text-disabled cursor-not-allowed" : "text-text-primary cursor-pointer"
|
|
3194
|
+
o ? "text-text-disabled cursor-not-allowed" : t ? "text-text-primary cursor-help" : "text-text-primary cursor-pointer"
|
|
3170
3195
|
),
|
|
3171
3196
|
children: r
|
|
3172
3197
|
}
|
|
@@ -3184,22 +3209,22 @@ const Bt = ({
|
|
|
3184
3209
|
id: l,
|
|
3185
3210
|
...d
|
|
3186
3211
|
}) => {
|
|
3187
|
-
const
|
|
3188
|
-
if ((
|
|
3189
|
-
|
|
3190
|
-
const g = document.getElementById(
|
|
3212
|
+
const f = l || z.useId(), x = (p) => {
|
|
3213
|
+
if ((p.key === "Enter" || p.key === " ") && !o) {
|
|
3214
|
+
p.preventDefault();
|
|
3215
|
+
const g = document.getElementById(f);
|
|
3191
3216
|
if (g) {
|
|
3192
3217
|
g.checked = !g.checked;
|
|
3193
|
-
const
|
|
3194
|
-
g.dispatchEvent(
|
|
3218
|
+
const w = new Event("change", { bubbles: !0 });
|
|
3219
|
+
g.dispatchEvent(w);
|
|
3195
3220
|
}
|
|
3196
3221
|
}
|
|
3197
3222
|
};
|
|
3198
|
-
return /* @__PURE__ */ s.jsxs("div", { className:
|
|
3223
|
+
return /* @__PURE__ */ s.jsxs("div", { className: y("toggle-wrapper", t && "toggle-wrapper--error", o && "cursor-not-allowed", t && !o && "cursor-help", n), children: [
|
|
3199
3224
|
/* @__PURE__ */ s.jsx(
|
|
3200
3225
|
"input",
|
|
3201
3226
|
{
|
|
3202
|
-
id:
|
|
3227
|
+
id: f,
|
|
3203
3228
|
className: "toggle-checkbox",
|
|
3204
3229
|
type: "checkbox",
|
|
3205
3230
|
checked: i,
|
|
@@ -3208,27 +3233,28 @@ const Bt = ({
|
|
|
3208
3233
|
role: "switch",
|
|
3209
3234
|
"aria-checked": i,
|
|
3210
3235
|
"aria-disabled": o,
|
|
3236
|
+
"aria-invalid": t,
|
|
3211
3237
|
...d
|
|
3212
3238
|
}
|
|
3213
3239
|
),
|
|
3214
3240
|
/* @__PURE__ */ s.jsx(
|
|
3215
3241
|
"div",
|
|
3216
3242
|
{
|
|
3217
|
-
className: "toggle-container",
|
|
3243
|
+
className: y("toggle-container", o && "cursor-not-allowed", t && !o && "cursor-help"),
|
|
3218
3244
|
onKeyDown: x,
|
|
3219
3245
|
tabIndex: o ? -1 : 0,
|
|
3220
3246
|
role: "button",
|
|
3221
3247
|
"aria-hidden": "true",
|
|
3222
|
-
children: /* @__PURE__ */ s.jsx("div", { className: "toggle-button", children: /* @__PURE__ */ s.jsx("div", { className: "toggle-button-circles-container", children: Array.from({ length: 12 }).map((
|
|
3248
|
+
children: /* @__PURE__ */ s.jsx("div", { className: "toggle-button", children: /* @__PURE__ */ s.jsx("div", { className: "toggle-button-circles-container", children: Array.from({ length: 12 }).map((p, g) => /* @__PURE__ */ s.jsx("div", { className: "toggle-button-circle" }, g)) }) })
|
|
3223
3249
|
}
|
|
3224
3250
|
),
|
|
3225
3251
|
r && /* @__PURE__ */ s.jsx(
|
|
3226
3252
|
"label",
|
|
3227
3253
|
{
|
|
3228
|
-
htmlFor:
|
|
3229
|
-
className:
|
|
3254
|
+
htmlFor: f,
|
|
3255
|
+
className: y(
|
|
3230
3256
|
"text-sm font-medium select-none ml-2",
|
|
3231
|
-
o ? "text-text-disabled cursor-not-allowed" : "text-text-primary cursor-pointer"
|
|
3257
|
+
o ? "text-text-disabled cursor-not-allowed" : t ? "text-text-primary cursor-help" : "text-text-primary cursor-pointer"
|
|
3232
3258
|
),
|
|
3233
3259
|
children: r
|
|
3234
3260
|
}
|
|
@@ -3237,7 +3263,7 @@ const Bt = ({
|
|
|
3237
3263
|
}, Vt = ({ className: r, ...t }) => /* @__PURE__ */ s.jsx(
|
|
3238
3264
|
"div",
|
|
3239
3265
|
{
|
|
3240
|
-
className:
|
|
3266
|
+
className: y(
|
|
3241
3267
|
"card",
|
|
3242
3268
|
"w-full",
|
|
3243
3269
|
"rounded-lg border border-border",
|
|
@@ -3250,13 +3276,13 @@ const Bt = ({
|
|
|
3250
3276
|
), Ut = ({ className: r, ...t }) => /* @__PURE__ */ s.jsx(
|
|
3251
3277
|
"div",
|
|
3252
3278
|
{
|
|
3253
|
-
className:
|
|
3279
|
+
className: y("flex items-start justify-between gap-4 px-6 py-4 border-b border-border", r),
|
|
3254
3280
|
...t
|
|
3255
3281
|
}
|
|
3256
|
-
), Yt = ({ className: r, ...t }) => /* @__PURE__ */ s.jsx("div", { className:
|
|
3282
|
+
), Yt = ({ className: r, ...t }) => /* @__PURE__ */ s.jsx("div", { className: y("px-6 py-4", r), ...t }), Zt = ({ className: r, ...t }) => /* @__PURE__ */ s.jsx(
|
|
3257
3283
|
"div",
|
|
3258
3284
|
{
|
|
3259
|
-
className:
|
|
3285
|
+
className: y("flex items-center justify-end gap-3 px-6 py-4 border-t border-border", r),
|
|
3260
3286
|
...t
|
|
3261
3287
|
}
|
|
3262
3288
|
), cr = {
|
|
@@ -3265,7 +3291,7 @@ const Bt = ({
|
|
|
3265
3291
|
lg: 1.3
|
|
3266
3292
|
}, Kt = ({ size: r = "md", className: t, ...n }) => {
|
|
3267
3293
|
const o = 8 * cr[r];
|
|
3268
|
-
return /* @__PURE__ */ s.jsxs("div", { className:
|
|
3294
|
+
return /* @__PURE__ */ s.jsxs("div", { className: y("loader", t), style: { fontSize: `${o}px` }, ...n, children: [
|
|
3269
3295
|
/* @__PURE__ */ s.jsx("div", { className: "loader-face loader-face-1", children: /* @__PURE__ */ s.jsx("div", { className: "loader-circle" }) }),
|
|
3270
3296
|
/* @__PURE__ */ s.jsx("div", { className: "loader-face loader-face-2", children: /* @__PURE__ */ s.jsx("div", { className: "loader-circle" }) })
|
|
3271
3297
|
] });
|
|
@@ -3280,7 +3306,7 @@ const Bt = ({
|
|
|
3280
3306
|
return t === "container" ? /* @__PURE__ */ s.jsx(
|
|
3281
3307
|
"div",
|
|
3282
3308
|
{
|
|
3283
|
-
className:
|
|
3309
|
+
className: y(
|
|
3284
3310
|
"relative w-full min-h-[8rem] rounded-lg border border-border bg-surface-secondary flex items-center justify-center",
|
|
3285
3311
|
o
|
|
3286
3312
|
),
|
|
@@ -3293,7 +3319,7 @@ const Bt = ({
|
|
|
3293
3319
|
n && /* @__PURE__ */ s.jsx("span", { className: "text-sm text-text-secondary", children: n })
|
|
3294
3320
|
] })
|
|
3295
3321
|
}
|
|
3296
|
-
) : /* @__PURE__ */ s.jsxs("div", { className:
|
|
3322
|
+
) : /* @__PURE__ */ s.jsxs("div", { className: y("inline-flex items-center gap-2", o), ...i, children: [
|
|
3297
3323
|
/* @__PURE__ */ s.jsxs("div", { className: "loader", style: { fontSize: `${c}px` }, children: [
|
|
3298
3324
|
/* @__PURE__ */ s.jsx("div", { className: "loader-face loader-face-1", children: /* @__PURE__ */ s.jsx("div", { className: "loader-circle" }) }),
|
|
3299
3325
|
/* @__PURE__ */ s.jsx("div", { className: "loader-face loader-face-2", children: /* @__PURE__ */ s.jsx("div", { className: "loader-circle" }) })
|
|
@@ -3309,20 +3335,20 @@ const Bt = ({
|
|
|
3309
3335
|
onValueChange: c,
|
|
3310
3336
|
className: l,
|
|
3311
3337
|
children: d,
|
|
3312
|
-
...
|
|
3338
|
+
...f
|
|
3313
3339
|
}) => {
|
|
3314
|
-
const x = n !== void 0, [
|
|
3340
|
+
const x = n !== void 0, [p, g] = z.useState(o), w = x ? n : p, P = z.useCallback(
|
|
3315
3341
|
(k) => {
|
|
3316
3342
|
x || g(k), c == null || c(k);
|
|
3317
3343
|
},
|
|
3318
3344
|
[x, c]
|
|
3319
3345
|
);
|
|
3320
|
-
return /* @__PURE__ */ s.jsx(dr.Provider, { value: { name: r, value:
|
|
3346
|
+
return /* @__PURE__ */ s.jsx(dr.Provider, { value: { name: r, value: w, disabled: i, onValueChange: P }, children: /* @__PURE__ */ s.jsxs(
|
|
3321
3347
|
"fieldset",
|
|
3322
3348
|
{
|
|
3323
|
-
className:
|
|
3349
|
+
className: y("radio-input", i && "opacity-60 cursor-not-allowed", l),
|
|
3324
3350
|
disabled: i,
|
|
3325
|
-
...
|
|
3351
|
+
...f,
|
|
3326
3352
|
children: [
|
|
3327
3353
|
t && /* @__PURE__ */ s.jsx("legend", { className: "text-sm font-medium text-text-primary", children: t }),
|
|
3328
3354
|
d
|
|
@@ -3338,14 +3364,14 @@ const Bt = ({
|
|
|
3338
3364
|
name: c,
|
|
3339
3365
|
onChange: l,
|
|
3340
3366
|
onCheckedChange: d,
|
|
3341
|
-
className:
|
|
3367
|
+
className: f,
|
|
3342
3368
|
...x
|
|
3343
3369
|
}) => {
|
|
3344
|
-
const
|
|
3370
|
+
const p = z.useContext(dr), g = z.useId(), w = !!(n ?? (p == null ? void 0 : p.disabled)), P = c ?? (p == null ? void 0 : p.name), k = !!p, h = o !== void 0, [v, N] = z.useState(!!i), j = k ? (p == null ? void 0 : p.value) === t : h ? !!o : v, B = (V) => {
|
|
3345
3371
|
var H;
|
|
3346
3372
|
const Y = V.target.checked;
|
|
3347
|
-
k && Y ? (H =
|
|
3348
|
-
}, O = /* @__PURE__ */ s.jsxs("label", { htmlFor: g, className:
|
|
3373
|
+
k && Y ? (H = p == null ? void 0 : p.onValueChange) == null || H.call(p, t) : h || N(Y), d == null || d(Y), l == null || l(V);
|
|
3374
|
+
}, O = /* @__PURE__ */ s.jsxs("label", { htmlFor: g, className: y(w && "cursor-not-allowed", f), role: "radio", "aria-checked": j, "aria-disabled": w, children: [
|
|
3349
3375
|
/* @__PURE__ */ s.jsx(
|
|
3350
3376
|
"input",
|
|
3351
3377
|
{
|
|
@@ -3354,11 +3380,11 @@ const Bt = ({
|
|
|
3354
3380
|
name: P,
|
|
3355
3381
|
value: t,
|
|
3356
3382
|
checked: j,
|
|
3357
|
-
disabled:
|
|
3383
|
+
disabled: w,
|
|
3358
3384
|
onChange: B,
|
|
3359
3385
|
role: "radio",
|
|
3360
3386
|
"aria-checked": j,
|
|
3361
|
-
"aria-disabled":
|
|
3387
|
+
"aria-disabled": w,
|
|
3362
3388
|
...x
|
|
3363
3389
|
}
|
|
3364
3390
|
),
|
|
@@ -3395,39 +3421,39 @@ const Bt = ({
|
|
|
3395
3421
|
children: l,
|
|
3396
3422
|
className: d
|
|
3397
3423
|
}) => {
|
|
3398
|
-
const
|
|
3399
|
-
|
|
3424
|
+
const f = z.useRef(null), x = () => {
|
|
3425
|
+
f.current !== null && (window.clearTimeout(f.current), f.current = null);
|
|
3400
3426
|
};
|
|
3401
3427
|
z.useEffect(() => x, []);
|
|
3402
|
-
const
|
|
3428
|
+
const p = () => {
|
|
3403
3429
|
if (!c) {
|
|
3404
3430
|
if (x(), i > 0) {
|
|
3405
|
-
|
|
3431
|
+
f.current = window.setTimeout(() => t == null ? void 0 : t(!0), i);
|
|
3406
3432
|
return;
|
|
3407
3433
|
}
|
|
3408
3434
|
t == null || t(!0);
|
|
3409
3435
|
}
|
|
3410
3436
|
}, g = () => {
|
|
3411
3437
|
x(), t == null || t(!1);
|
|
3412
|
-
},
|
|
3413
|
-
return /* @__PURE__ */ s.jsxs("span", { className:
|
|
3414
|
-
z.cloneElement(
|
|
3438
|
+
}, w = z.Children.only(l), P = z.useId();
|
|
3439
|
+
return /* @__PURE__ */ s.jsxs("span", { className: y("relative inline-block", d), children: [
|
|
3440
|
+
z.cloneElement(w, {
|
|
3415
3441
|
"aria-describedby": r && !c ? P : void 0,
|
|
3416
3442
|
onMouseEnter: (k) => {
|
|
3417
3443
|
var h, v;
|
|
3418
|
-
(v = (h =
|
|
3444
|
+
(v = (h = w.props).onMouseEnter) == null || v.call(h, k), p();
|
|
3419
3445
|
},
|
|
3420
3446
|
onMouseLeave: (k) => {
|
|
3421
3447
|
var h, v;
|
|
3422
|
-
(v = (h =
|
|
3448
|
+
(v = (h = w.props).onMouseLeave) == null || v.call(h, k), g();
|
|
3423
3449
|
},
|
|
3424
3450
|
onFocus: (k) => {
|
|
3425
3451
|
var h, v;
|
|
3426
|
-
(v = (h =
|
|
3452
|
+
(v = (h = w.props).onFocus) == null || v.call(h, k), p();
|
|
3427
3453
|
},
|
|
3428
3454
|
onBlur: (k) => {
|
|
3429
3455
|
var h, v;
|
|
3430
|
-
(v = (h =
|
|
3456
|
+
(v = (h = w.props).onBlur) == null || v.call(h, k), g();
|
|
3431
3457
|
}
|
|
3432
3458
|
}),
|
|
3433
3459
|
r && !c && /* @__PURE__ */ s.jsxs(
|
|
@@ -3435,7 +3461,7 @@ const Bt = ({
|
|
|
3435
3461
|
{
|
|
3436
3462
|
id: P,
|
|
3437
3463
|
role: "tooltip",
|
|
3438
|
-
className:
|
|
3464
|
+
className: y(
|
|
3439
3465
|
"absolute z-50 pointer-events-none",
|
|
3440
3466
|
zt[o],
|
|
3441
3467
|
"whitespace-nowrap",
|
|
@@ -3447,7 +3473,7 @@ const Bt = ({
|
|
|
3447
3473
|
/* @__PURE__ */ s.jsx(
|
|
3448
3474
|
"span",
|
|
3449
3475
|
{
|
|
3450
|
-
className:
|
|
3476
|
+
className: y(
|
|
3451
3477
|
"absolute w-0 h-0",
|
|
3452
3478
|
Mt[o],
|
|
3453
3479
|
It[o]
|
|
@@ -3457,7 +3483,7 @@ const Bt = ({
|
|
|
3457
3483
|
/* @__PURE__ */ s.jsx(
|
|
3458
3484
|
"span",
|
|
3459
3485
|
{
|
|
3460
|
-
className:
|
|
3486
|
+
className: y(
|
|
3461
3487
|
"absolute w-0 h-0 bg-surface",
|
|
3462
3488
|
Lt[o],
|
|
3463
3489
|
o === "top" && "border-t-[5px] border-r-[5px] border-l-[5px] border-t-surface border-r-transparent border-l-transparent",
|
|
@@ -3491,8 +3517,8 @@ const Bt = ({
|
|
|
3491
3517
|
o === "light" ? (l.classList.add("theme-light"), l.classList.remove("theme-dark")) : (l.classList.add("theme-dark"), l.classList.remove("theme-light"));
|
|
3492
3518
|
}, [o]), z.useEffect(() => {
|
|
3493
3519
|
if (typeof window > "u" || !window.matchMedia) return;
|
|
3494
|
-
const l = window.matchMedia("(prefers-color-scheme: dark)"), d = (
|
|
3495
|
-
typeof window < "u" && !localStorage.getItem("theme") && i(
|
|
3520
|
+
const l = window.matchMedia("(prefers-color-scheme: dark)"), d = (f) => {
|
|
3521
|
+
typeof window < "u" && !localStorage.getItem("theme") && i(f.matches ? "dark" : "light");
|
|
3496
3522
|
};
|
|
3497
3523
|
if (l.addEventListener)
|
|
3498
3524
|
return l.addEventListener("change", d), () => l.removeEventListener("change", d);
|
|
@@ -3513,7 +3539,7 @@ const Bt = ({
|
|
|
3513
3539
|
}, l = (d) => {
|
|
3514
3540
|
(d.key === "Enter" || d.key === " ") && (d.preventDefault(), c());
|
|
3515
3541
|
};
|
|
3516
|
-
return /* @__PURE__ */ s.jsxs("div", { className:
|
|
3542
|
+
return /* @__PURE__ */ s.jsxs("div", { className: y("flex items-center gap-3", r), children: [
|
|
3517
3543
|
/* @__PURE__ */ s.jsxs(
|
|
3518
3544
|
"label",
|
|
3519
3545
|
{
|
|
@@ -3565,7 +3591,7 @@ const Bt = ({
|
|
|
3565
3591
|
}) => /* @__PURE__ */ s.jsxs(
|
|
3566
3592
|
"div",
|
|
3567
3593
|
{
|
|
3568
|
-
className:
|
|
3594
|
+
className: y(
|
|
3569
3595
|
"relative flex justify-center items-center overflow-hidden",
|
|
3570
3596
|
"bg-surface-tertiary rounded-[24px]",
|
|
3571
3597
|
"shadow-[0_4px_8px_rgba(0,0,0,0.2),0_8px_16px_rgba(0,0,0,0.2),0_0_8px_rgba(255,255,255,0.1),0_0_16px_rgba(255,255,255,0.08)]",
|
|
@@ -3599,7 +3625,7 @@ const Bt = ({
|
|
|
3599
3625
|
}) => /* @__PURE__ */ s.jsx(
|
|
3600
3626
|
"div",
|
|
3601
3627
|
{
|
|
3602
|
-
className:
|
|
3628
|
+
className: y(
|
|
3603
3629
|
"absolute bg-surface-tertiary rounded-[24px] p-7 z-[10]",
|
|
3604
3630
|
"backdrop-blur-[15px]",
|
|
3605
3631
|
"shadow-[inset_0_40px_60px_-8px_rgba(255,255,255,0.12),inset_4px_0_12px_-6px_rgba(255,255,255,0.12),inset_0_0_12px_-4px_rgba(255,255,255,0.12)]",
|
|
@@ -3615,7 +3641,7 @@ const Bt = ({
|
|
|
3615
3641
|
), $t = ({ className: r, ...t }) => /* @__PURE__ */ s.jsxs(
|
|
3616
3642
|
"div",
|
|
3617
3643
|
{
|
|
3618
|
-
className:
|
|
3644
|
+
className: y(
|
|
3619
3645
|
"w-[65px] h-[65px] rounded-[20px] border-2 border-white",
|
|
3620
3646
|
"bg-gradient-to-br from-white/20 to-black/20",
|
|
3621
3647
|
"shadow-[8px_8px_16px_rgba(0,0,0,0.2),-8px_-8px_16px_rgba(255,255,255,0.06)]",
|
|
@@ -3641,7 +3667,7 @@ const Bt = ({
|
|
|
3641
3667
|
/* @__PURE__ */ s.jsxs(
|
|
3642
3668
|
"form",
|
|
3643
3669
|
{
|
|
3644
|
-
className:
|
|
3670
|
+
className: y("flex justify-center items-center flex-col gap-[10px]", c),
|
|
3645
3671
|
...d,
|
|
3646
3672
|
children: [
|
|
3647
3673
|
t && /* @__PURE__ */ s.jsx("div", { className: "flex justify-center items-center mb-2", children: /* @__PURE__ */ s.jsx($t, {}) }),
|
|
@@ -3659,11 +3685,11 @@ const Bt = ({
|
|
|
3659
3685
|
...i
|
|
3660
3686
|
}) => /* @__PURE__ */ s.jsxs("div", { className: "w-full", children: [
|
|
3661
3687
|
r && /* @__PURE__ */ s.jsx("label", { className: "block text-text-primary text-sm mb-1.5", children: r }),
|
|
3662
|
-
/* @__PURE__ */ s.jsx(
|
|
3688
|
+
/* @__PURE__ */ s.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ s.jsx(
|
|
3663
3689
|
lr,
|
|
3664
3690
|
{
|
|
3665
|
-
className:
|
|
3666
|
-
"
|
|
3691
|
+
className: y(
|
|
3692
|
+
"p-3 border-none rounded-xl bg-surface text-text-primary text-sm outline-none",
|
|
3667
3693
|
"focus:border focus:border-border-focus",
|
|
3668
3694
|
n
|
|
3669
3695
|
),
|
|
@@ -3671,7 +3697,7 @@ const Bt = ({
|
|
|
3671
3697
|
size: o,
|
|
3672
3698
|
...i
|
|
3673
3699
|
}
|
|
3674
|
-
)
|
|
3700
|
+
) })
|
|
3675
3701
|
] }), oo = ({
|
|
3676
3702
|
variant: r = "primary",
|
|
3677
3703
|
className: t,
|
|
@@ -3680,7 +3706,7 @@ const Bt = ({
|
|
|
3680
3706
|
}) => r === "google" ? /* @__PURE__ */ s.jsx(
|
|
3681
3707
|
"button",
|
|
3682
3708
|
{
|
|
3683
|
-
className:
|
|
3709
|
+
className: y(
|
|
3684
3710
|
"w-full h-10 border-none rounded-[20px] text-sm font-semibold cursor-pointer",
|
|
3685
3711
|
"grid place-content-center gap-2.5 bg-surface-secondary text-text-primary",
|
|
3686
3712
|
"transition-all duration-300",
|
|
@@ -3695,7 +3721,7 @@ const Bt = ({
|
|
|
3695
3721
|
) : /* @__PURE__ */ s.jsx(
|
|
3696
3722
|
ir,
|
|
3697
3723
|
{
|
|
3698
|
-
className:
|
|
3724
|
+
className: y(
|
|
3699
3725
|
"w-full h-10 rounded-[20px] text-sm font-semibold mt-1.5",
|
|
3700
3726
|
t
|
|
3701
3727
|
),
|
|
@@ -3710,7 +3736,7 @@ const Bt = ({
|
|
|
3710
3736
|
}) => /* @__PURE__ */ s.jsx(
|
|
3711
3737
|
"div",
|
|
3712
3738
|
{
|
|
3713
|
-
className:
|
|
3739
|
+
className: y(
|
|
3714
3740
|
"w-full text-left text-text-secondary text-xs",
|
|
3715
3741
|
r
|
|
3716
3742
|
),
|
|
@@ -3724,7 +3750,7 @@ const Bt = ({
|
|
|
3724
3750
|
}) => /* @__PURE__ */ s.jsx(
|
|
3725
3751
|
"a",
|
|
3726
3752
|
{
|
|
3727
|
-
className:
|
|
3753
|
+
className: y(
|
|
3728
3754
|
"relative text-text-secondary font-semibold no-underline transition-colors duration-300 ease-in-out",
|
|
3729
3755
|
"hover:text-white",
|
|
3730
3756
|
'after:content-[""] after:absolute after:left-0 after:bottom-[-2px] after:w-0 after:rounded-md after:h-[1px] after:bg-current after:transition-[width] after:duration-300 after:ease-in-out',
|