@acronis-platform/ui-react 5.2.0 → 5.3.1
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 +107 -107
- package/dist/components/ui/area-chart/area-chart.js.map +1 -1
- package/dist/components/ui/bar-chart/bar-chart.js +162 -162
- package/dist/components/ui/bar-chart/bar-chart.js.map +1 -1
- package/dist/components/ui/category-bar/category-bar.js +50 -50
- package/dist/components/ui/category-bar/category-bar.js.map +1 -1
- package/dist/components/ui/chart/chart.js +53 -40
- package/dist/components/ui/chart/chart.js.map +1 -1
- package/dist/components/ui/composed-chart/composed-chart.js +146 -146
- package/dist/components/ui/composed-chart/composed-chart.js.map +1 -1
- package/dist/components/ui/confidence-cone/confidence-cone.js +97 -97
- package/dist/components/ui/confidence-cone/confidence-cone.js.map +1 -1
- package/dist/components/ui/data-table/data-table-bulk-actions-bar.js +1 -1
- package/dist/components/ui/data-table/data-table-bulk-actions-bar.js.map +1 -1
- package/dist/components/ui/data-table/data-table-view-options.js +3 -2
- package/dist/components/ui/data-table/data-table-view-options.js.map +1 -1
- package/dist/components/ui/data-table/data-table.js +136 -132
- package/dist/components/ui/data-table/data-table.js.map +1 -1
- package/dist/components/ui/funnel-chart/funnel-chart.js +120 -120
- package/dist/components/ui/funnel-chart/funnel-chart.js.map +1 -1
- package/dist/components/ui/histogram/histogram.js +58 -58
- package/dist/components/ui/histogram/histogram.js.map +1 -1
- package/dist/components/ui/line-chart/line-chart.js +91 -91
- package/dist/components/ui/line-chart/line-chart.js.map +1 -1
- package/dist/components/ui/pie-chart/pie-chart.js +92 -92
- package/dist/components/ui/pie-chart/pie-chart.js.map +1 -1
- package/dist/components/ui/radar-chart/radar-chart.js +37 -37
- package/dist/components/ui/radar-chart/radar-chart.js.map +1 -1
- package/dist/components/ui/radial-bar-chart/radial-bar-chart.js +112 -112
- package/dist/components/ui/radial-bar-chart/radial-bar-chart.js.map +1 -1
- package/dist/components/ui/sankey-chart/sankey-chart.js +78 -78
- package/dist/components/ui/sankey-chart/sankey-chart.js.map +1 -1
- package/dist/components/ui/scatter-chart/scatter-chart.js +57 -57
- package/dist/components/ui/scatter-chart/scatter-chart.js.map +1 -1
- package/dist/components/ui/table/table-view-options.js +88 -33
- package/dist/components/ui/table/table-view-options.js.map +1 -1
- package/dist/components/ui/table/table.js.map +1 -1
- package/dist/components/ui/treemap/treemap.js +87 -87
- package/dist/components/ui/treemap/treemap.js.map +1 -1
- package/dist/index.js +111 -111
- package/dist/llms/data-table.md +33 -7
- package/dist/llms/table.md +56 -23
- package/dist/llms.txt +1 -1
- package/dist/react.js +111 -111
- package/dist/src/components/ui/chart/chart.d.ts +1 -0
- package/dist/src/components/ui/chart/index.d.ts +1 -1
- package/dist/src/components/ui/data-table/data-table-view-options.d.ts +1 -1
- package/dist/src/components/ui/data-table/data-table.d.ts +11 -1
- package/dist/src/components/ui/data-table/data-table.docs.d.ts +6 -0
- package/dist/src/components/ui/radial-bar-chart/radial-bar-chart.d.ts +3 -2
- package/dist/src/components/ui/sankey-chart/sankey-chart.d.ts +1 -1
- package/dist/src/components/ui/table/table-view-options.d.ts +9 -1
- package/dist/src/components/ui/treemap/treemap.d.ts +3 -2
- package/dist/ui-react.css +1 -1
- package/package.json +3 -3
|
@@ -1,154 +1,154 @@
|
|
|
1
1
|
"use client";
|
|
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
|
-
import { ChartContainer as n, ChartLegend as r, ChartLegendContent as i, ChartTooltip as a, ChartTooltipContent as o } from "../chart/chart.js";
|
|
5
|
-
import { CHART_LABEL_MARGIN as
|
|
6
|
-
import * as
|
|
7
|
-
import { Fragment as
|
|
8
|
-
import { Area as
|
|
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";
|
|
9
9
|
//#region src/components/ui/composed-chart/composed-chart.tsx
|
|
10
|
-
var
|
|
10
|
+
var x = t("", {
|
|
11
11
|
variants: { orientation: {
|
|
12
12
|
vertical: "",
|
|
13
13
|
horizontal: ""
|
|
14
14
|
} },
|
|
15
15
|
defaultVariants: { orientation: "vertical" }
|
|
16
|
-
}),
|
|
16
|
+
}), ge = 100, _e = 50, S = "secondary", ve = {
|
|
17
17
|
top: 5,
|
|
18
18
|
right: 5,
|
|
19
19
|
bottom: 5,
|
|
20
20
|
left: 5
|
|
21
|
-
},
|
|
22
|
-
let q =
|
|
23
|
-
animate:
|
|
24
|
-
animationDuration:
|
|
25
|
-
animationBegin:
|
|
26
|
-
animationEasing:
|
|
27
|
-
}), J = k === "horizontal",
|
|
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) => {
|
|
28
28
|
let t = e === "secondary" ? S : void 0;
|
|
29
29
|
return J ? { xAxisId: t } : { yAxisId: t };
|
|
30
|
-
},
|
|
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) => ({
|
|
31
31
|
area: e,
|
|
32
32
|
range: f(e, w, E)
|
|
33
|
-
})).filter((e) => e.range !== void 0),
|
|
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
34
|
let t = e.category === void 0 ? void 0 : f({
|
|
35
35
|
from: e.category,
|
|
36
36
|
to: e.category
|
|
37
|
-
}, w, E), n = e.yAxis ?? (typeof e.average == "string" ?
|
|
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
38
|
return {
|
|
39
39
|
line: e,
|
|
40
40
|
lineAxis: n,
|
|
41
41
|
position: r === void 0 ? i === void 0 ? void 0 : J ? { y: i } : { x: i } : J ? { x: r } : { y: r },
|
|
42
42
|
isVerticalRule: r !== void 0 === J
|
|
43
43
|
};
|
|
44
|
-
}).filter((e) => e.position !== void 0),
|
|
45
|
-
...
|
|
46
|
-
...
|
|
47
|
-
...
|
|
48
|
-
...
|
|
49
|
-
} : void 0,
|
|
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();
|
|
50
50
|
T.forEach((e, t) => {
|
|
51
|
-
e.stackId && e.type !== "line" &&
|
|
51
|
+
e.stackId && e.type !== "line" && $.set(`${e.type}-${e.stackId}`, t);
|
|
52
52
|
});
|
|
53
|
-
let
|
|
54
|
-
/* @__PURE__ */
|
|
53
|
+
let Et = () => /* @__PURE__ */ v(oe, { children: [
|
|
54
|
+
/* @__PURE__ */ _(y, {
|
|
55
55
|
type: "number",
|
|
56
|
-
hide: !
|
|
56
|
+
hide: !ze || X,
|
|
57
57
|
tickLine: !1,
|
|
58
58
|
axisLine: !1,
|
|
59
|
-
unit:
|
|
60
|
-
tickFormatter:
|
|
61
|
-
angle:
|
|
62
|
-
interval:
|
|
63
|
-
textAnchor:
|
|
64
|
-
tickCount:
|
|
65
|
-
domain:
|
|
66
|
-
height:
|
|
67
|
-
label:
|
|
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
|
|
68
68
|
}),
|
|
69
|
-
/* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ _(b, {
|
|
70
70
|
dataKey: E,
|
|
71
71
|
type: "category",
|
|
72
|
-
hide: !
|
|
72
|
+
hide: !Be,
|
|
73
73
|
tickLine: !1,
|
|
74
74
|
axisLine: !1,
|
|
75
|
-
tickFormatter:
|
|
76
|
-
width:
|
|
77
|
-
label:
|
|
75
|
+
tickFormatter: I,
|
|
76
|
+
width: A ? 96 : 80,
|
|
77
|
+
label: ct
|
|
78
78
|
}),
|
|
79
|
-
Y && /* @__PURE__ */
|
|
79
|
+
Y && /* @__PURE__ */ _(y, {
|
|
80
80
|
xAxisId: S,
|
|
81
81
|
type: "number",
|
|
82
|
-
hide: !
|
|
82
|
+
hide: !V,
|
|
83
83
|
orientation: "top",
|
|
84
84
|
tickLine: !1,
|
|
85
85
|
axisLine: !1,
|
|
86
|
-
unit:
|
|
87
|
-
tickFormatter:
|
|
88
|
-
tickCount:
|
|
89
|
-
domain:
|
|
90
|
-
label:
|
|
86
|
+
unit: U,
|
|
87
|
+
tickFormatter: W,
|
|
88
|
+
tickCount: G,
|
|
89
|
+
domain: ft,
|
|
90
|
+
label: ut
|
|
91
91
|
})
|
|
92
|
-
] }),
|
|
93
|
-
/* @__PURE__ */
|
|
92
|
+
] }), Dt = () => /* @__PURE__ */ v(oe, { children: [
|
|
93
|
+
/* @__PURE__ */ _(y, {
|
|
94
94
|
dataKey: E,
|
|
95
95
|
type: "category",
|
|
96
|
-
hide: !
|
|
96
|
+
hide: !ze,
|
|
97
97
|
tickLine: !1,
|
|
98
98
|
axisLine: !1,
|
|
99
99
|
tickMargin: 8,
|
|
100
|
-
tickFormatter:
|
|
101
|
-
angle:
|
|
102
|
-
interval:
|
|
103
|
-
textAnchor:
|
|
104
|
-
height:
|
|
105
|
-
label:
|
|
100
|
+
tickFormatter: F,
|
|
101
|
+
angle: L,
|
|
102
|
+
interval: R,
|
|
103
|
+
textAnchor: m(L),
|
|
104
|
+
height: mt,
|
|
105
|
+
label: it
|
|
106
106
|
}),
|
|
107
|
-
/* @__PURE__ */
|
|
107
|
+
/* @__PURE__ */ _(b, {
|
|
108
108
|
type: "number",
|
|
109
|
-
hide: !
|
|
110
|
-
...
|
|
109
|
+
hide: !Be || X,
|
|
110
|
+
...B ? { orientation: B } : {},
|
|
111
111
|
tickLine: !1,
|
|
112
112
|
axisLine: !1,
|
|
113
|
-
unit:
|
|
114
|
-
tickFormatter:
|
|
115
|
-
tickCount:
|
|
116
|
-
domain:
|
|
117
|
-
width:
|
|
118
|
-
label:
|
|
113
|
+
unit: Ce,
|
|
114
|
+
tickFormatter: I,
|
|
115
|
+
tickCount: z,
|
|
116
|
+
domain: dt,
|
|
117
|
+
width: A ? 72 : void 0,
|
|
118
|
+
label: ct
|
|
119
119
|
}),
|
|
120
|
-
Y && /* @__PURE__ */
|
|
120
|
+
Y && /* @__PURE__ */ _(b, {
|
|
121
121
|
yAxisId: S,
|
|
122
122
|
type: "number",
|
|
123
|
-
hide: !
|
|
124
|
-
orientation:
|
|
123
|
+
hide: !V,
|
|
124
|
+
orientation: st,
|
|
125
125
|
tickLine: !1,
|
|
126
126
|
axisLine: !1,
|
|
127
|
-
unit:
|
|
128
|
-
tickFormatter:
|
|
129
|
-
tickCount:
|
|
130
|
-
domain:
|
|
131
|
-
width:
|
|
132
|
-
label:
|
|
127
|
+
unit: U,
|
|
128
|
+
tickFormatter: W,
|
|
129
|
+
tickCount: G,
|
|
130
|
+
domain: ft,
|
|
131
|
+
width: H ? 72 : void 0,
|
|
132
|
+
label: lt
|
|
133
133
|
})
|
|
134
|
-
] }),
|
|
135
|
-
verticalAlign:
|
|
136
|
-
payload: e.payload?.filter((e) => !
|
|
137
|
-
}) : /* @__PURE__ */
|
|
138
|
-
let n = e.color ?? `var(--color-${e.key})`, r =
|
|
139
|
-
labelPosition:
|
|
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,
|
|
140
140
|
isStacked: a !== void 0,
|
|
141
141
|
growingEnd: J ? "right" : "top"
|
|
142
|
-
}), p =
|
|
142
|
+
}), p = K ? /* @__PURE__ */ _(fe, {
|
|
143
143
|
dataKey: e.key,
|
|
144
144
|
position: f,
|
|
145
|
-
formatter: ie(
|
|
146
|
-
className:
|
|
145
|
+
formatter: ie(Qe),
|
|
146
|
+
className: te(f, { translucentSeries: e.type === "area" }),
|
|
147
147
|
fontSize: 12
|
|
148
148
|
}) : null;
|
|
149
149
|
if (e.type === "bar") {
|
|
150
|
-
let o = e.barRadius ??
|
|
151
|
-
return /* @__PURE__ */
|
|
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, {
|
|
152
152
|
dataKey: e.key,
|
|
153
153
|
...i,
|
|
154
154
|
fill: n,
|
|
@@ -172,17 +172,17 @@ var me = t("", {
|
|
|
172
172
|
strokeDasharray: e.strokeDasharray,
|
|
173
173
|
...e.strokeWidth === void 0 ? {} : { strokeWidth: e.strokeWidth }
|
|
174
174
|
},
|
|
175
|
-
...c ? { background: { fill:
|
|
176
|
-
...l ? { activeBar: { fillOpacity:
|
|
177
|
-
...
|
|
175
|
+
...c ? { background: { fill: ke } } : {},
|
|
176
|
+
...l ? { activeBar: { fillOpacity: ye } } : {},
|
|
177
|
+
...d,
|
|
178
178
|
...q,
|
|
179
179
|
children: p
|
|
180
180
|
}, e.key);
|
|
181
181
|
}
|
|
182
182
|
if (e.type === "area") {
|
|
183
|
-
let t = e.strokeWidth ??
|
|
184
|
-
return /* @__PURE__ */
|
|
185
|
-
type: e.curve ??
|
|
183
|
+
let t = e.strokeWidth ?? M, s = t === void 0 ? {} : { strokeWidth: t };
|
|
184
|
+
return /* @__PURE__ */ _(se, {
|
|
185
|
+
type: e.curve ?? j,
|
|
186
186
|
dataKey: e.key,
|
|
187
187
|
...i,
|
|
188
188
|
stroke: n,
|
|
@@ -190,45 +190,45 @@ var me = t("", {
|
|
|
190
190
|
fillOpacity: o,
|
|
191
191
|
zIndex: r,
|
|
192
192
|
...a ? { stackId: a } : {},
|
|
193
|
-
...
|
|
193
|
+
...s,
|
|
194
194
|
...e.strokeDasharray === void 0 ? {} : { strokeDasharray: e.strokeDasharray },
|
|
195
|
-
dot:
|
|
196
|
-
...
|
|
197
|
-
connectNulls:
|
|
198
|
-
...
|
|
195
|
+
dot: l ? { r: 3 } : !1,
|
|
196
|
+
...u === void 0 ? {} : { activeDot: u ? { r: 5 } : !1 },
|
|
197
|
+
connectNulls: c,
|
|
198
|
+
...d,
|
|
199
199
|
...q,
|
|
200
200
|
children: p
|
|
201
201
|
}, e.key);
|
|
202
202
|
}
|
|
203
|
-
return /* @__PURE__ */
|
|
204
|
-
type: e.curve ??
|
|
203
|
+
return /* @__PURE__ */ _(pe, {
|
|
204
|
+
type: e.curve ?? j,
|
|
205
205
|
dataKey: e.key,
|
|
206
206
|
...i,
|
|
207
207
|
stroke: n,
|
|
208
|
-
strokeWidth: e.strokeWidth ??
|
|
209
|
-
dot:
|
|
208
|
+
strokeWidth: e.strokeWidth ?? M ?? 2,
|
|
209
|
+
dot: l ? { r: 3 } : !1,
|
|
210
210
|
zIndex: r,
|
|
211
211
|
...e.strokeDasharray === void 0 ? {} : { strokeDasharray: e.strokeDasharray },
|
|
212
|
-
...
|
|
213
|
-
connectNulls:
|
|
214
|
-
...
|
|
212
|
+
...u === void 0 ? {} : { activeDot: u ? { r: 5 } : !1 },
|
|
213
|
+
connectNulls: c,
|
|
214
|
+
...d,
|
|
215
215
|
...q,
|
|
216
216
|
children: p
|
|
217
217
|
}, e.key);
|
|
218
|
-
},
|
|
218
|
+
}, At = ({ area: e, range: t }, n) => {
|
|
219
219
|
let [r, i] = t;
|
|
220
|
-
return /* @__PURE__ */
|
|
221
|
-
...
|
|
220
|
+
return /* @__PURE__ */ _(me, {
|
|
221
|
+
...pt,
|
|
222
222
|
...J ? {
|
|
223
|
-
y1:
|
|
224
|
-
y2:
|
|
223
|
+
y1: Q(r),
|
|
224
|
+
y2: Q(i)
|
|
225
225
|
} : {
|
|
226
|
-
x1:
|
|
227
|
-
x2:
|
|
226
|
+
x1: Q(r),
|
|
227
|
+
x2: Q(i)
|
|
228
228
|
},
|
|
229
229
|
fill: "var(--ui-background-surface-secondary)",
|
|
230
230
|
fillOpacity: .6,
|
|
231
|
-
zIndex:
|
|
231
|
+
zIndex: _e,
|
|
232
232
|
ifOverflow: "extendDomain",
|
|
233
233
|
label: e.label ? {
|
|
234
234
|
value: e.label,
|
|
@@ -237,52 +237,52 @@ var me = t("", {
|
|
|
237
237
|
fontSize: 12
|
|
238
238
|
} : void 0
|
|
239
239
|
}, `${e.label ?? "area"}-${n}`);
|
|
240
|
-
},
|
|
240
|
+
}, jt = ({ line: e, lineAxis: t, position: n, isVerticalRule: r }, i) => /* @__PURE__ */ _(he, {
|
|
241
241
|
...t === "secondary" && Y ? Z("secondary") : {},
|
|
242
242
|
...n,
|
|
243
|
-
...
|
|
243
|
+
...ne(e.label, e.labelPosition ?? (r ? "top" : "insideTopRight"))
|
|
244
244
|
}, `${e.label ?? "ref"}-${i}`);
|
|
245
|
-
return /* @__PURE__ */
|
|
246
|
-
ref:
|
|
245
|
+
return /* @__PURE__ */ _("div", {
|
|
246
|
+
ref: rt,
|
|
247
247
|
"data-orientation": k,
|
|
248
|
-
className: e(
|
|
249
|
-
...
|
|
250
|
-
children: /* @__PURE__ */
|
|
251
|
-
config:
|
|
248
|
+
className: e(x({ orientation: k }), t),
|
|
249
|
+
...nt,
|
|
250
|
+
children: /* @__PURE__ */ _(n, {
|
|
251
|
+
config: ae,
|
|
252
252
|
palette: C,
|
|
253
253
|
className: "size-full [&_.recharts-label]:fill-foreground",
|
|
254
|
-
children: /* @__PURE__ */
|
|
254
|
+
children: /* @__PURE__ */ v(de, {
|
|
255
255
|
data: w,
|
|
256
256
|
layout: J ? "vertical" : "horizontal",
|
|
257
|
-
barSize:
|
|
258
|
-
barGap:
|
|
259
|
-
barCategoryGap:
|
|
260
|
-
margin:
|
|
257
|
+
barSize: Te,
|
|
258
|
+
barGap: Ee,
|
|
259
|
+
barCategoryGap: De,
|
|
260
|
+
margin: Tt,
|
|
261
261
|
children: [
|
|
262
|
-
|
|
263
|
-
...
|
|
264
|
-
horizontal:
|
|
265
|
-
vertical:
|
|
266
|
-
strokeDasharray:
|
|
262
|
+
Fe && /* @__PURE__ */ _(ue, {
|
|
263
|
+
...pt,
|
|
264
|
+
horizontal: We ?? !J,
|
|
265
|
+
vertical: Ge ?? J,
|
|
266
|
+
strokeDasharray: Ue ? "3 3" : void 0
|
|
267
267
|
}),
|
|
268
|
-
J ?
|
|
269
|
-
|
|
270
|
-
...
|
|
271
|
-
content:
|
|
268
|
+
J ? Et() : Dt(),
|
|
269
|
+
Ie && /* @__PURE__ */ _(a, {
|
|
270
|
+
...Le ? {} : { cursor: !1 },
|
|
271
|
+
content: Ke ?? /* @__PURE__ */ _(o, {})
|
|
272
272
|
}),
|
|
273
|
-
|
|
274
|
-
verticalAlign:
|
|
275
|
-
content:
|
|
273
|
+
Re && /* @__PURE__ */ _(r, {
|
|
274
|
+
verticalAlign: P,
|
|
275
|
+
content: Ot
|
|
276
276
|
}),
|
|
277
|
-
T.map(
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
277
|
+
T.map(kt),
|
|
278
|
+
gt.map(At),
|
|
279
|
+
St.map(jt),
|
|
280
|
+
$e && /* @__PURE__ */ _(le, {
|
|
281
281
|
dataKey: E,
|
|
282
|
-
tickFormatter: J ?
|
|
283
|
-
...
|
|
284
|
-
brushHeight:
|
|
285
|
-
brushAriaLabel:
|
|
282
|
+
tickFormatter: J ? I : F,
|
|
283
|
+
...d({
|
|
284
|
+
brushHeight: et,
|
|
285
|
+
brushAriaLabel: tt
|
|
286
286
|
})
|
|
287
287
|
})
|
|
288
288
|
]
|
|
@@ -292,6 +292,6 @@ var me = t("", {
|
|
|
292
292
|
});
|
|
293
293
|
C.displayName = "ComposedChart";
|
|
294
294
|
//#endregion
|
|
295
|
-
export { C as ComposedChart,
|
|
295
|
+
export { C as ComposedChart, x as composedChartVariants };
|
|
296
296
|
|
|
297
297
|
//# sourceMappingURL=composed-chart.js.map
|