react-native-boxes 1.3.16 → 1.3.17
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 +1 -1
- package/src/Button.tsx +1 -1
- package/src/Input.tsx +29 -18
- package/sample-app/babel.config.js +0 -6
- package/src/Bar.d.ts +0 -29
- package/src/Bar.js +0 -178
- package/src/Bar.js.map +0 -1
- package/src/Box.d.ts +0 -15
- package/src/Box.js +0 -123
- package/src/Box.js.map +0 -1
- package/src/Button.d.ts +0 -22
- package/src/Button.js +0 -245
- package/src/Button.js.map +0 -1
- package/src/I18n.d.ts +0 -4
- package/src/I18n.js +0 -7
- package/src/I18n.js.map +0 -1
- package/src/Image.d.ts +0 -31
- package/src/Image.js +0 -129
- package/src/Image.js.map +0 -1
- package/src/Input.d.ts +0 -29
- package/src/Input.js +0 -190
- package/src/Input.js.map +0 -1
- package/src/List.d.ts +0 -17
- package/src/List.js +0 -92
- package/src/List.js.map +0 -1
- package/src/Message.d.ts +0 -7
- package/src/Message.js +0 -97
- package/src/Message.js.map +0 -1
- package/src/Modal.d.ts +0 -52
- package/src/Modal.js +0 -344
- package/src/Modal.js.map +0 -1
- package/src/Styles.d.ts +0 -126
- package/src/Styles.js +0 -117
- package/src/Styles.js.map +0 -1
- package/src/Text.d.ts +0 -8
- package/src/Text.js +0 -57
- package/src/Text.js.map +0 -1
- package/src/ThemeContext.d.ts +0 -119
- package/src/ThemeContext.js +0 -33
- package/src/ThemeContext.js.map +0 -1
- package/src/demo.d.ts +0 -5
- package/src/demo.js +0 -385
- package/src/demo.js.map +0 -1
- package/src/index.d.ts +0 -14
- package/src/index.js.map +0 -1
- package/src/utils.d.ts +0 -5
- package/src/utils.js +0 -45
- package/src/utils.js.map +0 -1
package/src/Modal.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.js","sourceRoot":"","sources":["Modal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;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CAAC,mBAAU,CAAC,IAAI,CAAC,CAAC,WAAqB,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE;YACnD,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,SAAS,EAAE,CAAA;YACpC,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,SAAS,EAAE,CAAA;QACxC,CAAC,CAAC,EACF;gBAAA,CAAC,2BAAkB,CAAC,IAAI,CAAC,CAAC,UAAoB,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE;YAC1D,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,SAAS,EAAE,CAAA;YACpC,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAA;QACtC,CAAC,CAAC,EACN;YAAA,EAAE,UAAI,CAEV;;QAAA,EAAE,mBAAW,CAAC,CACjB,CAAA;AACL,CAAC;AA7BD,gDA6BC"}
|
package/src/Styles.d.ts
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
export declare const Dimens: {
|
|
2
|
-
space: {
|
|
3
|
-
xs: number;
|
|
4
|
-
sm: number;
|
|
5
|
-
md: number;
|
|
6
|
-
lg: number;
|
|
7
|
-
xl: number;
|
|
8
|
-
};
|
|
9
|
-
font: {
|
|
10
|
-
sm: number;
|
|
11
|
-
md: number;
|
|
12
|
-
lg: number;
|
|
13
|
-
xl: number;
|
|
14
|
-
};
|
|
15
|
-
icon: {
|
|
16
|
-
sm: number;
|
|
17
|
-
md: number;
|
|
18
|
-
lg: number;
|
|
19
|
-
xl: number;
|
|
20
|
-
xxl: number;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export declare const Fonts: {
|
|
24
|
-
Regular: string;
|
|
25
|
-
Bold: string;
|
|
26
|
-
Styled: string;
|
|
27
|
-
};
|
|
28
|
-
export declare const Colors: {
|
|
29
|
-
accent: string;
|
|
30
|
-
accentLight: string;
|
|
31
|
-
text: string;
|
|
32
|
-
caption: string;
|
|
33
|
-
heading: string;
|
|
34
|
-
background: string;
|
|
35
|
-
forground: string;
|
|
36
|
-
transparent: string;
|
|
37
|
-
semitransparent: string;
|
|
38
|
-
info: string;
|
|
39
|
-
success: string;
|
|
40
|
-
successBackground: string;
|
|
41
|
-
warning: string;
|
|
42
|
-
critical: string;
|
|
43
|
-
invert: {
|
|
44
|
-
text: string;
|
|
45
|
-
caption: string;
|
|
46
|
-
heading: string;
|
|
47
|
-
background: string;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
export declare const LightColors: {
|
|
51
|
-
accent: string;
|
|
52
|
-
accentLight: string;
|
|
53
|
-
text: string;
|
|
54
|
-
caption: string;
|
|
55
|
-
heading: string;
|
|
56
|
-
background: string;
|
|
57
|
-
forground: string;
|
|
58
|
-
transparent: string;
|
|
59
|
-
semitransparent: string;
|
|
60
|
-
info: string;
|
|
61
|
-
success: string;
|
|
62
|
-
successBackground: string;
|
|
63
|
-
warning: string;
|
|
64
|
-
critical: string;
|
|
65
|
-
invert: {
|
|
66
|
-
text: string;
|
|
67
|
-
caption: string;
|
|
68
|
-
heading: string;
|
|
69
|
-
background: string;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
export declare const DarkColors: {
|
|
73
|
-
accent: string;
|
|
74
|
-
accentLight: string;
|
|
75
|
-
text: string;
|
|
76
|
-
caption: string;
|
|
77
|
-
heading: string;
|
|
78
|
-
background: string;
|
|
79
|
-
forground: string;
|
|
80
|
-
transparent: string;
|
|
81
|
-
semitransparent: string;
|
|
82
|
-
info: string;
|
|
83
|
-
success: string;
|
|
84
|
-
successBackground: string;
|
|
85
|
-
warning: string;
|
|
86
|
-
critical: string;
|
|
87
|
-
invert: {
|
|
88
|
-
text: string;
|
|
89
|
-
caption: string;
|
|
90
|
-
heading: string;
|
|
91
|
-
background: string;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
export declare function extendValues(dimens: typeof Dimens, colors: typeof Colors, fonts: typeof Fonts): {
|
|
95
|
-
dimens: typeof Dimens;
|
|
96
|
-
colors: typeof Colors;
|
|
97
|
-
fonts: typeof Fonts;
|
|
98
|
-
};
|
|
99
|
-
export declare function createStyle(dimens: typeof Dimens, colors: typeof Colors, fonts: typeof Fonts): {
|
|
100
|
-
safeAreaInset: {
|
|
101
|
-
top: number;
|
|
102
|
-
left: number;
|
|
103
|
-
right: number;
|
|
104
|
-
bottom: number;
|
|
105
|
-
};
|
|
106
|
-
full: {
|
|
107
|
-
height: "100%";
|
|
108
|
-
width: "100%";
|
|
109
|
-
};
|
|
110
|
-
container: {
|
|
111
|
-
marginTop: number;
|
|
112
|
-
backgroundColor: string;
|
|
113
|
-
};
|
|
114
|
-
center: {
|
|
115
|
-
alignContent: "center";
|
|
116
|
-
justifyContent: "center";
|
|
117
|
-
};
|
|
118
|
-
textHead: {
|
|
119
|
-
color: string;
|
|
120
|
-
fontSize: number;
|
|
121
|
-
};
|
|
122
|
-
text: {
|
|
123
|
-
fontFamily: string;
|
|
124
|
-
fontSize: number;
|
|
125
|
-
};
|
|
126
|
-
};
|
package/src/Styles.js
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createStyle = exports.extendValues = exports.DarkColors = exports.LightColors = exports.Colors = exports.Fonts = exports.Dimens = void 0;
|
|
4
|
-
const react_native_1 = require("react-native");
|
|
5
|
-
exports.Dimens = {
|
|
6
|
-
space: {
|
|
7
|
-
xs: 1,
|
|
8
|
-
sm: 5,
|
|
9
|
-
md: 10,
|
|
10
|
-
lg: 20,
|
|
11
|
-
xl: 50,
|
|
12
|
-
},
|
|
13
|
-
font: {
|
|
14
|
-
sm: 12,
|
|
15
|
-
md: 14,
|
|
16
|
-
lg: 16,
|
|
17
|
-
xl: 24,
|
|
18
|
-
},
|
|
19
|
-
icon: {
|
|
20
|
-
sm: 12,
|
|
21
|
-
md: 20,
|
|
22
|
-
lg: 30,
|
|
23
|
-
xl: 50,
|
|
24
|
-
xxl: 80,
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
exports.Fonts = {
|
|
28
|
-
Regular: 'Regular',
|
|
29
|
-
Bold: 'Bold',
|
|
30
|
-
Styled: 'Styled',
|
|
31
|
-
};
|
|
32
|
-
exports.Colors = {
|
|
33
|
-
accent: '#1976D2',
|
|
34
|
-
accentLight: '#2196F3',
|
|
35
|
-
text: '#444444',
|
|
36
|
-
caption: '#A9A9A9',
|
|
37
|
-
heading: '#222222',
|
|
38
|
-
background: '#E6E6E6',
|
|
39
|
-
forground: '#fff',
|
|
40
|
-
transparent: 'transparent',
|
|
41
|
-
semitransparent: '#111a1a1c',
|
|
42
|
-
info: '#2196F3',
|
|
43
|
-
success: '#4CAF50',
|
|
44
|
-
successBackground: '#388E3C',
|
|
45
|
-
warning: '#FFA726',
|
|
46
|
-
critical: '#F44336',
|
|
47
|
-
invert: {
|
|
48
|
-
text: '#fff',
|
|
49
|
-
caption: '#fff',
|
|
50
|
-
heading: '#fff',
|
|
51
|
-
background: '#1a1a1c'
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
exports.LightColors = exports.Colors;
|
|
55
|
-
exports.DarkColors = {
|
|
56
|
-
accent: '#1976D2',
|
|
57
|
-
accentLight: '#2196F3',
|
|
58
|
-
text: '#f2f2f2',
|
|
59
|
-
caption: '#565656',
|
|
60
|
-
heading: '#dddddd',
|
|
61
|
-
background: '#212121',
|
|
62
|
-
forground: '#191919',
|
|
63
|
-
transparent: 'transparent',
|
|
64
|
-
semitransparent: '#111a1a1c',
|
|
65
|
-
info: '#2196F3',
|
|
66
|
-
success: '#4CAF50',
|
|
67
|
-
successBackground: '#388E3C',
|
|
68
|
-
warning: '#FFA726',
|
|
69
|
-
critical: '#F44336',
|
|
70
|
-
invert: {
|
|
71
|
-
text: '#fff',
|
|
72
|
-
caption: '#fff',
|
|
73
|
-
heading: '#fff',
|
|
74
|
-
background: '#E6E6E6'
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
function extendValues(dimens, colors, fonts) {
|
|
78
|
-
return {
|
|
79
|
-
dimens: Object.assign(dimens || {}, exports.Dimens),
|
|
80
|
-
colors: Object.assign(colors || {}, exports.Colors),
|
|
81
|
-
fonts: Object.assign(fonts || {}, exports.Fonts),
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
exports.extendValues = extendValues;
|
|
85
|
-
function createStyle(dimens, colors, fonts) {
|
|
86
|
-
const Styles = react_native_1.StyleSheet.create({
|
|
87
|
-
safeAreaInset: {
|
|
88
|
-
top: dimens.space.md,
|
|
89
|
-
left: 0,
|
|
90
|
-
right: 0,
|
|
91
|
-
bottom: dimens.space.md,
|
|
92
|
-
},
|
|
93
|
-
full: {
|
|
94
|
-
height: '100%',
|
|
95
|
-
width: '100%'
|
|
96
|
-
},
|
|
97
|
-
container: {
|
|
98
|
-
marginTop: dimens.space.xl,
|
|
99
|
-
backgroundColor: colors.background,
|
|
100
|
-
},
|
|
101
|
-
center: {
|
|
102
|
-
alignContent: 'center',
|
|
103
|
-
justifyContent: 'center'
|
|
104
|
-
},
|
|
105
|
-
textHead: {
|
|
106
|
-
color: colors.text,
|
|
107
|
-
fontSize: dimens.font.xl,
|
|
108
|
-
},
|
|
109
|
-
text: {
|
|
110
|
-
fontFamily: fonts.Regular,
|
|
111
|
-
fontSize: dimens.font.md,
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
return Styles;
|
|
115
|
-
}
|
|
116
|
-
exports.createStyle = createStyle;
|
|
117
|
-
//# sourceMappingURL=Styles.js.map
|
package/src/Styles.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Styles.js","sourceRoot":"","sources":["Styles.tsx"],"names":[],"mappings":";;;AAAA,+CAA0C;AAE7B,QAAA,MAAM,GAAG;IAClB,KAAK,EAAE;QACH,EAAE,EAAE,CAAC;QACL,EAAE,EAAE,CAAC;QACL,EAAE,EAAE,EAAE;QACN,EAAE,EAAE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;YACzB,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE;SAC3B;KACJ,CAAC,CAAC;IACH,OAAO,MAAM,CAAA;AACjB,CAAC;AAlCD,kCAkCC"}
|
package/src/Text.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TextProps } from "react-native";
|
|
2
|
-
export type TextViewProps = TextProps & {
|
|
3
|
-
skipI18n?: boolean;
|
|
4
|
-
};
|
|
5
|
-
export declare function TextView(props: TextViewProps): import("react").JSX.Element;
|
|
6
|
-
export declare function Subtitle(props: TextProps): import("react").JSX.Element;
|
|
7
|
-
export declare function Title(props: TextProps): import("react").JSX.Element;
|
|
8
|
-
export declare function Caption(props: TextProps): import("react").JSX.Element;
|
package/src/Text.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Caption = exports.Title = exports.Subtitle = exports.TextView = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const react_native_1 = require("react-native");
|
|
6
|
-
const ThemeContext_1 = require("./ThemeContext");
|
|
7
|
-
function TextView(props) {
|
|
8
|
-
const theme = (0, react_1.useContext)(ThemeContext_1.ThemeContext);
|
|
9
|
-
let children = props.children;
|
|
10
|
-
if (theme.i18n && !props.skipI18n) {
|
|
11
|
-
if (children && typeof children == 'string') {
|
|
12
|
-
children = theme.i18n.t(children);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
return (<react_native_1.Text {...props} style={[{
|
|
16
|
-
flexWrap: 'wrap',
|
|
17
|
-
color: theme.colors.text,
|
|
18
|
-
padding: theme.dimens.space.sm
|
|
19
|
-
}, theme.styles.text, props.style]}>
|
|
20
|
-
{children}
|
|
21
|
-
</react_native_1.Text>);
|
|
22
|
-
}
|
|
23
|
-
exports.TextView = TextView;
|
|
24
|
-
function Subtitle(props) {
|
|
25
|
-
const theme = (0, react_1.useContext)(ThemeContext_1.ThemeContext);
|
|
26
|
-
return (<TextView {...props} style={[
|
|
27
|
-
{
|
|
28
|
-
fontSize: theme.dimens.font.lg,
|
|
29
|
-
color: theme.colors.text
|
|
30
|
-
},
|
|
31
|
-
props.style
|
|
32
|
-
]}/>);
|
|
33
|
-
}
|
|
34
|
-
exports.Subtitle = Subtitle;
|
|
35
|
-
function Title(props) {
|
|
36
|
-
const theme = (0, react_1.useContext)(ThemeContext_1.ThemeContext);
|
|
37
|
-
return (<TextView {...props} style={[
|
|
38
|
-
{
|
|
39
|
-
fontSize: theme.dimens.font.xl,
|
|
40
|
-
color: theme.colors.heading
|
|
41
|
-
},
|
|
42
|
-
props.style
|
|
43
|
-
]}/>);
|
|
44
|
-
}
|
|
45
|
-
exports.Title = Title;
|
|
46
|
-
function Caption(props) {
|
|
47
|
-
const theme = (0, react_1.useContext)(ThemeContext_1.ThemeContext);
|
|
48
|
-
return (<TextView {...props} style={[
|
|
49
|
-
{
|
|
50
|
-
fontSize: theme.dimens.font.sm,
|
|
51
|
-
color: theme.colors.caption
|
|
52
|
-
},
|
|
53
|
-
props.style
|
|
54
|
-
]}/>);
|
|
55
|
-
}
|
|
56
|
-
exports.Caption = Caption;
|
|
57
|
-
//# sourceMappingURL=Text.js.map
|
package/src/Text.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Text.js","sourceRoot":"","sources":["Text.tsx"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,+CAA+C;AAC/C,iDAA8C;AAK9C,SAAgB,QAAQ,CAAC,KAAoB;IACzC,MAAM,KAAK,GAAG,IAAA,kBAAU,EAAC,2BAAY,CAAC,CAAA;IACtC,IAAI,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAA;IAC7B,IAAI,KAAK,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;QAChC,IAAI,QAAQ,IAAI,OAAO,QAAQ,IAAI,QAAQ,EAAE,CAAC;YAC1C,QAAQ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gB,OAAO,CAAC,KAAgB;IACpC,MAAM,KAAK,GAAG,IAAA,kBAAU,EAAC,2BAAY,CAAC,CAAA;IACtC,OAAO,CACH,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC;YACxB;gBACI,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;gBAC9B,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO;aAC9B;YACD,KAAK,CAAC,KAAK;SACd,CAAC,EAAG,CACR,CAAA;AACL,CAAC;AAXD,0BAWC"}
|
package/src/ThemeContext.d.ts
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { Colors, Dimens, Fonts } from "./Styles";
|
|
2
|
-
import { randomColor } from "./utils";
|
|
3
|
-
import { I18n } from "./I18n";
|
|
4
|
-
import { EdgeInsets } from "react-native-safe-area-context";
|
|
5
|
-
declare const DEFAULT_STYLE: {
|
|
6
|
-
safeAreaInset: {
|
|
7
|
-
top: number;
|
|
8
|
-
left: number;
|
|
9
|
-
right: number;
|
|
10
|
-
bottom: number;
|
|
11
|
-
};
|
|
12
|
-
full: {
|
|
13
|
-
height: "100%";
|
|
14
|
-
width: "100%";
|
|
15
|
-
};
|
|
16
|
-
container: {
|
|
17
|
-
marginTop: number;
|
|
18
|
-
backgroundColor: string;
|
|
19
|
-
};
|
|
20
|
-
center: {
|
|
21
|
-
alignContent: "center";
|
|
22
|
-
justifyContent: "center";
|
|
23
|
-
};
|
|
24
|
-
textHead: {
|
|
25
|
-
color: string;
|
|
26
|
-
fontSize: number;
|
|
27
|
-
};
|
|
28
|
-
text: {
|
|
29
|
-
fontFamily: string;
|
|
30
|
-
fontSize: number;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
export declare class Theme {
|
|
34
|
-
appname: string;
|
|
35
|
-
styles: typeof DEFAULT_STYLE;
|
|
36
|
-
dimens: typeof Dimens;
|
|
37
|
-
colors: typeof Colors;
|
|
38
|
-
fonts: typeof Fonts;
|
|
39
|
-
i18n: I18n;
|
|
40
|
-
insets?: EdgeInsets;
|
|
41
|
-
randomColor: typeof randomColor;
|
|
42
|
-
constructor(appname?: string, colors?: {
|
|
43
|
-
accent: string;
|
|
44
|
-
accentLight: string;
|
|
45
|
-
text: string;
|
|
46
|
-
caption: string;
|
|
47
|
-
heading: string;
|
|
48
|
-
background: string;
|
|
49
|
-
forground: string;
|
|
50
|
-
transparent: string;
|
|
51
|
-
semitransparent: string;
|
|
52
|
-
info: string;
|
|
53
|
-
success: string;
|
|
54
|
-
successBackground: string;
|
|
55
|
-
warning: string;
|
|
56
|
-
critical: string;
|
|
57
|
-
invert: {
|
|
58
|
-
text: string;
|
|
59
|
-
caption: string;
|
|
60
|
-
heading: string;
|
|
61
|
-
background: string;
|
|
62
|
-
};
|
|
63
|
-
}, dimens?: {
|
|
64
|
-
space: {
|
|
65
|
-
xs: number;
|
|
66
|
-
sm: number;
|
|
67
|
-
md: number;
|
|
68
|
-
lg: number;
|
|
69
|
-
xl: number;
|
|
70
|
-
};
|
|
71
|
-
font: {
|
|
72
|
-
sm: number;
|
|
73
|
-
md: number;
|
|
74
|
-
lg: number;
|
|
75
|
-
xl: number;
|
|
76
|
-
};
|
|
77
|
-
icon: {
|
|
78
|
-
sm: number;
|
|
79
|
-
md: number;
|
|
80
|
-
lg: number;
|
|
81
|
-
xl: number;
|
|
82
|
-
xxl: number;
|
|
83
|
-
};
|
|
84
|
-
}, fonts?: {
|
|
85
|
-
Regular: string;
|
|
86
|
-
Bold: string;
|
|
87
|
-
Styled: string;
|
|
88
|
-
}, styles?: {
|
|
89
|
-
safeAreaInset: {
|
|
90
|
-
top: number;
|
|
91
|
-
left: number;
|
|
92
|
-
right: number;
|
|
93
|
-
bottom: number;
|
|
94
|
-
};
|
|
95
|
-
full: {
|
|
96
|
-
height: "100%";
|
|
97
|
-
width: "100%";
|
|
98
|
-
};
|
|
99
|
-
container: {
|
|
100
|
-
marginTop: number;
|
|
101
|
-
backgroundColor: string;
|
|
102
|
-
};
|
|
103
|
-
center: {
|
|
104
|
-
alignContent: "center";
|
|
105
|
-
justifyContent: "center";
|
|
106
|
-
};
|
|
107
|
-
textHead: {
|
|
108
|
-
color: string;
|
|
109
|
-
fontSize: number;
|
|
110
|
-
};
|
|
111
|
-
text: {
|
|
112
|
-
fontFamily: string;
|
|
113
|
-
fontSize: number;
|
|
114
|
-
};
|
|
115
|
-
}, i18n?: I18n);
|
|
116
|
-
setInsets(insets: EdgeInsets): void;
|
|
117
|
-
}
|
|
118
|
-
export declare const ThemeContext: import("react").Context<Theme>;
|
|
119
|
-
export {};
|
package/src/ThemeContext.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ThemeContext = exports.Theme = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const Styles_1 = require("./Styles");
|
|
6
|
-
const utils_1 = require("./utils");
|
|
7
|
-
const I18n_1 = require("./I18n");
|
|
8
|
-
const DEFAULT_STYLE = (0, Styles_1.createStyle)(Styles_1.Dimens, Styles_1.Colors, Styles_1.Fonts);
|
|
9
|
-
class Theme {
|
|
10
|
-
appname = '';
|
|
11
|
-
styles;
|
|
12
|
-
dimens;
|
|
13
|
-
colors;
|
|
14
|
-
fonts;
|
|
15
|
-
i18n;
|
|
16
|
-
insets;
|
|
17
|
-
randomColor = utils_1.randomColor;
|
|
18
|
-
constructor(appname = '', colors = Styles_1.Colors, dimens = Styles_1.Dimens, fonts = Styles_1.Fonts, styles = DEFAULT_STYLE, i18n = I18n_1._i18n) {
|
|
19
|
-
this.appname = appname;
|
|
20
|
-
this.fonts = fonts ?? Styles_1.Fonts;
|
|
21
|
-
this.colors = colors ?? Styles_1.Colors;
|
|
22
|
-
this.dimens = dimens ?? Styles_1.Dimens;
|
|
23
|
-
this.fonts = fonts ?? Styles_1.Fonts;
|
|
24
|
-
this.styles = styles ?? (0, Styles_1.createStyle)(this.dimens, this.colors, this.fonts);
|
|
25
|
-
this.i18n = i18n;
|
|
26
|
-
}
|
|
27
|
-
setInsets(insets) {
|
|
28
|
-
this.insets = insets;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
exports.Theme = Theme;
|
|
32
|
-
exports.ThemeContext = (0, react_1.createContext)(new Theme());
|
|
33
|
-
//# sourceMappingURL=ThemeContext.js.map
|
package/src/ThemeContext.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeContext.js","sourceRoot":"","sources":["ThemeContext.ts"],"names":[],"mappings":";;;AAAA,iCAAqC;AACrC,qCAAsF;AACtF,mCAAqC;AACrC,iCAAoC;AAEpC,MAAM,aAAa,GAAG,IAAA,oBAAW,EAAC,eAAM,EAAE,eAAM,EAAE,cAAK,CAAC,CAAA;AACxD,MAAa,KAAK;IACd,OAAO,GAAW,EAAE,CAAA;IACpB,MAAM,CAAsB;IAC5B,MAAM,CAAe;IACrB,MAAM,CAAe;IACrB,KAAK,CAAc;IACnB,IAAI,CAAM;IACV,MAAM,CAAa;IACnB,WAAW,GAAG,mBAAW,CAAA;IACzB,YAAY,OAAO,GAAG,EAAE,EACpB,MAAM,GAAG,eAAM,EACf,MAAM,GAAG,eAAM,EACf,KAAK,GAAG,cAAK,EACb,MAAM,GAAG,aAAa,EACtB,IAAI,GAAG,YAAK;QACZ,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,KAAK,GAAG,KAAK,IAAI,cAAK,CAAA;QAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,IAAI,eAAM,CAAA;QAC9B,IAAI,CAAC,MAAM,GAAG,MAAM,IAAI,eAAM,CAAA;QAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,IAAI,cAAK,CAAA;QAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,IAAI,IAAA,oBAAW,EAAC,IAAI,CAAC,MAAM,EAAE,IAAI,C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