impaktapps-design 0.2.994-offset.3 → 0.2.994-offset.5

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.
@@ -10415,7 +10415,7 @@ const BarGraph = ({
10415
10415
  margin: {
10416
10416
  top: ((_e2 = (_d2 = (_c2 = barData == null ? void 0 : barData.style) == null ? void 0 : _c2.labelStyle) == null ? void 0 : _d2.margin) == null ? void 0 : _e2.top) || 10,
10417
10417
  right: ((_h = (_g = (_f = barData == null ? void 0 : barData.style) == null ? void 0 : _f.labelStyle) == null ? void 0 : _g.margin) == null ? void 0 : _h.right) || 10,
10418
- bottom: barData.main.bottomAxisAngle ? ((_k = (_j = (_i = barData == null ? void 0 : barData.style) == null ? void 0 : _i.labelStyle) == null ? void 0 : _j.margin) == null ? void 0 : _k.bottom) + 145 : ((_n = (_m = (_l = barData == null ? void 0 : barData.style) == null ? void 0 : _l.labelStyle) == null ? void 0 : _m.margin) == null ? void 0 : _n.bottom) || 40,
10418
+ bottom: barData.main.bottomAxisAngle ? ((_k = (_j = (_i = barData == null ? void 0 : barData.style) == null ? void 0 : _i.labelStyle) == null ? void 0 : _j.margin) == null ? void 0 : _k.bottom) + 45 : ((_n = (_m = (_l = barData == null ? void 0 : barData.style) == null ? void 0 : _l.labelStyle) == null ? void 0 : _m.margin) == null ? void 0 : _n.bottom) || 40,
10419
10419
  left: ((_q = (_p = (_o = barData == null ? void 0 : barData.style) == null ? void 0 : _o.labelStyle) == null ? void 0 : _p.margin) == null ? void 0 : _q.left) || 60
10420
10420
  },
10421
10421
  value: barData
@@ -20726,11 +20726,10 @@ const DrawGraph = ({
20726
20726
  width: width2,
20727
20727
  height: height2,
20728
20728
  events = false,
20729
+ margin: margin2 = defaultMargin,
20729
20730
  value
20730
20731
  }) => {
20731
20732
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
20732
- const margin2 = defaultMargin;
20733
- useTooltip();
20734
20733
  const data = (_a = value == null ? void 0 : value.main) == null ? void 0 : _a.data;
20735
20734
  const arr = Object.keys(data[0]).filter((d2) => d2 !== value.main.xAxisValue);
20736
20735
  const xValues = data.map((d2) => d2[value.main.xAxisValue]);
@@ -20839,9 +20838,9 @@ const DrawGraph = ({
20839
20838
  showVerticalCrosshair: true,
20840
20839
  showSeriesGlyphs: true,
20841
20840
  renderTooltip: ({
20842
- tooltipData: tooltipData2
20841
+ tooltipData
20843
20842
  }) => {
20844
- return Object.keys(tooltipData2.datumByKey).map((d2, i) => {
20843
+ return Object.keys(tooltipData.datumByKey).map((d2, i) => {
20845
20844
  var _a2, _b2;
20846
20845
  return /* @__PURE__ */ jsxs("div", {
20847
20846
  style: {
@@ -20872,7 +20871,7 @@ const DrawGraph = ({
20872
20871
  fontWeight: "normal",
20873
20872
  color: "black"
20874
20873
  },
20875
- children: tooltipData2.datumByKey[d2].datum[d2]
20874
+ children: tooltipData.datumByKey[d2].datum[d2]
20876
20875
  })]
20877
20876
  });
20878
20877
  });
@@ -20894,11 +20893,17 @@ const LineGraph = ({
20894
20893
  children: (_d = lineData == null ? void 0 : lineData.main) == null ? void 0 : _d.header
20895
20894
  }), /* @__PURE__ */ jsx(ParentSize$1, {
20896
20895
  children: (parent) => {
20897
- var _a2, _b2;
20896
+ var _a2, _b2, _c2, _d2, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
20898
20897
  return /* @__PURE__ */ jsx(DrawGraph, {
20899
20898
  theme,
20900
20899
  width: parent.width || 800,
20901
20900
  height: parseInt(((_b2 = (_a2 = lineData == null ? void 0 : lineData.style) == null ? void 0 : _a2.containerStyle) == null ? void 0 : _b2.height) || 400),
20901
+ margin: {
20902
+ top: ((_e = (_d2 = (_c2 = lineData == null ? void 0 : lineData.style) == null ? void 0 : _c2.labelStyle) == null ? void 0 : _d2.margin) == null ? void 0 : _e.top) || 10,
20903
+ right: ((_h = (_g = (_f = lineData == null ? void 0 : lineData.style) == null ? void 0 : _f.labelStyle) == null ? void 0 : _g.margin) == null ? void 0 : _h.right) || 10,
20904
+ bottom: lineData.main.bottomAxisAngle ? ((_k = (_j = (_i = lineData == null ? void 0 : lineData.style) == null ? void 0 : _i.labelStyle) == null ? void 0 : _j.margin) == null ? void 0 : _k.bottom) + 45 : ((_n = (_m = (_l = lineData == null ? void 0 : lineData.style) == null ? void 0 : _l.labelStyle) == null ? void 0 : _m.margin) == null ? void 0 : _n.bottom) || 40,
20905
+ left: ((_q = (_p = (_o = lineData == null ? void 0 : lineData.style) == null ? void 0 : _o.labelStyle) == null ? void 0 : _p.margin) == null ? void 0 : _q.left) || 60
20906
+ },
20902
20907
  value: lineData
20903
20908
  });
20904
20909
  }
@@ -21120,7 +21125,7 @@ const HorizontalBarGraph = ({
21120
21125
  margin: {
21121
21126
  top: ((_e = (_d = (_c = barData == null ? void 0 : barData.style) == null ? void 0 : _c.labelStyle) == null ? void 0 : _d.margin) == null ? void 0 : _e.top) || 10,
21122
21127
  right: ((_h = (_g = (_f = barData == null ? void 0 : barData.style) == null ? void 0 : _f.labelStyle) == null ? void 0 : _g.margin) == null ? void 0 : _h.right) || 40,
21123
- bottom: barData.main.bottomAxisAngle ? ((_k = (_j = (_i = barData == null ? void 0 : barData.style) == null ? void 0 : _i.labelStyle) == null ? void 0 : _j.margin) == null ? void 0 : _k.bottom) + 145 : ((_n = (_m = (_l = barData == null ? void 0 : barData.style) == null ? void 0 : _l.labelStyle) == null ? void 0 : _m.margin) == null ? void 0 : _n.bottom) || 40,
21128
+ bottom: barData.main.bottomAxisAngle ? ((_k = (_j = (_i = barData == null ? void 0 : barData.style) == null ? void 0 : _i.labelStyle) == null ? void 0 : _j.margin) == null ? void 0 : _k.bottom) + 45 : ((_n = (_m = (_l = barData == null ? void 0 : barData.style) == null ? void 0 : _l.labelStyle) == null ? void 0 : _m.margin) == null ? void 0 : _n.bottom) || 40,
21124
21129
  left: ((_q = (_p = (_o = barData == null ? void 0 : barData.style) == null ? void 0 : _o.labelStyle) == null ? void 0 : _p.margin) == null ? void 0 : _q.left) || 60
21125
21130
  },
21126
21131
  barValue: barData