@versini/sassysaint 5.4.7 → 5.4.9

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