@gravitee/graphene-charts 2.24.0 → 2.25.0-fix-type-array.9d9334f

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.
@@ -32,8 +32,14 @@ export interface ChartTooltipContentProps extends React.ComponentProps<'div'> {
32
32
  labelClassName?: string;
33
33
  /** Format each item's value. Defaults to `.toLocaleString()` for numbers. */
34
34
  valueFormatter?: (value: number | string, item: ChartTooltipItem, index: number) => React.ReactNode;
35
+ /** Show a footer row with the sum of all numeric item values. */
36
+ showTotal?: boolean;
37
+ /** Label for the total row. @default "Total" */
38
+ totalLabel?: string;
39
+ /** Format the total value. Defaults to `.toLocaleString()`. */
40
+ totalFormatter?: (total: number) => React.ReactNode;
35
41
  }
36
- declare function ChartTooltipContent({ label, items, active, hideLabel, hideIndicator, indicator, labelKey, nameKey, labelFormatter, labelClassName, valueFormatter, className, ...props }: ChartTooltipContentProps): import("react/jsx-runtime").JSX.Element | null;
42
+ declare function ChartTooltipContent({ label, items, active, hideLabel, hideIndicator, indicator, labelKey, nameKey, labelFormatter, labelClassName, valueFormatter, showTotal, totalLabel, totalFormatter, className, ...props }: ChartTooltipContentProps): import("react/jsx-runtime").JSX.Element | null;
37
43
  export interface ChartTooltipProps {
38
44
  /** The tooltip content element. Receives `label`, `items`, `active` at render time. */
39
45
  content: React.ReactElement;
@@ -1 +1 @@
1
- {"version":3,"file":"ChartTooltip.d.ts","sourceRoot":"","sources":["../../../src/base/ChartTooltip/ChartTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,MAAM,WAAW,gBAAgB;IAC/B,8DAA8D;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kEAAkE;IAClE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,wBAAyB,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IAC3E,+EAA+E;IAC/E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,KAAK,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC3B,oEAAoE;IACpE,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kDAAkD;IAClD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,uDAAuD;IACvD,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,QAAQ,CAAC;IAEtC,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,4BAA4B;IAC5B,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,KAAK,CAAC,SAAS,CAAC;IAC/E,qCAAqC;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,6EAA6E;IAC7E,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;CACrG;AAWD,iBAAS,mBAAmB,CAAC,EAC3B,KAAK,EACL,KAAU,EACV,MAAa,EACb,SAAiB,EACjB,aAAqB,EACrB,SAAiB,EACjB,QAAQ,EACR,OAAO,EACP,cAAc,EACd,cAAc,EACd,cAAsC,EACtC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,wBAAwB,kDA8F1B;AASD,MAAM,WAAW,iBAAiB;IAChC,uFAAuF;IACvF,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC;CAC7B;AAED,iBAAS,YAAY,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,QAYnD;AAED,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"ChartTooltip.d.ts","sourceRoot":"","sources":["../../../src/base/ChartTooltip/ChartTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,MAAM,WAAW,gBAAgB;IAC/B,8DAA8D;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kEAAkE;IAClE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,wBAAyB,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IAC3E,+EAA+E;IAC/E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,KAAK,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC3B,oEAAoE;IACpE,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kDAAkD;IAClD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,uDAAuD;IACvD,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,QAAQ,CAAC;IAEtC,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,4BAA4B;IAC5B,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,KAAK,CAAC,SAAS,CAAC;IAC/E,qCAAqC;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,6EAA6E;IAC7E,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;IAEpG,iEAAiE;IACjE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gDAAgD;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+DAA+D;IAC/D,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;CACrD;AAeD,iBAAS,mBAAmB,CAAC,EAC3B,KAAK,EACL,KAAU,EACV,MAAa,EACb,SAAiB,EACjB,aAAqB,EACrB,SAAiB,EACjB,QAAQ,EACR,OAAO,EACP,cAAc,EACd,cAAc,EACd,cAAsC,EACtC,SAAiB,EACjB,UAAoB,EACpB,cAAsC,EACtC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,wBAAwB,kDAsG1B;AASD,MAAM,WAAW,iBAAiB;IAChC,uFAAuF;IACvF,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC;CAC7B;AAED,iBAAS,YAAY,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,QAYnD;AAED,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC"}
package/dist/index.js CHANGED
@@ -924,68 +924,84 @@ function Be(e) {
924
924
  function Ve(e, t, n) {
925
925
  return t && e[t] ? e[t] : e[n];
926
926
  }
927
- function He({ label: t, items: n = [], active: r = !0, hideLabel: i = !1, hideIndicator: a = !1, indicator: o = "dot", labelKey: s, nameKey: c, labelFormatter: l, labelClassName: u, valueFormatter: d = Be, className: f, ...p }) {
928
- let { config: m } = z();
927
+ function He(e) {
928
+ return e.toLocaleString();
929
+ }
930
+ function Ue({ label: t, items: n = [], active: r = !0, hideLabel: i = !1, hideIndicator: a = !1, indicator: o = "dot", labelKey: s, nameKey: c, labelFormatter: l, labelClassName: u, valueFormatter: d = Be, showTotal: f = !1, totalLabel: p = "Total", totalFormatter: m = He, className: h, ...g }) {
931
+ let { config: _ } = z();
929
932
  if (!r || n.length === 0) return null;
930
- let h = n.length === 1 && o !== "dot", g = s ? Ve(m, s, s)?.label ?? t : typeof t == "string" ? m[t]?.label ?? t : t, _ = l ? l(t ?? "", n) : g, v = i || !_ && !l ? null : /* @__PURE__ */ C("div", {
933
+ let v = n.length === 1 && o !== "dot", y = s ? Ve(_, s, s)?.label ?? t : typeof t == "string" ? _[t]?.label ?? t : t, b = l ? l(t ?? "", n) : y, x = i || !b && !l ? null : /* @__PURE__ */ C("div", {
931
934
  className: e("font-medium", u),
932
- children: _
935
+ children: b
933
936
  });
934
937
  return /* @__PURE__ */ w("div", {
935
938
  "data-slot": "chart-tooltip-content",
936
- className: e("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl", f),
937
- ...p,
938
- children: [h ? null : v, /* @__PURE__ */ C("div", {
939
- className: "grid gap-1.5",
940
- children: n.map((t, n) => {
941
- let r = Ve(m, `${c ?? t.dataKey ?? t.name ?? "value"}`, t.name), i = t.color ?? `var(--color-${t.dataKey ?? t.name})`;
942
- return /* @__PURE__ */ w("div", {
943
- className: e("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground", o === "dot" && "items-center"),
944
- children: [r?.icon ? /* @__PURE__ */ C(r.icon, {}) : !a && /* @__PURE__ */ C("div", {
945
- className: e("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", {
946
- "h-2.5 w-2.5": o === "dot",
947
- "w-1": o === "line",
948
- "w-0 border-[1.5px] border-dashed bg-transparent": o === "dashed",
949
- "my-0.5": h && o === "dashed"
950
- }),
951
- style: {
952
- "--color-bg": i,
953
- "--color-border": i
954
- }
955
- }), /* @__PURE__ */ w("div", {
956
- className: e("flex flex-1 justify-between gap-4 leading-none", h ? "items-end" : "items-center"),
957
- children: [/* @__PURE__ */ w("div", {
958
- className: "grid gap-1.5",
959
- children: [h ? v : null, /* @__PURE__ */ C("span", {
960
- className: "text-muted-foreground",
961
- children: r?.label ?? t.name
939
+ className: e("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl", h),
940
+ ...g,
941
+ children: [
942
+ v ? null : x,
943
+ /* @__PURE__ */ C("div", {
944
+ className: "grid gap-1.5",
945
+ children: n.map((t, n) => {
946
+ let r = Ve(_, `${c ?? t.dataKey ?? t.name ?? "value"}`, t.name), i = t.color ?? `var(--color-${t.dataKey ?? t.name})`;
947
+ return /* @__PURE__ */ w("div", {
948
+ className: e("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground", o === "dot" && "items-center"),
949
+ children: [r?.icon ? /* @__PURE__ */ C(r.icon, {}) : !a && /* @__PURE__ */ C("div", {
950
+ className: e("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", {
951
+ "h-2.5 w-2.5": o === "dot",
952
+ "w-1": o === "line",
953
+ "w-0 border-[1.5px] border-dashed bg-transparent": o === "dashed",
954
+ "my-0.5": v && o === "dashed"
955
+ }),
956
+ style: {
957
+ "--color-bg": i,
958
+ "--color-border": i
959
+ }
960
+ }), /* @__PURE__ */ w("div", {
961
+ className: e("flex flex-1 justify-between gap-4 leading-none", v ? "items-end" : "items-center"),
962
+ children: [/* @__PURE__ */ w("div", {
963
+ className: "grid gap-1.5",
964
+ children: [v ? x : null, /* @__PURE__ */ C("span", {
965
+ className: "text-muted-foreground",
966
+ children: r?.label ?? t.name
967
+ })]
968
+ }), t.value !== void 0 && /* @__PURE__ */ C("span", {
969
+ className: "font-mono font-medium text-foreground tabular-nums",
970
+ children: d(t.value, t, n)
962
971
  })]
963
- }), t.value !== void 0 && /* @__PURE__ */ C("span", {
964
- className: "font-mono font-medium text-foreground tabular-nums",
965
- children: d(t.value, t, n)
966
972
  })]
967
- })]
968
- }, `${t.name}-${n}`);
973
+ }, `${t.name}-${n}`);
974
+ })
975
+ }),
976
+ f && n.length > 1 && /* @__PURE__ */ w("div", {
977
+ className: "flex items-center justify-between gap-4 border-t border-border/50 pt-1.5",
978
+ children: [/* @__PURE__ */ C("span", {
979
+ className: "font-medium",
980
+ children: p
981
+ }), /* @__PURE__ */ C("span", {
982
+ className: "font-mono font-medium text-foreground tabular-nums",
983
+ children: m(n.reduce((e, t) => e + (typeof t.value == "number" ? t.value : 0), 0))
984
+ })]
969
985
  })
970
- })]
986
+ ]
971
987
  });
972
988
  }
973
- function Ue({ content: e }) {
989
+ function We({ content: e }) {
974
990
  let { setTooltip: t } = Ee();
975
991
  return m.useLayoutEffect(() => (t({ content: e }), () => t(null)), [e, t]), null;
976
992
  }
977
993
  //#endregion
978
994
  //#region src/base/ChartLegend/ChartLegend.tsx
979
- var We = {
995
+ var Ge = {
980
996
  start: "justify-start",
981
997
  center: "justify-center",
982
998
  end: "justify-end"
983
999
  };
984
- function Ge({ items: t = [], hideIcon: n = !1, nameKey: r, verticalAlign: i, align: a = "start", className: o, ...s }) {
1000
+ function Ke({ items: t = [], hideIcon: n = !1, nameKey: r, verticalAlign: i, align: a = "start", className: o, ...s }) {
985
1001
  let { config: c } = z();
986
1002
  return t.length === 0 ? null : /* @__PURE__ */ C("div", {
987
1003
  "data-slot": "chart-legend-content",
988
- className: e("flex items-center gap-4 px-4 py-1", We[a], o),
1004
+ className: e("flex items-center gap-4 px-4 py-1", Ge[a], o),
989
1005
  ...s,
990
1006
  children: t.map((e) => {
991
1007
  let t = c[`${r ?? e.dataKey ?? e.value}`], i = e.color ?? `var(--color-${e.dataKey ?? e.value})`;
@@ -1002,7 +1018,7 @@ function Ge({ items: t = [], hideIcon: n = !1, nameKey: r, verticalAlign: i, ali
1002
1018
  })
1003
1019
  });
1004
1020
  }
1005
- function Ke({ content: e, verticalAlign: t = "bottom" }) {
1021
+ function qe({ content: e, verticalAlign: t = "bottom" }) {
1006
1022
  let { setLegend: n } = Ee();
1007
1023
  return m.useLayoutEffect(() => (n({
1008
1024
  content: e,
@@ -1015,12 +1031,12 @@ function Ke({ content: e, verticalAlign: t = "bottom" }) {
1015
1031
  }
1016
1032
  //#endregion
1017
1033
  //#region src/series/curves.ts
1018
- var qe = {
1034
+ var Je = {
1019
1035
  monotone: j,
1020
1036
  linear: A,
1021
1037
  step: M
1022
- }, Je = "\n@keyframes graphene-line-draw {\n from { stroke-dashoffset: var(--path-length); }\n to { stroke-dashoffset: 0; }\n}\n[data-graphene-chart-line][data-animated='true'] {\n animation: graphene-line-draw 800ms cubic-bezier(0.32, 0.72, 0, 1) forwards;\n}\n@media (prefers-reduced-motion: reduce) {\n [data-graphene-chart-line][data-animated='true'] {\n animation: none;\n stroke-dashoffset: 0;\n }\n}\n[data-graphene-chart-dot]:focus-visible {\n outline: 2px solid var(--ring);\n outline-offset: 2px;\n}\n";
1023
- function Ye({ dataKey: e, curveType: t = "monotone", showDots: n = !1, connectNulls: r = !1 }) {
1038
+ }, Ye = "\n@keyframes graphene-line-draw {\n from { stroke-dashoffset: var(--path-length); }\n to { stroke-dashoffset: 0; }\n}\n[data-graphene-chart-line][data-animated='true'] {\n animation: graphene-line-draw 800ms cubic-bezier(0.32, 0.72, 0, 1) forwards;\n}\n@media (prefers-reduced-motion: reduce) {\n [data-graphene-chart-line][data-animated='true'] {\n animation: none;\n stroke-dashoffset: 0;\n }\n}\n[data-graphene-chart-dot]:focus-visible {\n outline: 2px solid var(--ring);\n outline-offset: 2px;\n}\n";
1039
+ function Xe({ dataKey: e, curveType: t = "monotone", showDots: n = !1, connectNulls: r = !1 }) {
1024
1040
  let { data: i, categoryScale: a, valueScale: o, animated: s, hoveredCategory: c, config: l, valueTickFormatter: u, showTooltipAt: d, hideTooltip: f } = q(), p = m.useRef(null), [h, g] = m.useState(0), _ = `var(--color-${e})`;
1025
1041
  m.useLayoutEffect(() => {
1026
1042
  p.current && g(p.current.getTotalLength());
@@ -1032,7 +1048,7 @@ function Ye({ dataKey: e, curveType: t = "monotone", showDots: n = !1, connectNu
1032
1048
  t,
1033
1049
  r
1034
1050
  ]);
1035
- let v = qe[t], y = typeof l[e]?.label == "string" ? l[e]?.label : e, b = [];
1051
+ let v = Je[t], y = typeof l[e]?.label == "string" ? l[e]?.label : e, b = [];
1036
1052
  for (let t of i) {
1037
1053
  let n = t[e];
1038
1054
  if (n == null) {
@@ -1060,7 +1076,7 @@ function Ye({ dataKey: e, curveType: t = "monotone", showDots: n = !1, connectNu
1060
1076
  return /* @__PURE__ */ w("g", { children: [
1061
1077
  /* @__PURE__ */ C("style", {
1062
1078
  precedence: "graphene-charts",
1063
- children: Je
1079
+ children: Ye
1064
1080
  }),
1065
1081
  /* @__PURE__ */ C("path", {
1066
1082
  ref: p,
@@ -1111,11 +1127,11 @@ function Ye({ dataKey: e, curveType: t = "monotone", showDots: n = !1, connectNu
1111
1127
  })()
1112
1128
  ] });
1113
1129
  }
1114
- Ye.seriesType = "LineSeries";
1130
+ Xe.seriesType = "LineSeries";
1115
1131
  //#endregion
1116
1132
  //#region src/series/BarSeries.tsx
1117
- var Xe = "\n[data-graphene-chart-bar] {\n fill-opacity: 0.7;\n}\n[data-graphene-chart-bar][data-animated='true'] {\n transform-box: fill-box;\n transform-origin: center bottom;\n transition:\n transform 450ms cubic-bezier(0.32, 0.72, 0, 1),\n opacity 250ms ease-out;\n}\n[data-graphene-chart-bar][data-animated='true'][data-layout='horizontal'] {\n transform-origin: left center;\n}\n@starting-style {\n [data-graphene-chart-bar][data-animated='true'] {\n opacity: 0;\n transform: scaleY(0);\n }\n [data-graphene-chart-bar][data-animated='true'][data-layout='horizontal'] {\n transform: scaleX(0);\n }\n}\n@media (prefers-reduced-motion: reduce) {\n [data-graphene-chart-bar][data-animated='true'] {\n transition: none;\n }\n @starting-style {\n [data-graphene-chart-bar][data-animated='true'] {\n opacity: 1;\n transform: none;\n }\n }\n}\n[data-graphene-chart-bar]:focus-visible {\n outline: 2px solid var(--ring);\n outline-offset: 2px;\n}\n";
1118
- function Ze({ dataKey: e, stackId: t, barRadius: n }) {
1133
+ var Ze = "\n[data-graphene-chart-bar] {\n fill-opacity: 0.7;\n}\n[data-graphene-chart-bar][data-animated='true'] {\n transform-box: fill-box;\n transform-origin: center bottom;\n transition:\n transform 450ms cubic-bezier(0.32, 0.72, 0, 1),\n opacity 250ms ease-out;\n}\n[data-graphene-chart-bar][data-animated='true'][data-layout='horizontal'] {\n transform-origin: left center;\n}\n@starting-style {\n [data-graphene-chart-bar][data-animated='true'] {\n opacity: 0;\n transform: scaleY(0);\n }\n [data-graphene-chart-bar][data-animated='true'][data-layout='horizontal'] {\n transform: scaleX(0);\n }\n}\n@media (prefers-reduced-motion: reduce) {\n [data-graphene-chart-bar][data-animated='true'] {\n transition: none;\n }\n @starting-style {\n [data-graphene-chart-bar][data-animated='true'] {\n opacity: 1;\n transform: none;\n }\n }\n}\n[data-graphene-chart-bar]:focus-visible {\n outline: 2px solid var(--ring);\n outline-offset: 2px;\n}\n";
1134
+ function Qe({ dataKey: e, stackId: t, barRadius: n }) {
1119
1135
  let { data: r, categoryScale: i, valueScale: a, innerHeight: o, layout: s, animated: c, config: l, stackedLayers: u, barGroupScale: d, valueTickFormatter: f, chartWrapperRef: p, chartId: h, showTooltipAt: g, hideTooltip: _ } = q(), v = s === "vertical", y = `var(--color-${e})`, b = typeof l[e]?.label == "string" ? l[e]?.label : e, [x, S] = Oe("var(--chart-bar-radius, 3px)", 3), T = n ?? x, [E, D] = m.useState(null);
1120
1136
  m.useEffect(() => {
1121
1137
  D(p.current);
@@ -1159,7 +1175,7 @@ function Ze({ dataKey: e, stackId: t, barRadius: n }) {
1159
1175
  return /* @__PURE__ */ w("g", { children: [
1160
1176
  /* @__PURE__ */ C("style", {
1161
1177
  precedence: "graphene-charts",
1162
- children: Xe
1178
+ children: Ze
1163
1179
  }),
1164
1180
  E && ne(S, E),
1165
1181
  j && /* @__PURE__ */ C("defs", { children: j.map(({ clipId: e, path: t }) => /* @__PURE__ */ C("clipPath", {
@@ -1219,12 +1235,12 @@ function Ze({ dataKey: e, stackId: t, barRadius: n }) {
1219
1235
  })
1220
1236
  ] });
1221
1237
  }
1222
- Ze.seriesType = "BarSeries";
1238
+ Qe.seriesType = "BarSeries";
1223
1239
  //#endregion
1224
1240
  //#region src/series/AreaSeries.tsx
1225
- var Qe = "\n@keyframes graphene-line-draw {\n from { stroke-dashoffset: var(--path-length); }\n to { stroke-dashoffset: 0; }\n}\n[data-graphene-chart-line][data-animated='true'] {\n animation: graphene-line-draw 800ms cubic-bezier(0.32, 0.72, 0, 1) forwards;\n}\n@keyframes graphene-area-fade-in {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n[data-graphene-chart-area][data-animated='true'] {\n animation: graphene-area-fade-in 600ms cubic-bezier(0.32, 0.72, 0, 1) forwards;\n}\n@media (prefers-reduced-motion: reduce) {\n [data-graphene-chart-line][data-animated='true'] {\n animation: none;\n stroke-dashoffset: 0;\n }\n [data-graphene-chart-area][data-animated='true'] {\n animation: none;\n opacity: 1;\n }\n}\n";
1226
- function $e({ dataKey: e, stackId: t, curveType: n = "monotone", fillOpacity: r = .2, gradient: i = !0, connectNulls: a = !1 }) {
1227
- let { data: o, categoryScale: s, valueScale: c, innerHeight: l, animated: u, hoveredCategory: d, stackedLayers: f, chartId: p } = q(), h = m.useRef(null), [g, _] = m.useState(0), v = `var(--color-${e})`, y = qe[n];
1241
+ var $e = "\n@keyframes graphene-line-draw {\n from { stroke-dashoffset: var(--path-length); }\n to { stroke-dashoffset: 0; }\n}\n[data-graphene-chart-line][data-animated='true'] {\n animation: graphene-line-draw 800ms cubic-bezier(0.32, 0.72, 0, 1) forwards;\n}\n@keyframes graphene-area-fade-in {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n[data-graphene-chart-area][data-animated='true'] {\n animation: graphene-area-fade-in 600ms cubic-bezier(0.32, 0.72, 0, 1) forwards;\n}\n@media (prefers-reduced-motion: reduce) {\n [data-graphene-chart-line][data-animated='true'] {\n animation: none;\n stroke-dashoffset: 0;\n }\n [data-graphene-chart-area][data-animated='true'] {\n animation: none;\n opacity: 1;\n }\n}\n";
1242
+ function et({ dataKey: e, stackId: t, curveType: n = "monotone", fillOpacity: r = .2, gradient: i = !0, connectNulls: a = !1 }) {
1243
+ let { data: o, categoryScale: s, valueScale: c, innerHeight: l, animated: u, hoveredCategory: d, stackedLayers: f, chartId: p } = q(), h = m.useRef(null), [g, _] = m.useState(0), v = `var(--color-${e})`, y = Je[n];
1228
1244
  m.useLayoutEffect(() => {
1229
1245
  h.current && _(h.current.getTotalLength());
1230
1246
  }, [
@@ -1275,7 +1291,7 @@ function $e({ dataKey: e, stackId: t, curveType: n = "monotone", fillOpacity: r
1275
1291
  return /* @__PURE__ */ w("g", { children: [
1276
1292
  /* @__PURE__ */ C("style", {
1277
1293
  precedence: "graphene-charts",
1278
- children: Qe
1294
+ children: $e
1279
1295
  }),
1280
1296
  i && /* @__PURE__ */ C("defs", { children: /* @__PURE__ */ w("linearGradient", {
1281
1297
  id: x,
@@ -1327,10 +1343,10 @@ function $e({ dataKey: e, stackId: t, curveType: n = "monotone", fillOpacity: r
1327
1343
  })
1328
1344
  ] });
1329
1345
  }
1330
- $e.seriesType = "AreaSeries";
1346
+ et.seriesType = "AreaSeries";
1331
1347
  //#endregion
1332
1348
  //#region src/lib/inferDataKeys.ts
1333
- function et(e, t) {
1349
+ function tt(e, t) {
1334
1350
  if (e.length === 0) return [];
1335
1351
  let n = /* @__PURE__ */ new Set(), r = [];
1336
1352
  for (let t of e) for (let e of Object.keys(t)) {
@@ -1343,10 +1359,10 @@ function et(e, t) {
1343
1359
  }
1344
1360
  //#endregion
1345
1361
  //#region src/charts/BarChart/BarChart.tsx
1346
- var tt = 120;
1347
- function nt({ data: e, dataKeys: t, state: n, layout: r = "vertical", variant: i = "grouped", margin: a, barRadius: o, showGrid: s = !0, showCategoryAxis: c = !0, showValueAxis: l = !0, valueTickFormatter: u, ariaLabel: d, animated: f = !0, onBarHover: p, onBarLeave: m, className: h, children: g, ..._ }) {
1348
- let { config: v } = z(), y = t ?? et(e, Object.keys(v)), b = r === "vertical", x = i === "stacked" ? "default" : void 0, S = b ? a : {
1349
- left: tt,
1362
+ var nt = 120;
1363
+ function rt({ data: e, dataKeys: t, state: n, layout: r = "vertical", variant: i = "grouped", margin: a, barRadius: o, showGrid: s = !0, showCategoryAxis: c = !0, showValueAxis: l = !0, valueTickFormatter: u, ariaLabel: d, animated: f = !0, onBarHover: p, onBarLeave: m, className: h, children: g, ..._ }) {
1364
+ let { config: v } = z(), y = t ?? tt(e, Object.keys(v)), b = r === "vertical", x = i === "stacked" ? "default" : void 0, S = b ? a : {
1365
+ left: nt,
1350
1366
  ...a
1351
1367
  };
1352
1368
  return n === "loading" ? /* @__PURE__ */ C(je, {
@@ -1368,7 +1384,7 @@ function nt({ data: e, dataKeys: t, state: n, layout: r = "vertical", variant: i
1368
1384
  ..._,
1369
1385
  children: [
1370
1386
  s && /* @__PURE__ */ C(J, { orientation: b ? "horizontal" : "vertical" }),
1371
- y.map((e) => /* @__PURE__ */ C(Ze, {
1387
+ y.map((e) => /* @__PURE__ */ C(Qe, {
1372
1388
  dataKey: e,
1373
1389
  stackId: x,
1374
1390
  barRadius: o
@@ -1381,18 +1397,18 @@ function nt({ data: e, dataKeys: t, state: n, layout: r = "vertical", variant: i
1381
1397
  }
1382
1398
  //#endregion
1383
1399
  //#region src/charts/DoughnutChart/DoughnutChart.tsx
1384
- var rt = {
1400
+ var it = {
1385
1401
  top: 10,
1386
1402
  right: 10,
1387
1403
  bottom: 10,
1388
1404
  left: 10
1389
- }, it = {
1405
+ }, at = {
1390
1406
  top: 30,
1391
1407
  right: 60,
1392
1408
  bottom: 30,
1393
1409
  left: 60
1394
- }, at = 50, ot = "\n[data-graphene-chart-doughnut-segment][data-animated='true'] {\n transform-box: fill-box;\n transform-origin: center center;\n transition:\n transform 500ms cubic-bezier(0.32, 0.72, 0, 1),\n opacity 300ms ease-out;\n}\n@starting-style {\n [data-graphene-chart-doughnut-segment][data-animated='true'] {\n opacity: 0;\n transform: scale(0);\n }\n}\n@media (prefers-reduced-motion: reduce) {\n [data-graphene-chart-doughnut-segment][data-animated='true'] {\n transition: none;\n }\n @starting-style {\n [data-graphene-chart-doughnut-segment][data-animated='true'] {\n opacity: 1;\n transform: none;\n }\n }\n}\n[data-graphene-chart-doughnut-segment]:focus-visible {\n outline: 2px solid var(--ring);\n outline-offset: 2px;\n}\n";
1395
- function st({ state: e, data: t, innerRadius: n, padAngle: r, cornerRadius: i, labels: a, centerContent: o, startAngle: s, animated: c, tooltipLabel: l, onSegmentHover: u, onSegmentLeave: d, ariaLabel: f, margin: p, className: m, children: h, ...g }) {
1410
+ }, ot = 50, st = "\n[data-graphene-chart-doughnut-segment][data-animated='true'] {\n transform-box: fill-box;\n transform-origin: center center;\n transition:\n transform 500ms cubic-bezier(0.32, 0.72, 0, 1),\n opacity 300ms ease-out;\n}\n@starting-style {\n [data-graphene-chart-doughnut-segment][data-animated='true'] {\n opacity: 0;\n transform: scale(0);\n }\n}\n@media (prefers-reduced-motion: reduce) {\n [data-graphene-chart-doughnut-segment][data-animated='true'] {\n transition: none;\n }\n @starting-style {\n [data-graphene-chart-doughnut-segment][data-animated='true'] {\n opacity: 1;\n transform: none;\n }\n }\n}\n[data-graphene-chart-doughnut-segment]:focus-visible {\n outline: 2px solid var(--ring);\n outline-offset: 2px;\n}\n";
1411
+ function ct({ state: e, data: t, innerRadius: n, padAngle: r, cornerRadius: i, labels: a, centerContent: o, startAngle: s, animated: c, tooltipLabel: l, onSegmentHover: u, onSegmentLeave: d, ariaLabel: f, margin: p, className: m, children: h, ...g }) {
1396
1412
  let _ = ke(e, t.length);
1397
1413
  return _ === "loading" ? /* @__PURE__ */ C(ze, {
1398
1414
  ariaLabel: f,
@@ -1402,7 +1418,7 @@ function st({ state: e, data: t, innerRadius: n, padAngle: r, cornerRadius: i, l
1402
1418
  ariaLabel: f ?? "Doughnut chart with 0 segments",
1403
1419
  className: m,
1404
1420
  ...g
1405
- }) : /* @__PURE__ */ C(De, { children: /* @__PURE__ */ C(ct, {
1421
+ }) : /* @__PURE__ */ C(De, { children: /* @__PURE__ */ C(lt, {
1406
1422
  data: t,
1407
1423
  innerRadius: n,
1408
1424
  padAngle: r,
@@ -1421,9 +1437,9 @@ function st({ state: e, data: t, innerRadius: n, padAngle: r, cornerRadius: i, l
1421
1437
  children: h
1422
1438
  }) });
1423
1439
  }
1424
- function ct({ data: t, innerRadius: n = .6, padAngle: r = .02, cornerRadius: i = 8, labels: a, centerContent: o, startAngle: s = -Math.PI / 2, animated: c = !0, tooltipLabel: l, onSegmentHover: u, onSegmentLeave: d, ariaLabel: f, margin: p, className: h, children: g, ..._ }) {
1440
+ function lt({ data: t, innerRadius: n = .6, padAngle: r = .02, cornerRadius: i = 8, labels: a, centerContent: o, startAngle: s = -Math.PI / 2, animated: c = !0, tooltipLabel: l, onSegmentHover: u, onSegmentLeave: d, ariaLabel: f, margin: p, className: h, children: g, ..._ }) {
1425
1441
  let { config: v } = z(), { tooltip: y, legend: b } = Ee(), x = a !== void 0, T = {
1426
- ...x ? it : rt,
1442
+ ...x ? at : it,
1427
1443
  ...p
1428
1444
  }, E = m.useRef(null), D = m.useRef(null), k = m.useRef(null), A = ae(D), j = ce(), [M, N] = m.useState(null), [F, ee] = m.useState(null);
1429
1445
  m.useLayoutEffect(() => {
@@ -1497,7 +1513,7 @@ function ct({ data: t, innerRadius: n = .6, padAngle: r = .02, cornerRadius: i =
1497
1513
  return /* @__PURE__ */ w(S, { children: [
1498
1514
  /* @__PURE__ */ C("style", {
1499
1515
  precedence: "graphene-charts",
1500
- children: ot
1516
+ children: st
1501
1517
  }),
1502
1518
  g,
1503
1519
  /* @__PURE__ */ w("div", {
@@ -1562,9 +1578,9 @@ function ct({ data: t, innerRadius: n = .6, padAngle: r = .02, cornerRadius: i =
1562
1578
  children: d
1563
1579
  }),
1564
1580
  u && /* @__PURE__ */ C("rect", {
1565
- x: r ? c : c - at,
1581
+ x: r ? c : c - ot,
1566
1582
  y: s - 8,
1567
- width: at,
1583
+ width: ot,
1568
1584
  height: 16,
1569
1585
  fill: "transparent"
1570
1586
  })
@@ -1649,10 +1665,10 @@ function ct({ data: t, innerRadius: n = .6, padAngle: r = .02, cornerRadius: i =
1649
1665
  }
1650
1666
  //#endregion
1651
1667
  //#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs
1652
- var lt = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), ut = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), dt = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), ft = (e) => {
1653
- let t = dt(e);
1668
+ var ut = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), dt = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), ft = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), pt = (e) => {
1669
+ let t = ft(e);
1654
1670
  return t.charAt(0).toUpperCase() + t.slice(1);
1655
- }, pt = {
1671
+ }, mt = {
1656
1672
  xmlns: "http://www.w3.org/2000/svg",
1657
1673
  width: 24,
1658
1674
  height: 24,
@@ -1662,43 +1678,43 @@ var lt = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
1662
1678
  strokeWidth: 2,
1663
1679
  strokeLinecap: "round",
1664
1680
  strokeLinejoin: "round"
1665
- }, mt = (e) => {
1681
+ }, ht = (e) => {
1666
1682
  for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
1667
1683
  return !1;
1668
- }, ht = h({}), gt = () => y(ht), _t = _(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: o, ...s }, c) => {
1669
- let { size: l = 24, strokeWidth: u = 2, absoluteStrokeWidth: d = !1, color: f = "currentColor", className: p = "" } = gt() ?? {}, m = r ?? d ? Number(n ?? u) * 24 / Number(t ?? l) : n ?? u;
1684
+ }, gt = h({}), _t = () => y(gt), vt = _(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: o, ...s }, c) => {
1685
+ let { size: l = 24, strokeWidth: u = 2, absoluteStrokeWidth: d = !1, color: f = "currentColor", className: p = "" } = _t() ?? {}, m = r ?? d ? Number(n ?? u) * 24 / Number(t ?? l) : n ?? u;
1670
1686
  return g("svg", {
1671
1687
  ref: c,
1672
- ...pt,
1673
- width: t ?? l ?? pt.width,
1674
- height: t ?? l ?? pt.height,
1688
+ ...mt,
1689
+ width: t ?? l ?? mt.width,
1690
+ height: t ?? l ?? mt.height,
1675
1691
  stroke: e ?? f,
1676
1692
  strokeWidth: m,
1677
- className: lt("lucide", p, i),
1678
- ...!a && !mt(s) && { "aria-hidden": "true" },
1693
+ className: ut("lucide", p, i),
1694
+ ...!a && !ht(s) && { "aria-hidden": "true" },
1679
1695
  ...s
1680
1696
  }, [...o.map(([e, t]) => g(e, t)), ...Array.isArray(a) ? a : [a]]);
1681
- }), vt = (e, t) => {
1682
- let n = _(({ className: n, ...r }, i) => g(_t, {
1697
+ }), yt = (e, t) => {
1698
+ let n = _(({ className: n, ...r }, i) => g(vt, {
1683
1699
  ref: i,
1684
1700
  iconNode: t,
1685
- className: lt(`lucide-${ut(ft(e))}`, `lucide-${e}`, n),
1701
+ className: ut(`lucide-${dt(pt(e))}`, `lucide-${e}`, n),
1686
1702
  ...r
1687
1703
  }));
1688
- return n.displayName = ft(e), n;
1689
- }, yt = vt("trending-down", [["path", {
1704
+ return n.displayName = pt(e), n;
1705
+ }, bt = yt("trending-down", [["path", {
1690
1706
  d: "M16 17h6v-6",
1691
1707
  key: "t6n2it"
1692
1708
  }], ["path", {
1693
1709
  d: "m22 17-8.5-8.5-5 5L2 7",
1694
1710
  key: "x473p"
1695
- }]]), bt = vt("trending-up", [["path", {
1711
+ }]]), xt = yt("trending-up", [["path", {
1696
1712
  d: "M16 7h6v6",
1697
1713
  key: "box55l"
1698
1714
  }], ["path", {
1699
1715
  d: "m22 7-8.5 8.5-5-5L2 17",
1700
1716
  key: "1t1m79"
1701
- }]]), xt = _((e, t) => /* @__PURE__ */ C("svg", {
1717
+ }]]), St = _((e, t) => /* @__PURE__ */ C("svg", {
1702
1718
  ref: t,
1703
1719
  xmlns: "http://www.w3.org/2000/svg",
1704
1720
  width: 24,
@@ -1711,8 +1727,8 @@ var lt = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
1711
1727
  d: "M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z"
1712
1728
  })
1713
1729
  }));
1714
- xt.displayName = "AnthropicIcon";
1715
- var St = _((e, t) => /* @__PURE__ */ w("svg", {
1730
+ St.displayName = "AnthropicIcon";
1731
+ var Ct = _((e, t) => /* @__PURE__ */ w("svg", {
1716
1732
  ref: t,
1717
1733
  xmlns: "http://www.w3.org/2000/svg",
1718
1734
  width: 24,
@@ -1732,8 +1748,8 @@ var St = _((e, t) => /* @__PURE__ */ w("svg", {
1732
1748
  clipRule: "evenodd"
1733
1749
  })]
1734
1750
  }));
1735
- St.displayName = "ApigeeIcon";
1736
- var Ct = _((e, t) => /* @__PURE__ */ w("svg", {
1751
+ Ct.displayName = "ApigeeIcon";
1752
+ var wt = _((e, t) => /* @__PURE__ */ w("svg", {
1737
1753
  ref: t,
1738
1754
  xmlns: "http://www.w3.org/2000/svg",
1739
1755
  width: 24,
@@ -1760,8 +1776,8 @@ var Ct = _((e, t) => /* @__PURE__ */ w("svg", {
1760
1776
  })
1761
1777
  ]
1762
1778
  }));
1763
- Ct.displayName = "AwsIcon";
1764
- var wt = _((e, t) => /* @__PURE__ */ C("svg", {
1779
+ wt.displayName = "AwsIcon";
1780
+ var Tt = _((e, t) => /* @__PURE__ */ C("svg", {
1765
1781
  ref: t,
1766
1782
  xmlns: "http://www.w3.org/2000/svg",
1767
1783
  width: 24,
@@ -1774,8 +1790,8 @@ var wt = _((e, t) => /* @__PURE__ */ C("svg", {
1774
1790
  d: "M16.043 20.561a1.391 1.391 0 0 0 .003-.92l.003.01L10.405 2.93h5.184c.203 0 .376.13.439.311v.004l5.638 16.705a.463.463 0 0 1-.287.586l-.004.001-5.332.025Zm-3.988-9.838 3.114 9.226a.464.464 0 0 1-.438.613h-.026a.46.46 0 0 1-.277-.093h.001l-7.978-5.928h4.17l1.434-3.818Zm9.172 10.766h.001a1.391 1.391 0 0 0 1.315-1.848l.003.01v.002l-5.64-16.706A1.394 1.394 0 0 0 15.588 2H9.03c-.61 0-1.127.393-1.315.938l-.003.01-5.64 16.704A1.391 1.391 0 0 0 3.39 21.49h4.075a1.39 1.39 0 0 0 1.315-.938l.003-.01.84-2.484 4.25 3.157c.229.172.517.275.83.275h6.523Z"
1775
1791
  })
1776
1792
  }));
1777
- wt.displayName = "AzureIcon";
1778
- var Tt = _((e, t) => /* @__PURE__ */ C("svg", {
1793
+ Tt.displayName = "AzureIcon";
1794
+ var Et = _((e, t) => /* @__PURE__ */ C("svg", {
1779
1795
  ref: t,
1780
1796
  xmlns: "http://www.w3.org/2000/svg",
1781
1797
  width: 24,
@@ -1790,8 +1806,8 @@ var Tt = _((e, t) => /* @__PURE__ */ C("svg", {
1790
1806
  clipRule: "evenodd"
1791
1807
  })
1792
1808
  }));
1793
- Tt.displayName = "BitbucketIcon";
1794
- var Et = _((e, t) => /* @__PURE__ */ w("svg", {
1809
+ Et.displayName = "BitbucketIcon";
1810
+ var Dt = _((e, t) => /* @__PURE__ */ w("svg", {
1795
1811
  ref: t,
1796
1812
  xmlns: "http://www.w3.org/2000/svg",
1797
1813
  width: 24,
@@ -1818,8 +1834,8 @@ var Et = _((e, t) => /* @__PURE__ */ w("svg", {
1818
1834
  })
1819
1835
  ]
1820
1836
  }));
1821
- Et.displayName = "CohereIcon";
1822
- var Dt = _((e, t) => /* @__PURE__ */ C("svg", {
1837
+ Dt.displayName = "CohereIcon";
1838
+ var Ot = _((e, t) => /* @__PURE__ */ C("svg", {
1823
1839
  ref: t,
1824
1840
  xmlns: "http://www.w3.org/2000/svg",
1825
1841
  width: 24,
@@ -1829,8 +1845,8 @@ var Dt = _((e, t) => /* @__PURE__ */ C("svg", {
1829
1845
  ...e,
1830
1846
  children: /* @__PURE__ */ C("path", { d: "M6.973 3 4.098 8.188l1.469 2.624L8.442 6h10.25l-1.688-3H6.973Zm8.75 4 2.969 4.906L13.629 21h3.375l5-9-2.781-5h-3.5Zm-3.719 1c-2.207 0-4 1.793-4 4s1.793 4 4 4 4-1.793 4-4-1.793-4-4-4ZM3.535 9.219 2.005 12l4.968 9h5.531l1.656-3H8.41L3.535 9.219Zm8.47.781c1.1 0 2 .898 2 2 0 1.102-.9 2-2 2-1.102 0-2-.898-2-2 0-1.102.898-2 2-2Z" })
1831
1847
  }));
1832
- Dt.displayName = "GcpIcon";
1833
- var Ot = _((e, t) => /* @__PURE__ */ C("svg", {
1848
+ Ot.displayName = "GcpIcon";
1849
+ var kt = _((e, t) => /* @__PURE__ */ C("svg", {
1834
1850
  ref: t,
1835
1851
  xmlns: "http://www.w3.org/2000/svg",
1836
1852
  width: 24,
@@ -1846,8 +1862,8 @@ var Ot = _((e, t) => /* @__PURE__ */ C("svg", {
1846
1862
  d: "M9.357 19.48c-4.553 1.484-4.553-2.65-6.353-3.18m12.706 5.3v-3.71c0-1.06.106-1.485-.53-2.12 2.965-.319 5.824-1.485 5.824-6.361a4.88 4.88 0 0 0-1.376-3.393 4.46 4.46 0 0 0-.106-3.392s-1.165-.318-3.706 1.378a13.008 13.008 0 0 0-6.565 0C6.71 2.306 5.545 2.624 5.545 2.624a4.458 4.458 0 0 0-.106 3.392A4.88 4.88 0 0 0 4.063 9.41c0 4.876 2.859 6.042 5.824 6.36-.636.636-.636 1.272-.53 2.12v3.71"
1847
1863
  })
1848
1864
  }));
1849
- Ot.displayName = "GithubIcon";
1850
- var kt = _((e, t) => /* @__PURE__ */ C("svg", {
1865
+ kt.displayName = "GithubIcon";
1866
+ var At = _((e, t) => /* @__PURE__ */ C("svg", {
1851
1867
  ref: t,
1852
1868
  xmlns: "http://www.w3.org/2000/svg",
1853
1869
  width: 24,
@@ -1863,8 +1879,8 @@ var kt = _((e, t) => /* @__PURE__ */ C("svg", {
1863
1879
  d: "m22.004 13.29-3.33-10a.42.42 0 0 0-.14-.18.38.38 0 0 0-.22-.11.39.39 0 0 0-.37.25l-2.26 6.67h-7.36l-2.22-6.66a.42.42 0 0 0-.1-.18.38.38 0 0 0-.26-.08.39.39 0 0 0-.37.25l-3.37 10.04a.74.74 0 0 0 .27.83l9.73 6.88 9.69-6.88a.71.71 0 0 0 .31-.83v0Z"
1864
1880
  })
1865
1881
  }));
1866
- kt.displayName = "GitlabIcon";
1867
- var At = _((e, t) => /* @__PURE__ */ C("svg", {
1882
+ At.displayName = "GitlabIcon";
1883
+ var jt = _((e, t) => /* @__PURE__ */ C("svg", {
1868
1884
  ref: t,
1869
1885
  xmlns: "http://www.w3.org/2000/svg",
1870
1886
  width: 24,
@@ -1877,8 +1893,8 @@ var At = _((e, t) => /* @__PURE__ */ C("svg", {
1877
1893
  d: "M15.748 13.131c-.821 0-1.558.363-2.063.933l-1.293-.91a3.51 3.51 0 0 0 .216-1.203c0-.415-.076-.812-.209-1.183l1.29-.9a2.75 2.75 0 0 0 2.06.927A2.748 2.748 0 0 0 18.5 8.058a2.748 2.748 0 0 0-2.752-2.738 2.748 2.748 0 0 0-2.751 2.738c0 .27.041.53.115.777l-1.291.902a3.556 3.556 0 0 0-2.2-1.273V6.916a2.745 2.745 0 0 0 2.185-2.678A2.748 2.748 0 0 0 9.054 1.5a2.748 2.748 0 0 0-2.752 2.738c0 1.298.915 2.387 2.137 2.666v1.568C6.772 8.762 5.5 10.21 5.5 11.95c0 1.75 1.284 3.202 2.963 3.483v1.656a2.744 2.744 0 0 0-2.16 2.672 2.748 2.748 0 0 0 2.75 2.739 2.748 2.748 0 0 0 2.752-2.738 2.745 2.745 0 0 0-2.161-2.672v-1.656c.867-.145 1.63-.6 2.163-1.252l1.302.917a2.71 2.71 0 0 0-.113.77 2.748 2.748 0 0 0 2.752 2.738 2.748 2.748 0 0 0 2.751-2.738 2.748 2.748 0 0 0-2.752-2.738Zm0-6.4c.736 0 1.335.595 1.335 1.327 0 .731-.599 1.327-1.334 1.327a1.332 1.332 0 0 1-1.335-1.327c0-.732.599-1.328 1.335-1.328ZM7.72 4.237c0-.732.598-1.328 1.334-1.328.736 0 1.334.596 1.334 1.328 0 .731-.598 1.327-1.334 1.327A1.332 1.332 0 0 1 7.72 4.238Zm2.668 15.524c0 .732-.598 1.328-1.334 1.328a1.332 1.332 0 0 1-1.334-1.328c0-.731.598-1.327 1.334-1.327.736 0 1.334.596 1.334 1.327Zm-1.334-5.96c-1.026 0-1.86-.83-1.86-1.851 0-1.02.834-1.851 1.86-1.851 1.026 0 1.86.83 1.86 1.851 0 1.02-.834 1.851-1.86 1.851Zm6.694 3.394a1.332 1.332 0 0 1-1.334-1.327c0-.732.599-1.327 1.335-1.327.735 0 1.333.595 1.333 1.327s-.598 1.327-1.334 1.327Z"
1878
1894
  })
1879
1895
  }));
1880
- At.displayName = "KafkaIcon";
1881
- var jt = _((e, t) => /* @__PURE__ */ C("svg", {
1896
+ jt.displayName = "KafkaIcon";
1897
+ var Mt = _((e, t) => /* @__PURE__ */ C("svg", {
1882
1898
  ref: t,
1883
1899
  xmlns: "http://www.w3.org/2000/svg",
1884
1900
  width: 24,
@@ -1891,8 +1907,8 @@ var jt = _((e, t) => /* @__PURE__ */ C("svg", {
1891
1907
  d: "m23 14.095-2.748-.63a8.18 8.18 0 0 0-1.269-5.53l2.113-1.692-1.037-1.306-2.112 1.69a8.282 8.282 0 0 0-5.115-2.48V1.6h-1.664v2.548a8.282 8.282 0 0 0-5.115 2.48L3.941 4.937 2.903 6.243l2.114 1.691a8.194 8.194 0 0 0-1.269 5.532L1 14.096l.37 1.627 2.744-.629a8.374 8.374 0 0 0 3.55 4.474l-1.106 2.308 1.5.724 1.105-2.306a8.134 8.134 0 0 0 5.675 0l1.105 2.306 1.5-.725-1.107-2.307a8.374 8.374 0 0 0 3.55-4.474l2.744.629.37-1.628Zm-4.345-1.64c0 .215-.012.427-.032.637l-4.16-.953a2.482 2.482 0 0 0-.114-.496l3.325-2.661a6.648 6.648 0 0 1 .981 3.473Zm-7.487 0a.837.837 0 0 1 .514-.771.829.829 0 0 1 1.134.608.839.839 0 0 1-.354.857.83.83 0 0 1-1.05-.104.837.837 0 0 1-.244-.59Zm5.47-4.78-3.324 2.66a2.49 2.49 0 0 0-.482-.231V5.833a6.625 6.625 0 0 1 3.806 1.841Zm-5.47-1.842v4.27a2.49 2.49 0 0 0-.482.232l-3.324-2.66a6.626 6.626 0 0 1 3.806-1.842Zm-5.823 6.622c0-1.226.34-2.429.981-3.473l3.325 2.66a2.485 2.485 0 0 0-.115.497l-4.16.953a6.763 6.763 0 0 1-.031-.637Zm.402 2.265 4.139-.949c.098.162.213.313.345.448l-1.842 3.84a6.701 6.701 0 0 1-2.642-3.339ZM12 19.135a6.607 6.607 0 0 1-2.113-.35l1.847-3.852c.088.014.177.023.266.027.089-.004.178-.013.265-.027l1.848 3.852c-.68.23-1.394.35-2.113.35Zm3.611-1.077-1.842-3.839c.132-.136.247-.286.345-.448l4.139.949a6.701 6.701 0 0 1-2.642 3.338Z"
1892
1908
  })
1893
1909
  }));
1894
- jt.displayName = "KubernetesIcon";
1895
- var Mt = _((e, t) => /* @__PURE__ */ w("svg", {
1910
+ Mt.displayName = "KubernetesIcon";
1911
+ var Nt = _((e, t) => /* @__PURE__ */ w("svg", {
1896
1912
  ref: t,
1897
1913
  xmlns: "http://www.w3.org/2000/svg",
1898
1914
  width: 24,
@@ -1943,8 +1959,8 @@ var Mt = _((e, t) => /* @__PURE__ */ w("svg", {
1943
1959
  })
1944
1960
  ]
1945
1961
  }));
1946
- Mt.displayName = "MistralIcon";
1947
- var Nt = _((e, t) => /* @__PURE__ */ C("svg", {
1962
+ Nt.displayName = "MistralIcon";
1963
+ var Pt = _((e, t) => /* @__PURE__ */ C("svg", {
1948
1964
  ref: t,
1949
1965
  xmlns: "http://www.w3.org/2000/svg",
1950
1966
  width: 24,
@@ -1957,10 +1973,10 @@ var Nt = _((e, t) => /* @__PURE__ */ C("svg", {
1957
1973
  d: "M304.246 294.611V249.028c0-3.839 1.441-6.719 4.798-8.636l91.648-52.78c12.475-7.197 27.35-10.554 42.702-10.554 57.577 0 94.046 44.624 94.046 92.124 0 3.358 0 7.197-.481 11.036l-95.005-55.66c-5.757-3.357-11.517-3.357-17.274 0l-120.434 70.053ZM518.245 472.145V363.224c0-6.719-2.881-11.517-8.637-14.875l-120.434-70.053 39.345-22.553c3.358-1.917 6.238-1.917 9.596 0l91.647 52.78c26.392 15.356 44.143 47.982 44.143 79.648 0 36.465-21.59 70.054-55.66 83.97v.004ZM275.937 376.182l-39.345-23.03c-3.357-1.917-4.798-4.798-4.798-8.637V238.956c0-51.339 39.345-90.207 92.606-90.207 20.155 0 38.864 6.719 54.702 18.714l-94.524 54.701c-5.756 3.357-8.636 8.155-8.636 14.875v139.147l-.005-.004ZM360.626 425.122 304.246 393.455v-67.172l56.38-31.667 56.376 31.667v67.172l-56.376 31.667ZM396.852 570.989c-20.154 0-38.863-6.719-54.701-18.713l94.523-54.702c5.757-3.357 8.637-8.155 8.637-14.875V343.552l39.827 23.03c3.357 1.917 4.798 4.797 4.798 8.637v105.559c0 51.339-39.827 90.207-93.084 90.207v.004ZM283.134 463.99l-91.648-52.779c-26.392-15.357-44.143-47.982-44.143-79.649 0-36.946 22.072-70.053 56.137-83.969v109.398c0 6.719 2.881 11.517 8.637 14.875l119.957 69.571-39.345 22.553c-3.357 1.917-6.238 1.917-9.595 0ZM277.859 542.68c-54.22 0-94.046-40.785-94.046-91.166 0-3.839.481-7.678.958-11.517l94.524 54.701c5.756 3.358 11.517 3.358 17.273 0L417.002 425.127v45.583c0 3.839-1.44 6.719-4.798 8.636l-91.647 52.78c-12.476 7.197-27.351 10.554-42.703 10.554h.005ZM396.852 599.776c58.059 0 106.518-41.263 117.558-95.964 53.739-13.916 88.286-64.297 88.286-115.636 0-33.589-14.393-66.214-40.304-89.726 2.399-10.077 3.839-20.154 3.839-30.226 0-68.613-55.66-119.957-119.957-119.957-12.952 0-25.428 1.917-37.904 6.238-21.595-21.113-51.344-34.547-83.97-34.547-58.058 0-106.517 41.262-117.557 95.963-53.739 13.916-88.286 64.297-88.286 115.636 0 33.589 14.393 66.214 40.304 89.726-2.399 10.077-3.839 20.154-3.839 30.227 0 68.613 55.66 119.956 119.956 119.956 12.953 0 25.429-1.917 37.905-6.238 21.59 21.113 51.339 34.548 83.969 34.548Z"
1958
1974
  })
1959
1975
  }));
1960
- Nt.displayName = "OpenAIIcon";
1976
+ Pt.displayName = "OpenAIIcon";
1961
1977
  //#endregion
1962
1978
  //#region src/lib/useContainerSize.ts
1963
- function Pt() {
1979
+ function Ft() {
1964
1980
  let [e, t] = x({
1965
1981
  width: 0,
1966
1982
  height: 0
@@ -1985,29 +2001,29 @@ function Pt() {
1985
2001
  }
1986
2002
  //#endregion
1987
2003
  //#region src/charts/Metric/Metric.tsx
1988
- var Ft = {
2004
+ var It = {
1989
2005
  positive: "text-success",
1990
2006
  negative: "text-destructive",
1991
2007
  neutral: "text-muted-foreground"
1992
2008
  };
1993
- function It(e, t) {
2009
+ function Lt(e, t) {
1994
2010
  return e === "neutral" || t === "neutral" ? "neutral" : t === "higher-is-better" ? e === "up" ? "positive" : "negative" : e === "up" ? "negative" : "positive";
1995
2011
  }
1996
- var Lt = 56;
1997
- function Rt(e, t) {
2012
+ var Rt = 56;
2013
+ function zt(e, t) {
1998
2014
  let n = Math.min(t > 0 ? t : 100, (e > 0 ? e : 200) * .65);
1999
2015
  return Math.max(18, Math.min(96, Math.round(n * .22)));
2000
2016
  }
2001
- function zt(e) {
2017
+ function Bt(e) {
2002
2018
  return Math.max(10, Math.round(e * .22));
2003
2019
  }
2004
- function Bt(e) {
2020
+ function Vt(e) {
2005
2021
  return e < 80 ? "text-sm font-semibold leading-tight" : e < 110 ? "text-base font-semibold leading-tight" : e < 150 ? "text-lg font-semibold leading-tight" : "text-xl font-semibold leading-tight";
2006
2022
  }
2007
- function Vt(e) {
2023
+ function Ht(e) {
2008
2024
  return e < 50 ? "text-[9px]" : e < 80 ? "text-[10px]" : e < 120 ? "text-xs" : "text-sm";
2009
2025
  }
2010
- function Ht(e) {
2026
+ function Ut(e) {
2011
2027
  return e < 60 ? {
2012
2028
  text: "text-[9px]",
2013
2029
  icon: "size-2"
@@ -2022,7 +2038,7 @@ function Ht(e) {
2022
2038
  icon: "size-3.5"
2023
2039
  };
2024
2040
  }
2025
- function Ut({ data: t, color: n, colorClass: r }) {
2041
+ function Wt({ data: t, color: n, colorClass: r }) {
2026
2042
  let i = m.useRef(null), [a, o] = m.useState({
2027
2043
  width: 0,
2028
2044
  height: 0
@@ -2074,10 +2090,10 @@ function Ut({ data: t, color: n, colorClass: r }) {
2074
2090
  ] })
2075
2091
  });
2076
2092
  }
2077
- function Wt({ trend: t, sentiment: n, trendClass: r }) {
2078
- let i = t.direction === "down" ? yt : bt;
2093
+ function Gt({ trend: t, sentiment: n, trendClass: r }) {
2094
+ let i = t.direction === "down" ? bt : xt;
2079
2095
  return /* @__PURE__ */ w("span", {
2080
- className: e("inline-flex items-center gap-1 font-medium", r.text, Ft[n]),
2096
+ className: e("inline-flex items-center gap-1 font-medium", r.text, It[n]),
2081
2097
  children: [
2082
2098
  t.direction !== "neutral" && /* @__PURE__ */ C(i, { className: r.icon }),
2083
2099
  t.value,
@@ -2085,7 +2101,7 @@ function Wt({ trend: t, sentiment: n, trendClass: r }) {
2085
2101
  ]
2086
2102
  });
2087
2103
  }
2088
- function Gt({ className: t, ...n }) {
2104
+ function Kt({ className: t, ...n }) {
2089
2105
  return /* @__PURE__ */ w("div", {
2090
2106
  role: "img",
2091
2107
  "aria-busy": "true",
@@ -2104,15 +2120,15 @@ function Gt({ className: t, ...n }) {
2104
2120
  }), /* @__PURE__ */ C($, { className: "min-h-5 w-full flex-1" })]
2105
2121
  });
2106
2122
  }
2107
- function Kt({ value: t, label: n, state: r, description: i, icon: a, trend: o, trendSentiment: s = "higher-is-better", centered: c = !1, sparklineData: l, sparklineColor: u, className: d, ...f }) {
2108
- let { ref: p, width: m, height: h } = Pt();
2109
- if (r === "loading") return /* @__PURE__ */ C(Gt, {
2123
+ function qt({ value: t, label: n, state: r, description: i, icon: a, trend: o, trendSentiment: s = "higher-is-better", centered: c = !1, sparklineData: l, sparklineColor: u, className: d, ...f }) {
2124
+ let { ref: p, width: m, height: h } = Ft();
2125
+ if (r === "loading") return /* @__PURE__ */ C(Kt, {
2110
2126
  className: d,
2111
2127
  ...f
2112
2128
  });
2113
- let g = r === "empty" ? "—" : t, _ = r === "empty" ? void 0 : o, v = r === "empty" ? void 0 : l, y = _ ? It(_.direction, s) : void 0, b = !u && y ? Ft[y] : void 0, x = u ?? (y ? void 0 : "var(--chart-1)"), S = v != null && v.length >= 2 && h >= Lt && !c, T = c || !S, E = Bt(h), D = Vt(h), O = Ht(h), k = n && h > 50, A = !!(_ && y && (S || h > 40));
2129
+ let g = r === "empty" ? "—" : t, _ = r === "empty" ? void 0 : o, v = r === "empty" ? void 0 : l, y = _ ? Lt(_.direction, s) : void 0, b = !u && y ? It[y] : void 0, x = u ?? (y ? void 0 : "var(--chart-1)"), S = v != null && v.length >= 2 && h >= Rt && !c, T = c || !S, E = Vt(h), D = Ht(h), O = Ut(h), k = n && h > 50, A = !!(_ && y && (S || h > 40));
2114
2130
  if (T) {
2115
- let t = Rt(m, h), r = zt(t);
2131
+ let t = zt(m, h), r = Bt(t);
2116
2132
  return /* @__PURE__ */ w("div", {
2117
2133
  ref: p,
2118
2134
  className: e("flex h-full flex-col items-center justify-center gap-1 text-center", d),
@@ -2128,7 +2144,7 @@ function Kt({ value: t, label: n, state: r, description: i, icon: a, trend: o, t
2128
2144
  style: { fontSize: r },
2129
2145
  children: n
2130
2146
  }),
2131
- A && _ && y && /* @__PURE__ */ C(Wt, {
2147
+ A && _ && y && /* @__PURE__ */ C(Gt, {
2132
2148
  trend: _,
2133
2149
  sentiment: y,
2134
2150
  trendClass: O
@@ -2152,7 +2168,7 @@ function Kt({ value: t, label: n, state: r, description: i, icon: a, trend: o, t
2152
2168
  }),
2153
2169
  A && _ && y && /* @__PURE__ */ w("span", {
2154
2170
  className: "flex shrink-0 items-center gap-1",
2155
- children: [/* @__PURE__ */ C(Wt, {
2171
+ children: [/* @__PURE__ */ C(Gt, {
2156
2172
  trend: _,
2157
2173
  sentiment: y,
2158
2174
  trendClass: O
@@ -2172,7 +2188,7 @@ function Kt({ value: t, label: n, state: r, description: i, icon: a, trend: o, t
2172
2188
  ]
2173
2189
  }), /* @__PURE__ */ C("div", {
2174
2190
  className: "min-h-0 flex-1 pt-1",
2175
- children: /* @__PURE__ */ C(Ut, {
2191
+ children: /* @__PURE__ */ C(Wt, {
2176
2192
  data: v,
2177
2193
  color: x,
2178
2194
  colorClass: b
@@ -2182,49 +2198,49 @@ function Kt({ value: t, label: n, state: r, description: i, icon: a, trend: o, t
2182
2198
  }
2183
2199
  //#endregion
2184
2200
  //#region src/charts/MetricGroup/MetricGroup.tsx
2185
- function qt(e) {
2201
+ function Jt(e) {
2186
2202
  return "category" in e && "metrics" in e;
2187
2203
  }
2188
- var Jt = {
2204
+ var Yt = {
2189
2205
  positive: "text-success",
2190
2206
  negative: "text-destructive",
2191
2207
  neutral: "text-muted-foreground"
2192
2208
  };
2193
- function Yt(e) {
2209
+ function Xt(e) {
2194
2210
  let t = 0;
2195
- for (let n of e) t += qt(n) ? n.metrics.length : 1;
2211
+ for (let n of e) t += Jt(n) ? n.metrics.length : 1;
2196
2212
  return t;
2197
2213
  }
2198
- function Xt(e) {
2199
- return qt(e) ? e.metrics.length : 1;
2214
+ function Zt(e) {
2215
+ return Jt(e) ? e.metrics.length : 1;
2200
2216
  }
2201
- var Zt = [
2217
+ var Qt = [
2202
2218
  "xs",
2203
2219
  "sm",
2204
2220
  "md",
2205
2221
  "lg"
2206
2222
  ];
2207
- function Qt(e, t, n) {
2223
+ function $t(e, t, n) {
2208
2224
  let r = e / Math.max(n, 1), i = r < 40 ? "xs" : r < 70 ? "sm" : r < 110 ? "md" : "lg", a = t < 25 ? "xs" : t < 40 ? "sm" : t < 60 ? "md" : "lg";
2209
- return Zt[Math.min(Zt.indexOf(i), Zt.indexOf(a))];
2225
+ return Qt[Math.min(Qt.indexOf(i), Qt.indexOf(a))];
2210
2226
  }
2211
- var $t = {
2227
+ var en = {
2212
2228
  xs: 40,
2213
2229
  sm: 55,
2214
2230
  md: 75,
2215
2231
  lg: 100
2216
- }, en = 40, tn = 80;
2217
- function nn(e, t, n) {
2218
- if (e < tn) return 0;
2219
- let r = $t[n], i = 0, a = 0;
2232
+ }, tn = 40, nn = 80;
2233
+ function rn(e, t, n) {
2234
+ if (e < nn) return 0;
2235
+ let r = en[n], i = 0, a = 0;
2220
2236
  for (let n = 0; n < t.length; n++) {
2221
- let o = r * Xt(t[n]), s = t.length - (n + 1) > 0 ? en : 0;
2237
+ let o = r * Zt(t[n]), s = t.length - (n + 1) > 0 ? tn : 0;
2222
2238
  if (a + o + s > e) break;
2223
2239
  a += o, i++;
2224
2240
  }
2225
2241
  return i;
2226
2242
  }
2227
- var rn = {
2243
+ var an = {
2228
2244
  value: {
2229
2245
  xs: "text-xs font-bold leading-tight",
2230
2246
  sm: "text-base font-semibold",
@@ -2262,32 +2278,32 @@ var rn = {
2262
2278
  lg: "px-5"
2263
2279
  }
2264
2280
  };
2265
- function an({ trend: t, sentiment: n, size: r }) {
2266
- let i = t.direction === "down" ? yt : bt;
2281
+ function on({ trend: t, sentiment: n, size: r }) {
2282
+ let i = t.direction === "down" ? bt : xt;
2267
2283
  return /* @__PURE__ */ w("span", {
2268
- className: e("inline-flex items-center gap-px font-medium", rn.trend[r], Jt[n]),
2284
+ className: e("inline-flex items-center gap-px font-medium", an.trend[r], Yt[n]),
2269
2285
  children: [
2270
- t.direction !== "neutral" && /* @__PURE__ */ C(i, { className: rn.trendIcon[r] }),
2286
+ t.direction !== "neutral" && /* @__PURE__ */ C(i, { className: an.trendIcon[r] }),
2271
2287
  t.value,
2272
2288
  "%"
2273
2289
  ]
2274
2290
  });
2275
2291
  }
2276
- function on({ item: t, size: n, labelVisible: r }) {
2277
- let i = t.trend ? It(t.trend.direction, t.trendSentiment ?? "higher-is-better") : void 0, a = r && t.label, o = /* @__PURE__ */ w("div", {
2292
+ function sn({ item: t, size: n, labelVisible: r }) {
2293
+ let i = t.trend ? Lt(t.trend.direction, t.trendSentiment ?? "higher-is-better") : void 0, a = r && t.label, o = /* @__PURE__ */ w("div", {
2278
2294
  className: "flex min-w-0 flex-col items-center text-center",
2279
2295
  children: [/* @__PURE__ */ w("div", {
2280
2296
  className: "flex items-baseline gap-0.5",
2281
2297
  children: [/* @__PURE__ */ C("span", {
2282
- className: e("truncate tracking-tight text-foreground", rn.value[n]),
2298
+ className: e("truncate tracking-tight text-foreground", an.value[n]),
2283
2299
  children: t.value
2284
- }), t.trend && i && /* @__PURE__ */ C(an, {
2300
+ }), t.trend && i && /* @__PURE__ */ C(on, {
2285
2301
  trend: t.trend,
2286
2302
  sentiment: i,
2287
2303
  size: n
2288
2304
  })]
2289
2305
  }), a && /* @__PURE__ */ C("span", {
2290
- className: e("max-w-full truncate text-muted-foreground", rn.label[n]),
2306
+ className: e("max-w-full truncate text-muted-foreground", an.label[n]),
2291
2307
  children: t.label
2292
2308
  })]
2293
2309
  });
@@ -2302,7 +2318,7 @@ function on({ item: t, size: n, labelVisible: r }) {
2302
2318
  children: o
2303
2319
  });
2304
2320
  }
2305
- function sn({ count: t, size: n }) {
2321
+ function cn({ count: t, size: n }) {
2306
2322
  let r = `${t} more ${t === 1 ? "metric" : "metrics"} hidden`;
2307
2323
  return /* @__PURE__ */ w(u, { children: [/* @__PURE__ */ C(p, {
2308
2324
  asChild: !0,
@@ -2314,7 +2330,7 @@ function sn({ count: t, size: n }) {
2314
2330
  })
2315
2331
  }), /* @__PURE__ */ C(d, { children: r })] });
2316
2332
  }
2317
- function cn({ count: t, className: n, ...r }) {
2333
+ function ln({ count: t, className: n, ...r }) {
2318
2334
  return /* @__PURE__ */ C("div", {
2319
2335
  role: "img",
2320
2336
  "aria-busy": "true",
@@ -2327,14 +2343,14 @@ function cn({ count: t, className: n, ...r }) {
2327
2343
  }, t))
2328
2344
  });
2329
2345
  }
2330
- function ln({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
2331
- let { ref: o, width: s, height: c } = Pt();
2332
- if (n === "loading") return /* @__PURE__ */ C(cn, {
2333
- count: t.length > 0 ? Yt(t) : r ?? 5,
2346
+ function un({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
2347
+ let { ref: o, width: s, height: c } = Ft();
2348
+ if (n === "loading") return /* @__PURE__ */ C(ln, {
2349
+ count: t.length > 0 ? Xt(t) : r ?? 5,
2334
2350
  className: i,
2335
2351
  ...a
2336
2352
  });
2337
- let l = n === "empty" ? t.map((e) => qt(e) ? {
2353
+ let l = n === "empty" ? t.map((e) => Jt(e) ? {
2338
2354
  ...e,
2339
2355
  metrics: e.metrics.map((e) => ({
2340
2356
  ...e,
@@ -2345,7 +2361,7 @@ function ln({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
2345
2361
  ...e,
2346
2362
  value: "—",
2347
2363
  trend: void 0
2348
- }) : t, u = Yt(l), d = s > 0 ? Qt(s, c, u) : "md", p = c >= 50, m = s > 0 ? nn(s, l, d) : l.length, h = l.slice(0, m), g = l.length - m, _ = m === 0;
2364
+ }) : t, u = Xt(l), d = s > 0 ? $t(s, c, u) : "md", p = c >= 50, m = s > 0 ? rn(s, l, d) : l.length, h = l.slice(0, m), g = l.length - m, _ = m === 0;
2349
2365
  return /* @__PURE__ */ C(f, {
2350
2366
  delayDuration: 300,
2351
2367
  children: /* @__PURE__ */ w("div", {
@@ -2355,21 +2371,21 @@ function ln({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
2355
2371
  className: e("flex h-full items-center overflow-hidden", _ ? "justify-center" : "divide-x divide-border/30 dark:divide-white/[0.06]", i),
2356
2372
  ...a,
2357
2373
  children: [s > 0 && !_ && h.map((t) => {
2358
- let n = qt(t) ? t.category : `${t.value}-${t.label ?? ""}`;
2374
+ let n = Jt(t) ? t.category : `${t.value}-${t.label ?? ""}`;
2359
2375
  return /* @__PURE__ */ C("div", {
2360
- style: { flex: Xt(t) },
2361
- className: e("flex min-w-0 flex-col items-center justify-center overflow-x-hidden", rn.cellPadding[d]),
2362
- children: qt(t) ? /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("span", {
2363
- className: e("mb-0.5 font-medium tracking-wider text-muted-foreground uppercase", rn.category[d]),
2376
+ style: { flex: Zt(t) },
2377
+ className: e("flex min-w-0 flex-col items-center justify-center overflow-x-hidden", an.cellPadding[d]),
2378
+ children: Jt(t) ? /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("span", {
2379
+ className: e("mb-0.5 font-medium tracking-wider text-muted-foreground uppercase", an.category[d]),
2364
2380
  children: t.category
2365
2381
  }), /* @__PURE__ */ C("div", {
2366
2382
  className: "flex w-full min-w-0 items-end justify-evenly",
2367
- children: t.metrics.map((e) => /* @__PURE__ */ C(on, {
2383
+ children: t.metrics.map((e) => /* @__PURE__ */ C(sn, {
2368
2384
  item: e,
2369
2385
  size: d,
2370
2386
  labelVisible: p
2371
2387
  }, `${e.value}-${e.label ?? ""}`))
2372
- })] }) : /* @__PURE__ */ C(on, {
2388
+ })] }) : /* @__PURE__ */ C(sn, {
2373
2389
  item: t,
2374
2390
  size: d,
2375
2391
  labelVisible: p
@@ -2377,7 +2393,7 @@ function ln({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
2377
2393
  }, n);
2378
2394
  }), s > 0 && g > 0 && /* @__PURE__ */ C("div", {
2379
2395
  className: e("flex shrink-0 items-center", _ ? "" : "px-2"),
2380
- children: /* @__PURE__ */ C(sn, {
2396
+ children: /* @__PURE__ */ C(cn, {
2381
2397
  count: g,
2382
2398
  size: d
2383
2399
  })
@@ -2387,8 +2403,8 @@ function ln({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
2387
2403
  }
2388
2404
  //#endregion
2389
2405
  //#region src/charts/LineChart/LineChart.tsx
2390
- function un({ data: e, dataKeys: t, state: n, curveType: r = "monotone", showDots: i = !1, showGrid: a = !0, showCategoryAxis: o = !0, showValueAxis: s = !0, connectNulls: c = !1, valueTickFormatter: l, categoryTickFormatter: u, animated: d = !0, onPointHover: f, onPointLeave: p, ariaLabel: m, margin: h, className: g, children: _, ...v }) {
2391
- let { config: y } = z(), b = t ?? et(e, Object.keys(y));
2406
+ function dn({ data: e, dataKeys: t, state: n, curveType: r = "monotone", showDots: i = !1, showGrid: a = !0, showCategoryAxis: o = !0, showValueAxis: s = !0, connectNulls: c = !1, valueTickFormatter: l, categoryTickFormatter: u, animated: d = !0, onPointHover: f, onPointLeave: p, ariaLabel: m, margin: h, className: g, children: _, ...v }) {
2407
+ let { config: y } = z(), b = t ?? tt(e, Object.keys(y));
2392
2408
  return n === "loading" ? /* @__PURE__ */ C(Me, {
2393
2409
  ariaLabel: m,
2394
2410
  className: g,
@@ -2408,7 +2424,7 @@ function un({ data: e, dataKeys: t, state: n, curveType: r = "monotone", showDot
2408
2424
  ...v,
2409
2425
  children: [
2410
2426
  a && /* @__PURE__ */ C(J, {}),
2411
- b.map((e) => /* @__PURE__ */ C(Ye, {
2427
+ b.map((e) => /* @__PURE__ */ C(Xe, {
2412
2428
  dataKey: e,
2413
2429
  curveType: r,
2414
2430
  showDots: i,
@@ -2422,8 +2438,8 @@ function un({ data: e, dataKeys: t, state: n, curveType: r = "monotone", showDot
2422
2438
  }
2423
2439
  //#endregion
2424
2440
  //#region src/charts/AreaChart/AreaChart.tsx
2425
- function dn({ data: e, dataKeys: t, state: n, curveType: r = "monotone", stacked: i = !0, gradient: a = !0, fillOpacity: o = .2, showGrid: s = !0, showCategoryAxis: c = !0, showValueAxis: l = !0, connectNulls: u = !1, animated: d = !0, ariaLabel: f, margin: p, valueTickFormatter: m, categoryTickFormatter: h, onPointHover: g, onPointLeave: _, className: v, children: y, ...b }) {
2426
- let { config: x } = z(), S = t ?? et(e, Object.keys(x)), T = i ? "default" : void 0;
2441
+ function fn({ data: e, dataKeys: t, state: n, curveType: r = "monotone", stacked: i = !0, gradient: a = !0, fillOpacity: o = .2, showGrid: s = !0, showCategoryAxis: c = !0, showValueAxis: l = !0, connectNulls: u = !1, animated: d = !0, ariaLabel: f, margin: p, valueTickFormatter: m, categoryTickFormatter: h, onPointHover: g, onPointLeave: _, className: v, children: y, ...b }) {
2442
+ let { config: x } = z(), S = t ?? tt(e, Object.keys(x)), T = i ? "default" : void 0;
2427
2443
  return n === "loading" ? /* @__PURE__ */ C(Re, {
2428
2444
  ariaLabel: f,
2429
2445
  className: v,
@@ -2443,7 +2459,7 @@ function dn({ data: e, dataKeys: t, state: n, curveType: r = "monotone", stacked
2443
2459
  ...b,
2444
2460
  children: [
2445
2461
  s && /* @__PURE__ */ C(J, {}),
2446
- S.map((e) => /* @__PURE__ */ C($e, {
2462
+ S.map((e) => /* @__PURE__ */ C(et, {
2447
2463
  dataKey: e,
2448
2464
  stackId: T,
2449
2465
  curveType: r,
@@ -2458,4 +2474,4 @@ function dn({ data: e, dataKeys: t, state: n, curveType: r = "monotone", stacked
2458
2474
  });
2459
2475
  }
2460
2476
  //#endregion
2461
- export { dn as AreaChart, $e as AreaSeries, nt as BarChart, Ze as BarSeries, I as CHART_THEMES, Ie as CartesianChart, L as ChartCard, H as ChartContainer, Ke as ChartLegend, Ge as ChartLegendContent, ie as ChartStyle, Ue as ChartTooltip, He as ChartTooltipContent, re as DEFAULT_MARGIN, st as DoughnutChart, J as Grid, un as LineChart, Ye as LineSeries, Kt as Metric, ln as MetricGroup, fe as ReferenceLine, Ce as XAxis, we as YAxis, e as cn, It as resolveSentiment, z as useChartConfig };
2477
+ export { fn as AreaChart, et as AreaSeries, rt as BarChart, Qe as BarSeries, I as CHART_THEMES, Ie as CartesianChart, L as ChartCard, H as ChartContainer, qe as ChartLegend, Ke as ChartLegendContent, ie as ChartStyle, We as ChartTooltip, Ue as ChartTooltipContent, re as DEFAULT_MARGIN, ct as DoughnutChart, J as Grid, dn as LineChart, Xe as LineSeries, qt as Metric, un as MetricGroup, fe as ReferenceLine, Ce as XAxis, we as YAxis, e as cn, Lt as resolveSentiment, z as useChartConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravitee/graphene-charts",
3
- "version": "2.24.0",
3
+ "version": "2.25.0-fix-type-array.9d9334f",
4
4
  "type": "module",
5
5
  "description": "Theme-compliant data visualization components for the Graphene design system. Built on D3, styled with Tailwind, and designed to inherit the Graphene token system out of the box.",
6
6
  "keywords": [
@@ -58,7 +58,7 @@
58
58
  "d3-shape": "3.2.0"
59
59
  },
60
60
  "peerDependencies": {
61
- "@gravitee/graphene-core": "^1.0.0-alpha.31",
61
+ "@gravitee/graphene-core": "2.25.0-fix-type-array.9d9334f",
62
62
  "react": "^19.0.0",
63
63
  "react-dom": "^19.0.0",
64
64
  "react-grid-layout": "^2.0.0",