@hybridcore/ui 1.6.21 → 1.6.23

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/CATALOG.md CHANGED
@@ -75,6 +75,7 @@ import { ComponentName } from '@hybridcore/ui';
75
75
  | DrillDownTreemap | HCDrillDownTreemap | Treemap with click-to-drill-down hierarchy | chart, treemap, hierarchy |
76
76
  | DrillDownVoronoiTreemap | HCDrillDownVoronoiTreemap | Voronoi-tessellation treemap with drill-down | chart, treemap, voronoi |
77
77
  | Heatmap | HCHeatmap | Categorical heatmap (X/Y axes, color-coded values) | chart, heatmap |
78
+ | Histogram | HCHistogram | Numeric-bin distribution (ValueAxis bins, optional log scale) | chart, histogram, distribution |
78
79
  | HighlightLineChart | HCHighlightLineChart | Line chart with hover highlighting | chart, line, hover |
79
80
  | LineChart | HCLineChart | Multi-series line chart | chart, line |
80
81
  | LogaritmicScale | HCLogaritmicScale | Chart with logarithmic Y-axis | chart, log, scale |
@@ -1,10 +1,13 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { useButtonLogic as i } from "./logic.js";
3
- import { ButtonRoot as s } from "./styled.js";
4
- const u = (t) => {
5
- const { state: o, actions: r } = i(t);
6
- return /* @__PURE__ */ n(s, { ...o.rest, onClick: r.handleClick });
7
- };
2
+ import i from "react";
3
+ import { useButtonLogic as m } from "./logic.js";
4
+ import { ButtonRoot as c } from "./styled.js";
5
+ const p = i.forwardRef(
6
+ (t, o) => {
7
+ const { state: r, actions: e } = m(t);
8
+ return /* @__PURE__ */ n(c, { ref: o, ...r.rest, onClick: e.handleClick });
9
+ }
10
+ );
8
11
  export {
9
- u as Button
12
+ p as Button
10
13
  };
@@ -1,50 +1,52 @@
1
- import { jsxs as a, jsx as r, Fragment as h } from "react/jsx-runtime";
1
+ import { jsxs as i, jsx as r, Fragment as h } from "react/jsx-runtime";
2
2
  import { Typography as C, Divider as c } from "@mui/material";
3
3
  import { Loading as d } from "../../loading/index.js";
4
- import { CandlestickChart as f } from "../candlestick/index.js";
5
- import { ColumnLineMix as s } from "../column-line-mix/index.js";
4
+ import { CandlestickChart as s } from "../candlestick/index.js";
5
+ import { ColumnLineMix as f } from "../column-line-mix/index.js";
6
6
  import { DonutChart as u } from "../donut-chart/index.js";
7
- import { DrillDownTreemap as D } from "../drill-down-treemap/index.js";
8
- import { DrillDownVoronoiTreemap as L } from "../drill-down-voronoi-treemap/index.js";
9
- import { ForecastConeChart as g } from "../forecast-cone/index.js";
7
+ import { DrillDownTreemap as g } from "../drill-down-treemap/index.js";
8
+ import { DrillDownVoronoiTreemap as D } from "../drill-down-voronoi-treemap/index.js";
9
+ import { ForecastConeChart as L } from "../forecast-cone/index.js";
10
10
  import { Heatmap as x } from "../heatmap/index.js";
11
- import { LineChart as k } from "../line/index.js";
12
- import { LogaritmicScale as S } from "../logaritmic-scale/index.js";
13
- import { MultipleValueAxes as P } from "../multiple-value-axes/index.js";
14
- import { NestedPie as w } from "../nested-pie/index.js";
11
+ import { Histogram as k } from "../histogram/index.js";
12
+ import { LineChart as S } from "../line/index.js";
13
+ import { LogaritmicScale as P } from "../logaritmic-scale/index.js";
14
+ import { MultipleValueAxes as w } from "../multiple-value-axes/index.js";
15
+ import { NestedPie as H } from "../nested-pie/index.js";
15
16
  import { PackedCircles as A } from "../packed-circles/index.js";
16
17
  import { PieChart as T } from "../pie-chart/index.js";
17
18
  import { StackedAreaRadar as W } from "../stacked-area-radar/index.js";
18
- import { StackedColumnChart as H } from "../stacked-column-chart/index.js";
19
- import { XYChart as i } from "../xy-chart/index.js";
20
- import { useChartWrapperLogic as M } from "./logic.js";
21
- import { ChartWrapperRoot as V, ChartWrapperHeader as v, ChartWrapperContent as y } from "./styled.js";
22
- const rr = (m) => {
23
- const { title: p, type: o, chartProps: t, loading: n, ownerState: e, sx: l } = M(m);
24
- return /* @__PURE__ */ a(V, { ownerState: e, sx: l, children: [
25
- /* @__PURE__ */ r(v, { ownerState: e, children: /* @__PURE__ */ r(C, { sx: { paddingLeft: "0.5rem" }, variant: "h3", children: p }) }),
19
+ import { StackedColumnChart as M } from "../stacked-column-chart/index.js";
20
+ import { XYChart as a } from "../xy-chart/index.js";
21
+ import { useChartWrapperLogic as V } from "./logic.js";
22
+ import { ChartWrapperRoot as v, ChartWrapperHeader as y, ChartWrapperContent as F } from "./styled.js";
23
+ const tr = (m) => {
24
+ const { title: p, type: o, chartProps: t, loading: n, ownerState: e, sx: l } = V(m);
25
+ return /* @__PURE__ */ i(v, { ownerState: e, sx: l, children: [
26
+ /* @__PURE__ */ r(y, { ownerState: e, children: /* @__PURE__ */ r(C, { sx: { paddingLeft: "0.5rem" }, variant: "h3", children: p }) }),
26
27
  /* @__PURE__ */ r(c, {}),
27
- /* @__PURE__ */ r(y, { ownerState: e, children: n ? /* @__PURE__ */ r(d, { show: !0, position: "absolute" }) : /* @__PURE__ */ a(h, { children: [
28
- o === "MultipleValueAxes" && /* @__PURE__ */ r(P, { ...t }),
29
- o === "XYChart" && /* @__PURE__ */ r(i, { ...t }),
30
- o === "XYChartHorizontal" && /* @__PURE__ */ r(i, { ...t, orientation: "horizontal" }),
28
+ /* @__PURE__ */ r(F, { ownerState: e, children: n ? /* @__PURE__ */ r(d, { show: !0, position: "absolute" }) : /* @__PURE__ */ i(h, { children: [
29
+ o === "MultipleValueAxes" && /* @__PURE__ */ r(w, { ...t }),
30
+ o === "XYChart" && /* @__PURE__ */ r(a, { ...t }),
31
+ o === "XYChartHorizontal" && /* @__PURE__ */ r(a, { ...t, orientation: "horizontal" }),
31
32
  o === "HeatLegend" && /* @__PURE__ */ r(x, { ...t }),
33
+ o === "Histogram" && /* @__PURE__ */ r(k, { ...t }),
32
34
  o === "PieChart" && /* @__PURE__ */ r(T, { ...t }),
33
35
  o === "DonutChart" && /* @__PURE__ */ r(u, { ...t }),
34
- o === "StackedColumnChart" && /* @__PURE__ */ r(H, { ...t }),
36
+ o === "StackedColumnChart" && /* @__PURE__ */ r(M, { ...t }),
35
37
  o === "StackedAreaRadar" && /* @__PURE__ */ r(W, { ...t }),
36
- o === "LineChart" && /* @__PURE__ */ r(k, { ...t }),
37
- o === "NestedPie" && /* @__PURE__ */ r(w, { ...t }),
38
+ o === "LineChart" && /* @__PURE__ */ r(S, { ...t }),
39
+ o === "NestedPie" && /* @__PURE__ */ r(H, { ...t }),
38
40
  o === "SingleLevelPackedCircles" && /* @__PURE__ */ r(A, { ...t }),
39
- o === "LogarithmicScale" && /* @__PURE__ */ r(S, { ...t }),
40
- o === "ColumnAndLineMix" && /* @__PURE__ */ r(s, { ...t }),
41
- o === "DrillDownTreemap" && /* @__PURE__ */ r(D, { ...t }),
42
- o === "DrillDownVoronoiTreemap" && /* @__PURE__ */ r(L, { ...t }),
43
- o === "CandlestickChart" && /* @__PURE__ */ r(f, { ...t }),
44
- o === "ForecastCone" && /* @__PURE__ */ r(g, { ...t })
41
+ o === "LogarithmicScale" && /* @__PURE__ */ r(P, { ...t }),
42
+ o === "ColumnAndLineMix" && /* @__PURE__ */ r(f, { ...t }),
43
+ o === "DrillDownTreemap" && /* @__PURE__ */ r(g, { ...t }),
44
+ o === "DrillDownVoronoiTreemap" && /* @__PURE__ */ r(D, { ...t }),
45
+ o === "CandlestickChart" && /* @__PURE__ */ r(s, { ...t }),
46
+ o === "ForecastCone" && /* @__PURE__ */ r(L, { ...t })
45
47
  ] }) })
46
48
  ] });
47
49
  };
48
50
  export {
49
- rr as ChartWrapper
51
+ tr as ChartWrapper
50
52
  };
@@ -1,45 +1,44 @@
1
1
  import { R as M, A as O } from "../../../AnimatedTheme-ktdO3Bel.js";
2
- import { useThemeProps as E, useTheme as P } from "@mui/material";
3
- import C from "lodash";
4
- import { useId as V, useRef as z, useEffect as G } from "react";
5
- import { humanizeLabel as b } from "../_common/format.js";
6
- import { attachCombinedAxisTooltip as N } from "../_common/tooltip.js";
7
- import { colorSetFromPalette as W, applyDateAxisLabelFormat as q, applyValueFormat as H } from "../_common/utils.js";
2
+ import { useThemeProps as B, useTheme as E } from "@mui/material";
3
+ import P from "lodash";
4
+ import { useId as V, useRef as G, useEffect as N } from "react";
5
+ import { humanizeLabel as C } from "../_common/format.js";
6
+ import { attachCombinedAxisTooltip as W } from "../_common/tooltip.js";
7
+ import { colorSetFromPalette as q, applyDateAxisLabelFormat as z, applyValueFormat as H } from "../_common/utils.js";
8
8
  import { c as l, p as U, a as D } from "../../../Entity-BJCuhdq_.js";
9
9
  import { X as _, V as $ } from "../../../AxisRenderer-BCQoUJw6.js";
10
- import { S as j } from "../../../Scrollbar-CTI7_8Qw.js";
11
- import { A as X, a as J } from "../../../AxisRendererY-AXWvGU6r.js";
12
- import { C as K } from "../../../CategoryAxis-B6NqW8qd.js";
13
- import { C as Q } from "../../../ColumnSeries-CtRTsn-E.js";
14
- import { D as L, G as Z } from "../../../GaplessDateAxis-B2g2jgSG.js";
15
- import { L as ee } from "../../../LineSeries-D_IL2qGF.js";
16
- import { B as te } from "../../../Bullet-Djj7Vs9T.js";
17
- import { C as re } from "../../../Circle-BnfBNKBD.js";
18
- import { X as ae } from "../../../XYCursor-CVUSpqb9.js";
19
- import { L as oe } from "../../../Legend-CFvQiIfn.js";
10
+ import { A as b, a as j } from "../../../AxisRendererY-AXWvGU6r.js";
11
+ import { C as J } from "../../../CategoryAxis-B6NqW8qd.js";
12
+ import { C as K } from "../../../ColumnSeries-CtRTsn-E.js";
13
+ import { D as X, G as Q } from "../../../GaplessDateAxis-B2g2jgSG.js";
14
+ import { L as Z } from "../../../LineSeries-D_IL2qGF.js";
15
+ import { B as ee } from "../../../Bullet-Djj7Vs9T.js";
16
+ import { C as te } from "../../../Circle-BnfBNKBD.js";
17
+ import { X as re } from "../../../XYCursor-CVUSpqb9.js";
18
+ import { L as ae } from "../../../Legend-CFvQiIfn.js";
20
19
  import { D as se } from "../../../DateAxis-DEXKps1S.js";
21
- const Ye = (Y) => {
22
- const f = E({ props: Y, name: "HCColumnLineMix" }), {
20
+ const Xe = (L) => {
21
+ const f = B({ props: L, name: "HCColumnLineMix" }), {
23
22
  dimensions: t,
24
23
  values: n,
25
24
  data: p,
26
- initDelay: S = 0,
27
- baseInterval: h,
28
- colors: x,
25
+ initDelay: Y = 0,
26
+ baseInterval: x,
27
+ colors: h,
29
28
  skipEmptyDates: A = !1,
30
29
  sx: T,
31
30
  ...R
32
- } = f, s = P(), y = `hc-column-line-mix-${V().replace(/:/g, "")}`, d = z(null), g = t.length < 1 ? "ColumnLineMix requires at least 1 dimension" : null;
33
- G(() => {
34
- if (g) return;
31
+ } = f, o = E(), g = `hc-column-line-mix-${V().replace(/:/g, "")}`, d = G(null), y = t.length < 1 ? "ColumnLineMix requires at least 1 dimension" : null;
32
+ N(() => {
33
+ if (y) return;
35
34
  let c;
36
35
  return c = setTimeout(() => {
37
36
  var w, F, v, k;
38
- const e = M.new(y);
37
+ const e = M.new(g);
39
38
  d.current = e, e.setThemes([O.new(e)]), e.interfaceColors.setAll({
40
- text: l(s.palette.text.primary),
41
- grid: l(s.palette.divider),
42
- stroke: l(s.palette.divider)
39
+ text: l(o.palette.text.primary),
40
+ grid: l(o.palette.divider),
41
+ stroke: l(o.palette.divider)
43
42
  });
44
43
  const r = e.container.children.push(
45
44
  _.new(e, {
@@ -52,87 +51,84 @@ const Ye = (Y) => {
52
51
  layout: e.verticalLayout
53
52
  })
54
53
  );
55
- r.set("colors", W(e, x)), r.get("colors", {}).set("step", 3), r.set(
56
- "scrollbarX",
57
- j.new(e, { orientation: "horizontal" })
58
- );
54
+ r.set("colors", q(e, h)), r.get("colors", {}).set("step", 3);
59
55
  let a, m = p;
60
56
  if (t[0].type === "date") {
61
- m = C.orderBy(p, [t[0].value]);
62
- const i = A ? Z : se;
57
+ m = P.orderBy(p, [t[0].value]);
58
+ const i = A ? Q : se;
63
59
  a = r.xAxes.push(
64
60
  i.new(e, {
65
61
  maxDeviation: 0.1,
66
62
  groupData: !1,
67
- baseInterval: h || { timeUnit: "day", count: 1 },
68
- renderer: X.new(e, {})
63
+ baseInterval: x || { timeUnit: "day", count: 1 },
64
+ renderer: b.new(e, {})
69
65
  })
70
66
  ), (w = a.get("renderer")) == null || w.grid.template.setAll({
71
- stroke: l(s.palette.divider),
67
+ stroke: l(o.palette.divider),
72
68
  strokeOpacity: 1
73
- }), q(a, t[0]);
69
+ }), z(a, t[0]);
74
70
  } else
75
71
  a = r.xAxes.push(
76
- K.new(e, {
72
+ J.new(e, {
77
73
  categoryField: t[0].value,
78
- renderer: X.new(e, {})
74
+ renderer: b.new(e, {})
79
75
  })
80
76
  ), (F = a.get("renderer")) == null || F.grid.template.setAll({
81
- stroke: l(s.palette.divider),
77
+ stroke: l(o.palette.divider),
82
78
  strokeOpacity: 1
83
79
  }), e.numberFormatter.setAll({
84
80
  numberFormat: "#",
85
81
  numericFields: ["valueX"]
86
- }), m = C.orderBy(p, [t[0].value]), a.data.setAll(m);
82
+ }), a.data.setAll(m);
87
83
  const u = r.yAxes.push(
88
84
  $.new(e, {
89
85
  min: 0,
90
86
  extraMax: 0.1,
91
- renderer: J.new(e, { strokeOpacity: 0.1 })
87
+ renderer: j.new(e, { strokeOpacity: 0.1 })
92
88
  })
93
89
  );
94
90
  (v = u.get("renderer")) == null || v.grid.template.setAll({
95
- stroke: l(s.palette.divider),
91
+ stroke: l(o.palette.divider),
96
92
  strokeOpacity: 1
97
93
  }), n.forEach((i, I) => {
98
94
  if (I === 0) {
99
- const o = r.series.push(
100
- Q.new(e, {
101
- name: i.label ?? b(i.name),
95
+ const s = r.series.push(
96
+ K.new(e, {
97
+ name: i.label ?? C(i.name),
102
98
  xAxis: a,
103
99
  yAxis: u,
104
100
  valueYField: i.dataFieldName,
105
101
  ...t[0].type === "date" ? { valueXField: t[0].value } : { categoryXField: t[0].value }
106
102
  })
107
103
  );
108
- o.columns.template.setAll({
104
+ s.columns.template.setAll({
109
105
  tooltipY: U(10),
110
106
  templateField: "columnSettings"
111
- }), t[0].type === "date" && (o.data.processor = L.new(e, {
107
+ }), t[0].type === "date" && (s.data.processor = X.new(e, {
112
108
  dateFormat: "i",
113
109
  dateFields: [t[0].value]
114
- })), o.data.setAll(m), o.appear();
110
+ })), s.data.setAll(m), s.appear();
115
111
  } else {
116
- const o = r.series.push(
117
- ee.new(e, {
118
- name: i.label ?? b(i.name),
112
+ const s = r.series.push(
113
+ Z.new(e, {
114
+ name: i.label ?? C(i.name),
119
115
  xAxis: a,
120
116
  yAxis: u,
121
117
  valueYField: i.dataFieldName,
122
118
  ...t[0].type === "date" ? { valueXField: t[0].value } : { categoryXField: t[0].value }
123
119
  })
124
120
  );
125
- o.strokes.template.setAll({
121
+ s.strokes.template.setAll({
126
122
  strokeWidth: 3,
127
123
  templateField: "strokeSettings"
128
- }), t[0].type === "date" && (o.data.processor = L.new(e, {
124
+ }), t[0].type === "date" && (s.data.processor = X.new(e, {
129
125
  dateFormat: "i",
130
126
  dateFields: [t[0].value]
131
- })), o.data.setAll(m), o.bullets.push(function() {
132
- return te.new(e, {
133
- sprite: re.new(e, {
127
+ })), s.data.setAll(m), s.bullets.push(function() {
128
+ return ee.new(e, {
129
+ sprite: te.new(e, {
134
130
  strokeWidth: 3,
135
- stroke: o.get("stroke"),
131
+ stroke: s.get("stroke"),
136
132
  radius: 5,
137
133
  fill: e.interfaceColors.get("background")
138
134
  })
@@ -141,29 +137,29 @@ const Ye = (Y) => {
141
137
  }
142
138
  }), r.set(
143
139
  "cursor",
144
- ae.new(e, { xAxis: a, behavior: "none" })
145
- ).lineY.set("visible", !1), N({
140
+ re.new(e, { xAxis: a, behavior: "none" })
141
+ ).lineY.set("visible", !1), W({
146
142
  root: e,
147
143
  chart: r,
148
144
  xAxis: a,
149
- theme: s,
145
+ theme: o,
150
146
  isDateAxis: t[0].type === "date",
151
- baseInterval: h,
147
+ baseInterval: x,
152
148
  follow: !0
153
149
  }), r.children.push(
154
- oe.new(e, {
150
+ ae.new(e, {
155
151
  centerX: D,
156
152
  x: D
157
153
  })
158
154
  ).data.setAll(r.series.values), H(e, (k = n == null ? void 0 : n[0]) == null ? void 0 : k.format), r.appear(1e3, 100);
159
- }, S), () => {
155
+ }, Y), () => {
160
156
  var e;
161
157
  c && clearTimeout(c), (e = d.current) == null || e.dispose(), d.current = null;
162
158
  };
163
- }, [p, t, n, s.palette.mode, x, A]);
164
- const B = { ...f };
165
- return { chartId: y, ownerState: B, sx: T, error: g, other: R };
159
+ }, [p, t, n, o.palette.mode, h, A]);
160
+ const S = { ...f };
161
+ return { chartId: g, ownerState: S, sx: T, error: y, other: R };
166
162
  };
167
163
  export {
168
- Ye as useColumnLineMixLogic
164
+ Xe as useColumnLineMixLogic
169
165
  };
@@ -1,47 +1,49 @@
1
- import c, { jsxs as o, jsx as e } from "react/jsx-runtime";
2
- import { i as h } from "../../../styled-Ckq8ALHh.js";
3
- import { r as u } from "../../../createSvgIcon-jKAqRXE2.js";
4
- import { IconButton as s, Typography as d } from "@mui/material";
5
- import { useForecastConeChartLogic as z } from "./logic.js";
6
- import { ForecastConeChartRoot as I, ForecastConeChartCanvas as R, ForecastConeChartPager as $ } from "./styled.js";
7
- var a = {}, S = h;
8
- Object.defineProperty(a, "__esModule", {
1
+ import h, { jsxs as t, jsx as e } from "react/jsx-runtime";
2
+ import { i as u } from "../../../styled-Ckq8ALHh.js";
3
+ import { r as f } from "../../../createSvgIcon-jKAqRXE2.js";
4
+ import { IconButton as d, Typography as c } from "@mui/material";
5
+ import { useForecastConeChartLogic as R } from "./logic.js";
6
+ import { ForecastConeChartRoot as $, ForecastConeChartCanvas as S, ForecastConeChartPager as F } from "./styled.js";
7
+ var i = {}, L = u;
8
+ Object.defineProperty(i, "__esModule", {
9
9
  value: !0
10
10
  });
11
- var f = a.default = void 0, F = S(u()), L = c;
12
- f = a.default = (0, F.default)(/* @__PURE__ */ (0, L.jsx)("path", {
11
+ var v = i.default = void 0, M = L(f()), q = h;
12
+ v = i.default = (0, M.default)(/* @__PURE__ */ (0, q.jsx)("path", {
13
13
  d: "M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"
14
14
  }), "ChevronLeft");
15
- var i = {}, M = h;
16
- Object.defineProperty(i, "__esModule", {
15
+ var a = {}, w = u;
16
+ Object.defineProperty(a, "__esModule", {
17
17
  value: !0
18
18
  });
19
- var v = i.default = void 0, q = M(u()), D = c;
20
- v = i.default = (0, q.default)(/* @__PURE__ */ (0, D.jsx)("path", {
19
+ var p = a.default = void 0, O = w(f()), P = h;
20
+ p = a.default = (0, O.default)(/* @__PURE__ */ (0, P.jsx)("path", {
21
21
  d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
22
22
  }), "ChevronRight");
23
- const N = (p) => {
23
+ const A = (g) => {
24
24
  const {
25
- chartDivRef: g,
26
- data: m,
27
- chartId: C,
25
+ chartDivRef: m,
26
+ data: C,
27
+ chartId: x,
28
28
  loading: n,
29
- emptyMessage: x,
30
- isMulti: y,
29
+ emptyMessage: y,
30
+ isMulti: _,
31
31
  origins: r,
32
- selectedOriginIndex: t,
33
- onOriginChange: l,
34
- sx: _,
35
- other: b,
36
- ownerState: j
37
- } = z(p);
38
- return /* @__PURE__ */ o(I, { ownerState: j, sx: _, ...b, children: [
39
- /* @__PURE__ */ o(R, { children: [
32
+ selectedOriginIndex: o,
33
+ shownOriginIndex: l,
34
+ isPreviewing: b,
35
+ onOriginChange: s,
36
+ sx: I,
37
+ other: j,
38
+ ownerState: z
39
+ } = R(g);
40
+ return /* @__PURE__ */ t($, { ownerState: z, sx: I, ...j, children: [
41
+ /* @__PURE__ */ t(S, { children: [
40
42
  /* @__PURE__ */ e(
41
43
  "div",
42
44
  {
43
- ref: g,
44
- id: C,
45
+ ref: m,
46
+ id: x,
45
47
  style: { width: "100%", height: "100%" }
46
48
  }
47
49
  ),
@@ -62,7 +64,7 @@ const N = (p) => {
62
64
  children: "Loading..."
63
65
  }
64
66
  ),
65
- !n && m.length === 0 && /* @__PURE__ */ e(
67
+ !n && C.length === 0 && /* @__PURE__ */ e(
66
68
  "div",
67
69
  {
68
70
  style: {
@@ -75,38 +77,49 @@ const N = (p) => {
75
77
  fontSize: "1.1rem",
76
78
  zIndex: 10
77
79
  },
78
- children: x
80
+ children: y
79
81
  }
80
82
  )
81
83
  ] }),
82
- y && r.length > 1 && /* @__PURE__ */ o($, { children: [
84
+ _ && r.length > 1 && /* @__PURE__ */ t(F, { children: [
83
85
  /* @__PURE__ */ e(
84
- s,
86
+ d,
85
87
  {
86
88
  size: "small",
87
89
  "aria-label": "Previous forecast",
88
- disabled: t <= 0,
89
- onClick: () => l(t - 1),
90
- children: /* @__PURE__ */ e(f, { fontSize: "small" })
90
+ disabled: o <= 0,
91
+ onClick: () => s(o - 1),
92
+ children: /* @__PURE__ */ e(v, { fontSize: "small" })
91
93
  }
92
94
  ),
93
- /* @__PURE__ */ o(d, { variant: "caption", color: "text.secondary", component: "div", children: [
94
- `Forecast origin: ${r[t] ?? ""}`,
95
- /* @__PURE__ */ e(d, { variant: "caption", color: "text.disabled", component: "span", children: ` (${t + 1} / ${r.length})` })
95
+ /* @__PURE__ */ t(c, { variant: "caption", color: "text.secondary", component: "div", children: [
96
+ `Forecast origin: ${r[l] ?? ""}`,
97
+ /* @__PURE__ */ t(
98
+ c,
99
+ {
100
+ variant: "caption",
101
+ color: "text.disabled",
102
+ component: "span",
103
+ children: [
104
+ ` (${l + 1} / ${r.length})`,
105
+ b ? " · preview" : ""
106
+ ]
107
+ }
108
+ )
96
109
  ] }),
97
110
  /* @__PURE__ */ e(
98
- s,
111
+ d,
99
112
  {
100
113
  size: "small",
101
114
  "aria-label": "Next forecast",
102
- disabled: t >= r.length - 1,
103
- onClick: () => l(t + 1),
104
- children: /* @__PURE__ */ e(v, { fontSize: "small" })
115
+ disabled: o >= r.length - 1,
116
+ onClick: () => s(o + 1),
117
+ children: /* @__PURE__ */ e(p, { fontSize: "small" })
105
118
  }
106
119
  )
107
120
  ] })
108
121
  ] });
109
122
  };
110
123
  export {
111
- N as ForecastConeChart
124
+ A as ForecastConeChart
112
125
  };