react-native-package-fast 0.1.1 → 0.1.3
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/package.json +3 -2
- package/src/module/cores/ButtonApp.js +45 -0
- package/src/module/cores/DeviceUtils.js +2 -28
- package/src/module/cores/ImageApp.js +45 -0
- package/src/module/cores/InputApp.js +16 -0
- package/src/module/cores/TextApp.js +6 -103
- package/src/module/cores/Utils.js +392 -0
- package/src/module/cores/ViewApp.js +19 -0
- package/src/module/index.js +5 -1
- package/src/typescript/cores/ButtonApp.d.ts +5 -0
- package/src/typescript/cores/DeviceUtils.d.ts +4 -0
- package/src/typescript/cores/ImageApp.d.ts +5 -0
- package/src/typescript/cores/InputApp.d.ts +5 -0
- package/src/typescript/cores/TextApp.d.ts +5 -0
- package/src/typescript/cores/Utils.d.ts +355 -0
- package/src/typescript/cores/ViewApp.d.ts +5 -0
- package/src/typescript/index.d.ts +8 -0
- package/src/cores/DeviceUtils.d.ts +0 -5
- package/src/cores/DeviceUtils.d.ts.map +0 -1
- package/src/cores/TextApp.d.ts +0 -26
- package/src/cores/TextApp.d.ts.map +0 -1
- package/src/index.d.ts +0 -4
- package/src/index.d.ts.map +0 -1
- package/src/module/cores/DeviceUtils.js.map +0 -1
- package/src/module/cores/TextApp.js.map +0 -1
- package/src/module/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { TouchableOpacity } from 'react-native';
|
|
4
|
+
import TextApp from './TextApp';
|
|
5
|
+
import { ButtonAppStyles, parseStyles } from './Utils';
|
|
6
|
+
const ButtonApp = props => {
|
|
7
|
+
const {
|
|
8
|
+
title,
|
|
9
|
+
children,
|
|
10
|
+
propsText,
|
|
11
|
+
normal,
|
|
12
|
+
disable,
|
|
13
|
+
whiteNormal,
|
|
14
|
+
grayNormal
|
|
15
|
+
} = props;
|
|
16
|
+
let _propsText = propsText;
|
|
17
|
+
let styleAll = parseStyles({
|
|
18
|
+
passStyle: ['flex', 'width', 'height'],
|
|
19
|
+
styles: ButtonAppStyles,
|
|
20
|
+
props
|
|
21
|
+
});
|
|
22
|
+
if (normal || whiteNormal) {
|
|
23
|
+
_propsText = {
|
|
24
|
+
..._propsText,
|
|
25
|
+
h3: true,
|
|
26
|
+
black: true
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
if (disable || grayNormal) {
|
|
30
|
+
_propsText = {
|
|
31
|
+
..._propsText,
|
|
32
|
+
h3: true,
|
|
33
|
+
style: {
|
|
34
|
+
color: '#686868'
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
return /*#__PURE__*/React.createElement(TouchableOpacity, _extends({
|
|
39
|
+
disabled: disable
|
|
40
|
+
}, props, {
|
|
41
|
+
style: styleAll
|
|
42
|
+
}), /*#__PURE__*/React.createElement(TextApp, _propsText, title || children));
|
|
43
|
+
};
|
|
44
|
+
export default ButtonApp;
|
|
45
|
+
//# sourceMappingURL=ButtonApp.js.map
|
|
@@ -3,37 +3,11 @@ const {
|
|
|
3
3
|
width: widthScreen,
|
|
4
4
|
height: heightScreen
|
|
5
5
|
} = Dimensions.get('window');
|
|
6
|
-
const parseStyles = _ref => {
|
|
7
|
-
var _Object$keys;
|
|
8
|
-
let {
|
|
9
|
-
passStyle,
|
|
10
|
-
styles,
|
|
11
|
-
props
|
|
12
|
-
} = _ref;
|
|
13
|
-
let styleAll = (styles === null || styles === void 0 ? void 0 : styles.default) || {};
|
|
14
|
-
(_Object$keys = Object.keys(props)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.map(_item => {
|
|
15
|
-
if (passStyle !== null && passStyle !== void 0 && passStyle.includes(_item)) {
|
|
16
|
-
styleAll = {
|
|
17
|
-
...styleAll,
|
|
18
|
-
[_item]: props === null || props === void 0 ? void 0 : props[_item]
|
|
19
|
-
};
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
if (Object.keys(styles).includes(_item) && props !== null && props !== void 0 && props[_item]) {
|
|
23
|
-
styleAll = {
|
|
24
|
-
...styleAll,
|
|
25
|
-
...(styles === null || styles === void 0 ? void 0 : styles[_item])
|
|
26
|
-
};
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
return styleAll;
|
|
31
|
-
};
|
|
32
6
|
const RFValueHorizontal = function (fontSize) {
|
|
33
|
-
let standardScreenHeight = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
7
|
+
let standardScreenHeight = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : widthScreen;
|
|
34
8
|
const heightPercent = Math.round(fontSize * widthScreen / standardScreenHeight);
|
|
35
9
|
return heightPercent > fontSize + 5 ? fontSize + 5 : heightPercent;
|
|
36
10
|
};
|
|
37
11
|
export const ScaleSize = RFValueHorizontal;
|
|
38
|
-
export { widthScreen, heightScreen
|
|
12
|
+
export { widthScreen, heightScreen };
|
|
39
13
|
//# sourceMappingURL=DeviceUtils.js.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Image } from 'react-native';
|
|
4
|
+
import { ImageAppStyles, parseStyles } from './Utils';
|
|
5
|
+
import { ScaleSize } from './DeviceUtils';
|
|
6
|
+
const ImageApp = props => {
|
|
7
|
+
const {
|
|
8
|
+
size,
|
|
9
|
+
source,
|
|
10
|
+
ratio,
|
|
11
|
+
color
|
|
12
|
+
} = props;
|
|
13
|
+
let styleAll = parseStyles({
|
|
14
|
+
passStyle: ['flex', 'width', 'height', 'ratio'],
|
|
15
|
+
styles: ImageAppStyles,
|
|
16
|
+
props
|
|
17
|
+
});
|
|
18
|
+
if (size) {
|
|
19
|
+
styleAll = {
|
|
20
|
+
...styleAll,
|
|
21
|
+
width: ScaleSize(size),
|
|
22
|
+
height: ScaleSize(size)
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
if (ratio) {
|
|
26
|
+
styleAll = {
|
|
27
|
+
...styleAll,
|
|
28
|
+
aspectRatio: ratio
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
if (color) {
|
|
32
|
+
styleAll = {
|
|
33
|
+
...styleAll,
|
|
34
|
+
tintColor: color
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
return /*#__PURE__*/React.createElement(Image, _extends({}, props, {
|
|
38
|
+
style: styleAll,
|
|
39
|
+
source: typeof source === 'string' ? {
|
|
40
|
+
uri: source
|
|
41
|
+
} : source
|
|
42
|
+
}));
|
|
43
|
+
};
|
|
44
|
+
export default ImageApp;
|
|
45
|
+
//# sourceMappingURL=ImageApp.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { TextInput } from 'react-native';
|
|
4
|
+
import { InputAppStyles, parseStyles } from './Utils';
|
|
5
|
+
const InputApp = props => {
|
|
6
|
+
let styleAll = parseStyles({
|
|
7
|
+
passStyle: ['flex', 'width', 'height'],
|
|
8
|
+
styles: InputAppStyles,
|
|
9
|
+
props
|
|
10
|
+
});
|
|
11
|
+
return /*#__PURE__*/React.createElement(TextInput, _extends({}, props, {
|
|
12
|
+
style: styleAll
|
|
13
|
+
}));
|
|
14
|
+
};
|
|
15
|
+
export default InputApp;
|
|
16
|
+
//# sourceMappingURL=InputApp.js.map
|
|
@@ -1,118 +1,21 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
import { StyleSheet, Text } from 'react-native';
|
|
3
2
|
import React from 'react';
|
|
4
|
-
import {
|
|
3
|
+
import { Text } from 'react-native';
|
|
4
|
+
import { parseStyles } from './Utils';
|
|
5
|
+
import { TextAppStyles } from './Utils';
|
|
5
6
|
const TextApp = props => {
|
|
6
|
-
var _newTitle$toLocaleUpp;
|
|
7
7
|
const {
|
|
8
8
|
title,
|
|
9
|
-
children
|
|
10
|
-
upper
|
|
9
|
+
children
|
|
11
10
|
} = props;
|
|
12
11
|
let styleAll = parseStyles({
|
|
13
12
|
passStyle: ['flex', 'width', 'height'],
|
|
14
|
-
styles,
|
|
13
|
+
styles: TextAppStyles,
|
|
15
14
|
props
|
|
16
15
|
});
|
|
17
|
-
//_STYLE_OTHER
|
|
18
|
-
|
|
19
|
-
const newTitle = title || children;
|
|
20
|
-
if (!newTitle && newTitle === '') return null;
|
|
21
16
|
return /*#__PURE__*/React.createElement(Text, _extends({}, props, {
|
|
22
17
|
style: styleAll
|
|
23
|
-
}),
|
|
18
|
+
}), title || children);
|
|
24
19
|
};
|
|
25
|
-
const styles = StyleSheet.create({
|
|
26
|
-
'default': {
|
|
27
|
-
fontSize: ScaleSize(14),
|
|
28
|
-
lineHeight: ScaleSize(16)
|
|
29
|
-
},
|
|
30
|
-
'black': {
|
|
31
|
-
color: '#000000'
|
|
32
|
-
},
|
|
33
|
-
'grey': {
|
|
34
|
-
color: '#00000080'
|
|
35
|
-
},
|
|
36
|
-
'white': {
|
|
37
|
-
color: '#FFFFFF'
|
|
38
|
-
},
|
|
39
|
-
'border': {
|
|
40
|
-
textShadowColor: '#FFFFFF',
|
|
41
|
-
textShadowOffset: {
|
|
42
|
-
width: ScaleSize(1),
|
|
43
|
-
height: ScaleSize(1)
|
|
44
|
-
},
|
|
45
|
-
textShadowRadius: ScaleSize(0)
|
|
46
|
-
},
|
|
47
|
-
'line': {
|
|
48
|
-
textDecorationLine: 'underline'
|
|
49
|
-
},
|
|
50
|
-
'body': {
|
|
51
|
-
marginLeft: 4,
|
|
52
|
-
fontSize: 14,
|
|
53
|
-
fontWeight: '500',
|
|
54
|
-
color: '#969696'
|
|
55
|
-
},
|
|
56
|
-
'border-bl': {
|
|
57
|
-
textShadowColor: '#000000',
|
|
58
|
-
textShadowOffset: {
|
|
59
|
-
width: ScaleSize(2),
|
|
60
|
-
height: ScaleSize(2)
|
|
61
|
-
},
|
|
62
|
-
textShadowRadius: ScaleSize(2)
|
|
63
|
-
},
|
|
64
|
-
'b1': {
|
|
65
|
-
fontSize: ScaleSize(56),
|
|
66
|
-
lineHeight: ScaleSize(58)
|
|
67
|
-
},
|
|
68
|
-
'b5': {
|
|
69
|
-
fontSize: ScaleSize(26),
|
|
70
|
-
lineHeight: ScaleSize(28)
|
|
71
|
-
},
|
|
72
|
-
'h1': {
|
|
73
|
-
fontSize: ScaleSize(20),
|
|
74
|
-
lineHeight: ScaleSize(22)
|
|
75
|
-
},
|
|
76
|
-
'h2': {
|
|
77
|
-
fontSize: ScaleSize(18),
|
|
78
|
-
lineHeight: ScaleSize(20)
|
|
79
|
-
},
|
|
80
|
-
'h3': {
|
|
81
|
-
fontSize: ScaleSize(16),
|
|
82
|
-
lineHeight: ScaleSize(18)
|
|
83
|
-
},
|
|
84
|
-
'h4': {
|
|
85
|
-
fontSize: ScaleSize(14),
|
|
86
|
-
lineHeight: ScaleSize(16)
|
|
87
|
-
},
|
|
88
|
-
'h5': {
|
|
89
|
-
fontSize: ScaleSize(12),
|
|
90
|
-
lineHeight: ScaleSize(14)
|
|
91
|
-
},
|
|
92
|
-
'h6': {
|
|
93
|
-
fontSize: ScaleSize(10),
|
|
94
|
-
lineHeight: ScaleSize(12)
|
|
95
|
-
},
|
|
96
|
-
'h7': {
|
|
97
|
-
fontSize: ScaleSize(9),
|
|
98
|
-
lineHeight: ScaleSize(11)
|
|
99
|
-
},
|
|
100
|
-
'bold': {
|
|
101
|
-
fontWeight: 'bold'
|
|
102
|
-
},
|
|
103
|
-
'thin': {
|
|
104
|
-
fontWeight: '100'
|
|
105
|
-
},
|
|
106
|
-
'medium': {
|
|
107
|
-
fontWeight: '300'
|
|
108
|
-
},
|
|
109
|
-
'center': {
|
|
110
|
-
textAlign: 'center',
|
|
111
|
-
textAlignVertical: 'center'
|
|
112
|
-
},
|
|
113
|
-
'left': {
|
|
114
|
-
textAlign: 'left'
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
20
|
export default TextApp;
|
|
118
21
|
//# sourceMappingURL=TextApp.js.map
|
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
import { ScaleSize } from './DeviceUtils';
|
|
3
|
+
const colors = {
|
|
4
|
+
orange: '#EE780C',
|
|
5
|
+
yellow: '#FEBD00',
|
|
6
|
+
grey: '#9C9C9C',
|
|
7
|
+
black: '#303030',
|
|
8
|
+
white: '#ffffff',
|
|
9
|
+
Yellow: '#FEBD00',
|
|
10
|
+
Red: '#E42939',
|
|
11
|
+
Orange: '#EE780C',
|
|
12
|
+
Gray1: '#5C5C5C',
|
|
13
|
+
Gray2: '#C4C4C4',
|
|
14
|
+
Gray3: '#D1D1D1',
|
|
15
|
+
Gray4: '#E0E0E0',
|
|
16
|
+
Gray5: '#575757',
|
|
17
|
+
Gray6: '#D8D8D8',
|
|
18
|
+
Gray7: '#747474',
|
|
19
|
+
Gray8: '#D9D9D9',
|
|
20
|
+
Gray9: '#A8A8A8',
|
|
21
|
+
Gray10: '#FAFAFA',
|
|
22
|
+
Gray11: '#686868',
|
|
23
|
+
Gray12: '#F4F4F4',
|
|
24
|
+
Gray13: '#9C9C9C',
|
|
25
|
+
Gray14: '#B0B0B0',
|
|
26
|
+
Gray15: '#595959',
|
|
27
|
+
Gray16: '#E3E3E3',
|
|
28
|
+
Gray17: '#ACACAC',
|
|
29
|
+
Gray18: '#E0E0E0',
|
|
30
|
+
Gray19: '#E5E5E5',
|
|
31
|
+
Gray20: '#E7E7E7',
|
|
32
|
+
Black: '#000000'
|
|
33
|
+
};
|
|
34
|
+
const numStyles = [{
|
|
35
|
+
key: 'padding-',
|
|
36
|
+
func: value => ({
|
|
37
|
+
padding: ScaleSize(value)
|
|
38
|
+
})
|
|
39
|
+
}, {
|
|
40
|
+
key: 'hoz-',
|
|
41
|
+
func: value => ({
|
|
42
|
+
paddingHorizontal: ScaleSize(value)
|
|
43
|
+
})
|
|
44
|
+
}, {
|
|
45
|
+
key: 'ver-',
|
|
46
|
+
func: value => ({
|
|
47
|
+
paddingVertical: ScaleSize(value)
|
|
48
|
+
})
|
|
49
|
+
}, {
|
|
50
|
+
key: 'top-',
|
|
51
|
+
func: value => ({
|
|
52
|
+
paddingTop: ScaleSize(value)
|
|
53
|
+
})
|
|
54
|
+
}, {
|
|
55
|
+
key: 'bot-',
|
|
56
|
+
func: value => ({
|
|
57
|
+
paddingBottom: ScaleSize(value)
|
|
58
|
+
})
|
|
59
|
+
}, {
|
|
60
|
+
key: 'left-',
|
|
61
|
+
func: value => ({
|
|
62
|
+
paddingLeft: ScaleSize(value)
|
|
63
|
+
})
|
|
64
|
+
}, {
|
|
65
|
+
key: 'right-',
|
|
66
|
+
func: value => ({
|
|
67
|
+
paddingRight: ScaleSize(value)
|
|
68
|
+
})
|
|
69
|
+
}, {
|
|
70
|
+
key: 'margin-',
|
|
71
|
+
func: value => ({
|
|
72
|
+
margin: ScaleSize(value)
|
|
73
|
+
})
|
|
74
|
+
}, {
|
|
75
|
+
key: 'Hoz-',
|
|
76
|
+
func: value => ({
|
|
77
|
+
marginHorizontal: ScaleSize(value)
|
|
78
|
+
})
|
|
79
|
+
}, {
|
|
80
|
+
key: 'Ver-',
|
|
81
|
+
func: value => ({
|
|
82
|
+
marginVertical: ScaleSize(value)
|
|
83
|
+
})
|
|
84
|
+
}, {
|
|
85
|
+
key: 'Top-',
|
|
86
|
+
func: value => ({
|
|
87
|
+
marginTop: ScaleSize(value)
|
|
88
|
+
})
|
|
89
|
+
}, {
|
|
90
|
+
key: 'Bot-',
|
|
91
|
+
func: value => ({
|
|
92
|
+
marginBottom: ScaleSize(value)
|
|
93
|
+
})
|
|
94
|
+
}, {
|
|
95
|
+
key: 'Left-',
|
|
96
|
+
func: value => ({
|
|
97
|
+
marginLeft: ScaleSize(value)
|
|
98
|
+
})
|
|
99
|
+
}, {
|
|
100
|
+
key: 'Right-',
|
|
101
|
+
func: value => ({
|
|
102
|
+
marginRight: ScaleSize(value)
|
|
103
|
+
})
|
|
104
|
+
}, {
|
|
105
|
+
key: 'radius-',
|
|
106
|
+
func: value => {
|
|
107
|
+
return {
|
|
108
|
+
borderRadius: ScaleSize(value)
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
}, {
|
|
112
|
+
key: 'ads-',
|
|
113
|
+
func: value => {
|
|
114
|
+
return {
|
|
115
|
+
position: 'absolute',
|
|
116
|
+
top: ScaleSize(value)
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
}, {
|
|
120
|
+
key: 'border-',
|
|
121
|
+
func: value => {
|
|
122
|
+
return {
|
|
123
|
+
borderWidth: ScaleSize(value)
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
}, {
|
|
127
|
+
key: 'font-',
|
|
128
|
+
func: value => {
|
|
129
|
+
return {
|
|
130
|
+
fontSize: ScaleSize(value)
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
}, {
|
|
134
|
+
key: 'line-',
|
|
135
|
+
func: value => {
|
|
136
|
+
return {
|
|
137
|
+
lineHeight: ScaleSize(value)
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
}];
|
|
141
|
+
export const parseStyles = _ref => {
|
|
142
|
+
var _Object$keys;
|
|
143
|
+
let {
|
|
144
|
+
passStyle,
|
|
145
|
+
styles,
|
|
146
|
+
props
|
|
147
|
+
} = _ref;
|
|
148
|
+
let styleAll = (styles === null || styles === void 0 ? void 0 : styles.default) || {};
|
|
149
|
+
(_Object$keys = Object.keys(props)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.map(_item => {
|
|
150
|
+
if (passStyle !== null && passStyle !== void 0 && passStyle.includes(_item)) {
|
|
151
|
+
styleAll = {
|
|
152
|
+
...styleAll,
|
|
153
|
+
[_item]: props === null || props === void 0 ? void 0 : props[_item]
|
|
154
|
+
};
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
if (Object.keys(styles).includes(_item) && props !== null && props !== void 0 && props[_item]) {
|
|
158
|
+
styleAll = {
|
|
159
|
+
...styleAll,
|
|
160
|
+
...(styles === null || styles === void 0 ? void 0 : styles[_item])
|
|
161
|
+
};
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
const numFind = numStyles.find(_value => _item === null || _item === void 0 ? void 0 : _item.includes(_value === null || _value === void 0 ? void 0 : _value.key));
|
|
165
|
+
if (numFind) {
|
|
166
|
+
const num = _item === null || _item === void 0 ? void 0 : _item.replace(numFind === null || numFind === void 0 ? void 0 : numFind.key, '');
|
|
167
|
+
if (parseInt !== null && parseInt !== void 0 && parseInt(num, 10)) {
|
|
168
|
+
styleAll = {
|
|
169
|
+
...styleAll,
|
|
170
|
+
...(numFind === null || numFind === void 0 ? void 0 : numFind.func(num))
|
|
171
|
+
};
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
return {
|
|
177
|
+
...styleAll,
|
|
178
|
+
...(props === null || props === void 0 ? void 0 : props.style)
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
const CommonStyles = StyleSheet.create({
|
|
182
|
+
topLeft: {
|
|
183
|
+
position: 'absolute',
|
|
184
|
+
top: 0,
|
|
185
|
+
left: 0
|
|
186
|
+
},
|
|
187
|
+
center: {
|
|
188
|
+
justifyContent: 'center',
|
|
189
|
+
alignItems: 'center'
|
|
190
|
+
},
|
|
191
|
+
centerItem: {
|
|
192
|
+
alignItems: 'center'
|
|
193
|
+
},
|
|
194
|
+
centerContent: {
|
|
195
|
+
justifyContent: 'center'
|
|
196
|
+
}
|
|
197
|
+
// center: { alignItems: 'center' },
|
|
198
|
+
// center: { alignSelf: 'center' },
|
|
199
|
+
});
|
|
200
|
+
|
|
201
|
+
export const ViewAppStyles = StyleSheet.create({
|
|
202
|
+
...CommonStyles,
|
|
203
|
+
Black: {
|
|
204
|
+
backgroundColor: colors.black
|
|
205
|
+
},
|
|
206
|
+
Grey: {
|
|
207
|
+
backgroundColor: colors.grey
|
|
208
|
+
},
|
|
209
|
+
White: {
|
|
210
|
+
backgroundColor: colors.white
|
|
211
|
+
},
|
|
212
|
+
Yellow: {
|
|
213
|
+
backgroundColor: colors.yellow
|
|
214
|
+
},
|
|
215
|
+
row: {
|
|
216
|
+
flexDirection: 'row'
|
|
217
|
+
},
|
|
218
|
+
wrap: {
|
|
219
|
+
flexWrap: 'wrap'
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
export const TextAppStyles = StyleSheet.create({
|
|
223
|
+
...CommonStyles,
|
|
224
|
+
//size
|
|
225
|
+
default: {
|
|
226
|
+
fontSize: ScaleSize(14),
|
|
227
|
+
lineHeight: ScaleSize(20),
|
|
228
|
+
fontFamily: 'NotoSansKR-Regular'
|
|
229
|
+
},
|
|
230
|
+
h1: {
|
|
231
|
+
fontSize: ScaleSize(20),
|
|
232
|
+
lineHeight: ScaleSize(26)
|
|
233
|
+
},
|
|
234
|
+
h2: {
|
|
235
|
+
fontSize: ScaleSize(18),
|
|
236
|
+
lineHeight: ScaleSize(24)
|
|
237
|
+
},
|
|
238
|
+
h3: {
|
|
239
|
+
fontSize: ScaleSize(16),
|
|
240
|
+
lineHeight: ScaleSize(22)
|
|
241
|
+
},
|
|
242
|
+
h4: {
|
|
243
|
+
fontSize: ScaleSize(14),
|
|
244
|
+
lineHeight: ScaleSize(20)
|
|
245
|
+
},
|
|
246
|
+
h5: {
|
|
247
|
+
fontSize: ScaleSize(12),
|
|
248
|
+
lineHeight: ScaleSize(18)
|
|
249
|
+
},
|
|
250
|
+
h6: {
|
|
251
|
+
fontSize: ScaleSize(10),
|
|
252
|
+
lineHeight: ScaleSize(16)
|
|
253
|
+
},
|
|
254
|
+
h7: {
|
|
255
|
+
fontSize: ScaleSize(9),
|
|
256
|
+
lineHeight: ScaleSize(15)
|
|
257
|
+
},
|
|
258
|
+
header: {
|
|
259
|
+
fontSize: ScaleSize(24),
|
|
260
|
+
lineHeight: ScaleSize(33)
|
|
261
|
+
},
|
|
262
|
+
//color
|
|
263
|
+
black: {
|
|
264
|
+
color: colors.black
|
|
265
|
+
},
|
|
266
|
+
grey: {
|
|
267
|
+
color: colors.grey
|
|
268
|
+
},
|
|
269
|
+
yellow: {
|
|
270
|
+
color: colors.yellow
|
|
271
|
+
},
|
|
272
|
+
white: {
|
|
273
|
+
color: colors.white
|
|
274
|
+
},
|
|
275
|
+
orange: {
|
|
276
|
+
color: colors.orange
|
|
277
|
+
},
|
|
278
|
+
Gray5: {
|
|
279
|
+
color: colors.Gray5
|
|
280
|
+
},
|
|
281
|
+
//weight
|
|
282
|
+
Bold: {
|
|
283
|
+
fontFamily: 'NotoSansKR-Black'
|
|
284
|
+
},
|
|
285
|
+
bold: {
|
|
286
|
+
fontFamily: 'NotoSansKR-Bold'
|
|
287
|
+
},
|
|
288
|
+
medium: {
|
|
289
|
+
fontFamily: 'NotoSansKR-Medium'
|
|
290
|
+
},
|
|
291
|
+
thin: {
|
|
292
|
+
fontFamily: 'NotoSansKR-Thin'
|
|
293
|
+
},
|
|
294
|
+
light: {
|
|
295
|
+
fontFamily: 'NotoSansKR-Light'
|
|
296
|
+
},
|
|
297
|
+
regular: {
|
|
298
|
+
fontFamily: 'NotoSansKR-Regular'
|
|
299
|
+
},
|
|
300
|
+
gs_light: {
|
|
301
|
+
fontFamily: 'GmarketSansTTFLight'
|
|
302
|
+
},
|
|
303
|
+
gs_bold: {
|
|
304
|
+
fontFamily: 'GmarketSansTTFBold'
|
|
305
|
+
},
|
|
306
|
+
gs_medium: {
|
|
307
|
+
fontFamily: 'GmarketSansTTFMedium'
|
|
308
|
+
},
|
|
309
|
+
//style
|
|
310
|
+
line: {
|
|
311
|
+
textDecorationLine: 'underline'
|
|
312
|
+
},
|
|
313
|
+
center: {
|
|
314
|
+
textAlign: 'center',
|
|
315
|
+
textAlignVertical: 'center'
|
|
316
|
+
},
|
|
317
|
+
left: {
|
|
318
|
+
textAlign: 'left'
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
export const ButtonAppStyles = StyleSheet.create({
|
|
322
|
+
...ViewAppStyles,
|
|
323
|
+
tabNormal: {
|
|
324
|
+
paddingHorizontal: 16,
|
|
325
|
+
paddingBottom: 7,
|
|
326
|
+
paddingTop: 6,
|
|
327
|
+
borderRadius: 50,
|
|
328
|
+
borderWidth: 1,
|
|
329
|
+
borderColor: colors.Gray2
|
|
330
|
+
},
|
|
331
|
+
normal: {
|
|
332
|
+
paddingVertical: 10,
|
|
333
|
+
alignItems: 'center',
|
|
334
|
+
justifyContent: 'center',
|
|
335
|
+
backgroundColor: colors.yellow,
|
|
336
|
+
borderRadius: 5
|
|
337
|
+
},
|
|
338
|
+
grayNormal: {
|
|
339
|
+
paddingVertical: 10,
|
|
340
|
+
alignItems: 'center',
|
|
341
|
+
justifyContent: 'center',
|
|
342
|
+
backgroundColor: '#D1D1D1',
|
|
343
|
+
borderRadius: 5
|
|
344
|
+
},
|
|
345
|
+
yellowSmall: {
|
|
346
|
+
paddingVertical: 7,
|
|
347
|
+
alignItems: 'center',
|
|
348
|
+
justifyContent: 'center',
|
|
349
|
+
backgroundColor: colors.yellow,
|
|
350
|
+
borderRadius: 50
|
|
351
|
+
},
|
|
352
|
+
whiteNormal: {
|
|
353
|
+
paddingVertical: 10,
|
|
354
|
+
alignItems: 'center',
|
|
355
|
+
justifyContent: 'center',
|
|
356
|
+
// backgroundColor: colors.white,
|
|
357
|
+
borderWidth: 1,
|
|
358
|
+
borderColor: colors.grey,
|
|
359
|
+
borderRadius: 5
|
|
360
|
+
},
|
|
361
|
+
disable: {
|
|
362
|
+
paddingVertical: 10,
|
|
363
|
+
alignItems: 'center',
|
|
364
|
+
justifyContent: 'center',
|
|
365
|
+
backgroundColor: '#D1D1D1',
|
|
366
|
+
borderRadius: 5
|
|
367
|
+
}
|
|
368
|
+
});
|
|
369
|
+
export const InputAppStyles = StyleSheet.create({
|
|
370
|
+
...CommonStyles,
|
|
371
|
+
borderType: {
|
|
372
|
+
paddingHorizontal: ScaleSize(10),
|
|
373
|
+
borderWidth: ScaleSize(1),
|
|
374
|
+
borderColor: colors.Gray2,
|
|
375
|
+
height: ScaleSize(40),
|
|
376
|
+
justifyContent: 'center',
|
|
377
|
+
borderRadius: ScaleSize(3)
|
|
378
|
+
}
|
|
379
|
+
});
|
|
380
|
+
export const ImageAppStyles = StyleSheet.create({
|
|
381
|
+
...CommonStyles,
|
|
382
|
+
contain: {
|
|
383
|
+
resizeMode: 'contain'
|
|
384
|
+
},
|
|
385
|
+
cover: {
|
|
386
|
+
resizeMode: 'cover'
|
|
387
|
+
},
|
|
388
|
+
stretch: {
|
|
389
|
+
resizeMode: 'stretch'
|
|
390
|
+
}
|
|
391
|
+
});
|
|
392
|
+
//# sourceMappingURL=Utils.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { View } from 'react-native';
|
|
4
|
+
import { ViewAppStyles, parseStyles } from './Utils';
|
|
5
|
+
const ViewApp = props => {
|
|
6
|
+
const {
|
|
7
|
+
children
|
|
8
|
+
} = props;
|
|
9
|
+
let styleAll = parseStyles({
|
|
10
|
+
passStyle: ['flex', 'width', 'height'],
|
|
11
|
+
styles: ViewAppStyles,
|
|
12
|
+
props
|
|
13
|
+
});
|
|
14
|
+
return /*#__PURE__*/React.createElement(View, _extends({}, props, {
|
|
15
|
+
style: styleAll
|
|
16
|
+
}), children);
|
|
17
|
+
};
|
|
18
|
+
export default ViewApp;
|
|
19
|
+
//# sourceMappingURL=ViewApp.js.map
|
package/src/module/index.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import TextApp from './cores/TextApp';
|
|
2
|
+
import ViewApp from './cores/ViewApp';
|
|
3
|
+
import ButtonApp from './cores/ButtonApp';
|
|
4
|
+
import ImageApp from './cores/ImageApp';
|
|
5
|
+
import InputApp from './cores/InputApp';
|
|
2
6
|
import { ScaleSize } from './cores/DeviceUtils';
|
|
3
|
-
export { TextApp, ScaleSize };
|
|
7
|
+
export { TextApp, ScaleSize, ButtonApp, ViewApp, InputApp, ImageApp };
|
|
4
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
import { ImageProps, TextInputProps, TextProps, ViewProps } from 'react-native';
|
|
2
|
+
import { TouchableOpacityProps } from 'react-native';
|
|
3
|
+
interface ByPassProps {
|
|
4
|
+
flex?: any;
|
|
5
|
+
width?: any;
|
|
6
|
+
height?: any;
|
|
7
|
+
}
|
|
8
|
+
export declare const parseStyles: ({ passStyle, styles, props }: any) => any;
|
|
9
|
+
interface CommonProps extends ByPassProps {
|
|
10
|
+
topLeft?: any;
|
|
11
|
+
center?: boolean;
|
|
12
|
+
centerItem?: boolean;
|
|
13
|
+
centerContent?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface ViewAppProps extends ViewProps, CommonProps {
|
|
16
|
+
Black?: boolean;
|
|
17
|
+
Grey?: boolean;
|
|
18
|
+
White?: boolean;
|
|
19
|
+
Yellow?: boolean;
|
|
20
|
+
row?: any;
|
|
21
|
+
wrap?: any;
|
|
22
|
+
}
|
|
23
|
+
export interface TouchAppProps extends TouchableOpacityProps, CommonProps {
|
|
24
|
+
Black?: boolean;
|
|
25
|
+
Grey?: boolean;
|
|
26
|
+
White?: boolean;
|
|
27
|
+
Yellow?: boolean;
|
|
28
|
+
row?: any;
|
|
29
|
+
wrap?: any;
|
|
30
|
+
}
|
|
31
|
+
export declare const ViewAppStyles: {
|
|
32
|
+
Black: {
|
|
33
|
+
backgroundColor: string;
|
|
34
|
+
};
|
|
35
|
+
Grey: {
|
|
36
|
+
backgroundColor: string;
|
|
37
|
+
};
|
|
38
|
+
White: {
|
|
39
|
+
backgroundColor: string;
|
|
40
|
+
};
|
|
41
|
+
Yellow: {
|
|
42
|
+
backgroundColor: string;
|
|
43
|
+
};
|
|
44
|
+
row: {
|
|
45
|
+
flexDirection: "row";
|
|
46
|
+
};
|
|
47
|
+
wrap: {
|
|
48
|
+
flexWrap: "wrap";
|
|
49
|
+
};
|
|
50
|
+
topLeft: {
|
|
51
|
+
position: "absolute";
|
|
52
|
+
top: number;
|
|
53
|
+
left: number;
|
|
54
|
+
};
|
|
55
|
+
center: {
|
|
56
|
+
justifyContent: "center";
|
|
57
|
+
alignItems: "center";
|
|
58
|
+
};
|
|
59
|
+
centerItem: {
|
|
60
|
+
alignItems: "center";
|
|
61
|
+
};
|
|
62
|
+
centerContent: {
|
|
63
|
+
justifyContent: "center";
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export interface TextAppProps extends TextProps, CommonProps {
|
|
67
|
+
h1?: boolean;
|
|
68
|
+
h2?: boolean;
|
|
69
|
+
h3?: boolean;
|
|
70
|
+
h4?: boolean;
|
|
71
|
+
h5?: boolean;
|
|
72
|
+
h6?: boolean;
|
|
73
|
+
h7?: boolean;
|
|
74
|
+
header?: boolean;
|
|
75
|
+
black?: boolean;
|
|
76
|
+
grey?: boolean;
|
|
77
|
+
white?: boolean;
|
|
78
|
+
yellow?: boolean;
|
|
79
|
+
orange?: boolean;
|
|
80
|
+
Gray5?: boolean;
|
|
81
|
+
bold?: boolean;
|
|
82
|
+
medium?: boolean;
|
|
83
|
+
thin?: boolean;
|
|
84
|
+
regular?: boolean;
|
|
85
|
+
Bold?: boolean;
|
|
86
|
+
light?: boolean;
|
|
87
|
+
gs_light?: boolean;
|
|
88
|
+
gs_bold?: boolean;
|
|
89
|
+
gs_medium?: boolean;
|
|
90
|
+
line?: boolean;
|
|
91
|
+
center?: boolean;
|
|
92
|
+
left?: boolean;
|
|
93
|
+
title?: String;
|
|
94
|
+
children?: any;
|
|
95
|
+
hardHeight?: boolean;
|
|
96
|
+
}
|
|
97
|
+
export declare const TextAppStyles: {
|
|
98
|
+
default: {
|
|
99
|
+
fontSize: any;
|
|
100
|
+
lineHeight: any;
|
|
101
|
+
fontFamily: string;
|
|
102
|
+
};
|
|
103
|
+
h1: {
|
|
104
|
+
fontSize: any;
|
|
105
|
+
lineHeight: any;
|
|
106
|
+
};
|
|
107
|
+
h2: {
|
|
108
|
+
fontSize: any;
|
|
109
|
+
lineHeight: any;
|
|
110
|
+
};
|
|
111
|
+
h3: {
|
|
112
|
+
fontSize: any;
|
|
113
|
+
lineHeight: any;
|
|
114
|
+
};
|
|
115
|
+
h4: {
|
|
116
|
+
fontSize: any;
|
|
117
|
+
lineHeight: any;
|
|
118
|
+
};
|
|
119
|
+
h5: {
|
|
120
|
+
fontSize: any;
|
|
121
|
+
lineHeight: any;
|
|
122
|
+
};
|
|
123
|
+
h6: {
|
|
124
|
+
fontSize: any;
|
|
125
|
+
lineHeight: any;
|
|
126
|
+
};
|
|
127
|
+
h7: {
|
|
128
|
+
fontSize: any;
|
|
129
|
+
lineHeight: any;
|
|
130
|
+
};
|
|
131
|
+
header: {
|
|
132
|
+
fontSize: any;
|
|
133
|
+
lineHeight: any;
|
|
134
|
+
};
|
|
135
|
+
black: {
|
|
136
|
+
color: string;
|
|
137
|
+
};
|
|
138
|
+
grey: {
|
|
139
|
+
color: string;
|
|
140
|
+
};
|
|
141
|
+
yellow: {
|
|
142
|
+
color: string;
|
|
143
|
+
};
|
|
144
|
+
white: {
|
|
145
|
+
color: string;
|
|
146
|
+
};
|
|
147
|
+
orange: {
|
|
148
|
+
color: string;
|
|
149
|
+
};
|
|
150
|
+
Gray5: {
|
|
151
|
+
color: string;
|
|
152
|
+
};
|
|
153
|
+
Bold: {
|
|
154
|
+
fontFamily: string;
|
|
155
|
+
};
|
|
156
|
+
bold: {
|
|
157
|
+
fontFamily: string;
|
|
158
|
+
};
|
|
159
|
+
medium: {
|
|
160
|
+
fontFamily: string;
|
|
161
|
+
};
|
|
162
|
+
thin: {
|
|
163
|
+
fontFamily: string;
|
|
164
|
+
};
|
|
165
|
+
light: {
|
|
166
|
+
fontFamily: string;
|
|
167
|
+
};
|
|
168
|
+
regular: {
|
|
169
|
+
fontFamily: string;
|
|
170
|
+
};
|
|
171
|
+
gs_light: {
|
|
172
|
+
fontFamily: string;
|
|
173
|
+
};
|
|
174
|
+
gs_bold: {
|
|
175
|
+
fontFamily: string;
|
|
176
|
+
};
|
|
177
|
+
gs_medium: {
|
|
178
|
+
fontFamily: string;
|
|
179
|
+
};
|
|
180
|
+
line: {
|
|
181
|
+
textDecorationLine: "underline";
|
|
182
|
+
};
|
|
183
|
+
center: {
|
|
184
|
+
textAlign: "center";
|
|
185
|
+
textAlignVertical: "center";
|
|
186
|
+
};
|
|
187
|
+
left: {
|
|
188
|
+
textAlign: "left";
|
|
189
|
+
};
|
|
190
|
+
topLeft: {
|
|
191
|
+
position: "absolute";
|
|
192
|
+
top: number;
|
|
193
|
+
left: number;
|
|
194
|
+
};
|
|
195
|
+
centerItem: {
|
|
196
|
+
alignItems: "center";
|
|
197
|
+
};
|
|
198
|
+
centerContent: {
|
|
199
|
+
justifyContent: "center";
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
export interface ButtonAppProps extends TouchAppProps {
|
|
203
|
+
title?: String;
|
|
204
|
+
children?: any;
|
|
205
|
+
propsText?: TextAppProps;
|
|
206
|
+
normal?: boolean;
|
|
207
|
+
disable?: boolean;
|
|
208
|
+
yellowSmall?: boolean;
|
|
209
|
+
whiteNormal?: boolean;
|
|
210
|
+
grayNormal?: any;
|
|
211
|
+
tabNormal?: any;
|
|
212
|
+
}
|
|
213
|
+
export declare const ButtonAppStyles: {
|
|
214
|
+
tabNormal: {
|
|
215
|
+
paddingHorizontal: number;
|
|
216
|
+
paddingBottom: number;
|
|
217
|
+
paddingTop: number;
|
|
218
|
+
borderRadius: number;
|
|
219
|
+
borderWidth: number;
|
|
220
|
+
borderColor: string;
|
|
221
|
+
};
|
|
222
|
+
normal: {
|
|
223
|
+
paddingVertical: number;
|
|
224
|
+
alignItems: "center";
|
|
225
|
+
justifyContent: "center";
|
|
226
|
+
backgroundColor: string;
|
|
227
|
+
borderRadius: number;
|
|
228
|
+
};
|
|
229
|
+
grayNormal: {
|
|
230
|
+
paddingVertical: number;
|
|
231
|
+
alignItems: "center";
|
|
232
|
+
justifyContent: "center";
|
|
233
|
+
backgroundColor: string;
|
|
234
|
+
borderRadius: number;
|
|
235
|
+
};
|
|
236
|
+
yellowSmall: {
|
|
237
|
+
paddingVertical: number;
|
|
238
|
+
alignItems: "center";
|
|
239
|
+
justifyContent: "center";
|
|
240
|
+
backgroundColor: string;
|
|
241
|
+
borderRadius: number;
|
|
242
|
+
};
|
|
243
|
+
whiteNormal: {
|
|
244
|
+
paddingVertical: number;
|
|
245
|
+
alignItems: "center";
|
|
246
|
+
justifyContent: "center";
|
|
247
|
+
borderWidth: number;
|
|
248
|
+
borderColor: string;
|
|
249
|
+
borderRadius: number;
|
|
250
|
+
};
|
|
251
|
+
disable: {
|
|
252
|
+
paddingVertical: number;
|
|
253
|
+
alignItems: "center";
|
|
254
|
+
justifyContent: "center";
|
|
255
|
+
backgroundColor: string;
|
|
256
|
+
borderRadius: number;
|
|
257
|
+
};
|
|
258
|
+
Black: {
|
|
259
|
+
backgroundColor: string;
|
|
260
|
+
};
|
|
261
|
+
Grey: {
|
|
262
|
+
backgroundColor: string;
|
|
263
|
+
};
|
|
264
|
+
White: {
|
|
265
|
+
backgroundColor: string;
|
|
266
|
+
};
|
|
267
|
+
Yellow: {
|
|
268
|
+
backgroundColor: string;
|
|
269
|
+
};
|
|
270
|
+
row: {
|
|
271
|
+
flexDirection: "row";
|
|
272
|
+
};
|
|
273
|
+
wrap: {
|
|
274
|
+
flexWrap: "wrap";
|
|
275
|
+
};
|
|
276
|
+
topLeft: {
|
|
277
|
+
position: "absolute";
|
|
278
|
+
top: number;
|
|
279
|
+
left: number;
|
|
280
|
+
};
|
|
281
|
+
center: {
|
|
282
|
+
justifyContent: "center";
|
|
283
|
+
alignItems: "center";
|
|
284
|
+
};
|
|
285
|
+
centerItem: {
|
|
286
|
+
alignItems: "center";
|
|
287
|
+
};
|
|
288
|
+
centerContent: {
|
|
289
|
+
justifyContent: "center";
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
export interface InputAppProps extends TextInputProps, CommonProps {
|
|
293
|
+
borderType?: any;
|
|
294
|
+
}
|
|
295
|
+
export declare const InputAppStyles: {
|
|
296
|
+
borderType: {
|
|
297
|
+
paddingHorizontal: any;
|
|
298
|
+
borderWidth: any;
|
|
299
|
+
borderColor: string;
|
|
300
|
+
height: any;
|
|
301
|
+
justifyContent: "center";
|
|
302
|
+
borderRadius: any;
|
|
303
|
+
};
|
|
304
|
+
topLeft: {
|
|
305
|
+
position: "absolute";
|
|
306
|
+
top: number;
|
|
307
|
+
left: number;
|
|
308
|
+
};
|
|
309
|
+
center: {
|
|
310
|
+
justifyContent: "center";
|
|
311
|
+
alignItems: "center";
|
|
312
|
+
};
|
|
313
|
+
centerItem: {
|
|
314
|
+
alignItems: "center";
|
|
315
|
+
};
|
|
316
|
+
centerContent: {
|
|
317
|
+
justifyContent: "center";
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
export interface ImageAppProps extends ImageProps, CommonProps {
|
|
321
|
+
contain?: any;
|
|
322
|
+
cover?: any;
|
|
323
|
+
stretch?: any;
|
|
324
|
+
size?: any;
|
|
325
|
+
ratio?: any;
|
|
326
|
+
color?: any;
|
|
327
|
+
}
|
|
328
|
+
export declare const ImageAppStyles: {
|
|
329
|
+
contain: {
|
|
330
|
+
resizeMode: "contain";
|
|
331
|
+
};
|
|
332
|
+
cover: {
|
|
333
|
+
resizeMode: "cover";
|
|
334
|
+
};
|
|
335
|
+
stretch: {
|
|
336
|
+
resizeMode: "stretch";
|
|
337
|
+
};
|
|
338
|
+
topLeft: {
|
|
339
|
+
position: "absolute";
|
|
340
|
+
top: number;
|
|
341
|
+
left: number;
|
|
342
|
+
};
|
|
343
|
+
center: {
|
|
344
|
+
justifyContent: "center";
|
|
345
|
+
alignItems: "center";
|
|
346
|
+
};
|
|
347
|
+
centerItem: {
|
|
348
|
+
alignItems: "center";
|
|
349
|
+
};
|
|
350
|
+
centerContent: {
|
|
351
|
+
justifyContent: "center";
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
export {};
|
|
355
|
+
//# sourceMappingURL=Utils.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import TextApp from './cores/TextApp';
|
|
2
|
+
import ViewApp from './cores/ViewApp';
|
|
3
|
+
import ButtonApp from './cores/ButtonApp';
|
|
4
|
+
import ImageApp from './cores/ImageApp';
|
|
5
|
+
import InputApp from './cores/InputApp';
|
|
6
|
+
import { ScaleSize } from './cores/DeviceUtils';
|
|
7
|
+
export { TextApp, ScaleSize, ButtonApp, ViewApp, InputApp, ImageApp };
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
declare const widthScreen: number, heightScreen: number;
|
|
2
|
-
declare const parseStyles: ({ passStyle, styles, props }: any) => any;
|
|
3
|
-
export declare const ScaleSize: (fontSize: any, standardScreenHeight?: number) => any;
|
|
4
|
-
export { widthScreen, heightScreen, parseStyles };
|
|
5
|
-
//# sourceMappingURL=DeviceUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DeviceUtils.d.ts","sourceRoot":"","sources":["../../../sources/cores/DeviceUtils.tsx"],"names":[],"mappings":"AACA,QAAA,MAAe,WAAW,UAAU,YAAY,QAA6B,CAAC;AAE9E,QAAA,MAAM,WAAW,iCAAkC,GAAG,QAarD,CAAC;AAQF,eAAO,MAAM,SAAS,aAPe,GAAG,oCAA+B,GAO7B,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC"}
|
package/src/cores/TextApp.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { TextProps } from 'react-native';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
interface TextAppProps extends TextProps {
|
|
4
|
-
title?: String;
|
|
5
|
-
upper?: boolean;
|
|
6
|
-
hardHeight?: boolean;
|
|
7
|
-
children?: any;
|
|
8
|
-
flex?: any;
|
|
9
|
-
width?: any;
|
|
10
|
-
height?: any;
|
|
11
|
-
black?: boolean;
|
|
12
|
-
grey?: boolean;
|
|
13
|
-
white?: boolean;
|
|
14
|
-
border?: boolean;
|
|
15
|
-
line?: boolean;
|
|
16
|
-
h1?: boolean;
|
|
17
|
-
h2?: boolean;
|
|
18
|
-
h3?: boolean;
|
|
19
|
-
h4?: boolean;
|
|
20
|
-
h5?: boolean;
|
|
21
|
-
h6?: boolean;
|
|
22
|
-
bold?: boolean;
|
|
23
|
-
}
|
|
24
|
-
declare const TextApp: (props: TextAppProps) => React.JSX.Element | null;
|
|
25
|
-
export default TextApp;
|
|
26
|
-
//# sourceMappingURL=TextApp.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextApp.d.ts","sourceRoot":"","sources":["../../../sources/cores/TextApp.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,YAAa,SAAQ,SAAS;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AACD,QAAA,MAAM,OAAO,UAAW,YAAY,6BAgBnC,CAAC;AAiDF,eAAe,OAAO,CAAC"}
|
package/src/index.d.ts
DELETED
package/src/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../sources/index.tsx"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Dimensions","width","widthScreen","height","heightScreen","get","parseStyles","_ref","_Object$keys","passStyle","styles","props","styleAll","default","Object","keys","map","_item","includes","RFValueHorizontal","fontSize","standardScreenHeight","arguments","length","undefined","heightPercent","Math","round","ScaleSize"],"sourceRoot":"../../../sources","sources":["cores/DeviceUtils.tsx"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,MAAM;EAAEC,KAAK,EAAEC,WAAW;EAAEC,MAAM,EAAEC;AAAa,CAAC,GAAGJ,UAAU,CAACK,GAAG,CAAC,QAAQ,CAAC;AAE7E,MAAMC,WAAW,GAAGC,IAAA,IAAuC;EAAA,IAAAC,YAAA;EAAA,IAAtC;IAAEC,SAAS;IAAEC,MAAM;IAAEC;EAAW,CAAC,GAAAJ,IAAA;EACpD,IAAIK,QAAQ,GAAG,CAAAF,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEG,OAAO,KAAI,CAAC,CAAC;EACpC,CAAAL,YAAA,GAAAM,MAAM,CAACC,IAAI,CAACJ,KAAK,CAAC,cAAAH,YAAA,uBAAlBA,YAAA,CAAoBQ,GAAG,CAAEC,KAAK,IAAK;IACjC,IAAIR,SAAS,aAATA,SAAS,eAATA,SAAS,CAAES,QAAQ,CAACD,KAAK,CAAC,EAAE;MAC9BL,QAAQ,GAAG;QAAE,GAAGA,QAAQ;QAAE,CAACK,KAAK,GAAGN,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAGM,KAAK;MAAE,CAAC;MACnD;IACF;IACA,IAAIH,MAAM,CAACC,IAAI,CAACL,MAAM,CAAC,CAACQ,QAAQ,CAACD,KAAK,CAAC,IAAIN,KAAK,aAALA,KAAK,eAALA,KAAK,CAAGM,KAAK,CAAC,EAAE;MACzDL,QAAQ,GAAG;QAAE,GAAGA,QAAQ;QAAE,IAAGF,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAGO,KAAK,CAAC;MAAC,CAAC;MAC9C;IACF;EACF,CAAC,CAAC;EACF,OAAOL,QAAQ;AACjB,CAAC;AACD,MAAMO,iBAAiB,GAAG,SAAAA,CAACC,QAAa,EAAsC;EAAA,IAApCC,oBAAoB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,GAAG;EAClE,MAAMG,aAAa,GAAGC,IAAI,CAACC,KAAK,CAC7BP,QAAQ,GAAGlB,WAAW,GAAImB,oBAC7B,CAAC;EACD,OAAOI,aAAa,GAAGL,QAAQ,GAAG,CAAC,GAAGA,QAAQ,GAAG,CAAC,GAAGK,aAAa;AACpE,CAAC;AAED,OAAO,MAAMG,SAAS,GAAGT,iBAAiB;AAE1C,SAASjB,WAAW,EAAEE,YAAY,EAAEE,WAAW"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","Text","React","ScaleSize","parseStyles","TextApp","props","_newTitle$toLocaleUpp","title","children","upper","styleAll","passStyle","styles","newTitle","createElement","_extends","style","toLocaleUpperCase","call","create","fontSize","lineHeight","color","textShadowColor","textShadowOffset","width","height","textShadowRadius","textDecorationLine","marginLeft","fontWeight","textAlign","textAlignVertical"],"sourceRoot":"../../../sources","sources":["cores/TextApp.tsx"],"mappings":"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"}
|
package/src/module/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["TextApp","ScaleSize"],"sourceRoot":"../../sources","sources":["index.tsx"],"mappings":"AAAA,OAAOA,OAAO,MAAM,iBAAiB;AACrC,SAASC,SAAS,QAAQ,qBAAqB;AAC/C,SAASD,OAAO,EAAEC,SAAS"}
|