@q1travel/design-system 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import { jsxs as i, jsx as e, Fragment as F } from "react/jsx-runtime";
2
2
  import { forwardRef as Ee, createElement as he, createContext as Ie, useContext as Se, useState as E, useRef as I, useCallback as J, useEffect as B, useLayoutEffect as G, useMemo as fe, useId as W, isValidElement as ke, Fragment as we, cloneElement as Ve } from "react";
3
3
  import { createPortal as Xe } from "react-dom";
4
- const Ze = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ae = (...t) => t.filter((n, r, a) => !!n && n.trim() !== "" && a.indexOf(n) === r).join(" ").trim();
4
+ const Ze = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Te = (...t) => t.filter((n, r, a) => !!n && n.trim() !== "" && a.indexOf(n) === r).join(" ").trim();
5
5
  var Qe = {
6
6
  xmlns: "http://www.w3.org/2000/svg",
7
7
  width: 24,
@@ -32,7 +32,7 @@ const Je = Ee(
32
32
  height: n,
33
33
  stroke: t,
34
34
  strokeWidth: a ? Number(r) * 24 / Number(n) : r,
35
- className: Ae("lucide", l),
35
+ className: Te("lucide", l),
36
36
  ...u
37
37
  },
38
38
  [
@@ -41,80 +41,80 @@ const Je = Ee(
41
41
  ]
42
42
  )
43
43
  );
44
- const A = (t, n) => {
44
+ const T = (t, n) => {
45
45
  const r = Ee(
46
46
  ({ className: a, ...l }, s) => he(Je, {
47
47
  ref: s,
48
48
  iconNode: n,
49
- className: Ae(`lucide-${Ze(t)}`, a),
49
+ className: Te(`lucide-${Ze(t)}`, a),
50
50
  ...l
51
51
  })
52
52
  );
53
53
  return r.displayName = `${t}`, r;
54
54
  };
55
- const et = A("ArrowLeft", [
55
+ const et = T("ArrowLeft", [
56
56
  ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
57
57
  ["path", { d: "M19 12H5", key: "x3x0zl" }]
58
58
  ]);
59
- const Te = A("ArrowRight", [
59
+ const Ae = T("ArrowRight", [
60
60
  ["path", { d: "M5 12h14", key: "1ays0h" }],
61
61
  ["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
62
62
  ]);
63
- const tt = A("Calendar", [
63
+ const tt = T("Calendar", [
64
64
  ["path", { d: "M8 2v4", key: "1cmpym" }],
65
65
  ["path", { d: "M16 2v4", key: "4m81vk" }],
66
66
  ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
67
67
  ["path", { d: "M3 10h18", key: "8toen8" }]
68
68
  ]);
69
- const j = A("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
70
- const K = A("ChevronDown", [
69
+ const j = T("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
70
+ const K = T("ChevronDown", [
71
71
  ["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
72
72
  ]);
73
- const _e = A("ChevronLeft", [
73
+ const _e = T("ChevronLeft", [
74
74
  ["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]
75
75
  ]);
76
- const O = A("ChevronRight", [
76
+ const O = T("ChevronRight", [
77
77
  ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
78
78
  ]);
79
- const ze = A("ChevronUp", [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]]);
80
- const be = A("CircleAlert", [
79
+ const ze = T("ChevronUp", [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]]);
80
+ const be = T("CircleAlert", [
81
81
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
82
82
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
83
83
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
84
84
  ]);
85
- const We = A("CircleCheck", [
85
+ const We = T("CircleCheck", [
86
86
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
87
87
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
88
88
  ]);
89
- const Be = A("CircleX", [
89
+ const Be = T("CircleX", [
90
90
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
91
91
  ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
92
92
  ["path", { d: "m9 9 6 6", key: "z0biqf" }]
93
93
  ]);
94
- const nt = A("Clock", [
94
+ const nt = T("Clock", [
95
95
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
96
96
  ["polyline", { points: "12 6 12 12 16 14", key: "68esgv" }]
97
97
  ]);
98
- const ee = A("Copy", [
98
+ const ee = T("Copy", [
99
99
  ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
100
100
  ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
101
101
  ]);
102
- const Le = A("Ellipsis", [
102
+ const Le = T("Ellipsis", [
103
103
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
104
104
  ["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
105
105
  ["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
106
106
  ]);
107
- const ve = A("FileCode", [
107
+ const ve = T("FileCode", [
108
108
  ["path", { d: "M10 12.5 8 15l2 2.5", key: "1tg20x" }],
109
109
  ["path", { d: "m14 12.5 2 2.5-2 2.5", key: "yinavb" }],
110
110
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
111
111
  ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z", key: "1mlx9k" }]
112
112
  ]);
113
- const at = A("File", [
113
+ const at = T("File", [
114
114
  ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
115
115
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }]
116
116
  ]);
117
- const rt = A("FolderOpen", [
117
+ const rt = T("FolderOpen", [
118
118
  [
119
119
  "path",
120
120
  {
@@ -123,7 +123,7 @@ const rt = A("FolderOpen", [
123
123
  }
124
124
  ]
125
125
  ]);
126
- const lt = A("Folder", [
126
+ const lt = T("Folder", [
127
127
  [
128
128
  "path",
129
129
  {
@@ -132,13 +132,13 @@ const lt = A("Folder", [
132
132
  }
133
133
  ]
134
134
  ]);
135
- const st = A("Frown", [
135
+ const st = T("Frown", [
136
136
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
137
137
  ["path", { d: "M16 16s-1.5-2-4-2-4 2-4 2", key: "epbg0q" }],
138
138
  ["line", { x1: "9", x2: "9.01", y1: "9", y2: "9", key: "yxxnd0" }],
139
139
  ["line", { x1: "15", x2: "15.01", y1: "9", y2: "9", key: "1p4y9e" }]
140
140
  ]);
141
- const ot = A("Heart", [
141
+ const ot = T("Heart", [
142
142
  [
143
143
  "path",
144
144
  {
@@ -147,41 +147,41 @@ const ot = A("Heart", [
147
147
  }
148
148
  ]
149
149
  ]);
150
- const re = A("Info", [
150
+ const re = T("Info", [
151
151
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
152
152
  ["path", { d: "M12 16v-4", key: "1dtifu" }],
153
153
  ["path", { d: "M12 8h.01", key: "e9boi3" }]
154
154
  ]);
155
- const se = A("LoaderCircle", [
155
+ const se = T("LoaderCircle", [
156
156
  ["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
157
157
  ]);
158
- const it = A("Lock", [
158
+ const it = T("Lock", [
159
159
  ["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
160
160
  ["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
161
161
  ]);
162
- const ct = A("Meh", [
162
+ const ct = T("Meh", [
163
163
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
164
164
  ["line", { x1: "8", x2: "16", y1: "15", y2: "15", key: "1xb1d9" }],
165
165
  ["line", { x1: "9", x2: "9.01", y1: "9", y2: "9", key: "yxxnd0" }],
166
166
  ["line", { x1: "15", x2: "15.01", y1: "9", y2: "9", key: "1p4y9e" }]
167
167
  ]);
168
- const dt = A("Monitor", [
168
+ const dt = T("Monitor", [
169
169
  ["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
170
170
  ["line", { x1: "8", x2: "16", y1: "21", y2: "21", key: "1svkeh" }],
171
171
  ["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }]
172
172
  ]);
173
- const ut = A("Moon", [
173
+ const ut = T("Moon", [
174
174
  ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z", key: "a7tn18" }]
175
175
  ]);
176
- const mt = A("RotateCw", [
176
+ const mt = T("RotateCw", [
177
177
  ["path", { d: "M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8", key: "1p45f6" }],
178
178
  ["path", { d: "M21 3v5h-5", key: "1q7to0" }]
179
179
  ]);
180
- const le = A("Search", [
180
+ const le = T("Search", [
181
181
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
182
182
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
183
183
  ]);
184
- const ht = A("ShieldCheck", [
184
+ const ht = T("ShieldCheck", [
185
185
  [
186
186
  "path",
187
187
  {
@@ -191,13 +191,13 @@ const ht = A("ShieldCheck", [
191
191
  ],
192
192
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
193
193
  ]);
194
- const pt = A("Smile", [
194
+ const pt = T("Smile", [
195
195
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
196
196
  ["path", { d: "M8 14s1.5 2 4 2 4-2 4-2", key: "1y1vjs" }],
197
197
  ["line", { x1: "9", x2: "9.01", y1: "9", y2: "9", key: "yxxnd0" }],
198
198
  ["line", { x1: "15", x2: "15.01", y1: "9", y2: "9", key: "1p4y9e" }]
199
199
  ]);
200
- const ft = A("Sun", [
200
+ const ft = T("Sun", [
201
201
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
202
202
  ["path", { d: "M12 2v2", key: "tus03m" }],
203
203
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -208,7 +208,7 @@ const ft = A("Sun", [
208
208
  ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
209
209
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
210
210
  ]);
211
- const oe = A("TriangleAlert", [
211
+ const oe = T("TriangleAlert", [
212
212
  [
213
213
  "path",
214
214
  {
@@ -219,7 +219,7 @@ const oe = A("TriangleAlert", [
219
219
  ["path", { d: "M12 9v4", key: "juzpu7" }],
220
220
  ["path", { d: "M12 17h.01", key: "p32p05" }]
221
221
  ]);
222
- const q = A("X", [
222
+ const q = T("X", [
223
223
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
224
224
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
225
225
  ]), _t = {
@@ -406,8 +406,9 @@ function an(t) {
406
406
  "aria-describedby": d,
407
407
  onFocus: b,
408
408
  onBlur: p,
409
- onKeyDown: m
410
- } = t, y = Nt(t), k = /* @__PURE__ */ i(F, { children: [
409
+ onKeyDown: m,
410
+ ref: y
411
+ } = t, k = Nt(t), f = /* @__PURE__ */ i(F, { children: [
411
412
  n ? /* @__PURE__ */ e(se, { className: "button__spinner", size: 14, strokeWidth: 1.8, "aria-hidden": "true" }) : null,
412
413
  o,
413
414
  s ? /* @__PURE__ */ e("kbd", { className: "button__shortcut", "aria-hidden": "true", children: s }) : null
@@ -415,23 +416,25 @@ function an(t) {
415
416
  return a ? /* @__PURE__ */ e(
416
417
  "a",
417
418
  {
418
- className: y,
419
+ ref: y,
420
+ className: k,
419
421
  href: r ? void 0 : a,
420
422
  "aria-disabled": r || void 0,
421
423
  tabIndex: r ? -1 : void 0,
422
424
  "aria-label": c,
423
425
  "aria-describedby": d,
424
- onClick: r ? (f) => f.preventDefault() : u,
426
+ onClick: r ? (N) => N.preventDefault() : u,
425
427
  onFocus: b,
426
428
  onBlur: p,
427
429
  onKeyDown: m,
428
- children: k
430
+ children: f
429
431
  }
430
432
  ) : /* @__PURE__ */ e(
431
433
  "button",
432
434
  {
435
+ ref: y,
433
436
  type: l,
434
- className: y,
437
+ className: k,
435
438
  disabled: r,
436
439
  "aria-busy": n || void 0,
437
440
  "aria-label": c,
@@ -441,7 +444,7 @@ function an(t) {
441
444
  onFocus: b,
442
445
  onBlur: p,
443
446
  onKeyDown: m,
444
- children: k
447
+ children: f
445
448
  }
446
449
  );
447
450
  }
@@ -679,7 +682,12 @@ function dn(t) {
679
682
  function un(t) {
680
683
  return /* @__PURE__ */ e(Pe, { type: "radio", ...t });
681
684
  }
682
- function mn({ type: t, label: n, description: r, extra: a, className: l, ...s }) {
685
+ function mn({ id: t, ...n }) {
686
+ return {
687
+ component: /* @__PURE__ */ e("input", { id: t, type: "radio", ...n })
688
+ };
689
+ }
690
+ function hn({ type: t, label: n, description: r, extra: a, className: l, ...s }) {
683
691
  return /* @__PURE__ */ i("label", { className: ["choicebox", `choicebox--${t}`, l].filter(Boolean).join(" "), children: [
684
692
  /* @__PURE__ */ e("input", { type: t, className: "choicebox__input", ...s }),
685
693
  /* @__PURE__ */ i("span", { className: "choicebox__body", children: [
@@ -690,7 +698,7 @@ function mn({ type: t, label: n, description: r, extra: a, className: l, ...s })
690
698
  /* @__PURE__ */ e("span", { className: "choicebox__indicator", "aria-hidden": "true", children: t === "checkbox" ? /* @__PURE__ */ e(j, { className: "choicebox__check", size: 12, strokeWidth: 3 }) : null })
691
699
  ] });
692
700
  }
693
- function hn({
701
+ function pn({
694
702
  options: t,
695
703
  placeholder: n,
696
704
  emptyLabel: r = "选项",
@@ -703,8 +711,8 @@ function hn({
703
711
  const [c, _] = E(""), [d, b] = E(!1), [p, m] = E(!1), [y, k] = E(0), f = I(null), N = I(null), v = W(), D = `${v}-list`, C = `${v}-err`, h = d ? t : t.filter(($) => $.value.toLowerCase().includes(c.toLowerCase())), x = p && h[y] ? `${v}-opt-${y}` : void 0;
704
712
  B(() => {
705
713
  if (!p) return;
706
- function $(T) {
707
- f.current && !f.current.contains(T.target) && m(!1);
714
+ function $(A) {
715
+ f.current && !f.current.contains(A.target) && m(!1);
708
716
  }
709
717
  return document.addEventListener("mousedown", $), () => document.removeEventListener("mousedown", $);
710
718
  }, [p]);
@@ -715,7 +723,7 @@ function hn({
715
723
  _(""), b(!1), m(!1), N.current?.focus();
716
724
  }
717
725
  function M($) {
718
- $.nativeEvent.isComposing || ($.key === "ArrowDown" ? ($.preventDefault(), p ? k((T) => Math.max(Math.min(T + 1, h.length - 1), 0)) : m(!0)) : $.key === "ArrowUp" ? ($.preventDefault(), k((T) => Math.max(T - 1, 0))) : $.key === "Home" && p ? ($.preventDefault(), k(0)) : $.key === "End" && p ? ($.preventDefault(), k(Math.max(h.length - 1, 0))) : $.key === "Enter" && p && h[y] ? ($.preventDefault(), g(h[y])) : $.key === "Escape" && (p ? ($.preventDefault(), m(!1)) : o && c && w()));
726
+ $.nativeEvent.isComposing || ($.key === "ArrowDown" ? ($.preventDefault(), p ? k((A) => Math.max(Math.min(A + 1, h.length - 1), 0)) : m(!0)) : $.key === "ArrowUp" ? ($.preventDefault(), k((A) => Math.max(A - 1, 0))) : $.key === "Home" && p ? ($.preventDefault(), k(0)) : $.key === "End" && p ? ($.preventDefault(), k(Math.max(h.length - 1, 0))) : $.key === "Enter" && p && h[y] ? ($.preventDefault(), g(h[y])) : $.key === "Escape" && (p ? ($.preventDefault(), m(!1)) : o && c && w()));
719
727
  }
720
728
  const S = [
721
729
  "combobox",
@@ -753,14 +761,14 @@ function hn({
753
761
  ),
754
762
  o && c && !l ? /* @__PURE__ */ e("button", { type: "button", className: "combobox__clear", "aria-label": "清除选择", onClick: w, children: /* @__PURE__ */ e(q, { size: 14, strokeWidth: 2, "aria-hidden": "true" }) }) : null
755
763
  ] }),
756
- p ? /* @__PURE__ */ e("ul", { className: "combobox__listbox", id: D, role: "listbox", "aria-label": n, children: h.length === 0 ? /* @__PURE__ */ e("li", { className: "combobox__empty", role: "presentation", children: `没有匹配「${c}」的${r}` }) : h.map(($, T) => /* @__PURE__ */ i(
764
+ p ? /* @__PURE__ */ e("ul", { className: "combobox__listbox", id: D, role: "listbox", "aria-label": n, children: h.length === 0 ? /* @__PURE__ */ e("li", { className: "combobox__empty", role: "presentation", children: `没有匹配「${c}」的${r}` }) : h.map(($, A) => /* @__PURE__ */ i(
757
765
  "li",
758
766
  {
759
- id: `${v}-opt-${T}`,
767
+ id: `${v}-opt-${A}`,
760
768
  role: "option",
761
769
  "aria-selected": d && c === $.value,
762
- className: `combobox__option${T === y ? " combobox__option--active" : ""}`,
763
- onMouseEnter: () => k(T),
770
+ className: `combobox__option${A === y ? " combobox__option--active" : ""}`,
771
+ onMouseEnter: () => k(A),
764
772
  onMouseDown: (L) => {
765
773
  L.preventDefault(), g($);
766
774
  },
@@ -775,7 +783,7 @@ function hn({
775
783
  s ? /* @__PURE__ */ e("p", { className: "combobox__error-text", id: C, children: s }) : null
776
784
  ] });
777
785
  }
778
- function pn({
786
+ function fn({
779
787
  options: t,
780
788
  ariaLabel: n,
781
789
  name: r,
@@ -809,7 +817,7 @@ function pn({
809
817
  /* @__PURE__ */ e("span", { className: u ? "sr-only" : void 0, children: p.label })
810
818
  ] }, p.value)) });
811
819
  }
812
- function fn({
820
+ function _n({
813
821
  defaultOn: t = !1,
814
822
  disabled: n,
815
823
  size: r = "md",
@@ -847,13 +855,13 @@ function je({ tokens: t }) {
847
855
  (n, r) => n.type ? /* @__PURE__ */ e("span", { className: `tok-${n.type}`, children: n.text }, r) : /* @__PURE__ */ e("span", { children: n.text }, r)
848
856
  ) });
849
857
  }
850
- function _n({ lines: t, ariaLabel: n }) {
858
+ function bn({ lines: t, ariaLabel: n }) {
851
859
  return /* @__PURE__ */ e("pre", { className: "code-block", "aria-label": n, children: /* @__PURE__ */ e("code", { children: t.map((r, a) => /* @__PURE__ */ e("span", { className: "code-line", children: /* @__PURE__ */ e(je, { tokens: r }) }, a)) }) });
852
860
  }
853
- function bn({ children: t }) {
861
+ function yn({ children: t }) {
854
862
  return /* @__PURE__ */ e("code", { className: "code-inline", children: t });
855
863
  }
856
- function yn(t) {
864
+ function gn(t) {
857
865
  const { lineNumbers: n = !0 } = t, { copied: r, copy: a, reset: l } = ie(), [s, o] = E(0), u = t.tabs ? t.tabs[s] ?? t.tabs[0] : void 0, c = u ? u.lines : t.lines ?? [], _ = u ? u.filename : t.filename, d = c.map((p) => p.tokens.map((m) => m.text).join("")).join(`
858
866
  `);
859
867
  let b = 0;
@@ -908,7 +916,7 @@ function yn(t) {
908
916
  }) }) })
909
917
  ] });
910
918
  }
911
- function gn({
919
+ function Nn({
912
920
  tabs: t,
913
921
  ariaLabel: n,
914
922
  variant: r = "default"
@@ -992,11 +1000,11 @@ function gn({
992
1000
  ] });
993
1001
  }
994
1002
  const Oe = Ie(null);
995
- function Nn({ multiple: t, children: n }) {
1003
+ function kn({ multiple: t, children: n }) {
996
1004
  const [r, a] = E(null);
997
1005
  return /* @__PURE__ */ e("div", { className: "collapse-group", children: /* @__PURE__ */ e(Oe.Provider, { value: t ? null : { openId: r, setOpenId: a }, children: n }) });
998
1006
  }
999
- function kn({
1007
+ function wn({
1000
1008
  title: t,
1001
1009
  defaultOpen: n,
1002
1010
  small: r,
@@ -1006,7 +1014,7 @@ function kn({
1006
1014
  G(() => {
1007
1015
  l && n && l.setOpenId(s);
1008
1016
  }, []);
1009
- const c = l ? l.openId === s : o;
1017
+ const c = l ? l.openId === s : o, _ = typeof t == "function" ? t(c) : t;
1010
1018
  return /* @__PURE__ */ i("div", { className: `collapse${r ? " collapse--small" : ""}`, children: [
1011
1019
  /* @__PURE__ */ i(
1012
1020
  "button",
@@ -1016,10 +1024,10 @@ function kn({
1016
1024
  "aria-expanded": c,
1017
1025
  "aria-controls": s,
1018
1026
  onClick: () => {
1019
- l ? l.setOpenId(c ? null : s) : u((d) => !d);
1027
+ l ? l.setOpenId(c ? null : s) : u((b) => !b);
1020
1028
  },
1021
1029
  children: [
1022
- /* @__PURE__ */ e("span", { className: "collapse__title", children: t }),
1030
+ /* @__PURE__ */ e("span", { className: "collapse__title", children: _ }),
1023
1031
  /* @__PURE__ */ e(O, { className: "collapse__chevron", size: 16, strokeWidth: 2, "aria-hidden": "true" })
1024
1032
  ]
1025
1033
  }
@@ -1027,7 +1035,7 @@ function kn({
1027
1035
  /* @__PURE__ */ e("div", { className: `collapse__panel${c ? " collapse__panel--open" : ""}`, id: s, children: /* @__PURE__ */ e("div", { className: "collapse__content", children: a }) })
1028
1036
  ] });
1029
1037
  }
1030
- function wn({ sections: t, triggerLabel: n = "打开命令面板", hotkey: r }) {
1038
+ function vn({ sections: t, triggerLabel: n = "打开命令面板", hotkey: r }) {
1031
1039
  const [a, l] = E(!1), [s, o] = E(""), [u, c] = E(0), _ = I(null), d = I(null), b = I(null), p = I(null), m = fe(() => {
1032
1040
  const f = s.trim().toLowerCase();
1033
1041
  let N = 0;
@@ -1113,7 +1121,7 @@ function wn({ sections: t, triggerLabel: n = "打开命令面板", hotkey: r })
1113
1121
  ] }),
1114
1122
  /* @__PURE__ */ e("div", { className: "command-palette__body", id: "command-palette-list", role: "listbox", "aria-label": "命令", children: m.length > 0 ? m.map((f, N) => (
1115
1123
  // 相邻组间的分隔线由 CSS(.command-palette__group + .command-palette__group)天然提供,
1116
- // heading 缺省的段即呈现为"只有分隔线、没有标题"(对标 Geist With Divider)。
1124
+ // heading 缺省的段即呈现为"只有分隔线、没有标题"。
1117
1125
  /* @__PURE__ */ i("section", { className: "command-palette__group", children: [
1118
1126
  f.heading ? /* @__PURE__ */ e("h2", { className: "command-palette__heading", children: f.heading }) : null,
1119
1127
  f.items.map(({ item: v, flatIndex: D }) => /* @__PURE__ */ i(
@@ -1126,7 +1134,7 @@ function wn({ sections: t, triggerLabel: n = "打开命令面板", hotkey: r })
1126
1134
  onMouseEnter: () => c(D),
1127
1135
  onClick: () => l(!1),
1128
1136
  children: [
1129
- /* @__PURE__ */ e(Te, { size: 15, strokeWidth: 2, "aria-hidden": "true" }),
1137
+ /* @__PURE__ */ e(Ae, { size: 15, strokeWidth: 2, "aria-hidden": "true" }),
1130
1138
  /* @__PURE__ */ e("span", { className: "command-palette__entry-label", children: v.label }),
1131
1139
  v.suffix ? /* @__PURE__ */ e("span", { className: "command-palette__suffix", "aria-hidden": "true", children: v.suffix }) : null,
1132
1140
  v.keybind ? /* @__PURE__ */ e("kbd", { className: "command-palette__kbd", children: v.keybind }) : null
@@ -1140,7 +1148,7 @@ function wn({ sections: t, triggerLabel: n = "打开命令面板", hotkey: r })
1140
1148
  ] }) : null
1141
1149
  ] });
1142
1150
  }
1143
- function vn({
1151
+ function xn({
1144
1152
  open: t,
1145
1153
  onClose: n,
1146
1154
  title: r,
@@ -1269,7 +1277,7 @@ function vn({
1269
1277
  )
1270
1278
  ] });
1271
1279
  }
1272
- function xn({
1280
+ function Cn({
1273
1281
  open: t,
1274
1282
  onClose: n,
1275
1283
  title: r,
@@ -1355,7 +1363,7 @@ function xn({
1355
1363
  )
1356
1364
  ] });
1357
1365
  }
1358
- function Cn({
1366
+ function $n({
1359
1367
  icon: t,
1360
1368
  title: n,
1361
1369
  description: r,
@@ -1369,7 +1377,7 @@ function Cn({
1369
1377
  a ? /* @__PURE__ */ e("div", { className: "empty-state__actions", children: a }) : null
1370
1378
  ] });
1371
1379
  }
1372
- function $n({
1380
+ function Dn({
1373
1381
  leading: t,
1374
1382
  title: n,
1375
1383
  subtitle: r,
@@ -1386,7 +1394,7 @@ function $n({
1386
1394
  a ? /* @__PURE__ */ e("div", { className: "entity__trailing", children: a }) : null
1387
1395
  ] });
1388
1396
  }
1389
- function Dn({
1397
+ function Mn({
1390
1398
  label: t,
1391
1399
  size: n = "md",
1392
1400
  action: r,
@@ -1402,7 +1410,7 @@ function Dn({
1402
1410
  ] })
1403
1411
  ] });
1404
1412
  }
1405
- function Mn({ title: t, message: n, action: r }) {
1413
+ function En({ title: t, message: n, action: r }) {
1406
1414
  return /* @__PURE__ */ i("div", { className: "error-card", children: [
1407
1415
  /* @__PURE__ */ e(be, { className: "error-card__icon", size: 20, strokeWidth: 2, "aria-hidden": "true" }),
1408
1416
  /* @__PURE__ */ i("p", { className: "error-card__title", children: [
@@ -1419,7 +1427,7 @@ const Q = [
1419
1427
  { value: "good", label: "不错", Icon: pt },
1420
1428
  { value: "love", label: "喜欢", Icon: ot }
1421
1429
  ];
1422
- function En({
1430
+ function In({
1423
1431
  label: t = "反馈",
1424
1432
  prompt: n = "这次体验怎么样?",
1425
1433
  placeholder: r = "你的反馈…",
@@ -1515,7 +1523,7 @@ function En({
1515
1523
  x
1516
1524
  ] });
1517
1525
  }
1518
- function In({
1526
+ function Sn({
1519
1527
  title: t,
1520
1528
  subtitle: n,
1521
1529
  tone: r,
@@ -1542,7 +1550,7 @@ function qe(t, n, r, a, l) {
1542
1550
  l.push({ path: c, name: o.name, type: o.type, level: n, parentPath: r, hasChildren: _, setsize: s, posinset: u + 1 }), o.type === "folder" && a.has(c) && o.children && qe(o.children, n + 1, c, a, l);
1543
1551
  });
1544
1552
  }
1545
- function Sn({
1553
+ function Tn({
1546
1554
  nodes: t,
1547
1555
  label: n = "项目目录",
1548
1556
  defaultExpanded: r = []
@@ -1604,7 +1612,7 @@ function An({
1604
1612
  const a = ["separator", `separator--${t}`, r ?? ""].filter(Boolean).join(" ");
1605
1613
  return n ? /* @__PURE__ */ e("div", { className: a, "aria-hidden": "true" }) : /* @__PURE__ */ e("div", { className: a, role: "separator", "aria-orientation": t });
1606
1614
  }
1607
- function Tn({
1615
+ function zn({
1608
1616
  htmlFor: t,
1609
1617
  required: n,
1610
1618
  children: r
@@ -1652,7 +1660,7 @@ function ge({
1652
1660
  return { itemRefs: s, focusItem: u, reset: c, onMenuKeyDown: _ };
1653
1661
  }
1654
1662
  const kt = (t) => t.type === "item" && !t.disabled || t.type === "link";
1655
- function zn({
1663
+ function Wn({
1656
1664
  label: t,
1657
1665
  entries: n,
1658
1666
  children: r
@@ -1774,7 +1782,7 @@ function zn({
1774
1782
  ) : null
1775
1783
  ] });
1776
1784
  }
1777
- function Wn({
1785
+ function Bn({
1778
1786
  entries: t,
1779
1787
  size: n = "md",
1780
1788
  disabled: r,
@@ -1850,7 +1858,7 @@ function Wn({
1850
1858
  ) : null
1851
1859
  ] });
1852
1860
  }
1853
- function Bn({
1861
+ function Ln({
1854
1862
  tone: t,
1855
1863
  label: n,
1856
1864
  animated: r = !1,
@@ -1866,7 +1874,7 @@ function Bn({
1866
1874
  const o = l ? `${l}:${n}` : n;
1867
1875
  return /* @__PURE__ */ e("span", { className: s, role: "img", "aria-label": o, title: o });
1868
1876
  }
1869
- function Ln({
1877
+ function Rn({
1870
1878
  tone: t = "neutral",
1871
1879
  subtle: n = !1,
1872
1880
  inverted: r = !1,
@@ -1890,14 +1898,14 @@ function Ln({
1890
1898
  c
1891
1899
  ] });
1892
1900
  }
1893
- function Rn({ href: t, size: n = "md", icon: r, title: a, className: l, children: s, ...o }) {
1901
+ function Fn({ href: t, size: n = "md", icon: r, title: a, className: l, children: s, ...o }) {
1894
1902
  const u = ["badge", "badge--pill", n === "md" ? "" : `badge--${n}`, l].filter(Boolean).join(" "), _ = r != null && (s == null || s === "") ? { "aria-label": a } : {};
1895
1903
  return /* @__PURE__ */ i("a", { className: u, href: t, title: a, ..._, ...o, children: [
1896
1904
  r ? /* @__PURE__ */ e("span", { className: "badge__icon", "aria-hidden": "true", children: r }) : null,
1897
1905
  s
1898
1906
  ] });
1899
1907
  }
1900
- function Fn({ title: t, children: n, tone: r, icon: a, action: l, onDismiss: s, progress: o, className: u, ...c }) {
1908
+ function Kn({ title: t, children: n, tone: r, icon: a, action: l, onDismiss: s, progress: o, className: u, ...c }) {
1901
1909
  const _ = r === void 0 && !o, d = [
1902
1910
  "banner",
1903
1911
  _ ? "banner--announcement" : r === "neutral" ? "" : `banner--${r}`,
@@ -1961,7 +1969,7 @@ function wt({ hover: t, secondary: n, divided: r, direction: a, shadow: l, borde
1961
1969
  o
1962
1970
  ].filter(Boolean).join(" ");
1963
1971
  }
1964
- function Kn(t) {
1972
+ function Pn(t) {
1965
1973
  const n = wt(t);
1966
1974
  if (t.href !== void 0) {
1967
1975
  const {
@@ -2009,12 +2017,12 @@ function vt({
2009
2017
  }), p = I(null), m = I(null), y = I(null), k = W(), f = J(() => {
2010
2018
  const g = m.current, w = y.current;
2011
2019
  if (!g || !w) return;
2012
- const M = 8, S = 8, $ = g.getBoundingClientRect(), T = w.offsetWidth, L = w.offsetHeight, V = document.documentElement.clientWidth, X = document.documentElement.clientHeight, Z = $.left + $.width / 2, Ne = $.top + $.height / 2;
2020
+ const M = 8, S = 8, $ = g.getBoundingClientRect(), A = w.offsetWidth, L = w.offsetHeight, V = document.documentElement.clientWidth, X = document.documentElement.clientHeight, Z = $.left + $.width / 2, Ne = $.top + $.height / 2;
2013
2021
  let R = n;
2014
- n === "top" && $.top - S - L < M && $.bottom + S + L <= X - M ? R = "bottom" : n === "bottom" && $.bottom + S + L > X - M && $.top - S - L >= M ? R = "top" : n === "left" && $.left - S - T < M && $.right + S + T <= V - M ? R = "right" : n === "right" && $.right + S + T > V - M && $.left - S - T >= M && (R = "left");
2022
+ n === "top" && $.top - S - L < M && $.bottom + S + L <= X - M ? R = "bottom" : n === "bottom" && $.bottom + S + L > X - M && $.top - S - L >= M ? R = "top" : n === "left" && $.left - S - A < M && $.right + S + A <= V - M ? R = "right" : n === "right" && $.right + S + A > V - M && $.left - S - A >= M && (R = "left");
2015
2023
  let H, U;
2016
- R === "top" || R === "bottom" ? (H = s === "start" ? $.left : s === "end" ? $.right - T : Z - T / 2, U = R === "top" ? $.top - S - L : $.bottom + S) : (U = s === "start" ? $.top : s === "end" ? $.bottom - L : Ne - L / 2, H = R === "left" ? $.left - S - T : $.right + S), H = Math.max(M, Math.min(H, V - M - T)), U = Math.max(M, Math.min(U, X - M - L));
2017
- const Ge = R === "top" || R === "bottom" ? Math.max(12, Math.min(T - 12, Z - H)) : Math.max(12, Math.min(L - 12, Ne - U));
2024
+ R === "top" || R === "bottom" ? (H = s === "start" ? $.left : s === "end" ? $.right - A : Z - A / 2, U = R === "top" ? $.top - S - L : $.bottom + S) : (U = s === "start" ? $.top : s === "end" ? $.bottom - L : Ne - L / 2, H = R === "left" ? $.left - S - A : $.right + S), H = Math.max(M, Math.min(H, V - M - A)), U = Math.max(M, Math.min(U, X - M - L));
2025
+ const Ge = R === "top" || R === "bottom" ? Math.max(12, Math.min(A - 12, Z - H)) : Math.max(12, Math.min(L - 12, Ne - U));
2018
2026
  b({ p: R, left: H, top: U, caret: Ge });
2019
2027
  }, [n, s]);
2020
2028
  G(() => {
@@ -2082,7 +2090,7 @@ function vt({
2082
2090
  )
2083
2091
  ] });
2084
2092
  }
2085
- function Pn({
2093
+ function jn({
2086
2094
  title: t,
2087
2095
  tooltip: n,
2088
2096
  align: r,
@@ -2098,7 +2106,7 @@ function Pn({
2098
2106
  /* @__PURE__ */ e("dd", { className: `description__value${a ? " description__value--ellipsis" : ""}`, children: l })
2099
2107
  ] });
2100
2108
  }
2101
- function jn({
2109
+ function On({
2102
2110
  name: t,
2103
2111
  identity: n,
2104
2112
  rows: r,
@@ -2147,7 +2155,7 @@ function jn({
2147
2155
  }
2148
2156
  );
2149
2157
  }
2150
- function On({
2158
+ function qn({
2151
2159
  title: t,
2152
2160
  variant: n = "stripe",
2153
2161
  color: r,
@@ -2192,7 +2200,7 @@ function xt({ className: t } = {}) {
2192
2200
  function Ct({ className: t } = {}) {
2193
2201
  return /* @__PURE__ */ i("span", { className: ["browser__controls", t].filter(Boolean).join(" "), "aria-hidden": "true", children: [
2194
2202
  /* @__PURE__ */ e(et, { size: 14, strokeWidth: 2 }),
2195
- /* @__PURE__ */ e(Te, { size: 14, strokeWidth: 2 }),
2203
+ /* @__PURE__ */ e(Ae, { size: 14, strokeWidth: 2 }),
2196
2204
  /* @__PURE__ */ e(mt, { size: 14, strokeWidth: 2 })
2197
2205
  ] });
2198
2206
  }
@@ -2220,7 +2228,7 @@ function Dt({ tabs: t, className: n }) {
2220
2228
  /* @__PURE__ */ e("span", { className: `browser__tab${r.isActive ? " browser__tab--active" : ""}`, children: r.label }, `${r.label}-${a}`)
2221
2229
  )) });
2222
2230
  }
2223
- function qn({ address: t, variant: n = "dark", tabs: r, children: a, className: l, ...s }) {
2231
+ function Hn({ address: t, variant: n = "dark", tabs: r, children: a, className: l, ...s }) {
2224
2232
  return /* @__PURE__ */ i("div", { className: ["browser", `browser--${n}`, l].filter(Boolean).join(" "), ...s, children: [
2225
2233
  /* @__PURE__ */ i("div", { className: "browser__chrome", children: [
2226
2234
  r ? /* @__PURE__ */ e(Dt, { tabs: r }) : null,
@@ -2235,7 +2243,7 @@ function qn({ address: t, variant: n = "dark", tabs: r, children: a, className:
2235
2243
  /* @__PURE__ */ e("div", { className: "browser__body", children: a })
2236
2244
  ] });
2237
2245
  }
2238
- function Hn() {
2246
+ function Un() {
2239
2247
  return /* @__PURE__ */ i("div", { className: "browser__placeholder", "aria-hidden": "true", children: [
2240
2248
  /* @__PURE__ */ e("span", { className: "browser__skeleton-line browser__skeleton-line--medium" }),
2241
2249
  /* @__PURE__ */ e("span", { className: "browser__skeleton-line browser__skeleton-line--short" }),
@@ -2271,7 +2279,7 @@ function Et({ title: t, src: n, letter: r, glyph: a, placeholder: l = !1, icon:
2271
2279
  ) : null
2272
2280
  ] });
2273
2281
  }
2274
- function Un({
2282
+ function Yn({
2275
2283
  members: t,
2276
2284
  label: n,
2277
2285
  size: r,
@@ -2283,11 +2291,11 @@ function Un({
2283
2291
  const u = He(r), c = u ?? 32, _ = a !== void 0 && Number.isFinite(a) && a >= 0 ? Math.floor(a) : void 0, d = _ !== void 0 && t.length > _ ? t.slice(0, _) : t, b = t.length - d.length, p = d.length + (b > 0 ? 1 : 0), m = l !== "auto" && Number.isFinite(l) ? Math.max(0, l) : Math.round(c * 0.3), y = { ...Ue(u), "--q1-avatar-overlap": `${m}px` }, k = (N) => s ? void 0 : p - 1 - N, f = n ? { role: "group", "aria-label": n } : {};
2284
2292
  return /* @__PURE__ */ i("span", { className: ["avatar-group", o].filter(Boolean).join(" "), style: y, ...f, children: [
2285
2293
  d.map((N, v) => (
2286
- // 成员不再 aria-hidden——每个 Avatar 自带 aria-label(名字),读屏逐个念(跟 Geist)。
2294
+ // 成员不再 aria-hidden——每个 Avatar 自带 aria-label(名字),读屏逐个念。
2287
2295
  /* @__PURE__ */ e("span", { className: "avatar-group__item", style: { zIndex: k(v) }, children: /* @__PURE__ */ e(Et, { ...N, size: u }) }, `${N.title}-${v}`)
2288
2296
  )),
2289
2297
  b > 0 ? (
2290
- // +N 独立可访问名「还有 N 位成员」(对齐 Geist "N more avatars in this group"),不再 aria-hidden。
2298
+ // +N 独立可访问名「还有 N 位成员」,不再 aria-hidden。
2291
2299
  /* @__PURE__ */ i(
2292
2300
  "span",
2293
2301
  {
@@ -2304,7 +2312,7 @@ function Un({
2304
2312
  ) : null
2305
2313
  ] });
2306
2314
  }
2307
- function Yn({
2315
+ function Gn({
2308
2316
  shape: t = "rounded",
2309
2317
  animated: n = !0,
2310
2318
  show: r = !1,
@@ -2322,7 +2330,7 @@ function Yn({
2322
2330
  return l ? /* @__PURE__ */ e("span", { className: s, "aria-hidden": "true", children: /* @__PURE__ */ e("span", { className: "skeleton__content", children: l }) }) : /* @__PURE__ */ e("span", { className: s, "aria-hidden": "true" });
2323
2331
  }
2324
2332
  const It = { sm: 2, md: 3, lg: 4 };
2325
- function Gn({ label: t, size: n = "md" }) {
2333
+ function Vn({ label: t, size: n = "md" }) {
2326
2334
  const r = typeof n == "number" ? n : It[n], a = { width: r, height: r };
2327
2335
  return /* @__PURE__ */ i("span", { className: "loading-dots-wrap", "aria-live": "polite", children: [
2328
2336
  t ? /* @__PURE__ */ e("span", { className: "loading-dots__label", children: t }) : null,
@@ -2333,7 +2341,7 @@ function Gn({ label: t, size: n = "md" }) {
2333
2341
  ] })
2334
2342
  ] });
2335
2343
  }
2336
- function Vn({ text: t, tailLength: n = 8, mono: r = !1 }) {
2344
+ function Xn({ text: t, tailLength: n = 8, mono: r = !1 }) {
2337
2345
  const a = Math.max(0, t.length - n), l = t.slice(0, a), s = t.slice(a);
2338
2346
  return /* @__PURE__ */ i("span", { className: `middle-truncate${r ? " middle-truncate--mono" : ""}`, title: t, "aria-label": t, children: [
2339
2347
  /* @__PURE__ */ e("span", { className: "sr-only", children: t }),
@@ -2343,7 +2351,7 @@ function Vn({ text: t, tailLength: n = 8, mono: r = !1 }) {
2343
2351
  ] })
2344
2352
  ] });
2345
2353
  }
2346
- function Xn({ screenLabel: t }) {
2354
+ function Zn({ screenLabel: t }) {
2347
2355
  return /* @__PURE__ */ i("div", { className: "phone", children: [
2348
2356
  /* @__PURE__ */ e("span", { className: "phone__island", "aria-hidden": "true" }),
2349
2357
  /* @__PURE__ */ e("span", { className: "phone__btn phone__btn--mute", "aria-hidden": "true" }),
@@ -2386,7 +2394,7 @@ const St = {
2386
2394
  warning: oe,
2387
2395
  error: be
2388
2396
  };
2389
- function Zn({ variant: t = "default", message: n, cta: r }) {
2397
+ function Qn({ variant: t = "default", message: n, cta: r }) {
2390
2398
  const a = St[t];
2391
2399
  return /* @__PURE__ */ i("div", { className: `project-banner project-banner--${t}`, role: "status", children: [
2392
2400
  /* @__PURE__ */ e(a, { className: "project-banner__icon", size: 15, strokeWidth: 2, "aria-hidden": "true" }),
@@ -2394,7 +2402,7 @@ function Zn({ variant: t = "default", message: n, cta: r }) {
2394
2402
  /* @__PURE__ */ e("button", { type: "button", className: "project-banner__cta", children: r })
2395
2403
  ] });
2396
2404
  }
2397
- function Qn({
2405
+ function Jn({
2398
2406
  text: t,
2399
2407
  copyValue: n,
2400
2408
  successMessage: r,
@@ -2415,7 +2423,7 @@ function Qn({
2415
2423
  )
2416
2424
  ] });
2417
2425
  }
2418
- function Jn({
2426
+ function ea({
2419
2427
  text: t,
2420
2428
  prompt: n = !0,
2421
2429
  inverted: r = !1,
@@ -2447,10 +2455,10 @@ function Jn({
2447
2455
  )
2448
2456
  ] });
2449
2457
  }
2450
- function At(t, n) {
2458
+ function Tt(t, n) {
2451
2459
  return t >= 95 ? "danger" : t >= 80 ? "warning" : "success";
2452
2460
  }
2453
- const Tt = {
2461
+ const At = {
2454
2462
  xs: { boxPx: 20, radius: 42.5, strokeWidth: 15, valueFontSize: null },
2455
2463
  sm: { boxPx: 32, radius: 45, strokeWidth: 10, valueFontSize: 11 },
2456
2464
  md: { boxPx: 64, radius: 45, strokeWidth: 10, valueFontSize: 18 },
@@ -2464,9 +2472,9 @@ function Wt(t, n, r) {
2464
2472
  return a < s ? 0 : a;
2465
2473
  }
2466
2474
  function Bt(t, n, r) {
2467
- return r || (n === "health" ? t >= xe.success ? "success" : t >= xe.warning ? "warning" : "danger" : At(t));
2475
+ return r || (n === "health" ? t >= xe.success ? "success" : t >= xe.warning ? "warning" : "danger" : Tt(t));
2468
2476
  }
2469
- function ea({
2477
+ function ta({
2470
2478
  value: t,
2471
2479
  size: n = "md",
2472
2480
  showValue: r = !1,
@@ -2475,7 +2483,7 @@ function ea({
2475
2483
  label: s,
2476
2484
  indeterminate: o = !1
2477
2485
  }) {
2478
- const { boxPx: u, radius: c, strokeWidth: _, valueFontSize: d } = Tt[n], b = 2 * Math.PI * c, p = Math.min(100, Math.max(0, t ?? 0)), m = 50, y = o ? 25 : p, k = o ? 0 : Wt(p, _, b), f = o ? 0 : Math.max(0, 100 - p - k), N = -90 + (y + k / 2) / 100 * 360, v = o ? "primary" : Bt(p, l, a);
2486
+ const { boxPx: u, radius: c, strokeWidth: _, valueFontSize: d } = At[n], b = 2 * Math.PI * c, p = Math.min(100, Math.max(0, t ?? 0)), m = 50, y = o ? 25 : p, k = o ? 0 : Wt(p, _, b), f = o ? 0 : Math.max(0, 100 - p - k), N = -90 + (y + k / 2) / 100 * 360, v = o ? "primary" : Bt(p, l, a);
2479
2487
  return /* @__PURE__ */ i(
2480
2488
  "span",
2481
2489
  {
@@ -2521,7 +2529,7 @@ function ea({
2521
2529
  }
2522
2530
  );
2523
2531
  }
2524
- function ta({
2532
+ function na({
2525
2533
  value: t,
2526
2534
  max: n = 100,
2527
2535
  tone: r = "neutral",
@@ -2563,8 +2571,8 @@ const Lt = {
2563
2571
  error: Be,
2564
2572
  secondary: re
2565
2573
  };
2566
- function na({
2567
- type: t = "info",
2574
+ function aa({
2575
+ tone: t = "info",
2568
2576
  size: n = "default",
2569
2577
  filled: r = !1,
2570
2578
  disabled: a = !1,
@@ -2588,7 +2596,7 @@ function na({
2588
2596
  s ? /* @__PURE__ */ e("button", { type: "button", className: "note__action", disabled: a, children: s }) : null
2589
2597
  ] });
2590
2598
  }
2591
- function aa({ previous: t, next: n }) {
2599
+ function ra({ previous: t, next: n }) {
2592
2600
  const r = (a) => a.preventDefault();
2593
2601
  return /* @__PURE__ */ i("nav", { className: "pagination", "aria-label": "分页导航", children: [
2594
2602
  t ? /* @__PURE__ */ i(
@@ -2625,7 +2633,7 @@ function aa({ previous: t, next: n }) {
2625
2633
  ) : /* @__PURE__ */ e("span", { className: "pagination__slot" })
2626
2634
  ] });
2627
2635
  }
2628
- function ra({
2636
+ function la({
2629
2637
  items: t,
2630
2638
  initial: n = 4,
2631
2639
  noBorder: r,
@@ -2650,7 +2658,7 @@ function ra({
2650
2658
  ) }) : null
2651
2659
  ] });
2652
2660
  }
2653
- function la({
2661
+ function sa({
2654
2662
  loading: t,
2655
2663
  noGap: n,
2656
2664
  noBorderRadius: r,
@@ -2682,7 +2690,7 @@ function Rt(t) {
2682
2690
  const r = String(Number(n[2]));
2683
2691
  return `GMT${n[1]}${r}${n[3] !== "00" ? `:${n[3]}` : ""}`;
2684
2692
  }
2685
- function sa({
2693
+ function oa({
2686
2694
  relative: t,
2687
2695
  relativeLong: n,
2688
2696
  iso: r,
@@ -2706,7 +2714,7 @@ function sa({
2706
2714
  ] });
2707
2715
  }
2708
2716
  const Ft = { sm: 10, md: 12, lg: 15, xl: 15 };
2709
- function oa({
2717
+ function ia({
2710
2718
  size: t = "md",
2711
2719
  tone: n = "default",
2712
2720
  label: r = "加载中…"
@@ -2729,7 +2737,7 @@ function oa({
2729
2737
  ] });
2730
2738
  }
2731
2739
  const Ce = "/video-sample.mp4", Kt = "/video-poster.jpg", Pt = typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
2732
- function ia({ controls: t = !0, loop: n = !0 }) {
2740
+ function ca({ controls: t = !0, loop: n = !0 }) {
2733
2741
  const r = !t;
2734
2742
  return /* @__PURE__ */ i(
2735
2743
  "video",
@@ -2755,7 +2763,7 @@ function ia({ controls: t = !0, loop: n = !0 }) {
2755
2763
  );
2756
2764
  }
2757
2765
  const $e = /mac/i.test(navigator.platform);
2758
- function ca({
2766
+ function da({
2759
2767
  meta: t,
2760
2768
  shift: n,
2761
2769
  alt: r,
@@ -2800,7 +2808,7 @@ const Ot = [
2800
2808
  { mode: "light", label: "浅色", Icon: ft },
2801
2809
  { mode: "dark", label: "深色", Icon: ut }
2802
2810
  ];
2803
- function da({ small: t, disabled: n }) {
2811
+ function ua({ small: t, disabled: n }) {
2804
2812
  const r = W(), [a, l] = jt();
2805
2813
  return /* @__PURE__ */ i(
2806
2814
  "fieldset",
@@ -2828,14 +2836,14 @@ function da({ small: t, disabled: n }) {
2828
2836
  }
2829
2837
  );
2830
2838
  }
2831
- function ua({
2839
+ function ma({
2832
2840
  axis: t,
2833
2841
  label: n,
2834
2842
  children: r
2835
2843
  }) {
2836
2844
  return /* @__PURE__ */ e("div", { className: `scroller scroller--${t}`, children: /* @__PURE__ */ e("div", { className: "scroller__viewport", tabIndex: 0, role: "group", "aria-label": n, children: r }) });
2837
2845
  }
2838
- function ma({
2846
+ function ha({
2839
2847
  axis: t = "horizontal",
2840
2848
  contentName: n,
2841
2849
  label: r,
@@ -2879,7 +2887,7 @@ function ma({
2879
2887
  )
2880
2888
  ] });
2881
2889
  }
2882
- function ha({ label: t, unit: n, min: r = 0, max: a = 100, step: l = 1, defaultValue: s }) {
2890
+ function pa({ label: t, unit: n, min: r = 0, max: a = 100, step: l = 1, defaultValue: s }) {
2883
2891
  const [o, u] = E(s), c = W(), _ = (o - r) / (a - r) * 100;
2884
2892
  return /* @__PURE__ */ i("div", { className: "slider-field", children: [
2885
2893
  /* @__PURE__ */ i("div", { className: "slider-field__head", children: [
@@ -2905,7 +2913,7 @@ function ha({ label: t, unit: n, min: r = 0, max: a = 100, step: l = 1, defaultV
2905
2913
  )
2906
2914
  ] });
2907
2915
  }
2908
- function pa({ min: t = 0, max: n = 100, step: r = 1, defaultLow: a, defaultHigh: l, disabled: s }) {
2916
+ function fa({ min: t = 0, max: n = 100, step: r = 1, defaultLow: a, defaultHigh: l, disabled: s }) {
2909
2917
  const [o, u] = E(a), [c, _] = E(l), d = W(), b = W(), p = (o - t) / (n - t) * 100, m = (c - t) / (n - t) * 100, y = (f) => u(Math.min(f, c)), k = (f) => _(Math.max(f, o));
2910
2918
  return /* @__PURE__ */ i("div", { className: `range-slider${s ? " range-slider--disabled" : ""}`, children: [
2911
2919
  /* @__PURE__ */ e("label", { className: "sr-only", htmlFor: d, children: "区间下限" }),
@@ -2982,7 +2990,7 @@ function ne({ crumb: t }) {
2982
2990
  function ae() {
2983
2991
  return /* @__PURE__ */ e(O, { className: "breadcrumb__separator", "aria-hidden": "true", size: 16, strokeWidth: 2 });
2984
2992
  }
2985
- function fa({
2993
+ function _a({
2986
2994
  items: t,
2987
2995
  label: n,
2988
2996
  type: r = "text"
@@ -2993,7 +3001,7 @@ function fa({
2993
3001
  !a && s < t.length - 1 ? /* @__PURE__ */ e(ae, {}) : null
2994
3002
  ] }, l.label)) }) });
2995
3003
  }
2996
- function _a({ items: t, label: n }) {
3004
+ function ba({ items: t, label: n }) {
2997
3005
  const [r, a] = E(!1), l = t[0], s = t[t.length - 1], o = t.slice(1, -1);
2998
3006
  return /* @__PURE__ */ e("nav", { className: "breadcrumb", "aria-label": n, "data-expanded": r ? "true" : "false", children: /* @__PURE__ */ i("ol", { className: "breadcrumb__list", children: [
2999
3007
  /* @__PURE__ */ i("li", { className: "breadcrumb__item", children: [
@@ -3021,7 +3029,7 @@ function _a({ items: t, label: n }) {
3021
3029
  /* @__PURE__ */ e("li", { className: "breadcrumb__item", children: /* @__PURE__ */ e(ne, { crumb: s }) })
3022
3030
  ] }) });
3023
3031
  }
3024
- function ba({ open: t, onClose: n, title: r, side: a = "right", children: l, footer: s }) {
3032
+ function ya({ open: t, onClose: n, title: r, side: a = "right", children: l, footer: s }) {
3025
3033
  const o = I(null), u = W();
3026
3034
  if (B(() => {
3027
3035
  if (!t) return;
@@ -3066,7 +3074,7 @@ function ba({ open: t, onClose: n, title: r, side: a = "right", children: l, foo
3066
3074
  )
3067
3075
  ] });
3068
3076
  }
3069
- function ya({ label: t, entries: n, variant: r = "default", size: a = "md", align: l = "start", menuButtonLabel: s, icon: o }) {
3077
+ function ga({ label: t, entries: n, variant: r = "default", size: a = "md", align: l = "start", menuButtonLabel: s, icon: o }) {
3070
3078
  const [u, c] = E(!1), [_, d] = E(-1), b = I(null), p = I([]), m = I({ buffer: "", timer: 0 }), y = W(), k = n.map((h, x) => x);
3071
3079
  function f(h) {
3072
3080
  d(h), p.current[h]?.focus();
@@ -3159,7 +3167,7 @@ function ya({ label: t, entries: n, variant: r = "default", size: a = "md", alig
3159
3167
  ] });
3160
3168
  }
3161
3169
  const qt = (t) => t.type === "item" && !t.disabled && !t.locked || t.type === "link";
3162
- function ga({ label: t, entries: n, withChevron: r, align: a = "start", triggerContent: l }) {
3170
+ function Na({ label: t, entries: n, withChevron: r, align: a = "start", triggerContent: l }) {
3163
3171
  const [s, o] = E(!1), [u, c] = E({
3164
3172
  align: a,
3165
3173
  side: "bottom"
@@ -3172,8 +3180,8 @@ function ga({ label: t, entries: n, withChevron: r, align: a = "start", triggerC
3172
3180
  const M = g.getBoundingClientRect(), S = w.getBoundingClientRect();
3173
3181
  let $ = a;
3174
3182
  a === "start" && M.left + S.width > window.innerWidth ? $ = "end" : a === "end" && M.right - S.width < 0 && ($ = "start");
3175
- const T = M.bottom + S.height > window.innerHeight ? "top" : "bottom";
3176
- c({ align: $, side: T });
3183
+ const A = M.bottom + S.height > window.innerHeight ? "top" : "bottom";
3184
+ c({ align: $, side: A });
3177
3185
  }
3178
3186
  let h = 0;
3179
3187
  function x() {
@@ -3294,7 +3302,7 @@ function ga({ label: t, entries: n, withChevron: r, align: a = "start", triggerC
3294
3302
  ) : null
3295
3303
  ] });
3296
3304
  }
3297
- function Na({ options: t, defaultSelected: n = [], placeholder: r, onChange: a }) {
3305
+ function ka({ options: t, defaultSelected: n = [], placeholder: r, onChange: a }) {
3298
3306
  const [l, s] = E(!1), [o, u] = E(n), [c, _] = E({ row: 0, col: 0 }), d = I(null), b = I(null), p = I([]);
3299
3307
  function m(w) {
3300
3308
  u(w), a?.(w);
@@ -3373,8 +3381,8 @@ function Na({ options: t, defaultSelected: n = [], placeholder: r, onChange: a }
3373
3381
  /* @__PURE__ */ i(
3374
3382
  "button",
3375
3383
  {
3376
- ref: (T) => {
3377
- T && (p.current[M][0] = T);
3384
+ ref: (A) => {
3385
+ A && (p.current[M][0] = A);
3378
3386
  },
3379
3387
  type: "button",
3380
3388
  role: "option",
@@ -3393,8 +3401,8 @@ function Na({ options: t, defaultSelected: n = [], placeholder: r, onChange: a }
3393
3401
  /* @__PURE__ */ e(
3394
3402
  "button",
3395
3403
  {
3396
- ref: (T) => {
3397
- T && (p.current[M][1] = T);
3404
+ ref: (A) => {
3405
+ A && (p.current[M][1] = A);
3398
3406
  },
3399
3407
  type: "button",
3400
3408
  "aria-label": `${$.label}:${w}`,
@@ -3410,7 +3418,7 @@ function Na({ options: t, defaultSelected: n = [], placeholder: r, onChange: a }
3410
3418
  ] }) : null
3411
3419
  ] });
3412
3420
  }
3413
- function ka({ open: t, onClose: n, title: r, children: a, footer: l, initialFocusRef: s, dismissable: o = !0, sticky: u = !1 }) {
3421
+ function wa({ open: t, onClose: n, title: r, children: a, footer: l, initialFocusRef: s, dismissable: o = !0, sticky: u = !1 }) {
3414
3422
  const c = I(null), _ = W();
3415
3423
  if (B(() => {
3416
3424
  if (!t) return;
@@ -3467,7 +3475,7 @@ function ka({ open: t, onClose: n, title: r, children: a, footer: l, initialFocu
3467
3475
  )
3468
3476
  ] });
3469
3477
  }
3470
- function wa({ children: t }) {
3478
+ function va({ children: t }) {
3471
3479
  return /* @__PURE__ */ e("div", { className: "modal__inset", children: t });
3472
3480
  }
3473
3481
  const Ht = ["日", "一", "二", "三", "四", "五", "六"];
@@ -3600,16 +3608,16 @@ function Gt({
3600
3608
  ] }),
3601
3609
  /* @__PURE__ */ e("div", { className: "calendar__weekdays", "aria-hidden": "true", children: Ht.map((g, w) => /* @__PURE__ */ e("span", { className: "calendar__weekday", children: g }, `${g}-${w}`)) }),
3602
3610
  /* @__PURE__ */ e("div", { className: "calendar__grid", role: "grid", "aria-label": x, onKeyDown: C, children: f.map(({ date: g, inMonth: w }) => {
3603
- const M = !w || me(g, a, l), S = Y(g, N.start), $ = Y(g, N.end), T = !!N.start && !!N.end && !Y(N.start, N.end), V = [
3611
+ const M = !w || me(g, a, l), S = Y(g, N.start), $ = Y(g, N.end), A = !!N.start && !!N.end && !Y(N.start, N.end), V = [
3604
3612
  "calendar__cell",
3605
- T && z(g) > z(N.start) && z(g) < z(N.end) ? "calendar__cell--in-range" : "",
3606
- T && S ? "calendar__cell--range-start" : "",
3607
- T && $ ? "calendar__cell--range-end" : ""
3613
+ A && z(g) > z(N.start) && z(g) < z(N.end) ? "calendar__cell--in-range" : "",
3614
+ A && S ? "calendar__cell--range-start" : "",
3615
+ A && $ ? "calendar__cell--range-end" : ""
3608
3616
  ].filter(Boolean).join(" "), X = [
3609
3617
  "calendar__day",
3610
3618
  w ? "" : "calendar__day--outside",
3611
3619
  S && N.start ? "calendar__day--start" : "",
3612
- $ && T ? "calendar__day--end" : "",
3620
+ $ && A ? "calendar__day--end" : "",
3613
3621
  w && !M && Y(g, s) ? "calendar__day--today" : ""
3614
3622
  ].filter(Boolean).join(" ");
3615
3623
  return /* @__PURE__ */ e("div", { className: V, role: "gridcell", children: /* @__PURE__ */ e(
@@ -3661,16 +3669,13 @@ function Vt({
3661
3669
  "应用 ",
3662
3670
  /* @__PURE__ */ e("kbd", { children: "↵" })
3663
3671
  ] }),
3664
- a ? (
3665
- // 固定时区:只读文本,不可切换(Geist pinnedTimezone 实测——显为只读文本而非 select)。
3666
- /* @__PURE__ */ e("span", { className: "cal-inputs__tz cal-inputs__tz--pinned", children: a })
3667
- ) : /* @__PURE__ */ i("button", { type: "button", className: "cal-inputs__tz", children: [
3672
+ a ? /* @__PURE__ */ e("span", { className: "cal-inputs__tz cal-inputs__tz--pinned", children: a }) : /* @__PURE__ */ i("button", { type: "button", className: "cal-inputs__tz", children: [
3668
3673
  "本地 (Asia/Shanghai)",
3669
3674
  /* @__PURE__ */ e(K, { size: 13, strokeWidth: 2 })
3670
3675
  ] })
3671
3676
  ] });
3672
3677
  }
3673
- function va({
3678
+ function xa({
3674
3679
  layout: t = "vertical",
3675
3680
  trigger: n = "default",
3676
3681
  size: r = "large",
@@ -3786,7 +3791,7 @@ function va({
3786
3791
  ] });
3787
3792
  }
3788
3793
  const Xt = ["45m", "12 小时", "10d", "2 周", "上个月", "昨天", "今天"], Zt = ["6/1", "6/1 - 6/2", "6月1日", "6月1日 - 6月2日"];
3789
- function xa({
3794
+ function Ca({
3790
3795
  presets: t,
3791
3796
  activeLabel: n,
3792
3797
  onPick: r
@@ -3837,95 +3842,96 @@ function xa({
3837
3842
  }
3838
3843
  export {
3839
3844
  Et as Avatar,
3840
- Un as AvatarGroup,
3841
- Ln as Badge,
3842
- Fn as Banner,
3843
- On as Book,
3844
- fa as Breadcrumb,
3845
- qn as Browser,
3845
+ Yn as AvatarGroup,
3846
+ Rn as Badge,
3847
+ Kn as Banner,
3848
+ qn as Book,
3849
+ _a as Breadcrumb,
3850
+ Hn as Browser,
3846
3851
  $t as BrowserAddress,
3847
3852
  Ct as BrowserControls,
3848
3853
  xt as BrowserDots,
3849
- Hn as BrowserPlaceholder,
3854
+ Un as BrowserPlaceholder,
3850
3855
  Dt as BrowserTabs,
3851
3856
  an as Button,
3852
3857
  Gt as CalendarGrid,
3853
- Kn as Card,
3858
+ Pn as Card,
3854
3859
  dn as Checkbox,
3855
- mn as Choicebox,
3860
+ hn as Choicebox,
3856
3861
  gt as ClearButton,
3857
3862
  ln as ClearableInput,
3858
- _n as Code,
3859
- yn as CodeBlock,
3860
- bn as CodeInline,
3863
+ bn as Code,
3864
+ gn as CodeBlock,
3865
+ yn as CodeInline,
3861
3866
  je as CodeTokens,
3862
- kn as Collapse,
3863
- Nn as CollapseGroup,
3864
- _a as CollapsibleBreadcrumb,
3865
- hn as Combobox,
3866
- wn as CommandMenu,
3867
- jn as ContextCard,
3868
- zn as ContextMenu,
3867
+ wn as Collapse,
3868
+ kn as CollapseGroup,
3869
+ ba as CollapsibleBreadcrumb,
3870
+ pn as Combobox,
3871
+ vn as CommandMenu,
3872
+ On as ContextCard,
3873
+ Wn as ContextMenu,
3869
3874
  Pe as ControlOption,
3870
3875
  nn as CopyButton,
3871
- Pn as Description,
3872
- vn as DestructiveActionModal,
3873
- Wn as DotsMenu,
3874
- xn as Drawer,
3875
- Cn as EmptyState,
3876
- $n as Entity,
3877
- Mn as ErrorCard,
3878
- Dn as ErrorMessage,
3879
- En as Feedback,
3880
- In as Fieldset,
3881
- Sn as FileTree,
3876
+ jn as Description,
3877
+ xn as DestructiveActionModal,
3878
+ Bn as DotsMenu,
3879
+ Cn as Drawer,
3880
+ $n as EmptyState,
3881
+ Dn as Entity,
3882
+ En as ErrorCard,
3883
+ Mn as ErrorMessage,
3884
+ In as Feedback,
3885
+ Sn as Fieldset,
3886
+ Tn as FileTree,
3882
3887
  ye as FormField,
3883
- ea as Gauge,
3888
+ ta as Gauge,
3884
3889
  rn as Input,
3885
- ca as Kbd,
3886
- Tn as Label,
3887
- la as LoadMoreButton,
3888
- Gn as LoadingDots,
3889
- ga as Menu,
3890
- Vn as MiddleTruncate,
3891
- ka as Modal,
3892
- wa as ModalInset,
3893
- Na as MultiSelect,
3894
- na as Note,
3895
- aa as Pagination,
3896
- xa as PeriodCombobox,
3897
- Xn as Phone,
3898
- Rn as Pill,
3899
- ta as Progress,
3900
- Zn as ProjectBanner,
3890
+ da as Kbd,
3891
+ zn as Label,
3892
+ sa as LoadMoreButton,
3893
+ Vn as LoadingDots,
3894
+ Na as Menu,
3895
+ Xn as MiddleTruncate,
3896
+ wa as Modal,
3897
+ va as ModalInset,
3898
+ ka as MultiSelect,
3899
+ aa as Note,
3900
+ ra as Pagination,
3901
+ Ca as PeriodCombobox,
3902
+ Zn as Phone,
3903
+ Fn as Pill,
3904
+ na as Progress,
3905
+ Qn as ProjectBanner,
3901
3906
  un as Radio,
3902
- va as RangeField,
3907
+ xa as RangeField,
3903
3908
  Vt as RangeInputs,
3904
- pa as RangeSlider,
3905
- sa as RelativeTimeCard,
3906
- ua as Scroller,
3907
- ma as ScrollerWithButtons,
3909
+ fa as RangeSlider,
3910
+ oa as RelativeTimeCard,
3911
+ ma as Scroller,
3912
+ ha as ScrollerWithButtons,
3908
3913
  sn as SearchInput,
3909
3914
  cn as Select,
3910
3915
  An as Separator,
3911
- ba as Sheet,
3912
- ra as ShowMore,
3913
- Yn as Skeleton,
3914
- ha as Slider,
3915
- Jn as Snippet,
3916
- oa as Spinner,
3917
- ya as SplitButton,
3918
- Bn as StatusDot,
3919
- pn as Switch,
3920
- gn as Tabs,
3921
- Qn as TextWithCopyButton,
3916
+ ya as Sheet,
3917
+ la as ShowMore,
3918
+ Gn as Skeleton,
3919
+ pa as Slider,
3920
+ ea as Snippet,
3921
+ ia as Spinner,
3922
+ ga as SplitButton,
3923
+ Ln as StatusDot,
3924
+ fn as Switch,
3925
+ Nn as Tabs,
3926
+ Jn as TextWithCopyButton,
3922
3927
  on as Textarea,
3923
- da as ThemeSwitcher,
3928
+ ua as ThemeSwitcher,
3924
3929
  tn as ToastProvider,
3925
- fn as Toggle,
3930
+ _n as Toggle,
3926
3931
  vt as Tooltip,
3927
- ia as Video,
3932
+ ca as Video,
3928
3933
  P as addDays,
3929
3934
  ie as useCopy,
3935
+ mn as useRadio,
3930
3936
  bt as useToast
3931
3937
  };