@tamagui/core 1.0.1-beta.92 → 1.0.1-beta.95

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 (445) hide show
  1. package/dist/cjs/Pressability.js +0 -0
  2. package/dist/cjs/Pressability.js.map +0 -0
  3. package/dist/cjs/Pressability.native.js +0 -0
  4. package/dist/cjs/Pressability.native.js.map +0 -0
  5. package/dist/cjs/Tamagui.js +0 -0
  6. package/dist/cjs/Tamagui.js.map +0 -0
  7. package/dist/cjs/ThemeContext.js +0 -0
  8. package/dist/cjs/ThemeContext.js.map +0 -0
  9. package/dist/cjs/ThemeManager.js +0 -0
  10. package/dist/cjs/ThemeManager.js.map +0 -0
  11. package/dist/cjs/conf.js +0 -0
  12. package/dist/cjs/conf.js.map +0 -0
  13. package/dist/cjs/constants/constants.js +0 -0
  14. package/dist/cjs/constants/constants.js.map +0 -0
  15. package/dist/cjs/constants/platform.js +0 -0
  16. package/dist/cjs/constants/platform.js.map +0 -0
  17. package/dist/cjs/constants/rnw.js +0 -0
  18. package/dist/cjs/constants/rnw.js.map +0 -0
  19. package/dist/cjs/constants/rnw.native.js +0 -0
  20. package/dist/cjs/constants/rnw.native.js.map +0 -0
  21. package/dist/cjs/contexts/ButtonInsideButtonContext.js +0 -0
  22. package/dist/cjs/contexts/ButtonInsideButtonContext.js.map +0 -0
  23. package/dist/cjs/createComponent.js +39 -49
  24. package/dist/cjs/createComponent.js.map +2 -2
  25. package/dist/cjs/createFont.js +0 -0
  26. package/dist/cjs/createFont.js.map +0 -0
  27. package/dist/cjs/createShorthands.js +0 -0
  28. package/dist/cjs/createShorthands.js.map +0 -0
  29. package/dist/cjs/createTamagui.js +15 -10
  30. package/dist/cjs/createTamagui.js.map +2 -2
  31. package/dist/cjs/createTheme.js +0 -0
  32. package/dist/cjs/createTheme.js.map +0 -0
  33. package/dist/cjs/createTokens.js +0 -0
  34. package/dist/cjs/createTokens.js.map +0 -0
  35. package/dist/cjs/createVariable.js +0 -0
  36. package/dist/cjs/createVariable.js.map +0 -0
  37. package/dist/cjs/createVariables.js +0 -0
  38. package/dist/cjs/createVariables.js.map +0 -0
  39. package/dist/cjs/defaultComponentState.js +0 -0
  40. package/dist/cjs/defaultComponentState.js.map +0 -0
  41. package/dist/cjs/helpers/RNComponents.js +0 -0
  42. package/dist/cjs/helpers/RNComponents.js.map +0 -0
  43. package/dist/cjs/helpers/areEqualSets.js +0 -0
  44. package/dist/cjs/helpers/areEqualSets.js.map +0 -0
  45. package/dist/cjs/helpers/assignNativePropsToWeb.js +0 -0
  46. package/dist/cjs/helpers/assignNativePropsToWeb.js.map +0 -0
  47. package/dist/cjs/helpers/assignNativePropsToWeb.native.js +0 -0
  48. package/dist/cjs/helpers/assignNativePropsToWeb.native.js.map +0 -0
  49. package/dist/cjs/helpers/calc.js +0 -0
  50. package/dist/cjs/helpers/calc.js.map +0 -0
  51. package/dist/cjs/helpers/createMediaStyle.js +0 -0
  52. package/dist/cjs/helpers/createMediaStyle.js.map +0 -0
  53. package/dist/cjs/helpers/createPropMapper.js +24 -17
  54. package/dist/cjs/helpers/createPropMapper.js.map +2 -2
  55. package/dist/cjs/helpers/createShallowUpdate.js +0 -0
  56. package/dist/cjs/helpers/createShallowUpdate.js.map +0 -0
  57. package/dist/cjs/helpers/createTamaguiProvider.js +0 -0
  58. package/dist/cjs/helpers/createTamaguiProvider.js.map +0 -0
  59. package/dist/cjs/helpers/expandStyle.js +120 -0
  60. package/dist/cjs/helpers/expandStyle.js.map +7 -0
  61. package/dist/cjs/helpers/expandStyles.js +126 -0
  62. package/dist/cjs/helpers/expandStyles.js.map +7 -0
  63. package/dist/cjs/helpers/extendStaticConfig.js +5 -3
  64. package/dist/cjs/helpers/extendStaticConfig.js.map +2 -2
  65. package/dist/cjs/helpers/fixNativeShadow.js +0 -0
  66. package/dist/cjs/helpers/fixNativeShadow.js.map +0 -0
  67. package/dist/cjs/helpers/getExpandedShorthands.js +0 -0
  68. package/dist/cjs/helpers/getExpandedShorthands.js.map +0 -0
  69. package/dist/cjs/helpers/getFont.js +61 -0
  70. package/dist/cjs/helpers/getFont.js.map +7 -0
  71. package/dist/cjs/helpers/getSize.js +0 -0
  72. package/dist/cjs/helpers/getSize.js.map +0 -0
  73. package/dist/cjs/helpers/getSplitStyles.js +113 -108
  74. package/dist/cjs/helpers/getSplitStyles.js.map +2 -2
  75. package/dist/cjs/helpers/getStackSize.js +7 -0
  76. package/dist/cjs/helpers/getStackSize.js.map +2 -2
  77. package/dist/cjs/helpers/getStylesAtomic.js +165 -4
  78. package/dist/cjs/helpers/getStylesAtomic.js.map +2 -2
  79. package/dist/cjs/helpers/getStylesAtomic.native.js +0 -0
  80. package/dist/cjs/helpers/getStylesAtomic.native.js.map +0 -0
  81. package/dist/cjs/helpers/getTextSize.js +0 -0
  82. package/dist/cjs/helpers/getTextSize.js.map +0 -0
  83. package/dist/cjs/helpers/getVariantExtras.js +0 -0
  84. package/dist/cjs/helpers/getVariantExtras.js.map +0 -0
  85. package/dist/cjs/helpers/insertStyleRule.js +0 -0
  86. package/dist/cjs/helpers/insertStyleRule.js.map +0 -0
  87. package/dist/cjs/helpers/isObj.js +0 -0
  88. package/dist/cjs/helpers/isObj.js.map +0 -0
  89. package/dist/cjs/helpers/isTamaguiComponent.js +0 -0
  90. package/dist/cjs/helpers/isTamaguiComponent.js.map +0 -0
  91. package/dist/cjs/helpers/isTamaguiElement.js +0 -0
  92. package/dist/cjs/helpers/isTamaguiElement.js.map +0 -0
  93. package/dist/cjs/helpers/matchMedia.js +0 -0
  94. package/dist/cjs/helpers/matchMedia.js.map +0 -0
  95. package/dist/cjs/helpers/matchMedia.native.js +0 -0
  96. package/dist/cjs/helpers/matchMedia.native.js.map +0 -0
  97. package/dist/cjs/helpers/mergeProps.js +0 -0
  98. package/dist/cjs/helpers/mergeProps.js.map +0 -0
  99. package/dist/cjs/helpers/mergeTransform.js +0 -0
  100. package/dist/cjs/helpers/mergeTransform.js.map +0 -0
  101. package/dist/cjs/helpers/nativeGestureHandler.native.js +0 -0
  102. package/dist/cjs/helpers/nativeGestureHandler.native.js.map +0 -0
  103. package/dist/cjs/helpers/normalizeColor.js +76 -0
  104. package/dist/cjs/helpers/normalizeColor.js.map +7 -0
  105. package/dist/cjs/helpers/normalizeValueWithProperty.js +90 -0
  106. package/dist/cjs/helpers/normalizeValueWithProperty.js.map +7 -0
  107. package/dist/cjs/helpers/proxyThemeVariables.js +0 -0
  108. package/dist/cjs/helpers/proxyThemeVariables.js.map +0 -0
  109. package/dist/cjs/helpers/pseudoDescriptors.js +0 -0
  110. package/dist/cjs/helpers/pseudoDescriptors.js.map +0 -0
  111. package/dist/cjs/helpers/registerCSSVariable.js +0 -0
  112. package/dist/cjs/helpers/registerCSSVariable.js.map +0 -0
  113. package/dist/cjs/helpers/themeable.js +0 -0
  114. package/dist/cjs/helpers/themeable.js.map +0 -0
  115. package/dist/cjs/helpers/validate.js +0 -0
  116. package/dist/cjs/helpers/validate.js.map +0 -0
  117. package/dist/cjs/helpers/withStaticProperties.js +0 -0
  118. package/dist/cjs/helpers/withStaticProperties.js.map +0 -0
  119. package/dist/cjs/helpers/wrapThemeManagerContext.js +0 -0
  120. package/dist/cjs/helpers/wrapThemeManagerContext.js.map +0 -0
  121. package/dist/cjs/hooks/useConstant.js +0 -0
  122. package/dist/cjs/hooks/useConstant.js.map +0 -0
  123. package/dist/cjs/hooks/useFeatures.js +5 -2
  124. package/dist/cjs/hooks/useFeatures.js.map +2 -2
  125. package/dist/cjs/hooks/useId.js +0 -0
  126. package/dist/cjs/hooks/useId.js.map +0 -0
  127. package/dist/cjs/hooks/useIsMounted.js +0 -0
  128. package/dist/cjs/hooks/useIsMounted.js.map +0 -0
  129. package/dist/cjs/hooks/useIsTouchDevice.js +0 -0
  130. package/dist/cjs/hooks/useIsTouchDevice.js.map +0 -0
  131. package/dist/cjs/hooks/useMedia.js +0 -0
  132. package/dist/cjs/hooks/useMedia.js.map +0 -0
  133. package/dist/cjs/hooks/usePressable.js +0 -0
  134. package/dist/cjs/hooks/usePressable.js.map +0 -0
  135. package/dist/cjs/hooks/usePrevious.js +0 -0
  136. package/dist/cjs/hooks/usePrevious.js.map +0 -0
  137. package/dist/cjs/hooks/useTheme.js +1 -1
  138. package/dist/cjs/hooks/useTheme.js.map +2 -2
  139. package/dist/cjs/hooks/useUnmountEffect.js +0 -0
  140. package/dist/cjs/hooks/useUnmountEffect.js.map +0 -0
  141. package/dist/cjs/index.js +2 -4
  142. package/dist/cjs/index.js.map +2 -2
  143. package/dist/cjs/insertFont.js +0 -0
  144. package/dist/cjs/insertFont.js.map +0 -0
  145. package/dist/cjs/static.js +1 -1
  146. package/dist/cjs/static.js.map +2 -2
  147. package/dist/cjs/styled.js +0 -0
  148. package/dist/cjs/styled.js.map +2 -2
  149. package/dist/cjs/types-rnw.js +0 -0
  150. package/dist/cjs/types-rnw.js.map +0 -0
  151. package/dist/cjs/types.js +0 -0
  152. package/dist/cjs/types.js.map +1 -1
  153. package/dist/cjs/views/Slot.js +0 -0
  154. package/dist/cjs/views/Slot.js.map +0 -0
  155. package/dist/cjs/views/Stack.js +0 -0
  156. package/dist/cjs/views/Stack.js.map +0 -0
  157. package/dist/cjs/views/Text.js +0 -0
  158. package/dist/cjs/views/Text.js.map +0 -0
  159. package/dist/cjs/views/TextAncestorContext.js +0 -0
  160. package/dist/cjs/views/TextAncestorContext.js.map +0 -0
  161. package/dist/cjs/views/Theme.js +0 -0
  162. package/dist/cjs/views/Theme.js.map +0 -0
  163. package/dist/cjs/views/ThemeInverse.js +0 -0
  164. package/dist/cjs/views/ThemeInverse.js.map +0 -0
  165. package/dist/cjs/views/ThemeProvider.js +0 -0
  166. package/dist/cjs/views/ThemeProvider.js.map +0 -0
  167. package/dist/cjs/views/ThemeReset.js +0 -0
  168. package/dist/cjs/views/ThemeReset.js.map +0 -0
  169. package/dist/esm/Pressability.js +0 -0
  170. package/dist/esm/Pressability.js.map +0 -0
  171. package/dist/esm/Pressability.native.js +0 -0
  172. package/dist/esm/Pressability.native.js.map +0 -0
  173. package/dist/esm/Tamagui.js +0 -0
  174. package/dist/esm/Tamagui.js.map +0 -0
  175. package/dist/esm/ThemeContext.js +0 -0
  176. package/dist/esm/ThemeContext.js.map +0 -0
  177. package/dist/esm/ThemeManager.js +0 -0
  178. package/dist/esm/ThemeManager.js.map +0 -0
  179. package/dist/esm/conf.js +0 -0
  180. package/dist/esm/conf.js.map +0 -0
  181. package/dist/esm/constants/constants.js +0 -0
  182. package/dist/esm/constants/constants.js.map +0 -0
  183. package/dist/esm/constants/platform.js +0 -0
  184. package/dist/esm/constants/platform.js.map +0 -0
  185. package/dist/esm/constants/rnw.js +0 -0
  186. package/dist/esm/constants/rnw.js.map +0 -0
  187. package/dist/esm/constants/rnw.native.js +0 -0
  188. package/dist/esm/constants/rnw.native.js.map +0 -0
  189. package/dist/esm/contexts/ButtonInsideButtonContext.js +0 -0
  190. package/dist/esm/contexts/ButtonInsideButtonContext.js.map +0 -0
  191. package/dist/esm/createComponent.js +39 -49
  192. package/dist/esm/createComponent.js.map +2 -2
  193. package/dist/esm/createFont.js +0 -0
  194. package/dist/esm/createFont.js.map +0 -0
  195. package/dist/esm/createShorthands.js +0 -0
  196. package/dist/esm/createShorthands.js.map +0 -0
  197. package/dist/esm/createTamagui.js +15 -10
  198. package/dist/esm/createTamagui.js.map +2 -2
  199. package/dist/esm/createTheme.js +0 -0
  200. package/dist/esm/createTheme.js.map +0 -0
  201. package/dist/esm/createTokens.js +0 -0
  202. package/dist/esm/createTokens.js.map +0 -0
  203. package/dist/esm/createVariable.js +0 -0
  204. package/dist/esm/createVariable.js.map +0 -0
  205. package/dist/esm/createVariables.js +0 -0
  206. package/dist/esm/createVariables.js.map +0 -0
  207. package/dist/esm/defaultComponentState.js +0 -0
  208. package/dist/esm/defaultComponentState.js.map +0 -0
  209. package/dist/esm/helpers/RNComponents.js +0 -0
  210. package/dist/esm/helpers/RNComponents.js.map +0 -0
  211. package/dist/esm/helpers/areEqualSets.js +0 -0
  212. package/dist/esm/helpers/areEqualSets.js.map +0 -0
  213. package/dist/esm/helpers/assignNativePropsToWeb.js +0 -0
  214. package/dist/esm/helpers/assignNativePropsToWeb.js.map +0 -0
  215. package/dist/esm/helpers/assignNativePropsToWeb.native.js +0 -0
  216. package/dist/esm/helpers/assignNativePropsToWeb.native.js.map +0 -0
  217. package/dist/esm/helpers/calc.js +0 -0
  218. package/dist/esm/helpers/calc.js.map +0 -0
  219. package/dist/esm/helpers/createMediaStyle.js +0 -0
  220. package/dist/esm/helpers/createMediaStyle.js.map +0 -0
  221. package/dist/esm/helpers/createPropMapper.js +22 -15
  222. package/dist/esm/helpers/createPropMapper.js.map +2 -2
  223. package/dist/esm/helpers/createShallowUpdate.js +0 -0
  224. package/dist/esm/helpers/createShallowUpdate.js.map +0 -0
  225. package/dist/esm/helpers/createTamaguiProvider.js +0 -0
  226. package/dist/esm/helpers/createTamaguiProvider.js.map +0 -0
  227. package/dist/esm/helpers/expandStyle.js +99 -0
  228. package/dist/esm/helpers/expandStyle.js.map +7 -0
  229. package/dist/esm/helpers/expandStyles.js +103 -0
  230. package/dist/esm/helpers/expandStyles.js.map +7 -0
  231. package/dist/esm/helpers/extendStaticConfig.js +5 -3
  232. package/dist/esm/helpers/extendStaticConfig.js.map +2 -2
  233. package/dist/esm/helpers/fixNativeShadow.js +0 -0
  234. package/dist/esm/helpers/fixNativeShadow.js.map +0 -0
  235. package/dist/esm/helpers/getExpandedShorthands.js +0 -0
  236. package/dist/esm/helpers/getExpandedShorthands.js.map +0 -0
  237. package/dist/esm/helpers/getFont.js +38 -0
  238. package/dist/esm/helpers/getFont.js.map +7 -0
  239. package/dist/esm/helpers/getSize.js +0 -0
  240. package/dist/esm/helpers/getSize.js.map +0 -0
  241. package/dist/esm/helpers/getSplitStyles.js +114 -108
  242. package/dist/esm/helpers/getSplitStyles.js.map +2 -2
  243. package/dist/esm/helpers/getStackSize.js +7 -0
  244. package/dist/esm/helpers/getStackSize.js.map +2 -2
  245. package/dist/esm/helpers/getStylesAtomic.js +158 -2
  246. package/dist/esm/helpers/getStylesAtomic.js.map +2 -2
  247. package/dist/esm/helpers/getStylesAtomic.native.js +0 -0
  248. package/dist/esm/helpers/getStylesAtomic.native.js.map +0 -0
  249. package/dist/esm/helpers/getTextSize.js +0 -0
  250. package/dist/esm/helpers/getTextSize.js.map +0 -0
  251. package/dist/esm/helpers/getVariantExtras.js +0 -0
  252. package/dist/esm/helpers/getVariantExtras.js.map +0 -0
  253. package/dist/esm/helpers/insertStyleRule.js +0 -0
  254. package/dist/esm/helpers/insertStyleRule.js.map +0 -0
  255. package/dist/esm/helpers/isObj.js +0 -0
  256. package/dist/esm/helpers/isObj.js.map +0 -0
  257. package/dist/esm/helpers/isTamaguiComponent.js +0 -0
  258. package/dist/esm/helpers/isTamaguiComponent.js.map +0 -0
  259. package/dist/esm/helpers/isTamaguiElement.js +0 -0
  260. package/dist/esm/helpers/isTamaguiElement.js.map +0 -0
  261. package/dist/esm/helpers/matchMedia.js +0 -0
  262. package/dist/esm/helpers/matchMedia.js.map +0 -0
  263. package/dist/esm/helpers/matchMedia.native.js +0 -0
  264. package/dist/esm/helpers/matchMedia.native.js.map +0 -0
  265. package/dist/esm/helpers/mergeProps.js +0 -0
  266. package/dist/esm/helpers/mergeProps.js.map +0 -0
  267. package/dist/esm/helpers/mergeTransform.js +0 -0
  268. package/dist/esm/helpers/mergeTransform.js.map +0 -0
  269. package/dist/esm/helpers/nativeGestureHandler.native.js +0 -0
  270. package/dist/esm/helpers/nativeGestureHandler.native.js.map +0 -0
  271. package/dist/esm/helpers/normalizeColor.js +49 -0
  272. package/dist/esm/helpers/normalizeColor.js.map +7 -0
  273. package/dist/esm/helpers/normalizeValueWithProperty.js +67 -0
  274. package/dist/esm/helpers/normalizeValueWithProperty.js.map +7 -0
  275. package/dist/esm/helpers/proxyThemeVariables.js +0 -0
  276. package/dist/esm/helpers/proxyThemeVariables.js.map +0 -0
  277. package/dist/esm/helpers/pseudoDescriptors.js +0 -0
  278. package/dist/esm/helpers/pseudoDescriptors.js.map +0 -0
  279. package/dist/esm/helpers/registerCSSVariable.js +0 -0
  280. package/dist/esm/helpers/registerCSSVariable.js.map +0 -0
  281. package/dist/esm/helpers/themeable.js +0 -0
  282. package/dist/esm/helpers/themeable.js.map +0 -0
  283. package/dist/esm/helpers/validate.js +0 -0
  284. package/dist/esm/helpers/validate.js.map +0 -0
  285. package/dist/esm/helpers/withStaticProperties.js +0 -0
  286. package/dist/esm/helpers/withStaticProperties.js.map +0 -0
  287. package/dist/esm/helpers/wrapThemeManagerContext.js +0 -0
  288. package/dist/esm/helpers/wrapThemeManagerContext.js.map +0 -0
  289. package/dist/esm/hooks/useConstant.js +0 -0
  290. package/dist/esm/hooks/useConstant.js.map +0 -0
  291. package/dist/esm/hooks/useFeatures.js +5 -2
  292. package/dist/esm/hooks/useFeatures.js.map +2 -2
  293. package/dist/esm/hooks/useId.js +0 -0
  294. package/dist/esm/hooks/useId.js.map +0 -0
  295. package/dist/esm/hooks/useIsMounted.js +0 -0
  296. package/dist/esm/hooks/useIsMounted.js.map +0 -0
  297. package/dist/esm/hooks/useIsTouchDevice.js +0 -0
  298. package/dist/esm/hooks/useIsTouchDevice.js.map +0 -0
  299. package/dist/esm/hooks/useMedia.js +0 -0
  300. package/dist/esm/hooks/useMedia.js.map +0 -0
  301. package/dist/esm/hooks/usePressable.js +0 -0
  302. package/dist/esm/hooks/usePressable.js.map +0 -0
  303. package/dist/esm/hooks/usePrevious.js +0 -0
  304. package/dist/esm/hooks/usePrevious.js.map +0 -0
  305. package/dist/esm/hooks/useTheme.js +1 -1
  306. package/dist/esm/hooks/useTheme.js.map +2 -2
  307. package/dist/esm/hooks/useUnmountEffect.js +0 -0
  308. package/dist/esm/hooks/useUnmountEffect.js.map +0 -0
  309. package/dist/esm/index.js +2 -3
  310. package/dist/esm/index.js.map +1 -1
  311. package/dist/esm/insertFont.js +0 -0
  312. package/dist/esm/insertFont.js.map +0 -0
  313. package/dist/esm/static.js +1 -1
  314. package/dist/esm/static.js.map +1 -1
  315. package/dist/esm/styled.js +0 -0
  316. package/dist/esm/styled.js.map +2 -2
  317. package/dist/esm/types-rnw.js +0 -0
  318. package/dist/esm/types-rnw.js.map +0 -0
  319. package/dist/esm/types.js +0 -0
  320. package/dist/esm/types.js.map +0 -0
  321. package/dist/esm/views/Slot.js +0 -0
  322. package/dist/esm/views/Slot.js.map +0 -0
  323. package/dist/esm/views/Stack.js +0 -0
  324. package/dist/esm/views/Stack.js.map +0 -0
  325. package/dist/esm/views/Text.js +0 -0
  326. package/dist/esm/views/Text.js.map +0 -0
  327. package/dist/esm/views/TextAncestorContext.js +0 -0
  328. package/dist/esm/views/TextAncestorContext.js.map +0 -0
  329. package/dist/esm/views/Theme.js +0 -0
  330. package/dist/esm/views/Theme.js.map +0 -0
  331. package/dist/esm/views/ThemeInverse.js +0 -0
  332. package/dist/esm/views/ThemeInverse.js.map +0 -0
  333. package/dist/esm/views/ThemeProvider.js +0 -0
  334. package/dist/esm/views/ThemeProvider.js.map +0 -0
  335. package/dist/esm/views/ThemeReset.js +0 -0
  336. package/dist/esm/views/ThemeReset.js.map +0 -0
  337. package/package.json +7 -7
  338. package/reset.css +1 -1
  339. package/types/Tamagui.d.ts.map +0 -0
  340. package/types/ThemeContext.d.ts.map +0 -0
  341. package/types/ThemeManager.d.ts.map +0 -0
  342. package/types/conf.d.ts.map +0 -0
  343. package/types/createComponent.d.ts.map +1 -1
  344. package/types/createFont.d.ts.map +0 -0
  345. package/types/createTamagui.d.ts.map +1 -1
  346. package/types/createTokens.d.ts.map +0 -0
  347. package/types/helpers/assignNativePropsToWeb.d.ts.map +0 -0
  348. package/types/helpers/calc.d.ts.map +0 -0
  349. package/types/helpers/createMediaStyle.d.ts.map +0 -0
  350. package/types/helpers/createPropMapper.d.ts +2 -2
  351. package/types/helpers/createPropMapper.d.ts.map +1 -1
  352. package/types/helpers/createTamaguiProvider.d.ts +0 -1
  353. package/types/helpers/createTamaguiProvider.d.ts.map +1 -1
  354. package/types/helpers/expandStyle.d.ts +2 -0
  355. package/types/helpers/expandStyles.d.ts +7 -0
  356. package/types/helpers/expandStyles.d.ts.map +1 -0
  357. package/types/helpers/extendStaticConfig.d.ts.map +1 -1
  358. package/types/helpers/getExpandedShorthands.d.ts.map +0 -0
  359. package/types/helpers/getFont.d.ts +3 -0
  360. package/types/helpers/getFont.d.ts.map +1 -0
  361. package/types/helpers/getSize.d.ts.map +0 -0
  362. package/types/helpers/getSplitStyles.d.ts +2 -3
  363. package/types/helpers/getSplitStyles.d.ts.map +1 -1
  364. package/types/helpers/getStackSize.d.ts +1 -1
  365. package/types/helpers/getStackSize.d.ts.map +1 -1
  366. package/types/helpers/getStylesAtomic.d.ts +6 -0
  367. package/types/helpers/getStylesAtomic.d.ts.map +1 -1
  368. package/types/helpers/getVariantExtras.d.ts.map +0 -0
  369. package/types/helpers/isTamaguiComponent.d.ts.map +0 -0
  370. package/types/helpers/isTamaguiElement.d.ts.map +0 -0
  371. package/types/helpers/normalizeColor.d.ts +3 -0
  372. package/types/helpers/normalizeValueWithProperty.d.ts +2 -0
  373. package/types/helpers/themeable.d.ts.map +0 -0
  374. package/types/helpers/wrapThemeManagerContext.d.ts.map +0 -0
  375. package/types/hooks/useFeatures.d.ts.map +1 -1
  376. package/types/hooks/useMedia.d.ts.map +0 -0
  377. package/types/hooks/useTheme.d.ts.map +1 -1
  378. package/types/index.d.ts +2 -2
  379. package/types/index.d.ts.map +1 -1
  380. package/types/insertFont.d.ts.map +0 -0
  381. package/types/static.d.ts +1 -1
  382. package/types/static.d.ts.map +1 -1
  383. package/types/styled.d.ts.map +1 -1
  384. package/types/types.d.ts +5 -3
  385. package/types/types.d.ts.map +1 -1
  386. package/types/views/Stack.d.ts.map +0 -0
  387. package/types/views/Text.d.ts.map +0 -0
  388. package/types/views/Theme.d.ts.map +0 -0
  389. package/types/views/ThemeInverse.d.ts.map +0 -0
  390. package/types/views/ThemeProvider.d.ts.map +0 -0
  391. package/types/views/ThemeReset.d.ts.map +0 -0
  392. package/dist/cjs/helpers/fixNativeShadow.native.js +0 -51
  393. package/dist/cjs/helpers/fixNativeShadow.native.js.map +0 -7
  394. package/dist/cjs/helpers/generateAtomicStyles.js +0 -437
  395. package/dist/cjs/helpers/generateAtomicStyles.js.map +0 -7
  396. package/dist/esm/helpers/fixNativeShadow.native.js +0 -28
  397. package/dist/esm/helpers/fixNativeShadow.native.js.map +0 -7
  398. package/dist/esm/helpers/generateAtomicStyles.js +0 -410
  399. package/dist/esm/helpers/generateAtomicStyles.js.map +0 -7
  400. package/types/Pressability.d.ts.map +0 -1
  401. package/types/Pressability.native.d.ts.map +0 -1
  402. package/types/constants/constants.d.ts.map +0 -1
  403. package/types/constants/platform.d.ts.map +0 -1
  404. package/types/constants/rnw.d.ts.map +0 -1
  405. package/types/constants/rnw.native.d.ts.map +0 -1
  406. package/types/contexts/ButtonInsideButtonContext.d.ts.map +0 -1
  407. package/types/createShorthands.d.ts.map +0 -1
  408. package/types/createTheme.d.ts.map +0 -1
  409. package/types/createVariable.d.ts.map +0 -1
  410. package/types/createVariables.d.ts.map +0 -1
  411. package/types/defaultComponentState.d.ts.map +0 -1
  412. package/types/helpers/RNComponents.d.ts.map +0 -1
  413. package/types/helpers/areEqualSets.d.ts.map +0 -1
  414. package/types/helpers/assignNativePropsToWeb.native.d.ts.map +0 -1
  415. package/types/helpers/createShallowUpdate.d.ts.map +0 -1
  416. package/types/helpers/fixNativeShadow.d.ts.map +0 -1
  417. package/types/helpers/fixNativeShadow.native.d.ts +0 -3
  418. package/types/helpers/fixNativeShadow.native.d.ts.map +0 -1
  419. package/types/helpers/generateAtomicStyles.d.ts +0 -12
  420. package/types/helpers/generateAtomicStyles.d.ts.map +0 -1
  421. package/types/helpers/getStylesAtomic.native.d.ts.map +0 -1
  422. package/types/helpers/getTextSize.d.ts +0 -3
  423. package/types/helpers/getTextSize.d.ts.map +0 -1
  424. package/types/helpers/insertStyleRule.d.ts.map +0 -1
  425. package/types/helpers/isObj.d.ts.map +0 -1
  426. package/types/helpers/matchMedia.d.ts.map +0 -1
  427. package/types/helpers/matchMedia.native.d.ts.map +0 -1
  428. package/types/helpers/mergeProps.d.ts.map +0 -1
  429. package/types/helpers/mergeTransform.d.ts.map +0 -1
  430. package/types/helpers/nativeGestureHandler.native.d.ts.map +0 -1
  431. package/types/helpers/proxyThemeVariables.d.ts.map +0 -1
  432. package/types/helpers/pseudoDescriptors.d.ts.map +0 -1
  433. package/types/helpers/registerCSSVariable.d.ts.map +0 -1
  434. package/types/helpers/validate.d.ts.map +0 -1
  435. package/types/helpers/withStaticProperties.d.ts.map +0 -1
  436. package/types/hooks/useConstant.d.ts.map +0 -1
  437. package/types/hooks/useId.d.ts.map +0 -1
  438. package/types/hooks/useIsMounted.d.ts.map +0 -1
  439. package/types/hooks/useIsTouchDevice.d.ts.map +0 -1
  440. package/types/hooks/usePressable.d.ts.map +0 -1
  441. package/types/hooks/usePrevious.d.ts.map +0 -1
  442. package/types/hooks/useUnmountEffect.d.ts.map +0 -1
  443. package/types/types-rnw.d.ts.map +0 -1
  444. package/types/views/Slot.d.ts.map +0 -1
  445. package/types/views/TextAncestorContext.d.ts.map +0 -1
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/helpers/generateAtomicStyles.ts"],
4
- "sourcesContent": ["/**\n * Some parts adapted from react-native-web\n * Copyright (c) Nicolas Gallagher licensed under the MIT license.\n */\n\nimport { StyleObject, simpleHash } from '@tamagui/helpers'\nimport hyphenateStyleName from 'hyphenate-style-name'\nimport normalizeCSSColor from 'normalize-css-color'\nimport { TextStyle, ViewStyle } from 'react-native'\n\nimport { getConfig } from '../conf'\nimport { isWeb } from '../constants/platform'\nimport { reversedShorthands } from '../createTamagui'\nimport { PseudoDescriptor, pseudoDescriptors } from './pseudoDescriptors'\n\ntype Value = Object | Array<any> | string | number\nexport type Style = { [key: string]: Value }\n\nclass Cache {\n values: Record<string, any> = {}\n\n get(key: string, valStr: string) {\n return this.values[key]?.[valStr]\n }\n\n set(key: string, valStr: string, object: any) {\n this.values[key] ??= {}\n this.values[key][valStr] = object\n }\n}\n\nconst cache = new Cache()\n\nexport const generateAtomicStyles = (\n style: ViewStyle & TextStyle,\n pseudo?: PseudoDescriptor\n): StyleObject[] => {\n const res = expandStyles(style)\n const out: StyleObject[] = []\n for (const key in res) {\n const value = res[key]\n if (value != null && value != undefined) {\n const valueString = normalizeValueWithProperty(value, key)\n const uid = key + (pseudo?.name || '')\n const cachedResult = cache.get(uid, valueString)\n if (cachedResult != undefined) {\n out.push(cachedResult)\n } else {\n const hash = simpleHash(uid + valueString)\n const pseudoPrefix = pseudo ? `0${pseudo.name}-` : ''\n const shortProp = reversedShorthands[key] || key\n const identifier = `_${shortProp}-${pseudoPrefix}${hash}`\n const rules = createAtomicRules(identifier, key, valueString, pseudo)\n const styleObject: StyleObject = {\n property: key,\n pseudo: pseudo?.name,\n value,\n identifier,\n rules,\n }\n cache.set(uid, valueString, styleObject)\n out.push(styleObject)\n }\n }\n }\n return out\n}\n\nconst reducedStyleKeys = {\n shadowColor: true,\n shadowOffset: true,\n shadowOpacity: true,\n shadowRadius: true,\n textShadowColor: true,\n textShadowOffset: true,\n textShadowRadius: true,\n}\n\nlet shorthands: Record<string, string> | null = null\n\n// can likely remove this and include in other loops\nexport function expandStyles(style: any) {\n const res: Record<string, any> = {}\n\n // box-shadow\n const { boxShadow, shadowColor, shadowOffset, shadowOpacity, shadowRadius } = style\n if (shadowRadius !== undefined) {\n const { height, width } = shadowOffset || defaultOffset\n const offsetX = normalizeValueWithProperty(width || 0)\n const offsetY = normalizeValueWithProperty(height || 0)\n const blurRadius = normalizeValueWithProperty(shadowRadius || 0)\n const color = normalizeColor(String(shadowColor || 'black'), shadowOpacity)\n const shadow = `${offsetX} ${offsetY} ${blurRadius} ${color}`\n res.boxShadow = boxShadow ? `${boxShadow}, ${shadow}` : shadow\n } else if (boxShadow) {\n res.boxShadow = boxShadow\n }\n\n // text-shadow\n const { textShadowColor, textShadowOffset, textShadowRadius } = style\n if (textShadowColor || textShadowOffset || textShadowRadius) {\n const { height, width } = textShadowOffset || defaultOffset\n const radius = textShadowRadius || 0\n const color = normalizeValueWithProperty(textShadowColor, 'textShadowColor')\n if (color && (height !== 0 || width !== 0 || radius !== 0)) {\n const blurRadius = normalizeValueWithProperty(radius)\n const offsetX = normalizeValueWithProperty(width)\n const offsetY = normalizeValueWithProperty(height)\n res.textShadow = `${offsetX} ${offsetY} ${blurRadius} ${color}`\n }\n }\n\n // ensure border style set by default to solid\n for (const key in borderDefaults) {\n if (key in style) {\n res[borderDefaults[key]] = style[borderDefaults[key]] || 'solid'\n }\n }\n\n for (let key in style) {\n shorthands = shorthands || getConfig().shorthands\n if (shorthands) {\n key = shorthands[key] || key\n }\n if (reducedStyleKeys[key]) continue\n if (key in pseudoDescriptors) {\n res[key] = expandStyles(style[key])\n } else {\n const val = normalizeValueWithProperty(style[key], key)\n const out = expandStyle(key, val)\n if (out) {\n Object.assign(res, Object.fromEntries(out))\n } else {\n res[key] = val\n }\n }\n }\n return res\n}\n\nconst borderDefaults = {\n borderWidth: 'borderStyle',\n borderBottomWidth: 'borderBottomStyle',\n borderTopWidth: 'borderTopStyle',\n borderLeftWidth: 'borderLeftStyle',\n borderRightWidth: 'borderRightStyle',\n}\n\nfunction createDeclarationBlock(style: Style, important = false) {\n let declarations = ''\n for (const key in style) {\n const prop = hyphenateStyleName(key)\n const value = style[key]\n declarations += `${prop}:${value}`\n }\n return `{${declarations}${important ? ` !important` : ''};}`\n}\n\nconst pseudoSelectorPrefixes = (() => {\n const res: Record<string, string> = {}\n for (const key in pseudoDescriptors) {\n const pseudo = pseudoDescriptors[key]\n res[pseudo.name] = [...Array(pseudo.priority)].map(() => ':root').join('') + ' '\n }\n return res\n})()\n\nfunction createAtomicRules(\n identifier: string,\n property: string,\n value: any,\n pseudo?: PseudoDescriptor\n): string[] {\n const selector = pseudo\n ? `${pseudoSelectorPrefixes[pseudo.name]} .${identifier}:${pseudo.name}`\n : `.${identifier}`\n const important = !!pseudo\n\n let rules: string[] = []\n\n // Handle non-standard properties and object values that require multiple\n // CSS rules to be created.\n switch (property) {\n // Equivalent to using '::placeholder'\n case 'placeholderTextColor': {\n const block = createDeclarationBlock({ color: value, opacity: 1 }, important)\n rules.push(`${selector}::placeholder${block}`)\n break\n }\n\n // Polyfill for additional 'pointer-events' values\n // See d13f78622b233a0afc0c7a200c0a0792c8ca9e58\n case 'pointerEvents': {\n let finalValue = value\n if (value === 'auto' || value === 'box-only') {\n finalValue = 'auto!important'\n if (value === 'box-only') {\n const block = createDeclarationBlock({ pointerEvents: 'none' }, important)\n rules.push(`${selector}>*${block}`)\n }\n } else if (value === 'none' || value === 'box-none') {\n finalValue = 'none!important'\n if (value === 'box-none') {\n const block = createDeclarationBlock({ pointerEvents: 'auto' }, important)\n rules.push(`${selector}>*${block}`)\n }\n }\n const block = createDeclarationBlock({ pointerEvents: finalValue }, important)\n rules.push(`${selector}${block}`)\n break\n }\n\n // Polyfill for draft spec\n // https://drafts.csswg.org/css-scrollbars-1/\n case 'scrollbarWidth': {\n if (value === 'none') {\n rules.push(`${selector}::-webkit-scrollbar{display:none}`)\n }\n const block = createDeclarationBlock({ scrollbarWidth: value }, important)\n rules.push(`${selector}${block}`)\n break\n }\n\n default: {\n const block = createDeclarationBlock({ [property]: value }, important)\n rules.push(`${selector}${block}`)\n break\n }\n }\n\n // hover styles need to be conditional\n // perhaps this can be generalized but for now lets just shortcut\n // and hardcode for hover styles, if we need to later we can\n // WEIRD SYNTAX, SEE:\n // https://stackoverflow.com/questions/40532204/media-query-for-devices-supporting-hover\n if (pseudo?.name === 'hover') {\n rules = rules.map((r) => `@media not all and (hover: none) { ${r} }`)\n }\n\n return rules\n}\n\nexport function expandStyle(key: string, value: any) {\n if (key === 'flex') {\n // The 'flex' property value in React Native must be a positive integer,\n // 0, or -1.\n if (value <= -1) {\n return [\n ['flexGrow', 0],\n ['flexShrink', 1],\n ['flexBasis', 'auto'],\n ]\n }\n // normalizing to better align with native\n // see spec for flex shorthand https://developer.mozilla.org/en-US/docs/Web/CSS/flex\n if (value >= 0) {\n return [\n ['flexGrow', value],\n ['flexShrink', 1],\n ]\n }\n return\n }\n\n // web only\n switch (key) {\n // Ignore some React Native styles\n case 'elevation':\n case 'overlayColor':\n case 'resizeMode':\n case 'tintColor': {\n break\n }\n\n case 'aspectRatio': {\n return [[key, value.toString()]]\n }\n\n // TODO: remove once this issue is fixed\n // https://github.com/rofrischmann/inline-style-prefixer/issues/159\n case 'backgroundClip': {\n if (value === 'text') {\n return [\n ['backgroundClip', value],\n ['WebkitBackgroundClip', value],\n ]\n }\n break\n }\n\n case 'textAlignVertical': {\n return [['verticalAlign', value === 'center' ? 'middle' : value]]\n }\n\n case 'textDecorationLine': {\n return [['textDecorationLine', value]]\n }\n\n case 'transform': {\n if (Array.isArray(value)) {\n return [[key, value.map(mapTransform).join(' ')]]\n }\n break\n }\n\n case 'writingDirection': {\n return [['direction', value]]\n }\n }\n\n const longKey = STYLE_SHORT_FORM_EXPANSIONS[key]\n if (longKey) {\n return longKey.map((key) => {\n return [key, value]\n })\n } else {\n if (isWeb && Array.isArray(value)) {\n return [[key, value.join(',')]]\n }\n }\n}\n\n// { scale: 2 } => 'scale(2)'\n// { translateX: 20 } => 'translateX(20px)'\n// { matrix: [1,2,3,4,5,6] } => 'matrix(1,2,3,4,5,6)'\nconst mapTransform = (transform) => {\n const type = Object.keys(transform)[0]\n const value = transform[type]\n if (type === 'matrix' || type === 'matrix3d') {\n return `${type}(${value.join(',')})`\n } else {\n const normalizedValue = normalizeValueWithProperty(value, type)\n return `${type}(${normalizedValue})`\n }\n}\n\nconst colorProps = {\n backgroundColor: true,\n borderColor: true,\n borderTopColor: true,\n borderRightColor: true,\n borderBottomColor: true,\n borderLeftColor: true,\n color: true,\n shadowColor: true,\n textDecorationColor: true,\n textShadowColor: true,\n}\n\nfunction normalizeValueWithProperty(value: any, property?: string): any {\n if (process.env.TAMAGUI_TARGET === 'web') {\n const shouldCoerceToPx =\n typeof value === 'number' &&\n (property === undefined || property === null || !unitlessNumbers[property])\n if (shouldCoerceToPx) {\n return `${value}px`\n }\n }\n if (property && colorProps[property]) {\n return normalizeColor(value)\n }\n return value\n}\n\nconst normalizeColor = (color?: number | string, opacity = 1): void | string => {\n if (color == null || color == undefined) {\n return\n }\n if (process.env.TAMAGUI_TARGET === 'web') {\n if (typeof color === 'string' && isWebColor(color)) {\n return color\n }\n }\n const colorInt = processColor(color)\n if (colorInt != null) {\n const r = (colorInt >> 16) & 255\n const g = (colorInt >> 8) & 255\n const b = colorInt & 255\n const a = ((colorInt >> 24) & 255) / 255\n const alpha = (a * opacity).toFixed(2)\n return `rgba(${r},${g},${b},${alpha})`\n }\n return `${color}`\n}\n\nconst webColors = {\n currentColor: true,\n currentcolor: true,\n transparent: true,\n inherit: true,\n}\n\nconst isWebColor = (color: string): boolean => webColors[color] || color.indexOf('var(') === 0\n\nconst processColor = (color?: number | string): number | undefined | null => {\n if (color === undefined || color === null) {\n return color\n }\n let intColor = normalizeCSSColor(color)\n if (intColor === undefined || intColor === null) {\n return undefined\n }\n return ((+intColor << 24) | (+intColor >>> 8)) >>> 0\n}\n\nconst unitlessNumbers = {\n animationIterationCount: true,\n aspectRatio: true,\n borderImageOutset: true,\n borderImageSlice: true,\n borderImageWidth: true,\n boxFlex: true,\n boxFleGroup: true,\n boxOrdinalGroup: true,\n columnCount: true,\n flex: true,\n flexGrow: true,\n flexOrder: true,\n flexPositive: true,\n flexShrink: true,\n flexNegative: true,\n fontWeight: true,\n gridRow: true,\n gridRowEnd: true,\n gridRowGap: true,\n gridRowStart: true,\n gridColumn: true,\n gridColumnEnd: true,\n gridColumnGap: true,\n gridColumnStart: true,\n lineClamp: true,\n opacity: true,\n order: true,\n orphans: true,\n tabSize: true,\n widows: true,\n zIndex: true,\n zoom: true,\n fillOpacity: true,\n floodOpacity: true,\n stopOpacity: true,\n strokeDasharray: true,\n strokeDashoffset: true,\n strokeMiterlimit: true,\n strokeOpacity: true,\n strokeWidth: true,\n scale: true,\n scaleX: true,\n scaleY: true,\n scaleZ: true,\n shadowOpacity: true,\n}\n\nconst defaultOffset = { height: 0, width: 0 }\n\nconst STYLE_SHORT_FORM_EXPANSIONS = {\n borderColor: ['borderTopColor', 'borderRightColor', 'borderBottomColor', 'borderLeftColor'],\n borderRadius: [\n 'borderTopLeftRadius',\n 'borderTopRightRadius',\n 'borderBottomRightRadius',\n 'borderBottomLeftRadius',\n ],\n borderStyle: ['borderTopStyle', 'borderRightStyle', 'borderBottomStyle', 'borderLeftStyle'],\n borderWidth: ['borderTopWidth', 'borderRightWidth', 'borderBottomWidth', 'borderLeftWidth'],\n margin: ['marginTop', 'marginRight', 'marginBottom', 'marginLeft'],\n marginHorizontal: ['marginRight', 'marginLeft'],\n marginVertical: ['marginTop', 'marginBottom'],\n overscrollBehavior: ['overscrollBehaviorX', 'overscrollBehaviorY'],\n padding: ['paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft'],\n paddingHorizontal: ['paddingRight', 'paddingLeft'],\n paddingVertical: ['paddingTop', 'paddingBottom'],\n ...(isWeb && {\n // react-native doesn't support X / Y\n overflow: ['overflowX', 'overflowY'],\n }),\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,qBAAwC;AACxC,kCAA+B;AAC/B,iCAA8B;AAG9B,kBAA0B;AAC1B,sBAAsB;AACtB,2BAAmC;AACnC,+BAAoD;AAKpD,MAAM,MAAM;AAAA,EAAZ;AACE,kBAA8B,CAAC;AAAA;AAAA,EAE/B,IAAI,KAAa,QAAgB;AArBnC;AAsBI,WAAO,WAAK,OAAO,SAAZ,mBAAmB;AAAA,EAC5B;AAAA,EAEA,IAAI,KAAa,QAAgB,QAAa;AAzBhD;AA0BI,eAAK,QAAL,mBAAqB,CAAC;AACtB,SAAK,O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e,gBAAgB,YAAY;AAAA,EACjE,kBAAkB,CAAC,eAAe,YAAY;AAAA,EAC9C,gBAAgB,CAAC,aAAa,cAAc;AAAA,EAC5C,oBAAoB,CAAC,uBAAuB,qBAAqB;AAAA,EACjE,SAAS,CAAC,cAAc,gBAAgB,iBAAiB,aAAa;AAAA,EACtE,mBAAmB,CAAC,gBAAgB,aAAa;AAAA,EACjD,iBAAiB,CAAC,cAAc,eAAe;AAAA,GAC3C,yBAAS;AAAA,EAEX,UAAU,CAAC,aAAa,WAAW;AACrC;",
6
- "names": []
7
- }
@@ -1,28 +0,0 @@
1
- const matchRgbaHsla = /(rgba|hsla)\(\s*([\d\.]{1,}%?)\s*,\s*([\d\.]{1,}%?)\s*,\s*([\d\.]{1,}%?)\s*,\s*([\d\.]{1,})\s*\)$/;
2
- function fixNativeShadow(props) {
3
- if (!props.shadowColor || props.shadowColor === "transparent") {
4
- return;
5
- }
6
- if (!props.shadowOffset) {
7
- props.shadowOffset = {
8
- width: 0,
9
- height: 0
10
- };
11
- }
12
- const c = String(props.shadowColor);
13
- if ((c[0] === "r" || c[0] === "h") && c[3] === "a") {
14
- const [_, type, _1, _2, _3, a] = c.match(matchRgbaHsla) || [];
15
- if (typeof a !== "string") {
16
- console.trace("invalid", c, type);
17
- throw new Error(`invalid style`);
18
- }
19
- props.shadowColor = `${type.replace("a", "")}(${_1},${_2},${_3})`;
20
- props.shadowOpacity = props.shadowOpacity ?? +a;
21
- } else {
22
- props.shadowOpacity = props.shadowOpacity ?? 1;
23
- }
24
- }
25
- export {
26
- fixNativeShadow
27
- };
28
- //# sourceMappingURL=fixNativeShadow.native.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/helpers/fixNativeShadow.native.tsx"],
4
- "sourcesContent": ["import { ViewStyle } from 'react-native'\n\nconst matchRgbaHsla =\n /(rgba|hsla)\\(\\s*([\\d\\.]{1,}%?)\\s*,\\s*([\\d\\.]{1,}%?)\\s*,\\s*([\\d\\.]{1,}%?)\\s*,\\s*([\\d\\.]{1,})\\s*\\)$/\n\nexport function fixNativeShadow(props: ViewStyle) {\n if (!props.shadowColor || props.shadowColor === 'transparent') {\n return\n }\n if (!props.shadowOffset) {\n // fixes some broken shadows\n props.shadowOffset = {\n width: 0,\n height: 0,\n }\n }\n const c = String(props.shadowColor)\n // react native has issues sometimes with rgba/hsla() convert to color + opacity\n if ((c[0] === 'r' || c[0] === 'h') && c[3] === 'a') {\n const [_, type, _1, _2, _3, a] = c.match(matchRgbaHsla) || []\n if (typeof a !== 'string') {\n console.trace('invalid', c, type)\n throw new Error(`invalid style`)\n }\n props.shadowColor = `${type.replace('a', '')}(${_1},${_2},${_3})`\n props.shadowOpacity = props.shadowOpacity ?? +a\n } else {\n props.shadowOpacity = props.shadowOpacity ?? 1\n }\n}\n"],
5
- "mappings": "AAEA,MAAM,gBACJ;AAEK,yBAAyB,OAAkB;AAChD,MAAI,CAAC,MAAM,eAAe,MAAM,gBAAgB,eAAe;AAC7D;AAAA,EACF;AACA,MAAI,CAAC,MAAM,cAAc;AAEvB,UAAM,eAAe;AAAA,MACnB,OAAO;AAAA,MACP,QAAQ;AAAA,IACV;AAAA,EACF;AACA,QAAM,IAAI,OAAO,MAAM,WAAW;AAElC,MAAK,GAAE,OAAO,OAAO,EAAE,OAAO,QAAQ,EAAE,OAAO,KAAK;AAClD,UAAM,CAAC,GAAG,MAAM,IAAI,IAAI,IAAI,KAAK,EAAE,MAAM,aAAa,KAAK,CAAC;AAC5D,QAAI,OAAO,MAAM,UAAU;AACzB,cAAQ,MAAM,WAAW,GAAG,IAAI;AAChC,YAAM,IAAI,MAAM,eAAe;AAAA,IACjC;AACA,UAAM,cAAc,GAAG,KAAK,QAAQ,KAAK,EAAE,KAAK,MAAM,MAAM;AAC5D,UAAM,gBAAgB,MAAM,iBAAiB,CAAC;AAAA,EAChD,OAAO;AACL,UAAM,gBAAgB,MAAM,iBAAiB;AAAA,EAC/C;AACF;",
6
- "names": []
7
- }
@@ -1,410 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
- var __hasOwnProp = Object.prototype.hasOwnProperty;
4
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
- var __spreadValues = (a, b) => {
7
- for (var prop in b || (b = {}))
8
- if (__hasOwnProp.call(b, prop))
9
- __defNormalProp(a, prop, b[prop]);
10
- if (__getOwnPropSymbols)
11
- for (var prop of __getOwnPropSymbols(b)) {
12
- if (__propIsEnum.call(b, prop))
13
- __defNormalProp(a, prop, b[prop]);
14
- }
15
- return a;
16
- };
17
- import { simpleHash } from "@tamagui/helpers";
18
- import hyphenateStyleName from "hyphenate-style-name";
19
- import normalizeCSSColor from "normalize-css-color";
20
- import { getConfig } from "../conf";
21
- import { isWeb } from "../constants/platform";
22
- import { reversedShorthands } from "../createTamagui";
23
- import { pseudoDescriptors } from "./pseudoDescriptors";
24
- class Cache {
25
- constructor() {
26
- this.values = {};
27
- }
28
- get(key, valStr) {
29
- var _a;
30
- return (_a = this.values[key]) == null ? void 0 : _a[valStr];
31
- }
32
- set(key, valStr, object) {
33
- this.values[key] ??= {};
34
- this.values[key][valStr] = object;
35
- }
36
- }
37
- const cache = new Cache();
38
- const generateAtomicStyles = (style, pseudo) => {
39
- const res = expandStyles(style);
40
- const out = [];
41
- for (const key in res) {
42
- const value = res[key];
43
- if (value != null && value != void 0) {
44
- const valueString = normalizeValueWithProperty(value, key);
45
- const uid = key + ((pseudo == null ? void 0 : pseudo.name) || "");
46
- const cachedResult = cache.get(uid, valueString);
47
- if (cachedResult != void 0) {
48
- out.push(cachedResult);
49
- } else {
50
- const hash = simpleHash(uid + valueString);
51
- const pseudoPrefix = pseudo ? `0${pseudo.name}-` : "";
52
- const shortProp = reversedShorthands[key] || key;
53
- const identifier = `_${shortProp}-${pseudoPrefix}${hash}`;
54
- const rules = createAtomicRules(identifier, key, valueString, pseudo);
55
- const styleObject = {
56
- property: key,
57
- pseudo: pseudo == null ? void 0 : pseudo.name,
58
- value,
59
- identifier,
60
- rules
61
- };
62
- cache.set(uid, valueString, styleObject);
63
- out.push(styleObject);
64
- }
65
- }
66
- }
67
- return out;
68
- };
69
- const reducedStyleKeys = {
70
- shadowColor: true,
71
- shadowOffset: true,
72
- shadowOpacity: true,
73
- shadowRadius: true,
74
- textShadowColor: true,
75
- textShadowOffset: true,
76
- textShadowRadius: true
77
- };
78
- let shorthands = null;
79
- function expandStyles(style) {
80
- const res = {};
81
- const { boxShadow, shadowColor, shadowOffset, shadowOpacity, shadowRadius } = style;
82
- if (shadowRadius !== void 0) {
83
- const { height, width } = shadowOffset || defaultOffset;
84
- const offsetX = normalizeValueWithProperty(width || 0);
85
- const offsetY = normalizeValueWithProperty(height || 0);
86
- const blurRadius = normalizeValueWithProperty(shadowRadius || 0);
87
- const color = normalizeColor(String(shadowColor || "black"), shadowOpacity);
88
- const shadow = `${offsetX} ${offsetY} ${blurRadius} ${color}`;
89
- res.boxShadow = boxShadow ? `${boxShadow}, ${shadow}` : shadow;
90
- } else if (boxShadow) {
91
- res.boxShadow = boxShadow;
92
- }
93
- const { textShadowColor, textShadowOffset, textShadowRadius } = style;
94
- if (textShadowColor || textShadowOffset || textShadowRadius) {
95
- const { height, width } = textShadowOffset || defaultOffset;
96
- const radius = textShadowRadius || 0;
97
- const color = normalizeValueWithProperty(textShadowColor, "textShadowColor");
98
- if (color && (height !== 0 || width !== 0 || radius !== 0)) {
99
- const blurRadius = normalizeValueWithProperty(radius);
100
- const offsetX = normalizeValueWithProperty(width);
101
- const offsetY = normalizeValueWithProperty(height);
102
- res.textShadow = `${offsetX} ${offsetY} ${blurRadius} ${color}`;
103
- }
104
- }
105
- for (const key in borderDefaults) {
106
- if (key in style) {
107
- res[borderDefaults[key]] = style[borderDefaults[key]] || "solid";
108
- }
109
- }
110
- for (let key in style) {
111
- shorthands = shorthands || getConfig().shorthands;
112
- if (shorthands) {
113
- key = shorthands[key] || key;
114
- }
115
- if (reducedStyleKeys[key])
116
- continue;
117
- if (key in pseudoDescriptors) {
118
- res[key] = expandStyles(style[key]);
119
- } else {
120
- const val = normalizeValueWithProperty(style[key], key);
121
- const out = expandStyle(key, val);
122
- if (out) {
123
- Object.assign(res, Object.fromEntries(out));
124
- } else {
125
- res[key] = val;
126
- }
127
- }
128
- }
129
- return res;
130
- }
131
- const borderDefaults = {
132
- borderWidth: "borderStyle",
133
- borderBottomWidth: "borderBottomStyle",
134
- borderTopWidth: "borderTopStyle",
135
- borderLeftWidth: "borderLeftStyle",
136
- borderRightWidth: "borderRightStyle"
137
- };
138
- function createDeclarationBlock(style, important = false) {
139
- let declarations = "";
140
- for (const key in style) {
141
- const prop = hyphenateStyleName(key);
142
- const value = style[key];
143
- declarations += `${prop}:${value}`;
144
- }
145
- return `{${declarations}${important ? ` !important` : ""};}`;
146
- }
147
- const pseudoSelectorPrefixes = (() => {
148
- const res = {};
149
- for (const key in pseudoDescriptors) {
150
- const pseudo = pseudoDescriptors[key];
151
- res[pseudo.name] = [...Array(pseudo.priority)].map(() => ":root").join("") + " ";
152
- }
153
- return res;
154
- })();
155
- function createAtomicRules(identifier, property, value, pseudo) {
156
- const selector = pseudo ? `${pseudoSelectorPrefixes[pseudo.name]} .${identifier}:${pseudo.name}` : `.${identifier}`;
157
- const important = !!pseudo;
158
- let rules = [];
159
- switch (property) {
160
- case "placeholderTextColor": {
161
- const block = createDeclarationBlock({ color: value, opacity: 1 }, important);
162
- rules.push(`${selector}::placeholder${block}`);
163
- break;
164
- }
165
- case "pointerEvents": {
166
- let finalValue = value;
167
- if (value === "auto" || value === "box-only") {
168
- finalValue = "auto!important";
169
- if (value === "box-only") {
170
- const block2 = createDeclarationBlock({ pointerEvents: "none" }, important);
171
- rules.push(`${selector}>*${block2}`);
172
- }
173
- } else if (value === "none" || value === "box-none") {
174
- finalValue = "none!important";
175
- if (value === "box-none") {
176
- const block2 = createDeclarationBlock({ pointerEvents: "auto" }, important);
177
- rules.push(`${selector}>*${block2}`);
178
- }
179
- }
180
- const block = createDeclarationBlock({ pointerEvents: finalValue }, important);
181
- rules.push(`${selector}${block}`);
182
- break;
183
- }
184
- case "scrollbarWidth": {
185
- if (value === "none") {
186
- rules.push(`${selector}::-webkit-scrollbar{display:none}`);
187
- }
188
- const block = createDeclarationBlock({ scrollbarWidth: value }, important);
189
- rules.push(`${selector}${block}`);
190
- break;
191
- }
192
- default: {
193
- const block = createDeclarationBlock({ [property]: value }, important);
194
- rules.push(`${selector}${block}`);
195
- break;
196
- }
197
- }
198
- if ((pseudo == null ? void 0 : pseudo.name) === "hover") {
199
- rules = rules.map((r) => `@media not all and (hover: none) { ${r} }`);
200
- }
201
- return rules;
202
- }
203
- function expandStyle(key, value) {
204
- if (key === "flex") {
205
- if (value <= -1) {
206
- return [
207
- ["flexGrow", 0],
208
- ["flexShrink", 1],
209
- ["flexBasis", "auto"]
210
- ];
211
- }
212
- if (value >= 0) {
213
- return [
214
- ["flexGrow", value],
215
- ["flexShrink", 1]
216
- ];
217
- }
218
- return;
219
- }
220
- switch (key) {
221
- case "elevation":
222
- case "overlayColor":
223
- case "resizeMode":
224
- case "tintColor": {
225
- break;
226
- }
227
- case "aspectRatio": {
228
- return [[key, value.toString()]];
229
- }
230
- case "backgroundClip": {
231
- if (value === "text") {
232
- return [
233
- ["backgroundClip", value],
234
- ["WebkitBackgroundClip", value]
235
- ];
236
- }
237
- break;
238
- }
239
- case "textAlignVertical": {
240
- return [["verticalAlign", value === "center" ? "middle" : value]];
241
- }
242
- case "textDecorationLine": {
243
- return [["textDecorationLine", value]];
244
- }
245
- case "transform": {
246
- if (Array.isArray(value)) {
247
- return [[key, value.map(mapTransform).join(" ")]];
248
- }
249
- break;
250
- }
251
- case "writingDirection": {
252
- return [["direction", value]];
253
- }
254
- }
255
- const longKey = STYLE_SHORT_FORM_EXPANSIONS[key];
256
- if (longKey) {
257
- return longKey.map((key2) => {
258
- return [key2, value];
259
- });
260
- } else {
261
- if (isWeb && Array.isArray(value)) {
262
- return [[key, value.join(",")]];
263
- }
264
- }
265
- }
266
- const mapTransform = (transform) => {
267
- const type = Object.keys(transform)[0];
268
- const value = transform[type];
269
- if (type === "matrix" || type === "matrix3d") {
270
- return `${type}(${value.join(",")})`;
271
- } else {
272
- const normalizedValue = normalizeValueWithProperty(value, type);
273
- return `${type}(${normalizedValue})`;
274
- }
275
- };
276
- const colorProps = {
277
- backgroundColor: true,
278
- borderColor: true,
279
- borderTopColor: true,
280
- borderRightColor: true,
281
- borderBottomColor: true,
282
- borderLeftColor: true,
283
- color: true,
284
- shadowColor: true,
285
- textDecorationColor: true,
286
- textShadowColor: true
287
- };
288
- function normalizeValueWithProperty(value, property) {
289
- if (process.env.TAMAGUI_TARGET === "web") {
290
- const shouldCoerceToPx = typeof value === "number" && (property === void 0 || property === null || !unitlessNumbers[property]);
291
- if (shouldCoerceToPx) {
292
- return `${value}px`;
293
- }
294
- }
295
- if (property && colorProps[property]) {
296
- return normalizeColor(value);
297
- }
298
- return value;
299
- }
300
- const normalizeColor = (color, opacity = 1) => {
301
- if (color == null || color == void 0) {
302
- return;
303
- }
304
- if (process.env.TAMAGUI_TARGET === "web") {
305
- if (typeof color === "string" && isWebColor(color)) {
306
- return color;
307
- }
308
- }
309
- const colorInt = processColor(color);
310
- if (colorInt != null) {
311
- const r = colorInt >> 16 & 255;
312
- const g = colorInt >> 8 & 255;
313
- const b = colorInt & 255;
314
- const a = (colorInt >> 24 & 255) / 255;
315
- const alpha = (a * opacity).toFixed(2);
316
- return `rgba(${r},${g},${b},${alpha})`;
317
- }
318
- return `${color}`;
319
- };
320
- const webColors = {
321
- currentColor: true,
322
- currentcolor: true,
323
- transparent: true,
324
- inherit: true
325
- };
326
- const isWebColor = (color) => webColors[color] || color.indexOf("var(") === 0;
327
- const processColor = (color) => {
328
- if (color === void 0 || color === null) {
329
- return color;
330
- }
331
- let intColor = normalizeCSSColor(color);
332
- if (intColor === void 0 || intColor === null) {
333
- return void 0;
334
- }
335
- return (+intColor << 24 | +intColor >>> 8) >>> 0;
336
- };
337
- const unitlessNumbers = {
338
- animationIterationCount: true,
339
- aspectRatio: true,
340
- borderImageOutset: true,
341
- borderImageSlice: true,
342
- borderImageWidth: true,
343
- boxFlex: true,
344
- boxFleGroup: true,
345
- boxOrdinalGroup: true,
346
- columnCount: true,
347
- flex: true,
348
- flexGrow: true,
349
- flexOrder: true,
350
- flexPositive: true,
351
- flexShrink: true,
352
- flexNegative: true,
353
- fontWeight: true,
354
- gridRow: true,
355
- gridRowEnd: true,
356
- gridRowGap: true,
357
- gridRowStart: true,
358
- gridColumn: true,
359
- gridColumnEnd: true,
360
- gridColumnGap: true,
361
- gridColumnStart: true,
362
- lineClamp: true,
363
- opacity: true,
364
- order: true,
365
- orphans: true,
366
- tabSize: true,
367
- widows: true,
368
- zIndex: true,
369
- zoom: true,
370
- fillOpacity: true,
371
- floodOpacity: true,
372
- stopOpacity: true,
373
- strokeDasharray: true,
374
- strokeDashoffset: true,
375
- strokeMiterlimit: true,
376
- strokeOpacity: true,
377
- strokeWidth: true,
378
- scale: true,
379
- scaleX: true,
380
- scaleY: true,
381
- scaleZ: true,
382
- shadowOpacity: true
383
- };
384
- const defaultOffset = { height: 0, width: 0 };
385
- const STYLE_SHORT_FORM_EXPANSIONS = __spreadValues({
386
- borderColor: ["borderTopColor", "borderRightColor", "borderBottomColor", "borderLeftColor"],
387
- borderRadius: [
388
- "borderTopLeftRadius",
389
- "borderTopRightRadius",
390
- "borderBottomRightRadius",
391
- "borderBottomLeftRadius"
392
- ],
393
- borderStyle: ["borderTopStyle", "borderRightStyle", "borderBottomStyle", "borderLeftStyle"],
394
- borderWidth: ["borderTopWidth", "borderRightWidth", "borderBottomWidth", "borderLeftWidth"],
395
- margin: ["marginTop", "marginRight", "marginBottom", "marginLeft"],
396
- marginHorizontal: ["marginRight", "marginLeft"],
397
- marginVertical: ["marginTop", "marginBottom"],
398
- overscrollBehavior: ["overscrollBehaviorX", "overscrollBehaviorY"],
399
- padding: ["paddingTop", "paddingRight", "paddingBottom", "paddingLeft"],
400
- paddingHorizontal: ["paddingRight", "paddingLeft"],
401
- paddingVertical: ["paddingTop", "paddingBottom"]
402
- }, isWeb && {
403
- overflow: ["overflowX", "overflowY"]
404
- });
405
- export {
406
- expandStyle,
407
- expandStyles,
408
- generateAtomicStyles
409
- };
410
- //# sourceMappingURL=generateAtomicStyles.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/helpers/generateAtomicStyles.ts"],
4
- "sourcesContent": ["/**\n * Some parts adapted from react-native-web\n * Copyright (c) Nicolas Gallagher licensed under the MIT license.\n */\n\nimport { StyleObject, simpleHash } from '@tamagui/helpers'\nimport hyphenateStyleName from 'hyphenate-style-name'\nimport normalizeCSSColor from 'normalize-css-color'\nimport { TextStyle, ViewStyle } from 'react-native'\n\nimport { getConfig } from '../conf'\nimport { isWeb } from '../constants/platform'\nimport { reversedShorthands } from '../createTamagui'\nimport { PseudoDescriptor, pseudoDescriptors } from './pseudoDescriptors'\n\ntype Value = Object | Array<any> | string | number\nexport type Style = { [key: string]: Value }\n\nclass Cache {\n values: Record<string, any> = {}\n\n get(key: string, valStr: string) {\n return this.values[key]?.[valStr]\n }\n\n set(key: string, valStr: string, object: any) {\n this.values[key] ??= {}\n this.values[key][valStr] = object\n }\n}\n\nconst cache = new Cache()\n\nexport const generateAtomicStyles = (\n style: ViewStyle & TextStyle,\n pseudo?: PseudoDescriptor\n): StyleObject[] => {\n const res = expandStyles(style)\n const out: StyleObject[] = []\n for (const key in res) {\n const value = res[key]\n if (value != null && value != undefined) {\n const valueString = normalizeValueWithProperty(value, key)\n const uid = key + (pseudo?.name || '')\n const cachedResult = cache.get(uid, valueString)\n if (cachedResult != undefined) {\n out.push(cachedResult)\n } else {\n const hash = simpleHash(uid + valueString)\n const pseudoPrefix = pseudo ? `0${pseudo.name}-` : ''\n const shortProp = reversedShorthands[key] || key\n const identifier = `_${shortProp}-${pseudoPrefix}${hash}`\n const rules = createAtomicRules(identifier, key, valueString, pseudo)\n const styleObject: StyleObject = {\n property: key,\n pseudo: pseudo?.name,\n value,\n identifier,\n rules,\n }\n cache.set(uid, valueString, styleObject)\n out.push(styleObject)\n }\n }\n }\n return out\n}\n\nconst reducedStyleKeys = {\n shadowColor: true,\n shadowOffset: true,\n shadowOpacity: true,\n shadowRadius: true,\n textShadowColor: true,\n textShadowOffset: true,\n textShadowRadius: true,\n}\n\nlet shorthands: Record<string, string> | null = null\n\n// can likely remove this and include in other loops\nexport function expandStyles(style: any) {\n const res: Record<string, any> = {}\n\n // box-shadow\n const { boxShadow, shadowColor, shadowOffset, shadowOpacity, shadowRadius } = style\n if (shadowRadius !== undefined) {\n const { height, width } = shadowOffset || defaultOffset\n const offsetX = normalizeValueWithProperty(width || 0)\n const offsetY = normalizeValueWithProperty(height || 0)\n const blurRadius = normalizeValueWithProperty(shadowRadius || 0)\n const color = normalizeColor(String(shadowColor || 'black'), shadowOpacity)\n const shadow = `${offsetX} ${offsetY} ${blurRadius} ${color}`\n res.boxShadow = boxShadow ? `${boxShadow}, ${shadow}` : shadow\n } else if (boxShadow) {\n res.boxShadow = boxShadow\n }\n\n // text-shadow\n const { textShadowColor, textShadowOffset, textShadowRadius } = style\n if (textShadowColor || textShadowOffset || textShadowRadius) {\n const { height, width } = textShadowOffset || defaultOffset\n const radius = textShadowRadius || 0\n const color = normalizeValueWithProperty(textShadowColor, 'textShadowColor')\n if (color && (height !== 0 || width !== 0 || radius !== 0)) {\n const blurRadius = normalizeValueWithProperty(radius)\n const offsetX = normalizeValueWithProperty(width)\n const offsetY = normalizeValueWithProperty(height)\n res.textShadow = `${offsetX} ${offsetY} ${blurRadius} ${color}`\n }\n }\n\n // ensure border style set by default to solid\n for (const key in borderDefaults) {\n if (key in style) {\n res[borderDefaults[key]] = style[borderDefaults[key]] || 'solid'\n }\n }\n\n for (let key in style) {\n shorthands = shorthands || getConfig().shorthands\n if (shorthands) {\n key = shorthands[key] || key\n }\n if (reducedStyleKeys[key]) continue\n if (key in pseudoDescriptors) {\n res[key] = expandStyles(style[key])\n } else {\n const val = normalizeValueWithProperty(style[key], key)\n const out = expandStyle(key, val)\n if (out) {\n Object.assign(res, Object.fromEntries(out))\n } else {\n res[key] = val\n }\n }\n }\n return res\n}\n\nconst borderDefaults = {\n borderWidth: 'borderStyle',\n borderBottomWidth: 'borderBottomStyle',\n borderTopWidth: 'borderTopStyle',\n borderLeftWidth: 'borderLeftStyle',\n borderRightWidth: 'borderRightStyle',\n}\n\nfunction createDeclarationBlock(style: Style, important = false) {\n let declarations = ''\n for (const key in style) {\n const prop = hyphenateStyleName(key)\n const value = style[key]\n declarations += `${prop}:${value}`\n }\n return `{${declarations}${important ? ` !important` : ''};}`\n}\n\nconst pseudoSelectorPrefixes = (() => {\n const res: Record<string, string> = {}\n for (const key in pseudoDescriptors) {\n const pseudo = pseudoDescriptors[key]\n res[pseudo.name] = [...Array(pseudo.priority)].map(() => ':root').join('') + ' '\n }\n return res\n})()\n\nfunction createAtomicRules(\n identifier: string,\n property: string,\n value: any,\n pseudo?: PseudoDescriptor\n): string[] {\n const selector = pseudo\n ? `${pseudoSelectorPrefixes[pseudo.name]} .${identifier}:${pseudo.name}`\n : `.${identifier}`\n const important = !!pseudo\n\n let rules: string[] = []\n\n // Handle non-standard properties and object values that require multiple\n // CSS rules to be created.\n switch (property) {\n // Equivalent to using '::placeholder'\n case 'placeholderTextColor': {\n const block = createDeclarationBlock({ color: value, opacity: 1 }, important)\n rules.push(`${selector}::placeholder${block}`)\n break\n }\n\n // Polyfill for additional 'pointer-events' values\n // See d13f78622b233a0afc0c7a200c0a0792c8ca9e58\n case 'pointerEvents': {\n let finalValue = value\n if (value === 'auto' || value === 'box-only') {\n finalValue = 'auto!important'\n if (value === 'box-only') {\n const block = createDeclarationBlock({ pointerEvents: 'none' }, important)\n rules.push(`${selector}>*${block}`)\n }\n } else if (value === 'none' || value === 'box-none') {\n finalValue = 'none!important'\n if (value === 'box-none') {\n const block = createDeclarationBlock({ pointerEvents: 'auto' }, important)\n rules.push(`${selector}>*${block}`)\n }\n }\n const block = createDeclarationBlock({ pointerEvents: finalValue }, important)\n rules.push(`${selector}${block}`)\n break\n }\n\n // Polyfill for draft spec\n // https://drafts.csswg.org/css-scrollbars-1/\n case 'scrollbarWidth': {\n if (value === 'none') {\n rules.push(`${selector}::-webkit-scrollbar{display:none}`)\n }\n const block = createDeclarationBlock({ scrollbarWidth: value }, important)\n rules.push(`${selector}${block}`)\n break\n }\n\n default: {\n const block = createDeclarationBlock({ [property]: value }, important)\n rules.push(`${selector}${block}`)\n break\n }\n }\n\n // hover styles need to be conditional\n // perhaps this can be generalized but for now lets just shortcut\n // and hardcode for hover styles, if we need to later we can\n // WEIRD SYNTAX, SEE:\n // https://stackoverflow.com/questions/40532204/media-query-for-devices-supporting-hover\n if (pseudo?.name === 'hover') {\n rules = rules.map((r) => `@media not all and (hover: none) { ${r} }`)\n }\n\n return rules\n}\n\nexport function expandStyle(key: string, value: any) {\n if (key === 'flex') {\n // The 'flex' property value in React Native must be a positive integer,\n // 0, or -1.\n if (value <= -1) {\n return [\n ['flexGrow', 0],\n ['flexShrink', 1],\n ['flexBasis', 'auto'],\n ]\n }\n // normalizing to better align with native\n // see spec for flex shorthand https://developer.mozilla.org/en-US/docs/Web/CSS/flex\n if (value >= 0) {\n return [\n ['flexGrow', value],\n ['flexShrink', 1],\n ]\n }\n return\n }\n\n // web only\n switch (key) {\n // Ignore some React Native styles\n case 'elevation':\n case 'overlayColor':\n case 'resizeMode':\n case 'tintColor': {\n break\n }\n\n case 'aspectRatio': {\n return [[key, value.toString()]]\n }\n\n // TODO: remove once this issue is fixed\n // https://github.com/rofrischmann/inline-style-prefixer/issues/159\n case 'backgroundClip': {\n if (value === 'text') {\n return [\n ['backgroundClip', value],\n ['WebkitBackgroundClip', value],\n ]\n }\n break\n }\n\n case 'textAlignVertical': {\n return [['verticalAlign', value === 'center' ? 'middle' : value]]\n }\n\n case 'textDecorationLine': {\n return [['textDecorationLine', value]]\n }\n\n case 'transform': {\n if (Array.isArray(value)) {\n return [[key, value.map(mapTransform).join(' ')]]\n }\n break\n }\n\n case 'writingDirection': {\n return [['direction', value]]\n }\n }\n\n const longKey = STYLE_SHORT_FORM_EXPANSIONS[key]\n if (longKey) {\n return longKey.map((key) => {\n return [key, value]\n })\n } else {\n if (isWeb && Array.isArray(value)) {\n return [[key, value.join(',')]]\n }\n }\n}\n\n// { scale: 2 } => 'scale(2)'\n// { translateX: 20 } => 'translateX(20px)'\n// { matrix: [1,2,3,4,5,6] } => 'matrix(1,2,3,4,5,6)'\nconst mapTransform = (transform) => {\n const type = Object.keys(transform)[0]\n const value = transform[type]\n if (type === 'matrix' || type === 'matrix3d') {\n return `${type}(${value.join(',')})`\n } else {\n const normalizedValue = normalizeValueWithProperty(value, type)\n return `${type}(${normalizedValue})`\n }\n}\n\nconst colorProps = {\n backgroundColor: true,\n borderColor: true,\n borderTopColor: true,\n borderRightColor: true,\n borderBottomColor: true,\n borderLeftColor: true,\n color: true,\n shadowColor: true,\n textDecorationColor: true,\n textShadowColor: true,\n}\n\nfunction normalizeValueWithProperty(value: any, property?: string): any {\n if (process.env.TAMAGUI_TARGET === 'web') {\n const shouldCoerceToPx =\n typeof value === 'number' &&\n (property === undefined || property === null || !unitlessNumbers[property])\n if (shouldCoerceToPx) {\n return `${value}px`\n }\n }\n if (property && colorProps[property]) {\n return normalizeColor(value)\n }\n return value\n}\n\nconst normalizeColor = (color?: number | string, opacity = 1): void | string => {\n if (color == null || color == undefined) {\n return\n }\n if (process.env.TAMAGUI_TARGET === 'web') {\n if (typeof color === 'string' && isWebColor(color)) {\n return color\n }\n }\n const colorInt = processColor(color)\n if (colorInt != null) {\n const r = (colorInt >> 16) & 255\n const g = (colorInt >> 8) & 255\n const b = colorInt & 255\n const a = ((colorInt >> 24) & 255) / 255\n const alpha = (a * opacity).toFixed(2)\n return `rgba(${r},${g},${b},${alpha})`\n }\n return `${color}`\n}\n\nconst webColors = {\n currentColor: true,\n currentcolor: true,\n transparent: true,\n inherit: true,\n}\n\nconst isWebColor = (color: string): boolean => webColors[color] || color.indexOf('var(') === 0\n\nconst processColor = (color?: number | string): number | undefined | null => {\n if (color === undefined || color === null) {\n return color\n }\n let intColor = normalizeCSSColor(color)\n if (intColor === undefined || intColor === null) {\n return undefined\n }\n return ((+intColor << 24) | (+intColor >>> 8)) >>> 0\n}\n\nconst unitlessNumbers = {\n animationIterationCount: true,\n aspectRatio: true,\n borderImageOutset: true,\n borderImageSlice: true,\n borderImageWidth: true,\n boxFlex: true,\n boxFleGroup: true,\n boxOrdinalGroup: true,\n columnCount: true,\n flex: true,\n flexGrow: true,\n flexOrder: true,\n flexPositive: true,\n flexShrink: true,\n flexNegative: true,\n fontWeight: true,\n gridRow: true,\n gridRowEnd: true,\n gridRowGap: true,\n gridRowStart: true,\n gridColumn: true,\n gridColumnEnd: true,\n gridColumnGap: true,\n gridColumnStart: true,\n lineClamp: true,\n opacity: true,\n order: true,\n orphans: true,\n tabSize: true,\n widows: true,\n zIndex: true,\n zoom: true,\n fillOpacity: true,\n floodOpacity: true,\n stopOpacity: true,\n strokeDasharray: true,\n strokeDashoffset: true,\n strokeMiterlimit: true,\n strokeOpacity: true,\n strokeWidth: true,\n scale: true,\n scaleX: true,\n scaleY: true,\n scaleZ: true,\n shadowOpacity: true,\n}\n\nconst defaultOffset = { height: 0, width: 0 }\n\nconst STYLE_SHORT_FORM_EXPANSIONS = {\n borderColor: ['borderTopColor', 'borderRightColor', 'borderBottomColor', 'borderLeftColor'],\n borderRadius: [\n 'borderTopLeftRadius',\n 'borderTopRightRadius',\n 'borderBottomRightRadius',\n 'borderBottomLeftRadius',\n ],\n borderStyle: ['borderTopStyle', 'borderRightStyle', 'borderBottomStyle', 'borderLeftStyle'],\n borderWidth: ['borderTopWidth', 'borderRightWidth', 'borderBottomWidth', 'borderLeftWidth'],\n margin: ['marginTop', 'marginRight', 'marginBottom', 'marginLeft'],\n marginHorizontal: ['marginRight', 'marginLeft'],\n marginVertical: ['marginTop', 'marginBottom'],\n overscrollBehavior: ['overscrollBehaviorX', 'overscrollBehaviorY'],\n padding: ['paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft'],\n paddingHorizontal: ['paddingRight', 'paddingLeft'],\n paddingVertical: ['paddingTop', 'paddingBottom'],\n ...(isWeb && {\n // react-native doesn't support X / Y\n overflow: ['overflowX', 'overflowY'],\n }),\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;AAKA;AACA;AACA;AAGA;AACA;AACA;AACA;AAKA,MAAM,MAAM;AAAA,EAAZ;AACE,kBAA8B,CAAC;AAAA;AAAA,EAE/B,IAAI,KAAa,QAAgB;AArBnC;AAsBI,WAAO,WAAK,OAAO,SAAZ,mBAAmB;AAAA,EAC5B;AAAA,EAEA,IAAI,KAAa,QAAgB,QAAa;AAC5C,SAAK,OAAO,SAAS,CAAC;AACtB,SAAK,OAAO,KAAK,UAAU;AAAA,EAC7B;AACF;AAEA,MAAM,QAAQ,IAAI,MAAM;AAEjB,MAAM,uBAAuB,CAClC,OACA,WACkB;AAClB,QAAM,MAAM,aAAa,KAAK;AAC9B,QAAM,MAAqB,CAAC;AAC5B,aAAW,OAAO,KAAK;AACrB,UAAM,QAAQ,IAAI;AAClB,QAAI,SAAS,QAAQ,SAAS,QAAW;AACvC,YAAM,cAAc,2BAA2B,OAAO,GAAG;AACzD,YAAM,MAAM,MAAO,mCAAQ,SAAQ;AACnC,YAAM,eAAe,MAAM,IAAI,KAAK,WAAW;AAC/C,UAAI,gBAAgB,QAAW;AAC7B,YAAI,KAAK,YAAY;AAAA,MACvB,OAAO;AACL,cAAM,OAAO,WAAW,MAAM,WAAW;AACzC,cAAM,eAAe,SAAS,IAAI,OAAO,UAAU;AACnD,cAAM,YAAY,mBAAmB,QAAQ;AAC7C,cAAM,aAAa,IAAI,aAAa,eAAe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T,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,aAAa;AAAA,EACb,cAAc;AAAA,EACd,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,EAClB,kBAAkB;AAAA,EAClB,eAAe;AAAA,EACf,aAAa;AAAA,EACb,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,eAAe;AACjB;AAEA,MAAM,gBAAgB,EAAE,QAAQ,GAAG,OAAO,EAAE;AAE5C,MAAM,8BAA8B;AAAA,EAClC,aAAa,CAAC,kBAAkB,oBAAoB,qBAAqB,iBAAiB;AAAA,EAC1F,cAAc;AAAA,IACZ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,aAAa,CAAC,kBAAkB,oBAAoB,qBAAqB,iBAAiB;AAAA,EAC1F,aAAa,CAAC,kBAAkB,oBAAoB,qBAAqB,iBAAiB;AAAA,EAC1F,QAAQ,CAAC,aAAa,eAAe,gBAAgB,YAAY;AAAA,EACjE,kBAAkB,CAAC,eAAe,YAAY;AAAA,EAC9C,gBAAgB,CAAC,aAAa,cAAc;AAAA,EAC5C,oBAAoB,CAAC,uBAAuB,qBAAqB;AAAA,EACjE,SAAS,CAAC,cAAc,gBAAgB,iBAAiB,aAAa;AAAA,EACtE,mBAAmB,CAAC,gBAAgB,aAAa;AAAA,EACjD,iBAAiB,CAAC,cAAc,eAAe;AAAA,GAC3C,SAAS;AAAA,EAEX,UAAU,CAAC,aAAa,WAAW;AACrC;",
6
- "names": []
7
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"Pressability.d.ts","sourceRoot":"","sources":["../src/Pressability.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,KAAY,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Pressability.native.d.ts","sourceRoot":"","sources":["../src/Pressability.native.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,KAAsE,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,MAAM,CAAA;AACvC,eAAO,MAAM,sBAAsB,OAAO,CAAA;AAE1C,eAAO,MAAM,kBAAkB;;;;;;CAS9B,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../src/constants/platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAmB,MAAM,OAAO,CAAA;AAGlD,eAAO,MAAM,SAAS,SAA6B,CAAA;AACnD,eAAO,MAAM,KAAK,SAAyB,CAAA;AAC3C,eAAO,MAAM,KAAK,SAAuC,CAAA;AACzD,eAAO,MAAM,KAAK,SAAyC,CAAA;AAC3D,eAAO,MAAM,QAAQ,SAAyC,CAAA;AAC9D,eAAO,MAAM,yBAAyB,kBAAsC,CAAA;AAC5E,eAAO,MAAM,QAAQ,SAA+E,CAAA;AACpG,eAAO,MAAM,cAAc,SAA4D,CAAA;AACvF,eAAO,MAAM,WAAW,SAA2B,CAAA;AACnD,eAAO,MAAM,QAAQ,SAKA,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"rnw.d.ts","sourceRoot":"","sources":["../../src/constants/rnw.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,GAAG,KAAwB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"rnw.native.d.ts","sourceRoot":"","sources":["../../src/constants/rnw.native.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG,KAAY,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ButtonInsideButtonContext.d.ts","sourceRoot":"","sources":["../../src/contexts/ButtonInsideButtonContext.tsx"],"names":[],"mappings":";AAEA,eAAO,MAAM,yBAAyB,kCAAuB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"createShorthands.d.ts","sourceRoot":"","sources":["../src/createShorthands.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC,GAAG,CAAC,CAEnF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"createTheme.d.ts","sourceRoot":"","sources":["../src/createTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAE3C,aAAK,YAAY,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAA;CAAE,CAAA;AAExD,eAAO,MAAM,WAAW,0GAMvB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"createVariable.d.ts","sourceRoot":"","sources":["../src/createVariable.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,kBAAkB,mBAAmB,CAAA;AAE3C,aAAK,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,GAAG,IAAI;IACjD,GAAG,EAAE,CAAC,CAAA;IACN,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,qBAAa,QAAQ,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,GAAG;IAInD,CAAC,kBAAkB,CAAC,UAAO;IAG3B,GAAG,EAAE,MAAM,CAAA;IAGX,IAAI,EAAE,MAAM,CAAA;IAGZ,GAAG,EAAE,CAAC,CAAA;IAGN,QAAQ,EAAE,MAAM,CAAA;IAEhB,UAAU,UAAQ;gBAEN,KAAK,EAAE,UAAU;IAY7B,QAAQ;CAGT;AAED,eAAO,MAAM,cAAc,0EAK1B,CAAA;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,QAAQ,GAAG,GAAG,GAAG,CAAC,IAAI,QAAQ,CAE3D;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,QAAQ,GAAG,GAAG,OAGjD;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,QAAQ,GAAG,GAAG,OAGhD;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,QAAQ,GAAG,GAAG,OAGpD;AAGD,eAAO,MAAM,iBAAiB,aAAc,MAAM,iCA6BjD,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"createVariables.d.ts","sourceRoot":"","sources":["../src/createVariables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA8B,MAAM,kBAAkB,CAAA;AAEvE,aAAK,eAAe,CAAC,GAAG,SAAS,MAAM,GAAG,MAAM,GAAG,GAAG,IAAI;IACxD,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG,eAAe,CAAC,GAAG,CAAC,CAAA;CAC1C,CAAA;AAED,oBAAY,kBAAkB,CAAC,CAAC,SAAS,eAAe,IAAI;KACzD,GAAG,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,GAAG,MAAM,GAC5C,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAChB,CAAC,CAAC,GAAG,CAAC,SAAS,eAAe,GAC9B,kBAAkB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAC1B,KAAK;CACV,CAAA;AAED,eAAO,MAAM,eAAe,2FA+B3B,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"defaultComponentState.d.ts","sourceRoot":"","sources":["../src/defaultComponentState.tsx"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"RNComponents.d.ts","sourceRoot":"","sources":["../../src/helpers/RNComponents.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,sBAAgB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"areEqualSets.d.ts","sourceRoot":"","sources":["../../src/helpers/areEqualSets.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,MAAO,IAAI,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,YAQ1D,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"assignNativePropsToWeb.native.d.ts","sourceRoot":"","sources":["../../src/helpers/assignNativePropsToWeb.native.tsx"],"names":[],"mappings":"AAAA,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,QAAI"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"createShallowUpdate.d.ts","sourceRoot":"","sources":["../../src/helpers/createShallowUpdate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAA;AAE1C,wBAAgB,mBAAmB,CAAC,KAAK,SAAS,MAAM,EACtD,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,UAG1C,QAAQ,KAAK,CAAC,UAYxB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fixNativeShadow.d.ts","sourceRoot":"","sources":["../../src/helpers/fixNativeShadow.tsx"],"names":[],"mappings":"AACA,eAAO,MAAM,eAAe,MAAO,GAAG,SAAO,CAAA"}
@@ -1,3 +0,0 @@
1
- import { ViewStyle } from 'react-native';
2
- export declare function fixNativeShadow(props: ViewStyle): void;
3
- //# sourceMappingURL=fixNativeShadow.native.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fixNativeShadow.native.d.ts","sourceRoot":"","sources":["../../src/helpers/fixNativeShadow.native.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAKxC,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,QAwB/C"}