impaktapps-design 0.2.75 → 0.2.76

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.
@@ -10418,6 +10418,7 @@ function useTooltipInPortal(_temp) {
10418
10418
  TooltipInPortal
10419
10419
  };
10420
10420
  }
10421
+ var style$3 = "";
10421
10422
  const BottomAxis = ({
10422
10423
  data,
10423
10424
  yMax,
@@ -10427,32 +10428,37 @@ const BottomAxis = ({
10427
10428
  left: left2
10428
10429
  }) => {
10429
10430
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
10430
- return /* @__PURE__ */ jsx(AxisBottom$2, {
10431
- numTicks: data == null ? void 0 : data.length,
10432
- top: yMax,
10433
- left: left2,
10434
- hideTicks: (_a = value.main) == null ? void 0 : _a.hideTicks,
10435
- hideAxisLine: (_b = value.main) == null ? void 0 : _b.hideBottomAxisLine,
10436
- strokeWidth: (_d = (_c = value.style) == null ? void 0 : _c.labelStyle) == null ? void 0 : _d.bottomAxisWidth,
10437
- scale: xScale,
10438
- stroke: (_f = (_e = value.style) == null ? void 0 : _e.labelStyle) == null ? void 0 : _f.tickColor,
10439
- labelOffset: (_h = (_g = value.style) == null ? void 0 : _g.labelStyle) == null ? void 0 : _h.bottomLabelOffset,
10440
- label: (_i = value.main) == null ? void 0 : _i.bottomLabel,
10441
- labelProps: {
10442
- fill: (_k = (_j = value.style) == null ? void 0 : _j.labelStyle) == null ? void 0 : _k.labelColor,
10443
- fontSize: (_m = (_l = value.style) == null ? void 0 : _l.labelStyle) == null ? void 0 : _m.fontSize,
10444
- fontWeight: (_o = (_n = value.style) == null ? void 0 : _n.labelStyle) == null ? void 0 : _o.fontWeight,
10445
- fontFamily: (_q = (_p = value.style) == null ? void 0 : _p.labelStyle) == null ? void 0 : _q.fontWeight
10446
- },
10447
- tickStroke: (_s = (_r = value.style) == null ? void 0 : _r.labelStyle) == null ? void 0 : _s.tickColor,
10448
- tickLabelProps: () => {
10449
- var _a2, _b2, _c2, _d2;
10450
- return {
10451
- fill: (_b2 = (_a2 = value.style) == null ? void 0 : _a2.labelStyle) == null ? void 0 : _b2.tickLabelColor,
10452
- fontSize: ((_d2 = (_c2 = value.style) == null ? void 0 : _c2.labelStyle) == null ? void 0 : _d2.tickFontSize) || 11,
10453
- textAnchor: "middle"
10454
- };
10455
- }
10431
+ return /* @__PURE__ */ jsx(Fragment, {
10432
+ children: /* @__PURE__ */ jsx(AxisBottom$2, {
10433
+ numTicks: data == null ? void 0 : data.length,
10434
+ top: yMax,
10435
+ left: left2,
10436
+ labelClassName: "axisBottom",
10437
+ tickClassName: "axisBottom",
10438
+ axisClassName: "axisBottom",
10439
+ hideTicks: (_a = value.main) == null ? void 0 : _a.hideTicks,
10440
+ hideAxisLine: (_b = value.main) == null ? void 0 : _b.hideBottomAxisLine,
10441
+ strokeWidth: (_d = (_c = value.style) == null ? void 0 : _c.labelStyle) == null ? void 0 : _d.bottomAxisWidth,
10442
+ scale: xScale,
10443
+ stroke: (_f = (_e = value.style) == null ? void 0 : _e.labelStyle) == null ? void 0 : _f.tickColor,
10444
+ labelOffset: (_h = (_g = value.style) == null ? void 0 : _g.labelStyle) == null ? void 0 : _h.bottomLabelOffset,
10445
+ label: (_i = value.main) == null ? void 0 : _i.bottomLabel,
10446
+ labelProps: {
10447
+ fill: (_k = (_j = value.style) == null ? void 0 : _j.labelStyle) == null ? void 0 : _k.labelColor,
10448
+ fontSize: (_m = (_l = value.style) == null ? void 0 : _l.labelStyle) == null ? void 0 : _m.fontSize,
10449
+ fontWeight: (_o = (_n = value.style) == null ? void 0 : _n.labelStyle) == null ? void 0 : _o.fontWeight,
10450
+ fontFamily: (_q = (_p = value.style) == null ? void 0 : _p.labelStyle) == null ? void 0 : _q.fontWeight
10451
+ },
10452
+ tickStroke: (_s = (_r = value.style) == null ? void 0 : _r.labelStyle) == null ? void 0 : _s.tickColor,
10453
+ tickLabelProps: () => {
10454
+ var _a2, _b2, _c2, _d2;
10455
+ return {
10456
+ fill: (_b2 = (_a2 = value.style) == null ? void 0 : _a2.labelStyle) == null ? void 0 : _b2.tickLabelColor,
10457
+ fontSize: ((_d2 = (_c2 = value.style) == null ? void 0 : _c2.labelStyle) == null ? void 0 : _d2.tickFontSize) || 11,
10458
+ textAnchor: "middle"
10459
+ };
10460
+ }
10461
+ })
10456
10462
  });
10457
10463
  };
10458
10464
  const ToolTip = ({
@@ -10905,8 +10911,6 @@ function Legend({
10905
10911
  return /* @__PURE__ */ jsxs(LegendItem, {
10906
10912
  margin: "0 5px",
10907
10913
  onClick: (events) => {
10908
- if (events)
10909
- alert(`clicked: ${JSON.stringify(label)}`);
10910
10914
  },
10911
10915
  children: [/* @__PURE__ */ jsx("svg", {
10912
10916
  width: legendGlyphSize,
@@ -11392,7 +11396,7 @@ const Product1 = [
11392
11396
  { x: "g", y: 50 }
11393
11397
  ];
11394
11398
  const finalDataProvider = (type2, value, theme) => {
11395
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t5, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F;
11399
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t5, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J;
11396
11400
  switch (type2) {
11397
11401
  case "BarGraph":
11398
11402
  case "StackBarGraph":
@@ -11537,7 +11541,7 @@ const finalDataProvider = (type2, value, theme) => {
11537
11541
  }
11538
11542
  },
11539
11543
  pieStyle: {
11540
- colorRange: ["#3f51b5", "rgba(200,0,31,0.9)", "rgba(25,200,205,0.6)"],
11544
+ colorRange: ["#3f51b5", "rgba(200,0,31,0.9)", "rgba(25,200,205,0.6)", "#3f84b5", "#b5993f", "#fc6f6f"],
11541
11545
  outerRadius: 120,
11542
11546
  innerRadius: 60,
11543
11547
  cornerRadius: 2,
@@ -11557,6 +11561,7 @@ const finalDataProvider = (type2, value, theme) => {
11557
11561
  numHidden: false,
11558
11562
  tooltipDataKey: ["MAMA New Project", "Second", "Third"],
11559
11563
  axisLeft: true,
11564
+ legendAvailable: true,
11560
11565
  axisBottom: true,
11561
11566
  hideLeftAxisLine: false,
11562
11567
  hideBottomAxisLine: false,
@@ -11566,14 +11571,13 @@ const finalDataProvider = (type2, value, theme) => {
11566
11571
  legendTitle: "Our Assests",
11567
11572
  direction: "row",
11568
11573
  align: "right",
11569
- colorRectWidth: 20,
11570
11574
  ...(_t5 = value == null ? void 0 : value.main) == null ? void 0 : _t5.legend
11571
11575
  }
11572
11576
  },
11573
11577
  style: {
11574
11578
  containerStyle: {
11575
11579
  background: theme.palette.secondary.main,
11576
- width: "90%",
11580
+ width: "100%",
11577
11581
  height: "300",
11578
11582
  borderRadius: "20px",
11579
11583
  padding: "10px 0 2px 0",
@@ -11590,33 +11594,54 @@ const finalDataProvider = (type2, value, theme) => {
11590
11594
  color: theme.palette.text.primary,
11591
11595
  ...(_v = value == null ? void 0 : value.style) == null ? void 0 : _v.headerStyle
11592
11596
  },
11597
+ legendStyle: {
11598
+ legend: {
11599
+ lineHeight: "0.9em",
11600
+ color: theme.palette.text.primary,
11601
+ fontSize: "10px",
11602
+ fontFamily: "arial",
11603
+ padding: "10px 10px",
11604
+ float: "left",
11605
+ border: "1px solid rgba(255, 255, 255, 0.3)",
11606
+ borderRadius: " 8px",
11607
+ margin: "5px 5px",
11608
+ ...(_x = (_w = value == null ? void 0 : value.style) == null ? void 0 : _w.legendStyle) == null ? void 0 : _x.legend
11609
+ },
11610
+ legendTitle: {
11611
+ fontWeight: 500,
11612
+ marginBottom: "5px",
11613
+ fontFamily: "roboto",
11614
+ fontSize: "10px",
11615
+ ...(_z = (_y = value == null ? void 0 : value.style) == null ? void 0 : _y.legendStyle) == null ? void 0 : _z.legendTitle
11616
+ }
11617
+ },
11593
11618
  labelStyle: {
11594
11619
  labelColor: theme.palette.text.primary,
11595
11620
  bottomLabelOffset: 20,
11596
11621
  leftLabelOffset: 50,
11597
11622
  leftLabelMargin: 80,
11598
- ...(_w = value == null ? void 0 : value.style) == null ? void 0 : _w.labelStyle
11623
+ ...(_A = value == null ? void 0 : value.style) == null ? void 0 : _A.labelStyle
11599
11624
  },
11600
11625
  lineStyle: {
11601
11626
  colorRange: ["#3f51b5", "rgba(200,0,31,0.9)", "rgba(25,200,205,0.6)"],
11602
11627
  lineAreaColor: "none",
11603
11628
  lineAreaOpacity: 0.2,
11604
- ...(_x = value == null ? void 0 : value.style) == null ? void 0 : _x.lineStyle
11629
+ ...(_B = value == null ? void 0 : value.style) == null ? void 0 : _B.lineStyle
11605
11630
  }
11606
11631
  }
11607
11632
  };
11608
11633
  case "HorizontalBarGraph":
11609
11634
  return {
11610
11635
  main: {
11611
- data: ((_y = value == null ? void 0 : value.main) == null ? void 0 : _y.data) || [{ y: "Anant Sharma", x: 60 }, { y: "Pankaj Chauhan", x: 60 }, { y: "satendra Raghav", x: 150 }, { y: "Vivek Pahadi", x: 80 }, { y: "Siddarth verma", x: 100 }],
11636
+ data: ((_C = value == null ? void 0 : value.main) == null ? void 0 : _C.data) || [{ y: "Anant Sharma", x: 60 }, { y: "Pankaj Chauhan", x: 60 }, { y: "satendra Raghav", x: 150 }, { y: "Vivek Pahadi", x: 80 }, { y: "Siddarth verma", x: 100 }],
11612
11637
  header: " ",
11613
11638
  bottomLabel: "Name of Employe",
11614
11639
  leftLabel: "Value",
11615
11640
  axisLeft: true,
11616
11641
  axisBottom: true,
11617
11642
  hideBottomTicks: false,
11618
- hideLeftTicks: ((_z = value == null ? void 0 : value.main) == null ? void 0 : _z.data) ? true : false,
11619
- hideLeftAxisLine: ((_A = value == null ? void 0 : value.main) == null ? void 0 : _A.data) ? true : false,
11643
+ hideLeftTicks: ((_D = value == null ? void 0 : value.main) == null ? void 0 : _D.data) ? true : false,
11644
+ hideLeftAxisLine: ((_E = value == null ? void 0 : value.main) == null ? void 0 : _E.data) ? true : false,
11620
11645
  hideBottomAxisLine: false,
11621
11646
  bottomAxisWidth: "10px",
11622
11647
  ...value.main
@@ -11628,7 +11653,7 @@ const finalDataProvider = (type2, value, theme) => {
11628
11653
  height: "300",
11629
11654
  borderRadius: "20px",
11630
11655
  padding: "10px 0 2px 0",
11631
- ...(_B = value == null ? void 0 : value.style) == null ? void 0 : _B.containerStyle
11656
+ ...(_F = value == null ? void 0 : value.style) == null ? void 0 : _F.containerStyle
11632
11657
  },
11633
11658
  headerStyle: {
11634
11659
  fontWeight: 500,
@@ -11639,12 +11664,12 @@ const finalDataProvider = (type2, value, theme) => {
11639
11664
  width: "100%",
11640
11665
  fontSize: "18px",
11641
11666
  color: theme.palette.text.primary,
11642
- ...(_C = value == null ? void 0 : value.style) == null ? void 0 : _C.headerStyle
11667
+ ...(_G = value == null ? void 0 : value.style) == null ? void 0 : _G.headerStyle
11643
11668
  },
11644
11669
  tooltipStyle: {
11645
11670
  padding: "6px",
11646
11671
  borderRadius: "2px",
11647
- ...(_D = value == null ? void 0 : value.style) == null ? void 0 : _D.tooltipStyle
11672
+ ...(_H = value == null ? void 0 : value.style) == null ? void 0 : _H.tooltipStyle
11648
11673
  },
11649
11674
  labelStyle: {
11650
11675
  margin: { top: 10, left: 110, right: 40, bottom: 40 },
@@ -11655,11 +11680,11 @@ const finalDataProvider = (type2, value, theme) => {
11655
11680
  tickColor: theme.palette.text.primary,
11656
11681
  rightAxisWidth: "0.3px",
11657
11682
  fontSize: "10px",
11658
- ...(_E = value == null ? void 0 : value.style) == null ? void 0 : _E.labelStyle
11683
+ ...(_I = value == null ? void 0 : value.style) == null ? void 0 : _I.labelStyle
11659
11684
  },
11660
11685
  barStyle: {
11661
11686
  color: "#6c5efb",
11662
- ...(_F = value == null ? void 0 : value.style) == null ? void 0 : _F.barStyle
11687
+ ...(_J = value == null ? void 0 : value.style) == null ? void 0 : _J.barStyle
11663
11688
  }
11664
11689
  }
11665
11690
  };
@@ -11703,12 +11728,13 @@ const DrawPieGraph = ({
11703
11728
  parentWidth,
11704
11729
  parentHeight
11705
11730
  }) => {
11706
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
11731
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
11707
11732
  const letters = (_a = value == null ? void 0 : value.main) == null ? void 0 : _a.data;
11708
11733
  const arr = ((_b = value == null ? void 0 : value.main) == null ? void 0 : _b.xAxisValue) && ((_c = value == null ? void 0 : value.main) == null ? void 0 : _c.yAxisValue) ? [(_d = value == null ? void 0 : value.main) == null ? void 0 : _d.xAxisValue, (_e = value == null ? void 0 : value.main) == null ? void 0 : _e.yAxisValue] : Object.keys(letters[0]);
11709
11734
  const frequency = (d2) => d2[arr[1]];
11735
+ const labelArray = letters.map((l2) => l2[arr[0]]);
11710
11736
  const getLetterFrequencyColor = createOrdinalScale$1({
11711
- domain: letters.map((l2) => l2[arr[0]]),
11737
+ domain: labelArray,
11712
11738
  range: (_g = (_f = value == null ? void 0 : value.style) == null ? void 0 : _f.pieStyle) == null ? void 0 : _g.colorRange
11713
11739
  });
11714
11740
  const {
@@ -11735,7 +11761,9 @@ const DrawPieGraph = ({
11735
11761
  const pieSortValues = (a2, b10) => a2 - b10;
11736
11762
  return /* @__PURE__ */ jsxs(Fragment, {
11737
11763
  children: [((_h = value == null ? void 0 : value.main) == null ? void 0 : _h.legendAvailable) && /* @__PURE__ */ jsx(Legend, {
11738
- value
11764
+ value,
11765
+ colorRange: (_j = (_i = value == null ? void 0 : value.style) == null ? void 0 : _i.pieStyle) == null ? void 0 : _j.colorRange,
11766
+ dataKeyArray: labelArray
11739
11767
  }), /* @__PURE__ */ jsx("svg", {
11740
11768
  width: parentWidth,
11741
11769
  height: parentHeight,
@@ -11747,10 +11775,10 @@ const DrawPieGraph = ({
11747
11775
  data: letters,
11748
11776
  pieSortValues,
11749
11777
  pieValue: frequency,
11750
- outerRadius: (_j = (_i = value == null ? void 0 : value.style) == null ? void 0 : _i.pieStyle) == null ? void 0 : _j.outerRadius,
11751
- innerRadius: (_l = (_k = value == null ? void 0 : value.style) == null ? void 0 : _k.pieStyle) == null ? void 0 : _l.innerRadius,
11752
- cornerRadius: (_n = (_m = value == null ? void 0 : value.style) == null ? void 0 : _m.pieStyle) == null ? void 0 : _n.cornerRadius,
11753
- padAngle: (_p = (_o = value == null ? void 0 : value.style) == null ? void 0 : _o.pieStyle) == null ? void 0 : _p.padAngle,
11778
+ outerRadius: (_l = (_k = value == null ? void 0 : value.style) == null ? void 0 : _k.pieStyle) == null ? void 0 : _l.outerRadius,
11779
+ innerRadius: (_n = (_m = value == null ? void 0 : value.style) == null ? void 0 : _m.pieStyle) == null ? void 0 : _n.innerRadius,
11780
+ cornerRadius: (_p = (_o = value == null ? void 0 : value.style) == null ? void 0 : _o.pieStyle) == null ? void 0 : _p.cornerRadius,
11781
+ padAngle: (_r = (_q = value == null ? void 0 : value.style) == null ? void 0 : _q.pieStyle) == null ? void 0 : _r.padAngle,
11754
11782
  children: (pie2) => {
11755
11783
  return pie2.arcs.map((arc2, index2) => {
11756
11784
  var _a2, _b2, _c2, _d2;
@@ -11805,9 +11833,11 @@ const PieGraph = ({
11805
11833
  });
11806
11834
  return /* @__PURE__ */ jsxs("div", {
11807
11835
  style: pieData.style.containerStyle,
11808
- children: [((_a = pieData == null ? void 0 : pieData.main) == null ? void 0 : _a.header) && /* @__PURE__ */ jsx("div", {
11809
- style: pieData.style.headerStyle,
11810
- children: (_b = pieData == null ? void 0 : pieData.main) == null ? void 0 : _b.header
11836
+ children: [((_a = pieData == null ? void 0 : pieData.main) == null ? void 0 : _a.header) && /* @__PURE__ */ jsx(Fragment, {
11837
+ children: /* @__PURE__ */ jsx("div", {
11838
+ style: pieData.style.headerStyle,
11839
+ children: (_b = pieData == null ? void 0 : pieData.main) == null ? void 0 : _b.header
11840
+ })
11811
11841
  }), PieRender]
11812
11842
  });
11813
11843
  };
@@ -19772,7 +19802,9 @@ function AnimatedLineSeries(props) {
19772
19802
  }));
19773
19803
  }
19774
19804
  const DrawGraph = ({
19775
- value
19805
+ value,
19806
+ parentWidth,
19807
+ parentHeight
19776
19808
  }) => {
19777
19809
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
19778
19810
  const data = (_a = value == null ? void 0 : value.main) == null ? void 0 : _a.data;
@@ -19781,11 +19813,13 @@ const DrawGraph = ({
19781
19813
  xAccessor: (d2) => d2[arr[0]],
19782
19814
  yAccessor: (d2) => d2[arr[1]]
19783
19815
  };
19784
- return /* @__PURE__ */ jsxs(Fragment, {
19816
+ return /* @__PURE__ */ jsxs("div", {
19785
19817
  children: [value.main.legendAvailable && /* @__PURE__ */ jsx(Legend, {
19786
- value
19818
+ value,
19819
+ colorRange: (_c = (_b = value == null ? void 0 : value.style) == null ? void 0 : _b.lineStyle) == null ? void 0 : _c.colorRange
19787
19820
  }), /* @__PURE__ */ jsxs(XYChart, {
19788
- height: parseInt((_c = (_b = value.style) == null ? void 0 : _b.containerStyle) == null ? void 0 : _c.height),
19821
+ width: parentWidth,
19822
+ height: parentHeight,
19789
19823
  xScale: {
19790
19824
  type: "band"
19791
19825
  },
@@ -19867,14 +19901,23 @@ const LineGraph = ({
19867
19901
  }) => {
19868
19902
  var _a, _b, _c, _d;
19869
19903
  const lineData = finalDataProvider("LineGraph", value, theme);
19904
+ let LineRender = /* @__PURE__ */ jsx(ParentSize$1, {
19905
+ children: (parent) => /* @__PURE__ */ jsx(DrawGraph, {
19906
+ parentWidth: parent.width,
19907
+ parentHeight: parseInt(lineData.style.containerStyle.height),
19908
+ parentRef: parent.ref,
19909
+ resizeParent: parent.resize,
19910
+ value: lineData
19911
+ })
19912
+ });
19870
19913
  return /* @__PURE__ */ jsxs("div", {
19871
- style: (_a = lineData == null ? void 0 : lineData.style) == null ? void 0 : _a.containerStyle,
19914
+ style: {
19915
+ ...(_a = lineData == null ? void 0 : lineData.style) == null ? void 0 : _a.containerStyle
19916
+ },
19872
19917
  children: [((_b = lineData == null ? void 0 : lineData.main) == null ? void 0 : _b.header) && /* @__PURE__ */ jsx("div", {
19873
19918
  style: (_c = lineData == null ? void 0 : lineData.style) == null ? void 0 : _c.headerStyle,
19874
19919
  children: (_d = lineData == null ? void 0 : lineData.main) == null ? void 0 : _d.header
19875
- }), /* @__PURE__ */ jsx(DrawGraph, {
19876
- value: lineData
19877
- })]
19920
+ }), LineRender]
19878
19921
  });
19879
19922
  };
19880
19923
  var DrawHorizontalBarGraph = withTooltip(({
@@ -20041,7 +20084,7 @@ const ProgressBar = ({
20041
20084
  value,
20042
20085
  theme
20043
20086
  }) => {
20044
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t5, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S;
20087
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t5, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N;
20045
20088
  const [progress2, setProgress] = useState(((_b = (_a = value == null ? void 0 : value.main) == null ? void 0 : _a.data) == null ? void 0 : _b.achieved) / ((_d = (_c = value == null ? void 0 : value.main) == null ? void 0 : _c.data) == null ? void 0 : _d.total) * 100);
20046
20089
  useEffect(() => {
20047
20090
  var _a2, _b2, _c2, _d2;
@@ -20203,14 +20246,14 @@ const ProgressBar = ({
20203
20246
  fontSize: "10px",
20204
20247
  marginBottom: "10px"
20205
20248
  },
20206
- children: ((_J = value == null ? void 0 : value.main) == null ? void 0 : _J.bottomLabel_3) || "Average"
20249
+ children: ((_J = value == null ? void 0 : value.main) == null ? void 0 : _J.bottomLabel_3) || "Remaining"
20207
20250
  }), /* @__PURE__ */ jsx("div", {
20208
20251
  style: {
20209
20252
  textAlign: "right",
20210
20253
  color: ((_L = (_K = theme == null ? void 0 : theme.palette) == null ? void 0 : _K.text) == null ? void 0 : _L.primary) || "#121926",
20211
20254
  fontWeight: 500
20212
20255
  },
20213
- children: ((_M = value == null ? void 0 : value.main) == null ? void 0 : _M.daysCount) ? Math.round(((_O = (_N = value == null ? void 0 : value.main) == null ? void 0 : _N.data) == null ? void 0 : _O.achieved) / ((_P = value == null ? void 0 : value.main) == null ? void 0 : _P.daysCount)) + ((_Q = value == null ? void 0 : value.main) == null ? void 0 : _Q.bottomLabel_3_averageLabel) || "/day" : (_S = (_R = value == null ? void 0 : value.main) == null ? void 0 : _R.data) == null ? void 0 : _S.bottomLabel_3_value
20256
+ children: (_N = (_M = value == null ? void 0 : value.main) == null ? void 0 : _M.data) == null ? void 0 : _N.bottomLabel_3_value
20214
20257
  })]
20215
20258
  })]
20216
20259
  })]
@@ -38784,51 +38827,49 @@ const SpeedoMeter = ({
38784
38827
  value,
38785
38828
  theme
38786
38829
  }) => {
38787
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t5, _u, _v, _w;
38788
- return /* @__PURE__ */ jsxs("div", {
38830
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
38831
+ return /* @__PURE__ */ jsx("div", {
38789
38832
  style: {
38790
38833
  ...(_a = value == null ? void 0 : value.style) == null ? void 0 : _a.containerStyle,
38834
+ width: "100%",
38835
+ display: "flex",
38836
+ justifyContent: "center",
38837
+ alignItems: "center",
38838
+ paddingTop: "50px",
38839
+ paddingBottom: "50px",
38840
+ marginLeft: "auto",
38841
+ marginRight: "auto",
38842
+ height: "auto",
38791
38843
  background: theme.palette.secondary.main
38792
38844
  },
38793
- children: [((_b = value == null ? void 0 : value.main) == null ? void 0 : _b.header) && /* @__PURE__ */ jsx("div", {
38794
- style: {
38795
- fontWeight: 700,
38796
- textAlign: "left",
38797
- fontFamily: "inherit",
38798
- fontSize: "18px",
38799
- color: theme.palette.text.primary || "#121926",
38800
- ...(_c = value == null ? void 0 : value.style) == null ? void 0 : _c.headerStyle
38801
- },
38802
- children: value.main.header
38803
- }), /* @__PURE__ */ jsx("div", {
38845
+ children: /* @__PURE__ */ jsx("div", {
38804
38846
  style: {
38805
38847
  width: "100%",
38806
- minWidth: 500,
38807
38848
  display: "flex",
38808
38849
  justifyContent: "center",
38809
- overflow: "auto"
38850
+ alignItems: "center",
38851
+ overflowX: "auto"
38810
38852
  },
38811
38853
  children: /* @__PURE__ */ jsx(ReactSpeedometer, {
38812
38854
  forceRender: true,
38813
- segmentColors: (_d = value == null ? void 0 : value.style) == null ? void 0 : _d.segmentColors,
38814
- maxValue: ((_f = (_e = value == null ? void 0 : value.main) == null ? void 0 : _e.data) == null ? void 0 : _f.maxValue) || 500,
38815
- width: ((_g = value == null ? void 0 : value.style) == null ? void 0 : _g.width) || 450,
38816
- needleHeightRatio: ((_h = value == null ? void 0 : value.style) == null ? void 0 : _h.needleHeightRatio) || 0.7,
38817
- currentValueText: (_i = value == null ? void 0 : value.main) == null ? void 0 : _i.currentValueText,
38818
- customSegmentLabels: (_j = value == null ? void 0 : value.main) == null ? void 0 : _j.customSegmentLabel,
38819
- ringWidth: ((_k = value == null ? void 0 : value.style) == null ? void 0 : _k.ringWidth) || 37,
38820
- needleTransitionDuration: ((_l = value == null ? void 0 : value.style) == null ? void 0 : _l.needleTransitionDuration) || 5333,
38821
- height: (_m = value == null ? void 0 : value.style) == null ? void 0 : _m.height,
38822
- needleTransition: ((_n = value == null ? void 0 : value.style) == null ? void 0 : _n.needleTransition) || "easeElastic",
38823
- value: ((_p = (_o = value == null ? void 0 : value.main) == null ? void 0 : _o.data) == null ? void 0 : _p.value) || 473,
38824
- needleColor: ((_q = value == null ? void 0 : value.style) == null ? void 0 : _q.needleColor) || "red",
38825
- minValue: ((_s = (_r = value == null ? void 0 : value.main) == null ? void 0 : _r.data) == null ? void 0 : _s.minValue) || 0,
38826
- startColor: ((_t5 = value == null ? void 0 : value.style) == null ? void 0 : _t5.startColor) || "red",
38827
- segments: ((_u = value == null ? void 0 : value.main) == null ? void 0 : _u.segments) || 5,
38828
- endColor: ((_v = value == null ? void 0 : value.style) == null ? void 0 : _v.endColor) || "green",
38829
- textColor: ((_w = value == null ? void 0 : value.style) == null ? void 0 : _w.textColor) || "black"
38855
+ segmentColors: (_b = value == null ? void 0 : value.style) == null ? void 0 : _b.segmentColors,
38856
+ maxValue: ((_d = (_c = value == null ? void 0 : value.main) == null ? void 0 : _c.data) == null ? void 0 : _d.maxValue) || 500,
38857
+ width: window.innerWidth > 750 ? 450 : 280,
38858
+ needleHeightRatio: ((_e = value == null ? void 0 : value.style) == null ? void 0 : _e.needleHeightRatio) || 0.7,
38859
+ currentValueText: ((_f = value == null ? void 0 : value.main) == null ? void 0 : _f.currentValueText) || "Your Score",
38860
+ customSegmentLabels: (_g = value == null ? void 0 : value.main) == null ? void 0 : _g.customSegmentLabels,
38861
+ ringWidth: ((_h = value == null ? void 0 : value.style) == null ? void 0 : _h.ringWidth) || 37,
38862
+ needleTransitionDuration: ((_i = value == null ? void 0 : value.style) == null ? void 0 : _i.needleTransitionDuration) || 5333,
38863
+ needleTransition: ((_j = value == null ? void 0 : value.style) == null ? void 0 : _j.needleTransition) || "easeElastic",
38864
+ value: ((_l = (_k = value == null ? void 0 : value.main) == null ? void 0 : _k.data) == null ? void 0 : _l.value) || 473,
38865
+ needleColor: ((_m = value == null ? void 0 : value.style) == null ? void 0 : _m.needleColor) || "red",
38866
+ minValue: ((_o = (_n = value == null ? void 0 : value.main) == null ? void 0 : _n.data) == null ? void 0 : _o.minValue) || 0,
38867
+ startColor: ((_p = value == null ? void 0 : value.style) == null ? void 0 : _p.startColor) || "red",
38868
+ segments: +((_q = value == null ? void 0 : value.main) == null ? void 0 : _q.segments) || 5,
38869
+ endColor: ((_r = value == null ? void 0 : value.style) == null ? void 0 : _r.endColor) || "green",
38870
+ textColor: ((_s = value == null ? void 0 : value.style) == null ? void 0 : _s.textColor) || "black"
38830
38871
  })
38831
- })]
38872
+ })
38832
38873
  });
38833
38874
  };
38834
38875
  function _extends() {