@servesall/atoms 1.1.6 → 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.
@@ -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;
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";
@@ -901,22 +902,22 @@ var RoundedTopBox = function RoundedTopBox(_ref) {
901
902
  }, children);
902
903
  };
903
904
 
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) {
905
+ var _templateObject$l, _templateObject2$c, _templateObject3$5;
906
+ var InputWrapper$2 = styled__default["default"].Pressable(_templateObject$l || (_templateObject$l = _taggedTemplateLiteral(["\n min-height: 80px;\n"])));
907
+ 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
908
  return props.theme.fontFamily2;
908
909
  }, function (props) {
909
910
  return props.theme.small;
910
911
  }, function (props) {
911
912
  return props.theme.color2;
912
913
  });
913
- var BorderWrapper$2 = styled__default["default"].View(_templateObject3$4 || (_templateObject3$4 = _taggedTemplateLiteral(["\n height: 4px;\n"])));
914
+ var BorderWrapper$3 = styled__default["default"].View(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteral(["\n height: 4px;\n"])));
914
915
 
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) {
916
+ var _templateObject$k, _templateObject2$b;
917
+ 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
918
  return props.color;
918
919
  });
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) {
920
+ 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
921
  return props.color;
921
922
  });
922
923
 
@@ -928,29 +929,16 @@ var Line$1 = function Line(_ref) {
928
929
  hasError = _ref.hasError;
929
930
  var widthActive = Animated.useSharedValue(0);
930
931
  var animatedStyleWidthActive = Animated.useAnimatedStyle(function () {
931
- var _f = function _f() {
932
- return active ? {
933
- width: Animated.withTiming(widthActive.value, {
934
- duration: 350
935
- })
936
- } : {
937
- width: Animated.withTiming(0, {
938
- duration: 350
939
- })
940
- };
941
- };
942
-
943
- _f._closure = {
944
- active: active,
945
- withTiming: Animated.withTiming,
946
- widthActive: widthActive
932
+ return active ? {
933
+ width: Animated.withTiming(widthActive.value, {
934
+ duration: 350
935
+ })
936
+ } : {
937
+ width: Animated.withTiming(0, {
938
+ duration: 350
939
+ })
947
940
  };
948
- _f.asString = "function _f(){const{active,withTiming,widthActive}=jsThis._closure;{return active?{width:withTiming(widthActive.value,{duration:350})}:{width:withTiming(0,{duration:350})};}}";
949
- _f.__workletHash = 6082653035732;
950
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Inputs/Animated/LineAnimation/index.js (19:52)";
951
- _f.__optimalization = 2;
952
- return _f;
953
- }());
941
+ });
954
942
  return /*#__PURE__*/React__default["default"].createElement(Row, null, /*#__PURE__*/React__default["default"].createElement(BorderIdle$1, {
955
943
  color: !hasError ? borderColorIdle : borderColorError,
956
944
  onLayout: function onLayout(e) {
@@ -965,33 +953,18 @@ var Line$1 = function Line(_ref) {
965
953
  })));
966
954
  };
967
955
 
968
- var PlaceholderElement$1 = /*#__PURE__*/React__default["default"].memo(function (_ref) {
956
+ var PlaceholderElement$2 = /*#__PURE__*/React__default["default"].memo(function (_ref) {
969
957
  var children = _ref.children,
970
958
  active = _ref.active;
971
959
  var bottom = Animated.useSharedValue(active ? 50 : 4);
972
960
  var animatedStyle = Animated.useAnimatedStyle(function () {
973
- var _f = function _f() {
974
- return {
975
- bottom: Animated.withTiming(bottom.value, {
976
- duration: 250,
977
- easing: Animated.Easing.bezier(0.19, 1.0, 0.22, 1.0)
978
- })
979
- };
980
- };
981
-
982
- _f._closure = {
983
- withTiming: Animated.withTiming,
984
- bottom: bottom,
985
- Easing: {
986
- bezier: Animated.Easing.bezier
987
- }
961
+ return {
962
+ bottom: Animated.withTiming(bottom.value, {
963
+ duration: 250,
964
+ easing: Animated.Easing.bezier(0.19, 1.0, 0.22, 1.0)
965
+ })
988
966
  };
989
- _f.asString = "function _f(){const{withTiming,bottom,Easing}=jsThis._closure;{return{bottom:withTiming(bottom.value,{duration:250,easing:Easing.bezier(0.19,1.0,0.22,1.0)})};}}";
990
- _f.__workletHash = 551286745489;
991
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Inputs/Animated/Placeholder/index.js (12:41)";
992
- _f.__optimalization = 2;
993
- return _f;
994
- }());
967
+ });
995
968
  React.useEffect(function () {
996
969
  if (active) {
997
970
  bottom.value = 50;
@@ -1060,18 +1033,18 @@ var Input$1 = function Input(_ref) {
1060
1033
  return /*#__PURE__*/React__default["default"].createElement(reactNative.KeyboardAvoidingView, {
1061
1034
  behavior: reactNative.Platform.OS === "ios" ? "padding" : "height",
1062
1035
  keyboardVerticalOffset: keyboardVerticalOffset
1063
- }, /*#__PURE__*/React__default["default"].createElement(InputWrapper$1, {
1036
+ }, /*#__PURE__*/React__default["default"].createElement(InputWrapper$2, {
1064
1037
  onPress: function onPress() {
1065
1038
  var _inputRef$current2;
1066
1039
 
1067
1040
  setIsFocused(true);
1068
1041
  (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus();
1069
1042
  }
1070
- }, /*#__PURE__*/React__default["default"].createElement(PlaceholderElement$1, {
1043
+ }, /*#__PURE__*/React__default["default"].createElement(PlaceholderElement$2, {
1071
1044
  active: isFocused || textValue && textValue.length > 0
1072
1045
  }, !hasError ? children : /*#__PURE__*/React__default["default"].createElement(H3Text, {
1073
1046
  color: borderColorError
1074
- }, error || hasError)), /*#__PURE__*/React__default["default"].createElement(InputElement$1, {
1047
+ }, error || hasError)), /*#__PURE__*/React__default["default"].createElement(InputElement$2, {
1075
1048
  ref: inputRef,
1076
1049
  onFocus: function onFocus() {
1077
1050
  return setIsFocused(true);
@@ -1091,7 +1064,7 @@ var Input$1 = function Input(_ref) {
1091
1064
  keyboardType: keyboardType,
1092
1065
  editable: editable,
1093
1066
  style: style
1094
- }), /*#__PURE__*/React__default["default"].createElement(BorderWrapper$2, null, /*#__PURE__*/React__default["default"].createElement(Line$1, {
1067
+ }), /*#__PURE__*/React__default["default"].createElement(BorderWrapper$3, null, /*#__PURE__*/React__default["default"].createElement(Line$1, {
1095
1068
  active: isFocused,
1096
1069
  borderColorActive: borderColorActive,
1097
1070
  borderColorIdle: borderColorIdle,
@@ -1110,21 +1083,10 @@ var AnimatedPlaceholder$1 = function AnimatedPlaceholder(_ref) {
1110
1083
 
1111
1084
  var fade = Animated.useSharedValue(7);
1112
1085
  var animatedStyle = Animated.useAnimatedStyle(function () {
1113
- var _f = function _f() {
1114
- return {
1115
- opacity: fade.value
1116
- };
1086
+ return {
1087
+ opacity: fade.value
1117
1088
  };
1118
-
1119
- _f._closure = {
1120
- fade: fade
1121
- };
1122
- _f.asString = "function _f(){const{fade}=jsThis._closure;{return{opacity:fade.value};}}";
1123
- _f.__workletHash = 16298690497334;
1124
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Inputs/AnimatedPlaceholder/AnimatedItem.js (14:41)";
1125
- _f.__optimalization = 3;
1126
- return _f;
1127
- }());
1089
+ });
1128
1090
 
1129
1091
  var runNewChild = function runNewChild() {
1130
1092
  setChildNumber(function (prevChildNumber) {
@@ -1135,24 +1097,13 @@ var AnimatedPlaceholder$1 = function AnimatedPlaceholder(_ref) {
1135
1097
  React.useEffect(function () {
1136
1098
  fade.value = Animated.withRepeat(Animated.withTiming(0, {
1137
1099
  duration: 2000
1138
- }, function () {
1139
- var _f = function _f(finished, currentValue) {
1140
- if (finished) {
1141
- if (currentValue === 0) {
1142
- Animated.runOnJS(runNewChild)();
1143
- }
1100
+ }, function (finished, currentValue) {
1101
+ if (finished) {
1102
+ if (currentValue === 0) {
1103
+ Animated.runOnJS(runNewChild)();
1144
1104
  }
1145
- };
1146
-
1147
- _f._closure = {
1148
- runOnJS: Animated.runOnJS,
1149
- runNewChild: runNewChild
1150
- };
1151
- _f.asString = "function _f(finished,currentValue){const{runOnJS,runNewChild}=jsThis._closure;{if(finished){if(currentValue===0){runOnJS(runNewChild)();}}}}";
1152
- _f.__workletHash = 54360799953;
1153
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Inputs/AnimatedPlaceholder/AnimatedItem.js (28:40)";
1154
- return _f;
1155
- }()), -1, true);
1105
+ }
1106
+ }), -1, true);
1156
1107
  }, []);
1157
1108
  return /*#__PURE__*/React__default["default"].createElement(Animated__default["default"].View, {
1158
1109
  style: [{
@@ -1260,9 +1211,9 @@ var InputOtp = function InputOtp(props) {
1260
1211
  }))));
1261
1212
  };
1262
1213
 
1263
- var _templateObject$i, _templateObject2$9, _templateObject3$3;
1264
- var InputWrapper = styled__default["default"].Pressable(_templateObject$i || (_templateObject$i = _taggedTemplateLiteral(["\n min-height: 70px;\n"])));
1265
- 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) {
1214
+ var _templateObject$j, _templateObject2$a, _templateObject3$4;
1215
+ var InputWrapper$1 = styled__default["default"].Pressable(_templateObject$j || (_templateObject$j = _taggedTemplateLiteral(["\n min-height: 70px;\n"])));
1216
+ 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) {
1266
1217
  return props.theme.fontFamily2;
1267
1218
  }, function (props) {
1268
1219
  return props.theme.small;
@@ -1271,41 +1222,42 @@ var InputElement = styled__default["default"].TextInput(_templateObject2$9 || (_
1271
1222
  }, function (props) {
1272
1223
  return props.active ? props.theme.color1 : props.theme.color10;
1273
1224
  });
1274
- 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) {
1225
+ 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) {
1275
1226
  return props.color;
1276
1227
  }, function (props) {
1277
1228
  return props.theme.borderRadiusSmall;
1278
1229
  }, function (props) {
1279
1230
  return props.active ? props.theme.color1 : props.theme.color10;
1231
+ }, function (_ref) {
1232
+ var isRightBound = _ref.isRightBound,
1233
+ isLeftBound = _ref.isLeftBound,
1234
+ active = _ref.active;
1235
+
1236
+ if (isRightBound) {
1237
+ if (!active) {
1238
+ return "borderTopRightRadius: 0px; borderBottomRightRadius: 0px; border-right-width: 0px;";
1239
+ }
1240
+
1241
+ return "borderTopRightRadius: 0px; borderBottomRightRadius: 0px;";
1242
+ }
1243
+
1244
+ if (isLeftBound) {
1245
+ return "borderTopLeftRadius: 0px; borderBottomLeftRadius: 0px;";
1246
+ }
1280
1247
  });
1281
1248
 
1282
- var PlaceholderElement = /*#__PURE__*/React__default["default"].memo(function (_ref) {
1249
+ var PlaceholderElement$1 = /*#__PURE__*/React__default["default"].memo(function (_ref) {
1283
1250
  var children = _ref.children,
1284
1251
  active = _ref.active;
1285
1252
  var top = Animated.useSharedValue(active ? 10 : 30);
1286
1253
  var animatedStyle = Animated.useAnimatedStyle(function () {
1287
- var _f = function _f() {
1288
- return {
1289
- top: Animated.withTiming(top.value, {
1290
- duration: 250,
1291
- easing: Animated.Easing.bezier(0.19, 1.0, 0.22, 1.0)
1292
- })
1293
- };
1294
- };
1295
-
1296
- _f._closure = {
1297
- withTiming: Animated.withTiming,
1298
- top: top,
1299
- Easing: {
1300
- bezier: Animated.Easing.bezier
1301
- }
1254
+ return {
1255
+ top: Animated.withTiming(top.value, {
1256
+ duration: 250,
1257
+ easing: Animated.Easing.bezier(0.19, 1.0, 0.22, 1.0)
1258
+ })
1302
1259
  };
1303
- _f.asString = "function _f(){const{withTiming,top,Easing}=jsThis._closure;{return{top:withTiming(top.value,{duration:250,easing:Easing.bezier(0.19,1.0,0.22,1.0)})};}}";
1304
- _f.__workletHash = 3739814920853;
1305
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Inputs/InputNormal/Placeholder/index.js (12:41)";
1306
- _f.__optimalization = 2;
1307
- return _f;
1308
- }());
1260
+ });
1309
1261
  React.useEffect(function () {
1310
1262
  if (active) {
1311
1263
  top.value = 10;
@@ -1351,7 +1303,11 @@ var Input = function Input(_ref) {
1351
1303
  keyboardVerticalOffset = _ref$keyboardVertical === void 0 ? 0 : _ref$keyboardVertical,
1352
1304
  _ref$hasError = _ref.hasError,
1353
1305
  hasError = _ref$hasError === void 0 ? false : _ref$hasError,
1354
- error = _ref.error;
1306
+ error = _ref.error,
1307
+ _ref$isRightBound = _ref.isRightBound,
1308
+ isRightBound = _ref$isRightBound === void 0 ? false : _ref$isRightBound,
1309
+ _ref$isLeftBound = _ref.isLeftBound,
1310
+ isLeftBound = _ref$isLeftBound === void 0 ? false : _ref$isLeftBound;
1355
1311
 
1356
1312
  var _useState = React.useState(false),
1357
1313
  _useState2 = _slicedToArray(_useState, 2),
@@ -1375,7 +1331,7 @@ var Input = function Input(_ref) {
1375
1331
  return /*#__PURE__*/React__default["default"].createElement(reactNative.KeyboardAvoidingView, {
1376
1332
  behavior: reactNative.Platform.OS === "ios" ? "padding" : "height",
1377
1333
  keyboardVerticalOffset: keyboardVerticalOffset
1378
- }, /*#__PURE__*/React__default["default"].createElement(InputWrapper, {
1334
+ }, /*#__PURE__*/React__default["default"].createElement(InputWrapper$1, {
1379
1335
  onPress: function onPress() {
1380
1336
  var _inputRef$current2;
1381
1337
 
@@ -1384,14 +1340,16 @@ var Input = function Input(_ref) {
1384
1340
  editable && setIsFocused(true);
1385
1341
  editable && ((_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus());
1386
1342
  }
1387
- }, /*#__PURE__*/React__default["default"].createElement(BorderWrapper$1, {
1343
+ }, /*#__PURE__*/React__default["default"].createElement(BorderWrapper$2, {
1344
+ isRightBound: isRightBound,
1345
+ isLeftBound: isLeftBound,
1388
1346
  active: isFocused,
1389
1347
  color: !hasError ? isFocused ? borderColorActive : borderColorIdle : borderColorError
1390
- }, /*#__PURE__*/React__default["default"].createElement(PlaceholderElement, {
1348
+ }, /*#__PURE__*/React__default["default"].createElement(PlaceholderElement$1, {
1391
1349
  active: isFocused || textValue && textValue.length > 0 || value && value.length > 0
1392
1350
  }, /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, !hasError ? children : /*#__PURE__*/React__default["default"].createElement(H4Text, {
1393
1351
  color: borderColorError
1394
- }, error || hasError))), /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, /*#__PURE__*/React__default["default"].createElement(InputElement, {
1352
+ }, error || hasError))), /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, /*#__PURE__*/React__default["default"].createElement(InputElement$1, {
1395
1353
  ref: inputRef,
1396
1354
  onFocus: function onFocus() {
1397
1355
  return setIsFocused(true);
@@ -1415,6 +1373,192 @@ var Input = function Input(_ref) {
1415
1373
  })))));
1416
1374
  };
1417
1375
 
1376
+ var _templateObject$i, _templateObject2$9, _templateObject3$3;
1377
+ var InputWrapper = styled__default["default"].Pressable(_templateObject$i || (_templateObject$i = _taggedTemplateLiteral(["\n min-height: 70px;\n"])));
1378
+ 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) {
1379
+ return props.theme.fontFamily2;
1380
+ }, function (props) {
1381
+ return props.theme.small;
1382
+ }, function (props) {
1383
+ return props.theme.color2;
1384
+ }, function (props) {
1385
+ return props.active ? props.theme.color1 : props.theme.color10;
1386
+ });
1387
+ 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) {
1388
+ return props.color;
1389
+ }, function (props) {
1390
+ return props.theme.borderRadiusSmall;
1391
+ }, function (props) {
1392
+ return props.active ? props.theme.color1 : props.theme.color10;
1393
+ });
1394
+
1395
+ var PlaceholderElement = /*#__PURE__*/React__default["default"].memo(function (_ref) {
1396
+ var children = _ref.children,
1397
+ active = _ref.active;
1398
+ var top = Animated.useSharedValue(active ? 10 : 30);
1399
+ var animatedStyle = Animated.useAnimatedStyle(function () {
1400
+ return {
1401
+ top: Animated.withTiming(top.value, {
1402
+ duration: 250,
1403
+ easing: Animated.Easing.bezier(0.19, 1.0, 0.22, 1.0)
1404
+ })
1405
+ };
1406
+ });
1407
+ React.useEffect(function () {
1408
+ if (active) {
1409
+ top.value = 10;
1410
+ }
1411
+
1412
+ if (!active) {
1413
+ top.value = 30;
1414
+ }
1415
+ }, [active]);
1416
+ return /*#__PURE__*/React__default["default"].createElement(Animated__default["default"].View, {
1417
+ style: [{
1418
+ position: "absolute",
1419
+ zIndex: 1,
1420
+ justifyContent: "center"
1421
+ }, animatedStyle]
1422
+ }, children);
1423
+ });
1424
+
1425
+ var InputPhone = function InputPhone(_ref) {
1426
+ var children = _ref.children,
1427
+ style = _ref.style,
1428
+ borderColorIdle = _ref.borderColorIdle,
1429
+ borderColorActive = _ref.borderColorActive,
1430
+ borderColorError = _ref.borderColorError,
1431
+ _ref$textChangePrefix = _ref.textChangePrefix,
1432
+ textChangePrefix = _ref$textChangePrefix === void 0 ? function () {} : _ref$textChangePrefix,
1433
+ _ref$textChangeNumber = _ref.textChangeNumber,
1434
+ textChangeNumber = _ref$textChangeNumber === void 0 ? function () {} : _ref$textChangeNumber,
1435
+ _ref$onPress = _ref.onPress,
1436
+ _onPress = _ref$onPress === void 0 ? function () {} : _ref$onPress,
1437
+ valuePrefix = _ref.valuePrefix,
1438
+ valueNumber = _ref.valueNumber,
1439
+ defaultValuePrefix = _ref.defaultValuePrefix,
1440
+ defaultValueNumber = _ref.defaultValueNumber,
1441
+ _ref$multiline = _ref.multiline,
1442
+ multiline = _ref$multiline === void 0 ? false : _ref$multiline,
1443
+ _ref$numberOfLines = _ref.numberOfLines,
1444
+ numberOfLines = _ref$numberOfLines === void 0 ? 1 : _ref$numberOfLines,
1445
+ _ref$maxLength = _ref.maxLength,
1446
+ maxLength = _ref$maxLength === void 0 ? 1000 : _ref$maxLength,
1447
+ _ref$autoFocus = _ref.autoFocus,
1448
+ autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus,
1449
+ keyboardType = _ref.keyboardType,
1450
+ _ref$editable = _ref.editable,
1451
+ editable = _ref$editable === void 0 ? true : _ref$editable,
1452
+ _ref$keyboardVertical = _ref.keyboardVerticalOffset,
1453
+ keyboardVerticalOffset = _ref$keyboardVertical === void 0 ? 0 : _ref$keyboardVertical,
1454
+ _ref$hasError = _ref.hasError,
1455
+ hasError = _ref$hasError === void 0 ? false : _ref$hasError,
1456
+ error = _ref.error;
1457
+
1458
+ var _useState = React.useState(false),
1459
+ _useState2 = _slicedToArray(_useState, 2),
1460
+ isFocused = _useState2[0],
1461
+ setIsFocused = _useState2[1];
1462
+
1463
+ var _useState3 = React.useState(valuePrefix || defaultValuePrefix),
1464
+ _useState4 = _slicedToArray(_useState3, 2),
1465
+ textValue = _useState4[0],
1466
+ setTextValue = _useState4[1];
1467
+
1468
+ var _useState5 = React.useState(false),
1469
+ _useState6 = _slicedToArray(_useState5, 2),
1470
+ isFocusedPrefix = _useState6[0],
1471
+ setIsFocusedPrefix = _useState6[1];
1472
+
1473
+ var _useState7 = React.useState(valueNumber || defaultValueNumber),
1474
+ _useState8 = _slicedToArray(_useState7, 2),
1475
+ textPrefixValue = _useState8[0],
1476
+ setTextPrefixValue = _useState8[1];
1477
+
1478
+ var inputRef = React.useRef();
1479
+ React.useEffect(function () {
1480
+ textChangeNumber(textValue);
1481
+ }, [textValue]);
1482
+ React.useEffect(function () {
1483
+ textChangePrefix(textPrefixValue);
1484
+ }, [textPrefixValue]);
1485
+ React.useEffect(function () {
1486
+ var _inputRef$current;
1487
+
1488
+ autoFocus && ((_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus());
1489
+ }, [autoFocus]);
1490
+ return /*#__PURE__*/React__default["default"].createElement(reactNative.KeyboardAvoidingView, {
1491
+ behavior: reactNative.Platform.OS === "ios" ? "padding" : "height",
1492
+ keyboardVerticalOffset: keyboardVerticalOffset
1493
+ }, /*#__PURE__*/React__default["default"].createElement(InputWrapper, {
1494
+ onPress: function onPress() {
1495
+ var _inputRef$current2;
1496
+
1497
+ _onPress();
1498
+
1499
+ editable && setIsFocused(true);
1500
+ editable && ((_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus());
1501
+ }
1502
+ }, /*#__PURE__*/React__default["default"].createElement(BorderWrapper$1, {
1503
+ active: isFocused,
1504
+ color: !hasError ? isFocused ? borderColorActive : borderColorIdle : borderColorError
1505
+ }, /*#__PURE__*/React__default["default"].createElement(Row, {
1506
+ style: {
1507
+ backgroundColor: "red",
1508
+ width: "100%"
1509
+ }
1510
+ }, /*#__PURE__*/React__default["default"].createElement(Box, null, /*#__PURE__*/React__default["default"].createElement(PlaceholderElement, {
1511
+ active: isFocusedPrefix || textPrefixValue && textPrefixValue.length > 0 || valuePrefix && valuePrefix.length > 0
1512
+ }, /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, !hasError ? children[0] : /*#__PURE__*/React__default["default"].createElement(H4Text, {
1513
+ color: borderColorError
1514
+ }, error || hasError)))), /*#__PURE__*/React__default["default"].createElement(Box, null, /*#__PURE__*/React__default["default"].createElement(PlaceholderElement, {
1515
+ active: isFocused || textValue && textValue.length > 0 || valueNumber && valueNumber.length > 0
1516
+ }, /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, !hasError ? children[1] : /*#__PURE__*/React__default["default"].createElement(H4Text, {
1517
+ color: borderColorError
1518
+ }, error || hasError))))), /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, /*#__PURE__*/React__default["default"].createElement(Row, null, /*#__PURE__*/React__default["default"].createElement(InputElement, {
1519
+ onFocus: function onFocus() {
1520
+ return setIsFocusedPrefix(true);
1521
+ },
1522
+ onBlur: function onBlur() {
1523
+ return setIsFocusedPrefix(false);
1524
+ },
1525
+ onChangeText: function onChangeText(text) {
1526
+ return setTextPrefixValue(text);
1527
+ },
1528
+ defaultValue: defaultValuePrefix,
1529
+ value: valuePrefix,
1530
+ multiline: multiline,
1531
+ numberOfLines: numberOfLines,
1532
+ maxLength: maxLength,
1533
+ autoFocus: autoFocus,
1534
+ keyboardType: keyboardType,
1535
+ editable: editable,
1536
+ active: isFocusedPrefix,
1537
+ style: style
1538
+ }), /*#__PURE__*/React__default["default"].createElement(InputElement, {
1539
+ ref: inputRef,
1540
+ onFocus: function onFocus() {
1541
+ return setIsFocused(true);
1542
+ },
1543
+ onBlur: function onBlur() {
1544
+ return setIsFocused(false);
1545
+ },
1546
+ onChangeText: function onChangeText(text) {
1547
+ return setTextValue(text);
1548
+ },
1549
+ defaultValue: defaultValueNumber,
1550
+ value: valueNumber,
1551
+ multiline: multiline,
1552
+ numberOfLines: numberOfLines,
1553
+ maxLength: maxLength,
1554
+ autoFocus: autoFocus,
1555
+ keyboardType: keyboardType,
1556
+ editable: editable,
1557
+ active: isFocused,
1558
+ style: style
1559
+ }))))));
1560
+ };
1561
+
1418
1562
  var _templateObject$h, _templateObject2$8, _templateObject3$2;
1419
1563
  var ButtonWrapper = styled__default["default"].Pressable(_templateObject$h || (_templateObject$h = _taggedTemplateLiteral([""])));
1420
1564
  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"])));
@@ -1434,29 +1578,16 @@ var Line = function Line(_ref) {
1434
1578
  borderColorActive = _ref.borderColorActive;
1435
1579
  var widthActive = Animated.useSharedValue(0);
1436
1580
  var animatedStyleWidthActive = Animated.useAnimatedStyle(function () {
1437
- var _f = function _f() {
1438
- return active ? {
1439
- width: Animated.withTiming(widthActive.value, {
1440
- duration: 350
1441
- })
1442
- } : {
1443
- width: Animated.withTiming(0, {
1444
- duration: 350
1445
- })
1446
- };
1581
+ return active ? {
1582
+ width: Animated.withTiming(widthActive.value, {
1583
+ duration: 350
1584
+ })
1585
+ } : {
1586
+ width: Animated.withTiming(0, {
1587
+ duration: 350
1588
+ })
1447
1589
  };
1448
-
1449
- _f._closure = {
1450
- active: active,
1451
- withTiming: Animated.withTiming,
1452
- widthActive: widthActive
1453
- };
1454
- _f.asString = "function _f(){const{active,withTiming,widthActive}=jsThis._closure;{return active?{width:withTiming(widthActive.value,{duration:350})}:{width:withTiming(0,{duration:350})};}}";
1455
- _f.__workletHash = 6082653035732;
1456
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/TextButton/LineAnimation/index.js (13:52)";
1457
- _f.__optimalization = 2;
1458
- return _f;
1459
- }());
1590
+ });
1460
1591
  return /*#__PURE__*/React__default["default"].createElement(Row, null, /*#__PURE__*/React__default["default"].createElement(BorderIdle, {
1461
1592
  color: borderColorIdle,
1462
1593
  onLayout: function onLayout(e) {
@@ -1505,14 +1636,12 @@ var TextBtn = function TextBtn(_ref) {
1505
1636
 
1506
1637
  var _templateObject$f, _templateObject2$6;
1507
1638
  styled__default["default"].View(_templateObject$f || (_templateObject$f = _taggedTemplateLiteral([""])));
1508
- 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) {
1639
+ 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) {
1509
1640
  return props.size === "big" ? "60px" : "54px";
1510
1641
  }, function (props) {
1511
- return props.theme.borderRadiusMedium;
1512
- }, function (props) {
1513
- return props.color;
1642
+ return props.smallBorder ? props.theme.borderRadiusSmall : props.theme.borderRadiusMedium;
1514
1643
  }, function (props) {
1515
- return props.active ? 1 : 0.7;
1644
+ return props.active ? props.color : props.theme.greyButton;
1516
1645
  }, function (props) {
1517
1646
  return props.style;
1518
1647
  });
@@ -1527,31 +1656,23 @@ var RoundedBtn$1 = function RoundedBtn(_ref) {
1527
1656
  style = _ref.style,
1528
1657
  _ref$size = _ref.size,
1529
1658
  size = _ref$size === void 0 ? "big" : _ref$size,
1659
+ _ref$smallBorder = _ref.smallBorder,
1660
+ smallBorder = _ref$smallBorder === void 0 ? false : _ref$smallBorder,
1530
1661
  _ref$hitSlop = _ref.hitSlop,
1531
1662
  hitSlop = _ref$hitSlop === void 0 ? 0 : _ref$hitSlop;
1532
1663
  var scale = Animated.useSharedValue(1);
1533
1664
  var animatedStyle = Animated.useAnimatedStyle(function () {
1534
- var _f = function _f() {
1535
- return {
1536
- opacity: scale.value,
1537
- transform: [{
1538
- scale: scale.value
1539
- }]
1540
- };
1665
+ return {
1666
+ opacity: scale.value,
1667
+ transform: [{
1668
+ scale: scale.value
1669
+ }]
1541
1670
  };
1542
-
1543
- _f._closure = {
1544
- scale: scale
1545
- };
1546
- _f.asString = "function _f(){const{scale}=jsThis._closure;{return{opacity:scale.value,transform:[{scale:scale.value}]};}}";
1547
- _f.__workletHash = 15781601983731;
1548
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/RoundedButton/index.js (21:41)";
1549
- _f.__optimalization = 3;
1550
- return _f;
1551
- }());
1671
+ });
1552
1672
  return /*#__PURE__*/React__default["default"].createElement(Animated__default["default"].View, {
1553
1673
  style: [animatedStyle]
1554
1674
  }, /*#__PURE__*/React__default["default"].createElement(ButtonStyle$4, {
1675
+ smallBorder: smallBorder,
1555
1676
  hitSlop: hitSlop,
1556
1677
  size: size,
1557
1678
  active: active,
@@ -1594,24 +1715,13 @@ var RoundBtn$3 = function RoundBtn(_ref) {
1594
1715
  size = _ref$size === void 0 ? "big" : _ref$size;
1595
1716
  var scale = Animated.useSharedValue(1);
1596
1717
  var animatedStyle = Animated.useAnimatedStyle(function () {
1597
- var _f = function _f() {
1598
- return {
1599
- opacity: scale.value,
1600
- transform: [{
1601
- scale: scale.value
1602
- }]
1603
- };
1604
- };
1605
-
1606
- _f._closure = {
1607
- scale: scale
1718
+ return {
1719
+ opacity: scale.value,
1720
+ transform: [{
1721
+ scale: scale.value
1722
+ }]
1608
1723
  };
1609
- _f.asString = "function _f(){const{scale}=jsThis._closure;{return{opacity:scale.value,transform:[{scale:scale.value}]};}}";
1610
- _f.__workletHash = 15781601983731;
1611
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/RoundButton/index.js (20:41)";
1612
- _f.__optimalization = 3;
1613
- return _f;
1614
- }());
1724
+ });
1615
1725
  return /*#__PURE__*/React__default["default"].createElement(Animated__default["default"].View, {
1616
1726
  style: [{
1617
1727
  flex: 1
@@ -1654,40 +1764,18 @@ var RoundBtn$2 = function RoundBtn(_ref) {
1654
1764
  var scale = Animated.useSharedValue(1);
1655
1765
  var width = Animated.useSharedValue(80);
1656
1766
  var animatedStyle = Animated.useAnimatedStyle(function () {
1657
- var _f = function _f() {
1658
- return {
1659
- opacity: scale.value,
1660
- transform: [{
1661
- scale: scale.value
1662
- }]
1663
- };
1664
- };
1665
-
1666
- _f._closure = {
1667
- scale: scale
1767
+ return {
1768
+ opacity: scale.value,
1769
+ transform: [{
1770
+ scale: scale.value
1771
+ }]
1668
1772
  };
1669
- _f.asString = "function _f(){const{scale}=jsThis._closure;{return{opacity:scale.value,transform:[{scale:scale.value}]};}}";
1670
- _f.__workletHash = 15781601983731;
1671
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FloatingButton/FloatingButton.js (24:41)";
1672
- _f.__optimalization = 3;
1673
- return _f;
1674
- }());
1773
+ });
1675
1774
  var animatedWidth = Animated.useAnimatedStyle(function () {
1676
- var _f = function _f() {
1677
- return {
1678
- width: width.value
1679
- };
1680
- };
1681
-
1682
- _f._closure = {
1683
- width: width
1775
+ return {
1776
+ width: width.value
1684
1777
  };
1685
- _f.asString = "function _f(){const{width}=jsThis._closure;{return{width:width.value};}}";
1686
- _f.__workletHash = 11755410798377;
1687
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FloatingButton/FloatingButton.js (35:41)";
1688
- _f.__optimalization = 3;
1689
- return _f;
1690
- }());
1778
+ });
1691
1779
  React.useEffect(function () {
1692
1780
  if (active) {
1693
1781
  setTimeout(function () {
@@ -1748,46 +1836,21 @@ var RoundBtn$1 = function RoundBtn(_ref) {
1748
1836
  var left = Animated.useSharedValue(30);
1749
1837
  var bottom = Animated.useSharedValue(30);
1750
1838
  var animatedStyle = Animated.useAnimatedStyle(function () {
1751
- var _f = function _f() {
1752
- return {
1753
- opacity: scale.value,
1754
- transform: [{
1755
- scale: scale.value
1756
- }]
1757
- };
1758
- };
1759
-
1760
- _f._closure = {
1761
- scale: scale
1839
+ return {
1840
+ opacity: scale.value,
1841
+ transform: [{
1842
+ scale: scale.value
1843
+ }]
1762
1844
  };
1763
- _f.asString = "function _f(){const{scale}=jsThis._closure;{return{opacity:scale.value,transform:[{scale:scale.value}]};}}";
1764
- _f.__workletHash = 15781601983731;
1765
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FloatingButton/index.js (35:41)";
1766
- _f.__optimalization = 3;
1767
- return _f;
1768
- }());
1845
+ });
1769
1846
  var animatedAbsolute = Animated.useAnimatedStyle(function () {
1770
- var _f = function _f() {
1771
- return {
1772
- minWidth: width.value,
1773
- height: height.value,
1774
- left: left.value,
1775
- bottom: bottom.value
1776
- };
1777
- };
1778
-
1779
- _f._closure = {
1780
- width: width,
1781
- height: height,
1782
- left: left,
1783
- bottom: bottom
1847
+ return {
1848
+ minWidth: width.value,
1849
+ height: height.value,
1850
+ left: left.value,
1851
+ bottom: bottom.value
1784
1852
  };
1785
- _f.asString = "function _f(){const{width,height,left,bottom}=jsThis._closure;{return{minWidth:width.value,height:height.value,left:left.value,bottom:bottom.value};}}";
1786
- _f.__workletHash = 14161176176375;
1787
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FloatingButton/index.js (46:44)";
1788
- _f.__optimalization = 3;
1789
- return _f;
1790
- }());
1853
+ });
1791
1854
  React.useEffect(function () {
1792
1855
  scale.value = Animated.withTiming(1, {
1793
1856
  duration: 450,
@@ -1887,40 +1950,18 @@ var RoundBtn = function RoundBtn(_ref) {
1887
1950
  var scale = Animated.useSharedValue(1);
1888
1951
  var width = Animated.useSharedValue(70);
1889
1952
  var animatedStyle = Animated.useAnimatedStyle(function () {
1890
- var _f = function _f() {
1891
- return {
1892
- opacity: scale.value,
1893
- transform: [{
1894
- scale: scale.value
1895
- }]
1896
- };
1897
- };
1898
-
1899
- _f._closure = {
1900
- scale: scale
1953
+ return {
1954
+ opacity: scale.value,
1955
+ transform: [{
1956
+ scale: scale.value
1957
+ }]
1901
1958
  };
1902
- _f.asString = "function _f(){const{scale}=jsThis._closure;{return{opacity:scale.value,transform:[{scale:scale.value}]};}}";
1903
- _f.__workletHash = 15781601983731;
1904
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/AnimatedButton/FloatingButton.js (29:41)";
1905
- _f.__optimalization = 3;
1906
- return _f;
1907
- }());
1959
+ });
1908
1960
  var animatedWidth = Animated.useAnimatedStyle(function () {
1909
- var _f = function _f() {
1910
- return {
1911
- width: width.value
1912
- };
1913
- };
1914
-
1915
- _f._closure = {
1916
- width: width
1961
+ return {
1962
+ width: width.value
1917
1963
  };
1918
- _f.asString = "function _f(){const{width}=jsThis._closure;{return{width:width.value};}}";
1919
- _f.__workletHash = 11755410798377;
1920
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/AnimatedButton/FloatingButton.js (40:41)";
1921
- _f.__optimalization = 3;
1922
- return _f;
1923
- }());
1964
+ });
1924
1965
  React.useEffect(function () {
1925
1966
  setTimeout(function () {
1926
1967
  return width.value = Animated.withTiming(leftElement ? reactNative.Dimensions.get("window").width / 2 : reactNative.Dimensions.get("window").width - 60, {
@@ -1980,48 +2021,22 @@ var AnimatedButton$1 = function AnimatedButton(_ref) {
1980
2021
  var left = Animated.useSharedValue(0);
1981
2022
  var bottom = Animated.useSharedValue(10);
1982
2023
  var animatedStyle = Animated.useAnimatedStyle(function () {
1983
- var _f = function _f() {
1984
- return {
1985
- opacity: scale.value,
1986
- transform: [{
1987
- scale: scale.value
1988
- }]
1989
- };
1990
- };
1991
-
1992
- _f._closure = {
1993
- scale: scale
2024
+ return {
2025
+ opacity: scale.value,
2026
+ transform: [{
2027
+ scale: scale.value
2028
+ }]
1994
2029
  };
1995
- _f.asString = "function _f(){const{scale}=jsThis._closure;{return{opacity:scale.value,transform:[{scale:scale.value}]};}}";
1996
- _f.__workletHash = 15781601983731;
1997
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/AnimatedButton/index.js (33:41)";
1998
- _f.__optimalization = 3;
1999
- return _f;
2000
- }());
2030
+ });
2001
2031
  var animatedAbsolute = Animated.useAnimatedStyle(function () {
2002
- var _f = function _f() {
2003
- return {
2004
- minWidth: width.value,
2005
- height: height.value,
2006
- right: right.value,
2007
- left: left.value,
2008
- bottom: bottom.value
2009
- };
2010
- };
2011
-
2012
- _f._closure = {
2013
- width: width,
2014
- height: height,
2015
- right: right,
2016
- left: left,
2017
- bottom: bottom
2032
+ return {
2033
+ minWidth: width.value,
2034
+ height: height.value,
2035
+ right: right.value,
2036
+ left: left.value,
2037
+ bottom: bottom.value
2018
2038
  };
2019
- _f.asString = "function _f(){const{width,height,right,left,bottom}=jsThis._closure;{return{minWidth:width.value,height:height.value,right:right.value,left:left.value,bottom:bottom.value};}}";
2020
- _f.__workletHash = 2397013298280;
2021
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/AnimatedButton/index.js (44:44)";
2022
- _f.__optimalization = 3;
2023
- return _f;
2024
- }());
2039
+ });
2025
2040
  React.useEffect(function () {
2026
2041
  scale.value = Animated.withTiming(1, {
2027
2042
  duration: 450,
@@ -2114,40 +2129,18 @@ var RoundedBtn = function RoundedBtn(_ref) {
2114
2129
  var scale = Animated.useSharedValue(1);
2115
2130
  var width = Animated.useSharedValue("100%");
2116
2131
  var animatedStyle = Animated.useAnimatedStyle(function () {
2117
- var _f = function _f() {
2118
- return {
2119
- opacity: scale.value,
2120
- transform: [{
2121
- scale: scale.value
2122
- }]
2123
- };
2124
- };
2125
-
2126
- _f._closure = {
2127
- scale: scale
2132
+ return {
2133
+ opacity: scale.value,
2134
+ transform: [{
2135
+ scale: scale.value
2136
+ }]
2128
2137
  };
2129
- _f.asString = "function _f(){const{scale}=jsThis._closure;{return{opacity:scale.value,transform:[{scale:scale.value}]};}}";
2130
- _f.__workletHash = 15781601983731;
2131
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FeedbackButton/FloatingButton.js (28:41)";
2132
- _f.__optimalization = 3;
2133
- return _f;
2134
- }());
2138
+ });
2135
2139
  var animatedWidth = Animated.useAnimatedStyle(function () {
2136
- var _f = function _f() {
2137
- return {
2138
- width: width.value
2139
- };
2140
- };
2141
-
2142
- _f._closure = {
2143
- width: width
2140
+ return {
2141
+ width: width.value
2144
2142
  };
2145
- _f.asString = "function _f(){const{width}=jsThis._closure;{return{width:width.value};}}";
2146
- _f.__workletHash = 11755410798377;
2147
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FeedbackButton/FloatingButton.js (39:41)";
2148
- _f.__optimalization = 3;
2149
- return _f;
2150
- }());
2143
+ });
2151
2144
  React.useEffect(function () {
2152
2145
  if (loading) {
2153
2146
  width.value = Animated.withTiming(70, {
@@ -2198,46 +2191,21 @@ var AnimatedButton = function AnimatedButton(_ref) {
2198
2191
  var right = Animated.useSharedValue(0);
2199
2192
  var left = Animated.useSharedValue(0);
2200
2193
  var animatedStyle = Animated.useAnimatedStyle(function () {
2201
- var _f = function _f() {
2202
- return {
2203
- opacity: scale.value,
2204
- transform: [{
2205
- scale: scale.value
2206
- }]
2207
- };
2208
- };
2209
-
2210
- _f._closure = {
2211
- scale: scale
2194
+ return {
2195
+ opacity: scale.value,
2196
+ transform: [{
2197
+ scale: scale.value
2198
+ }]
2212
2199
  };
2213
- _f.asString = "function _f(){const{scale}=jsThis._closure;{return{opacity:scale.value,transform:[{scale:scale.value}]};}}";
2214
- _f.__workletHash = 15781601983731;
2215
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FeedbackButton/index.js (32:41)";
2216
- _f.__optimalization = 3;
2217
- return _f;
2218
- }());
2200
+ });
2219
2201
  var animatedAbsolute = Animated.useAnimatedStyle(function () {
2220
- var _f = function _f() {
2221
- return {
2222
- minWidth: width.value,
2223
- height: height.value,
2224
- right: right.value,
2225
- left: left.value
2226
- };
2227
- };
2228
-
2229
- _f._closure = {
2230
- width: width,
2231
- height: height,
2232
- right: right,
2233
- left: left
2202
+ return {
2203
+ minWidth: width.value,
2204
+ height: height.value,
2205
+ right: right.value,
2206
+ left: left.value
2234
2207
  };
2235
- _f.asString = "function _f(){const{width,height,right,left}=jsThis._closure;{return{minWidth:width.value,height:height.value,right:right.value,left:left.value};}}";
2236
- _f.__workletHash = 15930704015288;
2237
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FeedbackButton/index.js (43:44)";
2238
- _f.__optimalization = 3;
2239
- return _f;
2240
- }());
2208
+ });
2241
2209
  React.useEffect(function () {
2242
2210
  if (loading) {
2243
2211
  width.value = Animated.withTiming(reactNative.Dimensions.get("window").width, {
@@ -3734,46 +3702,21 @@ var AnimatedRoundedButton = function AnimatedRoundedButton(_ref) {
3734
3702
  var left = Animated.useSharedValue(0);
3735
3703
  var bottom = Animated.useSharedValue(10);
3736
3704
  var animatedStyle = Animated.useAnimatedStyle(function () {
3737
- var _f = function _f() {
3738
- return {
3739
- transform: [{
3740
- translateY: translateY.value
3741
- }],
3742
- width: "100%"
3743
- };
3744
- };
3745
-
3746
- _f._closure = {
3747
- translateY: translateY
3705
+ return {
3706
+ transform: [{
3707
+ translateY: translateY.value
3708
+ }],
3709
+ width: "100%"
3748
3710
  };
3749
- _f.asString = "function _f(){const{translateY}=jsThis._closure;{return{transform:[{translateY:translateY.value}],width:\"100%\"};}}";
3750
- _f.__workletHash = 232655703170;
3751
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/AnimatedRoundedButton/index.js (31:41)";
3752
- _f.__optimalization = 3;
3753
- return _f;
3754
- }());
3711
+ });
3755
3712
  var animatedAbsolute = Animated.useAnimatedStyle(function () {
3756
- var _f = function _f() {
3757
- return {
3758
- height: height.value,
3759
- right: right.value,
3760
- left: left.value,
3761
- bottom: bottom.value
3762
- };
3763
- };
3764
-
3765
- _f._closure = {
3766
- height: height,
3767
- right: right,
3768
- left: left,
3769
- bottom: bottom
3713
+ return {
3714
+ height: height.value,
3715
+ right: right.value,
3716
+ left: left.value,
3717
+ bottom: bottom.value
3770
3718
  };
3771
- _f.asString = "function _f(){const{height,right,left,bottom}=jsThis._closure;{return{height:height.value,right:right.value,left:left.value,bottom:bottom.value};}}";
3772
- _f.__workletHash = 12878771773755;
3773
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/AnimatedRoundedButton/index.js (42:44)";
3774
- _f.__optimalization = 3;
3775
- return _f;
3776
- }());
3719
+ });
3777
3720
  React.useEffect(function () {
3778
3721
  translateY.value = Animated.withTiming(0, {
3779
3722
  duration: 450,
@@ -52583,156 +52526,56 @@ var SwipeButton = function SwipeButton(_ref) {
52583
52526
 
52584
52527
  var x = Animated.useSharedValue(0);
52585
52528
  var gestureHandler = Animated.useAnimatedGestureHandler({
52586
- onStart: function () {
52587
- var _f = function _f(_, ctx) {
52588
- ctx.startX = x.value;
52589
- };
52590
-
52591
- _f._closure = {
52592
- x: x
52593
- };
52594
- _f.asString = "function _f(_,ctx){const{x}=jsThis._closure;{ctx.startX=x.value;}}";
52595
- _f.__workletHash = 5300485379009;
52596
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (46:13)";
52597
- return _f;
52598
- }(),
52599
- onActive: function () {
52600
- var _f = function _f(event, ctx) {
52601
- if (event.translationY > 60 || event.translationY < -60) {
52602
- x.value = Animated.withSpring(0);
52603
- } else {
52604
- if (ctx.startX + event.translationX > width - WIDTH_TO_REMOVE) {
52605
- x.value = width - WIDTH_FINAL;
52606
- Animated.runOnJS(setToggled)(true);
52607
- } else {
52608
- x.value = ctx.startX + event.translationX;
52609
- }
52610
- }
52611
- };
52612
-
52613
- _f._closure = {
52614
- x: x,
52615
- withSpring: Animated.withSpring,
52616
- width: width,
52617
- WIDTH_TO_REMOVE: WIDTH_TO_REMOVE,
52618
- WIDTH_FINAL: WIDTH_FINAL,
52619
- runOnJS: Animated.runOnJS,
52620
- setToggled: setToggled
52621
- };
52622
- _f.asString = "function _f(event,ctx){const{x,withSpring,width,WIDTH_TO_REMOVE,WIDTH_FINAL,runOnJS,setToggled}=jsThis._closure;{if(event.translationY>60||event.translationY<-60){x.value=withSpring(0);}else{if(ctx.startX+event.translationX>width-WIDTH_TO_REMOVE){x.value=width-WIDTH_FINAL;runOnJS(setToggled)(true);}else{x.value=ctx.startX+event.translationX;}}}}";
52623
- _f.__workletHash = 16638915014400;
52624
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (49:14)";
52625
- return _f;
52626
- }(),
52627
- onEnd: function () {
52628
- var _f = function _f(_) {
52629
- if (toggled) {
52529
+ onStart: function onStart(_, ctx) {
52530
+ ctx.startX = x.value;
52531
+ },
52532
+ onActive: function onActive(event, ctx) {
52533
+ if (event.translationY > 60 || event.translationY < -60) {
52534
+ x.value = Animated.withSpring(0);
52535
+ } else {
52536
+ if (ctx.startX + event.translationX > width - WIDTH_TO_REMOVE) {
52630
52537
  x.value = width - WIDTH_FINAL;
52538
+ Animated.runOnJS(setToggled)(true);
52631
52539
  } else {
52632
- x.value = Animated.withSpring(0);
52540
+ x.value = ctx.startX + event.translationX;
52633
52541
  }
52634
- };
52635
-
52636
- _f._closure = {
52637
- toggled: toggled,
52638
- x: x,
52639
- width: width,
52640
- WIDTH_FINAL: WIDTH_FINAL,
52641
- withSpring: Animated.withSpring
52642
- };
52643
- _f.asString = "function _f(_){const{toggled,x,width,WIDTH_FINAL,withSpring}=jsThis._closure;{if(toggled){x.value=width-WIDTH_FINAL;}else{x.value=withSpring(0);}}}";
52644
- _f.__workletHash = 9307804739149;
52645
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (61:11)";
52646
- return _f;
52647
- }()
52542
+ }
52543
+ },
52544
+ onEnd: function onEnd(_) {
52545
+ if (toggled) {
52546
+ x.value = width - WIDTH_FINAL;
52547
+ } else {
52548
+ x.value = Animated.withSpring(0);
52549
+ }
52550
+ }
52648
52551
  });
52649
52552
  var animatedStyle = Animated.useAnimatedStyle(function () {
52650
- var _f = function _f() {
52651
- return {
52652
- transform: [{
52653
- translateX: x.value
52654
- }]
52655
- };
52656
- };
52657
-
52658
- _f._closure = {
52659
- x: x
52553
+ return {
52554
+ transform: [{
52555
+ translateX: x.value
52556
+ }]
52660
52557
  };
52661
- _f.asString = "function _f(){const{x}=jsThis._closure;{return{transform:[{translateX:x.value}]};}}";
52662
- _f.__workletHash = 5278836605383;
52663
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (70:41)";
52664
- _f.__optimalization = 3;
52665
- return _f;
52666
- }());
52558
+ });
52667
52559
  var InterpolateXInput = [0, width];
52668
52560
  var colorWave = Animated.useAnimatedStyle(function () {
52669
- var _f = function _f() {
52670
- return {
52671
- width: x.value + BTN_WIDTH + BTN_PADDING,
52672
- opacity: Animated.interpolate(x.value, InterpolateXInput, [0, 1])
52673
- };
52674
- };
52675
-
52676
- _f._closure = {
52677
- x: x,
52678
- BTN_WIDTH: BTN_WIDTH,
52679
- BTN_PADDING: BTN_PADDING,
52680
- interpolate: Animated.interpolate,
52681
- InterpolateXInput: InterpolateXInput
52561
+ return {
52562
+ width: x.value + BTN_WIDTH + BTN_PADDING,
52563
+ opacity: Animated.interpolate(x.value, InterpolateXInput, [0, 1])
52682
52564
  };
52683
- _f.asString = "function _f(){const{x,BTN_WIDTH,BTN_PADDING,interpolate,InterpolateXInput}=jsThis._closure;{return{width:x.value+BTN_WIDTH+BTN_PADDING,opacity:interpolate(x.value,InterpolateXInput,[0,1])};}}";
52684
- _f.__workletHash = 1719171425649;
52685
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (82:37)";
52686
- _f.__optimalization = 3;
52687
- return _f;
52688
- }());
52565
+ });
52689
52566
  var animatedBorder = Animated.useAnimatedStyle(function () {
52690
- var _f = function _f() {
52691
- return {
52692
- borderColor: Animated.interpolateColor(x.value, [0, width - WIDTH_FINAL], [theme.color7, borderColor])
52693
- };
52694
- };
52695
-
52696
- _f._closure = {
52697
- interpolateColor: Animated.interpolateColor,
52698
- x: x,
52699
- width: width,
52700
- WIDTH_FINAL: WIDTH_FINAL,
52701
- theme: {
52702
- color7: theme.color7
52703
- },
52704
- borderColor: borderColor
52567
+ return {
52568
+ borderColor: Animated.interpolateColor(x.value, [0, width - WIDTH_FINAL], [theme.color7, borderColor])
52705
52569
  };
52706
- _f.asString = "function _f(){const{interpolateColor,x,width,WIDTH_FINAL,theme,borderColor}=jsThis._closure;{return{borderColor:interpolateColor(x.value,[0,width-WIDTH_FINAL],[theme.color7,borderColor])};}}";
52707
- _f.__workletHash = 2946001185610;
52708
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (89:42)";
52709
- _f.__optimalization = 2;
52710
- return _f;
52711
- }());
52570
+ });
52712
52571
  var animatedText = Animated.useAnimatedStyle(function () {
52713
- var _f = function _f() {
52714
- return {
52715
- opacity: Animated.interpolate(x.value, InterpolateXInput, [1, 0], Animated.Extrapolate.CLAMP),
52716
- transform: [{
52717
- translateX: x.value
52718
- }]
52719
- };
52572
+ return {
52573
+ opacity: Animated.interpolate(x.value, InterpolateXInput, [1, 0], Animated.Extrapolate.CLAMP),
52574
+ transform: [{
52575
+ translateX: x.value
52576
+ }]
52720
52577
  };
52721
-
52722
- _f._closure = {
52723
- interpolate: Animated.interpolate,
52724
- x: x,
52725
- InterpolateXInput: InterpolateXInput,
52726
- Extrapolate: {
52727
- CLAMP: Animated.Extrapolate.CLAMP
52728
- }
52729
- };
52730
- _f.asString = "function _f(){const{interpolate,x,InterpolateXInput,Extrapolate}=jsThis._closure;{return{opacity:interpolate(x.value,InterpolateXInput,[1,0],Extrapolate.CLAMP),transform:[{translateX:x.value}]};}}";
52731
- _f.__workletHash = 460398395074;
52732
- _f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (99:40)";
52733
- _f.__optimalization = 3;
52734
- return _f;
52735
- }());
52578
+ });
52736
52579
  return /*#__PURE__*/React__default["default"].createElement(Wrapper$1, {
52737
52580
  onLayout: onLayout
52738
52581
  }, /*#__PURE__*/React__default["default"].createElement(RoundWrapper, {
@@ -54602,11 +54445,19 @@ var Item = function Item(_ref) {
54602
54445
  source: {
54603
54446
  uri: item.src
54604
54447
  }
54605
- }), /*#__PURE__*/React__default["default"].createElement(Row, null, /*#__PURE__*/React__default["default"].createElement(Box, {
54448
+ }), /*#__PURE__*/React__default["default"].createElement(Row, {
54449
+ style: {
54450
+ alignItems: "center"
54451
+ }
54452
+ }, /*#__PURE__*/React__default["default"].createElement(Box, {
54606
54453
  style: {
54607
54454
  flex: 4
54608
54455
  }
54609
- }, /*#__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)))))))));
54456
+ }, /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, /*#__PURE__*/React__default["default"].createElement(H4Text, null, item.name))), variant === "countryCode" && /*#__PURE__*/React__default["default"].createElement(Box, {
54457
+ style: {
54458
+ flex: 3
54459
+ }
54460
+ }, /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, /*#__PURE__*/React__default["default"].createElement(H4Text, null, item.code)))))))));
54610
54461
  };
54611
54462
 
54612
54463
  function NewCustomer(_ref2) {
@@ -54748,6 +54599,7 @@ exports.Icon = Icon;
54748
54599
  exports.Input = Input$1;
54749
54600
  exports.InputNormal = Input;
54750
54601
  exports.InputOtp = InputOtp;
54602
+ exports.InputPhone = InputPhone;
54751
54603
  exports.Loader = Loader;
54752
54604
  exports.Margin = Margin;
54753
54605
  exports.MarginBottom = MarginBottom;