aport-tools 4.4.9 → 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.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! aport-tools v4.4.9 | ISC */
1
+ /*! aport-tools v4.4.11 | ISC */
2
2
  import React, { useContext, useState, createContext, useCallback, useMemo } from 'react';
3
3
  import { StyleSheet, Text as Text$1, Animated, View, TouchableOpacity, Image, TextInput, Modal, Pressable, FlatList, Keyboard, Platform, Alert, ActivityIndicator } from 'react-native';
4
4
  import { ThemeContext } from 'aport-themes';
@@ -210,15 +210,17 @@ var Stepper = function Stepper(_a) {
210
210
  if (Object.keys(errors).length > 0) {
211
211
  console.log("Validation failed at step ".concat(current + 1, ". Cannot proceed to step ").concat(current + 2, "."));
212
212
  seterrorBack(true);
213
- return [2 /*return*/]; // Stop at the first invalid step
213
+ return [2 /*return*/]; // Stop if the current step has errors
214
214
  }
215
215
  seterrorBack(false);
216
216
  current += 1; // Move to the next step
217
217
  return [3 /*break*/, 4];
218
218
  case 3:
219
+ // Moving backward: No validation required
219
220
  current -= 1;
220
221
  _a.label = 4;
221
222
  case 4:
223
+ // Update the current step visually for each intermediate step
222
224
  onPress === null || onPress === void 0 ? void 0 : onPress(current);
223
225
  return [3 /*break*/, 1];
224
226
  case 5: