@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.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import React, { useEffect, useState, useRef, useCallback, useMemo } from 'react'
|
|
|
2
2
|
import styled, { ThemeProvider, ThemeContext } from 'styled-components/native';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { Platform, KeyboardAvoidingView, Dimensions, SafeAreaView, FlatList as FlatList$1, View, StatusBar, Pressable, Keyboard, TouchableHighlight, Image } from 'react-native';
|
|
5
|
-
import Animated, { useSharedValue, useAnimatedStyle, withTiming, Easing, withRepeat, runOnJS, withSequence, withDelay, useAnimatedGestureHandler,
|
|
5
|
+
import Animated, { useSharedValue, useAnimatedStyle, withTiming, Easing, withRepeat, runOnJS, withSequence, withDelay, useAnimatedGestureHandler, withSpring, interpolate, interpolateColor, Extrapolate } from 'react-native-reanimated';
|
|
6
6
|
import { TouchableWithoutFeedback, PanGestureHandler } from 'react-native-gesture-handler';
|
|
7
7
|
import LottieView from 'lottie-react-native';
|
|
8
8
|
import { getStatusBarHeight } from 'react-native-status-bar-height';
|
|
@@ -228,6 +228,7 @@ var colors = {
|
|
|
228
228
|
greenLight: "#F3FFFC",
|
|
229
229
|
greenDark: "#236A56",
|
|
230
230
|
greyText: "#b2bec3",
|
|
231
|
+
greyButton: "#94A3A9",
|
|
231
232
|
red: "#ff7675",
|
|
232
233
|
redlight: "#FFFAF9",
|
|
233
234
|
redDark: "#9C4140",
|
|
@@ -283,8 +284,8 @@ var useThemeContext = function useThemeContext() {
|
|
|
283
284
|
return React.useContext(ThemeContext);
|
|
284
285
|
};
|
|
285
286
|
|
|
286
|
-
var _templateObject$
|
|
287
|
-
var H1 = styled.Text(_templateObject$
|
|
287
|
+
var _templateObject$n, _templateObject2$e, _templateObject3$7, _templateObject4$1, _templateObject5$1, _templateObject6$1, _templateObject7$1;
|
|
288
|
+
var H1 = styled.Text(_templateObject$n || (_templateObject$n = _taggedTemplateLiteral(["\n font-size: ", ";\n font-family: ", ";\n text-align: ", ";\n color: ", ";\n line-height: ", ";\n ", ";\n"])), function (props) {
|
|
288
289
|
return props.theme.large;
|
|
289
290
|
}, function (props) {
|
|
290
291
|
return props.fontFamily || props.theme.fontFamily1;
|
|
@@ -297,7 +298,7 @@ var H1 = styled.Text(_templateObject$m || (_templateObject$m = _taggedTemplateLi
|
|
|
297
298
|
}, function (props) {
|
|
298
299
|
return props.style;
|
|
299
300
|
});
|
|
300
|
-
var H2 = styled.Text(_templateObject2$
|
|
301
|
+
var H2 = styled.Text(_templateObject2$e || (_templateObject2$e = _taggedTemplateLiteral(["\n font-size: ", ";\n font-family: ", ";\n text-align: ", ";\n color: ", ";\n line-height: ", ";\n ", ";\n"])), function (props) {
|
|
301
302
|
return props.theme.medium;
|
|
302
303
|
}, function (props) {
|
|
303
304
|
return props.fontFamily || props.theme.fontFamily1;
|
|
@@ -310,7 +311,7 @@ var H2 = styled.Text(_templateObject2$d || (_templateObject2$d = _taggedTemplate
|
|
|
310
311
|
}, function (props) {
|
|
311
312
|
return props.style;
|
|
312
313
|
});
|
|
313
|
-
var H3 = styled.Text(_templateObject3$
|
|
314
|
+
var H3 = styled.Text(_templateObject3$7 || (_templateObject3$7 = _taggedTemplateLiteral(["\n font-size: ", ";\n font-family: ", ";\n text-align: ", ";\n color: ", ";\n line-height: ", ";\n ", ";\n"])), function (props) {
|
|
314
315
|
return props.theme.small;
|
|
315
316
|
}, function (props) {
|
|
316
317
|
return props.fontFamily || props.theme.fontFamily1;
|
|
@@ -537,14 +538,14 @@ SpanText.propTypes = {
|
|
|
537
538
|
style: PropTypes.object
|
|
538
539
|
};
|
|
539
540
|
|
|
540
|
-
var _templateObject$
|
|
541
|
+
var _templateObject$m, _templateObject2$d, _templateObject3$6, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19;
|
|
541
542
|
var DEFAULT_FLEX_DIRECTION = Platform.OS === "web" ? "column" : "column";
|
|
542
|
-
var CenterElement = styled.View(_templateObject$
|
|
543
|
+
var CenterElement = styled.View(_templateObject$m || (_templateObject$m = _taggedTemplateLiteral(["\n align-items: center;\n justify-content: center;\n flex: 1;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
543
544
|
return props.flexDirection || DEFAULT_FLEX_DIRECTION;
|
|
544
545
|
}, function (props) {
|
|
545
546
|
return props.style;
|
|
546
547
|
});
|
|
547
|
-
var CenterLeftElement = styled.View(_templateObject2$
|
|
548
|
+
var CenterLeftElement = styled.View(_templateObject2$d || (_templateObject2$d = _taggedTemplateLiteral(["\n align-items: ", ";\n justify-content: ", ";\n flex: 1;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
548
549
|
return (props.flexDirection || DEFAULT_FLEX_DIRECTION) === "row" ? "center" : "flex-start";
|
|
549
550
|
}, function (props) {
|
|
550
551
|
return (props.flexDirection || DEFAULT_FLEX_DIRECTION) === "row" ? "flex-start" : "center";
|
|
@@ -553,7 +554,7 @@ var CenterLeftElement = styled.View(_templateObject2$c || (_templateObject2$c =
|
|
|
553
554
|
}, function (props) {
|
|
554
555
|
return props.style;
|
|
555
556
|
});
|
|
556
|
-
var CenterRightElement = styled.View(_templateObject3$
|
|
557
|
+
var CenterRightElement = styled.View(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteral(["\n align-items: ", ";\n justify-content: ", ";\n flex: 1;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
557
558
|
return (props.flexDirection || DEFAULT_FLEX_DIRECTION) === "row" ? "center" : "flex-end";
|
|
558
559
|
}, function (props) {
|
|
559
560
|
return (props.flexDirection || DEFAULT_FLEX_DIRECTION) === "row" ? "flex-end" : "center";
|
|
@@ -888,22 +889,22 @@ var RoundedTopBox = function RoundedTopBox(_ref) {
|
|
|
888
889
|
}, children);
|
|
889
890
|
};
|
|
890
891
|
|
|
891
|
-
var _templateObject$
|
|
892
|
-
var InputWrapper$
|
|
893
|
-
var InputElement$
|
|
892
|
+
var _templateObject$l, _templateObject2$c, _templateObject3$5;
|
|
893
|
+
var InputWrapper$2 = styled.Pressable(_templateObject$l || (_templateObject$l = _taggedTemplateLiteral(["\n min-height: 80px;\n"])));
|
|
894
|
+
var InputElement$2 = styled.TextInput(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteral(["\n margin-top: 26px;\n min-height: 50px;\n font-family: ", ";\n font-size: ", ";\n color: ", ";\n"])), function (props) {
|
|
894
895
|
return props.theme.fontFamily2;
|
|
895
896
|
}, function (props) {
|
|
896
897
|
return props.theme.small;
|
|
897
898
|
}, function (props) {
|
|
898
899
|
return props.theme.color2;
|
|
899
900
|
});
|
|
900
|
-
var BorderWrapper$
|
|
901
|
+
var BorderWrapper$3 = styled.View(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteral(["\n height: 4px;\n"])));
|
|
901
902
|
|
|
902
|
-
var _templateObject$
|
|
903
|
-
var BorderIdle$1 = styled.View(_templateObject$
|
|
903
|
+
var _templateObject$k, _templateObject2$b;
|
|
904
|
+
var BorderIdle$1 = styled.View(_templateObject$k || (_templateObject$k = _taggedTemplateLiteral(["\n height: 4px;\n background-color: ", ";\n flex: 1;\n position: absolute;\n width: 100%;\n z-index: 10;\n"])), function (props) {
|
|
904
905
|
return props.color;
|
|
905
906
|
});
|
|
906
|
-
var BorderActive$1 = styled.View(_templateObject2$
|
|
907
|
+
var BorderActive$1 = styled.View(_templateObject2$b || (_templateObject2$b = _taggedTemplateLiteral(["\n height: 4px;\n background-color: ", ";\n z-index: 11;\n"])), function (props) {
|
|
907
908
|
return props.color;
|
|
908
909
|
});
|
|
909
910
|
|
|
@@ -915,29 +916,16 @@ var Line$1 = function Line(_ref) {
|
|
|
915
916
|
hasError = _ref.hasError;
|
|
916
917
|
var widthActive = useSharedValue(0);
|
|
917
918
|
var animatedStyleWidthActive = useAnimatedStyle(function () {
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
})
|
|
927
|
-
};
|
|
928
|
-
};
|
|
929
|
-
|
|
930
|
-
_f._closure = {
|
|
931
|
-
active: active,
|
|
932
|
-
withTiming: withTiming,
|
|
933
|
-
widthActive: widthActive
|
|
919
|
+
return active ? {
|
|
920
|
+
width: withTiming(widthActive.value, {
|
|
921
|
+
duration: 350
|
|
922
|
+
})
|
|
923
|
+
} : {
|
|
924
|
+
width: withTiming(0, {
|
|
925
|
+
duration: 350
|
|
926
|
+
})
|
|
934
927
|
};
|
|
935
|
-
|
|
936
|
-
_f.__workletHash = 6082653035732;
|
|
937
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Inputs/Animated/LineAnimation/index.js (19:52)";
|
|
938
|
-
_f.__optimalization = 2;
|
|
939
|
-
return _f;
|
|
940
|
-
}());
|
|
928
|
+
});
|
|
941
929
|
return /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(BorderIdle$1, {
|
|
942
930
|
color: !hasError ? borderColorIdle : borderColorError,
|
|
943
931
|
onLayout: function onLayout(e) {
|
|
@@ -952,33 +940,18 @@ var Line$1 = function Line(_ref) {
|
|
|
952
940
|
})));
|
|
953
941
|
};
|
|
954
942
|
|
|
955
|
-
var PlaceholderElement$
|
|
943
|
+
var PlaceholderElement$2 = /*#__PURE__*/React.memo(function (_ref) {
|
|
956
944
|
var children = _ref.children,
|
|
957
945
|
active = _ref.active;
|
|
958
946
|
var bottom = useSharedValue(active ? 50 : 4);
|
|
959
947
|
var animatedStyle = useAnimatedStyle(function () {
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
})
|
|
966
|
-
};
|
|
967
|
-
};
|
|
968
|
-
|
|
969
|
-
_f._closure = {
|
|
970
|
-
withTiming: withTiming,
|
|
971
|
-
bottom: bottom,
|
|
972
|
-
Easing: {
|
|
973
|
-
bezier: Easing.bezier
|
|
974
|
-
}
|
|
948
|
+
return {
|
|
949
|
+
bottom: withTiming(bottom.value, {
|
|
950
|
+
duration: 250,
|
|
951
|
+
easing: Easing.bezier(0.19, 1.0, 0.22, 1.0)
|
|
952
|
+
})
|
|
975
953
|
};
|
|
976
|
-
|
|
977
|
-
_f.__workletHash = 551286745489;
|
|
978
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Inputs/Animated/Placeholder/index.js (12:41)";
|
|
979
|
-
_f.__optimalization = 2;
|
|
980
|
-
return _f;
|
|
981
|
-
}());
|
|
954
|
+
});
|
|
982
955
|
useEffect(function () {
|
|
983
956
|
if (active) {
|
|
984
957
|
bottom.value = 50;
|
|
@@ -1047,18 +1020,18 @@ var Input$1 = function Input(_ref) {
|
|
|
1047
1020
|
return /*#__PURE__*/React.createElement(KeyboardAvoidingView, {
|
|
1048
1021
|
behavior: Platform.OS === "ios" ? "padding" : "height",
|
|
1049
1022
|
keyboardVerticalOffset: keyboardVerticalOffset
|
|
1050
|
-
}, /*#__PURE__*/React.createElement(InputWrapper$
|
|
1023
|
+
}, /*#__PURE__*/React.createElement(InputWrapper$2, {
|
|
1051
1024
|
onPress: function onPress() {
|
|
1052
1025
|
var _inputRef$current2;
|
|
1053
1026
|
|
|
1054
1027
|
setIsFocused(true);
|
|
1055
1028
|
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus();
|
|
1056
1029
|
}
|
|
1057
|
-
}, /*#__PURE__*/React.createElement(PlaceholderElement$
|
|
1030
|
+
}, /*#__PURE__*/React.createElement(PlaceholderElement$2, {
|
|
1058
1031
|
active: isFocused || textValue && textValue.length > 0
|
|
1059
1032
|
}, !hasError ? children : /*#__PURE__*/React.createElement(H3Text, {
|
|
1060
1033
|
color: borderColorError
|
|
1061
|
-
}, error || hasError)), /*#__PURE__*/React.createElement(InputElement$
|
|
1034
|
+
}, error || hasError)), /*#__PURE__*/React.createElement(InputElement$2, {
|
|
1062
1035
|
ref: inputRef,
|
|
1063
1036
|
onFocus: function onFocus() {
|
|
1064
1037
|
return setIsFocused(true);
|
|
@@ -1078,7 +1051,7 @@ var Input$1 = function Input(_ref) {
|
|
|
1078
1051
|
keyboardType: keyboardType,
|
|
1079
1052
|
editable: editable,
|
|
1080
1053
|
style: style
|
|
1081
|
-
}), /*#__PURE__*/React.createElement(BorderWrapper$
|
|
1054
|
+
}), /*#__PURE__*/React.createElement(BorderWrapper$3, null, /*#__PURE__*/React.createElement(Line$1, {
|
|
1082
1055
|
active: isFocused,
|
|
1083
1056
|
borderColorActive: borderColorActive,
|
|
1084
1057
|
borderColorIdle: borderColorIdle,
|
|
@@ -1097,21 +1070,10 @@ var AnimatedPlaceholder$1 = function AnimatedPlaceholder(_ref) {
|
|
|
1097
1070
|
|
|
1098
1071
|
var fade = useSharedValue(7);
|
|
1099
1072
|
var animatedStyle = useAnimatedStyle(function () {
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
opacity: fade.value
|
|
1103
|
-
};
|
|
1073
|
+
return {
|
|
1074
|
+
opacity: fade.value
|
|
1104
1075
|
};
|
|
1105
|
-
|
|
1106
|
-
_f._closure = {
|
|
1107
|
-
fade: fade
|
|
1108
|
-
};
|
|
1109
|
-
_f.asString = "function _f(){const{fade}=jsThis._closure;{return{opacity:fade.value};}}";
|
|
1110
|
-
_f.__workletHash = 16298690497334;
|
|
1111
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Inputs/AnimatedPlaceholder/AnimatedItem.js (14:41)";
|
|
1112
|
-
_f.__optimalization = 3;
|
|
1113
|
-
return _f;
|
|
1114
|
-
}());
|
|
1076
|
+
});
|
|
1115
1077
|
|
|
1116
1078
|
var runNewChild = function runNewChild() {
|
|
1117
1079
|
setChildNumber(function (prevChildNumber) {
|
|
@@ -1122,24 +1084,13 @@ var AnimatedPlaceholder$1 = function AnimatedPlaceholder(_ref) {
|
|
|
1122
1084
|
useEffect(function () {
|
|
1123
1085
|
fade.value = withRepeat(withTiming(0, {
|
|
1124
1086
|
duration: 2000
|
|
1125
|
-
}, function () {
|
|
1126
|
-
|
|
1127
|
-
if (
|
|
1128
|
-
|
|
1129
|
-
runOnJS(runNewChild)();
|
|
1130
|
-
}
|
|
1087
|
+
}, function (finished, currentValue) {
|
|
1088
|
+
if (finished) {
|
|
1089
|
+
if (currentValue === 0) {
|
|
1090
|
+
runOnJS(runNewChild)();
|
|
1131
1091
|
}
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
|
-
_f._closure = {
|
|
1135
|
-
runOnJS: runOnJS,
|
|
1136
|
-
runNewChild: runNewChild
|
|
1137
|
-
};
|
|
1138
|
-
_f.asString = "function _f(finished,currentValue){const{runOnJS,runNewChild}=jsThis._closure;{if(finished){if(currentValue===0){runOnJS(runNewChild)();}}}}";
|
|
1139
|
-
_f.__workletHash = 54360799953;
|
|
1140
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Inputs/AnimatedPlaceholder/AnimatedItem.js (28:40)";
|
|
1141
|
-
return _f;
|
|
1142
|
-
}()), -1, true);
|
|
1092
|
+
}
|
|
1093
|
+
}), -1, true);
|
|
1143
1094
|
}, []);
|
|
1144
1095
|
return /*#__PURE__*/React.createElement(Animated.View, {
|
|
1145
1096
|
style: [{
|
|
@@ -1247,9 +1198,9 @@ var InputOtp = function InputOtp(props) {
|
|
|
1247
1198
|
}))));
|
|
1248
1199
|
};
|
|
1249
1200
|
|
|
1250
|
-
var _templateObject$
|
|
1251
|
-
var InputWrapper = styled.Pressable(_templateObject$
|
|
1252
|
-
var InputElement = styled.TextInput(_templateObject2$
|
|
1201
|
+
var _templateObject$j, _templateObject2$a, _templateObject3$4;
|
|
1202
|
+
var InputWrapper$1 = styled.Pressable(_templateObject$j || (_templateObject$j = _taggedTemplateLiteral(["\n min-height: 70px;\n"])));
|
|
1203
|
+
var InputElement$1 = styled.TextInput(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteral(["\n min-height: 40px;\n font-family: ", ";\n font-size: ", ";\n color: ", ";\n background-color: ", ";\n"])), function (props) {
|
|
1253
1204
|
return props.theme.fontFamily2;
|
|
1254
1205
|
}, function (props) {
|
|
1255
1206
|
return props.theme.small;
|
|
@@ -1258,41 +1209,42 @@ var InputElement = styled.TextInput(_templateObject2$9 || (_templateObject2$9 =
|
|
|
1258
1209
|
}, function (props) {
|
|
1259
1210
|
return props.active ? props.theme.color1 : props.theme.color10;
|
|
1260
1211
|
});
|
|
1261
|
-
var BorderWrapper$
|
|
1212
|
+
var BorderWrapper$2 = styled.View(_templateObject3$4 || (_templateObject3$4 = _taggedTemplateLiteral(["\n min-height: 70px;\n padding-top: 26px;\n border-width: 2px;\n border-color: ", ";\n border-radius: ", ";\n background-color: ", ";\n ", "\n"])), function (props) {
|
|
1262
1213
|
return props.color;
|
|
1263
1214
|
}, function (props) {
|
|
1264
1215
|
return props.theme.borderRadiusSmall;
|
|
1265
1216
|
}, function (props) {
|
|
1266
1217
|
return props.active ? props.theme.color1 : props.theme.color10;
|
|
1218
|
+
}, function (_ref) {
|
|
1219
|
+
var isRightBound = _ref.isRightBound,
|
|
1220
|
+
isLeftBound = _ref.isLeftBound,
|
|
1221
|
+
active = _ref.active;
|
|
1222
|
+
|
|
1223
|
+
if (isRightBound) {
|
|
1224
|
+
if (!active) {
|
|
1225
|
+
return "borderTopRightRadius: 0px; borderBottomRightRadius: 0px; border-right-width: 0px;";
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
return "borderTopRightRadius: 0px; borderBottomRightRadius: 0px;";
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
if (isLeftBound) {
|
|
1232
|
+
return "borderTopLeftRadius: 0px; borderBottomLeftRadius: 0px;";
|
|
1233
|
+
}
|
|
1267
1234
|
});
|
|
1268
1235
|
|
|
1269
|
-
var PlaceholderElement = /*#__PURE__*/React.memo(function (_ref) {
|
|
1236
|
+
var PlaceholderElement$1 = /*#__PURE__*/React.memo(function (_ref) {
|
|
1270
1237
|
var children = _ref.children,
|
|
1271
1238
|
active = _ref.active;
|
|
1272
1239
|
var top = useSharedValue(active ? 10 : 30);
|
|
1273
1240
|
var animatedStyle = useAnimatedStyle(function () {
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
})
|
|
1280
|
-
};
|
|
1281
|
-
};
|
|
1282
|
-
|
|
1283
|
-
_f._closure = {
|
|
1284
|
-
withTiming: withTiming,
|
|
1285
|
-
top: top,
|
|
1286
|
-
Easing: {
|
|
1287
|
-
bezier: Easing.bezier
|
|
1288
|
-
}
|
|
1241
|
+
return {
|
|
1242
|
+
top: withTiming(top.value, {
|
|
1243
|
+
duration: 250,
|
|
1244
|
+
easing: Easing.bezier(0.19, 1.0, 0.22, 1.0)
|
|
1245
|
+
})
|
|
1289
1246
|
};
|
|
1290
|
-
|
|
1291
|
-
_f.__workletHash = 3739814920853;
|
|
1292
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Inputs/InputNormal/Placeholder/index.js (12:41)";
|
|
1293
|
-
_f.__optimalization = 2;
|
|
1294
|
-
return _f;
|
|
1295
|
-
}());
|
|
1247
|
+
});
|
|
1296
1248
|
useEffect(function () {
|
|
1297
1249
|
if (active) {
|
|
1298
1250
|
top.value = 10;
|
|
@@ -1338,7 +1290,11 @@ var Input = function Input(_ref) {
|
|
|
1338
1290
|
keyboardVerticalOffset = _ref$keyboardVertical === void 0 ? 0 : _ref$keyboardVertical,
|
|
1339
1291
|
_ref$hasError = _ref.hasError,
|
|
1340
1292
|
hasError = _ref$hasError === void 0 ? false : _ref$hasError,
|
|
1341
|
-
error = _ref.error
|
|
1293
|
+
error = _ref.error,
|
|
1294
|
+
_ref$isRightBound = _ref.isRightBound,
|
|
1295
|
+
isRightBound = _ref$isRightBound === void 0 ? false : _ref$isRightBound,
|
|
1296
|
+
_ref$isLeftBound = _ref.isLeftBound,
|
|
1297
|
+
isLeftBound = _ref$isLeftBound === void 0 ? false : _ref$isLeftBound;
|
|
1342
1298
|
|
|
1343
1299
|
var _useState = useState(false),
|
|
1344
1300
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -1362,7 +1318,7 @@ var Input = function Input(_ref) {
|
|
|
1362
1318
|
return /*#__PURE__*/React.createElement(KeyboardAvoidingView, {
|
|
1363
1319
|
behavior: Platform.OS === "ios" ? "padding" : "height",
|
|
1364
1320
|
keyboardVerticalOffset: keyboardVerticalOffset
|
|
1365
|
-
}, /*#__PURE__*/React.createElement(InputWrapper, {
|
|
1321
|
+
}, /*#__PURE__*/React.createElement(InputWrapper$1, {
|
|
1366
1322
|
onPress: function onPress() {
|
|
1367
1323
|
var _inputRef$current2;
|
|
1368
1324
|
|
|
@@ -1371,14 +1327,16 @@ var Input = function Input(_ref) {
|
|
|
1371
1327
|
editable && setIsFocused(true);
|
|
1372
1328
|
editable && ((_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus());
|
|
1373
1329
|
}
|
|
1374
|
-
}, /*#__PURE__*/React.createElement(BorderWrapper$
|
|
1330
|
+
}, /*#__PURE__*/React.createElement(BorderWrapper$2, {
|
|
1331
|
+
isRightBound: isRightBound,
|
|
1332
|
+
isLeftBound: isLeftBound,
|
|
1375
1333
|
active: isFocused,
|
|
1376
1334
|
color: !hasError ? isFocused ? borderColorActive : borderColorIdle : borderColorError
|
|
1377
|
-
}, /*#__PURE__*/React.createElement(PlaceholderElement, {
|
|
1335
|
+
}, /*#__PURE__*/React.createElement(PlaceholderElement$1, {
|
|
1378
1336
|
active: isFocused || textValue && textValue.length > 0 || value && value.length > 0
|
|
1379
1337
|
}, /*#__PURE__*/React.createElement(MarginHorizontal, null, !hasError ? children : /*#__PURE__*/React.createElement(H4Text, {
|
|
1380
1338
|
color: borderColorError
|
|
1381
|
-
}, error || hasError))), /*#__PURE__*/React.createElement(MarginHorizontal, null, /*#__PURE__*/React.createElement(InputElement, {
|
|
1339
|
+
}, error || hasError))), /*#__PURE__*/React.createElement(MarginHorizontal, null, /*#__PURE__*/React.createElement(InputElement$1, {
|
|
1382
1340
|
ref: inputRef,
|
|
1383
1341
|
onFocus: function onFocus() {
|
|
1384
1342
|
return setIsFocused(true);
|
|
@@ -1402,6 +1360,192 @@ var Input = function Input(_ref) {
|
|
|
1402
1360
|
})))));
|
|
1403
1361
|
};
|
|
1404
1362
|
|
|
1363
|
+
var _templateObject$i, _templateObject2$9, _templateObject3$3;
|
|
1364
|
+
var InputWrapper = styled.Pressable(_templateObject$i || (_templateObject$i = _taggedTemplateLiteral(["\n min-height: 70px;\n"])));
|
|
1365
|
+
var InputElement = styled.TextInput(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteral(["\n min-height: 40px;\n font-family: ", ";\n font-size: ", ";\n color: ", ";\n background-color: ", ";\n"])), function (props) {
|
|
1366
|
+
return props.theme.fontFamily2;
|
|
1367
|
+
}, function (props) {
|
|
1368
|
+
return props.theme.small;
|
|
1369
|
+
}, function (props) {
|
|
1370
|
+
return props.theme.color2;
|
|
1371
|
+
}, function (props) {
|
|
1372
|
+
return props.active ? props.theme.color1 : props.theme.color10;
|
|
1373
|
+
});
|
|
1374
|
+
var BorderWrapper$1 = styled.View(_templateObject3$3 || (_templateObject3$3 = _taggedTemplateLiteral(["\n min-height: 70px;\n padding-top: 26px;\n border-width: 2px;\n border-color: ", ";\n border-radius: ", ";\n background-color: ", ";\n"])), function (props) {
|
|
1375
|
+
return props.color;
|
|
1376
|
+
}, function (props) {
|
|
1377
|
+
return props.theme.borderRadiusSmall;
|
|
1378
|
+
}, function (props) {
|
|
1379
|
+
return props.active ? props.theme.color1 : props.theme.color10;
|
|
1380
|
+
});
|
|
1381
|
+
|
|
1382
|
+
var PlaceholderElement = /*#__PURE__*/React.memo(function (_ref) {
|
|
1383
|
+
var children = _ref.children,
|
|
1384
|
+
active = _ref.active;
|
|
1385
|
+
var top = useSharedValue(active ? 10 : 30);
|
|
1386
|
+
var animatedStyle = useAnimatedStyle(function () {
|
|
1387
|
+
return {
|
|
1388
|
+
top: withTiming(top.value, {
|
|
1389
|
+
duration: 250,
|
|
1390
|
+
easing: Easing.bezier(0.19, 1.0, 0.22, 1.0)
|
|
1391
|
+
})
|
|
1392
|
+
};
|
|
1393
|
+
});
|
|
1394
|
+
useEffect(function () {
|
|
1395
|
+
if (active) {
|
|
1396
|
+
top.value = 10;
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
if (!active) {
|
|
1400
|
+
top.value = 30;
|
|
1401
|
+
}
|
|
1402
|
+
}, [active]);
|
|
1403
|
+
return /*#__PURE__*/React.createElement(Animated.View, {
|
|
1404
|
+
style: [{
|
|
1405
|
+
position: "absolute",
|
|
1406
|
+
zIndex: 1,
|
|
1407
|
+
justifyContent: "center"
|
|
1408
|
+
}, animatedStyle]
|
|
1409
|
+
}, children);
|
|
1410
|
+
});
|
|
1411
|
+
|
|
1412
|
+
var InputPhone = function InputPhone(_ref) {
|
|
1413
|
+
var children = _ref.children,
|
|
1414
|
+
style = _ref.style,
|
|
1415
|
+
borderColorIdle = _ref.borderColorIdle,
|
|
1416
|
+
borderColorActive = _ref.borderColorActive,
|
|
1417
|
+
borderColorError = _ref.borderColorError,
|
|
1418
|
+
_ref$textChangePrefix = _ref.textChangePrefix,
|
|
1419
|
+
textChangePrefix = _ref$textChangePrefix === void 0 ? function () {} : _ref$textChangePrefix,
|
|
1420
|
+
_ref$textChangeNumber = _ref.textChangeNumber,
|
|
1421
|
+
textChangeNumber = _ref$textChangeNumber === void 0 ? function () {} : _ref$textChangeNumber,
|
|
1422
|
+
_ref$onPress = _ref.onPress,
|
|
1423
|
+
_onPress = _ref$onPress === void 0 ? function () {} : _ref$onPress,
|
|
1424
|
+
valuePrefix = _ref.valuePrefix,
|
|
1425
|
+
valueNumber = _ref.valueNumber,
|
|
1426
|
+
defaultValuePrefix = _ref.defaultValuePrefix,
|
|
1427
|
+
defaultValueNumber = _ref.defaultValueNumber,
|
|
1428
|
+
_ref$multiline = _ref.multiline,
|
|
1429
|
+
multiline = _ref$multiline === void 0 ? false : _ref$multiline,
|
|
1430
|
+
_ref$numberOfLines = _ref.numberOfLines,
|
|
1431
|
+
numberOfLines = _ref$numberOfLines === void 0 ? 1 : _ref$numberOfLines,
|
|
1432
|
+
_ref$maxLength = _ref.maxLength,
|
|
1433
|
+
maxLength = _ref$maxLength === void 0 ? 1000 : _ref$maxLength,
|
|
1434
|
+
_ref$autoFocus = _ref.autoFocus,
|
|
1435
|
+
autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus,
|
|
1436
|
+
keyboardType = _ref.keyboardType,
|
|
1437
|
+
_ref$editable = _ref.editable,
|
|
1438
|
+
editable = _ref$editable === void 0 ? true : _ref$editable,
|
|
1439
|
+
_ref$keyboardVertical = _ref.keyboardVerticalOffset,
|
|
1440
|
+
keyboardVerticalOffset = _ref$keyboardVertical === void 0 ? 0 : _ref$keyboardVertical,
|
|
1441
|
+
_ref$hasError = _ref.hasError,
|
|
1442
|
+
hasError = _ref$hasError === void 0 ? false : _ref$hasError,
|
|
1443
|
+
error = _ref.error;
|
|
1444
|
+
|
|
1445
|
+
var _useState = useState(false),
|
|
1446
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1447
|
+
isFocused = _useState2[0],
|
|
1448
|
+
setIsFocused = _useState2[1];
|
|
1449
|
+
|
|
1450
|
+
var _useState3 = useState(valuePrefix || defaultValuePrefix),
|
|
1451
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
1452
|
+
textValue = _useState4[0],
|
|
1453
|
+
setTextValue = _useState4[1];
|
|
1454
|
+
|
|
1455
|
+
var _useState5 = useState(false),
|
|
1456
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
1457
|
+
isFocusedPrefix = _useState6[0],
|
|
1458
|
+
setIsFocusedPrefix = _useState6[1];
|
|
1459
|
+
|
|
1460
|
+
var _useState7 = useState(valueNumber || defaultValueNumber),
|
|
1461
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
1462
|
+
textPrefixValue = _useState8[0],
|
|
1463
|
+
setTextPrefixValue = _useState8[1];
|
|
1464
|
+
|
|
1465
|
+
var inputRef = useRef();
|
|
1466
|
+
useEffect(function () {
|
|
1467
|
+
textChangeNumber(textValue);
|
|
1468
|
+
}, [textValue]);
|
|
1469
|
+
useEffect(function () {
|
|
1470
|
+
textChangePrefix(textPrefixValue);
|
|
1471
|
+
}, [textPrefixValue]);
|
|
1472
|
+
useEffect(function () {
|
|
1473
|
+
var _inputRef$current;
|
|
1474
|
+
|
|
1475
|
+
autoFocus && ((_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus());
|
|
1476
|
+
}, [autoFocus]);
|
|
1477
|
+
return /*#__PURE__*/React.createElement(KeyboardAvoidingView, {
|
|
1478
|
+
behavior: Platform.OS === "ios" ? "padding" : "height",
|
|
1479
|
+
keyboardVerticalOffset: keyboardVerticalOffset
|
|
1480
|
+
}, /*#__PURE__*/React.createElement(InputWrapper, {
|
|
1481
|
+
onPress: function onPress() {
|
|
1482
|
+
var _inputRef$current2;
|
|
1483
|
+
|
|
1484
|
+
_onPress();
|
|
1485
|
+
|
|
1486
|
+
editable && setIsFocused(true);
|
|
1487
|
+
editable && ((_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus());
|
|
1488
|
+
}
|
|
1489
|
+
}, /*#__PURE__*/React.createElement(BorderWrapper$1, {
|
|
1490
|
+
active: isFocused,
|
|
1491
|
+
color: !hasError ? isFocused ? borderColorActive : borderColorIdle : borderColorError
|
|
1492
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
1493
|
+
style: {
|
|
1494
|
+
backgroundColor: "red",
|
|
1495
|
+
width: "100%"
|
|
1496
|
+
}
|
|
1497
|
+
}, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(PlaceholderElement, {
|
|
1498
|
+
active: isFocusedPrefix || textPrefixValue && textPrefixValue.length > 0 || valuePrefix && valuePrefix.length > 0
|
|
1499
|
+
}, /*#__PURE__*/React.createElement(MarginHorizontal, null, !hasError ? children[0] : /*#__PURE__*/React.createElement(H4Text, {
|
|
1500
|
+
color: borderColorError
|
|
1501
|
+
}, error || hasError)))), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(PlaceholderElement, {
|
|
1502
|
+
active: isFocused || textValue && textValue.length > 0 || valueNumber && valueNumber.length > 0
|
|
1503
|
+
}, /*#__PURE__*/React.createElement(MarginHorizontal, null, !hasError ? children[1] : /*#__PURE__*/React.createElement(H4Text, {
|
|
1504
|
+
color: borderColorError
|
|
1505
|
+
}, error || hasError))))), /*#__PURE__*/React.createElement(MarginHorizontal, null, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(InputElement, {
|
|
1506
|
+
onFocus: function onFocus() {
|
|
1507
|
+
return setIsFocusedPrefix(true);
|
|
1508
|
+
},
|
|
1509
|
+
onBlur: function onBlur() {
|
|
1510
|
+
return setIsFocusedPrefix(false);
|
|
1511
|
+
},
|
|
1512
|
+
onChangeText: function onChangeText(text) {
|
|
1513
|
+
return setTextPrefixValue(text);
|
|
1514
|
+
},
|
|
1515
|
+
defaultValue: defaultValuePrefix,
|
|
1516
|
+
value: valuePrefix,
|
|
1517
|
+
multiline: multiline,
|
|
1518
|
+
numberOfLines: numberOfLines,
|
|
1519
|
+
maxLength: maxLength,
|
|
1520
|
+
autoFocus: autoFocus,
|
|
1521
|
+
keyboardType: keyboardType,
|
|
1522
|
+
editable: editable,
|
|
1523
|
+
active: isFocusedPrefix,
|
|
1524
|
+
style: style
|
|
1525
|
+
}), /*#__PURE__*/React.createElement(InputElement, {
|
|
1526
|
+
ref: inputRef,
|
|
1527
|
+
onFocus: function onFocus() {
|
|
1528
|
+
return setIsFocused(true);
|
|
1529
|
+
},
|
|
1530
|
+
onBlur: function onBlur() {
|
|
1531
|
+
return setIsFocused(false);
|
|
1532
|
+
},
|
|
1533
|
+
onChangeText: function onChangeText(text) {
|
|
1534
|
+
return setTextValue(text);
|
|
1535
|
+
},
|
|
1536
|
+
defaultValue: defaultValueNumber,
|
|
1537
|
+
value: valueNumber,
|
|
1538
|
+
multiline: multiline,
|
|
1539
|
+
numberOfLines: numberOfLines,
|
|
1540
|
+
maxLength: maxLength,
|
|
1541
|
+
autoFocus: autoFocus,
|
|
1542
|
+
keyboardType: keyboardType,
|
|
1543
|
+
editable: editable,
|
|
1544
|
+
active: isFocused,
|
|
1545
|
+
style: style
|
|
1546
|
+
}))))));
|
|
1547
|
+
};
|
|
1548
|
+
|
|
1405
1549
|
var _templateObject$h, _templateObject2$8, _templateObject3$2;
|
|
1406
1550
|
var ButtonWrapper = styled.Pressable(_templateObject$h || (_templateObject$h = _taggedTemplateLiteral([""])));
|
|
1407
1551
|
var BorderWrapper = styled.View(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteral(["\n height: 18px;\n position: absolute;\n width: 100%;\n bottom: 10;\n z-index: 0;\n"])));
|
|
@@ -1421,29 +1565,16 @@ var Line = function Line(_ref) {
|
|
|
1421
1565
|
borderColorActive = _ref.borderColorActive;
|
|
1422
1566
|
var widthActive = useSharedValue(0);
|
|
1423
1567
|
var animatedStyleWidthActive = useAnimatedStyle(function () {
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
})
|
|
1433
|
-
};
|
|
1568
|
+
return active ? {
|
|
1569
|
+
width: withTiming(widthActive.value, {
|
|
1570
|
+
duration: 350
|
|
1571
|
+
})
|
|
1572
|
+
} : {
|
|
1573
|
+
width: withTiming(0, {
|
|
1574
|
+
duration: 350
|
|
1575
|
+
})
|
|
1434
1576
|
};
|
|
1435
|
-
|
|
1436
|
-
_f._closure = {
|
|
1437
|
-
active: active,
|
|
1438
|
-
withTiming: withTiming,
|
|
1439
|
-
widthActive: widthActive
|
|
1440
|
-
};
|
|
1441
|
-
_f.asString = "function _f(){const{active,withTiming,widthActive}=jsThis._closure;{return active?{width:withTiming(widthActive.value,{duration:350})}:{width:withTiming(0,{duration:350})};}}";
|
|
1442
|
-
_f.__workletHash = 6082653035732;
|
|
1443
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/TextButton/LineAnimation/index.js (13:52)";
|
|
1444
|
-
_f.__optimalization = 2;
|
|
1445
|
-
return _f;
|
|
1446
|
-
}());
|
|
1577
|
+
});
|
|
1447
1578
|
return /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(BorderIdle, {
|
|
1448
1579
|
color: borderColorIdle,
|
|
1449
1580
|
onLayout: function onLayout(e) {
|
|
@@ -1492,14 +1623,12 @@ var TextBtn = function TextBtn(_ref) {
|
|
|
1492
1623
|
|
|
1493
1624
|
var _templateObject$f, _templateObject2$6;
|
|
1494
1625
|
styled.View(_templateObject$f || (_templateObject$f = _taggedTemplateLiteral([""])));
|
|
1495
|
-
var ButtonStyle$4 = styled.Pressable(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteral(["\n min-height: ", ";\n width: 100%;\n border-radius: ", ";\n background-color: ", ";\n
|
|
1626
|
+
var ButtonStyle$4 = styled.Pressable(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteral(["\n min-height: ", ";\n width: 100%;\n border-radius: ", ";\n background-color: ", ";\n ", ";\n"])), function (props) {
|
|
1496
1627
|
return props.size === "big" ? "60px" : "54px";
|
|
1497
1628
|
}, function (props) {
|
|
1498
|
-
return props.theme.borderRadiusMedium;
|
|
1499
|
-
}, function (props) {
|
|
1500
|
-
return props.color;
|
|
1629
|
+
return props.smallBorder ? props.theme.borderRadiusSmall : props.theme.borderRadiusMedium;
|
|
1501
1630
|
}, function (props) {
|
|
1502
|
-
return props.active ?
|
|
1631
|
+
return props.active ? props.color : props.theme.greyButton;
|
|
1503
1632
|
}, function (props) {
|
|
1504
1633
|
return props.style;
|
|
1505
1634
|
});
|
|
@@ -1514,31 +1643,23 @@ var RoundedBtn$1 = function RoundedBtn(_ref) {
|
|
|
1514
1643
|
style = _ref.style,
|
|
1515
1644
|
_ref$size = _ref.size,
|
|
1516
1645
|
size = _ref$size === void 0 ? "big" : _ref$size,
|
|
1646
|
+
_ref$smallBorder = _ref.smallBorder,
|
|
1647
|
+
smallBorder = _ref$smallBorder === void 0 ? false : _ref$smallBorder,
|
|
1517
1648
|
_ref$hitSlop = _ref.hitSlop,
|
|
1518
1649
|
hitSlop = _ref$hitSlop === void 0 ? 0 : _ref$hitSlop;
|
|
1519
1650
|
var scale = useSharedValue(1);
|
|
1520
1651
|
var animatedStyle = useAnimatedStyle(function () {
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
}]
|
|
1527
|
-
};
|
|
1652
|
+
return {
|
|
1653
|
+
opacity: scale.value,
|
|
1654
|
+
transform: [{
|
|
1655
|
+
scale: scale.value
|
|
1656
|
+
}]
|
|
1528
1657
|
};
|
|
1529
|
-
|
|
1530
|
-
_f._closure = {
|
|
1531
|
-
scale: scale
|
|
1532
|
-
};
|
|
1533
|
-
_f.asString = "function _f(){const{scale}=jsThis._closure;{return{opacity:scale.value,transform:[{scale:scale.value}]};}}";
|
|
1534
|
-
_f.__workletHash = 15781601983731;
|
|
1535
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/RoundedButton/index.js (21:41)";
|
|
1536
|
-
_f.__optimalization = 3;
|
|
1537
|
-
return _f;
|
|
1538
|
-
}());
|
|
1658
|
+
});
|
|
1539
1659
|
return /*#__PURE__*/React.createElement(Animated.View, {
|
|
1540
1660
|
style: [animatedStyle]
|
|
1541
1661
|
}, /*#__PURE__*/React.createElement(ButtonStyle$4, {
|
|
1662
|
+
smallBorder: smallBorder,
|
|
1542
1663
|
hitSlop: hitSlop,
|
|
1543
1664
|
size: size,
|
|
1544
1665
|
active: active,
|
|
@@ -1581,24 +1702,13 @@ var RoundBtn$3 = function RoundBtn(_ref) {
|
|
|
1581
1702
|
size = _ref$size === void 0 ? "big" : _ref$size;
|
|
1582
1703
|
var scale = useSharedValue(1);
|
|
1583
1704
|
var animatedStyle = useAnimatedStyle(function () {
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
}]
|
|
1590
|
-
};
|
|
1591
|
-
};
|
|
1592
|
-
|
|
1593
|
-
_f._closure = {
|
|
1594
|
-
scale: scale
|
|
1705
|
+
return {
|
|
1706
|
+
opacity: scale.value,
|
|
1707
|
+
transform: [{
|
|
1708
|
+
scale: scale.value
|
|
1709
|
+
}]
|
|
1595
1710
|
};
|
|
1596
|
-
|
|
1597
|
-
_f.__workletHash = 15781601983731;
|
|
1598
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/RoundButton/index.js (20:41)";
|
|
1599
|
-
_f.__optimalization = 3;
|
|
1600
|
-
return _f;
|
|
1601
|
-
}());
|
|
1711
|
+
});
|
|
1602
1712
|
return /*#__PURE__*/React.createElement(Animated.View, {
|
|
1603
1713
|
style: [{
|
|
1604
1714
|
flex: 1
|
|
@@ -1641,40 +1751,18 @@ var RoundBtn$2 = function RoundBtn(_ref) {
|
|
|
1641
1751
|
var scale = useSharedValue(1);
|
|
1642
1752
|
var width = useSharedValue(80);
|
|
1643
1753
|
var animatedStyle = useAnimatedStyle(function () {
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
}]
|
|
1650
|
-
};
|
|
1651
|
-
};
|
|
1652
|
-
|
|
1653
|
-
_f._closure = {
|
|
1654
|
-
scale: scale
|
|
1754
|
+
return {
|
|
1755
|
+
opacity: scale.value,
|
|
1756
|
+
transform: [{
|
|
1757
|
+
scale: scale.value
|
|
1758
|
+
}]
|
|
1655
1759
|
};
|
|
1656
|
-
|
|
1657
|
-
_f.__workletHash = 15781601983731;
|
|
1658
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FloatingButton/FloatingButton.js (24:41)";
|
|
1659
|
-
_f.__optimalization = 3;
|
|
1660
|
-
return _f;
|
|
1661
|
-
}());
|
|
1760
|
+
});
|
|
1662
1761
|
var animatedWidth = useAnimatedStyle(function () {
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
width: width.value
|
|
1666
|
-
};
|
|
1667
|
-
};
|
|
1668
|
-
|
|
1669
|
-
_f._closure = {
|
|
1670
|
-
width: width
|
|
1762
|
+
return {
|
|
1763
|
+
width: width.value
|
|
1671
1764
|
};
|
|
1672
|
-
|
|
1673
|
-
_f.__workletHash = 11755410798377;
|
|
1674
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FloatingButton/FloatingButton.js (35:41)";
|
|
1675
|
-
_f.__optimalization = 3;
|
|
1676
|
-
return _f;
|
|
1677
|
-
}());
|
|
1765
|
+
});
|
|
1678
1766
|
useEffect(function () {
|
|
1679
1767
|
if (active) {
|
|
1680
1768
|
setTimeout(function () {
|
|
@@ -1735,46 +1823,21 @@ var RoundBtn$1 = function RoundBtn(_ref) {
|
|
|
1735
1823
|
var left = useSharedValue(30);
|
|
1736
1824
|
var bottom = useSharedValue(30);
|
|
1737
1825
|
var animatedStyle = useAnimatedStyle(function () {
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
}]
|
|
1744
|
-
};
|
|
1745
|
-
};
|
|
1746
|
-
|
|
1747
|
-
_f._closure = {
|
|
1748
|
-
scale: scale
|
|
1826
|
+
return {
|
|
1827
|
+
opacity: scale.value,
|
|
1828
|
+
transform: [{
|
|
1829
|
+
scale: scale.value
|
|
1830
|
+
}]
|
|
1749
1831
|
};
|
|
1750
|
-
|
|
1751
|
-
_f.__workletHash = 15781601983731;
|
|
1752
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FloatingButton/index.js (35:41)";
|
|
1753
|
-
_f.__optimalization = 3;
|
|
1754
|
-
return _f;
|
|
1755
|
-
}());
|
|
1832
|
+
});
|
|
1756
1833
|
var animatedAbsolute = useAnimatedStyle(function () {
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
bottom: bottom.value
|
|
1763
|
-
};
|
|
1764
|
-
};
|
|
1765
|
-
|
|
1766
|
-
_f._closure = {
|
|
1767
|
-
width: width,
|
|
1768
|
-
height: height,
|
|
1769
|
-
left: left,
|
|
1770
|
-
bottom: bottom
|
|
1834
|
+
return {
|
|
1835
|
+
minWidth: width.value,
|
|
1836
|
+
height: height.value,
|
|
1837
|
+
left: left.value,
|
|
1838
|
+
bottom: bottom.value
|
|
1771
1839
|
};
|
|
1772
|
-
|
|
1773
|
-
_f.__workletHash = 14161176176375;
|
|
1774
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FloatingButton/index.js (46:44)";
|
|
1775
|
-
_f.__optimalization = 3;
|
|
1776
|
-
return _f;
|
|
1777
|
-
}());
|
|
1840
|
+
});
|
|
1778
1841
|
useEffect(function () {
|
|
1779
1842
|
scale.value = withTiming(1, {
|
|
1780
1843
|
duration: 450,
|
|
@@ -1874,40 +1937,18 @@ var RoundBtn = function RoundBtn(_ref) {
|
|
|
1874
1937
|
var scale = useSharedValue(1);
|
|
1875
1938
|
var width = useSharedValue(70);
|
|
1876
1939
|
var animatedStyle = useAnimatedStyle(function () {
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
}]
|
|
1883
|
-
};
|
|
1884
|
-
};
|
|
1885
|
-
|
|
1886
|
-
_f._closure = {
|
|
1887
|
-
scale: scale
|
|
1940
|
+
return {
|
|
1941
|
+
opacity: scale.value,
|
|
1942
|
+
transform: [{
|
|
1943
|
+
scale: scale.value
|
|
1944
|
+
}]
|
|
1888
1945
|
};
|
|
1889
|
-
|
|
1890
|
-
_f.__workletHash = 15781601983731;
|
|
1891
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/AnimatedButton/FloatingButton.js (29:41)";
|
|
1892
|
-
_f.__optimalization = 3;
|
|
1893
|
-
return _f;
|
|
1894
|
-
}());
|
|
1946
|
+
});
|
|
1895
1947
|
var animatedWidth = useAnimatedStyle(function () {
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
width: width.value
|
|
1899
|
-
};
|
|
1900
|
-
};
|
|
1901
|
-
|
|
1902
|
-
_f._closure = {
|
|
1903
|
-
width: width
|
|
1948
|
+
return {
|
|
1949
|
+
width: width.value
|
|
1904
1950
|
};
|
|
1905
|
-
|
|
1906
|
-
_f.__workletHash = 11755410798377;
|
|
1907
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/AnimatedButton/FloatingButton.js (40:41)";
|
|
1908
|
-
_f.__optimalization = 3;
|
|
1909
|
-
return _f;
|
|
1910
|
-
}());
|
|
1951
|
+
});
|
|
1911
1952
|
useEffect(function () {
|
|
1912
1953
|
setTimeout(function () {
|
|
1913
1954
|
return width.value = withTiming(leftElement ? Dimensions.get("window").width / 2 : Dimensions.get("window").width - 60, {
|
|
@@ -1967,48 +2008,22 @@ var AnimatedButton$1 = function AnimatedButton(_ref) {
|
|
|
1967
2008
|
var left = useSharedValue(0);
|
|
1968
2009
|
var bottom = useSharedValue(10);
|
|
1969
2010
|
var animatedStyle = useAnimatedStyle(function () {
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
}]
|
|
1976
|
-
};
|
|
1977
|
-
};
|
|
1978
|
-
|
|
1979
|
-
_f._closure = {
|
|
1980
|
-
scale: scale
|
|
2011
|
+
return {
|
|
2012
|
+
opacity: scale.value,
|
|
2013
|
+
transform: [{
|
|
2014
|
+
scale: scale.value
|
|
2015
|
+
}]
|
|
1981
2016
|
};
|
|
1982
|
-
|
|
1983
|
-
_f.__workletHash = 15781601983731;
|
|
1984
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/AnimatedButton/index.js (33:41)";
|
|
1985
|
-
_f.__optimalization = 3;
|
|
1986
|
-
return _f;
|
|
1987
|
-
}());
|
|
2017
|
+
});
|
|
1988
2018
|
var animatedAbsolute = useAnimatedStyle(function () {
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
bottom: bottom.value
|
|
1996
|
-
};
|
|
1997
|
-
};
|
|
1998
|
-
|
|
1999
|
-
_f._closure = {
|
|
2000
|
-
width: width,
|
|
2001
|
-
height: height,
|
|
2002
|
-
right: right,
|
|
2003
|
-
left: left,
|
|
2004
|
-
bottom: bottom
|
|
2019
|
+
return {
|
|
2020
|
+
minWidth: width.value,
|
|
2021
|
+
height: height.value,
|
|
2022
|
+
right: right.value,
|
|
2023
|
+
left: left.value,
|
|
2024
|
+
bottom: bottom.value
|
|
2005
2025
|
};
|
|
2006
|
-
|
|
2007
|
-
_f.__workletHash = 2397013298280;
|
|
2008
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/AnimatedButton/index.js (44:44)";
|
|
2009
|
-
_f.__optimalization = 3;
|
|
2010
|
-
return _f;
|
|
2011
|
-
}());
|
|
2026
|
+
});
|
|
2012
2027
|
useEffect(function () {
|
|
2013
2028
|
scale.value = withTiming(1, {
|
|
2014
2029
|
duration: 450,
|
|
@@ -2101,40 +2116,18 @@ var RoundedBtn = function RoundedBtn(_ref) {
|
|
|
2101
2116
|
var scale = useSharedValue(1);
|
|
2102
2117
|
var width = useSharedValue("100%");
|
|
2103
2118
|
var animatedStyle = useAnimatedStyle(function () {
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
}]
|
|
2110
|
-
};
|
|
2111
|
-
};
|
|
2112
|
-
|
|
2113
|
-
_f._closure = {
|
|
2114
|
-
scale: scale
|
|
2119
|
+
return {
|
|
2120
|
+
opacity: scale.value,
|
|
2121
|
+
transform: [{
|
|
2122
|
+
scale: scale.value
|
|
2123
|
+
}]
|
|
2115
2124
|
};
|
|
2116
|
-
|
|
2117
|
-
_f.__workletHash = 15781601983731;
|
|
2118
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FeedbackButton/FloatingButton.js (28:41)";
|
|
2119
|
-
_f.__optimalization = 3;
|
|
2120
|
-
return _f;
|
|
2121
|
-
}());
|
|
2125
|
+
});
|
|
2122
2126
|
var animatedWidth = useAnimatedStyle(function () {
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
width: width.value
|
|
2126
|
-
};
|
|
2127
|
-
};
|
|
2128
|
-
|
|
2129
|
-
_f._closure = {
|
|
2130
|
-
width: width
|
|
2127
|
+
return {
|
|
2128
|
+
width: width.value
|
|
2131
2129
|
};
|
|
2132
|
-
|
|
2133
|
-
_f.__workletHash = 11755410798377;
|
|
2134
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FeedbackButton/FloatingButton.js (39:41)";
|
|
2135
|
-
_f.__optimalization = 3;
|
|
2136
|
-
return _f;
|
|
2137
|
-
}());
|
|
2130
|
+
});
|
|
2138
2131
|
useEffect(function () {
|
|
2139
2132
|
if (loading) {
|
|
2140
2133
|
width.value = withTiming(70, {
|
|
@@ -2185,46 +2178,21 @@ var AnimatedButton = function AnimatedButton(_ref) {
|
|
|
2185
2178
|
var right = useSharedValue(0);
|
|
2186
2179
|
var left = useSharedValue(0);
|
|
2187
2180
|
var animatedStyle = useAnimatedStyle(function () {
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
}]
|
|
2194
|
-
};
|
|
2195
|
-
};
|
|
2196
|
-
|
|
2197
|
-
_f._closure = {
|
|
2198
|
-
scale: scale
|
|
2181
|
+
return {
|
|
2182
|
+
opacity: scale.value,
|
|
2183
|
+
transform: [{
|
|
2184
|
+
scale: scale.value
|
|
2185
|
+
}]
|
|
2199
2186
|
};
|
|
2200
|
-
|
|
2201
|
-
_f.__workletHash = 15781601983731;
|
|
2202
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FeedbackButton/index.js (32:41)";
|
|
2203
|
-
_f.__optimalization = 3;
|
|
2204
|
-
return _f;
|
|
2205
|
-
}());
|
|
2187
|
+
});
|
|
2206
2188
|
var animatedAbsolute = useAnimatedStyle(function () {
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
left: left.value
|
|
2213
|
-
};
|
|
2214
|
-
};
|
|
2215
|
-
|
|
2216
|
-
_f._closure = {
|
|
2217
|
-
width: width,
|
|
2218
|
-
height: height,
|
|
2219
|
-
right: right,
|
|
2220
|
-
left: left
|
|
2189
|
+
return {
|
|
2190
|
+
minWidth: width.value,
|
|
2191
|
+
height: height.value,
|
|
2192
|
+
right: right.value,
|
|
2193
|
+
left: left.value
|
|
2221
2194
|
};
|
|
2222
|
-
|
|
2223
|
-
_f.__workletHash = 15930704015288;
|
|
2224
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FeedbackButton/index.js (43:44)";
|
|
2225
|
-
_f.__optimalization = 3;
|
|
2226
|
-
return _f;
|
|
2227
|
-
}());
|
|
2195
|
+
});
|
|
2228
2196
|
useEffect(function () {
|
|
2229
2197
|
if (loading) {
|
|
2230
2198
|
width.value = withTiming(Dimensions.get("window").width, {
|
|
@@ -3721,46 +3689,21 @@ var AnimatedRoundedButton = function AnimatedRoundedButton(_ref) {
|
|
|
3721
3689
|
var left = useSharedValue(0);
|
|
3722
3690
|
var bottom = useSharedValue(10);
|
|
3723
3691
|
var animatedStyle = useAnimatedStyle(function () {
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
width: "100%"
|
|
3730
|
-
};
|
|
3731
|
-
};
|
|
3732
|
-
|
|
3733
|
-
_f._closure = {
|
|
3734
|
-
translateY: translateY
|
|
3692
|
+
return {
|
|
3693
|
+
transform: [{
|
|
3694
|
+
translateY: translateY.value
|
|
3695
|
+
}],
|
|
3696
|
+
width: "100%"
|
|
3735
3697
|
};
|
|
3736
|
-
|
|
3737
|
-
_f.__workletHash = 232655703170;
|
|
3738
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/AnimatedRoundedButton/index.js (31:41)";
|
|
3739
|
-
_f.__optimalization = 3;
|
|
3740
|
-
return _f;
|
|
3741
|
-
}());
|
|
3698
|
+
});
|
|
3742
3699
|
var animatedAbsolute = useAnimatedStyle(function () {
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
bottom: bottom.value
|
|
3749
|
-
};
|
|
3750
|
-
};
|
|
3751
|
-
|
|
3752
|
-
_f._closure = {
|
|
3753
|
-
height: height,
|
|
3754
|
-
right: right,
|
|
3755
|
-
left: left,
|
|
3756
|
-
bottom: bottom
|
|
3700
|
+
return {
|
|
3701
|
+
height: height.value,
|
|
3702
|
+
right: right.value,
|
|
3703
|
+
left: left.value,
|
|
3704
|
+
bottom: bottom.value
|
|
3757
3705
|
};
|
|
3758
|
-
|
|
3759
|
-
_f.__workletHash = 12878771773755;
|
|
3760
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/AnimatedRoundedButton/index.js (42:44)";
|
|
3761
|
-
_f.__optimalization = 3;
|
|
3762
|
-
return _f;
|
|
3763
|
-
}());
|
|
3706
|
+
});
|
|
3764
3707
|
useEffect(function () {
|
|
3765
3708
|
translateY.value = withTiming(0, {
|
|
3766
3709
|
duration: 450,
|
|
@@ -52570,156 +52513,56 @@ var SwipeButton = function SwipeButton(_ref) {
|
|
|
52570
52513
|
|
|
52571
52514
|
var x = useSharedValue(0);
|
|
52572
52515
|
var gestureHandler = useAnimatedGestureHandler({
|
|
52573
|
-
onStart: function () {
|
|
52574
|
-
|
|
52575
|
-
|
|
52576
|
-
|
|
52577
|
-
|
|
52578
|
-
|
|
52579
|
-
|
|
52580
|
-
|
|
52581
|
-
_f.asString = "function _f(_,ctx){const{x}=jsThis._closure;{ctx.startX=x.value;}}";
|
|
52582
|
-
_f.__workletHash = 5300485379009;
|
|
52583
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (46:13)";
|
|
52584
|
-
return _f;
|
|
52585
|
-
}(),
|
|
52586
|
-
onActive: function () {
|
|
52587
|
-
var _f = function _f(event, ctx) {
|
|
52588
|
-
if (event.translationY > 60 || event.translationY < -60) {
|
|
52589
|
-
x.value = withSpring(0);
|
|
52590
|
-
} else {
|
|
52591
|
-
if (ctx.startX + event.translationX > width - WIDTH_TO_REMOVE) {
|
|
52592
|
-
x.value = width - WIDTH_FINAL;
|
|
52593
|
-
runOnJS(setToggled)(true);
|
|
52594
|
-
} else {
|
|
52595
|
-
x.value = ctx.startX + event.translationX;
|
|
52596
|
-
}
|
|
52597
|
-
}
|
|
52598
|
-
};
|
|
52599
|
-
|
|
52600
|
-
_f._closure = {
|
|
52601
|
-
x: x,
|
|
52602
|
-
withSpring: withSpring,
|
|
52603
|
-
width: width,
|
|
52604
|
-
WIDTH_TO_REMOVE: WIDTH_TO_REMOVE,
|
|
52605
|
-
WIDTH_FINAL: WIDTH_FINAL,
|
|
52606
|
-
runOnJS: runOnJS,
|
|
52607
|
-
setToggled: setToggled
|
|
52608
|
-
};
|
|
52609
|
-
_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;}}}}";
|
|
52610
|
-
_f.__workletHash = 16638915014400;
|
|
52611
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (49:14)";
|
|
52612
|
-
return _f;
|
|
52613
|
-
}(),
|
|
52614
|
-
onEnd: function () {
|
|
52615
|
-
var _f = function _f(_) {
|
|
52616
|
-
if (toggled) {
|
|
52516
|
+
onStart: function onStart(_, ctx) {
|
|
52517
|
+
ctx.startX = x.value;
|
|
52518
|
+
},
|
|
52519
|
+
onActive: function onActive(event, ctx) {
|
|
52520
|
+
if (event.translationY > 60 || event.translationY < -60) {
|
|
52521
|
+
x.value = withSpring(0);
|
|
52522
|
+
} else {
|
|
52523
|
+
if (ctx.startX + event.translationX > width - WIDTH_TO_REMOVE) {
|
|
52617
52524
|
x.value = width - WIDTH_FINAL;
|
|
52525
|
+
runOnJS(setToggled)(true);
|
|
52618
52526
|
} else {
|
|
52619
|
-
x.value =
|
|
52527
|
+
x.value = ctx.startX + event.translationX;
|
|
52620
52528
|
}
|
|
52621
|
-
}
|
|
52622
|
-
|
|
52623
|
-
|
|
52624
|
-
|
|
52625
|
-
x
|
|
52626
|
-
|
|
52627
|
-
|
|
52628
|
-
|
|
52629
|
-
|
|
52630
|
-
_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);}}}";
|
|
52631
|
-
_f.__workletHash = 9307804739149;
|
|
52632
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (61:11)";
|
|
52633
|
-
return _f;
|
|
52634
|
-
}()
|
|
52529
|
+
}
|
|
52530
|
+
},
|
|
52531
|
+
onEnd: function onEnd(_) {
|
|
52532
|
+
if (toggled) {
|
|
52533
|
+
x.value = width - WIDTH_FINAL;
|
|
52534
|
+
} else {
|
|
52535
|
+
x.value = withSpring(0);
|
|
52536
|
+
}
|
|
52537
|
+
}
|
|
52635
52538
|
});
|
|
52636
52539
|
var animatedStyle = useAnimatedStyle(function () {
|
|
52637
|
-
|
|
52638
|
-
|
|
52639
|
-
|
|
52640
|
-
|
|
52641
|
-
}]
|
|
52642
|
-
};
|
|
52643
|
-
};
|
|
52644
|
-
|
|
52645
|
-
_f._closure = {
|
|
52646
|
-
x: x
|
|
52540
|
+
return {
|
|
52541
|
+
transform: [{
|
|
52542
|
+
translateX: x.value
|
|
52543
|
+
}]
|
|
52647
52544
|
};
|
|
52648
|
-
|
|
52649
|
-
_f.__workletHash = 5278836605383;
|
|
52650
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (70:41)";
|
|
52651
|
-
_f.__optimalization = 3;
|
|
52652
|
-
return _f;
|
|
52653
|
-
}());
|
|
52545
|
+
});
|
|
52654
52546
|
var InterpolateXInput = [0, width];
|
|
52655
52547
|
var colorWave = useAnimatedStyle(function () {
|
|
52656
|
-
|
|
52657
|
-
|
|
52658
|
-
|
|
52659
|
-
opacity: interpolate(x.value, InterpolateXInput, [0, 1])
|
|
52660
|
-
};
|
|
52661
|
-
};
|
|
52662
|
-
|
|
52663
|
-
_f._closure = {
|
|
52664
|
-
x: x,
|
|
52665
|
-
BTN_WIDTH: BTN_WIDTH,
|
|
52666
|
-
BTN_PADDING: BTN_PADDING,
|
|
52667
|
-
interpolate: interpolate,
|
|
52668
|
-
InterpolateXInput: InterpolateXInput
|
|
52548
|
+
return {
|
|
52549
|
+
width: x.value + BTN_WIDTH + BTN_PADDING,
|
|
52550
|
+
opacity: interpolate(x.value, InterpolateXInput, [0, 1])
|
|
52669
52551
|
};
|
|
52670
|
-
|
|
52671
|
-
_f.__workletHash = 1719171425649;
|
|
52672
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (82:37)";
|
|
52673
|
-
_f.__optimalization = 3;
|
|
52674
|
-
return _f;
|
|
52675
|
-
}());
|
|
52552
|
+
});
|
|
52676
52553
|
var animatedBorder = useAnimatedStyle(function () {
|
|
52677
|
-
|
|
52678
|
-
|
|
52679
|
-
borderColor: interpolateColor(x.value, [0, width - WIDTH_FINAL], [theme.color7, borderColor])
|
|
52680
|
-
};
|
|
52681
|
-
};
|
|
52682
|
-
|
|
52683
|
-
_f._closure = {
|
|
52684
|
-
interpolateColor: interpolateColor,
|
|
52685
|
-
x: x,
|
|
52686
|
-
width: width,
|
|
52687
|
-
WIDTH_FINAL: WIDTH_FINAL,
|
|
52688
|
-
theme: {
|
|
52689
|
-
color7: theme.color7
|
|
52690
|
-
},
|
|
52691
|
-
borderColor: borderColor
|
|
52554
|
+
return {
|
|
52555
|
+
borderColor: interpolateColor(x.value, [0, width - WIDTH_FINAL], [theme.color7, borderColor])
|
|
52692
52556
|
};
|
|
52693
|
-
|
|
52694
|
-
_f.__workletHash = 2946001185610;
|
|
52695
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (89:42)";
|
|
52696
|
-
_f.__optimalization = 2;
|
|
52697
|
-
return _f;
|
|
52698
|
-
}());
|
|
52557
|
+
});
|
|
52699
52558
|
var animatedText = useAnimatedStyle(function () {
|
|
52700
|
-
|
|
52701
|
-
|
|
52702
|
-
|
|
52703
|
-
|
|
52704
|
-
|
|
52705
|
-
}]
|
|
52706
|
-
};
|
|
52559
|
+
return {
|
|
52560
|
+
opacity: interpolate(x.value, InterpolateXInput, [1, 0], Extrapolate.CLAMP),
|
|
52561
|
+
transform: [{
|
|
52562
|
+
translateX: x.value
|
|
52563
|
+
}]
|
|
52707
52564
|
};
|
|
52708
|
-
|
|
52709
|
-
_f._closure = {
|
|
52710
|
-
interpolate: interpolate,
|
|
52711
|
-
x: x,
|
|
52712
|
-
InterpolateXInput: InterpolateXInput,
|
|
52713
|
-
Extrapolate: {
|
|
52714
|
-
CLAMP: Extrapolate.CLAMP
|
|
52715
|
-
}
|
|
52716
|
-
};
|
|
52717
|
-
_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}]};}}";
|
|
52718
|
-
_f.__workletHash = 460398395074;
|
|
52719
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (99:40)";
|
|
52720
|
-
_f.__optimalization = 3;
|
|
52721
|
-
return _f;
|
|
52722
|
-
}());
|
|
52565
|
+
});
|
|
52723
52566
|
return /*#__PURE__*/React.createElement(Wrapper$1, {
|
|
52724
52567
|
onLayout: onLayout
|
|
52725
52568
|
}, /*#__PURE__*/React.createElement(RoundWrapper, {
|
|
@@ -54589,11 +54432,19 @@ var Item = function Item(_ref) {
|
|
|
54589
54432
|
source: {
|
|
54590
54433
|
uri: item.src
|
|
54591
54434
|
}
|
|
54592
|
-
}), /*#__PURE__*/React.createElement(Row,
|
|
54435
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
54436
|
+
style: {
|
|
54437
|
+
alignItems: "center"
|
|
54438
|
+
}
|
|
54439
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
54593
54440
|
style: {
|
|
54594
54441
|
flex: 4
|
|
54595
54442
|
}
|
|
54596
|
-
}, /*#__PURE__*/React.createElement(MarginHorizontal, null, /*#__PURE__*/React.createElement(H4Text, null, item.name))), variant === "countryCode" && /*#__PURE__*/React.createElement(Box,
|
|
54443
|
+
}, /*#__PURE__*/React.createElement(MarginHorizontal, null, /*#__PURE__*/React.createElement(H4Text, null, item.name))), variant === "countryCode" && /*#__PURE__*/React.createElement(Box, {
|
|
54444
|
+
style: {
|
|
54445
|
+
flex: 3
|
|
54446
|
+
}
|
|
54447
|
+
}, /*#__PURE__*/React.createElement(MarginHorizontal, null, /*#__PURE__*/React.createElement(H4Text, null, item.code)))))))));
|
|
54597
54448
|
};
|
|
54598
54449
|
|
|
54599
54450
|
function NewCustomer(_ref2) {
|
|
@@ -54710,4 +54561,4 @@ function NewCustomer(_ref2) {
|
|
|
54710
54561
|
}));
|
|
54711
54562
|
}
|
|
54712
54563
|
|
|
54713
|
-
export { AnimatedButton$1 as AnimatedButton, AnimatedPlaceholder, AnimatedRoundedButton, BottomNavBar, Box, Center, CenterLeft, CenterRight, NewCustomer as CountryList, Error, ErrorText, AnimatedButton as FeedbackButton, FlatList, RoundBtn$1 as FloatingBtn, FullScreen, H1Text as H1, H2Text as H2, H3Text as H3, H4Text as H4, H5Text as H5, Header, Icon, Input$1 as Input, Input as InputNormal, InputOtp, Loader, Margin, MarginBottom, MarginHorizontal, MarginRight, MarginTop, MarginVertical, pText as P, Padding, PaddingBottom, PaddingHorizontal, PaddingTop, PaddingVertical, RoundBtn$3 as RoundBtn, RoundedBtn$1 as RoundedBtn, RoundedTopBox, Row, SpanText as Span, Stretch, Success, SwipeButton, Switch, TextBtn, ThemeWrapper, WebSmallWrapper, useThemeContext };
|
|
54564
|
+
export { AnimatedButton$1 as AnimatedButton, AnimatedPlaceholder, AnimatedRoundedButton, BottomNavBar, Box, Center, CenterLeft, CenterRight, NewCustomer as CountryList, Error, ErrorText, AnimatedButton as FeedbackButton, FlatList, RoundBtn$1 as FloatingBtn, FullScreen, H1Text as H1, H2Text as H2, H3Text as H3, H4Text as H4, H5Text as H5, Header, Icon, Input$1 as Input, Input as InputNormal, InputOtp, InputPhone, Loader, Margin, MarginBottom, MarginHorizontal, MarginRight, MarginTop, MarginVertical, pText as P, Padding, PaddingBottom, PaddingHorizontal, PaddingTop, PaddingVertical, RoundBtn$3 as RoundBtn, RoundedBtn$1 as RoundedBtn, RoundedTopBox, Row, SpanText as Span, Stretch, Success, SwipeButton, Switch, TextBtn, ThemeWrapper, WebSmallWrapper, useThemeContext };
|