@servesall/atoms 1.1.6 → 1.1.7
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 +164 -531
- package/dist/bundle.esm.js +165 -532
- package/dist/bundle.umd.js +164 -531
- package/package.json +1 -5
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';
|
|
@@ -915,29 +915,16 @@ var Line$1 = function Line(_ref) {
|
|
|
915
915
|
hasError = _ref.hasError;
|
|
916
916
|
var widthActive = useSharedValue(0);
|
|
917
917
|
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
|
|
918
|
+
return active ? {
|
|
919
|
+
width: withTiming(widthActive.value, {
|
|
920
|
+
duration: 350
|
|
921
|
+
})
|
|
922
|
+
} : {
|
|
923
|
+
width: withTiming(0, {
|
|
924
|
+
duration: 350
|
|
925
|
+
})
|
|
934
926
|
};
|
|
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
|
-
}());
|
|
927
|
+
});
|
|
941
928
|
return /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(BorderIdle$1, {
|
|
942
929
|
color: !hasError ? borderColorIdle : borderColorError,
|
|
943
930
|
onLayout: function onLayout(e) {
|
|
@@ -957,28 +944,13 @@ var PlaceholderElement$1 = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
957
944
|
active = _ref.active;
|
|
958
945
|
var bottom = useSharedValue(active ? 50 : 4);
|
|
959
946
|
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
|
-
}
|
|
947
|
+
return {
|
|
948
|
+
bottom: withTiming(bottom.value, {
|
|
949
|
+
duration: 250,
|
|
950
|
+
easing: Easing.bezier(0.19, 1.0, 0.22, 1.0)
|
|
951
|
+
})
|
|
975
952
|
};
|
|
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
|
-
}());
|
|
953
|
+
});
|
|
982
954
|
useEffect(function () {
|
|
983
955
|
if (active) {
|
|
984
956
|
bottom.value = 50;
|
|
@@ -1097,21 +1069,10 @@ var AnimatedPlaceholder$1 = function AnimatedPlaceholder(_ref) {
|
|
|
1097
1069
|
|
|
1098
1070
|
var fade = useSharedValue(7);
|
|
1099
1071
|
var animatedStyle = useAnimatedStyle(function () {
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
opacity: fade.value
|
|
1103
|
-
};
|
|
1104
|
-
};
|
|
1105
|
-
|
|
1106
|
-
_f._closure = {
|
|
1107
|
-
fade: fade
|
|
1072
|
+
return {
|
|
1073
|
+
opacity: fade.value
|
|
1108
1074
|
};
|
|
1109
|
-
|
|
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
|
-
}());
|
|
1075
|
+
});
|
|
1115
1076
|
|
|
1116
1077
|
var runNewChild = function runNewChild() {
|
|
1117
1078
|
setChildNumber(function (prevChildNumber) {
|
|
@@ -1122,24 +1083,13 @@ var AnimatedPlaceholder$1 = function AnimatedPlaceholder(_ref) {
|
|
|
1122
1083
|
useEffect(function () {
|
|
1123
1084
|
fade.value = withRepeat(withTiming(0, {
|
|
1124
1085
|
duration: 2000
|
|
1125
|
-
}, function () {
|
|
1126
|
-
|
|
1127
|
-
if (
|
|
1128
|
-
|
|
1129
|
-
runOnJS(runNewChild)();
|
|
1130
|
-
}
|
|
1086
|
+
}, function (finished, currentValue) {
|
|
1087
|
+
if (finished) {
|
|
1088
|
+
if (currentValue === 0) {
|
|
1089
|
+
runOnJS(runNewChild)();
|
|
1131
1090
|
}
|
|
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);
|
|
1091
|
+
}
|
|
1092
|
+
}), -1, true);
|
|
1143
1093
|
}, []);
|
|
1144
1094
|
return /*#__PURE__*/React.createElement(Animated.View, {
|
|
1145
1095
|
style: [{
|
|
@@ -1271,28 +1221,13 @@ var PlaceholderElement = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
1271
1221
|
active = _ref.active;
|
|
1272
1222
|
var top = useSharedValue(active ? 10 : 30);
|
|
1273
1223
|
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
|
-
}
|
|
1224
|
+
return {
|
|
1225
|
+
top: withTiming(top.value, {
|
|
1226
|
+
duration: 250,
|
|
1227
|
+
easing: Easing.bezier(0.19, 1.0, 0.22, 1.0)
|
|
1228
|
+
})
|
|
1289
1229
|
};
|
|
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
|
-
}());
|
|
1230
|
+
});
|
|
1296
1231
|
useEffect(function () {
|
|
1297
1232
|
if (active) {
|
|
1298
1233
|
top.value = 10;
|
|
@@ -1421,29 +1356,16 @@ var Line = function Line(_ref) {
|
|
|
1421
1356
|
borderColorActive = _ref.borderColorActive;
|
|
1422
1357
|
var widthActive = useSharedValue(0);
|
|
1423
1358
|
var animatedStyleWidthActive = useAnimatedStyle(function () {
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
})
|
|
1433
|
-
};
|
|
1359
|
+
return active ? {
|
|
1360
|
+
width: withTiming(widthActive.value, {
|
|
1361
|
+
duration: 350
|
|
1362
|
+
})
|
|
1363
|
+
} : {
|
|
1364
|
+
width: withTiming(0, {
|
|
1365
|
+
duration: 350
|
|
1366
|
+
})
|
|
1434
1367
|
};
|
|
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
|
-
}());
|
|
1368
|
+
});
|
|
1447
1369
|
return /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(BorderIdle, {
|
|
1448
1370
|
color: borderColorIdle,
|
|
1449
1371
|
onLayout: function onLayout(e) {
|
|
@@ -1518,24 +1440,13 @@ var RoundedBtn$1 = function RoundedBtn(_ref) {
|
|
|
1518
1440
|
hitSlop = _ref$hitSlop === void 0 ? 0 : _ref$hitSlop;
|
|
1519
1441
|
var scale = useSharedValue(1);
|
|
1520
1442
|
var animatedStyle = useAnimatedStyle(function () {
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
}]
|
|
1527
|
-
};
|
|
1443
|
+
return {
|
|
1444
|
+
opacity: scale.value,
|
|
1445
|
+
transform: [{
|
|
1446
|
+
scale: scale.value
|
|
1447
|
+
}]
|
|
1528
1448
|
};
|
|
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
|
-
}());
|
|
1449
|
+
});
|
|
1539
1450
|
return /*#__PURE__*/React.createElement(Animated.View, {
|
|
1540
1451
|
style: [animatedStyle]
|
|
1541
1452
|
}, /*#__PURE__*/React.createElement(ButtonStyle$4, {
|
|
@@ -1581,24 +1492,13 @@ var RoundBtn$3 = function RoundBtn(_ref) {
|
|
|
1581
1492
|
size = _ref$size === void 0 ? "big" : _ref$size;
|
|
1582
1493
|
var scale = useSharedValue(1);
|
|
1583
1494
|
var animatedStyle = useAnimatedStyle(function () {
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
}]
|
|
1590
|
-
};
|
|
1495
|
+
return {
|
|
1496
|
+
opacity: scale.value,
|
|
1497
|
+
transform: [{
|
|
1498
|
+
scale: scale.value
|
|
1499
|
+
}]
|
|
1591
1500
|
};
|
|
1592
|
-
|
|
1593
|
-
_f._closure = {
|
|
1594
|
-
scale: scale
|
|
1595
|
-
};
|
|
1596
|
-
_f.asString = "function _f(){const{scale}=jsThis._closure;{return{opacity:scale.value,transform:[{scale:scale.value}]};}}";
|
|
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
|
-
}());
|
|
1501
|
+
});
|
|
1602
1502
|
return /*#__PURE__*/React.createElement(Animated.View, {
|
|
1603
1503
|
style: [{
|
|
1604
1504
|
flex: 1
|
|
@@ -1641,40 +1541,18 @@ var RoundBtn$2 = function RoundBtn(_ref) {
|
|
|
1641
1541
|
var scale = useSharedValue(1);
|
|
1642
1542
|
var width = useSharedValue(80);
|
|
1643
1543
|
var animatedStyle = useAnimatedStyle(function () {
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
}]
|
|
1650
|
-
};
|
|
1544
|
+
return {
|
|
1545
|
+
opacity: scale.value,
|
|
1546
|
+
transform: [{
|
|
1547
|
+
scale: scale.value
|
|
1548
|
+
}]
|
|
1651
1549
|
};
|
|
1652
|
-
|
|
1653
|
-
_f._closure = {
|
|
1654
|
-
scale: scale
|
|
1655
|
-
};
|
|
1656
|
-
_f.asString = "function _f(){const{scale}=jsThis._closure;{return{opacity:scale.value,transform:[{scale:scale.value}]};}}";
|
|
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
|
-
}());
|
|
1550
|
+
});
|
|
1662
1551
|
var animatedWidth = useAnimatedStyle(function () {
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
width: width.value
|
|
1666
|
-
};
|
|
1552
|
+
return {
|
|
1553
|
+
width: width.value
|
|
1667
1554
|
};
|
|
1668
|
-
|
|
1669
|
-
_f._closure = {
|
|
1670
|
-
width: width
|
|
1671
|
-
};
|
|
1672
|
-
_f.asString = "function _f(){const{width}=jsThis._closure;{return{width:width.value};}}";
|
|
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
|
-
}());
|
|
1555
|
+
});
|
|
1678
1556
|
useEffect(function () {
|
|
1679
1557
|
if (active) {
|
|
1680
1558
|
setTimeout(function () {
|
|
@@ -1735,46 +1613,21 @@ var RoundBtn$1 = function RoundBtn(_ref) {
|
|
|
1735
1613
|
var left = useSharedValue(30);
|
|
1736
1614
|
var bottom = useSharedValue(30);
|
|
1737
1615
|
var animatedStyle = useAnimatedStyle(function () {
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
}]
|
|
1744
|
-
};
|
|
1616
|
+
return {
|
|
1617
|
+
opacity: scale.value,
|
|
1618
|
+
transform: [{
|
|
1619
|
+
scale: scale.value
|
|
1620
|
+
}]
|
|
1745
1621
|
};
|
|
1746
|
-
|
|
1747
|
-
_f._closure = {
|
|
1748
|
-
scale: scale
|
|
1749
|
-
};
|
|
1750
|
-
_f.asString = "function _f(){const{scale}=jsThis._closure;{return{opacity:scale.value,transform:[{scale:scale.value}]};}}";
|
|
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
|
-
}());
|
|
1622
|
+
});
|
|
1756
1623
|
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
|
|
1624
|
+
return {
|
|
1625
|
+
minWidth: width.value,
|
|
1626
|
+
height: height.value,
|
|
1627
|
+
left: left.value,
|
|
1628
|
+
bottom: bottom.value
|
|
1771
1629
|
};
|
|
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
|
-
}());
|
|
1630
|
+
});
|
|
1778
1631
|
useEffect(function () {
|
|
1779
1632
|
scale.value = withTiming(1, {
|
|
1780
1633
|
duration: 450,
|
|
@@ -1874,40 +1727,18 @@ var RoundBtn = function RoundBtn(_ref) {
|
|
|
1874
1727
|
var scale = useSharedValue(1);
|
|
1875
1728
|
var width = useSharedValue(70);
|
|
1876
1729
|
var animatedStyle = useAnimatedStyle(function () {
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
}]
|
|
1883
|
-
};
|
|
1884
|
-
};
|
|
1885
|
-
|
|
1886
|
-
_f._closure = {
|
|
1887
|
-
scale: scale
|
|
1730
|
+
return {
|
|
1731
|
+
opacity: scale.value,
|
|
1732
|
+
transform: [{
|
|
1733
|
+
scale: scale.value
|
|
1734
|
+
}]
|
|
1888
1735
|
};
|
|
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
|
-
}());
|
|
1736
|
+
});
|
|
1895
1737
|
var animatedWidth = useAnimatedStyle(function () {
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
width: width.value
|
|
1899
|
-
};
|
|
1738
|
+
return {
|
|
1739
|
+
width: width.value
|
|
1900
1740
|
};
|
|
1901
|
-
|
|
1902
|
-
_f._closure = {
|
|
1903
|
-
width: width
|
|
1904
|
-
};
|
|
1905
|
-
_f.asString = "function _f(){const{width}=jsThis._closure;{return{width:width.value};}}";
|
|
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
|
-
}());
|
|
1741
|
+
});
|
|
1911
1742
|
useEffect(function () {
|
|
1912
1743
|
setTimeout(function () {
|
|
1913
1744
|
return width.value = withTiming(leftElement ? Dimensions.get("window").width / 2 : Dimensions.get("window").width - 60, {
|
|
@@ -1967,48 +1798,22 @@ var AnimatedButton$1 = function AnimatedButton(_ref) {
|
|
|
1967
1798
|
var left = useSharedValue(0);
|
|
1968
1799
|
var bottom = useSharedValue(10);
|
|
1969
1800
|
var animatedStyle = useAnimatedStyle(function () {
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
}]
|
|
1976
|
-
};
|
|
1977
|
-
};
|
|
1978
|
-
|
|
1979
|
-
_f._closure = {
|
|
1980
|
-
scale: scale
|
|
1801
|
+
return {
|
|
1802
|
+
opacity: scale.value,
|
|
1803
|
+
transform: [{
|
|
1804
|
+
scale: scale.value
|
|
1805
|
+
}]
|
|
1981
1806
|
};
|
|
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
|
-
}());
|
|
1807
|
+
});
|
|
1988
1808
|
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
|
|
1809
|
+
return {
|
|
1810
|
+
minWidth: width.value,
|
|
1811
|
+
height: height.value,
|
|
1812
|
+
right: right.value,
|
|
1813
|
+
left: left.value,
|
|
1814
|
+
bottom: bottom.value
|
|
2005
1815
|
};
|
|
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
|
-
}());
|
|
1816
|
+
});
|
|
2012
1817
|
useEffect(function () {
|
|
2013
1818
|
scale.value = withTiming(1, {
|
|
2014
1819
|
duration: 450,
|
|
@@ -2101,40 +1906,18 @@ var RoundedBtn = function RoundedBtn(_ref) {
|
|
|
2101
1906
|
var scale = useSharedValue(1);
|
|
2102
1907
|
var width = useSharedValue("100%");
|
|
2103
1908
|
var animatedStyle = useAnimatedStyle(function () {
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
}]
|
|
2110
|
-
};
|
|
2111
|
-
};
|
|
2112
|
-
|
|
2113
|
-
_f._closure = {
|
|
2114
|
-
scale: scale
|
|
1909
|
+
return {
|
|
1910
|
+
opacity: scale.value,
|
|
1911
|
+
transform: [{
|
|
1912
|
+
scale: scale.value
|
|
1913
|
+
}]
|
|
2115
1914
|
};
|
|
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
|
-
}());
|
|
1915
|
+
});
|
|
2122
1916
|
var animatedWidth = useAnimatedStyle(function () {
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
width: width.value
|
|
2126
|
-
};
|
|
2127
|
-
};
|
|
2128
|
-
|
|
2129
|
-
_f._closure = {
|
|
2130
|
-
width: width
|
|
1917
|
+
return {
|
|
1918
|
+
width: width.value
|
|
2131
1919
|
};
|
|
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
|
-
}());
|
|
1920
|
+
});
|
|
2138
1921
|
useEffect(function () {
|
|
2139
1922
|
if (loading) {
|
|
2140
1923
|
width.value = withTiming(70, {
|
|
@@ -2185,46 +1968,21 @@ var AnimatedButton = function AnimatedButton(_ref) {
|
|
|
2185
1968
|
var right = useSharedValue(0);
|
|
2186
1969
|
var left = useSharedValue(0);
|
|
2187
1970
|
var animatedStyle = useAnimatedStyle(function () {
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
}]
|
|
2194
|
-
};
|
|
2195
|
-
};
|
|
2196
|
-
|
|
2197
|
-
_f._closure = {
|
|
2198
|
-
scale: scale
|
|
1971
|
+
return {
|
|
1972
|
+
opacity: scale.value,
|
|
1973
|
+
transform: [{
|
|
1974
|
+
scale: scale.value
|
|
1975
|
+
}]
|
|
2199
1976
|
};
|
|
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
|
-
}());
|
|
1977
|
+
});
|
|
2206
1978
|
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
|
|
1979
|
+
return {
|
|
1980
|
+
minWidth: width.value,
|
|
1981
|
+
height: height.value,
|
|
1982
|
+
right: right.value,
|
|
1983
|
+
left: left.value
|
|
2221
1984
|
};
|
|
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
|
-
}());
|
|
1985
|
+
});
|
|
2228
1986
|
useEffect(function () {
|
|
2229
1987
|
if (loading) {
|
|
2230
1988
|
width.value = withTiming(Dimensions.get("window").width, {
|
|
@@ -3721,46 +3479,21 @@ var AnimatedRoundedButton = function AnimatedRoundedButton(_ref) {
|
|
|
3721
3479
|
var left = useSharedValue(0);
|
|
3722
3480
|
var bottom = useSharedValue(10);
|
|
3723
3481
|
var animatedStyle = useAnimatedStyle(function () {
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
width: "100%"
|
|
3730
|
-
};
|
|
3482
|
+
return {
|
|
3483
|
+
transform: [{
|
|
3484
|
+
translateY: translateY.value
|
|
3485
|
+
}],
|
|
3486
|
+
width: "100%"
|
|
3731
3487
|
};
|
|
3732
|
-
|
|
3733
|
-
_f._closure = {
|
|
3734
|
-
translateY: translateY
|
|
3735
|
-
};
|
|
3736
|
-
_f.asString = "function _f(){const{translateY}=jsThis._closure;{return{transform:[{translateY:translateY.value}],width:\"100%\"};}}";
|
|
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
|
-
}());
|
|
3488
|
+
});
|
|
3742
3489
|
var animatedAbsolute = useAnimatedStyle(function () {
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
bottom: bottom.value
|
|
3749
|
-
};
|
|
3490
|
+
return {
|
|
3491
|
+
height: height.value,
|
|
3492
|
+
right: right.value,
|
|
3493
|
+
left: left.value,
|
|
3494
|
+
bottom: bottom.value
|
|
3750
3495
|
};
|
|
3751
|
-
|
|
3752
|
-
_f._closure = {
|
|
3753
|
-
height: height,
|
|
3754
|
-
right: right,
|
|
3755
|
-
left: left,
|
|
3756
|
-
bottom: bottom
|
|
3757
|
-
};
|
|
3758
|
-
_f.asString = "function _f(){const{height,right,left,bottom}=jsThis._closure;{return{height:height.value,right:right.value,left:left.value,bottom:bottom.value};}}";
|
|
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
|
-
}());
|
|
3496
|
+
});
|
|
3764
3497
|
useEffect(function () {
|
|
3765
3498
|
translateY.value = withTiming(0, {
|
|
3766
3499
|
duration: 450,
|
|
@@ -52570,156 +52303,56 @@ var SwipeButton = function SwipeButton(_ref) {
|
|
|
52570
52303
|
|
|
52571
52304
|
var x = useSharedValue(0);
|
|
52572
52305
|
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) {
|
|
52306
|
+
onStart: function onStart(_, ctx) {
|
|
52307
|
+
ctx.startX = x.value;
|
|
52308
|
+
},
|
|
52309
|
+
onActive: function onActive(event, ctx) {
|
|
52310
|
+
if (event.translationY > 60 || event.translationY < -60) {
|
|
52311
|
+
x.value = withSpring(0);
|
|
52312
|
+
} else {
|
|
52313
|
+
if (ctx.startX + event.translationX > width - WIDTH_TO_REMOVE) {
|
|
52617
52314
|
x.value = width - WIDTH_FINAL;
|
|
52315
|
+
runOnJS(setToggled)(true);
|
|
52618
52316
|
} else {
|
|
52619
|
-
x.value =
|
|
52317
|
+
x.value = ctx.startX + event.translationX;
|
|
52620
52318
|
}
|
|
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
|
-
}()
|
|
52319
|
+
}
|
|
52320
|
+
},
|
|
52321
|
+
onEnd: function onEnd(_) {
|
|
52322
|
+
if (toggled) {
|
|
52323
|
+
x.value = width - WIDTH_FINAL;
|
|
52324
|
+
} else {
|
|
52325
|
+
x.value = withSpring(0);
|
|
52326
|
+
}
|
|
52327
|
+
}
|
|
52635
52328
|
});
|
|
52636
52329
|
var animatedStyle = useAnimatedStyle(function () {
|
|
52637
|
-
|
|
52638
|
-
|
|
52639
|
-
|
|
52640
|
-
|
|
52641
|
-
}]
|
|
52642
|
-
};
|
|
52643
|
-
};
|
|
52644
|
-
|
|
52645
|
-
_f._closure = {
|
|
52646
|
-
x: x
|
|
52330
|
+
return {
|
|
52331
|
+
transform: [{
|
|
52332
|
+
translateX: x.value
|
|
52333
|
+
}]
|
|
52647
52334
|
};
|
|
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
|
-
}());
|
|
52335
|
+
});
|
|
52654
52336
|
var InterpolateXInput = [0, width];
|
|
52655
52337
|
var colorWave = useAnimatedStyle(function () {
|
|
52656
|
-
|
|
52657
|
-
|
|
52658
|
-
|
|
52659
|
-
opacity: interpolate(x.value, InterpolateXInput, [0, 1])
|
|
52660
|
-
};
|
|
52338
|
+
return {
|
|
52339
|
+
width: x.value + BTN_WIDTH + BTN_PADDING,
|
|
52340
|
+
opacity: interpolate(x.value, InterpolateXInput, [0, 1])
|
|
52661
52341
|
};
|
|
52662
|
-
|
|
52663
|
-
_f._closure = {
|
|
52664
|
-
x: x,
|
|
52665
|
-
BTN_WIDTH: BTN_WIDTH,
|
|
52666
|
-
BTN_PADDING: BTN_PADDING,
|
|
52667
|
-
interpolate: interpolate,
|
|
52668
|
-
InterpolateXInput: InterpolateXInput
|
|
52669
|
-
};
|
|
52670
|
-
_f.asString = "function _f(){const{x,BTN_WIDTH,BTN_PADDING,interpolate,InterpolateXInput}=jsThis._closure;{return{width:x.value+BTN_WIDTH+BTN_PADDING,opacity:interpolate(x.value,InterpolateXInput,[0,1])};}}";
|
|
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
|
-
}());
|
|
52342
|
+
});
|
|
52676
52343
|
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
|
|
52344
|
+
return {
|
|
52345
|
+
borderColor: interpolateColor(x.value, [0, width - WIDTH_FINAL], [theme.color7, borderColor])
|
|
52692
52346
|
};
|
|
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
|
-
}());
|
|
52347
|
+
});
|
|
52699
52348
|
var animatedText = useAnimatedStyle(function () {
|
|
52700
|
-
|
|
52701
|
-
|
|
52702
|
-
|
|
52703
|
-
|
|
52704
|
-
|
|
52705
|
-
}]
|
|
52706
|
-
};
|
|
52349
|
+
return {
|
|
52350
|
+
opacity: interpolate(x.value, InterpolateXInput, [1, 0], Extrapolate.CLAMP),
|
|
52351
|
+
transform: [{
|
|
52352
|
+
translateX: x.value
|
|
52353
|
+
}]
|
|
52707
52354
|
};
|
|
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
|
-
}());
|
|
52355
|
+
});
|
|
52723
52356
|
return /*#__PURE__*/React.createElement(Wrapper$1, {
|
|
52724
52357
|
onLayout: onLayout
|
|
52725
52358
|
}, /*#__PURE__*/React.createElement(RoundWrapper, {
|