react-native-shared-components 0.3.3 → 0.3.5
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/lib/module/assets/theme.js +227 -0
- package/lib/module/assets/theme.js.map +1 -0
- package/lib/module/components/BaseButton/index.js +15 -34
- package/lib/module/components/BaseButton/index.js.map +1 -1
- package/lib/module/components/BaseContainer/index.js +3 -6
- package/lib/module/components/BaseContainer/index.js.map +1 -1
- package/lib/module/components/BaseText/index.js +53 -23
- package/lib/module/components/BaseText/index.js.map +1 -1
- package/lib/module/core/KadoProvider/index.js +27 -0
- package/lib/module/core/KadoProvider/index.js.map +1 -0
- package/lib/module/core/index.js +4 -0
- package/lib/module/core/index.js.map +1 -0
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/assets/theme.d.ts +225 -0
- package/lib/typescript/src/assets/theme.d.ts.map +1 -0
- package/lib/typescript/src/components/BaseButton/index.d.ts.map +1 -1
- package/lib/typescript/src/components/BaseContainer/index.d.ts +1 -3
- package/lib/typescript/src/components/BaseContainer/index.d.ts.map +1 -1
- package/lib/typescript/src/components/BaseText/index.d.ts +43 -8
- package/lib/typescript/src/components/BaseText/index.d.ts.map +1 -1
- package/lib/typescript/src/core/KadoProvider/index.d.ts +19 -0
- package/lib/typescript/src/core/KadoProvider/index.d.ts.map +1 -0
- package/lib/typescript/src/core/index.d.ts +2 -0
- package/lib/typescript/src/core/index.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +4 -3
- package/src/assets/theme.ts +285 -0
- package/src/components/BaseButton/index.tsx +12 -35
- package/src/components/BaseContainer/index.tsx +2 -6
- package/src/components/BaseText/index.tsx +56 -34
- package/src/core/KadoProvider/index.tsx +41 -0
- package/src/core/index.tsx +1 -0
- package/src/index.tsx +1 -0
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
export declare const typographyDefault: {
|
|
2
|
+
'fontFamilies/productFont': string;
|
|
3
|
+
'fontSizes/fs11': number;
|
|
4
|
+
'fontSizes/fs12': number;
|
|
5
|
+
'fontSizes/fs13': number;
|
|
6
|
+
'fontSizes/fs14': number;
|
|
7
|
+
'fontSizes/fs16': number;
|
|
8
|
+
'fontSizes/fs18': number;
|
|
9
|
+
'fontSizes/fs20': number;
|
|
10
|
+
'fontSizes/fs24': number;
|
|
11
|
+
'fontSizes/fs28': number;
|
|
12
|
+
'fontSizes/fs30': number;
|
|
13
|
+
'fontSizes/fs36': number;
|
|
14
|
+
'fontSizes/fs38': number;
|
|
15
|
+
'fontWeights/regular': string;
|
|
16
|
+
'fontWeights/medium': string;
|
|
17
|
+
'fontWeights/semiBold': string;
|
|
18
|
+
'fontWeights/bold': string;
|
|
19
|
+
'lineHeights/lh16': number;
|
|
20
|
+
'lineHeights/lh18': number;
|
|
21
|
+
'lineHeights/lh20': number;
|
|
22
|
+
'lineHeights/lh24': number;
|
|
23
|
+
'lineHeights/lh26': number;
|
|
24
|
+
'lineHeights/lh28': number;
|
|
25
|
+
'lineHeights/lh30': number;
|
|
26
|
+
'lineHeights/lh32': number;
|
|
27
|
+
'lineHeights/lh38': number;
|
|
28
|
+
'lineHeights/lh44': number;
|
|
29
|
+
'lineHeights/lh60': number;
|
|
30
|
+
'lineHeights/lh90': number;
|
|
31
|
+
'lineHeights/lh72': number;
|
|
32
|
+
'text12/normal': {
|
|
33
|
+
fontFamily: string;
|
|
34
|
+
fontWeight: string;
|
|
35
|
+
lineHeight: string;
|
|
36
|
+
fontSize: string;
|
|
37
|
+
};
|
|
38
|
+
'text12/medium': {
|
|
39
|
+
fontFamily: string;
|
|
40
|
+
fontWeight: string;
|
|
41
|
+
lineHeight: string;
|
|
42
|
+
fontSize: string;
|
|
43
|
+
};
|
|
44
|
+
'text12/semiBold': {
|
|
45
|
+
fontFamily: string;
|
|
46
|
+
fontWeight: string;
|
|
47
|
+
lineHeight: string;
|
|
48
|
+
fontSize: string;
|
|
49
|
+
};
|
|
50
|
+
'text12/bold': {
|
|
51
|
+
fontFamily: string;
|
|
52
|
+
fontWeight: string;
|
|
53
|
+
lineHeight: string;
|
|
54
|
+
fontSize: string;
|
|
55
|
+
};
|
|
56
|
+
'text14/normal': {
|
|
57
|
+
fontFamily: string;
|
|
58
|
+
fontWeight: string;
|
|
59
|
+
lineHeight: string;
|
|
60
|
+
fontSize: string;
|
|
61
|
+
};
|
|
62
|
+
'text14/medium': {
|
|
63
|
+
fontFamily: string;
|
|
64
|
+
fontWeight: string;
|
|
65
|
+
lineHeight: string;
|
|
66
|
+
fontSize: string;
|
|
67
|
+
};
|
|
68
|
+
'text14/semiBold': {
|
|
69
|
+
fontFamily: string;
|
|
70
|
+
fontWeight: string;
|
|
71
|
+
lineHeight: string;
|
|
72
|
+
fontSize: string;
|
|
73
|
+
};
|
|
74
|
+
'text14/bold': {
|
|
75
|
+
fontFamily: string;
|
|
76
|
+
fontWeight: string;
|
|
77
|
+
lineHeight: string;
|
|
78
|
+
fontSize: string;
|
|
79
|
+
};
|
|
80
|
+
'text16/normal': {
|
|
81
|
+
fontFamily: string;
|
|
82
|
+
fontWeight: string;
|
|
83
|
+
lineHeight: string;
|
|
84
|
+
fontSize: string;
|
|
85
|
+
};
|
|
86
|
+
'text16/medium': {
|
|
87
|
+
fontFamily: string;
|
|
88
|
+
fontWeight: string;
|
|
89
|
+
lineHeight: string;
|
|
90
|
+
fontSize: string;
|
|
91
|
+
};
|
|
92
|
+
'text16/semiBold': {
|
|
93
|
+
fontFamily: string;
|
|
94
|
+
fontWeight: string;
|
|
95
|
+
lineHeight: string;
|
|
96
|
+
fontSize: string;
|
|
97
|
+
};
|
|
98
|
+
'text16/bold': {
|
|
99
|
+
fontFamily: string;
|
|
100
|
+
fontWeight: string;
|
|
101
|
+
lineHeight: string;
|
|
102
|
+
fontSize: string;
|
|
103
|
+
};
|
|
104
|
+
'text18/normal': {
|
|
105
|
+
fontFamily: string;
|
|
106
|
+
fontWeight: string;
|
|
107
|
+
lineHeight: string;
|
|
108
|
+
fontSize: string;
|
|
109
|
+
};
|
|
110
|
+
'text18/medium': {
|
|
111
|
+
fontFamily: string;
|
|
112
|
+
fontWeight: string;
|
|
113
|
+
lineHeight: string;
|
|
114
|
+
fontSize: string;
|
|
115
|
+
};
|
|
116
|
+
'text18/semiBold': {
|
|
117
|
+
fontFamily: string;
|
|
118
|
+
fontWeight: string;
|
|
119
|
+
lineHeight: string;
|
|
120
|
+
fontSize: string;
|
|
121
|
+
};
|
|
122
|
+
'text18/bold': {
|
|
123
|
+
fontFamily: string;
|
|
124
|
+
fontWeight: string;
|
|
125
|
+
lineHeight: string;
|
|
126
|
+
fontSize: string;
|
|
127
|
+
};
|
|
128
|
+
'text20/normal': {
|
|
129
|
+
fontFamily: string;
|
|
130
|
+
fontWeight: string;
|
|
131
|
+
lineHeight: string;
|
|
132
|
+
fontSize: string;
|
|
133
|
+
};
|
|
134
|
+
'text20/medium': {
|
|
135
|
+
fontFamily: string;
|
|
136
|
+
fontWeight: string;
|
|
137
|
+
lineHeight: string;
|
|
138
|
+
fontSize: string;
|
|
139
|
+
};
|
|
140
|
+
'text20/semiBold': {
|
|
141
|
+
fontFamily: string;
|
|
142
|
+
fontWeight: string;
|
|
143
|
+
lineHeight: string;
|
|
144
|
+
fontSize: string;
|
|
145
|
+
};
|
|
146
|
+
'text20/bold': {
|
|
147
|
+
fontFamily: string;
|
|
148
|
+
fontWeight: string;
|
|
149
|
+
lineHeight: string;
|
|
150
|
+
fontSize: string;
|
|
151
|
+
};
|
|
152
|
+
'text24/normal': {
|
|
153
|
+
fontFamily: string;
|
|
154
|
+
fontWeight: string;
|
|
155
|
+
lineHeight: string;
|
|
156
|
+
fontSize: string;
|
|
157
|
+
};
|
|
158
|
+
'text24/medium': {
|
|
159
|
+
fontFamily: string;
|
|
160
|
+
fontWeight: string;
|
|
161
|
+
lineHeight: string;
|
|
162
|
+
fontSize: string;
|
|
163
|
+
};
|
|
164
|
+
'text24/semiBold': {
|
|
165
|
+
fontFamily: string;
|
|
166
|
+
fontWeight: string;
|
|
167
|
+
lineHeight: string;
|
|
168
|
+
fontSize: string;
|
|
169
|
+
};
|
|
170
|
+
'text24/bold': {
|
|
171
|
+
fontFamily: string;
|
|
172
|
+
fontWeight: string;
|
|
173
|
+
lineHeight: string;
|
|
174
|
+
fontSize: string;
|
|
175
|
+
};
|
|
176
|
+
'text30/normal': {
|
|
177
|
+
fontFamily: string;
|
|
178
|
+
fontWeight: string;
|
|
179
|
+
fontSize: string;
|
|
180
|
+
lineHeight: string;
|
|
181
|
+
};
|
|
182
|
+
'text30/medium': {
|
|
183
|
+
fontFamily: string;
|
|
184
|
+
fontWeight: string;
|
|
185
|
+
lineHeight: string;
|
|
186
|
+
fontSize: string;
|
|
187
|
+
};
|
|
188
|
+
'text30/semiBold': {
|
|
189
|
+
fontFamily: string;
|
|
190
|
+
fontWeight: string;
|
|
191
|
+
lineHeight: string;
|
|
192
|
+
fontSize: string;
|
|
193
|
+
};
|
|
194
|
+
'text30/bold': {
|
|
195
|
+
fontFamily: string;
|
|
196
|
+
fontWeight: string;
|
|
197
|
+
lineHeight: string;
|
|
198
|
+
fontSize: string;
|
|
199
|
+
};
|
|
200
|
+
'tex36/normal': {
|
|
201
|
+
fontFamily: string;
|
|
202
|
+
fontWeight: string;
|
|
203
|
+
lineHeight: string;
|
|
204
|
+
fontSize: string;
|
|
205
|
+
};
|
|
206
|
+
'text36/medium': {
|
|
207
|
+
fontFamily: string;
|
|
208
|
+
fontWeight: string;
|
|
209
|
+
lineHeight: string;
|
|
210
|
+
fontSize: string;
|
|
211
|
+
};
|
|
212
|
+
'text36/semiBold': {
|
|
213
|
+
fontFamily: string;
|
|
214
|
+
fontWeight: string;
|
|
215
|
+
lineHeight: string;
|
|
216
|
+
fontSize: string;
|
|
217
|
+
};
|
|
218
|
+
'text36/bold': {
|
|
219
|
+
fontFamily: string;
|
|
220
|
+
fontWeight: string;
|
|
221
|
+
lineHeight: string;
|
|
222
|
+
fontSize: string;
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../src/assets/theme.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4R7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/BaseButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/BaseButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,qBAAqB,EAE3B,MAAM,cAAc,CAAC;AAItB,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,aAAa,GAAG,KAAK,GAAG,cAAc,CAAC;AAC/E,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AACvD,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE3C,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,qBAAqB,EAAE,OAAO,CAAC;IAC3E,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAqGhD,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type ColorValue, type TextStyle, type ViewStyle, type KeyboardAvoidingViewProps } from 'react-native';
|
|
2
2
|
import { type ReactNode } from 'react';
|
|
3
|
-
import { type BaseTextType } from '../BaseText';
|
|
4
3
|
export interface IBaseContainer {
|
|
5
4
|
title?: string;
|
|
6
5
|
center?: ReactNode;
|
|
@@ -18,7 +17,6 @@ export interface IBaseContainer {
|
|
|
18
17
|
backgroundColorStatusBar?: ColorValue | undefined;
|
|
19
18
|
edges?: Array<'top' | 'bottom' | 'left' | 'right'>;
|
|
20
19
|
keyboardAvoidingViewProps?: Omit<KeyboardAvoidingViewProps, 'children'>;
|
|
21
|
-
type?: BaseTextType;
|
|
22
20
|
}
|
|
23
|
-
export declare const BaseContainer: ({ style, title, left, right, center, onPressLeft, onPressRight, onPressCenter, styleTitle, isHeader, children, backgroundColorStatusBar, barStyle, styleHeader, edges, keyboardAvoidingViewProps,
|
|
21
|
+
export declare const BaseContainer: ({ style, title, left, right, center, onPressLeft, onPressRight, onPressCenter, styleTitle, isHeader, children, backgroundColorStatusBar, barStyle, styleHeader, edges, keyboardAvoidingViewProps, }: IBaseContainer) => import("react/jsx-runtime").JSX.Element;
|
|
24
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/BaseContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,yBAAyB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/BaseContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,yBAAyB,EAE/B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,GAAG,eAAe,GAAG,cAAc,CAAC;IACxD,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,wBAAwB,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAClD,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IACnD,yBAAyB,CAAC,EAAE,IAAI,CAAC,yBAAyB,EAAE,UAAU,CAAC,CAAC;CACzE;AAED,eAAO,MAAM,aAAa,GAAI,qMAiB3B,cAAc,4CAmDhB,CAAC"}
|
|
@@ -1,10 +1,45 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { type
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { type TextProps, type TextStyle } from 'react-native';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
export declare const BaseTextTypes: {
|
|
4
|
+
'text12/normal': string;
|
|
5
|
+
'text12/medium': string;
|
|
6
|
+
'text12/semiBold': string;
|
|
7
|
+
'text12/bold': string;
|
|
8
|
+
'text14/normal': string;
|
|
9
|
+
'text14/medium': string;
|
|
10
|
+
'text14/semiBold': string;
|
|
11
|
+
'text14/bold': string;
|
|
12
|
+
'text16/normal': string;
|
|
13
|
+
'text16/medium': string;
|
|
14
|
+
'text16/semiBold': string;
|
|
15
|
+
'text16/bold': string;
|
|
16
|
+
'text18/normal': string;
|
|
17
|
+
'text18/medium': string;
|
|
18
|
+
'text18/semiBold': string;
|
|
19
|
+
'text18/bold': string;
|
|
20
|
+
'text20/normal': string;
|
|
21
|
+
'text20/medium': string;
|
|
22
|
+
'text20/semiBold': string;
|
|
23
|
+
'text20/bold': string;
|
|
24
|
+
'text24/normal': string;
|
|
25
|
+
'text24/medium': string;
|
|
26
|
+
'text24/semiBold': string;
|
|
27
|
+
'text24/bold': string;
|
|
28
|
+
'text30/normal': string;
|
|
29
|
+
'text30/medium': string;
|
|
30
|
+
'text30/semiBold': string;
|
|
31
|
+
'text30/bold': string;
|
|
32
|
+
'text36/normal': string;
|
|
33
|
+
'text36/medium': string;
|
|
34
|
+
'text36/semiBold': string;
|
|
35
|
+
'text36/bold': string;
|
|
36
|
+
};
|
|
37
|
+
export type EBaseTextType = keyof typeof BaseTextTypes;
|
|
38
|
+
interface IBaseText extends TextProps {
|
|
39
|
+
type: string | EBaseTextType;
|
|
40
|
+
children?: ReactNode;
|
|
41
|
+
styleText?: TextStyle;
|
|
8
42
|
}
|
|
9
|
-
export declare const BaseText:
|
|
43
|
+
export declare const BaseText: ({ children, type, styleText, ...props }: IBaseText) => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export {};
|
|
10
45
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/BaseText/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/BaseText/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EAAW,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGhD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCzB,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,aAAa,CAAC;AACvD,UAAU,SAAU,SAAQ,SAAS;IACnC,IAAI,EAAE,MAAM,GAAG,aAAa,CAAC;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AACD,eAAO,MAAM,QAAQ,GAAI,yCAKtB,SAAS,4CAeX,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type dynamicType = {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
};
|
|
5
|
+
interface ThemeDynamicPart {
|
|
6
|
+
[key: string]: dynamicType;
|
|
7
|
+
}
|
|
8
|
+
export interface ThemeContextType extends ThemeDynamicPart {
|
|
9
|
+
typography: dynamicType;
|
|
10
|
+
}
|
|
11
|
+
export interface IThemeProvider {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
value: ThemeContextType;
|
|
14
|
+
}
|
|
15
|
+
export declare const ThemeContext: React.Context<ThemeContextType | undefined>;
|
|
16
|
+
export declare const ThemeProvider: ({ children, value }: IThemeProvider) => import("react/jsx-runtime").JSX.Element | null;
|
|
17
|
+
export declare const useTheme: () => ThemeContextType;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/KadoProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAGzD,KAAK,WAAW,GAAG;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AACF,UAAU,gBAAgB;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAC;CAC5B;AAED,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;IACxD,UAAU,EAAE,WAAW,CAAC;CACzB;AACD,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,gBAAgB,CAAC;CACzB;AAMD,eAAO,MAAM,YAAY,6CAExB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,qBAAqB,cAAc,mDAMhE,CAAC;AAEF,eAAO,MAAM,QAAQ,QAAO,gBAM3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/index.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-shared-components",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "shared-components",
|
|
5
|
-
|
|
5
|
+
"source": "./src/index.tsx",
|
|
6
6
|
"main": "./src/index.tsx",
|
|
7
7
|
"module": "./src/index.tsx",
|
|
8
8
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -154,6 +154,7 @@
|
|
|
154
154
|
"dependencies": {
|
|
155
155
|
"react-native-iphone-screen-helper": "^2.1.2",
|
|
156
156
|
"react-native-paper": "^5.13.3",
|
|
157
|
-
"react-native-safe-area-context": "^5.4.0"
|
|
157
|
+
"react-native-safe-area-context": "^5.4.0",
|
|
158
|
+
"react-native-shared-components": "^0.3.3"
|
|
158
159
|
}
|
|
159
160
|
}
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
export const typographyDefault = {
|
|
2
|
+
'fontFamilies/productFont': 'Manrope',
|
|
3
|
+
|
|
4
|
+
'fontSizes/fs11': 11,
|
|
5
|
+
|
|
6
|
+
'fontSizes/fs12': 12,
|
|
7
|
+
|
|
8
|
+
'fontSizes/fs13': 12,
|
|
9
|
+
|
|
10
|
+
'fontSizes/fs14': 14,
|
|
11
|
+
|
|
12
|
+
'fontSizes/fs16': 16,
|
|
13
|
+
|
|
14
|
+
'fontSizes/fs18': 18,
|
|
15
|
+
|
|
16
|
+
'fontSizes/fs20': 20,
|
|
17
|
+
|
|
18
|
+
'fontSizes/fs24': 24,
|
|
19
|
+
|
|
20
|
+
'fontSizes/fs28': 28,
|
|
21
|
+
|
|
22
|
+
'fontSizes/fs30': 30,
|
|
23
|
+
|
|
24
|
+
'fontSizes/fs36': 36,
|
|
25
|
+
|
|
26
|
+
'fontSizes/fs38': 38,
|
|
27
|
+
|
|
28
|
+
'fontWeights/regular': '400',
|
|
29
|
+
|
|
30
|
+
'fontWeights/medium': '500',
|
|
31
|
+
|
|
32
|
+
'fontWeights/semiBold': '600',
|
|
33
|
+
|
|
34
|
+
'fontWeights/bold': '700',
|
|
35
|
+
|
|
36
|
+
'lineHeights/lh16': 16,
|
|
37
|
+
|
|
38
|
+
'lineHeights/lh18': 18,
|
|
39
|
+
|
|
40
|
+
'lineHeights/lh20': 20,
|
|
41
|
+
|
|
42
|
+
'lineHeights/lh24': 24,
|
|
43
|
+
|
|
44
|
+
'lineHeights/lh26': 26,
|
|
45
|
+
|
|
46
|
+
'lineHeights/lh28': 28,
|
|
47
|
+
|
|
48
|
+
'lineHeights/lh30': 30,
|
|
49
|
+
|
|
50
|
+
'lineHeights/lh32': 32,
|
|
51
|
+
|
|
52
|
+
'lineHeights/lh38': 38,
|
|
53
|
+
|
|
54
|
+
'lineHeights/lh44': 44,
|
|
55
|
+
|
|
56
|
+
'lineHeights/lh60': 60,
|
|
57
|
+
|
|
58
|
+
'lineHeights/lh90': 90,
|
|
59
|
+
|
|
60
|
+
'lineHeights/lh72': 72,
|
|
61
|
+
|
|
62
|
+
'text12/normal': {
|
|
63
|
+
fontFamily: 'fontFamilies/productFont',
|
|
64
|
+
fontWeight: 'fontWeights/regular',
|
|
65
|
+
lineHeight: 'lineHeights/lh16',
|
|
66
|
+
fontSize: 'fontSizes/fs13',
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
'text12/medium': {
|
|
70
|
+
fontFamily: 'fontFamilies/productFont',
|
|
71
|
+
fontWeight: 'fontWeights/medium',
|
|
72
|
+
lineHeight: 'lineHeights/lh16',
|
|
73
|
+
fontSize: 'fontSizes/fs12',
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
'text12/semiBold': {
|
|
77
|
+
fontFamily: 'fontFamilies/productFont',
|
|
78
|
+
fontWeight: 'fontWeights/semiBold',
|
|
79
|
+
lineHeight: 'lineHeights/lh16',
|
|
80
|
+
fontSize: 'fontSizes/fs12',
|
|
81
|
+
},
|
|
82
|
+
|
|
83
|
+
'text12/bold': {
|
|
84
|
+
fontFamily: 'fontFamilies/productFont',
|
|
85
|
+
fontWeight: 'fontWeights/bold',
|
|
86
|
+
lineHeight: 'lineHeights/lh16',
|
|
87
|
+
fontSize: 'fontSizes/fs12',
|
|
88
|
+
},
|
|
89
|
+
|
|
90
|
+
'text14/normal': {
|
|
91
|
+
fontFamily: 'fontFamilies/productFont',
|
|
92
|
+
fontWeight: 'fontWeights/regular',
|
|
93
|
+
lineHeight: 'lineHeights/lh20',
|
|
94
|
+
fontSize: 'fontSizes/fs14',
|
|
95
|
+
},
|
|
96
|
+
|
|
97
|
+
'text14/medium': {
|
|
98
|
+
fontFamily: 'fontFamilies/productFont',
|
|
99
|
+
fontWeight: 'fontWeights/medium',
|
|
100
|
+
lineHeight: 'lineHeights/lh20',
|
|
101
|
+
fontSize: 'fontSizes/fs14',
|
|
102
|
+
},
|
|
103
|
+
|
|
104
|
+
'text14/semiBold': {
|
|
105
|
+
fontFamily: 'fontFamilies/productFont',
|
|
106
|
+
fontWeight: 'fontWeights/semiBold',
|
|
107
|
+
lineHeight: 'lineHeights/lh20',
|
|
108
|
+
fontSize: 'fontSizes/fs14',
|
|
109
|
+
},
|
|
110
|
+
|
|
111
|
+
'text14/bold': {
|
|
112
|
+
fontFamily: 'fontFamilies/productFont',
|
|
113
|
+
fontWeight: 'fontWeights/bold',
|
|
114
|
+
lineHeight: 'lineHeights/lh20',
|
|
115
|
+
fontSize: 'fontSizes/fs14',
|
|
116
|
+
},
|
|
117
|
+
|
|
118
|
+
'text16/normal': {
|
|
119
|
+
fontFamily: 'fontFamilies/productFont',
|
|
120
|
+
fontWeight: 'fontWeights/regular',
|
|
121
|
+
lineHeight: 'lineHeights/lh24',
|
|
122
|
+
fontSize: 'fontSizes/fs16',
|
|
123
|
+
},
|
|
124
|
+
|
|
125
|
+
'text16/medium': {
|
|
126
|
+
fontFamily: 'fontFamilies/productFont',
|
|
127
|
+
fontWeight: 'fontWeights/medium',
|
|
128
|
+
lineHeight: 'lineHeights/lh24',
|
|
129
|
+
fontSize: 'fontSizes/fs16',
|
|
130
|
+
},
|
|
131
|
+
|
|
132
|
+
'text16/semiBold': {
|
|
133
|
+
fontFamily: 'fontFamilies/productFont',
|
|
134
|
+
fontWeight: 'fontWeights/semiBold',
|
|
135
|
+
lineHeight: 'lineHeights/lh24',
|
|
136
|
+
fontSize: 'fontSizes/fs16',
|
|
137
|
+
},
|
|
138
|
+
|
|
139
|
+
'text16/bold': {
|
|
140
|
+
fontFamily: 'fontFamilies/productFont',
|
|
141
|
+
fontWeight: 'fontWeights/bold',
|
|
142
|
+
lineHeight: 'lineHeights/lh24',
|
|
143
|
+
fontSize: 'fontSizes/fs16',
|
|
144
|
+
},
|
|
145
|
+
|
|
146
|
+
'text18/normal': {
|
|
147
|
+
fontFamily: 'fontFamilies/productFont',
|
|
148
|
+
fontWeight: 'fontWeights/regular',
|
|
149
|
+
lineHeight: 'lineHeights/lh26',
|
|
150
|
+
fontSize: 'fontSizes/fs18',
|
|
151
|
+
},
|
|
152
|
+
|
|
153
|
+
'text18/medium': {
|
|
154
|
+
fontFamily: 'fontFamilies/productFont',
|
|
155
|
+
fontWeight: 'fontWeights/medium',
|
|
156
|
+
lineHeight: 'lineHeights/lh26',
|
|
157
|
+
fontSize: 'fontSizes/fs18',
|
|
158
|
+
},
|
|
159
|
+
|
|
160
|
+
'text18/semiBold': {
|
|
161
|
+
fontFamily: 'fontFamilies/productFont',
|
|
162
|
+
fontWeight: 'fontWeights/semiBold',
|
|
163
|
+
lineHeight: 'lineHeights/lh26',
|
|
164
|
+
fontSize: 'fontSizes/fs18',
|
|
165
|
+
},
|
|
166
|
+
|
|
167
|
+
'text18/bold': {
|
|
168
|
+
fontFamily: 'fontFamilies/productFont',
|
|
169
|
+
fontWeight: 'fontWeights/bold',
|
|
170
|
+
lineHeight: 'lineHeights/lh26',
|
|
171
|
+
fontSize: 'fontSizes/fs18',
|
|
172
|
+
},
|
|
173
|
+
|
|
174
|
+
'text20/normal': {
|
|
175
|
+
fontFamily: 'fontFamilies/productFont',
|
|
176
|
+
fontWeight: 'fontWeights/regular',
|
|
177
|
+
lineHeight: 'lineHeights/lh28',
|
|
178
|
+
fontSize: 'fontSizes/fs20',
|
|
179
|
+
},
|
|
180
|
+
|
|
181
|
+
'text20/medium': {
|
|
182
|
+
fontFamily: 'fontFamilies/productFont',
|
|
183
|
+
fontWeight: 'fontWeights/medium',
|
|
184
|
+
lineHeight: 'lineHeights/lh28',
|
|
185
|
+
fontSize: 'fontSizes/fs20',
|
|
186
|
+
},
|
|
187
|
+
|
|
188
|
+
'text20/semiBold': {
|
|
189
|
+
fontFamily: 'fontFamilies/productFont',
|
|
190
|
+
fontWeight: 'fontWeights/semiBold',
|
|
191
|
+
lineHeight: 'lineHeights/lh28',
|
|
192
|
+
fontSize: 'fontSizes/fs20',
|
|
193
|
+
},
|
|
194
|
+
|
|
195
|
+
'text20/bold': {
|
|
196
|
+
fontFamily: 'fontFamilies/productFont',
|
|
197
|
+
fontWeight: 'fontWeights/bold',
|
|
198
|
+
lineHeight: 'lineHeights/lh28',
|
|
199
|
+
fontSize: 'fontSizes/fs20',
|
|
200
|
+
},
|
|
201
|
+
|
|
202
|
+
'text24/normal': {
|
|
203
|
+
fontFamily: 'fontFamilies/productFont',
|
|
204
|
+
fontWeight: 'fontWeights/regular',
|
|
205
|
+
lineHeight: 'lineHeights/lh32',
|
|
206
|
+
fontSize: 'fontSizes/fs24',
|
|
207
|
+
},
|
|
208
|
+
|
|
209
|
+
'text24/medium': {
|
|
210
|
+
fontFamily: 'fontFamilies/productFont',
|
|
211
|
+
fontWeight: 'fontWeights/medium',
|
|
212
|
+
lineHeight: 'lineHeights/lh32',
|
|
213
|
+
fontSize: 'fontSizes/fs24',
|
|
214
|
+
},
|
|
215
|
+
|
|
216
|
+
'text24/semiBold': {
|
|
217
|
+
fontFamily: 'fontFamilies/productFont',
|
|
218
|
+
fontWeight: 'fontWeights/semiBold',
|
|
219
|
+
lineHeight: 'lineHeights/lh32',
|
|
220
|
+
fontSize: 'fontSizes/fs24',
|
|
221
|
+
},
|
|
222
|
+
|
|
223
|
+
'text24/bold': {
|
|
224
|
+
fontFamily: 'fontFamilies/productFont',
|
|
225
|
+
fontWeight: 'fontWeights/bold',
|
|
226
|
+
lineHeight: 'lineHeights/lh32',
|
|
227
|
+
fontSize: 'fontSizes/fs24',
|
|
228
|
+
},
|
|
229
|
+
|
|
230
|
+
'text30/normal': {
|
|
231
|
+
fontFamily: 'fontFamilies/productFont',
|
|
232
|
+
fontWeight: 'fontWeights/regular',
|
|
233
|
+
fontSize: 'fontSizes/fs30',
|
|
234
|
+
lineHeight: 'lineHeights/lh38',
|
|
235
|
+
},
|
|
236
|
+
|
|
237
|
+
'text30/medium': {
|
|
238
|
+
fontFamily: 'fontFamilies/productFont',
|
|
239
|
+
fontWeight: 'fontWeights/medium',
|
|
240
|
+
lineHeight: 'lineHeights/lh38',
|
|
241
|
+
fontSize: 'fontSizes/fs30',
|
|
242
|
+
},
|
|
243
|
+
|
|
244
|
+
'text30/semiBold': {
|
|
245
|
+
fontFamily: 'fontFamilies/productFont',
|
|
246
|
+
fontWeight: 'fontWeights/semiBold',
|
|
247
|
+
lineHeight: 'lineHeights/lh38',
|
|
248
|
+
fontSize: 'fontSizes/fs30',
|
|
249
|
+
},
|
|
250
|
+
|
|
251
|
+
'text30/bold': {
|
|
252
|
+
fontFamily: 'fontFamilies/productFont',
|
|
253
|
+
fontWeight: 'fontWeights/bold',
|
|
254
|
+
lineHeight: 'lineHeights/lh38',
|
|
255
|
+
fontSize: 'fontSizes/fs30',
|
|
256
|
+
},
|
|
257
|
+
|
|
258
|
+
'tex36/normal': {
|
|
259
|
+
fontFamily: 'fontFamilies/productFont',
|
|
260
|
+
fontWeight: 'fontWeights/regular',
|
|
261
|
+
lineHeight: 'lineHeights/lh44',
|
|
262
|
+
fontSize: 'fontSizes/fs36',
|
|
263
|
+
},
|
|
264
|
+
|
|
265
|
+
'text36/medium': {
|
|
266
|
+
fontFamily: 'fontFamilies/productFont',
|
|
267
|
+
fontWeight: 'fontWeights/medium',
|
|
268
|
+
lineHeight: 'lineHeights/lh44',
|
|
269
|
+
fontSize: 'fontSizes/fs36',
|
|
270
|
+
},
|
|
271
|
+
|
|
272
|
+
'text36/semiBold': {
|
|
273
|
+
fontFamily: 'fontFamilies/productFont',
|
|
274
|
+
fontWeight: 'fontWeights/semiBold',
|
|
275
|
+
lineHeight: 'lineHeights/lh44',
|
|
276
|
+
fontSize: 'fontSizes/fs36',
|
|
277
|
+
},
|
|
278
|
+
|
|
279
|
+
'text36/bold': {
|
|
280
|
+
fontFamily: 'fontFamilies/productFont',
|
|
281
|
+
fontWeight: 'fontWeights/bold',
|
|
282
|
+
lineHeight: 'lineHeights/lh44',
|
|
283
|
+
fontSize: 'fontSizes/fs36',
|
|
284
|
+
},
|
|
285
|
+
};
|