@holper/react-native-holper-storybook 0.6.64 → 0.6.66

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.
@@ -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: 4,
13
+ borderRadius,
14
14
  flexDirection: 'row',
15
15
  justifyContent: 'center',
16
16
  alignItems: 'center',
@@ -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: 4,
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: 4,
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: 4,
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: 4,
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: 0.4,
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
+ };
@@ -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',
@@ -17,6 +19,7 @@ export const Colors = {
17
19
  blue: '#2A539C',
18
20
  // Violet
19
21
  violet: '#300049',
22
+ placeboPurple: '#F0ECFE',
20
23
  // Reds
21
24
  lightred: '#FFC1C1',
22
25
  red: '#FD4C4C',
@@ -26,6 +29,8 @@ export const Colors = {
26
29
  gold: '#D4AF37',
27
30
  };
28
31
 
32
+ export const borderRadius = 8;
33
+
29
34
  export const ConstantsWS = Object.freeze({
30
35
  HIRING: 'HIRING',
31
36
  CANCELED: 'CANCELED',
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "main": "lib/index.js",
3
3
  "name": "@holper/react-native-holper-storybook",
4
4
  "description": "A component library for Holper projects",
5
- "version": "0.6.64",
5
+ "version": "0.6.66",
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "lib",