@devalok/shilp-sutra 0.30.0 → 0.32.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 (266) hide show
  1. package/README.md +82 -239
  2. package/dist/_chunks/badge-group.js +123 -171
  3. package/dist/_chunks/document-preview.js +92 -0
  4. package/dist/_chunks/file-preview.js +511 -0
  5. package/dist/_chunks/image-preview.js +90 -0
  6. package/dist/_chunks/primitives.js +109 -109
  7. package/dist/_chunks/stat-row.js +144 -124
  8. package/dist/_chunks/use-calendar.js +558 -490
  9. package/dist/ai/block-renderer.d.ts +2 -1
  10. package/dist/ai/block-renderer.d.ts.map +1 -1
  11. package/dist/ai/block-renderer.js +30 -29
  12. package/dist/ai/blocks/block-table.d.ts.map +1 -1
  13. package/dist/ai/blocks/confirm.d.ts.map +1 -1
  14. package/dist/ai/blocks/divider.d.ts.map +1 -1
  15. package/dist/ai/blocks/error.d.ts.map +1 -1
  16. package/dist/ai/blocks/info.d.ts.map +1 -1
  17. package/dist/ai/blocks/loading.d.ts.map +1 -1
  18. package/dist/ai/blocks/stat-row.d.ts.map +1 -1
  19. package/dist/ai/blocks/success.d.ts.map +1 -1
  20. package/dist/ai/blocks/text.d.ts.map +1 -1
  21. package/dist/ai/command-bar.d.ts +18 -0
  22. package/dist/ai/command-bar.d.ts.map +1 -1
  23. package/dist/ai/command-bar.js +126 -125
  24. package/dist/ai/conversation.d.ts +13 -1
  25. package/dist/ai/conversation.d.ts.map +1 -1
  26. package/dist/ai/conversation.js +78 -78
  27. package/dist/ai/types.d.ts +0 -1
  28. package/dist/ai/types.d.ts.map +1 -1
  29. package/dist/ai/types.js +1 -0
  30. package/dist/composed/bulk-action-bar.d.ts +6 -4
  31. package/dist/composed/bulk-action-bar.d.ts.map +1 -1
  32. package/dist/composed/bulk-action-bar.js +102 -58
  33. package/dist/composed/command-palette.d.ts +9 -0
  34. package/dist/composed/command-palette.d.ts.map +1 -1
  35. package/dist/composed/command-palette.js +68 -68
  36. package/dist/composed/confirm-dialog.d.ts +1 -1
  37. package/dist/composed/confirm-dialog.d.ts.map +1 -1
  38. package/dist/composed/confirm-dialog.js +10 -10
  39. package/dist/composed/content-card.d.ts.map +1 -1
  40. package/dist/composed/date-picker/date-picker.d.ts +11 -1
  41. package/dist/composed/date-picker/date-picker.d.ts.map +1 -1
  42. package/dist/composed/date-picker/month-picker.d.ts.map +1 -1
  43. package/dist/composed/date-picker/year-picker.d.ts.map +1 -1
  44. package/dist/composed/deadline-indicator.d.ts +1 -1
  45. package/dist/composed/deadline-indicator.d.ts.map +1 -1
  46. package/dist/composed/deadline-indicator.js +39 -36
  47. package/dist/composed/emoji-picker.d.ts +6 -0
  48. package/dist/composed/emoji-picker.d.ts.map +1 -1
  49. package/dist/composed/emoji-picker.js +22 -20
  50. package/dist/composed/error-boundary.d.ts +21 -1
  51. package/dist/composed/error-boundary.d.ts.map +1 -1
  52. package/dist/composed/error-boundary.js +47 -32
  53. package/dist/composed/file-preview/audio-preview.d.ts +7 -0
  54. package/dist/composed/file-preview/audio-preview.d.ts.map +1 -0
  55. package/dist/composed/file-preview/document-preview.d.ts +7 -0
  56. package/dist/composed/file-preview/document-preview.d.ts.map +1 -0
  57. package/dist/composed/file-preview/embed-preview.d.ts +7 -0
  58. package/dist/composed/file-preview/embed-preview.d.ts.map +1 -0
  59. package/dist/composed/file-preview/image-preview.d.ts +7 -0
  60. package/dist/composed/file-preview/image-preview.d.ts.map +1 -0
  61. package/dist/composed/file-preview/shared.d.ts +20 -0
  62. package/dist/composed/file-preview/shared.d.ts.map +1 -0
  63. package/dist/composed/file-preview/video-preview.d.ts +6 -0
  64. package/dist/composed/file-preview/video-preview.d.ts.map +1 -0
  65. package/dist/composed/file-preview.d.ts.map +1 -1
  66. package/dist/composed/file-preview.js +10 -662
  67. package/dist/composed/filter-bar.d.ts +10 -2
  68. package/dist/composed/filter-bar.d.ts.map +1 -1
  69. package/dist/composed/filter-bar.js +42 -43
  70. package/dist/composed/form-section.d.ts +1 -1
  71. package/dist/composed/form-section.d.ts.map +1 -1
  72. package/dist/composed/form-section.js +22 -21
  73. package/dist/composed/index.d.ts +2 -2
  74. package/dist/composed/index.d.ts.map +1 -1
  75. package/dist/composed/index.js +58 -57
  76. package/dist/composed/inline-edit.d.ts +1 -1
  77. package/dist/composed/inline-edit.d.ts.map +1 -1
  78. package/dist/composed/inline-edit.js +33 -32
  79. package/dist/composed/lib/string-utils.d.ts.map +1 -1
  80. package/dist/composed/loading-skeleton.d.ts.map +1 -1
  81. package/dist/composed/markdown-viewer.d.ts +1 -1
  82. package/dist/composed/markdown-viewer.d.ts.map +1 -1
  83. package/dist/composed/markdown-viewer.js +60 -59
  84. package/dist/composed/master-detail.d.ts +11 -7
  85. package/dist/composed/master-detail.d.ts.map +1 -1
  86. package/dist/composed/master-detail.js +123 -84
  87. package/dist/composed/page-header.d.ts.map +1 -1
  88. package/dist/composed/page-skeletons.d.ts.map +1 -1
  89. package/dist/composed/priority-indicator.d.ts +1 -0
  90. package/dist/composed/priority-indicator.js +1 -0
  91. package/dist/composed/responsive-overlay.d.ts +8 -0
  92. package/dist/composed/responsive-overlay.d.ts.map +1 -1
  93. package/dist/composed/rich-text-editor.d.ts +11 -3
  94. package/dist/composed/rich-text-editor.d.ts.map +1 -1
  95. package/dist/composed/rich-text-editor.js +21 -20
  96. package/dist/composed/schedule-view.d.ts +9 -1
  97. package/dist/composed/schedule-view.d.ts.map +1 -1
  98. package/dist/hooks/index.d.ts +2 -0
  99. package/dist/hooks/index.d.ts.map +1 -1
  100. package/dist/hooks/index.js +8 -4
  101. package/dist/hooks/use-touch-device.d.ts +12 -0
  102. package/dist/hooks/use-touch-device.d.ts.map +1 -0
  103. package/dist/hooks/use-touch-device.js +13 -0
  104. package/dist/hooks/use-viewport-height.d.ts +11 -0
  105. package/dist/hooks/use-viewport-height.d.ts.map +1 -0
  106. package/dist/hooks/use-viewport-height.js +16 -0
  107. package/dist/shell/bottom-navbar.d.ts.map +1 -1
  108. package/dist/shell/bottom-navbar.js +72 -63
  109. package/dist/shell/command-registry.d.ts.map +1 -1
  110. package/dist/shell/notification-center.d.ts.map +1 -1
  111. package/dist/shell/notification-center.js +77 -77
  112. package/dist/shell/top-bar.d.ts +2 -2
  113. package/dist/shell/top-bar.d.ts.map +1 -1
  114. package/dist/shell/top-bar.js +61 -60
  115. package/dist/tailwind/index.cjs +51 -7
  116. package/dist/tailwind/preset.d.ts.map +1 -1
  117. package/dist/tailwind/preset.js +51 -7
  118. package/dist/tokens/primitives.css +3 -1
  119. package/dist/tokens/semantic.css +16 -13
  120. package/dist/tokens/typography.css +33 -4
  121. package/dist/ui/alert.d.ts +1 -0
  122. package/dist/ui/alert.d.ts.map +1 -1
  123. package/dist/ui/alert.js +42 -37
  124. package/dist/ui/autocomplete.d.ts.map +1 -1
  125. package/dist/ui/autocomplete.js +38 -39
  126. package/dist/ui/badge.d.ts +110 -2
  127. package/dist/ui/badge.d.ts.map +1 -1
  128. package/dist/ui/banner.d.ts.map +1 -1
  129. package/dist/ui/banner.js +8 -7
  130. package/dist/ui/button.d.ts +2 -2
  131. package/dist/ui/button.d.ts.map +1 -1
  132. package/dist/ui/button.js +54 -74
  133. package/dist/ui/card.d.ts +5 -1
  134. package/dist/ui/card.d.ts.map +1 -1
  135. package/dist/ui/card.js +111 -79
  136. package/dist/ui/charts/area-chart.d.ts +2 -0
  137. package/dist/ui/charts/area-chart.d.ts.map +1 -1
  138. package/dist/ui/charts/bar-chart.d.ts +2 -0
  139. package/dist/ui/charts/bar-chart.d.ts.map +1 -1
  140. package/dist/ui/charts/chart-container.d.ts +2 -0
  141. package/dist/ui/charts/chart-container.d.ts.map +1 -1
  142. package/dist/ui/charts/index.js +583 -577
  143. package/dist/ui/charts/line-chart.d.ts +2 -0
  144. package/dist/ui/charts/line-chart.d.ts.map +1 -1
  145. package/dist/ui/charts/pie-chart.d.ts +2 -0
  146. package/dist/ui/charts/pie-chart.d.ts.map +1 -1
  147. package/dist/ui/charts/radar-chart.d.ts +2 -0
  148. package/dist/ui/charts/radar-chart.d.ts.map +1 -1
  149. package/dist/ui/checkbox.d.ts +2 -0
  150. package/dist/ui/checkbox.d.ts.map +1 -1
  151. package/dist/ui/checkbox.js +36 -27
  152. package/dist/ui/code.d.ts.map +1 -1
  153. package/dist/ui/color-input.js +5 -5
  154. package/dist/ui/combobox.d.ts +6 -1
  155. package/dist/ui/combobox.d.ts.map +1 -1
  156. package/dist/ui/combobox.js +1 -1
  157. package/dist/ui/container.d.ts.map +1 -1
  158. package/dist/ui/context-menu.js +1 -1
  159. package/dist/ui/data-table-body.d.ts +12 -0
  160. package/dist/ui/data-table-body.d.ts.map +1 -0
  161. package/dist/ui/data-table-body.js +219 -0
  162. package/dist/ui/data-table-bulk-actions.d.ts +19 -0
  163. package/dist/ui/data-table-bulk-actions.d.ts.map +1 -0
  164. package/dist/ui/data-table-bulk-actions.js +61 -0
  165. package/dist/ui/data-table-card.d.ts +9 -0
  166. package/dist/ui/data-table-card.d.ts.map +1 -0
  167. package/dist/ui/data-table-card.js +73 -0
  168. package/dist/ui/data-table-context.d.ts +62 -0
  169. package/dist/ui/data-table-context.d.ts.map +1 -0
  170. package/dist/ui/data-table-context.js +48 -0
  171. package/dist/ui/data-table-header.d.ts +10 -0
  172. package/dist/ui/data-table-header.d.ts.map +1 -0
  173. package/dist/ui/data-table-header.js +141 -0
  174. package/dist/ui/data-table-pagination.d.ts +13 -0
  175. package/dist/ui/data-table-pagination.d.ts.map +1 -0
  176. package/dist/ui/data-table-pagination.js +84 -0
  177. package/dist/ui/data-table.d.ts +11 -9
  178. package/dist/ui/data-table.d.ts.map +1 -1
  179. package/dist/ui/data-table.js +258 -573
  180. package/dist/ui/dialog.d.ts +6 -2
  181. package/dist/ui/dialog.d.ts.map +1 -1
  182. package/dist/ui/dialog.js +84 -82
  183. package/dist/ui/dropdown-menu.js +1 -1
  184. package/dist/ui/hover-card.d.ts +7 -0
  185. package/dist/ui/hover-card.d.ts.map +1 -1
  186. package/dist/ui/hover-card.js +3 -3
  187. package/dist/ui/icon-group.d.ts +2 -4
  188. package/dist/ui/icon-group.d.ts.map +1 -1
  189. package/dist/ui/icon-group.js +22 -23
  190. package/dist/ui/index.d.ts +1 -2
  191. package/dist/ui/index.d.ts.map +1 -1
  192. package/dist/ui/index.js +94 -99
  193. package/dist/ui/label.js +1 -1
  194. package/dist/ui/lib/bottom-sheet.d.ts +16 -0
  195. package/dist/ui/lib/bottom-sheet.d.ts.map +1 -0
  196. package/dist/ui/lib/date-utils.d.ts.map +1 -1
  197. package/dist/ui/lib/motion.d.ts.map +1 -1
  198. package/dist/ui/lib/utils.d.ts.map +1 -1
  199. package/dist/ui/menubar.d.ts.map +1 -1
  200. package/dist/ui/menubar.js +64 -73
  201. package/dist/ui/navigation-menu.d.ts.map +1 -1
  202. package/dist/ui/navigation-menu.js +40 -44
  203. package/dist/ui/number-input.d.ts.map +1 -1
  204. package/dist/ui/number-input.js +19 -17
  205. package/dist/ui/popover.d.ts.map +1 -1
  206. package/dist/ui/popover.js +107 -32
  207. package/dist/ui/progress-ring.d.ts.map +1 -1
  208. package/dist/ui/progress-ring.js +80 -80
  209. package/dist/ui/progress.js +4 -4
  210. package/dist/ui/radio.d.ts +5 -2
  211. package/dist/ui/radio.d.ts.map +1 -1
  212. package/dist/ui/radio.js +29 -20
  213. package/dist/ui/search-input.d.ts.map +1 -1
  214. package/dist/ui/search-input.js +13 -12
  215. package/dist/ui/segmented-control.d.ts +6 -108
  216. package/dist/ui/segmented-control.d.ts.map +1 -1
  217. package/dist/ui/segmented-control.js +86 -272
  218. package/dist/ui/select.d.ts +3 -1
  219. package/dist/ui/select.d.ts.map +1 -1
  220. package/dist/ui/select.js +83 -71
  221. package/dist/ui/separator.js +5 -5
  222. package/dist/ui/sheet.d.ts +2 -0
  223. package/dist/ui/sheet.d.ts.map +1 -1
  224. package/dist/ui/sheet.js +102 -84
  225. package/dist/ui/sidebar.d.ts.map +1 -1
  226. package/dist/ui/sidebar.js +200 -175
  227. package/dist/ui/skeleton.d.ts.map +1 -1
  228. package/dist/ui/slider.js +14 -14
  229. package/dist/ui/stack.d.ts.map +1 -1
  230. package/dist/ui/status-dot.js +8 -8
  231. package/dist/ui/stepper.d.ts.map +1 -1
  232. package/dist/ui/stepper.js +33 -31
  233. package/dist/ui/switch.js +3 -3
  234. package/dist/ui/table.d.ts.map +1 -1
  235. package/dist/ui/tabs.d.ts +7 -0
  236. package/dist/ui/tabs.d.ts.map +1 -1
  237. package/dist/ui/tabs.js +102 -76
  238. package/dist/ui/text.d.ts.map +1 -1
  239. package/dist/ui/toast-types.d.ts +0 -1
  240. package/dist/ui/toast-types.d.ts.map +1 -1
  241. package/dist/ui/toast-types.js +0 -1
  242. package/dist/ui/toast.d.ts.map +1 -1
  243. package/dist/ui/toast.js +156 -150
  244. package/dist/ui/toggle-group.js +1 -1
  245. package/dist/ui/toggle.js +1 -1
  246. package/dist/ui/tooltip.js +3 -3
  247. package/dist/ui/visually-hidden.d.ts.map +1 -1
  248. package/docs/components/ui/alert.md +3 -0
  249. package/docs/components/ui/badge.md +3 -0
  250. package/docs/components/ui/card.md +4 -0
  251. package/docs/components/ui/data-table-body.md +13 -0
  252. package/docs/components/ui/data-table-bulk-actions.md +13 -0
  253. package/docs/components/ui/data-table-card.md +13 -0
  254. package/docs/components/ui/data-table-context.md +13 -0
  255. package/docs/components/ui/data-table-header.md +13 -0
  256. package/docs/components/ui/data-table-pagination.md +13 -0
  257. package/docs/components/ui/select.md +4 -0
  258. package/docs/components/ui/tabs.md +4 -0
  259. package/llms-full.txt +97 -48
  260. package/llms.txt +46 -1
  261. package/package.json +37 -7
  262. package/dist/ui/chip.d.ts +0 -19
  263. package/dist/ui/chip.d.ts.map +0 -1
  264. package/dist/ui/chip.js +0 -14
  265. package/dist/ui/lib/use-ripple.d.ts +0 -14
  266. package/dist/ui/lib/use-ripple.d.ts.map +0 -1
@@ -1,152 +1,153 @@
1
1
  "use client";
2
- import { jsx as e, jsxs as p, Fragment as ee } from "react/jsx-runtime";
3
- import * as te from "react";
4
- import { useRef as ve, useState as de, useEffect as ye, useCallback as ke } from "react";
5
- import { cn as Q } from "../lib/utils.js";
6
- import { scaleBand as Ge, scaleLinear as ae, scalePoint as Ce } from "d3-scale";
7
- import { tweens as le, motionProps as se } from "../lib/motion.js";
8
- import { axisLeft as Xe, axisBottom as De, axisRight as Pe, axisTop as ze } from "d3-axis";
9
- import { select as Be } from "d3-selection";
10
- import { u as Ve } from "../../_chunks/motion-provider.js";
11
- import { m as ne } from "../../_chunks/framer.js";
12
- import { line as me, curveMonotoneX as ue, curveLinear as Ae, stack as _e, stackOrderNone as je, stackOffsetNone as Te, area as Me, pie as Ye, arc as ge, lineRadial as Oe, curveLinearClosed as We } from "d3-shape";
13
- const Ie = {
2
+ import { jsx as e, jsxs as p, Fragment as te } from "react/jsx-runtime";
3
+ import * as ne from "react";
4
+ import { useRef as ye, useState as me, useEffect as xe, useCallback as Re } from "react";
5
+ import { cn as H } from "../lib/utils.js";
6
+ import { scaleBand as Xe, scaleLinear as oe, scalePoint as Le } from "d3-scale";
7
+ import { tweens as se, motionProps as ce } from "../lib/motion.js";
8
+ import { axisLeft as De, axisBottom as Pe, axisRight as ze, axisTop as Be } from "d3-axis";
9
+ import { select as Ve } from "d3-selection";
10
+ import { u as _e } from "../../_chunks/motion-provider.js";
11
+ import { m as re } from "../../_chunks/framer.js";
12
+ import { line as he, curveMonotoneX as de, curveLinear as Ae, stack as je, stackOrderNone as Te, stackOffsetNone as Ye, area as Ne, pie as Oe, arc as ve, lineRadial as We, curveLinearClosed as Ie } from "d3-shape";
13
+ const Fe = {
14
14
  top: 20,
15
15
  right: 20,
16
16
  bottom: 40,
17
17
  left: 50
18
- }, xe = te.forwardRef(
18
+ }, be = ne.forwardRef(
19
19
  ({
20
20
  height: t = 300,
21
21
  margin: a,
22
22
  className: o,
23
- children: y,
24
- ...m
25
- }, x) => {
26
- const c = ve(null), [M, z] = de(0), N = { ...Ie, ...a };
27
- ye(() => {
28
- if (!c.current) return;
29
- const j = new ResizeObserver((P) => {
30
- const R = P[0];
31
- R && z(R.contentRect.width);
23
+ ariaLabel: x = "Chart",
24
+ children: d,
25
+ ...M
26
+ }, i) => {
27
+ const k = ye(null), [G, P] = me(0), v = { ...Fe, ...a };
28
+ xe(() => {
29
+ if (!k.current) return;
30
+ const B = new ResizeObserver((N) => {
31
+ const z = N[0];
32
+ z && P(z.contentRect.width);
32
33
  });
33
- return j.observe(c.current), () => j.disconnect();
34
+ return B.observe(k.current), () => B.disconnect();
34
35
  }, []);
35
- const A = Math.max(0, M - N.left - N.right), k = Math.max(0, t - N.top - N.bottom);
36
+ const R = Math.max(0, G - v.left - v.right), Z = Math.max(0, t - v.top - v.bottom);
36
37
  return /* @__PURE__ */ e(
37
38
  "div",
38
39
  {
39
- ref: (j) => {
40
- c.current = j, typeof x == "function" ? x(j) : x && (x.current = j);
40
+ ref: (B) => {
41
+ k.current = B, typeof i == "function" ? i(B) : i && (i.current = B);
41
42
  },
42
- className: Q("relative w-full", o),
43
- ...m,
44
- children: M > 0 && /* @__PURE__ */ e("svg", { width: M, height: t, role: "img", "aria-label": "Chart", children: /* @__PURE__ */ e("g", { transform: `translate(${N.left},${N.top})`, children: y({ width: A, height: k, margin: N }) }) })
43
+ className: H("relative w-full", o),
44
+ ...M,
45
+ children: G > 0 && /* @__PURE__ */ e("svg", { width: G, height: t, role: "img", "aria-label": x, children: /* @__PURE__ */ e("g", { transform: `translate(${v.left},${v.top})`, children: d({ width: R, height: Z, margin: v }) }) })
45
46
  }
46
47
  );
47
48
  }
48
49
  );
49
- xe.displayName = "ChartContainer";
50
- function K({
50
+ be.displayName = "ChartContainer";
51
+ function ee({
51
52
  scale: t,
52
53
  orientation: a,
53
54
  transform: o,
54
- tickCount: y,
55
- tickFormat: m,
56
- label: x,
57
- className: c
55
+ tickCount: x,
56
+ tickFormat: d,
57
+ label: M,
58
+ className: i
58
59
  }) {
59
- const M = ve(null);
60
- return ye(() => {
61
- if (!M.current) return;
62
- const N = {
63
- top: ze,
64
- right: Pe,
65
- bottom: De,
66
- left: Xe
60
+ const k = ye(null);
61
+ return xe(() => {
62
+ if (!k.current) return;
63
+ const P = {
64
+ top: Be,
65
+ right: ze,
66
+ bottom: Pe,
67
+ left: De
67
68
  }[a];
68
- let A = N(t);
69
- y && (A = A.ticks(y)), m && (A = A.tickFormat(m));
70
- const k = Be(M.current);
71
- k.call(A), k.selectAll(".tick line").attr("stroke", "var(--color-surface-border)"), k.selectAll(".tick text").attr("fill", "var(--color-surface-fg-muted)").attr("font-size", "var(--font-size-xs)"), k.selectAll(".domain").attr("stroke", "var(--color-surface-border-strong)");
72
- }, [t, a, y, m]), /* @__PURE__ */ e("g", { ref: M, transform: o, className: c, children: x && /* @__PURE__ */ e(
69
+ let v = P(t);
70
+ x && (v = v.ticks(x)), d && (v = v.tickFormat(d));
71
+ const R = Ve(k.current);
72
+ R.call(v), R.selectAll(".tick line").attr("stroke", "var(--color-surface-border)"), R.selectAll(".tick text").attr("fill", "var(--color-surface-fg-muted)").attr("font-size", "var(--font-size-xs)"), R.selectAll(".domain").attr("stroke", "var(--color-surface-border-strong)");
73
+ }, [t, a, x, d]), /* @__PURE__ */ e("g", { ref: k, transform: o, className: i, children: M && /* @__PURE__ */ e(
73
74
  "text",
74
75
  {
75
76
  textAnchor: "middle",
76
77
  fill: "var(--color-surface-fg-muted)",
77
78
  fontSize: "var(--font-size-sm)",
78
79
  ...a === "bottom" ? { x: "50%", dy: 35 } : a === "left" ? { transform: "rotate(-90)", y: -40, x: 0 } : {},
79
- children: x
80
+ children: M
80
81
  }
81
82
  ) });
82
83
  }
83
- K.displayName = "Axis";
84
- function he({
84
+ ee.displayName = "Axis";
85
+ function fe({
85
86
  width: t,
86
87
  height: a,
87
88
  xScale: o,
88
- yScale: y,
89
- horizontal: m = !0,
90
- vertical: x = !1
89
+ yScale: x,
90
+ horizontal: d = !0,
91
+ vertical: M = !1
91
92
  }) {
92
93
  return /* @__PURE__ */ p("g", { className: "grid-lines", children: [
93
- m && y?.ticks && y.ticks().map((c, M) => /* @__PURE__ */ e(
94
+ d && x?.ticks && x.ticks().map((i, k) => /* @__PURE__ */ e(
94
95
  "line",
95
96
  {
96
97
  x1: 0,
97
98
  x2: t,
98
- y1: y(c),
99
- y2: y(c),
99
+ y1: x(i),
100
+ y2: x(i),
100
101
  stroke: "var(--color-surface-border)",
101
102
  strokeDasharray: "3,3",
102
103
  opacity: 0.6
103
104
  },
104
- `h-${M}`
105
+ `h-${k}`
105
106
  )),
106
- x && o?.ticks && o.ticks().map((c, M) => /* @__PURE__ */ e(
107
+ M && o?.ticks && o.ticks().map((i, k) => /* @__PURE__ */ e(
107
108
  "line",
108
109
  {
109
- x1: o(c),
110
- x2: o(c),
110
+ x1: o(i),
111
+ x2: o(i),
111
112
  y1: 0,
112
113
  y2: a,
113
114
  stroke: "var(--color-surface-border)",
114
115
  strokeDasharray: "3,3",
115
116
  opacity: 0.6
116
117
  },
117
- `v-${M}`
118
+ `v-${k}`
118
119
  ))
119
120
  ] });
120
121
  }
121
- he.displayName = "GridLines";
122
- function ce({ items: t, position: a = "bottom", className: o }) {
122
+ fe.displayName = "GridLines";
123
+ function ie({ items: t, position: a = "bottom", className: o }) {
123
124
  return /* @__PURE__ */ e(
124
125
  "div",
125
126
  {
126
- className: Q(
127
+ className: H(
127
128
  "flex gap-ds-04 text-ds-sm text-surface-fg-muted",
128
129
  a === "left" || a === "right" ? "flex-col" : "flex-row flex-wrap justify-center",
129
130
  o
130
131
  ),
131
- children: t.map((m) => /* @__PURE__ */ p("div", { className: "flex items-center gap-ds-02", children: [
132
+ children: t.map((d) => /* @__PURE__ */ p("div", { className: "flex items-center gap-ds-02", children: [
132
133
  /* @__PURE__ */ e(
133
134
  "span",
134
135
  {
135
136
  className: "inline-block h-3 w-3 shrink-0 rounded-ds-sm",
136
- style: { backgroundColor: m.color }
137
+ style: { backgroundColor: d.color }
137
138
  }
138
139
  ),
139
- /* @__PURE__ */ e("span", { children: m.label })
140
- ] }, m.label))
140
+ /* @__PURE__ */ e("span", { children: d.label })
141
+ ] }, d.label))
141
142
  }
142
143
  );
143
144
  }
144
- ce.displayName = "Legend";
145
- function ie({ state: t, className: a }) {
145
+ ie.displayName = "Legend";
146
+ function ue({ state: t, className: a }) {
146
147
  return t.visible ? /* @__PURE__ */ e(
147
148
  "div",
148
149
  {
149
- className: Q(
150
+ className: H(
150
151
  "pointer-events-none absolute z-tooltip",
151
152
  "rounded-ds-md border border-surface-border-strong",
152
153
  "bg-surface-overlay px-ds-03 py-ds-02",
@@ -159,21 +160,21 @@ function ie({ state: t, className: a }) {
159
160
  }
160
161
  ) : null;
161
162
  }
162
- ie.displayName = "ChartTooltip";
163
- function fe() {
164
- const [t, a] = de({
163
+ ue.displayName = "ChartTooltip";
164
+ function pe() {
165
+ const [t, a] = me({
165
166
  visible: !1,
166
167
  x: 0,
167
168
  y: 0,
168
169
  content: null
169
- }), o = ke((m, x, c) => {
170
- a({ visible: !0, x: m, y: x, content: c });
171
- }, []), y = ke(() => {
172
- a((m) => ({ ...m, visible: !1 }));
170
+ }), o = Re((d, M, i) => {
171
+ a({ visible: !0, x: d, y: M, content: i });
172
+ }, []), x = Re(() => {
173
+ a((d) => ({ ...d, visible: !1 }));
173
174
  }, []);
174
- return { tooltip: t, show: o, hide: y };
175
+ return { tooltip: t, show: o, hide: x };
175
176
  }
176
- const be = [
177
+ const Me = [
177
178
  "chart-1",
178
179
  "chart-2",
179
180
  "chart-3",
@@ -183,157 +184,158 @@ const be = [
183
184
  "chart-7",
184
185
  "chart-8"
185
186
  ];
186
- function Re(t) {
187
+ function $e(t) {
187
188
  return `var(--${t})`;
188
189
  }
189
- function re(t, a = 0) {
190
- return t ? be.includes(t) ? Re(t) : t : Re(be[a % be.length]);
190
+ function ae(t, a = 0) {
191
+ return t ? Me.includes(t) ? $e(t) : t : $e(Me[a % Me.length]);
191
192
  }
192
- function oe() {
193
- const { reducedMotion: t } = Ve();
193
+ function le() {
194
+ const { reducedMotion: t } = _e();
194
195
  return t;
195
196
  }
196
- function Fe(t, a = 300) {
197
+ function Ee(t, a = 300) {
197
198
  return t ? 0 : a;
198
199
  }
199
- const Ee = te.forwardRef(
200
+ const Ue = ne.forwardRef(
200
201
  ({
201
202
  data: t,
202
203
  xKey: a,
203
204
  yKey: o,
204
- orientation: y = "vertical",
205
- stacked: m = !1,
206
- grouped: x = !1,
207
- color: c,
208
- height: M = 300,
209
- showGrid: z = !0,
210
- showTooltip: N = !0,
211
- showLegend: A = !1,
212
- animate: k = !0,
213
- barRadius: j = 4,
214
- xLabel: P,
215
- yLabel: R,
216
- seriesLabels: X,
217
- className: E,
218
- ...W
219
- }, U) => {
220
- const { tooltip: I, show: T, hide: B } = fe(), q = oe(), d = y === "vertical", w = k && !q, b = Array.isArray(o) ? o : [o], i = b.length > 1, V = i ? b.map(
221
- ($, L) => re(
222
- Array.isArray(c) ? c[L] : typeof c == "string" ? c : void 0,
205
+ orientation: x = "vertical",
206
+ stacked: d = !1,
207
+ grouped: M = !1,
208
+ color: i,
209
+ height: k = 300,
210
+ showGrid: G = !0,
211
+ showTooltip: P = !0,
212
+ showLegend: v = !1,
213
+ animate: R = !0,
214
+ barRadius: Z = 4,
215
+ xLabel: B,
216
+ yLabel: N,
217
+ seriesLabels: z,
218
+ ariaLabel: X,
219
+ className: W,
220
+ ...q
221
+ }, j) => {
222
+ const { tooltip: T, show: V, hide: J } = pe(), E = le(), m = x === "vertical", S = R && !E, y = Array.isArray(o) ? o : [o], c = y.length > 1, I = c ? y.map(
223
+ (C, L) => ae(
224
+ Array.isArray(i) ? i[L] : typeof i == "string" ? i : void 0,
223
225
  L
224
226
  )
225
227
  ) : [
226
- re(
227
- typeof c == "string" ? c : Array.isArray(c) ? c[0] : void 0,
228
+ ae(
229
+ typeof i == "string" ? i : Array.isArray(i) ? i[0] : void 0,
228
230
  0
229
231
  )
230
232
  ];
231
233
  return /* @__PURE__ */ p(
232
- ne.div,
234
+ re.div,
233
235
  {
234
- ref: U,
235
- className: Q("relative", E),
236
- ...w ? { initial: { opacity: 0, scale: 0.96 }, animate: { opacity: 1, scale: 1 }, transition: le.fade } : {},
237
- ...se(W),
236
+ ref: j,
237
+ className: H("relative", W),
238
+ ...S ? { initial: { opacity: 0, scale: 0.96 }, animate: { opacity: 1, scale: 1 }, transition: se.fade } : {},
239
+ ...ce(q),
238
240
  children: [
239
- /* @__PURE__ */ e(xe, { height: M, children: ({ width: $, height: L, margin: u }) => {
240
- const s = t.map((S) => String(S[a]));
241
- let l;
242
- m ? l = Math.max(
241
+ /* @__PURE__ */ e(be, { height: k, ariaLabel: X ?? "Bar chart", children: ({ width: C, height: L, margin: u }) => {
242
+ const l = t.map((A) => String(A[a]));
243
+ let s;
244
+ d ? s = Math.max(
243
245
  ...t.map(
244
- (S) => b.reduce((G, C) => G + (Number(S[C]) || 0), 0)
246
+ (A) => y.reduce((w, $) => w + (Number(A[$]) || 0), 0)
245
247
  )
246
- ) : l = Math.max(
247
- ...t.flatMap((S) => b.map((G) => Number(S[G]) || 0))
248
+ ) : s = Math.max(
249
+ ...t.flatMap((A) => y.map((w) => Number(A[w]) || 0))
248
250
  );
249
- const g = Ge().domain(s).range(d ? [0, $] : [0, L]).padding(0.2), n = ae().domain([0, l * 1.1]).range(d ? [L, 0] : [0, $]).nice(), r = g.bandwidth(), f = i && x ? r / b.length : r;
250
- return /* @__PURE__ */ p(ee, { children: [
251
- z && /* @__PURE__ */ e(
252
- he,
251
+ const b = Xe().domain(l).range(m ? [0, C] : [0, L]).padding(0.2), n = oe().domain([0, s * 1.1]).range(m ? [L, 0] : [0, C]).nice(), r = b.bandwidth(), f = c && M ? r / y.length : r;
252
+ return /* @__PURE__ */ p(te, { children: [
253
+ G && /* @__PURE__ */ e(
254
+ fe,
253
255
  {
254
- width: $,
256
+ width: C,
255
257
  height: L,
256
- yScale: d ? n : void 0,
257
- xScale: d ? void 0 : n,
258
- horizontal: d,
259
- vertical: !d
258
+ yScale: m ? n : void 0,
259
+ xScale: m ? void 0 : n,
260
+ horizontal: m,
261
+ vertical: !m
260
262
  }
261
263
  ),
262
- t.map((S) => {
263
- const G = String(S[a]);
264
- let C = 0;
265
- return b.map((J, h) => {
266
- const v = Number(S[J]) || 0, _ = V[h] || V[0];
267
- let Y, F, H, D;
268
- return d ? (Y = (g(G) ?? 0) + (x && i ? h * f : 0), F = n(m ? C + v : v), H = f, D = m ? n(C) - n(C + v) : L - n(v)) : (Y = m ? n(C) : 0, F = (g(G) ?? 0) + (x && i ? h * f : 0), H = m ? n(C + v) - n(C) : n(v), D = f), m && (C += v), /* @__PURE__ */ e(
264
+ t.map((A) => {
265
+ const w = String(A[a]);
266
+ let $ = 0;
267
+ return y.map((Q, h) => {
268
+ const g = Number(A[Q]) || 0, _ = I[h] || I[0];
269
+ let Y, F, K, D;
270
+ return m ? (Y = (b(w) ?? 0) + (M && c ? h * f : 0), F = n(d ? $ + g : g), K = f, D = d ? n($) - n($ + g) : L - n(g)) : (Y = d ? n($) : 0, F = (b(w) ?? 0) + (M && c ? h * f : 0), K = d ? n($ + g) - n($) : n(g), D = f), d && ($ += g), /* @__PURE__ */ e(
269
271
  "rect",
270
272
  {
271
273
  x: Y,
272
274
  y: F,
273
- width: Math.max(0, H),
275
+ width: Math.max(0, K),
274
276
  height: Math.max(0, D),
275
- rx: j,
277
+ rx: Z,
276
278
  fill: _,
277
279
  className: "transition-opacity hover:opacity-80",
278
- onMouseMove: (Z) => {
279
- if (N) {
280
- const O = Z.currentTarget.closest("div")?.getBoundingClientRect();
281
- T(
282
- Z.clientX - (O?.left ?? 0),
283
- Z.clientY - (O?.top ?? 0),
280
+ onMouseMove: (U) => {
281
+ if (P) {
282
+ const O = U.currentTarget.closest("div")?.getBoundingClientRect();
283
+ V(
284
+ U.clientX - (O?.left ?? 0),
285
+ U.clientY - (O?.top ?? 0),
284
286
  /* @__PURE__ */ p("div", { children: [
285
- /* @__PURE__ */ e("div", { className: "font-medium", children: G }),
286
- i && /* @__PURE__ */ e("div", { className: "text-surface-fg-muted", children: X?.[h] ?? J }),
287
- /* @__PURE__ */ e("div", { children: v.toLocaleString() })
287
+ /* @__PURE__ */ e("div", { className: "font-medium", children: w }),
288
+ c && /* @__PURE__ */ e("div", { className: "text-surface-fg-muted", children: z?.[h] ?? Q }),
289
+ /* @__PURE__ */ e("div", { children: g.toLocaleString() })
288
290
  ] })
289
291
  );
290
292
  }
291
293
  },
292
- onMouseLeave: B
294
+ onMouseLeave: J
293
295
  },
294
- `${G}-${J}`
296
+ `${w}-${Q}`
295
297
  );
296
298
  });
297
299
  }),
298
- d ? /* @__PURE__ */ p(ee, { children: [
300
+ m ? /* @__PURE__ */ p(te, { children: [
299
301
  /* @__PURE__ */ e(
300
- K,
302
+ ee,
301
303
  {
302
- scale: g,
304
+ scale: b,
303
305
  orientation: "bottom",
304
306
  transform: `translate(0,${L})`,
305
- label: P
307
+ label: B
306
308
  }
307
309
  ),
308
- /* @__PURE__ */ e(K, { scale: n, orientation: "left", label: R })
309
- ] }) : /* @__PURE__ */ p(ee, { children: [
310
+ /* @__PURE__ */ e(ee, { scale: n, orientation: "left", label: N })
311
+ ] }) : /* @__PURE__ */ p(te, { children: [
310
312
  /* @__PURE__ */ e(
311
- K,
313
+ ee,
312
314
  {
313
315
  scale: n,
314
316
  orientation: "bottom",
315
317
  transform: `translate(0,${L})`,
316
- label: P
318
+ label: B
317
319
  }
318
320
  ),
319
321
  /* @__PURE__ */ e(
320
- K,
322
+ ee,
321
323
  {
322
- scale: g,
324
+ scale: b,
323
325
  orientation: "left",
324
- label: R
326
+ label: N
325
327
  }
326
328
  )
327
329
  ] })
328
330
  ] });
329
331
  } }),
330
- N && /* @__PURE__ */ e(ie, { state: I }),
331
- A && i && /* @__PURE__ */ e(
332
- ce,
332
+ P && /* @__PURE__ */ e(ue, { state: T }),
333
+ v && c && /* @__PURE__ */ e(
334
+ ie,
333
335
  {
334
- items: b.map(($, L) => ({
335
- label: X?.[L] ?? $,
336
- color: V[L]
336
+ items: y.map((C, L) => ({
337
+ label: z?.[L] ?? C,
338
+ color: I[L]
337
339
  })),
338
340
  className: "mt-ds-04"
339
341
  }
@@ -343,106 +345,107 @@ const Ee = te.forwardRef(
343
345
  );
344
346
  }
345
347
  );
346
- Ee.displayName = "BarChart";
347
- const Ue = te.forwardRef(
348
+ Ue.displayName = "BarChart";
349
+ const Ze = ne.forwardRef(
348
350
  ({
349
351
  data: t,
350
352
  xKey: a,
351
353
  series: o,
352
- curved: y = !1,
353
- showDots: m = !1,
354
- dotSize: x = 4,
355
- strokeWidth: c = 2,
356
- height: M = 300,
357
- showGrid: z = !0,
358
- showTooltip: N = !0,
359
- showLegend: A = !1,
360
- animate: k = !0,
361
- xLabel: j,
362
- yLabel: P,
363
- className: R,
354
+ curved: x = !1,
355
+ showDots: d = !1,
356
+ dotSize: M = 4,
357
+ strokeWidth: i = 2,
358
+ height: k = 300,
359
+ showGrid: G = !0,
360
+ showTooltip: P = !0,
361
+ showLegend: v = !1,
362
+ animate: R = !0,
363
+ xLabel: Z,
364
+ yLabel: B,
365
+ ariaLabel: N,
366
+ className: z,
364
367
  ...X
365
- }, E) => {
366
- const { tooltip: W, show: U, hide: I } = fe(), T = oe(), B = k && !T, q = o.map((d, w) => re(d.color, w));
368
+ }, W) => {
369
+ const { tooltip: q, show: j, hide: T } = pe(), V = le(), J = R && !V, E = o.map((m, S) => ae(m.color, S));
367
370
  return /* @__PURE__ */ p(
368
- ne.div,
371
+ re.div,
369
372
  {
370
- ref: E,
371
- className: Q("relative", R),
372
- ...B ? { initial: { opacity: 0, scale: 0.96 }, animate: { opacity: 1, scale: 1 }, transition: le.fade } : {},
373
- ...se(X),
373
+ ref: W,
374
+ className: H("relative", z),
375
+ ...J ? { initial: { opacity: 0, scale: 0.96 }, animate: { opacity: 1, scale: 1 }, transition: se.fade } : {},
376
+ ...ce(X),
374
377
  children: [
375
- /* @__PURE__ */ e(xe, { height: M, children: ({ width: d, height: w, margin: b }) => {
376
- const i = t.map((r) => r[a]), V = i.every((r) => typeof r == "number");
377
- let $, L;
378
- if (V) {
379
- const r = i, f = Math.min(...r), S = Math.max(...r), G = ae().domain([f, S]).range([0, d]);
380
- $ = G, L = (C) => G(Number(C[a]));
378
+ /* @__PURE__ */ e(be, { height: k, ariaLabel: N ?? "Line chart", children: ({ width: m, height: S, margin: y }) => {
379
+ const c = t.map((r) => r[a]), I = c.every((r) => typeof r == "number");
380
+ let C, L;
381
+ if (I) {
382
+ const r = c, f = Math.min(...r), A = Math.max(...r), w = oe().domain([f, A]).range([0, m]);
383
+ C = w, L = ($) => w(Number($[a]));
381
384
  } else {
382
- const r = i.map(String), f = Ce().domain(r).range([0, d]).padding(0.5);
383
- $ = f, L = (S) => f(String(S[a])) ?? 0;
385
+ const r = c.map(String), f = Le().domain(r).range([0, m]).padding(0.5);
386
+ C = f, L = (A) => f(String(A[a])) ?? 0;
384
387
  }
385
388
  const u = t.flatMap(
386
389
  (r) => o.map((f) => Number(r[f.key]) || 0)
387
- ), s = Math.max(...u), l = ae().domain([0, s * 1.1]).range([w, 0]).nice(), g = y ? ue : Ae, n = me().curve(g).defined((r) => r != null);
388
- return /* @__PURE__ */ p(ee, { children: [
389
- z && /* @__PURE__ */ e(
390
- he,
390
+ ), l = Math.max(...u), s = oe().domain([0, l * 1.1]).range([S, 0]).nice(), b = x ? de : Ae, n = he().curve(b).defined((r) => r != null);
391
+ return /* @__PURE__ */ p(te, { children: [
392
+ G && /* @__PURE__ */ e(
393
+ fe,
391
394
  {
392
- width: d,
393
- height: w,
394
- yScale: l,
395
+ width: m,
396
+ height: S,
397
+ yScale: s,
395
398
  horizontal: !0
396
399
  }
397
400
  ),
398
401
  o.map((r, f) => {
399
- const G = n.x((C) => L(C)).y((C) => l(Number(C[r.key]) || 0))(t) ?? "";
402
+ const w = n.x(($) => L($)).y(($) => s(Number($[r.key]) || 0))(t) ?? "";
400
403
  return /* @__PURE__ */ p("g", { children: [
401
404
  /* @__PURE__ */ e(
402
405
  "path",
403
406
  {
404
- d: G,
407
+ d: w,
405
408
  fill: "none",
406
- stroke: q[f],
407
- strokeWidth: c,
409
+ stroke: E[f],
410
+ strokeWidth: i,
408
411
  strokeLinejoin: "round",
409
412
  strokeLinecap: "round"
410
413
  }
411
414
  ),
412
- m && t.map((C, J) => {
413
- const h = L(C), v = l(Number(C[r.key]) || 0);
415
+ d && t.map(($, Q) => {
416
+ const h = L($), g = s(Number($[r.key]) || 0);
414
417
  return /* @__PURE__ */ e(
415
418
  "circle",
416
419
  {
417
420
  cx: h,
418
- cy: v,
419
- r: x,
420
- fill: q[f],
421
+ cy: g,
422
+ r: M,
423
+ fill: E[f],
421
424
  className: "transition-opacity hover:opacity-80"
422
425
  },
423
- `${r.key}-dot-${J}`
426
+ `${r.key}-dot-${Q}`
424
427
  );
425
428
  })
426
429
  ] }, r.key);
427
430
  }),
428
- N && t.map((r, f) => {
429
- const S = L(r), G = d / Math.max(t.length - 1, 1);
431
+ P && t.map((r, f) => {
432
+ const A = L(r), w = m / Math.max(t.length - 1, 1);
430
433
  return /* @__PURE__ */ e(
431
434
  "rect",
432
435
  {
433
- x: S - G / 2,
436
+ x: A - w / 2,
434
437
  y: 0,
435
- width: G,
436
- height: w,
438
+ width: w,
439
+ height: S,
437
440
  fill: "transparent",
438
- onMouseMove: (C) => {
439
- const J = C.currentTarget.closest("div")?.getBoundingClientRect();
440
- U(
441
- C.clientX - (J?.left ?? 0),
442
- C.clientY - (J?.top ?? 0),
441
+ onMouseMove: ($) => {
442
+ const Q = $.currentTarget.closest("div")?.getBoundingClientRect();
443
+ j(
444
+ $.clientX - (Q?.left ?? 0),
445
+ $.clientY - (Q?.top ?? 0),
443
446
  /* @__PURE__ */ p("div", { children: [
444
447
  /* @__PURE__ */ e("div", { className: "font-medium", children: String(r[a]) }),
445
- o.map((h, v) => /* @__PURE__ */ p(
448
+ o.map((h, g) => /* @__PURE__ */ p(
446
449
  "div",
447
450
  {
448
451
  className: "flex items-center gap-ds-02",
@@ -451,7 +454,7 @@ const Ue = te.forwardRef(
451
454
  "span",
452
455
  {
453
456
  className: "inline-block h-2 w-2 rounded-ds-full",
454
- style: { backgroundColor: q[v] }
457
+ style: { backgroundColor: E[g] }
455
458
  }
456
459
  ),
457
460
  /* @__PURE__ */ p("span", { className: "text-surface-fg-muted", children: [
@@ -467,30 +470,30 @@ const Ue = te.forwardRef(
467
470
  ] })
468
471
  );
469
472
  },
470
- onMouseLeave: I
473
+ onMouseLeave: T
471
474
  },
472
475
  `hover-${f}`
473
476
  );
474
477
  }),
475
478
  /* @__PURE__ */ e(
476
- K,
479
+ ee,
477
480
  {
478
- scale: $,
481
+ scale: C,
479
482
  orientation: "bottom",
480
- transform: `translate(0,${w})`,
481
- label: j
483
+ transform: `translate(0,${S})`,
484
+ label: Z
482
485
  }
483
486
  ),
484
- /* @__PURE__ */ e(K, { scale: l, orientation: "left", label: P })
487
+ /* @__PURE__ */ e(ee, { scale: s, orientation: "left", label: B })
485
488
  ] });
486
489
  } }),
487
- N && /* @__PURE__ */ e(ie, { state: W }),
488
- A && o.length > 1 && /* @__PURE__ */ e(
489
- ce,
490
+ P && /* @__PURE__ */ e(ue, { state: q }),
491
+ v && o.length > 1 && /* @__PURE__ */ e(
492
+ ie,
490
493
  {
491
- items: o.map((d, w) => ({
492
- label: d.label,
493
- color: q[w]
494
+ items: o.map((m, S) => ({
495
+ label: m.label,
496
+ color: E[S]
494
497
  })),
495
498
  className: "mt-ds-04"
496
499
  }
@@ -500,74 +503,75 @@ const Ue = te.forwardRef(
500
503
  );
501
504
  }
502
505
  );
503
- Ue.displayName = "LineChart";
504
- const Ze = te.forwardRef(
506
+ Ze.displayName = "LineChart";
507
+ const qe = ne.forwardRef(
505
508
  ({
506
509
  data: t,
507
510
  xKey: a,
508
511
  series: o,
509
- curved: y = !1,
510
- stacked: m = !1,
511
- fillOpacity: x = 0.3,
512
- gradient: c = !1,
513
- strokeWidth: M = 2,
514
- height: z = 300,
515
- showGrid: N = !0,
516
- showTooltip: A = !0,
517
- showLegend: k = !1,
518
- animate: j = !0,
519
- xLabel: P,
520
- yLabel: R,
512
+ curved: x = !1,
513
+ stacked: d = !1,
514
+ fillOpacity: M = 0.3,
515
+ gradient: i = !1,
516
+ strokeWidth: k = 2,
517
+ height: G = 300,
518
+ showGrid: P = !0,
519
+ showTooltip: v = !0,
520
+ showLegend: R = !1,
521
+ animate: Z = !0,
522
+ xLabel: B,
523
+ yLabel: N,
524
+ ariaLabel: z,
521
525
  className: X,
522
- ...E
523
- }, W) => {
524
- const { tooltip: U, show: I, hide: T } = fe(), B = oe(), q = j && !B, d = o.map((b, i) => re(b.color, i)), w = te.useId();
526
+ ...W
527
+ }, q) => {
528
+ const { tooltip: j, show: T, hide: V } = pe(), J = le(), E = Z && !J, m = o.map((y, c) => ae(y.color, c)), S = ne.useId();
525
529
  return /* @__PURE__ */ p(
526
- ne.div,
530
+ re.div,
527
531
  {
528
- ref: W,
529
- className: Q("relative", X),
530
- ...q ? { initial: { opacity: 0, scale: 0.96 }, animate: { opacity: 1, scale: 1 }, transition: le.fade } : {},
531
- ...se(E),
532
+ ref: q,
533
+ className: H("relative", X),
534
+ ...E ? { initial: { opacity: 0, scale: 0.96 }, animate: { opacity: 1, scale: 1 }, transition: se.fade } : {},
535
+ ...ce(W),
532
536
  children: [
533
- /* @__PURE__ */ e(xe, { height: z, children: ({ width: b, height: i, margin: V }) => {
534
- const $ = t.map((h) => h[a]), L = $.every((h) => typeof h == "number");
535
- let u, s, l;
537
+ /* @__PURE__ */ e(be, { height: G, ariaLabel: z ?? "Area chart", children: ({ width: y, height: c, margin: I }) => {
538
+ const C = t.map((h) => h[a]), L = C.every((h) => typeof h == "number");
539
+ let u, l, s;
536
540
  if (L) {
537
- const h = $, v = Math.min(...h), _ = Math.max(...h), Y = ae().domain([v, _]).range([0, b]);
538
- u = Y, s = (F) => Y(Number(F[a])), l = (F) => Y(Number(t[F][a]));
541
+ const h = C, g = Math.min(...h), _ = Math.max(...h), Y = oe().domain([g, _]).range([0, y]);
542
+ u = Y, l = (F) => Y(Number(F[a])), s = (F) => Y(Number(t[F][a]));
539
543
  } else {
540
- const h = $.map(String), v = Ce().domain(h).range([0, b]).padding(0.5);
541
- u = v, s = (_) => v(String(_[a])) ?? 0, l = (_) => v(String(t[_][a])) ?? 0;
544
+ const h = C.map(String), g = Le().domain(h).range([0, y]).padding(0.5);
545
+ u = g, l = (_) => g(String(_[a])) ?? 0, s = (_) => g(String(t[_][a])) ?? 0;
542
546
  }
543
- let g;
544
- m ? g = Math.max(
547
+ let b;
548
+ d ? b = Math.max(
545
549
  ...t.map(
546
- (h) => o.reduce((v, _) => v + (Number(h[_.key]) || 0), 0)
550
+ (h) => o.reduce((g, _) => g + (Number(h[_.key]) || 0), 0)
547
551
  )
548
- ) : g = Math.max(
552
+ ) : b = Math.max(
549
553
  ...t.flatMap(
550
- (h) => o.map((v) => Number(h[v.key]) || 0)
554
+ (h) => o.map((g) => Number(h[g.key]) || 0)
551
555
  )
552
556
  );
553
- const n = ae().domain([0, g * 1.1]).range([i, 0]).nice(), r = y ? ue : Ae, f = () => t.map((h, v) => {
554
- const _ = s(h), Y = b / Math.max(t.length - 1, 1);
557
+ const n = oe().domain([0, b * 1.1]).range([c, 0]).nice(), r = x ? de : Ae, f = () => t.map((h, g) => {
558
+ const _ = l(h), Y = y / Math.max(t.length - 1, 1);
555
559
  return /* @__PURE__ */ e(
556
560
  "rect",
557
561
  {
558
562
  x: _ - Y / 2,
559
563
  y: 0,
560
564
  width: Y,
561
- height: i,
565
+ height: c,
562
566
  fill: "transparent",
563
567
  onMouseMove: (F) => {
564
- const H = F.currentTarget.closest("div")?.getBoundingClientRect();
565
- I(
566
- F.clientX - (H?.left ?? 0),
567
- F.clientY - (H?.top ?? 0),
568
+ const K = F.currentTarget.closest("div")?.getBoundingClientRect();
569
+ T(
570
+ F.clientX - (K?.left ?? 0),
571
+ F.clientY - (K?.top ?? 0),
568
572
  /* @__PURE__ */ p("div", { children: [
569
573
  /* @__PURE__ */ e("div", { className: "font-medium", children: String(h[a]) }),
570
- o.map((D, Z) => /* @__PURE__ */ p(
574
+ o.map((D, U) => /* @__PURE__ */ p(
571
575
  "div",
572
576
  {
573
577
  className: "flex items-center gap-ds-02",
@@ -576,7 +580,7 @@ const Ze = te.forwardRef(
576
580
  "span",
577
581
  {
578
582
  className: "inline-block h-2 w-2 rounded-ds-full",
579
- style: { backgroundColor: d[Z] }
583
+ style: { backgroundColor: m[U] }
580
584
  }
581
585
  ),
582
586
  /* @__PURE__ */ p("span", { className: "text-surface-fg-muted", children: [
@@ -592,14 +596,14 @@ const Ze = te.forwardRef(
592
596
  ] })
593
597
  );
594
598
  },
595
- onMouseLeave: T
599
+ onMouseLeave: V
596
600
  },
597
- `hover-${v}`
601
+ `hover-${g}`
598
602
  );
599
- }), S = () => c ? /* @__PURE__ */ e("defs", { children: o.map((h, v) => /* @__PURE__ */ p(
603
+ }), A = () => i ? /* @__PURE__ */ e("defs", { children: o.map((h, g) => /* @__PURE__ */ p(
600
604
  "linearGradient",
601
605
  {
602
- id: `${w}-gradient-${v}`,
606
+ id: `${S}-gradient-${g}`,
603
607
  x1: "0",
604
608
  y1: "0",
605
609
  x2: "0",
@@ -609,100 +613,100 @@ const Ze = te.forwardRef(
609
613
  "stop",
610
614
  {
611
615
  offset: "0%",
612
- stopColor: d[v],
613
- stopOpacity: x
616
+ stopColor: m[g],
617
+ stopOpacity: M
614
618
  }
615
619
  ),
616
620
  /* @__PURE__ */ e(
617
621
  "stop",
618
622
  {
619
623
  offset: "100%",
620
- stopColor: d[v],
624
+ stopColor: m[g],
621
625
  stopOpacity: 0.05
622
626
  }
623
627
  )
624
628
  ]
625
629
  },
626
- `grad-${v}`
627
- )) }) : null, G = () => /* @__PURE__ */ p(ee, { children: [
630
+ `grad-${g}`
631
+ )) }) : null, w = () => /* @__PURE__ */ p(te, { children: [
628
632
  /* @__PURE__ */ e(
629
- K,
633
+ ee,
630
634
  {
631
635
  scale: u,
632
636
  orientation: "bottom",
633
- transform: `translate(0,${i})`,
634
- label: P
637
+ transform: `translate(0,${c})`,
638
+ label: B
635
639
  }
636
640
  ),
637
- /* @__PURE__ */ e(K, { scale: n, orientation: "left", label: R })
641
+ /* @__PURE__ */ e(ee, { scale: n, orientation: "left", label: N })
638
642
  ] });
639
- if (m) {
640
- const h = o.map((D) => D.key), v = _e().keys(h).order(je).offset(Te), _ = t.map((D) => {
641
- const Z = { [a]: String(D[a]) };
643
+ if (d) {
644
+ const h = o.map((D) => D.key), g = je().keys(h).order(Te).offset(Ye), _ = t.map((D) => {
645
+ const U = { [a]: String(D[a]) };
642
646
  for (const O of o)
643
- Z[O.key] = Number(D[O.key]) || 0;
644
- return Z;
645
- }), Y = v(_), F = Me().curve(r).x((D, Z) => l(Z)).y0((D) => n(D[0])).y1((D) => n(D[1])), H = me().curve(r).x((D, Z) => l(Z)).y((D) => n(D[1]));
646
- return /* @__PURE__ */ p(ee, { children: [
647
- S(),
648
- N && /* @__PURE__ */ e(
649
- he,
647
+ U[O.key] = Number(D[O.key]) || 0;
648
+ return U;
649
+ }), Y = g(_), F = Ne().curve(r).x((D, U) => s(U)).y0((D) => n(D[0])).y1((D) => n(D[1])), K = he().curve(r).x((D, U) => s(U)).y((D) => n(D[1]));
650
+ return /* @__PURE__ */ p(te, { children: [
651
+ A(),
652
+ P && /* @__PURE__ */ e(
653
+ fe,
650
654
  {
651
- width: b,
652
- height: i,
655
+ width: y,
656
+ height: c,
653
657
  yScale: n,
654
658
  horizontal: !0
655
659
  }
656
660
  ),
657
- [...Y].reverse().map((D, Z) => {
658
- const O = Y.length - 1 - Z, Ne = D, Le = F(Ne) ?? "", Se = H(Ne) ?? "", we = c ? `url(#${w}-gradient-${O})` : d[O];
661
+ [...Y].reverse().map((D, U) => {
662
+ const O = Y.length - 1 - U, ke = D, Se = F(ke) ?? "", we = K(ke) ?? "", Ge = i ? `url(#${S}-gradient-${O})` : m[O];
659
663
  return /* @__PURE__ */ p("g", { children: [
660
664
  /* @__PURE__ */ e(
661
665
  "path",
662
666
  {
663
- d: Le,
664
- fill: we,
665
- opacity: c ? 1 : x
667
+ d: Se,
668
+ fill: Ge,
669
+ opacity: i ? 1 : M
666
670
  }
667
671
  ),
668
672
  /* @__PURE__ */ e(
669
673
  "path",
670
674
  {
671
- d: Se,
675
+ d: we,
672
676
  fill: "none",
673
- stroke: d[O],
674
- strokeWidth: M,
677
+ stroke: m[O],
678
+ strokeWidth: k,
675
679
  strokeLinejoin: "round",
676
680
  strokeLinecap: "round"
677
681
  }
678
682
  )
679
683
  ] }, o[O].key);
680
684
  }),
681
- A && f(),
682
- G()
685
+ v && f(),
686
+ w()
683
687
  ] });
684
688
  }
685
- const C = Me().curve(r).defined((h) => h != null), J = me().curve(r).defined((h) => h != null);
686
- return /* @__PURE__ */ p(ee, { children: [
687
- S(),
688
- N && /* @__PURE__ */ e(
689
- he,
689
+ const $ = Ne().curve(r).defined((h) => h != null), Q = he().curve(r).defined((h) => h != null);
690
+ return /* @__PURE__ */ p(te, { children: [
691
+ A(),
692
+ P && /* @__PURE__ */ e(
693
+ fe,
690
694
  {
691
- width: b,
692
- height: i,
695
+ width: y,
696
+ height: c,
693
697
  yScale: n,
694
698
  horizontal: !0
695
699
  }
696
700
  ),
697
- [...o].reverse().map((h, v) => {
698
- const _ = o.length - 1 - v, Y = C.x((O) => s(O)).y0(i).y1((O) => n(Number(O[h.key]) || 0)), F = J.x((O) => s(O)).y((O) => n(Number(O[h.key]) || 0)), H = Y(t) ?? "", D = F(t) ?? "", Z = c ? `url(#${w}-gradient-${_})` : d[_];
701
+ [...o].reverse().map((h, g) => {
702
+ const _ = o.length - 1 - g, Y = $.x((O) => l(O)).y0(c).y1((O) => n(Number(O[h.key]) || 0)), F = Q.x((O) => l(O)).y((O) => n(Number(O[h.key]) || 0)), K = Y(t) ?? "", D = F(t) ?? "", U = i ? `url(#${S}-gradient-${_})` : m[_];
699
703
  return /* @__PURE__ */ p("g", { children: [
700
704
  /* @__PURE__ */ e(
701
705
  "path",
702
706
  {
703
- d: H,
704
- fill: Z,
705
- opacity: c ? 1 : x
707
+ d: K,
708
+ fill: U,
709
+ opacity: i ? 1 : M
706
710
  }
707
711
  ),
708
712
  /* @__PURE__ */ e(
@@ -710,25 +714,25 @@ const Ze = te.forwardRef(
710
714
  {
711
715
  d: D,
712
716
  fill: "none",
713
- stroke: d[_],
714
- strokeWidth: M,
717
+ stroke: m[_],
718
+ strokeWidth: k,
715
719
  strokeLinejoin: "round",
716
720
  strokeLinecap: "round"
717
721
  }
718
722
  )
719
723
  ] }, h.key);
720
724
  }),
721
- A && f(),
722
- G()
725
+ v && f(),
726
+ w()
723
727
  ] });
724
728
  } }),
725
- A && /* @__PURE__ */ e(ie, { state: U }),
726
- k && o.length > 1 && /* @__PURE__ */ e(
727
- ce,
729
+ v && /* @__PURE__ */ e(ue, { state: j }),
730
+ R && o.length > 1 && /* @__PURE__ */ e(
731
+ ie,
728
732
  {
729
- items: o.map((b, i) => ({
730
- label: b.label,
731
- color: d[i]
733
+ items: o.map((y, c) => ({
734
+ label: y.label,
735
+ color: m[c]
732
736
  })),
733
737
  className: "mt-ds-04"
734
738
  }
@@ -738,70 +742,71 @@ const Ze = te.forwardRef(
738
742
  );
739
743
  }
740
744
  );
741
- Ze.displayName = "AreaChart";
742
- const qe = te.forwardRef(
745
+ qe.displayName = "AreaChart";
746
+ const Je = ne.forwardRef(
743
747
  ({
744
748
  data: t,
745
749
  variant: a = "pie",
746
750
  innerRadius: o = 0.6,
747
- padAngle: y = 0,
748
- cornerRadius: m = 0,
749
- height: x = 300,
750
- showTooltip: c = !0,
751
- showLegend: M = !1,
752
- showLabels: z = !1,
753
- animate: N = !0,
754
- className: A,
755
- centerLabel: k,
756
- ...j
757
- }, P) => {
758
- const R = ve(null), [X, E] = de(0), [W, U] = de(null), { tooltip: I, show: T, hide: B } = fe(), q = oe(), d = N && !q;
759
- ye(() => {
760
- if (!R.current) return;
751
+ padAngle: x = 0,
752
+ cornerRadius: d = 0,
753
+ height: M = 300,
754
+ showTooltip: i = !0,
755
+ showLegend: k = !1,
756
+ showLabels: G = !1,
757
+ animate: P = !0,
758
+ className: v,
759
+ centerLabel: R,
760
+ ariaLabel: Z,
761
+ ...B
762
+ }, N) => {
763
+ const z = ye(null), [X, W] = me(0), [q, j] = me(null), { tooltip: T, show: V, hide: J } = pe(), E = le(), m = P && !E;
764
+ xe(() => {
765
+ if (!z.current) return;
761
766
  const n = new ResizeObserver((r) => {
762
767
  const f = r[0];
763
- f && E(f.contentRect.width);
768
+ f && W(f.contentRect.width);
764
769
  });
765
- return n.observe(R.current), () => n.disconnect();
770
+ return n.observe(z.current), () => n.disconnect();
766
771
  }, []);
767
- const b = (X > 0 ? Math.min(X, x) : x) / 2, i = a === "donut" ? b * o : 0, V = t.map((n, r) => re(n.color, r)), $ = t.reduce((n, r) => n + r.value, 0), u = Ye().value((n) => n.value).padAngle(y).sort(null)(t), s = ge().innerRadius(i).outerRadius(b - 2).cornerRadius(m), l = i + (b - 2 - i) * 0.7, g = ge().innerRadius(l).outerRadius(l);
772
+ const y = (X > 0 ? Math.min(X, M) : M) / 2, c = a === "donut" ? y * o : 0, I = t.map((n, r) => ae(n.color, r)), C = t.reduce((n, r) => n + r.value, 0), u = Oe().value((n) => n.value).padAngle(x).sort(null)(t), l = ve().innerRadius(c).outerRadius(y - 2).cornerRadius(d), s = c + (y - 2 - c) * 0.7, b = ve().innerRadius(s).outerRadius(s);
768
773
  return /* @__PURE__ */ p(
769
- ne.div,
774
+ re.div,
770
775
  {
771
776
  ref: (n) => {
772
- R.current = n, typeof P == "function" ? P(n) : P && (P.current = n);
777
+ z.current = n, typeof N == "function" ? N(n) : N && (N.current = n);
773
778
  },
774
- className: Q("relative w-full", A),
775
- ...d ? { initial: { opacity: 0, scale: 0.96 }, animate: { opacity: 1, scale: 1 }, transition: le.fade } : {},
776
- ...se(j),
779
+ className: H("relative w-full", v),
780
+ ...m ? { initial: { opacity: 0, scale: 0.96 }, animate: { opacity: 1, scale: 1 }, transition: se.fade } : {},
781
+ ...ce(B),
777
782
  children: [
778
- X > 0 && /* @__PURE__ */ p(ee, { children: [
783
+ X > 0 && /* @__PURE__ */ p(te, { children: [
779
784
  /* @__PURE__ */ e(
780
785
  "svg",
781
786
  {
782
787
  width: X,
783
- height: x,
788
+ height: M,
784
789
  role: "img",
785
- "aria-label": "Pie chart",
786
- children: /* @__PURE__ */ p("g", { transform: `translate(${X / 2},${x / 2})`, children: [
790
+ "aria-label": Z ?? "Pie chart",
791
+ children: /* @__PURE__ */ p("g", { transform: `translate(${X / 2},${M / 2})`, children: [
787
792
  u.map((n, r) => {
788
- const f = s(n);
793
+ const f = l(n);
789
794
  if (!f) return null;
790
- const [S, G] = s.centroid(n), C = Math.atan2(G, S), J = Math.cos(C) * 4, h = Math.sin(C) * 4, v = W === r;
795
+ const [A, w] = l.centroid(n), $ = Math.atan2(w, A), Q = Math.cos($) * 4, h = Math.sin($) * 4, g = q === r;
791
796
  return /* @__PURE__ */ e(
792
797
  "path",
793
798
  {
794
799
  d: f,
795
- fill: V[r],
800
+ fill: I[r],
796
801
  className: "cursor-pointer transition-transform",
797
802
  style: {
798
- transform: v ? `translate(${J}px, ${h}px)` : void 0
803
+ transform: g ? `translate(${Q}px, ${h}px)` : void 0
799
804
  },
800
- onMouseEnter: () => U(r),
805
+ onMouseEnter: () => j(r),
801
806
  onMouseMove: (_) => {
802
- if (c) {
803
- const Y = _.currentTarget.closest("div")?.getBoundingClientRect(), F = $ > 0 ? (n.data.value / $ * 100).toFixed(1) : "0";
804
- T(
807
+ if (i) {
808
+ const Y = _.currentTarget.closest("div")?.getBoundingClientRect(), F = C > 0 ? (n.data.value / C * 100).toFixed(1) : "0";
809
+ V(
805
810
  _.clientX - (Y?.left ?? 0),
806
811
  _.clientY - (Y?.top ?? 0),
807
812
  /* @__PURE__ */ p("div", { children: [
@@ -817,51 +822,51 @@ const qe = te.forwardRef(
817
822
  }
818
823
  },
819
824
  onMouseLeave: () => {
820
- U(null), B();
825
+ j(null), J();
821
826
  }
822
827
  },
823
828
  `slice-${n.data.label}-${r}`
824
829
  );
825
830
  }),
826
- z && u.map((n, r) => {
827
- const [f, S] = g.centroid(n), G = $ > 0 ? (n.data.value / $ * 100).toFixed(0) : "0";
828
- return $ > 0 && n.data.value / $ < 0.03 ? null : /* @__PURE__ */ p(
831
+ G && u.map((n, r) => {
832
+ const [f, A] = b.centroid(n), w = C > 0 ? (n.data.value / C * 100).toFixed(0) : "0";
833
+ return C > 0 && n.data.value / C < 0.03 ? null : /* @__PURE__ */ p(
829
834
  "text",
830
835
  {
831
836
  x: f,
832
- y: S,
837
+ y: A,
833
838
  textAnchor: "middle",
834
839
  dominantBaseline: "central",
835
840
  className: "pointer-events-none fill-accent-fg text-ds-xs font-medium",
836
841
  children: [
837
- G,
842
+ w,
838
843
  "%"
839
844
  ]
840
845
  },
841
846
  `label-${n.data.label}-${r}`
842
847
  );
843
848
  }),
844
- a === "donut" && k && i > 0 && /* @__PURE__ */ e(
849
+ a === "donut" && R && c > 0 && /* @__PURE__ */ e(
845
850
  "foreignObject",
846
851
  {
847
- x: -i * 0.7,
848
- y: -i * 0.7,
849
- width: i * 1.4,
850
- height: i * 1.4,
851
- children: /* @__PURE__ */ e("div", { className: "flex h-full w-full items-center justify-center text-center text-surface-fg", children: k })
852
+ x: -c * 0.7,
853
+ y: -c * 0.7,
854
+ width: c * 1.4,
855
+ height: c * 1.4,
856
+ children: /* @__PURE__ */ e("div", { className: "flex h-full w-full items-center justify-center text-center text-surface-fg", children: R })
852
857
  }
853
858
  )
854
859
  ] })
855
860
  }
856
861
  ),
857
- c && /* @__PURE__ */ e(ie, { state: I })
862
+ i && /* @__PURE__ */ e(ue, { state: T })
858
863
  ] }),
859
- M && /* @__PURE__ */ e(
860
- ce,
864
+ k && /* @__PURE__ */ e(
865
+ ie,
861
866
  {
862
867
  items: t.map((n, r) => ({
863
868
  label: n.label,
864
- color: V[r]
869
+ color: I[r]
865
870
  })),
866
871
  className: "mt-ds-04"
867
872
  }
@@ -871,150 +876,150 @@ const qe = te.forwardRef(
871
876
  );
872
877
  }
873
878
  );
874
- qe.displayName = "PieChart";
875
- const $e = { duration: 1, ease: "easeOut" }, Je = te.forwardRef(
879
+ Je.displayName = "PieChart";
880
+ const Ce = { duration: 1, ease: "easeOut" }, Qe = ne.forwardRef(
876
881
  ({
877
882
  data: t,
878
883
  variant: a = "line",
879
884
  width: o = 120,
880
- height: y = 32,
881
- color: m,
882
- showLastDot: x = !1,
883
- strokeWidth: c = 1.5,
884
- animate: M = !0,
885
- className: z,
886
- ...N
887
- }, A) => {
888
- const k = re(m, 0), j = oe(), P = M && !j;
885
+ height: x = 32,
886
+ color: d,
887
+ showLastDot: M = !1,
888
+ strokeWidth: i = 1.5,
889
+ animate: k = !0,
890
+ className: G,
891
+ ...P
892
+ }, v) => {
893
+ const R = ae(d, 0), Z = le(), B = k && !Z;
889
894
  if (!t.length) return null;
890
- const R = a === "bar" ? 1 : c, X = o - R * 2, E = y - R * 2, W = ae().domain([0, Math.max(t.length - 1, 1)]).range([R, R + X]), U = Math.min(...t), I = Math.max(...t), T = U === I ? [U - 1, I + 1] : [U, I], B = ae().domain(T).range([R + E, R]);
895
+ const N = a === "bar" ? 1 : i, z = o - N * 2, X = x - N * 2, W = oe().domain([0, Math.max(t.length - 1, 1)]).range([N, N + z]), q = Math.min(...t), j = Math.max(...t), T = q === j ? [q - 1, j + 1] : [q, j], V = oe().domain(T).range([N + X, N]);
891
896
  if (a === "bar") {
892
- const V = Math.max(
897
+ const c = Math.max(
893
898
  1,
894
- (X - 1 * (t.length - 1)) / t.length
895
- ), $ = R + E;
899
+ (z - 1 * (t.length - 1)) / t.length
900
+ ), I = N + X;
896
901
  return /* @__PURE__ */ e(
897
902
  "svg",
898
903
  {
899
- ref: A,
904
+ ref: v,
900
905
  width: o,
901
- height: y,
906
+ height: x,
902
907
  role: "img",
903
908
  "aria-label": "Sparkline bar chart",
904
- className: Q("inline-block align-middle", z),
905
- ...N,
906
- children: t.map((L, u) => {
907
- const s = R + u * (V + 1), l = B(L), g = Math.max(1, $ - l);
909
+ className: H("inline-block align-middle", G),
910
+ ...P,
911
+ children: t.map((C, L) => {
912
+ const u = N + L * (c + 1), l = V(C), s = Math.max(1, I - l);
908
913
  return /* @__PURE__ */ e(
909
914
  "rect",
910
915
  {
911
- x: s,
916
+ x: u,
912
917
  y: l,
913
- width: V,
914
- height: g,
915
- rx: Math.min(1, V / 2),
916
- fill: k
918
+ width: c,
919
+ height: s,
920
+ rx: Math.min(1, c / 2),
921
+ fill: R
917
922
  },
918
- u
923
+ L
919
924
  );
920
925
  })
921
926
  }
922
927
  );
923
928
  }
924
929
  if (a === "area") {
925
- const i = Me().curve(ue).x((l, g) => W(g)).y0(R + E).y1((l) => B(l)), V = me().curve(ue).x((l, g) => W(g)).y((l) => B(l)), $ = i(t) ?? "", L = V(t) ?? "", u = W(t.length - 1), s = B(t[t.length - 1]);
930
+ const y = Ne().curve(de).x((l, s) => W(s)).y0(N + X).y1((l) => V(l)), c = he().curve(de).x((l, s) => W(s)).y((l) => V(l)), I = y(t) ?? "", C = c(t) ?? "", L = W(t.length - 1), u = V(t[t.length - 1]);
926
931
  return /* @__PURE__ */ p(
927
932
  "svg",
928
933
  {
929
- ref: A,
934
+ ref: v,
930
935
  width: o,
931
- height: y,
936
+ height: x,
932
937
  role: "img",
933
938
  "aria-label": "Sparkline area chart",
934
- className: Q("inline-block align-middle", z),
935
- ...N,
939
+ className: H("inline-block align-middle", G),
940
+ ...P,
936
941
  children: [
937
- /* @__PURE__ */ e("path", { d: $, fill: k, opacity: 0.2 }),
938
- P ? /* @__PURE__ */ e(
939
- ne.path,
942
+ /* @__PURE__ */ e("path", { d: I, fill: R, opacity: 0.2 }),
943
+ B ? /* @__PURE__ */ e(
944
+ re.path,
940
945
  {
941
- d: L,
946
+ d: C,
942
947
  fill: "none",
943
- stroke: k,
944
- strokeWidth: c,
948
+ stroke: R,
949
+ strokeWidth: i,
945
950
  strokeLinejoin: "round",
946
951
  strokeLinecap: "round",
947
952
  initial: { pathLength: 0 },
948
953
  animate: { pathLength: 1 },
949
- transition: $e
954
+ transition: Ce
950
955
  }
951
956
  ) : /* @__PURE__ */ e(
952
957
  "path",
953
958
  {
954
- d: L,
959
+ d: C,
955
960
  fill: "none",
956
- stroke: k,
957
- strokeWidth: c,
961
+ stroke: R,
962
+ strokeWidth: i,
958
963
  strokeLinejoin: "round",
959
964
  strokeLinecap: "round"
960
965
  }
961
966
  ),
962
- x && /* @__PURE__ */ e(
967
+ M && /* @__PURE__ */ e(
963
968
  "circle",
964
969
  {
965
- cx: u,
966
- cy: s,
967
- r: c + 1,
968
- fill: k
970
+ cx: L,
971
+ cy: u,
972
+ r: i + 1,
973
+ fill: R
969
974
  }
970
975
  )
971
976
  ]
972
977
  }
973
978
  );
974
979
  }
975
- const d = me().curve(ue).x((i, V) => W(V)).y((i) => B(i))(t) ?? "", w = W(t.length - 1), b = B(t[t.length - 1]);
980
+ const E = he().curve(de).x((y, c) => W(c)).y((y) => V(y))(t) ?? "", m = W(t.length - 1), S = V(t[t.length - 1]);
976
981
  return /* @__PURE__ */ p(
977
982
  "svg",
978
983
  {
979
- ref: A,
984
+ ref: v,
980
985
  width: o,
981
- height: y,
986
+ height: x,
982
987
  role: "img",
983
988
  "aria-label": "Sparkline chart",
984
- className: Q("inline-block align-middle", z),
985
- ...N,
989
+ className: H("inline-block align-middle", G),
990
+ ...P,
986
991
  children: [
987
- P ? /* @__PURE__ */ e(
988
- ne.path,
992
+ B ? /* @__PURE__ */ e(
993
+ re.path,
989
994
  {
990
- d,
995
+ d: E,
991
996
  fill: "none",
992
- stroke: k,
993
- strokeWidth: c,
997
+ stroke: R,
998
+ strokeWidth: i,
994
999
  strokeLinejoin: "round",
995
1000
  strokeLinecap: "round",
996
1001
  initial: { pathLength: 0 },
997
1002
  animate: { pathLength: 1 },
998
- transition: $e
1003
+ transition: Ce
999
1004
  }
1000
1005
  ) : /* @__PURE__ */ e(
1001
1006
  "path",
1002
1007
  {
1003
- d,
1008
+ d: E,
1004
1009
  fill: "none",
1005
- stroke: k,
1006
- strokeWidth: c,
1010
+ stroke: R,
1011
+ strokeWidth: i,
1007
1012
  strokeLinejoin: "round",
1008
1013
  strokeLinecap: "round"
1009
1014
  }
1010
1015
  ),
1011
- x && /* @__PURE__ */ e(
1016
+ M && /* @__PURE__ */ e(
1012
1017
  "circle",
1013
1018
  {
1014
- cx: w,
1015
- cy: b,
1016
- r: c + 1,
1017
- fill: k
1019
+ cx: m,
1020
+ cy: S,
1021
+ r: i + 1,
1022
+ fill: R
1018
1023
  }
1019
1024
  )
1020
1025
  ]
@@ -1022,59 +1027,59 @@ const $e = { duration: 1, ease: "easeOut" }, Je = te.forwardRef(
1022
1027
  );
1023
1028
  }
1024
1029
  );
1025
- Je.displayName = "Sparkline";
1026
- const pe = (t) => t * Math.PI / 180, Qe = te.forwardRef(
1030
+ Qe.displayName = "Sparkline";
1031
+ const ge = (t) => t * Math.PI / 180, He = ne.forwardRef(
1027
1032
  ({
1028
1033
  value: t,
1029
1034
  max: a = 100,
1030
1035
  min: o = 0,
1031
- label: y,
1032
- valueLabel: m,
1033
- color: x,
1034
- trackColor: c = "var(--color-surface-border)",
1035
- height: M = 200,
1036
- startAngle: z = -120,
1037
- endAngle: N = 120,
1038
- thickness: A = 16,
1039
- animate: k = !0,
1040
- className: j,
1041
- ...P
1042
- }, R) => {
1043
- const X = oe(), E = Fe(X, k ? 600 : 0), W = k && !X, U = re(x, 0), I = M, T = I / 2, B = Math.min(Math.max(t, o), a), q = a === o ? 0 : (B - o) / (a - o), d = z + (N - z) * q, w = typeof m == "function" ? m(B) : typeof m == "string" ? m : String(B), b = ge().innerRadius(T - A).outerRadius(T).startAngle(pe(z)).endAngle(pe(N)).cornerRadius(A / 2), i = ge().innerRadius(T - A).outerRadius(T).startAngle(pe(z)).endAngle(pe(d)).cornerRadius(A / 2), V = b(null) ?? "", $ = i(null) ?? "";
1036
+ label: x,
1037
+ valueLabel: d,
1038
+ color: M,
1039
+ trackColor: i = "var(--color-surface-border)",
1040
+ height: k = 200,
1041
+ startAngle: G = -120,
1042
+ endAngle: P = 120,
1043
+ thickness: v = 16,
1044
+ animate: R = !0,
1045
+ className: Z,
1046
+ ...B
1047
+ }, N) => {
1048
+ const z = le(), X = Ee(z, R ? 600 : 0), W = R && !z, q = ae(M, 0), j = k, T = j / 2, V = Math.min(Math.max(t, o), a), J = a === o ? 0 : (V - o) / (a - o), E = G + (P - G) * J, m = typeof d == "function" ? d(V) : typeof d == "string" ? d : String(V), S = ve().innerRadius(T - v).outerRadius(T).startAngle(ge(G)).endAngle(ge(P)).cornerRadius(v / 2), y = ve().innerRadius(T - v).outerRadius(T).startAngle(ge(G)).endAngle(ge(E)).cornerRadius(v / 2), c = S(null) ?? "", I = y(null) ?? "";
1044
1049
  return /* @__PURE__ */ e(
1045
- ne.div,
1050
+ re.div,
1046
1051
  {
1047
- ref: R,
1048
- className: Q("inline-flex flex-col items-center", j),
1049
- ...W ? { initial: { opacity: 0, scale: 0.96 }, animate: { opacity: 1, scale: 1 }, transition: le.fade } : {},
1050
- ...se(P),
1052
+ ref: N,
1053
+ className: H("inline-flex flex-col items-center", Z),
1054
+ ...W ? { initial: { opacity: 0, scale: 0.96 }, animate: { opacity: 1, scale: 1 }, transition: se.fade } : {},
1055
+ ...ce(B),
1051
1056
  role: "meter",
1052
- "aria-valuenow": B,
1057
+ "aria-valuenow": V,
1053
1058
  "aria-valuemin": o,
1054
1059
  "aria-valuemax": a,
1055
- "aria-label": y ?? "Gauge chart",
1056
- children: /* @__PURE__ */ e("svg", { width: I, height: I, role: "img", "aria-hidden": "true", children: /* @__PURE__ */ p("g", { transform: `translate(${T},${T})`, children: [
1057
- /* @__PURE__ */ e("path", { d: V, fill: c }),
1060
+ "aria-label": x ?? "Gauge chart",
1061
+ children: /* @__PURE__ */ e("svg", { width: j, height: j, role: "img", "aria-hidden": "true", children: /* @__PURE__ */ p("g", { transform: `translate(${T},${T})`, children: [
1062
+ /* @__PURE__ */ e("path", { d: c, fill: i }),
1058
1063
  /* @__PURE__ */ e(
1059
1064
  "path",
1060
1065
  {
1061
- d: $,
1062
- fill: U,
1063
- style: E > 0 ? { transition: `d ${E}ms ease-out` } : void 0
1066
+ d: I,
1067
+ fill: q,
1068
+ style: X > 0 ? { transition: `d ${X}ms ease-out` } : void 0
1064
1069
  }
1065
1070
  ),
1066
1071
  /* @__PURE__ */ e(
1067
1072
  "text",
1068
1073
  {
1069
1074
  x: 0,
1070
- y: y ? -4 : 0,
1075
+ y: x ? -4 : 0,
1071
1076
  textAnchor: "middle",
1072
1077
  dominantBaseline: "central",
1073
1078
  className: "fill-surface-fg text-ds-2xl font-semibold",
1074
- children: w
1079
+ children: m
1075
1080
  }
1076
1081
  ),
1077
- y && /* @__PURE__ */ e(
1082
+ x && /* @__PURE__ */ e(
1078
1083
  "text",
1079
1084
  {
1080
1085
  x: 0,
@@ -1082,7 +1087,7 @@ const pe = (t) => t * Math.PI / 180, Qe = te.forwardRef(
1082
1087
  textAnchor: "middle",
1083
1088
  dominantBaseline: "central",
1084
1089
  className: "fill-surface-fg-muted text-ds-xs",
1085
- children: y
1090
+ children: x
1086
1091
  }
1087
1092
  )
1088
1093
  ] }) })
@@ -1090,97 +1095,98 @@ const pe = (t) => t * Math.PI / 180, Qe = te.forwardRef(
1090
1095
  );
1091
1096
  }
1092
1097
  );
1093
- Qe.displayName = "GaugeChart";
1094
- const He = te.forwardRef(
1098
+ He.displayName = "GaugeChart";
1099
+ const Ke = ne.forwardRef(
1095
1100
  ({
1096
1101
  data: t,
1097
1102
  axes: a,
1098
1103
  series: o,
1099
- maxValue: y,
1100
- levels: m = 5,
1101
- fillOpacity: x = 0.25,
1102
- showDots: c = !1,
1103
- height: M = 300,
1104
- showTooltip: z = !0,
1105
- showLegend: N = !1,
1106
- animate: A = !0,
1107
- className: k,
1108
- ...j
1109
- }, P) => {
1110
- const R = ve(null), [X, E] = de(0), { tooltip: W, show: U, hide: I } = fe(), T = oe(), B = A && !T;
1111
- ye(() => {
1112
- if (!R.current) return;
1113
- const u = new ResizeObserver((s) => {
1114
- const l = s[0];
1115
- l && E(l.contentRect.width);
1104
+ maxValue: x,
1105
+ levels: d = 5,
1106
+ fillOpacity: M = 0.25,
1107
+ showDots: i = !1,
1108
+ height: k = 300,
1109
+ showTooltip: G = !0,
1110
+ showLegend: P = !1,
1111
+ animate: v = !0,
1112
+ ariaLabel: R,
1113
+ className: Z,
1114
+ ...B
1115
+ }, N) => {
1116
+ const z = ye(null), [X, W] = me(0), { tooltip: q, show: j, hide: T } = pe(), V = le(), J = v && !V;
1117
+ xe(() => {
1118
+ if (!z.current) return;
1119
+ const u = new ResizeObserver((l) => {
1120
+ const s = l[0];
1121
+ s && W(s.contentRect.width);
1116
1122
  });
1117
- return u.observe(R.current), () => u.disconnect();
1123
+ return u.observe(z.current), () => u.disconnect();
1118
1124
  }, []);
1119
- const d = (X > 0 ? Math.min(X, M) : M) / 2 - 40, w = o.map((u, s) => re(u.color, s)), b = y ?? Math.max(
1120
- ...t.flatMap((u) => o.map((s) => Number(u[s.key]) || 0)),
1125
+ const m = (X > 0 ? Math.min(X, k) : k) / 2 - 40, S = o.map((u, l) => ae(u.color, l)), y = x ?? Math.max(
1126
+ ...t.flatMap((u) => o.map((l) => Number(u[l.key]) || 0)),
1121
1127
  1
1122
- ), i = 2 * Math.PI / a.length, V = Oe().radius((u) => d * u / b).angle((u, s) => s * i).curve(We), $ = (u) => a.map((s, l) => Number(t[l]?.[u]) || 0), L = (u, s) => {
1123
- const l = i * u - Math.PI / 2, g = d * s / b;
1128
+ ), c = 2 * Math.PI / a.length, I = We().radius((u) => m * u / y).angle((u, l) => l * c).curve(Ie), C = (u) => a.map((l, s) => Number(t[s]?.[u]) || 0), L = (u, l) => {
1129
+ const s = c * u - Math.PI / 2, b = m * l / y;
1124
1130
  return {
1125
- x: g * Math.cos(l),
1126
- y: g * Math.sin(l)
1131
+ x: b * Math.cos(s),
1132
+ y: b * Math.sin(s)
1127
1133
  };
1128
1134
  };
1129
1135
  return /* @__PURE__ */ p(
1130
- ne.div,
1136
+ re.div,
1131
1137
  {
1132
1138
  ref: (u) => {
1133
- R.current = u, typeof P == "function" ? P(u) : P && (P.current = u);
1139
+ z.current = u, typeof N == "function" ? N(u) : N && (N.current = u);
1134
1140
  },
1135
- className: Q("relative w-full", k),
1136
- ...B ? { initial: { opacity: 0, scale: 0.96 }, animate: { opacity: 1, scale: 1 }, transition: le.fade } : {},
1137
- ...se(j),
1141
+ className: H("relative w-full", Z),
1142
+ ...J ? { initial: { opacity: 0, scale: 0.96 }, animate: { opacity: 1, scale: 1 }, transition: se.fade } : {},
1143
+ ...ce(B),
1138
1144
  children: [
1139
- X > 0 && /* @__PURE__ */ p(ee, { children: [
1145
+ X > 0 && /* @__PURE__ */ p(te, { children: [
1140
1146
  /* @__PURE__ */ e(
1141
1147
  "svg",
1142
1148
  {
1143
1149
  width: X,
1144
- height: M,
1150
+ height: k,
1145
1151
  role: "img",
1146
- "aria-label": "Radar chart",
1147
- children: /* @__PURE__ */ p("g", { transform: `translate(${X / 2},${M / 2})`, children: [
1148
- Array.from({ length: m }, (u, s) => {
1149
- const l = d / m * (s + 1), g = a.map((n, r) => {
1150
- const f = i * r - Math.PI / 2;
1151
- return `${l * Math.cos(f)},${l * Math.sin(f)}`;
1152
+ "aria-label": R ?? "Radar chart",
1153
+ children: /* @__PURE__ */ p("g", { transform: `translate(${X / 2},${k / 2})`, children: [
1154
+ Array.from({ length: d }, (u, l) => {
1155
+ const s = m / d * (l + 1), b = a.map((n, r) => {
1156
+ const f = c * r - Math.PI / 2;
1157
+ return `${s * Math.cos(f)},${s * Math.sin(f)}`;
1152
1158
  }).join(" ");
1153
1159
  return /* @__PURE__ */ e(
1154
1160
  "polygon",
1155
1161
  {
1156
- points: g,
1162
+ points: b,
1157
1163
  fill: "none",
1158
1164
  stroke: "var(--color-surface-border)",
1159
1165
  strokeDasharray: "3,3",
1160
1166
  strokeWidth: 1
1161
1167
  },
1162
- `grid-${s}`
1168
+ `grid-${l}`
1163
1169
  );
1164
1170
  }),
1165
- a.map((u, s) => {
1166
- const l = i * s - Math.PI / 2, g = d * Math.cos(l), n = d * Math.sin(l);
1171
+ a.map((u, l) => {
1172
+ const s = c * l - Math.PI / 2, b = m * Math.cos(s), n = m * Math.sin(s);
1167
1173
  return /* @__PURE__ */ e(
1168
1174
  "line",
1169
1175
  {
1170
1176
  x1: 0,
1171
1177
  y1: 0,
1172
- x2: g,
1178
+ x2: b,
1173
1179
  y2: n,
1174
1180
  stroke: "var(--color-surface-border)",
1175
1181
  strokeWidth: 1
1176
1182
  },
1177
- `axis-${s}`
1183
+ `axis-${l}`
1178
1184
  );
1179
1185
  }),
1180
- a.map((u, s) => {
1181
- const l = i * s - Math.PI / 2, g = d + 18, n = g * Math.cos(l), r = g * Math.sin(l);
1186
+ a.map((u, l) => {
1187
+ const s = c * l - Math.PI / 2, b = m + 18, n = b * Math.cos(s), r = b * Math.sin(s);
1182
1188
  let f = "middle";
1183
- return Math.abs(Math.cos(l)) > 0.1 && (f = Math.cos(l) > 0 ? "start" : "end"), /* @__PURE__ */ e(
1189
+ return Math.abs(Math.cos(s)) > 0.1 && (f = Math.cos(s) > 0 ? "start" : "end"), /* @__PURE__ */ e(
1184
1190
  "text",
1185
1191
  {
1186
1192
  x: n,
@@ -1190,11 +1196,11 @@ const He = te.forwardRef(
1190
1196
  className: "fill-surface-fg-muted text-ds-xs",
1191
1197
  children: u
1192
1198
  },
1193
- `label-${s}`
1199
+ `label-${l}`
1194
1200
  );
1195
1201
  }),
1196
- Array.from({ length: m }, (u, s) => {
1197
- const l = Math.round(b / m * (s + 1)), g = d / m * (s + 1), n = -Math.PI / 2, r = g * Math.cos(n) + 4, f = g * Math.sin(n);
1202
+ Array.from({ length: d }, (u, l) => {
1203
+ const s = Math.round(y / d * (l + 1)), b = m / d * (l + 1), n = -Math.PI / 2, r = b * Math.cos(n) + 4, f = b * Math.sin(n);
1198
1204
  return /* @__PURE__ */ e(
1199
1205
  "text",
1200
1206
  {
@@ -1203,34 +1209,34 @@ const He = te.forwardRef(
1203
1209
  textAnchor: "start",
1204
1210
  dominantBaseline: "auto",
1205
1211
  className: "fill-surface-fg-subtle text-ds-xs",
1206
- children: l
1212
+ children: s
1207
1213
  },
1208
- `level-label-${s}`
1214
+ `level-label-${l}`
1209
1215
  );
1210
1216
  }),
1211
- o.map((u, s) => {
1212
- const l = $(u.key), g = V(l);
1213
- return g ? /* @__PURE__ */ p("g", { children: [
1217
+ o.map((u, l) => {
1218
+ const s = C(u.key), b = I(s);
1219
+ return b ? /* @__PURE__ */ p("g", { children: [
1214
1220
  /* @__PURE__ */ e(
1215
1221
  "path",
1216
1222
  {
1217
- d: g,
1218
- fill: w[s],
1219
- fillOpacity: x,
1220
- stroke: w[s],
1223
+ d: b,
1224
+ fill: S[l],
1225
+ fillOpacity: M,
1226
+ stroke: S[l],
1221
1227
  strokeWidth: 2,
1222
1228
  strokeLinejoin: "round"
1223
1229
  }
1224
1230
  ),
1225
- c && l.map((n, r) => {
1226
- const { x: f, y: S } = L(r, n);
1231
+ i && s.map((n, r) => {
1232
+ const { x: f, y: A } = L(r, n);
1227
1233
  return /* @__PURE__ */ e(
1228
1234
  "circle",
1229
1235
  {
1230
1236
  cx: f,
1231
- cy: S,
1237
+ cy: A,
1232
1238
  r: 4,
1233
- fill: w[s],
1239
+ fill: S[l],
1234
1240
  stroke: "var(--color-surface-base)",
1235
1241
  strokeWidth: 2,
1236
1242
  className: "transition-opacity"
@@ -1240,25 +1246,25 @@ const He = te.forwardRef(
1240
1246
  })
1241
1247
  ] }, u.key) : null;
1242
1248
  }),
1243
- z && a.map((u, s) => {
1244
- const l = i * s - Math.PI / 2, g = d * Math.cos(l), n = d * Math.sin(l);
1249
+ G && a.map((u, l) => {
1250
+ const s = c * l - Math.PI / 2, b = m * Math.cos(s), n = m * Math.sin(s);
1245
1251
  return /* @__PURE__ */ e(
1246
1252
  "circle",
1247
1253
  {
1248
- cx: g,
1254
+ cx: b,
1249
1255
  cy: n,
1250
1256
  r: 16,
1251
1257
  fill: "transparent",
1252
1258
  className: "cursor-pointer",
1253
1259
  onMouseMove: (r) => {
1254
1260
  const f = r.currentTarget.closest("div")?.getBoundingClientRect();
1255
- U(
1261
+ j(
1256
1262
  r.clientX - (f?.left ?? 0),
1257
1263
  r.clientY - (f?.top ?? 0),
1258
1264
  /* @__PURE__ */ p("div", { children: [
1259
1265
  /* @__PURE__ */ e("div", { className: "font-medium", children: u }),
1260
- o.map((S, G) => {
1261
- const C = Number(t[s]?.[S.key]) || 0;
1266
+ o.map((A, w) => {
1267
+ const $ = Number(t[l]?.[A.key]) || 0;
1262
1268
  return /* @__PURE__ */ p(
1263
1269
  "div",
1264
1270
  {
@@ -1268,39 +1274,39 @@ const He = te.forwardRef(
1268
1274
  "span",
1269
1275
  {
1270
1276
  className: "inline-block h-2 w-2 rounded-ds-full",
1271
- style: { backgroundColor: w[G] }
1277
+ style: { backgroundColor: S[w] }
1272
1278
  }
1273
1279
  ),
1274
1280
  /* @__PURE__ */ p("span", { className: "text-surface-fg-muted", children: [
1275
- S.label,
1281
+ A.label,
1276
1282
  ":"
1277
1283
  ] }),
1278
1284
  " ",
1279
- C.toLocaleString()
1285
+ $.toLocaleString()
1280
1286
  ]
1281
1287
  },
1282
- S.key
1288
+ A.key
1283
1289
  );
1284
1290
  })
1285
1291
  ] })
1286
1292
  );
1287
1293
  },
1288
- onMouseLeave: I
1294
+ onMouseLeave: T
1289
1295
  },
1290
- `hover-${s}`
1296
+ `hover-${l}`
1291
1297
  );
1292
1298
  })
1293
1299
  ] })
1294
1300
  }
1295
1301
  ),
1296
- z && /* @__PURE__ */ e(ie, { state: W })
1302
+ G && /* @__PURE__ */ e(ue, { state: q })
1297
1303
  ] }),
1298
- N && /* @__PURE__ */ e(
1299
- ce,
1304
+ P && /* @__PURE__ */ e(
1305
+ ie,
1300
1306
  {
1301
- items: o.map((u, s) => ({
1307
+ items: o.map((u, l) => ({
1302
1308
  label: u.label,
1303
- color: w[s]
1309
+ color: S[l]
1304
1310
  })),
1305
1311
  className: "mt-ds-04"
1306
1312
  }
@@ -1310,15 +1316,15 @@ const He = te.forwardRef(
1310
1316
  );
1311
1317
  }
1312
1318
  );
1313
- He.displayName = "RadarChart";
1319
+ Ke.displayName = "RadarChart";
1314
1320
  export {
1315
- Ze as AreaChart,
1316
- Ee as BarChart,
1317
- xe as ChartContainer,
1318
- Qe as GaugeChart,
1319
- ce as Legend,
1320
- Ue as LineChart,
1321
- qe as PieChart,
1322
- He as RadarChart,
1323
- Je as Sparkline
1321
+ qe as AreaChart,
1322
+ Ue as BarChart,
1323
+ be as ChartContainer,
1324
+ He as GaugeChart,
1325
+ ie as Legend,
1326
+ Ze as LineChart,
1327
+ Je as PieChart,
1328
+ Ke as RadarChart,
1329
+ Qe as Sparkline
1324
1330
  };