@tamagui/web 3.0.0-beta.924.1 → 3.0.0

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 (636) hide show
  1. package/dist/cjs/_withNativeStyle.cjs +3 -0
  2. package/dist/cjs/_withNativeStyle.native.cjs +3 -0
  3. package/dist/cjs/_withNativeStyle.native.js +3 -0
  4. package/dist/cjs/_withNativeStyle.native.js.map +1 -1
  5. package/dist/cjs/_withStableStyle.native.cjs +1 -5
  6. package/dist/cjs/_withStableStyle.native.js +1 -5
  7. package/dist/cjs/_withStableStyle.native.js.map +1 -1
  8. package/dist/cjs/config.cjs +6 -3
  9. package/dist/cjs/config.native.cjs +7 -5
  10. package/dist/cjs/config.native.js +7 -5
  11. package/dist/cjs/config.native.js.map +1 -1
  12. package/dist/cjs/contexts/ComponentContext.cjs +1 -0
  13. package/dist/cjs/contexts/ComponentContext.native.cjs +8 -0
  14. package/dist/cjs/contexts/ComponentContext.native.js +8 -0
  15. package/dist/cjs/contexts/ComponentContext.native.js.map +1 -1
  16. package/dist/cjs/createComponent.cjs +46 -32
  17. package/dist/cjs/createComponent.native.cjs +92 -72
  18. package/dist/cjs/createComponent.native.js +92 -72
  19. package/dist/cjs/createComponent.native.js.map +1 -1
  20. package/dist/cjs/createTamagui.cjs +32 -14
  21. package/dist/cjs/createTamagui.native.cjs +33 -19
  22. package/dist/cjs/createTamagui.native.js +33 -19
  23. package/dist/cjs/createTamagui.native.js.map +1 -1
  24. package/dist/cjs/createTokens.native.cjs +1 -5
  25. package/dist/cjs/createTokens.native.js +1 -5
  26. package/dist/cjs/createTokens.native.js.map +1 -1
  27. package/dist/cjs/createVariable.native.cjs +1 -5
  28. package/dist/cjs/createVariable.native.js +1 -5
  29. package/dist/cjs/createVariable.native.js.map +1 -1
  30. package/dist/cjs/createVariables.native.cjs +2 -6
  31. package/dist/cjs/createVariables.native.js +2 -6
  32. package/dist/cjs/createVariables.native.js.map +1 -1
  33. package/dist/cjs/dom/html.cjs +87 -329
  34. package/dist/cjs/dom/html.native.cjs +53 -2
  35. package/dist/cjs/dom/html.native.js +53 -2
  36. package/dist/cjs/dom/html.native.js.map +1 -1
  37. package/dist/cjs/{helpers/timer.native.js → dom/htmlReset.cjs} +6 -12
  38. package/dist/cjs/{helpers/timer.native.cjs → dom/htmlReset.native.cjs} +6 -8
  39. package/dist/cjs/dom/htmlReset.native.js +30 -0
  40. package/dist/cjs/dom/htmlReset.native.js.map +1 -0
  41. package/dist/cjs/dom/htmlRuntime.native.cjs +4 -0
  42. package/dist/cjs/dom/htmlRuntime.native.js +4 -0
  43. package/dist/cjs/dom/htmlRuntime.native.js.map +1 -1
  44. package/dist/cjs/dom/htmlStaticConfig.cjs +44 -0
  45. package/dist/cjs/dom/htmlStaticConfig.native.cjs +46 -0
  46. package/dist/cjs/dom/htmlStaticConfig.native.js +48 -0
  47. package/dist/cjs/dom/htmlStaticConfig.native.js.map +1 -0
  48. package/dist/cjs/dom/primitives.native.cjs +81 -34
  49. package/dist/cjs/dom/primitives.native.js +81 -34
  50. package/dist/cjs/dom/primitives.native.js.map +1 -1
  51. package/dist/cjs/eventHandling.cjs +10 -4
  52. package/dist/cjs/eventHandling.native.cjs +52 -16
  53. package/dist/cjs/eventHandling.native.js +52 -16
  54. package/dist/cjs/eventHandling.native.js.map +1 -1
  55. package/dist/cjs/helpers/NativeTextBinding.cjs +36 -0
  56. package/dist/cjs/helpers/NativeTextBinding.native.cjs +39 -0
  57. package/dist/cjs/helpers/NativeTextBinding.native.js +41 -0
  58. package/dist/cjs/helpers/NativeTextBinding.native.js.map +1 -0
  59. package/dist/cjs/helpers/configVariables.native.cjs +2 -6
  60. package/dist/cjs/helpers/configVariables.native.js +2 -6
  61. package/dist/cjs/helpers/configVariables.native.js.map +1 -1
  62. package/dist/cjs/helpers/createDesignSystem.cjs +14 -10
  63. package/dist/cjs/helpers/createDesignSystem.native.cjs +5 -4
  64. package/dist/cjs/helpers/createDesignSystem.native.js +5 -4
  65. package/dist/cjs/helpers/createDesignSystem.native.js.map +1 -1
  66. package/dist/cjs/helpers/createStyledContext.native.cjs +1 -5
  67. package/dist/cjs/helpers/createStyledContext.native.js +1 -5
  68. package/dist/cjs/helpers/createStyledContext.native.js.map +1 -1
  69. package/dist/cjs/helpers/expandStyle.cjs +45 -1
  70. package/dist/cjs/helpers/expandStyle.native.cjs +38 -2
  71. package/dist/cjs/helpers/expandStyle.native.js +38 -2
  72. package/dist/cjs/helpers/expandStyle.native.js.map +1 -1
  73. package/dist/cjs/helpers/expandStyles.cjs +15 -3
  74. package/dist/cjs/helpers/expandStyles.native.cjs +14 -8
  75. package/dist/cjs/helpers/expandStyles.native.js +14 -8
  76. package/dist/cjs/helpers/expandStyles.native.js.map +1 -1
  77. package/dist/cjs/helpers/fluid.cjs +56 -0
  78. package/dist/cjs/helpers/fluid.native.cjs +58 -0
  79. package/dist/cjs/helpers/fluid.native.js +60 -0
  80. package/dist/cjs/helpers/fluid.native.js.map +1 -0
  81. package/dist/cjs/helpers/formatDiagnostic.native.cjs +2 -6
  82. package/dist/cjs/helpers/formatDiagnostic.native.js +2 -6
  83. package/dist/cjs/helpers/formatDiagnostic.native.js.map +1 -1
  84. package/dist/cjs/helpers/getCSSStylesAtomic.cjs +6 -6
  85. package/dist/cjs/helpers/getSplitStyles.cjs +366 -150
  86. package/dist/cjs/helpers/getSplitStyles.native.cjs +584 -184
  87. package/dist/cjs/helpers/getSplitStyles.native.js +584 -184
  88. package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
  89. package/dist/cjs/helpers/getThemeCSSRules.cjs +37 -25
  90. package/dist/cjs/helpers/grammarConfig.cjs +6 -14
  91. package/dist/cjs/helpers/grammarConfig.native.cjs +32 -22
  92. package/dist/cjs/helpers/grammarConfig.native.js +32 -22
  93. package/dist/cjs/helpers/grammarConfig.native.js.map +1 -1
  94. package/dist/cjs/helpers/insertStyleRule.cjs +11 -4
  95. package/dist/cjs/helpers/insertStyleRule.native.cjs +8 -11
  96. package/dist/cjs/helpers/insertStyleRule.native.js +8 -11
  97. package/dist/cjs/helpers/insertStyleRule.native.js.map +1 -1
  98. package/dist/cjs/helpers/isObj.native.cjs +1 -5
  99. package/dist/cjs/helpers/isObj.native.js +1 -5
  100. package/dist/cjs/helpers/isObj.native.js.map +1 -1
  101. package/dist/cjs/helpers/mainThreadPressEvents.native.cjs +48 -100
  102. package/dist/cjs/helpers/mainThreadPressEvents.native.js +48 -100
  103. package/dist/cjs/helpers/mainThreadPressEvents.native.js.map +1 -1
  104. package/dist/cjs/helpers/mergeProps.cjs +18 -21
  105. package/dist/cjs/helpers/mergeProps.native.cjs +20 -23
  106. package/dist/cjs/helpers/mergeProps.native.js +20 -23
  107. package/dist/cjs/helpers/mergeProps.native.js.map +1 -1
  108. package/dist/cjs/helpers/nativeOnlyProps.cjs +0 -1
  109. package/dist/cjs/helpers/nativeOnlyProps.native.cjs +0 -1
  110. package/dist/cjs/helpers/nativeOnlyProps.native.js +0 -1
  111. package/dist/cjs/helpers/nativeOnlyProps.native.js.map +1 -1
  112. package/dist/cjs/helpers/nativeTextMetrics.cjs +74 -0
  113. package/dist/cjs/helpers/nativeTextMetrics.native.cjs +77 -0
  114. package/dist/cjs/helpers/nativeTextMetrics.native.js +79 -0
  115. package/dist/cjs/helpers/nativeTextMetrics.native.js.map +1 -0
  116. package/dist/cjs/helpers/normalizeColor.native.cjs +17 -2
  117. package/dist/cjs/helpers/normalizeColor.native.js +17 -2
  118. package/dist/cjs/helpers/normalizeColor.native.js.map +1 -1
  119. package/dist/cjs/helpers/normalizeValueWithProperty.cjs +2 -1
  120. package/dist/cjs/helpers/normalizeValueWithProperty.native.cjs +3 -6
  121. package/dist/cjs/helpers/normalizeValueWithProperty.native.js +3 -6
  122. package/dist/cjs/helpers/normalizeValueWithProperty.native.js.map +1 -1
  123. package/dist/cjs/helpers/objectIdentityKey.native.cjs +1 -5
  124. package/dist/cjs/helpers/objectIdentityKey.native.js +1 -5
  125. package/dist/cjs/helpers/objectIdentityKey.native.js.map +1 -1
  126. package/dist/cjs/helpers/parseNativeStyle.cjs +187 -0
  127. package/dist/cjs/helpers/parseNativeStyle.native.cjs +6 -4
  128. package/dist/cjs/helpers/parseNativeStyle.native.js +6 -4
  129. package/dist/cjs/helpers/parseNativeStyle.native.js.map +1 -1
  130. package/dist/cjs/helpers/proxyThemeToParents.cjs +9 -2
  131. package/dist/cjs/helpers/proxyThemeToParents.native.cjs +28 -2
  132. package/dist/cjs/helpers/proxyThemeToParents.native.js +28 -2
  133. package/dist/cjs/helpers/proxyThemeToParents.native.js.map +1 -1
  134. package/dist/cjs/helpers/resolveAnimationDriver.native.cjs +1 -5
  135. package/dist/cjs/helpers/resolveAnimationDriver.native.js +1 -5
  136. package/dist/cjs/helpers/resolveAnimationDriver.native.js.map +1 -1
  137. package/dist/cjs/helpers/{timer.cjs → resolveNativeUnits.cjs} +12 -8
  138. package/dist/cjs/helpers/resolveNativeUnits.native.cjs +205 -0
  139. package/dist/cjs/helpers/resolveNativeUnits.native.js +207 -0
  140. package/dist/cjs/helpers/resolveNativeUnits.native.js.map +1 -0
  141. package/dist/cjs/helpers/resolveRem.native.cjs +18 -21
  142. package/dist/cjs/helpers/resolveRem.native.js +18 -21
  143. package/dist/cjs/helpers/resolveRem.native.js.map +1 -1
  144. package/dist/cjs/helpers/resolveSizing.cjs +124 -0
  145. package/dist/cjs/helpers/resolveSizing.native.cjs +133 -0
  146. package/dist/cjs/helpers/resolveSizing.native.js +135 -0
  147. package/dist/cjs/helpers/resolveSizing.native.js.map +1 -0
  148. package/dist/cjs/helpers/resolveVariableValue.cjs +7 -7
  149. package/dist/cjs/helpers/resolveVariableValue.native.cjs +7 -9
  150. package/dist/cjs/helpers/resolveVariableValue.native.js +7 -9
  151. package/dist/cjs/helpers/resolveVariableValue.native.js.map +1 -1
  152. package/dist/cjs/helpers/resolveVariantStyle.native.cjs +2 -6
  153. package/dist/cjs/helpers/resolveVariantStyle.native.js +2 -6
  154. package/dist/cjs/helpers/resolveVariantStyle.native.js.map +1 -1
  155. package/dist/cjs/helpers/skipProps.cjs +0 -1
  156. package/dist/cjs/helpers/skipProps.native.cjs +0 -1
  157. package/dist/cjs/helpers/skipProps.native.js +0 -1
  158. package/dist/cjs/helpers/skipProps.native.js.map +1 -1
  159. package/dist/cjs/helpers/styleFrontend.cjs +23 -1
  160. package/dist/cjs/helpers/styleFrontend.native.cjs +23 -1
  161. package/dist/cjs/helpers/styleFrontend.native.js +23 -1
  162. package/dist/cjs/helpers/styleFrontend.native.js.map +1 -1
  163. package/dist/cjs/helpers/styleStaticConfigCore.cjs +5 -4
  164. package/dist/cjs/helpers/styleStaticConfigCore.native.cjs +7 -4
  165. package/dist/cjs/helpers/styleStaticConfigCore.native.js +7 -4
  166. package/dist/cjs/helpers/styleStaticConfigCore.native.js.map +1 -1
  167. package/dist/cjs/helpers/styledDynamic.cjs +5 -0
  168. package/dist/cjs/helpers/styledDynamic.native.cjs +8 -7
  169. package/dist/cjs/helpers/styledDynamic.native.js +8 -7
  170. package/dist/cjs/helpers/styledDynamic.native.js.map +1 -1
  171. package/dist/cjs/helpers/subscribeToContextGroup.cjs +16 -7
  172. package/dist/cjs/helpers/subscribeToContextGroup.native.cjs +18 -8
  173. package/dist/cjs/helpers/subscribeToContextGroup.native.js +18 -8
  174. package/dist/cjs/helpers/subscribeToContextGroup.native.js.map +1 -1
  175. package/dist/cjs/helpers/themeRef.native.cjs +1 -5
  176. package/dist/cjs/helpers/themeRef.native.js +1 -5
  177. package/dist/cjs/helpers/themeRef.native.js.map +1 -1
  178. package/dist/cjs/helpers/themes.cjs +26 -11
  179. package/dist/cjs/helpers/themes.native.cjs +26 -11
  180. package/dist/cjs/helpers/themes.native.js +26 -11
  181. package/dist/cjs/helpers/themes.native.js.map +1 -1
  182. package/dist/cjs/helpers/tokenCategories.cjs +2 -2
  183. package/dist/cjs/helpers/tokenCategories.native.cjs +2 -2
  184. package/dist/cjs/helpers/tokenCategories.native.js +2 -2
  185. package/dist/cjs/helpers/tokenCategories.native.js.map +1 -1
  186. package/dist/cjs/helpers/variables.cjs +1 -1
  187. package/dist/cjs/helpers/variables.native.cjs +4 -8
  188. package/dist/cjs/helpers/variables.native.js +4 -8
  189. package/dist/cjs/helpers/variables.native.js.map +1 -1
  190. package/dist/cjs/helpers/warnOnce.cjs +6 -0
  191. package/dist/cjs/helpers/warnOnce.native.cjs +6 -0
  192. package/dist/cjs/helpers/warnOnce.native.js +6 -0
  193. package/dist/cjs/helpers/warnOnce.native.js.map +1 -1
  194. package/dist/cjs/helpers/webPropsToSkip.native.cjs +3 -3
  195. package/dist/cjs/helpers/webPropsToSkip.native.js +3 -3
  196. package/dist/cjs/helpers/webPropsToSkip.native.js.map +1 -1
  197. package/dist/cjs/helpers/wrapStyleTags.cjs +1 -1
  198. package/dist/cjs/helpers/wrapStyleTags.native.cjs +1 -1
  199. package/dist/cjs/helpers/wrapStyleTags.native.js +1 -1
  200. package/dist/cjs/helpers/wrapStyleTags.native.js.map +1 -1
  201. package/dist/cjs/hooks/useComponentState.native.cjs +1 -5
  202. package/dist/cjs/hooks/useComponentState.native.js +1 -5
  203. package/dist/cjs/hooks/useComponentState.native.js.map +1 -1
  204. package/dist/cjs/hooks/useMedia.cjs +27 -34
  205. package/dist/cjs/hooks/useMedia.native.cjs +45 -51
  206. package/dist/cjs/hooks/useMedia.native.js +45 -51
  207. package/dist/cjs/hooks/useMedia.native.js.map +1 -1
  208. package/dist/cjs/hooks/useSplitStyles.cjs +1 -1
  209. package/dist/cjs/hooks/useSplitStyles.native.cjs +1 -1
  210. package/dist/cjs/hooks/useSplitStyles.native.js +1 -1
  211. package/dist/cjs/hooks/useSplitStyles.native.js.map +1 -1
  212. package/dist/cjs/hooks/useThemeState.cjs +37 -47
  213. package/dist/cjs/hooks/useThemeState.native.cjs +44 -50
  214. package/dist/cjs/hooks/useThemeState.native.js +44 -50
  215. package/dist/cjs/hooks/useThemeState.native.js.map +1 -1
  216. package/dist/cjs/index.cjs +7 -0
  217. package/dist/cjs/index.native.cjs +7 -0
  218. package/dist/cjs/index.native.js +7 -0
  219. package/dist/cjs/index.native.js.map +1 -1
  220. package/dist/cjs/internal-runtime.cjs +22 -0
  221. package/dist/cjs/internal-runtime.native.cjs +22 -0
  222. package/dist/cjs/internal-runtime.native.js +22 -0
  223. package/dist/cjs/internal-runtime.native.js.map +1 -1
  224. package/dist/cjs/static-resolve.native.cjs +2 -9
  225. package/dist/cjs/static-resolve.native.js +2 -9
  226. package/dist/cjs/static-resolve.native.js.map +1 -1
  227. package/dist/cjs/style.cjs +1 -1
  228. package/dist/cjs/style.native.cjs +4 -7
  229. package/dist/cjs/style.native.js +4 -7
  230. package/dist/cjs/style.native.js.map +1 -1
  231. package/dist/cjs/views/Theme.cjs +10 -17
  232. package/dist/cjs/views/Theme.native.cjs +9 -11
  233. package/dist/cjs/views/Theme.native.js +9 -11
  234. package/dist/cjs/views/Theme.native.js.map +1 -1
  235. package/dist/cjs/views/ThemeDebug.cjs +1 -1
  236. package/dist/cjs/views/ThemeUpdate.cjs +1 -1
  237. package/dist/cjs/views/ThemeUpdate.native.cjs +1 -1
  238. package/dist/cjs/views/ThemeUpdate.native.js +1 -1
  239. package/dist/cjs/views/ThemeUpdate.native.js.map +1 -1
  240. package/dist/esm/_withNativeStyle.mjs +4 -1
  241. package/dist/esm/_withNativeStyle.mjs.map +1 -1
  242. package/dist/esm/_withNativeStyle.native.js +4 -1
  243. package/dist/esm/_withNativeStyle.native.js.map +1 -1
  244. package/dist/esm/_withStableStyle.native.js +1 -5
  245. package/dist/esm/_withStableStyle.native.js.map +1 -1
  246. package/dist/esm/config.mjs +6 -3
  247. package/dist/esm/config.mjs.map +1 -1
  248. package/dist/esm/config.native.js +7 -5
  249. package/dist/esm/config.native.js.map +1 -1
  250. package/dist/esm/contexts/ComponentContext.mjs +9 -9
  251. package/dist/esm/contexts/ComponentContext.mjs.map +1 -1
  252. package/dist/esm/contexts/ComponentContext.native.js +16 -9
  253. package/dist/esm/contexts/ComponentContext.native.js.map +1 -1
  254. package/dist/esm/createComponent.mjs +45 -42
  255. package/dist/esm/createComponent.mjs.map +1 -1
  256. package/dist/esm/createComponent.native.js +93 -82
  257. package/dist/esm/createComponent.native.js.map +1 -1
  258. package/dist/esm/createTamagui.mjs +33 -15
  259. package/dist/esm/createTamagui.mjs.map +1 -1
  260. package/dist/esm/createTamagui.native.js +34 -20
  261. package/dist/esm/createTamagui.native.js.map +1 -1
  262. package/dist/esm/createTokens.native.js +1 -5
  263. package/dist/esm/createTokens.native.js.map +1 -1
  264. package/dist/esm/createVariable.native.js +1 -5
  265. package/dist/esm/createVariable.native.js.map +1 -1
  266. package/dist/esm/createVariables.native.js +2 -6
  267. package/dist/esm/createVariables.native.js.map +1 -1
  268. package/dist/esm/dom/html.mjs +87 -329
  269. package/dist/esm/dom/html.mjs.map +1 -1
  270. package/dist/esm/dom/html.native.js +53 -2
  271. package/dist/esm/dom/html.native.js.map +1 -1
  272. package/dist/esm/dom/htmlReset.mjs +6 -0
  273. package/dist/esm/dom/htmlReset.mjs.map +1 -0
  274. package/dist/esm/dom/htmlReset.native.js +6 -0
  275. package/dist/esm/dom/htmlReset.native.js.map +1 -0
  276. package/dist/esm/dom/htmlRuntime.native.js +4 -0
  277. package/dist/esm/dom/htmlRuntime.native.js.map +1 -1
  278. package/dist/esm/dom/htmlStaticConfig.mjs +22 -0
  279. package/dist/esm/dom/htmlStaticConfig.mjs.map +1 -0
  280. package/dist/esm/dom/htmlStaticConfig.native.js +22 -0
  281. package/dist/esm/dom/htmlStaticConfig.native.js.map +1 -0
  282. package/dist/esm/dom/primitives.native.js +81 -34
  283. package/dist/esm/dom/primitives.native.js.map +1 -1
  284. package/dist/esm/eventHandling.mjs +10 -4
  285. package/dist/esm/eventHandling.mjs.map +1 -1
  286. package/dist/esm/eventHandling.native.js +52 -16
  287. package/dist/esm/eventHandling.native.js.map +1 -1
  288. package/dist/esm/helpers/NativeTextBinding.mjs +17 -0
  289. package/dist/esm/helpers/NativeTextBinding.mjs.map +1 -0
  290. package/dist/esm/helpers/NativeTextBinding.native.js +18 -0
  291. package/dist/esm/helpers/NativeTextBinding.native.js.map +1 -0
  292. package/dist/esm/helpers/configVariables.native.js +2 -6
  293. package/dist/esm/helpers/configVariables.native.js.map +1 -1
  294. package/dist/esm/helpers/createDesignSystem.mjs +14 -10
  295. package/dist/esm/helpers/createDesignSystem.mjs.map +1 -1
  296. package/dist/esm/helpers/createDesignSystem.native.js +4 -4
  297. package/dist/esm/helpers/createDesignSystem.native.js.map +1 -1
  298. package/dist/esm/helpers/createStyledContext.native.js +1 -5
  299. package/dist/esm/helpers/createStyledContext.native.js.map +1 -1
  300. package/dist/esm/helpers/expandStyle.mjs +41 -1
  301. package/dist/esm/helpers/expandStyle.mjs.map +1 -1
  302. package/dist/esm/helpers/expandStyle.native.js +36 -3
  303. package/dist/esm/helpers/expandStyle.native.js.map +1 -1
  304. package/dist/esm/helpers/expandStyles.mjs +15 -3
  305. package/dist/esm/helpers/expandStyles.mjs.map +1 -1
  306. package/dist/esm/helpers/expandStyles.native.js +14 -8
  307. package/dist/esm/helpers/expandStyles.native.js.map +1 -1
  308. package/dist/esm/helpers/fluid.mjs +36 -0
  309. package/dist/esm/helpers/fluid.mjs.map +1 -0
  310. package/dist/esm/helpers/fluid.native.js +36 -0
  311. package/dist/esm/helpers/fluid.native.js.map +1 -0
  312. package/dist/esm/helpers/formatDiagnostic.native.js +2 -6
  313. package/dist/esm/helpers/formatDiagnostic.native.js.map +1 -1
  314. package/dist/esm/helpers/getCSSStylesAtomic.mjs +6 -6
  315. package/dist/esm/helpers/getCSSStylesAtomic.mjs.map +1 -1
  316. package/dist/esm/helpers/getSplitStyles.mjs +364 -150
  317. package/dist/esm/helpers/getSplitStyles.mjs.map +1 -1
  318. package/dist/esm/helpers/getSplitStyles.native.js +588 -188
  319. package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
  320. package/dist/esm/helpers/getThemeCSSRules.mjs +37 -25
  321. package/dist/esm/helpers/getThemeCSSRules.mjs.map +1 -1
  322. package/dist/esm/helpers/grammarConfig.mjs +6 -14
  323. package/dist/esm/helpers/grammarConfig.mjs.map +1 -1
  324. package/dist/esm/helpers/grammarConfig.native.js +32 -22
  325. package/dist/esm/helpers/grammarConfig.native.js.map +1 -1
  326. package/dist/esm/helpers/insertStyleRule.mjs +11 -4
  327. package/dist/esm/helpers/insertStyleRule.mjs.map +1 -1
  328. package/dist/esm/helpers/insertStyleRule.native.js +4 -4
  329. package/dist/esm/helpers/insertStyleRule.native.js.map +1 -1
  330. package/dist/esm/helpers/isObj.native.js +1 -5
  331. package/dist/esm/helpers/isObj.native.js.map +1 -1
  332. package/dist/esm/helpers/mainThreadPressEvents.native.js +48 -100
  333. package/dist/esm/helpers/mainThreadPressEvents.native.js.map +1 -1
  334. package/dist/esm/helpers/mergeProps.mjs +18 -21
  335. package/dist/esm/helpers/mergeProps.mjs.map +1 -1
  336. package/dist/esm/helpers/mergeProps.native.js +20 -23
  337. package/dist/esm/helpers/mergeProps.native.js.map +1 -1
  338. package/dist/esm/helpers/nativeOnlyProps.mjs +0 -1
  339. package/dist/esm/helpers/nativeOnlyProps.mjs.map +1 -1
  340. package/dist/esm/helpers/nativeOnlyProps.native.js +0 -1
  341. package/dist/esm/helpers/nativeOnlyProps.native.js.map +1 -1
  342. package/dist/esm/helpers/nativeTextMetrics.mjs +55 -0
  343. package/dist/esm/helpers/nativeTextMetrics.mjs.map +1 -0
  344. package/dist/esm/helpers/nativeTextMetrics.native.js +56 -0
  345. package/dist/esm/helpers/nativeTextMetrics.native.js.map +1 -0
  346. package/dist/esm/helpers/normalizeColor.native.js +17 -2
  347. package/dist/esm/helpers/normalizeColor.native.js.map +1 -1
  348. package/dist/esm/helpers/normalizeValueWithProperty.mjs +2 -1
  349. package/dist/esm/helpers/normalizeValueWithProperty.mjs.map +1 -1
  350. package/dist/esm/helpers/normalizeValueWithProperty.native.js +3 -6
  351. package/dist/esm/helpers/normalizeValueWithProperty.native.js.map +1 -1
  352. package/dist/esm/helpers/objectIdentityKey.native.js +1 -5
  353. package/dist/esm/helpers/objectIdentityKey.native.js.map +1 -1
  354. package/dist/esm/helpers/parseNativeStyle.mjs +168 -0
  355. package/dist/esm/helpers/parseNativeStyle.mjs.map +1 -0
  356. package/dist/esm/helpers/parseNativeStyle.native.js +4 -1
  357. package/dist/esm/helpers/parseNativeStyle.native.js.map +1 -1
  358. package/dist/esm/helpers/proxyThemeToParents.mjs +10 -2
  359. package/dist/esm/helpers/proxyThemeToParents.mjs.map +1 -1
  360. package/dist/esm/helpers/proxyThemeToParents.native.js +29 -2
  361. package/dist/esm/helpers/proxyThemeToParents.native.js.map +1 -1
  362. package/dist/esm/helpers/resolveAnimationDriver.native.js +1 -5
  363. package/dist/esm/helpers/resolveAnimationDriver.native.js.map +1 -1
  364. package/dist/esm/helpers/resolveNativeUnits.mjs +9 -0
  365. package/dist/esm/helpers/resolveNativeUnits.mjs.map +1 -0
  366. package/dist/esm/helpers/resolveNativeUnits.native.js +178 -0
  367. package/dist/esm/helpers/resolveNativeUnits.native.js.map +1 -0
  368. package/dist/esm/helpers/resolveRem.native.js +18 -21
  369. package/dist/esm/helpers/resolveRem.native.js.map +1 -1
  370. package/dist/esm/helpers/resolveSizing.mjs +102 -0
  371. package/dist/esm/helpers/resolveSizing.mjs.map +1 -0
  372. package/dist/esm/helpers/resolveSizing.native.js +109 -0
  373. package/dist/esm/helpers/resolveSizing.native.js.map +1 -0
  374. package/dist/esm/helpers/resolveVariableValue.mjs +7 -7
  375. package/dist/esm/helpers/resolveVariableValue.mjs.map +1 -1
  376. package/dist/esm/helpers/resolveVariableValue.native.js +7 -9
  377. package/dist/esm/helpers/resolveVariableValue.native.js.map +1 -1
  378. package/dist/esm/helpers/resolveVariantStyle.native.js +2 -6
  379. package/dist/esm/helpers/resolveVariantStyle.native.js.map +1 -1
  380. package/dist/esm/helpers/skipProps.mjs +0 -1
  381. package/dist/esm/helpers/skipProps.mjs.map +1 -1
  382. package/dist/esm/helpers/skipProps.native.js +0 -1
  383. package/dist/esm/helpers/skipProps.native.js.map +1 -1
  384. package/dist/esm/helpers/styleFrontend.mjs +20 -1
  385. package/dist/esm/helpers/styleFrontend.mjs.map +1 -1
  386. package/dist/esm/helpers/styleFrontend.native.js +20 -1
  387. package/dist/esm/helpers/styleFrontend.native.js.map +1 -1
  388. package/dist/esm/helpers/styleStaticConfigCore.mjs +5 -4
  389. package/dist/esm/helpers/styleStaticConfigCore.mjs.map +1 -1
  390. package/dist/esm/helpers/styleStaticConfigCore.native.js +7 -4
  391. package/dist/esm/helpers/styleStaticConfigCore.native.js.map +1 -1
  392. package/dist/esm/helpers/styledDynamic.mjs +5 -0
  393. package/dist/esm/helpers/styledDynamic.mjs.map +1 -1
  394. package/dist/esm/helpers/styledDynamic.native.js +8 -7
  395. package/dist/esm/helpers/styledDynamic.native.js.map +1 -1
  396. package/dist/esm/helpers/subscribeToContextGroup.mjs +16 -7
  397. package/dist/esm/helpers/subscribeToContextGroup.mjs.map +1 -1
  398. package/dist/esm/helpers/subscribeToContextGroup.native.js +18 -8
  399. package/dist/esm/helpers/subscribeToContextGroup.native.js.map +1 -1
  400. package/dist/esm/helpers/themeRef.native.js +1 -5
  401. package/dist/esm/helpers/themeRef.native.js.map +1 -1
  402. package/dist/esm/helpers/themes.mjs +20 -11
  403. package/dist/esm/helpers/themes.mjs.map +1 -1
  404. package/dist/esm/helpers/themes.native.js +20 -11
  405. package/dist/esm/helpers/themes.native.js.map +1 -1
  406. package/dist/esm/helpers/tokenCategories.mjs +2 -2
  407. package/dist/esm/helpers/tokenCategories.mjs.map +1 -1
  408. package/dist/esm/helpers/tokenCategories.native.js +2 -2
  409. package/dist/esm/helpers/tokenCategories.native.js.map +1 -1
  410. package/dist/esm/helpers/variables.mjs +1 -1
  411. package/dist/esm/helpers/variables.mjs.map +1 -1
  412. package/dist/esm/helpers/variables.native.js +4 -8
  413. package/dist/esm/helpers/variables.native.js.map +1 -1
  414. package/dist/esm/helpers/warnOnce.mjs +6 -1
  415. package/dist/esm/helpers/warnOnce.mjs.map +1 -1
  416. package/dist/esm/helpers/warnOnce.native.js +6 -1
  417. package/dist/esm/helpers/warnOnce.native.js.map +1 -1
  418. package/dist/esm/helpers/webPropsToSkip.native.js +3 -3
  419. package/dist/esm/helpers/webPropsToSkip.native.js.map +1 -1
  420. package/dist/esm/helpers/wrapStyleTags.mjs +1 -1
  421. package/dist/esm/helpers/wrapStyleTags.mjs.map +1 -1
  422. package/dist/esm/helpers/wrapStyleTags.native.js +1 -1
  423. package/dist/esm/helpers/wrapStyleTags.native.js.map +1 -1
  424. package/dist/esm/hooks/useComponentState.native.js +1 -5
  425. package/dist/esm/hooks/useComponentState.native.js.map +1 -1
  426. package/dist/esm/hooks/useMedia.mjs +27 -34
  427. package/dist/esm/hooks/useMedia.mjs.map +1 -1
  428. package/dist/esm/hooks/useMedia.native.js +45 -51
  429. package/dist/esm/hooks/useMedia.native.js.map +1 -1
  430. package/dist/esm/hooks/useSplitStyles.mjs +1 -1
  431. package/dist/esm/hooks/useSplitStyles.mjs.map +1 -1
  432. package/dist/esm/hooks/useSplitStyles.native.js +1 -1
  433. package/dist/esm/hooks/useSplitStyles.native.js.map +1 -1
  434. package/dist/esm/hooks/useThemeState.mjs +36 -48
  435. package/dist/esm/hooks/useThemeState.mjs.map +1 -1
  436. package/dist/esm/hooks/useThemeState.native.js +44 -50
  437. package/dist/esm/hooks/useThemeState.native.js.map +1 -1
  438. package/dist/esm/index.js +4 -1
  439. package/dist/esm/index.mjs +4 -1
  440. package/dist/esm/index.native.js +4 -1
  441. package/dist/esm/internal-runtime.mjs +22 -3
  442. package/dist/esm/internal-runtime.mjs.map +1 -1
  443. package/dist/esm/internal-runtime.native.js +22 -3
  444. package/dist/esm/internal-runtime.native.js.map +1 -1
  445. package/dist/esm/static-resolve.native.js +2 -9
  446. package/dist/esm/static-resolve.native.js.map +1 -1
  447. package/dist/esm/style.mjs +1 -1
  448. package/dist/esm/style.mjs.map +1 -1
  449. package/dist/esm/style.native.js +4 -7
  450. package/dist/esm/style.native.js.map +1 -1
  451. package/dist/esm/views/Theme.mjs +15 -14
  452. package/dist/esm/views/Theme.mjs.map +1 -1
  453. package/dist/esm/views/Theme.native.js +15 -15
  454. package/dist/esm/views/Theme.native.js.map +1 -1
  455. package/dist/esm/views/ThemeDebug.mjs +1 -1
  456. package/dist/esm/views/ThemeDebug.mjs.map +1 -1
  457. package/dist/esm/views/ThemeUpdate.mjs +1 -1
  458. package/dist/esm/views/ThemeUpdate.mjs.map +1 -1
  459. package/dist/esm/views/ThemeUpdate.native.js +1 -1
  460. package/dist/esm/views/ThemeUpdate.native.js.map +1 -1
  461. package/package.json +20 -18
  462. package/reset.css +11 -0
  463. package/src/_withNativeStyle.tsx +6 -1
  464. package/src/config.ts +6 -6
  465. package/src/contexts/ComponentContext.tsx +8 -0
  466. package/src/createComponent.tsx +177 -57
  467. package/src/createStyledHOC.tsx +25 -26
  468. package/src/createTamagui.ts +47 -28
  469. package/src/dom/contract.ts +4 -1
  470. package/src/dom/html.native.tsx +55 -2
  471. package/src/dom/html.tsx +189 -388
  472. package/src/dom/htmlReset.ts +15 -0
  473. package/src/dom/htmlRuntime.native.tsx +5 -0
  474. package/src/dom/htmlStaticConfig.ts +40 -0
  475. package/src/dom/primitives.native.tsx +138 -33
  476. package/src/dom/standalone.ts +2 -1
  477. package/src/dom/styleTypes.ts +82 -92
  478. package/src/eventHandling.native.ts +61 -11
  479. package/src/eventHandling.ts +19 -4
  480. package/src/helpers/NativeTextBinding.tsx +26 -0
  481. package/src/helpers/createDesignSystem.ts +24 -8
  482. package/src/helpers/expandStyle.ts +88 -4
  483. package/src/helpers/expandStyles.ts +6 -11
  484. package/src/helpers/fluid.ts +66 -0
  485. package/src/helpers/getCSSStylesAtomic.ts +11 -6
  486. package/src/helpers/getSplitStyles.tsx +1032 -296
  487. package/src/helpers/getThemeCSSRules.ts +73 -35
  488. package/src/helpers/grammarConfig.ts +23 -8
  489. package/src/helpers/insertStyleRule.tsx +14 -8
  490. package/src/helpers/mainThreadPressEvents.native.ts +65 -141
  491. package/src/helpers/mergeProps.ts +29 -62
  492. package/src/helpers/nativeOnlyProps.ts +0 -1
  493. package/src/helpers/nativeTextMetrics.ts +77 -0
  494. package/src/helpers/normalizeColor.native.ts +29 -4
  495. package/src/helpers/normalizeValueWithProperty.ts +2 -1
  496. package/src/helpers/{parseNativeStyle.native.ts → parseNativeStyle.ts} +8 -1
  497. package/src/helpers/proxyThemeToParents.ts +13 -2
  498. package/src/helpers/resolveNativeUnits.native.ts +247 -0
  499. package/src/helpers/resolveNativeUnits.ts +10 -0
  500. package/src/helpers/resolveRem.native.ts +25 -26
  501. package/src/helpers/resolveSizing.ts +167 -0
  502. package/src/helpers/resolveVariableValue.ts +21 -17
  503. package/src/helpers/skipProps.ts +0 -1
  504. package/src/helpers/styleFrontend.ts +39 -0
  505. package/src/helpers/styleProvenance.ts +1 -1
  506. package/src/helpers/styleStaticConfigCore.ts +15 -4
  507. package/src/helpers/styledDynamic.ts +3 -1
  508. package/src/helpers/subscribeToContextGroup.tsx +16 -7
  509. package/src/helpers/themes.ts +27 -11
  510. package/src/helpers/tokenCategories.ts +15 -3
  511. package/src/helpers/variables.ts +2 -2
  512. package/src/helpers/warnOnce.ts +6 -0
  513. package/src/helpers/webPropsToSkip.native.ts +9 -3
  514. package/src/helpers/wrapStyleTags.tsx +4 -1
  515. package/src/hooks/useMedia.tsx +36 -47
  516. package/src/hooks/useSplitStyles.tsx +4 -1
  517. package/src/hooks/useThemeState.ts +69 -74
  518. package/src/index.ts +13 -0
  519. package/src/interfaces/RNExclusiveTypes.ts +1 -3
  520. package/src/internal-runtime.ts +43 -2
  521. package/src/style.ts +4 -1
  522. package/src/styled.tsx +34 -3
  523. package/src/types.tsx +412 -132
  524. package/src/views/Theme.tsx +18 -21
  525. package/src/views/ThemeDebug.tsx +1 -1
  526. package/src/views/ThemeUpdate.tsx +1 -1
  527. package/types/_withNativeStyle.d.ts.map +1 -1
  528. package/types/config.d.ts.map +1 -1
  529. package/types/contexts/ComponentContext.d.ts +1 -1
  530. package/types/contexts/ComponentContext.d.ts.map +1 -1
  531. package/types/createComponent.d.ts.map +1 -1
  532. package/types/createStyledHOC.d.ts +5 -2
  533. package/types/createStyledHOC.d.ts.map +1 -1
  534. package/types/createTamagui.d.ts.map +1 -1
  535. package/types/dom/contract.d.ts +4 -1
  536. package/types/dom/contract.d.ts.map +1 -1
  537. package/types/dom/html.d.ts +60 -51
  538. package/types/dom/html.d.ts.map +1 -1
  539. package/types/dom/html.native.d.ts.map +1 -1
  540. package/types/dom/htmlReset.d.ts +10 -0
  541. package/types/dom/htmlReset.d.ts.map +1 -0
  542. package/types/dom/htmlRuntime.native.d.ts.map +1 -1
  543. package/types/dom/htmlStaticConfig.d.ts +22 -0
  544. package/types/dom/htmlStaticConfig.d.ts.map +1 -0
  545. package/types/dom/primitives.native.d.ts.map +1 -1
  546. package/types/dom/standalone.d.ts +2 -1
  547. package/types/dom/standalone.d.ts.map +1 -1
  548. package/types/dom/styleTypes.d.ts +63 -84
  549. package/types/dom/styleTypes.d.ts.map +1 -1
  550. package/types/eventHandling.d.ts +12 -4
  551. package/types/eventHandling.d.ts.map +1 -1
  552. package/types/eventHandling.native.d.ts.map +1 -1
  553. package/types/helpers/NativeTextBinding.d.ts +11 -0
  554. package/types/helpers/NativeTextBinding.d.ts.map +1 -0
  555. package/types/helpers/createDesignSystem.d.ts.map +1 -1
  556. package/types/helpers/expandStyle.d.ts +1 -0
  557. package/types/helpers/expandStyle.d.ts.map +1 -1
  558. package/types/helpers/expandStyles.d.ts.map +1 -1
  559. package/types/helpers/fluid.d.ts +21 -0
  560. package/types/helpers/fluid.d.ts.map +1 -0
  561. package/types/helpers/getCSSStylesAtomic.d.ts +3 -1
  562. package/types/helpers/getCSSStylesAtomic.d.ts.map +1 -1
  563. package/types/helpers/getSplitStyles.d.ts +2 -1
  564. package/types/helpers/getSplitStyles.d.ts.map +1 -1
  565. package/types/helpers/getThemeCSSRules.d.ts.map +1 -1
  566. package/types/helpers/grammarConfig.d.ts.map +1 -1
  567. package/types/helpers/insertStyleRule.d.ts.map +1 -1
  568. package/types/helpers/mainThreadPressEvents.native.d.ts +0 -7
  569. package/types/helpers/mainThreadPressEvents.native.d.ts.map +1 -1
  570. package/types/helpers/mergeProps.d.ts +1 -15
  571. package/types/helpers/mergeProps.d.ts.map +1 -1
  572. package/types/helpers/nativeOnlyProps.d.ts +0 -1
  573. package/types/helpers/nativeOnlyProps.d.ts.map +1 -1
  574. package/types/helpers/nativeTextMetrics.d.ts +16 -0
  575. package/types/helpers/nativeTextMetrics.d.ts.map +1 -0
  576. package/types/helpers/normalizeColor.native.d.ts +4 -1
  577. package/types/helpers/normalizeColor.native.d.ts.map +1 -1
  578. package/types/helpers/normalizeShadow.native.d.ts +3 -1
  579. package/types/helpers/normalizeShadow.native.d.ts.map +1 -1
  580. package/types/helpers/normalizeValueWithProperty.d.ts.map +1 -1
  581. package/types/helpers/{parseNativeStyle.native.d.ts → parseNativeStyle.d.ts} +1 -1
  582. package/types/helpers/parseNativeStyle.d.ts.map +1 -0
  583. package/types/helpers/proxyThemeToParents.d.ts +1 -1
  584. package/types/helpers/proxyThemeToParents.d.ts.map +1 -1
  585. package/types/helpers/resolveNativeUnits.d.ts +6 -0
  586. package/types/helpers/resolveNativeUnits.d.ts.map +1 -0
  587. package/types/helpers/resolveNativeUnits.native.d.ts +16 -0
  588. package/types/helpers/resolveNativeUnits.native.d.ts.map +1 -0
  589. package/types/helpers/resolveRem.native.d.ts +6 -4
  590. package/types/helpers/resolveRem.native.d.ts.map +1 -1
  591. package/types/helpers/resolveSizing.d.ts +90 -0
  592. package/types/helpers/resolveSizing.d.ts.map +1 -0
  593. package/types/helpers/resolveVariableValue.d.ts.map +1 -1
  594. package/types/helpers/skipProps.d.ts +0 -1
  595. package/types/helpers/skipProps.d.ts.map +1 -1
  596. package/types/helpers/styleFrontend.d.ts +21 -0
  597. package/types/helpers/styleFrontend.d.ts.map +1 -1
  598. package/types/helpers/styleProvenance.d.ts +1 -1
  599. package/types/helpers/styleProvenance.d.ts.map +1 -1
  600. package/types/helpers/styleStaticConfigCore.d.ts.map +1 -1
  601. package/types/helpers/styledDynamic.d.ts +1 -1
  602. package/types/helpers/styledDynamic.d.ts.map +1 -1
  603. package/types/helpers/themes.d.ts +4 -0
  604. package/types/helpers/themes.d.ts.map +1 -1
  605. package/types/helpers/tokenCategories.d.ts +1 -1
  606. package/types/helpers/tokenCategories.d.ts.map +1 -1
  607. package/types/helpers/warnOnce.d.ts +1 -0
  608. package/types/helpers/warnOnce.d.ts.map +1 -1
  609. package/types/helpers/webPropsToSkip.native.d.ts +6 -2
  610. package/types/helpers/webPropsToSkip.native.d.ts.map +1 -1
  611. package/types/helpers/wrapStyleTags.d.ts.map +1 -1
  612. package/types/hooks/useMedia.d.ts +5 -2
  613. package/types/hooks/useMedia.d.ts.map +1 -1
  614. package/types/hooks/useSplitStyles.d.ts.map +1 -1
  615. package/types/hooks/useThemeState.d.ts.map +1 -1
  616. package/types/index.d.ts +4 -1
  617. package/types/index.d.ts.map +1 -1
  618. package/types/interfaces/RNExclusiveTypes.d.ts +2 -3
  619. package/types/interfaces/RNExclusiveTypes.d.ts.map +1 -1
  620. package/types/internal-runtime.d.ts +12 -1
  621. package/types/internal-runtime.d.ts.map +1 -1
  622. package/types/style.d.ts.map +1 -1
  623. package/types/styled.d.ts +7 -4
  624. package/types/styled.d.ts.map +1 -1
  625. package/types/types.d.ts +258 -102
  626. package/types/types.d.ts.map +1 -1
  627. package/types/views/Theme.d.ts.map +1 -1
  628. package/dist/cjs/helpers/timer.native.js.map +0 -1
  629. package/dist/esm/helpers/timer.mjs +0 -13
  630. package/dist/esm/helpers/timer.mjs.map +0 -1
  631. package/dist/esm/helpers/timer.native.js +0 -13
  632. package/dist/esm/helpers/timer.native.js.map +0 -1
  633. package/src/helpers/timer.ts +0 -9
  634. package/types/helpers/parseNativeStyle.native.d.ts.map +0 -1
  635. package/types/helpers/timer.d.ts +0 -2
  636. package/types/helpers/timer.d.ts.map +0 -1
@@ -21,6 +21,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var internal_runtime_exports = {};
22
22
  __export(internal_runtime_exports, {
23
23
  TamaguiProvider: () => TamaguiProvider,
24
+ copyAuthoredThemeScheme: () => copyAuthoredThemeScheme,
25
+ createFrontendHTML: () => createFrontendHTML,
24
26
  createFrontendStyled: () => createFrontendStyled,
25
27
  createFrontendViews: () => createFrontendViews,
26
28
  createTamagui: () => createTamagui,
@@ -28,6 +30,7 @@ __export(internal_runtime_exports, {
28
30
  ensureThemeVariable: () => ensureThemeVariable,
29
31
  fixStyles: () => fixStyles,
30
32
  getThemeCSSRules: () => getThemeCSSRules,
33
+ mergeFrontendCondition: () => import_styleFrontend.mergeFrontendCondition,
31
34
  normalizeValueWithProperty: () => normalizeValueWithProperty,
32
35
  parseFont: () => parseFont,
33
36
  plainValueToPayload: () => plainValueToPayload,
@@ -43,6 +46,7 @@ module.exports = __toCommonJS(internal_runtime_exports);
43
46
  var import_helpers = require("@tamagui/helpers");
44
47
  var import_createComponent = require("./createComponent.cjs");
45
48
  var import_createVariables = require("./createVariables.cjs");
49
+ var import_html = require("./dom/html.cjs");
46
50
  var import_expandStyles = require("./helpers/expandStyles.cjs");
47
51
  var import_styleToCSS = require("./helpers/styleToCSS.cjs");
48
52
  var import_getThemeCSSRules = require("./helpers/getThemeCSSRules.cjs");
@@ -67,6 +71,7 @@ const getThemeCSSRules = import_getThemeCSSRules.getThemeCSSRules;
67
71
  const normalizeValueWithProperty = import_normalizeValueWithProperty.normalizeValueWithProperty;
68
72
  const proxyThemeToParents = import_proxyThemeToParents.proxyThemeToParents;
69
73
  const ensureThemeVariable = import_themes.ensureThemeVariable;
74
+ const copyAuthoredThemeScheme = import_themes.copyAuthoredThemeScheme;
70
75
  const transformsToString = import_transformsToString.transformsToString;
71
76
  const styleToCSS = import_styleToCSS.styleToCSS;
72
77
  const useThemeWithState = import_useTheme.useThemeWithState;
@@ -101,3 +106,20 @@ function createFrontendViews(frontend) {
101
106
  })
102
107
  };
103
108
  }
109
+ function createFrontendHTML(frontend) {
110
+ const out = {};
111
+ for (const tag in import_html.html) {
112
+ const source = import_html.html[tag];
113
+ if (!source.staticConfig) {
114
+ out[tag] = source;
115
+ continue;
116
+ }
117
+ const rebuilt = (0, import_createComponent.createComponent)({
118
+ ...source.staticConfig,
119
+ styleFrontend: frontend,
120
+ displayName: tag
121
+ });
122
+ out[tag] = source.rebindDOMTag ? source.rebindDOMTag(rebuilt) : rebuilt;
123
+ }
124
+ return out;
125
+ }
@@ -23,6 +23,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
23
23
  var internal_runtime_exports = {};
24
24
  __export(internal_runtime_exports, {
25
25
  TamaguiProvider: () => TamaguiProvider,
26
+ copyAuthoredThemeScheme: () => copyAuthoredThemeScheme,
27
+ createFrontendHTML: () => createFrontendHTML,
26
28
  createFrontendStyled: () => createFrontendStyled,
27
29
  createFrontendViews: () => createFrontendViews,
28
30
  createTamagui: () => createTamagui,
@@ -30,6 +32,7 @@ __export(internal_runtime_exports, {
30
32
  ensureThemeVariable: () => ensureThemeVariable,
31
33
  fixStyles: () => fixStyles,
32
34
  getThemeCSSRules: () => getThemeCSSRules,
35
+ mergeFrontendCondition: () => import_styleFrontend.mergeFrontendCondition,
33
36
  normalizeValueWithProperty: () => normalizeValueWithProperty,
34
37
  parseFont: () => parseFont,
35
38
  plainValueToPayload: () => plainValueToPayload,
@@ -45,6 +48,7 @@ module.exports = __toCommonJS(internal_runtime_exports);
45
48
  var import_helpers = require("@tamagui/helpers");
46
49
  var import_createComponent = require("./createComponent.native.js");
47
50
  var import_createVariables = require("./createVariables.native.js");
51
+ var import_html = require("./dom/html.native.js");
48
52
  var import_expandStyles = require("./helpers/expandStyles.native.js");
49
53
  var import_styleToCSS = require("./helpers/styleToCSS.native.js");
50
54
  var import_getThemeCSSRules = require("./helpers/getThemeCSSRules.native.js");
@@ -69,6 +73,7 @@ var getThemeCSSRules = import_getThemeCSSRules.getThemeCSSRules;
69
73
  var normalizeValueWithProperty = import_normalizeValueWithProperty.normalizeValueWithProperty;
70
74
  var proxyThemeToParents = import_proxyThemeToParents.proxyThemeToParents;
71
75
  var ensureThemeVariable = import_themes.ensureThemeVariable;
76
+ var copyAuthoredThemeScheme = import_themes.copyAuthoredThemeScheme;
72
77
  var transformsToString = import_transformsToString.transformsToString;
73
78
  var styleToCSS = import_styleToCSS.styleToCSS;
74
79
  var useThemeWithState = import_useTheme.useThemeWithState;
@@ -103,3 +108,20 @@ function createFrontendViews(frontend) {
103
108
  })
104
109
  };
105
110
  }
111
+ function createFrontendHTML(frontend) {
112
+ var out = {};
113
+ for (var tag in import_html.html) {
114
+ var source = import_html.html[tag];
115
+ if (!source.staticConfig) {
116
+ out[tag] = source;
117
+ continue;
118
+ }
119
+ var rebuilt = (0, import_createComponent.createComponent)({
120
+ ...source.staticConfig,
121
+ styleFrontend: frontend,
122
+ displayName: tag
123
+ });
124
+ out[tag] = source.rebindDOMTag ? source.rebindDOMTag(rebuilt) : rebuilt;
125
+ }
126
+ return out;
127
+ }
@@ -23,6 +23,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
23
23
  var internal_runtime_exports = {};
24
24
  __export(internal_runtime_exports, {
25
25
  TamaguiProvider: () => TamaguiProvider,
26
+ copyAuthoredThemeScheme: () => copyAuthoredThemeScheme,
27
+ createFrontendHTML: () => createFrontendHTML,
26
28
  createFrontendStyled: () => createFrontendStyled,
27
29
  createFrontendViews: () => createFrontendViews,
28
30
  createTamagui: () => createTamagui,
@@ -30,6 +32,7 @@ __export(internal_runtime_exports, {
30
32
  ensureThemeVariable: () => ensureThemeVariable,
31
33
  fixStyles: () => fixStyles,
32
34
  getThemeCSSRules: () => getThemeCSSRules,
35
+ mergeFrontendCondition: () => import_styleFrontend.mergeFrontendCondition,
33
36
  normalizeValueWithProperty: () => normalizeValueWithProperty,
34
37
  parseFont: () => parseFont,
35
38
  plainValueToPayload: () => plainValueToPayload,
@@ -45,6 +48,7 @@ module.exports = __toCommonJS(internal_runtime_exports);
45
48
  var import_helpers = require("@tamagui/helpers");
46
49
  var import_createComponent = require("./createComponent.native.js");
47
50
  var import_createVariables = require("./createVariables.native.js");
51
+ var import_html = require("./dom/html.native.js");
48
52
  var import_expandStyles = require("./helpers/expandStyles.native.js");
49
53
  var import_styleToCSS = require("./helpers/styleToCSS.native.js");
50
54
  var import_getThemeCSSRules = require("./helpers/getThemeCSSRules.native.js");
@@ -69,6 +73,7 @@ var getThemeCSSRules = import_getThemeCSSRules.getThemeCSSRules;
69
73
  var normalizeValueWithProperty = import_normalizeValueWithProperty.normalizeValueWithProperty;
70
74
  var proxyThemeToParents = import_proxyThemeToParents.proxyThemeToParents;
71
75
  var ensureThemeVariable = import_themes.ensureThemeVariable;
76
+ var copyAuthoredThemeScheme = import_themes.copyAuthoredThemeScheme;
72
77
  var transformsToString = import_transformsToString.transformsToString;
73
78
  var styleToCSS = import_styleToCSS.styleToCSS;
74
79
  var useThemeWithState = import_useTheme.useThemeWithState;
@@ -103,5 +108,22 @@ function createFrontendViews(frontend) {
103
108
  })
104
109
  };
105
110
  }
111
+ function createFrontendHTML(frontend) {
112
+ var out = {};
113
+ for (var tag in import_html.html) {
114
+ var source = import_html.html[tag];
115
+ if (!source.staticConfig) {
116
+ out[tag] = source;
117
+ continue;
118
+ }
119
+ var rebuilt = (0, import_createComponent.createComponent)({
120
+ ...source.staticConfig,
121
+ styleFrontend: frontend,
122
+ displayName: tag
123
+ });
124
+ out[tag] = source.rebindDOMTag ? source.rebindDOMTag(rebuilt) : rebuilt;
125
+ }
126
+ return out;
127
+ }
106
128
 
107
129
  //# sourceMappingURL=internal-runtime.native.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal-runtime.native.js","names":[],"sources":["cjs/internal-runtime.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 internal_runtime_exports = {};\n__export(internal_runtime_exports, {\n TamaguiProvider: () => TamaguiProvider,\n createFrontendStyled: () => createFrontendStyled,\n createFrontendViews: () => createFrontendViews,\n createTamagui: () => createTamagui,\n createVariables: () => createVariables,\n ensureThemeVariable: () => ensureThemeVariable,\n fixStyles: () => fixStyles,\n getThemeCSSRules: () => getThemeCSSRules,\n normalizeValueWithProperty: () => normalizeValueWithProperty,\n parseFont: () => parseFont,\n plainValueToPayload: () => plainValueToPayload,\n proxyThemeToParents: () => proxyThemeToParents,\n registerFontVariables: () => registerFontVariables,\n regularStyleFrontend: () => import_styleFrontend.regularStyleFrontend,\n setupHooks: () => setupHooks,\n styleToCSS: () => styleToCSS,\n transformsToString: () => transformsToString,\n useThemeWithState: () => useThemeWithState\n});\nmodule.exports = __toCommonJS(internal_runtime_exports);\nvar import_helpers = require(\"@tamagui/helpers\");\nvar import_createComponent = require(\"./createComponent\");\nvar import_createVariables = require(\"./createVariables\");\nvar import_expandStyles = require(\"./helpers/expandStyles\");\nvar import_styleToCSS = require(\"./helpers/styleToCSS\");\nvar import_getThemeCSSRules = require(\"./helpers/getThemeCSSRules\");\nvar import_normalizeValueWithProperty = require(\"./helpers/normalizeValueWithProperty\");\nvar import_proxyThemeToParents = require(\"./helpers/proxyThemeToParents\");\nvar import_themes = require(\"./helpers/themes\");\nvar import_transformsToString = require(\"./helpers/transformsToString\");\nvar import_insertFont = require(\"./insertFont\");\nvar import_createTamagui = require(\"./createTamagui\");\nvar import_setupHooks = require(\"./setupHooks\");\nvar import_styled = require(\"./styled\");\nvar import_useTheme = require(\"./hooks/useTheme\");\nvar import_TamaguiProvider = require(\"./views/TamaguiProvider\");\nvar import_Text = require(\"./views/Text\");\nvar import_View = require(\"./views/View\");\nvar import_styleFrontend = require(\"./helpers/styleFrontend\");\nvar createVariables = import_createVariables.createVariables;\nvar parseFont = import_insertFont.parseFont;\nvar registerFontVariables = import_insertFont.registerFontVariables;\nvar fixStyles = import_expandStyles.fixStyles;\nvar getThemeCSSRules = import_getThemeCSSRules.getThemeCSSRules;\nvar normalizeValueWithProperty = import_normalizeValueWithProperty.normalizeValueWithProperty;\nvar proxyThemeToParents = import_proxyThemeToParents.proxyThemeToParents;\nvar ensureThemeVariable = import_themes.ensureThemeVariable;\nvar transformsToString = import_transformsToString.transformsToString;\nvar styleToCSS = import_styleToCSS.styleToCSS;\nvar useThemeWithState = import_useTheme.useThemeWithState;\nvar plainValueToPayload = function(value, property) {\n if (typeof value === \"string\") return value;\n if (typeof value !== \"number\" || !Number.isFinite(value)) return null;\n if (property === \"rotate\" || property === \"rotateX\" || property === \"rotateY\" || property === \"rotateZ\") {\n return value === 0 ? \"0\" : `${value}deg`;\n }\n if (property === \"x\" || property === \"y\" || property === \"perspective\" || property === \"translateX\" || property === \"translateY\") {\n return value === 0 ? \"0\" : `${value}px`;\n }\n return import_helpers.stylePropsUnitless[property] ? String(value) : `${value}px`;\n};\nvar createTamagui = import_createTamagui.createTamagui;\nvar setupHooks = import_setupHooks.setupHooks;\nvar TamaguiProvider = import_TamaguiProvider.TamaguiProvider;\nfunction createFrontendStyled(frontend) {\n return (0, import_styled.createFrontendStyled)(frontend);\n}\nfunction createFrontendViews(frontend) {\n return {\n View: (0, import_createComponent.createComponent)({\n ...import_View.viewStaticConfig,\n styleFrontend: frontend,\n displayName: \"View\"\n }),\n Text: (0, import_createComponent.createComponent)({\n ...import_Text.textStaticConfig,\n styleFrontend: frontend,\n displayName: \"Text\"\n })\n };\n}\n//# sourceMappingURL=internal-runtime.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,uBAAuB;CACvB,4BAA4B;CAC5B,2BAA2B;CAC3B,qBAAqB;CACrB,uBAAuB;CACvB,2BAA2B;CAC3B,iBAAiB;CACjB,wBAAwB;CACxB,kCAAkC;CAClC,iBAAiB;CACjB,2BAA2B;CAC3B,2BAA2B;CAC3B,6BAA6B;CAC7B,4BAA4B,qBAAqB;CACjD,kBAAkB;CAClB,kBAAkB;CAClB,0BAA0B;CAC1B,yBAAyB;AAC3B,CAAC;AACD,OAAO,UAAU,aAAa,wBAAwB;AACtD,IAAI,iB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A,IAAI,aAAa,OAAO,aAAa,OAAO,aAAa,iBAAiB,aAAa,gBAAgB,aAAa,cAAc;EAChI,OAAO,UAAU,IAAI,MAAM,GAAG,MAAM;CACtC;CACA,OAAO,eAAe,mBAAmB,YAAY,OAAO,KAAK,IAAI,GAAG,MAAM;AAChF;AACA,IAAI,gBAAgB,qBAAqB;AACzC,IAAI,aAAa,kBAAkB;AACnC,IAAI,kBAAkB,uBAAuB;AAC7C,SAAS,qBAAqB,UAAU;CACtC,QAAQ,GAAG,cAAc,qBAAoB,CAAE,QAAQ;AACzD;AACA,SAAS,oBAAoB,UAAU;CACrC,OAAO;EACL,OAAO,GAAG,uBAAuB,gBAAe,CAAE;GAChD,GAAG,YAAY;GACf,eAAe;GACf,aAAa;EACf,CAAC;EACD,OAAO,GAAG,uBAAuB,gBAAe,CAAE;GAChD,GAAG,YAAY;GACf,eAAe;GACf,aAAa;EACf,CAAC;CACH;AACF"}
1
+ {"version":3,"file":"internal-runtime.native.js","names":[],"sources":["cjs/internal-runtime.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 internal_runtime_exports = {};\n__export(internal_runtime_exports, {\n TamaguiProvider: () => TamaguiProvider,\n copyAuthoredThemeScheme: () => copyAuthoredThemeScheme,\n createFrontendHTML: () => createFrontendHTML,\n createFrontendStyled: () => createFrontendStyled,\n createFrontendViews: () => createFrontendViews,\n createTamagui: () => createTamagui,\n createVariables: () => createVariables,\n ensureThemeVariable: () => ensureThemeVariable,\n fixStyles: () => fixStyles,\n getThemeCSSRules: () => getThemeCSSRules,\n mergeFrontendCondition: () => import_styleFrontend.mergeFrontendCondition,\n normalizeValueWithProperty: () => normalizeValueWithProperty,\n parseFont: () => parseFont,\n plainValueToPayload: () => plainValueToPayload,\n proxyThemeToParents: () => proxyThemeToParents,\n registerFontVariables: () => registerFontVariables,\n regularStyleFrontend: () => import_styleFrontend.regularStyleFrontend,\n setupHooks: () => setupHooks,\n styleToCSS: () => styleToCSS,\n transformsToString: () => transformsToString,\n useThemeWithState: () => useThemeWithState\n});\nmodule.exports = __toCommonJS(internal_runtime_exports);\nvar import_helpers = require(\"@tamagui/helpers\");\nvar import_createComponent = require(\"./createComponent\");\nvar import_createVariables = require(\"./createVariables\");\nvar import_html = require(\"./dom/html\");\nvar import_expandStyles = require(\"./helpers/expandStyles\");\nvar import_styleToCSS = require(\"./helpers/styleToCSS\");\nvar import_getThemeCSSRules = require(\"./helpers/getThemeCSSRules\");\nvar import_normalizeValueWithProperty = require(\"./helpers/normalizeValueWithProperty\");\nvar import_proxyThemeToParents = require(\"./helpers/proxyThemeToParents\");\nvar import_themes = require(\"./helpers/themes\");\nvar import_transformsToString = require(\"./helpers/transformsToString\");\nvar import_insertFont = require(\"./insertFont\");\nvar import_createTamagui = require(\"./createTamagui\");\nvar import_setupHooks = require(\"./setupHooks\");\nvar import_styled = require(\"./styled\");\nvar import_useTheme = require(\"./hooks/useTheme\");\nvar import_TamaguiProvider = require(\"./views/TamaguiProvider\");\nvar import_Text = require(\"./views/Text\");\nvar import_View = require(\"./views/View\");\nvar import_styleFrontend = require(\"./helpers/styleFrontend\");\nvar createVariables = import_createVariables.createVariables;\nvar parseFont = import_insertFont.parseFont;\nvar registerFontVariables = import_insertFont.registerFontVariables;\nvar fixStyles = import_expandStyles.fixStyles;\nvar getThemeCSSRules = import_getThemeCSSRules.getThemeCSSRules;\nvar normalizeValueWithProperty = import_normalizeValueWithProperty.normalizeValueWithProperty;\nvar proxyThemeToParents = import_proxyThemeToParents.proxyThemeToParents;\nvar ensureThemeVariable = import_themes.ensureThemeVariable;\nvar copyAuthoredThemeScheme = import_themes.copyAuthoredThemeScheme;\nvar transformsToString = import_transformsToString.transformsToString;\nvar styleToCSS = import_styleToCSS.styleToCSS;\nvar useThemeWithState = import_useTheme.useThemeWithState;\nvar plainValueToPayload = function(value, property) {\n if (typeof value === \"string\") return value;\n if (typeof value !== \"number\" || !Number.isFinite(value)) return null;\n if (property === \"rotate\" || property === \"rotateX\" || property === \"rotateY\" || property === \"rotateZ\") {\n return value === 0 ? \"0\" : `${value}deg`;\n }\n if (property === \"x\" || property === \"y\" || property === \"perspective\" || property === \"translateX\" || property === \"translateY\") {\n return value === 0 ? \"0\" : `${value}px`;\n }\n return import_helpers.stylePropsUnitless[property] ? String(value) : `${value}px`;\n};\nvar createTamagui = import_createTamagui.createTamagui;\nvar setupHooks = import_setupHooks.setupHooks;\nvar TamaguiProvider = import_TamaguiProvider.TamaguiProvider;\nfunction createFrontendStyled(frontend) {\n return (0, import_styled.createFrontendStyled)(frontend);\n}\nfunction createFrontendViews(frontend) {\n return {\n View: (0, import_createComponent.createComponent)({\n ...import_View.viewStaticConfig,\n styleFrontend: frontend,\n displayName: \"View\"\n }),\n Text: (0, import_createComponent.createComponent)({\n ...import_Text.textStaticConfig,\n styleFrontend: frontend,\n displayName: \"Text\"\n })\n };\n}\nfunction createFrontendHTML(frontend) {\n var out = {};\n for (var tag in import_html.html) {\n var source = import_html.html[tag];\n if (!source.staticConfig) {\n out[tag] = source;\n continue;\n }\n var rebuilt = (0, import_createComponent.createComponent)({\n ...source.staticConfig,\n styleFrontend: frontend,\n displayName: tag\n });\n out[tag] = source.rebindDOMTag ? source.rebindDOMTag(rebuilt) : rebuilt;\n }\n return out;\n}\n//# sourceMappingURL=internal-runtime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B,aAAa,cAAc;EAChI,OAAO,UAAU,IAAI,MAAM,GAAG,MAAM;CACtC;CACA,OAAO,eAAe,mBAAmB,YAAY,OAAO,KAAK,IAAI,GAAG,MAAM;AAChF;AACA,IAAI,gBAAgB,qBAAqB;AACzC,IAAI,aAAa,kBAAkB;AACnC,IAAI,kBAAkB,uBAAuB;AAC7C,SAAS,qBAAqB,UAAU;CACtC,QAAQ,GAAG,cAAc,qBAAoB,CAAE,QAAQ;AACzD;AACA,SAAS,oBAAoB,UAAU;CACrC,OAAO;EACL,OAAO,GAAG,uBAAuB,gBAAe,CAAE;GAChD,GAAG,YAAY;GACf,eAAe;GACf,aAAa;EACf,CAAC;EACD,OAAO,GAAG,uBAAuB,gBAAe,CAAE;GAChD,GAAG,YAAY;GACf,eAAe;GACf,aAAa;EACf,CAAC;CACH;AACF;AACA,SAAS,mBAAmB,UAAU;CACpC,IAAI,MAAM,CAAC;CACX,KAAK,IAAI,OAAO,YAAY,MAAM;EAChC,IAAI,SAAS,YAAY,KAAK;EAC9B,IAAI,CAAC,OAAO,cAAc;GACxB,IAAI,OAAO;GACX;EACF;EACA,IAAI,WAAW,GAAG,uBAAuB,gBAAe,CAAE;GACxD,GAAG,OAAO;GACV,eAAe;GACf,aAAa;EACf,CAAC;EACD,IAAI,OAAO,OAAO,eAAe,OAAO,aAAa,OAAO,IAAI;CAClE;CACA,OAAO;AACT"}
@@ -44,13 +44,6 @@ var import_createTamagui = require("./createTamagui.native.js");
44
44
  var import_getSplitStyles = require("./helpers/getSplitStyles.native.js");
45
45
  var import_styleStaticConfig = require("./helpers/styleStaticConfig.native.js");
46
46
  var import_mergeProps = require("./helpers/mergeProps.native.js");
47
- function _instanceof(left, right) {
48
- if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
49
- return !!right[Symbol.hasInstance](left);
50
- } else {
51
- return left instanceof right;
52
- }
53
- }
54
47
  var DEFAULT_COMPONENT_STATE = {
55
48
  hover: false,
56
49
  focus: false,
@@ -157,7 +150,7 @@ function resolveStaticElement(element) {
157
150
  }
158
151
  if (target === "native") {
159
152
  var _split_programLifecycleStyleKeys_enter, _split_programLifecycleStyleKeys, _split_programLifecycleStyleKeys_exit, _split_programLifecycleStyleKeys1;
160
- var hasMedia = split.hasMedia === true || _instanceof(split.hasMedia, Set) && split.hasMedia.size > 0;
153
+ var hasMedia = split.hasMedia === true || split.hasMedia instanceof Set && split.hasMedia.size > 0;
161
154
  var hasPseudo = Boolean(split.pseudoGroups && split.pseudoGroups.size > 0) || Boolean(split.mediaGroups && split.mediaGroups.size > 0) || Boolean(split.programStates && split.programStates.size > 0);
162
155
  if (hasMedia || hasPseudo) {
163
156
  return {
@@ -211,7 +204,7 @@ function resolveStaticElement(element) {
211
204
  css: css.length > 0 ? css : void 0,
212
205
  style: split.style || ((_split_viewProps1 = split.viewProps) === null || _split_viewProps1 === void 0 ? void 0 : _split_viewProps1.style) || null,
213
206
  viewProps: split.viewProps,
214
- hasMedia: _instanceof(split.hasMedia, Set) ? Array.from(split.hasMedia) : split.hasMedia || void 0,
207
+ hasMedia: split.hasMedia instanceof Set ? Array.from(split.hasMedia) : split.hasMedia || void 0,
215
208
  pseudoGroups: split.pseudoGroups && split.pseudoGroups.size > 0 ? Array.from(split.pseudoGroups) : void 0,
216
209
  mediaGroups: split.mediaGroups && split.mediaGroups.size > 0 ? Array.from(split.mediaGroups) : void 0,
217
210
  programStates: split.programStates && split.programStates.size > 0 ? Array.from(split.programStates) : void 0,
@@ -44,13 +44,6 @@ var import_createTamagui = require("./createTamagui.native.js");
44
44
  var import_getSplitStyles = require("./helpers/getSplitStyles.native.js");
45
45
  var import_styleStaticConfig = require("./helpers/styleStaticConfig.native.js");
46
46
  var import_mergeProps = require("./helpers/mergeProps.native.js");
47
- function _instanceof(left, right) {
48
- if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
49
- return !!right[Symbol.hasInstance](left);
50
- } else {
51
- return left instanceof right;
52
- }
53
- }
54
47
  var DEFAULT_COMPONENT_STATE = {
55
48
  hover: false,
56
49
  focus: false,
@@ -157,7 +150,7 @@ function resolveStaticElement(element) {
157
150
  }
158
151
  if (target === "native") {
159
152
  var _split_programLifecycleStyleKeys_enter, _split_programLifecycleStyleKeys, _split_programLifecycleStyleKeys_exit, _split_programLifecycleStyleKeys1;
160
- var hasMedia = split.hasMedia === true || _instanceof(split.hasMedia, Set) && split.hasMedia.size > 0;
153
+ var hasMedia = split.hasMedia === true || split.hasMedia instanceof Set && split.hasMedia.size > 0;
161
154
  var hasPseudo = Boolean(split.pseudoGroups && split.pseudoGroups.size > 0) || Boolean(split.mediaGroups && split.mediaGroups.size > 0) || Boolean(split.programStates && split.programStates.size > 0);
162
155
  if (hasMedia || hasPseudo) {
163
156
  return {
@@ -211,7 +204,7 @@ function resolveStaticElement(element) {
211
204
  css: css.length > 0 ? css : void 0,
212
205
  style: split.style || ((_split_viewProps1 = split.viewProps) === null || _split_viewProps1 === void 0 ? void 0 : _split_viewProps1.style) || null,
213
206
  viewProps: split.viewProps,
214
- hasMedia: _instanceof(split.hasMedia, Set) ? Array.from(split.hasMedia) : split.hasMedia || void 0,
207
+ hasMedia: split.hasMedia instanceof Set ? Array.from(split.hasMedia) : split.hasMedia || void 0,
215
208
  pseudoGroups: split.pseudoGroups && split.pseudoGroups.size > 0 ? Array.from(split.pseudoGroups) : void 0,
216
209
  mediaGroups: split.mediaGroups && split.mediaGroups.size > 0 ? Array.from(split.mediaGroups) : void 0,
217
210
  programStates: split.programStates && split.programStates.size > 0 ? Array.from(split.programStates) : void 0,
@@ -1 +1 @@
1
- {"version":3,"file":"static-resolve.native.js","names":[],"sources":["cjs/static-resolve.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 static_resolve_exports = {};\n__export(static_resolve_exports, {\n createTamagui: () => import_createTamagui.createTamagui,\n getConfig: () => import_config.getConfig,\n getConfigMaybe: () => import_config.getConfigMaybe,\n getSplitStyles: () => import_getSplitStyles.getSplitStyles,\n getThemes: () => import_config.getThemes,\n getToken: () => import_config.getToken,\n getTokenValue: () => import_config.getTokenValue,\n getTokens: () => import_config.getTokens,\n installTamaguiConfig: () => import_createTamagui.installTamaguiConfig,\n resolveStatic: () => resolveStatic,\n resolveStaticBatch: () => resolveStaticBatch,\n resolveStaticElement: () => resolveStaticElement,\n setConfig: () => import_config.setConfig,\n updateConfig: () => import_config.updateConfig\n});\nmodule.exports = __toCommonJS(static_resolve_exports);\nvar import_helpers = require(\"@tamagui/helpers\");\nvar import_config = require(\"./config\");\nvar import_createTamagui = require(\"./createTamagui\");\nvar import_getSplitStyles = require(\"./helpers/getSplitStyles\");\nvar import_styleStaticConfig = require(\"./helpers/styleStaticConfig\");\nvar import_mergeProps = require(\"./helpers/mergeProps\");\nfunction _instanceof(left, right) {\n if (right != null && typeof Symbol !== \"undefined\" && right[Symbol.hasInstance]) {\n return !!right[Symbol.hasInstance](left);\n } else {\n return left instanceof right;\n }\n}\nvar DEFAULT_COMPONENT_STATE = {\n hover: false,\n focus: false,\n focusVisible: false,\n focusWithin: false,\n press: false,\n pressIn: false,\n disabled: false,\n unmounted: false\n};\nvar getGlobalProcessEnv = function() {\n try {\n return typeof process !== \"undefined\" && process ? process.env : void 0;\n } catch (e) {\n return void 0;\n }\n};\nfunction resolveStaticElement(element) {\n var target = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : \"web\", defaultThemeName = arguments.length > 2 ? arguments[2] : void 0;\n var _element_staticConfig, _element_staticConfig1, _element_options, _element_options1, _element_options2, _element_options3, _element_staticConfig_Component, _element_staticConfig2, _split_viewProps, _split_viewProps1;\n var conf = (0, import_config.getConfigMaybe)();\n if (!conf) {\n return {\n id: element.id,\n ok: false,\n bailout: {\n reason: \"config-missing\",\n message: \"No Tamagui config installed. Call createTamagui or installTamaguiConfig first.\"\n }\n };\n }\n var themes = conf.themes || {};\n var themeName = element.themeName || defaultThemeName || (themes[\"light\"] ? \"light\" : Object.keys(themes)[0]) || \"light\";\n var theme = themes[themeName] || themes[\"light\"] || themes[\"dark\"] || Object.values(themes)[0] || {};\n var baseStaticConfig = {\n validStyles: ((_element_staticConfig = element.staticConfig) === null || _element_staticConfig === void 0 ? void 0 : _element_staticConfig.isInput) ? import_helpers.stylePropsInput : ((_element_staticConfig1 = element.staticConfig) === null || _element_staticConfig1 === void 0 ? void 0 : _element_staticConfig1.isText) ? import_helpers.stylePropsText : import_helpers.validStyles,\n defaultProps: {},\n acceptsClassName: target !== \"native\",\n ...target === \"native\" && {\n isReactNative: true\n },\n ...element.staticConfig\n };\n if (target !== \"native\") {\n delete baseStaticConfig.isReactNative;\n }\n var styleStaticConfig = (0, import_styleStaticConfig.getStyleStaticConfig)(baseStaticConfig, conf);\n var elementProps = element.props || {};\n var { defaultProps } = styleStaticConfig;\n if (defaultProps) {\n var [merged] = (0, import_mergeProps.mergeComponentProps)(defaultProps, void 0, elementProps);\n elementProps = merged;\n }\n var componentState = {\n ...DEFAULT_COMPONENT_STATE,\n ...element.componentState\n };\n var _element_options_resolveValues, _element_options_noClass, _element_options_isAnimated, _element_options_displayName, _ref, _ref1;\n var styleProps = {\n isStatic: true,\n resolveValues: (_element_options_resolveValues = (_element_options = element.options) === null || _element_options === void 0 ? void 0 : _element_options.resolveValues) !== null && _element_options_resolveValues !== void 0 ? _element_options_resolveValues : target === \"native\" ? \"except-theme\" : \"variable\",\n noClass: (_element_options_noClass = (_element_options1 = element.options) === null || _element_options1 === void 0 ? void 0 : _element_options1.noClass) !== null && _element_options_noClass !== void 0 ? _element_options_noClass : target === \"native\",\n isAnimated: (_element_options_isAnimated = (_element_options2 = element.options) === null || _element_options2 === void 0 ? void 0 : _element_options2.isAnimated) !== null && _element_options_isAnimated !== void 0 ? _element_options_isAnimated : false,\n displayName: (_ref1 = (_ref = (_element_options_displayName = (_element_options3 = element.options) === null || _element_options3 === void 0 ? void 0 : _element_options3.displayName) !== null && _element_options_displayName !== void 0 ? _element_options_displayName : element.componentName) !== null && _ref !== void 0 ? _ref : (_element_staticConfig2 = element.staticConfig) === null || _element_staticConfig2 === void 0 ? void 0 : (_element_staticConfig_Component = _element_staticConfig2.Component) === null || _element_staticConfig_Component === void 0 ? void 0 : _element_staticConfig_Component.displayName) !== null && _ref1 !== void 0 ? _ref1 : \"TamaguiComponent\"\n };\n var env = getGlobalProcessEnv();\n var prevStatic = env ? env[\"IS_STATIC\"] : void 0;\n var prevTarget = env ? env[\"TAMAGUI_TARGET\"] : void 0;\n if (env) {\n if (target === \"native\") {\n env[\"IS_STATIC\"] = \"is_static\";\n } else {\n delete env[\"IS_STATIC\"];\n }\n env[\"TAMAGUI_TARGET\"] = target;\n }\n var split = null;\n try {\n split = (0, import_getSplitStyles.getSplitStyles)(elementProps, baseStaticConfig, theme, themeName, componentState, styleProps, void 0, void 0, void 0, void 0, void 0, void 0, void 0, styleStaticConfig);\n } catch (err) {\n return {\n id: element.id,\n ok: false,\n bailout: {\n reason: \"local/style-resolution-error\",\n message: (err === null || err === void 0 ? void 0 : err.message) || String(err)\n }\n };\n } finally {\n if (env) {\n if (prevStatic === void 0) delete env[\"IS_STATIC\"];\n else env[\"IS_STATIC\"] = prevStatic;\n if (prevTarget === void 0) delete env[\"TAMAGUI_TARGET\"];\n else env[\"TAMAGUI_TARGET\"] = prevTarget;\n }\n }\n if (!split) {\n return {\n id: element.id,\n ok: false,\n bailout: {\n reason: \"local/style-resolution-failed\",\n message: \"getSplitStyles returned no static result\"\n }\n };\n }\n if (target === \"native\") {\n var _split_programLifecycleStyleKeys_enter, _split_programLifecycleStyleKeys, _split_programLifecycleStyleKeys_exit, _split_programLifecycleStyleKeys1;\n var hasMedia = split.hasMedia === true || _instanceof(split.hasMedia, Set) && split.hasMedia.size > 0;\n var hasPseudo = Boolean(split.pseudoGroups && split.pseudoGroups.size > 0) || Boolean(split.mediaGroups && split.mediaGroups.size > 0) || Boolean(split.programStates && split.programStates.size > 0);\n if (hasMedia || hasPseudo) {\n return {\n id: element.id,\n ok: false,\n bailout: {\n reason: \"local/unsupported-target\",\n message: \"Native target does not support static media queries or pseudo styles\"\n }\n };\n }\n if (((_split_programLifecycleStyleKeys = split.programLifecycleStyleKeys) === null || _split_programLifecycleStyleKeys === void 0 ? void 0 : (_split_programLifecycleStyleKeys_enter = _split_programLifecycleStyleKeys.enter) === null || _split_programLifecycleStyleKeys_enter === void 0 ? void 0 : _split_programLifecycleStyleKeys_enter.size) || ((_split_programLifecycleStyleKeys1 = split.programLifecycleStyleKeys) === null || _split_programLifecycleStyleKeys1 === void 0 ? void 0 : (_split_programLifecycleStyleKeys_exit = _split_programLifecycleStyleKeys1.exit) === null || _split_programLifecycleStyleKeys_exit === void 0 ? void 0 : _split_programLifecycleStyleKeys_exit.size)) {\n return {\n id: element.id,\n ok: false,\n bailout: {\n reason: \"local/unsupported-target\",\n message: \"Lifecycle value programs remain on the runtime path\"\n }\n };\n }\n }\n var rules = [];\n var css = [];\n if (split.rulesToInsert) {\n for (var key in split.rulesToInsert) {\n var ruleObj = split.rulesToInsert[key];\n if (ruleObj) {\n var ruleList = ruleObj[import_helpers.StyleObjectRules] || [];\n rules.push({\n identifier: ruleObj[import_helpers.StyleObjectIdentifier] || key,\n property: ruleObj[import_helpers.StyleObjectProperty],\n rules: ruleList\n });\n for (var i = 0; i < ruleList.length; i++) {\n css.push(ruleList[i]);\n }\n }\n }\n }\n var classNames = split.classNames || {};\n var classNamesList = Object.values(classNames).filter(Boolean);\n var fullClassName = ((_split_viewProps = split.viewProps) === null || _split_viewProps === void 0 ? void 0 : _split_viewProps.className) || void 0;\n var className = fullClassName || (classNamesList.length > 0 ? classNamesList.join(\" \") : void 0);\n return {\n id: element.id,\n ok: true,\n className,\n classNames: Object.keys(classNames).length > 0 ? classNames : void 0,\n rules: rules.length > 0 ? rules : void 0,\n css: css.length > 0 ? css : void 0,\n style: split.style || ((_split_viewProps1 = split.viewProps) === null || _split_viewProps1 === void 0 ? void 0 : _split_viewProps1.style) || null,\n viewProps: split.viewProps,\n hasMedia: _instanceof(split.hasMedia, Set) ? Array.from(split.hasMedia) : split.hasMedia || void 0,\n pseudoGroups: split.pseudoGroups && split.pseudoGroups.size > 0 ? Array.from(split.pseudoGroups) : void 0,\n mediaGroups: split.mediaGroups && split.mediaGroups.size > 0 ? Array.from(split.mediaGroups) : void 0,\n programStates: split.programStates && split.programStates.size > 0 ? Array.from(split.programStates) : void 0,\n dynamicThemeAccess: split.dynamicThemeAccess,\n fontFamily: split.fontFamily,\n programLifecycleStyleKeys: split.programLifecycleStyleKeys ? {\n enter: split.programLifecycleStyleKeys.enter ? Array.from(split.programLifecycleStyleKeys.enter) : void 0,\n exit: split.programLifecycleStyleKeys.exit ? Array.from(split.programLifecycleStyleKeys.exit) : void 0\n } : void 0\n };\n}\nfunction resolveStaticBatch(batch) {\n var target = batch.target || \"web\";\n var defaultThemeName = batch.defaultThemeName;\n var elements = batch.elements || [];\n var results = new Array(elements.length);\n for (var i = 0; i < elements.length; i++) {\n results[i] = resolveStaticElement(elements[i], target, defaultThemeName);\n }\n return {\n results\n };\n}\nfunction resolveStatic(batch) {\n if (typeof batch === \"string\") {\n var parsed = JSON.parse(batch);\n var result = resolveStaticBatch(parsed);\n return JSON.stringify(result);\n }\n return resolveStaticBatch(batch);\n}\n//# sourceMappingURL=static-resolve.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OA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K,qBAAqB,SAAS,IAAI,QAAQ,gBAAgB;CACzE;CACA,OAAO,EACL,QACF;AACF;AACA,SAAS,cAAc,OAAO;CAC5B,IAAI,OAAO,UAAU,UAAU;EAC7B,IAAI,SAAS,KAAK,MAAM,KAAK;EAC7B,IAAI,SAAS,mBAAmB,MAAM;EACtC,OAAO,KAAK,UAAU,MAAM;CAC9B;CACA,OAAO,mBAAmB,KAAK;AACjC"}
1
+ {"version":3,"file":"static-resolve.native.js","names":[],"sources":["cjs/static-resolve.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 static_resolve_exports = {};\n__export(static_resolve_exports, {\n createTamagui: () => import_createTamagui.createTamagui,\n getConfig: () => import_config.getConfig,\n getConfigMaybe: () => import_config.getConfigMaybe,\n getSplitStyles: () => import_getSplitStyles.getSplitStyles,\n getThemes: () => import_config.getThemes,\n getToken: () => import_config.getToken,\n getTokenValue: () => import_config.getTokenValue,\n getTokens: () => import_config.getTokens,\n installTamaguiConfig: () => import_createTamagui.installTamaguiConfig,\n resolveStatic: () => resolveStatic,\n resolveStaticBatch: () => resolveStaticBatch,\n resolveStaticElement: () => resolveStaticElement,\n setConfig: () => import_config.setConfig,\n updateConfig: () => import_config.updateConfig\n});\nmodule.exports = __toCommonJS(static_resolve_exports);\nvar import_helpers = require(\"@tamagui/helpers\");\nvar import_config = require(\"./config\");\nvar import_createTamagui = require(\"./createTamagui\");\nvar import_getSplitStyles = require(\"./helpers/getSplitStyles\");\nvar import_styleStaticConfig = require(\"./helpers/styleStaticConfig\");\nvar import_mergeProps = require(\"./helpers/mergeProps\");\nvar DEFAULT_COMPONENT_STATE = {\n hover: false,\n focus: false,\n focusVisible: false,\n focusWithin: false,\n press: false,\n pressIn: false,\n disabled: false,\n unmounted: false\n};\nvar getGlobalProcessEnv = function() {\n try {\n return typeof process !== \"undefined\" && process ? process.env : void 0;\n } catch (e) {\n return void 0;\n }\n};\nfunction resolveStaticElement(element) {\n var target = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : \"web\", defaultThemeName = arguments.length > 2 ? arguments[2] : void 0;\n var _element_staticConfig, _element_staticConfig1, _element_options, _element_options1, _element_options2, _element_options3, _element_staticConfig_Component, _element_staticConfig2, _split_viewProps, _split_viewProps1;\n var conf = (0, import_config.getConfigMaybe)();\n if (!conf) {\n return {\n id: element.id,\n ok: false,\n bailout: {\n reason: \"config-missing\",\n message: \"No Tamagui config installed. Call createTamagui or installTamaguiConfig first.\"\n }\n };\n }\n var themes = conf.themes || {};\n var themeName = element.themeName || defaultThemeName || (themes[\"light\"] ? \"light\" : Object.keys(themes)[0]) || \"light\";\n var theme = themes[themeName] || themes[\"light\"] || themes[\"dark\"] || Object.values(themes)[0] || {};\n var baseStaticConfig = {\n validStyles: ((_element_staticConfig = element.staticConfig) === null || _element_staticConfig === void 0 ? void 0 : _element_staticConfig.isInput) ? import_helpers.stylePropsInput : ((_element_staticConfig1 = element.staticConfig) === null || _element_staticConfig1 === void 0 ? void 0 : _element_staticConfig1.isText) ? import_helpers.stylePropsText : import_helpers.validStyles,\n defaultProps: {},\n acceptsClassName: target !== \"native\",\n ...target === \"native\" && {\n isReactNative: true\n },\n ...element.staticConfig\n };\n if (target !== \"native\") {\n delete baseStaticConfig.isReactNative;\n }\n var styleStaticConfig = (0, import_styleStaticConfig.getStyleStaticConfig)(baseStaticConfig, conf);\n var elementProps = element.props || {};\n var { defaultProps } = styleStaticConfig;\n if (defaultProps) {\n var [merged] = (0, import_mergeProps.mergeComponentProps)(defaultProps, void 0, elementProps);\n elementProps = merged;\n }\n var componentState = {\n ...DEFAULT_COMPONENT_STATE,\n ...element.componentState\n };\n var _element_options_resolveValues, _element_options_noClass, _element_options_isAnimated, _element_options_displayName, _ref, _ref1;\n var styleProps = {\n isStatic: true,\n resolveValues: (_element_options_resolveValues = (_element_options = element.options) === null || _element_options === void 0 ? void 0 : _element_options.resolveValues) !== null && _element_options_resolveValues !== void 0 ? _element_options_resolveValues : target === \"native\" ? \"except-theme\" : \"variable\",\n noClass: (_element_options_noClass = (_element_options1 = element.options) === null || _element_options1 === void 0 ? void 0 : _element_options1.noClass) !== null && _element_options_noClass !== void 0 ? _element_options_noClass : target === \"native\",\n isAnimated: (_element_options_isAnimated = (_element_options2 = element.options) === null || _element_options2 === void 0 ? void 0 : _element_options2.isAnimated) !== null && _element_options_isAnimated !== void 0 ? _element_options_isAnimated : false,\n displayName: (_ref1 = (_ref = (_element_options_displayName = (_element_options3 = element.options) === null || _element_options3 === void 0 ? void 0 : _element_options3.displayName) !== null && _element_options_displayName !== void 0 ? _element_options_displayName : element.componentName) !== null && _ref !== void 0 ? _ref : (_element_staticConfig2 = element.staticConfig) === null || _element_staticConfig2 === void 0 ? void 0 : (_element_staticConfig_Component = _element_staticConfig2.Component) === null || _element_staticConfig_Component === void 0 ? void 0 : _element_staticConfig_Component.displayName) !== null && _ref1 !== void 0 ? _ref1 : \"TamaguiComponent\"\n };\n var env = getGlobalProcessEnv();\n var prevStatic = env ? env[\"IS_STATIC\"] : void 0;\n var prevTarget = env ? env[\"TAMAGUI_TARGET\"] : void 0;\n if (env) {\n if (target === \"native\") {\n env[\"IS_STATIC\"] = \"is_static\";\n } else {\n delete env[\"IS_STATIC\"];\n }\n env[\"TAMAGUI_TARGET\"] = target;\n }\n var split = null;\n try {\n split = (0, import_getSplitStyles.getSplitStyles)(elementProps, baseStaticConfig, theme, themeName, componentState, styleProps, void 0, void 0, void 0, void 0, void 0, void 0, void 0, styleStaticConfig);\n } catch (err) {\n return {\n id: element.id,\n ok: false,\n bailout: {\n reason: \"local/style-resolution-error\",\n message: (err === null || err === void 0 ? void 0 : err.message) || String(err)\n }\n };\n } finally {\n if (env) {\n if (prevStatic === void 0) delete env[\"IS_STATIC\"];\n else env[\"IS_STATIC\"] = prevStatic;\n if (prevTarget === void 0) delete env[\"TAMAGUI_TARGET\"];\n else env[\"TAMAGUI_TARGET\"] = prevTarget;\n }\n }\n if (!split) {\n return {\n id: element.id,\n ok: false,\n bailout: {\n reason: \"local/style-resolution-failed\",\n message: \"getSplitStyles returned no static result\"\n }\n };\n }\n if (target === \"native\") {\n var _split_programLifecycleStyleKeys_enter, _split_programLifecycleStyleKeys, _split_programLifecycleStyleKeys_exit, _split_programLifecycleStyleKeys1;\n var hasMedia = split.hasMedia === true || split.hasMedia instanceof Set && split.hasMedia.size > 0;\n var hasPseudo = Boolean(split.pseudoGroups && split.pseudoGroups.size > 0) || Boolean(split.mediaGroups && split.mediaGroups.size > 0) || Boolean(split.programStates && split.programStates.size > 0);\n if (hasMedia || hasPseudo) {\n return {\n id: element.id,\n ok: false,\n bailout: {\n reason: \"local/unsupported-target\",\n message: \"Native target does not support static media queries or pseudo styles\"\n }\n };\n }\n if (((_split_programLifecycleStyleKeys = split.programLifecycleStyleKeys) === null || _split_programLifecycleStyleKeys === void 0 ? void 0 : (_split_programLifecycleStyleKeys_enter = _split_programLifecycleStyleKeys.enter) === null || _split_programLifecycleStyleKeys_enter === void 0 ? void 0 : _split_programLifecycleStyleKeys_enter.size) || ((_split_programLifecycleStyleKeys1 = split.programLifecycleStyleKeys) === null || _split_programLifecycleStyleKeys1 === void 0 ? void 0 : (_split_programLifecycleStyleKeys_exit = _split_programLifecycleStyleKeys1.exit) === null || _split_programLifecycleStyleKeys_exit === void 0 ? void 0 : _split_programLifecycleStyleKeys_exit.size)) {\n return {\n id: element.id,\n ok: false,\n bailout: {\n reason: \"local/unsupported-target\",\n message: \"Lifecycle value programs remain on the runtime path\"\n }\n };\n }\n }\n var rules = [];\n var css = [];\n if (split.rulesToInsert) {\n for (var key in split.rulesToInsert) {\n var ruleObj = split.rulesToInsert[key];\n if (ruleObj) {\n var ruleList = ruleObj[import_helpers.StyleObjectRules] || [];\n rules.push({\n identifier: ruleObj[import_helpers.StyleObjectIdentifier] || key,\n property: ruleObj[import_helpers.StyleObjectProperty],\n rules: ruleList\n });\n for (var i = 0; i < ruleList.length; i++) {\n css.push(ruleList[i]);\n }\n }\n }\n }\n var classNames = split.classNames || {};\n var classNamesList = Object.values(classNames).filter(Boolean);\n var fullClassName = ((_split_viewProps = split.viewProps) === null || _split_viewProps === void 0 ? void 0 : _split_viewProps.className) || void 0;\n var className = fullClassName || (classNamesList.length > 0 ? classNamesList.join(\" \") : void 0);\n return {\n id: element.id,\n ok: true,\n className,\n classNames: Object.keys(classNames).length > 0 ? classNames : void 0,\n rules: rules.length > 0 ? rules : void 0,\n css: css.length > 0 ? css : void 0,\n style: split.style || ((_split_viewProps1 = split.viewProps) === null || _split_viewProps1 === void 0 ? void 0 : _split_viewProps1.style) || null,\n viewProps: split.viewProps,\n hasMedia: split.hasMedia instanceof Set ? Array.from(split.hasMedia) : split.hasMedia || void 0,\n pseudoGroups: split.pseudoGroups && split.pseudoGroups.size > 0 ? Array.from(split.pseudoGroups) : void 0,\n mediaGroups: split.mediaGroups && split.mediaGroups.size > 0 ? Array.from(split.mediaGroups) : void 0,\n programStates: split.programStates && split.programStates.size > 0 ? Array.from(split.programStates) : void 0,\n dynamicThemeAccess: split.dynamicThemeAccess,\n fontFamily: split.fontFamily,\n programLifecycleStyleKeys: split.programLifecycleStyleKeys ? {\n enter: split.programLifecycleStyleKeys.enter ? Array.from(split.programLifecycleStyleKeys.enter) : void 0,\n exit: split.programLifecycleStyleKeys.exit ? Array.from(split.programLifecycleStyleKeys.exit) : void 0\n } : void 0\n };\n}\nfunction resolveStaticBatch(batch) {\n var target = batch.target || \"web\";\n var defaultThemeName = batch.defaultThemeName;\n var elements = batch.elements || [];\n var results = new Array(elements.length);\n for (var i = 0; i < elements.length; i++) {\n results[i] = resolveStaticElement(elements[i], target, defaultThemeName);\n }\n return {\n results\n };\n}\nfunction resolveStatic(batch) {\n if (typeof batch === \"string\") {\n var parsed = JSON.parse(batch);\n var result = resolveStaticBatch(parsed);\n return JSON.stringify(result);\n }\n return resolveStaticBatch(batch);\n}\n//# sourceMappingURL=static-resolve.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,yBAAyB,CAAC;AAC9B,SAAS,wBAAwB;CAC/B,qBAAqB,qBAAqB;CAC1C,iBAAiB,cAAc;CAC/B,sBAAsB,cAAc;CACpC,sBAAsB,sBAAsB;CAC5C,iBAAiB,cAAc;CAC/B,gBAAgB,cAAc;CAC9B,qBAAqB,cAA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M,UAAU;CAC7B,IAAI,mBAAmB,MAAM;CAC7B,IAAI,WAAW,MAAM,YAAY,CAAC;CAClC,IAAI,UAAU,IAAI,MAAM,SAAS,MAAM;CACvC,KAAK,IAAI,IAAI,GAAG,IAAI,SAAS,QAAQ,KAAK;EACxC,QAAQ,KAAK,qBAAqB,SAAS,IAAI,QAAQ,gBAAgB;CACzE;CACA,OAAO,EACL,QACF;AACF;AACA,SAAS,cAAc,OAAO;CAC5B,IAAI,OAAO,UAAU,UAAU;EAC7B,IAAI,SAAS,KAAK,MAAM,KAAK;EAC7B,IAAI,SAAS,mBAAmB,MAAM;EACtC,OAAO,KAAK,UAAU,MAAM;CAC9B;CACA,OAAO,mBAAmB,KAAK;AACjC"}
@@ -80,7 +80,7 @@ function createStylePiece(definition, layer = "style") {
80
80
  function style(definition) {
81
81
  if (process.env.NODE_ENV === "development") {
82
82
  const internals = import_react.default.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
83
- if (internals?.H) {
83
+ if (internals?.A?.getOwner?.()) {
84
84
  (0, import_warnOnce.warnOnce)("[tamagui] style() was called during render. Define style pieces at module scope so their rules compile once.");
85
85
  }
86
86
  }
@@ -40,10 +40,6 @@ module.exports = __toCommonJS(style_exports);
40
40
  var import_react = __toESM(require("react"), 1);
41
41
  var import_types = require("./types.native.js");
42
42
  var import_warnOnce = require("./helpers/warnOnce.native.js");
43
- function _type_of(obj) {
44
- "@swc/helpers - typeof";
45
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
46
- }
47
43
  var compileStylePiece;
48
44
  var resolveStylePiece;
49
45
  var uncacheablePieces = /* @__PURE__ */ new WeakSet();
@@ -55,7 +51,7 @@ function setStylePieceResolver(resolver) {
55
51
  resolveStylePiece = resolver;
56
52
  }
57
53
  function isStylePiece(value) {
58
- return !!value && (typeof value === "undefined" ? "undefined" : _type_of(value)) === "object" && import_types.stylePieceSymbol in value;
54
+ return !!value && typeof value === "object" && import_types.stylePieceSymbol in value;
59
55
  }
60
56
  function isStylePieceCacheable(piece) {
61
57
  return !uncacheablePieces.has(piece);
@@ -63,7 +59,7 @@ function isStylePieceCacheable(piece) {
63
59
  function canCacheByTheme(definition) {
64
60
  for (var key in definition) {
65
61
  var value = definition[key];
66
- if (typeof value === "string" && flatClausePattern.test(value) || value && (typeof value === "undefined" ? "undefined" : _type_of(value)) === "object") {
62
+ if (typeof value === "string" && flatClausePattern.test(value) || value && typeof value === "object") {
67
63
  return false;
68
64
  }
69
65
  }
@@ -86,8 +82,9 @@ function createStylePiece(definition) {
86
82
  }
87
83
  function style(definition) {
88
84
  if (process.env.NODE_ENV === "development") {
85
+ var _internals_A_getOwner, _internals_A;
89
86
  var internals = import_react.default.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
90
- if (internals === null || internals === void 0 ? void 0 : internals.H) {
87
+ if (internals === null || internals === void 0 ? void 0 : (_internals_A = internals.A) === null || _internals_A === void 0 ? void 0 : (_internals_A_getOwner = _internals_A.getOwner) === null || _internals_A_getOwner === void 0 ? void 0 : _internals_A_getOwner.call(_internals_A)) {
91
88
  (0, import_warnOnce.warnOnce)("[tamagui] style() was called during render. Define style pieces at module scope so their rules compile once.");
92
89
  }
93
90
  }
@@ -40,10 +40,6 @@ module.exports = __toCommonJS(style_exports);
40
40
  var import_react = __toESM(require("react"), 1);
41
41
  var import_types = require("./types.native.js");
42
42
  var import_warnOnce = require("./helpers/warnOnce.native.js");
43
- function _type_of(obj) {
44
- "@swc/helpers - typeof";
45
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
46
- }
47
43
  var compileStylePiece;
48
44
  var resolveStylePiece;
49
45
  var uncacheablePieces = /* @__PURE__ */ new WeakSet();
@@ -55,7 +51,7 @@ function setStylePieceResolver(resolver) {
55
51
  resolveStylePiece = resolver;
56
52
  }
57
53
  function isStylePiece(value) {
58
- return !!value && (typeof value === "undefined" ? "undefined" : _type_of(value)) === "object" && import_types.stylePieceSymbol in value;
54
+ return !!value && typeof value === "object" && import_types.stylePieceSymbol in value;
59
55
  }
60
56
  function isStylePieceCacheable(piece) {
61
57
  return !uncacheablePieces.has(piece);
@@ -63,7 +59,7 @@ function isStylePieceCacheable(piece) {
63
59
  function canCacheByTheme(definition) {
64
60
  for (var key in definition) {
65
61
  var value = definition[key];
66
- if (typeof value === "string" && flatClausePattern.test(value) || value && (typeof value === "undefined" ? "undefined" : _type_of(value)) === "object") {
62
+ if (typeof value === "string" && flatClausePattern.test(value) || value && typeof value === "object") {
67
63
  return false;
68
64
  }
69
65
  }
@@ -86,8 +82,9 @@ function createStylePiece(definition) {
86
82
  }
87
83
  function style(definition) {
88
84
  if (process.env.NODE_ENV === "development") {
85
+ var _internals_A_getOwner, _internals_A;
89
86
  var internals = import_react.default.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
90
- if (internals === null || internals === void 0 ? void 0 : internals.H) {
87
+ if (internals === null || internals === void 0 ? void 0 : (_internals_A = internals.A) === null || _internals_A === void 0 ? void 0 : (_internals_A_getOwner = _internals_A.getOwner) === null || _internals_A_getOwner === void 0 ? void 0 : _internals_A_getOwner.call(_internals_A)) {
91
88
  (0, import_warnOnce.warnOnce)("[tamagui] style() was called during render. Define style pieces at module scope so their rules compile once.");
92
89
  }
93
90
  }
@@ -1 +1 @@
1
- {"version":3,"file":"style.native.js","names":[],"sources":["cjs/style.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar style_exports = {};\n__export(style_exports, {\n createStylePiece: () => createStylePiece,\n isStylePiece: () => isStylePiece,\n isStylePieceCacheable: () => isStylePieceCacheable,\n resolveStylePieceForTheme: () => resolveStylePieceForTheme,\n setStylePieceCompiler: () => setStylePieceCompiler,\n setStylePieceResolver: () => setStylePieceResolver,\n style: () => style\n});\nmodule.exports = __toCommonJS(style_exports);\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_types = require(\"./types\");\nvar import_warnOnce = require(\"./helpers/warnOnce\");\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nvar compileStylePiece;\nvar resolveStylePiece;\nvar uncacheablePieces = /* @__PURE__ */ new WeakSet();\nvar flatClausePattern = /(?:^|\\s)@?[A-Za-z][A-Za-z0-9-]*(?:\\/[A-Za-z0-9_-]+)?:/;\nfunction setStylePieceCompiler(compiler) {\n compileStylePiece = compiler;\n}\nfunction setStylePieceResolver(resolver) {\n resolveStylePiece = resolver;\n}\nfunction isStylePiece(value) {\n return !!value && (typeof value === \"undefined\" ? \"undefined\" : _type_of(value)) === \"object\" && import_types.stylePieceSymbol in value;\n}\nfunction isStylePieceCacheable(piece) {\n return !uncacheablePieces.has(piece);\n}\nfunction canCacheByTheme(definition) {\n for (var key in definition) {\n var value = definition[key];\n if (typeof value === \"string\" && flatClausePattern.test(value) || value && (typeof value === \"undefined\" ? \"undefined\" : _type_of(value)) === \"object\") {\n return false;\n }\n }\n return true;\n}\nfunction createStylePiece(definition) {\n var layer = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : \"style\";\n var piece = {\n className: \"\",\n [import_types.stylePieceSymbol]: {\n byKey: {},\n styleObject: definition\n }\n };\n if (!canCacheByTheme(definition)) {\n uncacheablePieces.add(piece);\n }\n compileStylePiece === null || compileStylePiece === void 0 ? void 0 : compileStylePiece(piece, layer);\n return piece;\n}\nfunction style(definition) {\n if (process.env.NODE_ENV === \"development\") {\n var internals = import_react.default.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\n if (internals === null || internals === void 0 ? void 0 : internals.H) {\n (0, import_warnOnce.warnOnce)(\"[tamagui] style() was called during render. Define style pieces at module scope so their rules compile once.\");\n }\n }\n return createStylePiece(definition);\n}\nfunction resolveStylePieceForTheme(piece, theme, themeName) {\n return resolveStylePiece ? resolveStylePiece(piece, theme, themeName) : piece[import_types.stylePieceSymbol].styleObject;\n}\n//# sourceMappingURL=style.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,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,KA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AS,sBAAsB,OAAO;CACpC,OAAO,CAAC,kBAAkB,IAAI,KAAK;AACrC;AACA,SAAS,gBAAgB,YAAY;CACnC,KAAK,IAAI,OAAO,YAAY;EAC1B,IAAI,QAAQ,WAAW;EACvB,IAAI,OAAO,UAAU,YAAY,kBAAkB,KAAK,KAAK,KAAK,UAAU,OAAO,UAAU,cAAc,cAAc,SAAS,KAAK,OAAO,UAAU;GACtJ,OAAO;EACT;CACF;CACA,OAAO;AACT;AACA,SAAS,iBAAiB,YAAY;CACpC,IAAI,QAAQ,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK;CAC7E,IAAI,QAAQ;EACV,WAAW;GACV,aAAa,mBAAmB;GAC/B,OAAO,CAAC;GACR,aAAa;EACf;CACF;CACA,IAAI,CAAC,gBAAgB,UAAU,GAAG;EAChC,kBAAkB,IAAI,KAAK;CAC7B;CACA,sBAAsB,QAAQ,sBAAsB,KAAK,IAAI,KAAK,IAAI,kBAAkB,OAAO,KAAK;CACpG,OAAO;AACT;AACA,SAAS,MAAM,YAAY;CACzB,IAAI,QAAQ,IAAI,aAAa,eAAe;EAC1C,IAAI,YAAY,aAAa,QAAQ;EACrC,IAAI,cAAc,QAAQ,cAAc,KAAK,IAAI,KAAK,IAAI,UAAU,GAAG;GACrE,CAAC,GAAG,gBAAgB,SAAQ,CAAE,8GAA8G;EAC9I;CACF;CACA,OAAO,iBAAiB,UAAU;AACpC;AACA,SAAS,0BAA0B,OAAO,OAAO,WAAW;CAC1D,OAAO,oBAAoB,kBAAkB,OAAO,OAAO,SAAS,IAAI,MAAM,aAAa,iBAAiB,CAAC;AAC/G"}
1
+ {"version":3,"file":"style.native.js","names":[],"sources":["cjs/style.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar style_exports = {};\n__export(style_exports, {\n createStylePiece: () => createStylePiece,\n isStylePiece: () => isStylePiece,\n isStylePieceCacheable: () => isStylePieceCacheable,\n resolveStylePieceForTheme: () => resolveStylePieceForTheme,\n setStylePieceCompiler: () => setStylePieceCompiler,\n setStylePieceResolver: () => setStylePieceResolver,\n style: () => style\n});\nmodule.exports = __toCommonJS(style_exports);\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_types = require(\"./types\");\nvar import_warnOnce = require(\"./helpers/warnOnce\");\nvar compileStylePiece;\nvar resolveStylePiece;\nvar uncacheablePieces = /* @__PURE__ */ new WeakSet();\nvar flatClausePattern = /(?:^|\\s)@?[A-Za-z][A-Za-z0-9-]*(?:\\/[A-Za-z0-9_-]+)?:/;\nfunction setStylePieceCompiler(compiler) {\n compileStylePiece = compiler;\n}\nfunction setStylePieceResolver(resolver) {\n resolveStylePiece = resolver;\n}\nfunction isStylePiece(value) {\n return !!value && typeof value === \"object\" && import_types.stylePieceSymbol in value;\n}\nfunction isStylePieceCacheable(piece) {\n return !uncacheablePieces.has(piece);\n}\nfunction canCacheByTheme(definition) {\n for (var key in definition) {\n var value = definition[key];\n if (typeof value === \"string\" && flatClausePattern.test(value) || value && typeof value === \"object\") {\n return false;\n }\n }\n return true;\n}\nfunction createStylePiece(definition) {\n var layer = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : \"style\";\n var piece = {\n className: \"\",\n [import_types.stylePieceSymbol]: {\n byKey: {},\n styleObject: definition\n }\n };\n if (!canCacheByTheme(definition)) {\n uncacheablePieces.add(piece);\n }\n compileStylePiece === null || compileStylePiece === void 0 ? void 0 : compileStylePiece(piece, layer);\n return piece;\n}\nfunction style(definition) {\n if (process.env.NODE_ENV === \"development\") {\n var _internals_A_getOwner, _internals_A;\n var internals = import_react.default.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\n if (internals === null || internals === void 0 ? void 0 : (_internals_A = internals.A) === null || _internals_A === void 0 ? void 0 : (_internals_A_getOwner = _internals_A.getOwner) === null || _internals_A_getOwner === void 0 ? void 0 : _internals_A_getOwner.call(_internals_A)) {\n (0, import_warnOnce.warnOnce)(\"[tamagui] style() was called during render. Define style pieces at module scope so their rules compile once.\");\n }\n }\n return createStylePiece(definition);\n}\nfunction resolveStylePieceForTheme(piece, theme, themeName) {\n return resolveStylePiece ? resolveStylePiece(piece, theme, themeName) : piece[import_types.stylePieceSymbol].styleObject;\n}\n//# sourceMappingURL=style.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,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,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ropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
5
  var __export = (target, all) => {
8
6
  for (var name in all) __defProp(target, name, {
@@ -19,10 +17,6 @@ var __copyProps = (to, from, except, desc) => {
19
17
  }
20
18
  return to;
21
19
  };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
- value: mod,
24
- enumerable: true
25
- }) : target, mod));
26
20
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
21
  var Theme_exports = {};
28
22
  __export(Theme_exports, {
@@ -33,7 +27,7 @@ module.exports = __toCommonJS(Theme_exports);
33
27
  var import_compose_refs = require("@tamagui/compose-refs");
34
28
  var import_constants = require("@tamagui/constants");
35
29
  var import_helpers = require("@tamagui/helpers");
36
- var import_react = __toESM(require("react"), 1);
30
+ var import_react = require("react");
37
31
  var import_createVariable = require("../createVariable.cjs");
38
32
  var import_formatDiagnostic = require("../helpers/formatDiagnostic.cjs");
39
33
  require("../helpers/nativeStyleEngine.cjs");
@@ -57,10 +51,7 @@ const Theme = (0, import_compose_refs.createRefComponent)(function Theme2(props,
57
51
  themeState.theme
58
52
  ]);
59
53
  let finalChildren = props["disable-child-theme"] ? import_react.Children.map(props.children, (child) => passThrough || !(0, import_react.isValidElement)(child) ? child : (0, import_react.cloneElement)(child, { ["data-disable-theme"]: true })) : props.children;
60
- if (ref) try {
61
- import_react.default.Children.only(finalChildren);
62
- finalChildren = (0, import_react.cloneElement)(finalChildren, { ref });
63
- } catch {}
54
+ if (ref && (0, import_react.isValidElement)(finalChildren)) finalChildren = (0, import_react.cloneElement)(finalChildren, { ref });
64
55
  const stateRef = (0, import_react.useRef)({ hasEverThemed: false });
65
56
  return getThemedChildren(themeState, finalChildren, props, isRoot, stateRef, passThrough);
66
57
  });
@@ -79,10 +70,11 @@ function getThemedChildren(themeState, children, props, isRoot = false, stateRef
79
70
  value: themeState.id,
80
71
  children
81
72
  });
82
- const { isInverse, name } = themeState;
73
+ const { isInverse } = themeState;
83
74
  const requiresExtraWrapper = isInverse || forceClassName;
84
- if (!state.hasEverThemed) state.hasEverThemed = true;
85
- if (requiresExtraWrapper || themeState.name === "dark" || themeState.name === "light") state.hasEverThemed = "wrapped";
75
+ const isFirstThemedRender = !state.hasEverThemed;
76
+ if (isFirstThemedRender) state.hasEverThemed = true;
77
+ if (requiresExtraWrapper || isFirstThemedRender && (themeState.name === "dark" || themeState.name === "light")) state.hasEverThemed = "wrapped";
86
78
  if (shallow) if (!themeState.parentId) {} else {
87
79
  const parentState = (0, import_useThemeState.getThemeState)(themeState.isNew ? themeState.id : themeState.parentId);
88
80
  if (!parentState) throw new Error(process.env.NODE_ENV !== "production" ? (0, import_formatDiagnostic.formatDiagnostic)("‼️010", "Theme", "parent theme state is missing for shallow rendering", "Keep <Theme shallow> inside its mounted parent Theme", "name,parentId", {
@@ -119,7 +111,8 @@ function getThemedChildren(themeState, children, props, isRoot = false, stateRef
119
111
  children
120
112
  });
121
113
  if (state.hasEverThemed === "wrapped") {
122
- const className2 = requiresExtraWrapper ? `${name.startsWith("light") ? "t_light" : name.startsWith("dark") ? "t_dark" : ""} _dsp_contents` : `_dsp_contents`;
114
+ const scheme = requiresExtraWrapper && themeState.schemeAuthored && themeState.scheme;
115
+ const className2 = scheme ? `t_${scheme} _dsp_contents` : "_dsp_contents";
123
116
  children = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
124
117
  className: className2,
125
118
  children
@@ -138,10 +131,10 @@ const empty = {
138
131
  className: "",
139
132
  color: void 0
140
133
  };
141
- function getThemeClassNameAndColor(themeState, props, isRoot = false) {
134
+ function getThemeClassNameAndColor(themeState, props, isRoot) {
142
135
  if (!themeState.isNew && !props.forceClassName) return empty;
143
136
  return {
144
137
  color: themeState?.theme && themeState.isNew ? (0, import_createVariable.variableToString)(themeState.theme.color) : "",
145
- className: (0, import_helpers.getThemeClassNames)(themeState.name, isRoot)
138
+ className: (0, import_helpers.getThemeClassNames)(themeState.name, isRoot, themeState.schemeAuthored)
146
139
  };
147
140
  }
@@ -66,10 +66,7 @@ var Theme = (0, import_compose_refs.createRefComponent)(function Theme2(props, r
66
66
  var finalChildren = props["disable-child-theme"] ? import_react.Children.map(props.children, function(child) {
67
67
  return passThrough || !/* @__PURE__ */ (0, import_react.isValidElement)(child) ? child : /* @__PURE__ */ (0, import_react.cloneElement)(child, { ["data-disable-theme"]: true });
68
68
  }) : props.children;
69
- if (ref) try {
70
- import_react.default.Children.only(finalChildren);
71
- finalChildren = /* @__PURE__ */ (0, import_react.cloneElement)(finalChildren, { ref });
72
- } catch (e) {}
69
+ if (ref && /* @__PURE__ */ (0, import_react.isValidElement)(finalChildren)) finalChildren = /* @__PURE__ */ (0, import_react.cloneElement)(finalChildren, { ref });
73
70
  var stateRef = (0, import_react.useRef)({ hasEverThemed: false });
74
71
  return getThemedChildren(themeState, finalChildren, props, isRoot, stateRef, passThrough);
75
72
  });
@@ -89,10 +86,11 @@ function getThemedChildren(themeState, children, props) {
89
86
  value: themeState.id,
90
87
  children
91
88
  });
92
- var { isInverse, name } = themeState;
89
+ var { isInverse } = themeState;
93
90
  var requiresExtraWrapper = isInverse || forceClassName;
94
- if (!state.hasEverThemed) state.hasEverThemed = true;
95
- if (requiresExtraWrapper || themeState.name === "dark" || themeState.name === "light") state.hasEverThemed = "wrapped";
91
+ var isFirstThemedRender = !state.hasEverThemed;
92
+ if (isFirstThemedRender) state.hasEverThemed = true;
93
+ if (requiresExtraWrapper || isFirstThemedRender && (themeState.name === "dark" || themeState.name === "light")) state.hasEverThemed = "wrapped";
96
94
  if (shallow) if (!themeState.parentId) {} else {
97
95
  var parentState = (0, import_useThemeState.getThemeState)(themeState.isNew ? themeState.id : themeState.parentId);
98
96
  if (!parentState) throw new Error(process.env.NODE_ENV !== "production" ? (0, import_formatDiagnostic.formatDiagnostic)("‼️010", "Theme", "parent theme state is missing for shallow rendering", "Keep <Theme shallow> inside its mounted parent Theme", "name,parentId", {
@@ -130,7 +128,8 @@ function getThemedChildren(themeState, children, props) {
130
128
  children
131
129
  });
132
130
  if (state.hasEverThemed === "wrapped") {
133
- var className1 = requiresExtraWrapper ? `${name.startsWith("light") ? "t_light" : name.startsWith("dark") ? "t_dark" : ""} _dsp_contents` : `_dsp_contents`;
131
+ var scheme = requiresExtraWrapper && themeState.schemeAuthored && themeState.scheme;
132
+ var className1 = scheme ? `t_${scheme} _dsp_contents` : "_dsp_contents";
134
133
  children = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
135
134
  className: className1,
136
135
  children
@@ -149,11 +148,10 @@ var empty = {
149
148
  className: "",
150
149
  color: void 0
151
150
  };
152
- function getThemeClassNameAndColor(themeState, props) {
153
- var isRoot = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
151
+ function getThemeClassNameAndColor(themeState, props, isRoot) {
154
152
  if (!themeState.isNew && !props.forceClassName) return empty;
155
153
  return {
156
154
  color: (themeState === null || themeState === void 0 ? void 0 : themeState.theme) && themeState.isNew ? (0, import_createVariable.variableToString)(themeState.theme.color) : "",
157
- className: (0, import_helpers.getThemeClassNames)(themeState.name, isRoot)
155
+ className: (0, import_helpers.getThemeClassNames)(themeState.name, isRoot, themeState.schemeAuthored)
158
156
  };
159
157
  }