@tamagui/dom 0.0.0-bootstrap.0 → 3.0.0-beta.643.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 (93) hide show
  1. package/dist/cjs/events.cjs +17 -0
  2. package/dist/cjs/events.native.cjs +19 -0
  3. package/dist/cjs/events.native.js +21 -0
  4. package/dist/cjs/events.native.js.map +1 -0
  5. package/dist/cjs/index.cjs +26 -0
  6. package/dist/cjs/index.native.cjs +28 -0
  7. package/dist/cjs/index.native.js +30 -0
  8. package/dist/cjs/index.native.js.map +1 -0
  9. package/dist/cjs/props.cjs +17 -0
  10. package/dist/cjs/props.native.cjs +19 -0
  11. package/dist/cjs/props.native.js +21 -0
  12. package/dist/cjs/props.native.js.map +1 -0
  13. package/dist/cjs/tables/attributes.cjs +850 -0
  14. package/dist/cjs/tables/attributes.native.cjs +862 -0
  15. package/dist/cjs/tables/attributes.native.js +864 -0
  16. package/dist/cjs/tables/attributes.native.js.map +1 -0
  17. package/dist/cjs/tables/compatibility.cjs +338 -0
  18. package/dist/cjs/tables/compatibility.native.cjs +340 -0
  19. package/dist/cjs/tables/compatibility.native.js +342 -0
  20. package/dist/cjs/tables/compatibility.native.js.map +1 -0
  21. package/dist/cjs/tables/events.cjs +169 -0
  22. package/dist/cjs/tables/events.native.cjs +175 -0
  23. package/dist/cjs/tables/events.native.js +177 -0
  24. package/dist/cjs/tables/events.native.js.map +1 -0
  25. package/dist/cjs/tables/nativeBacking.cjs +133 -0
  26. package/dist/cjs/tables/nativeBacking.native.cjs +135 -0
  27. package/dist/cjs/tables/nativeBacking.native.js +137 -0
  28. package/dist/cjs/tables/nativeBacking.native.js.map +1 -0
  29. package/dist/cjs/tables/tags.cjs +576 -0
  30. package/dist/cjs/tables/tags.native.cjs +578 -0
  31. package/dist/cjs/tables/tags.native.js +580 -0
  32. package/dist/cjs/tables/tags.native.js.map +1 -0
  33. package/dist/cjs/tables/types.cjs +17 -0
  34. package/dist/cjs/tables/types.native.cjs +19 -0
  35. package/dist/cjs/tables/types.native.js +21 -0
  36. package/dist/cjs/tables/types.native.js.map +1 -0
  37. package/dist/esm/events.mjs +0 -0
  38. package/dist/esm/events.native.js +0 -0
  39. package/dist/esm/index.mjs +15 -0
  40. package/dist/esm/index.native.js +15 -0
  41. package/dist/esm/props.mjs +0 -0
  42. package/dist/esm/props.native.js +0 -0
  43. package/dist/esm/tables/attributes.mjs +821 -0
  44. package/dist/esm/tables/attributes.mjs.map +1 -0
  45. package/dist/esm/tables/attributes.native.js +831 -0
  46. package/dist/esm/tables/attributes.native.js.map +1 -0
  47. package/dist/esm/tables/compatibility.mjs +314 -0
  48. package/dist/esm/tables/compatibility.mjs.map +1 -0
  49. package/dist/esm/tables/compatibility.native.js +314 -0
  50. package/dist/esm/tables/compatibility.native.js.map +1 -0
  51. package/dist/esm/tables/events.mjs +145 -0
  52. package/dist/esm/tables/events.mjs.map +1 -0
  53. package/dist/esm/tables/events.native.js +149 -0
  54. package/dist/esm/tables/events.native.js.map +1 -0
  55. package/dist/esm/tables/nativeBacking.mjs +106 -0
  56. package/dist/esm/tables/nativeBacking.mjs.map +1 -0
  57. package/dist/esm/tables/nativeBacking.native.js +106 -0
  58. package/dist/esm/tables/nativeBacking.native.js.map +1 -0
  59. package/dist/esm/tables/tags.mjs +550 -0
  60. package/dist/esm/tables/tags.mjs.map +1 -0
  61. package/dist/esm/tables/tags.native.js +550 -0
  62. package/dist/esm/tables/tags.native.js.map +1 -0
  63. package/dist/esm/tables/types.mjs +0 -0
  64. package/dist/esm/tables/types.native.js +0 -0
  65. package/package.json +57 -7
  66. package/src/events.ts +58 -0
  67. package/src/index.ts +19 -0
  68. package/src/props.ts +699 -0
  69. package/src/tables/attributes.ts +863 -0
  70. package/src/tables/compatibility.ts +360 -0
  71. package/src/tables/events.ts +176 -0
  72. package/src/tables/nativeBacking.ts +132 -0
  73. package/src/tables/tags.ts +557 -0
  74. package/src/tables/types.ts +202 -0
  75. package/types/events.d.ts +58 -0
  76. package/types/events.d.ts.map +11 -0
  77. package/types/index.d.ts +20 -0
  78. package/types/index.d.ts.map +11 -0
  79. package/types/props.d.ts +499 -0
  80. package/types/props.d.ts.map +11 -0
  81. package/types/tables/attributes.d.ts +21 -0
  82. package/types/tables/attributes.d.ts.map +11 -0
  83. package/types/tables/compatibility.d.ts +28 -0
  84. package/types/tables/compatibility.d.ts.map +11 -0
  85. package/types/tables/events.d.ts +5 -0
  86. package/types/tables/events.d.ts.map +11 -0
  87. package/types/tables/nativeBacking.d.ts +28 -0
  88. package/types/tables/nativeBacking.d.ts.map +11 -0
  89. package/types/tables/tags.d.ts +36 -0
  90. package/types/tables/tags.d.ts.map +11 -0
  91. package/types/tables/types.d.ts +135 -0
  92. package/types/tables/types.d.ts.map +11 -0
  93. package/README.md +0 -1
@@ -0,0 +1,550 @@
1
+ const DISPLAY_WEB_RESET = {
2
+ block: {
3
+ margin: 0,
4
+ padding: 0
5
+ },
6
+ inline: {
7
+ margin: 0,
8
+ padding: 0,
9
+ textDecorationLine: "none"
10
+ },
11
+ "inline-block": {
12
+ margin: 0,
13
+ padding: 0,
14
+ borderStyle: "solid"
15
+ }
16
+ };
17
+ const MONOSPACE = { fontFamily: "monospace" };
18
+ const HEADING = {
19
+ fontSize: "1.5rem",
20
+ fontWeight: "bold"
21
+ };
22
+ const NO_FORM_SUBMISSION = "renders as a container on native; there is no form submission, validation or reset";
23
+ const NO_NATIVE_PICKER = "native has no menu-based select control, so this tag is a native build error";
24
+ const TAGS = {
25
+ a: {
26
+ display: "inline",
27
+ content: "phrasing",
28
+ backing: "text",
29
+ role: "link",
30
+ element: "HTMLAnchorElement",
31
+ props: "anchor",
32
+ web: "host",
33
+ native: "polyfill",
34
+ note: "native has no navigation for href, target, rel, download or referrerPolicy"
35
+ },
36
+ article: {
37
+ display: "block",
38
+ content: "flow",
39
+ backing: "view",
40
+ element: "HTMLElement",
41
+ props: "common",
42
+ web: "host",
43
+ native: "polyfill"
44
+ },
45
+ aside: {
46
+ display: "block",
47
+ content: "flow",
48
+ backing: "view",
49
+ element: "HTMLElement",
50
+ props: "common",
51
+ web: "host",
52
+ native: "polyfill"
53
+ },
54
+ b: {
55
+ display: "inline",
56
+ content: "phrasing",
57
+ backing: "text",
58
+ element: "HTMLElement",
59
+ props: "common",
60
+ defaults: { fontWeight: "bold" },
61
+ web: "host",
62
+ native: "polyfill"
63
+ },
64
+ bdi: {
65
+ display: "inline",
66
+ content: "phrasing",
67
+ backing: "text",
68
+ element: "HTMLElement",
69
+ props: "common",
70
+ web: "host",
71
+ native: "polyfill",
72
+ note: "native has no bidirectional isolation; the text renders in the inherited direction"
73
+ },
74
+ bdo: {
75
+ display: "inline",
76
+ content: "phrasing",
77
+ backing: "text",
78
+ element: "HTMLElement",
79
+ props: "common",
80
+ web: "host",
81
+ native: "polyfill",
82
+ note: "native honours dir as a writing direction but does not override embedded bidi runs"
83
+ },
84
+ blockquote: {
85
+ display: "block",
86
+ content: "flow",
87
+ backing: "view",
88
+ element: "HTMLQuoteElement",
89
+ props: "common",
90
+ web: "host",
91
+ native: "polyfill"
92
+ },
93
+ br: {
94
+ display: "inline",
95
+ content: "void",
96
+ backing: "text",
97
+ element: "HTMLBRElement",
98
+ props: "common",
99
+ web: "host",
100
+ native: "polyfill"
101
+ },
102
+ button: {
103
+ display: "inline-block",
104
+ content: "flow",
105
+ backing: "view",
106
+ role: "button",
107
+ element: "HTMLButtonElement",
108
+ props: "button",
109
+ defaults: { borderWidth: 1 },
110
+ web: "host",
111
+ native: "polyfill",
112
+ note: "html restricts button content to phrasing; the native backing is a view, so block children are allowed"
113
+ },
114
+ code: {
115
+ display: "inline",
116
+ content: "phrasing",
117
+ backing: "text",
118
+ element: "HTMLElement",
119
+ props: "common",
120
+ defaults: MONOSPACE,
121
+ web: "host",
122
+ native: "polyfill"
123
+ },
124
+ del: {
125
+ display: "inline",
126
+ content: "phrasing",
127
+ backing: "text",
128
+ element: "HTMLModElement",
129
+ props: "common",
130
+ defaults: { textDecorationLine: "line-through" },
131
+ web: "host",
132
+ native: "polyfill"
133
+ },
134
+ div: {
135
+ display: "block",
136
+ content: "flow",
137
+ backing: "view",
138
+ element: "HTMLDivElement",
139
+ props: "common",
140
+ web: "host",
141
+ native: "polyfill"
142
+ },
143
+ em: {
144
+ display: "inline",
145
+ content: "phrasing",
146
+ backing: "text",
147
+ element: "HTMLElement",
148
+ props: "common",
149
+ defaults: { fontStyle: "italic" },
150
+ web: "host",
151
+ native: "polyfill"
152
+ },
153
+ fieldset: {
154
+ display: "block",
155
+ content: "flow",
156
+ backing: "view",
157
+ element: "HTMLFieldSetElement",
158
+ props: "common",
159
+ web: "host",
160
+ native: "polyfill",
161
+ note: NO_FORM_SUBMISSION
162
+ },
163
+ footer: {
164
+ display: "block",
165
+ content: "flow",
166
+ backing: "view",
167
+ element: "HTMLElement",
168
+ props: "common",
169
+ web: "host",
170
+ native: "polyfill"
171
+ },
172
+ form: {
173
+ display: "block",
174
+ content: "flow",
175
+ backing: "view",
176
+ element: "HTMLFormElement",
177
+ props: "common",
178
+ web: "host",
179
+ native: "polyfill",
180
+ note: NO_FORM_SUBMISSION
181
+ },
182
+ h1: {
183
+ display: "block",
184
+ content: "phrasing",
185
+ backing: "text",
186
+ role: "heading",
187
+ element: "HTMLHeadingElement",
188
+ props: "common",
189
+ defaults: HEADING,
190
+ web: "host",
191
+ native: "polyfill"
192
+ },
193
+ h2: {
194
+ display: "block",
195
+ content: "phrasing",
196
+ backing: "text",
197
+ role: "heading",
198
+ element: "HTMLHeadingElement",
199
+ props: "common",
200
+ defaults: HEADING,
201
+ web: "host",
202
+ native: "polyfill"
203
+ },
204
+ h3: {
205
+ display: "block",
206
+ content: "phrasing",
207
+ backing: "text",
208
+ role: "heading",
209
+ element: "HTMLHeadingElement",
210
+ props: "common",
211
+ defaults: HEADING,
212
+ web: "host",
213
+ native: "polyfill"
214
+ },
215
+ h4: {
216
+ display: "block",
217
+ content: "phrasing",
218
+ backing: "text",
219
+ role: "heading",
220
+ element: "HTMLHeadingElement",
221
+ props: "common",
222
+ defaults: HEADING,
223
+ web: "host",
224
+ native: "polyfill"
225
+ },
226
+ h5: {
227
+ display: "block",
228
+ content: "phrasing",
229
+ backing: "text",
230
+ role: "heading",
231
+ element: "HTMLHeadingElement",
232
+ props: "common",
233
+ defaults: HEADING,
234
+ web: "host",
235
+ native: "polyfill"
236
+ },
237
+ h6: {
238
+ display: "block",
239
+ content: "phrasing",
240
+ backing: "text",
241
+ role: "heading",
242
+ element: "HTMLHeadingElement",
243
+ props: "common",
244
+ defaults: HEADING,
245
+ web: "host",
246
+ native: "polyfill"
247
+ },
248
+ header: {
249
+ display: "block",
250
+ content: "flow",
251
+ backing: "view",
252
+ role: "header",
253
+ element: "HTMLElement",
254
+ props: "common",
255
+ web: "host",
256
+ native: "polyfill"
257
+ },
258
+ hr: {
259
+ display: "block",
260
+ content: "void",
261
+ backing: "view",
262
+ element: "HTMLHRElement",
263
+ props: "common",
264
+ defaults: {
265
+ backgroundColor: "black",
266
+ height: 1
267
+ },
268
+ web: "host",
269
+ native: "polyfill"
270
+ },
271
+ i: {
272
+ display: "inline",
273
+ content: "phrasing",
274
+ backing: "text",
275
+ element: "HTMLElement",
276
+ props: "common",
277
+ defaults: { fontStyle: "italic" },
278
+ web: "host",
279
+ native: "polyfill"
280
+ },
281
+ img: {
282
+ display: "inline",
283
+ content: "void",
284
+ backing: "image",
285
+ element: "HTMLImageElement",
286
+ props: "image",
287
+ defaults: { objectFit: "fill" },
288
+ web: "host",
289
+ native: "polyfill",
290
+ note: "width and height props set an aspect ratio on native, where images have no intrinsic layout size until they load"
291
+ },
292
+ input: {
293
+ display: "inline-block",
294
+ content: "void",
295
+ backing: "textinput",
296
+ element: "HTMLInputElement",
297
+ props: "input",
298
+ defaults: { borderWidth: 1 },
299
+ web: "host",
300
+ native: "polyfill",
301
+ note: "native supports the text-like input types only; checkbox, color, date, datetime-local, file, month, radio, range, time and week are a native build error"
302
+ },
303
+ ins: {
304
+ display: "inline",
305
+ content: "phrasing",
306
+ backing: "text",
307
+ element: "HTMLModElement",
308
+ props: "common",
309
+ defaults: { textDecorationLine: "underline" },
310
+ web: "host",
311
+ native: "polyfill"
312
+ },
313
+ kbd: {
314
+ display: "inline",
315
+ content: "phrasing",
316
+ backing: "text",
317
+ element: "HTMLElement",
318
+ props: "common",
319
+ defaults: MONOSPACE,
320
+ web: "host",
321
+ native: "polyfill"
322
+ },
323
+ label: {
324
+ display: "inline",
325
+ content: "phrasing",
326
+ backing: "text",
327
+ element: "HTMLLabelElement",
328
+ props: "label",
329
+ web: "host",
330
+ native: "polyfill",
331
+ note: "native has no label association, so `for` does not focus or activate its control"
332
+ },
333
+ li: {
334
+ display: "block",
335
+ content: "flow",
336
+ backing: "view",
337
+ role: "listitem",
338
+ element: "HTMLLIElement",
339
+ props: "listitem",
340
+ web: "host",
341
+ native: "polyfill",
342
+ note: "list markers and the `value` counter are not rendered on either platform, matching the list-style reset"
343
+ },
344
+ main: {
345
+ display: "block",
346
+ content: "flow",
347
+ backing: "view",
348
+ element: "HTMLElement",
349
+ props: "common",
350
+ web: "host",
351
+ native: "polyfill"
352
+ },
353
+ mark: {
354
+ display: "inline",
355
+ content: "phrasing",
356
+ backing: "text",
357
+ element: "HTMLElement",
358
+ props: "common",
359
+ defaults: {
360
+ backgroundColor: "yellow",
361
+ color: "black"
362
+ },
363
+ web: "host",
364
+ native: "polyfill"
365
+ },
366
+ nav: {
367
+ display: "block",
368
+ content: "flow",
369
+ backing: "view",
370
+ element: "HTMLElement",
371
+ props: "common",
372
+ web: "host",
373
+ native: "polyfill"
374
+ },
375
+ ol: {
376
+ display: "block",
377
+ content: "tags",
378
+ childTags: ["li"],
379
+ backing: "view",
380
+ role: "list",
381
+ element: "HTMLOListElement",
382
+ props: "common",
383
+ web: "host",
384
+ native: "polyfill"
385
+ },
386
+ optgroup: {
387
+ display: "block",
388
+ content: "tags",
389
+ childTags: ["option"],
390
+ backing: "view",
391
+ element: "HTMLOptGroupElement",
392
+ props: "optgroup",
393
+ web: "host",
394
+ native: "none",
395
+ note: NO_NATIVE_PICKER
396
+ },
397
+ option: {
398
+ display: "block",
399
+ content: "text",
400
+ backing: "text",
401
+ element: "HTMLOptionElement",
402
+ props: "option",
403
+ web: "host",
404
+ native: "none",
405
+ note: NO_NATIVE_PICKER
406
+ },
407
+ p: {
408
+ display: "block",
409
+ content: "phrasing",
410
+ backing: "text",
411
+ element: "HTMLParagraphElement",
412
+ props: "common",
413
+ web: "host",
414
+ native: "polyfill"
415
+ },
416
+ pre: {
417
+ display: "block",
418
+ content: "phrasing",
419
+ backing: "text",
420
+ element: "HTMLPreElement",
421
+ props: "common",
422
+ defaults: MONOSPACE,
423
+ web: "host",
424
+ native: "polyfill",
425
+ note: "native preserves whitespace in text but has no scroll container, so long lines wrap instead of scrolling"
426
+ },
427
+ s: {
428
+ display: "inline",
429
+ content: "phrasing",
430
+ backing: "text",
431
+ element: "HTMLElement",
432
+ props: "common",
433
+ defaults: { textDecorationLine: "line-through" },
434
+ web: "host",
435
+ native: "polyfill"
436
+ },
437
+ section: {
438
+ display: "block",
439
+ content: "flow",
440
+ backing: "view",
441
+ element: "HTMLElement",
442
+ props: "common",
443
+ web: "host",
444
+ native: "polyfill"
445
+ },
446
+ select: {
447
+ display: "inline-block",
448
+ content: "tags",
449
+ childTags: ["optgroup", "option"],
450
+ backing: "view",
451
+ element: "HTMLSelectElement",
452
+ props: "select",
453
+ web: "host",
454
+ native: "none",
455
+ note: NO_NATIVE_PICKER
456
+ },
457
+ span: {
458
+ display: "inline",
459
+ content: "phrasing",
460
+ backing: "text",
461
+ element: "HTMLSpanElement",
462
+ props: "common",
463
+ web: "host",
464
+ native: "polyfill"
465
+ },
466
+ strong: {
467
+ display: "inline",
468
+ content: "phrasing",
469
+ backing: "text",
470
+ element: "HTMLElement",
471
+ props: "common",
472
+ defaults: { fontWeight: "bold" },
473
+ web: "host",
474
+ native: "polyfill"
475
+ },
476
+ sub: {
477
+ display: "inline",
478
+ content: "phrasing",
479
+ backing: "text",
480
+ element: "HTMLElement",
481
+ props: "common",
482
+ web: "host",
483
+ native: "polyfill",
484
+ note: "native has no vertical-align, so subscript text sits on the baseline"
485
+ },
486
+ sup: {
487
+ display: "inline",
488
+ content: "phrasing",
489
+ backing: "text",
490
+ element: "HTMLElement",
491
+ props: "common",
492
+ web: "host",
493
+ native: "polyfill",
494
+ note: "native has no vertical-align, so superscript text sits on the baseline"
495
+ },
496
+ textarea: {
497
+ display: "inline-block",
498
+ content: "void",
499
+ backing: "textinput",
500
+ element: "HTMLTextAreaElement",
501
+ props: "textarea",
502
+ defaults: { borderWidth: 1 },
503
+ nativeDefaults: { verticalAlign: "top" },
504
+ web: "host",
505
+ native: "polyfill",
506
+ note: "the value comes from value or defaultValue; children are a build error on both platforms"
507
+ },
508
+ u: {
509
+ display: "inline",
510
+ content: "phrasing",
511
+ backing: "text",
512
+ element: "HTMLElement",
513
+ props: "common",
514
+ defaults: { textDecorationLine: "underline" },
515
+ web: "host",
516
+ native: "polyfill"
517
+ },
518
+ ul: {
519
+ display: "block",
520
+ content: "tags",
521
+ childTags: ["li"],
522
+ backing: "view",
523
+ role: "list",
524
+ element: "HTMLUListElement",
525
+ props: "common",
526
+ web: "host",
527
+ native: "polyfill"
528
+ }
529
+ };
530
+ const TAG_WEB_DEFAULTS = {
531
+ code: { fontSize: "1em" },
532
+ hr: {
533
+ borderStyle: "none",
534
+ borderWidth: 0,
535
+ boxSizing: "border-box"
536
+ },
537
+ img: {
538
+ height: "auto",
539
+ maxWidth: "100%"
540
+ },
541
+ kbd: { fontSize: "1em" },
542
+ pre: {
543
+ fontSize: "1em",
544
+ overflow: "auto"
545
+ }
546
+ };
547
+ const TAG_NAMES = Object.keys(TAGS);
548
+
549
+ export { DISPLAY_WEB_RESET, TAGS, TAG_NAMES, TAG_WEB_DEFAULTS };
550
+ //# sourceMappingURL=tags.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tags.js","names":[],"sources":["esm/tables/tags.js"],"sourcesContent":["const DISPLAY_WEB_RESET = {\n block: { margin: 0, padding: 0 },\n inline: { margin: 0, padding: 0, textDecorationLine: \"none\" },\n \"inline-block\": { margin: 0, padding: 0, borderStyle: \"solid\" }\n};\nconst MONOSPACE = { fontFamily: \"monospace\" };\nconst HEADING = { fontSize: \"1.5rem\", fontWeight: \"bold\" };\nconst NO_FORM_SUBMISSION = \"renders as a container on native; there is no form submission, validation or reset\";\nconst NO_NATIVE_PICKER = \"native has no menu-based select control, so this tag is a native build error\";\nconst TAGS = {\n a: {\n display: \"inline\",\n content: \"phrasing\",\n backing: \"text\",\n role: \"link\",\n element: \"HTMLAnchorElement\",\n props: \"anchor\",\n web: \"host\",\n native: \"polyfill\",\n note: \"native has no navigation for href, target, rel, download or referrerPolicy\"\n },\n article: {\n display: \"block\",\n content: \"flow\",\n backing: \"view\",\n element: \"HTMLElement\",\n props: \"common\",\n web: \"host\",\n native: \"polyfill\"\n },\n aside: {\n display: \"block\",\n content: \"flow\",\n backing: \"view\",\n element: \"HTMLElement\",\n props: \"common\",\n web: \"host\",\n native: \"polyfill\"\n },\n b: {\n display: \"inline\",\n content: \"phrasing\",\n backing: \"text\",\n element: \"HTMLElement\",\n props: \"common\",\n defaults: { fontWeight: \"bold\" },\n web: \"host\",\n native: \"polyfill\"\n },\n bdi: {\n display: \"inline\",\n content: \"phrasing\",\n backing: \"text\",\n element: \"HTMLElement\",\n props: \"common\",\n web: \"host\",\n native: \"polyfill\",\n note: \"native has no bidirectional isolation; the text renders in the inherited direction\"\n },\n bdo: {\n display: \"inline\",\n content: \"phrasing\",\n backing: \"text\",\n element: \"HTMLElement\",\n props: \"common\",\n web: \"host\",\n native: \"polyfill\",\n note: \"native honours dir as a writing direction but does not override embedded bidi runs\"\n },\n blockquote: {\n display: \"block\",\n content: \"flow\",\n backing: \"view\",\n element: \"HTMLQuoteElement\",\n props: \"common\",\n web: \"host\",\n native: \"polyfill\"\n },\n br: {\n display: \"inline\",\n content: \"void\",\n backing: \"text\",\n element: \"HTMLBRElement\",\n props: \"common\",\n web: \"host\",\n native: \"polyfill\"\n },\n button: {\n display: \"inline-block\",\n content: \"flow\",\n backing: \"view\",\n role: \"button\",\n element: \"HTMLButtonElement\",\n props: \"button\",\n defaults: { borderWidth: 1 },\n web: \"host\",\n native: \"polyfill\",\n note: \"html restricts button content to phrasing; the native backing is a view, so block children are allowed\"\n },\n code: {\n display: \"inline\",\n content: \"phrasing\",\n backing: \"text\",\n element: \"HTMLElement\",\n props: \"common\",\n defaults: MONOSPACE,\n web: \"host\",\n native: \"polyfill\"\n },\n del: {\n display: \"inline\",\n content: \"phrasing\",\n backing: \"text\",\n element: \"HTMLModElement\",\n props: \"common\",\n defaults: { textDecorationLine: \"line-through\" },\n web: \"host\",\n native: \"polyfill\"\n },\n div: {\n display: \"block\",\n content: \"flow\",\n backing: \"view\",\n element: \"HTMLDivElement\",\n props: \"common\",\n web: \"host\",\n native: \"polyfill\"\n },\n em: {\n display: \"inline\",\n content: \"phrasing\",\n backing: \"text\",\n element: \"HTMLElement\",\n props: \"common\",\n defaults: { fontStyle: \"italic\" },\n web: \"host\",\n native: \"polyfill\"\n },\n fieldset: {\n display: \"block\",\n content: \"flow\",\n backing: \"view\",\n element: \"HTMLFieldSetElement\",\n props: \"common\",\n web: \"host\",\n native: \"polyfill\",\n note: NO_FORM_SUBMISSION\n },\n footer: {\n display: \"block\",\n content: \"flow\",\n backing: \"view\",\n element: \"HTMLElement\",\n props: \"common\",\n web: \"host\",\n native: \"polyfill\"\n },\n form: {\n display: \"block\",\n content: \"flow\",\n backing: \"view\",\n element: \"HTMLFormElement\",\n props: \"common\",\n web: \"host\",\n native: \"polyfill\",\n note: NO_FORM_SUBMISSION\n },\n h1: {\n display: \"block\",\n content: \"phrasing\",\n backing: \"text\",\n role: \"heading\",\n element: \"HTMLHeadingElement\",\n props: \"common\",\n defaults: HEADING,\n web: \"host\",\n native: \"polyfill\"\n },\n h2: {\n display: \"block\",\n content: \"phrasing\",\n backing: \"text\",\n role: \"heading\",\n element: \"HTMLHeadingElement\",\n props: \"common\",\n defaults: HEADING,\n web: \"host\",\n native: \"polyfill\"\n },\n h3: {\n display: \"block\",\n content: \"phrasing\",\n backing: \"text\",\n role: \"heading\",\n element: \"HTMLHeadingElement\",\n props: \"common\",\n defaults: HEADING,\n web: \"host\",\n native: \"polyfill\"\n },\n h4: {\n display: \"block\",\n content: \"phrasing\",\n backing: \"text\",\n role: \"heading\",\n element: \"HTMLHeadingElement\",\n props: \"common\",\n defaults: HEADING,\n web: \"host\",\n native: \"polyfill\"\n },\n h5: {\n display: \"block\",\n content: \"phrasing\",\n backing: \"text\",\n role: \"heading\",\n element: \"HTMLHeadingElement\",\n props: \"common\",\n defaults: HEADING,\n web: \"host\",\n native: \"polyfill\"\n },\n h6: {\n display: \"block\",\n content: \"phrasing\",\n backing: \"text\",\n role: \"heading\",\n element: \"HTMLHeadingElement\",\n props: \"common\",\n defaults: HEADING,\n web: \"host\",\n native: \"polyfill\"\n },\n header: {\n display: \"block\",\n content: \"flow\",\n backing: \"view\",\n role: \"header\",\n element: \"HTMLElement\",\n props: \"common\",\n web: \"host\",\n native: \"polyfill\"\n },\n hr: {\n display: \"block\",\n content: \"void\",\n backing: \"view\",\n element: \"HTMLHRElement\",\n props: \"common\",\n defaults: { backgroundColor: \"black\", height: 1 },\n web: \"host\",\n native: \"polyfill\"\n },\n i: {\n display: \"inline\",\n content: \"phrasing\",\n backing: \"text\",\n element: \"HTMLElement\",\n props: \"common\",\n defaults: { fontStyle: \"italic\" },\n web: \"host\",\n native: \"polyfill\"\n },\n img: {\n display: \"inline\",\n content: \"void\",\n backing: \"image\",\n element: \"HTMLImageElement\",\n props: \"image\",\n defaults: { objectFit: \"fill\" },\n web: \"host\",\n native: \"polyfill\",\n note: \"width and height props set an aspect ratio on native, where images have no intrinsic layout size until they load\"\n },\n input: {\n display: \"inline-block\",\n content: \"void\",\n backing: \"textinput\",\n element: \"HTMLInputElement\",\n props: \"input\",\n defaults: { borderWidth: 1 },\n web: \"host\",\n native: \"polyfill\",\n note: \"native supports the text-like input types only; checkbox, color, date, datetime-local, file, month, radio, range, time and week are a native build error\"\n },\n ins: {\n display: \"inline\",\n content: \"phrasing\",\n backing: \"text\",\n element: \"HTMLModElement\",\n props: \"common\",\n defaults: { textDecorationLine: \"underline\" },\n web: \"host\",\n native: \"polyfill\"\n },\n kbd: {\n display: \"inline\",\n content: \"phrasing\",\n backing: \"text\",\n element: \"HTMLElement\",\n props: \"common\",\n defaults: MONOSPACE,\n web: \"host\",\n native: \"polyfill\"\n },\n label: {\n display: \"inline\",\n content: \"phrasing\",\n backing: \"text\",\n element: \"HTMLLabelElement\",\n props: \"label\",\n web: \"host\",\n native: \"polyfill\",\n note: \"native has no label association, so `for` does not focus or activate its control\"\n },\n li: {\n display: \"block\",\n content: \"flow\",\n backing: \"view\",\n role: \"listitem\",\n element: \"HTMLLIElement\",\n props: \"listitem\",\n web: \"host\",\n native: \"polyfill\",\n note: \"list markers and the `value` counter are not rendered on either platform, matching the list-style reset\"\n },\n main: {\n display: \"block\",\n content: \"flow\",\n backing: \"view\",\n element: \"HTMLElement\",\n props: \"common\",\n web: \"host\",\n native: \"polyfill\"\n },\n mark: {\n display: \"inline\",\n content: \"phrasing\",\n backing: \"text\",\n element: \"HTMLElement\",\n props: \"common\",\n defaults: { backgroundColor: \"yellow\", color: \"black\" },\n web: \"host\",\n native: \"polyfill\"\n },\n nav: {\n display: \"block\",\n content: \"flow\",\n backing: \"view\",\n element: \"HTMLElement\",\n props: \"common\",\n web: \"host\",\n native: \"polyfill\"\n },\n ol: {\n display: \"block\",\n content: \"tags\",\n childTags: [\"li\"],\n backing: \"view\",\n role: \"list\",\n element: \"HTMLOListElement\",\n props: \"common\",\n web: \"host\",\n native: \"polyfill\"\n },\n optgroup: {\n display: \"block\",\n content: \"tags\",\n childTags: [\"option\"],\n backing: \"view\",\n element: \"HTMLOptGroupElement\",\n props: \"optgroup\",\n web: \"host\",\n native: \"none\",\n note: NO_NATIVE_PICKER\n },\n option: {\n display: \"block\",\n content: \"text\",\n backing: \"text\",\n element: \"HTMLOptionElement\",\n props: \"option\",\n web: \"host\",\n native: \"none\",\n note: NO_NATIVE_PICKER\n },\n p: {\n display: \"block\",\n content: \"phrasing\",\n backing: \"text\",\n element: \"HTMLParagraphElement\",\n props: \"common\",\n web: \"host\",\n native: \"polyfill\"\n },\n pre: {\n display: \"block\",\n content: \"phrasing\",\n backing: \"text\",\n element: \"HTMLPreElement\",\n props: \"common\",\n defaults: MONOSPACE,\n web: \"host\",\n native: \"polyfill\",\n note: \"native preserves whitespace in text but has no scroll container, so long lines wrap instead of scrolling\"\n },\n s: {\n display: \"inline\",\n content: \"phrasing\",\n backing: \"text\",\n element: \"HTMLElement\",\n props: \"common\",\n defaults: { textDecorationLine: \"line-through\" },\n web: \"host\",\n native: \"polyfill\"\n },\n section: {\n display: \"block\",\n content: \"flow\",\n backing: \"view\",\n element: \"HTMLElement\",\n props: \"common\",\n web: \"host\",\n native: \"polyfill\"\n },\n select: {\n display: \"inline-block\",\n content: \"tags\",\n childTags: [\"optgroup\", \"option\"],\n backing: \"view\",\n element: \"HTMLSelectElement\",\n props: \"select\",\n web: \"host\",\n native: \"none\",\n note: NO_NATIVE_PICKER\n },\n span: {\n display: \"inline\",\n content: \"phrasing\",\n backing: \"text\",\n element: \"HTMLSpanElement\",\n props: \"common\",\n web: \"host\",\n native: \"polyfill\"\n },\n strong: {\n display: \"inline\",\n content: \"phrasing\",\n backing: \"text\",\n element: \"HTMLElement\",\n props: \"common\",\n defaults: { fontWeight: \"bold\" },\n web: \"host\",\n native: \"polyfill\"\n },\n sub: {\n display: \"inline\",\n content: \"phrasing\",\n backing: \"text\",\n element: \"HTMLElement\",\n props: \"common\",\n web: \"host\",\n native: \"polyfill\",\n note: \"native has no vertical-align, so subscript text sits on the baseline\"\n },\n sup: {\n display: \"inline\",\n content: \"phrasing\",\n backing: \"text\",\n element: \"HTMLElement\",\n props: \"common\",\n web: \"host\",\n native: \"polyfill\",\n note: \"native has no vertical-align, so superscript text sits on the baseline\"\n },\n textarea: {\n display: \"inline-block\",\n content: \"void\",\n backing: \"textinput\",\n element: \"HTMLTextAreaElement\",\n props: \"textarea\",\n defaults: { borderWidth: 1 },\n nativeDefaults: { verticalAlign: \"top\" },\n web: \"host\",\n native: \"polyfill\",\n note: \"the value comes from value or defaultValue; children are a build error on both platforms\"\n },\n u: {\n display: \"inline\",\n content: \"phrasing\",\n backing: \"text\",\n element: \"HTMLElement\",\n props: \"common\",\n defaults: { textDecorationLine: \"underline\" },\n web: \"host\",\n native: \"polyfill\"\n },\n ul: {\n display: \"block\",\n content: \"tags\",\n childTags: [\"li\"],\n backing: \"view\",\n role: \"list\",\n element: \"HTMLUListElement\",\n props: \"common\",\n web: \"host\",\n native: \"polyfill\"\n }\n};\nconst TAG_WEB_DEFAULTS = {\n code: { fontSize: \"1em\" },\n hr: { borderStyle: \"none\", borderWidth: 0, boxSizing: \"border-box\" },\n img: { height: \"auto\", maxWidth: \"100%\" },\n kbd: { fontSize: \"1em\" },\n pre: { fontSize: \"1em\", overflow: \"auto\" }\n};\nconst TAG_NAMES = Object.keys(TAGS);\nexport {\n DISPLAY_WEB_RESET,\n TAGS,\n TAG_NAMES,\n TAG_WEB_DEFAULTS\n};\n//# sourceMappingURL=tags.js.map\n"],"mappings":";AAAA,MAAM,oBAAoB;CACxB,OAAO;EAAE,QAAQ;EAAG,SAAS;CAAE;CAC/B,QAAQ;EAAE,QAAQ;EAAG,SAAS;EAAG,oBAAoB;CAAO;CAC5D,gBAAgB;EAAE,QAAQ;EAAG,SAAS;EAAG,aAAa;CAAQ;AAChE;AACA,MAAM,YAAY,EAAE,YAAY,YAAY;AAC5C,MAAM,UAAU;CAAE,UAAU;CAAU,YAAY;AAAO;AACzD,MAAM,qBAAqB;AAC3B,MAAM,mBAAmB;AACzB,MAAM,OAAO;CACX,GAAG;EACD,SAAS;EACT,SAAS;EACT,SAAS;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