@acronis-platform/ui-react 5.5.1 → 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.
Files changed (52) hide show
  1. package/dist/components/ui/area-chart/area-chart.js +117 -113
  2. package/dist/components/ui/area-chart/area-chart.js.map +1 -1
  3. package/dist/components/ui/bar-chart/bar-chart.js +133 -131
  4. package/dist/components/ui/bar-chart/bar-chart.js.map +1 -1
  5. package/dist/components/ui/chart/chart.js +91 -48
  6. package/dist/components/ui/chart/chart.js.map +1 -1
  7. package/dist/components/ui/composed-chart/composed-chart.js +138 -136
  8. package/dist/components/ui/composed-chart/composed-chart.js.map +1 -1
  9. package/dist/components/ui/confidence-cone/confidence-cone.js +55 -54
  10. package/dist/components/ui/confidence-cone/confidence-cone.js.map +1 -1
  11. package/dist/components/ui/funnel-chart/funnel-chart.js +24 -23
  12. package/dist/components/ui/funnel-chart/funnel-chart.js.map +1 -1
  13. package/dist/components/ui/line-chart/line-chart.js +57 -53
  14. package/dist/components/ui/line-chart/line-chart.js.map +1 -1
  15. package/dist/components/ui/pie-chart/pie-chart.js +29 -28
  16. package/dist/components/ui/pie-chart/pie-chart.js.map +1 -1
  17. package/dist/components/ui/radar-chart/radar-chart.js +74 -73
  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 +46 -45
  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 +29 -26
  22. package/dist/components/ui/scatter-chart/scatter-chart.js.map +1 -1
  23. package/dist/components/ui/treemap/treemap.js +22 -21
  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 +21 -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 +2 -2
  39. package/dist/src/components/ui/bar-chart/bar-chart.d.ts +4 -3
  40. package/dist/src/components/ui/chart/chart.d.ts +15 -5
  41. package/dist/src/components/ui/chart/index.d.ts +1 -1
  42. package/dist/src/components/ui/composed-chart/composed-chart.d.ts +2 -2
  43. package/dist/src/components/ui/confidence-cone/confidence-cone.d.ts +2 -2
  44. package/dist/src/components/ui/funnel-chart/funnel-chart.d.ts +2 -2
  45. package/dist/src/components/ui/line-chart/line-chart.d.ts +2 -2
  46. package/dist/src/components/ui/pie-chart/pie-chart.d.ts +2 -2
  47. package/dist/src/components/ui/radar-chart/radar-chart.d.ts +2 -2
  48. package/dist/src/components/ui/radial-bar-chart/radial-bar-chart.d.ts +2 -2
  49. package/dist/src/components/ui/scatter-chart/scatter-chart.d.ts +2 -2
  50. package/dist/src/components/ui/treemap/treemap.d.ts +2 -2
  51. package/dist/ui-react.css +1 -1
  52. 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 ve({ content: e, dataKeys: t, ...n }) {
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 ye({ dataKeys: e, fontSize: t, ...n }) {
46
+ function M({ dataKeys: e, fontSize: t, legendAriaLabel: n, ...r }) {
47
47
  return /* @__PURE__ */ x(s, {
48
- verticalAlign: n.verticalAlign,
48
+ verticalAlign: r.verticalAlign,
49
49
  fontSize: t,
50
- payload: A(k(n.payload, e))
50
+ ariaLabel: n,
51
+ payload: A(k(r.payload, e))
51
52
  });
52
53
  }
53
- function j({ bar: e, track: t, trackFill: n, paint: r }) {
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 M({ inRange: e, trackFill: t, paint: n }) {
75
- return ({ background: r, index: i, ...a }) => j({
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 be({ rangeBackground: e, inRange: t, trackFill: n, activeBarOption: r }) {
83
+ function ve({ rangeBackground: e, inRange: t, trackFill: n, activeBarOption: r }) {
83
84
  return e ? {
84
- shape: M({
85
+ shape: P({
85
86
  inRange: t,
86
87
  trackFill: n
87
88
  }),
88
- activeBar: r && M({
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 xe(e) {
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 Se(e) {
118
- if (e) return xe;
118
+ function ye(e) {
119
+ if (e) return F;
119
120
  }
120
- function Ce(e) {
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 we({ id: e, dataKeys: t, shapes: n }) {
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 Te({ data: e, chartData: t, xKey: n, seriesKey: r, settings: i, range: a, headroomKey: o, barShape: s, rounded: c, fillOf: l, radiusFor: u }) {
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 N = (e) => e.toLocaleString();
181
- function P({ item: t, resolvedColor: a, max: o, valueFormatter: s, showTooltip: c, tooltip: l }) {
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 F = y.forwardRef(({ items: t, max: n, palette: r, valueFormatter: i = N, showTooltip: a = !0, tooltip: o, className: s, ...c }, l) => {
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(P, {
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
- F.displayName = "HorizontalBarLayout";
274
- var I = y.forwardRef((t, n) => {
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(F, {
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: j, xKey: M, referenceLine: xe, referenceArea: N, barSettings: P, xAxisLabel: I, yAxisLabel: Ee, yUnit: De, orientation: Oe = "vertical", layout: L = "grouped", barRadius: R = 8, barShape: z = "rounded", barSize: ke = 8, maxBarSize: Ae, barGap: je = 4, barCategoryGap: Me, minPointSize: B, showBackground: Ne = !1, backgroundFill: V = "var(--ui-background-surface-secondary)", showActiveBar: Pe = !1, activeBar: H, showGrid: Fe = !0, showTooltip: Ie = !0, showLegend: Le = !0, legendFontSize: Re, showXAxis: ze = !0, showYAxis: Be = !0, xTickFormatter: U, yTickFormatter: Ve, xAxisAngle: W, xAxisInterval: He, yAxisTickCount: Ue, yAxisDomain: We, gridDashed: Ge = !0, gridHorizontal: Ke, gridVertical: qe, tooltipContent: Je, animate: Ye, animationDuration: Xe, animationBegin: Ze, animationEasing: Qe, showLabels: $e = !1, labelPosition: et, labelFormatter: tt, showBrush: nt = !1, brushHeight: rt, brushAriaLabel: it, ...at } = t, G = f({
284
- animate: Ye,
285
- animationDuration: Xe,
286
- animationBegin: Ze,
287
- animationEasing: Qe
288
- }), K = L === "stacked", q = h({
289
- labelPosition: et,
290
- isStacked: K,
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
- }), ot = oe(xe), J = (N ? Array.isArray(N) ? N : [N] : []).map((e) => ({
293
+ }), st = oe(F), ct = (I ? Array.isArray(I) ? I : [I] : []).map((e) => ({
293
294
  area: e,
294
- range: g(e, A, M)
295
- })).filter((e) => e.range !== void 0), Y = new Map(j.flatMap((e) => {
296
- let t = P?.[e], n = t ? g(t, A, M) : void 0;
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
- })), X = new Map(K ? [] : Array.from(Y, ([e, t]) => typeof t.settings.background == "string" ? [e, t.settings.background] : void 0).filter((e) => e !== void 0)), Z = X.size ? A.map((e, t) => {
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 X.forEach((r, i) => {
304
- let a = Y.get(i);
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, st = new Set(J.filter(({ area: e }) => e.highlightTicks !== !1).flatMap(({ range: e }) => A.slice(e[0], e[1] + 1).map((e) => e[M]))), ct = st.size ? ({ payload: t, index: n, ...r }) => {
315
- let i = U ? U(t.value, n) : t.value;
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", st.has(t.value) && "fill-primary italic"),
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, lt = Pe ? {
323
- ...H?.fill === void 0 ? {} : { fill: H.fill },
324
- fillOpacity: H?.opacity ?? .85
325
- } : !1, Q = `bar-${r}`, ut = /* @__PURE__ */ new Set([z]);
326
- Y.forEach(({ settings: e }) => {
327
- e.shape && ut.add(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 dt = (e) => B === void 0 ? void 0 : (t, n) => {
330
- let r = K ? Z[n]?.[e] : t;
331
- return typeof r == "number" && r !== 0 ? B : 0;
332
- }, ft = (e, t) => t === "gradient" ? `url(#${Q}-gradient-${d(e)})` : t === "pattern" ? `url(#${Q}-pattern-${d(e)})` : `var(--color-${d(e)})`, pt = re(I), mt = ie(Ee), ht = p(We), gt = [
333
- R,
334
- R,
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 : R > 0 && t ? gt : void 0, _t = /* @__PURE__ */ x(ve, {
338
- content: Je,
339
- dataKeys: j
340
- }), vt = /* @__PURE__ */ x(ye, {
341
- dataKeys: j,
342
- fontSize: Re
343
- }), yt = () => /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(ge, {
344
- dataKey: M,
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: !ze,
348
+ hide: !Le,
347
349
  tickLine: !1,
348
350
  axisLine: !1,
349
- tick: ct,
350
- tickFormatter: U,
351
- angle: W,
352
- interval: He,
353
- textAnchor: te(W),
351
+ tick: ut,
352
+ tickFormatter: K,
353
+ angle: Be,
354
+ interval: Ve,
355
+ textAnchor: te(Be),
354
356
  height: w.height,
355
- label: pt
357
+ label: mt
356
358
  }), /* @__PURE__ */ x(_e, {
357
359
  type: "number",
358
- hide: !Be,
360
+ hide: !Re,
359
361
  tickLine: !1,
360
362
  axisLine: !1,
361
- unit: De,
362
- tickFormatter: Ve,
363
- tickCount: Ue,
364
- domain: ht,
365
- width: Ee ? 72 : void 0,
366
- label: mt
367
- })] }), bt = () => j.map((e, t) => {
368
- let n = !K || t === j.length - 1, r = Y.get(e), i = (e) => r !== void 0 && e >= r.range[0] && e <= r.range[1], a = X.get(e), { shape: o, activeBar: s } = be({
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: V,
372
- activeBarOption: lt
373
- }), c = r && Te({
373
+ trackFill: Ae,
374
+ activeBarOption: dt
375
+ }), c = r && Se({
374
376
  data: A,
375
- chartData: Z,
376
- xKey: M,
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: z,
383
+ barShape: W,
382
384
  rounded: n,
383
- fillOf: ft,
385
+ fillOf: Q,
384
386
  radiusFor: $
385
- }), l = $e && /* @__PURE__ */ x(fe, {
387
+ }), l = Qe && /* @__PURE__ */ x(fe, {
386
388
  dataKey: e,
387
- position: q,
388
- formatter: ae(tt),
389
- className: v(q),
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: ft(e, z),
395
- stackId: K ? "a" : a ? e : void 0,
396
- radius: $(z, n),
397
- minPointSize: dt(e),
398
- background: Ne ? { fill: V } : void 0,
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
- ...G,
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: $(z, !0),
410
+ radius: $(W, !0),
409
411
  legendType: "none",
410
412
  tooltipType: "none",
411
- ...G
413
+ ...at
412
414
  })] }, e);
413
- }), xt = () => J.map(({ area: e, range: t }, n) => {
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]?.[M],
417
- x2: A[i]?.[M],
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: Se(e.divider),
422
- label: Ce(e.label)
423
+ shape: ye(e.divider),
424
+ label: be(e.label)
423
425
  }, `${e.label ?? "area"}-${n}`);
424
- }), St = () => ot.map((e, t) => {
425
- let n = _(e, A, j);
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": Oe,
434
- "data-layout": L,
435
+ "data-orientation": V,
436
+ "data-layout": H,
435
437
  className: e(D({
436
- orientation: Oe,
437
- layout: L
438
+ orientation: V,
439
+ layout: H
438
440
  }), T),
439
- ...at,
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: Z,
448
+ data: X,
447
449
  layout: "horizontal",
448
- barSize: ke,
449
- maxBarSize: Ae,
450
- barGap: je,
451
- barCategoryGap: Me,
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(we, {
455
- id: Q,
456
- dataKeys: j,
457
- shapes: ut
456
+ /* @__PURE__ */ x(xe, {
457
+ id: Z,
458
+ dataKeys: N,
459
+ shapes: ft
458
460
  }),
459
- Fe && /* @__PURE__ */ x(de, {
460
- horizontal: Ke ?? !0,
461
- vertical: qe ?? !1,
462
- strokeDasharray: Ge ? "3 3" : void 0
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
- nt && /* @__PURE__ */ x(ue, {
471
- dataKey: M,
472
- tickFormatter: U,
471
+ Ct(),
472
+ tt && /* @__PURE__ */ x(ue, {
473
+ dataKey: P,
474
+ tickFormatter: K,
473
475
  ...m({
474
- brushHeight: rt,
475
- brushAriaLabel: it
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
- I.displayName = "BarChart";
485
+ z.displayName = "BarChart";
484
486
  //#endregion
485
- export { I as BarChart, ye as NormalizedLegendContent, ve as NormalizedTooltipContent, D as barChartVariants, M as createTrackShape, k as dropHeadroomSeries, A as withSeriesColor };
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