aport-tools 4.4.10 → 4.4.11

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.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! aport-tools v4.4.10 | ISC */
1
+ /*! aport-tools v4.4.11 | ISC */
2
2
  'use strict';
3
3
 
4
4
  var React = require('react');
@@ -231,15 +231,17 @@ var Stepper = function Stepper(_a) {
231
231
  if (Object.keys(errors).length > 0) {
232
232
  console.log("Validation failed at step ".concat(current + 1, ". Cannot proceed to step ").concat(current + 2, "."));
233
233
  seterrorBack(true);
234
- return [2 /*return*/]; // Stop at the first invalid step
234
+ return [2 /*return*/]; // Stop if the current step has errors
235
235
  }
236
236
  seterrorBack(false);
237
237
  current += 1; // Move to the next step
238
238
  return [3 /*break*/, 4];
239
239
  case 3:
240
+ // Moving backward: No validation required
240
241
  current -= 1;
241
242
  _a.label = 4;
242
243
  case 4:
244
+ // Update the current step visually for each intermediate step
243
245
  onPress === null || onPress === void 0 ? void 0 : onPress(current);
244
246
  return [3 /*break*/, 1];
245
247
  case 5: