@bzync/rui 0.0.4 → 0.0.8

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 (251) hide show
  1. package/README.md +10 -0
  2. package/dist/autocomplete-D6z5B-WU.cjs +1 -0
  3. package/dist/{autocomplete-BgKbj6M4.js → autocomplete-bgySuP8X.js} +149 -142
  4. package/dist/calendar-CQumLNgS.cjs +1 -0
  5. package/dist/{calendar-j2_zvum1.js → calendar-nkYCMEy3.js} +9 -9
  6. package/dist/charts-Cot5lCgC.cjs +1 -0
  7. package/dist/{charts-CxEy2c3M.js → charts-Dscl6UC3.js} +122 -145
  8. package/dist/cn-B6R3HKzx.cjs +1 -0
  9. package/dist/{cn-DpgY2leY.js → cn-BJyZJP-y.js} +389 -389
  10. package/dist/{component-styles-Bgy44fc8.js → component-styles-C2CbHEEA.js} +2 -2
  11. package/dist/component-styles-DY4wigiq.cjs +1 -0
  12. package/dist/components/accordion.cjs +1 -1
  13. package/dist/components/accordion.js +2 -2
  14. package/dist/components/alert.cjs +1 -1
  15. package/dist/components/alert.js +3 -3
  16. package/dist/components/aspect-ratio.cjs +1 -0
  17. package/dist/components/aspect-ratio.d.ts +5 -0
  18. package/dist/components/aspect-ratio.js +20 -0
  19. package/dist/components/auth-backdrop.cjs +1 -1
  20. package/dist/components/auth-backdrop.d.ts +4 -1
  21. package/dist/components/auth-backdrop.js +12 -8
  22. package/dist/components/autocomplete/dropdown.d.ts +4 -1
  23. package/dist/components/autocomplete/multi-trigger.d.ts +3 -1
  24. package/dist/components/autocomplete/single-trigger.d.ts +3 -1
  25. package/dist/components/autocomplete/types.d.ts +15 -0
  26. package/dist/components/autocomplete.cjs +1 -1
  27. package/dist/components/autocomplete.js +1 -1
  28. package/dist/components/avatar-group.cjs +1 -0
  29. package/dist/components/avatar-group.d.ts +14 -0
  30. package/dist/components/avatar-group.js +35 -0
  31. package/dist/components/avatar.cjs +1 -1
  32. package/dist/components/avatar.js +2 -2
  33. package/dist/components/badge.cjs +1 -1
  34. package/dist/components/badge.js +1 -1
  35. package/dist/components/billing-interval-toggle.cjs +1 -1
  36. package/dist/components/billing-interval-toggle.d.ts +4 -6
  37. package/dist/components/billing-interval-toggle.js +26 -19
  38. package/dist/components/blockquote.cjs +1 -0
  39. package/dist/components/blockquote.d.ts +10 -0
  40. package/dist/components/blockquote.js +32 -0
  41. package/dist/components/breadcrumb.cjs +1 -1
  42. package/dist/components/breadcrumb.js +2 -2
  43. package/dist/components/button-group.cjs +1 -0
  44. package/dist/components/button-group.d.ts +7 -0
  45. package/dist/components/button-group.js +26 -0
  46. package/dist/components/button.cjs +1 -1
  47. package/dist/components/button.d.ts +2 -0
  48. package/dist/components/button.js +79 -36
  49. package/dist/components/calendar.cjs +1 -1
  50. package/dist/components/calendar.js +1 -1
  51. package/dist/components/callout.cjs +1 -1
  52. package/dist/components/callout.js +14 -14
  53. package/dist/components/card.cjs +1 -1
  54. package/dist/components/card.js +1 -1
  55. package/dist/components/charts/shared.d.ts +15 -0
  56. package/dist/components/charts.cjs +1 -1
  57. package/dist/components/charts.js +1 -1
  58. package/dist/components/checkbox.cjs +1 -1
  59. package/dist/components/checkbox.js +3 -3
  60. package/dist/components/code.cjs +3 -3
  61. package/dist/components/code.d.ts +4 -4
  62. package/dist/components/code.js +62 -60
  63. package/dist/components/command.cjs +1 -1
  64. package/dist/components/command.d.ts +8 -1
  65. package/dist/components/command.js +84 -83
  66. package/dist/components/confirm-dialog.cjs +1 -1
  67. package/dist/components/confirm-dialog.d.ts +8 -1
  68. package/dist/components/confirm-dialog.js +37 -31
  69. package/dist/components/copy-button.cjs +1 -1
  70. package/dist/components/copy-button.js +5 -4
  71. package/dist/components/currency.cjs +1 -0
  72. package/dist/components/currency.d.ts +18 -0
  73. package/dist/components/currency.js +62 -0
  74. package/dist/components/datatable/types.d.ts +4 -0
  75. package/dist/components/datatable.cjs +1 -1
  76. package/dist/components/datatable.d.ts +1 -5
  77. package/dist/components/datatable.js +1 -1
  78. package/dist/components/datepicker.cjs +1 -1
  79. package/dist/components/datepicker.d.ts +3 -3
  80. package/dist/components/datepicker.js +234 -105
  81. package/dist/components/description-list.cjs +1 -0
  82. package/dist/components/description-list.d.ts +14 -0
  83. package/dist/components/description-list.js +38 -0
  84. package/dist/components/divider.cjs +1 -0
  85. package/dist/components/divider.d.ts +12 -0
  86. package/dist/components/divider.js +45 -0
  87. package/dist/components/drawer.cjs +1 -1
  88. package/dist/components/drawer.d.ts +6 -1
  89. package/dist/components/drawer.js +128 -2
  90. package/dist/components/dropdown-menu-panel.cjs +1 -0
  91. package/dist/components/dropdown-menu-panel.d.ts +24 -0
  92. package/dist/components/dropdown-menu-panel.js +84 -0
  93. package/dist/components/dropdown-menu.cjs +1 -1
  94. package/dist/components/dropdown-menu.d.ts +5 -1
  95. package/dist/components/dropdown-menu.js +38 -93
  96. package/dist/components/empty-state.cjs +1 -1
  97. package/dist/components/empty-state.d.ts +5 -1
  98. package/dist/components/empty-state.js +9 -9
  99. package/dist/components/error-state.cjs +1 -1
  100. package/dist/components/error-state.js +2 -2
  101. package/dist/components/file-upload.cjs +1 -1
  102. package/dist/components/file-upload.js +4 -4
  103. package/dist/components/form-field.cjs +1 -1
  104. package/dist/components/form-field.d.ts +9 -0
  105. package/dist/components/form-field.js +49 -14
  106. package/dist/components/info-button.cjs +1 -1
  107. package/dist/components/info-button.d.ts +5 -3
  108. package/dist/components/info-button.js +33 -29
  109. package/dist/components/input.cjs +1 -1
  110. package/dist/components/input.js +3 -3
  111. package/dist/components/kbd.cjs +1 -1
  112. package/dist/components/kbd.js +1 -1
  113. package/dist/components/label.cjs +1 -1
  114. package/dist/components/label.js +2 -2
  115. package/dist/components/layout.cjs +1 -1
  116. package/dist/components/layout.js +1 -1
  117. package/dist/components/link.cjs +1 -1
  118. package/dist/components/link.js +1 -1
  119. package/dist/components/list.cjs +1 -1
  120. package/dist/components/list.js +1 -1
  121. package/dist/components/modal.cjs +1 -1
  122. package/dist/components/modal.d.ts +8 -1
  123. package/dist/components/modal.js +74 -120
  124. package/dist/components/navigation.cjs +1 -1
  125. package/dist/components/navigation.js +2 -2
  126. package/dist/components/number-input.cjs +1 -1
  127. package/dist/components/number-input.js +3 -3
  128. package/dist/components/otp-input.cjs +1 -1
  129. package/dist/components/otp-input.js +2 -2
  130. package/dist/components/overlay.cjs +1 -0
  131. package/dist/components/overlay.d.ts +52 -0
  132. package/dist/components/overlay.js +87 -0
  133. package/dist/components/pagination.cjs +1 -1
  134. package/dist/components/pagination.js +2 -2
  135. package/dist/components/popover.cjs +1 -1
  136. package/dist/components/popover.d.ts +2 -1
  137. package/dist/components/popover.js +41 -40
  138. package/dist/components/progressbar.cjs +1 -1
  139. package/dist/components/progressbar.js +1 -1
  140. package/dist/components/radio.cjs +1 -1
  141. package/dist/components/radio.js +3 -3
  142. package/dist/components/rating.cjs +1 -0
  143. package/dist/components/rating.d.ts +15 -0
  144. package/dist/components/rating.js +75 -0
  145. package/dist/components/richtext.cjs +1 -1
  146. package/dist/components/richtext.js +2 -2
  147. package/dist/components/scroll-area.cjs +1 -0
  148. package/dist/components/scroll-area.d.ts +8 -0
  149. package/dist/components/scroll-area.js +19 -0
  150. package/dist/components/select/option-list.d.ts +3 -1
  151. package/dist/components/select/types.d.ts +4 -0
  152. package/dist/components/select.cjs +1 -1
  153. package/dist/components/select.js +1 -1
  154. package/dist/components/seo.cjs +1 -1
  155. package/dist/components/seo.js +1 -1
  156. package/dist/components/separator.cjs +1 -1
  157. package/dist/components/separator.js +1 -1
  158. package/dist/components/skeleton.cjs +1 -1
  159. package/dist/components/skeleton.d.ts +14 -1
  160. package/dist/components/skeleton.js +56 -4
  161. package/dist/components/slider.cjs +1 -1
  162. package/dist/components/slider.js +2 -2
  163. package/dist/components/slot.cjs +1 -0
  164. package/dist/components/slot.d.ts +12 -0
  165. package/dist/components/slot.js +16 -0
  166. package/dist/components/snackbar-viewport.cjs +1 -0
  167. package/dist/components/snackbar-viewport.d.ts +27 -0
  168. package/dist/components/snackbar-viewport.js +181 -0
  169. package/dist/components/snackbar.cjs +1 -1
  170. package/dist/components/snackbar.d.ts +5 -1
  171. package/dist/components/snackbar.js +36 -200
  172. package/dist/components/spinner.cjs +1 -1
  173. package/dist/components/spinner.js +1 -1
  174. package/dist/components/stat.cjs +1 -1
  175. package/dist/components/stat.js +1 -1
  176. package/dist/components/status-dot.cjs +1 -1
  177. package/dist/components/status-dot.js +1 -1
  178. package/dist/components/stepper.cjs +1 -1
  179. package/dist/components/stepper.js +5 -5
  180. package/dist/components/switch.cjs +1 -1
  181. package/dist/components/switch.js +37 -43
  182. package/dist/components/table.cjs +1 -1
  183. package/dist/components/table.js +1 -1
  184. package/dist/components/tabs.cjs +1 -1
  185. package/dist/components/tabs.d.ts +6 -4
  186. package/dist/components/tabs.js +51 -81
  187. package/dist/components/tag.cjs +1 -1
  188. package/dist/components/tag.js +1 -1
  189. package/dist/components/terminal.cjs +1 -1
  190. package/dist/components/terminal.js +1 -1
  191. package/dist/components/textarea.cjs +1 -1
  192. package/dist/components/textarea.js +3 -3
  193. package/dist/components/theme-provider.cjs +1 -1
  194. package/dist/components/theme-provider.js +1 -1
  195. package/dist/components/theme-toggle.cjs +1 -1
  196. package/dist/components/theme-toggle.js +27 -3
  197. package/dist/components/time-picker.cjs +1 -0
  198. package/dist/components/time-picker.d.ts +31 -0
  199. package/dist/components/time-picker.js +394 -0
  200. package/dist/components/timeline.cjs +1 -1
  201. package/dist/components/timeline.js +1 -1
  202. package/dist/components/toggle.cjs +1 -0
  203. package/dist/components/toggle.d.ts +42 -0
  204. package/dist/components/toggle.js +116 -0
  205. package/dist/components/tooltip.cjs +1 -1
  206. package/dist/components/tooltip.d.ts +2 -1
  207. package/dist/components/tooltip.js +37 -36
  208. package/dist/components/tree.cjs +1 -1
  209. package/dist/components/tree.js +1 -1
  210. package/dist/components/typography.cjs +1 -0
  211. package/dist/components/typography.d.ts +50 -0
  212. package/dist/components/typography.js +202 -0
  213. package/dist/components/visually-hidden.cjs +1 -0
  214. package/dist/components/visually-hidden.d.ts +16 -0
  215. package/dist/components/visually-hidden.js +13 -0
  216. package/dist/{datatable-yBN4M3UV.js → datatable-BJoZMrKI.js} +6 -6
  217. package/dist/datatable-t0U7t_xh.cjs +1 -0
  218. package/dist/icons-Dfetr1L2.cjs +1 -0
  219. package/dist/icons-Dk7VZ4Ph.js +51 -0
  220. package/dist/index.cjs +1 -1
  221. package/dist/index.d.ts +16 -0
  222. package/dist/index.js +125 -86
  223. package/dist/lib/cn.d.ts +13 -1
  224. package/dist/lib/component-styles.d.ts +14 -2
  225. package/dist/lib/icons.d.ts +12 -0
  226. package/dist/lib/motion.d.ts +58 -0
  227. package/dist/motion-B2shivEB.cjs +1 -0
  228. package/dist/motion-gnRzFS5f.js +62 -0
  229. package/dist/select-ByjnuEcE.cjs +1 -0
  230. package/dist/{select-ClWrcj3R.js → select-CiMzLhUK.js} +128 -122
  231. package/dist/styles.css +1 -1
  232. package/dist/{terminal-CpraMs50.cjs → terminal-1U0ftG3i.cjs} +2 -2
  233. package/dist/{terminal-BOR2cFi1.js → terminal-VXdxVoAv.js} +4 -4
  234. package/dist/use-focus-trap-CPLT49gN.cjs +1 -0
  235. package/dist/use-focus-trap-CS6BXJAB.js +77 -0
  236. package/dist/{utils-CQ8pvCtk.js → utils-DEw5mQrH.js} +1 -1
  237. package/dist/{utils-DOFJTw8o.cjs → utils-MnnCTelh.cjs} +1 -1
  238. package/package.json +56 -9
  239. package/dist/autocomplete-Bk4pRQ2R.cjs +0 -1
  240. package/dist/calendar-CUXpVrVE.cjs +0 -1
  241. package/dist/charts-UDqS1BH1.cjs +0 -1
  242. package/dist/cn-BdjraxxU.cjs +0 -1
  243. package/dist/component-styles-DOUctc8_.cjs +0 -1
  244. package/dist/createLucideIcon-DDY8HuQR.js +0 -42
  245. package/dist/createLucideIcon-b_X_3fj-.cjs +0 -1
  246. package/dist/datatable-rzDgQ3r6.cjs +0 -1
  247. package/dist/drawer-CTeBsYrO.cjs +0 -1
  248. package/dist/drawer-ixuzyLVS.js +0 -189
  249. package/dist/select-BFwx--uK.cjs +0 -1
  250. package/dist/theme-toggle-Bb0BYo51.js +0 -71
  251. package/dist/theme-toggle-Cld8tktJ.cjs +0 -1
@@ -1,16 +1,31 @@
1
- import { t as e } from "./cn-DpgY2leY.js";
1
+ import { t as e } from "./cn-BJyZJP-y.js";
2
2
  import { motion as t } from "framer-motion";
3
3
  import { useEffect as n, useId as r, useState as i } from "react";
4
4
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
5
5
  import { createPortal as s } from "react-dom";
6
6
  //#region src/components/charts/shared.tsx
7
- function c(e, t) {
7
+ var c = [
8
+ "var(--chart-1)",
9
+ "var(--chart-2)",
10
+ "var(--chart-3)",
11
+ "var(--chart-4)",
12
+ "var(--chart-5)",
13
+ "var(--chart-6)"
14
+ ], l = [
15
+ "var(--color-accent-700)",
16
+ "var(--color-accent-600)",
17
+ "var(--color-accent-500)",
18
+ "var(--color-accent-400)",
19
+ "var(--color-accent-300)",
20
+ "var(--color-accent-200)"
21
+ ];
22
+ function u(e, t) {
8
23
  let n = e <= t ? 1 : Math.ceil(e / t);
9
24
  return (t) => t % n === 0 || t === e - 1;
10
25
  }
11
- function l({ tooltip: e }) {
26
+ function d({ tooltip: e }) {
12
27
  return !e || typeof document > "u" ? null : s(/* @__PURE__ */ a("div", {
13
- className: "pointer-events-none fixed z-[9999] px-3 py-2 rounded-lg border border-black/10 dark:border-white/10 bg-slate-50 dark:bg-navy-700 shadow-xl shadow-black/30 text-sm text-slate-700 dark:text-slate-200 whitespace-nowrap",
28
+ className: "pointer-events-none fixed z-[9999] px-3 py-2 rounded-[var(--radius-md)] border border-border bg-surface-raised shadow-floating text-sm text-foreground whitespace-nowrap",
14
29
  style: {
15
30
  left: e.x + 14,
16
31
  top: e.y - 10
@@ -20,17 +35,17 @@ function l({ tooltip: e }) {
20
35
  }
21
36
  //#endregion
22
37
  //#region src/components/charts/bar-chart.tsx
23
- function u({ data: t, height: s = 220, color: c = "var(--color-accent-500)", showValues: u = !1, gridLines: f = 4, orientation: p = "vertical", className: m, formatValue: h = String }) {
38
+ function f({ data: t, height: s = 220, color: c = "var(--chart-1)", showValues: l = !1, gridLines: u = 4, orientation: f = "vertical", className: m, formatValue: h = String }) {
24
39
  let [g, _] = i(null), [v, y] = i(null), [b, x] = i(!1), S = r().replace(/:/g, ""), C = Math.max(...t.map((e) => e.value), 1);
25
40
  if (n(() => {
26
41
  let e = requestAnimationFrame(() => x(!0));
27
42
  return () => cancelAnimationFrame(e);
28
- }, []), p === "horizontal") return /* @__PURE__ */ a(d, {
43
+ }, []), f === "horizontal") return /* @__PURE__ */ a(p, {
29
44
  data: t,
30
45
  height: s,
31
46
  color: c,
32
- showValues: u,
33
- gridLines: f,
47
+ showValues: l,
48
+ gridLines: u,
34
49
  className: m,
35
50
  formatValue: h
36
51
  });
@@ -63,8 +78,8 @@ function u({ data: t, height: s = 220, color: c = "var(--color-accent-500)", sho
63
78
  })]
64
79
  }, t);
65
80
  }) }),
66
- Array.from({ length: f + 1 }).map((e, t) => {
67
- let n = 6 + t / f * 82;
81
+ Array.from({ length: u + 1 }).map((e, t) => {
82
+ let n = 6 + t / u * 82;
68
83
  return /* @__PURE__ */ a("line", {
69
84
  x1: "0",
70
85
  y1: n,
@@ -91,7 +106,7 @@ function u({ data: t, height: s = 220, color: c = "var(--color-accent-500)", sho
91
106
  className: "text-slate-500 dark:text-slate-400 mr-2",
92
107
  children: e.label
93
108
  }), /* @__PURE__ */ a("span", {
94
- className: "font-semibold text-gray-900 dark:text-white",
109
+ className: "font-semibold text-foreground",
95
110
  children: h(e.value)
96
111
  })] })
97
112
  }),
@@ -125,7 +140,7 @@ function u({ data: t, height: s = 220, color: c = "var(--color-accent-500)", sho
125
140
  children: e.label
126
141
  }, t))
127
142
  }),
128
- u && /* @__PURE__ */ a("div", {
143
+ l && /* @__PURE__ */ a("div", {
129
144
  className: "absolute inset-x-0 top-0 pointer-events-none",
130
145
  style: { bottom: 20 },
131
146
  children: t.map((e, n) => {
@@ -145,19 +160,19 @@ function u({ data: t, height: s = 220, color: c = "var(--color-accent-500)", sho
145
160
  }, n);
146
161
  })
147
162
  }),
148
- /* @__PURE__ */ a(l, { tooltip: g })
163
+ /* @__PURE__ */ a(d, { tooltip: g })
149
164
  ]
150
165
  });
151
166
  }
152
- function d({ data: t, color: r, showValues: s, className: c, formatValue: u = String }) {
153
- let [d, f] = i(null), [p, m] = i(null), [h, g] = i(!1), _ = Math.max(...t.map((e) => e.value), 1);
167
+ function p({ data: t, color: r, showValues: s, className: c, formatValue: l = String }) {
168
+ let [u, f] = i(null), [p, m] = i(null), [h, g] = i(!1), _ = Math.max(...t.map((e) => e.value), 1);
154
169
  return n(() => {
155
170
  let e = requestAnimationFrame(() => g(!0));
156
171
  return () => cancelAnimationFrame(e);
157
172
  }, []), /* @__PURE__ */ o("div", {
158
173
  className: e("w-full select-none flex flex-col gap-2.5", c),
159
174
  children: [t.map((e, t) => {
160
- let n = e.value / _ * 100, i = e.color ?? r ?? "var(--color-accent-500)", c = p === t;
175
+ let n = e.value / _ * 100, i = e.color ?? r ?? "var(--chart-1)", c = p === t;
161
176
  return /* @__PURE__ */ o("div", {
162
177
  className: "flex items-center gap-3",
163
178
  children: [/* @__PURE__ */ a("span", {
@@ -184,8 +199,8 @@ function d({ data: t, color: r, showValues: s, className: c, formatValue: u = St
184
199
  className: "text-slate-500 dark:text-slate-400 mr-2",
185
200
  children: e.label
186
201
  }), /* @__PURE__ */ a("span", {
187
- className: "font-semibold text-gray-900 dark:text-white",
188
- children: u(e.value)
202
+ className: "font-semibold text-foreground",
203
+ children: l(e.value)
189
204
  })] })
190
205
  }),
191
206
  onMouseLeave: () => {
@@ -199,17 +214,17 @@ function d({ data: t, color: r, showValues: s, className: c, formatValue: u = St
199
214
  },
200
215
  children: /* @__PURE__ */ a("span", {
201
216
  className: "text-xs font-semibold text-slate-600 dark:text-slate-300 tabular-nums whitespace-nowrap",
202
- children: u(e.value)
217
+ children: l(e.value)
203
218
  })
204
219
  })]
205
220
  })]
206
221
  }, t);
207
- }), /* @__PURE__ */ a(l, { tooltip: d })]
222
+ }), /* @__PURE__ */ a(d, { tooltip: u })]
208
223
  });
209
224
  }
210
225
  //#endregion
211
226
  //#region src/components/charts/line-chart.tsx
212
- function f({ data: n, height: s = 220, color: u = "var(--color-accent-500)", area: d = !0, dots: f = !0, gridLines: p = 4, className: m, formatValue: h = String, smooth: g = !0, showXLabels: _ = !0, maxLabels: v = 8 }) {
227
+ function m({ data: n, height: s = 220, color: c = "var(--chart-1)", area: l = !0, dots: f = !0, gridLines: p = 4, className: m, formatValue: h = String, smooth: g = !0, showXLabels: _ = !0, maxLabels: v = 8 }) {
213
228
  let [y, b] = i(null), x = r().replace(/:/g, ""), S = Math.max(...n.map((e) => e.value), 1), C = Math.min(...n.map((e) => e.value), 0), w = S - C || 1, T = n.length, E = n.map((e, t) => ({
214
229
  x: T === 1 ? 50 : t / (T - 1) * 92 + 4,
215
230
  y: 90 - (e.value - C) / w * 80,
@@ -225,7 +240,7 @@ function f({ data: n, height: s = 220, color: u = "var(--color-accent-500)", are
225
240
  }
226
241
  return t;
227
242
  }
228
- let O = D(E), k = O ? `${O} L${E[E.length - 1].x},92 L${E[0].x},92 Z` : "", A = c(T, v);
243
+ let O = D(E), k = O ? `${O} L${E[E.length - 1].x},92 L${E[0].x},92 Z` : "", A = u(T, v);
229
244
  return /* @__PURE__ */ o("div", {
230
245
  className: e("relative w-full select-none", m),
231
246
  style: { height: s },
@@ -243,11 +258,11 @@ function f({ data: n, height: s = 220, color: u = "var(--color-accent-500)", are
243
258
  y2: "1",
244
259
  children: [/* @__PURE__ */ a("stop", {
245
260
  offset: "0%",
246
- stopColor: u,
261
+ stopColor: c,
247
262
  stopOpacity: "0.25"
248
263
  }), /* @__PURE__ */ a("stop", {
249
264
  offset: "100%",
250
- stopColor: u,
265
+ stopColor: c,
251
266
  stopOpacity: "0.02"
252
267
  })]
253
268
  }) }),
@@ -263,7 +278,7 @@ function f({ data: n, height: s = 220, color: u = "var(--color-accent-500)", are
263
278
  strokeWidth: "0.3"
264
279
  }, t);
265
280
  }),
266
- d && k && /* @__PURE__ */ a("path", {
281
+ l && k && /* @__PURE__ */ a("path", {
267
282
  d: k,
268
283
  fill: `url(#${x}-ag)`,
269
284
  style: { pointerEvents: "none" }
@@ -287,7 +302,7 @@ function f({ data: n, height: s = 220, color: u = "var(--color-accent-500)", are
287
302
  ease: "easeOut"
288
303
  },
289
304
  style: {
290
- stroke: u,
305
+ stroke: c,
291
306
  pointerEvents: "none"
292
307
  }
293
308
  }),
@@ -296,7 +311,7 @@ function f({ data: n, height: s = 220, color: u = "var(--color-accent-500)", are
296
311
  cy: e.y,
297
312
  r: "1.2",
298
313
  style: {
299
- fill: u,
314
+ fill: c,
300
315
  pointerEvents: "none"
301
316
  },
302
317
  initial: { opacity: 0 },
@@ -318,7 +333,7 @@ function f({ data: n, height: s = 220, color: u = "var(--color-accent-500)", are
318
333
  className: "text-slate-500 dark:text-slate-400 mr-2",
319
334
  children: e.d.label
320
335
  }), /* @__PURE__ */ a("span", {
321
- className: "font-semibold text-gray-900 dark:text-white",
336
+ className: "font-semibold text-foreground",
322
337
  children: h(e.d.value)
323
338
  })] })
324
339
  }),
@@ -338,21 +353,15 @@ function f({ data: n, height: s = 220, color: u = "var(--color-accent-500)", are
338
353
  children: e.label
339
354
  }, t) : null)
340
355
  }),
341
- /* @__PURE__ */ a(l, { tooltip: y })
356
+ /* @__PURE__ */ a(d, { tooltip: y })
342
357
  ]
343
358
  });
344
359
  }
345
360
  //#endregion
346
361
  //#region src/components/charts/multi-line-chart.tsx
347
- var p = [
348
- "var(--color-accent-500)",
349
- "#10b981",
350
- "#f59e0b",
351
- "#f43f5e",
352
- "#8b5cf6"
353
- ];
354
- function m({ labels: n, series: s, height: u = 220, area: d = !0, dots: f = !0, gridLines: m = 4, className: h, formatValue: g = String, maxLabels: _ = 8 }) {
355
- let [v, y] = i(null), b = r().replace(/:/g, ""), x = s.flatMap((e) => e.data), S = Math.max(...x, 1), C = Math.min(...x, 0), w = S - C || 1, T = n.length, E = c(T, _);
362
+ var h = c;
363
+ function g({ labels: n, series: s, height: c = 220, area: l = !0, dots: f = !0, gridLines: p = 4, className: m, formatValue: g = String, maxLabels: _ = 8 }) {
364
+ let [v, y] = i(null), b = r().replace(/:/g, ""), x = s.flatMap((e) => e.data), S = Math.max(...x, 1), C = Math.min(...x, 0), w = S - C || 1, T = n.length, E = u(T, _);
356
365
  function D(e) {
357
366
  return e.map((e, t) => ({
358
367
  x: T === 1 ? 50 : t / (T - 1) * 92 + 4,
@@ -369,8 +378,8 @@ function m({ labels: n, series: s, height: u = 220, area: d = !0, dots: f = !0,
369
378
  return t;
370
379
  }
371
380
  return /* @__PURE__ */ o("div", {
372
- className: e("relative w-full select-none", h),
373
- style: { height: u },
381
+ className: e("relative w-full select-none", m),
382
+ style: { height: c },
374
383
  children: [
375
384
  /* @__PURE__ */ o("svg", {
376
385
  viewBox: "0 0 100 100",
@@ -378,7 +387,7 @@ function m({ labels: n, series: s, height: u = 220, area: d = !0, dots: f = !0,
378
387
  className: "absolute inset-0 w-full h-full overflow-visible text-black dark:text-white",
379
388
  children: [
380
389
  /* @__PURE__ */ a("defs", { children: s.map((e, t) => {
381
- let n = e.color ?? p[t % p.length];
390
+ let n = e.color ?? h[t % h.length];
382
391
  return /* @__PURE__ */ o("linearGradient", {
383
392
  id: `${b}-mlg-${t}`,
384
393
  x1: "0",
@@ -396,20 +405,20 @@ function m({ labels: n, series: s, height: u = 220, area: d = !0, dots: f = !0,
396
405
  })]
397
406
  }, t);
398
407
  }) }),
399
- Array.from({ length: m + 1 }).map((e, t) => /* @__PURE__ */ a("line", {
408
+ Array.from({ length: p + 1 }).map((e, t) => /* @__PURE__ */ a("line", {
400
409
  x1: "4",
401
- y1: t / m * 84 + 4,
410
+ y1: t / p * 84 + 4,
402
411
  x2: "96",
403
- y2: t / m * 84 + 4,
412
+ y2: t / p * 84 + 4,
404
413
  stroke: "currentColor",
405
414
  strokeOpacity: "0.07",
406
415
  strokeWidth: "0.3"
407
416
  }, t)),
408
417
  s.map((e, r) => {
409
- let i = e.color ?? p[r % p.length], s = D(e.data), c = O(s), l = c ? `${c} L${s[s.length - 1].x},92 L${s[0].x},92 Z` : "";
418
+ let i = e.color ?? h[r % h.length], s = D(e.data), c = O(s), u = c ? `${c} L${s[s.length - 1].x},92 L${s[0].x},92 Z` : "";
410
419
  return /* @__PURE__ */ o("g", { children: [
411
- d && l && /* @__PURE__ */ a("path", {
412
- d: l,
420
+ l && u && /* @__PURE__ */ a("path", {
421
+ d: u,
413
422
  fill: `url(#${b}-mlg-${r})`,
414
423
  style: { pointerEvents: "none" }
415
424
  }),
@@ -488,32 +497,25 @@ function m({ labels: n, series: s, height: u = 220, area: d = !0, dots: f = !0,
488
497
  children: e
489
498
  }, t) : null)
490
499
  }),
491
- /* @__PURE__ */ a(l, { tooltip: v })
500
+ /* @__PURE__ */ a(d, { tooltip: v })
492
501
  ]
493
502
  });
494
503
  }
495
504
  //#endregion
496
505
  //#region src/components/charts/donut-chart.tsx
497
- var h = [
498
- "var(--color-accent-500)",
499
- "#10b981",
500
- "#f59e0b",
501
- "#f43f5e",
502
- "#8b5cf6",
503
- "#06b6d4"
504
- ];
505
- function g({ data: n, size: r = 190, thickness: s = 28, centerLabel: c, className: u }) {
506
- let [d, f] = i(null), [p, m] = i(null), g = n.reduce((e, t) => e + t.value, 0) || 1, _ = 50 - s / 2, v = 2 * Math.PI * _, y = 0, b = n.map((e, t) => {
507
- let n = e.value / g, r = y;
506
+ var _ = c;
507
+ function v({ data: n, size: r = 190, thickness: s = 28, centerLabel: c, className: l }) {
508
+ let [u, f] = i(null), [p, m] = i(null), h = n.reduce((e, t) => e + t.value, 0) || 1, g = 50 - s / 2, v = 2 * Math.PI * g, y = 0, b = n.map((e, t) => {
509
+ let n = e.value / h, r = y;
508
510
  return y += n, {
509
511
  ...e,
510
512
  frac: n,
511
513
  offset: r,
512
- color: e.color ?? h[t % h.length]
514
+ color: e.color ?? _[t % _.length]
513
515
  };
514
516
  });
515
517
  return /* @__PURE__ */ o("div", {
516
- className: e("inline-flex flex-col items-center gap-5", u),
518
+ className: e("inline-flex flex-col items-center gap-5", l),
517
519
  children: [
518
520
  /* @__PURE__ */ o("div", {
519
521
  className: "relative",
@@ -527,7 +529,7 @@ function g({ data: n, size: r = 190, thickness: s = 28, centerLabel: c, classNam
527
529
  children: [/* @__PURE__ */ a("circle", {
528
530
  cx: 50,
529
531
  cy: 50,
530
- r: _,
532
+ r: g,
531
533
  fill: "none",
532
534
  stroke: "currentColor",
533
535
  strokeOpacity: "0.07",
@@ -537,7 +539,7 @@ function g({ data: n, size: r = 190, thickness: s = 28, centerLabel: c, classNam
537
539
  return /* @__PURE__ */ a(t.circle, {
538
540
  cx: 50,
539
541
  cy: 50,
540
- r: _,
542
+ r: g,
541
543
  fill: "none",
542
544
  stroke: e.color,
543
545
  strokeWidth: p === n ? s / 2 + 1.5 : s / 2,
@@ -566,7 +568,7 @@ function g({ data: n, size: r = 190, thickness: s = 28, centerLabel: c, classNam
566
568
  children: e.label
567
569
  }),
568
570
  /* @__PURE__ */ a("span", {
569
- className: "font-semibold text-gray-900 dark:text-white",
571
+ className: "font-semibold text-foreground",
570
572
  children: e.value
571
573
  }),
572
574
  /* @__PURE__ */ o("span", {
@@ -604,22 +606,16 @@ function g({ data: n, size: r = 190, thickness: s = 28, centerLabel: c, classNam
604
606
  })]
605
607
  }, t))
606
608
  }),
607
- /* @__PURE__ */ a(l, { tooltip: d })
609
+ /* @__PURE__ */ a(d, { tooltip: u })
608
610
  ]
609
611
  });
610
612
  }
611
613
  //#endregion
612
614
  //#region src/components/charts/scatter-chart.tsx
613
- var _ = [
614
- "var(--color-accent-500)",
615
- "#10b981",
616
- "#f59e0b",
617
- "#f43f5e",
618
- "#8b5cf6"
619
- ];
620
- function v({ series: t, height: n = 260, xLabel: r, gridLines: s = 4, className: c, formatX: u = String, formatY: d = String }) {
621
- let [f, p] = i(null), [m, h] = i(null), g = t.flatMap((e) => e.data.map((e) => e.x)), v = t.flatMap((e) => e.data.map((e) => e.y)), y = Math.min(...g), b = Math.max(...g), x = Math.min(...v), S = Math.max(...v), C = b - y || 1, w = S - x || 1, T = (e, t) => ({
622
- left: 8 + (e - y) / C * 88,
615
+ var y = c;
616
+ function b({ series: t, height: n = 260, xLabel: r, gridLines: s = 4, className: c, formatX: l = String, formatY: u = String }) {
617
+ let [f, p] = i(null), [m, h] = i(null), g = t.flatMap((e) => e.data.map((e) => e.x)), _ = t.flatMap((e) => e.data.map((e) => e.y)), v = Math.min(...g), b = Math.max(...g), x = Math.min(..._), S = Math.max(..._), C = b - v || 1, w = S - x || 1, T = (e, t) => ({
618
+ left: 8 + (e - v) / C * 88,
623
619
  top: 6 + (S - t) / w * 82
624
620
  });
625
621
  return /* @__PURE__ */ o("div", {
@@ -672,16 +668,16 @@ function v({ series: t, height: n = 260, xLabel: r, gridLines: s = 4, className:
672
668
  ]
673
669
  }),
674
670
  t.map((e, t) => {
675
- let n = e.color ?? _[t % _.length];
671
+ let n = e.color ?? y[t % y.length];
676
672
  return e.data.map((r, i) => {
677
- let { left: s, top: c } = T(r.x, r.y), l = (r.r ?? 1) * 10, f = `${t}-${i}`, g = m === f;
673
+ let { left: s, top: c } = T(r.x, r.y), d = (r.r ?? 1) * 10, f = `${t}-${i}`, g = m === f;
678
674
  return /* @__PURE__ */ a("div", {
679
675
  style: {
680
676
  position: "absolute",
681
677
  left: `${s}%`,
682
678
  top: `${c}%`,
683
- width: l,
684
- height: l,
679
+ width: d,
680
+ height: d,
685
681
  borderRadius: "50%",
686
682
  transform: "translate(-50%, -50%)",
687
683
  backgroundColor: r.color ?? n,
@@ -700,12 +696,12 @@ function v({ series: t, height: n = 260, xLabel: r, gridLines: s = 4, className:
700
696
  className: "text-slate-500 dark:text-slate-400 mr-2",
701
697
  children: r.label ?? e.label
702
698
  }), /* @__PURE__ */ o("span", {
703
- className: "font-semibold text-gray-900 dark:text-white",
699
+ className: "font-semibold text-foreground",
704
700
  children: [
705
701
  "(",
706
- u(r.x),
702
+ l(r.x),
707
703
  ", ",
708
- d(r.y),
704
+ u(r.y),
709
705
  ")"
710
706
  ]
711
707
  })] })
@@ -729,36 +725,29 @@ function v({ series: t, height: n = 260, xLabel: r, gridLines: s = 4, className:
729
725
  className: "flex items-center gap-2",
730
726
  children: [/* @__PURE__ */ a("span", {
731
727
  className: "w-2.5 h-2.5 rounded-full shrink-0",
732
- style: { backgroundColor: e.color ?? _[t % _.length] }
728
+ style: { backgroundColor: e.color ?? y[t % y.length] }
733
729
  }), /* @__PURE__ */ a("span", {
734
730
  className: "text-xs text-slate-500",
735
731
  children: e.label
736
732
  })]
737
733
  }, t))
738
734
  }),
739
- /* @__PURE__ */ a(l, { tooltip: f })
735
+ /* @__PURE__ */ a(d, { tooltip: f })
740
736
  ]
741
737
  });
742
738
  }
743
739
  //#endregion
744
740
  //#region src/components/charts/gantt-chart.tsx
745
- var y = [
746
- "var(--color-accent-500)",
747
- "#10b981",
748
- "#f59e0b",
749
- "#f43f5e",
750
- "#8b5cf6",
751
- "#06b6d4"
752
- ];
753
- function b({ tasks: t, total: r, xLabels: s, rowHeight: c = 42, className: u }) {
754
- let [d, f] = i(null), [p, m] = i(null), [h, g] = i(!1);
741
+ var x = c;
742
+ function S({ tasks: t, total: r, xLabels: s, rowHeight: c = 42, className: l }) {
743
+ let [u, f] = i(null), [p, m] = i(null), [h, g] = i(!1);
755
744
  n(() => {
756
745
  let e = requestAnimationFrame(() => g(!0));
757
746
  return () => cancelAnimationFrame(e);
758
747
  }, []);
759
748
  let _ = r ?? Math.max(...t.map((e) => e.end), 1), v = t.length * c + 28;
760
749
  return /* @__PURE__ */ o("div", {
761
- className: e("relative w-full select-none overflow-x-auto", u),
750
+ className: e("relative w-full select-none overflow-x-auto", l),
762
751
  children: [/* @__PURE__ */ o("div", {
763
752
  style: {
764
753
  height: v,
@@ -775,7 +764,7 @@ function b({ tasks: t, total: r, xLabels: s, rowHeight: c = 42, className: u })
775
764
  }, t))
776
765
  }),
777
766
  t.map((e, t) => {
778
- let n = e.color ?? y[t % y.length], r = e.start / _ * 100, i = (e.end - e.start) / _ * 100, s = p === e.id;
767
+ let n = e.color ?? x[t % x.length], r = e.start / _ * 100, i = (e.end - e.start) / _ * 100, s = p === e.id;
779
768
  return /* @__PURE__ */ a("div", {
780
769
  className: "absolute left-0 right-0 flex items-center",
781
770
  style: {
@@ -800,7 +789,7 @@ function b({ tasks: t, total: r, xLabels: s, rowHeight: c = 42, className: u })
800
789
  x: t.clientX,
801
790
  y: t.clientY,
802
791
  content: /* @__PURE__ */ o("span", { children: [/* @__PURE__ */ a("span", {
803
- className: "font-semibold text-gray-900 dark:text-white mr-2",
792
+ className: "font-semibold text-foreground mr-2",
804
793
  children: e.label
805
794
  }), /* @__PURE__ */ o("span", {
806
795
  className: "text-slate-500 dark:text-slate-400",
@@ -815,7 +804,7 @@ function b({ tasks: t, total: r, xLabels: s, rowHeight: c = 42, className: u })
815
804
  m(null), f(null);
816
805
  },
817
806
  children: /* @__PURE__ */ a("span", {
818
- className: "text-xs font-medium text-gray-900 dark:text-white/90 truncate leading-none select-none",
807
+ className: "text-xs font-medium text-foreground truncate leading-none select-none",
819
808
  children: e.label
820
809
  })
821
810
  })
@@ -830,15 +819,15 @@ function b({ tasks: t, total: r, xLabels: s, rowHeight: c = 42, className: u })
830
819
  }, t))
831
820
  })
832
821
  ]
833
- }), /* @__PURE__ */ a(l, { tooltip: d })]
822
+ }), /* @__PURE__ */ a(d, { tooltip: u })]
834
823
  });
835
824
  }
836
825
  //#endregion
837
826
  //#region src/components/charts/heatmap-chart.tsx
838
- function x({ data: t, rowLabels: n, colLabels: r, color: s = "var(--color-accent-500)", cellSize: c = 34, className: u, formatValue: d = String }) {
827
+ function C({ data: t, rowLabels: n, colLabels: r, color: s = "var(--chart-1)", cellSize: c = 34, className: l, formatValue: u = String }) {
839
828
  let [f, p] = i(null), m = t.flat(), h = Math.min(...m), g = Math.max(...m, 1) - h || 1, _ = (e) => .08 + (e - h) / g * .88, v = n ? 56 : 0;
840
829
  return /* @__PURE__ */ o("div", {
841
- className: e("select-none overflow-x-auto", u),
830
+ className: e("select-none overflow-x-auto", l),
842
831
  children: [/* @__PURE__ */ o("div", {
843
832
  style: {
844
833
  display: "inline-flex",
@@ -897,28 +886,22 @@ function x({ data: t, rowLabels: n, colLabels: r, color: s = "var(--color-accent
897
886
  children: r[i]
898
887
  }),
899
888
  /* @__PURE__ */ a("span", {
900
- className: "font-semibold text-gray-900 dark:text-white",
901
- children: d(e)
889
+ className: "font-semibold text-foreground",
890
+ children: u(e)
902
891
  })
903
892
  ] })
904
893
  }),
905
894
  onMouseLeave: () => p(null)
906
895
  }, i))]
907
896
  }, t))]
908
- }), /* @__PURE__ */ a(l, { tooltip: f })]
897
+ }), /* @__PURE__ */ a(d, { tooltip: f })]
909
898
  });
910
899
  }
911
900
  //#endregion
912
901
  //#region src/components/charts/radar-chart.tsx
913
- var S = [
914
- "var(--color-accent-500)",
915
- "#10b981",
916
- "#f59e0b",
917
- "#f43f5e",
918
- "#8b5cf6"
919
- ];
920
- function C({ axes: t, series: n, size: r = 240, gridLines: s = 4, className: c }) {
921
- let [u, d] = i(null), f = t.length, p = (e) => Math.PI * 2 * e / f - Math.PI / 2, m = (e, t) => ({
902
+ var w = c;
903
+ function T({ axes: t, series: n, size: r = 240, gridLines: s = 4, className: c }) {
904
+ let [l, u] = i(null), f = t.length, p = (e) => Math.PI * 2 * e / f - Math.PI / 2, m = (e, t) => ({
922
905
  x: 50 + e * Math.cos(p(t)),
923
906
  y: 50 + e * Math.sin(p(t))
924
907
  }), h = Math.max(...n.flatMap((e) => e.data), 1), g = (e) => e.map((e, t) => {
@@ -959,7 +942,7 @@ function C({ axes: t, series: n, size: r = 240, gridLines: s = 4, className: c }
959
942
  }, t);
960
943
  }),
961
944
  n.map((e, n) => {
962
- let r = e.color ?? S[n % S.length];
945
+ let r = e.color ?? w[n % w.length];
963
946
  return /* @__PURE__ */ o("g", { children: [/* @__PURE__ */ a("path", {
964
947
  d: g(e.data),
965
948
  fill: r,
@@ -981,7 +964,7 @@ function C({ axes: t, series: n, size: r = 240, gridLines: s = 4, className: c }
981
964
  fillOpacity: .9,
982
965
  cursor: "pointer"
983
966
  },
984
- onMouseMove: (i) => d({
967
+ onMouseMove: (i) => u({
985
968
  x: i.clientX,
986
969
  y: i.clientY,
987
970
  content: /* @__PURE__ */ o("span", { children: [/* @__PURE__ */ a("span", {
@@ -993,7 +976,7 @@ function C({ axes: t, series: n, size: r = 240, gridLines: s = 4, className: c }
993
976
  children: e
994
977
  })] })
995
978
  }),
996
- onMouseLeave: () => d(null)
979
+ onMouseLeave: () => u(null)
997
980
  }, n);
998
981
  })] }, n);
999
982
  }),
@@ -1018,28 +1001,22 @@ function C({ axes: t, series: n, size: r = 240, gridLines: s = 4, className: c }
1018
1001
  className: "flex items-center gap-2",
1019
1002
  children: [/* @__PURE__ */ a("span", {
1020
1003
  className: "w-2.5 h-2.5 rounded-full shrink-0",
1021
- style: { backgroundColor: e.color ?? S[t % S.length] }
1004
+ style: { backgroundColor: e.color ?? w[t % w.length] }
1022
1005
  }), /* @__PURE__ */ a("span", {
1023
1006
  className: "text-sm text-slate-600 dark:text-slate-300",
1024
1007
  children: e.label
1025
1008
  })]
1026
1009
  }, t))
1027
1010
  }),
1028
- /* @__PURE__ */ a(l, { tooltip: u })
1011
+ /* @__PURE__ */ a(d, { tooltip: l })
1029
1012
  ]
1030
1013
  });
1031
1014
  }
1032
1015
  //#endregion
1033
1016
  //#region src/components/charts/funnel-chart.tsx
1034
- var w = [
1035
- "var(--color-accent-500)",
1036
- "#6366f1",
1037
- "#8b5cf6",
1038
- "#a855f7",
1039
- "#c084fc"
1040
- ];
1041
- function T({ data: t, className: r, formatValue: s = String }) {
1042
- let [c, u] = i(null), [d, f] = i(null), [p, m] = i(!1);
1017
+ var E = l;
1018
+ function D({ data: t, className: r, formatValue: s = String }) {
1019
+ let [c, l] = i(null), [u, f] = i(null), [p, m] = i(!1);
1043
1020
  n(() => {
1044
1021
  let e = requestAnimationFrame(() => m(!0));
1045
1022
  return () => cancelAnimationFrame(e);
@@ -1048,7 +1025,7 @@ function T({ data: t, className: r, formatValue: s = String }) {
1048
1025
  return /* @__PURE__ */ o("div", {
1049
1026
  className: e("w-full select-none flex flex-col gap-2", r),
1050
1027
  children: [t.map((e, n) => {
1051
- let r = 18 + e.value / h * 82, i = e.color ?? w[n % w.length], c = d === n, l = n > 0 ? (e.value / t[0].value * 100).toFixed(0) : null;
1028
+ let r = 18 + e.value / h * 82, i = e.color ?? E[n % E.length], c = u === n, d = n > 0 ? (e.value / t[0].value * 100).toFixed(0) : null;
1052
1029
  return /* @__PURE__ */ o("div", {
1053
1030
  className: "flex items-center gap-3",
1054
1031
  children: [
@@ -1064,12 +1041,12 @@ function T({ data: t, className: r, formatValue: s = String }) {
1064
1041
  style: {
1065
1042
  width: p ? `${r}%` : "18%",
1066
1043
  backgroundColor: i,
1067
- opacity: d !== null && !c ? .3 : c ? 1 : .78,
1044
+ opacity: u !== null && !c ? .3 : c ? 1 : .78,
1068
1045
  boxShadow: c ? `0 0 0 2px ${i}88` : "none",
1069
1046
  transition: p ? `width 0.45s ${n * .06}s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.12s, box-shadow 0.12s` : "none"
1070
1047
  },
1071
1048
  onMouseEnter: () => f(n),
1072
- onMouseMove: (t) => u({
1049
+ onMouseMove: (t) => l({
1073
1050
  x: t.clientX,
1074
1051
  y: t.clientY,
1075
1052
  content: /* @__PURE__ */ o("span", { children: [
@@ -1078,17 +1055,17 @@ function T({ data: t, className: r, formatValue: s = String }) {
1078
1055
  children: e.label
1079
1056
  }),
1080
1057
  /* @__PURE__ */ a("span", {
1081
- className: "font-semibold text-gray-900 dark:text-white",
1058
+ className: "font-semibold text-foreground",
1082
1059
  children: s(e.value)
1083
1060
  }),
1084
- l && /* @__PURE__ */ o("span", {
1061
+ d && /* @__PURE__ */ o("span", {
1085
1062
  className: "text-slate-500 dark:text-slate-400 ml-2",
1086
- children: [l, "% of total"]
1063
+ children: [d, "% of total"]
1087
1064
  })
1088
1065
  ] })
1089
1066
  }),
1090
1067
  onMouseLeave: () => {
1091
- f(null), u(null);
1068
+ f(null), l(null);
1092
1069
  }
1093
1070
  })
1094
1071
  }),
@@ -1098,20 +1075,20 @@ function T({ data: t, className: r, formatValue: s = String }) {
1098
1075
  children: [/* @__PURE__ */ a("span", {
1099
1076
  className: "text-sm font-semibold text-slate-800 dark:text-slate-100 tabular-nums leading-none",
1100
1077
  children: s(e.value)
1101
- }), l && /* @__PURE__ */ o("span", {
1078
+ }), d && /* @__PURE__ */ o("span", {
1102
1079
  className: "ml-2 text-xs text-slate-500 dark:text-slate-400 tabular-nums",
1103
- children: [l, "%"]
1080
+ children: [d, "%"]
1104
1081
  })]
1105
1082
  })
1106
1083
  ]
1107
1084
  }, n);
1108
- }), /* @__PURE__ */ a(l, { tooltip: c })]
1085
+ }), /* @__PURE__ */ a(d, { tooltip: c })]
1109
1086
  });
1110
1087
  }
1111
1088
  //#endregion
1112
1089
  //#region src/components/charts/waterfall-chart.tsx
1113
- function E({ data: t, height: s = 240, className: c, formatValue: u = String }) {
1114
- let [d, f] = i(null), [p, m] = i(null), [h, g] = i(!1), _ = r().replace(/:/g, "");
1090
+ function O({ data: t, height: s = 240, className: c, formatValue: l = String }) {
1091
+ let [u, f] = i(null), [p, m] = i(null), [h, g] = i(!1), _ = r().replace(/:/g, "");
1115
1092
  n(() => {
1116
1093
  let e = requestAnimationFrame(() => g(!0));
1117
1094
  return () => cancelAnimationFrame(e);
@@ -1124,7 +1101,7 @@ function E({ data: t, height: s = 240, className: c, formatValue: u = String })
1124
1101
  ...e,
1125
1102
  base: t,
1126
1103
  end: n,
1127
- color: e.color ?? (e.total ? "var(--color-slate-500)" : e.value >= 0 ? "#10b981" : "#f43f5e")
1104
+ color: e.color ?? (e.total ? "var(--color-slate-500)" : e.value >= 0 ? "var(--chart-2)" : "var(--chart-4)")
1128
1105
  };
1129
1106
  }), b = y.flatMap((e) => [e.base, e.end]), x = Math.min(...b, 0), S = Math.max(...b, 1), C = S - x || 1, w = (e) => 6 + (S - e) / C * 82, T = 100 / y.length, E = T * .2, D = T - E * 2;
1130
1107
  return /* @__PURE__ */ o("div", {
@@ -1190,7 +1167,7 @@ function E({ data: t, height: s = 240, className: c, formatValue: u = String })
1190
1167
  }, t);
1191
1168
  }),
1192
1169
  y.map((e, t) => {
1193
- let n = w(Math.max(e.base, e.end)), r = w(Math.min(e.base, e.end)), i = Math.max(r - n, .5), s = t * T + E, c = .4, l = t * .05;
1170
+ let n = w(Math.max(e.base, e.end)), r = w(Math.min(e.base, e.end)), i = Math.max(r - n, .5), s = t * T + E, c = .4, u = t * .05;
1194
1171
  return /* @__PURE__ */ a("rect", {
1195
1172
  x: s,
1196
1173
  width: D,
@@ -1207,7 +1184,7 @@ function E({ data: t, height: s = 240, className: c, formatValue: u = String })
1207
1184
  }), /* @__PURE__ */ o("span", {
1208
1185
  className: "font-semibold",
1209
1186
  style: { color: e.color },
1210
- children: [e.value >= 0 && !e.total ? "+" : "", u(e.value)]
1187
+ children: [e.value >= 0 && !e.total ? "+" : "", l(e.value)]
1211
1188
  })] })
1212
1189
  }),
1213
1190
  onMouseLeave: () => {
@@ -1217,7 +1194,7 @@ function E({ data: t, height: s = 240, className: c, formatValue: u = String })
1217
1194
  style: {
1218
1195
  fill: `url(#${_}-wf-${t})`,
1219
1196
  fillOpacity: p !== null && p !== t ? .35 : 1,
1220
- transition: h ? `y ${c}s ${l}s cubic-bezier(0.25,0.46,0.45,0.94), height ${c}s ${l}s cubic-bezier(0.25,0.46,0.45,0.94), fill-opacity 0.12s` : "none"
1197
+ transition: h ? `y ${c}s ${u}s cubic-bezier(0.25,0.46,0.45,0.94), height ${c}s ${u}s cubic-bezier(0.25,0.46,0.45,0.94), fill-opacity 0.12s` : "none"
1221
1198
  }
1222
1199
  }, t);
1223
1200
  }),
@@ -1240,9 +1217,9 @@ function E({ data: t, height: s = 240, className: c, formatValue: u = String })
1240
1217
  children: t.label
1241
1218
  }, n))
1242
1219
  }),
1243
- /* @__PURE__ */ a(l, { tooltip: d })
1220
+ /* @__PURE__ */ a(d, { tooltip: u })
1244
1221
  ]
1245
1222
  });
1246
1223
  }
1247
1224
  //#endregion
1248
- export { b as a, m as c, x as i, f as l, T as n, v as o, C as r, g as s, E as t, u };
1225
+ export { S as a, g as c, C as i, m as l, D as n, b as o, T as r, v as s, O as t, f as u };