@tamagui/web 3.0.0-beta.753.1 → 3.0.0-beta.765.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/cjs/createTamagui.cjs +1 -1
- package/dist/cjs/createTamagui.native.cjs +1 -1
- package/dist/cjs/createTamagui.native.js +1 -1
- package/dist/cjs/createTamagui.native.js.map +1 -1
- package/dist/cjs/dom/htmlRuntime.native.cjs +1 -0
- package/dist/cjs/dom/htmlRuntime.native.js +1 -0
- package/dist/cjs/dom/htmlRuntime.native.js.map +1 -1
- package/dist/cjs/helpers/insertStyleRule.cjs +1 -1
- package/dist/cjs/helpers/insertStyleRule.native.cjs +2 -2
- package/dist/cjs/helpers/insertStyleRule.native.js +2 -2
- package/dist/cjs/helpers/insertStyleRule.native.js.map +1 -1
- package/dist/esm/createTamagui.mjs +1 -1
- package/dist/esm/createTamagui.mjs.map +1 -1
- package/dist/esm/createTamagui.native.js +1 -1
- package/dist/esm/createTamagui.native.js.map +1 -1
- package/dist/esm/dom/htmlRuntime.native.js +1 -0
- package/dist/esm/dom/htmlRuntime.native.js.map +1 -1
- package/dist/esm/helpers/insertStyleRule.mjs +1 -1
- package/dist/esm/helpers/insertStyleRule.mjs.map +1 -1
- package/dist/esm/helpers/insertStyleRule.native.js +2 -2
- package/dist/esm/helpers/insertStyleRule.native.js.map +1 -1
- package/package.json +15 -15
- package/src/createTamagui.ts +3 -1
- package/src/dom/html.native.tsx +99 -92
- package/src/dom/html.tsx +105 -98
- package/src/dom/htmlRuntime.native.tsx +1 -0
- package/src/helpers/insertStyleRule.tsx +4 -1
- package/src/types.tsx +1 -1
- package/types/createTamagui.d.ts.map +1 -1
- package/types/dom/html.d.ts +54 -50
- package/types/dom/html.d.ts.map +1 -1
- package/types/dom/html.native.d.ts +51 -47
- package/types/dom/html.native.d.ts.map +1 -1
- package/types/dom/htmlRuntime.native.d.ts.map +1 -1
- package/types/helpers/insertStyleRule.d.ts.map +1 -1
- package/types/types.d.ts +1 -1
- package/types/types.d.ts.map +1 -1
package/src/dom/html.tsx
CHANGED
|
@@ -40,6 +40,13 @@ import { viewStaticConfig } from '../views/View'
|
|
|
40
40
|
*/
|
|
41
41
|
const tag = (name: string) => name as unknown as StaticConfig['Component']
|
|
42
42
|
|
|
43
|
+
/** regular Tamagui non-style props win when the strict DOM contract names the same prop */
|
|
44
|
+
type MergeHTMLProps<DOMProps, TamaguiProps, TamaguiNonStyleProps> = Omit<
|
|
45
|
+
DOMProps,
|
|
46
|
+
keyof TamaguiNonStyleProps
|
|
47
|
+
> &
|
|
48
|
+
TamaguiProps
|
|
49
|
+
|
|
43
50
|
/**
|
|
44
51
|
* The semantic elements of the Tamagui DOM contract.
|
|
45
52
|
*
|
|
@@ -52,9 +59,9 @@ const tag = (name: string) => name as unknown as StaticConfig['Component']
|
|
|
52
59
|
*/
|
|
53
60
|
const a = setComponentDisplayName(
|
|
54
61
|
createComponent<
|
|
55
|
-
StrictDOMAnchorProps
|
|
62
|
+
MergeHTMLProps<StrictDOMAnchorProps, TextProps, TextNonStyleProps>,
|
|
56
63
|
TamaguiTextElement,
|
|
57
|
-
StrictDOMAnchorProps
|
|
64
|
+
MergeHTMLProps<StrictDOMAnchorProps, TextNonStyleProps, TextNonStyleProps>,
|
|
58
65
|
TextStylePropsBase
|
|
59
66
|
>({
|
|
60
67
|
...textStaticConfig,
|
|
@@ -71,9 +78,9 @@ const a = setComponentDisplayName(
|
|
|
71
78
|
|
|
72
79
|
const article = setComponentDisplayName(
|
|
73
80
|
createComponent<
|
|
74
|
-
StrictDOMProps
|
|
81
|
+
MergeHTMLProps<StrictDOMProps, ViewProps, StackNonStyleProps>,
|
|
75
82
|
TamaguiElement,
|
|
76
|
-
StrictDOMProps
|
|
83
|
+
MergeHTMLProps<StrictDOMProps, StackNonStyleProps, StackNonStyleProps>,
|
|
77
84
|
StackStyleBase
|
|
78
85
|
>({
|
|
79
86
|
...viewStaticConfig,
|
|
@@ -85,9 +92,9 @@ const article = setComponentDisplayName(
|
|
|
85
92
|
|
|
86
93
|
const aside = setComponentDisplayName(
|
|
87
94
|
createComponent<
|
|
88
|
-
StrictDOMProps
|
|
95
|
+
MergeHTMLProps<StrictDOMProps, ViewProps, StackNonStyleProps>,
|
|
89
96
|
TamaguiElement,
|
|
90
|
-
StrictDOMProps
|
|
97
|
+
MergeHTMLProps<StrictDOMProps, StackNonStyleProps, StackNonStyleProps>,
|
|
91
98
|
StackStyleBase
|
|
92
99
|
>({
|
|
93
100
|
...viewStaticConfig,
|
|
@@ -99,9 +106,9 @@ const aside = setComponentDisplayName(
|
|
|
99
106
|
|
|
100
107
|
const b = setComponentDisplayName(
|
|
101
108
|
createComponent<
|
|
102
|
-
StrictDOMProps
|
|
109
|
+
MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
|
|
103
110
|
TamaguiTextElement,
|
|
104
|
-
StrictDOMProps
|
|
111
|
+
MergeHTMLProps<StrictDOMProps, TextNonStyleProps, TextNonStyleProps>,
|
|
105
112
|
TextStylePropsBase
|
|
106
113
|
>({
|
|
107
114
|
...textStaticConfig,
|
|
@@ -119,9 +126,9 @@ const b = setComponentDisplayName(
|
|
|
119
126
|
|
|
120
127
|
const bdi = setComponentDisplayName(
|
|
121
128
|
createComponent<
|
|
122
|
-
StrictDOMProps
|
|
129
|
+
MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
|
|
123
130
|
TamaguiTextElement,
|
|
124
|
-
StrictDOMProps
|
|
131
|
+
MergeHTMLProps<StrictDOMProps, TextNonStyleProps, TextNonStyleProps>,
|
|
125
132
|
TextStylePropsBase
|
|
126
133
|
>({
|
|
127
134
|
...textStaticConfig,
|
|
@@ -138,9 +145,9 @@ const bdi = setComponentDisplayName(
|
|
|
138
145
|
|
|
139
146
|
const bdo = setComponentDisplayName(
|
|
140
147
|
createComponent<
|
|
141
|
-
StrictDOMProps
|
|
148
|
+
MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
|
|
142
149
|
TamaguiTextElement,
|
|
143
|
-
StrictDOMProps
|
|
150
|
+
MergeHTMLProps<StrictDOMProps, TextNonStyleProps, TextNonStyleProps>,
|
|
144
151
|
TextStylePropsBase
|
|
145
152
|
>({
|
|
146
153
|
...textStaticConfig,
|
|
@@ -157,9 +164,9 @@ const bdo = setComponentDisplayName(
|
|
|
157
164
|
|
|
158
165
|
const blockquote = setComponentDisplayName(
|
|
159
166
|
createComponent<
|
|
160
|
-
StrictDOMProps
|
|
167
|
+
MergeHTMLProps<StrictDOMProps, ViewProps, StackNonStyleProps>,
|
|
161
168
|
TamaguiElement,
|
|
162
|
-
StrictDOMProps
|
|
169
|
+
MergeHTMLProps<StrictDOMProps, StackNonStyleProps, StackNonStyleProps>,
|
|
163
170
|
StackStyleBase
|
|
164
171
|
>({
|
|
165
172
|
...viewStaticConfig,
|
|
@@ -171,9 +178,9 @@ const blockquote = setComponentDisplayName(
|
|
|
171
178
|
|
|
172
179
|
const br = setComponentDisplayName(
|
|
173
180
|
createComponent<
|
|
174
|
-
StrictDOMVoidProps
|
|
181
|
+
MergeHTMLProps<StrictDOMVoidProps, TextProps, TextNonStyleProps>,
|
|
175
182
|
TamaguiTextElement,
|
|
176
|
-
StrictDOMVoidProps
|
|
183
|
+
MergeHTMLProps<StrictDOMVoidProps, TextNonStyleProps, TextNonStyleProps>,
|
|
177
184
|
TextStylePropsBase
|
|
178
185
|
>({
|
|
179
186
|
...textStaticConfig,
|
|
@@ -190,9 +197,9 @@ const br = setComponentDisplayName(
|
|
|
190
197
|
|
|
191
198
|
const button = setComponentDisplayName(
|
|
192
199
|
createComponent<
|
|
193
|
-
StrictDOMButtonProps
|
|
200
|
+
MergeHTMLProps<StrictDOMButtonProps, ViewProps, StackNonStyleProps>,
|
|
194
201
|
TamaguiElement,
|
|
195
|
-
StrictDOMButtonProps
|
|
202
|
+
MergeHTMLProps<StrictDOMButtonProps, StackNonStyleProps, StackNonStyleProps>,
|
|
196
203
|
StackStyleBase
|
|
197
204
|
>({
|
|
198
205
|
...viewStaticConfig,
|
|
@@ -210,9 +217,9 @@ const button = setComponentDisplayName(
|
|
|
210
217
|
|
|
211
218
|
const code = setComponentDisplayName(
|
|
212
219
|
createComponent<
|
|
213
|
-
StrictDOMProps
|
|
220
|
+
MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
|
|
214
221
|
TamaguiTextElement,
|
|
215
|
-
StrictDOMProps
|
|
222
|
+
MergeHTMLProps<StrictDOMProps, TextNonStyleProps, TextNonStyleProps>,
|
|
216
223
|
TextStylePropsBase
|
|
217
224
|
>({
|
|
218
225
|
...textStaticConfig,
|
|
@@ -231,9 +238,9 @@ const code = setComponentDisplayName(
|
|
|
231
238
|
|
|
232
239
|
const del = setComponentDisplayName(
|
|
233
240
|
createComponent<
|
|
234
|
-
StrictDOMProps
|
|
241
|
+
MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
|
|
235
242
|
TamaguiTextElement,
|
|
236
|
-
StrictDOMProps
|
|
243
|
+
MergeHTMLProps<StrictDOMProps, TextNonStyleProps, TextNonStyleProps>,
|
|
237
244
|
TextStylePropsBase
|
|
238
245
|
>({
|
|
239
246
|
...textStaticConfig,
|
|
@@ -250,9 +257,9 @@ const del = setComponentDisplayName(
|
|
|
250
257
|
|
|
251
258
|
const div = setComponentDisplayName(
|
|
252
259
|
createComponent<
|
|
253
|
-
StrictDOMProps
|
|
260
|
+
MergeHTMLProps<StrictDOMProps, ViewProps, StackNonStyleProps>,
|
|
254
261
|
TamaguiElement,
|
|
255
|
-
StrictDOMProps
|
|
262
|
+
MergeHTMLProps<StrictDOMProps, StackNonStyleProps, StackNonStyleProps>,
|
|
256
263
|
StackStyleBase
|
|
257
264
|
>({
|
|
258
265
|
...viewStaticConfig,
|
|
@@ -264,9 +271,9 @@ const div = setComponentDisplayName(
|
|
|
264
271
|
|
|
265
272
|
const em = setComponentDisplayName(
|
|
266
273
|
createComponent<
|
|
267
|
-
StrictDOMProps
|
|
274
|
+
MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
|
|
268
275
|
TamaguiTextElement,
|
|
269
|
-
StrictDOMProps
|
|
276
|
+
MergeHTMLProps<StrictDOMProps, TextNonStyleProps, TextNonStyleProps>,
|
|
270
277
|
TextStylePropsBase
|
|
271
278
|
>({
|
|
272
279
|
...textStaticConfig,
|
|
@@ -284,9 +291,9 @@ const em = setComponentDisplayName(
|
|
|
284
291
|
|
|
285
292
|
const fieldset = setComponentDisplayName(
|
|
286
293
|
createComponent<
|
|
287
|
-
StrictDOMProps
|
|
294
|
+
MergeHTMLProps<StrictDOMProps, ViewProps, StackNonStyleProps>,
|
|
288
295
|
TamaguiElement,
|
|
289
|
-
StrictDOMProps
|
|
296
|
+
MergeHTMLProps<StrictDOMProps, StackNonStyleProps, StackNonStyleProps>,
|
|
290
297
|
StackStyleBase
|
|
291
298
|
>({
|
|
292
299
|
...viewStaticConfig,
|
|
@@ -298,9 +305,9 @@ const fieldset = setComponentDisplayName(
|
|
|
298
305
|
|
|
299
306
|
const footer = setComponentDisplayName(
|
|
300
307
|
createComponent<
|
|
301
|
-
StrictDOMProps
|
|
308
|
+
MergeHTMLProps<StrictDOMProps, ViewProps, StackNonStyleProps>,
|
|
302
309
|
TamaguiElement,
|
|
303
|
-
StrictDOMProps
|
|
310
|
+
MergeHTMLProps<StrictDOMProps, StackNonStyleProps, StackNonStyleProps>,
|
|
304
311
|
StackStyleBase
|
|
305
312
|
>({
|
|
306
313
|
...viewStaticConfig,
|
|
@@ -312,9 +319,9 @@ const footer = setComponentDisplayName(
|
|
|
312
319
|
|
|
313
320
|
const form = setComponentDisplayName(
|
|
314
321
|
createComponent<
|
|
315
|
-
StrictDOMProps
|
|
322
|
+
MergeHTMLProps<StrictDOMProps, ViewProps, StackNonStyleProps>,
|
|
316
323
|
TamaguiElement,
|
|
317
|
-
StrictDOMProps
|
|
324
|
+
MergeHTMLProps<StrictDOMProps, StackNonStyleProps, StackNonStyleProps>,
|
|
318
325
|
StackStyleBase
|
|
319
326
|
>({
|
|
320
327
|
...viewStaticConfig,
|
|
@@ -326,9 +333,9 @@ const form = setComponentDisplayName(
|
|
|
326
333
|
|
|
327
334
|
const h1 = setComponentDisplayName(
|
|
328
335
|
createComponent<
|
|
329
|
-
StrictDOMProps
|
|
336
|
+
MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
|
|
330
337
|
TamaguiTextElement,
|
|
331
|
-
StrictDOMProps
|
|
338
|
+
MergeHTMLProps<StrictDOMProps, TextNonStyleProps, TextNonStyleProps>,
|
|
332
339
|
TextStylePropsBase
|
|
333
340
|
>({
|
|
334
341
|
...textStaticConfig,
|
|
@@ -346,9 +353,9 @@ const h1 = setComponentDisplayName(
|
|
|
346
353
|
|
|
347
354
|
const h2 = setComponentDisplayName(
|
|
348
355
|
createComponent<
|
|
349
|
-
StrictDOMProps
|
|
356
|
+
MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
|
|
350
357
|
TamaguiTextElement,
|
|
351
|
-
StrictDOMProps
|
|
358
|
+
MergeHTMLProps<StrictDOMProps, TextNonStyleProps, TextNonStyleProps>,
|
|
352
359
|
TextStylePropsBase
|
|
353
360
|
>({
|
|
354
361
|
...textStaticConfig,
|
|
@@ -366,9 +373,9 @@ const h2 = setComponentDisplayName(
|
|
|
366
373
|
|
|
367
374
|
const h3 = setComponentDisplayName(
|
|
368
375
|
createComponent<
|
|
369
|
-
StrictDOMProps
|
|
376
|
+
MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
|
|
370
377
|
TamaguiTextElement,
|
|
371
|
-
StrictDOMProps
|
|
378
|
+
MergeHTMLProps<StrictDOMProps, TextNonStyleProps, TextNonStyleProps>,
|
|
372
379
|
TextStylePropsBase
|
|
373
380
|
>({
|
|
374
381
|
...textStaticConfig,
|
|
@@ -386,9 +393,9 @@ const h3 = setComponentDisplayName(
|
|
|
386
393
|
|
|
387
394
|
const h4 = setComponentDisplayName(
|
|
388
395
|
createComponent<
|
|
389
|
-
StrictDOMProps
|
|
396
|
+
MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
|
|
390
397
|
TamaguiTextElement,
|
|
391
|
-
StrictDOMProps
|
|
398
|
+
MergeHTMLProps<StrictDOMProps, TextNonStyleProps, TextNonStyleProps>,
|
|
392
399
|
TextStylePropsBase
|
|
393
400
|
>({
|
|
394
401
|
...textStaticConfig,
|
|
@@ -406,9 +413,9 @@ const h4 = setComponentDisplayName(
|
|
|
406
413
|
|
|
407
414
|
const h5 = setComponentDisplayName(
|
|
408
415
|
createComponent<
|
|
409
|
-
StrictDOMProps
|
|
416
|
+
MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
|
|
410
417
|
TamaguiTextElement,
|
|
411
|
-
StrictDOMProps
|
|
418
|
+
MergeHTMLProps<StrictDOMProps, TextNonStyleProps, TextNonStyleProps>,
|
|
412
419
|
TextStylePropsBase
|
|
413
420
|
>({
|
|
414
421
|
...textStaticConfig,
|
|
@@ -426,9 +433,9 @@ const h5 = setComponentDisplayName(
|
|
|
426
433
|
|
|
427
434
|
const h6 = setComponentDisplayName(
|
|
428
435
|
createComponent<
|
|
429
|
-
StrictDOMProps
|
|
436
|
+
MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
|
|
430
437
|
TamaguiTextElement,
|
|
431
|
-
StrictDOMProps
|
|
438
|
+
MergeHTMLProps<StrictDOMProps, TextNonStyleProps, TextNonStyleProps>,
|
|
432
439
|
TextStylePropsBase
|
|
433
440
|
>({
|
|
434
441
|
...textStaticConfig,
|
|
@@ -446,9 +453,9 @@ const h6 = setComponentDisplayName(
|
|
|
446
453
|
|
|
447
454
|
const header = setComponentDisplayName(
|
|
448
455
|
createComponent<
|
|
449
|
-
StrictDOMProps
|
|
456
|
+
MergeHTMLProps<StrictDOMProps, ViewProps, StackNonStyleProps>,
|
|
450
457
|
TamaguiElement,
|
|
451
|
-
StrictDOMProps
|
|
458
|
+
MergeHTMLProps<StrictDOMProps, StackNonStyleProps, StackNonStyleProps>,
|
|
452
459
|
StackStyleBase
|
|
453
460
|
>({
|
|
454
461
|
...viewStaticConfig,
|
|
@@ -460,9 +467,9 @@ const header = setComponentDisplayName(
|
|
|
460
467
|
|
|
461
468
|
const hr = setComponentDisplayName(
|
|
462
469
|
createComponent<
|
|
463
|
-
StrictDOMVoidProps
|
|
470
|
+
MergeHTMLProps<StrictDOMVoidProps, ViewProps, StackNonStyleProps>,
|
|
464
471
|
TamaguiElement,
|
|
465
|
-
StrictDOMVoidProps
|
|
472
|
+
MergeHTMLProps<StrictDOMVoidProps, StackNonStyleProps, StackNonStyleProps>,
|
|
466
473
|
StackStyleBase
|
|
467
474
|
>({
|
|
468
475
|
...viewStaticConfig,
|
|
@@ -483,9 +490,9 @@ const hr = setComponentDisplayName(
|
|
|
483
490
|
|
|
484
491
|
const i = setComponentDisplayName(
|
|
485
492
|
createComponent<
|
|
486
|
-
StrictDOMProps
|
|
493
|
+
MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
|
|
487
494
|
TamaguiTextElement,
|
|
488
|
-
StrictDOMProps
|
|
495
|
+
MergeHTMLProps<StrictDOMProps, TextNonStyleProps, TextNonStyleProps>,
|
|
489
496
|
TextStylePropsBase
|
|
490
497
|
>({
|
|
491
498
|
...textStaticConfig,
|
|
@@ -503,9 +510,9 @@ const i = setComponentDisplayName(
|
|
|
503
510
|
|
|
504
511
|
const img = setComponentDisplayName(
|
|
505
512
|
createComponent<
|
|
506
|
-
StrictDOMImageProps
|
|
513
|
+
MergeHTMLProps<StrictDOMImageProps, ViewProps, StackNonStyleProps>,
|
|
507
514
|
TamaguiElement,
|
|
508
|
-
StrictDOMImageProps
|
|
515
|
+
MergeHTMLProps<StrictDOMImageProps, StackNonStyleProps, StackNonStyleProps>,
|
|
509
516
|
StackStyleBase
|
|
510
517
|
>({
|
|
511
518
|
...viewStaticConfig,
|
|
@@ -525,9 +532,9 @@ const img = setComponentDisplayName(
|
|
|
525
532
|
|
|
526
533
|
const input = setComponentDisplayName(
|
|
527
534
|
createComponent<
|
|
528
|
-
StrictDOMInputProps
|
|
535
|
+
MergeHTMLProps<StrictDOMInputProps, TextProps, TextNonStyleProps>,
|
|
529
536
|
TamaguiTextElement,
|
|
530
|
-
StrictDOMInputProps
|
|
537
|
+
MergeHTMLProps<StrictDOMInputProps, TextNonStyleProps, TextNonStyleProps>,
|
|
531
538
|
TextStylePropsBase
|
|
532
539
|
>({
|
|
533
540
|
...textStaticConfig,
|
|
@@ -546,9 +553,9 @@ const input = setComponentDisplayName(
|
|
|
546
553
|
|
|
547
554
|
const ins = setComponentDisplayName(
|
|
548
555
|
createComponent<
|
|
549
|
-
StrictDOMProps
|
|
556
|
+
MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
|
|
550
557
|
TamaguiTextElement,
|
|
551
|
-
StrictDOMProps
|
|
558
|
+
MergeHTMLProps<StrictDOMProps, TextNonStyleProps, TextNonStyleProps>,
|
|
552
559
|
TextStylePropsBase
|
|
553
560
|
>({
|
|
554
561
|
...textStaticConfig,
|
|
@@ -565,9 +572,9 @@ const ins = setComponentDisplayName(
|
|
|
565
572
|
|
|
566
573
|
const kbd = setComponentDisplayName(
|
|
567
574
|
createComponent<
|
|
568
|
-
StrictDOMProps
|
|
575
|
+
MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
|
|
569
576
|
TamaguiTextElement,
|
|
570
|
-
StrictDOMProps
|
|
577
|
+
MergeHTMLProps<StrictDOMProps, TextNonStyleProps, TextNonStyleProps>,
|
|
571
578
|
TextStylePropsBase
|
|
572
579
|
>({
|
|
573
580
|
...textStaticConfig,
|
|
@@ -586,9 +593,9 @@ const kbd = setComponentDisplayName(
|
|
|
586
593
|
|
|
587
594
|
const label = setComponentDisplayName(
|
|
588
595
|
createComponent<
|
|
589
|
-
StrictDOMLabelProps
|
|
596
|
+
MergeHTMLProps<StrictDOMLabelProps, TextProps, TextNonStyleProps>,
|
|
590
597
|
TamaguiTextElement,
|
|
591
|
-
StrictDOMLabelProps
|
|
598
|
+
MergeHTMLProps<StrictDOMLabelProps, TextNonStyleProps, TextNonStyleProps>,
|
|
592
599
|
TextStylePropsBase
|
|
593
600
|
>({
|
|
594
601
|
...textStaticConfig,
|
|
@@ -605,9 +612,9 @@ const label = setComponentDisplayName(
|
|
|
605
612
|
|
|
606
613
|
const li = setComponentDisplayName(
|
|
607
614
|
createComponent<
|
|
608
|
-
StrictDOMListItemProps
|
|
615
|
+
MergeHTMLProps<StrictDOMListItemProps, ViewProps, StackNonStyleProps>,
|
|
609
616
|
TamaguiElement,
|
|
610
|
-
StrictDOMListItemProps
|
|
617
|
+
MergeHTMLProps<StrictDOMListItemProps, StackNonStyleProps, StackNonStyleProps>,
|
|
611
618
|
StackStyleBase
|
|
612
619
|
>({
|
|
613
620
|
...viewStaticConfig,
|
|
@@ -619,9 +626,9 @@ const li = setComponentDisplayName(
|
|
|
619
626
|
|
|
620
627
|
const main = setComponentDisplayName(
|
|
621
628
|
createComponent<
|
|
622
|
-
StrictDOMProps
|
|
629
|
+
MergeHTMLProps<StrictDOMProps, ViewProps, StackNonStyleProps>,
|
|
623
630
|
TamaguiElement,
|
|
624
|
-
StrictDOMProps
|
|
631
|
+
MergeHTMLProps<StrictDOMProps, StackNonStyleProps, StackNonStyleProps>,
|
|
625
632
|
StackStyleBase
|
|
626
633
|
>({
|
|
627
634
|
...viewStaticConfig,
|
|
@@ -633,9 +640,9 @@ const main = setComponentDisplayName(
|
|
|
633
640
|
|
|
634
641
|
const mark = setComponentDisplayName(
|
|
635
642
|
createComponent<
|
|
636
|
-
StrictDOMProps
|
|
643
|
+
MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
|
|
637
644
|
TamaguiTextElement,
|
|
638
|
-
StrictDOMProps
|
|
645
|
+
MergeHTMLProps<StrictDOMProps, TextNonStyleProps, TextNonStyleProps>,
|
|
639
646
|
TextStylePropsBase
|
|
640
647
|
>({
|
|
641
648
|
...textStaticConfig,
|
|
@@ -654,9 +661,9 @@ const mark = setComponentDisplayName(
|
|
|
654
661
|
|
|
655
662
|
const nav = setComponentDisplayName(
|
|
656
663
|
createComponent<
|
|
657
|
-
StrictDOMProps
|
|
664
|
+
MergeHTMLProps<StrictDOMProps, ViewProps, StackNonStyleProps>,
|
|
658
665
|
TamaguiElement,
|
|
659
|
-
StrictDOMProps
|
|
666
|
+
MergeHTMLProps<StrictDOMProps, StackNonStyleProps, StackNonStyleProps>,
|
|
660
667
|
StackStyleBase
|
|
661
668
|
>({
|
|
662
669
|
...viewStaticConfig,
|
|
@@ -668,9 +675,9 @@ const nav = setComponentDisplayName(
|
|
|
668
675
|
|
|
669
676
|
const ol = setComponentDisplayName(
|
|
670
677
|
createComponent<
|
|
671
|
-
StrictDOMProps
|
|
678
|
+
MergeHTMLProps<StrictDOMProps, ViewProps, StackNonStyleProps>,
|
|
672
679
|
TamaguiElement,
|
|
673
|
-
StrictDOMProps
|
|
680
|
+
MergeHTMLProps<StrictDOMProps, StackNonStyleProps, StackNonStyleProps>,
|
|
674
681
|
StackStyleBase
|
|
675
682
|
>({
|
|
676
683
|
...viewStaticConfig,
|
|
@@ -682,9 +689,9 @@ const ol = setComponentDisplayName(
|
|
|
682
689
|
|
|
683
690
|
const optgroup = setComponentDisplayName(
|
|
684
691
|
createComponent<
|
|
685
|
-
StrictDOMOptionGroupProps
|
|
692
|
+
MergeHTMLProps<StrictDOMOptionGroupProps, ViewProps, StackNonStyleProps>,
|
|
686
693
|
TamaguiElement,
|
|
687
|
-
StrictDOMOptionGroupProps
|
|
694
|
+
MergeHTMLProps<StrictDOMOptionGroupProps, StackNonStyleProps, StackNonStyleProps>,
|
|
688
695
|
StackStyleBase
|
|
689
696
|
>({
|
|
690
697
|
...viewStaticConfig,
|
|
@@ -696,9 +703,9 @@ const optgroup = setComponentDisplayName(
|
|
|
696
703
|
|
|
697
704
|
const option = setComponentDisplayName(
|
|
698
705
|
createComponent<
|
|
699
|
-
StrictDOMOptionProps
|
|
706
|
+
MergeHTMLProps<StrictDOMOptionProps, TextProps, TextNonStyleProps>,
|
|
700
707
|
TamaguiTextElement,
|
|
701
|
-
StrictDOMOptionProps
|
|
708
|
+
MergeHTMLProps<StrictDOMOptionProps, TextNonStyleProps, TextNonStyleProps>,
|
|
702
709
|
TextStylePropsBase
|
|
703
710
|
>({
|
|
704
711
|
...textStaticConfig,
|
|
@@ -710,9 +717,9 @@ const option = setComponentDisplayName(
|
|
|
710
717
|
|
|
711
718
|
const p = setComponentDisplayName(
|
|
712
719
|
createComponent<
|
|
713
|
-
StrictDOMProps
|
|
720
|
+
MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
|
|
714
721
|
TamaguiTextElement,
|
|
715
|
-
StrictDOMProps
|
|
722
|
+
MergeHTMLProps<StrictDOMProps, TextNonStyleProps, TextNonStyleProps>,
|
|
716
723
|
TextStylePropsBase
|
|
717
724
|
>({
|
|
718
725
|
...textStaticConfig,
|
|
@@ -724,9 +731,9 @@ const p = setComponentDisplayName(
|
|
|
724
731
|
|
|
725
732
|
const pre = setComponentDisplayName(
|
|
726
733
|
createComponent<
|
|
727
|
-
StrictDOMProps
|
|
734
|
+
MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
|
|
728
735
|
TamaguiTextElement,
|
|
729
|
-
StrictDOMProps
|
|
736
|
+
MergeHTMLProps<StrictDOMProps, TextNonStyleProps, TextNonStyleProps>,
|
|
730
737
|
TextStylePropsBase
|
|
731
738
|
>({
|
|
732
739
|
...textStaticConfig,
|
|
@@ -745,9 +752,9 @@ const pre = setComponentDisplayName(
|
|
|
745
752
|
|
|
746
753
|
const s = setComponentDisplayName(
|
|
747
754
|
createComponent<
|
|
748
|
-
StrictDOMProps
|
|
755
|
+
MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
|
|
749
756
|
TamaguiTextElement,
|
|
750
|
-
StrictDOMProps
|
|
757
|
+
MergeHTMLProps<StrictDOMProps, TextNonStyleProps, TextNonStyleProps>,
|
|
751
758
|
TextStylePropsBase
|
|
752
759
|
>({
|
|
753
760
|
...textStaticConfig,
|
|
@@ -764,9 +771,9 @@ const s = setComponentDisplayName(
|
|
|
764
771
|
|
|
765
772
|
const section = setComponentDisplayName(
|
|
766
773
|
createComponent<
|
|
767
|
-
StrictDOMProps
|
|
774
|
+
MergeHTMLProps<StrictDOMProps, ViewProps, StackNonStyleProps>,
|
|
768
775
|
TamaguiElement,
|
|
769
|
-
StrictDOMProps
|
|
776
|
+
MergeHTMLProps<StrictDOMProps, StackNonStyleProps, StackNonStyleProps>,
|
|
770
777
|
StackStyleBase
|
|
771
778
|
>({
|
|
772
779
|
...viewStaticConfig,
|
|
@@ -778,9 +785,9 @@ const section = setComponentDisplayName(
|
|
|
778
785
|
|
|
779
786
|
const select = setComponentDisplayName(
|
|
780
787
|
createComponent<
|
|
781
|
-
StrictDOMSelectProps
|
|
788
|
+
MergeHTMLProps<StrictDOMSelectProps, ViewProps, StackNonStyleProps>,
|
|
782
789
|
TamaguiElement,
|
|
783
|
-
StrictDOMSelectProps
|
|
790
|
+
MergeHTMLProps<StrictDOMSelectProps, StackNonStyleProps, StackNonStyleProps>,
|
|
784
791
|
StackStyleBase
|
|
785
792
|
>({
|
|
786
793
|
...viewStaticConfig,
|
|
@@ -797,9 +804,9 @@ const select = setComponentDisplayName(
|
|
|
797
804
|
|
|
798
805
|
const span = setComponentDisplayName(
|
|
799
806
|
createComponent<
|
|
800
|
-
StrictDOMProps
|
|
807
|
+
MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
|
|
801
808
|
TamaguiTextElement,
|
|
802
|
-
StrictDOMProps
|
|
809
|
+
MergeHTMLProps<StrictDOMProps, TextNonStyleProps, TextNonStyleProps>,
|
|
803
810
|
TextStylePropsBase
|
|
804
811
|
>({
|
|
805
812
|
...textStaticConfig,
|
|
@@ -816,9 +823,9 @@ const span = setComponentDisplayName(
|
|
|
816
823
|
|
|
817
824
|
const strong = setComponentDisplayName(
|
|
818
825
|
createComponent<
|
|
819
|
-
StrictDOMProps
|
|
826
|
+
MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
|
|
820
827
|
TamaguiTextElement,
|
|
821
|
-
StrictDOMProps
|
|
828
|
+
MergeHTMLProps<StrictDOMProps, TextNonStyleProps, TextNonStyleProps>,
|
|
822
829
|
TextStylePropsBase
|
|
823
830
|
>({
|
|
824
831
|
...textStaticConfig,
|
|
@@ -836,9 +843,9 @@ const strong = setComponentDisplayName(
|
|
|
836
843
|
|
|
837
844
|
const sub = setComponentDisplayName(
|
|
838
845
|
createComponent<
|
|
839
|
-
StrictDOMProps
|
|
846
|
+
MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
|
|
840
847
|
TamaguiTextElement,
|
|
841
|
-
StrictDOMProps
|
|
848
|
+
MergeHTMLProps<StrictDOMProps, TextNonStyleProps, TextNonStyleProps>,
|
|
842
849
|
TextStylePropsBase
|
|
843
850
|
>({
|
|
844
851
|
...textStaticConfig,
|
|
@@ -855,9 +862,9 @@ const sub = setComponentDisplayName(
|
|
|
855
862
|
|
|
856
863
|
const sup = setComponentDisplayName(
|
|
857
864
|
createComponent<
|
|
858
|
-
StrictDOMProps
|
|
865
|
+
MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
|
|
859
866
|
TamaguiTextElement,
|
|
860
|
-
StrictDOMProps
|
|
867
|
+
MergeHTMLProps<StrictDOMProps, TextNonStyleProps, TextNonStyleProps>,
|
|
861
868
|
TextStylePropsBase
|
|
862
869
|
>({
|
|
863
870
|
...textStaticConfig,
|
|
@@ -874,9 +881,9 @@ const sup = setComponentDisplayName(
|
|
|
874
881
|
|
|
875
882
|
const textarea = setComponentDisplayName(
|
|
876
883
|
createComponent<
|
|
877
|
-
StrictDOMTextAreaProps
|
|
884
|
+
MergeHTMLProps<StrictDOMTextAreaProps, TextProps, TextNonStyleProps>,
|
|
878
885
|
TamaguiTextElement,
|
|
879
|
-
StrictDOMTextAreaProps
|
|
886
|
+
MergeHTMLProps<StrictDOMTextAreaProps, TextNonStyleProps, TextNonStyleProps>,
|
|
880
887
|
TextStylePropsBase
|
|
881
888
|
>({
|
|
882
889
|
...textStaticConfig,
|
|
@@ -895,9 +902,9 @@ const textarea = setComponentDisplayName(
|
|
|
895
902
|
|
|
896
903
|
const u = setComponentDisplayName(
|
|
897
904
|
createComponent<
|
|
898
|
-
StrictDOMProps
|
|
905
|
+
MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
|
|
899
906
|
TamaguiTextElement,
|
|
900
|
-
StrictDOMProps
|
|
907
|
+
MergeHTMLProps<StrictDOMProps, TextNonStyleProps, TextNonStyleProps>,
|
|
901
908
|
TextStylePropsBase
|
|
902
909
|
>({
|
|
903
910
|
...textStaticConfig,
|
|
@@ -914,9 +921,9 @@ const u = setComponentDisplayName(
|
|
|
914
921
|
|
|
915
922
|
const ul = setComponentDisplayName(
|
|
916
923
|
createComponent<
|
|
917
|
-
StrictDOMProps
|
|
924
|
+
MergeHTMLProps<StrictDOMProps, ViewProps, StackNonStyleProps>,
|
|
918
925
|
TamaguiElement,
|
|
919
|
-
StrictDOMProps
|
|
926
|
+
MergeHTMLProps<StrictDOMProps, StackNonStyleProps, StackNonStyleProps>,
|
|
920
927
|
StackStyleBase
|
|
921
928
|
>({
|
|
922
929
|
...viewStaticConfig,
|
|
@@ -56,7 +56,10 @@ export function scanAllSheets(
|
|
|
56
56
|
collectThemes = false,
|
|
57
57
|
tokens?: TokensParsed
|
|
58
58
|
): DedupedThemes | undefined {
|
|
59
|
-
|
|
59
|
+
// with a proven CSS artifact the style dedup scan is dead weight, but theme
|
|
60
|
+
// collection must still run: a client config passing empty themes hydrates
|
|
61
|
+
// its theme values from that same CSS artifact
|
|
62
|
+
if (!process.env.TAMAGUI_DID_OUTPUT_CSS || collectThemes) {
|
|
60
63
|
if (process.env.NODE_ENV === 'test') return
|
|
61
64
|
if (process.env.TAMAGUI_TARGET !== 'web') return
|
|
62
65
|
if (typeof document === 'undefined') return
|
package/src/types.tsx
CHANGED
|
@@ -1857,7 +1857,7 @@ export type GetTokenFontKeysFor<
|
|
|
1857
1857
|
> = keyof TamaguiConfig['fonts']['body'][A]
|
|
1858
1858
|
|
|
1859
1859
|
export type FontTokens = GetTokenString<keyof TamaguiConfig['fonts']>
|
|
1860
|
-
export type FontFamilyTokens =
|
|
1860
|
+
export type FontFamilyTokens = FontTokens
|
|
1861
1861
|
export type FontSize =
|
|
1862
1862
|
| GetTokenString<GetTokenFontKeysFor<'size'>>
|
|
1863
1863
|
| number
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createTamagui.d.ts","sourceRoot":"","sources":["../src/createTamagui.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EACV,kBAAkB,EAKlB,kBAAkB,EAClB,qBAAqB,EAKtB,MAAM,SAAS,CAAA;AAoChB,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,qBAAqB,yBAIjE;AAwBD,wBAAgB,aAAa,CAAC,IAAI,SAAS,kBAAkB,EAC3D,QAAQ,EAAE,IAAI,GACb,kBAAkB,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"createTamagui.d.ts","sourceRoot":"","sources":["../src/createTamagui.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EACV,kBAAkB,EAKlB,kBAAkB,EAClB,qBAAqB,EAKtB,MAAM,SAAS,CAAA;AAoChB,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,qBAAqB,yBAIjE;AAwBD,wBAAgB,aAAa,CAAC,IAAI,SAAS,kBAAkB,EAC3D,QAAQ,EAAE,IAAI,GACb,kBAAkB,CAAC,IAAI,CAAC,CA8M1B"}
|