@brightlocal/ui-components 3.4.0 → 3.5.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 (196) hide show
  1. package/AI_USAGE.md +22 -3
  2. package/README.md +177 -109
  3. package/component-meta.json +1061 -102
  4. package/dist/alert-dialog.cjs +1 -1
  5. package/dist/alert-dialog.d.ts +13 -2
  6. package/dist/alert-dialog.d.ts.map +1 -1
  7. package/dist/alert-dialog.js +4 -3
  8. package/dist/banner.cjs +1 -1
  9. package/dist/banner.d.ts +47 -11
  10. package/dist/banner.d.ts.map +1 -1
  11. package/dist/banner.js +156 -79
  12. package/dist/blocks/empty-state.cjs +1 -1
  13. package/dist/blocks/empty-state.d.ts +40 -5
  14. package/dist/blocks/empty-state.d.ts.map +1 -1
  15. package/dist/blocks/empty-state.js +59 -52
  16. package/dist/blocks/input-list.d.ts +1 -0
  17. package/dist/blocks/input-list.d.ts.map +1 -1
  18. package/dist/blocks/sidebar.cjs +1 -1
  19. package/dist/blocks/sidebar.d.ts +12 -6
  20. package/dist/blocks/sidebar.d.ts.map +1 -1
  21. package/dist/blocks/sidebar.js +64 -63
  22. package/dist/button.cjs +1 -1
  23. package/dist/button.d.ts.map +1 -1
  24. package/dist/button.js +47 -43
  25. package/dist/card.cjs +1 -1
  26. package/dist/card.d.ts +12 -0
  27. package/dist/card.d.ts.map +1 -1
  28. package/dist/card.js +115 -97
  29. package/dist/chart.cjs +6 -6
  30. package/dist/chart.d.ts +6 -10
  31. package/dist/chart.d.ts.map +1 -1
  32. package/dist/chart.js +281 -296
  33. package/dist/combobox.cjs +3 -3
  34. package/dist/combobox.d.ts.map +1 -1
  35. package/dist/combobox.js +430 -343
  36. package/dist/command.cjs +1 -1
  37. package/dist/command.d.ts +23 -2
  38. package/dist/command.d.ts.map +1 -1
  39. package/dist/command.js +212 -207
  40. package/dist/count-indicator.cjs +1 -0
  41. package/dist/count-indicator.d.ts +85 -0
  42. package/dist/count-indicator.d.ts.map +1 -0
  43. package/dist/count-indicator.js +72 -0
  44. package/dist/data-table.cjs +1 -1
  45. package/dist/data-table.d.ts +101 -11
  46. package/dist/data-table.d.ts.map +1 -1
  47. package/dist/data-table.js +593 -523
  48. package/dist/dialog.cjs +1 -1
  49. package/dist/dialog.d.ts +26 -3
  50. package/dist/dialog.d.ts.map +1 -1
  51. package/dist/dialog.js +62 -47
  52. package/dist/drawer.cjs +1 -1
  53. package/dist/drawer.d.ts +8 -4
  54. package/dist/drawer.d.ts.map +1 -1
  55. package/dist/drawer.js +37 -38
  56. package/dist/file-upload.cjs +1 -0
  57. package/dist/file-upload.d.ts +546 -0
  58. package/dist/file-upload.d.ts.map +1 -0
  59. package/dist/file-upload.js +1103 -0
  60. package/dist/global-layout.cjs +1 -1
  61. package/dist/global-layout.d.ts +7 -2
  62. package/dist/global-layout.d.ts.map +1 -1
  63. package/dist/global-layout.js +52 -52
  64. package/dist/hooks/use-file-dropzone.cjs +1 -0
  65. package/dist/hooks/use-file-dropzone.d.ts +75 -0
  66. package/dist/hooks/use-file-dropzone.d.ts.map +1 -0
  67. package/dist/hooks/use-file-dropzone.js +133 -0
  68. package/dist/hover-card.cjs +1 -1
  69. package/dist/hover-card.d.ts +29 -16
  70. package/dist/hover-card.d.ts.map +1 -1
  71. package/dist/hover-card.js +153 -36
  72. package/dist/index.cjs +1 -1
  73. package/dist/index.d.ts +3 -0
  74. package/dist/index.d.ts.map +1 -1
  75. package/dist/index.js +676 -640
  76. package/dist/input-chip.cjs +1 -1
  77. package/dist/input-chip.d.ts +30 -1
  78. package/dist/input-chip.d.ts.map +1 -1
  79. package/dist/input-chip.js +131 -115
  80. package/dist/input-group.cjs +1 -1
  81. package/dist/input-group.d.ts +37 -2
  82. package/dist/input-group.d.ts.map +1 -1
  83. package/dist/input-group.js +131 -114
  84. package/dist/input-password.cjs +1 -1
  85. package/dist/input-password.js +6 -6
  86. package/dist/lib/empty-canvas.cjs +1 -1
  87. package/dist/lib/empty-canvas.d.ts +27 -1
  88. package/dist/lib/empty-canvas.d.ts.map +1 -1
  89. package/dist/lib/empty-canvas.js +27 -23
  90. package/dist/lib/empty-chip.cjs +1 -1
  91. package/dist/lib/empty-chip.d.ts +19 -2
  92. package/dist/lib/empty-chip.d.ts.map +1 -1
  93. package/dist/lib/empty-chip.js +14 -9
  94. package/dist/lib/field-aria.cjs +1 -1
  95. package/dist/lib/field-aria.d.ts +4 -4
  96. package/dist/lib/field-aria.d.ts.map +1 -1
  97. package/dist/lib/field-aria.js +7 -5
  98. package/dist/lib/media-viewer-content.cjs +1 -1
  99. package/dist/lib/media-viewer-content.js +1 -1
  100. package/dist/lib/table-internal.cjs +1 -1
  101. package/dist/lib/table-internal.d.ts +19 -0
  102. package/dist/lib/table-internal.d.ts.map +1 -1
  103. package/dist/lib/table-internal.js +22 -7
  104. package/dist/list.cjs +1 -1
  105. package/dist/list.d.ts +13 -0
  106. package/dist/list.d.ts.map +1 -1
  107. package/dist/list.js +103 -82
  108. package/dist/logo-mark.cjs +1 -1
  109. package/dist/logo-mark.d.ts +18 -2
  110. package/dist/logo-mark.d.ts.map +1 -1
  111. package/dist/logo-mark.js +159 -79
  112. package/dist/media-empty.cjs +1 -1
  113. package/dist/media-empty.d.ts +50 -7
  114. package/dist/media-empty.d.ts.map +1 -1
  115. package/dist/media-empty.js +14 -13
  116. package/dist/media-viewer.cjs +1 -1
  117. package/dist/media-viewer.js +6 -6
  118. package/dist/multi-select-filter.cjs +1 -1
  119. package/dist/multi-select-filter.d.ts.map +1 -1
  120. package/dist/multi-select-filter.js +92 -101
  121. package/dist/pagination.cjs +1 -1
  122. package/dist/pagination.d.ts +11 -0
  123. package/dist/pagination.d.ts.map +1 -1
  124. package/dist/pagination.js +17 -17
  125. package/dist/relative-date.d.ts +6 -0
  126. package/dist/relative-date.d.ts.map +1 -1
  127. package/dist/resizable.d.ts +1 -1
  128. package/dist/result-count.cjs +1 -1
  129. package/dist/result-count.d.ts +13 -16
  130. package/dist/result-count.d.ts.map +1 -1
  131. package/dist/result-count.js +24 -33
  132. package/dist/sheet.cjs +1 -1
  133. package/dist/sheet.d.ts +22 -3
  134. package/dist/sheet.d.ts.map +1 -1
  135. package/dist/sheet.js +152 -125
  136. package/dist/single-select-filter.cjs +1 -1
  137. package/dist/single-select-filter.d.ts.map +1 -1
  138. package/dist/single-select-filter.js +67 -76
  139. package/dist/table.cjs +1 -1
  140. package/dist/table.d.ts.map +1 -1
  141. package/dist/table.js +77 -76
  142. package/dist/tabs.cjs +1 -1
  143. package/dist/tabs.d.ts +39 -3
  144. package/dist/tabs.d.ts.map +1 -1
  145. package/dist/tabs.js +127 -76
  146. package/dist/textarea.cjs +1 -1
  147. package/dist/textarea.d.ts +34 -0
  148. package/dist/textarea.d.ts.map +1 -1
  149. package/dist/textarea.js +115 -19
  150. package/dist/tooltip.cjs +1 -1
  151. package/dist/tooltip.d.ts.map +1 -1
  152. package/dist/tooltip.js +137 -131
  153. package/dist/typography-text.cjs +1 -1
  154. package/dist/typography-text.d.ts +6 -2
  155. package/dist/typography-text.d.ts.map +1 -1
  156. package/dist/typography-text.js +14 -13
  157. package/package.json +3 -4
  158. package/src/blocks/empty-state.tsx +108 -48
  159. package/src/blocks/input-list.tsx +1 -0
  160. package/src/blocks/sidebar.tsx +39 -16
  161. package/src/components/alert-dialog.tsx +18 -2
  162. package/src/components/banner.tsx +247 -68
  163. package/src/components/button.tsx +27 -10
  164. package/src/components/card.tsx +89 -7
  165. package/src/components/chart.tsx +47 -67
  166. package/src/components/combobox.tsx +221 -12
  167. package/src/components/command.tsx +83 -37
  168. package/src/components/count-indicator.tsx +188 -0
  169. package/src/components/data-table.tsx +506 -159
  170. package/src/components/dialog.tsx +74 -5
  171. package/src/components/drawer.tsx +52 -32
  172. package/src/components/file-upload.tsx +2574 -0
  173. package/src/components/global-layout.tsx +18 -5
  174. package/src/components/hover-card.tsx +395 -65
  175. package/src/components/input-chip.tsx +67 -2
  176. package/src/components/input-group.tsx +89 -6
  177. package/src/components/list.tsx +40 -3
  178. package/src/components/logo-mark.tsx +109 -25
  179. package/src/components/media-empty.tsx +62 -7
  180. package/src/components/multi-select-filter.tsx +9 -16
  181. package/src/components/pagination.tsx +15 -2
  182. package/src/components/relative-date.tsx +6 -0
  183. package/src/components/result-count.tsx +27 -54
  184. package/src/components/sheet.tsx +86 -8
  185. package/src/components/single-select-filter.tsx +9 -16
  186. package/src/components/table.tsx +16 -1
  187. package/src/components/tabs.tsx +223 -41
  188. package/src/components/textarea.tsx +271 -4
  189. package/src/components/tooltip.tsx +29 -2
  190. package/src/components/typography-text.tsx +7 -2
  191. package/src/hooks/use-file-dropzone.ts +325 -0
  192. package/src/index.ts +3 -0
  193. package/src/lib/empty-canvas.tsx +47 -20
  194. package/src/lib/empty-chip.tsx +38 -3
  195. package/src/lib/field-aria.tsx +11 -6
  196. package/src/lib/table-internal.ts +38 -0
package/dist/chart.js CHANGED
@@ -1,189 +1,174 @@
1
1
  "use client";
2
- import { ChartEmpty as ot } from "./chart-empty.js";
2
+ import { ChartEmpty as ae } from "./chart-empty.js";
3
3
  import * as b from "react";
4
4
  import { cn as x } from "@brightlocal/ui-components/lib/utils";
5
- import { Fragment as A, jsx as i, jsxs as N } from "react/jsx-runtime";
6
- import { Slot as j, Slottable as O } from "@radix-ui/react-slot";
7
- import { cva as D } from "class-variance-authority";
5
+ import { Fragment as A, jsx as i, jsxs as k } from "react/jsx-runtime";
6
+ import { Slot as j, Slottable as D } from "@radix-ui/react-slot";
7
+ import { cva as O } from "class-variance-authority";
8
8
  import * as _ from "recharts";
9
- import { Area as ut, AreaChart as ht, Bar as ft, BarChart as pt, CartesianGrid as mt, Cell as gt, Customized as vt, Label as Ct, LabelList as bt, Legend as xt, Line as yt, LineChart as kt, Pie as Nt, PieChart as Lt, PolarAngleAxis as _t, PolarGrid as wt, PolarRadiusAxis as $t, Radar as St, RadarChart as Pt, RadialBar as zt, RadialBarChart as Et, Rectangle as Rt, ReferenceLine as Tt, ResponsiveContainer as It, Sector as At, Tooltip as jt, XAxis as Ot, YAxis as Dt } from "recharts";
9
+ import { Area as de, AreaChart as ue, Bar as he, BarChart as fe, CartesianGrid as pe, Cell as me, Customized as ge, Label as ve, LabelList as Ce, Legend as be, Line as xe, LineChart as ye, Pie as Le, PieChart as ke, PolarAngleAxis as Ne, PolarGrid as _e, PolarRadiusAxis as we, Radar as $e, RadarChart as Se, RadialBar as ze, RadialBarChart as Ee, Rectangle as Pe, ReferenceLine as Re, ResponsiveContainer as Te, Sector as Ie, Tooltip as Ae, XAxis as je, YAxis as De } from "recharts";
10
10
  var $ = b.createContext(null);
11
- function z() {
12
- const e = b.useContext($);
13
- if (!e) throw new Error("useChart must be used within a <ChartContainer />");
14
- return e;
15
- }
16
11
  function E() {
12
+ const r = b.useContext($);
13
+ if (!r) throw new Error("useChart must be used within a <ChartContainer />");
14
+ return r;
15
+ }
16
+ function P() {
17
17
  return b.useContext($);
18
18
  }
19
- var V = b.forwardRef(({ id: e, className: a, children: o, config: t, dataHook: r, width: n, height: s, minWidth: d, minHeight: l, maxHeight: h, trackingEl: m, trackingLabel: g, ...v }, C) => {
20
- const y = b.useId(), p = `chart-${e || y.replace(/:/g, "")}`, u = b.useRef(null), k = b.useCallback((f) => {
21
- u.current = f, typeof C == "function" ? C(f) : C && (C.current = f);
22
- }, [C]), c = typeof s == "number";
19
+ var V = b.forwardRef(({ id: r, className: n, children: s, config: e, dataHook: t, width: a, height: l, minWidth: d, minHeight: o, maxHeight: h, trackingEl: f, trackingLabel: m, ...g }, C) => {
20
+ const y = b.useId(), v = `chart-${r || y.replace(/:/g, "")}`, u = b.useRef(null), L = b.useCallback((p) => {
21
+ u.current = p, typeof C == "function" ? C(p) : C && (C.current = p);
22
+ }, [C]), c = typeof l == "number";
23
23
  return /* @__PURE__ */ i($.Provider, {
24
24
  value: {
25
- config: t,
25
+ config: e,
26
26
  containerRef: u
27
27
  },
28
- children: /* @__PURE__ */ N("div", {
29
- ref: k,
30
- className: x("[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-polar-radius-axis-tick-value]:fill-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-pie-sector]:stroke-background text-body-xs flex justify-center [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-pie-sector]:stroke-2 [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none [&_svg_g]:outline-none [&_svg_g]:focus:outline-none", c ? "aspect-auto" : "aspect-video", a),
31
- "data-chart": p,
32
- "data-hook": r,
28
+ children: /* @__PURE__ */ k("div", {
29
+ ref: L,
30
+ className: x("[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-polar-radius-axis-tick-value]:fill-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-pie-sector]:stroke-background text-body-xs flex justify-center [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-pie-sector]:stroke-2 [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none [&_svg_g]:outline-none [&_svg_g]:focus:outline-none", c ? "aspect-auto" : "aspect-video", n),
31
+ "data-chart": v,
32
+ "data-hook": t,
33
33
  "data-slot": "chart-container",
34
- "data-tracking-el": m,
35
- "data-tracking-label": g,
36
- style: c ? { height: s } : void 0,
37
- ...v,
34
+ "data-tracking-el": f,
35
+ "data-tracking-label": m,
36
+ style: c ? { height: l } : void 0,
37
+ ...g,
38
38
  children: [/* @__PURE__ */ i(W, {
39
- config: t,
40
- id: p
39
+ config: e,
40
+ id: v
41
41
  }), /* @__PURE__ */ i(_.ResponsiveContainer, {
42
- height: s ?? "100%",
42
+ height: l ?? "100%",
43
43
  initialDimension: {
44
44
  width: 1,
45
45
  height: 1
46
46
  },
47
47
  maxHeight: h,
48
- minHeight: l,
48
+ minHeight: o,
49
49
  minWidth: d ?? 0,
50
- width: n ?? "100%",
51
- children: o
50
+ width: a ?? "100%",
51
+ children: s
52
52
  })]
53
53
  })
54
54
  });
55
55
  });
56
56
  V.displayName = "ChartContainer";
57
- function W({ id: e, config: a }) {
58
- const o = Object.entries(a).filter(([, t]) => t.theme || t.color);
59
- return o.length ? /* @__PURE__ */ i("style", { dangerouslySetInnerHTML: { __html: o.map(([t, r]) => {
60
- const n = typeof r.color == "string" ? r.color.replace(/^hsl\((.*)\)$/, "$1") : null;
61
- return n ? `
62
- [data-chart=${e}] {
63
- --color-${t}: ${n};
57
+ function W({ id: r, config: n }) {
58
+ const s = Object.entries(n).filter(([, e]) => e.theme || e.color);
59
+ return s.length ? /* @__PURE__ */ i("style", { dangerouslySetInnerHTML: { __html: s.map(([e, t]) => {
60
+ const a = typeof t.color == "string" ? t.color.replace(/^hsl\((.*)\)$/, "$1") : null;
61
+ return a ? `
62
+ [data-chart=${r}] {
63
+ --color-${e}: ${a};
64
64
  }
65
- ` : r.theme ? Object.entries(r.theme).map(([s, d]) => `
66
- .${s} [data-chart=${e}] {
67
- --color-${t}: ${d.replace(/^hsl\((.*)\)$/, "$1")};
65
+ ` : t.theme ? Object.entries(t.theme).map(([l, d]) => `
66
+ .${l} [data-chart=${r}] {
67
+ --color-${e}: ${d.replace(/^hsl\((.*)\)$/, "$1")};
68
68
  }
69
69
  `).join("") : "";
70
70
  }).join(`
71
71
  `) } }) : null;
72
72
  }
73
- function P(e) {
74
- return e == null || e === "" ? !1 : typeof e == "number" ? Number.isFinite(e) : !0;
73
+ function z(r) {
74
+ return r == null || r === "" ? !1 : typeof r == "number" ? Number.isFinite(r) : !0;
75
75
  }
76
76
  var G = 50;
77
- function M(e) {
78
- const [a, o] = b.useState(null);
77
+ function M(r, n) {
78
+ const [s, e] = b.useState(!1);
79
79
  return b.useEffect(() => {
80
- if (!e) {
81
- o(null);
82
- return;
80
+ const t = r?.current;
81
+ if (!t) return;
82
+ let a = !1;
83
+ function l(f) {
84
+ const m = f.target, g = t.contains(m) || !!n?.contains(m);
85
+ a = g, e(!g);
83
86
  }
84
- const t = document.createElement("div");
85
- return t.setAttribute("data-slot", "chart-tooltip-portal"), document.body.appendChild(t), o(t), () => {
86
- document.body.removeChild(t);
87
- };
88
- }, [e]), a;
89
- }
90
- function H(e, a) {
91
- b.useEffect(() => {
92
- const o = e?.current;
93
- if (!o) return;
94
- const t = a ?? o;
95
- let r = !1;
96
- function n() {
97
- const l = t.querySelector(".recharts-tooltip-wrapper");
98
- l && (l.style.visibility = "hidden");
87
+ function d() {
88
+ a && (a = !1, e(!0));
99
89
  }
100
- function s(l) {
101
- r = !0;
102
- const h = l.target;
103
- !o.contains(h) && !t.contains(h) && (n(), r = !1);
90
+ function o(f) {
91
+ f.pointerType !== "touch" && e(!1);
104
92
  }
105
- function d() {
106
- r && (n(), r = !1);
93
+ function h() {
94
+ e(!1);
107
95
  }
108
- return document.addEventListener("touchstart", s, { passive: !0 }), window.addEventListener("scroll", d, {
96
+ return document.addEventListener("touchstart", l, { passive: !0 }), window.addEventListener("scroll", d, {
109
97
  passive: !0,
110
98
  capture: !0
111
- }), () => {
112
- document.removeEventListener("touchstart", s), window.removeEventListener("scroll", d, { capture: !0 });
99
+ }), t.addEventListener("pointermove", o), t.addEventListener("pointerdown", o), t.addEventListener("keydown", h), t.addEventListener("focusin", h), () => {
100
+ document.removeEventListener("touchstart", l), window.removeEventListener("scroll", d, { capture: !0 }), t.removeEventListener("pointermove", o), t.removeEventListener("pointerdown", o), t.removeEventListener("keydown", h), t.removeEventListener("focusin", h);
113
101
  };
114
- }, [e, a]);
102
+ }, [r, n]), s;
115
103
  }
116
- function q({ portal: e, wrapperStyle: a, allowEscapeViewBox: o, ...t }) {
117
- const r = E(), n = M(e !== null);
118
- return H(r?.containerRef, n), /* @__PURE__ */ i(_.Tooltip, {
119
- allowEscapeViewBox: o ?? {
120
- x: !0,
121
- y: !0
122
- },
123
- portal: e !== void 0 ? e : n,
104
+ function F({ portal: r, wrapperStyle: n, active: s, ...e }) {
105
+ const t = M(P()?.containerRef, r ?? null);
106
+ return /* @__PURE__ */ i(_.Tooltip, {
107
+ active: s ?? (t ? !1 : void 0),
108
+ portal: r,
124
109
  wrapperStyle: {
125
110
  zIndex: G,
126
- ...a
111
+ ...n
127
112
  },
128
- ...t
113
+ ...e
129
114
  });
130
115
  }
131
- q.displayName = "ChartTooltip";
132
- function F({ active: e, payload: a, className: o, indicator: t = "dot", hideLabel: r = !1, hideIndicator: n = !1, label: s, labelFormatter: d, labelClassName: l, formatter: h, color: m, nameKey: g, labelKey: v }) {
133
- const { config: C } = z(), y = b.useMemo(() => {
134
- if (r || !a?.length) return null;
135
- const [u] = a;
116
+ F.displayName = "ChartTooltip";
117
+ function H({ active: r, payload: n, className: s, indicator: e = "dot", hideLabel: t = !1, hideIndicator: a = !1, label: l, labelFormatter: d, labelClassName: o, formatter: h, color: f, nameKey: m, labelKey: g }) {
118
+ const { config: C } = E(), y = b.useMemo(() => {
119
+ if (t || !n?.length) return null;
120
+ const [u] = n;
136
121
  if (!u) return null;
137
- const k = `${v || u.dataKey || u.name || "value"}`, c = C[k], f = !v && typeof s == "string" ? C[s]?.label || s : c?.label;
122
+ const L = `${g || u.dataKey || u.name || "value"}`, c = C[L], p = !g && typeof l == "string" ? C[l]?.label || l : c?.label;
138
123
  return d ? /* @__PURE__ */ i("div", {
139
- className: x("font-medium", l),
140
- children: d(f, a)
141
- }) : f ? /* @__PURE__ */ i("div", {
142
- className: x("font-medium", l),
143
- children: f
124
+ className: x("font-medium", o),
125
+ children: d(p, n)
126
+ }) : p ? /* @__PURE__ */ i("div", {
127
+ className: x("font-medium", o),
128
+ children: p
144
129
  }) : null;
145
130
  }, [
146
- s,
147
- d,
148
- a,
149
- r,
150
131
  l,
132
+ d,
133
+ n,
134
+ t,
135
+ o,
151
136
  C,
152
- v
137
+ g
153
138
  ]);
154
- if (!e || !a?.length) return null;
155
- const p = a.length === 1 && t !== "dot";
156
- return /* @__PURE__ */ N("div", {
157
- className: x("border-border/50 bg-background text-body-xs grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 shadow-xl", o),
139
+ if (!r || !n?.length) return null;
140
+ const v = n.length === 1 && e !== "dot";
141
+ return /* @__PURE__ */ k("div", {
142
+ className: x("border-border/50 bg-background text-body-xs grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 shadow-xl", s),
158
143
  "data-slot": "chart-tooltip-content",
159
- children: [p ? null : y, /* @__PURE__ */ i("div", {
144
+ children: [v ? null : y, /* @__PURE__ */ i("div", {
160
145
  className: "grid gap-1.5",
161
- children: a.map((u, k) => {
162
- const c = `${g || u.name || u.dataKey || "value"}`, f = C[c], L = m || u.color || u.payload.fill || `var(--color-${c})`;
146
+ children: n.map((u, L) => {
147
+ const c = `${m || u.name || u.dataKey || "value"}`, p = C[c], N = f || u.color || u.payload.fill || `var(--color-${c})`;
163
148
  return /* @__PURE__ */ i("div", {
164
- className: x("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2", t === "dot" && "items-center"),
149
+ className: x("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2", e === "dot" && "items-center"),
165
150
  "data-slot": "chart-tooltip-item",
166
- children: h && P(u.value) && u.name ? h(u.value, u.name, u, k, a) : /* @__PURE__ */ N(A, { children: [f?.icon && !n ? /* @__PURE__ */ i(f.icon, { size: 10 }) : !n && /* @__PURE__ */ i("div", {
151
+ children: h && z(u.value) && u.name ? h(u.value, u.name, u, L, n) : /* @__PURE__ */ k(A, { children: [p?.icon && !a ? /* @__PURE__ */ i(p.icon, { size: 10 }) : !a && /* @__PURE__ */ i("div", {
167
152
  className: x("shrink-0 rounded-[2px]", {
168
- "h-2.5 w-2.5": t === "dot",
169
- "w-1": t === "line",
170
- "w-0 border-[1.5px] border-dashed bg-transparent": t === "dashed",
171
- "my-0.5": p && t === "dashed"
153
+ "h-2.5 w-2.5": e === "dot",
154
+ "w-1": e === "line",
155
+ "w-0 border-[1.5px] border-dashed bg-transparent": e === "dashed",
156
+ "my-0.5": v && e === "dashed"
172
157
  }),
173
158
  style: {
174
- backgroundColor: t === "dashed" ? "transparent" : L,
175
- borderColor: L
159
+ backgroundColor: e === "dashed" ? "transparent" : N,
160
+ borderColor: N
176
161
  }
177
- }), /* @__PURE__ */ N("div", {
178
- className: x("flex flex-1 justify-between gap-2 leading-none", p ? "items-end" : "items-center"),
179
- children: [/* @__PURE__ */ N("div", {
162
+ }), /* @__PURE__ */ k("div", {
163
+ className: x("flex flex-1 justify-between gap-2 leading-none", v ? "items-end" : "items-center"),
164
+ children: [/* @__PURE__ */ k("div", {
180
165
  className: "grid gap-1.5",
181
- children: [p ? y : null, /* @__PURE__ */ i("span", {
166
+ children: [v ? y : null, /* @__PURE__ */ i("span", {
182
167
  className: "text-muted-foreground",
183
168
  "data-slot": "chart-tooltip-item-name",
184
- children: f?.label || u.name
169
+ children: p?.label || u.name
185
170
  })]
186
- }), P(u.value) && /* @__PURE__ */ i("span", {
171
+ }), z(u.value) && /* @__PURE__ */ i("span", {
187
172
  className: "text-foreground tabular-nums",
188
173
  "data-slot": "chart-tooltip-item-value",
189
174
  children: typeof u.value == "number" ? u.value.toLocaleString() : u.value
@@ -194,48 +179,48 @@ function F({ active: e, payload: a, className: o, indicator: t = "dot", hideLabe
194
179
  })]
195
180
  });
196
181
  }
197
- F.displayName = "ChartTooltipContent";
198
- function X({ ...e }) {
199
- return /* @__PURE__ */ i(_.Legend, { ...e });
182
+ H.displayName = "ChartTooltipContent";
183
+ function X({ ...r }) {
184
+ return /* @__PURE__ */ i(_.Legend, { ...r });
200
185
  }
201
186
  X.displayName = "ChartLegend";
202
- var R = b.forwardRef(({ asChild: e = !1, children: a, className: o, color: t, dataHook: r, hidden: n = !1, hideIcon: s = !1, muted: d = !1, seriesKey: l, trackingEl: h, trackingLabel: m, value: g, ...v }, C) => {
203
- const y = E(), p = l ? y?.config[l] : void 0, u = t ?? p?.color ?? (l ? `var(--color-${l})` : void 0), k = !!l && !t && (!y || !!y.standalone && !p?.color);
187
+ var R = b.forwardRef(({ asChild: r = !1, children: n, className: s, color: e, dataHook: t, hidden: a = !1, hideIcon: l = !1, muted: d = !1, seriesKey: o, trackingEl: h, trackingLabel: f, value: m, ...g }, C) => {
188
+ const y = P(), v = o ? y?.config[o] : void 0, u = e ?? v?.color ?? (o ? `var(--color-${o})` : void 0), L = !!o && !e && (!y || !!y.standalone && !v?.color);
204
189
  b.useEffect(() => {
205
- process.env.NODE_ENV !== "production" && k && console.warn(`ChartLegendItem: seriesKey="${l}" has no colour to resolve — render it inside a ChartContainer, give the ChartLegendList config a \`color\` for this key (a \`theme\` only resolves inside a container), or set \`color\`.`);
206
- }, [l, k]);
207
- const c = e ? j : "div", f = a ?? p?.label ?? l;
208
- return /* @__PURE__ */ N(c, {
190
+ process.env.NODE_ENV !== "production" && L && console.warn(`ChartLegendItem: seriesKey="${o}" has no colour to resolve — render it inside a ChartContainer, give the ChartLegendList config a \`color\` for this key (a \`theme\` only resolves inside a container), or set \`color\`.`);
191
+ }, [o, L]);
192
+ const c = r ? j : "div", p = n ?? v?.label ?? o;
193
+ return /* @__PURE__ */ k(c, {
209
194
  ref: C,
210
- className: x("[&>svg]:text-muted-foreground focus-visible:shadow-default flex items-center gap-1.5 rounded-sm outline-none group-data-[size=md]/legend:gap-2 [&>svg]:size-3 group-data-[size=md]/legend:[&>svg]:size-3.5", (d || n) && "text-muted-foreground", n && "line-through [&_:is(button,a)]:line-through", o),
211
- "data-hidden": n || void 0,
212
- "data-hook": r,
213
- "data-muted": d || n || void 0,
195
+ className: x("[&>svg]:text-muted-foreground focus-visible:shadow-default flex items-center gap-1.5 rounded-sm outline-none group-data-[size=md]/legend:gap-2 [&>svg]:size-3 group-data-[size=md]/legend:[&>svg]:size-3.5", (d || a) && "text-muted-foreground", a && "line-through [&_:is(button,a)]:line-through", s),
196
+ "data-hidden": a || void 0,
197
+ "data-hook": t,
198
+ "data-muted": d || a || void 0,
214
199
  "data-slot": "chart-legend-item",
215
200
  "data-tracking-el": h,
216
- "data-tracking-label": m,
217
- ...v,
201
+ "data-tracking-label": f,
202
+ ...g,
218
203
  children: [
219
- p?.icon && !s ? /* @__PURE__ */ i(p.icon, { size: 12 }) : /* @__PURE__ */ i("span", {
204
+ v?.icon && !l ? /* @__PURE__ */ i(v.icon, { size: 12 }) : /* @__PURE__ */ i("span", {
220
205
  "aria-hidden": "true",
221
- className: x("duration-fast block size-2 shrink-0 rounded-[2px] transition-opacity ease-out group-data-[size=md]/legend:size-2.5", (d || n) && "opacity-40"),
206
+ className: x("duration-fast block size-2 shrink-0 rounded-[2px] transition-opacity ease-out group-data-[size=md]/legend:size-2.5", (d || a) && "opacity-40"),
222
207
  "data-slot": "chart-legend-item-swatch",
223
208
  style: { backgroundColor: u }
224
209
  }),
225
- /* @__PURE__ */ i(O, { children: f }),
226
- g != null && /* @__PURE__ */ i("span", {
210
+ /* @__PURE__ */ i(D, { children: p }),
211
+ m != null && /* @__PURE__ */ i("span", {
227
212
  className: "ml-auto pl-0.5 tabular-nums",
228
213
  "data-slot": "chart-legend-item-value",
229
214
  children: /* @__PURE__ */ i("span", {
230
215
  className: "inline-block",
231
- children: g
216
+ children: m
232
217
  })
233
218
  })
234
219
  ]
235
220
  });
236
221
  });
237
222
  R.displayName = "ChartLegendItem";
238
- var Y = D("group/legend flex", {
223
+ var Y = O("group/legend flex", {
239
224
  variants: {
240
225
  size: {
241
226
  sm: "text-body-xs",
@@ -250,251 +235,251 @@ var Y = D("group/legend flex", {
250
235
  orientation: "horizontal",
251
236
  size: "sm"
252
237
  }
253
- }), T = b.forwardRef(({ ariaLabel: e, children: a, className: o, config: t, dataHook: r, orientation: n = "horizontal", size: s = "sm", trackingEl: d, trackingLabel: l, ...h }, m) => {
254
- const g = b.useMemo(() => t ? {
255
- config: t,
238
+ }), T = b.forwardRef(({ ariaLabel: r, children: n, className: s, config: e, dataHook: t, orientation: a = "horizontal", size: l = "sm", trackingEl: d, trackingLabel: o, ...h }, f) => {
239
+ const m = b.useMemo(() => e ? {
240
+ config: e,
256
241
  standalone: !0
257
- } : null, [t]), v = /* @__PURE__ */ i("div", {
258
- ref: m,
259
- "aria-label": e ?? "Chart legend",
242
+ } : null, [e]), g = /* @__PURE__ */ i("div", {
243
+ ref: f,
244
+ "aria-label": r ?? "Chart legend",
260
245
  className: x(Y({
261
- orientation: n,
262
- size: s
263
- }), o),
264
- "data-hook": r,
265
- "data-orientation": n,
266
- "data-size": s,
246
+ orientation: a,
247
+ size: l
248
+ }), s),
249
+ "data-hook": t,
250
+ "data-orientation": a,
251
+ "data-size": l,
267
252
  "data-slot": "chart-legend-list",
268
253
  "data-tracking-el": d,
269
- "data-tracking-label": l,
254
+ "data-tracking-label": o,
270
255
  role: "group",
271
256
  ...h,
272
- children: a
257
+ children: n
273
258
  });
274
- return g ? /* @__PURE__ */ i($.Provider, {
275
- value: g,
276
- children: v
277
- }) : v;
259
+ return m ? /* @__PURE__ */ i($.Provider, {
260
+ value: m,
261
+ children: g
262
+ }) : g;
278
263
  });
279
264
  T.displayName = "ChartLegendList";
280
- var Z = (e) => e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
281
- function B({ ariaLabel: e, className: a, dataHook: o = "chart-legend", hideIcon: t = !1, nameKey: r, orientation: n = "horizontal", payload: s, renderItem: d, showValue: l = !1, size: h = "sm", sortBy: m, valueFormatter: g, valueKey: v, verticalAlign: C = "bottom" }) {
282
- const { config: y } = z();
283
- if (!s?.length) return null;
284
- const p = (c) => {
285
- const f = c.dataKey !== void 0 && c.payload?.dataKey === c.dataKey;
286
- return String((r ? c.payload?.[r] : void 0) ?? (f ? c.dataKey : c.value ?? c.dataKey));
265
+ var q = (r) => r.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
266
+ function Z({ ariaLabel: r, className: n, dataHook: s = "chart-legend", hideIcon: e = !1, nameKey: t, orientation: a = "horizontal", payload: l, renderItem: d, showValue: o = !1, size: h = "sm", sortBy: f, valueFormatter: m, valueKey: g, verticalAlign: C = "bottom" }) {
267
+ const { config: y } = E();
268
+ if (!l?.length) return null;
269
+ const v = (c) => {
270
+ const p = c.dataKey !== void 0 && c.payload?.dataKey === c.dataKey;
271
+ return String((t ? c.payload?.[t] : void 0) ?? (p ? c.dataKey : c.value ?? c.dataKey));
287
272
  }, u = (c) => {
288
- const f = Array.isArray(m) ? m.indexOf(p(c)) : -1;
289
- return f === -1 ? Number.POSITIVE_INFINITY : f;
290
- }, k = m ? [...s].sort(Array.isArray(m) ? (c, f) => {
291
- const L = u(c), w = u(f);
292
- return L === w ? 0 : L - w;
293
- } : m) : s;
273
+ const p = Array.isArray(f) ? f.indexOf(v(c)) : -1;
274
+ return p === -1 ? Number.POSITIVE_INFINITY : p;
275
+ }, L = f ? [...l].sort(Array.isArray(f) ? (c, p) => {
276
+ const N = u(c), w = u(p);
277
+ return N === w ? 0 : N - w;
278
+ } : f) : l;
294
279
  return /* @__PURE__ */ i(T, {
295
- ariaLabel: e,
296
- className: x(C === "top" && "pb-4", C === "bottom" && "pt-4", a),
280
+ ariaLabel: r,
281
+ className: x(C === "top" && "pb-4", C === "bottom" && "pt-4", n),
297
282
  "data-slot": "chart-legend-content",
298
- dataHook: o,
299
- orientation: n,
283
+ dataHook: s,
284
+ orientation: a,
300
285
  size: h,
301
- children: k.map((c) => {
302
- const f = p(c), L = y[f], w = l ? g ? g(c) : c.payload?.[v ?? c.dataKey ?? "value"] : void 0, S = /* @__PURE__ */ i(R, {
286
+ children: L.map((c) => {
287
+ const p = v(c), N = y[p], w = o ? m ? m(c) : c.payload?.[g ?? c.dataKey ?? "value"] : void 0, S = /* @__PURE__ */ i(R, {
303
288
  color: c.color,
304
- dataHook: `${o}-${Z(f)}`,
305
- hideIcon: t,
306
- seriesKey: f,
289
+ dataHook: `${s}-${q(p)}`,
290
+ hideIcon: e,
291
+ seriesKey: p,
307
292
  value: w,
308
- children: L?.label || c.value
293
+ children: N?.label || c.value
309
294
  }, c.value);
310
295
  return d ? /* @__PURE__ */ i(b.Fragment, { children: d(c, S) }, c.value) : S;
311
296
  })
312
297
  });
313
298
  }
314
- B.displayName = "ChartLegendContent";
315
- function I({ colorKey: e, color: a, fill: o, stroke: t, payload: r }) {
316
- return (e && typeof r?.[e] == "string" ? r[e] : void 0) ?? a ?? o ?? t ?? "currentColor";
299
+ Z.displayName = "ChartLegendContent";
300
+ function I({ colorKey: r, color: n, fill: s, stroke: e, payload: t }) {
301
+ return (r && typeof t?.[r] == "string" ? t[r] : void 0) ?? n ?? s ?? e ?? "currentColor";
317
302
  }
318
- function J({ size: e = 8, custom: a = !1, color: o, colorKey: t, cx: r, cy: n, stroke: s, fill: d, payload: l }) {
319
- if (r == null || n == null) return null;
303
+ function J({ size: r = 8, custom: n = !1, color: s, colorKey: e, cx: t, cy: a, stroke: l, fill: d, payload: o }) {
304
+ if (t == null || a == null) return null;
320
305
  const h = I({
321
- colorKey: t,
322
- color: o,
306
+ colorKey: e,
307
+ color: s,
323
308
  fill: d,
324
- stroke: s,
325
- payload: l
309
+ stroke: l,
310
+ payload: o
326
311
  });
327
312
  return /* @__PURE__ */ i("circle", {
328
- className: a ? "fill-background" : void 0,
329
- cx: r,
330
- cy: n,
313
+ className: n ? "fill-background" : void 0,
314
+ cx: t,
315
+ cy: a,
331
316
  "data-slot": "chart-dot",
332
- fill: a ? void 0 : h,
333
- r: e / 2,
334
- stroke: a ? h : "none",
335
- strokeWidth: a ? 2 : void 0
317
+ fill: n ? void 0 : h,
318
+ r: r / 2,
319
+ stroke: n ? h : "none",
320
+ strokeWidth: n ? 2 : void 0
336
321
  });
337
322
  }
338
323
  J.displayName = "ChartDot";
339
- function Q({ size: e = 6, color: a, colorKey: o, cx: t, cy: r, stroke: n, fill: s, payload: d }) {
340
- if (t == null || r == null) return null;
341
- const l = I({
342
- colorKey: o,
343
- color: a,
344
- fill: s,
345
- stroke: n,
324
+ function Q({ size: r = 6, color: n, colorKey: s, cx: e, cy: t, stroke: a, fill: l, payload: d }) {
325
+ if (e == null || t == null) return null;
326
+ const o = I({
327
+ colorKey: s,
328
+ color: n,
329
+ fill: l,
330
+ stroke: a,
346
331
  payload: d
347
332
  });
348
333
  return /* @__PURE__ */ i("circle", {
349
334
  className: "stroke-background",
350
- cx: t,
351
- cy: r,
335
+ cx: e,
336
+ cy: t,
352
337
  "data-slot": "chart-dot-on-stroke",
353
- fill: l,
354
- r: e / 2,
338
+ fill: o,
339
+ r: r / 2,
355
340
  strokeWidth: 2
356
341
  });
357
342
  }
358
343
  Q.displayName = "ChartDotOnStroke";
359
- function U({ type: e = "default", filled: a = !1, fillColor: o = "var(--chart-teal)", fillOpacity: t = 0.2, boundaryOnly: r = !1, radialLines: n, className: s, ...d }) {
360
- const l = e === "circle" ? "circle" : "polygon", h = r ? `[&_.${l === "circle" ? "recharts-polar-grid-concentric-circle" : "recharts-polar-grid-concentric-polygon"}:not(:last-of-type)]:stroke-transparent` : void 0;
361
- return a ? /* @__PURE__ */ i(_.PolarGrid, {
362
- className: x(h, s),
363
- fill: o,
364
- fillOpacity: t,
365
- gridType: l,
366
- radialLines: n ?? !1,
344
+ function U({ type: r = "default", filled: n = !1, fillColor: s = "var(--chart-teal)", fillOpacity: e = 0.2, boundaryOnly: t = !1, radialLines: a, className: l, ...d }) {
345
+ const o = r === "circle" ? "circle" : "polygon", h = t ? `[&_.${o === "circle" ? "recharts-polar-grid-concentric-circle" : "recharts-polar-grid-concentric-polygon"}:not(:last-of-type)]:stroke-transparent` : void 0;
346
+ return n ? /* @__PURE__ */ i(_.PolarGrid, {
347
+ className: x(h, l),
348
+ fill: s,
349
+ fillOpacity: e,
350
+ gridType: o,
351
+ radialLines: a ?? !1,
367
352
  stroke: "none",
368
353
  ...d
369
354
  }) : /* @__PURE__ */ i(_.PolarGrid, {
370
- className: x(h, s),
371
- gridType: l,
372
- radialLines: n,
355
+ className: x(h, l),
356
+ gridType: o,
357
+ radialLines: a,
373
358
  ...d
374
359
  });
375
360
  }
376
361
  U.displayName = "ChartRadarGrid";
377
- function K({ type: e = "default", data: a, primaryKey: o, secondaryKey: t, x: r, y: n, textAnchor: s, payload: d, index: l }) {
378
- const h = a != null && l != null ? a[l] : void 0, m = h && o != null ? h[o] : void 0, g = h && t != null ? h[t] : void 0, v = e === "default" && m != null ? g != null ? `${String(m)}/${String(g)}` : String(m) : null;
379
- return /* @__PURE__ */ N("text", {
362
+ function B({ type: r = "default", data: n, primaryKey: s, secondaryKey: e, x: t, y: a, textAnchor: l, payload: d, index: o }) {
363
+ const h = n != null && o != null ? n[o] : void 0, f = h && s != null ? h[s] : void 0, m = h && e != null ? h[e] : void 0, g = r === "default" && f != null ? m != null ? `${String(f)}/${String(m)}` : String(f) : null;
364
+ return /* @__PURE__ */ k("text", {
380
365
  className: "text-body-xs",
381
366
  "data-slot": "chart-radar-label-wrapper",
382
- textAnchor: s,
383
- x: r,
384
- y: n,
385
- children: [v != null && /* @__PURE__ */ i("tspan", {
367
+ textAnchor: l,
368
+ x: t,
369
+ y: a,
370
+ children: [g != null && /* @__PURE__ */ i("tspan", {
386
371
  className: "fill-card-foreground",
387
372
  dy: "-0.5em",
388
- x: r,
389
- children: v
373
+ x: t,
374
+ children: g
390
375
  }), /* @__PURE__ */ i("tspan", {
391
376
  className: "fill-muted-foreground",
392
- dy: v != null ? "1.2em" : void 0,
393
- x: r,
377
+ dy: g != null ? "1.2em" : void 0,
378
+ x: t,
394
379
  children: d?.value
395
380
  })]
396
381
  });
397
382
  }
398
- K.displayName = "ChartRadarLabelWrapper";
399
- function tt({ nameKey: e, config: a, radiusRatio: o = 0.5, cx: t, cy: r, midAngle: n = 0, innerRadius: s = 0, outerRadius: d = 0, payload: l, name: h }) {
400
- if (t == null || r == null) return null;
401
- const m = Math.PI / 180, g = s + (d - s) * o, v = t + g * Math.cos(-n * m), C = r + g * Math.sin(-n * m), y = e != null && l != null ? l[e] : void 0, p = y != null ? String(y) : h, u = p != null ? a?.[p]?.label ?? p : p;
383
+ B.displayName = "ChartRadarLabelWrapper";
384
+ function K({ nameKey: r, config: n, radiusRatio: s = 0.5, cx: e, cy: t, midAngle: a = 0, innerRadius: l = 0, outerRadius: d = 0, payload: o, name: h }) {
385
+ if (e == null || t == null) return null;
386
+ const f = Math.PI / 180, m = l + (d - l) * s, g = e + m * Math.cos(-a * f), C = t + m * Math.sin(-a * f), y = r != null && o != null ? o[r] : void 0, v = y != null ? String(y) : h, u = v != null ? n?.[v]?.label ?? v : v;
402
387
  return /* @__PURE__ */ i("text", {
403
388
  className: "fill-foreground text-body-xs",
404
389
  "data-slot": "chart-pie-label-list",
405
390
  dominantBaseline: "middle",
406
391
  textAnchor: "middle",
407
- x: v,
392
+ x: g,
408
393
  y: C,
409
394
  children: u
410
395
  });
411
396
  }
412
- tt.displayName = "ChartPieLabelList";
413
- function et({ valueKey: e, x: a, y: o, textAnchor: t, payload: r, value: n }) {
414
- if (a == null || o == null) return null;
415
- const s = e != null && r != null ? r[e] : n;
397
+ K.displayName = "ChartPieLabelList";
398
+ function ee({ valueKey: r, x: n, y: s, textAnchor: e, payload: t, value: a }) {
399
+ if (n == null || s == null) return null;
400
+ const l = r != null && t != null ? t[r] : a;
416
401
  return /* @__PURE__ */ i("text", {
417
402
  className: "fill-foreground text-body-xs",
418
403
  "data-slot": "chart-pie-label-wrapper",
419
404
  dominantBaseline: "middle",
420
- textAnchor: t,
421
- x: a,
422
- y: o,
423
- children: s
405
+ textAnchor: e,
406
+ x: n,
407
+ y: s,
408
+ children: l
424
409
  });
425
410
  }
426
- et.displayName = "ChartPieLabelWrapper";
427
- var rt = {
411
+ ee.displayName = "ChartPieLabelWrapper";
412
+ var te = {
428
413
  "2xl": "text-metric",
429
414
  "3xl": "font-sans text-3xl font-semibold",
430
415
  "4xl": "font-sans text-4xl font-semibold"
431
416
  };
432
- function at({ primary: e, secondary: a, size: o = "3xl", viewBox: t }) {
433
- if (t == null || typeof t != "object" || !("cx" in t) || !("cy" in t)) return null;
434
- const { cx: r, cy: n } = t;
435
- return /* @__PURE__ */ N("text", {
417
+ function re({ primary: r, secondary: n, size: s = "3xl", viewBox: e }) {
418
+ if (e == null || typeof e != "object" || !("cx" in e) || !("cy" in e)) return null;
419
+ const { cx: t, cy: a } = e;
420
+ return /* @__PURE__ */ k("text", {
436
421
  "data-slot": "chart-center-label",
437
422
  dominantBaseline: "middle",
438
423
  textAnchor: "middle",
439
- x: r,
440
- y: n,
424
+ x: t,
425
+ y: a,
441
426
  children: [/* @__PURE__ */ i("tspan", {
442
- className: x("fill-foreground", rt[o]),
443
- x: r,
444
- y: n,
445
- children: e
446
- }), a != null && /* @__PURE__ */ i("tspan", {
427
+ className: x("fill-foreground", te[s]),
428
+ x: t,
429
+ y: a,
430
+ children: r
431
+ }), n != null && /* @__PURE__ */ i("tspan", {
447
432
  className: "fill-muted-foreground text-body-xs",
448
- x: r,
449
- y: n + 24,
450
- children: a
433
+ x: t,
434
+ y: a + 24,
435
+ children: n
451
436
  })]
452
437
  });
453
438
  }
454
- at.displayName = "ChartCenterLabel";
439
+ re.displayName = "ChartCenterLabel";
455
440
  export {
456
- ut as Area,
457
- ht as AreaChart,
458
- ft as Bar,
459
- pt as BarChart,
460
- mt as CartesianGrid,
461
- gt as Cell,
462
- at as ChartCenterLabel,
441
+ de as Area,
442
+ ue as AreaChart,
443
+ he as Bar,
444
+ fe as BarChart,
445
+ pe as CartesianGrid,
446
+ me as Cell,
447
+ re as ChartCenterLabel,
463
448
  V as ChartContainer,
464
449
  J as ChartDot,
465
450
  Q as ChartDotOnStroke,
466
- ot as ChartEmpty,
467
- Ct as ChartLabel,
451
+ ae as ChartEmpty,
452
+ ve as ChartLabel,
468
453
  X as ChartLegend,
469
- B as ChartLegendContent,
454
+ Z as ChartLegendContent,
470
455
  R as ChartLegendItem,
471
456
  T as ChartLegendList,
472
- tt as ChartPieLabelList,
473
- et as ChartPieLabelWrapper,
457
+ K as ChartPieLabelList,
458
+ ee as ChartPieLabelWrapper,
474
459
  U as ChartRadarGrid,
475
- K as ChartRadarLabelWrapper,
460
+ B as ChartRadarLabelWrapper,
476
461
  W as ChartStyle,
477
- q as ChartTooltip,
478
- F as ChartTooltipContent,
479
- xt as ChartsLegend,
480
- jt as ChartsTooltip,
481
- vt as Customized,
482
- bt as LabelList,
483
- yt as Line,
484
- kt as LineChart,
485
- Nt as Pie,
486
- Lt as PieChart,
487
- _t as PolarAngleAxis,
488
- wt as PolarGrid,
489
- $t as PolarRadiusAxis,
490
- St as Radar,
491
- Pt as RadarChart,
492
- zt as RadialBar,
493
- Et as RadialBarChart,
494
- Rt as Rectangle,
495
- Tt as ReferenceLine,
496
- It as ResponsiveContainer,
497
- At as Sector,
498
- Ot as XAxis,
499
- Dt as YAxis
462
+ F as ChartTooltip,
463
+ H as ChartTooltipContent,
464
+ be as ChartsLegend,
465
+ Ae as ChartsTooltip,
466
+ ge as Customized,
467
+ Ce as LabelList,
468
+ xe as Line,
469
+ ye as LineChart,
470
+ Le as Pie,
471
+ ke as PieChart,
472
+ Ne as PolarAngleAxis,
473
+ _e as PolarGrid,
474
+ we as PolarRadiusAxis,
475
+ $e as Radar,
476
+ Se as RadarChart,
477
+ ze as RadialBar,
478
+ Ee as RadialBarChart,
479
+ Pe as Rectangle,
480
+ Re as ReferenceLine,
481
+ Te as ResponsiveContainer,
482
+ Ie as Sector,
483
+ je as XAxis,
484
+ De as YAxis
500
485
  };