@versini/sassysaint 5.4.6 → 5.4.8

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