@tamagui/web 3.0.0-beta.831.1 → 3.0.0-beta.889.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (474) hide show
  1. package/dist/cjs/createComponent.cjs +12 -1
  2. package/dist/cjs/createComponent.native.cjs +12 -1
  3. package/dist/cjs/createComponent.native.js +12 -1
  4. package/dist/cjs/createComponent.native.js.map +1 -1
  5. package/dist/cjs/createStyledHOC.cjs +1 -1
  6. package/dist/cjs/createStyledHOC.native.cjs +1 -1
  7. package/dist/cjs/createStyledHOC.native.js +1 -1
  8. package/dist/cjs/createStyledHOC.native.js.map +1 -1
  9. package/dist/cjs/createVariable.cjs +0 -10
  10. package/dist/cjs/createVariable.native.cjs +0 -10
  11. package/dist/cjs/createVariable.native.js +0 -10
  12. package/dist/cjs/createVariable.native.js.map +1 -1
  13. package/dist/cjs/helpers/borderComponents.cjs +62 -0
  14. package/dist/cjs/helpers/borderComponents.native.cjs +82 -0
  15. package/dist/cjs/helpers/borderComponents.native.js +84 -0
  16. package/dist/cjs/helpers/borderComponents.native.js.map +1 -0
  17. package/dist/cjs/helpers/createDesignSystem.cjs +0 -2
  18. package/dist/cjs/helpers/createStyledContext.cjs +10 -18
  19. package/dist/cjs/helpers/createStyledContext.native.cjs +14 -18
  20. package/dist/cjs/helpers/createStyledContext.native.js +14 -18
  21. package/dist/cjs/helpers/createStyledContext.native.js.map +1 -1
  22. package/dist/cjs/helpers/formatDiagnostic.cjs +6 -6
  23. package/dist/cjs/helpers/formatDiagnostic.native.cjs +6 -6
  24. package/dist/cjs/helpers/formatDiagnostic.native.js +6 -6
  25. package/dist/cjs/helpers/formatDiagnostic.native.js.map +1 -1
  26. package/dist/cjs/helpers/getCSSStylesAtomic.cjs +128 -109
  27. package/dist/cjs/helpers/getCSSStylesAtomic.native.cjs +11 -3
  28. package/dist/cjs/helpers/getCSSStylesAtomic.native.js +11 -3
  29. package/dist/cjs/helpers/getCSSStylesAtomic.native.js.map +1 -1
  30. package/dist/cjs/helpers/getCSSStylesAtomicCompiled.cjs +13 -1
  31. package/dist/cjs/helpers/getCSSStylesAtomicCompiled.native.cjs +15 -1
  32. package/dist/cjs/helpers/getCSSStylesAtomicCompiled.native.js +15 -1
  33. package/dist/cjs/helpers/getCSSStylesAtomicCompiled.native.js.map +1 -1
  34. package/dist/cjs/helpers/getDynamicVal.cjs +5 -1
  35. package/dist/cjs/helpers/getDynamicVal.native.cjs +5 -1
  36. package/dist/cjs/helpers/getDynamicVal.native.js +5 -1
  37. package/dist/cjs/helpers/getDynamicVal.native.js.map +1 -1
  38. package/dist/cjs/helpers/getSplitStyles.cjs +1042 -1715
  39. package/dist/cjs/helpers/getSplitStyles.native.cjs +1081 -1887
  40. package/dist/cjs/helpers/getSplitStyles.native.js +1081 -1887
  41. package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
  42. package/dist/cjs/helpers/grammarConfig.cjs +163 -1
  43. package/dist/cjs/helpers/grammarConfig.native.cjs +186 -1
  44. package/dist/cjs/helpers/grammarConfig.native.js +186 -1
  45. package/dist/cjs/helpers/grammarConfig.native.js.map +1 -1
  46. package/dist/cjs/helpers/insertStyleRule.cjs +5 -1
  47. package/dist/cjs/helpers/insertStyleRule.native.cjs +7 -1
  48. package/dist/cjs/helpers/insertStyleRule.native.js +7 -1
  49. package/dist/cjs/helpers/insertStyleRule.native.js.map +1 -1
  50. package/dist/cjs/helpers/log.cjs +9 -8
  51. package/dist/cjs/helpers/log.native.cjs +9 -8
  52. package/dist/cjs/helpers/log.native.js +9 -8
  53. package/dist/cjs/helpers/log.native.js.map +1 -1
  54. package/dist/cjs/helpers/mergeVariants.cjs +44 -13
  55. package/dist/cjs/helpers/mergeVariants.native.cjs +79 -14
  56. package/dist/cjs/helpers/mergeVariants.native.js +79 -14
  57. package/dist/cjs/helpers/mergeVariants.native.js.map +1 -1
  58. package/dist/cjs/helpers/nativeOnlyProps.cjs +0 -1
  59. package/dist/cjs/helpers/nativeOnlyProps.native.cjs +0 -1
  60. package/dist/cjs/helpers/nativeOnlyProps.native.js +0 -1
  61. package/dist/cjs/helpers/nativeOnlyProps.native.js.map +1 -1
  62. package/dist/cjs/helpers/nativeStyleEngine.cjs +34 -14
  63. package/dist/cjs/helpers/nativeStyleEngine.native.cjs +36 -14
  64. package/dist/cjs/helpers/nativeStyleEngine.native.js +36 -14
  65. package/dist/cjs/helpers/nativeStyleEngine.native.js.map +1 -1
  66. package/dist/cjs/helpers/normalizeValueWithProperty.cjs +7 -8
  67. package/dist/cjs/helpers/normalizeValueWithProperty.native.cjs +9 -8
  68. package/dist/cjs/helpers/normalizeValueWithProperty.native.js +9 -8
  69. package/dist/cjs/helpers/normalizeValueWithProperty.native.js.map +1 -1
  70. package/dist/cjs/helpers/parseBorderShorthand.native.cjs +25 -56
  71. package/dist/cjs/helpers/parseBorderShorthand.native.js +25 -56
  72. package/dist/cjs/helpers/parseBorderShorthand.native.js.map +1 -1
  73. package/dist/cjs/helpers/parseOutlineShorthand.native.cjs +9 -49
  74. package/dist/cjs/helpers/parseOutlineShorthand.native.js +9 -49
  75. package/dist/cjs/helpers/parseOutlineShorthand.native.js.map +1 -1
  76. package/dist/cjs/helpers/resolveSafeArea.cjs +35 -100
  77. package/dist/cjs/helpers/resolveVariantStyle.cjs +57 -0
  78. package/dist/cjs/helpers/resolveVariantStyle.native.cjs +67 -0
  79. package/dist/cjs/helpers/resolveVariantStyle.native.js +69 -0
  80. package/dist/cjs/helpers/resolveVariantStyle.native.js.map +1 -0
  81. package/dist/cjs/helpers/styleStaticConfig.cjs +1 -50
  82. package/dist/cjs/helpers/styleStaticConfig.native.cjs +1 -51
  83. package/dist/cjs/helpers/styleStaticConfig.native.js +1 -51
  84. package/dist/cjs/helpers/styleStaticConfig.native.js.map +1 -1
  85. package/dist/cjs/helpers/styleStaticConfigCore.cjs +107 -0
  86. package/dist/cjs/helpers/styleStaticConfigCore.native.cjs +127 -0
  87. package/dist/cjs/helpers/styleStaticConfigCore.native.js +129 -0
  88. package/dist/cjs/helpers/styleStaticConfigCore.native.js.map +1 -0
  89. package/dist/cjs/helpers/styledDynamic.cjs +160 -0
  90. package/dist/cjs/helpers/styledDynamic.native.cjs +195 -0
  91. package/dist/cjs/helpers/styledDynamic.native.js +197 -0
  92. package/dist/cjs/helpers/styledDynamic.native.js.map +1 -0
  93. package/dist/cjs/helpers/tokenCategories.cjs +15 -38
  94. package/dist/cjs/helpers/tokenCategories.native.cjs +15 -40
  95. package/dist/cjs/helpers/tokenCategories.native.js +15 -40
  96. package/dist/cjs/helpers/tokenCategories.native.js.map +1 -1
  97. package/dist/cjs/helpers/variableValue.cjs +17 -12
  98. package/dist/cjs/helpers/variableValue.native.cjs +46 -23
  99. package/dist/cjs/helpers/variableValue.native.js +46 -23
  100. package/dist/cjs/helpers/variableValue.native.js.map +1 -1
  101. package/dist/cjs/helpers/warnOnce.cjs +5 -4
  102. package/dist/cjs/helpers/warnOnce.native.cjs +6 -4
  103. package/dist/cjs/helpers/warnOnce.native.js +6 -4
  104. package/dist/cjs/helpers/warnOnce.native.js.map +1 -1
  105. package/dist/cjs/hooks/useAnimationDriver.cjs +2 -2
  106. package/dist/cjs/hooks/useAnimationDriver.native.cjs +2 -2
  107. package/dist/cjs/hooks/useAnimationDriver.native.js +2 -2
  108. package/dist/cjs/hooks/useAnimationDriver.native.js.map +1 -1
  109. package/dist/cjs/hooks/useComponentState.cjs +41 -82
  110. package/dist/cjs/hooks/useComponentState.native.cjs +45 -84
  111. package/dist/cjs/hooks/useComponentState.native.js +45 -84
  112. package/dist/cjs/hooks/useComponentState.native.js.map +1 -1
  113. package/dist/cjs/hooks/useMedia.cjs +2 -2
  114. package/dist/cjs/hooks/useMedia.native.cjs +2 -2
  115. package/dist/cjs/hooks/useMedia.native.js +2 -2
  116. package/dist/cjs/hooks/useMedia.native.js.map +1 -1
  117. package/dist/cjs/{helpers/directStyleCSS.native.js → hooks/useStyle.cjs} +16 -8
  118. package/dist/cjs/{helpers/directStyleCSS.native.cjs → hooks/useStyle.native.cjs} +16 -4
  119. package/dist/cjs/hooks/useStyle.native.js +34 -0
  120. package/dist/cjs/hooks/useStyle.native.js.map +1 -0
  121. package/dist/cjs/hooks/useThemeState.cjs +25 -90
  122. package/dist/cjs/hooks/useThemeState.native.cjs +34 -94
  123. package/dist/cjs/hooks/useThemeState.native.js +34 -94
  124. package/dist/cjs/hooks/useThemeState.native.js.map +1 -1
  125. package/dist/cjs/index.cjs +6 -3
  126. package/dist/cjs/index.native.cjs +6 -3
  127. package/dist/cjs/index.native.js +6 -3
  128. package/dist/cjs/index.native.js.map +1 -1
  129. package/dist/cjs/static-resolve.cjs +2 -2
  130. package/dist/cjs/static-resolve.native.cjs +2 -2
  131. package/dist/cjs/static-resolve.native.js +2 -2
  132. package/dist/cjs/static-resolve.native.js.map +1 -1
  133. package/dist/cjs/style.cjs +91 -0
  134. package/dist/cjs/style.native.cjs +98 -0
  135. package/dist/cjs/style.native.js +100 -0
  136. package/dist/cjs/style.native.js.map +1 -0
  137. package/dist/cjs/styled.cjs +11 -6
  138. package/dist/cjs/styled.native.cjs +11 -6
  139. package/dist/cjs/styled.native.js +11 -6
  140. package/dist/cjs/styled.native.js.map +1 -1
  141. package/dist/cjs/types.cjs +6 -4
  142. package/dist/cjs/types.native.cjs +6 -4
  143. package/dist/cjs/types.native.js +6 -4
  144. package/dist/cjs/types.native.js.map +1 -1
  145. package/dist/cjs/views/TamaguiProvider.cjs +1 -2
  146. package/dist/cjs/views/TamaguiProvider.native.cjs +1 -2
  147. package/dist/cjs/views/TamaguiProvider.native.js +1 -2
  148. package/dist/cjs/views/TamaguiProvider.native.js.map +1 -1
  149. package/dist/cjs/views/Text.cjs +17 -12
  150. package/dist/cjs/views/Text.native.cjs +1 -0
  151. package/dist/cjs/views/Text.native.js +1 -0
  152. package/dist/cjs/views/Text.native.js.map +1 -1
  153. package/dist/cjs/views/Theme.cjs +3 -3
  154. package/dist/cjs/views/Theme.native.cjs +3 -3
  155. package/dist/cjs/views/Theme.native.js +3 -3
  156. package/dist/cjs/views/Theme.native.js.map +1 -1
  157. package/dist/cjs/views/ThemeDebug.cjs +1 -4
  158. package/dist/esm/createComponent.mjs +12 -1
  159. package/dist/esm/createComponent.mjs.map +1 -1
  160. package/dist/esm/createComponent.native.js +12 -1
  161. package/dist/esm/createComponent.native.js.map +1 -1
  162. package/dist/esm/createStyledHOC.mjs +1 -1
  163. package/dist/esm/createStyledHOC.mjs.map +1 -1
  164. package/dist/esm/createStyledHOC.native.js +1 -1
  165. package/dist/esm/createStyledHOC.native.js.map +1 -1
  166. package/dist/esm/createVariable.mjs +1 -9
  167. package/dist/esm/createVariable.mjs.map +1 -1
  168. package/dist/esm/createVariable.native.js +1 -9
  169. package/dist/esm/createVariable.native.js.map +1 -1
  170. package/dist/esm/helpers/borderComponents.mjs +37 -0
  171. package/dist/esm/helpers/borderComponents.mjs.map +1 -0
  172. package/dist/esm/helpers/borderComponents.native.js +55 -0
  173. package/dist/esm/helpers/borderComponents.native.js.map +1 -0
  174. package/dist/esm/helpers/createDesignSystem.mjs +0 -2
  175. package/dist/esm/helpers/createDesignSystem.mjs.map +1 -1
  176. package/dist/esm/helpers/createStyledContext.mjs +10 -18
  177. package/dist/esm/helpers/createStyledContext.mjs.map +1 -1
  178. package/dist/esm/helpers/createStyledContext.native.js +14 -18
  179. package/dist/esm/helpers/createStyledContext.native.js.map +1 -1
  180. package/dist/esm/helpers/formatDiagnostic.mjs +6 -6
  181. package/dist/esm/helpers/formatDiagnostic.mjs.map +1 -1
  182. package/dist/esm/helpers/formatDiagnostic.native.js +6 -6
  183. package/dist/esm/helpers/formatDiagnostic.native.js.map +1 -1
  184. package/dist/esm/helpers/getCSSStylesAtomic.mjs +126 -109
  185. package/dist/esm/helpers/getCSSStylesAtomic.mjs.map +1 -1
  186. package/dist/esm/helpers/getCSSStylesAtomic.native.js +7 -4
  187. package/dist/esm/helpers/getCSSStylesAtomic.native.js.map +1 -1
  188. package/dist/esm/helpers/getCSSStylesAtomicCompiled.mjs +8 -1
  189. package/dist/esm/helpers/getCSSStylesAtomicCompiled.mjs.map +1 -1
  190. package/dist/esm/helpers/getCSSStylesAtomicCompiled.native.js +10 -1
  191. package/dist/esm/helpers/getCSSStylesAtomicCompiled.native.js.map +1 -1
  192. package/dist/esm/helpers/getDynamicVal.mjs +5 -1
  193. package/dist/esm/helpers/getDynamicVal.mjs.map +1 -1
  194. package/dist/esm/helpers/getDynamicVal.native.js +5 -1
  195. package/dist/esm/helpers/getDynamicVal.native.js.map +1 -1
  196. package/dist/esm/helpers/getSplitStyles.mjs +1034 -1705
  197. package/dist/esm/helpers/getSplitStyles.mjs.map +1 -1
  198. package/dist/esm/helpers/getSplitStyles.native.js +1071 -1871
  199. package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
  200. package/dist/esm/helpers/grammarConfig.mjs +164 -2
  201. package/dist/esm/helpers/grammarConfig.mjs.map +1 -1
  202. package/dist/esm/helpers/grammarConfig.native.js +187 -2
  203. package/dist/esm/helpers/grammarConfig.native.js.map +1 -1
  204. package/dist/esm/helpers/insertStyleRule.mjs +5 -2
  205. package/dist/esm/helpers/insertStyleRule.mjs.map +1 -1
  206. package/dist/esm/helpers/insertStyleRule.native.js +7 -2
  207. package/dist/esm/helpers/insertStyleRule.native.js.map +1 -1
  208. package/dist/esm/helpers/log.mjs +9 -8
  209. package/dist/esm/helpers/log.mjs.map +1 -1
  210. package/dist/esm/helpers/log.native.js +9 -8
  211. package/dist/esm/helpers/log.native.js.map +1 -1
  212. package/dist/esm/helpers/mergeVariants.mjs +44 -13
  213. package/dist/esm/helpers/mergeVariants.mjs.map +1 -1
  214. package/dist/esm/helpers/mergeVariants.native.js +79 -14
  215. package/dist/esm/helpers/mergeVariants.native.js.map +1 -1
  216. package/dist/esm/helpers/nativeOnlyProps.mjs +0 -1
  217. package/dist/esm/helpers/nativeOnlyProps.mjs.map +1 -1
  218. package/dist/esm/helpers/nativeOnlyProps.native.js +0 -1
  219. package/dist/esm/helpers/nativeOnlyProps.native.js.map +1 -1
  220. package/dist/esm/helpers/nativeStyleEngine.mjs +34 -15
  221. package/dist/esm/helpers/nativeStyleEngine.mjs.map +1 -1
  222. package/dist/esm/helpers/nativeStyleEngine.native.js +36 -15
  223. package/dist/esm/helpers/nativeStyleEngine.native.js.map +1 -1
  224. package/dist/esm/helpers/normalizeValueWithProperty.mjs +7 -8
  225. package/dist/esm/helpers/normalizeValueWithProperty.mjs.map +1 -1
  226. package/dist/esm/helpers/normalizeValueWithProperty.native.js +9 -8
  227. package/dist/esm/helpers/normalizeValueWithProperty.native.js.map +1 -1
  228. package/dist/esm/helpers/parseBorderShorthand.native.js +23 -56
  229. package/dist/esm/helpers/parseBorderShorthand.native.js.map +1 -1
  230. package/dist/esm/helpers/parseOutlineShorthand.native.js +10 -49
  231. package/dist/esm/helpers/parseOutlineShorthand.native.js.map +1 -1
  232. package/dist/esm/helpers/resolveSafeArea.mjs +35 -97
  233. package/dist/esm/helpers/resolveSafeArea.mjs.map +1 -1
  234. package/dist/esm/helpers/resolveVariantStyle.mjs +38 -0
  235. package/dist/esm/helpers/resolveVariantStyle.mjs.map +1 -0
  236. package/dist/esm/helpers/resolveVariantStyle.native.js +46 -0
  237. package/dist/esm/helpers/resolveVariantStyle.native.js.map +1 -0
  238. package/dist/esm/helpers/styleStaticConfig.mjs +1 -50
  239. package/dist/esm/helpers/styleStaticConfig.mjs.map +1 -1
  240. package/dist/esm/helpers/styleStaticConfig.native.js +1 -51
  241. package/dist/esm/helpers/styleStaticConfig.native.js.map +1 -1
  242. package/dist/esm/helpers/styleStaticConfigCore.mjs +88 -0
  243. package/dist/esm/helpers/styleStaticConfigCore.mjs.map +1 -0
  244. package/dist/esm/helpers/styleStaticConfigCore.native.js +106 -0
  245. package/dist/esm/helpers/styleStaticConfigCore.native.js.map +1 -0
  246. package/dist/esm/helpers/styledDynamic.mjs +136 -0
  247. package/dist/esm/helpers/styledDynamic.mjs.map +1 -0
  248. package/dist/esm/helpers/styledDynamic.native.js +169 -0
  249. package/dist/esm/helpers/styledDynamic.native.js.map +1 -0
  250. package/dist/esm/helpers/tokenCategories.mjs +15 -36
  251. package/dist/esm/helpers/tokenCategories.mjs.map +1 -1
  252. package/dist/esm/helpers/tokenCategories.native.js +15 -38
  253. package/dist/esm/helpers/tokenCategories.native.js.map +1 -1
  254. package/dist/esm/helpers/variableValue.mjs +17 -12
  255. package/dist/esm/helpers/variableValue.mjs.map +1 -1
  256. package/dist/esm/helpers/variableValue.native.js +46 -23
  257. package/dist/esm/helpers/variableValue.native.js.map +1 -1
  258. package/dist/esm/helpers/warnOnce.mjs +5 -4
  259. package/dist/esm/helpers/warnOnce.mjs.map +1 -1
  260. package/dist/esm/helpers/warnOnce.native.js +6 -4
  261. package/dist/esm/helpers/warnOnce.native.js.map +1 -1
  262. package/dist/esm/hooks/useAnimationDriver.mjs +2 -2
  263. package/dist/esm/hooks/useAnimationDriver.mjs.map +1 -1
  264. package/dist/esm/hooks/useAnimationDriver.native.js +2 -2
  265. package/dist/esm/hooks/useAnimationDriver.native.js.map +1 -1
  266. package/dist/esm/hooks/useComponentState.mjs +41 -82
  267. package/dist/esm/hooks/useComponentState.mjs.map +1 -1
  268. package/dist/esm/hooks/useComponentState.native.js +45 -84
  269. package/dist/esm/hooks/useComponentState.native.js.map +1 -1
  270. package/dist/esm/hooks/useMedia.mjs +2 -2
  271. package/dist/esm/hooks/useMedia.mjs.map +1 -1
  272. package/dist/esm/hooks/useMedia.native.js +2 -2
  273. package/dist/esm/hooks/useMedia.native.js.map +1 -1
  274. package/dist/esm/hooks/useStyle.mjs +11 -0
  275. package/dist/esm/hooks/useStyle.mjs.map +1 -0
  276. package/dist/esm/hooks/useStyle.native.js +11 -0
  277. package/dist/esm/hooks/useStyle.native.js.map +1 -0
  278. package/dist/esm/hooks/useThemeState.mjs +25 -90
  279. package/dist/esm/hooks/useThemeState.mjs.map +1 -1
  280. package/dist/esm/hooks/useThemeState.native.js +34 -94
  281. package/dist/esm/hooks/useThemeState.native.js.map +1 -1
  282. package/dist/esm/index.js +6 -4
  283. package/dist/esm/index.mjs +6 -4
  284. package/dist/esm/index.native.js +6 -4
  285. package/dist/esm/static-resolve.mjs +3 -3
  286. package/dist/esm/static-resolve.mjs.map +1 -1
  287. package/dist/esm/static-resolve.native.js +3 -3
  288. package/dist/esm/static-resolve.native.js.map +1 -1
  289. package/dist/esm/style.mjs +58 -0
  290. package/dist/esm/style.mjs.map +1 -0
  291. package/dist/esm/style.native.js +63 -0
  292. package/dist/esm/style.native.js.map +1 -0
  293. package/dist/esm/styled.mjs +12 -6
  294. package/dist/esm/styled.mjs.map +1 -1
  295. package/dist/esm/styled.native.js +12 -6
  296. package/dist/esm/styled.native.js.map +1 -1
  297. package/dist/esm/types.mjs +3 -4
  298. package/dist/esm/types.mjs.map +1 -1
  299. package/dist/esm/types.native.js +3 -4
  300. package/dist/esm/types.native.js.map +1 -1
  301. package/dist/esm/views/TamaguiProvider.mjs +1 -2
  302. package/dist/esm/views/TamaguiProvider.mjs.map +1 -1
  303. package/dist/esm/views/TamaguiProvider.native.js +1 -2
  304. package/dist/esm/views/TamaguiProvider.native.js.map +1 -1
  305. package/dist/esm/views/Text.mjs +17 -12
  306. package/dist/esm/views/Text.mjs.map +1 -1
  307. package/dist/esm/views/Theme.mjs +3 -3
  308. package/dist/esm/views/Theme.mjs.map +1 -1
  309. package/dist/esm/views/Theme.native.js +3 -3
  310. package/dist/esm/views/Theme.native.js.map +1 -1
  311. package/dist/esm/views/ThemeDebug.mjs +1 -4
  312. package/dist/esm/views/ThemeDebug.mjs.map +1 -1
  313. package/package.json +15 -15
  314. package/src/createComponent.tsx +21 -1
  315. package/src/createStyledHOC.tsx +4 -2
  316. package/src/createVariable.ts +0 -10
  317. package/src/helpers/borderComponents.ts +62 -0
  318. package/src/helpers/createDesignSystem.ts +0 -2
  319. package/src/helpers/createStyledContext.tsx +15 -53
  320. package/src/helpers/formatDiagnostic.ts +9 -9
  321. package/src/helpers/getCSSStylesAtomic.native.ts +6 -3
  322. package/src/helpers/getCSSStylesAtomic.ts +192 -207
  323. package/src/helpers/getCSSStylesAtomicCompiled.ts +13 -1
  324. package/src/helpers/getDynamicVal.ts +4 -0
  325. package/src/helpers/getSplitStyles.tsx +2080 -3270
  326. package/src/helpers/grammarConfig.ts +218 -1
  327. package/src/helpers/insertStyleRule.tsx +4 -2
  328. package/src/helpers/log.ts +12 -11
  329. package/src/helpers/mergeVariants.ts +55 -18
  330. package/src/helpers/nativeOnlyProps.ts +0 -1
  331. package/src/helpers/nativeStyleEngine.ts +55 -14
  332. package/src/helpers/normalizeValueWithProperty.ts +10 -12
  333. package/src/helpers/parseBorderShorthand.native.ts +23 -45
  334. package/src/helpers/parseOutlineShorthand.native.ts +9 -40
  335. package/src/helpers/resolveSafeArea.ts +34 -101
  336. package/src/helpers/resolveVariantStyle.ts +77 -0
  337. package/src/helpers/styleFrontend.ts +8 -5
  338. package/src/helpers/styleStaticConfig.ts +5 -72
  339. package/src/helpers/styleStaticConfigCore.ts +110 -0
  340. package/src/helpers/styledDynamic.ts +191 -0
  341. package/src/helpers/tokenCategories.ts +40 -65
  342. package/src/helpers/variableValue.ts +20 -15
  343. package/src/helpers/warnOnce.ts +5 -4
  344. package/src/hooks/useAnimationDriver.ts +6 -2
  345. package/src/hooks/useComponentState.ts +55 -183
  346. package/src/hooks/useMedia.tsx +10 -8
  347. package/src/hooks/useStyle.ts +10 -0
  348. package/src/hooks/useThemeState.ts +51 -264
  349. package/src/index.ts +6 -6
  350. package/src/internalRuntimeTypes.ts +1 -0
  351. package/src/static-resolve.ts +7 -4
  352. package/src/style.ts +97 -0
  353. package/src/styled.tsx +39 -68
  354. package/src/types.tsx +105 -169
  355. package/src/views/TamaguiProvider.tsx +0 -2
  356. package/src/views/Text.tsx +20 -14
  357. package/src/views/Theme.tsx +13 -9
  358. package/src/views/ThemeDebug.tsx +0 -1
  359. package/types/createComponent.d.ts.map +1 -1
  360. package/types/createStyledHOC.d.ts +1 -1
  361. package/types/createStyledHOC.d.ts.map +1 -1
  362. package/types/createVariable.d.ts +0 -2
  363. package/types/createVariable.d.ts.map +1 -1
  364. package/types/helpers/borderComponents.d.ts +10 -0
  365. package/types/helpers/borderComponents.d.ts.map +1 -0
  366. package/types/helpers/createDesignSystem.d.ts.map +1 -1
  367. package/types/helpers/createStyledContext.d.ts.map +1 -1
  368. package/types/helpers/getCSSStylesAtomic.d.ts +20 -19
  369. package/types/helpers/getCSSStylesAtomic.d.ts.map +1 -1
  370. package/types/helpers/getCSSStylesAtomic.native.d.ts +5 -0
  371. package/types/helpers/getCSSStylesAtomic.native.d.ts.map +1 -1
  372. package/types/helpers/getCSSStylesAtomicCompiled.d.ts +6 -1
  373. package/types/helpers/getCSSStylesAtomicCompiled.d.ts.map +1 -1
  374. package/types/helpers/getDynamicVal.d.ts.map +1 -1
  375. package/types/helpers/getSplitStyles.d.ts +3 -5
  376. package/types/helpers/getSplitStyles.d.ts.map +1 -1
  377. package/types/helpers/grammarConfig.d.ts +25 -2
  378. package/types/helpers/grammarConfig.d.ts.map +1 -1
  379. package/types/helpers/insertStyleRule.d.ts +1 -0
  380. package/types/helpers/insertStyleRule.d.ts.map +1 -1
  381. package/types/helpers/log.d.ts.map +1 -1
  382. package/types/helpers/mergeVariants.d.ts.map +1 -1
  383. package/types/helpers/nativeOnlyProps.d.ts +0 -1
  384. package/types/helpers/nativeOnlyProps.d.ts.map +1 -1
  385. package/types/helpers/nativeStyleEngine.d.ts +6 -0
  386. package/types/helpers/nativeStyleEngine.d.ts.map +1 -1
  387. package/types/helpers/normalizeValueWithProperty.d.ts.map +1 -1
  388. package/types/helpers/parseBorderShorthand.native.d.ts +1 -0
  389. package/types/helpers/parseBorderShorthand.native.d.ts.map +1 -1
  390. package/types/helpers/parseOutlineShorthand.native.d.ts.map +1 -1
  391. package/types/helpers/resolveSafeArea.d.ts +0 -1
  392. package/types/helpers/resolveSafeArea.d.ts.map +1 -1
  393. package/types/helpers/resolveVariantStyle.d.ts +3 -0
  394. package/types/helpers/resolveVariantStyle.d.ts.map +1 -0
  395. package/types/helpers/styleFrontend.d.ts +3 -5
  396. package/types/helpers/styleFrontend.d.ts.map +1 -1
  397. package/types/helpers/styleStaticConfig.d.ts +4 -9
  398. package/types/helpers/styleStaticConfig.d.ts.map +1 -1
  399. package/types/helpers/styleStaticConfigCore.d.ts +4 -0
  400. package/types/helpers/styleStaticConfigCore.d.ts.map +1 -0
  401. package/types/helpers/styledDynamic.d.ts +18 -0
  402. package/types/helpers/styledDynamic.d.ts.map +1 -0
  403. package/types/helpers/tokenCategories.d.ts +0 -1
  404. package/types/helpers/tokenCategories.d.ts.map +1 -1
  405. package/types/helpers/variableValue.d.ts.map +1 -1
  406. package/types/helpers/warnOnce.d.ts.map +1 -1
  407. package/types/helpers/webPropsToSkip.native.d.ts +68 -68
  408. package/types/hooks/useAnimationDriver.d.ts.map +1 -1
  409. package/types/hooks/useComponentState.d.ts.map +1 -1
  410. package/types/hooks/useMedia.d.ts.map +1 -1
  411. package/types/hooks/useStyle.d.ts +4 -0
  412. package/types/hooks/useStyle.d.ts.map +1 -0
  413. package/types/hooks/useThemeState.d.ts +1 -11
  414. package/types/hooks/useThemeState.d.ts.map +1 -1
  415. package/types/index.d.ts +6 -4
  416. package/types/index.d.ts.map +1 -1
  417. package/types/internalRuntimeTypes.d.ts +1 -1
  418. package/types/internalRuntimeTypes.d.ts.map +1 -1
  419. package/types/static-resolve.d.ts.map +1 -1
  420. package/types/style.d.ts +18 -0
  421. package/types/style.d.ts.map +1 -0
  422. package/types/styled.d.ts +10 -10
  423. package/types/styled.d.ts.map +1 -1
  424. package/types/types.d.ts +74 -49
  425. package/types/types.d.ts.map +1 -1
  426. package/types/views/TamaguiProvider.d.ts +1 -1
  427. package/types/views/TamaguiProvider.d.ts.map +1 -1
  428. package/types/views/Text.d.ts.map +1 -1
  429. package/types/views/Theme.d.ts.map +1 -1
  430. package/types/views/ThemeDebug.d.ts.map +1 -1
  431. package/dist/cjs/helpers/directStyleCSS.cjs +0 -345
  432. package/dist/cjs/helpers/directStyleCSS.native.js.map +0 -1
  433. package/dist/cjs/helpers/directStyleCSSCompiled.cjs +0 -40
  434. package/dist/cjs/helpers/directStyleCSSCompiled.native.cjs +0 -46
  435. package/dist/cjs/helpers/directStyleCSSCompiled.native.js +0 -48
  436. package/dist/cjs/helpers/directStyleCSSCompiled.native.js.map +0 -1
  437. package/dist/cjs/helpers/getVariantExtras.cjs +0 -91
  438. package/dist/cjs/helpers/getVariantExtras.native.cjs +0 -94
  439. package/dist/cjs/helpers/getVariantExtras.native.js +0 -96
  440. package/dist/cjs/helpers/getVariantExtras.native.js.map +0 -1
  441. package/dist/cjs/helpers/variantResolvers.cjs +0 -87
  442. package/dist/cjs/helpers/variantResolvers.native.cjs +0 -140
  443. package/dist/cjs/helpers/variantResolvers.native.js +0 -142
  444. package/dist/cjs/helpers/variantResolvers.native.js.map +0 -1
  445. package/dist/esm/helpers/directStyleCSS.mjs +0 -317
  446. package/dist/esm/helpers/directStyleCSS.mjs.map +0 -1
  447. package/dist/esm/helpers/directStyleCSS.native.js +0 -1
  448. package/dist/esm/helpers/directStyleCSSCompiled.mjs +0 -11
  449. package/dist/esm/helpers/directStyleCSSCompiled.mjs.map +0 -1
  450. package/dist/esm/helpers/directStyleCSSCompiled.native.js +0 -15
  451. package/dist/esm/helpers/directStyleCSSCompiled.native.js.map +0 -1
  452. package/dist/esm/helpers/getVariantExtras.mjs +0 -69
  453. package/dist/esm/helpers/getVariantExtras.mjs.map +0 -1
  454. package/dist/esm/helpers/getVariantExtras.native.js +0 -70
  455. package/dist/esm/helpers/getVariantExtras.native.js.map +0 -1
  456. package/dist/esm/helpers/variantResolvers.mjs +0 -65
  457. package/dist/esm/helpers/variantResolvers.mjs.map +0 -1
  458. package/dist/esm/helpers/variantResolvers.native.js +0 -116
  459. package/dist/esm/helpers/variantResolvers.native.js.map +0 -1
  460. package/src/helpers/directStyleCSS.native.ts +0 -1
  461. package/src/helpers/directStyleCSS.ts +0 -513
  462. package/src/helpers/directStyleCSSCompiled.ts +0 -32
  463. package/src/helpers/getVariantExtras.tsx +0 -95
  464. package/src/helpers/variantResolvers.ts +0 -121
  465. package/types/helpers/directStyleCSS.d.ts +0 -28
  466. package/types/helpers/directStyleCSS.d.ts.map +0 -1
  467. package/types/helpers/directStyleCSS.native.d.ts +0 -2
  468. package/types/helpers/directStyleCSS.native.d.ts.map +0 -1
  469. package/types/helpers/directStyleCSSCompiled.d.ts +0 -10
  470. package/types/helpers/directStyleCSSCompiled.d.ts.map +0 -1
  471. package/types/helpers/getVariantExtras.d.ts +0 -4
  472. package/types/helpers/getVariantExtras.d.ts.map +0 -1
  473. package/types/helpers/variantResolvers.d.ts +0 -9
  474. package/types/helpers/variantResolvers.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"useThemeState.native.js","names":[],"sources":["cjs/hooks/useThemeState.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar useThemeState_exports = {};\n__export(useThemeState_exports, {\n\tThemeStateContext: () => ThemeStateContext,\n\tforceUpdateThemes: () => forceUpdateThemes,\n\tgetNewThemeName: () => getNewThemeName,\n\tgetRootThemeState: () => getRootThemeState,\n\tgetThemeNameCacheSize: () => getThemeNameCacheSize,\n\tgetThemeProviderChainSizes: () => getThemeProviderChainSizes,\n\tgetThemeProviderParent: () => getThemeProviderParent,\n\tgetThemeState: () => getThemeState,\n\tgetThemeUpdateLayer: () => getThemeUpdateLayer,\n\thasThemeUpdatingProps: () => hasThemeUpdatingProps,\n\tresolveThemeName: () => resolveThemeName,\n\tuseThemeState: () => useThemeState\n});\nmodule.exports = __toCommonJS(useThemeState_exports);\nvar import_constants = require(\"@tamagui/constants\");\nvar import_react = require(\"react\");\nvar import_config = require(\"../config\");\nvar import_formatDiagnostic = require(\"../helpers/formatDiagnostic\");\nvar import_constants2 = require(\"../constants/constants\");\nvar ThemeStateContext = (0, import_react.createContext)(\"\");\nvar allListeners = /* @__PURE__ */ new Map();\nvar listenersByParent = {};\nvar HasRenderedOnce = /* @__PURE__ */ new WeakMap();\nvar HadTheme = /* @__PURE__ */ new WeakMap();\nvar PendingUpdate = /* @__PURE__ */ new Map();\nvar states = /* @__PURE__ */ new Map();\nvar localStates = /* @__PURE__ */ new Map();\nvar shouldForce = false;\nvar forceUpdateThemes = function() {\n\tcacheVersion++;\n\tshouldForce = true;\n\tallListeners.forEach(function(cb) {\n\t\treturn cb();\n\t});\n\tshouldForce = false;\n};\nvar getThemeState = function(id) {\n\treturn states.get(id);\n};\nvar themeUpdateLayers = /* @__PURE__ */ new Map();\nvar themeProviderParents = /* @__PURE__ */ new Map();\nvar getThemeUpdateLayer = function(id) {\n\treturn themeUpdateLayers.get(id);\n};\nvar getThemeProviderParent = function(id) {\n\treturn themeProviderParents.get(id);\n};\nvar getThemeProviderChainSizes = function() {\n\treturn {\n\t\tlayers: themeUpdateLayers.size,\n\t\tparents: themeProviderParents.size\n\t};\n};\nvar registerThemeProviderChain = function(id, parentId, props) {\n\tthemeProviderParents.set(id, parentId);\n\tif (props._themeUpdate) themeUpdateLayers.set(id, props._themeUpdate);\n\telse themeUpdateLayers.delete(id);\n};\nvar cacheVersion = 0;\nvar themeNameCache = /* @__PURE__ */ new Map();\nvar themeNameCacheVer = -1;\nvar themes = null;\nvar rootThemeState = null;\nvar getRootThemeState = function() {\n\treturn rootThemeState;\n};\nvar getThemeBaseName = function(name) {\n\treturn name.replace(/^(light|dark)_/, \"\");\n};\nvar incReducer = function(c) {\n\treturn c + 1;\n};\nvar useThemeState = function(props) {\n\t\"use no memo\";\n\tvar isRoot = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false, keys = arguments.length > 2 ? arguments[2] : void 0, schemeKeys = arguments.length > 3 ? arguments[3] : void 0, cascadeOnChange = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false, optimizeForFirstRender = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : false;\n\tvar { disable } = props;\n\tvar parentId = (0, import_react.useContext)(ThemeStateContext);\n\tif (!parentId && !isRoot) throw new Error(process.env.NODE_ENV === \"development\" ? `${import_constants2.MISSING_THEME_MESSAGE}\n\nLooked for theme${props.name ? ` \"${props.name}\"` : \"\"}, but no parent theme context was found (parentId: ${parentId}).` : import_constants2.MISSING_THEME_MESSAGE);\n\tif (disable) return states.get(parentId) || {\n\t\tid: \"\",\n\t\tname: \"light\",\n\t\ttheme: (0, import_config.getConfig)().themes.light\n\t};\n\tvar id = (0, import_react.useId)();\n\tvar propsKey = getPropsKey(props);\n\tif (cascadeOnChange) registerThemeProviderChain(id, parentId, props);\n\tvar ref = (0, import_react.useRef)(null);\n\tif (!ref.current) ref.current = {\n\t\tid,\n\t\tparentId,\n\t\tprops,\n\t\tpropsKey,\n\t\tisRoot,\n\t\tkeys,\n\t\tschemeKeys,\n\t\toptimizeForFirstRender,\n\t\trenderVersion: 0\n\t};\n\telse {\n\t\tref.current.props = props;\n\t\tref.current.propsKey = propsKey;\n\t\tref.current.isRoot = isRoot;\n\t\tref.current.keys = keys;\n\t\tref.current.schemeKeys = schemeKeys;\n\t\tref.current.parentId = parentId;\n\t}\n\tref.current.renderVersion++;\n\tif (process.env.NODE_ENV === \"development\" && globalThis.time) globalThis.time`theme-prep-uses`;\n\tvar [, forceUpdate] = (0, import_react.useReducer)(incReducer, 0);\n\tvar state = getSnapshotImpl(ref.current);\n\tref.current.lastSnap = state;\n\t(0, import_react.useEffect)(function() {\n\t\tvar r = ref.current;\n\t\tvar renderVersion = r.renderVersion;\n\t\tif (r.lastSnap && !states.has(r.id)) {\n\t\t\tstates.set(r.id, r.lastSnap);\n\t\t\tlocalStates.set(r.id, r.lastSnap);\n\t\t}\n\t\tif (cascadeOnChange && !themeProviderParents.has(r.id)) registerThemeProviderChain(r.id, r.parentId, r.props);\n\t\tif (r.unsubscribe && r.subscribedParentId !== r.parentId) cleanupThemeSubscription(r);\n\t\tif (shouldSubscribeToTheme(r, cascadeOnChange)) {\n\t\t\tif (!r.unsubscribe) {\n\t\t\t\tvar pid = r.parentId;\n\t\t\t\tvar sid = r.id;\n\t\t\t\tvar cb = function(forced) {\n\t\t\t\t\tvar next = getSnapshotImpl(r);\n\t\t\t\t\tif (next !== r.lastSnap) {\n\t\t\t\t\t\tvar _r_props_nativeUpdate, _r_props;\n\t\t\t\t\t\tr.lastSnap = next;\n\t\t\t\t\t\tif (!forced && ((_r_props_nativeUpdate = (_r_props = r.props).nativeUpdate) === null || _r_props_nativeUpdate === void 0 ? void 0 : _r_props_nativeUpdate.call(_r_props, next))) return;\n\t\t\t\t\t\tforceUpdate();\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tlistenersByParent[pid] = listenersByParent[pid] || /* @__PURE__ */ new Set();\n\t\t\t\tlistenersByParent[pid].add(sid);\n\t\t\t\tallListeners.set(sid, function() {\n\t\t\t\t\tvar forced = shouldForce;\n\t\t\t\t\tPendingUpdate.set(sid, forced ? \"force\" : true);\n\t\t\t\t\tcb(forced);\n\t\t\t\t});\n\t\t\t\tr.subscribedParentId = pid;\n\t\t\t\tr.unsubscribe = function() {\n\t\t\t\t\tvar _listenersByParent_pid;\n\t\t\t\t\tallListeners.delete(sid);\n\t\t\t\t\t(_listenersByParent_pid = listenersByParent[pid]) === null || _listenersByParent_pid === void 0 || _listenersByParent_pid.delete(sid);\n\t\t\t\t\tlocalStates.delete(sid);\n\t\t\t\t\tstates.delete(sid);\n\t\t\t\t\tPendingUpdate.delete(sid);\n\t\t\t\t\tr.unsubscribe = void 0;\n\t\t\t\t\tr.subscribedParentId = void 0;\n\t\t\t\t};\n\t\t\t}\n\t\t} else if (r.unsubscribe) cleanupThemeSubscription(r);\n\t\treturn function() {\n\t\t\tif (r.renderVersion === renderVersion) cleanupThemeState(r);\n\t\t};\n\t});\n\tif (cascadeOnChange) (0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\tif (!HasRenderedOnce.get(keys)) {\n\t\t\tHasRenderedOnce.set(keys, true);\n\t\t\treturn;\n\t\t}\n\t\tif (!propsKey) {\n\t\t\tif (HadTheme.get(keys)) scheduleUpdate(id);\n\t\t\tHadTheme.set(keys, false);\n\t\t\treturn;\n\t\t}\n\t\tif (process.env.NODE_ENV === \"development\" && props.debug === \"verbose\") {\n\t\t\tvar _states_get;\n\t\t\tconsole.warn(` \\xB7 useTheme(${id}) scheduleUpdate`, propsKey, (_states_get = states.get(id)) === null || _states_get === void 0 ? void 0 : _states_get.name);\n\t\t}\n\t\tscheduleUpdate(id);\n\t\tHadTheme.set(keys, true);\n\t}, [keys, propsKey]);\n\treturn state;\n};\nvar shouldSubscribeToTheme = function(r, cascadeOnChange) {\n\tvar _r_keys_current, _r_props_needsUpdate, _r_props;\n\treturn r.optimizeForFirstRender || r.isRoot || cascadeOnChange || hasThemeUpdatingProps(r.props) || !!((_r_keys_current = r.keys.current) === null || _r_keys_current === void 0 ? void 0 : _r_keys_current.size) || !!((_r_props_needsUpdate = (_r_props = r.props).needsUpdate) === null || _r_props_needsUpdate === void 0 ? void 0 : _r_props_needsUpdate.call(_r_props));\n};\nfunction cleanupThemeSubscription(r) {\n\tvar _r_unsubscribe;\n\t(_r_unsubscribe = r.unsubscribe) === null || _r_unsubscribe === void 0 || _r_unsubscribe.call(r);\n}\nfunction cleanupThemeState(r) {\n\tif (r.unsubscribe) cleanupThemeSubscription(r);\n\telse {\n\t\tlocalStates.delete(r.id);\n\t\tstates.delete(r.id);\n\t\tPendingUpdate.delete(r.id);\n\t}\n\tthemeUpdateLayers.delete(r.id);\n\tthemeProviderParents.delete(r.id);\n}\nvar getSnapshotImpl = function(r) {\n\tvar _keys_current, _props_needsUpdate;\n\tvar { id, parentId, props, propsKey, isRoot, keys, schemeKeys, optimizeForFirstRender } = r;\n\tvar local = localStates.get(id);\n\tvar parentState = states.get(parentId);\n\tif (local && !PendingUpdate.has(id)) {\n\t\tif (parentState && local._parentName === parentState.name && local._propsKey === propsKey) return local;\n\t}\n\tvar isSchemeOnlyChange = !optimizeForFirstRender && import_constants.supportsDynamicColorIOS && (0, import_config.getSetting)(\"fastSchemeChange\") && local && parentState && local.scheme !== parentState.scheme && getThemeBaseName(local.name) === getThemeBaseName(parentState.name);\n\tvar allKeysSchemeOptimized = false;\n\tif (!optimizeForFirstRender) {\n\t\tvar _keys_current1, _schemeKeys_current;\n\t\tvar _keys_current_size;\n\t\tvar keysSize = (_keys_current_size = (_keys_current1 = keys.current) === null || _keys_current1 === void 0 ? void 0 : _keys_current1.size) !== null && _keys_current_size !== void 0 ? _keys_current_size : 0;\n\t\tvar _schemeKeys_current_size;\n\t\tallKeysSchemeOptimized = ((_schemeKeys_current_size = schemeKeys === null || schemeKeys === void 0 ? void 0 : (_schemeKeys_current = schemeKeys.current) === null || _schemeKeys_current === void 0 ? void 0 : _schemeKeys_current.size) !== null && _schemeKeys_current_size !== void 0 ? _schemeKeys_current_size : 0) === keysSize && keysSize > 0;\n\t}\n\tvar canSkipForSchemeChange = !!isSchemeOnlyChange && allKeysSchemeOptimized;\n\tvar needsUpdate = props.passThrough ? false : optimizeForFirstRender ? true : isRoot || props.name === \"light\" || props.name === \"dark\" || props.name === null ? true : !HasRenderedOnce.get(keys) ? true : canSkipForSchemeChange ? false : (keys === null || keys === void 0 ? void 0 : (_keys_current = keys.current) === null || _keys_current === void 0 ? void 0 : _keys_current.size) ? true : (_props_needsUpdate = props.needsUpdate) === null || _props_needsUpdate === void 0 ? void 0 : _props_needsUpdate.call(props);\n\tvar [rerender, nextRaw] = getNextState(local, props, propsKey, isRoot, id, parentId, needsUpdate, PendingUpdate.get(id));\n\tvar next = nextRaw;\n\tif (props._themeUpdate && (nextRaw === null || nextRaw === void 0 ? void 0 : nextRaw.theme)) {\n\t\tvar _states_get;\n\t\tvar parentTheme = ((_states_get = states.get(parentId)) === null || _states_get === void 0 ? void 0 : _states_get.theme) || nextRaw.theme;\n\t\tvar merged = props._themeUpdate.getTheme(parentTheme, nextRaw.name, (0, import_config.getConfig)());\n\t\tif (merged !== nextRaw.theme) next = {\n\t\t\t...nextRaw,\n\t\t\ttheme: merged\n\t\t};\n\t}\n\tPendingUpdate.delete(id);\n\tif (!local || rerender) {\n\t\tlocal = { ...next };\n\t\tlocalStates.set(id, local);\n\t}\n\tif (process.env.NODE_ENV === \"development\" && props.debug === \"verbose\") {\n\t\tconsole.groupCollapsed(` ${id} getSnapshot ${rerender}`, local.name, \">\", next.name);\n\t\tconsole.info({\n\t\t\tprops,\n\t\t\tpropsKey,\n\t\t\tisRoot,\n\t\t\tparentId,\n\t\t\tlocal,\n\t\t\tnext,\n\t\t\tneedsUpdate,\n\t\t\tisSchemeOnlyChange,\n\t\t\tallKeysSchemeOptimized,\n\t\t\tcanSkipForSchemeChange\n\t\t});\n\t\tconsole.groupEnd();\n\t}\n\tif (next !== local) {\n\t\tObject.assign(local, next);\n\t\tlocal.id = id;\n\t}\n\tlocal._parentName = parentState === null || parentState === void 0 ? void 0 : parentState.name;\n\tlocal._propsKey = propsKey;\n\tstates.set(id, next);\n\treturn local;\n};\nvar getNextState = function(lastState, props, propsKey) {\n\tvar isRoot = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false, id = arguments.length > 4 ? arguments[4] : void 0, parentId = arguments.length > 5 ? arguments[5] : void 0, needsUpdate = arguments.length > 6 ? arguments[6] : void 0, pendingUpdate = arguments.length > 7 ? arguments[7] : void 0;\n\tvar { debug } = props;\n\tvar parentState = states.get(parentId);\n\tif (props.passThrough) return [false, lastState || parentState || { name: \"\" }];\n\tif (!themes) themes = (0, import_config.getConfig)().themes;\n\tvar name = !propsKey && (!lastState || !(lastState === null || lastState === void 0 ? void 0 : lastState.isNew)) ? null : getNewThemeName(parentState === null || parentState === void 0 ? void 0 : parentState.name, props, pendingUpdate === \"force\" ? true : !!needsUpdate);\n\tvar isSameAsParent = parentState && (!name || name === parentState.name);\n\tvar shouldRerender = Boolean(pendingUpdate === \"force\" || needsUpdate && (pendingUpdate || (lastState === null || lastState === void 0 ? void 0 : lastState.name) !== (parentState === null || parentState === void 0 ? void 0 : parentState.name)));\n\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\tvar message = ` \\xB7 useTheme(${id}) getNextState => ${name} needsUpdate ${needsUpdate} shouldRerender ${shouldRerender}`;\n\t\tconsole.info(message);\n\t}\n\tif (isSameAsParent) {\n\t\tif (!shouldRerender && lastState && lastState.name === parentState.name) return [false, lastState];\n\t\treturn [shouldRerender, {\n\t\t\t...parentState,\n\t\t\tisNew: false\n\t\t}];\n\t}\n\tif (!name) {\n\t\tvar _ref, _ref1;\n\t\tvar next = (_ref1 = (_ref = lastState !== null && lastState !== void 0 ? lastState : parentState) !== null && _ref !== void 0 ? _ref : rootThemeState) !== null && _ref1 !== void 0 ? _ref1 : {\n\t\t\tid,\n\t\t\tname: \"light\",\n\t\t\ttheme: (0, import_config.getConfig)().themes.light\n\t\t};\n\t\tif (shouldRerender) return [true, { ...parentState || lastState || next }];\n\t\treturn [false, next];\n\t}\n\tvar scheme = getScheme(name);\n\tvar _parentState_inverses;\n\tvar parentInverses = (_parentState_inverses = parentState === null || parentState === void 0 ? void 0 : parentState.inverses) !== null && _parentState_inverses !== void 0 ? _parentState_inverses : 0;\n\tvar isInverse = parentState && scheme !== parentState.scheme;\n\tvar inverses = parentInverses + (isInverse ? 1 : 0);\n\tvar nextState = {\n\t\tid,\n\t\tname,\n\t\ttheme: themes[name],\n\t\tscheme,\n\t\tparentId,\n\t\tparentName: parentState === null || parentState === void 0 ? void 0 : parentState.name,\n\t\tinverses,\n\t\tisInverse,\n\t\tisNew: true\n\t};\n\tif (isRoot) rootThemeState = nextState;\n\tif (pendingUpdate !== \"force\" && lastState && lastState.name === name) return [false, nextState];\n\tvar shouldAvoidRerender = pendingUpdate !== \"force\" && lastState && !needsUpdate && nextState.name === lastState.name;\n\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\tconsole.groupCollapsed(` \\xB7 useTheme(${id}) \\u23ED\\uFE0F ${name} shouldAvoidRerender: ${shouldAvoidRerender}`);\n\t\tconsole.info({\n\t\t\tlastState,\n\t\t\tneedsUpdate,\n\t\t\tnextState,\n\t\t\tpendingUpdate\n\t\t});\n\t\tconsole.groupEnd();\n\t}\n\tif (shouldAvoidRerender) return [false, nextState];\n\treturn [true, nextState];\n};\nfunction scheduleUpdate(id) {\n\tvar queue = [id];\n\tvar visited = /* @__PURE__ */ new Set();\n\twhile (queue.length) {\n\t\tvar children = listenersByParent[queue.shift()];\n\t\tif (children) {\n\t\t\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\t\t\ttry {\n\t\t\t\tfor (var _iterator = children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\t\t\tvar childId = _step.value;\n\t\t\t\t\tif (!visited.has(childId)) {\n\t\t\t\t\t\tvisited.add(childId);\n\t\t\t\t\t\tqueue.push(childId);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (err) {\n\t\t\t\t_didIteratorError = true;\n\t\t\t\t_iteratorError = err;\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t\t\t} finally {\n\t\t\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tvisited.forEach(function(childId2) {\n\t\tvar cb = allListeners.get(childId2);\n\t\tcb === null || cb === void 0 || cb();\n\t});\n}\nvar validSchemes = {\n\tlight: \"light\",\n\tdark: \"dark\"\n};\nfunction getScheme(name) {\n\treturn validSchemes[name.split(\"_\")[0]];\n}\nfunction getNewThemeName() {\n\tvar parentName = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : \"\", props = arguments.length > 1 ? arguments[1] : void 0, forceUpdate = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;\n\tvar { name, reset } = props;\n\tif (name && reset) throw new Error((0, import_formatDiagnostic.formatDiagnostic)(\"❌004\", \"Theme\", \"props name and reset are mutually exclusive\", \"Pass either name or reset, not both\", \"name,reset\", {\n\t\tname,\n\t\treset\n\t}));\n\tvar cacheKey = `${parentName}|${name || \"\"}|${reset ? 1 : 0}|${forceUpdate ? 1 : 0}`;\n\tif (themeNameCacheVer !== cacheVersion) {\n\t\tthemeNameCache.clear();\n\t\tthemeNameCacheVer = cacheVersion;\n\t} else {\n\t\tvar cached = themeNameCache.get(cacheKey);\n\t\tif (cached !== void 0) return cached;\n\t}\n\tvar result = resolveThemeName(parentName, name !== null && name !== void 0 ? name : void 0, reset, (0, import_config.getConfig)().themes, forceUpdate);\n\tif (themeNameCache.size >= 1e4) themeNameCache.clear();\n\tthemeNameCache.set(cacheKey, result);\n\treturn result;\n}\nvar getThemeNameCacheSize = function() {\n\treturn themeNameCache.size;\n};\nfunction resolveThemeName(parentName, name, reset, themes2) {\n\tvar forceUpdate = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false;\n\tif (reset) {\n\t\tif (parentName === \"light\" || parentName === \"dark\") return parentName === \"light\" ? \"dark\" : \"light\";\n\t\tvar lastPartIndex = parentName.lastIndexOf(\"_\");\n\t\tvar resetName = lastPartIndex <= 0 ? parentName : parentName.slice(lastPartIndex);\n\t\tvar scheme = parentName.slice(0, lastPartIndex);\n\t\treturn themes2[resetName] ? resetName : scheme;\n\t}\n\tvar parentParts = parentName ? parentName.split(\"_\") : [];\n\tvar found = null;\n\tif (name) {\n\t\tvar nameHasScheme = getScheme(name);\n\t\tif (nameHasScheme && name in themes2) found = name;\n\t\tif (!found && !nameHasScheme) for (var i = parentParts.length; i >= 0; i--) {\n\t\t\tvar base = parentParts.slice(0, i).join(\"_\");\n\t\t\tvar potential = base ? `${base}_${name}` : name;\n\t\t\tif (potential in themes2) {\n\t\t\t\tfound = potential;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tif (!forceUpdate && found === parentName && !validSchemes[found]) return null;\n\treturn found;\n}\nvar getPropsKey = function(param) {\n\tvar { name, reset, forceClassName, _themeUpdate } = param;\n\treturn `${name || \"\"}${reset || \"\"}${forceClassName || \"\"}${(_themeUpdate === null || _themeUpdate === void 0 ? void 0 : _themeUpdate.key) || \"\"}`;\n};\nvar hasThemeUpdatingProps = function(props) {\n\treturn \"name\" in props || \"reset\" in props || \"forceClassName\" in props || \"_themeUpdate\" in props;\n};\n//# sourceMappingURL=useThemeState.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC/B,KAAK,IAAI,QAAQ,KAAK,UAAU,QAAQ,MAAM;EAC7C,KAAK,IAAI;EACT,YAAY;CACb,CAAC;AACF;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC7C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EACnE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GAAG,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QAAQ,UAAU,IAAI,KAAK;GAC9G,WAAW,KAAK;GAChB,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Q,OAAO;CACzE,OAAO;AACR;AACA,IAAI,cAAc,SAAS,OAAO;CACjC,IAAI,EAAE,MAAM,OAAO,gBAAgB,iBAAiB;CACpD,OAAO,GAAG,QAAQ,KAAK,SAAS,KAAK,kBAAkB,MAAM,iBAAiB,QAAQ,iBAAiB,KAAK,IAAI,KAAK,IAAI,aAAa,QAAQ;AAC/I;AACA,IAAI,wBAAwB,SAAS,OAAO;CAC3C,OAAO,UAAU,SAAS,WAAW,SAAS,oBAAoB,SAAS,kBAAkB;AAC9F"}
1
+ {"version":3,"file":"useThemeState.native.js","names":[],"sources":["cjs/hooks/useThemeState.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar useThemeState_exports = {};\n__export(useThemeState_exports, {\n\tThemeStateContext: () => ThemeStateContext,\n\tforceUpdateThemes: () => forceUpdateThemes,\n\tgetNewThemeName: () => getNewThemeName,\n\tgetRootThemeState: () => getRootThemeState,\n\tgetThemeNameCacheSize: () => getThemeNameCacheSize,\n\tgetThemeProviderChainSizes: () => getThemeProviderChainSizes,\n\tgetThemeProviderParent: () => getThemeProviderParent,\n\tgetThemeState: () => getThemeState,\n\tgetThemeUpdateLayer: () => getThemeUpdateLayer,\n\thasThemeUpdatingProps: () => hasThemeUpdatingProps,\n\tresolveThemeName: () => resolveThemeName,\n\tuseThemeState: () => useThemeState\n});\nmodule.exports = __toCommonJS(useThemeState_exports);\nvar import_constants = require(\"@tamagui/constants\");\nvar import_react = require(\"react\");\nvar import_config = require(\"../config\");\nvar import_constants2 = require(\"../constants/constants\");\nvar ThemeStateContext = (0, import_react.createContext)(\"\");\nvar allListeners = /* @__PURE__ */ new Map();\nvar listenersByParent = {};\nvar HasRenderedOnce = /* @__PURE__ */ new WeakMap();\nvar HadTheme = /* @__PURE__ */ new WeakMap();\nvar PendingUpdate = /* @__PURE__ */ new Map();\nvar states = /* @__PURE__ */ new Map();\nvar localStates = /* @__PURE__ */ new Map();\nvar shouldForce = false;\nvar forceUpdateThemes = function() {\n\tcacheVersion++;\n\tshouldForce = true;\n\tallListeners.forEach(function(cb) {\n\t\treturn cb();\n\t});\n\tshouldForce = false;\n};\nvar getThemeState = function(id) {\n\treturn states.get(id);\n};\nvar themeUpdateLayers = /* @__PURE__ */ new Map();\nvar themeProviderParents = /* @__PURE__ */ new Map();\nvar getThemeUpdateLayer = function(id) {\n\treturn themeUpdateLayers.get(id);\n};\nvar getThemeProviderParent = function(id) {\n\treturn themeProviderParents.get(id);\n};\nvar getThemeProviderChainSizes = function() {\n\treturn {\n\t\tlayers: themeUpdateLayers.size,\n\t\tparents: themeProviderParents.size\n\t};\n};\nvar registerThemeProviderChain = function(id, parentId, props) {\n\tthemeProviderParents.set(id, parentId);\n\tif (props._themeUpdate) themeUpdateLayers.set(id, props._themeUpdate);\n\telse themeUpdateLayers.delete(id);\n};\nvar cacheVersion = 0;\nvar themeNameCache = /* @__PURE__ */ new Map();\nvar themeNameCacheVer = -1;\nvar themes = null;\nvar rootThemeState = null;\nvar getRootThemeState = function() {\n\treturn rootThemeState;\n};\nvar getThemeBaseName = function(name) {\n\treturn name.replace(/^(light|dark)_/, \"\");\n};\nvar incReducer = function(c) {\n\treturn c + 1;\n};\nvar useThemeState = function(props) {\n\t\"use no memo\";\n\tvar isRoot = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false, keys = arguments.length > 2 ? arguments[2] : void 0, schemeKeys = arguments.length > 3 ? arguments[3] : void 0, cascadeOnChange = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false, optimizeForFirstRender = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : false;\n\tvar _ref;\n\tvar { disable } = props;\n\tvar parentId = (0, import_react.useContext)(ThemeStateContext);\n\tif (!parentId && !isRoot) throw new Error(process.env.NODE_ENV === \"development\" ? `${import_constants2.MISSING_THEME_MESSAGE}\n\nLooked for theme${props.name ? ` \"${props.name}\"` : \"\"}, but no parent theme context was found (parentId: ${parentId}).` : import_constants2.MISSING_THEME_MESSAGE);\n\tif (disable) return states.get(parentId) || {\n\t\tid: \"\",\n\t\tname: \"light\",\n\t\ttheme: (0, import_config.getConfig)().themes.light\n\t};\n\tvar id = (0, import_react.useId)();\n\tvar propsKey = getPropsKey(props);\n\tif (cascadeOnChange) registerThemeProviderChain(id, parentId, props);\n\tvar r = (_ref = (0, import_react.useRef)(null)).current || (_ref.current = {\n\t\tid,\n\t\tparentId,\n\t\tprops,\n\t\tpropsKey,\n\t\tisRoot,\n\t\tkeys,\n\t\tschemeKeys,\n\t\toptimizeForFirstRender,\n\t\trenderVersion: 0\n\t});\n\tr.props = props;\n\tr.propsKey = propsKey;\n\tr.isRoot = isRoot;\n\tr.keys = keys;\n\tr.schemeKeys = schemeKeys;\n\tr.parentId = parentId;\n\tr.renderVersion++;\n\tvar [, forceUpdate] = (0, import_react.useReducer)(incReducer, 0);\n\tvar state = getSnapshotImpl(r);\n\tr.lastSnap = state;\n\t(0, import_react.useEffect)(function() {\n\t\tvar renderVersion = r.renderVersion;\n\t\tif (r.lastSnap && !states.has(r.id)) {\n\t\t\tstates.set(r.id, r.lastSnap);\n\t\t\tlocalStates.set(r.id, r.lastSnap);\n\t\t}\n\t\tif (cascadeOnChange && !themeProviderParents.has(r.id)) registerThemeProviderChain(r.id, r.parentId, r.props);\n\t\tif (r.unsubscribe && r.subscribedParentId !== r.parentId) cleanupThemeSubscription(r);\n\t\tif (shouldSubscribeToTheme(r, cascadeOnChange)) {\n\t\t\tif (!r.unsubscribe) {\n\t\t\t\tvar _listenersByParent, _pid;\n\t\t\t\tvar pid = r.parentId;\n\t\t\t\tvar sid = r.id;\n\t\t\t\tvar cb = function(forced) {\n\t\t\t\t\tvar next = getSnapshotImpl(r);\n\t\t\t\t\tif (next !== r.lastSnap) {\n\t\t\t\t\t\tvar _r_props_nativeUpdate, _r_props;\n\t\t\t\t\t\tr.lastSnap = next;\n\t\t\t\t\t\tif (!forced && ((_r_props_nativeUpdate = (_r_props = r.props).nativeUpdate) === null || _r_props_nativeUpdate === void 0 ? void 0 : _r_props_nativeUpdate.call(_r_props, next))) return;\n\t\t\t\t\t\tforceUpdate();\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\t((_listenersByParent = listenersByParent)[_pid = pid] || (_listenersByParent[_pid] = /* @__PURE__ */ new Set())).add(sid);\n\t\t\t\tallListeners.set(sid, function() {\n\t\t\t\t\tvar forced = shouldForce;\n\t\t\t\t\tPendingUpdate.set(sid, forced ? \"force\" : true);\n\t\t\t\t\tcb(forced);\n\t\t\t\t});\n\t\t\t\tr.subscribedParentId = pid;\n\t\t\t\tr.unsubscribe = function() {\n\t\t\t\t\tvar _listenersByParent_pid;\n\t\t\t\t\tallListeners.delete(sid);\n\t\t\t\t\t(_listenersByParent_pid = listenersByParent[pid]) === null || _listenersByParent_pid === void 0 || _listenersByParent_pid.delete(sid);\n\t\t\t\t\tlocalStates.delete(sid);\n\t\t\t\t\tstates.delete(sid);\n\t\t\t\t\tPendingUpdate.delete(sid);\n\t\t\t\t\tr.unsubscribe = void 0;\n\t\t\t\t\tr.subscribedParentId = void 0;\n\t\t\t\t};\n\t\t\t}\n\t\t} else if (r.unsubscribe) cleanupThemeSubscription(r);\n\t\treturn function() {\n\t\t\tif (r.renderVersion === renderVersion) cleanupThemeState(r);\n\t\t};\n\t});\n\tif (cascadeOnChange) (0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\tif (!HasRenderedOnce.get(keys)) {\n\t\t\tHasRenderedOnce.set(keys, true);\n\t\t\treturn;\n\t\t}\n\t\tif (!propsKey) {\n\t\t\tif (HadTheme.get(keys)) scheduleUpdate(id);\n\t\t\tHadTheme.set(keys, false);\n\t\t\treturn;\n\t\t}\n\t\tscheduleUpdate(id);\n\t\tHadTheme.set(keys, true);\n\t}, [keys, propsKey]);\n\treturn state;\n};\nvar shouldSubscribeToTheme = function(r, cascadeOnChange) {\n\tvar _r_keys_current, _r_props_needsUpdate, _r_props;\n\treturn Boolean(r.optimizeForFirstRender || r.isRoot || cascadeOnChange || hasThemeUpdatingProps(r.props) || ((_r_keys_current = r.keys.current) === null || _r_keys_current === void 0 ? void 0 : _r_keys_current.size) || ((_r_props_needsUpdate = (_r_props = r.props).needsUpdate) === null || _r_props_needsUpdate === void 0 ? void 0 : _r_props_needsUpdate.call(_r_props)));\n};\nfunction cleanupThemeSubscription(r) {\n\tvar _r_unsubscribe;\n\t(_r_unsubscribe = r.unsubscribe) === null || _r_unsubscribe === void 0 || _r_unsubscribe.call(r);\n}\nfunction cleanupThemeState(r) {\n\tif (r.unsubscribe) cleanupThemeSubscription(r);\n\telse {\n\t\tlocalStates.delete(r.id);\n\t\tstates.delete(r.id);\n\t\tPendingUpdate.delete(r.id);\n\t}\n\tthemeUpdateLayers.delete(r.id);\n\tthemeProviderParents.delete(r.id);\n}\nvar getSnapshotImpl = function(r) {\n\tvar _keys_current, _schemeKeys_current, _keys_current1, _props_needsUpdate;\n\tvar { id, parentId, props, propsKey, isRoot, keys, schemeKeys, optimizeForFirstRender } = r;\n\tvar local = localStates.get(id);\n\tvar parentState = states.get(parentId);\n\tif (local && !PendingUpdate.has(id)) {\n\t\tif (parentState && local._parentName === parentState.name && local._propsKey === propsKey) return local;\n\t}\n\tvar isSchemeOnlyChange = !optimizeForFirstRender && import_constants.supportsDynamicColorIOS && (0, import_config.getSetting)(\"fastSchemeChange\") && local && parentState && local.scheme !== parentState.scheme && getThemeBaseName(local.name) === getThemeBaseName(parentState.name);\n\tvar allKeysSchemeOptimized = !optimizeForFirstRender && Boolean(((_keys_current = keys.current) === null || _keys_current === void 0 ? void 0 : _keys_current.size) && (schemeKeys === null || schemeKeys === void 0 ? void 0 : (_schemeKeys_current = schemeKeys.current) === null || _schemeKeys_current === void 0 ? void 0 : _schemeKeys_current.size) === keys.current.size);\n\tvar canSkipForSchemeChange = Boolean(isSchemeOnlyChange && allKeysSchemeOptimized);\n\tvar needsUpdate = props.passThrough ? false : optimizeForFirstRender ? true : isRoot || props.name === \"light\" || props.name === \"dark\" || props.name === null ? true : !HasRenderedOnce.get(keys) ? true : canSkipForSchemeChange ? false : (keys === null || keys === void 0 ? void 0 : (_keys_current1 = keys.current) === null || _keys_current1 === void 0 ? void 0 : _keys_current1.size) ? true : (_props_needsUpdate = props.needsUpdate) === null || _props_needsUpdate === void 0 ? void 0 : _props_needsUpdate.call(props);\n\tvar [rerender, nextRaw] = getNextState(local, props, propsKey, isRoot, id, parentId, needsUpdate, PendingUpdate.get(id));\n\tvar next = nextRaw;\n\tif (props._themeUpdate && (nextRaw === null || nextRaw === void 0 ? void 0 : nextRaw.theme)) {\n\t\tvar _states_get;\n\t\tvar parentTheme = ((_states_get = states.get(parentId)) === null || _states_get === void 0 ? void 0 : _states_get.theme) || nextRaw.theme;\n\t\tvar merged = props._themeUpdate.getTheme(parentTheme, nextRaw.name, (0, import_config.getConfig)());\n\t\tif (merged !== nextRaw.theme) next = {\n\t\t\t...nextRaw,\n\t\t\ttheme: merged\n\t\t};\n\t}\n\tPendingUpdate.delete(id);\n\tif (!local || rerender) {\n\t\tlocal = { ...next };\n\t\tlocalStates.set(id, local);\n\t}\n\tif (next !== local) {\n\t\tObject.assign(local, next);\n\t\tlocal.id = id;\n\t}\n\tlocal._parentName = parentState === null || parentState === void 0 ? void 0 : parentState.name;\n\tlocal._propsKey = propsKey;\n\tstates.set(id, next);\n\treturn local;\n};\nvar getNextState = function(lastState, props, propsKey) {\n\tvar isRoot = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false, id = arguments.length > 4 ? arguments[4] : void 0, parentId = arguments.length > 5 ? arguments[5] : void 0, needsUpdate = arguments.length > 6 ? arguments[6] : void 0, pendingUpdate = arguments.length > 7 ? arguments[7] : void 0;\n\tvar parentState = states.get(parentId);\n\tif (props.passThrough) return [false, lastState || parentState || { name: \"\" }];\n\tthemes || (themes = (0, import_config.getConfig)().themes);\n\tvar name = !propsKey && (!lastState || !lastState.isNew) ? null : getNewThemeName(parentState === null || parentState === void 0 ? void 0 : parentState.name, props, pendingUpdate === \"force\" ? true : !!needsUpdate);\n\tvar isSameAsParent = Boolean(parentState && (!name || name === parentState.name));\n\tvar shouldRerender = Boolean(pendingUpdate === \"force\" || needsUpdate && (pendingUpdate || (lastState === null || lastState === void 0 ? void 0 : lastState.name) !== (parentState === null || parentState === void 0 ? void 0 : parentState.name)));\n\tif (isSameAsParent) {\n\t\tif (!shouldRerender && lastState && lastState.name === parentState.name) return [false, lastState];\n\t\treturn [shouldRerender, {\n\t\t\t...parentState,\n\t\t\tisNew: false\n\t\t}];\n\t}\n\tif (!name) {\n\t\tvar _ref, _ref1;\n\t\tvar next = (_ref1 = (_ref = lastState !== null && lastState !== void 0 ? lastState : parentState) !== null && _ref !== void 0 ? _ref : rootThemeState) !== null && _ref1 !== void 0 ? _ref1 : {\n\t\t\tid,\n\t\t\tname: \"light\",\n\t\t\ttheme: (0, import_config.getConfig)().themes.light\n\t\t};\n\t\tif (shouldRerender) return [true, { ...parentState || lastState || next }];\n\t\treturn [false, next];\n\t}\n\tvar scheme = getScheme(name);\n\tvar _parentState_inverses;\n\tvar parentInverses = (_parentState_inverses = parentState === null || parentState === void 0 ? void 0 : parentState.inverses) !== null && _parentState_inverses !== void 0 ? _parentState_inverses : 0;\n\tvar isInverse = Boolean(parentState && scheme !== parentState.scheme);\n\tvar inverses = parentInverses + (isInverse ? 1 : 0);\n\tvar nextState = {\n\t\tid,\n\t\tname,\n\t\ttheme: themes[name],\n\t\tscheme,\n\t\tparentId,\n\t\tparentName: parentState === null || parentState === void 0 ? void 0 : parentState.name,\n\t\tinverses,\n\t\tisInverse,\n\t\tisNew: true\n\t};\n\tif (isRoot) rootThemeState = nextState;\n\tif (pendingUpdate !== \"force\" && lastState && lastState.name === name) return [false, nextState];\n\treturn [!(pendingUpdate !== \"force\" && lastState && !needsUpdate && nextState.name === lastState.name), nextState];\n};\nfunction scheduleUpdate(id) {\n\tvar queue = [id];\n\tvar visited = /* @__PURE__ */ new Set();\n\twhile (queue.length) {\n\t\tvar children = listenersByParent[queue.shift()];\n\t\tif (children) {\n\t\t\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\t\t\ttry {\n\t\t\t\tfor (var _iterator = children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\t\t\tvar childId = _step.value;\n\t\t\t\t\tif (!visited.has(childId)) {\n\t\t\t\t\t\tvisited.add(childId);\n\t\t\t\t\t\tqueue.push(childId);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (err) {\n\t\t\t\t_didIteratorError = true;\n\t\t\t\t_iteratorError = err;\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t\t\t} finally {\n\t\t\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tvisited.forEach(function(childId2) {\n\t\tvar _allListeners_get;\n\t\t(_allListeners_get = allListeners.get(childId2)) === null || _allListeners_get === void 0 || _allListeners_get();\n\t});\n}\nvar validSchemes = {\n\tlight: \"light\",\n\tdark: \"dark\"\n};\nfunction getScheme(name) {\n\treturn validSchemes[name.split(\"_\")[0]];\n}\nfunction getNewThemeName() {\n\tvar parentName = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : \"\", props = arguments.length > 1 ? arguments[1] : void 0, forceUpdate = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;\n\tvar { name } = props;\n\tvar cacheKey = `${parentName}|${name || \"\"}|${forceUpdate ? 1 : 0}`;\n\tif (themeNameCacheVer !== cacheVersion) {\n\t\tthemeNameCache.clear();\n\t\tthemeNameCacheVer = cacheVersion;\n\t} else {\n\t\tvar cached = themeNameCache.get(cacheKey);\n\t\tif (cached !== void 0) return cached;\n\t}\n\tvar result = resolveThemeName(parentName, name !== null && name !== void 0 ? name : void 0, (0, import_config.getConfig)().themes, forceUpdate);\n\tif (themeNameCache.size >= 1e4) themeNameCache.clear();\n\tthemeNameCache.set(cacheKey, result);\n\treturn result;\n}\nvar getThemeNameCacheSize = function() {\n\treturn themeNameCache.size;\n};\nfunction resolveThemeName(parentName, name, themes2) {\n\tvar forceUpdate = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;\n\tvar parentParts = parentName ? parentName.split(\"_\") : [];\n\tvar found = null;\n\tif (name) {\n\t\tvar nameHasScheme = getScheme(name);\n\t\tif (nameHasScheme && name in themes2) found = name;\n\t\tif (!found && !nameHasScheme) for (var i = parentParts.length; i >= 0; i--) {\n\t\t\tvar base = parentParts.slice(0, i).join(\"_\");\n\t\t\tvar potential = base ? `${base}_${name}` : name;\n\t\t\tif (potential in themes2) {\n\t\t\t\tfound = potential;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tif (!forceUpdate && found === parentName && !validSchemes[found]) return null;\n\treturn found;\n}\nvar getPropsKey = function(param) {\n\tvar { name, forceClassName, _themeUpdate } = param;\n\treturn `${name || \"\"}${forceClassName || \"\"}${(_themeUpdate === null || _themeUpdate === void 0 ? void 0 : _themeUpdate.key) || \"\"}`;\n};\nvar hasThemeUpdatingProps = function(props) {\n\treturn \"name\" in props || \"force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AK,GAAG,SAAS;GAC3C,IAAI,aAAa,SAAS;IACzB,QAAQ;IACR;GACD;EACD;CACD;CACA,IAAI,CAAC,eAAe,UAAU,cAAc,CAAC,aAAa,QAAQ,OAAO;CACzE,OAAO;AACR;AACA,IAAI,cAAc,SAAS,OAAO;CACjC,IAAI,EAAE,MAAM,gBAAgB,iBAAiB;CAC7C,OAAO,GAAG,QAAQ,KAAK,kBAAkB,MAAM,iBAAiB,QAAQ,iBAAiB,KAAK,IAAI,KAAK,IAAI,aAAa,QAAQ;AACjI;AACA,IAAI,wBAAwB,SAAS,OAAO;CAC3C,OAAO,UAAU,SAAS,oBAAoB,SAAS,kBAAkB;AAC1E"}
@@ -61,7 +61,6 @@ __export(index_exports, {
61
61
  createTamagui: () => import_createTamagui.createTamagui,
62
62
  createTokens: () => import_createTokens.createTokens,
63
63
  createVariable: () => import_createVariable.createVariable,
64
- createVariantResolver: () => import_types.createVariantResolver,
65
64
  cssShorthandLonghands: () => import_helpers.cssShorthandLonghands,
66
65
  currentPlatform: () => import_constants.currentPlatform,
67
66
  forceUpdateThemes: () => import_useThemeState.forceUpdateThemes,
@@ -86,9 +85,7 @@ __export(index_exports, {
86
85
  getTokenValue: () => import_config.getTokenValue,
87
86
  getTokens: () => import_config.getTokens,
88
87
  getVariable: () => import_createVariable.getVariable,
89
- getVariableName: () => import_createVariable.getVariableName,
90
88
  getVariableValue: () => import_createVariable.getVariableValue,
91
- getVariableVariable: () => import_createVariable.getVariableVariable,
92
89
  hooks: () => import_setupHooks.hooks,
93
90
  html: () => import_html.html,
94
91
  insertFont: () => import_insertFont.insertFont,
@@ -142,7 +139,10 @@ __export(index_exports, {
142
139
  shouldRenderNativePlatform: () => import_helpers.shouldRenderNativePlatform,
143
140
  simpleHash: () => import_helpers.simpleHash,
144
141
  splitStyleProps: () => import_splitStyleProps.splitStyleProps,
142
+ style: () => import_style.style,
143
+ stylePieceSymbol: () => import_types.stylePieceSymbol,
145
144
  stylePropsAll: () => import_helpers.stylePropsAll,
145
+ stylePropsInput: () => import_helpers.stylePropsInput,
146
146
  stylePropsText: () => import_helpers.stylePropsText,
147
147
  stylePropsTextOnly: () => import_helpers.stylePropsTextOnly,
148
148
  stylePropsTransform: () => import_helpers.stylePropsTransform,
@@ -174,6 +174,7 @@ __export(index_exports, {
174
174
  useIsomorphicLayoutEffect: () => import_constants.useIsomorphicLayoutEffect,
175
175
  useMedia: () => import_useMedia.useMedia,
176
176
  usePortalThemeState: () => import_usePortalThemeState.usePortalThemeState,
177
+ useStyle: () => import_useStyle.useStyle,
177
178
  useTheme: () => import_useTheme.useTheme,
178
179
  useThemeName: () => import_useThemeName.useThemeName,
179
180
  validStyles: () => import_helpers.validStyles,
@@ -217,6 +218,8 @@ var import_createTokens = require("./createTokens.cjs");
217
218
  var import_createVariable = require("./createVariable.cjs");
218
219
  var import_insertFont = require("./insertFont.cjs");
219
220
  var import_styled = require("./styled.cjs");
221
+ var import_style = require("./style.cjs");
222
+ var import_useStyle = require("./hooks/useStyle.cjs");
220
223
  var import_Tamagui = require("./Tamagui.cjs");
221
224
  var import_types = require("./types.cjs");
222
225
  var import_compose_refs = require("@tamagui/compose-refs");
@@ -63,7 +63,6 @@ __export(index_exports, {
63
63
  createTamagui: () => import_createTamagui.createTamagui,
64
64
  createTokens: () => import_createTokens.createTokens,
65
65
  createVariable: () => import_createVariable.createVariable,
66
- createVariantResolver: () => import_types.createVariantResolver,
67
66
  cssShorthandLonghands: () => import_helpers.cssShorthandLonghands,
68
67
  currentPlatform: () => import_constants.currentPlatform,
69
68
  forceUpdateThemes: () => import_useThemeState.forceUpdateThemes,
@@ -88,9 +87,7 @@ __export(index_exports, {
88
87
  getTokenValue: () => import_config.getTokenValue,
89
88
  getTokens: () => import_config.getTokens,
90
89
  getVariable: () => import_createVariable.getVariable,
91
- getVariableName: () => import_createVariable.getVariableName,
92
90
  getVariableValue: () => import_createVariable.getVariableValue,
93
- getVariableVariable: () => import_createVariable.getVariableVariable,
94
91
  hooks: () => import_setupHooks.hooks,
95
92
  html: () => import_html.html,
96
93
  insertFont: () => import_insertFont.insertFont,
@@ -144,7 +141,10 @@ __export(index_exports, {
144
141
  shouldRenderNativePlatform: () => import_helpers.shouldRenderNativePlatform,
145
142
  simpleHash: () => import_helpers.simpleHash,
146
143
  splitStyleProps: () => import_splitStyleProps.splitStyleProps,
144
+ style: () => import_style.style,
145
+ stylePieceSymbol: () => import_types.stylePieceSymbol,
147
146
  stylePropsAll: () => import_helpers.stylePropsAll,
147
+ stylePropsInput: () => import_helpers.stylePropsInput,
148
148
  stylePropsText: () => import_helpers.stylePropsText,
149
149
  stylePropsTextOnly: () => import_helpers.stylePropsTextOnly,
150
150
  stylePropsTransform: () => import_helpers.stylePropsTransform,
@@ -176,6 +176,7 @@ __export(index_exports, {
176
176
  useIsomorphicLayoutEffect: () => import_constants.useIsomorphicLayoutEffect,
177
177
  useMedia: () => import_useMedia.useMedia,
178
178
  usePortalThemeState: () => import_usePortalThemeState.usePortalThemeState,
179
+ useStyle: () => import_useStyle.useStyle,
179
180
  useTheme: () => import_useTheme.useTheme,
180
181
  useThemeName: () => import_useThemeName.useThemeName,
181
182
  validStyles: () => import_helpers.validStyles,
@@ -219,6 +220,8 @@ var import_createTokens = require("./createTokens.native.js");
219
220
  var import_createVariable = require("./createVariable.native.js");
220
221
  var import_insertFont = require("./insertFont.native.js");
221
222
  var import_styled = require("./styled.native.js");
223
+ var import_style = require("./style.native.js");
224
+ var import_useStyle = require("./hooks/useStyle.native.js");
222
225
  var import_Tamagui = require("./Tamagui.native.js");
223
226
  var import_types = require("./types.native.js");
224
227
  var import_compose_refs = require("@tamagui/compose-refs");
@@ -63,7 +63,6 @@ __export(index_exports, {
63
63
  createTamagui: () => import_createTamagui.createTamagui,
64
64
  createTokens: () => import_createTokens.createTokens,
65
65
  createVariable: () => import_createVariable.createVariable,
66
- createVariantResolver: () => import_types.createVariantResolver,
67
66
  cssShorthandLonghands: () => import_helpers.cssShorthandLonghands,
68
67
  currentPlatform: () => import_constants.currentPlatform,
69
68
  forceUpdateThemes: () => import_useThemeState.forceUpdateThemes,
@@ -88,9 +87,7 @@ __export(index_exports, {
88
87
  getTokenValue: () => import_config.getTokenValue,
89
88
  getTokens: () => import_config.getTokens,
90
89
  getVariable: () => import_createVariable.getVariable,
91
- getVariableName: () => import_createVariable.getVariableName,
92
90
  getVariableValue: () => import_createVariable.getVariableValue,
93
- getVariableVariable: () => import_createVariable.getVariableVariable,
94
91
  hooks: () => import_setupHooks.hooks,
95
92
  html: () => import_html.html,
96
93
  insertFont: () => import_insertFont.insertFont,
@@ -144,7 +141,10 @@ __export(index_exports, {
144
141
  shouldRenderNativePlatform: () => import_helpers.shouldRenderNativePlatform,
145
142
  simpleHash: () => import_helpers.simpleHash,
146
143
  splitStyleProps: () => import_splitStyleProps.splitStyleProps,
144
+ style: () => import_style.style,
145
+ stylePieceSymbol: () => import_types.stylePieceSymbol,
147
146
  stylePropsAll: () => import_helpers.stylePropsAll,
147
+ stylePropsInput: () => import_helpers.stylePropsInput,
148
148
  stylePropsText: () => import_helpers.stylePropsText,
149
149
  stylePropsTextOnly: () => import_helpers.stylePropsTextOnly,
150
150
  stylePropsTransform: () => import_helpers.stylePropsTransform,
@@ -176,6 +176,7 @@ __export(index_exports, {
176
176
  useIsomorphicLayoutEffect: () => import_constants.useIsomorphicLayoutEffect,
177
177
  useMedia: () => import_useMedia.useMedia,
178
178
  usePortalThemeState: () => import_usePortalThemeState.usePortalThemeState,
179
+ useStyle: () => import_useStyle.useStyle,
179
180
  useTheme: () => import_useTheme.useTheme,
180
181
  useThemeName: () => import_useThemeName.useThemeName,
181
182
  validStyles: () => import_helpers.validStyles,
@@ -219,6 +220,8 @@ var import_createTokens = require("./createTokens.native.js");
219
220
  var import_createVariable = require("./createVariable.native.js");
220
221
  var import_insertFont = require("./insertFont.native.js");
221
222
  var import_styled = require("./styled.native.js");
223
+ var import_style = require("./style.native.js");
224
+ var import_useStyle = require("./hooks/useStyle.native.js");
222
225
  var import_Tamagui = require("./Tamagui.native.js");
223
226
  var import_types = require("./types.native.js");
224
227
  var import_compose_refs = require("@tamagui/compose-refs");
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.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 index_exports = {};\n__export(index_exports, {\n ClientOnly: () => import_use_did_finish_ssr.ClientOnly,\n ClientOnlyContext: () => import_use_did_finish_ssr.ClientOnlyContext,\n ComponentContext: () => import_ComponentContext.ComponentContext,\n Configuration: () => import_Configuration.Configuration,\n FontLanguage: () => import_FontLanguage.FontLanguage,\n GroupContext: () => import_GroupContext.GroupContext,\n Slot: () => import_Slot.Slot,\n Slottable: () => import_Slot.Slottable,\n StyleObjectIdentifier: () => import_helpers.StyleObjectIdentifier,\n StyleObjectProperty: () => import_helpers.StyleObjectProperty,\n StyleObjectPseudo: () => import_helpers.StyleObjectPseudo,\n StyleObjectRules: () => import_helpers.StyleObjectRules,\n StyleObjectValue: () => import_helpers.StyleObjectValue,\n Tamagui: () => import_Tamagui.Tamagui,\n TamaguiProvider: () => import_TamaguiProvider.TamaguiProvider,\n TamaguiRoot: () => import_TamaguiRoot.TamaguiRoot,\n Text: () => import_Text.Text,\n Theme: () => import_Theme.Theme,\n ThemeProvider: () => import_ThemeProvider.ThemeProvider,\n View: () => import_View.View,\n _disableMediaTouch: () => import_useMedia._disableMediaTouch,\n _mediaListenerStats: () => import_useMedia._mediaListenerStats,\n _withNativeStyle: () => import_withNativeStyle._withNativeStyle,\n _withStableStyle: () => import_withStableStyle._withStableStyle,\n autoVariables: () => import_registerCSSVariable.autoVariables,\n clamp: () => import_helpers.clamp,\n composeEventHandlers: () => import_helpers.composeEventHandlers,\n composeRefs: () => import_compose_refs.composeRefs,\n configureMedia: () => import_useMedia.configureMedia,\n containsThemeRef: () => import_themeRef.containsThemeRef,\n createCSSVariable: () => import_createVariable.createCSSVariable,\n createChangeEventDetails: () => import_eventDetails.createChangeEventDetails,\n createComponent: () => import_createComponent.createComponent,\n createFont: () => import_createFont.createFont,\n createRefComponent: () => import_compose_refs.createRefComponent,\n createShorthands: () => import_createShorthands.createShorthands,\n createStyledContext: () => import_createStyledContext.createStyledContext,\n createStyledHOC: () => import_createStyledHOC.createStyledHOC,\n createTamagui: () => import_createTamagui.createTamagui,\n createTokens: () => import_createTokens.createTokens,\n createVariable: () => import_createVariable.createVariable,\n createVariantResolver: () => import_types.createVariantResolver,\n cssShorthandLonghands: () => import_helpers.cssShorthandLonghands,\n currentPlatform: () => import_constants.currentPlatform,\n forceUpdateThemes: () => import_useThemeState.forceUpdateThemes,\n formatDiagnostic: () => import_formatDiagnostic.formatDiagnostic,\n getAutoVariableCSS: () => import_registerCSSVariable.getAutoVariableCSS,\n getCSSStylesAtomic: () => import_getCSSStylesAtomic.getCSSStylesAtomic,\n getConfig: () => import_config.getConfig,\n getExpandedShorthand: () => import_getExpandedShorthands.getExpandedShorthand,\n getMedia: () => import_mediaState.getMedia,\n getMutatedAutoVariableCSS: () => import_registerCSSVariable.getMutatedAutoVariableCSS,\n getNativeStyleEngine: () => import_nativeStyleEngine.getNativeStyleEngine,\n getPlatformDriver: () => import_constants.getPlatformDriver,\n getSetting: () => import_config.getSetting,\n getSplitStyles: () => import_getSplitStyles.getSplitStyles,\n getStyleCompat: () => import_config.getStyleCompat,\n getStyleStaticConfig: () => import_getSplitStyles.getStyleStaticConfig,\n getStyleTags: () => import_wrapStyleTags.getStyleTags,\n getThemeClassNames: () => import_helpers.getThemeClassNames,\n getThemeProviderChainSizes: () => import_useThemeState.getThemeProviderChainSizes,\n getThemes: () => import_config.getThemes,\n getToken: () => import_config.getToken,\n getTokenValue: () => import_config.getTokenValue,\n getTokens: () => import_config.getTokens,\n getVariable: () => import_createVariable.getVariable,\n getVariableName: () => import_createVariable.getVariableName,\n getVariableValue: () => import_createVariable.getVariableValue,\n getVariableVariable: () => import_createVariable.getVariableVariable,\n hooks: () => import_setupHooks.hooks,\n html: () => import_html.html,\n insertFont: () => import_insertFont.insertFont,\n insertStyleRules: () => import_insertStyleRule.insertStyleRules,\n installTamaguiConfig: () => import_createTamagui.installTamaguiConfig,\n isAndroid: () => import_constants.isAndroid,\n isBrowser: () => import_constants.isBrowser,\n isChrome: () => import_constants.isChrome,\n isClient: () => import_constants.isClient,\n isEqualShallow: () => import_is_equal_shallow.isEqualShallow,\n isIos: () => import_constants.isIos,\n isNativeDesktop: () => import_constants.isNativeDesktop,\n isServer: () => import_constants.isServer,\n isTV: () => import_constants.isTV,\n isTamaguiComponent: () => import_isTamaguiComponent.isTamaguiComponent,\n isTamaguiElement: () => import_isTamaguiElement.isTamaguiElement,\n isTouchable: () => import_constants.isTouchable,\n isValidStyleKey: () => import_getSplitStyles.isValidStyleKey,\n isVariable: () => import_createVariable.isVariable,\n isWeb: () => import_constants.isWeb,\n isWebTouchable: () => import_constants.isWebTouchable,\n loadAnimationDriver: () => import_config.loadAnimationDriver,\n matchMedia: () => import_matchMedia.matchMedia,\n mediaKeyMatch: () => import_useMedia.mediaKeyMatch,\n mediaObjectToString: () => import_mediaObjectToString.mediaObjectToString,\n mediaQueryConfig: () => import_mediaState.mediaQueryConfig,\n mediaState: () => import_mediaState.mediaState,\n mergeIfNotShallowEqual: () => import_is_equal_shallow.mergeIfNotShallowEqual,\n mergeProps: () => import_mergeProps.mergeProps,\n mergeSlotStyleProps: () => import_mergeSlotStyleProps.mergeSlotStyleProps,\n mutatedAutoVariables: () => import_registerCSSVariable.mutatedAutoVariables,\n nonAnimatableStyleProps: () => import_helpers.nonAnimatableStyleProps,\n nonAnimatableWebTextProps: () => import_helpers.nonAnimatableWebTextProps,\n nonAnimatableWebViewProps: () => import_helpers.nonAnimatableWebViewProps,\n normalizeColor: () => import_normalizeColor.normalizeColor,\n normalizeStyle: () => import_normalizeStyle.normalizeStyle,\n px: () => import_createVariable.px,\n removeNativeStyleScope: () => import_nativeStyleEngine.removeNativeStyleScope,\n reservedThemeProps: () => import_helpers.reservedThemeProps,\n resolveThemeName: () => import_useThemeState.resolveThemeName,\n setConfig: () => import_config.setConfig,\n setMediaState: () => import_mediaState.setMediaState,\n setNativeStyleEngine: () => import_nativeStyleEngine.setNativeStyleEngine,\n setNativeStyleEngineFlushListener: () => import_nativeStyleEngine.setNativeStyleEngineFlushListener,\n setNonce: () => import_insertStyleRule2.setNonce,\n setRef: () => import_compose_refs.setRef,\n setupDev: () => import_config.setupDev,\n setupHooks: () => import_setupHooks.setupHooks,\n setupMatchMedia: () => import_matchMedia.setupMatchMedia,\n setupPlatformDriver: () => import_constants.setupPlatformDriver,\n shouldRenderNativePlatform: () => import_helpers.shouldRenderNativePlatform,\n simpleHash: () => import_helpers.simpleHash,\n splitStyleProps: () => import_splitStyleProps.splitStyleProps,\n stylePropsAll: () => import_helpers.stylePropsAll,\n stylePropsText: () => import_helpers.stylePropsText,\n stylePropsTextOnly: () => import_helpers.stylePropsTextOnly,\n stylePropsTransform: () => import_helpers.stylePropsTransform,\n stylePropsUnitless: () => import_helpers.stylePropsUnitless,\n stylePropsView: () => import_helpers.stylePropsView,\n styled: () => import_styled.styled,\n supportsDynamicColorIOS: () => import_constants.supportsDynamicColorIOS,\n textStaticConfig: () => import_Text.textStaticConfig,\n themeRefKey: () => import_themeRef.themeRefKey,\n tokenCategories: () => import_helpers.tokenCategories,\n updateConfig: () => import_config.updateConfig,\n updateFont: () => import_insertFont.updateFont,\n updateMediaListeners: () => import_useMedia.updateMediaListeners,\n updateNativeStyleScope: () => import_nativeStyleEngine.updateNativeStyleScope,\n useAnimatedNumber: () => import_useAnimationDriver.useAnimatedNumber,\n useAnimatedNumberReaction: () => import_useAnimationDriver.useAnimatedNumberReaction,\n useAnimatedNumberStyle: () => import_useAnimationDriver.useAnimatedNumberStyle,\n useAnimatedNumbersStyle: () => import_useAnimationDriver.useAnimatedNumbersStyle,\n useAnimationDriver: () => import_useAnimationDriver.useAnimationDriver,\n useClientValue: () => import_use_did_finish_ssr.useClientValue,\n useComposedRefs: () => import_compose_refs.useComposedRefs,\n useConfiguration: () => import_ComponentContext.useConfiguration,\n useCreateShallowSetState: () => import_is_equal_shallow.useCreateShallowSetState,\n useDidFinishSSR: () => import_use_did_finish_ssr.useDidFinishSSR,\n useEvent: () => import_use_event.useEvent,\n useGet: () => import_use_event.useGet,\n useIsClientOnly: () => import_use_did_finish_ssr.useIsClientOnly,\n useIsTouchDevice: () => import_useIsTouchDevice.useIsTouchDevice,\n useIsomorphicLayoutEffect: () => import_constants.useIsomorphicLayoutEffect,\n useMedia: () => import_useMedia.useMedia,\n usePortalThemeState: () => import_usePortalThemeState.usePortalThemeState,\n useTheme: () => import_useTheme.useTheme,\n useThemeName: () => import_useThemeName.useThemeName,\n validStyles: () => import_helpers.validStyles,\n variableToString: () => import_createVariable.variableToString,\n viewStaticConfig: () => import_View.viewStaticConfig,\n webOnlyStylePropsText: () => import_helpers.webOnlyStylePropsText,\n webOnlyStylePropsView: () => import_helpers.webOnlyStylePropsView,\n withStaticProperties: () => import_helpers.withStaticProperties\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_ComponentContext = require(\"./contexts/ComponentContext\");\nvar import_GroupContext = require(\"./contexts/GroupContext\");\nvar import_is_equal_shallow = require(\"@tamagui/is-equal-shallow\");\nvar import_withStableStyle = require(\"./_withStableStyle\");\nvar import_withNativeStyle = require(\"./_withNativeStyle\");\nvar import_createComponent = require(\"./createComponent\");\nvar import_createStyledContext = require(\"./helpers/createStyledContext\");\nvar import_getCSSStylesAtomic = require(\"./helpers/getCSSStylesAtomic\");\nvar import_getExpandedShorthands = require(\"./helpers/getExpandedShorthands\");\nvar import_formatDiagnostic = require(\"./helpers/formatDiagnostic\");\nvar import_getSplitStyles = require(\"./helpers/getSplitStyles\");\nvar import_nativeStyleEngine = require(\"./helpers/nativeStyleEngine\");\nvar import_registerCSSVariable = require(\"./helpers/registerCSSVariable\");\nvar import_insertStyleRule = require(\"./helpers/insertStyleRule\");\nvar import_isTamaguiComponent = require(\"./helpers/isTamaguiComponent\");\nvar import_isTamaguiElement = require(\"./helpers/isTamaguiElement\");\nvar import_matchMedia = require(\"./helpers/matchMedia\");\nvar import_mergeProps = require(\"./helpers/mergeProps\");\nvar import_mergeSlotStyleProps = require(\"./helpers/mergeSlotStyleProps\");\nvar import_splitStyleProps = require(\"./helpers/splitStyleProps\");\nvar import_normalizeColor = require(\"./helpers/normalizeColor\");\nvar import_normalizeStyle = require(\"./helpers/normalizeStyle\");\nvar import_themeRef = require(\"./helpers/themeRef\");\nvar import_wrapStyleTags = require(\"./helpers/wrapStyleTags\");\nvar import_createFont = require(\"./createFont\");\nvar import_eventDetails = require(\"./eventDetails\");\nvar import_createStyledHOC = require(\"./createStyledHOC\");\nvar import_createShorthands = require(\"./createShorthands\");\nvar import_createTamagui = require(\"./createTamagui\");\nvar import_createTokens = require(\"./createTokens\");\nvar import_createVariable = require(\"./createVariable\");\nvar import_insertFont = require(\"./insertFont\");\nvar import_styled = require(\"./styled\");\nvar import_Tamagui = require(\"./Tamagui\");\nvar import_types = require(\"./types\");\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar import_config = require(\"./config\");\nvar import_insertStyleRule2 = require(\"./helpers/insertStyleRule\");\nvar import_useIsTouchDevice = require(\"./hooks/useIsTouchDevice\");\nvar import_useMedia = require(\"./hooks/useMedia\");\nvar import_mediaObjectToString = require(\"./helpers/mediaObjectToString\");\nvar import_mediaState = require(\"./helpers/mediaState\");\nvar import_useAnimationDriver = require(\"./hooks/useAnimationDriver\");\nvar import_useTheme = require(\"./hooks/useTheme\");\nvar import_usePortalThemeState = require(\"./hooks/usePortalThemeState\");\nvar import_useThemeName = require(\"./hooks/useThemeName\");\nvar import_useThemeState = require(\"./hooks/useThemeState\");\nvar import_html = require(\"./dom/html\");\nvar import_Configuration = require(\"./views/Configuration\");\nvar import_TamaguiRoot = require(\"./views/TamaguiRoot\");\nvar import_FontLanguage = require(\"./views/FontLanguage\");\nvar import_Slot = require(\"./views/Slot\");\nvar import_TamaguiProvider = require(\"./views/TamaguiProvider\");\nvar import_Text = require(\"./views/Text\");\nvar import_Theme = require(\"./views/Theme\");\nvar import_ThemeProvider = require(\"./views/ThemeProvider\");\nvar import_View = require(\"./views/View\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_helpers = require(\"@tamagui/helpers\");\nvar import_use_did_finish_ssr = require(\"@tamagui/use-did-finish-ssr\");\nvar import_use_event = require(\"@tamagui/use-event\");\nvar import_setupHooks = require(\"./setupHooks\");\n//# sourceMappingURL=index.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,O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["\"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 index_exports = {};\n__export(index_exports, {\n ClientOnly: () => import_use_did_finish_ssr.ClientOnly,\n ClientOnlyContext: () => import_use_did_finish_ssr.ClientOnlyContext,\n ComponentContext: () => import_ComponentContext.ComponentContext,\n Configuration: () => import_Configuration.Configuration,\n FontLanguage: () => import_FontLanguage.FontLanguage,\n GroupContext: () => import_GroupContext.GroupContext,\n Slot: () => import_Slot.Slot,\n Slottable: () => import_Slot.Slottable,\n StyleObjectIdentifier: () => import_helpers.StyleObjectIdentifier,\n StyleObjectProperty: () => import_helpers.StyleObjectProperty,\n StyleObjectPseudo: () => import_helpers.StyleObjectPseudo,\n StyleObjectRules: () => import_helpers.StyleObjectRules,\n StyleObjectValue: () => import_helpers.StyleObjectValue,\n Tamagui: () => import_Tamagui.Tamagui,\n TamaguiProvider: () => import_TamaguiProvider.TamaguiProvider,\n TamaguiRoot: () => import_TamaguiRoot.TamaguiRoot,\n Text: () => import_Text.Text,\n Theme: () => import_Theme.Theme,\n ThemeProvider: () => import_ThemeProvider.ThemeProvider,\n View: () => import_View.View,\n _disableMediaTouch: () => import_useMedia._disableMediaTouch,\n _mediaListenerStats: () => import_useMedia._mediaListenerStats,\n _withNativeStyle: () => import_withNativeStyle._withNativeStyle,\n _withStableStyle: () => import_withStableStyle._withStableStyle,\n autoVariables: () => import_registerCSSVariable.autoVariables,\n clamp: () => import_helpers.clamp,\n composeEventHandlers: () => import_helpers.composeEventHandlers,\n composeRefs: () => import_compose_refs.composeRefs,\n configureMedia: () => import_useMedia.configureMedia,\n containsThemeRef: () => import_themeRef.containsThemeRef,\n createCSSVariable: () => import_createVariable.createCSSVariable,\n createChangeEventDetails: () => import_eventDetails.createChangeEventDetails,\n createComponent: () => import_createComponent.createComponent,\n createFont: () => import_createFont.createFont,\n createRefComponent: () => import_compose_refs.createRefComponent,\n createShorthands: () => import_createShorthands.createShorthands,\n createStyledContext: () => import_createStyledContext.createStyledContext,\n createStyledHOC: () => import_createStyledHOC.createStyledHOC,\n createTamagui: () => import_createTamagui.createTamagui,\n createTokens: () => import_createTokens.createTokens,\n createVariable: () => import_createVariable.createVariable,\n cssShorthandLonghands: () => import_helpers.cssShorthandLonghands,\n currentPlatform: () => import_constants.currentPlatform,\n forceUpdateThemes: () => import_useThemeState.forceUpdateThemes,\n formatDiagnostic: () => import_formatDiagnostic.formatDiagnostic,\n getAutoVariableCSS: () => import_registerCSSVariable.getAutoVariableCSS,\n getCSSStylesAtomic: () => import_getCSSStylesAtomic.getCSSStylesAtomic,\n getConfig: () => import_config.getConfig,\n getExpandedShorthand: () => import_getExpandedShorthands.getExpandedShorthand,\n getMedia: () => import_mediaState.getMedia,\n getMutatedAutoVariableCSS: () => import_registerCSSVariable.getMutatedAutoVariableCSS,\n getNativeStyleEngine: () => import_nativeStyleEngine.getNativeStyleEngine,\n getPlatformDriver: () => import_constants.getPlatformDriver,\n getSetting: () => import_config.getSetting,\n getSplitStyles: () => import_getSplitStyles.getSplitStyles,\n getStyleCompat: () => import_config.getStyleCompat,\n getStyleStaticConfig: () => import_getSplitStyles.getStyleStaticConfig,\n getStyleTags: () => import_wrapStyleTags.getStyleTags,\n getThemeClassNames: () => import_helpers.getThemeClassNames,\n getThemeProviderChainSizes: () => import_useThemeState.getThemeProviderChainSizes,\n getThemes: () => import_config.getThemes,\n getToken: () => import_config.getToken,\n getTokenValue: () => import_config.getTokenValue,\n getTokens: () => import_config.getTokens,\n getVariable: () => import_createVariable.getVariable,\n getVariableValue: () => import_createVariable.getVariableValue,\n hooks: () => import_setupHooks.hooks,\n html: () => import_html.html,\n insertFont: () => import_insertFont.insertFont,\n insertStyleRules: () => import_insertStyleRule.insertStyleRules,\n installTamaguiConfig: () => import_createTamagui.installTamaguiConfig,\n isAndroid: () => import_constants.isAndroid,\n isBrowser: () => import_constants.isBrowser,\n isChrome: () => import_constants.isChrome,\n isClient: () => import_constants.isClient,\n isEqualShallow: () => import_is_equal_shallow.isEqualShallow,\n isIos: () => import_constants.isIos,\n isNativeDesktop: () => import_constants.isNativeDesktop,\n isServer: () => import_constants.isServer,\n isTV: () => import_constants.isTV,\n isTamaguiComponent: () => import_isTamaguiComponent.isTamaguiComponent,\n isTamaguiElement: () => import_isTamaguiElement.isTamaguiElement,\n isTouchable: () => import_constants.isTouchable,\n isValidStyleKey: () => import_getSplitStyles.isValidStyleKey,\n isVariable: () => import_createVariable.isVariable,\n isWeb: () => import_constants.isWeb,\n isWebTouchable: () => import_constants.isWebTouchable,\n loadAnimationDriver: () => import_config.loadAnimationDriver,\n matchMedia: () => import_matchMedia.matchMedia,\n mediaKeyMatch: () => import_useMedia.mediaKeyMatch,\n mediaObjectToString: () => import_mediaObjectToString.mediaObjectToString,\n mediaQueryConfig: () => import_mediaState.mediaQueryConfig,\n mediaState: () => import_mediaState.mediaState,\n mergeIfNotShallowEqual: () => import_is_equal_shallow.mergeIfNotShallowEqual,\n mergeProps: () => import_mergeProps.mergeProps,\n mergeSlotStyleProps: () => import_mergeSlotStyleProps.mergeSlotStyleProps,\n mutatedAutoVariables: () => import_registerCSSVariable.mutatedAutoVariables,\n nonAnimatableStyleProps: () => import_helpers.nonAnimatableStyleProps,\n nonAnimatableWebTextProps: () => import_helpers.nonAnimatableWebTextProps,\n nonAnimatableWebViewProps: () => import_helpers.nonAnimatableWebViewProps,\n normalizeColor: () => import_normalizeColor.normalizeColor,\n normalizeStyle: () => import_normalizeStyle.normalizeStyle,\n px: () => import_createVariable.px,\n removeNativeStyleScope: () => import_nativeStyleEngine.removeNativeStyleScope,\n reservedThemeProps: () => import_helpers.reservedThemeProps,\n resolveThemeName: () => import_useThemeState.resolveThemeName,\n setConfig: () => import_config.setConfig,\n setMediaState: () => import_mediaState.setMediaState,\n setNativeStyleEngine: () => import_nativeStyleEngine.setNativeStyleEngine,\n setNativeStyleEngineFlushListener: () => import_nativeStyleEngine.setNativeStyleEngineFlushListener,\n setNonce: () => import_insertStyleRule2.setNonce,\n setRef: () => import_compose_refs.setRef,\n setupDev: () => import_config.setupDev,\n setupHooks: () => import_setupHooks.setupHooks,\n setupMatchMedia: () => import_matchMedia.setupMatchMedia,\n setupPlatformDriver: () => import_constants.setupPlatformDriver,\n shouldRenderNativePlatform: () => import_helpers.shouldRenderNativePlatform,\n simpleHash: () => import_helpers.simpleHash,\n splitStyleProps: () => import_splitStyleProps.splitStyleProps,\n style: () => import_style.style,\n stylePieceSymbol: () => import_types.stylePieceSymbol,\n stylePropsAll: () => import_helpers.stylePropsAll,\n stylePropsInput: () => import_helpers.stylePropsInput,\n stylePropsText: () => import_helpers.stylePropsText,\n stylePropsTextOnly: () => import_helpers.stylePropsTextOnly,\n stylePropsTransform: () => import_helpers.stylePropsTransform,\n stylePropsUnitless: () => import_helpers.stylePropsUnitless,\n stylePropsView: () => import_helpers.stylePropsView,\n styled: () => import_styled.styled,\n supportsDynamicColorIOS: () => import_constants.supportsDynamicColorIOS,\n textStaticConfig: () => import_Text.textStaticConfig,\n themeRefKey: () => import_themeRef.themeRefKey,\n tokenCategories: () => import_helpers.tokenCategories,\n updateConfig: () => import_config.updateConfig,\n updateFont: () => import_insertFont.updateFont,\n updateMediaListeners: () => import_useMedia.updateMediaListeners,\n updateNativeStyleScope: () => import_nativeStyleEngine.updateNativeStyleScope,\n useAnimatedNumber: () => import_useAnimationDriver.useAnimatedNumber,\n useAnimatedNumberReaction: () => import_useAnimationDriver.useAnimatedNumberReaction,\n useAnimatedNumberStyle: () => import_useAnimationDriver.useAnimatedNumberStyle,\n useAnimatedNumbersStyle: () => import_useAnimationDriver.useAnimatedNumbersStyle,\n useAnimationDriver: () => import_useAnimationDriver.useAnimationDriver,\n useClientValue: () => import_use_did_finish_ssr.useClientValue,\n useComposedRefs: () => import_compose_refs.useComposedRefs,\n useConfiguration: () => import_ComponentContext.useConfiguration,\n useCreateShallowSetState: () => import_is_equal_shallow.useCreateShallowSetState,\n useDidFinishSSR: () => import_use_did_finish_ssr.useDidFinishSSR,\n useEvent: () => import_use_event.useEvent,\n useGet: () => import_use_event.useGet,\n useIsClientOnly: () => import_use_did_finish_ssr.useIsClientOnly,\n useIsTouchDevice: () => import_useIsTouchDevice.useIsTouchDevice,\n useIsomorphicLayoutEffect: () => import_constants.useIsomorphicLayoutEffect,\n useMedia: () => import_useMedia.useMedia,\n usePortalThemeState: () => import_usePortalThemeState.usePortalThemeState,\n useStyle: () => import_useStyle.useStyle,\n useTheme: () => import_useTheme.useTheme,\n useThemeName: () => import_useThemeName.useThemeName,\n validStyles: () => import_helpers.validStyles,\n variableToString: () => import_createVariable.variableToString,\n viewStaticConfig: () => import_View.viewStaticConfig,\n webOnlyStylePropsText: () => import_helpers.webOnlyStylePropsText,\n webOnlyStylePropsView: () => import_helpers.webOnlyStylePropsView,\n withStaticProperties: () => import_helpers.withStaticProperties\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_ComponentContext = require(\"./contexts/ComponentContext\");\nvar import_GroupContext = require(\"./contexts/GroupContext\");\nvar import_is_equal_shallow = require(\"@tamagui/is-equal-shallow\");\nvar import_withStableStyle = require(\"./_withStableStyle\");\nvar import_withNativeStyle = require(\"./_withNativeStyle\");\nvar import_createComponent = require(\"./createComponent\");\nvar import_createStyledContext = require(\"./helpers/createStyledContext\");\nvar import_getCSSStylesAtomic = require(\"./helpers/getCSSStylesAtomic\");\nvar import_getExpandedShorthands = require(\"./helpers/getExpandedShorthands\");\nvar import_formatDiagnostic = require(\"./helpers/formatDiagnostic\");\nvar import_getSplitStyles = require(\"./helpers/getSplitStyles\");\nvar import_nativeStyleEngine = require(\"./helpers/nativeStyleEngine\");\nvar import_registerCSSVariable = require(\"./helpers/registerCSSVariable\");\nvar import_insertStyleRule = require(\"./helpers/insertStyleRule\");\nvar import_isTamaguiComponent = require(\"./helpers/isTamaguiComponent\");\nvar import_isTamaguiElement = require(\"./helpers/isTamaguiElement\");\nvar import_matchMedia = require(\"./helpers/matchMedia\");\nvar import_mergeProps = require(\"./helpers/mergeProps\");\nvar import_mergeSlotStyleProps = require(\"./helpers/mergeSlotStyleProps\");\nvar import_splitStyleProps = require(\"./helpers/splitStyleProps\");\nvar import_normalizeColor = require(\"./helpers/normalizeColor\");\nvar import_normalizeStyle = require(\"./helpers/normalizeStyle\");\nvar import_themeRef = require(\"./helpers/themeRef\");\nvar import_wrapStyleTags = require(\"./helpers/wrapStyleTags\");\nvar import_createFont = require(\"./createFont\");\nvar import_eventDetails = require(\"./eventDetails\");\nvar import_createStyledHOC = require(\"./createStyledHOC\");\nvar import_createShorthands = require(\"./createShorthands\");\nvar import_createTamagui = require(\"./createTamagui\");\nvar import_createTokens = require(\"./createTokens\");\nvar import_createVariable = require(\"./createVariable\");\nvar import_insertFont = require(\"./insertFont\");\nvar import_styled = require(\"./styled\");\nvar import_style = require(\"./style\");\nvar import_useStyle = require(\"./hooks/useStyle\");\nvar import_Tamagui = require(\"./Tamagui\");\nvar import_types = require(\"./types\");\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar import_config = require(\"./config\");\nvar import_insertStyleRule2 = require(\"./helpers/insertStyleRule\");\nvar import_useIsTouchDevice = require(\"./hooks/useIsTouchDevice\");\nvar import_useMedia = require(\"./hooks/useMedia\");\nvar import_mediaObjectToString = require(\"./helpers/mediaObjectToString\");\nvar import_mediaState = require(\"./helpers/mediaState\");\nvar import_useAnimationDriver = require(\"./hooks/useAnimationDriver\");\nvar import_useTheme = require(\"./hooks/useTheme\");\nvar import_usePortalThemeState = require(\"./hooks/usePortalThemeState\");\nvar import_useThemeName = require(\"./hooks/useThemeName\");\nvar import_useThemeState = require(\"./hooks/useThemeState\");\nvar import_html = require(\"./dom/html\");\nvar import_Configuration = require(\"./views/Configuration\");\nvar import_TamaguiRoot = require(\"./views/TamaguiRoot\");\nvar import_FontLanguage = require(\"./views/FontLanguage\");\nvar import_Slot = require(\"./views/Slot\");\nvar import_TamaguiProvider = require(\"./views/TamaguiProvider\");\nvar import_Text = require(\"./views/Text\");\nvar import_Theme = require(\"./views/Theme\");\nvar import_ThemeProvider = require(\"./views/ThemeProvider\");\nvar import_View = require(\"./views/View\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_helpers = require(\"@tamagui/helpers\");\nvar import_use_did_finish_ssr = require(\"@tamagui/use-did-finish-ssr\");\nvar import_use_event = require(\"@tamagui/use-event\");\nvar import_setupHooks = require(\"./setupHooks\");\n//# sourceMappingURL=index.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,gBAAg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conf.themes || {};
75
75
  const themeName = element.themeName || defaultThemeName || (themes["light"] ? "light" : Object.keys(themes)[0]) || "light";
76
76
  const theme = themes[themeName] || themes["light"] || themes["dark"] || Object.values(themes)[0] || {};
77
- const isTextLike = Boolean(element.staticConfig?.isText || element.staticConfig?.isInput);
78
77
  const baseStaticConfig = {
79
- validStyles: isTextLike ? import_helpers.stylePropsText : import_helpers.validStyles,
78
+ validStyles: element.staticConfig?.isInput ? import_helpers.stylePropsInput : element.staticConfig?.isText ? import_helpers.stylePropsText : import_helpers.validStyles,
80
79
  defaultProps: {},
81
80
  acceptsClassName: target !== "native",
82
81
  ...target === "native" && { isReactNative: true },
@@ -97,6 +96,7 @@ function resolveStaticElement(element, target = "web", defaultThemeName) {
97
96
  ...element.componentState
98
97
  };
99
98
  const styleProps = {
99
+ isStatic: true,
100
100
  resolveValues: element.options?.resolveValues ?? (target === "native" ? "except-theme" : "variable"),
101
101
  noClass: element.options?.noClass ?? target === "native",
102
102
  isAnimated: element.options?.isAnimated ?? false,
@@ -85,9 +85,8 @@ function resolveStaticElement(element) {
85
85
  var themes = conf.themes || {};
86
86
  var themeName = element.themeName || defaultThemeName || (themes["light"] ? "light" : Object.keys(themes)[0]) || "light";
87
87
  var theme = themes[themeName] || themes["light"] || themes["dark"] || Object.values(themes)[0] || {};
88
- var isTextLike = Boolean(((_element_staticConfig = element.staticConfig) === null || _element_staticConfig === void 0 ? void 0 : _element_staticConfig.isText) || ((_element_staticConfig1 = element.staticConfig) === null || _element_staticConfig1 === void 0 ? void 0 : _element_staticConfig1.isInput));
89
88
  var baseStaticConfig = {
90
- validStyles: isTextLike ? import_helpers.stylePropsText : import_helpers.validStyles,
89
+ 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,
91
90
  defaultProps: {},
92
91
  acceptsClassName: target !== "native",
93
92
  ...target === "native" && { isReactNative: true },
@@ -109,6 +108,7 @@ function resolveStaticElement(element) {
109
108
  };
110
109
  var _element_options_resolveValues, _element_options_noClass, _element_options_isAnimated, _element_options_displayName, _ref, _ref1;
111
110
  var styleProps = {
111
+ isStatic: true,
112
112
  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",
113
113
  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",
114
114
  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,
@@ -85,9 +85,8 @@ function resolveStaticElement(element) {
85
85
  var themes = conf.themes || {};
86
86
  var themeName = element.themeName || defaultThemeName || (themes["light"] ? "light" : Object.keys(themes)[0]) || "light";
87
87
  var theme = themes[themeName] || themes["light"] || themes["dark"] || Object.values(themes)[0] || {};
88
- var isTextLike = Boolean(((_element_staticConfig = element.staticConfig) === null || _element_staticConfig === void 0 ? void 0 : _element_staticConfig.isText) || ((_element_staticConfig1 = element.staticConfig) === null || _element_staticConfig1 === void 0 ? void 0 : _element_staticConfig1.isInput));
89
88
  var baseStaticConfig = {
90
- validStyles: isTextLike ? import_helpers.stylePropsText : import_helpers.validStyles,
89
+ 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,
91
90
  defaultProps: {},
92
91
  acceptsClassName: target !== "native",
93
92
  ...target === "native" && { isReactNative: true },
@@ -109,6 +108,7 @@ function resolveStaticElement(element) {
109
108
  };
110
109
  var _element_options_resolveValues, _element_options_noClass, _element_options_isAnimated, _element_options_displayName, _ref, _ref1;
111
110
  var styleProps = {
111
+ isStatic: true,
112
112
  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",
113
113
  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",
114
114
  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,
@@ -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 isTextLike = Boolean(((_element_staticConfig = element.staticConfig) === null || _element_staticConfig === void 0 ? void 0 : _element_staticConfig.isText) || ((_element_staticConfig1 = element.staticConfig) === null || _element_staticConfig1 === void 0 ? void 0 : _element_staticConfig1.isInput));\n var baseStaticConfig = {\n validStyles: isTextLike ? 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 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,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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AU,YAAY,MAAM,UAAU,GAAG,IAAI,MAAM,KAAK,MAAM,QAAQ,IAAI,MAAM,YAAY,KAAK;EACjG,cAAc,MAAM,gBAAgB,MAAM,aAAa,OAAO,IAAI,MAAM,KAAK,MAAM,YAAY,IAAI,KAAK;EACxG,aAAa,MAAM,eAAe,MAAM,YAAY,OAAO,IAAI,MAAM,KAAK,MAAM,WAAW,IAAI,KAAK;EACpG,eAAe,MAAM,iBAAiB,MAAM,cAAc,OAAO,IAAI,MAAM,KAAK,MAAM,aAAa,IAAI,KAAK;EAC5G,oBAAoB,MAAM;EAC1B,YAAY,MAAM;EAClB,2BAA2B,MAAM,4BAA4B;GAC3D,OAAO,MAAM,0BAA0B,QAAQ,MAAM,KAAK,MAAM,0BAA0B,KAAK,IAAI,KAAK;GACxG,MAAM,MAAM,0BAA0B,OAAO,MAAM,KAAK,MAAM,0BAA0B,IAAI,IAAI,KAAK;EACvG,IAAI,KAAK;CACX;AACF;AACA,SAAS,mBAAmB,OAAO;CACjC,IAAI,SAAS,MAAM,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"}
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 = resol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