@servesall/atoms 1.1.8 → 1.1.9

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.
@@ -228,6 +228,7 @@ var colors = {
228
228
  greenLight: "#F3FFFC",
229
229
  greenDark: "#236A56",
230
230
  greyText: "#b2bec3",
231
+ greyButton: "#94A3A9",
231
232
  red: "#ff7675",
232
233
  redlight: "#FFFAF9",
233
234
  redDark: "#9C4140",
@@ -283,8 +284,8 @@ var useThemeContext = function useThemeContext() {
283
284
  return React.useContext(ThemeContext);
284
285
  };
285
286
 
286
- var _templateObject$m, _templateObject2$d, _templateObject3$6, _templateObject4$1, _templateObject5$1, _templateObject6$1, _templateObject7$1;
287
- var H1 = styled.Text(_templateObject$m || (_templateObject$m = _taggedTemplateLiteral(["\n font-size: ", ";\n font-family: ", ";\n text-align: ", ";\n color: ", ";\n line-height: ", ";\n ", ";\n"])), function (props) {
287
+ var _templateObject$n, _templateObject2$e, _templateObject3$7, _templateObject4$1, _templateObject5$1, _templateObject6$1, _templateObject7$1;
288
+ var H1 = styled.Text(_templateObject$n || (_templateObject$n = _taggedTemplateLiteral(["\n font-size: ", ";\n font-family: ", ";\n text-align: ", ";\n color: ", ";\n line-height: ", ";\n ", ";\n"])), function (props) {
288
289
  return props.theme.large;
289
290
  }, function (props) {
290
291
  return props.fontFamily || props.theme.fontFamily1;
@@ -297,7 +298,7 @@ var H1 = styled.Text(_templateObject$m || (_templateObject$m = _taggedTemplateLi
297
298
  }, function (props) {
298
299
  return props.style;
299
300
  });
300
- var H2 = styled.Text(_templateObject2$d || (_templateObject2$d = _taggedTemplateLiteral(["\n font-size: ", ";\n font-family: ", ";\n text-align: ", ";\n color: ", ";\n line-height: ", ";\n ", ";\n"])), function (props) {
301
+ var H2 = styled.Text(_templateObject2$e || (_templateObject2$e = _taggedTemplateLiteral(["\n font-size: ", ";\n font-family: ", ";\n text-align: ", ";\n color: ", ";\n line-height: ", ";\n ", ";\n"])), function (props) {
301
302
  return props.theme.medium;
302
303
  }, function (props) {
303
304
  return props.fontFamily || props.theme.fontFamily1;
@@ -310,7 +311,7 @@ var H2 = styled.Text(_templateObject2$d || (_templateObject2$d = _taggedTemplate
310
311
  }, function (props) {
311
312
  return props.style;
312
313
  });
313
- var H3 = styled.Text(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteral(["\n font-size: ", ";\n font-family: ", ";\n text-align: ", ";\n color: ", ";\n line-height: ", ";\n ", ";\n"])), function (props) {
314
+ var H3 = styled.Text(_templateObject3$7 || (_templateObject3$7 = _taggedTemplateLiteral(["\n font-size: ", ";\n font-family: ", ";\n text-align: ", ";\n color: ", ";\n line-height: ", ";\n ", ";\n"])), function (props) {
314
315
  return props.theme.small;
315
316
  }, function (props) {
316
317
  return props.fontFamily || props.theme.fontFamily1;
@@ -537,14 +538,14 @@ SpanText.propTypes = {
537
538
  style: PropTypes.object
538
539
  };
539
540
 
540
- var _templateObject$l, _templateObject2$c, _templateObject3$5, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19;
541
+ var _templateObject$m, _templateObject2$d, _templateObject3$6, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19;
541
542
  var DEFAULT_FLEX_DIRECTION = Platform.OS === "web" ? "column" : "column";
542
- var CenterElement = styled.View(_templateObject$l || (_templateObject$l = _taggedTemplateLiteral(["\n align-items: center;\n justify-content: center;\n flex: 1;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
543
+ var CenterElement = styled.View(_templateObject$m || (_templateObject$m = _taggedTemplateLiteral(["\n align-items: center;\n justify-content: center;\n flex: 1;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
543
544
  return props.flexDirection || DEFAULT_FLEX_DIRECTION;
544
545
  }, function (props) {
545
546
  return props.style;
546
547
  });
547
- var CenterLeftElement = styled.View(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteral(["\n align-items: ", ";\n justify-content: ", ";\n flex: 1;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
548
+ var CenterLeftElement = styled.View(_templateObject2$d || (_templateObject2$d = _taggedTemplateLiteral(["\n align-items: ", ";\n justify-content: ", ";\n flex: 1;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
548
549
  return (props.flexDirection || DEFAULT_FLEX_DIRECTION) === "row" ? "center" : "flex-start";
549
550
  }, function (props) {
550
551
  return (props.flexDirection || DEFAULT_FLEX_DIRECTION) === "row" ? "flex-start" : "center";
@@ -553,7 +554,7 @@ var CenterLeftElement = styled.View(_templateObject2$c || (_templateObject2$c =
553
554
  }, function (props) {
554
555
  return props.style;
555
556
  });
556
- var CenterRightElement = styled.View(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteral(["\n align-items: ", ";\n justify-content: ", ";\n flex: 1;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
557
+ var CenterRightElement = styled.View(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteral(["\n align-items: ", ";\n justify-content: ", ";\n flex: 1;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
557
558
  return (props.flexDirection || DEFAULT_FLEX_DIRECTION) === "row" ? "center" : "flex-end";
558
559
  }, function (props) {
559
560
  return (props.flexDirection || DEFAULT_FLEX_DIRECTION) === "row" ? "flex-end" : "center";
@@ -888,22 +889,22 @@ var RoundedTopBox = function RoundedTopBox(_ref) {
888
889
  }, children);
889
890
  };
890
891
 
891
- var _templateObject$k, _templateObject2$b, _templateObject3$4;
892
- var InputWrapper$1 = styled.Pressable(_templateObject$k || (_templateObject$k = _taggedTemplateLiteral(["\n min-height: 80px;\n"])));
893
- var InputElement$1 = styled.TextInput(_templateObject2$b || (_templateObject2$b = _taggedTemplateLiteral(["\n margin-top: 26px;\n min-height: 50px;\n font-family: ", ";\n font-size: ", ";\n color: ", ";\n"])), function (props) {
892
+ var _templateObject$l, _templateObject2$c, _templateObject3$5;
893
+ var InputWrapper$2 = styled.Pressable(_templateObject$l || (_templateObject$l = _taggedTemplateLiteral(["\n min-height: 80px;\n"])));
894
+ var InputElement$2 = styled.TextInput(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteral(["\n margin-top: 26px;\n min-height: 50px;\n font-family: ", ";\n font-size: ", ";\n color: ", ";\n"])), function (props) {
894
895
  return props.theme.fontFamily2;
895
896
  }, function (props) {
896
897
  return props.theme.small;
897
898
  }, function (props) {
898
899
  return props.theme.color2;
899
900
  });
900
- var BorderWrapper$2 = styled.View(_templateObject3$4 || (_templateObject3$4 = _taggedTemplateLiteral(["\n height: 4px;\n"])));
901
+ var BorderWrapper$3 = styled.View(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteral(["\n height: 4px;\n"])));
901
902
 
902
- var _templateObject$j, _templateObject2$a;
903
- var BorderIdle$1 = styled.View(_templateObject$j || (_templateObject$j = _taggedTemplateLiteral(["\n height: 4px;\n background-color: ", ";\n flex: 1;\n position: absolute;\n width: 100%;\n z-index: 10;\n"])), function (props) {
903
+ var _templateObject$k, _templateObject2$b;
904
+ var BorderIdle$1 = styled.View(_templateObject$k || (_templateObject$k = _taggedTemplateLiteral(["\n height: 4px;\n background-color: ", ";\n flex: 1;\n position: absolute;\n width: 100%;\n z-index: 10;\n"])), function (props) {
904
905
  return props.color;
905
906
  });
906
- var BorderActive$1 = styled.View(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteral(["\n height: 4px;\n background-color: ", ";\n z-index: 11;\n"])), function (props) {
907
+ var BorderActive$1 = styled.View(_templateObject2$b || (_templateObject2$b = _taggedTemplateLiteral(["\n height: 4px;\n background-color: ", ";\n z-index: 11;\n"])), function (props) {
907
908
  return props.color;
908
909
  });
909
910
 
@@ -939,7 +940,7 @@ var Line$1 = function Line(_ref) {
939
940
  })));
940
941
  };
941
942
 
942
- var PlaceholderElement$1 = /*#__PURE__*/React.memo(function (_ref) {
943
+ var PlaceholderElement$2 = /*#__PURE__*/React.memo(function (_ref) {
943
944
  var children = _ref.children,
944
945
  active = _ref.active;
945
946
  var bottom = useSharedValue(active ? 50 : 4);
@@ -1019,18 +1020,18 @@ var Input$1 = function Input(_ref) {
1019
1020
  return /*#__PURE__*/React.createElement(KeyboardAvoidingView, {
1020
1021
  behavior: Platform.OS === "ios" ? "padding" : "height",
1021
1022
  keyboardVerticalOffset: keyboardVerticalOffset
1022
- }, /*#__PURE__*/React.createElement(InputWrapper$1, {
1023
+ }, /*#__PURE__*/React.createElement(InputWrapper$2, {
1023
1024
  onPress: function onPress() {
1024
1025
  var _inputRef$current2;
1025
1026
 
1026
1027
  setIsFocused(true);
1027
1028
  (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus();
1028
1029
  }
1029
- }, /*#__PURE__*/React.createElement(PlaceholderElement$1, {
1030
+ }, /*#__PURE__*/React.createElement(PlaceholderElement$2, {
1030
1031
  active: isFocused || textValue && textValue.length > 0
1031
1032
  }, !hasError ? children : /*#__PURE__*/React.createElement(H3Text, {
1032
1033
  color: borderColorError
1033
- }, error || hasError)), /*#__PURE__*/React.createElement(InputElement$1, {
1034
+ }, error || hasError)), /*#__PURE__*/React.createElement(InputElement$2, {
1034
1035
  ref: inputRef,
1035
1036
  onFocus: function onFocus() {
1036
1037
  return setIsFocused(true);
@@ -1050,7 +1051,7 @@ var Input$1 = function Input(_ref) {
1050
1051
  keyboardType: keyboardType,
1051
1052
  editable: editable,
1052
1053
  style: style
1053
- }), /*#__PURE__*/React.createElement(BorderWrapper$2, null, /*#__PURE__*/React.createElement(Line$1, {
1054
+ }), /*#__PURE__*/React.createElement(BorderWrapper$3, null, /*#__PURE__*/React.createElement(Line$1, {
1054
1055
  active: isFocused,
1055
1056
  borderColorActive: borderColorActive,
1056
1057
  borderColorIdle: borderColorIdle,
@@ -1197,9 +1198,9 @@ var InputOtp = function InputOtp(props) {
1197
1198
  }))));
1198
1199
  };
1199
1200
 
1200
- var _templateObject$i, _templateObject2$9, _templateObject3$3;
1201
- var InputWrapper = styled.Pressable(_templateObject$i || (_templateObject$i = _taggedTemplateLiteral(["\n min-height: 70px;\n"])));
1202
- var InputElement = styled.TextInput(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteral(["\n min-height: 40px;\n font-family: ", ";\n font-size: ", ";\n color: ", ";\n background-color: ", ";\n"])), function (props) {
1201
+ var _templateObject$j, _templateObject2$a, _templateObject3$4;
1202
+ var InputWrapper$1 = styled.Pressable(_templateObject$j || (_templateObject$j = _taggedTemplateLiteral(["\n min-height: 70px;\n"])));
1203
+ var InputElement$1 = styled.TextInput(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteral(["\n min-height: 40px;\n font-family: ", ";\n font-size: ", ";\n color: ", ";\n background-color: ", ";\n"])), function (props) {
1203
1204
  return props.theme.fontFamily2;
1204
1205
  }, function (props) {
1205
1206
  return props.theme.small;
@@ -1208,15 +1209,31 @@ var InputElement = styled.TextInput(_templateObject2$9 || (_templateObject2$9 =
1208
1209
  }, function (props) {
1209
1210
  return props.active ? props.theme.color1 : props.theme.color10;
1210
1211
  });
1211
- var BorderWrapper$1 = styled.View(_templateObject3$3 || (_templateObject3$3 = _taggedTemplateLiteral(["\n min-height: 70px;\n padding-top: 26px;\n border-width: 2px;\n border-color: ", ";\n border-radius: ", ";\n background-color: ", ";\n"])), function (props) {
1212
+ var BorderWrapper$2 = styled.View(_templateObject3$4 || (_templateObject3$4 = _taggedTemplateLiteral(["\n min-height: 70px;\n padding-top: 26px;\n border-width: 2px;\n border-color: ", ";\n border-radius: ", ";\n background-color: ", ";\n ", "\n"])), function (props) {
1212
1213
  return props.color;
1213
1214
  }, function (props) {
1214
1215
  return props.theme.borderRadiusSmall;
1215
1216
  }, function (props) {
1216
1217
  return props.active ? props.theme.color1 : props.theme.color10;
1218
+ }, function (_ref) {
1219
+ var isRightBound = _ref.isRightBound,
1220
+ isLeftBound = _ref.isLeftBound,
1221
+ active = _ref.active;
1222
+
1223
+ if (isRightBound) {
1224
+ if (!active) {
1225
+ return "borderTopRightRadius: 0px; borderBottomRightRadius: 0px; border-right-width: 0px;";
1226
+ }
1227
+
1228
+ return "borderTopRightRadius: 0px; borderBottomRightRadius: 0px;";
1229
+ }
1230
+
1231
+ if (isLeftBound) {
1232
+ return "borderTopLeftRadius: 0px; borderBottomLeftRadius: 0px;";
1233
+ }
1217
1234
  });
1218
1235
 
1219
- var PlaceholderElement = /*#__PURE__*/React.memo(function (_ref) {
1236
+ var PlaceholderElement$1 = /*#__PURE__*/React.memo(function (_ref) {
1220
1237
  var children = _ref.children,
1221
1238
  active = _ref.active;
1222
1239
  var top = useSharedValue(active ? 10 : 30);
@@ -1273,7 +1290,11 @@ var Input = function Input(_ref) {
1273
1290
  keyboardVerticalOffset = _ref$keyboardVertical === void 0 ? 0 : _ref$keyboardVertical,
1274
1291
  _ref$hasError = _ref.hasError,
1275
1292
  hasError = _ref$hasError === void 0 ? false : _ref$hasError,
1276
- error = _ref.error;
1293
+ error = _ref.error,
1294
+ _ref$isRightBound = _ref.isRightBound,
1295
+ isRightBound = _ref$isRightBound === void 0 ? false : _ref$isRightBound,
1296
+ _ref$isLeftBound = _ref.isLeftBound,
1297
+ isLeftBound = _ref$isLeftBound === void 0 ? false : _ref$isLeftBound;
1277
1298
 
1278
1299
  var _useState = useState(false),
1279
1300
  _useState2 = _slicedToArray(_useState, 2),
@@ -1297,7 +1318,7 @@ var Input = function Input(_ref) {
1297
1318
  return /*#__PURE__*/React.createElement(KeyboardAvoidingView, {
1298
1319
  behavior: Platform.OS === "ios" ? "padding" : "height",
1299
1320
  keyboardVerticalOffset: keyboardVerticalOffset
1300
- }, /*#__PURE__*/React.createElement(InputWrapper, {
1321
+ }, /*#__PURE__*/React.createElement(InputWrapper$1, {
1301
1322
  onPress: function onPress() {
1302
1323
  var _inputRef$current2;
1303
1324
 
@@ -1306,14 +1327,16 @@ var Input = function Input(_ref) {
1306
1327
  editable && setIsFocused(true);
1307
1328
  editable && ((_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus());
1308
1329
  }
1309
- }, /*#__PURE__*/React.createElement(BorderWrapper$1, {
1330
+ }, /*#__PURE__*/React.createElement(BorderWrapper$2, {
1331
+ isRightBound: isRightBound,
1332
+ isLeftBound: isLeftBound,
1310
1333
  active: isFocused,
1311
1334
  color: !hasError ? isFocused ? borderColorActive : borderColorIdle : borderColorError
1312
- }, /*#__PURE__*/React.createElement(PlaceholderElement, {
1335
+ }, /*#__PURE__*/React.createElement(PlaceholderElement$1, {
1313
1336
  active: isFocused || textValue && textValue.length > 0 || value && value.length > 0
1314
1337
  }, /*#__PURE__*/React.createElement(MarginHorizontal, null, !hasError ? children : /*#__PURE__*/React.createElement(H4Text, {
1315
1338
  color: borderColorError
1316
- }, error || hasError))), /*#__PURE__*/React.createElement(MarginHorizontal, null, /*#__PURE__*/React.createElement(InputElement, {
1339
+ }, error || hasError))), /*#__PURE__*/React.createElement(MarginHorizontal, null, /*#__PURE__*/React.createElement(InputElement$1, {
1317
1340
  ref: inputRef,
1318
1341
  onFocus: function onFocus() {
1319
1342
  return setIsFocused(true);
@@ -1337,6 +1360,192 @@ var Input = function Input(_ref) {
1337
1360
  })))));
1338
1361
  };
1339
1362
 
1363
+ var _templateObject$i, _templateObject2$9, _templateObject3$3;
1364
+ var InputWrapper = styled.Pressable(_templateObject$i || (_templateObject$i = _taggedTemplateLiteral(["\n min-height: 70px;\n"])));
1365
+ var InputElement = styled.TextInput(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteral(["\n min-height: 40px;\n font-family: ", ";\n font-size: ", ";\n color: ", ";\n background-color: ", ";\n"])), function (props) {
1366
+ return props.theme.fontFamily2;
1367
+ }, function (props) {
1368
+ return props.theme.small;
1369
+ }, function (props) {
1370
+ return props.theme.color2;
1371
+ }, function (props) {
1372
+ return props.active ? props.theme.color1 : props.theme.color10;
1373
+ });
1374
+ var BorderWrapper$1 = styled.View(_templateObject3$3 || (_templateObject3$3 = _taggedTemplateLiteral(["\n min-height: 70px;\n padding-top: 26px;\n border-width: 2px;\n border-color: ", ";\n border-radius: ", ";\n background-color: ", ";\n"])), function (props) {
1375
+ return props.color;
1376
+ }, function (props) {
1377
+ return props.theme.borderRadiusSmall;
1378
+ }, function (props) {
1379
+ return props.active ? props.theme.color1 : props.theme.color10;
1380
+ });
1381
+
1382
+ var PlaceholderElement = /*#__PURE__*/React.memo(function (_ref) {
1383
+ var children = _ref.children,
1384
+ active = _ref.active;
1385
+ var top = useSharedValue(active ? 10 : 30);
1386
+ var animatedStyle = useAnimatedStyle(function () {
1387
+ return {
1388
+ top: withTiming(top.value, {
1389
+ duration: 250,
1390
+ easing: Easing.bezier(0.19, 1.0, 0.22, 1.0)
1391
+ })
1392
+ };
1393
+ });
1394
+ useEffect(function () {
1395
+ if (active) {
1396
+ top.value = 10;
1397
+ }
1398
+
1399
+ if (!active) {
1400
+ top.value = 30;
1401
+ }
1402
+ }, [active]);
1403
+ return /*#__PURE__*/React.createElement(Animated.View, {
1404
+ style: [{
1405
+ position: "absolute",
1406
+ zIndex: 1,
1407
+ justifyContent: "center"
1408
+ }, animatedStyle]
1409
+ }, children);
1410
+ });
1411
+
1412
+ var InputPhone = function InputPhone(_ref) {
1413
+ var children = _ref.children,
1414
+ style = _ref.style,
1415
+ borderColorIdle = _ref.borderColorIdle,
1416
+ borderColorActive = _ref.borderColorActive,
1417
+ borderColorError = _ref.borderColorError,
1418
+ _ref$textChangePrefix = _ref.textChangePrefix,
1419
+ textChangePrefix = _ref$textChangePrefix === void 0 ? function () {} : _ref$textChangePrefix,
1420
+ _ref$textChangeNumber = _ref.textChangeNumber,
1421
+ textChangeNumber = _ref$textChangeNumber === void 0 ? function () {} : _ref$textChangeNumber,
1422
+ _ref$onPress = _ref.onPress,
1423
+ _onPress = _ref$onPress === void 0 ? function () {} : _ref$onPress,
1424
+ valuePrefix = _ref.valuePrefix,
1425
+ valueNumber = _ref.valueNumber,
1426
+ defaultValuePrefix = _ref.defaultValuePrefix,
1427
+ defaultValueNumber = _ref.defaultValueNumber,
1428
+ _ref$multiline = _ref.multiline,
1429
+ multiline = _ref$multiline === void 0 ? false : _ref$multiline,
1430
+ _ref$numberOfLines = _ref.numberOfLines,
1431
+ numberOfLines = _ref$numberOfLines === void 0 ? 1 : _ref$numberOfLines,
1432
+ _ref$maxLength = _ref.maxLength,
1433
+ maxLength = _ref$maxLength === void 0 ? 1000 : _ref$maxLength,
1434
+ _ref$autoFocus = _ref.autoFocus,
1435
+ autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus,
1436
+ keyboardType = _ref.keyboardType,
1437
+ _ref$editable = _ref.editable,
1438
+ editable = _ref$editable === void 0 ? true : _ref$editable,
1439
+ _ref$keyboardVertical = _ref.keyboardVerticalOffset,
1440
+ keyboardVerticalOffset = _ref$keyboardVertical === void 0 ? 0 : _ref$keyboardVertical,
1441
+ _ref$hasError = _ref.hasError,
1442
+ hasError = _ref$hasError === void 0 ? false : _ref$hasError,
1443
+ error = _ref.error;
1444
+
1445
+ var _useState = useState(false),
1446
+ _useState2 = _slicedToArray(_useState, 2),
1447
+ isFocused = _useState2[0],
1448
+ setIsFocused = _useState2[1];
1449
+
1450
+ var _useState3 = useState(valuePrefix || defaultValuePrefix),
1451
+ _useState4 = _slicedToArray(_useState3, 2),
1452
+ textValue = _useState4[0],
1453
+ setTextValue = _useState4[1];
1454
+
1455
+ var _useState5 = useState(false),
1456
+ _useState6 = _slicedToArray(_useState5, 2),
1457
+ isFocusedPrefix = _useState6[0],
1458
+ setIsFocusedPrefix = _useState6[1];
1459
+
1460
+ var _useState7 = useState(valueNumber || defaultValueNumber),
1461
+ _useState8 = _slicedToArray(_useState7, 2),
1462
+ textPrefixValue = _useState8[0],
1463
+ setTextPrefixValue = _useState8[1];
1464
+
1465
+ var inputRef = useRef();
1466
+ useEffect(function () {
1467
+ textChangeNumber(textValue);
1468
+ }, [textValue]);
1469
+ useEffect(function () {
1470
+ textChangePrefix(textPrefixValue);
1471
+ }, [textPrefixValue]);
1472
+ useEffect(function () {
1473
+ var _inputRef$current;
1474
+
1475
+ autoFocus && ((_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus());
1476
+ }, [autoFocus]);
1477
+ return /*#__PURE__*/React.createElement(KeyboardAvoidingView, {
1478
+ behavior: Platform.OS === "ios" ? "padding" : "height",
1479
+ keyboardVerticalOffset: keyboardVerticalOffset
1480
+ }, /*#__PURE__*/React.createElement(InputWrapper, {
1481
+ onPress: function onPress() {
1482
+ var _inputRef$current2;
1483
+
1484
+ _onPress();
1485
+
1486
+ editable && setIsFocused(true);
1487
+ editable && ((_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus());
1488
+ }
1489
+ }, /*#__PURE__*/React.createElement(BorderWrapper$1, {
1490
+ active: isFocused,
1491
+ color: !hasError ? isFocused ? borderColorActive : borderColorIdle : borderColorError
1492
+ }, /*#__PURE__*/React.createElement(Row, {
1493
+ style: {
1494
+ backgroundColor: "red",
1495
+ width: "100%"
1496
+ }
1497
+ }, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(PlaceholderElement, {
1498
+ active: isFocusedPrefix || textPrefixValue && textPrefixValue.length > 0 || valuePrefix && valuePrefix.length > 0
1499
+ }, /*#__PURE__*/React.createElement(MarginHorizontal, null, !hasError ? children[0] : /*#__PURE__*/React.createElement(H4Text, {
1500
+ color: borderColorError
1501
+ }, error || hasError)))), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(PlaceholderElement, {
1502
+ active: isFocused || textValue && textValue.length > 0 || valueNumber && valueNumber.length > 0
1503
+ }, /*#__PURE__*/React.createElement(MarginHorizontal, null, !hasError ? children[1] : /*#__PURE__*/React.createElement(H4Text, {
1504
+ color: borderColorError
1505
+ }, error || hasError))))), /*#__PURE__*/React.createElement(MarginHorizontal, null, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(InputElement, {
1506
+ onFocus: function onFocus() {
1507
+ return setIsFocusedPrefix(true);
1508
+ },
1509
+ onBlur: function onBlur() {
1510
+ return setIsFocusedPrefix(false);
1511
+ },
1512
+ onChangeText: function onChangeText(text) {
1513
+ return setTextPrefixValue(text);
1514
+ },
1515
+ defaultValue: defaultValuePrefix,
1516
+ value: valuePrefix,
1517
+ multiline: multiline,
1518
+ numberOfLines: numberOfLines,
1519
+ maxLength: maxLength,
1520
+ autoFocus: autoFocus,
1521
+ keyboardType: keyboardType,
1522
+ editable: editable,
1523
+ active: isFocusedPrefix,
1524
+ style: style
1525
+ }), /*#__PURE__*/React.createElement(InputElement, {
1526
+ ref: inputRef,
1527
+ onFocus: function onFocus() {
1528
+ return setIsFocused(true);
1529
+ },
1530
+ onBlur: function onBlur() {
1531
+ return setIsFocused(false);
1532
+ },
1533
+ onChangeText: function onChangeText(text) {
1534
+ return setTextValue(text);
1535
+ },
1536
+ defaultValue: defaultValueNumber,
1537
+ value: valueNumber,
1538
+ multiline: multiline,
1539
+ numberOfLines: numberOfLines,
1540
+ maxLength: maxLength,
1541
+ autoFocus: autoFocus,
1542
+ keyboardType: keyboardType,
1543
+ editable: editable,
1544
+ active: isFocused,
1545
+ style: style
1546
+ }))))));
1547
+ };
1548
+
1340
1549
  var _templateObject$h, _templateObject2$8, _templateObject3$2;
1341
1550
  var ButtonWrapper = styled.Pressable(_templateObject$h || (_templateObject$h = _taggedTemplateLiteral([""])));
1342
1551
  var BorderWrapper = styled.View(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteral(["\n height: 18px;\n position: absolute;\n width: 100%;\n bottom: 10;\n z-index: 0;\n"])));
@@ -1414,14 +1623,12 @@ var TextBtn = function TextBtn(_ref) {
1414
1623
 
1415
1624
  var _templateObject$f, _templateObject2$6;
1416
1625
  styled.View(_templateObject$f || (_templateObject$f = _taggedTemplateLiteral([""])));
1417
- var ButtonStyle$4 = styled.Pressable(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteral(["\n min-height: ", ";\n width: 100%;\n border-radius: ", ";\n background-color: ", ";\n opacity: ", ";\n ", ";\n"])), function (props) {
1626
+ var ButtonStyle$4 = styled.Pressable(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteral(["\n min-height: ", ";\n width: 100%;\n border-radius: ", ";\n background-color: ", ";\n ", ";\n"])), function (props) {
1418
1627
  return props.size === "big" ? "60px" : "54px";
1419
1628
  }, function (props) {
1420
- return props.theme.borderRadiusMedium;
1421
- }, function (props) {
1422
- return props.color;
1629
+ return props.smallBorder ? props.theme.borderRadiusSmall : props.theme.borderRadiusMedium;
1423
1630
  }, function (props) {
1424
- return props.active ? 1 : 0.7;
1631
+ return props.active ? props.color : props.theme.greyButton;
1425
1632
  }, function (props) {
1426
1633
  return props.style;
1427
1634
  });
@@ -1436,6 +1643,8 @@ var RoundedBtn$1 = function RoundedBtn(_ref) {
1436
1643
  style = _ref.style,
1437
1644
  _ref$size = _ref.size,
1438
1645
  size = _ref$size === void 0 ? "big" : _ref$size,
1646
+ _ref$smallBorder = _ref.smallBorder,
1647
+ smallBorder = _ref$smallBorder === void 0 ? false : _ref$smallBorder,
1439
1648
  _ref$hitSlop = _ref.hitSlop,
1440
1649
  hitSlop = _ref$hitSlop === void 0 ? 0 : _ref$hitSlop;
1441
1650
  var scale = useSharedValue(1);
@@ -1450,6 +1659,7 @@ var RoundedBtn$1 = function RoundedBtn(_ref) {
1450
1659
  return /*#__PURE__*/React.createElement(Animated.View, {
1451
1660
  style: [animatedStyle]
1452
1661
  }, /*#__PURE__*/React.createElement(ButtonStyle$4, {
1662
+ smallBorder: smallBorder,
1453
1663
  hitSlop: hitSlop,
1454
1664
  size: size,
1455
1665
  active: active,
@@ -54222,11 +54432,19 @@ var Item = function Item(_ref) {
54222
54432
  source: {
54223
54433
  uri: item.src
54224
54434
  }
54225
- }), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Box, {
54435
+ }), /*#__PURE__*/React.createElement(Row, {
54436
+ style: {
54437
+ alignItems: "center"
54438
+ }
54439
+ }, /*#__PURE__*/React.createElement(Box, {
54226
54440
  style: {
54227
54441
  flex: 4
54228
54442
  }
54229
- }, /*#__PURE__*/React.createElement(MarginHorizontal, null, /*#__PURE__*/React.createElement(H4Text, null, item.name))), variant === "countryCode" && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(MarginHorizontal, null, /*#__PURE__*/React.createElement(H4Text, null, item.code)))))))));
54443
+ }, /*#__PURE__*/React.createElement(MarginHorizontal, null, /*#__PURE__*/React.createElement(H4Text, null, item.name))), variant === "countryCode" && /*#__PURE__*/React.createElement(Box, {
54444
+ style: {
54445
+ flex: 3
54446
+ }
54447
+ }, /*#__PURE__*/React.createElement(MarginHorizontal, null, /*#__PURE__*/React.createElement(H4Text, null, item.code)))))))));
54230
54448
  };
54231
54449
 
54232
54450
  function NewCustomer(_ref2) {
@@ -54343,4 +54561,4 @@ function NewCustomer(_ref2) {
54343
54561
  }));
54344
54562
  }
54345
54563
 
54346
- export { AnimatedButton$1 as AnimatedButton, AnimatedPlaceholder, AnimatedRoundedButton, BottomNavBar, Box, Center, CenterLeft, CenterRight, NewCustomer as CountryList, Error, ErrorText, AnimatedButton as FeedbackButton, FlatList, RoundBtn$1 as FloatingBtn, FullScreen, H1Text as H1, H2Text as H2, H3Text as H3, H4Text as H4, H5Text as H5, Header, Icon, Input$1 as Input, Input as InputNormal, InputOtp, Loader, Margin, MarginBottom, MarginHorizontal, MarginRight, MarginTop, MarginVertical, pText as P, Padding, PaddingBottom, PaddingHorizontal, PaddingTop, PaddingVertical, RoundBtn$3 as RoundBtn, RoundedBtn$1 as RoundedBtn, RoundedTopBox, Row, SpanText as Span, Stretch, Success, SwipeButton, Switch, TextBtn, ThemeWrapper, WebSmallWrapper, useThemeContext };
54564
+ export { AnimatedButton$1 as AnimatedButton, AnimatedPlaceholder, AnimatedRoundedButton, BottomNavBar, Box, Center, CenterLeft, CenterRight, NewCustomer as CountryList, Error, ErrorText, AnimatedButton as FeedbackButton, FlatList, RoundBtn$1 as FloatingBtn, FullScreen, H1Text as H1, H2Text as H2, H3Text as H3, H4Text as H4, H5Text as H5, Header, Icon, Input$1 as Input, Input as InputNormal, InputOtp, InputPhone, Loader, Margin, MarginBottom, MarginHorizontal, MarginRight, MarginTop, MarginVertical, pText as P, Padding, PaddingBottom, PaddingHorizontal, PaddingTop, PaddingVertical, RoundBtn$3 as RoundBtn, RoundedBtn$1 as RoundedBtn, RoundedTopBox, Row, SpanText as Span, Stretch, Success, SwipeButton, Switch, TextBtn, ThemeWrapper, WebSmallWrapper, useThemeContext };