@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.
- package/dist/bundle.cjs.js +420 -568
- package/dist/bundle.esm.js +421 -570
- package/dist/bundle.umd.js +420 -568
- package/package.json +3 -8
- package/src/Buttons/RoundedButton/RoundedButton.style.js +6 -3
- package/src/Buttons/RoundedButton/index.js +2 -0
- package/src/CountryFlatList/index.js +2 -2
- package/src/Inputs/InputNormal/Animated.style.js +11 -0
- package/src/Inputs/InputNormal/index.js +4 -0
- package/src/Inputs/PhoneNumber/Animated.style.js +23 -0
- package/src/Inputs/PhoneNumber/Placeholder/index.js +46 -0
- package/src/Inputs/PhoneNumber/index.js +151 -0
- package/src/Inputs/index.js +2 -1
- package/src/Theme/definitions/colors.js +1 -0
- package/src/index.js +8 -1
- package/src/Inputs/PhoneNumber/PrefixPicker/index.js +0 -200
- package/src/Inputs/PhoneNumber/PrefixPicker/prefixList.js +0 -946
package/dist/bundle.umd.js
CHANGED
|
@@ -233,6 +233,7 @@
|
|
|
233
233
|
greenLight: "#F3FFFC",
|
|
234
234
|
greenDark: "#236A56",
|
|
235
235
|
greyText: "#b2bec3",
|
|
236
|
+
greyButton: "#94A3A9",
|
|
236
237
|
red: "#ff7675",
|
|
237
238
|
redlight: "#FFFAF9",
|
|
238
239
|
redDark: "#9C4140",
|
|
@@ -288,8 +289,8 @@
|
|
|
288
289
|
return React__default["default"].useContext(styled.ThemeContext);
|
|
289
290
|
};
|
|
290
291
|
|
|
291
|
-
var _templateObject$
|
|
292
|
-
var H1 = styled__default["default"].Text(_templateObject$
|
|
292
|
+
var _templateObject$n, _templateObject2$e, _templateObject3$7, _templateObject4$1, _templateObject5$1, _templateObject6$1, _templateObject7$1;
|
|
293
|
+
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) {
|
|
293
294
|
return props.theme.large;
|
|
294
295
|
}, function (props) {
|
|
295
296
|
return props.fontFamily || props.theme.fontFamily1;
|
|
@@ -302,7 +303,7 @@
|
|
|
302
303
|
}, function (props) {
|
|
303
304
|
return props.style;
|
|
304
305
|
});
|
|
305
|
-
var H2 = styled__default["default"].Text(_templateObject2$
|
|
306
|
+
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) {
|
|
306
307
|
return props.theme.medium;
|
|
307
308
|
}, function (props) {
|
|
308
309
|
return props.fontFamily || props.theme.fontFamily1;
|
|
@@ -315,7 +316,7 @@
|
|
|
315
316
|
}, function (props) {
|
|
316
317
|
return props.style;
|
|
317
318
|
});
|
|
318
|
-
var H3 = styled__default["default"].Text(_templateObject3$
|
|
319
|
+
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) {
|
|
319
320
|
return props.theme.small;
|
|
320
321
|
}, function (props) {
|
|
321
322
|
return props.fontFamily || props.theme.fontFamily1;
|
|
@@ -542,14 +543,14 @@
|
|
|
542
543
|
style: PropTypes__default["default"].object
|
|
543
544
|
};
|
|
544
545
|
|
|
545
|
-
var _templateObject$
|
|
546
|
+
var _templateObject$m, _templateObject2$d, _templateObject3$6, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19;
|
|
546
547
|
var DEFAULT_FLEX_DIRECTION = reactNative.Platform.OS === "web" ? "column" : "column";
|
|
547
|
-
var CenterElement = styled__default["default"].View(_templateObject$
|
|
548
|
+
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) {
|
|
548
549
|
return props.flexDirection || DEFAULT_FLEX_DIRECTION;
|
|
549
550
|
}, function (props) {
|
|
550
551
|
return props.style;
|
|
551
552
|
});
|
|
552
|
-
var CenterLeftElement = styled__default["default"].View(_templateObject2$
|
|
553
|
+
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) {
|
|
553
554
|
return (props.flexDirection || DEFAULT_FLEX_DIRECTION) === "row" ? "center" : "flex-start";
|
|
554
555
|
}, function (props) {
|
|
555
556
|
return (props.flexDirection || DEFAULT_FLEX_DIRECTION) === "row" ? "flex-start" : "center";
|
|
@@ -558,7 +559,7 @@
|
|
|
558
559
|
}, function (props) {
|
|
559
560
|
return props.style;
|
|
560
561
|
});
|
|
561
|
-
var CenterRightElement = styled__default["default"].View(_templateObject3$
|
|
562
|
+
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) {
|
|
562
563
|
return (props.flexDirection || DEFAULT_FLEX_DIRECTION) === "row" ? "center" : "flex-end";
|
|
563
564
|
}, function (props) {
|
|
564
565
|
return (props.flexDirection || DEFAULT_FLEX_DIRECTION) === "row" ? "flex-end" : "center";
|
|
@@ -893,22 +894,22 @@
|
|
|
893
894
|
}, children);
|
|
894
895
|
};
|
|
895
896
|
|
|
896
|
-
var _templateObject$
|
|
897
|
-
var InputWrapper$
|
|
898
|
-
var InputElement$
|
|
897
|
+
var _templateObject$l, _templateObject2$c, _templateObject3$5;
|
|
898
|
+
var InputWrapper$2 = styled__default["default"].Pressable(_templateObject$l || (_templateObject$l = _taggedTemplateLiteral(["\n min-height: 80px;\n"])));
|
|
899
|
+
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) {
|
|
899
900
|
return props.theme.fontFamily2;
|
|
900
901
|
}, function (props) {
|
|
901
902
|
return props.theme.small;
|
|
902
903
|
}, function (props) {
|
|
903
904
|
return props.theme.color2;
|
|
904
905
|
});
|
|
905
|
-
var BorderWrapper$
|
|
906
|
+
var BorderWrapper$3 = styled__default["default"].View(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteral(["\n height: 4px;\n"])));
|
|
906
907
|
|
|
907
|
-
var _templateObject$
|
|
908
|
-
var BorderIdle$1 = styled__default["default"].View(_templateObject$
|
|
908
|
+
var _templateObject$k, _templateObject2$b;
|
|
909
|
+
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) {
|
|
909
910
|
return props.color;
|
|
910
911
|
});
|
|
911
|
-
var BorderActive$1 = styled__default["default"].View(_templateObject2$
|
|
912
|
+
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) {
|
|
912
913
|
return props.color;
|
|
913
914
|
});
|
|
914
915
|
|
|
@@ -920,29 +921,16 @@
|
|
|
920
921
|
hasError = _ref.hasError;
|
|
921
922
|
var widthActive = Animated.useSharedValue(0);
|
|
922
923
|
var animatedStyleWidthActive = Animated.useAnimatedStyle(function () {
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
})
|
|
932
|
-
};
|
|
933
|
-
};
|
|
934
|
-
|
|
935
|
-
_f._closure = {
|
|
936
|
-
active: active,
|
|
937
|
-
withTiming: Animated.withTiming,
|
|
938
|
-
widthActive: widthActive
|
|
924
|
+
return active ? {
|
|
925
|
+
width: Animated.withTiming(widthActive.value, {
|
|
926
|
+
duration: 350
|
|
927
|
+
})
|
|
928
|
+
} : {
|
|
929
|
+
width: Animated.withTiming(0, {
|
|
930
|
+
duration: 350
|
|
931
|
+
})
|
|
939
932
|
};
|
|
940
|
-
|
|
941
|
-
_f.__workletHash = 6082653035732;
|
|
942
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Inputs/Animated/LineAnimation/index.js (19:52)";
|
|
943
|
-
_f.__optimalization = 2;
|
|
944
|
-
return _f;
|
|
945
|
-
}());
|
|
933
|
+
});
|
|
946
934
|
return /*#__PURE__*/React__default["default"].createElement(Row, null, /*#__PURE__*/React__default["default"].createElement(BorderIdle$1, {
|
|
947
935
|
color: !hasError ? borderColorIdle : borderColorError,
|
|
948
936
|
onLayout: function onLayout(e) {
|
|
@@ -957,33 +945,18 @@
|
|
|
957
945
|
})));
|
|
958
946
|
};
|
|
959
947
|
|
|
960
|
-
var PlaceholderElement$
|
|
948
|
+
var PlaceholderElement$2 = /*#__PURE__*/React__default["default"].memo(function (_ref) {
|
|
961
949
|
var children = _ref.children,
|
|
962
950
|
active = _ref.active;
|
|
963
951
|
var bottom = Animated.useSharedValue(active ? 50 : 4);
|
|
964
952
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
})
|
|
971
|
-
};
|
|
972
|
-
};
|
|
973
|
-
|
|
974
|
-
_f._closure = {
|
|
975
|
-
withTiming: Animated.withTiming,
|
|
976
|
-
bottom: bottom,
|
|
977
|
-
Easing: {
|
|
978
|
-
bezier: Animated.Easing.bezier
|
|
979
|
-
}
|
|
953
|
+
return {
|
|
954
|
+
bottom: Animated.withTiming(bottom.value, {
|
|
955
|
+
duration: 250,
|
|
956
|
+
easing: Animated.Easing.bezier(0.19, 1.0, 0.22, 1.0)
|
|
957
|
+
})
|
|
980
958
|
};
|
|
981
|
-
|
|
982
|
-
_f.__workletHash = 551286745489;
|
|
983
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Inputs/Animated/Placeholder/index.js (12:41)";
|
|
984
|
-
_f.__optimalization = 2;
|
|
985
|
-
return _f;
|
|
986
|
-
}());
|
|
959
|
+
});
|
|
987
960
|
React.useEffect(function () {
|
|
988
961
|
if (active) {
|
|
989
962
|
bottom.value = 50;
|
|
@@ -1052,18 +1025,18 @@
|
|
|
1052
1025
|
return /*#__PURE__*/React__default["default"].createElement(reactNative.KeyboardAvoidingView, {
|
|
1053
1026
|
behavior: reactNative.Platform.OS === "ios" ? "padding" : "height",
|
|
1054
1027
|
keyboardVerticalOffset: keyboardVerticalOffset
|
|
1055
|
-
}, /*#__PURE__*/React__default["default"].createElement(InputWrapper$
|
|
1028
|
+
}, /*#__PURE__*/React__default["default"].createElement(InputWrapper$2, {
|
|
1056
1029
|
onPress: function onPress() {
|
|
1057
1030
|
var _inputRef$current2;
|
|
1058
1031
|
|
|
1059
1032
|
setIsFocused(true);
|
|
1060
1033
|
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus();
|
|
1061
1034
|
}
|
|
1062
|
-
}, /*#__PURE__*/React__default["default"].createElement(PlaceholderElement$
|
|
1035
|
+
}, /*#__PURE__*/React__default["default"].createElement(PlaceholderElement$2, {
|
|
1063
1036
|
active: isFocused || textValue && textValue.length > 0
|
|
1064
1037
|
}, !hasError ? children : /*#__PURE__*/React__default["default"].createElement(H3Text, {
|
|
1065
1038
|
color: borderColorError
|
|
1066
|
-
}, error || hasError)), /*#__PURE__*/React__default["default"].createElement(InputElement$
|
|
1039
|
+
}, error || hasError)), /*#__PURE__*/React__default["default"].createElement(InputElement$2, {
|
|
1067
1040
|
ref: inputRef,
|
|
1068
1041
|
onFocus: function onFocus() {
|
|
1069
1042
|
return setIsFocused(true);
|
|
@@ -1083,7 +1056,7 @@
|
|
|
1083
1056
|
keyboardType: keyboardType,
|
|
1084
1057
|
editable: editable,
|
|
1085
1058
|
style: style
|
|
1086
|
-
}), /*#__PURE__*/React__default["default"].createElement(BorderWrapper$
|
|
1059
|
+
}), /*#__PURE__*/React__default["default"].createElement(BorderWrapper$3, null, /*#__PURE__*/React__default["default"].createElement(Line$1, {
|
|
1087
1060
|
active: isFocused,
|
|
1088
1061
|
borderColorActive: borderColorActive,
|
|
1089
1062
|
borderColorIdle: borderColorIdle,
|
|
@@ -1102,21 +1075,10 @@
|
|
|
1102
1075
|
|
|
1103
1076
|
var fade = Animated.useSharedValue(7);
|
|
1104
1077
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
opacity: fade.value
|
|
1108
|
-
};
|
|
1078
|
+
return {
|
|
1079
|
+
opacity: fade.value
|
|
1109
1080
|
};
|
|
1110
|
-
|
|
1111
|
-
_f._closure = {
|
|
1112
|
-
fade: fade
|
|
1113
|
-
};
|
|
1114
|
-
_f.asString = "function _f(){const{fade}=jsThis._closure;{return{opacity:fade.value};}}";
|
|
1115
|
-
_f.__workletHash = 16298690497334;
|
|
1116
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Inputs/AnimatedPlaceholder/AnimatedItem.js (14:41)";
|
|
1117
|
-
_f.__optimalization = 3;
|
|
1118
|
-
return _f;
|
|
1119
|
-
}());
|
|
1081
|
+
});
|
|
1120
1082
|
|
|
1121
1083
|
var runNewChild = function runNewChild() {
|
|
1122
1084
|
setChildNumber(function (prevChildNumber) {
|
|
@@ -1127,24 +1089,13 @@
|
|
|
1127
1089
|
React.useEffect(function () {
|
|
1128
1090
|
fade.value = Animated.withRepeat(Animated.withTiming(0, {
|
|
1129
1091
|
duration: 2000
|
|
1130
|
-
}, function () {
|
|
1131
|
-
|
|
1132
|
-
if (
|
|
1133
|
-
|
|
1134
|
-
Animated.runOnJS(runNewChild)();
|
|
1135
|
-
}
|
|
1092
|
+
}, function (finished, currentValue) {
|
|
1093
|
+
if (finished) {
|
|
1094
|
+
if (currentValue === 0) {
|
|
1095
|
+
Animated.runOnJS(runNewChild)();
|
|
1136
1096
|
}
|
|
1137
|
-
}
|
|
1138
|
-
|
|
1139
|
-
_f._closure = {
|
|
1140
|
-
runOnJS: Animated.runOnJS,
|
|
1141
|
-
runNewChild: runNewChild
|
|
1142
|
-
};
|
|
1143
|
-
_f.asString = "function _f(finished,currentValue){const{runOnJS,runNewChild}=jsThis._closure;{if(finished){if(currentValue===0){runOnJS(runNewChild)();}}}}";
|
|
1144
|
-
_f.__workletHash = 54360799953;
|
|
1145
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Inputs/AnimatedPlaceholder/AnimatedItem.js (28:40)";
|
|
1146
|
-
return _f;
|
|
1147
|
-
}()), -1, true);
|
|
1097
|
+
}
|
|
1098
|
+
}), -1, true);
|
|
1148
1099
|
}, []);
|
|
1149
1100
|
return /*#__PURE__*/React__default["default"].createElement(Animated__default["default"].View, {
|
|
1150
1101
|
style: [{
|
|
@@ -1252,9 +1203,9 @@
|
|
|
1252
1203
|
}))));
|
|
1253
1204
|
};
|
|
1254
1205
|
|
|
1255
|
-
var _templateObject$
|
|
1256
|
-
var InputWrapper = styled__default["default"].Pressable(_templateObject$
|
|
1257
|
-
var InputElement = styled__default["default"].TextInput(_templateObject2$
|
|
1206
|
+
var _templateObject$j, _templateObject2$a, _templateObject3$4;
|
|
1207
|
+
var InputWrapper$1 = styled__default["default"].Pressable(_templateObject$j || (_templateObject$j = _taggedTemplateLiteral(["\n min-height: 70px;\n"])));
|
|
1208
|
+
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) {
|
|
1258
1209
|
return props.theme.fontFamily2;
|
|
1259
1210
|
}, function (props) {
|
|
1260
1211
|
return props.theme.small;
|
|
@@ -1263,41 +1214,42 @@
|
|
|
1263
1214
|
}, function (props) {
|
|
1264
1215
|
return props.active ? props.theme.color1 : props.theme.color10;
|
|
1265
1216
|
});
|
|
1266
|
-
var BorderWrapper$
|
|
1217
|
+
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) {
|
|
1267
1218
|
return props.color;
|
|
1268
1219
|
}, function (props) {
|
|
1269
1220
|
return props.theme.borderRadiusSmall;
|
|
1270
1221
|
}, function (props) {
|
|
1271
1222
|
return props.active ? props.theme.color1 : props.theme.color10;
|
|
1223
|
+
}, function (_ref) {
|
|
1224
|
+
var isRightBound = _ref.isRightBound,
|
|
1225
|
+
isLeftBound = _ref.isLeftBound,
|
|
1226
|
+
active = _ref.active;
|
|
1227
|
+
|
|
1228
|
+
if (isRightBound) {
|
|
1229
|
+
if (!active) {
|
|
1230
|
+
return "borderTopRightRadius: 0px; borderBottomRightRadius: 0px; border-right-width: 0px;";
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
return "borderTopRightRadius: 0px; borderBottomRightRadius: 0px;";
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
if (isLeftBound) {
|
|
1237
|
+
return "borderTopLeftRadius: 0px; borderBottomLeftRadius: 0px;";
|
|
1238
|
+
}
|
|
1272
1239
|
});
|
|
1273
1240
|
|
|
1274
|
-
var PlaceholderElement = /*#__PURE__*/React__default["default"].memo(function (_ref) {
|
|
1241
|
+
var PlaceholderElement$1 = /*#__PURE__*/React__default["default"].memo(function (_ref) {
|
|
1275
1242
|
var children = _ref.children,
|
|
1276
1243
|
active = _ref.active;
|
|
1277
1244
|
var top = Animated.useSharedValue(active ? 10 : 30);
|
|
1278
1245
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
})
|
|
1285
|
-
};
|
|
1286
|
-
};
|
|
1287
|
-
|
|
1288
|
-
_f._closure = {
|
|
1289
|
-
withTiming: Animated.withTiming,
|
|
1290
|
-
top: top,
|
|
1291
|
-
Easing: {
|
|
1292
|
-
bezier: Animated.Easing.bezier
|
|
1293
|
-
}
|
|
1246
|
+
return {
|
|
1247
|
+
top: Animated.withTiming(top.value, {
|
|
1248
|
+
duration: 250,
|
|
1249
|
+
easing: Animated.Easing.bezier(0.19, 1.0, 0.22, 1.0)
|
|
1250
|
+
})
|
|
1294
1251
|
};
|
|
1295
|
-
|
|
1296
|
-
_f.__workletHash = 3739814920853;
|
|
1297
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Inputs/InputNormal/Placeholder/index.js (12:41)";
|
|
1298
|
-
_f.__optimalization = 2;
|
|
1299
|
-
return _f;
|
|
1300
|
-
}());
|
|
1252
|
+
});
|
|
1301
1253
|
React.useEffect(function () {
|
|
1302
1254
|
if (active) {
|
|
1303
1255
|
top.value = 10;
|
|
@@ -1343,7 +1295,11 @@
|
|
|
1343
1295
|
keyboardVerticalOffset = _ref$keyboardVertical === void 0 ? 0 : _ref$keyboardVertical,
|
|
1344
1296
|
_ref$hasError = _ref.hasError,
|
|
1345
1297
|
hasError = _ref$hasError === void 0 ? false : _ref$hasError,
|
|
1346
|
-
error = _ref.error
|
|
1298
|
+
error = _ref.error,
|
|
1299
|
+
_ref$isRightBound = _ref.isRightBound,
|
|
1300
|
+
isRightBound = _ref$isRightBound === void 0 ? false : _ref$isRightBound,
|
|
1301
|
+
_ref$isLeftBound = _ref.isLeftBound,
|
|
1302
|
+
isLeftBound = _ref$isLeftBound === void 0 ? false : _ref$isLeftBound;
|
|
1347
1303
|
|
|
1348
1304
|
var _useState = React.useState(false),
|
|
1349
1305
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -1367,7 +1323,7 @@
|
|
|
1367
1323
|
return /*#__PURE__*/React__default["default"].createElement(reactNative.KeyboardAvoidingView, {
|
|
1368
1324
|
behavior: reactNative.Platform.OS === "ios" ? "padding" : "height",
|
|
1369
1325
|
keyboardVerticalOffset: keyboardVerticalOffset
|
|
1370
|
-
}, /*#__PURE__*/React__default["default"].createElement(InputWrapper, {
|
|
1326
|
+
}, /*#__PURE__*/React__default["default"].createElement(InputWrapper$1, {
|
|
1371
1327
|
onPress: function onPress() {
|
|
1372
1328
|
var _inputRef$current2;
|
|
1373
1329
|
|
|
@@ -1376,14 +1332,16 @@
|
|
|
1376
1332
|
editable && setIsFocused(true);
|
|
1377
1333
|
editable && ((_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus());
|
|
1378
1334
|
}
|
|
1379
|
-
}, /*#__PURE__*/React__default["default"].createElement(BorderWrapper$
|
|
1335
|
+
}, /*#__PURE__*/React__default["default"].createElement(BorderWrapper$2, {
|
|
1336
|
+
isRightBound: isRightBound,
|
|
1337
|
+
isLeftBound: isLeftBound,
|
|
1380
1338
|
active: isFocused,
|
|
1381
1339
|
color: !hasError ? isFocused ? borderColorActive : borderColorIdle : borderColorError
|
|
1382
|
-
}, /*#__PURE__*/React__default["default"].createElement(PlaceholderElement, {
|
|
1340
|
+
}, /*#__PURE__*/React__default["default"].createElement(PlaceholderElement$1, {
|
|
1383
1341
|
active: isFocused || textValue && textValue.length > 0 || value && value.length > 0
|
|
1384
1342
|
}, /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, !hasError ? children : /*#__PURE__*/React__default["default"].createElement(H4Text, {
|
|
1385
1343
|
color: borderColorError
|
|
1386
|
-
}, error || hasError))), /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, /*#__PURE__*/React__default["default"].createElement(InputElement, {
|
|
1344
|
+
}, error || hasError))), /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, /*#__PURE__*/React__default["default"].createElement(InputElement$1, {
|
|
1387
1345
|
ref: inputRef,
|
|
1388
1346
|
onFocus: function onFocus() {
|
|
1389
1347
|
return setIsFocused(true);
|
|
@@ -1407,6 +1365,192 @@
|
|
|
1407
1365
|
})))));
|
|
1408
1366
|
};
|
|
1409
1367
|
|
|
1368
|
+
var _templateObject$i, _templateObject2$9, _templateObject3$3;
|
|
1369
|
+
var InputWrapper = styled__default["default"].Pressable(_templateObject$i || (_templateObject$i = _taggedTemplateLiteral(["\n min-height: 70px;\n"])));
|
|
1370
|
+
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) {
|
|
1371
|
+
return props.theme.fontFamily2;
|
|
1372
|
+
}, function (props) {
|
|
1373
|
+
return props.theme.small;
|
|
1374
|
+
}, function (props) {
|
|
1375
|
+
return props.theme.color2;
|
|
1376
|
+
}, function (props) {
|
|
1377
|
+
return props.active ? props.theme.color1 : props.theme.color10;
|
|
1378
|
+
});
|
|
1379
|
+
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) {
|
|
1380
|
+
return props.color;
|
|
1381
|
+
}, function (props) {
|
|
1382
|
+
return props.theme.borderRadiusSmall;
|
|
1383
|
+
}, function (props) {
|
|
1384
|
+
return props.active ? props.theme.color1 : props.theme.color10;
|
|
1385
|
+
});
|
|
1386
|
+
|
|
1387
|
+
var PlaceholderElement = /*#__PURE__*/React__default["default"].memo(function (_ref) {
|
|
1388
|
+
var children = _ref.children,
|
|
1389
|
+
active = _ref.active;
|
|
1390
|
+
var top = Animated.useSharedValue(active ? 10 : 30);
|
|
1391
|
+
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
1392
|
+
return {
|
|
1393
|
+
top: Animated.withTiming(top.value, {
|
|
1394
|
+
duration: 250,
|
|
1395
|
+
easing: Animated.Easing.bezier(0.19, 1.0, 0.22, 1.0)
|
|
1396
|
+
})
|
|
1397
|
+
};
|
|
1398
|
+
});
|
|
1399
|
+
React.useEffect(function () {
|
|
1400
|
+
if (active) {
|
|
1401
|
+
top.value = 10;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
if (!active) {
|
|
1405
|
+
top.value = 30;
|
|
1406
|
+
}
|
|
1407
|
+
}, [active]);
|
|
1408
|
+
return /*#__PURE__*/React__default["default"].createElement(Animated__default["default"].View, {
|
|
1409
|
+
style: [{
|
|
1410
|
+
position: "absolute",
|
|
1411
|
+
zIndex: 1,
|
|
1412
|
+
justifyContent: "center"
|
|
1413
|
+
}, animatedStyle]
|
|
1414
|
+
}, children);
|
|
1415
|
+
});
|
|
1416
|
+
|
|
1417
|
+
var InputPhone = function InputPhone(_ref) {
|
|
1418
|
+
var children = _ref.children,
|
|
1419
|
+
style = _ref.style,
|
|
1420
|
+
borderColorIdle = _ref.borderColorIdle,
|
|
1421
|
+
borderColorActive = _ref.borderColorActive,
|
|
1422
|
+
borderColorError = _ref.borderColorError,
|
|
1423
|
+
_ref$textChangePrefix = _ref.textChangePrefix,
|
|
1424
|
+
textChangePrefix = _ref$textChangePrefix === void 0 ? function () {} : _ref$textChangePrefix,
|
|
1425
|
+
_ref$textChangeNumber = _ref.textChangeNumber,
|
|
1426
|
+
textChangeNumber = _ref$textChangeNumber === void 0 ? function () {} : _ref$textChangeNumber,
|
|
1427
|
+
_ref$onPress = _ref.onPress,
|
|
1428
|
+
_onPress = _ref$onPress === void 0 ? function () {} : _ref$onPress,
|
|
1429
|
+
valuePrefix = _ref.valuePrefix,
|
|
1430
|
+
valueNumber = _ref.valueNumber,
|
|
1431
|
+
defaultValuePrefix = _ref.defaultValuePrefix,
|
|
1432
|
+
defaultValueNumber = _ref.defaultValueNumber,
|
|
1433
|
+
_ref$multiline = _ref.multiline,
|
|
1434
|
+
multiline = _ref$multiline === void 0 ? false : _ref$multiline,
|
|
1435
|
+
_ref$numberOfLines = _ref.numberOfLines,
|
|
1436
|
+
numberOfLines = _ref$numberOfLines === void 0 ? 1 : _ref$numberOfLines,
|
|
1437
|
+
_ref$maxLength = _ref.maxLength,
|
|
1438
|
+
maxLength = _ref$maxLength === void 0 ? 1000 : _ref$maxLength,
|
|
1439
|
+
_ref$autoFocus = _ref.autoFocus,
|
|
1440
|
+
autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus,
|
|
1441
|
+
keyboardType = _ref.keyboardType,
|
|
1442
|
+
_ref$editable = _ref.editable,
|
|
1443
|
+
editable = _ref$editable === void 0 ? true : _ref$editable,
|
|
1444
|
+
_ref$keyboardVertical = _ref.keyboardVerticalOffset,
|
|
1445
|
+
keyboardVerticalOffset = _ref$keyboardVertical === void 0 ? 0 : _ref$keyboardVertical,
|
|
1446
|
+
_ref$hasError = _ref.hasError,
|
|
1447
|
+
hasError = _ref$hasError === void 0 ? false : _ref$hasError,
|
|
1448
|
+
error = _ref.error;
|
|
1449
|
+
|
|
1450
|
+
var _useState = React.useState(false),
|
|
1451
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1452
|
+
isFocused = _useState2[0],
|
|
1453
|
+
setIsFocused = _useState2[1];
|
|
1454
|
+
|
|
1455
|
+
var _useState3 = React.useState(valuePrefix || defaultValuePrefix),
|
|
1456
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
1457
|
+
textValue = _useState4[0],
|
|
1458
|
+
setTextValue = _useState4[1];
|
|
1459
|
+
|
|
1460
|
+
var _useState5 = React.useState(false),
|
|
1461
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
1462
|
+
isFocusedPrefix = _useState6[0],
|
|
1463
|
+
setIsFocusedPrefix = _useState6[1];
|
|
1464
|
+
|
|
1465
|
+
var _useState7 = React.useState(valueNumber || defaultValueNumber),
|
|
1466
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
1467
|
+
textPrefixValue = _useState8[0],
|
|
1468
|
+
setTextPrefixValue = _useState8[1];
|
|
1469
|
+
|
|
1470
|
+
var inputRef = React.useRef();
|
|
1471
|
+
React.useEffect(function () {
|
|
1472
|
+
textChangeNumber(textValue);
|
|
1473
|
+
}, [textValue]);
|
|
1474
|
+
React.useEffect(function () {
|
|
1475
|
+
textChangePrefix(textPrefixValue);
|
|
1476
|
+
}, [textPrefixValue]);
|
|
1477
|
+
React.useEffect(function () {
|
|
1478
|
+
var _inputRef$current;
|
|
1479
|
+
|
|
1480
|
+
autoFocus && ((_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus());
|
|
1481
|
+
}, [autoFocus]);
|
|
1482
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.KeyboardAvoidingView, {
|
|
1483
|
+
behavior: reactNative.Platform.OS === "ios" ? "padding" : "height",
|
|
1484
|
+
keyboardVerticalOffset: keyboardVerticalOffset
|
|
1485
|
+
}, /*#__PURE__*/React__default["default"].createElement(InputWrapper, {
|
|
1486
|
+
onPress: function onPress() {
|
|
1487
|
+
var _inputRef$current2;
|
|
1488
|
+
|
|
1489
|
+
_onPress();
|
|
1490
|
+
|
|
1491
|
+
editable && setIsFocused(true);
|
|
1492
|
+
editable && ((_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus());
|
|
1493
|
+
}
|
|
1494
|
+
}, /*#__PURE__*/React__default["default"].createElement(BorderWrapper$1, {
|
|
1495
|
+
active: isFocused,
|
|
1496
|
+
color: !hasError ? isFocused ? borderColorActive : borderColorIdle : borderColorError
|
|
1497
|
+
}, /*#__PURE__*/React__default["default"].createElement(Row, {
|
|
1498
|
+
style: {
|
|
1499
|
+
backgroundColor: "red",
|
|
1500
|
+
width: "100%"
|
|
1501
|
+
}
|
|
1502
|
+
}, /*#__PURE__*/React__default["default"].createElement(Box, null, /*#__PURE__*/React__default["default"].createElement(PlaceholderElement, {
|
|
1503
|
+
active: isFocusedPrefix || textPrefixValue && textPrefixValue.length > 0 || valuePrefix && valuePrefix.length > 0
|
|
1504
|
+
}, /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, !hasError ? children[0] : /*#__PURE__*/React__default["default"].createElement(H4Text, {
|
|
1505
|
+
color: borderColorError
|
|
1506
|
+
}, error || hasError)))), /*#__PURE__*/React__default["default"].createElement(Box, null, /*#__PURE__*/React__default["default"].createElement(PlaceholderElement, {
|
|
1507
|
+
active: isFocused || textValue && textValue.length > 0 || valueNumber && valueNumber.length > 0
|
|
1508
|
+
}, /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, !hasError ? children[1] : /*#__PURE__*/React__default["default"].createElement(H4Text, {
|
|
1509
|
+
color: borderColorError
|
|
1510
|
+
}, error || hasError))))), /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, /*#__PURE__*/React__default["default"].createElement(Row, null, /*#__PURE__*/React__default["default"].createElement(InputElement, {
|
|
1511
|
+
onFocus: function onFocus() {
|
|
1512
|
+
return setIsFocusedPrefix(true);
|
|
1513
|
+
},
|
|
1514
|
+
onBlur: function onBlur() {
|
|
1515
|
+
return setIsFocusedPrefix(false);
|
|
1516
|
+
},
|
|
1517
|
+
onChangeText: function onChangeText(text) {
|
|
1518
|
+
return setTextPrefixValue(text);
|
|
1519
|
+
},
|
|
1520
|
+
defaultValue: defaultValuePrefix,
|
|
1521
|
+
value: valuePrefix,
|
|
1522
|
+
multiline: multiline,
|
|
1523
|
+
numberOfLines: numberOfLines,
|
|
1524
|
+
maxLength: maxLength,
|
|
1525
|
+
autoFocus: autoFocus,
|
|
1526
|
+
keyboardType: keyboardType,
|
|
1527
|
+
editable: editable,
|
|
1528
|
+
active: isFocusedPrefix,
|
|
1529
|
+
style: style
|
|
1530
|
+
}), /*#__PURE__*/React__default["default"].createElement(InputElement, {
|
|
1531
|
+
ref: inputRef,
|
|
1532
|
+
onFocus: function onFocus() {
|
|
1533
|
+
return setIsFocused(true);
|
|
1534
|
+
},
|
|
1535
|
+
onBlur: function onBlur() {
|
|
1536
|
+
return setIsFocused(false);
|
|
1537
|
+
},
|
|
1538
|
+
onChangeText: function onChangeText(text) {
|
|
1539
|
+
return setTextValue(text);
|
|
1540
|
+
},
|
|
1541
|
+
defaultValue: defaultValueNumber,
|
|
1542
|
+
value: valueNumber,
|
|
1543
|
+
multiline: multiline,
|
|
1544
|
+
numberOfLines: numberOfLines,
|
|
1545
|
+
maxLength: maxLength,
|
|
1546
|
+
autoFocus: autoFocus,
|
|
1547
|
+
keyboardType: keyboardType,
|
|
1548
|
+
editable: editable,
|
|
1549
|
+
active: isFocused,
|
|
1550
|
+
style: style
|
|
1551
|
+
}))))));
|
|
1552
|
+
};
|
|
1553
|
+
|
|
1410
1554
|
var _templateObject$h, _templateObject2$8, _templateObject3$2;
|
|
1411
1555
|
var ButtonWrapper = styled__default["default"].Pressable(_templateObject$h || (_templateObject$h = _taggedTemplateLiteral([""])));
|
|
1412
1556
|
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"])));
|
|
@@ -1426,29 +1570,16 @@
|
|
|
1426
1570
|
borderColorActive = _ref.borderColorActive;
|
|
1427
1571
|
var widthActive = Animated.useSharedValue(0);
|
|
1428
1572
|
var animatedStyleWidthActive = Animated.useAnimatedStyle(function () {
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
})
|
|
1438
|
-
};
|
|
1573
|
+
return active ? {
|
|
1574
|
+
width: Animated.withTiming(widthActive.value, {
|
|
1575
|
+
duration: 350
|
|
1576
|
+
})
|
|
1577
|
+
} : {
|
|
1578
|
+
width: Animated.withTiming(0, {
|
|
1579
|
+
duration: 350
|
|
1580
|
+
})
|
|
1439
1581
|
};
|
|
1440
|
-
|
|
1441
|
-
_f._closure = {
|
|
1442
|
-
active: active,
|
|
1443
|
-
withTiming: Animated.withTiming,
|
|
1444
|
-
widthActive: widthActive
|
|
1445
|
-
};
|
|
1446
|
-
_f.asString = "function _f(){const{active,withTiming,widthActive}=jsThis._closure;{return active?{width:withTiming(widthActive.value,{duration:350})}:{width:withTiming(0,{duration:350})};}}";
|
|
1447
|
-
_f.__workletHash = 6082653035732;
|
|
1448
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/TextButton/LineAnimation/index.js (13:52)";
|
|
1449
|
-
_f.__optimalization = 2;
|
|
1450
|
-
return _f;
|
|
1451
|
-
}());
|
|
1582
|
+
});
|
|
1452
1583
|
return /*#__PURE__*/React__default["default"].createElement(Row, null, /*#__PURE__*/React__default["default"].createElement(BorderIdle, {
|
|
1453
1584
|
color: borderColorIdle,
|
|
1454
1585
|
onLayout: function onLayout(e) {
|
|
@@ -1497,14 +1628,12 @@
|
|
|
1497
1628
|
|
|
1498
1629
|
var _templateObject$f, _templateObject2$6;
|
|
1499
1630
|
styled__default["default"].View(_templateObject$f || (_templateObject$f = _taggedTemplateLiteral([""])));
|
|
1500
|
-
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
|
|
1631
|
+
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) {
|
|
1501
1632
|
return props.size === "big" ? "60px" : "54px";
|
|
1502
1633
|
}, function (props) {
|
|
1503
|
-
return props.theme.borderRadiusMedium;
|
|
1504
|
-
}, function (props) {
|
|
1505
|
-
return props.color;
|
|
1634
|
+
return props.smallBorder ? props.theme.borderRadiusSmall : props.theme.borderRadiusMedium;
|
|
1506
1635
|
}, function (props) {
|
|
1507
|
-
return props.active ?
|
|
1636
|
+
return props.active ? props.color : props.theme.greyButton;
|
|
1508
1637
|
}, function (props) {
|
|
1509
1638
|
return props.style;
|
|
1510
1639
|
});
|
|
@@ -1519,31 +1648,23 @@
|
|
|
1519
1648
|
style = _ref.style,
|
|
1520
1649
|
_ref$size = _ref.size,
|
|
1521
1650
|
size = _ref$size === void 0 ? "big" : _ref$size,
|
|
1651
|
+
_ref$smallBorder = _ref.smallBorder,
|
|
1652
|
+
smallBorder = _ref$smallBorder === void 0 ? false : _ref$smallBorder,
|
|
1522
1653
|
_ref$hitSlop = _ref.hitSlop,
|
|
1523
1654
|
hitSlop = _ref$hitSlop === void 0 ? 0 : _ref$hitSlop;
|
|
1524
1655
|
var scale = Animated.useSharedValue(1);
|
|
1525
1656
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
}]
|
|
1532
|
-
};
|
|
1657
|
+
return {
|
|
1658
|
+
opacity: scale.value,
|
|
1659
|
+
transform: [{
|
|
1660
|
+
scale: scale.value
|
|
1661
|
+
}]
|
|
1533
1662
|
};
|
|
1534
|
-
|
|
1535
|
-
_f._closure = {
|
|
1536
|
-
scale: scale
|
|
1537
|
-
};
|
|
1538
|
-
_f.asString = "function _f(){const{scale}=jsThis._closure;{return{opacity:scale.value,transform:[{scale:scale.value}]};}}";
|
|
1539
|
-
_f.__workletHash = 15781601983731;
|
|
1540
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/RoundedButton/index.js (21:41)";
|
|
1541
|
-
_f.__optimalization = 3;
|
|
1542
|
-
return _f;
|
|
1543
|
-
}());
|
|
1663
|
+
});
|
|
1544
1664
|
return /*#__PURE__*/React__default["default"].createElement(Animated__default["default"].View, {
|
|
1545
1665
|
style: [animatedStyle]
|
|
1546
1666
|
}, /*#__PURE__*/React__default["default"].createElement(ButtonStyle$4, {
|
|
1667
|
+
smallBorder: smallBorder,
|
|
1547
1668
|
hitSlop: hitSlop,
|
|
1548
1669
|
size: size,
|
|
1549
1670
|
active: active,
|
|
@@ -1586,24 +1707,13 @@
|
|
|
1586
1707
|
size = _ref$size === void 0 ? "big" : _ref$size;
|
|
1587
1708
|
var scale = Animated.useSharedValue(1);
|
|
1588
1709
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
}]
|
|
1595
|
-
};
|
|
1596
|
-
};
|
|
1597
|
-
|
|
1598
|
-
_f._closure = {
|
|
1599
|
-
scale: scale
|
|
1710
|
+
return {
|
|
1711
|
+
opacity: scale.value,
|
|
1712
|
+
transform: [{
|
|
1713
|
+
scale: scale.value
|
|
1714
|
+
}]
|
|
1600
1715
|
};
|
|
1601
|
-
|
|
1602
|
-
_f.__workletHash = 15781601983731;
|
|
1603
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/RoundButton/index.js (20:41)";
|
|
1604
|
-
_f.__optimalization = 3;
|
|
1605
|
-
return _f;
|
|
1606
|
-
}());
|
|
1716
|
+
});
|
|
1607
1717
|
return /*#__PURE__*/React__default["default"].createElement(Animated__default["default"].View, {
|
|
1608
1718
|
style: [{
|
|
1609
1719
|
flex: 1
|
|
@@ -1646,40 +1756,18 @@
|
|
|
1646
1756
|
var scale = Animated.useSharedValue(1);
|
|
1647
1757
|
var width = Animated.useSharedValue(80);
|
|
1648
1758
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
}]
|
|
1655
|
-
};
|
|
1656
|
-
};
|
|
1657
|
-
|
|
1658
|
-
_f._closure = {
|
|
1659
|
-
scale: scale
|
|
1759
|
+
return {
|
|
1760
|
+
opacity: scale.value,
|
|
1761
|
+
transform: [{
|
|
1762
|
+
scale: scale.value
|
|
1763
|
+
}]
|
|
1660
1764
|
};
|
|
1661
|
-
|
|
1662
|
-
_f.__workletHash = 15781601983731;
|
|
1663
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FloatingButton/FloatingButton.js (24:41)";
|
|
1664
|
-
_f.__optimalization = 3;
|
|
1665
|
-
return _f;
|
|
1666
|
-
}());
|
|
1765
|
+
});
|
|
1667
1766
|
var animatedWidth = Animated.useAnimatedStyle(function () {
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
width: width.value
|
|
1671
|
-
};
|
|
1672
|
-
};
|
|
1673
|
-
|
|
1674
|
-
_f._closure = {
|
|
1675
|
-
width: width
|
|
1767
|
+
return {
|
|
1768
|
+
width: width.value
|
|
1676
1769
|
};
|
|
1677
|
-
|
|
1678
|
-
_f.__workletHash = 11755410798377;
|
|
1679
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FloatingButton/FloatingButton.js (35:41)";
|
|
1680
|
-
_f.__optimalization = 3;
|
|
1681
|
-
return _f;
|
|
1682
|
-
}());
|
|
1770
|
+
});
|
|
1683
1771
|
React.useEffect(function () {
|
|
1684
1772
|
if (active) {
|
|
1685
1773
|
setTimeout(function () {
|
|
@@ -1740,46 +1828,21 @@
|
|
|
1740
1828
|
var left = Animated.useSharedValue(30);
|
|
1741
1829
|
var bottom = Animated.useSharedValue(30);
|
|
1742
1830
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
}]
|
|
1749
|
-
};
|
|
1750
|
-
};
|
|
1751
|
-
|
|
1752
|
-
_f._closure = {
|
|
1753
|
-
scale: scale
|
|
1831
|
+
return {
|
|
1832
|
+
opacity: scale.value,
|
|
1833
|
+
transform: [{
|
|
1834
|
+
scale: scale.value
|
|
1835
|
+
}]
|
|
1754
1836
|
};
|
|
1755
|
-
|
|
1756
|
-
_f.__workletHash = 15781601983731;
|
|
1757
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FloatingButton/index.js (35:41)";
|
|
1758
|
-
_f.__optimalization = 3;
|
|
1759
|
-
return _f;
|
|
1760
|
-
}());
|
|
1837
|
+
});
|
|
1761
1838
|
var animatedAbsolute = Animated.useAnimatedStyle(function () {
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
bottom: bottom.value
|
|
1768
|
-
};
|
|
1769
|
-
};
|
|
1770
|
-
|
|
1771
|
-
_f._closure = {
|
|
1772
|
-
width: width,
|
|
1773
|
-
height: height,
|
|
1774
|
-
left: left,
|
|
1775
|
-
bottom: bottom
|
|
1839
|
+
return {
|
|
1840
|
+
minWidth: width.value,
|
|
1841
|
+
height: height.value,
|
|
1842
|
+
left: left.value,
|
|
1843
|
+
bottom: bottom.value
|
|
1776
1844
|
};
|
|
1777
|
-
|
|
1778
|
-
_f.__workletHash = 14161176176375;
|
|
1779
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FloatingButton/index.js (46:44)";
|
|
1780
|
-
_f.__optimalization = 3;
|
|
1781
|
-
return _f;
|
|
1782
|
-
}());
|
|
1845
|
+
});
|
|
1783
1846
|
React.useEffect(function () {
|
|
1784
1847
|
scale.value = Animated.withTiming(1, {
|
|
1785
1848
|
duration: 450,
|
|
@@ -1879,40 +1942,18 @@
|
|
|
1879
1942
|
var scale = Animated.useSharedValue(1);
|
|
1880
1943
|
var width = Animated.useSharedValue(70);
|
|
1881
1944
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
}]
|
|
1888
|
-
};
|
|
1889
|
-
};
|
|
1890
|
-
|
|
1891
|
-
_f._closure = {
|
|
1892
|
-
scale: scale
|
|
1945
|
+
return {
|
|
1946
|
+
opacity: scale.value,
|
|
1947
|
+
transform: [{
|
|
1948
|
+
scale: scale.value
|
|
1949
|
+
}]
|
|
1893
1950
|
};
|
|
1894
|
-
|
|
1895
|
-
_f.__workletHash = 15781601983731;
|
|
1896
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/AnimatedButton/FloatingButton.js (29:41)";
|
|
1897
|
-
_f.__optimalization = 3;
|
|
1898
|
-
return _f;
|
|
1899
|
-
}());
|
|
1951
|
+
});
|
|
1900
1952
|
var animatedWidth = Animated.useAnimatedStyle(function () {
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
width: width.value
|
|
1904
|
-
};
|
|
1905
|
-
};
|
|
1906
|
-
|
|
1907
|
-
_f._closure = {
|
|
1908
|
-
width: width
|
|
1953
|
+
return {
|
|
1954
|
+
width: width.value
|
|
1909
1955
|
};
|
|
1910
|
-
|
|
1911
|
-
_f.__workletHash = 11755410798377;
|
|
1912
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/AnimatedButton/FloatingButton.js (40:41)";
|
|
1913
|
-
_f.__optimalization = 3;
|
|
1914
|
-
return _f;
|
|
1915
|
-
}());
|
|
1956
|
+
});
|
|
1916
1957
|
React.useEffect(function () {
|
|
1917
1958
|
setTimeout(function () {
|
|
1918
1959
|
return width.value = Animated.withTiming(leftElement ? reactNative.Dimensions.get("window").width / 2 : reactNative.Dimensions.get("window").width - 60, {
|
|
@@ -1972,48 +2013,22 @@
|
|
|
1972
2013
|
var left = Animated.useSharedValue(0);
|
|
1973
2014
|
var bottom = Animated.useSharedValue(10);
|
|
1974
2015
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
}]
|
|
1981
|
-
};
|
|
1982
|
-
};
|
|
1983
|
-
|
|
1984
|
-
_f._closure = {
|
|
1985
|
-
scale: scale
|
|
2016
|
+
return {
|
|
2017
|
+
opacity: scale.value,
|
|
2018
|
+
transform: [{
|
|
2019
|
+
scale: scale.value
|
|
2020
|
+
}]
|
|
1986
2021
|
};
|
|
1987
|
-
|
|
1988
|
-
_f.__workletHash = 15781601983731;
|
|
1989
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/AnimatedButton/index.js (33:41)";
|
|
1990
|
-
_f.__optimalization = 3;
|
|
1991
|
-
return _f;
|
|
1992
|
-
}());
|
|
2022
|
+
});
|
|
1993
2023
|
var animatedAbsolute = Animated.useAnimatedStyle(function () {
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
bottom: bottom.value
|
|
2001
|
-
};
|
|
2002
|
-
};
|
|
2003
|
-
|
|
2004
|
-
_f._closure = {
|
|
2005
|
-
width: width,
|
|
2006
|
-
height: height,
|
|
2007
|
-
right: right,
|
|
2008
|
-
left: left,
|
|
2009
|
-
bottom: bottom
|
|
2024
|
+
return {
|
|
2025
|
+
minWidth: width.value,
|
|
2026
|
+
height: height.value,
|
|
2027
|
+
right: right.value,
|
|
2028
|
+
left: left.value,
|
|
2029
|
+
bottom: bottom.value
|
|
2010
2030
|
};
|
|
2011
|
-
|
|
2012
|
-
_f.__workletHash = 2397013298280;
|
|
2013
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/AnimatedButton/index.js (44:44)";
|
|
2014
|
-
_f.__optimalization = 3;
|
|
2015
|
-
return _f;
|
|
2016
|
-
}());
|
|
2031
|
+
});
|
|
2017
2032
|
React.useEffect(function () {
|
|
2018
2033
|
scale.value = Animated.withTiming(1, {
|
|
2019
2034
|
duration: 450,
|
|
@@ -2106,40 +2121,18 @@
|
|
|
2106
2121
|
var scale = Animated.useSharedValue(1);
|
|
2107
2122
|
var width = Animated.useSharedValue("100%");
|
|
2108
2123
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
}]
|
|
2115
|
-
};
|
|
2116
|
-
};
|
|
2117
|
-
|
|
2118
|
-
_f._closure = {
|
|
2119
|
-
scale: scale
|
|
2124
|
+
return {
|
|
2125
|
+
opacity: scale.value,
|
|
2126
|
+
transform: [{
|
|
2127
|
+
scale: scale.value
|
|
2128
|
+
}]
|
|
2120
2129
|
};
|
|
2121
|
-
|
|
2122
|
-
_f.__workletHash = 15781601983731;
|
|
2123
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FeedbackButton/FloatingButton.js (28:41)";
|
|
2124
|
-
_f.__optimalization = 3;
|
|
2125
|
-
return _f;
|
|
2126
|
-
}());
|
|
2130
|
+
});
|
|
2127
2131
|
var animatedWidth = Animated.useAnimatedStyle(function () {
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
width: width.value
|
|
2131
|
-
};
|
|
2132
|
-
};
|
|
2133
|
-
|
|
2134
|
-
_f._closure = {
|
|
2135
|
-
width: width
|
|
2132
|
+
return {
|
|
2133
|
+
width: width.value
|
|
2136
2134
|
};
|
|
2137
|
-
|
|
2138
|
-
_f.__workletHash = 11755410798377;
|
|
2139
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FeedbackButton/FloatingButton.js (39:41)";
|
|
2140
|
-
_f.__optimalization = 3;
|
|
2141
|
-
return _f;
|
|
2142
|
-
}());
|
|
2135
|
+
});
|
|
2143
2136
|
React.useEffect(function () {
|
|
2144
2137
|
if (loading) {
|
|
2145
2138
|
width.value = Animated.withTiming(70, {
|
|
@@ -2190,46 +2183,21 @@
|
|
|
2190
2183
|
var right = Animated.useSharedValue(0);
|
|
2191
2184
|
var left = Animated.useSharedValue(0);
|
|
2192
2185
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
}]
|
|
2199
|
-
};
|
|
2200
|
-
};
|
|
2201
|
-
|
|
2202
|
-
_f._closure = {
|
|
2203
|
-
scale: scale
|
|
2186
|
+
return {
|
|
2187
|
+
opacity: scale.value,
|
|
2188
|
+
transform: [{
|
|
2189
|
+
scale: scale.value
|
|
2190
|
+
}]
|
|
2204
2191
|
};
|
|
2205
|
-
|
|
2206
|
-
_f.__workletHash = 15781601983731;
|
|
2207
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FeedbackButton/index.js (32:41)";
|
|
2208
|
-
_f.__optimalization = 3;
|
|
2209
|
-
return _f;
|
|
2210
|
-
}());
|
|
2192
|
+
});
|
|
2211
2193
|
var animatedAbsolute = Animated.useAnimatedStyle(function () {
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
left: left.value
|
|
2218
|
-
};
|
|
2219
|
-
};
|
|
2220
|
-
|
|
2221
|
-
_f._closure = {
|
|
2222
|
-
width: width,
|
|
2223
|
-
height: height,
|
|
2224
|
-
right: right,
|
|
2225
|
-
left: left
|
|
2194
|
+
return {
|
|
2195
|
+
minWidth: width.value,
|
|
2196
|
+
height: height.value,
|
|
2197
|
+
right: right.value,
|
|
2198
|
+
left: left.value
|
|
2226
2199
|
};
|
|
2227
|
-
|
|
2228
|
-
_f.__workletHash = 15930704015288;
|
|
2229
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FeedbackButton/index.js (43:44)";
|
|
2230
|
-
_f.__optimalization = 3;
|
|
2231
|
-
return _f;
|
|
2232
|
-
}());
|
|
2200
|
+
});
|
|
2233
2201
|
React.useEffect(function () {
|
|
2234
2202
|
if (loading) {
|
|
2235
2203
|
width.value = Animated.withTiming(reactNative.Dimensions.get("window").width, {
|
|
@@ -3726,46 +3694,21 @@
|
|
|
3726
3694
|
var left = Animated.useSharedValue(0);
|
|
3727
3695
|
var bottom = Animated.useSharedValue(10);
|
|
3728
3696
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
width: "100%"
|
|
3735
|
-
};
|
|
3736
|
-
};
|
|
3737
|
-
|
|
3738
|
-
_f._closure = {
|
|
3739
|
-
translateY: translateY
|
|
3697
|
+
return {
|
|
3698
|
+
transform: [{
|
|
3699
|
+
translateY: translateY.value
|
|
3700
|
+
}],
|
|
3701
|
+
width: "100%"
|
|
3740
3702
|
};
|
|
3741
|
-
|
|
3742
|
-
_f.__workletHash = 232655703170;
|
|
3743
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/AnimatedRoundedButton/index.js (31:41)";
|
|
3744
|
-
_f.__optimalization = 3;
|
|
3745
|
-
return _f;
|
|
3746
|
-
}());
|
|
3703
|
+
});
|
|
3747
3704
|
var animatedAbsolute = Animated.useAnimatedStyle(function () {
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
bottom: bottom.value
|
|
3754
|
-
};
|
|
3755
|
-
};
|
|
3756
|
-
|
|
3757
|
-
_f._closure = {
|
|
3758
|
-
height: height,
|
|
3759
|
-
right: right,
|
|
3760
|
-
left: left,
|
|
3761
|
-
bottom: bottom
|
|
3705
|
+
return {
|
|
3706
|
+
height: height.value,
|
|
3707
|
+
right: right.value,
|
|
3708
|
+
left: left.value,
|
|
3709
|
+
bottom: bottom.value
|
|
3762
3710
|
};
|
|
3763
|
-
|
|
3764
|
-
_f.__workletHash = 12878771773755;
|
|
3765
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/AnimatedRoundedButton/index.js (42:44)";
|
|
3766
|
-
_f.__optimalization = 3;
|
|
3767
|
-
return _f;
|
|
3768
|
-
}());
|
|
3711
|
+
});
|
|
3769
3712
|
React.useEffect(function () {
|
|
3770
3713
|
translateY.value = Animated.withTiming(0, {
|
|
3771
3714
|
duration: 450,
|
|
@@ -52575,156 +52518,56 @@
|
|
|
52575
52518
|
|
|
52576
52519
|
var x = Animated.useSharedValue(0);
|
|
52577
52520
|
var gestureHandler = Animated.useAnimatedGestureHandler({
|
|
52578
|
-
onStart: function () {
|
|
52579
|
-
|
|
52580
|
-
|
|
52581
|
-
|
|
52582
|
-
|
|
52583
|
-
|
|
52584
|
-
|
|
52585
|
-
|
|
52586
|
-
_f.asString = "function _f(_,ctx){const{x}=jsThis._closure;{ctx.startX=x.value;}}";
|
|
52587
|
-
_f.__workletHash = 5300485379009;
|
|
52588
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (46:13)";
|
|
52589
|
-
return _f;
|
|
52590
|
-
}(),
|
|
52591
|
-
onActive: function () {
|
|
52592
|
-
var _f = function _f(event, ctx) {
|
|
52593
|
-
if (event.translationY > 60 || event.translationY < -60) {
|
|
52594
|
-
x.value = Animated.withSpring(0);
|
|
52595
|
-
} else {
|
|
52596
|
-
if (ctx.startX + event.translationX > width - WIDTH_TO_REMOVE) {
|
|
52597
|
-
x.value = width - WIDTH_FINAL;
|
|
52598
|
-
Animated.runOnJS(setToggled)(true);
|
|
52599
|
-
} else {
|
|
52600
|
-
x.value = ctx.startX + event.translationX;
|
|
52601
|
-
}
|
|
52602
|
-
}
|
|
52603
|
-
};
|
|
52604
|
-
|
|
52605
|
-
_f._closure = {
|
|
52606
|
-
x: x,
|
|
52607
|
-
withSpring: Animated.withSpring,
|
|
52608
|
-
width: width,
|
|
52609
|
-
WIDTH_TO_REMOVE: WIDTH_TO_REMOVE,
|
|
52610
|
-
WIDTH_FINAL: WIDTH_FINAL,
|
|
52611
|
-
runOnJS: Animated.runOnJS,
|
|
52612
|
-
setToggled: setToggled
|
|
52613
|
-
};
|
|
52614
|
-
_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;}}}}";
|
|
52615
|
-
_f.__workletHash = 16638915014400;
|
|
52616
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (49:14)";
|
|
52617
|
-
return _f;
|
|
52618
|
-
}(),
|
|
52619
|
-
onEnd: function () {
|
|
52620
|
-
var _f = function _f(_) {
|
|
52621
|
-
if (toggled) {
|
|
52521
|
+
onStart: function onStart(_, ctx) {
|
|
52522
|
+
ctx.startX = x.value;
|
|
52523
|
+
},
|
|
52524
|
+
onActive: function onActive(event, ctx) {
|
|
52525
|
+
if (event.translationY > 60 || event.translationY < -60) {
|
|
52526
|
+
x.value = Animated.withSpring(0);
|
|
52527
|
+
} else {
|
|
52528
|
+
if (ctx.startX + event.translationX > width - WIDTH_TO_REMOVE) {
|
|
52622
52529
|
x.value = width - WIDTH_FINAL;
|
|
52530
|
+
Animated.runOnJS(setToggled)(true);
|
|
52623
52531
|
} else {
|
|
52624
|
-
x.value =
|
|
52532
|
+
x.value = ctx.startX + event.translationX;
|
|
52625
52533
|
}
|
|
52626
|
-
}
|
|
52627
|
-
|
|
52628
|
-
|
|
52629
|
-
|
|
52630
|
-
x
|
|
52631
|
-
|
|
52632
|
-
|
|
52633
|
-
|
|
52634
|
-
|
|
52635
|
-
_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);}}}";
|
|
52636
|
-
_f.__workletHash = 9307804739149;
|
|
52637
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (61:11)";
|
|
52638
|
-
return _f;
|
|
52639
|
-
}()
|
|
52534
|
+
}
|
|
52535
|
+
},
|
|
52536
|
+
onEnd: function onEnd(_) {
|
|
52537
|
+
if (toggled) {
|
|
52538
|
+
x.value = width - WIDTH_FINAL;
|
|
52539
|
+
} else {
|
|
52540
|
+
x.value = Animated.withSpring(0);
|
|
52541
|
+
}
|
|
52542
|
+
}
|
|
52640
52543
|
});
|
|
52641
52544
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
52642
|
-
|
|
52643
|
-
|
|
52644
|
-
|
|
52645
|
-
|
|
52646
|
-
}]
|
|
52647
|
-
};
|
|
52648
|
-
};
|
|
52649
|
-
|
|
52650
|
-
_f._closure = {
|
|
52651
|
-
x: x
|
|
52545
|
+
return {
|
|
52546
|
+
transform: [{
|
|
52547
|
+
translateX: x.value
|
|
52548
|
+
}]
|
|
52652
52549
|
};
|
|
52653
|
-
|
|
52654
|
-
_f.__workletHash = 5278836605383;
|
|
52655
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (70:41)";
|
|
52656
|
-
_f.__optimalization = 3;
|
|
52657
|
-
return _f;
|
|
52658
|
-
}());
|
|
52550
|
+
});
|
|
52659
52551
|
var InterpolateXInput = [0, width];
|
|
52660
52552
|
var colorWave = Animated.useAnimatedStyle(function () {
|
|
52661
|
-
|
|
52662
|
-
|
|
52663
|
-
|
|
52664
|
-
opacity: Animated.interpolate(x.value, InterpolateXInput, [0, 1])
|
|
52665
|
-
};
|
|
52666
|
-
};
|
|
52667
|
-
|
|
52668
|
-
_f._closure = {
|
|
52669
|
-
x: x,
|
|
52670
|
-
BTN_WIDTH: BTN_WIDTH,
|
|
52671
|
-
BTN_PADDING: BTN_PADDING,
|
|
52672
|
-
interpolate: Animated.interpolate,
|
|
52673
|
-
InterpolateXInput: InterpolateXInput
|
|
52553
|
+
return {
|
|
52554
|
+
width: x.value + BTN_WIDTH + BTN_PADDING,
|
|
52555
|
+
opacity: Animated.interpolate(x.value, InterpolateXInput, [0, 1])
|
|
52674
52556
|
};
|
|
52675
|
-
|
|
52676
|
-
_f.__workletHash = 1719171425649;
|
|
52677
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (82:37)";
|
|
52678
|
-
_f.__optimalization = 3;
|
|
52679
|
-
return _f;
|
|
52680
|
-
}());
|
|
52557
|
+
});
|
|
52681
52558
|
var animatedBorder = Animated.useAnimatedStyle(function () {
|
|
52682
|
-
|
|
52683
|
-
|
|
52684
|
-
borderColor: Animated.interpolateColor(x.value, [0, width - WIDTH_FINAL], [theme.color7, borderColor])
|
|
52685
|
-
};
|
|
52686
|
-
};
|
|
52687
|
-
|
|
52688
|
-
_f._closure = {
|
|
52689
|
-
interpolateColor: Animated.interpolateColor,
|
|
52690
|
-
x: x,
|
|
52691
|
-
width: width,
|
|
52692
|
-
WIDTH_FINAL: WIDTH_FINAL,
|
|
52693
|
-
theme: {
|
|
52694
|
-
color7: theme.color7
|
|
52695
|
-
},
|
|
52696
|
-
borderColor: borderColor
|
|
52559
|
+
return {
|
|
52560
|
+
borderColor: Animated.interpolateColor(x.value, [0, width - WIDTH_FINAL], [theme.color7, borderColor])
|
|
52697
52561
|
};
|
|
52698
|
-
|
|
52699
|
-
_f.__workletHash = 2946001185610;
|
|
52700
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (89:42)";
|
|
52701
|
-
_f.__optimalization = 2;
|
|
52702
|
-
return _f;
|
|
52703
|
-
}());
|
|
52562
|
+
});
|
|
52704
52563
|
var animatedText = Animated.useAnimatedStyle(function () {
|
|
52705
|
-
|
|
52706
|
-
|
|
52707
|
-
|
|
52708
|
-
|
|
52709
|
-
|
|
52710
|
-
}]
|
|
52711
|
-
};
|
|
52564
|
+
return {
|
|
52565
|
+
opacity: Animated.interpolate(x.value, InterpolateXInput, [1, 0], Animated.Extrapolate.CLAMP),
|
|
52566
|
+
transform: [{
|
|
52567
|
+
translateX: x.value
|
|
52568
|
+
}]
|
|
52712
52569
|
};
|
|
52713
|
-
|
|
52714
|
-
_f._closure = {
|
|
52715
|
-
interpolate: Animated.interpolate,
|
|
52716
|
-
x: x,
|
|
52717
|
-
InterpolateXInput: InterpolateXInput,
|
|
52718
|
-
Extrapolate: {
|
|
52719
|
-
CLAMP: Animated.Extrapolate.CLAMP
|
|
52720
|
-
}
|
|
52721
|
-
};
|
|
52722
|
-
_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}]};}}";
|
|
52723
|
-
_f.__workletHash = 460398395074;
|
|
52724
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (99:40)";
|
|
52725
|
-
_f.__optimalization = 3;
|
|
52726
|
-
return _f;
|
|
52727
|
-
}());
|
|
52570
|
+
});
|
|
52728
52571
|
return /*#__PURE__*/React__default["default"].createElement(Wrapper$1, {
|
|
52729
52572
|
onLayout: onLayout
|
|
52730
52573
|
}, /*#__PURE__*/React__default["default"].createElement(RoundWrapper, {
|
|
@@ -54594,11 +54437,19 @@
|
|
|
54594
54437
|
source: {
|
|
54595
54438
|
uri: item.src
|
|
54596
54439
|
}
|
|
54597
|
-
}), /*#__PURE__*/React__default["default"].createElement(Row,
|
|
54440
|
+
}), /*#__PURE__*/React__default["default"].createElement(Row, {
|
|
54441
|
+
style: {
|
|
54442
|
+
alignItems: "center"
|
|
54443
|
+
}
|
|
54444
|
+
}, /*#__PURE__*/React__default["default"].createElement(Box, {
|
|
54598
54445
|
style: {
|
|
54599
54446
|
flex: 4
|
|
54600
54447
|
}
|
|
54601
|
-
}, /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, /*#__PURE__*/React__default["default"].createElement(H4Text, null, item.name))), variant === "countryCode" && /*#__PURE__*/React__default["default"].createElement(Box,
|
|
54448
|
+
}, /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, /*#__PURE__*/React__default["default"].createElement(H4Text, null, item.name))), variant === "countryCode" && /*#__PURE__*/React__default["default"].createElement(Box, {
|
|
54449
|
+
style: {
|
|
54450
|
+
flex: 3
|
|
54451
|
+
}
|
|
54452
|
+
}, /*#__PURE__*/React__default["default"].createElement(MarginHorizontal, null, /*#__PURE__*/React__default["default"].createElement(H4Text, null, item.code)))))))));
|
|
54602
54453
|
};
|
|
54603
54454
|
|
|
54604
54455
|
function NewCustomer(_ref2) {
|
|
@@ -54740,6 +54591,7 @@
|
|
|
54740
54591
|
exports.Input = Input$1;
|
|
54741
54592
|
exports.InputNormal = Input;
|
|
54742
54593
|
exports.InputOtp = InputOtp;
|
|
54594
|
+
exports.InputPhone = InputPhone;
|
|
54743
54595
|
exports.Loader = Loader;
|
|
54744
54596
|
exports.Margin = Margin;
|
|
54745
54597
|
exports.MarginBottom = MarginBottom;
|