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