@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.
@@ -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, _templateObject20, _templateObject21;
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";
@@ -639,25 +640,39 @@ var PaddingBottomElement = styled.View(_templateObject14 || (_templateObject14 =
639
640
  }, function (props) {
640
641
  return props.style;
641
642
  });
642
- var RowElement = styled.View(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n flex-direction: row;\n ", ";\n"])), function (props) {
643
+ var PaddingLeftElement = styled.View(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n padding-left: ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
644
+ return props.theme.padding;
645
+ }, function (props) {
646
+ return props.flexDirection || DEFAULT_FLEX_DIRECTION;
647
+ }, function (props) {
648
+ return props.style;
649
+ });
650
+ var PaddingRightElement = styled.View(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n padding-right: ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
651
+ return props.theme.padding;
652
+ }, function (props) {
653
+ return props.flexDirection || DEFAULT_FLEX_DIRECTION;
654
+ }, function (props) {
643
655
  return props.style;
644
656
  });
645
- var StretchElement = styled.View(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n align-items: stretch;\n align-self: stretch;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
657
+ var RowElement = styled.View(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n flex-direction: row;\n ", ";\n"])), function (props) {
658
+ return props.style;
659
+ });
660
+ var StretchElement = styled.View(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n align-items: stretch;\n align-self: stretch;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
646
661
  return props.flexDirection || DEFAULT_FLEX_DIRECTION;
647
662
  }, function (props) {
648
663
  return props.style;
649
664
  });
650
- var BoxElement = styled.View(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n flex: 1;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
665
+ var BoxElement = styled.View(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n flex: 1;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
651
666
  return props.flexDirection || DEFAULT_FLEX_DIRECTION;
652
667
  }, function (props) {
653
668
  return props.style;
654
669
  });
655
- var FullScreenElement = styled.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) {
670
+ var FullScreenElement = styled.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) {
656
671
  return props.flexDirection || DEFAULT_FLEX_DIRECTION;
657
672
  }, function (props) {
658
673
  return props.style;
659
674
  });
660
- var WebSmallWrapperElement = styled.View(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n flex-direction: ", ";\n width: 500px;\n ", ";\n"])), function (props) {
675
+ var WebSmallWrapperElement = styled.View(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n flex-direction: ", ";\n width: 500px;\n ", ";\n"])), function (props) {
661
676
  return props.flexDirection || DEFAULT_FLEX_DIRECTION;
662
677
  }, function (props) {
663
678
  return props.style;
@@ -817,6 +832,28 @@ var PaddingBottom = function PaddingBottom(_ref) {
817
832
  }, children);
818
833
  };
819
834
 
835
+ var PaddingLeft = function PaddingLeft(_ref) {
836
+ var children = _ref.children,
837
+ style = _ref.style,
838
+ _ref$direction = _ref.direction,
839
+ direction = _ref$direction === void 0 ? false : _ref$direction;
840
+ return /*#__PURE__*/React.createElement(PaddingLeftElement, {
841
+ style: style,
842
+ flexDirection: direction
843
+ }, children);
844
+ };
845
+
846
+ var PaddingRight = function PaddingRight(_ref) {
847
+ var children = _ref.children,
848
+ style = _ref.style,
849
+ _ref$direction = _ref.direction,
850
+ direction = _ref$direction === void 0 ? false : _ref$direction;
851
+ return /*#__PURE__*/React.createElement(PaddingRightElement, {
852
+ style: style,
853
+ flexDirection: direction
854
+ }, children);
855
+ };
856
+
820
857
  var Row = function Row(_ref) {
821
858
  var children = _ref.children,
822
859
  style = _ref.style;
@@ -888,22 +925,22 @@ var RoundedTopBox = function RoundedTopBox(_ref) {
888
925
  }, children);
889
926
  };
890
927
 
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) {
928
+ var _templateObject$l, _templateObject2$c, _templateObject3$5;
929
+ var InputWrapper$2 = styled.Pressable(_templateObject$l || (_templateObject$l = _taggedTemplateLiteral(["\n min-height: 80px;\n"])));
930
+ 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
931
  return props.theme.fontFamily2;
895
932
  }, function (props) {
896
933
  return props.theme.small;
897
934
  }, function (props) {
898
935
  return props.theme.color2;
899
936
  });
900
- var BorderWrapper$2 = styled.View(_templateObject3$4 || (_templateObject3$4 = _taggedTemplateLiteral(["\n height: 4px;\n"])));
937
+ var BorderWrapper$3 = styled.View(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteral(["\n height: 4px;\n"])));
901
938
 
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) {
939
+ var _templateObject$k, _templateObject2$b;
940
+ 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
941
  return props.color;
905
942
  });
906
- var BorderActive$1 = styled.View(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteral(["\n height: 4px;\n background-color: ", ";\n z-index: 11;\n"])), function (props) {
943
+ var BorderActive$1 = styled.View(_templateObject2$b || (_templateObject2$b = _taggedTemplateLiteral(["\n height: 4px;\n background-color: ", ";\n z-index: 11;\n"])), function (props) {
907
944
  return props.color;
908
945
  });
909
946
 
@@ -939,7 +976,7 @@ var Line$1 = function Line(_ref) {
939
976
  })));
940
977
  };
941
978
 
942
- var PlaceholderElement$1 = /*#__PURE__*/React.memo(function (_ref) {
979
+ var PlaceholderElement$2 = /*#__PURE__*/React.memo(function (_ref) {
943
980
  var children = _ref.children,
944
981
  active = _ref.active;
945
982
  var bottom = useSharedValue(active ? 50 : 4);
@@ -1019,18 +1056,18 @@ var Input$1 = function Input(_ref) {
1019
1056
  return /*#__PURE__*/React.createElement(KeyboardAvoidingView, {
1020
1057
  behavior: Platform.OS === "ios" ? "padding" : "height",
1021
1058
  keyboardVerticalOffset: keyboardVerticalOffset
1022
- }, /*#__PURE__*/React.createElement(InputWrapper$1, {
1059
+ }, /*#__PURE__*/React.createElement(InputWrapper$2, {
1023
1060
  onPress: function onPress() {
1024
1061
  var _inputRef$current2;
1025
1062
 
1026
1063
  setIsFocused(true);
1027
1064
  (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus();
1028
1065
  }
1029
- }, /*#__PURE__*/React.createElement(PlaceholderElement$1, {
1066
+ }, /*#__PURE__*/React.createElement(PlaceholderElement$2, {
1030
1067
  active: isFocused || textValue && textValue.length > 0
1031
1068
  }, !hasError ? children : /*#__PURE__*/React.createElement(H3Text, {
1032
1069
  color: borderColorError
1033
- }, error || hasError)), /*#__PURE__*/React.createElement(InputElement$1, {
1070
+ }, error || hasError)), /*#__PURE__*/React.createElement(InputElement$2, {
1034
1071
  ref: inputRef,
1035
1072
  onFocus: function onFocus() {
1036
1073
  return setIsFocused(true);
@@ -1050,7 +1087,7 @@ var Input$1 = function Input(_ref) {
1050
1087
  keyboardType: keyboardType,
1051
1088
  editable: editable,
1052
1089
  style: style
1053
- }), /*#__PURE__*/React.createElement(BorderWrapper$2, null, /*#__PURE__*/React.createElement(Line$1, {
1090
+ }), /*#__PURE__*/React.createElement(BorderWrapper$3, null, /*#__PURE__*/React.createElement(Line$1, {
1054
1091
  active: isFocused,
1055
1092
  borderColorActive: borderColorActive,
1056
1093
  borderColorIdle: borderColorIdle,
@@ -1197,9 +1234,9 @@ var InputOtp = function InputOtp(props) {
1197
1234
  }))));
1198
1235
  };
1199
1236
 
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) {
1237
+ var _templateObject$j, _templateObject2$a, _templateObject3$4;
1238
+ var InputWrapper$1 = styled.Pressable(_templateObject$j || (_templateObject$j = _taggedTemplateLiteral(["\n min-height: 70px;\n"])));
1239
+ 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
1240
  return props.theme.fontFamily2;
1204
1241
  }, function (props) {
1205
1242
  return props.theme.small;
@@ -1208,15 +1245,31 @@ var InputElement = styled.TextInput(_templateObject2$9 || (_templateObject2$9 =
1208
1245
  }, function (props) {
1209
1246
  return props.active ? props.theme.color1 : props.theme.color10;
1210
1247
  });
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) {
1248
+ 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
1249
  return props.color;
1213
1250
  }, function (props) {
1214
1251
  return props.theme.borderRadiusSmall;
1215
1252
  }, function (props) {
1216
1253
  return props.active ? props.theme.color1 : props.theme.color10;
1254
+ }, function (_ref) {
1255
+ var isRightBound = _ref.isRightBound,
1256
+ isLeftBound = _ref.isLeftBound,
1257
+ active = _ref.active;
1258
+
1259
+ if (isRightBound) {
1260
+ if (!active) {
1261
+ return "borderTopRightRadius: 0px; borderBottomRightRadius: 0px; border-right-width: 0px;";
1262
+ }
1263
+
1264
+ return "borderTopRightRadius: 0px; borderBottomRightRadius: 0px;";
1265
+ }
1266
+
1267
+ if (isLeftBound) {
1268
+ return "borderTopLeftRadius: 0px; borderBottomLeftRadius: 0px;";
1269
+ }
1217
1270
  });
1218
1271
 
1219
- var PlaceholderElement = /*#__PURE__*/React.memo(function (_ref) {
1272
+ var PlaceholderElement$1 = /*#__PURE__*/React.memo(function (_ref) {
1220
1273
  var children = _ref.children,
1221
1274
  active = _ref.active;
1222
1275
  var top = useSharedValue(active ? 10 : 30);
@@ -1273,7 +1326,11 @@ var Input = function Input(_ref) {
1273
1326
  keyboardVerticalOffset = _ref$keyboardVertical === void 0 ? 0 : _ref$keyboardVertical,
1274
1327
  _ref$hasError = _ref.hasError,
1275
1328
  hasError = _ref$hasError === void 0 ? false : _ref$hasError,
1276
- error = _ref.error;
1329
+ error = _ref.error,
1330
+ _ref$isRightBound = _ref.isRightBound,
1331
+ isRightBound = _ref$isRightBound === void 0 ? false : _ref$isRightBound,
1332
+ _ref$isLeftBound = _ref.isLeftBound,
1333
+ isLeftBound = _ref$isLeftBound === void 0 ? false : _ref$isLeftBound;
1277
1334
 
1278
1335
  var _useState = useState(false),
1279
1336
  _useState2 = _slicedToArray(_useState, 2),
@@ -1297,7 +1354,7 @@ var Input = function Input(_ref) {
1297
1354
  return /*#__PURE__*/React.createElement(KeyboardAvoidingView, {
1298
1355
  behavior: Platform.OS === "ios" ? "padding" : "height",
1299
1356
  keyboardVerticalOffset: keyboardVerticalOffset
1300
- }, /*#__PURE__*/React.createElement(InputWrapper, {
1357
+ }, /*#__PURE__*/React.createElement(InputWrapper$1, {
1301
1358
  onPress: function onPress() {
1302
1359
  var _inputRef$current2;
1303
1360
 
@@ -1306,14 +1363,16 @@ var Input = function Input(_ref) {
1306
1363
  editable && setIsFocused(true);
1307
1364
  editable && ((_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus());
1308
1365
  }
1309
- }, /*#__PURE__*/React.createElement(BorderWrapper$1, {
1366
+ }, /*#__PURE__*/React.createElement(BorderWrapper$2, {
1367
+ isRightBound: isRightBound,
1368
+ isLeftBound: isLeftBound,
1310
1369
  active: isFocused,
1311
1370
  color: !hasError ? isFocused ? borderColorActive : borderColorIdle : borderColorError
1312
- }, /*#__PURE__*/React.createElement(PlaceholderElement, {
1371
+ }, /*#__PURE__*/React.createElement(PlaceholderElement$1, {
1313
1372
  active: isFocused || textValue && textValue.length > 0 || value && value.length > 0
1314
1373
  }, /*#__PURE__*/React.createElement(MarginHorizontal, null, !hasError ? children : /*#__PURE__*/React.createElement(H4Text, {
1315
1374
  color: borderColorError
1316
- }, error || hasError))), /*#__PURE__*/React.createElement(MarginHorizontal, null, /*#__PURE__*/React.createElement(InputElement, {
1375
+ }, error || hasError))), /*#__PURE__*/React.createElement(MarginHorizontal, null, /*#__PURE__*/React.createElement(InputElement$1, {
1317
1376
  ref: inputRef,
1318
1377
  onFocus: function onFocus() {
1319
1378
  return setIsFocused(true);
@@ -1337,6 +1396,192 @@ var Input = function Input(_ref) {
1337
1396
  })))));
1338
1397
  };
1339
1398
 
1399
+ var _templateObject$i, _templateObject2$9, _templateObject3$3;
1400
+ var InputWrapper = styled.Pressable(_templateObject$i || (_templateObject$i = _taggedTemplateLiteral(["\n min-height: 70px;\n"])));
1401
+ 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) {
1402
+ return props.theme.fontFamily2;
1403
+ }, function (props) {
1404
+ return props.theme.small;
1405
+ }, function (props) {
1406
+ return props.theme.color2;
1407
+ }, function (props) {
1408
+ return props.active ? props.theme.color1 : props.theme.color10;
1409
+ });
1410
+ 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) {
1411
+ return props.color;
1412
+ }, function (props) {
1413
+ return props.theme.borderRadiusSmall;
1414
+ }, function (props) {
1415
+ return props.active ? props.theme.color1 : props.theme.color10;
1416
+ });
1417
+
1418
+ var PlaceholderElement = /*#__PURE__*/React.memo(function (_ref) {
1419
+ var children = _ref.children,
1420
+ active = _ref.active;
1421
+ var top = useSharedValue(active ? 10 : 30);
1422
+ var animatedStyle = useAnimatedStyle(function () {
1423
+ return {
1424
+ top: withTiming(top.value, {
1425
+ duration: 250,
1426
+ easing: Easing.bezier(0.19, 1.0, 0.22, 1.0)
1427
+ })
1428
+ };
1429
+ });
1430
+ useEffect(function () {
1431
+ if (active) {
1432
+ top.value = 10;
1433
+ }
1434
+
1435
+ if (!active) {
1436
+ top.value = 30;
1437
+ }
1438
+ }, [active]);
1439
+ return /*#__PURE__*/React.createElement(Animated.View, {
1440
+ style: [{
1441
+ position: "absolute",
1442
+ zIndex: 1,
1443
+ justifyContent: "center"
1444
+ }, animatedStyle]
1445
+ }, children);
1446
+ });
1447
+
1448
+ var InputPhone = function InputPhone(_ref) {
1449
+ var children = _ref.children,
1450
+ style = _ref.style,
1451
+ borderColorIdle = _ref.borderColorIdle,
1452
+ borderColorActive = _ref.borderColorActive,
1453
+ borderColorError = _ref.borderColorError,
1454
+ _ref$textChangePrefix = _ref.textChangePrefix,
1455
+ textChangePrefix = _ref$textChangePrefix === void 0 ? function () {} : _ref$textChangePrefix,
1456
+ _ref$textChangeNumber = _ref.textChangeNumber,
1457
+ textChangeNumber = _ref$textChangeNumber === void 0 ? function () {} : _ref$textChangeNumber,
1458
+ _ref$onPress = _ref.onPress,
1459
+ _onPress = _ref$onPress === void 0 ? function () {} : _ref$onPress,
1460
+ valuePrefix = _ref.valuePrefix,
1461
+ valueNumber = _ref.valueNumber,
1462
+ defaultValuePrefix = _ref.defaultValuePrefix,
1463
+ defaultValueNumber = _ref.defaultValueNumber,
1464
+ _ref$multiline = _ref.multiline,
1465
+ multiline = _ref$multiline === void 0 ? false : _ref$multiline,
1466
+ _ref$numberOfLines = _ref.numberOfLines,
1467
+ numberOfLines = _ref$numberOfLines === void 0 ? 1 : _ref$numberOfLines,
1468
+ _ref$maxLength = _ref.maxLength,
1469
+ maxLength = _ref$maxLength === void 0 ? 1000 : _ref$maxLength,
1470
+ _ref$autoFocus = _ref.autoFocus,
1471
+ autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus,
1472
+ keyboardType = _ref.keyboardType,
1473
+ _ref$editable = _ref.editable,
1474
+ editable = _ref$editable === void 0 ? true : _ref$editable,
1475
+ _ref$keyboardVertical = _ref.keyboardVerticalOffset,
1476
+ keyboardVerticalOffset = _ref$keyboardVertical === void 0 ? 0 : _ref$keyboardVertical,
1477
+ _ref$hasError = _ref.hasError,
1478
+ hasError = _ref$hasError === void 0 ? false : _ref$hasError,
1479
+ error = _ref.error;
1480
+
1481
+ var _useState = useState(false),
1482
+ _useState2 = _slicedToArray(_useState, 2),
1483
+ isFocused = _useState2[0],
1484
+ setIsFocused = _useState2[1];
1485
+
1486
+ var _useState3 = useState(valuePrefix || defaultValuePrefix),
1487
+ _useState4 = _slicedToArray(_useState3, 2),
1488
+ textValue = _useState4[0],
1489
+ setTextValue = _useState4[1];
1490
+
1491
+ var _useState5 = useState(false),
1492
+ _useState6 = _slicedToArray(_useState5, 2),
1493
+ isFocusedPrefix = _useState6[0],
1494
+ setIsFocusedPrefix = _useState6[1];
1495
+
1496
+ var _useState7 = useState(valueNumber || defaultValueNumber),
1497
+ _useState8 = _slicedToArray(_useState7, 2),
1498
+ textPrefixValue = _useState8[0],
1499
+ setTextPrefixValue = _useState8[1];
1500
+
1501
+ var inputRef = useRef();
1502
+ useEffect(function () {
1503
+ textChangeNumber(textValue);
1504
+ }, [textValue]);
1505
+ useEffect(function () {
1506
+ textChangePrefix(textPrefixValue);
1507
+ }, [textPrefixValue]);
1508
+ useEffect(function () {
1509
+ var _inputRef$current;
1510
+
1511
+ autoFocus && ((_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus());
1512
+ }, [autoFocus]);
1513
+ return /*#__PURE__*/React.createElement(KeyboardAvoidingView, {
1514
+ behavior: Platform.OS === "ios" ? "padding" : "height",
1515
+ keyboardVerticalOffset: keyboardVerticalOffset
1516
+ }, /*#__PURE__*/React.createElement(InputWrapper, {
1517
+ onPress: function onPress() {
1518
+ var _inputRef$current2;
1519
+
1520
+ _onPress();
1521
+
1522
+ editable && setIsFocused(true);
1523
+ editable && ((_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus());
1524
+ }
1525
+ }, /*#__PURE__*/React.createElement(BorderWrapper$1, {
1526
+ active: isFocused,
1527
+ color: !hasError ? isFocused ? borderColorActive : borderColorIdle : borderColorError
1528
+ }, /*#__PURE__*/React.createElement(Row, {
1529
+ style: {
1530
+ backgroundColor: "red",
1531
+ width: "100%"
1532
+ }
1533
+ }, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(PlaceholderElement, {
1534
+ active: isFocusedPrefix || textPrefixValue && textPrefixValue.length > 0 || valuePrefix && valuePrefix.length > 0
1535
+ }, /*#__PURE__*/React.createElement(MarginHorizontal, null, !hasError ? children[0] : /*#__PURE__*/React.createElement(H4Text, {
1536
+ color: borderColorError
1537
+ }, error || hasError)))), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(PlaceholderElement, {
1538
+ active: isFocused || textValue && textValue.length > 0 || valueNumber && valueNumber.length > 0
1539
+ }, /*#__PURE__*/React.createElement(MarginHorizontal, null, !hasError ? children[1] : /*#__PURE__*/React.createElement(H4Text, {
1540
+ color: borderColorError
1541
+ }, error || hasError))))), /*#__PURE__*/React.createElement(MarginHorizontal, null, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(InputElement, {
1542
+ onFocus: function onFocus() {
1543
+ return setIsFocusedPrefix(true);
1544
+ },
1545
+ onBlur: function onBlur() {
1546
+ return setIsFocusedPrefix(false);
1547
+ },
1548
+ onChangeText: function onChangeText(text) {
1549
+ return setTextPrefixValue(text);
1550
+ },
1551
+ defaultValue: defaultValuePrefix,
1552
+ value: valuePrefix,
1553
+ multiline: multiline,
1554
+ numberOfLines: numberOfLines,
1555
+ maxLength: maxLength,
1556
+ autoFocus: autoFocus,
1557
+ keyboardType: keyboardType,
1558
+ editable: editable,
1559
+ active: isFocusedPrefix,
1560
+ style: style
1561
+ }), /*#__PURE__*/React.createElement(InputElement, {
1562
+ ref: inputRef,
1563
+ onFocus: function onFocus() {
1564
+ return setIsFocused(true);
1565
+ },
1566
+ onBlur: function onBlur() {
1567
+ return setIsFocused(false);
1568
+ },
1569
+ onChangeText: function onChangeText(text) {
1570
+ return setTextValue(text);
1571
+ },
1572
+ defaultValue: defaultValueNumber,
1573
+ value: valueNumber,
1574
+ multiline: multiline,
1575
+ numberOfLines: numberOfLines,
1576
+ maxLength: maxLength,
1577
+ autoFocus: autoFocus,
1578
+ keyboardType: keyboardType,
1579
+ editable: editable,
1580
+ active: isFocused,
1581
+ style: style
1582
+ }))))));
1583
+ };
1584
+
1340
1585
  var _templateObject$h, _templateObject2$8, _templateObject3$2;
1341
1586
  var ButtonWrapper = styled.Pressable(_templateObject$h || (_templateObject$h = _taggedTemplateLiteral([""])));
1342
1587
  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 +1659,12 @@ var TextBtn = function TextBtn(_ref) {
1414
1659
 
1415
1660
  var _templateObject$f, _templateObject2$6;
1416
1661
  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) {
1662
+ 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
1663
  return props.size === "big" ? "60px" : "54px";
1419
1664
  }, function (props) {
1420
- return props.theme.borderRadiusMedium;
1665
+ return props.smallBorder ? props.theme.borderRadiusSmall : props.theme.borderRadiusMedium;
1421
1666
  }, function (props) {
1422
- return props.color;
1423
- }, function (props) {
1424
- return props.active ? 1 : 0.7;
1667
+ return props.active ? props.color : props.theme.greyButton;
1425
1668
  }, function (props) {
1426
1669
  return props.style;
1427
1670
  });
@@ -1436,6 +1679,8 @@ var RoundedBtn$1 = function RoundedBtn(_ref) {
1436
1679
  style = _ref.style,
1437
1680
  _ref$size = _ref.size,
1438
1681
  size = _ref$size === void 0 ? "big" : _ref$size,
1682
+ _ref$smallBorder = _ref.smallBorder,
1683
+ smallBorder = _ref$smallBorder === void 0 ? false : _ref$smallBorder,
1439
1684
  _ref$hitSlop = _ref.hitSlop,
1440
1685
  hitSlop = _ref$hitSlop === void 0 ? 0 : _ref$hitSlop;
1441
1686
  var scale = useSharedValue(1);
@@ -1450,6 +1695,7 @@ var RoundedBtn$1 = function RoundedBtn(_ref) {
1450
1695
  return /*#__PURE__*/React.createElement(Animated.View, {
1451
1696
  style: [animatedStyle]
1452
1697
  }, /*#__PURE__*/React.createElement(ButtonStyle$4, {
1698
+ smallBorder: smallBorder,
1453
1699
  hitSlop: hitSlop,
1454
1700
  size: size,
1455
1701
  active: active,
@@ -54222,11 +54468,19 @@ var Item = function Item(_ref) {
54222
54468
  source: {
54223
54469
  uri: item.src
54224
54470
  }
54225
- }), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Box, {
54471
+ }), /*#__PURE__*/React.createElement(Row, {
54472
+ style: {
54473
+ alignItems: "center"
54474
+ }
54475
+ }, /*#__PURE__*/React.createElement(Box, {
54226
54476
  style: {
54227
54477
  flex: 4
54228
54478
  }
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)))))))));
54479
+ }, /*#__PURE__*/React.createElement(MarginHorizontal, null, /*#__PURE__*/React.createElement(H4Text, null, item.name))), variant === "countryCode" && /*#__PURE__*/React.createElement(Box, {
54480
+ style: {
54481
+ flex: 3
54482
+ }
54483
+ }, /*#__PURE__*/React.createElement(MarginHorizontal, null, /*#__PURE__*/React.createElement(H4Text, null, item.code)))))))));
54230
54484
  };
54231
54485
 
54232
54486
  function NewCustomer(_ref2) {
@@ -54343,4 +54597,4 @@ function NewCustomer(_ref2) {
54343
54597
  }));
54344
54598
  }
54345
54599
 
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 };
54600
+ 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, PaddingLeft, PaddingRight, PaddingTop, PaddingVertical, RoundBtn$3 as RoundBtn, RoundedBtn$1 as RoundedBtn, RoundedTopBox, Row, SpanText as Span, Stretch, Success, SwipeButton, Switch, TextBtn, ThemeWrapper, WebSmallWrapper, useThemeContext };