@acronis-platform/ui-react 5.4.5 → 5.5.0

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