@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.
Files changed (37) hide show
  1. package/dist/cjs/createTamagui.cjs +1 -1
  2. package/dist/cjs/createTamagui.native.cjs +1 -1
  3. package/dist/cjs/createTamagui.native.js +1 -1
  4. package/dist/cjs/createTamagui.native.js.map +1 -1
  5. package/dist/cjs/dom/htmlRuntime.native.cjs +1 -0
  6. package/dist/cjs/dom/htmlRuntime.native.js +1 -0
  7. package/dist/cjs/dom/htmlRuntime.native.js.map +1 -1
  8. package/dist/cjs/helpers/insertStyleRule.cjs +1 -1
  9. package/dist/cjs/helpers/insertStyleRule.native.cjs +2 -2
  10. package/dist/cjs/helpers/insertStyleRule.native.js +2 -2
  11. package/dist/cjs/helpers/insertStyleRule.native.js.map +1 -1
  12. package/dist/esm/createTamagui.mjs +1 -1
  13. package/dist/esm/createTamagui.mjs.map +1 -1
  14. package/dist/esm/createTamagui.native.js +1 -1
  15. package/dist/esm/createTamagui.native.js.map +1 -1
  16. package/dist/esm/dom/htmlRuntime.native.js +1 -0
  17. package/dist/esm/dom/htmlRuntime.native.js.map +1 -1
  18. package/dist/esm/helpers/insertStyleRule.mjs +1 -1
  19. package/dist/esm/helpers/insertStyleRule.mjs.map +1 -1
  20. package/dist/esm/helpers/insertStyleRule.native.js +2 -2
  21. package/dist/esm/helpers/insertStyleRule.native.js.map +1 -1
  22. package/package.json +15 -15
  23. package/src/createTamagui.ts +3 -1
  24. package/src/dom/html.native.tsx +99 -92
  25. package/src/dom/html.tsx +105 -98
  26. package/src/dom/htmlRuntime.native.tsx +1 -0
  27. package/src/helpers/insertStyleRule.tsx +4 -1
  28. package/src/types.tsx +1 -1
  29. package/types/createTamagui.d.ts.map +1 -1
  30. package/types/dom/html.d.ts +54 -50
  31. package/types/dom/html.d.ts.map +1 -1
  32. package/types/dom/html.native.d.ts +51 -47
  33. package/types/dom/html.native.d.ts.map +1 -1
  34. package/types/dom/htmlRuntime.native.d.ts.map +1 -1
  35. package/types/helpers/insertStyleRule.d.ts.map +1 -1
  36. package/types/types.d.ts +1 -1
  37. 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 & TextProps,
62
+ MergeHTMLProps<StrictDOMAnchorProps, TextProps, TextNonStyleProps>,
56
63
  TamaguiTextElement,
57
- StrictDOMAnchorProps & TextNonStyleProps,
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 & ViewProps,
81
+ MergeHTMLProps<StrictDOMProps, ViewProps, StackNonStyleProps>,
75
82
  TamaguiElement,
76
- StrictDOMProps & StackNonStyleProps,
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 & ViewProps,
95
+ MergeHTMLProps<StrictDOMProps, ViewProps, StackNonStyleProps>,
89
96
  TamaguiElement,
90
- StrictDOMProps & StackNonStyleProps,
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 & TextProps,
109
+ MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
103
110
  TamaguiTextElement,
104
- StrictDOMProps & TextNonStyleProps,
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 & TextProps,
129
+ MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
123
130
  TamaguiTextElement,
124
- StrictDOMProps & TextNonStyleProps,
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 & TextProps,
148
+ MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
142
149
  TamaguiTextElement,
143
- StrictDOMProps & TextNonStyleProps,
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 & ViewProps,
167
+ MergeHTMLProps<StrictDOMProps, ViewProps, StackNonStyleProps>,
161
168
  TamaguiElement,
162
- StrictDOMProps & StackNonStyleProps,
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 & TextProps,
181
+ MergeHTMLProps<StrictDOMVoidProps, TextProps, TextNonStyleProps>,
175
182
  TamaguiTextElement,
176
- StrictDOMVoidProps & TextNonStyleProps,
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 & ViewProps,
200
+ MergeHTMLProps<StrictDOMButtonProps, ViewProps, StackNonStyleProps>,
194
201
  TamaguiElement,
195
- StrictDOMButtonProps & StackNonStyleProps,
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 & TextProps,
220
+ MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
214
221
  TamaguiTextElement,
215
- StrictDOMProps & TextNonStyleProps,
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 & TextProps,
241
+ MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
235
242
  TamaguiTextElement,
236
- StrictDOMProps & TextNonStyleProps,
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 & ViewProps,
260
+ MergeHTMLProps<StrictDOMProps, ViewProps, StackNonStyleProps>,
254
261
  TamaguiElement,
255
- StrictDOMProps & StackNonStyleProps,
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 & TextProps,
274
+ MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
268
275
  TamaguiTextElement,
269
- StrictDOMProps & TextNonStyleProps,
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 & ViewProps,
294
+ MergeHTMLProps<StrictDOMProps, ViewProps, StackNonStyleProps>,
288
295
  TamaguiElement,
289
- StrictDOMProps & StackNonStyleProps,
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 & ViewProps,
308
+ MergeHTMLProps<StrictDOMProps, ViewProps, StackNonStyleProps>,
302
309
  TamaguiElement,
303
- StrictDOMProps & StackNonStyleProps,
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 & ViewProps,
322
+ MergeHTMLProps<StrictDOMProps, ViewProps, StackNonStyleProps>,
316
323
  TamaguiElement,
317
- StrictDOMProps & StackNonStyleProps,
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 & TextProps,
336
+ MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
330
337
  TamaguiTextElement,
331
- StrictDOMProps & TextNonStyleProps,
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 & TextProps,
356
+ MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
350
357
  TamaguiTextElement,
351
- StrictDOMProps & TextNonStyleProps,
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 & TextProps,
376
+ MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
370
377
  TamaguiTextElement,
371
- StrictDOMProps & TextNonStyleProps,
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 & TextProps,
396
+ MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
390
397
  TamaguiTextElement,
391
- StrictDOMProps & TextNonStyleProps,
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 & TextProps,
416
+ MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
410
417
  TamaguiTextElement,
411
- StrictDOMProps & TextNonStyleProps,
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 & TextProps,
436
+ MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
430
437
  TamaguiTextElement,
431
- StrictDOMProps & TextNonStyleProps,
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 & ViewProps,
456
+ MergeHTMLProps<StrictDOMProps, ViewProps, StackNonStyleProps>,
450
457
  TamaguiElement,
451
- StrictDOMProps & StackNonStyleProps,
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 & ViewProps,
470
+ MergeHTMLProps<StrictDOMVoidProps, ViewProps, StackNonStyleProps>,
464
471
  TamaguiElement,
465
- StrictDOMVoidProps & StackNonStyleProps,
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 & TextProps,
493
+ MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
487
494
  TamaguiTextElement,
488
- StrictDOMProps & TextNonStyleProps,
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 & ViewProps,
513
+ MergeHTMLProps<StrictDOMImageProps, ViewProps, StackNonStyleProps>,
507
514
  TamaguiElement,
508
- StrictDOMImageProps & StackNonStyleProps,
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 & TextProps,
535
+ MergeHTMLProps<StrictDOMInputProps, TextProps, TextNonStyleProps>,
529
536
  TamaguiTextElement,
530
- StrictDOMInputProps & TextNonStyleProps,
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 & TextProps,
556
+ MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
550
557
  TamaguiTextElement,
551
- StrictDOMProps & TextNonStyleProps,
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 & TextProps,
575
+ MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
569
576
  TamaguiTextElement,
570
- StrictDOMProps & TextNonStyleProps,
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 & TextProps,
596
+ MergeHTMLProps<StrictDOMLabelProps, TextProps, TextNonStyleProps>,
590
597
  TamaguiTextElement,
591
- StrictDOMLabelProps & TextNonStyleProps,
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 & ViewProps,
615
+ MergeHTMLProps<StrictDOMListItemProps, ViewProps, StackNonStyleProps>,
609
616
  TamaguiElement,
610
- StrictDOMListItemProps & StackNonStyleProps,
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 & ViewProps,
629
+ MergeHTMLProps<StrictDOMProps, ViewProps, StackNonStyleProps>,
623
630
  TamaguiElement,
624
- StrictDOMProps & StackNonStyleProps,
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 & TextProps,
643
+ MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
637
644
  TamaguiTextElement,
638
- StrictDOMProps & TextNonStyleProps,
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 & ViewProps,
664
+ MergeHTMLProps<StrictDOMProps, ViewProps, StackNonStyleProps>,
658
665
  TamaguiElement,
659
- StrictDOMProps & StackNonStyleProps,
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 & ViewProps,
678
+ MergeHTMLProps<StrictDOMProps, ViewProps, StackNonStyleProps>,
672
679
  TamaguiElement,
673
- StrictDOMProps & StackNonStyleProps,
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 & ViewProps,
692
+ MergeHTMLProps<StrictDOMOptionGroupProps, ViewProps, StackNonStyleProps>,
686
693
  TamaguiElement,
687
- StrictDOMOptionGroupProps & StackNonStyleProps,
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 & TextProps,
706
+ MergeHTMLProps<StrictDOMOptionProps, TextProps, TextNonStyleProps>,
700
707
  TamaguiTextElement,
701
- StrictDOMOptionProps & TextNonStyleProps,
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 & TextProps,
720
+ MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
714
721
  TamaguiTextElement,
715
- StrictDOMProps & TextNonStyleProps,
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 & TextProps,
734
+ MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
728
735
  TamaguiTextElement,
729
- StrictDOMProps & TextNonStyleProps,
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 & TextProps,
755
+ MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
749
756
  TamaguiTextElement,
750
- StrictDOMProps & TextNonStyleProps,
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 & ViewProps,
774
+ MergeHTMLProps<StrictDOMProps, ViewProps, StackNonStyleProps>,
768
775
  TamaguiElement,
769
- StrictDOMProps & StackNonStyleProps,
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 & ViewProps,
788
+ MergeHTMLProps<StrictDOMSelectProps, ViewProps, StackNonStyleProps>,
782
789
  TamaguiElement,
783
- StrictDOMSelectProps & StackNonStyleProps,
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 & TextProps,
807
+ MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
801
808
  TamaguiTextElement,
802
- StrictDOMProps & TextNonStyleProps,
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 & TextProps,
826
+ MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
820
827
  TamaguiTextElement,
821
- StrictDOMProps & TextNonStyleProps,
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 & TextProps,
846
+ MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
840
847
  TamaguiTextElement,
841
- StrictDOMProps & TextNonStyleProps,
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 & TextProps,
865
+ MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
859
866
  TamaguiTextElement,
860
- StrictDOMProps & TextNonStyleProps,
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 & TextProps,
884
+ MergeHTMLProps<StrictDOMTextAreaProps, TextProps, TextNonStyleProps>,
878
885
  TamaguiTextElement,
879
- StrictDOMTextAreaProps & TextNonStyleProps,
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 & TextProps,
905
+ MergeHTMLProps<StrictDOMProps, TextProps, TextNonStyleProps>,
899
906
  TamaguiTextElement,
900
- StrictDOMProps & TextNonStyleProps,
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 & ViewProps,
924
+ MergeHTMLProps<StrictDOMProps, ViewProps, StackNonStyleProps>,
918
925
  TamaguiElement,
919
- StrictDOMProps & StackNonStyleProps,
926
+ MergeHTMLProps<StrictDOMProps, StackNonStyleProps, StackNonStyleProps>,
920
927
  StackStyleBase
921
928
  >({
922
929
  ...viewStaticConfig,
@@ -91,6 +91,7 @@ function resolveDOMProps(
91
91
 
92
92
  for (const name in props) {
93
93
  const value = props[name]
94
+ if (value === undefined) continue
94
95
  if (name === 'display') {
95
96
  display = value
96
97
  continue
@@ -56,7 +56,10 @@ export function scanAllSheets(
56
56
  collectThemes = false,
57
57
  tokens?: TokensParsed
58
58
  ): DedupedThemes | undefined {
59
- if (!process.env.TAMAGUI_DID_OUTPUT_CSS) {
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 = GetTokenString<GetTokenFontKeysFor<'family'>>
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,CA4M1B"}
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"}