react-native-package-fast 0.1.0 → 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.
Files changed (41) hide show
  1. package/package.json +7 -156
  2. package/src/module/cores/ButtonApp.js +44 -0
  3. package/src/module/cores/DeviceUtils.js +1 -27
  4. package/src/module/cores/TextApp.js +6 -103
  5. package/src/module/cores/Utils.js +277 -0
  6. package/src/module/cores/ViewApp.js +19 -0
  7. package/src/module/index.js +3 -1
  8. package/src/typescript/cores/ButtonApp.d.ts +5 -0
  9. package/src/typescript/cores/DeviceUtils.d.ts +4 -0
  10. package/src/typescript/cores/TextApp.d.ts +5 -0
  11. package/src/typescript/cores/Utils.d.ts +214 -0
  12. package/src/typescript/cores/ViewApp.d.ts +5 -0
  13. package/src/typescript/index.d.ts +6 -0
  14. package/README.md +0 -31
  15. package/lib/commonjs/cores/DeviceUtils.js +0 -48
  16. package/lib/commonjs/cores/DeviceUtils.js.map +0 -1
  17. package/lib/commonjs/cores/TextApp.js +0 -126
  18. package/lib/commonjs/cores/TextApp.js.map +0 -1
  19. package/lib/commonjs/index.js +0 -21
  20. package/lib/commonjs/index.js.map +0 -1
  21. package/lib/module/cores/DeviceUtils.js +0 -39
  22. package/lib/module/cores/DeviceUtils.js.map +0 -1
  23. package/lib/module/cores/TextApp.js +0 -118
  24. package/lib/module/cores/TextApp.js.map +0 -1
  25. package/lib/module/index.js +0 -4
  26. package/lib/module/index.js.map +0 -1
  27. package/lib/typescript/cores/DeviceUtils.d.ts +0 -5
  28. package/lib/typescript/cores/DeviceUtils.d.ts.map +0 -1
  29. package/lib/typescript/cores/TextApp.d.ts +0 -26
  30. package/lib/typescript/cores/TextApp.d.ts.map +0 -1
  31. package/lib/typescript/index.d.ts +0 -4
  32. package/lib/typescript/index.d.ts.map +0 -1
  33. package/src/cores/DeviceUtils.d.ts +0 -5
  34. package/src/cores/DeviceUtils.d.ts.map +0 -1
  35. package/src/cores/TextApp.d.ts +0 -26
  36. package/src/cores/TextApp.d.ts.map +0 -1
  37. package/src/index.d.ts +0 -4
  38. package/src/index.d.ts.map +0 -1
  39. package/src/module/cores/DeviceUtils.js.map +0 -1
  40. package/src/module/cores/TextApp.js.map +0 -1
  41. package/src/module/index.js.map +0 -1
@@ -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
package/README.md DELETED
@@ -1,31 +0,0 @@
1
- # react-native-package-fast
2
-
3
- react-native-package-fast
4
-
5
- ## Installation
6
-
7
- ```sh
8
- npm install react-native-package-fast
9
- ```
10
-
11
- ## Usage
12
-
13
- ```js
14
- import { multiply } from 'react-native-package-fast';
15
-
16
- // ...
17
-
18
- const result = await multiply(3, 7);
19
- ```
20
-
21
- ## Contributing
22
-
23
- See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
24
-
25
- ## License
26
-
27
- MIT
28
-
29
- ---
30
-
31
- Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
@@ -1,48 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.widthScreen = exports.parseStyles = exports.heightScreen = exports.ScaleSize = void 0;
7
- var _reactNative = require("react-native");
8
- const {
9
- width: widthScreen,
10
- height: heightScreen
11
- } = _reactNative.Dimensions.get('window');
12
- exports.heightScreen = heightScreen;
13
- exports.widthScreen = widthScreen;
14
- const parseStyles = _ref => {
15
- var _Object$keys;
16
- let {
17
- passStyle,
18
- styles,
19
- props
20
- } = _ref;
21
- let styleAll = (styles === null || styles === void 0 ? void 0 : styles.default) || {};
22
- (_Object$keys = Object.keys(props)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.map(_item => {
23
- if (passStyle !== null && passStyle !== void 0 && passStyle.includes(_item)) {
24
- styleAll = {
25
- ...styleAll,
26
- [_item]: props === null || props === void 0 ? void 0 : props[_item]
27
- };
28
- return;
29
- }
30
- if (Object.keys(styles).includes(_item) && props !== null && props !== void 0 && props[_item]) {
31
- styleAll = {
32
- ...styleAll,
33
- ...(styles === null || styles === void 0 ? void 0 : styles[_item])
34
- };
35
- return;
36
- }
37
- });
38
- return styleAll;
39
- };
40
- exports.parseStyles = parseStyles;
41
- const RFValueHorizontal = function (fontSize) {
42
- let standardScreenHeight = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 375;
43
- const heightPercent = Math.round(fontSize * widthScreen / standardScreenHeight);
44
- return heightPercent > fontSize + 5 ? fontSize + 5 : heightPercent;
45
- };
46
- const ScaleSize = RFValueHorizontal;
47
- exports.ScaleSize = ScaleSize;
48
- //# sourceMappingURL=DeviceUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNative","require","width","widthScreen","height","heightScreen","Dimensions","get","exports","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,IAAAA,YAAA,GAAAC,OAAA;AACA,MAAM;EAAEC,KAAK,EAAEC,WAAW;EAAEC,MAAM,EAAEC;AAAa,CAAC,GAAGC,uBAAU,CAACC,GAAG,CAAC,QAAQ,CAAC;AAACC,OAAA,CAAAH,YAAA,GAAAA,YAAA;AAAAG,OAAA,CAAAL,WAAA,GAAAA,WAAA;AAE9E,MAAMM,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;AAACP,OAAA,CAAAC,WAAA,GAAAA,WAAA;AACF,MAAMa,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,GAAGpB,WAAW,GAAIqB,oBAC7B,CAAC;EACD,OAAOI,aAAa,GAAGL,QAAQ,GAAG,CAAC,GAAGA,QAAQ,GAAG,CAAC,GAAGK,aAAa;AACpE,CAAC;AAEM,MAAMG,SAAS,GAAGT,iBAAiB;AAACd,OAAA,CAAAuB,SAAA,GAAAA,SAAA"}
@@ -1,126 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _reactNative = require("react-native");
8
- var _react = _interopRequireDefault(require("react"));
9
- var _DeviceUtils = require("./DeviceUtils");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- 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); }
12
- const TextApp = props => {
13
- var _newTitle$toLocaleUpp;
14
- const {
15
- title,
16
- children,
17
- upper
18
- } = props;
19
- let styleAll = (0, _DeviceUtils.parseStyles)({
20
- passStyle: ['flex', 'width', 'height'],
21
- styles,
22
- props
23
- });
24
- //_STYLE_OTHER
25
-
26
- const newTitle = title || children;
27
- if (!newTitle && newTitle === '') return null;
28
- return /*#__PURE__*/_react.default.createElement(_reactNative.Text, _extends({}, props, {
29
- style: styleAll
30
- }), upper ? newTitle === null || newTitle === void 0 ? void 0 : (_newTitle$toLocaleUpp = newTitle.toLocaleUpperCase) === null || _newTitle$toLocaleUpp === void 0 ? void 0 : _newTitle$toLocaleUpp.call(newTitle) : newTitle);
31
- };
32
- const styles = _reactNative.StyleSheet.create({
33
- 'default': {
34
- fontSize: (0, _DeviceUtils.ScaleSize)(14),
35
- lineHeight: (0, _DeviceUtils.ScaleSize)(16)
36
- },
37
- 'black': {
38
- color: '#000000'
39
- },
40
- 'grey': {
41
- color: '#00000080'
42
- },
43
- 'white': {
44
- color: '#FFFFFF'
45
- },
46
- 'border': {
47
- textShadowColor: '#FFFFFF',
48
- textShadowOffset: {
49
- width: (0, _DeviceUtils.ScaleSize)(1),
50
- height: (0, _DeviceUtils.ScaleSize)(1)
51
- },
52
- textShadowRadius: (0, _DeviceUtils.ScaleSize)(0)
53
- },
54
- 'line': {
55
- textDecorationLine: 'underline'
56
- },
57
- 'body': {
58
- marginLeft: 4,
59
- fontSize: 14,
60
- fontWeight: '500',
61
- color: '#969696'
62
- },
63
- 'border-bl': {
64
- textShadowColor: '#000000',
65
- textShadowOffset: {
66
- width: (0, _DeviceUtils.ScaleSize)(2),
67
- height: (0, _DeviceUtils.ScaleSize)(2)
68
- },
69
- textShadowRadius: (0, _DeviceUtils.ScaleSize)(2)
70
- },
71
- 'b1': {
72
- fontSize: (0, _DeviceUtils.ScaleSize)(56),
73
- lineHeight: (0, _DeviceUtils.ScaleSize)(58)
74
- },
75
- 'b5': {
76
- fontSize: (0, _DeviceUtils.ScaleSize)(26),
77
- lineHeight: (0, _DeviceUtils.ScaleSize)(28)
78
- },
79
- 'h1': {
80
- fontSize: (0, _DeviceUtils.ScaleSize)(20),
81
- lineHeight: (0, _DeviceUtils.ScaleSize)(22)
82
- },
83
- 'h2': {
84
- fontSize: (0, _DeviceUtils.ScaleSize)(18),
85
- lineHeight: (0, _DeviceUtils.ScaleSize)(20)
86
- },
87
- 'h3': {
88
- fontSize: (0, _DeviceUtils.ScaleSize)(16),
89
- lineHeight: (0, _DeviceUtils.ScaleSize)(18)
90
- },
91
- 'h4': {
92
- fontSize: (0, _DeviceUtils.ScaleSize)(14),
93
- lineHeight: (0, _DeviceUtils.ScaleSize)(16)
94
- },
95
- 'h5': {
96
- fontSize: (0, _DeviceUtils.ScaleSize)(12),
97
- lineHeight: (0, _DeviceUtils.ScaleSize)(14)
98
- },
99
- 'h6': {
100
- fontSize: (0, _DeviceUtils.ScaleSize)(10),
101
- lineHeight: (0, _DeviceUtils.ScaleSize)(12)
102
- },
103
- 'h7': {
104
- fontSize: (0, _DeviceUtils.ScaleSize)(9),
105
- lineHeight: (0, _DeviceUtils.ScaleSize)(11)
106
- },
107
- 'bold': {
108
- fontWeight: 'bold'
109
- },
110
- 'thin': {
111
- fontWeight: '100'
112
- },
113
- 'medium': {
114
- fontWeight: '300'
115
- },
116
- 'center': {
117
- textAlign: 'center',
118
- textAlignVertical: 'center'
119
- },
120
- 'left': {
121
- textAlign: 'left'
122
- }
123
- });
124
- var _default = TextApp;
125
- exports.default = _default;
126
- //# sourceMappingURL=TextApp.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNative","require","_react","_interopRequireDefault","_DeviceUtils","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","TextApp","props","_newTitle$toLocaleUpp","title","children","upper","styleAll","parseStyles","passStyle","styles","newTitle","createElement","Text","style","toLocaleUpperCase","StyleSheet","create","fontSize","ScaleSize","lineHeight","color","textShadowColor","textShadowOffset","width","height","textShadowRadius","textDecorationLine","marginLeft","fontWeight","textAlign","textAlignVertical","_default","exports"],"sourceRoot":"../../../sources","sources":["cores/TextApp.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAAuD,SAAAE,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,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0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "ScaleSize", {
7
- enumerable: true,
8
- get: function () {
9
- return _DeviceUtils.ScaleSize;
10
- }
11
- });
12
- Object.defineProperty(exports, "TextApp", {
13
- enumerable: true,
14
- get: function () {
15
- return _TextApp.default;
16
- }
17
- });
18
- var _TextApp = _interopRequireDefault(require("./cores/TextApp"));
19
- var _DeviceUtils = require("./cores/DeviceUtils");
20
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_TextApp","_interopRequireDefault","require","_DeviceUtils","obj","__esModule","default"],"sourceRoot":"../../sources","sources":["index.tsx"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAAgD,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA"}
@@ -1,39 +0,0 @@
1
- import { Dimensions } from 'react-native';
2
- const {
3
- width: widthScreen,
4
- height: heightScreen
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
- const RFValueHorizontal = function (fontSize) {
33
- let standardScreenHeight = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 375;
34
- const heightPercent = Math.round(fontSize * widthScreen / standardScreenHeight);
35
- return heightPercent > fontSize + 5 ? fontSize + 5 : heightPercent;
36
- };
37
- export const ScaleSize = RFValueHorizontal;
38
- export { widthScreen, heightScreen, parseStyles };
39
- //# sourceMappingURL=DeviceUtils.js.map
@@ -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,118 +0,0 @@
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
- import React from 'react';
4
- import { ScaleSize, parseStyles } from './DeviceUtils';
5
- const TextApp = props => {
6
- var _newTitle$toLocaleUpp;
7
- const {
8
- title,
9
- children,
10
- upper
11
- } = props;
12
- let styleAll = parseStyles({
13
- passStyle: ['flex', 'width', 'height'],
14
- styles,
15
- props
16
- });
17
- //_STYLE_OTHER
18
-
19
- const newTitle = title || children;
20
- if (!newTitle && newTitle === '') return null;
21
- return /*#__PURE__*/React.createElement(Text, _extends({}, props, {
22
- 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);
24
- };
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
- export default TextApp;
118
- //# sourceMappingURL=TextApp.js.map
@@ -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,OAAO;AACzB,SAASC,SAAS,EAAEC,WAAW,QAAQ,eAAe;AAuBtD,MAAMC,OAAO,GAAIC,KAAmB,IAAK;EAAA,IAAAC,qBAAA;EACvC,MAAM;IAAEC,KAAK;IAAEC,QAAQ;IAAEC;EAAM,CAAC,GAAGJ,KAAK;EACxC,IAAIK,QAAQ,GAAGP,WAAW,CAAC;IACzBQ,SAAS,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC;IACtCC,MAAM;IACNP;EACF,CAAC,CAAC;EACF;;EAEA,MAAMQ,QAAQ,GAAGN,KAAK,IAAIC,QAAQ;EAClC,IAAI,CAACK,QAAQ,IAAIA,QAAQ,KAAK,EAAE,EAAE,OAAO,IAAI;EAC7C,oBACEZ,KAAA,CAAAa,aAAA,CAACd,IAAI,EAAAe,QAAA,KAAKV,KAAK;IAAEW,KAAK,EAAEN;E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AEF,eAAe3B,OAAO"}
@@ -1,4 +0,0 @@
1
- import TextApp from './cores/TextApp';
2
- import { ScaleSize } from './cores/DeviceUtils';
3
- export { TextApp, ScaleSize };
4
- //# sourceMappingURL=index.js.map
@@ -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"}
@@ -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"}