@acronis-platform/ui-react 5.5.0 → 5.5.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.
- package/dist/components/ui/area-chart/area-chart.js +117 -113
- package/dist/components/ui/area-chart/area-chart.js.map +1 -1
- package/dist/components/ui/bar-chart/bar-chart.js +133 -131
- package/dist/components/ui/bar-chart/bar-chart.js.map +1 -1
- package/dist/components/ui/chart/chart.js +91 -48
- package/dist/components/ui/chart/chart.js.map +1 -1
- package/dist/components/ui/composed-chart/composed-chart.js +138 -136
- package/dist/components/ui/composed-chart/composed-chart.js.map +1 -1
- package/dist/components/ui/confidence-cone/confidence-cone.js +55 -54
- package/dist/components/ui/confidence-cone/confidence-cone.js.map +1 -1
- package/dist/components/ui/funnel-chart/funnel-chart.js +24 -23
- package/dist/components/ui/funnel-chart/funnel-chart.js.map +1 -1
- package/dist/components/ui/line-chart/line-chart.js +57 -53
- package/dist/components/ui/line-chart/line-chart.js.map +1 -1
- package/dist/components/ui/pie-chart/pie-chart.js +29 -28
- package/dist/components/ui/pie-chart/pie-chart.js.map +1 -1
- package/dist/components/ui/radar-chart/radar-chart.js +74 -73
- package/dist/components/ui/radar-chart/radar-chart.js.map +1 -1
- package/dist/components/ui/radial-bar-chart/radial-bar-chart.js +46 -45
- package/dist/components/ui/radial-bar-chart/radial-bar-chart.js.map +1 -1
- package/dist/components/ui/scatter-chart/scatter-chart.js +29 -26
- package/dist/components/ui/scatter-chart/scatter-chart.js.map +1 -1
- package/dist/components/ui/treemap/treemap.js +22 -21
- package/dist/components/ui/treemap/treemap.js.map +1 -1
- package/dist/llms/area-chart.md +1 -0
- package/dist/llms/bar-chart.md +1 -0
- package/dist/llms/chart.md +21 -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/src/components/ui/area-chart/area-chart.d.ts +2 -2
- package/dist/src/components/ui/bar-chart/bar-chart.d.ts +4 -3
- package/dist/src/components/ui/chart/chart.d.ts +15 -5
- package/dist/src/components/ui/chart/index.d.ts +1 -1
- package/dist/src/components/ui/composed-chart/composed-chart.d.ts +2 -2
- package/dist/src/components/ui/confidence-cone/confidence-cone.d.ts +2 -2
- package/dist/src/components/ui/funnel-chart/funnel-chart.d.ts +2 -2
- package/dist/src/components/ui/line-chart/line-chart.d.ts +2 -2
- package/dist/src/components/ui/pie-chart/pie-chart.d.ts +2 -2
- package/dist/src/components/ui/radar-chart/radar-chart.d.ts +2 -2
- package/dist/src/components/ui/radial-bar-chart/radial-bar-chart.d.ts +2 -2
- package/dist/src/components/ui/scatter-chart/scatter-chart.d.ts +2 -2
- package/dist/src/components/ui/treemap/treemap.d.ts +2 -2
- package/dist/ui-react.css +1 -1
- package/package.json +3 -3
|
@@ -36,21 +36,22 @@ function A(e) {
|
|
|
36
36
|
color: `var(--color-${d(String(e.dataKey))})`
|
|
37
37
|
} : e);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function j({ content: e, dataKeys: t, ...n }) {
|
|
40
40
|
let r = {
|
|
41
41
|
...n,
|
|
42
42
|
payload: A(k(n.payload, t))
|
|
43
43
|
};
|
|
44
44
|
return e ? typeof e == "function" ? y.createElement(e, r) : y.cloneElement(e, r) : /* @__PURE__ */ x(l, { ...r });
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function M({ dataKeys: e, fontSize: t, legendAriaLabel: n, ...r }) {
|
|
47
47
|
return /* @__PURE__ */ x(s, {
|
|
48
|
-
verticalAlign:
|
|
48
|
+
verticalAlign: r.verticalAlign,
|
|
49
49
|
fontSize: t,
|
|
50
|
-
|
|
50
|
+
ariaLabel: n,
|
|
51
|
+
payload: A(k(r.payload, e))
|
|
51
52
|
});
|
|
52
53
|
}
|
|
53
|
-
function
|
|
54
|
+
function N({ bar: e, track: t, trackFill: n, paint: r }) {
|
|
54
55
|
return /* @__PURE__ */ S(b, { children: [t && /* @__PURE__ */ x(T, {
|
|
55
56
|
className: "recharts-bar-background-rectangle",
|
|
56
57
|
x: t.x ?? void 0,
|
|
@@ -71,21 +72,21 @@ function j({ bar: e, track: t, trackFill: n, paint: r }) {
|
|
|
71
72
|
strokeDasharray: e.strokeDasharray
|
|
72
73
|
})] });
|
|
73
74
|
}
|
|
74
|
-
function
|
|
75
|
-
return ({ background: r, index: i, ...a }) =>
|
|
75
|
+
function P({ inRange: e, trackFill: t, paint: n }) {
|
|
76
|
+
return ({ background: r, index: i, ...a }) => N({
|
|
76
77
|
bar: a,
|
|
77
78
|
track: e(i) ? r : void 0,
|
|
78
79
|
trackFill: t,
|
|
79
80
|
paint: n
|
|
80
81
|
});
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
+
function ve({ rangeBackground: e, inRange: t, trackFill: n, activeBarOption: r }) {
|
|
83
84
|
return e ? {
|
|
84
|
-
shape:
|
|
85
|
+
shape: P({
|
|
85
86
|
inRange: t,
|
|
86
87
|
trackFill: n
|
|
87
88
|
}),
|
|
88
|
-
activeBar: r &&
|
|
89
|
+
activeBar: r && P({
|
|
89
90
|
inRange: t,
|
|
90
91
|
trackFill: n,
|
|
91
92
|
paint: r
|
|
@@ -95,7 +96,7 @@ function be({ rangeBackground: e, inRange: t, trackFill: n, activeBarOption: r }
|
|
|
95
96
|
activeBar: r
|
|
96
97
|
};
|
|
97
98
|
}
|
|
98
|
-
function
|
|
99
|
+
function F(e) {
|
|
99
100
|
let { x: t = 0, y: n = 0, width: r = 0, height: i = 0, fill: a, fillOpacity: o } = e;
|
|
100
101
|
return /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(T, {
|
|
101
102
|
className: "recharts-reference-area-rect",
|
|
@@ -114,10 +115,10 @@ function xe(e) {
|
|
|
114
115
|
strokeDasharray: "4 4"
|
|
115
116
|
})] });
|
|
116
117
|
}
|
|
117
|
-
function
|
|
118
|
-
if (e) return
|
|
118
|
+
function ye(e) {
|
|
119
|
+
if (e) return F;
|
|
119
120
|
}
|
|
120
|
-
function
|
|
121
|
+
function be(e) {
|
|
121
122
|
return e ? {
|
|
122
123
|
value: e,
|
|
123
124
|
position: "insideTop",
|
|
@@ -125,7 +126,7 @@ function Ce(e) {
|
|
|
125
126
|
fontSize: 12
|
|
126
127
|
} : void 0;
|
|
127
128
|
}
|
|
128
|
-
function
|
|
129
|
+
function xe({ id: e, dataKeys: t, shapes: n }) {
|
|
129
130
|
let r = n.has("gradient"), i = n.has("pattern");
|
|
130
131
|
return !r && !i ? null : /* @__PURE__ */ x("defs", { children: t.map((t) => /* @__PURE__ */ S(y.Fragment, { children: [r && /* @__PURE__ */ S("linearGradient", {
|
|
131
132
|
id: `${e}-gradient-${d(t)}`,
|
|
@@ -163,7 +164,7 @@ function we({ id: e, dataKeys: t, shapes: n }) {
|
|
|
163
164
|
})]
|
|
164
165
|
})] }, t)) });
|
|
165
166
|
}
|
|
166
|
-
function
|
|
167
|
+
function Se({ data: e, chartData: t, xKey: n, seriesKey: r, settings: i, range: a, headroomKey: o, barShape: s, rounded: c, fillOf: l, radiusFor: u }) {
|
|
167
168
|
let { fill: f, opacity: p, dashed: m } = i;
|
|
168
169
|
return e.map((e, h) => {
|
|
169
170
|
let g = h >= a[0] && h <= a[1], _ = g && i.shape || s, v = o !== void 0 && Number(t[h]?.[`${O}${r}`]) > 0;
|
|
@@ -177,8 +178,8 @@ function Te({ data: e, chartData: t, xKey: n, seriesKey: r, settings: i, range:
|
|
|
177
178
|
}, `${r}-${String(e[n])}-${h}`);
|
|
178
179
|
});
|
|
179
180
|
}
|
|
180
|
-
var
|
|
181
|
-
function
|
|
181
|
+
var I = (e) => e.toLocaleString();
|
|
182
|
+
function L({ item: t, resolvedColor: a, max: o, valueFormatter: s, showTooltip: c, tooltip: l }) {
|
|
182
183
|
let { label: u, value: d, forecast: f } = t, p = a, m = o > 0 ? Math.round(d / o * 100) : 0, h = f != null && f > d, g = /* @__PURE__ */ S(E.Root, {
|
|
183
184
|
value: d,
|
|
184
185
|
max: o,
|
|
@@ -246,7 +247,7 @@ function P({ item: t, resolvedColor: a, max: o, valueFormatter: s, showTooltip:
|
|
|
246
247
|
] })
|
|
247
248
|
})] }) : g;
|
|
248
249
|
}
|
|
249
|
-
var
|
|
250
|
+
var R = y.forwardRef(({ items: t, max: n, palette: r, valueFormatter: i = I, showTooltip: a = !0, tooltip: o, className: s, ...c }, l) => {
|
|
250
251
|
let d = n !== void 0 && n > 0 ? n : t.reduce((e, t) => e + t.value, 0) || 1, f = y.useMemo(() => {
|
|
251
252
|
if (!r) return null;
|
|
252
253
|
let e = Object.fromEntries(t.map((e, t) => [`item${t}`, {
|
|
@@ -260,7 +261,7 @@ var F = y.forwardRef(({ items: t, max: n, palette: r, valueFormatter: i = N, sho
|
|
|
260
261
|
"data-orientation": "horizontal",
|
|
261
262
|
className: e("flex flex-col gap-4", s),
|
|
262
263
|
...c,
|
|
263
|
-
children: t.map((e, t) => /* @__PURE__ */ x(
|
|
264
|
+
children: t.map((e, t) => /* @__PURE__ */ x(L, {
|
|
264
265
|
item: e,
|
|
265
266
|
resolvedColor: f ? f[t] ?? "" : e.color ?? "",
|
|
266
267
|
max: d,
|
|
@@ -270,38 +271,38 @@ var F = y.forwardRef(({ items: t, max: n, palette: r, valueFormatter: i = N, sho
|
|
|
270
271
|
}, `${t}-${e.label}`))
|
|
271
272
|
});
|
|
272
273
|
});
|
|
273
|
-
|
|
274
|
-
var
|
|
274
|
+
R.displayName = "HorizontalBarLayout";
|
|
275
|
+
var z = y.forwardRef((t, n) => {
|
|
275
276
|
let r = y.useId().replace(/:/g, ""), i = y.useRef(null), s = t, l = s.xKey, u = ne(s.data && l ? s.data.map((e) => e[l]) : [], s.xTickFormatter), w = ce(i, s.xAxisAngle, s.xAxisLabel, u.join("\0"));
|
|
276
277
|
if (t.orientation === "horizontal") {
|
|
277
278
|
let { orientation: e, ...r } = t;
|
|
278
|
-
return /* @__PURE__ */ x(
|
|
279
|
+
return /* @__PURE__ */ x(R, {
|
|
279
280
|
...r,
|
|
280
281
|
ref: n
|
|
281
282
|
});
|
|
282
283
|
}
|
|
283
|
-
let { className: T, config: E, palette: k, data: A, dataKeys:
|
|
284
|
-
animate:
|
|
285
|
-
animationDuration:
|
|
286
|
-
animationBegin:
|
|
287
|
-
animationEasing:
|
|
288
|
-
}),
|
|
289
|
-
labelPosition:
|
|
290
|
-
isStacked:
|
|
284
|
+
let { className: T, config: E, palette: k, data: A, dataKeys: N, xKey: P, referenceLine: F, referenceArea: I, barSettings: L, xAxisLabel: z, yAxisLabel: B, yUnit: Ce, orientation: V = "vertical", layout: H = "grouped", barRadius: U = 8, barShape: W = "rounded", barSize: we = 8, maxBarSize: Te, barGap: Ee = 4, barCategoryGap: De, minPointSize: Oe, showBackground: ke = !1, backgroundFill: Ae = "var(--ui-background-surface-secondary)", showActiveBar: je = !1, activeBar: G, showGrid: Me = !0, showTooltip: Ne = !0, showLegend: Pe = !0, legendFontSize: Fe, legendAriaLabel: Ie, showXAxis: Le = !0, showYAxis: Re = !0, xTickFormatter: K, yTickFormatter: ze, xAxisAngle: Be, xAxisInterval: Ve, yAxisTickCount: He, yAxisDomain: Ue, gridDashed: We = !0, gridHorizontal: Ge, gridVertical: Ke, tooltipContent: qe, animate: Je, animationDuration: Ye, animationBegin: Xe, animationEasing: Ze, showLabels: Qe = !1, labelPosition: $e, labelFormatter: et, showBrush: tt = !1, brushHeight: nt, brushAriaLabel: rt, ...it } = t, at = f({
|
|
285
|
+
animate: Je,
|
|
286
|
+
animationDuration: Ye,
|
|
287
|
+
animationBegin: Xe,
|
|
288
|
+
animationEasing: Ze
|
|
289
|
+
}), q = H === "stacked", ot = h({
|
|
290
|
+
labelPosition: $e,
|
|
291
|
+
isStacked: q,
|
|
291
292
|
growingEnd: "top"
|
|
292
|
-
}),
|
|
293
|
+
}), st = oe(F), ct = (I ? Array.isArray(I) ? I : [I] : []).map((e) => ({
|
|
293
294
|
area: e,
|
|
294
|
-
range: g(e, A,
|
|
295
|
-
})).filter((e) => e.range !== void 0),
|
|
296
|
-
let t =
|
|
295
|
+
range: g(e, A, P)
|
|
296
|
+
})).filter((e) => e.range !== void 0), J = new Map(N.flatMap((e) => {
|
|
297
|
+
let t = L?.[e], n = t ? g(t, A, P) : void 0;
|
|
297
298
|
return t && n ? [[e, {
|
|
298
299
|
settings: t,
|
|
299
300
|
range: n
|
|
300
301
|
}]] : [];
|
|
301
|
-
})),
|
|
302
|
+
})), Y = new Map(q ? [] : Array.from(J, ([e, t]) => typeof t.settings.background == "string" ? [e, t.settings.background] : void 0).filter((e) => e !== void 0)), X = Y.size ? A.map((e, t) => {
|
|
302
303
|
let n = {};
|
|
303
|
-
return
|
|
304
|
-
let a =
|
|
304
|
+
return Y.forEach((r, i) => {
|
|
305
|
+
let a = J.get(i);
|
|
305
306
|
if (!a) return;
|
|
306
307
|
let [o, s] = a.range;
|
|
307
308
|
if (t < o || t > s) return;
|
|
@@ -311,118 +312,119 @@ var I = y.forwardRef((t, n) => {
|
|
|
311
312
|
...e,
|
|
312
313
|
...n
|
|
313
314
|
};
|
|
314
|
-
}) : A,
|
|
315
|
-
let i =
|
|
315
|
+
}) : A, lt = new Set(ct.filter(({ area: e }) => e.highlightTicks !== !1).flatMap(({ range: e }) => A.slice(e[0], e[1] + 1).map((e) => e[P]))), ut = lt.size ? ({ payload: t, index: n, ...r }) => {
|
|
316
|
+
let i = K ? K(t.value, n) : t.value;
|
|
316
317
|
return /* @__PURE__ */ x(he, {
|
|
317
318
|
...r,
|
|
318
|
-
className: e("fill-muted-foreground",
|
|
319
|
+
className: e("fill-muted-foreground", lt.has(t.value) && "fill-primary italic"),
|
|
319
320
|
fontSize: 12,
|
|
320
321
|
children: i
|
|
321
322
|
});
|
|
322
|
-
} : void 0,
|
|
323
|
-
...
|
|
324
|
-
fillOpacity:
|
|
325
|
-
} : !1,
|
|
326
|
-
|
|
327
|
-
e.shape &&
|
|
323
|
+
} : void 0, dt = je ? {
|
|
324
|
+
...G?.fill === void 0 ? {} : { fill: G.fill },
|
|
325
|
+
fillOpacity: G?.opacity ?? .85
|
|
326
|
+
} : !1, Z = `bar-${r}`, ft = /* @__PURE__ */ new Set([W]);
|
|
327
|
+
J.forEach(({ settings: e }) => {
|
|
328
|
+
e.shape && ft.add(e.shape);
|
|
328
329
|
});
|
|
329
|
-
let
|
|
330
|
-
let r =
|
|
331
|
-
return typeof r == "number" && r !== 0 ?
|
|
332
|
-
},
|
|
333
|
-
|
|
334
|
-
|
|
330
|
+
let pt = (e) => Oe === void 0 ? void 0 : (t, n) => {
|
|
331
|
+
let r = q ? X[n]?.[e] : t;
|
|
332
|
+
return typeof r == "number" && r !== 0 ? Oe : 0;
|
|
333
|
+
}, Q = (e, t) => t === "gradient" ? `url(#${Z}-gradient-${d(e)})` : t === "pattern" ? `url(#${Z}-pattern-${d(e)})` : `var(--color-${d(e)})`, mt = re(z), ht = ie(B), gt = p(Ue), _t = [
|
|
334
|
+
U,
|
|
335
|
+
U,
|
|
335
336
|
0,
|
|
336
337
|
0
|
|
337
|
-
], $ = (e, t) => e === "pill" ? 9999 :
|
|
338
|
-
content:
|
|
339
|
-
dataKeys:
|
|
340
|
-
}),
|
|
341
|
-
dataKeys:
|
|
342
|
-
fontSize:
|
|
343
|
-
|
|
344
|
-
|
|
338
|
+
], $ = (e, t) => e === "pill" ? 9999 : U > 0 && t ? _t : void 0, vt = /* @__PURE__ */ x(j, {
|
|
339
|
+
content: qe,
|
|
340
|
+
dataKeys: N
|
|
341
|
+
}), yt = /* @__PURE__ */ x(M, {
|
|
342
|
+
dataKeys: N,
|
|
343
|
+
fontSize: Fe,
|
|
344
|
+
legendAriaLabel: Ie
|
|
345
|
+
}), bt = () => /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(ge, {
|
|
346
|
+
dataKey: P,
|
|
345
347
|
type: "category",
|
|
346
|
-
hide: !
|
|
348
|
+
hide: !Le,
|
|
347
349
|
tickLine: !1,
|
|
348
350
|
axisLine: !1,
|
|
349
|
-
tick:
|
|
350
|
-
tickFormatter:
|
|
351
|
-
angle:
|
|
352
|
-
interval:
|
|
353
|
-
textAnchor: te(
|
|
351
|
+
tick: ut,
|
|
352
|
+
tickFormatter: K,
|
|
353
|
+
angle: Be,
|
|
354
|
+
interval: Ve,
|
|
355
|
+
textAnchor: te(Be),
|
|
354
356
|
height: w.height,
|
|
355
|
-
label:
|
|
357
|
+
label: mt
|
|
356
358
|
}), /* @__PURE__ */ x(_e, {
|
|
357
359
|
type: "number",
|
|
358
|
-
hide: !
|
|
360
|
+
hide: !Re,
|
|
359
361
|
tickLine: !1,
|
|
360
362
|
axisLine: !1,
|
|
361
|
-
unit:
|
|
362
|
-
tickFormatter:
|
|
363
|
-
tickCount:
|
|
364
|
-
domain:
|
|
365
|
-
width:
|
|
366
|
-
label:
|
|
367
|
-
})] }),
|
|
368
|
-
let n = !
|
|
363
|
+
unit: Ce,
|
|
364
|
+
tickFormatter: ze,
|
|
365
|
+
tickCount: He,
|
|
366
|
+
domain: gt,
|
|
367
|
+
width: B ? 72 : void 0,
|
|
368
|
+
label: ht
|
|
369
|
+
})] }), xt = () => N.map((e, t) => {
|
|
370
|
+
let n = !q || t === N.length - 1, r = J.get(e), i = (e) => r !== void 0 && e >= r.range[0] && e <= r.range[1], a = Y.get(e), { shape: o, activeBar: s } = ve({
|
|
369
371
|
rangeBackground: r?.settings.background === !0,
|
|
370
372
|
inRange: i,
|
|
371
|
-
trackFill:
|
|
372
|
-
activeBarOption:
|
|
373
|
-
}), c = r &&
|
|
373
|
+
trackFill: Ae,
|
|
374
|
+
activeBarOption: dt
|
|
375
|
+
}), c = r && Se({
|
|
374
376
|
data: A,
|
|
375
|
-
chartData:
|
|
376
|
-
xKey:
|
|
377
|
+
chartData: X,
|
|
378
|
+
xKey: P,
|
|
377
379
|
seriesKey: e,
|
|
378
380
|
settings: r.settings,
|
|
379
381
|
range: r.range,
|
|
380
382
|
headroomKey: a,
|
|
381
|
-
barShape:
|
|
383
|
+
barShape: W,
|
|
382
384
|
rounded: n,
|
|
383
|
-
fillOf:
|
|
385
|
+
fillOf: Q,
|
|
384
386
|
radiusFor: $
|
|
385
|
-
}), l =
|
|
387
|
+
}), l = Qe && /* @__PURE__ */ x(fe, {
|
|
386
388
|
dataKey: e,
|
|
387
|
-
position:
|
|
388
|
-
formatter: ae(
|
|
389
|
-
className: v(
|
|
389
|
+
position: ot,
|
|
390
|
+
formatter: ae(et),
|
|
391
|
+
className: v(ot),
|
|
390
392
|
fontSize: 12
|
|
391
393
|
});
|
|
392
394
|
return /* @__PURE__ */ S(y.Fragment, { children: [/* @__PURE__ */ S(C, {
|
|
393
395
|
dataKey: e,
|
|
394
|
-
fill:
|
|
395
|
-
stackId:
|
|
396
|
-
radius: $(
|
|
397
|
-
minPointSize:
|
|
398
|
-
background:
|
|
396
|
+
fill: Q(e, W),
|
|
397
|
+
stackId: q ? "a" : a ? e : void 0,
|
|
398
|
+
radius: $(W, n),
|
|
399
|
+
minPointSize: pt(e),
|
|
400
|
+
background: ke ? { fill: Ae } : void 0,
|
|
399
401
|
shape: o,
|
|
400
402
|
activeBar: s,
|
|
401
|
-
...
|
|
403
|
+
...at,
|
|
402
404
|
children: [c, l]
|
|
403
405
|
}), a && /* @__PURE__ */ x(C, {
|
|
404
406
|
dataKey: `${O}${e}`,
|
|
405
407
|
stackId: e,
|
|
406
408
|
fill: `var(--color-${d(e)})`,
|
|
407
409
|
fillOpacity: .25,
|
|
408
|
-
radius: $(
|
|
410
|
+
radius: $(W, !0),
|
|
409
411
|
legendType: "none",
|
|
410
412
|
tooltipType: "none",
|
|
411
|
-
...
|
|
413
|
+
...at
|
|
412
414
|
})] }, e);
|
|
413
|
-
}),
|
|
415
|
+
}), St = () => ct.map(({ area: e, range: t }, n) => {
|
|
414
416
|
let [r, i] = t;
|
|
415
417
|
return /* @__PURE__ */ x(pe, {
|
|
416
|
-
x1: A[r]?.[
|
|
417
|
-
x2: A[i]?.[
|
|
418
|
+
x1: A[r]?.[P],
|
|
419
|
+
x2: A[i]?.[P],
|
|
418
420
|
fill: "var(--ui-background-surface-secondary)",
|
|
419
421
|
fillOpacity: .6,
|
|
420
422
|
ifOverflow: "extendDomain",
|
|
421
|
-
shape:
|
|
422
|
-
label:
|
|
423
|
+
shape: ye(e.divider),
|
|
424
|
+
label: be(e.label)
|
|
423
425
|
}, `${e.label ?? "area"}-${n}`);
|
|
424
|
-
}),
|
|
425
|
-
let n = _(e, A,
|
|
426
|
+
}), Ct = () => st.map((e, t) => {
|
|
427
|
+
let n = _(e, A, N);
|
|
426
428
|
return n === void 0 ? null : /* @__PURE__ */ x(me, {
|
|
427
429
|
y: n,
|
|
428
430
|
...ee(e.label, e.labelPosition ?? "insideTopRight")
|
|
@@ -430,49 +432,49 @@ var I = y.forwardRef((t, n) => {
|
|
|
430
432
|
});
|
|
431
433
|
return /* @__PURE__ */ x("div", {
|
|
432
434
|
ref: n,
|
|
433
|
-
"data-orientation":
|
|
434
|
-
"data-layout":
|
|
435
|
+
"data-orientation": V,
|
|
436
|
+
"data-layout": H,
|
|
435
437
|
className: e(D({
|
|
436
|
-
orientation:
|
|
437
|
-
layout:
|
|
438
|
+
orientation: V,
|
|
439
|
+
layout: H
|
|
438
440
|
}), T),
|
|
439
|
-
...
|
|
441
|
+
...it,
|
|
440
442
|
children: /* @__PURE__ */ x(a, {
|
|
441
443
|
ref: i,
|
|
442
444
|
config: E,
|
|
443
445
|
palette: k,
|
|
444
446
|
className: "size-full [&_.recharts-label]:fill-foreground",
|
|
445
447
|
children: /* @__PURE__ */ S(le, {
|
|
446
|
-
data:
|
|
448
|
+
data: X,
|
|
447
449
|
layout: "horizontal",
|
|
448
|
-
barSize:
|
|
449
|
-
maxBarSize:
|
|
450
|
-
barGap:
|
|
451
|
-
barCategoryGap:
|
|
450
|
+
barSize: we,
|
|
451
|
+
maxBarSize: Te,
|
|
452
|
+
barGap: Ee,
|
|
453
|
+
barCategoryGap: De,
|
|
452
454
|
margin: se(void 0, w.margin),
|
|
453
455
|
children: [
|
|
454
|
-
/* @__PURE__ */ x(
|
|
455
|
-
id:
|
|
456
|
-
dataKeys:
|
|
457
|
-
shapes:
|
|
456
|
+
/* @__PURE__ */ x(xe, {
|
|
457
|
+
id: Z,
|
|
458
|
+
dataKeys: N,
|
|
459
|
+
shapes: ft
|
|
458
460
|
}),
|
|
459
|
-
|
|
460
|
-
horizontal:
|
|
461
|
-
vertical:
|
|
462
|
-
strokeDasharray:
|
|
461
|
+
Me && /* @__PURE__ */ x(de, {
|
|
462
|
+
horizontal: Ge ?? !0,
|
|
463
|
+
vertical: Ke ?? !1,
|
|
464
|
+
strokeDasharray: We ? "3 3" : void 0
|
|
463
465
|
}),
|
|
464
|
-
yt(),
|
|
465
|
-
Ie && /* @__PURE__ */ x(c, { content: _t }),
|
|
466
|
-
Le && /* @__PURE__ */ x(o, { content: vt }),
|
|
467
466
|
bt(),
|
|
467
|
+
Ne && /* @__PURE__ */ x(c, { content: vt }),
|
|
468
|
+
Pe && /* @__PURE__ */ x(o, { content: yt }),
|
|
468
469
|
xt(),
|
|
469
470
|
St(),
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
471
|
+
Ct(),
|
|
472
|
+
tt && /* @__PURE__ */ x(ue, {
|
|
473
|
+
dataKey: P,
|
|
474
|
+
tickFormatter: K,
|
|
473
475
|
...m({
|
|
474
|
-
brushHeight:
|
|
475
|
-
brushAriaLabel:
|
|
476
|
+
brushHeight: nt,
|
|
477
|
+
brushAriaLabel: rt
|
|
476
478
|
})
|
|
477
479
|
})
|
|
478
480
|
]
|
|
@@ -480,8 +482,8 @@ var I = y.forwardRef((t, n) => {
|
|
|
480
482
|
})
|
|
481
483
|
});
|
|
482
484
|
});
|
|
483
|
-
|
|
485
|
+
z.displayName = "BarChart";
|
|
484
486
|
//#endregion
|
|
485
|
-
export {
|
|
487
|
+
export { z as BarChart, M as NormalizedLegendContent, j as NormalizedTooltipContent, D as barChartVariants, P as createTrackShape, k as dropHeadroomSeries, A as withSeriesColor };
|
|
486
488
|
|
|
487
489
|
//# sourceMappingURL=bar-chart.js.map
|