impaktapps-design 0.1.8 → 0.2.0

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.
@@ -35853,7 +35853,7 @@ var ReactSpeedometer = /* @__PURE__ */ getDefaultExportFromCjs(dist$1);
35853
35853
  const SpeedoMeter = ({
35854
35854
  value
35855
35855
  }) => {
35856
- var _a2, _b2, _c2, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o, _p, _q, _r, _s, _t2, _u, _v;
35856
+ var _a2, _b2, _c2, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o, _p, _q, _r, _s, _t2, _u, _v, _w;
35857
35857
  const [speedoValue, setspeedoValue] = useState(value.main.data);
35858
35858
  useEffect(() => {
35859
35859
  setspeedoValue(value.main.data);
@@ -35889,14 +35889,15 @@ const SpeedoMeter = ({
35889
35889
  customSegmentLabels: (_j = value == null ? void 0 : value.main) == null ? void 0 : _j.customSegmentLabel,
35890
35890
  ringWidth: ((_k = value == null ? void 0 : value.style) == null ? void 0 : _k.ringWidth) || 37,
35891
35891
  needleTransitionDuration: ((_l = value == null ? void 0 : value.style) == null ? void 0 : _l.needleTransitionDuration) || 5333,
35892
- needleTransition: ((_m = value == null ? void 0 : value.style) == null ? void 0 : _m.needleTransition) || "easeElastic",
35893
- value: ((_o = (_n2 = speedoValue == null ? void 0 : speedoValue.main) == null ? void 0 : _n2.data) == null ? void 0 : _o.value) || 473,
35894
- needleColor: ((_p = value == null ? void 0 : value.style) == null ? void 0 : _p.needleColor) || "red",
35895
- minValue: ((_r = (_q = speedoValue == null ? void 0 : speedoValue.main) == null ? void 0 : _q.data) == null ? void 0 : _r.minValue) || 0,
35896
- startColor: ((_s = value == null ? void 0 : value.style) == null ? void 0 : _s.startColor) || "red",
35897
- segments: ((_t2 = value == null ? void 0 : value.main) == null ? void 0 : _t2.segments) || 5,
35898
- endColor: ((_u = value == null ? void 0 : value.style) == null ? void 0 : _u.endColor) || "green",
35899
- textColor: ((_v = value == null ? void 0 : value.style) == null ? void 0 : _v.textColor) || "black"
35892
+ height: ((_m = value == null ? void 0 : value.style) == null ? void 0 : _m.height) || 300,
35893
+ needleTransition: ((_n2 = value == null ? void 0 : value.style) == null ? void 0 : _n2.needleTransition) || "easeElastic",
35894
+ value: ((_p = (_o = speedoValue == null ? void 0 : speedoValue.main) == null ? void 0 : _o.data) == null ? void 0 : _p.value) || 473,
35895
+ needleColor: ((_q = value == null ? void 0 : value.style) == null ? void 0 : _q.needleColor) || "red",
35896
+ minValue: ((_s = (_r = speedoValue == null ? void 0 : speedoValue.main) == null ? void 0 : _r.data) == null ? void 0 : _s.minValue) || 0,
35897
+ startColor: ((_t2 = value == null ? void 0 : value.style) == null ? void 0 : _t2.startColor) || "red",
35898
+ segments: ((_u = value == null ? void 0 : value.main) == null ? void 0 : _u.segments) || 5,
35899
+ endColor: ((_v = value == null ? void 0 : value.style) == null ? void 0 : _v.endColor) || "green",
35900
+ textColor: ((_w = value == null ? void 0 : value.style) == null ? void 0 : _w.textColor) || "black"
35900
35901
  }
35901
35902
  )
35902
35903
  })]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-design",
3
- "version": "0.1.8",
3
+ "version": "0.2.0",
4
4
  "dependencies": {
5
5
  "@babel/core": "^7.16.12",
6
6
  "@visx/visx": "^3.1.2",
@@ -35,6 +35,7 @@ useEffect(()=>{
35
35
  needleTransitionDuration={
36
36
  value?.style?.needleTransitionDuration || 5333
37
37
  }
38
+ height={value?.style?.height||300}
38
39
  needleTransition={value?.style?.needleTransition || "easeElastic"}
39
40
  value={speedoValue?.main?.data?.value || 473}
40
41
  needleColor={value?.style?.needleColor || "red"}