voirjs-native 1.0.0
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/.tabrisignore +7 -0
- package/LICENSE +28 -0
- package/README.md +450 -0
- package/cordova/config.xml +11 -0
- package/dist/voir.js +1 -0
- package/logo-voir.png +0 -0
- package/package.json +43 -0
- package/theme.md +344 -0
- package/types/$view.d.ts +1 -0
- package/types/Bind.d.ts +5 -0
- package/types/Border.d.ts +8 -0
- package/types/For.d.ts +6 -0
- package/types/Fragment.d.ts +41 -0
- package/types/Group.d.ts +5 -0
- package/types/Modal.d.ts +1 -0
- package/types/NavItem.d.ts +9 -0
- package/types/Navigation.d.ts +35 -0
- package/types/Screen.d.ts +9 -0
- package/types/Snackbar.d.ts +1 -0
- package/types/Toast.d.ts +1 -0
- package/types/animation.d.ts +8 -0
- package/types/native.d.ts +28 -0
- package/types/navlayout.d.ts +17 -0
- package/types/preference/AbstractCheked.d.ts +20 -0
- package/types/preference/AbstractItemPreference.d.ts +24 -0
- package/types/preference/CheckBoxPreference.d.ts +5 -0
- package/types/preference/ListPreference.d.ts +9 -0
- package/types/preference/PreferenceScreen.d.ts +7 -0
- package/types/preference/SwitchPreference.d.ts +5 -0
- package/types/preference/TextPreference.d.ts +4 -0
- package/types/preference/index.d.ts +6 -0
- package/types/preference/storage.d.ts +5 -0
- package/types/signal.d.ts +15 -0
- package/types/stack.d.ts +18 -0
- package/types/themes/default.d.ts +309 -0
- package/types/themes/registry.d.ts +44 -0
- package/types/themes/setup.d.ts +1 -0
- package/types/utils.d.ts +21 -0
- package/types/voir.d.ts +2 -0
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
export function setTheme(name: any): void;
|
|
2
|
+
export namespace themes {
|
|
3
|
+
namespace EsmeraldCore {
|
|
4
|
+
let type: string;
|
|
5
|
+
let primary: string;
|
|
6
|
+
let onPrimary: string;
|
|
7
|
+
let primaryContainer: string;
|
|
8
|
+
let onPrimaryContainer: string;
|
|
9
|
+
let secondary: string;
|
|
10
|
+
let onSecondary: string;
|
|
11
|
+
let secondaryContainer: string;
|
|
12
|
+
let onSecondaryContainer: string;
|
|
13
|
+
let background: string;
|
|
14
|
+
let onBackground: string;
|
|
15
|
+
let surface: string;
|
|
16
|
+
let onSurface: string;
|
|
17
|
+
let surfaceVariant: string;
|
|
18
|
+
let onSurfaceVariant: string;
|
|
19
|
+
let error: string;
|
|
20
|
+
let onError: string;
|
|
21
|
+
let outline: string;
|
|
22
|
+
}
|
|
23
|
+
namespace CrimsonVoid {
|
|
24
|
+
let type_1: string;
|
|
25
|
+
export { type_1 as type };
|
|
26
|
+
let primary_1: string;
|
|
27
|
+
export { primary_1 as primary };
|
|
28
|
+
let onPrimary_1: string;
|
|
29
|
+
export { onPrimary_1 as onPrimary };
|
|
30
|
+
let primaryContainer_1: string;
|
|
31
|
+
export { primaryContainer_1 as primaryContainer };
|
|
32
|
+
let onPrimaryContainer_1: string;
|
|
33
|
+
export { onPrimaryContainer_1 as onPrimaryContainer };
|
|
34
|
+
let secondary_1: string;
|
|
35
|
+
export { secondary_1 as secondary };
|
|
36
|
+
let onSecondary_1: string;
|
|
37
|
+
export { onSecondary_1 as onSecondary };
|
|
38
|
+
let secondaryContainer_1: string;
|
|
39
|
+
export { secondaryContainer_1 as secondaryContainer };
|
|
40
|
+
let onSecondaryContainer_1: string;
|
|
41
|
+
export { onSecondaryContainer_1 as onSecondaryContainer };
|
|
42
|
+
let background_1: string;
|
|
43
|
+
export { background_1 as background };
|
|
44
|
+
let onBackground_1: string;
|
|
45
|
+
export { onBackground_1 as onBackground };
|
|
46
|
+
let surface_1: string;
|
|
47
|
+
export { surface_1 as surface };
|
|
48
|
+
let onSurface_1: string;
|
|
49
|
+
export { onSurface_1 as onSurface };
|
|
50
|
+
let surfaceVariant_1: string;
|
|
51
|
+
export { surfaceVariant_1 as surfaceVariant };
|
|
52
|
+
let onSurfaceVariant_1: string;
|
|
53
|
+
export { onSurfaceVariant_1 as onSurfaceVariant };
|
|
54
|
+
let error_1: string;
|
|
55
|
+
export { error_1 as error };
|
|
56
|
+
let onError_1: string;
|
|
57
|
+
export { onError_1 as onError };
|
|
58
|
+
let outline_1: string;
|
|
59
|
+
export { outline_1 as outline };
|
|
60
|
+
}
|
|
61
|
+
namespace DarkAurora {
|
|
62
|
+
let type_2: string;
|
|
63
|
+
export { type_2 as type };
|
|
64
|
+
let primary_2: string;
|
|
65
|
+
export { primary_2 as primary };
|
|
66
|
+
let onPrimary_2: string;
|
|
67
|
+
export { onPrimary_2 as onPrimary };
|
|
68
|
+
let primaryContainer_2: string;
|
|
69
|
+
export { primaryContainer_2 as primaryContainer };
|
|
70
|
+
let onPrimaryContainer_2: string;
|
|
71
|
+
export { onPrimaryContainer_2 as onPrimaryContainer };
|
|
72
|
+
let secondary_2: string;
|
|
73
|
+
export { secondary_2 as secondary };
|
|
74
|
+
let onSecondary_2: string;
|
|
75
|
+
export { onSecondary_2 as onSecondary };
|
|
76
|
+
let secondaryContainer_2: string;
|
|
77
|
+
export { secondaryContainer_2 as secondaryContainer };
|
|
78
|
+
let onSecondaryContainer_2: string;
|
|
79
|
+
export { onSecondaryContainer_2 as onSecondaryContainer };
|
|
80
|
+
let background_2: string;
|
|
81
|
+
export { background_2 as background };
|
|
82
|
+
let onBackground_2: string;
|
|
83
|
+
export { onBackground_2 as onBackground };
|
|
84
|
+
let surface_2: string;
|
|
85
|
+
export { surface_2 as surface };
|
|
86
|
+
let onSurface_2: string;
|
|
87
|
+
export { onSurface_2 as onSurface };
|
|
88
|
+
let surfaceVariant_2: string;
|
|
89
|
+
export { surfaceVariant_2 as surfaceVariant };
|
|
90
|
+
let onSurfaceVariant_2: string;
|
|
91
|
+
export { onSurfaceVariant_2 as onSurfaceVariant };
|
|
92
|
+
let error_2: string;
|
|
93
|
+
export { error_2 as error };
|
|
94
|
+
let onError_2: string;
|
|
95
|
+
export { onError_2 as onError };
|
|
96
|
+
let outline_2: string;
|
|
97
|
+
export { outline_2 as outline };
|
|
98
|
+
}
|
|
99
|
+
namespace DarkOceanic {
|
|
100
|
+
let type_3: string;
|
|
101
|
+
export { type_3 as type };
|
|
102
|
+
let primary_3: string;
|
|
103
|
+
export { primary_3 as primary };
|
|
104
|
+
let onPrimary_3: string;
|
|
105
|
+
export { onPrimary_3 as onPrimary };
|
|
106
|
+
let primaryContainer_3: string;
|
|
107
|
+
export { primaryContainer_3 as primaryContainer };
|
|
108
|
+
let onPrimaryContainer_3: string;
|
|
109
|
+
export { onPrimaryContainer_3 as onPrimaryContainer };
|
|
110
|
+
let secondary_3: string;
|
|
111
|
+
export { secondary_3 as secondary };
|
|
112
|
+
let onSecondary_3: string;
|
|
113
|
+
export { onSecondary_3 as onSecondary };
|
|
114
|
+
let secondaryContainer_3: string;
|
|
115
|
+
export { secondaryContainer_3 as secondaryContainer };
|
|
116
|
+
let onSecondaryContainer_3: string;
|
|
117
|
+
export { onSecondaryContainer_3 as onSecondaryContainer };
|
|
118
|
+
let background_3: string;
|
|
119
|
+
export { background_3 as background };
|
|
120
|
+
let onBackground_3: string;
|
|
121
|
+
export { onBackground_3 as onBackground };
|
|
122
|
+
let surface_3: string;
|
|
123
|
+
export { surface_3 as surface };
|
|
124
|
+
let onSurface_3: string;
|
|
125
|
+
export { onSurface_3 as onSurface };
|
|
126
|
+
let surfaceVariant_3: string;
|
|
127
|
+
export { surfaceVariant_3 as surfaceVariant };
|
|
128
|
+
let onSurfaceVariant_3: string;
|
|
129
|
+
export { onSurfaceVariant_3 as onSurfaceVariant };
|
|
130
|
+
let error_3: string;
|
|
131
|
+
export { error_3 as error };
|
|
132
|
+
let onError_3: string;
|
|
133
|
+
export { onError_3 as onError };
|
|
134
|
+
let outline_3: string;
|
|
135
|
+
export { outline_3 as outline };
|
|
136
|
+
}
|
|
137
|
+
namespace DarkForest {
|
|
138
|
+
let type_4: string;
|
|
139
|
+
export { type_4 as type };
|
|
140
|
+
let primary_4: string;
|
|
141
|
+
export { primary_4 as primary };
|
|
142
|
+
let onPrimary_4: string;
|
|
143
|
+
export { onPrimary_4 as onPrimary };
|
|
144
|
+
let primaryContainer_4: string;
|
|
145
|
+
export { primaryContainer_4 as primaryContainer };
|
|
146
|
+
let onPrimaryContainer_4: string;
|
|
147
|
+
export { onPrimaryContainer_4 as onPrimaryContainer };
|
|
148
|
+
let secondary_4: string;
|
|
149
|
+
export { secondary_4 as secondary };
|
|
150
|
+
let onSecondary_4: string;
|
|
151
|
+
export { onSecondary_4 as onSecondary };
|
|
152
|
+
let secondaryContainer_4: string;
|
|
153
|
+
export { secondaryContainer_4 as secondaryContainer };
|
|
154
|
+
let onSecondaryContainer_4: string;
|
|
155
|
+
export { onSecondaryContainer_4 as onSecondaryContainer };
|
|
156
|
+
let background_4: string;
|
|
157
|
+
export { background_4 as background };
|
|
158
|
+
let onBackground_4: string;
|
|
159
|
+
export { onBackground_4 as onBackground };
|
|
160
|
+
let surface_4: string;
|
|
161
|
+
export { surface_4 as surface };
|
|
162
|
+
let onSurface_4: string;
|
|
163
|
+
export { onSurface_4 as onSurface };
|
|
164
|
+
let surfaceVariant_4: string;
|
|
165
|
+
export { surfaceVariant_4 as surfaceVariant };
|
|
166
|
+
let onSurfaceVariant_4: string;
|
|
167
|
+
export { onSurfaceVariant_4 as onSurfaceVariant };
|
|
168
|
+
let error_4: string;
|
|
169
|
+
export { error_4 as error };
|
|
170
|
+
let onError_4: string;
|
|
171
|
+
export { onError_4 as onError };
|
|
172
|
+
let outline_4: string;
|
|
173
|
+
export { outline_4 as outline };
|
|
174
|
+
}
|
|
175
|
+
namespace DarkVolcanic {
|
|
176
|
+
let type_5: string;
|
|
177
|
+
export { type_5 as type };
|
|
178
|
+
let primary_5: string;
|
|
179
|
+
export { primary_5 as primary };
|
|
180
|
+
let onPrimary_5: string;
|
|
181
|
+
export { onPrimary_5 as onPrimary };
|
|
182
|
+
let primaryContainer_5: string;
|
|
183
|
+
export { primaryContainer_5 as primaryContainer };
|
|
184
|
+
let onPrimaryContainer_5: string;
|
|
185
|
+
export { onPrimaryContainer_5 as onPrimaryContainer };
|
|
186
|
+
let secondary_5: string;
|
|
187
|
+
export { secondary_5 as secondary };
|
|
188
|
+
let onSecondary_5: string;
|
|
189
|
+
export { onSecondary_5 as onSecondary };
|
|
190
|
+
let secondaryContainer_5: string;
|
|
191
|
+
export { secondaryContainer_5 as secondaryContainer };
|
|
192
|
+
let onSecondaryContainer_5: string;
|
|
193
|
+
export { onSecondaryContainer_5 as onSecondaryContainer };
|
|
194
|
+
let background_5: string;
|
|
195
|
+
export { background_5 as background };
|
|
196
|
+
let onBackground_5: string;
|
|
197
|
+
export { onBackground_5 as onBackground };
|
|
198
|
+
let surface_5: string;
|
|
199
|
+
export { surface_5 as surface };
|
|
200
|
+
let onSurface_5: string;
|
|
201
|
+
export { onSurface_5 as onSurface };
|
|
202
|
+
let surfaceVariant_5: string;
|
|
203
|
+
export { surfaceVariant_5 as surfaceVariant };
|
|
204
|
+
let onSurfaceVariant_5: string;
|
|
205
|
+
export { onSurfaceVariant_5 as onSurfaceVariant };
|
|
206
|
+
let error_5: string;
|
|
207
|
+
export { error_5 as error };
|
|
208
|
+
let onError_5: string;
|
|
209
|
+
export { onError_5 as onError };
|
|
210
|
+
let outline_5: string;
|
|
211
|
+
export { outline_5 as outline };
|
|
212
|
+
}
|
|
213
|
+
namespace LightSunrise {
|
|
214
|
+
let type_6: string;
|
|
215
|
+
export { type_6 as type };
|
|
216
|
+
let primary_6: string;
|
|
217
|
+
export { primary_6 as primary };
|
|
218
|
+
let onPrimary_6: string;
|
|
219
|
+
export { onPrimary_6 as onPrimary };
|
|
220
|
+
let primaryContainer_6: string;
|
|
221
|
+
export { primaryContainer_6 as primaryContainer };
|
|
222
|
+
let onPrimaryContainer_6: string;
|
|
223
|
+
export { onPrimaryContainer_6 as onPrimaryContainer };
|
|
224
|
+
let secondary_6: string;
|
|
225
|
+
export { secondary_6 as secondary };
|
|
226
|
+
let onSecondary_6: string;
|
|
227
|
+
export { onSecondary_6 as onSecondary };
|
|
228
|
+
let secondaryContainer_6: string;
|
|
229
|
+
export { secondaryContainer_6 as secondaryContainer };
|
|
230
|
+
let onSecondaryContainer_6: string;
|
|
231
|
+
export { onSecondaryContainer_6 as onSecondaryContainer };
|
|
232
|
+
let background_6: string;
|
|
233
|
+
export { background_6 as background };
|
|
234
|
+
let onBackground_6: string;
|
|
235
|
+
export { onBackground_6 as onBackground };
|
|
236
|
+
let surface_6: string;
|
|
237
|
+
export { surface_6 as surface };
|
|
238
|
+
let onSurface_6: string;
|
|
239
|
+
export { onSurface_6 as onSurface };
|
|
240
|
+
let surfaceVariant_6: string;
|
|
241
|
+
export { surfaceVariant_6 as surfaceVariant };
|
|
242
|
+
let onSurfaceVariant_6: string;
|
|
243
|
+
export { onSurfaceVariant_6 as onSurfaceVariant };
|
|
244
|
+
let error_6: string;
|
|
245
|
+
export { error_6 as error };
|
|
246
|
+
let onError_6: string;
|
|
247
|
+
export { onError_6 as onError };
|
|
248
|
+
let outline_6: string;
|
|
249
|
+
export { outline_6 as outline };
|
|
250
|
+
}
|
|
251
|
+
namespace LightSky {
|
|
252
|
+
let type_7: string;
|
|
253
|
+
export { type_7 as type };
|
|
254
|
+
let primary_7: string;
|
|
255
|
+
export { primary_7 as primary };
|
|
256
|
+
let onPrimary_7: string;
|
|
257
|
+
export { onPrimary_7 as onPrimary };
|
|
258
|
+
let primaryContainer_7: string;
|
|
259
|
+
export { primaryContainer_7 as primaryContainer };
|
|
260
|
+
let onPrimaryContainer_7: string;
|
|
261
|
+
export { onPrimaryContainer_7 as onPrimaryContainer };
|
|
262
|
+
let secondary_7: string;
|
|
263
|
+
export { secondary_7 as secondary };
|
|
264
|
+
let onSecondary_7: string;
|
|
265
|
+
export { onSecondary_7 as onSecondary };
|
|
266
|
+
let secondaryContainer_7: string;
|
|
267
|
+
export { secondaryContainer_7 as secondaryContainer };
|
|
268
|
+
let onSecondaryContainer_7: string;
|
|
269
|
+
export { onSecondaryContainer_7 as onSecondaryContainer };
|
|
270
|
+
let background_7: string;
|
|
271
|
+
export { background_7 as background };
|
|
272
|
+
let onBackground_7: string;
|
|
273
|
+
export { onBackground_7 as onBackground };
|
|
274
|
+
let surface_7: string;
|
|
275
|
+
export { surface_7 as surface };
|
|
276
|
+
let onSurface_7: string;
|
|
277
|
+
export { onSurface_7 as onSurface };
|
|
278
|
+
let surfaceVariant_7: string;
|
|
279
|
+
export { surfaceVariant_7 as surfaceVariant };
|
|
280
|
+
let onSurfaceVariant_7: string;
|
|
281
|
+
export { onSurfaceVariant_7 as onSurfaceVariant };
|
|
282
|
+
let error_7: string;
|
|
283
|
+
export { error_7 as error };
|
|
284
|
+
let onError_7: string;
|
|
285
|
+
export { onError_7 as onError };
|
|
286
|
+
let outline_7: string;
|
|
287
|
+
export { outline_7 as outline };
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
export function getTheme(): {
|
|
291
|
+
type: string;
|
|
292
|
+
primary: string;
|
|
293
|
+
onPrimary: string;
|
|
294
|
+
primaryContainer: string;
|
|
295
|
+
onPrimaryContainer: string;
|
|
296
|
+
secondary: string;
|
|
297
|
+
onSecondary: string;
|
|
298
|
+
secondaryContainer: string;
|
|
299
|
+
onSecondaryContainer: string;
|
|
300
|
+
background: string;
|
|
301
|
+
onBackground: string;
|
|
302
|
+
surface: string;
|
|
303
|
+
onSurface: string;
|
|
304
|
+
surfaceVariant: string;
|
|
305
|
+
onSurfaceVariant: string;
|
|
306
|
+
error: string;
|
|
307
|
+
onError: string;
|
|
308
|
+
outline: string;
|
|
309
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export function registerTheme(name: any, theme: any): void;
|
|
2
|
+
export function setTheme(name: any): void;
|
|
3
|
+
export function getTheme(): any;
|
|
4
|
+
export function getThemes(): any[];
|
|
5
|
+
export function registerTypography(name: any, typography?: {}): void;
|
|
6
|
+
export function setTypography(name: any): void;
|
|
7
|
+
export function getTypography(): {
|
|
8
|
+
fontFamily: string;
|
|
9
|
+
displayLarge: number;
|
|
10
|
+
displayMedium: number;
|
|
11
|
+
displaySmall: number;
|
|
12
|
+
headlineLarge: number;
|
|
13
|
+
headlineMedium: number;
|
|
14
|
+
headlineSmall: number;
|
|
15
|
+
titleLarge: number;
|
|
16
|
+
titleMedium: number;
|
|
17
|
+
titleSmall: number;
|
|
18
|
+
bodyLarge: number;
|
|
19
|
+
bodyMedium: number;
|
|
20
|
+
bodySmall: number;
|
|
21
|
+
labelLarge: number;
|
|
22
|
+
labelMedium: number;
|
|
23
|
+
labelSmall: number;
|
|
24
|
+
};
|
|
25
|
+
export function setRadius(radius?: {}): void;
|
|
26
|
+
export function getRadius(): {
|
|
27
|
+
small: number;
|
|
28
|
+
medium: number;
|
|
29
|
+
large: number;
|
|
30
|
+
extraLarge: number;
|
|
31
|
+
full: number;
|
|
32
|
+
};
|
|
33
|
+
export function registerComponent(name: any, styles?: {}): void;
|
|
34
|
+
export function getComponent(name: any): any;
|
|
35
|
+
export function resolveColor(value: any): any;
|
|
36
|
+
export function resolveRadius(value: any): any;
|
|
37
|
+
export function resolveFont(token: any): any;
|
|
38
|
+
export function resolveComponent(name: any): {};
|
|
39
|
+
export function registerClass(name: any, component: any, styles?: {}): void;
|
|
40
|
+
export function resolveClass(name: any): {};
|
|
41
|
+
export function getClass(name: any): any;
|
|
42
|
+
export function applyClass(view: any, names?: string): any;
|
|
43
|
+
export function resolveStyles(name: any): {};
|
|
44
|
+
export function onThemeChange(listener: any): () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/types/utils.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export function addClass(view: any, stringLists: any): void;
|
|
2
|
+
export function removeClass(view: any, stringLists: any): void;
|
|
3
|
+
export function addClassChilds(view: any, replace: any): void;
|
|
4
|
+
export function removeClassChilds(view: any, replace: any): void;
|
|
5
|
+
export function toggleClass(view: any, replace: any): void;
|
|
6
|
+
export function applyTheme(type: any, view: any): any;
|
|
7
|
+
export function textWindowFit(text: any, font?: string): {
|
|
8
|
+
size: {
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
}[];
|
|
12
|
+
isTextWithinWindow: boolean;
|
|
13
|
+
};
|
|
14
|
+
export function throttle(func: any, delay: any): (...args: any[]) => void;
|
|
15
|
+
export function debounce(func: any, delay: any): (...args: any[]) => void;
|
|
16
|
+
export function generateNames(total: any): string[];
|
|
17
|
+
export function each(collection: any, callback: any): void;
|
|
18
|
+
export function generateUUID(): string;
|
|
19
|
+
export function extractProps(objeto: any, propiedades: any): any;
|
|
20
|
+
export function excludeProperties(obj: any, excludedKeys: any): {};
|
|
21
|
+
export function createFactory(Class: any, tabrisFactory?: boolean): any;
|
package/types/voir.d.ts
ADDED