chordia-ui 3.6.2 → 3.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Toast.es.js CHANGED
@@ -1,12 +1,12 @@
1
- import { jsxs as l, jsx as e, Fragment as F } from "react/jsx-runtime";
2
- import A, { useState as m, useRef as B, useEffect as w, useMemo as H, useCallback as Z } from "react";
3
- import { AnimatePresence as L, motion as S } from "motion/react";
4
- import { MessageCircleQuestion as O, History as N, Search as K, X as W, PlusCircle as V, FolderCheck as Q, CircleCheck as R, Info as U, OctagonAlert as Y, AlertTriangle as $ } from "lucide-react";
1
+ import { jsxs as s, jsx as e, Fragment as S } from "react/jsx-runtime";
2
+ import A, { useState as m, useRef as E, useEffect as k, useMemo as W, useCallback as Z } from "react";
3
+ import { AnimatePresence as H, motion as w } from "motion/react";
4
+ import { MessageCircleQuestion as O, History as N, Search as K, X as L, PlusCircle as V, FolderCheck as Q, CircleCheck as R, Info as U, OctagonAlert as Y, AlertTriangle as $ } from "lucide-react";
5
5
  import { C as X } from "./ChartRenderer.es.js";
6
6
  import { T as _ } from "./TextInput.es.js";
7
7
  import { S as M } from "./SmallButton.es.js";
8
8
  function q({ size: t = 48, isHovered: n = !1 }) {
9
- return /* @__PURE__ */ l(
9
+ return /* @__PURE__ */ s(
10
10
  "svg",
11
11
  {
12
12
  width: t,
@@ -17,7 +17,7 @@ function q({ size: t = 48, isHovered: n = !1 }) {
17
17
  style: { flexShrink: 0, display: "block" },
18
18
  children: [
19
19
  /* @__PURE__ */ e(
20
- S.rect,
20
+ w.rect,
21
21
  {
22
22
  width: "48",
23
23
  height: "48",
@@ -37,7 +37,7 @@ function q({ size: t = 48, isHovered: n = !1 }) {
37
37
  );
38
38
  }
39
39
  function J({ size: t = 48 }) {
40
- return /* @__PURE__ */ l(
40
+ return /* @__PURE__ */ s(
41
41
  "svg",
42
42
  {
43
43
  width: t,
@@ -56,19 +56,19 @@ function J({ size: t = 48 }) {
56
56
  }
57
57
  );
58
58
  }
59
- function P({ onSend: t, onHistoryClick: n, messages: r = [], loading: o = !1 }) {
60
- const [a, i] = m(""), u = B(null);
61
- w(() => {
62
- u.current && (u.current.scrollTop = u.current.scrollHeight);
59
+ function P({ onSend: t, onHistoryClick: n, messages: r = [], loading: l = !1, statusLabel: c }) {
60
+ const [a, d] = m(""), h = E(null);
61
+ k(() => {
62
+ h.current && (h.current.scrollTop = h.current.scrollHeight);
63
63
  }, [r]);
64
- const c = () => {
65
- const s = a.trim();
66
- !s || o || (t == null || t(s), i(""));
67
- }, d = (s) => {
68
- s.key === "Enter" && !s.shiftKey && (s.preventDefault(), c());
69
- }, h = r.length > 0;
70
- return /* @__PURE__ */ l(
71
- S.div,
64
+ const i = () => {
65
+ const o = a.trim();
66
+ !o || l || (t == null || t(o), d(""));
67
+ }, g = (o) => {
68
+ o.key === "Enter" && !o.shiftKey && (o.preventDefault(), i());
69
+ }, u = r.length > 0;
70
+ return /* @__PURE__ */ s(
71
+ w.div,
72
72
  {
73
73
  initial: { opacity: 0, y: 20, scale: 0.95 },
74
74
  animate: { opacity: 1, y: 0, scale: 1 },
@@ -87,7 +87,7 @@ function P({ onSend: t, onHistoryClick: n, messages: r = [], loading: o = !1 })
87
87
  boxSizing: "border-box"
88
88
  },
89
89
  children: [
90
- /* @__PURE__ */ l(
90
+ /* @__PURE__ */ s(
91
91
  "div",
92
92
  {
93
93
  style: {
@@ -97,7 +97,7 @@ function P({ onSend: t, onHistoryClick: n, messages: r = [], loading: o = !1 })
97
97
  alignSelf: "stretch"
98
98
  },
99
99
  children: [
100
- /* @__PURE__ */ l("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
100
+ /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
101
101
  /* @__PURE__ */ e(
102
102
  "div",
103
103
  {
@@ -127,7 +127,7 @@ function P({ onSend: t, onHistoryClick: n, messages: r = [], loading: o = !1 })
127
127
  }
128
128
  )
129
129
  ] }),
130
- /* @__PURE__ */ e("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: /* @__PURE__ */ l(
130
+ /* @__PURE__ */ e("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: /* @__PURE__ */ s(
131
131
  "button",
132
132
  {
133
133
  onClick: n,
@@ -154,31 +154,31 @@ function P({ onSend: t, onHistoryClick: n, messages: r = [], loading: o = !1 })
154
154
  ]
155
155
  }
156
156
  ),
157
- /* @__PURE__ */ l(
157
+ /* @__PURE__ */ s(
158
158
  "div",
159
159
  {
160
- ref: u,
160
+ ref: h,
161
161
  style: {
162
162
  flex: 1,
163
163
  display: "flex",
164
164
  flexDirection: "column",
165
- justifyContent: h ? "flex-start" : "center",
166
- alignItems: h ? "stretch" : "center",
165
+ justifyContent: u ? "flex-start" : "center",
166
+ alignItems: u ? "stretch" : "center",
167
167
  gap: 12,
168
168
  overflow: "auto",
169
169
  marginTop: 16,
170
170
  marginBottom: 16
171
171
  },
172
172
  children: [
173
- h ? r.map((s, g) => {
174
- var C;
175
- return /* @__PURE__ */ l(A.Fragment, { children: [
173
+ u ? r.map((o, C) => {
174
+ var b;
175
+ return /* @__PURE__ */ s(A.Fragment, { children: [
176
176
  /* @__PURE__ */ e(
177
177
  "div",
178
178
  {
179
179
  style: {
180
180
  display: "flex",
181
- justifyContent: s.role === "user" ? "flex-end" : "flex-start"
181
+ justifyContent: o.role === "user" ? "flex-end" : "flex-start"
182
182
  },
183
183
  children: /* @__PURE__ */ e(
184
184
  "div",
@@ -186,8 +186,8 @@ function P({ onSend: t, onHistoryClick: n, messages: r = [], loading: o = !1 })
186
186
  style: {
187
187
  maxWidth: "85%",
188
188
  padding: "10px 14px",
189
- borderRadius: s.role === "user" ? "14px 14px 4px 14px" : "14px 14px 14px 4px",
190
- background: s.role === "user" ? "var(--Rail-Surface-2, #E3E1D7)" : "#F3F7F7",
189
+ borderRadius: o.role === "user" ? "14px 14px 4px 14px" : "14px 14px 14px 4px",
190
+ background: o.role === "user" ? "var(--Rail-Surface-2, #E3E1D7)" : "#F3F7F7",
191
191
  fontSize: 14,
192
192
  fontWeight: 400,
193
193
  color: "var(--Grey-Strong, #2E3236)",
@@ -195,12 +195,12 @@ function P({ onSend: t, onHistoryClick: n, messages: r = [], loading: o = !1 })
195
195
  whiteSpace: "pre-wrap",
196
196
  wordBreak: "break-word"
197
197
  },
198
- children: s.content
198
+ children: o.content
199
199
  }
200
200
  )
201
201
  }
202
202
  ),
203
- (C = s.charts) == null ? void 0 : C.map((y, b) => /* @__PURE__ */ e("div", { style: { width: "100%", marginTop: 8 }, children: /* @__PURE__ */ e(
203
+ (b = o.charts) == null ? void 0 : b.map((y, v) => /* @__PURE__ */ e("div", { style: { width: "100%", marginTop: 8 }, children: /* @__PURE__ */ e(
204
204
  X,
205
205
  {
206
206
  chartType: y.chartType,
@@ -209,9 +209,9 @@ function P({ onSend: t, onHistoryClick: n, messages: r = [], loading: o = !1 })
209
209
  yLabel: y.yLabel,
210
210
  series: y.series
211
211
  }
212
- ) }, `chart-${b}`))
213
- ] }, g);
214
- }) : /* @__PURE__ */ l(F, { children: [
212
+ ) }, `chart-${v}`))
213
+ ] }, C);
214
+ }) : /* @__PURE__ */ s(S, { children: [
215
215
  /* @__PURE__ */ e(J, { size: 48 }),
216
216
  /* @__PURE__ */ e(
217
217
  "span",
@@ -228,7 +228,7 @@ function P({ onSend: t, onHistoryClick: n, messages: r = [], loading: o = !1 })
228
228
  }
229
229
  )
230
230
  ] }),
231
- o && /* @__PURE__ */ e("div", { style: { display: "flex", justifyContent: "flex-start" }, children: /* @__PURE__ */ e(
231
+ l && /* @__PURE__ */ e("div", { style: { display: "flex", justifyContent: "flex-start" }, children: /* @__PURE__ */ e(
232
232
  "div",
233
233
  {
234
234
  style: {
@@ -238,13 +238,13 @@ function P({ onSend: t, onHistoryClick: n, messages: r = [], loading: o = !1 })
238
238
  fontSize: 14,
239
239
  color: "var(--Grey-Muted, #808183)"
240
240
  },
241
- children: "Thinking..."
241
+ children: c || "Thinking..."
242
242
  }
243
243
  ) })
244
244
  ]
245
245
  }
246
246
  ),
247
- /* @__PURE__ */ l(
247
+ /* @__PURE__ */ s(
248
248
  "div",
249
249
  {
250
250
  style: {
@@ -264,10 +264,10 @@ function P({ onSend: t, onHistoryClick: n, messages: r = [], loading: o = !1 })
264
264
  {
265
265
  type: "text",
266
266
  value: a,
267
- onChange: (s) => i(s.target.value),
268
- onKeyDown: d,
267
+ onChange: (o) => d(o.target.value),
268
+ onKeyDown: g,
269
269
  placeholder: "Ask a Question",
270
- disabled: o,
270
+ disabled: l,
271
271
  style: {
272
272
  flex: 1,
273
273
  border: "none",
@@ -283,8 +283,8 @@ function P({ onSend: t, onHistoryClick: n, messages: r = [], loading: o = !1 })
283
283
  /* @__PURE__ */ e(
284
284
  "button",
285
285
  {
286
- onClick: c,
287
- disabled: !a.trim() || o,
286
+ onClick: i,
287
+ disabled: !a.trim() || l,
288
288
  style: {
289
289
  display: "flex",
290
290
  height: 28,
@@ -298,8 +298,8 @@ function P({ onSend: t, onHistoryClick: n, messages: r = [], loading: o = !1 })
298
298
  color: "#fff",
299
299
  fontSize: 12,
300
300
  fontWeight: 500,
301
- cursor: a.trim() && !o ? "pointer" : "default",
302
- opacity: a.trim() && !o ? 1 : 0.4,
301
+ cursor: a.trim() && !l ? "pointer" : "default",
302
+ opacity: a.trim() && !l ? 1 : 0.4,
303
303
  flexShrink: 0,
304
304
  boxSizing: "border-box"
305
305
  },
@@ -317,13 +317,22 @@ function d1({
317
317
  onSend: t,
318
318
  onHistoryClick: n,
319
319
  messages: r = [],
320
- loading: o = !1,
320
+ loading: l = !1,
321
+ statusLabel: c,
321
322
  className: a = ""
322
323
  }) {
323
- const [i, u] = m(!1), [c, d] = m(!1);
324
- return /* @__PURE__ */ l(
324
+ const [d, h] = m(!1), [i, g] = m(!1), u = E(null);
325
+ return k(() => {
326
+ if (!i)
327
+ return;
328
+ const o = (C) => {
329
+ u.current && !u.current.contains(C.target) && g(!1);
330
+ };
331
+ return document.addEventListener("mousedown", o), () => document.removeEventListener("mousedown", o);
332
+ }, [i]), /* @__PURE__ */ s(
325
333
  "div",
326
334
  {
335
+ ref: u,
327
336
  className: a,
328
337
  style: {
329
338
  position: "fixed",
@@ -336,31 +345,32 @@ function d1({
336
345
  gap: 12
337
346
  },
338
347
  children: [
339
- /* @__PURE__ */ e(L, { children: c && /* @__PURE__ */ e(
348
+ /* @__PURE__ */ e(H, { children: i && /* @__PURE__ */ e(
340
349
  P,
341
350
  {
342
351
  onSend: t,
343
352
  onHistoryClick: n,
344
353
  messages: r,
345
- loading: o
354
+ loading: l,
355
+ statusLabel: c
346
356
  }
347
357
  ) }),
348
358
  /* @__PURE__ */ e(
349
359
  "div",
350
360
  {
351
361
  style: { width: 48, height: 48 },
352
- onMouseEnter: () => u(!0),
353
- onMouseLeave: () => u(!1),
354
- children: /* @__PURE__ */ l(
355
- S.button,
362
+ onMouseEnter: () => h(!0),
363
+ onMouseLeave: () => h(!1),
364
+ children: /* @__PURE__ */ s(
365
+ w.button,
356
366
  {
357
- onClick: () => d((h) => !h),
367
+ onClick: () => g((o) => !o),
358
368
  initial: !1,
359
369
  animate: {
360
- width: i || c ? 166 : 48,
361
- height: i || c ? 56 : 48,
362
- borderRadius: i || c ? 30 : 12,
363
- background: i || c ? "var(--Rail-Surface-2, #E3E1D7)" : "rgba(0,0,0,0)"
370
+ width: d || i ? 166 : 48,
371
+ height: d || i ? 56 : 48,
372
+ borderRadius: d || i ? 30 : 12,
373
+ background: d || i ? "var(--Rail-Surface-2, #E3E1D7)" : "rgba(0,0,0,0)"
364
374
  },
365
375
  transition: { type: "spring", stiffness: 400, damping: 30 },
366
376
  style: {
@@ -370,8 +380,8 @@ function d1({
370
380
  display: "flex",
371
381
  justifyContent: "center",
372
382
  alignItems: "center",
373
- gap: i || c ? 10 : 0,
374
- padding: i || c ? "0 0 0 16px" : 0,
383
+ gap: d || i ? 10 : 0,
384
+ padding: d || i ? "0 0 0 16px" : 0,
375
385
  border: "none",
376
386
  outline: "none",
377
387
  cursor: "pointer",
@@ -380,8 +390,8 @@ function d1({
380
390
  boxSizing: "border-box"
381
391
  },
382
392
  children: [
383
- /* @__PURE__ */ e(L, { children: (i || c) && /* @__PURE__ */ e(
384
- S.span,
393
+ /* @__PURE__ */ e(H, { children: (d || i) && /* @__PURE__ */ e(
394
+ w.span,
385
395
  {
386
396
  initial: { opacity: 0, width: 0 },
387
397
  animate: { opacity: 1, width: "auto" },
@@ -398,7 +408,7 @@ function d1({
398
408
  children: "Ask Compass"
399
409
  }
400
410
  ) }),
401
- /* @__PURE__ */ e(q, { size: 48, isHovered: i || c })
411
+ /* @__PURE__ */ e(q, { size: 48, isHovered: d || i })
402
412
  ]
403
413
  }
404
414
  )
@@ -412,62 +422,62 @@ const c1 = ({
412
422
  options: t = [],
413
423
  value: n = null,
414
424
  onChange: r,
415
- placeholder: o = "Search...",
416
- disabled: a = !1,
417
- showSuggestions: i = !0,
418
- styling: u,
419
- isAddNew: c = !1
425
+ placeholder: l = "Search...",
426
+ disabled: c = !1,
427
+ showSuggestions: a = !0,
428
+ styling: d,
429
+ isAddNew: h = !1
420
430
  }) => {
421
- const [d, h] = m(""), [s, g] = m(!1), [C, y] = m(null), b = B(null), v = H(() => {
422
- if (!i)
431
+ const [i, g] = m(""), [u, o] = m(!1), [C, b] = m(null), y = E(null), v = W(() => {
432
+ if (!a)
423
433
  return [];
424
- const p = d.toLowerCase();
434
+ const p = i.toLowerCase();
425
435
  return t.filter((f) => {
426
436
  if (!f)
427
437
  return !1;
428
- const I = f.label || "", z = f.value || "";
429
- return (I.toLowerCase().includes(p) || z.toLowerCase().includes(p)) && (!C || f.value !== C.value);
438
+ const z = f.label || "", B = f.value || "";
439
+ return (z.toLowerCase().includes(p) || B.toLowerCase().includes(p)) && (!C || f.value !== C.value);
430
440
  });
431
- }, [d, t, i, C]), E = H(() => {
432
- if (!c)
441
+ }, [i, t, a, C]), D = W(() => {
442
+ if (!h)
433
443
  return !1;
434
- const p = d.toLowerCase();
444
+ const p = i.toLowerCase();
435
445
  return t.some((f) => {
436
446
  if (!f)
437
447
  return !1;
438
- const I = f.label || "", z = f.value || "";
439
- return I.toLowerCase() === p || z.toLowerCase() === p;
448
+ const z = f.label || "", B = f.value || "";
449
+ return z.toLowerCase() === p || B.toLowerCase() === p;
440
450
  });
441
- }, [t, d, c]);
442
- w(() => {
443
- if (!s)
451
+ }, [t, i, h]);
452
+ k(() => {
453
+ if (!u)
444
454
  return;
445
455
  const p = (f) => {
446
- b.current && !b.current.contains(f.target) && g(!1);
456
+ y.current && !y.current.contains(f.target) && o(!1);
447
457
  };
448
458
  return document.addEventListener("mousedown", p), () => document.removeEventListener("mousedown", p);
449
- }, [s]);
459
+ }, [u]);
450
460
  const x = (p) => {
451
- r == null || r(p), h(""), g(!1), y(null);
452
- }, D = () => {
453
- const p = { label: d, value: d };
454
- y(p), r == null || r(p), g(!1), h("");
455
- }, k = () => {
456
- r == null || r(null), h(""), g(!1), y(null);
461
+ r == null || r(p), g(""), o(!1), b(null);
462
+ }, I = () => {
463
+ const p = { label: i, value: i };
464
+ b(p), r == null || r(p), o(!1), g("");
465
+ }, F = () => {
466
+ r == null || r(null), g(""), o(!1), b(null);
457
467
  }, G = (p) => {
458
468
  const f = p.target.value;
459
- i ? (h(f), g(!0)) : c ? (h(f), g(f.length >= 3)) : r == null || r(f);
469
+ a ? (g(f), o(!0)) : h ? (g(f), o(f.length >= 3)) : r == null || r(f);
460
470
  }, T = () => {
461
- (i || c) && g(!0);
462
- }, j = s && !n && d.length >= 3;
463
- return /* @__PURE__ */ l("div", { className: "relative w-full", ref: b, children: [
464
- /* @__PURE__ */ l(
471
+ (a || h) && o(!0);
472
+ }, j = u && !n && i.length >= 3;
473
+ return /* @__PURE__ */ s("div", { className: "relative w-full", ref: y, children: [
474
+ /* @__PURE__ */ s(
465
475
  "div",
466
476
  {
467
- className: u || "flex items-center gap-2 border rounded-md px-3 py-2 bg-white shadow-sm",
477
+ className: d || "flex items-center gap-2 border rounded-md px-3 py-2 bg-white shadow-sm",
468
478
  children: [
469
479
  /* @__PURE__ */ e(K, { className: "w-4 h-4 text-gray-400" }),
470
- /* @__PURE__ */ e("div", { className: "flex-1", children: i && n ? /* @__PURE__ */ e(
480
+ /* @__PURE__ */ e("div", { className: "flex-1", children: a && n ? /* @__PURE__ */ e(
471
481
  "div",
472
482
  {
473
483
  className: "text-gray-800 truncate",
@@ -486,10 +496,10 @@ const c1 = ({
486
496
  ) : /* @__PURE__ */ e(
487
497
  _,
488
498
  {
489
- value: i || c ? d : n || "",
499
+ value: a || h ? i : n || "",
490
500
  onChange: (p) => G({ target: { value: p } }),
491
- placeholder: o,
492
- disabled: a,
501
+ placeholder: l,
502
+ disabled: c,
493
503
  style: {
494
504
  border: "none",
495
505
  boxShadow: "none",
@@ -505,7 +515,7 @@ const c1 = ({
505
515
  type: "button",
506
516
  variant: "ghost",
507
517
  size: "sm",
508
- onClick: k,
518
+ onClick: F,
509
519
  style: {
510
520
  padding: 0,
511
521
  width: 20,
@@ -514,13 +524,13 @@ const c1 = ({
514
524
  backgroundColor: "transparent",
515
525
  color: "rgba(107,114,128,1)"
516
526
  },
517
- children: /* @__PURE__ */ e(W, { className: "w-3 h-3" })
527
+ children: /* @__PURE__ */ e(L, { className: "w-3 h-3" })
518
528
  }
519
529
  )
520
530
  ]
521
531
  }
522
532
  ),
523
- j && /* @__PURE__ */ l(
533
+ j && /* @__PURE__ */ s(
524
534
  "div",
525
535
  {
526
536
  className: "absolute w-full rounded-md border border-gray-300 bg-white shadow-lg custom-thin-scrollbar-library",
@@ -562,12 +572,12 @@ const c1 = ({
562
572
  },
563
573
  p.value
564
574
  )) }),
565
- c && !E && !C && d.length >= 3 && /* @__PURE__ */ l(
575
+ h && !D && !C && i.length >= 3 && /* @__PURE__ */ s(
566
576
  M,
567
577
  {
568
578
  type: "button",
569
579
  variant: "secondary",
570
- onClick: D,
580
+ onClick: I,
571
581
  style: {
572
582
  width: "100%",
573
583
  justifyContent: "space-between",
@@ -579,7 +589,7 @@ const c1 = ({
579
589
  color: "rgba(107,114,128,1)"
580
590
  },
581
591
  children: [
582
- /* @__PURE__ */ e("span", { children: `Add "${d}"` }),
592
+ /* @__PURE__ */ e("span", { children: `Add "${i}"` }),
583
593
  /* @__PURE__ */ e(V, { className: "w-5 h-5 text-green-500" })
584
594
  ]
585
595
  }
@@ -593,24 +603,24 @@ function p1({
593
603
  open: t,
594
604
  onClose: n,
595
605
  title: r,
596
- subtitle: o,
597
- children: a,
598
- footer: i,
599
- width: u = 515,
600
- height: c = 762,
601
- toggleLabel: d,
602
- toggleChecked: h,
603
- onToggle: s
606
+ subtitle: l,
607
+ children: c,
608
+ footer: a,
609
+ width: d = 515,
610
+ height: h = 762,
611
+ toggleLabel: i,
612
+ toggleChecked: g,
613
+ onToggle: u
604
614
  }) {
605
- const g = B(null);
606
- return w(() => {
615
+ const o = E(null);
616
+ return k(() => {
607
617
  if (!t)
608
618
  return;
609
- const C = (y) => {
610
- y.key === "Escape" && (n == null || n());
619
+ const C = (b) => {
620
+ b.key === "Escape" && (n == null || n());
611
621
  };
612
622
  return document.addEventListener("keydown", C), () => document.removeEventListener("keydown", C);
613
- }, [t, n]), t ? /* @__PURE__ */ l(F, { children: [
623
+ }, [t, n]), t ? /* @__PURE__ */ s(S, { children: [
614
624
  /* @__PURE__ */ e(
615
625
  "div",
616
626
  {
@@ -623,10 +633,10 @@ function p1({
623
633
  }
624
634
  }
625
635
  ),
626
- /* @__PURE__ */ l(
636
+ /* @__PURE__ */ s(
627
637
  "div",
628
638
  {
629
- ref: g,
639
+ ref: o,
630
640
  style: {
631
641
  position: "fixed",
632
642
  top: "50%",
@@ -634,8 +644,8 @@ function p1({
634
644
  transform: "translateY(-50%)",
635
645
  zIndex: 1201,
636
646
  display: "flex",
637
- width: u,
638
- height: c,
647
+ width: d,
648
+ height: h,
639
649
  maxHeight: "100vh",
640
650
  padding: "20px",
641
651
  flexDirection: "column",
@@ -646,7 +656,7 @@ function p1({
646
656
  boxShadow: "648px 0 100px 0 rgba(0, 0, 0, 0.20)"
647
657
  },
648
658
  children: [
649
- /* @__PURE__ */ l(
659
+ /* @__PURE__ */ s(
650
660
  "div",
651
661
  {
652
662
  style: {
@@ -694,7 +704,7 @@ function p1({
694
704
  onMouseLeave: (C) => {
695
705
  C.currentTarget.style.background = "transparent";
696
706
  },
697
- children: /* @__PURE__ */ e(W, { size: 20, strokeWidth: 2 })
707
+ children: /* @__PURE__ */ e(L, { size: 20, strokeWidth: 2 })
698
708
  }
699
709
  )
700
710
  ]
@@ -711,7 +721,7 @@ function p1({
711
721
  }
712
722
  }
713
723
  ),
714
- (o || d) && /* @__PURE__ */ l(
724
+ (l || i) && /* @__PURE__ */ s(
715
725
  "div",
716
726
  {
717
727
  style: {
@@ -723,7 +733,7 @@ function p1({
723
733
  flexShrink: 0
724
734
  },
725
735
  children: [
726
- o && /* @__PURE__ */ e(
736
+ l && /* @__PURE__ */ e(
727
737
  "p",
728
738
  {
729
739
  style: {
@@ -735,10 +745,10 @@ function p1({
735
745
  margin: 0,
736
746
  flex: 1
737
747
  },
738
- children: o
748
+ children: l
739
749
  }
740
750
  ),
741
- d && /* @__PURE__ */ l(
751
+ i && /* @__PURE__ */ s(
742
752
  "div",
743
753
  {
744
754
  style: {
@@ -751,14 +761,14 @@ function p1({
751
761
  /* @__PURE__ */ e(
752
762
  "button",
753
763
  {
754
- onClick: () => s == null ? void 0 : s(!h),
764
+ onClick: () => u == null ? void 0 : u(!g),
755
765
  style: {
756
766
  position: "relative",
757
767
  width: "40px",
758
768
  height: "22px",
759
769
  borderRadius: "11px",
760
770
  border: "none",
761
- background: h ? "var(--Base-Strong, #0B0B0B)" : "var(--Base-Faint, #D9D9D9)",
771
+ background: g ? "var(--Base-Strong, #0B0B0B)" : "var(--Base-Faint, #D9D9D9)",
762
772
  cursor: "pointer",
763
773
  transition: "background 0.2s ease",
764
774
  padding: 0,
@@ -770,7 +780,7 @@ function p1({
770
780
  style: {
771
781
  position: "absolute",
772
782
  top: "2px",
773
- left: h ? "20px" : "2px",
783
+ left: g ? "20px" : "2px",
774
784
  width: "18px",
775
785
  height: "18px",
776
786
  borderRadius: "50%",
@@ -791,7 +801,7 @@ function p1({
791
801
  color: "var(--Base-Strong, #1E1E1E)",
792
802
  lineHeight: 1.4
793
803
  },
794
- children: d
804
+ children: i
795
805
  }
796
806
  )
797
807
  ]
@@ -812,10 +822,10 @@ function p1({
812
822
  gap: "16px",
813
823
  minHeight: 0
814
824
  },
815
- children: a
825
+ children: c
816
826
  }
817
827
  ),
818
- i && /* @__PURE__ */ l(F, { children: [
828
+ a && /* @__PURE__ */ s(S, { children: [
819
829
  /* @__PURE__ */ e(
820
830
  "div",
821
831
  {
@@ -838,7 +848,7 @@ function p1({
838
848
  width: "100%",
839
849
  flexShrink: 0
840
850
  },
841
- children: i
851
+ children: a
842
852
  }
843
853
  )
844
854
  ] })
@@ -851,14 +861,14 @@ function u1({
851
861
  label: t,
852
862
  variant: n = "secondary",
853
863
  onClick: r,
854
- disabled: o
864
+ disabled: l
855
865
  }) {
856
- const a = n === "primary";
866
+ const c = n === "primary";
857
867
  return /* @__PURE__ */ e(
858
868
  "button",
859
869
  {
860
870
  onClick: r,
861
- disabled: o,
871
+ disabled: l,
862
872
  style: {
863
873
  display: "flex",
864
874
  height: "36px",
@@ -867,20 +877,20 @@ function u1({
867
877
  alignItems: "center",
868
878
  gap: "8px",
869
879
  borderRadius: "6px",
870
- border: a ? "none" : "1px solid #D9D9D9",
871
- background: a ? "var(--Base-Strong, #0B0B0B)" : "var(--Base-White, #FFF)",
872
- color: a ? "#FFF" : "var(--Base-Strong, #1E1E1E)",
880
+ border: c ? "none" : "1px solid #D9D9D9",
881
+ background: c ? "var(--Base-Strong, #0B0B0B)" : "var(--Base-White, #FFF)",
882
+ color: c ? "#FFF" : "var(--Base-Strong, #1E1E1E)",
873
883
  fontSize: "16px",
874
884
  fontWeight: 600,
875
- cursor: o ? "default" : "pointer",
876
- opacity: o ? 0.5 : 1,
885
+ cursor: l ? "default" : "pointer",
886
+ opacity: l ? 0.5 : 1,
877
887
  transition: "all 0.15s ease"
878
888
  },
879
- onMouseEnter: (i) => {
880
- !o && !a && (i.currentTarget.style.background = "#ECEEF2");
889
+ onMouseEnter: (a) => {
890
+ !l && !c && (a.currentTarget.style.background = "#ECEEF2");
881
891
  },
882
- onMouseLeave: (i) => {
883
- !o && !a && (i.currentTarget.style.background = "var(--Base-White, #FFF)");
892
+ onMouseLeave: (a) => {
893
+ !l && !c && (a.currentTarget.style.background = "var(--Base-White, #FFF)");
884
894
  },
885
895
  children: t
886
896
  }
@@ -937,7 +947,7 @@ function h1(t) {
937
947
  );
938
948
  }
939
949
  function e1({ size: t = 48 }) {
940
- return /* @__PURE__ */ l(
950
+ return /* @__PURE__ */ s(
941
951
  "svg",
942
952
  {
943
953
  width: t,
@@ -982,23 +992,23 @@ function C1({
982
992
  title: t = "Uploading your file...",
983
993
  subtitle: n = "Please wait while we process your file",
984
994
  progress: r,
985
- width: o = 648,
986
- height: a = 281
995
+ width: l = 648,
996
+ height: c = 281
987
997
  }) {
988
- return /* @__PURE__ */ l(F, { children: [
998
+ return /* @__PURE__ */ s(S, { children: [
989
999
  /* @__PURE__ */ e("style", { children: `
990
1000
  @keyframes file-upload-spin {
991
1001
  from { transform: rotate(0deg); }
992
1002
  to { transform: rotate(360deg); }
993
1003
  }
994
1004
  ` }),
995
- /* @__PURE__ */ l(
1005
+ /* @__PURE__ */ s(
996
1006
  "div",
997
1007
  {
998
1008
  style: {
999
1009
  display: "flex",
1000
- width: o,
1001
- height: a,
1010
+ width: l,
1011
+ height: c,
1002
1012
  padding: "88px 64px 64px 64px",
1003
1013
  flexDirection: "column",
1004
1014
  justifyContent: "center",
@@ -1073,17 +1083,17 @@ function g1({
1073
1083
  title: t = "File uploaded successfully!",
1074
1084
  subtitle: n = "Redirecting...",
1075
1085
  actionLabel: r = "Add more files",
1076
- onAction: o,
1077
- width: a = 648,
1078
- height: i = 281
1086
+ onAction: l,
1087
+ width: c = 648,
1088
+ height: a = 281
1079
1089
  }) {
1080
- return /* @__PURE__ */ l(
1090
+ return /* @__PURE__ */ s(
1081
1091
  "div",
1082
1092
  {
1083
1093
  style: {
1084
1094
  display: "flex",
1085
- width: a,
1086
- height: i,
1095
+ width: c,
1096
+ height: a,
1087
1097
  padding: "88px 64px 64px 64px",
1088
1098
  flexDirection: "column",
1089
1099
  justifyContent: "center",
@@ -1140,10 +1150,10 @@ function g1({
1140
1150
  children: n
1141
1151
  }
1142
1152
  ),
1143
- r && o && /* @__PURE__ */ e(
1153
+ r && l && /* @__PURE__ */ e(
1144
1154
  "button",
1145
1155
  {
1146
- onClick: o,
1156
+ onClick: l,
1147
1157
  style: {
1148
1158
  display: "flex",
1149
1159
  padding: "8px 20px",
@@ -1160,11 +1170,11 @@ function g1({
1160
1170
  marginTop: "8px",
1161
1171
  transition: "all 0.15s ease"
1162
1172
  },
1163
- onMouseEnter: (u) => {
1164
- u.currentTarget.style.background = "#ECEEF2";
1173
+ onMouseEnter: (d) => {
1174
+ d.currentTarget.style.background = "#ECEEF2";
1165
1175
  },
1166
- onMouseLeave: (u) => {
1167
- u.currentTarget.style.background = "var(--Base-White, #FFF)";
1176
+ onMouseLeave: (d) => {
1177
+ d.currentTarget.style.background = "var(--Base-White, #FFF)";
1168
1178
  },
1169
1179
  children: r
1170
1180
  }
@@ -1182,21 +1192,21 @@ const t1 = {
1182
1192
  variant: t = "success",
1183
1193
  message: n = "",
1184
1194
  showClose: r,
1185
- autoClose: o,
1186
- onClose: a,
1187
- actions: i
1195
+ autoClose: l,
1196
+ onClose: c,
1197
+ actions: a
1188
1198
  }) => {
1189
- const [u, c] = m(!0), d = t === "error", h = r !== void 0 ? r : !0, s = o !== void 0 ? o : 5e3, g = Z(() => {
1190
- c(!1), a == null || a();
1191
- }, [a]);
1192
- if (w(() => {
1193
- if (!s || !u)
1199
+ const [d, h] = m(!0), i = t === "error", g = r !== void 0 ? r : !0, u = l !== void 0 ? l : 5e3, o = Z(() => {
1200
+ h(!1), c == null || c();
1201
+ }, [c]);
1202
+ if (k(() => {
1203
+ if (!u || !d)
1194
1204
  return;
1195
- const x = setTimeout(g, s);
1205
+ const x = setTimeout(o, u);
1196
1206
  return () => clearTimeout(x);
1197
- }, [s, u, g]), !u)
1207
+ }, [u, d, o]), !d)
1198
1208
  return null;
1199
- const C = t1[t] || R, y = {
1209
+ const C = t1[t] || R, b = {
1200
1210
  display: "inline-flex",
1201
1211
  width: "fit-content",
1202
1212
  padding: "8px 12px",
@@ -1209,7 +1219,7 @@ const t1 = {
1209
1219
  lineHeight: "normal",
1210
1220
  transition: "opacity 0.2s",
1211
1221
  boxSizing: "border-box",
1212
- ...d ? {
1222
+ ...i ? {
1213
1223
  background: "var(--Grey-Strong, #2E3236)",
1214
1224
  color: "var(--Grey-White, #FFF)",
1215
1225
  border: "1px solid var(--Grey-Strong, #2E3236)"
@@ -1218,7 +1228,7 @@ const t1 = {
1218
1228
  color: "var(--Grey-Strong, #2E3236)",
1219
1229
  border: "1px solid var(--Grey-Faint, #ACADAD)"
1220
1230
  }
1221
- }, b = d ? "#FFF" : "var(--Grey-Strong, #2E3236)", v = (x) => ({
1231
+ }, y = i ? "#FFF" : "var(--Grey-Strong, #2E3236)", v = (x) => ({
1222
1232
  display: "flex",
1223
1233
  padding: "4px 12px",
1224
1234
  justifyContent: "center",
@@ -1231,14 +1241,14 @@ const t1 = {
1231
1241
  borderRadius: 6,
1232
1242
  cursor: "pointer",
1233
1243
  transition: "background 0.15s",
1234
- ...d ? {
1244
+ ...i ? {
1235
1245
  background: x ? "var(--Grey-White, #FFF)" : "transparent",
1236
1246
  color: x ? "var(--Grey-Strong, #2E3236)" : "var(--Grey-White, #FFF)"
1237
1247
  } : {
1238
1248
  background: x ? "var(--Grey-Strong, #2E3236)" : "transparent",
1239
1249
  color: x ? "var(--Grey-White, #FFF)" : "var(--Grey-Strong, #2E3236)"
1240
1250
  }
1241
- }), E = {
1251
+ }), D = {
1242
1252
  display: "flex",
1243
1253
  alignItems: "center",
1244
1254
  justifyContent: "center",
@@ -1249,41 +1259,41 @@ const t1 = {
1249
1259
  marginLeft: 4,
1250
1260
  flexShrink: 0
1251
1261
  };
1252
- return /* @__PURE__ */ l("div", { style: y, children: [
1262
+ return /* @__PURE__ */ s("div", { style: b, children: [
1253
1263
  /* @__PURE__ */ e(
1254
1264
  C,
1255
1265
  {
1256
1266
  size: 16,
1257
- color: b,
1267
+ color: y,
1258
1268
  strokeWidth: 2,
1259
1269
  style: { flexShrink: 0 }
1260
1270
  }
1261
1271
  ),
1262
1272
  /* @__PURE__ */ e("span", { children: n }),
1263
- i && i.length > 0 && /* @__PURE__ */ e("div", { style: { display: "flex", alignItems: "center", gap: 4, marginLeft: 8 }, children: i.map((x, D) => /* @__PURE__ */ e(
1273
+ a && a.length > 0 && /* @__PURE__ */ e("div", { style: { display: "flex", alignItems: "center", gap: 4, marginLeft: 8 }, children: a.map((x, I) => /* @__PURE__ */ e(
1264
1274
  "button",
1265
1275
  {
1266
1276
  type: "button",
1267
1277
  onClick: () => {
1268
- var k;
1269
- (k = x.onClick) == null || k.call(x), x.dismissOnClick !== !1 && g();
1278
+ var F;
1279
+ (F = x.onClick) == null || F.call(x), x.dismissOnClick !== !1 && o();
1270
1280
  },
1271
1281
  style: v(!!x.primary),
1272
1282
  children: x.label
1273
1283
  },
1274
- D
1284
+ I
1275
1285
  )) }),
1276
- h && /* @__PURE__ */ e(
1286
+ g && /* @__PURE__ */ e(
1277
1287
  "button",
1278
1288
  {
1279
1289
  type: "button",
1280
- onClick: g,
1281
- style: E,
1290
+ onClick: o,
1291
+ style: D,
1282
1292
  children: /* @__PURE__ */ e(
1283
- W,
1293
+ L,
1284
1294
  {
1285
1295
  size: 16,
1286
- color: d ? "var(--Grey-White, #FFF)" : "var(--Grey-Muted, #808183)",
1296
+ color: i ? "var(--Grey-White, #FFF)" : "var(--Grey-Muted, #808183)",
1287
1297
  strokeWidth: 2
1288
1298
  }
1289
1299
  )