@versini/sassysaint 5.1.4 → 5.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{App.DVd22A7h.js → App.68xrhTIC.js} +418 -400
- package/dist/chunks/{LazyHeader.ChGYAocD.js → LazyHeader.DPlhG-1q.js} +687 -635
- package/dist/chunks/{LazyMarkdownWithExtra.oW3Pc5wQ.js → LazyMarkdownWithExtra.o-qNkWIb.js} +1 -1
- package/dist/chunks/{LazyMessageAssistant.BcING2GM.js → LazyMessageAssistant.CkSUdQWN.js} +8 -8
- package/dist/chunks/{index.DuOyoYqm.js → index.B6C-bgBL.js} +186 -202
- package/dist/chunks/{index.QOymzv8v.js → index.DaWYWXXP.js} +663 -628
- package/dist/chunks/{index.BV7w1tBT.B-qjwzFk.js → index.jf7dGfT1.C4ay3jrh.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { MODEL_GPT4 as Ee } from "./index.QOymzv8v.js";
|
|
1
|
+
import z, { useSyncExternalStore as Ne, useCallback as O, useEffect as R, useContext as $, useRef as f, useState as I, useLayoutEffect as V, useMemo as ie, useId as Se, useReducer as Ce } from "react";
|
|
3
2
|
import l from "clsx";
|
|
4
3
|
import { jsx as c, jsxs as w, Fragment as Ae } from "react/jsx-runtime";
|
|
5
4
|
const _ = {
|
|
@@ -47,29 +46,33 @@ const _ = {
|
|
|
47
46
|
}
|
|
48
47
|
}
|
|
49
48
|
}`,
|
|
50
|
-
ABOUT: `query About {
|
|
51
|
-
about {
|
|
49
|
+
ABOUT: `query About($user: String!) {
|
|
50
|
+
about(user: $user) {
|
|
52
51
|
version
|
|
53
52
|
models
|
|
54
53
|
plugins
|
|
54
|
+
engine
|
|
55
55
|
}
|
|
56
56
|
}`,
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
GET_USER_PREFERENCES: `query GetUserPreferences($user: String!) {
|
|
58
|
+
getUserPreferences(user: $user) {
|
|
59
59
|
instructions
|
|
60
60
|
location
|
|
61
|
+
engine
|
|
61
62
|
}
|
|
62
63
|
}`,
|
|
63
|
-
|
|
64
|
+
SET_USER_PREFERENCES: `mutation SetUserPreferences(
|
|
64
65
|
$user: String!,
|
|
65
66
|
$instructions: String!,
|
|
66
|
-
$location: String
|
|
67
|
-
|
|
67
|
+
$location: String,
|
|
68
|
+
$engine: String) {
|
|
69
|
+
setUserPreferences(
|
|
68
70
|
user: $user,
|
|
69
71
|
instructions: $instructions,
|
|
70
|
-
location: $location
|
|
72
|
+
location: $location,
|
|
73
|
+
engine: $engine)
|
|
71
74
|
}`
|
|
72
|
-
},
|
|
75
|
+
}, St = {
|
|
73
76
|
GET_LOCATION: {
|
|
74
77
|
schema: _.GET_LOCATION,
|
|
75
78
|
method: "location",
|
|
@@ -110,25 +113,28 @@ const _ = {
|
|
|
110
113
|
ABOUT: {
|
|
111
114
|
schema: _.ABOUT,
|
|
112
115
|
method: "about",
|
|
113
|
-
data: () => ({
|
|
116
|
+
data: (e) => ({
|
|
117
|
+
user: e.user
|
|
118
|
+
})
|
|
114
119
|
},
|
|
115
|
-
|
|
116
|
-
schema: _.
|
|
117
|
-
method: "
|
|
120
|
+
GET_USER_PREFERENCES: {
|
|
121
|
+
schema: _.GET_USER_PREFERENCES,
|
|
122
|
+
method: "getUserPreferences",
|
|
118
123
|
data: (e) => ({
|
|
119
124
|
user: e.user
|
|
120
125
|
})
|
|
121
126
|
},
|
|
122
|
-
|
|
123
|
-
schema: _.
|
|
124
|
-
method: "
|
|
127
|
+
SET_USER_PREFERENCES: {
|
|
128
|
+
schema: _.SET_USER_PREFERENCES,
|
|
129
|
+
method: "setUserPreferences",
|
|
125
130
|
data: (e) => ({
|
|
126
131
|
user: e.user,
|
|
127
132
|
instructions: e.instructions,
|
|
128
|
-
location: e.location
|
|
133
|
+
location: e.location,
|
|
134
|
+
engine: e.engine
|
|
129
135
|
})
|
|
130
136
|
}
|
|
131
|
-
}, le = process.env.PUBLIC_SASSY_API_SERVER_URL,
|
|
137
|
+
}, le = process.env.PUBLIC_SASSY_API_SERVER_URL, Ie = async ({
|
|
132
138
|
query: e,
|
|
133
139
|
data: r,
|
|
134
140
|
headers: t = {}
|
|
@@ -144,14 +150,14 @@ const _ = {
|
|
|
144
150
|
query: e,
|
|
145
151
|
variables: r
|
|
146
152
|
})
|
|
147
|
-
}),
|
|
153
|
+
}), Ct = async ({
|
|
148
154
|
accessToken: e,
|
|
149
155
|
type: r,
|
|
150
156
|
params: t = {}
|
|
151
157
|
}) => {
|
|
152
158
|
const a = r != null && r.data ? r.data(t) : t;
|
|
153
159
|
try {
|
|
154
|
-
const o = `Bearer ${e}`, n = await
|
|
160
|
+
const o = `Bearer ${e}`, n = await Ie({
|
|
155
161
|
headers: {
|
|
156
162
|
authorization: o
|
|
157
163
|
},
|
|
@@ -169,7 +175,7 @@ const _ = {
|
|
|
169
175
|
} catch (o) {
|
|
170
176
|
return console.error(o), { status: 500, data: [] };
|
|
171
177
|
}
|
|
172
|
-
},
|
|
178
|
+
}, At = async ({
|
|
173
179
|
accessToken: e,
|
|
174
180
|
name: r,
|
|
175
181
|
data: t,
|
|
@@ -185,26 +191,7 @@ const _ = {
|
|
|
185
191
|
},
|
|
186
192
|
body: JSON.stringify(t)
|
|
187
193
|
});
|
|
188
|
-
}
|
|
189
|
-
state: {
|
|
190
|
-
id: "",
|
|
191
|
-
model: Ee,
|
|
192
|
-
usage: 0,
|
|
193
|
-
messages: [],
|
|
194
|
-
isComponent: !1
|
|
195
|
-
},
|
|
196
|
-
dispatch: () => {
|
|
197
|
-
},
|
|
198
|
-
serverStats: { version: "", models: [], plugins: [] }
|
|
199
|
-
}), Ot = T.createContext({
|
|
200
|
-
state: { searchString: "", sortedCell: "", sortDirection: "" },
|
|
201
|
-
dispatch: () => {
|
|
202
|
-
}
|
|
203
|
-
}), Bt = T.createContext({
|
|
204
|
-
state: { tag: "" },
|
|
205
|
-
dispatch: () => {
|
|
206
|
-
}
|
|
207
|
-
});
|
|
194
|
+
};
|
|
208
195
|
function se(e, r) {
|
|
209
196
|
window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: r }));
|
|
210
197
|
}
|
|
@@ -215,12 +202,12 @@ const re = (e, r) => {
|
|
|
215
202
|
window.localStorage.setItem(e, t), se(e, t);
|
|
216
203
|
}, Re = (e) => {
|
|
217
204
|
window.localStorage.removeItem(e), se(e, null);
|
|
218
|
-
}, ae = (e) => window.localStorage.getItem(e),
|
|
219
|
-
function
|
|
205
|
+
}, ae = (e) => window.localStorage.getItem(e), $e = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
206
|
+
function It({
|
|
220
207
|
key: e,
|
|
221
208
|
initialValue: r
|
|
222
209
|
}) {
|
|
223
|
-
const t =
|
|
210
|
+
const t = Ne($e, () => ae(e)), a = O(
|
|
224
211
|
(i) => {
|
|
225
212
|
try {
|
|
226
213
|
const s = typeof i == "function" ? i(JSON.parse(t)) : i;
|
|
@@ -230,9 +217,9 @@ function Ht({
|
|
|
230
217
|
}
|
|
231
218
|
},
|
|
232
219
|
[e, t]
|
|
233
|
-
), o =
|
|
220
|
+
), o = O(() => {
|
|
234
221
|
a(r);
|
|
235
|
-
}, [r, a]), n =
|
|
222
|
+
}, [r, a]), n = O(() => {
|
|
236
223
|
a(null);
|
|
237
224
|
}, [a]);
|
|
238
225
|
return R(() => {
|
|
@@ -244,13 +231,13 @@ function Ht({
|
|
|
244
231
|
}, [e, r]), [t ? JSON.parse(t) : null, a, o, n];
|
|
245
232
|
}
|
|
246
233
|
/*!
|
|
247
|
-
@versini/ui-table v1.0.
|
|
234
|
+
@versini/ui-table v1.0.11
|
|
248
235
|
© 2024 gizmette.com
|
|
249
236
|
*/
|
|
250
237
|
try {
|
|
251
238
|
window.__VERSINI_UI_TABLE__ || (window.__VERSINI_UI_TABLE__ = {
|
|
252
|
-
version: "1.0.
|
|
253
|
-
buildTime: "
|
|
239
|
+
version: "1.0.11",
|
|
240
|
+
buildTime: "10/02/2024 09:58 AM EDT",
|
|
254
241
|
homepage: "https://github.com/aversini/ui-components",
|
|
255
242
|
license: "MIT"
|
|
256
243
|
});
|
|
@@ -265,7 +252,7 @@ const Be = (e) => {
|
|
|
265
252
|
(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(" ");
|
|
266
253
|
}
|
|
267
254
|
return r;
|
|
268
|
-
},
|
|
255
|
+
}, D = "thead", Y = "tfoot", T = "tbody", M = {
|
|
269
256
|
ASC: "asc",
|
|
270
257
|
DESC: "desc"
|
|
271
258
|
}, He = ({
|
|
@@ -301,7 +288,7 @@ const Be = (e) => {
|
|
|
301
288
|
"text-copy-light dark:text-copy-dark": e === "system",
|
|
302
289
|
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
303
290
|
})
|
|
304
|
-
}),
|
|
291
|
+
}), Le = ({
|
|
305
292
|
className: e,
|
|
306
293
|
stickyHeader: r,
|
|
307
294
|
mode: t
|
|
@@ -311,7 +298,7 @@ const Be = (e) => {
|
|
|
311
298
|
"shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem] dark:shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem]": r && t === "system",
|
|
312
299
|
"shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem]": r && t === "light",
|
|
313
300
|
"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"
|
|
314
|
-
}),
|
|
301
|
+
}), Ue = ({
|
|
315
302
|
className: e,
|
|
316
303
|
stickyFooter: r,
|
|
317
304
|
mode: t
|
|
@@ -321,25 +308,25 @@ const Be = (e) => {
|
|
|
321
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",
|
|
322
309
|
"shadow-[rgb(65_65_65_/30%)_0_-0.5rem_1rem]": r && t === "light",
|
|
323
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"
|
|
324
|
-
}),
|
|
311
|
+
}), Ve = ({
|
|
325
312
|
mode: e,
|
|
326
313
|
className: r,
|
|
327
314
|
cellWrapper: t
|
|
328
|
-
}) => t ===
|
|
315
|
+
}) => t === D || t === Y ? l({
|
|
329
316
|
"bg-table-head-dark": e === "dark",
|
|
330
317
|
"bg-table-head-light": e === "light",
|
|
331
318
|
"bg-table-head-dark dark:bg-table-head-light": e === "system",
|
|
332
319
|
"bg-table-head-light dark:bg-table-head-dark": e === "alt-system"
|
|
333
320
|
}) : l("border-b last:border-0", r, {
|
|
334
321
|
"border-table-dark": e === "dark",
|
|
335
|
-
"odd:bg-table-dark-odd even:bg-table-dark-even": t ===
|
|
322
|
+
"odd:bg-table-dark-odd even:bg-table-dark-even": t === T && e === "dark",
|
|
336
323
|
"border-table-light": e === "light",
|
|
337
|
-
"odd:bg-table-light-odd even:bg-table-light-even": t ===
|
|
324
|
+
"odd:bg-table-light-odd even:bg-table-light-even": t === T && e === "light",
|
|
338
325
|
"border-table-dark dark:border-table-light": e === "system",
|
|
339
|
-
"odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": t ===
|
|
326
|
+
"odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": t === T && e === "system",
|
|
340
327
|
"border-table-light dark:border-table-dark": e === "alt-system",
|
|
341
|
-
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": t ===
|
|
342
|
-
}),
|
|
328
|
+
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": t === T && e === "alt-system"
|
|
329
|
+
}), Me = ({
|
|
343
330
|
cellWrapper: e,
|
|
344
331
|
className: r,
|
|
345
332
|
compact: t,
|
|
@@ -349,10 +336,10 @@ const Be = (e) => {
|
|
|
349
336
|
"text-copy-dark": a === "light",
|
|
350
337
|
"text-copy-light dark:text-copy-dark": a === "system",
|
|
351
338
|
"text-copy-dark dark:text-copy-light": a === "alt-system",
|
|
352
|
-
"px-4 py-3": !t && (e ===
|
|
353
|
-
"p-4": !t && e ===
|
|
339
|
+
"px-4 py-3": !t && (e === D || e === Y),
|
|
340
|
+
"p-4": !t && e === T,
|
|
354
341
|
"px-4 py-1": t
|
|
355
|
-
}), oe = "av-button",
|
|
342
|
+
}), oe = "av-button", Oe = (e) => {
|
|
356
343
|
let r = "";
|
|
357
344
|
if (typeof e == "number" || typeof e == "string")
|
|
358
345
|
r = "m-" + e;
|
|
@@ -361,7 +348,7 @@ const Be = (e) => {
|
|
|
361
348
|
(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(" ");
|
|
362
349
|
}
|
|
363
350
|
return r;
|
|
364
|
-
}, ce = "icon", ze = "button",
|
|
351
|
+
}, ce = "icon", ze = "button", De = "link", Pe = ({
|
|
365
352
|
type: e,
|
|
366
353
|
size: r,
|
|
367
354
|
labelRight: t,
|
|
@@ -376,7 +363,7 @@ const Be = (e) => {
|
|
|
376
363
|
[i]: r === "medium",
|
|
377
364
|
[s]: r === "large"
|
|
378
365
|
});
|
|
379
|
-
case
|
|
366
|
+
case De:
|
|
380
367
|
return l("px-4 text-center", {
|
|
381
368
|
[n]: r === "small",
|
|
382
369
|
[i]: r === "medium",
|
|
@@ -427,7 +414,7 @@ const Be = (e) => {
|
|
|
427
414
|
"bg-action-danger-dark text-copy-light dark:bg-action-danger-light dark:text-copy-lighter": e === "system",
|
|
428
415
|
"bg-action-danger-light text-copy-lighter dark:bg-action-danger-dark dark:text-copy-light": e === "alt-system"
|
|
429
416
|
});
|
|
430
|
-
},
|
|
417
|
+
}, Ge = ({
|
|
431
418
|
mode: e,
|
|
432
419
|
disabled: r,
|
|
433
420
|
variant: t
|
|
@@ -455,7 +442,7 @@ const Be = (e) => {
|
|
|
455
442
|
"hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
|
|
456
443
|
"hover:bg-action-danger-light-hover dark:hover:bg-action-danger-dark-hover": e === "alt-system"
|
|
457
444
|
});
|
|
458
|
-
},
|
|
445
|
+
}, je = ({
|
|
459
446
|
mode: e,
|
|
460
447
|
disabled: r,
|
|
461
448
|
variant: t
|
|
@@ -483,7 +470,7 @@ const Be = (e) => {
|
|
|
483
470
|
"active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
|
|
484
471
|
"active:bg-action-danger-light-active dark:active:bg-action-danger-dark-active": e === "alt-system"
|
|
485
472
|
});
|
|
486
|
-
},
|
|
473
|
+
}, We = ({
|
|
487
474
|
mode: e,
|
|
488
475
|
noBorder: r,
|
|
489
476
|
variant: t
|
|
@@ -511,12 +498,12 @@ const Be = (e) => {
|
|
|
511
498
|
"border-border-danger-dark dark:border-border-danger-medium": e === "system",
|
|
512
499
|
"border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
|
|
513
500
|
});
|
|
514
|
-
},
|
|
501
|
+
}, qe = ({ focusMode: e }) => l("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
515
502
|
"focus:outline-focus-dark": e === "dark",
|
|
516
503
|
"focus:outline-focus-light": e === "light",
|
|
517
504
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
518
505
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
519
|
-
}),
|
|
506
|
+
}), Je = ({
|
|
520
507
|
type: e,
|
|
521
508
|
className: r,
|
|
522
509
|
raw: t,
|
|
@@ -536,28 +523,28 @@ const Be = (e) => {
|
|
|
536
523
|
}) => (h || (h = "primary"), t ? l(oe, r) : l(
|
|
537
524
|
oe,
|
|
538
525
|
r,
|
|
539
|
-
|
|
526
|
+
Oe(b),
|
|
540
527
|
Fe({ mode: a, variant: h, noBackground: g, noTruncate: p }),
|
|
541
528
|
Pe({ type: e, size: s, labelRight: u, labelLeft: m, align: x }),
|
|
542
|
-
|
|
543
|
-
|
|
529
|
+
We({ mode: a, variant: h, noBorder: d }),
|
|
530
|
+
qe({ focusMode: o }),
|
|
531
|
+
Ge({ mode: a, variant: h, disabled: n }),
|
|
544
532
|
je({ mode: a, variant: h, disabled: n }),
|
|
545
|
-
We({ mode: a, variant: h, disabled: n }),
|
|
546
533
|
{
|
|
547
534
|
"w-full": i,
|
|
548
535
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
|
549
536
|
}
|
|
550
|
-
)),
|
|
537
|
+
)), Qe = (e, r, t) => {
|
|
551
538
|
var a;
|
|
552
539
|
!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);
|
|
553
|
-
}, de =
|
|
540
|
+
}, de = z.forwardRef((e, r) => {
|
|
554
541
|
const { onClick: t, noInternalClick: a = !1, ...o } = e;
|
|
555
542
|
return /* @__PURE__ */ c(
|
|
556
543
|
"button",
|
|
557
544
|
{
|
|
558
545
|
ref: r,
|
|
559
546
|
onClick: (n) => {
|
|
560
|
-
|
|
547
|
+
Qe(n, a, t);
|
|
561
548
|
},
|
|
562
549
|
...o
|
|
563
550
|
}
|
|
@@ -571,13 +558,13 @@ de.displayName = "BaseButton";
|
|
|
571
558
|
try {
|
|
572
559
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
573
560
|
version: "1.1.10",
|
|
574
|
-
buildTime: "
|
|
561
|
+
buildTime: "10/02/2024 09:57 AM EDT",
|
|
575
562
|
homepage: "https://github.com/aversini/ui-components",
|
|
576
563
|
license: "MIT"
|
|
577
564
|
});
|
|
578
565
|
} catch {
|
|
579
566
|
}
|
|
580
|
-
const ue =
|
|
567
|
+
const ue = z.forwardRef(
|
|
581
568
|
({
|
|
582
569
|
children: e,
|
|
583
570
|
disabled: r = !1,
|
|
@@ -598,8 +585,8 @@ const ue = T.forwardRef(
|
|
|
598
585
|
align: S = "center",
|
|
599
586
|
active: B = !1,
|
|
600
587
|
...H
|
|
601
|
-
},
|
|
602
|
-
const
|
|
588
|
+
}, L) => {
|
|
589
|
+
const P = Je({
|
|
603
590
|
type: ce,
|
|
604
591
|
mode: t,
|
|
605
592
|
focusMode: a,
|
|
@@ -614,12 +601,12 @@ const ue = T.forwardRef(
|
|
|
614
601
|
spacing: p,
|
|
615
602
|
noBackground: x,
|
|
616
603
|
align: S
|
|
617
|
-
}),
|
|
604
|
+
}), F = l({
|
|
618
605
|
"text-copy-accent-dark": t === "light" && !s,
|
|
619
606
|
"text-copy-light": t === "dark" && !s,
|
|
620
607
|
"text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !s,
|
|
621
608
|
"text-copy-light dark:text-copy-accent-dark": t === "system" && !s
|
|
622
|
-
}),
|
|
609
|
+
}), G = B ? l(
|
|
623
610
|
"relative",
|
|
624
611
|
"focus-within:static",
|
|
625
612
|
"focus-within:after:border-transparent",
|
|
@@ -636,18 +623,18 @@ const ue = T.forwardRef(
|
|
|
636
623
|
"after:border-table-light dark:after:border-table-dark": t === "alt-system"
|
|
637
624
|
}
|
|
638
625
|
) : "";
|
|
639
|
-
return /* @__PURE__ */ c("div", { className:
|
|
626
|
+
return /* @__PURE__ */ c("div", { className: G, children: /* @__PURE__ */ w(
|
|
640
627
|
de,
|
|
641
628
|
{
|
|
642
|
-
ref:
|
|
643
|
-
className:
|
|
629
|
+
ref: L,
|
|
630
|
+
className: P,
|
|
644
631
|
disabled: r,
|
|
645
632
|
type: i,
|
|
646
633
|
"aria-label": u || m,
|
|
647
634
|
...H,
|
|
648
635
|
children: [
|
|
649
636
|
h && /* @__PURE__ */ c("span", { className: "pr-2", children: h }),
|
|
650
|
-
/* @__PURE__ */ c("div", { className:
|
|
637
|
+
/* @__PURE__ */ c("div", { className: F, children: e }),
|
|
651
638
|
g && /* @__PURE__ */ c("span", { className: "pl-2", children: g })
|
|
652
639
|
]
|
|
653
640
|
}
|
|
@@ -655,7 +642,7 @@ const ue = T.forwardRef(
|
|
|
655
642
|
}
|
|
656
643
|
);
|
|
657
644
|
ue.displayName = "ButtonSort";
|
|
658
|
-
const
|
|
645
|
+
const Ye = (e) => {
|
|
659
646
|
let r = "";
|
|
660
647
|
if (typeof e == "number" || typeof e == "string")
|
|
661
648
|
r = "m-" + e;
|
|
@@ -676,7 +663,7 @@ const Xe = (e) => {
|
|
|
676
663
|
semantic: d = !1,
|
|
677
664
|
...u
|
|
678
665
|
}) => {
|
|
679
|
-
const m =
|
|
666
|
+
const m = Ye(i), b = l(
|
|
680
667
|
m,
|
|
681
668
|
a || n
|
|
682
669
|
);
|
|
@@ -705,13 +692,13 @@ const Xe = (e) => {
|
|
|
705
692
|
try {
|
|
706
693
|
window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
|
|
707
694
|
version: "1.4.17",
|
|
708
|
-
buildTime: "
|
|
695
|
+
buildTime: "10/02/2024 09:57 AM EDT",
|
|
709
696
|
homepage: "https://github.com/aversini/ui-components",
|
|
710
697
|
license: "MIT"
|
|
711
698
|
});
|
|
712
699
|
} catch {
|
|
713
700
|
}
|
|
714
|
-
const
|
|
701
|
+
const Xe = ({
|
|
715
702
|
className: e,
|
|
716
703
|
viewBox: r,
|
|
717
704
|
spacing: t,
|
|
@@ -739,7 +726,7 @@ const Ke = ({
|
|
|
739
726
|
/* @__PURE__ */ c("path", { d: "M137.4 470.6c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 370.7V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V370.7L86.6 329.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96z" })
|
|
740
727
|
]
|
|
741
728
|
}
|
|
742
|
-
),
|
|
729
|
+
), Ke = ({
|
|
743
730
|
className: e,
|
|
744
731
|
viewBox: r,
|
|
745
732
|
spacing: t,
|
|
@@ -767,7 +754,7 @@ const Ke = ({
|
|
|
767
754
|
/* @__PURE__ */ c("path", { d: "M128 480c9 0 17.5-3.8 23.6-10.4l88-96c11.9-13 11.1-33.3-2-45.2s-33.3-11.1-45.2 2L160 365.7V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V365.7L63.6 330.4c-11.9-13-32.2-13.9-45.2-2s-13.9 32.2-2 45.2l88 96C110.5 476.2 119 480 128 480z" })
|
|
768
755
|
]
|
|
769
756
|
}
|
|
770
|
-
),
|
|
757
|
+
), Ze = ({
|
|
771
758
|
className: e,
|
|
772
759
|
viewBox: r,
|
|
773
760
|
spacing: t,
|
|
@@ -797,25 +784,25 @@ const Ke = ({
|
|
|
797
784
|
}
|
|
798
785
|
);
|
|
799
786
|
/*!
|
|
800
|
-
@versini/ui-icons v1.
|
|
787
|
+
@versini/ui-icons v1.14.0
|
|
801
788
|
© 2024 gizmette.com
|
|
802
789
|
*/
|
|
803
790
|
try {
|
|
804
791
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
805
|
-
version: "1.
|
|
806
|
-
buildTime: "
|
|
792
|
+
version: "1.14.0",
|
|
793
|
+
buildTime: "10/02/2024 09:57 AM EDT",
|
|
807
794
|
homepage: "https://github.com/aversini/ui-components",
|
|
808
795
|
license: "MIT"
|
|
809
796
|
});
|
|
810
797
|
} catch {
|
|
811
798
|
}
|
|
812
|
-
const
|
|
799
|
+
const N = z.createContext({
|
|
813
800
|
mode: "light",
|
|
814
801
|
cellWrapper: "thead",
|
|
815
802
|
stickyHeader: !1,
|
|
816
803
|
stickyFooter: !1,
|
|
817
804
|
compact: !1
|
|
818
|
-
}),
|
|
805
|
+
}), Rt = ({
|
|
819
806
|
children: e,
|
|
820
807
|
mode: r = "system",
|
|
821
808
|
caption: t,
|
|
@@ -838,7 +825,7 @@ const I = T.createContext({
|
|
|
838
825
|
spacing: m
|
|
839
826
|
});
|
|
840
827
|
return /* @__PURE__ */ c(
|
|
841
|
-
|
|
828
|
+
N.Provider,
|
|
842
829
|
{
|
|
843
830
|
value: { mode: r, stickyHeader: d, stickyFooter: u, compact: a },
|
|
844
831
|
children: /* @__PURE__ */ c(
|
|
@@ -856,60 +843,60 @@ const I = T.createContext({
|
|
|
856
843
|
)
|
|
857
844
|
}
|
|
858
845
|
);
|
|
859
|
-
},
|
|
846
|
+
}, $t = ({
|
|
860
847
|
children: e,
|
|
861
848
|
className: r,
|
|
862
849
|
...t
|
|
863
850
|
}) => {
|
|
864
|
-
const a =
|
|
865
|
-
a.cellWrapper =
|
|
866
|
-
const o =
|
|
851
|
+
const a = $(N);
|
|
852
|
+
a.cellWrapper = D;
|
|
853
|
+
const o = Le({
|
|
867
854
|
className: r,
|
|
868
855
|
mode: a.mode,
|
|
869
856
|
stickyHeader: a.stickyHeader
|
|
870
857
|
});
|
|
871
858
|
return /* @__PURE__ */ c("thead", { className: o, ...t, children: e });
|
|
872
|
-
},
|
|
859
|
+
}, Bt = ({
|
|
873
860
|
children: e,
|
|
874
861
|
className: r,
|
|
875
862
|
...t
|
|
876
863
|
}) => {
|
|
877
|
-
const a =
|
|
864
|
+
const a = $(N);
|
|
878
865
|
a.cellWrapper = Y;
|
|
879
|
-
const o =
|
|
866
|
+
const o = Ue({
|
|
880
867
|
className: r,
|
|
881
868
|
mode: a.mode,
|
|
882
869
|
stickyFooter: a.stickyFooter
|
|
883
870
|
});
|
|
884
871
|
return /* @__PURE__ */ c("tfoot", { className: o, ...t, children: e });
|
|
885
|
-
},
|
|
886
|
-
const t =
|
|
887
|
-
return t.cellWrapper =
|
|
888
|
-
},
|
|
872
|
+
}, Ht = ({ children: e, ...r }) => {
|
|
873
|
+
const t = $(N);
|
|
874
|
+
return t.cellWrapper = T, /* @__PURE__ */ c("tbody", { ...r, children: e });
|
|
875
|
+
}, Lt = ({
|
|
889
876
|
children: e,
|
|
890
877
|
className: r,
|
|
891
878
|
...t
|
|
892
879
|
}) => {
|
|
893
|
-
const a =
|
|
880
|
+
const a = $(N), o = Ve({
|
|
894
881
|
mode: a.mode,
|
|
895
882
|
cellWrapper: a.cellWrapper,
|
|
896
883
|
className: r
|
|
897
884
|
});
|
|
898
885
|
return /* @__PURE__ */ c("tr", { className: o, ...t, children: e });
|
|
899
|
-
},
|
|
886
|
+
}, et = ({
|
|
900
887
|
children: e,
|
|
901
888
|
component: r,
|
|
902
889
|
className: t,
|
|
903
890
|
...a
|
|
904
891
|
}) => {
|
|
905
|
-
const o =
|
|
892
|
+
const o = $(N), n = r || (o.cellWrapper === D ? "th" : "td"), i = Me({
|
|
906
893
|
cellWrapper: o.cellWrapper,
|
|
907
894
|
className: t,
|
|
908
895
|
mode: o.mode,
|
|
909
896
|
compact: o.compact
|
|
910
897
|
});
|
|
911
898
|
return /* @__PURE__ */ c(n, { className: i, ...a, children: e });
|
|
912
|
-
},
|
|
899
|
+
}, Ut = ({
|
|
913
900
|
align: e,
|
|
914
901
|
children: r,
|
|
915
902
|
className: t,
|
|
@@ -922,12 +909,12 @@ const I = T.createContext({
|
|
|
922
909
|
cellId: u,
|
|
923
910
|
...m
|
|
924
911
|
}) => /* @__PURE__ */ c(
|
|
925
|
-
|
|
912
|
+
et,
|
|
926
913
|
{
|
|
927
914
|
component: a,
|
|
928
915
|
className: t,
|
|
929
916
|
role: "columnheader",
|
|
930
|
-
"aria-sort": s ===
|
|
917
|
+
"aria-sort": s === M.ASC && d === u ? "ascending" : s === M.DESC && d === u ? "descending" : "other",
|
|
931
918
|
...m,
|
|
932
919
|
children: /* @__PURE__ */ c(
|
|
933
920
|
ue,
|
|
@@ -941,7 +928,7 @@ const I = T.createContext({
|
|
|
941
928
|
mode: n,
|
|
942
929
|
fullWidth: !0,
|
|
943
930
|
labelRight: r,
|
|
944
|
-
children: s ===
|
|
931
|
+
children: s === M.ASC && d === u ? /* @__PURE__ */ c(Ze, { className: "size-4", monotone: !0 }) : s === M.DESC && d === u ? /* @__PURE__ */ c(Ke, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ c(Xe, { className: "size-4", monotone: !0 })
|
|
945
932
|
}
|
|
946
933
|
)
|
|
947
934
|
}
|
|
@@ -959,14 +946,14 @@ try {
|
|
|
959
946
|
});
|
|
960
947
|
} catch {
|
|
961
948
|
}
|
|
962
|
-
const me = "av-text-area",
|
|
963
|
-
function
|
|
949
|
+
const me = "av-text-area", tt = "av-text-area-wrapper", Q = "av-text-area-helper-text", rt = "av-text-area__control--right";
|
|
950
|
+
function at() {
|
|
964
951
|
const e = f(!1);
|
|
965
952
|
return R(() => (e.current = !0, () => {
|
|
966
953
|
e.current = !1;
|
|
967
|
-
}), []),
|
|
954
|
+
}), []), O(() => e.current, []);
|
|
968
955
|
}
|
|
969
|
-
function
|
|
956
|
+
function ot(e) {
|
|
970
957
|
return ie(() => e.every((r) => r == null) ? () => {
|
|
971
958
|
} : (r) => {
|
|
972
959
|
e.forEach((t) => {
|
|
@@ -974,7 +961,7 @@ function nt(e) {
|
|
|
974
961
|
});
|
|
975
962
|
}, e);
|
|
976
963
|
}
|
|
977
|
-
const
|
|
964
|
+
const nt = {
|
|
978
965
|
x: 0,
|
|
979
966
|
y: 0,
|
|
980
967
|
width: 0,
|
|
@@ -984,8 +971,8 @@ const it = {
|
|
|
984
971
|
bottom: 0,
|
|
985
972
|
right: 0
|
|
986
973
|
};
|
|
987
|
-
function
|
|
988
|
-
const r =
|
|
974
|
+
function it(e) {
|
|
975
|
+
const r = at(), t = f(0), a = f(null), [o, n] = I(nt), i = ie(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
|
|
989
976
|
const d = s[0];
|
|
990
977
|
d && (cancelAnimationFrame(t.current), t.current = requestAnimationFrame(() => {
|
|
991
978
|
a.current && r() && n(d.contentRect);
|
|
@@ -995,7 +982,7 @@ function lt(e) {
|
|
|
995
982
|
i == null || i.disconnect(), t.current && cancelAnimationFrame(t.current);
|
|
996
983
|
}), [i, e]), [a, o];
|
|
997
984
|
}
|
|
998
|
-
function
|
|
985
|
+
function lt({
|
|
999
986
|
value: e,
|
|
1000
987
|
defaultValue: r,
|
|
1001
988
|
finalValue: t,
|
|
@@ -1003,7 +990,7 @@ function st({
|
|
|
1003
990
|
},
|
|
1004
991
|
initialControlledDelay: o = 0
|
|
1005
992
|
}) {
|
|
1006
|
-
const [n, i] =
|
|
993
|
+
const [n, i] = I(!1), [s, d] = I(
|
|
1007
994
|
r !== void 0 ? r : t
|
|
1008
995
|
), u = (m) => {
|
|
1009
996
|
d(m), a == null || a(m);
|
|
@@ -1014,8 +1001,8 @@ function st({
|
|
|
1014
1001
|
), i(!0)))();
|
|
1015
1002
|
}, [e, o, n]), e !== void 0 ? !n && o > 0 ? ["", a, !0] : [e, a, !0] : [s, u, !1];
|
|
1016
1003
|
}
|
|
1017
|
-
function
|
|
1018
|
-
const r =
|
|
1004
|
+
function st(e) {
|
|
1005
|
+
const r = Se();
|
|
1019
1006
|
if (!e)
|
|
1020
1007
|
return r;
|
|
1021
1008
|
if (typeof e == "number" || typeof e == "string")
|
|
@@ -1025,7 +1012,7 @@ function ct(e) {
|
|
|
1025
1012
|
return typeof t == "number" || typeof t == "string" ? `${a}${t}` : `${a}${r}`;
|
|
1026
1013
|
}
|
|
1027
1014
|
}
|
|
1028
|
-
const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT",
|
|
1015
|
+
const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT", ct = {
|
|
1029
1016
|
alert: null,
|
|
1030
1017
|
alertdialog: null,
|
|
1031
1018
|
log: "polite",
|
|
@@ -1033,7 +1020,7 @@ const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT", dt = {
|
|
|
1033
1020
|
progressbar: null,
|
|
1034
1021
|
status: "polite",
|
|
1035
1022
|
timer: "assertive"
|
|
1036
|
-
},
|
|
1023
|
+
}, dt = (e, r) => {
|
|
1037
1024
|
switch (r == null ? void 0 : r.type) {
|
|
1038
1025
|
case he:
|
|
1039
1026
|
return {
|
|
@@ -1048,7 +1035,7 @@ const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT", dt = {
|
|
|
1048
1035
|
default:
|
|
1049
1036
|
return e;
|
|
1050
1037
|
}
|
|
1051
|
-
},
|
|
1038
|
+
}, ut = ({
|
|
1052
1039
|
onAnnouncementClear: e,
|
|
1053
1040
|
dispatch: r
|
|
1054
1041
|
}) => {
|
|
@@ -1066,13 +1053,13 @@ const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT", dt = {
|
|
|
1066
1053
|
type: he,
|
|
1067
1054
|
payload: e
|
|
1068
1055
|
}), r && (t.current = setTimeout(
|
|
1069
|
-
() =>
|
|
1056
|
+
() => ut({
|
|
1070
1057
|
onAnnouncementClear: a,
|
|
1071
1058
|
dispatch: o
|
|
1072
1059
|
}),
|
|
1073
1060
|
r
|
|
1074
1061
|
));
|
|
1075
|
-
},
|
|
1062
|
+
}, mt = ({
|
|
1076
1063
|
children: e,
|
|
1077
1064
|
announcementTimeoutRef: r,
|
|
1078
1065
|
announcementDelay: t,
|
|
@@ -1095,7 +1082,7 @@ const he = "SET_ANNOUNCEMENT", ge = "CLEAR_ANNOUNCEMENT", dt = {
|
|
|
1095
1082
|
dispatch: i
|
|
1096
1083
|
});
|
|
1097
1084
|
};
|
|
1098
|
-
function
|
|
1085
|
+
function ht({
|
|
1099
1086
|
children: e,
|
|
1100
1087
|
className: r,
|
|
1101
1088
|
politeness: t,
|
|
@@ -1106,12 +1093,12 @@ function gt({
|
|
|
1106
1093
|
visible: s,
|
|
1107
1094
|
...d
|
|
1108
1095
|
}) {
|
|
1109
|
-
const u = f(), m = f(), [b, g] =
|
|
1096
|
+
const u = f(), m = f(), [b, g] = Ce(dt, {
|
|
1110
1097
|
announcement: null
|
|
1111
1098
|
});
|
|
1112
1099
|
let h = t;
|
|
1113
|
-
typeof h > "u" && (h = a ?
|
|
1114
|
-
|
|
1100
|
+
typeof h > "u" && (h = a ? ct[a] : "assertive"), R(() => {
|
|
1101
|
+
mt({
|
|
1115
1102
|
announcementTimeoutRef: u,
|
|
1116
1103
|
announcementDelay: o,
|
|
1117
1104
|
children: e,
|
|
@@ -1140,7 +1127,7 @@ function gt({
|
|
|
1140
1127
|
}
|
|
1141
1128
|
);
|
|
1142
1129
|
}
|
|
1143
|
-
const
|
|
1130
|
+
const gt = (e) => {
|
|
1144
1131
|
let r = "";
|
|
1145
1132
|
if (typeof e == "number" || typeof e == "string")
|
|
1146
1133
|
r = "m-" + e;
|
|
@@ -1163,21 +1150,21 @@ try {
|
|
|
1163
1150
|
});
|
|
1164
1151
|
} catch {
|
|
1165
1152
|
}
|
|
1166
|
-
const
|
|
1153
|
+
const pt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", bt = ({
|
|
1167
1154
|
mode: e
|
|
1168
1155
|
}) => l({
|
|
1169
1156
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
|
1170
1157
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
1171
1158
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
1172
1159
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
1173
|
-
}),
|
|
1160
|
+
}), yt = ({
|
|
1174
1161
|
focusMode: e
|
|
1175
1162
|
}) => l("focus:outline focus:outline-2 focus:outline-offset-2", {
|
|
1176
1163
|
"focus:outline-focus-dark": e === "dark",
|
|
1177
1164
|
"focus:outline-focus-light": e === "light",
|
|
1178
1165
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
1179
1166
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
1180
|
-
}),
|
|
1167
|
+
}), ft = ({
|
|
1181
1168
|
noBorder: e,
|
|
1182
1169
|
error: r
|
|
1183
1170
|
}) => l("border-2", {
|
|
@@ -1185,7 +1172,7 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1185
1172
|
"focus:border-border-dark": !e && r,
|
|
1186
1173
|
"border-border-error-dark": !e && r,
|
|
1187
1174
|
"border-transparent": e
|
|
1188
|
-
}),
|
|
1175
|
+
}), kt = ({
|
|
1189
1176
|
disabled: e,
|
|
1190
1177
|
raw: r,
|
|
1191
1178
|
error: t,
|
|
@@ -1209,7 +1196,7 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1209
1196
|
"text-copy-error-dark dark:text-copy-error-light": a === "system",
|
|
1210
1197
|
"text-copy-medium dark:text-copy-error-dark": a === "alt-system"
|
|
1211
1198
|
});
|
|
1212
|
-
},
|
|
1199
|
+
}, vt = ({
|
|
1213
1200
|
error: e,
|
|
1214
1201
|
raw: r,
|
|
1215
1202
|
mode: t,
|
|
@@ -1236,7 +1223,7 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1236
1223
|
"text-copy-error-dark dark:text-copy-error-light": t === "system",
|
|
1237
1224
|
"dark:text-copy-error-dark text-copy-error-light": t === "alt-system"
|
|
1238
1225
|
});
|
|
1239
|
-
},
|
|
1226
|
+
}, _t = ({
|
|
1240
1227
|
className: e,
|
|
1241
1228
|
textAreaClassName: r,
|
|
1242
1229
|
raw: t,
|
|
@@ -1249,33 +1236,33 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1249
1236
|
}) => {
|
|
1250
1237
|
const u = t ? e : l(
|
|
1251
1238
|
"relative flex w-full flex-col justify-center",
|
|
1252
|
-
|
|
1239
|
+
tt,
|
|
1253
1240
|
e,
|
|
1254
|
-
|
|
1241
|
+
gt(s)
|
|
1255
1242
|
), m = t ? l(r) : l(
|
|
1256
1243
|
me,
|
|
1257
1244
|
r,
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1245
|
+
pt(),
|
|
1246
|
+
bt({ mode: d }),
|
|
1247
|
+
yt({ focusMode: a }),
|
|
1248
|
+
ft({
|
|
1262
1249
|
noBorder: n,
|
|
1263
1250
|
error: i
|
|
1264
1251
|
}),
|
|
1265
1252
|
{
|
|
1266
1253
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
1267
1254
|
}
|
|
1268
|
-
), b = t ? void 0 : "sr-only", g =
|
|
1255
|
+
), b = t ? void 0 : "sr-only", g = kt({
|
|
1269
1256
|
disabled: o,
|
|
1270
1257
|
raw: t,
|
|
1271
1258
|
error: i,
|
|
1272
1259
|
mode: d
|
|
1273
|
-
}), h =
|
|
1260
|
+
}), h = vt({
|
|
1274
1261
|
error: i,
|
|
1275
1262
|
raw: t,
|
|
1276
1263
|
mode: d,
|
|
1277
1264
|
disabled: o
|
|
1278
|
-
}), p = t ? void 0 : l(
|
|
1265
|
+
}), p = t ? void 0 : l(rt, "absolute");
|
|
1279
1266
|
return {
|
|
1280
1267
|
wrapper: u,
|
|
1281
1268
|
textArea: m,
|
|
@@ -1284,7 +1271,7 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1284
1271
|
helperText: h,
|
|
1285
1272
|
rightElement: p
|
|
1286
1273
|
};
|
|
1287
|
-
},
|
|
1274
|
+
}, xt = ({
|
|
1288
1275
|
scrollHeight: e,
|
|
1289
1276
|
currentHeight: r,
|
|
1290
1277
|
currentLabelOffset: t = 0,
|
|
@@ -1300,7 +1287,7 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1300
1287
|
helperTextOffset: n,
|
|
1301
1288
|
scrollHeight: e
|
|
1302
1289
|
};
|
|
1303
|
-
}, wt =
|
|
1290
|
+
}, wt = z.forwardRef(
|
|
1304
1291
|
({
|
|
1305
1292
|
id: e,
|
|
1306
1293
|
name: r,
|
|
@@ -1321,13 +1308,13 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1321
1308
|
rightElement: S,
|
|
1322
1309
|
onChange: B,
|
|
1323
1310
|
onFocus: H,
|
|
1324
|
-
onBlur:
|
|
1325
|
-
spacing:
|
|
1326
|
-
...
|
|
1327
|
-
},
|
|
1328
|
-
const k = f(null), pe =
|
|
1311
|
+
onBlur: L,
|
|
1312
|
+
spacing: P,
|
|
1313
|
+
...F
|
|
1314
|
+
}, G) => {
|
|
1315
|
+
const k = f(null), pe = ot([G, k]), [be, U] = it(), j = f(80), K = f(-25), C = f(null), Z = f(30), W = f(null), A = st({ id: e, prefix: `${me}-` }), [ye, fe] = I(0), [ke, ee] = I(
|
|
1329
1316
|
!!(!x && p)
|
|
1330
|
-
), ve = `${r} error, ${p}`,
|
|
1317
|
+
), ve = `${r} error, ${p}`, E = _t({
|
|
1331
1318
|
className: n,
|
|
1332
1319
|
textAreaClassName: i,
|
|
1333
1320
|
error: a,
|
|
@@ -1335,9 +1322,9 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1335
1322
|
focusMode: d,
|
|
1336
1323
|
disabled: b,
|
|
1337
1324
|
noBorder: g,
|
|
1338
|
-
spacing:
|
|
1325
|
+
spacing: P,
|
|
1339
1326
|
mode: s
|
|
1340
|
-
}), [v, _e] =
|
|
1327
|
+
}), [v, _e] = lt({
|
|
1341
1328
|
value: u,
|
|
1342
1329
|
initialControlledDelay: 20,
|
|
1343
1330
|
defaultValue: m,
|
|
@@ -1350,47 +1337,47 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1350
1337
|
}
|
|
1351
1338
|
}), xe = (y) => {
|
|
1352
1339
|
_e(y.target.value);
|
|
1353
|
-
}, Te = (y) => {
|
|
1354
|
-
x && p && ee(!0), H && H(y);
|
|
1355
1340
|
}, we = (y) => {
|
|
1356
|
-
x && p &&
|
|
1341
|
+
x && p && ee(!0), H && H(y);
|
|
1342
|
+
}, Ee = (y) => {
|
|
1343
|
+
x && p && !v && ee(!1), L && L(y);
|
|
1357
1344
|
};
|
|
1358
|
-
return
|
|
1359
|
-
|
|
1360
|
-
}, [
|
|
1345
|
+
return V(() => {
|
|
1346
|
+
U && U.width && fe(U.width + 18 + 10);
|
|
1347
|
+
}, [U]), V(() => {
|
|
1361
1348
|
o || k && k.current && v !== void 0 && (k.current.style.height = "inherit", k.current.style.height = k.current.scrollHeight + "px");
|
|
1362
|
-
}, [v, o]),
|
|
1349
|
+
}, [v, o]), V(() => {
|
|
1363
1350
|
o || setTimeout(() => {
|
|
1364
1351
|
var y;
|
|
1365
|
-
(y =
|
|
1352
|
+
(y = C == null ? void 0 : C.current) == null || y.style.setProperty(
|
|
1366
1353
|
"--av-text-area-wrapper-transition",
|
|
1367
1354
|
v ? "none" : "all 0.2s ease-out"
|
|
1368
1355
|
);
|
|
1369
1356
|
}, 0);
|
|
1370
|
-
}, [v, o]),
|
|
1357
|
+
}, [v, o]), V(() => {
|
|
1371
1358
|
var y, te;
|
|
1372
1359
|
if (!o && k && k.current && v !== void 0) {
|
|
1373
|
-
const { labelOffset: q, helperTextOffset: J, scrollHeight:
|
|
1360
|
+
const { labelOffset: q, helperTextOffset: J, scrollHeight: Te } = xt({
|
|
1374
1361
|
scrollHeight: k.current.scrollHeight,
|
|
1375
1362
|
currentHeight: j.current,
|
|
1376
1363
|
currentLabelOffset: K.current,
|
|
1377
1364
|
currentHelperTextOffset: Z.current
|
|
1378
1365
|
});
|
|
1379
|
-
q && (K.current = q, (y =
|
|
1366
|
+
q && (K.current = q, (y = C == null ? void 0 : C.current) == null || y.style.setProperty(
|
|
1380
1367
|
"--av-text-area-label",
|
|
1381
1368
|
`${q}px`
|
|
1382
1369
|
)), J && (Z.current = J, (te = W == null ? void 0 : W.current) == null || te.style.setProperty(
|
|
1383
1370
|
"--av-text-area-helper-text",
|
|
1384
1371
|
`${J}px`
|
|
1385
|
-
)), j.current =
|
|
1372
|
+
)), j.current = Te || j.current;
|
|
1386
1373
|
}
|
|
1387
|
-
}, [v, o]), /* @__PURE__ */ w("div", { className:
|
|
1374
|
+
}, [v, o]), /* @__PURE__ */ w("div", { className: E.wrapper, children: [
|
|
1388
1375
|
/* @__PURE__ */ c(
|
|
1389
1376
|
"label",
|
|
1390
1377
|
{
|
|
1391
1378
|
htmlFor: A,
|
|
1392
1379
|
id: h,
|
|
1393
|
-
className:
|
|
1380
|
+
className: E.accessibleLabel,
|
|
1394
1381
|
children: t
|
|
1395
1382
|
}
|
|
1396
1383
|
),
|
|
@@ -1402,25 +1389,25 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1402
1389
|
name: r,
|
|
1403
1390
|
disabled: b,
|
|
1404
1391
|
placeholder: o ? void 0 : " ",
|
|
1405
|
-
className:
|
|
1392
|
+
className: E.textArea,
|
|
1406
1393
|
rows: 1,
|
|
1407
1394
|
...p && { "aria-describedby": `${A}-helper` },
|
|
1408
1395
|
...a && { "aria-invalid": "true" },
|
|
1409
1396
|
...S && !o && { style: { paddingRight: ye } },
|
|
1410
1397
|
value: v,
|
|
1411
1398
|
onChange: xe,
|
|
1412
|
-
onFocus:
|
|
1413
|
-
onBlur:
|
|
1414
|
-
...
|
|
1399
|
+
onFocus: we,
|
|
1400
|
+
onBlur: Ee,
|
|
1401
|
+
...F
|
|
1415
1402
|
}
|
|
1416
1403
|
),
|
|
1417
1404
|
!o && /* @__PURE__ */ c(
|
|
1418
1405
|
"label",
|
|
1419
1406
|
{
|
|
1420
|
-
ref:
|
|
1407
|
+
ref: C,
|
|
1421
1408
|
"aria-hidden": !0,
|
|
1422
1409
|
htmlFor: A,
|
|
1423
|
-
className:
|
|
1410
|
+
className: E.visibleLabel,
|
|
1424
1411
|
children: t
|
|
1425
1412
|
}
|
|
1426
1413
|
),
|
|
@@ -1429,7 +1416,7 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1429
1416
|
{
|
|
1430
1417
|
ref: W,
|
|
1431
1418
|
id: `${A}-helper`,
|
|
1432
|
-
className:
|
|
1419
|
+
className: E.helperText,
|
|
1433
1420
|
children: p
|
|
1434
1421
|
}
|
|
1435
1422
|
),
|
|
@@ -1437,30 +1424,27 @@ const bt = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1437
1424
|
"div",
|
|
1438
1425
|
{
|
|
1439
1426
|
ref: be,
|
|
1440
|
-
className:
|
|
1427
|
+
className: E.rightElement,
|
|
1441
1428
|
children: S
|
|
1442
1429
|
}
|
|
1443
1430
|
),
|
|
1444
|
-
a && p && /* @__PURE__ */ c(
|
|
1431
|
+
a && p && /* @__PURE__ */ c(ht, { politeness: "polite", clearAnnouncementDelay: 500, children: ve })
|
|
1445
1432
|
] });
|
|
1446
1433
|
}
|
|
1447
1434
|
);
|
|
1448
1435
|
wt.displayName = "TextArea";
|
|
1449
1436
|
export {
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
Lt as
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
$t as restCall,
|
|
1463
|
-
At as serviceCall,
|
|
1464
|
-
zt as ue,
|
|
1437
|
+
It as E,
|
|
1438
|
+
St as SERVICE_TYPES,
|
|
1439
|
+
Ht as be,
|
|
1440
|
+
Rt as ce,
|
|
1441
|
+
M as f,
|
|
1442
|
+
$t as ge,
|
|
1443
|
+
Bt as he,
|
|
1444
|
+
et as ie,
|
|
1445
|
+
Lt as me,
|
|
1446
|
+
At as restCall,
|
|
1447
|
+
Ct as serviceCall,
|
|
1448
|
+
Ut as ue,
|
|
1465
1449
|
wt as we
|
|
1466
1450
|
};
|