@versini/sassysaint 5.4.3 → 5.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{LazyApp.BuqWs8m7.js → LazyApp.C-ghWo2j.js} +351 -297
- package/dist/chunks/{LazyHeader.D57r_E9S.js → LazyHeader.CHy11tdF.js} +792 -737
- package/dist/chunks/{LazyMarkdownWithExtra.DTnPCsyx.js → LazyMarkdownWithExtra.CRBiqKQo.js} +3 -3
- package/dist/chunks/{LazyMessageAssistant.D5CSB7UV.js → LazyMessageAssistant.ByDEgy53.js} +195 -181
- package/dist/chunks/{index.CnlfkUg1.js → index.CTGK59bg.js} +359 -307
- package/dist/chunks/{index.C2RuFHK-.js → index.Cul7Y08v.js} +644 -543
- package/dist/chunks/index.DaIz2ggm.CWKMlVvg.js +99 -0
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +4 -4
- package/dist/chunks/index.MEUopFRx.6qFMhBMt.js +0 -258
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as x, jsx as c, Fragment as
|
|
2
|
-
import { g as Se } from "./index.
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
const
|
|
1
|
+
import { jsxs as x, jsx as c, Fragment as Te } from "react/jsx-runtime";
|
|
2
|
+
import { g as Se } from "./index.Cul7Y08v.js";
|
|
3
|
+
import O, { useSyncExternalStore as Ie, useCallback as P, useEffect as A, useContext as R, useRef as f, useState as $, useLayoutEffect as U, useMemo as ie, useId as Ce, useReducer as $e } from "react";
|
|
4
|
+
import s from "clsx";
|
|
5
|
+
const $t = ({
|
|
6
6
|
className: e,
|
|
7
7
|
viewBox: r,
|
|
8
8
|
spacing: t,
|
|
@@ -31,45 +31,45 @@ const At = ({
|
|
|
31
31
|
]
|
|
32
32
|
}
|
|
33
33
|
);
|
|
34
|
-
function
|
|
34
|
+
function se(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), se(e, t);
|
|
42
|
+
}, Ae = (e) => {
|
|
43
|
+
window.localStorage.removeItem(e), se(e, null);
|
|
44
44
|
}, ae = (e) => window.localStorage.getItem(e), Re = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
45
|
-
function
|
|
45
|
+
function At({
|
|
46
46
|
key: e,
|
|
47
47
|
initialValue: r
|
|
48
48
|
}) {
|
|
49
|
-
const t =
|
|
50
|
-
(
|
|
49
|
+
const t = Ie(Re, () => ae(e)), a = P(
|
|
50
|
+
(i) => {
|
|
51
51
|
try {
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
} catch (
|
|
55
|
-
console.warn(
|
|
52
|
+
const l = typeof i == "function" ? i(JSON.parse(t)) : i;
|
|
53
|
+
l == null ? Ae(e) : re(e, l);
|
|
54
|
+
} catch (l) {
|
|
55
|
+
console.warn(l);
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
[e, t]
|
|
59
|
-
), o =
|
|
59
|
+
), o = P(() => {
|
|
60
60
|
a(r);
|
|
61
|
-
}, [r, a]), n =
|
|
61
|
+
}, [r, a]), n = P(() => {
|
|
62
62
|
a(null);
|
|
63
63
|
}, [a]);
|
|
64
|
-
return
|
|
64
|
+
return A(() => {
|
|
65
65
|
try {
|
|
66
66
|
ae(e) === null && typeof r < "u" && re(e, r);
|
|
67
|
-
} catch (
|
|
68
|
-
console.warn(
|
|
67
|
+
} catch (i) {
|
|
68
|
+
console.warn(i);
|
|
69
69
|
}
|
|
70
70
|
}, [e, r]), [t ? JSON.parse(t) : null, a, o, n];
|
|
71
71
|
}
|
|
72
|
-
const
|
|
72
|
+
const k = {
|
|
73
73
|
GET_LOCATION: `query GetLocation($latitude: Float!, $longitude: Float!) {
|
|
74
74
|
location(latitude: $latitude, longitude: $longitude) {
|
|
75
75
|
country
|
|
@@ -153,42 +153,42 @@ const _ = {
|
|
|
153
153
|
}`
|
|
154
154
|
}, Rt = {
|
|
155
155
|
GET_LOCATION: {
|
|
156
|
-
schema:
|
|
156
|
+
schema: k.GET_LOCATION,
|
|
157
157
|
method: "location"
|
|
158
158
|
},
|
|
159
159
|
GET_CHATS: {
|
|
160
|
-
schema:
|
|
160
|
+
schema: k.GET_CHATS,
|
|
161
161
|
method: "chats"
|
|
162
162
|
},
|
|
163
163
|
GET_CHATS_STATS: {
|
|
164
|
-
schema:
|
|
164
|
+
schema: k.GET_CHATS_STATS,
|
|
165
165
|
method: "chatsStats"
|
|
166
166
|
},
|
|
167
167
|
GET_CHAT: {
|
|
168
|
-
schema:
|
|
168
|
+
schema: k.GET_CHAT,
|
|
169
169
|
method: "chatById"
|
|
170
170
|
},
|
|
171
171
|
DELETE_CHAT: {
|
|
172
|
-
schema:
|
|
172
|
+
schema: k.DELETE_CHAT,
|
|
173
173
|
method: "deleteChat"
|
|
174
174
|
},
|
|
175
175
|
ABOUT: {
|
|
176
|
-
schema:
|
|
176
|
+
schema: k.ABOUT,
|
|
177
177
|
method: "about"
|
|
178
178
|
},
|
|
179
179
|
GET_USER_PREFERENCES: {
|
|
180
|
-
schema:
|
|
180
|
+
schema: k.GET_USER_PREFERENCES,
|
|
181
181
|
method: "getUserPreferences"
|
|
182
182
|
},
|
|
183
183
|
SET_USER_PREFERENCES: {
|
|
184
|
-
schema:
|
|
184
|
+
schema: k.SET_USER_PREFERENCES,
|
|
185
185
|
method: "setUserPreferences"
|
|
186
186
|
}
|
|
187
|
-
},
|
|
187
|
+
}, le = process.env.PUBLIC_SASSY_API_SERVER_URL, Be = async ({
|
|
188
188
|
query: e,
|
|
189
189
|
data: r,
|
|
190
190
|
headers: t = {}
|
|
191
|
-
}) => await fetch(`${
|
|
191
|
+
}) => await fetch(`${le}/graphql`, {
|
|
192
192
|
method: "POST",
|
|
193
193
|
credentials: "include",
|
|
194
194
|
headers: {
|
|
@@ -216,23 +216,23 @@ const _ = {
|
|
|
216
216
|
});
|
|
217
217
|
if (n.status !== 200)
|
|
218
218
|
return { status: n.status, data: [] };
|
|
219
|
-
const { data:
|
|
219
|
+
const { data: i, errors: l } = await n.json();
|
|
220
220
|
return {
|
|
221
221
|
status: n.status,
|
|
222
|
-
data:
|
|
223
|
-
errors:
|
|
222
|
+
data: i[r.method],
|
|
223
|
+
errors: l
|
|
224
224
|
};
|
|
225
225
|
} catch (o) {
|
|
226
226
|
return console.error(o), { status: 500, data: [] };
|
|
227
227
|
}
|
|
228
|
-
},
|
|
228
|
+
}, Vt = async ({
|
|
229
229
|
accessToken: e,
|
|
230
230
|
name: r,
|
|
231
231
|
data: t,
|
|
232
232
|
method: a = "POST"
|
|
233
233
|
}) => {
|
|
234
234
|
const o = `Bearer ${e}`;
|
|
235
|
-
return await fetch(`${
|
|
235
|
+
return await fetch(`${le}/api/${r}`, {
|
|
236
236
|
method: a,
|
|
237
237
|
credentials: "include",
|
|
238
238
|
headers: {
|
|
@@ -243,19 +243,32 @@ const _ = {
|
|
|
243
243
|
});
|
|
244
244
|
};
|
|
245
245
|
/*!
|
|
246
|
-
@versini/ui-table v1.
|
|
246
|
+
@versini/ui-table v1.5.1
|
|
247
247
|
© 2024 gizmette.com
|
|
248
248
|
*/
|
|
249
249
|
try {
|
|
250
250
|
window.__VERSINI_UI_TABLE__ || (window.__VERSINI_UI_TABLE__ = {
|
|
251
|
-
version: "1.
|
|
252
|
-
buildTime: "12/
|
|
251
|
+
version: "1.5.1",
|
|
252
|
+
buildTime: "12/27/2024 01:35 PM EST",
|
|
253
253
|
homepage: "https://github.com/aversini/ui-components",
|
|
254
254
|
license: "MIT"
|
|
255
255
|
});
|
|
256
256
|
} catch {
|
|
257
257
|
}
|
|
258
|
-
|
|
258
|
+
/*!
|
|
259
|
+
@versini/ui-spacing v1.1.0
|
|
260
|
+
© 2024 gizmette.com
|
|
261
|
+
*/
|
|
262
|
+
try {
|
|
263
|
+
window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
|
|
264
|
+
version: "1.1.0",
|
|
265
|
+
buildTime: "12/27/2024 01:35 PM EST",
|
|
266
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
267
|
+
license: "MIT"
|
|
268
|
+
});
|
|
269
|
+
} catch {
|
|
270
|
+
}
|
|
271
|
+
const Ve = (e) => {
|
|
259
272
|
let r = "";
|
|
260
273
|
if (typeof e == "number" || typeof e == "string")
|
|
261
274
|
r = "m-" + e;
|
|
@@ -264,10 +277,10 @@ const He = (e) => {
|
|
|
264
277
|
(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
278
|
}
|
|
266
279
|
return r;
|
|
267
|
-
},
|
|
280
|
+
}, z = "thead", Y = "tfoot", E = "tbody", L = {
|
|
268
281
|
ASC: "asc",
|
|
269
282
|
DESC: "desc"
|
|
270
|
-
},
|
|
283
|
+
}, He = ({
|
|
271
284
|
mode: e,
|
|
272
285
|
className: r,
|
|
273
286
|
wrapperClassName: t,
|
|
@@ -275,9 +288,9 @@ const He = (e) => {
|
|
|
275
288
|
stickyFooter: o,
|
|
276
289
|
spacing: n
|
|
277
290
|
}) => ({
|
|
278
|
-
wrapper:
|
|
291
|
+
wrapper: s(
|
|
279
292
|
"not-prose relative w-full rounded-lg shadow-md",
|
|
280
|
-
|
|
293
|
+
Ve(n),
|
|
281
294
|
{
|
|
282
295
|
"overflow-x-auto": !a && !o,
|
|
283
296
|
"overflow-y-scroll": a || o,
|
|
@@ -288,72 +301,86 @@ const He = (e) => {
|
|
|
288
301
|
},
|
|
289
302
|
t
|
|
290
303
|
),
|
|
291
|
-
table:
|
|
304
|
+
table: s("my-0 w-full text-left text-sm", r, {
|
|
292
305
|
"text-copy-light": e === "dark",
|
|
293
306
|
"text-copy-dark": e === "light",
|
|
294
307
|
"text-copy-light dark:text-copy-dark": e === "system",
|
|
295
308
|
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
296
309
|
}),
|
|
297
|
-
caption:
|
|
310
|
+
caption: s("py-2 text-sm font-bold", {
|
|
298
311
|
"text-copy-light": e === "dark",
|
|
299
312
|
"text-copy-dark": e === "light",
|
|
300
313
|
"text-copy-light dark:text-copy-dark": e === "system",
|
|
301
314
|
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
302
315
|
})
|
|
303
|
-
}),
|
|
316
|
+
}), Me = ({
|
|
304
317
|
className: e,
|
|
305
318
|
stickyHeader: r,
|
|
306
319
|
mode: t
|
|
307
|
-
}) =>
|
|
320
|
+
}) => s(e, {
|
|
308
321
|
"sticky top-0 z-10": r,
|
|
309
322
|
"shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": r && t === "dark",
|
|
310
323
|
"shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem] dark:shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem]": r && t === "system",
|
|
311
324
|
"shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem]": r && t === "light",
|
|
312
325
|
"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"
|
|
313
|
-
}),
|
|
326
|
+
}), Ue = ({
|
|
314
327
|
className: e,
|
|
315
328
|
stickyFooter: r,
|
|
316
329
|
mode: t
|
|
317
|
-
}) =>
|
|
330
|
+
}) => s(e, {
|
|
318
331
|
"sticky bottom-0 z-10": r,
|
|
319
332
|
"shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem]": r && t === "dark",
|
|
320
333
|
"shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem] dark:shadow-[rgb(65_65_65_/30%)_0_-0.5rem_1rem]": r && t === "system",
|
|
321
334
|
"shadow-[rgb(65_65_65_/30%)_0_-0.5rem_1rem]": r && t === "light",
|
|
322
335
|
"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
|
-
}),
|
|
336
|
+
}), Le = ({
|
|
324
337
|
mode: e,
|
|
325
338
|
className: r,
|
|
326
339
|
cellWrapper: t
|
|
327
|
-
}) => t ===
|
|
340
|
+
}) => t === z || t === Y ? s({
|
|
328
341
|
"bg-table-head-dark": e === "dark",
|
|
329
342
|
"bg-table-head-light": e === "light",
|
|
330
343
|
"bg-table-head-dark dark:bg-table-head-light": e === "system",
|
|
331
344
|
"bg-table-head-light dark:bg-table-head-dark": e === "alt-system"
|
|
332
|
-
}) :
|
|
345
|
+
}) : s("border-b last:border-0", r, {
|
|
333
346
|
"border-table-dark": e === "dark",
|
|
334
|
-
"odd:bg-table-dark-odd even:bg-table-dark-even": t ===
|
|
347
|
+
"odd:bg-table-dark-odd even:bg-table-dark-even": t === E && e === "dark",
|
|
335
348
|
"border-table-light": e === "light",
|
|
336
|
-
"odd:bg-table-light-odd even:bg-table-light-even": t ===
|
|
349
|
+
"odd:bg-table-light-odd even:bg-table-light-even": t === E && e === "light",
|
|
337
350
|
"border-table-dark dark:border-table-light": e === "system",
|
|
338
|
-
"odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": t ===
|
|
351
|
+
"odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": t === E && e === "system",
|
|
339
352
|
"border-table-light dark:border-table-dark": e === "alt-system",
|
|
340
|
-
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": t ===
|
|
341
|
-
}),
|
|
353
|
+
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": t === E && e === "alt-system"
|
|
354
|
+
}), Pe = ({
|
|
342
355
|
cellWrapper: e,
|
|
343
356
|
className: r,
|
|
344
357
|
compact: t,
|
|
345
358
|
mode: a
|
|
346
|
-
}) =>
|
|
359
|
+
}) => s(r, {
|
|
347
360
|
"text-copy-light": a === "dark",
|
|
348
361
|
"text-copy-dark": a === "light",
|
|
349
362
|
"text-copy-light dark:text-copy-dark": a === "system",
|
|
350
363
|
"text-copy-dark dark:text-copy-light": a === "alt-system",
|
|
351
|
-
"px-4 py-3": !t && (e ===
|
|
352
|
-
"p-4": !t && e ===
|
|
353
|
-
"px-
|
|
354
|
-
}),
|
|
364
|
+
"px-4 py-3": !t && (e === z || e === Y),
|
|
365
|
+
"p-4": !t && e === E,
|
|
366
|
+
"px-2 py-1.5": t
|
|
367
|
+
}), Oe = ({
|
|
355
368
|
buttonClassName: e
|
|
356
|
-
}) =>
|
|
369
|
+
}) => s("rounded-none text-sm", e), oe = "av-button";
|
|
370
|
+
/*!
|
|
371
|
+
@versini/ui-spacing v1.1.0
|
|
372
|
+
© 2024 gizmette.com
|
|
373
|
+
*/
|
|
374
|
+
try {
|
|
375
|
+
window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
|
|
376
|
+
version: "1.1.0",
|
|
377
|
+
buildTime: "12/27/2024 01:35 PM EST",
|
|
378
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
379
|
+
license: "MIT"
|
|
380
|
+
});
|
|
381
|
+
} catch {
|
|
382
|
+
}
|
|
383
|
+
const ze = (e) => {
|
|
357
384
|
let r = "";
|
|
358
385
|
if (typeof e == "number" || typeof e == "string")
|
|
359
386
|
r = "m-" + e;
|
|
@@ -362,29 +389,29 @@ const He = (e) => {
|
|
|
362
389
|
(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(" ");
|
|
363
390
|
}
|
|
364
391
|
return r;
|
|
365
|
-
}, ce = "icon",
|
|
392
|
+
}, ce = "icon", Ge = "button", Fe = "link", De = ({
|
|
366
393
|
type: e,
|
|
367
394
|
size: r,
|
|
368
395
|
labelRight: t,
|
|
369
396
|
labelLeft: a,
|
|
370
397
|
align: o
|
|
371
398
|
}) => {
|
|
372
|
-
const n = "text-sm font-medium max-h-8 py-0",
|
|
399
|
+
const n = "text-sm font-medium max-h-8 py-0", i = "text-base font-medium max-h-9 py-1", l = "text-lg font-medium max-h-12 py-2";
|
|
373
400
|
switch (e) {
|
|
374
|
-
case
|
|
375
|
-
return
|
|
401
|
+
case Ge:
|
|
402
|
+
return s("px-4", {
|
|
376
403
|
[n]: r === "small",
|
|
377
|
-
[
|
|
378
|
-
[
|
|
404
|
+
[i]: r === "medium",
|
|
405
|
+
[l]: r === "large"
|
|
379
406
|
});
|
|
380
|
-
case
|
|
381
|
-
return
|
|
407
|
+
case Fe:
|
|
408
|
+
return s("px-4 text-center", {
|
|
382
409
|
[n]: r === "small",
|
|
383
|
-
[
|
|
384
|
-
[
|
|
410
|
+
[i]: r === "medium",
|
|
411
|
+
[l]: r === "large"
|
|
385
412
|
});
|
|
386
413
|
case ce:
|
|
387
|
-
return
|
|
414
|
+
return s("inline-flex items-center", {
|
|
388
415
|
"justify-center": o === "center",
|
|
389
416
|
"justify-start": o === "left",
|
|
390
417
|
"justify-end": o === "right",
|
|
@@ -396,7 +423,7 @@ const He = (e) => {
|
|
|
396
423
|
"h-12 px-4 text-lg font-medium": r === "large" && (t || a)
|
|
397
424
|
});
|
|
398
425
|
}
|
|
399
|
-
},
|
|
426
|
+
}, je = ({
|
|
400
427
|
mode: e,
|
|
401
428
|
noBackground: r,
|
|
402
429
|
noTruncate: t,
|
|
@@ -405,7 +432,7 @@ const He = (e) => {
|
|
|
405
432
|
if (r)
|
|
406
433
|
return "not-prose rounded-full";
|
|
407
434
|
if (a === "primary")
|
|
408
|
-
return
|
|
435
|
+
return s("not-prose rounded-full", {
|
|
409
436
|
truncate: !t,
|
|
410
437
|
"bg-action-dark text-copy-light": e === "dark",
|
|
411
438
|
"bg-action-light text-copy-lighter": e === "light",
|
|
@@ -413,7 +440,7 @@ const He = (e) => {
|
|
|
413
440
|
"bg-action-light text-copy-lighter dark:bg-action-dark dark:text-copy-light": e === "alt-system"
|
|
414
441
|
});
|
|
415
442
|
if (a === "secondary")
|
|
416
|
-
return
|
|
443
|
+
return s("not-prose rounded-full", {
|
|
417
444
|
truncate: !t,
|
|
418
445
|
"bg-action-dark text-copy-light": e === "light",
|
|
419
446
|
"bg-action-light text-copy-lighter": e === "dark",
|
|
@@ -421,14 +448,14 @@ const He = (e) => {
|
|
|
421
448
|
"bg-action-light text-copy-lighter dark:bg-action-dark dark:text-copy-light": e === "system"
|
|
422
449
|
});
|
|
423
450
|
if (a === "danger")
|
|
424
|
-
return
|
|
451
|
+
return s("not-prose rounded-full", {
|
|
425
452
|
truncate: !t,
|
|
426
453
|
"bg-action-danger-dark text-copy-light": e === "dark",
|
|
427
454
|
"bg-action-danger-light text-copy-lighter": e === "light",
|
|
428
455
|
"bg-action-danger-dark text-copy-light dark:bg-action-danger-light dark:text-copy-lighter": e === "system",
|
|
429
456
|
"bg-action-danger-light text-copy-lighter dark:bg-action-danger-dark dark:text-copy-light": e === "alt-system"
|
|
430
457
|
});
|
|
431
|
-
},
|
|
458
|
+
}, We = ({
|
|
432
459
|
mode: e,
|
|
433
460
|
disabled: r,
|
|
434
461
|
variant: t
|
|
@@ -436,21 +463,21 @@ const He = (e) => {
|
|
|
436
463
|
if (r)
|
|
437
464
|
return "";
|
|
438
465
|
if (t === "primary")
|
|
439
|
-
return
|
|
466
|
+
return s("hover:text-copy-light-hover", {
|
|
440
467
|
"hover:bg-action-dark-hover": e === "dark",
|
|
441
468
|
"hover:bg-action-light-hover": e === "light",
|
|
442
469
|
"hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "system",
|
|
443
470
|
"hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "alt-system"
|
|
444
471
|
});
|
|
445
472
|
if (t === "secondary")
|
|
446
|
-
return
|
|
473
|
+
return s("hover:text-copy-light-hover", {
|
|
447
474
|
"hover:bg-action-dark-hover": e === "light",
|
|
448
475
|
"hover:bg-action-light-hover": e === "dark",
|
|
449
476
|
"hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "alt-system",
|
|
450
477
|
"hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "system"
|
|
451
478
|
});
|
|
452
479
|
if (t === "danger")
|
|
453
|
-
return
|
|
480
|
+
return s("hover:text-copy-light-hover", {
|
|
454
481
|
"hover:bg-action-danger-dark-hover": e === "dark",
|
|
455
482
|
"hover:bg-action-danger-light-hover": e === "light",
|
|
456
483
|
"hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
|
|
@@ -464,21 +491,21 @@ const He = (e) => {
|
|
|
464
491
|
if (r)
|
|
465
492
|
return "";
|
|
466
493
|
if (t === "primary")
|
|
467
|
-
return
|
|
494
|
+
return s("active:text-copy-light-active", {
|
|
468
495
|
"active:bg-action-dark-active": e === "dark",
|
|
469
496
|
"active:bg-action-light-active": e === "light",
|
|
470
497
|
"active:bg-action-dark-active dark:active:bg-action-light-active": e === "system",
|
|
471
498
|
"active:bg-action-light-active dark:active:bg-action-dark-active": e === "alt-system"
|
|
472
499
|
});
|
|
473
500
|
if (t === "secondary")
|
|
474
|
-
return
|
|
501
|
+
return s("active:text-copy-light-active", {
|
|
475
502
|
"active:bg-action-dark-active": e === "light",
|
|
476
503
|
"active:bg-action-light-active": e === "dark",
|
|
477
504
|
"active:bg-action-dark-active dark:active:bg-action-light-active": e === "alt-system",
|
|
478
505
|
"active:bg-action-light-active dark:active:bg-action-dark-active": e === "system"
|
|
479
506
|
});
|
|
480
507
|
if (t === "danger")
|
|
481
|
-
return
|
|
508
|
+
return s("active:text-copy-lighter-active", {
|
|
482
509
|
"active:bg-action-danger-dark-active": e === "dark",
|
|
483
510
|
"active:bg-action-danger-light-active": e === "light",
|
|
484
511
|
"active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
|
|
@@ -492,40 +519,40 @@ const He = (e) => {
|
|
|
492
519
|
if (r)
|
|
493
520
|
return "border border-transparent";
|
|
494
521
|
if (t === "primary")
|
|
495
|
-
return
|
|
522
|
+
return s("border", {
|
|
496
523
|
"border-border-dark": e === "dark",
|
|
497
524
|
"border-border-accent": e === "light",
|
|
498
525
|
"border-border-dark dark:border-border-accent": e === "system",
|
|
499
526
|
"border-border-accent dark:border-border-dark": e === "alt-system"
|
|
500
527
|
});
|
|
501
528
|
if (t === "secondary")
|
|
502
|
-
return
|
|
529
|
+
return s("border", {
|
|
503
530
|
"border-border-dark": e === "light",
|
|
504
531
|
"border-border-accent": e === "dark",
|
|
505
532
|
"border-border-dark dark:border-border-accent": e === "alt-system",
|
|
506
533
|
"border-border-accent dark:border-border-dark": e === "system"
|
|
507
534
|
});
|
|
508
535
|
if (t === "danger")
|
|
509
|
-
return
|
|
536
|
+
return s("border", {
|
|
510
537
|
"border-border-danger-dark": e === "dark",
|
|
511
538
|
"border-border-danger-medium": e === "light",
|
|
512
539
|
"border-border-danger-dark dark:border-border-danger-medium": e === "system",
|
|
513
540
|
"border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
|
|
514
541
|
});
|
|
515
|
-
}, Qe = ({ focusMode: e }) =>
|
|
542
|
+
}, Qe = ({ focusMode: e }) => s("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
516
543
|
"focus:outline-focus-dark": e === "dark",
|
|
517
544
|
"focus:outline-focus-light": e === "light",
|
|
518
545
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
519
546
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
520
|
-
}),
|
|
547
|
+
}), Ye = ({
|
|
521
548
|
type: e,
|
|
522
549
|
className: r,
|
|
523
550
|
raw: t,
|
|
524
551
|
mode: a,
|
|
525
552
|
focusMode: o,
|
|
526
553
|
disabled: n,
|
|
527
|
-
fullWidth:
|
|
528
|
-
size:
|
|
554
|
+
fullWidth: i,
|
|
555
|
+
size: l,
|
|
529
556
|
noBorder: d,
|
|
530
557
|
labelRight: m,
|
|
531
558
|
labelLeft: u,
|
|
@@ -534,31 +561,31 @@ const He = (e) => {
|
|
|
534
561
|
variant: h,
|
|
535
562
|
noTruncate: b,
|
|
536
563
|
align: w
|
|
537
|
-
}) => (h || (h = "primary"), t ?
|
|
564
|
+
}) => (h || (h = "primary"), t ? s(oe, r) : s(
|
|
538
565
|
oe,
|
|
539
566
|
r,
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
De({ type: e, size:
|
|
567
|
+
ze(p),
|
|
568
|
+
je({ mode: a, variant: h, noBackground: g, noTruncate: b }),
|
|
569
|
+
De({ type: e, size: l, labelRight: m, labelLeft: u, align: w }),
|
|
543
570
|
Je({ mode: a, variant: h, noBorder: d }),
|
|
544
571
|
Qe({ focusMode: o }),
|
|
545
|
-
|
|
572
|
+
We({ mode: a, variant: h, disabled: n }),
|
|
546
573
|
qe({ mode: a, variant: h, disabled: n }),
|
|
547
574
|
{
|
|
548
|
-
"w-full":
|
|
575
|
+
"w-full": i,
|
|
549
576
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
|
550
577
|
}
|
|
551
|
-
)),
|
|
578
|
+
)), Xe = (e, r, t) => {
|
|
552
579
|
var a;
|
|
553
580
|
!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
|
-
}, de =
|
|
581
|
+
}, de = O.forwardRef((e, r) => {
|
|
555
582
|
const { onClick: t, noInternalClick: a = !1, ...o } = e;
|
|
556
583
|
return /* @__PURE__ */ c(
|
|
557
584
|
"button",
|
|
558
585
|
{
|
|
559
586
|
ref: r,
|
|
560
587
|
onClick: (n) => {
|
|
561
|
-
|
|
588
|
+
Xe(n, a, t);
|
|
562
589
|
},
|
|
563
590
|
...o
|
|
564
591
|
}
|
|
@@ -566,19 +593,19 @@ const He = (e) => {
|
|
|
566
593
|
});
|
|
567
594
|
de.displayName = "BaseButton";
|
|
568
595
|
/*!
|
|
569
|
-
@versini/ui-button v1.
|
|
596
|
+
@versini/ui-button v1.6.0
|
|
570
597
|
© 2024 gizmette.com
|
|
571
598
|
*/
|
|
572
599
|
try {
|
|
573
600
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
574
|
-
version: "1.
|
|
575
|
-
buildTime: "12/
|
|
601
|
+
version: "1.6.0",
|
|
602
|
+
buildTime: "12/27/2024 01:35 PM EST",
|
|
576
603
|
homepage: "https://github.com/aversini/ui-components",
|
|
577
604
|
license: "MIT"
|
|
578
605
|
});
|
|
579
606
|
} catch {
|
|
580
607
|
}
|
|
581
|
-
const ue =
|
|
608
|
+
const ue = O.forwardRef(
|
|
582
609
|
({
|
|
583
610
|
children: e,
|
|
584
611
|
disabled: r = !1,
|
|
@@ -586,8 +613,8 @@ const ue = z.forwardRef(
|
|
|
586
613
|
focusMode: a = "system",
|
|
587
614
|
fullWidth: o = !1,
|
|
588
615
|
className: n,
|
|
589
|
-
type:
|
|
590
|
-
raw:
|
|
616
|
+
type: i = "button",
|
|
617
|
+
raw: l = !1,
|
|
591
618
|
noBorder: d = !1,
|
|
592
619
|
"aria-label": m,
|
|
593
620
|
label: u,
|
|
@@ -598,15 +625,15 @@ const ue = z.forwardRef(
|
|
|
598
625
|
noBackground: w = !1,
|
|
599
626
|
align: S = "center",
|
|
600
627
|
active: B = !1,
|
|
601
|
-
...
|
|
602
|
-
},
|
|
603
|
-
const
|
|
628
|
+
...V
|
|
629
|
+
}, H) => {
|
|
630
|
+
const G = Ye({
|
|
604
631
|
type: ce,
|
|
605
632
|
mode: t,
|
|
606
633
|
focusMode: a,
|
|
607
634
|
fullWidth: o,
|
|
608
635
|
disabled: r,
|
|
609
|
-
raw:
|
|
636
|
+
raw: l,
|
|
610
637
|
className: n,
|
|
611
638
|
noBorder: d,
|
|
612
639
|
size: p,
|
|
@@ -615,12 +642,12 @@ const ue = z.forwardRef(
|
|
|
615
642
|
spacing: b,
|
|
616
643
|
noBackground: w,
|
|
617
644
|
align: S
|
|
618
|
-
}),
|
|
619
|
-
"text-copy-accent-dark": t === "light" && !
|
|
620
|
-
"text-copy-light": t === "dark" && !
|
|
621
|
-
"text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !
|
|
622
|
-
"text-copy-light dark:text-copy-accent-dark": t === "system" && !
|
|
623
|
-
}), D = B ?
|
|
645
|
+
}), F = s({
|
|
646
|
+
"text-copy-accent-dark": t === "light" && !l,
|
|
647
|
+
"text-copy-light": t === "dark" && !l,
|
|
648
|
+
"text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !l,
|
|
649
|
+
"text-copy-light dark:text-copy-accent-dark": t === "system" && !l
|
|
650
|
+
}), D = B ? s(
|
|
624
651
|
"relative",
|
|
625
652
|
"focus-within:static",
|
|
626
653
|
"focus-within:after:border-transparent",
|
|
@@ -640,15 +667,15 @@ const ue = z.forwardRef(
|
|
|
640
667
|
return /* @__PURE__ */ c("div", { className: D, children: /* @__PURE__ */ x(
|
|
641
668
|
de,
|
|
642
669
|
{
|
|
643
|
-
ref:
|
|
644
|
-
className:
|
|
670
|
+
ref: H,
|
|
671
|
+
className: G,
|
|
645
672
|
disabled: r,
|
|
646
|
-
type:
|
|
673
|
+
type: i,
|
|
647
674
|
"aria-label": m || u,
|
|
648
|
-
...
|
|
675
|
+
...V,
|
|
649
676
|
children: [
|
|
650
677
|
h && /* @__PURE__ */ c("span", { className: "pr-2", children: h }),
|
|
651
|
-
/* @__PURE__ */ c("div", { className:
|
|
678
|
+
/* @__PURE__ */ c("div", { className: F, children: e }),
|
|
652
679
|
g && /* @__PURE__ */ c("span", { className: "pl-2", children: g })
|
|
653
680
|
]
|
|
654
681
|
}
|
|
@@ -656,6 +683,19 @@ const ue = z.forwardRef(
|
|
|
656
683
|
}
|
|
657
684
|
);
|
|
658
685
|
ue.displayName = "ButtonSort";
|
|
686
|
+
/*!
|
|
687
|
+
@versini/ui-spacing v1.1.0
|
|
688
|
+
© 2024 gizmette.com
|
|
689
|
+
*/
|
|
690
|
+
try {
|
|
691
|
+
window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
|
|
692
|
+
version: "1.1.0",
|
|
693
|
+
buildTime: "12/27/2024 01:35 PM EST",
|
|
694
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
695
|
+
license: "MIT"
|
|
696
|
+
});
|
|
697
|
+
} catch {
|
|
698
|
+
}
|
|
659
699
|
const Ke = (e) => {
|
|
660
700
|
let r = "";
|
|
661
701
|
if (typeof e == "number" || typeof e == "string")
|
|
@@ -665,23 +705,23 @@ const Ke = (e) => {
|
|
|
665
705
|
(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
706
|
}
|
|
667
707
|
return r;
|
|
668
|
-
},
|
|
708
|
+
}, X = ({
|
|
669
709
|
children: e,
|
|
670
710
|
fill: r,
|
|
671
711
|
viewBox: t,
|
|
672
712
|
className: a,
|
|
673
713
|
defaultViewBox: o,
|
|
674
714
|
defaultClassName: n,
|
|
675
|
-
spacing:
|
|
676
|
-
title:
|
|
715
|
+
spacing: i,
|
|
716
|
+
title: l,
|
|
677
717
|
semantic: d = !1,
|
|
678
718
|
...m
|
|
679
719
|
}) => {
|
|
680
|
-
const u = Ke(
|
|
720
|
+
const u = Ke(i), p = s(
|
|
681
721
|
u,
|
|
682
722
|
a || n
|
|
683
723
|
);
|
|
684
|
-
return /* @__PURE__ */ x(
|
|
724
|
+
return /* @__PURE__ */ x(Te, { children: [
|
|
685
725
|
/* @__PURE__ */ c(
|
|
686
726
|
"svg",
|
|
687
727
|
{
|
|
@@ -696,17 +736,17 @@ const Ke = (e) => {
|
|
|
696
736
|
children: e
|
|
697
737
|
}
|
|
698
738
|
),
|
|
699
|
-
|
|
739
|
+
l && d && /* @__PURE__ */ c("span", { className: "sr-only", children: l })
|
|
700
740
|
] });
|
|
701
741
|
};
|
|
702
742
|
/*!
|
|
703
|
-
@versini/ui-
|
|
743
|
+
@versini/ui-svgicon v1.1.0
|
|
704
744
|
© 2024 gizmette.com
|
|
705
745
|
*/
|
|
706
746
|
try {
|
|
707
|
-
window.
|
|
708
|
-
version: "1.
|
|
709
|
-
buildTime: "12/
|
|
747
|
+
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
748
|
+
version: "1.1.0",
|
|
749
|
+
buildTime: "12/27/2024 01:35 PM EST",
|
|
710
750
|
homepage: "https://github.com/aversini/ui-components",
|
|
711
751
|
license: "MIT"
|
|
712
752
|
});
|
|
@@ -720,7 +760,7 @@ const Ze = ({
|
|
|
720
760
|
monotone: o,
|
|
721
761
|
...n
|
|
722
762
|
}) => /* @__PURE__ */ x(
|
|
723
|
-
|
|
763
|
+
X,
|
|
724
764
|
{
|
|
725
765
|
defaultViewBox: "0 0 576 512",
|
|
726
766
|
defaultClassName: "size-5",
|
|
@@ -748,7 +788,7 @@ const Ze = ({
|
|
|
748
788
|
monotone: o,
|
|
749
789
|
...n
|
|
750
790
|
}) => /* @__PURE__ */ x(
|
|
751
|
-
|
|
791
|
+
X,
|
|
752
792
|
{
|
|
753
793
|
defaultViewBox: "0 0 576 512",
|
|
754
794
|
defaultClassName: "size-5",
|
|
@@ -776,7 +816,7 @@ const Ze = ({
|
|
|
776
816
|
monotone: o,
|
|
777
817
|
...n
|
|
778
818
|
}) => /* @__PURE__ */ x(
|
|
779
|
-
|
|
819
|
+
X,
|
|
780
820
|
{
|
|
781
821
|
defaultViewBox: "0 0 576 512",
|
|
782
822
|
defaultClassName: "size-5",
|
|
@@ -798,56 +838,56 @@ const Ze = ({
|
|
|
798
838
|
}
|
|
799
839
|
);
|
|
800
840
|
/*!
|
|
801
|
-
@versini/ui-icons v1.
|
|
841
|
+
@versini/ui-icons v1.19.0
|
|
802
842
|
© 2024 gizmette.com
|
|
803
843
|
*/
|
|
804
844
|
try {
|
|
805
845
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
806
|
-
version: "1.
|
|
807
|
-
buildTime: "12/
|
|
846
|
+
version: "1.19.0",
|
|
847
|
+
buildTime: "12/27/2024 01:35 PM EST",
|
|
808
848
|
homepage: "https://github.com/aversini/ui-components",
|
|
809
849
|
license: "MIT"
|
|
810
850
|
});
|
|
811
851
|
} catch {
|
|
812
852
|
}
|
|
813
|
-
const
|
|
853
|
+
const T = O.createContext({
|
|
814
854
|
mode: "light",
|
|
815
855
|
cellWrapper: "thead",
|
|
816
856
|
stickyHeader: !1,
|
|
817
857
|
stickyFooter: !1,
|
|
818
858
|
compact: !1
|
|
819
|
-
}),
|
|
859
|
+
}), Ht = ({
|
|
820
860
|
children: e,
|
|
821
861
|
mode: r = "system",
|
|
822
862
|
caption: t,
|
|
823
863
|
compact: a,
|
|
824
864
|
summary: o,
|
|
825
865
|
className: n,
|
|
826
|
-
wrapperClassName:
|
|
827
|
-
maxHeight:
|
|
866
|
+
wrapperClassName: i,
|
|
867
|
+
maxHeight: l,
|
|
828
868
|
stickyHeader: d,
|
|
829
869
|
stickyFooter: m,
|
|
830
870
|
spacing: u,
|
|
831
871
|
...p
|
|
832
872
|
}) => {
|
|
833
|
-
const g =
|
|
873
|
+
const g = He({
|
|
834
874
|
mode: r,
|
|
835
875
|
className: n,
|
|
836
|
-
wrapperClassName:
|
|
876
|
+
wrapperClassName: i,
|
|
837
877
|
stickyHeader: d,
|
|
838
878
|
stickyFooter: m,
|
|
839
879
|
spacing: u
|
|
840
880
|
});
|
|
841
881
|
return /* @__PURE__ */ c(
|
|
842
|
-
|
|
882
|
+
T.Provider,
|
|
843
883
|
{
|
|
844
884
|
value: { mode: r, stickyHeader: d, stickyFooter: m, compact: a },
|
|
845
885
|
children: /* @__PURE__ */ c(
|
|
846
886
|
"div",
|
|
847
887
|
{
|
|
848
888
|
className: g.wrapper,
|
|
849
|
-
...
|
|
850
|
-
style: { maxHeight:
|
|
889
|
+
...l && {
|
|
890
|
+
style: { maxHeight: l }
|
|
851
891
|
},
|
|
852
892
|
children: /* @__PURE__ */ x("table", { className: g.table, summary: o, ...p, children: [
|
|
853
893
|
t && /* @__PURE__ */ c("caption", { className: g.caption, children: t }),
|
|
@@ -857,41 +897,41 @@ const N = z.createContext({
|
|
|
857
897
|
)
|
|
858
898
|
}
|
|
859
899
|
);
|
|
860
|
-
},
|
|
900
|
+
}, Mt = ({
|
|
861
901
|
children: e,
|
|
862
902
|
className: r,
|
|
863
903
|
...t
|
|
864
904
|
}) => {
|
|
865
|
-
const a = R(
|
|
866
|
-
a.cellWrapper =
|
|
867
|
-
const o =
|
|
905
|
+
const a = R(T);
|
|
906
|
+
a.cellWrapper = z;
|
|
907
|
+
const o = Me({
|
|
868
908
|
className: r,
|
|
869
909
|
mode: a.mode,
|
|
870
910
|
stickyHeader: a.stickyHeader
|
|
871
911
|
});
|
|
872
912
|
return /* @__PURE__ */ c("thead", { className: o, ...t, children: e });
|
|
873
|
-
},
|
|
913
|
+
}, Ut = ({
|
|
874
914
|
children: e,
|
|
875
915
|
className: r,
|
|
876
916
|
...t
|
|
877
917
|
}) => {
|
|
878
|
-
const a = R(
|
|
879
|
-
a.cellWrapper =
|
|
880
|
-
const o =
|
|
918
|
+
const a = R(T);
|
|
919
|
+
a.cellWrapper = Y;
|
|
920
|
+
const o = Ue({
|
|
881
921
|
className: r,
|
|
882
922
|
mode: a.mode,
|
|
883
923
|
stickyFooter: a.stickyFooter
|
|
884
924
|
});
|
|
885
925
|
return /* @__PURE__ */ c("tfoot", { className: o, ...t, children: e });
|
|
886
|
-
},
|
|
887
|
-
const t = R(
|
|
888
|
-
return t.cellWrapper =
|
|
889
|
-
},
|
|
926
|
+
}, Lt = ({ children: e, ...r }) => {
|
|
927
|
+
const t = R(T);
|
|
928
|
+
return t.cellWrapper = E, /* @__PURE__ */ c("tbody", { ...r, children: e });
|
|
929
|
+
}, Pt = ({
|
|
890
930
|
children: e,
|
|
891
931
|
className: r,
|
|
892
932
|
...t
|
|
893
933
|
}) => {
|
|
894
|
-
const a = R(
|
|
934
|
+
const a = R(T), o = Le({
|
|
895
935
|
mode: a.mode,
|
|
896
936
|
cellWrapper: a.cellWrapper,
|
|
897
937
|
className: r
|
|
@@ -903,62 +943,62 @@ const N = z.createContext({
|
|
|
903
943
|
className: t,
|
|
904
944
|
...a
|
|
905
945
|
}) => {
|
|
906
|
-
const o = R(
|
|
946
|
+
const o = R(T), n = r || (o.cellWrapper === z ? "th" : "td"), i = Pe({
|
|
907
947
|
cellWrapper: o.cellWrapper,
|
|
908
948
|
className: t,
|
|
909
949
|
mode: o.mode,
|
|
910
950
|
compact: o.compact
|
|
911
951
|
});
|
|
912
|
-
return /* @__PURE__ */ c(n, { className:
|
|
913
|
-
},
|
|
952
|
+
return /* @__PURE__ */ c(n, { className: i, ...a, children: e });
|
|
953
|
+
}, Ot = ({
|
|
914
954
|
align: e,
|
|
915
955
|
children: r,
|
|
916
956
|
buttonClassName: t,
|
|
917
957
|
className: a,
|
|
918
958
|
component: o,
|
|
919
959
|
focusMode: n = "alt-system",
|
|
920
|
-
mode:
|
|
921
|
-
onClick:
|
|
960
|
+
mode: i = "alt-system",
|
|
961
|
+
onClick: l,
|
|
922
962
|
sortDirection: d,
|
|
923
963
|
sortedCell: m,
|
|
924
964
|
cellId: u,
|
|
925
965
|
...p
|
|
926
966
|
}) => {
|
|
927
|
-
const g =
|
|
967
|
+
const g = Oe({ buttonClassName: t });
|
|
928
968
|
return /* @__PURE__ */ c(
|
|
929
969
|
rt,
|
|
930
970
|
{
|
|
931
971
|
component: o,
|
|
932
972
|
className: a,
|
|
933
973
|
role: "columnheader",
|
|
934
|
-
"aria-sort": d ===
|
|
974
|
+
"aria-sort": d === L.ASC && m === u ? "ascending" : d === L.DESC && m === u ? "descending" : "other",
|
|
935
975
|
...p,
|
|
936
976
|
children: /* @__PURE__ */ c(
|
|
937
977
|
ue,
|
|
938
978
|
{
|
|
939
979
|
active: m === u,
|
|
940
980
|
className: g,
|
|
941
|
-
onClick:
|
|
981
|
+
onClick: l,
|
|
942
982
|
align: e,
|
|
943
983
|
noBorder: !0,
|
|
944
984
|
focusMode: n,
|
|
945
|
-
mode:
|
|
985
|
+
mode: i,
|
|
946
986
|
fullWidth: !0,
|
|
947
987
|
labelRight: r,
|
|
948
|
-
children: d ===
|
|
988
|
+
children: d === L.ASC && m === u ? /* @__PURE__ */ c(tt, { className: "size-4", monotone: !0 }) : d === L.DESC && m === u ? /* @__PURE__ */ c(et, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ c(Ze, { className: "size-4", monotone: !0 })
|
|
949
989
|
}
|
|
950
990
|
)
|
|
951
991
|
}
|
|
952
992
|
);
|
|
953
993
|
};
|
|
954
994
|
/*!
|
|
955
|
-
@versini/ui-textarea v1.
|
|
995
|
+
@versini/ui-textarea v1.4.0
|
|
956
996
|
© 2024 gizmette.com
|
|
957
997
|
*/
|
|
958
998
|
try {
|
|
959
999
|
window.__VERSINI_UI_TEXTAREA__ || (window.__VERSINI_UI_TEXTAREA__ = {
|
|
960
|
-
version: "1.
|
|
961
|
-
buildTime: "12/
|
|
1000
|
+
version: "1.4.0",
|
|
1001
|
+
buildTime: "12/26/2024 06:05 PM EST",
|
|
962
1002
|
homepage: "https://github.com/aversini/ui-components",
|
|
963
1003
|
license: "MIT"
|
|
964
1004
|
});
|
|
@@ -967,19 +1007,19 @@ try {
|
|
|
967
1007
|
const me = "av-text-area", at = "av-text-area-wrapper", Q = "av-text-area-helper-text", ot = "av-text-area__control--right";
|
|
968
1008
|
function nt() {
|
|
969
1009
|
const e = f(!1);
|
|
970
|
-
return
|
|
1010
|
+
return A(() => (e.current = !0, () => {
|
|
971
1011
|
e.current = !1;
|
|
972
|
-
}), []),
|
|
1012
|
+
}), []), P(() => e.current, []);
|
|
973
1013
|
}
|
|
974
|
-
function
|
|
975
|
-
return
|
|
1014
|
+
function it(e) {
|
|
1015
|
+
return ie(() => e.every((r) => r == null) ? () => {
|
|
976
1016
|
} : (r) => {
|
|
977
1017
|
e.forEach((t) => {
|
|
978
1018
|
typeof t == "function" ? t(r) : t != null && (t.current = r);
|
|
979
1019
|
});
|
|
980
1020
|
}, e);
|
|
981
1021
|
}
|
|
982
|
-
const
|
|
1022
|
+
const st = {
|
|
983
1023
|
x: 0,
|
|
984
1024
|
y: 0,
|
|
985
1025
|
width: 0,
|
|
@@ -989,16 +1029,16 @@ const it = {
|
|
|
989
1029
|
bottom: 0,
|
|
990
1030
|
right: 0
|
|
991
1031
|
};
|
|
992
|
-
function
|
|
993
|
-
const r = nt(), t = f(0), a = f(null), [o, n] =
|
|
994
|
-
const d =
|
|
1032
|
+
function lt(e) {
|
|
1033
|
+
const r = nt(), t = f(0), a = f(null), [o, n] = $(st), i = ie(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
|
|
1034
|
+
const d = l[0];
|
|
995
1035
|
d && (cancelAnimationFrame(t.current), t.current = requestAnimationFrame(() => {
|
|
996
1036
|
a.current && r() && n(d.contentRect);
|
|
997
1037
|
}));
|
|
998
1038
|
}), [r]);
|
|
999
|
-
return
|
|
1000
|
-
|
|
1001
|
-
}), [
|
|
1039
|
+
return A(() => (a.current && (i == null || i.observe(a.current, e)), () => {
|
|
1040
|
+
i == null || i.disconnect(), t.current && cancelAnimationFrame(t.current);
|
|
1041
|
+
}), [i, e]), [a, o];
|
|
1002
1042
|
}
|
|
1003
1043
|
function ct({
|
|
1004
1044
|
value: e,
|
|
@@ -1008,19 +1048,19 @@ function ct({
|
|
|
1008
1048
|
},
|
|
1009
1049
|
initialControlledDelay: o = 0
|
|
1010
1050
|
}) {
|
|
1011
|
-
const [n,
|
|
1051
|
+
const [n, i] = $(!1), [l, d] = $(
|
|
1012
1052
|
r !== void 0 ? r : t
|
|
1013
1053
|
), m = (u) => {
|
|
1014
1054
|
d(u), a == null || a(u);
|
|
1015
1055
|
};
|
|
1016
|
-
return
|
|
1056
|
+
return A(() => {
|
|
1017
1057
|
(async () => e !== void 0 && !n && o > 0 && (await new Promise(
|
|
1018
1058
|
(u) => setTimeout(u, o)
|
|
1019
|
-
),
|
|
1020
|
-
}, [e, o, n]), e !== void 0 ? !n && o > 0 ? ["", a, !0] : [e, a, !0] : [
|
|
1059
|
+
), i(!0)))();
|
|
1060
|
+
}, [e, o, n]), e !== void 0 ? !n && o > 0 ? ["", a, !0] : [e, a, !0] : [l, m, !1];
|
|
1021
1061
|
}
|
|
1022
1062
|
function dt(e) {
|
|
1023
|
-
const r =
|
|
1063
|
+
const r = Ce();
|
|
1024
1064
|
if (!e)
|
|
1025
1065
|
return r;
|
|
1026
1066
|
if (typeof e == "number" || typeof e == "string")
|
|
@@ -1084,20 +1124,20 @@ const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT", ut = {
|
|
|
1084
1124
|
clearAnnouncementDelay: a,
|
|
1085
1125
|
clearAnnouncementTimeoutRef: o,
|
|
1086
1126
|
onAnnouncementClear: n,
|
|
1087
|
-
dispatch:
|
|
1127
|
+
dispatch: i
|
|
1088
1128
|
}) => {
|
|
1089
1129
|
clearTimeout(r.current), t ? r.current = setTimeout(ne, t, {
|
|
1090
1130
|
children: e,
|
|
1091
1131
|
clearAnnouncementDelay: a,
|
|
1092
1132
|
clearAnnouncementTimeoutRef: o,
|
|
1093
1133
|
onAnnouncementClear: n,
|
|
1094
|
-
dispatch:
|
|
1134
|
+
dispatch: i
|
|
1095
1135
|
}) : ne({
|
|
1096
1136
|
children: e,
|
|
1097
1137
|
clearAnnouncementDelay: a,
|
|
1098
1138
|
clearAnnouncementTimeoutRef: o,
|
|
1099
1139
|
onAnnouncementClear: n,
|
|
1100
|
-
dispatch:
|
|
1140
|
+
dispatch: i
|
|
1101
1141
|
});
|
|
1102
1142
|
};
|
|
1103
1143
|
function pt({
|
|
@@ -1107,32 +1147,32 @@ function pt({
|
|
|
1107
1147
|
role: a = null,
|
|
1108
1148
|
announcementDelay: o,
|
|
1109
1149
|
clearAnnouncementDelay: n,
|
|
1110
|
-
onAnnouncementClear:
|
|
1111
|
-
visible:
|
|
1150
|
+
onAnnouncementClear: i,
|
|
1151
|
+
visible: l,
|
|
1112
1152
|
...d
|
|
1113
1153
|
}) {
|
|
1114
|
-
const m = f(null), u = f(null), [p, g] =
|
|
1154
|
+
const m = f(null), u = f(null), [p, g] = $e(mt, {
|
|
1115
1155
|
announcement: null
|
|
1116
1156
|
});
|
|
1117
1157
|
let h = t;
|
|
1118
|
-
typeof h > "u" && (h = a ? ut[a] : "assertive"),
|
|
1158
|
+
typeof h > "u" && (h = a ? ut[a] : "assertive"), A(() => {
|
|
1119
1159
|
gt({
|
|
1120
1160
|
announcementTimeoutRef: m,
|
|
1121
1161
|
announcementDelay: o,
|
|
1122
1162
|
children: e,
|
|
1123
1163
|
clearAnnouncementDelay: n,
|
|
1124
1164
|
clearAnnouncementTimeoutRef: u,
|
|
1125
|
-
onAnnouncementClear:
|
|
1165
|
+
onAnnouncementClear: i,
|
|
1126
1166
|
dispatch: g
|
|
1127
1167
|
});
|
|
1128
1168
|
}, [
|
|
1129
1169
|
e,
|
|
1130
1170
|
o,
|
|
1131
1171
|
n,
|
|
1132
|
-
|
|
1172
|
+
i
|
|
1133
1173
|
]);
|
|
1134
|
-
const b =
|
|
1135
|
-
"sr-only": !
|
|
1174
|
+
const b = s(r, {
|
|
1175
|
+
"sr-only": !l
|
|
1136
1176
|
});
|
|
1137
1177
|
return /* @__PURE__ */ c(
|
|
1138
1178
|
"div",
|
|
@@ -1145,52 +1185,64 @@ function pt({
|
|
|
1145
1185
|
}
|
|
1146
1186
|
);
|
|
1147
1187
|
}
|
|
1148
|
-
const bt = (e) => {
|
|
1149
|
-
let r = "";
|
|
1150
|
-
if (typeof e == "number" || typeof e == "string")
|
|
1151
|
-
r = "m-" + e;
|
|
1152
|
-
else {
|
|
1153
|
-
const t = [];
|
|
1154
|
-
(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(" ");
|
|
1155
|
-
}
|
|
1156
|
-
return r;
|
|
1157
|
-
};
|
|
1158
1188
|
/*!
|
|
1159
|
-
@versini/ui-
|
|
1189
|
+
@versini/ui-liveregion v1.2.0
|
|
1160
1190
|
© 2024 gizmette.com
|
|
1161
1191
|
*/
|
|
1162
1192
|
try {
|
|
1163
|
-
window.
|
|
1164
|
-
version: "1.
|
|
1165
|
-
buildTime: "12/
|
|
1193
|
+
window.__VERSINI_UI_LIVEREGION__ || (window.__VERSINI_UI_LIVEREGION__ = {
|
|
1194
|
+
version: "1.2.0",
|
|
1195
|
+
buildTime: "12/26/2024 06:05 PM EST",
|
|
1196
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
1197
|
+
license: "MIT"
|
|
1198
|
+
});
|
|
1199
|
+
} catch {
|
|
1200
|
+
}
|
|
1201
|
+
/*!
|
|
1202
|
+
@versini/ui-spacing v1.1.0
|
|
1203
|
+
© 2024 gizmette.com
|
|
1204
|
+
*/
|
|
1205
|
+
try {
|
|
1206
|
+
window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
|
|
1207
|
+
version: "1.1.0",
|
|
1208
|
+
buildTime: "12/26/2024 06:05 PM EST",
|
|
1166
1209
|
homepage: "https://github.com/aversini/ui-components",
|
|
1167
1210
|
license: "MIT"
|
|
1168
1211
|
});
|
|
1169
1212
|
} catch {
|
|
1170
1213
|
}
|
|
1171
|
-
const
|
|
1214
|
+
const bt = (e) => {
|
|
1215
|
+
let r = "";
|
|
1216
|
+
if (typeof e == "number" || typeof e == "string")
|
|
1217
|
+
r = "m-" + e;
|
|
1218
|
+
else {
|
|
1219
|
+
const t = [];
|
|
1220
|
+
(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(" ");
|
|
1221
|
+
}
|
|
1222
|
+
return r;
|
|
1223
|
+
}, yt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", ft = ({
|
|
1172
1224
|
mode: e
|
|
1173
|
-
}) =>
|
|
1225
|
+
}) => s({
|
|
1174
1226
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
|
1175
1227
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
1176
1228
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
1177
1229
|
"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
|
-
}),
|
|
1230
|
+
}), vt = ({
|
|
1179
1231
|
focusMode: e
|
|
1180
|
-
}) =>
|
|
1232
|
+
}) => s("focus:outline focus:outline-2 focus:outline-offset-2", {
|
|
1181
1233
|
"focus:outline-focus-dark": e === "dark",
|
|
1182
1234
|
"focus:outline-focus-light": e === "light",
|
|
1183
1235
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
1184
1236
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
1185
|
-
}),
|
|
1237
|
+
}), _t = ({
|
|
1186
1238
|
noBorder: e,
|
|
1187
1239
|
error: r
|
|
1188
|
-
}) =>
|
|
1240
|
+
}) => s("border-2", {
|
|
1189
1241
|
"border-border-dark": !e && !r,
|
|
1190
1242
|
"focus:border-border-dark": !e && r,
|
|
1191
1243
|
"border-border-error-dark": !e && r,
|
|
1192
1244
|
"border-transparent": e
|
|
1193
|
-
}),
|
|
1245
|
+
}), kt = ({
|
|
1194
1246
|
disabled: e,
|
|
1195
1247
|
raw: r,
|
|
1196
1248
|
error: t,
|
|
@@ -1199,16 +1251,16 @@ const yt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1199
1251
|
if (r)
|
|
1200
1252
|
return "";
|
|
1201
1253
|
if (e)
|
|
1202
|
-
return
|
|
1254
|
+
return s("absolute px-2 cursor-not-allowed opacity-50 font-medium");
|
|
1203
1255
|
if (!t)
|
|
1204
|
-
return
|
|
1256
|
+
return s("absolute px-2 cursor-text font-medium", {
|
|
1205
1257
|
"text-copy-medium": a === "dark",
|
|
1206
1258
|
"text-copy-dark": a === "light",
|
|
1207
1259
|
"text-copy-dark dark:text-copy-medium": a === "system",
|
|
1208
1260
|
"text-copy-medium dark:text-copy-dark": a === "alt-system"
|
|
1209
1261
|
});
|
|
1210
1262
|
if (t)
|
|
1211
|
-
return
|
|
1263
|
+
return s("absolute px-2 cursor-text font-medium", {
|
|
1212
1264
|
"text-copy-medium": a === "dark",
|
|
1213
1265
|
"text-copy-error-dark": a === "light",
|
|
1214
1266
|
"text-copy-error-dark dark:text-copy-error-light": a === "system",
|
|
@@ -1223,19 +1275,19 @@ const yt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1223
1275
|
if (r)
|
|
1224
1276
|
return "";
|
|
1225
1277
|
if (a)
|
|
1226
|
-
return
|
|
1278
|
+
return s(
|
|
1227
1279
|
Q,
|
|
1228
1280
|
"absolute px-2 cursor-not-allowed opacity-50 font-medium"
|
|
1229
1281
|
);
|
|
1230
1282
|
if (!e)
|
|
1231
|
-
return
|
|
1283
|
+
return s(Q, "absolute px-2 font-medium", {
|
|
1232
1284
|
"text-copy-medium": t === "dark",
|
|
1233
1285
|
"text-copy-dark": t === "light",
|
|
1234
1286
|
"text-copy-dark dark:text-copy-medium": t === "system",
|
|
1235
1287
|
"text-copy-medium dark:text-copy-dark": t === "alt-system"
|
|
1236
1288
|
});
|
|
1237
1289
|
if (e)
|
|
1238
|
-
return
|
|
1290
|
+
return s(Q, "absolute px-2 font-medium", {
|
|
1239
1291
|
"text-copy-error-light": t === "dark",
|
|
1240
1292
|
"text-copy-error-dark": t === "light",
|
|
1241
1293
|
"text-copy-error-dark dark:text-copy-error-light": t === "system",
|
|
@@ -1248,39 +1300,39 @@ const yt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1248
1300
|
focusMode: a,
|
|
1249
1301
|
disabled: o,
|
|
1250
1302
|
noBorder: n,
|
|
1251
|
-
error:
|
|
1252
|
-
spacing:
|
|
1303
|
+
error: i,
|
|
1304
|
+
spacing: l,
|
|
1253
1305
|
mode: d
|
|
1254
1306
|
}) => {
|
|
1255
|
-
const m = t ? e :
|
|
1307
|
+
const m = t ? e : s(
|
|
1256
1308
|
"relative flex w-full flex-col justify-center",
|
|
1257
1309
|
at,
|
|
1258
1310
|
e,
|
|
1259
|
-
bt(
|
|
1260
|
-
), u = t ?
|
|
1311
|
+
bt(l)
|
|
1312
|
+
), u = t ? s(r) : s(
|
|
1261
1313
|
me,
|
|
1262
1314
|
r,
|
|
1263
1315
|
yt(),
|
|
1264
1316
|
ft({ mode: d }),
|
|
1265
|
-
|
|
1266
|
-
|
|
1317
|
+
vt({ focusMode: a }),
|
|
1318
|
+
_t({
|
|
1267
1319
|
noBorder: n,
|
|
1268
|
-
error:
|
|
1320
|
+
error: i
|
|
1269
1321
|
}),
|
|
1270
1322
|
{
|
|
1271
1323
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
1272
1324
|
}
|
|
1273
|
-
), p = t ? void 0 : "sr-only", g =
|
|
1325
|
+
), p = t ? void 0 : "sr-only", g = kt({
|
|
1274
1326
|
disabled: o,
|
|
1275
1327
|
raw: t,
|
|
1276
|
-
error:
|
|
1328
|
+
error: i,
|
|
1277
1329
|
mode: d
|
|
1278
1330
|
}), h = xt({
|
|
1279
|
-
error:
|
|
1331
|
+
error: i,
|
|
1280
1332
|
raw: t,
|
|
1281
1333
|
mode: d,
|
|
1282
1334
|
disabled: o
|
|
1283
|
-
}), b = t ? void 0 :
|
|
1335
|
+
}), b = t ? void 0 : s(ot, "absolute");
|
|
1284
1336
|
return {
|
|
1285
1337
|
wrapper: m,
|
|
1286
1338
|
textArea: u,
|
|
@@ -1289,7 +1341,7 @@ const yt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1289
1341
|
helperText: h,
|
|
1290
1342
|
rightElement: b
|
|
1291
1343
|
};
|
|
1292
|
-
},
|
|
1344
|
+
}, Nt = ({
|
|
1293
1345
|
scrollHeight: e,
|
|
1294
1346
|
currentHeight: r,
|
|
1295
1347
|
currentLabelOffset: t = 0,
|
|
@@ -1297,15 +1349,15 @@ const yt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1297
1349
|
}) => {
|
|
1298
1350
|
let o, n;
|
|
1299
1351
|
if (e > 0 && e !== r) {
|
|
1300
|
-
const
|
|
1301
|
-
o = t + -1 * Math.sign(
|
|
1352
|
+
const i = e - r, l = Math.abs(i / 24);
|
|
1353
|
+
o = t + -1 * Math.sign(i) * (12 * l), n = a + Math.sign(i) * (12 * l);
|
|
1302
1354
|
}
|
|
1303
1355
|
return {
|
|
1304
1356
|
labelOffset: o,
|
|
1305
1357
|
helperTextOffset: n,
|
|
1306
1358
|
scrollHeight: e
|
|
1307
1359
|
};
|
|
1308
|
-
},
|
|
1360
|
+
}, Et = O.forwardRef(
|
|
1309
1361
|
({
|
|
1310
1362
|
id: e,
|
|
1311
1363
|
name: r,
|
|
@@ -1313,8 +1365,8 @@ const yt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1313
1365
|
error: a = !1,
|
|
1314
1366
|
raw: o = !1,
|
|
1315
1367
|
className: n,
|
|
1316
|
-
textAreaClassName:
|
|
1317
|
-
mode:
|
|
1368
|
+
textAreaClassName: i,
|
|
1369
|
+
mode: l = "system",
|
|
1318
1370
|
focusMode: d = "system",
|
|
1319
1371
|
value: m,
|
|
1320
1372
|
defaultValue: u,
|
|
@@ -1325,24 +1377,24 @@ const yt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1325
1377
|
helperTextOnFocus: w = !1,
|
|
1326
1378
|
rightElement: S,
|
|
1327
1379
|
onChange: B,
|
|
1328
|
-
onFocus:
|
|
1329
|
-
onBlur:
|
|
1330
|
-
spacing:
|
|
1331
|
-
...
|
|
1380
|
+
onFocus: V,
|
|
1381
|
+
onBlur: H,
|
|
1382
|
+
spacing: G,
|
|
1383
|
+
...F
|
|
1332
1384
|
}, D) => {
|
|
1333
|
-
const
|
|
1385
|
+
const v = f(null), pe = it([D, v]), [be, M] = lt(), j = f(80), K = f(-25), I = f(null), Z = f(30), W = f(null), C = dt({ id: e, prefix: `${me}-` }), [ye, fe] = $(0), [ve, ee] = $(
|
|
1334
1386
|
!!(!w && b)
|
|
1335
|
-
),
|
|
1387
|
+
), _e = `${r} error, ${b}`, N = wt({
|
|
1336
1388
|
className: n,
|
|
1337
|
-
textAreaClassName:
|
|
1389
|
+
textAreaClassName: i,
|
|
1338
1390
|
error: a,
|
|
1339
1391
|
raw: o,
|
|
1340
1392
|
focusMode: d,
|
|
1341
1393
|
disabled: p,
|
|
1342
1394
|
noBorder: g,
|
|
1343
|
-
spacing:
|
|
1344
|
-
mode:
|
|
1345
|
-
}), [
|
|
1395
|
+
spacing: G,
|
|
1396
|
+
mode: l
|
|
1397
|
+
}), [_, ke] = ct({
|
|
1346
1398
|
value: m,
|
|
1347
1399
|
initialControlledDelay: 20,
|
|
1348
1400
|
defaultValue: u,
|
|
@@ -1354,48 +1406,48 @@ const yt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1354
1406
|
});
|
|
1355
1407
|
}
|
|
1356
1408
|
}), xe = (y) => {
|
|
1357
|
-
|
|
1409
|
+
ke(y.target.value);
|
|
1358
1410
|
}, we = (y) => {
|
|
1359
|
-
w && b && ee(!0),
|
|
1360
|
-
},
|
|
1361
|
-
w && b && !
|
|
1411
|
+
w && b && ee(!0), V && V(y);
|
|
1412
|
+
}, Ne = (y) => {
|
|
1413
|
+
w && b && !_ && ee(!1), H && H(y);
|
|
1362
1414
|
};
|
|
1363
|
-
return
|
|
1364
|
-
|
|
1365
|
-
}, [
|
|
1366
|
-
o ||
|
|
1367
|
-
}, [
|
|
1415
|
+
return U(() => {
|
|
1416
|
+
M && M.width && fe(M.width + 18 + 10);
|
|
1417
|
+
}, [M]), U(() => {
|
|
1418
|
+
o || v && v.current && _ !== void 0 && (v.current.style.height = "inherit", v.current.style.height = v.current.scrollHeight + "px");
|
|
1419
|
+
}, [_, o]), U(() => {
|
|
1368
1420
|
o || setTimeout(() => {
|
|
1369
1421
|
var y;
|
|
1370
|
-
(y =
|
|
1422
|
+
(y = I == null ? void 0 : I.current) == null || y.style.setProperty(
|
|
1371
1423
|
"--av-text-area-wrapper-transition",
|
|
1372
|
-
|
|
1424
|
+
_ ? "none" : "all 0.2s ease-out"
|
|
1373
1425
|
);
|
|
1374
1426
|
}, 0);
|
|
1375
|
-
}, [
|
|
1427
|
+
}, [_, o]), U(() => {
|
|
1376
1428
|
var y, te;
|
|
1377
|
-
if (!o &&
|
|
1378
|
-
const { labelOffset: q, helperTextOffset: J, scrollHeight:
|
|
1379
|
-
scrollHeight:
|
|
1380
|
-
currentHeight:
|
|
1429
|
+
if (!o && v && v.current && _ !== void 0) {
|
|
1430
|
+
const { labelOffset: q, helperTextOffset: J, scrollHeight: Ee } = Nt({
|
|
1431
|
+
scrollHeight: v.current.scrollHeight,
|
|
1432
|
+
currentHeight: j.current,
|
|
1381
1433
|
currentLabelOffset: K.current,
|
|
1382
1434
|
currentHelperTextOffset: Z.current
|
|
1383
1435
|
});
|
|
1384
|
-
q && (K.current = q, (y =
|
|
1436
|
+
q && (K.current = q, (y = I == null ? void 0 : I.current) == null || y.style.setProperty(
|
|
1385
1437
|
"--av-text-area-label",
|
|
1386
1438
|
`${q}px`
|
|
1387
|
-
)), J && (Z.current = J, (te =
|
|
1439
|
+
)), J && (Z.current = J, (te = W == null ? void 0 : W.current) == null || te.style.setProperty(
|
|
1388
1440
|
"--av-text-area-helper-text",
|
|
1389
1441
|
`${J}px`
|
|
1390
|
-
)),
|
|
1442
|
+
)), j.current = Ee || j.current;
|
|
1391
1443
|
}
|
|
1392
|
-
}, [
|
|
1444
|
+
}, [_, o]), /* @__PURE__ */ x("div", { className: N.wrapper, children: [
|
|
1393
1445
|
/* @__PURE__ */ c(
|
|
1394
1446
|
"label",
|
|
1395
1447
|
{
|
|
1396
|
-
htmlFor:
|
|
1448
|
+
htmlFor: C,
|
|
1397
1449
|
id: h,
|
|
1398
|
-
className:
|
|
1450
|
+
className: N.accessibleLabel,
|
|
1399
1451
|
children: t
|
|
1400
1452
|
}
|
|
1401
1453
|
),
|
|
@@ -1403,38 +1455,38 @@ const yt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1403
1455
|
"textarea",
|
|
1404
1456
|
{
|
|
1405
1457
|
ref: pe,
|
|
1406
|
-
id:
|
|
1458
|
+
id: C,
|
|
1407
1459
|
name: r,
|
|
1408
1460
|
disabled: p,
|
|
1409
1461
|
placeholder: o ? void 0 : " ",
|
|
1410
|
-
className:
|
|
1462
|
+
className: N.textArea,
|
|
1411
1463
|
rows: 1,
|
|
1412
|
-
...b && { "aria-describedby": `${
|
|
1464
|
+
...b && { "aria-describedby": `${C}-helper` },
|
|
1413
1465
|
...a && { "aria-invalid": "true" },
|
|
1414
1466
|
...S && !o && { style: { paddingRight: ye } },
|
|
1415
|
-
value:
|
|
1467
|
+
value: _,
|
|
1416
1468
|
onChange: xe,
|
|
1417
1469
|
onFocus: we,
|
|
1418
|
-
onBlur:
|
|
1419
|
-
...
|
|
1470
|
+
onBlur: Ne,
|
|
1471
|
+
...F
|
|
1420
1472
|
}
|
|
1421
1473
|
),
|
|
1422
1474
|
!o && /* @__PURE__ */ c(
|
|
1423
1475
|
"label",
|
|
1424
1476
|
{
|
|
1425
|
-
ref:
|
|
1477
|
+
ref: I,
|
|
1426
1478
|
"aria-hidden": !0,
|
|
1427
|
-
htmlFor:
|
|
1428
|
-
className:
|
|
1479
|
+
htmlFor: C,
|
|
1480
|
+
className: N.visibleLabel,
|
|
1429
1481
|
children: t
|
|
1430
1482
|
}
|
|
1431
1483
|
),
|
|
1432
|
-
|
|
1484
|
+
ve && /* @__PURE__ */ c(
|
|
1433
1485
|
"div",
|
|
1434
1486
|
{
|
|
1435
|
-
ref:
|
|
1436
|
-
id: `${
|
|
1437
|
-
className:
|
|
1487
|
+
ref: W,
|
|
1488
|
+
id: `${C}-helper`,
|
|
1489
|
+
className: N.helperText,
|
|
1438
1490
|
children: b
|
|
1439
1491
|
}
|
|
1440
1492
|
),
|
|
@@ -1442,28 +1494,28 @@ const yt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1442
1494
|
"div",
|
|
1443
1495
|
{
|
|
1444
1496
|
ref: be,
|
|
1445
|
-
className:
|
|
1497
|
+
className: N.rightElement,
|
|
1446
1498
|
children: S
|
|
1447
1499
|
}
|
|
1448
1500
|
),
|
|
1449
|
-
a && b && /* @__PURE__ */ c(pt, { politeness: "polite", clearAnnouncementDelay: 500, children:
|
|
1501
|
+
a && b && /* @__PURE__ */ c(pt, { politeness: "polite", clearAnnouncementDelay: 500, children: _e })
|
|
1450
1502
|
] });
|
|
1451
1503
|
}
|
|
1452
1504
|
);
|
|
1453
|
-
|
|
1505
|
+
Et.displayName = "TextArea";
|
|
1454
1506
|
export {
|
|
1455
|
-
|
|
1507
|
+
Et as $e,
|
|
1508
|
+
At as E,
|
|
1456
1509
|
Rt as SERVICE_TYPES,
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
Ht as restCall,
|
|
1510
|
+
Ut as be,
|
|
1511
|
+
Ht as ge,
|
|
1512
|
+
Mt as he,
|
|
1513
|
+
$t as m,
|
|
1514
|
+
Lt as me,
|
|
1515
|
+
Ot as pe,
|
|
1516
|
+
Vt as restCall,
|
|
1517
|
+
rt as se,
|
|
1466
1518
|
Bt as serviceCall,
|
|
1467
|
-
|
|
1468
|
-
|
|
1519
|
+
Pt as ue,
|
|
1520
|
+
L as y
|
|
1469
1521
|
};
|