@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.
- package/dist/cjs/events.cjs +17 -0
- package/dist/cjs/events.native.cjs +19 -0
- package/dist/cjs/events.native.js +21 -0
- package/dist/cjs/events.native.js.map +1 -0
- package/dist/cjs/index.cjs +26 -0
- package/dist/cjs/index.native.cjs +28 -0
- package/dist/cjs/index.native.js +30 -0
- package/dist/cjs/index.native.js.map +1 -0
- package/dist/cjs/props.cjs +17 -0
- package/dist/cjs/props.native.cjs +19 -0
- package/dist/cjs/props.native.js +21 -0
- package/dist/cjs/props.native.js.map +1 -0
- package/dist/cjs/tables/attributes.cjs +850 -0
- package/dist/cjs/tables/attributes.native.cjs +862 -0
- package/dist/cjs/tables/attributes.native.js +864 -0
- package/dist/cjs/tables/attributes.native.js.map +1 -0
- package/dist/cjs/tables/compatibility.cjs +338 -0
- package/dist/cjs/tables/compatibility.native.cjs +340 -0
- package/dist/cjs/tables/compatibility.native.js +342 -0
- package/dist/cjs/tables/compatibility.native.js.map +1 -0
- package/dist/cjs/tables/events.cjs +169 -0
- package/dist/cjs/tables/events.native.cjs +175 -0
- package/dist/cjs/tables/events.native.js +177 -0
- package/dist/cjs/tables/events.native.js.map +1 -0
- package/dist/cjs/tables/nativeBacking.cjs +133 -0
- package/dist/cjs/tables/nativeBacking.native.cjs +135 -0
- package/dist/cjs/tables/nativeBacking.native.js +137 -0
- package/dist/cjs/tables/nativeBacking.native.js.map +1 -0
- package/dist/cjs/tables/tags.cjs +576 -0
- package/dist/cjs/tables/tags.native.cjs +578 -0
- package/dist/cjs/tables/tags.native.js +580 -0
- package/dist/cjs/tables/tags.native.js.map +1 -0
- package/dist/cjs/tables/types.cjs +17 -0
- package/dist/cjs/tables/types.native.cjs +19 -0
- package/dist/cjs/tables/types.native.js +21 -0
- package/dist/cjs/tables/types.native.js.map +1 -0
- package/dist/esm/events.mjs +0 -0
- package/dist/esm/events.native.js +0 -0
- package/dist/esm/index.mjs +15 -0
- package/dist/esm/index.native.js +15 -0
- package/dist/esm/props.mjs +0 -0
- package/dist/esm/props.native.js +0 -0
- package/dist/esm/tables/attributes.mjs +821 -0
- package/dist/esm/tables/attributes.mjs.map +1 -0
- package/dist/esm/tables/attributes.native.js +831 -0
- package/dist/esm/tables/attributes.native.js.map +1 -0
- package/dist/esm/tables/compatibility.mjs +314 -0
- package/dist/esm/tables/compatibility.mjs.map +1 -0
- package/dist/esm/tables/compatibility.native.js +314 -0
- package/dist/esm/tables/compatibility.native.js.map +1 -0
- package/dist/esm/tables/events.mjs +145 -0
- package/dist/esm/tables/events.mjs.map +1 -0
- package/dist/esm/tables/events.native.js +149 -0
- package/dist/esm/tables/events.native.js.map +1 -0
- package/dist/esm/tables/nativeBacking.mjs +106 -0
- package/dist/esm/tables/nativeBacking.mjs.map +1 -0
- package/dist/esm/tables/nativeBacking.native.js +106 -0
- package/dist/esm/tables/nativeBacking.native.js.map +1 -0
- package/dist/esm/tables/tags.mjs +550 -0
- package/dist/esm/tables/tags.mjs.map +1 -0
- package/dist/esm/tables/tags.native.js +550 -0
- package/dist/esm/tables/tags.native.js.map +1 -0
- package/dist/esm/tables/types.mjs +0 -0
- package/dist/esm/tables/types.native.js +0 -0
- package/package.json +57 -7
- package/src/events.ts +58 -0
- package/src/index.ts +19 -0
- package/src/props.ts +699 -0
- package/src/tables/attributes.ts +863 -0
- package/src/tables/compatibility.ts +360 -0
- package/src/tables/events.ts +176 -0
- package/src/tables/nativeBacking.ts +132 -0
- package/src/tables/tags.ts +557 -0
- package/src/tables/types.ts +202 -0
- package/types/events.d.ts +58 -0
- package/types/events.d.ts.map +11 -0
- package/types/index.d.ts +20 -0
- package/types/index.d.ts.map +11 -0
- package/types/props.d.ts +499 -0
- package/types/props.d.ts.map +11 -0
- package/types/tables/attributes.d.ts +21 -0
- package/types/tables/attributes.d.ts.map +11 -0
- package/types/tables/compatibility.d.ts +28 -0
- package/types/tables/compatibility.d.ts.map +11 -0
- package/types/tables/events.d.ts +5 -0
- package/types/tables/events.d.ts.map +11 -0
- package/types/tables/nativeBacking.d.ts +28 -0
- package/types/tables/nativeBacking.d.ts.map +11 -0
- package/types/tables/tags.d.ts +36 -0
- package/types/tables/tags.d.ts.map +11 -0
- package/types/tables/types.d.ts +135 -0
- package/types/tables/types.d.ts.map +11 -0
- package/README.md +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attributes.native.js","names":[],"sources":["cjs/tables/attributes.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar attributes_exports = {};\n__export(attributes_exports, {\n ARIA_ROLES: () => ARIA_ROLES,\n ATTRIBUTES: () => ATTRIBUTES,\n ATTRIBUTE_NAMES: () => ATTRIBUTE_NAMES,\n AUTO_COMPLETE_VALUES: () => AUTO_COMPLETE_VALUES,\n FRONTEND_PROPS: () => FRONTEND_PROPS,\n HTML_INPUT_TYPES: () => HTML_INPUT_TYPES,\n NATIVE_INPUT_TYPES: () => NATIVE_INPUT_TYPES\n});\nmodule.exports = __toCommonJS(attributes_exports);\nvar TEXT_ENTRY = [\n \"input\",\n \"textarea\"\n];\nvar ANCHOR = [\n \"a\"\n];\nvar IMAGE = [\n \"img\"\n];\nvar ARIA_ROLES = [\n \"alert\",\n \"alertdialog\",\n \"application\",\n \"article\",\n \"banner\",\n \"blockquote\",\n \"button\",\n \"caption\",\n \"cell\",\n \"checkbox\",\n \"code\",\n \"columnheader\",\n \"combobox\",\n \"complementary\",\n \"contentinfo\",\n \"definition\",\n \"deletion\",\n \"dialog\",\n \"document\",\n \"emphasis\",\n \"feed\",\n \"figure\",\n \"form\",\n \"grid\",\n \"gridcell\",\n \"group\",\n \"heading\",\n \"img\",\n \"input\",\n \"insertion\",\n \"link\",\n \"list\",\n \"listbox\",\n \"listitem\",\n \"log\",\n \"main\",\n \"marquee\",\n \"math\",\n \"menu\",\n \"menubar\",\n \"menuitem\",\n \"menuitemcheckbox\",\n \"menuitemradio\",\n \"meter\",\n \"navigation\",\n \"none\",\n \"note\",\n \"option\",\n \"paragraph\",\n \"progressbar\",\n \"radio\",\n \"radiogroup\",\n \"region\",\n \"row\",\n \"rowgroup\",\n \"rowheader\",\n \"scrollbar\",\n \"search\",\n \"searchbox\",\n \"separator\",\n \"slider\",\n \"spinbutton\",\n \"status\",\n \"strong\",\n \"subscript\",\n \"superscript\",\n \"switch\",\n \"tab\",\n \"table\",\n \"tablist\",\n \"tabpanel\",\n \"term\",\n \"textbox\",\n \"time\",\n \"timer\",\n \"toolbar\",\n \"tooltip\",\n \"tree\",\n \"treegrid\",\n \"treeitem\"\n];\nvar AUTO_COMPLETE_VALUES = [\n \"additional-name\",\n \"address-line1\",\n \"address-line2\",\n \"birthdate-day\",\n \"birthdate-full\",\n \"birthdate-month\",\n \"birthdate-year\",\n \"cc-csc\",\n \"cc-exp\",\n \"cc-exp-day\",\n \"cc-exp-month\",\n \"cc-exp-year\",\n \"cc-number\",\n \"cc-name\",\n \"cc-given-name\",\n \"cc-middle-name\",\n \"cc-family-name\",\n \"cc-type\",\n \"country\",\n \"current-password\",\n \"email\",\n \"family-name\",\n \"gender\",\n \"given-name\",\n \"honorific-prefix\",\n \"honorific-suffix\",\n \"name\",\n \"name-family\",\n \"name-given\",\n \"name-middle\",\n \"name-middle-initial\",\n \"name-prefix\",\n \"name-suffix\",\n \"new-password\",\n \"nickname\",\n \"on\",\n \"one-time-code\",\n \"organization\",\n \"organization-title\",\n \"password\",\n \"password-new\",\n \"postal-address\",\n \"postal-address-country\",\n \"postal-address-extended\",\n \"postal-address-extended-postal-code\",\n \"postal-address-locality\",\n \"postal-address-region\",\n \"postal-code\",\n \"street-address\",\n \"sms-otp\",\n \"tel\",\n \"tel-country-code\",\n \"tel-national\",\n \"tel-device\",\n \"url\",\n \"username\",\n \"username-new\",\n \"off\"\n];\nvar HTML_INPUT_TYPES = [\n \"checkbox\",\n \"color\",\n \"date\",\n \"datetime-local\",\n \"email\",\n \"file\",\n \"hidden\",\n \"month\",\n \"number\",\n \"password\",\n \"radio\",\n \"range\",\n \"search\",\n \"submit\",\n \"tel\",\n \"text\",\n \"time\",\n \"url\",\n \"week\"\n];\nvar NATIVE_INPUT_TYPES = [\n \"email\",\n \"number\",\n \"password\",\n \"search\",\n \"tel\",\n \"text\",\n \"url\"\n];\nvar ariaState = function(name, nativeProp) {\n return {\n group: \"aria\",\n tags: \"*\",\n type: \"boolean\",\n nativeProp,\n web: \"host\",\n native: nativeProp ? \"polyfill\" : \"none\"\n };\n};\nvar ariaRef = function() {\n return {\n group: \"aria\",\n tags: \"*\",\n type: \"string\",\n nativeProp: null,\n web: \"host\",\n native: \"none\"\n };\n};\nvar ariaNumber = function() {\n var nativeProp = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;\n return {\n group: \"aria\",\n tags: \"*\",\n type: \"number\",\n nativeProp,\n web: \"host\",\n native: nativeProp ? \"polyfill\" : \"none\"\n };\n};\nvar ariaText = function() {\n var nativeProp = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;\n return {\n group: \"aria\",\n tags: \"*\",\n type: \"string\",\n nativeProp,\n web: \"host\",\n native: nativeProp ? \"polyfill\" : \"none\"\n };\n};\nvar ATTRIBUTES = {\n // accessibility\n \"aria-activedescendant\": ariaRef(),\n \"aria-atomic\": ariaState(\"aria-atomic\", null),\n \"aria-autocomplete\": {\n group: \"aria\",\n tags: \"*\",\n type: `'none' | 'inline' | 'list' | 'both'`,\n nativeProp: null,\n web: \"host\",\n native: \"none\"\n },\n \"aria-busy\": ariaState(\"aria-busy\", \"accessibilityState.busy\"),\n \"aria-checked\": {\n group: \"aria\",\n tags: \"*\",\n type: `boolean | 'mixed'`,\n nativeProp: \"accessibilityState.checked\",\n web: \"host\",\n native: \"polyfill\"\n },\n \"aria-colcount\": ariaNumber(),\n \"aria-colindex\": ariaNumber(),\n \"aria-colindextext\": ariaText(),\n \"aria-colspan\": ariaNumber(),\n \"aria-controls\": ariaRef(),\n \"aria-current\": {\n group: \"aria\",\n tags: \"*\",\n type: `boolean | 'page' | 'step' | 'location' | 'date' | 'time'`,\n nativeProp: null,\n web: \"host\",\n native: \"none\"\n },\n \"aria-describedby\": {\n ...ariaRef(),\n note: \"react native has no described-by relationship; put the description in aria-label instead\"\n },\n \"aria-details\": ariaRef(),\n \"aria-disabled\": ariaState(\"aria-disabled\", \"accessibilityState.disabled\"),\n \"aria-errormessage\": ariaRef(),\n \"aria-expanded\": ariaState(\"aria-expanded\", \"accessibilityState.expanded\"),\n \"aria-flowto\": ariaRef(),\n \"aria-haspopup\": {\n group: \"aria\",\n tags: \"*\",\n type: `'menu' | 'listbox' | 'tree' | 'grid' | 'dialog'`,\n nativeProp: null,\n web: \"host\",\n native: \"none\"\n },\n \"aria-hidden\": {\n group: \"aria\",\n tags: \"*\",\n type: \"boolean\",\n nativeProp: \"accessibilityElementsHidden\",\n web: \"host\",\n native: \"polyfill\",\n note: \"also sets importantForAccessibility on android so descendants are hidden\"\n },\n \"aria-invalid\": {\n group: \"aria\",\n tags: \"*\",\n type: `boolean | 'grammar' | 'spelling'`,\n nativeProp: null,\n web: \"host\",\n native: \"none\"\n },\n \"aria-keyshortcuts\": ariaText(),\n \"aria-label\": ariaText(\"accessibilityLabel\"),\n \"aria-labelledby\": {\n group: \"aria\",\n tags: \"*\",\n type: \"string\",\n nativeProp: \"accessibilityLabelledBy\",\n web: \"host\",\n native: \"polyfill\"\n },\n \"aria-level\": ariaNumber(),\n \"aria-live\": {\n group: \"aria\",\n tags: \"*\",\n type: `'off' | 'assertive' | 'polite'`,\n nativeProp: \"accessibilityLiveRegion\",\n web: \"host\",\n native: \"polyfill\"\n },\n \"aria-modal\": ariaState(\"aria-modal\", \"accessibilityViewIsModal\"),\n \"aria-multiline\": ariaState(\"aria-multiline\", null),\n \"aria-multiselectable\": ariaState(\"aria-multiselectable\", null),\n \"aria-orientation\": {\n group: \"aria\",\n tags: \"*\",\n type: `'horizontal' | 'vertical'`,\n nativeProp: null,\n web: \"host\",\n native: \"none\"\n },\n \"aria-owns\": ariaRef(),\n \"aria-placeholder\": ariaText(),\n // react-native 0.86.2 has no accessibilityPosInSet — checked View.js and\n // ViewAccessibility.d.ts, it exists in neither. Mapping to it would have the\n // prop silently dropped at the host, which is worse than declaring it web-only\n \"aria-posinset\": ariaNumber(),\n \"aria-pressed\": {\n group: \"aria\",\n tags: \"*\",\n type: `boolean | 'mixed'`,\n nativeProp: null,\n web: \"host\",\n native: \"none\"\n },\n \"aria-readonly\": ariaState(\"aria-readonly\", null),\n \"aria-required\": ariaState(\"aria-required\", null),\n \"aria-roledescription\": ariaText(),\n \"aria-rowcount\": ariaNumber(),\n \"aria-rowindex\": ariaNumber(),\n \"aria-rowindextext\": ariaText(),\n \"aria-rowspan\": ariaNumber(),\n \"aria-selected\": ariaState(\"aria-selected\", \"accessibilityState.selected\"),\n // same: no accessibilitySetSize anywhere in react-native 0.86.2\n \"aria-setsize\": ariaNumber(),\n \"aria-sort\": {\n group: \"aria\",\n tags: \"*\",\n type: `'none' | 'ascending' | 'descending' | 'other'`,\n nativeProp: null,\n web: \"host\",\n native: \"none\"\n },\n \"aria-valuemax\": ariaNumber(\"accessibilityValue.max\"),\n \"aria-valuemin\": ariaNumber(\"accessibilityValue.min\"),\n \"aria-valuenow\": ariaNumber(\"accessibilityValue.now\"),\n \"aria-valuetext\": ariaText(\"accessibilityValue.text\"),\n // global\n autoFocus: {\n group: \"global\",\n tags: \"*\",\n type: \"boolean\",\n nativeProp: null,\n web: \"host\",\n native: \"none\",\n note: \"focus a native element through a ref in an effect instead\"\n },\n dir: {\n group: \"global\",\n tags: \"*\",\n type: `'auto' | 'ltr' | 'rtl'`,\n nativeProp: \"writingDirection\",\n web: \"host\",\n native: \"polyfill\"\n },\n elementTiming: {\n group: \"global\",\n tags: \"*\",\n type: \"string\",\n nativeProp: null,\n web: \"host\",\n native: \"none\",\n note: \"element timing is a browser performance api\"\n },\n hidden: {\n group: \"global\",\n tags: \"*\",\n type: `true | 'hidden' | 'until-found'`,\n nativeProp: \"style.display\",\n web: \"host\",\n native: \"polyfill\",\n note: \"native applies display none and has no until-found reveal\"\n },\n id: {\n group: \"global\",\n tags: \"*\",\n type: \"string\",\n // react native takes `id` itself on View, Text and TextInput and assigns it\n // to nativeID, so there is nothing to rename\n nativeProp: \"id\",\n web: \"host\",\n native: \"polyfill\"\n },\n inert: {\n group: \"global\",\n tags: \"*\",\n type: \"boolean\",\n nativeProp: null,\n web: \"host\",\n native: \"none\"\n },\n lang: {\n group: \"global\",\n tags: \"*\",\n type: \"string\",\n nativeProp: null,\n web: \"host\",\n native: \"none\"\n },\n role: {\n group: \"global\",\n tags: \"*\",\n type: \"AriaRole\",\n nativeProp: \"role\",\n web: \"host\",\n native: \"polyfill\"\n },\n tabIndex: {\n group: \"global\",\n tags: \"*\",\n type: \"0 | -1\",\n nativeProp: \"focusable\",\n web: \"host\",\n native: \"polyfill\"\n },\n // react\n suppressHydrationWarning: {\n group: \"react\",\n tags: \"*\",\n type: \"boolean\",\n nativeProp: null,\n web: \"host\",\n native: \"none\"\n },\n children: {\n group: \"react\",\n tags: \"*\",\n nativeProp: \"children\",\n web: \"host\",\n native: \"host\",\n note: \"the content model in the tag table decides the type: no children on a void tag, text only inside an option\"\n },\n // supplied by the styling frontend, never generated as a prop here\n style: {\n group: \"frontend\",\n tags: \"*\",\n nativeProp: \"style\",\n web: \"host\",\n native: \"host\",\n note: \"each frontend supplies its own style contract: tamagui style props, className, or style() handles\"\n },\n \"data-*\": {\n group: \"data\",\n tags: \"*\",\n type: \"string | number | boolean\",\n nativeProp: null,\n web: \"host\",\n native: \"none\",\n note: \"data-testid is the one exception and reaches testID on native\"\n },\n \"data-testid\": {\n group: \"data\",\n tags: \"*\",\n type: \"string\",\n nativeProp: \"testID\",\n web: \"host\",\n native: \"polyfill\"\n },\n // text entry\n autoCapitalize: {\n group: \"element\",\n tags: TEXT_ENTRY,\n type: `'none' | 'sentences' | 'words' | 'characters'`,\n nativeProp: \"autoCapitalize\",\n web: \"host\",\n native: \"host\"\n },\n autoComplete: {\n group: \"element\",\n tags: [\n \"input\",\n \"select\",\n \"textarea\"\n ],\n type: \"AutoComplete\",\n nativeProp: \"autoComplete\",\n web: \"host\",\n native: \"host\"\n },\n enterKeyHint: {\n group: \"element\",\n tags: TEXT_ENTRY,\n type: `'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'`,\n nativeProp: \"enterKeyHint\",\n web: \"host\",\n native: \"host\"\n },\n inputMode: {\n group: \"element\",\n tags: TEXT_ENTRY,\n type: `'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search'`,\n nativeProp: \"inputMode\",\n web: \"host\",\n native: \"host\"\n },\n spellCheck: {\n group: \"element\",\n tags: TEXT_ENTRY,\n type: \"boolean\",\n nativeProp: \"spellCheck\",\n web: \"host\",\n native: \"host\",\n note: \"ios only on native\"\n },\n // anchor\n download: {\n group: \"element\",\n tags: ANCHOR,\n type: \"string\",\n nativeProp: null,\n web: \"host\",\n native: \"none\"\n },\n href: {\n group: \"element\",\n tags: ANCHOR,\n type: \"string\",\n nativeProp: null,\n web: \"host\",\n native: \"none\",\n note: \"native has no navigation; handle onClick and call your router or Linking\"\n },\n referrerPolicy: {\n group: \"element\",\n tags: [\n \"a\",\n \"img\"\n ],\n type: `'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url'`,\n nativeProp: \"referrerPolicy\",\n web: \"host\",\n native: \"host\",\n note: \"native honours it for image requests only\"\n },\n rel: {\n group: \"element\",\n tags: ANCHOR,\n type: \"string\",\n nativeProp: null,\n web: \"host\",\n native: \"none\"\n },\n target: {\n group: \"element\",\n tags: ANCHOR,\n type: `'_self' | '_blank' | '_parent' | '_top'`,\n nativeProp: null,\n web: \"host\",\n native: \"none\"\n },\n // button, input, option, optgroup, textarea\n disabled: {\n group: \"element\",\n tags: [\n \"button\",\n \"input\",\n \"optgroup\",\n \"option\",\n \"textarea\"\n ],\n type: \"boolean\",\n nativeProp: \"disabled\",\n web: \"host\",\n native: \"polyfill\",\n note: \"native also clears focusable, and editable on a text-entry control\"\n },\n type: {\n group: \"element\",\n tags: [\n \"button\",\n \"input\"\n ],\n perTag: {\n button: {\n type: `'button' | 'submit'`\n },\n input: {\n type: \"InputType\",\n note: \"on native the type selects the keyboard and secure entry rather than reaching one prop, and the types with no text-entry control are a build error\"\n }\n },\n nativeProp: null,\n web: \"host\",\n native: \"polyfill\"\n },\n // image\n alt: {\n group: \"element\",\n tags: IMAGE,\n type: \"string\",\n nativeProp: \"alt\",\n web: \"host\",\n native: \"host\"\n },\n crossOrigin: {\n group: \"element\",\n tags: IMAGE,\n type: `'anonymous' | 'use-credentials'`,\n nativeProp: \"crossOrigin\",\n web: \"host\",\n native: \"host\"\n },\n decoding: {\n group: \"element\",\n tags: IMAGE,\n type: `'async' | 'auto' | 'sync'`,\n nativeProp: null,\n web: \"host\",\n native: \"none\"\n },\n draggable: {\n group: \"element\",\n tags: IMAGE,\n type: \"boolean\",\n nativeProp: null,\n web: \"host\",\n native: \"none\"\n },\n fetchPriority: {\n group: \"element\",\n tags: IMAGE,\n type: `'high' | 'low' | 'auto'`,\n nativeProp: null,\n web: \"host\",\n native: \"none\"\n },\n height: {\n group: \"element\",\n tags: IMAGE,\n type: \"number\",\n nativeProp: \"height\",\n web: \"host\",\n native: \"host\"\n },\n loading: {\n group: \"element\",\n tags: IMAGE,\n type: `'eager' | 'lazy'`,\n nativeProp: null,\n web: \"host\",\n native: \"none\"\n },\n src: {\n group: \"element\",\n tags: IMAGE,\n type: \"string\",\n nativeProp: \"src\",\n web: \"host\",\n native: \"host\"\n },\n srcSet: {\n group: \"element\",\n tags: IMAGE,\n type: \"string\",\n nativeProp: \"srcSet\",\n web: \"host\",\n native: \"host\"\n },\n width: {\n group: \"element\",\n tags: IMAGE,\n type: \"number\",\n nativeProp: \"width\",\n web: \"host\",\n native: \"host\"\n },\n // form controls\n checked: {\n group: \"element\",\n tags: [\n \"input\"\n ],\n type: `boolean | 'mixed'`,\n nativeProp: null,\n web: \"host\",\n native: \"none\",\n note: \"checkbox and radio inputs have no native rendering\"\n },\n defaultChecked: {\n group: \"element\",\n tags: [\n \"input\"\n ],\n type: \"boolean\",\n nativeProp: null,\n web: \"host\",\n native: \"none\",\n note: \"checkbox and radio inputs have no native rendering\"\n },\n defaultValue: {\n group: \"element\",\n tags: [\n \"input\",\n \"select\",\n \"textarea\"\n ],\n type: \"string\",\n perTag: {\n select: {\n type: \"string | readonly string[]\"\n }\n },\n nativeProp: \"defaultValue\",\n web: \"host\",\n native: \"host\"\n },\n for: {\n group: \"element\",\n tags: [\n \"label\"\n ],\n type: \"string\",\n nativeProp: null,\n web: \"host\",\n native: \"none\",\n note: \"native has no label association; wrap the control or drive it from your own state\"\n },\n label: {\n group: \"element\",\n tags: [\n \"optgroup\",\n \"option\"\n ],\n type: \"string\",\n nativeProp: null,\n web: \"host\",\n native: \"none\"\n },\n max: {\n group: \"element\",\n tags: [\n \"input\"\n ],\n type: \"string | number\",\n nativeProp: null,\n web: \"host\",\n native: \"none\"\n },\n maxLength: {\n group: \"element\",\n tags: TEXT_ENTRY,\n type: \"number\",\n nativeProp: \"maxLength\",\n web: \"host\",\n native: \"host\"\n },\n min: {\n group: \"element\",\n tags: [\n \"input\"\n ],\n type: \"string | number\",\n nativeProp: null,\n web: \"host\",\n native: \"none\"\n },\n minLength: {\n group: \"element\",\n tags: TEXT_ENTRY,\n type: \"number\",\n nativeProp: null,\n web: \"host\",\n native: \"none\"\n },\n multiple: {\n group: \"element\",\n tags: [\n \"input\",\n \"select\"\n ],\n type: \"boolean\",\n nativeProp: null,\n web: \"host\",\n native: \"none\"\n },\n name: {\n group: \"element\",\n tags: [\n \"input\",\n \"select\",\n \"textarea\"\n ],\n type: \"string\",\n nativeProp: null,\n web: \"host\",\n native: \"none\",\n note: \"form field names only matter to a form submission, which native does not have\"\n },\n placeholder: {\n group: \"element\",\n tags: TEXT_ENTRY,\n type: \"string\",\n nativeProp: \"placeholder\",\n web: \"host\",\n native: \"host\"\n },\n readOnly: {\n group: \"element\",\n tags: TEXT_ENTRY,\n type: \"boolean\",\n nativeProp: \"editable\",\n web: \"host\",\n native: \"polyfill\"\n },\n required: {\n group: \"element\",\n tags: [\n \"input\",\n \"select\",\n \"textarea\"\n ],\n type: \"boolean\",\n nativeProp: null,\n web: \"host\",\n native: \"none\",\n note: \"native has no form validation\"\n },\n rows: {\n group: \"element\",\n tags: [\n \"textarea\"\n ],\n type: \"number\",\n nativeProp: \"numberOfLines\",\n web: \"host\",\n native: \"polyfill\"\n },\n step: {\n group: \"element\",\n tags: [\n \"input\"\n ],\n type: `number | 'any'`,\n nativeProp: null,\n web: \"host\",\n native: \"none\"\n },\n value: {\n group: \"element\",\n tags: [\n \"input\",\n \"li\",\n \"option\",\n \"select\",\n \"textarea\"\n ],\n type: \"string\",\n perTag: {\n li: {\n type: \"number\",\n note: \"the list counter is not rendered on either platform, matching the list-style reset\"\n },\n select: {\n type: \"string | readonly string[]\"\n }\n },\n nativeProp: \"value\",\n web: \"host\",\n native: \"polyfill\"\n }\n};\nvar ATTRIBUTE_NAMES = Object.keys(ATTRIBUTES);\nvar FRONTEND_PROPS = [\n \"style\"\n];\n//# sourceMappingURL=attributes.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,qBAAqB,CAAC;AAC1B,SAAS,oBAAoB;CAC3B,kBAAkB;CAClB,kBAAkB;CAClB,uBAAuB;CACvB,4BAA4B;CAC5B,sBAAsB;CACtB,wBAAwB;CACxB,0BAA0B;AAC5B,CAAC;AACD,OAAO,UAAU,aAAa,kBAAkB;AAChD,IAAI,aAAa,CACf,SACA,UACF;AACA,IAAI,SAAS,CACX,GACF;AACA,IAAI,QAAQ,CACV,KACF;AACA,IAAI,aAAa;CACf;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AACA,IAAI,uBAAuB;CACzB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AACA,IAAI,mBAAmB;CACrB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AACA,IAAI,qBAAqB;CACvB;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AACA,IAAI,YAAY,SAAS,MAAM,YAAY;CACzC,OAAO;EACL,OAAO;EACP,MAAM;EACN,MAAM;EACN;EACA,KAAK;EACL,QAAQ,aAAa,aAAa;CACpC;AACF;AACA,IAAI,UAAU,WAAW;CACvB,OAAO;EACL,OAAO;EACP,MAAM;EACN,MAAM;EACN,YAAY;EACZ,KAAK;EACL,QAAQ;CACV;AACF;AACA,IAAI,aAAa,WAAW;CAC1B,IAAI,aAAa,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK;CAClF,OAAO;EACL,OAAO;EACP,MAAM;EACN,MAAM;EACN;EACA,KAAK;EACL,QAAQ,aAAa,aAAa;CACpC;AACF;AACA,IAAI,WAAW,WAAW;CACxB,IAAI,aAAa,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK;CAClF,OAAO;EACL,OAAO;EACP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AK;EACL,QAAQ;CACV;CACA,UAAU;EACR,OAAO;EACP,MAAM,CACJ,SACA,QACF;EACA,MAAM;EACN,YAAY;EACZ,KAAK;EACL,QAAQ;CACV;CACA,MAAM;EACJ,OAAO;EACP,MAAM;GACJ;GACA;GACA;EACF;EACA,MAAM;EACN,YAAY;EACZ,KAAK;EACL,QAAQ;EACR,MAAM;CACR;CACA,aAAa;EACX,OAAO;EACP,MAAM;EACN,MAAM;EACN,YAAY;EACZ,KAAK;EACL,QAAQ;CACV;CACA,UAAU;EACR,OAAO;EACP,MAAM;EACN,MAAM;EACN,YAAY;EACZ,KAAK;EACL,QAAQ;CACV;CACA,UAAU;EACR,OAAO;EACP,MAAM;GACJ;GACA;GACA;EACF;EACA,MAAM;EACN,YAAY;EACZ,KAAK;EACL,QAAQ;EACR,MAAM;CACR;CACA,MAAM;EACJ,OAAO;EACP,MAAM,CACJ,UACF;EACA,MAAM;EACN,YAAY;EACZ,KAAK;EACL,QAAQ;CACV;CACA,MAAM;EACJ,OAAO;EACP,MAAM,CACJ,OACF;EACA,MAAM;EACN,YAAY;EACZ,KAAK;EACL,QAAQ;CACV;CACA,OAAO;EACL,OAAO;EACP,MAAM;GACJ;GACA;GACA;GACA;GACA;EACF;EACA,MAAM;EACN,QAAQ;GACN,IAAI;IACF,MAAM;IACN,MAAM;GACR;GACA,QAAQ,EACN,MAAM,6BACR;EACF;EACA,YAAY;EACZ,KAAK;EACL,QAAQ;CACV;AACF;AACA,IAAI,kBAAkB,OAAO,KAAK,UAAU;AAC5C,IAAI,iBAAiB,CACnB,OACF"}
|
|
@@ -0,0 +1,338 @@
|
|
|
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 compatibility_exports = {};
|
|
23
|
+
__export(compatibility_exports, {
|
|
24
|
+
COMPATIBILITY: () => COMPATIBILITY,
|
|
25
|
+
RSD_REFERENCE: () => RSD_REFERENCE
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(compatibility_exports);
|
|
28
|
+
const RSD_REFERENCE = {
|
|
29
|
+
version: "0.0.55",
|
|
30
|
+
commit: "c877f5c19b141e25c089d993b4cc584e669b6e39",
|
|
31
|
+
date: "2026-06-23"
|
|
32
|
+
};
|
|
33
|
+
const COMPATIBILITY = [
|
|
34
|
+
{
|
|
35
|
+
area: "tag",
|
|
36
|
+
subject: "html.select, html.option, html.optgroup",
|
|
37
|
+
keys: [],
|
|
38
|
+
rsd: "renders a view and text elements on native with no menu behaviour, and documents the tags as unsupported there",
|
|
39
|
+
tamagui: "native build error naming the tag",
|
|
40
|
+
reason: "an element that renders but cannot open, select or report a value is a silent approximation, which the DOM contract rules out"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
area: "tag",
|
|
44
|
+
subject: "html.form, html.fieldset",
|
|
45
|
+
keys: [],
|
|
46
|
+
rsd: "documents form as unsupported on native",
|
|
47
|
+
tamagui: "renders as a native container, with no submission, validation or reset",
|
|
48
|
+
reason: "the layout and accessibility of the container are correct on native; only submission is missing, and that is documented per prop"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
area: "prop",
|
|
52
|
+
subject: "autoCapitalize, enterKeyHint, inputMode, spellCheck",
|
|
53
|
+
keys: [
|
|
54
|
+
"autoCapitalize",
|
|
55
|
+
"enterKeyHint",
|
|
56
|
+
"inputMode",
|
|
57
|
+
"spellCheck"
|
|
58
|
+
],
|
|
59
|
+
rsd: "declared on every element, forwarded only by the text-entry factory",
|
|
60
|
+
tamagui: "declared on input and textarea only",
|
|
61
|
+
reason: "they have no effect anywhere else on either platform, so the narrower type is the honest one"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
area: "prop",
|
|
65
|
+
subject: "spellCheck on native",
|
|
66
|
+
keys: [],
|
|
67
|
+
rsd: "documented as unsupported",
|
|
68
|
+
tamagui: "forwarded to the text-entry control, ios only",
|
|
69
|
+
reason: "react native implements spellCheck on TextInput for ios; the RSD table predates it and its own runtime forwards the prop"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
area: "prop",
|
|
73
|
+
subject: "aria-describedby",
|
|
74
|
+
keys: [],
|
|
75
|
+
rsd: "documented as polyfilled on native, but its runtime does not map it",
|
|
76
|
+
tamagui: "web only, with a note pointing at aria-label",
|
|
77
|
+
reason: "react native has no described-by relationship, so the table follows the runtime rather than the documentation"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
area: "prop",
|
|
81
|
+
subject: "data-*",
|
|
82
|
+
keys: ["data-*"],
|
|
83
|
+
rsd: "allows any data- prefixed prop at runtime but types none of them",
|
|
84
|
+
tamagui: "one data-* row, so the generated interfaces admit the whole prefix",
|
|
85
|
+
reason: "the runtime already accepts them; leaving them untyped only means authors reach for a cast"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
area: "prop",
|
|
89
|
+
subject: "data-layoutconformance",
|
|
90
|
+
keys: ["data-layoutconformance"],
|
|
91
|
+
rsd: "opts an element subtree into W3C layout conformance on native",
|
|
92
|
+
tamagui: "not part of the contract",
|
|
93
|
+
reason: "it is an escape hatch for a specific react native migration, not a DOM prop, and DOM mode targets one layout model"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
area: "prop",
|
|
97
|
+
subject: "selected on html.option",
|
|
98
|
+
keys: ["selected"],
|
|
99
|
+
rsd: "allowlisted, but not declared by its option props type",
|
|
100
|
+
tamagui: "not part of the contract",
|
|
101
|
+
reason: "react warns on it and steers to value or defaultValue on the select, and select has no native rendering anyway"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
area: "prop",
|
|
105
|
+
subject: "children on a void or text-only element",
|
|
106
|
+
keys: [],
|
|
107
|
+
rsd: "types children as a react node on every element, including br, hr, img, input, textarea and option",
|
|
108
|
+
tamagui: "types it as never on the five void elements and as string or number inside an option, from the content model in the tag table",
|
|
109
|
+
reason: "the compiler already reports this nesting as a build error, and the same rule stated in the types reports it in the editor instead of at build time"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
area: "event",
|
|
113
|
+
subject: "onSelectionChange",
|
|
114
|
+
keys: ["onSelectionChange"],
|
|
115
|
+
rsd: "allowlisted and typed on input and textarea, then warned about as unsupported",
|
|
116
|
+
tamagui: "not part of the contract; the selection cache behind the ref polyfill stays internal",
|
|
117
|
+
reason: "it is not a React DOM prop, so it does nothing on web and warns on native: no platform supports it"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
area: "event",
|
|
121
|
+
subject: "onMouseMove",
|
|
122
|
+
keys: [],
|
|
123
|
+
rsd: "allowed on the strict surface but omitted from the native prop forwarding path",
|
|
124
|
+
tamagui: "native diagnostic pointing at onPointerMove",
|
|
125
|
+
reason: "a handler that is silently dropped is worse than a build error naming the supported cross-platform spelling; the other mouse events and onScroll match the upstream native host passthrough"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
area: "event",
|
|
129
|
+
subject: "onClick on native",
|
|
130
|
+
keys: [],
|
|
131
|
+
rsd: "documented as unsupported, polyfilled in its runtime through the press event",
|
|
132
|
+
tamagui: "polyfilled through the press event, documented as a polyfill",
|
|
133
|
+
reason: "the polyfill is real and useful; the payload subset it can fill in is documented instead of denied"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
area: "style",
|
|
137
|
+
subject: "inline reset spelling",
|
|
138
|
+
keys: [
|
|
139
|
+
"web.a.textAlign",
|
|
140
|
+
"web.a.textDecoration",
|
|
141
|
+
"web.a.textDecorationLine",
|
|
142
|
+
"web.b.textAlign",
|
|
143
|
+
"web.b.textDecoration",
|
|
144
|
+
"web.b.textDecorationLine",
|
|
145
|
+
"web.bdi.textAlign",
|
|
146
|
+
"web.bdi.textDecoration",
|
|
147
|
+
"web.bdi.textDecorationLine",
|
|
148
|
+
"web.bdo.textAlign",
|
|
149
|
+
"web.bdo.textDecoration",
|
|
150
|
+
"web.bdo.textDecorationLine",
|
|
151
|
+
"web.code.textAlign",
|
|
152
|
+
"web.code.textDecoration",
|
|
153
|
+
"web.code.textDecorationLine",
|
|
154
|
+
"web.em.textAlign",
|
|
155
|
+
"web.em.textDecoration",
|
|
156
|
+
"web.em.textDecorationLine",
|
|
157
|
+
"web.i.textAlign",
|
|
158
|
+
"web.i.textDecoration",
|
|
159
|
+
"web.i.textDecorationLine",
|
|
160
|
+
"web.label.textAlign",
|
|
161
|
+
"web.label.textDecoration",
|
|
162
|
+
"web.label.textDecorationLine",
|
|
163
|
+
"web.mark.textAlign",
|
|
164
|
+
"web.mark.textDecoration",
|
|
165
|
+
"web.mark.textDecorationLine",
|
|
166
|
+
"web.span.textAlign",
|
|
167
|
+
"web.span.textDecoration",
|
|
168
|
+
"web.span.textDecorationLine",
|
|
169
|
+
"web.strong.textAlign",
|
|
170
|
+
"web.strong.textDecoration",
|
|
171
|
+
"web.strong.textDecorationLine",
|
|
172
|
+
"web.sub.textAlign",
|
|
173
|
+
"web.sub.textDecoration",
|
|
174
|
+
"web.sub.textDecorationLine",
|
|
175
|
+
"web.sup.textAlign",
|
|
176
|
+
"web.sup.textDecoration",
|
|
177
|
+
"web.sup.textDecorationLine"
|
|
178
|
+
],
|
|
179
|
+
rsd: "resets inline elements with textDecoration: none and textAlign: inherit",
|
|
180
|
+
tamagui: "resets with textDecorationLine: none and leaves textAlign alone",
|
|
181
|
+
reason: "textDecorationLine is the one spelling that means the same thing on both platforms, and textAlign already inherits, so declaring it changes nothing"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
area: "style",
|
|
185
|
+
subject: "element defaults RSD leaves to the browser on web",
|
|
186
|
+
keys: [
|
|
187
|
+
"web.br.margin",
|
|
188
|
+
"web.br.padding",
|
|
189
|
+
"web.br.textDecorationLine",
|
|
190
|
+
"web.del.margin",
|
|
191
|
+
"web.del.padding",
|
|
192
|
+
"web.del.textDecorationLine",
|
|
193
|
+
"web.ins.margin",
|
|
194
|
+
"web.ins.padding",
|
|
195
|
+
"web.ins.textDecorationLine",
|
|
196
|
+
"web.kbd.fontFamily",
|
|
197
|
+
"web.kbd.fontSize",
|
|
198
|
+
"web.kbd.margin",
|
|
199
|
+
"web.kbd.padding",
|
|
200
|
+
"web.kbd.textDecorationLine",
|
|
201
|
+
"web.optgroup.margin",
|
|
202
|
+
"web.optgroup.padding",
|
|
203
|
+
"web.option.margin",
|
|
204
|
+
"web.option.padding",
|
|
205
|
+
"web.s.margin",
|
|
206
|
+
"web.s.padding",
|
|
207
|
+
"web.s.textDecorationLine",
|
|
208
|
+
"web.u.margin",
|
|
209
|
+
"web.u.padding",
|
|
210
|
+
"web.u.textDecorationLine",
|
|
211
|
+
"web.b.fontWeight",
|
|
212
|
+
"web.em.fontStyle",
|
|
213
|
+
"web.h1.fontWeight",
|
|
214
|
+
"web.h2.fontWeight",
|
|
215
|
+
"web.h3.fontWeight",
|
|
216
|
+
"web.h4.fontWeight",
|
|
217
|
+
"web.h5.fontWeight",
|
|
218
|
+
"web.h6.fontWeight",
|
|
219
|
+
"web.i.fontStyle",
|
|
220
|
+
"web.mark.backgroundColor",
|
|
221
|
+
"web.mark.color"
|
|
222
|
+
],
|
|
223
|
+
rsd: "applies no default styles at all to br, del, ins, kbd, optgroup, option, s and u on web, and relies on the browser stylesheet for the bold, italic, monospace, strike, underline and highlight of every other tag",
|
|
224
|
+
tamagui: "applies the same element defaults on both platforms",
|
|
225
|
+
reason: "one source has to render the same on web and native, which it cannot if half the defaults come from a browser stylesheet a css reset is free to remove"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
area: "style",
|
|
229
|
+
subject: "html.a default styles",
|
|
230
|
+
keys: ["native.a.color", "native.a.textDecorationLine"],
|
|
231
|
+
rsd: "strips the underline on web and adds blue plus underline on native, so one source renders differently per platform",
|
|
232
|
+
tamagui: "applies the same inline reset on both platforms and adds no link colour",
|
|
233
|
+
reason: "cross-platform parity is the point of the shared fixture, and a hardcoded link colour cannot follow a theme"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
area: "style",
|
|
237
|
+
subject: "monospace font family",
|
|
238
|
+
keys: [
|
|
239
|
+
"web.code.fontFamily",
|
|
240
|
+
"web.pre.fontFamily",
|
|
241
|
+
"native.code.fontFamily",
|
|
242
|
+
"native.kbd.fontFamily",
|
|
243
|
+
"native.pre.fontFamily"
|
|
244
|
+
],
|
|
245
|
+
rsd: "writes monospace, \"monospace\" on web to cancel the browser size quirk, and picks Menlo on ios",
|
|
246
|
+
tamagui: "writes monospace on both platforms and cancels the size quirk with fontSize: 1em instead",
|
|
247
|
+
reason: "the duplicated family name only exists to defeat the size quirk, which 1em does directly; the font family itself belongs to the theme, not to the tag"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
area: "style",
|
|
251
|
+
subject: "overflow on html.code",
|
|
252
|
+
keys: ["web.code.overflow"],
|
|
253
|
+
rsd: "shares one rule between code and pre, so inline code gets overflow: auto too",
|
|
254
|
+
tamagui: "scrolls pre only",
|
|
255
|
+
reason: "overflow does nothing on an inline element"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
area: "style",
|
|
259
|
+
subject: "web css properties a Tamagui style prop cannot express",
|
|
260
|
+
keys: [
|
|
261
|
+
"web.a.wordWrap",
|
|
262
|
+
"web.b.wordWrap",
|
|
263
|
+
"web.bdi.wordWrap",
|
|
264
|
+
"web.bdo.wordWrap",
|
|
265
|
+
"web.code.wordWrap",
|
|
266
|
+
"web.em.wordWrap",
|
|
267
|
+
"web.h1.wordWrap",
|
|
268
|
+
"web.h2.wordWrap",
|
|
269
|
+
"web.h3.wordWrap",
|
|
270
|
+
"web.h4.wordWrap",
|
|
271
|
+
"web.h5.wordWrap",
|
|
272
|
+
"web.h6.wordWrap",
|
|
273
|
+
"web.i.wordWrap",
|
|
274
|
+
"web.label.wordWrap",
|
|
275
|
+
"web.mark.wordWrap",
|
|
276
|
+
"web.span.wordWrap",
|
|
277
|
+
"web.strong.wordWrap",
|
|
278
|
+
"web.sub.wordWrap",
|
|
279
|
+
"web.sup.wordWrap",
|
|
280
|
+
"web.ol.listStyle",
|
|
281
|
+
"web.ul.listStyle",
|
|
282
|
+
"web.textarea.resize"
|
|
283
|
+
],
|
|
284
|
+
rsd: "sets overflow-wrap on inline text and headings, list-style: none on ol and ul, and resize: vertical on a textarea, all as plain stylex rules",
|
|
285
|
+
tamagui: "sets none of the three",
|
|
286
|
+
reason: "Tamagui resolves none of these three property names, and an unresolved style prop does not quietly do nothing — it reaches the element as an attribute, which is a react warning and still no styling. list-style has no visible consequence anyway, because every view-backed element carries `.is_View { display: flex }`, so an li is never display: list-item and no marker is generated. The other two are cosmetic and web-only. Closing this means teaching the style pipeline the three properties, not working around it here"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
area: "style",
|
|
290
|
+
subject: "html.img sizing",
|
|
291
|
+
keys: [
|
|
292
|
+
"web.img.aspectRatio",
|
|
293
|
+
"web.img.objectFit",
|
|
294
|
+
"web.img.margin",
|
|
295
|
+
"web.img.padding",
|
|
296
|
+
"web.img.textDecorationLine"
|
|
297
|
+
],
|
|
298
|
+
rsd: "derives the aspect ratio from the width and height attributes with attr(), which only lands in recent chromium, and gives img no inline reset",
|
|
299
|
+
tamagui: "sets objectFit, resets img like any other inline element, and lets the compiler turn the width and height props into an aspect ratio on native",
|
|
300
|
+
reason: "a css feature one engine supports cannot be the cross-platform contract, and the props are known at build time anyway; the inline reset still matters because an img inside an anchor otherwise inherits its underline"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
area: "style",
|
|
304
|
+
subject: "universal native element defaults",
|
|
305
|
+
keys: [
|
|
306
|
+
"native.br.boxSizing",
|
|
307
|
+
"native.br.position",
|
|
308
|
+
"native.hr.boxSizing"
|
|
309
|
+
],
|
|
310
|
+
rsd: "skips the shared native reset on br, and overrides boxSizing to border-box on hr",
|
|
311
|
+
tamagui: "applies the same native element defaults to every tag",
|
|
312
|
+
reason: "br is not special, and neither override changes what renders: hr has no border or padding for border-box to measure differently"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
area: "behavior",
|
|
316
|
+
subject: "invalid nesting",
|
|
317
|
+
keys: [],
|
|
318
|
+
rsd: "reports nothing at build time; an invalid tree fails at runtime on native",
|
|
319
|
+
tamagui: "compile diagnostic for statically knowable invalid nesting, from the content model in the tag table",
|
|
320
|
+
reason: "the compiler already classifies every tag, so the error belongs at build time where the source is"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
area: "behavior",
|
|
324
|
+
subject: "children as a render function",
|
|
325
|
+
keys: [],
|
|
326
|
+
rsd: "supports a function child that receives the resolved native props",
|
|
327
|
+
tamagui: "not part of the contract",
|
|
328
|
+
reason: "it exposes the native prop shape as public api and blocks compile-time literal-text wrapping"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
area: "ref",
|
|
332
|
+
subject: "native element ref",
|
|
333
|
+
keys: [],
|
|
334
|
+
rsd: "wraps every ref-ed host node in an Object.create view adding nodeName, viewport-scaled metrics and the tag polyfills",
|
|
335
|
+
tamagui: "wraps only ref-ed hosts in a stable Object.create facade adding nodeName, tagName, image complete, text-entry selection APIs, bound host methods and viewport-scaled geometry",
|
|
336
|
+
reason: "the compiler supplies the semantic tag only on the ref path, preserving the zero-allocation common path; the viewport provider scales synchronous DOM-shaped lengths and getBoundingClientRect while native measure methods remain bound to the host instance"
|
|
337
|
+
}
|
|
338
|
+
];
|