@acronis-platform/ui-react 2.0.0 → 4.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 (243) hide show
  1. package/dist/components/ui/accordion-container/accordion-container.js +144 -0
  2. package/dist/components/ui/accordion-container/accordion-container.js.map +1 -0
  3. package/dist/components/ui/app-shell-chat/app-shell-chat.js.map +1 -1
  4. package/dist/components/ui/area-chart/area-chart.js +141 -139
  5. package/dist/components/ui/area-chart/area-chart.js.map +1 -1
  6. package/dist/components/ui/avatar/avatar.js +33 -22
  7. package/dist/components/ui/avatar/avatar.js.map +1 -1
  8. package/dist/components/ui/bar-chart/bar-chart.js +295 -293
  9. package/dist/components/ui/bar-chart/bar-chart.js.map +1 -1
  10. package/dist/components/ui/card/card.js +150 -74
  11. package/dist/components/ui/card/card.js.map +1 -1
  12. package/dist/components/ui/card-section/card-section.js +111 -0
  13. package/dist/components/ui/card-section/card-section.js.map +1 -0
  14. package/dist/components/ui/category-bar/category-bar.js +109 -93
  15. package/dist/components/ui/category-bar/category-bar.js.map +1 -1
  16. package/dist/components/ui/chart/chart-palette.js +113 -0
  17. package/dist/components/ui/chart/chart-palette.js.map +1 -0
  18. package/dist/components/ui/chart/chart.js +176 -129
  19. package/dist/components/ui/chart/chart.js.map +1 -1
  20. package/dist/components/ui/chart-state/chart-state-illustrations.js +310 -0
  21. package/dist/components/ui/chart-state/chart-state-illustrations.js.map +1 -0
  22. package/dist/components/ui/chart-state/chart-state.js +48 -34
  23. package/dist/components/ui/chart-state/chart-state.js.map +1 -1
  24. package/dist/components/ui/chart-widget/chart-widget.js +87 -0
  25. package/dist/components/ui/chart-widget/chart-widget.js.map +1 -0
  26. package/dist/components/ui/composed-chart/composed-chart.js +117 -115
  27. package/dist/components/ui/composed-chart/composed-chart.js.map +1 -1
  28. package/dist/components/ui/confidence-cone/confidence-cone.js +166 -158
  29. package/dist/components/ui/confidence-cone/confidence-cone.js.map +1 -1
  30. package/dist/components/ui/data-table/data-table.js +4 -2
  31. package/dist/components/ui/data-table/data-table.js.map +1 -1
  32. package/dist/components/ui/empty-overlay/empty-overlay.js +49 -0
  33. package/dist/components/ui/empty-overlay/empty-overlay.js.map +1 -0
  34. package/dist/components/ui/funnel-chart/funnel-chart.js +162 -161
  35. package/dist/components/ui/funnel-chart/funnel-chart.js.map +1 -1
  36. package/dist/components/ui/histogram/histogram.js +94 -92
  37. package/dist/components/ui/histogram/histogram.js.map +1 -1
  38. package/dist/components/ui/input/input.js.map +1 -1
  39. package/dist/components/ui/label/label.js +2 -9
  40. package/dist/components/ui/label/label.js.map +1 -1
  41. package/dist/components/ui/line-chart/line-chart.js +143 -141
  42. package/dist/components/ui/line-chart/line-chart.js.map +1 -1
  43. package/dist/components/ui/metric/metric.js +74 -185
  44. package/dist/components/ui/metric/metric.js.map +1 -1
  45. package/dist/components/ui/page-content/page-content.js.map +1 -1
  46. package/dist/components/ui/pie-chart/pie-chart.js +201 -195
  47. package/dist/components/ui/pie-chart/pie-chart.js.map +1 -1
  48. package/dist/components/ui/radar-chart/radar-chart.js +133 -131
  49. package/dist/components/ui/radar-chart/radar-chart.js.map +1 -1
  50. package/dist/components/ui/radial-bar-chart/radial-bar-chart.js +297 -265
  51. package/dist/components/ui/radial-bar-chart/radial-bar-chart.js.map +1 -1
  52. package/dist/components/ui/sankey-chart/sankey-chart.js +123 -101
  53. package/dist/components/ui/sankey-chart/sankey-chart.js.map +1 -1
  54. package/dist/components/ui/scatter-chart/scatter-chart.js +76 -74
  55. package/dist/components/ui/scatter-chart/scatter-chart.js.map +1 -1
  56. package/dist/components/ui/section/section.js +157 -31
  57. package/dist/components/ui/section/section.js.map +1 -1
  58. package/dist/components/ui/stepper/stepper.js +24 -24
  59. package/dist/components/ui/stepper/stepper.js.map +1 -1
  60. package/dist/components/ui/stepper-item/stepper-item.js +43 -24
  61. package/dist/components/ui/stepper-item/stepper-item.js.map +1 -1
  62. package/dist/components/ui/table/table.js +27 -27
  63. package/dist/components/ui/table/table.js.map +1 -1
  64. package/dist/components/ui/treemap/treemap.js +133 -124
  65. package/dist/components/ui/treemap/treemap.js.map +1 -1
  66. package/dist/components/ui/trend-indicator/trend-indicator.js +34 -69
  67. package/dist/components/ui/trend-indicator/trend-indicator.js.map +1 -1
  68. package/dist/components/ui/wizard/wizard.js +59 -0
  69. package/dist/components/ui/wizard/wizard.js.map +1 -0
  70. package/dist/hooks/use-wizard.js +75 -0
  71. package/dist/hooks/use-wizard.js.map +1 -0
  72. package/dist/index.js +540 -525
  73. package/dist/index.js.map +1 -1
  74. package/dist/llms/accordion-container.md +181 -0
  75. package/dist/llms/accordion.md +124 -0
  76. package/dist/llms/alert.md +225 -0
  77. package/dist/llms/app-shell-chat.md +415 -0
  78. package/dist/llms/area-chart.md +355 -0
  79. package/dist/llms/avatar.md +208 -0
  80. package/dist/llms/bar-chart.md +406 -0
  81. package/dist/llms/breadcrumb.md +326 -0
  82. package/dist/llms/button-group.md +298 -0
  83. package/dist/llms/button-icon-input.md +142 -0
  84. package/dist/llms/button-icon-menu.md +209 -0
  85. package/dist/llms/button-icon.md +128 -0
  86. package/dist/llms/button-menu.md +172 -0
  87. package/dist/llms/button.md +185 -0
  88. package/dist/llms/calendar-panel.md +733 -0
  89. package/dist/llms/calendar.md +188 -0
  90. package/dist/llms/card-filter.md +214 -0
  91. package/dist/llms/card-section.md +293 -0
  92. package/dist/llms/card.md +447 -0
  93. package/dist/llms/carousel-dialog.md +156 -0
  94. package/dist/llms/category-bar.md +193 -0
  95. package/dist/llms/chart-state.md +190 -0
  96. package/dist/llms/chart-widget.md +209 -0
  97. package/dist/llms/chart.md +182 -0
  98. package/dist/llms/checkbox.md +257 -0
  99. package/dist/llms/chip.md +195 -0
  100. package/dist/llms/combobox.md +164 -0
  101. package/dist/llms/composed-chart.md +508 -0
  102. package/dist/llms/confidence-cone.md +277 -0
  103. package/dist/llms/data-table.md +474 -0
  104. package/dist/llms/date-range-picker.md +272 -0
  105. package/dist/llms/description-list.md +131 -0
  106. package/dist/llms/dialog-footer-carousel.md +147 -0
  107. package/dist/llms/dialog-footer-default.md +142 -0
  108. package/dist/llms/dialog-root.md +246 -0
  109. package/dist/llms/dialog-welcome.md +223 -0
  110. package/dist/llms/dialog.md +403 -0
  111. package/dist/llms/dropdown-menu.md +193 -0
  112. package/dist/llms/empty-overlay.md +146 -0
  113. package/dist/llms/empty.md +156 -0
  114. package/dist/llms/field.md +185 -0
  115. package/dist/llms/filter-cards.md +157 -0
  116. package/dist/llms/filter-chips.md +323 -0
  117. package/dist/llms/filter-search.md +512 -0
  118. package/dist/llms/form.md +154 -0
  119. package/dist/llms/funnel-chart.md +333 -0
  120. package/dist/llms/grid.md +80 -0
  121. package/dist/llms/histogram.md +190 -0
  122. package/dist/llms/input-date-picker.md +203 -0
  123. package/dist/llms/input-otp.md +173 -0
  124. package/dist/llms/input-password.md +197 -0
  125. package/dist/llms/input-search.md +170 -0
  126. package/dist/llms/input-select.md +278 -0
  127. package/dist/llms/input-text-area.md +271 -0
  128. package/dist/llms/input-text.md +192 -0
  129. package/dist/llms/line-chart.md +369 -0
  130. package/dist/llms/link.md +209 -0
  131. package/dist/llms/loading.md +130 -0
  132. package/dist/llms/meter.md +177 -0
  133. package/dist/llms/metric.md +204 -0
  134. package/dist/llms/number-field.md +122 -0
  135. package/dist/llms/page-content.md +69 -0
  136. package/dist/llms/page-header.md +182 -0
  137. package/dist/llms/pagination.md +133 -0
  138. package/dist/llms/pie-chart.md +307 -0
  139. package/dist/llms/popover.md +252 -0
  140. package/dist/llms/progress-circle.md +126 -0
  141. package/dist/llms/progress.md +111 -0
  142. package/dist/llms/radar-chart.md +316 -0
  143. package/dist/llms/radial-bar-chart.md +319 -0
  144. package/dist/llms/radio.md +255 -0
  145. package/dist/llms/resizable.md +195 -0
  146. package/dist/llms/sankey-chart.md +208 -0
  147. package/dist/llms/scatter-chart.md +239 -0
  148. package/dist/llms/scroll-area.md +183 -0
  149. package/dist/llms/section.md +401 -0
  150. package/dist/llms/select.md +210 -0
  151. package/dist/llms/separator.md +87 -0
  152. package/dist/llms/sheet.md +202 -0
  153. package/dist/llms/sidebar-primary.md +360 -0
  154. package/dist/llms/sidebar-secondary.md +417 -0
  155. package/dist/llms/skeleton.md +81 -0
  156. package/dist/llms/slider.md +97 -0
  157. package/dist/llms/spinner.md +100 -0
  158. package/dist/llms/stack.md +80 -0
  159. package/dist/llms/stepper-item.md +309 -0
  160. package/dist/llms/stepper.md +251 -0
  161. package/dist/llms/switch.md +140 -0
  162. package/dist/llms/table.md +436 -0
  163. package/dist/llms/tabs.md +197 -0
  164. package/dist/llms/tag.md +139 -0
  165. package/dist/llms/timeline.md +361 -0
  166. package/dist/llms/timer.md +259 -0
  167. package/dist/llms/toast.md +241 -0
  168. package/dist/llms/toggle-group.md +121 -0
  169. package/dist/llms/toolbar.md +453 -0
  170. package/dist/llms/tooltip.md +164 -0
  171. package/dist/llms/treemap.md +254 -0
  172. package/dist/llms/trend-indicator.md +132 -0
  173. package/dist/llms/widget-placeholder.md +169 -0
  174. package/dist/llms/wizard.md +412 -0
  175. package/dist/llms.txt +142 -0
  176. package/dist/react.js +540 -525
  177. package/dist/react.js.map +1 -1
  178. package/dist/src/components/ui/accordion-container/accordion-container.d.ts +44 -0
  179. package/dist/src/components/ui/accordion-container/index.d.ts +1 -0
  180. package/dist/src/components/ui/area-chart/area-chart.d.ts +9 -4
  181. package/dist/src/components/ui/avatar/avatar.d.ts +27 -8
  182. package/dist/src/components/ui/bar-chart/bar-chart.d.ts +9 -4
  183. package/dist/src/components/ui/button/button.d.ts +1 -1
  184. package/dist/src/components/ui/card/card.d.ts +69 -8
  185. package/dist/src/components/ui/card/index.d.ts +1 -1
  186. package/dist/src/components/ui/card-section/card-section.d.ts +50 -0
  187. package/dist/src/components/ui/card-section/index.d.ts +1 -0
  188. package/dist/src/components/ui/category-bar/category-bar.d.ts +10 -4
  189. package/dist/src/components/ui/chart/__stories__/palette-control.d.ts +48 -0
  190. package/dist/src/components/ui/chart/__tests__/chart-palette.test.d.ts +1 -0
  191. package/dist/src/components/ui/chart/chart-palette.d.ts +128 -0
  192. package/dist/src/components/ui/chart/chart.d.ts +66 -15
  193. package/dist/src/components/ui/chart/index.d.ts +4 -2
  194. package/dist/src/components/ui/chart-state/chart-state-illustrations.d.ts +6 -0
  195. package/dist/src/components/ui/chart-state/chart-state.d.ts +13 -2
  196. package/dist/src/components/ui/chart-state/index.d.ts +1 -0
  197. package/dist/src/components/ui/chart-widget/chart-widget.d.ts +64 -0
  198. package/dist/src/components/ui/chart-widget/index.d.ts +1 -0
  199. package/dist/src/components/ui/composed-chart/composed-chart.d.ts +12 -7
  200. package/dist/src/components/ui/confidence-cone/confidence-cone.d.ts +10 -5
  201. package/dist/src/components/ui/dialog/dialog.d.ts +1 -1
  202. package/dist/src/components/ui/empty-overlay/empty-overlay.d.ts +20 -0
  203. package/dist/src/components/ui/empty-overlay/index.d.ts +2 -0
  204. package/dist/src/components/ui/funnel-chart/funnel-chart.d.ts +11 -5
  205. package/dist/src/components/ui/grid/grid.d.ts +1 -1
  206. package/dist/src/components/ui/histogram/histogram.d.ts +10 -4
  207. package/dist/src/components/ui/label/index.d.ts +1 -1
  208. package/dist/src/components/ui/label/label.d.ts +1 -5
  209. package/dist/src/components/ui/line-chart/line-chart.d.ts +9 -4
  210. package/dist/src/components/ui/metric/metric.d.ts +13 -14
  211. package/dist/src/components/ui/pie-chart/pie-chart.d.ts +17 -8
  212. package/dist/src/components/ui/radar-chart/radar-chart.d.ts +10 -5
  213. package/dist/src/components/ui/radial-bar-chart/radial-bar-chart.d.ts +17 -6
  214. package/dist/src/components/ui/sankey-chart/sankey-chart.d.ts +10 -5
  215. package/dist/src/components/ui/scatter-chart/scatter-chart.d.ts +10 -5
  216. package/dist/src/components/ui/section/index.d.ts +1 -1
  217. package/dist/src/components/ui/section/section.d.ts +75 -6
  218. package/dist/src/components/ui/sheet/sheet.d.ts +1 -1
  219. package/dist/src/components/ui/stack/stack.d.ts +1 -1
  220. package/dist/src/components/ui/stepper-item/stepper-item.d.ts +6 -5
  221. package/dist/src/components/ui/tag/tag.d.ts +1 -1
  222. package/dist/src/components/ui/treemap/treemap.d.ts +11 -5
  223. package/dist/src/components/ui/trend-indicator/trend-indicator.d.ts +3 -7
  224. package/dist/src/components/ui/wizard/index.d.ts +1 -0
  225. package/dist/src/components/ui/wizard/wizard.d.ts +6 -0
  226. package/dist/src/hooks/index.d.ts +1 -0
  227. package/dist/src/hooks/use-wizard.d.ts +80 -0
  228. package/dist/src/index.d.ts +5 -3
  229. package/dist/ui-react.css +1 -1
  230. package/package.json +12 -6
  231. package/dist/components/ui/app-shell/app-shell.js +0 -75
  232. package/dist/components/ui/app-shell/app-shell.js.map +0 -1
  233. package/dist/components/ui/auth-layout/auth-layout.js +0 -56
  234. package/dist/components/ui/auth-layout/auth-layout.js.map +0 -1
  235. package/dist/components/ui/collapsible/collapsible.js +0 -22
  236. package/dist/components/ui/collapsible/collapsible.js.map +0 -1
  237. package/dist/src/components/ui/app-shell/app-shell.d.ts +0 -8
  238. package/dist/src/components/ui/app-shell/index.d.ts +0 -1
  239. package/dist/src/components/ui/auth-layout/auth-layout.d.ts +0 -6
  240. package/dist/src/components/ui/auth-layout/index.d.ts +0 -1
  241. package/dist/src/components/ui/collapsible/collapsible.d.ts +0 -5
  242. package/dist/src/components/ui/collapsible/index.d.ts +0 -1
  243. package/dist/src/components/ui/label/label.docs.d.ts +0 -10
@@ -1,11 +1,11 @@
1
- import { jsx as i, jsxs as g, Fragment as _ } from "react/jsx-runtime";
2
- import * as T from "react";
3
- import { cva as Qe } from "../../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js";
4
- import { Text as Ke, BarChart as et, CartesianGrid as tt, Brush as rt, XAxis as de, YAxis as he, LabelList as ot, Bar as fe, ReferenceArea as nt, ReferenceLine as it, Cell as lt, Rectangle as j } from "recharts";
1
+ import { jsx as i, jsxs as p, Fragment as _ } from "react/jsx-runtime";
2
+ import * as k from "react";
3
+ import { cva as Ke } from "../../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js";
4
+ import { Text as et, BarChart as tt, CartesianGrid as rt, Brush as ot, XAxis as de, YAxis as he, LabelList as nt, Bar as fe, ReferenceArea as it, ReferenceLine as lt, Cell as at, Rectangle as j } from "recharts";
5
5
  import { cn as ue } from "../../../lib/utils.js";
6
- import { resolveAnimation as at, resolveCartesianLabelPosition as st, resolveCategoryRange as ve, resolveBrushProps as ct, resolveRotatedTickAnchor as ge, CHART_LABEL_FONT_SIZE as dt, resolveLabelFillClass as ht, toLabelFormatter as ft, resolveChartReferenceValue as ut, resolveReferenceLineProps as vt, resolveXAxisTitle as gt, resolveXAxisHeight as pt, resolveAxisDomain as mt, resolveYAxisTitle as $t, toReferenceLineList as Ct } from "../chart/chart-format.js";
7
- import { ChartContainer as Lt, ChartTooltip as zt, ChartLegend as yt, ChartTooltipContent as Ot, ChartLegendContent as kt } from "../chart/chart.js";
8
- const St = Qe("", {
6
+ import { resolveAnimation as st, resolveCartesianLabelPosition as ct, resolveCategoryRange as ve, resolveBrushProps as dt, resolveRotatedTickAnchor as ge, CHART_LABEL_FONT_SIZE as ht, resolveLabelFillClass as ft, toLabelFormatter as ut, resolveChartReferenceValue as vt, resolveReferenceLineProps as gt, resolveXAxisTitle as pt, resolveXAxisHeight as mt, resolveAxisDomain as $t, resolveYAxisTitle as Ct, toReferenceLineList as Lt } from "../chart/chart-format.js";
7
+ import { ChartContainer as zt, ChartTooltip as yt, ChartLegend as Ot, ChartTooltipContent as kt, ChartLegendContent as St } from "../chart/chart.js";
8
+ const Rt = Ke("", {
9
9
  variants: {
10
10
  orientation: {
11
11
  vertical: "",
@@ -21,176 +21,176 @@ const St = Qe("", {
21
21
  layout: "grouped"
22
22
  }
23
23
  }), F = "__headroom_";
24
- function me(t, n) {
25
- const o = t == null ? void 0 : t.filter(
26
- (r) => !String(r.dataKey).startsWith(F)
24
+ function me(r, o) {
25
+ const n = r == null ? void 0 : r.filter(
26
+ (t) => !String(t.dataKey).startsWith(F)
27
27
  );
28
- return n ? o == null ? void 0 : o.slice().sort(
29
- (r, a) => n.indexOf(String(r.dataKey)) - n.indexOf(String(a.dataKey))
30
- ) : o;
28
+ return o ? n == null ? void 0 : n.slice().sort(
29
+ (t, s) => o.indexOf(String(t.dataKey)) - o.indexOf(String(s.dataKey))
30
+ ) : n;
31
31
  }
32
- function $e(t) {
33
- return t == null ? void 0 : t.map(
34
- (n) => {
35
- var o;
36
- return (o = n.color) != null && o.startsWith("url(") ? { ...n, color: `var(--color-${String(n.dataKey)})` } : n;
32
+ function $e(r) {
33
+ return r == null ? void 0 : r.map(
34
+ (o) => {
35
+ var n;
36
+ return (n = o.color) != null && n.startsWith("url(") ? { ...o, color: `var(--color-${String(o.dataKey)})` } : o;
37
37
  }
38
38
  );
39
39
  }
40
- function Rt({
41
- content: t,
42
- dataKeys: n,
43
- ...o
40
+ function Tt({
41
+ content: r,
42
+ dataKeys: o,
43
+ ...n
44
44
  }) {
45
- const r = {
46
- ...o,
47
- payload: $e(me(o.payload, n))
45
+ const t = {
46
+ ...n,
47
+ payload: $e(me(n.payload, o))
48
48
  };
49
- return t ? typeof t == "function" ? T.createElement(
50
- t,
51
- r
52
- ) : T.cloneElement(t, r) : /* @__PURE__ */ i(Ot, { ...r });
49
+ return r ? typeof r == "function" ? k.createElement(
50
+ r,
51
+ t
52
+ ) : k.cloneElement(r, t) : /* @__PURE__ */ i(kt, { ...t });
53
53
  }
54
- function Tt({
55
- dataKeys: t,
56
- ...n
54
+ function bt({
55
+ dataKeys: r,
56
+ ...o
57
57
  }) {
58
58
  return /* @__PURE__ */ i(
59
- kt,
59
+ St,
60
60
  {
61
- verticalAlign: n.verticalAlign,
61
+ verticalAlign: o.verticalAlign,
62
62
  payload: $e(
63
- me(n.payload, t)
63
+ me(o.payload, r)
64
64
  )
65
65
  }
66
66
  );
67
67
  }
68
- function bt({
69
- bar: t,
70
- track: n,
71
- trackFill: o,
72
- paint: r
68
+ function Dt({
69
+ bar: r,
70
+ track: o,
71
+ trackFill: n,
72
+ paint: t
73
73
  }) {
74
- return /* @__PURE__ */ g(_, { children: [
75
- n && /* @__PURE__ */ i(
74
+ return /* @__PURE__ */ p(_, { children: [
75
+ o && /* @__PURE__ */ i(
76
76
  j,
77
77
  {
78
78
  className: "recharts-bar-background-rectangle",
79
- x: n.x ?? void 0,
80
- y: n.y ?? void 0,
81
- width: n.width ?? void 0,
82
- height: n.height ?? void 0,
83
- fill: o
79
+ x: o.x ?? void 0,
80
+ y: o.y ?? void 0,
81
+ width: o.width ?? void 0,
82
+ height: o.height ?? void 0,
83
+ fill: n
84
84
  }
85
85
  ),
86
86
  /* @__PURE__ */ i(
87
87
  j,
88
88
  {
89
- x: t.x ?? void 0,
90
- y: t.y ?? void 0,
91
- width: t.width ?? void 0,
92
- height: t.height ?? void 0,
93
- radius: t.radius,
94
- fill: (r == null ? void 0 : r.fill) ?? t.fill,
95
- fillOpacity: (r == null ? void 0 : r.fillOpacity) ?? t.fillOpacity,
96
- stroke: t.stroke,
97
- strokeWidth: t.strokeWidth,
98
- strokeDasharray: t.strokeDasharray
89
+ x: r.x ?? void 0,
90
+ y: r.y ?? void 0,
91
+ width: r.width ?? void 0,
92
+ height: r.height ?? void 0,
93
+ radius: r.radius,
94
+ fill: (t == null ? void 0 : t.fill) ?? r.fill,
95
+ fillOpacity: (t == null ? void 0 : t.fillOpacity) ?? r.fillOpacity,
96
+ stroke: r.stroke,
97
+ strokeWidth: r.strokeWidth,
98
+ strokeDasharray: r.strokeDasharray
99
99
  }
100
100
  )
101
101
  ] });
102
102
  }
103
103
  function pe({
104
- inRange: t,
105
- trackFill: n,
106
- paint: o
104
+ inRange: r,
105
+ trackFill: o,
106
+ paint: n
107
107
  }) {
108
- return ({ background: r, index: a, ...u }) => bt({
109
- bar: u,
110
- track: t(a) ? r : void 0,
111
- trackFill: n,
112
- paint: o
108
+ return ({ background: t, index: s, ...a }) => Dt({
109
+ bar: a,
110
+ track: r(s) ? t : void 0,
111
+ trackFill: o,
112
+ paint: n
113
113
  });
114
114
  }
115
- function Dt({
116
- rangeBackground: t,
117
- inRange: n,
118
- trackFill: o,
119
- activeBarOption: r
115
+ function Et({
116
+ rangeBackground: r,
117
+ inRange: o,
118
+ trackFill: n,
119
+ activeBarOption: t
120
120
  }) {
121
- return t ? {
122
- shape: pe({ inRange: n, trackFill: o }),
123
- activeBar: r && pe({ inRange: n, trackFill: o, paint: r })
124
- } : { shape: void 0, activeBar: r };
121
+ return r ? {
122
+ shape: pe({ inRange: o, trackFill: n }),
123
+ activeBar: t && pe({ inRange: o, trackFill: n, paint: t })
124
+ } : { shape: void 0, activeBar: t };
125
125
  }
126
- function Et({
127
- band: t,
128
- vertical: n
126
+ function Nt({
127
+ band: r,
128
+ vertical: o
129
129
  }) {
130
- const { x: o = 0, y: r = 0, width: a = 0, height: u = 0, fill: h, fillOpacity: p } = t;
131
- return /* @__PURE__ */ g(_, { children: [
130
+ const { x: n = 0, y: t = 0, width: s = 0, height: a = 0, fill: f, fillOpacity: m } = r;
131
+ return /* @__PURE__ */ p(_, { children: [
132
132
  /* @__PURE__ */ i(
133
133
  j,
134
134
  {
135
135
  className: "recharts-reference-area-rect",
136
- x: o,
137
- y: r,
138
- width: a,
139
- height: u,
140
- fill: h,
141
- fillOpacity: p
136
+ x: n,
137
+ y: t,
138
+ width: s,
139
+ height: a,
140
+ fill: f,
141
+ fillOpacity: m
142
142
  }
143
143
  ),
144
144
  /* @__PURE__ */ i(
145
145
  "line",
146
146
  {
147
- x1: o,
148
- y1: r,
149
- x2: n ? o : o + a,
150
- y2: n ? r + u : r,
147
+ x1: n,
148
+ y1: t,
149
+ x2: o ? n : n + s,
150
+ y2: o ? t + a : t,
151
151
  stroke: "var(--ui-border-on-surface-border)",
152
152
  strokeDasharray: "4 4"
153
153
  }
154
154
  )
155
155
  ] });
156
156
  }
157
- function Nt({
158
- divider: t,
159
- vertical: n
157
+ function wt({
158
+ divider: r,
159
+ vertical: o
160
160
  }) {
161
- if (t)
162
- return (o) => Et({ band: o, vertical: n });
161
+ if (r)
162
+ return (n) => Nt({ band: n, vertical: o });
163
163
  }
164
- function wt(t) {
165
- return t ? {
166
- value: t,
164
+ function xt(r) {
165
+ return r ? {
166
+ value: r,
167
167
  position: "insideTop",
168
168
  fill: "var(--ui-text-on-surface-secondary)",
169
169
  fontSize: 12
170
170
  } : void 0;
171
171
  }
172
- function xt({
173
- id: t,
174
- dataKeys: n,
175
- shapes: o,
176
- horizontal: r
172
+ function Bt({
173
+ id: r,
174
+ dataKeys: o,
175
+ shapes: n,
176
+ horizontal: t
177
177
  }) {
178
- const a = o.has("gradient"), u = o.has("pattern");
179
- return !a && !u ? null : /* @__PURE__ */ i("defs", { children: n.map((h) => /* @__PURE__ */ g(T.Fragment, { children: [
180
- a && /* @__PURE__ */ g(
178
+ const s = n.has("gradient"), a = n.has("pattern");
179
+ return !s && !a ? null : /* @__PURE__ */ i("defs", { children: o.map((f) => /* @__PURE__ */ p(k.Fragment, { children: [
180
+ s && /* @__PURE__ */ p(
181
181
  "linearGradient",
182
182
  {
183
- id: `${t}-gradient-${h}`,
183
+ id: `${r}-gradient-${f}`,
184
184
  x1: "0",
185
185
  y1: "0",
186
- x2: r ? "1" : "0",
187
- y2: r ? "0" : "1",
186
+ x2: t ? "1" : "0",
187
+ y2: t ? "0" : "1",
188
188
  children: [
189
189
  /* @__PURE__ */ i(
190
190
  "stop",
191
191
  {
192
192
  offset: "0%",
193
- stopColor: `var(--color-${h})`,
193
+ stopColor: `var(--color-${f})`,
194
194
  stopOpacity: 1
195
195
  }
196
196
  ),
@@ -198,17 +198,17 @@ function xt({
198
198
  "stop",
199
199
  {
200
200
  offset: "100%",
201
- stopColor: `var(--color-${h})`,
201
+ stopColor: `var(--color-${f})`,
202
202
  stopOpacity: 0.35
203
203
  }
204
204
  )
205
205
  ]
206
206
  }
207
207
  ),
208
- u && /* @__PURE__ */ g(
208
+ a && /* @__PURE__ */ p(
209
209
  "pattern",
210
210
  {
211
- id: `${t}-pattern-${h}`,
211
+ id: `${r}-pattern-${f}`,
212
212
  patternUnits: "userSpaceOnUse",
213
213
  width: 6,
214
214
  height: 6,
@@ -219,7 +219,7 @@ function xt({
219
219
  {
220
220
  width: 6,
221
221
  height: 6,
222
- fill: `var(--color-${h})`,
222
+ fill: `var(--color-${f})`,
223
223
  fillOpacity: 0.25
224
224
  }
225
225
  ),
@@ -230,167 +230,168 @@ function xt({
230
230
  y1: 0,
231
231
  x2: 0,
232
232
  y2: 6,
233
- stroke: `var(--color-${h})`,
233
+ stroke: `var(--color-${f})`,
234
234
  strokeWidth: 3
235
235
  }
236
236
  )
237
237
  ]
238
238
  }
239
239
  )
240
- ] }, h)) });
240
+ ] }, f)) });
241
241
  }
242
- function Bt({
243
- data: t,
244
- chartData: n,
245
- xKey: o,
246
- seriesKey: r,
247
- settings: a,
248
- range: u,
249
- headroomKey: h,
250
- barShape: p,
251
- rounded: E,
252
- fillOf: k,
253
- radiusFor: W
242
+ function Pt({
243
+ data: r,
244
+ chartData: o,
245
+ xKey: n,
246
+ seriesKey: t,
247
+ settings: s,
248
+ range: a,
249
+ headroomKey: f,
250
+ barShape: m,
251
+ rounded: S,
252
+ fillOf: R,
253
+ radiusFor: T
254
254
  }) {
255
- const { fill: A, opacity: d, dashed: C } = a;
256
- return t.map((L, v) => {
255
+ const { fill: W, opacity: A, dashed: d } = s;
256
+ return r.map((b, g) => {
257
257
  var w;
258
- const m = v >= u[0] && v <= u[1], N = m && a.shape || p, H = h !== void 0 && Number(
259
- (w = n[v]) == null ? void 0 : w[`${F}${r}`]
258
+ const v = g >= a[0] && g <= a[1], N = v && s.shape || m, H = f !== void 0 && Number(
259
+ (w = o[g]) == null ? void 0 : w[`${F}${t}`]
260
260
  ) > 0;
261
261
  return /* @__PURE__ */ i(
262
- lt,
262
+ at,
263
263
  {
264
- fill: m ? A ?? k(r, N) : k(r, p),
265
- fillOpacity: m ? d : void 0,
266
- stroke: m && C ? `var(--color-${r})` : void 0,
267
- strokeWidth: m && C ? 1 : void 0,
268
- strokeDasharray: m && C ? "4 3" : void 0,
269
- radius: H ? void 0 : W(N, E)
264
+ fill: v ? W ?? R(t, N) : R(t, m),
265
+ fillOpacity: v ? A : void 0,
266
+ stroke: v && d ? `var(--color-${t})` : void 0,
267
+ strokeWidth: v && d ? 1 : void 0,
268
+ strokeDasharray: v && d ? "4 3" : void 0,
269
+ radius: H ? void 0 : T(N, S)
270
270
  },
271
- `${r}-${String(L[o])}-${v}`
271
+ `${t}-${String(b[n])}-${g}`
272
272
  );
273
273
  });
274
274
  }
275
- const Pt = T.forwardRef(
275
+ const _t = k.forwardRef(
276
276
  ({
277
- className: t,
278
- config: n,
279
- data: o,
280
- dataKeys: r,
277
+ className: r,
278
+ config: o,
279
+ palette: n,
280
+ data: t,
281
+ dataKeys: s,
281
282
  xKey: a,
282
- referenceLine: u,
283
- referenceArea: h,
284
- barSettings: p,
285
- xAxisLabel: E,
286
- yAxisLabel: k,
283
+ referenceLine: f,
284
+ referenceArea: m,
285
+ barSettings: S,
286
+ xAxisLabel: R,
287
+ yAxisLabel: T,
287
288
  xUnit: W,
288
289
  yUnit: A,
289
290
  orientation: d = "vertical",
290
- layout: C = "grouped",
291
- barRadius: L = 4,
291
+ layout: b = "grouped",
292
+ barRadius: g = 4,
292
293
  barShape: v = "rounded",
293
- barSize: m,
294
- maxBarSize: N,
295
- barGap: H,
296
- barCategoryGap: w,
294
+ barSize: N,
295
+ maxBarSize: H,
296
+ barGap: w,
297
+ barCategoryGap: Ce,
297
298
  minPointSize: I,
298
- showBackground: Ce = !1,
299
+ showBackground: Le = !1,
299
300
  backgroundFill: U = "var(--ui-background-surface-secondary)",
300
- showActiveBar: Le = !1,
301
- activeBar: z,
302
- showGrid: ze = !0,
303
- showTooltip: ye = !0,
304
- showLegend: Oe = !0,
301
+ showActiveBar: ze = !1,
302
+ activeBar: C,
303
+ showGrid: ye = !0,
304
+ showTooltip: Oe = !0,
305
+ showLegend: ke = !0,
305
306
  showXAxis: Y = !0,
306
307
  showYAxis: Z = !0,
307
308
  xTickFormatter: x,
308
309
  yTickFormatter: B,
309
- xAxisAngle: b,
310
+ xAxisAngle: D,
310
311
  xAxisInterval: q,
311
312
  yAxisTickCount: J,
312
- yAxisDomain: ke,
313
- gridDashed: Se,
314
- gridHorizontal: Re,
315
- gridVertical: Te,
316
- tooltipContent: be,
317
- animate: De,
318
- animationDuration: Ee,
319
- animationBegin: Ne,
320
- animationEasing: we,
321
- showLabels: xe = !1,
322
- labelPosition: Be,
323
- labelFormatter: Pe,
324
- showBrush: _e = !1,
325
- brushHeight: Fe,
326
- brushAriaLabel: We,
327
- ...Ae
328
- }, He) => {
329
- const Q = at({
330
- animate: De,
331
- animationDuration: Ee,
332
- animationBegin: Ne,
333
- animationEasing: we
334
- }), Me = d === "horizontal" ? "vertical" : "horizontal", D = C === "stacked", K = st({
335
- labelPosition: Be,
336
- isStacked: D,
313
+ yAxisDomain: Se,
314
+ gridDashed: Re,
315
+ gridHorizontal: Te,
316
+ gridVertical: be,
317
+ tooltipContent: De,
318
+ animate: Ee,
319
+ animationDuration: Ne,
320
+ animationBegin: we,
321
+ animationEasing: xe,
322
+ showLabels: Be = !1,
323
+ labelPosition: Pe,
324
+ labelFormatter: _e,
325
+ showBrush: Fe = !1,
326
+ brushHeight: We,
327
+ brushAriaLabel: Ae,
328
+ ...He
329
+ }, Me) => {
330
+ const Q = st({
331
+ animate: Ee,
332
+ animationDuration: Ne,
333
+ animationBegin: we,
334
+ animationEasing: xe
335
+ }), Ve = d === "horizontal" ? "vertical" : "horizontal", E = b === "stacked", K = ct({
336
+ labelPosition: Pe,
337
+ isStacked: E,
337
338
  growingEnd: d === "horizontal" ? "right" : "top"
338
- }), Ve = Ct(u), ee = (h ? Array.isArray(h) ? h : [h] : []).map((e) => ({ area: e, range: ve(e, o, a) })).filter(
339
+ }), Ge = Lt(f), ee = (m ? Array.isArray(m) ? m : [m] : []).map((e) => ({ area: e, range: ve(e, t, a) })).filter(
339
340
  (e) => e.range !== void 0
340
341
  ), P = new Map(
341
- r.flatMap((e) => {
342
- const l = p == null ? void 0 : p[e], c = l ? ve(l, o, a) : void 0;
343
- return l && c ? [[e, { settings: l, range: c }]] : [];
342
+ s.flatMap((e) => {
343
+ const l = S == null ? void 0 : S[e], h = l ? ve(l, t, a) : void 0;
344
+ return l && h ? [[e, { settings: l, range: h }]] : [];
344
345
  })
345
346
  ), M = new Map(
346
- D ? [] : Array.from(
347
+ E ? [] : Array.from(
347
348
  P,
348
349
  ([e, l]) => typeof l.settings.background == "string" ? [e, l.settings.background] : void 0
349
350
  ).filter((e) => e !== void 0)
350
- ), V = M.size ? o.map((e, l) => {
351
- const c = {};
352
- return M.forEach((s, f) => {
353
- const $ = P.get(f);
351
+ ), V = M.size ? t.map((e, l) => {
352
+ const h = {};
353
+ return M.forEach((c, u) => {
354
+ const $ = P.get(u);
354
355
  if (!$) return;
355
- const [S, R] = $.range;
356
- if (l < S || l > R) return;
357
- const y = e[f], O = e[s];
358
- typeof y != "number" || typeof O != "number" || (c[`${F}${f}`] = Math.max(0, O - y));
359
- }), { ...e, ...c };
360
- }) : o, te = new Set(
356
+ const [y, O] = $.range;
357
+ if (l < y || l > O) return;
358
+ const L = e[u], z = e[c];
359
+ typeof L != "number" || typeof z != "number" || (h[`${F}${u}`] = Math.max(0, z - L));
360
+ }), { ...e, ...h };
361
+ }) : t, te = new Set(
361
362
  ee.filter(({ area: e }) => e.highlightTicks !== !1).flatMap(
362
- ({ range: e }) => o.slice(e[0], e[1] + 1).map((l) => l[a])
363
+ ({ range: e }) => t.slice(e[0], e[1] + 1).map((l) => l[a])
363
364
  )
364
365
  ), re = te.size ? ({
365
366
  payload: e,
366
367
  index: l,
367
- ...c
368
+ ...h
368
369
  }) => {
369
- const s = d === "horizontal" ? B : x, f = s ? s(e.value, l) : e.value;
370
+ const c = d === "horizontal" ? B : x, u = c ? c(e.value, l) : e.value;
370
371
  return /* @__PURE__ */ i(
371
- Ke,
372
+ et,
372
373
  {
373
- ...c,
374
+ ...h,
374
375
  className: ue(
375
376
  "fill-muted-foreground",
376
377
  te.has(e.value) && "fill-primary italic"
377
378
  ),
378
379
  fontSize: 12,
379
- children: f
380
+ children: u
380
381
  }
381
382
  );
382
- } : void 0, Ge = Le ? {
383
- ...(z == null ? void 0 : z.fill) !== void 0 ? { fill: z.fill } : {},
384
- fillOpacity: (z == null ? void 0 : z.opacity) ?? 0.85
385
- } : !1, G = `bar-${T.useId().replace(/:/g, "")}`, oe = /* @__PURE__ */ new Set([v]);
383
+ } : void 0, Xe = ze ? {
384
+ ...(C == null ? void 0 : C.fill) !== void 0 ? { fill: C.fill } : {},
385
+ fillOpacity: (C == null ? void 0 : C.opacity) ?? 0.85
386
+ } : !1, G = `bar-${k.useId().replace(/:/g, "")}`, oe = /* @__PURE__ */ new Set([v]);
386
387
  P.forEach(({ settings: e }) => {
387
388
  e.shape && oe.add(e.shape);
388
389
  });
389
- const Xe = (e) => I === void 0 ? void 0 : (l, c) => {
390
- var f;
391
- const s = D ? (f = V[c]) == null ? void 0 : f[e] : l;
392
- return typeof s == "number" && s !== 0 ? I : 0;
393
- }, ne = (e, l) => l === "gradient" ? `url(#${G}-gradient-${e})` : l === "pattern" ? `url(#${G}-pattern-${e})` : `var(--color-${e})`, ie = gt(E), le = $t(k), ae = mt(ke), se = pt(E, b), je = d === "horizontal" ? [0, L, L, 0] : [L, L, 0, 0], X = (e, l) => e === "pill" ? 9999 : L > 0 && l ? je : void 0, Ie = /* @__PURE__ */ i(Rt, { content: be, dataKeys: r }), Ue = /* @__PURE__ */ i(Tt, { dataKeys: r }), Ye = () => d === "horizontal" ? /* @__PURE__ */ g(_, { children: [
390
+ const je = (e) => I === void 0 ? void 0 : (l, h) => {
391
+ var u;
392
+ const c = E ? (u = V[h]) == null ? void 0 : u[e] : l;
393
+ return typeof c == "number" && c !== 0 ? I : 0;
394
+ }, ne = (e, l) => l === "gradient" ? `url(#${G}-gradient-${e})` : l === "pattern" ? `url(#${G}-pattern-${e})` : `var(--color-${e})`, ie = pt(R), le = Ct(T), ae = $t(Se), se = mt(R, D), Ie = d === "horizontal" ? [0, g, g, 0] : [g, g, 0, 0], X = (e, l) => e === "pill" ? 9999 : g > 0 && l ? Ie : void 0, Ue = /* @__PURE__ */ i(Tt, { content: De, dataKeys: s }), Ye = /* @__PURE__ */ i(bt, { dataKeys: s }), Ze = () => d === "horizontal" ? /* @__PURE__ */ p(_, { children: [
394
395
  /* @__PURE__ */ i(
395
396
  de,
396
397
  {
@@ -400,9 +401,9 @@ const Pt = T.forwardRef(
400
401
  axisLine: !1,
401
402
  unit: W,
402
403
  tickFormatter: x,
403
- angle: b,
404
+ angle: D,
404
405
  interval: q,
405
- textAnchor: ge(b),
406
+ textAnchor: ge(D),
406
407
  tickCount: J,
407
408
  domain: ae,
408
409
  height: se,
@@ -419,11 +420,11 @@ const Pt = T.forwardRef(
419
420
  axisLine: !1,
420
421
  tick: re,
421
422
  tickFormatter: B,
422
- width: k ? 96 : 80,
423
+ width: T ? 96 : 80,
423
424
  label: le
424
425
  }
425
426
  )
426
- ] }) : /* @__PURE__ */ g(_, { children: [
427
+ ] }) : /* @__PURE__ */ p(_, { children: [
427
428
  /* @__PURE__ */ i(
428
429
  de,
429
430
  {
@@ -434,9 +435,9 @@ const Pt = T.forwardRef(
434
435
  axisLine: !1,
435
436
  tick: re,
436
437
  tickFormatter: x,
437
- angle: b,
438
+ angle: D,
438
439
  interval: q,
439
- textAnchor: ge(b),
440
+ textAnchor: ge(D),
440
441
  height: se,
441
442
  label: ie
442
443
  }
@@ -452,54 +453,54 @@ const Pt = T.forwardRef(
452
453
  tickFormatter: B,
453
454
  tickCount: J,
454
455
  domain: ae,
455
- width: k ? 72 : void 0,
456
+ width: T ? 72 : void 0,
456
457
  label: le
457
458
  }
458
459
  )
459
- ] }), Ze = () => r.map((e, l) => {
460
- const c = D ? l === r.length - 1 : !0, s = P.get(e), f = (ce) => s !== void 0 && ce >= s.range[0] && ce <= s.range[1], $ = M.get(e), { shape: S, activeBar: R } = Dt({
461
- rangeBackground: (s == null ? void 0 : s.settings.background) === !0,
462
- inRange: f,
460
+ ] }), qe = () => s.map((e, l) => {
461
+ const h = E ? l === s.length - 1 : !0, c = P.get(e), u = (ce) => c !== void 0 && ce >= c.range[0] && ce <= c.range[1], $ = M.get(e), { shape: y, activeBar: O } = Et({
462
+ rangeBackground: (c == null ? void 0 : c.settings.background) === !0,
463
+ inRange: u,
463
464
  trackFill: U,
464
- activeBarOption: Ge
465
- }), y = s && Bt({
466
- data: o,
465
+ activeBarOption: Xe
466
+ }), L = c && Pt({
467
+ data: t,
467
468
  chartData: V,
468
469
  xKey: a,
469
470
  seriesKey: e,
470
- settings: s.settings,
471
- range: s.range,
471
+ settings: c.settings,
472
+ range: c.range,
472
473
  headroomKey: $,
473
474
  barShape: v,
474
- rounded: c,
475
+ rounded: h,
475
476
  fillOf: ne,
476
477
  radiusFor: X
477
- }), O = xe && /* @__PURE__ */ i(
478
- ot,
478
+ }), z = Be && /* @__PURE__ */ i(
479
+ nt,
479
480
  {
480
481
  dataKey: e,
481
482
  position: K,
482
- formatter: ft(Pe),
483
- className: ht(K),
484
- fontSize: dt
483
+ formatter: ut(_e),
484
+ className: ft(K),
485
+ fontSize: ht
485
486
  }
486
487
  );
487
- return /* @__PURE__ */ g(T.Fragment, { children: [
488
- /* @__PURE__ */ g(
488
+ return /* @__PURE__ */ p(k.Fragment, { children: [
489
+ /* @__PURE__ */ p(
489
490
  fe,
490
491
  {
491
492
  dataKey: e,
492
493
  fill: ne(e, v),
493
- stackId: D ? "a" : $ ? e : void 0,
494
- radius: X(v, c),
495
- minPointSize: Xe(e),
496
- background: Ce ? { fill: U } : void 0,
497
- shape: S,
498
- activeBar: R,
494
+ stackId: E ? "a" : $ ? e : void 0,
495
+ radius: X(v, h),
496
+ minPointSize: je(e),
497
+ background: Le ? { fill: U } : void 0,
498
+ shape: y,
499
+ activeBar: O,
499
500
  ...Q,
500
501
  children: [
501
- y,
502
- O
502
+ L,
503
+ z
503
504
  ]
504
505
  }
505
506
  ),
@@ -517,31 +518,31 @@ const Pt = T.forwardRef(
517
518
  }
518
519
  )
519
520
  ] }, e);
520
- }), qe = () => ee.map(({ area: e, range: l }, c) => {
521
- var S, R, y, O;
522
- const [s, f] = l, $ = d === "horizontal" ? { y1: (S = o[s]) == null ? void 0 : S[a], y2: (R = o[f]) == null ? void 0 : R[a] } : { x1: (y = o[s]) == null ? void 0 : y[a], x2: (O = o[f]) == null ? void 0 : O[a] };
521
+ }), Je = () => ee.map(({ area: e, range: l }, h) => {
522
+ var y, O, L, z;
523
+ const [c, u] = l, $ = d === "horizontal" ? { y1: (y = t[c]) == null ? void 0 : y[a], y2: (O = t[u]) == null ? void 0 : O[a] } : { x1: (L = t[c]) == null ? void 0 : L[a], x2: (z = t[u]) == null ? void 0 : z[a] };
523
524
  return /* @__PURE__ */ i(
524
- nt,
525
+ it,
525
526
  {
526
527
  ...$,
527
528
  fill: "var(--ui-background-surface-secondary)",
528
529
  fillOpacity: 0.6,
529
530
  ifOverflow: "extendDomain",
530
- shape: Nt({
531
+ shape: wt({
531
532
  divider: e.divider,
532
533
  vertical: d !== "horizontal"
533
534
  }),
534
- label: wt(e.label)
535
+ label: xt(e.label)
535
536
  },
536
- `${e.label ?? "area"}-${c}`
537
+ `${e.label ?? "area"}-${h}`
537
538
  );
538
- }), Je = () => Ve.map((e, l) => {
539
- const c = ut(e, o, r);
540
- return c === void 0 ? null : /* @__PURE__ */ i(
541
- it,
539
+ }), Qe = () => Ge.map((e, l) => {
540
+ const h = vt(e, t, s);
541
+ return h === void 0 ? null : /* @__PURE__ */ i(
542
+ lt,
542
543
  {
543
- ...d === "horizontal" ? { x: c } : { y: c },
544
- ...vt(
544
+ ...d === "horizontal" ? { x: h } : { y: h },
545
+ ...gt(
545
546
  e.label,
546
547
  e.labelPosition ?? (d === "horizontal" ? "top" : "insideTopRight")
547
548
  )
@@ -552,55 +553,56 @@ const Pt = T.forwardRef(
552
553
  return /* @__PURE__ */ i(
553
554
  "div",
554
555
  {
555
- ref: He,
556
+ ref: Me,
556
557
  "data-orientation": d,
557
- "data-layout": C,
558
- className: ue(St({ orientation: d, layout: C }), t),
559
- ...Ae,
558
+ "data-layout": b,
559
+ className: ue(Rt({ orientation: d, layout: b }), r),
560
+ ...He,
560
561
  children: /* @__PURE__ */ i(
561
- Lt,
562
+ zt,
562
563
  {
563
- config: n,
564
+ config: o,
565
+ palette: n,
564
566
  className: "size-full [&_.recharts-label]:fill-foreground",
565
- children: /* @__PURE__ */ g(
566
- et,
567
+ children: /* @__PURE__ */ p(
568
+ tt,
567
569
  {
568
570
  data: V,
569
- layout: Me,
570
- barSize: m,
571
- maxBarSize: N,
572
- barGap: H,
573
- barCategoryGap: w,
571
+ layout: Ve,
572
+ barSize: N,
573
+ maxBarSize: H,
574
+ barGap: w,
575
+ barCategoryGap: Ce,
574
576
  children: [
575
577
  /* @__PURE__ */ i(
576
- xt,
578
+ Bt,
577
579
  {
578
580
  id: G,
579
- dataKeys: r,
581
+ dataKeys: s,
580
582
  shapes: oe,
581
583
  horizontal: d === "horizontal"
582
584
  }
583
585
  ),
584
- ze && /* @__PURE__ */ i(
585
- tt,
586
+ ye && /* @__PURE__ */ i(
587
+ rt,
586
588
  {
587
- horizontal: Re ?? d === "vertical",
588
- vertical: Te ?? d === "horizontal",
589
- strokeDasharray: Se ? "3 3" : void 0
589
+ horizontal: Te ?? d === "vertical",
590
+ vertical: be ?? d === "horizontal",
591
+ strokeDasharray: Re ? "3 3" : void 0
590
592
  }
591
593
  ),
592
- Ye(),
593
- ye && /* @__PURE__ */ i(zt, { content: Ie }),
594
- Oe && /* @__PURE__ */ i(yt, { content: Ue }),
595
594
  Ze(),
595
+ Oe && /* @__PURE__ */ i(yt, { content: Ue }),
596
+ ke && /* @__PURE__ */ i(Ot, { content: Ye }),
596
597
  qe(),
597
598
  Je(),
598
- _e && /* @__PURE__ */ i(
599
- rt,
599
+ Qe(),
600
+ Fe && /* @__PURE__ */ i(
601
+ ot,
600
602
  {
601
603
  dataKey: a,
602
604
  tickFormatter: d === "horizontal" ? B : x,
603
- ...ct({ brushHeight: Fe, brushAriaLabel: We })
605
+ ...dt({ brushHeight: We, brushAriaLabel: Ae })
604
606
  }
605
607
  )
606
608
  ]
@@ -612,12 +614,12 @@ const Pt = T.forwardRef(
612
614
  );
613
615
  }
614
616
  );
615
- Pt.displayName = "BarChart";
617
+ _t.displayName = "BarChart";
616
618
  export {
617
- Pt as BarChart,
618
- Tt as NormalizedLegendContent,
619
- Rt as NormalizedTooltipContent,
620
- St as barChartVariants,
619
+ _t as BarChart,
620
+ bt as NormalizedLegendContent,
621
+ Tt as NormalizedTooltipContent,
622
+ Rt as barChartVariants,
621
623
  pe as createTrackShape,
622
624
  me as dropHeadroomSeries,
623
625
  $e as withSeriesColor