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
|
-
|
|
35893
|
-
|
|
35894
|
-
|
|
35895
|
-
|
|
35896
|
-
|
|
35897
|
-
|
|
35898
|
-
|
|
35899
|
-
|
|
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
|
@@ -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"}
|