@framework-m/ui 0.7.0 → 0.7.2

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/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { jsx as e, jsxs as l, Fragment as xe } from "react/jsx-runtime";
2
- import B, { createContext as q, useState as v, useEffect as k, useContext as ee, useRef as te, useMemo as U } from "react";
3
- import { styled as S, View as C, Text as _, createTokens as we, createFont as re, createTamagui as Se, TamaguiProvider as Ce } from "@tamagui/core";
1
+ import { jsx as e, jsxs as c, Fragment as xe } from "react/jsx-runtime";
2
+ import D, { createContext as q, useState as z, useEffect as F, useContext as ee, useRef as te, useMemo as U } from "react";
3
+ import { styled as v, View as k, Text as _, createTokens as we, createFont as re, createTamagui as Ce, TamaguiProvider as Se } from "@tamagui/core";
4
4
  import ve from "react-dom";
5
5
  import { Image as ke } from "@tamagui/image";
6
6
  import * as N from "@tamagui/lucide-icons-2";
@@ -13,24 +13,24 @@ function X(r) {
13
13
  const t = document.documentElement;
14
14
  r === "dark" ? t.classList.add("dark") : t.classList.remove("dark");
15
15
  }
16
- function pt({ children: r, defaultTheme: t }) {
17
- const [n, i] = v(t || ze);
18
- k(() => {
16
+ function yt({ children: r, defaultTheme: t }) {
17
+ const [n, i] = z(t || ze);
18
+ F(() => {
19
19
  X(n);
20
- }, [n]), k(() => {
20
+ }, [n]), F(() => {
21
21
  t && i(t);
22
- }, [t]), k(() => {
23
- const h = window.matchMedia("(prefers-color-scheme: dark)"), m = (P) => {
24
- localStorage.getItem(O) || i(P.matches ? "dark" : "light");
22
+ }, [t]), F(() => {
23
+ const h = window.matchMedia("(prefers-color-scheme: dark)"), l = (B) => {
24
+ localStorage.getItem(O) || i(B.matches ? "dark" : "light");
25
25
  };
26
- return h.addEventListener("change", m), () => h.removeEventListener("change", m);
26
+ return h.addEventListener("change", l), () => h.removeEventListener("change", l);
27
27
  }, []);
28
28
  const d = (h) => {
29
29
  i(h), localStorage.setItem(O, h), X(h);
30
- }, c = { theme: n, setTheme: d, toggleTheme: () => {
30
+ }, g = { theme: n, setTheme: d, toggleTheme: () => {
31
31
  d(n === "light" ? "dark" : "light");
32
32
  } };
33
- return /* @__PURE__ */ e(oe.Provider, { value: c, children: r });
33
+ return /* @__PURE__ */ e(oe.Provider, { value: g, children: r });
34
34
  }
35
35
  function ne() {
36
36
  const r = ee(oe);
@@ -38,7 +38,7 @@ function ne() {
38
38
  throw new Error("useTheme must be used within ThemeProvider");
39
39
  return r;
40
40
  }
41
- const J = S(C, {
41
+ const J = v(k, {
42
42
  name: "MStack",
43
43
  display: "flex",
44
44
  flexDirection: "column",
@@ -56,7 +56,7 @@ const J = S(C, {
56
56
  }
57
57
  }
58
58
  }
59
- }), Fe = S(C, {
59
+ }), Fe = v(k, {
60
60
  name: "XStack",
61
61
  display: "flex",
62
62
  flexDirection: "row",
@@ -74,7 +74,7 @@ const J = S(C, {
74
74
  }
75
75
  }
76
76
  }
77
- }), x = Fe, De = S(C, {
77
+ }), x = Fe, De = v(k, {
78
78
  name: "YStack",
79
79
  display: "flex",
80
80
  flexDirection: "column",
@@ -92,7 +92,7 @@ const J = S(C, {
92
92
  }
93
93
  }
94
94
  }
95
- }), b = De, Me = S(C, {
95
+ }), b = De, Te = v(k, {
96
96
  name: "ZStack",
97
97
  display: "flex",
98
98
  position: "relative",
@@ -110,7 +110,7 @@ const J = S(C, {
110
110
  }
111
111
  }
112
112
  }
113
- }), Y = Me, Ee = S(_, {
113
+ }), Y = Te, Me = v(_, {
114
114
  name: "MText",
115
115
  fontFamily: "$body",
116
116
  display: "inline-flex",
@@ -123,13 +123,19 @@ const J = S(C, {
123
123
  $lg: { fontSize: "$lg" },
124
124
  $xl: { fontSize: "$xl" },
125
125
  $xxl: { fontSize: "$xxl" }
126
- },
127
- color: {
128
- secondary: { color: "$colorSecondary" },
129
- muted: { color: "$colorMuted" }
130
126
  }
131
127
  }
132
- }), u = Ee, Te = S(_, {
128
+ }), u = D.forwardRef(({ textAlign: r, style: t, ...n }, i) => /* @__PURE__ */ e(
129
+ Me,
130
+ {
131
+ ref: i,
132
+ ...n,
133
+ style: [
134
+ t,
135
+ { textAlign: r === "start" ? "left" : r === "end" ? "right" : r }
136
+ ]
137
+ }
138
+ )), Ee = v(_, {
133
139
  name: "Paragraph",
134
140
  fontFamily: "$body",
135
141
  display: "inline-flex",
@@ -144,7 +150,19 @@ const J = S(C, {
144
150
  $xxl: { fontSize: "$xxl" }
145
151
  }
146
152
  }
147
- }), L = Te, Ie = S(_, {
153
+ }), L = D.forwardRef(
154
+ ({ textAlign: r, style: t, ...n }, i) => /* @__PURE__ */ e(
155
+ Ee,
156
+ {
157
+ ref: i,
158
+ ...n,
159
+ style: [
160
+ t,
161
+ { textAlign: r === "start" ? "left" : r === "end" ? "right" : r }
162
+ ]
163
+ }
164
+ )
165
+ ), Ie = v(_, {
148
166
  name: "Heading",
149
167
  fontFamily: "$body",
150
168
  fontWeight: "800",
@@ -160,7 +178,17 @@ const J = S(C, {
160
178
  $xxl: { fontSize: "$xxl" }
161
179
  }
162
180
  }
163
- }), $t = Ie, Z = {
181
+ }), $t = D.forwardRef(({ textAlign: r, style: t, ...n }, i) => /* @__PURE__ */ e(
182
+ Ie,
183
+ {
184
+ ref: i,
185
+ ...n,
186
+ style: [
187
+ t,
188
+ { textAlign: r === "start" ? "left" : r === "end" ? "right" : r }
189
+ ]
190
+ }
191
+ )), Z = {
164
192
  draft: { bg: "#e0e0e0", text: "#333" },
165
193
  pending: { bg: "#fff3cd", text: "#856404" },
166
194
  submitted: { bg: "#cce5ff", text: "#004085" },
@@ -175,7 +203,7 @@ function We(r) {
175
203
  const t = r.toLowerCase().replace(/\s+/g, "_");
176
204
  return Z[t] ?? Z.default;
177
205
  }
178
- function yt({ state: r, docstatus: t, className: n, style: i }) {
206
+ function xt({ state: r, docstatus: t, className: n, style: i }) {
179
207
  const d = r ?? (t === 0 ? "Draft" : t === 1 ? "Submitted" : t === 2 ? "Cancelled" : void 0);
180
208
  if (!d) return null;
181
209
  const s = We(d);
@@ -205,12 +233,12 @@ const Be = [
205
233
  { code: "es", label: "Español" },
206
234
  { code: "fr", label: "Français" }
207
235
  ];
208
- function xt({
236
+ function wt({
209
237
  language: r,
210
238
  onChangeLanguage: t,
211
239
  locales: n = Be
212
240
  }) {
213
- return /* @__PURE__ */ l(x, { alignItems: "center", gap: "$xs", width: "auto", children: [
241
+ return /* @__PURE__ */ c(x, { alignItems: "center", gap: "$xs", width: "auto", children: [
214
242
  /* @__PURE__ */ e(u, { size: "$sm", children: "🌐" }),
215
243
  /* @__PURE__ */ e(
216
244
  ie,
@@ -224,7 +252,7 @@ function xt({
224
252
  )
225
253
  ] });
226
254
  }
227
- const G = S(C, {
255
+ const G = v(k, {
228
256
  name: "Skeleton",
229
257
  backgroundColor: "$colorBgTertiary",
230
258
  borderRadius: "$md",
@@ -261,9 +289,9 @@ const G = S(C, {
261
289
  defaultVariants: {
262
290
  variant: "text"
263
291
  }
264
- }), wt = ({ count: r = 1, className: t = "", ...n }) => {
292
+ }), Ct = ({ count: r = 1, className: t = "", ...n }) => {
265
293
  const i = `skeleton ${t}`.trim();
266
- return r > 1 ? /* @__PURE__ */ e(C, { "aria-busy": !0, "aria-label": "Loading content", children: Array.from({ length: r }, (d, s) => /* @__PURE__ */ e(
294
+ return r > 1 ? /* @__PURE__ */ e(k, { "aria-busy": !0, "aria-label": "Loading content", children: Array.from({ length: r }, (d, s) => /* @__PURE__ */ e(
267
295
  G,
268
296
  {
269
297
  className: i,
@@ -280,7 +308,7 @@ const G = S(C, {
280
308
  ...n
281
309
  }
282
310
  );
283
- }, Pe = S(C, {
311
+ }, Pe = v(k, {
284
312
  name: "Button",
285
313
  flexDirection: "row",
286
314
  alignItems: "center",
@@ -363,30 +391,37 @@ const G = S(C, {
363
391
  variant: "default",
364
392
  size: "md"
365
393
  }
366
- }), y = B.forwardRef(
367
- ({ children: r, variant: t = "default", size: n = "md", loading: i, disabled: d, tag: s = "button", ...c }, h) => /* @__PURE__ */ e(
368
- Pe,
369
- {
370
- ref: h,
371
- tag: s,
372
- type: c.type,
373
- variant: t,
374
- size: n,
375
- disabled: d || i,
376
- ...c,
377
- children: /* @__PURE__ */ e(
378
- u,
379
- {
380
- color: c.color || (t === "primary" || t === "danger" ? "$white" : "$color"),
381
- fontWeight: "600",
382
- fontSize: n === "sm" ? "$xs" : "$sm",
383
- pointerEvents: "none",
384
- children: i ? "..." : r
385
- }
386
- )
387
- }
388
- )
389
- ), Ae = S(C, {
394
+ }), Re = (r) => typeof r == "string" || typeof r == "number", $ = D.forwardRef(
395
+ ({ children: r, variant: t = "default", size: n = "md", loading: i, disabled: d, tag: s = "button", ...g }, h) => {
396
+ const l = Pe, B = g.color || (t === "primary" || t === "danger" ? "$white" : "$color"), T = (C, S) => /* @__PURE__ */ e(
397
+ u,
398
+ {
399
+ color: B,
400
+ fontWeight: "600",
401
+ fontSize: n === "sm" ? "$xs" : "$sm",
402
+ pointerEvents: "none",
403
+ children: C
404
+ },
405
+ S
406
+ ), P = i ? T("...") : D.Children.map(
407
+ r,
408
+ (C, S) => Re(C) ? T(C, S) : C
409
+ );
410
+ return /* @__PURE__ */ e(
411
+ l,
412
+ {
413
+ ref: h,
414
+ tag: s,
415
+ type: g.type,
416
+ variant: t,
417
+ size: n,
418
+ disabled: d || i,
419
+ ...g,
420
+ children: P
421
+ }
422
+ );
423
+ }
424
+ ), Ae = v(k, {
390
425
  name: "Card",
391
426
  flexDirection: "column",
392
427
  backgroundColor: "$background",
@@ -422,7 +457,7 @@ const G = S(C, {
422
457
  elevated: !0,
423
458
  padded: "md"
424
459
  }
425
- }), R = Ae, Re = S(
460
+ }), A = Ae, He = v(
426
461
  "input",
427
462
  {
428
463
  name: "Input",
@@ -473,60 +508,64 @@ const G = S(C, {
473
508
  size: "md"
474
509
  }
475
510
  }
476
- ), E = B.forwardRef(
477
- ({ onChange: r, onChangeText: t, value: n, ...i }, d) => /* @__PURE__ */ e(
478
- Re,
511
+ ), W = D.forwardRef(
512
+ ({ onChange: r, onChangeText: t, value: n, textAlign: i, style: d, ...s }, g) => /* @__PURE__ */ e(
513
+ He,
479
514
  {
480
- ref: d,
515
+ ref: g,
481
516
  ...n !== void 0 ? { value: n } : {},
482
- onChange: (c) => {
483
- r == null || r(c), t == null || t(c.target.value);
517
+ style: {
518
+ textAlign: i === "start" ? "left" : i === "end" ? "right" : i,
519
+ ...d
484
520
  },
485
- ...i
521
+ onChange: (l) => {
522
+ r == null || r(l), t == null || t(l.target.value);
523
+ },
524
+ ...s
486
525
  }
487
526
  )
488
527
  );
489
- E.displayName = "Input";
490
- const He = B.forwardRef(
491
- ({ value: r, onChange: t, onChangeText: n, type: i = "date", placeholder: d, ...s }, c) => {
492
- const [h, m] = v(!1), [P, I] = v(!1), [A, W] = v(!1), M = te(null), H = (o) => {
493
- const a = (ye) => ye.toString().padStart(2, "0"), g = o.getFullYear(), $ = a(o.getMonth() + 1), K = a(o.getDate()), be = a(o.getHours()), pe = a(o.getMinutes()), $e = a(o.getSeconds());
494
- return i === "date" ? `${g}-${$}-${K}` : `${g}-${$}-${K}T${be}:${pe}:${$e}`;
528
+ W.displayName = "Input";
529
+ const Ne = D.forwardRef(
530
+ ({ value: r, onChange: t, onChangeText: n, type: i = "date", placeholder: d, ...s }, g) => {
531
+ const [h, l] = z(!1), [B, T] = z(!1), [P, C] = z(!1), S = te(null), H = (o) => {
532
+ const a = ($e) => $e.toString().padStart(2, "0"), m = o.getFullYear(), y = a(o.getMonth() + 1), K = a(o.getDate()), be = a(o.getHours()), pe = a(o.getMinutes()), ye = a(o.getSeconds());
533
+ return i === "date" ? `${m}-${y}-${K}` : `${m}-${y}-${K}T${be}:${pe}:${ye}`;
495
534
  }, f = U(() => {
496
535
  if (!r) return /* @__PURE__ */ new Date();
497
536
  const o = new Date(r);
498
537
  return isNaN(o.getTime()) ? /* @__PURE__ */ new Date() : o;
499
- }, [r]), [p, z] = v(new Date(f)), w = () => {
500
- m(!0);
538
+ }, [r]), [p, M] = z(new Date(f)), w = () => {
539
+ l(!0);
501
540
  };
502
- k(() => {
503
- z(new Date(f));
504
- }, [f]), k(() => {
541
+ F(() => {
542
+ M(new Date(f));
543
+ }, [f]), F(() => {
505
544
  const o = (a) => {
506
- M.current && !M.current.contains(a.target) && (m(!1), I(!1), W(!1));
545
+ S.current && !S.current.contains(a.target) && (l(!1), T(!1), C(!1));
507
546
  };
508
547
  return document.addEventListener("mousedown", o), () => document.removeEventListener("mousedown", o);
509
548
  }, []);
510
- const F = (o) => {
549
+ const E = (o) => {
511
550
  const a = H(o);
512
551
  t == null || t(a), n == null || n(a);
513
552
  }, le = (o) => {
514
553
  const a = new Date(p);
515
- a.setDate(o), a.setHours(f.getHours()), a.setMinutes(f.getMinutes()), a.setSeconds(f.getSeconds()), F(a), i === "date" && m(!1);
516
- }, T = (o, a, g = 0) => {
517
- const $ = new Date(f);
518
- $.setHours($.getHours() + o), $.setMinutes($.getMinutes() + a), $.setSeconds($.getSeconds() + g), F($);
554
+ a.setDate(o), a.setHours(f.getHours()), a.setMinutes(f.getMinutes()), a.setSeconds(f.getSeconds()), E(a), i === "date" && l(!1);
555
+ }, R = (o, a, m = 0) => {
556
+ const y = new Date(f);
557
+ y.setHours(y.getHours() + o), y.setMinutes(y.getMinutes() + a), y.setSeconds(y.getSeconds() + m), E(y);
519
558
  }, ce = () => {
520
559
  const o = new Date(f), a = o.getHours();
521
- o.setHours(a >= 12 ? a - 12 : a + 12), F(o);
560
+ o.setHours(a >= 12 ? a - 12 : a + 12), E(o);
522
561
  }, ue = () => {
523
562
  const o = /* @__PURE__ */ new Date();
524
- F(o), z(new Date(o));
563
+ E(o), M(new Date(o));
525
564
  }, ge = (o, a) => new Date(a, o + 1, 0).getDate(), he = (o, a) => new Date(a, o, 1).getDay(), me = U(() => {
526
- const o = ge(p.getMonth(), p.getFullYear()), a = he(p.getMonth(), p.getFullYear()), g = [];
527
- for (let $ = 0; $ < a; $++) g.push(null);
528
- for (let $ = 1; $ <= o; $++) g.push($);
529
- return g;
565
+ const o = ge(p.getMonth(), p.getFullYear()), a = he(p.getMonth(), p.getFullYear()), m = [];
566
+ for (let y = 0; y < a; y++) m.push(null);
567
+ for (let y = 1; y <= o; y++) m.push(y);
568
+ return m;
530
569
  }, [p]), fe = [
531
570
  "January",
532
571
  "February",
@@ -541,12 +580,12 @@ const He = B.forwardRef(
541
580
  "November",
542
581
  "December"
543
582
  ];
544
- return /* @__PURE__ */ l(b, { ref: M, position: "relative", width: "100%", children: [
545
- /* @__PURE__ */ l(x, { alignItems: "center", position: "relative", children: [
583
+ return /* @__PURE__ */ c(b, { ref: S, position: "relative", width: "100%", children: [
584
+ /* @__PURE__ */ c(x, { alignItems: "center", position: "relative", children: [
546
585
  /* @__PURE__ */ e(
547
- E,
586
+ W,
548
587
  {
549
- ref: c,
588
+ ref: g,
550
589
  value: r,
551
590
  readOnly: !0,
552
591
  placeholder: d || (i === "date" ? "Select Date..." : "Select Date & Time..."),
@@ -567,7 +606,7 @@ const He = B.forwardRef(
567
606
  cursor: "pointer"
568
607
  }
569
608
  ),
570
- /* @__PURE__ */ e(x, { position: "absolute", right: 12, pointerEvents: "none", opacity: 0.6, children: /* @__PURE__ */ l(
609
+ /* @__PURE__ */ e(x, { position: "absolute", right: 12, pointerEvents: "none", opacity: 0.6, children: /* @__PURE__ */ c(
571
610
  "svg",
572
611
  {
573
612
  viewBox: "0 0 24 24",
@@ -588,8 +627,8 @@ const He = B.forwardRef(
588
627
  }
589
628
  ) })
590
629
  ] }),
591
- h && /* @__PURE__ */ l(
592
- R,
630
+ h && /* @__PURE__ */ c(
631
+ A,
593
632
  {
594
633
  elevated: !0,
595
634
  position: "absolute",
@@ -603,22 +642,22 @@ const He = B.forwardRef(
603
642
  borderColor: "$borderColor",
604
643
  borderWidth: 1,
605
644
  children: [
606
- /* @__PURE__ */ l(x, { justifyContent: "space-between", alignItems: "center", marginBottom: "$3", children: [
645
+ /* @__PURE__ */ c(x, { justifyContent: "space-between", alignItems: "center", marginBottom: "$3", children: [
607
646
  /* @__PURE__ */ e(
608
- y,
647
+ $,
609
648
  {
610
649
  size: "sm",
611
650
  borderRadius: 100,
612
651
  width: 28,
613
652
  height: 28,
614
653
  padding: 0,
615
- onPress: () => z(new Date(p.setMonth(p.getMonth() - 1))),
654
+ onPress: () => M(new Date(p.setMonth(p.getMonth() - 1))),
616
655
  children: /* @__PURE__ */ e(u, { fontSize: 12, position: "relative", left: -1, children: "<" })
617
656
  }
618
657
  ),
619
- /* @__PURE__ */ l(x, { alignItems: "center", cursor: "pointer", children: [
620
- /* @__PURE__ */ e(b, { onDoubleClick: () => W(!0), children: A ? /* @__PURE__ */ e(
621
- E,
658
+ /* @__PURE__ */ c(x, { alignItems: "center", cursor: "pointer", children: [
659
+ /* @__PURE__ */ e(b, { onDoubleClick: () => C(!0), children: P ? /* @__PURE__ */ e(
660
+ W,
622
661
  {
623
662
  size: "sm",
624
663
  autoFocus: !0,
@@ -629,13 +668,13 @@ const He = B.forwardRef(
629
668
  onKeyDown: (o) => o.key === "Enter" && o.currentTarget.blur(),
630
669
  onBlur: (o) => {
631
670
  const a = parseInt(o.target.value);
632
- !isNaN(a) && a > 0 && a <= 12 && z(new Date(p.setMonth(a - 1))), W(!1);
671
+ !isNaN(a) && a > 0 && a <= 12 && M(new Date(p.setMonth(a - 1))), C(!1);
633
672
  }
634
673
  }
635
674
  ) : /* @__PURE__ */ e(u, { fontSize: 12, fontWeight: "700", color: "$primary", children: fe[p.getMonth()] }) }),
636
- /* @__PURE__ */ e(C, { width: 12 }),
637
- /* @__PURE__ */ e(b, { onDoubleClick: () => I(!0), children: P ? /* @__PURE__ */ e(
638
- E,
675
+ /* @__PURE__ */ e(k, { width: 12 }),
676
+ /* @__PURE__ */ e(b, { onDoubleClick: () => T(!0), children: B ? /* @__PURE__ */ e(
677
+ W,
639
678
  {
640
679
  size: "sm",
641
680
  autoFocus: !0,
@@ -646,28 +685,28 @@ const He = B.forwardRef(
646
685
  onKeyDown: (o) => o.key === "Enter" && o.currentTarget.blur(),
647
686
  onBlur: (o) => {
648
687
  const a = parseInt(o.target.value);
649
- isNaN(a) || z(new Date(p.setFullYear(a))), I(!1);
688
+ isNaN(a) || M(new Date(p.setFullYear(a))), T(!1);
650
689
  }
651
690
  }
652
691
  ) : /* @__PURE__ */ e(u, { fontWeight: "700", color: "$primary", children: p.getFullYear() }) })
653
692
  ] }),
654
693
  /* @__PURE__ */ e(
655
- y,
694
+ $,
656
695
  {
657
696
  size: "sm",
658
697
  borderRadius: 100,
659
698
  width: 28,
660
699
  height: 28,
661
700
  padding: 0,
662
- onPress: () => z(new Date(p.setMonth(p.getMonth() + 1))),
701
+ onPress: () => M(new Date(p.setMonth(p.getMonth() + 1))),
663
702
  children: /* @__PURE__ */ e(u, { fontSize: 12, position: "relative", left: 1, children: ">" })
664
703
  }
665
704
  )
666
705
  ] }),
667
- /* @__PURE__ */ l(x, { flexWrap: "wrap", gap: 2, marginBottom: "$2", children: [
706
+ /* @__PURE__ */ c(x, { flexWrap: "wrap", gap: 2, marginBottom: "$2", children: [
668
707
  /* @__PURE__ */ e(x, { width: "100%", justifyContent: "space-around", children: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map((o) => /* @__PURE__ */ e(J, { width: 36, alignItems: "center", children: /* @__PURE__ */ e(u, { fontSize: 10, color: "muted", fontWeight: "600", children: o }) }, o)) }),
669
708
  me.map((o, a) => {
670
- const g = o === f.getDate() && p.getMonth() === f.getMonth() && p.getFullYear() === f.getFullYear();
709
+ const m = o === f.getDate() && p.getMonth() === f.getMonth() && p.getFullYear() === f.getFullYear();
671
710
  return /* @__PURE__ */ e(
672
711
  J,
673
712
  {
@@ -677,17 +716,17 @@ const He = B.forwardRef(
677
716
  justifyContent: "center",
678
717
  borderRadius: "$2",
679
718
  cursor: o ? "pointer" : "default",
680
- backgroundColor: g ? "$primary" : "transparent",
719
+ backgroundColor: m ? "$primary" : "transparent",
681
720
  hoverStyle: o ? {
682
- backgroundColor: g ? "$primary" : "$backgroundHover"
721
+ backgroundColor: m ? "$primary" : "$backgroundHover"
683
722
  } : {},
684
723
  onPress: () => o && le(o),
685
724
  children: /* @__PURE__ */ e(
686
725
  u,
687
726
  {
688
- color: g ? "#fff" : "$color",
727
+ color: m ? "#fff" : "$color",
689
728
  fontSize: 12,
690
- fontWeight: g ? "700" : "400",
729
+ fontWeight: m ? "700" : "400",
691
730
  children: o || ""
692
731
  }
693
732
  )
@@ -696,7 +735,7 @@ const He = B.forwardRef(
696
735
  );
697
736
  })
698
737
  ] }),
699
- i === "datetime-local" && /* @__PURE__ */ l(
738
+ i === "datetime-local" && /* @__PURE__ */ c(
700
739
  b,
701
740
  {
702
741
  marginTop: "$2",
@@ -705,20 +744,20 @@ const He = B.forwardRef(
705
744
  borderColor: "$borderColor",
706
745
  gap: "$2",
707
746
  children: [
708
- /* @__PURE__ */ l(x, { justifyContent: "space-around", alignItems: "center", children: [
709
- /* @__PURE__ */ l(b, { alignItems: "center", gap: "$1", children: [
747
+ /* @__PURE__ */ c(x, { justifyContent: "space-around", alignItems: "center", children: [
748
+ /* @__PURE__ */ c(b, { alignItems: "center", gap: "$1", children: [
710
749
  /* @__PURE__ */ e(
711
- y,
750
+ $,
712
751
  {
713
752
  size: "sm",
714
753
  variant: "ghost",
715
754
  padding: 0,
716
- onPress: () => T(1, 0, 0),
755
+ onPress: () => R(1, 0, 0),
717
756
  children: /* @__PURE__ */ e(u, { fontSize: 16, children: "+" })
718
757
  }
719
758
  ),
720
759
  /* @__PURE__ */ e(
721
- E,
760
+ W,
722
761
  {
723
762
  size: "sm",
724
763
  width: 52,
@@ -730,37 +769,37 @@ const He = B.forwardRef(
730
769
  let a = parseInt(o);
731
770
  if (!isNaN(a)) {
732
771
  a === 12 && (a = 0);
733
- const g = new Date(f), $ = g.getHours() >= 12;
734
- g.setHours($ ? a + 12 : a), F(g);
772
+ const m = new Date(f), y = m.getHours() >= 12;
773
+ m.setHours(y ? a + 12 : a), E(m);
735
774
  }
736
775
  }
737
776
  }
738
777
  ),
739
778
  /* @__PURE__ */ e(
740
- y,
779
+ $,
741
780
  {
742
781
  size: "sm",
743
782
  variant: "ghost",
744
783
  padding: 0,
745
- onPress: () => T(-1, 0, 0),
784
+ onPress: () => R(-1, 0, 0),
746
785
  children: /* @__PURE__ */ e(u, { fontSize: 16, children: "-" })
747
786
  }
748
787
  )
749
788
  ] }),
750
789
  /* @__PURE__ */ e(u, { fontSize: 16, color: "muted", marginTop: 10, position: "relative", top: -2, children: ":" }),
751
- /* @__PURE__ */ l(b, { alignItems: "center", gap: "$1", children: [
790
+ /* @__PURE__ */ c(b, { alignItems: "center", gap: "$1", children: [
752
791
  /* @__PURE__ */ e(
753
- y,
792
+ $,
754
793
  {
755
794
  size: "sm",
756
795
  variant: "ghost",
757
796
  padding: 0,
758
- onPress: () => T(0, 5, 0),
797
+ onPress: () => R(0, 5, 0),
759
798
  children: /* @__PURE__ */ e(u, { fontSize: 16, children: "+" })
760
799
  }
761
800
  ),
762
801
  /* @__PURE__ */ e(
763
- E,
802
+ W,
764
803
  {
765
804
  size: "sm",
766
805
  width: 52,
@@ -771,37 +810,37 @@ const He = B.forwardRef(
771
810
  onChangeText: (o) => {
772
811
  const a = parseInt(o);
773
812
  if (!isNaN(a) && a >= 0 && a < 60) {
774
- const g = new Date(f);
775
- g.setMinutes(a), F(g);
813
+ const m = new Date(f);
814
+ m.setMinutes(a), E(m);
776
815
  }
777
816
  }
778
817
  }
779
818
  ),
780
819
  /* @__PURE__ */ e(
781
- y,
820
+ $,
782
821
  {
783
822
  size: "sm",
784
823
  variant: "ghost",
785
824
  padding: 0,
786
- onPress: () => T(0, -5, 0),
825
+ onPress: () => R(0, -5, 0),
787
826
  children: /* @__PURE__ */ e(u, { fontSize: 16, children: "-" })
788
827
  }
789
828
  )
790
829
  ] }),
791
830
  /* @__PURE__ */ e(u, { fontSize: 16, color: "muted", marginTop: 10, position: "relative", top: -2, children: ":" }),
792
- /* @__PURE__ */ l(b, { alignItems: "center", gap: "$1", children: [
831
+ /* @__PURE__ */ c(b, { alignItems: "center", gap: "$1", children: [
793
832
  /* @__PURE__ */ e(
794
- y,
833
+ $,
795
834
  {
796
835
  size: "sm",
797
836
  variant: "ghost",
798
837
  padding: 0,
799
- onPress: () => T(0, 0, 10),
838
+ onPress: () => R(0, 0, 10),
800
839
  children: /* @__PURE__ */ e(u, { fontSize: 16, children: "+" })
801
840
  }
802
841
  ),
803
842
  /* @__PURE__ */ e(
804
- E,
843
+ W,
805
844
  {
806
845
  size: "sm",
807
846
  width: 52,
@@ -812,25 +851,25 @@ const He = B.forwardRef(
812
851
  onChangeText: (o) => {
813
852
  const a = parseInt(o);
814
853
  if (!isNaN(a) && a >= 0 && a < 60) {
815
- const g = new Date(f);
816
- g.setSeconds(a), F(g);
854
+ const m = new Date(f);
855
+ m.setSeconds(a), E(m);
817
856
  }
818
857
  }
819
858
  }
820
859
  ),
821
860
  /* @__PURE__ */ e(
822
- y,
861
+ $,
823
862
  {
824
863
  size: "sm",
825
864
  variant: "ghost",
826
865
  padding: 0,
827
- onPress: () => T(0, 0, -10),
866
+ onPress: () => R(0, 0, -10),
828
867
  children: /* @__PURE__ */ e(u, { fontSize: 16, children: "-" })
829
868
  }
830
869
  )
831
870
  ] }),
832
871
  /* @__PURE__ */ e(b, { justifyContent: "center", marginTop: 10, position: "relative", top: -2, children: /* @__PURE__ */ e(
833
- y,
872
+ $,
834
873
  {
835
874
  size: "sm",
836
875
  variant: "primary",
@@ -843,10 +882,10 @@ const He = B.forwardRef(
843
882
  }
844
883
  ) })
845
884
  ] }),
846
- /* @__PURE__ */ l(x, { marginTop: "$1", children: [
847
- /* @__PURE__ */ e(y, { variant: "default", size: "sm", onPress: ue, flex: 1, children: "Now" }),
848
- /* @__PURE__ */ e(C, { width: 8 }),
849
- /* @__PURE__ */ e(y, { variant: "primary", size: "sm", onPress: () => m(!1), flex: 2, children: "Apply Selection" })
885
+ /* @__PURE__ */ c(x, { marginTop: "$1", children: [
886
+ /* @__PURE__ */ e($, { variant: "default", size: "sm", onPress: ue, flex: 1, children: "Now" }),
887
+ /* @__PURE__ */ e(k, { width: 8 }),
888
+ /* @__PURE__ */ e($, { variant: "primary", size: "sm", onPress: () => l(!1), flex: 2, children: "Apply Selection" })
850
889
  ] })
851
890
  ]
852
891
  }
@@ -857,16 +896,16 @@ const He = B.forwardRef(
857
896
  ] });
858
897
  }
859
898
  );
860
- He.displayName = "DatePicker";
861
- function Ne({ trigger: r, content: t, placement: n = "bottom-start" }) {
862
- const [i, d] = v(!1), s = te(null);
863
- return k(() => {
899
+ Ne.displayName = "DatePicker";
900
+ function Le({ trigger: r, content: t, placement: n = "bottom-start" }) {
901
+ const [i, d] = z(!1), s = te(null);
902
+ return F(() => {
864
903
  if (typeof document > "u") return;
865
- const h = (m) => {
866
- s.current && !s.current.contains(m.target) && d(!1);
904
+ const h = (l) => {
905
+ s.current && !s.current.contains(l.target) && d(!1);
867
906
  };
868
907
  return document.addEventListener("mousedown", h), () => document.removeEventListener("mousedown", h);
869
- }, []), /* @__PURE__ */ l(b, { position: "relative", ref: s, children: [
908
+ }, []), /* @__PURE__ */ c(b, { position: "relative", ref: s, children: [
870
909
  /* @__PURE__ */ e(x, { onPress: () => d(!i), style: { cursor: "pointer" }, children: r }),
871
910
  i && /* @__PURE__ */ e(
872
911
  Y,
@@ -895,7 +934,7 @@ function Ne({ trigger: r, content: t, placement: n = "bottom-start" }) {
895
934
  shadowOpacity: 0.1,
896
935
  shadowRadius: 10,
897
936
  children: /* @__PURE__ */ e(
898
- R,
937
+ A,
899
938
  {
900
939
  elevated: !0,
901
940
  padding: "$sm",
@@ -909,7 +948,7 @@ function Ne({ trigger: r, content: t, placement: n = "bottom-start" }) {
909
948
  )
910
949
  ] });
911
950
  }
912
- const ie = B.forwardRef(
951
+ const ie = D.forwardRef(
913
952
  ({
914
953
  error: r,
915
954
  size: t = "md",
@@ -917,21 +956,21 @@ const ie = B.forwardRef(
917
956
  onChange: i,
918
957
  onValueChange: d,
919
958
  options: s,
920
- placeholder: c,
959
+ placeholder: g,
921
960
  disabled: h,
922
- name: m,
923
- onBlur: P,
924
- onFocus: I,
925
- ...A
926
- }, W) => {
927
- const M = s.find((w) => w.value === n), H = M ? M.label : c || "Select an option...", f = (w) => {
961
+ name: l,
962
+ onBlur: B,
963
+ onFocus: T,
964
+ ...P
965
+ }, C) => {
966
+ const S = s.find((w) => w.value === n), H = S ? S.label : g || "Select an option...", f = (w) => {
928
967
  d == null || d(w), i && i({
929
- target: { value: w, name: m || "" }
968
+ target: { value: w, name: l || "" }
930
969
  });
931
- }, p = /* @__PURE__ */ l(
932
- y,
970
+ }, p = /* @__PURE__ */ c(
971
+ $,
933
972
  {
934
- ref: W,
973
+ ref: C,
935
974
  disabled: h,
936
975
  size: t,
937
976
  variant: r ? "ghost" : "default",
@@ -944,7 +983,7 @@ const ie = B.forwardRef(
944
983
  L,
945
984
  {
946
985
  fontSize: t === "sm" ? "$xs" : "$sm",
947
- color: M ? "$color" : "$colorMuted",
986
+ color: S ? "$color" : "$colorMuted",
948
987
  children: H
949
988
  }
950
989
  ),
@@ -964,19 +1003,19 @@ const ie = B.forwardRef(
964
1003
  )
965
1004
  ]
966
1005
  }
967
- ), z = /* @__PURE__ */ l(b, { gap: "$xs", children: [
968
- c && /* @__PURE__ */ e(
969
- y,
1006
+ ), M = /* @__PURE__ */ c(b, { gap: "$xs", children: [
1007
+ g && /* @__PURE__ */ e(
1008
+ $,
970
1009
  {
971
1010
  variant: "ghost",
972
1011
  size: "sm",
973
1012
  justifyContent: "flex-start",
974
1013
  onPress: () => f(""),
975
- children: /* @__PURE__ */ e(L, { fontSize: "$sm", color: "$colorMuted", children: c })
1014
+ children: /* @__PURE__ */ e(L, { fontSize: "$sm", color: "$colorMuted", children: g })
976
1015
  }
977
1016
  ),
978
1017
  s.map((w) => /* @__PURE__ */ e(
979
- y,
1018
+ $,
980
1019
  {
981
1020
  variant: "ghost",
982
1021
  size: "sm",
@@ -992,28 +1031,28 @@ const ie = B.forwardRef(
992
1031
  b,
993
1032
  {
994
1033
  position: "relative",
995
- width: A.width || "100%",
996
- minWidth: A.minWidth,
1034
+ width: P.width || "100%",
1035
+ minWidth: P.minWidth,
997
1036
  pointerEvents: "box-none",
998
- children: /* @__PURE__ */ e(Ne, { trigger: p, content: z, placement: "bottom-start" })
1037
+ children: /* @__PURE__ */ e(Le, { trigger: p, content: M, placement: "bottom-start" })
999
1038
  }
1000
1039
  );
1001
1040
  }
1002
1041
  );
1003
1042
  ie.displayName = "Select";
1004
- const Le = {
1043
+ const Oe = {
1005
1044
  success: "✓",
1006
1045
  error: "✕",
1007
1046
  warning: "⚠",
1008
1047
  info: "ℹ"
1009
1048
  };
1010
- function Oe({
1049
+ function je({
1011
1050
  message: r,
1012
1051
  variant: t = "info",
1013
1052
  duration: n = 4e3,
1014
1053
  onDismiss: i
1015
1054
  }) {
1016
- return k(() => {
1055
+ return F(() => {
1017
1056
  if (n > 0 && i) {
1018
1057
  const d = setTimeout(i, n);
1019
1058
  return () => clearTimeout(d);
@@ -1033,10 +1072,10 @@ function Oe({
1033
1072
  shadowColor: "$shadowColor",
1034
1073
  shadowRadius: 10,
1035
1074
  shadowOffset: { width: 0, height: 4 },
1036
- children: /* @__PURE__ */ l(x, { alignItems: "center", gap: "$sm", children: [
1037
- /* @__PURE__ */ e(u, { fontWeight: "600", children: Le[t] }),
1075
+ children: /* @__PURE__ */ c(x, { alignItems: "center", gap: "$sm", children: [
1076
+ /* @__PURE__ */ e(u, { fontWeight: "600", children: Oe[t] }),
1038
1077
  /* @__PURE__ */ e(u, { flex: 1, children: r }),
1039
- i && /* @__PURE__ */ e(y, { variant: "ghost", size: "sm", onPress: i, "aria-label": "Dismiss notification", children: "✕" })
1078
+ i && /* @__PURE__ */ e($, { variant: "ghost", size: "sm", onPress: i, "aria-label": "Dismiss notification", children: "✕" })
1040
1079
  ] })
1041
1080
  }
1042
1081
  );
@@ -1052,32 +1091,32 @@ function St({ toasts: r, onDismiss: t }) {
1052
1091
  zIndex: 60,
1053
1092
  gap: "$sm",
1054
1093
  pointerEvents: "none",
1055
- children: r.map((n) => /* @__PURE__ */ e(b, { pointerEvents: "auto", children: /* @__PURE__ */ e(Oe, { ...n, onDismiss: () => t(n.id) }) }, n.id))
1094
+ children: r.map((n) => /* @__PURE__ */ e(b, { pointerEvents: "auto", children: /* @__PURE__ */ e(je, { ...n, onDismiss: () => t(n.id) }) }, n.id))
1056
1095
  }
1057
1096
  );
1058
1097
  }
1059
- const ae = q(null), je = ({ children: r }) => {
1060
- const [t, n] = v(/* @__PURE__ */ new Map()), i = (s, c) => {
1098
+ const ae = q(null), _e = ({ children: r }) => {
1099
+ const [t, n] = z(/* @__PURE__ */ new Map()), i = (s, g) => {
1061
1100
  n((h) => {
1062
- const m = new Map(h);
1063
- return m.set(s, c), m;
1101
+ const l = new Map(h);
1102
+ return l.set(s, g), l;
1064
1103
  });
1065
1104
  }, d = (s) => {
1066
- n((c) => {
1067
- const h = new Map(c);
1105
+ n((g) => {
1106
+ const h = new Map(g);
1068
1107
  return h.delete(s), h;
1069
1108
  });
1070
1109
  };
1071
- return /* @__PURE__ */ l(ae.Provider, { value: { register: i, unregister: d }, children: [
1110
+ return /* @__PURE__ */ c(ae.Provider, { value: { register: i, unregister: d }, children: [
1072
1111
  r,
1073
- /* @__PURE__ */ e(_e, { portals: t })
1112
+ /* @__PURE__ */ e(Ye, { portals: t })
1074
1113
  ] });
1075
- }, _e = ({ portals: r }) => typeof document < "u" ? null : /* @__PURE__ */ e(xe, { children: Array.from(r.entries()).map(([t, n]) => /* @__PURE__ */ e(B.Fragment, { children: n }, t)) }), se = ({ children: r }) => {
1076
- const t = ee(ae), [n] = v(() => Math.random().toString(36).substr(2, 9));
1077
- if (k(() => {
1114
+ }, Ye = ({ portals: r }) => typeof document < "u" ? null : /* @__PURE__ */ e(xe, { children: Array.from(r.entries()).map(([t, n]) => /* @__PURE__ */ e(D.Fragment, { children: n }, t)) }), se = ({ children: r }) => {
1115
+ const t = ee(ae), [n] = z(() => Math.random().toString(36).substr(2, 9));
1116
+ if (F(() => {
1078
1117
  if (!(typeof document < "u" || !t))
1079
1118
  return () => t.unregister(n);
1080
- }, [t, n]), k(() => {
1119
+ }, [t, n]), F(() => {
1081
1120
  typeof document > "u" && t && t.register(n, r);
1082
1121
  }), typeof document < "u") {
1083
1122
  let i = document.getElementById("portal-root");
@@ -1086,12 +1125,12 @@ const ae = q(null), je = ({ children: r }) => {
1086
1125
  return i.className !== d && (i.className = d), ve.createPortal(r, i);
1087
1126
  }
1088
1127
  return null;
1089
- }, Ye = {
1128
+ }, Ve = {
1090
1129
  sm: 400,
1091
1130
  md: 600,
1092
1131
  lg: 900,
1093
1132
  xl: 1200
1094
- }, Ct = ({ isOpen: r, onClose: t, title: n, footer: i, size: d = "md", children: s }) => r ? /* @__PURE__ */ e(se, { children: /* @__PURE__ */ l(
1133
+ }, vt = ({ isOpen: r, onClose: t, title: n, footer: i, size: d = "md", children: s }) => r ? /* @__PURE__ */ e(se, { children: /* @__PURE__ */ c(
1095
1134
  Y,
1096
1135
  {
1097
1136
  position: "absolute",
@@ -1118,10 +1157,10 @@ const ae = q(null), je = ({ children: r }) => {
1118
1157
  zIndex: 10
1119
1158
  }
1120
1159
  ),
1121
- /* @__PURE__ */ l(
1122
- R,
1160
+ /* @__PURE__ */ c(
1161
+ A,
1123
1162
  {
1124
- width: Ye[d],
1163
+ width: Ve[d],
1125
1164
  maxWidth: "95%",
1126
1165
  maxHeight: "90vh",
1127
1166
  backgroundColor: "$background",
@@ -1133,7 +1172,7 @@ const ae = q(null), je = ({ children: r }) => {
1133
1172
  borderColor: "$borderColor",
1134
1173
  zIndex: 100,
1135
1174
  children: [
1136
- /* @__PURE__ */ l(
1175
+ /* @__PURE__ */ c(
1137
1176
  x,
1138
1177
  {
1139
1178
  padding: "$4",
@@ -1144,7 +1183,7 @@ const ae = q(null), je = ({ children: r }) => {
1144
1183
  backgroundColor: "$backgroundSecondary",
1145
1184
  children: [
1146
1185
  /* @__PURE__ */ e(u, { fontWeight: "700", size: "lg", children: n }),
1147
- /* @__PURE__ */ e(y, { size: "sm", variant: "ghost", onPress: t, padding: "$2", children: /* @__PURE__ */ e(u, { children: "✕" }) })
1186
+ /* @__PURE__ */ e($, { size: "sm", variant: "ghost", onPress: t, padding: "$2", children: /* @__PURE__ */ e(u, { children: "✕" }) })
1148
1187
  ]
1149
1188
  }
1150
1189
  ),
@@ -1167,8 +1206,8 @@ const ae = q(null), je = ({ children: r }) => {
1167
1206
  ]
1168
1207
  }
1169
1208
  ) }) : null;
1170
- function vt({ isOpen: r, onClose: t, title: n, width: i = 420, children: d, footer: s }) {
1171
- return r ? /* @__PURE__ */ e(se, { children: /* @__PURE__ */ l(
1209
+ function kt({ isOpen: r, onClose: t, title: n, width: i = 420, children: d, footer: s }) {
1210
+ return r ? /* @__PURE__ */ e(se, { children: /* @__PURE__ */ c(
1172
1211
  Y,
1173
1212
  {
1174
1213
  position: "absolute",
@@ -1178,7 +1217,7 @@ function vt({ isOpen: r, onClose: t, title: n, width: i = 420, children: d, foot
1178
1217
  bottom: 0,
1179
1218
  width: "100%",
1180
1219
  height: "100%",
1181
- zIndex: 99998,
1220
+ zIndex: 1e5,
1182
1221
  children: [
1183
1222
  /* @__PURE__ */ e(
1184
1223
  b,
@@ -1193,8 +1232,8 @@ function vt({ isOpen: r, onClose: t, title: n, width: i = 420, children: d, foot
1193
1232
  zIndex: 10
1194
1233
  }
1195
1234
  ),
1196
- /* @__PURE__ */ l(
1197
- R,
1235
+ /* @__PURE__ */ c(
1236
+ A,
1198
1237
  {
1199
1238
  style: {
1200
1239
  position: "fixed",
@@ -1219,7 +1258,7 @@ function vt({ isOpen: r, onClose: t, title: n, width: i = 420, children: d, foot
1219
1258
  elevated: !1,
1220
1259
  zIndex: 100,
1221
1260
  children: [
1222
- /* @__PURE__ */ l(
1261
+ /* @__PURE__ */ c(
1223
1262
  x,
1224
1263
  {
1225
1264
  padding: "$md",
@@ -1230,7 +1269,7 @@ function vt({ isOpen: r, onClose: t, title: n, width: i = 420, children: d, foot
1230
1269
  backgroundColor: "$backgroundSecondary",
1231
1270
  children: [
1232
1271
  /* @__PURE__ */ e(u, { fontWeight: "700", size: "$md", children: n }),
1233
- /* @__PURE__ */ e(y, { size: "sm", variant: "ghost", onPress: t, children: "✕" })
1272
+ /* @__PURE__ */ e($, { size: "sm", variant: "ghost", onPress: t, children: "✕" })
1234
1273
  ]
1235
1274
  }
1236
1275
  ),
@@ -1254,13 +1293,13 @@ function vt({ isOpen: r, onClose: t, title: n, width: i = 420, children: d, foot
1254
1293
  }
1255
1294
  ) }) : null;
1256
1295
  }
1257
- const Ve = {
1296
+ const Ke = {
1258
1297
  $sm: 24,
1259
1298
  $md: 32,
1260
1299
  $lg: 40,
1261
1300
  $xl: 48
1262
1301
  };
1263
- function kt({
1302
+ function zt({
1264
1303
  src: r,
1265
1304
  fallback: t,
1266
1305
  size: n = "$md",
@@ -1268,23 +1307,23 @@ function kt({
1268
1307
  borderWidth: d,
1269
1308
  borderColor: s
1270
1309
  }) {
1271
- const [c, h] = v(!1), m = typeof n == "number" ? n : Ve[n] || 32;
1310
+ const [g, h] = z(!1), l = typeof n == "number" ? n : Ke[n] || 32;
1272
1311
  return /* @__PURE__ */ e(
1273
1312
  b,
1274
1313
  {
1275
- width: m,
1276
- height: m,
1277
- borderRadius: i ? m / 2 : "$sm",
1314
+ width: l,
1315
+ height: l,
1316
+ borderRadius: i ? l / 2 : "$sm",
1278
1317
  backgroundColor: "$bgTertiary",
1279
1318
  alignItems: "center",
1280
1319
  justifyContent: "center",
1281
1320
  overflow: "hidden",
1282
1321
  borderWidth: d,
1283
1322
  borderColor: s,
1284
- children: r && !c ? /* @__PURE__ */ e(
1323
+ children: r && !g ? /* @__PURE__ */ e(
1285
1324
  ke,
1286
1325
  {
1287
- source: { uri: r, width: m, height: m },
1326
+ source: { uri: r, width: l, height: l },
1288
1327
  width: "100%",
1289
1328
  height: "100%",
1290
1329
  onError: () => h(!0)
@@ -1293,7 +1332,7 @@ function kt({
1293
1332
  }
1294
1333
  );
1295
1334
  }
1296
- function zt({ vertical: r }) {
1335
+ function Ft({ vertical: r }) {
1297
1336
  return /* @__PURE__ */ e(
1298
1337
  b,
1299
1338
  {
@@ -1303,40 +1342,40 @@ function zt({ vertical: r }) {
1303
1342
  }
1304
1343
  );
1305
1344
  }
1306
- function Ke(r) {
1345
+ function Ue(r) {
1307
1346
  return r.replace(/[-_](.)/g, (t, n) => n.toUpperCase()).replace(/^(.)/, (t) => t.toUpperCase());
1308
1347
  }
1309
- function Ue({ name: r, size: t, color: n, strokeWidth: i, ...d }) {
1310
- const s = Ke(r), c = s in N ? N[s] : N.Box;
1311
- return /* @__PURE__ */ e(c, { size: t, color: n, strokeWidth: i, ...d });
1348
+ function Xe({ name: r, size: t, color: n, strokeWidth: i, ...d }) {
1349
+ const s = Ue(r), g = s in N ? N[s] : N.Box;
1350
+ return /* @__PURE__ */ e(g, { size: t, color: n, strokeWidth: i, ...d });
1312
1351
  }
1313
- function Ft() {
1352
+ function Dt() {
1314
1353
  const { theme: r, toggleTheme: t } = ne();
1315
1354
  return /* @__PURE__ */ e(
1316
- y,
1355
+ $,
1317
1356
  {
1318
1357
  variant: "ghost",
1319
1358
  onPress: t,
1320
1359
  "aria-label": `Switch to ${r === "light" ? "dark" : "light"} mode`,
1321
1360
  title: `Current theme: ${r}`,
1322
- children: /* @__PURE__ */ e(Ue, { name: r === "light" ? "moon" : "sun", size: 20 })
1361
+ children: /* @__PURE__ */ e(Xe, { name: r === "light" ? "moon" : "sun", size: 20 })
1323
1362
  }
1324
1363
  );
1325
1364
  }
1326
- const Xe = { violet: { 50: "#F5F3FF", 100: "#EDE9FE", 200: "#DDD6FE", 300: "#C4B5FD", 400: "#A78BFA", 500: "#8B5CF6", 600: "#7C3AED", 700: "#6D28D9", 800: "#5B21B6", 900: "#4C1D95", 950: "#2E1065" }, navy: { 50: "#E8EDF4", 100: "#C5D0E0", 200: "#9EAFCA", 300: "#778EB4", 400: "#5975A3", 500: "#3B5C93", 600: "#2F4A78", 700: "#1E3358", 800: "#0F1F3A", 900: "#021526", 950: "#01101E" } }, Je = { light: { primary: "#8B5CF6", primaryHover: "#7C3AED", primaryActive: "#6D28D9", bg: "#FFFFFF", bgSecondary: "#F8FAFC", bgTertiary: "#F1F5F9", border: "#E2E8F0", text: "#0F172A", textSecondary: "#64748B", textMuted: "#94A3B8", sidebarBg: "#021526", sidebarText: "#E2E8F0", sidebarTextMuted: "rgba(255, 255, 255, 0.65)", sidebarHover: "rgba(139, 92, 246, 0.15)", sidebarSearchBg: "rgba(255, 255, 255, 0.1)", sidebarItemActiveBg: "rgba(139, 92, 246, 0.3)", success: "#22C55E", warning: "#F59E0B", error: "#EF4444", errorBg: "#FFF2F0", errorBorder: "#FFCCC7", focusRing: "rgba(139, 92, 246, 0.25)", secondary: "#0F172A", borderColorMuted: "rgba(226, 232, 240, 0.4)" }, dark: { primary: "#A78BFA", primaryHover: "#8B5CF6", primaryActive: "#7C3AED", bg: "#01101E", bgSecondary: "#021526", bgTertiary: "#0F1F3A", border: "#1E3358", text: "#F1F5F9", textSecondary: "#CBD5E1", textMuted: "#94A3B8", sidebarBg: "#00050A", sidebarText: "#E2E8F0", sidebarTextMuted: "#94A3B8", sidebarHover: "rgba(167, 139, 250, 0.15)", sidebarSearchBg: "rgba(255, 255, 255, 0.05)", sidebarItemActiveBg: "rgba(167, 139, 250, 0.2)", success: "#22C55E", warning: "#F59E0B", error: "#EF4444", errorBg: "rgba(239, 68, 68, 0.1)", errorBorder: "rgba(239, 68, 68, 0.3)", focusRing: "rgba(167, 139, 250, 0.3)", secondary: "#F1F5F9", borderColorMuted: "rgba(30, 51, 88, 0.4)" } }, j = {
1327
- brand: Xe,
1328
- semantic: Je
1329
- }, Ze = { sans: "'Google Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", mono: "'JetBrains Mono', 'Fira Code', monospace" }, Ge = { xs: "0.75rem", sm: "0.875rem", base: "0.875rem", md: "1rem", lg: "1.125rem", xl: "1.375rem", "2xl": "1.75rem", "3xl": "2rem" }, Qe = { normal: 400, medium: 500, semibold: 600, bold: 700 }, qe = { tight: 1.3, normal: 1.5, relaxed: 1.6 }, V = {
1330
- fontFamily: Ze,
1331
- fontSize: Ge,
1332
- fontWeight: Qe,
1333
- lineHeight: qe
1334
- }, et = { xs: "0.25rem", sm: "0.5rem", md: "1rem", lg: "1.5rem", xl: "2rem", "2xl": "3rem" }, tt = { sm: "4px", md: "6px", lg: "8px", xl: "12px", full: "9999px" }, rt = { sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)", md: "0 4px 6px -1px rgb(0 0 0 / 0.1)", lg: "0 10px 15px -3px rgb(0 0 0 / 0.1)" }, de = {
1335
- spacing: et,
1336
- borderRadius: tt,
1337
- shadow: rt
1365
+ const Je = { violet: { 50: "#F5F3FF", 100: "#EDE9FE", 200: "#DDD6FE", 300: "#C4B5FD", 400: "#A78BFA", 500: "#8B5CF6", 600: "#7C3AED", 700: "#6D28D9", 800: "#5B21B6", 900: "#4C1D95", 950: "#2E1065" }, navy: { 50: "#E8EDF4", 100: "#C5D0E0", 200: "#9EAFCA", 300: "#778EB4", 400: "#5975A3", 500: "#3B5C93", 600: "#2F4A78", 700: "#1E3358", 800: "#0F1F3A", 900: "#021526", 950: "#01101E" } }, Ze = { light: { primary: "#8B5CF6", primaryHover: "#7C3AED", primaryActive: "#6D28D9", bg: "#FFFFFF", bgSecondary: "#F8FAFC", bgTertiary: "#F1F5F9", border: "#E2E8F0", text: "#0F172A", textSecondary: "#64748B", textMuted: "#94A3B8", sidebarBg: "#021526", sidebarText: "#E2E8F0", sidebarTextMuted: "rgba(255, 255, 255, 0.65)", sidebarHover: "rgba(139, 92, 246, 0.15)", sidebarSearchBg: "rgba(255, 255, 255, 0.1)", sidebarItemActiveBg: "rgba(139, 92, 246, 0.3)", success: "#22C55E", warning: "#F59E0B", error: "#EF4444", errorBg: "#FFF2F0", errorBorder: "#FFCCC7", focusRing: "rgba(139, 92, 246, 0.25)", secondary: "#0F172A", borderColorMuted: "rgba(226, 232, 240, 0.4)" }, dark: { primary: "#A78BFA", primaryHover: "#8B5CF6", primaryActive: "#7C3AED", bg: "#01101E", bgSecondary: "#021526", bgTertiary: "#0F1F3A", border: "#1E3358", text: "#F1F5F9", textSecondary: "#CBD5E1", textMuted: "#94A3B8", sidebarBg: "#00050A", sidebarText: "#E2E8F0", sidebarTextMuted: "#94A3B8", sidebarHover: "rgba(167, 139, 250, 0.15)", sidebarSearchBg: "rgba(255, 255, 255, 0.05)", sidebarItemActiveBg: "rgba(167, 139, 250, 0.2)", success: "#22C55E", warning: "#F59E0B", error: "#EF4444", errorBg: "rgba(239, 68, 68, 0.1)", errorBorder: "rgba(239, 68, 68, 0.3)", focusRing: "rgba(167, 139, 250, 0.3)", secondary: "#F1F5F9", borderColorMuted: "rgba(30, 51, 88, 0.4)" } }, j = {
1366
+ brand: Je,
1367
+ semantic: Ze
1368
+ }, Ge = { sans: "'Google Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", mono: "'JetBrains Mono', 'Fira Code', monospace" }, Qe = { xs: "0.75rem", sm: "0.875rem", base: "0.875rem", md: "1rem", lg: "1.125rem", xl: "1.375rem", "2xl": "1.75rem", "3xl": "2rem" }, qe = { normal: 400, medium: 500, semibold: 600, bold: 700 }, et = { tight: 1.3, normal: 1.5, relaxed: 1.6 }, V = {
1369
+ fontFamily: Ge,
1370
+ fontSize: Qe,
1371
+ fontWeight: qe,
1372
+ lineHeight: et
1373
+ }, tt = { xs: "0.25rem", sm: "0.5rem", md: "1rem", lg: "1.5rem", xl: "2rem", "2xl": "3rem" }, rt = { sm: "4px", md: "6px", lg: "8px", xl: "12px", full: "9999px" }, ot = { sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)", md: "0 4px 6px -1px rgb(0 0 0 / 0.1)", lg: "0 10px 15px -3px rgb(0 0 0 / 0.1)" }, de = {
1374
+ spacing: tt,
1375
+ borderRadius: rt,
1376
+ shadow: ot
1338
1377
  };
1339
- function ot() {
1378
+ function nt() {
1340
1379
  return {
1341
1380
  primary: j.semantic.light.primary,
1342
1381
  secondary: j.semantic.light.secondary,
@@ -1345,7 +1384,7 @@ function ot() {
1345
1384
  transparent: "transparent"
1346
1385
  };
1347
1386
  }
1348
- function nt() {
1387
+ function it() {
1349
1388
  const r = {};
1350
1389
  return Object.entries(V.fontSize).forEach(([t, n]) => {
1351
1390
  const i = parseFloat(n.toString());
@@ -1379,27 +1418,27 @@ function Q(r) {
1379
1418
  )
1380
1419
  };
1381
1420
  }
1382
- function it() {
1421
+ function at() {
1383
1422
  const r = {};
1384
1423
  return Object.entries(de.spacing).forEach(([t, n]) => {
1385
1424
  const i = parseFloat(n.toString());
1386
1425
  r[t] = isNaN(i) ? 0 : i * 16;
1387
1426
  }), r;
1388
1427
  }
1389
- function at() {
1428
+ function st() {
1390
1429
  const r = {};
1391
1430
  return Object.entries(de.borderRadius).forEach(([t, n]) => {
1392
1431
  const i = parseFloat(n.toString());
1393
1432
  r[t] = isNaN(i) ? 0 : i;
1394
1433
  }), r.full = 9999, r.pill = 9999, r.round = 8, r;
1395
1434
  }
1396
- function st() {
1435
+ function dt() {
1397
1436
  return {
1398
1437
  tokens: {
1399
- color: ot(),
1400
- space: it(),
1401
- size: nt(),
1402
- radius: at(),
1438
+ color: nt(),
1439
+ space: at(),
1440
+ size: it(),
1441
+ radius: st(),
1403
1442
  zIndex: {
1404
1443
  base: 0,
1405
1444
  dropdown: 100,
@@ -1413,15 +1452,15 @@ function st() {
1413
1452
  }
1414
1453
  };
1415
1454
  }
1416
- const D = st(), dt = we({
1417
- color: D.tokens.color,
1418
- space: D.tokens.space,
1419
- size: D.tokens.size,
1420
- radius: D.tokens.radius,
1421
- zIndex: D.tokens.zIndex
1422
- }), lt = re({
1455
+ const I = dt(), lt = we({
1456
+ color: I.tokens.color,
1457
+ space: I.tokens.space,
1458
+ size: I.tokens.size,
1459
+ radius: I.tokens.radius,
1460
+ zIndex: I.tokens.zIndex
1461
+ }), ct = re({
1423
1462
  family: V.fontFamily.sans,
1424
- size: D.tokens.size,
1463
+ size: I.tokens.size,
1425
1464
  lineHeight: {
1426
1465
  tight: 1.3,
1427
1466
  normal: 1.5
@@ -1436,9 +1475,9 @@ const D = st(), dt = we({
1436
1475
  base: 0,
1437
1476
  lg: -0.2
1438
1477
  }
1439
- }), ct = re({
1478
+ }), ut = re({
1440
1479
  family: V.fontFamily.sans,
1441
- size: D.tokens.size,
1480
+ size: I.tokens.size,
1442
1481
  lineHeight: {
1443
1482
  tight: 1.3,
1444
1483
  normal: 1.5
@@ -1449,12 +1488,12 @@ const D = st(), dt = we({
1449
1488
  semibold: "600",
1450
1489
  bold: "700"
1451
1490
  }
1452
- }), ut = Se({
1453
- tokens: dt,
1454
- themes: D.themes,
1491
+ }), gt = Ce({
1492
+ tokens: lt,
1493
+ themes: I.themes,
1455
1494
  fonts: {
1456
- heading: lt,
1457
- body: ct
1495
+ heading: ct,
1496
+ body: ut
1458
1497
  },
1459
1498
  defaultTheme: "light",
1460
1499
  media: {
@@ -1473,43 +1512,43 @@ const D = st(), dt = we({
1473
1512
  pointerCoarse: { pointer: "coarse" }
1474
1513
  }
1475
1514
  });
1476
- function Dt({ children: r }) {
1515
+ function Tt({ children: r }) {
1477
1516
  const { theme: t } = ne();
1478
- return /* @__PURE__ */ e(Ce, { config: ut, defaultTheme: t, children: /* @__PURE__ */ e(je, { children: r }) });
1517
+ return /* @__PURE__ */ e(Se, { config: gt, defaultTheme: t, children: /* @__PURE__ */ e(_e, { children: r }) });
1479
1518
  }
1480
1519
  export {
1481
- kt as Avatar,
1482
- y as Button,
1483
- R as Card,
1484
- He as DatePicker,
1485
- vt as Drawer,
1520
+ zt as Avatar,
1521
+ $ as Button,
1522
+ A as Card,
1523
+ Ne as DatePicker,
1524
+ kt as Drawer,
1486
1525
  $t as Heading,
1487
- Ue as Icon,
1488
- E as Input,
1489
- xt as LocaleSwitcher,
1490
- Dt as MProvider,
1526
+ Xe as Icon,
1527
+ W as Input,
1528
+ wt as LocaleSwitcher,
1529
+ Tt as MProvider,
1491
1530
  J as MStack,
1492
1531
  u as MText,
1493
- Ct as Modal,
1532
+ vt as Modal,
1494
1533
  L as Paragraph,
1495
- Ne as Popover,
1534
+ Le as Popover,
1496
1535
  se as Portal,
1497
- _e as PortalHost,
1498
- je as PortalProvider,
1536
+ Ye as PortalHost,
1537
+ _e as PortalProvider,
1499
1538
  ie as Select,
1500
- zt as Separator,
1501
- wt as Skeleton,
1502
- yt as StateBadge,
1503
- pt as ThemeProvider,
1504
- Ft as ThemeToggle,
1505
- Oe as Toast,
1539
+ Ft as Separator,
1540
+ Ct as Skeleton,
1541
+ xt as StateBadge,
1542
+ yt as ThemeProvider,
1543
+ Dt as ThemeToggle,
1544
+ je as Toast,
1506
1545
  St as ToastContainer,
1507
1546
  x as XStack,
1508
1547
  b as YStack,
1509
1548
  Y as ZStack,
1510
1549
  j as colors,
1511
- st as generateMDesignConfig,
1512
- ut as mThemeConfig,
1550
+ dt as generateMDesignConfig,
1551
+ gt as mThemeConfig,
1513
1552
  de as spacing,
1514
1553
  V as typography,
1515
1554
  ne as useTheme