@baolq/ui 0.1.0 → 1.0.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.
Files changed (100) hide show
  1. package/dist/components/{baole-ui/index.d.ts → index.d.ts} +1 -1
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.ts +1 -1
  4. package/dist/index.js +236 -201
  5. package/dist/index.js.map +1 -1
  6. package/dist/style.css +1 -1
  7. package/package.json +11 -9
  8. package/dist/components/baole-ui/utils.d.ts +0 -1
  9. /package/dist/components/{baole-ui/accordion.d.ts → accordion.d.ts} +0 -0
  10. /package/dist/components/{baole-ui/affix.d.ts → affix.d.ts} +0 -0
  11. /package/dist/components/{baole-ui/alert-dialog.d.ts → alert-dialog.d.ts} +0 -0
  12. /package/dist/components/{baole-ui/alert.d.ts → alert.d.ts} +0 -0
  13. /package/dist/components/{baole-ui/anchor.d.ts → anchor.d.ts} +0 -0
  14. /package/dist/components/{baole-ui/aspect-ratio.d.ts → aspect-ratio.d.ts} +0 -0
  15. /package/dist/components/{baole-ui/auto-complete.d.ts → auto-complete.d.ts} +0 -0
  16. /package/dist/components/{baole-ui/avatar.d.ts → avatar.d.ts} +0 -0
  17. /package/dist/components/{baole-ui/back-top.d.ts → back-top.d.ts} +0 -0
  18. /package/dist/components/{baole-ui/badge.d.ts → badge.d.ts} +0 -0
  19. /package/dist/components/{baole-ui/breadcrumb.d.ts → breadcrumb.d.ts} +0 -0
  20. /package/dist/components/{baole-ui/button.d.ts → button.d.ts} +0 -0
  21. /package/dist/components/{baole-ui/calendar.d.ts → calendar.d.ts} +0 -0
  22. /package/dist/components/{baole-ui/card.d.ts → card.d.ts} +0 -0
  23. /package/dist/components/{baole-ui/carousel.d.ts → carousel.d.ts} +0 -0
  24. /package/dist/components/{baole-ui/cascader.d.ts → cascader.d.ts} +0 -0
  25. /package/dist/components/{baole-ui/chart.d.ts → chart.d.ts} +0 -0
  26. /package/dist/components/{baole-ui/checkbox.d.ts → checkbox.d.ts} +0 -0
  27. /package/dist/components/{baole-ui/chip.d.ts → chip.d.ts} +0 -0
  28. /package/dist/components/{baole-ui/code.d.ts → code.d.ts} +0 -0
  29. /package/dist/components/{baole-ui/collapsible.d.ts → collapsible.d.ts} +0 -0
  30. /package/dist/components/{baole-ui/color-picker.d.ts → color-picker.d.ts} +0 -0
  31. /package/dist/components/{baole-ui/command.d.ts → command.d.ts} +0 -0
  32. /package/dist/components/{baole-ui/container.d.ts → container.d.ts} +0 -0
  33. /package/dist/components/{baole-ui/context-menu.d.ts → context-menu.d.ts} +0 -0
  34. /package/dist/components/{baole-ui/date-picker.d.ts → date-picker.d.ts} +0 -0
  35. /package/dist/components/{baole-ui/date-range-picker.d.ts → date-range-picker.d.ts} +0 -0
  36. /package/dist/components/{baole-ui/descriptions.d.ts → descriptions.d.ts} +0 -0
  37. /package/dist/components/{baole-ui/dialog.d.ts → dialog.d.ts} +0 -0
  38. /package/dist/components/{baole-ui/divider.d.ts → divider.d.ts} +0 -0
  39. /package/dist/components/{baole-ui/drawer.d.ts → drawer.d.ts} +0 -0
  40. /package/dist/components/{baole-ui/dropdown-menu.d.ts → dropdown-menu.d.ts} +0 -0
  41. /package/dist/components/{baole-ui/empty-state.d.ts → empty-state.d.ts} +0 -0
  42. /package/dist/components/{baole-ui/float-button.d.ts → float-button.d.ts} +0 -0
  43. /package/dist/components/{baole-ui/form.d.ts → form.d.ts} +0 -0
  44. /package/dist/components/{baole-ui/grid.d.ts → grid.d.ts} +0 -0
  45. /package/dist/components/{baole-ui/hover-card.d.ts → hover-card.d.ts} +0 -0
  46. /package/dist/components/{baole-ui/image.d.ts → image.d.ts} +0 -0
  47. /package/dist/components/{baole-ui/input-number.d.ts → input-number.d.ts} +0 -0
  48. /package/dist/components/{baole-ui/input-otp.d.ts → input-otp.d.ts} +0 -0
  49. /package/dist/components/{baole-ui/input.d.ts → input.d.ts} +0 -0
  50. /package/dist/components/{baole-ui/kbd.d.ts → kbd.d.ts} +0 -0
  51. /package/dist/components/{baole-ui/label.d.ts → label.d.ts} +0 -0
  52. /package/dist/components/{baole-ui/layout.d.ts → layout.d.ts} +0 -0
  53. /package/dist/components/{baole-ui/list.d.ts → list.d.ts} +0 -0
  54. /package/dist/components/{baole-ui/mentions.d.ts → mentions.d.ts} +0 -0
  55. /package/dist/components/{baole-ui/menubar.d.ts → menubar.d.ts} +0 -0
  56. /package/dist/components/{baole-ui/message.d.ts → message.d.ts} +0 -0
  57. /package/dist/components/{baole-ui/modal.d.ts → modal.d.ts} +0 -0
  58. /package/dist/components/{baole-ui/navigation-menu.d.ts → navigation-menu.d.ts} +0 -0
  59. /package/dist/components/{baole-ui/notification.d.ts → notification.d.ts} +0 -0
  60. /package/dist/components/{baole-ui/pagination.d.ts → pagination.d.ts} +0 -0
  61. /package/dist/components/{baole-ui/popover.d.ts → popover.d.ts} +0 -0
  62. /package/dist/components/{baole-ui/progress.d.ts → progress.d.ts} +0 -0
  63. /package/dist/components/{baole-ui/qrcode.d.ts → qrcode.d.ts} +0 -0
  64. /package/dist/components/{baole-ui/radio-group.d.ts → radio-group.d.ts} +0 -0
  65. /package/dist/components/{baole-ui/rating.d.ts → rating.d.ts} +0 -0
  66. /package/dist/components/{baole-ui/resizable.d.ts → resizable.d.ts} +0 -0
  67. /package/dist/components/{baole-ui/result.d.ts → result.d.ts} +0 -0
  68. /package/dist/components/{baole-ui/scroll-area.d.ts → scroll-area.d.ts} +0 -0
  69. /package/dist/components/{baole-ui/segmented.d.ts → segmented.d.ts} +0 -0
  70. /package/dist/components/{baole-ui/select.d.ts → select.d.ts} +0 -0
  71. /package/dist/components/{baole-ui/separator.d.ts → separator.d.ts} +0 -0
  72. /package/dist/components/{baole-ui/sheet.d.ts → sheet.d.ts} +0 -0
  73. /package/dist/components/{baole-ui/sidebar.d.ts → sidebar.d.ts} +0 -0
  74. /package/dist/components/{baole-ui/skeleton.d.ts → skeleton.d.ts} +0 -0
  75. /package/dist/components/{baole-ui/slider.d.ts → slider.d.ts} +0 -0
  76. /package/dist/components/{baole-ui/space.d.ts → space.d.ts} +0 -0
  77. /package/dist/components/{baole-ui/spinner.d.ts → spinner.d.ts} +0 -0
  78. /package/dist/components/{baole-ui/stack.d.ts → stack.d.ts} +0 -0
  79. /package/dist/components/{baole-ui/statistic.d.ts → statistic.d.ts} +0 -0
  80. /package/dist/components/{baole-ui/stepper.d.ts → stepper.d.ts} +0 -0
  81. /package/dist/components/{baole-ui/steps.d.ts → steps.d.ts} +0 -0
  82. /package/dist/components/{baole-ui/switch.d.ts → switch.d.ts} +0 -0
  83. /package/dist/components/{baole-ui/table.d.ts → table.d.ts} +0 -0
  84. /package/dist/components/{baole-ui/tabs.d.ts → tabs.d.ts} +0 -0
  85. /package/dist/components/{baole-ui/tag.d.ts → tag.d.ts} +0 -0
  86. /package/dist/components/{baole-ui/textarea.d.ts → textarea.d.ts} +0 -0
  87. /package/dist/components/{baole-ui/theme-provider.d.ts → theme-provider.d.ts} +0 -0
  88. /package/dist/components/{baole-ui/time-picker.d.ts → time-picker.d.ts} +0 -0
  89. /package/dist/components/{baole-ui/timeline.d.ts → timeline.d.ts} +0 -0
  90. /package/dist/components/{baole-ui/toaster.d.ts → toaster.d.ts} +0 -0
  91. /package/dist/components/{baole-ui/toggle-group.d.ts → toggle-group.d.ts} +0 -0
  92. /package/dist/components/{baole-ui/toggle.d.ts → toggle.d.ts} +0 -0
  93. /package/dist/components/{baole-ui/tooltip.d.ts → tooltip.d.ts} +0 -0
  94. /package/dist/components/{baole-ui/tour.d.ts → tour.d.ts} +0 -0
  95. /package/dist/components/{baole-ui/transfer.d.ts → transfer.d.ts} +0 -0
  96. /package/dist/components/{baole-ui/tree-select.d.ts → tree-select.d.ts} +0 -0
  97. /package/dist/components/{baole-ui/tree.d.ts → tree.d.ts} +0 -0
  98. /package/dist/components/{baole-ui/typography.d.ts → typography.d.ts} +0 -0
  99. /package/dist/components/{baole-ui/upload.d.ts → upload.d.ts} +0 -0
  100. /package/dist/components/{baole-ui/watermark.d.ts → watermark.d.ts} +0 -0
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './components/baole-ui/index'
1
+ export * from './components/index'
2
2
  export {}
package/dist/index.js CHANGED
@@ -2926,23 +2926,9 @@ const Ua = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ o(
2926
2926
  }
2927
2927
  ));
2928
2928
  Ua.displayName = "CardHeader";
2929
- const Xa = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ o(
2930
- "h3",
2931
- {
2932
- ref: r,
2933
- className: i("text-lg text-white", e),
2934
- ...t
2935
- }
2936
- ));
2929
+ const Xa = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ o("h3", { ref: r, className: i("text-lg text-white", e), ...t }));
2937
2930
  Xa.displayName = "CardTitle";
2938
- const Qa = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ o(
2939
- "p",
2940
- {
2941
- ref: r,
2942
- className: i("text-sm text-white/60", e),
2943
- ...t
2944
- }
2945
- ));
2931
+ const Qa = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ o("p", { ref: r, className: i("text-sm text-white/60", e), ...t }));
2946
2932
  Qa.displayName = "CardDescription";
2947
2933
  const Ja = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ o("div", { ref: r, className: i("pt-0", e), ...t }));
2948
2934
  Ja.displayName = "CardContent";
@@ -2955,7 +2941,14 @@ const Za = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ o(
2955
2941
  }
2956
2942
  ));
2957
2943
  Za.displayName = "CardFooter";
2958
- const eo = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ o("div", { ref: r, className: i("absolute top-4 right-4", e), ...t }));
2944
+ const eo = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ o(
2945
+ "div",
2946
+ {
2947
+ ref: r,
2948
+ className: i("absolute top-4 right-4", e),
2949
+ ...t
2950
+ }
2951
+ ));
2959
2952
  eo.displayName = "CardAction";
2960
2953
  const to = Y(
2961
2954
  "inline-flex items-center font-medium transition-colors border",
@@ -5045,7 +5038,13 @@ const Ts = l.forwardRef(
5045
5038
  );
5046
5039
  Ts.displayName = "DatePicker";
5047
5040
  const zs = l.forwardRef(
5048
- ({ dateRange: e, onDateRangeChange: t, placeholder: r = "Pick a date range", disabled: a, className: s }, n) => /* @__PURE__ */ p(Me, { children: [
5041
+ ({
5042
+ dateRange: e,
5043
+ onDateRangeChange: t,
5044
+ placeholder: r = "Pick a date range",
5045
+ disabled: a,
5046
+ className: s
5047
+ }, n) => /* @__PURE__ */ p(Me, { children: [
5049
5048
  /* @__PURE__ */ o(Ce, { asChild: !0, children: /* @__PURE__ */ p(
5050
5049
  H,
5051
5050
  {
@@ -5124,7 +5123,15 @@ const Is = l.forwardRef(
5124
5123
  placeholder: m = "Select time",
5125
5124
  className: f
5126
5125
  }, b) => {
5127
- const [v, h] = l.useState(t), [y, g] = l.useState(!1), u = e ?? v, w = a === "12" ? Array.from({ length: 12 }, (x, S) => S + 1) : Array.from({ length: 24 }, (x, S) => S), N = Array.from({ length: 60 / s }, (x, S) => S * s), P = Array.from({ length: 60 / n }, (x, S) => S * n), R = () => {
5126
+ const [v, h] = l.useState(
5127
+ t
5128
+ ), [y, g] = l.useState(!1), u = e ?? v, w = a === "12" ? Array.from({ length: 12 }, (x, S) => S + 1) : Array.from({ length: 24 }, (x, S) => S), N = Array.from(
5129
+ { length: 60 / s },
5130
+ (x, S) => S * s
5131
+ ), P = Array.from(
5132
+ { length: 60 / n },
5133
+ (x, S) => S * n
5134
+ ), R = () => {
5128
5135
  if (!u) return m;
5129
5136
  let x = u.getHours();
5130
5137
  const S = u.getMinutes(), k = u.getSeconds();
@@ -5362,52 +5369,45 @@ const As = l.forwardRef(
5362
5369
  onMouseLeave: g,
5363
5370
  children: Array.from({ length: r }).map((w, N) => {
5364
5371
  const P = N < Math.floor(u), R = n && N === Math.floor(u) && u % 1 !== 0;
5365
- return /* @__PURE__ */ p(
5366
- "div",
5367
- {
5368
- className: "relative inline-flex cursor-pointer",
5369
- children: [
5370
- n && /* @__PURE__ */ o(
5371
- "div",
5372
- {
5373
- className: "absolute inset-0 w-1/2 z-10",
5374
- onClick: () => h(N, !0),
5375
- onMouseEnter: () => y(N, !0)
5376
- }
5377
- ),
5378
- /* @__PURE__ */ p(
5379
- "div",
5380
- {
5381
- className: "relative",
5382
- onClick: () => h(N, !1),
5383
- onMouseEnter: () => y(N, !1),
5384
- children: [
5385
- /* @__PURE__ */ o(
5386
- jt,
5387
- {
5388
- className: i(
5389
- v[c],
5390
- "transition-all",
5391
- P || R ? "fill-[var(--color-primary)] text-[var(--color-primary)]" : "text-[var(--color-border-strong)]"
5392
- )
5393
- }
5394
- ),
5395
- R && /* @__PURE__ */ o("div", { className: "absolute inset-0 overflow-hidden w-1/2", children: /* @__PURE__ */ o(
5396
- jt,
5397
- {
5398
- className: i(
5399
- v[c],
5400
- "fill-[var(--color-primary)] text-[var(--color-primary)]"
5401
- )
5402
- }
5403
- ) })
5404
- ]
5405
- }
5406
- )
5407
- ]
5408
- },
5409
- N
5410
- );
5372
+ return /* @__PURE__ */ p("div", { className: "relative inline-flex cursor-pointer", children: [
5373
+ n && /* @__PURE__ */ o(
5374
+ "div",
5375
+ {
5376
+ className: "absolute inset-0 w-1/2 z-10",
5377
+ onClick: () => h(N, !0),
5378
+ onMouseEnter: () => y(N, !0)
5379
+ }
5380
+ ),
5381
+ /* @__PURE__ */ p(
5382
+ "div",
5383
+ {
5384
+ className: "relative",
5385
+ onClick: () => h(N, !1),
5386
+ onMouseEnter: () => y(N, !1),
5387
+ children: [
5388
+ /* @__PURE__ */ o(
5389
+ jt,
5390
+ {
5391
+ className: i(
5392
+ v[c],
5393
+ "transition-all",
5394
+ P || R ? "fill-[var(--color-primary)] text-[var(--color-primary)]" : "text-[var(--color-border-strong)]"
5395
+ )
5396
+ }
5397
+ ),
5398
+ R && /* @__PURE__ */ o("div", { className: "absolute inset-0 overflow-hidden w-1/2", children: /* @__PURE__ */ o(
5399
+ jt,
5400
+ {
5401
+ className: i(
5402
+ v[c],
5403
+ "fill-[var(--color-primary)] text-[var(--color-primary)]"
5404
+ )
5405
+ }
5406
+ ) })
5407
+ ]
5408
+ }
5409
+ )
5410
+ ] }, N);
5411
5411
  })
5412
5412
  }
5413
5413
  );
@@ -5647,7 +5647,10 @@ const Os = l.forwardRef(
5647
5647
  rows: m = 3,
5648
5648
  className: f
5649
5649
  }, b) => {
5650
- const [v, h] = l.useState(r), [y, g] = l.useState(!1), [u, w] = l.useState(""), [N, P] = l.useState({ top: 0, left: 0 }), [R, C] = l.useState(0), M = l.useRef(null), L = l.useRef(null), x = t ?? v, S = l.useMemo(() => u ? e.filter(
5650
+ const [v, h] = l.useState(r), [y, g] = l.useState(!1), [u, w] = l.useState(""), [N, P] = l.useState({
5651
+ top: 0,
5652
+ left: 0
5653
+ }), [R, C] = l.useState(0), M = l.useRef(null), L = l.useRef(null), x = t ?? v, S = l.useMemo(() => u ? e.filter(
5651
5654
  (D) => D.label.toLowerCase().includes(u.toLowerCase())
5652
5655
  ) : e, [e, u]);
5653
5656
  l.useEffect(() => {
@@ -5659,11 +5662,15 @@ const Os = l.forwardRef(
5659
5662
  const k = (D) => {
5660
5663
  const O = D.target.value;
5661
5664
  h(O), a == null || a(O);
5662
- const ee = D.target.selectionStart, G = O.slice(0, ee).match(new RegExp(`${n}(\\w*)$`));
5665
+ const ee = D.target.selectionStart, G = O.slice(0, ee).match(
5666
+ new RegExp(`${n}(\\w*)$`)
5667
+ );
5663
5668
  G ? (w(G[1]), g(!0), C(0)) : g(!1);
5664
5669
  }, T = (D) => {
5665
5670
  if (!M.current) return;
5666
- const O = M.current.selectionStart, ee = x.slice(0, O), oe = x.slice(O), G = ee.match(new RegExp(`${n}(\\w*)$`));
5671
+ const O = M.current.selectionStart, ee = x.slice(0, O), oe = x.slice(O), G = ee.match(
5672
+ new RegExp(`${n}(\\w*)$`)
5673
+ );
5667
5674
  if (!G) return;
5668
5675
  const te = ee.slice(0, -G[0].length), A = `${te}${n}${D.value} ${oe}`;
5669
5676
  h(A), a == null || a(A), s == null || s(D), g(!1), setTimeout(() => {
@@ -5759,7 +5766,9 @@ const Fs = l.forwardRef(
5759
5766
  changeOnSelect: c = !1,
5760
5767
  className: d
5761
5768
  }, m) => {
5762
- const [f, b] = l.useState(r), [v, h] = l.useState(!1), [y, g] = l.useState([e]), u = t ?? f, w = (R) => {
5769
+ const [f, b] = l.useState(r), [v, h] = l.useState(!1), [y, g] = l.useState([
5770
+ e
5771
+ ]), u = t ?? f, w = (R) => {
5763
5772
  const C = [];
5764
5773
  let M = e;
5765
5774
  for (const L of R) {
@@ -5836,7 +5845,11 @@ const Vs = l.forwardRef(
5836
5845
  showSearch: c = !1,
5837
5846
  className: d
5838
5847
  }, m) => {
5839
- const [f, b] = l.useState([]), [v, h] = l.useState([]), [y, g] = l.useState(""), [u, w] = l.useState(""), N = e.filter((T) => !t.includes(T.key)), P = e.filter((T) => t.includes(T.key)), R = N.filter(
5848
+ const [f, b] = l.useState([]), [v, h] = l.useState([]), [y, g] = l.useState(""), [u, w] = l.useState(""), N = e.filter(
5849
+ (T) => !t.includes(T.key)
5850
+ ), P = e.filter(
5851
+ (T) => t.includes(T.key)
5852
+ ), R = N.filter(
5840
5853
  (T) => T.title.toLowerCase().includes(y.toLowerCase())
5841
5854
  ), C = P.filter(
5842
5855
  (T) => T.title.toLowerCase().includes(u.toLowerCase())
@@ -5850,7 +5863,9 @@ const Vs = l.forwardRef(
5850
5863
  const T = [...t, ...f];
5851
5864
  a == null || a(T, "right", f), b([]);
5852
5865
  }, S = () => {
5853
- const T = t.filter((j) => !v.includes(j));
5866
+ const T = t.filter(
5867
+ (j) => !v.includes(j)
5868
+ );
5854
5869
  a == null || a(T, "left", v), h([]);
5855
5870
  }, k = (T, j, D, O, ee, oe) => /* @__PURE__ */ p("div", { className: "flex flex-col w-64 h-80 border border-[var(--color-border)] rounded-lg bg-[var(--color-bg-glass)] backdrop-blur-[var(--blur-glass)]", children: [
5856
5871
  /* @__PURE__ */ p("div", { className: "p-3 border-b border-[var(--color-border)]", children: [
@@ -6655,7 +6670,10 @@ const xc = ne.Trigger, bn = ne.Portal, wc = ne.Close, Ir = l.forwardRef(({ class
6655
6670
  ne.Overlay,
6656
6671
  {
6657
6672
  ref: r,
6658
- className: i("fixed inset-0 z-50 bg-[var(--color-bg-overlay)] backdrop-blur-sm", e),
6673
+ className: i(
6674
+ "fixed inset-0 z-50 bg-[var(--color-bg-overlay)] backdrop-blur-sm",
6675
+ e
6676
+ ),
6659
6677
  ...t
6660
6678
  }
6661
6679
  ));
@@ -6959,22 +6977,29 @@ const Lr = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ o(
6959
6977
  }
6960
6978
  ));
6961
6979
  Lr.displayName = X.displayName;
6962
- const kc = ({ children: e, ...t }) => /* @__PURE__ */ o(Zs, { ...t, children: /* @__PURE__ */ o(Tr, { className: "overflow-hidden p-0", children: /* @__PURE__ */ o(Lr, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-[var(--color-text-muted)] [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), Mn = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ p("div", { className: "flex items-center border-b border-[var(--color-border)] px-3", "cmdk-input-wrapper": "", children: [
6963
- /* @__PURE__ */ o(qr, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
6964
- /* @__PURE__ */ o(
6965
- X.Input,
6966
- {
6967
- ref: r,
6968
- className: i(
6969
- "flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none",
6970
- "placeholder:text-[var(--color-text-placeholder)]",
6971
- "disabled:cursor-not-allowed disabled:opacity-50",
6972
- e
6973
- ),
6974
- ...t
6975
- }
6976
- )
6977
- ] }));
6980
+ const kc = ({ children: e, ...t }) => /* @__PURE__ */ o(Zs, { ...t, children: /* @__PURE__ */ o(Tr, { className: "overflow-hidden p-0", children: /* @__PURE__ */ o(Lr, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-[var(--color-text-muted)] [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), Mn = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ p(
6981
+ "div",
6982
+ {
6983
+ className: "flex items-center border-b border-[var(--color-border)] px-3",
6984
+ "cmdk-input-wrapper": "",
6985
+ children: [
6986
+ /* @__PURE__ */ o(qr, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
6987
+ /* @__PURE__ */ o(
6988
+ X.Input,
6989
+ {
6990
+ ref: r,
6991
+ className: i(
6992
+ "flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none",
6993
+ "placeholder:text-[var(--color-text-placeholder)]",
6994
+ "disabled:cursor-not-allowed disabled:opacity-50",
6995
+ e
6996
+ ),
6997
+ ...t
6998
+ }
6999
+ )
7000
+ ]
7001
+ }
7002
+ ));
6978
7003
  Mn.displayName = X.Input.displayName;
6979
7004
  const Cn = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ o(
6980
7005
  X.List,
@@ -7093,10 +7118,7 @@ const Rc = he.Root, On = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE_
7093
7118
  he.Item,
7094
7119
  {
7095
7120
  ref: r,
7096
- className: i(
7097
- "border-b border-[var(--color-border)]",
7098
- e
7099
- ),
7121
+ className: i("border-b border-[var(--color-border)]", e),
7100
7122
  ...t
7101
7123
  }
7102
7124
  ));
@@ -7125,7 +7147,13 @@ const Vn = l.forwardRef(({ className: e, children: t, ...r }, a) => /* @__PURE__
7125
7147
  ref: a,
7126
7148
  className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
7127
7149
  ...r,
7128
- children: /* @__PURE__ */ o("div", { className: i("pb-4 pt-0 text-[var(--color-text-secondary)]", e), children: t })
7150
+ children: /* @__PURE__ */ o(
7151
+ "div",
7152
+ {
7153
+ className: i("pb-4 pt-0 text-[var(--color-text-secondary)]", e),
7154
+ children: t
7155
+ }
7156
+ )
7129
7157
  }
7130
7158
  ));
7131
7159
  Vn.displayName = he.Content.displayName;
@@ -7885,7 +7913,10 @@ const Al = l.forwardRef(
7885
7913
  const h = () => {
7886
7914
  const y = window.scrollY + (s ?? window.innerHeight / 2), g = e.flatMap((w) => {
7887
7915
  var R;
7888
- const N = { href: w.href, el: document.querySelector(w.href) }, P = ((R = w.children) == null ? void 0 : R.map((C) => ({
7916
+ const N = {
7917
+ href: w.href,
7918
+ el: document.querySelector(w.href)
7919
+ }, P = ((R = w.children) == null ? void 0 : R.map((C) => ({
7889
7920
  href: C.href,
7890
7921
  el: document.querySelector(C.href)
7891
7922
  }))) || [];
@@ -8214,7 +8245,10 @@ const Vl = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ o(
8214
8245
  "div",
8215
8246
  {
8216
8247
  ref: r,
8217
- className: i("flex h-16 items-center border-b border-[var(--color-border)] px-4", e),
8248
+ className: i(
8249
+ "flex h-16 items-center border-b border-[var(--color-border)] px-4",
8250
+ e
8251
+ ),
8218
8252
  ...t
8219
8253
  }
8220
8254
  ));
@@ -8237,14 +8271,7 @@ const Wl = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ o(
8237
8271
  }
8238
8272
  ));
8239
8273
  Wl.displayName = "SidebarFooter";
8240
- const _l = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ o(
8241
- "div",
8242
- {
8243
- ref: r,
8244
- className: i("px-3 py-2", e),
8245
- ...t
8246
- }
8247
- ));
8274
+ const _l = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ o("div", { ref: r, className: i("px-3 py-2", e), ...t }));
8248
8275
  _l.displayName = "SidebarGroup";
8249
8276
  const Bl = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ o(
8250
8277
  "div",
@@ -8259,33 +8286,24 @@ const Bl = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ o(
8259
8286
  }
8260
8287
  ));
8261
8288
  Bl.displayName = "SidebarGroupLabel";
8262
- const Yl = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ o(
8263
- "div",
8289
+ const Yl = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ o("div", { ref: r, className: i("space-y-1", e), ...t }));
8290
+ Yl.displayName = "SidebarGroupContent";
8291
+ const Hl = l.forwardRef(({ className: e, icon: t, active: r, children: a, ...s }, n) => /* @__PURE__ */ p(
8292
+ "a",
8264
8293
  {
8265
- ref: r,
8266
- className: i("space-y-1", e),
8267
- ...t
8294
+ ref: n,
8295
+ className: i(
8296
+ "flex items-center gap-3 rounded-lg px-3 py-2 text-sm transition-colors",
8297
+ r ? "bg-[var(--color-bg-glass)] text-[var(--color-text)] font-medium" : "text-[var(--color-text-secondary)] hover:bg-[var(--color-bg-glass-hover)] hover:text-[var(--color-text)]",
8298
+ e
8299
+ ),
8300
+ ...s,
8301
+ children: [
8302
+ t && /* @__PURE__ */ o("span", { className: "shrink-0", children: t }),
8303
+ /* @__PURE__ */ o("span", { className: "truncate", children: a })
8304
+ ]
8268
8305
  }
8269
8306
  ));
8270
- Yl.displayName = "SidebarGroupContent";
8271
- const Hl = l.forwardRef(
8272
- ({ className: e, icon: t, active: r, children: a, ...s }, n) => /* @__PURE__ */ p(
8273
- "a",
8274
- {
8275
- ref: n,
8276
- className: i(
8277
- "flex items-center gap-3 rounded-lg px-3 py-2 text-sm transition-colors",
8278
- r ? "bg-[var(--color-bg-glass)] text-[var(--color-text)] font-medium" : "text-[var(--color-text-secondary)] hover:bg-[var(--color-bg-glass-hover)] hover:text-[var(--color-text)]",
8279
- e
8280
- ),
8281
- ...s,
8282
- children: [
8283
- t && /* @__PURE__ */ o("span", { className: "shrink-0", children: t }),
8284
- /* @__PURE__ */ o("span", { className: "truncate", children: a })
8285
- ]
8286
- }
8287
- )
8288
- );
8289
8307
  Hl.displayName = "SidebarMenuItem";
8290
8308
  const $l = Y(
8291
8309
  "relative flex shrink-0 overflow-hidden rounded-full border-2 border-[var(--color-border)]",
@@ -8933,10 +8951,7 @@ const fi = Y(
8933
8951
  "border border-[var(--color-border)]",
8934
8952
  "text-[var(--color-text)]"
8935
8953
  ],
8936
- solid: [
8937
- "bg-[var(--color-bg-elevated)]",
8938
- "text-[var(--color-text)]"
8939
- ],
8954
+ solid: ["bg-[var(--color-bg-elevated)]", "text-[var(--color-text)]"],
8940
8955
  gradient: [
8941
8956
  "bg-gradient-to-r from-[var(--color-primary)] to-[#ec4899]",
8942
8957
  "text-white shadow-[var(--glow-primary)]"
@@ -8949,14 +8964,8 @@ const fi = Y(
8949
8964
  "bg-yellow-500/20 border border-yellow-500/50",
8950
8965
  "text-yellow-500"
8951
8966
  ],
8952
- error: [
8953
- "bg-red-500/20 border border-red-500/50",
8954
- "text-red-500"
8955
- ],
8956
- info: [
8957
- "bg-blue-500/20 border border-blue-500/50",
8958
- "text-blue-500"
8959
- ]
8967
+ error: ["bg-red-500/20 border border-red-500/50", "text-red-500"],
8968
+ info: ["bg-blue-500/20 border border-blue-500/50", "text-blue-500"]
8960
8969
  }
8961
8970
  },
8962
8971
  defaultVariants: {
@@ -8964,15 +8973,7 @@ const fi = Y(
8964
8973
  }
8965
8974
  }
8966
8975
  ), pi = l.forwardRef(
8967
- ({
8968
- className: e,
8969
- variant: t,
8970
- closable: r,
8971
- onClose: a,
8972
- icon: s,
8973
- children: n,
8974
- ...c
8975
- }, d) => /* @__PURE__ */ p(
8976
+ ({ className: e, variant: t, closable: r, onClose: a, icon: s, children: n, ...c }, d) => /* @__PURE__ */ p(
8976
8977
  "span",
8977
8978
  {
8978
8979
  ref: d,
@@ -9111,12 +9112,33 @@ const hi = l.forwardRef(
9111
9112
  [t - u - y, y],
9112
9113
  [y, t - u - y]
9113
9114
  ].forEach(([N, P]) => {
9114
- v.fillStyle = s, v.fillRect(N, P, u, u), v.fillStyle = a, v.fillRect(N + h, P + h, u - 2 * h, u - 2 * h), v.fillStyle = s, v.fillRect(N + 2 * h, P + 2 * h, u - 4 * h, u - 4 * h);
9115
+ v.fillStyle = s, v.fillRect(N, P, u, u), v.fillStyle = a, v.fillRect(
9116
+ N + h,
9117
+ P + h,
9118
+ u - 2 * h,
9119
+ u - 2 * h
9120
+ ), v.fillStyle = s, v.fillRect(
9121
+ N + 2 * h,
9122
+ P + 2 * h,
9123
+ u - 4 * h,
9124
+ u - 4 * h
9125
+ );
9115
9126
  }), c) {
9116
9127
  const N = new Image();
9117
9128
  N.onload = () => {
9118
9129
  const P = (t - c.width) / 2, R = (t - c.height) / 2;
9119
- c.excavate && (v.fillStyle = a, v.fillRect(P - 5, R - 5, c.width + 10, c.height + 10)), v.drawImage(N, P, R, c.width, c.height);
9130
+ c.excavate && (v.fillStyle = a, v.fillRect(
9131
+ P - 5,
9132
+ R - 5,
9133
+ c.width + 10,
9134
+ c.height + 10
9135
+ )), v.drawImage(
9136
+ N,
9137
+ P,
9138
+ R,
9139
+ c.width,
9140
+ c.height
9141
+ );
9120
9142
  }, N.src = c.src;
9121
9143
  }
9122
9144
  }, [e, t, r, a, s, n, c]), /* @__PURE__ */ o(
@@ -9135,22 +9157,33 @@ const hi = l.forwardRef(
9135
9157
  }
9136
9158
  );
9137
9159
  hi.displayName = "QRCode";
9138
- const mt = ({ active: e, payload: t, label: r }) => !e || !t || !t.length ? null : /* @__PURE__ */ p("div", { className: "rounded-lg border border-[var(--color-border)] bg-[var(--color-bg-elevated)] backdrop-blur-[var(--blur-glass)] p-3 shadow-[var(--shadow-glass)]", children: [
9160
+ const mt = ({
9161
+ active: e,
9162
+ payload: t,
9163
+ label: r
9164
+ }) => !e || !t || !t.length ? null : /* @__PURE__ */ p("div", { className: "rounded-lg border border-[var(--color-border)] bg-[var(--color-bg-elevated)] backdrop-blur-[var(--blur-glass)] p-3 shadow-[var(--shadow-glass)]", children: [
9139
9165
  /* @__PURE__ */ o("p", { className: "text-sm font-medium text-[var(--color-text)] mb-2", children: r }),
9140
- t.map((a, s) => /* @__PURE__ */ p("div", { className: "flex items-center gap-2 text-xs text-[var(--color-text-secondary)]", children: [
9141
- /* @__PURE__ */ o(
9142
- "span",
9143
- {
9144
- className: "w-3 h-3 rounded-full",
9145
- style: { backgroundColor: a.color }
9146
- }
9147
- ),
9148
- /* @__PURE__ */ p("span", { children: [
9149
- a.name,
9150
- ":"
9151
- ] }),
9152
- /* @__PURE__ */ o("span", { className: "font-medium text-[var(--color-text)]", children: a.value })
9153
- ] }, s))
9166
+ t.map((a, s) => /* @__PURE__ */ p(
9167
+ "div",
9168
+ {
9169
+ className: "flex items-center gap-2 text-xs text-[var(--color-text-secondary)]",
9170
+ children: [
9171
+ /* @__PURE__ */ o(
9172
+ "span",
9173
+ {
9174
+ className: "w-3 h-3 rounded-full",
9175
+ style: { backgroundColor: a.color }
9176
+ }
9177
+ ),
9178
+ /* @__PURE__ */ p("span", { children: [
9179
+ a.name,
9180
+ ":"
9181
+ ] }),
9182
+ /* @__PURE__ */ o("span", { className: "font-medium text-[var(--color-text)]", children: a.value })
9183
+ ]
9184
+ },
9185
+ s
9186
+ ))
9154
9187
  ] }), Hc = ({
9155
9188
  data: e,
9156
9189
  xKey: t,
@@ -9191,7 +9224,10 @@ const mt = ({ active: e, payload: t, label: r }) => !e || !t || !t.length ? null
9191
9224
  n && /* @__PURE__ */ o(
9192
9225
  nt,
9193
9226
  {
9194
- wrapperStyle: { color: "var(--color-text-secondary)", fontSize: 12 }
9227
+ wrapperStyle: {
9228
+ color: "var(--color-text-secondary)",
9229
+ fontSize: 12
9230
+ }
9195
9231
  }
9196
9232
  ),
9197
9233
  r.map((d, m) => /* @__PURE__ */ o(
@@ -9247,7 +9283,10 @@ const mt = ({ active: e, payload: t, label: r }) => !e || !t || !t.length ? null
9247
9283
  n && /* @__PURE__ */ o(
9248
9284
  nt,
9249
9285
  {
9250
- wrapperStyle: { color: "var(--color-text-secondary)", fontSize: 12 }
9286
+ wrapperStyle: {
9287
+ color: "var(--color-text-secondary)",
9288
+ fontSize: 12
9289
+ }
9251
9290
  }
9252
9291
  ),
9253
9292
  r.map((d, m) => /* @__PURE__ */ o(
@@ -9300,7 +9339,10 @@ const mt = ({ active: e, payload: t, label: r }) => !e || !t || !t.length ? null
9300
9339
  n && /* @__PURE__ */ o(
9301
9340
  nt,
9302
9341
  {
9303
- wrapperStyle: { color: "var(--color-text-secondary)", fontSize: 12 }
9342
+ wrapperStyle: {
9343
+ color: "var(--color-text-secondary)",
9344
+ fontSize: 12
9345
+ }
9304
9346
  }
9305
9347
  ),
9306
9348
  r.map((d, m) => /* @__PURE__ */ o(
@@ -9348,18 +9390,14 @@ const mt = ({ active: e, payload: t, label: r }) => !e || !t || !t.length ? null
9348
9390
  a && /* @__PURE__ */ o(
9349
9391
  nt,
9350
9392
  {
9351
- wrapperStyle: { color: "var(--color-text-secondary)", fontSize: 12 }
9393
+ wrapperStyle: {
9394
+ color: "var(--color-text-secondary)",
9395
+ fontSize: 12
9396
+ }
9352
9397
  }
9353
9398
  )
9354
9399
  ] }) }) });
9355
- }, vi = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ o(
9356
- "div",
9357
- {
9358
- ref: r,
9359
- className: i("flex min-h-screen", e),
9360
- ...t
9361
- }
9362
- ));
9400
+ }, vi = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ o("div", { ref: r, className: i("flex min-h-screen", e), ...t }));
9363
9401
  vi.displayName = "Layout";
9364
9402
  const gi = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ o(
9365
9403
  "header",
@@ -9494,10 +9532,7 @@ const ki = l.forwardRef(
9494
9532
  "div",
9495
9533
  {
9496
9534
  ref: n,
9497
- className: i(
9498
- "flex items-center gap-3 my-4",
9499
- e
9500
- ),
9535
+ className: i("flex items-center gap-3 my-4", e),
9501
9536
  ...s,
9502
9537
  children: [
9503
9538
  /* @__PURE__ */ o(
@@ -9762,7 +9797,10 @@ const Di = Y("inline-flex", {
9762
9797
  "div",
9763
9798
  {
9764
9799
  ref: m,
9765
- className: i(Di({ direction: t, size: r, align: a, wrap: s }), e),
9800
+ className: i(
9801
+ Di({ direction: t, size: r, align: a, wrap: s }),
9802
+ e
9803
+ ),
9766
9804
  ...d,
9767
9805
  children: f.map((b, v) => /* @__PURE__ */ p(l.Fragment, { children: [
9768
9806
  b,
@@ -9774,14 +9812,7 @@ const Di = Y("inline-flex", {
9774
9812
  );
9775
9813
  Li.displayName = "Space";
9776
9814
  const Ai = l.forwardRef(
9777
- ({
9778
- offsetTop: e,
9779
- offsetBottom: t,
9780
- target: r,
9781
- onChange: a,
9782
- className: s,
9783
- children: n
9784
- }, c) => {
9815
+ ({ offsetTop: e, offsetBottom: t, target: r, onChange: a, className: s, children: n }, c) => {
9785
9816
  var y;
9786
9817
  const [d, m] = l.useState(!1), [f, b] = l.useState({}), v = l.useRef(null), h = l.useRef(null);
9787
9818
  return l.useEffect(() => {
@@ -9831,12 +9862,7 @@ const Ai = l.forwardRef(
9831
9862
  );
9832
9863
  Ai.displayName = "Affix";
9833
9864
  const Ei = l.forwardRef(
9834
- ({
9835
- visibilityHeight: e = 400,
9836
- target: t,
9837
- onClick: r,
9838
- className: a
9839
- }, s) => {
9865
+ ({ visibilityHeight: e = 400, target: t, onClick: r, className: a }, s) => {
9840
9866
  const [n, c] = l.useState(!1);
9841
9867
  l.useEffect(() => {
9842
9868
  const m = t ? t() : window, f = () => {
@@ -9998,7 +10024,19 @@ const Oi = l.forwardRef(
9998
10024
  R.font = `${g} ${y * C}px ${u}`, R.fillStyle = h, R.textAlign = "left", R.textBaseline = "top", (Array.isArray(t) ? t : [t]).forEach((S, k) => {
9999
10025
  R.fillText(S, 0, k * (y * C + 10));
10000
10026
  }), N(P.toDataURL());
10001
- }, [t, r, a, s, c, h, y, g, u, m, f]), /* @__PURE__ */ p("div", { ref: v, className: i("relative", b), children: [
10027
+ }, [
10028
+ t,
10029
+ r,
10030
+ a,
10031
+ s,
10032
+ c,
10033
+ h,
10034
+ y,
10035
+ g,
10036
+ u,
10037
+ m,
10038
+ f
10039
+ ]), /* @__PURE__ */ p("div", { ref: v, className: i("relative", b), children: [
10002
10040
  e,
10003
10041
  /* @__PURE__ */ o(
10004
10042
  "div",
@@ -10237,10 +10275,7 @@ const Zc = Tt.Root, ed = Tt.CollapsibleTrigger, td = Tt.CollapsibleContent, Ki =
10237
10275
  "bg-gradient-to-r from-[var(--color-primary)] to-[#ec4899]",
10238
10276
  "text-white shadow-[var(--glow-primary)]"
10239
10277
  ],
10240
- solid: [
10241
- "bg-[var(--color-bg-elevated)]",
10242
- "text-[var(--color-text)]"
10243
- ]
10278
+ solid: ["bg-[var(--color-bg-elevated)]", "text-[var(--color-text)]"]
10244
10279
  },
10245
10280
  clickable: {
10246
10281
  true: "cursor-pointer hover:scale-105 active:scale-95"