@servesall/atoms 1.1.7 → 1.1.10

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.
@@ -241,6 +241,7 @@ var colors = {
241
241
  greenLight: "#F3FFFC",
242
242
  greenDark: "#236A56",
243
243
  greyText: "#b2bec3",
244
+ greyButton: "#94A3A9",
244
245
  red: "#ff7675",
245
246
  redlight: "#FFFAF9",
246
247
  redDark: "#9C4140",
@@ -296,8 +297,8 @@ var useThemeContext = function useThemeContext() {
296
297
  return React__default["default"].useContext(styled.ThemeContext);
297
298
  };
298
299
 
299
- var _templateObject$m, _templateObject2$d, _templateObject3$6, _templateObject4$1, _templateObject5$1, _templateObject6$1, _templateObject7$1;
300
- var H1 = styled__default["default"].Text(_templateObject$m || (_templateObject$m = _taggedTemplateLiteral(["\n font-size: ", ";\n font-family: ", ";\n text-align: ", ";\n color: ", ";\n line-height: ", ";\n ", ";\n"])), function (props) {
300
+ var _templateObject$n, _templateObject2$e, _templateObject3$7, _templateObject4$1, _templateObject5$1, _templateObject6$1, _templateObject7$1;
301
+ var H1 = styled__default["default"].Text(_templateObject$n || (_templateObject$n = _taggedTemplateLiteral(["\n font-size: ", ";\n font-family: ", ";\n text-align: ", ";\n color: ", ";\n line-height: ", ";\n ", ";\n"])), function (props) {
301
302
  return props.theme.large;
302
303
  }, function (props) {
303
304
  return props.fontFamily || props.theme.fontFamily1;
@@ -310,7 +311,7 @@ var H1 = styled__default["default"].Text(_templateObject$m || (_templateObject$m
310
311
  }, function (props) {
311
312
  return props.style;
312
313
  });
313
- var H2 = styled__default["default"].Text(_templateObject2$d || (_templateObject2$d = _taggedTemplateLiteral(["\n font-size: ", ";\n font-family: ", ";\n text-align: ", ";\n color: ", ";\n line-height: ", ";\n ", ";\n"])), function (props) {
314
+ var H2 = styled__default["default"].Text(_templateObject2$e || (_templateObject2$e = _taggedTemplateLiteral(["\n font-size: ", ";\n font-family: ", ";\n text-align: ", ";\n color: ", ";\n line-height: ", ";\n ", ";\n"])), function (props) {
314
315
  return props.theme.medium;
315
316
  }, function (props) {
316
317
  return props.fontFamily || props.theme.fontFamily1;
@@ -323,7 +324,7 @@ var H2 = styled__default["default"].Text(_templateObject2$d || (_templateObject2
323
324
  }, function (props) {
324
325
  return props.style;
325
326
  });
326
- var H3 = styled__default["default"].Text(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteral(["\n font-size: ", ";\n font-family: ", ";\n text-align: ", ";\n color: ", ";\n line-height: ", ";\n ", ";\n"])), function (props) {
327
+ var H3 = styled__default["default"].Text(_templateObject3$7 || (_templateObject3$7 = _taggedTemplateLiteral(["\n font-size: ", ";\n font-family: ", ";\n text-align: ", ";\n color: ", ";\n line-height: ", ";\n ", ";\n"])), function (props) {
327
328
  return props.theme.small;
328
329
  }, function (props) {
329
330
  return props.fontFamily || props.theme.fontFamily1;
@@ -550,14 +551,14 @@ SpanText.propTypes = {
550
551
  style: PropTypes__default["default"].object
551
552
  };
552
553
 
553
- var _templateObject$l, _templateObject2$c, _templateObject3$5, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19;
554
+ var _templateObject$m, _templateObject2$d, _templateObject3$6, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21;
554
555
  var DEFAULT_FLEX_DIRECTION = reactNative.Platform.OS === "web" ? "column" : "column";
555
- var CenterElement = styled__default["default"].View(_templateObject$l || (_templateObject$l = _taggedTemplateLiteral(["\n align-items: center;\n justify-content: center;\n flex: 1;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
556
+ var CenterElement = styled__default["default"].View(_templateObject$m || (_templateObject$m = _taggedTemplateLiteral(["\n align-items: center;\n justify-content: center;\n flex: 1;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
556
557
  return props.flexDirection || DEFAULT_FLEX_DIRECTION;
557
558
  }, function (props) {
558
559
  return props.style;
559
560
  });
560
- var CenterLeftElement = styled__default["default"].View(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteral(["\n align-items: ", ";\n justify-content: ", ";\n flex: 1;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
561
+ var CenterLeftElement = styled__default["default"].View(_templateObject2$d || (_templateObject2$d = _taggedTemplateLiteral(["\n align-items: ", ";\n justify-content: ", ";\n flex: 1;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
561
562
  return (props.flexDirection || DEFAULT_FLEX_DIRECTION) === "row" ? "center" : "flex-start";
562
563
  }, function (props) {
563
564
  return (props.flexDirection || DEFAULT_FLEX_DIRECTION) === "row" ? "flex-start" : "center";
@@ -566,7 +567,7 @@ var CenterLeftElement = styled__default["default"].View(_templateObject2$c || (_
566
567
  }, function (props) {
567
568
  return props.style;
568
569
  });
569
- var CenterRightElement = styled__default["default"].View(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteral(["\n align-items: ", ";\n justify-content: ", ";\n flex: 1;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
570
+ var CenterRightElement = styled__default["default"].View(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteral(["\n align-items: ", ";\n justify-content: ", ";\n flex: 1;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
570
571
  return (props.flexDirection || DEFAULT_FLEX_DIRECTION) === "row" ? "center" : "flex-end";
571
572
  }, function (props) {
572
573
  return (props.flexDirection || DEFAULT_FLEX_DIRECTION) === "row" ? "flex-end" : "center";
@@ -652,25 +653,39 @@ var PaddingBottomElement = styled__default["default"].View(_templateObject14 ||
652
653
  }, function (props) {
653
654
  return props.style;
654
655
  });
655
- var RowElement = styled__default["default"].View(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n flex-direction: row;\n ", ";\n"])), function (props) {
656
+ var PaddingLeftElement = styled__default["default"].View(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n padding-left: ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
657
+ return props.theme.padding;
658
+ }, function (props) {
659
+ return props.flexDirection || DEFAULT_FLEX_DIRECTION;
660
+ }, function (props) {
661
+ return props.style;
662
+ });
663
+ var PaddingRightElement = styled__default["default"].View(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n padding-right: ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
664
+ return props.theme.padding;
665
+ }, function (props) {
666
+ return props.flexDirection || DEFAULT_FLEX_DIRECTION;
667
+ }, function (props) {
656
668
  return props.style;
657
669
  });
658
- var StretchElement = styled__default["default"].View(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n align-items: stretch;\n align-self: stretch;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
670
+ var RowElement = styled__default["default"].View(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n flex-direction: row;\n ", ";\n"])), function (props) {
671
+ return props.style;
672
+ });
673
+ var StretchElement = styled__default["default"].View(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n align-items: stretch;\n align-self: stretch;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
659
674
  return props.flexDirection || DEFAULT_FLEX_DIRECTION;
660
675
  }, function (props) {
661
676
  return props.style;
662
677
  });
663
- var BoxElement = styled__default["default"].View(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n flex: 1;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
678
+ var BoxElement = styled__default["default"].View(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n flex: 1;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
664
679
  return props.flexDirection || DEFAULT_FLEX_DIRECTION;
665
680
  }, function (props) {
666
681
  return props.style;
667
682
  });
668
- var FullScreenElement = styled__default["default"].View(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 11;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
683
+ var FullScreenElement = styled__default["default"].View(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 11;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
669
684
  return props.flexDirection || DEFAULT_FLEX_DIRECTION;
670
685
  }, function (props) {
671
686
  return props.style;
672
687
  });
673
- var WebSmallWrapperElement = styled__default["default"].View(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n flex-direction: ", ";\n width: 500px;\n ", ";\n"])), function (props) {
688
+ var WebSmallWrapperElement = styled__default["default"].View(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n flex-direction: ", ";\n width: 500px;\n ", ";\n"])), function (props) {
674
689
  return props.flexDirection || DEFAULT_FLEX_DIRECTION;
675
690
  }, function (props) {
676
691
  return props.style;
@@ -830,6 +845,28 @@ var PaddingBottom = function PaddingBottom(_ref) {
830
845
  }, children);
831
846
  };
832
847
 
848
+ var PaddingLeft = function PaddingLeft(_ref) {
849
+ var children = _ref.children,
850
+ style = _ref.style,
851
+ _ref$direction = _ref.direction,
852
+ direction = _ref$direction === void 0 ? false : _ref$direction;
853
+ return /*#__PURE__*/React__default["default"].createElement(PaddingLeftElement, {
854
+ style: style,
855
+ flexDirection: direction
856
+ }, children);
857
+ };
858
+
859
+ var PaddingRight = function PaddingRight(_ref) {
860
+ var children = _ref.children,
861
+ style = _ref.style,
862
+ _ref$direction = _ref.direction,
863
+ direction = _ref$direction === void 0 ? false : _ref$direction;
864
+ return /*#__PURE__*/React__default["default"].createElement(PaddingRightElement, {
865
+ style: style,
866
+ flexDirection: direction
867
+ }, children);
868
+ };
869
+
833
870
  var Row = function Row(_ref) {
834
871
  var children = _ref.children,
835
872
  style = _ref.style;
@@ -901,22 +938,22 @@ var RoundedTopBox = function RoundedTopBox(_ref) {
901
938
  }, children);
902
939
  };
903
940
 
904
- var _templateObject$k, _templateObject2$b, _templateObject3$4;
905
- var InputWrapper$1 = styled__default["default"].Pressable(_templateObject$k || (_templateObject$k = _taggedTemplateLiteral(["\n min-height: 80px;\n"])));
906
- var InputElement$1 = styled__default["default"].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) {
941
+ var _templateObject$l, _templateObject2$c, _templateObject3$5;
942
+ var InputWrapper$2 = styled__default["default"].Pressable(_templateObject$l || (_templateObject$l = _taggedTemplateLiteral(["\n min-height: 80px;\n"])));
943
+ var InputElement$2 = styled__default["default"].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) {
907
944
  return props.theme.fontFamily2;
908
945
  }, function (props) {
909
946
  return props.theme.small;
910
947
  }, function (props) {
911
948
  return props.theme.color2;
912
949
  });
913
- var BorderWrapper$2 = styled__default["default"].View(_templateObject3$4 || (_templateObject3$4 = _taggedTemplateLiteral(["\n height: 4px;\n"])));
950
+ var BorderWrapper$3 = styled__default["default"].View(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteral(["\n height: 4px;\n"])));
914
951
 
915
- var _templateObject$j, _templateObject2$a;
916
- var BorderIdle$1 = styled__default["default"].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) {
952
+ var _templateObject$k, _templateObject2$b;
953
+ var BorderIdle$1 = styled__default["default"].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) {
917
954
  return props.color;
918
955
  });
919
- var BorderActive$1 = styled__default["default"].View(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteral(["\n height: 4px;\n background-color: ", ";\n z-index: 11;\n"])), function (props) {
956
+ var BorderActive$1 = styled__default["default"].View(_templateObject2$b || (_templateObject2$b = _taggedTemplateLiteral(["\n height: 4px;\n background-color: ", ";\n z-index: 11;\n"])), function (props) {
920
957
  return props.color;
921
958
  });
922
959
 
@@ -952,7 +989,7 @@ var Line$1 = function Line(_ref) {
952
989
  })));
953
990
  };
954
991
 
955
- var PlaceholderElement$1 = /*#__PURE__*/React__default["default"].memo(function (_ref) {
992
+ var PlaceholderElement$2 = /*#__PURE__*/React__default["default"].memo(function (_ref) {
956
993
  var children = _ref.children,
957
994
  active = _ref.active;
958
995
  var bottom = Animated.useSharedValue(active ? 50 : 4);
@@ -1032,18 +1069,18 @@ var Input$1 = function Input(_ref) {
1032
1069
  return /*#__PURE__*/React__default["default"].createElement(reactNative.KeyboardAvoidingView, {
1033
1070
  behavior: reactNative.Platform.OS === "ios" ? "padding" : "height",
1034
1071
  keyboardVerticalOffset: keyboardVerticalOffset
1035
- }, /*#__PURE__*/React__default["default"].createElement(InputWrapper$1, {
1072
+ }, /*#__PURE__*/React__default["default"].createElement(InputWrapper$2, {
1036
1073
  onPress: function onPress() {
1037
1074
  var _inputRef$current2;
1038
1075
 
1039
1076
  setIsFocused(true);
1040
1077
  (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus();
1041
1078
  }
1042
- }, /*#__PURE__*/React__default["default"].createElement(PlaceholderElement$1, {
1079
+ }, /*#__PURE__*/React__default["default"].createElement(PlaceholderElement$2, {
1043
1080
  active: isFocused || textValue && textValue.length > 0
1044
1081
  }, !hasError ? children : /*#__PURE__*/React__default["default"].createElement(H3Text, {
1045
1082
  color: borderColorError
1046
- }, error || hasError)), /*#__PURE__*/React__default["default"].createElement(InputElement$1, {
1083
+ }, error || hasError)), /*#__PURE__*/React__default["default"].createElement(InputElement$2, {
1047
1084
  ref: inputRef,
1048
1085
  onFocus: function onFocus() {
1049
1086
  return setIsFocused(true);
@@ -1063,7 +1100,7 @@ var Input$1 = function Input(_ref) {
1063
1100
  keyboardType: keyboardType,
1064
1101
  editable: editable,
1065
1102
  style: style
1066
- }), /*#__PURE__*/React__default["default"].createElement(BorderWrapper$2, null, /*#__PURE__*/React__default["default"].createElement(Line$1, {
1103
+ }), /*#__PURE__*/React__default["default"].createElement(BorderWrapper$3, null, /*#__PURE__*/React__default["default"].createElement(Line$1, {
1067
1104
  active: isFocused,
1068
1105
  borderColorActive: borderColorActive,
1069
1106
  borderColorIdle: borderColorIdle,
@@ -1210,9 +1247,9 @@ var InputOtp = function InputOtp(props) {
1210
1247
  }))));
1211
1248
  };
1212
1249
 
1213
- var _templateObject$i, _templateObject2$9, _templateObject3$3;
1214
- var InputWrapper = styled__default["default"].Pressable(_templateObject$i || (_templateObject$i = _taggedTemplateLiteral(["\n min-height: 70px;\n"])));
1215
- var InputElement = styled__default["default"].TextInput(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteral(["\n min-height: 40px;\n font-family: ", ";\n font-size: ", ";\n color: ", ";\n background-color: ", ";\n"])), function (props) {
1250
+ var _templateObject$j, _templateObject2$a, _templateObject3$4;
1251
+ var InputWrapper$1 = styled__default["default"].Pressable(_templateObject$j || (_templateObject$j = _taggedTemplateLiteral(["\n min-height: 70px;\n"])));
1252
+ var InputElement$1 = styled__default["default"].TextInput(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteral(["\n min-height: 40px;\n font-family: ", ";\n font-size: ", ";\n color: ", ";\n background-color: ", ";\n"])), function (props) {
1216
1253
  return props.theme.fontFamily2;
1217
1254
  }, function (props) {
1218
1255
  return props.theme.small;
@@ -1221,15 +1258,31 @@ var InputElement = styled__default["default"].TextInput(_templateObject2$9 || (_
1221
1258
  }, function (props) {
1222
1259
  return props.active ? props.theme.color1 : props.theme.color10;
1223
1260
  });
1224
- var BorderWrapper$1 = styled__default["default"].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) {
1261
+ var BorderWrapper$2 = styled__default["default"].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) {
1225
1262
  return props.color;
1226
1263
  }, function (props) {
1227
1264
  return props.theme.borderRadiusSmall;
1228
1265
  }, function (props) {
1229
1266
  return props.active ? props.theme.color1 : props.theme.color10;
1267
+ }, function (_ref) {
1268
+ var isRightBound = _ref.isRightBound,
1269
+ isLeftBound = _ref.isLeftBound,
1270
+ active = _ref.active;
1271
+
1272
+ if (isRightBound) {
1273
+ if (!active) {
1274
+ return "borderTopRightRadius: 0px; borderBottomRightRadius: 0px; border-right-width: 0px;";
1275
+ }
1276
+
1277
+ return "borderTopRightRadius: 0px; borderBottomRightRadius: 0px;";
1278
+ }
1279
+
1280
+ if (isLeftBound) {
1281
+ return "borderTopLeftRadius: 0px; borderBottomLeftRadius: 0px;";
1282
+ }
1230
1283
  });
1231
1284
 
1232
- var PlaceholderElement = /*#__PURE__*/React__default["default"].memo(function (_ref) {
1285
+ var PlaceholderElement$1 = /*#__PURE__*/React__default["default"].memo(function (_ref) {
1233
1286
  var children = _ref.children,
1234
1287
  active = _ref.active;
1235
1288
  var top = Animated.useSharedValue(active ? 10 : 30);
@@ -1286,7 +1339,11 @@ var Input = function Input(_ref) {
1286
1339
  keyboardVerticalOffset = _ref$keyboardVertical === void 0 ? 0 : _ref$keyboardVertical,
1287
1340
  _ref$hasError = _ref.hasError,
1288
1341
  hasError = _ref$hasError === void 0 ? false : _ref$hasError,
1289
- error = _ref.error;
1342
+ error = _ref.error,
1343
+ _ref$isRightBound = _ref.isRightBound,
1344
+ isRightBound = _ref$isRightBound === void 0 ? false : _ref$isRightBound,
1345
+ _ref$isLeftBound = _ref.isLeftBound,
1346
+ isLeftBound = _ref$isLeftBound === void 0 ? false : _ref$isLeftBound;
1290
1347
 
1291
1348
  var _useState = React.useState(false),
1292
1349
  _useState2 = _slicedToArray(_useState, 2),
@@ -1310,7 +1367,7 @@ var Input = function Input(_ref) {
1310
1367
  return /*#__PURE__*/React__default["default"].createElement(reactNative.KeyboardAvoidingView, {
1311
1368
  behavior: reactNative.Platform.OS === "ios" ? "padding" : "height",
1312
1369
  keyboardVerticalOffset: keyboardVerticalOffset
1313
- }, /*#__PURE__*/React__default["default"].createElement(InputWrapper, {
1370
+ }, /*#__PURE__*/React__default["default"].createElement(InputWrapper$1, {
1314
1371
  onPress: function onPress() {
1315
1372
  var _inputRef$current2;
1316
1373
 
@@ -1319,14 +1376,16 @@ var Input = function Input(_ref) {
1319
1376
  editable && setIsFocused(true);
1320
1377
  editable && ((_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus());
1321
1378
  }
1322
- }, /*#__PURE__*/React__default["default"].createElement(BorderWrapper$1, {
1379
+ }, /*#__PURE__*/React__default["default"].createElement(BorderWrapper$2, {
1380
+ isRightBound: isRightBound,
1381
+ isLeftBound: isLeftBound,
1323
1382
  active: isFocused,
1324
1383
  color: !hasError ? isFocused ? borderColorActive : borderColorIdle : borderColorError
1325
- }, /*#__PURE__*/React__default["default"].createElement(PlaceholderElement, {
1384
+ }, /*#__PURE__*/React__default["default"].createElement(PlaceholderElement$1, {
1326
1385
  active: isFocused || textValue && textValue.length > 0 || value && value.length > 0
1327
1386
  }, /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, !hasError ? children : /*#__PURE__*/React__default["default"].createElement(H4Text, {
1328
1387
  color: borderColorError
1329
- }, error || hasError))), /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, /*#__PURE__*/React__default["default"].createElement(InputElement, {
1388
+ }, error || hasError))), /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, /*#__PURE__*/React__default["default"].createElement(InputElement$1, {
1330
1389
  ref: inputRef,
1331
1390
  onFocus: function onFocus() {
1332
1391
  return setIsFocused(true);
@@ -1350,6 +1409,192 @@ var Input = function Input(_ref) {
1350
1409
  })))));
1351
1410
  };
1352
1411
 
1412
+ var _templateObject$i, _templateObject2$9, _templateObject3$3;
1413
+ var InputWrapper = styled__default["default"].Pressable(_templateObject$i || (_templateObject$i = _taggedTemplateLiteral(["\n min-height: 70px;\n"])));
1414
+ var InputElement = styled__default["default"].TextInput(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteral(["\n min-height: 40px;\n font-family: ", ";\n font-size: ", ";\n color: ", ";\n background-color: ", ";\n"])), function (props) {
1415
+ return props.theme.fontFamily2;
1416
+ }, function (props) {
1417
+ return props.theme.small;
1418
+ }, function (props) {
1419
+ return props.theme.color2;
1420
+ }, function (props) {
1421
+ return props.active ? props.theme.color1 : props.theme.color10;
1422
+ });
1423
+ var BorderWrapper$1 = styled__default["default"].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) {
1424
+ return props.color;
1425
+ }, function (props) {
1426
+ return props.theme.borderRadiusSmall;
1427
+ }, function (props) {
1428
+ return props.active ? props.theme.color1 : props.theme.color10;
1429
+ });
1430
+
1431
+ var PlaceholderElement = /*#__PURE__*/React__default["default"].memo(function (_ref) {
1432
+ var children = _ref.children,
1433
+ active = _ref.active;
1434
+ var top = Animated.useSharedValue(active ? 10 : 30);
1435
+ var animatedStyle = Animated.useAnimatedStyle(function () {
1436
+ return {
1437
+ top: Animated.withTiming(top.value, {
1438
+ duration: 250,
1439
+ easing: Animated.Easing.bezier(0.19, 1.0, 0.22, 1.0)
1440
+ })
1441
+ };
1442
+ });
1443
+ React.useEffect(function () {
1444
+ if (active) {
1445
+ top.value = 10;
1446
+ }
1447
+
1448
+ if (!active) {
1449
+ top.value = 30;
1450
+ }
1451
+ }, [active]);
1452
+ return /*#__PURE__*/React__default["default"].createElement(Animated__default["default"].View, {
1453
+ style: [{
1454
+ position: "absolute",
1455
+ zIndex: 1,
1456
+ justifyContent: "center"
1457
+ }, animatedStyle]
1458
+ }, children);
1459
+ });
1460
+
1461
+ var InputPhone = function InputPhone(_ref) {
1462
+ var children = _ref.children,
1463
+ style = _ref.style,
1464
+ borderColorIdle = _ref.borderColorIdle,
1465
+ borderColorActive = _ref.borderColorActive,
1466
+ borderColorError = _ref.borderColorError,
1467
+ _ref$textChangePrefix = _ref.textChangePrefix,
1468
+ textChangePrefix = _ref$textChangePrefix === void 0 ? function () {} : _ref$textChangePrefix,
1469
+ _ref$textChangeNumber = _ref.textChangeNumber,
1470
+ textChangeNumber = _ref$textChangeNumber === void 0 ? function () {} : _ref$textChangeNumber,
1471
+ _ref$onPress = _ref.onPress,
1472
+ _onPress = _ref$onPress === void 0 ? function () {} : _ref$onPress,
1473
+ valuePrefix = _ref.valuePrefix,
1474
+ valueNumber = _ref.valueNumber,
1475
+ defaultValuePrefix = _ref.defaultValuePrefix,
1476
+ defaultValueNumber = _ref.defaultValueNumber,
1477
+ _ref$multiline = _ref.multiline,
1478
+ multiline = _ref$multiline === void 0 ? false : _ref$multiline,
1479
+ _ref$numberOfLines = _ref.numberOfLines,
1480
+ numberOfLines = _ref$numberOfLines === void 0 ? 1 : _ref$numberOfLines,
1481
+ _ref$maxLength = _ref.maxLength,
1482
+ maxLength = _ref$maxLength === void 0 ? 1000 : _ref$maxLength,
1483
+ _ref$autoFocus = _ref.autoFocus,
1484
+ autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus,
1485
+ keyboardType = _ref.keyboardType,
1486
+ _ref$editable = _ref.editable,
1487
+ editable = _ref$editable === void 0 ? true : _ref$editable,
1488
+ _ref$keyboardVertical = _ref.keyboardVerticalOffset,
1489
+ keyboardVerticalOffset = _ref$keyboardVertical === void 0 ? 0 : _ref$keyboardVertical,
1490
+ _ref$hasError = _ref.hasError,
1491
+ hasError = _ref$hasError === void 0 ? false : _ref$hasError,
1492
+ error = _ref.error;
1493
+
1494
+ var _useState = React.useState(false),
1495
+ _useState2 = _slicedToArray(_useState, 2),
1496
+ isFocused = _useState2[0],
1497
+ setIsFocused = _useState2[1];
1498
+
1499
+ var _useState3 = React.useState(valuePrefix || defaultValuePrefix),
1500
+ _useState4 = _slicedToArray(_useState3, 2),
1501
+ textValue = _useState4[0],
1502
+ setTextValue = _useState4[1];
1503
+
1504
+ var _useState5 = React.useState(false),
1505
+ _useState6 = _slicedToArray(_useState5, 2),
1506
+ isFocusedPrefix = _useState6[0],
1507
+ setIsFocusedPrefix = _useState6[1];
1508
+
1509
+ var _useState7 = React.useState(valueNumber || defaultValueNumber),
1510
+ _useState8 = _slicedToArray(_useState7, 2),
1511
+ textPrefixValue = _useState8[0],
1512
+ setTextPrefixValue = _useState8[1];
1513
+
1514
+ var inputRef = React.useRef();
1515
+ React.useEffect(function () {
1516
+ textChangeNumber(textValue);
1517
+ }, [textValue]);
1518
+ React.useEffect(function () {
1519
+ textChangePrefix(textPrefixValue);
1520
+ }, [textPrefixValue]);
1521
+ React.useEffect(function () {
1522
+ var _inputRef$current;
1523
+
1524
+ autoFocus && ((_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus());
1525
+ }, [autoFocus]);
1526
+ return /*#__PURE__*/React__default["default"].createElement(reactNative.KeyboardAvoidingView, {
1527
+ behavior: reactNative.Platform.OS === "ios" ? "padding" : "height",
1528
+ keyboardVerticalOffset: keyboardVerticalOffset
1529
+ }, /*#__PURE__*/React__default["default"].createElement(InputWrapper, {
1530
+ onPress: function onPress() {
1531
+ var _inputRef$current2;
1532
+
1533
+ _onPress();
1534
+
1535
+ editable && setIsFocused(true);
1536
+ editable && ((_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus());
1537
+ }
1538
+ }, /*#__PURE__*/React__default["default"].createElement(BorderWrapper$1, {
1539
+ active: isFocused,
1540
+ color: !hasError ? isFocused ? borderColorActive : borderColorIdle : borderColorError
1541
+ }, /*#__PURE__*/React__default["default"].createElement(Row, {
1542
+ style: {
1543
+ backgroundColor: "red",
1544
+ width: "100%"
1545
+ }
1546
+ }, /*#__PURE__*/React__default["default"].createElement(Box, null, /*#__PURE__*/React__default["default"].createElement(PlaceholderElement, {
1547
+ active: isFocusedPrefix || textPrefixValue && textPrefixValue.length > 0 || valuePrefix && valuePrefix.length > 0
1548
+ }, /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, !hasError ? children[0] : /*#__PURE__*/React__default["default"].createElement(H4Text, {
1549
+ color: borderColorError
1550
+ }, error || hasError)))), /*#__PURE__*/React__default["default"].createElement(Box, null, /*#__PURE__*/React__default["default"].createElement(PlaceholderElement, {
1551
+ active: isFocused || textValue && textValue.length > 0 || valueNumber && valueNumber.length > 0
1552
+ }, /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, !hasError ? children[1] : /*#__PURE__*/React__default["default"].createElement(H4Text, {
1553
+ color: borderColorError
1554
+ }, error || hasError))))), /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, /*#__PURE__*/React__default["default"].createElement(Row, null, /*#__PURE__*/React__default["default"].createElement(InputElement, {
1555
+ onFocus: function onFocus() {
1556
+ return setIsFocusedPrefix(true);
1557
+ },
1558
+ onBlur: function onBlur() {
1559
+ return setIsFocusedPrefix(false);
1560
+ },
1561
+ onChangeText: function onChangeText(text) {
1562
+ return setTextPrefixValue(text);
1563
+ },
1564
+ defaultValue: defaultValuePrefix,
1565
+ value: valuePrefix,
1566
+ multiline: multiline,
1567
+ numberOfLines: numberOfLines,
1568
+ maxLength: maxLength,
1569
+ autoFocus: autoFocus,
1570
+ keyboardType: keyboardType,
1571
+ editable: editable,
1572
+ active: isFocusedPrefix,
1573
+ style: style
1574
+ }), /*#__PURE__*/React__default["default"].createElement(InputElement, {
1575
+ ref: inputRef,
1576
+ onFocus: function onFocus() {
1577
+ return setIsFocused(true);
1578
+ },
1579
+ onBlur: function onBlur() {
1580
+ return setIsFocused(false);
1581
+ },
1582
+ onChangeText: function onChangeText(text) {
1583
+ return setTextValue(text);
1584
+ },
1585
+ defaultValue: defaultValueNumber,
1586
+ value: valueNumber,
1587
+ multiline: multiline,
1588
+ numberOfLines: numberOfLines,
1589
+ maxLength: maxLength,
1590
+ autoFocus: autoFocus,
1591
+ keyboardType: keyboardType,
1592
+ editable: editable,
1593
+ active: isFocused,
1594
+ style: style
1595
+ }))))));
1596
+ };
1597
+
1353
1598
  var _templateObject$h, _templateObject2$8, _templateObject3$2;
1354
1599
  var ButtonWrapper = styled__default["default"].Pressable(_templateObject$h || (_templateObject$h = _taggedTemplateLiteral([""])));
1355
1600
  var BorderWrapper = styled__default["default"].View(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteral(["\n height: 18px;\n position: absolute;\n width: 100%;\n bottom: 10;\n z-index: 0;\n"])));
@@ -1427,14 +1672,12 @@ var TextBtn = function TextBtn(_ref) {
1427
1672
 
1428
1673
  var _templateObject$f, _templateObject2$6;
1429
1674
  styled__default["default"].View(_templateObject$f || (_templateObject$f = _taggedTemplateLiteral([""])));
1430
- var ButtonStyle$4 = styled__default["default"].Pressable(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteral(["\n min-height: ", ";\n width: 100%;\n border-radius: ", ";\n background-color: ", ";\n opacity: ", ";\n ", ";\n"])), function (props) {
1675
+ var ButtonStyle$4 = styled__default["default"].Pressable(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteral(["\n min-height: ", ";\n width: 100%;\n border-radius: ", ";\n background-color: ", ";\n ", ";\n"])), function (props) {
1431
1676
  return props.size === "big" ? "60px" : "54px";
1432
1677
  }, function (props) {
1433
- return props.theme.borderRadiusMedium;
1678
+ return props.smallBorder ? props.theme.borderRadiusSmall : props.theme.borderRadiusMedium;
1434
1679
  }, function (props) {
1435
- return props.color;
1436
- }, function (props) {
1437
- return props.active ? 1 : 0.7;
1680
+ return props.active ? props.color : props.theme.greyButton;
1438
1681
  }, function (props) {
1439
1682
  return props.style;
1440
1683
  });
@@ -1449,6 +1692,8 @@ var RoundedBtn$1 = function RoundedBtn(_ref) {
1449
1692
  style = _ref.style,
1450
1693
  _ref$size = _ref.size,
1451
1694
  size = _ref$size === void 0 ? "big" : _ref$size,
1695
+ _ref$smallBorder = _ref.smallBorder,
1696
+ smallBorder = _ref$smallBorder === void 0 ? false : _ref$smallBorder,
1452
1697
  _ref$hitSlop = _ref.hitSlop,
1453
1698
  hitSlop = _ref$hitSlop === void 0 ? 0 : _ref$hitSlop;
1454
1699
  var scale = Animated.useSharedValue(1);
@@ -1463,6 +1708,7 @@ var RoundedBtn$1 = function RoundedBtn(_ref) {
1463
1708
  return /*#__PURE__*/React__default["default"].createElement(Animated__default["default"].View, {
1464
1709
  style: [animatedStyle]
1465
1710
  }, /*#__PURE__*/React__default["default"].createElement(ButtonStyle$4, {
1711
+ smallBorder: smallBorder,
1466
1712
  hitSlop: hitSlop,
1467
1713
  size: size,
1468
1714
  active: active,
@@ -54235,11 +54481,19 @@ var Item = function Item(_ref) {
54235
54481
  source: {
54236
54482
  uri: item.src
54237
54483
  }
54238
- }), /*#__PURE__*/React__default["default"].createElement(Row, null, /*#__PURE__*/React__default["default"].createElement(Box, {
54484
+ }), /*#__PURE__*/React__default["default"].createElement(Row, {
54485
+ style: {
54486
+ alignItems: "center"
54487
+ }
54488
+ }, /*#__PURE__*/React__default["default"].createElement(Box, {
54239
54489
  style: {
54240
54490
  flex: 4
54241
54491
  }
54242
- }, /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, /*#__PURE__*/React__default["default"].createElement(H4Text, null, item.name))), variant === "countryCode" && /*#__PURE__*/React__default["default"].createElement(Box, null, /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, /*#__PURE__*/React__default["default"].createElement(H4Text, null, item.code)))))))));
54492
+ }, /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, /*#__PURE__*/React__default["default"].createElement(H4Text, null, item.name))), variant === "countryCode" && /*#__PURE__*/React__default["default"].createElement(Box, {
54493
+ style: {
54494
+ flex: 3
54495
+ }
54496
+ }, /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, /*#__PURE__*/React__default["default"].createElement(H4Text, null, item.code)))))))));
54243
54497
  };
54244
54498
 
54245
54499
  function NewCustomer(_ref2) {
@@ -54381,6 +54635,7 @@ exports.Icon = Icon;
54381
54635
  exports.Input = Input$1;
54382
54636
  exports.InputNormal = Input;
54383
54637
  exports.InputOtp = InputOtp;
54638
+ exports.InputPhone = InputPhone;
54384
54639
  exports.Loader = Loader;
54385
54640
  exports.Margin = Margin;
54386
54641
  exports.MarginBottom = MarginBottom;
@@ -54392,6 +54647,8 @@ exports.P = pText;
54392
54647
  exports.Padding = Padding;
54393
54648
  exports.PaddingBottom = PaddingBottom;
54394
54649
  exports.PaddingHorizontal = PaddingHorizontal;
54650
+ exports.PaddingLeft = PaddingLeft;
54651
+ exports.PaddingRight = PaddingRight;
54395
54652
  exports.PaddingTop = PaddingTop;
54396
54653
  exports.PaddingVertical = PaddingVertical;
54397
54654
  exports.RoundBtn = RoundBtn$3;