@versini/sassysaint 5.4.13 → 5.4.15
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.DNOGYuzJ.js → LazyApp.CmWxSgb_.js} +398 -387
- package/dist/chunks/{LazyHeader.oCAx75zT.js → LazyHeader.CmyI3orp.js} +123 -117
- package/dist/chunks/{LazyMarkdownWithExtra.F2tZ4gOI.js → LazyMarkdownWithExtra.bTU0zWSE.js} +747 -739
- package/dist/chunks/{LazyMessageAssistant.L4L_m5nw.js → LazyMessageAssistant.BkIqe55j.js} +11 -11
- package/dist/chunks/{index.CxzLMGVa.js → index.D8QVMbN9.js} +764 -855
- package/dist/chunks/{index.Ck3nAtox.js → index.Dn9p043U.js} +339 -303
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { g as
|
|
3
|
-
import
|
|
1
|
+
import { jsxs as _, jsx as l, Fragment as Ne } from "react/jsx-runtime";
|
|
2
|
+
import { g as Se, DEFAULT_AI_ENGINE as J } from "./index.D8QVMbN9.js";
|
|
3
|
+
import E, { useSyncExternalStore as Ce, useCallback as U, useEffect as R, useContext as H, useRef as k, useState as $, useLayoutEffect as O, useMemo as ne, useId as Ae, useReducer as Ie } from "react";
|
|
4
4
|
import i from "clsx";
|
|
5
|
-
const
|
|
5
|
+
const Nt = ({
|
|
6
6
|
className: e,
|
|
7
7
|
viewBox: r,
|
|
8
8
|
title: t,
|
|
9
9
|
monotone: a,
|
|
10
10
|
...o
|
|
11
|
-
}) => /* @__PURE__ */
|
|
12
|
-
|
|
11
|
+
}) => /* @__PURE__ */ _(
|
|
12
|
+
Se,
|
|
13
13
|
{
|
|
14
14
|
defaultViewBox: "0 0 512 512",
|
|
15
15
|
size: "size-5",
|
|
@@ -18,56 +18,56 @@ const Tt = ({
|
|
|
18
18
|
title: t || "Edit",
|
|
19
19
|
...o,
|
|
20
20
|
children: [
|
|
21
|
-
/* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ l(
|
|
22
22
|
"path",
|
|
23
23
|
{
|
|
24
24
|
opacity: a ? "1" : "0.4",
|
|
25
25
|
d: "M0 160c0-53 43-96 96-96h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32 14.3-32 32V416c0 17.7 14.3 32 32 32H352c17.7 0 32-14.3 32-32V320c0-17.7 14.3-32 32-32s32 14.3 32 32v96c0 53-43 96-96 96H96c-53 0-96-43-96-96V160z"
|
|
26
26
|
}
|
|
27
27
|
),
|
|
28
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ l("path", { d: "M392.4 21.7L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0zM339.7 74.3L172.4 241.7c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3z" })
|
|
29
29
|
]
|
|
30
30
|
}
|
|
31
31
|
);
|
|
32
|
-
function
|
|
32
|
+
function ce(e, r) {
|
|
33
33
|
window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: r }));
|
|
34
34
|
}
|
|
35
|
-
const
|
|
35
|
+
const re = (e, r) => {
|
|
36
36
|
const t = JSON.stringify(
|
|
37
37
|
typeof r == "function" ? r() : r
|
|
38
38
|
);
|
|
39
|
-
window.localStorage.setItem(e, t),
|
|
39
|
+
window.localStorage.setItem(e, t), ce(e, t);
|
|
40
40
|
}, $e = (e) => {
|
|
41
|
-
window.localStorage.removeItem(e),
|
|
42
|
-
},
|
|
43
|
-
function
|
|
41
|
+
window.localStorage.removeItem(e), ce(e, null);
|
|
42
|
+
}, ae = (e) => window.localStorage.getItem(e), Re = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
43
|
+
function St({
|
|
44
44
|
key: e,
|
|
45
45
|
initialValue: r
|
|
46
46
|
}) {
|
|
47
|
-
const t =
|
|
47
|
+
const t = Ce(Re, () => ae(e)), a = U(
|
|
48
48
|
(n) => {
|
|
49
49
|
try {
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
} catch (
|
|
53
|
-
console.warn(
|
|
50
|
+
const s = typeof n == "function" ? n(JSON.parse(t)) : n;
|
|
51
|
+
s == null ? $e(e) : re(e, s);
|
|
52
|
+
} catch (s) {
|
|
53
|
+
console.warn(s);
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
[e, t]
|
|
57
|
-
), o =
|
|
57
|
+
), o = U(() => {
|
|
58
58
|
a(r);
|
|
59
|
-
}, [r, a]), c =
|
|
59
|
+
}, [r, a]), c = U(() => {
|
|
60
60
|
a(null);
|
|
61
61
|
}, [a]);
|
|
62
|
-
return
|
|
62
|
+
return R(() => {
|
|
63
63
|
try {
|
|
64
|
-
|
|
64
|
+
ae(e) === null && typeof r < "u" && re(e, r);
|
|
65
65
|
} catch (n) {
|
|
66
66
|
console.warn(n);
|
|
67
67
|
}
|
|
68
68
|
}, [e, r]), [t ? JSON.parse(t) : null, a, o, c];
|
|
69
69
|
}
|
|
70
|
-
const
|
|
70
|
+
const x = {
|
|
71
71
|
GET_LOCATION: `query GetLocation($latitude: Float!, $longitude: Float!) {
|
|
72
72
|
location(latitude: $latitude, longitude: $longitude) {
|
|
73
73
|
country
|
|
@@ -171,44 +171,44 @@ const _ = {
|
|
|
171
171
|
engine: $engine,
|
|
172
172
|
tags: $tags)
|
|
173
173
|
}`
|
|
174
|
-
},
|
|
174
|
+
}, Ct = {
|
|
175
175
|
GET_LOCATION: {
|
|
176
|
-
schema:
|
|
176
|
+
schema: x.GET_LOCATION,
|
|
177
177
|
method: "location"
|
|
178
178
|
},
|
|
179
179
|
GET_CHATS: {
|
|
180
|
-
schema:
|
|
180
|
+
schema: x.GET_CHATS,
|
|
181
181
|
method: "chats"
|
|
182
182
|
},
|
|
183
183
|
GET_CHATS_STATS: {
|
|
184
|
-
schema:
|
|
184
|
+
schema: x.GET_CHATS_STATS,
|
|
185
185
|
method: "chatsStats"
|
|
186
186
|
},
|
|
187
187
|
GET_CHAT: {
|
|
188
|
-
schema:
|
|
188
|
+
schema: x.GET_CHAT,
|
|
189
189
|
method: "chatById"
|
|
190
190
|
},
|
|
191
191
|
DELETE_CHAT: {
|
|
192
|
-
schema:
|
|
192
|
+
schema: x.DELETE_CHAT,
|
|
193
193
|
method: "deleteChat"
|
|
194
194
|
},
|
|
195
195
|
ABOUT: {
|
|
196
|
-
schema:
|
|
196
|
+
schema: x.ABOUT,
|
|
197
197
|
method: "about"
|
|
198
198
|
},
|
|
199
199
|
GET_USER_PREFERENCES: {
|
|
200
|
-
schema:
|
|
200
|
+
schema: x.GET_USER_PREFERENCES,
|
|
201
201
|
method: "getUserPreferences"
|
|
202
202
|
},
|
|
203
203
|
SET_USER_PREFERENCES: {
|
|
204
|
-
schema:
|
|
204
|
+
schema: x.SET_USER_PREFERENCES,
|
|
205
205
|
method: "setUserPreferences"
|
|
206
206
|
}
|
|
207
|
-
},
|
|
207
|
+
}, se = process.env.PUBLIC_SASSY_API_SERVER_URL, He = async ({
|
|
208
208
|
query: e,
|
|
209
209
|
data: r,
|
|
210
210
|
headers: t = {}
|
|
211
|
-
}) => await fetch(`${
|
|
211
|
+
}) => await fetch(`${se}/graphql`, {
|
|
212
212
|
method: "POST",
|
|
213
213
|
credentials: "include",
|
|
214
214
|
headers: {
|
|
@@ -220,14 +220,14 @@ const _ = {
|
|
|
220
220
|
query: e,
|
|
221
221
|
variables: r
|
|
222
222
|
})
|
|
223
|
-
}),
|
|
223
|
+
}), At = async ({
|
|
224
224
|
accessToken: e,
|
|
225
225
|
type: r,
|
|
226
226
|
params: t = {}
|
|
227
227
|
}) => {
|
|
228
228
|
const a = r != null && r.data ? r.data(t) : t;
|
|
229
229
|
try {
|
|
230
|
-
const o = `Bearer ${e}`, c = await
|
|
230
|
+
const o = `Bearer ${e}`, c = await He({
|
|
231
231
|
headers: {
|
|
232
232
|
authorization: o
|
|
233
233
|
},
|
|
@@ -236,11 +236,11 @@ const _ = {
|
|
|
236
236
|
});
|
|
237
237
|
if (c.status !== 200)
|
|
238
238
|
return { status: c.status, data: [] };
|
|
239
|
-
const { data: n, errors:
|
|
239
|
+
const { data: n, errors: s } = await c.json();
|
|
240
240
|
return {
|
|
241
241
|
status: c.status,
|
|
242
242
|
data: n[r.method],
|
|
243
|
-
errors:
|
|
243
|
+
errors: s
|
|
244
244
|
};
|
|
245
245
|
} catch (o) {
|
|
246
246
|
return console.error(o), { status: 500, data: [] };
|
|
@@ -252,7 +252,7 @@ const _ = {
|
|
|
252
252
|
method: a = "POST"
|
|
253
253
|
}) => {
|
|
254
254
|
const o = `Bearer ${e}`;
|
|
255
|
-
return await fetch(`${
|
|
255
|
+
return await fetch(`${se}/api/${r}`, {
|
|
256
256
|
method: a,
|
|
257
257
|
credentials: "include",
|
|
258
258
|
headers: {
|
|
@@ -261,21 +261,48 @@ const _ = {
|
|
|
261
261
|
},
|
|
262
262
|
body: JSON.stringify(t)
|
|
263
263
|
});
|
|
264
|
-
}
|
|
264
|
+
}, $t = E.createContext({
|
|
265
|
+
state: {
|
|
266
|
+
id: "",
|
|
267
|
+
model: J,
|
|
268
|
+
engine: J,
|
|
269
|
+
usage: 0,
|
|
270
|
+
messages: [],
|
|
271
|
+
isComponent: !1,
|
|
272
|
+
tags: []
|
|
273
|
+
},
|
|
274
|
+
dispatch: () => {
|
|
275
|
+
},
|
|
276
|
+
serverStats: {
|
|
277
|
+
version: "",
|
|
278
|
+
models: [],
|
|
279
|
+
plugins: [],
|
|
280
|
+
engine: J,
|
|
281
|
+
engines: []
|
|
282
|
+
}
|
|
283
|
+
}), Rt = E.createContext({
|
|
284
|
+
state: { searchString: "", sortedCell: "", sortDirection: "" },
|
|
285
|
+
dispatch: () => {
|
|
286
|
+
}
|
|
287
|
+
}), Ht = E.createContext({
|
|
288
|
+
state: { tag: "" },
|
|
289
|
+
dispatch: () => {
|
|
290
|
+
}
|
|
291
|
+
});
|
|
265
292
|
/*!
|
|
266
|
-
@versini/ui-table v2.0.
|
|
293
|
+
@versini/ui-table v2.0.8
|
|
267
294
|
© 2024 gizmette.com
|
|
268
295
|
*/
|
|
269
296
|
try {
|
|
270
297
|
window.__VERSINI_UI_TABLE__ || (window.__VERSINI_UI_TABLE__ = {
|
|
271
|
-
version: "2.0.
|
|
272
|
-
buildTime: "12/
|
|
298
|
+
version: "2.0.8",
|
|
299
|
+
buildTime: "12/31/2024 09:02 AM EST",
|
|
273
300
|
homepage: "https://github.com/aversini/ui-components",
|
|
274
301
|
license: "MIT"
|
|
275
302
|
});
|
|
276
303
|
} catch {
|
|
277
304
|
}
|
|
278
|
-
const
|
|
305
|
+
const F = "thead", X = "tfoot", N = "tbody", M = {
|
|
279
306
|
ASC: "asc",
|
|
280
307
|
DESC: "desc"
|
|
281
308
|
}, Be = ({
|
|
@@ -309,7 +336,7 @@ const P = "thead", Q = "tfoot", T = "tbody", O = {
|
|
|
309
336
|
"text-copy-light dark:text-copy-dark": e === "system",
|
|
310
337
|
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
311
338
|
})
|
|
312
|
-
}),
|
|
339
|
+
}), ze = ({
|
|
313
340
|
className: e,
|
|
314
341
|
stickyHeader: r,
|
|
315
342
|
mode: t
|
|
@@ -322,7 +349,7 @@ const P = "thead", Q = "tfoot", T = "tbody", O = {
|
|
|
322
349
|
"shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": r && t === "alt-system"
|
|
323
350
|
},
|
|
324
351
|
e
|
|
325
|
-
),
|
|
352
|
+
), Le = ({
|
|
326
353
|
className: e,
|
|
327
354
|
stickyFooter: r,
|
|
328
355
|
mode: t
|
|
@@ -335,11 +362,11 @@ const P = "thead", Q = "tfoot", T = "tbody", O = {
|
|
|
335
362
|
"shadow-[rgb(65_65_65_/30%)_-0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem]": r && t === "alt-system"
|
|
336
363
|
},
|
|
337
364
|
e
|
|
338
|
-
),
|
|
365
|
+
), Ve = ({
|
|
339
366
|
mode: e,
|
|
340
367
|
className: r,
|
|
341
368
|
cellWrapper: t
|
|
342
|
-
}) => t ===
|
|
369
|
+
}) => t === F || t === X ? i(
|
|
343
370
|
{
|
|
344
371
|
"bg-table-head-dark": e === "dark",
|
|
345
372
|
"bg-table-head-light": e === "light",
|
|
@@ -351,16 +378,16 @@ const P = "thead", Q = "tfoot", T = "tbody", O = {
|
|
|
351
378
|
"border-b last:border-0",
|
|
352
379
|
{
|
|
353
380
|
"border-table-dark": e === "dark",
|
|
354
|
-
"odd:bg-table-dark-odd even:bg-table-dark-even": t ===
|
|
381
|
+
"odd:bg-table-dark-odd even:bg-table-dark-even": t === N && e === "dark",
|
|
355
382
|
"border-table-light": e === "light",
|
|
356
|
-
"odd:bg-table-light-odd even:bg-table-light-even": t ===
|
|
383
|
+
"odd:bg-table-light-odd even:bg-table-light-even": t === N && e === "light",
|
|
357
384
|
"border-table-dark dark:border-table-light": e === "system",
|
|
358
|
-
"odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": t ===
|
|
385
|
+
"odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": t === N && e === "system",
|
|
359
386
|
"border-table-light dark:border-table-dark": e === "alt-system",
|
|
360
|
-
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": t ===
|
|
387
|
+
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": t === N && e === "alt-system"
|
|
361
388
|
},
|
|
362
389
|
r
|
|
363
|
-
),
|
|
390
|
+
), Oe = ({
|
|
364
391
|
cellWrapper: e,
|
|
365
392
|
className: r,
|
|
366
393
|
compact: t,
|
|
@@ -371,33 +398,33 @@ const P = "thead", Q = "tfoot", T = "tbody", O = {
|
|
|
371
398
|
"text-copy-dark": a === "light",
|
|
372
399
|
"text-copy-light dark:text-copy-dark": a === "system",
|
|
373
400
|
"text-copy-dark dark:text-copy-light": a === "alt-system",
|
|
374
|
-
"px-4 py-3": !t && (e ===
|
|
375
|
-
"p-4": !t && e ===
|
|
401
|
+
"px-4 py-3": !t && (e === F || e === X),
|
|
402
|
+
"p-4": !t && e === N,
|
|
376
403
|
"px-2 py-1.5": t
|
|
377
404
|
},
|
|
378
405
|
r
|
|
379
|
-
),
|
|
406
|
+
), Me = ({
|
|
380
407
|
buttonClassName: e
|
|
381
|
-
}) => i("rounded-none text-sm", e),
|
|
408
|
+
}) => i("rounded-none text-sm", e), oe = "av-button", le = "icon", Ue = "button", Fe = "link", Ge = ({
|
|
382
409
|
type: e,
|
|
383
410
|
size: r,
|
|
384
411
|
labelRight: t,
|
|
385
412
|
labelLeft: a,
|
|
386
413
|
align: o
|
|
387
414
|
}) => {
|
|
388
|
-
const c = "text-sm font-medium max-h-8 py-0", n = "text-base font-medium max-h-9 py-1",
|
|
415
|
+
const c = "text-sm font-medium max-h-8 py-0 px-2", n = "text-base font-medium max-h-9 py-1 px-3", s = "text-lg font-medium max-h-12 py-2 px-4";
|
|
389
416
|
switch (e) {
|
|
390
|
-
case
|
|
391
|
-
return i(
|
|
417
|
+
case Ue:
|
|
418
|
+
return i({
|
|
392
419
|
[c]: r === "small",
|
|
393
420
|
[n]: r === "medium",
|
|
394
|
-
[
|
|
421
|
+
[s]: r === "large"
|
|
395
422
|
});
|
|
396
|
-
case
|
|
397
|
-
return i("
|
|
423
|
+
case Fe:
|
|
424
|
+
return i("text-center", {
|
|
398
425
|
[c]: r === "small",
|
|
399
426
|
[n]: r === "medium",
|
|
400
|
-
[
|
|
427
|
+
[s]: r === "large"
|
|
401
428
|
});
|
|
402
429
|
case le:
|
|
403
430
|
return i("inline-flex items-center", {
|
|
@@ -405,14 +432,14 @@ const P = "thead", Q = "tfoot", T = "tbody", O = {
|
|
|
405
432
|
"justify-start": o === "left",
|
|
406
433
|
"justify-end": o === "right",
|
|
407
434
|
"h-6 w-6 p-0": r === "small" && !(t || a),
|
|
408
|
-
"h-6 px-
|
|
435
|
+
"h-6 px-2 text-sm font-medium": r === "small" && (t || a),
|
|
409
436
|
"h-8 w-8 p-1": r === "medium" && !(t || a),
|
|
410
|
-
"h-8 px-
|
|
437
|
+
"h-8 px-3 text-base font-medium": r === "medium" && (t || a),
|
|
411
438
|
"h-12 w-12 p-2": r === "large" && !(t || a),
|
|
412
439
|
"h-12 px-4 text-lg font-medium": r === "large" && (t || a)
|
|
413
440
|
});
|
|
414
441
|
}
|
|
415
|
-
},
|
|
442
|
+
}, Pe = ({
|
|
416
443
|
mode: e,
|
|
417
444
|
noBackground: r,
|
|
418
445
|
noTruncate: t,
|
|
@@ -469,7 +496,7 @@ const P = "thead", Q = "tfoot", T = "tbody", O = {
|
|
|
469
496
|
"bg-action-selected-dark text-copy-light dark:bg-action-selected-light dark:text-copy-lighter": e === "system",
|
|
470
497
|
"bg-action-selected-light text-copy-lighter dark:bg-action-selected-dark dark:text-copy-light": e === "alt-system"
|
|
471
498
|
});
|
|
472
|
-
},
|
|
499
|
+
}, De = ({
|
|
473
500
|
mode: e,
|
|
474
501
|
disabled: r,
|
|
475
502
|
variant: t
|
|
@@ -504,7 +531,7 @@ const P = "thead", Q = "tfoot", T = "tbody", O = {
|
|
|
504
531
|
"hover:bg-action-selected-dark-hover dark:hover:bg-action-selected-light-hover": e === "system",
|
|
505
532
|
"hover:bg-action-selected-light-hover dark:hover:bg-action-selected-dark-hover": e === "alt-system"
|
|
506
533
|
});
|
|
507
|
-
},
|
|
534
|
+
}, We = ({
|
|
508
535
|
mode: e,
|
|
509
536
|
disabled: r,
|
|
510
537
|
variant: t
|
|
@@ -539,7 +566,7 @@ const P = "thead", Q = "tfoot", T = "tbody", O = {
|
|
|
539
566
|
"active:bg-action-selected-dark-active dark:active:bg-action-selected-light-active": e === "system",
|
|
540
567
|
"active:bg-action-selected-light-active dark:active:bg-action-selected-dark-active": e === "alt-system"
|
|
541
568
|
});
|
|
542
|
-
},
|
|
569
|
+
}, je = ({
|
|
543
570
|
mode: e,
|
|
544
571
|
noBorder: r,
|
|
545
572
|
variant: t
|
|
@@ -574,14 +601,14 @@ const P = "thead", Q = "tfoot", T = "tbody", O = {
|
|
|
574
601
|
"border-border-selected-dark dark:border-border-selected-medium": e === "system",
|
|
575
602
|
"border-border-selected-medium dark:border-border-selected-dark": e === "alt-system"
|
|
576
603
|
});
|
|
577
|
-
},
|
|
604
|
+
}, qe = ({
|
|
578
605
|
focusMode: e
|
|
579
606
|
}) => i("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
580
607
|
"focus:outline-focus-dark": e === "dark",
|
|
581
608
|
"focus:outline-focus-light": e === "light",
|
|
582
609
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
583
610
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
584
|
-
}),
|
|
611
|
+
}), Je = ({
|
|
585
612
|
type: e,
|
|
586
613
|
className: r,
|
|
587
614
|
raw: t,
|
|
@@ -589,7 +616,7 @@ const P = "thead", Q = "tfoot", T = "tbody", O = {
|
|
|
589
616
|
focusMode: o,
|
|
590
617
|
disabled: c,
|
|
591
618
|
fullWidth: n,
|
|
592
|
-
size:
|
|
619
|
+
size: s,
|
|
593
620
|
noBorder: d,
|
|
594
621
|
labelRight: u,
|
|
595
622
|
labelLeft: m,
|
|
@@ -598,56 +625,62 @@ const P = "thead", Q = "tfoot", T = "tbody", O = {
|
|
|
598
625
|
noTruncate: b,
|
|
599
626
|
align: p,
|
|
600
627
|
radius: w
|
|
601
|
-
}) => (h || (h = "primary"), t ? i(
|
|
602
|
-
|
|
603
|
-
|
|
628
|
+
}) => (h || (h = "primary"), t ? i(oe, r) : i(
|
|
629
|
+
oe,
|
|
630
|
+
Pe({
|
|
604
631
|
mode: a,
|
|
605
632
|
variant: h,
|
|
606
633
|
noBackground: g,
|
|
607
634
|
noTruncate: b,
|
|
608
635
|
radius: w
|
|
609
636
|
}),
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
637
|
+
Ge({
|
|
638
|
+
type: e,
|
|
639
|
+
size: s,
|
|
640
|
+
labelRight: u,
|
|
641
|
+
labelLeft: m,
|
|
642
|
+
align: p
|
|
643
|
+
}),
|
|
644
|
+
je({ mode: a, variant: h, noBorder: d }),
|
|
645
|
+
qe({ focusMode: o }),
|
|
614
646
|
De({ mode: a, variant: h, disabled: c }),
|
|
647
|
+
We({ mode: a, variant: h, disabled: c }),
|
|
615
648
|
{
|
|
616
649
|
"w-full": n,
|
|
617
650
|
"disabled:cursor-not-allowed disabled:opacity-50": c
|
|
618
651
|
},
|
|
619
652
|
r
|
|
620
|
-
)),
|
|
653
|
+
)), Qe = (e, r, t) => {
|
|
621
654
|
var a;
|
|
622
655
|
!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);
|
|
623
|
-
},
|
|
656
|
+
}, de = E.forwardRef((e, r) => {
|
|
624
657
|
const { onClick: t, noInternalClick: a = !1, ...o } = e;
|
|
625
|
-
return /* @__PURE__ */
|
|
658
|
+
return /* @__PURE__ */ l(
|
|
626
659
|
"button",
|
|
627
660
|
{
|
|
628
661
|
ref: r,
|
|
629
662
|
onClick: (c) => {
|
|
630
|
-
|
|
663
|
+
Qe(c, a, t);
|
|
631
664
|
},
|
|
632
665
|
...o
|
|
633
666
|
}
|
|
634
667
|
);
|
|
635
668
|
});
|
|
636
|
-
|
|
669
|
+
de.displayName = "BaseButton";
|
|
637
670
|
/*!
|
|
638
|
-
@versini/ui-button v3.0
|
|
671
|
+
@versini/ui-button v3.2.0
|
|
639
672
|
© 2024 gizmette.com
|
|
640
673
|
*/
|
|
641
674
|
try {
|
|
642
675
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
643
|
-
version: "3.0
|
|
644
|
-
buildTime: "12/
|
|
676
|
+
version: "3.2.0",
|
|
677
|
+
buildTime: "12/31/2024 09:01 AM EST",
|
|
645
678
|
homepage: "https://github.com/aversini/ui-components",
|
|
646
679
|
license: "MIT"
|
|
647
680
|
});
|
|
648
681
|
} catch {
|
|
649
682
|
}
|
|
650
|
-
const
|
|
683
|
+
const ue = E.forwardRef(
|
|
651
684
|
({
|
|
652
685
|
children: e,
|
|
653
686
|
disabled: r = !1,
|
|
@@ -656,7 +689,7 @@ const de = U.forwardRef(
|
|
|
656
689
|
fullWidth: o = !1,
|
|
657
690
|
className: c,
|
|
658
691
|
type: n = "button",
|
|
659
|
-
raw:
|
|
692
|
+
raw: s = !1,
|
|
660
693
|
noBorder: d = !1,
|
|
661
694
|
"aria-label": u,
|
|
662
695
|
label: m,
|
|
@@ -665,17 +698,17 @@ const de = U.forwardRef(
|
|
|
665
698
|
labelLeft: b,
|
|
666
699
|
noBackground: p = !1,
|
|
667
700
|
align: w = "center",
|
|
668
|
-
active:
|
|
701
|
+
active: C = !1,
|
|
669
702
|
radius: B = "large",
|
|
670
|
-
...
|
|
671
|
-
},
|
|
672
|
-
const
|
|
703
|
+
...z
|
|
704
|
+
}, L) => {
|
|
705
|
+
const G = Je({
|
|
673
706
|
type: le,
|
|
674
707
|
mode: t,
|
|
675
708
|
focusMode: a,
|
|
676
709
|
fullWidth: o,
|
|
677
710
|
disabled: r,
|
|
678
|
-
raw:
|
|
711
|
+
raw: s,
|
|
679
712
|
className: c,
|
|
680
713
|
noBorder: d,
|
|
681
714
|
size: g,
|
|
@@ -684,12 +717,12 @@ const de = U.forwardRef(
|
|
|
684
717
|
noBackground: p,
|
|
685
718
|
align: w,
|
|
686
719
|
radius: B
|
|
687
|
-
}),
|
|
688
|
-
"text-copy-accent-dark": t === "light" && !
|
|
689
|
-
"text-copy-light": t === "dark" && !
|
|
690
|
-
"text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !
|
|
691
|
-
"text-copy-light dark:text-copy-accent-dark": t === "system" && !
|
|
692
|
-
}), f =
|
|
720
|
+
}), P = i({
|
|
721
|
+
"text-copy-accent-dark": t === "light" && !s,
|
|
722
|
+
"text-copy-light": t === "dark" && !s,
|
|
723
|
+
"text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !s,
|
|
724
|
+
"text-copy-light dark:text-copy-accent-dark": t === "system" && !s
|
|
725
|
+
}), f = C ? i(
|
|
693
726
|
"relative",
|
|
694
727
|
"focus-within:static",
|
|
695
728
|
"focus-within:after:border-transparent",
|
|
@@ -706,26 +739,26 @@ const de = U.forwardRef(
|
|
|
706
739
|
"after:border-table-light dark:after:border-table-dark": t === "alt-system"
|
|
707
740
|
}
|
|
708
741
|
) : "";
|
|
709
|
-
return /* @__PURE__ */
|
|
710
|
-
|
|
742
|
+
return /* @__PURE__ */ l("div", { className: f, children: /* @__PURE__ */ _(
|
|
743
|
+
de,
|
|
711
744
|
{
|
|
712
|
-
ref:
|
|
713
|
-
className:
|
|
745
|
+
ref: L,
|
|
746
|
+
className: G,
|
|
714
747
|
disabled: r,
|
|
715
748
|
type: n,
|
|
716
749
|
"aria-label": u || m,
|
|
717
|
-
...
|
|
750
|
+
...z,
|
|
718
751
|
children: [
|
|
719
|
-
b && /* @__PURE__ */
|
|
720
|
-
/* @__PURE__ */
|
|
721
|
-
h && /* @__PURE__ */
|
|
752
|
+
b && /* @__PURE__ */ l("span", { className: "pr-2", children: b }),
|
|
753
|
+
/* @__PURE__ */ l("div", { className: P, children: e }),
|
|
754
|
+
h && /* @__PURE__ */ l("span", { className: "pl-2", children: h })
|
|
722
755
|
]
|
|
723
756
|
}
|
|
724
757
|
) });
|
|
725
758
|
}
|
|
726
759
|
);
|
|
727
|
-
|
|
728
|
-
const
|
|
760
|
+
ue.displayName = "ButtonSort";
|
|
761
|
+
const Y = ({
|
|
729
762
|
children: e,
|
|
730
763
|
fill: r,
|
|
731
764
|
viewBox: t,
|
|
@@ -733,12 +766,12 @@ const X = ({
|
|
|
733
766
|
defaultViewBox: o,
|
|
734
767
|
size: c,
|
|
735
768
|
title: n,
|
|
736
|
-
semantic:
|
|
769
|
+
semantic: s = !1,
|
|
737
770
|
...d
|
|
738
771
|
}) => {
|
|
739
772
|
const u = i(c, a);
|
|
740
|
-
return /* @__PURE__ */
|
|
741
|
-
/* @__PURE__ */
|
|
773
|
+
return /* @__PURE__ */ _(Ne, { children: [
|
|
774
|
+
/* @__PURE__ */ l(
|
|
742
775
|
"svg",
|
|
743
776
|
{
|
|
744
777
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -746,36 +779,36 @@ const X = ({
|
|
|
746
779
|
viewBox: t || o,
|
|
747
780
|
fill: r || "currentColor",
|
|
748
781
|
role: "img",
|
|
749
|
-
"aria-hidden": !
|
|
782
|
+
"aria-hidden": !s,
|
|
750
783
|
focusable: !1,
|
|
751
784
|
...d,
|
|
752
785
|
children: e
|
|
753
786
|
}
|
|
754
787
|
),
|
|
755
|
-
n &&
|
|
788
|
+
n && s && /* @__PURE__ */ l("span", { className: "sr-only", children: n })
|
|
756
789
|
] });
|
|
757
790
|
};
|
|
758
791
|
/*!
|
|
759
|
-
@versini/ui-svgicon v3.0.
|
|
792
|
+
@versini/ui-svgicon v3.0.2
|
|
760
793
|
© 2024 gizmette.com
|
|
761
794
|
*/
|
|
762
795
|
try {
|
|
763
796
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
764
|
-
version: "3.0.
|
|
765
|
-
buildTime: "12/
|
|
797
|
+
version: "3.0.2",
|
|
798
|
+
buildTime: "12/31/2024 09:01 AM EST",
|
|
766
799
|
homepage: "https://github.com/aversini/ui-components",
|
|
767
800
|
license: "MIT"
|
|
768
801
|
});
|
|
769
802
|
} catch {
|
|
770
803
|
}
|
|
771
|
-
const
|
|
804
|
+
const Xe = ({
|
|
772
805
|
className: e,
|
|
773
806
|
viewBox: r,
|
|
774
807
|
title: t,
|
|
775
808
|
monotone: a,
|
|
776
809
|
...o
|
|
777
|
-
}) => /* @__PURE__ */
|
|
778
|
-
|
|
810
|
+
}) => /* @__PURE__ */ _(
|
|
811
|
+
Y,
|
|
779
812
|
{
|
|
780
813
|
defaultViewBox: "0 0 576 512",
|
|
781
814
|
size: "size-5",
|
|
@@ -784,24 +817,24 @@ const Qe = ({
|
|
|
784
817
|
title: t || "Sort",
|
|
785
818
|
...o,
|
|
786
819
|
children: [
|
|
787
|
-
/* @__PURE__ */
|
|
820
|
+
/* @__PURE__ */ l(
|
|
788
821
|
"path",
|
|
789
822
|
{
|
|
790
823
|
opacity: a ? "1" : "0.4",
|
|
791
824
|
d: "M393.4 41.4c12.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 0L448 141.3V448c0 17.7-14.3 32-32 32s-32-14.3-32-32V141.3l-41.4 41.4c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l96-96z"
|
|
792
825
|
}
|
|
793
826
|
),
|
|
794
|
-
/* @__PURE__ */
|
|
827
|
+
/* @__PURE__ */ l("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" })
|
|
795
828
|
]
|
|
796
829
|
}
|
|
797
|
-
),
|
|
830
|
+
), Ye = ({
|
|
798
831
|
className: e,
|
|
799
832
|
viewBox: r,
|
|
800
833
|
title: t,
|
|
801
834
|
monotone: a,
|
|
802
835
|
...o
|
|
803
|
-
}) => /* @__PURE__ */
|
|
804
|
-
|
|
836
|
+
}) => /* @__PURE__ */ _(
|
|
837
|
+
Y,
|
|
805
838
|
{
|
|
806
839
|
defaultViewBox: "0 0 576 512",
|
|
807
840
|
size: "size-5",
|
|
@@ -810,24 +843,24 @@ const Qe = ({
|
|
|
810
843
|
title: t || "Sort Down",
|
|
811
844
|
...o,
|
|
812
845
|
children: [
|
|
813
|
-
/* @__PURE__ */
|
|
846
|
+
/* @__PURE__ */ l(
|
|
814
847
|
"path",
|
|
815
848
|
{
|
|
816
849
|
opacity: a ? "1" : "0.4",
|
|
817
850
|
d: "M288 448c0 17.7 14.3 32 32 32h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32zm0-128c0 17.7 14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32zm0-128c0 17.7 14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32zm0-128c0 17.7 14.3 32 32 32H544c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32z"
|
|
818
851
|
}
|
|
819
852
|
),
|
|
820
|
-
/* @__PURE__ */
|
|
853
|
+
/* @__PURE__ */ l("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" })
|
|
821
854
|
]
|
|
822
855
|
}
|
|
823
|
-
),
|
|
856
|
+
), Ke = ({
|
|
824
857
|
className: e,
|
|
825
858
|
viewBox: r,
|
|
826
859
|
title: t,
|
|
827
860
|
monotone: a,
|
|
828
861
|
...o
|
|
829
|
-
}) => /* @__PURE__ */
|
|
830
|
-
|
|
862
|
+
}) => /* @__PURE__ */ _(
|
|
863
|
+
Y,
|
|
831
864
|
{
|
|
832
865
|
defaultViewBox: "0 0 576 512",
|
|
833
866
|
size: "size-5",
|
|
@@ -836,37 +869,37 @@ const Qe = ({
|
|
|
836
869
|
title: t || "Sort Up",
|
|
837
870
|
...o,
|
|
838
871
|
children: [
|
|
839
|
-
/* @__PURE__ */
|
|
872
|
+
/* @__PURE__ */ l(
|
|
840
873
|
"path",
|
|
841
874
|
{
|
|
842
875
|
opacity: a ? "1" : "0.4",
|
|
843
876
|
d: "M288 64c0-17.7 14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32zm0 128c0-17.7 14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32zm0 128c0-17.7 14.3-32 32-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32zm0 128c0-17.7 14.3-32 32-32H544c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32z"
|
|
844
877
|
}
|
|
845
878
|
),
|
|
846
|
-
/* @__PURE__ */
|
|
879
|
+
/* @__PURE__ */ l("path", { d: "M128 32c9 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 146.3V448c0 17.7-14.3 32-32 32s-32-14.3-32-32V146.3L63.6 181.6c-11.9 13-32.2 13.9-45.2 2s-13.9-32.2-2-45.2l88-96C110.5 35.8 119 32 128 32z" })
|
|
847
880
|
]
|
|
848
881
|
}
|
|
849
882
|
);
|
|
850
883
|
/*!
|
|
851
|
-
@versini/ui-icons v3.0.
|
|
884
|
+
@versini/ui-icons v3.0.2
|
|
852
885
|
© 2024 gizmette.com
|
|
853
886
|
*/
|
|
854
887
|
try {
|
|
855
888
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
856
|
-
version: "3.0.
|
|
857
|
-
buildTime: "12/
|
|
889
|
+
version: "3.0.2",
|
|
890
|
+
buildTime: "12/31/2024 09:01 AM EST",
|
|
858
891
|
homepage: "https://github.com/aversini/ui-components",
|
|
859
892
|
license: "MIT"
|
|
860
893
|
});
|
|
861
894
|
} catch {
|
|
862
895
|
}
|
|
863
|
-
const
|
|
896
|
+
const S = E.createContext({
|
|
864
897
|
mode: "light",
|
|
865
898
|
cellWrapper: "thead",
|
|
866
899
|
stickyHeader: !1,
|
|
867
900
|
stickyFooter: !1,
|
|
868
901
|
compact: !1
|
|
869
|
-
}),
|
|
902
|
+
}), Bt = ({
|
|
870
903
|
children: e,
|
|
871
904
|
mode: r = "system",
|
|
872
905
|
caption: t,
|
|
@@ -874,7 +907,7 @@ const N = U.createContext({
|
|
|
874
907
|
summary: o,
|
|
875
908
|
className: c,
|
|
876
909
|
wrapperClassName: n,
|
|
877
|
-
maxHeight:
|
|
910
|
+
maxHeight: s,
|
|
878
911
|
stickyHeader: d,
|
|
879
912
|
stickyFooter: u,
|
|
880
913
|
...m
|
|
@@ -886,79 +919,79 @@ const N = U.createContext({
|
|
|
886
919
|
stickyHeader: d,
|
|
887
920
|
stickyFooter: u
|
|
888
921
|
});
|
|
889
|
-
return /* @__PURE__ */
|
|
890
|
-
|
|
922
|
+
return /* @__PURE__ */ l(
|
|
923
|
+
S.Provider,
|
|
891
924
|
{
|
|
892
925
|
value: { mode: r, stickyHeader: d, stickyFooter: u, compact: a },
|
|
893
|
-
children: /* @__PURE__ */
|
|
926
|
+
children: /* @__PURE__ */ l(
|
|
894
927
|
"div",
|
|
895
928
|
{
|
|
896
929
|
className: g.wrapper,
|
|
897
|
-
...
|
|
898
|
-
style: { maxHeight:
|
|
930
|
+
...s && {
|
|
931
|
+
style: { maxHeight: s }
|
|
899
932
|
},
|
|
900
|
-
children: /* @__PURE__ */
|
|
901
|
-
t && /* @__PURE__ */
|
|
933
|
+
children: /* @__PURE__ */ _("table", { className: g.table, summary: o, ...m, children: [
|
|
934
|
+
t && /* @__PURE__ */ l("caption", { className: g.caption, children: t }),
|
|
902
935
|
e
|
|
903
936
|
] })
|
|
904
937
|
}
|
|
905
938
|
)
|
|
906
939
|
}
|
|
907
940
|
);
|
|
908
|
-
},
|
|
941
|
+
}, zt = ({
|
|
909
942
|
children: e,
|
|
910
943
|
className: r,
|
|
911
944
|
...t
|
|
912
945
|
}) => {
|
|
913
|
-
const a =
|
|
914
|
-
a.cellWrapper =
|
|
915
|
-
const o =
|
|
946
|
+
const a = H(S);
|
|
947
|
+
a.cellWrapper = F;
|
|
948
|
+
const o = ze({
|
|
916
949
|
className: r,
|
|
917
950
|
mode: a.mode,
|
|
918
951
|
stickyHeader: a.stickyHeader
|
|
919
952
|
});
|
|
920
|
-
return /* @__PURE__ */
|
|
921
|
-
},
|
|
953
|
+
return /* @__PURE__ */ l("thead", { className: o, ...t, children: e });
|
|
954
|
+
}, Lt = ({
|
|
922
955
|
children: e,
|
|
923
956
|
className: r,
|
|
924
957
|
...t
|
|
925
958
|
}) => {
|
|
926
|
-
const a =
|
|
927
|
-
a.cellWrapper =
|
|
928
|
-
const o =
|
|
959
|
+
const a = H(S);
|
|
960
|
+
a.cellWrapper = X;
|
|
961
|
+
const o = Le({
|
|
929
962
|
className: r,
|
|
930
963
|
mode: a.mode,
|
|
931
964
|
stickyFooter: a.stickyFooter
|
|
932
965
|
});
|
|
933
|
-
return /* @__PURE__ */
|
|
934
|
-
},
|
|
935
|
-
const t =
|
|
936
|
-
return t.cellWrapper =
|
|
937
|
-
},
|
|
966
|
+
return /* @__PURE__ */ l("tfoot", { className: o, ...t, children: e });
|
|
967
|
+
}, Vt = ({ children: e, ...r }) => {
|
|
968
|
+
const t = H(S);
|
|
969
|
+
return t.cellWrapper = N, /* @__PURE__ */ l("tbody", { ...r, children: e });
|
|
970
|
+
}, Ot = ({
|
|
938
971
|
children: e,
|
|
939
972
|
className: r,
|
|
940
973
|
...t
|
|
941
974
|
}) => {
|
|
942
|
-
const a =
|
|
975
|
+
const a = H(S), o = Ve({
|
|
943
976
|
mode: a.mode,
|
|
944
977
|
cellWrapper: a.cellWrapper,
|
|
945
978
|
className: r
|
|
946
979
|
});
|
|
947
|
-
return /* @__PURE__ */
|
|
948
|
-
},
|
|
980
|
+
return /* @__PURE__ */ l("tr", { className: o, ...t, children: e });
|
|
981
|
+
}, Ze = ({
|
|
949
982
|
children: e,
|
|
950
983
|
component: r,
|
|
951
984
|
className: t,
|
|
952
985
|
...a
|
|
953
986
|
}) => {
|
|
954
|
-
const o =
|
|
987
|
+
const o = H(S), c = r || (o.cellWrapper === F ? "th" : "td"), n = Oe({
|
|
955
988
|
cellWrapper: o.cellWrapper,
|
|
956
989
|
className: t,
|
|
957
990
|
mode: o.mode,
|
|
958
991
|
compact: o.compact
|
|
959
992
|
});
|
|
960
|
-
return /* @__PURE__ */
|
|
961
|
-
},
|
|
993
|
+
return /* @__PURE__ */ l(c, { className: n, ...a, children: e });
|
|
994
|
+
}, Mt = ({
|
|
962
995
|
align: e,
|
|
963
996
|
children: r,
|
|
964
997
|
buttonClassName: t,
|
|
@@ -966,68 +999,68 @@ const N = U.createContext({
|
|
|
966
999
|
component: o,
|
|
967
1000
|
focusMode: c = "alt-system",
|
|
968
1001
|
mode: n = "alt-system",
|
|
969
|
-
onClick:
|
|
1002
|
+
onClick: s,
|
|
970
1003
|
sortDirection: d,
|
|
971
1004
|
sortedCell: u,
|
|
972
1005
|
cellId: m,
|
|
973
1006
|
...g
|
|
974
1007
|
}) => {
|
|
975
|
-
const h =
|
|
976
|
-
return /* @__PURE__ */
|
|
977
|
-
|
|
1008
|
+
const h = Me({ buttonClassName: t });
|
|
1009
|
+
return /* @__PURE__ */ l(
|
|
1010
|
+
Ze,
|
|
978
1011
|
{
|
|
979
1012
|
component: o,
|
|
980
1013
|
className: a,
|
|
981
1014
|
role: "columnheader",
|
|
982
|
-
"aria-sort": d ===
|
|
1015
|
+
"aria-sort": d === M.ASC && u === m ? "ascending" : d === M.DESC && u === m ? "descending" : "other",
|
|
983
1016
|
...g,
|
|
984
|
-
children: /* @__PURE__ */
|
|
985
|
-
|
|
1017
|
+
children: /* @__PURE__ */ l(
|
|
1018
|
+
ue,
|
|
986
1019
|
{
|
|
987
1020
|
active: u === m,
|
|
988
1021
|
className: h,
|
|
989
|
-
onClick:
|
|
1022
|
+
onClick: s,
|
|
990
1023
|
align: e,
|
|
991
1024
|
noBorder: !0,
|
|
992
1025
|
focusMode: c,
|
|
993
1026
|
mode: n,
|
|
994
1027
|
fullWidth: !0,
|
|
995
1028
|
labelRight: r,
|
|
996
|
-
children: d ===
|
|
1029
|
+
children: d === M.ASC && u === m ? /* @__PURE__ */ l(Ke, { className: "size-4", monotone: !0 }) : d === M.DESC && u === m ? /* @__PURE__ */ l(Ye, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(Xe, { className: "size-4", monotone: !0 })
|
|
997
1030
|
}
|
|
998
1031
|
)
|
|
999
1032
|
}
|
|
1000
1033
|
);
|
|
1001
1034
|
};
|
|
1002
1035
|
/*!
|
|
1003
|
-
@versini/ui-textarea v2.0.
|
|
1036
|
+
@versini/ui-textarea v2.0.5
|
|
1004
1037
|
© 2024 gizmette.com
|
|
1005
1038
|
*/
|
|
1006
1039
|
try {
|
|
1007
1040
|
window.__VERSINI_UI_TEXTAREA__ || (window.__VERSINI_UI_TEXTAREA__ = {
|
|
1008
|
-
version: "2.0.
|
|
1009
|
-
buildTime: "12/30/2024
|
|
1041
|
+
version: "2.0.5",
|
|
1042
|
+
buildTime: "12/30/2024 07:48 PM EST",
|
|
1010
1043
|
homepage: "https://github.com/aversini/ui-components",
|
|
1011
1044
|
license: "MIT"
|
|
1012
1045
|
});
|
|
1013
1046
|
} catch {
|
|
1014
1047
|
}
|
|
1015
|
-
const
|
|
1016
|
-
function
|
|
1048
|
+
const me = "av-text-area", et = "av-text-area-wrapper", Q = "av-text-area-helper-text", tt = "av-text-area__control--right";
|
|
1049
|
+
function rt() {
|
|
1017
1050
|
const e = k(!1);
|
|
1018
|
-
return
|
|
1051
|
+
return R(() => (e.current = !0, () => {
|
|
1019
1052
|
e.current = !1;
|
|
1020
|
-
}), []),
|
|
1053
|
+
}), []), U(() => e.current, []);
|
|
1021
1054
|
}
|
|
1022
|
-
function
|
|
1023
|
-
return
|
|
1055
|
+
function at(e) {
|
|
1056
|
+
return ne(() => e.every((r) => r == null) ? () => {
|
|
1024
1057
|
} : (r) => {
|
|
1025
1058
|
e.forEach((t) => {
|
|
1026
1059
|
typeof t == "function" ? t(r) : t != null && (t.current = r);
|
|
1027
1060
|
});
|
|
1028
1061
|
}, e);
|
|
1029
1062
|
}
|
|
1030
|
-
const
|
|
1063
|
+
const ot = {
|
|
1031
1064
|
x: 0,
|
|
1032
1065
|
y: 0,
|
|
1033
1066
|
width: 0,
|
|
@@ -1037,18 +1070,18 @@ const at = {
|
|
|
1037
1070
|
bottom: 0,
|
|
1038
1071
|
right: 0
|
|
1039
1072
|
};
|
|
1040
|
-
function
|
|
1041
|
-
const r =
|
|
1042
|
-
const d =
|
|
1073
|
+
function it(e) {
|
|
1074
|
+
const r = rt(), t = k(0), a = k(null), [o, c] = $(ot), n = ne(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
|
|
1075
|
+
const d = s[0];
|
|
1043
1076
|
d && (cancelAnimationFrame(t.current), t.current = requestAnimationFrame(() => {
|
|
1044
1077
|
a.current && r() && c(d.contentRect);
|
|
1045
1078
|
}));
|
|
1046
1079
|
}), [r]);
|
|
1047
|
-
return
|
|
1080
|
+
return R(() => (a.current && (n == null || n.observe(a.current, e)), () => {
|
|
1048
1081
|
n == null || n.disconnect(), t.current && cancelAnimationFrame(t.current);
|
|
1049
1082
|
}), [n, e]), [a, o];
|
|
1050
1083
|
}
|
|
1051
|
-
function
|
|
1084
|
+
function nt({
|
|
1052
1085
|
value: e,
|
|
1053
1086
|
defaultValue: r,
|
|
1054
1087
|
finalValue: t,
|
|
@@ -1056,19 +1089,19 @@ function it({
|
|
|
1056
1089
|
},
|
|
1057
1090
|
initialControlledDelay: o = 0
|
|
1058
1091
|
}) {
|
|
1059
|
-
const [c, n] = $(!1), [
|
|
1092
|
+
const [c, n] = $(!1), [s, d] = $(
|
|
1060
1093
|
r !== void 0 ? r : t
|
|
1061
1094
|
), u = (m) => {
|
|
1062
1095
|
d(m), a == null || a(m);
|
|
1063
1096
|
};
|
|
1064
|
-
return
|
|
1097
|
+
return R(() => {
|
|
1065
1098
|
(async () => e !== void 0 && !c && o > 0 && (await new Promise(
|
|
1066
1099
|
(m) => setTimeout(m, o)
|
|
1067
1100
|
), n(!0)))();
|
|
1068
|
-
}, [e, o, c]), e !== void 0 ? !c && o > 0 ? ["", a, !0] : [e, a, !0] : [
|
|
1101
|
+
}, [e, o, c]), e !== void 0 ? !c && o > 0 ? ["", a, !0] : [e, a, !0] : [s, u, !1];
|
|
1069
1102
|
}
|
|
1070
|
-
function
|
|
1071
|
-
const r =
|
|
1103
|
+
function ct(e) {
|
|
1104
|
+
const r = Ae();
|
|
1072
1105
|
if (!e)
|
|
1073
1106
|
return r;
|
|
1074
1107
|
if (typeof e == "number" || typeof e == "string")
|
|
@@ -1078,7 +1111,7 @@ function nt(e) {
|
|
|
1078
1111
|
return typeof t == "number" || typeof t == "string" ? `${a}${t}` : `${a}${r}`;
|
|
1079
1112
|
}
|
|
1080
1113
|
}
|
|
1081
|
-
const
|
|
1114
|
+
const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT", st = {
|
|
1082
1115
|
alert: null,
|
|
1083
1116
|
alertdialog: null,
|
|
1084
1117
|
log: "polite",
|
|
@@ -1088,12 +1121,12 @@ const me = "SET_ANNOUNCEMENT", he = "CLEAR_ANNOUNCEMENT", ct = {
|
|
|
1088
1121
|
timer: "assertive"
|
|
1089
1122
|
}, lt = (e, r) => {
|
|
1090
1123
|
switch (r == null ? void 0 : r.type) {
|
|
1091
|
-
case
|
|
1124
|
+
case he:
|
|
1092
1125
|
return {
|
|
1093
1126
|
...e,
|
|
1094
1127
|
announcement: r.payload
|
|
1095
1128
|
};
|
|
1096
|
-
case
|
|
1129
|
+
case ge:
|
|
1097
1130
|
return {
|
|
1098
1131
|
...e,
|
|
1099
1132
|
announcement: null
|
|
@@ -1101,14 +1134,14 @@ const me = "SET_ANNOUNCEMENT", he = "CLEAR_ANNOUNCEMENT", ct = {
|
|
|
1101
1134
|
default:
|
|
1102
1135
|
return e;
|
|
1103
1136
|
}
|
|
1104
|
-
},
|
|
1137
|
+
}, dt = ({
|
|
1105
1138
|
onAnnouncementClear: e,
|
|
1106
1139
|
dispatch: r
|
|
1107
1140
|
}) => {
|
|
1108
1141
|
r({
|
|
1109
|
-
type:
|
|
1142
|
+
type: ge
|
|
1110
1143
|
}), typeof e == "function" && e();
|
|
1111
|
-
},
|
|
1144
|
+
}, ie = ({
|
|
1112
1145
|
children: e,
|
|
1113
1146
|
clearAnnouncementDelay: r,
|
|
1114
1147
|
clearAnnouncementTimeoutRef: t,
|
|
@@ -1116,16 +1149,16 @@ const me = "SET_ANNOUNCEMENT", he = "CLEAR_ANNOUNCEMENT", ct = {
|
|
|
1116
1149
|
dispatch: o
|
|
1117
1150
|
}) => {
|
|
1118
1151
|
clearTimeout(t.current), e !== null && o({
|
|
1119
|
-
type:
|
|
1152
|
+
type: he,
|
|
1120
1153
|
payload: e
|
|
1121
1154
|
}), r && (t.current = setTimeout(
|
|
1122
|
-
() =>
|
|
1155
|
+
() => dt({
|
|
1123
1156
|
onAnnouncementClear: a,
|
|
1124
1157
|
dispatch: o
|
|
1125
1158
|
}),
|
|
1126
1159
|
r
|
|
1127
1160
|
));
|
|
1128
|
-
},
|
|
1161
|
+
}, ut = ({
|
|
1129
1162
|
children: e,
|
|
1130
1163
|
announcementTimeoutRef: r,
|
|
1131
1164
|
announcementDelay: t,
|
|
@@ -1134,13 +1167,13 @@ const me = "SET_ANNOUNCEMENT", he = "CLEAR_ANNOUNCEMENT", ct = {
|
|
|
1134
1167
|
onAnnouncementClear: c,
|
|
1135
1168
|
dispatch: n
|
|
1136
1169
|
}) => {
|
|
1137
|
-
clearTimeout(r.current), t ? r.current = setTimeout(
|
|
1170
|
+
clearTimeout(r.current), t ? r.current = setTimeout(ie, t, {
|
|
1138
1171
|
children: e,
|
|
1139
1172
|
clearAnnouncementDelay: a,
|
|
1140
1173
|
clearAnnouncementTimeoutRef: o,
|
|
1141
1174
|
onAnnouncementClear: c,
|
|
1142
1175
|
dispatch: n
|
|
1143
|
-
}) :
|
|
1176
|
+
}) : ie({
|
|
1144
1177
|
children: e,
|
|
1145
1178
|
clearAnnouncementDelay: a,
|
|
1146
1179
|
clearAnnouncementTimeoutRef: o,
|
|
@@ -1148,7 +1181,7 @@ const me = "SET_ANNOUNCEMENT", he = "CLEAR_ANNOUNCEMENT", ct = {
|
|
|
1148
1181
|
dispatch: n
|
|
1149
1182
|
});
|
|
1150
1183
|
};
|
|
1151
|
-
function
|
|
1184
|
+
function mt({
|
|
1152
1185
|
children: e,
|
|
1153
1186
|
className: r,
|
|
1154
1187
|
politeness: t,
|
|
@@ -1156,15 +1189,15 @@ function ut({
|
|
|
1156
1189
|
announcementDelay: o,
|
|
1157
1190
|
clearAnnouncementDelay: c,
|
|
1158
1191
|
onAnnouncementClear: n,
|
|
1159
|
-
visible:
|
|
1192
|
+
visible: s,
|
|
1160
1193
|
...d
|
|
1161
1194
|
}) {
|
|
1162
1195
|
const u = k(null), m = k(null), [g, h] = Ie(lt, {
|
|
1163
1196
|
announcement: null
|
|
1164
1197
|
});
|
|
1165
1198
|
let b = t;
|
|
1166
|
-
typeof b > "u" && (b = a ?
|
|
1167
|
-
|
|
1199
|
+
typeof b > "u" && (b = a ? st[a] : "assertive"), R(() => {
|
|
1200
|
+
ut({
|
|
1168
1201
|
announcementTimeoutRef: u,
|
|
1169
1202
|
announcementDelay: o,
|
|
1170
1203
|
children: e,
|
|
@@ -1180,9 +1213,9 @@ function ut({
|
|
|
1180
1213
|
n
|
|
1181
1214
|
]);
|
|
1182
1215
|
const p = i(r, {
|
|
1183
|
-
"sr-only": !
|
|
1216
|
+
"sr-only": !s
|
|
1184
1217
|
});
|
|
1185
|
-
return /* @__PURE__ */
|
|
1218
|
+
return /* @__PURE__ */ l(
|
|
1186
1219
|
"div",
|
|
1187
1220
|
{
|
|
1188
1221
|
"aria-live": b,
|
|
@@ -1194,33 +1227,33 @@ function ut({
|
|
|
1194
1227
|
);
|
|
1195
1228
|
}
|
|
1196
1229
|
/*!
|
|
1197
|
-
@versini/ui-liveregion v1.2.
|
|
1230
|
+
@versini/ui-liveregion v1.2.7
|
|
1198
1231
|
© 2024 gizmette.com
|
|
1199
1232
|
*/
|
|
1200
1233
|
try {
|
|
1201
1234
|
window.__VERSINI_UI_LIVEREGION__ || (window.__VERSINI_UI_LIVEREGION__ = {
|
|
1202
|
-
version: "1.2.
|
|
1203
|
-
buildTime: "12/30/2024
|
|
1235
|
+
version: "1.2.7",
|
|
1236
|
+
buildTime: "12/30/2024 07:48 PM EST",
|
|
1204
1237
|
homepage: "https://github.com/aversini/ui-components",
|
|
1205
1238
|
license: "MIT"
|
|
1206
1239
|
});
|
|
1207
1240
|
} catch {
|
|
1208
1241
|
}
|
|
1209
|
-
const
|
|
1242
|
+
const ht = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", gt = ({
|
|
1210
1243
|
mode: e
|
|
1211
1244
|
}) => i({
|
|
1212
1245
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
|
1213
1246
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
1214
1247
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
1215
1248
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
1216
|
-
}),
|
|
1249
|
+
}), bt = ({
|
|
1217
1250
|
focusMode: e
|
|
1218
1251
|
}) => i("focus:outline focus:outline-2 focus:outline-offset-2", {
|
|
1219
1252
|
"focus:outline-focus-dark": e === "dark",
|
|
1220
1253
|
"focus:outline-focus-light": e === "light",
|
|
1221
1254
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
1222
1255
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
1223
|
-
}),
|
|
1256
|
+
}), pt = ({
|
|
1224
1257
|
noBorder: e,
|
|
1225
1258
|
error: r
|
|
1226
1259
|
}) => i("border-2", {
|
|
@@ -1228,7 +1261,7 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1228
1261
|
"focus:border-border-dark": !e && r,
|
|
1229
1262
|
"border-border-error-dark": !e && r,
|
|
1230
1263
|
"border-transparent": e
|
|
1231
|
-
}),
|
|
1264
|
+
}), yt = ({
|
|
1232
1265
|
disabled: e,
|
|
1233
1266
|
raw: r,
|
|
1234
1267
|
error: t,
|
|
@@ -1252,7 +1285,7 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1252
1285
|
"text-copy-error-dark dark:text-copy-error-light": a === "system",
|
|
1253
1286
|
"text-copy-medium dark:text-copy-error-dark": a === "alt-system"
|
|
1254
1287
|
});
|
|
1255
|
-
},
|
|
1288
|
+
}, ft = ({
|
|
1256
1289
|
error: e,
|
|
1257
1290
|
raw: r,
|
|
1258
1291
|
mode: t,
|
|
@@ -1262,24 +1295,24 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1262
1295
|
return "";
|
|
1263
1296
|
if (a)
|
|
1264
1297
|
return i(
|
|
1265
|
-
|
|
1298
|
+
Q,
|
|
1266
1299
|
"absolute px-2 cursor-not-allowed opacity-50 font-medium"
|
|
1267
1300
|
);
|
|
1268
1301
|
if (!e)
|
|
1269
|
-
return i(
|
|
1302
|
+
return i(Q, "absolute px-2 font-medium", {
|
|
1270
1303
|
"text-copy-medium": t === "dark",
|
|
1271
1304
|
"text-copy-dark": t === "light",
|
|
1272
1305
|
"text-copy-dark dark:text-copy-medium": t === "system",
|
|
1273
1306
|
"text-copy-medium dark:text-copy-dark": t === "alt-system"
|
|
1274
1307
|
});
|
|
1275
1308
|
if (e)
|
|
1276
|
-
return i(
|
|
1309
|
+
return i(Q, "absolute px-2 font-medium", {
|
|
1277
1310
|
"text-copy-error-light": t === "dark",
|
|
1278
1311
|
"text-copy-error-dark": t === "light",
|
|
1279
1312
|
"text-copy-error-dark dark:text-copy-error-light": t === "system",
|
|
1280
1313
|
"dark:text-copy-error-dark text-copy-error-light": t === "alt-system"
|
|
1281
1314
|
});
|
|
1282
|
-
},
|
|
1315
|
+
}, kt = ({
|
|
1283
1316
|
className: e,
|
|
1284
1317
|
textAreaClassName: r,
|
|
1285
1318
|
raw: t,
|
|
@@ -1287,36 +1320,36 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1287
1320
|
disabled: o,
|
|
1288
1321
|
noBorder: c,
|
|
1289
1322
|
error: n,
|
|
1290
|
-
mode:
|
|
1323
|
+
mode: s
|
|
1291
1324
|
}) => {
|
|
1292
1325
|
const d = t ? e : i(
|
|
1293
1326
|
"relative flex w-full flex-col justify-center",
|
|
1294
|
-
|
|
1327
|
+
et,
|
|
1295
1328
|
e
|
|
1296
1329
|
), u = t ? i(r) : i(
|
|
1297
|
-
|
|
1330
|
+
me,
|
|
1298
1331
|
r,
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1332
|
+
ht(),
|
|
1333
|
+
gt({ mode: s }),
|
|
1334
|
+
bt({ focusMode: a }),
|
|
1335
|
+
pt({
|
|
1303
1336
|
noBorder: c,
|
|
1304
1337
|
error: n
|
|
1305
1338
|
}),
|
|
1306
1339
|
{
|
|
1307
1340
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
1308
1341
|
}
|
|
1309
|
-
), m = t ? void 0 : "sr-only", g =
|
|
1342
|
+
), m = t ? void 0 : "sr-only", g = yt({
|
|
1310
1343
|
disabled: o,
|
|
1311
1344
|
raw: t,
|
|
1312
1345
|
error: n,
|
|
1313
|
-
mode:
|
|
1314
|
-
}), h =
|
|
1346
|
+
mode: s
|
|
1347
|
+
}), h = ft({
|
|
1315
1348
|
error: n,
|
|
1316
1349
|
raw: t,
|
|
1317
|
-
mode:
|
|
1350
|
+
mode: s,
|
|
1318
1351
|
disabled: o
|
|
1319
|
-
}), b = t ? void 0 : i(
|
|
1352
|
+
}), b = t ? void 0 : i(tt, "absolute");
|
|
1320
1353
|
return {
|
|
1321
1354
|
wrapper: d,
|
|
1322
1355
|
textArea: u,
|
|
@@ -1325,7 +1358,7 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1325
1358
|
helperText: h,
|
|
1326
1359
|
rightElement: b
|
|
1327
1360
|
};
|
|
1328
|
-
},
|
|
1361
|
+
}, vt = ({
|
|
1329
1362
|
scrollHeight: e,
|
|
1330
1363
|
currentHeight: r,
|
|
1331
1364
|
currentLabelOffset: t = 0,
|
|
@@ -1333,15 +1366,15 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1333
1366
|
}) => {
|
|
1334
1367
|
let o, c;
|
|
1335
1368
|
if (e > 0 && e !== r) {
|
|
1336
|
-
const n = e - r,
|
|
1337
|
-
o = t + -1 * Math.sign(n) * (12 *
|
|
1369
|
+
const n = e - r, s = Math.abs(n / 24);
|
|
1370
|
+
o = t + -1 * Math.sign(n) * (12 * s), c = a + Math.sign(n) * (12 * s);
|
|
1338
1371
|
}
|
|
1339
1372
|
return {
|
|
1340
1373
|
labelOffset: o,
|
|
1341
1374
|
helperTextOffset: c,
|
|
1342
1375
|
scrollHeight: e
|
|
1343
1376
|
};
|
|
1344
|
-
},
|
|
1377
|
+
}, xt = E.forwardRef(
|
|
1345
1378
|
({
|
|
1346
1379
|
id: e,
|
|
1347
1380
|
name: r,
|
|
@@ -1350,7 +1383,7 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1350
1383
|
raw: o = !1,
|
|
1351
1384
|
className: c,
|
|
1352
1385
|
textAreaClassName: n,
|
|
1353
|
-
mode:
|
|
1386
|
+
mode: s = "system",
|
|
1354
1387
|
focusMode: d = "system",
|
|
1355
1388
|
value: u,
|
|
1356
1389
|
defaultValue: m,
|
|
@@ -1359,15 +1392,15 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1359
1392
|
labelId: b,
|
|
1360
1393
|
helperText: p = "",
|
|
1361
1394
|
helperTextOnFocus: w = !1,
|
|
1362
|
-
rightElement:
|
|
1395
|
+
rightElement: C,
|
|
1363
1396
|
onChange: B,
|
|
1364
|
-
onFocus:
|
|
1365
|
-
onBlur:
|
|
1366
|
-
...
|
|
1367
|
-
},
|
|
1368
|
-
const f = k(null),
|
|
1397
|
+
onFocus: z,
|
|
1398
|
+
onBlur: L,
|
|
1399
|
+
...G
|
|
1400
|
+
}, P) => {
|
|
1401
|
+
const f = k(null), be = at([P, f]), [pe, V] = it(), D = k(80), K = k(-25), A = k(null), Z = k(30), W = k(null), I = ct({ id: e, prefix: `${me}-` }), [ye, fe] = $(0), [ke, ee] = $(
|
|
1369
1402
|
!!(!w && p)
|
|
1370
|
-
),
|
|
1403
|
+
), ve = `${r} error, ${p}`, T = kt({
|
|
1371
1404
|
className: c,
|
|
1372
1405
|
textAreaClassName: n,
|
|
1373
1406
|
error: a,
|
|
@@ -1375,8 +1408,8 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1375
1408
|
focusMode: d,
|
|
1376
1409
|
disabled: g,
|
|
1377
1410
|
noBorder: h,
|
|
1378
|
-
mode:
|
|
1379
|
-
}), [v,
|
|
1411
|
+
mode: s
|
|
1412
|
+
}), [v, xe] = nt({
|
|
1380
1413
|
value: u,
|
|
1381
1414
|
initialControlledDelay: 20,
|
|
1382
1415
|
defaultValue: m,
|
|
@@ -1388,116 +1421,119 @@ const mt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1388
1421
|
});
|
|
1389
1422
|
}
|
|
1390
1423
|
}), _e = (y) => {
|
|
1391
|
-
|
|
1392
|
-
}, xe = (y) => {
|
|
1393
|
-
w && p && Z(!0), H && H(y);
|
|
1424
|
+
xe(y.target.value);
|
|
1394
1425
|
}, we = (y) => {
|
|
1395
|
-
w && p &&
|
|
1426
|
+
w && p && ee(!0), z && z(y);
|
|
1427
|
+
}, Ee = (y) => {
|
|
1428
|
+
w && p && !v && ee(!1), L && L(y);
|
|
1396
1429
|
};
|
|
1397
|
-
return
|
|
1398
|
-
|
|
1399
|
-
}, [
|
|
1430
|
+
return O(() => {
|
|
1431
|
+
V && V.width && fe(V.width + 18 + 10);
|
|
1432
|
+
}, [V]), O(() => {
|
|
1400
1433
|
o || f && f.current && v !== void 0 && (f.current.style.height = "inherit", f.current.style.height = f.current.scrollHeight + "px");
|
|
1401
|
-
}, [v, o]),
|
|
1434
|
+
}, [v, o]), O(() => {
|
|
1402
1435
|
o || setTimeout(() => {
|
|
1403
1436
|
var y;
|
|
1404
|
-
(y =
|
|
1437
|
+
(y = A == null ? void 0 : A.current) == null || y.style.setProperty(
|
|
1405
1438
|
"--av-text-area-wrapper-transition",
|
|
1406
1439
|
v ? "none" : "all 0.2s ease-out"
|
|
1407
1440
|
);
|
|
1408
1441
|
}, 0);
|
|
1409
|
-
}, [v, o]),
|
|
1410
|
-
var y,
|
|
1442
|
+
}, [v, o]), O(() => {
|
|
1443
|
+
var y, te;
|
|
1411
1444
|
if (!o && f && f.current && v !== void 0) {
|
|
1412
|
-
const { labelOffset: j, helperTextOffset: q, scrollHeight:
|
|
1445
|
+
const { labelOffset: j, helperTextOffset: q, scrollHeight: Te } = vt({
|
|
1413
1446
|
scrollHeight: f.current.scrollHeight,
|
|
1414
1447
|
currentHeight: D.current,
|
|
1415
|
-
currentLabelOffset:
|
|
1416
|
-
currentHelperTextOffset:
|
|
1448
|
+
currentLabelOffset: K.current,
|
|
1449
|
+
currentHelperTextOffset: Z.current
|
|
1417
1450
|
});
|
|
1418
|
-
j && (
|
|
1451
|
+
j && (K.current = j, (y = A == null ? void 0 : A.current) == null || y.style.setProperty(
|
|
1419
1452
|
"--av-text-area-label",
|
|
1420
1453
|
`${j}px`
|
|
1421
|
-
)), q && (
|
|
1454
|
+
)), q && (Z.current = q, (te = W == null ? void 0 : W.current) == null || te.style.setProperty(
|
|
1422
1455
|
"--av-text-area-helper-text",
|
|
1423
1456
|
`${q}px`
|
|
1424
|
-
)), D.current =
|
|
1457
|
+
)), D.current = Te || D.current;
|
|
1425
1458
|
}
|
|
1426
|
-
}, [v, o]), /* @__PURE__ */
|
|
1427
|
-
/* @__PURE__ */
|
|
1459
|
+
}, [v, o]), /* @__PURE__ */ _("div", { className: T.wrapper, children: [
|
|
1460
|
+
/* @__PURE__ */ l(
|
|
1428
1461
|
"label",
|
|
1429
1462
|
{
|
|
1430
1463
|
htmlFor: I,
|
|
1431
1464
|
id: b,
|
|
1432
|
-
className:
|
|
1465
|
+
className: T.accessibleLabel,
|
|
1433
1466
|
children: t
|
|
1434
1467
|
}
|
|
1435
1468
|
),
|
|
1436
|
-
/* @__PURE__ */
|
|
1469
|
+
/* @__PURE__ */ l(
|
|
1437
1470
|
"textarea",
|
|
1438
1471
|
{
|
|
1439
|
-
ref:
|
|
1472
|
+
ref: be,
|
|
1440
1473
|
id: I,
|
|
1441
1474
|
name: r,
|
|
1442
1475
|
disabled: g,
|
|
1443
1476
|
placeholder: o ? void 0 : " ",
|
|
1444
|
-
className:
|
|
1477
|
+
className: T.textArea,
|
|
1445
1478
|
rows: 1,
|
|
1446
1479
|
...p && { "aria-describedby": `${I}-helper` },
|
|
1447
1480
|
...a && { "aria-invalid": "true" },
|
|
1448
|
-
...
|
|
1481
|
+
...C && !o && { style: { paddingRight: ye } },
|
|
1449
1482
|
value: v,
|
|
1450
1483
|
onChange: _e,
|
|
1451
|
-
onFocus:
|
|
1452
|
-
onBlur:
|
|
1453
|
-
...
|
|
1484
|
+
onFocus: we,
|
|
1485
|
+
onBlur: Ee,
|
|
1486
|
+
...G
|
|
1454
1487
|
}
|
|
1455
1488
|
),
|
|
1456
|
-
!o && /* @__PURE__ */
|
|
1489
|
+
!o && /* @__PURE__ */ l(
|
|
1457
1490
|
"label",
|
|
1458
1491
|
{
|
|
1459
|
-
ref:
|
|
1492
|
+
ref: A,
|
|
1460
1493
|
"aria-hidden": !0,
|
|
1461
1494
|
htmlFor: I,
|
|
1462
|
-
className:
|
|
1495
|
+
className: T.visibleLabel,
|
|
1463
1496
|
children: t
|
|
1464
1497
|
}
|
|
1465
1498
|
),
|
|
1466
|
-
|
|
1499
|
+
ke && /* @__PURE__ */ l(
|
|
1467
1500
|
"div",
|
|
1468
1501
|
{
|
|
1469
1502
|
ref: W,
|
|
1470
1503
|
id: `${I}-helper`,
|
|
1471
|
-
className:
|
|
1504
|
+
className: T.helperText,
|
|
1472
1505
|
children: p
|
|
1473
1506
|
}
|
|
1474
1507
|
),
|
|
1475
|
-
|
|
1508
|
+
C && /* @__PURE__ */ l(
|
|
1476
1509
|
"div",
|
|
1477
1510
|
{
|
|
1478
|
-
ref:
|
|
1479
|
-
className:
|
|
1480
|
-
children:
|
|
1511
|
+
ref: pe,
|
|
1512
|
+
className: T.rightElement,
|
|
1513
|
+
children: C
|
|
1481
1514
|
}
|
|
1482
1515
|
),
|
|
1483
|
-
a && p && /* @__PURE__ */
|
|
1516
|
+
a && p && /* @__PURE__ */ l(mt, { politeness: "polite", clearAnnouncementDelay: 500, children: ve })
|
|
1484
1517
|
] });
|
|
1485
1518
|
}
|
|
1486
1519
|
);
|
|
1487
|
-
|
|
1520
|
+
xt.displayName = "TextArea";
|
|
1488
1521
|
export {
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1522
|
+
$t as AppContext,
|
|
1523
|
+
St as E,
|
|
1524
|
+
Rt as HistoryContext,
|
|
1525
|
+
xt as Le,
|
|
1526
|
+
Ct as SERVICE_TYPES,
|
|
1527
|
+
Ht as TagsContext,
|
|
1528
|
+
Mt as be,
|
|
1529
|
+
Bt as ce,
|
|
1530
|
+
M as f,
|
|
1531
|
+
Vt as ge,
|
|
1532
|
+
Nt as h,
|
|
1533
|
+
Ot as he,
|
|
1534
|
+
Lt as ne,
|
|
1535
|
+
Ze as oe,
|
|
1500
1536
|
It as restCall,
|
|
1501
|
-
|
|
1502
|
-
|
|
1537
|
+
zt as se,
|
|
1538
|
+
At as serviceCall
|
|
1503
1539
|
};
|