@acronis-platform/ui-react 5.4.1 → 5.4.2

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 (33) hide show
  1. package/dist/components/ui/area-chart/area-chart.js +107 -105
  2. package/dist/components/ui/area-chart/area-chart.js.map +1 -1
  3. package/dist/components/ui/bar-chart/bar-chart.js +135 -132
  4. package/dist/components/ui/bar-chart/bar-chart.js.map +1 -1
  5. package/dist/components/ui/chart/chart-format.js +36 -31
  6. package/dist/components/ui/chart/chart-format.js.map +1 -1
  7. package/dist/components/ui/chart/chart.js +9 -7
  8. package/dist/components/ui/chart/chart.js.map +1 -1
  9. package/dist/components/ui/chart/use-x-axis-layout.js +71 -0
  10. package/dist/components/ui/chart/use-x-axis-layout.js.map +1 -0
  11. package/dist/components/ui/composed-chart/composed-chart.js +141 -139
  12. package/dist/components/ui/composed-chart/composed-chart.js.map +1 -1
  13. package/dist/components/ui/confidence-cone/confidence-cone.js +70 -67
  14. package/dist/components/ui/confidence-cone/confidence-cone.js.map +1 -1
  15. package/dist/components/ui/histogram/histogram.js +54 -51
  16. package/dist/components/ui/histogram/histogram.js.map +1 -1
  17. package/dist/components/ui/line-chart/line-chart.js +119 -117
  18. package/dist/components/ui/line-chart/line-chart.js.map +1 -1
  19. package/dist/components/ui/scatter-chart/scatter-chart.js +53 -51
  20. package/dist/components/ui/scatter-chart/scatter-chart.js.map +1 -1
  21. package/dist/llms/area-chart.md +10 -1
  22. package/dist/llms/bar-chart.md +10 -1
  23. package/dist/llms/composed-chart.md +10 -1
  24. package/dist/llms/confidence-cone.md +10 -1
  25. package/dist/llms/histogram.md +10 -1
  26. package/dist/llms/line-chart.md +10 -1
  27. package/dist/llms/scatter-chart.md +10 -1
  28. package/dist/llms.txt +1 -1
  29. package/dist/src/components/ui/chart/chart-format.d.ts +10 -4
  30. package/dist/src/components/ui/chart/chart.d.ts +1 -1
  31. package/dist/src/components/ui/chart/use-x-axis-layout.d.ts +28 -0
  32. package/dist/ui-react.css +1 -1
  33. package/package.json +2 -2
@@ -2,157 +2,158 @@
2
2
  import { cn as e } from "../../../lib/utils.js";
3
3
  import { cva as t } from "../../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js";
4
4
  import { ChartContainer as n, ChartLegend as r, ChartLegendContent as i, ChartTooltip as a, ChartTooltipContent as o, toCssKey as s } from "../chart/chart.js";
5
- import { CHART_LABEL_MARGIN as c, resolveAnimation as l, resolveAxisDomain as u, resolveBrushProps as d, resolveCartesianLabelPosition as ee, resolveCategoryRange as f, resolveChartReferenceValue as p, resolveLabelFillClass as te, resolveReferenceLineProps as ne, resolveRotatedTickAnchor as m, resolveXAxisHeight as re, resolveXAxisTitle as h, resolveYAxisTitle as g, toLabelFormatter as ie } from "../chart/chart-format.js";
6
- import * as ae from "react";
7
- import { Fragment as oe, jsx as _, jsxs as v } from "react/jsx-runtime";
8
- import { Area as se, Bar as ce, Brush as le, CartesianGrid as ue, ComposedChart as de, LabelList as fe, Line as pe, ReferenceArea as me, ReferenceLine as he, XAxis as y, YAxis as b } from "recharts";
5
+ import { CHART_LABEL_MARGIN as c, resolveAnimation as l, resolveAxisDomain as u, resolveBrushProps as d, resolveCartesianLabelPosition as ee, resolveCategoryRange as f, resolveChartReferenceValue as p, resolveLabelFillClass as te, resolveReferenceLineProps as ne, resolveRotatedTickAnchor as re, resolveXAxisTickLabels as ie, resolveXAxisTitle as m, resolveYAxisTitle as h, toLabelFormatter as ae } from "../chart/chart-format.js";
6
+ import { mergeXAxisLayoutMargin as oe, useXAxisLayout as se } from "../chart/use-x-axis-layout.js";
7
+ import * as g from "react";
8
+ import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
9
+ import { Area as ce, Bar as le, Brush as ue, CartesianGrid as de, ComposedChart as fe, LabelList as pe, Line as me, ReferenceArea as he, ReferenceLine as ge, XAxis as b, YAxis as x } from "recharts";
9
10
  //#region src/components/ui/composed-chart/composed-chart.tsx
10
- var x = t("", {
11
+ var _e = t("", {
11
12
  variants: { orientation: {
12
13
  vertical: "",
13
14
  horizontal: ""
14
15
  } },
15
16
  defaultVariants: { orientation: "vertical" }
16
- }), ge = 100, _e = 50, S = "secondary", ve = {
17
+ }), ve = 100, ye = 50, S = "secondary", be = {
17
18
  top: 5,
18
19
  right: 5,
19
20
  bottom: 5,
20
21
  left: 5
21
- }, ye = .85, be = { top: 16 }, C = ae.forwardRef(({ className: t, config: ae, palette: C, data: w, series: T, xKey: E, referenceLine: D, referenceArea: O, orientation: k = "vertical", xAxisLabel: xe, yAxisLabel: A, xUnit: Se, yUnit: Ce, curve: j = "monotone", barRadius: we = 4, barSize: Te, barGap: Ee, barCategoryGap: De, showBackground: Oe = !1, backgroundFill: ke = "var(--ui-background-surface-secondary)", showActiveBar: Ae = !1, fillOpacity: je = .3, strokeWidth: M, showDots: Me = !1, showActiveDots: Ne, connectNulls: Pe = !1, margin: N, showGrid: Fe = !0, showTooltip: Ie = !0, tooltipCursor: Le = !0, showLegend: Re = !0, legendPosition: P = "bottom", showXAxis: ze = !0, showYAxis: Be = !0, xTickFormatter: F, yTickFormatter: I, xAxisAngle: L, xAxisInterval: R, yAxisTickCount: z, yAxisDomain: Ve, yAxisOrientation: B, showSecondaryYAxis: V = !0, secondaryYAxisLabel: H, secondaryYUnit: U, secondaryYTickFormatter: W, secondaryYAxisTickCount: G, secondaryYAxisDomain: He, gridDashed: Ue, gridHorizontal: We, gridVertical: Ge, tooltipContent: Ke, animate: qe, animationDuration: Je, animationBegin: Ye, animationEasing: Xe, showLabels: K = !1, labelPosition: Ze, labelFormatter: Qe, showBrush: $e = !1, brushHeight: et, brushAriaLabel: tt, ...nt }, rt) => {
22
- let q = l({
23
- animate: qe,
24
- animationDuration: Je,
25
- animationBegin: Ye,
26
- animationEasing: Xe
27
- }), J = k === "horizontal", it = h(xe), Y = T.some((e) => e.yAxis === "secondary"), at = T.some((e) => e.yAxis !== "secondary"), X = Y && !at, ot = B ?? "left", st = ot === "left" ? "right" : "left", ct = g(A, J ? "left" : ot), lt = g(H, st), ut = h(H, "insideTop"), dt = u(Ve), ft = u(He), Z = (e) => {
22
+ }, xe = .85, Se = { top: 16 }, C = g.forwardRef(({ className: t, config: C, palette: Ce, data: w, series: T, xKey: E, referenceLine: D, referenceArea: O, orientation: k = "vertical", xAxisLabel: A, yAxisLabel: j, xUnit: we, yUnit: Te, curve: M = "monotone", barRadius: Ee = 4, barSize: De, barGap: Oe, barCategoryGap: ke, showBackground: Ae = !1, backgroundFill: je = "var(--ui-background-surface-secondary)", showActiveBar: Me = !1, fillOpacity: Ne = .3, strokeWidth: N, showDots: Pe = !1, showActiveDots: Fe, connectNulls: Ie = !1, margin: P, showGrid: Le = !0, showTooltip: Re = !0, tooltipCursor: ze = !0, showLegend: Be = !0, legendPosition: F = "bottom", showXAxis: I = !0, showYAxis: L = !0, xTickFormatter: R, yTickFormatter: z, xAxisAngle: B, xAxisInterval: V, yAxisTickCount: H, yAxisDomain: Ve, yAxisOrientation: U, showSecondaryYAxis: W = !0, secondaryYAxisLabel: G, secondaryYUnit: He, secondaryYTickFormatter: Ue, secondaryYAxisTickCount: We, secondaryYAxisDomain: Ge, gridDashed: Ke, gridHorizontal: qe, gridVertical: Je, tooltipContent: Ye, animate: Xe, animationDuration: Ze, animationBegin: Qe, animationEasing: $e, showLabels: et = !1, labelPosition: tt, labelFormatter: nt, showBrush: rt = !1, brushHeight: it, brushAriaLabel: at, ...ot }, st) => {
23
+ let K = l({
24
+ animate: Xe,
25
+ animationDuration: Ze,
26
+ animationBegin: Qe,
27
+ animationEasing: $e
28
+ }), q = k === "horizontal", ct = m(A), J = T.some((e) => e.yAxis === "secondary"), lt = T.some((e) => e.yAxis !== "secondary"), Y = J && !lt, ut = U ?? "left", dt = ut === "left" ? "right" : "left", ft = h(j, q ? "left" : ut), pt = h(G, dt), mt = m(G, "insideTop"), ht = u(Ve), gt = u(Ge), X = (e) => {
28
29
  let t = e === "secondary" ? S : void 0;
29
- return J ? { xAxisId: t } : { yAxisId: t };
30
- }, pt = X ? Z("secondary") : {}, mt = re(xe, L), ht = D ? Array.isArray(D) ? D : [D] : [], gt = (O ? Array.isArray(O) ? O : [O] : []).map((e) => ({
30
+ return q ? { xAxisId: t } : { yAxisId: t };
31
+ }, _t = Y ? X("secondary") : {}, vt = ie(q ? [] : w.map((e) => e[E]), R), yt = g.useRef(null), Z = se(yt, B, A, vt.join("\0")), bt = D ? Array.isArray(D) ? D : [D] : [], xt = (O ? Array.isArray(O) ? O : [O] : []).map((e) => ({
31
32
  area: e,
32
33
  range: f(e, w, E)
33
- })).filter((e) => e.range !== void 0), _t = X ? "secondary" : "primary", vt = (e) => e.yAxis ?? "primary", yt = new Map(T.map((e) => [e.key, vt(e)])), bt = (e) => T.filter((t) => vt(t) === e).map((e) => e.key), xt = new Set(T.filter((e) => e.legendType === "none").map((e) => e.key)), Q = (e) => w[e]?.[E] ?? void 0, St = ht.map((e) => {
34
+ })).filter((e) => e.range !== void 0), St = Y ? "secondary" : "primary", Ct = (e) => e.yAxis ?? "primary", wt = new Map(T.map((e) => [e.key, Ct(e)])), Tt = (e) => T.filter((t) => Ct(t) === e).map((e) => e.key), Et = new Set(T.filter((e) => e.legendType === "none").map((e) => e.key)), Q = (e) => w[e]?.[E] ?? void 0, Dt = bt.map((e) => {
34
35
  let t = e.category === void 0 ? void 0 : f({
35
36
  from: e.category,
36
37
  to: e.category
37
- }, w, E), n = e.yAxis ?? (typeof e.average == "string" ? yt.get(e.average) ?? _t : _t), r = p(e, w, bt(n)), i = t ? Q(t[0]) : void 0;
38
+ }, w, E), n = e.yAxis ?? (typeof e.average == "string" ? wt.get(e.average) ?? St : St), r = p(e, w, Tt(n)), i = t ? Q(t[0]) : void 0;
38
39
  return {
39
40
  line: e,
40
41
  lineAxis: n,
41
- position: r === void 0 ? i === void 0 ? void 0 : J ? { y: i } : { x: i } : J ? { x: r } : { y: r },
42
- isVerticalRule: r !== void 0 === J
42
+ position: r === void 0 ? i === void 0 ? void 0 : q ? { y: i } : { x: i } : q ? { x: r } : { y: r },
43
+ isVerticalRule: r !== void 0 === q
43
44
  };
44
- }).filter((e) => e.position !== void 0), Ct = K ? c : void 0, wt = St.some((e) => e.line.label && e.isVerticalRule) ? be : void 0, Tt = N || Ct || wt ? {
45
- ...N ? ve : {},
46
- ...wt,
47
- ...Ct,
48
- ...N
49
- } : void 0, $ = /* @__PURE__ */ new Map();
45
+ }).filter((e) => e.position !== void 0), Ot = et ? c : void 0, kt = Dt.some((e) => e.line.label && e.isVerticalRule) ? Se : void 0, At = P || Ot || kt ? {
46
+ ...P ? be : {},
47
+ ...kt,
48
+ ...Ot,
49
+ ...P
50
+ } : void 0, jt = oe(At, Z.margin), $ = /* @__PURE__ */ new Map();
50
51
  T.forEach((e, t) => {
51
52
  e.stackId && e.type !== "line" && $.set(`${e.type}-${e.stackId}`, t);
52
53
  });
53
- let Et = () => /* @__PURE__ */ v(oe, { children: [
54
- /* @__PURE__ */ _(y, {
54
+ let Mt = () => /* @__PURE__ */ y(_, { children: [
55
+ /* @__PURE__ */ v(b, {
55
56
  type: "number",
56
- hide: !ze || X,
57
+ hide: !I || Y,
57
58
  tickLine: !1,
58
59
  axisLine: !1,
59
- unit: Se,
60
- tickFormatter: F,
61
- angle: L,
62
- interval: R,
63
- textAnchor: m(L),
64
- tickCount: z,
65
- domain: dt,
66
- height: mt,
67
- label: it
60
+ unit: we,
61
+ tickFormatter: R,
62
+ angle: B,
63
+ interval: V,
64
+ textAnchor: re(B),
65
+ tickCount: H,
66
+ domain: ht,
67
+ height: Z.height,
68
+ label: ct
68
69
  }),
69
- /* @__PURE__ */ _(b, {
70
+ /* @__PURE__ */ v(x, {
70
71
  dataKey: E,
71
72
  type: "category",
72
- hide: !Be,
73
+ hide: !L,
73
74
  tickLine: !1,
74
75
  axisLine: !1,
75
- tickFormatter: I,
76
- width: A ? 96 : 80,
77
- label: ct
76
+ tickFormatter: z,
77
+ width: j ? 96 : 80,
78
+ label: ft
78
79
  }),
79
- Y && /* @__PURE__ */ _(y, {
80
+ J && /* @__PURE__ */ v(b, {
80
81
  xAxisId: S,
81
82
  type: "number",
82
- hide: !V,
83
+ hide: !W,
83
84
  orientation: "top",
84
85
  tickLine: !1,
85
86
  axisLine: !1,
86
- unit: U,
87
- tickFormatter: W,
88
- tickCount: G,
89
- domain: ft,
90
- label: ut
87
+ unit: He,
88
+ tickFormatter: Ue,
89
+ tickCount: We,
90
+ domain: gt,
91
+ label: mt
91
92
  })
92
- ] }), Dt = () => /* @__PURE__ */ v(oe, { children: [
93
- /* @__PURE__ */ _(y, {
93
+ ] }), Nt = () => /* @__PURE__ */ y(_, { children: [
94
+ /* @__PURE__ */ v(b, {
94
95
  dataKey: E,
95
96
  type: "category",
96
- hide: !ze,
97
+ hide: !I,
97
98
  tickLine: !1,
98
99
  axisLine: !1,
99
100
  tickMargin: 8,
100
- tickFormatter: F,
101
- angle: L,
102
- interval: R,
103
- textAnchor: m(L),
104
- height: mt,
105
- label: it
101
+ tickFormatter: R,
102
+ angle: B,
103
+ interval: V,
104
+ textAnchor: re(B),
105
+ height: Z.height,
106
+ label: ct
106
107
  }),
107
- /* @__PURE__ */ _(b, {
108
+ /* @__PURE__ */ v(x, {
108
109
  type: "number",
109
- hide: !Be || X,
110
- ...B ? { orientation: B } : {},
110
+ hide: !L || Y,
111
+ ...U ? { orientation: U } : {},
111
112
  tickLine: !1,
112
113
  axisLine: !1,
113
- unit: Ce,
114
- tickFormatter: I,
115
- tickCount: z,
116
- domain: dt,
117
- width: A ? 72 : void 0,
118
- label: ct
114
+ unit: Te,
115
+ tickFormatter: z,
116
+ tickCount: H,
117
+ domain: ht,
118
+ width: j ? 72 : void 0,
119
+ label: ft
119
120
  }),
120
- Y && /* @__PURE__ */ _(b, {
121
+ J && /* @__PURE__ */ v(x, {
121
122
  yAxisId: S,
122
123
  type: "number",
123
- hide: !V,
124
- orientation: st,
124
+ hide: !W,
125
+ orientation: dt,
125
126
  tickLine: !1,
126
127
  axisLine: !1,
127
- unit: U,
128
- tickFormatter: W,
129
- tickCount: G,
130
- domain: ft,
131
- width: H ? 72 : void 0,
132
- label: lt
128
+ unit: He,
129
+ tickFormatter: Ue,
130
+ tickCount: We,
131
+ domain: gt,
132
+ width: G ? 72 : void 0,
133
+ label: pt
133
134
  })
134
- ] }), Ot = xt.size > 0 ? (e) => /* @__PURE__ */ _(i, {
135
- verticalAlign: P,
136
- payload: e.payload?.filter((e) => !xt.has(String(e.dataKey)))
137
- }) : /* @__PURE__ */ _(i, { verticalAlign: P }), kt = (e, t) => {
138
- let n = e.color ?? `var(--color-${s(e.key)})`, r = ge + t, i = Z(e.yAxis), a = e.stackId && e.type !== "line" ? `${e.type}-${e.stackId}` : void 0, o = e.fillOpacity ?? je, c = e.connectNulls ?? Pe, l = e.showDots ?? Me, u = e.showActiveDots ?? Ne, d = e.legendType ? { legendType: e.legendType } : {}, f = ee({
139
- labelPosition: Ze,
135
+ ] }), Pt = Et.size > 0 ? (e) => /* @__PURE__ */ v(i, {
136
+ verticalAlign: F,
137
+ payload: e.payload?.filter((e) => !Et.has(String(e.dataKey)))
138
+ }) : /* @__PURE__ */ v(i, { verticalAlign: F }), Ft = (e, t) => {
139
+ let n = e.color ?? `var(--color-${s(e.key)})`, r = ve + t, i = X(e.yAxis), a = e.stackId && e.type !== "line" ? `${e.type}-${e.stackId}` : void 0, o = e.fillOpacity ?? Ne, c = e.connectNulls ?? Ie, l = e.showDots ?? Pe, u = e.showActiveDots ?? Fe, d = e.legendType ? { legendType: e.legendType } : {}, f = ee({
140
+ labelPosition: tt,
140
141
  isStacked: a !== void 0,
141
- growingEnd: J ? "right" : "top"
142
- }), p = K ? /* @__PURE__ */ _(fe, {
142
+ growingEnd: q ? "right" : "top"
143
+ }), p = et ? /* @__PURE__ */ v(pe, {
143
144
  dataKey: e.key,
144
145
  position: f,
145
- formatter: ie(Qe),
146
+ formatter: ae(nt),
146
147
  className: te(f, { translucentSeries: e.type === "area" }),
147
148
  fontSize: 12
148
149
  }) : null;
149
150
  if (e.type === "bar") {
150
- let o = e.barRadius ?? we, s = a === void 0 || $.get(a) === t, c = e.showBackground ?? Oe, l = e.showActiveBar ?? Ae;
151
- return /* @__PURE__ */ _(ce, {
151
+ let o = e.barRadius ?? Ee, s = a === void 0 || $.get(a) === t, c = e.showBackground ?? Ae, l = e.showActiveBar ?? Me;
152
+ return /* @__PURE__ */ v(le, {
152
153
  dataKey: e.key,
153
154
  ...i,
154
155
  fill: n,
155
- radius: o > 0 && s ? J ? [
156
+ radius: o > 0 && s ? q ? [
156
157
  0,
157
158
  o,
158
159
  o,
@@ -172,17 +173,17 @@ var x = t("", {
172
173
  strokeDasharray: e.strokeDasharray,
173
174
  ...e.strokeWidth === void 0 ? {} : { strokeWidth: e.strokeWidth }
174
175
  },
175
- ...c ? { background: { fill: ke } } : {},
176
- ...l ? { activeBar: { fillOpacity: ye } } : {},
176
+ ...c ? { background: { fill: je } } : {},
177
+ ...l ? { activeBar: { fillOpacity: xe } } : {},
177
178
  ...d,
178
- ...q,
179
+ ...K,
179
180
  children: p
180
181
  }, e.key);
181
182
  }
182
183
  if (e.type === "area") {
183
- let t = e.strokeWidth ?? M, s = t === void 0 ? {} : { strokeWidth: t };
184
- return /* @__PURE__ */ _(se, {
185
- type: e.curve ?? j,
184
+ let t = e.strokeWidth ?? N, s = t === void 0 ? {} : { strokeWidth: t };
185
+ return /* @__PURE__ */ v(ce, {
186
+ type: e.curve ?? M,
186
187
  dataKey: e.key,
187
188
  ...i,
188
189
  stroke: n,
@@ -196,30 +197,30 @@ var x = t("", {
196
197
  ...u === void 0 ? {} : { activeDot: u ? { r: 5 } : !1 },
197
198
  connectNulls: c,
198
199
  ...d,
199
- ...q,
200
+ ...K,
200
201
  children: p
201
202
  }, e.key);
202
203
  }
203
- return /* @__PURE__ */ _(pe, {
204
- type: e.curve ?? j,
204
+ return /* @__PURE__ */ v(me, {
205
+ type: e.curve ?? M,
205
206
  dataKey: e.key,
206
207
  ...i,
207
208
  stroke: n,
208
- strokeWidth: e.strokeWidth ?? M ?? 2,
209
+ strokeWidth: e.strokeWidth ?? N ?? 2,
209
210
  dot: l ? { r: 3 } : !1,
210
211
  zIndex: r,
211
212
  ...e.strokeDasharray === void 0 ? {} : { strokeDasharray: e.strokeDasharray },
212
213
  ...u === void 0 ? {} : { activeDot: u ? { r: 5 } : !1 },
213
214
  connectNulls: c,
214
215
  ...d,
215
- ...q,
216
+ ...K,
216
217
  children: p
217
218
  }, e.key);
218
- }, At = ({ area: e, range: t }, n) => {
219
+ }, It = ({ area: e, range: t }, n) => {
219
220
  let [r, i] = t;
220
- return /* @__PURE__ */ _(me, {
221
- ...pt,
222
- ...J ? {
221
+ return /* @__PURE__ */ v(he, {
222
+ ..._t,
223
+ ...q ? {
223
224
  y1: Q(r),
224
225
  y2: Q(i)
225
226
  } : {
@@ -228,7 +229,7 @@ var x = t("", {
228
229
  },
229
230
  fill: "var(--ui-background-surface-secondary)",
230
231
  fillOpacity: .6,
231
- zIndex: _e,
232
+ zIndex: ye,
232
233
  ifOverflow: "extendDomain",
233
234
  label: e.label ? {
234
235
  value: e.label,
@@ -237,52 +238,53 @@ var x = t("", {
237
238
  fontSize: 12
238
239
  } : void 0
239
240
  }, `${e.label ?? "area"}-${n}`);
240
- }, jt = ({ line: e, lineAxis: t, position: n, isVerticalRule: r }, i) => /* @__PURE__ */ _(he, {
241
- ...t === "secondary" && Y ? Z("secondary") : {},
241
+ }, Lt = ({ line: e, lineAxis: t, position: n, isVerticalRule: r }, i) => /* @__PURE__ */ v(ge, {
242
+ ...t === "secondary" && J ? X("secondary") : {},
242
243
  ...n,
243
244
  ...ne(e.label, e.labelPosition ?? (r ? "top" : "insideTopRight"))
244
245
  }, `${e.label ?? "ref"}-${i}`);
245
- return /* @__PURE__ */ _("div", {
246
- ref: rt,
246
+ return /* @__PURE__ */ v("div", {
247
+ ref: st,
247
248
  "data-orientation": k,
248
- className: e(x({ orientation: k }), t),
249
- ...nt,
250
- children: /* @__PURE__ */ _(n, {
251
- config: ae,
252
- palette: C,
249
+ className: e(_e({ orientation: k }), t),
250
+ ...ot,
251
+ children: /* @__PURE__ */ v(n, {
252
+ ref: yt,
253
+ config: C,
254
+ palette: Ce,
253
255
  className: "size-full [&_.recharts-label]:fill-foreground",
254
- children: /* @__PURE__ */ v(de, {
256
+ children: /* @__PURE__ */ y(fe, {
255
257
  data: w,
256
- layout: J ? "vertical" : "horizontal",
257
- barSize: Te,
258
- barGap: Ee,
259
- barCategoryGap: De,
260
- margin: Tt,
258
+ layout: q ? "vertical" : "horizontal",
259
+ barSize: De,
260
+ barGap: Oe,
261
+ barCategoryGap: ke,
262
+ margin: jt,
261
263
  children: [
262
- Fe && /* @__PURE__ */ _(ue, {
263
- ...pt,
264
- horizontal: We ?? !J,
265
- vertical: Ge ?? J,
266
- strokeDasharray: Ue ? "3 3" : void 0
264
+ Le && /* @__PURE__ */ v(de, {
265
+ ..._t,
266
+ horizontal: qe ?? !q,
267
+ vertical: Je ?? q,
268
+ strokeDasharray: Ke ? "3 3" : void 0
267
269
  }),
268
- J ? Et() : Dt(),
269
- Ie && /* @__PURE__ */ _(a, {
270
- ...Le ? {} : { cursor: !1 },
271
- content: Ke ?? /* @__PURE__ */ _(o, {})
270
+ q ? Mt() : Nt(),
271
+ Re && /* @__PURE__ */ v(a, {
272
+ ...ze ? {} : { cursor: !1 },
273
+ content: Ye ?? /* @__PURE__ */ v(o, {})
272
274
  }),
273
- Re && /* @__PURE__ */ _(r, {
274
- verticalAlign: P,
275
- content: Ot
275
+ Be && /* @__PURE__ */ v(r, {
276
+ verticalAlign: F,
277
+ content: Pt
276
278
  }),
277
- T.map(kt),
278
- gt.map(At),
279
- St.map(jt),
280
- $e && /* @__PURE__ */ _(le, {
279
+ T.map(Ft),
280
+ xt.map(It),
281
+ Dt.map(Lt),
282
+ rt && /* @__PURE__ */ v(ue, {
281
283
  dataKey: E,
282
- tickFormatter: J ? I : F,
284
+ tickFormatter: q ? z : R,
283
285
  ...d({
284
- brushHeight: et,
285
- brushAriaLabel: tt
286
+ brushHeight: it,
287
+ brushAriaLabel: at
286
288
  })
287
289
  })
288
290
  ]
@@ -292,6 +294,6 @@ var x = t("", {
292
294
  });
293
295
  C.displayName = "ComposedChart";
294
296
  //#endregion
295
- export { C as ComposedChart, x as composedChartVariants };
297
+ export { C as ComposedChart, _e as composedChartVariants };
296
298
 
297
299
  //# sourceMappingURL=composed-chart.js.map