@acronis-platform/ui-react 5.4.4 → 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.
- package/dist/components/ui/area-chart/area-chart.js +114 -113
- package/dist/components/ui/area-chart/area-chart.js.map +1 -1
- package/dist/components/ui/bar-chart/bar-chart.js +53 -49
- package/dist/components/ui/bar-chart/bar-chart.js.map +1 -1
- package/dist/components/ui/chart/chart.js +108 -97
- package/dist/components/ui/chart/chart.js.map +1 -1
- package/dist/components/ui/composed-chart/composed-chart.js +134 -130
- package/dist/components/ui/composed-chart/composed-chart.js.map +1 -1
- package/dist/components/ui/confidence-cone/confidence-cone.js +36 -35
- package/dist/components/ui/confidence-cone/confidence-cone.js.map +1 -1
- package/dist/components/ui/dialog/dialog.js +69 -67
- package/dist/components/ui/dialog/dialog.js.map +1 -1
- package/dist/components/ui/funnel-chart/funnel-chart.js +38 -37
- package/dist/components/ui/funnel-chart/funnel-chart.js.map +1 -1
- package/dist/components/ui/line-chart/line-chart.js +35 -34
- package/dist/components/ui/line-chart/line-chart.js.map +1 -1
- package/dist/components/ui/pie-chart/pie-chart.js +28 -27
- package/dist/components/ui/pie-chart/pie-chart.js.map +1 -1
- package/dist/components/ui/radar-chart/radar-chart.js +68 -65
- package/dist/components/ui/radar-chart/radar-chart.js.map +1 -1
- package/dist/components/ui/radial-bar-chart/radial-bar-chart.js +64 -63
- package/dist/components/ui/radial-bar-chart/radial-bar-chart.js.map +1 -1
- package/dist/components/ui/scatter-chart/scatter-chart.js +26 -26
- package/dist/components/ui/scatter-chart/scatter-chart.js.map +1 -1
- package/dist/components/ui/treemap/treemap.js +22 -22
- package/dist/components/ui/treemap/treemap.js.map +1 -1
- package/dist/index.js +106 -106
- package/dist/llms/area-chart.md +1 -0
- package/dist/llms/bar-chart.md +1 -0
- package/dist/llms/chart.md +10 -0
- package/dist/llms/composed-chart.md +1 -0
- package/dist/llms/confidence-cone.md +1 -0
- package/dist/llms/funnel-chart.md +1 -0
- package/dist/llms/line-chart.md +1 -0
- package/dist/llms/pie-chart.md +1 -0
- package/dist/llms/radar-chart.md +1 -0
- package/dist/llms/radial-bar-chart.md +1 -0
- package/dist/llms/scatter-chart.md +1 -0
- package/dist/llms/treemap.md +1 -0
- package/dist/llms.txt +1 -1
- package/dist/react.js +106 -106
- package/dist/src/components/ui/area-chart/area-chart.d.ts +6 -1
- package/dist/src/components/ui/bar-chart/bar-chart.d.ts +8 -2
- package/dist/src/components/ui/category-bar/category-bar.d.ts +1 -1
- package/dist/src/components/ui/chart/__stories__/palette-control.d.ts +16 -0
- package/dist/src/components/ui/chart/chart.d.ts +12 -1
- package/dist/src/components/ui/chart/index.d.ts +1 -1
- package/dist/src/components/ui/composed-chart/composed-chart.d.ts +6 -1
- package/dist/src/components/ui/confidence-cone/confidence-cone.d.ts +6 -1
- package/dist/src/components/ui/funnel-chart/funnel-chart.d.ts +6 -1
- package/dist/src/components/ui/grid/grid.d.ts +1 -1
- package/dist/src/components/ui/line-chart/line-chart.d.ts +6 -1
- package/dist/src/components/ui/pie-chart/pie-chart.d.ts +6 -1
- package/dist/src/components/ui/progress-circle/progress-circle.d.ts +1 -1
- package/dist/src/components/ui/radar-chart/radar-chart.d.ts +9 -1
- package/dist/src/components/ui/radial-bar-chart/radial-bar-chart.d.ts +6 -1
- package/dist/src/components/ui/scatter-chart/scatter-chart.d.ts +6 -1
- package/dist/src/components/ui/spinner/spinner.d.ts +1 -1
- package/dist/src/components/ui/stack/stack.d.ts +1 -1
- package/dist/src/components/ui/treemap/treemap.d.ts +6 -1
- package/dist/ui-react.css +1 -1
- 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
|
|
6
|
-
import { mergeXAxisLayoutMargin as
|
|
7
|
-
import * as
|
|
8
|
-
import { Fragment as
|
|
9
|
-
import { Area as
|
|
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
|
|
11
|
+
var ve = t("", {
|
|
12
12
|
variants: { orientation: {
|
|
13
13
|
vertical: "",
|
|
14
14
|
horizontal: ""
|
|
15
15
|
} },
|
|
16
16
|
defaultVariants: { orientation: "vertical" }
|
|
17
|
-
}),
|
|
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
|
-
},
|
|
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:
|
|
25
|
-
animationDuration:
|
|
26
|
-
animationBegin:
|
|
27
|
-
animationEasing:
|
|
28
|
-
}), q =
|
|
29
|
-
let t = e === "secondary" ?
|
|
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 ?
|
|
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,
|
|
34
|
-
})).filter((e) => e.range !== void 0), St = Y ? "secondary" : "primary", Ct = (e) => e.yAxis ?? "primary", wt = new Map(
|
|
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
|
-
},
|
|
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 =
|
|
46
|
-
...
|
|
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
|
-
...
|
|
50
|
-
} : void 0, jt =
|
|
51
|
-
|
|
52
|
-
e.stackId && e.type !== "line" &&
|
|
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
|
|
55
|
-
/* @__PURE__ */
|
|
54
|
+
let Nt = () => /* @__PURE__ */ v(ce, { children: [
|
|
55
|
+
/* @__PURE__ */ _(y, {
|
|
56
56
|
type: "number",
|
|
57
|
-
hide: !
|
|
57
|
+
hide: !We || Y,
|
|
58
58
|
tickLine: !1,
|
|
59
59
|
axisLine: !1,
|
|
60
|
-
unit:
|
|
61
|
-
tickFormatter:
|
|
62
|
-
angle:
|
|
63
|
-
interval:
|
|
64
|
-
textAnchor:
|
|
65
|
-
tickCount:
|
|
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:
|
|
68
|
-
label:
|
|
67
|
+
height: Q.height,
|
|
68
|
+
label: lt
|
|
69
69
|
}),
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
-
dataKey:
|
|
70
|
+
/* @__PURE__ */ _(b, {
|
|
71
|
+
dataKey: T,
|
|
72
72
|
type: "category",
|
|
73
|
-
hide: !
|
|
73
|
+
hide: !Ge,
|
|
74
74
|
tickLine: !1,
|
|
75
75
|
axisLine: !1,
|
|
76
|
-
tickFormatter:
|
|
77
|
-
width:
|
|
76
|
+
tickFormatter: F,
|
|
77
|
+
width: k ? 96 : 80,
|
|
78
78
|
label: ft
|
|
79
79
|
}),
|
|
80
|
-
J && /* @__PURE__ */
|
|
81
|
-
xAxisId:
|
|
80
|
+
J && /* @__PURE__ */ _(y, {
|
|
81
|
+
xAxisId: x,
|
|
82
82
|
type: "number",
|
|
83
|
-
hide: !
|
|
83
|
+
hide: !B,
|
|
84
84
|
orientation: "top",
|
|
85
85
|
tickLine: !1,
|
|
86
86
|
axisLine: !1,
|
|
87
|
-
unit:
|
|
88
|
-
tickFormatter:
|
|
89
|
-
tickCount:
|
|
87
|
+
unit: H,
|
|
88
|
+
tickFormatter: U,
|
|
89
|
+
tickCount: W,
|
|
90
90
|
domain: gt,
|
|
91
91
|
label: mt
|
|
92
92
|
})
|
|
93
|
-
] }),
|
|
94
|
-
/* @__PURE__ */
|
|
95
|
-
dataKey:
|
|
93
|
+
] }), Pt = () => /* @__PURE__ */ v(ce, { children: [
|
|
94
|
+
/* @__PURE__ */ _(y, {
|
|
95
|
+
dataKey: T,
|
|
96
96
|
type: "category",
|
|
97
|
-
hide: !
|
|
97
|
+
hide: !We,
|
|
98
98
|
tickLine: !1,
|
|
99
99
|
axisLine: !1,
|
|
100
100
|
tickMargin: 8,
|
|
101
|
-
tickFormatter:
|
|
102
|
-
angle:
|
|
103
|
-
interval:
|
|
104
|
-
textAnchor:
|
|
105
|
-
height:
|
|
106
|
-
label:
|
|
101
|
+
tickFormatter: P,
|
|
102
|
+
angle: I,
|
|
103
|
+
interval: L,
|
|
104
|
+
textAnchor: m(I),
|
|
105
|
+
height: Q.height,
|
|
106
|
+
label: lt
|
|
107
107
|
}),
|
|
108
|
-
/* @__PURE__ */
|
|
108
|
+
/* @__PURE__ */ _(b, {
|
|
109
109
|
type: "number",
|
|
110
|
-
hide: !
|
|
111
|
-
...
|
|
110
|
+
hide: !Ge || Y,
|
|
111
|
+
...z ? { orientation: z } : {},
|
|
112
112
|
tickLine: !1,
|
|
113
113
|
axisLine: !1,
|
|
114
|
-
unit:
|
|
115
|
-
tickFormatter:
|
|
116
|
-
tickCount:
|
|
114
|
+
unit: De,
|
|
115
|
+
tickFormatter: F,
|
|
116
|
+
tickCount: R,
|
|
117
117
|
domain: ht,
|
|
118
|
-
width:
|
|
118
|
+
width: k ? 72 : void 0,
|
|
119
119
|
label: ft
|
|
120
120
|
}),
|
|
121
|
-
J && /* @__PURE__ */
|
|
122
|
-
yAxisId:
|
|
121
|
+
J && /* @__PURE__ */ _(b, {
|
|
122
|
+
yAxisId: x,
|
|
123
123
|
type: "number",
|
|
124
|
-
hide: !
|
|
124
|
+
hide: !B,
|
|
125
125
|
orientation: dt,
|
|
126
126
|
tickLine: !1,
|
|
127
127
|
axisLine: !1,
|
|
128
|
-
unit:
|
|
129
|
-
tickFormatter:
|
|
130
|
-
tickCount:
|
|
128
|
+
unit: H,
|
|
129
|
+
tickFormatter: U,
|
|
130
|
+
tickCount: W,
|
|
131
131
|
domain: gt,
|
|
132
|
-
width:
|
|
132
|
+
width: V ? 72 : void 0,
|
|
133
133
|
label: pt
|
|
134
134
|
})
|
|
135
|
-
] }),
|
|
136
|
-
verticalAlign:
|
|
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__ */
|
|
139
|
-
|
|
140
|
-
|
|
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 =
|
|
147
|
+
}), p = G ? /* @__PURE__ */ _(me, {
|
|
144
148
|
dataKey: e.key,
|
|
145
149
|
position: f,
|
|
146
|
-
formatter:
|
|
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 ??
|
|
152
|
-
return /* @__PURE__ */
|
|
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:
|
|
177
|
-
...l ? { activeBar: { fillOpacity:
|
|
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 ??
|
|
185
|
-
return /* @__PURE__ */
|
|
186
|
-
type: e.curve ??
|
|
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__ */
|
|
205
|
-
type: e.curve ??
|
|
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 ??
|
|
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
|
-
},
|
|
223
|
+
}, Lt = ({ area: e, range: t }, n) => {
|
|
220
224
|
let [r, i] = t;
|
|
221
|
-
return /* @__PURE__ */
|
|
225
|
+
return /* @__PURE__ */ _(ge, {
|
|
222
226
|
..._t,
|
|
223
227
|
...q ? {
|
|
224
|
-
y1:
|
|
225
|
-
y2:
|
|
228
|
+
y1: $(r),
|
|
229
|
+
y2: $(i)
|
|
226
230
|
} : {
|
|
227
|
-
x1:
|
|
228
|
-
x2:
|
|
231
|
+
x1: $(r),
|
|
232
|
+
x2: $(i)
|
|
229
233
|
},
|
|
230
234
|
fill: "var(--ui-background-surface-secondary)",
|
|
231
235
|
fillOpacity: .6,
|
|
232
|
-
zIndex:
|
|
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
|
-
},
|
|
242
|
-
...t === "secondary" && J ?
|
|
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__ */
|
|
247
|
-
ref:
|
|
248
|
-
"data-orientation":
|
|
249
|
-
className: e(
|
|
250
|
-
...
|
|
251
|
-
children: /* @__PURE__ */
|
|
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:
|
|
254
|
-
palette:
|
|
257
|
+
config: S,
|
|
258
|
+
palette: we,
|
|
255
259
|
className: "size-full [&_.recharts-label]:fill-foreground",
|
|
256
|
-
children: /* @__PURE__ */
|
|
257
|
-
data:
|
|
260
|
+
children: /* @__PURE__ */ v(pe, {
|
|
261
|
+
data: C,
|
|
258
262
|
layout: q ? "vertical" : "horizontal",
|
|
259
|
-
barSize:
|
|
260
|
-
barGap:
|
|
261
|
-
barCategoryGap:
|
|
263
|
+
barSize: ke,
|
|
264
|
+
barGap: Ae,
|
|
265
|
+
barCategoryGap: je,
|
|
262
266
|
margin: jt,
|
|
263
267
|
children: [
|
|
264
|
-
|
|
268
|
+
ze && /* @__PURE__ */ _(fe, {
|
|
265
269
|
..._t,
|
|
266
|
-
horizontal:
|
|
267
|
-
vertical:
|
|
268
|
-
strokeDasharray:
|
|
270
|
+
horizontal: Ye ?? !q,
|
|
271
|
+
vertical: Xe ?? q,
|
|
272
|
+
strokeDasharray: Je ? "3 3" : void 0
|
|
269
273
|
}),
|
|
270
|
-
q ?
|
|
271
|
-
|
|
272
|
-
...
|
|
273
|
-
content:
|
|
274
|
+
q ? Nt() : Pt(),
|
|
275
|
+
Be && /* @__PURE__ */ _(a, {
|
|
276
|
+
...Ve ? {} : { cursor: !1 },
|
|
277
|
+
content: Ze ?? /* @__PURE__ */ _(o, {})
|
|
274
278
|
}),
|
|
275
|
-
|
|
276
|
-
verticalAlign:
|
|
277
|
-
content:
|
|
279
|
+
He && /* @__PURE__ */ _(r, {
|
|
280
|
+
verticalAlign: N,
|
|
281
|
+
content: Ft
|
|
278
282
|
}),
|
|
279
|
-
|
|
280
|
-
xt.map(
|
|
281
|
-
Dt.map(
|
|
282
|
-
|
|
283
|
-
dataKey:
|
|
284
|
-
tickFormatter: q ?
|
|
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:
|
|
287
|
-
brushAriaLabel:
|
|
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
|
-
|
|
299
|
+
S.displayName = "ComposedChart";
|
|
296
300
|
//#endregion
|
|
297
|
-
export {
|
|
301
|
+
export { S as ComposedChart, ve as composedChartVariants };
|
|
298
302
|
|
|
299
303
|
//# sourceMappingURL=composed-chart.js.map
|