@versini/sassysaint 5.3.5 → 5.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{App.DIp3e6vV.js → App.C-au1CV7.js} +21 -21
- package/dist/chunks/{LazyHeader.DsjaU53d.js → LazyHeader.CpSRHduY.js} +535 -548
- package/dist/chunks/{LazyMarkdownWithExtra.DITzdYV4.js → LazyMarkdownWithExtra.BAEZPXtS.js} +11 -11
- package/dist/chunks/{LazyMessageAssistant.C_Ht2zFE.js → LazyMessageAssistant.De9R5w_u.js} +7 -7
- package/dist/chunks/{index.D5p6GpnU.C8lskEhG.js → index.AUArUGH7.FZU7Bha5.js} +10 -10
- package/dist/chunks/{index.B3_1eKgu.js → index.C8-dCwmB.js} +206 -199
- package/dist/chunks/{index.CckjgePJ.js → index.Htlj5BwD.js} +187 -186
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +5 -5
|
@@ -12,7 +12,7 @@ const re = (e, r) => {
|
|
|
12
12
|
}, Ie = (e) => {
|
|
13
13
|
window.localStorage.removeItem(e), le(e, null);
|
|
14
14
|
}, ae = (e) => window.localStorage.getItem(e), Re = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
15
|
-
function
|
|
15
|
+
function Ct({
|
|
16
16
|
key: e,
|
|
17
17
|
initialValue: r
|
|
18
18
|
}) {
|
|
@@ -80,6 +80,7 @@ const _ = {
|
|
|
80
80
|
deleteChat(id: $id, user: $userId) {
|
|
81
81
|
timestamp
|
|
82
82
|
id
|
|
83
|
+
model
|
|
83
84
|
messages {
|
|
84
85
|
content
|
|
85
86
|
}
|
|
@@ -112,7 +113,7 @@ const _ = {
|
|
|
112
113
|
location: $location,
|
|
113
114
|
engine: $engine)
|
|
114
115
|
}`
|
|
115
|
-
},
|
|
116
|
+
}, At = {
|
|
116
117
|
GET_LOCATION: {
|
|
117
118
|
schema: _.GET_LOCATION,
|
|
118
119
|
method: "location"
|
|
@@ -161,7 +162,7 @@ const _ = {
|
|
|
161
162
|
query: e,
|
|
162
163
|
variables: r
|
|
163
164
|
})
|
|
164
|
-
}),
|
|
165
|
+
}), It = async ({
|
|
165
166
|
accessToken: e,
|
|
166
167
|
type: r,
|
|
167
168
|
params: t = {}
|
|
@@ -186,7 +187,7 @@ const _ = {
|
|
|
186
187
|
} catch (o) {
|
|
187
188
|
return console.error(o), { status: 500, data: [] };
|
|
188
189
|
}
|
|
189
|
-
},
|
|
190
|
+
}, Rt = async ({
|
|
190
191
|
accessToken: e,
|
|
191
192
|
name: r,
|
|
192
193
|
data: t,
|
|
@@ -204,13 +205,13 @@ const _ = {
|
|
|
204
205
|
});
|
|
205
206
|
};
|
|
206
207
|
/*!
|
|
207
|
-
@versini/ui-table v1.0
|
|
208
|
+
@versini/ui-table v1.1.0
|
|
208
209
|
© 2024 gizmette.com
|
|
209
210
|
*/
|
|
210
211
|
try {
|
|
211
212
|
window.__VERSINI_UI_TABLE__ || (window.__VERSINI_UI_TABLE__ = {
|
|
212
|
-
version: "1.0
|
|
213
|
-
buildTime: "
|
|
213
|
+
version: "1.1.0",
|
|
214
|
+
buildTime: "11/19/2024 10:59 AM EST",
|
|
214
215
|
homepage: "https://github.com/aversini/ui-components",
|
|
215
216
|
license: "MIT"
|
|
216
217
|
});
|
|
@@ -225,7 +226,7 @@ const Be = (e) => {
|
|
|
225
226
|
(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(" ");
|
|
226
227
|
}
|
|
227
228
|
return r;
|
|
228
|
-
},
|
|
229
|
+
}, P = "thead", Y = "tfoot", T = "tbody", M = {
|
|
229
230
|
ASC: "asc",
|
|
230
231
|
DESC: "desc"
|
|
231
232
|
}, He = ({
|
|
@@ -285,7 +286,7 @@ const Be = (e) => {
|
|
|
285
286
|
mode: e,
|
|
286
287
|
className: r,
|
|
287
288
|
cellWrapper: t
|
|
288
|
-
}) => t ===
|
|
289
|
+
}) => t === P || t === Y ? l({
|
|
289
290
|
"bg-table-head-dark": e === "dark",
|
|
290
291
|
"bg-table-head-light": e === "light",
|
|
291
292
|
"bg-table-head-dark dark:bg-table-head-light": e === "system",
|
|
@@ -309,10 +310,12 @@ const Be = (e) => {
|
|
|
309
310
|
"text-copy-dark": a === "light",
|
|
310
311
|
"text-copy-light dark:text-copy-dark": a === "system",
|
|
311
312
|
"text-copy-dark dark:text-copy-light": a === "alt-system",
|
|
312
|
-
"px-4 py-3": !t && (e ===
|
|
313
|
+
"px-4 py-3": !t && (e === P || e === Y),
|
|
313
314
|
"p-4": !t && e === T,
|
|
314
315
|
"px-4 py-1": t
|
|
315
|
-
}),
|
|
316
|
+
}), Oe = ({
|
|
317
|
+
buttonClassName: e
|
|
318
|
+
}) => l("rounded-none text-sm", e), oe = "av-button", ze = (e) => {
|
|
316
319
|
let r = "";
|
|
317
320
|
if (typeof e == "number" || typeof e == "string")
|
|
318
321
|
r = "m-" + e;
|
|
@@ -321,7 +324,7 @@ const Be = (e) => {
|
|
|
321
324
|
(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(" ");
|
|
322
325
|
}
|
|
323
326
|
return r;
|
|
324
|
-
}, ce = "icon",
|
|
327
|
+
}, ce = "icon", Pe = "button", Fe = "link", Ge = ({
|
|
325
328
|
type: e,
|
|
326
329
|
size: r,
|
|
327
330
|
labelRight: t,
|
|
@@ -330,13 +333,13 @@ const Be = (e) => {
|
|
|
330
333
|
}) => {
|
|
331
334
|
const n = "text-sm font-medium max-h-8 py-0", i = "text-base font-medium max-h-9 py-1", s = "text-lg font-medium max-h-12 py-2";
|
|
332
335
|
switch (e) {
|
|
333
|
-
case
|
|
336
|
+
case Pe:
|
|
334
337
|
return l("px-4", {
|
|
335
338
|
[n]: r === "small",
|
|
336
339
|
[i]: r === "medium",
|
|
337
340
|
[s]: r === "large"
|
|
338
341
|
});
|
|
339
|
-
case
|
|
342
|
+
case Fe:
|
|
340
343
|
return l("px-4 text-center", {
|
|
341
344
|
[n]: r === "small",
|
|
342
345
|
[i]: r === "medium",
|
|
@@ -355,7 +358,7 @@ const Be = (e) => {
|
|
|
355
358
|
"h-12 px-4 text-lg font-medium": r === "large" && (t || a)
|
|
356
359
|
});
|
|
357
360
|
}
|
|
358
|
-
},
|
|
361
|
+
}, De = ({
|
|
359
362
|
mode: e,
|
|
360
363
|
noBackground: r,
|
|
361
364
|
noTruncate: t,
|
|
@@ -387,7 +390,7 @@ const Be = (e) => {
|
|
|
387
390
|
"bg-action-danger-dark text-copy-light dark:bg-action-danger-light dark:text-copy-lighter": e === "system",
|
|
388
391
|
"bg-action-danger-light text-copy-lighter dark:bg-action-danger-dark dark:text-copy-light": e === "alt-system"
|
|
389
392
|
});
|
|
390
|
-
},
|
|
393
|
+
}, je = ({
|
|
391
394
|
mode: e,
|
|
392
395
|
disabled: r,
|
|
393
396
|
variant: t
|
|
@@ -415,7 +418,7 @@ const Be = (e) => {
|
|
|
415
418
|
"hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
|
|
416
419
|
"hover:bg-action-danger-light-hover dark:hover:bg-action-danger-dark-hover": e === "alt-system"
|
|
417
420
|
});
|
|
418
|
-
},
|
|
421
|
+
}, We = ({
|
|
419
422
|
mode: e,
|
|
420
423
|
disabled: r,
|
|
421
424
|
variant: t
|
|
@@ -443,7 +446,7 @@ const Be = (e) => {
|
|
|
443
446
|
"active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
|
|
444
447
|
"active:bg-action-danger-light-active dark:active:bg-action-danger-dark-active": e === "alt-system"
|
|
445
448
|
});
|
|
446
|
-
},
|
|
449
|
+
}, qe = ({
|
|
447
450
|
mode: e,
|
|
448
451
|
noBorder: r,
|
|
449
452
|
variant: t
|
|
@@ -471,12 +474,12 @@ const Be = (e) => {
|
|
|
471
474
|
"border-border-danger-dark dark:border-border-danger-medium": e === "system",
|
|
472
475
|
"border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
|
|
473
476
|
});
|
|
474
|
-
},
|
|
477
|
+
}, Je = ({ focusMode: e }) => l("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
475
478
|
"focus:outline-focus-dark": e === "dark",
|
|
476
479
|
"focus:outline-focus-light": e === "light",
|
|
477
480
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
478
481
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
479
|
-
}),
|
|
482
|
+
}), Qe = ({
|
|
480
483
|
type: e,
|
|
481
484
|
className: r,
|
|
482
485
|
raw: t,
|
|
@@ -486,28 +489,28 @@ const Be = (e) => {
|
|
|
486
489
|
fullWidth: i,
|
|
487
490
|
size: s,
|
|
488
491
|
noBorder: d,
|
|
489
|
-
labelRight:
|
|
490
|
-
labelLeft:
|
|
491
|
-
spacing:
|
|
492
|
+
labelRight: m,
|
|
493
|
+
labelLeft: u,
|
|
494
|
+
spacing: p,
|
|
492
495
|
noBackground: g,
|
|
493
496
|
variant: h,
|
|
494
|
-
noTruncate:
|
|
497
|
+
noTruncate: b,
|
|
495
498
|
align: x
|
|
496
499
|
}) => (h || (h = "primary"), t ? l(oe, r) : l(
|
|
497
500
|
oe,
|
|
498
501
|
r,
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
Ge({ mode: a, variant: h, disabled: n }),
|
|
502
|
+
ze(p),
|
|
503
|
+
De({ mode: a, variant: h, noBackground: g, noTruncate: b }),
|
|
504
|
+
Ge({ type: e, size: s, labelRight: m, labelLeft: u, align: x }),
|
|
505
|
+
qe({ mode: a, variant: h, noBorder: d }),
|
|
506
|
+
Je({ focusMode: o }),
|
|
505
507
|
je({ mode: a, variant: h, disabled: n }),
|
|
508
|
+
We({ mode: a, variant: h, disabled: n }),
|
|
506
509
|
{
|
|
507
510
|
"w-full": i,
|
|
508
511
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
|
509
512
|
}
|
|
510
|
-
)),
|
|
513
|
+
)), Ye = (e, r, t) => {
|
|
511
514
|
var a;
|
|
512
515
|
!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);
|
|
513
516
|
}, de = z.forwardRef((e, r) => {
|
|
@@ -517,7 +520,7 @@ const Be = (e) => {
|
|
|
517
520
|
{
|
|
518
521
|
ref: r,
|
|
519
522
|
onClick: (n) => {
|
|
520
|
-
|
|
523
|
+
Ye(n, a, t);
|
|
521
524
|
},
|
|
522
525
|
...o
|
|
523
526
|
}
|
|
@@ -525,13 +528,13 @@ const Be = (e) => {
|
|
|
525
528
|
});
|
|
526
529
|
de.displayName = "BaseButton";
|
|
527
530
|
/*!
|
|
528
|
-
@versini/ui-button v1.1.
|
|
531
|
+
@versini/ui-button v1.1.11
|
|
529
532
|
© 2024 gizmette.com
|
|
530
533
|
*/
|
|
531
534
|
try {
|
|
532
535
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
533
|
-
version: "1.1.
|
|
534
|
-
buildTime: "
|
|
536
|
+
version: "1.1.11",
|
|
537
|
+
buildTime: "11/19/2024 10:59 AM EST",
|
|
535
538
|
homepage: "https://github.com/aversini/ui-components",
|
|
536
539
|
license: "MIT"
|
|
537
540
|
});
|
|
@@ -548,18 +551,18 @@ const ue = z.forwardRef(
|
|
|
548
551
|
type: i = "button",
|
|
549
552
|
raw: s = !1,
|
|
550
553
|
noBorder: d = !1,
|
|
551
|
-
"aria-label":
|
|
552
|
-
label:
|
|
553
|
-
size:
|
|
554
|
+
"aria-label": m,
|
|
555
|
+
label: u,
|
|
556
|
+
size: p = "medium",
|
|
554
557
|
labelRight: g,
|
|
555
558
|
labelLeft: h,
|
|
556
|
-
spacing:
|
|
559
|
+
spacing: b,
|
|
557
560
|
noBackground: x = !1,
|
|
558
561
|
align: S = "center",
|
|
559
562
|
active: B = !1,
|
|
560
563
|
...H
|
|
561
564
|
}, L) => {
|
|
562
|
-
const
|
|
565
|
+
const F = Qe({
|
|
563
566
|
type: ce,
|
|
564
567
|
mode: t,
|
|
565
568
|
focusMode: a,
|
|
@@ -568,18 +571,18 @@ const ue = z.forwardRef(
|
|
|
568
571
|
raw: s,
|
|
569
572
|
className: n,
|
|
570
573
|
noBorder: d,
|
|
571
|
-
size:
|
|
574
|
+
size: p,
|
|
572
575
|
labelRight: g,
|
|
573
576
|
labelLeft: h,
|
|
574
|
-
spacing:
|
|
577
|
+
spacing: b,
|
|
575
578
|
noBackground: x,
|
|
576
579
|
align: S
|
|
577
|
-
}),
|
|
580
|
+
}), G = l({
|
|
578
581
|
"text-copy-accent-dark": t === "light" && !s,
|
|
579
582
|
"text-copy-light": t === "dark" && !s,
|
|
580
583
|
"text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !s,
|
|
581
584
|
"text-copy-light dark:text-copy-accent-dark": t === "system" && !s
|
|
582
|
-
}),
|
|
585
|
+
}), D = B ? l(
|
|
583
586
|
"relative",
|
|
584
587
|
"focus-within:static",
|
|
585
588
|
"focus-within:after:border-transparent",
|
|
@@ -596,18 +599,18 @@ const ue = z.forwardRef(
|
|
|
596
599
|
"after:border-table-light dark:after:border-table-dark": t === "alt-system"
|
|
597
600
|
}
|
|
598
601
|
) : "";
|
|
599
|
-
return /* @__PURE__ */ c("div", { className:
|
|
602
|
+
return /* @__PURE__ */ c("div", { className: D, children: /* @__PURE__ */ w(
|
|
600
603
|
de,
|
|
601
604
|
{
|
|
602
605
|
ref: L,
|
|
603
|
-
className:
|
|
606
|
+
className: F,
|
|
604
607
|
disabled: r,
|
|
605
608
|
type: i,
|
|
606
|
-
"aria-label":
|
|
609
|
+
"aria-label": m || u,
|
|
607
610
|
...H,
|
|
608
611
|
children: [
|
|
609
612
|
h && /* @__PURE__ */ c("span", { className: "pr-2", children: h }),
|
|
610
|
-
/* @__PURE__ */ c("div", { className:
|
|
613
|
+
/* @__PURE__ */ c("div", { className: G, children: e }),
|
|
611
614
|
g && /* @__PURE__ */ c("span", { className: "pl-2", children: g })
|
|
612
615
|
]
|
|
613
616
|
}
|
|
@@ -615,7 +618,7 @@ const ue = z.forwardRef(
|
|
|
615
618
|
}
|
|
616
619
|
);
|
|
617
620
|
ue.displayName = "ButtonSort";
|
|
618
|
-
const
|
|
621
|
+
const Xe = (e) => {
|
|
619
622
|
let r = "";
|
|
620
623
|
if (typeof e == "number" || typeof e == "string")
|
|
621
624
|
r = "m-" + e;
|
|
@@ -634,10 +637,10 @@ const Ye = (e) => {
|
|
|
634
637
|
spacing: i,
|
|
635
638
|
title: s,
|
|
636
639
|
semantic: d = !1,
|
|
637
|
-
...
|
|
640
|
+
...m
|
|
638
641
|
}) => {
|
|
639
|
-
const
|
|
640
|
-
|
|
642
|
+
const u = Xe(i), p = l(
|
|
643
|
+
u,
|
|
641
644
|
a || n
|
|
642
645
|
);
|
|
643
646
|
return /* @__PURE__ */ w(Ae, { children: [
|
|
@@ -645,13 +648,13 @@ const Ye = (e) => {
|
|
|
645
648
|
"svg",
|
|
646
649
|
{
|
|
647
650
|
xmlns: "http://www.w3.org/2000/svg",
|
|
648
|
-
className:
|
|
651
|
+
className: p,
|
|
649
652
|
viewBox: t || o,
|
|
650
653
|
fill: r || "currentColor",
|
|
651
654
|
role: "img",
|
|
652
655
|
"aria-hidden": !d,
|
|
653
656
|
focusable: !1,
|
|
654
|
-
...
|
|
657
|
+
...m,
|
|
655
658
|
children: e
|
|
656
659
|
}
|
|
657
660
|
),
|
|
@@ -659,19 +662,19 @@ const Ye = (e) => {
|
|
|
659
662
|
] });
|
|
660
663
|
};
|
|
661
664
|
/*!
|
|
662
|
-
@versini/ui-private v1.4.
|
|
665
|
+
@versini/ui-private v1.4.18
|
|
663
666
|
© 2024 gizmette.com
|
|
664
667
|
*/
|
|
665
668
|
try {
|
|
666
669
|
window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
|
|
667
|
-
version: "1.4.
|
|
668
|
-
buildTime: "
|
|
670
|
+
version: "1.4.18",
|
|
671
|
+
buildTime: "11/19/2024 10:59 AM EST",
|
|
669
672
|
homepage: "https://github.com/aversini/ui-components",
|
|
670
673
|
license: "MIT"
|
|
671
674
|
});
|
|
672
675
|
} catch {
|
|
673
676
|
}
|
|
674
|
-
const
|
|
677
|
+
const Ke = ({
|
|
675
678
|
className: e,
|
|
676
679
|
viewBox: r,
|
|
677
680
|
spacing: t,
|
|
@@ -699,7 +702,7 @@ const Xe = ({
|
|
|
699
702
|
/* @__PURE__ */ c("path", { d: "M137.4 470.6c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 370.7V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V370.7L86.6 329.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96z" })
|
|
700
703
|
]
|
|
701
704
|
}
|
|
702
|
-
),
|
|
705
|
+
), Ze = ({
|
|
703
706
|
className: e,
|
|
704
707
|
viewBox: r,
|
|
705
708
|
spacing: t,
|
|
@@ -727,7 +730,7 @@ const Xe = ({
|
|
|
727
730
|
/* @__PURE__ */ c("path", { d: "M128 480c9 0 17.5-3.8 23.6-10.4l88-96c11.9-13 11.1-33.3-2-45.2s-33.3-11.1-45.2 2L160 365.7V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V365.7L63.6 330.4c-11.9-13-32.2-13.9-45.2-2s-13.9 32.2-2 45.2l88 96C110.5 476.2 119 480 128 480z" })
|
|
728
731
|
]
|
|
729
732
|
}
|
|
730
|
-
),
|
|
733
|
+
), et = ({
|
|
731
734
|
className: e,
|
|
732
735
|
viewBox: r,
|
|
733
736
|
spacing: t,
|
|
@@ -757,13 +760,13 @@ const Xe = ({
|
|
|
757
760
|
}
|
|
758
761
|
);
|
|
759
762
|
/*!
|
|
760
|
-
@versini/ui-icons v1.15.
|
|
763
|
+
@versini/ui-icons v1.15.2
|
|
761
764
|
© 2024 gizmette.com
|
|
762
765
|
*/
|
|
763
766
|
try {
|
|
764
767
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
765
|
-
version: "1.15.
|
|
766
|
-
buildTime: "
|
|
768
|
+
version: "1.15.2",
|
|
769
|
+
buildTime: "11/19/2024 10:59 AM EST",
|
|
767
770
|
homepage: "https://github.com/aversini/ui-components",
|
|
768
771
|
license: "MIT"
|
|
769
772
|
});
|
|
@@ -775,7 +778,7 @@ const N = z.createContext({
|
|
|
775
778
|
stickyHeader: !1,
|
|
776
779
|
stickyFooter: !1,
|
|
777
780
|
compact: !1
|
|
778
|
-
}),
|
|
781
|
+
}), $t = ({
|
|
779
782
|
children: e,
|
|
780
783
|
mode: r = "system",
|
|
781
784
|
caption: t,
|
|
@@ -785,22 +788,22 @@ const N = z.createContext({
|
|
|
785
788
|
wrapperClassName: i,
|
|
786
789
|
maxHeight: s,
|
|
787
790
|
stickyHeader: d,
|
|
788
|
-
stickyFooter:
|
|
789
|
-
spacing:
|
|
790
|
-
...
|
|
791
|
+
stickyFooter: m,
|
|
792
|
+
spacing: u,
|
|
793
|
+
...p
|
|
791
794
|
}) => {
|
|
792
795
|
const g = He({
|
|
793
796
|
mode: r,
|
|
794
797
|
className: n,
|
|
795
798
|
wrapperClassName: i,
|
|
796
799
|
stickyHeader: d,
|
|
797
|
-
stickyFooter:
|
|
798
|
-
spacing:
|
|
800
|
+
stickyFooter: m,
|
|
801
|
+
spacing: u
|
|
799
802
|
});
|
|
800
803
|
return /* @__PURE__ */ c(
|
|
801
804
|
N.Provider,
|
|
802
805
|
{
|
|
803
|
-
value: { mode: r, stickyHeader: d, stickyFooter:
|
|
806
|
+
value: { mode: r, stickyHeader: d, stickyFooter: m, compact: a },
|
|
804
807
|
children: /* @__PURE__ */ c(
|
|
805
808
|
"div",
|
|
806
809
|
{
|
|
@@ -808,7 +811,7 @@ const N = z.createContext({
|
|
|
808
811
|
...s && {
|
|
809
812
|
style: { maxHeight: s }
|
|
810
813
|
},
|
|
811
|
-
children: /* @__PURE__ */ w("table", { className: g.table, summary: o, ...
|
|
814
|
+
children: /* @__PURE__ */ w("table", { className: g.table, summary: o, ...p, children: [
|
|
812
815
|
t && /* @__PURE__ */ c("caption", { className: g.caption, children: t }),
|
|
813
816
|
e
|
|
814
817
|
] })
|
|
@@ -816,20 +819,20 @@ const N = z.createContext({
|
|
|
816
819
|
)
|
|
817
820
|
}
|
|
818
821
|
);
|
|
819
|
-
},
|
|
822
|
+
}, Bt = ({
|
|
820
823
|
children: e,
|
|
821
824
|
className: r,
|
|
822
825
|
...t
|
|
823
826
|
}) => {
|
|
824
827
|
const a = $(N);
|
|
825
|
-
a.cellWrapper =
|
|
828
|
+
a.cellWrapper = P;
|
|
826
829
|
const o = Le({
|
|
827
830
|
className: r,
|
|
828
831
|
mode: a.mode,
|
|
829
832
|
stickyHeader: a.stickyHeader
|
|
830
833
|
});
|
|
831
834
|
return /* @__PURE__ */ c("thead", { className: o, ...t, children: e });
|
|
832
|
-
},
|
|
835
|
+
}, Ht = ({
|
|
833
836
|
children: e,
|
|
834
837
|
className: r,
|
|
835
838
|
...t
|
|
@@ -842,10 +845,10 @@ const N = z.createContext({
|
|
|
842
845
|
stickyFooter: a.stickyFooter
|
|
843
846
|
});
|
|
844
847
|
return /* @__PURE__ */ c("tfoot", { className: o, ...t, children: e });
|
|
845
|
-
},
|
|
848
|
+
}, Lt = ({ children: e, ...r }) => {
|
|
846
849
|
const t = $(N);
|
|
847
850
|
return t.cellWrapper = T, /* @__PURE__ */ c("tbody", { ...r, children: e });
|
|
848
|
-
},
|
|
851
|
+
}, Ut = ({
|
|
849
852
|
children: e,
|
|
850
853
|
className: r,
|
|
851
854
|
...t
|
|
@@ -856,77 +859,81 @@ const N = z.createContext({
|
|
|
856
859
|
className: r
|
|
857
860
|
});
|
|
858
861
|
return /* @__PURE__ */ c("tr", { className: o, ...t, children: e });
|
|
859
|
-
},
|
|
862
|
+
}, tt = ({
|
|
860
863
|
children: e,
|
|
861
864
|
component: r,
|
|
862
865
|
className: t,
|
|
863
866
|
...a
|
|
864
867
|
}) => {
|
|
865
|
-
const o = $(N), n = r || (o.cellWrapper ===
|
|
868
|
+
const o = $(N), n = r || (o.cellWrapper === P ? "th" : "td"), i = Me({
|
|
866
869
|
cellWrapper: o.cellWrapper,
|
|
867
870
|
className: t,
|
|
868
871
|
mode: o.mode,
|
|
869
872
|
compact: o.compact
|
|
870
873
|
});
|
|
871
874
|
return /* @__PURE__ */ c(n, { className: i, ...a, children: e });
|
|
872
|
-
},
|
|
875
|
+
}, Vt = ({
|
|
873
876
|
align: e,
|
|
874
877
|
children: r,
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
878
|
+
buttonClassName: t,
|
|
879
|
+
className: a,
|
|
880
|
+
component: o,
|
|
881
|
+
focusMode: n = "alt-system",
|
|
882
|
+
mode: i = "alt-system",
|
|
883
|
+
onClick: s,
|
|
884
|
+
sortDirection: d,
|
|
885
|
+
sortedCell: m,
|
|
882
886
|
cellId: u,
|
|
883
|
-
...
|
|
884
|
-
}) =>
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
)
|
|
887
|
+
...p
|
|
888
|
+
}) => {
|
|
889
|
+
const g = Oe({ buttonClassName: t });
|
|
890
|
+
return /* @__PURE__ */ c(
|
|
891
|
+
tt,
|
|
892
|
+
{
|
|
893
|
+
component: o,
|
|
894
|
+
className: a,
|
|
895
|
+
role: "columnheader",
|
|
896
|
+
"aria-sort": d === M.ASC && m === u ? "ascending" : d === M.DESC && m === u ? "descending" : "other",
|
|
897
|
+
...p,
|
|
898
|
+
children: /* @__PURE__ */ c(
|
|
899
|
+
ue,
|
|
900
|
+
{
|
|
901
|
+
active: m === u,
|
|
902
|
+
className: g,
|
|
903
|
+
onClick: s,
|
|
904
|
+
align: e,
|
|
905
|
+
noBorder: !0,
|
|
906
|
+
focusMode: n,
|
|
907
|
+
mode: i,
|
|
908
|
+
fullWidth: !0,
|
|
909
|
+
labelRight: r,
|
|
910
|
+
children: d === M.ASC && m === u ? /* @__PURE__ */ c(et, { className: "size-4", monotone: !0 }) : d === M.DESC && m === u ? /* @__PURE__ */ c(Ze, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ c(Ke, { className: "size-4", monotone: !0 })
|
|
911
|
+
}
|
|
912
|
+
)
|
|
913
|
+
}
|
|
914
|
+
);
|
|
915
|
+
};
|
|
909
916
|
/*!
|
|
910
|
-
@versini/ui-textarea v1.0.
|
|
917
|
+
@versini/ui-textarea v1.0.9
|
|
911
918
|
© 2024 gizmette.com
|
|
912
919
|
*/
|
|
913
920
|
try {
|
|
914
921
|
window.__VERSINI_UI_TEXTAREA__ || (window.__VERSINI_UI_TEXTAREA__ = {
|
|
915
|
-
version: "1.0.
|
|
916
|
-
buildTime: "
|
|
922
|
+
version: "1.0.9",
|
|
923
|
+
buildTime: "11/19/2024 10:59 AM EST",
|
|
917
924
|
homepage: "https://github.com/aversini/ui-components",
|
|
918
925
|
license: "MIT"
|
|
919
926
|
});
|
|
920
927
|
} catch {
|
|
921
928
|
}
|
|
922
|
-
const me = "av-text-area",
|
|
923
|
-
function
|
|
929
|
+
const me = "av-text-area", rt = "av-text-area-wrapper", Q = "av-text-area-helper-text", at = "av-text-area__control--right";
|
|
930
|
+
function ot() {
|
|
924
931
|
const e = f(!1);
|
|
925
932
|
return R(() => (e.current = !0, () => {
|
|
926
933
|
e.current = !1;
|
|
927
934
|
}), []), O(() => e.current, []);
|
|
928
935
|
}
|
|
929
|
-
function
|
|
936
|
+
function nt(e) {
|
|
930
937
|
return ie(() => e.every((r) => r == null) ? () => {
|
|
931
938
|
} : (r) => {
|
|
932
939
|
e.forEach((t) => {
|
|
@@ -934,7 +941,7 @@ function ot(e) {
|
|
|
934
941
|
});
|
|
935
942
|
}, e);
|
|
936
943
|
}
|
|
937
|
-
const
|
|
944
|
+
const it = {
|
|
938
945
|
x: 0,
|
|
939
946
|
y: 0,
|
|
940
947
|
width: 0,
|
|
@@ -944,8 +951,8 @@ const nt = {
|
|
|
944
951
|
bottom: 0,
|
|
945
952
|
right: 0
|
|
946
953
|
};
|
|
947
|
-
function
|
|
948
|
-
const r =
|
|
954
|
+
function lt(e) {
|
|
955
|
+
const r = ot(), t = f(0), a = f(null), [o, n] = I(it), i = ie(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
|
|
949
956
|
const d = s[0];
|
|
950
957
|
d && (cancelAnimationFrame(t.current), t.current = requestAnimationFrame(() => {
|
|
951
958
|
a.current && r() && n(d.contentRect);
|
|
@@ -955,7 +962,7 @@ function it(e) {
|
|
|
955
962
|
i == null || i.disconnect(), t.current && cancelAnimationFrame(t.current);
|
|
956
963
|
}), [i, e]), [a, o];
|
|
957
964
|
}
|
|
958
|
-
function
|
|
965
|
+
function st({
|
|
959
966
|
value: e,
|
|
960
967
|
defaultValue: r,
|
|
961
968
|
finalValue: t,
|
|
@@ -965,16 +972,16 @@ function lt({
|
|
|
965
972
|
}) {
|
|
966
973
|
const [n, i] = I(!1), [s, d] = I(
|
|
967
974
|
r !== void 0 ? r : t
|
|
968
|
-
),
|
|
969
|
-
d(
|
|
975
|
+
), m = (u) => {
|
|
976
|
+
d(u), a == null || a(u);
|
|
970
977
|
};
|
|
971
978
|
return R(() => {
|
|
972
979
|
(async () => e !== void 0 && !n && o > 0 && (await new Promise(
|
|
973
|
-
(
|
|
980
|
+
(u) => setTimeout(u, o)
|
|
974
981
|
), i(!0)))();
|
|
975
|
-
}, [e, o, n]), e !== void 0 ? !n && o > 0 ? ["", a, !0] : [e, a, !0] : [s,
|
|
982
|
+
}, [e, o, n]), e !== void 0 ? !n && o > 0 ? ["", a, !0] : [e, a, !0] : [s, m, !1];
|
|
976
983
|
}
|
|
977
|
-
function
|
|
984
|
+
function ct(e) {
|
|
978
985
|
const r = Se();
|
|
979
986
|
if (!e)
|
|
980
987
|
return r;
|
|
@@ -985,7 +992,7 @@ function st(e) {
|
|
|
985
992
|
return typeof t == "number" || typeof t == "string" ? `${a}${t}` : `${a}${r}`;
|
|
986
993
|
}
|
|
987
994
|
}
|
|
988
|
-
const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT",
|
|
995
|
+
const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT", dt = {
|
|
989
996
|
alert: null,
|
|
990
997
|
alertdialog: null,
|
|
991
998
|
log: "polite",
|
|
@@ -993,7 +1000,7 @@ const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT", ct = {
|
|
|
993
1000
|
progressbar: null,
|
|
994
1001
|
status: "polite",
|
|
995
1002
|
timer: "assertive"
|
|
996
|
-
},
|
|
1003
|
+
}, ut = (e, r) => {
|
|
997
1004
|
switch (r == null ? void 0 : r.type) {
|
|
998
1005
|
case he:
|
|
999
1006
|
return {
|
|
@@ -1008,7 +1015,7 @@ const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT", ct = {
|
|
|
1008
1015
|
default:
|
|
1009
1016
|
return e;
|
|
1010
1017
|
}
|
|
1011
|
-
},
|
|
1018
|
+
}, mt = ({
|
|
1012
1019
|
onAnnouncementClear: e,
|
|
1013
1020
|
dispatch: r
|
|
1014
1021
|
}) => {
|
|
@@ -1026,13 +1033,13 @@ const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT", ct = {
|
|
|
1026
1033
|
type: he,
|
|
1027
1034
|
payload: e
|
|
1028
1035
|
}), r && (t.current = setTimeout(
|
|
1029
|
-
() =>
|
|
1036
|
+
() => mt({
|
|
1030
1037
|
onAnnouncementClear: a,
|
|
1031
1038
|
dispatch: o
|
|
1032
1039
|
}),
|
|
1033
1040
|
r
|
|
1034
1041
|
));
|
|
1035
|
-
},
|
|
1042
|
+
}, ht = ({
|
|
1036
1043
|
children: e,
|
|
1037
1044
|
announcementTimeoutRef: r,
|
|
1038
1045
|
announcementDelay: t,
|
|
@@ -1055,7 +1062,7 @@ const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT", ct = {
|
|
|
1055
1062
|
dispatch: i
|
|
1056
1063
|
});
|
|
1057
1064
|
};
|
|
1058
|
-
function
|
|
1065
|
+
function gt({
|
|
1059
1066
|
children: e,
|
|
1060
1067
|
className: r,
|
|
1061
1068
|
politeness: t,
|
|
@@ -1066,17 +1073,17 @@ function ht({
|
|
|
1066
1073
|
visible: s,
|
|
1067
1074
|
...d
|
|
1068
1075
|
}) {
|
|
1069
|
-
const
|
|
1076
|
+
const m = f(), u = f(), [p, g] = Ce(ut, {
|
|
1070
1077
|
announcement: null
|
|
1071
1078
|
});
|
|
1072
1079
|
let h = t;
|
|
1073
|
-
typeof h > "u" && (h = a ?
|
|
1074
|
-
|
|
1075
|
-
announcementTimeoutRef:
|
|
1080
|
+
typeof h > "u" && (h = a ? dt[a] : "assertive"), R(() => {
|
|
1081
|
+
ht({
|
|
1082
|
+
announcementTimeoutRef: m,
|
|
1076
1083
|
announcementDelay: o,
|
|
1077
1084
|
children: e,
|
|
1078
1085
|
clearAnnouncementDelay: n,
|
|
1079
|
-
clearAnnouncementTimeoutRef:
|
|
1086
|
+
clearAnnouncementTimeoutRef: u,
|
|
1080
1087
|
onAnnouncementClear: i,
|
|
1081
1088
|
dispatch: g
|
|
1082
1089
|
});
|
|
@@ -1086,7 +1093,7 @@ function ht({
|
|
|
1086
1093
|
n,
|
|
1087
1094
|
i
|
|
1088
1095
|
]);
|
|
1089
|
-
const
|
|
1096
|
+
const b = l(r, {
|
|
1090
1097
|
"sr-only": !s
|
|
1091
1098
|
});
|
|
1092
1099
|
return /* @__PURE__ */ c(
|
|
@@ -1094,13 +1101,13 @@ function ht({
|
|
|
1094
1101
|
{
|
|
1095
1102
|
"aria-live": h,
|
|
1096
1103
|
...a && { role: a },
|
|
1097
|
-
className:
|
|
1104
|
+
className: b,
|
|
1098
1105
|
...d,
|
|
1099
|
-
children:
|
|
1106
|
+
children: p.announcement
|
|
1100
1107
|
}
|
|
1101
1108
|
);
|
|
1102
1109
|
}
|
|
1103
|
-
const
|
|
1110
|
+
const pt = (e) => {
|
|
1104
1111
|
let r = "";
|
|
1105
1112
|
if (typeof e == "number" || typeof e == "string")
|
|
1106
1113
|
r = "m-" + e;
|
|
@@ -1111,33 +1118,33 @@ const gt = (e) => {
|
|
|
1111
1118
|
return r;
|
|
1112
1119
|
};
|
|
1113
1120
|
/*!
|
|
1114
|
-
@versini/ui-private v1.4.
|
|
1121
|
+
@versini/ui-private v1.4.18
|
|
1115
1122
|
© 2024 gizmette.com
|
|
1116
1123
|
*/
|
|
1117
1124
|
try {
|
|
1118
1125
|
window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
|
|
1119
|
-
version: "1.4.
|
|
1120
|
-
buildTime: "
|
|
1126
|
+
version: "1.4.18",
|
|
1127
|
+
buildTime: "11/19/2024 10:59 AM EST",
|
|
1121
1128
|
homepage: "https://github.com/aversini/ui-components",
|
|
1122
1129
|
license: "MIT"
|
|
1123
1130
|
});
|
|
1124
1131
|
} catch {
|
|
1125
1132
|
}
|
|
1126
|
-
const
|
|
1133
|
+
const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", yt = ({
|
|
1127
1134
|
mode: e
|
|
1128
1135
|
}) => l({
|
|
1129
1136
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
|
1130
1137
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
1131
1138
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
1132
1139
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
1133
|
-
}),
|
|
1140
|
+
}), ft = ({
|
|
1134
1141
|
focusMode: e
|
|
1135
1142
|
}) => l("focus:outline focus:outline-2 focus:outline-offset-2", {
|
|
1136
1143
|
"focus:outline-focus-dark": e === "dark",
|
|
1137
1144
|
"focus:outline-focus-light": e === "light",
|
|
1138
1145
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
1139
1146
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
1140
|
-
}),
|
|
1147
|
+
}), kt = ({
|
|
1141
1148
|
noBorder: e,
|
|
1142
1149
|
error: r
|
|
1143
1150
|
}) => l("border-2", {
|
|
@@ -1145,7 +1152,7 @@ const pt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1145
1152
|
"focus:border-border-dark": !e && r,
|
|
1146
1153
|
"border-border-error-dark": !e && r,
|
|
1147
1154
|
"border-transparent": e
|
|
1148
|
-
}),
|
|
1155
|
+
}), vt = ({
|
|
1149
1156
|
disabled: e,
|
|
1150
1157
|
raw: r,
|
|
1151
1158
|
error: t,
|
|
@@ -1169,7 +1176,7 @@ const pt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1169
1176
|
"text-copy-error-dark dark:text-copy-error-light": a === "system",
|
|
1170
1177
|
"text-copy-medium dark:text-copy-error-dark": a === "alt-system"
|
|
1171
1178
|
});
|
|
1172
|
-
},
|
|
1179
|
+
}, _t = ({
|
|
1173
1180
|
error: e,
|
|
1174
1181
|
raw: r,
|
|
1175
1182
|
mode: t,
|
|
@@ -1196,7 +1203,7 @@ const pt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1196
1203
|
"text-copy-error-dark dark:text-copy-error-light": t === "system",
|
|
1197
1204
|
"dark:text-copy-error-dark text-copy-error-light": t === "alt-system"
|
|
1198
1205
|
});
|
|
1199
|
-
},
|
|
1206
|
+
}, xt = ({
|
|
1200
1207
|
className: e,
|
|
1201
1208
|
textAreaClassName: r,
|
|
1202
1209
|
raw: t,
|
|
@@ -1207,44 +1214,44 @@ const pt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1207
1214
|
spacing: s,
|
|
1208
1215
|
mode: d
|
|
1209
1216
|
}) => {
|
|
1210
|
-
const
|
|
1217
|
+
const m = t ? e : l(
|
|
1211
1218
|
"relative flex w-full flex-col justify-center",
|
|
1212
|
-
|
|
1219
|
+
rt,
|
|
1213
1220
|
e,
|
|
1214
|
-
|
|
1215
|
-
),
|
|
1221
|
+
pt(s)
|
|
1222
|
+
), u = t ? l(r) : l(
|
|
1216
1223
|
me,
|
|
1217
1224
|
r,
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1225
|
+
bt(),
|
|
1226
|
+
yt({ mode: d }),
|
|
1227
|
+
ft({ focusMode: a }),
|
|
1228
|
+
kt({
|
|
1222
1229
|
noBorder: n,
|
|
1223
1230
|
error: i
|
|
1224
1231
|
}),
|
|
1225
1232
|
{
|
|
1226
1233
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
1227
1234
|
}
|
|
1228
|
-
),
|
|
1235
|
+
), p = t ? void 0 : "sr-only", g = vt({
|
|
1229
1236
|
disabled: o,
|
|
1230
1237
|
raw: t,
|
|
1231
1238
|
error: i,
|
|
1232
1239
|
mode: d
|
|
1233
|
-
}), h =
|
|
1240
|
+
}), h = _t({
|
|
1234
1241
|
error: i,
|
|
1235
1242
|
raw: t,
|
|
1236
1243
|
mode: d,
|
|
1237
1244
|
disabled: o
|
|
1238
|
-
}),
|
|
1245
|
+
}), b = t ? void 0 : l(at, "absolute");
|
|
1239
1246
|
return {
|
|
1240
|
-
wrapper:
|
|
1241
|
-
textArea:
|
|
1242
|
-
accessibleLabel:
|
|
1247
|
+
wrapper: m,
|
|
1248
|
+
textArea: u,
|
|
1249
|
+
accessibleLabel: p,
|
|
1243
1250
|
visibleLabel: g,
|
|
1244
1251
|
helperText: h,
|
|
1245
|
-
rightElement:
|
|
1252
|
+
rightElement: b
|
|
1246
1253
|
};
|
|
1247
|
-
},
|
|
1254
|
+
}, wt = ({
|
|
1248
1255
|
scrollHeight: e,
|
|
1249
1256
|
currentHeight: r,
|
|
1250
1257
|
currentLabelOffset: t = 0,
|
|
@@ -1260,7 +1267,7 @@ const pt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1260
1267
|
helperTextOffset: n,
|
|
1261
1268
|
scrollHeight: e
|
|
1262
1269
|
};
|
|
1263
|
-
},
|
|
1270
|
+
}, Et = z.forwardRef(
|
|
1264
1271
|
({
|
|
1265
1272
|
id: e,
|
|
1266
1273
|
name: r,
|
|
@@ -1271,36 +1278,36 @@ const pt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1271
1278
|
textAreaClassName: i,
|
|
1272
1279
|
mode: s = "system",
|
|
1273
1280
|
focusMode: d = "system",
|
|
1274
|
-
value:
|
|
1275
|
-
defaultValue:
|
|
1276
|
-
disabled:
|
|
1281
|
+
value: m,
|
|
1282
|
+
defaultValue: u,
|
|
1283
|
+
disabled: p = !1,
|
|
1277
1284
|
noBorder: g = !1,
|
|
1278
1285
|
labelId: h,
|
|
1279
|
-
helperText:
|
|
1286
|
+
helperText: b = "",
|
|
1280
1287
|
helperTextOnFocus: x = !1,
|
|
1281
1288
|
rightElement: S,
|
|
1282
1289
|
onChange: B,
|
|
1283
1290
|
onFocus: H,
|
|
1284
1291
|
onBlur: L,
|
|
1285
|
-
spacing:
|
|
1286
|
-
...
|
|
1287
|
-
},
|
|
1288
|
-
const k = f(null), pe =
|
|
1289
|
-
!!(!x &&
|
|
1290
|
-
), ve = `${r} error, ${
|
|
1292
|
+
spacing: F,
|
|
1293
|
+
...G
|
|
1294
|
+
}, D) => {
|
|
1295
|
+
const k = f(null), pe = nt([D, k]), [be, U] = lt(), j = f(80), K = f(-25), C = f(null), Z = f(30), W = f(null), A = ct({ id: e, prefix: `${me}-` }), [ye, fe] = I(0), [ke, ee] = I(
|
|
1296
|
+
!!(!x && b)
|
|
1297
|
+
), ve = `${r} error, ${b}`, E = xt({
|
|
1291
1298
|
className: n,
|
|
1292
1299
|
textAreaClassName: i,
|
|
1293
1300
|
error: a,
|
|
1294
1301
|
raw: o,
|
|
1295
1302
|
focusMode: d,
|
|
1296
|
-
disabled:
|
|
1303
|
+
disabled: p,
|
|
1297
1304
|
noBorder: g,
|
|
1298
|
-
spacing:
|
|
1305
|
+
spacing: F,
|
|
1299
1306
|
mode: s
|
|
1300
|
-
}), [v, _e] =
|
|
1301
|
-
value:
|
|
1307
|
+
}), [v, _e] = st({
|
|
1308
|
+
value: m,
|
|
1302
1309
|
initialControlledDelay: 20,
|
|
1303
|
-
defaultValue:
|
|
1310
|
+
defaultValue: u,
|
|
1304
1311
|
onChange: (y) => {
|
|
1305
1312
|
B && B({
|
|
1306
1313
|
target: {
|
|
@@ -1311,9 +1318,9 @@ const pt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1311
1318
|
}), xe = (y) => {
|
|
1312
1319
|
_e(y.target.value);
|
|
1313
1320
|
}, we = (y) => {
|
|
1314
|
-
x &&
|
|
1321
|
+
x && b && ee(!0), H && H(y);
|
|
1315
1322
|
}, Ee = (y) => {
|
|
1316
|
-
x &&
|
|
1323
|
+
x && b && !v && ee(!1), L && L(y);
|
|
1317
1324
|
};
|
|
1318
1325
|
return V(() => {
|
|
1319
1326
|
U && U.width && fe(U.width + 18 + 10);
|
|
@@ -1330,7 +1337,7 @@ const pt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1330
1337
|
}, [v, o]), V(() => {
|
|
1331
1338
|
var y, te;
|
|
1332
1339
|
if (!o && k && k.current && v !== void 0) {
|
|
1333
|
-
const { labelOffset: q, helperTextOffset: J, scrollHeight: Te } =
|
|
1340
|
+
const { labelOffset: q, helperTextOffset: J, scrollHeight: Te } = wt({
|
|
1334
1341
|
scrollHeight: k.current.scrollHeight,
|
|
1335
1342
|
currentHeight: j.current,
|
|
1336
1343
|
currentLabelOffset: K.current,
|
|
@@ -1360,18 +1367,18 @@ const pt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1360
1367
|
ref: pe,
|
|
1361
1368
|
id: A,
|
|
1362
1369
|
name: r,
|
|
1363
|
-
disabled:
|
|
1370
|
+
disabled: p,
|
|
1364
1371
|
placeholder: o ? void 0 : " ",
|
|
1365
1372
|
className: E.textArea,
|
|
1366
1373
|
rows: 1,
|
|
1367
|
-
...
|
|
1374
|
+
...b && { "aria-describedby": `${A}-helper` },
|
|
1368
1375
|
...a && { "aria-invalid": "true" },
|
|
1369
1376
|
...S && !o && { style: { paddingRight: ye } },
|
|
1370
1377
|
value: v,
|
|
1371
1378
|
onChange: xe,
|
|
1372
1379
|
onFocus: we,
|
|
1373
1380
|
onBlur: Ee,
|
|
1374
|
-
...
|
|
1381
|
+
...G
|
|
1375
1382
|
}
|
|
1376
1383
|
),
|
|
1377
1384
|
!o && /* @__PURE__ */ c(
|
|
@@ -1390,7 +1397,7 @@ const pt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1390
1397
|
ref: W,
|
|
1391
1398
|
id: `${A}-helper`,
|
|
1392
1399
|
className: E.helperText,
|
|
1393
|
-
children:
|
|
1400
|
+
children: b
|
|
1394
1401
|
}
|
|
1395
1402
|
),
|
|
1396
1403
|
S && /* @__PURE__ */ c(
|
|
@@ -1401,23 +1408,23 @@ const pt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1401
1408
|
children: S
|
|
1402
1409
|
}
|
|
1403
1410
|
),
|
|
1404
|
-
a &&
|
|
1411
|
+
a && b && /* @__PURE__ */ c(gt, { politeness: "polite", clearAnnouncementDelay: 500, children: ve })
|
|
1405
1412
|
] });
|
|
1406
1413
|
}
|
|
1407
1414
|
);
|
|
1408
|
-
|
|
1415
|
+
Et.displayName = "TextArea";
|
|
1409
1416
|
export {
|
|
1410
|
-
|
|
1411
|
-
|
|
1417
|
+
Ct as E,
|
|
1418
|
+
At as SERVICE_TYPES,
|
|
1412
1419
|
Ht as be,
|
|
1413
|
-
|
|
1420
|
+
tt as de,
|
|
1414
1421
|
M as f,
|
|
1415
1422
|
$t as ge,
|
|
1416
1423
|
Bt as he,
|
|
1417
|
-
et as ie,
|
|
1418
1424
|
Lt as me,
|
|
1419
|
-
|
|
1420
|
-
|
|
1425
|
+
Vt as pe,
|
|
1426
|
+
Rt as restCall,
|
|
1427
|
+
It as serviceCall,
|
|
1421
1428
|
Ut as ue,
|
|
1422
|
-
|
|
1429
|
+
Et as we
|
|
1423
1430
|
};
|