@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.cjs.js
CHANGED
|
@@ -928,29 +928,16 @@ var Line$1 = function Line(_ref) {
|
|
|
928
928
|
hasError = _ref.hasError;
|
|
929
929
|
var widthActive = Animated.useSharedValue(0);
|
|
930
930
|
var animatedStyleWidthActive = Animated.useAnimatedStyle(function () {
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
})
|
|
940
|
-
};
|
|
941
|
-
};
|
|
942
|
-
|
|
943
|
-
_f._closure = {
|
|
944
|
-
active: active,
|
|
945
|
-
withTiming: Animated.withTiming,
|
|
946
|
-
widthActive: widthActive
|
|
931
|
+
return active ? {
|
|
932
|
+
width: Animated.withTiming(widthActive.value, {
|
|
933
|
+
duration: 350
|
|
934
|
+
})
|
|
935
|
+
} : {
|
|
936
|
+
width: Animated.withTiming(0, {
|
|
937
|
+
duration: 350
|
|
938
|
+
})
|
|
947
939
|
};
|
|
948
|
-
|
|
949
|
-
_f.__workletHash = 6082653035732;
|
|
950
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Inputs/Animated/LineAnimation/index.js (19:52)";
|
|
951
|
-
_f.__optimalization = 2;
|
|
952
|
-
return _f;
|
|
953
|
-
}());
|
|
940
|
+
});
|
|
954
941
|
return /*#__PURE__*/React__default["default"].createElement(Row, null, /*#__PURE__*/React__default["default"].createElement(BorderIdle$1, {
|
|
955
942
|
color: !hasError ? borderColorIdle : borderColorError,
|
|
956
943
|
onLayout: function onLayout(e) {
|
|
@@ -970,28 +957,13 @@ var PlaceholderElement$1 = /*#__PURE__*/React__default["default"].memo(function
|
|
|
970
957
|
active = _ref.active;
|
|
971
958
|
var bottom = Animated.useSharedValue(active ? 50 : 4);
|
|
972
959
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
})
|
|
979
|
-
};
|
|
980
|
-
};
|
|
981
|
-
|
|
982
|
-
_f._closure = {
|
|
983
|
-
withTiming: Animated.withTiming,
|
|
984
|
-
bottom: bottom,
|
|
985
|
-
Easing: {
|
|
986
|
-
bezier: Animated.Easing.bezier
|
|
987
|
-
}
|
|
960
|
+
return {
|
|
961
|
+
bottom: Animated.withTiming(bottom.value, {
|
|
962
|
+
duration: 250,
|
|
963
|
+
easing: Animated.Easing.bezier(0.19, 1.0, 0.22, 1.0)
|
|
964
|
+
})
|
|
988
965
|
};
|
|
989
|
-
|
|
990
|
-
_f.__workletHash = 551286745489;
|
|
991
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Inputs/Animated/Placeholder/index.js (12:41)";
|
|
992
|
-
_f.__optimalization = 2;
|
|
993
|
-
return _f;
|
|
994
|
-
}());
|
|
966
|
+
});
|
|
995
967
|
React.useEffect(function () {
|
|
996
968
|
if (active) {
|
|
997
969
|
bottom.value = 50;
|
|
@@ -1110,21 +1082,10 @@ var AnimatedPlaceholder$1 = function AnimatedPlaceholder(_ref) {
|
|
|
1110
1082
|
|
|
1111
1083
|
var fade = Animated.useSharedValue(7);
|
|
1112
1084
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
opacity: fade.value
|
|
1116
|
-
};
|
|
1117
|
-
};
|
|
1118
|
-
|
|
1119
|
-
_f._closure = {
|
|
1120
|
-
fade: fade
|
|
1085
|
+
return {
|
|
1086
|
+
opacity: fade.value
|
|
1121
1087
|
};
|
|
1122
|
-
|
|
1123
|
-
_f.__workletHash = 16298690497334;
|
|
1124
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Inputs/AnimatedPlaceholder/AnimatedItem.js (14:41)";
|
|
1125
|
-
_f.__optimalization = 3;
|
|
1126
|
-
return _f;
|
|
1127
|
-
}());
|
|
1088
|
+
});
|
|
1128
1089
|
|
|
1129
1090
|
var runNewChild = function runNewChild() {
|
|
1130
1091
|
setChildNumber(function (prevChildNumber) {
|
|
@@ -1135,24 +1096,13 @@ var AnimatedPlaceholder$1 = function AnimatedPlaceholder(_ref) {
|
|
|
1135
1096
|
React.useEffect(function () {
|
|
1136
1097
|
fade.value = Animated.withRepeat(Animated.withTiming(0, {
|
|
1137
1098
|
duration: 2000
|
|
1138
|
-
}, function () {
|
|
1139
|
-
|
|
1140
|
-
if (
|
|
1141
|
-
|
|
1142
|
-
Animated.runOnJS(runNewChild)();
|
|
1143
|
-
}
|
|
1099
|
+
}, function (finished, currentValue) {
|
|
1100
|
+
if (finished) {
|
|
1101
|
+
if (currentValue === 0) {
|
|
1102
|
+
Animated.runOnJS(runNewChild)();
|
|
1144
1103
|
}
|
|
1145
|
-
}
|
|
1146
|
-
|
|
1147
|
-
_f._closure = {
|
|
1148
|
-
runOnJS: Animated.runOnJS,
|
|
1149
|
-
runNewChild: runNewChild
|
|
1150
|
-
};
|
|
1151
|
-
_f.asString = "function _f(finished,currentValue){const{runOnJS,runNewChild}=jsThis._closure;{if(finished){if(currentValue===0){runOnJS(runNewChild)();}}}}";
|
|
1152
|
-
_f.__workletHash = 54360799953;
|
|
1153
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Inputs/AnimatedPlaceholder/AnimatedItem.js (28:40)";
|
|
1154
|
-
return _f;
|
|
1155
|
-
}()), -1, true);
|
|
1104
|
+
}
|
|
1105
|
+
}), -1, true);
|
|
1156
1106
|
}, []);
|
|
1157
1107
|
return /*#__PURE__*/React__default["default"].createElement(Animated__default["default"].View, {
|
|
1158
1108
|
style: [{
|
|
@@ -1284,28 +1234,13 @@ var PlaceholderElement = /*#__PURE__*/React__default["default"].memo(function (_
|
|
|
1284
1234
|
active = _ref.active;
|
|
1285
1235
|
var top = Animated.useSharedValue(active ? 10 : 30);
|
|
1286
1236
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
})
|
|
1293
|
-
};
|
|
1294
|
-
};
|
|
1295
|
-
|
|
1296
|
-
_f._closure = {
|
|
1297
|
-
withTiming: Animated.withTiming,
|
|
1298
|
-
top: top,
|
|
1299
|
-
Easing: {
|
|
1300
|
-
bezier: Animated.Easing.bezier
|
|
1301
|
-
}
|
|
1237
|
+
return {
|
|
1238
|
+
top: Animated.withTiming(top.value, {
|
|
1239
|
+
duration: 250,
|
|
1240
|
+
easing: Animated.Easing.bezier(0.19, 1.0, 0.22, 1.0)
|
|
1241
|
+
})
|
|
1302
1242
|
};
|
|
1303
|
-
|
|
1304
|
-
_f.__workletHash = 3739814920853;
|
|
1305
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Inputs/InputNormal/Placeholder/index.js (12:41)";
|
|
1306
|
-
_f.__optimalization = 2;
|
|
1307
|
-
return _f;
|
|
1308
|
-
}());
|
|
1243
|
+
});
|
|
1309
1244
|
React.useEffect(function () {
|
|
1310
1245
|
if (active) {
|
|
1311
1246
|
top.value = 10;
|
|
@@ -1434,29 +1369,16 @@ var Line = function Line(_ref) {
|
|
|
1434
1369
|
borderColorActive = _ref.borderColorActive;
|
|
1435
1370
|
var widthActive = Animated.useSharedValue(0);
|
|
1436
1371
|
var animatedStyleWidthActive = Animated.useAnimatedStyle(function () {
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
})
|
|
1446
|
-
};
|
|
1372
|
+
return active ? {
|
|
1373
|
+
width: Animated.withTiming(widthActive.value, {
|
|
1374
|
+
duration: 350
|
|
1375
|
+
})
|
|
1376
|
+
} : {
|
|
1377
|
+
width: Animated.withTiming(0, {
|
|
1378
|
+
duration: 350
|
|
1379
|
+
})
|
|
1447
1380
|
};
|
|
1448
|
-
|
|
1449
|
-
_f._closure = {
|
|
1450
|
-
active: active,
|
|
1451
|
-
withTiming: Animated.withTiming,
|
|
1452
|
-
widthActive: widthActive
|
|
1453
|
-
};
|
|
1454
|
-
_f.asString = "function _f(){const{active,withTiming,widthActive}=jsThis._closure;{return active?{width:withTiming(widthActive.value,{duration:350})}:{width:withTiming(0,{duration:350})};}}";
|
|
1455
|
-
_f.__workletHash = 6082653035732;
|
|
1456
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/TextButton/LineAnimation/index.js (13:52)";
|
|
1457
|
-
_f.__optimalization = 2;
|
|
1458
|
-
return _f;
|
|
1459
|
-
}());
|
|
1381
|
+
});
|
|
1460
1382
|
return /*#__PURE__*/React__default["default"].createElement(Row, null, /*#__PURE__*/React__default["default"].createElement(BorderIdle, {
|
|
1461
1383
|
color: borderColorIdle,
|
|
1462
1384
|
onLayout: function onLayout(e) {
|
|
@@ -1531,24 +1453,13 @@ var RoundedBtn$1 = function RoundedBtn(_ref) {
|
|
|
1531
1453
|
hitSlop = _ref$hitSlop === void 0 ? 0 : _ref$hitSlop;
|
|
1532
1454
|
var scale = Animated.useSharedValue(1);
|
|
1533
1455
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
}]
|
|
1540
|
-
};
|
|
1456
|
+
return {
|
|
1457
|
+
opacity: scale.value,
|
|
1458
|
+
transform: [{
|
|
1459
|
+
scale: scale.value
|
|
1460
|
+
}]
|
|
1541
1461
|
};
|
|
1542
|
-
|
|
1543
|
-
_f._closure = {
|
|
1544
|
-
scale: scale
|
|
1545
|
-
};
|
|
1546
|
-
_f.asString = "function _f(){const{scale}=jsThis._closure;{return{opacity:scale.value,transform:[{scale:scale.value}]};}}";
|
|
1547
|
-
_f.__workletHash = 15781601983731;
|
|
1548
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/RoundedButton/index.js (21:41)";
|
|
1549
|
-
_f.__optimalization = 3;
|
|
1550
|
-
return _f;
|
|
1551
|
-
}());
|
|
1462
|
+
});
|
|
1552
1463
|
return /*#__PURE__*/React__default["default"].createElement(Animated__default["default"].View, {
|
|
1553
1464
|
style: [animatedStyle]
|
|
1554
1465
|
}, /*#__PURE__*/React__default["default"].createElement(ButtonStyle$4, {
|
|
@@ -1594,24 +1505,13 @@ var RoundBtn$3 = function RoundBtn(_ref) {
|
|
|
1594
1505
|
size = _ref$size === void 0 ? "big" : _ref$size;
|
|
1595
1506
|
var scale = Animated.useSharedValue(1);
|
|
1596
1507
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
}]
|
|
1603
|
-
};
|
|
1508
|
+
return {
|
|
1509
|
+
opacity: scale.value,
|
|
1510
|
+
transform: [{
|
|
1511
|
+
scale: scale.value
|
|
1512
|
+
}]
|
|
1604
1513
|
};
|
|
1605
|
-
|
|
1606
|
-
_f._closure = {
|
|
1607
|
-
scale: scale
|
|
1608
|
-
};
|
|
1609
|
-
_f.asString = "function _f(){const{scale}=jsThis._closure;{return{opacity:scale.value,transform:[{scale:scale.value}]};}}";
|
|
1610
|
-
_f.__workletHash = 15781601983731;
|
|
1611
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/RoundButton/index.js (20:41)";
|
|
1612
|
-
_f.__optimalization = 3;
|
|
1613
|
-
return _f;
|
|
1614
|
-
}());
|
|
1514
|
+
});
|
|
1615
1515
|
return /*#__PURE__*/React__default["default"].createElement(Animated__default["default"].View, {
|
|
1616
1516
|
style: [{
|
|
1617
1517
|
flex: 1
|
|
@@ -1654,40 +1554,18 @@ var RoundBtn$2 = function RoundBtn(_ref) {
|
|
|
1654
1554
|
var scale = Animated.useSharedValue(1);
|
|
1655
1555
|
var width = Animated.useSharedValue(80);
|
|
1656
1556
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
}]
|
|
1663
|
-
};
|
|
1557
|
+
return {
|
|
1558
|
+
opacity: scale.value,
|
|
1559
|
+
transform: [{
|
|
1560
|
+
scale: scale.value
|
|
1561
|
+
}]
|
|
1664
1562
|
};
|
|
1665
|
-
|
|
1666
|
-
_f._closure = {
|
|
1667
|
-
scale: scale
|
|
1668
|
-
};
|
|
1669
|
-
_f.asString = "function _f(){const{scale}=jsThis._closure;{return{opacity:scale.value,transform:[{scale:scale.value}]};}}";
|
|
1670
|
-
_f.__workletHash = 15781601983731;
|
|
1671
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FloatingButton/FloatingButton.js (24:41)";
|
|
1672
|
-
_f.__optimalization = 3;
|
|
1673
|
-
return _f;
|
|
1674
|
-
}());
|
|
1563
|
+
});
|
|
1675
1564
|
var animatedWidth = Animated.useAnimatedStyle(function () {
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
width: width.value
|
|
1679
|
-
};
|
|
1565
|
+
return {
|
|
1566
|
+
width: width.value
|
|
1680
1567
|
};
|
|
1681
|
-
|
|
1682
|
-
_f._closure = {
|
|
1683
|
-
width: width
|
|
1684
|
-
};
|
|
1685
|
-
_f.asString = "function _f(){const{width}=jsThis._closure;{return{width:width.value};}}";
|
|
1686
|
-
_f.__workletHash = 11755410798377;
|
|
1687
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FloatingButton/FloatingButton.js (35:41)";
|
|
1688
|
-
_f.__optimalization = 3;
|
|
1689
|
-
return _f;
|
|
1690
|
-
}());
|
|
1568
|
+
});
|
|
1691
1569
|
React.useEffect(function () {
|
|
1692
1570
|
if (active) {
|
|
1693
1571
|
setTimeout(function () {
|
|
@@ -1748,46 +1626,21 @@ var RoundBtn$1 = function RoundBtn(_ref) {
|
|
|
1748
1626
|
var left = Animated.useSharedValue(30);
|
|
1749
1627
|
var bottom = Animated.useSharedValue(30);
|
|
1750
1628
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
}]
|
|
1757
|
-
};
|
|
1629
|
+
return {
|
|
1630
|
+
opacity: scale.value,
|
|
1631
|
+
transform: [{
|
|
1632
|
+
scale: scale.value
|
|
1633
|
+
}]
|
|
1758
1634
|
};
|
|
1759
|
-
|
|
1760
|
-
_f._closure = {
|
|
1761
|
-
scale: scale
|
|
1762
|
-
};
|
|
1763
|
-
_f.asString = "function _f(){const{scale}=jsThis._closure;{return{opacity:scale.value,transform:[{scale:scale.value}]};}}";
|
|
1764
|
-
_f.__workletHash = 15781601983731;
|
|
1765
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FloatingButton/index.js (35:41)";
|
|
1766
|
-
_f.__optimalization = 3;
|
|
1767
|
-
return _f;
|
|
1768
|
-
}());
|
|
1635
|
+
});
|
|
1769
1636
|
var animatedAbsolute = Animated.useAnimatedStyle(function () {
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
bottom: bottom.value
|
|
1776
|
-
};
|
|
1777
|
-
};
|
|
1778
|
-
|
|
1779
|
-
_f._closure = {
|
|
1780
|
-
width: width,
|
|
1781
|
-
height: height,
|
|
1782
|
-
left: left,
|
|
1783
|
-
bottom: bottom
|
|
1637
|
+
return {
|
|
1638
|
+
minWidth: width.value,
|
|
1639
|
+
height: height.value,
|
|
1640
|
+
left: left.value,
|
|
1641
|
+
bottom: bottom.value
|
|
1784
1642
|
};
|
|
1785
|
-
|
|
1786
|
-
_f.__workletHash = 14161176176375;
|
|
1787
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FloatingButton/index.js (46:44)";
|
|
1788
|
-
_f.__optimalization = 3;
|
|
1789
|
-
return _f;
|
|
1790
|
-
}());
|
|
1643
|
+
});
|
|
1791
1644
|
React.useEffect(function () {
|
|
1792
1645
|
scale.value = Animated.withTiming(1, {
|
|
1793
1646
|
duration: 450,
|
|
@@ -1887,40 +1740,18 @@ var RoundBtn = function RoundBtn(_ref) {
|
|
|
1887
1740
|
var scale = Animated.useSharedValue(1);
|
|
1888
1741
|
var width = Animated.useSharedValue(70);
|
|
1889
1742
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
}]
|
|
1896
|
-
};
|
|
1897
|
-
};
|
|
1898
|
-
|
|
1899
|
-
_f._closure = {
|
|
1900
|
-
scale: scale
|
|
1743
|
+
return {
|
|
1744
|
+
opacity: scale.value,
|
|
1745
|
+
transform: [{
|
|
1746
|
+
scale: scale.value
|
|
1747
|
+
}]
|
|
1901
1748
|
};
|
|
1902
|
-
|
|
1903
|
-
_f.__workletHash = 15781601983731;
|
|
1904
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/AnimatedButton/FloatingButton.js (29:41)";
|
|
1905
|
-
_f.__optimalization = 3;
|
|
1906
|
-
return _f;
|
|
1907
|
-
}());
|
|
1749
|
+
});
|
|
1908
1750
|
var animatedWidth = Animated.useAnimatedStyle(function () {
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
width: width.value
|
|
1912
|
-
};
|
|
1751
|
+
return {
|
|
1752
|
+
width: width.value
|
|
1913
1753
|
};
|
|
1914
|
-
|
|
1915
|
-
_f._closure = {
|
|
1916
|
-
width: width
|
|
1917
|
-
};
|
|
1918
|
-
_f.asString = "function _f(){const{width}=jsThis._closure;{return{width:width.value};}}";
|
|
1919
|
-
_f.__workletHash = 11755410798377;
|
|
1920
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/AnimatedButton/FloatingButton.js (40:41)";
|
|
1921
|
-
_f.__optimalization = 3;
|
|
1922
|
-
return _f;
|
|
1923
|
-
}());
|
|
1754
|
+
});
|
|
1924
1755
|
React.useEffect(function () {
|
|
1925
1756
|
setTimeout(function () {
|
|
1926
1757
|
return width.value = Animated.withTiming(leftElement ? reactNative.Dimensions.get("window").width / 2 : reactNative.Dimensions.get("window").width - 60, {
|
|
@@ -1980,48 +1811,22 @@ var AnimatedButton$1 = function AnimatedButton(_ref) {
|
|
|
1980
1811
|
var left = Animated.useSharedValue(0);
|
|
1981
1812
|
var bottom = Animated.useSharedValue(10);
|
|
1982
1813
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
}]
|
|
1989
|
-
};
|
|
1990
|
-
};
|
|
1991
|
-
|
|
1992
|
-
_f._closure = {
|
|
1993
|
-
scale: scale
|
|
1814
|
+
return {
|
|
1815
|
+
opacity: scale.value,
|
|
1816
|
+
transform: [{
|
|
1817
|
+
scale: scale.value
|
|
1818
|
+
}]
|
|
1994
1819
|
};
|
|
1995
|
-
|
|
1996
|
-
_f.__workletHash = 15781601983731;
|
|
1997
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/AnimatedButton/index.js (33:41)";
|
|
1998
|
-
_f.__optimalization = 3;
|
|
1999
|
-
return _f;
|
|
2000
|
-
}());
|
|
1820
|
+
});
|
|
2001
1821
|
var animatedAbsolute = Animated.useAnimatedStyle(function () {
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
bottom: bottom.value
|
|
2009
|
-
};
|
|
2010
|
-
};
|
|
2011
|
-
|
|
2012
|
-
_f._closure = {
|
|
2013
|
-
width: width,
|
|
2014
|
-
height: height,
|
|
2015
|
-
right: right,
|
|
2016
|
-
left: left,
|
|
2017
|
-
bottom: bottom
|
|
1822
|
+
return {
|
|
1823
|
+
minWidth: width.value,
|
|
1824
|
+
height: height.value,
|
|
1825
|
+
right: right.value,
|
|
1826
|
+
left: left.value,
|
|
1827
|
+
bottom: bottom.value
|
|
2018
1828
|
};
|
|
2019
|
-
|
|
2020
|
-
_f.__workletHash = 2397013298280;
|
|
2021
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/AnimatedButton/index.js (44:44)";
|
|
2022
|
-
_f.__optimalization = 3;
|
|
2023
|
-
return _f;
|
|
2024
|
-
}());
|
|
1829
|
+
});
|
|
2025
1830
|
React.useEffect(function () {
|
|
2026
1831
|
scale.value = Animated.withTiming(1, {
|
|
2027
1832
|
duration: 450,
|
|
@@ -2114,40 +1919,18 @@ var RoundedBtn = function RoundedBtn(_ref) {
|
|
|
2114
1919
|
var scale = Animated.useSharedValue(1);
|
|
2115
1920
|
var width = Animated.useSharedValue("100%");
|
|
2116
1921
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
}]
|
|
2123
|
-
};
|
|
2124
|
-
};
|
|
2125
|
-
|
|
2126
|
-
_f._closure = {
|
|
2127
|
-
scale: scale
|
|
1922
|
+
return {
|
|
1923
|
+
opacity: scale.value,
|
|
1924
|
+
transform: [{
|
|
1925
|
+
scale: scale.value
|
|
1926
|
+
}]
|
|
2128
1927
|
};
|
|
2129
|
-
|
|
2130
|
-
_f.__workletHash = 15781601983731;
|
|
2131
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FeedbackButton/FloatingButton.js (28:41)";
|
|
2132
|
-
_f.__optimalization = 3;
|
|
2133
|
-
return _f;
|
|
2134
|
-
}());
|
|
1928
|
+
});
|
|
2135
1929
|
var animatedWidth = Animated.useAnimatedStyle(function () {
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
width: width.value
|
|
2139
|
-
};
|
|
2140
|
-
};
|
|
2141
|
-
|
|
2142
|
-
_f._closure = {
|
|
2143
|
-
width: width
|
|
1930
|
+
return {
|
|
1931
|
+
width: width.value
|
|
2144
1932
|
};
|
|
2145
|
-
|
|
2146
|
-
_f.__workletHash = 11755410798377;
|
|
2147
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FeedbackButton/FloatingButton.js (39:41)";
|
|
2148
|
-
_f.__optimalization = 3;
|
|
2149
|
-
return _f;
|
|
2150
|
-
}());
|
|
1933
|
+
});
|
|
2151
1934
|
React.useEffect(function () {
|
|
2152
1935
|
if (loading) {
|
|
2153
1936
|
width.value = Animated.withTiming(70, {
|
|
@@ -2198,46 +1981,21 @@ var AnimatedButton = function AnimatedButton(_ref) {
|
|
|
2198
1981
|
var right = Animated.useSharedValue(0);
|
|
2199
1982
|
var left = Animated.useSharedValue(0);
|
|
2200
1983
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
}]
|
|
2207
|
-
};
|
|
2208
|
-
};
|
|
2209
|
-
|
|
2210
|
-
_f._closure = {
|
|
2211
|
-
scale: scale
|
|
1984
|
+
return {
|
|
1985
|
+
opacity: scale.value,
|
|
1986
|
+
transform: [{
|
|
1987
|
+
scale: scale.value
|
|
1988
|
+
}]
|
|
2212
1989
|
};
|
|
2213
|
-
|
|
2214
|
-
_f.__workletHash = 15781601983731;
|
|
2215
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FeedbackButton/index.js (32:41)";
|
|
2216
|
-
_f.__optimalization = 3;
|
|
2217
|
-
return _f;
|
|
2218
|
-
}());
|
|
1990
|
+
});
|
|
2219
1991
|
var animatedAbsolute = Animated.useAnimatedStyle(function () {
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
left: left.value
|
|
2226
|
-
};
|
|
2227
|
-
};
|
|
2228
|
-
|
|
2229
|
-
_f._closure = {
|
|
2230
|
-
width: width,
|
|
2231
|
-
height: height,
|
|
2232
|
-
right: right,
|
|
2233
|
-
left: left
|
|
1992
|
+
return {
|
|
1993
|
+
minWidth: width.value,
|
|
1994
|
+
height: height.value,
|
|
1995
|
+
right: right.value,
|
|
1996
|
+
left: left.value
|
|
2234
1997
|
};
|
|
2235
|
-
|
|
2236
|
-
_f.__workletHash = 15930704015288;
|
|
2237
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/FeedbackButton/index.js (43:44)";
|
|
2238
|
-
_f.__optimalization = 3;
|
|
2239
|
-
return _f;
|
|
2240
|
-
}());
|
|
1998
|
+
});
|
|
2241
1999
|
React.useEffect(function () {
|
|
2242
2000
|
if (loading) {
|
|
2243
2001
|
width.value = Animated.withTiming(reactNative.Dimensions.get("window").width, {
|
|
@@ -3734,46 +3492,21 @@ var AnimatedRoundedButton = function AnimatedRoundedButton(_ref) {
|
|
|
3734
3492
|
var left = Animated.useSharedValue(0);
|
|
3735
3493
|
var bottom = Animated.useSharedValue(10);
|
|
3736
3494
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
width: "100%"
|
|
3743
|
-
};
|
|
3495
|
+
return {
|
|
3496
|
+
transform: [{
|
|
3497
|
+
translateY: translateY.value
|
|
3498
|
+
}],
|
|
3499
|
+
width: "100%"
|
|
3744
3500
|
};
|
|
3745
|
-
|
|
3746
|
-
_f._closure = {
|
|
3747
|
-
translateY: translateY
|
|
3748
|
-
};
|
|
3749
|
-
_f.asString = "function _f(){const{translateY}=jsThis._closure;{return{transform:[{translateY:translateY.value}],width:\"100%\"};}}";
|
|
3750
|
-
_f.__workletHash = 232655703170;
|
|
3751
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/AnimatedRoundedButton/index.js (31:41)";
|
|
3752
|
-
_f.__optimalization = 3;
|
|
3753
|
-
return _f;
|
|
3754
|
-
}());
|
|
3501
|
+
});
|
|
3755
3502
|
var animatedAbsolute = Animated.useAnimatedStyle(function () {
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
bottom: bottom.value
|
|
3762
|
-
};
|
|
3503
|
+
return {
|
|
3504
|
+
height: height.value,
|
|
3505
|
+
right: right.value,
|
|
3506
|
+
left: left.value,
|
|
3507
|
+
bottom: bottom.value
|
|
3763
3508
|
};
|
|
3764
|
-
|
|
3765
|
-
_f._closure = {
|
|
3766
|
-
height: height,
|
|
3767
|
-
right: right,
|
|
3768
|
-
left: left,
|
|
3769
|
-
bottom: bottom
|
|
3770
|
-
};
|
|
3771
|
-
_f.asString = "function _f(){const{height,right,left,bottom}=jsThis._closure;{return{height:height.value,right:right.value,left:left.value,bottom:bottom.value};}}";
|
|
3772
|
-
_f.__workletHash = 12878771773755;
|
|
3773
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/Buttons/AnimatedRoundedButton/index.js (42:44)";
|
|
3774
|
-
_f.__optimalization = 3;
|
|
3775
|
-
return _f;
|
|
3776
|
-
}());
|
|
3509
|
+
});
|
|
3777
3510
|
React.useEffect(function () {
|
|
3778
3511
|
translateY.value = Animated.withTiming(0, {
|
|
3779
3512
|
duration: 450,
|
|
@@ -52583,156 +52316,56 @@ var SwipeButton = function SwipeButton(_ref) {
|
|
|
52583
52316
|
|
|
52584
52317
|
var x = Animated.useSharedValue(0);
|
|
52585
52318
|
var gestureHandler = Animated.useAnimatedGestureHandler({
|
|
52586
|
-
onStart: function () {
|
|
52587
|
-
|
|
52588
|
-
|
|
52589
|
-
|
|
52590
|
-
|
|
52591
|
-
|
|
52592
|
-
|
|
52593
|
-
|
|
52594
|
-
_f.asString = "function _f(_,ctx){const{x}=jsThis._closure;{ctx.startX=x.value;}}";
|
|
52595
|
-
_f.__workletHash = 5300485379009;
|
|
52596
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (46:13)";
|
|
52597
|
-
return _f;
|
|
52598
|
-
}(),
|
|
52599
|
-
onActive: function () {
|
|
52600
|
-
var _f = function _f(event, ctx) {
|
|
52601
|
-
if (event.translationY > 60 || event.translationY < -60) {
|
|
52602
|
-
x.value = Animated.withSpring(0);
|
|
52603
|
-
} else {
|
|
52604
|
-
if (ctx.startX + event.translationX > width - WIDTH_TO_REMOVE) {
|
|
52605
|
-
x.value = width - WIDTH_FINAL;
|
|
52606
|
-
Animated.runOnJS(setToggled)(true);
|
|
52607
|
-
} else {
|
|
52608
|
-
x.value = ctx.startX + event.translationX;
|
|
52609
|
-
}
|
|
52610
|
-
}
|
|
52611
|
-
};
|
|
52612
|
-
|
|
52613
|
-
_f._closure = {
|
|
52614
|
-
x: x,
|
|
52615
|
-
withSpring: Animated.withSpring,
|
|
52616
|
-
width: width,
|
|
52617
|
-
WIDTH_TO_REMOVE: WIDTH_TO_REMOVE,
|
|
52618
|
-
WIDTH_FINAL: WIDTH_FINAL,
|
|
52619
|
-
runOnJS: Animated.runOnJS,
|
|
52620
|
-
setToggled: setToggled
|
|
52621
|
-
};
|
|
52622
|
-
_f.asString = "function _f(event,ctx){const{x,withSpring,width,WIDTH_TO_REMOVE,WIDTH_FINAL,runOnJS,setToggled}=jsThis._closure;{if(event.translationY>60||event.translationY<-60){x.value=withSpring(0);}else{if(ctx.startX+event.translationX>width-WIDTH_TO_REMOVE){x.value=width-WIDTH_FINAL;runOnJS(setToggled)(true);}else{x.value=ctx.startX+event.translationX;}}}}";
|
|
52623
|
-
_f.__workletHash = 16638915014400;
|
|
52624
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (49:14)";
|
|
52625
|
-
return _f;
|
|
52626
|
-
}(),
|
|
52627
|
-
onEnd: function () {
|
|
52628
|
-
var _f = function _f(_) {
|
|
52629
|
-
if (toggled) {
|
|
52319
|
+
onStart: function onStart(_, ctx) {
|
|
52320
|
+
ctx.startX = x.value;
|
|
52321
|
+
},
|
|
52322
|
+
onActive: function onActive(event, ctx) {
|
|
52323
|
+
if (event.translationY > 60 || event.translationY < -60) {
|
|
52324
|
+
x.value = Animated.withSpring(0);
|
|
52325
|
+
} else {
|
|
52326
|
+
if (ctx.startX + event.translationX > width - WIDTH_TO_REMOVE) {
|
|
52630
52327
|
x.value = width - WIDTH_FINAL;
|
|
52328
|
+
Animated.runOnJS(setToggled)(true);
|
|
52631
52329
|
} else {
|
|
52632
|
-
x.value =
|
|
52330
|
+
x.value = ctx.startX + event.translationX;
|
|
52633
52331
|
}
|
|
52634
|
-
}
|
|
52635
|
-
|
|
52636
|
-
|
|
52637
|
-
|
|
52638
|
-
x
|
|
52639
|
-
|
|
52640
|
-
|
|
52641
|
-
|
|
52642
|
-
|
|
52643
|
-
_f.asString = "function _f(_){const{toggled,x,width,WIDTH_FINAL,withSpring}=jsThis._closure;{if(toggled){x.value=width-WIDTH_FINAL;}else{x.value=withSpring(0);}}}";
|
|
52644
|
-
_f.__workletHash = 9307804739149;
|
|
52645
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (61:11)";
|
|
52646
|
-
return _f;
|
|
52647
|
-
}()
|
|
52332
|
+
}
|
|
52333
|
+
},
|
|
52334
|
+
onEnd: function onEnd(_) {
|
|
52335
|
+
if (toggled) {
|
|
52336
|
+
x.value = width - WIDTH_FINAL;
|
|
52337
|
+
} else {
|
|
52338
|
+
x.value = Animated.withSpring(0);
|
|
52339
|
+
}
|
|
52340
|
+
}
|
|
52648
52341
|
});
|
|
52649
52342
|
var animatedStyle = Animated.useAnimatedStyle(function () {
|
|
52650
|
-
|
|
52651
|
-
|
|
52652
|
-
|
|
52653
|
-
|
|
52654
|
-
}]
|
|
52655
|
-
};
|
|
52656
|
-
};
|
|
52657
|
-
|
|
52658
|
-
_f._closure = {
|
|
52659
|
-
x: x
|
|
52343
|
+
return {
|
|
52344
|
+
transform: [{
|
|
52345
|
+
translateX: x.value
|
|
52346
|
+
}]
|
|
52660
52347
|
};
|
|
52661
|
-
|
|
52662
|
-
_f.__workletHash = 5278836605383;
|
|
52663
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (70:41)";
|
|
52664
|
-
_f.__optimalization = 3;
|
|
52665
|
-
return _f;
|
|
52666
|
-
}());
|
|
52348
|
+
});
|
|
52667
52349
|
var InterpolateXInput = [0, width];
|
|
52668
52350
|
var colorWave = Animated.useAnimatedStyle(function () {
|
|
52669
|
-
|
|
52670
|
-
|
|
52671
|
-
|
|
52672
|
-
opacity: Animated.interpolate(x.value, InterpolateXInput, [0, 1])
|
|
52673
|
-
};
|
|
52351
|
+
return {
|
|
52352
|
+
width: x.value + BTN_WIDTH + BTN_PADDING,
|
|
52353
|
+
opacity: Animated.interpolate(x.value, InterpolateXInput, [0, 1])
|
|
52674
52354
|
};
|
|
52675
|
-
|
|
52676
|
-
_f._closure = {
|
|
52677
|
-
x: x,
|
|
52678
|
-
BTN_WIDTH: BTN_WIDTH,
|
|
52679
|
-
BTN_PADDING: BTN_PADDING,
|
|
52680
|
-
interpolate: Animated.interpolate,
|
|
52681
|
-
InterpolateXInput: InterpolateXInput
|
|
52682
|
-
};
|
|
52683
|
-
_f.asString = "function _f(){const{x,BTN_WIDTH,BTN_PADDING,interpolate,InterpolateXInput}=jsThis._closure;{return{width:x.value+BTN_WIDTH+BTN_PADDING,opacity:interpolate(x.value,InterpolateXInput,[0,1])};}}";
|
|
52684
|
-
_f.__workletHash = 1719171425649;
|
|
52685
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (82:37)";
|
|
52686
|
-
_f.__optimalization = 3;
|
|
52687
|
-
return _f;
|
|
52688
|
-
}());
|
|
52355
|
+
});
|
|
52689
52356
|
var animatedBorder = Animated.useAnimatedStyle(function () {
|
|
52690
|
-
|
|
52691
|
-
|
|
52692
|
-
borderColor: Animated.interpolateColor(x.value, [0, width - WIDTH_FINAL], [theme.color7, borderColor])
|
|
52693
|
-
};
|
|
52694
|
-
};
|
|
52695
|
-
|
|
52696
|
-
_f._closure = {
|
|
52697
|
-
interpolateColor: Animated.interpolateColor,
|
|
52698
|
-
x: x,
|
|
52699
|
-
width: width,
|
|
52700
|
-
WIDTH_FINAL: WIDTH_FINAL,
|
|
52701
|
-
theme: {
|
|
52702
|
-
color7: theme.color7
|
|
52703
|
-
},
|
|
52704
|
-
borderColor: borderColor
|
|
52357
|
+
return {
|
|
52358
|
+
borderColor: Animated.interpolateColor(x.value, [0, width - WIDTH_FINAL], [theme.color7, borderColor])
|
|
52705
52359
|
};
|
|
52706
|
-
|
|
52707
|
-
_f.__workletHash = 2946001185610;
|
|
52708
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (89:42)";
|
|
52709
|
-
_f.__optimalization = 2;
|
|
52710
|
-
return _f;
|
|
52711
|
-
}());
|
|
52360
|
+
});
|
|
52712
52361
|
var animatedText = Animated.useAnimatedStyle(function () {
|
|
52713
|
-
|
|
52714
|
-
|
|
52715
|
-
|
|
52716
|
-
|
|
52717
|
-
|
|
52718
|
-
}]
|
|
52719
|
-
};
|
|
52362
|
+
return {
|
|
52363
|
+
opacity: Animated.interpolate(x.value, InterpolateXInput, [1, 0], Animated.Extrapolate.CLAMP),
|
|
52364
|
+
transform: [{
|
|
52365
|
+
translateX: x.value
|
|
52366
|
+
}]
|
|
52720
52367
|
};
|
|
52721
|
-
|
|
52722
|
-
_f._closure = {
|
|
52723
|
-
interpolate: Animated.interpolate,
|
|
52724
|
-
x: x,
|
|
52725
|
-
InterpolateXInput: InterpolateXInput,
|
|
52726
|
-
Extrapolate: {
|
|
52727
|
-
CLAMP: Animated.Extrapolate.CLAMP
|
|
52728
|
-
}
|
|
52729
|
-
};
|
|
52730
|
-
_f.asString = "function _f(){const{interpolate,x,InterpolateXInput,Extrapolate}=jsThis._closure;{return{opacity:interpolate(x.value,InterpolateXInput,[1,0],Extrapolate.CLAMP),transform:[{translateX:x.value}]};}}";
|
|
52731
|
-
_f.__workletHash = 460398395074;
|
|
52732
|
-
_f.__location = "/Users/tom/Desktop/GitHub/atoms/src/SlideToConfirm/index.js (99:40)";
|
|
52733
|
-
_f.__optimalization = 3;
|
|
52734
|
-
return _f;
|
|
52735
|
-
}());
|
|
52368
|
+
});
|
|
52736
52369
|
return /*#__PURE__*/React__default["default"].createElement(Wrapper$1, {
|
|
52737
52370
|
onLayout: onLayout
|
|
52738
52371
|
}, /*#__PURE__*/React__default["default"].createElement(RoundWrapper, {
|