@acronis-platform/ui-react 0.58.0 → 0.61.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/README.md +5 -5
- package/dist/components/ui/app-shell/app-shell.js.map +1 -1
- package/dist/components/ui/area-chart/area-chart.js +210 -119
- package/dist/components/ui/area-chart/area-chart.js.map +1 -1
- package/dist/components/ui/avatar/avatar.js +26 -23
- package/dist/components/ui/avatar/avatar.js.map +1 -1
- package/dist/components/ui/bar-chart/bar-chart.js +595 -149
- package/dist/components/ui/bar-chart/bar-chart.js.map +1 -1
- package/dist/components/ui/calendar/calendar.js +17 -15
- package/dist/components/ui/calendar/calendar.js.map +1 -1
- package/dist/components/ui/carousel-dialog/carousel-dialog.js +87 -0
- package/dist/components/ui/carousel-dialog/carousel-dialog.js.map +1 -0
- package/dist/components/ui/category-bar/category-bar.js +147 -0
- package/dist/components/ui/category-bar/category-bar.js.map +1 -0
- package/dist/components/ui/chart/chart-format.js +170 -0
- package/dist/components/ui/chart/chart-format.js.map +1 -0
- package/dist/components/ui/chart/chart.js +204 -150
- package/dist/components/ui/chart/chart.js.map +1 -1
- package/dist/components/ui/composed-chart/composed-chart.js +423 -98
- package/dist/components/ui/composed-chart/composed-chart.js.map +1 -1
- package/dist/components/ui/confidence-cone/confidence-cone.js +306 -172
- package/dist/components/ui/confidence-cone/confidence-cone.js.map +1 -1
- package/dist/components/ui/dialog/dialog.js +29 -29
- package/dist/components/ui/dialog/dialog.js.map +1 -1
- package/dist/components/ui/dialog-footer-carousel/dialog-footer-carousel.js +57 -0
- package/dist/components/ui/dialog-footer-carousel/dialog-footer-carousel.js.map +1 -0
- package/dist/components/ui/dialog-footer-default/dialog-footer-default.js +1 -1
- package/dist/components/ui/dialog-footer-default/dialog-footer-default.js.map +1 -1
- package/dist/components/ui/dialog-welcome/dialog-welcome.js +272 -0
- package/dist/components/ui/dialog-welcome/dialog-welcome.js.map +1 -0
- package/dist/components/ui/funnel-chart/funnel-chart.js +245 -51
- package/dist/components/ui/funnel-chart/funnel-chart.js.map +1 -1
- package/dist/components/ui/histogram/histogram.js +96 -64
- package/dist/components/ui/histogram/histogram.js.map +1 -1
- package/dist/components/ui/input/input.js.map +1 -1
- package/dist/components/ui/line-chart/line-chart.js +230 -159
- package/dist/components/ui/line-chart/line-chart.js.map +1 -1
- package/dist/components/ui/metric/metric.js +88 -70
- package/dist/components/ui/metric/metric.js.map +1 -1
- package/dist/components/ui/pie-chart/pie-chart.js +234 -80
- package/dist/components/ui/pie-chart/pie-chart.js.map +1 -1
- package/dist/components/ui/radar-chart/radar-chart.js +210 -57
- package/dist/components/ui/radar-chart/radar-chart.js.map +1 -1
- package/dist/components/ui/radial-bar-chart/radial-bar-chart.js +358 -50
- package/dist/components/ui/radial-bar-chart/radial-bar-chart.js.map +1 -1
- package/dist/components/ui/sankey-chart/sankey-chart.js +199 -0
- package/dist/components/ui/sankey-chart/sankey-chart.js.map +1 -0
- package/dist/components/ui/scatter-chart/scatter-chart.js +86 -50
- package/dist/components/ui/scatter-chart/scatter-chart.js.map +1 -1
- package/dist/components/ui/timeline/timeline.js +206 -142
- package/dist/components/ui/timeline/timeline.js.map +1 -1
- package/dist/components/ui/toolbar/toolbar.js +82 -92
- package/dist/components/ui/toolbar/toolbar.js.map +1 -1
- package/dist/components/ui/treemap/treemap.js +183 -59
- package/dist/components/ui/treemap/treemap.js.map +1 -1
- package/dist/index.js +481 -439
- package/dist/index.js.map +1 -1
- package/dist/lib/breakpoints.js +9 -6
- package/dist/lib/breakpoints.js.map +1 -1
- package/dist/node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.2.6/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js +25 -0
- package/dist/node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.2.6/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js.map +1 -0
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +36 -0
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js.map +1 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js +1205 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js.map +1 -0
- package/dist/react.js +481 -439
- package/dist/react.js.map +1 -1
- package/dist/src/components/ui/area-chart/area-chart.d.ts +52 -17
- package/dist/src/components/ui/area-chart/index.d.ts +1 -1
- package/dist/src/components/ui/avatar/avatar.d.ts +1 -1
- package/dist/src/components/ui/bar-chart/bar-chart.d.ts +152 -29
- package/dist/src/components/ui/bar-chart/index.d.ts +1 -1
- package/dist/src/components/ui/button/button.d.ts +1 -1
- package/dist/src/components/ui/button-menu/button-menu.d.ts +1 -1
- package/dist/src/components/ui/carousel-dialog/carousel-dialog.d.ts +28 -0
- package/dist/src/components/ui/carousel-dialog/index.d.ts +1 -0
- package/dist/src/components/ui/category-bar/category-bar.d.ts +51 -0
- package/dist/src/components/ui/category-bar/index.d.ts +1 -0
- package/dist/src/components/ui/chart/__tests__/chart-format.test.d.ts +1 -0
- package/dist/src/components/ui/chart/__tests__/chart-layout.d.ts +63 -0
- package/dist/src/components/ui/chart/__tests__/chart-layout.test.d.ts +1 -0
- package/dist/src/components/ui/chart/chart-format.d.ts +526 -0
- package/dist/src/components/ui/chart/chart.d.ts +11 -3
- package/dist/src/components/ui/chart/index.d.ts +3 -1
- package/dist/src/components/ui/composed-chart/composed-chart.d.ts +154 -20
- package/dist/src/components/ui/composed-chart/index.d.ts +1 -1
- package/dist/src/components/ui/confidence-cone/confidence-cone.d.ts +138 -37
- package/dist/src/components/ui/confidence-cone/index.d.ts +1 -1
- package/dist/src/components/ui/dialog-footer-carousel/dialog-footer-carousel.d.ts +9 -0
- package/dist/src/components/ui/dialog-footer-carousel/index.d.ts +1 -0
- package/dist/src/components/ui/dialog-welcome/dialog-welcome.d.ts +54 -0
- package/dist/src/components/ui/dialog-welcome/dialog-welcome.docs.d.ts +55 -0
- package/dist/src/components/ui/dialog-welcome/index.d.ts +1 -0
- package/dist/src/components/ui/funnel-chart/funnel-chart.d.ts +201 -3
- package/dist/src/components/ui/funnel-chart/index.d.ts +1 -1
- package/dist/src/components/ui/histogram/histogram.d.ts +2 -17
- package/dist/src/components/ui/line-chart/index.d.ts +1 -1
- package/dist/src/components/ui/line-chart/line-chart.d.ts +50 -17
- package/dist/src/components/ui/pie-chart/index.d.ts +1 -1
- package/dist/src/components/ui/pie-chart/pie-chart.d.ts +145 -4
- package/dist/src/components/ui/radar-chart/index.d.ts +1 -1
- package/dist/src/components/ui/radar-chart/radar-chart.d.ts +219 -6
- package/dist/src/components/ui/radial-bar-chart/index.d.ts +1 -1
- package/dist/src/components/ui/radial-bar-chart/radial-bar-chart.d.ts +215 -9
- package/dist/src/components/ui/sankey-chart/index.d.ts +2 -0
- package/dist/src/components/ui/sankey-chart/sankey-chart.d.ts +69 -0
- package/dist/src/components/ui/scatter-chart/scatter-chart.d.ts +2 -17
- package/dist/src/components/ui/timeline/index.d.ts +1 -1
- package/dist/src/components/ui/timeline/timeline.d.ts +79 -20
- package/dist/src/components/ui/treemap/index.d.ts +1 -1
- package/dist/src/components/ui/treemap/treemap.d.ts +68 -8
- package/dist/src/index.d.ts +5 -1
- package/dist/ui-react.css +1 -1
- package/package.json +5 -4
- package/dist/components/ui/search-global/search-global.js +0 -60
- package/dist/components/ui/search-global/search-global.js.map +0 -1
- package/dist/src/components/ui/search-global/index.d.ts +0 -1
- package/dist/src/components/ui/search-global/search-global.d.ts +0 -7
|
@@ -1,107 +1,432 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { jsx as o, jsxs as T, Fragment as pe } from "react/jsx-runtime";
|
|
2
|
+
import * as kt from "react";
|
|
3
|
+
import { cva as gt } from "../../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js";
|
|
4
|
+
import { ComposedChart as At, CartesianGrid as Ct, Brush as bt, XAxis as B, YAxis as z, LabelList as Rt, Bar as Lt, Area as Dt, Line as It, ReferenceArea as xt, ReferenceLine as Et } from "recharts";
|
|
5
|
+
import { cn as _t } from "../../../lib/utils.js";
|
|
6
|
+
import { resolveAnimation as St, resolveCategoryRange as he, resolveChartReferenceValue as Nt, CHART_LABEL_MARGIN as Tt, resolveBrushProps as Bt, resolveRotatedTickAnchor as ve, resolveCartesianLabelPosition as zt, CHART_LABEL_FONT_SIZE as Ot, resolveLabelFillClass as wt, toLabelFormatter as Ft, resolveReferenceLineProps as Vt, resolveXAxisTitle as ue, resolveXAxisHeight as $t, resolveAxisDomain as me, resolveYAxisTitle as ke } from "../chart/chart-format.js";
|
|
7
|
+
import { ChartLegendContent as ge, ChartContainer as Mt, ChartTooltip as Ht, ChartTooltipContent as Wt, ChartLegend as Kt } from "../chart/chart.js";
|
|
8
|
+
const Xt = gt("", {
|
|
9
|
+
variants: {
|
|
10
|
+
orientation: {
|
|
11
|
+
vertical: "",
|
|
12
|
+
horizontal: ""
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
orientation: "vertical"
|
|
17
|
+
}
|
|
18
|
+
}), Pt = 100, Gt = 50, O = "secondary", Zt = { top: 5, right: 5, bottom: 5, left: 5 }, jt = 0.85, Ut = { top: 16 }, qt = kt.forwardRef(
|
|
7
19
|
({
|
|
8
|
-
className:
|
|
9
|
-
config:
|
|
10
|
-
data:
|
|
11
|
-
series:
|
|
12
|
-
xKey:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
20
|
+
className: Ae,
|
|
21
|
+
config: Ce,
|
|
22
|
+
data: y,
|
|
23
|
+
series: c,
|
|
24
|
+
xKey: d,
|
|
25
|
+
referenceLine: h,
|
|
26
|
+
referenceArea: v,
|
|
27
|
+
orientation: g = "vertical",
|
|
28
|
+
xAxisLabel: w,
|
|
29
|
+
yAxisLabel: A,
|
|
30
|
+
xUnit: be,
|
|
31
|
+
yUnit: Re,
|
|
32
|
+
curve: F = "monotone",
|
|
33
|
+
barRadius: Le = 4,
|
|
34
|
+
barSize: De,
|
|
35
|
+
barGap: Ie,
|
|
36
|
+
barCategoryGap: xe,
|
|
37
|
+
showBackground: Ee = !1,
|
|
38
|
+
backgroundFill: _e = "var(--ui-background-surface-secondary)",
|
|
39
|
+
showActiveBar: Se = !1,
|
|
40
|
+
fillOpacity: Ne = 0.3,
|
|
41
|
+
strokeWidth: V,
|
|
42
|
+
showDots: Te = !1,
|
|
43
|
+
showActiveDots: Be,
|
|
44
|
+
connectNulls: ze = !1,
|
|
45
|
+
margin: C,
|
|
46
|
+
showGrid: Oe = !0,
|
|
47
|
+
showTooltip: we = !0,
|
|
48
|
+
tooltipCursor: Fe = !0,
|
|
49
|
+
showLegend: Ve = !0,
|
|
50
|
+
legendPosition: b = "bottom",
|
|
51
|
+
showXAxis: $ = !0,
|
|
52
|
+
showYAxis: M = !0,
|
|
53
|
+
xTickFormatter: R,
|
|
54
|
+
yTickFormatter: L,
|
|
55
|
+
xAxisAngle: f,
|
|
56
|
+
xAxisInterval: H,
|
|
57
|
+
yAxisTickCount: W,
|
|
58
|
+
yAxisDomain: $e,
|
|
59
|
+
yAxisOrientation: D,
|
|
60
|
+
showSecondaryYAxis: K = !0,
|
|
61
|
+
secondaryYAxisLabel: I,
|
|
62
|
+
secondaryYUnit: X,
|
|
63
|
+
secondaryYTickFormatter: P,
|
|
64
|
+
secondaryYAxisTickCount: G,
|
|
65
|
+
secondaryYAxisDomain: Me,
|
|
66
|
+
gridDashed: He,
|
|
67
|
+
gridHorizontal: We,
|
|
68
|
+
gridVertical: Ke,
|
|
69
|
+
tooltipContent: Xe,
|
|
70
|
+
animate: Pe,
|
|
71
|
+
animationDuration: Ge,
|
|
72
|
+
animationBegin: Ze,
|
|
73
|
+
animationEasing: je,
|
|
74
|
+
showLabels: Z = !1,
|
|
75
|
+
labelPosition: Ue,
|
|
76
|
+
labelFormatter: qe,
|
|
77
|
+
showBrush: Je = !1,
|
|
78
|
+
brushHeight: Qe,
|
|
79
|
+
brushAriaLabel: Ye,
|
|
80
|
+
...et
|
|
81
|
+
}, tt) => {
|
|
82
|
+
const x = St({
|
|
83
|
+
animate: Pe,
|
|
84
|
+
animationDuration: Ge,
|
|
85
|
+
animationBegin: Ze,
|
|
86
|
+
animationEasing: je
|
|
87
|
+
}), r = g === "horizontal", j = ue(w), u = c.some((e) => e.yAxis === "secondary"), ot = c.some((e) => e.yAxis !== "secondary"), m = u && !ot, U = D ?? "left", q = U === "left" ? "right" : "left", J = ke(
|
|
88
|
+
A,
|
|
89
|
+
r ? "left" : U
|
|
90
|
+
), at = ke(
|
|
91
|
+
I,
|
|
92
|
+
q
|
|
93
|
+
), rt = ue(
|
|
94
|
+
I,
|
|
95
|
+
"insideTop"
|
|
96
|
+
), Q = me($e), Y = me(Me), E = (e) => {
|
|
97
|
+
const t = e === "secondary" ? O : void 0;
|
|
98
|
+
return r ? { xAxisId: t } : { yAxisId: t };
|
|
99
|
+
}, ee = m ? E("secondary") : {}, te = $t(w, f), it = h ? Array.isArray(h) ? h : [h] : [], nt = (v ? Array.isArray(v) ? v : [v] : []).map((e) => ({ area: e, range: he(e, y, d) })).filter(
|
|
100
|
+
(e) => e.range !== void 0
|
|
101
|
+
), oe = m ? "secondary" : "primary", ae = (e) => e.yAxis ?? "primary", st = new Map(c.map((e) => [e.key, ae(e)])), lt = (e) => c.filter((t) => ae(t) === e).map((t) => t.key), re = new Set(
|
|
102
|
+
c.filter((e) => e.legendType === "none").map((e) => e.key)
|
|
103
|
+
), p = (e) => {
|
|
104
|
+
var t;
|
|
105
|
+
return ((t = y[e]) == null ? void 0 : t[d]) ?? void 0;
|
|
106
|
+
}, ie = it.map((e) => {
|
|
107
|
+
const t = e.category !== void 0 ? he(
|
|
108
|
+
{ from: e.category, to: e.category },
|
|
109
|
+
y,
|
|
110
|
+
d
|
|
111
|
+
) : void 0, a = e.yAxis ?? (typeof e.average == "string" ? st.get(e.average) ?? oe : oe), i = Nt(e, y, lt(a)), n = t ? p(t[0]) : void 0;
|
|
112
|
+
return { line: e, lineAxis: a, position: i !== void 0 ? r ? { x: i } : { y: i } : n !== void 0 ? r ? { y: n } : { x: n } : void 0, isVerticalRule: i !== void 0 === r };
|
|
113
|
+
}).filter(
|
|
114
|
+
(e) => e.position !== void 0
|
|
115
|
+
), ne = Z ? Tt : void 0, se = ie.some(
|
|
116
|
+
(e) => e.line.label && e.isVerticalRule
|
|
117
|
+
) ? Ut : void 0, ct = C || ne || se ? {
|
|
118
|
+
...C ? Zt : {},
|
|
119
|
+
...se,
|
|
120
|
+
...ne,
|
|
121
|
+
...C
|
|
122
|
+
} : void 0, le = /* @__PURE__ */ new Map();
|
|
123
|
+
c.forEach((e, t) => {
|
|
124
|
+
e.stackId && e.type !== "line" && le.set(`${e.type}-${e.stackId}`, t);
|
|
125
|
+
});
|
|
126
|
+
const dt = () => /* @__PURE__ */ T(pe, { children: [
|
|
127
|
+
/* @__PURE__ */ o(
|
|
128
|
+
B,
|
|
129
|
+
{
|
|
130
|
+
type: "number",
|
|
131
|
+
hide: !$ || m,
|
|
132
|
+
tickLine: !1,
|
|
133
|
+
axisLine: !1,
|
|
134
|
+
unit: be,
|
|
135
|
+
tickFormatter: R,
|
|
136
|
+
angle: f,
|
|
137
|
+
interval: H,
|
|
138
|
+
textAnchor: ve(f),
|
|
139
|
+
tickCount: W,
|
|
140
|
+
domain: Q,
|
|
141
|
+
height: te,
|
|
142
|
+
label: j
|
|
143
|
+
}
|
|
144
|
+
),
|
|
145
|
+
/* @__PURE__ */ o(
|
|
146
|
+
z,
|
|
147
|
+
{
|
|
148
|
+
dataKey: d,
|
|
149
|
+
type: "category",
|
|
150
|
+
hide: !M,
|
|
151
|
+
tickLine: !1,
|
|
152
|
+
axisLine: !1,
|
|
153
|
+
tickFormatter: L,
|
|
154
|
+
width: A ? 96 : 80,
|
|
155
|
+
label: J
|
|
156
|
+
}
|
|
157
|
+
),
|
|
158
|
+
u && /* @__PURE__ */ o(
|
|
159
|
+
B,
|
|
160
|
+
{
|
|
161
|
+
xAxisId: O,
|
|
162
|
+
type: "number",
|
|
163
|
+
hide: !K,
|
|
164
|
+
orientation: "top",
|
|
165
|
+
tickLine: !1,
|
|
166
|
+
axisLine: !1,
|
|
167
|
+
unit: X,
|
|
168
|
+
tickFormatter: P,
|
|
169
|
+
tickCount: G,
|
|
170
|
+
domain: Y,
|
|
171
|
+
label: rt
|
|
172
|
+
}
|
|
173
|
+
)
|
|
174
|
+
] }), yt = () => /* @__PURE__ */ T(pe, { children: [
|
|
175
|
+
/* @__PURE__ */ o(
|
|
176
|
+
B,
|
|
177
|
+
{
|
|
178
|
+
dataKey: d,
|
|
179
|
+
type: "category",
|
|
180
|
+
hide: !$,
|
|
181
|
+
tickLine: !1,
|
|
182
|
+
axisLine: !1,
|
|
183
|
+
tickMargin: 8,
|
|
184
|
+
tickFormatter: R,
|
|
185
|
+
angle: f,
|
|
186
|
+
interval: H,
|
|
187
|
+
textAnchor: ve(f),
|
|
188
|
+
height: te,
|
|
189
|
+
label: j
|
|
190
|
+
}
|
|
191
|
+
),
|
|
192
|
+
/* @__PURE__ */ o(
|
|
193
|
+
z,
|
|
194
|
+
{
|
|
195
|
+
type: "number",
|
|
196
|
+
hide: !M || m,
|
|
197
|
+
...D ? { orientation: D } : {},
|
|
198
|
+
tickLine: !1,
|
|
199
|
+
axisLine: !1,
|
|
200
|
+
unit: Re,
|
|
201
|
+
tickFormatter: L,
|
|
202
|
+
tickCount: W,
|
|
203
|
+
domain: Q,
|
|
204
|
+
width: A ? 72 : void 0,
|
|
205
|
+
label: J
|
|
206
|
+
}
|
|
207
|
+
),
|
|
208
|
+
u && /* @__PURE__ */ o(
|
|
209
|
+
z,
|
|
210
|
+
{
|
|
211
|
+
yAxisId: O,
|
|
212
|
+
type: "number",
|
|
213
|
+
hide: !K,
|
|
214
|
+
orientation: q,
|
|
215
|
+
tickLine: !1,
|
|
216
|
+
axisLine: !1,
|
|
217
|
+
unit: X,
|
|
218
|
+
tickFormatter: P,
|
|
219
|
+
tickCount: G,
|
|
220
|
+
domain: Y,
|
|
221
|
+
width: I ? 72 : void 0,
|
|
222
|
+
label: at
|
|
223
|
+
}
|
|
224
|
+
)
|
|
225
|
+
] }), ft = re.size > 0 ? (e) => {
|
|
226
|
+
var t;
|
|
227
|
+
return /* @__PURE__ */ o(
|
|
228
|
+
ge,
|
|
229
|
+
{
|
|
230
|
+
verticalAlign: b,
|
|
231
|
+
payload: (t = e.payload) == null ? void 0 : t.filter(
|
|
232
|
+
(a) => !re.has(String(a.dataKey))
|
|
233
|
+
)
|
|
234
|
+
}
|
|
235
|
+
);
|
|
236
|
+
} : /* @__PURE__ */ o(ge, { verticalAlign: b }), pt = (e, t) => {
|
|
237
|
+
const a = e.color ?? `var(--color-${e.key})`, i = Pt + t, n = E(e.yAxis), s = e.stackId && e.type !== "line" ? `${e.type}-${e.stackId}` : void 0, ce = e.fillOpacity ?? Ne, de = e.connectNulls ?? ze, ye = e.showDots ?? Te, k = e.showActiveDots ?? Be, _ = e.legendType ? { legendType: e.legendType } : {}, fe = zt({
|
|
238
|
+
labelPosition: Ue,
|
|
239
|
+
isStacked: s !== void 0,
|
|
240
|
+
growingEnd: r ? "right" : "top"
|
|
241
|
+
}), S = Z ? /* @__PURE__ */ o(
|
|
242
|
+
Rt,
|
|
243
|
+
{
|
|
244
|
+
dataKey: e.key,
|
|
245
|
+
position: fe,
|
|
246
|
+
formatter: Ft(qe),
|
|
247
|
+
className: wt(fe, {
|
|
248
|
+
translucentSeries: e.type === "area"
|
|
249
|
+
}),
|
|
250
|
+
fontSize: Ot
|
|
251
|
+
}
|
|
252
|
+
) : null;
|
|
253
|
+
if (e.type === "bar") {
|
|
254
|
+
const l = e.barRadius ?? Le, N = s === void 0 || le.get(s) === t, ut = e.showBackground ?? Ee, mt = e.showActiveBar ?? Se;
|
|
255
|
+
return /* @__PURE__ */ o(
|
|
256
|
+
Lt,
|
|
257
|
+
{
|
|
258
|
+
dataKey: e.key,
|
|
259
|
+
...n,
|
|
260
|
+
fill: a,
|
|
261
|
+
radius: l > 0 && N ? r ? [0, l, l, 0] : [l, l, 0, 0] : void 0,
|
|
262
|
+
zIndex: i,
|
|
263
|
+
...s ? { stackId: s } : {},
|
|
264
|
+
...e.barSize !== void 0 ? { barSize: e.barSize } : {},
|
|
265
|
+
...e.fillOpacity !== void 0 ? { fillOpacity: e.fillOpacity } : {},
|
|
266
|
+
...e.strokeDasharray !== void 0 ? {
|
|
267
|
+
stroke: a,
|
|
268
|
+
strokeDasharray: e.strokeDasharray,
|
|
269
|
+
...e.strokeWidth !== void 0 ? { strokeWidth: e.strokeWidth } : {}
|
|
270
|
+
} : {},
|
|
271
|
+
...ut ? { background: { fill: _e } } : {},
|
|
272
|
+
...mt ? { activeBar: { fillOpacity: jt } } : {},
|
|
273
|
+
..._,
|
|
274
|
+
...x,
|
|
275
|
+
children: S
|
|
276
|
+
},
|
|
277
|
+
e.key
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
if (e.type === "area") {
|
|
281
|
+
const l = e.strokeWidth ?? V, N = l !== void 0 ? { strokeWidth: l } : {};
|
|
282
|
+
return /* @__PURE__ */ o(
|
|
283
|
+
Dt,
|
|
284
|
+
{
|
|
285
|
+
type: e.curve ?? F,
|
|
286
|
+
dataKey: e.key,
|
|
287
|
+
...n,
|
|
288
|
+
stroke: a,
|
|
289
|
+
fill: a,
|
|
290
|
+
fillOpacity: ce,
|
|
291
|
+
zIndex: i,
|
|
292
|
+
...s ? { stackId: s } : {},
|
|
293
|
+
...N,
|
|
294
|
+
...e.strokeDasharray !== void 0 ? { strokeDasharray: e.strokeDasharray } : {},
|
|
295
|
+
dot: ye ? { r: 3 } : !1,
|
|
296
|
+
...k !== void 0 ? { activeDot: k ? { r: 5 } : !1 } : {},
|
|
297
|
+
connectNulls: de,
|
|
298
|
+
..._,
|
|
299
|
+
...x,
|
|
300
|
+
children: S
|
|
301
|
+
},
|
|
302
|
+
e.key
|
|
303
|
+
);
|
|
304
|
+
}
|
|
305
|
+
return /* @__PURE__ */ o(
|
|
306
|
+
It,
|
|
307
|
+
{
|
|
308
|
+
type: e.curve ?? F,
|
|
309
|
+
dataKey: e.key,
|
|
310
|
+
...n,
|
|
311
|
+
stroke: a,
|
|
312
|
+
strokeWidth: e.strokeWidth ?? V ?? 2,
|
|
313
|
+
dot: ye ? { r: 3 } : !1,
|
|
314
|
+
zIndex: i,
|
|
315
|
+
...e.strokeDasharray !== void 0 ? { strokeDasharray: e.strokeDasharray } : {},
|
|
316
|
+
...k !== void 0 ? { activeDot: k ? { r: 5 } : !1 } : {},
|
|
317
|
+
connectNulls: de,
|
|
318
|
+
..._,
|
|
319
|
+
...x,
|
|
320
|
+
children: S
|
|
321
|
+
},
|
|
322
|
+
e.key
|
|
323
|
+
);
|
|
324
|
+
}, ht = ({ area: e, range: t }, a) => {
|
|
325
|
+
const [i, n] = t;
|
|
326
|
+
return /* @__PURE__ */ o(
|
|
327
|
+
xt,
|
|
328
|
+
{
|
|
329
|
+
...ee,
|
|
330
|
+
...r ? { y1: p(i), y2: p(n) } : { x1: p(i), x2: p(n) },
|
|
331
|
+
fill: "var(--ui-background-surface-secondary)",
|
|
332
|
+
fillOpacity: 0.6,
|
|
333
|
+
zIndex: Gt,
|
|
334
|
+
ifOverflow: "extendDomain",
|
|
335
|
+
label: e.label ? {
|
|
336
|
+
value: e.label,
|
|
337
|
+
position: "insideTop",
|
|
338
|
+
fill: "var(--ui-text-on-surface-secondary)",
|
|
339
|
+
fontSize: 12
|
|
340
|
+
} : void 0
|
|
341
|
+
},
|
|
342
|
+
`${e.label ?? "area"}-${a}`
|
|
343
|
+
);
|
|
344
|
+
}, vt = ({
|
|
345
|
+
line: e,
|
|
346
|
+
lineAxis: t,
|
|
347
|
+
position: a,
|
|
348
|
+
isVerticalRule: i
|
|
349
|
+
}, n) => /* @__PURE__ */ o(
|
|
350
|
+
Et,
|
|
33
351
|
{
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
width: r ? 72 : void 0,
|
|
58
|
-
label: g
|
|
59
|
-
}
|
|
60
|
-
),
|
|
61
|
-
h && /* @__PURE__ */ e(M, { content: k ?? /* @__PURE__ */ e(W, {}) }),
|
|
62
|
-
C && /* @__PURE__ */ e(X, { content: /* @__PURE__ */ e(Y, {}) }),
|
|
63
|
-
f.map((t) => {
|
|
64
|
-
const i = `var(--color-${t.key})`;
|
|
65
|
-
return t.type === "bar" ? /* @__PURE__ */ e(
|
|
66
|
-
w,
|
|
67
|
-
{
|
|
68
|
-
dataKey: t.key,
|
|
69
|
-
fill: i,
|
|
70
|
-
radius: a > 0 ? [a, a, 0, 0] : void 0,
|
|
71
|
-
isAnimationActive: !1
|
|
72
|
-
},
|
|
73
|
-
t.key
|
|
74
|
-
) : t.type === "area" ? /* @__PURE__ */ e(
|
|
75
|
-
B,
|
|
76
|
-
{
|
|
77
|
-
type: n,
|
|
78
|
-
dataKey: t.key,
|
|
79
|
-
stroke: i,
|
|
80
|
-
fill: i,
|
|
81
|
-
fillOpacity: p,
|
|
82
|
-
isAnimationActive: !1
|
|
83
|
-
},
|
|
84
|
-
t.key
|
|
85
|
-
) : /* @__PURE__ */ e(
|
|
86
|
-
$,
|
|
352
|
+
...t === "secondary" && u ? E("secondary") : {},
|
|
353
|
+
...a,
|
|
354
|
+
...Vt(
|
|
355
|
+
e.label,
|
|
356
|
+
e.labelPosition ?? (i ? "top" : "insideTopRight")
|
|
357
|
+
)
|
|
358
|
+
},
|
|
359
|
+
`${e.label ?? "ref"}-${n}`
|
|
360
|
+
);
|
|
361
|
+
return /* @__PURE__ */ o(
|
|
362
|
+
"div",
|
|
363
|
+
{
|
|
364
|
+
ref: tt,
|
|
365
|
+
"data-orientation": g,
|
|
366
|
+
className: _t(Xt({ orientation: g }), Ae),
|
|
367
|
+
...et,
|
|
368
|
+
children: /* @__PURE__ */ o(
|
|
369
|
+
Mt,
|
|
370
|
+
{
|
|
371
|
+
config: Ce,
|
|
372
|
+
className: "size-full [&_.recharts-label]:fill-foreground",
|
|
373
|
+
children: /* @__PURE__ */ T(
|
|
374
|
+
At,
|
|
87
375
|
{
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
376
|
+
data: y,
|
|
377
|
+
layout: r ? "vertical" : "horizontal",
|
|
378
|
+
barSize: De,
|
|
379
|
+
barGap: Ie,
|
|
380
|
+
barCategoryGap: xe,
|
|
381
|
+
margin: ct,
|
|
382
|
+
children: [
|
|
383
|
+
Oe && /* @__PURE__ */ o(
|
|
384
|
+
Ct,
|
|
385
|
+
{
|
|
386
|
+
...ee,
|
|
387
|
+
horizontal: We ?? !r,
|
|
388
|
+
vertical: Ke ?? r,
|
|
389
|
+
strokeDasharray: He ? "3 3" : void 0
|
|
390
|
+
}
|
|
391
|
+
),
|
|
392
|
+
r ? dt() : yt(),
|
|
393
|
+
we && /* @__PURE__ */ o(
|
|
394
|
+
Ht,
|
|
395
|
+
{
|
|
396
|
+
...Fe ? {} : { cursor: !1 },
|
|
397
|
+
content: Xe ?? /* @__PURE__ */ o(Wt, {})
|
|
398
|
+
}
|
|
399
|
+
),
|
|
400
|
+
Ve && /* @__PURE__ */ o(
|
|
401
|
+
Kt,
|
|
402
|
+
{
|
|
403
|
+
verticalAlign: b,
|
|
404
|
+
content: ft
|
|
405
|
+
}
|
|
406
|
+
),
|
|
407
|
+
c.map(pt),
|
|
408
|
+
nt.map(ht),
|
|
409
|
+
ie.map(vt),
|
|
410
|
+
Je && /* @__PURE__ */ o(
|
|
411
|
+
bt,
|
|
412
|
+
{
|
|
413
|
+
dataKey: d,
|
|
414
|
+
tickFormatter: r ? L : R,
|
|
415
|
+
...Bt({ brushHeight: Qe, brushAriaLabel: Ye })
|
|
416
|
+
}
|
|
417
|
+
)
|
|
418
|
+
]
|
|
419
|
+
}
|
|
420
|
+
)
|
|
421
|
+
}
|
|
422
|
+
)
|
|
99
423
|
}
|
|
100
|
-
)
|
|
424
|
+
);
|
|
101
425
|
}
|
|
102
426
|
);
|
|
103
|
-
|
|
427
|
+
qt.displayName = "ComposedChart";
|
|
104
428
|
export {
|
|
105
|
-
|
|
429
|
+
qt as ComposedChart,
|
|
430
|
+
Xt as composedChartVariants
|
|
106
431
|
};
|
|
107
432
|
//# sourceMappingURL=composed-chart.js.map
|