impaktapps-design 0.2.58-alpha.2 → 0.2.58-alpha.3

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.
@@ -10873,26 +10873,26 @@ function Legend({
10873
10873
  colorRange,
10874
10874
  dataKeyArray
10875
10875
  }) {
10876
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
10876
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
10877
10877
  const legendGlyphSize = ((_b = (_a = value == null ? void 0 : value.main) == null ? void 0 : _a.legend) == null ? void 0 : _b.colorRectWidth) || 15;
10878
- dataKeyArray.map((item) => {
10878
+ const xValues = (_c = value == null ? void 0 : value.main) == null ? void 0 : _c.data.map((item) => {
10879
10879
  return item.x;
10880
10880
  });
10881
10881
  const ordinalColorScale = createOrdinalScale$1({
10882
- domain: ["Sss", "ddd", "ccc"],
10883
- range: colorRange || ((_d = (_c = value == null ? void 0 : value.style) == null ? void 0 : _c.pieStyle) == null ? void 0 : _d.colorRange)
10882
+ domain: dataKeyArray || ((_d = value == null ? void 0 : value.main) == null ? void 0 : _d.tooltipDataKey),
10883
+ range: colorRange || ((_f = (_e = value == null ? void 0 : value.style) == null ? void 0 : _e.pieStyle) == null ? void 0 : _f.colorRange)
10884
10884
  });
10885
10885
  return /* @__PURE__ */ jsxs("div", {
10886
10886
  className: "legend",
10887
10887
  style: {
10888
10888
  paddingLeft: "40px",
10889
10889
  paddingRight: "40px",
10890
- ...(_f = (_e = value == null ? void 0 : value.style) == null ? void 0 : _e.legendStyle) == null ? void 0 : _f.legend
10890
+ ...(_h = (_g = value == null ? void 0 : value.style) == null ? void 0 : _g.legendStyle) == null ? void 0 : _h.legend
10891
10891
  },
10892
10892
  children: [/* @__PURE__ */ jsx("div", {
10893
10893
  className: "title",
10894
- style: (_h = (_g = value == null ? void 0 : value.style) == null ? void 0 : _g.legendStyle) == null ? void 0 : _h.legendTitle,
10895
- children: (_j = (_i = value == null ? void 0 : value.main) == null ? void 0 : _i.legend) == null ? void 0 : _j.legendTitle
10894
+ style: (_j = (_i = value == null ? void 0 : value.style) == null ? void 0 : _i.legendStyle) == null ? void 0 : _j.legendTitle,
10895
+ children: (_l = (_k = value == null ? void 0 : value.main) == null ? void 0 : _k.legend) == null ? void 0 : _l.legendTitle
10896
10896
  }), /* @__PURE__ */ jsx(Ordinal, {
10897
10897
  scale: ordinalColorScale,
10898
10898
  labelFormat: (label) => `${label.toUpperCase()}`,
@@ -10903,7 +10903,7 @@ function Legend({
10903
10903
  display: "flex",
10904
10904
  flexDirection: ((_b2 = (_a2 = value == null ? void 0 : value.main) == null ? void 0 : _a2.legend) == null ? void 0 : _b2.direction) || "row"
10905
10905
  },
10906
- children: labels.map((label, i) => {
10906
+ children: xValues.map((label, i) => {
10907
10907
  var _a3, _b3;
10908
10908
  return /* @__PURE__ */ jsxs(LegendItem, {
10909
10909
  margin: "0 5px",