{"version":3,"file":"nativeBacking.js","names":[],"sources":["esm/tables/nativeBacking.js"],"sourcesContent":["const NATIVE_PRIMITIVE_MODULE = \"@tamagui/core/dom\";\nconst VIEW_TAGS = [\n  \"article\",\n  \"aside\",\n  \"blockquote\",\n  \"button\",\n  \"div\",\n  \"fieldset\",\n  \"footer\",\n  \"form\",\n  \"header\",\n  \"hr\",\n  \"li\",\n  \"main\",\n  \"nav\",\n  \"ol\",\n  \"optgroup\",\n  \"section\",\n  \"select\",\n  \"ul\"\n];\nconst TEXT_TAGS = [\n  \"a\",\n  \"b\",\n  \"bdi\",\n  \"bdo\",\n  \"br\",\n  \"code\",\n  \"del\",\n  \"em\",\n  \"h1\",\n  \"h2\",\n  \"h3\",\n  \"h4\",\n  \"h5\",\n  \"h6\",\n  \"i\",\n  \"ins\",\n  \"kbd\",\n  \"label\",\n  \"mark\",\n  \"option\",\n  \"p\",\n  \"pre\",\n  \"s\",\n  \"span\",\n  \"strong\",\n  \"sub\",\n  \"sup\",\n  \"u\"\n];\nconst NATIVE_BACKING = {\n  view: {\n    primitive: \"DOMView\",\n    host: \"View\",\n    tags: VIEW_TAGS,\n    wrapsLiteralText: true,\n    note: \"a direct literal string or number child is wrapped in DOMText at compile time, because a native view cannot render raw text\"\n  },\n  text: {\n    primitive: \"DOMText\",\n    host: \"Text\",\n    tags: TEXT_TAGS,\n    wrapsLiteralText: false,\n    note: \"inherits text styles from the nearest DOMText ancestor, and renders raw text directly\"\n  },\n  image: {\n    primitive: \"DOMImage\",\n    host: \"Image\",\n    tags: [\"img\"],\n    wrapsLiteralText: false,\n    note: \"width and height props become an aspect ratio so layout matches the browser before the image loads\"\n  },\n  textinput: {\n    primitive: \"DOMTextInput\",\n    host: \"TextInput\",\n    tags: [\"input\", \"textarea\"],\n    wrapsLiteralText: false,\n    note: \"textarea sets multiline, and rows becomes numberOfLines\"\n  }\n};\nconst NATIVE_ELEMENT_DEFAULTS = {\n  boxSizing: \"content-box\",\n  position: \"static\"\n};\nconst NATIVE_BLOCK_DEFAULTS = {\n  alignItems: \"stretch\",\n  display: \"flex\",\n  flexBasis: \"auto\",\n  flexDirection: \"column\",\n  flexShrink: 0,\n  flexWrap: \"nowrap\",\n  justifyContent: \"flex-start\"\n};\nconst NATIVE_FLEX_DEFAULTS = {\n  alignContent: \"stretch\",\n  alignItems: \"stretch\",\n  flexBasis: \"auto\",\n  flexDirection: \"row\",\n  flexShrink: 1,\n  flexWrap: \"nowrap\",\n  justifyContent: \"flex-start\"\n};\nexport {\n  NATIVE_BACKING,\n  NATIVE_BLOCK_DEFAULTS,\n  NATIVE_ELEMENT_DEFAULTS,\n  NATIVE_FLEX_DEFAULTS,\n  NATIVE_PRIMITIVE_MODULE\n};\n//# sourceMappingURL=nativeBacking.js.map\n"],"mappings":";AAAA,MAAM,0BAA0B;AAChC,MAAM,YAAY;CAChB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AACA,MAAM,YAAY;CAChB;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,MAAM,iBAAiB;CACrB,MAAM;EACJ,WAAW;EACX,MAAM;EACN,MAAM;EACN,kBAAkB;EAClB,MAAM;CACR;CACA,MAAM;EACJ,WAAW;EACX,MAAM;EACN,MAAM;EACN,kBAAkB;EAClB,MAAM;CACR;CACA,OAAO;EACL,WAAW;EACX,MAAM;EACN,MAAM,CAAC,KAAK;EACZ,kBAAkB;EAClB,MAAM;CACR;CACA,WAAW;EACT,WAAW;EACX,MAAM;EACN,MAAM,CAAC,SAAS,UAAU;EAC1B,kBAAkB;EAClB,MAAM;CACR;AACF;AACA,MAAM,0BAA0B;CAC9B,WAAW;CACX,UAAU;AACZ;AACA,MAAM,wBAAwB;CAC5B,YAAY;CACZ,SAAS;CACT,WAAW;CACX,eAAe;CACf,YAAY;CACZ,UAAU;CACV,gBAAgB;AAClB;AACA,MAAM,uBAAuB;CAC3B,cAAc;CACd,YAAY;CACZ,WAAW;CACX,eAAe;CACf,YAAY;CACZ,UAAU;CACV,gBAAgB;AAClB"}