@acronis-platform/ui-react 5.1.1 → 5.3.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.
Files changed (55) hide show
  1. package/dist/components/ui/area-chart/area-chart.js +107 -107
  2. package/dist/components/ui/area-chart/area-chart.js.map +1 -1
  3. package/dist/components/ui/bar-chart/bar-chart.js +162 -162
  4. package/dist/components/ui/bar-chart/bar-chart.js.map +1 -1
  5. package/dist/components/ui/category-bar/category-bar.js +50 -50
  6. package/dist/components/ui/category-bar/category-bar.js.map +1 -1
  7. package/dist/components/ui/chart/chart.js +53 -40
  8. package/dist/components/ui/chart/chart.js.map +1 -1
  9. package/dist/components/ui/checkbox/checkbox.js +1 -1
  10. package/dist/components/ui/checkbox/checkbox.js.map +1 -1
  11. package/dist/components/ui/combobox/combobox.js +1 -1
  12. package/dist/components/ui/combobox/combobox.js.map +1 -1
  13. package/dist/components/ui/composed-chart/composed-chart.js +146 -146
  14. package/dist/components/ui/composed-chart/composed-chart.js.map +1 -1
  15. package/dist/components/ui/confidence-cone/confidence-cone.js +97 -97
  16. package/dist/components/ui/confidence-cone/confidence-cone.js.map +1 -1
  17. package/dist/components/ui/dropdown-menu/dropdown-menu.js +2 -2
  18. package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -1
  19. package/dist/components/ui/funnel-chart/funnel-chart.js +120 -120
  20. package/dist/components/ui/funnel-chart/funnel-chart.js.map +1 -1
  21. package/dist/components/ui/histogram/histogram.js +58 -58
  22. package/dist/components/ui/histogram/histogram.js.map +1 -1
  23. package/dist/components/ui/input-num-picker/input-num-picker.js.map +1 -1
  24. package/dist/components/ui/input-select/input-select.js +1 -1
  25. package/dist/components/ui/input-select/input-select.js.map +1 -1
  26. package/dist/components/ui/line-chart/line-chart.js +91 -91
  27. package/dist/components/ui/line-chart/line-chart.js.map +1 -1
  28. package/dist/components/ui/number-field/number-field.js.map +1 -1
  29. package/dist/components/ui/pie-chart/pie-chart.js +92 -92
  30. package/dist/components/ui/pie-chart/pie-chart.js.map +1 -1
  31. package/dist/components/ui/radar-chart/radar-chart.js +37 -37
  32. package/dist/components/ui/radar-chart/radar-chart.js.map +1 -1
  33. package/dist/components/ui/radial-bar-chart/radial-bar-chart.js +112 -112
  34. package/dist/components/ui/radial-bar-chart/radial-bar-chart.js.map +1 -1
  35. package/dist/components/ui/sankey-chart/sankey-chart.js +78 -78
  36. package/dist/components/ui/sankey-chart/sankey-chart.js.map +1 -1
  37. package/dist/components/ui/scatter-chart/scatter-chart.js +57 -57
  38. package/dist/components/ui/scatter-chart/scatter-chart.js.map +1 -1
  39. package/dist/components/ui/sidebar-primary/sidebar-primary.js +10 -5
  40. package/dist/components/ui/sidebar-primary/sidebar-primary.js.map +1 -1
  41. package/dist/components/ui/treemap/treemap.js +87 -87
  42. package/dist/components/ui/treemap/treemap.js.map +1 -1
  43. package/dist/index.js +111 -111
  44. package/dist/llms/checkbox.md +63 -12
  45. package/dist/llms/sidebar-primary.md +18 -1
  46. package/dist/llms.txt +1 -1
  47. package/dist/react.js +111 -111
  48. package/dist/src/components/ui/chart/chart.d.ts +1 -0
  49. package/dist/src/components/ui/chart/index.d.ts +1 -1
  50. package/dist/src/components/ui/radial-bar-chart/radial-bar-chart.d.ts +3 -2
  51. package/dist/src/components/ui/sankey-chart/sankey-chart.d.ts +1 -1
  52. package/dist/src/components/ui/sidebar-primary/sidebar-primary.d.ts +23 -0
  53. package/dist/src/components/ui/treemap/treemap.d.ts +3 -2
  54. package/dist/ui-react.css +1 -1
  55. package/package.json +2 -2
@@ -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 s, resolveAnimation as c, resolveAxisDomain as l, resolveBrushProps as u, resolveCartesianLabelPosition as d, resolveCategoryRange as f, resolveChartReferenceValue as p, resolveLabelFillClass as ee, resolveReferenceLineProps as te, resolveRotatedTickAnchor as ne, resolveXAxisHeight as re, resolveXAxisTitle as m, resolveYAxisTitle as h, toLabelFormatter as ie } from "../chart/chart-format.js";
6
- import * as g from "react";
7
- import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
8
- import { Area as ae, Bar as oe, Brush as se, CartesianGrid as ce, ComposedChart as le, LabelList as ue, Line as de, ReferenceArea as fe, ReferenceLine as pe, XAxis as b, YAxis as x } from "recharts";
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 me = t("", {
10
+ var x = t("", {
11
11
  variants: { orientation: {
12
12
  vertical: "",
13
13
  horizontal: ""
14
14
  } },
15
15
  defaultVariants: { orientation: "vertical" }
16
- }), he = 100, ge = 50, S = "secondary", _e = {
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
- }, ve = .85, ye = { top: 16 }, C = g.forwardRef(({ className: t, config: g, palette: C, data: w, series: T, xKey: E, referenceLine: D, referenceArea: O, orientation: k = "vertical", xAxisLabel: A, yAxisLabel: j, xUnit: be, yUnit: xe, curve: M = "monotone", barRadius: Se = 4, barSize: Ce, barGap: we, barCategoryGap: Te, showBackground: Ee = !1, backgroundFill: De = "var(--ui-background-surface-secondary)", showActiveBar: Oe = !1, fillOpacity: ke = .3, strokeWidth: N, showDots: Ae = !1, showActiveDots: je, connectNulls: Me = !1, margin: P, showGrid: Ne = !0, showTooltip: Pe = !0, tooltipCursor: Fe = !0, showLegend: Ie = !0, legendPosition: F = "bottom", showXAxis: I = !0, showYAxis: L = !0, xTickFormatter: R, yTickFormatter: z, xAxisAngle: B, xAxisInterval: V, yAxisTickCount: H, yAxisDomain: Le, yAxisOrientation: U, showSecondaryYAxis: W = !0, secondaryYAxisLabel: G, secondaryYUnit: K, secondaryYTickFormatter: Re, secondaryYAxisTickCount: ze, secondaryYAxisDomain: Be, gridDashed: Ve, gridHorizontal: He, gridVertical: Ue, tooltipContent: We, animate: Ge, animationDuration: Ke, animationBegin: qe, animationEasing: Je, showLabels: Ye = !1, labelPosition: Xe, labelFormatter: Ze, showBrush: Qe = !1, brushHeight: $e, brushAriaLabel: et, ...tt }, nt) => {
22
- let q = c({
23
- animate: Ge,
24
- animationDuration: Ke,
25
- animationBegin: qe,
26
- animationEasing: Je
27
- }), J = k === "horizontal", rt = m(A), Y = T.some((e) => e.yAxis === "secondary"), it = T.some((e) => e.yAxis !== "secondary"), X = Y && !it, at = U ?? "left", ot = at === "left" ? "right" : "left", st = h(j, J ? "left" : at), ct = h(G, ot), lt = m(G, "insideTop"), ut = l(Le), dt = l(Be), Z = (e) => {
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
- }, ft = X ? Z("secondary") : {}, Q = re(A, B), pt = D ? Array.isArray(D) ? D : [D] : [], mt = (O ? Array.isArray(O) ? O : [O] : []).map((e) => ({
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), ht = X ? "secondary" : "primary", gt = (e) => e.yAxis ?? "primary", _t = new Map(T.map((e) => [e.key, gt(e)])), vt = (e) => T.filter((t) => gt(t) === e).map((e) => e.key), yt = new Set(T.filter((e) => e.legendType === "none").map((e) => e.key)), $ = (e) => w[e]?.[E] ?? void 0, bt = pt.map((e) => {
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" ? _t.get(e.average) ?? ht : ht), r = p(e, w, vt(n)), i = t ? $(t[0]) : void 0;
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), xt = Ye ? s : void 0, St = bt.some((e) => e.line.label && e.isVerticalRule) ? ye : void 0, Ct = P || xt || St ? {
45
- ...P ? _e : {},
46
- ...St,
47
- ...xt,
48
- ...P
49
- } : void 0, wt = /* @__PURE__ */ new Map();
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" && wt.set(`${e.type}-${e.stackId}`, t);
51
+ e.stackId && e.type !== "line" && $.set(`${e.type}-${e.stackId}`, t);
52
52
  });
53
- let Tt = () => /* @__PURE__ */ y(_, { children: [
54
- /* @__PURE__ */ v(b, {
53
+ let Et = () => /* @__PURE__ */ v(oe, { children: [
54
+ /* @__PURE__ */ _(y, {
55
55
  type: "number",
56
- hide: !I || X,
56
+ hide: !ze || X,
57
57
  tickLine: !1,
58
58
  axisLine: !1,
59
- unit: be,
60
- tickFormatter: R,
61
- angle: B,
62
- interval: V,
63
- textAnchor: ne(B),
64
- tickCount: H,
65
- domain: ut,
66
- height: Q,
67
- label: rt
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__ */ v(x, {
69
+ /* @__PURE__ */ _(b, {
70
70
  dataKey: E,
71
71
  type: "category",
72
- hide: !L,
72
+ hide: !Be,
73
73
  tickLine: !1,
74
74
  axisLine: !1,
75
- tickFormatter: z,
76
- width: j ? 96 : 80,
77
- label: st
75
+ tickFormatter: I,
76
+ width: A ? 96 : 80,
77
+ label: ct
78
78
  }),
79
- Y && /* @__PURE__ */ v(b, {
79
+ Y && /* @__PURE__ */ _(y, {
80
80
  xAxisId: S,
81
81
  type: "number",
82
- hide: !W,
82
+ hide: !V,
83
83
  orientation: "top",
84
84
  tickLine: !1,
85
85
  axisLine: !1,
86
- unit: K,
87
- tickFormatter: Re,
88
- tickCount: ze,
89
- domain: dt,
90
- label: lt
86
+ unit: U,
87
+ tickFormatter: W,
88
+ tickCount: G,
89
+ domain: ft,
90
+ label: ut
91
91
  })
92
- ] }), Et = () => /* @__PURE__ */ y(_, { children: [
93
- /* @__PURE__ */ v(b, {
92
+ ] }), Dt = () => /* @__PURE__ */ v(oe, { children: [
93
+ /* @__PURE__ */ _(y, {
94
94
  dataKey: E,
95
95
  type: "category",
96
- hide: !I,
96
+ hide: !ze,
97
97
  tickLine: !1,
98
98
  axisLine: !1,
99
99
  tickMargin: 8,
100
- tickFormatter: R,
101
- angle: B,
102
- interval: V,
103
- textAnchor: ne(B),
104
- height: Q,
105
- label: rt
100
+ tickFormatter: F,
101
+ angle: L,
102
+ interval: R,
103
+ textAnchor: m(L),
104
+ height: mt,
105
+ label: it
106
106
  }),
107
- /* @__PURE__ */ v(x, {
107
+ /* @__PURE__ */ _(b, {
108
108
  type: "number",
109
- hide: !L || X,
110
- ...U ? { orientation: U } : {},
109
+ hide: !Be || X,
110
+ ...B ? { orientation: B } : {},
111
111
  tickLine: !1,
112
112
  axisLine: !1,
113
- unit: xe,
114
- tickFormatter: z,
115
- tickCount: H,
116
- domain: ut,
117
- width: j ? 72 : void 0,
118
- label: st
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__ */ v(x, {
120
+ Y && /* @__PURE__ */ _(b, {
121
121
  yAxisId: S,
122
122
  type: "number",
123
- hide: !W,
124
- orientation: ot,
123
+ hide: !V,
124
+ orientation: st,
125
125
  tickLine: !1,
126
126
  axisLine: !1,
127
- unit: K,
128
- tickFormatter: Re,
129
- tickCount: ze,
130
- domain: dt,
131
- width: G ? 72 : void 0,
132
- label: ct
127
+ unit: U,
128
+ tickFormatter: W,
129
+ tickCount: G,
130
+ domain: ft,
131
+ width: H ? 72 : void 0,
132
+ label: lt
133
133
  })
134
- ] }), Dt = yt.size > 0 ? (e) => /* @__PURE__ */ v(i, {
135
- verticalAlign: F,
136
- payload: e.payload?.filter((e) => !yt.has(String(e.dataKey)))
137
- }) : /* @__PURE__ */ v(i, { verticalAlign: F }), Ot = (e, t) => {
138
- let n = e.color ?? `var(--color-${e.key})`, r = he + t, i = Z(e.yAxis), a = e.stackId && e.type !== "line" ? `${e.type}-${e.stackId}` : void 0, o = e.fillOpacity ?? ke, s = e.connectNulls ?? Me, c = e.showDots ?? Ae, l = e.showActiveDots ?? je, u = e.legendType ? { legendType: e.legendType } : {}, f = d({
139
- labelPosition: Xe,
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 = Ye ? /* @__PURE__ */ v(ue, {
142
+ }), p = K ? /* @__PURE__ */ _(fe, {
143
143
  dataKey: e.key,
144
144
  position: f,
145
- formatter: ie(Ze),
146
- className: ee(f, { translucentSeries: e.type === "area" }),
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 ?? Se, s = a === void 0 || wt.get(a) === t, c = e.showBackground ?? Ee, l = e.showActiveBar ?? Oe;
151
- return /* @__PURE__ */ v(oe, {
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: De } } : {},
176
- ...l ? { activeBar: { fillOpacity: ve } } : {},
177
- ...u,
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 ?? N, d = t === void 0 ? {} : { strokeWidth: t };
184
- return /* @__PURE__ */ v(ae, {
185
- type: e.curve ?? M,
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
- ...d,
193
+ ...s,
194
194
  ...e.strokeDasharray === void 0 ? {} : { strokeDasharray: e.strokeDasharray },
195
- dot: c ? { r: 3 } : !1,
196
- ...l === void 0 ? {} : { activeDot: l ? { r: 5 } : !1 },
197
- connectNulls: s,
198
- ...u,
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__ */ v(de, {
204
- type: e.curve ?? M,
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 ?? N ?? 2,
209
- dot: c ? { r: 3 } : !1,
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
- ...l === void 0 ? {} : { activeDot: l ? { r: 5 } : !1 },
213
- connectNulls: s,
214
- ...u,
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
- }, kt = ({ area: e, range: t }, n) => {
218
+ }, At = ({ area: e, range: t }, n) => {
219
219
  let [r, i] = t;
220
- return /* @__PURE__ */ v(fe, {
221
- ...ft,
220
+ return /* @__PURE__ */ _(me, {
221
+ ...pt,
222
222
  ...J ? {
223
- y1: $(r),
224
- y2: $(i)
223
+ y1: Q(r),
224
+ y2: Q(i)
225
225
  } : {
226
- x1: $(r),
227
- x2: $(i)
226
+ x1: Q(r),
227
+ x2: Q(i)
228
228
  },
229
229
  fill: "var(--ui-background-surface-secondary)",
230
230
  fillOpacity: .6,
231
- zIndex: ge,
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
- }, At = ({ line: e, lineAxis: t, position: n, isVerticalRule: r }, i) => /* @__PURE__ */ v(pe, {
240
+ }, jt = ({ line: e, lineAxis: t, position: n, isVerticalRule: r }, i) => /* @__PURE__ */ _(he, {
241
241
  ...t === "secondary" && Y ? Z("secondary") : {},
242
242
  ...n,
243
- ...te(e.label, e.labelPosition ?? (r ? "top" : "insideTopRight"))
243
+ ...ne(e.label, e.labelPosition ?? (r ? "top" : "insideTopRight"))
244
244
  }, `${e.label ?? "ref"}-${i}`);
245
- return /* @__PURE__ */ v("div", {
246
- ref: nt,
245
+ return /* @__PURE__ */ _("div", {
246
+ ref: rt,
247
247
  "data-orientation": k,
248
- className: e(me({ orientation: k }), t),
249
- ...tt,
250
- children: /* @__PURE__ */ v(n, {
251
- config: g,
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__ */ y(le, {
254
+ children: /* @__PURE__ */ v(de, {
255
255
  data: w,
256
256
  layout: J ? "vertical" : "horizontal",
257
- barSize: Ce,
258
- barGap: we,
259
- barCategoryGap: Te,
260
- margin: Ct,
257
+ barSize: Te,
258
+ barGap: Ee,
259
+ barCategoryGap: De,
260
+ margin: Tt,
261
261
  children: [
262
- Ne && /* @__PURE__ */ v(ce, {
263
- ...ft,
264
- horizontal: He ?? !J,
265
- vertical: Ue ?? J,
266
- strokeDasharray: Ve ? "3 3" : void 0
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 ? Tt() : Et(),
269
- Pe && /* @__PURE__ */ v(a, {
270
- ...Fe ? {} : { cursor: !1 },
271
- content: We ?? /* @__PURE__ */ v(o, {})
268
+ J ? Et() : Dt(),
269
+ Ie && /* @__PURE__ */ _(a, {
270
+ ...Le ? {} : { cursor: !1 },
271
+ content: Ke ?? /* @__PURE__ */ _(o, {})
272
272
  }),
273
- Ie && /* @__PURE__ */ v(r, {
274
- verticalAlign: F,
275
- content: Dt
273
+ Re && /* @__PURE__ */ _(r, {
274
+ verticalAlign: P,
275
+ content: Ot
276
276
  }),
277
- T.map(Ot),
278
- mt.map(kt),
279
- bt.map(At),
280
- Qe && /* @__PURE__ */ v(se, {
277
+ T.map(kt),
278
+ gt.map(At),
279
+ St.map(jt),
280
+ $e && /* @__PURE__ */ _(le, {
281
281
  dataKey: E,
282
- tickFormatter: J ? z : R,
283
- ...u({
284
- brushHeight: $e,
285
- brushAriaLabel: et
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, me as composedChartVariants };
295
+ export { C as ComposedChart, x as composedChartVariants };
296
296
 
297
297
  //# sourceMappingURL=composed-chart.js.map