impaktapps-design 0.2.3 → 0.2.4

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.
@@ -35877,28 +35877,26 @@ const SpeedoMeter = ({
35877
35877
  justifyContent: "center",
35878
35878
  overflow: "scroll"
35879
35879
  },
35880
- children: /* @__PURE__ */ jsx(
35881
- ReactSpeedometer,
35882
- {
35883
- segmentColors: (_d = value == null ? void 0 : value.style) == null ? void 0 : _d.segmentColors,
35884
- maxValue: ((_f = (_e2 = value == null ? void 0 : value.main) == null ? void 0 : _e2.data) == null ? void 0 : _f.maxValue) || 500,
35885
- width: ((_g = value == null ? void 0 : value.style) == null ? void 0 : _g.width) || 450,
35886
- needleHeightRatio: ((_h = value == null ? void 0 : value.style) == null ? void 0 : _h.needleHeightRatio) || 0.7,
35887
- currentValueText: (_i = value == null ? void 0 : value.main) == null ? void 0 : _i.currentValueText,
35888
- customSegmentLabels: (_j = value == null ? void 0 : value.main) == null ? void 0 : _j.customSegmentLabel,
35889
- ringWidth: ((_k = value == null ? void 0 : value.style) == null ? void 0 : _k.ringWidth) || 37,
35890
- needleTransitionDuration: ((_l = value == null ? void 0 : value.style) == null ? void 0 : _l.needleTransitionDuration) || 5333,
35891
- height: (_m = value == null ? void 0 : value.style) == null ? void 0 : _m.height,
35892
- needleTransition: ((_n2 = value == null ? void 0 : value.style) == null ? void 0 : _n2.needleTransition) || "easeElastic",
35893
- value: ((_p = (_o = value == null ? void 0 : value.main) == null ? void 0 : _o.data) == null ? void 0 : _p.value) || 473,
35894
- needleColor: ((_q = value == null ? void 0 : value.style) == null ? void 0 : _q.needleColor) || "red",
35895
- minValue: ((_s = (_r = value == null ? void 0 : value.main) == null ? void 0 : _r.data) == null ? void 0 : _s.minValue) || 0,
35896
- startColor: ((_t2 = value == null ? void 0 : value.style) == null ? void 0 : _t2.startColor) || "red",
35897
- segments: ((_u = value == null ? void 0 : value.main) == null ? void 0 : _u.segments) || 5,
35898
- endColor: ((_v = value == null ? void 0 : value.style) == null ? void 0 : _v.endColor) || "green",
35899
- textColor: ((_w = value == null ? void 0 : value.style) == null ? void 0 : _w.textColor) || "black"
35900
- }
35901
- )
35880
+ children: /* @__PURE__ */ jsx(ReactSpeedometer, {
35881
+ forceRender: true,
35882
+ segmentColors: (_d = value == null ? void 0 : value.style) == null ? void 0 : _d.segmentColors,
35883
+ maxValue: ((_f = (_e2 = value == null ? void 0 : value.main) == null ? void 0 : _e2.data) == null ? void 0 : _f.maxValue) || 500,
35884
+ width: ((_g = value == null ? void 0 : value.style) == null ? void 0 : _g.width) || 450,
35885
+ needleHeightRatio: ((_h = value == null ? void 0 : value.style) == null ? void 0 : _h.needleHeightRatio) || 0.7,
35886
+ currentValueText: (_i = value == null ? void 0 : value.main) == null ? void 0 : _i.currentValueText,
35887
+ customSegmentLabels: (_j = value == null ? void 0 : value.main) == null ? void 0 : _j.customSegmentLabel,
35888
+ ringWidth: ((_k = value == null ? void 0 : value.style) == null ? void 0 : _k.ringWidth) || 37,
35889
+ needleTransitionDuration: ((_l = value == null ? void 0 : value.style) == null ? void 0 : _l.needleTransitionDuration) || 5333,
35890
+ height: (_m = value == null ? void 0 : value.style) == null ? void 0 : _m.height,
35891
+ needleTransition: ((_n2 = value == null ? void 0 : value.style) == null ? void 0 : _n2.needleTransition) || "easeElastic",
35892
+ value: ((_p = (_o = value == null ? void 0 : value.main) == null ? void 0 : _o.data) == null ? void 0 : _p.value) || 473,
35893
+ needleColor: ((_q = value == null ? void 0 : value.style) == null ? void 0 : _q.needleColor) || "red",
35894
+ minValue: ((_s = (_r = value == null ? void 0 : value.main) == null ? void 0 : _r.data) == null ? void 0 : _s.minValue) || 0,
35895
+ startColor: ((_t2 = value == null ? void 0 : value.style) == null ? void 0 : _t2.startColor) || "red",
35896
+ segments: ((_u = value == null ? void 0 : value.main) == null ? void 0 : _u.segments) || 5,
35897
+ endColor: ((_v = value == null ? void 0 : value.style) == null ? void 0 : _v.endColor) || "green",
35898
+ textColor: ((_w = value == null ? void 0 : value.style) == null ? void 0 : _w.textColor) || "black"
35899
+ })
35902
35900
  })]
35903
35901
  });
35904
35902
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-design",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "dependencies": {
5
5
  "@babel/core": "^7.16.12",
6
6
  "@visx/visx": "^3.1.2",
@@ -20,7 +20,7 @@ const SpeedoMeter = ({ value }: any) => {
20
20
  )}
21
21
  <div style={{ width:"100%",minWidth:500,display: "flex", justifyContent: "center",overflow:"scroll" }}>
22
22
  <ReactSpeedometer
23
- // needleTransition=''
23
+ forceRender={true}
24
24
  segmentColors={value?.style?.segmentColors}
25
25
  maxValue={value?.main?.data?.maxValue || 500}
26
26
  width={value?.style?.width || 450}