@dimasbaguspm/versaur 0.0.3 → 0.0.5
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/badge/badge.stories.d.ts +4 -0
- package/dist/components/badge/helpers.d.ts +1 -0
- package/dist/components/badge/types.d.ts +7 -0
- package/dist/components/button-icon/helpers.d.ts +11 -0
- package/dist/components/button-icon/types.d.ts +13 -17
- package/dist/components/icon/icon.d.ts +3 -3
- package/dist/components/icon/icon.stories.d.ts +1 -1
- package/dist/components/icon/types.d.ts +22 -4
- package/dist/index.js +597 -531
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17,16 +17,16 @@ function zr() {
|
|
|
17
17
|
Me = 1;
|
|
18
18
|
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
19
19
|
function t(o, s, a) {
|
|
20
|
-
var
|
|
21
|
-
if (a !== void 0 && (
|
|
20
|
+
var l = null;
|
|
21
|
+
if (a !== void 0 && (l = "" + a), s.key !== void 0 && (l = "" + s.key), "key" in s) {
|
|
22
22
|
a = {};
|
|
23
|
-
for (var
|
|
24
|
-
|
|
23
|
+
for (var i in s)
|
|
24
|
+
i !== "key" && (a[i] = s[i]);
|
|
25
25
|
} else a = s;
|
|
26
26
|
return s = a.ref, {
|
|
27
27
|
$$typeof: e,
|
|
28
28
|
type: o,
|
|
29
|
-
key:
|
|
29
|
+
key: l,
|
|
30
30
|
ref: s !== void 0 ? s : null,
|
|
31
31
|
props: a
|
|
32
32
|
};
|
|
@@ -127,14 +127,14 @@ function Ir() {
|
|
|
127
127
|
function a() {
|
|
128
128
|
return Error("react-stack-top-frame");
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function l(u) {
|
|
131
131
|
if (te.call(u, "key")) {
|
|
132
132
|
var z = Object.getOwnPropertyDescriptor(u, "key").get;
|
|
133
133
|
if (z && z.isReactWarning) return !1;
|
|
134
134
|
}
|
|
135
135
|
return u.key !== void 0;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function i(u, z) {
|
|
138
138
|
function T() {
|
|
139
139
|
X || (X = !0, console.error(
|
|
140
140
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
@@ -215,12 +215,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
215
215
|
B
|
|
216
216
|
), ge[B + V] = !0);
|
|
217
217
|
}
|
|
218
|
-
if (B = null, T !== void 0 && (t(T), B = "" + T),
|
|
218
|
+
if (B = null, T !== void 0 && (t(T), B = "" + T), l(z) && (t(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]);
|
|
222
222
|
} else T = z;
|
|
223
|
-
return B &&
|
|
223
|
+
return B && i(
|
|
224
224
|
T,
|
|
225
225
|
typeof u == "function" ? u.displayName || u.name || "Unknown" : u
|
|
226
226
|
), d(
|
|
@@ -300,13 +300,13 @@ const Te = "-", Rr = (e) => {
|
|
|
300
300
|
conflictingClassGroupModifiers: o
|
|
301
301
|
} = e;
|
|
302
302
|
return {
|
|
303
|
-
getClassGroupId: (
|
|
304
|
-
const
|
|
305
|
-
return
|
|
303
|
+
getClassGroupId: (l) => {
|
|
304
|
+
const i = l.split(Te);
|
|
305
|
+
return i[0] === "" && i.length !== 1 && i.shift(), qe(i, r) || Vr(l);
|
|
306
306
|
},
|
|
307
|
-
getConflictingClassGroupIds: (
|
|
308
|
-
const c = t[
|
|
309
|
-
return
|
|
307
|
+
getConflictingClassGroupIds: (l, i) => {
|
|
308
|
+
const c = t[l] || [];
|
|
309
|
+
return i && o[l] ? [...c, ...o[l]] : c;
|
|
310
310
|
}
|
|
311
311
|
};
|
|
312
312
|
}, qe = (e, r) => {
|
|
@@ -319,8 +319,8 @@ const Te = "-", Rr = (e) => {
|
|
|
319
319
|
return;
|
|
320
320
|
const a = e.join(Te);
|
|
321
321
|
return r.validators.find(({
|
|
322
|
-
validator:
|
|
323
|
-
}) =>
|
|
322
|
+
validator: l
|
|
323
|
+
}) => l(a))?.classGroupId;
|
|
324
324
|
}, Be = /^\[(.+)\]$/, Vr = (e) => {
|
|
325
325
|
if (Be.test(e)) {
|
|
326
326
|
const r = Be.exec(e)[1], t = r?.substring(0, r.indexOf(":"));
|
|
@@ -356,8 +356,8 @@ const Te = "-", Rr = (e) => {
|
|
|
356
356
|
});
|
|
357
357
|
return;
|
|
358
358
|
}
|
|
359
|
-
Object.entries(s).forEach(([a,
|
|
360
|
-
Se(
|
|
359
|
+
Object.entries(s).forEach(([a, l]) => {
|
|
360
|
+
Se(l, De(r, a), t, o);
|
|
361
361
|
});
|
|
362
362
|
});
|
|
363
363
|
}, De = (e, r) => {
|
|
@@ -377,19 +377,19 @@ const Te = "-", Rr = (e) => {
|
|
|
377
377
|
}
|
|
378
378
|
};
|
|
379
379
|
let r = 0, t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
380
|
-
const s = (a,
|
|
381
|
-
t.set(a,
|
|
380
|
+
const s = (a, l) => {
|
|
381
|
+
t.set(a, l), r++, r > e && (r = 0, o = t, t = /* @__PURE__ */ new Map());
|
|
382
382
|
};
|
|
383
383
|
return {
|
|
384
384
|
get(a) {
|
|
385
|
-
let
|
|
386
|
-
if (
|
|
387
|
-
return
|
|
388
|
-
if ((
|
|
389
|
-
return s(a,
|
|
385
|
+
let l = t.get(a);
|
|
386
|
+
if (l !== void 0)
|
|
387
|
+
return l;
|
|
388
|
+
if ((l = o.get(a)) !== void 0)
|
|
389
|
+
return s(a, l), l;
|
|
390
390
|
},
|
|
391
|
-
set(a,
|
|
392
|
-
t.has(a) ? t.set(a,
|
|
391
|
+
set(a, l) {
|
|
392
|
+
t.has(a) ? t.set(a, l) : s(a, l);
|
|
393
393
|
}
|
|
394
394
|
};
|
|
395
395
|
}, Re = "!", Ve = ":", Mr = Ve.length, Pr = (e) => {
|
|
@@ -399,10 +399,10 @@ const Te = "-", Rr = (e) => {
|
|
|
399
399
|
} = e;
|
|
400
400
|
let o = (s) => {
|
|
401
401
|
const a = [];
|
|
402
|
-
let
|
|
402
|
+
let l = 0, i = 0, c = 0, d;
|
|
403
403
|
for (let v = 0; v < s.length; v++) {
|
|
404
404
|
let w = s[v];
|
|
405
|
-
if (
|
|
405
|
+
if (l === 0 && i === 0) {
|
|
406
406
|
if (w === Ve) {
|
|
407
407
|
a.push(s.slice(c, v)), c = v + Mr;
|
|
408
408
|
continue;
|
|
@@ -412,7 +412,7 @@ const Te = "-", Rr = (e) => {
|
|
|
412
412
|
continue;
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
w === "[" ?
|
|
415
|
+
w === "[" ? l++ : w === "]" ? l-- : w === "(" ? i++ : w === ")" && i--;
|
|
416
416
|
}
|
|
417
417
|
const f = a.length === 0 ? s : s.substring(c), g = Or(f), b = g !== f, m = d && d > c ? d - c : void 0;
|
|
418
418
|
return {
|
|
@@ -424,11 +424,11 @@ const Te = "-", Rr = (e) => {
|
|
|
424
424
|
};
|
|
425
425
|
if (r) {
|
|
426
426
|
const s = r + Ve, a = o;
|
|
427
|
-
o = (
|
|
427
|
+
o = (l) => l.startsWith(s) ? a(l.substring(s.length)) : {
|
|
428
428
|
isExternal: !0,
|
|
429
429
|
modifiers: [],
|
|
430
430
|
hasImportantModifier: !1,
|
|
431
|
-
baseClassName:
|
|
431
|
+
baseClassName: l,
|
|
432
432
|
maybePostfixModifierPosition: void 0
|
|
433
433
|
};
|
|
434
434
|
}
|
|
@@ -447,8 +447,8 @@ const Te = "-", Rr = (e) => {
|
|
|
447
447
|
return o;
|
|
448
448
|
const s = [];
|
|
449
449
|
let a = [];
|
|
450
|
-
return o.forEach((
|
|
451
|
-
|
|
450
|
+
return o.forEach((l) => {
|
|
451
|
+
l[0] === "[" || r[l] ? (s.push(...a.sort(), l), a = []) : a.push(l);
|
|
452
452
|
}), s.push(...a.sort()), s;
|
|
453
453
|
};
|
|
454
454
|
}, Dr = (e) => ({
|
|
@@ -462,10 +462,10 @@ const Te = "-", Rr = (e) => {
|
|
|
462
462
|
getClassGroupId: o,
|
|
463
463
|
getConflictingClassGroupIds: s,
|
|
464
464
|
sortModifiers: a
|
|
465
|
-
} = r,
|
|
465
|
+
} = r, l = [], i = e.trim().split(_r);
|
|
466
466
|
let c = "";
|
|
467
|
-
for (let d =
|
|
468
|
-
const f =
|
|
467
|
+
for (let d = i.length - 1; d >= 0; d -= 1) {
|
|
468
|
+
const f = i[d], {
|
|
469
469
|
isExternal: g,
|
|
470
470
|
modifiers: b,
|
|
471
471
|
hasImportantModifier: m,
|
|
@@ -489,13 +489,13 @@ const Te = "-", Rr = (e) => {
|
|
|
489
489
|
C = !1;
|
|
490
490
|
}
|
|
491
491
|
const A = a(b).join(":"), N = m ? A + Re : A, M = N + R;
|
|
492
|
-
if (
|
|
492
|
+
if (l.includes(M))
|
|
493
493
|
continue;
|
|
494
|
-
|
|
494
|
+
l.push(M);
|
|
495
495
|
const F = s(R, C);
|
|
496
496
|
for (let L = 0; L < F.length; ++L) {
|
|
497
497
|
const J = F[L];
|
|
498
|
-
|
|
498
|
+
l.push(N + J);
|
|
499
499
|
}
|
|
500
500
|
c = f + (c.length > 0 ? " " + c : c);
|
|
501
501
|
}
|
|
@@ -516,12 +516,12 @@ const Ue = (e) => {
|
|
|
516
516
|
return t;
|
|
517
517
|
};
|
|
518
518
|
function $r(e, ...r) {
|
|
519
|
-
let t, o, s, a =
|
|
520
|
-
function
|
|
519
|
+
let t, o, s, a = l;
|
|
520
|
+
function l(c) {
|
|
521
521
|
const d = r.reduce((f, g) => g(f), e());
|
|
522
|
-
return t = Dr(d), o = t.cache.get, s = t.cache.set, a =
|
|
522
|
+
return t = Dr(d), o = t.cache.get, s = t.cache.set, a = i, i(c);
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function i(c) {
|
|
525
525
|
const d = o(c);
|
|
526
526
|
if (d)
|
|
527
527
|
return d;
|
|
@@ -547,7 +547,7 @@ const D = (e) => {
|
|
|
547
547
|
const o = Je.exec(e);
|
|
548
548
|
return o ? o[1] ? r(o[1]) : t : !1;
|
|
549
549
|
}, Ke = (e) => e === "position" || e === "percentage", Ze = (e) => e === "image" || e === "url", Qe = (e) => e === "length" || e === "size" || e === "bg-size", er = (e) => e === "length", nt = (e) => e === "number", at = (e) => e === "family-name", rr = (e) => e === "shadow", it = () => {
|
|
550
|
-
const e = D("color"), r = D("font"), t = D("text"), o = D("font-weight"), s = D("tracking"), a = D("leading"),
|
|
550
|
+
const e = D("color"), r = D("font"), t = 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",
|
|
@@ -634,7 +634,7 @@ const D = (e) => {
|
|
|
634
634
|
* @see https://tailwindcss.com/docs/columns
|
|
635
635
|
*/
|
|
636
636
|
columns: [{
|
|
637
|
-
columns: [S, h, x,
|
|
637
|
+
columns: [S, h, x, i]
|
|
638
638
|
}],
|
|
639
639
|
/**
|
|
640
640
|
* Break After
|
|
@@ -844,7 +844,7 @@ const D = (e) => {
|
|
|
844
844
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
845
845
|
*/
|
|
846
846
|
basis: [{
|
|
847
|
-
basis: [ie, "full", "auto",
|
|
847
|
+
basis: [ie, "full", "auto", i, ...j()]
|
|
848
848
|
}],
|
|
849
849
|
/**
|
|
850
850
|
* Flex Direction
|
|
@@ -1219,7 +1219,7 @@ const D = (e) => {
|
|
|
1219
1219
|
* @see https://tailwindcss.com/docs/width
|
|
1220
1220
|
*/
|
|
1221
1221
|
w: [{
|
|
1222
|
-
w: [
|
|
1222
|
+
w: [i, "screen", ...q()]
|
|
1223
1223
|
}],
|
|
1224
1224
|
/**
|
|
1225
1225
|
* Min-Width
|
|
@@ -1227,7 +1227,7 @@ const D = (e) => {
|
|
|
1227
1227
|
*/
|
|
1228
1228
|
"min-w": [{
|
|
1229
1229
|
"min-w": [
|
|
1230
|
-
|
|
1230
|
+
i,
|
|
1231
1231
|
"screen",
|
|
1232
1232
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1233
1233
|
"none",
|
|
@@ -1240,14 +1240,14 @@ const D = (e) => {
|
|
|
1240
1240
|
*/
|
|
1241
1241
|
"max-w": [{
|
|
1242
1242
|
"max-w": [
|
|
1243
|
-
|
|
1243
|
+
i,
|
|
1244
1244
|
"screen",
|
|
1245
1245
|
"none",
|
|
1246
1246
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1247
1247
|
"prose",
|
|
1248
1248
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1249
1249
|
{
|
|
1250
|
-
screen: [
|
|
1250
|
+
screen: [l]
|
|
1251
1251
|
},
|
|
1252
1252
|
...q()
|
|
1253
1253
|
]
|
|
@@ -3023,12 +3023,12 @@ function p(...e) {
|
|
|
3023
3023
|
const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y = (e, r) => (t) => {
|
|
3024
3024
|
var o;
|
|
3025
3025
|
if (r?.variants == null) return $e(e, t?.class, t?.className);
|
|
3026
|
-
const { variants: s, defaultVariants: a } = r,
|
|
3026
|
+
const { variants: s, defaultVariants: a } = r, l = Object.keys(s).map((d) => {
|
|
3027
3027
|
const f = t?.[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
|
-
}),
|
|
3031
|
+
}), i = t && Object.entries(t).reduce((d, f) => {
|
|
3032
3032
|
let [g, b] = f;
|
|
3033
3033
|
return b === void 0 || (d[g] = b), d;
|
|
3034
3034
|
}, {}), c = r == null || (o = r.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((d, f) => {
|
|
@@ -3037,10 +3037,10 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3037
3037
|
let [w, C] = v;
|
|
3038
3038
|
return Array.isArray(C) ? C.includes({
|
|
3039
3039
|
...a,
|
|
3040
|
-
...
|
|
3040
|
+
...i
|
|
3041
3041
|
}[w]) : {
|
|
3042
3042
|
...a,
|
|
3043
|
-
...
|
|
3043
|
+
...i
|
|
3044
3044
|
}[w] === C;
|
|
3045
3045
|
}) ? [
|
|
3046
3046
|
...d,
|
|
@@ -3048,7 +3048,7 @@ 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,
|
|
3051
|
+
return $e(e, l, c, t?.class, t?.className);
|
|
3052
3052
|
}, ct = y(
|
|
3053
3053
|
"relative flex items-center gap-1 rounded-md p-2 text-sm transition-all duration-200",
|
|
3054
3054
|
{
|
|
@@ -3194,10 +3194,10 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3194
3194
|
className: o,
|
|
3195
3195
|
children: s,
|
|
3196
3196
|
...a
|
|
3197
|
-
},
|
|
3197
|
+
}, l) => /* @__PURE__ */ n.jsxs(
|
|
3198
3198
|
"div",
|
|
3199
3199
|
{
|
|
3200
|
-
ref:
|
|
3200
|
+
ref: l,
|
|
3201
3201
|
role: "alert",
|
|
3202
3202
|
className: p(ct({ variant: e, color: r }), o),
|
|
3203
3203
|
...a,
|
|
@@ -3207,7 +3207,7 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3207
3207
|
]
|
|
3208
3208
|
}
|
|
3209
3209
|
)
|
|
3210
|
-
),
|
|
3210
|
+
), Bs = Object.assign(ut, {
|
|
3211
3211
|
Icon: tr
|
|
3212
3212
|
}), gt = y(
|
|
3213
3213
|
"w-full flex items-center px-4 py-3 gap-2 bg-white",
|
|
@@ -3288,7 +3288,7 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3288
3288
|
role: "banner",
|
|
3289
3289
|
children: e
|
|
3290
3290
|
}
|
|
3291
|
-
),
|
|
3291
|
+
), Ds = Object.assign(vt, {
|
|
3292
3292
|
Leading: bt,
|
|
3293
3293
|
Headline: mt,
|
|
3294
3294
|
Subtitle: ht,
|
|
@@ -3300,16 +3300,16 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3300
3300
|
variants: {
|
|
3301
3301
|
variant: {
|
|
3302
3302
|
// Core variants using Versaur color system
|
|
3303
|
-
primary: "bg-coral text-
|
|
3304
|
-
secondary: "bg-sage text-
|
|
3305
|
-
tertiary: "bg-mist text-
|
|
3306
|
-
ghost: "bg-slate text-
|
|
3307
|
-
neutral: "bg-neutral text-foreground border border-border",
|
|
3303
|
+
primary: "bg-coral/10 text-coral",
|
|
3304
|
+
secondary: "bg-sage/10 text-sage",
|
|
3305
|
+
tertiary: "bg-mist/10 text-mist",
|
|
3306
|
+
ghost: "bg-slate/10 text-slate",
|
|
3307
|
+
neutral: "bg-neutral/10 text-foreground border border-border",
|
|
3308
3308
|
// Semantic variants
|
|
3309
|
-
success: "bg-success text-
|
|
3310
|
-
info: "bg-info text-
|
|
3311
|
-
warning: "bg-warning text-
|
|
3312
|
-
danger: "bg-danger text-
|
|
3309
|
+
success: "bg-success/10 text-success",
|
|
3310
|
+
info: "bg-info/10 text-info",
|
|
3311
|
+
warning: "bg-warning/10 text-warning",
|
|
3312
|
+
danger: "bg-danger/10 text-danger"
|
|
3313
3313
|
},
|
|
3314
3314
|
size: {
|
|
3315
3315
|
xs: "h-6 w-6 text-xs",
|
|
@@ -3340,10 +3340,10 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3340
3340
|
className: o,
|
|
3341
3341
|
children: s,
|
|
3342
3342
|
...a
|
|
3343
|
-
},
|
|
3343
|
+
}, l) => /* @__PURE__ */ n.jsx(
|
|
3344
3344
|
"div",
|
|
3345
3345
|
{
|
|
3346
|
-
ref:
|
|
3346
|
+
ref: l,
|
|
3347
3347
|
className: p(wt({ variant: e, size: r, shape: t }), o),
|
|
3348
3348
|
...a,
|
|
3349
3349
|
children: s
|
|
@@ -3351,17 +3351,17 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3351
3351
|
)
|
|
3352
3352
|
), jt = E(
|
|
3353
3353
|
({ src: e, alt: r, className: t, onError: o, ...s }, a) => {
|
|
3354
|
-
const [
|
|
3354
|
+
const [l, i] = U(!1);
|
|
3355
3355
|
H(() => {
|
|
3356
|
-
|
|
3356
|
+
i(!1);
|
|
3357
3357
|
}, [e]);
|
|
3358
3358
|
const c = ke(
|
|
3359
3359
|
(d) => {
|
|
3360
|
-
|
|
3360
|
+
i(!0), o?.(d);
|
|
3361
3361
|
},
|
|
3362
3362
|
[o]
|
|
3363
3363
|
);
|
|
3364
|
-
return
|
|
3364
|
+
return l ? null : /* @__PURE__ */ n.jsx(
|
|
3365
3365
|
"img",
|
|
3366
3366
|
{
|
|
3367
3367
|
ref: a,
|
|
@@ -3373,13 +3373,13 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3373
3373
|
}
|
|
3374
3374
|
);
|
|
3375
3375
|
}
|
|
3376
|
-
),
|
|
3376
|
+
), _s = Object.assign(kt, {
|
|
3377
3377
|
/**
|
|
3378
3378
|
* AvatarImage sub-component for displaying images with fallback behavior
|
|
3379
3379
|
*/
|
|
3380
3380
|
Image: jt
|
|
3381
3381
|
}), Nt = y(
|
|
3382
|
-
"inline-flex items-center justify-center font-medium transition-all duration-200 select-none
|
|
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: {
|
|
3385
3385
|
variant: {
|
|
@@ -3403,6 +3403,11 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3403
3403
|
rounded: "rounded-full",
|
|
3404
3404
|
square: "rounded-md"
|
|
3405
3405
|
},
|
|
3406
|
+
size: {
|
|
3407
|
+
sm: "text-xs px-1 py-0.25 h-3",
|
|
3408
|
+
md: "text-sm px-1.5 py-0.5 h-4",
|
|
3409
|
+
lg: "text-sm px-2 py-1 h-6"
|
|
3410
|
+
},
|
|
3406
3411
|
iconOnly: {
|
|
3407
3412
|
true: "",
|
|
3408
3413
|
false: ""
|
|
@@ -3504,13 +3509,25 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3504
3509
|
// Icon-only size adjustments
|
|
3505
3510
|
{
|
|
3506
3511
|
iconOnly: !0,
|
|
3512
|
+
size: "sm",
|
|
3507
3513
|
className: "px-1 py-1 w-5 h-5"
|
|
3514
|
+
},
|
|
3515
|
+
{
|
|
3516
|
+
iconOnly: !0,
|
|
3517
|
+
size: "md",
|
|
3518
|
+
className: "px-1.5 py-1.5 w-6 h-6"
|
|
3519
|
+
},
|
|
3520
|
+
{
|
|
3521
|
+
iconOnly: !0,
|
|
3522
|
+
size: "lg",
|
|
3523
|
+
className: "px-2 py-2 w-7 h-7"
|
|
3508
3524
|
}
|
|
3509
3525
|
],
|
|
3510
3526
|
defaultVariants: {
|
|
3511
3527
|
variant: "default",
|
|
3512
3528
|
color: "primary",
|
|
3513
3529
|
shape: "square",
|
|
3530
|
+
size: "md",
|
|
3514
3531
|
iconOnly: !1
|
|
3515
3532
|
}
|
|
3516
3533
|
}
|
|
@@ -3519,36 +3536,38 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3519
3536
|
variant: e = "default",
|
|
3520
3537
|
shape: r = "square",
|
|
3521
3538
|
color: t = "primary",
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3539
|
+
size: o = "md",
|
|
3540
|
+
iconLeft: s,
|
|
3541
|
+
iconRight: a,
|
|
3542
|
+
className: l,
|
|
3525
3543
|
children: i,
|
|
3526
|
-
...
|
|
3527
|
-
},
|
|
3528
|
-
const
|
|
3544
|
+
...c
|
|
3545
|
+
}, d) => {
|
|
3546
|
+
const b = !(i != null && i !== "") && !!(s || a);
|
|
3529
3547
|
return /* @__PURE__ */ n.jsx(
|
|
3530
3548
|
"span",
|
|
3531
3549
|
{
|
|
3532
|
-
ref:
|
|
3550
|
+
ref: d,
|
|
3533
3551
|
className: p(
|
|
3534
3552
|
Nt({
|
|
3535
3553
|
variant: e,
|
|
3536
3554
|
color: t,
|
|
3537
3555
|
shape: r,
|
|
3538
|
-
|
|
3556
|
+
size: o,
|
|
3557
|
+
iconOnly: b
|
|
3539
3558
|
}),
|
|
3540
|
-
|
|
3559
|
+
l
|
|
3541
3560
|
),
|
|
3542
|
-
...
|
|
3543
|
-
children:
|
|
3561
|
+
...c,
|
|
3562
|
+
children: b ? (
|
|
3544
3563
|
// Icon-only mode: display only the icon
|
|
3545
|
-
|
|
3564
|
+
s || a
|
|
3546
3565
|
) : (
|
|
3547
3566
|
// Normal mode: display icon(s) and text
|
|
3548
3567
|
/* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3549
|
-
|
|
3568
|
+
s,
|
|
3550
3569
|
i,
|
|
3551
|
-
|
|
3570
|
+
a
|
|
3552
3571
|
] })
|
|
3553
3572
|
)
|
|
3554
3573
|
}
|
|
@@ -3620,7 +3639,7 @@ const zt = y(
|
|
|
3620
3639
|
...s,
|
|
3621
3640
|
children: e
|
|
3622
3641
|
}
|
|
3623
|
-
),
|
|
3642
|
+
), Fs = Object.assign(Rt, {
|
|
3624
3643
|
Item: St
|
|
3625
3644
|
}), Vt = y(
|
|
3626
3645
|
"flex items-center gap-2 text-sm text-slate-700 dark:text-slate-200",
|
|
@@ -3648,11 +3667,11 @@ const zt = y(
|
|
|
3648
3667
|
isCurrent: !1
|
|
3649
3668
|
}
|
|
3650
3669
|
}
|
|
3651
|
-
), Tt = "mx-1 text-slate-400 dark:text-slate-500 select-none", At = E(function({ children: r, icon: t, isCurrent: o, className: s, ...a },
|
|
3670
|
+
), Tt = "mx-1 text-slate-400 dark:text-slate-500 select-none", At = E(function({ children: r, icon: t, isCurrent: o, className: s, ...a }, l) {
|
|
3652
3671
|
return /* @__PURE__ */ n.jsx("li", { className: "flex items-center", children: /* @__PURE__ */ n.jsxs(
|
|
3653
3672
|
"a",
|
|
3654
3673
|
{
|
|
3655
|
-
ref:
|
|
3674
|
+
ref: l,
|
|
3656
3675
|
"aria-current": o ? "page" : void 0,
|
|
3657
3676
|
tabIndex: o ? -1 : 0,
|
|
3658
3677
|
className: p(Et({ isCurrent: o }) + s),
|
|
@@ -3671,7 +3690,7 @@ const Pt = E(
|
|
|
3671
3690
|
function({ children: r, "aria-label": t = "Breadcrumb", ...o }, s) {
|
|
3672
3691
|
return /* @__PURE__ */ n.jsx("nav", { "aria-label": t, ...o, children: /* @__PURE__ */ n.jsx("ol", { ref: s, className: Vt(), children: r }) });
|
|
3673
3692
|
}
|
|
3674
|
-
),
|
|
3693
|
+
), Ls = Object.assign(Pt, {
|
|
3675
3694
|
Item: At,
|
|
3676
3695
|
Separator: Mt
|
|
3677
3696
|
}), Ot = y(
|
|
@@ -3731,8 +3750,8 @@ const Pt = E(
|
|
|
3731
3750
|
size: o = "md",
|
|
3732
3751
|
disabled: s = !1,
|
|
3733
3752
|
type: a = "button",
|
|
3734
|
-
children:
|
|
3735
|
-
...
|
|
3753
|
+
children: l,
|
|
3754
|
+
...i
|
|
3736
3755
|
}, c) {
|
|
3737
3756
|
return /* @__PURE__ */ n.jsx(
|
|
3738
3757
|
"button",
|
|
@@ -3743,12 +3762,47 @@ const Pt = E(
|
|
|
3743
3762
|
disabled: s,
|
|
3744
3763
|
"aria-disabled": s,
|
|
3745
3764
|
inert: s ? !0 : void 0,
|
|
3746
|
-
...
|
|
3747
|
-
children:
|
|
3765
|
+
...i,
|
|
3766
|
+
children: l
|
|
3748
3767
|
}
|
|
3749
3768
|
);
|
|
3750
3769
|
}
|
|
3751
|
-
)
|
|
3770
|
+
);
|
|
3771
|
+
function Bt(e = "primary") {
|
|
3772
|
+
const r = e.split("-");
|
|
3773
|
+
if (r.length === 1)
|
|
3774
|
+
switch (r[0]) {
|
|
3775
|
+
case "ghost":
|
|
3776
|
+
case "neutral":
|
|
3777
|
+
case "outline":
|
|
3778
|
+
return "ghost";
|
|
3779
|
+
default:
|
|
3780
|
+
return "neutral";
|
|
3781
|
+
}
|
|
3782
|
+
switch (r[0]) {
|
|
3783
|
+
case "primary":
|
|
3784
|
+
return "primary";
|
|
3785
|
+
case "secondary":
|
|
3786
|
+
return "secondary";
|
|
3787
|
+
case "tertiary":
|
|
3788
|
+
return "tertiary";
|
|
3789
|
+
case "ghost":
|
|
3790
|
+
return "ghost";
|
|
3791
|
+
case "neutral":
|
|
3792
|
+
return "ghost";
|
|
3793
|
+
case "success":
|
|
3794
|
+
return "success";
|
|
3795
|
+
case "info":
|
|
3796
|
+
return "info";
|
|
3797
|
+
case "warning":
|
|
3798
|
+
return "warning";
|
|
3799
|
+
case "danger":
|
|
3800
|
+
return "danger";
|
|
3801
|
+
default:
|
|
3802
|
+
return "neutral";
|
|
3803
|
+
}
|
|
3804
|
+
}
|
|
3805
|
+
const Dt = y(
|
|
3752
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",
|
|
3753
3807
|
{
|
|
3754
3808
|
variants: {
|
|
@@ -3788,9 +3842,11 @@ const Pt = E(
|
|
|
3788
3842
|
destructive: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger/20 focus-visible:ring-offset-white shadow-sm hover:shadow-md"
|
|
3789
3843
|
},
|
|
3790
3844
|
size: {
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3845
|
+
xs: "h-6 w-6",
|
|
3846
|
+
sm: "h-8 w-8",
|
|
3847
|
+
md: "h-10 w-10",
|
|
3848
|
+
lg: "h-12 w-12",
|
|
3849
|
+
xl: "h-14 w-14"
|
|
3794
3850
|
},
|
|
3795
3851
|
shape: {
|
|
3796
3852
|
rounded: "rounded-md",
|
|
@@ -3804,15 +3860,49 @@ const Pt = E(
|
|
|
3804
3860
|
shape: "rounded"
|
|
3805
3861
|
}
|
|
3806
3862
|
}
|
|
3807
|
-
),
|
|
3863
|
+
), _t = y("inline-flex items-center justify-center", {
|
|
3864
|
+
variants: {
|
|
3865
|
+
size: {
|
|
3866
|
+
xs: "w-3 h-3",
|
|
3867
|
+
sm: "w-4 h-4",
|
|
3868
|
+
md: "w-5 h-5",
|
|
3869
|
+
lg: "w-6 h-6",
|
|
3870
|
+
xl: "w-8 h-8"
|
|
3871
|
+
},
|
|
3872
|
+
color: {
|
|
3873
|
+
primary: "text-primary",
|
|
3874
|
+
secondary: "text-secondary",
|
|
3875
|
+
tertiary: "text-tertiary",
|
|
3876
|
+
ghost: "text-ghost",
|
|
3877
|
+
neutral: "text-neutral",
|
|
3878
|
+
success: "text-success",
|
|
3879
|
+
info: "text-info",
|
|
3880
|
+
warning: "text-warning",
|
|
3881
|
+
danger: "text-danger"
|
|
3882
|
+
}
|
|
3883
|
+
},
|
|
3884
|
+
defaultVariants: {
|
|
3885
|
+
size: "md",
|
|
3886
|
+
color: "primary"
|
|
3887
|
+
}
|
|
3888
|
+
}), Ft = I.forwardRef(function({ as: r, color: t = "primary", size: o = "md", className: s, ...a }, l) {
|
|
3889
|
+
return /* @__PURE__ */ n.jsx(
|
|
3890
|
+
r,
|
|
3891
|
+
{
|
|
3892
|
+
ref: l,
|
|
3893
|
+
className: _t({ color: t, size: o, className: s }),
|
|
3894
|
+
...a
|
|
3895
|
+
}
|
|
3896
|
+
);
|
|
3897
|
+
}), le = I.forwardRef(
|
|
3808
3898
|
function({
|
|
3809
3899
|
className: r,
|
|
3810
3900
|
variant: t = "primary",
|
|
3811
3901
|
size: o = "md",
|
|
3812
3902
|
shape: s = "rounded",
|
|
3813
3903
|
disabled: a = !1,
|
|
3814
|
-
|
|
3815
|
-
"aria-label":
|
|
3904
|
+
as: l,
|
|
3905
|
+
"aria-label": i,
|
|
3816
3906
|
...c
|
|
3817
3907
|
}, d) {
|
|
3818
3908
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -3820,17 +3910,31 @@ const Pt = E(
|
|
|
3820
3910
|
{
|
|
3821
3911
|
ref: d,
|
|
3822
3912
|
type: "button",
|
|
3823
|
-
className: p(
|
|
3913
|
+
className: p(
|
|
3914
|
+
Dt({
|
|
3915
|
+
variant: t,
|
|
3916
|
+
size: o,
|
|
3917
|
+
shape: s
|
|
3918
|
+
}),
|
|
3919
|
+
r
|
|
3920
|
+
),
|
|
3824
3921
|
disabled: a,
|
|
3825
3922
|
"aria-disabled": a,
|
|
3826
|
-
"aria-label":
|
|
3923
|
+
"aria-label": i,
|
|
3827
3924
|
inert: a ? !0 : void 0,
|
|
3828
3925
|
...c,
|
|
3829
|
-
children:
|
|
3926
|
+
children: /* @__PURE__ */ n.jsx(
|
|
3927
|
+
Ft,
|
|
3928
|
+
{
|
|
3929
|
+
as: l,
|
|
3930
|
+
size: o,
|
|
3931
|
+
color: Bt(t)
|
|
3932
|
+
}
|
|
3933
|
+
)
|
|
3830
3934
|
}
|
|
3831
3935
|
);
|
|
3832
3936
|
}
|
|
3833
|
-
),
|
|
3937
|
+
), Lt = y(
|
|
3834
3938
|
[
|
|
3835
3939
|
"inline-flex items-center justify-center gap-2",
|
|
3836
3940
|
"rounded-lg",
|
|
@@ -3896,18 +4000,18 @@ const Pt = E(
|
|
|
3896
4000
|
size: "md"
|
|
3897
4001
|
}
|
|
3898
4002
|
}
|
|
3899
|
-
),
|
|
4003
|
+
), $s = E(
|
|
3900
4004
|
function({
|
|
3901
4005
|
className: r,
|
|
3902
4006
|
variant: t = "primary",
|
|
3903
4007
|
size: o = "md",
|
|
3904
4008
|
side: s = "right",
|
|
3905
4009
|
offset: a = "1rem",
|
|
3906
|
-
style:
|
|
3907
|
-
...
|
|
4010
|
+
style: l,
|
|
4011
|
+
...i
|
|
3908
4012
|
}, c) {
|
|
3909
4013
|
const d = s === "right" ? "fixed bottom-4 right-4" : "fixed bottom-4 left-4", f = {
|
|
3910
|
-
...
|
|
4014
|
+
...l || {},
|
|
3911
4015
|
bottom: a,
|
|
3912
4016
|
position: "fixed",
|
|
3913
4017
|
zIndex: 50
|
|
@@ -3918,90 +4022,90 @@ const Pt = E(
|
|
|
3918
4022
|
"button",
|
|
3919
4023
|
{
|
|
3920
4024
|
ref: c,
|
|
3921
|
-
type:
|
|
4025
|
+
type: i.type || "button",
|
|
3922
4026
|
className: p(
|
|
3923
|
-
|
|
4027
|
+
Lt({ variant: t, size: o }),
|
|
3924
4028
|
d,
|
|
3925
4029
|
g && "animate-fab-in",
|
|
3926
4030
|
r
|
|
3927
4031
|
),
|
|
3928
4032
|
style: f,
|
|
3929
|
-
...
|
|
4033
|
+
...i
|
|
3930
4034
|
}
|
|
3931
4035
|
);
|
|
3932
4036
|
}
|
|
3933
|
-
),
|
|
4037
|
+
), $t = ({
|
|
3934
4038
|
value: e,
|
|
3935
4039
|
onChange: r,
|
|
3936
4040
|
className: t,
|
|
3937
4041
|
...o
|
|
3938
4042
|
}) => {
|
|
3939
|
-
const s = /* @__PURE__ */ new Date(), [a,
|
|
4043
|
+
const s = /* @__PURE__ */ new Date(), [a, l] = U(s.getMonth()), [i, c] = U(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: [
|
|
3940
4044
|
/* @__PURE__ */ n.jsx("span", { className: "font-semibold text-lg", children: e ? e.toLocaleDateString(void 0, {
|
|
3941
4045
|
year: "numeric",
|
|
3942
4046
|
month: "long",
|
|
3943
4047
|
day: "numeric"
|
|
3944
|
-
}) : `${
|
|
4048
|
+
}) : `${i} ${new Date(i, a).toLocaleString(void 0, { month: "long" })}` }),
|
|
3945
4049
|
/* @__PURE__ */ n.jsxs("div", { className: "flex gap-2", children: [
|
|
3946
4050
|
/* @__PURE__ */ n.jsx(
|
|
3947
4051
|
le,
|
|
3948
4052
|
{
|
|
4053
|
+
as: kr,
|
|
3949
4054
|
variant: "ghost",
|
|
3950
4055
|
size: "sm",
|
|
3951
4056
|
"aria-label": "Previous month",
|
|
3952
4057
|
onClick: () => {
|
|
3953
|
-
const v = a === 0 ? 11 : a - 1, w = a === 0 ?
|
|
3954
|
-
|
|
3955
|
-
}
|
|
3956
|
-
children: /* @__PURE__ */ n.jsx(kr, { className: "h-4 w-4" })
|
|
4058
|
+
const v = a === 0 ? 11 : a - 1, w = a === 0 ? i - 1 : i;
|
|
4059
|
+
l(v), c(w), r?.(new Date(w, v, 1));
|
|
4060
|
+
}
|
|
3957
4061
|
}
|
|
3958
4062
|
),
|
|
3959
4063
|
/* @__PURE__ */ n.jsx(
|
|
3960
4064
|
le,
|
|
3961
4065
|
{
|
|
4066
|
+
as: jr,
|
|
3962
4067
|
variant: "ghost",
|
|
3963
4068
|
size: "sm",
|
|
3964
4069
|
"aria-label": "Next month",
|
|
3965
4070
|
onClick: () => {
|
|
3966
|
-
const v = a === 11 ? 0 : a + 1, w = a === 11 ?
|
|
3967
|
-
|
|
3968
|
-
}
|
|
3969
|
-
children: /* @__PURE__ */ n.jsx(jr, { className: "h-4 w-4" })
|
|
4071
|
+
const v = a === 11 ? 0 : a + 1, w = a === 11 ? i + 1 : i;
|
|
4072
|
+
l(v), c(w), r?.(new Date(w, v, 1));
|
|
4073
|
+
}
|
|
3970
4074
|
}
|
|
3971
4075
|
)
|
|
3972
4076
|
] })
|
|
3973
4077
|
] }), b = () => /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-7 px-4 text-xs text-slate-500 mb-1", children: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map((v) => /* @__PURE__ */ n.jsx("div", { className: "flex items-center justify-center h-6", children: v }, v)) }), m = () => {
|
|
3974
|
-
const v = [], w = f(
|
|
4078
|
+
const v = [], w = f(i, a), C = d(i, a), R = d(i, a - 1 < 0 ? 11 : a - 1);
|
|
3975
4079
|
for (let N = 0; N < w; N++)
|
|
3976
4080
|
v.push(
|
|
3977
4081
|
/* @__PURE__ */ n.jsx(
|
|
3978
4082
|
le,
|
|
3979
4083
|
{
|
|
4084
|
+
as: () => R - w + N + 1,
|
|
3980
4085
|
size: "sm",
|
|
3981
4086
|
"aria-label": "Previous month day",
|
|
3982
4087
|
variant: "ghost",
|
|
3983
4088
|
className: "text-slate-300",
|
|
3984
4089
|
onClick: () => {
|
|
3985
|
-
const M = a === 0 ? 11 : a - 1, F = a === 0 ?
|
|
3986
|
-
r?.(new Date(F, M, L)),
|
|
3987
|
-
}
|
|
3988
|
-
children: R - w + N + 1
|
|
4090
|
+
const M = a === 0 ? 11 : a - 1, F = a === 0 ? i - 1 : i, L = R - w + N + 1;
|
|
4091
|
+
r?.(new Date(F, M, L)), l(M), c(F);
|
|
4092
|
+
}
|
|
3989
4093
|
},
|
|
3990
4094
|
"prev-" + N
|
|
3991
4095
|
)
|
|
3992
4096
|
);
|
|
3993
4097
|
for (let N = 1; N <= C; N++) {
|
|
3994
|
-
const M = e && e.getFullYear() ===
|
|
4098
|
+
const M = e && e.getFullYear() === i && e.getMonth() === a && e.getDate() === N;
|
|
3995
4099
|
v.push(
|
|
3996
4100
|
/* @__PURE__ */ n.jsx(
|
|
3997
4101
|
le,
|
|
3998
4102
|
{
|
|
4103
|
+
as: () => N,
|
|
3999
4104
|
variant: M ? "primary" : "ghost",
|
|
4000
4105
|
size: "sm",
|
|
4001
|
-
"aria-label": `Select ${
|
|
4106
|
+
"aria-label": `Select ${i}-${a + 1}-${N}`,
|
|
4002
4107
|
"aria-current": M ? "date" : void 0,
|
|
4003
|
-
onClick: () => r?.(new Date(
|
|
4004
|
-
children: N
|
|
4108
|
+
onClick: () => r?.(new Date(i, a, N))
|
|
4005
4109
|
},
|
|
4006
4110
|
N
|
|
4007
4111
|
)
|
|
@@ -4013,15 +4117,15 @@ const Pt = E(
|
|
|
4013
4117
|
/* @__PURE__ */ n.jsx(
|
|
4014
4118
|
le,
|
|
4015
4119
|
{
|
|
4120
|
+
as: () => N + 1,
|
|
4016
4121
|
size: "sm",
|
|
4017
4122
|
"aria-label": "Next month day",
|
|
4018
4123
|
variant: "ghost",
|
|
4019
4124
|
className: "text-slate-300",
|
|
4020
4125
|
onClick: () => {
|
|
4021
|
-
const M = a === 11 ? 0 : a + 1, F = a === 11 ?
|
|
4022
|
-
r?.(new Date(F, M, L)),
|
|
4023
|
-
}
|
|
4024
|
-
children: N + 1
|
|
4126
|
+
const M = a === 11 ? 0 : a + 1, F = a === 11 ? i + 1 : i, L = N + 1;
|
|
4127
|
+
r?.(new Date(F, M, L)), l(M), c(F);
|
|
4128
|
+
}
|
|
4025
4129
|
},
|
|
4026
4130
|
"next-" + N
|
|
4027
4131
|
)
|
|
@@ -4033,7 +4137,7 @@ const Pt = E(
|
|
|
4033
4137
|
b(),
|
|
4034
4138
|
m()
|
|
4035
4139
|
] });
|
|
4036
|
-
}, or = Object.assign(
|
|
4140
|
+
}, or = Object.assign($t, {}), Gt = y("space-y-2", {
|
|
4037
4141
|
variants: {
|
|
4038
4142
|
direction: {
|
|
4039
4143
|
vertical: "space-y-2 space-x-0",
|
|
@@ -4043,7 +4147,7 @@ const Pt = E(
|
|
|
4043
4147
|
defaultVariants: {
|
|
4044
4148
|
direction: "vertical"
|
|
4045
4149
|
}
|
|
4046
|
-
}),
|
|
4150
|
+
}), Wt = y(
|
|
4047
4151
|
"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",
|
|
4048
4152
|
{
|
|
4049
4153
|
variants: {
|
|
@@ -4081,7 +4185,7 @@ const Pt = E(
|
|
|
4081
4185
|
size: "md"
|
|
4082
4186
|
}
|
|
4083
4187
|
}
|
|
4084
|
-
),
|
|
4188
|
+
), Yt = y(
|
|
4085
4189
|
"text-foreground cursor-pointer select-none",
|
|
4086
4190
|
{
|
|
4087
4191
|
variants: {
|
|
@@ -4100,32 +4204,32 @@ const Pt = E(
|
|
|
4100
4204
|
disabled: !1
|
|
4101
4205
|
}
|
|
4102
4206
|
}
|
|
4103
|
-
), sr = ee(null),
|
|
4207
|
+
), sr = ee(null), qt = () => {
|
|
4104
4208
|
const e = re(sr);
|
|
4105
4209
|
if (!e)
|
|
4106
4210
|
throw new Error("CheckboxOption must be used within CheckboxInput");
|
|
4107
4211
|
return e;
|
|
4108
|
-
}, nr = I.forwardRef(({ children: e, description: r, className: t, disabled: o, id: s, ...a },
|
|
4109
|
-
const
|
|
4212
|
+
}, nr = I.forwardRef(({ children: e, description: r, className: t, disabled: o, id: s, ...a }, l) => {
|
|
4213
|
+
const i = qt(), c = I.useId(), d = s || c, f = o || i.disabled, g = i.error ? "danger" : i.variant || "primary";
|
|
4110
4214
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
4111
4215
|
/* @__PURE__ */ n.jsx("div", { className: "relative flex items-center", children: /* @__PURE__ */ n.jsx(
|
|
4112
4216
|
"input",
|
|
4113
4217
|
{
|
|
4114
|
-
ref:
|
|
4218
|
+
ref: l,
|
|
4115
4219
|
type: "checkbox",
|
|
4116
4220
|
id: d,
|
|
4117
4221
|
disabled: f,
|
|
4118
4222
|
className: p(
|
|
4119
|
-
|
|
4223
|
+
Wt({
|
|
4120
4224
|
variant: g,
|
|
4121
|
-
size:
|
|
4225
|
+
size: i.size
|
|
4122
4226
|
}),
|
|
4123
4227
|
// Custom checkmark styling using ::after - centered positioning with size variants
|
|
4124
4228
|
'after:content-[""] after:absolute after:left-1/2 after:top-[45%] after:-translate-x-1/2 after:-translate-y-1/2 after:border-b-2 after:border-r-2 after:border-white after:rotate-45 after:opacity-0 after:transition-opacity after:duration-200',
|
|
4125
4229
|
// Size-specific checkmark dimensions
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4230
|
+
i.size === "sm" && "after:w-[3px] after:h-[6px]",
|
|
4231
|
+
i.size === "md" && "after:w-[4px] after:h-[8px]",
|
|
4232
|
+
i.size === "lg" && "after:w-[6px] after:h-[10px]",
|
|
4129
4233
|
"checked:after:opacity-100",
|
|
4130
4234
|
// Outline variants use colored checkmark
|
|
4131
4235
|
g?.includes("outline") && "checked:after:border-current",
|
|
@@ -4139,8 +4243,8 @@ const Pt = E(
|
|
|
4139
4243
|
"label",
|
|
4140
4244
|
{
|
|
4141
4245
|
htmlFor: d,
|
|
4142
|
-
className:
|
|
4143
|
-
size:
|
|
4246
|
+
className: Yt({
|
|
4247
|
+
size: i.size,
|
|
4144
4248
|
disabled: f
|
|
4145
4249
|
}),
|
|
4146
4250
|
children: e
|
|
@@ -4151,9 +4255,9 @@ const Pt = E(
|
|
|
4151
4255
|
{
|
|
4152
4256
|
className: p(
|
|
4153
4257
|
"text-gray-600 mt-1",
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4258
|
+
i.size === "sm" && "text-xs",
|
|
4259
|
+
i.size === "md" && "text-xs",
|
|
4260
|
+
i.size === "lg" && "text-sm",
|
|
4157
4261
|
f && "opacity-50"
|
|
4158
4262
|
),
|
|
4159
4263
|
children: r
|
|
@@ -4171,36 +4275,36 @@ const ar = I.forwardRef(
|
|
|
4171
4275
|
helperText: o,
|
|
4172
4276
|
error: s,
|
|
4173
4277
|
direction: a = "vertical",
|
|
4174
|
-
className:
|
|
4175
|
-
disabled:
|
|
4278
|
+
className: l,
|
|
4279
|
+
disabled: i,
|
|
4176
4280
|
children: c,
|
|
4177
4281
|
...d
|
|
4178
4282
|
}, f) => {
|
|
4179
4283
|
const g = !!s, b = {
|
|
4180
4284
|
variant: e,
|
|
4181
4285
|
size: r,
|
|
4182
|
-
disabled:
|
|
4286
|
+
disabled: i,
|
|
4183
4287
|
error: g
|
|
4184
4288
|
};
|
|
4185
|
-
return /* @__PURE__ */ n.jsx(sr.Provider, { value: b, children: /* @__PURE__ */ n.jsxs("div", { ref: f, className: p("w-full",
|
|
4289
|
+
return /* @__PURE__ */ n.jsx(sr.Provider, { value: b, children: /* @__PURE__ */ n.jsxs("div", { ref: f, className: p("w-full", l), ...d, children: [
|
|
4186
4290
|
t && /* @__PURE__ */ n.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: t }),
|
|
4187
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
4291
|
+
/* @__PURE__ */ n.jsx("div", { className: Gt({ direction: a }), children: c }),
|
|
4188
4292
|
g && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: s }),
|
|
4189
4293
|
!g && o && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-gray-600", children: o })
|
|
4190
4294
|
] }) });
|
|
4191
4295
|
}
|
|
4192
4296
|
);
|
|
4193
4297
|
ar.displayName = "CheckboxInput";
|
|
4194
|
-
const
|
|
4298
|
+
const Gs = Object.assign(ar, {
|
|
4195
4299
|
Option: nr
|
|
4196
4300
|
}), ir = ee(
|
|
4197
4301
|
null
|
|
4198
|
-
),
|
|
4302
|
+
), Ut = () => {
|
|
4199
4303
|
const e = re(ir);
|
|
4200
4304
|
if (!e)
|
|
4201
4305
|
throw new Error("useChipInputContext must be used within ChipInputContext");
|
|
4202
4306
|
return e;
|
|
4203
|
-
},
|
|
4307
|
+
}, Ht = y(
|
|
4204
4308
|
"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",
|
|
4205
4309
|
{
|
|
4206
4310
|
variants: {
|
|
@@ -4279,12 +4383,12 @@ const Ls = Object.assign(ar, {
|
|
|
4279
4383
|
selected: !1
|
|
4280
4384
|
}
|
|
4281
4385
|
}
|
|
4282
|
-
), lr = I.forwardRef(({ children: e, className: r, disabled: t, id: o, value: s, ...a },
|
|
4283
|
-
const
|
|
4386
|
+
), lr = I.forwardRef(({ children: e, className: r, disabled: t, id: o, value: s, ...a }, l) => {
|
|
4387
|
+
const i = Ut(), c = I.useId(), d = o || c, f = t || i.disabled, g = i.error ? "danger" : i.variant || "primary", b = i.value?.includes(s) ?? !1, m = (v) => {
|
|
4284
4388
|
if (!f) {
|
|
4285
|
-
const w =
|
|
4389
|
+
const w = i.value || [];
|
|
4286
4390
|
let C;
|
|
4287
|
-
b ? C = w.filter((R) => R !== s) : C = [...w, s],
|
|
4391
|
+
b ? C = w.filter((R) => R !== s) : C = [...w, s], i.onChange?.(C);
|
|
4288
4392
|
}
|
|
4289
4393
|
a.onChange?.(v);
|
|
4290
4394
|
};
|
|
@@ -4292,10 +4396,10 @@ const Ls = Object.assign(ar, {
|
|
|
4292
4396
|
/* @__PURE__ */ n.jsx(
|
|
4293
4397
|
"input",
|
|
4294
4398
|
{
|
|
4295
|
-
ref:
|
|
4399
|
+
ref: l,
|
|
4296
4400
|
type: "checkbox",
|
|
4297
4401
|
id: d,
|
|
4298
|
-
name: `${
|
|
4402
|
+
name: `${i.name}[]`,
|
|
4299
4403
|
value: s,
|
|
4300
4404
|
checked: b,
|
|
4301
4405
|
disabled: f,
|
|
@@ -4310,7 +4414,7 @@ const Ls = Object.assign(ar, {
|
|
|
4310
4414
|
htmlFor: d,
|
|
4311
4415
|
"data-selected": b,
|
|
4312
4416
|
className: p(
|
|
4313
|
-
|
|
4417
|
+
Ht({
|
|
4314
4418
|
variant: g,
|
|
4315
4419
|
selected: b
|
|
4316
4420
|
}),
|
|
@@ -4343,7 +4447,7 @@ const Ls = Object.assign(ar, {
|
|
|
4343
4447
|
] });
|
|
4344
4448
|
});
|
|
4345
4449
|
lr.displayName = "ChipOption";
|
|
4346
|
-
const
|
|
4450
|
+
const Jt = I.forwardRef(
|
|
4347
4451
|
({
|
|
4348
4452
|
variant: e = "primary",
|
|
4349
4453
|
label: r,
|
|
@@ -4351,8 +4455,8 @@ const qt = I.forwardRef(
|
|
|
4351
4455
|
error: o,
|
|
4352
4456
|
className: s,
|
|
4353
4457
|
disabled: a,
|
|
4354
|
-
name:
|
|
4355
|
-
value:
|
|
4458
|
+
name: l,
|
|
4459
|
+
value: i = [],
|
|
4356
4460
|
onChange: c,
|
|
4357
4461
|
children: d,
|
|
4358
4462
|
...f
|
|
@@ -4361,8 +4465,8 @@ const qt = I.forwardRef(
|
|
|
4361
4465
|
variant: e,
|
|
4362
4466
|
disabled: a,
|
|
4363
4467
|
error: b,
|
|
4364
|
-
name:
|
|
4365
|
-
value:
|
|
4468
|
+
name: l,
|
|
4469
|
+
value: i,
|
|
4366
4470
|
onChange: c
|
|
4367
4471
|
};
|
|
4368
4472
|
return /* @__PURE__ */ n.jsx(ir.Provider, { value: m, children: /* @__PURE__ */ n.jsxs("div", { ref: g, className: p("w-full", s), ...f, children: [
|
|
@@ -4372,9 +4476,9 @@ const qt = I.forwardRef(
|
|
|
4372
4476
|
!b && t && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-gray-600", children: t })
|
|
4373
4477
|
] }) });
|
|
4374
4478
|
}
|
|
4375
|
-
),
|
|
4479
|
+
), Ws = Object.assign(Jt, {
|
|
4376
4480
|
Option: lr
|
|
4377
|
-
}),
|
|
4481
|
+
}), Xt = E(
|
|
4378
4482
|
({ className: e, ...r }, t) => /* @__PURE__ */ n.jsx(
|
|
4379
4483
|
"div",
|
|
4380
4484
|
{
|
|
@@ -4383,7 +4487,7 @@ const qt = I.forwardRef(
|
|
|
4383
4487
|
...r
|
|
4384
4488
|
}
|
|
4385
4489
|
)
|
|
4386
|
-
),
|
|
4490
|
+
), Kt = E(
|
|
4387
4491
|
({ className: e, ...r }, t) => /* @__PURE__ */ n.jsx(
|
|
4388
4492
|
"div",
|
|
4389
4493
|
{
|
|
@@ -4392,9 +4496,9 @@ const qt = I.forwardRef(
|
|
|
4392
4496
|
...r
|
|
4393
4497
|
}
|
|
4394
4498
|
)
|
|
4395
|
-
),
|
|
4499
|
+
), Zt = E(
|
|
4396
4500
|
({ className: e, ...r }, t) => /* @__PURE__ */ n.jsx("div", { ref: t, className: p("px-6 py-2", e), ...r })
|
|
4397
|
-
),
|
|
4501
|
+
), Qt = E(
|
|
4398
4502
|
({ onOverlayClick: e, ...r }, t) => /* @__PURE__ */ n.jsx(
|
|
4399
4503
|
"div",
|
|
4400
4504
|
{
|
|
@@ -4406,7 +4510,7 @@ const qt = I.forwardRef(
|
|
|
4406
4510
|
...r
|
|
4407
4511
|
}
|
|
4408
4512
|
)
|
|
4409
|
-
),
|
|
4513
|
+
), eo = y(
|
|
4410
4514
|
"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",
|
|
4411
4515
|
{
|
|
4412
4516
|
variants: {
|
|
@@ -4419,7 +4523,7 @@ const qt = I.forwardRef(
|
|
|
4419
4523
|
placement: "center"
|
|
4420
4524
|
}
|
|
4421
4525
|
}
|
|
4422
|
-
),
|
|
4526
|
+
), ro = y(
|
|
4423
4527
|
[
|
|
4424
4528
|
"bg-white rounded-lg shadow-xl relative",
|
|
4425
4529
|
"flex flex-col",
|
|
@@ -4448,7 +4552,7 @@ const qt = I.forwardRef(
|
|
|
4448
4552
|
}
|
|
4449
4553
|
}
|
|
4450
4554
|
);
|
|
4451
|
-
function
|
|
4555
|
+
function to(e, r) {
|
|
4452
4556
|
H(() => {
|
|
4453
4557
|
if (r && e.current) {
|
|
4454
4558
|
const t = e.current.querySelectorAll(
|
|
@@ -4458,7 +4562,7 @@ function Qt(e, r) {
|
|
|
4458
4562
|
}
|
|
4459
4563
|
}, [r, e]);
|
|
4460
4564
|
}
|
|
4461
|
-
function
|
|
4565
|
+
function oo(e, r) {
|
|
4462
4566
|
H(() => {
|
|
4463
4567
|
if (!e) return;
|
|
4464
4568
|
const t = (o) => {
|
|
@@ -4467,15 +4571,15 @@ function eo(e, r) {
|
|
|
4467
4571
|
return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
|
|
4468
4572
|
}, [e, r]);
|
|
4469
4573
|
}
|
|
4470
|
-
const
|
|
4574
|
+
const so = 200, no = ({
|
|
4471
4575
|
isOpen: e,
|
|
4472
4576
|
onOpenChange: r,
|
|
4473
4577
|
size: t = "md",
|
|
4474
4578
|
placement: o = "center",
|
|
4475
4579
|
children: s,
|
|
4476
4580
|
disableOverlayClose: a,
|
|
4477
|
-
disableEscClose:
|
|
4478
|
-
...
|
|
4581
|
+
disableEscClose: l,
|
|
4582
|
+
...i
|
|
4479
4583
|
}) => {
|
|
4480
4584
|
const c = ce(null), d = ce(null), [f, g] = U(e), [b, m] = U(!1);
|
|
4481
4585
|
return H(() => {
|
|
@@ -4485,16 +4589,16 @@ const ro = 200, to = ({
|
|
|
4485
4589
|
m(!0);
|
|
4486
4590
|
const v = setTimeout(() => {
|
|
4487
4591
|
g(!1), m(!1), c.current && c.current.focus();
|
|
4488
|
-
},
|
|
4592
|
+
}, so);
|
|
4489
4593
|
return () => clearTimeout(v);
|
|
4490
4594
|
}
|
|
4491
|
-
}, [e]),
|
|
4595
|
+
}, [e]), oo(e && !l, () => {
|
|
4492
4596
|
r && r(!1);
|
|
4493
|
-
}),
|
|
4494
|
-
|
|
4597
|
+
}), to(d, e), /* @__PURE__ */ n.jsx(
|
|
4598
|
+
Qt,
|
|
4495
4599
|
{
|
|
4496
4600
|
ref: d,
|
|
4497
|
-
className: `${
|
|
4601
|
+
className: `${eo({ placement: o })} transition-opacity duration-200 ease-in-out ` + (e && !b ? "opacity-100" : "opacity-0 pointer-events-none"),
|
|
4498
4602
|
onOverlayClick: (v) => {
|
|
4499
4603
|
v.target === d.current && !a && r && r(!1);
|
|
4500
4604
|
},
|
|
@@ -4502,9 +4606,9 @@ const ro = 200, to = ({
|
|
|
4502
4606
|
children: /* @__PURE__ */ n.jsx(
|
|
4503
4607
|
"div",
|
|
4504
4608
|
{
|
|
4505
|
-
className: `${
|
|
4609
|
+
className: `${ro({ size: t, placement: o })} transition-all duration-200 ease-in-out ` + (e && !b ? "opacity-100 scale-100" : "opacity-0 scale-95 pointer-events-none"),
|
|
4506
4610
|
role: "dialog",
|
|
4507
|
-
...
|
|
4611
|
+
...i,
|
|
4508
4612
|
tabIndex: 0,
|
|
4509
4613
|
"aria-hidden": !e,
|
|
4510
4614
|
children: s
|
|
@@ -4512,10 +4616,10 @@ const ro = 200, to = ({
|
|
|
4512
4616
|
)
|
|
4513
4617
|
}
|
|
4514
4618
|
);
|
|
4515
|
-
}, ze = Object.assign(
|
|
4516
|
-
Header:
|
|
4517
|
-
Body:
|
|
4518
|
-
Footer:
|
|
4619
|
+
}, ze = Object.assign(no, {
|
|
4620
|
+
Header: Xt,
|
|
4621
|
+
Body: Zt,
|
|
4622
|
+
Footer: Kt
|
|
4519
4623
|
}), cr = y(
|
|
4520
4624
|
"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",
|
|
4521
4625
|
{
|
|
@@ -4548,7 +4652,7 @@ const ro = 200, to = ({
|
|
|
4548
4652
|
variant: "primary"
|
|
4549
4653
|
}
|
|
4550
4654
|
}
|
|
4551
|
-
),
|
|
4655
|
+
), ao = cr, dr = I.forwardRef(
|
|
4552
4656
|
({
|
|
4553
4657
|
leftContent: e,
|
|
4554
4658
|
rightContent: r,
|
|
@@ -4556,8 +4660,8 @@ const ro = 200, to = ({
|
|
|
4556
4660
|
variant: o = "primary",
|
|
4557
4661
|
value: s,
|
|
4558
4662
|
placeholder: a = "Select date",
|
|
4559
|
-
formatDate:
|
|
4560
|
-
className:
|
|
4663
|
+
formatDate: l,
|
|
4664
|
+
className: i,
|
|
4561
4665
|
...c
|
|
4562
4666
|
}, d) => /* @__PURE__ */ n.jsxs(
|
|
4563
4667
|
"button",
|
|
@@ -4566,14 +4670,14 @@ const ro = 200, to = ({
|
|
|
4566
4670
|
type: "button",
|
|
4567
4671
|
"aria-invalid": t,
|
|
4568
4672
|
className: p(
|
|
4569
|
-
|
|
4673
|
+
ao({
|
|
4570
4674
|
variant: t ? "danger" : o
|
|
4571
4675
|
}),
|
|
4572
4676
|
e ? "pl-9" : "pl-3",
|
|
4573
4677
|
r ? "pr-9" : "pr-3",
|
|
4574
4678
|
"h-10 flex items-center justify-between cursor-pointer w-full relative",
|
|
4575
4679
|
"text-left",
|
|
4576
|
-
|
|
4680
|
+
i
|
|
4577
4681
|
),
|
|
4578
4682
|
...c,
|
|
4579
4683
|
children: [
|
|
@@ -4593,7 +4697,7 @@ const ro = 200, to = ({
|
|
|
4593
4697
|
e ? "ml-2" : "",
|
|
4594
4698
|
r ? "mr-2" : ""
|
|
4595
4699
|
),
|
|
4596
|
-
children:
|
|
4700
|
+
children: l ? l(s) : a
|
|
4597
4701
|
}
|
|
4598
4702
|
),
|
|
4599
4703
|
r && /* @__PURE__ */ n.jsx(
|
|
@@ -4614,7 +4718,7 @@ const ur = ee(null), Ae = () => {
|
|
|
4614
4718
|
if (!e)
|
|
4615
4719
|
throw new Error("useMenuContext must be used within a Menu component");
|
|
4616
4720
|
return e;
|
|
4617
|
-
},
|
|
4721
|
+
}, io = y(
|
|
4618
4722
|
// Modern, clean, accessible base style
|
|
4619
4723
|
"z-50 min-w-40 bg-neutral-50 text-black rounded-lg shadow-md border border-transparent",
|
|
4620
4724
|
{
|
|
@@ -4633,7 +4737,7 @@ const ur = ee(null), Ae = () => {
|
|
|
4633
4737
|
size: "md"
|
|
4634
4738
|
}
|
|
4635
4739
|
}
|
|
4636
|
-
),
|
|
4740
|
+
), lo = y(
|
|
4637
4741
|
"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",
|
|
4638
4742
|
{
|
|
4639
4743
|
variants: {
|
|
@@ -4651,7 +4755,7 @@ const ur = ee(null), Ae = () => {
|
|
|
4651
4755
|
size: "md"
|
|
4652
4756
|
}
|
|
4653
4757
|
}
|
|
4654
|
-
),
|
|
4758
|
+
), co = E(
|
|
4655
4759
|
({ children: e, ...r }, t) => {
|
|
4656
4760
|
const { open: o, triggerRef: s } = Ae();
|
|
4657
4761
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -4669,12 +4773,12 @@ const ur = ee(null), Ae = () => {
|
|
|
4669
4773
|
}
|
|
4670
4774
|
);
|
|
4671
4775
|
}
|
|
4672
|
-
),
|
|
4776
|
+
), uo = E(
|
|
4673
4777
|
({ children: e, className: r, ...t }, o) => {
|
|
4674
|
-
const { open: s, contentRef: a, triggerRef:
|
|
4778
|
+
const { open: s, contentRef: a, triggerRef: l, size: i } = Ae(), c = Ee();
|
|
4675
4779
|
let d = 0, f = 0;
|
|
4676
|
-
if (
|
|
4677
|
-
const g =
|
|
4780
|
+
if (l.current) {
|
|
4781
|
+
const g = l.current.getBoundingClientRect();
|
|
4678
4782
|
d = g.bottom + window.scrollY + 4, f = g.left + window.scrollX;
|
|
4679
4783
|
}
|
|
4680
4784
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -4688,15 +4792,15 @@ const ur = ee(null), Ae = () => {
|
|
|
4688
4792
|
tabIndex: -1,
|
|
4689
4793
|
"aria-hidden": !s,
|
|
4690
4794
|
className: p(
|
|
4691
|
-
|
|
4692
|
-
size:
|
|
4795
|
+
io({
|
|
4796
|
+
size: i
|
|
4693
4797
|
}),
|
|
4694
4798
|
"absolute z-50 transition-opacity duration-150 ease-out",
|
|
4695
4799
|
s ? "opacity-100" : "opacity-0",
|
|
4696
4800
|
r
|
|
4697
4801
|
),
|
|
4698
4802
|
style: {
|
|
4699
|
-
minWidth:
|
|
4803
|
+
minWidth: l.current?.offsetWidth,
|
|
4700
4804
|
top: d,
|
|
4701
4805
|
left: f
|
|
4702
4806
|
},
|
|
@@ -4705,7 +4809,7 @@ const ur = ee(null), Ae = () => {
|
|
|
4705
4809
|
}
|
|
4706
4810
|
);
|
|
4707
4811
|
}
|
|
4708
|
-
),
|
|
4812
|
+
), go = E(
|
|
4709
4813
|
({ children: e, disabled: r, className: t, ...o }, s) => {
|
|
4710
4814
|
const { size: a } = Ae();
|
|
4711
4815
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -4717,7 +4821,7 @@ const ur = ee(null), Ae = () => {
|
|
|
4717
4821
|
disabled: r,
|
|
4718
4822
|
"aria-disabled": r,
|
|
4719
4823
|
className: p(
|
|
4720
|
-
|
|
4824
|
+
lo({
|
|
4721
4825
|
size: a
|
|
4722
4826
|
}),
|
|
4723
4827
|
t
|
|
@@ -4728,7 +4832,7 @@ const ur = ee(null), Ae = () => {
|
|
|
4728
4832
|
);
|
|
4729
4833
|
}
|
|
4730
4834
|
);
|
|
4731
|
-
function
|
|
4835
|
+
function fo(e, r, t, o) {
|
|
4732
4836
|
H(() => {
|
|
4733
4837
|
if (!e) return;
|
|
4734
4838
|
function s(a) {
|
|
@@ -4737,7 +4841,7 @@ function co(e, r, t, o) {
|
|
|
4737
4841
|
return document.addEventListener("mousedown", s), () => document.removeEventListener("mousedown", s);
|
|
4738
4842
|
}, [e, o, r, t]);
|
|
4739
4843
|
}
|
|
4740
|
-
function
|
|
4844
|
+
function bo(e, r) {
|
|
4741
4845
|
H(() => {
|
|
4742
4846
|
if (e && r.current) {
|
|
4743
4847
|
const t = r.current.querySelectorAll('[role="menuitem"]');
|
|
@@ -4745,38 +4849,38 @@ function uo(e, r) {
|
|
|
4745
4849
|
}
|
|
4746
4850
|
}, [e, r]);
|
|
4747
4851
|
}
|
|
4748
|
-
function
|
|
4852
|
+
function mo(e, r, t, o) {
|
|
4749
4853
|
H(() => {
|
|
4750
4854
|
if (!e || !r.current) return;
|
|
4751
4855
|
const s = r.current;
|
|
4752
|
-
function a(
|
|
4753
|
-
const
|
|
4856
|
+
function a(l) {
|
|
4857
|
+
const i = Array.from(
|
|
4754
4858
|
s.querySelectorAll('[role="menuitem"]')
|
|
4755
|
-
), c = document.activeElement, d =
|
|
4756
|
-
|
|
4859
|
+
), 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(), t.current?.focus());
|
|
4757
4861
|
}
|
|
4758
4862
|
return s.addEventListener("keydown", a), () => s.removeEventListener("keydown", a);
|
|
4759
4863
|
}, [e, o, r, t]);
|
|
4760
4864
|
}
|
|
4761
|
-
const
|
|
4865
|
+
const ho = ({
|
|
4762
4866
|
children: e,
|
|
4763
4867
|
isOpen: r,
|
|
4764
4868
|
onOutsideClick: t,
|
|
4765
4869
|
size: o = "md"
|
|
4766
4870
|
}) => {
|
|
4767
4871
|
const s = ce(null), a = ce(null);
|
|
4768
|
-
return
|
|
4872
|
+
return fo(r, a, s, t), bo(r, a), mo(r, a, s, t), /* @__PURE__ */ n.jsx(
|
|
4769
4873
|
ur.Provider,
|
|
4770
4874
|
{
|
|
4771
4875
|
value: { open: r, triggerRef: s, contentRef: a, size: o },
|
|
4772
4876
|
children: e
|
|
4773
4877
|
}
|
|
4774
4878
|
);
|
|
4775
|
-
}, Ie = Object.assign(
|
|
4776
|
-
Trigger:
|
|
4777
|
-
Content:
|
|
4778
|
-
Item:
|
|
4779
|
-
}),
|
|
4879
|
+
}, Ie = Object.assign(ho, {
|
|
4880
|
+
Trigger: co,
|
|
4881
|
+
Content: uo,
|
|
4882
|
+
Item: go
|
|
4883
|
+
}), xo = ({
|
|
4780
4884
|
open: e,
|
|
4781
4885
|
value: r,
|
|
4782
4886
|
onChange: t,
|
|
@@ -4784,7 +4888,7 @@ const fo = ({
|
|
|
4784
4888
|
}) => /* @__PURE__ */ n.jsxs(Ie, { isOpen: e, onOutsideClick: o, children: [
|
|
4785
4889
|
/* @__PURE__ */ n.jsx(Ie.Trigger, { className: "absolute top-[90%] left-0", children: /* @__PURE__ */ n.jsx("span", { "aria-hidden": "true" }) }),
|
|
4786
4890
|
/* @__PURE__ */ n.jsx(Ie.Content, { className: "drop-shadow-lg rounded-lg bg-white border border-neutral", children: /* @__PURE__ */ n.jsx(or, { value: r, onChange: t }) })
|
|
4787
|
-
] }),
|
|
4891
|
+
] }), po = ({
|
|
4788
4892
|
open: e,
|
|
4789
4893
|
setOpen: r,
|
|
4790
4894
|
value: t,
|
|
@@ -4792,16 +4896,16 @@ const fo = ({
|
|
|
4792
4896
|
label: s,
|
|
4793
4897
|
buttonRef: a
|
|
4794
4898
|
}) => {
|
|
4795
|
-
const [
|
|
4899
|
+
const [l, i] = U(
|
|
4796
4900
|
t
|
|
4797
4901
|
);
|
|
4798
4902
|
H(() => {
|
|
4799
|
-
|
|
4903
|
+
i(t);
|
|
4800
4904
|
}, [t, e]);
|
|
4801
4905
|
const c = () => {
|
|
4802
|
-
r(!1),
|
|
4906
|
+
r(!1), i(t), a.current?.focus();
|
|
4803
4907
|
}, d = () => {
|
|
4804
|
-
|
|
4908
|
+
l && (o(l), r(!1), a.current?.focus());
|
|
4805
4909
|
};
|
|
4806
4910
|
return /* @__PURE__ */ n.jsxs(
|
|
4807
4911
|
ze,
|
|
@@ -4814,7 +4918,7 @@ const fo = ({
|
|
|
4814
4918
|
disableOverlayClose: !1,
|
|
4815
4919
|
disableEscClose: !1,
|
|
4816
4920
|
children: [
|
|
4817
|
-
/* @__PURE__ */ n.jsx(ze.Body, { className: "px-2", children: /* @__PURE__ */ n.jsx(or, { value:
|
|
4921
|
+
/* @__PURE__ */ n.jsx(ze.Body, { className: "px-2", children: /* @__PURE__ */ n.jsx(or, { value: l, onChange: i }) }),
|
|
4818
4922
|
/* @__PURE__ */ n.jsxs(ze.Footer, { className: "px-6", children: [
|
|
4819
4923
|
/* @__PURE__ */ n.jsx(
|
|
4820
4924
|
Ge,
|
|
@@ -4832,7 +4936,7 @@ const fo = ({
|
|
|
4832
4936
|
onClick: d,
|
|
4833
4937
|
variant: "primary",
|
|
4834
4938
|
type: "button",
|
|
4835
|
-
disabled: !
|
|
4939
|
+
disabled: !l,
|
|
4836
4940
|
size: "sm",
|
|
4837
4941
|
children: "Confirm"
|
|
4838
4942
|
}
|
|
@@ -4842,13 +4946,13 @@ const fo = ({
|
|
|
4842
4946
|
}
|
|
4843
4947
|
);
|
|
4844
4948
|
};
|
|
4845
|
-
function
|
|
4846
|
-
const [r, t] = U(!1), o = Ee(), s = e || o, a = ce(null),
|
|
4949
|
+
function vo({ id: e }) {
|
|
4950
|
+
const [r, t] = U(!1), o = Ee(), s = e || o, a = ce(null), l = ke(
|
|
4847
4951
|
(c) => {
|
|
4848
4952
|
(c.key === "ArrowDown" || c.key === "Enter" || c.key === " ") && t(!0);
|
|
4849
4953
|
},
|
|
4850
4954
|
[]
|
|
4851
|
-
),
|
|
4955
|
+
), i = ke(() => {
|
|
4852
4956
|
t(!1), a.current?.focus();
|
|
4853
4957
|
}, []);
|
|
4854
4958
|
return {
|
|
@@ -4856,11 +4960,11 @@ function ho({ id: e }) {
|
|
|
4856
4960
|
setOpen: t,
|
|
4857
4961
|
inputId: s,
|
|
4858
4962
|
buttonRef: a,
|
|
4859
|
-
handleKeyDown:
|
|
4860
|
-
handleMenuClose:
|
|
4963
|
+
handleKeyDown: l,
|
|
4964
|
+
handleMenuClose: i
|
|
4861
4965
|
};
|
|
4862
4966
|
}
|
|
4863
|
-
const
|
|
4967
|
+
const Ys = I.forwardRef(
|
|
4864
4968
|
({
|
|
4865
4969
|
value: e,
|
|
4866
4970
|
onChange: r,
|
|
@@ -4868,8 +4972,8 @@ const Gs = I.forwardRef(
|
|
|
4868
4972
|
leftContent: o,
|
|
4869
4973
|
rightContent: s,
|
|
4870
4974
|
helperText: a,
|
|
4871
|
-
error:
|
|
4872
|
-
variant:
|
|
4975
|
+
error: l,
|
|
4976
|
+
variant: i = "primary",
|
|
4873
4977
|
disabled: c,
|
|
4874
4978
|
placeholder: d = "Select date",
|
|
4875
4979
|
id: f,
|
|
@@ -4887,7 +4991,7 @@ const Gs = I.forwardRef(
|
|
|
4887
4991
|
buttonRef: R,
|
|
4888
4992
|
handleKeyDown: A,
|
|
4889
4993
|
handleMenuClose: N
|
|
4890
|
-
} =
|
|
4994
|
+
} = vo({ id: f }), M = !!l, F = (_) => _ ? _.toLocaleDateString(void 0, {
|
|
4891
4995
|
year: "numeric",
|
|
4892
4996
|
month: "short",
|
|
4893
4997
|
day: "numeric"
|
|
@@ -4920,7 +5024,7 @@ const Gs = I.forwardRef(
|
|
|
4920
5024
|
leftContent: o,
|
|
4921
5025
|
rightContent: s,
|
|
4922
5026
|
hasError: M,
|
|
4923
|
-
variant:
|
|
5027
|
+
variant: i,
|
|
4924
5028
|
value: e,
|
|
4925
5029
|
placeholder: typeof d == "string" ? d : "Select date",
|
|
4926
5030
|
formatDate: L,
|
|
@@ -4930,11 +5034,11 @@ const Gs = I.forwardRef(
|
|
|
4930
5034
|
...b
|
|
4931
5035
|
}
|
|
4932
5036
|
),
|
|
4933
|
-
M && /* @__PURE__ */ n.jsx("div", { className: "mt-1 text-sm text-danger", role: "alert", children:
|
|
5037
|
+
M && /* @__PURE__ */ n.jsx("div", { className: "mt-1 text-sm text-danger", role: "alert", children: l }),
|
|
4934
5038
|
a && /* @__PURE__ */ n.jsx("div", { className: "mt-1 text-sm text-muted-foreground", children: a })
|
|
4935
5039
|
] }),
|
|
4936
5040
|
g === "docked" ? /* @__PURE__ */ n.jsx(
|
|
4937
|
-
|
|
5041
|
+
xo,
|
|
4938
5042
|
{
|
|
4939
5043
|
open: v,
|
|
4940
5044
|
value: e,
|
|
@@ -4943,7 +5047,7 @@ const Gs = I.forwardRef(
|
|
|
4943
5047
|
handleMenuClose: N
|
|
4944
5048
|
}
|
|
4945
5049
|
) : /* @__PURE__ */ n.jsx(
|
|
4946
|
-
|
|
5050
|
+
po,
|
|
4947
5051
|
{
|
|
4948
5052
|
open: v,
|
|
4949
5053
|
setOpen: w,
|
|
@@ -4964,7 +5068,7 @@ function je() {
|
|
|
4964
5068
|
);
|
|
4965
5069
|
return e;
|
|
4966
5070
|
}
|
|
4967
|
-
const
|
|
5071
|
+
const wo = y(
|
|
4968
5072
|
"fixed inset-0 z-50 transition-opacity duration-300 bg-black/30 backdrop-blur-md",
|
|
4969
5073
|
{
|
|
4970
5074
|
variants: {
|
|
@@ -4977,7 +5081,7 @@ const xo = y(
|
|
|
4977
5081
|
state: "closed"
|
|
4978
5082
|
}
|
|
4979
5083
|
}
|
|
4980
|
-
),
|
|
5084
|
+
), yo = y(
|
|
4981
5085
|
"fixed z-50 shadow-xl transition-transform duration-300 ease-in-out flex flex-col",
|
|
4982
5086
|
{
|
|
4983
5087
|
variants: {
|
|
@@ -5004,7 +5108,7 @@ const xo = y(
|
|
|
5004
5108
|
variant: "default"
|
|
5005
5109
|
}
|
|
5006
5110
|
}
|
|
5007
|
-
),
|
|
5111
|
+
), ko = y("flex-shrink-0 px-6 py-4 border-b", {
|
|
5008
5112
|
variants: {
|
|
5009
5113
|
variant: {
|
|
5010
5114
|
default: "bg-white border-gray-200",
|
|
@@ -5014,7 +5118,7 @@ const xo = y(
|
|
|
5014
5118
|
defaultVariants: {
|
|
5015
5119
|
variant: "default"
|
|
5016
5120
|
}
|
|
5017
|
-
}),
|
|
5121
|
+
}), jo = y("flex-1 overflow-y-auto px-6 py-4", {
|
|
5018
5122
|
variants: {
|
|
5019
5123
|
variant: {
|
|
5020
5124
|
default: "bg-white",
|
|
@@ -5024,7 +5128,7 @@ const xo = y(
|
|
|
5024
5128
|
defaultVariants: {
|
|
5025
5129
|
variant: "default"
|
|
5026
5130
|
}
|
|
5027
|
-
}),
|
|
5131
|
+
}), No = y("flex-shrink-0 px-6 py-4 border-t", {
|
|
5028
5132
|
variants: {
|
|
5029
5133
|
variant: {
|
|
5030
5134
|
default: "bg-white border-gray-200",
|
|
@@ -5039,7 +5143,7 @@ const xo = y(
|
|
|
5039
5143
|
variant: "default",
|
|
5040
5144
|
responsiveFlex: !0
|
|
5041
5145
|
}
|
|
5042
|
-
}),
|
|
5146
|
+
}), Co = I.forwardRef(({ className: e, ...r }, t) => {
|
|
5043
5147
|
const { isOpen: o, onClose: s } = je(), a = () => {
|
|
5044
5148
|
s();
|
|
5045
5149
|
};
|
|
@@ -5049,7 +5153,7 @@ const xo = y(
|
|
|
5049
5153
|
ref: t,
|
|
5050
5154
|
onClick: a,
|
|
5051
5155
|
className: p(
|
|
5052
|
-
|
|
5156
|
+
wo({
|
|
5053
5157
|
state: o ? "open" : "closed"
|
|
5054
5158
|
}),
|
|
5055
5159
|
e
|
|
@@ -5057,33 +5161,33 @@ const xo = y(
|
|
|
5057
5161
|
...r
|
|
5058
5162
|
}
|
|
5059
5163
|
);
|
|
5060
|
-
}),
|
|
5164
|
+
}), zo = I.forwardRef(
|
|
5061
5165
|
({ children: e, className: r, ...t }, o) => {
|
|
5062
5166
|
const { variant: s } = je();
|
|
5063
5167
|
return /* @__PURE__ */ n.jsx(
|
|
5064
5168
|
"div",
|
|
5065
5169
|
{
|
|
5066
5170
|
ref: o,
|
|
5067
|
-
className: p(
|
|
5171
|
+
className: p(ko({ variant: s }), r),
|
|
5068
5172
|
...t,
|
|
5069
5173
|
children: e
|
|
5070
5174
|
}
|
|
5071
5175
|
);
|
|
5072
5176
|
}
|
|
5073
|
-
),
|
|
5177
|
+
), Io = I.forwardRef(
|
|
5074
5178
|
({ children: e, className: r, ...t }, o) => {
|
|
5075
5179
|
const { variant: s } = je();
|
|
5076
5180
|
return /* @__PURE__ */ n.jsx(
|
|
5077
5181
|
"div",
|
|
5078
5182
|
{
|
|
5079
5183
|
ref: o,
|
|
5080
|
-
className: p(
|
|
5184
|
+
className: p(jo({ variant: s }), r),
|
|
5081
5185
|
...t,
|
|
5082
5186
|
children: e
|
|
5083
5187
|
}
|
|
5084
5188
|
);
|
|
5085
5189
|
}
|
|
5086
|
-
),
|
|
5190
|
+
), So = I.forwardRef(
|
|
5087
5191
|
({ children: e, className: r, responsiveFlex: t = !0, ...o }, s) => {
|
|
5088
5192
|
const { variant: a } = je();
|
|
5089
5193
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -5091,7 +5195,7 @@ const xo = y(
|
|
|
5091
5195
|
{
|
|
5092
5196
|
ref: s,
|
|
5093
5197
|
className: p(
|
|
5094
|
-
|
|
5198
|
+
No({ variant: a, responsiveFlex: t }),
|
|
5095
5199
|
r
|
|
5096
5200
|
),
|
|
5097
5201
|
...o,
|
|
@@ -5099,15 +5203,15 @@ const xo = y(
|
|
|
5099
5203
|
}
|
|
5100
5204
|
);
|
|
5101
5205
|
}
|
|
5102
|
-
),
|
|
5206
|
+
), Ro = ({
|
|
5103
5207
|
children: e,
|
|
5104
5208
|
isOpen: r,
|
|
5105
5209
|
onClose: t,
|
|
5106
5210
|
position: o = "right",
|
|
5107
5211
|
size: s = "md",
|
|
5108
5212
|
variant: a = "default",
|
|
5109
|
-
className:
|
|
5110
|
-
...
|
|
5213
|
+
className: l,
|
|
5214
|
+
...i
|
|
5111
5215
|
}) => {
|
|
5112
5216
|
const c = ke(() => {
|
|
5113
5217
|
t(!1);
|
|
@@ -5133,14 +5237,14 @@ const xo = y(
|
|
|
5133
5237
|
r && "pointer-events-auto"
|
|
5134
5238
|
),
|
|
5135
5239
|
children: [
|
|
5136
|
-
/* @__PURE__ */ n.jsx(
|
|
5240
|
+
/* @__PURE__ */ n.jsx(Co, {}),
|
|
5137
5241
|
/* @__PURE__ */ n.jsx(
|
|
5138
5242
|
"div",
|
|
5139
5243
|
{
|
|
5140
5244
|
role: r ? "dialog" : void 0,
|
|
5141
5245
|
"aria-modal": r ? "true" : void 0,
|
|
5142
5246
|
className: p(
|
|
5143
|
-
|
|
5247
|
+
yo({
|
|
5144
5248
|
position: o,
|
|
5145
5249
|
size: s,
|
|
5146
5250
|
variant: a
|
|
@@ -5148,58 +5252,20 @@ const xo = y(
|
|
|
5148
5252
|
// Apply closed transform when not open
|
|
5149
5253
|
!r && o === "left" && "-translate-x-full",
|
|
5150
5254
|
!r && o === "right" && "translate-x-full",
|
|
5151
|
-
|
|
5255
|
+
l
|
|
5152
5256
|
),
|
|
5153
|
-
...
|
|
5257
|
+
...i,
|
|
5154
5258
|
children: r && e
|
|
5155
5259
|
}
|
|
5156
5260
|
)
|
|
5157
5261
|
]
|
|
5158
5262
|
}
|
|
5159
5263
|
) });
|
|
5160
|
-
},
|
|
5161
|
-
Header:
|
|
5162
|
-
Body:
|
|
5163
|
-
Footer:
|
|
5164
|
-
}),
|
|
5165
|
-
variants: {
|
|
5166
|
-
size: {
|
|
5167
|
-
xs: "w-3 h-3",
|
|
5168
|
-
sm: "w-4 h-4",
|
|
5169
|
-
md: "w-5 h-5",
|
|
5170
|
-
lg: "w-6 h-6",
|
|
5171
|
-
xl: "w-8 h-8"
|
|
5172
|
-
},
|
|
5173
|
-
color: {
|
|
5174
|
-
primary: "text-primary",
|
|
5175
|
-
secondary: "text-secondary",
|
|
5176
|
-
tertiary: "text-tertiary",
|
|
5177
|
-
ghost: "text-ghost",
|
|
5178
|
-
neutral: "text-neutral",
|
|
5179
|
-
success: "text-success",
|
|
5180
|
-
info: "text-info",
|
|
5181
|
-
warning: "text-warning",
|
|
5182
|
-
danger: "text-danger"
|
|
5183
|
-
}
|
|
5184
|
-
},
|
|
5185
|
-
defaultVariants: {
|
|
5186
|
-
size: "md",
|
|
5187
|
-
color: "primary"
|
|
5188
|
-
}
|
|
5189
|
-
}), Ys = ({
|
|
5190
|
-
color: e = "primary",
|
|
5191
|
-
size: r = "md",
|
|
5192
|
-
children: t,
|
|
5193
|
-
...o
|
|
5194
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
5195
|
-
"span",
|
|
5196
|
-
{
|
|
5197
|
-
className: Io({ color: e, size: r, className: o.className }),
|
|
5198
|
-
"aria-hidden": "true",
|
|
5199
|
-
...o,
|
|
5200
|
-
children: t
|
|
5201
|
-
}
|
|
5202
|
-
), So = y("space-y-2", {
|
|
5264
|
+
}, qs = Object.assign(Ro, {
|
|
5265
|
+
Header: zo,
|
|
5266
|
+
Body: Io,
|
|
5267
|
+
Footer: So
|
|
5268
|
+
}), Vo = y("space-y-2", {
|
|
5203
5269
|
variants: {
|
|
5204
5270
|
direction: {
|
|
5205
5271
|
vertical: "space-y-2 space-x-0",
|
|
@@ -5209,7 +5275,7 @@ const xo = y(
|
|
|
5209
5275
|
defaultVariants: {
|
|
5210
5276
|
direction: "vertical"
|
|
5211
5277
|
}
|
|
5212
|
-
}),
|
|
5278
|
+
}), Eo = y(
|
|
5213
5279
|
"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",
|
|
5214
5280
|
{
|
|
5215
5281
|
variants: {
|
|
@@ -5247,7 +5313,7 @@ const xo = y(
|
|
|
5247
5313
|
size: "md"
|
|
5248
5314
|
}
|
|
5249
5315
|
}
|
|
5250
|
-
),
|
|
5316
|
+
), To = y(
|
|
5251
5317
|
"text-foreground cursor-pointer select-none",
|
|
5252
5318
|
{
|
|
5253
5319
|
variants: {
|
|
@@ -5268,28 +5334,28 @@ const xo = y(
|
|
|
5268
5334
|
}
|
|
5269
5335
|
), fr = ee(
|
|
5270
5336
|
null
|
|
5271
|
-
),
|
|
5337
|
+
), Ao = () => {
|
|
5272
5338
|
const e = re(fr);
|
|
5273
5339
|
if (!e)
|
|
5274
5340
|
throw new Error(
|
|
5275
5341
|
"useRadioInputContext must be used within RadioInputContext"
|
|
5276
5342
|
);
|
|
5277
5343
|
return e;
|
|
5278
|
-
},
|
|
5279
|
-
({ children: e, description: r, className: t, disabled: o, id: s, value: a, ...
|
|
5280
|
-
const c =
|
|
5344
|
+
}, Mo = I.forwardRef(
|
|
5345
|
+
({ children: e, description: r, className: t, disabled: o, id: s, value: a, ...l }, i) => {
|
|
5346
|
+
const c = Ao(), d = I.useId(), f = s || d, g = o || c.disabled, b = c.error ? "danger" : c.variant || "primary";
|
|
5281
5347
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
5282
5348
|
/* @__PURE__ */ n.jsx("div", { className: "relative flex items-center", children: /* @__PURE__ */ n.jsx(
|
|
5283
5349
|
"input",
|
|
5284
5350
|
{
|
|
5285
|
-
ref:
|
|
5351
|
+
ref: i,
|
|
5286
5352
|
type: "radio",
|
|
5287
5353
|
id: f,
|
|
5288
5354
|
name: c.name,
|
|
5289
5355
|
value: a,
|
|
5290
5356
|
disabled: g,
|
|
5291
5357
|
className: p(
|
|
5292
|
-
|
|
5358
|
+
Eo({
|
|
5293
5359
|
variant: b,
|
|
5294
5360
|
size: c.size
|
|
5295
5361
|
}),
|
|
@@ -5304,7 +5370,7 @@ const xo = y(
|
|
|
5304
5370
|
b?.includes("outline") && "checked:before:bg-current",
|
|
5305
5371
|
t
|
|
5306
5372
|
),
|
|
5307
|
-
...
|
|
5373
|
+
...l
|
|
5308
5374
|
}
|
|
5309
5375
|
) }),
|
|
5310
5376
|
/* @__PURE__ */ n.jsxs("div", { className: "flex-1", children: [
|
|
@@ -5312,7 +5378,7 @@ const xo = y(
|
|
|
5312
5378
|
"label",
|
|
5313
5379
|
{
|
|
5314
5380
|
htmlFor: f,
|
|
5315
|
-
className:
|
|
5381
|
+
className: To({
|
|
5316
5382
|
size: c.size,
|
|
5317
5383
|
disabled: g
|
|
5318
5384
|
}),
|
|
@@ -5335,7 +5401,7 @@ const xo = y(
|
|
|
5335
5401
|
] })
|
|
5336
5402
|
] });
|
|
5337
5403
|
}
|
|
5338
|
-
),
|
|
5404
|
+
), Po = I.forwardRef(
|
|
5339
5405
|
({
|
|
5340
5406
|
variant: e = "primary",
|
|
5341
5407
|
size: r = "md",
|
|
@@ -5343,8 +5409,8 @@ const xo = y(
|
|
|
5343
5409
|
helperText: o,
|
|
5344
5410
|
error: s,
|
|
5345
5411
|
direction: a = "vertical",
|
|
5346
|
-
className:
|
|
5347
|
-
disabled:
|
|
5412
|
+
className: l,
|
|
5413
|
+
disabled: i,
|
|
5348
5414
|
name: c,
|
|
5349
5415
|
children: d,
|
|
5350
5416
|
...f
|
|
@@ -5352,20 +5418,20 @@ const xo = y(
|
|
|
5352
5418
|
const b = !!s, m = {
|
|
5353
5419
|
variant: e,
|
|
5354
5420
|
size: r,
|
|
5355
|
-
disabled:
|
|
5421
|
+
disabled: i,
|
|
5356
5422
|
error: b,
|
|
5357
5423
|
name: c
|
|
5358
5424
|
};
|
|
5359
|
-
return /* @__PURE__ */ n.jsx(fr.Provider, { value: m, children: /* @__PURE__ */ n.jsxs("div", { ref: g, className: p("w-full",
|
|
5425
|
+
return /* @__PURE__ */ n.jsx(fr.Provider, { value: m, children: /* @__PURE__ */ n.jsxs("div", { ref: g, className: p("w-full", l), ...f, children: [
|
|
5360
5426
|
t && /* @__PURE__ */ n.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: t }),
|
|
5361
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
5427
|
+
/* @__PURE__ */ n.jsx("div", { className: Vo({ direction: a }), children: d }),
|
|
5362
5428
|
b && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: s }),
|
|
5363
5429
|
!b && o && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-gray-600", children: o })
|
|
5364
5430
|
] }) });
|
|
5365
5431
|
}
|
|
5366
|
-
),
|
|
5367
|
-
Option:
|
|
5368
|
-
}),
|
|
5432
|
+
), Us = Object.assign(Po, {
|
|
5433
|
+
Option: Mo
|
|
5434
|
+
}), Oo = y(
|
|
5369
5435
|
"inline-flex rounded-lg border overflow-hidden bg-neutral/50 p-1",
|
|
5370
5436
|
{
|
|
5371
5437
|
variants: {
|
|
@@ -5408,7 +5474,7 @@ const xo = y(
|
|
|
5408
5474
|
error: !1
|
|
5409
5475
|
}
|
|
5410
5476
|
}
|
|
5411
|
-
),
|
|
5477
|
+
), Bo = y(
|
|
5412
5478
|
"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",
|
|
5413
5479
|
{
|
|
5414
5480
|
variants: {
|
|
@@ -5453,7 +5519,7 @@ const xo = y(
|
|
|
5453
5519
|
rounded: "middle"
|
|
5454
5520
|
}
|
|
5455
5521
|
}
|
|
5456
|
-
),
|
|
5522
|
+
), Do = (e) => {
|
|
5457
5523
|
const r = {
|
|
5458
5524
|
// Core variants - override hover text color changes
|
|
5459
5525
|
primary: "bg-coral text-white shadow-sm hover:text-white",
|
|
@@ -5478,7 +5544,7 @@ const xo = y(
|
|
|
5478
5544
|
"danger-outline": "bg-danger text-white shadow-sm hover:text-white"
|
|
5479
5545
|
};
|
|
5480
5546
|
return r[e || "primary"] || r.primary;
|
|
5481
|
-
}, br = ee(null),
|
|
5547
|
+
}, br = ee(null), _o = () => {
|
|
5482
5548
|
const e = re(br);
|
|
5483
5549
|
if (!e)
|
|
5484
5550
|
throw new Error(
|
|
@@ -5486,19 +5552,19 @@ const xo = y(
|
|
|
5486
5552
|
);
|
|
5487
5553
|
return e;
|
|
5488
5554
|
}, mr = I.forwardRef(
|
|
5489
|
-
({ children: e, className: r, disabled: t, id: o, value: s, position: a = "middle", ...
|
|
5490
|
-
const c =
|
|
5555
|
+
({ children: e, className: r, disabled: t, id: o, value: s, position: a = "middle", ...l }, i) => {
|
|
5556
|
+
const c = _o(), d = I.useId(), f = o || d, g = t || c.disabled, b = c.error ? "danger" : c.variant || "primary", m = c.value === s, v = (w) => {
|
|
5491
5557
|
if (!g) {
|
|
5492
5558
|
const C = c.value === s ? null : s;
|
|
5493
5559
|
c.onChange?.(C);
|
|
5494
5560
|
}
|
|
5495
|
-
|
|
5561
|
+
l.onChange?.(w);
|
|
5496
5562
|
};
|
|
5497
5563
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
5498
5564
|
/* @__PURE__ */ n.jsx(
|
|
5499
5565
|
"input",
|
|
5500
5566
|
{
|
|
5501
|
-
ref:
|
|
5567
|
+
ref: i,
|
|
5502
5568
|
type: "radio",
|
|
5503
5569
|
id: f,
|
|
5504
5570
|
name: c.name,
|
|
@@ -5507,7 +5573,7 @@ const xo = y(
|
|
|
5507
5573
|
disabled: g,
|
|
5508
5574
|
onChange: v,
|
|
5509
5575
|
className: "sr-only",
|
|
5510
|
-
...
|
|
5576
|
+
...l
|
|
5511
5577
|
}
|
|
5512
5578
|
),
|
|
5513
5579
|
/* @__PURE__ */ n.jsx(
|
|
@@ -5515,13 +5581,13 @@ const xo = y(
|
|
|
5515
5581
|
{
|
|
5516
5582
|
htmlFor: f,
|
|
5517
5583
|
className: p(
|
|
5518
|
-
|
|
5584
|
+
Bo({
|
|
5519
5585
|
variant: b,
|
|
5520
5586
|
size: c.size,
|
|
5521
5587
|
rounded: a
|
|
5522
5588
|
}),
|
|
5523
5589
|
// Apply selected state styling
|
|
5524
|
-
m &&
|
|
5590
|
+
m && Do(b),
|
|
5525
5591
|
m && "relative z-10",
|
|
5526
5592
|
// Apply disabled styling directly since labels don't support disabled attribute
|
|
5527
5593
|
g && "opacity-50 cursor-not-allowed pointer-events-none",
|
|
@@ -5534,7 +5600,7 @@ const xo = y(
|
|
|
5534
5600
|
}
|
|
5535
5601
|
);
|
|
5536
5602
|
mr.displayName = "SegmentOption";
|
|
5537
|
-
const
|
|
5603
|
+
const Fo = I.forwardRef(
|
|
5538
5604
|
({
|
|
5539
5605
|
variant: e = "primary",
|
|
5540
5606
|
size: r = "md",
|
|
@@ -5542,8 +5608,8 @@ const Do = I.forwardRef(
|
|
|
5542
5608
|
helperText: o,
|
|
5543
5609
|
error: s,
|
|
5544
5610
|
className: a,
|
|
5545
|
-
disabled:
|
|
5546
|
-
name:
|
|
5611
|
+
disabled: l,
|
|
5612
|
+
name: i,
|
|
5547
5613
|
value: c,
|
|
5548
5614
|
onChange: d,
|
|
5549
5615
|
children: f,
|
|
@@ -5552,9 +5618,9 @@ const Do = I.forwardRef(
|
|
|
5552
5618
|
const m = !!s, v = {
|
|
5553
5619
|
variant: e,
|
|
5554
5620
|
size: r,
|
|
5555
|
-
disabled:
|
|
5621
|
+
disabled: l,
|
|
5556
5622
|
error: m,
|
|
5557
|
-
name:
|
|
5623
|
+
name: i,
|
|
5558
5624
|
value: c,
|
|
5559
5625
|
onChange: d
|
|
5560
5626
|
}, w = I.Children.toArray(f), C = w.map((R, A) => {
|
|
@@ -5572,7 +5638,7 @@ const Do = I.forwardRef(
|
|
|
5572
5638
|
/* @__PURE__ */ n.jsx(
|
|
5573
5639
|
"div",
|
|
5574
5640
|
{
|
|
5575
|
-
className:
|
|
5641
|
+
className: Oo({
|
|
5576
5642
|
variant: m ? "danger" : e,
|
|
5577
5643
|
size: r,
|
|
5578
5644
|
error: m
|
|
@@ -5584,9 +5650,9 @@ const Do = I.forwardRef(
|
|
|
5584
5650
|
!m && o && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-gray-600", children: o })
|
|
5585
5651
|
] }) });
|
|
5586
5652
|
}
|
|
5587
|
-
),
|
|
5653
|
+
), Hs = Object.assign(Fo, {
|
|
5588
5654
|
Option: mr
|
|
5589
|
-
}),
|
|
5655
|
+
}), Lo = y(
|
|
5590
5656
|
"inline-flex rounded-lg border overflow-hidden bg-neutral/50 p-1",
|
|
5591
5657
|
{
|
|
5592
5658
|
variants: {
|
|
@@ -5629,7 +5695,7 @@ const Do = I.forwardRef(
|
|
|
5629
5695
|
error: !1
|
|
5630
5696
|
}
|
|
5631
5697
|
}
|
|
5632
|
-
),
|
|
5698
|
+
), $o = y(
|
|
5633
5699
|
"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",
|
|
5634
5700
|
{
|
|
5635
5701
|
variants: {
|
|
@@ -5674,7 +5740,7 @@ const Do = I.forwardRef(
|
|
|
5674
5740
|
rounded: "middle"
|
|
5675
5741
|
}
|
|
5676
5742
|
}
|
|
5677
|
-
),
|
|
5743
|
+
), Go = (e) => {
|
|
5678
5744
|
const r = {
|
|
5679
5745
|
// Core variants - override hover text color changes
|
|
5680
5746
|
primary: "bg-coral text-white shadow-sm hover:text-white",
|
|
@@ -5699,7 +5765,7 @@ const Do = I.forwardRef(
|
|
|
5699
5765
|
"danger-outline": "bg-danger text-white shadow-sm hover:text-white"
|
|
5700
5766
|
};
|
|
5701
5767
|
return r[e || "primary"] || r.primary;
|
|
5702
|
-
}, hr = ee(null),
|
|
5768
|
+
}, hr = ee(null), Wo = () => {
|
|
5703
5769
|
const e = re(hr);
|
|
5704
5770
|
if (!e)
|
|
5705
5771
|
throw new Error(
|
|
@@ -5707,20 +5773,20 @@ const Do = I.forwardRef(
|
|
|
5707
5773
|
);
|
|
5708
5774
|
return e;
|
|
5709
5775
|
}, xr = I.forwardRef(
|
|
5710
|
-
({ children: e, className: r, disabled: t, id: o, value: s, position: a = "middle", ...
|
|
5711
|
-
const c =
|
|
5776
|
+
({ children: e, className: r, disabled: t, id: o, value: s, position: a = "middle", ...l }, i) => {
|
|
5777
|
+
const c = Wo(), d = I.useId(), f = o || d, g = t || c.disabled, b = c.error ? "danger" : c.variant || "primary", m = c.value?.includes(s) ?? !1, v = (w) => {
|
|
5712
5778
|
if (!g) {
|
|
5713
5779
|
const C = c.value || [];
|
|
5714
5780
|
let R;
|
|
5715
5781
|
m ? R = C.filter((A) => A !== s) : R = [...C, s], c.onChange?.(R);
|
|
5716
5782
|
}
|
|
5717
|
-
|
|
5783
|
+
l.onChange?.(w);
|
|
5718
5784
|
};
|
|
5719
5785
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
5720
5786
|
/* @__PURE__ */ n.jsx(
|
|
5721
5787
|
"input",
|
|
5722
5788
|
{
|
|
5723
|
-
ref:
|
|
5789
|
+
ref: i,
|
|
5724
5790
|
type: "checkbox",
|
|
5725
5791
|
id: f,
|
|
5726
5792
|
name: `${c.name}[]`,
|
|
@@ -5729,7 +5795,7 @@ const Do = I.forwardRef(
|
|
|
5729
5795
|
disabled: g,
|
|
5730
5796
|
onChange: v,
|
|
5731
5797
|
className: "sr-only",
|
|
5732
|
-
...
|
|
5798
|
+
...l
|
|
5733
5799
|
}
|
|
5734
5800
|
),
|
|
5735
5801
|
/* @__PURE__ */ n.jsx(
|
|
@@ -5737,13 +5803,13 @@ const Do = I.forwardRef(
|
|
|
5737
5803
|
{
|
|
5738
5804
|
htmlFor: f,
|
|
5739
5805
|
className: p(
|
|
5740
|
-
|
|
5806
|
+
$o({
|
|
5741
5807
|
variant: b,
|
|
5742
5808
|
size: c.size,
|
|
5743
5809
|
rounded: a
|
|
5744
5810
|
}),
|
|
5745
5811
|
// Apply selected state styling
|
|
5746
|
-
m &&
|
|
5812
|
+
m && Go(b),
|
|
5747
5813
|
m && "relative z-10",
|
|
5748
5814
|
// Apply disabled styling directly since labels don't support disabled attribute
|
|
5749
5815
|
g && "opacity-50 cursor-not-allowed pointer-events-none",
|
|
@@ -5756,7 +5822,7 @@ const Do = I.forwardRef(
|
|
|
5756
5822
|
}
|
|
5757
5823
|
);
|
|
5758
5824
|
xr.displayName = "SegmentOption";
|
|
5759
|
-
const
|
|
5825
|
+
const Yo = I.forwardRef(
|
|
5760
5826
|
({
|
|
5761
5827
|
variant: e = "primary",
|
|
5762
5828
|
size: r = "md",
|
|
@@ -5764,8 +5830,8 @@ const Go = I.forwardRef(
|
|
|
5764
5830
|
helperText: o,
|
|
5765
5831
|
error: s,
|
|
5766
5832
|
className: a,
|
|
5767
|
-
disabled:
|
|
5768
|
-
name:
|
|
5833
|
+
disabled: l,
|
|
5834
|
+
name: i,
|
|
5769
5835
|
value: c = [],
|
|
5770
5836
|
onChange: d,
|
|
5771
5837
|
children: f,
|
|
@@ -5774,9 +5840,9 @@ const Go = I.forwardRef(
|
|
|
5774
5840
|
const m = !!s, v = {
|
|
5775
5841
|
variant: e,
|
|
5776
5842
|
size: r,
|
|
5777
|
-
disabled:
|
|
5843
|
+
disabled: l,
|
|
5778
5844
|
error: m,
|
|
5779
|
-
name:
|
|
5845
|
+
name: i,
|
|
5780
5846
|
value: c,
|
|
5781
5847
|
onChange: d
|
|
5782
5848
|
}, w = I.Children.toArray(f), C = w.map((R, A) => {
|
|
@@ -5794,7 +5860,7 @@ const Go = I.forwardRef(
|
|
|
5794
5860
|
/* @__PURE__ */ n.jsx(
|
|
5795
5861
|
"div",
|
|
5796
5862
|
{
|
|
5797
|
-
className:
|
|
5863
|
+
className: Lo({
|
|
5798
5864
|
variant: m ? "danger" : e,
|
|
5799
5865
|
size: r,
|
|
5800
5866
|
error: m
|
|
@@ -5806,9 +5872,9 @@ const Go = I.forwardRef(
|
|
|
5806
5872
|
!m && o && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-gray-600", children: o })
|
|
5807
5873
|
] }) });
|
|
5808
5874
|
}
|
|
5809
|
-
),
|
|
5875
|
+
), Js = Object.assign(Yo, {
|
|
5810
5876
|
Option: xr
|
|
5811
|
-
}),
|
|
5877
|
+
}), qo = y(
|
|
5812
5878
|
"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",
|
|
5813
5879
|
{
|
|
5814
5880
|
variants: {
|
|
@@ -5840,7 +5906,7 @@ const Go = I.forwardRef(
|
|
|
5840
5906
|
variant: "primary"
|
|
5841
5907
|
}
|
|
5842
5908
|
}
|
|
5843
|
-
),
|
|
5909
|
+
), Uo = I.forwardRef(
|
|
5844
5910
|
({
|
|
5845
5911
|
variant: e = "primary",
|
|
5846
5912
|
label: r,
|
|
@@ -5848,12 +5914,12 @@ const Go = I.forwardRef(
|
|
|
5848
5914
|
error: o,
|
|
5849
5915
|
className: s,
|
|
5850
5916
|
disabled: a,
|
|
5851
|
-
id:
|
|
5852
|
-
placeholder:
|
|
5917
|
+
id: l,
|
|
5918
|
+
placeholder: i,
|
|
5853
5919
|
children: c,
|
|
5854
5920
|
...d
|
|
5855
5921
|
}, f) => {
|
|
5856
|
-
const g = I.useId(), b =
|
|
5922
|
+
const g = I.useId(), b = l || g, m = !!o;
|
|
5857
5923
|
return /* @__PURE__ */ n.jsxs("div", { children: [
|
|
5858
5924
|
/* @__PURE__ */ n.jsx(
|
|
5859
5925
|
"label",
|
|
@@ -5873,14 +5939,14 @@ const Go = I.forwardRef(
|
|
|
5873
5939
|
"aria-disabled": a,
|
|
5874
5940
|
disabled: a,
|
|
5875
5941
|
className: p(
|
|
5876
|
-
|
|
5942
|
+
qo({
|
|
5877
5943
|
variant: m ? "danger" : e
|
|
5878
5944
|
}),
|
|
5879
5945
|
"h-10 pl-3"
|
|
5880
5946
|
),
|
|
5881
5947
|
...d,
|
|
5882
5948
|
children: [
|
|
5883
|
-
|
|
5949
|
+
i && /* @__PURE__ */ n.jsx("option", { value: "", disabled: !0, hidden: !0, children: i }),
|
|
5884
5950
|
c
|
|
5885
5951
|
]
|
|
5886
5952
|
}
|
|
@@ -5909,8 +5975,8 @@ const Go = I.forwardRef(
|
|
|
5909
5975
|
] });
|
|
5910
5976
|
}
|
|
5911
5977
|
);
|
|
5912
|
-
|
|
5913
|
-
const
|
|
5978
|
+
Uo.displayName = "SelectInput";
|
|
5979
|
+
const Ho = y(
|
|
5914
5980
|
"flex items-center gap-2 px-4 py-2 rounded-sm w-fit max-w-sm relative bg-white shadow-sm",
|
|
5915
5981
|
{
|
|
5916
5982
|
variants: {
|
|
@@ -5926,7 +5992,7 @@ const qo = y(
|
|
|
5926
5992
|
}
|
|
5927
5993
|
}
|
|
5928
5994
|
);
|
|
5929
|
-
function
|
|
5995
|
+
function Jo(e) {
|
|
5930
5996
|
switch (e) {
|
|
5931
5997
|
case "info":
|
|
5932
5998
|
return "info-ghost";
|
|
@@ -5939,7 +6005,7 @@ function Uo(e) {
|
|
|
5939
6005
|
return "success-ghost";
|
|
5940
6006
|
}
|
|
5941
6007
|
}
|
|
5942
|
-
const
|
|
6008
|
+
const Xo = ({
|
|
5943
6009
|
children: e,
|
|
5944
6010
|
...r
|
|
5945
6011
|
}) => /* @__PURE__ */ n.jsx(
|
|
@@ -5950,31 +6016,31 @@ const Ho = ({
|
|
|
5950
6016
|
...r,
|
|
5951
6017
|
children: e
|
|
5952
6018
|
}
|
|
5953
|
-
),
|
|
6019
|
+
), Ko = ({
|
|
5954
6020
|
children: e,
|
|
5955
6021
|
...r
|
|
5956
|
-
}) => /* @__PURE__ */ n.jsx("span", { className: "ml-2", "data-testid": "snackbar-action", ...r, children: e }),
|
|
5957
|
-
({ children: e, action: r, onClose: t, color: o, className: s, ...a },
|
|
6022
|
+
}) => /* @__PURE__ */ n.jsx("span", { className: "ml-2", "data-testid": "snackbar-action", ...r, children: e }), Xs = E(
|
|
6023
|
+
({ children: e, action: r, onClose: t, color: o, className: s, ...a }, l) => /* @__PURE__ */ n.jsxs(
|
|
5958
6024
|
"div",
|
|
5959
6025
|
{
|
|
5960
|
-
ref:
|
|
6026
|
+
ref: l,
|
|
5961
6027
|
role: "status",
|
|
5962
6028
|
"aria-live": "polite",
|
|
5963
|
-
className: p(
|
|
6029
|
+
className: p(Ho({ color: o }), s),
|
|
5964
6030
|
...a,
|
|
5965
6031
|
children: [
|
|
5966
|
-
/* @__PURE__ */ n.jsx(
|
|
5967
|
-
r && /* @__PURE__ */ n.jsx(
|
|
6032
|
+
/* @__PURE__ */ n.jsx(Xo, { children: e }),
|
|
6033
|
+
r && /* @__PURE__ */ n.jsx(Ko, { children: r }),
|
|
5968
6034
|
/* @__PURE__ */ n.jsx(
|
|
5969
6035
|
le,
|
|
5970
6036
|
{
|
|
5971
|
-
|
|
6037
|
+
as: Cr,
|
|
6038
|
+
variant: Jo(o),
|
|
5972
6039
|
size: "sm",
|
|
5973
6040
|
shape: "rounded",
|
|
5974
6041
|
"aria-label": "Close",
|
|
5975
6042
|
onClick: t,
|
|
5976
|
-
className: "ml-2"
|
|
5977
|
-
children: /* @__PURE__ */ n.jsx(Cr, { size: 16 })
|
|
6043
|
+
className: "ml-2"
|
|
5978
6044
|
}
|
|
5979
6045
|
)
|
|
5980
6046
|
]
|
|
@@ -5985,7 +6051,7 @@ const Ho = ({
|
|
|
5985
6051
|
if (!e)
|
|
5986
6052
|
throw new Error("useTabsContext must be used within a TabsProvider");
|
|
5987
6053
|
return e;
|
|
5988
|
-
},
|
|
6054
|
+
}, Zo = y(
|
|
5989
6055
|
"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",
|
|
5990
6056
|
{
|
|
5991
6057
|
variants: {
|
|
@@ -6063,13 +6129,13 @@ const Ho = ({
|
|
|
6063
6129
|
color: "primary"
|
|
6064
6130
|
}
|
|
6065
6131
|
}
|
|
6066
|
-
),
|
|
6132
|
+
), Qo = y(
|
|
6067
6133
|
"flex flex-row w-full border-b border-neutral overflow-x-auto whitespace-nowrap",
|
|
6068
6134
|
{
|
|
6069
6135
|
variants: {},
|
|
6070
6136
|
defaultVariants: {}
|
|
6071
6137
|
}
|
|
6072
|
-
),
|
|
6138
|
+
), es = y(
|
|
6073
6139
|
"absolute bottom-0 h-0.5 rounded transition-all duration-300",
|
|
6074
6140
|
{
|
|
6075
6141
|
variants: {
|
|
@@ -6085,25 +6151,25 @@ const Ho = ({
|
|
|
6085
6151
|
color: "primary"
|
|
6086
6152
|
}
|
|
6087
6153
|
}
|
|
6088
|
-
),
|
|
6154
|
+
), rs = ({
|
|
6089
6155
|
value: e,
|
|
6090
6156
|
children: r,
|
|
6091
6157
|
className: t,
|
|
6092
6158
|
...o
|
|
6093
6159
|
}) => {
|
|
6094
|
-
const { activeTab: s, setActiveTab: a, color:
|
|
6160
|
+
const { activeTab: s, setActiveTab: a, color: l } = vr(), i = s === e;
|
|
6095
6161
|
return /* @__PURE__ */ n.jsx(
|
|
6096
6162
|
"button",
|
|
6097
6163
|
{
|
|
6098
6164
|
role: "tab",
|
|
6099
6165
|
id: `tabs-trigger-${e}`,
|
|
6100
|
-
"aria-selected":
|
|
6166
|
+
"aria-selected": i,
|
|
6101
6167
|
"aria-controls": `tabs-content-${e}`,
|
|
6102
|
-
tabIndex:
|
|
6168
|
+
tabIndex: i ? 0 : -1,
|
|
6103
6169
|
className: p(
|
|
6104
|
-
|
|
6105
|
-
active:
|
|
6106
|
-
color:
|
|
6170
|
+
Zo({
|
|
6171
|
+
active: i,
|
|
6172
|
+
color: l
|
|
6107
6173
|
}),
|
|
6108
6174
|
t
|
|
6109
6175
|
),
|
|
@@ -6113,7 +6179,7 @@ const Ho = ({
|
|
|
6113
6179
|
children: r
|
|
6114
6180
|
}
|
|
6115
6181
|
);
|
|
6116
|
-
},
|
|
6182
|
+
}, ts = ({
|
|
6117
6183
|
left: e,
|
|
6118
6184
|
width: r,
|
|
6119
6185
|
className: t,
|
|
@@ -6124,7 +6190,7 @@ const Ho = ({
|
|
|
6124
6190
|
"div",
|
|
6125
6191
|
{
|
|
6126
6192
|
"aria-hidden": !0,
|
|
6127
|
-
className: p(
|
|
6193
|
+
className: p(es({ color: s }), t),
|
|
6128
6194
|
style: {
|
|
6129
6195
|
left: e,
|
|
6130
6196
|
width: r,
|
|
@@ -6134,7 +6200,7 @@ const Ho = ({
|
|
|
6134
6200
|
}
|
|
6135
6201
|
);
|
|
6136
6202
|
};
|
|
6137
|
-
function
|
|
6203
|
+
function os(e, r, t) {
|
|
6138
6204
|
const [o, s] = U({
|
|
6139
6205
|
left: 0,
|
|
6140
6206
|
width: 0
|
|
@@ -6145,8 +6211,8 @@ function rs(e, r, t) {
|
|
|
6145
6211
|
`#tabs-trigger-${e}`
|
|
6146
6212
|
);
|
|
6147
6213
|
if (a) {
|
|
6148
|
-
const { offsetLeft:
|
|
6149
|
-
s({ left:
|
|
6214
|
+
const { offsetLeft: l, offsetWidth: i } = a;
|
|
6215
|
+
s({ left: l, width: i }), a.scrollIntoView({
|
|
6150
6216
|
behavior: "smooth",
|
|
6151
6217
|
inline: "center",
|
|
6152
6218
|
block: "nearest"
|
|
@@ -6154,7 +6220,7 @@ function rs(e, r, t) {
|
|
|
6154
6220
|
}
|
|
6155
6221
|
}, [e, t, r]), o;
|
|
6156
6222
|
}
|
|
6157
|
-
const
|
|
6223
|
+
const ss = ({
|
|
6158
6224
|
value: e,
|
|
6159
6225
|
onValueChange: r,
|
|
6160
6226
|
children: t,
|
|
@@ -6162,23 +6228,23 @@ const ts = ({
|
|
|
6162
6228
|
color: s = "primary",
|
|
6163
6229
|
...a
|
|
6164
6230
|
}) => {
|
|
6165
|
-
const
|
|
6231
|
+
const l = {
|
|
6166
6232
|
activeTab: e,
|
|
6167
6233
|
setActiveTab: r,
|
|
6168
6234
|
color: s
|
|
6169
|
-
},
|
|
6170
|
-
return /* @__PURE__ */ n.jsx(pr.Provider, { value:
|
|
6235
|
+
}, i = ce(null), c = os(e, i, t);
|
|
6236
|
+
return /* @__PURE__ */ n.jsx(pr.Provider, { value: l, children: /* @__PURE__ */ n.jsxs(
|
|
6171
6237
|
"div",
|
|
6172
6238
|
{
|
|
6173
6239
|
role: "tablist",
|
|
6174
|
-
className: p(
|
|
6175
|
-
ref:
|
|
6240
|
+
className: p(Qo(), o),
|
|
6241
|
+
ref: i,
|
|
6176
6242
|
style: { position: "relative" },
|
|
6177
6243
|
...a,
|
|
6178
6244
|
children: [
|
|
6179
6245
|
t,
|
|
6180
6246
|
/* @__PURE__ */ n.jsx(
|
|
6181
|
-
|
|
6247
|
+
ts,
|
|
6182
6248
|
{
|
|
6183
6249
|
left: c.left,
|
|
6184
6250
|
width: c.width
|
|
@@ -6187,9 +6253,9 @@ const ts = ({
|
|
|
6187
6253
|
]
|
|
6188
6254
|
}
|
|
6189
6255
|
) });
|
|
6190
|
-
},
|
|
6191
|
-
Trigger:
|
|
6192
|
-
}),
|
|
6256
|
+
}, Ks = Object.assign(ss, {
|
|
6257
|
+
Trigger: rs
|
|
6258
|
+
}), ns = y("", {
|
|
6193
6259
|
variants: {
|
|
6194
6260
|
color: {
|
|
6195
6261
|
primary: "text-primary",
|
|
@@ -6254,7 +6320,7 @@ const ts = ({
|
|
|
6254
6320
|
ellipsis: !1,
|
|
6255
6321
|
as: "span"
|
|
6256
6322
|
}
|
|
6257
|
-
}),
|
|
6323
|
+
}), Zs = E(
|
|
6258
6324
|
({
|
|
6259
6325
|
as: e = "span",
|
|
6260
6326
|
color: r = "ghost",
|
|
@@ -6262,8 +6328,8 @@ const ts = ({
|
|
|
6262
6328
|
isCapitalize: o = !1,
|
|
6263
6329
|
align: s = "left",
|
|
6264
6330
|
italic: a = !1,
|
|
6265
|
-
clamp:
|
|
6266
|
-
ellipsis:
|
|
6331
|
+
clamp: l = "none",
|
|
6332
|
+
ellipsis: i = !1,
|
|
6267
6333
|
fontSize: c,
|
|
6268
6334
|
fontWeight: d,
|
|
6269
6335
|
className: f,
|
|
@@ -6286,14 +6352,14 @@ const ts = ({
|
|
|
6286
6352
|
{
|
|
6287
6353
|
ref: m,
|
|
6288
6354
|
className: p(
|
|
6289
|
-
|
|
6355
|
+
ns({
|
|
6290
6356
|
color: r,
|
|
6291
6357
|
hasUnderline: t,
|
|
6292
6358
|
isCapitalize: o,
|
|
6293
6359
|
align: s,
|
|
6294
6360
|
italic: a,
|
|
6295
|
-
clamp:
|
|
6296
|
-
ellipsis:
|
|
6361
|
+
clamp: l,
|
|
6362
|
+
ellipsis: i,
|
|
6297
6363
|
// @ts-expect-error - `as` is not a valid variant
|
|
6298
6364
|
as: w
|
|
6299
6365
|
}),
|
|
@@ -6306,7 +6372,7 @@ const ts = ({
|
|
|
6306
6372
|
}
|
|
6307
6373
|
);
|
|
6308
6374
|
}
|
|
6309
|
-
),
|
|
6375
|
+
), as = I.forwardRef(
|
|
6310
6376
|
({
|
|
6311
6377
|
variant: e = "primary",
|
|
6312
6378
|
label: r,
|
|
@@ -6314,8 +6380,8 @@ const ts = ({
|
|
|
6314
6380
|
rightContent: o,
|
|
6315
6381
|
helperText: s,
|
|
6316
6382
|
error: a,
|
|
6317
|
-
className:
|
|
6318
|
-
disabled:
|
|
6383
|
+
className: l,
|
|
6384
|
+
disabled: i,
|
|
6319
6385
|
id: c,
|
|
6320
6386
|
...d
|
|
6321
6387
|
}, f) => {
|
|
@@ -6329,7 +6395,7 @@ const ts = ({
|
|
|
6329
6395
|
children: r
|
|
6330
6396
|
}
|
|
6331
6397
|
),
|
|
6332
|
-
/* @__PURE__ */ n.jsxs("div", { className: p("relative w-full",
|
|
6398
|
+
/* @__PURE__ */ n.jsxs("div", { className: p("relative w-full", l), children: [
|
|
6333
6399
|
t && /* @__PURE__ */ n.jsx(
|
|
6334
6400
|
"span",
|
|
6335
6401
|
{
|
|
@@ -6344,8 +6410,8 @@ const ts = ({
|
|
|
6344
6410
|
ref: f,
|
|
6345
6411
|
id: b,
|
|
6346
6412
|
"aria-invalid": m,
|
|
6347
|
-
"aria-disabled":
|
|
6348
|
-
disabled:
|
|
6413
|
+
"aria-disabled": i,
|
|
6414
|
+
disabled: i,
|
|
6349
6415
|
className: p(
|
|
6350
6416
|
cr({
|
|
6351
6417
|
variant: m ? "danger" : e
|
|
@@ -6371,8 +6437,8 @@ const ts = ({
|
|
|
6371
6437
|
] });
|
|
6372
6438
|
}
|
|
6373
6439
|
);
|
|
6374
|
-
|
|
6375
|
-
const
|
|
6440
|
+
as.displayName = "TextInput";
|
|
6441
|
+
const is = y(
|
|
6376
6442
|
"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",
|
|
6377
6443
|
{
|
|
6378
6444
|
variants: {
|
|
@@ -6409,7 +6475,7 @@ const ns = y(
|
|
|
6409
6475
|
fieldSizing: "fixed"
|
|
6410
6476
|
}
|
|
6411
6477
|
}
|
|
6412
|
-
),
|
|
6478
|
+
), ls = I.forwardRef(
|
|
6413
6479
|
({
|
|
6414
6480
|
variant: e = "primary",
|
|
6415
6481
|
label: r,
|
|
@@ -6417,15 +6483,15 @@ const ns = y(
|
|
|
6417
6483
|
error: o,
|
|
6418
6484
|
className: s,
|
|
6419
6485
|
disabled: a,
|
|
6420
|
-
id:
|
|
6421
|
-
minRows:
|
|
6486
|
+
id: l,
|
|
6487
|
+
minRows: i = 3,
|
|
6422
6488
|
maxRows: c,
|
|
6423
6489
|
fieldSizing: d = "fixed",
|
|
6424
6490
|
style: f,
|
|
6425
6491
|
rows: g,
|
|
6426
6492
|
...b
|
|
6427
6493
|
}, m) => {
|
|
6428
|
-
const v = I.useId(), w =
|
|
6494
|
+
const v = I.useId(), w = l || v, C = !!o, R = g || i, A = d === "content" ? void 0 : c, N = {
|
|
6429
6495
|
...d === "content" && { fieldSizing: "content" },
|
|
6430
6496
|
...A && {
|
|
6431
6497
|
maxHeight: `${A * 1.5}rem`
|
|
@@ -6453,7 +6519,7 @@ const ns = y(
|
|
|
6453
6519
|
disabled: a,
|
|
6454
6520
|
style: N,
|
|
6455
6521
|
className: p(
|
|
6456
|
-
|
|
6522
|
+
is({
|
|
6457
6523
|
variant: C ? "danger" : e,
|
|
6458
6524
|
fieldSizing: d
|
|
6459
6525
|
}),
|
|
@@ -6467,8 +6533,8 @@ const ns = y(
|
|
|
6467
6533
|
] });
|
|
6468
6534
|
}
|
|
6469
6535
|
);
|
|
6470
|
-
|
|
6471
|
-
const
|
|
6536
|
+
ls.displayName = "TextAreaInput";
|
|
6537
|
+
const cs = y(
|
|
6472
6538
|
// Base classes
|
|
6473
6539
|
"block transition-colors duration-200",
|
|
6474
6540
|
{
|
|
@@ -6503,22 +6569,22 @@ const is = y(
|
|
|
6503
6569
|
shape: "rounded"
|
|
6504
6570
|
}
|
|
6505
6571
|
}
|
|
6506
|
-
),
|
|
6572
|
+
), Qs = E(
|
|
6507
6573
|
({ variant: e = "white", size: r = "md", shape: t = "rounded", className: o, ...s }, a) => /* @__PURE__ */ n.jsx(
|
|
6508
6574
|
"div",
|
|
6509
6575
|
{
|
|
6510
6576
|
ref: a,
|
|
6511
|
-
className: p(
|
|
6577
|
+
className: p(cs({ variant: e, size: r, shape: t }), o),
|
|
6512
6578
|
...s
|
|
6513
6579
|
}
|
|
6514
6580
|
)
|
|
6515
|
-
),
|
|
6581
|
+
), ds = y(
|
|
6516
6582
|
"w-full flex items-center px-6 py-2 border-b border-neutral bg-white",
|
|
6517
6583
|
{
|
|
6518
6584
|
variants: {},
|
|
6519
6585
|
defaultVariants: {}
|
|
6520
6586
|
}
|
|
6521
|
-
),
|
|
6587
|
+
), us = y("flex items-center gap-3 min-w-0 flex-1"), gs = y("flex items-center gap-2 ml-auto"), fs = y(
|
|
6522
6588
|
"px-2.5 py-1.5 rounded-md text-xs font-sm cursor-pointer transition-colors",
|
|
6523
6589
|
{
|
|
6524
6590
|
variants: {
|
|
@@ -6531,44 +6597,44 @@ const is = y(
|
|
|
6531
6597
|
active: !1
|
|
6532
6598
|
}
|
|
6533
6599
|
}
|
|
6534
|
-
),
|
|
6600
|
+
), bs = y("flex items-center gap-2 ml-4"), ms = y("flex items-center gap-2 mr-4"), hs = E(
|
|
6535
6601
|
function({ children: r, className: t, ...o }, s) {
|
|
6536
|
-
return /* @__PURE__ */ n.jsx("nav", { ref: s, className:
|
|
6602
|
+
return /* @__PURE__ */ n.jsx("nav", { ref: s, className: bs({ className: t }), ...o, children: r });
|
|
6537
6603
|
}
|
|
6538
|
-
),
|
|
6604
|
+
), xs = E(
|
|
6539
6605
|
function({ children: r, className: t, ...o }, s) {
|
|
6540
|
-
return /* @__PURE__ */ n.jsx("div", { ref: s, className:
|
|
6606
|
+
return /* @__PURE__ */ n.jsx("div", { ref: s, className: ms({ className: t }), ...o, children: r });
|
|
6541
6607
|
}
|
|
6542
|
-
),
|
|
6608
|
+
), ps = E(
|
|
6543
6609
|
function({ children: r, className: t, ...o }, s) {
|
|
6544
|
-
return /* @__PURE__ */ n.jsx("div", { ref: s, className:
|
|
6610
|
+
return /* @__PURE__ */ n.jsx("div", { ref: s, className: us({ className: t }), ...o, children: r });
|
|
6545
6611
|
}
|
|
6546
|
-
),
|
|
6612
|
+
), vs = E(
|
|
6547
6613
|
function({ children: r, className: t, ...o }, s) {
|
|
6548
|
-
return /* @__PURE__ */ n.jsx("div", { ref: s, className:
|
|
6614
|
+
return /* @__PURE__ */ n.jsx("div", { ref: s, className: gs({ className: t }), ...o, children: r });
|
|
6549
6615
|
}
|
|
6550
|
-
),
|
|
6616
|
+
), ws = E(
|
|
6551
6617
|
function({ children: r, className: t, active: o, ...s }, a) {
|
|
6552
6618
|
return /* @__PURE__ */ n.jsx(
|
|
6553
6619
|
"div",
|
|
6554
6620
|
{
|
|
6555
6621
|
ref: a,
|
|
6556
|
-
className:
|
|
6622
|
+
className: fs({ active: o, className: t }),
|
|
6557
6623
|
"aria-current": o ? "page" : void 0,
|
|
6558
6624
|
...s,
|
|
6559
6625
|
children: r
|
|
6560
6626
|
}
|
|
6561
6627
|
);
|
|
6562
6628
|
}
|
|
6563
|
-
),
|
|
6564
|
-
({ children: e, className: r, ...t }, o) => /* @__PURE__ */ n.jsx("header", { ref: o, className:
|
|
6565
|
-
),
|
|
6566
|
-
Leading:
|
|
6567
|
-
Trailing:
|
|
6568
|
-
NavItem:
|
|
6569
|
-
Nav:
|
|
6570
|
-
Actions:
|
|
6571
|
-
}),
|
|
6629
|
+
), ys = E(
|
|
6630
|
+
({ children: e, className: r, ...t }, o) => /* @__PURE__ */ n.jsx("header", { ref: o, className: ds({ className: r }), ...t, children: e })
|
|
6631
|
+
), en = Object.assign(ys, {
|
|
6632
|
+
Leading: ps,
|
|
6633
|
+
Trailing: vs,
|
|
6634
|
+
NavItem: ws,
|
|
6635
|
+
Nav: hs,
|
|
6636
|
+
Actions: xs
|
|
6637
|
+
}), ks = y(
|
|
6572
6638
|
"inline-block border animate-spin rounded-full",
|
|
6573
6639
|
{
|
|
6574
6640
|
variants: {
|
|
@@ -6594,7 +6660,7 @@ const is = y(
|
|
|
6594
6660
|
color: "primary"
|
|
6595
6661
|
}
|
|
6596
6662
|
}
|
|
6597
|
-
),
|
|
6663
|
+
), js = y("relative w-full h-1 overflow-hidden rounded", {
|
|
6598
6664
|
variants: {
|
|
6599
6665
|
color: {
|
|
6600
6666
|
primary: "bg-coral",
|
|
@@ -6617,7 +6683,7 @@ const is = y(
|
|
|
6617
6683
|
color: "primary",
|
|
6618
6684
|
size: "md"
|
|
6619
6685
|
}
|
|
6620
|
-
}),
|
|
6686
|
+
}), Ns = (e) => {
|
|
6621
6687
|
switch (e) {
|
|
6622
6688
|
case "primary":
|
|
6623
6689
|
return "bg-coral";
|
|
@@ -6640,7 +6706,7 @@ const is = y(
|
|
|
6640
6706
|
default:
|
|
6641
6707
|
return "bg-coral";
|
|
6642
6708
|
}
|
|
6643
|
-
},
|
|
6709
|
+
}, Cs = I.forwardRef(
|
|
6644
6710
|
({
|
|
6645
6711
|
color: e = "primary",
|
|
6646
6712
|
size: r = "md",
|
|
@@ -6653,11 +6719,11 @@ const is = y(
|
|
|
6653
6719
|
ref: a,
|
|
6654
6720
|
role: "status",
|
|
6655
6721
|
"aria-label": t,
|
|
6656
|
-
className: p(
|
|
6722
|
+
className: p(ks({ color: e, size: r }), o),
|
|
6657
6723
|
...s
|
|
6658
6724
|
}
|
|
6659
6725
|
)
|
|
6660
|
-
),
|
|
6726
|
+
), zs = I.forwardRef(
|
|
6661
6727
|
({
|
|
6662
6728
|
color: e = "primary",
|
|
6663
6729
|
size: r = "md",
|
|
@@ -6671,7 +6737,7 @@ const is = y(
|
|
|
6671
6737
|
role: "progressbar",
|
|
6672
6738
|
"aria-label": t,
|
|
6673
6739
|
className: p(
|
|
6674
|
-
|
|
6740
|
+
js({ color: e, size: r }),
|
|
6675
6741
|
"bg-neutral/40 relative overflow-hidden",
|
|
6676
6742
|
o
|
|
6677
6743
|
),
|
|
@@ -6691,7 +6757,7 @@ const is = y(
|
|
|
6691
6757
|
{
|
|
6692
6758
|
className: p(
|
|
6693
6759
|
"absolute left-0 top-0 h-full w-1/3 animate-loading-bar rounded-full",
|
|
6694
|
-
|
|
6760
|
+
Ns(e)
|
|
6695
6761
|
),
|
|
6696
6762
|
"aria-hidden": "true"
|
|
6697
6763
|
}
|
|
@@ -6699,7 +6765,7 @@ const is = y(
|
|
|
6699
6765
|
]
|
|
6700
6766
|
}
|
|
6701
6767
|
)
|
|
6702
|
-
),
|
|
6768
|
+
), Is = I.forwardRef(
|
|
6703
6769
|
({
|
|
6704
6770
|
type: e = "spinner",
|
|
6705
6771
|
size: r = "md",
|
|
@@ -6707,10 +6773,10 @@ const is = y(
|
|
|
6707
6773
|
ariaLabel: o = "Loading",
|
|
6708
6774
|
className: s,
|
|
6709
6775
|
...a
|
|
6710
|
-
},
|
|
6711
|
-
|
|
6776
|
+
}, l) => e === "bar" ? /* @__PURE__ */ n.jsx(
|
|
6777
|
+
zs,
|
|
6712
6778
|
{
|
|
6713
|
-
ref:
|
|
6779
|
+
ref: l,
|
|
6714
6780
|
color: t,
|
|
6715
6781
|
size: r,
|
|
6716
6782
|
ariaLabel: o,
|
|
@@ -6718,9 +6784,9 @@ const is = y(
|
|
|
6718
6784
|
...a
|
|
6719
6785
|
}
|
|
6720
6786
|
) : /* @__PURE__ */ n.jsx(
|
|
6721
|
-
|
|
6787
|
+
Cs,
|
|
6722
6788
|
{
|
|
6723
|
-
ref:
|
|
6789
|
+
ref: l,
|
|
6724
6790
|
color: t,
|
|
6725
6791
|
size: r,
|
|
6726
6792
|
ariaLabel: o,
|
|
@@ -6729,8 +6795,8 @@ const is = y(
|
|
|
6729
6795
|
}
|
|
6730
6796
|
)
|
|
6731
6797
|
);
|
|
6732
|
-
|
|
6733
|
-
const
|
|
6798
|
+
Is.displayName = "LoadingIndicator";
|
|
6799
|
+
const Ss = y(
|
|
6734
6800
|
"relative inline-flex items-center transition-colors duration-200",
|
|
6735
6801
|
{
|
|
6736
6802
|
variants: {
|
|
@@ -6782,7 +6848,7 @@ const zs = y(
|
|
|
6782
6848
|
{ checked: !1, class: "bg-white border border-slate-300" }
|
|
6783
6849
|
]
|
|
6784
6850
|
}
|
|
6785
|
-
),
|
|
6851
|
+
), Rs = y(
|
|
6786
6852
|
"absolute rounded-full transition-transform duration-200",
|
|
6787
6853
|
{
|
|
6788
6854
|
variants: {
|
|
@@ -6801,7 +6867,7 @@ const zs = y(
|
|
|
6801
6867
|
checked: !1
|
|
6802
6868
|
}
|
|
6803
6869
|
}
|
|
6804
|
-
),
|
|
6870
|
+
), Vs = ({
|
|
6805
6871
|
color: e = "primary",
|
|
6806
6872
|
size: r = "md",
|
|
6807
6873
|
disabled: t = !1,
|
|
@@ -6811,13 +6877,13 @@ const zs = y(
|
|
|
6811
6877
|
"span",
|
|
6812
6878
|
{
|
|
6813
6879
|
className: p(
|
|
6814
|
-
|
|
6880
|
+
Ss({ color: e, size: r, disabled: t, checked: s }),
|
|
6815
6881
|
"rounded-full pointer-events-none",
|
|
6816
6882
|
o
|
|
6817
6883
|
),
|
|
6818
6884
|
"aria-hidden": "true"
|
|
6819
6885
|
}
|
|
6820
|
-
),
|
|
6886
|
+
), Es = ({ size: e = "md", checked: r = !1 }) => /* @__PURE__ */ n.jsx("span", { className: p(Rs({ size: e, checked: r })), "aria-hidden": "true" }), Ts = ({ label: e, htmlFor: r, placement: t = "top", disabled: o = !1 }) => e ? /* @__PURE__ */ n.jsx(
|
|
6821
6887
|
"label",
|
|
6822
6888
|
{
|
|
6823
6889
|
htmlFor: r,
|
|
@@ -6828,7 +6894,7 @@ const zs = y(
|
|
|
6828
6894
|
),
|
|
6829
6895
|
children: e
|
|
6830
6896
|
}
|
|
6831
|
-
) : null,
|
|
6897
|
+
) : null, As = I.forwardRef(
|
|
6832
6898
|
({
|
|
6833
6899
|
checked: e,
|
|
6834
6900
|
defaultChecked: r,
|
|
@@ -6836,8 +6902,8 @@ const zs = y(
|
|
|
6836
6902
|
color: o = "primary",
|
|
6837
6903
|
size: s = "md",
|
|
6838
6904
|
label: a,
|
|
6839
|
-
labelPlacement:
|
|
6840
|
-
disabled:
|
|
6905
|
+
labelPlacement: l = "top",
|
|
6906
|
+
disabled: i = !1,
|
|
6841
6907
|
className: c,
|
|
6842
6908
|
id: d,
|
|
6843
6909
|
ariaLabel: f,
|
|
@@ -6853,17 +6919,17 @@ const zs = y(
|
|
|
6853
6919
|
{
|
|
6854
6920
|
className: p(
|
|
6855
6921
|
"flex flex-col",
|
|
6856
|
-
|
|
6922
|
+
l === "inline" && "flex-row items-center",
|
|
6857
6923
|
c
|
|
6858
6924
|
),
|
|
6859
6925
|
children: [
|
|
6860
6926
|
/* @__PURE__ */ n.jsx(
|
|
6861
|
-
|
|
6927
|
+
Ts,
|
|
6862
6928
|
{
|
|
6863
6929
|
label: a,
|
|
6864
6930
|
htmlFor: C,
|
|
6865
|
-
placement:
|
|
6866
|
-
disabled:
|
|
6931
|
+
placement: l,
|
|
6932
|
+
disabled: i
|
|
6867
6933
|
}
|
|
6868
6934
|
),
|
|
6869
6935
|
/* @__PURE__ */ n.jsxs(
|
|
@@ -6871,7 +6937,7 @@ const zs = y(
|
|
|
6871
6937
|
{
|
|
6872
6938
|
className: p(
|
|
6873
6939
|
"relative flex items-center",
|
|
6874
|
-
|
|
6940
|
+
l === "inline" && "ml-2"
|
|
6875
6941
|
),
|
|
6876
6942
|
children: [
|
|
6877
6943
|
/* @__PURE__ */ n.jsx(
|
|
@@ -6882,22 +6948,22 @@ const zs = y(
|
|
|
6882
6948
|
id: C,
|
|
6883
6949
|
"aria-label": f || a,
|
|
6884
6950
|
checked: A,
|
|
6885
|
-
disabled:
|
|
6951
|
+
disabled: i,
|
|
6886
6952
|
onChange: N,
|
|
6887
6953
|
className: "absolute inset-0 w-full h-full opacity-0 cursor-pointer z-10",
|
|
6888
6954
|
...g
|
|
6889
6955
|
}
|
|
6890
6956
|
),
|
|
6891
6957
|
/* @__PURE__ */ n.jsx(
|
|
6892
|
-
|
|
6958
|
+
Vs,
|
|
6893
6959
|
{
|
|
6894
6960
|
color: o,
|
|
6895
6961
|
size: s,
|
|
6896
|
-
disabled:
|
|
6962
|
+
disabled: i,
|
|
6897
6963
|
checked: A
|
|
6898
6964
|
}
|
|
6899
6965
|
),
|
|
6900
|
-
/* @__PURE__ */ n.jsx(
|
|
6966
|
+
/* @__PURE__ */ n.jsx(Es, { size: s, checked: A })
|
|
6901
6967
|
]
|
|
6902
6968
|
}
|
|
6903
6969
|
)
|
|
@@ -6906,8 +6972,8 @@ const zs = y(
|
|
|
6906
6972
|
);
|
|
6907
6973
|
}
|
|
6908
6974
|
);
|
|
6909
|
-
|
|
6910
|
-
const
|
|
6975
|
+
As.displayName = "SwitchInput";
|
|
6976
|
+
const Ms = y("w-full overflow-hidden bg-neutral-200", {
|
|
6911
6977
|
variants: {
|
|
6912
6978
|
shape: {
|
|
6913
6979
|
rectangle: "rounded-none",
|
|
@@ -6926,8 +6992,8 @@ const Ts = y("w-full overflow-hidden bg-neutral-200", {
|
|
|
6926
6992
|
shape: "rounded",
|
|
6927
6993
|
size: "md"
|
|
6928
6994
|
}
|
|
6929
|
-
}),
|
|
6930
|
-
function({ shape: r = "rounded", size: t = "md", height: o, className: s, style: a, ...
|
|
6995
|
+
}), rn = wr.forwardRef(
|
|
6996
|
+
function({ shape: r = "rounded", size: t = "md", height: o, className: s, style: a, ...l }, i) {
|
|
6931
6997
|
const d = ["sm", "md", "lg", "xl"].includes(t) ? t : "md", f = o ? {
|
|
6932
6998
|
...a,
|
|
6933
6999
|
height: typeof o == "number" ? `${o}px` : o
|
|
@@ -6935,16 +7001,16 @@ const Ts = y("w-full overflow-hidden bg-neutral-200", {
|
|
|
6935
7001
|
return /* @__PURE__ */ n.jsx(
|
|
6936
7002
|
"div",
|
|
6937
7003
|
{
|
|
6938
|
-
ref:
|
|
7004
|
+
ref: i,
|
|
6939
7005
|
role: "presentation",
|
|
6940
7006
|
className: p(
|
|
6941
7007
|
"relative",
|
|
6942
|
-
|
|
7008
|
+
Ms({ shape: r, size: d }),
|
|
6943
7009
|
s
|
|
6944
7010
|
),
|
|
6945
7011
|
style: f,
|
|
6946
7012
|
"aria-hidden": "true",
|
|
6947
|
-
...
|
|
7013
|
+
...l,
|
|
6948
7014
|
children: /* @__PURE__ */ n.jsx(
|
|
6949
7015
|
"span",
|
|
6950
7016
|
{
|
|
@@ -6961,42 +7027,42 @@ const Ts = y("w-full overflow-hidden bg-neutral-200", {
|
|
|
6961
7027
|
}
|
|
6962
7028
|
);
|
|
6963
7029
|
export {
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
7030
|
+
Bs as Alert,
|
|
7031
|
+
Ds as AppBar,
|
|
7032
|
+
_s as Avatar,
|
|
6967
7033
|
Ct as Badge,
|
|
6968
|
-
|
|
6969
|
-
|
|
7034
|
+
Fs as BottomBar,
|
|
7035
|
+
Ls as Breadcrumbs,
|
|
6970
7036
|
Ge as Button,
|
|
6971
|
-
|
|
7037
|
+
$s as ButtonFloat,
|
|
6972
7038
|
le as ButtonIcon,
|
|
6973
7039
|
or as Calendar,
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
|
|
6980
|
-
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
-
|
|
7040
|
+
Gs as CheckboxInput,
|
|
7041
|
+
Ws as ChipInput,
|
|
7042
|
+
Ys as DateSinglePickerInput,
|
|
7043
|
+
qs as Drawer,
|
|
7044
|
+
Io as DrawerBody,
|
|
7045
|
+
So as DrawerFooter,
|
|
7046
|
+
zo as DrawerHeader,
|
|
7047
|
+
Co as DrawerOverlay,
|
|
7048
|
+
Ft as Icon,
|
|
7049
|
+
Is as LoadingIndicator,
|
|
6984
7050
|
Ie as Menu,
|
|
6985
|
-
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
|
|
6996
|
-
|
|
6997
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
7051
|
+
Us as RadioInput,
|
|
7052
|
+
Js as SegmentMultipleInput,
|
|
7053
|
+
Hs as SegmentSingleInput,
|
|
7054
|
+
Uo as SelectInput,
|
|
7055
|
+
rn as Skeleton,
|
|
7056
|
+
Xs as Snackbar,
|
|
7057
|
+
As as SwitchInput,
|
|
7058
|
+
Ts as SwitchLabel,
|
|
7059
|
+
Es as SwitchThumb,
|
|
7060
|
+
Vs as SwitchTrack,
|
|
7061
|
+
Ks as Tabs,
|
|
7062
|
+
Zs as Text,
|
|
7063
|
+
ls as TextAreaInput,
|
|
7064
|
+
as as TextInput,
|
|
7065
|
+
Qs as Tile,
|
|
7066
|
+
en as TopBar,
|
|
7001
7067
|
je as useDrawerContext
|
|
7002
7068
|
};
|