@holper/react-native-holper-storybook 0.6.63 → 0.6.65
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/lib/components/Button/index.js +1 -0
- package/lib/components/Button/style.js +7 -2
- package/lib/components/Card/style.js +2 -2
- package/lib/components/Input/style.js +2 -2
- package/lib/components/Select/style.js +2 -2
- package/lib/components/Textarea/style.js +2 -2
- package/lib/components/TimeOutButton/style.js +6 -6
- package/lib/configs/constants.js +4 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dimensions } from 'react-native';
|
|
2
|
-
import { Colors } from '../../configs/constants';
|
|
2
|
+
import { Colors, borderRadius } from '../../configs/constants';
|
|
3
3
|
|
|
4
4
|
const { width } = Dimensions.get('window');
|
|
5
5
|
|
|
@@ -10,7 +10,7 @@ export default {
|
|
|
10
10
|
marginVertical: 8,
|
|
11
11
|
paddingVertical: 6,
|
|
12
12
|
paddingHorizontal: 8,
|
|
13
|
-
borderRadius
|
|
13
|
+
borderRadius,
|
|
14
14
|
flexDirection: 'row',
|
|
15
15
|
justifyContent: 'center',
|
|
16
16
|
alignItems: 'center',
|
|
@@ -46,6 +46,11 @@ export default {
|
|
|
46
46
|
backgroundColor: Colors.brightblue,
|
|
47
47
|
shadowColor: Colors.brightblue,
|
|
48
48
|
},
|
|
49
|
+
lightgreen: {
|
|
50
|
+
borderColor: Colors.lightgreen,
|
|
51
|
+
backgroundColor: Colors.lightgreen,
|
|
52
|
+
shadowColor: Colors.lightgreen,
|
|
53
|
+
},
|
|
49
54
|
inverted: {
|
|
50
55
|
borderColor: Colors.violet,
|
|
51
56
|
backgroundColor: Colors.violet,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dimensions, Platform } from 'react-native';
|
|
2
|
-
import { Colors } from '../../configs/constants';
|
|
2
|
+
import { Colors, borderRadius } from '../../configs/constants';
|
|
3
3
|
|
|
4
4
|
const { width } = Dimensions.get('window');
|
|
5
5
|
const isAndroid = Platform.OS === 'android';
|
|
@@ -13,7 +13,7 @@ export default {
|
|
|
13
13
|
minWidth: 220,
|
|
14
14
|
paddingVertical: 6,
|
|
15
15
|
paddingHorizontal: 8,
|
|
16
|
-
borderRadius
|
|
16
|
+
borderRadius,
|
|
17
17
|
justifyContent: 'center',
|
|
18
18
|
alignItems: 'center',
|
|
19
19
|
alignSelf: 'center',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dimensions } from 'react-native';
|
|
2
|
-
import { Colors } from '../../configs/constants';
|
|
2
|
+
import { Colors, borderRadius } from '../../configs/constants';
|
|
3
3
|
|
|
4
4
|
const { width } = Dimensions.get('window');
|
|
5
5
|
|
|
@@ -7,7 +7,7 @@ export default {
|
|
|
7
7
|
input: {
|
|
8
8
|
height: 50,
|
|
9
9
|
width: width - 80,
|
|
10
|
-
borderRadius
|
|
10
|
+
borderRadius,
|
|
11
11
|
borderWidth: 1,
|
|
12
12
|
paddingHorizontal: 20,
|
|
13
13
|
color: Colors.darkblue,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dimensions } from 'react-native';
|
|
2
|
-
import { Colors } from '../../configs/constants';
|
|
2
|
+
import { Colors, borderRadius } from '../../configs/constants';
|
|
3
3
|
|
|
4
4
|
const { width } = Dimensions.get('window');
|
|
5
5
|
|
|
@@ -29,7 +29,7 @@ const fontStyle = {
|
|
|
29
29
|
const basicStyle = {
|
|
30
30
|
height: 50,
|
|
31
31
|
width: '100%',
|
|
32
|
-
borderRadius
|
|
32
|
+
borderRadius,
|
|
33
33
|
borderWidth: 1,
|
|
34
34
|
paddingHorizontal: 10,
|
|
35
35
|
backgroundColor: Colors.white,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Dimensions } from 'react-native';
|
|
2
|
-
import { Colors } from '../../configs/constants';
|
|
2
|
+
import { Colors, borderRadius } from '../../configs/constants';
|
|
3
3
|
|
|
4
4
|
const { width } = Dimensions.get('window');
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
textarea: {
|
|
8
|
-
borderRadius
|
|
8
|
+
borderRadius,
|
|
9
9
|
borderWidth: 1,
|
|
10
10
|
paddingHorizontal: 10,
|
|
11
11
|
paddingVertical: 10,
|
|
@@ -8,7 +8,7 @@ export default {
|
|
|
8
8
|
button: {
|
|
9
9
|
margin: 8,
|
|
10
10
|
height: 50,
|
|
11
|
-
overflow: 'hidden'
|
|
11
|
+
overflow: 'hidden',
|
|
12
12
|
},
|
|
13
13
|
// Button background
|
|
14
14
|
buttonBg: {
|
|
@@ -23,9 +23,9 @@ export default {
|
|
|
23
23
|
backgroundColor: Colors.lightgreen,
|
|
24
24
|
shadowColor: Colors.lightgreen,
|
|
25
25
|
shadowOffset: { width: 0, height: 4 },
|
|
26
|
-
shadowOpacity:
|
|
26
|
+
shadowOpacity: 0.4,
|
|
27
27
|
shadowRadius: 3,
|
|
28
|
-
elevation: 5
|
|
28
|
+
elevation: 5,
|
|
29
29
|
},
|
|
30
30
|
// Button overlays
|
|
31
31
|
buttonOverlay: {
|
|
@@ -36,6 +36,6 @@ export default {
|
|
|
36
36
|
buttonOverlayWarning: {
|
|
37
37
|
position: 'absolute',
|
|
38
38
|
left: -10,
|
|
39
|
-
backgroundColor: Colors.red
|
|
40
|
-
}
|
|
41
|
-
}
|
|
39
|
+
backgroundColor: Colors.red,
|
|
40
|
+
},
|
|
41
|
+
};
|
package/lib/configs/constants.js
CHANGED
|
@@ -5,6 +5,8 @@ export const Colors = {
|
|
|
5
5
|
gray: '#D0D0D0',
|
|
6
6
|
dimgray: '#CFCFCF',
|
|
7
7
|
darkgray: '#2E3640',
|
|
8
|
+
whiteice: '#E7EAEE',
|
|
9
|
+
whitepearl: '#F7F8F9',
|
|
8
10
|
// Greens
|
|
9
11
|
lightgreen: '#64FFA5',
|
|
10
12
|
green: '#3FE384',
|
|
@@ -26,6 +28,8 @@ export const Colors = {
|
|
|
26
28
|
gold: '#D4AF37',
|
|
27
29
|
};
|
|
28
30
|
|
|
31
|
+
export const borderRadius = 8;
|
|
32
|
+
|
|
29
33
|
export const ConstantsWS = Object.freeze({
|
|
30
34
|
HIRING: 'HIRING',
|
|
31
35
|
CANCELED: 'CANCELED',
|