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