@tamagui/core 1.0.1-beta.19 → 1.0.1-beta.191

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 (764) hide show
  1. package/dist/cjs/Tamagui.js +14 -12
  2. package/dist/cjs/Tamagui.js.map +2 -2
  3. package/dist/cjs/addTheme.js +80 -0
  4. package/dist/cjs/addTheme.js.map +7 -0
  5. package/dist/cjs/{conf.js → config.js} +33 -19
  6. package/dist/cjs/config.js.map +7 -0
  7. package/dist/cjs/constants/constants.js +11 -23
  8. package/dist/cjs/constants/constants.js.map +2 -2
  9. package/dist/cjs/{helpers/nativeGestureHandler.js → constants/isDevTools.js} +8 -8
  10. package/dist/cjs/constants/isDevTools.js.map +7 -0
  11. package/dist/cjs/constants/platform.js +32 -16
  12. package/dist/cjs/constants/platform.js.map +2 -2
  13. package/dist/cjs/constants/platform.native.js +62 -0
  14. package/dist/cjs/constants/platform.native.js.map +7 -0
  15. package/dist/cjs/contexts/ButtonInsideButtonContext.js +1 -0
  16. package/dist/cjs/contexts/ButtonInsideButtonContext.js.map +1 -1
  17. package/dist/cjs/contexts/FontLanguageContext.js +30 -0
  18. package/dist/cjs/contexts/FontLanguageContext.js.map +7 -0
  19. package/dist/cjs/{views → contexts}/TextAncestorContext.js +11 -13
  20. package/dist/cjs/contexts/TextAncestorContext.js.map +7 -0
  21. package/dist/cjs/{ThemeContext.js → contexts/ThemeContext.js} +1 -0
  22. package/dist/cjs/contexts/ThemeContext.js.map +7 -0
  23. package/dist/cjs/createComponent.js +925 -484
  24. package/dist/cjs/createComponent.js.map +3 -3
  25. package/dist/cjs/createFont.js +5 -8
  26. package/dist/cjs/createFont.js.map +2 -2
  27. package/dist/cjs/createShorthands.js +1 -2
  28. package/dist/cjs/createShorthands.js.map +2 -2
  29. package/dist/cjs/createTamagui.js +129 -177
  30. package/dist/cjs/createTamagui.js.map +3 -3
  31. package/dist/cjs/createTheme.js +4 -2
  32. package/dist/cjs/createTheme.js.map +2 -2
  33. package/dist/cjs/createTokens.js +5 -25
  34. package/dist/cjs/createTokens.js.map +2 -2
  35. package/dist/cjs/createVariable.js +52 -28
  36. package/dist/cjs/createVariable.js.map +2 -2
  37. package/dist/cjs/createVariables.js +52 -0
  38. package/dist/cjs/createVariables.js.map +7 -0
  39. package/dist/cjs/helpers/RNComponents.js +12 -11
  40. package/dist/cjs/helpers/RNComponents.js.map +2 -2
  41. package/dist/cjs/{ThemeManager.js → helpers/ThemeManager.js} +54 -52
  42. package/dist/cjs/helpers/ThemeManager.js.map +7 -0
  43. package/dist/cjs/helpers/areEqualSets.js +3 -3
  44. package/dist/cjs/helpers/areEqualSets.js.map +1 -1
  45. package/dist/cjs/helpers/assignNativePropsToWeb.js +188 -0
  46. package/dist/cjs/helpers/assignNativePropsToWeb.js.map +7 -0
  47. package/dist/cjs/helpers/assignNativePropsToWeb.native.js +30 -0
  48. package/dist/cjs/helpers/assignNativePropsToWeb.native.js.map +7 -0
  49. package/dist/cjs/helpers/calc.js +71 -0
  50. package/dist/cjs/helpers/calc.js.map +7 -0
  51. package/dist/cjs/helpers/createMediaStyle.js +17 -9
  52. package/dist/cjs/helpers/createMediaStyle.js.map +2 -2
  53. package/dist/cjs/helpers/createPropMapper.js +272 -122
  54. package/dist/cjs/helpers/createPropMapper.js.map +2 -2
  55. package/dist/cjs/helpers/createShallowUpdate.js +14 -25
  56. package/dist/cjs/helpers/createShallowUpdate.js.map +2 -2
  57. package/dist/cjs/helpers/expandStyle.js +90 -0
  58. package/dist/cjs/helpers/expandStyle.js.map +7 -0
  59. package/dist/cjs/helpers/expandStyles.js +115 -0
  60. package/dist/cjs/helpers/expandStyles.js.map +7 -0
  61. package/dist/cjs/helpers/extendStaticConfig.js +49 -37
  62. package/dist/cjs/helpers/extendStaticConfig.js.map +2 -2
  63. package/dist/cjs/helpers/fixNativeShadow.js +3 -3
  64. package/dist/cjs/helpers/fixNativeShadow.js.map +1 -1
  65. package/dist/cjs/helpers/getAnimationDriver.js +32 -0
  66. package/dist/cjs/helpers/getAnimationDriver.js.map +7 -0
  67. package/dist/cjs/helpers/getExpandedShorthands.js +4 -5
  68. package/dist/cjs/helpers/getExpandedShorthands.js.map +2 -2
  69. package/dist/cjs/helpers/{getTextSize.js → getFont.js} +22 -12
  70. package/dist/cjs/helpers/getFont.js.map +7 -0
  71. package/dist/cjs/helpers/getFontLanguage.js +29 -0
  72. package/dist/cjs/helpers/getFontLanguage.js.map +7 -0
  73. package/dist/cjs/helpers/getSize.js +19 -10
  74. package/dist/cjs/helpers/getSize.js.map +2 -2
  75. package/dist/cjs/helpers/getSplitStyles.js +381 -208
  76. package/dist/cjs/helpers/getSplitStyles.js.map +3 -3
  77. package/dist/cjs/helpers/getStackSize.js +46 -0
  78. package/dist/cjs/helpers/getStackSize.js.map +7 -0
  79. package/dist/cjs/helpers/getStylesAtomic.js +199 -133
  80. package/dist/cjs/helpers/getStylesAtomic.js.map +3 -3
  81. package/dist/cjs/helpers/getStylesAtomic.native.js +1 -2
  82. package/dist/cjs/helpers/getStylesAtomic.native.js.map +1 -1
  83. package/dist/cjs/helpers/getThemeCSSRules.js +103 -0
  84. package/dist/cjs/helpers/getThemeCSSRules.js.map +7 -0
  85. package/dist/cjs/{nativeGestureHandler.native.js → helpers/getThemeCSSRules.native.js} +18 -5
  86. package/dist/cjs/helpers/getThemeCSSRules.native.js.map +7 -0
  87. package/dist/cjs/helpers/getVariantExtras.js +88 -0
  88. package/dist/cjs/helpers/getVariantExtras.js.map +7 -0
  89. package/dist/cjs/helpers/insertStyleRule.js +83 -52
  90. package/dist/cjs/helpers/insertStyleRule.js.map +3 -3
  91. package/dist/cjs/helpers/isObj.js +2 -2
  92. package/dist/cjs/helpers/isObj.js.map +1 -1
  93. package/dist/cjs/helpers/isTamaguiComponent.js +37 -0
  94. package/dist/cjs/helpers/isTamaguiComponent.js.map +7 -0
  95. package/dist/cjs/helpers/isTamaguiElement.js +5 -5
  96. package/dist/cjs/helpers/isTamaguiElement.js.map +2 -2
  97. package/dist/cjs/helpers/matchMedia.js +7 -6
  98. package/dist/cjs/helpers/matchMedia.js.map +2 -2
  99. package/dist/cjs/helpers/matchMedia.native.js +6 -3
  100. package/dist/cjs/helpers/matchMedia.native.js.map +2 -2
  101. package/dist/cjs/helpers/mergeProps.js +54 -0
  102. package/dist/cjs/helpers/mergeProps.js.map +7 -0
  103. package/dist/cjs/helpers/mergeTransform.js +42 -0
  104. package/dist/cjs/helpers/mergeTransform.js.map +7 -0
  105. package/dist/cjs/helpers/normalizeColor.js +80 -0
  106. package/dist/cjs/helpers/normalizeColor.js.map +7 -0
  107. package/dist/cjs/helpers/normalizeValueWithProperty.js +93 -0
  108. package/dist/cjs/helpers/normalizeValueWithProperty.js.map +7 -0
  109. package/dist/cjs/helpers/proxyThemeVariables.js +7 -4
  110. package/dist/cjs/helpers/proxyThemeVariables.js.map +2 -2
  111. package/dist/cjs/helpers/pseudoDescriptors.js +42 -0
  112. package/dist/cjs/helpers/pseudoDescriptors.js.map +7 -0
  113. package/dist/cjs/helpers/registerCSSVariable.js +40 -0
  114. package/dist/cjs/helpers/registerCSSVariable.js.map +7 -0
  115. package/dist/cjs/helpers/{wrapThemeManagerContext.js → startTransition.js} +12 -15
  116. package/dist/cjs/helpers/startTransition.js.map +7 -0
  117. package/dist/cjs/helpers/themeable.js +17 -40
  118. package/dist/cjs/helpers/themeable.js.map +3 -3
  119. package/dist/cjs/helpers/themes.js +79 -0
  120. package/dist/cjs/helpers/themes.js.map +7 -0
  121. package/dist/cjs/helpers/useShallowSetState.js +44 -0
  122. package/dist/cjs/helpers/useShallowSetState.js.map +7 -0
  123. package/dist/cjs/helpers/validate.js +1 -122
  124. package/dist/cjs/helpers/validate.js.map +3 -3
  125. package/dist/cjs/helpers/withStaticProperties.js +3 -3
  126. package/dist/cjs/helpers/withStaticProperties.js.map +1 -1
  127. package/dist/cjs/hooks/getThemeUnwrapped.js +39 -0
  128. package/dist/cjs/hooks/getThemeUnwrapped.js.map +7 -0
  129. package/dist/cjs/hooks/useConstant.js +4 -2
  130. package/dist/cjs/hooks/useConstant.js.map +2 -2
  131. package/dist/cjs/hooks/useDidFinishSSR.js +60 -0
  132. package/dist/cjs/hooks/useDidFinishSSR.js.map +7 -0
  133. package/dist/cjs/hooks/useId.js +3 -33
  134. package/dist/cjs/hooks/useId.js.map +2 -2
  135. package/dist/cjs/hooks/useIsMounted.js +3 -4
  136. package/dist/cjs/hooks/useIsMounted.js.map +2 -2
  137. package/dist/cjs/hooks/useIsSSR.js +46 -0
  138. package/dist/cjs/hooks/useIsSSR.js.map +7 -0
  139. package/dist/cjs/hooks/useIsTouchDevice.js +11 -9
  140. package/dist/cjs/hooks/useIsTouchDevice.js.map +2 -2
  141. package/dist/cjs/hooks/useMedia.js +162 -113
  142. package/dist/cjs/hooks/useMedia.js.map +3 -3
  143. package/dist/cjs/hooks/usePressable.js +4 -18
  144. package/dist/cjs/hooks/usePressable.js.map +1 -1
  145. package/dist/cjs/hooks/useSafeRef.js +60 -0
  146. package/dist/cjs/hooks/useSafeRef.js.map +7 -0
  147. package/dist/cjs/hooks/useServerHooks.js +36 -0
  148. package/dist/cjs/hooks/useServerHooks.js.map +7 -0
  149. package/dist/cjs/hooks/useTheme.js +166 -132
  150. package/dist/cjs/hooks/useTheme.js.map +3 -3
  151. package/dist/cjs/hooks/useUnmountEffect.js +1 -2
  152. package/dist/cjs/hooks/useUnmountEffect.js.map +1 -1
  153. package/dist/cjs/index.js +59 -21
  154. package/dist/cjs/index.js.map +2 -2
  155. package/dist/cjs/injectStyles.js +40 -0
  156. package/dist/cjs/injectStyles.js.map +7 -0
  157. package/dist/cjs/insertFont.js +93 -0
  158. package/dist/cjs/insertFont.js.map +7 -0
  159. package/dist/cjs/static.js +22 -15
  160. package/dist/cjs/static.js.map +2 -2
  161. package/dist/cjs/styled.js +47 -44
  162. package/dist/cjs/styled.js.map +2 -2
  163. package/dist/cjs/types-rnw.js +1 -0
  164. package/dist/cjs/types-rnw.js.map +2 -2
  165. package/dist/cjs/types.js +1 -0
  166. package/dist/cjs/types.js.map +2 -2
  167. package/dist/cjs/updateTheme.js +47 -0
  168. package/dist/cjs/updateTheme.js.map +7 -0
  169. package/dist/cjs/vendor/Pressability.js +32 -0
  170. package/dist/cjs/vendor/Pressability.js.map +7 -0
  171. package/dist/cjs/vendor/Pressability.native.js +32 -0
  172. package/dist/cjs/vendor/Pressability.native.js.map +7 -0
  173. package/dist/cjs/views/FontLanguage.js +38 -0
  174. package/dist/cjs/views/FontLanguage.js.map +7 -0
  175. package/dist/cjs/views/FontLanguage.native.js +38 -0
  176. package/dist/cjs/views/FontLanguage.native.js.map +7 -0
  177. package/dist/cjs/{helpers/nativeGestureHandler.native.js → views/FontLanguage.types.js} +4 -5
  178. package/dist/cjs/views/FontLanguage.types.js.map +7 -0
  179. package/dist/cjs/views/Slot.js +64 -72
  180. package/dist/cjs/views/Slot.js.map +2 -2
  181. package/dist/cjs/views/Stack.js +4 -19
  182. package/dist/cjs/views/Stack.js.map +1 -1
  183. package/dist/cjs/views/TamaguiProvider.js +82 -0
  184. package/dist/cjs/views/TamaguiProvider.js.map +7 -0
  185. package/dist/cjs/views/Text.js +28 -29
  186. package/dist/cjs/views/Text.js.map +2 -2
  187. package/dist/cjs/views/Theme.js +43 -21
  188. package/dist/cjs/views/Theme.js.map +3 -3
  189. package/dist/cjs/views/ThemeInverse.js +25 -25
  190. package/dist/cjs/views/ThemeInverse.js.map +2 -2
  191. package/dist/cjs/views/ThemeProvider.js +35 -23
  192. package/dist/cjs/views/ThemeProvider.js.map +3 -3
  193. package/dist/cjs/views/ThemeReset.js +18 -12
  194. package/dist/cjs/views/ThemeReset.js.map +3 -3
  195. package/dist/esm/Tamagui.js +8 -11
  196. package/dist/esm/Tamagui.js.map +2 -2
  197. package/dist/esm/addTheme.js +56 -0
  198. package/dist/esm/addTheme.js.map +7 -0
  199. package/dist/esm/config.js +45 -0
  200. package/dist/esm/config.js.map +7 -0
  201. package/dist/esm/constants/constants.js +2 -2
  202. package/dist/esm/constants/constants.js.map +2 -2
  203. package/dist/esm/constants/isDevTools.js +5 -0
  204. package/dist/esm/constants/isDevTools.js.map +7 -0
  205. package/dist/esm/constants/platform.js +25 -12
  206. package/dist/esm/constants/platform.js.map +2 -2
  207. package/dist/esm/constants/platform.native.js +28 -0
  208. package/dist/esm/constants/platform.native.js.map +7 -0
  209. package/dist/esm/contexts/ButtonInsideButtonContext.js +0 -0
  210. package/dist/esm/contexts/ButtonInsideButtonContext.js.map +1 -1
  211. package/dist/esm/contexts/FontLanguageContext.js +6 -0
  212. package/dist/esm/contexts/FontLanguageContext.js.map +7 -0
  213. package/dist/esm/contexts/TextAncestorContext.js +17 -0
  214. package/dist/esm/contexts/TextAncestorContext.js.map +7 -0
  215. package/dist/esm/{ThemeContext.js → contexts/ThemeContext.js} +0 -0
  216. package/dist/esm/contexts/ThemeContext.js.map +7 -0
  217. package/dist/esm/createComponent.js +891 -389
  218. package/dist/esm/createComponent.js.map +3 -3
  219. package/dist/esm/createFont.js +4 -9
  220. package/dist/esm/createFont.js.map +2 -2
  221. package/dist/esm/createShorthands.js +0 -3
  222. package/dist/esm/createShorthands.js.map +2 -2
  223. package/dist/esm/createTamagui.js +128 -158
  224. package/dist/esm/createTamagui.js.map +3 -3
  225. package/dist/esm/createTheme.js +3 -3
  226. package/dist/esm/createTheme.js.map +2 -2
  227. package/dist/esm/createTokens.js +3 -24
  228. package/dist/esm/createTokens.js.map +2 -2
  229. package/dist/esm/createVariable.js +47 -26
  230. package/dist/esm/createVariable.js.map +2 -2
  231. package/dist/esm/createVariables.js +28 -0
  232. package/dist/esm/createVariables.js.map +7 -0
  233. package/dist/esm/helpers/RNComponents.js +11 -8
  234. package/dist/esm/helpers/RNComponents.js.map +2 -2
  235. package/dist/esm/{ThemeManager.js → helpers/ThemeManager.js} +53 -53
  236. package/dist/esm/helpers/ThemeManager.js.map +7 -0
  237. package/dist/esm/helpers/areEqualSets.js +2 -4
  238. package/dist/esm/helpers/areEqualSets.js.map +1 -1
  239. package/dist/esm/helpers/assignNativePropsToWeb.js +164 -0
  240. package/dist/esm/helpers/assignNativePropsToWeb.js.map +7 -0
  241. package/dist/esm/helpers/assignNativePropsToWeb.native.js +6 -0
  242. package/dist/esm/helpers/assignNativePropsToWeb.native.js.map +7 -0
  243. package/dist/esm/helpers/calc.js +47 -0
  244. package/dist/esm/helpers/calc.js.map +7 -0
  245. package/dist/esm/helpers/createMediaStyle.js +16 -10
  246. package/dist/esm/helpers/createMediaStyle.js.map +2 -2
  247. package/dist/esm/helpers/createPropMapper.js +267 -123
  248. package/dist/esm/helpers/createPropMapper.js.map +2 -2
  249. package/dist/esm/helpers/createShallowUpdate.js +13 -12
  250. package/dist/esm/helpers/createShallowUpdate.js.map +2 -2
  251. package/dist/esm/helpers/expandStyle.js +66 -0
  252. package/dist/esm/helpers/expandStyle.js.map +7 -0
  253. package/dist/esm/helpers/expandStyles.js +89 -0
  254. package/dist/esm/helpers/expandStyles.js.map +7 -0
  255. package/dist/esm/helpers/extendStaticConfig.js +35 -28
  256. package/dist/esm/helpers/extendStaticConfig.js.map +2 -2
  257. package/dist/esm/helpers/fixNativeShadow.js +2 -4
  258. package/dist/esm/helpers/fixNativeShadow.js.map +1 -1
  259. package/dist/esm/helpers/getAnimationDriver.js +8 -0
  260. package/dist/esm/helpers/getAnimationDriver.js.map +7 -0
  261. package/dist/esm/helpers/getExpandedShorthands.js +2 -5
  262. package/dist/esm/helpers/getExpandedShorthands.js.map +2 -2
  263. package/dist/esm/helpers/{getTextSize.js → getFont.js} +17 -9
  264. package/dist/esm/helpers/getFont.js.map +7 -0
  265. package/dist/esm/helpers/getFontLanguage.js +5 -0
  266. package/dist/esm/helpers/getFontLanguage.js.map +7 -0
  267. package/dist/esm/helpers/getSize.js +16 -10
  268. package/dist/esm/helpers/getSize.js.map +2 -2
  269. package/dist/esm/helpers/getSplitStyles.js +364 -188
  270. package/dist/esm/helpers/getSplitStyles.js.map +3 -3
  271. package/dist/esm/helpers/getStackSize.js +22 -0
  272. package/dist/esm/helpers/getStackSize.js.map +7 -0
  273. package/dist/esm/helpers/getStylesAtomic.js +187 -108
  274. package/dist/esm/helpers/getStylesAtomic.js.map +2 -2
  275. package/dist/esm/helpers/getStylesAtomic.native.js +0 -3
  276. package/dist/esm/helpers/getStylesAtomic.native.js.map +1 -1
  277. package/dist/esm/helpers/getThemeCSSRules.js +79 -0
  278. package/dist/esm/helpers/getThemeCSSRules.js.map +7 -0
  279. package/dist/esm/helpers/getThemeCSSRules.native.js +7 -0
  280. package/dist/esm/helpers/getThemeCSSRules.native.js.map +7 -0
  281. package/dist/esm/helpers/getVariantExtras.js +63 -0
  282. package/dist/esm/helpers/getVariantExtras.js.map +7 -0
  283. package/dist/esm/helpers/insertStyleRule.js +78 -50
  284. package/dist/esm/helpers/insertStyleRule.js.map +3 -3
  285. package/dist/esm/helpers/isObj.js +1 -3
  286. package/dist/esm/helpers/isObj.js.map +1 -1
  287. package/dist/esm/helpers/isTamaguiComponent.js +13 -0
  288. package/dist/esm/helpers/isTamaguiComponent.js.map +7 -0
  289. package/dist/esm/helpers/isTamaguiElement.js +4 -6
  290. package/dist/esm/helpers/isTamaguiElement.js.map +2 -2
  291. package/dist/esm/helpers/matchMedia.js +6 -7
  292. package/dist/esm/helpers/matchMedia.js.map +2 -2
  293. package/dist/esm/helpers/matchMedia.native.js +1 -3
  294. package/dist/esm/helpers/matchMedia.native.js.map +1 -1
  295. package/dist/esm/helpers/mergeProps.js +30 -0
  296. package/dist/esm/helpers/mergeProps.js.map +7 -0
  297. package/dist/esm/helpers/mergeTransform.js +17 -0
  298. package/dist/esm/helpers/mergeTransform.js.map +7 -0
  299. package/dist/esm/helpers/normalizeColor.js +49 -0
  300. package/dist/esm/helpers/normalizeColor.js.map +7 -0
  301. package/dist/esm/helpers/normalizeValueWithProperty.js +69 -0
  302. package/dist/esm/helpers/normalizeValueWithProperty.js.map +7 -0
  303. package/dist/esm/helpers/proxyThemeVariables.js +6 -5
  304. package/dist/esm/helpers/proxyThemeVariables.js.map +2 -2
  305. package/dist/esm/helpers/pseudoDescriptors.js +18 -0
  306. package/dist/esm/helpers/pseudoDescriptors.js.map +7 -0
  307. package/dist/esm/helpers/registerCSSVariable.js +14 -0
  308. package/dist/esm/helpers/registerCSSVariable.js.map +7 -0
  309. package/dist/esm/helpers/startTransition.js +6 -0
  310. package/dist/esm/helpers/startTransition.js.map +7 -0
  311. package/dist/esm/helpers/themeable.js +11 -9
  312. package/dist/esm/helpers/themeable.js.map +2 -2
  313. package/dist/esm/helpers/themes.js +54 -0
  314. package/dist/esm/helpers/themes.js.map +7 -0
  315. package/dist/esm/helpers/useShallowSetState.js +20 -0
  316. package/dist/esm/helpers/useShallowSetState.js.map +7 -0
  317. package/dist/esm/helpers/validate.js +0 -75
  318. package/dist/esm/helpers/validate.js.map +3 -3
  319. package/dist/esm/helpers/withStaticProperties.js +2 -4
  320. package/dist/esm/helpers/withStaticProperties.js.map +1 -1
  321. package/dist/esm/hooks/getThemeUnwrapped.js +14 -0
  322. package/dist/esm/hooks/getThemeUnwrapped.js.map +7 -0
  323. package/dist/esm/hooks/useConstant.js +4 -4
  324. package/dist/esm/hooks/useConstant.js.map +2 -2
  325. package/dist/esm/hooks/useDidFinishSSR.js +35 -0
  326. package/dist/esm/hooks/useDidFinishSSR.js.map +7 -0
  327. package/dist/esm/hooks/useId.js +1 -31
  328. package/dist/esm/hooks/useId.js.map +2 -2
  329. package/dist/esm/hooks/useIsMounted.js +1 -4
  330. package/dist/esm/hooks/useIsMounted.js.map +2 -2
  331. package/dist/esm/hooks/useIsSSR.js +22 -0
  332. package/dist/esm/hooks/useIsSSR.js.map +7 -0
  333. package/dist/esm/hooks/useIsTouchDevice.js +10 -10
  334. package/dist/esm/hooks/useIsTouchDevice.js.map +2 -2
  335. package/dist/esm/hooks/useMedia.js +157 -103
  336. package/dist/esm/hooks/useMedia.js.map +3 -3
  337. package/dist/esm/hooks/usePressable.js +2 -4
  338. package/dist/esm/hooks/usePressable.js.map +1 -1
  339. package/dist/esm/hooks/useSafeRef.js +36 -0
  340. package/dist/esm/hooks/useSafeRef.js.map +7 -0
  341. package/dist/esm/hooks/useServerHooks.js +11 -0
  342. package/dist/esm/hooks/useServerHooks.js.map +7 -0
  343. package/dist/esm/hooks/useTheme.js +159 -109
  344. package/dist/esm/hooks/useTheme.js.map +3 -3
  345. package/dist/esm/hooks/useUnmountEffect.js +0 -3
  346. package/dist/esm/hooks/useUnmountEffect.js.map +1 -1
  347. package/dist/esm/index.js +51 -13
  348. package/dist/esm/index.js.map +2 -2
  349. package/dist/esm/injectStyles.js +16 -0
  350. package/dist/esm/injectStyles.js.map +7 -0
  351. package/dist/esm/insertFont.js +67 -0
  352. package/dist/esm/insertFont.js.map +7 -0
  353. package/dist/esm/static.js +15 -15
  354. package/dist/esm/static.js.map +2 -2
  355. package/dist/esm/styled.js +40 -12
  356. package/dist/esm/styled.js.map +2 -2
  357. package/dist/esm/types-rnw.js +0 -0
  358. package/dist/esm/types-rnw.js.map +0 -0
  359. package/dist/esm/types.js +0 -0
  360. package/dist/esm/types.js.map +0 -0
  361. package/dist/esm/updateTheme.js +23 -0
  362. package/dist/esm/updateTheme.js.map +7 -0
  363. package/dist/esm/vendor/Pressability.js +7 -0
  364. package/dist/esm/vendor/Pressability.js.map +7 -0
  365. package/dist/esm/vendor/Pressability.native.js +7 -0
  366. package/dist/esm/vendor/Pressability.native.js.map +7 -0
  367. package/dist/esm/views/FontLanguage.js +14 -0
  368. package/dist/esm/views/FontLanguage.js.map +7 -0
  369. package/dist/esm/views/FontLanguage.native.js +14 -0
  370. package/dist/esm/views/FontLanguage.native.js.map +7 -0
  371. package/dist/esm/views/FontLanguage.types.js +1 -0
  372. package/dist/{cjs/defaultComponentState.js.map → esm/views/FontLanguage.types.js.map} +0 -0
  373. package/dist/esm/views/Slot.js +55 -37
  374. package/dist/esm/views/Slot.js.map +2 -2
  375. package/dist/esm/views/Stack.js +0 -0
  376. package/dist/esm/views/Stack.js.map +1 -1
  377. package/dist/esm/views/TamaguiProvider.js +52 -0
  378. package/dist/esm/views/TamaguiProvider.js.map +7 -0
  379. package/dist/esm/views/Text.js +13 -5
  380. package/dist/esm/views/Text.js.map +2 -2
  381. package/dist/esm/views/Theme.js +35 -19
  382. package/dist/esm/views/Theme.js.map +3 -3
  383. package/dist/esm/views/ThemeInverse.js +22 -20
  384. package/dist/esm/views/ThemeInverse.js.map +2 -2
  385. package/dist/esm/views/ThemeProvider.js +28 -21
  386. package/dist/esm/views/ThemeProvider.js.map +2 -2
  387. package/dist/esm/views/ThemeReset.js +13 -12
  388. package/dist/esm/views/ThemeReset.js.map +2 -2
  389. package/package.json +49 -16
  390. package/reset.css +25 -4
  391. package/src/Tamagui.ts +44 -0
  392. package/src/addTheme.ts +68 -0
  393. package/src/config.ts +45 -0
  394. package/src/constants/constants.ts +15 -0
  395. package/src/constants/isDevTools.ts +6 -0
  396. package/src/contexts/ButtonInsideButtonContext.tsx +3 -0
  397. package/src/contexts/FontLanguageContext.tsx +5 -0
  398. package/src/contexts/TextAncestorContext.tsx +10 -0
  399. package/src/contexts/ThemeContext.tsx +5 -0
  400. package/src/createComponent.tsx +1601 -0
  401. package/src/createFont.ts +29 -0
  402. package/src/createShorthands.ts +7 -0
  403. package/src/createTamagui.ts +229 -0
  404. package/src/createTheme.ts +13 -0
  405. package/src/createTokens.ts +35 -0
  406. package/src/createVariable.ts +85 -0
  407. package/src/createVariables.ts +42 -0
  408. package/src/helpers/RNComponents.tsx +14 -0
  409. package/src/helpers/ThemeManager.tsx +235 -0
  410. package/src/helpers/areEqualSets.tsx +9 -0
  411. package/src/helpers/assignNativePropsToWeb.native.tsx +1 -0
  412. package/src/helpers/assignNativePropsToWeb.tsx +178 -0
  413. package/src/helpers/calc.ts +68 -0
  414. package/src/helpers/createMediaStyle.ts +48 -0
  415. package/src/helpers/createPropMapper.ts +526 -0
  416. package/src/helpers/expandStyle.ts +81 -0
  417. package/src/helpers/expandStyles.ts +107 -0
  418. package/src/helpers/extendStaticConfig.ts +76 -0
  419. package/src/helpers/fixNativeShadow.tsx +2 -0
  420. package/src/helpers/getAnimationDriver.tsx +5 -0
  421. package/src/helpers/getExpandedShorthands.ts +15 -0
  422. package/src/helpers/getFont.tsx +43 -0
  423. package/src/helpers/getFontLanguage.ts +2 -0
  424. package/src/helpers/getSize.ts +22 -0
  425. package/src/helpers/getSplitStyles.tsx +738 -0
  426. package/src/helpers/getStackSize.ts +22 -0
  427. package/src/helpers/getStylesAtomic.native.ts +3 -0
  428. package/src/helpers/getStylesAtomic.ts +292 -0
  429. package/src/helpers/getThemeCSSRules.native.ts +3 -0
  430. package/src/helpers/getThemeCSSRules.ts +105 -0
  431. package/src/helpers/getVariantExtras.tsx +84 -0
  432. package/src/helpers/insertStyleRule.tsx +150 -0
  433. package/src/helpers/isObj.ts +1 -0
  434. package/src/helpers/isTamaguiComponent.tsx +15 -0
  435. package/src/helpers/isTamaguiElement.tsx +12 -0
  436. package/src/helpers/matchMedia.native.ts +6 -0
  437. package/src/helpers/matchMedia.ts +16 -0
  438. package/src/helpers/mergeProps.ts +56 -0
  439. package/src/helpers/mergeTransform.ts +16 -0
  440. package/src/helpers/normalizeColor.ts +53 -0
  441. package/src/helpers/normalizeValueWithProperty.ts +80 -0
  442. package/src/helpers/proxyThemeVariables.tsx +18 -0
  443. package/src/helpers/pseudoDescriptors.ts +18 -0
  444. package/src/helpers/registerCSSVariable.ts +11 -0
  445. package/src/helpers/startTransition.ts +4 -0
  446. package/src/helpers/themeable.tsx +45 -0
  447. package/src/helpers/themes.ts +69 -0
  448. package/src/helpers/useShallowSetState.tsx +20 -0
  449. package/src/helpers/validate.ts +80 -0
  450. package/src/helpers/withStaticProperties.tsx +7 -0
  451. package/src/hooks/getThemeUnwrapped.tsx +8 -0
  452. package/src/hooks/useConstant.tsx +19 -0
  453. package/src/hooks/useId.tsx +1 -0
  454. package/src/hooks/useIsMounted.ts +16 -0
  455. package/src/hooks/useIsTouchDevice.tsx +20 -0
  456. package/src/hooks/useMedia.tsx +266 -0
  457. package/src/hooks/usePressable.tsx +9 -0
  458. package/src/hooks/useSafeRef.ts +49 -0
  459. package/src/hooks/useServerHooks.tsx +12 -0
  460. package/src/hooks/useTheme.tsx +299 -0
  461. package/src/hooks/useUnmountEffect.ts +5 -0
  462. package/src/index.ts +83 -0
  463. package/src/injectStyles.ts +20 -0
  464. package/src/insertFont.ts +70 -0
  465. package/src/static.ts +15 -0
  466. package/src/styled.tsx +198 -0
  467. package/src/types-rnw.tsx +162 -0
  468. package/src/types.tsx +1326 -0
  469. package/src/updateTheme.ts +23 -0
  470. package/src/vendor/Pressability.native.tsx +3 -0
  471. package/src/vendor/Pressability.tsx +2 -0
  472. package/src/views/FontLanguage.native.tsx +9 -0
  473. package/src/views/FontLanguage.tsx +18 -0
  474. package/src/views/FontLanguage.types.ts +13 -0
  475. package/src/views/Slot.tsx +147 -0
  476. package/src/views/Stack.tsx +24 -0
  477. package/src/views/TamaguiProvider.tsx +56 -0
  478. package/src/views/Text.tsx +79 -0
  479. package/src/views/Theme.tsx +72 -0
  480. package/src/views/ThemeInverse.tsx +33 -0
  481. package/src/views/ThemeProvider.tsx +63 -0
  482. package/src/views/ThemeReset.tsx +43 -0
  483. package/types/Tamagui.d.ts +7 -9
  484. package/types/addTheme.d.ts +11 -0
  485. package/types/config.d.ts +47 -0
  486. package/types/constants/constants.d.ts +1 -1
  487. package/types/constants/isDevTools.d.ts +2 -0
  488. package/types/constants/platform.d.ts +7 -6
  489. package/types/constants/platform.native.d.ts +13 -0
  490. package/types/contexts/FontLanguageContext.d.ts +5 -0
  491. package/types/{views → contexts}/TextAncestorContext.d.ts +0 -0
  492. package/types/{ThemeContext.d.ts → contexts/ThemeContext.d.ts} +1 -1
  493. package/types/createComponent.d.ts +32 -15
  494. package/types/createShorthands.d.ts +2 -1
  495. package/types/createTamagui.d.ts +2 -17
  496. package/types/createTheme.d.ts +1 -1
  497. package/types/createTokens.d.ts +5 -6
  498. package/types/createVariable.d.ts +24 -12
  499. package/types/createVariables.d.ts +10 -0
  500. package/types/helpers/RNComponents.d.ts +1 -1
  501. package/types/helpers/ThemeManager.d.ts +46 -0
  502. package/types/helpers/assignNativePropsToWeb.d.ts +2 -0
  503. package/types/helpers/assignNativePropsToWeb.native.d.ts +2 -0
  504. package/types/helpers/calc.d.ts +17 -0
  505. package/types/helpers/createMediaStyle.d.ts +2 -4
  506. package/types/helpers/createPropMapper.d.ts +6 -3
  507. package/types/helpers/expandStyle.d.ts +6 -0
  508. package/types/helpers/expandStyles.d.ts +26 -0
  509. package/types/helpers/getAnimationDriver.d.ts +6 -0
  510. package/types/helpers/getFont.d.ts +3 -0
  511. package/types/helpers/getFontLanguage.d.ts +2 -0
  512. package/types/helpers/getSize.d.ts +3 -2
  513. package/types/helpers/getSplitStyles.d.ts +16 -9
  514. package/types/helpers/getStackSize.d.ts +8 -0
  515. package/types/helpers/getStylesAtomic.d.ts +17 -22
  516. package/types/helpers/getThemeCSSRules.d.ts +8 -0
  517. package/types/helpers/getThemeCSSRules.native.d.ts +2 -0
  518. package/types/helpers/getVariantExtras.d.ts +5 -0
  519. package/types/helpers/insertStyleRule.d.ts +7 -3
  520. package/types/helpers/isTamaguiComponent.d.ts +5 -0
  521. package/types/helpers/isTamaguiElement.d.ts +5 -1
  522. package/types/helpers/matchMedia.d.ts +1 -1
  523. package/types/helpers/mergeProps.d.ts +17 -0
  524. package/types/helpers/mergeTransform.d.ts +7 -0
  525. package/types/helpers/normalizeColor.d.ts +3 -0
  526. package/types/helpers/normalizeValueWithProperty.d.ts +6 -0
  527. package/types/helpers/pseudoDescriptors.d.ts +16 -0
  528. package/types/helpers/registerCSSVariable.d.ts +5 -0
  529. package/types/helpers/startTransition.d.ts +3 -0
  530. package/types/helpers/themes.d.ts +4 -0
  531. package/types/helpers/useShallowSetState.d.ts +3 -0
  532. package/types/helpers/validate.d.ts +0 -3
  533. package/types/hooks/getThemeUnwrapped.d.ts +3 -0
  534. package/types/hooks/useId.d.ts +1 -8
  535. package/types/hooks/useMedia.d.ts +20 -6
  536. package/types/hooks/useSafeRef.d.ts +4 -0
  537. package/types/hooks/useServerHooks.d.ts +4 -0
  538. package/types/hooks/useTheme.d.ts +21 -31
  539. package/types/index.d.ts +29 -9
  540. package/types/injectStyles.d.ts +7 -0
  541. package/types/insertFont.d.ts +9 -0
  542. package/types/static.d.ts +2 -15
  543. package/types/styled.d.ts +7 -3
  544. package/types/types.d.ts +303 -92
  545. package/types/updateTheme.d.ts +9 -0
  546. package/types/vendor/Pressability.d.ts +3 -0
  547. package/types/vendor/Pressability.native.d.ts +3 -0
  548. package/types/views/FontLanguage.d.ts +4 -0
  549. package/types/views/FontLanguage.native.d.ts +4 -0
  550. package/types/views/FontLanguage.types.d.ts +11 -0
  551. package/types/views/Slot.d.ts +5 -4
  552. package/types/views/TamaguiProvider.d.ts +4 -0
  553. package/types/views/Theme.d.ts +3 -9
  554. package/types/views/ThemeInverse.d.ts +4 -8
  555. package/types/views/ThemeProvider.d.ts +2 -1
  556. package/dist/cjs/ThemeContext.js.map +0 -7
  557. package/dist/cjs/ThemeManager.js.map +0 -7
  558. package/dist/cjs/conf.js.map +0 -7
  559. package/dist/cjs/constants/rnw.js +0 -46
  560. package/dist/cjs/constants/rnw.js.map +0 -7
  561. package/dist/cjs/defaultComponentState.js +0 -1
  562. package/dist/cjs/helpers/addStylesUsingClassname.js +0 -87
  563. package/dist/cjs/helpers/addStylesUsingClassname.js.map +0 -7
  564. package/dist/cjs/helpers/createTamaguiProvider.js +0 -93
  565. package/dist/cjs/helpers/createTamaguiProvider.js.map +0 -7
  566. package/dist/cjs/helpers/fixNativeShadow.native.js +0 -53
  567. package/dist/cjs/helpers/fixNativeShadow.native.js.map +0 -7
  568. package/dist/cjs/helpers/getButtonSize.js +0 -45
  569. package/dist/cjs/helpers/getButtonSize.js.map +0 -7
  570. package/dist/cjs/helpers/getTextSize.js.map +0 -7
  571. package/dist/cjs/helpers/nativeGestureHandler.js.map +0 -7
  572. package/dist/cjs/helpers/nativeGestureHandler.native.js.map +0 -7
  573. package/dist/cjs/helpers/wrapThemeManagerContext.js.map +0 -7
  574. package/dist/cjs/hooks/useFeatures.js +0 -228
  575. package/dist/cjs/hooks/useFeatures.js.map +0 -7
  576. package/dist/cjs/hooks/usePrevious.js +0 -1
  577. package/dist/cjs/hooks/usePrevious.js.map +0 -7
  578. package/dist/cjs/nativeGestureHandler.native.js.map +0 -7
  579. package/dist/cjs/views/TextAncestorContext.js.map +0 -7
  580. package/dist/esm/ThemeContext.js.map +0 -7
  581. package/dist/esm/ThemeManager.js.map +0 -7
  582. package/dist/esm/conf.js +0 -36
  583. package/dist/esm/conf.js.map +0 -7
  584. package/dist/esm/constants/rnw.js +0 -24
  585. package/dist/esm/constants/rnw.js.map +0 -7
  586. package/dist/esm/defaultComponentState.js +0 -1
  587. package/dist/esm/defaultComponentState.js.map +0 -7
  588. package/dist/esm/helpers/addStylesUsingClassname.js +0 -64
  589. package/dist/esm/helpers/addStylesUsingClassname.js.map +0 -7
  590. package/dist/esm/helpers/createTamaguiProvider.js +0 -40
  591. package/dist/esm/helpers/createTamaguiProvider.js.map +0 -7
  592. package/dist/esm/helpers/fixNativeShadow.native.js +0 -32
  593. package/dist/esm/helpers/fixNativeShadow.native.js.map +0 -7
  594. package/dist/esm/helpers/getButtonSize.js +0 -24
  595. package/dist/esm/helpers/getButtonSize.js.map +0 -7
  596. package/dist/esm/helpers/getTextSize.js.map +0 -7
  597. package/dist/esm/helpers/nativeGestureHandler.js +0 -7
  598. package/dist/esm/helpers/nativeGestureHandler.js.map +0 -7
  599. package/dist/esm/helpers/nativeGestureHandler.native.js +0 -2
  600. package/dist/esm/helpers/nativeGestureHandler.native.js.map +0 -7
  601. package/dist/esm/helpers/wrapThemeManagerContext.js +0 -14
  602. package/dist/esm/helpers/wrapThemeManagerContext.js.map +0 -7
  603. package/dist/esm/hooks/useFeatures.js +0 -173
  604. package/dist/esm/hooks/useFeatures.js.map +0 -7
  605. package/dist/esm/hooks/usePrevious.js +0 -1
  606. package/dist/esm/hooks/usePrevious.js.map +0 -7
  607. package/dist/esm/nativeGestureHandler.native.js +0 -2
  608. package/dist/esm/nativeGestureHandler.native.js.map +0 -7
  609. package/dist/esm/views/TextAncestorContext.js +0 -18
  610. package/dist/esm/views/TextAncestorContext.js.map +0 -7
  611. package/dist/jsx/Tamagui.js +0 -41
  612. package/dist/jsx/ThemeContext.js +0 -5
  613. package/dist/jsx/ThemeManager.js +0 -186
  614. package/dist/jsx/conf.js +0 -35
  615. package/dist/jsx/constants/constants.js +0 -17
  616. package/dist/jsx/constants/platform.js +0 -25
  617. package/dist/jsx/constants/rnw.js +0 -23
  618. package/dist/jsx/contexts/ButtonInsideButtonContext.js +0 -5
  619. package/dist/jsx/createComponent.js +0 -636
  620. package/dist/jsx/createFont.js +0 -27
  621. package/dist/jsx/createShorthands.js +0 -9
  622. package/dist/jsx/createTamagui.js +0 -201
  623. package/dist/jsx/createTheme.js +0 -6
  624. package/dist/jsx/createTokens.js +0 -28
  625. package/dist/jsx/createVariable.js +0 -48
  626. package/dist/jsx/defaultComponentState.js +0 -0
  627. package/dist/jsx/helpers/RNComponents.js +0 -11
  628. package/dist/jsx/helpers/addStylesUsingClassname.js +0 -63
  629. package/dist/jsx/helpers/areEqualSets.js +0 -15
  630. package/dist/jsx/helpers/createMediaStyle.js +0 -30
  631. package/dist/jsx/helpers/createPropMapper.js +0 -237
  632. package/dist/jsx/helpers/createShallowUpdate.js +0 -18
  633. package/dist/jsx/helpers/createTamaguiProvider.js +0 -34
  634. package/dist/jsx/helpers/extendStaticConfig.js +0 -61
  635. package/dist/jsx/helpers/fixNativeShadow.js +0 -7
  636. package/dist/jsx/helpers/fixNativeShadow.native.js +0 -31
  637. package/dist/jsx/helpers/getButtonSize.js +0 -23
  638. package/dist/jsx/helpers/getExpandedShorthands.js +0 -18
  639. package/dist/jsx/helpers/getSize.js +0 -12
  640. package/dist/jsx/helpers/getSplitStyles.js +0 -322
  641. package/dist/jsx/helpers/getStylesAtomic.js +0 -130
  642. package/dist/jsx/helpers/getStylesAtomic.native.js +0 -9
  643. package/dist/jsx/helpers/getTextSize.js +0 -33
  644. package/dist/jsx/helpers/insertStyleRule.js +0 -94
  645. package/dist/jsx/helpers/isObj.js +0 -6
  646. package/dist/jsx/helpers/isTamaguiElement.js +0 -10
  647. package/dist/jsx/helpers/matchMedia.js +0 -17
  648. package/dist/jsx/helpers/matchMedia.native.js +0 -8
  649. package/dist/jsx/helpers/nativeGestureHandler.js +0 -6
  650. package/dist/jsx/helpers/nativeGestureHandler.native.js +0 -1
  651. package/dist/jsx/helpers/proxyThemeVariables.js +0 -17
  652. package/dist/jsx/helpers/themeable.js +0 -24
  653. package/dist/jsx/helpers/validate.js +0 -75
  654. package/dist/jsx/helpers/withStaticProperties.js +0 -9
  655. package/dist/jsx/helpers/wrapThemeManagerContext.js +0 -10
  656. package/dist/jsx/hooks/useConstant.js +0 -14
  657. package/dist/jsx/hooks/useFeatures.js +0 -167
  658. package/dist/jsx/hooks/useId.js +0 -34
  659. package/dist/jsx/hooks/useIsMounted.js +0 -18
  660. package/dist/jsx/hooks/useIsTouchDevice.js +0 -16
  661. package/dist/jsx/hooks/useMedia.js +0 -158
  662. package/dist/jsx/hooks/usePressable.js +0 -13
  663. package/dist/jsx/hooks/usePrevious.js +0 -0
  664. package/dist/jsx/hooks/useTheme.js +0 -177
  665. package/dist/jsx/hooks/useUnmountEffect.js +0 -10
  666. package/dist/jsx/index.js +0 -54
  667. package/dist/jsx/nativeGestureHandler.native.js +0 -1
  668. package/dist/jsx/static.js +0 -16
  669. package/dist/jsx/styled.js +0 -47
  670. package/dist/jsx/types-rnw.js +0 -0
  671. package/dist/jsx/types.js +0 -0
  672. package/dist/jsx/views/Slot.js +0 -75
  673. package/dist/jsx/views/Stack.js +0 -12
  674. package/dist/jsx/views/Text.js +0 -56
  675. package/dist/jsx/views/TextAncestorContext.js +0 -15
  676. package/dist/jsx/views/Theme.js +0 -31
  677. package/dist/jsx/views/ThemeInverse.js +0 -27
  678. package/dist/jsx/views/ThemeProvider.js +0 -35
  679. package/dist/jsx/views/ThemeReset.js +0 -34
  680. package/types/Tamagui.d.ts.map +0 -1
  681. package/types/ThemeContext.d.ts.map +0 -1
  682. package/types/ThemeManager.d.ts +0 -49
  683. package/types/ThemeManager.d.ts.map +0 -1
  684. package/types/conf.d.ts +0 -27
  685. package/types/conf.d.ts.map +0 -1
  686. package/types/constants/constants.d.ts.map +0 -1
  687. package/types/constants/platform.d.ts.map +0 -1
  688. package/types/constants/rnw.d.ts +0 -2
  689. package/types/constants/rnw.d.ts.map +0 -1
  690. package/types/contexts/ButtonInsideButtonContext.d.ts.map +0 -1
  691. package/types/createComponent.d.ts.map +0 -1
  692. package/types/createFont.d.ts.map +0 -1
  693. package/types/createShorthands.d.ts.map +0 -1
  694. package/types/createTamagui.d.ts.map +0 -1
  695. package/types/createTheme.d.ts.map +0 -1
  696. package/types/createTokens.d.ts.map +0 -1
  697. package/types/createVariable.d.ts.map +0 -1
  698. package/types/defaultComponentState.d.ts +0 -1
  699. package/types/defaultComponentState.d.ts.map +0 -1
  700. package/types/helpers/RNComponents.d.ts.map +0 -1
  701. package/types/helpers/addStylesUsingClassname.d.ts +0 -3
  702. package/types/helpers/addStylesUsingClassname.d.ts.map +0 -1
  703. package/types/helpers/areEqualSets.d.ts.map +0 -1
  704. package/types/helpers/createMediaStyle.d.ts.map +0 -1
  705. package/types/helpers/createPropMapper.d.ts.map +0 -1
  706. package/types/helpers/createShallowUpdate.d.ts +0 -4
  707. package/types/helpers/createShallowUpdate.d.ts.map +0 -1
  708. package/types/helpers/createTamaguiProvider.d.ts +0 -7
  709. package/types/helpers/createTamaguiProvider.d.ts.map +0 -1
  710. package/types/helpers/extendStaticConfig.d.ts.map +0 -1
  711. package/types/helpers/fixNativeShadow.d.ts.map +0 -1
  712. package/types/helpers/fixNativeShadow.native.d.ts +0 -3
  713. package/types/helpers/fixNativeShadow.native.d.ts.map +0 -1
  714. package/types/helpers/getButtonSize.d.ts +0 -8
  715. package/types/helpers/getButtonSize.d.ts.map +0 -1
  716. package/types/helpers/getExpandedShorthands.d.ts.map +0 -1
  717. package/types/helpers/getSize.d.ts.map +0 -1
  718. package/types/helpers/getSplitStyles.d.ts.map +0 -1
  719. package/types/helpers/getStylesAtomic.d.ts.map +0 -1
  720. package/types/helpers/getStylesAtomic.native.d.ts.map +0 -1
  721. package/types/helpers/getTextSize.d.ts +0 -3
  722. package/types/helpers/getTextSize.d.ts.map +0 -1
  723. package/types/helpers/insertStyleRule.d.ts.map +0 -1
  724. package/types/helpers/isObj.d.ts.map +0 -1
  725. package/types/helpers/isTamaguiElement.d.ts.map +0 -1
  726. package/types/helpers/matchMedia.d.ts.map +0 -1
  727. package/types/helpers/matchMedia.native.d.ts.map +0 -1
  728. package/types/helpers/nativeGestureHandler.d.ts +0 -2
  729. package/types/helpers/nativeGestureHandler.d.ts.map +0 -1
  730. package/types/helpers/nativeGestureHandler.native.d.ts +0 -2
  731. package/types/helpers/nativeGestureHandler.native.d.ts.map +0 -1
  732. package/types/helpers/proxyThemeVariables.d.ts.map +0 -1
  733. package/types/helpers/themeable.d.ts.map +0 -1
  734. package/types/helpers/validate.d.ts.map +0 -1
  735. package/types/helpers/withStaticProperties.d.ts.map +0 -1
  736. package/types/helpers/wrapThemeManagerContext.d.ts +0 -3
  737. package/types/helpers/wrapThemeManagerContext.d.ts.map +0 -1
  738. package/types/hooks/useConstant.d.ts.map +0 -1
  739. package/types/hooks/useFeatures.d.ts +0 -18
  740. package/types/hooks/useFeatures.d.ts.map +0 -1
  741. package/types/hooks/useId.d.ts.map +0 -1
  742. package/types/hooks/useIsMounted.d.ts.map +0 -1
  743. package/types/hooks/useIsTouchDevice.d.ts.map +0 -1
  744. package/types/hooks/useMedia.d.ts.map +0 -1
  745. package/types/hooks/usePressable.d.ts.map +0 -1
  746. package/types/hooks/usePrevious.d.ts +0 -1
  747. package/types/hooks/usePrevious.d.ts.map +0 -1
  748. package/types/hooks/useTheme.d.ts.map +0 -1
  749. package/types/hooks/useUnmountEffect.d.ts.map +0 -1
  750. package/types/index.d.ts.map +0 -1
  751. package/types/nativeGestureHandler.native.d.ts +0 -2
  752. package/types/nativeGestureHandler.native.d.ts.map +0 -1
  753. package/types/static.d.ts.map +0 -1
  754. package/types/styled.d.ts.map +0 -1
  755. package/types/types-rnw.d.ts.map +0 -1
  756. package/types/types.d.ts.map +0 -1
  757. package/types/views/Slot.d.ts.map +0 -1
  758. package/types/views/Stack.d.ts.map +0 -1
  759. package/types/views/Text.d.ts.map +0 -1
  760. package/types/views/TextAncestorContext.d.ts.map +0 -1
  761. package/types/views/Theme.d.ts.map +0 -1
  762. package/types/views/ThemeInverse.d.ts.map +0 -1
  763. package/types/views/ThemeProvider.d.ts.map +0 -1
  764. package/types/views/ThemeReset.d.ts.map +0 -1
@@ -0,0 +1,47 @@
1
+ import { ConfigListener, TamaguiInternalConfig, Tokens } from './types';
2
+ export declare const setConfig: (next: TamaguiInternalConfig) => void;
3
+ export declare const setConfigFont: (name: string, font: any, fontParsed: any) => void;
4
+ export declare const getHasConfigured: () => boolean;
5
+ export declare const getConfig: () => TamaguiInternalConfig<import("./types").CreateTokens<import("./types").VariableVal>, {
6
+ [key: string]: Partial<import("./types").TamaguiBaseTheme> & {
7
+ [key: string]: import("./types").VariableVal;
8
+ };
9
+ }, import("./types").GenericShorthands, {
10
+ [key: string]: {
11
+ [key: string]: string | number;
12
+ };
13
+ }, {
14
+ [key: string]: string | any[] | {
15
+ [key: string]: any;
16
+ };
17
+ }, import("./types").GenericFonts>;
18
+ export declare const getTokens: (prefixed?: boolean) => Tokens;
19
+ /**
20
+ * Note: this is the same as `getTokens`
21
+ */
22
+ export declare const useTokens: (prefixed?: boolean) => Tokens;
23
+ export declare const getThemes: () => {
24
+ [x: string]: {
25
+ [x: string]: import("./createVariable").Variable<any>;
26
+ background?: import("./createVariable").Variable<any> | undefined;
27
+ backgroundHover?: import("./createVariable").Variable<any> | undefined;
28
+ backgroundPress?: import("./createVariable").Variable<any> | undefined;
29
+ backgroundFocus?: import("./createVariable").Variable<any> | undefined;
30
+ color?: import("./createVariable").Variable<any> | undefined;
31
+ colorHover?: import("./createVariable").Variable<any> | undefined;
32
+ colorPress?: import("./createVariable").Variable<any> | undefined;
33
+ colorFocus?: import("./createVariable").Variable<any> | undefined;
34
+ borderColor?: import("./createVariable").Variable<any> | undefined;
35
+ borderColorHover?: import("./createVariable").Variable<any> | undefined;
36
+ borderColorPress?: import("./createVariable").Variable<any> | undefined;
37
+ borderColorFocus?: import("./createVariable").Variable<any> | undefined;
38
+ shadowColor?: import("./createVariable").Variable<any> | undefined;
39
+ shadowColorHover?: import("./createVariable").Variable<any> | undefined;
40
+ shadowColorPress?: import("./createVariable").Variable<any> | undefined;
41
+ shadowColorFocus?: import("./createVariable").Variable<any> | undefined;
42
+ };
43
+ };
44
+ export declare const configListeners: Set<ConfigListener>;
45
+ export declare const onConfiguredOnce: (cb: ConfigListener) => void;
46
+ export declare const updateConfig: (key: string, value: any) => void;
47
+ //# sourceMappingURL=config.d.ts.map
@@ -1,5 +1,5 @@
1
1
  export declare const THEME_NAME_SEPARATOR = "_";
2
- export declare const THEME_CLASSNAME_PREFIX = "tui_";
2
+ export declare const THEME_CLASSNAME_PREFIX = "t_";
3
3
  export declare const stackDefaultStyles: {
4
4
  display?: string | undefined;
5
5
  flexBasis?: string | undefined;
@@ -0,0 +1,2 @@
1
+ export declare const isDevTools: any;
2
+ //# sourceMappingURL=isDevTools.d.ts.map
@@ -1,12 +1,13 @@
1
- import { useEffect } from 'react';
1
+ import { useLayoutEffect } from 'react';
2
2
  export declare const isAndroid: boolean;
3
3
  export declare const isIOS: boolean;
4
4
  export declare const isWeb: boolean;
5
- export declare const isSSR: boolean;
5
+ export declare const isWindowDefined: boolean;
6
+ export declare const isServer: boolean;
6
7
  export declare const isClient: boolean;
7
- export declare const useIsomorphicLayoutEffect: typeof useEffect;
8
+ export declare const isRSC: any;
9
+ export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
8
10
  export declare const isChrome: boolean;
9
- export declare const supportsTouchWeb: boolean;
10
- export declare const isTouchDevice: boolean;
11
- export declare const isWebIOS: boolean;
11
+ export declare const isWebTouchable: boolean;
12
+ export declare const isTouchable: boolean;
12
13
  //# sourceMappingURL=platform.d.ts.map
@@ -0,0 +1,13 @@
1
+ import { useLayoutEffect } from 'react';
2
+ export declare const isAndroid: boolean;
3
+ export declare const isIOS: boolean;
4
+ export declare const isWeb = false;
5
+ export declare const isWindowDefined = false;
6
+ export declare const isServer = false;
7
+ export declare const isClient = false;
8
+ export declare const isRSC = false;
9
+ export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
10
+ export declare const isChrome = false;
11
+ export declare const isWebTouchable = false;
12
+ export declare const isTouchable = true;
13
+ //# sourceMappingURL=platform.native.d.ts.map
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const FontLanguageContext: import("react").Context<Partial<{
3
+ [x: string]: import("..").FontLanguages;
4
+ }> | null>;
5
+ //# sourceMappingURL=FontLanguageContext.d.ts.map
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ThemeName, Themes } from './types';
2
+ import { ThemeName, Themes } from '../types';
3
3
  export declare const ThemeContext: import("react").Context<{
4
4
  themes: Themes;
5
5
  defaultTheme: ThemeName;
@@ -1,19 +1,36 @@
1
- /// <reference types="react" />
2
- import { View, ViewStyle } from 'react-native';
3
- import { SpaceTokens, StackProps, StaticConfig, StaticConfigParsed, StylableComponent, TamaguiComponent } from './types';
1
+ import React from 'react';
2
+ import { SpaceDirection, SpaceTokens, SpacerProps, StaticConfig, StaticConfigParsed, StylableComponent, TamaguiComponent, TamaguiElement } from './types';
4
3
  export declare const mouseUps: Set<Function>;
5
- export declare function createComponent<ComponentPropTypes extends Object = {}, Ref = View, BaseProps = never>(configIn: Partial<StaticConfig> | StaticConfigParsed, ParentComponent?: StylableComponent): TamaguiComponent<ComponentPropTypes, Ref, BaseProps, {}>;
6
- export declare const Spacer: TamaguiComponent<Omit<StackProps, "flex" | "direction"> & {
7
- size?: SpaceTokens | undefined;
8
- flex?: number | boolean | undefined;
9
- direction?: "horizontal" | "vertical" | undefined;
10
- }, View, never, {}>;
11
- export declare function spacedChildren({ isZStack, children, space, flexDirection, spaceFlex, }: {
4
+ export declare function createComponent<ComponentPropTypes extends Object = {}, Ref = TamaguiElement, BaseProps = never>(configIn: Partial<StaticConfig> | StaticConfigParsed, ParentComponent?: StylableComponent): TamaguiComponent<ComponentPropTypes, Ref, BaseProps, {}>;
5
+ export declare const Unspaced: {
6
+ (props: {
7
+ children?: any;
8
+ }): any;
9
+ isUnspaced: boolean;
10
+ };
11
+ export declare const Spacer: TamaguiComponent<SpacerProps, TamaguiElement, never, {}>;
12
+ export declare type SpacedChildrenProps = {
12
13
  isZStack?: boolean;
13
- children: any;
14
- space?: any;
14
+ children?: React.ReactNode;
15
+ space?: SpaceTokens | number | null;
15
16
  spaceFlex?: boolean | number;
16
- flexDirection?: ViewStyle['flexDirection'];
17
- }): any[];
18
- export declare function AbsoluteFill(props: any): JSX.Element;
17
+ direction?: SpaceDirection;
18
+ separator?: React.ReactNode;
19
+ };
20
+ export declare function spacedChildren({ isZStack, children, space, direction, spaceFlex, separator, }: SpacedChildrenProps): React.ReactNode;
21
+ export declare function processIDRefList(idRefList: string | Array<string>): string;
22
+ export declare const accessibilityRoleToWebRole: {
23
+ adjustable: string;
24
+ button: string;
25
+ header: string;
26
+ image: string;
27
+ imagebutton: null;
28
+ keyboardkey: null;
29
+ label: null;
30
+ link: string;
31
+ none: string;
32
+ search: string;
33
+ summary: string;
34
+ text: null;
35
+ };
19
36
  //# sourceMappingURL=createComponent.d.ts.map
@@ -1,2 +1,3 @@
1
- export declare function createShorthands<A extends Record<string, string>>(shorthands: A): A;
1
+ import { CreateShorthands } from './types';
2
+ export declare function createShorthands<A extends CreateShorthands>(shorthands: A): A;
2
3
  //# sourceMappingURL=createShorthands.d.ts.map
@@ -1,18 +1,3 @@
1
- import { Variable } from './createVariable';
2
- import { AnimationDriver, CreateTamaguiConfig, GenericTamaguiConfig, MediaQueryKey, TamaguiInternalConfig } from './types';
3
- export declare type CreateTamaguiProps = Partial<Omit<GenericTamaguiConfig, 'themes' | 'tokens' | 'animations'>> & {
4
- animations?: AnimationDriver<any>;
5
- tokens: GenericTamaguiConfig['tokens'];
6
- themes: {
7
- [key: string]: {
8
- [key: string]: string | number | Variable;
9
- };
10
- };
11
- mediaQueryDefaultActive?: MediaQueryKey[];
12
- cssStyleSeparator?: string;
13
- maxDarkLightNesting?: number;
14
- shouldAddPrefersColorThemes?: boolean;
15
- themeClassNameOnRoot?: boolean;
16
- };
17
- export declare function createTamagui<Conf extends CreateTamaguiProps>(config: Conf): Conf extends Partial<CreateTamaguiConfig<infer A, infer B, infer C, infer D, infer E, infer F>> ? TamaguiInternalConfig<A, B, C, D, E, F> : unknown;
1
+ import { CreateTamaguiProps, InferTamaguiConfig } from './types';
2
+ export declare function createTamagui<Conf extends CreateTamaguiProps>(configIn: Conf): InferTamaguiConfig<Conf>;
18
3
  //# sourceMappingURL=createTamagui.d.ts.map
@@ -2,6 +2,6 @@ import { Variable } from './createVariable';
2
2
  declare type GenericTheme = {
3
3
  [key: string]: string | Variable;
4
4
  };
5
- export declare const createTheme: <Theme extends GenericTheme>(theme: Theme) => { [K in keyof Theme]: string | Variable | Theme[K]; };
5
+ export declare const createTheme: <Theme extends GenericTheme>(theme: Theme) => { [K in keyof Theme]: string | Variable<any> | Theme[K]; };
6
6
  export {};
7
7
  //# sourceMappingURL=createTheme.d.ts.map
@@ -1,7 +1,6 @@
1
1
  import { Variable } from './createVariable';
2
2
  import { CreateTokens } from './types';
3
3
  export declare function createTokens<T extends CreateTokens>(tokens: T): MakeTokens<T>;
4
- export declare const mapTokensToVariables: (tokens: CreateTokens, parentPath?: string) => CreateTokens<Variable>;
5
4
  declare type MakeTokens<T> = T extends {
6
5
  color: infer E;
7
6
  space: infer F;
@@ -10,19 +9,19 @@ declare type MakeTokens<T> = T extends {
10
9
  zIndex: infer J;
11
10
  } ? {
12
11
  color: {
13
- [key in keyof E]: Variable;
12
+ [Key in keyof E]: E[Key] extends Variable ? E[Key] : Variable<E[Key]>;
14
13
  };
15
14
  space: {
16
- [key in keyof F]: Variable;
15
+ [Key in keyof F]: F[Key] extends Variable ? F[Key] : Variable<F[Key]>;
17
16
  };
18
17
  size: {
19
- [key in keyof G]: Variable;
18
+ [Key in keyof G]: G[Key] extends Variable ? G[Key] : Variable<G[Key]>;
20
19
  };
21
20
  radius: {
22
- [key in keyof H]: Variable;
21
+ [Key in keyof H]: H[Key] extends Variable ? H[Key] : Variable<H[Key]>;
23
22
  };
24
23
  zIndex: {
25
- [key in keyof J]: Variable;
24
+ [Key in keyof J]: J[Key] extends Variable ? J[Key] : Variable<J[Key]>;
26
25
  };
27
26
  } : never;
28
27
  export {};
@@ -1,20 +1,32 @@
1
- export declare const IS_VARIABLE_SYMBOL = "__isVariable__";
2
- export declare class Variable {
3
- [IS_VARIABLE_SYMBOL]: boolean;
1
+ /**
2
+ * Should rename this to Token
3
+ * Moving to objects for React Server Components support
4
+ */
5
+ declare const IS_VAR = "__isVar__";
6
+ declare type VariableIn<A = any> = {
7
+ val: A;
4
8
  name: string;
5
- val: string | number;
6
- variable: string | number;
7
- constructor({ val, name }: VariableIn);
8
- toString(): string;
9
- }
10
- declare type VariableIn = {
11
- val: string | number | Variable;
9
+ key: string;
10
+ isFloating?: boolean;
11
+ };
12
+ export declare type Variable<A = any> = VariableIn<A> & {
13
+ [IS_VAR]?: true;
14
+ variable?: string;
15
+ };
16
+ export declare const createVariable: <A extends string | number = any>(props: VariableIn<A>) => VariableIn<A> | {
17
+ variable: string;
18
+ val: A;
12
19
  name: string;
20
+ key: string;
21
+ isFloating?: boolean | undefined;
22
+ __isVar__: boolean;
13
23
  };
14
- export declare const createVariable: (props: VariableIn) => Variable;
24
+ export declare function variableToString(vrble?: any, getValue?: boolean): string;
15
25
  export declare function isVariable(v: Variable | any): v is Variable;
26
+ export declare function getVariable(nameOrVariable: Variable | string): string;
16
27
  export declare function getVariableValue(v: Variable | any): any;
17
28
  export declare function getVariableName(v: Variable | any): any;
18
- export declare const createCSSVariable: (val: string, includeVar?: boolean) => string;
29
+ export declare function getVariableVariable(v: Variable | any): any;
30
+ export declare const createCSSVariable: (nameProp: string, includeVar?: boolean) => string;
19
31
  export {};
20
32
  //# sourceMappingURL=createVariable.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { Variable } from './createVariable';
2
+ declare type DeepTokenObject<Val extends string | number = any> = {
3
+ [key: string]: Val | DeepTokenObject<Val>;
4
+ };
5
+ export declare type DeepVariableObject<A extends DeepTokenObject> = {
6
+ [Key in keyof A]: A[Key] extends string | number ? Variable<A[Key]> : A[Key] extends DeepTokenObject ? DeepVariableObject<A[Key]> : never;
7
+ };
8
+ export declare const createVariables: <A extends DeepTokenObject<any>>(tokens: A, parentPath?: string, isFont?: boolean) => DeepVariableObject<A>;
9
+ export {};
10
+ //# sourceMappingURL=createVariables.d.ts.map
@@ -1,2 +1,2 @@
1
- export declare const RNComponents: WeakMap<object, any>;
1
+ export declare const RNComponents: Set<any>;
2
2
  //# sourceMappingURL=RNComponents.d.ts.map
@@ -0,0 +1,46 @@
1
+ /// <reference types="react" />
2
+ import { ThemeParsed, Themes } from '../types';
3
+ declare type ThemeListener = (name: string | null, themeManager: ThemeManager) => void;
4
+ export declare type SetActiveThemeProps = {
5
+ className?: string;
6
+ parentManager?: ThemeManager | null;
7
+ name?: string | null;
8
+ theme?: any;
9
+ };
10
+ export declare type GetNextThemeProps = {
11
+ themes?: Themes;
12
+ name?: string | null;
13
+ componentName?: string | null;
14
+ reset?: boolean;
15
+ };
16
+ export declare class ThemeManager {
17
+ name: string;
18
+ className: string;
19
+ theme: ThemeParsed | null;
20
+ parentManager: ThemeManager | null;
21
+ reset: boolean;
22
+ keys: Map<any, Set<string>>;
23
+ listeners: Map<any, Function>;
24
+ themeListeners: Set<ThemeListener>;
25
+ constructor(name?: string, className?: string, theme?: ThemeParsed | null, parentManager?: ThemeManager | null, reset?: boolean);
26
+ get didChangeTheme(): boolean | null;
27
+ get parentName(): string | null;
28
+ get fullName(): string;
29
+ getValue(key: string): import("..").Variable<any> | undefined;
30
+ isTracking(uuid: Object): boolean;
31
+ update({ name, theme, className }?: SetActiveThemeProps, force?: boolean, notify?: boolean): boolean;
32
+ getNextTheme(props?: GetNextThemeProps, debug?: any): {
33
+ name: string;
34
+ theme: ThemeParsed | null;
35
+ className: string | undefined;
36
+ };
37
+ getClassName(name: string): string;
38
+ track(uuid: any, keys: Set<string>): void;
39
+ notifyListeners(): void;
40
+ onChangeTheme(cb: ThemeListener): () => void;
41
+ onUpdate(uuid: any, cb: Function): () => void;
42
+ }
43
+ export declare const ThemeManagerContext: import("react").Context<ThemeManager | null>;
44
+ export declare const emptyManager: ThemeManager;
45
+ export {};
46
+ //# sourceMappingURL=ThemeManager.d.ts.map
@@ -0,0 +1,2 @@
1
+ export declare function assignNativePropsToWeb(elementType: string, viewProps: any, nativeProps: any): void;
2
+ //# sourceMappingURL=assignNativePropsToWeb.d.ts.map
@@ -0,0 +1,2 @@
1
+ export declare function assignNativePropsToWeb(elementType: string, viewProps: any, nativeProps: any): void;
2
+ //# sourceMappingURL=assignNativePropsToWeb.native.d.ts.map
@@ -0,0 +1,17 @@
1
+ import { FontLineHeightTokens, FontSizeTokens, SizeTokens, SpaceTokens } from '../types';
2
+ /**
3
+ * Simple calc() that handles native + web
4
+ * on web: outputs a calc() string
5
+ * on native: outputs a plain number
6
+ */
7
+ export declare type CalcVal = string | number | SizeTokens | SpaceTokens | FontSizeTokens | FontLineHeightTokens;
8
+ declare const operators: {
9
+ '+': (a: number, b: number) => number;
10
+ '-': (a: number, b: number) => number;
11
+ '/': (a: number, b: number) => number;
12
+ '*': (a: number, b: number) => number;
13
+ };
14
+ declare type Operator = keyof typeof operators;
15
+ export declare const calc: (...valuesAndOperators: (CalcVal | Operator)[]) => string | number;
16
+ export {};
17
+ //# sourceMappingURL=calc.d.ts.map
@@ -1,8 +1,6 @@
1
1
  import { StyleObject } from '@tamagui/helpers';
2
2
  import { MediaQueries } from '../types';
3
+ import { PartialStyleObject } from './insertStyleRule';
3
4
  export declare const MEDIA_SEP = "_";
4
- export declare const createMediaStyle: ({ identifier, rules }: StyleObject, mediaKey: string, mediaQueries: MediaQueries, negate?: boolean | undefined, importance?: number | undefined) => {
5
- styleRule: string;
6
- identifier: string;
7
- };
5
+ export declare const createMediaStyle: ({ property, identifier, rules }: StyleObject, mediaKey: string, mediaQueries: MediaQueries, negate?: boolean, importance?: number) => PartialStyleObject;
8
6
  //# sourceMappingURL=createMediaStyle.d.ts.map
@@ -1,4 +1,7 @@
1
- import { StaticConfig } from '../types';
2
- export declare type ResolveVariableTypes = 'auto' | 'value' | 'variable' | 'both';
3
- export declare const createPropMapper: (staticConfig: Partial<StaticConfig>) => (key: string, value: any, theme: any, props: any, returnVariablesAs?: ResolveVariableTypes, avoidDefaultProps?: boolean) => Record<string, any> | undefined;
1
+ import { PropMapper, SplitStyleState, StaticConfigParsed, TamaguiInternalConfig } from '../types';
2
+ export declare type ResolveVariableTypes = 'auto' | 'value' | 'variable' | 'both' | 'non-color-value';
3
+ export declare const getReturnVariablesAs: (props: any, state: Partial<SplitStyleState>) => "auto" | "value" | "non-color-value";
4
+ export declare const createPropMapper: (staticConfig: StaticConfigParsed) => PropMapper;
5
+ export declare function getFontFamilyFromNameOrVariable(input: any, conf: TamaguiInternalConfig): string | undefined;
6
+ export declare const getPropMappedFontFamily: (expanded?: any) => any;
4
7
  //# sourceMappingURL=createPropMapper.d.ts.map
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Some parts adapted from react-native-web
3
+ * Copyright (c) Nicolas Gallagher licensed under the MIT license.
4
+ */
5
+ export declare function expandStyle(key: string, value: any): any[][] | undefined;
6
+ //# sourceMappingURL=expandStyle.d.ts.map
@@ -0,0 +1,26 @@
1
+ export declare const defaultOffset: {
2
+ height: number;
3
+ width: number;
4
+ };
5
+ /**
6
+ * This is what you want to run before Object.assign() a style onto another.
7
+ * It does the following:
8
+ * 1. Turns user shorthands into longhands, ie px = paddingHorizontal
9
+ * 2. Normalizes various inconsistent styles to be more consistent
10
+ * 3. Expands react-native shorthands, ie paddingHorizontal => paddingLeft, paddingRight
11
+ */
12
+ export declare function expandStyles(style: Record<string, any>, config?: import("../types").TamaguiInternalConfig<import("../types").CreateTokens<import("../types").VariableVal>, {
13
+ [key: string]: Partial<import("../types").TamaguiBaseTheme> & {
14
+ [key: string]: import("../types").VariableVal;
15
+ };
16
+ }, import("../types").GenericShorthands, {
17
+ [key: string]: {
18
+ [key: string]: string | number;
19
+ };
20
+ }, {
21
+ [key: string]: string | any[] | {
22
+ [key: string]: any;
23
+ };
24
+ }, import("../types").GenericFonts>): Record<string, any>;
25
+ export declare function fixStyles(style: Record<string, any>): void;
26
+ //# sourceMappingURL=expandStyles.d.ts.map
@@ -0,0 +1,6 @@
1
+ export declare function getAnimationDriver(): import("..").AnimationDriver<{
2
+ [key: string]: string | any[] | {
3
+ [key: string]: any;
4
+ };
5
+ }>;
6
+ //# sourceMappingURL=getAnimationDriver.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { FontSizeTokens, TextProps, VariantSpreadFunction } from '../types';
2
+ export declare const getFont: VariantSpreadFunction<TextProps, FontSizeTokens>;
3
+ //# sourceMappingURL=getFont.d.ts.map
@@ -0,0 +1,2 @@
1
+ export declare const getFontLanguage: (fontFamily: string) => string | null;
2
+ //# sourceMappingURL=getFontLanguage.d.ts.map
@@ -1,3 +1,4 @@
1
- import { SizeTokens } from '../types';
2
- export declare const getSize: (size?: SizeTokens | undefined, sizeUpOrDownBy?: number) => SizeTokens;
1
+ import { SizeTokens, SpaceTokens } from '../types';
2
+ export declare const getSize: (size?: SizeTokens | undefined, shift?: number, bounds?: number[]) => any;
3
+ export declare const stepTokenUpOrDown: (tokens: Object, current?: SizeTokens | SpaceTokens | string, shift?: number, bounds?: number[]) => any;
3
4
  //# sourceMappingURL=getSize.d.ts.map
@@ -1,24 +1,31 @@
1
- import { ViewStyle } from 'react-native';
2
- import { MediaKeys, PseudoStyles, SplitStyleState, StackProps, StaticConfigParsed, ThemeObject } from '../types';
1
+ import type { ViewStyle } from 'react-native';
2
+ import type { DebugProp, MediaQueryKey, PseudoStyles, SplitStyleState, StackProps, StaticConfigParsed, TamaguiInternalConfig, ThemeParsed } from '../types';
3
+ import { FontLanguageProps, LanguageContextType } from '../views/FontLanguage.types';
4
+ import { RulesToInsert } from './insertStyleRule';
3
5
  export declare type SplitStyles = ReturnType<typeof getSplitStyles>;
4
6
  export declare type ClassNamesObject = Record<string, string>;
5
7
  export declare type SplitStyleResult = ReturnType<typeof getSplitStyles>;
6
8
  declare type StyleSplitter = (props: {
7
9
  [key: string]: any;
8
- }, staticConfig: StaticConfigParsed, theme: ThemeObject, state: SplitStyleState & {
9
- keepVariantsAsProps?: boolean;
10
- }, defaultClassNames?: any) => {
10
+ }, staticConfig: StaticConfigParsed, theme: ThemeParsed, state: SplitStyleState, defaultClassNames?: any, languageContext?: LanguageContextType, debug?: DebugProp) => {
11
11
  pseudos: PseudoStyles;
12
- medias: Record<MediaKeys, ViewStyle>;
12
+ medias: Record<MediaQueryKey, ViewStyle>;
13
13
  style: ViewStyle;
14
14
  classNames: ClassNamesObject;
15
- rulesToInsert: [string, string][];
15
+ rulesToInsert: RulesToInsert;
16
16
  viewProps: StackProps;
17
+ fontFamily: string | undefined;
18
+ mediaKeys: string[];
19
+ };
20
+ export declare const PROP_SPLIT = "-";
21
+ export declare const pseudoCNInverse: {
22
+ hover: string;
23
+ focus: string;
24
+ press: string;
17
25
  };
18
26
  export declare const getSplitStyles: StyleSplitter;
27
+ export declare const getSubStyle: (subKey: string, styleIn: Object, staticConfig: StaticConfigParsed, theme: ThemeParsed, props: any, state: SplitStyleState, conf: TamaguiInternalConfig, languageContext?: FontLanguageProps, avoidDefaultProps?: boolean) => ViewStyle;
19
28
  export declare const insertSplitStyles: StyleSplitter;
20
29
  export declare const useSplitStyles: StyleSplitter;
21
- export declare const getSubStyle: (styleIn: Object, staticConfig: StaticConfigParsed, theme: ThemeObject, props: any, state: SplitStyleState, avoidDefaultProps?: boolean | undefined) => ViewStyle;
22
- export declare function normalizeStyleObject(style: any): void;
23
30
  export {};
24
31
  //# sourceMappingURL=getSplitStyles.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { SizeTokens, VariantSpreadExtras } from '../types';
2
+ export declare type ScaleVariantExtras = Pick<VariantSpreadExtras<any>, 'tokens' | 'props' | 'fonts'>;
3
+ export declare const getButtonSize: (val: SizeTokens | number, { tokens }: VariantSpreadExtras<any>) => {
4
+ paddingHorizontal: any;
5
+ height: any;
6
+ borderRadius: import("../types").VariableVal;
7
+ };
8
+ //# sourceMappingURL=getStackSize.d.ts.map
@@ -1,27 +1,22 @@
1
+ /**
2
+ * Some parts adapted from react-native-web
3
+ * Copyright (c) Nicolas Gallagher licensed under the MIT license.
4
+ */
1
5
  import { StyleObject } from '@tamagui/helpers';
2
- import { ViewStyle } from 'react-native';
3
- export declare type ViewStyleWithPseudos = ViewStyle & {
4
- hoverStyle?: ViewStyle;
5
- pressStyle?: ViewStyle;
6
- focusStyle?: ViewStyle;
6
+ import type { TextStyle, ViewStyle } from 'react-native';
7
+ import { PseudoDescriptor } from './pseudoDescriptors';
8
+ declare type ViewOrTextStyle = ViewStyle | TextStyle;
9
+ export declare type ViewStyleWithPseudos = ViewOrTextStyle & {
10
+ hoverStyle?: ViewOrTextStyle;
11
+ pressStyle?: ViewOrTextStyle;
12
+ focusStyle?: ViewOrTextStyle;
7
13
  };
8
- declare type AtomicStyleOptions = {
9
- splitTransforms?: boolean;
10
- };
11
- export declare function getStylesAtomic(stylesIn: ViewStyleWithPseudos, options?: AtomicStyleOptions): StyleObject[];
12
- export declare const pseudos: {
13
- hoverStyle: {
14
- name: string;
15
- priority: number;
16
- };
17
- pressStyle: {
18
- name: string;
19
- priority: number;
20
- };
21
- focusStyle: {
22
- name: string;
23
- priority: number;
24
- };
14
+ export declare function getStylesAtomic(stylesIn: ViewStyleWithPseudos): StyleObject[];
15
+ export declare function getAtomicStyle(style: ViewOrTextStyle, pseudo?: PseudoDescriptor): StyleObject[];
16
+ export declare function styleToCSS(style: Record<string, any>): void;
17
+ declare type Value = Object | Array<any> | string | number;
18
+ export declare type Style = {
19
+ [key: string]: Value;
25
20
  };
26
21
  export {};
27
22
  //# sourceMappingURL=getStylesAtomic.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { CreateTamaguiProps, ThemeParsed } from '../types';
2
+ export declare function getThemeCSSRules({ config, themeName, theme, names, }: {
3
+ config: CreateTamaguiProps;
4
+ themeName: string;
5
+ theme: ThemeParsed;
6
+ names: string[];
7
+ }): string[];
8
+ //# sourceMappingURL=getThemeCSSRules.d.ts.map
@@ -0,0 +1,2 @@
1
+ export declare function getThemeCSSRules(): never[];
2
+ //# sourceMappingURL=getThemeCSSRules.native.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { GenericFonts } from '../types';
2
+ import { LanguageContextType } from '../views/FontLanguage.types';
3
+ export declare function getVariantExtras(props: any, languageContext?: LanguageContextType, theme?: any, defaultProps?: any, avoidDefaultProps?: boolean): any;
4
+ export declare function getFontsForLanguage(fonts: GenericFonts, language: LanguageContextType): any;
5
+ //# sourceMappingURL=getVariantExtras.d.ts.map
@@ -1,8 +1,12 @@
1
+ import type { StyleObject } from '@tamagui/helpers';
1
2
  export declare const insertedTransforms: {};
2
3
  export declare const getAllSelectors: () => {};
3
- export declare const getInsertedRules: () => unknown[];
4
+ export declare const getAllRules: () => unknown[];
4
5
  export declare const getAllTransforms: () => {};
5
6
  export declare function updateInserted(): void;
6
- export declare function updateInsertedCache(identifier: string, rule: string): void;
7
- export declare function insertStyleRule(identifier: string, rule: string): void;
7
+ export declare function updateRules(identifier: string, rules: string[]): boolean;
8
+ export declare type PartialStyleObject = Pick<StyleObject, 'identifier' | 'property' | 'rules'>;
9
+ export declare type RulesToInsert = PartialStyleObject[];
10
+ export declare function insertStyleRules(rulesToInsert: RulesToInsert): void;
11
+ export declare function shouldInsertStyleRules(styleObject: PartialStyleObject): boolean;
8
12
  //# sourceMappingURL=insertStyleRule.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { StaticConfig } from '../types';
2
+ export declare function isTamaguiComponent<A>(comp: A, name?: string): comp is A & {
3
+ staticConfig: StaticConfig;
4
+ };
5
+ //# sourceMappingURL=isTamaguiComponent.d.ts.map
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
- export declare const isTamaguiElement: (child: any) => child is React.ReactElement<any, string | React.JSXElementConstructor<any>>;
2
+ import { TamaguiComponent } from '../types';
3
+ export declare type TamaguiReactElement<P = any> = React.ReactElement<P> & {
4
+ type: TamaguiComponent;
5
+ };
6
+ export declare const isTamaguiElement: (child: any, name?: string) => child is TamaguiReactElement<any>;
3
7
  //# sourceMappingURL=isTamaguiElement.d.ts.map
@@ -1,2 +1,2 @@
1
- export declare const matchMedia: any;
1
+ export declare const matchMedia: ((query: string) => MediaQueryList) & typeof globalThis.matchMedia;
2
2
  //# sourceMappingURL=matchMedia.d.ts.map