@dimasbaguspm/versaur 0.0.5 → 0.0.7
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/components/text-input/types.d.ts +1 -1
- package/dist/components/textarea-input/types.d.ts +1 -1
- package/dist/index.js +1016 -1015
- package/dist/styles.css +16 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import I, { forwardRef as E, useState as
|
|
3
|
-
import { ChevronLeft as
|
|
1
|
+
import * as yt from "react";
|
|
2
|
+
import I, { forwardRef as E, useState as H, useEffect as J, useCallback as ke, createContext as ee, useContext as te, useRef as ce, useId as Ee, useLayoutEffect as kt } from "react";
|
|
3
|
+
import { ChevronLeft as jt, ChevronRight as Nt, Check as Ct, X as zt } from "lucide-react";
|
|
4
4
|
var ve = { exports: {} }, be = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
@@ -12,11 +12,11 @@ var ve = { exports: {} }, be = {};
|
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
14
|
var Me;
|
|
15
|
-
function
|
|
15
|
+
function It() {
|
|
16
16
|
if (Me) return be;
|
|
17
17
|
Me = 1;
|
|
18
|
-
var e = Symbol.for("react.transitional.element"),
|
|
19
|
-
function
|
|
18
|
+
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
19
|
+
function r(o, s, a) {
|
|
20
20
|
var l = null;
|
|
21
21
|
if (a !== void 0 && (l = "" + a), s.key !== void 0 && (l = "" + s.key), "key" in s) {
|
|
22
22
|
a = {};
|
|
@@ -31,7 +31,7 @@ function zr() {
|
|
|
31
31
|
props: a
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
return be.Fragment =
|
|
34
|
+
return be.Fragment = t, be.jsx = r, be.jsxs = r, be;
|
|
35
35
|
}
|
|
36
36
|
var me = {};
|
|
37
37
|
/**
|
|
@@ -44,7 +44,7 @@ var me = {};
|
|
|
44
44
|
* LICENSE file in the root directory of this source tree.
|
|
45
45
|
*/
|
|
46
46
|
var Pe;
|
|
47
|
-
function
|
|
47
|
+
function St() {
|
|
48
48
|
return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
49
49
|
function e(u) {
|
|
50
50
|
if (u == null) return null;
|
|
@@ -78,7 +78,7 @@ function Ir() {
|
|
|
78
78
|
case M:
|
|
79
79
|
var z = u.render;
|
|
80
80
|
return u = u.displayName, u || (u = z.displayName || z.name || "", u = u !== "" ? "ForwardRef(" + u + ")" : "ForwardRef"), u;
|
|
81
|
-
case
|
|
81
|
+
case Y:
|
|
82
82
|
return z = u.displayName || null, z !== null ? z : e(u.type) || "Memo";
|
|
83
83
|
case j:
|
|
84
84
|
z = u._payload, u = u._init;
|
|
@@ -89,12 +89,12 @@ function Ir() {
|
|
|
89
89
|
}
|
|
90
90
|
return null;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function t(u) {
|
|
93
93
|
return "" + u;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function r(u) {
|
|
96
96
|
try {
|
|
97
|
-
|
|
97
|
+
t(u);
|
|
98
98
|
var z = !1;
|
|
99
99
|
} catch {
|
|
100
100
|
z = !0;
|
|
@@ -106,7 +106,7 @@ function Ir() {
|
|
|
106
106
|
z,
|
|
107
107
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
108
108
|
V
|
|
109
|
-
),
|
|
109
|
+
), t(u);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
function o(u) {
|
|
@@ -128,7 +128,7 @@ function Ir() {
|
|
|
128
128
|
return Error("react-stack-top-frame");
|
|
129
129
|
}
|
|
130
130
|
function l(u) {
|
|
131
|
-
if (
|
|
131
|
+
if (re.call(u, "key")) {
|
|
132
132
|
var z = Object.getOwnPropertyDescriptor(u, "key").get;
|
|
133
133
|
if (z && z.isReactWarning) return !1;
|
|
134
134
|
}
|
|
@@ -197,12 +197,12 @@ function Ir() {
|
|
|
197
197
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
198
198
|
);
|
|
199
199
|
else g(B);
|
|
200
|
-
if (
|
|
200
|
+
if (re.call(z, "key")) {
|
|
201
201
|
B = e(u);
|
|
202
|
-
var
|
|
202
|
+
var q = Object.keys(z).filter(function(fe) {
|
|
203
203
|
return fe !== "key";
|
|
204
204
|
});
|
|
205
|
-
V = 0 <
|
|
205
|
+
V = 0 < q.length ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}", ge[B + V] || (q = 0 < q.length ? "{" + q.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
206
206
|
`A props object containing a "key" prop is being spread into JSX:
|
|
207
207
|
let props = %s;
|
|
208
208
|
<%s {...props} />
|
|
@@ -211,11 +211,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
211
211
|
<%s key={someKey} {...props} />`,
|
|
212
212
|
V,
|
|
213
213
|
B,
|
|
214
|
-
|
|
214
|
+
q,
|
|
215
215
|
B
|
|
216
216
|
), ge[B + V] = !0);
|
|
217
217
|
}
|
|
218
|
-
if (B = null, T !== void 0 && (
|
|
218
|
+
if (B = null, T !== void 0 && (r(T), B = "" + T), l(z) && (r(z.key), B = "" + z.key), "key" in z) {
|
|
219
219
|
T = {};
|
|
220
220
|
for (var Z in z)
|
|
221
221
|
Z !== "key" && (T[Z] = z[Z]);
|
|
@@ -237,7 +237,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
237
237
|
function g(u) {
|
|
238
238
|
typeof u == "object" && u !== null && u.$$typeof === m && u._store && (u._store.validated = 1);
|
|
239
239
|
}
|
|
240
|
-
var b = I, m = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), N = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), L = Symbol.for("react.suspense_list"),
|
|
240
|
+
var b = I, m = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), N = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), L = Symbol.for("react.suspense_list"), Y = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), G = Symbol.for("react.activity"), _ = Symbol.for("react.client.reference"), ne = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, re = Object.prototype.hasOwnProperty, xe = Array.isArray, oe = console.createTask ? console.createTask : function() {
|
|
241
241
|
return null;
|
|
242
242
|
};
|
|
243
243
|
b = {
|
|
@@ -245,7 +245,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
245
245
|
return u();
|
|
246
246
|
}
|
|
247
247
|
};
|
|
248
|
-
var X, W = {},
|
|
248
|
+
var X, W = {}, U = b["react-stack-bottom-frame"].bind(
|
|
249
249
|
b,
|
|
250
250
|
a
|
|
251
251
|
)(), k = oe(o(a)), ge = {};
|
|
@@ -258,7 +258,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
258
258
|
!1,
|
|
259
259
|
V,
|
|
260
260
|
P,
|
|
261
|
-
$ ? Error("react-stack-top-frame") :
|
|
261
|
+
$ ? Error("react-stack-top-frame") : U,
|
|
262
262
|
$ ? oe(o(u)) : k
|
|
263
263
|
);
|
|
264
264
|
}, me.jsxs = function(u, z, T, V, P) {
|
|
@@ -270,105 +270,105 @@ React keys must be passed directly to JSX without using spread:
|
|
|
270
270
|
!0,
|
|
271
271
|
V,
|
|
272
272
|
P,
|
|
273
|
-
$ ? Error("react-stack-top-frame") :
|
|
273
|
+
$ ? Error("react-stack-top-frame") : U,
|
|
274
274
|
$ ? oe(o(u)) : k
|
|
275
275
|
);
|
|
276
276
|
};
|
|
277
277
|
}()), me;
|
|
278
278
|
}
|
|
279
279
|
var Oe;
|
|
280
|
-
function
|
|
281
|
-
return Oe || (Oe = 1, process.env.NODE_ENV === "production" ? ve.exports =
|
|
280
|
+
function Rt() {
|
|
281
|
+
return Oe || (Oe = 1, process.env.NODE_ENV === "production" ? ve.exports = It() : ve.exports = St()), ve.exports;
|
|
282
282
|
}
|
|
283
|
-
var n =
|
|
284
|
-
function
|
|
285
|
-
var
|
|
283
|
+
var n = Rt();
|
|
284
|
+
function Ye(e) {
|
|
285
|
+
var t, r, o = "";
|
|
286
286
|
if (typeof e == "string" || typeof e == "number") o += e;
|
|
287
287
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
288
288
|
var s = e.length;
|
|
289
|
-
for (
|
|
290
|
-
} else for (
|
|
289
|
+
for (t = 0; t < s; t++) e[t] && (r = Ye(e[t])) && (o && (o += " "), o += r);
|
|
290
|
+
} else for (r in e) e[r] && (o && (o += " "), o += r);
|
|
291
291
|
return o;
|
|
292
292
|
}
|
|
293
|
-
function
|
|
294
|
-
for (var e,
|
|
293
|
+
function qe() {
|
|
294
|
+
for (var e, t, r = 0, o = "", s = arguments.length; r < s; r++) (e = arguments[r]) && (t = Ye(e)) && (o && (o += " "), o += t);
|
|
295
295
|
return o;
|
|
296
296
|
}
|
|
297
|
-
const Te = "-",
|
|
298
|
-
const
|
|
299
|
-
conflictingClassGroups:
|
|
297
|
+
const Te = "-", Vt = (e) => {
|
|
298
|
+
const t = Tt(e), {
|
|
299
|
+
conflictingClassGroups: r,
|
|
300
300
|
conflictingClassGroupModifiers: o
|
|
301
301
|
} = e;
|
|
302
302
|
return {
|
|
303
303
|
getClassGroupId: (l) => {
|
|
304
304
|
const i = l.split(Te);
|
|
305
|
-
return i[0] === "" && i.length !== 1 && i.shift(),
|
|
305
|
+
return i[0] === "" && i.length !== 1 && i.shift(), Ue(i, t) || Et(l);
|
|
306
306
|
},
|
|
307
307
|
getConflictingClassGroupIds: (l, i) => {
|
|
308
|
-
const c =
|
|
308
|
+
const c = r[l] || [];
|
|
309
309
|
return i && o[l] ? [...c, ...o[l]] : c;
|
|
310
310
|
}
|
|
311
311
|
};
|
|
312
|
-
},
|
|
312
|
+
}, Ue = (e, t) => {
|
|
313
313
|
if (e.length === 0)
|
|
314
|
-
return
|
|
315
|
-
const
|
|
314
|
+
return t.classGroupId;
|
|
315
|
+
const r = e[0], o = t.nextPart.get(r), s = o ? Ue(e.slice(1), o) : void 0;
|
|
316
316
|
if (s)
|
|
317
317
|
return s;
|
|
318
|
-
if (
|
|
318
|
+
if (t.validators.length === 0)
|
|
319
319
|
return;
|
|
320
320
|
const a = e.join(Te);
|
|
321
|
-
return
|
|
321
|
+
return t.validators.find(({
|
|
322
322
|
validator: l
|
|
323
323
|
}) => l(a))?.classGroupId;
|
|
324
|
-
}, Be = /^\[(.+)\]$/,
|
|
324
|
+
}, Be = /^\[(.+)\]$/, Et = (e) => {
|
|
325
325
|
if (Be.test(e)) {
|
|
326
|
-
const
|
|
327
|
-
if (
|
|
328
|
-
return "arbitrary.." +
|
|
326
|
+
const t = Be.exec(e)[1], r = t?.substring(0, t.indexOf(":"));
|
|
327
|
+
if (r)
|
|
328
|
+
return "arbitrary.." + r;
|
|
329
329
|
}
|
|
330
|
-
},
|
|
330
|
+
}, Tt = (e) => {
|
|
331
331
|
const {
|
|
332
|
-
theme:
|
|
333
|
-
classGroups:
|
|
332
|
+
theme: t,
|
|
333
|
+
classGroups: r
|
|
334
334
|
} = e, o = {
|
|
335
335
|
nextPart: /* @__PURE__ */ new Map(),
|
|
336
336
|
validators: []
|
|
337
337
|
};
|
|
338
|
-
for (const s in
|
|
339
|
-
Se(
|
|
338
|
+
for (const s in r)
|
|
339
|
+
Se(r[s], o, s, t);
|
|
340
340
|
return o;
|
|
341
|
-
}, Se = (e,
|
|
341
|
+
}, Se = (e, t, r, o) => {
|
|
342
342
|
e.forEach((s) => {
|
|
343
343
|
if (typeof s == "string") {
|
|
344
|
-
const a = s === "" ?
|
|
345
|
-
a.classGroupId =
|
|
344
|
+
const a = s === "" ? t : De(t, s);
|
|
345
|
+
a.classGroupId = r;
|
|
346
346
|
return;
|
|
347
347
|
}
|
|
348
348
|
if (typeof s == "function") {
|
|
349
|
-
if (
|
|
350
|
-
Se(s(o),
|
|
349
|
+
if (At(s)) {
|
|
350
|
+
Se(s(o), t, r, o);
|
|
351
351
|
return;
|
|
352
352
|
}
|
|
353
|
-
|
|
353
|
+
t.validators.push({
|
|
354
354
|
validator: s,
|
|
355
|
-
classGroupId:
|
|
355
|
+
classGroupId: r
|
|
356
356
|
});
|
|
357
357
|
return;
|
|
358
358
|
}
|
|
359
359
|
Object.entries(s).forEach(([a, l]) => {
|
|
360
|
-
Se(l, De(
|
|
360
|
+
Se(l, De(t, a), r, o);
|
|
361
361
|
});
|
|
362
362
|
});
|
|
363
|
-
}, De = (e,
|
|
364
|
-
let
|
|
365
|
-
return
|
|
366
|
-
|
|
363
|
+
}, De = (e, t) => {
|
|
364
|
+
let r = e;
|
|
365
|
+
return t.split(Te).forEach((o) => {
|
|
366
|
+
r.nextPart.has(o) || r.nextPart.set(o, {
|
|
367
367
|
nextPart: /* @__PURE__ */ new Map(),
|
|
368
368
|
validators: []
|
|
369
|
-
}),
|
|
370
|
-
}),
|
|
371
|
-
},
|
|
369
|
+
}), r = r.nextPart.get(o);
|
|
370
|
+
}), r;
|
|
371
|
+
}, At = (e) => e.isThemeGetter, Mt = (e) => {
|
|
372
372
|
if (e < 1)
|
|
373
373
|
return {
|
|
374
374
|
get: () => {
|
|
@@ -376,26 +376,26 @@ const Te = "-", Rr = (e) => {
|
|
|
376
376
|
set: () => {
|
|
377
377
|
}
|
|
378
378
|
};
|
|
379
|
-
let
|
|
379
|
+
let t = 0, r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
380
380
|
const s = (a, l) => {
|
|
381
|
-
|
|
381
|
+
r.set(a, l), t++, t > e && (t = 0, o = r, r = /* @__PURE__ */ new Map());
|
|
382
382
|
};
|
|
383
383
|
return {
|
|
384
384
|
get(a) {
|
|
385
|
-
let l =
|
|
385
|
+
let l = r.get(a);
|
|
386
386
|
if (l !== void 0)
|
|
387
387
|
return l;
|
|
388
388
|
if ((l = o.get(a)) !== void 0)
|
|
389
389
|
return s(a, l), l;
|
|
390
390
|
},
|
|
391
391
|
set(a, l) {
|
|
392
|
-
|
|
392
|
+
r.has(a) ? r.set(a, l) : s(a, l);
|
|
393
393
|
}
|
|
394
394
|
};
|
|
395
|
-
}, Re = "!", Ve = ":",
|
|
395
|
+
}, Re = "!", Ve = ":", Pt = Ve.length, Ot = (e) => {
|
|
396
396
|
const {
|
|
397
|
-
prefix:
|
|
398
|
-
experimentalParseClassName:
|
|
397
|
+
prefix: t,
|
|
398
|
+
experimentalParseClassName: r
|
|
399
399
|
} = e;
|
|
400
400
|
let o = (s) => {
|
|
401
401
|
const a = [];
|
|
@@ -404,7 +404,7 @@ const Te = "-", Rr = (e) => {
|
|
|
404
404
|
let w = s[v];
|
|
405
405
|
if (l === 0 && i === 0) {
|
|
406
406
|
if (w === Ve) {
|
|
407
|
-
a.push(s.slice(c, v)), c = v +
|
|
407
|
+
a.push(s.slice(c, v)), c = v + Pt;
|
|
408
408
|
continue;
|
|
409
409
|
}
|
|
410
410
|
if (w === "/") {
|
|
@@ -414,7 +414,7 @@ const Te = "-", Rr = (e) => {
|
|
|
414
414
|
}
|
|
415
415
|
w === "[" ? l++ : w === "]" ? l-- : w === "(" ? i++ : w === ")" && i--;
|
|
416
416
|
}
|
|
417
|
-
const f = a.length === 0 ? s : s.substring(c), g =
|
|
417
|
+
const f = a.length === 0 ? s : s.substring(c), g = Bt(f), b = g !== f, m = d && d > c ? d - c : void 0;
|
|
418
418
|
return {
|
|
419
419
|
modifiers: a,
|
|
420
420
|
hasImportantModifier: b,
|
|
@@ -422,8 +422,8 @@ const Te = "-", Rr = (e) => {
|
|
|
422
422
|
maybePostfixModifierPosition: m
|
|
423
423
|
};
|
|
424
424
|
};
|
|
425
|
-
if (
|
|
426
|
-
const s =
|
|
425
|
+
if (t) {
|
|
426
|
+
const s = t + Ve, a = o;
|
|
427
427
|
o = (l) => l.startsWith(s) ? a(l.substring(s.length)) : {
|
|
428
428
|
isExternal: !0,
|
|
429
429
|
modifiers: [],
|
|
@@ -432,37 +432,37 @@ const Te = "-", Rr = (e) => {
|
|
|
432
432
|
maybePostfixModifierPosition: void 0
|
|
433
433
|
};
|
|
434
434
|
}
|
|
435
|
-
if (
|
|
435
|
+
if (r) {
|
|
436
436
|
const s = o;
|
|
437
|
-
o = (a) =>
|
|
437
|
+
o = (a) => r({
|
|
438
438
|
className: a,
|
|
439
439
|
parseClassName: s
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
442
|
return o;
|
|
443
|
-
},
|
|
444
|
-
const
|
|
443
|
+
}, Bt = (e) => e.endsWith(Re) ? e.substring(0, e.length - 1) : e.startsWith(Re) ? e.substring(1) : e, Dt = (e) => {
|
|
444
|
+
const t = Object.fromEntries(e.orderSensitiveModifiers.map((o) => [o, !0]));
|
|
445
445
|
return (o) => {
|
|
446
446
|
if (o.length <= 1)
|
|
447
447
|
return o;
|
|
448
448
|
const s = [];
|
|
449
449
|
let a = [];
|
|
450
450
|
return o.forEach((l) => {
|
|
451
|
-
l[0] === "[" ||
|
|
451
|
+
l[0] === "[" || t[l] ? (s.push(...a.sort(), l), a = []) : a.push(l);
|
|
452
452
|
}), s.push(...a.sort()), s;
|
|
453
453
|
};
|
|
454
|
-
},
|
|
455
|
-
cache:
|
|
456
|
-
parseClassName:
|
|
457
|
-
sortModifiers:
|
|
458
|
-
...
|
|
459
|
-
}),
|
|
454
|
+
}, _t = (e) => ({
|
|
455
|
+
cache: Mt(e.cacheSize),
|
|
456
|
+
parseClassName: Ot(e),
|
|
457
|
+
sortModifiers: Dt(e),
|
|
458
|
+
...Vt(e)
|
|
459
|
+
}), Ft = /\s+/, Lt = (e, t) => {
|
|
460
460
|
const {
|
|
461
|
-
parseClassName:
|
|
461
|
+
parseClassName: r,
|
|
462
462
|
getClassGroupId: o,
|
|
463
463
|
getConflictingClassGroupIds: s,
|
|
464
464
|
sortModifiers: a
|
|
465
|
-
} =
|
|
465
|
+
} = t, l = [], i = e.trim().split(Ft);
|
|
466
466
|
let c = "";
|
|
467
467
|
for (let d = i.length - 1; d >= 0; d -= 1) {
|
|
468
468
|
const f = i[d], {
|
|
@@ -471,7 +471,7 @@ const Te = "-", Rr = (e) => {
|
|
|
471
471
|
hasImportantModifier: m,
|
|
472
472
|
baseClassName: v,
|
|
473
473
|
maybePostfixModifierPosition: w
|
|
474
|
-
} =
|
|
474
|
+
} = r(f);
|
|
475
475
|
if (g) {
|
|
476
476
|
c = f + (c.length > 0 ? " " + c : c);
|
|
477
477
|
continue;
|
|
@@ -494,60 +494,60 @@ const Te = "-", Rr = (e) => {
|
|
|
494
494
|
l.push(M);
|
|
495
495
|
const F = s(R, C);
|
|
496
496
|
for (let L = 0; L < F.length; ++L) {
|
|
497
|
-
const
|
|
498
|
-
l.push(N +
|
|
497
|
+
const Y = F[L];
|
|
498
|
+
l.push(N + Y);
|
|
499
499
|
}
|
|
500
500
|
c = f + (c.length > 0 ? " " + c : c);
|
|
501
501
|
}
|
|
502
502
|
return c;
|
|
503
503
|
};
|
|
504
|
-
function
|
|
505
|
-
let e = 0,
|
|
504
|
+
function $t() {
|
|
505
|
+
let e = 0, t, r, o = "";
|
|
506
506
|
for (; e < arguments.length; )
|
|
507
|
-
(
|
|
507
|
+
(t = arguments[e++]) && (r = He(t)) && (o && (o += " "), o += r);
|
|
508
508
|
return o;
|
|
509
509
|
}
|
|
510
|
-
const
|
|
510
|
+
const He = (e) => {
|
|
511
511
|
if (typeof e == "string")
|
|
512
512
|
return e;
|
|
513
|
-
let
|
|
513
|
+
let t, r = "";
|
|
514
514
|
for (let o = 0; o < e.length; o++)
|
|
515
|
-
e[o] && (
|
|
516
|
-
return
|
|
515
|
+
e[o] && (t = He(e[o])) && (r && (r += " "), r += t);
|
|
516
|
+
return r;
|
|
517
517
|
};
|
|
518
|
-
function
|
|
519
|
-
let
|
|
518
|
+
function Gt(e, ...t) {
|
|
519
|
+
let r, o, s, a = l;
|
|
520
520
|
function l(c) {
|
|
521
|
-
const d =
|
|
522
|
-
return
|
|
521
|
+
const d = t.reduce((f, g) => g(f), e());
|
|
522
|
+
return r = _t(d), o = r.cache.get, s = r.cache.set, a = i, i(c);
|
|
523
523
|
}
|
|
524
524
|
function i(c) {
|
|
525
525
|
const d = o(c);
|
|
526
526
|
if (d)
|
|
527
527
|
return d;
|
|
528
|
-
const f =
|
|
528
|
+
const f = Lt(c, r);
|
|
529
529
|
return s(c, f), f;
|
|
530
530
|
}
|
|
531
531
|
return function() {
|
|
532
|
-
return a(
|
|
532
|
+
return a($t.apply(null, arguments));
|
|
533
533
|
};
|
|
534
534
|
}
|
|
535
535
|
const D = (e) => {
|
|
536
|
-
const
|
|
537
|
-
return
|
|
538
|
-
},
|
|
536
|
+
const t = (r) => r[e] || [];
|
|
537
|
+
return t.isThemeGetter = !0, t;
|
|
538
|
+
}, Je = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Xe = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Wt = /^\d+\/\d+$/, Yt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, qt = /\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$/, Ut = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ht = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Jt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ie = (e) => Wt.test(e), S = (e) => !!e && !Number.isNaN(Number(e)), Q = (e) => !!e && Number.isInteger(Number(e)), Ne = (e) => e.endsWith("%") && S(e.slice(0, -1)), K = (e) => Yt.test(e), Xt = () => !0, Kt = (e) => (
|
|
539
539
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
540
540
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
541
541
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
542
|
-
|
|
543
|
-
),
|
|
544
|
-
const o = He.exec(e);
|
|
545
|
-
return o ? o[1] ? r(o[1]) : t(o[2]) : !1;
|
|
546
|
-
}, ue = (e, r, t = !1) => {
|
|
542
|
+
qt.test(e) && !Ut.test(e)
|
|
543
|
+
), Ke = () => !1, Zt = (e) => Ht.test(e), Qt = (e) => Jt.test(e), er = (e) => !h(e) && !x(e), tr = (e) => de(e, et, Ke), h = (e) => Je.test(e), se = (e) => de(e, tt, Kt), Ce = (e) => de(e, ar, S), _e = (e) => de(e, Ze, Ke), rr = (e) => de(e, Qe, Qt), we = (e) => de(e, rt, Zt), x = (e) => Xe.test(e), he = (e) => ue(e, tt), or = (e) => ue(e, ir), Fe = (e) => ue(e, Ze), sr = (e) => ue(e, et), nr = (e) => ue(e, Qe), ye = (e) => ue(e, rt, !0), de = (e, t, r) => {
|
|
547
544
|
const o = Je.exec(e);
|
|
548
|
-
return o ? o[1] ?
|
|
549
|
-
},
|
|
550
|
-
const
|
|
545
|
+
return o ? o[1] ? t(o[1]) : r(o[2]) : !1;
|
|
546
|
+
}, ue = (e, t, r = !1) => {
|
|
547
|
+
const o = Xe.exec(e);
|
|
548
|
+
return o ? o[1] ? t(o[1]) : r : !1;
|
|
549
|
+
}, Ze = (e) => e === "position" || e === "percentage", Qe = (e) => e === "image" || e === "url", et = (e) => e === "length" || e === "size" || e === "bg-size", tt = (e) => e === "length", ar = (e) => e === "number", ir = (e) => e === "family-name", rt = (e) => e === "shadow", lr = () => {
|
|
550
|
+
const e = D("color"), t = D("font"), r = D("text"), o = D("font-weight"), s = D("tracking"), a = D("leading"), l = D("breakpoint"), i = D("container"), c = D("spacing"), d = D("radius"), f = D("shadow"), g = D("inset-shadow"), b = D("text-shadow"), m = D("drop-shadow"), v = D("blur"), w = D("perspective"), C = D("aspect"), R = D("ease"), A = D("animate"), N = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], M = () => [
|
|
551
551
|
"center",
|
|
552
552
|
"top",
|
|
553
553
|
"bottom",
|
|
@@ -565,13 +565,13 @@ const D = (e) => {
|
|
|
565
565
|
"bottom-left",
|
|
566
566
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
567
567
|
"left-bottom"
|
|
568
|
-
], F = () => [...M(), x, h], L = () => ["auto", "hidden", "clip", "visible", "scroll"],
|
|
568
|
+
], F = () => [...M(), x, h], L = () => ["auto", "hidden", "clip", "visible", "scroll"], Y = () => ["auto", "contain", "none"], j = () => [x, h, c], G = () => [ie, "full", "auto", ...j()], _ = () => [Q, "none", "subgrid", x, h], ne = () => ["auto", {
|
|
569
569
|
span: ["full", Q, x, h]
|
|
570
|
-
}, Q, x, h],
|
|
570
|
+
}, Q, x, h], re = () => [Q, "auto", x, h], xe = () => ["auto", "min", "max", "fr", x, h], oe = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], X = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], W = () => ["auto", ...j()], U = () => [ie, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...j()], k = () => [e, x, h], ge = () => [...M(), Fe, _e, {
|
|
571
571
|
position: [x, h]
|
|
572
572
|
}], u = () => ["no-repeat", {
|
|
573
573
|
repeat: ["", "x", "y", "space", "round"]
|
|
574
|
-
}], z = () => ["auto", "cover", "contain",
|
|
574
|
+
}], z = () => ["auto", "cover", "contain", sr, tr, {
|
|
575
575
|
size: [x, h]
|
|
576
576
|
}], T = () => [Ne, he, se], V = () => [
|
|
577
577
|
// Deprecated since Tailwind CSS v4.0.0
|
|
@@ -588,7 +588,7 @@ const D = (e) => {
|
|
|
588
588
|
v,
|
|
589
589
|
x,
|
|
590
590
|
h
|
|
591
|
-
],
|
|
591
|
+
], q = () => ["none", S, x, h], Z = () => ["none", S, x, h], fe = () => [S, x, h], pe = () => [ie, "full", ...j()];
|
|
592
592
|
return {
|
|
593
593
|
cacheSize: 500,
|
|
594
594
|
theme: {
|
|
@@ -596,11 +596,11 @@ const D = (e) => {
|
|
|
596
596
|
aspect: ["video"],
|
|
597
597
|
blur: [K],
|
|
598
598
|
breakpoint: [K],
|
|
599
|
-
color: [
|
|
599
|
+
color: [Xt],
|
|
600
600
|
container: [K],
|
|
601
601
|
"drop-shadow": [K],
|
|
602
602
|
ease: ["in", "out", "in-out"],
|
|
603
|
-
font: [
|
|
603
|
+
font: [er],
|
|
604
604
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
605
605
|
"inset-shadow": [K],
|
|
606
606
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -740,21 +740,21 @@ const D = (e) => {
|
|
|
740
740
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
741
741
|
*/
|
|
742
742
|
overscroll: [{
|
|
743
|
-
overscroll:
|
|
743
|
+
overscroll: Y()
|
|
744
744
|
}],
|
|
745
745
|
/**
|
|
746
746
|
* Overscroll Behavior X
|
|
747
747
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
748
748
|
*/
|
|
749
749
|
"overscroll-x": [{
|
|
750
|
-
"overscroll-x":
|
|
750
|
+
"overscroll-x": Y()
|
|
751
751
|
}],
|
|
752
752
|
/**
|
|
753
753
|
* Overscroll Behavior Y
|
|
754
754
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
755
755
|
*/
|
|
756
756
|
"overscroll-y": [{
|
|
757
|
-
"overscroll-y":
|
|
757
|
+
"overscroll-y": Y()
|
|
758
758
|
}],
|
|
759
759
|
/**
|
|
760
760
|
* Position
|
|
@@ -907,14 +907,14 @@ const D = (e) => {
|
|
|
907
907
|
* @see https://tailwindcss.com/docs/grid-column
|
|
908
908
|
*/
|
|
909
909
|
"col-start": [{
|
|
910
|
-
"col-start":
|
|
910
|
+
"col-start": re()
|
|
911
911
|
}],
|
|
912
912
|
/**
|
|
913
913
|
* Grid Column End
|
|
914
914
|
* @see https://tailwindcss.com/docs/grid-column
|
|
915
915
|
*/
|
|
916
916
|
"col-end": [{
|
|
917
|
-
"col-end":
|
|
917
|
+
"col-end": re()
|
|
918
918
|
}],
|
|
919
919
|
/**
|
|
920
920
|
* Grid Template Rows
|
|
@@ -935,14 +935,14 @@ const D = (e) => {
|
|
|
935
935
|
* @see https://tailwindcss.com/docs/grid-row
|
|
936
936
|
*/
|
|
937
937
|
"row-start": [{
|
|
938
|
-
"row-start":
|
|
938
|
+
"row-start": re()
|
|
939
939
|
}],
|
|
940
940
|
/**
|
|
941
941
|
* Grid Row End
|
|
942
942
|
* @see https://tailwindcss.com/docs/grid-row
|
|
943
943
|
*/
|
|
944
944
|
"row-end": [{
|
|
945
|
-
"row-end":
|
|
945
|
+
"row-end": re()
|
|
946
946
|
}],
|
|
947
947
|
/**
|
|
948
948
|
* Grid Auto Flow
|
|
@@ -1212,14 +1212,14 @@ const D = (e) => {
|
|
|
1212
1212
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
1213
1213
|
*/
|
|
1214
1214
|
size: [{
|
|
1215
|
-
size:
|
|
1215
|
+
size: U()
|
|
1216
1216
|
}],
|
|
1217
1217
|
/**
|
|
1218
1218
|
* Width
|
|
1219
1219
|
* @see https://tailwindcss.com/docs/width
|
|
1220
1220
|
*/
|
|
1221
1221
|
w: [{
|
|
1222
|
-
w: [i, "screen", ...
|
|
1222
|
+
w: [i, "screen", ...U()]
|
|
1223
1223
|
}],
|
|
1224
1224
|
/**
|
|
1225
1225
|
* Min-Width
|
|
@@ -1231,7 +1231,7 @@ const D = (e) => {
|
|
|
1231
1231
|
"screen",
|
|
1232
1232
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1233
1233
|
"none",
|
|
1234
|
-
...
|
|
1234
|
+
...U()
|
|
1235
1235
|
]
|
|
1236
1236
|
}],
|
|
1237
1237
|
/**
|
|
@@ -1249,7 +1249,7 @@ const D = (e) => {
|
|
|
1249
1249
|
{
|
|
1250
1250
|
screen: [l]
|
|
1251
1251
|
},
|
|
1252
|
-
...
|
|
1252
|
+
...U()
|
|
1253
1253
|
]
|
|
1254
1254
|
}],
|
|
1255
1255
|
/**
|
|
@@ -1257,21 +1257,21 @@ const D = (e) => {
|
|
|
1257
1257
|
* @see https://tailwindcss.com/docs/height
|
|
1258
1258
|
*/
|
|
1259
1259
|
h: [{
|
|
1260
|
-
h: ["screen", "lh", ...
|
|
1260
|
+
h: ["screen", "lh", ...U()]
|
|
1261
1261
|
}],
|
|
1262
1262
|
/**
|
|
1263
1263
|
* Min-Height
|
|
1264
1264
|
* @see https://tailwindcss.com/docs/min-height
|
|
1265
1265
|
*/
|
|
1266
1266
|
"min-h": [{
|
|
1267
|
-
"min-h": ["screen", "lh", "none", ...
|
|
1267
|
+
"min-h": ["screen", "lh", "none", ...U()]
|
|
1268
1268
|
}],
|
|
1269
1269
|
/**
|
|
1270
1270
|
* Max-Height
|
|
1271
1271
|
* @see https://tailwindcss.com/docs/max-height
|
|
1272
1272
|
*/
|
|
1273
1273
|
"max-h": [{
|
|
1274
|
-
"max-h": ["screen", "lh", ...
|
|
1274
|
+
"max-h": ["screen", "lh", ...U()]
|
|
1275
1275
|
}],
|
|
1276
1276
|
// ------------------
|
|
1277
1277
|
// --- Typography ---
|
|
@@ -1281,7 +1281,7 @@ const D = (e) => {
|
|
|
1281
1281
|
* @see https://tailwindcss.com/docs/font-size
|
|
1282
1282
|
*/
|
|
1283
1283
|
"font-size": [{
|
|
1284
|
-
text: ["base",
|
|
1284
|
+
text: ["base", r, he, se]
|
|
1285
1285
|
}],
|
|
1286
1286
|
/**
|
|
1287
1287
|
* Font Smoothing
|
|
@@ -1312,7 +1312,7 @@ const D = (e) => {
|
|
|
1312
1312
|
* @see https://tailwindcss.com/docs/font-family
|
|
1313
1313
|
*/
|
|
1314
1314
|
"font-family": [{
|
|
1315
|
-
font: [
|
|
1315
|
+
font: [or, h, t]
|
|
1316
1316
|
}],
|
|
1317
1317
|
/**
|
|
1318
1318
|
* Font Variant Numeric
|
|
@@ -1567,7 +1567,7 @@ const D = (e) => {
|
|
|
1567
1567
|
}, Q, x, h],
|
|
1568
1568
|
radial: ["", x, h],
|
|
1569
1569
|
conic: [Q, x, h]
|
|
1570
|
-
},
|
|
1570
|
+
}, nr, rr]
|
|
1571
1571
|
}],
|
|
1572
1572
|
/**
|
|
1573
1573
|
* Background Color
|
|
@@ -2535,28 +2535,28 @@ const D = (e) => {
|
|
|
2535
2535
|
* @see https://tailwindcss.com/docs/rotate
|
|
2536
2536
|
*/
|
|
2537
2537
|
rotate: [{
|
|
2538
|
-
rotate:
|
|
2538
|
+
rotate: q()
|
|
2539
2539
|
}],
|
|
2540
2540
|
/**
|
|
2541
2541
|
* Rotate X
|
|
2542
2542
|
* @see https://tailwindcss.com/docs/rotate
|
|
2543
2543
|
*/
|
|
2544
2544
|
"rotate-x": [{
|
|
2545
|
-
"rotate-x":
|
|
2545
|
+
"rotate-x": q()
|
|
2546
2546
|
}],
|
|
2547
2547
|
/**
|
|
2548
2548
|
* Rotate Y
|
|
2549
2549
|
* @see https://tailwindcss.com/docs/rotate
|
|
2550
2550
|
*/
|
|
2551
2551
|
"rotate-y": [{
|
|
2552
|
-
"rotate-y":
|
|
2552
|
+
"rotate-y": q()
|
|
2553
2553
|
}],
|
|
2554
2554
|
/**
|
|
2555
2555
|
* Rotate Z
|
|
2556
2556
|
* @see https://tailwindcss.com/docs/rotate
|
|
2557
2557
|
*/
|
|
2558
2558
|
"rotate-z": [{
|
|
2559
|
-
"rotate-z":
|
|
2559
|
+
"rotate-z": q()
|
|
2560
2560
|
}],
|
|
2561
2561
|
/**
|
|
2562
2562
|
* Scale
|
|
@@ -3016,22 +3016,22 @@ const D = (e) => {
|
|
|
3016
3016
|
},
|
|
3017
3017
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3018
3018
|
};
|
|
3019
|
-
},
|
|
3019
|
+
}, cr = /* @__PURE__ */ Gt(lr);
|
|
3020
3020
|
function p(...e) {
|
|
3021
|
-
return
|
|
3021
|
+
return cr(qe(e));
|
|
3022
3022
|
}
|
|
3023
|
-
const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e =
|
|
3023
|
+
const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = qe, y = (e, t) => (r) => {
|
|
3024
3024
|
var o;
|
|
3025
|
-
if (
|
|
3026
|
-
const { variants: s, defaultVariants: a } =
|
|
3027
|
-
const f =
|
|
3025
|
+
if (t?.variants == null) return $e(e, r?.class, r?.className);
|
|
3026
|
+
const { variants: s, defaultVariants: a } = t, l = Object.keys(s).map((d) => {
|
|
3027
|
+
const f = r?.[d], g = a?.[d];
|
|
3028
3028
|
if (f === null) return null;
|
|
3029
3029
|
const b = Le(f) || Le(g);
|
|
3030
3030
|
return s[d][b];
|
|
3031
|
-
}), i =
|
|
3031
|
+
}), i = r && Object.entries(r).reduce((d, f) => {
|
|
3032
3032
|
let [g, b] = f;
|
|
3033
3033
|
return b === void 0 || (d[g] = b), d;
|
|
3034
|
-
}, {}), c =
|
|
3034
|
+
}, {}), c = t == null || (o = t.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((d, f) => {
|
|
3035
3035
|
let { class: g, className: b, ...m } = f;
|
|
3036
3036
|
return Object.entries(m).every((v) => {
|
|
3037
3037
|
let [w, C] = v;
|
|
@@ -3048,9 +3048,9 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3048
3048
|
b
|
|
3049
3049
|
] : d;
|
|
3050
3050
|
}, []);
|
|
3051
|
-
return $e(e, l, c,
|
|
3052
|
-
},
|
|
3053
|
-
"relative flex items-center gap-
|
|
3051
|
+
return $e(e, l, c, r?.class, r?.className);
|
|
3052
|
+
}, dr = y(
|
|
3053
|
+
"relative flex items-center gap-2 rounded-md p-2 text-sm transition-all duration-200",
|
|
3054
3054
|
{
|
|
3055
3055
|
variants: {
|
|
3056
3056
|
variant: {
|
|
@@ -3076,47 +3076,47 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3076
3076
|
{
|
|
3077
3077
|
variant: "default",
|
|
3078
3078
|
color: "primary",
|
|
3079
|
-
class: "bg-coral
|
|
3079
|
+
class: "bg-coral-soft text-coral border border-coral"
|
|
3080
3080
|
},
|
|
3081
3081
|
{
|
|
3082
3082
|
variant: "default",
|
|
3083
3083
|
color: "secondary",
|
|
3084
|
-
class: "bg-sage
|
|
3084
|
+
class: "bg-sage-soft text-sage border border-sage"
|
|
3085
3085
|
},
|
|
3086
3086
|
{
|
|
3087
3087
|
variant: "default",
|
|
3088
3088
|
color: "tertiary",
|
|
3089
|
-
class: "bg-mist
|
|
3089
|
+
class: "bg-mist-soft text-mist border border-mist"
|
|
3090
3090
|
},
|
|
3091
3091
|
{
|
|
3092
3092
|
variant: "default",
|
|
3093
3093
|
color: "ghost",
|
|
3094
|
-
class: "bg-slate
|
|
3094
|
+
class: "bg-slate-soft text-slate border border-slate"
|
|
3095
3095
|
},
|
|
3096
3096
|
{
|
|
3097
3097
|
variant: "default",
|
|
3098
3098
|
color: "neutral",
|
|
3099
|
-
class: "bg-
|
|
3099
|
+
class: "bg-border/50 text-foreground border border-border"
|
|
3100
3100
|
},
|
|
3101
3101
|
{
|
|
3102
3102
|
variant: "default",
|
|
3103
3103
|
color: "success",
|
|
3104
|
-
class: "bg-success
|
|
3104
|
+
class: "bg-success-soft text-success border border-success"
|
|
3105
3105
|
},
|
|
3106
3106
|
{
|
|
3107
3107
|
variant: "default",
|
|
3108
3108
|
color: "info",
|
|
3109
|
-
class: "bg-info
|
|
3109
|
+
class: "bg-info-soft text-info border border-info"
|
|
3110
3110
|
},
|
|
3111
3111
|
{
|
|
3112
3112
|
variant: "default",
|
|
3113
3113
|
color: "warning",
|
|
3114
|
-
class: "bg-warning
|
|
3114
|
+
class: "bg-warning-soft text-warning border border-warning"
|
|
3115
3115
|
},
|
|
3116
3116
|
{
|
|
3117
3117
|
variant: "default",
|
|
3118
3118
|
color: "danger",
|
|
3119
|
-
class: "bg-danger
|
|
3119
|
+
class: "bg-danger-soft text-danger border border-danger"
|
|
3120
3120
|
},
|
|
3121
3121
|
// Outline variant styles
|
|
3122
3122
|
{
|
|
@@ -3170,7 +3170,7 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3170
3170
|
color: "neutral"
|
|
3171
3171
|
}
|
|
3172
3172
|
}
|
|
3173
|
-
),
|
|
3173
|
+
), ur = y(
|
|
3174
3174
|
"flex-shrink-0 flex justify-center items-center ",
|
|
3175
3175
|
{
|
|
3176
3176
|
variants: {
|
|
@@ -3184,13 +3184,13 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3184
3184
|
size: "md"
|
|
3185
3185
|
}
|
|
3186
3186
|
}
|
|
3187
|
-
),
|
|
3188
|
-
({ className: e, children:
|
|
3189
|
-
),
|
|
3187
|
+
), ot = E(
|
|
3188
|
+
({ className: e, children: t, ...r }, o) => /* @__PURE__ */ n.jsx("div", { ref: o, className: p(ur(), e), ...r, children: t })
|
|
3189
|
+
), gr = E(
|
|
3190
3190
|
({
|
|
3191
3191
|
variant: e = "default",
|
|
3192
|
-
color:
|
|
3193
|
-
icon:
|
|
3192
|
+
color: t = "neutral",
|
|
3193
|
+
icon: r,
|
|
3194
3194
|
className: o,
|
|
3195
3195
|
children: s,
|
|
3196
3196
|
...a
|
|
@@ -3199,17 +3199,17 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3199
3199
|
{
|
|
3200
3200
|
ref: l,
|
|
3201
3201
|
role: "alert",
|
|
3202
|
-
className: p(
|
|
3202
|
+
className: p(dr({ variant: e, color: t }), o),
|
|
3203
3203
|
...a,
|
|
3204
3204
|
children: [
|
|
3205
|
-
|
|
3205
|
+
r && /* @__PURE__ */ n.jsx(ot, { children: r }),
|
|
3206
3206
|
/* @__PURE__ */ n.jsx("div", { className: "flex-1", children: s })
|
|
3207
3207
|
]
|
|
3208
3208
|
}
|
|
3209
3209
|
)
|
|
3210
|
-
),
|
|
3211
|
-
Icon:
|
|
3212
|
-
}),
|
|
3210
|
+
), Ds = Object.assign(gr, {
|
|
3211
|
+
Icon: ot
|
|
3212
|
+
}), fr = y(
|
|
3213
3213
|
"w-full flex items-center px-4 py-3 gap-2 bg-white",
|
|
3214
3214
|
{
|
|
3215
3215
|
variants: {
|
|
@@ -3225,7 +3225,7 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3225
3225
|
variant: "primary"
|
|
3226
3226
|
}
|
|
3227
3227
|
}
|
|
3228
|
-
),
|
|
3228
|
+
), br = y(
|
|
3229
3229
|
"flex flex-col justify-center w-full min-w-0 ",
|
|
3230
3230
|
{
|
|
3231
3231
|
variants: {
|
|
@@ -3239,83 +3239,83 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3239
3239
|
placement: "start"
|
|
3240
3240
|
}
|
|
3241
3241
|
}
|
|
3242
|
-
),
|
|
3243
|
-
({ children: e, className:
|
|
3244
|
-
),
|
|
3245
|
-
({ children: e, className:
|
|
3242
|
+
), mr = E(
|
|
3243
|
+
({ children: e, className: t }, r) => /* @__PURE__ */ n.jsx("div", { ref: r, className: p("flex items-center", t), children: e })
|
|
3244
|
+
), hr = E(
|
|
3245
|
+
({ children: e, className: t }, r) => /* @__PURE__ */ n.jsx(
|
|
3246
3246
|
"div",
|
|
3247
3247
|
{
|
|
3248
|
-
ref:
|
|
3249
|
-
className: p("font-semibold text-lg truncate min-w-0",
|
|
3248
|
+
ref: r,
|
|
3249
|
+
className: p("font-semibold text-lg truncate min-w-0", t),
|
|
3250
3250
|
children: e
|
|
3251
3251
|
}
|
|
3252
3252
|
)
|
|
3253
|
-
),
|
|
3254
|
-
({ children: e, className:
|
|
3253
|
+
), xr = E(
|
|
3254
|
+
({ children: e, className: t }, r) => /* @__PURE__ */ n.jsx(
|
|
3255
3255
|
"div",
|
|
3256
3256
|
{
|
|
3257
|
-
ref:
|
|
3258
|
-
className: p("text-xs text-slate-400 truncate min-w-0",
|
|
3257
|
+
ref: r,
|
|
3258
|
+
className: p("text-xs text-slate-400 truncate min-w-0", t),
|
|
3259
3259
|
children: e
|
|
3260
3260
|
}
|
|
3261
3261
|
)
|
|
3262
|
-
),
|
|
3263
|
-
({ children: e, className:
|
|
3262
|
+
), pr = E(
|
|
3263
|
+
({ children: e, className: t }, r) => /* @__PURE__ */ n.jsx(
|
|
3264
3264
|
"div",
|
|
3265
3265
|
{
|
|
3266
|
-
ref:
|
|
3267
|
-
className: p("flex items-center flex-grow justify-end gap-2",
|
|
3266
|
+
ref: r,
|
|
3267
|
+
className: p("flex items-center flex-grow justify-end gap-2", t),
|
|
3268
3268
|
children: e
|
|
3269
3269
|
}
|
|
3270
3270
|
)
|
|
3271
|
-
),
|
|
3272
|
-
({ children: e, className:
|
|
3271
|
+
), vr = E(
|
|
3272
|
+
({ children: e, className: t, placement: r }, o) => /* @__PURE__ */ n.jsx(
|
|
3273
3273
|
"div",
|
|
3274
3274
|
{
|
|
3275
3275
|
ref: o,
|
|
3276
|
-
className: p(
|
|
3276
|
+
className: p(br({ placement: r }), t),
|
|
3277
3277
|
children: e
|
|
3278
3278
|
}
|
|
3279
3279
|
)
|
|
3280
|
-
),
|
|
3280
|
+
), wr = ({
|
|
3281
3281
|
children: e,
|
|
3282
|
-
className:
|
|
3283
|
-
variant:
|
|
3282
|
+
className: t,
|
|
3283
|
+
variant: r = "primary"
|
|
3284
3284
|
}) => /* @__PURE__ */ n.jsx(
|
|
3285
3285
|
"header",
|
|
3286
3286
|
{
|
|
3287
|
-
className: p(
|
|
3287
|
+
className: p(fr({ variant: r }), t),
|
|
3288
3288
|
role: "banner",
|
|
3289
3289
|
children: e
|
|
3290
3290
|
}
|
|
3291
|
-
),
|
|
3292
|
-
Leading:
|
|
3293
|
-
Headline:
|
|
3294
|
-
Subtitle:
|
|
3295
|
-
Trailing:
|
|
3296
|
-
Center:
|
|
3297
|
-
}),
|
|
3291
|
+
), _s = Object.assign(wr, {
|
|
3292
|
+
Leading: mr,
|
|
3293
|
+
Headline: hr,
|
|
3294
|
+
Subtitle: xr,
|
|
3295
|
+
Trailing: pr,
|
|
3296
|
+
Center: vr
|
|
3297
|
+
}), yr = y(
|
|
3298
3298
|
"inline-flex items-center justify-center font-medium text-white overflow-hidden transition-all duration-200 select-none relative",
|
|
3299
3299
|
{
|
|
3300
3300
|
variants: {
|
|
3301
3301
|
variant: {
|
|
3302
3302
|
// Core variants using Versaur color system
|
|
3303
|
-
primary: "bg-coral
|
|
3304
|
-
secondary: "bg-sage
|
|
3305
|
-
tertiary: "bg-mist
|
|
3306
|
-
ghost: "bg-slate
|
|
3307
|
-
neutral: "bg-neutral
|
|
3303
|
+
primary: "bg-coral-soft text-coral",
|
|
3304
|
+
secondary: "bg-sage-soft text-sage",
|
|
3305
|
+
tertiary: "bg-mist-soft text-mist",
|
|
3306
|
+
ghost: "bg-slate-soft text-slate",
|
|
3307
|
+
neutral: "bg-neutral-soft text-foreground border border-border",
|
|
3308
3308
|
// Semantic variants
|
|
3309
|
-
success: "bg-success
|
|
3310
|
-
info: "bg-info
|
|
3311
|
-
warning: "bg-warning
|
|
3312
|
-
danger: "bg-danger
|
|
3309
|
+
success: "bg-success-soft text-success",
|
|
3310
|
+
info: "bg-info-soft text-info",
|
|
3311
|
+
warning: "bg-warning-soft text-warning",
|
|
3312
|
+
danger: "bg-danger-soft text-danger"
|
|
3313
3313
|
},
|
|
3314
3314
|
size: {
|
|
3315
3315
|
xs: "h-6 w-6 text-xs",
|
|
3316
|
-
sm: "h-8 w-8 text-
|
|
3317
|
-
md: "h-10 w-10 text-
|
|
3318
|
-
lg: "h-12 w-12 text-
|
|
3316
|
+
sm: "h-8 w-8 text-xs",
|
|
3317
|
+
md: "h-10 w-10 text-sm",
|
|
3318
|
+
lg: "h-12 w-12 text-base",
|
|
3319
3319
|
xl: "h-16 w-16 text-xl"
|
|
3320
3320
|
},
|
|
3321
3321
|
shape: {
|
|
@@ -3330,13 +3330,13 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3330
3330
|
shape: "circle"
|
|
3331
3331
|
}
|
|
3332
3332
|
}
|
|
3333
|
-
),
|
|
3333
|
+
), kr = y(
|
|
3334
3334
|
"absolute inset-0 h-full w-full object-cover"
|
|
3335
|
-
),
|
|
3335
|
+
), jr = E(
|
|
3336
3336
|
({
|
|
3337
3337
|
variant: e = "primary",
|
|
3338
|
-
size:
|
|
3339
|
-
shape:
|
|
3338
|
+
size: t = "md",
|
|
3339
|
+
shape: r = "circle",
|
|
3340
3340
|
className: o,
|
|
3341
3341
|
children: s,
|
|
3342
3342
|
...a
|
|
@@ -3344,15 +3344,15 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3344
3344
|
"div",
|
|
3345
3345
|
{
|
|
3346
3346
|
ref: l,
|
|
3347
|
-
className: p(
|
|
3347
|
+
className: p(yr({ variant: e, size: t, shape: r }), o),
|
|
3348
3348
|
...a,
|
|
3349
3349
|
children: s
|
|
3350
3350
|
}
|
|
3351
3351
|
)
|
|
3352
|
-
),
|
|
3353
|
-
({ src: e, alt:
|
|
3354
|
-
const [l, i] =
|
|
3355
|
-
|
|
3352
|
+
), Nr = E(
|
|
3353
|
+
({ src: e, alt: t, className: r, onError: o, ...s }, a) => {
|
|
3354
|
+
const [l, i] = H(!1);
|
|
3355
|
+
J(() => {
|
|
3356
3356
|
i(!1);
|
|
3357
3357
|
}, [e]);
|
|
3358
3358
|
const c = ke(
|
|
@@ -3366,19 +3366,19 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3366
3366
|
{
|
|
3367
3367
|
ref: a,
|
|
3368
3368
|
src: e,
|
|
3369
|
-
alt:
|
|
3370
|
-
className: p(
|
|
3369
|
+
alt: t,
|
|
3370
|
+
className: p(kr(), r),
|
|
3371
3371
|
onError: c,
|
|
3372
3372
|
...s
|
|
3373
3373
|
}
|
|
3374
3374
|
);
|
|
3375
3375
|
}
|
|
3376
|
-
),
|
|
3376
|
+
), Fs = Object.assign(jr, {
|
|
3377
3377
|
/**
|
|
3378
3378
|
* AvatarImage sub-component for displaying images with fallback behavior
|
|
3379
3379
|
*/
|
|
3380
|
-
Image:
|
|
3381
|
-
}),
|
|
3380
|
+
Image: Nr
|
|
3381
|
+
}), Cr = y(
|
|
3382
3382
|
"inline-flex items-center justify-center font-medium transition-all duration-200 select-none gap-1 min-h-[1.25rem]",
|
|
3383
3383
|
{
|
|
3384
3384
|
variants: {
|
|
@@ -3405,7 +3405,7 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3405
3405
|
},
|
|
3406
3406
|
size: {
|
|
3407
3407
|
sm: "text-xs px-1 py-0.25 h-3",
|
|
3408
|
-
md: "text-
|
|
3408
|
+
md: "text-xs px-1.5 py-0.5 h-4",
|
|
3409
3409
|
lg: "text-sm px-2 py-1 h-6"
|
|
3410
3410
|
},
|
|
3411
3411
|
iconOnly: {
|
|
@@ -3418,22 +3418,22 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3418
3418
|
{
|
|
3419
3419
|
variant: "default",
|
|
3420
3420
|
color: "primary",
|
|
3421
|
-
className: "bg-coral
|
|
3421
|
+
className: "bg-coral-soft text-coral"
|
|
3422
3422
|
},
|
|
3423
3423
|
{
|
|
3424
3424
|
variant: "default",
|
|
3425
3425
|
color: "secondary",
|
|
3426
|
-
className: "bg-sage
|
|
3426
|
+
className: "bg-sage-soft text-sage"
|
|
3427
3427
|
},
|
|
3428
3428
|
{
|
|
3429
3429
|
variant: "default",
|
|
3430
3430
|
color: "tertiary",
|
|
3431
|
-
className: "bg-mist
|
|
3431
|
+
className: "bg-mist-soft text-mist"
|
|
3432
3432
|
},
|
|
3433
3433
|
{
|
|
3434
3434
|
variant: "default",
|
|
3435
3435
|
color: "ghost",
|
|
3436
|
-
className: "bg-slate
|
|
3436
|
+
className: "bg-slate-soft text-slate"
|
|
3437
3437
|
},
|
|
3438
3438
|
{
|
|
3439
3439
|
variant: "default",
|
|
@@ -3443,22 +3443,22 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3443
3443
|
{
|
|
3444
3444
|
variant: "default",
|
|
3445
3445
|
color: "success",
|
|
3446
|
-
className: "bg-success
|
|
3446
|
+
className: "bg-success-soft text-success"
|
|
3447
3447
|
},
|
|
3448
3448
|
{
|
|
3449
3449
|
variant: "default",
|
|
3450
3450
|
color: "info",
|
|
3451
|
-
className: "bg-info
|
|
3451
|
+
className: "bg-info-soft text-info"
|
|
3452
3452
|
},
|
|
3453
3453
|
{
|
|
3454
3454
|
variant: "default",
|
|
3455
3455
|
color: "warning",
|
|
3456
|
-
className: "bg-warning
|
|
3456
|
+
className: "bg-warning-soft text-warning"
|
|
3457
3457
|
},
|
|
3458
3458
|
{
|
|
3459
3459
|
variant: "default",
|
|
3460
3460
|
color: "danger",
|
|
3461
|
-
className: "bg-danger
|
|
3461
|
+
className: "bg-danger-soft text-danger"
|
|
3462
3462
|
},
|
|
3463
3463
|
// Outline variant color combinations
|
|
3464
3464
|
{
|
|
@@ -3531,11 +3531,11 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3531
3531
|
iconOnly: !1
|
|
3532
3532
|
}
|
|
3533
3533
|
}
|
|
3534
|
-
),
|
|
3534
|
+
), zr = E(
|
|
3535
3535
|
({
|
|
3536
3536
|
variant: e = "default",
|
|
3537
|
-
shape:
|
|
3538
|
-
color:
|
|
3537
|
+
shape: t = "square",
|
|
3538
|
+
color: r = "primary",
|
|
3539
3539
|
size: o = "md",
|
|
3540
3540
|
iconLeft: s,
|
|
3541
3541
|
iconRight: a,
|
|
@@ -3549,10 +3549,10 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3549
3549
|
{
|
|
3550
3550
|
ref: d,
|
|
3551
3551
|
className: p(
|
|
3552
|
-
|
|
3552
|
+
Cr({
|
|
3553
3553
|
variant: e,
|
|
3554
|
-
color:
|
|
3555
|
-
shape:
|
|
3554
|
+
color: r,
|
|
3555
|
+
shape: t,
|
|
3556
3556
|
size: o,
|
|
3557
3557
|
iconOnly: b
|
|
3558
3558
|
}),
|
|
@@ -3574,9 +3574,9 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3574
3574
|
);
|
|
3575
3575
|
}
|
|
3576
3576
|
);
|
|
3577
|
-
|
|
3578
|
-
const
|
|
3579
|
-
"sticky bottom-0 left-0 w-full flex justify-between items-center bg-white border-t border-
|
|
3577
|
+
zr.displayName = "Badge";
|
|
3578
|
+
const Ir = y(
|
|
3579
|
+
"sticky bottom-0 left-0 w-full flex justify-between items-center bg-white border-t border-border shadow-xs z-40 safe-bottom px-8 py-1",
|
|
3580
3580
|
{
|
|
3581
3581
|
variants: {
|
|
3582
3582
|
variant: {
|
|
@@ -3597,8 +3597,8 @@ const zt = y(
|
|
|
3597
3597
|
size: "md"
|
|
3598
3598
|
}
|
|
3599
3599
|
}
|
|
3600
|
-
),
|
|
3601
|
-
"flex flex-col items-center justify-center gap-1 px-2 py-1
|
|
3600
|
+
), Sr = y(
|
|
3601
|
+
"flex flex-col items-center justify-center gap-1 px-2 py-1",
|
|
3602
3602
|
{
|
|
3603
3603
|
variants: {
|
|
3604
3604
|
active: {
|
|
@@ -3610,24 +3610,24 @@ const zt = y(
|
|
|
3610
3610
|
active: !1
|
|
3611
3611
|
}
|
|
3612
3612
|
}
|
|
3613
|
-
),
|
|
3614
|
-
({ icon: e, label:
|
|
3613
|
+
), Rr = E(
|
|
3614
|
+
({ icon: e, label: t, active: r = !1, className: o, ...s }, a) => /* @__PURE__ */ n.jsxs(
|
|
3615
3615
|
"div",
|
|
3616
3616
|
{
|
|
3617
3617
|
ref: a,
|
|
3618
|
-
"aria-current":
|
|
3619
|
-
className:
|
|
3618
|
+
"aria-current": r ? "page" : void 0,
|
|
3619
|
+
className: Sr({ active: r, className: o }),
|
|
3620
3620
|
...s,
|
|
3621
3621
|
children: [
|
|
3622
3622
|
e,
|
|
3623
|
-
|
|
3623
|
+
t && /* @__PURE__ */ n.jsx("span", { className: "text-xs mt-0.5", children: t })
|
|
3624
3624
|
]
|
|
3625
3625
|
}
|
|
3626
3626
|
)
|
|
3627
|
-
),
|
|
3627
|
+
), Vr = ({
|
|
3628
3628
|
children: e,
|
|
3629
|
-
variant:
|
|
3630
|
-
size:
|
|
3629
|
+
variant: t = "primary",
|
|
3630
|
+
size: r = "md",
|
|
3631
3631
|
className: o,
|
|
3632
3632
|
...s
|
|
3633
3633
|
}) => /* @__PURE__ */ n.jsx(
|
|
@@ -3635,13 +3635,13 @@ const zt = y(
|
|
|
3635
3635
|
{
|
|
3636
3636
|
role: "navigation",
|
|
3637
3637
|
"aria-label": "Bottom navigation",
|
|
3638
|
-
className:
|
|
3638
|
+
className: Ir({ variant: t, size: r, className: o }),
|
|
3639
3639
|
...s,
|
|
3640
3640
|
children: e
|
|
3641
3641
|
}
|
|
3642
|
-
),
|
|
3643
|
-
Item:
|
|
3644
|
-
}),
|
|
3642
|
+
), Ls = Object.assign(Vr, {
|
|
3643
|
+
Item: Rr
|
|
3644
|
+
}), Er = y(
|
|
3645
3645
|
"flex items-center gap-2 text-sm text-slate-700 dark:text-slate-200",
|
|
3646
3646
|
{
|
|
3647
3647
|
variants: {
|
|
@@ -3654,7 +3654,7 @@ const zt = y(
|
|
|
3654
3654
|
separator: "default"
|
|
3655
3655
|
}
|
|
3656
3656
|
}
|
|
3657
|
-
),
|
|
3657
|
+
), Tr = y(
|
|
3658
3658
|
"inline-flex items-center gap-1 transition-colors",
|
|
3659
3659
|
{
|
|
3660
3660
|
variants: {
|
|
@@ -3667,70 +3667,70 @@ const zt = y(
|
|
|
3667
3667
|
isCurrent: !1
|
|
3668
3668
|
}
|
|
3669
3669
|
}
|
|
3670
|
-
),
|
|
3670
|
+
), Ar = "mx-1 text-slate-400 dark:text-slate-500 select-none", Mr = E(function({ children: t, icon: r, isCurrent: o, className: s, ...a }, l) {
|
|
3671
3671
|
return /* @__PURE__ */ n.jsx("li", { className: "flex items-center", children: /* @__PURE__ */ n.jsxs(
|
|
3672
3672
|
"a",
|
|
3673
3673
|
{
|
|
3674
3674
|
ref: l,
|
|
3675
3675
|
"aria-current": o ? "page" : void 0,
|
|
3676
3676
|
tabIndex: o ? -1 : 0,
|
|
3677
|
-
className: p(
|
|
3677
|
+
className: p(Tr({ isCurrent: o }) + s),
|
|
3678
3678
|
...a,
|
|
3679
3679
|
children: [
|
|
3680
|
-
|
|
3681
|
-
|
|
3680
|
+
r && /* @__PURE__ */ n.jsx("span", { className: "mr-1 inline-flex", children: r }),
|
|
3681
|
+
t
|
|
3682
3682
|
]
|
|
3683
3683
|
}
|
|
3684
3684
|
) });
|
|
3685
3685
|
});
|
|
3686
|
-
function
|
|
3687
|
-
return /* @__PURE__ */ n.jsx("span", { className:
|
|
3686
|
+
function Pr() {
|
|
3687
|
+
return /* @__PURE__ */ n.jsx("span", { className: Ar, "aria-hidden": "true", children: "/" });
|
|
3688
3688
|
}
|
|
3689
|
-
const
|
|
3690
|
-
function({ children:
|
|
3691
|
-
return /* @__PURE__ */ n.jsx("nav", { "aria-label":
|
|
3689
|
+
const Or = E(
|
|
3690
|
+
function({ children: t, "aria-label": r = "Breadcrumb", ...o }, s) {
|
|
3691
|
+
return /* @__PURE__ */ n.jsx("nav", { "aria-label": r, ...o, children: /* @__PURE__ */ n.jsx("ol", { ref: s, className: Er(), children: t }) });
|
|
3692
3692
|
}
|
|
3693
|
-
),
|
|
3694
|
-
Item:
|
|
3695
|
-
Separator:
|
|
3696
|
-
}),
|
|
3693
|
+
), $s = Object.assign(Or, {
|
|
3694
|
+
Item: Mr,
|
|
3695
|
+
Separator: Pr
|
|
3696
|
+
}), Br = y(
|
|
3697
3697
|
"inline-flex items-center justify-center gap-2 rounded-md font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none active:scale-[0.98] select-none",
|
|
3698
3698
|
{
|
|
3699
3699
|
variants: {
|
|
3700
3700
|
variant: {
|
|
3701
3701
|
// Core variants using Versaur color system
|
|
3702
|
-
primary: "bg-coral text-white hover:bg-coral/90 focus-visible:ring-coral
|
|
3703
|
-
secondary: "bg-sage text-white hover:bg-sage/90 focus-visible:ring-sage
|
|
3704
|
-
tertiary: "bg-mist text-white hover:bg-mist/90 focus-visible:ring-mist
|
|
3705
|
-
ghost: "bg-
|
|
3706
|
-
neutral: "bg-neutral text-foreground border border-border hover:bg-neutral/80 focus-visible:ring-foreground
|
|
3702
|
+
primary: "bg-coral text-white hover:bg-coral/90 focus-visible:ring-coral-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3703
|
+
secondary: "bg-sage text-white hover:bg-sage/90 focus-visible:ring-sage-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3704
|
+
tertiary: "bg-mist text-white hover:bg-mist/90 focus-visible:ring-mist-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3705
|
+
ghost: "bg-white text-foreground hover:bg-slate-soft focus-visible:ring-slate-soft focus-visible:ring-offset-white",
|
|
3706
|
+
neutral: "bg-neutral text-foreground border border-border hover:bg-neutral/80 focus-visible:ring-foreground-soft focus-visible:ring-offset-white shadow-sm",
|
|
3707
3707
|
// Outline variants
|
|
3708
|
-
"primary-outline": "border border-coral text-coral bg-
|
|
3709
|
-
"secondary-outline": "border border-sage text-sage bg-
|
|
3710
|
-
"tertiary-outline": "border border-mist text-mist bg-
|
|
3711
|
-
"ghost-outline": "border border-slate text-slate bg-
|
|
3712
|
-
"neutral-outline": "border border-neutral text-foreground bg-
|
|
3708
|
+
"primary-outline": "border border-coral text-coral bg-white hover:bg-coral hover:text-white focus-visible:ring-coral-soft focus-visible:ring-offset-white transition-all",
|
|
3709
|
+
"secondary-outline": "border border-sage text-sage bg-white hover:bg-sage hover:text-white focus-visible:ring-sage-soft focus-visible:ring-offset-white transition-all",
|
|
3710
|
+
"tertiary-outline": "border border-mist text-mist bg-white hover:bg-mist hover:text-white focus-visible:ring-mist-soft focus-visible:ring-offset-white transition-all",
|
|
3711
|
+
"ghost-outline": "border border-slate text-slate bg-white hover:bg-slate hover:text-white focus-visible:ring-slate-soft focus-visible:ring-offset-white transition-all",
|
|
3712
|
+
"neutral-outline": "border border-neutral text-foreground bg-white hover:bg-neutral hover:text-foreground focus-visible:ring-foreground-soft focus-visible:ring-offset-white transition-all",
|
|
3713
3713
|
// Ghost variants (subtle)
|
|
3714
|
-
"primary-ghost": "text-coral bg-
|
|
3715
|
-
"secondary-ghost": "text-sage bg-
|
|
3716
|
-
"tertiary-ghost": "text-mist bg-
|
|
3717
|
-
"neutral-ghost": "text-foreground bg-
|
|
3714
|
+
"primary-ghost": "text-coral bg-white hover:bg-coral-soft focus-visible:ring-coral-soft focus-visible:ring-offset-white",
|
|
3715
|
+
"secondary-ghost": "text-sage bg-white hover:bg-sage-soft focus-visible:ring-sage-soft focus-visible:ring-offset-white",
|
|
3716
|
+
"tertiary-ghost": "text-mist bg-white hover:bg-mist-soft focus-visible:ring-mist-soft focus-visible:ring-offset-white",
|
|
3717
|
+
"neutral-ghost": "text-foreground bg-white hover:bg-neutral/70 focus-visible:ring-foreground-soft focus-visible:ring-offset-white",
|
|
3718
3718
|
// Semantic variants
|
|
3719
|
-
success: "bg-success text-white hover:bg-success/90 focus-visible:ring-success
|
|
3720
|
-
"success-outline": "border border-success text-success bg-
|
|
3721
|
-
"success-ghost": "text-success bg-
|
|
3722
|
-
info: "bg-info text-white hover:bg-info/90 focus-visible:ring-info
|
|
3723
|
-
"info-outline": "border border-info text-info bg-
|
|
3724
|
-
"info-ghost": "text-info bg-
|
|
3725
|
-
warning: "bg-warning text-white hover:bg-warning/90 focus-visible:ring-warning
|
|
3726
|
-
"warning-outline": "border border-warning text-warning bg-
|
|
3727
|
-
"warning-ghost": "text-warning bg-
|
|
3728
|
-
danger: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger
|
|
3729
|
-
"danger-outline": "border border-danger text-danger bg-
|
|
3730
|
-
"danger-ghost": "text-danger bg-
|
|
3719
|
+
success: "bg-success text-white hover:bg-success/90 focus-visible:ring-success-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3720
|
+
"success-outline": "border border-success text-success bg-white hover:bg-success hover:text-white focus-visible:ring-success-soft focus-visible:ring-offset-white transition-all",
|
|
3721
|
+
"success-ghost": "text-success bg-white hover:bg-success-soft focus-visible:ring-success-soft focus-visible:ring-offset-white",
|
|
3722
|
+
info: "bg-info text-white hover:bg-info/90 focus-visible:ring-info-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3723
|
+
"info-outline": "border border-info text-info bg-white hover:bg-info hover:text-white focus-visible:ring-info-soft focus-visible:ring-offset-white transition-all",
|
|
3724
|
+
"info-ghost": "text-info bg-white hover:bg-info-soft focus-visible:ring-info-soft focus-visible:ring-offset-white",
|
|
3725
|
+
warning: "bg-warning text-white hover:bg-warning/90 focus-visible:ring-warning-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3726
|
+
"warning-outline": "border border-warning text-warning bg-white hover:bg-warning hover:text-white focus-visible:ring-warning-soft focus-visible:ring-offset-white transition-all",
|
|
3727
|
+
"warning-ghost": "text-warning bg-white hover:bg-warning-soft focus-visible:ring-warning-soft focus-visible:ring-offset-white",
|
|
3728
|
+
danger: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3729
|
+
"danger-outline": "border border-danger text-danger bg-white hover:bg-danger hover:text-white focus-visible:ring-danger-soft focus-visible:ring-offset-white transition-all",
|
|
3730
|
+
"danger-ghost": "text-danger bg-white hover:bg-danger-soft focus-visible:ring-danger-soft focus-visible:ring-offset-white",
|
|
3731
3731
|
// Utility variants
|
|
3732
|
-
outline: "border border-border text-foreground bg-
|
|
3733
|
-
destructive: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger
|
|
3732
|
+
outline: "border border-border text-foreground bg-white hover:bg-accent-soft focus-visible:ring-accent-soft focus-visible:ring-offset-white transition-all",
|
|
3733
|
+
destructive: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md"
|
|
3734
3734
|
},
|
|
3735
3735
|
size: {
|
|
3736
3736
|
sm: "h-8 px-3 text-sm min-w-[2.25rem]",
|
|
@@ -3745,8 +3745,8 @@ const Pt = E(
|
|
|
3745
3745
|
}
|
|
3746
3746
|
), Ge = I.forwardRef(
|
|
3747
3747
|
function({
|
|
3748
|
-
className:
|
|
3749
|
-
variant:
|
|
3748
|
+
className: t,
|
|
3749
|
+
variant: r = "primary",
|
|
3750
3750
|
size: o = "md",
|
|
3751
3751
|
disabled: s = !1,
|
|
3752
3752
|
type: a = "button",
|
|
@@ -3758,7 +3758,7 @@ const Pt = E(
|
|
|
3758
3758
|
{
|
|
3759
3759
|
ref: c,
|
|
3760
3760
|
type: a,
|
|
3761
|
-
className: p(
|
|
3761
|
+
className: p(Br({ variant: r, size: o }), t),
|
|
3762
3762
|
disabled: s,
|
|
3763
3763
|
"aria-disabled": s,
|
|
3764
3764
|
inert: s ? !0 : void 0,
|
|
@@ -3768,10 +3768,10 @@ const Pt = E(
|
|
|
3768
3768
|
);
|
|
3769
3769
|
}
|
|
3770
3770
|
);
|
|
3771
|
-
function
|
|
3772
|
-
const
|
|
3773
|
-
if (
|
|
3774
|
-
switch (
|
|
3771
|
+
function Dr(e = "primary") {
|
|
3772
|
+
const t = e.split("-");
|
|
3773
|
+
if (t.length === 1)
|
|
3774
|
+
switch (t[0]) {
|
|
3775
3775
|
case "ghost":
|
|
3776
3776
|
case "neutral":
|
|
3777
3777
|
case "outline":
|
|
@@ -3779,7 +3779,7 @@ function Bt(e = "primary") {
|
|
|
3779
3779
|
default:
|
|
3780
3780
|
return "neutral";
|
|
3781
3781
|
}
|
|
3782
|
-
switch (
|
|
3782
|
+
switch (t[0]) {
|
|
3783
3783
|
case "primary":
|
|
3784
3784
|
return "primary";
|
|
3785
3785
|
case "secondary":
|
|
@@ -3802,44 +3802,44 @@ function Bt(e = "primary") {
|
|
|
3802
3802
|
return "neutral";
|
|
3803
3803
|
}
|
|
3804
3804
|
}
|
|
3805
|
-
const
|
|
3805
|
+
const _r = y(
|
|
3806
3806
|
"inline-flex items-center justify-center font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none active:scale-[0.98] select-none",
|
|
3807
3807
|
{
|
|
3808
3808
|
variants: {
|
|
3809
3809
|
variant: {
|
|
3810
3810
|
// Core variants using Versaur color system
|
|
3811
|
-
primary: "bg-coral text-white hover:bg-coral/90 focus-visible:ring-coral
|
|
3812
|
-
secondary: "bg-sage text-white hover:bg-sage/90 focus-visible:ring-sage
|
|
3813
|
-
tertiary: "bg-mist text-white hover:bg-mist/90 focus-visible:ring-mist
|
|
3814
|
-
ghost: "bg-
|
|
3815
|
-
neutral: "bg-neutral text-foreground border border-border hover:bg-neutral/80 focus-visible:ring-foreground
|
|
3811
|
+
primary: "bg-coral text-white hover:bg-coral/90 focus-visible:ring-coral-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3812
|
+
secondary: "bg-sage text-white hover:bg-sage/90 focus-visible:ring-sage-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3813
|
+
tertiary: "bg-mist text-white hover:bg-mist/90 focus-visible:ring-mist-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3814
|
+
ghost: "bg-white text-foreground hover:bg-slate-soft focus-visible:ring-slate-soft focus-visible:ring-offset-white",
|
|
3815
|
+
neutral: "bg-neutral text-foreground border border-border hover:bg-neutral/80 focus-visible:ring-foreground-soft focus-visible:ring-offset-white shadow-sm",
|
|
3816
3816
|
// Outline variants
|
|
3817
|
-
"primary-outline": "border border-coral text-coral bg-
|
|
3818
|
-
"secondary-outline": "border border-sage text-sage bg-
|
|
3819
|
-
"tertiary-outline": "border border-mist text-mist bg-
|
|
3820
|
-
"ghost-outline": "border border-slate text-slate bg-
|
|
3821
|
-
"neutral-outline": "border border-neutral text-foreground bg-
|
|
3817
|
+
"primary-outline": "border border-coral text-coral bg-white hover:bg-coral hover:text-white focus-visible:ring-coral-soft focus-visible:ring-offset-white transition-all",
|
|
3818
|
+
"secondary-outline": "border border-sage text-sage bg-white hover:bg-sage hover:text-white focus-visible:ring-sage-soft focus-visible:ring-offset-white transition-all",
|
|
3819
|
+
"tertiary-outline": "border border-mist text-mist bg-white hover:bg-mist hover:text-white focus-visible:ring-mist-soft focus-visible:ring-offset-white transition-all",
|
|
3820
|
+
"ghost-outline": "border border-slate text-slate bg-white hover:bg-slate hover:text-white focus-visible:ring-slate-soft focus-visible:ring-offset-white transition-all",
|
|
3821
|
+
"neutral-outline": "border border-neutral text-foreground bg-white hover:bg-neutral hover:text-foreground focus-visible:ring-foreground-soft focus-visible:ring-offset-white transition-all",
|
|
3822
3822
|
// Ghost variants (subtle)
|
|
3823
|
-
"primary-ghost": "text-coral bg-
|
|
3824
|
-
"secondary-ghost": "text-sage bg-
|
|
3825
|
-
"tertiary-ghost": "text-mist bg-
|
|
3826
|
-
"neutral-ghost": "text-foreground bg-
|
|
3823
|
+
"primary-ghost": "text-coral bg-white hover:bg-coral-soft focus-visible:ring-coral-soft focus-visible:ring-offset-white",
|
|
3824
|
+
"secondary-ghost": "text-sage bg-white hover:bg-sage-soft focus-visible:ring-sage-soft focus-visible:ring-offset-white",
|
|
3825
|
+
"tertiary-ghost": "text-mist bg-white hover:bg-mist-soft focus-visible:ring-mist-soft focus-visible:ring-offset-white",
|
|
3826
|
+
"neutral-ghost": "text-foreground bg-white hover:bg-neutral/70 focus-visible:ring-foreground-soft focus-visible:ring-offset-white",
|
|
3827
3827
|
// Semantic variants
|
|
3828
|
-
success: "bg-success text-white hover:bg-success/90 focus-visible:ring-success
|
|
3829
|
-
"success-outline": "border border-success text-success bg-
|
|
3830
|
-
"success-ghost": "text-success bg-
|
|
3831
|
-
info: "bg-info text-white hover:bg-info/90 focus-visible:ring-info
|
|
3832
|
-
"info-outline": "border border-info text-info bg-
|
|
3833
|
-
"info-ghost": "text-info bg-
|
|
3834
|
-
warning: "bg-warning text-white hover:bg-warning/90 focus-visible:ring-warning
|
|
3835
|
-
"warning-outline": "border border-warning text-warning bg-
|
|
3836
|
-
"warning-ghost": "text-warning bg-
|
|
3837
|
-
danger: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger
|
|
3838
|
-
"danger-outline": "border border-danger text-danger bg-
|
|
3839
|
-
"danger-ghost": "text-danger bg-
|
|
3828
|
+
success: "bg-success text-white hover:bg-success/90 focus-visible:ring-success-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3829
|
+
"success-outline": "border border-success text-success bg-white hover:bg-success hover:text-white focus-visible:ring-success-soft focus-visible:ring-offset-white transition-all",
|
|
3830
|
+
"success-ghost": "text-success bg-white hover:bg-success-soft focus-visible:ring-success-soft focus-visible:ring-offset-white",
|
|
3831
|
+
info: "bg-info text-white hover:bg-info/90 focus-visible:ring-info-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3832
|
+
"info-outline": "border border-info text-info bg-white hover:bg-info hover:text-white focus-visible:ring-info-soft focus-visible:ring-offset-white transition-all",
|
|
3833
|
+
"info-ghost": "text-info bg-white hover:bg-info-soft focus-visible:ring-info-soft focus-visible:ring-offset-white",
|
|
3834
|
+
warning: "bg-warning text-white hover:bg-warning/90 focus-visible:ring-warning-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3835
|
+
"warning-outline": "border border-warning text-warning bg-white hover:bg-warning hover:text-white focus-visible:ring-warning-soft focus-visible:ring-offset-white transition-all",
|
|
3836
|
+
"warning-ghost": "text-warning bg-white hover:bg-warning-soft focus-visible:ring-warning-soft focus-visible:ring-offset-white",
|
|
3837
|
+
danger: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
3838
|
+
"danger-outline": "border border-danger text-danger bg-white hover:bg-danger hover:text-white focus-visible:ring-danger-soft focus-visible:ring-offset-white transition-all",
|
|
3839
|
+
"danger-ghost": "text-danger bg-white hover:bg-danger-soft focus-visible:ring-danger-soft focus-visible:ring-offset-white",
|
|
3840
3840
|
// Utility variants
|
|
3841
|
-
outline: "border border-border text-foreground bg-
|
|
3842
|
-
destructive: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger
|
|
3841
|
+
outline: "border border-border text-foreground bg-white hover:bg-accent-soft focus-visible:ring-accent-soft focus-visible:ring-offset-white transition-all",
|
|
3842
|
+
destructive: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger-soft focus-visible:ring-offset-white shadow-sm hover:shadow-md"
|
|
3843
3843
|
},
|
|
3844
3844
|
size: {
|
|
3845
3845
|
xs: "h-6 w-6",
|
|
@@ -3860,7 +3860,7 @@ const Dt = y(
|
|
|
3860
3860
|
shape: "rounded"
|
|
3861
3861
|
}
|
|
3862
3862
|
}
|
|
3863
|
-
),
|
|
3863
|
+
), Fr = y("inline-flex items-center justify-center", {
|
|
3864
3864
|
variants: {
|
|
3865
3865
|
size: {
|
|
3866
3866
|
xs: "w-3 h-3",
|
|
@@ -3885,19 +3885,19 @@ const Dt = y(
|
|
|
3885
3885
|
size: "md",
|
|
3886
3886
|
color: "primary"
|
|
3887
3887
|
}
|
|
3888
|
-
}),
|
|
3888
|
+
}), Lr = I.forwardRef(function({ as: t, color: r = "primary", size: o = "md", className: s, ...a }, l) {
|
|
3889
3889
|
return /* @__PURE__ */ n.jsx(
|
|
3890
|
-
|
|
3890
|
+
t,
|
|
3891
3891
|
{
|
|
3892
3892
|
ref: l,
|
|
3893
|
-
className:
|
|
3893
|
+
className: Fr({ color: r, size: o, className: s }),
|
|
3894
3894
|
...a
|
|
3895
3895
|
}
|
|
3896
3896
|
);
|
|
3897
3897
|
}), le = I.forwardRef(
|
|
3898
3898
|
function({
|
|
3899
|
-
className:
|
|
3900
|
-
variant:
|
|
3899
|
+
className: t,
|
|
3900
|
+
variant: r = "primary",
|
|
3901
3901
|
size: o = "md",
|
|
3902
3902
|
shape: s = "rounded",
|
|
3903
3903
|
disabled: a = !1,
|
|
@@ -3911,12 +3911,12 @@ const Dt = y(
|
|
|
3911
3911
|
ref: d,
|
|
3912
3912
|
type: "button",
|
|
3913
3913
|
className: p(
|
|
3914
|
-
|
|
3915
|
-
variant:
|
|
3914
|
+
_r({
|
|
3915
|
+
variant: r,
|
|
3916
3916
|
size: o,
|
|
3917
3917
|
shape: s
|
|
3918
3918
|
}),
|
|
3919
|
-
|
|
3919
|
+
t
|
|
3920
3920
|
),
|
|
3921
3921
|
disabled: a,
|
|
3922
3922
|
"aria-disabled": a,
|
|
@@ -3924,17 +3924,17 @@ const Dt = y(
|
|
|
3924
3924
|
inert: a ? !0 : void 0,
|
|
3925
3925
|
...c,
|
|
3926
3926
|
children: /* @__PURE__ */ n.jsx(
|
|
3927
|
-
|
|
3927
|
+
Lr,
|
|
3928
3928
|
{
|
|
3929
3929
|
as: l,
|
|
3930
3930
|
size: o,
|
|
3931
|
-
color:
|
|
3931
|
+
color: Dr(r)
|
|
3932
3932
|
}
|
|
3933
3933
|
)
|
|
3934
3934
|
}
|
|
3935
3935
|
);
|
|
3936
3936
|
}
|
|
3937
|
-
),
|
|
3937
|
+
), $r = y(
|
|
3938
3938
|
[
|
|
3939
3939
|
"inline-flex items-center justify-center gap-2",
|
|
3940
3940
|
"rounded-lg",
|
|
@@ -3960,34 +3960,34 @@ const Dt = y(
|
|
|
3960
3960
|
{
|
|
3961
3961
|
variants: {
|
|
3962
3962
|
variant: {
|
|
3963
|
-
primary: "bg-coral text-white hover:bg-coral/90 focus-visible:ring-coral
|
|
3964
|
-
secondary: "bg-sage text-white hover:bg-sage/90 focus-visible:ring-sage
|
|
3965
|
-
tertiary: "bg-mist text-white hover:bg-mist/90 focus-visible:ring-mist
|
|
3966
|
-
ghost: "bg-
|
|
3967
|
-
neutral: "bg-neutral text-foreground border border-border hover:bg-neutral/80 focus-visible:ring-foreground
|
|
3968
|
-
"primary-outline": "border border-coral text-coral bg-
|
|
3969
|
-
"secondary-outline": "border border-sage text-sage bg-
|
|
3970
|
-
"tertiary-outline": "border border-mist text-mist bg-
|
|
3971
|
-
"ghost-outline": "border border-slate text-slate bg-
|
|
3972
|
-
"neutral-outline": "border border-neutral text-foreground bg-
|
|
3973
|
-
"primary-ghost": "text-coral bg-
|
|
3974
|
-
"secondary-ghost": "text-sage bg-
|
|
3975
|
-
"tertiary-ghost": "text-mist bg-
|
|
3976
|
-
"neutral-ghost": "text-foreground bg-
|
|
3977
|
-
success: "bg-success text-white hover:bg-success/90 focus-visible:ring-success
|
|
3978
|
-
"success-outline": "border border-success text-success bg-
|
|
3979
|
-
"success-ghost": "text-success bg-
|
|
3980
|
-
info: "bg-info text-white hover:bg-info/90 focus-visible:ring-info
|
|
3981
|
-
"info-outline": "border border-info text-info bg-
|
|
3982
|
-
"info-ghost": "text-info bg-
|
|
3983
|
-
warning: "bg-warning text-white hover:bg-warning/90 focus-visible:ring-warning
|
|
3984
|
-
"warning-outline": "border border-warning text-warning bg-
|
|
3985
|
-
"warning-ghost": "text-warning bg-
|
|
3986
|
-
danger: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger
|
|
3987
|
-
"danger-outline": "border border-danger text-danger bg-
|
|
3988
|
-
"danger-ghost": "text-danger bg-
|
|
3989
|
-
outline: "border border-border text-foreground bg-
|
|
3990
|
-
destructive: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger
|
|
3963
|
+
primary: "bg-coral text-white hover:bg-coral/90 focus-visible:ring-coral-soft focus-visible:ring-offset-white",
|
|
3964
|
+
secondary: "bg-sage text-white hover:bg-sage/90 focus-visible:ring-sage-soft focus-visible:ring-offset-white",
|
|
3965
|
+
tertiary: "bg-mist text-white hover:bg-mist/90 focus-visible:ring-mist-soft focus-visible:ring-offset-white",
|
|
3966
|
+
ghost: "bg-white text-foreground hover:bg-slate-soft focus-visible:ring-slate-soft focus-visible:ring-offset-white",
|
|
3967
|
+
neutral: "bg-neutral text-foreground border border-border hover:bg-neutral/80 focus-visible:ring-foreground-soft focus-visible:ring-offset-white",
|
|
3968
|
+
"primary-outline": "border border-coral text-coral bg-white hover:bg-coral hover:text-white focus-visible:ring-coral-soft focus-visible:ring-offset-white",
|
|
3969
|
+
"secondary-outline": "border border-sage text-sage bg-white hover:bg-sage hover:text-white focus-visible:ring-sage-soft focus-visible:ring-offset-white",
|
|
3970
|
+
"tertiary-outline": "border border-mist text-mist bg-white hover:bg-mist hover:text-white focus-visible:ring-mist-soft focus-visible:ring-offset-white",
|
|
3971
|
+
"ghost-outline": "border border-slate text-slate bg-white hover:bg-slate hover:text-white focus-visible:ring-slate-soft focus-visible:ring-offset-white",
|
|
3972
|
+
"neutral-outline": "border border-neutral text-foreground bg-white hover:bg-neutral hover:text-foreground focus-visible:ring-foreground-soft focus-visible:ring-offset-white",
|
|
3973
|
+
"primary-ghost": "text-coral bg-white hover:bg-coral-soft focus-visible:ring-coral-soft focus-visible:ring-offset-white",
|
|
3974
|
+
"secondary-ghost": "text-sage bg-white hover:bg-sage-soft focus-visible:ring-sage-soft focus-visible:ring-offset-white",
|
|
3975
|
+
"tertiary-ghost": "text-mist bg-white hover:bg-mist-soft focus-visible:ring-mist-soft focus-visible:ring-offset-white",
|
|
3976
|
+
"neutral-ghost": "text-foreground bg-white hover:bg-neutral/70 focus-visible:ring-foreground-soft focus-visible:ring-offset-white",
|
|
3977
|
+
success: "bg-success text-white hover:bg-success/90 focus-visible:ring-success-soft focus-visible:ring-offset-white",
|
|
3978
|
+
"success-outline": "border border-success text-success bg-white hover:bg-success hover:text-white focus-visible:ring-success-soft focus-visible:ring-offset-white",
|
|
3979
|
+
"success-ghost": "text-success bg-white hover:bg-success-soft focus-visible:ring-success-soft focus-visible:ring-offset-white",
|
|
3980
|
+
info: "bg-info text-white hover:bg-info/90 focus-visible:ring-info-soft focus-visible:ring-offset-white",
|
|
3981
|
+
"info-outline": "border border-info text-info bg-white hover:bg-info hover:text-white focus-visible:ring-info-soft focus-visible:ring-offset-white",
|
|
3982
|
+
"info-ghost": "text-info bg-white hover:bg-info-soft focus-visible:ring-info-soft focus-visible:ring-offset-white",
|
|
3983
|
+
warning: "bg-warning text-white hover:bg-warning/90 focus-visible:ring-warning-soft focus-visible:ring-offset-white",
|
|
3984
|
+
"warning-outline": "border border-warning text-warning bg-white hover:bg-warning hover:text-white focus-visible:ring-warning-soft focus-visible:ring-offset-white",
|
|
3985
|
+
"warning-ghost": "text-warning bg-white hover:bg-warning-soft focus-visible:ring-warning-soft focus-visible:ring-offset-white",
|
|
3986
|
+
danger: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger-soft focus-visible:ring-offset-white",
|
|
3987
|
+
"danger-outline": "border border-danger text-danger bg-white hover:bg-danger hover:text-white focus-visible:ring-danger-soft focus-visible:ring-offset-white",
|
|
3988
|
+
"danger-ghost": "text-danger bg-white hover:bg-danger-soft focus-visible:ring-danger-soft focus-visible:ring-offset-white",
|
|
3989
|
+
outline: "border border-border text-foreground bg-white hover:bg-accent-soft focus-visible:ring-accent-soft focus-visible:ring-offset-white",
|
|
3990
|
+
destructive: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger-soft focus-visible:ring-offset-white"
|
|
3991
3991
|
},
|
|
3992
3992
|
size: {
|
|
3993
3993
|
sm: "h-12 w-12 min-w-12 min-h-12 text-base",
|
|
@@ -4000,10 +4000,10 @@ const Dt = y(
|
|
|
4000
4000
|
size: "md"
|
|
4001
4001
|
}
|
|
4002
4002
|
}
|
|
4003
|
-
),
|
|
4003
|
+
), Gs = E(
|
|
4004
4004
|
function({
|
|
4005
|
-
className:
|
|
4006
|
-
variant:
|
|
4005
|
+
className: t,
|
|
4006
|
+
variant: r = "primary",
|
|
4007
4007
|
size: o = "md",
|
|
4008
4008
|
side: s = "right",
|
|
4009
4009
|
offset: a = "1rem",
|
|
@@ -4015,8 +4015,8 @@ const Dt = y(
|
|
|
4015
4015
|
bottom: a,
|
|
4016
4016
|
position: "fixed",
|
|
4017
4017
|
zIndex: 50
|
|
4018
|
-
}, [g, b] =
|
|
4019
|
-
return
|
|
4018
|
+
}, [g, b] = H(!1);
|
|
4019
|
+
return J(() => {
|
|
4020
4020
|
b(!0);
|
|
4021
4021
|
}, []), /* @__PURE__ */ n.jsx(
|
|
4022
4022
|
"button",
|
|
@@ -4024,76 +4024,194 @@ const Dt = y(
|
|
|
4024
4024
|
ref: c,
|
|
4025
4025
|
type: i.type || "button",
|
|
4026
4026
|
className: p(
|
|
4027
|
-
|
|
4027
|
+
$r({ variant: r, size: o }),
|
|
4028
4028
|
d,
|
|
4029
4029
|
g && "animate-fab-in",
|
|
4030
|
-
|
|
4030
|
+
t
|
|
4031
4031
|
),
|
|
4032
4032
|
style: f,
|
|
4033
4033
|
...i
|
|
4034
4034
|
}
|
|
4035
4035
|
);
|
|
4036
4036
|
}
|
|
4037
|
-
),
|
|
4037
|
+
), Gr = y("", {
|
|
4038
|
+
variants: {
|
|
4039
|
+
color: {
|
|
4040
|
+
primary: "text-primary",
|
|
4041
|
+
secondary: "text-secondary",
|
|
4042
|
+
tertiary: "text-tertiary",
|
|
4043
|
+
ghost: "text-ghost",
|
|
4044
|
+
neutral: "text-ghost",
|
|
4045
|
+
success: "text-success",
|
|
4046
|
+
info: "text-info",
|
|
4047
|
+
warning: "text-warning",
|
|
4048
|
+
danger: "text-danger"
|
|
4049
|
+
},
|
|
4050
|
+
hasUnderline: {
|
|
4051
|
+
true: "underline",
|
|
4052
|
+
false: ""
|
|
4053
|
+
},
|
|
4054
|
+
isCapitalize: {
|
|
4055
|
+
true: "capitalize",
|
|
4056
|
+
false: ""
|
|
4057
|
+
},
|
|
4058
|
+
align: {
|
|
4059
|
+
left: "text-left",
|
|
4060
|
+
center: "text-center",
|
|
4061
|
+
right: "text-right",
|
|
4062
|
+
justify: "text-justify"
|
|
4063
|
+
},
|
|
4064
|
+
italic: {
|
|
4065
|
+
true: "italic",
|
|
4066
|
+
false: ""
|
|
4067
|
+
},
|
|
4068
|
+
clamp: {
|
|
4069
|
+
1: "line-clamp-1",
|
|
4070
|
+
2: "line-clamp-2",
|
|
4071
|
+
3: "line-clamp-3",
|
|
4072
|
+
4: "line-clamp-4",
|
|
4073
|
+
5: "line-clamp-5",
|
|
4074
|
+
none: ""
|
|
4075
|
+
},
|
|
4076
|
+
ellipsis: {
|
|
4077
|
+
true: "truncate",
|
|
4078
|
+
false: ""
|
|
4079
|
+
},
|
|
4080
|
+
as: {
|
|
4081
|
+
h1: "font-bold text-4xl leading-loose",
|
|
4082
|
+
h2: "font-semibold text-3xl leading-relaxed",
|
|
4083
|
+
h3: "font-medium text-2xl leading-relaxed",
|
|
4084
|
+
h4: "font-bold text-xl leading-normal",
|
|
4085
|
+
h5: "font-semibold text-lg leading-normal",
|
|
4086
|
+
h6: "font-medium text-base leading-normal",
|
|
4087
|
+
p: "font-normal text-base leading-normal",
|
|
4088
|
+
span: "font-normal text-base leading-normal",
|
|
4089
|
+
label: "font-normal text-xs leading-normal"
|
|
4090
|
+
}
|
|
4091
|
+
},
|
|
4092
|
+
defaultVariants: {
|
|
4093
|
+
color: "neutral",
|
|
4094
|
+
hasUnderline: !1,
|
|
4095
|
+
isCapitalize: !1,
|
|
4096
|
+
align: "left",
|
|
4097
|
+
italic: !1,
|
|
4098
|
+
clamp: "none",
|
|
4099
|
+
ellipsis: !1,
|
|
4100
|
+
as: "span"
|
|
4101
|
+
}
|
|
4102
|
+
}), We = E(
|
|
4103
|
+
({
|
|
4104
|
+
as: e = "span",
|
|
4105
|
+
color: t = "ghost",
|
|
4106
|
+
hasUnderline: r = !1,
|
|
4107
|
+
isCapitalize: o = !1,
|
|
4108
|
+
align: s = "left",
|
|
4109
|
+
italic: a = !1,
|
|
4110
|
+
clamp: l = "none",
|
|
4111
|
+
ellipsis: i = !1,
|
|
4112
|
+
fontSize: c,
|
|
4113
|
+
fontWeight: d,
|
|
4114
|
+
className: f,
|
|
4115
|
+
children: g,
|
|
4116
|
+
...b
|
|
4117
|
+
}, m) => {
|
|
4118
|
+
const w = [
|
|
4119
|
+
"h1",
|
|
4120
|
+
"h2",
|
|
4121
|
+
"h3",
|
|
4122
|
+
"h4",
|
|
4123
|
+
"h5",
|
|
4124
|
+
"h6",
|
|
4125
|
+
"p",
|
|
4126
|
+
"span",
|
|
4127
|
+
"label"
|
|
4128
|
+
].includes(e) ? e : "span", C = c ? `text-${c}` : "", R = d ? `font-${d}` : "";
|
|
4129
|
+
return /* @__PURE__ */ n.jsx(
|
|
4130
|
+
e,
|
|
4131
|
+
{
|
|
4132
|
+
ref: m,
|
|
4133
|
+
className: p(
|
|
4134
|
+
Gr({
|
|
4135
|
+
color: t,
|
|
4136
|
+
hasUnderline: r,
|
|
4137
|
+
isCapitalize: o,
|
|
4138
|
+
align: s,
|
|
4139
|
+
italic: a,
|
|
4140
|
+
clamp: l,
|
|
4141
|
+
ellipsis: i,
|
|
4142
|
+
// @ts-expect-error - `as` is not a valid variant
|
|
4143
|
+
as: w
|
|
4144
|
+
}),
|
|
4145
|
+
C,
|
|
4146
|
+
R,
|
|
4147
|
+
f
|
|
4148
|
+
),
|
|
4149
|
+
...b,
|
|
4150
|
+
children: g
|
|
4151
|
+
}
|
|
4152
|
+
);
|
|
4153
|
+
}
|
|
4154
|
+
), Wr = ({
|
|
4038
4155
|
value: e,
|
|
4039
|
-
onChange:
|
|
4040
|
-
className:
|
|
4156
|
+
onChange: t,
|
|
4157
|
+
className: r,
|
|
4041
4158
|
...o
|
|
4042
4159
|
}) => {
|
|
4043
|
-
const s = /* @__PURE__ */ new Date(), [a, l] =
|
|
4044
|
-
/* @__PURE__ */ n.jsx(
|
|
4160
|
+
const s = /* @__PURE__ */ new Date(), [a, l] = H(s.getMonth()), [i, c] = H(s.getFullYear()), d = (v, w) => new Date(v, w + 1, 0).getDate(), f = (v, w) => new Date(v, w, 1).getDay(), g = () => /* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between px-4 pt-4 pb-2", children: [
|
|
4161
|
+
/* @__PURE__ */ n.jsx(We, { fontSize: "base", fontWeight: "semibold", children: e ? e.toLocaleDateString(void 0, {
|
|
4045
4162
|
year: "numeric",
|
|
4046
|
-
month: "long"
|
|
4047
|
-
day: "numeric"
|
|
4163
|
+
month: "long"
|
|
4048
4164
|
}) : `${i} ${new Date(i, a).toLocaleString(void 0, { month: "long" })}` }),
|
|
4049
4165
|
/* @__PURE__ */ n.jsxs("div", { className: "flex gap-2", children: [
|
|
4050
4166
|
/* @__PURE__ */ n.jsx(
|
|
4051
4167
|
le,
|
|
4052
4168
|
{
|
|
4053
|
-
as:
|
|
4169
|
+
as: jt,
|
|
4054
4170
|
variant: "ghost",
|
|
4055
4171
|
size: "sm",
|
|
4056
4172
|
"aria-label": "Previous month",
|
|
4057
4173
|
onClick: () => {
|
|
4058
4174
|
const v = a === 0 ? 11 : a - 1, w = a === 0 ? i - 1 : i;
|
|
4059
|
-
l(v), c(w),
|
|
4175
|
+
l(v), c(w), t?.(new Date(w, v, 1));
|
|
4060
4176
|
}
|
|
4061
4177
|
}
|
|
4062
4178
|
),
|
|
4063
4179
|
/* @__PURE__ */ n.jsx(
|
|
4064
4180
|
le,
|
|
4065
4181
|
{
|
|
4066
|
-
as:
|
|
4182
|
+
as: Nt,
|
|
4067
4183
|
variant: "ghost",
|
|
4068
4184
|
size: "sm",
|
|
4069
4185
|
"aria-label": "Next month",
|
|
4070
4186
|
onClick: () => {
|
|
4071
4187
|
const v = a === 11 ? 0 : a + 1, w = a === 11 ? i + 1 : i;
|
|
4072
|
-
l(v), c(w),
|
|
4188
|
+
l(v), c(w), t?.(new Date(w, v, 1));
|
|
4073
4189
|
}
|
|
4074
4190
|
}
|
|
4075
4191
|
)
|
|
4076
4192
|
] })
|
|
4077
|
-
] }), b = () => /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-7 px-4 text-
|
|
4193
|
+
] }), b = () => /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-7 px-4 text-slate-500 mb-1", children: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map((v) => /* @__PURE__ */ n.jsx(We, { fontSize: "xs", color: "ghost", align: "center", children: v }, v)) }), m = () => {
|
|
4078
4194
|
const v = [], w = f(i, a), C = d(i, a), R = d(i, a - 1 < 0 ? 11 : a - 1);
|
|
4079
|
-
for (let N = 0; N < w; N++)
|
|
4195
|
+
for (let N = 0; N < w; N++) {
|
|
4196
|
+
const M = R - w + N + 1;
|
|
4080
4197
|
v.push(
|
|
4081
4198
|
/* @__PURE__ */ n.jsx(
|
|
4082
4199
|
le,
|
|
4083
4200
|
{
|
|
4084
|
-
as: () =>
|
|
4201
|
+
as: () => M,
|
|
4085
4202
|
size: "sm",
|
|
4086
4203
|
"aria-label": "Previous month day",
|
|
4087
4204
|
variant: "ghost",
|
|
4088
4205
|
className: "text-slate-300",
|
|
4089
4206
|
onClick: () => {
|
|
4090
|
-
const
|
|
4091
|
-
|
|
4207
|
+
const F = a === 0 ? 11 : a - 1, L = a === 0 ? i - 1 : i, Y = R - w + N + 1;
|
|
4208
|
+
t?.(new Date(L, F, Y)), l(F), c(L);
|
|
4092
4209
|
}
|
|
4093
4210
|
},
|
|
4094
4211
|
"prev-" + N
|
|
4095
4212
|
)
|
|
4096
4213
|
);
|
|
4214
|
+
}
|
|
4097
4215
|
for (let N = 1; N <= C; N++) {
|
|
4098
4216
|
const M = e && e.getFullYear() === i && e.getMonth() === a && e.getDate() === N;
|
|
4099
4217
|
v.push(
|
|
@@ -4105,7 +4223,7 @@ const Dt = y(
|
|
|
4105
4223
|
size: "sm",
|
|
4106
4224
|
"aria-label": `Select ${i}-${a + 1}-${N}`,
|
|
4107
4225
|
"aria-current": M ? "date" : void 0,
|
|
4108
|
-
onClick: () =>
|
|
4226
|
+
onClick: () => t?.(new Date(i, a, N))
|
|
4109
4227
|
},
|
|
4110
4228
|
N
|
|
4111
4229
|
)
|
|
@@ -4124,7 +4242,7 @@ const Dt = y(
|
|
|
4124
4242
|
className: "text-slate-300",
|
|
4125
4243
|
onClick: () => {
|
|
4126
4244
|
const M = a === 11 ? 0 : a + 1, F = a === 11 ? i + 1 : i, L = N + 1;
|
|
4127
|
-
|
|
4245
|
+
t?.(new Date(F, M, L)), l(M), c(F);
|
|
4128
4246
|
}
|
|
4129
4247
|
},
|
|
4130
4248
|
"next-" + N
|
|
@@ -4132,12 +4250,12 @@ const Dt = y(
|
|
|
4132
4250
|
);
|
|
4133
4251
|
return /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-7 gap-2 px-4 pb-4", children: v });
|
|
4134
4252
|
};
|
|
4135
|
-
return /* @__PURE__ */ n.jsxs("div", { className: p("select-none",
|
|
4253
|
+
return /* @__PURE__ */ n.jsxs("div", { className: p("select-none", r), ...o, children: [
|
|
4136
4254
|
g(),
|
|
4137
4255
|
b(),
|
|
4138
4256
|
m()
|
|
4139
4257
|
] });
|
|
4140
|
-
},
|
|
4258
|
+
}, st = Object.assign(Wr, {}), Yr = y("space-y-2", {
|
|
4141
4259
|
variants: {
|
|
4142
4260
|
direction: {
|
|
4143
4261
|
vertical: "space-y-2 space-x-0",
|
|
@@ -4147,7 +4265,7 @@ const Dt = y(
|
|
|
4147
4265
|
defaultVariants: {
|
|
4148
4266
|
direction: "vertical"
|
|
4149
4267
|
}
|
|
4150
|
-
}),
|
|
4268
|
+
}), qr = y(
|
|
4151
4269
|
"relative h-4 w-4 rounded border cursor-pointer transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed appearance-none bg-white",
|
|
4152
4270
|
{
|
|
4153
4271
|
variants: {
|
|
@@ -4185,7 +4303,7 @@ const Dt = y(
|
|
|
4185
4303
|
size: "md"
|
|
4186
4304
|
}
|
|
4187
4305
|
}
|
|
4188
|
-
),
|
|
4306
|
+
), Ur = y(
|
|
4189
4307
|
"text-foreground cursor-pointer select-none",
|
|
4190
4308
|
{
|
|
4191
4309
|
variants: {
|
|
@@ -4204,13 +4322,13 @@ const Dt = y(
|
|
|
4204
4322
|
disabled: !1
|
|
4205
4323
|
}
|
|
4206
4324
|
}
|
|
4207
|
-
),
|
|
4208
|
-
const e =
|
|
4325
|
+
), nt = ee(null), Hr = () => {
|
|
4326
|
+
const e = te(nt);
|
|
4209
4327
|
if (!e)
|
|
4210
4328
|
throw new Error("CheckboxOption must be used within CheckboxInput");
|
|
4211
4329
|
return e;
|
|
4212
|
-
},
|
|
4213
|
-
const i =
|
|
4330
|
+
}, at = I.forwardRef(({ children: e, description: t, className: r, disabled: o, id: s, ...a }, l) => {
|
|
4331
|
+
const i = Hr(), c = I.useId(), d = s || c, f = o || i.disabled, g = i.error ? "danger" : i.variant || "primary";
|
|
4214
4332
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
4215
4333
|
/* @__PURE__ */ n.jsx("div", { className: "relative flex items-center", children: /* @__PURE__ */ n.jsx(
|
|
4216
4334
|
"input",
|
|
@@ -4220,7 +4338,7 @@ const Dt = y(
|
|
|
4220
4338
|
id: d,
|
|
4221
4339
|
disabled: f,
|
|
4222
4340
|
className: p(
|
|
4223
|
-
|
|
4341
|
+
qr({
|
|
4224
4342
|
variant: g,
|
|
4225
4343
|
size: i.size
|
|
4226
4344
|
}),
|
|
@@ -4233,7 +4351,7 @@ const Dt = y(
|
|
|
4233
4351
|
"checked:after:opacity-100",
|
|
4234
4352
|
// Outline variants use colored checkmark
|
|
4235
4353
|
g?.includes("outline") && "checked:after:border-current",
|
|
4236
|
-
|
|
4354
|
+
r
|
|
4237
4355
|
),
|
|
4238
4356
|
...a
|
|
4239
4357
|
}
|
|
@@ -4243,14 +4361,14 @@ const Dt = y(
|
|
|
4243
4361
|
"label",
|
|
4244
4362
|
{
|
|
4245
4363
|
htmlFor: d,
|
|
4246
|
-
className:
|
|
4364
|
+
className: Ur({
|
|
4247
4365
|
size: i.size,
|
|
4248
4366
|
disabled: f
|
|
4249
4367
|
}),
|
|
4250
4368
|
children: e
|
|
4251
4369
|
}
|
|
4252
4370
|
),
|
|
4253
|
-
|
|
4371
|
+
t && /* @__PURE__ */ n.jsx(
|
|
4254
4372
|
"div",
|
|
4255
4373
|
{
|
|
4256
4374
|
className: p(
|
|
@@ -4260,18 +4378,18 @@ const Dt = y(
|
|
|
4260
4378
|
i.size === "lg" && "text-sm",
|
|
4261
4379
|
f && "opacity-50"
|
|
4262
4380
|
),
|
|
4263
|
-
children:
|
|
4381
|
+
children: t
|
|
4264
4382
|
}
|
|
4265
4383
|
)
|
|
4266
4384
|
] })
|
|
4267
4385
|
] });
|
|
4268
4386
|
});
|
|
4269
|
-
|
|
4270
|
-
const
|
|
4387
|
+
at.displayName = "CheckboxOption";
|
|
4388
|
+
const it = I.forwardRef(
|
|
4271
4389
|
({
|
|
4272
4390
|
variant: e = "primary",
|
|
4273
|
-
size:
|
|
4274
|
-
label:
|
|
4391
|
+
size: t = "md",
|
|
4392
|
+
label: r,
|
|
4275
4393
|
helperText: o,
|
|
4276
4394
|
error: s,
|
|
4277
4395
|
direction: a = "vertical",
|
|
@@ -4282,29 +4400,29 @@ const ar = I.forwardRef(
|
|
|
4282
4400
|
}, f) => {
|
|
4283
4401
|
const g = !!s, b = {
|
|
4284
4402
|
variant: e,
|
|
4285
|
-
size:
|
|
4403
|
+
size: t,
|
|
4286
4404
|
disabled: i,
|
|
4287
4405
|
error: g
|
|
4288
4406
|
};
|
|
4289
|
-
return /* @__PURE__ */ n.jsx(
|
|
4290
|
-
|
|
4291
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
4407
|
+
return /* @__PURE__ */ n.jsx(nt.Provider, { value: b, children: /* @__PURE__ */ n.jsxs("div", { ref: f, className: p("w-full", l), ...d, children: [
|
|
4408
|
+
r && /* @__PURE__ */ n.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: r }),
|
|
4409
|
+
/* @__PURE__ */ n.jsx("div", { className: Yr({ direction: a }), children: c }),
|
|
4292
4410
|
g && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: s }),
|
|
4293
4411
|
!g && o && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-gray-600", children: o })
|
|
4294
4412
|
] }) });
|
|
4295
4413
|
}
|
|
4296
4414
|
);
|
|
4297
|
-
|
|
4298
|
-
const
|
|
4299
|
-
Option:
|
|
4300
|
-
}),
|
|
4415
|
+
it.displayName = "CheckboxInput";
|
|
4416
|
+
const Ws = Object.assign(it, {
|
|
4417
|
+
Option: at
|
|
4418
|
+
}), lt = ee(
|
|
4301
4419
|
null
|
|
4302
|
-
),
|
|
4303
|
-
const e =
|
|
4420
|
+
), Jr = () => {
|
|
4421
|
+
const e = te(lt);
|
|
4304
4422
|
if (!e)
|
|
4305
4423
|
throw new Error("useChipInputContext must be used within ChipInputContext");
|
|
4306
4424
|
return e;
|
|
4307
|
-
},
|
|
4425
|
+
}, Xr = y(
|
|
4308
4426
|
"inline-flex items-center px-2 py-1 text-xs bg-neutral rounded-full font-medium transition-colors duration-200 cursor-pointer border border-slate-100",
|
|
4309
4427
|
{
|
|
4310
4428
|
variants: {
|
|
@@ -4383,8 +4501,8 @@ const Gs = Object.assign(ar, {
|
|
|
4383
4501
|
selected: !1
|
|
4384
4502
|
}
|
|
4385
4503
|
}
|
|
4386
|
-
),
|
|
4387
|
-
const i =
|
|
4504
|
+
), ct = I.forwardRef(({ children: e, className: t, disabled: r, id: o, value: s, ...a }, l) => {
|
|
4505
|
+
const i = Jr(), c = I.useId(), d = o || c, f = r || i.disabled, g = i.error ? "danger" : i.variant || "primary", b = i.value?.includes(s) ?? !1, m = (v) => {
|
|
4388
4506
|
if (!f) {
|
|
4389
4507
|
const w = i.value || [];
|
|
4390
4508
|
let C;
|
|
@@ -4414,12 +4532,12 @@ const Gs = Object.assign(ar, {
|
|
|
4414
4532
|
htmlFor: d,
|
|
4415
4533
|
"data-selected": b,
|
|
4416
4534
|
className: p(
|
|
4417
|
-
|
|
4535
|
+
Xr({
|
|
4418
4536
|
variant: g,
|
|
4419
4537
|
selected: b
|
|
4420
4538
|
}),
|
|
4421
4539
|
f && "opacity-50 cursor-not-allowed pointer-events-none",
|
|
4422
|
-
|
|
4540
|
+
t
|
|
4423
4541
|
),
|
|
4424
4542
|
children: /* @__PURE__ */ n.jsxs("span", { className: "flex items-center", children: [
|
|
4425
4543
|
/* @__PURE__ */ n.jsx(
|
|
@@ -4432,7 +4550,7 @@ const Gs = Object.assign(ar, {
|
|
|
4432
4550
|
),
|
|
4433
4551
|
"aria-hidden": "true",
|
|
4434
4552
|
children: b && /* @__PURE__ */ n.jsx(
|
|
4435
|
-
|
|
4553
|
+
Ct,
|
|
4436
4554
|
{
|
|
4437
4555
|
size: 16,
|
|
4438
4556
|
className: g === "primary" ? "text-coral" : g === "secondary" ? "text-sage" : g === "tertiary" ? "text-mist" : g === "ghost" ? "text-slate" : g === "success" ? "text-success" : g === "info" ? "text-info" : g === "warning" ? "text-warning" : g === "danger" ? "text-danger" : "text-coral"
|
|
@@ -4446,12 +4564,12 @@ const Gs = Object.assign(ar, {
|
|
|
4446
4564
|
)
|
|
4447
4565
|
] });
|
|
4448
4566
|
});
|
|
4449
|
-
|
|
4450
|
-
const
|
|
4567
|
+
ct.displayName = "ChipOption";
|
|
4568
|
+
const Kr = I.forwardRef(
|
|
4451
4569
|
({
|
|
4452
4570
|
variant: e = "primary",
|
|
4453
|
-
label:
|
|
4454
|
-
helperText:
|
|
4571
|
+
label: t,
|
|
4572
|
+
helperText: r,
|
|
4455
4573
|
error: o,
|
|
4456
4574
|
className: s,
|
|
4457
4575
|
disabled: a,
|
|
@@ -4469,48 +4587,48 @@ const Jt = I.forwardRef(
|
|
|
4469
4587
|
value: i,
|
|
4470
4588
|
onChange: c
|
|
4471
4589
|
};
|
|
4472
|
-
return /* @__PURE__ */ n.jsx(
|
|
4473
|
-
|
|
4590
|
+
return /* @__PURE__ */ n.jsx(lt.Provider, { value: m, children: /* @__PURE__ */ n.jsxs("div", { ref: g, className: p("w-full", s), ...f, children: [
|
|
4591
|
+
t && /* @__PURE__ */ n.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: t }),
|
|
4474
4592
|
/* @__PURE__ */ n.jsx("div", { className: "flex flex-wrap gap-2", children: d }),
|
|
4475
4593
|
b && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: o }),
|
|
4476
|
-
!b &&
|
|
4594
|
+
!b && r && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-gray-600", children: r })
|
|
4477
4595
|
] }) });
|
|
4478
4596
|
}
|
|
4479
|
-
),
|
|
4480
|
-
Option:
|
|
4481
|
-
}),
|
|
4482
|
-
({ className: e, ...
|
|
4597
|
+
), Ys = Object.assign(Kr, {
|
|
4598
|
+
Option: ct
|
|
4599
|
+
}), Zr = E(
|
|
4600
|
+
({ className: e, ...t }, r) => /* @__PURE__ */ n.jsx(
|
|
4483
4601
|
"div",
|
|
4484
4602
|
{
|
|
4485
|
-
ref:
|
|
4603
|
+
ref: r,
|
|
4486
4604
|
className: p("px-6 pt-6 pb-2 text-lg font-semibold", e),
|
|
4487
|
-
...
|
|
4605
|
+
...t
|
|
4488
4606
|
}
|
|
4489
4607
|
)
|
|
4490
|
-
),
|
|
4491
|
-
({ className: e, ...
|
|
4608
|
+
), Qr = E(
|
|
4609
|
+
({ className: e, ...t }, r) => /* @__PURE__ */ n.jsx(
|
|
4492
4610
|
"div",
|
|
4493
4611
|
{
|
|
4494
|
-
ref:
|
|
4612
|
+
ref: r,
|
|
4495
4613
|
className: p("px-6 py-4 flex justify-end gap-2", e),
|
|
4496
|
-
...
|
|
4614
|
+
...t
|
|
4497
4615
|
}
|
|
4498
4616
|
)
|
|
4499
|
-
),
|
|
4500
|
-
({ className: e, ...
|
|
4501
|
-
),
|
|
4502
|
-
({ onOverlayClick: e, ...
|
|
4617
|
+
), eo = E(
|
|
4618
|
+
({ className: e, ...t }, r) => /* @__PURE__ */ n.jsx("div", { ref: r, className: p("px-6 py-2", e), ...t })
|
|
4619
|
+
), to = E(
|
|
4620
|
+
({ onOverlayClick: e, ...t }, r) => /* @__PURE__ */ n.jsx(
|
|
4503
4621
|
"div",
|
|
4504
4622
|
{
|
|
4505
|
-
ref:
|
|
4623
|
+
ref: r,
|
|
4506
4624
|
role: "presentation",
|
|
4507
4625
|
tabIndex: -1,
|
|
4508
4626
|
"aria-modal": "true",
|
|
4509
4627
|
onClick: e,
|
|
4510
|
-
...
|
|
4628
|
+
...t
|
|
4511
4629
|
}
|
|
4512
4630
|
)
|
|
4513
|
-
),
|
|
4631
|
+
), ro = y(
|
|
4514
4632
|
"fixed inset-0 z-51 transition-opacity duration-300 bg-black/30 backdrop-blur-md flex items-center justify-center transition-opacity duration-200 ease-in-out",
|
|
4515
4633
|
{
|
|
4516
4634
|
variants: {
|
|
@@ -4523,7 +4641,7 @@ const Jt = I.forwardRef(
|
|
|
4523
4641
|
placement: "center"
|
|
4524
4642
|
}
|
|
4525
4643
|
}
|
|
4526
|
-
),
|
|
4644
|
+
), oo = y(
|
|
4527
4645
|
[
|
|
4528
4646
|
"bg-white rounded-lg shadow-xl relative",
|
|
4529
4647
|
"flex flex-col",
|
|
@@ -4552,61 +4670,61 @@ const Jt = I.forwardRef(
|
|
|
4552
4670
|
}
|
|
4553
4671
|
}
|
|
4554
4672
|
);
|
|
4555
|
-
function
|
|
4556
|
-
|
|
4557
|
-
if (
|
|
4558
|
-
const
|
|
4673
|
+
function so(e, t) {
|
|
4674
|
+
J(() => {
|
|
4675
|
+
if (t && e.current) {
|
|
4676
|
+
const r = e.current.querySelectorAll(
|
|
4559
4677
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
4560
4678
|
);
|
|
4561
|
-
|
|
4679
|
+
r.length && r[0].focus();
|
|
4562
4680
|
}
|
|
4563
|
-
}, [
|
|
4681
|
+
}, [t, e]);
|
|
4564
4682
|
}
|
|
4565
|
-
function
|
|
4566
|
-
|
|
4683
|
+
function no(e, t) {
|
|
4684
|
+
J(() => {
|
|
4567
4685
|
if (!e) return;
|
|
4568
|
-
const
|
|
4569
|
-
o.key === "Escape" &&
|
|
4686
|
+
const r = (o) => {
|
|
4687
|
+
o.key === "Escape" && t();
|
|
4570
4688
|
};
|
|
4571
|
-
return document.addEventListener("keydown",
|
|
4572
|
-
}, [e,
|
|
4689
|
+
return document.addEventListener("keydown", r), () => document.removeEventListener("keydown", r);
|
|
4690
|
+
}, [e, t]);
|
|
4573
4691
|
}
|
|
4574
|
-
const
|
|
4692
|
+
const ao = 200, io = ({
|
|
4575
4693
|
isOpen: e,
|
|
4576
|
-
onOpenChange:
|
|
4577
|
-
size:
|
|
4694
|
+
onOpenChange: t,
|
|
4695
|
+
size: r = "md",
|
|
4578
4696
|
placement: o = "center",
|
|
4579
4697
|
children: s,
|
|
4580
4698
|
disableOverlayClose: a,
|
|
4581
4699
|
disableEscClose: l,
|
|
4582
4700
|
...i
|
|
4583
4701
|
}) => {
|
|
4584
|
-
const c = ce(null), d = ce(null), [f, g] =
|
|
4585
|
-
return
|
|
4702
|
+
const c = ce(null), d = ce(null), [f, g] = H(e), [b, m] = H(!1);
|
|
4703
|
+
return J(() => {
|
|
4586
4704
|
if (e)
|
|
4587
4705
|
g(!0), m(!1), c.current = document.activeElement;
|
|
4588
4706
|
else if (f) {
|
|
4589
4707
|
m(!0);
|
|
4590
4708
|
const v = setTimeout(() => {
|
|
4591
4709
|
g(!1), m(!1), c.current && c.current.focus();
|
|
4592
|
-
},
|
|
4710
|
+
}, ao);
|
|
4593
4711
|
return () => clearTimeout(v);
|
|
4594
4712
|
}
|
|
4595
|
-
}, [e]),
|
|
4596
|
-
|
|
4597
|
-
}),
|
|
4598
|
-
|
|
4713
|
+
}, [e]), no(e && !l, () => {
|
|
4714
|
+
t && t(!1);
|
|
4715
|
+
}), so(d, e), /* @__PURE__ */ n.jsx(
|
|
4716
|
+
to,
|
|
4599
4717
|
{
|
|
4600
4718
|
ref: d,
|
|
4601
|
-
className: `${
|
|
4719
|
+
className: `${ro({ placement: o })} transition-opacity duration-200 ease-in-out ` + (e && !b ? "opacity-100" : "opacity-0 pointer-events-none"),
|
|
4602
4720
|
onOverlayClick: (v) => {
|
|
4603
|
-
v.target === d.current && !a &&
|
|
4721
|
+
v.target === d.current && !a && t && t(!1);
|
|
4604
4722
|
},
|
|
4605
4723
|
placement: o,
|
|
4606
4724
|
children: /* @__PURE__ */ n.jsx(
|
|
4607
4725
|
"div",
|
|
4608
4726
|
{
|
|
4609
|
-
className: `${
|
|
4727
|
+
className: `${oo({ size: r, placement: o })} transition-all duration-200 ease-in-out ` + (e && !b ? "opacity-100 scale-100" : "opacity-0 scale-95 pointer-events-none"),
|
|
4610
4728
|
role: "dialog",
|
|
4611
4729
|
...i,
|
|
4612
4730
|
tabIndex: 0,
|
|
@@ -4616,11 +4734,11 @@ const so = 200, no = ({
|
|
|
4616
4734
|
)
|
|
4617
4735
|
}
|
|
4618
4736
|
);
|
|
4619
|
-
}, ze = Object.assign(
|
|
4620
|
-
Header:
|
|
4621
|
-
Body:
|
|
4622
|
-
Footer:
|
|
4623
|
-
}),
|
|
4737
|
+
}, ze = Object.assign(io, {
|
|
4738
|
+
Header: Zr,
|
|
4739
|
+
Body: eo,
|
|
4740
|
+
Footer: Qr
|
|
4741
|
+
}), dt = y(
|
|
4624
4742
|
"block w-full rounded-md border bg-white transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none disabled:bg-gray-50",
|
|
4625
4743
|
{
|
|
4626
4744
|
variants: {
|
|
@@ -4652,11 +4770,11 @@ const so = 200, no = ({
|
|
|
4652
4770
|
variant: "primary"
|
|
4653
4771
|
}
|
|
4654
4772
|
}
|
|
4655
|
-
),
|
|
4773
|
+
), lo = dt, ut = I.forwardRef(
|
|
4656
4774
|
({
|
|
4657
4775
|
leftContent: e,
|
|
4658
|
-
rightContent:
|
|
4659
|
-
hasError:
|
|
4776
|
+
rightContent: t,
|
|
4777
|
+
hasError: r,
|
|
4660
4778
|
variant: o = "primary",
|
|
4661
4779
|
value: s,
|
|
4662
4780
|
placeholder: a = "Select date",
|
|
@@ -4668,13 +4786,13 @@ const so = 200, no = ({
|
|
|
4668
4786
|
{
|
|
4669
4787
|
ref: d,
|
|
4670
4788
|
type: "button",
|
|
4671
|
-
"aria-invalid":
|
|
4789
|
+
"aria-invalid": r,
|
|
4672
4790
|
className: p(
|
|
4673
|
-
|
|
4674
|
-
variant:
|
|
4791
|
+
lo({
|
|
4792
|
+
variant: r ? "danger" : o
|
|
4675
4793
|
}),
|
|
4676
4794
|
e ? "pl-9" : "pl-3",
|
|
4677
|
-
|
|
4795
|
+
t ? "pr-9" : "pr-3",
|
|
4678
4796
|
"h-10 flex items-center justify-between cursor-pointer w-full relative",
|
|
4679
4797
|
"text-left",
|
|
4680
4798
|
i
|
|
@@ -4695,30 +4813,30 @@ const so = 200, no = ({
|
|
|
4695
4813
|
className: p(
|
|
4696
4814
|
"flex-1",
|
|
4697
4815
|
e ? "ml-2" : "",
|
|
4698
|
-
|
|
4816
|
+
t ? "mr-2" : ""
|
|
4699
4817
|
),
|
|
4700
4818
|
children: l ? l(s) : a
|
|
4701
4819
|
}
|
|
4702
4820
|
),
|
|
4703
|
-
|
|
4821
|
+
t && /* @__PURE__ */ n.jsx(
|
|
4704
4822
|
"span",
|
|
4705
4823
|
{
|
|
4706
4824
|
className: "absolute right-2.5 top-0 bottom-0 pointer-events-none text-gray-500 flex items-center justify-center w-5",
|
|
4707
4825
|
"data-testid": "right-content",
|
|
4708
|
-
children:
|
|
4826
|
+
children: t
|
|
4709
4827
|
}
|
|
4710
4828
|
)
|
|
4711
4829
|
]
|
|
4712
4830
|
}
|
|
4713
4831
|
)
|
|
4714
4832
|
);
|
|
4715
|
-
|
|
4716
|
-
const
|
|
4717
|
-
const e =
|
|
4833
|
+
ut.displayName = "DateSinglePickerTrigger";
|
|
4834
|
+
const gt = ee(null), Ae = () => {
|
|
4835
|
+
const e = te(gt);
|
|
4718
4836
|
if (!e)
|
|
4719
4837
|
throw new Error("useMenuContext must be used within a Menu component");
|
|
4720
4838
|
return e;
|
|
4721
|
-
},
|
|
4839
|
+
}, co = y(
|
|
4722
4840
|
// Modern, clean, accessible base style
|
|
4723
4841
|
"z-50 min-w-40 bg-neutral-50 text-black rounded-lg shadow-md border border-transparent",
|
|
4724
4842
|
{
|
|
@@ -4737,7 +4855,7 @@ const ur = ee(null), Ae = () => {
|
|
|
4737
4855
|
size: "md"
|
|
4738
4856
|
}
|
|
4739
4857
|
}
|
|
4740
|
-
),
|
|
4858
|
+
), uo = y(
|
|
4741
4859
|
"w-full text-left px-4 rounded-md cursor-pointer transition-colors duration-150 font-medium select-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-coral/70 hover:bg-slate-100 active:bg-slate-200 disabled:opacity-50 disabled:cursor-not-allowed",
|
|
4742
4860
|
{
|
|
4743
4861
|
variants: {
|
|
@@ -4755,26 +4873,26 @@ const ur = ee(null), Ae = () => {
|
|
|
4755
4873
|
size: "md"
|
|
4756
4874
|
}
|
|
4757
4875
|
}
|
|
4758
|
-
),
|
|
4759
|
-
({ children: e, ...
|
|
4876
|
+
), go = E(
|
|
4877
|
+
({ children: e, ...t }, r) => {
|
|
4760
4878
|
const { open: o, triggerRef: s } = Ae();
|
|
4761
4879
|
return /* @__PURE__ */ n.jsx(
|
|
4762
4880
|
"button",
|
|
4763
4881
|
{
|
|
4764
4882
|
ref: (a) => {
|
|
4765
|
-
s.current = a, typeof
|
|
4883
|
+
s.current = a, typeof r == "function" ? r(a) : r && (r.current = a);
|
|
4766
4884
|
},
|
|
4767
4885
|
"aria-haspopup": "menu",
|
|
4768
4886
|
"aria-expanded": o,
|
|
4769
4887
|
"aria-controls": "menu-content",
|
|
4770
4888
|
type: "button",
|
|
4771
|
-
...
|
|
4889
|
+
...t,
|
|
4772
4890
|
children: e
|
|
4773
4891
|
}
|
|
4774
4892
|
);
|
|
4775
4893
|
}
|
|
4776
|
-
),
|
|
4777
|
-
({ children: e, className:
|
|
4894
|
+
), fo = E(
|
|
4895
|
+
({ children: e, className: t, ...r }, o) => {
|
|
4778
4896
|
const { open: s, contentRef: a, triggerRef: l, size: i } = Ae(), c = Ee();
|
|
4779
4897
|
let d = 0, f = 0;
|
|
4780
4898
|
if (l.current) {
|
|
@@ -4792,25 +4910,25 @@ const ur = ee(null), Ae = () => {
|
|
|
4792
4910
|
tabIndex: -1,
|
|
4793
4911
|
"aria-hidden": !s,
|
|
4794
4912
|
className: p(
|
|
4795
|
-
|
|
4913
|
+
co({
|
|
4796
4914
|
size: i
|
|
4797
4915
|
}),
|
|
4798
4916
|
"absolute z-50 transition-opacity duration-150 ease-out",
|
|
4799
4917
|
s ? "opacity-100" : "opacity-0",
|
|
4800
|
-
|
|
4918
|
+
t
|
|
4801
4919
|
),
|
|
4802
4920
|
style: {
|
|
4803
4921
|
minWidth: l.current?.offsetWidth,
|
|
4804
4922
|
top: d,
|
|
4805
4923
|
left: f
|
|
4806
4924
|
},
|
|
4807
|
-
...
|
|
4925
|
+
...r,
|
|
4808
4926
|
children: s && e
|
|
4809
4927
|
}
|
|
4810
4928
|
);
|
|
4811
4929
|
}
|
|
4812
|
-
),
|
|
4813
|
-
({ children: e, disabled:
|
|
4930
|
+
), bo = E(
|
|
4931
|
+
({ children: e, disabled: t, className: r, ...o }, s) => {
|
|
4814
4932
|
const { size: a } = Ae();
|
|
4815
4933
|
return /* @__PURE__ */ n.jsx(
|
|
4816
4934
|
"button",
|
|
@@ -4818,13 +4936,13 @@ const ur = ee(null), Ae = () => {
|
|
|
4818
4936
|
ref: s,
|
|
4819
4937
|
role: "menuitem",
|
|
4820
4938
|
tabIndex: 0,
|
|
4821
|
-
disabled:
|
|
4822
|
-
"aria-disabled":
|
|
4939
|
+
disabled: t,
|
|
4940
|
+
"aria-disabled": t,
|
|
4823
4941
|
className: p(
|
|
4824
|
-
|
|
4942
|
+
uo({
|
|
4825
4943
|
size: a
|
|
4826
4944
|
}),
|
|
4827
|
-
|
|
4945
|
+
r
|
|
4828
4946
|
),
|
|
4829
4947
|
...o,
|
|
4830
4948
|
children: e
|
|
@@ -4832,93 +4950,93 @@ const ur = ee(null), Ae = () => {
|
|
|
4832
4950
|
);
|
|
4833
4951
|
}
|
|
4834
4952
|
);
|
|
4835
|
-
function
|
|
4836
|
-
|
|
4953
|
+
function mo(e, t, r, o) {
|
|
4954
|
+
J(() => {
|
|
4837
4955
|
if (!e) return;
|
|
4838
4956
|
function s(a) {
|
|
4839
|
-
!
|
|
4957
|
+
!t.current?.contains(a.target) && !r.current?.contains(a.target) && o();
|
|
4840
4958
|
}
|
|
4841
4959
|
return document.addEventListener("mousedown", s), () => document.removeEventListener("mousedown", s);
|
|
4842
|
-
}, [e, o,
|
|
4960
|
+
}, [e, o, t, r]);
|
|
4843
4961
|
}
|
|
4844
|
-
function
|
|
4845
|
-
|
|
4846
|
-
if (e &&
|
|
4847
|
-
const
|
|
4848
|
-
|
|
4962
|
+
function ho(e, t) {
|
|
4963
|
+
J(() => {
|
|
4964
|
+
if (e && t.current) {
|
|
4965
|
+
const r = t.current.querySelectorAll('[role="menuitem"]');
|
|
4966
|
+
r.length && r[0].focus();
|
|
4849
4967
|
}
|
|
4850
|
-
}, [e,
|
|
4968
|
+
}, [e, t]);
|
|
4851
4969
|
}
|
|
4852
|
-
function
|
|
4853
|
-
|
|
4854
|
-
if (!e || !
|
|
4855
|
-
const s =
|
|
4970
|
+
function xo(e, t, r, o) {
|
|
4971
|
+
J(() => {
|
|
4972
|
+
if (!e || !t.current) return;
|
|
4973
|
+
const s = t.current;
|
|
4856
4974
|
function a(l) {
|
|
4857
4975
|
const i = Array.from(
|
|
4858
4976
|
s.querySelectorAll('[role="menuitem"]')
|
|
4859
4977
|
), c = document.activeElement, d = i.indexOf(c);
|
|
4860
|
-
l.key === "ArrowDown" ? (l.preventDefault(), i.length && i[(d + 1) % i.length].focus()) : l.key === "ArrowUp" ? (l.preventDefault(), i.length && i[(d - 1 + i.length) % i.length].focus()) : l.key === "Home" ? (l.preventDefault(), i.length && i[0].focus()) : l.key === "End" ? (l.preventDefault(), i.length && i[i.length - 1].focus()) : l.key === "Escape" && (l.preventDefault(), o(),
|
|
4978
|
+
l.key === "ArrowDown" ? (l.preventDefault(), i.length && i[(d + 1) % i.length].focus()) : l.key === "ArrowUp" ? (l.preventDefault(), i.length && i[(d - 1 + i.length) % i.length].focus()) : l.key === "Home" ? (l.preventDefault(), i.length && i[0].focus()) : l.key === "End" ? (l.preventDefault(), i.length && i[i.length - 1].focus()) : l.key === "Escape" && (l.preventDefault(), o(), r.current?.focus());
|
|
4861
4979
|
}
|
|
4862
4980
|
return s.addEventListener("keydown", a), () => s.removeEventListener("keydown", a);
|
|
4863
|
-
}, [e, o,
|
|
4981
|
+
}, [e, o, t, r]);
|
|
4864
4982
|
}
|
|
4865
|
-
const
|
|
4983
|
+
const po = ({
|
|
4866
4984
|
children: e,
|
|
4867
|
-
isOpen:
|
|
4868
|
-
onOutsideClick:
|
|
4985
|
+
isOpen: t,
|
|
4986
|
+
onOutsideClick: r,
|
|
4869
4987
|
size: o = "md"
|
|
4870
4988
|
}) => {
|
|
4871
4989
|
const s = ce(null), a = ce(null);
|
|
4872
|
-
return
|
|
4873
|
-
|
|
4990
|
+
return mo(t, a, s, r), ho(t, a), xo(t, a, s, r), /* @__PURE__ */ n.jsx(
|
|
4991
|
+
gt.Provider,
|
|
4874
4992
|
{
|
|
4875
|
-
value: { open:
|
|
4993
|
+
value: { open: t, triggerRef: s, contentRef: a, size: o },
|
|
4876
4994
|
children: e
|
|
4877
4995
|
}
|
|
4878
4996
|
);
|
|
4879
|
-
}, Ie = Object.assign(
|
|
4880
|
-
Trigger:
|
|
4881
|
-
Content:
|
|
4882
|
-
Item:
|
|
4883
|
-
}),
|
|
4997
|
+
}, Ie = Object.assign(po, {
|
|
4998
|
+
Trigger: go,
|
|
4999
|
+
Content: fo,
|
|
5000
|
+
Item: bo
|
|
5001
|
+
}), vo = ({
|
|
4884
5002
|
open: e,
|
|
4885
|
-
value:
|
|
4886
|
-
onChange:
|
|
5003
|
+
value: t,
|
|
5004
|
+
onChange: r,
|
|
4887
5005
|
handleMenuClose: o
|
|
4888
5006
|
}) => /* @__PURE__ */ n.jsxs(Ie, { isOpen: e, onOutsideClick: o, children: [
|
|
4889
5007
|
/* @__PURE__ */ n.jsx(Ie.Trigger, { className: "absolute top-[90%] left-0", children: /* @__PURE__ */ n.jsx("span", { "aria-hidden": "true" }) }),
|
|
4890
|
-
/* @__PURE__ */ n.jsx(Ie.Content, { className: "drop-shadow-lg rounded-lg bg-white border border-neutral", children: /* @__PURE__ */ n.jsx(
|
|
4891
|
-
] }),
|
|
5008
|
+
/* @__PURE__ */ n.jsx(Ie.Content, { className: "drop-shadow-lg rounded-lg bg-white border border-neutral", children: /* @__PURE__ */ n.jsx(st, { value: t, onChange: r }) })
|
|
5009
|
+
] }), wo = ({
|
|
4892
5010
|
open: e,
|
|
4893
|
-
setOpen:
|
|
4894
|
-
value:
|
|
5011
|
+
setOpen: t,
|
|
5012
|
+
value: r,
|
|
4895
5013
|
onChange: o,
|
|
4896
5014
|
label: s,
|
|
4897
5015
|
buttonRef: a
|
|
4898
5016
|
}) => {
|
|
4899
|
-
const [l, i] =
|
|
4900
|
-
|
|
5017
|
+
const [l, i] = H(
|
|
5018
|
+
r
|
|
4901
5019
|
);
|
|
4902
|
-
|
|
4903
|
-
i(
|
|
4904
|
-
}, [
|
|
5020
|
+
J(() => {
|
|
5021
|
+
i(r);
|
|
5022
|
+
}, [r, e]);
|
|
4905
5023
|
const c = () => {
|
|
4906
|
-
|
|
5024
|
+
t(!1), i(r), a.current?.focus();
|
|
4907
5025
|
}, d = () => {
|
|
4908
|
-
l && (o(l),
|
|
5026
|
+
l && (o(l), t(!1), a.current?.focus());
|
|
4909
5027
|
};
|
|
4910
5028
|
return /* @__PURE__ */ n.jsxs(
|
|
4911
5029
|
ze,
|
|
4912
5030
|
{
|
|
4913
5031
|
isOpen: e,
|
|
4914
|
-
onOpenChange:
|
|
5032
|
+
onOpenChange: t,
|
|
4915
5033
|
placement: "top",
|
|
4916
5034
|
size: "md",
|
|
4917
5035
|
"aria-label": s ? String(s) : "Select date",
|
|
4918
5036
|
disableOverlayClose: !1,
|
|
4919
5037
|
disableEscClose: !1,
|
|
4920
5038
|
children: [
|
|
4921
|
-
/* @__PURE__ */ n.jsx(ze.Body, { className: "px-2", children: /* @__PURE__ */ n.jsx(
|
|
5039
|
+
/* @__PURE__ */ n.jsx(ze.Body, { className: "px-2", children: /* @__PURE__ */ n.jsx(st, { value: l, onChange: i }) }),
|
|
4922
5040
|
/* @__PURE__ */ n.jsxs(ze.Footer, { className: "px-6", children: [
|
|
4923
5041
|
/* @__PURE__ */ n.jsx(
|
|
4924
5042
|
Ge,
|
|
@@ -4946,29 +5064,29 @@ const ho = ({
|
|
|
4946
5064
|
}
|
|
4947
5065
|
);
|
|
4948
5066
|
};
|
|
4949
|
-
function
|
|
4950
|
-
const [
|
|
5067
|
+
function yo({ id: e }) {
|
|
5068
|
+
const [t, r] = H(!1), o = Ee(), s = e || o, a = ce(null), l = ke(
|
|
4951
5069
|
(c) => {
|
|
4952
|
-
(c.key === "ArrowDown" || c.key === "Enter" || c.key === " ") &&
|
|
5070
|
+
(c.key === "ArrowDown" || c.key === "Enter" || c.key === " ") && r(!0);
|
|
4953
5071
|
},
|
|
4954
5072
|
[]
|
|
4955
5073
|
), i = ke(() => {
|
|
4956
|
-
|
|
5074
|
+
r(!1), a.current?.focus();
|
|
4957
5075
|
}, []);
|
|
4958
5076
|
return {
|
|
4959
|
-
open:
|
|
4960
|
-
setOpen:
|
|
5077
|
+
open: t,
|
|
5078
|
+
setOpen: r,
|
|
4961
5079
|
inputId: s,
|
|
4962
5080
|
buttonRef: a,
|
|
4963
5081
|
handleKeyDown: l,
|
|
4964
5082
|
handleMenuClose: i
|
|
4965
5083
|
};
|
|
4966
5084
|
}
|
|
4967
|
-
const
|
|
5085
|
+
const qs = I.forwardRef(
|
|
4968
5086
|
({
|
|
4969
5087
|
value: e,
|
|
4970
|
-
onChange:
|
|
4971
|
-
label:
|
|
5088
|
+
onChange: t,
|
|
5089
|
+
label: r,
|
|
4972
5090
|
leftContent: o,
|
|
4973
5091
|
rightContent: s,
|
|
4974
5092
|
helperText: a,
|
|
@@ -4980,7 +5098,7 @@ const Ys = I.forwardRef(
|
|
|
4980
5098
|
type: g = "docked",
|
|
4981
5099
|
...b
|
|
4982
5100
|
}, m) => {
|
|
4983
|
-
if (e === void 0 || typeof
|
|
5101
|
+
if (e === void 0 || typeof t != "function")
|
|
4984
5102
|
throw new Error(
|
|
4985
5103
|
"DateSinglePickerInput is a controlled component: value and onChange are required."
|
|
4986
5104
|
);
|
|
@@ -4991,25 +5109,25 @@ const Ys = I.forwardRef(
|
|
|
4991
5109
|
buttonRef: R,
|
|
4992
5110
|
handleKeyDown: A,
|
|
4993
5111
|
handleMenuClose: N
|
|
4994
|
-
} =
|
|
5112
|
+
} = yo({ id: f }), M = !!l, F = (_) => _ ? _.toLocaleDateString(void 0, {
|
|
4995
5113
|
year: "numeric",
|
|
4996
5114
|
month: "short",
|
|
4997
5115
|
day: "numeric"
|
|
4998
|
-
}) : typeof d == "string" ? d : "Select date", L = (_) => typeof b.formatDate == "function" ? b.formatDate(_) : F(_),
|
|
4999
|
-
|
|
5116
|
+
}) : typeof d == "string" ? d : "Select date", L = (_) => typeof b.formatDate == "function" ? b.formatDate(_) : F(_), Y = () => w((_) => !_), j = A, G = (_) => {
|
|
5117
|
+
t?.(_), R.current?.focus();
|
|
5000
5118
|
};
|
|
5001
5119
|
return /* @__PURE__ */ n.jsxs("div", { className: "relative w-full", children: [
|
|
5002
5120
|
/* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
|
|
5003
|
-
|
|
5121
|
+
r && /* @__PURE__ */ n.jsx(
|
|
5004
5122
|
"label",
|
|
5005
5123
|
{
|
|
5006
5124
|
htmlFor: C,
|
|
5007
5125
|
className: "block text-sm font-medium text-foreground mb-2",
|
|
5008
|
-
children:
|
|
5126
|
+
children: r
|
|
5009
5127
|
}
|
|
5010
5128
|
),
|
|
5011
5129
|
/* @__PURE__ */ n.jsx(
|
|
5012
|
-
|
|
5130
|
+
ut,
|
|
5013
5131
|
{
|
|
5014
5132
|
ref: (_) => {
|
|
5015
5133
|
R.current = _, typeof m == "function" ? m(_) : m && (m.current = _);
|
|
@@ -5028,7 +5146,7 @@ const Ys = I.forwardRef(
|
|
|
5028
5146
|
value: e,
|
|
5029
5147
|
placeholder: typeof d == "string" ? d : "Select date",
|
|
5030
5148
|
formatDate: L,
|
|
5031
|
-
onClick:
|
|
5149
|
+
onClick: Y,
|
|
5032
5150
|
onKeyDown: j,
|
|
5033
5151
|
tabIndex: 0,
|
|
5034
5152
|
...b
|
|
@@ -5038,7 +5156,7 @@ const Ys = I.forwardRef(
|
|
|
5038
5156
|
a && /* @__PURE__ */ n.jsx("div", { className: "mt-1 text-sm text-muted-foreground", children: a })
|
|
5039
5157
|
] }),
|
|
5040
5158
|
g === "docked" ? /* @__PURE__ */ n.jsx(
|
|
5041
|
-
|
|
5159
|
+
vo,
|
|
5042
5160
|
{
|
|
5043
5161
|
open: v,
|
|
5044
5162
|
value: e,
|
|
@@ -5047,28 +5165,28 @@ const Ys = I.forwardRef(
|
|
|
5047
5165
|
handleMenuClose: N
|
|
5048
5166
|
}
|
|
5049
5167
|
) : /* @__PURE__ */ n.jsx(
|
|
5050
|
-
|
|
5168
|
+
wo,
|
|
5051
5169
|
{
|
|
5052
5170
|
open: v,
|
|
5053
5171
|
setOpen: w,
|
|
5054
5172
|
value: e,
|
|
5055
5173
|
onChange: G,
|
|
5056
|
-
label: typeof
|
|
5174
|
+
label: typeof r == "string" ? r : void 0,
|
|
5057
5175
|
buttonRef: R
|
|
5058
5176
|
}
|
|
5059
5177
|
)
|
|
5060
5178
|
] });
|
|
5061
5179
|
}
|
|
5062
|
-
),
|
|
5180
|
+
), ft = ee(null);
|
|
5063
5181
|
function je() {
|
|
5064
|
-
const e =
|
|
5182
|
+
const e = te(ft);
|
|
5065
5183
|
if (!e)
|
|
5066
5184
|
throw new Error(
|
|
5067
5185
|
"Drawer components must be used within a DrawerRoot component"
|
|
5068
5186
|
);
|
|
5069
5187
|
return e;
|
|
5070
5188
|
}
|
|
5071
|
-
const
|
|
5189
|
+
const ko = y(
|
|
5072
5190
|
"fixed inset-0 z-50 transition-opacity duration-300 bg-black/30 backdrop-blur-md",
|
|
5073
5191
|
{
|
|
5074
5192
|
variants: {
|
|
@@ -5081,7 +5199,7 @@ const wo = y(
|
|
|
5081
5199
|
state: "closed"
|
|
5082
5200
|
}
|
|
5083
5201
|
}
|
|
5084
|
-
),
|
|
5202
|
+
), jo = y(
|
|
5085
5203
|
"fixed z-50 shadow-xl transition-transform duration-300 ease-in-out flex flex-col",
|
|
5086
5204
|
{
|
|
5087
5205
|
variants: {
|
|
@@ -5108,7 +5226,7 @@ const wo = y(
|
|
|
5108
5226
|
variant: "default"
|
|
5109
5227
|
}
|
|
5110
5228
|
}
|
|
5111
|
-
),
|
|
5229
|
+
), No = y("flex-shrink-0 px-6 py-4 border-b", {
|
|
5112
5230
|
variants: {
|
|
5113
5231
|
variant: {
|
|
5114
5232
|
default: "bg-white border-gray-200",
|
|
@@ -5118,7 +5236,7 @@ const wo = y(
|
|
|
5118
5236
|
defaultVariants: {
|
|
5119
5237
|
variant: "default"
|
|
5120
5238
|
}
|
|
5121
|
-
}),
|
|
5239
|
+
}), Co = y("flex-1 overflow-y-auto px-6 py-4", {
|
|
5122
5240
|
variants: {
|
|
5123
5241
|
variant: {
|
|
5124
5242
|
default: "bg-white",
|
|
@@ -5128,7 +5246,7 @@ const wo = y(
|
|
|
5128
5246
|
defaultVariants: {
|
|
5129
5247
|
variant: "default"
|
|
5130
5248
|
}
|
|
5131
|
-
}),
|
|
5249
|
+
}), zo = y("flex-shrink-0 px-6 py-4 border-t", {
|
|
5132
5250
|
variants: {
|
|
5133
5251
|
variant: {
|
|
5134
5252
|
default: "bg-white border-gray-200",
|
|
@@ -5143,70 +5261,70 @@ const wo = y(
|
|
|
5143
5261
|
variant: "default",
|
|
5144
5262
|
responsiveFlex: !0
|
|
5145
5263
|
}
|
|
5146
|
-
}),
|
|
5264
|
+
}), Io = I.forwardRef(({ className: e, ...t }, r) => {
|
|
5147
5265
|
const { isOpen: o, onClose: s } = je(), a = () => {
|
|
5148
5266
|
s();
|
|
5149
5267
|
};
|
|
5150
5268
|
return /* @__PURE__ */ n.jsx(
|
|
5151
5269
|
"div",
|
|
5152
5270
|
{
|
|
5153
|
-
ref:
|
|
5271
|
+
ref: r,
|
|
5154
5272
|
onClick: a,
|
|
5155
5273
|
className: p(
|
|
5156
|
-
|
|
5274
|
+
ko({
|
|
5157
5275
|
state: o ? "open" : "closed"
|
|
5158
5276
|
}),
|
|
5159
5277
|
e
|
|
5160
5278
|
),
|
|
5161
|
-
...
|
|
5279
|
+
...t
|
|
5162
5280
|
}
|
|
5163
5281
|
);
|
|
5164
|
-
}),
|
|
5165
|
-
({ children: e, className:
|
|
5282
|
+
}), So = I.forwardRef(
|
|
5283
|
+
({ children: e, className: t, ...r }, o) => {
|
|
5166
5284
|
const { variant: s } = je();
|
|
5167
5285
|
return /* @__PURE__ */ n.jsx(
|
|
5168
5286
|
"div",
|
|
5169
5287
|
{
|
|
5170
5288
|
ref: o,
|
|
5171
|
-
className: p(
|
|
5172
|
-
...
|
|
5289
|
+
className: p(No({ variant: s }), t),
|
|
5290
|
+
...r,
|
|
5173
5291
|
children: e
|
|
5174
5292
|
}
|
|
5175
5293
|
);
|
|
5176
5294
|
}
|
|
5177
|
-
),
|
|
5178
|
-
({ children: e, className:
|
|
5295
|
+
), Ro = I.forwardRef(
|
|
5296
|
+
({ children: e, className: t, ...r }, o) => {
|
|
5179
5297
|
const { variant: s } = je();
|
|
5180
5298
|
return /* @__PURE__ */ n.jsx(
|
|
5181
5299
|
"div",
|
|
5182
5300
|
{
|
|
5183
5301
|
ref: o,
|
|
5184
|
-
className: p(
|
|
5185
|
-
...
|
|
5302
|
+
className: p(Co({ variant: s }), t),
|
|
5303
|
+
...r,
|
|
5186
5304
|
children: e
|
|
5187
5305
|
}
|
|
5188
5306
|
);
|
|
5189
5307
|
}
|
|
5190
|
-
),
|
|
5191
|
-
({ children: e, className:
|
|
5308
|
+
), Vo = I.forwardRef(
|
|
5309
|
+
({ children: e, className: t, responsiveFlex: r = !0, ...o }, s) => {
|
|
5192
5310
|
const { variant: a } = je();
|
|
5193
5311
|
return /* @__PURE__ */ n.jsx(
|
|
5194
5312
|
"div",
|
|
5195
5313
|
{
|
|
5196
5314
|
ref: s,
|
|
5197
5315
|
className: p(
|
|
5198
|
-
|
|
5199
|
-
|
|
5316
|
+
zo({ variant: a, responsiveFlex: r }),
|
|
5317
|
+
t
|
|
5200
5318
|
),
|
|
5201
5319
|
...o,
|
|
5202
5320
|
children: e
|
|
5203
5321
|
}
|
|
5204
5322
|
);
|
|
5205
5323
|
}
|
|
5206
|
-
),
|
|
5324
|
+
), Eo = ({
|
|
5207
5325
|
children: e,
|
|
5208
|
-
isOpen:
|
|
5209
|
-
onClose:
|
|
5326
|
+
isOpen: t,
|
|
5327
|
+
onClose: r,
|
|
5210
5328
|
position: o = "right",
|
|
5211
5329
|
size: s = "md",
|
|
5212
5330
|
variant: a = "default",
|
|
@@ -5214,58 +5332,58 @@ const wo = y(
|
|
|
5214
5332
|
...i
|
|
5215
5333
|
}) => {
|
|
5216
5334
|
const c = ke(() => {
|
|
5217
|
-
|
|
5218
|
-
}, [
|
|
5219
|
-
isOpen:
|
|
5335
|
+
r(!1);
|
|
5336
|
+
}, [r]), d = {
|
|
5337
|
+
isOpen: t,
|
|
5220
5338
|
onClose: c,
|
|
5221
5339
|
position: o,
|
|
5222
5340
|
size: s,
|
|
5223
5341
|
variant: a
|
|
5224
5342
|
};
|
|
5225
|
-
return
|
|
5343
|
+
return J(() => {
|
|
5226
5344
|
const f = (g) => {
|
|
5227
|
-
g.key === "Escape" &&
|
|
5345
|
+
g.key === "Escape" && t && c();
|
|
5228
5346
|
};
|
|
5229
|
-
return
|
|
5347
|
+
return t && (document.addEventListener("keydown", f), document.body.style.overflow = "hidden"), () => {
|
|
5230
5348
|
document.removeEventListener("keydown", f), document.body.style.overflow = "unset";
|
|
5231
5349
|
};
|
|
5232
|
-
}, [
|
|
5350
|
+
}, [t, c]), /* @__PURE__ */ n.jsx(ft.Provider, { value: d, children: /* @__PURE__ */ n.jsxs(
|
|
5233
5351
|
"div",
|
|
5234
5352
|
{
|
|
5235
5353
|
className: p(
|
|
5236
5354
|
"fixed z-50 inset-0 pointer-events-none",
|
|
5237
|
-
|
|
5355
|
+
t && "pointer-events-auto"
|
|
5238
5356
|
),
|
|
5239
5357
|
children: [
|
|
5240
|
-
/* @__PURE__ */ n.jsx(
|
|
5358
|
+
/* @__PURE__ */ n.jsx(Io, {}),
|
|
5241
5359
|
/* @__PURE__ */ n.jsx(
|
|
5242
5360
|
"div",
|
|
5243
5361
|
{
|
|
5244
|
-
role:
|
|
5245
|
-
"aria-modal":
|
|
5362
|
+
role: t ? "dialog" : void 0,
|
|
5363
|
+
"aria-modal": t ? "true" : void 0,
|
|
5246
5364
|
className: p(
|
|
5247
|
-
|
|
5365
|
+
jo({
|
|
5248
5366
|
position: o,
|
|
5249
5367
|
size: s,
|
|
5250
5368
|
variant: a
|
|
5251
5369
|
}),
|
|
5252
5370
|
// Apply closed transform when not open
|
|
5253
|
-
!
|
|
5254
|
-
!
|
|
5371
|
+
!t && o === "left" && "-translate-x-full",
|
|
5372
|
+
!t && o === "right" && "translate-x-full",
|
|
5255
5373
|
l
|
|
5256
5374
|
),
|
|
5257
5375
|
...i,
|
|
5258
|
-
children:
|
|
5376
|
+
children: t && e
|
|
5259
5377
|
}
|
|
5260
5378
|
)
|
|
5261
5379
|
]
|
|
5262
5380
|
}
|
|
5263
5381
|
) });
|
|
5264
|
-
},
|
|
5265
|
-
Header:
|
|
5266
|
-
Body:
|
|
5267
|
-
Footer:
|
|
5268
|
-
}),
|
|
5382
|
+
}, Us = Object.assign(Eo, {
|
|
5383
|
+
Header: So,
|
|
5384
|
+
Body: Ro,
|
|
5385
|
+
Footer: Vo
|
|
5386
|
+
}), To = y("space-y-2", {
|
|
5269
5387
|
variants: {
|
|
5270
5388
|
direction: {
|
|
5271
5389
|
vertical: "space-y-2 space-x-0",
|
|
@@ -5275,7 +5393,7 @@ const wo = y(
|
|
|
5275
5393
|
defaultVariants: {
|
|
5276
5394
|
direction: "vertical"
|
|
5277
5395
|
}
|
|
5278
|
-
}),
|
|
5396
|
+
}), Ao = y(
|
|
5279
5397
|
"relative h-4 w-4 rounded-full border cursor-pointer transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed appearance-none bg-white",
|
|
5280
5398
|
{
|
|
5281
5399
|
variants: {
|
|
@@ -5313,7 +5431,7 @@ const wo = y(
|
|
|
5313
5431
|
size: "md"
|
|
5314
5432
|
}
|
|
5315
5433
|
}
|
|
5316
|
-
),
|
|
5434
|
+
), Mo = y(
|
|
5317
5435
|
"text-foreground cursor-pointer select-none",
|
|
5318
5436
|
{
|
|
5319
5437
|
variants: {
|
|
@@ -5332,18 +5450,18 @@ const wo = y(
|
|
|
5332
5450
|
disabled: !1
|
|
5333
5451
|
}
|
|
5334
5452
|
}
|
|
5335
|
-
),
|
|
5453
|
+
), bt = ee(
|
|
5336
5454
|
null
|
|
5337
|
-
),
|
|
5338
|
-
const e =
|
|
5455
|
+
), Po = () => {
|
|
5456
|
+
const e = te(bt);
|
|
5339
5457
|
if (!e)
|
|
5340
5458
|
throw new Error(
|
|
5341
5459
|
"useRadioInputContext must be used within RadioInputContext"
|
|
5342
5460
|
);
|
|
5343
5461
|
return e;
|
|
5344
|
-
},
|
|
5345
|
-
({ children: e, description:
|
|
5346
|
-
const c =
|
|
5462
|
+
}, Oo = I.forwardRef(
|
|
5463
|
+
({ children: e, description: t, className: r, disabled: o, id: s, value: a, ...l }, i) => {
|
|
5464
|
+
const c = Po(), d = I.useId(), f = s || d, g = o || c.disabled, b = c.error ? "danger" : c.variant || "primary";
|
|
5347
5465
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
5348
5466
|
/* @__PURE__ */ n.jsx("div", { className: "relative flex items-center", children: /* @__PURE__ */ n.jsx(
|
|
5349
5467
|
"input",
|
|
@@ -5355,7 +5473,7 @@ const wo = y(
|
|
|
5355
5473
|
value: a,
|
|
5356
5474
|
disabled: g,
|
|
5357
5475
|
className: p(
|
|
5358
|
-
|
|
5476
|
+
Ao({
|
|
5359
5477
|
variant: b,
|
|
5360
5478
|
size: c.size
|
|
5361
5479
|
}),
|
|
@@ -5368,7 +5486,7 @@ const wo = y(
|
|
|
5368
5486
|
"checked:before:opacity-100",
|
|
5369
5487
|
// Outline variants use colored radio dot
|
|
5370
5488
|
b?.includes("outline") && "checked:before:bg-current",
|
|
5371
|
-
|
|
5489
|
+
r
|
|
5372
5490
|
),
|
|
5373
5491
|
...l
|
|
5374
5492
|
}
|
|
@@ -5378,14 +5496,14 @@ const wo = y(
|
|
|
5378
5496
|
"label",
|
|
5379
5497
|
{
|
|
5380
5498
|
htmlFor: f,
|
|
5381
|
-
className:
|
|
5499
|
+
className: Mo({
|
|
5382
5500
|
size: c.size,
|
|
5383
5501
|
disabled: g
|
|
5384
5502
|
}),
|
|
5385
5503
|
children: e
|
|
5386
5504
|
}
|
|
5387
5505
|
),
|
|
5388
|
-
|
|
5506
|
+
t && /* @__PURE__ */ n.jsx(
|
|
5389
5507
|
"div",
|
|
5390
5508
|
{
|
|
5391
5509
|
className: p(
|
|
@@ -5395,17 +5513,17 @@ const wo = y(
|
|
|
5395
5513
|
c.size === "lg" && "text-sm",
|
|
5396
5514
|
g && "opacity-50"
|
|
5397
5515
|
),
|
|
5398
|
-
children:
|
|
5516
|
+
children: t
|
|
5399
5517
|
}
|
|
5400
5518
|
)
|
|
5401
5519
|
] })
|
|
5402
5520
|
] });
|
|
5403
5521
|
}
|
|
5404
|
-
),
|
|
5522
|
+
), Bo = I.forwardRef(
|
|
5405
5523
|
({
|
|
5406
5524
|
variant: e = "primary",
|
|
5407
|
-
size:
|
|
5408
|
-
label:
|
|
5525
|
+
size: t = "md",
|
|
5526
|
+
label: r,
|
|
5409
5527
|
helperText: o,
|
|
5410
5528
|
error: s,
|
|
5411
5529
|
direction: a = "vertical",
|
|
@@ -5417,21 +5535,21 @@ const wo = y(
|
|
|
5417
5535
|
}, g) => {
|
|
5418
5536
|
const b = !!s, m = {
|
|
5419
5537
|
variant: e,
|
|
5420
|
-
size:
|
|
5538
|
+
size: t,
|
|
5421
5539
|
disabled: i,
|
|
5422
5540
|
error: b,
|
|
5423
5541
|
name: c
|
|
5424
5542
|
};
|
|
5425
|
-
return /* @__PURE__ */ n.jsx(
|
|
5426
|
-
|
|
5427
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
5543
|
+
return /* @__PURE__ */ n.jsx(bt.Provider, { value: m, children: /* @__PURE__ */ n.jsxs("div", { ref: g, className: p("w-full", l), ...f, children: [
|
|
5544
|
+
r && /* @__PURE__ */ n.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: r }),
|
|
5545
|
+
/* @__PURE__ */ n.jsx("div", { className: To({ direction: a }), children: d }),
|
|
5428
5546
|
b && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: s }),
|
|
5429
5547
|
!b && o && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-gray-600", children: o })
|
|
5430
5548
|
] }) });
|
|
5431
5549
|
}
|
|
5432
|
-
),
|
|
5433
|
-
Option:
|
|
5434
|
-
}),
|
|
5550
|
+
), Hs = Object.assign(Bo, {
|
|
5551
|
+
Option: Oo
|
|
5552
|
+
}), Do = y(
|
|
5435
5553
|
"inline-flex rounded-lg border overflow-hidden bg-neutral/50 p-1",
|
|
5436
5554
|
{
|
|
5437
5555
|
variants: {
|
|
@@ -5474,7 +5592,7 @@ const wo = y(
|
|
|
5474
5592
|
error: !1
|
|
5475
5593
|
}
|
|
5476
5594
|
}
|
|
5477
|
-
),
|
|
5595
|
+
), _o = y(
|
|
5478
5596
|
"relative flex flex-row items-center px-3 py-2 text-center font-medium transition-all duration-200 cursor-pointer border-0 bg-transparent outline-none focus:ring-2 focus:ring-offset-1",
|
|
5479
5597
|
{
|
|
5480
5598
|
variants: {
|
|
@@ -5519,8 +5637,8 @@ const wo = y(
|
|
|
5519
5637
|
rounded: "middle"
|
|
5520
5638
|
}
|
|
5521
5639
|
}
|
|
5522
|
-
),
|
|
5523
|
-
const
|
|
5640
|
+
), Fo = (e) => {
|
|
5641
|
+
const t = {
|
|
5524
5642
|
// Core variants - override hover text color changes
|
|
5525
5643
|
primary: "bg-coral text-white shadow-sm hover:text-white",
|
|
5526
5644
|
secondary: "bg-sage text-white shadow-sm hover:text-white",
|
|
@@ -5543,17 +5661,17 @@ const wo = y(
|
|
|
5543
5661
|
danger: "bg-danger text-white shadow-sm hover:text-white",
|
|
5544
5662
|
"danger-outline": "bg-danger text-white shadow-sm hover:text-white"
|
|
5545
5663
|
};
|
|
5546
|
-
return
|
|
5547
|
-
},
|
|
5548
|
-
const e =
|
|
5664
|
+
return t[e || "primary"] || t.primary;
|
|
5665
|
+
}, mt = ee(null), Lo = () => {
|
|
5666
|
+
const e = te(mt);
|
|
5549
5667
|
if (!e)
|
|
5550
5668
|
throw new Error(
|
|
5551
5669
|
"useSegmentSingleInputContext must be used within SegmentSingleInputContext"
|
|
5552
5670
|
);
|
|
5553
5671
|
return e;
|
|
5554
|
-
},
|
|
5555
|
-
({ children: e, className:
|
|
5556
|
-
const c =
|
|
5672
|
+
}, ht = I.forwardRef(
|
|
5673
|
+
({ children: e, className: t, disabled: r, id: o, value: s, position: a = "middle", ...l }, i) => {
|
|
5674
|
+
const c = Lo(), d = I.useId(), f = o || d, g = r || c.disabled, b = c.error ? "danger" : c.variant || "primary", m = c.value === s, v = (w) => {
|
|
5557
5675
|
if (!g) {
|
|
5558
5676
|
const C = c.value === s ? null : s;
|
|
5559
5677
|
c.onChange?.(C);
|
|
@@ -5581,17 +5699,17 @@ const wo = y(
|
|
|
5581
5699
|
{
|
|
5582
5700
|
htmlFor: f,
|
|
5583
5701
|
className: p(
|
|
5584
|
-
|
|
5702
|
+
_o({
|
|
5585
5703
|
variant: b,
|
|
5586
5704
|
size: c.size,
|
|
5587
5705
|
rounded: a
|
|
5588
5706
|
}),
|
|
5589
5707
|
// Apply selected state styling
|
|
5590
|
-
m &&
|
|
5708
|
+
m && Fo(b),
|
|
5591
5709
|
m && "relative z-10",
|
|
5592
5710
|
// Apply disabled styling directly since labels don't support disabled attribute
|
|
5593
5711
|
g && "opacity-50 cursor-not-allowed pointer-events-none",
|
|
5594
|
-
|
|
5712
|
+
t
|
|
5595
5713
|
),
|
|
5596
5714
|
children: e
|
|
5597
5715
|
}
|
|
@@ -5599,12 +5717,12 @@ const wo = y(
|
|
|
5599
5717
|
] });
|
|
5600
5718
|
}
|
|
5601
5719
|
);
|
|
5602
|
-
|
|
5603
|
-
const
|
|
5720
|
+
ht.displayName = "SegmentOption";
|
|
5721
|
+
const $o = I.forwardRef(
|
|
5604
5722
|
({
|
|
5605
5723
|
variant: e = "primary",
|
|
5606
|
-
size:
|
|
5607
|
-
label:
|
|
5724
|
+
size: t = "md",
|
|
5725
|
+
label: r,
|
|
5608
5726
|
helperText: o,
|
|
5609
5727
|
error: s,
|
|
5610
5728
|
className: a,
|
|
@@ -5617,7 +5735,7 @@ const Fo = I.forwardRef(
|
|
|
5617
5735
|
}, b) => {
|
|
5618
5736
|
const m = !!s, v = {
|
|
5619
5737
|
variant: e,
|
|
5620
|
-
size:
|
|
5738
|
+
size: t,
|
|
5621
5739
|
disabled: l,
|
|
5622
5740
|
error: m,
|
|
5623
5741
|
name: i,
|
|
@@ -5633,14 +5751,14 @@ const Fo = I.forwardRef(
|
|
|
5633
5751
|
}
|
|
5634
5752
|
return R;
|
|
5635
5753
|
});
|
|
5636
|
-
return /* @__PURE__ */ n.jsx(
|
|
5637
|
-
|
|
5754
|
+
return /* @__PURE__ */ n.jsx(mt.Provider, { value: v, children: /* @__PURE__ */ n.jsxs("div", { ref: b, className: p("w-full", a), ...g, children: [
|
|
5755
|
+
r && /* @__PURE__ */ n.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: r }),
|
|
5638
5756
|
/* @__PURE__ */ n.jsx(
|
|
5639
5757
|
"div",
|
|
5640
5758
|
{
|
|
5641
|
-
className:
|
|
5759
|
+
className: Do({
|
|
5642
5760
|
variant: m ? "danger" : e,
|
|
5643
|
-
size:
|
|
5761
|
+
size: t,
|
|
5644
5762
|
error: m
|
|
5645
5763
|
}),
|
|
5646
5764
|
children: C
|
|
@@ -5650,9 +5768,9 @@ const Fo = I.forwardRef(
|
|
|
5650
5768
|
!m && o && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-gray-600", children: o })
|
|
5651
5769
|
] }) });
|
|
5652
5770
|
}
|
|
5653
|
-
),
|
|
5654
|
-
Option:
|
|
5655
|
-
}),
|
|
5771
|
+
), Js = Object.assign($o, {
|
|
5772
|
+
Option: ht
|
|
5773
|
+
}), Go = y(
|
|
5656
5774
|
"inline-flex rounded-lg border overflow-hidden bg-neutral/50 p-1",
|
|
5657
5775
|
{
|
|
5658
5776
|
variants: {
|
|
@@ -5695,7 +5813,7 @@ const Fo = I.forwardRef(
|
|
|
5695
5813
|
error: !1
|
|
5696
5814
|
}
|
|
5697
5815
|
}
|
|
5698
|
-
),
|
|
5816
|
+
), Wo = y(
|
|
5699
5817
|
"relative flex flex-row items-center px-3 py-2 text-center font-medium transition-all duration-200 cursor-pointer border-0 bg-transparent outline-none focus:ring-2 focus:ring-offset-1",
|
|
5700
5818
|
{
|
|
5701
5819
|
variants: {
|
|
@@ -5740,8 +5858,8 @@ const Fo = I.forwardRef(
|
|
|
5740
5858
|
rounded: "middle"
|
|
5741
5859
|
}
|
|
5742
5860
|
}
|
|
5743
|
-
),
|
|
5744
|
-
const
|
|
5861
|
+
), Yo = (e) => {
|
|
5862
|
+
const t = {
|
|
5745
5863
|
// Core variants - override hover text color changes
|
|
5746
5864
|
primary: "bg-coral text-white shadow-sm hover:text-white",
|
|
5747
5865
|
secondary: "bg-sage text-white shadow-sm hover:text-white",
|
|
@@ -5764,17 +5882,17 @@ const Fo = I.forwardRef(
|
|
|
5764
5882
|
danger: "bg-danger text-white shadow-sm hover:text-white",
|
|
5765
5883
|
"danger-outline": "bg-danger text-white shadow-sm hover:text-white"
|
|
5766
5884
|
};
|
|
5767
|
-
return
|
|
5768
|
-
},
|
|
5769
|
-
const e =
|
|
5885
|
+
return t[e || "primary"] || t.primary;
|
|
5886
|
+
}, xt = ee(null), qo = () => {
|
|
5887
|
+
const e = te(xt);
|
|
5770
5888
|
if (!e)
|
|
5771
5889
|
throw new Error(
|
|
5772
5890
|
"useSegmentMultipleInputContext must be used within SegmentMultipleInputContext"
|
|
5773
5891
|
);
|
|
5774
5892
|
return e;
|
|
5775
|
-
},
|
|
5776
|
-
({ children: e, className:
|
|
5777
|
-
const c =
|
|
5893
|
+
}, pt = I.forwardRef(
|
|
5894
|
+
({ children: e, className: t, disabled: r, id: o, value: s, position: a = "middle", ...l }, i) => {
|
|
5895
|
+
const c = qo(), d = I.useId(), f = o || d, g = r || c.disabled, b = c.error ? "danger" : c.variant || "primary", m = c.value?.includes(s) ?? !1, v = (w) => {
|
|
5778
5896
|
if (!g) {
|
|
5779
5897
|
const C = c.value || [];
|
|
5780
5898
|
let R;
|
|
@@ -5803,17 +5921,17 @@ const Fo = I.forwardRef(
|
|
|
5803
5921
|
{
|
|
5804
5922
|
htmlFor: f,
|
|
5805
5923
|
className: p(
|
|
5806
|
-
|
|
5924
|
+
Wo({
|
|
5807
5925
|
variant: b,
|
|
5808
5926
|
size: c.size,
|
|
5809
5927
|
rounded: a
|
|
5810
5928
|
}),
|
|
5811
5929
|
// Apply selected state styling
|
|
5812
|
-
m &&
|
|
5930
|
+
m && Yo(b),
|
|
5813
5931
|
m && "relative z-10",
|
|
5814
5932
|
// Apply disabled styling directly since labels don't support disabled attribute
|
|
5815
5933
|
g && "opacity-50 cursor-not-allowed pointer-events-none",
|
|
5816
|
-
|
|
5934
|
+
t
|
|
5817
5935
|
),
|
|
5818
5936
|
children: e
|
|
5819
5937
|
}
|
|
@@ -5821,12 +5939,12 @@ const Fo = I.forwardRef(
|
|
|
5821
5939
|
] });
|
|
5822
5940
|
}
|
|
5823
5941
|
);
|
|
5824
|
-
|
|
5825
|
-
const
|
|
5942
|
+
pt.displayName = "SegmentOption";
|
|
5943
|
+
const Uo = I.forwardRef(
|
|
5826
5944
|
({
|
|
5827
5945
|
variant: e = "primary",
|
|
5828
|
-
size:
|
|
5829
|
-
label:
|
|
5946
|
+
size: t = "md",
|
|
5947
|
+
label: r,
|
|
5830
5948
|
helperText: o,
|
|
5831
5949
|
error: s,
|
|
5832
5950
|
className: a,
|
|
@@ -5839,7 +5957,7 @@ const Yo = I.forwardRef(
|
|
|
5839
5957
|
}, b) => {
|
|
5840
5958
|
const m = !!s, v = {
|
|
5841
5959
|
variant: e,
|
|
5842
|
-
size:
|
|
5960
|
+
size: t,
|
|
5843
5961
|
disabled: l,
|
|
5844
5962
|
error: m,
|
|
5845
5963
|
name: i,
|
|
@@ -5855,14 +5973,14 @@ const Yo = I.forwardRef(
|
|
|
5855
5973
|
}
|
|
5856
5974
|
return R;
|
|
5857
5975
|
});
|
|
5858
|
-
return /* @__PURE__ */ n.jsx(
|
|
5859
|
-
|
|
5976
|
+
return /* @__PURE__ */ n.jsx(xt.Provider, { value: v, children: /* @__PURE__ */ n.jsxs("div", { ref: b, className: p("w-full", a), ...g, children: [
|
|
5977
|
+
r && /* @__PURE__ */ n.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: r }),
|
|
5860
5978
|
/* @__PURE__ */ n.jsx(
|
|
5861
5979
|
"div",
|
|
5862
5980
|
{
|
|
5863
|
-
className:
|
|
5981
|
+
className: Go({
|
|
5864
5982
|
variant: m ? "danger" : e,
|
|
5865
|
-
size:
|
|
5983
|
+
size: t,
|
|
5866
5984
|
error: m
|
|
5867
5985
|
}),
|
|
5868
5986
|
children: C
|
|
@@ -5872,9 +5990,9 @@ const Yo = I.forwardRef(
|
|
|
5872
5990
|
!m && o && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-gray-600", children: o })
|
|
5873
5991
|
] }) });
|
|
5874
5992
|
}
|
|
5875
|
-
),
|
|
5876
|
-
Option:
|
|
5877
|
-
}),
|
|
5993
|
+
), Xs = Object.assign(Uo, {
|
|
5994
|
+
Option: pt
|
|
5995
|
+
}), Ho = y(
|
|
5878
5996
|
"block w-full rounded-md border bg-white transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none disabled:bg-gray-50 appearance-none bg-no-repeat bg-right pr-10",
|
|
5879
5997
|
{
|
|
5880
5998
|
variants: {
|
|
@@ -5906,11 +6024,11 @@ const Yo = I.forwardRef(
|
|
|
5906
6024
|
variant: "primary"
|
|
5907
6025
|
}
|
|
5908
6026
|
}
|
|
5909
|
-
),
|
|
6027
|
+
), Jo = I.forwardRef(
|
|
5910
6028
|
({
|
|
5911
6029
|
variant: e = "primary",
|
|
5912
|
-
label:
|
|
5913
|
-
helperText:
|
|
6030
|
+
label: t,
|
|
6031
|
+
helperText: r,
|
|
5914
6032
|
error: o,
|
|
5915
6033
|
className: s,
|
|
5916
6034
|
disabled: a,
|
|
@@ -5926,7 +6044,7 @@ const Yo = I.forwardRef(
|
|
|
5926
6044
|
{
|
|
5927
6045
|
htmlFor: b,
|
|
5928
6046
|
className: "block text-sm font-medium text-foreground mb-2",
|
|
5929
|
-
children:
|
|
6047
|
+
children: t
|
|
5930
6048
|
}
|
|
5931
6049
|
),
|
|
5932
6050
|
/* @__PURE__ */ n.jsxs("div", { className: p("relative w-full", s), children: [
|
|
@@ -5939,7 +6057,7 @@ const Yo = I.forwardRef(
|
|
|
5939
6057
|
"aria-disabled": a,
|
|
5940
6058
|
disabled: a,
|
|
5941
6059
|
className: p(
|
|
5942
|
-
|
|
6060
|
+
Ho({
|
|
5943
6061
|
variant: m ? "danger" : e
|
|
5944
6062
|
}),
|
|
5945
6063
|
"h-10 pl-3"
|
|
@@ -5971,12 +6089,12 @@ const Yo = I.forwardRef(
|
|
|
5971
6089
|
) })
|
|
5972
6090
|
] }),
|
|
5973
6091
|
m && /* @__PURE__ */ n.jsx("div", { className: "mt-1 text-sm text-danger", role: "alert", children: o }),
|
|
5974
|
-
!m &&
|
|
6092
|
+
!m && r && /* @__PURE__ */ n.jsx("div", { className: "mt-1 text-sm text-gray-600", children: r })
|
|
5975
6093
|
] });
|
|
5976
6094
|
}
|
|
5977
6095
|
);
|
|
5978
|
-
|
|
5979
|
-
const
|
|
6096
|
+
Jo.displayName = "SelectInput";
|
|
6097
|
+
const Xo = y(
|
|
5980
6098
|
"flex items-center gap-2 px-4 py-2 rounded-sm w-fit max-w-sm relative bg-white shadow-sm",
|
|
5981
6099
|
{
|
|
5982
6100
|
variants: {
|
|
@@ -5992,7 +6110,7 @@ const Ho = y(
|
|
|
5992
6110
|
}
|
|
5993
6111
|
}
|
|
5994
6112
|
);
|
|
5995
|
-
function
|
|
6113
|
+
function Ko(e) {
|
|
5996
6114
|
switch (e) {
|
|
5997
6115
|
case "info":
|
|
5998
6116
|
return "info-ghost";
|
|
@@ -6005,53 +6123,53 @@ function Jo(e) {
|
|
|
6005
6123
|
return "success-ghost";
|
|
6006
6124
|
}
|
|
6007
6125
|
}
|
|
6008
|
-
const
|
|
6126
|
+
const Zo = ({
|
|
6009
6127
|
children: e,
|
|
6010
|
-
...
|
|
6128
|
+
...t
|
|
6011
6129
|
}) => /* @__PURE__ */ n.jsx(
|
|
6012
6130
|
"span",
|
|
6013
6131
|
{
|
|
6014
6132
|
className: "flex-1 truncate text-base font-medium",
|
|
6015
6133
|
"data-testid": "snackbar-text",
|
|
6016
|
-
...
|
|
6134
|
+
...t,
|
|
6017
6135
|
children: e
|
|
6018
6136
|
}
|
|
6019
|
-
),
|
|
6137
|
+
), Qo = ({
|
|
6020
6138
|
children: e,
|
|
6021
|
-
...
|
|
6022
|
-
}) => /* @__PURE__ */ n.jsx("span", { className: "ml-2", "data-testid": "snackbar-action", ...
|
|
6023
|
-
({ children: e, action:
|
|
6139
|
+
...t
|
|
6140
|
+
}) => /* @__PURE__ */ n.jsx("span", { className: "ml-2", "data-testid": "snackbar-action", ...t, children: e }), Ks = E(
|
|
6141
|
+
({ children: e, action: t, onClose: r, color: o, className: s, ...a }, l) => /* @__PURE__ */ n.jsxs(
|
|
6024
6142
|
"div",
|
|
6025
6143
|
{
|
|
6026
6144
|
ref: l,
|
|
6027
6145
|
role: "status",
|
|
6028
6146
|
"aria-live": "polite",
|
|
6029
|
-
className: p(
|
|
6147
|
+
className: p(Xo({ color: o }), s),
|
|
6030
6148
|
...a,
|
|
6031
6149
|
children: [
|
|
6032
|
-
/* @__PURE__ */ n.jsx(
|
|
6033
|
-
|
|
6150
|
+
/* @__PURE__ */ n.jsx(Zo, { children: e }),
|
|
6151
|
+
t && /* @__PURE__ */ n.jsx(Qo, { children: t }),
|
|
6034
6152
|
/* @__PURE__ */ n.jsx(
|
|
6035
6153
|
le,
|
|
6036
6154
|
{
|
|
6037
|
-
as:
|
|
6038
|
-
variant:
|
|
6155
|
+
as: zt,
|
|
6156
|
+
variant: Ko(o),
|
|
6039
6157
|
size: "sm",
|
|
6040
6158
|
shape: "rounded",
|
|
6041
6159
|
"aria-label": "Close",
|
|
6042
|
-
onClick:
|
|
6160
|
+
onClick: r,
|
|
6043
6161
|
className: "ml-2"
|
|
6044
6162
|
}
|
|
6045
6163
|
)
|
|
6046
6164
|
]
|
|
6047
6165
|
}
|
|
6048
6166
|
)
|
|
6049
|
-
),
|
|
6050
|
-
const e =
|
|
6167
|
+
), vt = ee(null), wt = () => {
|
|
6168
|
+
const e = te(vt);
|
|
6051
6169
|
if (!e)
|
|
6052
6170
|
throw new Error("useTabsContext must be used within a TabsProvider");
|
|
6053
6171
|
return e;
|
|
6054
|
-
},
|
|
6172
|
+
}, es = y(
|
|
6055
6173
|
"inline-flex items-center justify-center transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none select-none px-4 py-2 text-base bg-transparent relative border-b-2 border-transparent",
|
|
6056
6174
|
{
|
|
6057
6175
|
variants: {
|
|
@@ -6129,13 +6247,13 @@ const Xo = ({
|
|
|
6129
6247
|
color: "primary"
|
|
6130
6248
|
}
|
|
6131
6249
|
}
|
|
6132
|
-
),
|
|
6250
|
+
), ts = y(
|
|
6133
6251
|
"flex flex-row w-full border-b border-neutral overflow-x-auto whitespace-nowrap",
|
|
6134
6252
|
{
|
|
6135
6253
|
variants: {},
|
|
6136
6254
|
defaultVariants: {}
|
|
6137
6255
|
}
|
|
6138
|
-
),
|
|
6256
|
+
), rs = y(
|
|
6139
6257
|
"absolute bottom-0 h-0.5 rounded transition-all duration-300",
|
|
6140
6258
|
{
|
|
6141
6259
|
variants: {
|
|
@@ -6151,13 +6269,13 @@ const Xo = ({
|
|
|
6151
6269
|
color: "primary"
|
|
6152
6270
|
}
|
|
6153
6271
|
}
|
|
6154
|
-
),
|
|
6272
|
+
), os = ({
|
|
6155
6273
|
value: e,
|
|
6156
|
-
children:
|
|
6157
|
-
className:
|
|
6274
|
+
children: t,
|
|
6275
|
+
className: r,
|
|
6158
6276
|
...o
|
|
6159
6277
|
}) => {
|
|
6160
|
-
const { activeTab: s, setActiveTab: a, color: l } =
|
|
6278
|
+
const { activeTab: s, setActiveTab: a, color: l } = wt(), i = s === e;
|
|
6161
6279
|
return /* @__PURE__ */ n.jsx(
|
|
6162
6280
|
"button",
|
|
6163
6281
|
{
|
|
@@ -6167,47 +6285,47 @@ const Xo = ({
|
|
|
6167
6285
|
"aria-controls": `tabs-content-${e}`,
|
|
6168
6286
|
tabIndex: i ? 0 : -1,
|
|
6169
6287
|
className: p(
|
|
6170
|
-
|
|
6288
|
+
es({
|
|
6171
6289
|
active: i,
|
|
6172
6290
|
color: l
|
|
6173
6291
|
}),
|
|
6174
|
-
|
|
6292
|
+
r
|
|
6175
6293
|
),
|
|
6176
6294
|
onClick: () => a(e),
|
|
6177
6295
|
type: "button",
|
|
6178
6296
|
...o,
|
|
6179
|
-
children:
|
|
6297
|
+
children: t
|
|
6180
6298
|
}
|
|
6181
6299
|
);
|
|
6182
|
-
},
|
|
6300
|
+
}, ss = ({
|
|
6183
6301
|
left: e,
|
|
6184
|
-
width:
|
|
6185
|
-
className:
|
|
6302
|
+
width: t,
|
|
6303
|
+
className: r,
|
|
6186
6304
|
...o
|
|
6187
6305
|
}) => {
|
|
6188
|
-
const { color: s } =
|
|
6306
|
+
const { color: s } = wt();
|
|
6189
6307
|
return /* @__PURE__ */ n.jsx(
|
|
6190
6308
|
"div",
|
|
6191
6309
|
{
|
|
6192
6310
|
"aria-hidden": !0,
|
|
6193
|
-
className: p(
|
|
6311
|
+
className: p(rs({ color: s }), r),
|
|
6194
6312
|
style: {
|
|
6195
6313
|
left: e,
|
|
6196
|
-
width:
|
|
6314
|
+
width: t,
|
|
6197
6315
|
pointerEvents: "none"
|
|
6198
6316
|
},
|
|
6199
6317
|
...o
|
|
6200
6318
|
}
|
|
6201
6319
|
);
|
|
6202
6320
|
};
|
|
6203
|
-
function
|
|
6204
|
-
const [o, s] =
|
|
6321
|
+
function ns(e, t, r) {
|
|
6322
|
+
const [o, s] = H({
|
|
6205
6323
|
left: 0,
|
|
6206
6324
|
width: 0
|
|
6207
6325
|
});
|
|
6208
|
-
return
|
|
6209
|
-
if (!
|
|
6210
|
-
const a =
|
|
6326
|
+
return kt(() => {
|
|
6327
|
+
if (!t.current) return;
|
|
6328
|
+
const a = t.current.querySelector(
|
|
6211
6329
|
`#tabs-trigger-${e}`
|
|
6212
6330
|
);
|
|
6213
6331
|
if (a) {
|
|
@@ -6218,33 +6336,33 @@ function os(e, r, t) {
|
|
|
6218
6336
|
block: "nearest"
|
|
6219
6337
|
});
|
|
6220
6338
|
}
|
|
6221
|
-
}, [e,
|
|
6339
|
+
}, [e, r, t]), o;
|
|
6222
6340
|
}
|
|
6223
|
-
const
|
|
6341
|
+
const as = ({
|
|
6224
6342
|
value: e,
|
|
6225
|
-
onValueChange:
|
|
6226
|
-
children:
|
|
6343
|
+
onValueChange: t,
|
|
6344
|
+
children: r,
|
|
6227
6345
|
className: o,
|
|
6228
6346
|
color: s = "primary",
|
|
6229
6347
|
...a
|
|
6230
6348
|
}) => {
|
|
6231
6349
|
const l = {
|
|
6232
6350
|
activeTab: e,
|
|
6233
|
-
setActiveTab:
|
|
6351
|
+
setActiveTab: t,
|
|
6234
6352
|
color: s
|
|
6235
|
-
}, i = ce(null), c =
|
|
6236
|
-
return /* @__PURE__ */ n.jsx(
|
|
6353
|
+
}, i = ce(null), c = ns(e, i, r);
|
|
6354
|
+
return /* @__PURE__ */ n.jsx(vt.Provider, { value: l, children: /* @__PURE__ */ n.jsxs(
|
|
6237
6355
|
"div",
|
|
6238
6356
|
{
|
|
6239
6357
|
role: "tablist",
|
|
6240
|
-
className: p(
|
|
6358
|
+
className: p(ts(), o),
|
|
6241
6359
|
ref: i,
|
|
6242
6360
|
style: { position: "relative" },
|
|
6243
6361
|
...a,
|
|
6244
6362
|
children: [
|
|
6245
|
-
|
|
6363
|
+
r,
|
|
6246
6364
|
/* @__PURE__ */ n.jsx(
|
|
6247
|
-
|
|
6365
|
+
ss,
|
|
6248
6366
|
{
|
|
6249
6367
|
left: c.left,
|
|
6250
6368
|
width: c.width
|
|
@@ -6253,130 +6371,13 @@ const ss = ({
|
|
|
6253
6371
|
]
|
|
6254
6372
|
}
|
|
6255
6373
|
) });
|
|
6256
|
-
},
|
|
6257
|
-
Trigger:
|
|
6258
|
-
}),
|
|
6259
|
-
variants: {
|
|
6260
|
-
color: {
|
|
6261
|
-
primary: "text-primary",
|
|
6262
|
-
secondary: "text-secondary",
|
|
6263
|
-
tertiary: "text-tertiary",
|
|
6264
|
-
ghost: "text-ghost",
|
|
6265
|
-
neutral: "text-ghost",
|
|
6266
|
-
success: "text-success",
|
|
6267
|
-
info: "text-info",
|
|
6268
|
-
warning: "text-warning",
|
|
6269
|
-
danger: "text-danger"
|
|
6270
|
-
},
|
|
6271
|
-
hasUnderline: {
|
|
6272
|
-
true: "underline",
|
|
6273
|
-
false: ""
|
|
6274
|
-
},
|
|
6275
|
-
isCapitalize: {
|
|
6276
|
-
true: "capitalize",
|
|
6277
|
-
false: ""
|
|
6278
|
-
},
|
|
6279
|
-
align: {
|
|
6280
|
-
left: "text-left",
|
|
6281
|
-
center: "text-center",
|
|
6282
|
-
right: "text-right",
|
|
6283
|
-
justify: "text-justify"
|
|
6284
|
-
},
|
|
6285
|
-
italic: {
|
|
6286
|
-
true: "italic",
|
|
6287
|
-
false: ""
|
|
6288
|
-
},
|
|
6289
|
-
clamp: {
|
|
6290
|
-
1: "line-clamp-1",
|
|
6291
|
-
2: "line-clamp-2",
|
|
6292
|
-
3: "line-clamp-3",
|
|
6293
|
-
4: "line-clamp-4",
|
|
6294
|
-
5: "line-clamp-5",
|
|
6295
|
-
none: ""
|
|
6296
|
-
},
|
|
6297
|
-
ellipsis: {
|
|
6298
|
-
true: "truncate",
|
|
6299
|
-
false: ""
|
|
6300
|
-
},
|
|
6301
|
-
as: {
|
|
6302
|
-
h1: "font-bold text-4xl leading-loose",
|
|
6303
|
-
h2: "font-semibold text-3xl leading-relaxed",
|
|
6304
|
-
h3: "font-medium text-2xl leading-relaxed",
|
|
6305
|
-
h4: "font-bold text-xl leading-normal",
|
|
6306
|
-
h5: "font-semibold text-lg leading-normal",
|
|
6307
|
-
h6: "font-medium text-base leading-normal",
|
|
6308
|
-
p: "font-normal text-base leading-normal",
|
|
6309
|
-
span: "font-normal text-base leading-normal",
|
|
6310
|
-
label: "font-normal text-xs leading-normal"
|
|
6311
|
-
}
|
|
6312
|
-
},
|
|
6313
|
-
defaultVariants: {
|
|
6314
|
-
color: "neutral",
|
|
6315
|
-
hasUnderline: !1,
|
|
6316
|
-
isCapitalize: !1,
|
|
6317
|
-
align: "left",
|
|
6318
|
-
italic: !1,
|
|
6319
|
-
clamp: "none",
|
|
6320
|
-
ellipsis: !1,
|
|
6321
|
-
as: "span"
|
|
6322
|
-
}
|
|
6323
|
-
}), Zs = E(
|
|
6324
|
-
({
|
|
6325
|
-
as: e = "span",
|
|
6326
|
-
color: r = "ghost",
|
|
6327
|
-
hasUnderline: t = !1,
|
|
6328
|
-
isCapitalize: o = !1,
|
|
6329
|
-
align: s = "left",
|
|
6330
|
-
italic: a = !1,
|
|
6331
|
-
clamp: l = "none",
|
|
6332
|
-
ellipsis: i = !1,
|
|
6333
|
-
fontSize: c,
|
|
6334
|
-
fontWeight: d,
|
|
6335
|
-
className: f,
|
|
6336
|
-
children: g,
|
|
6337
|
-
...b
|
|
6338
|
-
}, m) => {
|
|
6339
|
-
const w = [
|
|
6340
|
-
"h1",
|
|
6341
|
-
"h2",
|
|
6342
|
-
"h3",
|
|
6343
|
-
"h4",
|
|
6344
|
-
"h5",
|
|
6345
|
-
"h6",
|
|
6346
|
-
"p",
|
|
6347
|
-
"span",
|
|
6348
|
-
"label"
|
|
6349
|
-
].includes(e) ? e : "span", C = c ? `text-${c}` : "", R = d ? `font-${d}` : "";
|
|
6350
|
-
return /* @__PURE__ */ n.jsx(
|
|
6351
|
-
e,
|
|
6352
|
-
{
|
|
6353
|
-
ref: m,
|
|
6354
|
-
className: p(
|
|
6355
|
-
ns({
|
|
6356
|
-
color: r,
|
|
6357
|
-
hasUnderline: t,
|
|
6358
|
-
isCapitalize: o,
|
|
6359
|
-
align: s,
|
|
6360
|
-
italic: a,
|
|
6361
|
-
clamp: l,
|
|
6362
|
-
ellipsis: i,
|
|
6363
|
-
// @ts-expect-error - `as` is not a valid variant
|
|
6364
|
-
as: w
|
|
6365
|
-
}),
|
|
6366
|
-
C,
|
|
6367
|
-
R,
|
|
6368
|
-
f
|
|
6369
|
-
),
|
|
6370
|
-
...b,
|
|
6371
|
-
children: g
|
|
6372
|
-
}
|
|
6373
|
-
);
|
|
6374
|
-
}
|
|
6375
|
-
), as = I.forwardRef(
|
|
6374
|
+
}, Zs = Object.assign(as, {
|
|
6375
|
+
Trigger: os
|
|
6376
|
+
}), is = I.forwardRef(
|
|
6376
6377
|
({
|
|
6377
6378
|
variant: e = "primary",
|
|
6378
|
-
label:
|
|
6379
|
-
leftContent:
|
|
6379
|
+
label: t,
|
|
6380
|
+
leftContent: r,
|
|
6380
6381
|
rightContent: o,
|
|
6381
6382
|
helperText: s,
|
|
6382
6383
|
error: a,
|
|
@@ -6387,21 +6388,21 @@ const ss = ({
|
|
|
6387
6388
|
}, f) => {
|
|
6388
6389
|
const g = I.useId(), b = c || g, m = !!a;
|
|
6389
6390
|
return /* @__PURE__ */ n.jsxs("div", { children: [
|
|
6390
|
-
/* @__PURE__ */ n.jsx(
|
|
6391
|
+
t && /* @__PURE__ */ n.jsx(
|
|
6391
6392
|
"label",
|
|
6392
6393
|
{
|
|
6393
6394
|
htmlFor: b,
|
|
6394
6395
|
className: "block text-sm font-medium text-foreground mb-2",
|
|
6395
|
-
children:
|
|
6396
|
+
children: t
|
|
6396
6397
|
}
|
|
6397
6398
|
),
|
|
6398
6399
|
/* @__PURE__ */ n.jsxs("div", { className: p("relative w-full", l), children: [
|
|
6399
|
-
|
|
6400
|
+
r && /* @__PURE__ */ n.jsx(
|
|
6400
6401
|
"span",
|
|
6401
6402
|
{
|
|
6402
6403
|
className: "absolute left-2.5 top-0 bottom-0 pointer-events-none text-gray-500 flex items-center justify-center w-5",
|
|
6403
6404
|
"data-testid": "left-content",
|
|
6404
|
-
children:
|
|
6405
|
+
children: r
|
|
6405
6406
|
}
|
|
6406
6407
|
),
|
|
6407
6408
|
/* @__PURE__ */ n.jsx(
|
|
@@ -6413,10 +6414,10 @@ const ss = ({
|
|
|
6413
6414
|
"aria-disabled": i,
|
|
6414
6415
|
disabled: i,
|
|
6415
6416
|
className: p(
|
|
6416
|
-
|
|
6417
|
+
dt({
|
|
6417
6418
|
variant: m ? "danger" : e
|
|
6418
6419
|
}),
|
|
6419
|
-
|
|
6420
|
+
r ? "pl-9" : "pl-3",
|
|
6420
6421
|
o ? "pr-9" : "pr-3",
|
|
6421
6422
|
"h-10"
|
|
6422
6423
|
),
|
|
@@ -6437,8 +6438,8 @@ const ss = ({
|
|
|
6437
6438
|
] });
|
|
6438
6439
|
}
|
|
6439
6440
|
);
|
|
6440
|
-
|
|
6441
|
-
const
|
|
6441
|
+
is.displayName = "TextInput";
|
|
6442
|
+
const ls = y(
|
|
6442
6443
|
"block w-full rounded-md border bg-white transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none disabled:bg-gray-50",
|
|
6443
6444
|
{
|
|
6444
6445
|
variants: {
|
|
@@ -6475,11 +6476,11 @@ const is = y(
|
|
|
6475
6476
|
fieldSizing: "fixed"
|
|
6476
6477
|
}
|
|
6477
6478
|
}
|
|
6478
|
-
),
|
|
6479
|
+
), cs = I.forwardRef(
|
|
6479
6480
|
({
|
|
6480
6481
|
variant: e = "primary",
|
|
6481
|
-
label:
|
|
6482
|
-
helperText:
|
|
6482
|
+
label: t,
|
|
6483
|
+
helperText: r,
|
|
6483
6484
|
error: o,
|
|
6484
6485
|
className: s,
|
|
6485
6486
|
disabled: a,
|
|
@@ -6500,12 +6501,12 @@ const is = y(
|
|
|
6500
6501
|
...f
|
|
6501
6502
|
};
|
|
6502
6503
|
return /* @__PURE__ */ n.jsxs("div", { children: [
|
|
6503
|
-
/* @__PURE__ */ n.jsx(
|
|
6504
|
+
t && /* @__PURE__ */ n.jsx(
|
|
6504
6505
|
"label",
|
|
6505
6506
|
{
|
|
6506
6507
|
htmlFor: w,
|
|
6507
6508
|
className: "block text-sm font-medium text-foreground mb-2",
|
|
6508
|
-
children:
|
|
6509
|
+
children: t
|
|
6509
6510
|
}
|
|
6510
6511
|
),
|
|
6511
6512
|
/* @__PURE__ */ n.jsx("div", { className: p("relative w-full", s), children: /* @__PURE__ */ n.jsx(
|
|
@@ -6519,7 +6520,7 @@ const is = y(
|
|
|
6519
6520
|
disabled: a,
|
|
6520
6521
|
style: N,
|
|
6521
6522
|
className: p(
|
|
6522
|
-
|
|
6523
|
+
ls({
|
|
6523
6524
|
variant: C ? "danger" : e,
|
|
6524
6525
|
fieldSizing: d
|
|
6525
6526
|
}),
|
|
@@ -6529,27 +6530,27 @@ const is = y(
|
|
|
6529
6530
|
}
|
|
6530
6531
|
) }),
|
|
6531
6532
|
C && /* @__PURE__ */ n.jsx("div", { className: "mt-1 text-sm text-danger", role: "alert", children: o }),
|
|
6532
|
-
!C &&
|
|
6533
|
+
!C && r && /* @__PURE__ */ n.jsx("div", { className: "mt-1 text-sm text-gray-600", children: r })
|
|
6533
6534
|
] });
|
|
6534
6535
|
}
|
|
6535
6536
|
);
|
|
6536
|
-
|
|
6537
|
-
const
|
|
6537
|
+
cs.displayName = "TextAreaInput";
|
|
6538
|
+
const ds = y(
|
|
6538
6539
|
// Base classes
|
|
6539
6540
|
"block transition-colors duration-200",
|
|
6540
6541
|
{
|
|
6541
6542
|
variants: {
|
|
6542
6543
|
variant: {
|
|
6543
|
-
white: "bg-white border border-
|
|
6544
|
-
neutral: "bg-
|
|
6545
|
-
primary: "bg-coral-
|
|
6546
|
-
secondary: "bg-sage-
|
|
6547
|
-
tertiary: "bg-mist-
|
|
6548
|
-
ghost: "bg-transparent border border-slate
|
|
6549
|
-
success: "bg-
|
|
6550
|
-
info: "bg-
|
|
6551
|
-
warning: "bg-
|
|
6552
|
-
danger: "bg-
|
|
6544
|
+
white: "bg-white border border-border",
|
|
6545
|
+
neutral: "bg-neutral border border-gray-200",
|
|
6546
|
+
primary: "bg-coral-soft border border-coral",
|
|
6547
|
+
secondary: "bg-sage-soft border border-sage",
|
|
6548
|
+
tertiary: "bg-mist-soft border border-mist",
|
|
6549
|
+
ghost: "bg-transparent border border-slate",
|
|
6550
|
+
success: "bg-success-soft border border-success",
|
|
6551
|
+
info: "bg-info-soft border border-info",
|
|
6552
|
+
warning: "bg-warning-soft border border-warning",
|
|
6553
|
+
danger: "bg-danger-soft border border-danger"
|
|
6553
6554
|
},
|
|
6554
6555
|
size: {
|
|
6555
6556
|
xs: "p-2",
|
|
@@ -6570,71 +6571,71 @@ const cs = y(
|
|
|
6570
6571
|
}
|
|
6571
6572
|
}
|
|
6572
6573
|
), Qs = E(
|
|
6573
|
-
({ variant: e = "white", size:
|
|
6574
|
+
({ variant: e = "white", size: t = "md", shape: r = "rounded", className: o, ...s }, a) => /* @__PURE__ */ n.jsx(
|
|
6574
6575
|
"div",
|
|
6575
6576
|
{
|
|
6576
6577
|
ref: a,
|
|
6577
|
-
className: p(
|
|
6578
|
+
className: p(ds({ variant: e, size: t, shape: r }), o),
|
|
6578
6579
|
...s
|
|
6579
6580
|
}
|
|
6580
6581
|
)
|
|
6581
|
-
),
|
|
6582
|
-
"w-full flex items-center px-6 py-2 border-b border-
|
|
6582
|
+
), us = y(
|
|
6583
|
+
"w-full flex items-center px-6 py-2 mb-6 border-b border-border shadow-xs bg-white",
|
|
6583
6584
|
{
|
|
6584
6585
|
variants: {},
|
|
6585
6586
|
defaultVariants: {}
|
|
6586
6587
|
}
|
|
6587
|
-
),
|
|
6588
|
+
), gs = y("flex items-center gap-3 min-w-0 flex-1"), fs = y("flex items-center gap-2 ml-auto"), bs = y(
|
|
6588
6589
|
"px-2.5 py-1.5 rounded-md text-xs font-sm cursor-pointer transition-colors",
|
|
6589
6590
|
{
|
|
6590
6591
|
variants: {
|
|
6591
6592
|
active: {
|
|
6592
6593
|
true: "bg-coral/10 text-coral",
|
|
6593
|
-
false: "hover:bg-coral/10"
|
|
6594
|
+
false: "bg-neutral hover:bg-coral/10 text-ghost"
|
|
6594
6595
|
}
|
|
6595
6596
|
},
|
|
6596
6597
|
defaultVariants: {
|
|
6597
6598
|
active: !1
|
|
6598
6599
|
}
|
|
6599
6600
|
}
|
|
6600
|
-
),
|
|
6601
|
-
function({ children:
|
|
6602
|
-
return /* @__PURE__ */ n.jsx("nav", { ref: s, className:
|
|
6603
|
-
}
|
|
6604
|
-
), xs = E(
|
|
6605
|
-
function({ children: r, className: t, ...o }, s) {
|
|
6606
|
-
return /* @__PURE__ */ n.jsx("div", { ref: s, className: ms({ className: t }), ...o, children: r });
|
|
6601
|
+
), ms = y("flex items-center gap-2 ml-4"), hs = y("flex items-center gap-2 mr-4"), xs = E(
|
|
6602
|
+
function({ children: t, className: r, ...o }, s) {
|
|
6603
|
+
return /* @__PURE__ */ n.jsx("nav", { ref: s, className: ms({ className: r }), ...o, children: t });
|
|
6607
6604
|
}
|
|
6608
6605
|
), ps = E(
|
|
6609
|
-
function({ children:
|
|
6610
|
-
return /* @__PURE__ */ n.jsx("div", { ref: s, className:
|
|
6606
|
+
function({ children: t, className: r, ...o }, s) {
|
|
6607
|
+
return /* @__PURE__ */ n.jsx("div", { ref: s, className: hs({ className: r }), ...o, children: t });
|
|
6611
6608
|
}
|
|
6612
6609
|
), vs = E(
|
|
6613
|
-
function({ children:
|
|
6614
|
-
return /* @__PURE__ */ n.jsx("div", { ref: s, className: gs({ className:
|
|
6610
|
+
function({ children: t, className: r, ...o }, s) {
|
|
6611
|
+
return /* @__PURE__ */ n.jsx("div", { ref: s, className: gs({ className: r }), ...o, children: t });
|
|
6615
6612
|
}
|
|
6616
6613
|
), ws = E(
|
|
6617
|
-
function({ children:
|
|
6614
|
+
function({ children: t, className: r, ...o }, s) {
|
|
6615
|
+
return /* @__PURE__ */ n.jsx("div", { ref: s, className: fs({ className: r }), ...o, children: t });
|
|
6616
|
+
}
|
|
6617
|
+
), ys = E(
|
|
6618
|
+
function({ children: t, className: r, active: o, ...s }, a) {
|
|
6618
6619
|
return /* @__PURE__ */ n.jsx(
|
|
6619
6620
|
"div",
|
|
6620
6621
|
{
|
|
6621
6622
|
ref: a,
|
|
6622
|
-
className:
|
|
6623
|
+
className: bs({ active: o, className: r }),
|
|
6623
6624
|
"aria-current": o ? "page" : void 0,
|
|
6624
6625
|
...s,
|
|
6625
|
-
children:
|
|
6626
|
+
children: t
|
|
6626
6627
|
}
|
|
6627
6628
|
);
|
|
6628
6629
|
}
|
|
6629
|
-
),
|
|
6630
|
-
({ children: e, className:
|
|
6631
|
-
), en = Object.assign(
|
|
6632
|
-
Leading:
|
|
6633
|
-
Trailing:
|
|
6634
|
-
NavItem:
|
|
6635
|
-
Nav:
|
|
6636
|
-
Actions:
|
|
6637
|
-
}),
|
|
6630
|
+
), ks = E(
|
|
6631
|
+
({ children: e, className: t, ...r }, o) => /* @__PURE__ */ n.jsx("header", { ref: o, className: us({ className: t }), ...r, children: e })
|
|
6632
|
+
), en = Object.assign(ks, {
|
|
6633
|
+
Leading: vs,
|
|
6634
|
+
Trailing: ws,
|
|
6635
|
+
NavItem: ys,
|
|
6636
|
+
Nav: xs,
|
|
6637
|
+
Actions: ps
|
|
6638
|
+
}), js = y(
|
|
6638
6639
|
"inline-block border animate-spin rounded-full",
|
|
6639
6640
|
{
|
|
6640
6641
|
variants: {
|
|
@@ -6660,7 +6661,7 @@ const cs = y(
|
|
|
6660
6661
|
color: "primary"
|
|
6661
6662
|
}
|
|
6662
6663
|
}
|
|
6663
|
-
),
|
|
6664
|
+
), Ns = y("relative w-full h-1 overflow-hidden rounded", {
|
|
6664
6665
|
variants: {
|
|
6665
6666
|
color: {
|
|
6666
6667
|
primary: "bg-coral",
|
|
@@ -6683,7 +6684,7 @@ const cs = y(
|
|
|
6683
6684
|
color: "primary",
|
|
6684
6685
|
size: "md"
|
|
6685
6686
|
}
|
|
6686
|
-
}),
|
|
6687
|
+
}), Cs = (e) => {
|
|
6687
6688
|
switch (e) {
|
|
6688
6689
|
case "primary":
|
|
6689
6690
|
return "bg-coral";
|
|
@@ -6706,11 +6707,11 @@ const cs = y(
|
|
|
6706
6707
|
default:
|
|
6707
6708
|
return "bg-coral";
|
|
6708
6709
|
}
|
|
6709
|
-
},
|
|
6710
|
+
}, zs = I.forwardRef(
|
|
6710
6711
|
({
|
|
6711
6712
|
color: e = "primary",
|
|
6712
|
-
size:
|
|
6713
|
-
ariaLabel:
|
|
6713
|
+
size: t = "md",
|
|
6714
|
+
ariaLabel: r = "Loading",
|
|
6714
6715
|
className: o,
|
|
6715
6716
|
...s
|
|
6716
6717
|
}, a) => /* @__PURE__ */ n.jsx(
|
|
@@ -6718,16 +6719,16 @@ const cs = y(
|
|
|
6718
6719
|
{
|
|
6719
6720
|
ref: a,
|
|
6720
6721
|
role: "status",
|
|
6721
|
-
"aria-label":
|
|
6722
|
-
className: p(
|
|
6722
|
+
"aria-label": r,
|
|
6723
|
+
className: p(js({ color: e, size: t }), o),
|
|
6723
6724
|
...s
|
|
6724
6725
|
}
|
|
6725
6726
|
)
|
|
6726
|
-
),
|
|
6727
|
+
), Is = I.forwardRef(
|
|
6727
6728
|
({
|
|
6728
6729
|
color: e = "primary",
|
|
6729
|
-
size:
|
|
6730
|
-
ariaLabel:
|
|
6730
|
+
size: t = "md",
|
|
6731
|
+
ariaLabel: r = "Loading",
|
|
6731
6732
|
className: o,
|
|
6732
6733
|
...s
|
|
6733
6734
|
}, a) => /* @__PURE__ */ n.jsxs(
|
|
@@ -6735,9 +6736,9 @@ const cs = y(
|
|
|
6735
6736
|
{
|
|
6736
6737
|
ref: a,
|
|
6737
6738
|
role: "progressbar",
|
|
6738
|
-
"aria-label":
|
|
6739
|
+
"aria-label": r,
|
|
6739
6740
|
className: p(
|
|
6740
|
-
|
|
6741
|
+
Ns({ color: e, size: t }),
|
|
6741
6742
|
"bg-neutral/40 relative overflow-hidden",
|
|
6742
6743
|
o
|
|
6743
6744
|
),
|
|
@@ -6757,7 +6758,7 @@ const cs = y(
|
|
|
6757
6758
|
{
|
|
6758
6759
|
className: p(
|
|
6759
6760
|
"absolute left-0 top-0 h-full w-1/3 animate-loading-bar rounded-full",
|
|
6760
|
-
|
|
6761
|
+
Cs(e)
|
|
6761
6762
|
),
|
|
6762
6763
|
"aria-hidden": "true"
|
|
6763
6764
|
}
|
|
@@ -6765,38 +6766,38 @@ const cs = y(
|
|
|
6765
6766
|
]
|
|
6766
6767
|
}
|
|
6767
6768
|
)
|
|
6768
|
-
),
|
|
6769
|
+
), Ss = I.forwardRef(
|
|
6769
6770
|
({
|
|
6770
6771
|
type: e = "spinner",
|
|
6771
|
-
size:
|
|
6772
|
-
color:
|
|
6772
|
+
size: t = "md",
|
|
6773
|
+
color: r = "primary",
|
|
6773
6774
|
ariaLabel: o = "Loading",
|
|
6774
6775
|
className: s,
|
|
6775
6776
|
...a
|
|
6776
6777
|
}, l) => e === "bar" ? /* @__PURE__ */ n.jsx(
|
|
6777
|
-
|
|
6778
|
+
Is,
|
|
6778
6779
|
{
|
|
6779
6780
|
ref: l,
|
|
6780
|
-
color:
|
|
6781
|
-
size:
|
|
6781
|
+
color: r,
|
|
6782
|
+
size: t,
|
|
6782
6783
|
ariaLabel: o,
|
|
6783
6784
|
className: s,
|
|
6784
6785
|
...a
|
|
6785
6786
|
}
|
|
6786
6787
|
) : /* @__PURE__ */ n.jsx(
|
|
6787
|
-
|
|
6788
|
+
zs,
|
|
6788
6789
|
{
|
|
6789
6790
|
ref: l,
|
|
6790
|
-
color:
|
|
6791
|
-
size:
|
|
6791
|
+
color: r,
|
|
6792
|
+
size: t,
|
|
6792
6793
|
ariaLabel: o,
|
|
6793
6794
|
className: s,
|
|
6794
6795
|
...a
|
|
6795
6796
|
}
|
|
6796
6797
|
)
|
|
6797
6798
|
);
|
|
6798
|
-
|
|
6799
|
-
const
|
|
6799
|
+
Ss.displayName = "LoadingIndicator";
|
|
6800
|
+
const Rs = y(
|
|
6800
6801
|
"relative inline-flex items-center transition-colors duration-200",
|
|
6801
6802
|
{
|
|
6802
6803
|
variants: {
|
|
@@ -6848,7 +6849,7 @@ const Ss = y(
|
|
|
6848
6849
|
{ checked: !1, class: "bg-white border border-slate-300" }
|
|
6849
6850
|
]
|
|
6850
6851
|
}
|
|
6851
|
-
),
|
|
6852
|
+
), Vs = y(
|
|
6852
6853
|
"absolute rounded-full transition-transform duration-200",
|
|
6853
6854
|
{
|
|
6854
6855
|
variants: {
|
|
@@ -6867,38 +6868,38 @@ const Ss = y(
|
|
|
6867
6868
|
checked: !1
|
|
6868
6869
|
}
|
|
6869
6870
|
}
|
|
6870
|
-
),
|
|
6871
|
+
), Es = ({
|
|
6871
6872
|
color: e = "primary",
|
|
6872
|
-
size:
|
|
6873
|
-
disabled:
|
|
6873
|
+
size: t = "md",
|
|
6874
|
+
disabled: r = !1,
|
|
6874
6875
|
className: o,
|
|
6875
6876
|
checked: s
|
|
6876
6877
|
}) => /* @__PURE__ */ n.jsx(
|
|
6877
6878
|
"span",
|
|
6878
6879
|
{
|
|
6879
6880
|
className: p(
|
|
6880
|
-
|
|
6881
|
+
Rs({ color: e, size: t, disabled: r, checked: s }),
|
|
6881
6882
|
"rounded-full pointer-events-none",
|
|
6882
6883
|
o
|
|
6883
6884
|
),
|
|
6884
6885
|
"aria-hidden": "true"
|
|
6885
6886
|
}
|
|
6886
|
-
),
|
|
6887
|
+
), Ts = ({ size: e = "md", checked: t = !1 }) => /* @__PURE__ */ n.jsx("span", { className: p(Vs({ size: e, checked: t })), "aria-hidden": "true" }), As = ({ label: e, htmlFor: t, placement: r = "top", disabled: o = !1 }) => e ? /* @__PURE__ */ n.jsx(
|
|
6887
6888
|
"label",
|
|
6888
6889
|
{
|
|
6889
|
-
htmlFor:
|
|
6890
|
+
htmlFor: t,
|
|
6890
6891
|
className: p(
|
|
6891
6892
|
"text-sm select-none font-medium text-foreground",
|
|
6892
|
-
|
|
6893
|
+
r === "inline" ? "ml-2 mb-0" : "mb-1",
|
|
6893
6894
|
o && "opacity-50 cursor-not-allowed"
|
|
6894
6895
|
),
|
|
6895
6896
|
children: e
|
|
6896
6897
|
}
|
|
6897
|
-
) : null,
|
|
6898
|
+
) : null, Ms = I.forwardRef(
|
|
6898
6899
|
({
|
|
6899
6900
|
checked: e,
|
|
6900
|
-
defaultChecked:
|
|
6901
|
-
onCheckedChange:
|
|
6901
|
+
defaultChecked: t,
|
|
6902
|
+
onCheckedChange: r,
|
|
6902
6903
|
color: o = "primary",
|
|
6903
6904
|
size: s = "md",
|
|
6904
6905
|
label: a,
|
|
@@ -6909,10 +6910,10 @@ const Ss = y(
|
|
|
6909
6910
|
ariaLabel: f,
|
|
6910
6911
|
...g
|
|
6911
6912
|
}, b) => {
|
|
6912
|
-
const [m, v] =
|
|
6913
|
-
|
|
6913
|
+
const [m, v] = H(
|
|
6914
|
+
t ?? !1
|
|
6914
6915
|
), w = Ee(), C = d || w, R = typeof e == "boolean", A = R ? e : m, N = (M) => {
|
|
6915
|
-
R || v(M.target.checked),
|
|
6916
|
+
R || v(M.target.checked), r?.(M.target.checked);
|
|
6916
6917
|
};
|
|
6917
6918
|
return /* @__PURE__ */ n.jsxs(
|
|
6918
6919
|
"div",
|
|
@@ -6924,7 +6925,7 @@ const Ss = y(
|
|
|
6924
6925
|
),
|
|
6925
6926
|
children: [
|
|
6926
6927
|
/* @__PURE__ */ n.jsx(
|
|
6927
|
-
|
|
6928
|
+
As,
|
|
6928
6929
|
{
|
|
6929
6930
|
label: a,
|
|
6930
6931
|
htmlFor: C,
|
|
@@ -6955,7 +6956,7 @@ const Ss = y(
|
|
|
6955
6956
|
}
|
|
6956
6957
|
),
|
|
6957
6958
|
/* @__PURE__ */ n.jsx(
|
|
6958
|
-
|
|
6959
|
+
Es,
|
|
6959
6960
|
{
|
|
6960
6961
|
color: o,
|
|
6961
6962
|
size: s,
|
|
@@ -6963,7 +6964,7 @@ const Ss = y(
|
|
|
6963
6964
|
checked: A
|
|
6964
6965
|
}
|
|
6965
6966
|
),
|
|
6966
|
-
/* @__PURE__ */ n.jsx(
|
|
6967
|
+
/* @__PURE__ */ n.jsx(Ts, { size: s, checked: A })
|
|
6967
6968
|
]
|
|
6968
6969
|
}
|
|
6969
6970
|
)
|
|
@@ -6972,8 +6973,8 @@ const Ss = y(
|
|
|
6972
6973
|
);
|
|
6973
6974
|
}
|
|
6974
6975
|
);
|
|
6975
|
-
|
|
6976
|
-
const
|
|
6976
|
+
Ms.displayName = "SwitchInput";
|
|
6977
|
+
const Ps = y("w-full overflow-hidden bg-neutral-200", {
|
|
6977
6978
|
variants: {
|
|
6978
6979
|
shape: {
|
|
6979
6980
|
rectangle: "rounded-none",
|
|
@@ -6992,9 +6993,9 @@ const Ms = y("w-full overflow-hidden bg-neutral-200", {
|
|
|
6992
6993
|
shape: "rounded",
|
|
6993
6994
|
size: "md"
|
|
6994
6995
|
}
|
|
6995
|
-
}),
|
|
6996
|
-
function({ shape:
|
|
6997
|
-
const d = ["sm", "md", "lg", "xl"].includes(
|
|
6996
|
+
}), tn = yt.forwardRef(
|
|
6997
|
+
function({ shape: t = "rounded", size: r = "md", height: o, className: s, style: a, ...l }, i) {
|
|
6998
|
+
const d = ["sm", "md", "lg", "xl"].includes(r) ? r : "md", f = o ? {
|
|
6998
6999
|
...a,
|
|
6999
7000
|
height: typeof o == "number" ? `${o}px` : o
|
|
7000
7001
|
} : a;
|
|
@@ -7005,7 +7006,7 @@ const Ms = y("w-full overflow-hidden bg-neutral-200", {
|
|
|
7005
7006
|
role: "presentation",
|
|
7006
7007
|
className: p(
|
|
7007
7008
|
"relative",
|
|
7008
|
-
|
|
7009
|
+
Ps({ shape: t, size: d }),
|
|
7009
7010
|
s
|
|
7010
7011
|
),
|
|
7011
7012
|
style: f,
|
|
@@ -7027,41 +7028,41 @@ const Ms = y("w-full overflow-hidden bg-neutral-200", {
|
|
|
7027
7028
|
}
|
|
7028
7029
|
);
|
|
7029
7030
|
export {
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
|
|
7031
|
+
Ds as Alert,
|
|
7032
|
+
_s as AppBar,
|
|
7033
|
+
Fs as Avatar,
|
|
7034
|
+
zr as Badge,
|
|
7035
|
+
Ls as BottomBar,
|
|
7036
|
+
$s as Breadcrumbs,
|
|
7036
7037
|
Ge as Button,
|
|
7037
|
-
|
|
7038
|
+
Gs as ButtonFloat,
|
|
7038
7039
|
le as ButtonIcon,
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
|
|
7046
|
-
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
|
|
7040
|
+
st as Calendar,
|
|
7041
|
+
Ws as CheckboxInput,
|
|
7042
|
+
Ys as ChipInput,
|
|
7043
|
+
qs as DateSinglePickerInput,
|
|
7044
|
+
Us as Drawer,
|
|
7045
|
+
Ro as DrawerBody,
|
|
7046
|
+
Vo as DrawerFooter,
|
|
7047
|
+
So as DrawerHeader,
|
|
7048
|
+
Io as DrawerOverlay,
|
|
7049
|
+
Lr as Icon,
|
|
7050
|
+
Ss as LoadingIndicator,
|
|
7050
7051
|
Ie as Menu,
|
|
7051
|
-
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7052
|
+
Hs as RadioInput,
|
|
7053
|
+
Xs as SegmentMultipleInput,
|
|
7054
|
+
Js as SegmentSingleInput,
|
|
7055
|
+
Jo as SelectInput,
|
|
7056
|
+
tn as Skeleton,
|
|
7057
|
+
Ks as Snackbar,
|
|
7058
|
+
Ms as SwitchInput,
|
|
7059
|
+
As as SwitchLabel,
|
|
7060
|
+
Ts as SwitchThumb,
|
|
7061
|
+
Es as SwitchTrack,
|
|
7062
|
+
Zs as Tabs,
|
|
7063
|
+
We as Text,
|
|
7064
|
+
cs as TextAreaInput,
|
|
7065
|
+
is as TextInput,
|
|
7065
7066
|
Qs as Tile,
|
|
7066
7067
|
en as TopBar,
|
|
7067
7068
|
je as useDrawerContext
|