react-native-package-fast 0.1.1 → 0.1.2

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 CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "react-native-package-fast",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "test",
5
- "main": "src/index.d.ts",
5
+ "main": "./src/module/index.js",
6
+ "types": "./src/typescript/index.d.ts",
6
7
  "scripts": {
7
8
  "test": "test1"
8
9
  },
@@ -0,0 +1,44 @@
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
+ } = props;
15
+ let _propsText = propsText;
16
+ let styleAll = parseStyles({
17
+ passStyle: ['flex', 'width', 'height'],
18
+ styles: ButtonAppStyles,
19
+ props
20
+ });
21
+ if (normal || whiteNormal) {
22
+ _propsText = {
23
+ ..._propsText,
24
+ h3: true,
25
+ black: true
26
+ };
27
+ }
28
+ if (disable) {
29
+ _propsText = {
30
+ ..._propsText,
31
+ h3: true,
32
+ style: {
33
+ color: '#686868'
34
+ }
35
+ };
36
+ }
37
+ return /*#__PURE__*/React.createElement(TouchableOpacity, _extends({
38
+ disabled: disable
39
+ }, props, {
40
+ style: styleAll
41
+ }), /*#__PURE__*/React.createElement(TextApp, _propsText, title || children));
42
+ };
43
+ export default ButtonApp;
44
+ //# 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
7
  let standardScreenHeight = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 375;
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, parseStyles };
12
+ export { widthScreen, heightScreen };
39
13
  //# sourceMappingURL=DeviceUtils.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 { ScaleSize, parseStyles } from './DeviceUtils';
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
- }), upper ? newTitle === null || newTitle === void 0 ? void 0 : (_newTitle$toLocaleUpp = newTitle.toLocaleUpperCase) === null || _newTitle$toLocaleUpp === void 0 ? void 0 : _newTitle$toLocaleUpp.call(newTitle) : newTitle);
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,277 @@
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
+ };
10
+ const numStyles = [{
11
+ key: 'padding-',
12
+ func: value => ({
13
+ padding: ScaleSize(value)
14
+ })
15
+ }, {
16
+ key: 'hoz-',
17
+ func: value => ({
18
+ paddingHorizontal: ScaleSize(value)
19
+ })
20
+ }, {
21
+ key: 'ver-',
22
+ func: value => ({
23
+ paddingVertical: ScaleSize(value)
24
+ })
25
+ }, {
26
+ key: 'top-',
27
+ func: value => ({
28
+ paddingTop: ScaleSize(value)
29
+ })
30
+ }, {
31
+ key: 'bot-',
32
+ func: value => ({
33
+ paddingBottom: ScaleSize(value)
34
+ })
35
+ }, {
36
+ key: 'left-',
37
+ func: value => ({
38
+ paddingLeft: ScaleSize(value)
39
+ })
40
+ }, {
41
+ key: 'right-',
42
+ func: value => ({
43
+ paddingRight: ScaleSize(value)
44
+ })
45
+ }, {
46
+ key: 'margin-',
47
+ func: value => ({
48
+ margin: ScaleSize(value)
49
+ })
50
+ }, {
51
+ key: 'Hoz-',
52
+ func: value => ({
53
+ marginHorizontal: ScaleSize(value)
54
+ })
55
+ }, {
56
+ key: 'Ver-',
57
+ func: value => ({
58
+ marginVertical: ScaleSize(value)
59
+ })
60
+ }, {
61
+ key: 'Top-',
62
+ func: value => ({
63
+ marginTop: ScaleSize(value)
64
+ })
65
+ }, {
66
+ key: 'Bot-',
67
+ func: value => ({
68
+ marginBottom: ScaleSize(value)
69
+ })
70
+ }, {
71
+ key: 'Left-',
72
+ func: value => ({
73
+ marginLeft: ScaleSize(value)
74
+ })
75
+ }, {
76
+ key: 'Right-',
77
+ func: value => ({
78
+ marginRight: ScaleSize(value)
79
+ })
80
+ }, {
81
+ key: 'radius-',
82
+ func: value => {
83
+ return {
84
+ borderRadius: ScaleSize(value)
85
+ };
86
+ }
87
+ }, {
88
+ key: 'ads-',
89
+ func: value => {
90
+ return {
91
+ position: 'absolute',
92
+ top: ScaleSize(value)
93
+ };
94
+ }
95
+ }, {
96
+ key: 'border-',
97
+ func: value => {
98
+ return {
99
+ borderWidth: ScaleSize(value)
100
+ };
101
+ }
102
+ }];
103
+ export const parseStyles = _ref => {
104
+ var _Object$keys;
105
+ let {
106
+ passStyle,
107
+ styles,
108
+ props
109
+ } = _ref;
110
+ let styleAll = (styles === null || styles === void 0 ? void 0 : styles.default) || {};
111
+ (_Object$keys = Object.keys(props)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.map(_item => {
112
+ if (passStyle !== null && passStyle !== void 0 && passStyle.includes(_item)) {
113
+ styleAll = {
114
+ ...styleAll,
115
+ [_item]: props === null || props === void 0 ? void 0 : props[_item]
116
+ };
117
+ return;
118
+ }
119
+ if (Object.keys(styles).includes(_item) && props !== null && props !== void 0 && props[_item]) {
120
+ styleAll = {
121
+ ...styleAll,
122
+ ...(styles === null || styles === void 0 ? void 0 : styles[_item])
123
+ };
124
+ return;
125
+ }
126
+ const numFind = numStyles.find(_value => _item === null || _item === void 0 ? void 0 : _item.includes(_value === null || _value === void 0 ? void 0 : _value.key));
127
+ if (numFind) {
128
+ const num = _item === null || _item === void 0 ? void 0 : _item.replace(numFind === null || numFind === void 0 ? void 0 : numFind.key, '');
129
+ if (parseInt !== null && parseInt !== void 0 && parseInt(num, 10)) {
130
+ styleAll = {
131
+ ...styleAll,
132
+ ...(numFind === null || numFind === void 0 ? void 0 : numFind.func(num))
133
+ };
134
+ return;
135
+ }
136
+ }
137
+ });
138
+ return {
139
+ ...styleAll,
140
+ ...(props === null || props === void 0 ? void 0 : props.style)
141
+ };
142
+ };
143
+ const CommonStyles = StyleSheet.create({
144
+ topLeft: {
145
+ position: 'absolute',
146
+ top: 0,
147
+ left: 0
148
+ }
149
+ });
150
+ export const ViewAppStyles = StyleSheet.create({
151
+ ...CommonStyles,
152
+ Black: {
153
+ backgroundColor: colors.black
154
+ },
155
+ Grey: {
156
+ backgroundColor: colors.grey
157
+ },
158
+ White: {
159
+ backgroundColor: colors.white
160
+ },
161
+ Yellow: {
162
+ backgroundColor: colors.yellow
163
+ },
164
+ row: {
165
+ flexDirection: 'row'
166
+ },
167
+ wrap: {
168
+ flexWrap: 'wrap'
169
+ }
170
+ });
171
+ export const TextAppStyles = StyleSheet.create({
172
+ ...CommonStyles,
173
+ //size
174
+ h1: {
175
+ fontSize: ScaleSize(20),
176
+ lineHeight: ScaleSize(26)
177
+ },
178
+ h2: {
179
+ fontSize: ScaleSize(18),
180
+ lineHeight: ScaleSize(24)
181
+ },
182
+ h3: {
183
+ fontSize: ScaleSize(16),
184
+ lineHeight: ScaleSize(22)
185
+ },
186
+ h4: {
187
+ fontSize: ScaleSize(14),
188
+ lineHeight: ScaleSize(20)
189
+ },
190
+ h5: {
191
+ fontSize: ScaleSize(12),
192
+ lineHeight: ScaleSize(18)
193
+ },
194
+ h6: {
195
+ fontSize: ScaleSize(10),
196
+ lineHeight: ScaleSize(16)
197
+ },
198
+ h7: {
199
+ fontSize: ScaleSize(9),
200
+ lineHeight: ScaleSize(15)
201
+ },
202
+ header: {
203
+ fontSize: ScaleSize(24),
204
+ lineHeight: ScaleSize(33)
205
+ },
206
+ //color
207
+ black: {
208
+ color: colors.black
209
+ },
210
+ grey: {
211
+ color: colors.grey
212
+ },
213
+ yellow: {
214
+ color: colors.yellow
215
+ },
216
+ white: {
217
+ color: colors.white
218
+ },
219
+ orange: {
220
+ color: colors.orange
221
+ },
222
+ //weight
223
+ bold: {
224
+ fontWeight: 'bold'
225
+ },
226
+ thin: {
227
+ fontWeight: '100'
228
+ },
229
+ medium: {
230
+ fontWeight: '500'
231
+ },
232
+ //style
233
+ line: {
234
+ textDecorationLine: 'underline'
235
+ },
236
+ center: {
237
+ textAlign: 'center',
238
+ textAlignVertical: 'center'
239
+ },
240
+ left: {
241
+ textAlign: 'left'
242
+ }
243
+ });
244
+ export const ButtonAppStyles = StyleSheet.create({
245
+ ...ViewAppStyles,
246
+ normal: {
247
+ paddingVertical: 10,
248
+ alignItems: 'center',
249
+ justifyContent: 'center',
250
+ backgroundColor: colors.yellow,
251
+ borderRadius: 5
252
+ },
253
+ yellowSmall: {
254
+ paddingVertical: 7,
255
+ alignItems: 'center',
256
+ justifyContent: 'center',
257
+ backgroundColor: colors.yellow,
258
+ borderRadius: 50
259
+ },
260
+ whiteNormal: {
261
+ paddingVertical: 10,
262
+ alignItems: 'center',
263
+ justifyContent: 'center',
264
+ // backgroundColor: colors.white,
265
+ borderWidth: 1,
266
+ borderColor: colors.grey,
267
+ borderRadius: 5
268
+ },
269
+ disable: {
270
+ paddingVertical: 10,
271
+ alignItems: 'center',
272
+ justifyContent: 'center',
273
+ backgroundColor: '#D1D1D1',
274
+ borderRadius: 5
275
+ }
276
+ });
277
+ //# 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
@@ -1,4 +1,6 @@
1
1
  import TextApp from './cores/TextApp';
2
+ import ViewApp from './cores/ViewApp';
3
+ import ButtonApp from './cores/ButtonApp';
2
4
  import { ScaleSize } from './cores/DeviceUtils';
3
- export { TextApp, ScaleSize };
5
+ export { TextApp, ScaleSize, ButtonApp, ViewApp };
4
6
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ButtonAppProps } from './Utils';
3
+ declare const ButtonApp: (props: ButtonAppProps) => React.JSX.Element;
4
+ export default ButtonApp;
5
+ //# sourceMappingURL=ButtonApp.d.ts.map
@@ -0,0 +1,4 @@
1
+ declare const widthScreen: number, heightScreen: number;
2
+ export declare const ScaleSize: (fontSize: any, standardScreenHeight?: number) => any;
3
+ export { widthScreen, heightScreen };
4
+ //# sourceMappingURL=DeviceUtils.d.ts.map
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { TextAppProps } from './Utils';
3
+ declare const TextApp: (props: TextAppProps) => React.JSX.Element;
4
+ export default TextApp;
5
+ //# sourceMappingURL=TextApp.d.ts.map
@@ -0,0 +1,214 @@
1
+ import { 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
+ }
12
+ export interface ViewAppProps extends ViewProps, CommonProps {
13
+ Black?: boolean;
14
+ Grey?: boolean;
15
+ White?: boolean;
16
+ Yellow?: boolean;
17
+ row?: any;
18
+ wrap?: any;
19
+ }
20
+ export interface TouchAppProps extends TouchableOpacityProps, CommonProps {
21
+ Black?: boolean;
22
+ Grey?: boolean;
23
+ White?: boolean;
24
+ Yellow?: boolean;
25
+ row?: any;
26
+ wrap?: any;
27
+ }
28
+ export declare const ViewAppStyles: {
29
+ Black: {
30
+ backgroundColor: string;
31
+ };
32
+ Grey: {
33
+ backgroundColor: string;
34
+ };
35
+ White: {
36
+ backgroundColor: string;
37
+ };
38
+ Yellow: {
39
+ backgroundColor: string;
40
+ };
41
+ row: {
42
+ flexDirection: "row";
43
+ };
44
+ wrap: {
45
+ flexWrap: "wrap";
46
+ };
47
+ topLeft: {
48
+ position: "absolute";
49
+ top: number;
50
+ left: number;
51
+ };
52
+ };
53
+ export interface TextAppProps extends TextProps, CommonProps {
54
+ h1?: boolean;
55
+ h2?: boolean;
56
+ h3?: boolean;
57
+ h4?: boolean;
58
+ h5?: boolean;
59
+ h6?: boolean;
60
+ h7?: boolean;
61
+ header?: boolean;
62
+ black?: boolean;
63
+ grey?: boolean;
64
+ white?: boolean;
65
+ yellow?: boolean;
66
+ orange?: boolean;
67
+ bold?: boolean;
68
+ medium?: boolean;
69
+ thin?: boolean;
70
+ line?: boolean;
71
+ center?: boolean;
72
+ left?: boolean;
73
+ title?: String;
74
+ children?: any;
75
+ hardHeight?: boolean;
76
+ }
77
+ export declare const TextAppStyles: {
78
+ h1: {
79
+ fontSize: any;
80
+ lineHeight: any;
81
+ };
82
+ h2: {
83
+ fontSize: any;
84
+ lineHeight: any;
85
+ };
86
+ h3: {
87
+ fontSize: any;
88
+ lineHeight: any;
89
+ };
90
+ h4: {
91
+ fontSize: any;
92
+ lineHeight: any;
93
+ };
94
+ h5: {
95
+ fontSize: any;
96
+ lineHeight: any;
97
+ };
98
+ h6: {
99
+ fontSize: any;
100
+ lineHeight: any;
101
+ };
102
+ h7: {
103
+ fontSize: any;
104
+ lineHeight: any;
105
+ };
106
+ header: {
107
+ fontSize: any;
108
+ lineHeight: any;
109
+ };
110
+ black: {
111
+ color: string;
112
+ };
113
+ grey: {
114
+ color: string;
115
+ };
116
+ yellow: {
117
+ color: string;
118
+ };
119
+ white: {
120
+ color: string;
121
+ };
122
+ orange: {
123
+ color: string;
124
+ };
125
+ bold: {
126
+ fontWeight: "bold";
127
+ };
128
+ thin: {
129
+ fontWeight: "100";
130
+ };
131
+ medium: {
132
+ fontWeight: "500";
133
+ };
134
+ line: {
135
+ textDecorationLine: "underline";
136
+ };
137
+ center: {
138
+ textAlign: "center";
139
+ textAlignVertical: "center";
140
+ };
141
+ left: {
142
+ textAlign: "left";
143
+ };
144
+ topLeft: {
145
+ position: "absolute";
146
+ top: number;
147
+ left: number;
148
+ };
149
+ };
150
+ export interface ButtonAppProps extends ViewAppProps {
151
+ title?: String;
152
+ children?: any;
153
+ propsText?: TextAppProps;
154
+ normal?: boolean;
155
+ disable?: boolean;
156
+ yellowSmall?: boolean;
157
+ whiteNormal?: boolean;
158
+ }
159
+ export declare const ButtonAppStyles: {
160
+ normal: {
161
+ paddingVertical: number;
162
+ alignItems: "center";
163
+ justifyContent: "center";
164
+ backgroundColor: string;
165
+ borderRadius: number;
166
+ };
167
+ yellowSmall: {
168
+ paddingVertical: number;
169
+ alignItems: "center";
170
+ justifyContent: "center";
171
+ backgroundColor: string;
172
+ borderRadius: number;
173
+ };
174
+ whiteNormal: {
175
+ paddingVertical: number;
176
+ alignItems: "center";
177
+ justifyContent: "center";
178
+ borderWidth: number;
179
+ borderColor: string;
180
+ borderRadius: number;
181
+ };
182
+ disable: {
183
+ paddingVertical: number;
184
+ alignItems: "center";
185
+ justifyContent: "center";
186
+ backgroundColor: string;
187
+ borderRadius: number;
188
+ };
189
+ Black: {
190
+ backgroundColor: string;
191
+ };
192
+ Grey: {
193
+ backgroundColor: string;
194
+ };
195
+ White: {
196
+ backgroundColor: string;
197
+ };
198
+ Yellow: {
199
+ backgroundColor: string;
200
+ };
201
+ row: {
202
+ flexDirection: "row";
203
+ };
204
+ wrap: {
205
+ flexWrap: "wrap";
206
+ };
207
+ topLeft: {
208
+ position: "absolute";
209
+ top: number;
210
+ left: number;
211
+ };
212
+ };
213
+ export {};
214
+ //# sourceMappingURL=Utils.d.ts.map
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ViewAppProps } from './Utils';
3
+ declare const ViewApp: (props: ViewAppProps) => React.JSX.Element;
4
+ export default ViewApp;
5
+ //# sourceMappingURL=ViewApp.d.ts.map
@@ -0,0 +1,6 @@
1
+ import TextApp from './cores/TextApp';
2
+ import ViewApp from './cores/ViewApp';
3
+ import ButtonApp from './cores/ButtonApp';
4
+ import { ScaleSize } from './cores/DeviceUtils';
5
+ export { TextApp, ScaleSize, ButtonApp, ViewApp };
6
+ //# 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"}
@@ -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
@@ -1,4 +0,0 @@
1
- import TextApp from './cores/TextApp';
2
- import { ScaleSize } from './cores/DeviceUtils';
3
- export { TextApp, ScaleSize };
4
- //# sourceMappingURL=index.d.ts.map
@@ -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":";AAAA,SAASA,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAC1D,OAAOC,KAAK,MAAM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