aport-tools 4.4.7 → 4.4.8
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.
- package/dist/index.esm.js +4 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! aport-tools v4.4.
|
1
|
+
/*! aport-tools v4.4.8 | ISC */
|
2
2
|
'use strict';
|
3
3
|
|
4
4
|
var React = require('react');
|
@@ -231,6 +231,7 @@ var Stepper = function Stepper(_a) {
|
|
231
231
|
_a.label = 2;
|
232
232
|
case 2:
|
233
233
|
// Proceed to change step
|
234
|
+
seterrorBack(false);
|
234
235
|
onPress === null || onPress === void 0 ? void 0 : onPress(stepIndex);
|
235
236
|
return [2 /*return*/];
|
236
237
|
}
|
@@ -240,7 +241,7 @@ var Stepper = function Stepper(_a) {
|
|
240
241
|
React.useEffect(function () {
|
241
242
|
reactNative.Animated.timing(progressAnim, {
|
242
243
|
toValue: currentStep,
|
243
|
-
duration:
|
244
|
+
duration: 500,
|
244
245
|
useNativeDriver: false
|
245
246
|
}).start();
|
246
247
|
}, [currentStep]);
|
@@ -327,7 +328,7 @@ var Stepper = function Stepper(_a) {
|
|
327
328
|
}
|
328
329
|
}, /*#__PURE__*/React.createElement(reactNative.View, {
|
329
330
|
style: [styles$9.step, stepStyle === "square" && styles$9.squareStep, {
|
330
|
-
backgroundColor:
|
331
|
+
backgroundColor: currentStep >= index ? colors.primary.hex : !errorBack ? colors.body.hex : colors.error.hex
|
331
332
|
}]
|
332
333
|
}, renderStepContent(index)), steps && /*#__PURE__*/React.createElement(Text, {
|
333
334
|
style: styles$9.stepText
|