@servesall/atoms 1.1.16 → 1.1.19

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.
Files changed (46) hide show
  1. package/dist/bundle.cjs.js +165 -60
  2. package/dist/bundle.esm.js +163 -62
  3. package/dist/bundle.umd.js +165 -60
  4. package/package.json +5 -4
  5. package/src/Buttons/RoundButton/RoundButton.style.js +11 -1
  6. package/src/Buttons/RoundedButton/RoundedButton.style.js +11 -1
  7. package/src/Inputs/InputNormal/index.js +26 -1
  8. package/src/Layout/BorderBottom.js +10 -0
  9. package/src/Layout/BorderBox.js +8 -0
  10. package/src/Layout/BorderTop.js +8 -0
  11. package/src/Layout/Box.js +1 -1
  12. package/src/Layout/Center.js +7 -7
  13. package/src/Layout/CenterLeft.js +7 -7
  14. package/src/Layout/CenterRight.js +7 -7
  15. package/src/Layout/ImageWrapper.js +10 -0
  16. package/src/Layout/Layout.style.js +51 -25
  17. package/src/Layout/Margin.js +7 -7
  18. package/src/Layout/MarginBottom.js +7 -7
  19. package/src/Layout/MarginHorizontal.js +7 -7
  20. package/src/Layout/MarginLeft.js +1 -1
  21. package/src/Layout/MarginRight.js +1 -1
  22. package/src/Layout/MarginTop.js +1 -1
  23. package/src/Layout/MarginVertical.js +7 -7
  24. package/src/Layout/Padding.js +7 -7
  25. package/src/Layout/PaddingBottom.js +1 -1
  26. package/src/Layout/PaddingHorizontal.js +7 -7
  27. package/src/Layout/PaddingLeft.js +1 -1
  28. package/src/Layout/PaddingRight.js +1 -1
  29. package/src/Layout/PaddingTop.js +1 -1
  30. package/src/Layout/PaddingVertical.js +7 -7
  31. package/src/Layout/RoundedTopBox.js +1 -1
  32. package/src/Layout/Stretch.js +7 -7
  33. package/src/Layout/WebSmallWrapper.js +7 -8
  34. package/src/Layout/index.js +8 -0
  35. package/src/SlideToConfirm/Swipe.style.js +1 -1
  36. package/src/SlideToConfirm/index.js +13 -2
  37. package/src/SplashScreen/SplashScreen.style.js +6 -0
  38. package/src/SplashScreen/assets/bootsplash_logo.png +0 -0
  39. package/src/SplashScreen/assets/bootsplash_logo@1,5x.png +0 -0
  40. package/src/SplashScreen/assets/bootsplash_logo@2x.png +0 -0
  41. package/src/SplashScreen/assets/bootsplash_logo@3x.png +0 -0
  42. package/src/SplashScreen/assets/bootsplash_logo@4x.png +0 -0
  43. package/src/SplashScreen/assets/bootsplash_manifest.json +7 -0
  44. package/src/SplashScreen/assets/penguinOriginal.svg +20 -0
  45. package/src/SplashScreen/index.js +69 -0
  46. package/src/index.js +10 -0
@@ -21,6 +21,10 @@ import FullScreen from "./FullScreen";
21
21
  import WebSmallWrapper from "./WebSmallWrapper";
22
22
  import Box from "./Box";
23
23
  import RoundedTopBox from "./RoundedTopBox";
24
+ import BorderBottom from "./BorderBottom";
25
+ import BorderTop from "./BorderTop";
26
+ import BorderBox from "./BorderBox";
27
+ import ImageWrapper from "./ImageWrapper";
24
28
 
25
29
  export {
26
30
  Center,
@@ -46,4 +50,8 @@ export {
46
50
  WebSmallWrapper,
47
51
  Box,
48
52
  RoundedTopBox,
53
+ BorderBottom,
54
+ BorderTop,
55
+ BorderBox,
56
+ ImageWrapper,
49
57
  };
@@ -14,7 +14,7 @@ export const RoundWrapper = styled(Animated.View)`
14
14
  ${(props) => props.style};
15
15
  `;
16
16
 
17
- export const RoundSlider = styled.View`
17
+ export const RoundSlider = styled(Animated.View)`
18
18
  width: 62px;
19
19
  height: 52px;
20
20
  background-color: ${(props) => props.theme.color1};
@@ -114,7 +114,18 @@ const SwipeButton = ({
114
114
 
115
115
  return (
116
116
  <Wrapper onLayout={onLayout}>
117
- <RoundWrapper style={[animatedBorder]}>
117
+ <Animated.View
118
+ style={[
119
+ animatedBorder,
120
+ {
121
+ width: "100%",
122
+ borderRadius: parseInt(theme.borderRadiusMedium, 10),
123
+ overflow: "hidden",
124
+ padding: 8,
125
+ borderWidth: 2,
126
+ },
127
+ ]}
128
+ >
118
129
  <Animated.View
119
130
  style={[
120
131
  colorWave,
@@ -150,7 +161,7 @@ const SwipeButton = ({
150
161
  </RoundSlider>
151
162
  </Animated.View>
152
163
  </PanGestureHandler>
153
- </RoundWrapper>
164
+ </Animated.View>
154
165
  </Wrapper>
155
166
  );
156
167
  };
@@ -0,0 +1,6 @@
1
+ import styled from "styled-components/native";
2
+
3
+ export const Container = styled.View`
4
+ background-color: ${(props) => props.theme.color1};
5
+ flex: 1;
6
+ `;
@@ -0,0 +1,7 @@
1
+ {
2
+ "background": "#FFFFFF",
3
+ "logo": {
4
+ "width": 100,
5
+ "height": 97
6
+ }
7
+ }
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="117px" height="113px" viewBox="0 0 117 113" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <!-- Generator: Sketch 63 (92445) - https://sketch.com -->
4
+ <title>Group 2</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7
+ <g id="Group" transform="translate(-4.000000, 0.000000)" fill-rule="nonzero">
8
+ <g id="Group-2">
9
+ <g transform="translate(4.000000, 0.000000)">
10
+ <path d="M93,37 L115.038115,49.9970209 C117.698501,51.5664791 117.641518,55.4027364 114.938395,56.8945162 L93,69" id="Fill-1" fill="#ECBD65"></path>
11
+ <path d="M13.3056744,113 L82.6943256,113 C90.0415252,113 96,107.097393 96,99.8151823 L96,47.5631385 C96,21.2947904 74.5100141,0 47.9991188,0 L47.9991188,0 C21.4899859,0 0,21.2947904 0,47.5631385 L0,99.8151823 C0,107.097393 5.9567125,113 13.3056744,113" id="Fill-3" fill="#2D3436"></path>
12
+ <path d="M49,45.4177434 L49,95.3935959 C49,99.0427149 51.9719953,102 55.6371062,102 L81.3628938,102 C85.0280047,102 88,99.0427149 88,95.3935959 L88,46.3378651 C88,35.2754929 78.9002334,25.619443 67.7963827,26.0115403 C62.6925321,26.1927764 58.0892649,28.3257858 54.7129522,31.6873668 C51.1808635,35.204044 49,40.0555948 49,45.4177434" id="Fill-5" fill="#FFFFFF"></path>
13
+ <path d="M61,46 C61,49.8657244 64.1346712,53 68.0008835,53 C71.8670958,53 75,49.8657244 75,46 C75,42.1342756 71.8670958,39 68.0008835,39 C64.1346712,39 61,42.1342756 61,46" id="Fill-7" fill="#2D3436"></path>
14
+ <path d="M109.394929,73.4127436 L95.5342956,81.3603424 C93.4885681,82.533138 93.4885681,85.466862 95.5342956,86.6396576 L109.394929,94.5872564 C111.440657,95.760052 114,94.2940575 114,91.9467313 L114,76.0532687 C114,73.7059425 111.440657,72.239948 109.394929,73.4127436" id="Fill-9" fill="#2D3436"></path>
15
+ <path d="M74.8896913,73.4394613 L88.3698093,81.189527 C90.5433969,82.4382364 90.5433969,85.5617636 88.3698093,86.810473 L74.8896913,94.5605387 C72.7161037,95.809248 70,94.2483613 70,91.7491888 L70,76.2508112 C70,73.7516387 72.7161037,72.190752 74.8896913,73.4394613" id="Fill-11" fill="#2D3436"></path>
16
+ </g>
17
+ </g>
18
+ </g>
19
+ </g>
20
+ </svg>
@@ -0,0 +1,69 @@
1
+ import React, { useState } from "react";
2
+ import { Animated, Image, Easing, StatusBar } from "react-native";
3
+ import BootSplash from "react-native-bootsplash";
4
+ import bootsplash_logo from "./assets/bootsplash_logo.png";
5
+ import bootsplash_manifest from "./assets/bootsplash_manifest.json";
6
+ import { Container } from "./SplashScreen.style";
7
+ import { theme } from "../Theme/definitions";
8
+
9
+ const AnimatedBootSplash = ({ onAnimationEnd }) => {
10
+ const [opacity] = useState(() => new Animated.Value(0));
11
+
12
+ const { container, logo /*, brand */ } = BootSplash.useHideAnimation({
13
+ manifest: bootsplash_manifest,
14
+ logo: { uri: bootsplash_logo },
15
+ // darkLogo: require("../assets/bootsplash_dark_logo.png"),
16
+ // brand: require("../assets/bootsplash_brand.png"),
17
+ // darkBrand: require("../assets/bootsplash_dark_brand.png"),
18
+ statusBarTranslucent: true,
19
+ navigationBarTranslucent: false,
20
+ animate: () => {
21
+ // Perform animations and call onAnimationEnd
22
+ Animated.timing(opacity, {
23
+ useNativeDriver: true,
24
+ toValue: 800,
25
+ duration: 250,
26
+ easing: Easing.back(),
27
+ }).start(() => {
28
+ onAnimationEnd();
29
+ });
30
+ },
31
+ });
32
+
33
+ return (
34
+ <Animated.View
35
+ {...container}
36
+ style={[
37
+ container.style,
38
+ {
39
+ transform: [
40
+ {
41
+ translateY: opacity,
42
+ },
43
+ ],
44
+ },
45
+ ]}
46
+ >
47
+ <Image {...logo} />
48
+ {/* <Image {...brand} /> */}
49
+ </Animated.View>
50
+ );
51
+ };
52
+
53
+ export default function SplashScreen({ children }) {
54
+ const [visible, setVisible] = useState(true);
55
+
56
+ return (
57
+ <Container>
58
+ <StatusBar backgroundColor={theme.color1} barStyle="dark-content" />
59
+ {visible && (
60
+ <AnimatedBootSplash
61
+ onAnimationEnd={() => {
62
+ setVisible(false);
63
+ }}
64
+ />
65
+ )}
66
+ {!visible && children}
67
+ </Container>
68
+ );
69
+ }
package/src/index.js CHANGED
@@ -24,6 +24,10 @@ import {
24
24
  WebSmallWrapper,
25
25
  Box,
26
26
  RoundedTopBox,
27
+ BorderBottom,
28
+ BorderTop,
29
+ BorderBox,
30
+ ImageWrapper,
27
31
  } from "./Layout";
28
32
  import {
29
33
  Input,
@@ -52,6 +56,7 @@ import Switch from "./Switch";
52
56
  import SwipeButton from "./SlideToConfirm";
53
57
  import ErrorText from "./ErrorText";
54
58
  import CountryList from "./CountryFlatList";
59
+ //import SplashScreen from "./SplashScreen";
55
60
 
56
61
  export {
57
62
  ThemeWrapper,
@@ -86,6 +91,10 @@ export {
86
91
  WebSmallWrapper,
87
92
  Box,
88
93
  RoundedTopBox,
94
+ BorderBottom,
95
+ BorderTop,
96
+ BorderBox,
97
+ ImageWrapper,
89
98
  Input,
90
99
  InputNormal,
91
100
  AnimatedPlaceholder,
@@ -109,4 +118,5 @@ export {
109
118
  ErrorText,
110
119
  AnimatedRoundedButton,
111
120
  CountryList,
121
+ //SplashScreen,
112
122
  };