rn-css 1.6.19-0 → 1.6.19-1

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/dist/index.d.ts CHANGED
@@ -9,7 +9,7 @@ declare const styled: {
9
9
  <S>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S & T & {
10
10
  rnCSS?: string | undefined;
11
11
  shared: unknown;
12
- theme: unknown;
12
+ theme: import("./styleComponent").DefaultTheme;
13
13
  }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<T & S & {
14
14
  rnCSS?: `${string};` | undefined;
15
15
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -23,7 +23,7 @@ declare const styled: {
23
23
  attrs<S_1>(opts: Partial<S_1 & T> | ((props: S_1 & T) => Partial<S_1 & T>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_1 & T & {
24
24
  rnCSS?: string | undefined;
25
25
  shared: unknown;
26
- theme: unknown;
26
+ theme: import("./styleComponent").DefaultTheme;
27
27
  }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(T | S_1) & {
28
28
  rnCSS?: `${string};` | undefined;
29
29
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -39,7 +39,7 @@ declare const styled: {
39
39
  <S_2>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_2 & RN.ActivityIndicatorProps & {
40
40
  rnCSS?: string | undefined;
41
41
  shared: unknown;
42
- theme: unknown;
42
+ theme: import("./styleComponent").DefaultTheme;
43
43
  }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.ActivityIndicatorProps & S_2 & {
44
44
  rnCSS?: `${string};` | undefined;
45
45
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -53,7 +53,7 @@ declare const styled: {
53
53
  attrs<S_3>(opts: Partial<S_3 & RN.ActivityIndicatorProps> | ((props: S_3 & RN.ActivityIndicatorProps) => Partial<S_3 & RN.ActivityIndicatorProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_3 & RN.ActivityIndicatorProps & {
54
54
  rnCSS?: string | undefined;
55
55
  shared: unknown;
56
- theme: unknown;
56
+ theme: import("./styleComponent").DefaultTheme;
57
57
  }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.ActivityIndicatorProps | S_3) & {
58
58
  rnCSS?: `${string};` | undefined;
59
59
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -69,7 +69,7 @@ declare const styled: {
69
69
  <S_4>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_4 & RN.ButtonProps & {
70
70
  rnCSS?: string | undefined;
71
71
  shared: unknown;
72
- theme: unknown;
72
+ theme: import("./styleComponent").DefaultTheme;
73
73
  }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.ButtonProps & S_4 & {
74
74
  rnCSS?: `${string};` | undefined;
75
75
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -83,7 +83,7 @@ declare const styled: {
83
83
  attrs<S_5>(opts: Partial<S_5 & RN.ButtonProps> | ((props: S_5 & RN.ButtonProps) => Partial<S_5 & RN.ButtonProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_5 & RN.ButtonProps & {
84
84
  rnCSS?: string | undefined;
85
85
  shared: unknown;
86
- theme: unknown;
86
+ theme: import("./styleComponent").DefaultTheme;
87
87
  }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.ButtonProps | S_5) & {
88
88
  rnCSS?: `${string};` | undefined;
89
89
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -99,7 +99,7 @@ declare const styled: {
99
99
  <S_6>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_6 & RN.DrawerLayoutAndroidProps & {
100
100
  rnCSS?: string | undefined;
101
101
  shared: unknown;
102
- theme: unknown;
102
+ theme: import("./styleComponent").DefaultTheme;
103
103
  }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.DrawerLayoutAndroidProps & S_6 & {
104
104
  rnCSS?: `${string};` | undefined;
105
105
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -113,7 +113,7 @@ declare const styled: {
113
113
  attrs<S_7>(opts: Partial<S_7 & RN.DrawerLayoutAndroidProps> | ((props: S_7 & RN.DrawerLayoutAndroidProps) => Partial<S_7 & RN.DrawerLayoutAndroidProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_7 & RN.DrawerLayoutAndroidProps & {
114
114
  rnCSS?: string | undefined;
115
115
  shared: unknown;
116
- theme: unknown;
116
+ theme: import("./styleComponent").DefaultTheme;
117
117
  }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.DrawerLayoutAndroidProps | S_7) & {
118
118
  rnCSS?: `${string};` | undefined;
119
119
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -129,7 +129,7 @@ declare const styled: {
129
129
  <S_8>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_8 & RN.ImageProps & {
130
130
  rnCSS?: string | undefined;
131
131
  shared: unknown;
132
- theme: unknown;
132
+ theme: import("./styleComponent").DefaultTheme;
133
133
  }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.ImageProps & S_8 & {
134
134
  rnCSS?: `${string};` | undefined;
135
135
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -143,7 +143,7 @@ declare const styled: {
143
143
  attrs<S_9>(opts: Partial<S_9 & RN.ImageProps> | ((props: S_9 & RN.ImageProps) => Partial<S_9 & RN.ImageProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_9 & RN.ImageProps & {
144
144
  rnCSS?: string | undefined;
145
145
  shared: unknown;
146
- theme: unknown;
146
+ theme: import("./styleComponent").DefaultTheme;
147
147
  }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.ImageProps | S_9) & {
148
148
  rnCSS?: `${string};` | undefined;
149
149
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -159,7 +159,7 @@ declare const styled: {
159
159
  <S_10>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_10 & RN.ImageBackgroundProps & {
160
160
  rnCSS?: string | undefined;
161
161
  shared: unknown;
162
- theme: unknown;
162
+ theme: import("./styleComponent").DefaultTheme;
163
163
  }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.ImageBackgroundProps & S_10 & {
164
164
  rnCSS?: `${string};` | undefined;
165
165
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -173,7 +173,7 @@ declare const styled: {
173
173
  attrs<S_11>(opts: Partial<S_11 & RN.ImageBackgroundProps> | ((props: S_11 & RN.ImageBackgroundProps) => Partial<S_11 & RN.ImageBackgroundProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_11 & RN.ImageBackgroundProps & {
174
174
  rnCSS?: string | undefined;
175
175
  shared: unknown;
176
- theme: unknown;
176
+ theme: import("./styleComponent").DefaultTheme;
177
177
  }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.ImageBackgroundProps | S_11) & {
178
178
  rnCSS?: `${string};` | undefined;
179
179
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -189,7 +189,7 @@ declare const styled: {
189
189
  <S_12>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_12 & RN.KeyboardAvoidingViewProps & {
190
190
  rnCSS?: string | undefined;
191
191
  shared: unknown;
192
- theme: unknown;
192
+ theme: import("./styleComponent").DefaultTheme;
193
193
  }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.KeyboardAvoidingViewProps & S_12 & {
194
194
  rnCSS?: `${string};` | undefined;
195
195
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -203,7 +203,7 @@ declare const styled: {
203
203
  attrs<S_13>(opts: Partial<S_13 & RN.KeyboardAvoidingViewProps> | ((props: S_13 & RN.KeyboardAvoidingViewProps) => Partial<S_13 & RN.KeyboardAvoidingViewProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_13 & RN.KeyboardAvoidingViewProps & {
204
204
  rnCSS?: string | undefined;
205
205
  shared: unknown;
206
- theme: unknown;
206
+ theme: import("./styleComponent").DefaultTheme;
207
207
  }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.KeyboardAvoidingViewProps | S_13) & {
208
208
  rnCSS?: `${string};` | undefined;
209
209
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -219,7 +219,7 @@ declare const styled: {
219
219
  <S_14>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_14 & RN.ModalBaseProps & RN.ModalPropsIOS & RN.ModalPropsAndroid & RN.ViewProps & {
220
220
  rnCSS?: string | undefined;
221
221
  shared: unknown;
222
- theme: unknown;
222
+ theme: import("./styleComponent").DefaultTheme;
223
223
  }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.ModalBaseProps & RN.ModalPropsIOS & RN.ModalPropsAndroid & RN.ViewProps & S_14 & {
224
224
  rnCSS?: `${string};` | undefined;
225
225
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -233,7 +233,7 @@ declare const styled: {
233
233
  attrs<S_15>(opts: Partial<S_15 & RN.ModalBaseProps & RN.ModalPropsIOS & RN.ModalPropsAndroid & RN.ViewProps> | ((props: S_15 & RN.ModalBaseProps & RN.ModalPropsIOS & RN.ModalPropsAndroid & RN.ViewProps) => Partial<S_15 & RN.ModalBaseProps & RN.ModalPropsIOS & RN.ModalPropsAndroid & RN.ViewProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_15 & RN.ModalBaseProps & RN.ModalPropsIOS & RN.ModalPropsAndroid & RN.ViewProps & {
234
234
  rnCSS?: string | undefined;
235
235
  shared: unknown;
236
- theme: unknown;
236
+ theme: import("./styleComponent").DefaultTheme;
237
237
  }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.ModalProps | S_15) & {
238
238
  rnCSS?: `${string};` | undefined;
239
239
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -249,7 +249,7 @@ declare const styled: {
249
249
  <S_16>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_16 & RN.NavigatorIOSProps & {
250
250
  rnCSS?: string | undefined;
251
251
  shared: unknown;
252
- theme: unknown;
252
+ theme: import("./styleComponent").DefaultTheme;
253
253
  }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.NavigatorIOSProps & S_16 & {
254
254
  rnCSS?: `${string};` | undefined;
255
255
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -263,7 +263,7 @@ declare const styled: {
263
263
  attrs<S_17>(opts: Partial<S_17 & RN.NavigatorIOSProps> | ((props: S_17 & RN.NavigatorIOSProps) => Partial<S_17 & RN.NavigatorIOSProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_17 & RN.NavigatorIOSProps & {
264
264
  rnCSS?: string | undefined;
265
265
  shared: unknown;
266
- theme: unknown;
266
+ theme: import("./styleComponent").DefaultTheme;
267
267
  }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.NavigatorIOSProps | S_17) & {
268
268
  rnCSS?: `${string};` | undefined;
269
269
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -279,7 +279,7 @@ declare const styled: {
279
279
  <S_18>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_18 & RN.ScrollViewProps & {
280
280
  rnCSS?: string | undefined;
281
281
  shared: unknown;
282
- theme: unknown;
282
+ theme: import("./styleComponent").DefaultTheme;
283
283
  }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.ScrollViewProps & S_18 & {
284
284
  rnCSS?: `${string};` | undefined;
285
285
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -293,7 +293,7 @@ declare const styled: {
293
293
  attrs<S_19>(opts: Partial<S_19 & RN.ScrollViewProps> | ((props: S_19 & RN.ScrollViewProps) => Partial<S_19 & RN.ScrollViewProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_19 & RN.ScrollViewProps & {
294
294
  rnCSS?: string | undefined;
295
295
  shared: unknown;
296
- theme: unknown;
296
+ theme: import("./styleComponent").DefaultTheme;
297
297
  }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.ScrollViewProps | S_19) & {
298
298
  rnCSS?: `${string};` | undefined;
299
299
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -309,7 +309,7 @@ declare const styled: {
309
309
  <S_20>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_20 & RN.SnapshotViewIOSProps & {
310
310
  rnCSS?: string | undefined;
311
311
  shared: unknown;
312
- theme: unknown;
312
+ theme: import("./styleComponent").DefaultTheme;
313
313
  }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.SnapshotViewIOSProps & S_20 & {
314
314
  rnCSS?: `${string};` | undefined;
315
315
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -323,7 +323,7 @@ declare const styled: {
323
323
  attrs<S_21>(opts: Partial<S_21 & RN.SnapshotViewIOSProps> | ((props: S_21 & RN.SnapshotViewIOSProps) => Partial<S_21 & RN.SnapshotViewIOSProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_21 & RN.SnapshotViewIOSProps & {
324
324
  rnCSS?: string | undefined;
325
325
  shared: unknown;
326
- theme: unknown;
326
+ theme: import("./styleComponent").DefaultTheme;
327
327
  }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.SnapshotViewIOSProps | S_21) & {
328
328
  rnCSS?: `${string};` | undefined;
329
329
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -339,7 +339,7 @@ declare const styled: {
339
339
  <S_22>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_22 & RN.SwitchProps & {
340
340
  rnCSS?: string | undefined;
341
341
  shared: unknown;
342
- theme: unknown;
342
+ theme: import("./styleComponent").DefaultTheme;
343
343
  }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.SwitchProps & S_22 & {
344
344
  rnCSS?: `${string};` | undefined;
345
345
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -353,7 +353,7 @@ declare const styled: {
353
353
  attrs<S_23>(opts: Partial<S_23 & RN.SwitchProps> | ((props: S_23 & RN.SwitchProps) => Partial<S_23 & RN.SwitchProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_23 & RN.SwitchProps & {
354
354
  rnCSS?: string | undefined;
355
355
  shared: unknown;
356
- theme: unknown;
356
+ theme: import("./styleComponent").DefaultTheme;
357
357
  }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.SwitchProps | S_23) & {
358
358
  rnCSS?: `${string};` | undefined;
359
359
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -369,7 +369,7 @@ declare const styled: {
369
369
  <S_24>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_24 & RN.RecyclerViewBackedScrollViewProps & {
370
370
  rnCSS?: string | undefined;
371
371
  shared: unknown;
372
- theme: unknown;
372
+ theme: import("./styleComponent").DefaultTheme;
373
373
  }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.RecyclerViewBackedScrollViewProps & S_24 & {
374
374
  rnCSS?: `${string};` | undefined;
375
375
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -383,7 +383,7 @@ declare const styled: {
383
383
  attrs<S_25>(opts: Partial<S_25 & RN.RecyclerViewBackedScrollViewProps> | ((props: S_25 & RN.RecyclerViewBackedScrollViewProps) => Partial<S_25 & RN.RecyclerViewBackedScrollViewProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_25 & RN.RecyclerViewBackedScrollViewProps & {
384
384
  rnCSS?: string | undefined;
385
385
  shared: unknown;
386
- theme: unknown;
386
+ theme: import("./styleComponent").DefaultTheme;
387
387
  }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.RecyclerViewBackedScrollViewProps | S_25) & {
388
388
  rnCSS?: `${string};` | undefined;
389
389
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -399,7 +399,7 @@ declare const styled: {
399
399
  <S_26>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_26 & RN.RefreshControlProps & {
400
400
  rnCSS?: string | undefined;
401
401
  shared: unknown;
402
- theme: unknown;
402
+ theme: import("./styleComponent").DefaultTheme;
403
403
  }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.RefreshControlProps & S_26 & {
404
404
  rnCSS?: `${string};` | undefined;
405
405
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -413,7 +413,7 @@ declare const styled: {
413
413
  attrs<S_27>(opts: Partial<S_27 & RN.RefreshControlProps> | ((props: S_27 & RN.RefreshControlProps) => Partial<S_27 & RN.RefreshControlProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_27 & RN.RefreshControlProps & {
414
414
  rnCSS?: string | undefined;
415
415
  shared: unknown;
416
- theme: unknown;
416
+ theme: import("./styleComponent").DefaultTheme;
417
417
  }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.RefreshControlProps | S_27) & {
418
418
  rnCSS?: `${string};` | undefined;
419
419
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -429,7 +429,7 @@ declare const styled: {
429
429
  <S_28>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_28 & RN.ViewProps & {
430
430
  rnCSS?: string | undefined;
431
431
  shared: unknown;
432
- theme: unknown;
432
+ theme: import("./styleComponent").DefaultTheme;
433
433
  }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.ViewProps & S_28 & {
434
434
  rnCSS?: `${string};` | undefined;
435
435
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -443,7 +443,7 @@ declare const styled: {
443
443
  attrs<S_29>(opts: Partial<S_29 & RN.ViewProps> | ((props: S_29 & RN.ViewProps) => Partial<S_29 & RN.ViewProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_29 & RN.ViewProps & {
444
444
  rnCSS?: string | undefined;
445
445
  shared: unknown;
446
- theme: unknown;
446
+ theme: import("./styleComponent").DefaultTheme;
447
447
  }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.ViewProps | S_29) & {
448
448
  rnCSS?: `${string};` | undefined;
449
449
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -459,7 +459,7 @@ declare const styled: {
459
459
  <S_30>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_30 & RN.StatusBarProps & {
460
460
  rnCSS?: string | undefined;
461
461
  shared: unknown;
462
- theme: unknown;
462
+ theme: import("./styleComponent").DefaultTheme;
463
463
  }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.StatusBarProps & S_30 & {
464
464
  rnCSS?: `${string};` | undefined;
465
465
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -473,7 +473,7 @@ declare const styled: {
473
473
  attrs<S_31>(opts: Partial<S_31 & RN.StatusBarProps> | ((props: S_31 & RN.StatusBarProps) => Partial<S_31 & RN.StatusBarProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_31 & RN.StatusBarProps & {
474
474
  rnCSS?: string | undefined;
475
475
  shared: unknown;
476
- theme: unknown;
476
+ theme: import("./styleComponent").DefaultTheme;
477
477
  }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.StatusBarProps | S_31) & {
478
478
  rnCSS?: `${string};` | undefined;
479
479
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -489,7 +489,7 @@ declare const styled: {
489
489
  <S_32>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_32 & RN.TextProps & {
490
490
  rnCSS?: string | undefined;
491
491
  shared: unknown;
492
- theme: unknown;
492
+ theme: import("./styleComponent").DefaultTheme;
493
493
  }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.TextProps & S_32 & {
494
494
  rnCSS?: `${string};` | undefined;
495
495
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -503,7 +503,7 @@ declare const styled: {
503
503
  attrs<S_33>(opts: Partial<S_33 & RN.TextProps> | ((props: S_33 & RN.TextProps) => Partial<S_33 & RN.TextProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_33 & RN.TextProps & {
504
504
  rnCSS?: string | undefined;
505
505
  shared: unknown;
506
- theme: unknown;
506
+ theme: import("./styleComponent").DefaultTheme;
507
507
  }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.TextProps | S_33) & {
508
508
  rnCSS?: `${string};` | undefined;
509
509
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -519,7 +519,7 @@ declare const styled: {
519
519
  <S_34>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_34 & RN.TextInputProps & {
520
520
  rnCSS?: string | undefined;
521
521
  shared: unknown;
522
- theme: unknown;
522
+ theme: import("./styleComponent").DefaultTheme;
523
523
  }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.TextInputProps & S_34 & {
524
524
  rnCSS?: `${string};` | undefined;
525
525
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -533,7 +533,7 @@ declare const styled: {
533
533
  attrs<S_35>(opts: Partial<S_35 & RN.TextInputProps> | ((props: S_35 & RN.TextInputProps) => Partial<S_35 & RN.TextInputProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_35 & RN.TextInputProps & {
534
534
  rnCSS?: string | undefined;
535
535
  shared: unknown;
536
- theme: unknown;
536
+ theme: import("./styleComponent").DefaultTheme;
537
537
  }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.TextInputProps | S_35) & {
538
538
  rnCSS?: `${string};` | undefined;
539
539
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -549,7 +549,7 @@ declare const styled: {
549
549
  <S_36>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_36 & RN.TouchableHighlightProps & {
550
550
  rnCSS?: string | undefined;
551
551
  shared: unknown;
552
- theme: unknown;
552
+ theme: import("./styleComponent").DefaultTheme;
553
553
  }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.TouchableHighlightProps & S_36 & {
554
554
  rnCSS?: `${string};` | undefined;
555
555
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -563,7 +563,7 @@ declare const styled: {
563
563
  attrs<S_37>(opts: Partial<S_37 & RN.TouchableHighlightProps> | ((props: S_37 & RN.TouchableHighlightProps) => Partial<S_37 & RN.TouchableHighlightProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_37 & RN.TouchableHighlightProps & {
564
564
  rnCSS?: string | undefined;
565
565
  shared: unknown;
566
- theme: unknown;
566
+ theme: import("./styleComponent").DefaultTheme;
567
567
  }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.TouchableHighlightProps | S_37) & {
568
568
  rnCSS?: `${string};` | undefined;
569
569
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -579,7 +579,7 @@ declare const styled: {
579
579
  <S_38>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_38 & RN.TouchableNativeFeedbackProps & {
580
580
  rnCSS?: string | undefined;
581
581
  shared: unknown;
582
- theme: unknown;
582
+ theme: import("./styleComponent").DefaultTheme;
583
583
  }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.TouchableNativeFeedbackProps & S_38 & {
584
584
  rnCSS?: `${string};` | undefined;
585
585
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -593,7 +593,7 @@ declare const styled: {
593
593
  attrs<S_39>(opts: Partial<S_39 & RN.TouchableNativeFeedbackProps> | ((props: S_39 & RN.TouchableNativeFeedbackProps) => Partial<S_39 & RN.TouchableNativeFeedbackProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_39 & RN.TouchableNativeFeedbackProps & {
594
594
  rnCSS?: string | undefined;
595
595
  shared: unknown;
596
- theme: unknown;
596
+ theme: import("./styleComponent").DefaultTheme;
597
597
  }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.TouchableNativeFeedbackProps | S_39) & {
598
598
  rnCSS?: `${string};` | undefined;
599
599
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -609,7 +609,7 @@ declare const styled: {
609
609
  <S_40>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_40 & RN.TouchableOpacityProps & {
610
610
  rnCSS?: string | undefined;
611
611
  shared: unknown;
612
- theme: unknown;
612
+ theme: import("./styleComponent").DefaultTheme;
613
613
  }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.TouchableOpacityProps & S_40 & {
614
614
  rnCSS?: `${string};` | undefined;
615
615
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -623,7 +623,7 @@ declare const styled: {
623
623
  attrs<S_41>(opts: Partial<S_41 & RN.TouchableOpacityProps> | ((props: S_41 & RN.TouchableOpacityProps) => Partial<S_41 & RN.TouchableOpacityProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_41 & RN.TouchableOpacityProps & {
624
624
  rnCSS?: string | undefined;
625
625
  shared: unknown;
626
- theme: unknown;
626
+ theme: import("./styleComponent").DefaultTheme;
627
627
  }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.TouchableOpacityProps | S_41) & {
628
628
  rnCSS?: `${string};` | undefined;
629
629
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -639,7 +639,7 @@ declare const styled: {
639
639
  <S_42>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_42 & RN.TouchableWithoutFeedbackProps & {
640
640
  rnCSS?: string | undefined;
641
641
  shared: unknown;
642
- theme: unknown;
642
+ theme: import("./styleComponent").DefaultTheme;
643
643
  }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.TouchableWithoutFeedbackProps & S_42 & {
644
644
  rnCSS?: `${string};` | undefined;
645
645
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -653,7 +653,7 @@ declare const styled: {
653
653
  attrs<S_43>(opts: Partial<S_43 & RN.TouchableWithoutFeedbackProps> | ((props: S_43 & RN.TouchableWithoutFeedbackProps) => Partial<S_43 & RN.TouchableWithoutFeedbackProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_43 & RN.TouchableWithoutFeedbackProps & {
654
654
  rnCSS?: string | undefined;
655
655
  shared: unknown;
656
- theme: unknown;
656
+ theme: import("./styleComponent").DefaultTheme;
657
657
  }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.TouchableWithoutFeedbackProps | S_43) & {
658
658
  rnCSS?: `${string};` | undefined;
659
659
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -669,7 +669,7 @@ declare const styled: {
669
669
  <S_28>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_28 & RN.ViewProps & {
670
670
  rnCSS?: string | undefined;
671
671
  shared: unknown;
672
- theme: unknown;
672
+ theme: import("./styleComponent").DefaultTheme;
673
673
  }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.ViewProps & S_28 & {
674
674
  rnCSS?: `${string};` | undefined;
675
675
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -683,7 +683,7 @@ declare const styled: {
683
683
  attrs<S_29>(opts: Partial<S_29 & RN.ViewProps> | ((props: S_29 & RN.ViewProps) => Partial<S_29 & RN.ViewProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_29 & RN.ViewProps & {
684
684
  rnCSS?: string | undefined;
685
685
  shared: unknown;
686
- theme: unknown;
686
+ theme: import("./styleComponent").DefaultTheme;
687
687
  }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.ViewProps | S_29) & {
688
688
  rnCSS?: `${string};` | undefined;
689
689
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -699,7 +699,7 @@ declare const styled: {
699
699
  <S_44>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_44 & {
700
700
  rnCSS?: string | undefined;
701
701
  shared: unknown;
702
- theme: unknown;
702
+ theme: import("./styleComponent").DefaultTheme;
703
703
  }) => string | number | boolean | null | undefined))[]): <Type>(props: S_44 & RN.FlatListProps<Type> & {
704
704
  rnCSS?: `${string};` | undefined;
705
705
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -711,7 +711,7 @@ declare const styled: {
711
711
  attrs<S_45>(opts: Partial<S_45 & RN.FlatListProps<any>> | ((props: S_45 & RN.FlatListProps<any>) => Partial<S_45 & RN.FlatListProps<any>>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_45 & RN.FlatListProps<any> & {
712
712
  rnCSS?: string | undefined;
713
713
  shared: unknown;
714
- theme: unknown;
714
+ theme: import("./styleComponent").DefaultTheme;
715
715
  }) => string | number | boolean | null | undefined))[]) => <Props>(componentProps: S_45 & RN.FlatListProps<Props> & {
716
716
  rnCSS?: `${string};` | undefined;
717
717
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -725,7 +725,7 @@ declare const styled: {
725
725
  <S_46>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_46 & {
726
726
  rnCSS?: string | undefined;
727
727
  shared: unknown;
728
- theme: unknown;
728
+ theme: import("./styleComponent").DefaultTheme;
729
729
  }) => string | number | boolean | null | undefined))[]): <Type_1>(props: S_46 & RN.SectionListProps<Type_1, RN.DefaultSectionT> & {
730
730
  rnCSS?: `${string};` | undefined;
731
731
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -737,7 +737,7 @@ declare const styled: {
737
737
  attrs<S_47>(opts: Partial<S_47 & RN.SectionListProps<any, RN.DefaultSectionT>> | ((props: S_47 & RN.SectionListProps<any, RN.DefaultSectionT>) => Partial<S_47 & RN.SectionListProps<any, RN.DefaultSectionT>>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_47 & RN.SectionListProps<any, RN.DefaultSectionT> & {
738
738
  rnCSS?: string | undefined;
739
739
  shared: unknown;
740
- theme: unknown;
740
+ theme: import("./styleComponent").DefaultTheme;
741
741
  }) => string | number | boolean | null | undefined))[]) => <Props_1>(componentProps: S_47 & RN.SectionListProps<Props_1, RN.DefaultSectionT> & {
742
742
  rnCSS?: `${string};` | undefined;
743
743
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -751,7 +751,7 @@ declare const styled: {
751
751
  <S_48>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_48 & {
752
752
  rnCSS?: string | undefined;
753
753
  shared: unknown;
754
- theme: unknown;
754
+ theme: import("./styleComponent").DefaultTheme;
755
755
  }) => string | number | boolean | null | undefined))[]): <Type_2>(props: S_48 & RN.VirtualizedListProps<Type_2> & {
756
756
  rnCSS?: `${string};` | undefined;
757
757
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -763,7 +763,7 @@ declare const styled: {
763
763
  attrs<S_49>(opts: Partial<S_49 & RN.VirtualizedListProps<any>> | ((props: S_49 & RN.VirtualizedListProps<any>) => Partial<S_49 & RN.VirtualizedListProps<any>>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_49 & RN.VirtualizedListProps<any> & {
764
764
  rnCSS?: string | undefined;
765
765
  shared: unknown;
766
- theme: unknown;
766
+ theme: import("./styleComponent").DefaultTheme;
767
767
  }) => string | number | boolean | null | undefined))[]) => <Props_2>(componentProps: S_49 & RN.VirtualizedListProps<Props_2> & {
768
768
  rnCSS?: `${string};` | undefined;
769
769
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -5,7 +5,8 @@ export declare const defaultUnits: Units;
5
5
  export declare const RemContext: React.Context<number>;
6
6
  export declare const FontSizeContext: React.Context<number>;
7
7
  export declare const SharedValue: React.Context<unknown>;
8
- export declare type DefaultTheme = unknown;
8
+ export interface DefaultTheme {
9
+ }
9
10
  declare type Primitive = number | string | null | undefined | boolean;
10
11
  declare type Functs<T> = (arg: T & {
11
12
  rnCSS?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rn-css",
3
- "version": "1.6.19-0",
3
+ "version": "1.6.19-1",
4
4
  "scripts": {
5
5
  "test": "jest",
6
6
  "prepare": "tsc",
@@ -15,7 +15,8 @@ export const FontSizeContext = React.createContext(defaultUnits.em)
15
15
  // We use this to share value within the component (Theme, Translation, whatever)
16
16
  export const SharedValue = React.createContext<unknown>(undefined)
17
17
 
18
- export type DefaultTheme = unknown
18
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
19
+ export interface DefaultTheme {}
19
20
 
20
21
  type Primitive = number | string | null | undefined | boolean
21
22
  type Functs<T> = (arg: T & { rnCSS?: string; shared: unknown, theme: DefaultTheme }) => Primitive
@@ -28,7 +29,7 @@ type OptionalProps = {
28
29
  style?: StyleProp<any>;
29
30
  }
30
31
  function buildCSSString<T extends { rnCSS?: string }> (chunks: TemplateStringsArray, functs: (Primitive | Functs<T>)[], props: T, shared: unknown) {
31
- let computedString = chunks.map((chunk, i) => ([chunk, (functs[i] instanceof Function) ? (functs[i] as Functs<T>)({ shared, theme: shared, ...props }) : functs[i]])).flat().join('')
32
+ let computedString = chunks.map((chunk, i) => ([chunk, (functs[i] instanceof Function) ? (functs[i] as Functs<T>)({ shared, theme: (shared as DefaultTheme), ...props }) : functs[i]])).flat().join('')
32
33
  if (props.rnCSS) computedString += props.rnCSS.replace(/=/gm, ':') + ';'
33
34
  return computedString
34
35
  }