tango-ui-cw 1.0.8 → 1.0.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.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import { jsx as s, jsxs as P, Fragment as Ne } from "react/jsx-runtime";
3
- import te, { useState as Z, useRef as ke, useEffect as se, useContext as Ue, createContext as He, forwardRef as Lt, useCallback as oe, useMemo as Se, useId as Wt } from "react";
2
+ import { jsx as r, jsxs as P, Fragment as Ne } from "react/jsx-runtime";
3
+ import te, { useState as Z, useRef as ke, useEffect as re, useContext as Ue, createContext as He, forwardRef as Lt, useCallback as oe, useMemo as Se, useId as Wt } from "react";
4
4
  import { createPortal as Ut } from "react-dom";
5
5
  import t from "prop-types";
6
6
  import { twMerge as Ht } from "tailwind-merge";
@@ -14,68 +14,68 @@ const et = "tango:theme", tt = "tango:themeTokens", De = "light", Zt = [
14
14
  if (!Ot())
15
15
  return o;
16
16
  try {
17
- const r = window.localStorage.getItem(e);
18
- return r ? JSON.parse(r) : o;
17
+ const a = window.localStorage.getItem(e);
18
+ return a ? JSON.parse(a) : o;
19
19
  } catch {
20
20
  return o;
21
21
  }
22
- }, rt = (e, o) => {
22
+ }, at = (e, o) => {
23
23
  if (Ot())
24
24
  try {
25
25
  window.localStorage.setItem(e, JSON.stringify(o));
26
26
  } catch {
27
27
  }
28
28
  };
29
- function Jr({ children: e }) {
30
- const [o, r] = Z(De), n = ke(!1);
31
- se(() => {
29
+ function Ja({ children: e }) {
30
+ const [o, a] = Z(De), s = ke(!1);
31
+ re(() => {
32
32
  const d = ot(et, De);
33
- d !== De && r(d === "dark" ? "dark" : "light"), n.current = !0;
33
+ d !== De && a(d === "dark" ? "dark" : "light"), s.current = !0;
34
34
  }, []);
35
35
  const [c, l] = Z(
36
36
  () => ot(tt, {})
37
- ), a = ke(/* @__PURE__ */ new Set());
38
- se(() => {
37
+ ), n = ke(/* @__PURE__ */ new Set());
38
+ re(() => {
39
39
  typeof document > "u" || (document.documentElement.dataset.theme = o);
40
- }, [o]), se(() => {
41
- n.current && rt(et, o);
42
- }, [o]), se(() => {
40
+ }, [o]), re(() => {
41
+ s.current && at(et, o);
42
+ }, [o]), re(() => {
43
43
  if (typeof document > "u")
44
44
  return;
45
- const d = document.documentElement, g = new Set(Object.keys(c));
46
- a.current.forEach((v) => {
47
- g.has(v) || d.style.removeProperty(`--${v}`);
45
+ const d = document.documentElement, b = new Set(Object.keys(c));
46
+ n.current.forEach((v) => {
47
+ b.has(v) || d.style.removeProperty(`--${v}`);
48
48
  }), Object.entries(c).forEach(([v, w]) => {
49
49
  w == null || w === "" ? d.style.removeProperty(`--${v}`) : d.style.setProperty(`--${v}`, String(w));
50
- }), a.current = g, rt(tt, c);
50
+ }), n.current = b, at(tt, c);
51
51
  }, [c]);
52
52
  const i = (d) => {
53
- l((g) => {
54
- const v = typeof d == "function" ? d(g) : d;
53
+ l((b) => {
54
+ const v = typeof d == "function" ? d(b) : d;
55
55
  return {
56
- ...g,
56
+ ...b,
57
57
  ...v || {}
58
58
  };
59
59
  });
60
- }, u = (d, g = Zt) => {
60
+ }, u = (d, b = Zt) => {
61
61
  i((v) => {
62
62
  const w = { ...v };
63
- return g.forEach((C) => {
63
+ return b.forEach((C) => {
64
64
  w[C] = d;
65
65
  }), w;
66
66
  });
67
67
  }, h = () => {
68
68
  l({});
69
- }, m = () => {
70
- r((d) => d === "dark" ? "light" : "dark");
69
+ }, g = () => {
70
+ a((d) => d === "dark" ? "light" : "dark");
71
71
  };
72
- return /* @__PURE__ */ s(
72
+ return /* @__PURE__ */ r(
73
73
  Pt.Provider,
74
74
  {
75
75
  value: {
76
76
  theme: o,
77
- setTheme: r,
78
- toggleTheme: m,
77
+ setTheme: a,
78
+ toggleTheme: g,
79
79
  themeTokens: c,
80
80
  setThemeTokens: i,
81
81
  setThemeColor: u,
@@ -85,7 +85,7 @@ function Jr({ children: e }) {
85
85
  }
86
86
  );
87
87
  }
88
- function Qr() {
88
+ function Qa() {
89
89
  return Ue(Pt);
90
90
  }
91
91
  const Gt = /* @__PURE__ */ new Set([
@@ -98,7 +98,7 @@ const Gt = /* @__PURE__ */ new Set([
98
98
  ]), $e = {
99
99
  tw: "",
100
100
  css: {}
101
- }, ye = (e) => typeof e == "object" && e !== null && !Array.isArray(e), Y = (e, o = "px") => typeof e == "number" ? `${e}${o}` : e, he = (e) => typeof e == "string" && e.startsWith("$") ? `var(--${e.slice(1)})` : e, Xt = (e) => e.includes("-") ? e.replace(/-([a-z])/g, (o, r) => r.toUpperCase()) : e, qt = (e) => /(color|background|border|fill|stroke|shadow)$/i.test(e), Jt = {
101
+ }, ye = (e) => typeof e == "object" && e !== null && !Array.isArray(e), Y = (e, o = "px") => typeof e == "number" ? `${e}${o}` : e, he = (e) => typeof e == "string" && e.startsWith("$") ? `var(--${e.slice(1)})` : e, Xt = (e) => e.includes("-") ? e.replace(/-([a-z])/g, (o, a) => a.toUpperCase()) : e, qt = (e) => /(color|background|border|fill|stroke|shadow)$/i.test(e), Jt = {
102
102
  mt: (e, o) => {
103
103
  e.marginTop = Y(o);
104
104
  },
@@ -217,7 +217,7 @@ const Gt = /* @__PURE__ */ new Set([
217
217
  e.backgroundColor = he(o);
218
218
  },
219
219
  b: (e, o) => {
220
- e.border = o === 1 ? "1px solid var(--border)" : he(o);
220
+ e.border = o === 1 ? "1px solid var(--tango-border)" : he(o);
221
221
  },
222
222
  br: (e, o) => {
223
223
  e.borderRadius = Y(o);
@@ -369,14 +369,14 @@ const Gt = /* @__PURE__ */ new Set([
369
369
  shown: (e) => {
370
370
  e.visibility = "visible";
371
371
  }
372
- }, ze = (e = {}) => ye(e) ? Object.entries(e).reduce((o, [r, n]) => {
373
- if (Gt.has(r))
372
+ }, ze = (e = {}) => ye(e) ? Object.entries(e).reduce((o, [a, s]) => {
373
+ if (Gt.has(a))
374
374
  return o;
375
- const c = Jt[r];
375
+ const c = Jt[a];
376
376
  if (c)
377
- return c(o, n), o;
378
- const l = Xt(r), a = typeof n == "string" && (n.startsWith("$") || qt(l)) ? he(n) : n;
379
- return o[l] = a, o;
377
+ return c(o, s), o;
378
+ const l = Xt(a), n = typeof s == "string" && (s.startsWith("$") || qt(l)) ? he(s) : s;
379
+ return o[l] = n, o;
380
380
  }, {}) : {}, I = (...e) => {
381
381
  const o = e.filter(Boolean).join(" ").trim();
382
382
  return o ? Ht(o) : "";
@@ -390,70 +390,70 @@ const Gt = /* @__PURE__ */ new Set([
390
390
  tw: "",
391
391
  css: ze(e)
392
392
  };
393
- const r = [e.className, e.tw].filter(Boolean).join(" "), n = ye(e.css) ? ze(e.css) : {}, c = ye(e.style) ? ze(e.style) : {};
393
+ const a = [e.className, e.tw].filter(Boolean).join(" "), s = ye(e.css) ? ze(e.css) : {}, c = ye(e.style) ? ze(e.style) : {};
394
394
  return {
395
- tw: r,
395
+ tw: a,
396
396
  css: {
397
- ...n,
397
+ ...s,
398
398
  ...c
399
399
  }
400
400
  };
401
- }, Qt = (e, o) => ye(e) ? "root" in e || "slots" in e || "tw" in e || "className" in e || "css" in e || "style" in e ? !0 : o.some((r) => r !== "root" && r in e) : !1, eo = (e) => {
401
+ }, Qt = (e, o) => ye(e) ? "root" in e || "slots" in e || "tw" in e || "className" in e || "css" in e || "style" in e ? !0 : o.some((a) => a !== "root" && a in e) : !1, eo = (e) => {
402
402
  const o = {};
403
- return e.forEach((r) => {
404
- o[r] = { ...$e };
403
+ return e.forEach((a) => {
404
+ o[a] = { ...$e };
405
405
  }), o.root || (o.root = { ...$e }), o;
406
406
  }, H = (e, o = ["root"]) => {
407
- const r = eo(o);
407
+ const a = eo(o);
408
408
  if (typeof e == "string")
409
- return r.root.tw = e, r;
409
+ return a.root.tw = e, a;
410
410
  if (!ye(e))
411
- return r;
411
+ return a;
412
412
  if (!Qt(e, o))
413
- return r.root.css = ze(e), r;
414
- const n = Oe({
413
+ return a.root.css = ze(e), a;
414
+ const s = Oe({
415
415
  tw: [e.className, e.tw].filter(Boolean).join(" "),
416
416
  css: e.css,
417
417
  style: e.style
418
418
  }), c = Oe(e.root);
419
- r.root = {
420
- tw: I(n.tw, c.tw),
419
+ a.root = {
420
+ tw: I(s.tw, c.tw),
421
421
  css: {
422
- ...n.css,
422
+ ...s.css,
423
423
  ...c.css
424
424
  }
425
425
  };
426
426
  const l = ye(e.slots) ? e.slots : {};
427
- return Object.keys(r).forEach((a) => {
428
- if (a === "root")
427
+ return Object.keys(a).forEach((n) => {
428
+ if (n === "root")
429
429
  return;
430
- const i = Oe(e[a]), u = Oe(l[a]);
431
- r[a] = {
430
+ const i = Oe(e[n]), u = Oe(l[n]);
431
+ a[n] = {
432
432
  tw: I(i.tw, u.tw),
433
433
  css: {
434
434
  ...i.css,
435
435
  ...u.css
436
436
  }
437
437
  };
438
- }), r;
439
- }, b = ({
438
+ }), a;
439
+ }, m = ({
440
440
  baseClassName: e = "",
441
441
  className: o = "",
442
- baseStyle: r = {},
443
- style: n = {},
442
+ baseStyle: a = {},
443
+ style: s = {},
444
444
  sxSlot: c = $e
445
445
  } = {}) => ({
446
446
  className: I(e, o, c.tw),
447
447
  style: {
448
- ...r || {},
448
+ ...a || {},
449
449
  ...c.css || {},
450
- ...n || {}
450
+ ...s || {}
451
451
  }
452
- }), to = ["root", "icon", "content"], st = {
453
- success: "text-[var(--notice-success-text)]",
454
- fail: "text-[var(--notice-fail-text)]",
455
- caution: "text-[var(--notice-caution-text)]"
456
- }, at = {
452
+ }), to = ["root", "icon", "content"], rt = {
453
+ success: "text-[var(--tango-notice-success-text)]",
454
+ fail: "text-[var(--tango-notice-fail-text)]",
455
+ caution: "text-[var(--tango-notice-caution-text)]"
456
+ }, nt = {
457
457
  default: {
458
458
  base: "fixed top-5 left-1/2 -translate-x-1/2",
459
459
  enter: "animate-[noticeSlideDown_0.3s_cubic-bezier(0.22,1,0.36,1)_forwards]"
@@ -465,50 +465,50 @@ const Gt = /* @__PURE__ */ new Set([
465
465
  };
466
466
  function oo(e, o) {
467
467
  const {
468
- type: r = "success",
469
- icon: n,
468
+ type: a = "success",
469
+ icon: s,
470
470
  message: c,
471
471
  variant: l = "default",
472
- duration: a = 3e3,
472
+ duration: n = 3e3,
473
473
  onClose: i,
474
474
  sx: u = {},
475
475
  style: h = {},
476
- className: m = "",
476
+ className: g = "",
477
477
  ...d
478
- } = e, [g, v] = Z(!1), w = st[r] ? r : "success", C = at[l] ? l : "default", F = H(u, to), O = oe(() => {
478
+ } = e, [b, v] = Z(!1), w = rt[a] ? a : "success", C = nt[l] ? l : "default", F = H(u, to), O = oe(() => {
479
479
  v(!0);
480
480
  const _ = setTimeout(() => i == null ? void 0 : i(), 300);
481
481
  return () => clearTimeout(_);
482
482
  }, [i]);
483
- se(() => {
484
- if (!i || a <= 0) return;
485
- const _ = setTimeout(O, a);
483
+ re(() => {
484
+ if (!i || n <= 0) return;
485
+ const _ = setTimeout(O, n);
486
486
  return () => clearTimeout(_);
487
- }, [i, a, O]);
488
- const y = at[C], x = C === "default" ? "animate-[noticeSlideUpFade_0.3s_ease-in_forwards]" : "animate-[noticeSlideToBottom_0.3s_ease-in_forwards]", T = b({
487
+ }, [i, n, O]);
488
+ const y = nt[C], x = C === "default" ? "animate-[noticeSlideUpFade_0.3s_ease-in_forwards]" : "animate-[noticeSlideToBottom_0.3s_ease-in_forwards]", T = m({
489
489
  baseClassName: I(
490
490
  "inline-flex items-center gap-2 px-3 py-2 text-sm z-[999]",
491
- "rounded-[var(--notice-radius)]",
492
- "bg-[var(--notice-bg)] text-[var(--notice-foreground)]",
493
- "shadow-[var(--notice-shadow)]",
491
+ "rounded-[var(--tango-notice-radius)]",
492
+ "bg-[var(--tango-notice-bg)] text-[var(--tango-notice-foreground)]",
493
+ "shadow-[var(--tango-notice-shadow)]",
494
494
  y.base,
495
- g ? x : y.enter,
496
- C === "md" && st[w]
495
+ b ? x : y.enter,
496
+ C === "md" && rt[w]
497
497
  ),
498
- className: m,
498
+ className: g,
499
499
  sxSlot: F.root,
500
- baseStyle: { borderRadius: "var(--notice-radius)" },
500
+ baseStyle: { borderRadius: "var(--tango-notice-radius)" },
501
501
  style: h
502
- }), p = b({
503
- baseClassName: "flex-shrink-0 text-[var(--notice-foreground)]",
502
+ }), p = m({
503
+ baseClassName: "flex-shrink-0 text-[var(--tango-notice-foreground)]",
504
504
  sxSlot: F.icon
505
- }), S = b({
505
+ }), S = m({
506
506
  baseClassName: "inline-block",
507
507
  sxSlot: F.content
508
508
  });
509
509
  return /* @__PURE__ */ P("div", { ref: o, role: "alert", className: T.className, style: T.style, ...d, children: [
510
- C !== "md" && n && /* @__PURE__ */ s("span", { className: p.className, style: p.style, children: n }),
511
- /* @__PURE__ */ s("span", { className: S.className, style: S.style, children: c })
510
+ C !== "md" && s && /* @__PURE__ */ r("span", { className: p.className, style: p.style, children: s }),
511
+ /* @__PURE__ */ r("span", { className: S.className, style: S.style, children: c })
512
512
  ] });
513
513
  }
514
514
  const Ze = Lt(oo);
@@ -524,59 +524,59 @@ Ze.propTypes = {
524
524
  style: t.object,
525
525
  className: t.string
526
526
  };
527
- const _t = He(null), ro = /* @__PURE__ */ s("svg", { viewBox: "0 0 1024 1024", width: "1.2em", height: "1.2em", children: /* @__PURE__ */ s(
527
+ const _t = He(null), ao = /* @__PURE__ */ r("svg", { viewBox: "0 0 1024 1024", width: "1.2em", height: "1.2em", children: /* @__PURE__ */ r(
528
528
  "path",
529
529
  {
530
530
  d: "M874.119618 149.859922A510.816461 510.816461 0 0 0 511.997 0.00208a509.910462 509.910462 0 0 0-362.119618 149.857842c-199.817789 199.679789-199.817789 524.581447 0 724.260236a509.969462 509.969462 0 0 0 362.119618 149.857842A508.872463 508.872463 0 0 0 874.119618 874.120158c199.836789-199.679789 199.836789-524.581447 0-724.260236zM814.94268 378.210681L470.999043 744.132295a15.359984 15.359984 0 0 1-5.887994 4.095996c-1.751998 1.180999-2.913997 2.362998-5.276994 2.913997a34.499964 34.499964 0 0 1-13.469986 2.914997 45.547952 45.547952 0 0 1-12.897986-2.303998l-4.095996-2.363997a45.291952 45.291952 0 0 1-7.009992-4.095996l-196.902793-193.789796a34.126964 34.126964 0 0 1-10.555989-25.186973c0-9.37399 3.583996-18.74698 9.98399-25.186974a36.429962 36.429962 0 0 1 50.372947 0l169.98382 167.423824L763.389735 330.220732a37.059961 37.059961 0 0 1 50.371947-1.732998 33.647965 33.647965 0 0 1 11.165988 25.186973 35.544963 35.544963 0 0 1-9.98399 24.575974v-0.04z m0 0",
531
- fill: "var(--notice-success-text)"
531
+ fill: "var(--tango-notice-success-text)"
532
532
  }
533
- ) }), so = /* @__PURE__ */ s("svg", { viewBox: "0 0 1024 1024", width: "1.2em", height: "1.2em", children: /* @__PURE__ */ s(
533
+ ) }), ro = /* @__PURE__ */ r("svg", { viewBox: "0 0 1024 1024", width: "1.2em", height: "1.2em", children: /* @__PURE__ */ r(
534
534
  "path",
535
535
  {
536
536
  d: "M549.044706 512l166.189176-166.249412a26.383059 26.383059 0 0 0 0-36.98447 26.383059 26.383059 0 0 0-37.044706 0L512 475.015529l-166.249412-166.249411a26.383059 26.383059 0 0 0-36.98447 0 26.383059 26.383059 0 0 0 0 37.044706L475.015529 512l-166.249411 166.249412a26.383059 26.383059 0 0 0 0 36.98447 26.383059 26.383059 0 0 0 37.044706 0L512 548.984471l166.249412 166.249411a26.383059 26.383059 0 0 0 36.98447 0 26.383059 26.383059 0 0 0 0-37.044706L548.984471 512zM512 1024a512 512 0 1 1 0-1024 512 512 0 0 1 0 1024z",
537
- fill: "var(--notice-fail-text)"
537
+ fill: "var(--tango-notice-fail-text)"
538
538
  }
539
- ) }), ao = /* @__PURE__ */ P("svg", { viewBox: "0 0 1024 1024", width: "1.2em", height: "1.2em", children: [
540
- /* @__PURE__ */ s(
539
+ ) }), no = /* @__PURE__ */ P("svg", { viewBox: "0 0 1024 1024", width: "1.2em", height: "1.2em", children: [
540
+ /* @__PURE__ */ r(
541
541
  "path",
542
542
  {
543
543
  d: "M512 909.061224c-218.906122 0-397.061224-178.155102-397.061224-397.061224s178.155102-397.061224 397.061224-397.061224 397.061224 178.155102 397.061224 397.061224-178.155102 397.061224-397.061224 397.061224z",
544
- fill: "var(--notice-caution-text)"
544
+ fill: "var(--tango-notice-caution-text)"
545
545
  }
546
546
  ),
547
- /* @__PURE__ */ s(
547
+ /* @__PURE__ */ r(
548
548
  "path",
549
549
  {
550
550
  d: "M512 690.677551m-31.346939 0a31.346939 31.346939 0 1 0 62.693878 0 31.346939 31.346939 0 1 0-62.693878 0Z",
551
- fill: "var(--notice-fail-text)"
551
+ fill: "var(--tango-notice-fail-text)"
552
552
  }
553
553
  ),
554
- /* @__PURE__ */ s(
554
+ /* @__PURE__ */ r(
555
555
  "path",
556
556
  {
557
557
  d: "M512 584.097959c-11.493878 0-20.897959-9.404082-20.897959-20.897959v-261.22449c0-11.493878 9.404082-20.897959 20.897959-20.897959s20.897959 9.404082 20.897959 20.897959v261.22449c0 12.016327-9.404082 20.897959-20.897959 20.897959z",
558
- fill: "var(--notice-fail-text)"
558
+ fill: "var(--tango-notice-fail-text)"
559
559
  }
560
560
  )
561
- ] }), no = { success: ro, fail: so, caution: ao };
562
- function es({ children: e }) {
563
- const [o, r] = Z([]), [n, c] = Z(!1);
564
- se(() => {
561
+ ] }), so = { success: ao, fail: ro, caution: no };
562
+ function er({ children: e }) {
563
+ const [o, a] = Z([]), [s, c] = Z(!1);
564
+ re(() => {
565
565
  c(!0);
566
566
  }, []);
567
567
  const l = oe((i) => {
568
- r((u) => u.filter((h) => h.id !== i));
569
- }, []), a = oe((i, u, h = "default") => {
570
- const m = Date.now() + Math.random();
571
- r((d) => [
568
+ a((u) => u.filter((h) => h.id !== i));
569
+ }, []), n = oe((i, u, h = "default") => {
570
+ const g = Date.now() + Math.random();
571
+ a((d) => [
572
572
  ...d,
573
- { id: m, type: i, message: u, variant: h, icon: no[i] }
573
+ { id: g, type: i, message: u, variant: h, icon: so[i] }
574
574
  ]);
575
575
  }, []);
576
- return /* @__PURE__ */ P(_t.Provider, { value: { add: a, remove: l }, children: [
576
+ return /* @__PURE__ */ P(_t.Provider, { value: { add: n, remove: l }, children: [
577
577
  e,
578
- n && Ut(
579
- /* @__PURE__ */ s("div", { id: "notification-container", className: "flex flex-col items-center gap-2", children: o.map((i) => /* @__PURE__ */ s(Ze, { ...i, onClose: () => l(i.id) }, i.id)) }),
578
+ s && Ut(
579
+ /* @__PURE__ */ r("div", { id: "notification-container", className: "flex flex-col items-center gap-2", children: o.map((i) => /* @__PURE__ */ r(Ze, { ...i, onClose: () => l(i.id) }, i.id)) }),
580
580
  document.body
581
581
  )
582
582
  ] });
@@ -587,7 +587,7 @@ function lo() {
587
587
  throw new Error("useNotice must be used inside <NoticeProvider />");
588
588
  return e;
589
589
  }
590
- function ts() {
590
+ function tr() {
591
591
  const { add: e } = lo();
592
592
  return {
593
593
  success: (o) => e("success", o),
@@ -787,14 +787,14 @@ const At = "tango:locale", xe = "zh-CN", co = {
787
787
  toggleLocale: We,
788
788
  messages: Mt,
789
789
  t: (e, o = "") => o
790
- }), nt = (e) => typeof e == "object" && e !== null && !Array.isArray(e), Et = (e, o) => {
791
- const r = { ...e };
792
- return Object.entries(o || {}).forEach(([n, c]) => {
793
- nt(c) && nt(r[n]) ? r[n] = Et(r[n], c) : r[n] = c;
794
- }), r;
795
- }, io = (e, o) => o.split(".").reduce((r, n) => {
796
- if (r && Object.prototype.hasOwnProperty.call(r, n))
797
- return r[n];
790
+ }), st = (e) => typeof e == "object" && e !== null && !Array.isArray(e), Et = (e, o) => {
791
+ const a = { ...e };
792
+ return Object.entries(o || {}).forEach(([s, c]) => {
793
+ st(c) && st(a[s]) ? a[s] = Et(a[s], c) : a[s] = c;
794
+ }), a;
795
+ }, io = (e, o) => o.split(".").reduce((a, s) => {
796
+ if (a && Object.prototype.hasOwnProperty.call(a, s))
797
+ return a[s];
798
798
  }, e), Ee = (e) => typeof e != "string" || !e.trim() ? xe : co[e] || e, uo = () => {
799
799
  if (typeof window > "u")
800
800
  return xe;
@@ -805,20 +805,20 @@ const At = "tango:locale", xe = "zh-CN", co = {
805
805
  return xe;
806
806
  }
807
807
  };
808
- function os({
808
+ function or({
809
809
  children: e,
810
810
  locale: o,
811
- defaultLocale: r = xe,
812
- onLocaleChange: n = We,
811
+ defaultLocale: a = xe,
812
+ onLocaleChange: s = We,
813
813
  messages: c = {}
814
814
  }) {
815
- const l = Ee(r), a = o == null ? null : Ee(o), [i, u] = Z(
815
+ const l = Ee(a), n = o == null ? null : Ee(o), [i, u] = Z(
816
816
  () => uo() || l
817
- ), h = a || i, m = (w) => {
817
+ ), h = n || i, g = (w) => {
818
818
  const C = Ee(w);
819
- a == null && u(C), n(C);
819
+ n == null && u(C), s(C);
820
820
  };
821
- se(() => {
821
+ re(() => {
822
822
  if (!(typeof window > "u"))
823
823
  try {
824
824
  window.localStorage.setItem(At, h);
@@ -828,19 +828,19 @@ function os({
828
828
  const d = Se(
829
829
  () => Et(Mt, c),
830
830
  [c]
831
- ), g = () => {
832
- m(h === "zh-CN" ? "en-US" : "zh-CN");
831
+ ), b = () => {
832
+ g(h === "zh-CN" ? "en-US" : "zh-CN");
833
833
  }, v = (w, C = "") => {
834
834
  const F = d[h] || d[xe] || {}, O = io(F, w);
835
835
  return O == null || O === "" ? C : String(O);
836
836
  };
837
- return /* @__PURE__ */ s(
837
+ return /* @__PURE__ */ r(
838
838
  zt.Provider,
839
839
  {
840
840
  value: {
841
841
  locale: h,
842
- setLocale: m,
843
- toggleLocale: g,
842
+ setLocale: g,
843
+ toggleLocale: b,
844
844
  messages: d,
845
845
  t: v
846
846
  },
@@ -851,75 +851,75 @@ function os({
851
851
  function de() {
852
852
  return Ue(zt);
853
853
  }
854
- const po = "_materialBtn_y97j8_8", mo = "_materialBtnSmall_y97j8_27", bo = "_materialBtnMedium_y97j8_33", go = "_materialBtnLarge_y97j8_39", fo = "_materialBtnHuge_y97j8_45", ho = "_materialBtnDisabled_y97j8_52", yo = "_ripple_y97j8_60", Ce = {
854
+ const po = "_materialBtn_1tku0_8", go = "_materialBtnSmall_1tku0_27", mo = "_materialBtnMedium_1tku0_33", bo = "_materialBtnLarge_1tku0_39", fo = "_materialBtnHuge_1tku0_45", ho = "_materialBtnDisabled_1tku0_52", yo = "_ripple_1tku0_60", Ce = {
855
855
  materialBtn: po,
856
- materialBtnSmall: mo,
857
- materialBtnMedium: bo,
858
- materialBtnLarge: go,
856
+ materialBtnSmall: go,
857
+ materialBtnMedium: mo,
858
+ materialBtnLarge: bo,
859
859
  materialBtnHuge: fo,
860
860
  materialBtnDisabled: ho,
861
861
  ripple: yo
862
862
  }, lt = ["root", "content", "icon", "loading"], xo = { small: "small", medium: "medium", large: "large", huge: "huge" }, vo = { small: 12, medium: 14, large: 16, huge: 20 }, ct = {
863
863
  default: {
864
- backgroundColor: "var(--primary)",
865
- color: "var(--primary-foreground)",
866
- borderColor: "var(--border)",
864
+ backgroundColor: "var(--tango-primary)",
865
+ color: "var(--tango-primary-foreground)",
866
+ borderColor: "var(--tango-border)",
867
867
  borderWidth: "1px",
868
868
  borderStyle: "solid"
869
869
  },
870
870
  transparent: {
871
- backgroundColor: "var(--transparent)",
872
- color: "var(--primary-foreground)",
873
- borderColor: "var(--button-transparent-border)",
871
+ backgroundColor: "var(--tango-transparent)",
872
+ color: "var(--tango-primary-foreground)",
873
+ borderColor: "var(--tango-button-transparent-border)",
874
874
  borderWidth: "1px",
875
875
  borderStyle: "solid"
876
876
  },
877
877
  danger: {
878
- backgroundColor: "var(--destructive)",
879
- color: "var(--destructive-foreground)",
878
+ backgroundColor: "var(--tango-destructive)",
879
+ color: "var(--tango-destructive-foreground)",
880
880
  borderColor: "transparent",
881
881
  borderWidth: "1px",
882
882
  borderStyle: "solid"
883
883
  },
884
884
  success: {
885
- backgroundColor: "var(--success)",
886
- color: "var(--success-foreground)",
885
+ backgroundColor: "var(--tango-success)",
886
+ color: "var(--tango-success-foreground)",
887
887
  borderColor: "transparent",
888
888
  borderWidth: "1px",
889
889
  borderStyle: "solid"
890
890
  }
891
891
  }, So = {
892
892
  default: {
893
- backgroundColor: "var(--transparent)",
894
- color: "var(--button-outline-foreground)",
895
- borderColor: "var(--border)",
893
+ backgroundColor: "var(--tango-transparent)",
894
+ color: "var(--tango-button-outline-foreground)",
895
+ borderColor: "var(--tango-border)",
896
896
  borderWidth: "1px",
897
897
  borderStyle: "solid"
898
898
  },
899
899
  transparent: {
900
- backgroundColor: "var(--transparent)",
901
- color: "var(--button-outline-foreground)",
902
- borderColor: "var(--button-transparent-border)",
900
+ backgroundColor: "var(--tango-transparent)",
901
+ color: "var(--tango-button-outline-foreground)",
902
+ borderColor: "var(--tango-button-transparent-border)",
903
903
  borderWidth: "1px",
904
904
  borderStyle: "solid"
905
905
  },
906
906
  danger: {
907
- backgroundColor: "var(--transparent)",
908
- color: "var(--destructive)",
909
- borderColor: "var(--destructive)",
907
+ backgroundColor: "var(--tango-transparent)",
908
+ color: "var(--tango-destructive)",
909
+ borderColor: "var(--tango-destructive)",
910
910
  borderWidth: "1px",
911
911
  borderStyle: "solid"
912
912
  },
913
913
  success: {
914
- backgroundColor: "var(--transparent)",
915
- color: "var(--success)",
916
- borderColor: "var(--success)",
914
+ backgroundColor: "var(--tango-transparent)",
915
+ color: "var(--tango-success)",
916
+ borderColor: "var(--tango-success)",
917
917
  borderWidth: "1px",
918
918
  borderStyle: "solid"
919
919
  }
920
920
  }, No = {
921
- backgroundColor: "var(--muted)",
922
- color: "var(--muted-foreground)",
921
+ backgroundColor: "var(--tango-muted)",
922
+ color: "var(--tango-muted-foreground)",
923
923
  borderColor: "transparent",
924
924
  borderWidth: "1px",
925
925
  borderStyle: "solid",
@@ -928,96 +928,96 @@ const po = "_materialBtn_y97j8_8", mo = "_materialBtnSmall_y97j8_27", bo = "_mat
928
928
  default: "按钮",
929
929
  loading: "加载中",
930
930
  iconAlt: "图标"
931
- }, wo = (e) => e.charAt(0).toUpperCase() + e.slice(1), Co = (e) => e === !0 || e === "light" || e === "dark" ? !0 : Array.isArray(e) && e.length > 0 ? e[0] === !0 || e[0] === "light" || e[0] === "dark" : !1, To = (e) => e === "light" ? "light" : e === "dark" || e === !0 || Array.isArray(e) && e.length >= 2 && e[1] === "dark" ? "dark" : "light", it = (e, o, r) => Object.prototype.hasOwnProperty.call(r, e) ? e : o;
931
+ }, wo = (e) => e.charAt(0).toUpperCase() + e.slice(1), Co = (e) => e === !0 || e === "light" || e === "dark" ? !0 : Array.isArray(e) && e.length > 0 ? e[0] === !0 || e[0] === "light" || e[0] === "dark" : !1, To = (e) => e === "light" ? "light" : e === "dark" || e === !0 || Array.isArray(e) && e.length >= 2 && e[1] === "dark" ? "dark" : "light", it = (e, o, a) => Object.prototype.hasOwnProperty.call(a, e) ? e : o;
932
932
  function Ge(e) {
933
933
  const {
934
934
  type: o = "default",
935
- size: r = "medium",
936
- sx: n = {},
935
+ size: a = "medium",
936
+ sx: s = {},
937
937
  style: c = {},
938
938
  className: l = "",
939
- onClick: a = () => {
939
+ onClick: n = () => {
940
940
  },
941
941
  children: i,
942
942
  disabled: u = !1,
943
943
  outline: h = !1,
944
- icon: m = null,
944
+ icon: g = null,
945
945
  iconPosition: d = null,
946
- loading: g = !1,
946
+ loading: b = !1,
947
947
  i18nKey: v = null,
948
948
  localeText: w = {},
949
949
  rippleColor: C,
950
950
  "aria-label": F,
951
951
  ...O
952
- } = e, { t: y } = de(), x = ke(null), T = it(r, "medium", xo), p = it(o, "default", ct), S = Co(g), _ = To(g), M = u || S, B = vo[T], A = d === "right" ? "right" : m || S ? "left" : null, k = C ?? "var(--material-button-ripple)", N = {
952
+ } = e, { t: y } = de(), x = ke(null), T = it(a, "medium", xo), p = it(o, "default", ct), S = Co(b), _ = To(b), M = u || S, B = vo[T], A = d === "right" ? "right" : g || S ? "left" : null, k = C ?? "var(--tango-material-button-ripple)", N = {
953
953
  default: y("materialButton.default", Re.default),
954
954
  loading: y("materialButton.loading", Re.loading),
955
955
  iconAlt: y("materialButton.iconAlt", Re.iconAlt),
956
956
  ...w
957
- }, W = (v && typeof N[v] == "string" ? N[v] : null) || (v ? y(`materialButton.${v}`, N.default) : N.default), D = S ? N.loading : W, E = i ?? D, $ = F || (i == null ? String(E || N.default) : void 0), z = H(n, lt), U = M ? No : h ? So[p] : ct[p], K = Ce[`materialBtn${wo(T)}`], G = z.root.css || {}, R = typeof n == "string" ? n : "", Q = /* @__PURE__ */ new Set([...lt, "root", "slots", "tw", "className", "css", "style"]), ue = typeof n == "object" ? Object.fromEntries(Object.entries(n).filter(([re]) => !Q.has(re))) : {}, be = [
957
+ }, W = (v && typeof N[v] == "string" ? N[v] : null) || (v ? y(`materialButton.${v}`, N.default) : N.default), D = S ? N.loading : W, E = i ?? D, $ = F || (i == null ? String(E || N.default) : void 0), z = H(s, lt), U = M ? No : h ? So[p] : ct[p], K = Ce[`materialBtn${wo(T)}`], G = z.root.css || {}, R = typeof s == "string" ? s : "", Q = /* @__PURE__ */ new Set([...lt, "root", "slots", "tw", "className", "css", "style"]), ue = typeof s == "object" ? Object.fromEntries(Object.entries(s).filter(([ae]) => !Q.has(ae))) : {}, me = [
958
958
  Ce.materialBtn,
959
959
  K,
960
960
  M && Ce.materialBtnDisabled,
961
961
  z.root.tw,
962
962
  R,
963
963
  l
964
- ].filter(Boolean).join(" "), ge = {
964
+ ].filter(Boolean).join(" "), be = {
965
965
  ...U,
966
966
  ...ue,
967
967
  ...G,
968
968
  ...c
969
- }, fe = b({
969
+ }, fe = m({
970
970
  baseClassName: "inline-flex items-center relative z-[1]",
971
971
  sxSlot: z.content
972
- }), X = b({
972
+ }), X = m({
973
973
  baseClassName: "inline-flex items-center justify-center shrink-0 transition-all duration-300 relative z-[1]",
974
974
  baseStyle: { width: `${B}px`, height: `${B}px` },
975
975
  sxSlot: z.icon
976
- }), J = b({
976
+ }), J = m({
977
977
  baseClassName: "inline-flex items-center justify-center shrink-0 animate-spin relative z-[1]",
978
978
  baseStyle: {
979
979
  width: `${B}px`,
980
980
  height: `${B}px`,
981
- color: _ === "light" ? "var(--button-loading-light)" : "var(--button-loading-dark)"
981
+ color: _ === "light" ? "var(--tango-button-loading-light)" : "var(--tango-button-loading-dark)"
982
982
  },
983
983
  sxSlot: z.loading
984
984
  }), j = oe(
985
- (re) => {
985
+ (ae) => {
986
986
  if (M) return;
987
- const ae = x.current;
988
- if (!ae) return;
989
- const f = document.createElement("span"), V = Math.max(ae.clientWidth, ae.clientHeight), ee = V / 2;
987
+ const ne = x.current;
988
+ if (!ne) return;
989
+ const f = document.createElement("span"), V = Math.max(ne.clientWidth, ne.clientHeight), ee = V / 2;
990
990
  Object.assign(f.style, {
991
991
  width: `${V}px`,
992
992
  height: `${V}px`,
993
- left: `${re.clientX - ae.getBoundingClientRect().left - ee}px`,
994
- top: `${re.clientY - ae.getBoundingClientRect().top - ee}px`
993
+ left: `${ae.clientX - ne.getBoundingClientRect().left - ee}px`,
994
+ top: `${ae.clientY - ne.getBoundingClientRect().top - ee}px`
995
995
  }), f.className = Ce.ripple, f.style.background = k;
996
- const ce = ae.querySelector(`.${Ce.ripple}`);
997
- ce && ce.remove(), ae.appendChild(f);
996
+ const ce = ne.querySelector(`.${Ce.ripple}`);
997
+ ce && ce.remove(), ne.appendChild(f);
998
998
  },
999
999
  [M, k]
1000
- ), q = () => m ? typeof m == "string" ? /* @__PURE__ */ s(
1000
+ ), q = () => g ? typeof g == "string" ? /* @__PURE__ */ r(
1001
1001
  "img",
1002
1002
  {
1003
- src: m,
1003
+ src: g,
1004
1004
  alt: N.iconAlt,
1005
1005
  className: X.className,
1006
1006
  style: X.style,
1007
1007
  "aria-hidden": "true"
1008
1008
  }
1009
- ) : te.isValidElement(m) ? te.cloneElement(m, {
1010
- className: I(X.className, m.props.className),
1011
- style: { ...X.style, ...m.props.style },
1009
+ ) : te.isValidElement(g) ? te.cloneElement(g, {
1010
+ className: I(X.className, g.props.className),
1011
+ style: { ...X.style, ...g.props.style },
1012
1012
  "aria-hidden": !0
1013
- }) : typeof m == "function" ? /* @__PURE__ */ s(
1014
- m,
1013
+ }) : typeof g == "function" ? /* @__PURE__ */ r(
1014
+ g,
1015
1015
  {
1016
1016
  className: X.className,
1017
1017
  style: X.style,
1018
1018
  "aria-hidden": "true"
1019
1019
  }
1020
- ) : /* @__PURE__ */ s("span", { className: X.className, style: X.style, "aria-hidden": "true", children: m }) : null, le = () => /* @__PURE__ */ s(
1020
+ ) : /* @__PURE__ */ r("span", { className: X.className, style: X.style, "aria-hidden": "true", children: g }) : null, le = () => /* @__PURE__ */ r(
1021
1021
  "svg",
1022
1022
  {
1023
1023
  viewBox: "0 0 1024 1024",
@@ -1025,7 +1025,7 @@ function Ge(e) {
1025
1025
  className: J.className,
1026
1026
  style: J.style,
1027
1027
  "aria-hidden": "true",
1028
- children: /* @__PURE__ */ s(
1028
+ children: /* @__PURE__ */ r(
1029
1029
  "path",
1030
1030
  {
1031
1031
  d: "M512 1024A512 512 0 0 1 0 512a32 32 0 0 1 64 0 448 448 0 0 0 896 0 32 32 0 0 1 64 0 512 512 0 0 1-512 512z",
@@ -1038,10 +1038,10 @@ function Ge(e) {
1038
1038
  "button",
1039
1039
  {
1040
1040
  ref: x,
1041
- className: be,
1042
- style: ge,
1043
- onClick: (re) => {
1044
- j(re), a == null || a(re);
1041
+ className: me,
1042
+ style: be,
1043
+ onClick: (ae) => {
1044
+ j(ae), n == null || n(ae);
1045
1045
  },
1046
1046
  disabled: M,
1047
1047
  "aria-label": $,
@@ -1052,12 +1052,12 @@ function Ge(e) {
1052
1052
  children: [
1053
1053
  A === "left" && /* @__PURE__ */ P(Ne, { children: [
1054
1054
  S && le(),
1055
- !S && m && q()
1055
+ !S && g && q()
1056
1056
  ] }),
1057
- /* @__PURE__ */ s("span", { className: fe.className, style: fe.style, children: E }),
1057
+ /* @__PURE__ */ r("span", { className: fe.className, style: fe.style, children: E }),
1058
1058
  A === "right" && /* @__PURE__ */ P(Ne, { children: [
1059
1059
  S && le(),
1060
- !S && m && q()
1060
+ !S && g && q()
1061
1061
  ] })
1062
1062
  ]
1063
1063
  }
@@ -1092,7 +1092,7 @@ const ko = ["root", "content", "icon", "loading"], Ve = {
1092
1092
  default: "按钮",
1093
1093
  loading: "加载中",
1094
1094
  iconAlt: "图标"
1095
- }, Lo = "inline-flex select-none items-center justify-center whitespace-nowrap rounded-[var(--radius)] border align-middle font-medium tracking-[0.5px] transition-all duration-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--input-accent)] focus-visible:ring-offset-2", Ye = {
1095
+ }, Lo = "inline-flex select-none items-center justify-center whitespace-nowrap rounded-[var(--tango-radius)] border align-middle font-medium tracking-[0.5px] transition-all duration-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--tango-input-accent)] focus-visible:ring-offset-2", Ye = {
1096
1096
  small: {
1097
1097
  iconSize: 12,
1098
1098
  className: "text-xs px-2 py-1 gap-1"
@@ -1110,42 +1110,42 @@ const ko = ["root", "content", "icon", "loading"], Ve = {
1110
1110
  className: "text-[25px] px-[45px] py-[18px] gap-3"
1111
1111
  }
1112
1112
  }, dt = {
1113
- default: "bg-[var(--primary)] text-[var(--primary-foreground)] border-[var(--border)] hover:shadow-[0_0_0.4em_0_var(--button-shadow-default)]",
1114
- transparent: "bg-[var(--transparent)] text-[var(--primary-foreground)] border-[var(--button-transparent-border)] hover:shadow-[0_0_0.4em_0_var(--button-shadow-default)]",
1115
- danger: "bg-[var(--destructive)] text-[var(--destructive-foreground)] border-transparent hover:shadow-[0_0_0.4em_0_var(--destructive)]",
1116
- success: "bg-[var(--success)] text-[var(--success-foreground)] border-transparent hover:shadow-[0_0_0.4em_0_var(--success)]"
1117
- }, Po = "bg-[var(--transparent)]", Oo = {
1118
- default: "text-[var(--button-outline-foreground)] border-[var(--border)]",
1119
- transparent: "text-[var(--button-outline-foreground)] border-[var(--button-transparent-border)]",
1120
- danger: "text-[var(--destructive)] border-[var(--destructive)]",
1121
- success: "text-[var(--success)] border-[var(--success)]"
1122
- }, _o = "shadow-[var(--button-enu-shadow)] hover:shadow-[var(--button-enu-hover-shadow)] active:translate-y-px active:shadow-[var(--button-enu-active-shadow)]", Ao = {
1123
- default: "bg-[var(--button-enu-bg)] text-[var(--button-enu-fg)] border-transparent",
1124
- transparent: "bg-[var(--transparent)] text-[var(--button-enu-fg)] border-[var(--button-transparent-border)]",
1125
- danger: "bg-[var(--destructive)] text-[var(--destructive-foreground)] border-transparent",
1126
- success: "bg-[var(--success)] text-[var(--success-foreground)] border-transparent"
1127
- }, Mo = "bg-[var(--muted)] text-[var(--muted-foreground)] border-transparent cursor-not-allowed shadow-none hover:shadow-none", zo = (e) => e === !0 || e === "light" || e === "dark" ? !0 : Array.isArray(e) && e.length > 0 ? e[0] === !0 || e[0] === "light" || e[0] === "dark" : !1, Eo = (e) => e === "light" ? "light" : e === "dark" || e === !0 || Array.isArray(e) && e.length >= 2 && e[1] === "dark" ? "dark" : "light", ut = (e, o, r) => Object.prototype.hasOwnProperty.call(r, e) ? e : o;
1113
+ default: "bg-[var(--tango-primary)] text-[var(--tango-primary-foreground)] border-[var(--tango-border)] hover:shadow-[0_0_0.4em_0_var(--tango-button-shadow-default)]",
1114
+ transparent: "bg-[var(--tango-transparent)] text-[var(--tango-primary-foreground)] border-[var(--tango-button-transparent-border)] hover:shadow-[0_0_0.4em_0_var(--tango-button-shadow-default)]",
1115
+ danger: "bg-[var(--tango-destructive)] text-[var(--tango-destructive-foreground)] border-transparent hover:shadow-[0_0_0.4em_0_var(--tango-destructive)]",
1116
+ success: "bg-[var(--tango-success)] text-[var(--tango-success-foreground)] border-transparent hover:shadow-[0_0_0.4em_0_var(--tango-success)]"
1117
+ }, Po = "bg-[var(--tango-transparent)]", Oo = {
1118
+ default: "text-[var(--tango-button-outline-foreground)] border-[var(--tango-border)]",
1119
+ transparent: "text-[var(--tango-button-outline-foreground)] border-[var(--tango-button-transparent-border)]",
1120
+ danger: "text-[var(--tango-destructive)] border-[var(--tango-destructive)]",
1121
+ success: "text-[var(--tango-success)] border-[var(--tango-success)]"
1122
+ }, _o = "shadow-[var(--tango-button-enu-shadow)] hover:shadow-[var(--tango-button-enu-hover-shadow)] active:translate-y-px active:shadow-[var(--tango-button-enu-active-shadow)]", Ao = {
1123
+ default: "bg-[var(--tango-button-enu-bg)] text-[var(--tango-button-enu-fg)] border-transparent",
1124
+ transparent: "bg-[var(--tango-transparent)] text-[var(--tango-button-enu-fg)] border-[var(--tango-button-transparent-border)]",
1125
+ danger: "bg-[var(--tango-destructive)] text-[var(--tango-destructive-foreground)] border-transparent",
1126
+ success: "bg-[var(--tango-success)] text-[var(--tango-success-foreground)] border-transparent"
1127
+ }, Mo = "bg-[var(--tango-muted)] text-[var(--tango-muted-foreground)] border-transparent cursor-not-allowed shadow-none hover:shadow-none", zo = (e) => e === !0 || e === "light" || e === "dark" ? !0 : Array.isArray(e) && e.length > 0 ? e[0] === !0 || e[0] === "light" || e[0] === "dark" : !1, Eo = (e) => e === "light" ? "light" : e === "dark" || e === !0 || Array.isArray(e) && e.length >= 2 && e[1] === "dark" ? "dark" : "light", ut = (e, o, a) => Object.prototype.hasOwnProperty.call(a, e) ? e : o;
1128
1128
  function ie(e) {
1129
1129
  const {
1130
1130
  type: o = "default",
1131
- size: r = "medium",
1132
- sx: n = {},
1131
+ size: a = "medium",
1132
+ sx: s = {},
1133
1133
  style: c = {},
1134
1134
  className: l = "",
1135
- onClick: a = () => {
1135
+ onClick: n = () => {
1136
1136
  },
1137
1137
  children: i,
1138
1138
  disabled: u = !1,
1139
1139
  outline: h = !1,
1140
- enu: m = !1,
1140
+ enu: g = !1,
1141
1141
  icon: d = null,
1142
- iconPosition: g = null,
1142
+ iconPosition: b = null,
1143
1143
  loading: v = !1,
1144
1144
  i18nKey: w = null,
1145
1145
  localeText: C = {},
1146
1146
  "aria-label": F,
1147
1147
  ...O
1148
- } = e, { t: y } = de(), x = ut(r, "medium", Ye), T = ut(o, "default", dt), p = zo(v), S = Eo(v), _ = u || p, M = Ye[x].iconSize, B = g === "right" ? "right" : d || p ? "left" : null, A = H(n, ko), k = {
1148
+ } = e, { t: y } = de(), x = ut(a, "medium", Ye), T = ut(o, "default", dt), p = zo(v), S = Eo(v), _ = u || p, M = Ye[x].iconSize, B = b === "right" ? "right" : d || p ? "left" : null, A = H(s, ko), k = {
1149
1149
  default: y("button.default", Ve.default),
1150
1150
  loading: y("button.loading", Ve.loading),
1151
1151
  iconAlt: y("button.iconAlt", Ve.iconAlt),
@@ -1156,12 +1156,12 @@ function ie(e) {
1156
1156
  $,
1157
1157
  Po,
1158
1158
  Oo[T]
1159
- )), m && ($ = I(
1159
+ )), g && ($ = I(
1160
1160
  $,
1161
1161
  _o,
1162
1162
  Ao[T]
1163
1163
  ));
1164
- const z = b({
1164
+ const z = m({
1165
1165
  // 顺序固定为:baseTw -> className -> sx.tw,sx 能稳定覆盖普通 Tailwind。
1166
1166
  baseClassName: I(
1167
1167
  Lo,
@@ -1173,25 +1173,25 @@ function ie(e) {
1173
1173
  className: l,
1174
1174
  style: c,
1175
1175
  sxSlot: A.root
1176
- }), U = b({
1176
+ }), U = m({
1177
1177
  baseClassName: "inline-flex items-center",
1178
1178
  sxSlot: A.content
1179
- }), K = b({
1179
+ }), K = m({
1180
1180
  baseClassName: "inline-flex items-center justify-center shrink-0 transition-all duration-300",
1181
1181
  baseStyle: {
1182
1182
  width: `${M}px`,
1183
1183
  height: `${M}px`
1184
1184
  },
1185
1185
  sxSlot: A.icon
1186
- }), G = b({
1186
+ }), G = m({
1187
1187
  baseClassName: "inline-flex items-center justify-center shrink-0 animate-spin",
1188
1188
  baseStyle: {
1189
1189
  width: `${M}px`,
1190
1190
  height: `${M}px`,
1191
- color: S === "light" ? "var(--button-loading-light)" : "var(--button-loading-dark)"
1191
+ color: S === "light" ? "var(--tango-button-loading-light)" : "var(--tango-button-loading-dark)"
1192
1192
  },
1193
1193
  sxSlot: A.loading
1194
- }), R = () => d ? typeof d == "string" ? /* @__PURE__ */ s(
1194
+ }), R = () => d ? typeof d == "string" ? /* @__PURE__ */ r(
1195
1195
  "img",
1196
1196
  {
1197
1197
  src: d,
@@ -1207,14 +1207,14 @@ function ie(e) {
1207
1207
  ...d.props.style
1208
1208
  },
1209
1209
  "aria-hidden": !0
1210
- }) : typeof d == "function" ? /* @__PURE__ */ s(
1210
+ }) : typeof d == "function" ? /* @__PURE__ */ r(
1211
1211
  d,
1212
1212
  {
1213
1213
  className: K.className,
1214
1214
  style: K.style,
1215
1215
  "aria-hidden": "true"
1216
1216
  }
1217
- ) : /* @__PURE__ */ s("span", { className: K.className, style: K.style, "aria-hidden": "true", children: d }) : null, Q = () => /* @__PURE__ */ s(
1217
+ ) : /* @__PURE__ */ r("span", { className: K.className, style: K.style, "aria-hidden": "true", children: d }) : null, Q = () => /* @__PURE__ */ r(
1218
1218
  "svg",
1219
1219
  {
1220
1220
  viewBox: "0 0 1024 1024",
@@ -1222,7 +1222,7 @@ function ie(e) {
1222
1222
  className: G.className,
1223
1223
  style: G.style,
1224
1224
  "aria-hidden": "true",
1225
- children: /* @__PURE__ */ s(
1225
+ children: /* @__PURE__ */ r(
1226
1226
  "path",
1227
1227
  {
1228
1228
  d: "M512 1024A512 512 0 0 1 0 512a32 32 0 0 1 64 0 448 448 0 0 0 896 0 32 32 0 0 1 64 0 512 512 0 0 1-512 512z",
@@ -1236,7 +1236,7 @@ function ie(e) {
1236
1236
  {
1237
1237
  className: z.className,
1238
1238
  style: z.style,
1239
- onClick: a,
1239
+ onClick: n,
1240
1240
  disabled: _,
1241
1241
  "aria-label": E,
1242
1242
  "data-variant": T,
@@ -1248,7 +1248,7 @@ function ie(e) {
1248
1248
  p && Q(),
1249
1249
  !p && d && R()
1250
1250
  ] }),
1251
- /* @__PURE__ */ s("span", { className: U.className, style: U.style, children: D }),
1251
+ /* @__PURE__ */ r("span", { className: U.className, style: U.style, children: D }),
1252
1252
  B === "right" && /* @__PURE__ */ P(Ne, { children: [
1253
1253
  p && Q(),
1254
1254
  !p && d && R()
@@ -1295,44 +1295,44 @@ const $o = ["root", "input", "label"], Bo = {
1295
1295
  huge: { wrapper: "h-16 text-xl", label: "text-xl", labelFloat: "text-base", pt: "pt-8" }
1296
1296
  }, jo = {
1297
1297
  label: ""
1298
- }, Fo = (e, o, r) => Object.prototype.hasOwnProperty.call(r, e) ? e : o;
1298
+ }, Fo = (e, o, a) => Object.prototype.hasOwnProperty.call(a, e) ? e : o;
1299
1299
  function Xe(e) {
1300
1300
  const {
1301
1301
  size: o = "medium",
1302
- sx: r = {},
1303
- style: n = {},
1302
+ sx: a = {},
1303
+ style: s = {},
1304
1304
  className: c = "",
1305
1305
  onChange: l,
1306
- value: a,
1306
+ value: n,
1307
1307
  defaultValue: i,
1308
1308
  disabled: u = !1,
1309
1309
  label: h,
1310
- localeText: m,
1310
+ localeText: g,
1311
1311
  type: d = "text",
1312
- ...g
1313
- } = e, { t: v } = de(), w = Fo(o, "medium", Bo), C = a !== void 0, [F, O] = Z(i ?? ""), [y, x] = Z(!1), T = C ? a : F, p = y || String(T).length > 0, S = h ?? (m == null ? void 0 : m.label) ?? v("materialInput.label", jo.label), _ = H(r, $o), M = {
1312
+ ...b
1313
+ } = e, { t: v } = de(), w = Fo(o, "medium", Bo), C = n !== void 0, [F, O] = Z(i ?? ""), [y, x] = Z(!1), T = C ? n : F, p = y || String(T).length > 0, S = h ?? (g == null ? void 0 : g.label) ?? v("materialInput.label", jo.label), _ = H(a, $o), M = {
1314
1314
  tw: I(_.root.tw, _.input.tw),
1315
1315
  css: { ..._.root.css, ..._.input.css }
1316
1316
  }, B = I("relative inline-flex", _.root.tw), A = Io[w], k = I(
1317
- "w-[300px] bg-transparent text-[var(--foreground)] outline-none transition-all duration-200 ease-in-out",
1318
- "border-b border-b-[var(--border)]",
1319
- "hover:border-b-[var(--input-accent)]",
1320
- "focus:border-b-[var(--input-accent)]",
1321
- u && "text-[var(--muted-foreground)] border-b-[var(--muted)] cursor-not-allowed hover:border-b-[var(--muted)]",
1317
+ "w-[300px] bg-transparent text-[var(--tango-foreground)] outline-none transition-all duration-200 ease-in-out",
1318
+ "border-b border-b-[var(--tango-border)]",
1319
+ "hover:border-b-[var(--tango-input-accent)]",
1320
+ "focus:border-b-[var(--tango-input-accent)]",
1321
+ u && "text-[var(--tango-muted-foreground)] border-b-[var(--tango-muted)] cursor-not-allowed hover:border-b-[var(--tango-muted)]",
1322
1322
  A.wrapper,
1323
1323
  A.pt
1324
- ), N = b({
1324
+ ), N = m({
1325
1325
  baseClassName: k,
1326
1326
  className: c,
1327
- style: n,
1327
+ style: s,
1328
1328
  sxSlot: M
1329
1329
  }), L = I(
1330
1330
  "absolute left-0 transition-all duration-200 ease-in-out pointer-events-none",
1331
- p ? `top-1 ${A.labelFloat} text-[var(--input-accent)]` : `top-1/2 -translate-y-1/2 ${A.label} text-[var(--muted-foreground)]`,
1332
- y && p && "text-[var(--input-accent)]",
1333
- u && "text-[var(--muted-foreground)]",
1331
+ p ? `top-1 ${A.labelFloat} text-[var(--tango-input-accent)]` : `top-1/2 -translate-y-1/2 ${A.label} text-[var(--tango-muted-foreground)]`,
1332
+ y && p && "text-[var(--tango-input-accent)]",
1333
+ u && "text-[var(--tango-muted-foreground)]",
1334
1334
  _.label.tw
1335
- ), W = b({
1335
+ ), W = m({
1336
1336
  baseClassName: L,
1337
1337
  sxSlot: { tw: "", css: _.label.css }
1338
1338
  }), D = oe((G) => {
@@ -1340,13 +1340,13 @@ function Xe(e) {
1340
1340
  C || O(R), l == null || l(R);
1341
1341
  }, [C, l]), E = oe((G) => {
1342
1342
  var R;
1343
- x(!0), (R = g.onFocus) == null || R.call(g, G);
1344
- }, [g.onFocus]), $ = oe((G) => {
1343
+ x(!0), (R = b.onFocus) == null || R.call(b, G);
1344
+ }, [b.onFocus]), $ = oe((G) => {
1345
1345
  var R;
1346
- x(!1), (R = g.onBlur) == null || R.call(g, G);
1347
- }, [g.onBlur]), { onFocus: z, onBlur: U, ...K } = g;
1346
+ x(!1), (R = b.onBlur) == null || R.call(b, G);
1347
+ }, [b.onBlur]), { onFocus: z, onBlur: U, ...K } = b;
1348
1348
  return /* @__PURE__ */ P("div", { className: B, children: [
1349
- /* @__PURE__ */ s(
1349
+ /* @__PURE__ */ r(
1350
1350
  "input",
1351
1351
  {
1352
1352
  ...K,
@@ -1361,7 +1361,7 @@ function Xe(e) {
1361
1361
  "aria-label": S || void 0
1362
1362
  }
1363
1363
  ),
1364
- S && /* @__PURE__ */ s("label", { className: W.className, style: W.style, children: S })
1364
+ S && /* @__PURE__ */ r("label", { className: W.className, style: W.style, children: S })
1365
1365
  ] });
1366
1366
  }
1367
1367
  Xe.propTypes = {
@@ -1389,35 +1389,35 @@ const Do = ["root", "input"], Ro = {
1389
1389
  medium: "h-10 text-sm px-3",
1390
1390
  large: "h-12 text-base px-3.5",
1391
1391
  huge: "h-14 text-lg px-4"
1392
- }, Yo = (e, o, r) => Object.prototype.hasOwnProperty.call(r, e) ? e : o;
1392
+ }, Yo = (e, o, a) => Object.prototype.hasOwnProperty.call(a, e) ? e : o;
1393
1393
  function qe(e) {
1394
1394
  const {
1395
1395
  type: o = "default",
1396
- size: r = "medium",
1397
- sx: n = {},
1396
+ size: a = "medium",
1397
+ sx: s = {},
1398
1398
  style: c = {},
1399
1399
  className: l = "",
1400
- onClick: a,
1400
+ onClick: n,
1401
1401
  onChange: i,
1402
1402
  value: u,
1403
1403
  defaultValue: h,
1404
- disabled: m = !1,
1404
+ disabled: g = !1,
1405
1405
  placeholder: d = "",
1406
- maxlength: g = 524288,
1406
+ maxlength: b = 524288,
1407
1407
  status: v,
1408
1408
  ...w
1409
- } = e, C = Yo(r, "medium", Ro), F = o === "textarea", O = o === "password", y = v === "error", x = H(n, Do), T = {
1409
+ } = e, C = Yo(a, "medium", Ro), F = o === "textarea", O = o === "password", y = v === "error", x = H(s, Do), T = {
1410
1410
  tw: I(x.root.tw, x.input.tw),
1411
1411
  css: { ...x.root.css, ...x.input.css }
1412
1412
  }, p = I("inline-flex", x.root.tw), S = I(
1413
- "w-[300px] rounded-[var(--radius)] border bg-[var(--input-bg)] text-[var(--foreground)] outline-none transition-all duration-200 ease-in-out",
1414
- "border-[var(--border)] shadow-[var(--input-shadow)]",
1415
- "hover:border-[var(--input-accent)]",
1416
- "focus:border-[var(--input-accent)] focus:shadow-[var(--input-focus-shadow)]",
1417
- y && "border-[var(--input-error-border)] bg-[var(--input-error-bg)] text-[var(--input-error-fg)] hover:border-[var(--input-error-border)] focus:shadow-[var(--input-error-focus-shadow)]",
1418
- m && "bg-[var(--muted)] text-[var(--muted-foreground)] border-[var(--muted)] cursor-not-allowed shadow-none hover:border-[var(--muted)] focus:shadow-none",
1413
+ "w-[300px] rounded-[var(--tango-radius)] border bg-[var(--tango-input-bg)] text-[var(--tango-foreground)] outline-none transition-all duration-200 ease-in-out",
1414
+ "border-[var(--tango-border)] shadow-[var(--tango-input-shadow)]",
1415
+ "hover:border-[var(--tango-input-accent)]",
1416
+ "focus:border-[var(--tango-input-accent)] focus:shadow-[var(--tango-input-focus-shadow)]",
1417
+ y && "border-[var(--tango-input-error-border)] bg-[var(--tango-input-error-bg)] text-[var(--tango-input-error-fg)] hover:border-[var(--tango-input-error-border)] focus:shadow-[var(--tango-input-error-focus-shadow)]",
1418
+ g && "bg-[var(--tango-muted)] text-[var(--tango-muted-foreground)] border-[var(--tango-muted)] cursor-not-allowed shadow-none hover:border-[var(--tango-muted)] focus:shadow-none",
1419
1419
  Vo[C]
1420
- ), _ = b({
1420
+ ), _ = m({
1421
1421
  baseClassName: S,
1422
1422
  className: l,
1423
1423
  style: c,
@@ -1425,13 +1425,13 @@ function qe(e) {
1425
1425
  }), M = u !== void 0, B = {
1426
1426
  className: _.className,
1427
1427
  style: _.style,
1428
- onClick: a,
1428
+ onClick: n,
1429
1429
  onChange: i ? (A) => i(A.target.value) : void 0,
1430
1430
  value: M ? u : void 0,
1431
1431
  defaultValue: M ? void 0 : h ?? "",
1432
- disabled: m || void 0,
1432
+ disabled: g || void 0,
1433
1433
  placeholder: d,
1434
- maxLength: g,
1434
+ maxLength: b,
1435
1435
  "aria-invalid": y || void 0,
1436
1436
  ...w
1437
1437
  };
@@ -1440,13 +1440,13 @@ function qe(e) {
1440
1440
  // 导致的问题:控制台持续出现 DOM 警告,autoComplete 属性无法完全抑制
1441
1441
  // 解决办法:password 类型用 <form> 包裹 input,阻止默认提交行为,满足浏览器规范
1442
1442
  // fixed by clayw on 20260523 night
1443
- /* @__PURE__ */ s("div", { className: p, children: O ? /* @__PURE__ */ s(
1443
+ /* @__PURE__ */ r("div", { className: p, children: O ? /* @__PURE__ */ r(
1444
1444
  "form",
1445
1445
  {
1446
1446
  onSubmit: (A) => A.preventDefault(),
1447
1447
  style: { display: "inline-flex" },
1448
1448
  autoComplete: "off",
1449
- children: /* @__PURE__ */ s(
1449
+ children: /* @__PURE__ */ r(
1450
1450
  "input",
1451
1451
  {
1452
1452
  ...B,
@@ -1454,13 +1454,13 @@ function qe(e) {
1454
1454
  }
1455
1455
  )
1456
1456
  }
1457
- ) : F ? /* @__PURE__ */ s(
1457
+ ) : F ? /* @__PURE__ */ r(
1458
1458
  "textarea",
1459
1459
  {
1460
1460
  ...B,
1461
1461
  className: `${B.className} min-h-[80px] py-2 resize-y`
1462
1462
  }
1463
- ) : /* @__PURE__ */ s(
1463
+ ) : /* @__PURE__ */ r(
1464
1464
  "input",
1465
1465
  {
1466
1466
  ...B,
@@ -1488,28 +1488,28 @@ qe.MaterialInput = Xe;
1488
1488
  const we = ["root"];
1489
1489
  function Ko(e, o) {
1490
1490
  const {
1491
- sx: r = {},
1492
- style: n = {},
1491
+ sx: a = {},
1492
+ style: s = {},
1493
1493
  className: c = "",
1494
1494
  children: l,
1495
- ...a
1496
- } = e, i = H(r, we), u = b({
1497
- baseClassName: "flex items-center px-4 bg-[var(--layout-header-bg)] text-[var(--layout-header-color)]",
1495
+ ...n
1496
+ } = e, i = H(a, we), u = m({
1497
+ baseClassName: "flex items-center px-4 bg-[var(--tango-layout-header-bg)] text-[var(--tango-layout-header-color)]",
1498
1498
  className: c,
1499
1499
  sxSlot: i.root,
1500
1500
  baseStyle: {
1501
- height: "var(--layout-header-height)",
1502
- borderBottom: "1px solid var(--layout-border)"
1501
+ height: "var(--tango-layout-header-height)",
1502
+ borderBottom: "1px solid var(--tango-layout-border)"
1503
1503
  },
1504
- style: n
1504
+ style: s
1505
1505
  });
1506
- return /* @__PURE__ */ s(
1506
+ return /* @__PURE__ */ r(
1507
1507
  "header",
1508
1508
  {
1509
1509
  ref: o,
1510
1510
  className: u.className,
1511
1511
  style: u.style,
1512
- ...a,
1512
+ ...n,
1513
1513
  children: l
1514
1514
  }
1515
1515
  );
@@ -1524,28 +1524,28 @@ Be.propTypes = {
1524
1524
  };
1525
1525
  function Wo(e, o) {
1526
1526
  const {
1527
- sx: r = {},
1528
- style: n = {},
1527
+ sx: a = {},
1528
+ style: s = {},
1529
1529
  className: c = "",
1530
1530
  children: l,
1531
- ...a
1532
- } = e, i = H(r, we), u = b({
1533
- baseClassName: "flex items-center px-4 bg-[var(--layout-footer-bg)] text-[var(--layout-footer-color)]",
1531
+ ...n
1532
+ } = e, i = H(a, we), u = m({
1533
+ baseClassName: "flex items-center px-4 bg-[var(--tango-layout-footer-bg)] text-[var(--tango-layout-footer-color)]",
1534
1534
  className: c,
1535
1535
  sxSlot: i.root,
1536
1536
  baseStyle: {
1537
- height: "var(--layout-footer-height)",
1538
- borderTop: "1px solid var(--layout-border)"
1537
+ height: "var(--tango-layout-footer-height)",
1538
+ borderTop: "1px solid var(--tango-layout-border)"
1539
1539
  },
1540
- style: n
1540
+ style: s
1541
1541
  });
1542
- return /* @__PURE__ */ s(
1542
+ return /* @__PURE__ */ r(
1543
1543
  "footer",
1544
1544
  {
1545
1545
  ref: o,
1546
1546
  className: u.className,
1547
1547
  style: u.style,
1548
- ...a,
1548
+ ...n,
1549
1549
  children: l
1550
1550
  }
1551
1551
  );
@@ -1560,32 +1560,32 @@ Ie.propTypes = {
1560
1560
  };
1561
1561
  function Uo(e, o) {
1562
1562
  const {
1563
- sx: r = {},
1564
- style: n = {},
1563
+ sx: a = {},
1564
+ style: s = {},
1565
1565
  className: c = "",
1566
1566
  width: l,
1567
- children: a,
1567
+ children: n,
1568
1568
  ...i
1569
- } = e, u = H(r, we), h = l ?? "var(--layout-sider-width)", m = b({
1570
- baseClassName: "overflow-auto flex flex-col bg-[var(--layout-sider-bg)] text-[var(--layout-sider-color)]",
1569
+ } = e, u = H(a, we), h = l ?? "var(--tango-layout-sider-width)", g = m({
1570
+ baseClassName: "overflow-auto flex flex-col bg-[var(--tango-layout-sider-bg)] text-[var(--tango-layout-sider-color)]",
1571
1571
  className: c,
1572
1572
  sxSlot: u.root,
1573
1573
  baseStyle: {
1574
1574
  width: h,
1575
1575
  minWidth: h,
1576
1576
  maxWidth: "100%",
1577
- borderRight: "1px solid var(--layout-border)"
1577
+ borderRight: "1px solid var(--tango-layout-border)"
1578
1578
  },
1579
- style: n
1579
+ style: s
1580
1580
  });
1581
- return /* @__PURE__ */ s(
1581
+ return /* @__PURE__ */ r(
1582
1582
  "aside",
1583
1583
  {
1584
1584
  ref: o,
1585
- className: m.className,
1586
- style: m.style,
1585
+ className: g.className,
1586
+ style: g.style,
1587
1587
  ...i,
1588
- children: a
1588
+ children: n
1589
1589
  }
1590
1590
  );
1591
1591
  }
@@ -1600,32 +1600,32 @@ Le.propTypes = {
1600
1600
  };
1601
1601
  function Ho(e, o) {
1602
1602
  const {
1603
- sx: r = {},
1604
- style: n = {},
1603
+ sx: a = {},
1604
+ style: s = {},
1605
1605
  className: c = "",
1606
1606
  width: l,
1607
- children: a,
1607
+ children: n,
1608
1608
  ...i
1609
- } = e, u = H(r, we), h = l ?? "var(--layout-toc-width)", m = b({
1610
- baseClassName: "overflow-auto flex flex-col bg-[var(--layout-toc-bg)] text-[var(--layout-toc-color)]",
1609
+ } = e, u = H(a, we), h = l ?? "var(--tango-layout-toc-width)", g = m({
1610
+ baseClassName: "overflow-auto flex flex-col bg-[var(--tango-layout-toc-bg)] text-[var(--tango-layout-toc-color)]",
1611
1611
  className: c,
1612
1612
  sxSlot: u.root,
1613
1613
  baseStyle: {
1614
1614
  width: h,
1615
1615
  minWidth: h,
1616
1616
  maxWidth: "100%",
1617
- borderLeft: "1px solid var(--layout-border)"
1617
+ borderLeft: "1px solid var(--tango-layout-border)"
1618
1618
  },
1619
- style: n
1619
+ style: s
1620
1620
  });
1621
- return /* @__PURE__ */ s(
1621
+ return /* @__PURE__ */ r(
1622
1622
  "nav",
1623
1623
  {
1624
1624
  ref: o,
1625
- className: m.className,
1626
- style: m.style,
1625
+ className: g.className,
1626
+ style: g.style,
1627
1627
  ...i,
1628
- children: a
1628
+ children: n
1629
1629
  }
1630
1630
  );
1631
1631
  }
@@ -1640,12 +1640,12 @@ Pe.propTypes = {
1640
1640
  };
1641
1641
  function Zo(e, o) {
1642
1642
  const {
1643
- sx: r = {},
1644
- style: n = {},
1643
+ sx: a = {},
1644
+ style: s = {},
1645
1645
  className: c = "",
1646
1646
  children: l,
1647
- ...a
1648
- } = e, i = H(r, we), u = b({
1647
+ ...n
1648
+ } = e, i = H(a, we), u = m({
1649
1649
  /**
1650
1650
  *
1651
1651
  * 这里记录了一次问题:backgroundColor、color 等写在 baseStyle(inline style)里,
@@ -1664,20 +1664,20 @@ function Zo(e, o) {
1664
1664
  // 导致的问题:Content 区域内容始终居中,而非自然流动布局;窄屏时表格文字出现竖排
1665
1665
  // 解决办法:移除 items-center justify-center,改为 flex-col 让内容自然从上往下流动
1666
1666
  // fixed by clayw on 20260523 night
1667
- "flex-1 flex flex-col bg-[var(--layout-content-bg)] text-[var(--layout-content-color)]"
1667
+ "flex-1 flex flex-col bg-[var(--tango-layout-content-bg)] text-[var(--tango-layout-content-color)]"
1668
1668
  ),
1669
1669
  className: c,
1670
1670
  sxSlot: i.root,
1671
1671
  baseStyle: {},
1672
- style: n
1672
+ style: s
1673
1673
  });
1674
- return /* @__PURE__ */ s(
1674
+ return /* @__PURE__ */ r(
1675
1675
  "main",
1676
1676
  {
1677
1677
  ref: o,
1678
1678
  className: u.className,
1679
1679
  style: u.style,
1680
- ...a,
1680
+ ...n,
1681
1681
  children: l
1682
1682
  }
1683
1683
  );
@@ -1692,76 +1692,76 @@ je.propTypes = {
1692
1692
  };
1693
1693
  function Go(e, o) {
1694
1694
  const {
1695
- sx: r = {},
1696
- style: n = {},
1695
+ sx: a = {},
1696
+ style: s = {},
1697
1697
  className: c = "",
1698
1698
  hasSider: l,
1699
- children: a,
1699
+ children: n,
1700
1700
  ...i
1701
- } = e, u = H(r, we), h = l ?? te.Children.toArray(a).some(
1701
+ } = e, u = H(a, we), h = l ?? te.Children.toArray(n).some(
1702
1702
  (d) => {
1703
- var g, v;
1704
- return te.isValidElement(d) && (d.type === Le || d.type === Pe || ((g = d.type) == null ? void 0 : g.displayName) === "LayoutSider" || ((v = d.type) == null ? void 0 : v.displayName) === "LayoutToc");
1703
+ var b, v;
1704
+ return te.isValidElement(d) && (d.type === Le || d.type === Pe || ((b = d.type) == null ? void 0 : b.displayName) === "LayoutSider" || ((v = d.type) == null ? void 0 : v.displayName) === "LayoutToc");
1705
1705
  }
1706
- ), m = b({
1706
+ ), g = m({
1707
1707
  baseClassName: I(
1708
1708
  "flex flex-1 flex-col min-h-0",
1709
1709
  h ? "md:flex-row" : ""
1710
1710
  ),
1711
1711
  className: c,
1712
1712
  sxSlot: u.root,
1713
- style: n
1713
+ style: s
1714
1714
  });
1715
- return /* @__PURE__ */ s(
1715
+ return /* @__PURE__ */ r(
1716
1716
  "section",
1717
1717
  {
1718
1718
  ref: o,
1719
- className: m.className,
1720
- style: m.style,
1719
+ className: g.className,
1720
+ style: g.style,
1721
1721
  ...i,
1722
- children: a
1722
+ children: n
1723
1723
  }
1724
1724
  );
1725
1725
  }
1726
- const ne = te.forwardRef(Go);
1727
- ne.displayName = "Layout";
1728
- ne.Header = Be;
1729
- ne.Footer = Ie;
1730
- ne.Sider = Le;
1731
- ne.Content = je;
1732
- ne.Toc = Pe;
1733
- ne.propTypes = {
1726
+ const se = te.forwardRef(Go);
1727
+ se.displayName = "Layout";
1728
+ se.Header = Be;
1729
+ se.Footer = Ie;
1730
+ se.Sider = Le;
1731
+ se.Content = je;
1732
+ se.Toc = Pe;
1733
+ se.propTypes = {
1734
1734
  hasSider: t.bool,
1735
1735
  sx: t.oneOfType([t.string, t.object]),
1736
1736
  style: t.object,
1737
1737
  className: t.string,
1738
1738
  children: t.node
1739
1739
  };
1740
- const Xo = Be, qo = Ie, Jo = Le, Qo = je, er = Pe, tr = ["root", "button", "list", "item"], $t = Symbol("LIST_IGNORE"), pt = /* @__PURE__ */ P("svg", { viewBox: "0 0 24 24", width: "1em", height: "1em", fill: "none", stroke: "currentColor", strokeWidth: "1.5", children: [
1741
- /* @__PURE__ */ s("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z" }),
1742
- /* @__PURE__ */ s("path", { d: "M14 2v6h6" })
1743
- ] }), mt = /* @__PURE__ */ s("svg", { viewBox: "0 0 24 24", width: "1em", height: "1em", fill: "none", stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ s("path", { d: "M18 6 6 18M6 6l12 12" }) });
1744
- function or(e, o) {
1740
+ const Xo = Be, qo = Ie, Jo = Le, Qo = je, ea = Pe, ta = ["root", "button", "list", "item"], $t = Symbol("LIST_IGNORE"), pt = /* @__PURE__ */ P("svg", { viewBox: "0 0 24 24", width: "1em", height: "1em", fill: "none", stroke: "currentColor", strokeWidth: "1.5", children: [
1741
+ /* @__PURE__ */ r("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z" }),
1742
+ /* @__PURE__ */ r("path", { d: "M14 2v6h6" })
1743
+ ] }), gt = /* @__PURE__ */ r("svg", { viewBox: "0 0 24 24", width: "1em", height: "1em", fill: "none", stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ r("path", { d: "M18 6 6 18M6 6l12 12" }) });
1744
+ function oa(e, o) {
1745
1745
  const {
1746
- sx: r = {},
1747
- style: n = {},
1746
+ sx: a = {},
1747
+ style: s = {},
1748
1748
  className: c = "",
1749
1749
  accept: l = "image/*",
1750
- multiple: a = !1,
1750
+ multiple: n = !1,
1751
1751
  onChange: i = () => {
1752
1752
  },
1753
1753
  beforeUpload: u = () => {
1754
1754
  },
1755
1755
  files: h = [],
1756
- showUploadList: m = !0,
1756
+ showUploadList: g = !0,
1757
1757
  maxCount: d = 20,
1758
- maxSize: g = 100,
1758
+ maxSize: b = 100,
1759
1759
  btnText: v = "选择文件",
1760
1760
  btnStyle: w,
1761
1761
  showSize: C = !0,
1762
1762
  disabled: F = !1,
1763
1763
  ...O
1764
- } = e, y = Wt(), x = h || [], T = H(r, tr), p = oe(async (k, N) => {
1764
+ } = e, y = Wt(), x = h || [], T = H(a, ta), p = oe(async (k, N) => {
1765
1765
  if (!u) return !0;
1766
1766
  try {
1767
1767
  const L = await u(k, N);
@@ -1770,7 +1770,7 @@ function or(e, o) {
1770
1770
  return !1;
1771
1771
  }
1772
1772
  }, [u]), S = oe(async (k) => {
1773
- const L = Array.from(k.target.files || []).filter((E) => E.size / 1024 / 1024 > g ? (console.warn(`[Tango Upload] ${E.name} 超过 ${g}MB,已被过滤`), !1) : !0), W = a ? L.slice(0, d) : L.slice(0, 1), D = [];
1773
+ const L = Array.from(k.target.files || []).filter((E) => E.size / 1024 / 1024 > b ? (console.warn(`[Tango Upload] ${E.name} 超过 ${b}MB,已被过滤`), !1) : !0), W = n ? L.slice(0, d) : L.slice(0, 1), D = [];
1774
1774
  for (const E of W) {
1775
1775
  const $ = await p(E, W);
1776
1776
  if ($ === !1) {
@@ -1788,39 +1788,39 @@ function or(e, o) {
1788
1788
  D.push(E);
1789
1789
  }
1790
1790
  k.target.value = "", i(D);
1791
- }, [a, d, g, p, i]), _ = oe((k, N) => {
1791
+ }, [n, d, b, p, i]), _ = oe((k, N) => {
1792
1792
  const L = x.filter((W, D) => D !== N);
1793
1793
  i(L);
1794
- }, [x, i]), M = b({
1794
+ }, [x, i]), M = m({
1795
1795
  baseClassName: "inline-flex flex-col gap-3",
1796
1796
  className: c,
1797
1797
  sxSlot: T.root,
1798
- style: n
1799
- }), B = b({
1798
+ style: s
1799
+ }), B = m({
1800
1800
  baseClassName: I(
1801
1801
  "list-none p-0 m-0 max-h-[150px] max-w-[400px] overflow-y-auto",
1802
- "border border-[var(--upload-border)] rounded-[var(--upload-radius)]",
1803
- "bg-[var(--upload-list-bg)]",
1802
+ "border border-[var(--tango-upload-border)] rounded-[var(--tango-upload-radius)]",
1803
+ "bg-[var(--tango-upload-list-bg)]",
1804
1804
  x.length === 0 && "border-transparent"
1805
1805
  ),
1806
- baseStyle: { borderRadius: "var(--upload-radius)" },
1806
+ baseStyle: { borderRadius: "var(--tango-upload-radius)" },
1807
1807
  sxSlot: T.list
1808
- }), A = b({
1808
+ }), A = m({
1809
1809
  baseClassName: I(
1810
1810
  "flex items-center gap-2 px-3 py-1.5 text-sm",
1811
- "text-[var(--upload-item-text)] hover:bg-[var(--upload-item-hover-bg)]",
1811
+ "text-[var(--tango-upload-item-text)] hover:bg-[var(--tango-upload-item-hover-bg)]",
1812
1812
  "transition-colors"
1813
1813
  ),
1814
1814
  sxSlot: T.item
1815
1815
  });
1816
1816
  return /* @__PURE__ */ P("div", { ref: o, className: M.className, style: M.style, ...O, children: [
1817
- /* @__PURE__ */ s(
1817
+ /* @__PURE__ */ r(
1818
1818
  "input",
1819
1819
  {
1820
1820
  id: y,
1821
1821
  type: "file",
1822
1822
  accept: l,
1823
- multiple: a,
1823
+ multiple: n,
1824
1824
  className: "hidden",
1825
1825
  onChange: S,
1826
1826
  disabled: F,
@@ -1828,7 +1828,7 @@ function or(e, o) {
1828
1828
  tabIndex: -1
1829
1829
  }
1830
1830
  ),
1831
- /* @__PURE__ */ s(
1831
+ /* @__PURE__ */ r(
1832
1832
  ie,
1833
1833
  {
1834
1834
  disabled: F,
@@ -1841,50 +1841,50 @@ function or(e, o) {
1841
1841
  children: v
1842
1842
  }
1843
1843
  ),
1844
- m && x.length > 0 && /* @__PURE__ */ s("ul", { className: B.className, style: B.style, children: a ? x.map((k, N) => /* @__PURE__ */ P("li", { className: A.className, style: A.style, children: [
1845
- /* @__PURE__ */ s("span", { className: "flex-shrink-0 text-[var(--upload-icon-color)]", children: pt }),
1844
+ g && x.length > 0 && /* @__PURE__ */ r("ul", { className: B.className, style: B.style, children: n ? x.map((k, N) => /* @__PURE__ */ P("li", { className: A.className, style: A.style, children: [
1845
+ /* @__PURE__ */ r("span", { className: "flex-shrink-0 text-[var(--tango-upload-icon-color)]", children: pt }),
1846
1846
  /* @__PURE__ */ P("span", { className: "flex-1 truncate", children: [
1847
1847
  k.name,
1848
- C && /* @__PURE__ */ P("span", { className: "ml-1 text-xs text-[var(--muted-foreground)]", children: [
1848
+ C && /* @__PURE__ */ P("span", { className: "ml-1 text-xs text-[var(--tango-muted-foreground)]", children: [
1849
1849
  "(",
1850
1850
  (k.size / 1024).toFixed(2),
1851
1851
  " KB)"
1852
1852
  ] })
1853
1853
  ] }),
1854
- /* @__PURE__ */ s(
1854
+ /* @__PURE__ */ r(
1855
1855
  "button",
1856
1856
  {
1857
1857
  type: "button",
1858
- className: "flex-shrink-0 p-0.5 rounded hover:bg-[var(--upload-del-hover-bg)] text-[var(--upload-del-color)] transition-colors",
1858
+ className: "flex-shrink-0 p-0.5 rounded hover:bg-[var(--tango-upload-del-hover-bg)] text-[var(--tango-upload-del-color)] transition-colors",
1859
1859
  onClick: () => _(k, N),
1860
1860
  "aria-label": `删除 ${k.name}`,
1861
- children: mt
1861
+ children: gt
1862
1862
  }
1863
1863
  )
1864
1864
  ] }, N)) : /* @__PURE__ */ P("li", { className: A.className, style: A.style, children: [
1865
- /* @__PURE__ */ s("span", { className: "flex-shrink-0 text-[var(--upload-icon-color)]", children: pt }),
1865
+ /* @__PURE__ */ r("span", { className: "flex-shrink-0 text-[var(--tango-upload-icon-color)]", children: pt }),
1866
1866
  /* @__PURE__ */ P("span", { className: "flex-1 truncate", children: [
1867
1867
  x[0].name,
1868
- C && /* @__PURE__ */ P("span", { className: "ml-1 text-xs text-[var(--muted-foreground)]", children: [
1868
+ C && /* @__PURE__ */ P("span", { className: "ml-1 text-xs text-[var(--tango-muted-foreground)]", children: [
1869
1869
  "(",
1870
1870
  (x[0].size / 1024).toFixed(2),
1871
1871
  " KB)"
1872
1872
  ] })
1873
1873
  ] }),
1874
- /* @__PURE__ */ s(
1874
+ /* @__PURE__ */ r(
1875
1875
  "button",
1876
1876
  {
1877
1877
  type: "button",
1878
- className: "flex-shrink-0 p-0.5 rounded hover:bg-[var(--upload-del-hover-bg)] text-[var(--upload-del-color)] transition-colors",
1878
+ className: "flex-shrink-0 p-0.5 rounded hover:bg-[var(--tango-upload-del-hover-bg)] text-[var(--tango-upload-del-color)] transition-colors",
1879
1879
  onClick: () => _(x[0], 0),
1880
1880
  "aria-label": `删除 ${x[0].name}`,
1881
- children: mt
1881
+ children: gt
1882
1882
  }
1883
1883
  )
1884
1884
  ] }) })
1885
1885
  ] });
1886
1886
  }
1887
- const Je = Lt(or);
1887
+ const Je = Lt(oa);
1888
1888
  Je.displayName = "Upload";
1889
1889
  Je.LIST_IGNORE = $t;
1890
1890
  Je.propTypes = {
@@ -1904,10 +1904,10 @@ Je.propTypes = {
1904
1904
  showSize: t.bool,
1905
1905
  disabled: t.bool
1906
1906
  };
1907
- const rr = ["root", "icon", "content", "actions", "closeIcon"], bt = {
1907
+ const aa = ["root", "icon", "content", "actions", "closeIcon"], mt = {
1908
1908
  cancel: "取消",
1909
1909
  action: "操作"
1910
- }, gt = {
1910
+ }, bt = {
1911
1911
  small: {
1912
1912
  rootClass: "px-[15px] py-[8px] h-[45px] rounded-[6px] gap-[8px] border",
1913
1913
  iconSize: 20,
@@ -1937,56 +1937,56 @@ const rr = ["root", "icon", "content", "actions", "closeIcon"], bt = {
1937
1937
  }
1938
1938
  }, ft = {
1939
1939
  info: {
1940
- bgVar: "--banner-info-bg",
1941
- borderVar: "--banner-info-border",
1942
- iconVar: "--banner-info-icon",
1943
- textVar: "--banner-info-text"
1940
+ bgVar: "--tango-banner-info-bg",
1941
+ borderVar: "--tango-banner-info-border",
1942
+ iconVar: "--tango-banner-info-icon",
1943
+ textVar: "--tango-banner-info-text"
1944
1944
  },
1945
1945
  success: {
1946
- bgVar: "--banner-success-bg",
1947
- borderVar: "--banner-success-border",
1948
- iconVar: "--banner-success-icon",
1949
- textVar: "--banner-success-text"
1946
+ bgVar: "--tango-banner-success-bg",
1947
+ borderVar: "--tango-banner-success-border",
1948
+ iconVar: "--tango-banner-success-icon",
1949
+ textVar: "--tango-banner-success-text"
1950
1950
  },
1951
1951
  warning: {
1952
- bgVar: "--banner-warning-bg",
1953
- borderVar: "--banner-warning-border",
1954
- iconVar: "--banner-warning-icon",
1955
- textVar: "--banner-warning-text"
1952
+ bgVar: "--tango-banner-warning-bg",
1953
+ borderVar: "--tango-banner-warning-border",
1954
+ iconVar: "--tango-banner-warning-icon",
1955
+ textVar: "--tango-banner-warning-text"
1956
1956
  },
1957
1957
  error: {
1958
- bgVar: "--banner-error-bg",
1959
- borderVar: "--banner-error-border",
1960
- iconVar: "--banner-error-icon",
1961
- textVar: "--banner-error-text"
1958
+ bgVar: "--tango-banner-error-bg",
1959
+ borderVar: "--tango-banner-error-border",
1960
+ iconVar: "--tango-banner-error-icon",
1961
+ textVar: "--tango-banner-error-text"
1962
1962
  }
1963
- }, ht = (e, o, r) => Object.prototype.hasOwnProperty.call(r, e) ? e : o;
1964
- function sr(e) {
1963
+ }, ht = (e, o, a) => Object.prototype.hasOwnProperty.call(a, e) ? e : o;
1964
+ function ra(e) {
1965
1965
  const {
1966
1966
  children: o,
1967
- onCancel: r = () => {
1967
+ onCancel: a = () => {
1968
1968
  },
1969
- onAction: n = () => {
1969
+ onAction: s = () => {
1970
1970
  },
1971
1971
  size: c = "normal",
1972
1972
  cancelText: l,
1973
- actionText: a,
1973
+ actionText: n,
1974
1974
  level: i = "info",
1975
1975
  transparent: u = !1,
1976
1976
  bannerBgColor: h,
1977
- bannerBorderColor: m,
1977
+ bannerBorderColor: g,
1978
1978
  bannerIconColor: d,
1979
- sx: g = {},
1979
+ sx: b = {},
1980
1980
  style: v = {},
1981
1981
  className: w = "",
1982
1982
  i18nKey: C,
1983
1983
  localeText: F = {},
1984
1984
  ...O
1985
- } = e, { t: y } = de(), x = ht(c, "normal", gt), T = ht(i, "info", ft), p = gt[x], S = ft[T], _ = H(g, rr), M = {
1986
- cancel: y("banner.cancel", bt.cancel),
1987
- action: y("banner.action", bt.action),
1985
+ } = e, { t: y } = de(), x = ht(c, "normal", bt), T = ht(i, "info", ft), p = bt[x], S = ft[T], _ = H(b, aa), M = {
1986
+ cancel: y("banner.cancel", mt.cancel),
1987
+ action: y("banner.action", mt.action),
1988
1988
  ...F
1989
- }, B = l ?? (C === "cancel" ? y("banner.cancel", M.cancel) : M.cancel), A = a ?? (C === "action" ? y("banner.action", M.action) : M.action), k = o ?? B, N = h || (u === !0 ? "transparent" : `var(${S.bgVar})`), L = m || `var(${S.borderVar})`, W = d || `var(${S.iconVar})`, D = `var(${S.textVar})`, E = b({
1989
+ }, B = l ?? (C === "cancel" ? y("banner.cancel", M.cancel) : M.cancel), A = n ?? (C === "action" ? y("banner.action", M.action) : M.action), k = o ?? B, N = h || (u === !0 ? "transparent" : `var(${S.bgVar})`), L = g || `var(${S.borderVar})`, W = d || `var(${S.iconVar})`, D = `var(${S.textVar})`, E = m({
1990
1990
  baseClassName: I(
1991
1991
  "flex w-full items-center justify-start transition-colors duration-200",
1992
1992
  p.rootClass
@@ -1995,11 +1995,11 @@ function sr(e) {
1995
1995
  style: {
1996
1996
  backgroundColor: N,
1997
1997
  borderColor: L,
1998
- color: u === !0 ? "var(--muted-foreground)" : D,
1998
+ color: u === !0 ? "var(--tango-muted-foreground)" : D,
1999
1999
  ...v
2000
2000
  },
2001
2001
  sxSlot: _.root
2002
- }), $ = b({
2002
+ }), $ = m({
2003
2003
  baseClassName: "shrink-0",
2004
2004
  baseStyle: {
2005
2005
  width: `${p.iconSize}px`,
@@ -2007,38 +2007,38 @@ function sr(e) {
2007
2007
  color: W
2008
2008
  },
2009
2009
  sxSlot: _.icon
2010
- }), z = b({
2010
+ }), z = m({
2011
2011
  baseClassName: I(
2012
2012
  "flex-grow text-left",
2013
2013
  p.contentClass
2014
2014
  ),
2015
2015
  sxSlot: _.content
2016
- }), U = b({
2016
+ }), U = m({
2017
2017
  baseClassName: "flex items-center justify-end flex-1",
2018
2018
  baseStyle: {
2019
2019
  gap: p.buttonGap
2020
2020
  },
2021
2021
  sxSlot: _.actions
2022
- }), K = b({
2022
+ }), K = m({
2023
2023
  baseClassName: "shrink-0 cursor-pointer",
2024
2024
  baseStyle: {
2025
2025
  width: `${p.closeIconSize}px`,
2026
2026
  height: `${p.closeIconSize}px`,
2027
- color: "var(--banner-close-icon)"
2027
+ color: "var(--tango-banner-close-icon)"
2028
2028
  },
2029
2029
  sxSlot: _.closeIcon
2030
2030
  }), G = /* @__PURE__ */ P("svg", { viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", children: [
2031
- /* @__PURE__ */ s("path", { d: "M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z" }),
2032
- /* @__PURE__ */ s("path", { d: "M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z" }),
2033
- /* @__PURE__ */ s("path", { d: "M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z" })
2031
+ /* @__PURE__ */ r("path", { d: "M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z" }),
2032
+ /* @__PURE__ */ r("path", { d: "M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z" }),
2033
+ /* @__PURE__ */ r("path", { d: "M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z" })
2034
2034
  ] }), R = /* @__PURE__ */ P("svg", { viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", children: [
2035
- /* @__PURE__ */ s("path", { d: "M869.472578 920.128281 154.906046 920.128281c-31.943526 0-60.545958-16.517185-76.514651-44.181245-15.968693-27.666106-15.96153-60.696384 0.016373-88.355327l357.283266-618.47194c15.971763-27.647687 44.568055-44.152593 76.496232-44.152593 31.930223-0.001023 60.527538 16.504906 76.499301 44.151569l357.283266 618.472963c15.977903 27.659967 15.984043 60.689221 0.017396 88.355327C930.018535 903.611096 901.416104 920.128281 869.472578 920.128281zM512.187265 169.139212c-15.962553 0-30.261211 8.251941-38.247092 22.075785l0 0L116.65793 809.686936c-7.989975 13.829983-7.993045 30.345122-0.008186 44.179199 7.983835 13.83203 22.285562 22.090111 38.257326 22.090111l714.566532 0c15.971763 0 30.273491-8.258081 38.256302-22.090111 7.984858-13.83203 7.980765-30.349215-0.008186-44.179199L550.437427 191.213973C542.452569 177.391153 528.152888 169.138188 512.187265 169.139212z" }),
2036
- /* @__PURE__ */ s("path", { d: "M513.732457 621.119233c-18.296715 0-33.257451-14.832823-33.257451-33.129538L480.475006 331.789639c0-18.296715 14.960737-33.129538 33.257451-33.129538 18.296715 0 33.257451 14.832823 33.257451 33.129538l0 256.200056C546.989909 606.28641 532.029172 621.119233 513.732457 621.119233z" }),
2037
- /* @__PURE__ */ s("path", { d: "M513.686409 737.619574m-49.991578 0a48.853 48.853 0 1 0 99.983155 0 48.853 48.853 0 1 0-99.983155 0Z" })
2038
- ] }), Q = /* @__PURE__ */ s("svg", { viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", children: /* @__PURE__ */ s("path", { d: "M85.333333 512C85.333333 276.352 276.352 85.333333 512 85.333333s426.666667 191.018667 426.666667 426.666667-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512z m683.093334-256.426667a358.954667 358.954667 0 0 0-122.922667-80.768A359.466667 359.466667 0 0 0 512 149.333333c-46.08 0-90.624 8.490667-133.504 25.472A358.954667 358.954667 0 0 0 255.573333 255.573333c-35.413333 35.413333-62.336 76.373333-80.768 122.922667A359.466667 359.466667 0 0 0 149.333333 512c0 46.08 8.490667 90.624 25.472 133.504A358.954667 358.954667 0 0 0 255.573333 768.426667c35.413333 35.413333 76.373333 62.336 122.922667 80.768A359.466667 359.466667 0 0 0 512 874.666667c46.08 0 90.624-8.490667 133.504-25.472a358.954667 358.954667 0 0 0 122.922667-80.768c35.413333-35.413333 62.336-76.373333 80.768-122.922667A359.466667 359.466667 0 0 0 874.666667 512c0-46.08-8.490667-90.624-25.472-133.504A358.912 358.912 0 0 0 768.426667 255.573333zM338.517333 640.213333L466.773333 512 338.517333 383.786667l45.226667-45.226667L512 466.688l128.213333-128.213333 45.226667 45.226666L557.312 512l128.213333 128.213333-45.226666 45.226667L512 557.312l-128.213333 128.213333-45.226667-45.226666z" }) }), ue = /* @__PURE__ */ P("svg", { viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", children: [
2039
- /* @__PURE__ */ s("path", { d: "M512.3 961.3c-247.1 0-448.1-201-448.1-448.1s201-448.1 448.1-448.1 448.1 201 448.1 448.1-201 448.1-448.1 448.1z m0-849.7c-221.4 0-401.6 180.2-401.6 401.6s180.2 401.6 401.6 401.6 401.6-180.2 401.6-401.6-180.2-401.6-401.6-401.6z" }),
2040
- /* @__PURE__ */ s("path", { d: "M441.2 676c-16.4 0-32.7-5.8-45.5-17.4l-151.3-138c-9.5-8.6-10.2-23.3-1.5-32.8 8.6-9.5 23.3-10.2 32.8-1.5L427 624.2c7.6 6.9 20.8 6.9 28.4 0l293.5-267.5c9.5-8.6 24.2-8 32.8 1.5 8.6 9.5 8 24.2-1.5 32.8L486.7 658.5c-12.8 11.7-29.1 17.5-45.5 17.5z" })
2041
- ] }), be = /* @__PURE__ */ s("svg", { viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", children: /* @__PURE__ */ s("path", { d: "M558.8 509.2l302.8-302.8c3.1-3.1 3.1-8.1 0-11.2l-30.8-30.8c-3.1-3.1-8.1-3.1-11.2 0L516.8 467.2c-1.5 1.5-4.1 1.5-5.6 0L208.3 164.3c-3.1-3.1-8.1-3.1-11.2 0l-30.8 30.8c-3.1 3.1-3.1 8.1 0 11.2l302.8 302.8c1.5 1.5 1.5 4.1 0 5.6l-302.8 303c-3.1 3.1-3.1 8.1 0 11.2l30.8 30.8c3.1 3.1 8.1 3.1 11.2 0l302.8-302.8c1.5-1.5 4.1-1.5 5.6 0l302.8 302.8c3.1 3.1 8.1 3.1 11.2 0l30.8-30.8c3.1-3.1 3.1-8.1 0-11.2L558.8 514.8c-1.5-1.5-1.5-4.1 0-5.6z" }) }), ge = {
2035
+ /* @__PURE__ */ r("path", { d: "M869.472578 920.128281 154.906046 920.128281c-31.943526 0-60.545958-16.517185-76.514651-44.181245-15.968693-27.666106-15.96153-60.696384 0.016373-88.355327l357.283266-618.47194c15.971763-27.647687 44.568055-44.152593 76.496232-44.152593 31.930223-0.001023 60.527538 16.504906 76.499301 44.151569l357.283266 618.472963c15.977903 27.659967 15.984043 60.689221 0.017396 88.355327C930.018535 903.611096 901.416104 920.128281 869.472578 920.128281zM512.187265 169.139212c-15.962553 0-30.261211 8.251941-38.247092 22.075785l0 0L116.65793 809.686936c-7.989975 13.829983-7.993045 30.345122-0.008186 44.179199 7.983835 13.83203 22.285562 22.090111 38.257326 22.090111l714.566532 0c15.971763 0 30.273491-8.258081 38.256302-22.090111 7.984858-13.83203 7.980765-30.349215-0.008186-44.179199L550.437427 191.213973C542.452569 177.391153 528.152888 169.138188 512.187265 169.139212z" }),
2036
+ /* @__PURE__ */ r("path", { d: "M513.732457 621.119233c-18.296715 0-33.257451-14.832823-33.257451-33.129538L480.475006 331.789639c0-18.296715 14.960737-33.129538 33.257451-33.129538 18.296715 0 33.257451 14.832823 33.257451 33.129538l0 256.200056C546.989909 606.28641 532.029172 621.119233 513.732457 621.119233z" }),
2037
+ /* @__PURE__ */ r("path", { d: "M513.686409 737.619574m-49.991578 0a48.853 48.853 0 1 0 99.983155 0 48.853 48.853 0 1 0-99.983155 0Z" })
2038
+ ] }), Q = /* @__PURE__ */ r("svg", { viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", children: /* @__PURE__ */ r("path", { d: "M85.333333 512C85.333333 276.352 276.352 85.333333 512 85.333333s426.666667 191.018667 426.666667 426.666667-191.018667 426.666667-426.666667 426.666667S85.333333 747.648 85.333333 512z m683.093334-256.426667a358.954667 358.954667 0 0 0-122.922667-80.768A359.466667 359.466667 0 0 0 512 149.333333c-46.08 0-90.624 8.490667-133.504 25.472A358.954667 358.954667 0 0 0 255.573333 255.573333c-35.413333 35.413333-62.336 76.373333-80.768 122.922667A359.466667 359.466667 0 0 0 149.333333 512c0 46.08 8.490667 90.624 25.472 133.504A358.954667 358.954667 0 0 0 255.573333 768.426667c35.413333 35.413333 76.373333 62.336 122.922667 80.768A359.466667 359.466667 0 0 0 512 874.666667c46.08 0 90.624-8.490667 133.504-25.472a358.954667 358.954667 0 0 0 122.922667-80.768c35.413333-35.413333 62.336-76.373333 80.768-122.922667A359.466667 359.466667 0 0 0 874.666667 512c0-46.08-8.490667-90.624-25.472-133.504A358.912 358.912 0 0 0 768.426667 255.573333zM338.517333 640.213333L466.773333 512 338.517333 383.786667l45.226667-45.226667L512 466.688l128.213333-128.213333 45.226667 45.226666L557.312 512l128.213333 128.213333-45.226666 45.226667L512 557.312l-128.213333 128.213333-45.226667-45.226666z" }) }), ue = /* @__PURE__ */ P("svg", { viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", children: [
2039
+ /* @__PURE__ */ r("path", { d: "M512.3 961.3c-247.1 0-448.1-201-448.1-448.1s201-448.1 448.1-448.1 448.1 201 448.1 448.1-201 448.1-448.1 448.1z m0-849.7c-221.4 0-401.6 180.2-401.6 401.6s180.2 401.6 401.6 401.6 401.6-180.2 401.6-401.6-180.2-401.6-401.6-401.6z" }),
2040
+ /* @__PURE__ */ r("path", { d: "M441.2 676c-16.4 0-32.7-5.8-45.5-17.4l-151.3-138c-9.5-8.6-10.2-23.3-1.5-32.8 8.6-9.5 23.3-10.2 32.8-1.5L427 624.2c7.6 6.9 20.8 6.9 28.4 0l293.5-267.5c9.5-8.6 24.2-8 32.8 1.5 8.6 9.5 8 24.2-1.5 32.8L486.7 658.5c-12.8 11.7-29.1 17.5-45.5 17.5z" })
2041
+ ] }), me = /* @__PURE__ */ r("svg", { viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", children: /* @__PURE__ */ r("path", { d: "M558.8 509.2l302.8-302.8c3.1-3.1 3.1-8.1 0-11.2l-30.8-30.8c-3.1-3.1-8.1-3.1-11.2 0L516.8 467.2c-1.5 1.5-4.1 1.5-5.6 0L208.3 164.3c-3.1-3.1-8.1-3.1-11.2 0l-30.8 30.8c-3.1 3.1-3.1 8.1 0 11.2l302.8 302.8c1.5 1.5 1.5 4.1 0 5.6l-302.8 303c-3.1 3.1-3.1 8.1 0 11.2l30.8 30.8c3.1 3.1 8.1 3.1 11.2 0l302.8-302.8c1.5-1.5 4.1-1.5 5.6 0l302.8 302.8c3.1 3.1 8.1 3.1 11.2 0l30.8-30.8c3.1-3.1 3.1-8.1 0-11.2L558.8 514.8c-1.5-1.5-1.5-4.1 0-5.6z" }) }), be = {
2042
2042
  success: ue,
2043
2043
  warning: R,
2044
2044
  error: Q,
@@ -2053,47 +2053,47 @@ function sr(e) {
2053
2053
  "data-size": x,
2054
2054
  ...O,
2055
2055
  children: [
2056
- /* @__PURE__ */ s("div", { className: $.className, style: $.style, children: ge[T] }),
2057
- /* @__PURE__ */ s("div", { className: z.className, style: z.style, children: k }),
2056
+ /* @__PURE__ */ r("div", { className: $.className, style: $.style, children: be[T] }),
2057
+ /* @__PURE__ */ r("div", { className: z.className, style: z.style, children: k }),
2058
2058
  /* @__PURE__ */ P("div", { className: U.className, style: U.style, children: [
2059
- /* @__PURE__ */ s(
2059
+ /* @__PURE__ */ r(
2060
2060
  ie,
2061
2061
  {
2062
2062
  type: "transparent",
2063
2063
  sx: {
2064
- c: "var(--banner-btn-text)",
2064
+ c: "var(--tango-banner-btn-text)",
2065
2065
  br: p.buttonBorderRadius,
2066
2066
  bColor: "transparent",
2067
2067
  s: p.buttonFontSize
2068
2068
  },
2069
- onClick: r,
2069
+ onClick: a,
2070
2070
  size: x === "normal" ? "medium" : x,
2071
2071
  children: B
2072
2072
  }
2073
2073
  ),
2074
- /* @__PURE__ */ s(
2074
+ /* @__PURE__ */ r(
2075
2075
  ie,
2076
2076
  {
2077
2077
  type: "transparent",
2078
2078
  sx: {
2079
- c: "var(--banner-btn-text)",
2079
+ c: "var(--tango-banner-btn-text)",
2080
2080
  br: p.buttonBorderRadius,
2081
2081
  b: 1,
2082
- bColor: "var(--banner-btn-border)",
2082
+ bColor: "var(--tango-banner-btn-border)",
2083
2083
  s: p.buttonFontSize
2084
2084
  },
2085
- onClick: n,
2085
+ onClick: s,
2086
2086
  size: x === "normal" ? "medium" : x,
2087
2087
  children: A
2088
2088
  }
2089
2089
  ),
2090
- /* @__PURE__ */ s(
2090
+ /* @__PURE__ */ r(
2091
2091
  "div",
2092
2092
  {
2093
2093
  className: K.className,
2094
2094
  style: K.style,
2095
- onClick: r,
2096
- children: be
2095
+ onClick: a,
2096
+ children: me
2097
2097
  }
2098
2098
  )
2099
2099
  ] })
@@ -2101,7 +2101,7 @@ function sr(e) {
2101
2101
  }
2102
2102
  );
2103
2103
  }
2104
- sr.propTypes = {
2104
+ ra.propTypes = {
2105
2105
  children: t.node,
2106
2106
  onCancel: t.func,
2107
2107
  onAction: t.func,
@@ -2119,7 +2119,7 @@ sr.propTypes = {
2119
2119
  i18nKey: t.string,
2120
2120
  localeText: t.object
2121
2121
  };
2122
- const ar = ["root", "input", "text"], Ke = {
2122
+ const na = ["root", "input", "text"], Ke = {
2123
2123
  hex: "HEX",
2124
2124
  rgb: "RGB",
2125
2125
  hsl: "HSL"
@@ -2127,76 +2127,76 @@ const ar = ["root", "input", "text"], Ke = {
2127
2127
  small: { inputSize: 20, fontSize: "11px", gap: "6px" },
2128
2128
  medium: { inputSize: 28, fontSize: "12px", gap: "10px" },
2129
2129
  large: { inputSize: 36, fontSize: "14px", gap: "14px" }
2130
- }, nr = {
2130
+ }, sa = {
2131
2131
  hex: "hex",
2132
2132
  rgb: "rgb",
2133
2133
  hsl: "hsl"
2134
- }, xt = (e, o, r) => Object.prototype.hasOwnProperty.call(r, e) ? e : o, lr = (e) => {
2135
- const o = parseInt(e.slice(1, 3), 16), r = parseInt(e.slice(3, 5), 16), n = parseInt(e.slice(5, 7), 16);
2136
- return `rgb(${o}, ${r}, ${n})`;
2137
- }, cr = (e) => {
2138
- let o = parseInt(e.slice(1, 3), 16) / 255, r = parseInt(e.slice(3, 5), 16) / 255, n = parseInt(e.slice(5, 7), 16) / 255;
2139
- const c = Math.max(o, r, n), l = Math.min(o, r, n);
2140
- let a = 0, i = 0, u = (c + l) / 2;
2134
+ }, xt = (e, o, a) => Object.prototype.hasOwnProperty.call(a, e) ? e : o, la = (e) => {
2135
+ const o = parseInt(e.slice(1, 3), 16), a = parseInt(e.slice(3, 5), 16), s = parseInt(e.slice(5, 7), 16);
2136
+ return `rgb(${o}, ${a}, ${s})`;
2137
+ }, ca = (e) => {
2138
+ let o = parseInt(e.slice(1, 3), 16) / 255, a = parseInt(e.slice(3, 5), 16) / 255, s = parseInt(e.slice(5, 7), 16) / 255;
2139
+ const c = Math.max(o, a, s), l = Math.min(o, a, s);
2140
+ let n = 0, i = 0, u = (c + l) / 2;
2141
2141
  if (c !== l) {
2142
2142
  const h = c - l;
2143
- i = u > 0.5 ? h / (2 - c - l) : h / (c + l), c === o ? a = (r - n) / h + (r < n ? 6 : 0) : c === r ? a = (n - o) / h + 2 : a = (o - r) / h + 4, a /= 6;
2143
+ i = u > 0.5 ? h / (2 - c - l) : h / (c + l), c === o ? n = (a - s) / h + (a < s ? 6 : 0) : c === a ? n = (s - o) / h + 2 : n = (o - a) / h + 4, n /= 6;
2144
2144
  }
2145
- return `hsl(${Math.round(a * 360)}, ${Math.round(i * 100)}%, ${Math.round(u * 100)}%)`;
2146
- }, ir = (e, o) => {
2145
+ return `hsl(${Math.round(n * 360)}, ${Math.round(i * 100)}%, ${Math.round(u * 100)}%)`;
2146
+ }, ia = (e, o) => {
2147
2147
  switch (o) {
2148
2148
  case "rgb":
2149
- return lr(e);
2149
+ return la(e);
2150
2150
  case "hsl":
2151
- return cr(e);
2151
+ return ca(e);
2152
2152
  default:
2153
2153
  return e.toUpperCase();
2154
2154
  }
2155
2155
  };
2156
- function dr(e) {
2156
+ function da(e) {
2157
2157
  const {
2158
2158
  value: o,
2159
- defaultValue: r = "#000000",
2160
- onChange: n = () => {
2159
+ defaultValue: a = "#000000",
2160
+ onChange: s = () => {
2161
2161
  },
2162
2162
  disabled: c = !1,
2163
2163
  showText: l = !1,
2164
- format: a = "hex",
2164
+ format: n = "hex",
2165
2165
  size: i = "medium",
2166
2166
  sx: u = {},
2167
2167
  style: h = {},
2168
- className: m = "",
2168
+ className: g = "",
2169
2169
  i18nKey: d,
2170
- localeText: g = {},
2170
+ localeText: b = {},
2171
2171
  ...v
2172
- } = e, { t: w } = de(), C = xt(i, "medium", yt), F = xt(a, "hex", nr), O = yt[C], [y, x] = Z(r), T = o ?? y, p = H(u, ar), S = {
2172
+ } = e, { t: w } = de(), C = xt(i, "medium", yt), F = xt(n, "hex", sa), O = yt[C], [y, x] = Z(a), T = o ?? y, p = H(u, na), S = {
2173
2173
  hex: w("colorpicker.hex", Ke.hex),
2174
2174
  rgb: w("colorpicker.rgb", Ke.rgb),
2175
2175
  hsl: w("colorpicker.hsl", Ke.hsl),
2176
- ...g
2176
+ ...b
2177
2177
  }, _ = (L) => {
2178
2178
  const W = L.target.value;
2179
- o === void 0 && x(W), n(W);
2179
+ o === void 0 && x(W), s(W);
2180
2180
  }, M = [];
2181
2181
  if (l) {
2182
2182
  const L = d || (typeof l == "string" ? l : null) || F;
2183
2183
  M.push({
2184
2184
  label: S[L],
2185
- value: ir(T, L)
2185
+ value: ia(T, L)
2186
2186
  });
2187
2187
  }
2188
- const B = b({
2188
+ const B = m({
2189
2189
  baseClassName: I(
2190
2190
  "inline-flex items-center",
2191
2191
  c && "cursor-not-allowed opacity-60"
2192
2192
  ),
2193
- className: m,
2193
+ className: g,
2194
2194
  baseStyle: { gap: O.gap },
2195
2195
  style: h,
2196
2196
  sxSlot: p.root
2197
- }), A = b({
2197
+ }), A = m({
2198
2198
  baseClassName: I(
2199
- "shrink-0 cursor-pointer border-2 border-[var(--border)] rounded-full bg-transparent overflow-hidden transition-colors duration-200",
2199
+ "shrink-0 cursor-pointer border-2 border-[var(--tango-border)] rounded-full bg-transparent overflow-hidden transition-colors duration-200",
2200
2200
  c && "cursor-not-allowed"
2201
2201
  ),
2202
2202
  baseStyle: {
@@ -2205,19 +2205,19 @@ function dr(e) {
2205
2205
  padding: 0
2206
2206
  },
2207
2207
  sxSlot: p.input
2208
- }), k = b({
2209
- baseClassName: "flex flex-col text-[var(--muted-foreground)]",
2208
+ }), k = m({
2209
+ baseClassName: "flex flex-col text-[var(--tango-muted-foreground)]",
2210
2210
  baseStyle: { fontSize: O.fontSize },
2211
2211
  sxSlot: p.text
2212
2212
  });
2213
2213
  return /* @__PURE__ */ P(Ne, { children: [
2214
- /* @__PURE__ */ s("style", { children: `
2214
+ /* @__PURE__ */ r("style", { children: `
2215
2215
  .tango-cp-input::-webkit-color-swatch-wrapper { padding: 0; }
2216
2216
  .tango-cp-input::-webkit-color-swatch { border: 0; border-radius: 9999px; }
2217
2217
  .tango-cp-input::-moz-color-swatch { border: 0; border-radius: 9999px; }
2218
2218
  ` }),
2219
2219
  /* @__PURE__ */ P("div", { className: B.className, style: B.style, ...v, children: [
2220
- /* @__PURE__ */ s(
2220
+ /* @__PURE__ */ r(
2221
2221
  "input",
2222
2222
  {
2223
2223
  type: "color",
@@ -2229,7 +2229,7 @@ function dr(e) {
2229
2229
  "aria-label": v["aria-label"] || `颜色选择器: ${T}`
2230
2230
  }
2231
2231
  ),
2232
- l && M.length > 0 && /* @__PURE__ */ s("div", { className: k.className, style: k.style, children: M.map(({ label: L, value: W }) => /* @__PURE__ */ P("span", { children: [
2232
+ l && M.length > 0 && /* @__PURE__ */ r("div", { className: k.className, style: k.style, children: M.map(({ label: L, value: W }) => /* @__PURE__ */ P("span", { children: [
2233
2233
  L,
2234
2234
  ": ",
2235
2235
  W
@@ -2237,7 +2237,7 @@ function dr(e) {
2237
2237
  ] })
2238
2238
  ] });
2239
2239
  }
2240
- dr.propTypes = {
2240
+ da.propTypes = {
2241
2241
  value: t.string,
2242
2242
  defaultValue: t.string,
2243
2243
  onChange: t.func,
@@ -2251,7 +2251,7 @@ dr.propTypes = {
2251
2251
  i18nKey: t.string,
2252
2252
  localeText: t.object
2253
2253
  };
2254
- const ur = ["root", "date", "weekday", "time"], vt = {
2254
+ const ua = ["root", "date", "weekday", "time"], vt = {
2255
2255
  weekdayPrefix: "星期",
2256
2256
  weekdayShortPrefix: "周"
2257
2257
  }, St = {
@@ -2264,108 +2264,108 @@ const ur = ["root", "date", "weekday", "time"], vt = {
2264
2264
  "week-time": "week-time",
2265
2265
  "no-s": "no-s",
2266
2266
  "no-s-line": "no-s-line"
2267
- }, pr = (e, o, r) => Object.prototype.hasOwnProperty.call(r, e) ? e : o, mr = (e, o) => {
2268
- const n = (/* @__PURE__ */ new Date()).toLocaleDateString(e, {
2267
+ }, pa = (e, o, a) => Object.prototype.hasOwnProperty.call(a, e) ? e : o, ga = (e, o) => {
2268
+ const s = (/* @__PURE__ */ new Date()).toLocaleDateString(e, {
2269
2269
  year: "numeric",
2270
2270
  month: "2-digit",
2271
2271
  day: "2-digit"
2272
2272
  });
2273
- return o ? n.replaceAll("/", "-") : n;
2274
- }, br = (e, o) => {
2275
- let n = (/* @__PURE__ */ new Date()).toLocaleString(e, { weekday: "long" });
2276
- return o && e.startsWith("zh") && (n = n.replace("星期", "周")), n;
2273
+ return o ? s.replaceAll("/", "-") : s;
2274
+ }, ma = (e, o) => {
2275
+ let s = (/* @__PURE__ */ new Date()).toLocaleString(e, { weekday: "long" });
2276
+ return o && e.startsWith("zh") && (s = s.replace("星期", "周")), s;
2277
2277
  }, Te = (e, o) => {
2278
- const r = /* @__PURE__ */ new Date(), n = { hour: "2-digit", minute: "2-digit" };
2279
- return o && (n.second = "2-digit"), r.toLocaleTimeString(e, n);
2280
- }, gr = (e, o, r, n) => {
2281
- const c = e.endsWith("-line"), l = mr(o, c), a = br(o, r);
2278
+ const a = /* @__PURE__ */ new Date(), s = { hour: "2-digit", minute: "2-digit" };
2279
+ return o && (s.second = "2-digit"), a.toLocaleTimeString(e, s);
2280
+ }, ba = (e, o, a, s) => {
2281
+ const c = e.endsWith("-line"), l = ga(o, c), n = ma(o, a);
2282
2282
  switch (e) {
2283
2283
  case "line":
2284
2284
  return [{ key: "date", text: l }];
2285
2285
  case "full":
2286
2286
  return [
2287
2287
  { key: "date", text: l + " " },
2288
- { key: "weekday", text: a + " " },
2288
+ { key: "weekday", text: n + " " },
2289
2289
  { key: "time", text: Te(o, !0) }
2290
2290
  ];
2291
2291
  case "full-line":
2292
2292
  return [
2293
2293
  { key: "date", text: l + " " },
2294
- { key: "weekday", text: a + " " },
2294
+ { key: "weekday", text: n + " " },
2295
2295
  { key: "time", text: Te(o, !0) }
2296
2296
  ];
2297
2297
  case "year-week":
2298
2298
  return [
2299
2299
  { key: "date", text: l + " " },
2300
- { key: "weekday", text: a }
2300
+ { key: "weekday", text: n }
2301
2301
  ];
2302
2302
  case "year-week-line":
2303
2303
  return [
2304
2304
  { key: "date", text: l + " " },
2305
- { key: "weekday", text: a }
2305
+ { key: "weekday", text: n }
2306
2306
  ];
2307
2307
  case "week-time":
2308
2308
  return [
2309
- { key: "weekday", text: a + " " },
2309
+ { key: "weekday", text: n + " " },
2310
2310
  { key: "time", text: Te(o, !0) }
2311
2311
  ];
2312
2312
  case "no-s":
2313
2313
  return [
2314
2314
  { key: "date", text: l + " " },
2315
- { key: "weekday", text: a + " " },
2315
+ { key: "weekday", text: n + " " },
2316
2316
  { key: "time", text: Te(o, !1) }
2317
2317
  ];
2318
2318
  case "no-s-line":
2319
2319
  return [
2320
2320
  { key: "date", text: l + " " },
2321
- { key: "weekday", text: a + " " },
2321
+ { key: "weekday", text: n + " " },
2322
2322
  { key: "time", text: Te(o, !1) }
2323
2323
  ];
2324
2324
  default:
2325
2325
  return [{ key: "date", text: l }];
2326
2326
  }
2327
2327
  };
2328
- function fr(e) {
2328
+ function fa(e) {
2329
2329
  const {
2330
2330
  type: o = "default",
2331
- single: r = !1,
2332
- sx: n = {},
2331
+ single: a = !1,
2332
+ sx: s = {},
2333
2333
  style: c = {},
2334
2334
  className: l = "",
2335
- i18nKey: a,
2335
+ i18nKey: n,
2336
2336
  localeText: i = {},
2337
2337
  ...u
2338
- } = e || {}, { t: h, locale: m } = de(), [d, g] = Z(!1);
2339
- se(() => {
2340
- g(!0);
2338
+ } = e || {}, { t: h, locale: g } = de(), [d, b] = Z(!1);
2339
+ re(() => {
2340
+ b(!0);
2341
2341
  }, []);
2342
- const v = pr(o, "default", St), w = m === "en-US" ? "en-US" : "zh-CN";
2342
+ const v = pa(o, "default", St), w = g === "en-US" ? "en-US" : "zh-CN";
2343
2343
  ({
2344
2344
  weekdayPrefix: h("date.weekdayPrefix", vt.weekdayPrefix),
2345
2345
  weekdayShortPrefix: h("date.weekdayShortPrefix", vt.weekdayShortPrefix),
2346
2346
  ...i
2347
2347
  });
2348
- const C = H(n, ur), F = a && St[a] ? a : v, O = d ? gr(F, w, r) : [], y = b({
2349
- baseClassName: I("inline-flex items-center gap-1 text-[var(--foreground)]"),
2348
+ const C = H(s, ua), F = n && St[n] ? n : v, O = d ? ba(F, w, a) : [], y = m({
2349
+ baseClassName: I("inline-flex items-center gap-1 text-[var(--tango-foreground)]"),
2350
2350
  className: l,
2351
2351
  baseStyle: {},
2352
2352
  style: c,
2353
2353
  sxSlot: C.root
2354
2354
  }), x = {
2355
- date: b({
2355
+ date: m({
2356
2356
  baseClassName: "",
2357
2357
  sxSlot: C.date
2358
2358
  }),
2359
- weekday: b({
2360
- baseClassName: "text-[var(--muted-foreground)]",
2359
+ weekday: m({
2360
+ baseClassName: "text-[var(--tango-muted-foreground)]",
2361
2361
  sxSlot: C.weekday
2362
2362
  }),
2363
- time: b({
2363
+ time: m({
2364
2364
  baseClassName: "",
2365
2365
  sxSlot: C.time
2366
2366
  })
2367
2367
  };
2368
- return /* @__PURE__ */ s(
2368
+ return /* @__PURE__ */ r(
2369
2369
  "div",
2370
2370
  {
2371
2371
  className: y.className,
@@ -2375,12 +2375,12 @@ function fr(e) {
2375
2375
  ...u,
2376
2376
  children: O.map((T) => {
2377
2377
  const p = x[T.key] || { className: "", style: {} };
2378
- return /* @__PURE__ */ s("span", { className: p.className, style: p.style, children: T.text }, T.key);
2378
+ return /* @__PURE__ */ r("span", { className: p.className, style: p.style, children: T.text }, T.key);
2379
2379
  })
2380
2380
  }
2381
2381
  );
2382
2382
  }
2383
- fr.propTypes = {
2383
+ fa.propTypes = {
2384
2384
  type: t.oneOf([
2385
2385
  "default",
2386
2386
  "line",
@@ -2399,7 +2399,7 @@ fr.propTypes = {
2399
2399
  i18nKey: t.string,
2400
2400
  localeText: t.object
2401
2401
  };
2402
- const hr = ["root", "input", "panel", "header", "body", "footer"], me = {
2402
+ const ha = ["root", "input", "panel", "header", "body", "footer"], ge = {
2403
2403
  placeholder: "YYYY-MM-DD",
2404
2404
  placeholderTime: "YYYY-MM-DD HH:mm",
2405
2405
  timeLabel: "时间",
@@ -2413,39 +2413,39 @@ const hr = ["root", "input", "panel", "header", "body", "footer"], me = {
2413
2413
  small: { inputPx: "px-2 py-1", textSm: "text-xs", minW: "min-w-[140px]", panelW: "w-[260px]" },
2414
2414
  medium: { inputPx: "px-3 py-2", textSm: "text-sm", minW: "min-w-[180px]", panelW: "w-[300px]" },
2415
2415
  large: { inputPx: "px-4 py-3", textSm: "text-base", minW: "min-w-[220px]", panelW: "w-[340px]" }
2416
- }, yr = (e, o, r) => Object.prototype.hasOwnProperty.call(r, e) ? e : o;
2417
- function xr(e) {
2416
+ }, ya = (e, o, a) => Object.prototype.hasOwnProperty.call(a, e) ? e : o;
2417
+ function xa(e) {
2418
2418
  const {
2419
2419
  value: o,
2420
- defaultValue: r,
2421
- onChange: n = () => {
2420
+ defaultValue: a,
2421
+ onChange: s = () => {
2422
2422
  },
2423
2423
  disabled: c = !1,
2424
2424
  time: l = !1,
2425
- size: a = "medium",
2425
+ size: n = "medium",
2426
2426
  sx: i = {},
2427
2427
  style: u = {},
2428
2428
  className: h = "",
2429
- i18nKey: m,
2429
+ i18nKey: g,
2430
2430
  localeText: d = {},
2431
- placeholder: g,
2431
+ placeholder: b,
2432
2432
  ...v
2433
- } = e, { t: w, locale: C } = de(), F = yr(a, "medium", Nt), O = Nt[F], y = C === "en-US", [x, T] = Z(r || ""), p = o !== void 0 ? o : x, [S, _] = Z("00"), [M, B] = Z("00"), [A, k] = Z(!1), [N, L] = Z(() => {
2433
+ } = e, { t: w, locale: C } = de(), F = ya(n, "medium", Nt), O = Nt[F], y = C === "en-US", [x, T] = Z(a || ""), p = o !== void 0 ? o : x, [S, _] = Z("00"), [M, B] = Z("00"), [A, k] = Z(!1), [N, L] = Z(() => {
2434
2434
  const f = /* @__PURE__ */ new Date();
2435
2435
  return new Date(f.getFullYear(), f.getMonth(), 1);
2436
2436
  }), W = ke(null), D = {
2437
- placeholder: w("datepicker.placeholder", me.placeholder),
2438
- placeholderTime: w("datepicker.placeholderTime", me.placeholderTime),
2439
- timeLabel: w("datepicker.timeLabel", me.timeLabel),
2440
- confirm: w("datepicker.confirm", me.confirm),
2441
- cancel: w("datepicker.cancel", me.cancel),
2442
- prevMonth: w("datepicker.prevMonth", me.prevMonth),
2443
- nextMonth: w("datepicker.nextMonth", me.nextMonth),
2444
- weekDays: y ? ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"] : me.weekDays,
2445
- monthFormat: y ? "${month}/${year}" : me.monthFormat,
2437
+ placeholder: w("datepicker.placeholder", ge.placeholder),
2438
+ placeholderTime: w("datepicker.placeholderTime", ge.placeholderTime),
2439
+ timeLabel: w("datepicker.timeLabel", ge.timeLabel),
2440
+ confirm: w("datepicker.confirm", ge.confirm),
2441
+ cancel: w("datepicker.cancel", ge.cancel),
2442
+ prevMonth: w("datepicker.prevMonth", ge.prevMonth),
2443
+ nextMonth: w("datepicker.nextMonth", ge.nextMonth),
2444
+ weekDays: y ? ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"] : ge.weekDays,
2445
+ monthFormat: y ? "${month}/${year}" : ge.monthFormat,
2446
2446
  ...d
2447
2447
  };
2448
- se(() => {
2448
+ re(() => {
2449
2449
  const f = (V) => {
2450
2450
  W.current && !W.current.contains(V.target) && k(!1);
2451
2451
  };
@@ -2467,10 +2467,10 @@ function xr(e) {
2467
2467
  if (f) {
2468
2468
  if (l) {
2469
2469
  const ce = `${f}T${V}:${ee}`, pe = new Date(ce), Qe = pe.getFullYear(), Fe = (pe.getMonth() + 1).toString().padStart(2, "0"), Vt = pe.getDate().toString().padStart(2, "0"), Yt = pe.getHours().toString().padStart(2, "0"), Kt = pe.getMinutes().toString().padStart(2, "0");
2470
- n(`${Qe}-${Fe}-${Vt} ${Yt}:${Kt}`, ce);
2470
+ s(`${Qe}-${Fe}-${Vt} ${Yt}:${Kt}`, ce);
2471
2471
  return;
2472
2472
  }
2473
- n(f, f);
2473
+ s(f, f);
2474
2474
  }
2475
2475
  }, R = (f) => {
2476
2476
  const V = new Date(N.getFullYear(), N.getMonth(), f), ee = E(V);
@@ -2481,7 +2481,7 @@ function xr(e) {
2481
2481
  }, ue = (f) => {
2482
2482
  const V = f.target.value;
2483
2483
  B(V), G(p, S, V);
2484
- }, be = () => {
2484
+ }, me = () => {
2485
2485
  if (!c) {
2486
2486
  if (p) {
2487
2487
  const [f, V] = p.split("-").map(Number);
@@ -2489,94 +2489,94 @@ function xr(e) {
2489
2489
  }
2490
2490
  k(!0);
2491
2491
  }
2492
- }, ge = Array.from({ length: 24 }, (f, V) => String(V).padStart(2, "0")), fe = Array.from({ length: 60 }, (f, V) => String(V).padStart(2, "0")), X = H(i, hr);
2492
+ }, be = Array.from({ length: 24 }, (f, V) => String(V).padStart(2, "0")), fe = Array.from({ length: 60 }, (f, V) => String(V).padStart(2, "0")), X = H(i, ha);
2493
2493
  typeof i == "string" && (X.input.tw = I(X.input.tw, X.root.tw), X.root.tw = "");
2494
- const J = b({
2494
+ const J = m({
2495
2495
  baseClassName: "relative inline-block",
2496
2496
  sxSlot: X.root
2497
- }), j = b({
2497
+ }), j = m({
2498
2498
  baseClassName: I(
2499
- "border border-[var(--border)] rounded-[var(--radius)] bg-[var(--card)] text-[var(--foreground)] placeholder:text-[var(--muted-foreground)] outline-none transition-all duration-200 cursor-pointer",
2500
- "focus:border-[var(--primary)] focus:shadow-[0_0_0_2px_color-mix(in_srgb,var(--primary)_18%,transparent)]",
2501
- "hover:border-[var(--primary)]",
2499
+ "border border-[var(--tango-border)] rounded-[var(--tango-radius)] bg-[var(--tango-card)] text-[var(--tango-foreground)] placeholder:text-[var(--tango-muted-foreground)] outline-none transition-all duration-200 cursor-pointer",
2500
+ "focus:border-[var(--tango-primary)] focus:shadow-[0_0_0_2px_color-mix(in_srgb,var(--tango-primary)_18%,transparent)]",
2501
+ "hover:border-[var(--tango-primary)]",
2502
2502
  O.inputPx,
2503
2503
  O.textSm,
2504
2504
  O.minW,
2505
- c && "bg-[var(--muted)] text-[var(--muted-foreground)] cursor-not-allowed"
2505
+ c && "bg-[var(--tango-muted)] text-[var(--tango-muted-foreground)] cursor-not-allowed"
2506
2506
  ),
2507
2507
  className: h,
2508
2508
  style: u,
2509
2509
  sxSlot: X.input
2510
- }), q = b({
2510
+ }), q = m({
2511
2511
  baseClassName: I(
2512
- "absolute top-[calc(100%+8px)] left-0 z-20 p-3 border border-[var(--border)] bg-[var(--card)] rounded-xl shadow-[0_8px_28px_rgba(0,0,0,0.12)]",
2512
+ "absolute top-[calc(100%+8px)] left-0 z-20 p-3 border border-[var(--tango-border)] bg-[var(--tango-card)] rounded-xl shadow-[0_8px_28px_rgba(0,0,0,0.12)]",
2513
2513
  O.panelW
2514
2514
  ),
2515
2515
  sxSlot: X.panel
2516
- }), le = b({
2516
+ }), le = m({
2517
2517
  baseClassName: "flex items-center justify-between h-10 mb-2",
2518
2518
  sxSlot: X.header
2519
- }), re = b({
2519
+ }), ae = m({
2520
2520
  baseClassName: "flex flex-wrap",
2521
2521
  sxSlot: X.body
2522
- }), ae = b({
2523
- baseClassName: "mt-2.5 pt-2.5 border-t border-[var(--border)]",
2522
+ }), ne = m({
2523
+ baseClassName: "mt-2.5 pt-2.5 border-t border-[var(--tango-border)]",
2524
2524
  sxSlot: X.footer
2525
2525
  });
2526
2526
  return /* @__PURE__ */ P("div", { className: J.className, style: J.style, ref: W, ...v, children: [
2527
- /* @__PURE__ */ s(
2527
+ /* @__PURE__ */ r(
2528
2528
  "input",
2529
2529
  {
2530
2530
  type: "text",
2531
2531
  value: U,
2532
2532
  readOnly: !0,
2533
- onClick: be,
2533
+ onClick: me,
2534
2534
  className: j.className,
2535
2535
  style: j.style,
2536
2536
  disabled: c,
2537
- placeholder: g || (l ? D.placeholderTime : D.placeholder),
2538
- "aria-label": v["aria-label"] || g || (l ? D.placeholderTime : D.placeholder),
2537
+ placeholder: b || (l ? D.placeholderTime : D.placeholder),
2538
+ "aria-label": v["aria-label"] || b || (l ? D.placeholderTime : D.placeholder),
2539
2539
  "aria-haspopup": "dialog",
2540
2540
  "aria-expanded": A
2541
2541
  }
2542
2542
  ),
2543
2543
  A && !c && /* @__PURE__ */ P("div", { className: q.className, style: q.style, role: "dialog", "aria-label": "日期选择面板", children: [
2544
2544
  /* @__PURE__ */ P("div", { className: le.className, style: le.style, children: [
2545
- /* @__PURE__ */ s(
2545
+ /* @__PURE__ */ r(
2546
2546
  "button",
2547
2547
  {
2548
2548
  type: "button",
2549
- className: "w-7 h-7 border border-[var(--border)] bg-[var(--card)] text-sm cursor-pointer rounded hover:border-[var(--primary)] hover:bg-[color-mix(in_srgb,var(--primary)_14%,var(--card))]",
2549
+ className: "w-7 h-7 border border-[var(--tango-border)] bg-[var(--tango-card)] text-sm cursor-pointer rounded hover:border-[var(--tango-primary)] hover:bg-[color-mix(in_srgb,var(--tango-primary)_14%,var(--tango-card))]",
2550
2550
  onClick: () => L(new Date(N.getFullYear(), N.getMonth() - 1, 1)),
2551
2551
  "aria-label": D.prevMonth,
2552
2552
  children: "<"
2553
2553
  }
2554
2554
  ),
2555
- /* @__PURE__ */ s("div", { className: "text-sm font-semibold text-[var(--foreground)]", children: $ }),
2556
- /* @__PURE__ */ s(
2555
+ /* @__PURE__ */ r("div", { className: "text-sm font-semibold text-[var(--tango-foreground)]", children: $ }),
2556
+ /* @__PURE__ */ r(
2557
2557
  "button",
2558
2558
  {
2559
2559
  type: "button",
2560
- className: "w-7 h-7 border border-[var(--border)] bg-[var(--card)] text-sm cursor-pointer rounded hover:border-[var(--primary)] hover:bg-[color-mix(in_srgb,var(--primary)_14%,var(--card))]",
2560
+ className: "w-7 h-7 border border-[var(--tango-border)] bg-[var(--tango-card)] text-sm cursor-pointer rounded hover:border-[var(--tango-primary)] hover:bg-[color-mix(in_srgb,var(--tango-primary)_14%,var(--tango-card))]",
2561
2561
  onClick: () => L(new Date(N.getFullYear(), N.getMonth() + 1, 1)),
2562
2562
  "aria-label": D.nextMonth,
2563
2563
  children: ">"
2564
2564
  }
2565
2565
  )
2566
2566
  ] }),
2567
- /* @__PURE__ */ P("div", { className: re.className, style: re.style, children: [
2568
- D.weekDays.map((f) => /* @__PURE__ */ s("div", { className: "w-[calc(100%/7)] text-center leading-[30px] text-xs text-[var(--muted-foreground)]", children: f }, f)),
2567
+ /* @__PURE__ */ P("div", { className: ae.className, style: ae.style, children: [
2568
+ D.weekDays.map((f) => /* @__PURE__ */ r("div", { className: "w-[calc(100%/7)] text-center leading-[30px] text-xs text-[var(--tango-muted-foreground)]", children: f }, f)),
2569
2569
  z.map((f, V) => {
2570
2570
  if (!f)
2571
- return /* @__PURE__ */ s("div", { className: "w-[calc(100%/7)] text-center leading-[30px]" }, `empty-${V}`);
2571
+ return /* @__PURE__ */ r("div", { className: "w-[calc(100%/7)] text-center leading-[30px]" }, `empty-${V}`);
2572
2572
  const ee = K(f);
2573
- return /* @__PURE__ */ s(
2573
+ return /* @__PURE__ */ r(
2574
2574
  "button",
2575
2575
  {
2576
2576
  type: "button",
2577
2577
  className: I(
2578
- "w-[calc(100%/7)] text-center leading-[30px] border-none bg-transparent cursor-pointer rounded-md text-[13px] text-[var(--foreground)] hover:bg-[var(--muted)]",
2579
- ee && "bg-[var(--primary)] text-[var(--primary-foreground)] hover:bg-[var(--primary)]"
2578
+ "w-[calc(100%/7)] text-center leading-[30px] border-none bg-transparent cursor-pointer rounded-md text-[13px] text-[var(--tango-foreground)] hover:bg-[var(--tango-muted)]",
2579
+ ee && "bg-[var(--tango-primary)] text-[var(--tango-primary-foreground)] hover:bg-[var(--tango-primary)]"
2580
2580
  ),
2581
2581
  onClick: () => R(f),
2582
2582
  "aria-label": `${N.getFullYear()}-${(N.getMonth() + 1).toString().padStart(2, "0")}-${f.toString().padStart(2, "0")}`,
@@ -2586,33 +2586,33 @@ function xr(e) {
2586
2586
  );
2587
2587
  })
2588
2588
  ] }),
2589
- l && /* @__PURE__ */ P("div", { className: ae.className, style: ae.style, children: [
2590
- /* @__PURE__ */ s("div", { className: "text-xs text-[var(--muted-foreground)] mb-2", children: D.timeLabel }),
2589
+ l && /* @__PURE__ */ P("div", { className: ne.className, style: ne.style, children: [
2590
+ /* @__PURE__ */ r("div", { className: "text-xs text-[var(--tango-muted-foreground)] mb-2", children: D.timeLabel }),
2591
2591
  /* @__PURE__ */ P("div", { className: "flex items-center gap-2", children: [
2592
- /* @__PURE__ */ s(
2592
+ /* @__PURE__ */ r(
2593
2593
  "select",
2594
2594
  {
2595
- className: "w-20 h-8 border border-[var(--border)] rounded-md px-2 text-[13px] outline-none bg-[var(--card)] text-[var(--foreground)] focus:border-[var(--primary)]",
2595
+ className: "w-20 h-8 border border-[var(--tango-border)] rounded-md px-2 text-[13px] outline-none bg-[var(--tango-card)] text-[var(--tango-foreground)] focus:border-[var(--tango-primary)]",
2596
2596
  value: S,
2597
2597
  onChange: Q,
2598
2598
  "aria-label": "小时",
2599
- children: ge.map((f) => /* @__PURE__ */ s("option", { value: f, children: f }, f))
2599
+ children: be.map((f) => /* @__PURE__ */ r("option", { value: f, children: f }, f))
2600
2600
  }
2601
2601
  ),
2602
- /* @__PURE__ */ s("span", { className: "font-semibold text-[var(--muted-foreground)]", children: ":" }),
2603
- /* @__PURE__ */ s(
2602
+ /* @__PURE__ */ r("span", { className: "font-semibold text-[var(--tango-muted-foreground)]", children: ":" }),
2603
+ /* @__PURE__ */ r(
2604
2604
  "select",
2605
2605
  {
2606
- className: "w-20 h-8 border border-[var(--border)] rounded-md px-2 text-[13px] outline-none bg-[var(--card)] text-[var(--foreground)] focus:border-[var(--primary)]",
2606
+ className: "w-20 h-8 border border-[var(--tango-border)] rounded-md px-2 text-[13px] outline-none bg-[var(--tango-card)] text-[var(--tango-foreground)] focus:border-[var(--tango-primary)]",
2607
2607
  value: M,
2608
2608
  onChange: ue,
2609
2609
  "aria-label": "分钟",
2610
- children: fe.map((f) => /* @__PURE__ */ s("option", { value: f, children: f }, f))
2610
+ children: fe.map((f) => /* @__PURE__ */ r("option", { value: f, children: f }, f))
2611
2611
  }
2612
2612
  )
2613
2613
  ] }),
2614
2614
  /* @__PURE__ */ P("div", { className: "mt-2.5 flex justify-end gap-2", children: [
2615
- /* @__PURE__ */ s(
2615
+ /* @__PURE__ */ r(
2616
2616
  ie,
2617
2617
  {
2618
2618
  onClick: () => k(!1),
@@ -2620,21 +2620,21 @@ function xr(e) {
2620
2620
  type: "transparent",
2621
2621
  outline: !0,
2622
2622
  style: {
2623
- backgroundColor: "var(--datepicker-cancel-bg)",
2624
- color: "var(--datepicker-cancel-fg)"
2623
+ backgroundColor: "var(--tango-datepicker-cancel-bg)",
2624
+ color: "var(--tango-datepicker-cancel-fg)"
2625
2625
  },
2626
2626
  children: D.cancel
2627
2627
  }
2628
2628
  ),
2629
- /* @__PURE__ */ s(
2629
+ /* @__PURE__ */ r(
2630
2630
  ie,
2631
2631
  {
2632
2632
  onClick: () => k(!1),
2633
2633
  size: "small",
2634
2634
  style: {
2635
- backgroundColor: "var(--datepicker-confirm-bg)",
2636
- color: "var(--datepicker-confirm-fg)",
2637
- borderColor: "var(--datepicker-confirm-bg)"
2635
+ backgroundColor: "var(--tango-datepicker-confirm-bg)",
2636
+ color: "var(--tango-datepicker-confirm-fg)",
2637
+ borderColor: "var(--tango-datepicker-confirm-bg)"
2638
2638
  },
2639
2639
  children: D.confirm
2640
2640
  }
@@ -2644,7 +2644,7 @@ function xr(e) {
2644
2644
  ] })
2645
2645
  ] });
2646
2646
  }
2647
- xr.propTypes = {
2647
+ xa.propTypes = {
2648
2648
  value: t.string,
2649
2649
  defaultValue: t.string,
2650
2650
  onChange: t.func,
@@ -2657,44 +2657,44 @@ xr.propTypes = {
2657
2657
  i18nKey: t.string,
2658
2658
  localeText: t.object
2659
2659
  };
2660
- const vr = ["overlay", "container", "header", "title", "closeBtn", "content", "footer"], _e = {
2660
+ const va = ["overlay", "container", "header", "title", "closeBtn", "content", "footer"], _e = {
2661
2661
  title: "基础标题",
2662
2662
  okText: "确定",
2663
2663
  cancelText: "取消",
2664
2664
  closeAriaLabel: "关闭"
2665
- }, Sr = { right: "right", left: "left", top: "top", bottom: "bottom" }, Nr = {
2665
+ }, Sa = { right: "right", left: "left", top: "top", bottom: "bottom" }, Na = {
2666
2666
  right: "right-0 top-0 h-full",
2667
2667
  left: "left-0 top-0 h-full",
2668
2668
  top: "top-0 left-0 w-full",
2669
2669
  bottom: "bottom-0 left-0 w-full"
2670
- }, wr = {
2670
+ }, wa = {
2671
2671
  right: "translateX(100%)",
2672
2672
  left: "translateX(-100%)",
2673
2673
  top: "translateY(-100%)",
2674
2674
  bottom: "translateY(100%)"
2675
- }, Cr = (e, o, r) => Object.prototype.hasOwnProperty.call(r, e) ? e : o;
2676
- function Tr(e) {
2675
+ }, Ca = (e, o, a) => Object.prototype.hasOwnProperty.call(a, e) ? e : o;
2676
+ function Ta(e) {
2677
2677
  const {
2678
2678
  children: o,
2679
- title: r,
2680
- okText: n,
2679
+ title: a,
2680
+ okText: s,
2681
2681
  cancelText: c,
2682
2682
  open: l = !1,
2683
- onClose: a = () => {
2683
+ onClose: n = () => {
2684
2684
  },
2685
2685
  onOk: i,
2686
2686
  type: u = "right",
2687
2687
  width: h,
2688
- height: m,
2688
+ height: g,
2689
2689
  sx: d = {},
2690
- style: g = {},
2690
+ style: b = {},
2691
2691
  className: v = "",
2692
2692
  maskClosable: w = !0,
2693
2693
  footerButtons: C,
2694
2694
  localeText: F = {},
2695
2695
  ...O
2696
- } = e, { t: y } = de(), x = Cr(u, "right", Sr), [T, p] = Z(!1), [S, _] = Z(!1);
2697
- se(() => {
2696
+ } = e, { t: y } = de(), x = Ca(u, "right", Sa), [T, p] = Z(!1), [S, _] = Z(!1);
2697
+ re(() => {
2698
2698
  if (l) {
2699
2699
  p(!0);
2700
2700
  const R = setTimeout(() => _(!0), 30);
@@ -2705,7 +2705,7 @@ function Tr(e) {
2705
2705
  const R = setTimeout(() => p(!1), 300);
2706
2706
  return () => clearTimeout(R);
2707
2707
  }
2708
- }, [l]), se(() => {
2708
+ }, [l]), re(() => {
2709
2709
  if (T) {
2710
2710
  const R = parseInt(document.body.dataset.tangoScrollLock || "0", 10);
2711
2711
  return R === 0 && (document.body.dataset.tangoOriginalOverflow = document.body.style.overflow), document.body.dataset.tangoScrollLock = String(R + 1), document.body.style.overflow = "hidden", () => {
@@ -2715,53 +2715,53 @@ function Tr(e) {
2715
2715
  }
2716
2716
  }, [T]);
2717
2717
  const M = {};
2718
- x === "left" || x === "right" ? M.width = h || "320px" : M.height = m || "300px";
2718
+ x === "left" || x === "right" ? M.width = h || "320px" : M.height = g || "300px";
2719
2719
  const B = {
2720
- title: r ?? y("drawer.title", _e.title),
2721
- okText: n ?? y("drawer.okText", _e.okText),
2720
+ title: a ?? y("drawer.title", _e.title),
2721
+ okText: s ?? y("drawer.okText", _e.okText),
2722
2722
  cancelText: c ?? y("drawer.cancelText", _e.cancelText),
2723
2723
  closeAriaLabel: y("drawer.closeAriaLabel", _e.closeAriaLabel),
2724
2724
  ...F
2725
- }, A = H(d, vr), k = b({
2725
+ }, A = H(d, va), k = m({
2726
2726
  baseClassName: "fixed inset-0 z-[999] flex",
2727
2727
  sxSlot: A.overlay
2728
2728
  }), N = {
2729
2729
  tw: I(A.root.tw, A.container.tw),
2730
2730
  css: { ...A.root.css, ...A.container.css }
2731
- }, L = b({
2731
+ }, L = m({
2732
2732
  baseClassName: I(
2733
- "fixed bg-[var(--card)] text-[var(--foreground)] flex flex-col transition-all duration-300 ease-in-out",
2734
- Nr[x]
2733
+ "fixed bg-[var(--tango-card)] text-[var(--tango-foreground)] flex flex-col transition-all duration-300 ease-in-out",
2734
+ Na[x]
2735
2735
  ),
2736
2736
  className: v,
2737
2737
  style: {
2738
2738
  ...M,
2739
- transform: S ? "translate(0, 0)" : wr[x],
2740
- ...g
2739
+ transform: S ? "translate(0, 0)" : wa[x],
2740
+ ...b
2741
2741
  },
2742
2742
  sxSlot: N
2743
- }), W = b({
2743
+ }), W = m({
2744
2744
  baseClassName: "flex items-center justify-between px-5 pt-5 pb-3 shrink-0",
2745
2745
  sxSlot: A.header
2746
- }), D = b({
2747
- baseClassName: "text-lg font-bold text-[var(--foreground)]",
2746
+ }), D = m({
2747
+ baseClassName: "text-lg font-bold text-[var(--tango-foreground)]",
2748
2748
  sxSlot: A.title
2749
- }), E = b({
2750
- baseClassName: "cursor-pointer p-1 rounded-md hover:bg-[var(--muted)] transition-colors text-[var(--muted-foreground)]",
2749
+ }), E = m({
2750
+ baseClassName: "cursor-pointer p-1 rounded-md hover:bg-[var(--tango-muted)] transition-colors text-[var(--tango-muted-foreground)]",
2751
2751
  sxSlot: A.closeBtn
2752
- }), $ = b({
2753
- baseClassName: "flex-1 overflow-auto overscroll-contain px-5 py-2 text-[var(--foreground)]",
2752
+ }), $ = m({
2753
+ baseClassName: "flex-1 overflow-auto overscroll-contain px-5 py-2 text-[var(--tango-foreground)]",
2754
2754
  sxSlot: A.content
2755
- }), z = b({
2756
- baseClassName: "flex justify-end gap-2 px-5 py-4 border-t border-[var(--border)] shrink-0",
2755
+ }), z = m({
2756
+ baseClassName: "flex justify-end gap-2 px-5 py-4 border-t border-[var(--tango-border)] shrink-0",
2757
2757
  sxSlot: A.footer
2758
2758
  }), U = (R) => {
2759
- w && R.target === R.currentTarget && a();
2760
- }, K = /* @__PURE__ */ s("svg", { viewBox: "0 0 1024 1024", width: "20", height: "20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ s("path", { d: "M512 466.944l233.472-233.472a31.744 31.744 0 0 1 45.056 45.056L557.056 512l233.472 233.472a31.744 31.744 0 0 1-45.056 45.056L512 557.056l-233.472 233.472a31.744 31.744 0 0 1-45.056-45.056L466.944 512 233.472 278.528a31.744 31.744 0 0 1 45.056-45.056z" }) }), G = C != null && C.length ? C : [
2761
- { key: "cancel", text: B.cancelText, onClick: a },
2762
- { key: "ok", text: B.okText, onClick: i || a }
2759
+ w && R.target === R.currentTarget && n();
2760
+ }, K = /* @__PURE__ */ r("svg", { viewBox: "0 0 1024 1024", width: "20", height: "20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ r("path", { d: "M512 466.944l233.472-233.472a31.744 31.744 0 0 1 45.056 45.056L557.056 512l233.472 233.472a31.744 31.744 0 0 1-45.056 45.056L512 557.056l-233.472 233.472a31.744 31.744 0 0 1-45.056-45.056L466.944 512 233.472 278.528a31.744 31.744 0 0 1 45.056-45.056z" }) }), G = C != null && C.length ? C : [
2761
+ { key: "cancel", text: B.cancelText, onClick: n },
2762
+ { key: "ok", text: B.okText, onClick: i || n }
2763
2763
  ];
2764
- return T ? /* @__PURE__ */ s(
2764
+ return T ? /* @__PURE__ */ r(
2765
2765
  "div",
2766
2766
  {
2767
2767
  className: k.className,
@@ -2778,27 +2778,27 @@ function Tr(e) {
2778
2778
  ...O,
2779
2779
  children: /* @__PURE__ */ P("div", { className: L.className, style: L.style, children: [
2780
2780
  /* @__PURE__ */ P("div", { className: W.className, style: W.style, children: [
2781
- /* @__PURE__ */ s("h3", { className: D.className, style: D.style, children: B.title }),
2782
- /* @__PURE__ */ s(
2781
+ /* @__PURE__ */ r("h3", { className: D.className, style: D.style, children: B.title }),
2782
+ /* @__PURE__ */ r(
2783
2783
  "div",
2784
2784
  {
2785
2785
  className: E.className,
2786
2786
  style: E.style,
2787
- onClick: a,
2787
+ onClick: n,
2788
2788
  role: "button",
2789
2789
  tabIndex: 0,
2790
2790
  "aria-label": B.closeAriaLabel,
2791
2791
  onKeyDown: (R) => {
2792
- (R.key === "Enter" || R.key === " ") && a();
2792
+ (R.key === "Enter" || R.key === " ") && n();
2793
2793
  },
2794
2794
  children: K
2795
2795
  }
2796
2796
  )
2797
2797
  ] }),
2798
- /* @__PURE__ */ s("div", { className: $.className, style: $.style, children: o }),
2799
- /* @__PURE__ */ s("div", { className: z.className, style: z.style, children: G.map((R) => {
2798
+ /* @__PURE__ */ r("div", { className: $.className, style: $.style, children: o }),
2799
+ /* @__PURE__ */ r("div", { className: z.className, style: z.style, children: G.map((R) => {
2800
2800
  const Q = R.key === "ok";
2801
- return /* @__PURE__ */ s(
2801
+ return /* @__PURE__ */ r(
2802
2802
  ie,
2803
2803
  {
2804
2804
  onClick: R.onClick,
@@ -2806,12 +2806,12 @@ function Tr(e) {
2806
2806
  outline: !Q,
2807
2807
  size: "medium",
2808
2808
  style: Q ? {
2809
- backgroundColor: "var(--drawer-ok-bg)",
2810
- color: "var(--drawer-ok-fg)",
2811
- borderColor: "var(--drawer-ok-bg)"
2809
+ backgroundColor: "var(--tango-drawer-ok-bg)",
2810
+ color: "var(--tango-drawer-ok-fg)",
2811
+ borderColor: "var(--tango-drawer-ok-bg)"
2812
2812
  } : {
2813
- backgroundColor: "var(--drawer-cancel-bg)",
2814
- color: "var(--drawer-cancel-fg)"
2813
+ backgroundColor: "var(--tango-drawer-cancel-bg)",
2814
+ color: "var(--tango-drawer-cancel-fg)"
2815
2815
  },
2816
2816
  children: R.text
2817
2817
  },
@@ -2822,7 +2822,7 @@ function Tr(e) {
2822
2822
  }
2823
2823
  ) : null;
2824
2824
  }
2825
- Tr.propTypes = {
2825
+ Ta.propTypes = {
2826
2826
  children: t.node,
2827
2827
  title: t.string,
2828
2828
  okText: t.string,
@@ -2846,21 +2846,21 @@ Tr.propTypes = {
2846
2846
  ),
2847
2847
  localeText: t.object
2848
2848
  };
2849
- const kr = ["root", "text"], wt = {
2849
+ const ka = ["root", "text"], wt = {
2850
2850
  small: "my-0.5",
2851
2851
  medium: "my-1.5",
2852
2852
  large: "my-2.5",
2853
2853
  huge: "my-4"
2854
2854
  };
2855
- function Lr(e, o) {
2855
+ function La(e, o) {
2856
2856
  const {
2857
- sx: r = {},
2858
- style: n = {},
2857
+ sx: a = {},
2858
+ style: s = {},
2859
2859
  className: c = "",
2860
2860
  size: l = "medium",
2861
- children: a,
2861
+ children: n,
2862
2862
  ...i
2863
- } = e, u = H(r, kr), h = wt[l] || wt.medium, m = !!a, d = b({
2863
+ } = e, u = H(a, ka), h = wt[l] || wt.medium, g = !!n, d = m({
2864
2864
  baseClassName: I(
2865
2865
  "flex items-center justify-center relative w-full",
2866
2866
  h
@@ -2868,8 +2868,8 @@ function Lr(e, o) {
2868
2868
  className: c,
2869
2869
  sxSlot: u.root,
2870
2870
  baseStyle: {},
2871
- style: n
2872
- }), g = b({
2871
+ style: s
2872
+ }), b = m({
2873
2873
  baseClassName: "px-2 whitespace-nowrap z-[1]",
2874
2874
  sxSlot: u.text
2875
2875
  });
@@ -2886,17 +2886,17 @@ function Lr(e, o) {
2886
2886
  style: { ...d.style, display: "flex", alignItems: "center", justifyContent: "center" },
2887
2887
  ...i,
2888
2888
  children: [
2889
- /* @__PURE__ */ s(
2889
+ /* @__PURE__ */ r(
2890
2890
  "span",
2891
2891
  {
2892
- className: `flex-1 h-px bg-[var(--line-color)] ${m ? "mr-2.5" : ""}`
2892
+ className: `flex-1 h-px bg-[var(--tango-line-color)] ${g ? "mr-2.5" : ""}`
2893
2893
  }
2894
2894
  ),
2895
- m && /* @__PURE__ */ s("span", { className: g.className, style: g.style, children: a }),
2896
- /* @__PURE__ */ s(
2895
+ g && /* @__PURE__ */ r("span", { className: b.className, style: b.style, children: n }),
2896
+ /* @__PURE__ */ r(
2897
2897
  "span",
2898
2898
  {
2899
- className: `flex-1 h-px bg-[var(--line-color)] ${m ? "ml-2.5" : ""}`
2899
+ className: `flex-1 h-px bg-[var(--tango-line-color)] ${g ? "ml-2.5" : ""}`
2900
2900
  }
2901
2901
  )
2902
2902
  ]
@@ -2904,7 +2904,7 @@ function Lr(e, o) {
2904
2904
  )
2905
2905
  );
2906
2906
  }
2907
- const Bt = te.forwardRef(Lr);
2907
+ const Bt = te.forwardRef(La);
2908
2908
  Bt.displayName = "Line";
2909
2909
  Bt.propTypes = {
2910
2910
  size: t.oneOf(["small", "medium", "large", "huge"]),
@@ -2913,34 +2913,34 @@ Bt.propTypes = {
2913
2913
  className: t.string,
2914
2914
  children: t.node
2915
2915
  };
2916
- const Pr = ["root"], Ct = {
2917
- default: "bg-[var(--mark-default-bg)]",
2918
- primary: "bg-[var(--mark-primary-bg)]",
2919
- success: "bg-[var(--mark-success-bg)]",
2920
- warning: "bg-[var(--mark-warning-bg)]",
2921
- danger: "bg-[var(--mark-danger-bg)]"
2916
+ const Pa = ["root"], Ct = {
2917
+ default: "bg-[var(--tango-mark-default-bg)]",
2918
+ primary: "bg-[var(--tango-mark-primary-bg)]",
2919
+ success: "bg-[var(--tango-mark-success-bg)]",
2920
+ warning: "bg-[var(--tango-mark-warning-bg)]",
2921
+ danger: "bg-[var(--tango-mark-danger-bg)]"
2922
2922
  };
2923
- function Or(e, o) {
2923
+ function Oa(e, o) {
2924
2924
  const {
2925
- sx: r = {},
2926
- style: n = {},
2925
+ sx: a = {},
2926
+ style: s = {},
2927
2927
  className: c = "",
2928
2928
  color: l = "default",
2929
- beauty: a = !1,
2929
+ beauty: n = !1,
2930
2930
  children: i,
2931
2931
  ...u
2932
- } = e, h = H(r, Pr), m = Ct[l] || Ct.default, d = b({
2932
+ } = e, h = H(a, Pa), g = Ct[l] || Ct.default, d = m({
2933
2933
  baseClassName: I(
2934
2934
  "inline-block",
2935
- m,
2936
- a ? "px-2 py-1 rounded" : ""
2935
+ g,
2936
+ n ? "px-2 py-1 rounded" : ""
2937
2937
  ),
2938
2938
  className: c,
2939
2939
  sxSlot: h.root,
2940
2940
  baseStyle: {},
2941
- style: n
2941
+ style: s
2942
2942
  });
2943
- return /* @__PURE__ */ s(
2943
+ return /* @__PURE__ */ r(
2944
2944
  "mark",
2945
2945
  {
2946
2946
  ref: o,
@@ -2951,7 +2951,7 @@ function Or(e, o) {
2951
2951
  }
2952
2952
  );
2953
2953
  }
2954
- const It = te.forwardRef(Or);
2954
+ const It = te.forwardRef(Oa);
2955
2955
  It.displayName = "Mark";
2956
2956
  It.propTypes = {
2957
2957
  color: t.oneOf(["default", "primary", "success", "warning", "danger"]),
@@ -2961,32 +2961,32 @@ It.propTypes = {
2961
2961
  className: t.string,
2962
2962
  children: t.node
2963
2963
  };
2964
- const _r = ["overlay", "container", "header", "title", "closeBtn", "content", "footer"], Ae = {
2964
+ const _a = ["overlay", "container", "header", "title", "closeBtn", "content", "footer"], Ae = {
2965
2965
  title: "基础标题",
2966
2966
  okText: "确定",
2967
2967
  cancelText: "取消",
2968
2968
  closeAriaLabel: "关闭"
2969
2969
  };
2970
- function Ar(e) {
2970
+ function Aa(e) {
2971
2971
  const {
2972
2972
  children: o,
2973
- title: r,
2974
- okText: n,
2973
+ title: a,
2974
+ okText: s,
2975
2975
  cancelText: c,
2976
2976
  open: l = !1,
2977
- onClose: a = () => {
2977
+ onClose: n = () => {
2978
2978
  },
2979
2979
  onOk: i,
2980
2980
  width: u,
2981
2981
  sx: h = {},
2982
- style: m = {},
2982
+ style: g = {},
2983
2983
  className: d = "",
2984
- maskClosable: g = !0,
2984
+ maskClosable: b = !0,
2985
2985
  footerButtons: v,
2986
2986
  localeText: w = {},
2987
2987
  ...C
2988
2988
  } = e, { t: F } = de(), [O, y] = Z(!1), [x, T] = Z(!1);
2989
- se(() => {
2989
+ re(() => {
2990
2990
  if (l) {
2991
2991
  y(!0);
2992
2992
  const z = setTimeout(() => T(!0), 30);
@@ -2997,7 +2997,7 @@ function Ar(e) {
2997
2997
  const z = setTimeout(() => y(!1), 300);
2998
2998
  return () => clearTimeout(z);
2999
2999
  }
3000
- }, [l]), se(() => {
3000
+ }, [l]), re(() => {
3001
3001
  if (O) {
3002
3002
  const z = parseInt(document.body.dataset.tangoScrollLock || "0", 10);
3003
3003
  return z === 0 && (document.body.dataset.tangoOriginalOverflow = document.body.style.overflow), document.body.dataset.tangoScrollLock = String(z + 1), document.body.style.overflow = "hidden", () => {
@@ -3007,19 +3007,19 @@ function Ar(e) {
3007
3007
  }
3008
3008
  }, [O]);
3009
3009
  const p = {
3010
- title: r ?? F("modal.title", Ae.title),
3011
- okText: n ?? F("modal.okText", Ae.okText),
3010
+ title: a ?? F("modal.title", Ae.title),
3011
+ okText: s ?? F("modal.okText", Ae.okText),
3012
3012
  cancelText: c ?? F("modal.cancelText", Ae.cancelText),
3013
3013
  closeAriaLabel: F("modal.closeAriaLabel", Ae.closeAriaLabel),
3014
3014
  ...w
3015
- }, S = H(h, _r), _ = b({
3015
+ }, S = H(h, _a), _ = m({
3016
3016
  baseClassName: "fixed inset-0 z-[999] flex justify-center items-center",
3017
3017
  sxSlot: S.overlay
3018
3018
  }), M = {
3019
3019
  tw: I(S.root.tw, S.container.tw),
3020
3020
  css: { ...S.root.css, ...S.container.css }
3021
- }, B = b({
3022
- baseClassName: "bg-[var(--modal-bg)] text-[var(--foreground)] flex flex-col rounded-[var(--radius)] shadow-[var(--modal-shadow)] transition-all duration-300 ease-in-out",
3021
+ }, B = m({
3022
+ baseClassName: "bg-[var(--tango-modal-bg)] text-[var(--tango-foreground)] flex flex-col rounded-[var(--tango-radius)] shadow-[var(--tango-modal-shadow)] transition-all duration-300 ease-in-out",
3023
3023
  className: d,
3024
3024
  style: {
3025
3025
  width: u || "520px",
@@ -3028,31 +3028,31 @@ function Ar(e) {
3028
3028
  maxHeight: "80vh",
3029
3029
  transform: x ? "scale(1)" : "scale(0.8)",
3030
3030
  opacity: x ? 1 : 0,
3031
- ...m
3031
+ ...g
3032
3032
  },
3033
3033
  sxSlot: M
3034
- }), A = b({
3034
+ }), A = m({
3035
3035
  baseClassName: "flex items-center justify-between px-5 pt-5 pb-3 shrink-0",
3036
3036
  sxSlot: S.header
3037
- }), k = b({
3038
- baseClassName: "text-lg font-bold text-[var(--foreground)]",
3037
+ }), k = m({
3038
+ baseClassName: "text-lg font-bold text-[var(--tango-foreground)]",
3039
3039
  sxSlot: S.title
3040
- }), N = b({
3041
- baseClassName: "cursor-pointer p-1 rounded-md hover:bg-[var(--muted)] transition-colors text-[var(--muted-foreground)]",
3040
+ }), N = m({
3041
+ baseClassName: "cursor-pointer p-1 rounded-md hover:bg-[var(--tango-muted)] transition-colors text-[var(--tango-muted-foreground)]",
3042
3042
  sxSlot: S.closeBtn
3043
- }), L = b({
3044
- baseClassName: "flex-1 overflow-auto overscroll-contain px-6 py-5 text-[var(--foreground)]",
3043
+ }), L = m({
3044
+ baseClassName: "flex-1 overflow-auto overscroll-contain px-6 py-5 text-[var(--tango-foreground)]",
3045
3045
  sxSlot: S.content
3046
- }), W = b({
3047
- baseClassName: "flex justify-end gap-2 px-5 py-4 border-t border-[var(--border)] shrink-0",
3046
+ }), W = m({
3047
+ baseClassName: "flex justify-end gap-2 px-5 py-4 border-t border-[var(--tango-border)] shrink-0",
3048
3048
  sxSlot: S.footer
3049
3049
  }), D = (z) => {
3050
- g && z.target === z.currentTarget && a();
3051
- }, E = /* @__PURE__ */ s("svg", { viewBox: "0 0 1024 1024", width: "20", height: "20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ s("path", { d: "M512 466.944l233.472-233.472a31.744 31.744 0 0 1 45.056 45.056L557.056 512l233.472 233.472a31.744 31.744 0 0 1-45.056 45.056L512 557.056l-233.472 233.472a31.744 31.744 0 0 1-45.056-45.056L466.944 512 233.472 278.528a31.744 31.744 0 0 1 45.056-45.056z" }) }), $ = v != null && v.length ? v : [
3052
- { key: "cancel", text: p.cancelText, onClick: a },
3053
- { key: "ok", text: p.okText, onClick: i || a }
3050
+ b && z.target === z.currentTarget && n();
3051
+ }, E = /* @__PURE__ */ r("svg", { viewBox: "0 0 1024 1024", width: "20", height: "20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ r("path", { d: "M512 466.944l233.472-233.472a31.744 31.744 0 0 1 45.056 45.056L557.056 512l233.472 233.472a31.744 31.744 0 0 1-45.056 45.056L512 557.056l-233.472 233.472a31.744 31.744 0 0 1-45.056-45.056L466.944 512 233.472 278.528a31.744 31.744 0 0 1 45.056-45.056z" }) }), $ = v != null && v.length ? v : [
3052
+ { key: "cancel", text: p.cancelText, onClick: n },
3053
+ { key: "ok", text: p.okText, onClick: i || n }
3054
3054
  ];
3055
- return O ? /* @__PURE__ */ s(
3055
+ return O ? /* @__PURE__ */ r(
3056
3056
  "div",
3057
3057
  {
3058
3058
  className: _.className,
@@ -3069,27 +3069,27 @@ function Ar(e) {
3069
3069
  ...C,
3070
3070
  children: /* @__PURE__ */ P("div", { className: B.className, style: B.style, children: [
3071
3071
  /* @__PURE__ */ P("div", { className: A.className, style: A.style, children: [
3072
- /* @__PURE__ */ s("h3", { className: k.className, style: k.style, children: p.title }),
3073
- /* @__PURE__ */ s(
3072
+ /* @__PURE__ */ r("h3", { className: k.className, style: k.style, children: p.title }),
3073
+ /* @__PURE__ */ r(
3074
3074
  "div",
3075
3075
  {
3076
3076
  className: N.className,
3077
3077
  style: N.style,
3078
- onClick: a,
3078
+ onClick: n,
3079
3079
  role: "button",
3080
3080
  tabIndex: 0,
3081
3081
  "aria-label": p.closeAriaLabel,
3082
3082
  onKeyDown: (z) => {
3083
- (z.key === "Enter" || z.key === " ") && a();
3083
+ (z.key === "Enter" || z.key === " ") && n();
3084
3084
  },
3085
3085
  children: E
3086
3086
  }
3087
3087
  )
3088
3088
  ] }),
3089
- /* @__PURE__ */ s("div", { className: L.className, style: L.style, children: o }),
3090
- /* @__PURE__ */ s("div", { className: W.className, style: W.style, children: $.map((z) => {
3089
+ /* @__PURE__ */ r("div", { className: L.className, style: L.style, children: o }),
3090
+ /* @__PURE__ */ r("div", { className: W.className, style: W.style, children: $.map((z) => {
3091
3091
  const U = z.key === "ok";
3092
- return /* @__PURE__ */ s(
3092
+ return /* @__PURE__ */ r(
3093
3093
  ie,
3094
3094
  {
3095
3095
  onClick: z.onClick,
@@ -3097,12 +3097,12 @@ function Ar(e) {
3097
3097
  outline: !U,
3098
3098
  size: "medium",
3099
3099
  style: U ? {
3100
- backgroundColor: "var(--modal-ok-bg)",
3101
- color: "var(--modal-ok-fg)",
3102
- borderColor: "var(--modal-ok-bg)"
3100
+ backgroundColor: "var(--tango-modal-ok-bg)",
3101
+ color: "var(--tango-modal-ok-fg)",
3102
+ borderColor: "var(--tango-modal-ok-bg)"
3103
3103
  } : {
3104
- backgroundColor: "var(--modal-cancel-bg)",
3105
- color: "var(--modal-cancel-fg)"
3104
+ backgroundColor: "var(--tango-modal-cancel-bg)",
3105
+ color: "var(--tango-modal-cancel-fg)"
3106
3106
  },
3107
3107
  children: z.text
3108
3108
  },
@@ -3113,7 +3113,7 @@ function Ar(e) {
3113
3113
  }
3114
3114
  ) : null;
3115
3115
  }
3116
- Ar.propTypes = {
3116
+ Aa.propTypes = {
3117
3117
  children: t.node,
3118
3118
  title: t.string,
3119
3119
  okText: t.string,
@@ -3135,17 +3135,17 @@ Ar.propTypes = {
3135
3135
  ),
3136
3136
  localeText: t.object
3137
3137
  };
3138
- const Mr = ["root", "input", "button"], zr = {
3138
+ const Ma = ["root", "input", "button"], za = {
3139
3139
  small: "small",
3140
3140
  medium: "medium",
3141
3141
  large: "large",
3142
3142
  huge: "huge"
3143
- }, Er = {
3143
+ }, Ea = {
3144
3144
  small: "h-8 text-xs pl-2.5 pr-20",
3145
3145
  medium: "h-10 text-sm pl-3 pr-24",
3146
3146
  large: "h-12 text-base pl-3.5 pr-28",
3147
3147
  huge: "h-14 text-lg pl-4 pr-32"
3148
- }, $r = {
3148
+ }, $a = {
3149
3149
  small: "small",
3150
3150
  medium: "small",
3151
3151
  large: "medium",
@@ -3153,39 +3153,39 @@ const Mr = ["root", "input", "button"], zr = {
3153
3153
  }, Tt = {
3154
3154
  placeholder: "请输入内容",
3155
3155
  btnText: "搜索"
3156
- }, Br = (e, o, r) => Object.prototype.hasOwnProperty.call(r, e) ? e : o;
3157
- function Ir(e) {
3156
+ }, Ba = (e, o, a) => Object.prototype.hasOwnProperty.call(a, e) ? e : o;
3157
+ function Ia(e) {
3158
3158
  const {
3159
3159
  size: o = "medium",
3160
- sx: r = {},
3161
- style: n = {},
3160
+ sx: a = {},
3161
+ style: s = {},
3162
3162
  className: c = "",
3163
3163
  onSearch: l,
3164
- onChange: a,
3164
+ onChange: n,
3165
3165
  value: i,
3166
3166
  defaultValue: u,
3167
3167
  disabled: h = !1,
3168
- placeholder: m,
3168
+ placeholder: g,
3169
3169
  btnText: d,
3170
- localeText: g,
3170
+ localeText: b,
3171
3171
  path: v = "",
3172
3172
  ...w
3173
- } = e, { t: C } = de(), F = ke(null), O = Br(o, "medium", zr), y = i !== void 0, x = C("search.placeholder", Tt.placeholder), T = C("search.btnText", Tt.btnText), p = m ?? (g == null ? void 0 : g.placeholder) ?? x, S = d ?? (g == null ? void 0 : g.btnText) ?? T, _ = H(r, Mr), M = {
3173
+ } = e, { t: C } = de(), F = ke(null), O = Ba(o, "medium", za), y = i !== void 0, x = C("search.placeholder", Tt.placeholder), T = C("search.btnText", Tt.btnText), p = g ?? (b == null ? void 0 : b.placeholder) ?? x, S = d ?? (b == null ? void 0 : b.btnText) ?? T, _ = H(a, Ma), M = {
3174
3174
  tw: I(_.root.tw, _.input.tw),
3175
3175
  css: { ..._.root.css, ..._.input.css }
3176
3176
  }, B = I("relative inline-flex", _.root.tw), A = I(
3177
- "w-[300px] rounded-[var(--radius)] border bg-[var(--input-bg)] text-[var(--foreground)] outline-none transition-all duration-200 ease-in-out",
3178
- "border-[var(--border)] shadow-[var(--input-shadow)]",
3179
- "hover:border-[var(--input-accent)]",
3180
- "focus:border-[var(--input-accent)] focus:shadow-[var(--input-focus-shadow)]",
3181
- h && "bg-[var(--muted)] text-[var(--muted-foreground)] border-[var(--muted)] cursor-not-allowed shadow-none hover:border-[var(--muted)] focus:shadow-none",
3182
- Er[O]
3183
- ), k = b({
3177
+ "w-[300px] rounded-[var(--tango-radius)] border bg-[var(--tango-input-bg)] text-[var(--tango-foreground)] outline-none transition-all duration-200 ease-in-out",
3178
+ "border-[var(--tango-border)] shadow-[var(--tango-input-shadow)]",
3179
+ "hover:border-[var(--tango-input-accent)]",
3180
+ "focus:border-[var(--tango-input-accent)] focus:shadow-[var(--tango-input-focus-shadow)]",
3181
+ h && "bg-[var(--tango-muted)] text-[var(--tango-muted-foreground)] border-[var(--tango-muted)] cursor-not-allowed shadow-none hover:border-[var(--tango-muted)] focus:shadow-none",
3182
+ Ea[O]
3183
+ ), k = m({
3184
3184
  baseClassName: A,
3185
3185
  className: c,
3186
- style: n,
3186
+ style: s,
3187
3187
  sxSlot: M
3188
- }), N = b({
3188
+ }), N = m({
3189
3189
  baseClassName: "absolute top-1/2 -translate-y-1/2",
3190
3190
  sxSlot: _.button,
3191
3191
  style: { right: "calc(var(--spacing) * 2)" }
@@ -3202,14 +3202,14 @@ function Ir(e) {
3202
3202
  z.key === "Enter" && E();
3203
3203
  }, [E]);
3204
3204
  return /* @__PURE__ */ P("div", { className: B, children: [
3205
- /* @__PURE__ */ s(
3205
+ /* @__PURE__ */ r(
3206
3206
  "input",
3207
3207
  {
3208
3208
  ref: y ? void 0 : F,
3209
3209
  className: k.className,
3210
3210
  style: k.style,
3211
3211
  onKeyDown: $,
3212
- onChange: a,
3212
+ onChange: n,
3213
3213
  value: y ? i : void 0,
3214
3214
  defaultValue: y ? void 0 : u ?? "",
3215
3215
  disabled: h || void 0,
@@ -3220,15 +3220,15 @@ function Ir(e) {
3220
3220
  ...w
3221
3221
  }
3222
3222
  ),
3223
- /* @__PURE__ */ s("div", { className: N.className, style: L, children: /* @__PURE__ */ s(
3223
+ /* @__PURE__ */ r("div", { className: N.className, style: L, children: /* @__PURE__ */ r(
3224
3224
  ie,
3225
3225
  {
3226
3226
  onClick: E,
3227
- size: $r[O],
3227
+ size: $a[O],
3228
3228
  disabled: h,
3229
3229
  "aria-label": S,
3230
3230
  style: W,
3231
- children: v ? /* @__PURE__ */ s(
3231
+ children: v ? /* @__PURE__ */ r(
3232
3232
  "img",
3233
3233
  {
3234
3234
  src: v,
@@ -3240,7 +3240,7 @@ function Ir(e) {
3240
3240
  ) })
3241
3241
  ] });
3242
3242
  }
3243
- Ir.propTypes = {
3243
+ Ia.propTypes = {
3244
3244
  size: t.oneOf(["small", "medium", "large", "huge"]),
3245
3245
  sx: t.oneOfType([t.object, t.string]),
3246
3246
  style: t.object,
@@ -3265,19 +3265,19 @@ const jt = {
3265
3265
  inlineFlex: "inline-flex",
3266
3266
  grid: "grid",
3267
3267
  circle: "block rounded-full",
3268
- triangle: "block w-0 h-0 border-l-[var(--space-triangle-size)] border-r-[var(--space-triangle-size)] border-b-[calc(var(--space-triangle-size)*2)] border-l-transparent border-r-transparent border-b-[var(--space-triangle-color)]",
3268
+ triangle: "block w-0 h-0 border-l-[var(--tango-space-triangle-size)] border-r-[var(--tango-space-triangle-size)] border-b-[calc(var(--tango-space-triangle-size)*2)] border-l-transparent border-r-transparent border-b-[var(--tango-space-triangle-color)]",
3269
3269
  halfCircle: "block rounded-t-full rounded-b-none",
3270
3270
  fixed: "block fixed",
3271
3271
  absolute: "block absolute",
3272
3272
  relative: "block relative"
3273
- }, Ft = Object.keys(jt), jr = ["root"];
3274
- function Fr(e, o) {
3273
+ }, Ft = Object.keys(jt), ja = ["root"];
3274
+ function Fa(e, o) {
3275
3275
  const {
3276
- sx: r = {},
3277
- style: n = {},
3276
+ sx: a = {},
3277
+ style: s = {},
3278
3278
  className: c = "",
3279
3279
  type: l = "default",
3280
- children: a,
3280
+ children: n,
3281
3281
  /* 其余全部透传给 div(事件、data-*、aria-* 等) */
3282
3282
  /**
3283
3283
  *
@@ -3289,26 +3289,26 @@ function Fr(e, o) {
3289
3289
  *
3290
3290
  */
3291
3291
  ...i
3292
- } = e, u = Ft.includes(l) ? l : "default", h = H(r, jr), m = b({
3292
+ } = e, u = Ft.includes(l) ? l : "default", h = H(a, ja), g = m({
3293
3293
  baseClassName: jt[u],
3294
3294
  className: c,
3295
3295
  sxSlot: h.root
3296
- }), d = u === "halfCircle" ? { width: "var(--space-half-circle-w)", height: "var(--space-half-circle-h)", background: "var(--space-half-circle-color)" } : {};
3296
+ }), d = u === "halfCircle" ? { width: "var(--tango-space-half-circle-w)", height: "var(--tango-space-half-circle-h)", background: "var(--tango-space-half-circle-color)" } : {};
3297
3297
  return (
3298
3298
  // 这里直接透传给原生div,用户用起来就像使用普通 div 一样,dom也是div
3299
- /* @__PURE__ */ s(
3299
+ /* @__PURE__ */ r(
3300
3300
  "div",
3301
3301
  {
3302
3302
  ref: o,
3303
- className: m.className,
3304
- style: { ...d, ...m.style, ...n },
3303
+ className: g.className,
3304
+ style: { ...d, ...g.style, ...s },
3305
3305
  ...i,
3306
- children: a
3306
+ children: n
3307
3307
  }
3308
3308
  )
3309
3309
  );
3310
3310
  }
3311
- const Dt = te.forwardRef(Fr);
3311
+ const Dt = te.forwardRef(Fa);
3312
3312
  Dt.propTypes = {
3313
3313
  type: t.oneOf(Ft),
3314
3314
  sx: t.oneOfType([t.string, t.object]),
@@ -3317,34 +3317,34 @@ Dt.propTypes = {
3317
3317
  children: t.node
3318
3318
  };
3319
3319
  Dt.displayName = "Space";
3320
- const Dr = ["root", "wrapper", "thead", "headerCell", "body", "row", "cell", "empty", "pagination"], ve = {
3320
+ const Da = ["root", "wrapper", "thead", "headerCell", "body", "row", "cell", "empty", "pagination"], ve = {
3321
3321
  empty: "暂无数据",
3322
3322
  prev: "上一页",
3323
3323
  next: "下一页",
3324
3324
  page: "页",
3325
3325
  total: "共 {total} 条",
3326
3326
  perPage: "条/页"
3327
- }, Rr = 10, Vr = [10, 20, 50, 100], Me = (e, ...o) => typeof e == "function" ? e(...o) : e ?? {};
3328
- function Yr(e) {
3327
+ }, Ra = 10, Va = [10, 20, 50, 100], Me = (e, ...o) => typeof e == "function" ? e(...o) : e ?? {};
3328
+ function Ya(e) {
3329
3329
  const {
3330
3330
  dataSource: o = [],
3331
- columns: r = [],
3331
+ columns: a = [],
3332
3332
  /* sx / 样式 */
3333
- sx: n = {},
3333
+ sx: s = {},
3334
3334
  style: c = {},
3335
3335
  className: l = "",
3336
3336
  /* 分页 */
3337
- pagination: a = null,
3337
+ pagination: n = null,
3338
3338
  /* 隐藏列 */
3339
3339
  hide: i = [],
3340
3340
  /* 行回调 */
3341
3341
  rowClassName: u,
3342
3342
  rowStyle: h,
3343
3343
  /* 单元格回调 */
3344
- cellClassName: m,
3344
+ cellClassName: g,
3345
3345
  cellStyle: d,
3346
3346
  /* hover */
3347
- hoverColor: g = "",
3347
+ hoverColor: b = "",
3348
3348
  /* i18n */
3349
3349
  i18nKey: v = null,
3350
3350
  localeText: w = {},
@@ -3352,7 +3352,7 @@ function Yr(e) {
3352
3352
  "aria-label": C,
3353
3353
  ...F
3354
3354
  } = e, { t: O } = de();
3355
- o.length === 0 && r.length === 0 && console.warn("[Tango Table] dataSource 和 columns 不能同时为空,请至少提供一项。");
3355
+ o.length === 0 && a.length === 0 && console.warn("[Tango Table] dataSource 和 columns 不能同时为空,请至少提供一项。");
3356
3356
  const y = {
3357
3357
  empty: O("table.empty", ve.empty),
3358
3358
  prev: O("table.prev", ve.prev),
@@ -3362,19 +3362,19 @@ function Yr(e) {
3362
3362
  perPage: O("table.perPage", ve.perPage),
3363
3363
  ...w
3364
3364
  }, x = Array.isArray(i) ? i : typeof i == "string" ? [i] : [], T = Se(
3365
- () => r.filter((J) => !J.hide && !x.includes(J.dataIndex)),
3366
- [r, x]
3367
- ), p = a !== null && a !== !1, S = a && a.placement || "bottom", _ = a && a.pageSize || Rr, M = a && a.pageSizeOptions || Vr, B = (a == null ? void 0 : a.showTotal) !== !1, A = (a == null ? void 0 : a.showSizeChanger) !== !1, [k, N] = Z(1), [L, W] = Z(_), D = o.length, E = Math.max(1, Math.ceil(D / L)), $ = Math.min(k, E), z = Se(() => {
3365
+ () => a.filter((J) => !J.hide && !x.includes(J.dataIndex)),
3366
+ [a, x]
3367
+ ), p = n !== null && n !== !1, S = n && n.placement || "bottom", _ = n && n.pageSize || Ra, M = n && n.pageSizeOptions || Va, B = (n == null ? void 0 : n.showTotal) !== !1, A = (n == null ? void 0 : n.showSizeChanger) !== !1, [k, N] = Z(1), [L, W] = Z(_), D = o.length, E = Math.max(1, Math.ceil(D / L)), $ = Math.min(k, E), z = Se(() => {
3368
3368
  if (!p) return o;
3369
3369
  const J = ($ - 1) * L;
3370
3370
  return o.slice(J, J + L);
3371
3371
  }, [o, $, L, p]), U = oe(
3372
3372
  (J) => N(Math.max(1, Math.min(J, E))),
3373
3373
  [E]
3374
- ), K = H(n, Dr), G = b({
3374
+ ), K = H(s, Da), G = m({
3375
3375
  baseClassName: I(
3376
- "w-full overflow-x-auto rounded-xl border border-[var(--border)]",
3377
- "shadow-[0_0_20px_color-mix(in_oklch,var(--foreground)_8%,transparent)]"
3376
+ "w-full overflow-x-auto rounded-xl border border-[var(--tango-border)]",
3377
+ "shadow-[0_0_20px_color-mix(in_oklch,var(--tango-foreground)_8%,transparent)]"
3378
3378
  ),
3379
3379
  className: l,
3380
3380
  style: c,
@@ -3382,38 +3382,38 @@ function Yr(e) {
3382
3382
  tw: I(K.root.tw, K.wrapper.tw),
3383
3383
  css: { ...K.root.css, ...K.wrapper.css }
3384
3384
  }
3385
- }), R = b({
3386
- baseClassName: "bg-[var(--primary)] text-[var(--primary-foreground)] sticky top-0 z-10",
3385
+ }), R = m({
3386
+ baseClassName: "bg-[var(--tango-primary)] text-[var(--tango-primary-foreground)] sticky top-0 z-10",
3387
3387
  sxSlot: K.thead
3388
- }), Q = b({
3389
- baseClassName: "text-[var(--foreground)]",
3388
+ }), Q = m({
3389
+ baseClassName: "text-[var(--tango-foreground)]",
3390
3390
  sxSlot: K.body
3391
- }), ue = b({
3392
- baseClassName: "text-[var(--muted-foreground)] py-16 text-center",
3391
+ }), ue = m({
3392
+ baseClassName: "text-[var(--tango-muted-foreground)] py-16 text-center",
3393
3393
  sxSlot: K.empty
3394
- }), be = b({
3395
- baseClassName: "flex items-center justify-between px-4 py-3 text-sm text-[var(--muted-foreground)] border-t border-[var(--border)]",
3394
+ }), me = m({
3395
+ baseClassName: "flex items-center justify-between px-4 py-3 text-sm text-[var(--tango-muted-foreground)] border-t border-[var(--tango-border)]",
3396
3396
  sxSlot: K.pagination
3397
- }), ge = g ? /* @__PURE__ */ s("style", { children: `
3397
+ }), be = b ? /* @__PURE__ */ r("style", { children: `
3398
3398
  [data-tango-table-body] tr:hover {
3399
- background-color: ${g} !important;
3399
+ background-color: ${b} !important;
3400
3400
  transform: translateY(-1px);
3401
- box-shadow: 0 2px 8px color-mix(in oklch, var(--foreground) 5%, transparent);
3401
+ box-shadow: 0 2px 8px color-mix(in oklch, var(--tango-foreground) 5%, transparent);
3402
3402
  }
3403
3403
  ` }) : null, fe = () => {
3404
3404
  if (!p) return null;
3405
3405
  const J = Array.from({ length: E }, (j, q) => q + 1);
3406
- return /* @__PURE__ */ P("div", { className: be.className, style: be.style, children: [
3406
+ return /* @__PURE__ */ P("div", { className: me.className, style: me.style, children: [
3407
3407
  /* @__PURE__ */ P("div", { className: "flex items-center gap-3", children: [
3408
- B && /* @__PURE__ */ s("span", { children: y.total.replace("{total}", String(D)) }),
3409
- A && /* @__PURE__ */ s(
3408
+ B && /* @__PURE__ */ r("span", { children: y.total.replace("{total}", String(D)) }),
3409
+ A && /* @__PURE__ */ r(
3410
3410
  "select",
3411
3411
  {
3412
3412
  value: L,
3413
3413
  onChange: (j) => {
3414
3414
  W(Number(j.target.value)), N(1);
3415
3415
  },
3416
- className: "rounded border border-[var(--border)] bg-[var(--background)] px-2 py-1 text-sm cursor-pointer",
3416
+ className: "rounded border border-[var(--tango-border)] bg-[var(--tango-background)] px-2 py-1 text-sm cursor-pointer",
3417
3417
  "aria-label": y.perPage,
3418
3418
  children: M.map((j) => /* @__PURE__ */ P("option", { value: j, children: [
3419
3419
  j,
@@ -3424,68 +3424,68 @@ function Yr(e) {
3424
3424
  )
3425
3425
  ] }),
3426
3426
  /* @__PURE__ */ P("div", { className: "flex items-center gap-1", children: [
3427
- /* @__PURE__ */ s(
3427
+ /* @__PURE__ */ r(
3428
3428
  "button",
3429
3429
  {
3430
3430
  type: "button",
3431
3431
  onClick: () => U($ - 1),
3432
3432
  disabled: $ <= 1,
3433
- className: "px-2 py-1 rounded border border-[var(--border)] text-xs disabled:opacity-40 disabled:cursor-not-allowed hover:bg-[var(--accent)] transition-colors",
3433
+ className: "px-2 py-1 rounded border border-[var(--tango-border)] text-xs disabled:opacity-40 disabled:cursor-not-allowed hover:bg-[var(--tango-accent)] transition-colors",
3434
3434
  "aria-label": y.prev,
3435
3435
  children: y.prev
3436
3436
  }
3437
3437
  ),
3438
- J.length <= 7 ? J.map((j) => /* @__PURE__ */ s(
3438
+ J.length <= 7 ? J.map((j) => /* @__PURE__ */ r(
3439
3439
  "button",
3440
3440
  {
3441
3441
  type: "button",
3442
3442
  onClick: () => U(j),
3443
- className: `min-w-[28px] px-2 py-1 rounded text-xs transition-colors ${j === $ ? "bg-[var(--primary)] text-[var(--primary-foreground)] font-medium" : "border border-[var(--border)] hover:bg-[var(--accent)]"}`,
3443
+ className: `min-w-[28px] px-2 py-1 rounded text-xs transition-colors ${j === $ ? "bg-[var(--tango-primary)] text-[var(--tango-primary-foreground)] font-medium" : "border border-[var(--tango-border)] hover:bg-[var(--tango-accent)]"}`,
3444
3444
  children: j
3445
3445
  },
3446
3446
  j
3447
3447
  )) : /* @__PURE__ */ P(Ne, { children: [
3448
- /* @__PURE__ */ s(
3448
+ /* @__PURE__ */ r(
3449
3449
  "button",
3450
3450
  {
3451
3451
  type: "button",
3452
3452
  onClick: () => U(1),
3453
- className: `min-w-[28px] px-2 py-1 rounded text-xs ${$ === 1 ? "bg-[var(--primary)] text-[var(--primary-foreground)] font-medium" : "border border-[var(--border)] hover:bg-[var(--accent)]"} transition-colors`,
3453
+ className: `min-w-[28px] px-2 py-1 rounded text-xs ${$ === 1 ? "bg-[var(--tango-primary)] text-[var(--tango-primary-foreground)] font-medium" : "border border-[var(--tango-border)] hover:bg-[var(--tango-accent)]"} transition-colors`,
3454
3454
  children: "1"
3455
3455
  }
3456
3456
  ),
3457
- $ > 3 && /* @__PURE__ */ s("span", { className: "px-1 text-xs", children: "…" }),
3457
+ $ > 3 && /* @__PURE__ */ r("span", { className: "px-1 text-xs", children: "…" }),
3458
3458
  Array.from(
3459
3459
  { length: E },
3460
3460
  (j, q) => q + 1
3461
- ).filter((j) => j > 1 && j < E && Math.abs(j - $) <= 1).map((j) => /* @__PURE__ */ s(
3461
+ ).filter((j) => j > 1 && j < E && Math.abs(j - $) <= 1).map((j) => /* @__PURE__ */ r(
3462
3462
  "button",
3463
3463
  {
3464
3464
  type: "button",
3465
3465
  onClick: () => U(j),
3466
- className: `min-w-[28px] px-2 py-1 rounded text-xs ${j === $ ? "bg-[var(--primary)] text-[var(--primary-foreground)] font-medium" : "border border-[var(--border)] hover:bg-[var(--accent)]"} transition-colors`,
3466
+ className: `min-w-[28px] px-2 py-1 rounded text-xs ${j === $ ? "bg-[var(--tango-primary)] text-[var(--tango-primary-foreground)] font-medium" : "border border-[var(--tango-border)] hover:bg-[var(--tango-accent)]"} transition-colors`,
3467
3467
  children: j
3468
3468
  },
3469
3469
  j
3470
3470
  )),
3471
- $ < E - 2 && /* @__PURE__ */ s("span", { className: "px-1 text-xs", children: "…" }),
3472
- /* @__PURE__ */ s(
3471
+ $ < E - 2 && /* @__PURE__ */ r("span", { className: "px-1 text-xs", children: "…" }),
3472
+ /* @__PURE__ */ r(
3473
3473
  "button",
3474
3474
  {
3475
3475
  type: "button",
3476
3476
  onClick: () => U(E),
3477
- className: `min-w-[28px] px-2 py-1 rounded text-xs ${$ === E ? "bg-[var(--primary)] text-[var(--primary-foreground)] font-medium" : "border border-[var(--border)] hover:bg-[var(--accent)]"} transition-colors`,
3477
+ className: `min-w-[28px] px-2 py-1 rounded text-xs ${$ === E ? "bg-[var(--tango-primary)] text-[var(--tango-primary-foreground)] font-medium" : "border border-[var(--tango-border)] hover:bg-[var(--tango-accent)]"} transition-colors`,
3478
3478
  children: E
3479
3479
  }
3480
3480
  )
3481
3481
  ] }),
3482
- /* @__PURE__ */ s(
3482
+ /* @__PURE__ */ r(
3483
3483
  "button",
3484
3484
  {
3485
3485
  type: "button",
3486
3486
  onClick: () => U($ + 1),
3487
3487
  disabled: $ >= E,
3488
- className: "px-2 py-1 rounded border border-[var(--border)] text-xs disabled:opacity-40 disabled:cursor-not-allowed hover:bg-[var(--accent)] transition-colors",
3488
+ className: "px-2 py-1 rounded border border-[var(--tango-border)] text-xs disabled:opacity-40 disabled:cursor-not-allowed hover:bg-[var(--tango-accent)] transition-colors",
3489
3489
  "aria-label": y.next,
3490
3490
  children: y.next
3491
3491
  }
@@ -3493,10 +3493,10 @@ function Yr(e) {
3493
3493
  ] })
3494
3494
  ] });
3495
3495
  }, X = (J) => /* @__PURE__ */ P("div", { className: G.className, style: G.style, children: [
3496
- ge,
3496
+ be,
3497
3497
  /* @__PURE__ */ P("table", { className: "w-full border-collapse separate border-spacing-0 text-sm", role: "table", children: [
3498
- /* @__PURE__ */ s("thead", { className: R.className, style: R.style, children: /* @__PURE__ */ s("tr", { children: T.map((j) => {
3499
- const q = b({
3498
+ /* @__PURE__ */ r("thead", { className: R.className, style: R.style, children: /* @__PURE__ */ r("tr", { children: T.map((j) => {
3499
+ const q = m({
3500
3500
  baseClassName: I(
3501
3501
  "px-5 py-4 text-left font-semibold tracking-wide relative",
3502
3502
  K.headerCell.tw
@@ -3506,34 +3506,34 @@ function Yr(e) {
3506
3506
  });
3507
3507
  return /* @__PURE__ */ P("th", { className: q.className, style: q.style, children: [
3508
3508
  j.title,
3509
- /* @__PURE__ */ s("span", { className: "absolute right-0 top-[20%] h-[60%] w-px bg-[var(--primary-foreground)]/15 last:hidden" })
3509
+ /* @__PURE__ */ r("span", { className: "absolute right-0 top-[20%] h-[60%] w-px bg-[var(--tango-primary-foreground)]/15 last:hidden" })
3510
3510
  ] }, j.key || j.dataIndex);
3511
3511
  }) }) }),
3512
- /* @__PURE__ */ s("tbody", { className: Q.className, style: Q.style, "data-tango-table-body": !0, children: J.length === 0 ? /* @__PURE__ */ s("tr", { children: /* @__PURE__ */ s("td", { colSpan: T.length, className: ue.className, style: ue.style, children: y.empty }) }) : J.map((j, q) => {
3513
- const le = q % 2 === 0 ? "even" : "odd", re = I(
3512
+ /* @__PURE__ */ r("tbody", { className: Q.className, style: Q.style, "data-tango-table-body": !0, children: J.length === 0 ? /* @__PURE__ */ r("tr", { children: /* @__PURE__ */ r("td", { colSpan: T.length, className: ue.className, style: ue.style, children: y.empty }) }) : J.map((j, q) => {
3513
+ const le = q % 2 === 0 ? "even" : "odd", ae = I(
3514
3514
  "transition-all duration-200",
3515
- le === "even" ? "bg-[color-mix(in_oklch,var(--table-hover)_6%,transparent)]" : "",
3516
- "hover:bg-[color-mix(in_oklch,var(--table-hover)_20%,transparent)]",
3515
+ le === "even" ? "bg-[color-mix(in_oklch,var(--tango-table-hover)_6%,transparent)]" : "",
3516
+ "hover:bg-[color-mix(in_oklch,var(--tango-table-hover)_20%,transparent)]",
3517
3517
  K.row.tw,
3518
3518
  Me(u, j, q, le)
3519
- ), ae = {
3519
+ ), ne = {
3520
3520
  ...Me(h, j, q, le),
3521
3521
  ...K.row.css
3522
3522
  };
3523
- return /* @__PURE__ */ s("tr", { className: re, style: ae, children: T.map((f, V) => {
3523
+ return /* @__PURE__ */ r("tr", { className: ae, style: ne, children: T.map((f, V) => {
3524
3524
  const ee = V % 2 === 0 ? "even" : "odd", ce = I(
3525
3525
  "px-5 py-3.5 text-left relative",
3526
- "border-b border-[color-mix(in_oklch,var(--foreground)_5%,transparent)]",
3526
+ "border-b border-[color-mix(in_oklch,var(--tango-foreground)_5%,transparent)]",
3527
3527
  K.cell.tw,
3528
- Me(m, j, f, q, V, le, ee)
3528
+ Me(g, j, f, q, V, le, ee)
3529
3529
  ), pe = {
3530
3530
  ...f.width ? { width: f.width } : {},
3531
3531
  ...Me(d, j, f, q, V, le, ee),
3532
3532
  ...K.cell.css
3533
3533
  };
3534
3534
  return /* @__PURE__ */ P("td", { className: ce, style: pe, children: [
3535
- /* @__PURE__ */ s("div", { className: "flex items-center min-h-5", children: f.render ? f.render(j[f.dataIndex], j, q) : j[f.dataIndex] }),
3536
- /* @__PURE__ */ s("span", { className: "absolute right-0 top-[20%] h-[60%] w-px bg-[color-mix(in_oklch,var(--foreground)_4%,transparent)] last:hidden" })
3535
+ /* @__PURE__ */ r("div", { className: "flex items-center min-h-5", children: f.render ? f.render(j[f.dataIndex], j, q) : j[f.dataIndex] }),
3536
+ /* @__PURE__ */ r("span", { className: "absolute right-0 top-[20%] h-[60%] w-px bg-[color-mix(in_oklch,var(--tango-foreground)_4%,transparent)] last:hidden" })
3537
3537
  ] }, f.key || f.dataIndex || V);
3538
3538
  }) }, j.key || q);
3539
3539
  }) })
@@ -3545,7 +3545,7 @@ function Yr(e) {
3545
3545
  p && S === "bottom" && fe()
3546
3546
  ] });
3547
3547
  }
3548
- Yr.propTypes = {
3548
+ Ya.propTypes = {
3549
3549
  dataSource: t.array,
3550
3550
  columns: t.arrayOf(
3551
3551
  t.shape({
@@ -3582,56 +3582,56 @@ Yr.propTypes = {
3582
3582
  i18nKey: t.string,
3583
3583
  localeText: t.object
3584
3584
  };
3585
- const Kr = ["root", "tooltip"], kt = {
3585
+ const Ka = ["root", "tooltip"], kt = {
3586
3586
  top: "bottom-full left-1/2 -translate-x-1/2 mb-2",
3587
3587
  bottom: "top-full left-1/2 -translate-x-1/2 mt-2",
3588
3588
  left: "right-full top-1/2 -translate-y-1/2 mr-2",
3589
3589
  right: "left-full top-1/2 -translate-y-1/2 ml-2"
3590
- }, Wr = {
3590
+ }, Wa = {
3591
3591
  top: { bottom: "-5px", left: "50%", marginLeft: "-5px", transform: "rotate(45deg)" },
3592
3592
  bottom: { top: "-5px", left: "50%", marginLeft: "-5px", transform: "rotate(45deg)" },
3593
3593
  left: { right: "-5px", top: "50%", marginTop: "-5px", transform: "rotate(45deg)" },
3594
3594
  right: { left: "-5px", top: "50%", marginTop: "-5px", transform: "rotate(45deg)" }
3595
3595
  };
3596
- function Ur(e, o) {
3596
+ function Ua(e, o) {
3597
3597
  const {
3598
- children: r,
3599
- title: n,
3598
+ children: a,
3599
+ title: s,
3600
3600
  placement: c = "top",
3601
3601
  open: l,
3602
- defaultOpen: a = !1,
3602
+ defaultOpen: n = !1,
3603
3603
  onOpenChange: i,
3604
3604
  disabled: u = !1,
3605
3605
  sx: h = {},
3606
- style: m = {},
3606
+ style: g = {},
3607
3607
  className: d = "",
3608
- onMouseEnter: g,
3608
+ onMouseEnter: b,
3609
3609
  onMouseLeave: v,
3610
3610
  onFocus: w,
3611
3611
  onBlur: C,
3612
3612
  ...F
3613
- } = e, [O, y] = Z(a), x = l !== void 0, T = x ? l : O, p = oe((L) => {
3613
+ } = e, [O, y] = Z(n), x = l !== void 0, T = x ? l : O, p = oe((L) => {
3614
3614
  x || y(L), i == null || i(L);
3615
- }, [x, i]), S = kt[c] ? c : "top", _ = H(h, Kr), M = b({
3615
+ }, [x, i]), S = kt[c] ? c : "top", _ = H(h, Ka), M = m({
3616
3616
  baseClassName: "relative inline-flex",
3617
3617
  sxSlot: _.root
3618
- }), B = b({
3618
+ }), B = m({
3619
3619
  baseClassName: I(
3620
3620
  "absolute z-50 whitespace-nowrap px-3 py-1.5 text-sm",
3621
- "bg-[var(--tooltip-background)] text-[var(--tooltip-foreground)]",
3622
- "shadow-[var(--tooltip-shadow)]",
3621
+ "bg-[var(--tango-tooltip-background)] text-[var(--tango-tooltip-foreground)]",
3622
+ "shadow-[var(--tango-tooltip-shadow)]",
3623
3623
  kt[S]
3624
3624
  ),
3625
3625
  className: d,
3626
- baseStyle: { borderRadius: "var(--tooltip-radius)" },
3626
+ baseStyle: { borderRadius: "var(--tango-tooltip-radius)" },
3627
3627
  sxSlot: _.tooltip,
3628
- style: m
3628
+ style: g
3629
3629
  }), A = {
3630
3630
  position: "absolute",
3631
3631
  width: "10px",
3632
3632
  height: "10px",
3633
3633
  backgroundColor: "inherit",
3634
- ...Wr[S]
3634
+ ...Wa[S]
3635
3635
  }, k = () => !u && p(!0), N = () => !u && p(!1);
3636
3636
  return /* @__PURE__ */ P(
3637
3637
  "div",
@@ -3640,7 +3640,7 @@ function Ur(e, o) {
3640
3640
  className: M.className,
3641
3641
  style: M.style,
3642
3642
  onMouseEnter: (L) => {
3643
- k(), g == null || g(L);
3643
+ k(), b == null || b(L);
3644
3644
  },
3645
3645
  onMouseLeave: (L) => {
3646
3646
  N(), v == null || v(L);
@@ -3653,16 +3653,16 @@ function Ur(e, o) {
3653
3653
  },
3654
3654
  ...F,
3655
3655
  children: [
3656
- r,
3657
- T && n && /* @__PURE__ */ P("div", { role: "tooltip", className: B.className, style: B.style, children: [
3658
- /* @__PURE__ */ s("span", { style: { position: "relative", zIndex: 1 }, children: n }),
3659
- /* @__PURE__ */ s("span", { style: A })
3656
+ a,
3657
+ T && s && /* @__PURE__ */ P("div", { role: "tooltip", className: B.className, style: B.style, children: [
3658
+ /* @__PURE__ */ r("span", { style: { position: "relative", zIndex: 1 }, children: s }),
3659
+ /* @__PURE__ */ r("span", { style: A })
3660
3660
  ] })
3661
3661
  ]
3662
3662
  }
3663
3663
  );
3664
3664
  }
3665
- const Rt = te.forwardRef(Ur);
3665
+ const Rt = te.forwardRef(Ua);
3666
3666
  Rt.displayName = "Tooltip";
3667
3667
  Rt.propTypes = {
3668
3668
  children: t.node,
@@ -3682,54 +3682,54 @@ Rt.propTypes = {
3682
3682
  };
3683
3683
  ie.MaterialButton = Ge;
3684
3684
  qe.MaterialInput = Xe;
3685
- ne.Header = Xo;
3686
- ne.Footer = qo;
3687
- ne.Sider = Jo;
3688
- ne.Content = Qo;
3689
- ne.Toc = er;
3685
+ se.Header = Xo;
3686
+ se.Footer = qo;
3687
+ se.Sider = Jo;
3688
+ se.Content = Qo;
3689
+ se.Toc = ea;
3690
3690
  export {
3691
- sr as Banner,
3691
+ ra as Banner,
3692
3692
  ie as Button,
3693
- dr as ColorPicker,
3693
+ da as ColorPicker,
3694
3694
  Qo as Content,
3695
- fr as DateDisplay,
3696
- xr as DatePicker,
3697
- Tr as Drawer,
3695
+ fa as DateDisplay,
3696
+ xa as DatePicker,
3697
+ Ta as Drawer,
3698
3698
  qo as Footer,
3699
3699
  Xo as Header,
3700
3700
  qe as Input,
3701
- ne as Layout,
3701
+ se as Layout,
3702
3702
  Bt as Line,
3703
3703
  It as Mark,
3704
3704
  Ge as MaterialButton,
3705
3705
  Xe as MaterialInput,
3706
- Ar as Modal,
3706
+ Aa as Modal,
3707
3707
  Ze as Notice,
3708
- es as NoticeProvider,
3709
- Ir as Search,
3708
+ er as NoticeProvider,
3709
+ Ia as Search,
3710
3710
  Jo as Sider,
3711
3711
  Dt as Space,
3712
- Yr as Table,
3713
- sr as TangoBanner,
3714
- dr as TangoColorPicker,
3715
- fr as TangoDate,
3716
- xr as TangoDatePicker,
3717
- Tr as TangoDrawer,
3718
- os as TangoI18nProvider,
3719
- Ar as TangoModal,
3712
+ Ya as Table,
3713
+ ra as TangoBanner,
3714
+ da as TangoColorPicker,
3715
+ fa as TangoDate,
3716
+ xa as TangoDatePicker,
3717
+ Ta as TangoDrawer,
3718
+ or as TangoI18nProvider,
3719
+ Aa as TangoModal,
3720
3720
  Ze as TangoNotice,
3721
- Ir as TangoSearch,
3721
+ Ia as TangoSearch,
3722
3722
  Rt as TangoTooltip,
3723
- Jr as ThemeProvider,
3724
- er as Toc,
3723
+ Ja as ThemeProvider,
3724
+ ea as Toc,
3725
3725
  Rt as Tooltip,
3726
3726
  Je as Upload,
3727
- b as createSlotProps,
3727
+ m as createSlotProps,
3728
3728
  I as mergeTwClassNames,
3729
3729
  H as normalizeSxSlots,
3730
3730
  Ee as normalizeTangoLocale,
3731
- ts as useNotice,
3731
+ tr as useNotice,
3732
3732
  de as useTangoI18n,
3733
3733
  ze as useTangoStyle,
3734
- Qr as useTheme
3734
+ Qa as useTheme
3735
3735
  };