@versini/sassysaint 5.3.15 → 5.3.16
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/chunks/{LazyApp.DLcaKEZm.js → LazyApp.By3JU--q.js} +57 -57
- package/dist/chunks/{LazyHeader.DF_XuYxS.js → LazyHeader.CtbnJfCu.js} +72 -69
- package/dist/chunks/{LazyMarkdownWithExtra.CFDuqeUh.js → LazyMarkdownWithExtra.5DIzO8pJ.js} +1 -1
- package/dist/chunks/{LazyMessageAssistant.BMarDoja.js → LazyMessageAssistant.DxbwaE9c.js} +305 -305
- package/dist/chunks/{index.p6kaA5n7.js → index.BnAnY2Vs.js} +164 -164
- package/dist/chunks/{index.Cox6Ux55.js → index.C_44Odxq.js} +282 -282
- package/dist/chunks/{index.AUArUGH7.FZU7Bha5.js → index.DfFZfYdy.DM48ssjd.js} +21 -21
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +4 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as x, jsx as c, Fragment as Ne } from "react/jsx-runtime";
|
|
2
|
-
import { g as Se } from "./index.
|
|
3
|
-
import z, { useSyncExternalStore as Ce, useCallback as O, useEffect as
|
|
4
|
-
import
|
|
5
|
-
const
|
|
2
|
+
import { g as Se } from "./index.C_44Odxq.js";
|
|
3
|
+
import z, { useSyncExternalStore as Ce, useCallback as O, useEffect as I, useContext as R, useRef as f, useState as A, useLayoutEffect as M, useMemo as le, useId as $e, useReducer as Ae } from "react";
|
|
4
|
+
import i from "clsx";
|
|
5
|
+
const At = ({
|
|
6
6
|
className: e,
|
|
7
7
|
viewBox: r,
|
|
8
8
|
spacing: t,
|
|
@@ -31,26 +31,26 @@ const It = ({
|
|
|
31
31
|
]
|
|
32
32
|
}
|
|
33
33
|
);
|
|
34
|
-
function
|
|
34
|
+
function ie(e, r) {
|
|
35
35
|
window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: r }));
|
|
36
36
|
}
|
|
37
37
|
const re = (e, r) => {
|
|
38
38
|
const t = JSON.stringify(
|
|
39
39
|
typeof r == "function" ? r() : r
|
|
40
40
|
);
|
|
41
|
-
window.localStorage.setItem(e, t),
|
|
42
|
-
},
|
|
43
|
-
window.localStorage.removeItem(e),
|
|
41
|
+
window.localStorage.setItem(e, t), ie(e, t);
|
|
42
|
+
}, Ie = (e) => {
|
|
43
|
+
window.localStorage.removeItem(e), ie(e, null);
|
|
44
44
|
}, ae = (e) => window.localStorage.getItem(e), Re = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
45
|
-
function
|
|
45
|
+
function It({
|
|
46
46
|
key: e,
|
|
47
47
|
initialValue: r
|
|
48
48
|
}) {
|
|
49
49
|
const t = Ce(Re, () => ae(e)), a = O(
|
|
50
|
-
(
|
|
50
|
+
(l) => {
|
|
51
51
|
try {
|
|
52
|
-
const s = typeof
|
|
53
|
-
s == null ?
|
|
52
|
+
const s = typeof l == "function" ? l(JSON.parse(t)) : l;
|
|
53
|
+
s == null ? Ie(e) : re(e, s);
|
|
54
54
|
} catch (s) {
|
|
55
55
|
console.warn(s);
|
|
56
56
|
}
|
|
@@ -61,11 +61,11 @@ function $t({
|
|
|
61
61
|
}, [r, a]), n = O(() => {
|
|
62
62
|
a(null);
|
|
63
63
|
}, [a]);
|
|
64
|
-
return
|
|
64
|
+
return I(() => {
|
|
65
65
|
try {
|
|
66
66
|
ae(e) === null && typeof r < "u" && re(e, r);
|
|
67
|
-
} catch (
|
|
68
|
-
console.warn(
|
|
67
|
+
} catch (l) {
|
|
68
|
+
console.warn(l);
|
|
69
69
|
}
|
|
70
70
|
}, [e, r]), [t ? JSON.parse(t) : null, a, o, n];
|
|
71
71
|
}
|
|
@@ -216,10 +216,10 @@ const _ = {
|
|
|
216
216
|
});
|
|
217
217
|
if (n.status !== 200)
|
|
218
218
|
return { status: n.status, data: [] };
|
|
219
|
-
const { data:
|
|
219
|
+
const { data: l, errors: s } = await n.json();
|
|
220
220
|
return {
|
|
221
221
|
status: n.status,
|
|
222
|
-
data:
|
|
222
|
+
data: l[r.method],
|
|
223
223
|
errors: s
|
|
224
224
|
};
|
|
225
225
|
} catch (o) {
|
|
@@ -243,13 +243,13 @@ const _ = {
|
|
|
243
243
|
});
|
|
244
244
|
};
|
|
245
245
|
/*!
|
|
246
|
-
@versini/ui-table v1.1.
|
|
246
|
+
@versini/ui-table v1.1.1
|
|
247
247
|
© 2024 gizmette.com
|
|
248
248
|
*/
|
|
249
249
|
try {
|
|
250
250
|
window.__VERSINI_UI_TABLE__ || (window.__VERSINI_UI_TABLE__ = {
|
|
251
|
-
version: "1.1.
|
|
252
|
-
buildTime: "
|
|
251
|
+
version: "1.1.1",
|
|
252
|
+
buildTime: "12/12/2024 05:56 PM EST",
|
|
253
253
|
homepage: "https://github.com/aversini/ui-components",
|
|
254
254
|
license: "MIT"
|
|
255
255
|
});
|
|
@@ -264,7 +264,7 @@ const He = (e) => {
|
|
|
264
264
|
(e == null ? void 0 : e.t) !== void 0 && t.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && t.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && t.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && t.push(`ml-${e.l}`), r = t.join(" ");
|
|
265
265
|
}
|
|
266
266
|
return r;
|
|
267
|
-
}, P = "thead",
|
|
267
|
+
}, P = "thead", X = "tfoot", T = "tbody", U = {
|
|
268
268
|
ASC: "asc",
|
|
269
269
|
DESC: "desc"
|
|
270
270
|
}, Le = ({
|
|
@@ -275,7 +275,7 @@ const He = (e) => {
|
|
|
275
275
|
stickyFooter: o,
|
|
276
276
|
spacing: n
|
|
277
277
|
}) => ({
|
|
278
|
-
wrapper:
|
|
278
|
+
wrapper: i(
|
|
279
279
|
"not-prose relative w-full rounded-lg shadow-md",
|
|
280
280
|
He(n),
|
|
281
281
|
{
|
|
@@ -288,13 +288,13 @@ const He = (e) => {
|
|
|
288
288
|
},
|
|
289
289
|
t
|
|
290
290
|
),
|
|
291
|
-
table:
|
|
291
|
+
table: i("my-0 w-full text-left text-sm", r, {
|
|
292
292
|
"text-copy-light": e === "dark",
|
|
293
293
|
"text-copy-dark": e === "light",
|
|
294
294
|
"text-copy-light dark:text-copy-dark": e === "system",
|
|
295
295
|
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
296
296
|
}),
|
|
297
|
-
caption:
|
|
297
|
+
caption: i("py-2 text-sm font-bold", {
|
|
298
298
|
"text-copy-light": e === "dark",
|
|
299
299
|
"text-copy-dark": e === "light",
|
|
300
300
|
"text-copy-light dark:text-copy-dark": e === "system",
|
|
@@ -304,7 +304,7 @@ const He = (e) => {
|
|
|
304
304
|
className: e,
|
|
305
305
|
stickyHeader: r,
|
|
306
306
|
mode: t
|
|
307
|
-
}) =>
|
|
307
|
+
}) => i(e, {
|
|
308
308
|
"sticky top-0 z-10": r,
|
|
309
309
|
"shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": r && t === "dark",
|
|
310
310
|
"shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem] dark:shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem]": r && t === "system",
|
|
@@ -314,7 +314,7 @@ const He = (e) => {
|
|
|
314
314
|
className: e,
|
|
315
315
|
stickyFooter: r,
|
|
316
316
|
mode: t
|
|
317
|
-
}) =>
|
|
317
|
+
}) => i(e, {
|
|
318
318
|
"sticky bottom-0 z-10": r,
|
|
319
319
|
"shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem]": r && t === "dark",
|
|
320
320
|
"shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem] dark:shadow-[rgb(65_65_65_/30%)_0_-0.5rem_1rem]": r && t === "system",
|
|
@@ -324,12 +324,12 @@ const He = (e) => {
|
|
|
324
324
|
mode: e,
|
|
325
325
|
className: r,
|
|
326
326
|
cellWrapper: t
|
|
327
|
-
}) => t === P || t ===
|
|
327
|
+
}) => t === P || t === X ? i({
|
|
328
328
|
"bg-table-head-dark": e === "dark",
|
|
329
329
|
"bg-table-head-light": e === "light",
|
|
330
330
|
"bg-table-head-dark dark:bg-table-head-light": e === "system",
|
|
331
331
|
"bg-table-head-light dark:bg-table-head-dark": e === "alt-system"
|
|
332
|
-
}) :
|
|
332
|
+
}) : i("border-b last:border-0", r, {
|
|
333
333
|
"border-table-dark": e === "dark",
|
|
334
334
|
"odd:bg-table-dark-odd even:bg-table-dark-even": t === T && e === "dark",
|
|
335
335
|
"border-table-light": e === "light",
|
|
@@ -343,17 +343,17 @@ const He = (e) => {
|
|
|
343
343
|
className: r,
|
|
344
344
|
compact: t,
|
|
345
345
|
mode: a
|
|
346
|
-
}) =>
|
|
346
|
+
}) => i(r, {
|
|
347
347
|
"text-copy-light": a === "dark",
|
|
348
348
|
"text-copy-dark": a === "light",
|
|
349
349
|
"text-copy-light dark:text-copy-dark": a === "system",
|
|
350
350
|
"text-copy-dark dark:text-copy-light": a === "alt-system",
|
|
351
|
-
"px-4 py-3": !t && (e === P || e ===
|
|
351
|
+
"px-4 py-3": !t && (e === P || e === X),
|
|
352
352
|
"p-4": !t && e === T,
|
|
353
353
|
"px-4 py-1": t
|
|
354
354
|
}), ze = ({
|
|
355
355
|
buttonClassName: e
|
|
356
|
-
}) =>
|
|
356
|
+
}) => i("rounded-none text-sm", e), oe = "av-button", Pe = (e) => {
|
|
357
357
|
let r = "";
|
|
358
358
|
if (typeof e == "number" || typeof e == "string")
|
|
359
359
|
r = "m-" + e;
|
|
@@ -369,22 +369,22 @@ const He = (e) => {
|
|
|
369
369
|
labelLeft: a,
|
|
370
370
|
align: o
|
|
371
371
|
}) => {
|
|
372
|
-
const n = "text-sm font-medium max-h-8 py-0",
|
|
372
|
+
const n = "text-sm font-medium max-h-8 py-0", l = "text-base font-medium max-h-9 py-1", s = "text-lg font-medium max-h-12 py-2";
|
|
373
373
|
switch (e) {
|
|
374
374
|
case Fe:
|
|
375
|
-
return
|
|
375
|
+
return i("px-4", {
|
|
376
376
|
[n]: r === "small",
|
|
377
|
-
[
|
|
377
|
+
[l]: r === "medium",
|
|
378
378
|
[s]: r === "large"
|
|
379
379
|
});
|
|
380
380
|
case Ge:
|
|
381
|
-
return
|
|
381
|
+
return i("px-4 text-center", {
|
|
382
382
|
[n]: r === "small",
|
|
383
|
-
[
|
|
383
|
+
[l]: r === "medium",
|
|
384
384
|
[s]: r === "large"
|
|
385
385
|
});
|
|
386
386
|
case ce:
|
|
387
|
-
return
|
|
387
|
+
return i("inline-flex items-center", {
|
|
388
388
|
"justify-center": o === "center",
|
|
389
389
|
"justify-start": o === "left",
|
|
390
390
|
"justify-end": o === "right",
|
|
@@ -396,7 +396,7 @@ const He = (e) => {
|
|
|
396
396
|
"h-12 px-4 text-lg font-medium": r === "large" && (t || a)
|
|
397
397
|
});
|
|
398
398
|
}
|
|
399
|
-
},
|
|
399
|
+
}, We = ({
|
|
400
400
|
mode: e,
|
|
401
401
|
noBackground: r,
|
|
402
402
|
noTruncate: t,
|
|
@@ -405,7 +405,7 @@ const He = (e) => {
|
|
|
405
405
|
if (r)
|
|
406
406
|
return "not-prose rounded-full";
|
|
407
407
|
if (a === "primary")
|
|
408
|
-
return
|
|
408
|
+
return i("not-prose rounded-full", {
|
|
409
409
|
truncate: !t,
|
|
410
410
|
"bg-action-dark text-copy-light": e === "dark",
|
|
411
411
|
"bg-action-light text-copy-lighter": e === "light",
|
|
@@ -413,7 +413,7 @@ const He = (e) => {
|
|
|
413
413
|
"bg-action-light text-copy-lighter dark:bg-action-dark dark:text-copy-light": e === "alt-system"
|
|
414
414
|
});
|
|
415
415
|
if (a === "secondary")
|
|
416
|
-
return
|
|
416
|
+
return i("not-prose rounded-full", {
|
|
417
417
|
truncate: !t,
|
|
418
418
|
"bg-action-dark text-copy-light": e === "light",
|
|
419
419
|
"bg-action-light text-copy-lighter": e === "dark",
|
|
@@ -421,14 +421,14 @@ const He = (e) => {
|
|
|
421
421
|
"bg-action-light text-copy-lighter dark:bg-action-dark dark:text-copy-light": e === "system"
|
|
422
422
|
});
|
|
423
423
|
if (a === "danger")
|
|
424
|
-
return
|
|
424
|
+
return i("not-prose rounded-full", {
|
|
425
425
|
truncate: !t,
|
|
426
426
|
"bg-action-danger-dark text-copy-light": e === "dark",
|
|
427
427
|
"bg-action-danger-light text-copy-lighter": e === "light",
|
|
428
428
|
"bg-action-danger-dark text-copy-light dark:bg-action-danger-light dark:text-copy-lighter": e === "system",
|
|
429
429
|
"bg-action-danger-light text-copy-lighter dark:bg-action-danger-dark dark:text-copy-light": e === "alt-system"
|
|
430
430
|
});
|
|
431
|
-
},
|
|
431
|
+
}, je = ({
|
|
432
432
|
mode: e,
|
|
433
433
|
disabled: r,
|
|
434
434
|
variant: t
|
|
@@ -436,21 +436,21 @@ const He = (e) => {
|
|
|
436
436
|
if (r)
|
|
437
437
|
return "";
|
|
438
438
|
if (t === "primary")
|
|
439
|
-
return
|
|
439
|
+
return i("hover:text-copy-light-hover", {
|
|
440
440
|
"hover:bg-action-dark-hover": e === "dark",
|
|
441
441
|
"hover:bg-action-light-hover": e === "light",
|
|
442
442
|
"hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "system",
|
|
443
443
|
"hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "alt-system"
|
|
444
444
|
});
|
|
445
445
|
if (t === "secondary")
|
|
446
|
-
return
|
|
446
|
+
return i("hover:text-copy-light-hover", {
|
|
447
447
|
"hover:bg-action-dark-hover": e === "light",
|
|
448
448
|
"hover:bg-action-light-hover": e === "dark",
|
|
449
449
|
"hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "alt-system",
|
|
450
450
|
"hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "system"
|
|
451
451
|
});
|
|
452
452
|
if (t === "danger")
|
|
453
|
-
return
|
|
453
|
+
return i("hover:text-copy-light-hover", {
|
|
454
454
|
"hover:bg-action-danger-dark-hover": e === "dark",
|
|
455
455
|
"hover:bg-action-danger-light-hover": e === "light",
|
|
456
456
|
"hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
|
|
@@ -464,21 +464,21 @@ const He = (e) => {
|
|
|
464
464
|
if (r)
|
|
465
465
|
return "";
|
|
466
466
|
if (t === "primary")
|
|
467
|
-
return
|
|
467
|
+
return i("active:text-copy-light-active", {
|
|
468
468
|
"active:bg-action-dark-active": e === "dark",
|
|
469
469
|
"active:bg-action-light-active": e === "light",
|
|
470
470
|
"active:bg-action-dark-active dark:active:bg-action-light-active": e === "system",
|
|
471
471
|
"active:bg-action-light-active dark:active:bg-action-dark-active": e === "alt-system"
|
|
472
472
|
});
|
|
473
473
|
if (t === "secondary")
|
|
474
|
-
return
|
|
474
|
+
return i("active:text-copy-light-active", {
|
|
475
475
|
"active:bg-action-dark-active": e === "light",
|
|
476
476
|
"active:bg-action-light-active": e === "dark",
|
|
477
477
|
"active:bg-action-dark-active dark:active:bg-action-light-active": e === "alt-system",
|
|
478
478
|
"active:bg-action-light-active dark:active:bg-action-dark-active": e === "system"
|
|
479
479
|
});
|
|
480
480
|
if (t === "danger")
|
|
481
|
-
return
|
|
481
|
+
return i("active:text-copy-lighter-active", {
|
|
482
482
|
"active:bg-action-danger-dark-active": e === "dark",
|
|
483
483
|
"active:bg-action-danger-light-active": e === "light",
|
|
484
484
|
"active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
|
|
@@ -492,39 +492,39 @@ const He = (e) => {
|
|
|
492
492
|
if (r)
|
|
493
493
|
return "border border-transparent";
|
|
494
494
|
if (t === "primary")
|
|
495
|
-
return
|
|
495
|
+
return i("border", {
|
|
496
496
|
"border-border-dark": e === "dark",
|
|
497
497
|
"border-border-accent": e === "light",
|
|
498
498
|
"border-border-dark dark:border-border-accent": e === "system",
|
|
499
499
|
"border-border-accent dark:border-border-dark": e === "alt-system"
|
|
500
500
|
});
|
|
501
501
|
if (t === "secondary")
|
|
502
|
-
return
|
|
502
|
+
return i("border", {
|
|
503
503
|
"border-border-dark": e === "light",
|
|
504
504
|
"border-border-accent": e === "dark",
|
|
505
505
|
"border-border-dark dark:border-border-accent": e === "alt-system",
|
|
506
506
|
"border-border-accent dark:border-border-dark": e === "system"
|
|
507
507
|
});
|
|
508
508
|
if (t === "danger")
|
|
509
|
-
return
|
|
509
|
+
return i("border", {
|
|
510
510
|
"border-border-danger-dark": e === "dark",
|
|
511
511
|
"border-border-danger-medium": e === "light",
|
|
512
512
|
"border-border-danger-dark dark:border-border-danger-medium": e === "system",
|
|
513
513
|
"border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
|
|
514
514
|
});
|
|
515
|
-
}, Qe = ({ focusMode: e }) =>
|
|
515
|
+
}, Qe = ({ focusMode: e }) => i("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
516
516
|
"focus:outline-focus-dark": e === "dark",
|
|
517
517
|
"focus:outline-focus-light": e === "light",
|
|
518
518
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
519
519
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
520
|
-
}),
|
|
520
|
+
}), Xe = ({
|
|
521
521
|
type: e,
|
|
522
522
|
className: r,
|
|
523
523
|
raw: t,
|
|
524
524
|
mode: a,
|
|
525
525
|
focusMode: o,
|
|
526
526
|
disabled: n,
|
|
527
|
-
fullWidth:
|
|
527
|
+
fullWidth: l,
|
|
528
528
|
size: s,
|
|
529
529
|
noBorder: d,
|
|
530
530
|
labelRight: m,
|
|
@@ -534,21 +534,21 @@ const He = (e) => {
|
|
|
534
534
|
variant: h,
|
|
535
535
|
noTruncate: b,
|
|
536
536
|
align: w
|
|
537
|
-
}) => (h || (h = "primary"), t ?
|
|
537
|
+
}) => (h || (h = "primary"), t ? i(oe, r) : i(
|
|
538
538
|
oe,
|
|
539
539
|
r,
|
|
540
540
|
Pe(p),
|
|
541
|
-
|
|
541
|
+
We({ mode: a, variant: h, noBackground: g, noTruncate: b }),
|
|
542
542
|
De({ type: e, size: s, labelRight: m, labelLeft: u, align: w }),
|
|
543
543
|
Je({ mode: a, variant: h, noBorder: d }),
|
|
544
544
|
Qe({ focusMode: o }),
|
|
545
|
-
|
|
545
|
+
je({ mode: a, variant: h, disabled: n }),
|
|
546
546
|
qe({ mode: a, variant: h, disabled: n }),
|
|
547
547
|
{
|
|
548
|
-
"w-full":
|
|
548
|
+
"w-full": l,
|
|
549
549
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
|
550
550
|
}
|
|
551
|
-
)),
|
|
551
|
+
)), Ye = (e, r, t) => {
|
|
552
552
|
var a;
|
|
553
553
|
!r && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof t == "function" && t(e);
|
|
554
554
|
}, de = z.forwardRef((e, r) => {
|
|
@@ -558,7 +558,7 @@ const He = (e) => {
|
|
|
558
558
|
{
|
|
559
559
|
ref: r,
|
|
560
560
|
onClick: (n) => {
|
|
561
|
-
|
|
561
|
+
Ye(n, a, t);
|
|
562
562
|
},
|
|
563
563
|
...o
|
|
564
564
|
}
|
|
@@ -566,13 +566,13 @@ const He = (e) => {
|
|
|
566
566
|
});
|
|
567
567
|
de.displayName = "BaseButton";
|
|
568
568
|
/*!
|
|
569
|
-
@versini/ui-button v1.1.
|
|
569
|
+
@versini/ui-button v1.1.12
|
|
570
570
|
© 2024 gizmette.com
|
|
571
571
|
*/
|
|
572
572
|
try {
|
|
573
573
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
574
|
-
version: "1.1.
|
|
575
|
-
buildTime: "
|
|
574
|
+
version: "1.1.12",
|
|
575
|
+
buildTime: "12/12/2024 05:56 PM EST",
|
|
576
576
|
homepage: "https://github.com/aversini/ui-components",
|
|
577
577
|
license: "MIT"
|
|
578
578
|
});
|
|
@@ -586,7 +586,7 @@ const ue = z.forwardRef(
|
|
|
586
586
|
focusMode: a = "system",
|
|
587
587
|
fullWidth: o = !1,
|
|
588
588
|
className: n,
|
|
589
|
-
type:
|
|
589
|
+
type: l = "button",
|
|
590
590
|
raw: s = !1,
|
|
591
591
|
noBorder: d = !1,
|
|
592
592
|
"aria-label": m,
|
|
@@ -600,7 +600,7 @@ const ue = z.forwardRef(
|
|
|
600
600
|
active: B = !1,
|
|
601
601
|
...H
|
|
602
602
|
}, L) => {
|
|
603
|
-
const F =
|
|
603
|
+
const F = Xe({
|
|
604
604
|
type: ce,
|
|
605
605
|
mode: t,
|
|
606
606
|
focusMode: a,
|
|
@@ -615,12 +615,12 @@ const ue = z.forwardRef(
|
|
|
615
615
|
spacing: b,
|
|
616
616
|
noBackground: w,
|
|
617
617
|
align: S
|
|
618
|
-
}), G =
|
|
618
|
+
}), G = i({
|
|
619
619
|
"text-copy-accent-dark": t === "light" && !s,
|
|
620
620
|
"text-copy-light": t === "dark" && !s,
|
|
621
621
|
"text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !s,
|
|
622
622
|
"text-copy-light dark:text-copy-accent-dark": t === "system" && !s
|
|
623
|
-
}), D = B ?
|
|
623
|
+
}), D = B ? i(
|
|
624
624
|
"relative",
|
|
625
625
|
"focus-within:static",
|
|
626
626
|
"focus-within:after:border-transparent",
|
|
@@ -643,7 +643,7 @@ const ue = z.forwardRef(
|
|
|
643
643
|
ref: L,
|
|
644
644
|
className: F,
|
|
645
645
|
disabled: r,
|
|
646
|
-
type:
|
|
646
|
+
type: l,
|
|
647
647
|
"aria-label": m || u,
|
|
648
648
|
...H,
|
|
649
649
|
children: [
|
|
@@ -665,19 +665,19 @@ const Ke = (e) => {
|
|
|
665
665
|
(e == null ? void 0 : e.t) !== void 0 && t.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && t.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && t.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && t.push(`ml-${e.l}`), r = t.join(" ");
|
|
666
666
|
}
|
|
667
667
|
return r;
|
|
668
|
-
},
|
|
668
|
+
}, Y = ({
|
|
669
669
|
children: e,
|
|
670
670
|
fill: r,
|
|
671
671
|
viewBox: t,
|
|
672
672
|
className: a,
|
|
673
673
|
defaultViewBox: o,
|
|
674
674
|
defaultClassName: n,
|
|
675
|
-
spacing:
|
|
675
|
+
spacing: l,
|
|
676
676
|
title: s,
|
|
677
677
|
semantic: d = !1,
|
|
678
678
|
...m
|
|
679
679
|
}) => {
|
|
680
|
-
const u = Ke(
|
|
680
|
+
const u = Ke(l), p = i(
|
|
681
681
|
u,
|
|
682
682
|
a || n
|
|
683
683
|
);
|
|
@@ -700,13 +700,13 @@ const Ke = (e) => {
|
|
|
700
700
|
] });
|
|
701
701
|
};
|
|
702
702
|
/*!
|
|
703
|
-
@versini/ui-private v1.4.
|
|
703
|
+
@versini/ui-private v1.4.19
|
|
704
704
|
© 2024 gizmette.com
|
|
705
705
|
*/
|
|
706
706
|
try {
|
|
707
707
|
window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
|
|
708
|
-
version: "1.4.
|
|
709
|
-
buildTime: "
|
|
708
|
+
version: "1.4.19",
|
|
709
|
+
buildTime: "12/12/2024 05:56 PM EST",
|
|
710
710
|
homepage: "https://github.com/aversini/ui-components",
|
|
711
711
|
license: "MIT"
|
|
712
712
|
});
|
|
@@ -720,7 +720,7 @@ const Ze = ({
|
|
|
720
720
|
monotone: o,
|
|
721
721
|
...n
|
|
722
722
|
}) => /* @__PURE__ */ x(
|
|
723
|
-
|
|
723
|
+
Y,
|
|
724
724
|
{
|
|
725
725
|
defaultViewBox: "0 0 576 512",
|
|
726
726
|
defaultClassName: "size-5",
|
|
@@ -748,7 +748,7 @@ const Ze = ({
|
|
|
748
748
|
monotone: o,
|
|
749
749
|
...n
|
|
750
750
|
}) => /* @__PURE__ */ x(
|
|
751
|
-
|
|
751
|
+
Y,
|
|
752
752
|
{
|
|
753
753
|
defaultViewBox: "0 0 576 512",
|
|
754
754
|
defaultClassName: "size-5",
|
|
@@ -776,7 +776,7 @@ const Ze = ({
|
|
|
776
776
|
monotone: o,
|
|
777
777
|
...n
|
|
778
778
|
}) => /* @__PURE__ */ x(
|
|
779
|
-
|
|
779
|
+
Y,
|
|
780
780
|
{
|
|
781
781
|
defaultViewBox: "0 0 576 512",
|
|
782
782
|
defaultClassName: "size-5",
|
|
@@ -798,13 +798,13 @@ const Ze = ({
|
|
|
798
798
|
}
|
|
799
799
|
);
|
|
800
800
|
/*!
|
|
801
|
-
@versini/ui-icons v1.15.
|
|
801
|
+
@versini/ui-icons v1.15.3
|
|
802
802
|
© 2024 gizmette.com
|
|
803
803
|
*/
|
|
804
804
|
try {
|
|
805
805
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
806
|
-
version: "1.15.
|
|
807
|
-
buildTime: "
|
|
806
|
+
version: "1.15.3",
|
|
807
|
+
buildTime: "12/12/2024 05:56 PM EST",
|
|
808
808
|
homepage: "https://github.com/aversini/ui-components",
|
|
809
809
|
license: "MIT"
|
|
810
810
|
});
|
|
@@ -823,7 +823,7 @@ const N = z.createContext({
|
|
|
823
823
|
compact: a,
|
|
824
824
|
summary: o,
|
|
825
825
|
className: n,
|
|
826
|
-
wrapperClassName:
|
|
826
|
+
wrapperClassName: l,
|
|
827
827
|
maxHeight: s,
|
|
828
828
|
stickyHeader: d,
|
|
829
829
|
stickyFooter: m,
|
|
@@ -833,7 +833,7 @@ const N = z.createContext({
|
|
|
833
833
|
const g = Le({
|
|
834
834
|
mode: r,
|
|
835
835
|
className: n,
|
|
836
|
-
wrapperClassName:
|
|
836
|
+
wrapperClassName: l,
|
|
837
837
|
stickyHeader: d,
|
|
838
838
|
stickyFooter: m,
|
|
839
839
|
spacing: u
|
|
@@ -876,7 +876,7 @@ const N = z.createContext({
|
|
|
876
876
|
...t
|
|
877
877
|
}) => {
|
|
878
878
|
const a = R(N);
|
|
879
|
-
a.cellWrapper =
|
|
879
|
+
a.cellWrapper = X;
|
|
880
880
|
const o = Me({
|
|
881
881
|
className: r,
|
|
882
882
|
mode: a.mode,
|
|
@@ -903,13 +903,13 @@ const N = z.createContext({
|
|
|
903
903
|
className: t,
|
|
904
904
|
...a
|
|
905
905
|
}) => {
|
|
906
|
-
const o = R(N), n = r || (o.cellWrapper === P ? "th" : "td"),
|
|
906
|
+
const o = R(N), n = r || (o.cellWrapper === P ? "th" : "td"), l = Oe({
|
|
907
907
|
cellWrapper: o.cellWrapper,
|
|
908
908
|
className: t,
|
|
909
909
|
mode: o.mode,
|
|
910
910
|
compact: o.compact
|
|
911
911
|
});
|
|
912
|
-
return /* @__PURE__ */ c(n, { className:
|
|
912
|
+
return /* @__PURE__ */ c(n, { className: l, ...a, children: e });
|
|
913
913
|
}, zt = ({
|
|
914
914
|
align: e,
|
|
915
915
|
children: r,
|
|
@@ -917,7 +917,7 @@ const N = z.createContext({
|
|
|
917
917
|
className: a,
|
|
918
918
|
component: o,
|
|
919
919
|
focusMode: n = "alt-system",
|
|
920
|
-
mode:
|
|
920
|
+
mode: l = "alt-system",
|
|
921
921
|
onClick: s,
|
|
922
922
|
sortDirection: d,
|
|
923
923
|
sortedCell: m,
|
|
@@ -942,7 +942,7 @@ const N = z.createContext({
|
|
|
942
942
|
align: e,
|
|
943
943
|
noBorder: !0,
|
|
944
944
|
focusMode: n,
|
|
945
|
-
mode:
|
|
945
|
+
mode: l,
|
|
946
946
|
fullWidth: !0,
|
|
947
947
|
labelRight: r,
|
|
948
948
|
children: d === U.ASC && m === u ? /* @__PURE__ */ c(tt, { className: "size-4", monotone: !0 }) : d === U.DESC && m === u ? /* @__PURE__ */ c(et, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ c(Ze, { className: "size-4", monotone: !0 })
|
|
@@ -952,13 +952,13 @@ const N = z.createContext({
|
|
|
952
952
|
);
|
|
953
953
|
};
|
|
954
954
|
/*!
|
|
955
|
-
@versini/ui-textarea v1.0.
|
|
955
|
+
@versini/ui-textarea v1.0.10
|
|
956
956
|
© 2024 gizmette.com
|
|
957
957
|
*/
|
|
958
958
|
try {
|
|
959
959
|
window.__VERSINI_UI_TEXTAREA__ || (window.__VERSINI_UI_TEXTAREA__ = {
|
|
960
|
-
version: "1.0.
|
|
961
|
-
buildTime: "
|
|
960
|
+
version: "1.0.10",
|
|
961
|
+
buildTime: "12/12/2024 05:56 PM EST",
|
|
962
962
|
homepage: "https://github.com/aversini/ui-components",
|
|
963
963
|
license: "MIT"
|
|
964
964
|
});
|
|
@@ -967,19 +967,19 @@ try {
|
|
|
967
967
|
const me = "av-text-area", at = "av-text-area-wrapper", Q = "av-text-area-helper-text", ot = "av-text-area__control--right";
|
|
968
968
|
function nt() {
|
|
969
969
|
const e = f(!1);
|
|
970
|
-
return
|
|
970
|
+
return I(() => (e.current = !0, () => {
|
|
971
971
|
e.current = !1;
|
|
972
972
|
}), []), O(() => e.current, []);
|
|
973
973
|
}
|
|
974
|
-
function
|
|
975
|
-
return
|
|
974
|
+
function lt(e) {
|
|
975
|
+
return le(() => e.every((r) => r == null) ? () => {
|
|
976
976
|
} : (r) => {
|
|
977
977
|
e.forEach((t) => {
|
|
978
978
|
typeof t == "function" ? t(r) : t != null && (t.current = r);
|
|
979
979
|
});
|
|
980
980
|
}, e);
|
|
981
981
|
}
|
|
982
|
-
const
|
|
982
|
+
const it = {
|
|
983
983
|
x: 0,
|
|
984
984
|
y: 0,
|
|
985
985
|
width: 0,
|
|
@@ -990,15 +990,15 @@ const lt = {
|
|
|
990
990
|
right: 0
|
|
991
991
|
};
|
|
992
992
|
function st(e) {
|
|
993
|
-
const r = nt(), t = f(0), a = f(null), [o, n] =
|
|
993
|
+
const r = nt(), t = f(0), a = f(null), [o, n] = A(it), l = le(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
|
|
994
994
|
const d = s[0];
|
|
995
995
|
d && (cancelAnimationFrame(t.current), t.current = requestAnimationFrame(() => {
|
|
996
996
|
a.current && r() && n(d.contentRect);
|
|
997
997
|
}));
|
|
998
998
|
}), [r]);
|
|
999
|
-
return
|
|
1000
|
-
|
|
1001
|
-
}), [
|
|
999
|
+
return I(() => (a.current && (l == null || l.observe(a.current, e)), () => {
|
|
1000
|
+
l == null || l.disconnect(), t.current && cancelAnimationFrame(t.current);
|
|
1001
|
+
}), [l, e]), [a, o];
|
|
1002
1002
|
}
|
|
1003
1003
|
function ct({
|
|
1004
1004
|
value: e,
|
|
@@ -1008,19 +1008,19 @@ function ct({
|
|
|
1008
1008
|
},
|
|
1009
1009
|
initialControlledDelay: o = 0
|
|
1010
1010
|
}) {
|
|
1011
|
-
const [n,
|
|
1011
|
+
const [n, l] = A(!1), [s, d] = A(
|
|
1012
1012
|
r !== void 0 ? r : t
|
|
1013
1013
|
), m = (u) => {
|
|
1014
1014
|
d(u), a == null || a(u);
|
|
1015
1015
|
};
|
|
1016
|
-
return
|
|
1016
|
+
return I(() => {
|
|
1017
1017
|
(async () => e !== void 0 && !n && o > 0 && (await new Promise(
|
|
1018
1018
|
(u) => setTimeout(u, o)
|
|
1019
|
-
),
|
|
1019
|
+
), l(!0)))();
|
|
1020
1020
|
}, [e, o, n]), e !== void 0 ? !n && o > 0 ? ["", a, !0] : [e, a, !0] : [s, m, !1];
|
|
1021
1021
|
}
|
|
1022
1022
|
function dt(e) {
|
|
1023
|
-
const r =
|
|
1023
|
+
const r = $e();
|
|
1024
1024
|
if (!e)
|
|
1025
1025
|
return r;
|
|
1026
1026
|
if (typeof e == "number" || typeof e == "string")
|
|
@@ -1067,7 +1067,7 @@ const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT", ut = {
|
|
|
1067
1067
|
onAnnouncementClear: a,
|
|
1068
1068
|
dispatch: o
|
|
1069
1069
|
}) => {
|
|
1070
|
-
|
|
1070
|
+
clearTimeout(t.current), e !== null && o({
|
|
1071
1071
|
type: he,
|
|
1072
1072
|
payload: e
|
|
1073
1073
|
}), r && (t.current = setTimeout(
|
|
@@ -1084,20 +1084,20 @@ const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT", ut = {
|
|
|
1084
1084
|
clearAnnouncementDelay: a,
|
|
1085
1085
|
clearAnnouncementTimeoutRef: o,
|
|
1086
1086
|
onAnnouncementClear: n,
|
|
1087
|
-
dispatch:
|
|
1087
|
+
dispatch: l
|
|
1088
1088
|
}) => {
|
|
1089
1089
|
clearTimeout(r.current), t ? r.current = setTimeout(ne, t, {
|
|
1090
1090
|
children: e,
|
|
1091
1091
|
clearAnnouncementDelay: a,
|
|
1092
1092
|
clearAnnouncementTimeoutRef: o,
|
|
1093
1093
|
onAnnouncementClear: n,
|
|
1094
|
-
dispatch:
|
|
1094
|
+
dispatch: l
|
|
1095
1095
|
}) : ne({
|
|
1096
1096
|
children: e,
|
|
1097
1097
|
clearAnnouncementDelay: a,
|
|
1098
1098
|
clearAnnouncementTimeoutRef: o,
|
|
1099
1099
|
onAnnouncementClear: n,
|
|
1100
|
-
dispatch:
|
|
1100
|
+
dispatch: l
|
|
1101
1101
|
});
|
|
1102
1102
|
};
|
|
1103
1103
|
function pt({
|
|
@@ -1107,31 +1107,31 @@ function pt({
|
|
|
1107
1107
|
role: a = null,
|
|
1108
1108
|
announcementDelay: o,
|
|
1109
1109
|
clearAnnouncementDelay: n,
|
|
1110
|
-
onAnnouncementClear:
|
|
1110
|
+
onAnnouncementClear: l,
|
|
1111
1111
|
visible: s,
|
|
1112
1112
|
...d
|
|
1113
1113
|
}) {
|
|
1114
|
-
const m = f(), u = f(), [p, g] =
|
|
1114
|
+
const m = f(null), u = f(null), [p, g] = Ae(mt, {
|
|
1115
1115
|
announcement: null
|
|
1116
1116
|
});
|
|
1117
1117
|
let h = t;
|
|
1118
|
-
typeof h > "u" && (h = a ? ut[a] : "assertive"),
|
|
1118
|
+
typeof h > "u" && (h = a ? ut[a] : "assertive"), I(() => {
|
|
1119
1119
|
gt({
|
|
1120
1120
|
announcementTimeoutRef: m,
|
|
1121
1121
|
announcementDelay: o,
|
|
1122
1122
|
children: e,
|
|
1123
1123
|
clearAnnouncementDelay: n,
|
|
1124
1124
|
clearAnnouncementTimeoutRef: u,
|
|
1125
|
-
onAnnouncementClear:
|
|
1125
|
+
onAnnouncementClear: l,
|
|
1126
1126
|
dispatch: g
|
|
1127
1127
|
});
|
|
1128
1128
|
}, [
|
|
1129
1129
|
e,
|
|
1130
1130
|
o,
|
|
1131
1131
|
n,
|
|
1132
|
-
|
|
1132
|
+
l
|
|
1133
1133
|
]);
|
|
1134
|
-
const b =
|
|
1134
|
+
const b = i(r, {
|
|
1135
1135
|
"sr-only": !s
|
|
1136
1136
|
});
|
|
1137
1137
|
return /* @__PURE__ */ c(
|
|
@@ -1156,13 +1156,13 @@ const bt = (e) => {
|
|
|
1156
1156
|
return r;
|
|
1157
1157
|
};
|
|
1158
1158
|
/*!
|
|
1159
|
-
@versini/ui-private v1.4.
|
|
1159
|
+
@versini/ui-private v1.4.19
|
|
1160
1160
|
© 2024 gizmette.com
|
|
1161
1161
|
*/
|
|
1162
1162
|
try {
|
|
1163
1163
|
window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
|
|
1164
|
-
version: "1.4.
|
|
1165
|
-
buildTime: "
|
|
1164
|
+
version: "1.4.19",
|
|
1165
|
+
buildTime: "12/12/2024 05:56 PM EST",
|
|
1166
1166
|
homepage: "https://github.com/aversini/ui-components",
|
|
1167
1167
|
license: "MIT"
|
|
1168
1168
|
});
|
|
@@ -1170,22 +1170,22 @@ try {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
const yt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", ft = ({
|
|
1172
1172
|
mode: e
|
|
1173
|
-
}) =>
|
|
1173
|
+
}) => i({
|
|
1174
1174
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
|
1175
1175
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
1176
1176
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
1177
1177
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
1178
|
-
}),
|
|
1178
|
+
}), kt = ({
|
|
1179
1179
|
focusMode: e
|
|
1180
|
-
}) =>
|
|
1180
|
+
}) => i("focus:outline focus:outline-2 focus:outline-offset-2", {
|
|
1181
1181
|
"focus:outline-focus-dark": e === "dark",
|
|
1182
1182
|
"focus:outline-focus-light": e === "light",
|
|
1183
1183
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
1184
1184
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
1185
|
-
}),
|
|
1185
|
+
}), vt = ({
|
|
1186
1186
|
noBorder: e,
|
|
1187
1187
|
error: r
|
|
1188
|
-
}) =>
|
|
1188
|
+
}) => i("border-2", {
|
|
1189
1189
|
"border-border-dark": !e && !r,
|
|
1190
1190
|
"focus:border-border-dark": !e && r,
|
|
1191
1191
|
"border-border-error-dark": !e && r,
|
|
@@ -1199,16 +1199,16 @@ const yt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1199
1199
|
if (r)
|
|
1200
1200
|
return "";
|
|
1201
1201
|
if (e)
|
|
1202
|
-
return
|
|
1202
|
+
return i("absolute px-2 cursor-not-allowed opacity-50 font-medium");
|
|
1203
1203
|
if (!t)
|
|
1204
|
-
return
|
|
1204
|
+
return i("absolute px-2 cursor-text font-medium", {
|
|
1205
1205
|
"text-copy-medium": a === "dark",
|
|
1206
1206
|
"text-copy-dark": a === "light",
|
|
1207
1207
|
"text-copy-dark dark:text-copy-medium": a === "system",
|
|
1208
1208
|
"text-copy-medium dark:text-copy-dark": a === "alt-system"
|
|
1209
1209
|
});
|
|
1210
1210
|
if (t)
|
|
1211
|
-
return
|
|
1211
|
+
return i("absolute px-2 cursor-text font-medium", {
|
|
1212
1212
|
"text-copy-medium": a === "dark",
|
|
1213
1213
|
"text-copy-error-dark": a === "light",
|
|
1214
1214
|
"text-copy-error-dark dark:text-copy-error-light": a === "system",
|
|
@@ -1223,19 +1223,19 @@ const yt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1223
1223
|
if (r)
|
|
1224
1224
|
return "";
|
|
1225
1225
|
if (a)
|
|
1226
|
-
return
|
|
1226
|
+
return i(
|
|
1227
1227
|
Q,
|
|
1228
1228
|
"absolute px-2 cursor-not-allowed opacity-50 font-medium"
|
|
1229
1229
|
);
|
|
1230
1230
|
if (!e)
|
|
1231
|
-
return
|
|
1231
|
+
return i(Q, "absolute px-2 font-medium", {
|
|
1232
1232
|
"text-copy-medium": t === "dark",
|
|
1233
1233
|
"text-copy-dark": t === "light",
|
|
1234
1234
|
"text-copy-dark dark:text-copy-medium": t === "system",
|
|
1235
1235
|
"text-copy-medium dark:text-copy-dark": t === "alt-system"
|
|
1236
1236
|
});
|
|
1237
1237
|
if (e)
|
|
1238
|
-
return
|
|
1238
|
+
return i(Q, "absolute px-2 font-medium", {
|
|
1239
1239
|
"text-copy-error-light": t === "dark",
|
|
1240
1240
|
"text-copy-error-dark": t === "light",
|
|
1241
1241
|
"text-copy-error-dark dark:text-copy-error-light": t === "system",
|
|
@@ -1248,24 +1248,24 @@ const yt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1248
1248
|
focusMode: a,
|
|
1249
1249
|
disabled: o,
|
|
1250
1250
|
noBorder: n,
|
|
1251
|
-
error:
|
|
1251
|
+
error: l,
|
|
1252
1252
|
spacing: s,
|
|
1253
1253
|
mode: d
|
|
1254
1254
|
}) => {
|
|
1255
|
-
const m = t ? e :
|
|
1255
|
+
const m = t ? e : i(
|
|
1256
1256
|
"relative flex w-full flex-col justify-center",
|
|
1257
1257
|
at,
|
|
1258
1258
|
e,
|
|
1259
1259
|
bt(s)
|
|
1260
|
-
), u = t ?
|
|
1260
|
+
), u = t ? i(r) : i(
|
|
1261
1261
|
me,
|
|
1262
1262
|
r,
|
|
1263
1263
|
yt(),
|
|
1264
1264
|
ft({ mode: d }),
|
|
1265
|
-
|
|
1266
|
-
|
|
1265
|
+
kt({ focusMode: a }),
|
|
1266
|
+
vt({
|
|
1267
1267
|
noBorder: n,
|
|
1268
|
-
error:
|
|
1268
|
+
error: l
|
|
1269
1269
|
}),
|
|
1270
1270
|
{
|
|
1271
1271
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
@@ -1273,14 +1273,14 @@ const yt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1273
1273
|
), p = t ? void 0 : "sr-only", g = _t({
|
|
1274
1274
|
disabled: o,
|
|
1275
1275
|
raw: t,
|
|
1276
|
-
error:
|
|
1276
|
+
error: l,
|
|
1277
1277
|
mode: d
|
|
1278
1278
|
}), h = xt({
|
|
1279
|
-
error:
|
|
1279
|
+
error: l,
|
|
1280
1280
|
raw: t,
|
|
1281
1281
|
mode: d,
|
|
1282
1282
|
disabled: o
|
|
1283
|
-
}), b = t ? void 0 :
|
|
1283
|
+
}), b = t ? void 0 : i(ot, "absolute");
|
|
1284
1284
|
return {
|
|
1285
1285
|
wrapper: m,
|
|
1286
1286
|
textArea: u,
|
|
@@ -1297,8 +1297,8 @@ const yt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1297
1297
|
}) => {
|
|
1298
1298
|
let o, n;
|
|
1299
1299
|
if (e > 0 && e !== r) {
|
|
1300
|
-
const
|
|
1301
|
-
o = t + -1 * Math.sign(
|
|
1300
|
+
const l = e - r, s = Math.abs(l / 24);
|
|
1301
|
+
o = t + -1 * Math.sign(l) * (12 * s), n = a + Math.sign(l) * (12 * s);
|
|
1302
1302
|
}
|
|
1303
1303
|
return {
|
|
1304
1304
|
labelOffset: o,
|
|
@@ -1313,7 +1313,7 @@ const yt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1313
1313
|
error: a = !1,
|
|
1314
1314
|
raw: o = !1,
|
|
1315
1315
|
className: n,
|
|
1316
|
-
textAreaClassName:
|
|
1316
|
+
textAreaClassName: l,
|
|
1317
1317
|
mode: s = "system",
|
|
1318
1318
|
focusMode: d = "system",
|
|
1319
1319
|
value: m,
|
|
@@ -1330,11 +1330,11 @@ const yt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1330
1330
|
spacing: F,
|
|
1331
1331
|
...G
|
|
1332
1332
|
}, D) => {
|
|
1333
|
-
const
|
|
1333
|
+
const k = f(null), pe = lt([D, k]), [be, V] = st(), W = f(80), K = f(-25), C = f(null), Z = f(30), j = f(null), $ = dt({ id: e, prefix: `${me}-` }), [ye, fe] = A(0), [ke, ee] = A(
|
|
1334
1334
|
!!(!w && b)
|
|
1335
|
-
),
|
|
1335
|
+
), ve = `${r} error, ${b}`, E = wt({
|
|
1336
1336
|
className: n,
|
|
1337
|
-
textAreaClassName:
|
|
1337
|
+
textAreaClassName: l,
|
|
1338
1338
|
error: a,
|
|
1339
1339
|
raw: o,
|
|
1340
1340
|
focusMode: d,
|
|
@@ -1342,7 +1342,7 @@ const yt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1342
1342
|
noBorder: g,
|
|
1343
1343
|
spacing: F,
|
|
1344
1344
|
mode: s
|
|
1345
|
-
}), [
|
|
1345
|
+
}), [v, _e] = ct({
|
|
1346
1346
|
value: m,
|
|
1347
1347
|
initialControlledDelay: 20,
|
|
1348
1348
|
defaultValue: u,
|
|
@@ -1358,42 +1358,42 @@ const yt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1358
1358
|
}, we = (y) => {
|
|
1359
1359
|
w && b && ee(!0), H && H(y);
|
|
1360
1360
|
}, Ee = (y) => {
|
|
1361
|
-
w && b && !
|
|
1361
|
+
w && b && !v && ee(!1), L && L(y);
|
|
1362
1362
|
};
|
|
1363
1363
|
return M(() => {
|
|
1364
1364
|
V && V.width && fe(V.width + 18 + 10);
|
|
1365
1365
|
}, [V]), M(() => {
|
|
1366
|
-
o ||
|
|
1367
|
-
}, [
|
|
1366
|
+
o || k && k.current && v !== void 0 && (k.current.style.height = "inherit", k.current.style.height = k.current.scrollHeight + "px");
|
|
1367
|
+
}, [v, o]), M(() => {
|
|
1368
1368
|
o || setTimeout(() => {
|
|
1369
1369
|
var y;
|
|
1370
1370
|
(y = C == null ? void 0 : C.current) == null || y.style.setProperty(
|
|
1371
1371
|
"--av-text-area-wrapper-transition",
|
|
1372
|
-
|
|
1372
|
+
v ? "none" : "all 0.2s ease-out"
|
|
1373
1373
|
);
|
|
1374
1374
|
}, 0);
|
|
1375
|
-
}, [
|
|
1375
|
+
}, [v, o]), M(() => {
|
|
1376
1376
|
var y, te;
|
|
1377
|
-
if (!o &&
|
|
1377
|
+
if (!o && k && k.current && v !== void 0) {
|
|
1378
1378
|
const { labelOffset: q, helperTextOffset: J, scrollHeight: Te } = Et({
|
|
1379
|
-
scrollHeight:
|
|
1380
|
-
currentHeight:
|
|
1379
|
+
scrollHeight: k.current.scrollHeight,
|
|
1380
|
+
currentHeight: W.current,
|
|
1381
1381
|
currentLabelOffset: K.current,
|
|
1382
1382
|
currentHelperTextOffset: Z.current
|
|
1383
1383
|
});
|
|
1384
1384
|
q && (K.current = q, (y = C == null ? void 0 : C.current) == null || y.style.setProperty(
|
|
1385
1385
|
"--av-text-area-label",
|
|
1386
1386
|
`${q}px`
|
|
1387
|
-
)), J && (Z.current = J, (te =
|
|
1387
|
+
)), J && (Z.current = J, (te = j == null ? void 0 : j.current) == null || te.style.setProperty(
|
|
1388
1388
|
"--av-text-area-helper-text",
|
|
1389
1389
|
`${J}px`
|
|
1390
|
-
)),
|
|
1390
|
+
)), W.current = Te || W.current;
|
|
1391
1391
|
}
|
|
1392
|
-
}, [
|
|
1392
|
+
}, [v, o]), /* @__PURE__ */ x("div", { className: E.wrapper, children: [
|
|
1393
1393
|
/* @__PURE__ */ c(
|
|
1394
1394
|
"label",
|
|
1395
1395
|
{
|
|
1396
|
-
htmlFor:
|
|
1396
|
+
htmlFor: $,
|
|
1397
1397
|
id: h,
|
|
1398
1398
|
className: E.accessibleLabel,
|
|
1399
1399
|
children: t
|
|
@@ -1403,16 +1403,16 @@ const yt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1403
1403
|
"textarea",
|
|
1404
1404
|
{
|
|
1405
1405
|
ref: pe,
|
|
1406
|
-
id:
|
|
1406
|
+
id: $,
|
|
1407
1407
|
name: r,
|
|
1408
1408
|
disabled: p,
|
|
1409
1409
|
placeholder: o ? void 0 : " ",
|
|
1410
1410
|
className: E.textArea,
|
|
1411
1411
|
rows: 1,
|
|
1412
|
-
...b && { "aria-describedby": `${
|
|
1412
|
+
...b && { "aria-describedby": `${$}-helper` },
|
|
1413
1413
|
...a && { "aria-invalid": "true" },
|
|
1414
1414
|
...S && !o && { style: { paddingRight: ye } },
|
|
1415
|
-
value:
|
|
1415
|
+
value: v,
|
|
1416
1416
|
onChange: xe,
|
|
1417
1417
|
onFocus: we,
|
|
1418
1418
|
onBlur: Ee,
|
|
@@ -1424,16 +1424,16 @@ const yt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1424
1424
|
{
|
|
1425
1425
|
ref: C,
|
|
1426
1426
|
"aria-hidden": !0,
|
|
1427
|
-
htmlFor:
|
|
1427
|
+
htmlFor: $,
|
|
1428
1428
|
className: E.visibleLabel,
|
|
1429
1429
|
children: t
|
|
1430
1430
|
}
|
|
1431
1431
|
),
|
|
1432
|
-
|
|
1432
|
+
ke && /* @__PURE__ */ c(
|
|
1433
1433
|
"div",
|
|
1434
1434
|
{
|
|
1435
|
-
ref:
|
|
1436
|
-
id: `${
|
|
1435
|
+
ref: j,
|
|
1436
|
+
id: `${$}-helper`,
|
|
1437
1437
|
className: E.helperText,
|
|
1438
1438
|
children: b
|
|
1439
1439
|
}
|
|
@@ -1446,13 +1446,13 @@ const yt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1446
1446
|
children: S
|
|
1447
1447
|
}
|
|
1448
1448
|
),
|
|
1449
|
-
a && b && /* @__PURE__ */ c(pt, { politeness: "polite", clearAnnouncementDelay: 500, children:
|
|
1449
|
+
a && b && /* @__PURE__ */ c(pt, { politeness: "polite", clearAnnouncementDelay: 500, children: ve })
|
|
1450
1450
|
] });
|
|
1451
1451
|
}
|
|
1452
1452
|
);
|
|
1453
1453
|
Tt.displayName = "TextArea";
|
|
1454
1454
|
export {
|
|
1455
|
-
|
|
1455
|
+
It as E,
|
|
1456
1456
|
Rt as SERVICE_TYPES,
|
|
1457
1457
|
Mt as be,
|
|
1458
1458
|
rt as de,
|
|
@@ -1460,7 +1460,7 @@ export {
|
|
|
1460
1460
|
Lt as ge,
|
|
1461
1461
|
Vt as he,
|
|
1462
1462
|
Ut as me,
|
|
1463
|
-
|
|
1463
|
+
At as n,
|
|
1464
1464
|
zt as pe,
|
|
1465
1465
|
Ht as restCall,
|
|
1466
1466
|
Bt as serviceCall,
|