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