@tamagui/web 3.0.0-beta.1313.1 → 3.0.0-beta.1341.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 (192) hide show
  1. package/dist/cjs/contexts/ComponentContext.cjs +1 -0
  2. package/dist/cjs/contexts/ComponentContext.native.cjs +8 -0
  3. package/dist/cjs/contexts/ComponentContext.native.js +8 -0
  4. package/dist/cjs/contexts/ComponentContext.native.js.map +1 -1
  5. package/dist/cjs/createComponent.cjs +3 -1
  6. package/dist/cjs/createComponent.native.cjs +30 -6
  7. package/dist/cjs/createComponent.native.js +30 -6
  8. package/dist/cjs/createComponent.native.js.map +1 -1
  9. package/dist/cjs/createTamagui.cjs +0 -7
  10. package/dist/cjs/createTamagui.native.cjs +0 -12
  11. package/dist/cjs/createTamagui.native.js +0 -12
  12. package/dist/cjs/createTamagui.native.js.map +1 -1
  13. package/dist/cjs/dom/html.cjs +87 -329
  14. package/dist/cjs/dom/html.native.cjs +46 -0
  15. package/dist/cjs/dom/html.native.js +46 -0
  16. package/dist/cjs/dom/html.native.js.map +1 -1
  17. package/dist/cjs/dom/htmlReset.cjs +26 -0
  18. package/dist/cjs/dom/htmlReset.native.cjs +28 -0
  19. package/dist/cjs/dom/htmlReset.native.js +30 -0
  20. package/dist/cjs/dom/htmlReset.native.js.map +1 -0
  21. package/dist/cjs/dom/htmlStaticConfig.cjs +44 -0
  22. package/dist/cjs/dom/htmlStaticConfig.native.cjs +46 -0
  23. package/dist/cjs/dom/htmlStaticConfig.native.js +48 -0
  24. package/dist/cjs/dom/htmlStaticConfig.native.js.map +1 -0
  25. package/dist/cjs/dom/primitives.native.cjs +80 -29
  26. package/dist/cjs/dom/primitives.native.js +80 -29
  27. package/dist/cjs/dom/primitives.native.js.map +1 -1
  28. package/dist/cjs/helpers/NativeTextBinding.cjs +36 -0
  29. package/dist/cjs/helpers/NativeTextBinding.native.cjs +39 -0
  30. package/dist/cjs/helpers/NativeTextBinding.native.js +41 -0
  31. package/dist/cjs/helpers/NativeTextBinding.native.js.map +1 -0
  32. package/dist/cjs/helpers/createDesignSystem.cjs +3 -1
  33. package/dist/cjs/helpers/createDesignSystem.native.cjs +1 -0
  34. package/dist/cjs/helpers/createDesignSystem.native.js +1 -0
  35. package/dist/cjs/helpers/createDesignSystem.native.js.map +1 -1
  36. package/dist/cjs/helpers/expandStyle.cjs +1 -0
  37. package/dist/cjs/helpers/expandStyle.native.cjs +13 -0
  38. package/dist/cjs/helpers/expandStyle.native.js +13 -0
  39. package/dist/cjs/helpers/expandStyle.native.js.map +1 -1
  40. package/dist/cjs/helpers/getSplitStyles.cjs +10 -2
  41. package/dist/cjs/helpers/getSplitStyles.native.cjs +53 -18
  42. package/dist/cjs/helpers/getSplitStyles.native.js +53 -18
  43. package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
  44. package/dist/cjs/helpers/mergeProps.cjs +7 -3
  45. package/dist/cjs/helpers/mergeProps.native.cjs +7 -3
  46. package/dist/cjs/helpers/mergeProps.native.js +7 -3
  47. package/dist/cjs/helpers/mergeProps.native.js.map +1 -1
  48. package/dist/cjs/helpers/nativeTextMetrics.cjs +74 -0
  49. package/dist/cjs/helpers/nativeTextMetrics.native.cjs +77 -0
  50. package/dist/cjs/helpers/nativeTextMetrics.native.js +79 -0
  51. package/dist/cjs/helpers/nativeTextMetrics.native.js.map +1 -0
  52. package/dist/cjs/helpers/normalizeValueWithProperty.cjs +2 -1
  53. package/dist/cjs/helpers/normalizeValueWithProperty.native.cjs +2 -1
  54. package/dist/cjs/helpers/normalizeValueWithProperty.native.js +2 -1
  55. package/dist/cjs/helpers/normalizeValueWithProperty.native.js.map +1 -1
  56. package/dist/cjs/helpers/resolveVariableValue.cjs +7 -7
  57. package/dist/cjs/helpers/resolveVariableValue.native.cjs +7 -9
  58. package/dist/cjs/helpers/resolveVariableValue.native.js +7 -9
  59. package/dist/cjs/helpers/resolveVariableValue.native.js.map +1 -1
  60. package/dist/cjs/helpers/styledDynamic.cjs +0 -1
  61. package/dist/cjs/helpers/styledDynamic.native.cjs +0 -1
  62. package/dist/cjs/helpers/styledDynamic.native.js +0 -1
  63. package/dist/cjs/helpers/styledDynamic.native.js.map +1 -1
  64. package/dist/cjs/helpers/webPropsToSkip.native.cjs +3 -2
  65. package/dist/cjs/helpers/webPropsToSkip.native.js +3 -2
  66. package/dist/cjs/helpers/webPropsToSkip.native.js.map +1 -1
  67. package/dist/cjs/index.cjs +2 -0
  68. package/dist/cjs/index.native.cjs +2 -0
  69. package/dist/cjs/index.native.js +2 -0
  70. package/dist/cjs/index.native.js.map +1 -1
  71. package/dist/esm/contexts/ComponentContext.mjs +9 -9
  72. package/dist/esm/contexts/ComponentContext.mjs.map +1 -1
  73. package/dist/esm/contexts/ComponentContext.native.js +16 -9
  74. package/dist/esm/contexts/ComponentContext.native.js.map +1 -1
  75. package/dist/esm/createComponent.mjs +1 -1
  76. package/dist/esm/createComponent.mjs.map +1 -1
  77. package/dist/esm/createComponent.native.js +30 -6
  78. package/dist/esm/createComponent.native.js.map +1 -1
  79. package/dist/esm/createTamagui.mjs +0 -7
  80. package/dist/esm/createTamagui.mjs.map +1 -1
  81. package/dist/esm/createTamagui.native.js +0 -12
  82. package/dist/esm/createTamagui.native.js.map +1 -1
  83. package/dist/esm/dom/html.mjs +87 -329
  84. package/dist/esm/dom/html.mjs.map +1 -1
  85. package/dist/esm/dom/html.native.js +46 -0
  86. package/dist/esm/dom/html.native.js.map +1 -1
  87. package/dist/esm/dom/htmlReset.mjs +6 -0
  88. package/dist/esm/dom/htmlReset.mjs.map +1 -0
  89. package/dist/esm/dom/htmlReset.native.js +6 -0
  90. package/dist/esm/dom/htmlReset.native.js.map +1 -0
  91. package/dist/esm/dom/htmlStaticConfig.mjs +22 -0
  92. package/dist/esm/dom/htmlStaticConfig.mjs.map +1 -0
  93. package/dist/esm/dom/htmlStaticConfig.native.js +22 -0
  94. package/dist/esm/dom/htmlStaticConfig.native.js.map +1 -0
  95. package/dist/esm/dom/primitives.native.js +80 -29
  96. package/dist/esm/dom/primitives.native.js.map +1 -1
  97. package/dist/esm/helpers/NativeTextBinding.mjs +17 -0
  98. package/dist/esm/helpers/NativeTextBinding.mjs.map +1 -0
  99. package/dist/esm/helpers/NativeTextBinding.native.js +18 -0
  100. package/dist/esm/helpers/NativeTextBinding.native.js.map +1 -0
  101. package/dist/esm/helpers/createDesignSystem.mjs +3 -1
  102. package/dist/esm/helpers/createDesignSystem.mjs.map +1 -1
  103. package/dist/esm/helpers/expandStyle.native.js +13 -0
  104. package/dist/esm/helpers/expandStyle.native.js.map +1 -1
  105. package/dist/esm/helpers/getSplitStyles.mjs +8 -2
  106. package/dist/esm/helpers/getSplitStyles.mjs.map +1 -1
  107. package/dist/esm/helpers/getSplitStyles.native.js +53 -18
  108. package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
  109. package/dist/esm/helpers/mergeProps.mjs +7 -3
  110. package/dist/esm/helpers/mergeProps.mjs.map +1 -1
  111. package/dist/esm/helpers/mergeProps.native.js +7 -3
  112. package/dist/esm/helpers/mergeProps.native.js.map +1 -1
  113. package/dist/esm/helpers/nativeTextMetrics.mjs +55 -0
  114. package/dist/esm/helpers/nativeTextMetrics.mjs.map +1 -0
  115. package/dist/esm/helpers/nativeTextMetrics.native.js +56 -0
  116. package/dist/esm/helpers/nativeTextMetrics.native.js.map +1 -0
  117. package/dist/esm/helpers/normalizeValueWithProperty.mjs +2 -1
  118. package/dist/esm/helpers/normalizeValueWithProperty.mjs.map +1 -1
  119. package/dist/esm/helpers/normalizeValueWithProperty.native.js +2 -1
  120. package/dist/esm/helpers/normalizeValueWithProperty.native.js.map +1 -1
  121. package/dist/esm/helpers/resolveVariableValue.mjs +7 -7
  122. package/dist/esm/helpers/resolveVariableValue.mjs.map +1 -1
  123. package/dist/esm/helpers/resolveVariableValue.native.js +7 -9
  124. package/dist/esm/helpers/resolveVariableValue.native.js.map +1 -1
  125. package/dist/esm/helpers/styledDynamic.mjs +0 -1
  126. package/dist/esm/helpers/styledDynamic.mjs.map +1 -1
  127. package/dist/esm/helpers/styledDynamic.native.js +0 -1
  128. package/dist/esm/helpers/styledDynamic.native.js.map +1 -1
  129. package/dist/esm/helpers/webPropsToSkip.native.js +3 -2
  130. package/dist/esm/helpers/webPropsToSkip.native.js.map +1 -1
  131. package/dist/esm/index.js +2 -1
  132. package/dist/esm/index.mjs +2 -1
  133. package/dist/esm/index.native.js +2 -1
  134. package/package.json +16 -16
  135. package/src/contexts/ComponentContext.tsx +8 -0
  136. package/src/createComponent.tsx +78 -3
  137. package/src/createTamagui.ts +0 -19
  138. package/src/dom/contract.ts +4 -1
  139. package/src/dom/html.native.tsx +46 -0
  140. package/src/dom/html.tsx +189 -388
  141. package/src/dom/htmlReset.ts +15 -0
  142. package/src/dom/htmlStaticConfig.ts +40 -0
  143. package/src/dom/primitives.native.tsx +138 -33
  144. package/src/dom/standalone.ts +2 -1
  145. package/src/dom/styleTypes.ts +16 -23
  146. package/src/helpers/NativeTextBinding.tsx +26 -0
  147. package/src/helpers/createDesignSystem.ts +3 -1
  148. package/src/helpers/expandStyle.ts +30 -0
  149. package/src/helpers/getSplitStyles.tsx +88 -9
  150. package/src/helpers/mergeProps.ts +15 -3
  151. package/src/helpers/nativeTextMetrics.ts +77 -0
  152. package/src/helpers/normalizeValueWithProperty.ts +2 -1
  153. package/src/helpers/resolveVariableValue.ts +15 -16
  154. package/src/helpers/styledDynamic.ts +0 -1
  155. package/src/helpers/webPropsToSkip.native.ts +9 -2
  156. package/src/index.ts +3 -3
  157. package/src/types.tsx +51 -60
  158. package/types/contexts/ComponentContext.d.ts +1 -1
  159. package/types/contexts/ComponentContext.d.ts.map +1 -1
  160. package/types/createComponent.d.ts.map +1 -1
  161. package/types/createTamagui.d.ts.map +1 -1
  162. package/types/dom/contract.d.ts +4 -1
  163. package/types/dom/contract.d.ts.map +1 -1
  164. package/types/dom/html.d.ts +60 -51
  165. package/types/dom/html.d.ts.map +1 -1
  166. package/types/dom/html.native.d.ts.map +1 -1
  167. package/types/dom/htmlReset.d.ts +10 -0
  168. package/types/dom/htmlReset.d.ts.map +1 -0
  169. package/types/dom/htmlStaticConfig.d.ts +22 -0
  170. package/types/dom/htmlStaticConfig.d.ts.map +1 -0
  171. package/types/dom/primitives.native.d.ts.map +1 -1
  172. package/types/dom/standalone.d.ts +2 -1
  173. package/types/dom/standalone.d.ts.map +1 -1
  174. package/types/dom/styleTypes.d.ts +16 -26
  175. package/types/dom/styleTypes.d.ts.map +1 -1
  176. package/types/helpers/NativeTextBinding.d.ts +11 -0
  177. package/types/helpers/NativeTextBinding.d.ts.map +1 -0
  178. package/types/helpers/createDesignSystem.d.ts.map +1 -1
  179. package/types/helpers/expandStyle.d.ts.map +1 -1
  180. package/types/helpers/getSplitStyles.d.ts.map +1 -1
  181. package/types/helpers/mergeProps.d.ts.map +1 -1
  182. package/types/helpers/nativeTextMetrics.d.ts +16 -0
  183. package/types/helpers/nativeTextMetrics.d.ts.map +1 -0
  184. package/types/helpers/normalizeValueWithProperty.d.ts.map +1 -1
  185. package/types/helpers/resolveVariableValue.d.ts.map +1 -1
  186. package/types/helpers/styledDynamic.d.ts.map +1 -1
  187. package/types/helpers/webPropsToSkip.native.d.ts +0 -1
  188. package/types/helpers/webPropsToSkip.native.d.ts.map +1 -1
  189. package/types/index.d.ts +2 -1
  190. package/types/index.d.ts.map +1 -1
  191. package/types/types.d.ts +30 -45
  192. package/types/types.d.ts.map +1 -1
@@ -29,6 +29,7 @@ var import_createStyledContext = require("../helpers/createStyledContext.cjs");
29
29
  const componentContextKeys = [
30
30
  "disableSSR",
31
31
  "inText",
32
+ ...[],
32
33
  "language",
33
34
  "animationDriver",
34
35
  "setParentFocusState",
@@ -31,6 +31,11 @@ var import_createStyledContext = require("../helpers/createStyledContext.native.
31
31
  var componentContextKeys = [
32
32
  "disableSSR",
33
33
  "inText",
34
+ ...[
35
+ "parentFontSize",
36
+ "parentLineHeight",
37
+ "animatedText"
38
+ ],
34
39
  "language",
35
40
  "animationDriver",
36
41
  "setParentFocusState",
@@ -39,6 +44,9 @@ var componentContextKeys = [
39
44
  var ComponentContext = (0, import_createStyledContext.createStyledContext)({
40
45
  disableSSR: void 0,
41
46
  inText: false,
47
+ parentFontSize: void 0,
48
+ parentLineHeight: void 0,
49
+ animatedText: null,
42
50
  language: null,
43
51
  animationDriver: null,
44
52
  setParentFocusState: null,
@@ -31,6 +31,11 @@ var import_createStyledContext = require("../helpers/createStyledContext.native.
31
31
  var componentContextKeys = [
32
32
  "disableSSR",
33
33
  "inText",
34
+ ...[
35
+ "parentFontSize",
36
+ "parentLineHeight",
37
+ "animatedText"
38
+ ],
34
39
  "language",
35
40
  "animationDriver",
36
41
  "setParentFocusState",
@@ -39,6 +44,9 @@ var componentContextKeys = [
39
44
  var ComponentContext = (0, import_createStyledContext.createStyledContext)({
40
45
  disableSSR: void 0,
41
46
  inText: false,
47
+ parentFontSize: void 0,
48
+ parentLineHeight: void 0,
49
+ animatedText: null,
42
50
  language: null,
43
51
  animationDriver: null,
44
52
  setParentFocusState: null,
@@ -1 +1 @@
1
- {"version":3,"file":"ComponentContext.native.js","names":[],"sources":["cjs/contexts/ComponentContext.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 ComponentContext_exports = {};\n__export(ComponentContext_exports, {\n ComponentContext: () => ComponentContext,\n useConfiguration: () => useConfiguration\n});\nmodule.exports = __toCommonJS(ComponentContext_exports);\nvar import_react = require(\"react\");\nvar import_createStyledContext = require(\"../helpers/createStyledContext\");\nvar componentContextKeys = [\n \"disableSSR\",\n \"inText\",\n \"language\",\n \"animationDriver\",\n \"setParentFocusState\",\n \"insets\"\n];\nvar ComponentContext = (0, import_createStyledContext.createStyledContext)({\n disableSSR: void 0,\n inText: false,\n language: null,\n animationDriver: null,\n setParentFocusState: null,\n insets: null\n}, {\n keys: componentContextKeys\n});\nvar useConfiguration = function() {\n return (0, import_react.useContext)(ComponentContext);\n};\n//# sourceMappingURL=ComponentContext.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,2BAA2B,CAAC;AAChC,SAAS,0BAA0B;CACjC,wBAAwB;CACxB,wBAAwB;AAC1B,CAAC;AACD,OAAO,UAAU,aAAa,wBAAwB;AACtD,IAAI,eAAe,QAAQ,OAAO;AAClC,IAAI,6BAA6B,QAAQ,0CAAgC;AACzE,IAAI,uBAAuB;CACzB;CACA;CACA;CACA;CACA;CACA;AACF;AACA,IAAI,oBAAoB,GAAG,2BAA2B,oBAAmB,CAAE;CACzE,YAAY,KAAK;CACjB,QAAQ;CACR,UAAU;CACV,iBAAiB;CACjB,qBAAqB;CACrB,QAAQ;AACV,GAAG,EACD,MAAM,qBACR,CAAC;AACD,IAAI,mBAAmB,WAAW;CAChC,QAAQ,GAAG,aAAa,WAAU,CAAE,gBAAgB;AACtD"}
1
+ {"version":3,"file":"ComponentContext.native.js","names":[],"sources":["cjs/contexts/ComponentContext.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\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar ComponentContext_exports = {};\n__export(ComponentContext_exports, {\n\tComponentContext: () => ComponentContext,\n\tuseConfiguration: () => useConfiguration\n});\nmodule.exports = __toCommonJS(ComponentContext_exports);\nvar import_react = require(\"react\");\nvar import_createStyledContext = require(\"../helpers/createStyledContext\");\nvar componentContextKeys = [\n\t\"disableSSR\",\n\t\"inText\",\n\t...[\n\t\t\"parentFontSize\",\n\t\t\"parentLineHeight\",\n\t\t\"animatedText\"\n\t],\n\t\"language\",\n\t\"animationDriver\",\n\t\"setParentFocusState\",\n\t\"insets\"\n];\nvar ComponentContext = (0, import_createStyledContext.createStyledContext)({\n\tdisableSSR: void 0,\n\tinText: false,\n\tparentFontSize: void 0,\n\tparentLineHeight: void 0,\n\tanimatedText: null,\n\tlanguage: null,\n\tanimationDriver: null,\n\tsetParentFocusState: null,\n\tinsets: null\n}, { keys: componentContextKeys });\nvar useConfiguration = function() {\n\treturn (0, import_react.useContext)(ComponentContext);\n};\n//# sourceMappingURL=ComponentContext.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;CAC/B,KAAK,IAAI,QAAQ,KAAK,UAAU,QAAQ,MAAM;EAC7C,KAAK,IAAI;EACT,YAAY;CACb,CAAC;AACF;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC7C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EACnE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GAAG,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QAAQ,UAAU,IAAI,KAAK;GAC9G,WAAW,KAAK;GAChB,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAC3D,CAAC;CACF;CACA,OAAO;AACR;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,2BAA2B,CAAC;AAChC,SAAS,0BAA0B;CAClC,wBAAwB;CACxB,wBAAwB;AACzB,CAAC;AACD,OAAO,UAAU,aAAa,wBAAwB;AACtD,IAAI,eAAe,QAAQ,OAAO;AAClC,IAAI,6BAA6B,QAAQ,0CAAgC;AACzE,IAAI,uBAAuB;CAC1B;CACA;CACA,GAAG;EACF;EACA;EACA;CACD;CACA;CACA;CACA;CACA;AACD;AACA,IAAI,oBAAoB,GAAG,2BAA2B,oBAAmB,CAAE;CAC1E,YAAY,KAAK;CACjB,QAAQ;CACR,gBAAgB,KAAK;CACrB,kBAAkB,KAAK;CACvB,cAAc;CACd,UAAU;CACV,iBAAiB;CACjB,qBAAqB;CACrB,QAAQ;AACT,GAAG,EAAE,MAAM,qBAAqB,CAAC;AACjC,IAAI,mBAAmB,WAAW;CACjC,QAAQ,GAAG,aAAa,WAAU,CAAE,gBAAgB;AACrD"}
@@ -45,6 +45,8 @@ var import_defaultComponentState = require("./defaultComponentState.cjs");
45
45
  var import_eventHandling = require("./eventHandling.cjs");
46
46
  var import_componentDisplayName = require("./helpers/componentDisplayName.cjs");
47
47
  var import_getSplitStyles = require("./helpers/getSplitStyles.cjs");
48
+ require("./helpers/isTamaguiElement.cjs");
49
+ require("./helpers/NativeTextBinding.cjs");
48
50
  var import_grammarConfig = require("./helpers/grammarConfig.cjs");
49
51
  var import_styleStaticConfig = require("./helpers/styleStaticConfig.cjs");
50
52
  require("./helpers/nativeStyleEngine.cjs");
@@ -524,7 +526,7 @@ ${banner}
524
526
  const effectiveTransition = nextStyles?.effectiveTransition ?? props.transition ?? (platformPseudo ? "0ms" : void 0);
525
527
  stateRef.current.prevPseudoState = (0, import_extractPseudoState.extractPseudoState)(updatedState);
526
528
  const hasActivePseudo = Boolean(updatedState.hover || updatedState.press || updatedState.pressIn || updatedState.focus || updatedState.focusWithin);
527
- useStyleListener(nextStyles?.style || {}, effectiveTransition, hasActivePseudo);
529
+ useStyleListener(nextStyles?.style || {}, effectiveTransition, hasActivePseudo, void 0);
528
530
  };
529
531
  componentContext.mediaEmitListeners = componentContext.mediaEmitListeners || /* @__PURE__ */ new Set();
530
532
  if (!stateRef.current.mediaEmitCleanup) {
@@ -48,6 +48,8 @@ var import_defaultComponentState = require("./defaultComponentState.native.js");
48
48
  var import_eventHandling = require("./eventHandling.native.js");
49
49
  var import_componentDisplayName = require("./helpers/componentDisplayName.native.js");
50
50
  var import_getSplitStyles = require("./helpers/getSplitStyles.native.js");
51
+ var import_isTamaguiElement = require("./helpers/isTamaguiElement.native.js");
52
+ var import_NativeTextBinding = require("./helpers/NativeTextBinding.native.js");
51
53
  var import_grammarConfig = require("./helpers/grammarConfig.native.js");
52
54
  var import_styleStaticConfig = require("./helpers/styleStaticConfig.native.js");
53
55
  var import_nativeStyleEngine = require("./helpers/nativeStyleEngine.native.js");
@@ -589,7 +591,7 @@ ${banner}
589
591
  var effectiveTransition2 = (_ref5 = (_nextStyles_effectiveTransition = nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.effectiveTransition) !== null && _nextStyles_effectiveTransition !== void 0 ? _nextStyles_effectiveTransition : props.transition) !== null && _ref5 !== void 0 ? _ref5 : platformPseudo ? "0ms" : void 0;
590
592
  stateRef.current.prevPseudoState = (0, import_extractPseudoState.extractPseudoState)(updatedState);
591
593
  var hasActivePseudo = Boolean(updatedState.hover || updatedState.press || updatedState.pressIn || updatedState.focus || updatedState.focusWithin);
592
- useStyleListener((nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.style) || {}, effectiveTransition2, hasActivePseudo);
594
+ useStyleListener((nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.style) || {}, effectiveTransition2, hasActivePseudo, nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.nativeTextMetrics);
593
595
  };
594
596
  componentContext.mediaEmitListeners = componentContext.mediaEmitListeners || /* @__PURE__ */ new Set();
595
597
  if (!stateRef.current.mediaEmitCleanup) {
@@ -687,9 +689,11 @@ ${banner}
687
689
  if (typeof onTransition !== "undefined") viewProps.onTransition = onTransition;
688
690
  }
689
691
  var animationStyles;
692
+ var animatedText = isText && (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.nativeTextMetrics) && !splitStyles.nativeTextMetrics.inheritsFontSize ? null : componentContext.animatedText;
690
693
  var shouldUseAnimation = (inputStyle === "css" ? willBeAnimatedClient : willBeAnimated) && useAnimations && !isHOC;
691
694
  var animatedRef;
692
695
  if (shouldUseAnimation) {
696
+ var _splitStyles_nativeTextMetrics;
693
697
  var useStyleEmitter = (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.avoidReRenders) ? function(listener) {
694
698
  stateRef.current.useStyleListener = listener;
695
699
  } : void 0;
@@ -698,6 +702,7 @@ ${banner}
698
702
  if (splitStyles) splitStyles.effectiveTransition = effectiveTransition;
699
703
  stateRef.current.prevPseudoState = (0, import_extractPseudoState.extractPseudoState)(state);
700
704
  var animations = useAnimations({
705
+ inheritedText: (splitStyles === null || splitStyles === void 0 ? void 0 : (_splitStyles_nativeTextMetrics = splitStyles.nativeTextMetrics) === null || _splitStyles_nativeTextMetrics === void 0 ? void 0 : _splitStyles_nativeTextMetrics.inheritsFontSize) ? componentContext.animatedText : null,
701
706
  props: propsWithAnimation,
702
707
  style: isHydrated ? splitStylesStyle || {} : { ...splitStylesStyle },
703
708
  styleState: splitStyles,
@@ -712,6 +717,7 @@ ${banner}
712
717
  onTransition
713
718
  });
714
719
  if (animations) {
720
+ animatedText = animations.textChannel;
715
721
  if (animations.ref) animatedRef = animations.ref;
716
722
  if (isHydrated && animations) {
717
723
  animationStyles = animations.style;
@@ -994,8 +1000,16 @@ ${banner}
994
1000
  }
995
1001
  }
996
1002
  if (!content) {
1003
+ var _splitStyles_nativeTextMetrics1;
997
1004
  if (isRenderPropString && elementType["acceptRenderProp"]) viewProps.render = renderProp;
998
1005
  content = /* @__PURE__ */ import_react.default.createElement(elementType, viewProps, content || children);
1006
+ if (!shouldUseAnimation && !isHOC && !staticConfig.isDOM && !asChild && (splitStyles === null || splitStyles === void 0 ? void 0 : (_splitStyles_nativeTextMetrics1 = splitStyles.nativeTextMetrics) === null || _splitStyles_nativeTextMetrics1 === void 0 ? void 0 : _splitStyles_nativeTextMetrics1.inheritsFontSize) && componentContext.animatedText && (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.useTextMetrics)) content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_NativeTextBinding.NativeTextBinding, {
1007
+ element: content,
1008
+ useTextMetrics: animationDriver.useTextMetrics,
1009
+ inheritedText: componentContext.animatedText,
1010
+ lineHeight: splitStyles.nativeTextMetrics.lineHeight,
1011
+ isInput: staticConfig.isInput
1012
+ });
999
1013
  }
1000
1014
  if (process.env.NODE_ENV === "development" && time) time`use-children`;
1001
1015
  }
@@ -1010,15 +1024,25 @@ ${banner}
1010
1024
  children: content
1011
1025
  });
1012
1026
  if (process.env.NODE_ENV === "development" && time) time`create-element`;
1013
- if (conditionalStates === null || conditionalStates === void 0 ? void 0 : conditionalStates.has("focus-within")) content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, {
1014
- ...componentContext,
1015
- setParentFocusState: setStateShallow,
1016
- children: content
1017
- });
1018
1027
  if (groupName || isContainer) content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_GroupContext.GroupContext.Provider, {
1019
1028
  value: allGroupContexts,
1020
1029
  children: content
1021
1030
  });
1031
+ var textMetrics = !staticConfig.isDOM && !isHOC && isText && !(asChild && (0, import_isTamaguiElement.isTamaguiElement)(children)) ? splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.nativeTextMetrics : void 0;
1032
+ var provideText = !!textMetrics && children !== null && typeof children === "object" && (!componentContext.inText || textMetrics.fontSize !== componentContext.parentFontSize || textMetrics.lineHeight !== componentContext.parentLineHeight || animatedText !== componentContext.animatedText);
1033
+ var provideFocus = conditionalStates === null || conditionalStates === void 0 ? void 0 : conditionalStates.has("focus-within");
1034
+ if (provideText || provideFocus) {
1035
+ var _textMetrics_fontSize;
1036
+ content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, {
1037
+ ...componentContext,
1038
+ inText: provideText || componentContext.inText,
1039
+ parentFontSize: (_textMetrics_fontSize = textMetrics === null || textMetrics === void 0 ? void 0 : textMetrics.fontSize) !== null && _textMetrics_fontSize !== void 0 ? _textMetrics_fontSize : componentContext.parentFontSize,
1040
+ parentLineHeight: textMetrics ? textMetrics.lineHeight : componentContext.parentLineHeight,
1041
+ animatedText,
1042
+ setParentFocusState: provideFocus ? setStateShallow : componentContext.setParentFocusState,
1043
+ children: content
1044
+ });
1045
+ }
1022
1046
  if (process.env.NODE_ENV === "development" && time) time`group-context`;
1023
1047
  content = disableTheme || !splitStyles ? content : (0, import_Theme.getThemedChildren)(themeState, content, themeStateProps, false, stateRef);
1024
1048
  if (process.env.NODE_ENV === "development" && time) time`themed-children`;
@@ -48,6 +48,8 @@ var import_defaultComponentState = require("./defaultComponentState.native.js");
48
48
  var import_eventHandling = require("./eventHandling.native.js");
49
49
  var import_componentDisplayName = require("./helpers/componentDisplayName.native.js");
50
50
  var import_getSplitStyles = require("./helpers/getSplitStyles.native.js");
51
+ var import_isTamaguiElement = require("./helpers/isTamaguiElement.native.js");
52
+ var import_NativeTextBinding = require("./helpers/NativeTextBinding.native.js");
51
53
  var import_grammarConfig = require("./helpers/grammarConfig.native.js");
52
54
  var import_styleStaticConfig = require("./helpers/styleStaticConfig.native.js");
53
55
  var import_nativeStyleEngine = require("./helpers/nativeStyleEngine.native.js");
@@ -589,7 +591,7 @@ ${banner}
589
591
  var effectiveTransition2 = (_ref5 = (_nextStyles_effectiveTransition = nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.effectiveTransition) !== null && _nextStyles_effectiveTransition !== void 0 ? _nextStyles_effectiveTransition : props.transition) !== null && _ref5 !== void 0 ? _ref5 : platformPseudo ? "0ms" : void 0;
590
592
  stateRef.current.prevPseudoState = (0, import_extractPseudoState.extractPseudoState)(updatedState);
591
593
  var hasActivePseudo = Boolean(updatedState.hover || updatedState.press || updatedState.pressIn || updatedState.focus || updatedState.focusWithin);
592
- useStyleListener((nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.style) || {}, effectiveTransition2, hasActivePseudo);
594
+ useStyleListener((nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.style) || {}, effectiveTransition2, hasActivePseudo, nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.nativeTextMetrics);
593
595
  };
594
596
  componentContext.mediaEmitListeners = componentContext.mediaEmitListeners || /* @__PURE__ */ new Set();
595
597
  if (!stateRef.current.mediaEmitCleanup) {
@@ -687,9 +689,11 @@ ${banner}
687
689
  if (typeof onTransition !== "undefined") viewProps.onTransition = onTransition;
688
690
  }
689
691
  var animationStyles;
692
+ var animatedText = isText && (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.nativeTextMetrics) && !splitStyles.nativeTextMetrics.inheritsFontSize ? null : componentContext.animatedText;
690
693
  var shouldUseAnimation = (inputStyle === "css" ? willBeAnimatedClient : willBeAnimated) && useAnimations && !isHOC;
691
694
  var animatedRef;
692
695
  if (shouldUseAnimation) {
696
+ var _splitStyles_nativeTextMetrics;
693
697
  var useStyleEmitter = (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.avoidReRenders) ? function(listener) {
694
698
  stateRef.current.useStyleListener = listener;
695
699
  } : void 0;
@@ -698,6 +702,7 @@ ${banner}
698
702
  if (splitStyles) splitStyles.effectiveTransition = effectiveTransition;
699
703
  stateRef.current.prevPseudoState = (0, import_extractPseudoState.extractPseudoState)(state);
700
704
  var animations = useAnimations({
705
+ inheritedText: (splitStyles === null || splitStyles === void 0 ? void 0 : (_splitStyles_nativeTextMetrics = splitStyles.nativeTextMetrics) === null || _splitStyles_nativeTextMetrics === void 0 ? void 0 : _splitStyles_nativeTextMetrics.inheritsFontSize) ? componentContext.animatedText : null,
701
706
  props: propsWithAnimation,
702
707
  style: isHydrated ? splitStylesStyle || {} : { ...splitStylesStyle },
703
708
  styleState: splitStyles,
@@ -712,6 +717,7 @@ ${banner}
712
717
  onTransition
713
718
  });
714
719
  if (animations) {
720
+ animatedText = animations.textChannel;
715
721
  if (animations.ref) animatedRef = animations.ref;
716
722
  if (isHydrated && animations) {
717
723
  animationStyles = animations.style;
@@ -994,8 +1000,16 @@ ${banner}
994
1000
  }
995
1001
  }
996
1002
  if (!content) {
1003
+ var _splitStyles_nativeTextMetrics1;
997
1004
  if (isRenderPropString && elementType["acceptRenderProp"]) viewProps.render = renderProp;
998
1005
  content = /* @__PURE__ */ import_react.default.createElement(elementType, viewProps, content || children);
1006
+ if (!shouldUseAnimation && !isHOC && !staticConfig.isDOM && !asChild && (splitStyles === null || splitStyles === void 0 ? void 0 : (_splitStyles_nativeTextMetrics1 = splitStyles.nativeTextMetrics) === null || _splitStyles_nativeTextMetrics1 === void 0 ? void 0 : _splitStyles_nativeTextMetrics1.inheritsFontSize) && componentContext.animatedText && (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.useTextMetrics)) content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_NativeTextBinding.NativeTextBinding, {
1007
+ element: content,
1008
+ useTextMetrics: animationDriver.useTextMetrics,
1009
+ inheritedText: componentContext.animatedText,
1010
+ lineHeight: splitStyles.nativeTextMetrics.lineHeight,
1011
+ isInput: staticConfig.isInput
1012
+ });
999
1013
  }
1000
1014
  if (process.env.NODE_ENV === "development" && time) time`use-children`;
1001
1015
  }
@@ -1010,15 +1024,25 @@ ${banner}
1010
1024
  children: content
1011
1025
  });
1012
1026
  if (process.env.NODE_ENV === "development" && time) time`create-element`;
1013
- if (conditionalStates === null || conditionalStates === void 0 ? void 0 : conditionalStates.has("focus-within")) content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, {
1014
- ...componentContext,
1015
- setParentFocusState: setStateShallow,
1016
- children: content
1017
- });
1018
1027
  if (groupName || isContainer) content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_GroupContext.GroupContext.Provider, {
1019
1028
  value: allGroupContexts,
1020
1029
  children: content
1021
1030
  });
1031
+ var textMetrics = !staticConfig.isDOM && !isHOC && isText && !(asChild && (0, import_isTamaguiElement.isTamaguiElement)(children)) ? splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.nativeTextMetrics : void 0;
1032
+ var provideText = !!textMetrics && children !== null && typeof children === "object" && (!componentContext.inText || textMetrics.fontSize !== componentContext.parentFontSize || textMetrics.lineHeight !== componentContext.parentLineHeight || animatedText !== componentContext.animatedText);
1033
+ var provideFocus = conditionalStates === null || conditionalStates === void 0 ? void 0 : conditionalStates.has("focus-within");
1034
+ if (provideText || provideFocus) {
1035
+ var _textMetrics_fontSize;
1036
+ content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, {
1037
+ ...componentContext,
1038
+ inText: provideText || componentContext.inText,
1039
+ parentFontSize: (_textMetrics_fontSize = textMetrics === null || textMetrics === void 0 ? void 0 : textMetrics.fontSize) !== null && _textMetrics_fontSize !== void 0 ? _textMetrics_fontSize : componentContext.parentFontSize,
1040
+ parentLineHeight: textMetrics ? textMetrics.lineHeight : componentContext.parentLineHeight,
1041
+ animatedText,
1042
+ setParentFocusState: provideFocus ? setStateShallow : componentContext.setParentFocusState,
1043
+ children: content
1044
+ });
1045
+ }
1022
1046
  if (process.env.NODE_ENV === "development" && time) time`group-context`;
1023
1047
  content = disableTheme || !splitStyles ? content : (0, import_Theme.getThemedChildren)(themeState, content, themeStateProps, false, stateRef);
1024
1048
  if (process.env.NODE_ENV === "development" && time) time`themed-children`;