@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.umd.js
CHANGED
|
@@ -920,29 +920,16 @@
|
|
|
920
920
|
hasError = _ref.hasError;
|
|
921
921
|
var widthActive = Animated.useSharedValue(0);
|
|
922
922
|
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
|
|
923
|
+
return active ? {
|
|
924
|
+
width: Animated.withTiming(widthActive.value, {
|
|
925
|
+
duration: 350
|
|
926
|
+
})
|
|
927
|
+
} : {
|
|
928
|
+
width: Animated.withTiming(0, {
|
|
929
|
+
duration: 350
|
|
930
|
+
})
|
|
939
931
|
};
|
|
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
|
-
}());
|
|
932
|
+
});
|
|
946
933
|
return /*#__PURE__*/React__default["default"].createElement(Row, null, /*#__PURE__*/React__default["default"].createElement(BorderIdle$1, {
|
|
947
934
|
color: !hasError ? borderColorIdle : borderColorError,
|
|
948
935
|
onLayout: function onLayout(e) {
|
|
@@ -962,28 +949,13 @@
|
|
|
962
949
|
active = _ref.active;
|
|
963
950
|
var bottom = Animated.useSharedValue(active ? 50 : 4);
|
|
964
951
|
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
|
-
}
|
|
952
|
+
return {
|
|
953
|
+
bottom: Animated.withTiming(bottom.value, {
|
|
954
|
+
duration: 250,
|
|
955
|
+
easing: Animated.Easing.bezier(0.19, 1.0, 0.22, 1.0)
|
|
956
|
+
})
|
|
980
957
|
};
|
|
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
|
-
}());
|
|
958
|
+
});
|
|
987
959
|
React.useEffect(function () {
|
|
988
960
|
if (active) {
|
|
989
961
|
bottom.value = 50;
|
|
@@ -1102,21 +1074,10 @@
|
|
|
1102
1074
|
|
|
1103
1075
|
var fade = Animated.useSharedValue(7);
|
|
1104
1076
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
opacity: fade.value
|
|
1108
|
-
};
|
|
1109
|
-
};
|
|
1110
|
-
|
|
1111
|
-
_f._closure = {
|
|
1112
|
-
fade: fade
|
|
1077
|
+
return {
|
|
1078
|
+
opacity: fade.value
|
|
1113
1079
|
};
|
|
1114
|
-
|
|
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
|
-
}());
|
|
1080
|
+
});
|
|
1120
1081
|
|
|
1121
1082
|
var runNewChild = function runNewChild() {
|
|
1122
1083
|
setChildNumber(function (prevChildNumber) {
|
|
@@ -1127,24 +1088,13 @@
|
|
|
1127
1088
|
React.useEffect(function () {
|
|
1128
1089
|
fade.value = Animated.withRepeat(Animated.withTiming(0, {
|
|
1129
1090
|
duration: 2000
|
|
1130
|
-
}, function () {
|
|
1131
|
-
|
|
1132
|
-
if (
|
|
1133
|
-
|
|
1134
|
-
Animated.runOnJS(runNewChild)();
|
|
1135
|
-
}
|
|
1091
|
+
}, function (finished, currentValue) {
|
|
1092
|
+
if (finished) {
|
|
1093
|
+
if (currentValue === 0) {
|
|
1094
|
+
Animated.runOnJS(runNewChild)();
|
|
1136
1095
|
}
|
|
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);
|
|
1096
|
+
}
|
|
1097
|
+
}), -1, true);
|
|
1148
1098
|
}, []);
|
|
1149
1099
|
return /*#__PURE__*/React__default["default"].createElement(Animated__default["default"].View, {
|
|
1150
1100
|
style: [{
|
|
@@ -1276,28 +1226,13 @@
|
|
|
1276
1226
|
active = _ref.active;
|
|
1277
1227
|
var top = Animated.useSharedValue(active ? 10 : 30);
|
|
1278
1228
|
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
|
-
}
|
|
1229
|
+
return {
|
|
1230
|
+
top: Animated.withTiming(top.value, {
|
|
1231
|
+
duration: 250,
|
|
1232
|
+
easing: Animated.Easing.bezier(0.19, 1.0, 0.22, 1.0)
|
|
1233
|
+
})
|
|
1294
1234
|
};
|
|
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
|
-
}());
|
|
1235
|
+
});
|
|
1301
1236
|
React.useEffect(function () {
|
|
1302
1237
|
if (active) {
|
|
1303
1238
|
top.value = 10;
|
|
@@ -1426,29 +1361,16 @@
|
|
|
1426
1361
|
borderColorActive = _ref.borderColorActive;
|
|
1427
1362
|
var widthActive = Animated.useSharedValue(0);
|
|
1428
1363
|
var animatedStyleWidthActive = Animated.useAnimatedStyle(function () {
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
})
|
|
1438
|
-
};
|
|
1364
|
+
return active ? {
|
|
1365
|
+
width: Animated.withTiming(widthActive.value, {
|
|
1366
|
+
duration: 350
|
|
1367
|
+
})
|
|
1368
|
+
} : {
|
|
1369
|
+
width: Animated.withTiming(0, {
|
|
1370
|
+
duration: 350
|
|
1371
|
+
})
|
|
1439
1372
|
};
|
|
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
|
-
}());
|
|
1373
|
+
});
|
|
1452
1374
|
return /*#__PURE__*/React__default["default"].createElement(Row, null, /*#__PURE__*/React__default["default"].createElement(BorderIdle, {
|
|
1453
1375
|
color: borderColorIdle,
|
|
1454
1376
|
onLayout: function onLayout(e) {
|
|
@@ -1523,24 +1445,13 @@
|
|
|
1523
1445
|
hitSlop = _ref$hitSlop === void 0 ? 0 : _ref$hitSlop;
|
|
1524
1446
|
var scale = Animated.useSharedValue(1);
|
|
1525
1447
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
}]
|
|
1532
|
-
};
|
|
1448
|
+
return {
|
|
1449
|
+
opacity: scale.value,
|
|
1450
|
+
transform: [{
|
|
1451
|
+
scale: scale.value
|
|
1452
|
+
}]
|
|
1533
1453
|
};
|
|
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
|
-
}());
|
|
1454
|
+
});
|
|
1544
1455
|
return /*#__PURE__*/React__default["default"].createElement(Animated__default["default"].View, {
|
|
1545
1456
|
style: [animatedStyle]
|
|
1546
1457
|
}, /*#__PURE__*/React__default["default"].createElement(ButtonStyle$4, {
|
|
@@ -1586,24 +1497,13 @@
|
|
|
1586
1497
|
size = _ref$size === void 0 ? "big" : _ref$size;
|
|
1587
1498
|
var scale = Animated.useSharedValue(1);
|
|
1588
1499
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
}]
|
|
1595
|
-
};
|
|
1500
|
+
return {
|
|
1501
|
+
opacity: scale.value,
|
|
1502
|
+
transform: [{
|
|
1503
|
+
scale: scale.value
|
|
1504
|
+
}]
|
|
1596
1505
|
};
|
|
1597
|
-
|
|
1598
|
-
_f._closure = {
|
|
1599
|
-
scale: scale
|
|
1600
|
-
};
|
|
1601
|
-
_f.asString = "function _f(){const{scale}=jsThis._closure;{return{opacity:scale.value,transform:[{scale:scale.value}]};}}";
|
|
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
|
-
}());
|
|
1506
|
+
});
|
|
1607
1507
|
return /*#__PURE__*/React__default["default"].createElement(Animated__default["default"].View, {
|
|
1608
1508
|
style: [{
|
|
1609
1509
|
flex: 1
|
|
@@ -1646,40 +1546,18 @@
|
|
|
1646
1546
|
var scale = Animated.useSharedValue(1);
|
|
1647
1547
|
var width = Animated.useSharedValue(80);
|
|
1648
1548
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
}]
|
|
1655
|
-
};
|
|
1549
|
+
return {
|
|
1550
|
+
opacity: scale.value,
|
|
1551
|
+
transform: [{
|
|
1552
|
+
scale: scale.value
|
|
1553
|
+
}]
|
|
1656
1554
|
};
|
|
1657
|
-
|
|
1658
|
-
_f._closure = {
|
|
1659
|
-
scale: scale
|
|
1660
|
-
};
|
|
1661
|
-
_f.asString = "function _f(){const{scale}=jsThis._closure;{return{opacity:scale.value,transform:[{scale:scale.value}]};}}";
|
|
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
|
-
}());
|
|
1555
|
+
});
|
|
1667
1556
|
var animatedWidth = Animated.useAnimatedStyle(function () {
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
width: width.value
|
|
1671
|
-
};
|
|
1557
|
+
return {
|
|
1558
|
+
width: width.value
|
|
1672
1559
|
};
|
|
1673
|
-
|
|
1674
|
-
_f._closure = {
|
|
1675
|
-
width: width
|
|
1676
|
-
};
|
|
1677
|
-
_f.asString = "function _f(){const{width}=jsThis._closure;{return{width:width.value};}}";
|
|
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
|
-
}());
|
|
1560
|
+
});
|
|
1683
1561
|
React.useEffect(function () {
|
|
1684
1562
|
if (active) {
|
|
1685
1563
|
setTimeout(function () {
|
|
@@ -1740,46 +1618,21 @@
|
|
|
1740
1618
|
var left = Animated.useSharedValue(30);
|
|
1741
1619
|
var bottom = Animated.useSharedValue(30);
|
|
1742
1620
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
}]
|
|
1749
|
-
};
|
|
1621
|
+
return {
|
|
1622
|
+
opacity: scale.value,
|
|
1623
|
+
transform: [{
|
|
1624
|
+
scale: scale.value
|
|
1625
|
+
}]
|
|
1750
1626
|
};
|
|
1751
|
-
|
|
1752
|
-
_f._closure = {
|
|
1753
|
-
scale: scale
|
|
1754
|
-
};
|
|
1755
|
-
_f.asString = "function _f(){const{scale}=jsThis._closure;{return{opacity:scale.value,transform:[{scale:scale.value}]};}}";
|
|
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
|
-
}());
|
|
1627
|
+
});
|
|
1761
1628
|
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
|
|
1629
|
+
return {
|
|
1630
|
+
minWidth: width.value,
|
|
1631
|
+
height: height.value,
|
|
1632
|
+
left: left.value,
|
|
1633
|
+
bottom: bottom.value
|
|
1776
1634
|
};
|
|
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
|
-
}());
|
|
1635
|
+
});
|
|
1783
1636
|
React.useEffect(function () {
|
|
1784
1637
|
scale.value = Animated.withTiming(1, {
|
|
1785
1638
|
duration: 450,
|
|
@@ -1879,40 +1732,18 @@
|
|
|
1879
1732
|
var scale = Animated.useSharedValue(1);
|
|
1880
1733
|
var width = Animated.useSharedValue(70);
|
|
1881
1734
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
}]
|
|
1888
|
-
};
|
|
1889
|
-
};
|
|
1890
|
-
|
|
1891
|
-
_f._closure = {
|
|
1892
|
-
scale: scale
|
|
1735
|
+
return {
|
|
1736
|
+
opacity: scale.value,
|
|
1737
|
+
transform: [{
|
|
1738
|
+
scale: scale.value
|
|
1739
|
+
}]
|
|
1893
1740
|
};
|
|
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
|
-
}());
|
|
1741
|
+
});
|
|
1900
1742
|
var animatedWidth = Animated.useAnimatedStyle(function () {
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
width: width.value
|
|
1904
|
-
};
|
|
1743
|
+
return {
|
|
1744
|
+
width: width.value
|
|
1905
1745
|
};
|
|
1906
|
-
|
|
1907
|
-
_f._closure = {
|
|
1908
|
-
width: width
|
|
1909
|
-
};
|
|
1910
|
-
_f.asString = "function _f(){const{width}=jsThis._closure;{return{width:width.value};}}";
|
|
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
|
-
}());
|
|
1746
|
+
});
|
|
1916
1747
|
React.useEffect(function () {
|
|
1917
1748
|
setTimeout(function () {
|
|
1918
1749
|
return width.value = Animated.withTiming(leftElement ? reactNative.Dimensions.get("window").width / 2 : reactNative.Dimensions.get("window").width - 60, {
|
|
@@ -1972,48 +1803,22 @@
|
|
|
1972
1803
|
var left = Animated.useSharedValue(0);
|
|
1973
1804
|
var bottom = Animated.useSharedValue(10);
|
|
1974
1805
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
}]
|
|
1981
|
-
};
|
|
1982
|
-
};
|
|
1983
|
-
|
|
1984
|
-
_f._closure = {
|
|
1985
|
-
scale: scale
|
|
1806
|
+
return {
|
|
1807
|
+
opacity: scale.value,
|
|
1808
|
+
transform: [{
|
|
1809
|
+
scale: scale.value
|
|
1810
|
+
}]
|
|
1986
1811
|
};
|
|
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
|
-
}());
|
|
1812
|
+
});
|
|
1993
1813
|
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
|
|
1814
|
+
return {
|
|
1815
|
+
minWidth: width.value,
|
|
1816
|
+
height: height.value,
|
|
1817
|
+
right: right.value,
|
|
1818
|
+
left: left.value,
|
|
1819
|
+
bottom: bottom.value
|
|
2010
1820
|
};
|
|
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
|
-
}());
|
|
1821
|
+
});
|
|
2017
1822
|
React.useEffect(function () {
|
|
2018
1823
|
scale.value = Animated.withTiming(1, {
|
|
2019
1824
|
duration: 450,
|
|
@@ -2106,40 +1911,18 @@
|
|
|
2106
1911
|
var scale = Animated.useSharedValue(1);
|
|
2107
1912
|
var width = Animated.useSharedValue("100%");
|
|
2108
1913
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
}]
|
|
2115
|
-
};
|
|
2116
|
-
};
|
|
2117
|
-
|
|
2118
|
-
_f._closure = {
|
|
2119
|
-
scale: scale
|
|
1914
|
+
return {
|
|
1915
|
+
opacity: scale.value,
|
|
1916
|
+
transform: [{
|
|
1917
|
+
scale: scale.value
|
|
1918
|
+
}]
|
|
2120
1919
|
};
|
|
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
|
-
}());
|
|
1920
|
+
});
|
|
2127
1921
|
var animatedWidth = Animated.useAnimatedStyle(function () {
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
width: width.value
|
|
2131
|
-
};
|
|
2132
|
-
};
|
|
2133
|
-
|
|
2134
|
-
_f._closure = {
|
|
2135
|
-
width: width
|
|
1922
|
+
return {
|
|
1923
|
+
width: width.value
|
|
2136
1924
|
};
|
|
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
|
-
}());
|
|
1925
|
+
});
|
|
2143
1926
|
React.useEffect(function () {
|
|
2144
1927
|
if (loading) {
|
|
2145
1928
|
width.value = Animated.withTiming(70, {
|
|
@@ -2190,46 +1973,21 @@
|
|
|
2190
1973
|
var right = Animated.useSharedValue(0);
|
|
2191
1974
|
var left = Animated.useSharedValue(0);
|
|
2192
1975
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
}]
|
|
2199
|
-
};
|
|
2200
|
-
};
|
|
2201
|
-
|
|
2202
|
-
_f._closure = {
|
|
2203
|
-
scale: scale
|
|
1976
|
+
return {
|
|
1977
|
+
opacity: scale.value,
|
|
1978
|
+
transform: [{
|
|
1979
|
+
scale: scale.value
|
|
1980
|
+
}]
|
|
2204
1981
|
};
|
|
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
|
-
}());
|
|
1982
|
+
});
|
|
2211
1983
|
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
|
|
1984
|
+
return {
|
|
1985
|
+
minWidth: width.value,
|
|
1986
|
+
height: height.value,
|
|
1987
|
+
right: right.value,
|
|
1988
|
+
left: left.value
|
|
2226
1989
|
};
|
|
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
|
-
}());
|
|
1990
|
+
});
|
|
2233
1991
|
React.useEffect(function () {
|
|
2234
1992
|
if (loading) {
|
|
2235
1993
|
width.value = Animated.withTiming(reactNative.Dimensions.get("window").width, {
|
|
@@ -3726,46 +3484,21 @@
|
|
|
3726
3484
|
var left = Animated.useSharedValue(0);
|
|
3727
3485
|
var bottom = Animated.useSharedValue(10);
|
|
3728
3486
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
width: "100%"
|
|
3735
|
-
};
|
|
3487
|
+
return {
|
|
3488
|
+
transform: [{
|
|
3489
|
+
translateY: translateY.value
|
|
3490
|
+
}],
|
|
3491
|
+
width: "100%"
|
|
3736
3492
|
};
|
|
3737
|
-
|
|
3738
|
-
_f._closure = {
|
|
3739
|
-
translateY: translateY
|
|
3740
|
-
};
|
|
3741
|
-
_f.asString = "function _f(){const{translateY}=jsThis._closure;{return{transform:[{translateY:translateY.value}],width:\"100%\"};}}";
|
|
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
|
-
}());
|
|
3493
|
+
});
|
|
3747
3494
|
var animatedAbsolute = Animated.useAnimatedStyle(function () {
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
bottom: bottom.value
|
|
3754
|
-
};
|
|
3495
|
+
return {
|
|
3496
|
+
height: height.value,
|
|
3497
|
+
right: right.value,
|
|
3498
|
+
left: left.value,
|
|
3499
|
+
bottom: bottom.value
|
|
3755
3500
|
};
|
|
3756
|
-
|
|
3757
|
-
_f._closure = {
|
|
3758
|
-
height: height,
|
|
3759
|
-
right: right,
|
|
3760
|
-
left: left,
|
|
3761
|
-
bottom: bottom
|
|
3762
|
-
};
|
|
3763
|
-
_f.asString = "function _f(){const{height,right,left,bottom}=jsThis._closure;{return{height:height.value,right:right.value,left:left.value,bottom:bottom.value};}}";
|
|
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
|
-
}());
|
|
3501
|
+
});
|
|
3769
3502
|
React.useEffect(function () {
|
|
3770
3503
|
translateY.value = Animated.withTiming(0, {
|
|
3771
3504
|
duration: 450,
|
|
@@ -52575,156 +52308,56 @@
|
|
|
52575
52308
|
|
|
52576
52309
|
var x = Animated.useSharedValue(0);
|
|
52577
52310
|
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) {
|
|
52311
|
+
onStart: function onStart(_, ctx) {
|
|
52312
|
+
ctx.startX = x.value;
|
|
52313
|
+
},
|
|
52314
|
+
onActive: function onActive(event, ctx) {
|
|
52315
|
+
if (event.translationY > 60 || event.translationY < -60) {
|
|
52316
|
+
x.value = Animated.withSpring(0);
|
|
52317
|
+
} else {
|
|
52318
|
+
if (ctx.startX + event.translationX > width - WIDTH_TO_REMOVE) {
|
|
52622
52319
|
x.value = width - WIDTH_FINAL;
|
|
52320
|
+
Animated.runOnJS(setToggled)(true);
|
|
52623
52321
|
} else {
|
|
52624
|
-
x.value =
|
|
52322
|
+
x.value = ctx.startX + event.translationX;
|
|
52625
52323
|
}
|
|
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
|
-
}()
|
|
52324
|
+
}
|
|
52325
|
+
},
|
|
52326
|
+
onEnd: function onEnd(_) {
|
|
52327
|
+
if (toggled) {
|
|
52328
|
+
x.value = width - WIDTH_FINAL;
|
|
52329
|
+
} else {
|
|
52330
|
+
x.value = Animated.withSpring(0);
|
|
52331
|
+
}
|
|
52332
|
+
}
|
|
52640
52333
|
});
|
|
52641
52334
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
52642
|
-
|
|
52643
|
-
|
|
52644
|
-
|
|
52645
|
-
|
|
52646
|
-
}]
|
|
52647
|
-
};
|
|
52648
|
-
};
|
|
52649
|
-
|
|
52650
|
-
_f._closure = {
|
|
52651
|
-
x: x
|
|
52335
|
+
return {
|
|
52336
|
+
transform: [{
|
|
52337
|
+
translateX: x.value
|
|
52338
|
+
}]
|
|
52652
52339
|
};
|
|
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
|
-
}());
|
|
52340
|
+
});
|
|
52659
52341
|
var InterpolateXInput = [0, width];
|
|
52660
52342
|
var colorWave = Animated.useAnimatedStyle(function () {
|
|
52661
|
-
|
|
52662
|
-
|
|
52663
|
-
|
|
52664
|
-
opacity: Animated.interpolate(x.value, InterpolateXInput, [0, 1])
|
|
52665
|
-
};
|
|
52343
|
+
return {
|
|
52344
|
+
width: x.value + BTN_WIDTH + BTN_PADDING,
|
|
52345
|
+
opacity: Animated.interpolate(x.value, InterpolateXInput, [0, 1])
|
|
52666
52346
|
};
|
|
52667
|
-
|
|
52668
|
-
_f._closure = {
|
|
52669
|
-
x: x,
|
|
52670
|
-
BTN_WIDTH: BTN_WIDTH,
|
|
52671
|
-
BTN_PADDING: BTN_PADDING,
|
|
52672
|
-
interpolate: Animated.interpolate,
|
|
52673
|
-
InterpolateXInput: InterpolateXInput
|
|
52674
|
-
};
|
|
52675
|
-
_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])};}}";
|
|
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
|
-
}());
|
|
52347
|
+
});
|
|
52681
52348
|
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
|
|
52349
|
+
return {
|
|
52350
|
+
borderColor: Animated.interpolateColor(x.value, [0, width - WIDTH_FINAL], [theme.color7, borderColor])
|
|
52697
52351
|
};
|
|
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
|
-
}());
|
|
52352
|
+
});
|
|
52704
52353
|
var animatedText = Animated.useAnimatedStyle(function () {
|
|
52705
|
-
|
|
52706
|
-
|
|
52707
|
-
|
|
52708
|
-
|
|
52709
|
-
|
|
52710
|
-
}]
|
|
52711
|
-
};
|
|
52354
|
+
return {
|
|
52355
|
+
opacity: Animated.interpolate(x.value, InterpolateXInput, [1, 0], Animated.Extrapolate.CLAMP),
|
|
52356
|
+
transform: [{
|
|
52357
|
+
translateX: x.value
|
|
52358
|
+
}]
|
|
52712
52359
|
};
|
|
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
|
-
}());
|
|
52360
|
+
});
|
|
52728
52361
|
return /*#__PURE__*/React__default["default"].createElement(Wrapper$1, {
|
|
52729
52362
|
onLayout: onLayout
|
|
52730
52363
|
}, /*#__PURE__*/React__default["default"].createElement(RoundWrapper, {
|