@acronis-platform/ui-react 3.0.0 → 4.0.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/dist/components/ui/accordion-container/accordion-container.js +14 -14
- package/dist/components/ui/accordion-container/accordion-container.js.map +1 -1
- package/dist/components/ui/app-shell-chat/app-shell-chat.js.map +1 -1
- package/dist/components/ui/area-chart/area-chart.js +141 -139
- package/dist/components/ui/area-chart/area-chart.js.map +1 -1
- package/dist/components/ui/bar-chart/bar-chart.js +295 -293
- package/dist/components/ui/bar-chart/bar-chart.js.map +1 -1
- package/dist/components/ui/category-bar/category-bar.js +109 -93
- package/dist/components/ui/category-bar/category-bar.js.map +1 -1
- package/dist/components/ui/chart/chart-palette.js +113 -0
- package/dist/components/ui/chart/chart-palette.js.map +1 -0
- package/dist/components/ui/chart/chart.js +176 -129
- package/dist/components/ui/chart/chart.js.map +1 -1
- package/dist/components/ui/chart-state/chart-state-illustrations.js +310 -0
- package/dist/components/ui/chart-state/chart-state-illustrations.js.map +1 -0
- package/dist/components/ui/chart-state/chart-state.js +48 -34
- package/dist/components/ui/chart-state/chart-state.js.map +1 -1
- package/dist/components/ui/chart-widget/chart-widget.js +87 -0
- package/dist/components/ui/chart-widget/chart-widget.js.map +1 -0
- package/dist/components/ui/composed-chart/composed-chart.js +117 -115
- package/dist/components/ui/composed-chart/composed-chart.js.map +1 -1
- package/dist/components/ui/confidence-cone/confidence-cone.js +166 -158
- package/dist/components/ui/confidence-cone/confidence-cone.js.map +1 -1
- package/dist/components/ui/funnel-chart/funnel-chart.js +162 -161
- package/dist/components/ui/funnel-chart/funnel-chart.js.map +1 -1
- package/dist/components/ui/histogram/histogram.js +94 -92
- package/dist/components/ui/histogram/histogram.js.map +1 -1
- package/dist/components/ui/input/input.js.map +1 -1
- package/dist/components/ui/label/label.js +2 -9
- package/dist/components/ui/label/label.js.map +1 -1
- package/dist/components/ui/line-chart/line-chart.js +143 -141
- package/dist/components/ui/line-chart/line-chart.js.map +1 -1
- package/dist/components/ui/metric/metric.js +74 -185
- package/dist/components/ui/metric/metric.js.map +1 -1
- package/dist/components/ui/page-content/page-content.js.map +1 -1
- package/dist/components/ui/pie-chart/pie-chart.js +201 -195
- package/dist/components/ui/pie-chart/pie-chart.js.map +1 -1
- package/dist/components/ui/radar-chart/radar-chart.js +133 -131
- package/dist/components/ui/radar-chart/radar-chart.js.map +1 -1
- package/dist/components/ui/radial-bar-chart/radial-bar-chart.js +297 -265
- package/dist/components/ui/radial-bar-chart/radial-bar-chart.js.map +1 -1
- package/dist/components/ui/sankey-chart/sankey-chart.js +123 -101
- package/dist/components/ui/sankey-chart/sankey-chart.js.map +1 -1
- package/dist/components/ui/scatter-chart/scatter-chart.js +76 -74
- package/dist/components/ui/scatter-chart/scatter-chart.js.map +1 -1
- package/dist/components/ui/section/section.js +157 -31
- package/dist/components/ui/section/section.js.map +1 -1
- package/dist/components/ui/stepper/stepper.js +24 -24
- package/dist/components/ui/stepper/stepper.js.map +1 -1
- package/dist/components/ui/stepper-item/stepper-item.js +43 -24
- package/dist/components/ui/stepper-item/stepper-item.js.map +1 -1
- package/dist/components/ui/treemap/treemap.js +133 -124
- package/dist/components/ui/treemap/treemap.js.map +1 -1
- package/dist/components/ui/trend-indicator/trend-indicator.js +34 -69
- package/dist/components/ui/trend-indicator/trend-indicator.js.map +1 -1
- package/dist/components/ui/wizard/wizard.js +59 -0
- package/dist/components/ui/wizard/wizard.js.map +1 -0
- package/dist/hooks/use-wizard.js +75 -0
- package/dist/hooks/use-wizard.js.map +1 -0
- package/dist/index.js +502 -497
- package/dist/index.js.map +1 -1
- package/dist/llms/accordion-container.md +181 -0
- package/dist/llms/accordion.md +124 -0
- package/dist/llms/alert.md +225 -0
- package/dist/llms/app-shell-chat.md +415 -0
- package/dist/llms/area-chart.md +355 -0
- package/dist/llms/avatar.md +208 -0
- package/dist/llms/bar-chart.md +406 -0
- package/dist/llms/breadcrumb.md +326 -0
- package/dist/llms/button-group.md +298 -0
- package/dist/llms/button-icon-input.md +142 -0
- package/dist/llms/button-icon-menu.md +209 -0
- package/dist/llms/button-icon.md +128 -0
- package/dist/llms/button-menu.md +172 -0
- package/dist/llms/button.md +185 -0
- package/dist/llms/calendar-panel.md +733 -0
- package/dist/llms/calendar.md +188 -0
- package/dist/llms/card-filter.md +214 -0
- package/dist/llms/card-section.md +293 -0
- package/dist/llms/card.md +447 -0
- package/dist/llms/carousel-dialog.md +156 -0
- package/dist/llms/category-bar.md +193 -0
- package/dist/llms/chart-state.md +190 -0
- package/dist/llms/chart-widget.md +209 -0
- package/dist/llms/chart.md +182 -0
- package/dist/llms/checkbox.md +257 -0
- package/dist/llms/chip.md +195 -0
- package/dist/llms/combobox.md +164 -0
- package/dist/llms/composed-chart.md +508 -0
- package/dist/llms/confidence-cone.md +277 -0
- package/dist/llms/data-table.md +474 -0
- package/dist/llms/date-range-picker.md +272 -0
- package/dist/llms/description-list.md +131 -0
- package/dist/llms/dialog-footer-carousel.md +147 -0
- package/dist/llms/dialog-footer-default.md +142 -0
- package/dist/llms/dialog-root.md +246 -0
- package/dist/llms/dialog-welcome.md +223 -0
- package/dist/llms/dialog.md +403 -0
- package/dist/llms/dropdown-menu.md +193 -0
- package/dist/llms/empty-overlay.md +146 -0
- package/dist/llms/empty.md +156 -0
- package/dist/llms/field.md +185 -0
- package/dist/llms/filter-cards.md +157 -0
- package/dist/llms/filter-chips.md +323 -0
- package/dist/llms/filter-search.md +512 -0
- package/dist/llms/form.md +154 -0
- package/dist/llms/funnel-chart.md +333 -0
- package/dist/llms/grid.md +80 -0
- package/dist/llms/histogram.md +190 -0
- package/dist/llms/input-date-picker.md +203 -0
- package/dist/llms/input-otp.md +173 -0
- package/dist/llms/input-password.md +197 -0
- package/dist/llms/input-search.md +170 -0
- package/dist/llms/input-select.md +278 -0
- package/dist/llms/input-text-area.md +271 -0
- package/dist/llms/input-text.md +192 -0
- package/dist/llms/line-chart.md +369 -0
- package/dist/llms/link.md +209 -0
- package/dist/llms/loading.md +130 -0
- package/dist/llms/meter.md +177 -0
- package/dist/llms/metric.md +204 -0
- package/dist/llms/number-field.md +122 -0
- package/dist/llms/page-content.md +69 -0
- package/dist/llms/page-header.md +182 -0
- package/dist/llms/pagination.md +133 -0
- package/dist/llms/pie-chart.md +307 -0
- package/dist/llms/popover.md +252 -0
- package/dist/llms/progress-circle.md +126 -0
- package/dist/llms/progress.md +111 -0
- package/dist/llms/radar-chart.md +316 -0
- package/dist/llms/radial-bar-chart.md +319 -0
- package/dist/llms/radio.md +255 -0
- package/dist/llms/resizable.md +195 -0
- package/dist/llms/sankey-chart.md +208 -0
- package/dist/llms/scatter-chart.md +239 -0
- package/dist/llms/scroll-area.md +183 -0
- package/dist/llms/section.md +401 -0
- package/dist/llms/select.md +210 -0
- package/dist/llms/separator.md +87 -0
- package/dist/llms/sheet.md +202 -0
- package/dist/llms/sidebar-primary.md +360 -0
- package/dist/llms/sidebar-secondary.md +417 -0
- package/dist/llms/skeleton.md +81 -0
- package/dist/llms/slider.md +97 -0
- package/dist/llms/spinner.md +100 -0
- package/dist/llms/stack.md +80 -0
- package/dist/llms/stepper-item.md +309 -0
- package/dist/llms/stepper.md +251 -0
- package/dist/llms/switch.md +140 -0
- package/dist/llms/table.md +436 -0
- package/dist/llms/tabs.md +197 -0
- package/dist/llms/tag.md +139 -0
- package/dist/llms/timeline.md +361 -0
- package/dist/llms/timer.md +259 -0
- package/dist/llms/toast.md +241 -0
- package/dist/llms/toggle-group.md +121 -0
- package/dist/llms/toolbar.md +453 -0
- package/dist/llms/tooltip.md +164 -0
- package/dist/llms/treemap.md +254 -0
- package/dist/llms/trend-indicator.md +132 -0
- package/dist/llms/widget-placeholder.md +169 -0
- package/dist/llms/wizard.md +412 -0
- package/dist/llms.txt +142 -0
- package/dist/react.js +502 -497
- package/dist/react.js.map +1 -1
- package/dist/src/components/ui/area-chart/area-chart.d.ts +9 -4
- package/dist/src/components/ui/avatar/avatar.d.ts +1 -1
- package/dist/src/components/ui/bar-chart/bar-chart.d.ts +9 -4
- package/dist/src/components/ui/category-bar/category-bar.d.ts +10 -4
- package/dist/src/components/ui/chart/__stories__/palette-control.d.ts +48 -0
- package/dist/src/components/ui/chart/__tests__/chart-palette.test.d.ts +1 -0
- package/dist/src/components/ui/chart/chart-palette.d.ts +128 -0
- package/dist/src/components/ui/chart/chart.d.ts +66 -15
- package/dist/src/components/ui/chart/index.d.ts +4 -2
- package/dist/src/components/ui/chart-state/chart-state-illustrations.d.ts +6 -0
- package/dist/src/components/ui/chart-state/chart-state.d.ts +13 -2
- package/dist/src/components/ui/chart-state/index.d.ts +1 -0
- package/dist/src/components/ui/chart-widget/chart-widget.d.ts +64 -0
- package/dist/src/components/ui/chart-widget/index.d.ts +1 -0
- package/dist/src/components/ui/composed-chart/composed-chart.d.ts +12 -7
- package/dist/src/components/ui/confidence-cone/confidence-cone.d.ts +10 -5
- package/dist/src/components/ui/empty-overlay/empty-overlay.d.ts +1 -1
- package/dist/src/components/ui/funnel-chart/funnel-chart.d.ts +11 -5
- package/dist/src/components/ui/histogram/histogram.d.ts +10 -4
- package/dist/src/components/ui/label/index.d.ts +1 -1
- package/dist/src/components/ui/label/label.d.ts +1 -5
- package/dist/src/components/ui/line-chart/line-chart.d.ts +9 -4
- package/dist/src/components/ui/metric/metric.d.ts +13 -14
- package/dist/src/components/ui/pie-chart/pie-chart.d.ts +17 -8
- package/dist/src/components/ui/radar-chart/radar-chart.d.ts +10 -5
- package/dist/src/components/ui/radial-bar-chart/radial-bar-chart.d.ts +17 -6
- package/dist/src/components/ui/sankey-chart/sankey-chart.d.ts +10 -5
- package/dist/src/components/ui/scatter-chart/scatter-chart.d.ts +10 -5
- package/dist/src/components/ui/section/index.d.ts +1 -1
- package/dist/src/components/ui/section/section.d.ts +75 -6
- package/dist/src/components/ui/stepper-item/stepper-item.d.ts +6 -5
- package/dist/src/components/ui/tag/tag.d.ts +1 -1
- package/dist/src/components/ui/treemap/treemap.d.ts +11 -5
- package/dist/src/components/ui/trend-indicator/trend-indicator.d.ts +3 -7
- package/dist/src/components/ui/wizard/index.d.ts +1 -0
- package/dist/src/components/ui/wizard/wizard.d.ts +6 -0
- package/dist/src/hooks/index.d.ts +1 -0
- package/dist/src/hooks/use-wizard.d.ts +80 -0
- package/dist/src/index.d.ts +2 -3
- package/dist/ui-react.css +1 -1
- package/package.json +9 -3
- package/dist/components/ui/app-shell/app-shell.js +0 -75
- package/dist/components/ui/app-shell/app-shell.js.map +0 -1
- package/dist/components/ui/auth-layout/auth-layout.js +0 -56
- package/dist/components/ui/auth-layout/auth-layout.js.map +0 -1
- package/dist/components/ui/collapsible/collapsible.js +0 -22
- package/dist/components/ui/collapsible/collapsible.js.map +0 -1
- package/dist/src/components/ui/app-shell/app-shell.d.ts +0 -8
- package/dist/src/components/ui/app-shell/index.d.ts +0 -1
- package/dist/src/components/ui/auth-layout/auth-layout.d.ts +0 -6
- package/dist/src/components/ui/auth-layout/index.d.ts +0 -1
- package/dist/src/components/ui/collapsible/collapsible.d.ts +0 -5
- package/dist/src/components/ui/collapsible/index.d.ts +0 -1
- package/dist/src/components/ui/label/label.docs.d.ts +0 -10
|
@@ -1,180 +1,187 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { ComposedChart as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { resolveAnimation as
|
|
6
|
-
import { ChartContainer as
|
|
7
|
-
const
|
|
8
|
-
function
|
|
1
|
+
import { jsx as r, jsxs as A, Fragment as B } from "react/jsx-runtime";
|
|
2
|
+
import * as v from "react";
|
|
3
|
+
import { ComposedChart as Ke, CartesianGrid as Re, Text as Le, XAxis as Ne, YAxis as Me, ReferenceArea as Oe, ReferenceLine as z, Area as H, Line as j } from "recharts";
|
|
4
|
+
import { cn as Xe } from "../../../lib/utils.js";
|
|
5
|
+
import { resolveAnimation as _e, resolveRotatedTickAnchor as Se, CHART_LABEL_FONT_SIZE as Ee, resolveXAxisTitle as Be, resolveXAxisHeight as ze, resolveYAxisTitle as He, resolveAxisDomain as je } from "../chart/chart-format.js";
|
|
6
|
+
import { ChartContainer as we, ChartTooltip as w, ChartTooltipContent as Ie, ChartLegend as Pe, ChartLegendContent as We } from "../chart/chart.js";
|
|
7
|
+
const I = "__cone", x = (t) => `${I}:${t}`;
|
|
8
|
+
function P(t) {
|
|
9
9
|
return t == null ? void 0 : t.filter(
|
|
10
|
-
(o) => !(typeof o.dataKey == "string" && o.dataKey.startsWith(
|
|
10
|
+
(o) => !(typeof o.dataKey == "string" && o.dataKey.startsWith(I))
|
|
11
11
|
);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function Ye(t, o) {
|
|
14
14
|
return t == null ? void 0 : t.filter(
|
|
15
|
-
(
|
|
15
|
+
(a) => typeof a.dataKey == "string" && o.includes(a.dataKey)
|
|
16
16
|
);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
return function(
|
|
18
|
+
function Ge(t) {
|
|
19
|
+
return function(a) {
|
|
20
20
|
const l = {
|
|
21
|
-
...
|
|
22
|
-
payload:
|
|
21
|
+
...a,
|
|
22
|
+
payload: P(a.payload)
|
|
23
23
|
};
|
|
24
|
-
return typeof t == "function" ?
|
|
24
|
+
return typeof t == "function" ? v.createElement(
|
|
25
25
|
t,
|
|
26
26
|
l
|
|
27
|
-
) :
|
|
27
|
+
) : v.cloneElement(t, l);
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
return t.filter(
|
|
30
|
+
function Ze(t, o, a) {
|
|
31
|
+
return t.filter(
|
|
32
|
+
(l) => o.some(({ forecastKey: c }) => typeof l[c] == "number")
|
|
33
|
+
).map((l) => l[a]);
|
|
32
34
|
}
|
|
33
|
-
function
|
|
35
|
+
function qe(t, o, a) {
|
|
34
36
|
return function({
|
|
35
37
|
payload: c,
|
|
36
|
-
index:
|
|
38
|
+
index: f,
|
|
37
39
|
...y
|
|
38
40
|
}) {
|
|
39
|
-
const
|
|
41
|
+
const s = c == null ? void 0 : c.value;
|
|
40
42
|
return /* @__PURE__ */ r(
|
|
41
|
-
|
|
43
|
+
Le,
|
|
42
44
|
{
|
|
43
45
|
...y,
|
|
44
|
-
style:
|
|
45
|
-
children:
|
|
46
|
+
style: s != null && t.has(s) ? { fontStyle: "italic", fill: o } : void 0,
|
|
47
|
+
children: a && s != null ? a(s, f) : s
|
|
46
48
|
}
|
|
47
49
|
);
|
|
48
50
|
};
|
|
49
51
|
}
|
|
50
|
-
const
|
|
52
|
+
const Je = v.forwardRef(
|
|
51
53
|
({
|
|
52
54
|
className: t,
|
|
53
55
|
config: o,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
56
|
+
palette: a,
|
|
57
|
+
data: l,
|
|
58
|
+
xKey: c,
|
|
59
|
+
series: f,
|
|
60
|
+
actualKey: y,
|
|
61
|
+
forecastKey: s,
|
|
62
|
+
lowerKey: C,
|
|
63
|
+
upperKey: $,
|
|
64
|
+
xAxisLabel: D,
|
|
65
|
+
yAxisLabel: F,
|
|
66
|
+
yUnit: W,
|
|
67
|
+
actualType: K = "area",
|
|
68
|
+
strokeWidth: R = 2,
|
|
66
69
|
showDots: p = !1,
|
|
67
|
-
styleForecastTicks:
|
|
70
|
+
styleForecastTicks: Y = !1,
|
|
68
71
|
referenceLine: h,
|
|
69
|
-
showForecastRegion:
|
|
70
|
-
showGrid:
|
|
71
|
-
showTooltip:
|
|
72
|
-
showLegend:
|
|
73
|
-
showXAxis:
|
|
74
|
-
showYAxis:
|
|
75
|
-
xTickFormatter:
|
|
76
|
-
yTickFormatter:
|
|
72
|
+
showForecastRegion: G = !0,
|
|
73
|
+
showGrid: Z = !0,
|
|
74
|
+
showTooltip: q = !0,
|
|
75
|
+
showLegend: J = !0,
|
|
76
|
+
showXAxis: Q = !0,
|
|
77
|
+
showYAxis: U = !0,
|
|
78
|
+
xTickFormatter: L,
|
|
79
|
+
yTickFormatter: V,
|
|
77
80
|
xAxisAngle: g,
|
|
78
|
-
xAxisInterval:
|
|
79
|
-
yAxisTickCount:
|
|
80
|
-
yAxisDomain:
|
|
81
|
-
gridDashed:
|
|
81
|
+
xAxisInterval: ee,
|
|
82
|
+
yAxisTickCount: te,
|
|
83
|
+
yAxisDomain: re,
|
|
84
|
+
gridDashed: ne,
|
|
82
85
|
gridHorizontal: oe,
|
|
83
|
-
gridVertical:
|
|
86
|
+
gridVertical: ae,
|
|
84
87
|
tooltipContent: T,
|
|
85
|
-
animate:
|
|
86
|
-
animationDuration:
|
|
88
|
+
animate: le,
|
|
89
|
+
animationDuration: ie,
|
|
87
90
|
animationBegin: ce,
|
|
88
|
-
animationEasing:
|
|
89
|
-
...
|
|
90
|
-
},
|
|
91
|
-
var
|
|
92
|
-
const
|
|
93
|
-
animate:
|
|
94
|
-
animationDuration:
|
|
91
|
+
animationEasing: se,
|
|
92
|
+
...ue
|
|
93
|
+
}, fe) => {
|
|
94
|
+
var X, _;
|
|
95
|
+
const u = v.useMemo(() => f != null && f.length ? f : !y || !s ? [] : [{ actualKey: y, forecastKey: s, lowerKey: C, upperKey: $ }], [f, y, s, C, $]), b = _e({
|
|
96
|
+
animate: le,
|
|
97
|
+
animationDuration: ie,
|
|
95
98
|
animationBegin: ce,
|
|
96
|
-
animationEasing:
|
|
97
|
-
}),
|
|
98
|
-
() => T ?
|
|
99
|
+
animationEasing: se
|
|
100
|
+
}), N = v.useMemo(
|
|
101
|
+
() => T ? Ge(T) : void 0,
|
|
99
102
|
[T]
|
|
100
|
-
),
|
|
103
|
+
), de = Be(D), me = He(F), ve = je(re), ye = v.useMemo(() => {
|
|
101
104
|
let e;
|
|
102
|
-
for (const { actualKey:
|
|
103
|
-
const
|
|
104
|
-
!
|
|
105
|
-
label:
|
|
106
|
-
icon:
|
|
107
|
-
|
|
105
|
+
for (const { actualKey: n, forecastKey: i } of u) {
|
|
106
|
+
const d = o[n], m = o[i];
|
|
107
|
+
!d || !m || (e ?? (e = { ...o }), e[i] = {
|
|
108
|
+
label: m.label,
|
|
109
|
+
icon: m.icon,
|
|
110
|
+
tone: { sameAs: n }
|
|
108
111
|
});
|
|
109
112
|
}
|
|
110
113
|
return e ?? o;
|
|
111
|
-
}, [o,
|
|
112
|
-
const
|
|
113
|
-
for (const {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
}, [o, u]), pe = ze(D, g), he = l.map((e) => {
|
|
115
|
+
const n = { ...e };
|
|
116
|
+
for (const {
|
|
117
|
+
actualKey: i,
|
|
118
|
+
lowerKey: d,
|
|
119
|
+
upperKey: m
|
|
120
|
+
} of u) {
|
|
121
|
+
if (!d || !m) continue;
|
|
122
|
+
const S = e[d], E = e[m];
|
|
123
|
+
n[x(i)] = typeof S == "number" && typeof E == "number" ? [S, E] : void 0;
|
|
117
124
|
}
|
|
118
|
-
return
|
|
119
|
-
}),
|
|
120
|
-
new Set(
|
|
121
|
-
`var(--color-${(
|
|
122
|
-
|
|
123
|
-
),
|
|
125
|
+
return n;
|
|
126
|
+
}), M = Ze(l, u, c), k = G ? M[0] : void 0, O = (X = l[l.length - 1]) == null ? void 0 : X[c], ke = qe(
|
|
127
|
+
new Set(M),
|
|
128
|
+
`var(--color-${(_ = u[0]) == null ? void 0 : _.actualKey})`,
|
|
129
|
+
L
|
|
130
|
+
), ge = h ? Array.isArray(h) ? h : [h] : [], Te = () => /* @__PURE__ */ A(B, { children: [
|
|
124
131
|
/* @__PURE__ */ r(
|
|
125
|
-
|
|
132
|
+
Ne,
|
|
126
133
|
{
|
|
127
|
-
dataKey:
|
|
134
|
+
dataKey: c,
|
|
128
135
|
type: "category",
|
|
129
|
-
hide: !
|
|
136
|
+
hide: !Q,
|
|
130
137
|
tickLine: !1,
|
|
131
138
|
axisLine: !1,
|
|
132
139
|
tickMargin: 8,
|
|
133
|
-
tickFormatter:
|
|
134
|
-
tick:
|
|
140
|
+
tickFormatter: L,
|
|
141
|
+
tick: Y ? ke : void 0,
|
|
135
142
|
angle: g,
|
|
136
|
-
interval:
|
|
137
|
-
textAnchor:
|
|
138
|
-
height:
|
|
139
|
-
label:
|
|
143
|
+
interval: ee,
|
|
144
|
+
textAnchor: Se(g),
|
|
145
|
+
height: pe,
|
|
146
|
+
label: de
|
|
140
147
|
}
|
|
141
148
|
),
|
|
142
149
|
/* @__PURE__ */ r(
|
|
143
|
-
|
|
150
|
+
Me,
|
|
144
151
|
{
|
|
145
152
|
type: "number",
|
|
146
|
-
hide: !
|
|
153
|
+
hide: !U,
|
|
147
154
|
tickLine: !1,
|
|
148
155
|
axisLine: !1,
|
|
149
|
-
unit:
|
|
150
|
-
tickFormatter:
|
|
151
|
-
tickCount:
|
|
152
|
-
domain:
|
|
153
|
-
width:
|
|
154
|
-
label:
|
|
156
|
+
unit: W,
|
|
157
|
+
tickFormatter: V,
|
|
158
|
+
tickCount: te,
|
|
159
|
+
domain: ve,
|
|
160
|
+
width: F ? 72 : void 0,
|
|
161
|
+
label: me
|
|
155
162
|
}
|
|
156
163
|
)
|
|
157
|
-
] }),
|
|
158
|
-
k != null &&
|
|
159
|
-
|
|
164
|
+
] }), be = () => /* @__PURE__ */ A(B, { children: [
|
|
165
|
+
k != null && O != null && /* @__PURE__ */ r(
|
|
166
|
+
Oe,
|
|
160
167
|
{
|
|
161
168
|
x1: k,
|
|
162
|
-
x2:
|
|
169
|
+
x2: O,
|
|
163
170
|
fill: "var(--ui-background-surface-secondary)",
|
|
164
171
|
fillOpacity: 0.5,
|
|
165
172
|
ifOverflow: "extendDomain"
|
|
166
173
|
}
|
|
167
174
|
),
|
|
168
175
|
k != null && /* @__PURE__ */ r(
|
|
169
|
-
|
|
176
|
+
z,
|
|
170
177
|
{
|
|
171
178
|
x: k,
|
|
172
179
|
stroke: "var(--ui-border-on-surface-border)",
|
|
173
180
|
strokeDasharray: "4 4"
|
|
174
181
|
}
|
|
175
182
|
)
|
|
176
|
-
] }),
|
|
177
|
-
|
|
183
|
+
] }), Ae = (e, n) => /* @__PURE__ */ r(
|
|
184
|
+
z,
|
|
178
185
|
{
|
|
179
186
|
y: e.value,
|
|
180
187
|
stroke: "var(--ui-text-on-surface-secondary)",
|
|
@@ -184,49 +191,49 @@ const qe = m.forwardRef(
|
|
|
184
191
|
value: e.label,
|
|
185
192
|
position: "insideTopRight",
|
|
186
193
|
fill: "var(--ui-text-on-surface-secondary)",
|
|
187
|
-
fontSize:
|
|
194
|
+
fontSize: Ee
|
|
188
195
|
} : void 0
|
|
189
196
|
},
|
|
190
|
-
`${e.label ?? "threshold"}-${
|
|
191
|
-
), xe = () =>
|
|
197
|
+
`${e.label ?? "threshold"}-${n}`
|
|
198
|
+
), xe = () => N ? (
|
|
192
199
|
// Strips the synthetic band before the caller's tooltip sees it — the
|
|
193
200
|
// `__cone` series feeds the Area, not the tooltip.
|
|
194
|
-
/* @__PURE__ */ r(
|
|
201
|
+
/* @__PURE__ */ r(w, { content: N })
|
|
195
202
|
) : /* @__PURE__ */ r(
|
|
196
|
-
|
|
203
|
+
w,
|
|
197
204
|
{
|
|
198
205
|
content: (e) => /* @__PURE__ */ r(
|
|
199
|
-
|
|
206
|
+
Ie,
|
|
200
207
|
{
|
|
201
208
|
active: e.active,
|
|
202
209
|
label: e.label,
|
|
203
|
-
payload:
|
|
210
|
+
payload: P(e.payload)
|
|
204
211
|
}
|
|
205
212
|
)
|
|
206
213
|
}
|
|
207
|
-
),
|
|
208
|
-
|
|
214
|
+
), Ce = () => /* @__PURE__ */ r(
|
|
215
|
+
Pe,
|
|
209
216
|
{
|
|
210
217
|
content: (e) => /* @__PURE__ */ r(
|
|
211
|
-
|
|
218
|
+
We,
|
|
212
219
|
{
|
|
213
220
|
verticalAlign: e.verticalAlign,
|
|
214
|
-
payload:
|
|
221
|
+
payload: Ye(
|
|
215
222
|
e.payload,
|
|
216
|
-
|
|
223
|
+
u.map((n) => n.actualKey)
|
|
217
224
|
)
|
|
218
225
|
}
|
|
219
226
|
)
|
|
220
227
|
}
|
|
221
|
-
),
|
|
228
|
+
), $e = ({
|
|
222
229
|
actualKey: e,
|
|
223
|
-
lowerKey:
|
|
230
|
+
lowerKey: n,
|
|
224
231
|
upperKey: i
|
|
225
|
-
}) =>
|
|
226
|
-
|
|
232
|
+
}) => n && i ? /* @__PURE__ */ r(
|
|
233
|
+
H,
|
|
227
234
|
{
|
|
228
235
|
"data-slot": "confidence-cone-band",
|
|
229
|
-
dataKey:
|
|
236
|
+
dataKey: x(e),
|
|
230
237
|
type: "monotone",
|
|
231
238
|
stroke: "none",
|
|
232
239
|
fill: `var(--color-${e})`,
|
|
@@ -238,9 +245,9 @@ const qe = m.forwardRef(
|
|
|
238
245
|
legendType: "none",
|
|
239
246
|
tooltipType: "none"
|
|
240
247
|
},
|
|
241
|
-
|
|
242
|
-
) : null,
|
|
243
|
-
const
|
|
248
|
+
x(e)
|
|
249
|
+
) : null, De = ({ actualKey: e }) => {
|
|
250
|
+
const n = K === "line" ? j : H, i = K === "line" ? void 0 : { fill: `var(--color-${e})`, fillOpacity: 0.15 }, d = p ? {
|
|
244
251
|
r: 3,
|
|
245
252
|
fill: `var(--color-${e})`,
|
|
246
253
|
fillOpacity: 1,
|
|
@@ -248,14 +255,14 @@ const qe = m.forwardRef(
|
|
|
248
255
|
strokeWidth: 2
|
|
249
256
|
} : !1;
|
|
250
257
|
return /* @__PURE__ */ r(
|
|
251
|
-
|
|
258
|
+
n,
|
|
252
259
|
{
|
|
253
260
|
dataKey: e,
|
|
254
261
|
type: "monotone",
|
|
255
262
|
stroke: `var(--color-${e})`,
|
|
256
|
-
strokeWidth:
|
|
263
|
+
strokeWidth: R,
|
|
257
264
|
...i,
|
|
258
|
-
dot:
|
|
265
|
+
dot: d,
|
|
259
266
|
activeDot: p ? { r: 5 } : !1,
|
|
260
267
|
connectNulls: !0,
|
|
261
268
|
...b,
|
|
@@ -263,9 +270,9 @@ const qe = m.forwardRef(
|
|
|
263
270
|
},
|
|
264
271
|
e
|
|
265
272
|
);
|
|
266
|
-
},
|
|
273
|
+
}, Fe = ({
|
|
267
274
|
actualKey: e,
|
|
268
|
-
forecastKey:
|
|
275
|
+
forecastKey: n
|
|
269
276
|
}) => {
|
|
270
277
|
const i = p ? {
|
|
271
278
|
r: 3,
|
|
@@ -275,55 +282,56 @@ const qe = m.forwardRef(
|
|
|
275
282
|
strokeDasharray: "none"
|
|
276
283
|
} : !1;
|
|
277
284
|
return /* @__PURE__ */ r(
|
|
278
|
-
|
|
285
|
+
j,
|
|
279
286
|
{
|
|
280
|
-
dataKey:
|
|
287
|
+
dataKey: n,
|
|
281
288
|
type: "monotone",
|
|
282
289
|
stroke: `var(--color-${e})`,
|
|
283
|
-
strokeWidth:
|
|
290
|
+
strokeWidth: R,
|
|
284
291
|
strokeDasharray: "5 5",
|
|
285
292
|
dot: i,
|
|
286
293
|
activeDot: p ? { r: 5 } : !1,
|
|
287
294
|
connectNulls: !0,
|
|
288
295
|
...b
|
|
289
296
|
},
|
|
290
|
-
|
|
297
|
+
n
|
|
291
298
|
);
|
|
292
299
|
};
|
|
293
|
-
return /* @__PURE__ */ r("div", { ref:
|
|
294
|
-
|
|
300
|
+
return /* @__PURE__ */ r("div", { ref: fe, className: Xe(t), ...ue, children: /* @__PURE__ */ r(
|
|
301
|
+
we,
|
|
295
302
|
{
|
|
296
|
-
config:
|
|
303
|
+
config: ye,
|
|
304
|
+
palette: a,
|
|
297
305
|
className: "size-full [&_.recharts-label]:fill-foreground",
|
|
298
|
-
children: /* @__PURE__ */
|
|
299
|
-
|
|
300
|
-
|
|
306
|
+
children: /* @__PURE__ */ A(Ke, { data: he, children: [
|
|
307
|
+
Z && /* @__PURE__ */ r(
|
|
308
|
+
Re,
|
|
301
309
|
{
|
|
302
310
|
horizontal: oe ?? !0,
|
|
303
|
-
vertical:
|
|
304
|
-
strokeDasharray:
|
|
311
|
+
vertical: ae ?? !1,
|
|
312
|
+
strokeDasharray: ne ? "3 3" : void 0
|
|
305
313
|
}
|
|
306
314
|
),
|
|
307
|
-
ge(),
|
|
308
315
|
Te(),
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
q &&
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
316
|
+
be(),
|
|
317
|
+
ge.map(Ae),
|
|
318
|
+
q && xe(),
|
|
319
|
+
J && Ce(),
|
|
320
|
+
u.map($e),
|
|
321
|
+
u.map(De),
|
|
322
|
+
u.map(Fe)
|
|
315
323
|
] })
|
|
316
324
|
}
|
|
317
325
|
) });
|
|
318
326
|
}
|
|
319
327
|
);
|
|
320
|
-
|
|
328
|
+
Je.displayName = "ConfidenceCone";
|
|
321
329
|
export {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
330
|
+
Je as ConfidenceCone,
|
|
331
|
+
Ge as createConeTooltip,
|
|
332
|
+
qe as createForecastTick,
|
|
333
|
+
P as dropConeBand,
|
|
334
|
+
Ze as forecastPeriodX,
|
|
335
|
+
Ye as keepMetricSeries
|
|
328
336
|
};
|
|
329
337
|
//# sourceMappingURL=confidence-cone.js.map
|