@brightlocal/ui-components 2.26.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. package/README.md +9 -2
  2. package/component-meta.json +4010 -255
  3. package/deprecations.json +189 -2
  4. package/dist/accordion.cjs +1 -1
  5. package/dist/accordion.js +2 -2
  6. package/dist/alert-dialog.cjs +1 -1
  7. package/dist/alert-dialog.js +18 -18
  8. package/dist/alert.cjs +1 -1
  9. package/dist/alert.d.ts +11 -1
  10. package/dist/alert.d.ts.map +1 -1
  11. package/dist/alert.js +31 -28
  12. package/dist/avatar.cjs +1 -1
  13. package/dist/avatar.js +4 -4
  14. package/dist/badge.cjs +1 -1
  15. package/dist/badge.d.ts.map +1 -1
  16. package/dist/badge.js +15 -11
  17. package/dist/blocks/empty-state.cjs +1 -0
  18. package/dist/blocks/empty-state.d.ts +172 -0
  19. package/dist/blocks/empty-state.d.ts.map +1 -0
  20. package/dist/blocks/empty-state.js +155 -0
  21. package/dist/blocks/input-list.cjs +2 -2
  22. package/dist/blocks/input-list.d.ts.map +1 -1
  23. package/dist/blocks/input-list.js +124 -108
  24. package/dist/blocks/progress-state.cjs +1 -0
  25. package/dist/blocks/progress-state.d.ts +121 -0
  26. package/dist/blocks/progress-state.d.ts.map +1 -0
  27. package/dist/blocks/progress-state.js +368 -0
  28. package/dist/blocks/sidebar.cjs +1 -1
  29. package/dist/blocks/sidebar.d.ts.map +1 -1
  30. package/dist/blocks/sidebar.js +297 -296
  31. package/dist/brand-illustration-motif.d.ts +1 -1
  32. package/dist/breadcrumb.cjs +1 -1
  33. package/dist/breadcrumb.d.ts.map +1 -1
  34. package/dist/breadcrumb.js +44 -40
  35. package/dist/button.cjs +1 -1
  36. package/dist/button.d.ts.map +1 -1
  37. package/dist/button.js +23 -23
  38. package/dist/calendar.cjs +1 -1
  39. package/dist/calendar.d.ts.map +1 -1
  40. package/dist/calendar.js +37 -38
  41. package/dist/callout.cjs +1 -1
  42. package/dist/callout.d.ts +24 -2
  43. package/dist/callout.d.ts.map +1 -1
  44. package/dist/callout.js +57 -55
  45. package/dist/card.cjs +1 -1
  46. package/dist/card.d.ts +23 -2
  47. package/dist/card.d.ts.map +1 -1
  48. package/dist/card.js +94 -91
  49. package/dist/chart-empty.cjs +1 -0
  50. package/dist/chart-empty.d.ts +59 -0
  51. package/dist/chart-empty.d.ts.map +1 -0
  52. package/dist/chart-empty.js +29 -0
  53. package/dist/chart.cjs +6 -6
  54. package/dist/chart.d.ts +6 -1
  55. package/dist/chart.d.ts.map +1 -1
  56. package/dist/chart.js +183 -183
  57. package/dist/chip.cjs +1 -1
  58. package/dist/chip.d.ts +1 -1
  59. package/dist/chip.d.ts.map +1 -1
  60. package/dist/chip.js +47 -44
  61. package/dist/combobox.cjs +3 -3
  62. package/dist/combobox.d.ts +4 -2
  63. package/dist/combobox.d.ts.map +1 -1
  64. package/dist/combobox.js +143 -141
  65. package/dist/command.cjs +1 -1
  66. package/dist/command.d.ts.map +1 -1
  67. package/dist/command.js +74 -77
  68. package/dist/context-menu.cjs +1 -1
  69. package/dist/context-menu.d.ts.map +1 -1
  70. package/dist/context-menu.js +26 -29
  71. package/dist/data-table.cjs +1 -1
  72. package/dist/data-table.d.ts +182 -13
  73. package/dist/data-table.d.ts.map +1 -1
  74. package/dist/data-table.js +462 -314
  75. package/dist/description.cjs +1 -1
  76. package/dist/description.js +5 -5
  77. package/dist/dialog.cjs +1 -1
  78. package/dist/dialog.js +20 -20
  79. package/dist/drawer.cjs +1 -1
  80. package/dist/drawer.d.ts.map +1 -1
  81. package/dist/drawer.js +8 -11
  82. package/dist/dropdown-menu.cjs +1 -1
  83. package/dist/dropdown-menu.d.ts.map +1 -1
  84. package/dist/dropdown-menu.js +17 -20
  85. package/dist/field.cjs +1 -1
  86. package/dist/field.d.ts.map +1 -1
  87. package/dist/field.js +29 -25
  88. package/dist/global-layout.cjs +1 -1
  89. package/dist/global-layout.d.ts +58 -6
  90. package/dist/global-layout.d.ts.map +1 -1
  91. package/dist/global-layout.js +278 -194
  92. package/dist/grid.cjs +1 -0
  93. package/dist/grid.d.ts +56 -0
  94. package/dist/grid.d.ts.map +1 -0
  95. package/dist/grid.js +32 -0
  96. package/dist/header.d.ts +13 -0
  97. package/dist/header.d.ts.map +1 -1
  98. package/dist/hooks/use-delayed-pending.cjs +1 -0
  99. package/dist/hooks/use-delayed-pending.d.ts +34 -0
  100. package/dist/hooks/use-delayed-pending.d.ts.map +1 -0
  101. package/dist/hooks/use-delayed-pending.js +17 -0
  102. package/dist/hover-card.cjs +1 -1
  103. package/dist/hover-card.js +13 -13
  104. package/dist/index.cjs +1 -1
  105. package/dist/index.d.ts +10 -0
  106. package/dist/index.d.ts.map +1 -1
  107. package/dist/index.js +523 -494
  108. package/dist/input-chip.cjs +1 -1
  109. package/dist/input-chip.js +25 -25
  110. package/dist/input-group.cjs +1 -1
  111. package/dist/input-group.js +9 -9
  112. package/dist/input-otp.cjs +1 -1
  113. package/dist/input-otp.js +9 -9
  114. package/dist/input-password.cjs +1 -1
  115. package/dist/input-password.js +51 -51
  116. package/dist/input.cjs +1 -1
  117. package/dist/input.js +9 -9
  118. package/dist/label.cjs +1 -1
  119. package/dist/label.d.ts.map +1 -1
  120. package/dist/label.js +25 -28
  121. package/dist/lib/block-illustration.cjs +1 -0
  122. package/dist/lib/block-illustration.d.ts +28 -0
  123. package/dist/lib/block-illustration.d.ts.map +1 -0
  124. package/dist/lib/block-illustration.js +21 -0
  125. package/dist/lib/empty-canvas.cjs +1 -0
  126. package/dist/lib/empty-canvas.d.ts +27 -0
  127. package/dist/lib/empty-canvas.d.ts.map +1 -0
  128. package/dist/lib/empty-canvas.js +62 -0
  129. package/dist/lib/motion.cjs +1 -1
  130. package/dist/lib/motion.js +10 -8
  131. package/dist/lib/optical-center.cjs +1 -0
  132. package/dist/lib/optical-center.d.ts +12 -0
  133. package/dist/lib/optical-center.d.ts.map +1 -0
  134. package/dist/lib/optical-center.js +11 -0
  135. package/dist/lib/utils.cjs +1 -1
  136. package/dist/lib/utils.d.ts.map +1 -1
  137. package/dist/lib/utils.js +28 -5
  138. package/dist/link.cjs +1 -1
  139. package/dist/link.d.ts +8 -6
  140. package/dist/link.d.ts.map +1 -1
  141. package/dist/link.js +52 -20
  142. package/dist/list.cjs +1 -1
  143. package/dist/list.d.ts.map +1 -1
  144. package/dist/list.js +87 -81
  145. package/dist/map.cjs +1 -1
  146. package/dist/map.d.ts +60 -2
  147. package/dist/map.d.ts.map +1 -1
  148. package/dist/map.js +187 -164
  149. package/dist/media-empty.cjs +1 -0
  150. package/dist/media-empty.d.ts +72 -0
  151. package/dist/media-empty.d.ts.map +1 -0
  152. package/dist/media-empty.js +45 -0
  153. package/dist/menubar.cjs +1 -1
  154. package/dist/menubar.d.ts.map +1 -1
  155. package/dist/menubar.js +17 -20
  156. package/dist/navigation-menu.cjs +1 -1
  157. package/dist/navigation-menu.js +7 -7
  158. package/dist/pagination.cjs +1 -1
  159. package/dist/pagination.d.ts +127 -1
  160. package/dist/pagination.d.ts.map +1 -1
  161. package/dist/pagination.js +189 -98
  162. package/dist/progress.cjs +1 -1
  163. package/dist/progress.d.ts +37 -3
  164. package/dist/progress.d.ts.map +1 -1
  165. package/dist/progress.js +102 -64
  166. package/dist/route-progress.cjs +1 -0
  167. package/dist/route-progress.d.ts +103 -0
  168. package/dist/route-progress.d.ts.map +1 -0
  169. package/dist/route-progress.js +106 -0
  170. package/dist/select.cjs +2 -2
  171. package/dist/select.d.ts.map +1 -1
  172. package/dist/select.js +19 -18
  173. package/dist/separator.cjs +1 -1
  174. package/dist/separator.js +8 -8
  175. package/dist/sheet.cjs +1 -1
  176. package/dist/sheet.d.ts +35 -2
  177. package/dist/sheet.d.ts.map +1 -1
  178. package/dist/sheet.js +103 -66
  179. package/dist/skeleton.cjs +1 -1
  180. package/dist/skeleton.d.ts +38 -3
  181. package/dist/skeleton.d.ts.map +1 -1
  182. package/dist/skeleton.js +43 -20
  183. package/dist/sonner.cjs +1 -1
  184. package/dist/sonner.d.ts.map +1 -1
  185. package/dist/sonner.js +32 -36
  186. package/dist/spinner.cjs +1 -0
  187. package/dist/spinner.d.ts +57 -0
  188. package/dist/spinner.d.ts.map +1 -0
  189. package/dist/spinner.js +35 -0
  190. package/dist/stepper.cjs +1 -1
  191. package/dist/stepper.d.ts.map +1 -1
  192. package/dist/stepper.js +23 -22
  193. package/dist/table.cjs +1 -1
  194. package/dist/table.d.ts +1 -1
  195. package/dist/table.d.ts.map +1 -1
  196. package/dist/table.js +36 -29
  197. package/dist/tabs.cjs +1 -1
  198. package/dist/tabs.js +1 -1
  199. package/dist/text-reveal-motion.d.ts +10 -0
  200. package/dist/text-reveal-motion.d.ts.map +1 -1
  201. package/dist/textarea.cjs +1 -1
  202. package/dist/textarea.js +11 -11
  203. package/dist/toggle.cjs +1 -1
  204. package/dist/toggle.js +8 -8
  205. package/dist/tooltip.cjs +1 -1
  206. package/dist/tooltip.js +8 -8
  207. package/dist/typography-heading.cjs +1 -0
  208. package/dist/typography-heading.d.ts +116 -0
  209. package/dist/typography-heading.d.ts.map +1 -0
  210. package/dist/typography-heading.js +84 -0
  211. package/dist/typography-text.cjs +1 -0
  212. package/dist/typography-text.d.ts +113 -0
  213. package/dist/typography-text.d.ts.map +1 -0
  214. package/dist/typography-text.js +81 -0
  215. package/dist/typography.d.ts +13 -0
  216. package/dist/typography.d.ts.map +1 -1
  217. package/package.json +42 -2
  218. package/src/blocks/empty-state.tsx +424 -0
  219. package/src/blocks/input-list.tsx +66 -36
  220. package/src/blocks/progress-state.tsx +542 -0
  221. package/src/blocks/sidebar.tsx +46 -40
  222. package/src/components/accordion.tsx +2 -2
  223. package/src/components/alert-dialog.tsx +2 -2
  224. package/src/components/alert.tsx +27 -13
  225. package/src/components/avatar.tsx +1 -1
  226. package/src/components/badge.tsx +8 -4
  227. package/src/components/breadcrumb.tsx +9 -4
  228. package/src/components/button.tsx +5 -8
  229. package/src/components/calendar.tsx +5 -6
  230. package/src/components/callout.tsx +48 -15
  231. package/src/components/card.tsx +52 -17
  232. package/src/components/chart-empty.tsx +116 -0
  233. package/src/components/chart.tsx +43 -17
  234. package/src/components/chip.tsx +9 -6
  235. package/src/components/combobox.tsx +21 -12
  236. package/src/components/command.tsx +9 -10
  237. package/src/components/context-menu.tsx +6 -9
  238. package/src/components/data-table.tsx +405 -31
  239. package/src/components/description.tsx +1 -1
  240. package/src/components/dialog.tsx +2 -2
  241. package/src/components/drawer.tsx +2 -5
  242. package/src/components/dropdown-menu.tsx +8 -11
  243. package/src/components/field.tsx +8 -4
  244. package/src/components/global-layout.tsx +264 -65
  245. package/src/components/grid.tsx +130 -0
  246. package/src/components/header.tsx +13 -0
  247. package/src/components/hover-card.tsx +1 -1
  248. package/src/components/input-chip.tsx +1 -1
  249. package/src/components/input-group.tsx +1 -1
  250. package/src/components/input-otp.tsx +1 -1
  251. package/src/components/input-password.tsx +1 -1
  252. package/src/components/input.tsx +1 -1
  253. package/src/components/label.tsx +10 -13
  254. package/src/components/link.tsx +39 -5
  255. package/src/components/list.tsx +18 -14
  256. package/src/components/map.tsx +101 -5
  257. package/src/components/media-empty.tsx +156 -0
  258. package/src/components/menubar.tsx +7 -10
  259. package/src/components/navigation-menu.tsx +1 -1
  260. package/src/components/pagination.tsx +279 -1
  261. package/src/components/progress.tsx +120 -11
  262. package/src/components/route-progress.tsx +354 -0
  263. package/src/components/select.tsx +5 -4
  264. package/src/components/separator.tsx +1 -1
  265. package/src/components/sheet.tsx +89 -7
  266. package/src/components/skeleton.tsx +78 -7
  267. package/src/components/sonner.tsx +5 -14
  268. package/src/components/spinner.tsx +94 -0
  269. package/src/components/stepper.tsx +6 -7
  270. package/src/components/table.tsx +11 -4
  271. package/src/components/tabs.tsx +1 -1
  272. package/src/components/text-reveal-motion.tsx +10 -0
  273. package/src/components/textarea.tsx +1 -1
  274. package/src/components/toggle.tsx +1 -1
  275. package/src/components/tooltip.tsx +1 -1
  276. package/src/components/typography-heading.tsx +229 -0
  277. package/src/components/typography-text.tsx +225 -0
  278. package/src/components/typography.tsx +13 -0
  279. package/src/hooks/use-delayed-pending.ts +60 -0
  280. package/src/index.ts +12 -0
  281. package/src/lib/block-illustration.tsx +88 -0
  282. package/src/lib/empty-canvas.tsx +128 -0
  283. package/src/lib/optical-center.tsx +45 -0
  284. package/src/lib/utils.ts +26 -0
package/dist/chart.js CHANGED
@@ -1,22 +1,22 @@
1
- import { jsxs as x, jsx as s, Fragment as w } from "react/jsx-runtime";
1
+ import { jsxs as b, jsx as s, Fragment as S } from "react/jsx-runtime";
2
2
  import * as k from "react";
3
3
  import * as N from "recharts";
4
- import { Area as J, AreaChart as Q, Bar as U, BarChart as Z, CartesianGrid as F, Cell as K, Label as ee, Legend as re, Tooltip as te, Customized as ne, LabelList as ae, Line as le, LineChart as oe, Pie as se, PieChart as ie, PolarAngleAxis as ce, PolarGrid as de, PolarRadiusAxis as ue, Radar as he, RadarChart as fe, RadialBar as pe, RadialBarChart as me, Rectangle as ge, ReferenceLine as Ce, ResponsiveContainer as xe, Sector as ve, XAxis as be, YAxis as ke } from "recharts";
4
+ import { Area as J, AreaChart as Q, Bar as U, BarChart as Z, CartesianGrid as K, Cell as ee, Label as re, Legend as te, Tooltip as ne, Customized as ae, LabelList as le, Line as oe, LineChart as se, Pie as ie, PieChart as ce, PolarAngleAxis as de, PolarGrid as ue, PolarRadiusAxis as he, Radar as fe, RadarChart as pe, RadialBar as me, RadialBarChart as ge, Rectangle as Ce, ReferenceLine as be, ResponsiveContainer as xe, Sector as ve, XAxis as ke, YAxis as Ne } from "recharts";
5
5
  import { cn as p } from "@brightlocal/ui-components/lib/utils";
6
- const $ = k.createContext(null);
6
+ const R = k.createContext(null);
7
7
  function P() {
8
- const n = k.useContext($);
9
- if (!n)
8
+ const r = k.useContext(R);
9
+ if (!r)
10
10
  throw new Error("useChart must be used within a <ChartContainer />");
11
- return n;
11
+ return r;
12
12
  }
13
- const S = k.forwardRef(
13
+ const j = k.forwardRef(
14
14
  ({
15
- id: n,
16
- className: r,
15
+ id: r,
16
+ className: t,
17
17
  children: l,
18
18
  config: e,
19
- dataHook: t,
19
+ dataHook: n,
20
20
  width: a,
21
21
  height: o,
22
22
  minWidth: d,
@@ -26,23 +26,23 @@ const S = k.forwardRef(
26
26
  trackingLabel: g,
27
27
  ...m
28
28
  }, C) => {
29
- const v = k.useId(), f = `chart-${n || v.replace(/:/g, "")}`;
30
- return /* @__PURE__ */ s($.Provider, { value: { config: e }, children: /* @__PURE__ */ x(
29
+ const x = k.useId(), f = `chart-${r || x.replace(/:/g, "")}`;
30
+ return /* @__PURE__ */ s(R.Provider, { value: { config: e }, children: /* @__PURE__ */ b(
31
31
  "div",
32
32
  {
33
33
  ref: C,
34
34
  className: p(
35
- "[&_.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 flex aspect-video justify-center text-xs [&_.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",
36
- r
35
+ "[&_.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 aspect-video 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",
36
+ t
37
37
  ),
38
38
  "data-chart": f,
39
- "data-hook": t,
39
+ "data-hook": n,
40
40
  "data-slot": "chart-container",
41
41
  "data-tracking-el": h,
42
42
  "data-tracking-label": g,
43
43
  ...m,
44
44
  children: [
45
- /* @__PURE__ */ s(j, { config: e, id: f }),
45
+ /* @__PURE__ */ s(T, { config: e, id: f }),
46
46
  /* @__PURE__ */ s(
47
47
  N.ResponsiveContainer,
48
48
  {
@@ -60,24 +60,24 @@ const S = k.forwardRef(
60
60
  ) });
61
61
  }
62
62
  );
63
- S.displayName = "ChartContainer";
64
- function j({ id: n, config: r }) {
65
- const l = Object.entries(r).filter(
63
+ j.displayName = "ChartContainer";
64
+ function T({ id: r, config: t }) {
65
+ const l = Object.entries(t).filter(
66
66
  ([, e]) => e.theme || e.color
67
67
  );
68
68
  return l.length ? /* @__PURE__ */ s(
69
69
  "style",
70
70
  {
71
71
  dangerouslySetInnerHTML: {
72
- __html: l.map(([e, t]) => {
73
- const a = typeof t.color == "string" ? t.color.replace(/^hsl\((.*)\)$/, "$1") : null;
72
+ __html: l.map(([e, n]) => {
73
+ const a = typeof n.color == "string" ? n.color.replace(/^hsl\((.*)\)$/, "$1") : null;
74
74
  return a ? `
75
- [data-chart=${n}] {
75
+ [data-chart=${r}] {
76
76
  --color-${e}: ${a};
77
77
  }
78
- ` : t.theme ? Object.entries(t.theme).map(
78
+ ` : n.theme ? Object.entries(n.theme).map(
79
79
  ([o, d]) => `
80
- .${o} [data-chart=${n}] {
80
+ .${o} [data-chart=${r}] {
81
81
  --color-${e}: ${d.replace(/^hsl\((.*)\)$/, "$1")};
82
82
  }
83
83
  `
@@ -88,16 +88,19 @@ function j({ id: n, config: r }) {
88
88
  }
89
89
  ) : null;
90
90
  }
91
- function T({ ...n }) {
92
- return /* @__PURE__ */ s(N.Tooltip, { ...n });
91
+ function $(r) {
92
+ return r == null || r === "" ? !1 : typeof r == "number" ? Number.isFinite(r) : !0;
93
93
  }
94
- T.displayName = "ChartTooltip";
95
- function A({
96
- active: n,
97
- payload: r,
94
+ function A({ ...r }) {
95
+ return /* @__PURE__ */ s(N.Tooltip, { ...r });
96
+ }
97
+ A.displayName = "ChartTooltip";
98
+ function W({
99
+ active: r,
100
+ payload: t,
98
101
  className: l,
99
102
  indicator: e = "dot",
100
- hideLabel: t = !1,
103
+ hideLabel: n = !1,
101
104
  hideIndicator: a = !1,
102
105
  label: o,
103
106
  labelFormatter: d,
@@ -107,38 +110,38 @@ function A({
107
110
  nameKey: g,
108
111
  labelKey: m
109
112
  }) {
110
- const { config: C } = P(), v = k.useMemo(() => {
111
- if (t || !r?.length)
113
+ const { config: C } = P(), x = k.useMemo(() => {
114
+ if (n || !t?.length)
112
115
  return null;
113
- const [c] = r;
116
+ const [c] = t;
114
117
  if (!c)
115
118
  return null;
116
- const y = `${m || c.dataKey || c.name || "value"}`, L = C[y], b = !m && typeof o == "string" ? C[o]?.label || o : L?.label;
117
- return d ? /* @__PURE__ */ s("div", { className: p("font-medium", i), children: d(b, r) }) : b ? /* @__PURE__ */ s("div", { className: p("font-medium", i), children: b }) : null;
119
+ const L = `${m || c.dataKey || c.name || "value"}`, y = C[L], v = !m && typeof o == "string" ? C[o]?.label || o : y?.label;
120
+ return d ? /* @__PURE__ */ s("div", { className: p("font-medium", i), children: d(v, t) }) : v ? /* @__PURE__ */ s("div", { className: p("font-medium", i), children: v }) : null;
118
121
  }, [
119
122
  o,
120
123
  d,
121
- r,
122
124
  t,
125
+ n,
123
126
  i,
124
127
  C,
125
128
  m
126
129
  ]);
127
- if (!n || !r?.length)
130
+ if (!r || !t?.length)
128
131
  return null;
129
- const f = r.length === 1 && e !== "dot";
130
- return /* @__PURE__ */ x(
132
+ const f = t.length === 1 && e !== "dot";
133
+ return /* @__PURE__ */ b(
131
134
  "div",
132
135
  {
133
136
  className: p(
134
- "border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",
137
+ "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",
135
138
  l
136
139
  ),
137
140
  "data-slot": "chart-tooltip-content",
138
141
  children: [
139
- f ? null : v,
140
- /* @__PURE__ */ s("div", { className: "grid gap-1.5", children: r.map((c, y) => {
141
- const L = `${g || c.name || c.dataKey || "value"}`, b = C[L], _ = h || c.color || c.payload.fill || `var(--color-${L})`;
142
+ f ? null : x,
143
+ /* @__PURE__ */ s("div", { className: "grid gap-1.5", children: t.map((c, L) => {
144
+ const y = `${g || c.name || c.dataKey || "value"}`, v = C[y], _ = h || c.color || c.payload.fill || `var(--color-${y})`;
142
145
  return /* @__PURE__ */ s(
143
146
  "div",
144
147
  {
@@ -146,8 +149,8 @@ function A({
146
149
  "[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2",
147
150
  e === "dot" && "items-center"
148
151
  ),
149
- children: u && c?.value !== void 0 && c.name ? u(c.value, c.name, c, y, r) : /* @__PURE__ */ x(w, { children: [
150
- b?.icon && !a ? /* @__PURE__ */ s(b.icon, { size: 10 }) : !a && /* @__PURE__ */ s(
152
+ children: u && $(c?.value) && c.name ? u(c.value, c.name, c, L, t) : /* @__PURE__ */ b(S, { children: [
153
+ v?.icon && !a ? /* @__PURE__ */ s(v.icon, { size: 10 }) : !a && /* @__PURE__ */ s(
151
154
  "div",
152
155
  {
153
156
  className: p("shrink-0 rounded-[2px]", {
@@ -162,7 +165,7 @@ function A({
162
165
  }
163
166
  }
164
167
  ),
165
- /* @__PURE__ */ x(
168
+ /* @__PURE__ */ b(
166
169
  "div",
167
170
  {
168
171
  className: p(
@@ -170,11 +173,11 @@ function A({
170
173
  f ? "items-end" : "items-center"
171
174
  ),
172
175
  children: [
173
- /* @__PURE__ */ x("div", { className: "grid gap-1.5", children: [
174
- f ? v : null,
175
- /* @__PURE__ */ s("span", { className: "text-muted-foreground", children: b?.label || c.name })
176
+ /* @__PURE__ */ b("div", { className: "grid gap-1.5", children: [
177
+ f ? x : null,
178
+ /* @__PURE__ */ s("span", { className: "text-muted-foreground", children: v?.label || c.name })
176
179
  ] }),
177
- c.value && /* @__PURE__ */ s("span", { className: "text-foreground font-mono font-medium tabular-nums", children: typeof c.value == "number" ? c.value.toLocaleString() : c.value })
180
+ $(c.value) && /* @__PURE__ */ s("span", { className: "text-foreground tabular-nums", children: typeof c.value == "number" ? c.value.toLocaleString() : c.value })
178
181
  ]
179
182
  }
180
183
  )
@@ -187,17 +190,17 @@ function A({
187
190
  }
188
191
  );
189
192
  }
190
- A.displayName = "ChartTooltipContent";
191
- function W({ ...n }) {
192
- return /* @__PURE__ */ s(N.Legend, { ...n });
193
+ W.displayName = "ChartTooltipContent";
194
+ function D({ ...r }) {
195
+ return /* @__PURE__ */ s(N.Legend, { ...r });
193
196
  }
194
- W.displayName = "ChartLegend";
195
- function D({
196
- className: n,
197
- hideIcon: r = !1,
197
+ D.displayName = "ChartLegend";
198
+ function G({
199
+ className: r,
200
+ hideIcon: t = !1,
198
201
  payload: l,
199
202
  verticalAlign: e = "bottom",
200
- nameKey: t
203
+ nameKey: n
201
204
  }) {
202
205
  const { config: a } = P();
203
206
  return l?.length ? /* @__PURE__ */ s(
@@ -206,19 +209,19 @@ function D({
206
209
  className: p(
207
210
  "flex items-center justify-center gap-4",
208
211
  e === "top" ? "pb-4" : "pt-4",
209
- n
212
+ r
210
213
  ),
211
214
  "data-slot": "chart-legend-content",
212
215
  children: l.map((o) => {
213
- const d = `${t || o.dataKey || "value"}`, i = a[d];
214
- return /* @__PURE__ */ x(
216
+ const d = `${n || o.dataKey || "value"}`, i = a[d];
217
+ return /* @__PURE__ */ b(
215
218
  "div",
216
219
  {
217
220
  className: p(
218
221
  "[&>svg]:text-muted-foreground flex items-center gap-1.5"
219
222
  ),
220
223
  children: [
221
- i?.icon && !r ? /* @__PURE__ */ s(i.icon, { size: 12 }) : /* @__PURE__ */ s(
224
+ i?.icon && !t ? /* @__PURE__ */ s(i.icon, { size: 12 }) : /* @__PURE__ */ s(
222
225
  "div",
223
226
  {
224
227
  className: "h-2 w-2 shrink-0 rounded-[2px]",
@@ -236,30 +239,30 @@ function D({
236
239
  }
237
240
  ) : null;
238
241
  }
239
- D.displayName = "ChartLegendContent";
240
- function R({
241
- colorKey: n,
242
- color: r,
242
+ G.displayName = "ChartLegendContent";
243
+ function w({
244
+ colorKey: r,
245
+ color: t,
243
246
  fill: l,
244
247
  stroke: e,
245
- payload: t
248
+ payload: n
246
249
  }) {
247
- return (n && typeof t?.[n] == "string" ? t[n] : void 0) ?? r ?? l ?? e ?? "currentColor";
250
+ return (r && typeof n?.[r] == "string" ? n[r] : void 0) ?? t ?? l ?? e ?? "currentColor";
248
251
  }
249
- function G({
250
- size: n = 8,
251
- custom: r = !1,
252
+ function M({
253
+ size: r = 8,
254
+ custom: t = !1,
252
255
  color: l,
253
256
  colorKey: e,
254
- cx: t,
257
+ cx: n,
255
258
  cy: a,
256
259
  stroke: o,
257
260
  fill: d,
258
261
  payload: i
259
262
  }) {
260
- if (t == null || a == null)
263
+ if (n == null || a == null)
261
264
  return null;
262
- const u = R({
265
+ const u = w({
263
266
  colorKey: e,
264
267
  color: l,
265
268
  fill: d,
@@ -269,33 +272,33 @@ function G({
269
272
  return /* @__PURE__ */ s(
270
273
  "circle",
271
274
  {
272
- className: r ? "fill-background" : void 0,
273
- cx: t,
275
+ className: t ? "fill-background" : void 0,
276
+ cx: n,
274
277
  cy: a,
275
278
  "data-slot": "chart-dot",
276
- fill: r ? void 0 : u,
277
- r: n / 2,
278
- stroke: r ? u : "none",
279
- strokeWidth: r ? 2 : void 0
279
+ fill: t ? void 0 : u,
280
+ r: r / 2,
281
+ stroke: t ? u : "none",
282
+ strokeWidth: t ? 2 : void 0
280
283
  }
281
284
  );
282
285
  }
283
- G.displayName = "ChartDot";
284
- function M({
285
- size: n = 6,
286
- color: r,
286
+ M.displayName = "ChartDot";
287
+ function z({
288
+ size: r = 6,
289
+ color: t,
287
290
  colorKey: l,
288
291
  cx: e,
289
- cy: t,
292
+ cy: n,
290
293
  stroke: a,
291
294
  fill: o,
292
295
  payload: d
293
296
  }) {
294
- if (e == null || t == null)
297
+ if (e == null || n == null)
295
298
  return null;
296
- const i = R({
299
+ const i = w({
297
300
  colorKey: l,
298
- color: r,
301
+ color: t,
299
302
  fill: o,
300
303
  stroke: a,
301
304
  payload: d
@@ -305,27 +308,27 @@ function M({
305
308
  {
306
309
  className: "stroke-background",
307
310
  cx: e,
308
- cy: t,
311
+ cy: n,
309
312
  "data-slot": "chart-dot-on-stroke",
310
313
  fill: i,
311
- r: n / 2,
314
+ r: r / 2,
312
315
  strokeWidth: 2
313
316
  }
314
317
  );
315
318
  }
316
- M.displayName = "ChartDotOnStroke";
317
- function z({
318
- type: n = "default",
319
- filled: r = !1,
319
+ z.displayName = "ChartDotOnStroke";
320
+ function I({
321
+ type: r = "default",
322
+ filled: t = !1,
320
323
  fillColor: l = "var(--chart-teal)",
321
324
  fillOpacity: e = 0.2,
322
- boundaryOnly: t = !1,
325
+ boundaryOnly: n = !1,
323
326
  radialLines: a,
324
327
  className: o,
325
328
  ...d
326
329
  }) {
327
- const i = n === "circle" ? "circle" : "polygon", h = t ? `[&_.${i === "circle" ? "recharts-polar-grid-concentric-circle" : "recharts-polar-grid-concentric-polygon"}:not(:last-of-type)]:stroke-transparent` : void 0;
328
- return r ? /* @__PURE__ */ s(
330
+ const i = r === "circle" ? "circle" : "polygon", h = n ? `[&_.${i === "circle" ? "recharts-polar-grid-concentric-circle" : "recharts-polar-grid-concentric-polygon"}:not(:last-of-type)]:stroke-transparent` : void 0;
331
+ return t ? /* @__PURE__ */ s(
329
332
  N.PolarGrid,
330
333
  {
331
334
  className: p(h, o),
@@ -346,35 +349,35 @@ function z({
346
349
  }
347
350
  );
348
351
  }
349
- z.displayName = "ChartRadarGrid";
350
- function I({
351
- type: n = "default",
352
- data: r,
352
+ I.displayName = "ChartRadarGrid";
353
+ function O({
354
+ type: r = "default",
355
+ data: t,
353
356
  primaryKey: l,
354
357
  secondaryKey: e,
355
- x: t,
358
+ x: n,
356
359
  y: a,
357
360
  textAnchor: o,
358
361
  payload: d,
359
362
  index: i
360
363
  }) {
361
- const u = r != null && i != null ? r[i] : void 0, h = u && l != null ? u[l] : void 0, g = u && e != null ? u[e] : void 0, m = n === "default" && h != null ? g != null ? `${String(h)}/${String(g)}` : String(h) : null;
362
- return /* @__PURE__ */ x(
364
+ const u = t != null && i != null ? t[i] : void 0, h = u && l != null ? u[l] : void 0, g = u && e != null ? u[e] : void 0, m = r === "default" && h != null ? g != null ? `${String(h)}/${String(g)}` : String(h) : null;
365
+ return /* @__PURE__ */ b(
363
366
  "text",
364
367
  {
365
- className: "text-xs",
368
+ className: "text-body-xs",
366
369
  "data-slot": "chart-radar-label-wrapper",
367
370
  textAnchor: o,
368
- x: t,
371
+ x: n,
369
372
  y: a,
370
373
  children: [
371
- m != null && /* @__PURE__ */ s("tspan", { className: "fill-card-foreground", dy: "-0.5em", x: t, children: m }),
374
+ m != null && /* @__PURE__ */ s("tspan", { className: "fill-card-foreground", dy: "-0.5em", x: n, children: m }),
372
375
  /* @__PURE__ */ s(
373
376
  "tspan",
374
377
  {
375
378
  className: "fill-muted-foreground",
376
379
  dy: m != null ? "1.2em" : void 0,
377
- x: t,
380
+ x: n,
378
381
  children: d?.value
379
382
  }
380
383
  )
@@ -382,26 +385,26 @@ function I({
382
385
  }
383
386
  );
384
387
  }
385
- I.displayName = "ChartRadarLabelWrapper";
386
- function O({
387
- nameKey: n,
388
- config: r,
388
+ O.displayName = "ChartRadarLabelWrapper";
389
+ function B({
390
+ nameKey: r,
391
+ config: t,
389
392
  radiusRatio: l = 0.5,
390
393
  cx: e,
391
- cy: t,
394
+ cy: n,
392
395
  midAngle: a = 0,
393
396
  innerRadius: o = 0,
394
397
  outerRadius: d = 0,
395
398
  payload: i,
396
399
  name: u
397
400
  }) {
398
- if (e == null || t == null)
401
+ if (e == null || n == null)
399
402
  return null;
400
- const h = Math.PI / 180, g = o + (d - o) * l, m = e + g * Math.cos(-a * h), C = t + g * Math.sin(-a * h), v = n != null && i != null ? i[n] : void 0, f = v != null ? String(v) : u, c = f != null ? r?.[f]?.label ?? f : f;
403
+ const h = Math.PI / 180, g = o + (d - o) * l, m = e + g * Math.cos(-a * h), C = n + g * Math.sin(-a * h), x = r != null && i != null ? i[r] : void 0, f = x != null ? String(x) : u, c = f != null ? t?.[f]?.label ?? f : f;
401
404
  return /* @__PURE__ */ s(
402
405
  "text",
403
406
  {
404
- className: "fill-foreground text-xs",
407
+ className: "fill-foreground text-body-xs",
405
408
  "data-slot": "chart-pie-label-list",
406
409
  dominantBaseline: "middle",
407
410
  textAnchor: "middle",
@@ -411,121 +414,118 @@ function O({
411
414
  }
412
415
  );
413
416
  }
414
- O.displayName = "ChartPieLabelList";
415
- function B({
416
- valueKey: n,
417
- x: r,
417
+ B.displayName = "ChartPieLabelList";
418
+ function V({
419
+ valueKey: r,
420
+ x: t,
418
421
  y: l,
419
422
  textAnchor: e,
420
- payload: t,
423
+ payload: n,
421
424
  value: a
422
425
  }) {
423
- if (r == null || l == null)
426
+ if (t == null || l == null)
424
427
  return null;
425
- const o = n != null && t != null ? t[n] : a;
428
+ const o = r != null && n != null ? n[r] : a;
426
429
  return /* @__PURE__ */ s(
427
430
  "text",
428
431
  {
429
- className: "fill-foreground text-xs",
432
+ className: "fill-foreground text-body-xs",
430
433
  "data-slot": "chart-pie-label-wrapper",
431
434
  dominantBaseline: "middle",
432
435
  textAnchor: e,
433
- x: r,
436
+ x: t,
434
437
  y: l,
435
438
  children: o
436
439
  }
437
440
  );
438
441
  }
439
- B.displayName = "ChartPieLabelWrapper";
440
- const V = {
441
- "2xl": "text-2xl leading-8",
442
- "3xl": "text-3xl",
443
- "4xl": "text-4xl leading-10"
442
+ V.displayName = "ChartPieLabelWrapper";
443
+ const q = {
444
+ "2xl": "text-metric",
445
+ "3xl": "font-sans text-3xl font-semibold",
446
+ "4xl": "font-sans text-4xl font-semibold"
444
447
  };
445
- function q({
446
- primary: n,
447
- secondary: r,
448
+ function E({
449
+ primary: r,
450
+ secondary: t,
448
451
  size: l = "3xl",
449
452
  viewBox: e
450
453
  }) {
451
454
  if (e == null || typeof e != "object" || !("cx" in e) || !("cy" in e))
452
455
  return null;
453
- const { cx: t, cy: a } = e;
454
- return /* @__PURE__ */ x(
456
+ const { cx: n, cy: a } = e;
457
+ return /* @__PURE__ */ b(
455
458
  "text",
456
459
  {
457
460
  "data-slot": "chart-center-label",
458
461
  dominantBaseline: "middle",
459
462
  textAnchor: "middle",
460
- x: t,
463
+ x: n,
461
464
  y: a,
462
465
  children: [
463
466
  /* @__PURE__ */ s(
464
467
  "tspan",
465
468
  {
466
- className: p(
467
- "fill-foreground font-sans font-bold",
468
- V[l]
469
- ),
470
- x: t,
469
+ className: p("fill-foreground", q[l]),
470
+ x: n,
471
471
  y: a,
472
- children: n
472
+ children: r
473
473
  }
474
474
  ),
475
- r != null && /* @__PURE__ */ s(
475
+ t != null && /* @__PURE__ */ s(
476
476
  "tspan",
477
477
  {
478
- className: "fill-muted-foreground font-sans text-xs font-normal",
479
- x: t,
478
+ className: "fill-muted-foreground text-body-xs",
479
+ x: n,
480
480
  y: a + 24,
481
- children: r
481
+ children: t
482
482
  }
483
483
  )
484
484
  ]
485
485
  }
486
486
  );
487
487
  }
488
- q.displayName = "ChartCenterLabel";
488
+ E.displayName = "ChartCenterLabel";
489
489
  export {
490
490
  J as Area,
491
491
  Q as AreaChart,
492
492
  U as Bar,
493
493
  Z as BarChart,
494
- F as CartesianGrid,
495
- K as Cell,
496
- q as ChartCenterLabel,
497
- S as ChartContainer,
498
- G as ChartDot,
499
- M as ChartDotOnStroke,
500
- ee as ChartLabel,
501
- W as ChartLegend,
502
- D as ChartLegendContent,
503
- O as ChartPieLabelList,
504
- B as ChartPieLabelWrapper,
505
- z as ChartRadarGrid,
506
- I as ChartRadarLabelWrapper,
507
- j as ChartStyle,
508
- T as ChartTooltip,
509
- A as ChartTooltipContent,
510
- re as ChartsLegend,
511
- te as ChartsTooltip,
512
- ne as Customized,
513
- ae as LabelList,
514
- le as Line,
515
- oe as LineChart,
516
- se as Pie,
517
- ie as PieChart,
518
- ce as PolarAngleAxis,
519
- de as PolarGrid,
520
- ue as PolarRadiusAxis,
521
- he as Radar,
522
- fe as RadarChart,
523
- pe as RadialBar,
524
- me as RadialBarChart,
525
- ge as Rectangle,
526
- Ce as ReferenceLine,
494
+ K as CartesianGrid,
495
+ ee as Cell,
496
+ E as ChartCenterLabel,
497
+ j as ChartContainer,
498
+ M as ChartDot,
499
+ z as ChartDotOnStroke,
500
+ re as ChartLabel,
501
+ D as ChartLegend,
502
+ G as ChartLegendContent,
503
+ B as ChartPieLabelList,
504
+ V as ChartPieLabelWrapper,
505
+ I as ChartRadarGrid,
506
+ O as ChartRadarLabelWrapper,
507
+ T as ChartStyle,
508
+ A as ChartTooltip,
509
+ W as ChartTooltipContent,
510
+ te as ChartsLegend,
511
+ ne as ChartsTooltip,
512
+ ae as Customized,
513
+ le as LabelList,
514
+ oe as Line,
515
+ se as LineChart,
516
+ ie as Pie,
517
+ ce as PieChart,
518
+ de as PolarAngleAxis,
519
+ ue as PolarGrid,
520
+ he as PolarRadiusAxis,
521
+ fe as Radar,
522
+ pe as RadarChart,
523
+ me as RadialBar,
524
+ ge as RadialBarChart,
525
+ Ce as Rectangle,
526
+ be as ReferenceLine,
527
527
  xe as ResponsiveContainer,
528
528
  ve as Sector,
529
- be as XAxis,
530
- ke as YAxis
529
+ ke as XAxis,
530
+ Ne as YAxis
531
531
  };