@tamagui/web 1.144.2 → 1.144.4

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 (345) hide show
  1. package/dist/cjs/Tamagui.native.js.map +1 -1
  2. package/dist/cjs/animationDriverTypes.test-d.cjs +49 -0
  3. package/dist/cjs/animationDriverTypes.test-d.js +51 -0
  4. package/dist/cjs/animationDriverTypes.test-d.js.map +6 -0
  5. package/dist/cjs/animationDriverTypes.test-d.native.js +52 -0
  6. package/dist/cjs/animationDriverTypes.test-d.native.js.map +1 -0
  7. package/dist/cjs/constants/isDevTools.native.js.map +1 -1
  8. package/dist/cjs/eventHandling.cjs +46 -0
  9. package/dist/cjs/eventHandling.js +41 -0
  10. package/dist/cjs/eventHandling.js.map +6 -0
  11. package/dist/cjs/eventHandling.native.js +134 -0
  12. package/dist/cjs/eventHandling.native.js.map +1 -0
  13. package/dist/cjs/helpers/createDesignSystem.cjs +179 -0
  14. package/dist/cjs/helpers/createDesignSystem.js +152 -0
  15. package/dist/cjs/helpers/createDesignSystem.js.map +6 -0
  16. package/dist/cjs/helpers/createDesignSystem.native.js +235 -0
  17. package/dist/cjs/helpers/createDesignSystem.native.js.map +1 -0
  18. package/dist/cjs/helpers/getDefaultProps.cjs +38 -0
  19. package/dist/cjs/helpers/getDefaultProps.js +27 -0
  20. package/dist/cjs/helpers/getDefaultProps.js.map +6 -0
  21. package/dist/cjs/helpers/getDefaultProps.native.js +42 -0
  22. package/dist/cjs/helpers/getDefaultProps.native.js.map +1 -0
  23. package/dist/cjs/helpers/getDynamicVal.cjs +22 -1
  24. package/dist/cjs/helpers/getDynamicVal.js +22 -1
  25. package/dist/cjs/helpers/getDynamicVal.js.map +1 -1
  26. package/dist/cjs/helpers/getDynamicVal.native.js +22 -1
  27. package/dist/cjs/helpers/getDynamicVal.native.js.map +1 -1
  28. package/dist/cjs/helpers/getSplitStyles.cjs +3 -17
  29. package/dist/cjs/helpers/getSplitStyles.js +2 -24
  30. package/dist/cjs/helpers/getSplitStyles.js.map +1 -1
  31. package/dist/cjs/helpers/getSplitStyles.native.js +18 -10
  32. package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
  33. package/dist/cjs/helpers/getTokenForKey.cjs +114 -0
  34. package/dist/cjs/helpers/getTokenForKey.js +114 -0
  35. package/dist/cjs/helpers/getTokenForKey.js.map +6 -0
  36. package/dist/cjs/helpers/getTokenForKey.native.js +128 -0
  37. package/dist/cjs/helpers/getTokenForKey.native.js.map +1 -0
  38. package/dist/cjs/helpers/mainThreadPressEvents.cjs +26 -0
  39. package/dist/cjs/helpers/mainThreadPressEvents.js +22 -0
  40. package/dist/cjs/helpers/mainThreadPressEvents.js.map +6 -0
  41. package/dist/cjs/helpers/mainThreadPressEvents.native.js +48 -0
  42. package/dist/cjs/helpers/mainThreadPressEvents.native.js.map +1 -0
  43. package/dist/cjs/helpers/mediaObjectToString.cjs +35 -0
  44. package/dist/cjs/helpers/mediaObjectToString.js +32 -0
  45. package/dist/cjs/helpers/mediaObjectToString.js.map +6 -0
  46. package/dist/cjs/helpers/mediaObjectToString.native.js +43 -0
  47. package/dist/cjs/helpers/mediaObjectToString.native.js.map +1 -0
  48. package/dist/cjs/helpers/mediaState.cjs +45 -0
  49. package/dist/cjs/helpers/mediaState.js +41 -0
  50. package/dist/cjs/helpers/mediaState.js.map +6 -0
  51. package/dist/cjs/helpers/mediaState.native.js +50 -0
  52. package/dist/cjs/helpers/mediaState.native.js.map +1 -0
  53. package/dist/cjs/helpers/mergeRenderElementProps.cjs +32 -0
  54. package/dist/cjs/helpers/mergeRenderElementProps.js +25 -0
  55. package/dist/cjs/helpers/mergeRenderElementProps.js.map +6 -0
  56. package/dist/cjs/helpers/mergeRenderElementProps.native.js +35 -0
  57. package/dist/cjs/helpers/mergeRenderElementProps.native.js.map +1 -0
  58. package/dist/cjs/helpers/mergeSlotStyleProps.cjs +39 -0
  59. package/dist/cjs/helpers/mergeSlotStyleProps.js +29 -0
  60. package/dist/cjs/helpers/mergeSlotStyleProps.js.map +6 -0
  61. package/dist/cjs/helpers/mergeSlotStyleProps.native.js +42 -0
  62. package/dist/cjs/helpers/mergeSlotStyleProps.native.js.map +1 -0
  63. package/dist/cjs/helpers/nativeOnlyProps.cjs +60 -0
  64. package/dist/cjs/helpers/nativeOnlyProps.js +55 -0
  65. package/dist/cjs/helpers/nativeOnlyProps.js.map +6 -0
  66. package/dist/cjs/helpers/nativeOnlyProps.native.js +63 -0
  67. package/dist/cjs/helpers/nativeOnlyProps.native.js.map +1 -0
  68. package/dist/cjs/helpers/normalizeColor.cjs +2 -1
  69. package/dist/cjs/helpers/normalizeColor.js +2 -1
  70. package/dist/cjs/helpers/normalizeColor.js.map +1 -1
  71. package/dist/cjs/helpers/normalizeColor.native.js +5 -3
  72. package/dist/cjs/helpers/normalizeColor.native.js.map +1 -1
  73. package/dist/cjs/helpers/parseBorderShorthand.cjs +26 -0
  74. package/dist/cjs/helpers/parseBorderShorthand.js +22 -0
  75. package/dist/cjs/helpers/parseBorderShorthand.js.map +6 -0
  76. package/dist/cjs/helpers/parseBorderShorthand.native.js +58 -0
  77. package/dist/cjs/helpers/parseBorderShorthand.native.js.map +1 -0
  78. package/dist/cjs/helpers/parseNativeStyle.cjs +132 -0
  79. package/dist/cjs/helpers/parseNativeStyle.js +116 -0
  80. package/dist/cjs/helpers/parseNativeStyle.js.map +6 -0
  81. package/dist/cjs/helpers/parseNativeStyle.native.js +149 -0
  82. package/dist/cjs/helpers/parseNativeStyle.native.js.map +1 -0
  83. package/dist/cjs/helpers/parseOutlineShorthand.cjs +26 -0
  84. package/dist/cjs/helpers/parseOutlineShorthand.js +22 -0
  85. package/dist/cjs/helpers/parseOutlineShorthand.js.map +6 -0
  86. package/dist/cjs/helpers/parseOutlineShorthand.native.js +58 -0
  87. package/dist/cjs/helpers/parseOutlineShorthand.native.js.map +1 -0
  88. package/dist/cjs/helpers/platformResolveValue.cjs +33 -0
  89. package/dist/cjs/helpers/platformResolveValue.js +28 -0
  90. package/dist/cjs/helpers/platformResolveValue.js.map +6 -0
  91. package/dist/cjs/helpers/platformResolveValue.native.js +58 -0
  92. package/dist/cjs/helpers/platformResolveValue.native.js.map +1 -0
  93. package/dist/cjs/helpers/pointerEvents.cjs +26 -0
  94. package/dist/cjs/helpers/pointerEvents.js +22 -0
  95. package/dist/cjs/helpers/pointerEvents.js.map +6 -0
  96. package/dist/cjs/helpers/pointerEvents.native.js +120 -0
  97. package/dist/cjs/helpers/pointerEvents.native.js.map +1 -0
  98. package/dist/cjs/helpers/pseudoTransitions.cjs +65 -0
  99. package/dist/cjs/helpers/pseudoTransitions.js +59 -0
  100. package/dist/cjs/helpers/pseudoTransitions.js.map +6 -0
  101. package/dist/cjs/helpers/pseudoTransitions.native.js +72 -0
  102. package/dist/cjs/helpers/pseudoTransitions.native.js.map +1 -0
  103. package/dist/cjs/helpers/resolveCompoundTokens.cjs +37 -0
  104. package/dist/cjs/helpers/resolveCompoundTokens.js +32 -0
  105. package/dist/cjs/helpers/resolveCompoundTokens.js.map +6 -0
  106. package/dist/cjs/helpers/resolveCompoundTokens.native.js +40 -0
  107. package/dist/cjs/helpers/resolveCompoundTokens.native.js.map +1 -0
  108. package/dist/cjs/helpers/resolveRem.cjs +32 -0
  109. package/dist/cjs/helpers/resolveRem.js +27 -0
  110. package/dist/cjs/helpers/resolveRem.js.map +6 -0
  111. package/dist/cjs/helpers/resolveRem.native.js +50 -0
  112. package/dist/cjs/helpers/resolveRem.native.js.map +1 -0
  113. package/dist/cjs/helpers/resolveSafeArea.cjs +34 -0
  114. package/dist/cjs/helpers/resolveSafeArea.js +29 -0
  115. package/dist/cjs/helpers/resolveSafeArea.js.map +6 -0
  116. package/dist/cjs/helpers/resolveSafeArea.native.js +42 -0
  117. package/dist/cjs/helpers/resolveSafeArea.native.js.map +1 -0
  118. package/dist/cjs/helpers/useRenderElement.cjs +48 -0
  119. package/dist/cjs/helpers/useRenderElement.js +42 -0
  120. package/dist/cjs/helpers/useRenderElement.js.map +6 -0
  121. package/dist/cjs/helpers/useRenderElement.native.js +52 -0
  122. package/dist/cjs/helpers/useRenderElement.native.js.map +1 -0
  123. package/dist/cjs/interfaces/TamaguiComponentPropsBaseBase.cjs +16 -0
  124. package/dist/cjs/interfaces/TamaguiComponentPropsBaseBase.js +14 -0
  125. package/dist/cjs/interfaces/TamaguiComponentPropsBaseBase.js.map +6 -0
  126. package/dist/cjs/interfaces/TamaguiComponentPropsBaseBase.native.js +19 -0
  127. package/dist/cjs/interfaces/TamaguiComponentPropsBaseBase.native.js.map +1 -0
  128. package/dist/cjs/styled.native.js.map +1 -1
  129. package/dist/cjs/styledHtml.test-d.cjs +156 -0
  130. package/dist/cjs/styledHtml.test-d.js +136 -0
  131. package/dist/cjs/styledHtml.test-d.js.map +6 -0
  132. package/dist/cjs/styledHtml.test-d.native.js +159 -0
  133. package/dist/cjs/styledHtml.test-d.native.js.map +1 -0
  134. package/dist/cjs/views/TamaguiRoot.cjs +68 -0
  135. package/dist/cjs/views/TamaguiRoot.js +54 -0
  136. package/dist/cjs/views/TamaguiRoot.js.map +6 -0
  137. package/dist/cjs/views/TamaguiRoot.native.js +31 -0
  138. package/dist/cjs/views/TamaguiRoot.native.js.map +1 -0
  139. package/dist/esm/animationDriverTypes.test-d.js +51 -0
  140. package/dist/esm/animationDriverTypes.test-d.js.map +6 -0
  141. package/dist/esm/animationDriverTypes.test-d.mjs +50 -0
  142. package/dist/esm/animationDriverTypes.test-d.mjs.map +1 -0
  143. package/dist/esm/animationDriverTypes.test-d.native.js +50 -0
  144. package/dist/esm/animationDriverTypes.test-d.native.js.map +1 -0
  145. package/dist/esm/constants/isDevTools.native.js.map +1 -1
  146. package/dist/esm/eventHandling.js +25 -0
  147. package/dist/esm/eventHandling.js.map +6 -0
  148. package/dist/esm/eventHandling.mjs +21 -0
  149. package/dist/esm/eventHandling.mjs.map +1 -0
  150. package/dist/esm/eventHandling.native.js +95 -0
  151. package/dist/esm/eventHandling.native.js.map +1 -0
  152. package/dist/esm/helpers/createDesignSystem.js +140 -0
  153. package/dist/esm/helpers/createDesignSystem.js.map +6 -0
  154. package/dist/esm/helpers/createDesignSystem.mjs +151 -0
  155. package/dist/esm/helpers/createDesignSystem.mjs.map +1 -0
  156. package/dist/esm/helpers/createDesignSystem.native.js +204 -0
  157. package/dist/esm/helpers/createDesignSystem.native.js.map +1 -0
  158. package/dist/esm/helpers/getDefaultProps.js +11 -0
  159. package/dist/esm/helpers/getDefaultProps.js.map +6 -0
  160. package/dist/esm/helpers/getDefaultProps.mjs +15 -0
  161. package/dist/esm/helpers/getDefaultProps.mjs.map +1 -0
  162. package/dist/esm/helpers/getDefaultProps.native.js +16 -0
  163. package/dist/esm/helpers/getDefaultProps.native.js.map +1 -0
  164. package/dist/esm/helpers/getDynamicVal.js +22 -1
  165. package/dist/esm/helpers/getDynamicVal.js.map +1 -1
  166. package/dist/esm/helpers/getDynamicVal.mjs +21 -1
  167. package/dist/esm/helpers/getDynamicVal.mjs.map +1 -1
  168. package/dist/esm/helpers/getDynamicVal.native.js +21 -1
  169. package/dist/esm/helpers/getDynamicVal.native.js.map +1 -1
  170. package/dist/esm/helpers/getSplitStyles.js +4 -31
  171. package/dist/esm/helpers/getSplitStyles.js.map +1 -1
  172. package/dist/esm/helpers/getSplitStyles.mjs +6 -20
  173. package/dist/esm/helpers/getSplitStyles.mjs.map +1 -1
  174. package/dist/esm/helpers/getSplitStyles.native.js +19 -11
  175. package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
  176. package/dist/esm/helpers/getTokenForKey.js +101 -0
  177. package/dist/esm/helpers/getTokenForKey.js.map +6 -0
  178. package/dist/esm/helpers/getTokenForKey.mjs +88 -0
  179. package/dist/esm/helpers/getTokenForKey.mjs.map +1 -0
  180. package/dist/esm/helpers/getTokenForKey.native.js +99 -0
  181. package/dist/esm/helpers/getTokenForKey.native.js.map +1 -0
  182. package/dist/esm/helpers/mainThreadPressEvents.js +6 -0
  183. package/dist/esm/helpers/mainThreadPressEvents.js.map +6 -0
  184. package/dist/esm/helpers/mainThreadPressEvents.mjs +3 -0
  185. package/dist/esm/helpers/mainThreadPressEvents.mjs.map +1 -0
  186. package/dist/esm/helpers/mainThreadPressEvents.native.js +22 -0
  187. package/dist/esm/helpers/mainThreadPressEvents.native.js.map +1 -0
  188. package/dist/esm/helpers/mediaObjectToString.js +16 -0
  189. package/dist/esm/helpers/mediaObjectToString.js.map +6 -0
  190. package/dist/esm/helpers/mediaObjectToString.mjs +12 -0
  191. package/dist/esm/helpers/mediaObjectToString.mjs.map +1 -0
  192. package/dist/esm/helpers/mediaObjectToString.native.js +17 -0
  193. package/dist/esm/helpers/mediaObjectToString.native.js.map +1 -0
  194. package/dist/esm/helpers/mediaState.js +25 -0
  195. package/dist/esm/helpers/mediaState.js.map +6 -0
  196. package/dist/esm/helpers/mediaState.mjs +18 -0
  197. package/dist/esm/helpers/mediaState.mjs.map +1 -0
  198. package/dist/esm/helpers/mediaState.native.js +20 -0
  199. package/dist/esm/helpers/mediaState.native.js.map +1 -0
  200. package/dist/esm/helpers/mergeRenderElementProps.js +9 -0
  201. package/dist/esm/helpers/mergeRenderElementProps.js.map +6 -0
  202. package/dist/esm/helpers/mergeRenderElementProps.mjs +9 -0
  203. package/dist/esm/helpers/mergeRenderElementProps.mjs.map +1 -0
  204. package/dist/esm/helpers/mergeRenderElementProps.native.js +9 -0
  205. package/dist/esm/helpers/mergeRenderElementProps.native.js.map +1 -0
  206. package/dist/esm/helpers/mergeSlotStyleProps.js +14 -0
  207. package/dist/esm/helpers/mergeSlotStyleProps.js.map +6 -0
  208. package/dist/esm/helpers/mergeSlotStyleProps.mjs +16 -0
  209. package/dist/esm/helpers/mergeSlotStyleProps.mjs.map +1 -0
  210. package/dist/esm/helpers/mergeSlotStyleProps.native.js +16 -0
  211. package/dist/esm/helpers/mergeSlotStyleProps.native.js.map +1 -0
  212. package/dist/esm/helpers/nativeOnlyProps.js +39 -0
  213. package/dist/esm/helpers/nativeOnlyProps.js.map +6 -0
  214. package/dist/esm/helpers/nativeOnlyProps.mjs +37 -0
  215. package/dist/esm/helpers/nativeOnlyProps.mjs.map +1 -0
  216. package/dist/esm/helpers/nativeOnlyProps.native.js +37 -0
  217. package/dist/esm/helpers/nativeOnlyProps.native.js.map +1 -0
  218. package/dist/esm/helpers/normalizeColor.js +2 -1
  219. package/dist/esm/helpers/normalizeColor.js.map +1 -1
  220. package/dist/esm/helpers/normalizeColor.mjs +2 -1
  221. package/dist/esm/helpers/normalizeColor.mjs.map +1 -1
  222. package/dist/esm/helpers/normalizeColor.native.js +5 -3
  223. package/dist/esm/helpers/normalizeColor.native.js.map +1 -1
  224. package/dist/esm/helpers/parseBorderShorthand.js +6 -0
  225. package/dist/esm/helpers/parseBorderShorthand.js.map +6 -0
  226. package/dist/esm/helpers/parseBorderShorthand.mjs +3 -0
  227. package/dist/esm/helpers/parseBorderShorthand.mjs.map +1 -0
  228. package/dist/esm/helpers/parseBorderShorthand.native.js +32 -0
  229. package/dist/esm/helpers/parseBorderShorthand.native.js.map +1 -0
  230. package/dist/esm/helpers/parseNativeStyle.js +100 -0
  231. package/dist/esm/helpers/parseNativeStyle.js.map +6 -0
  232. package/dist/esm/helpers/parseNativeStyle.mjs +109 -0
  233. package/dist/esm/helpers/parseNativeStyle.mjs.map +1 -0
  234. package/dist/esm/helpers/parseNativeStyle.native.js +123 -0
  235. package/dist/esm/helpers/parseNativeStyle.native.js.map +1 -0
  236. package/dist/esm/helpers/parseOutlineShorthand.js +6 -0
  237. package/dist/esm/helpers/parseOutlineShorthand.js.map +6 -0
  238. package/dist/esm/helpers/parseOutlineShorthand.mjs +3 -0
  239. package/dist/esm/helpers/parseOutlineShorthand.mjs.map +1 -0
  240. package/dist/esm/helpers/parseOutlineShorthand.native.js +32 -0
  241. package/dist/esm/helpers/parseOutlineShorthand.native.js.map +1 -0
  242. package/dist/esm/helpers/platformResolveValue.js +12 -0
  243. package/dist/esm/helpers/platformResolveValue.js.map +6 -0
  244. package/dist/esm/helpers/platformResolveValue.mjs +10 -0
  245. package/dist/esm/helpers/platformResolveValue.mjs.map +1 -0
  246. package/dist/esm/helpers/platformResolveValue.native.js +32 -0
  247. package/dist/esm/helpers/platformResolveValue.native.js.map +1 -0
  248. package/dist/esm/helpers/pointerEvents.js +6 -0
  249. package/dist/esm/helpers/pointerEvents.js.map +6 -0
  250. package/dist/esm/helpers/pointerEvents.mjs +3 -0
  251. package/dist/esm/helpers/pointerEvents.mjs.map +1 -0
  252. package/dist/esm/helpers/pointerEvents.native.js +94 -0
  253. package/dist/esm/helpers/pointerEvents.native.js.map +1 -0
  254. package/dist/esm/helpers/pseudoTransitions.js +43 -0
  255. package/dist/esm/helpers/pseudoTransitions.js.map +6 -0
  256. package/dist/esm/helpers/pseudoTransitions.mjs +41 -0
  257. package/dist/esm/helpers/pseudoTransitions.mjs.map +1 -0
  258. package/dist/esm/helpers/pseudoTransitions.native.js +45 -0
  259. package/dist/esm/helpers/pseudoTransitions.native.js.map +1 -0
  260. package/dist/esm/helpers/resolveCompoundTokens.js +16 -0
  261. package/dist/esm/helpers/resolveCompoundTokens.js.map +6 -0
  262. package/dist/esm/helpers/resolveCompoundTokens.mjs +14 -0
  263. package/dist/esm/helpers/resolveCompoundTokens.mjs.map +1 -0
  264. package/dist/esm/helpers/resolveCompoundTokens.native.js +14 -0
  265. package/dist/esm/helpers/resolveCompoundTokens.native.js.map +1 -0
  266. package/dist/esm/helpers/resolveRem.js +11 -0
  267. package/dist/esm/helpers/resolveRem.js.map +6 -0
  268. package/dist/esm/helpers/resolveRem.mjs +8 -0
  269. package/dist/esm/helpers/resolveRem.mjs.map +1 -0
  270. package/dist/esm/helpers/resolveRem.native.js +23 -0
  271. package/dist/esm/helpers/resolveRem.native.js.map +1 -0
  272. package/dist/esm/helpers/resolveSafeArea.js +13 -0
  273. package/dist/esm/helpers/resolveSafeArea.js.map +6 -0
  274. package/dist/esm/helpers/resolveSafeArea.mjs +11 -0
  275. package/dist/esm/helpers/resolveSafeArea.mjs.map +1 -0
  276. package/dist/esm/helpers/resolveSafeArea.native.js +16 -0
  277. package/dist/esm/helpers/resolveSafeArea.native.js.map +1 -0
  278. package/dist/esm/helpers/useRenderElement.js +28 -0
  279. package/dist/esm/helpers/useRenderElement.js.map +6 -0
  280. package/dist/esm/helpers/useRenderElement.mjs +25 -0
  281. package/dist/esm/helpers/useRenderElement.mjs.map +1 -0
  282. package/dist/esm/helpers/useRenderElement.native.js +26 -0
  283. package/dist/esm/helpers/useRenderElement.native.js.map +1 -0
  284. package/dist/esm/interfaces/TamaguiComponentPropsBaseBase.js +1 -0
  285. package/dist/esm/interfaces/TamaguiComponentPropsBaseBase.js.map +6 -0
  286. package/dist/esm/interfaces/TamaguiComponentPropsBaseBase.mjs +2 -0
  287. package/dist/esm/interfaces/TamaguiComponentPropsBaseBase.mjs.map +1 -0
  288. package/dist/esm/interfaces/TamaguiComponentPropsBaseBase.native.js +2 -0
  289. package/dist/esm/interfaces/TamaguiComponentPropsBaseBase.native.js.map +1 -0
  290. package/dist/esm/styled.native.js.map +1 -1
  291. package/dist/esm/styledHtml.test-d.js +137 -0
  292. package/dist/esm/styledHtml.test-d.js.map +6 -0
  293. package/dist/esm/styledHtml.test-d.mjs +157 -0
  294. package/dist/esm/styledHtml.test-d.mjs.map +1 -0
  295. package/dist/esm/styledHtml.test-d.native.js +157 -0
  296. package/dist/esm/styledHtml.test-d.native.js.map +1 -0
  297. package/dist/esm/views/TamaguiRoot.js +33 -0
  298. package/dist/esm/views/TamaguiRoot.js.map +6 -0
  299. package/dist/esm/views/TamaguiRoot.mjs +34 -0
  300. package/dist/esm/views/TamaguiRoot.mjs.map +1 -0
  301. package/dist/esm/views/TamaguiRoot.native.js +5 -0
  302. package/dist/esm/views/TamaguiRoot.native.js.map +1 -0
  303. package/package.json +12 -12
  304. package/src/helpers/getDynamicVal.ts +35 -0
  305. package/src/helpers/getSplitStyles.tsx +57 -29
  306. package/src/helpers/normalizeColor.ts +4 -0
  307. package/types/eventHandling.d.ts.map +1 -0
  308. package/types/eventHandling.native.d.ts.map +1 -0
  309. package/types/helpers/createDesignSystem.d.ts.map +1 -0
  310. package/types/helpers/expandStyle.native.d.ts.map +1 -0
  311. package/types/helpers/getDefaultProps.d.ts.map +1 -0
  312. package/types/helpers/getDynamicVal.d.ts +4 -0
  313. package/types/helpers/getDynamicVal.d.ts.map +1 -1
  314. package/types/helpers/getSplitStyles.d.ts.map +1 -1
  315. package/types/helpers/getTokenForKey.d.ts.map +1 -0
  316. package/types/helpers/mainThreadPressEvents.d.ts.map +1 -0
  317. package/types/helpers/mainThreadPressEvents.native.d.ts.map +1 -0
  318. package/types/helpers/mediaObjectToString.d.ts.map +1 -0
  319. package/types/helpers/mediaState.d.ts.map +1 -0
  320. package/types/helpers/mergeRenderElementProps.d.ts.map +1 -0
  321. package/types/helpers/mergeSlotStyleProps.d.ts.map +1 -0
  322. package/types/helpers/nativeOnlyProps.d.ts.map +1 -0
  323. package/types/helpers/normalizeColor.d.ts.map +1 -1
  324. package/types/helpers/normalizeColor.native.d.ts.map +1 -0
  325. package/types/helpers/normalizeShadow.native.d.ts.map +1 -0
  326. package/types/helpers/parseBorderShorthand.d.ts.map +1 -0
  327. package/types/helpers/parseBorderShorthand.native.d.ts.map +1 -0
  328. package/types/helpers/parseNativeStyle.d.ts.map +1 -0
  329. package/types/helpers/parseOutlineShorthand.d.ts.map +1 -0
  330. package/types/helpers/parseOutlineShorthand.native.d.ts.map +1 -0
  331. package/types/helpers/platformResolveValue.d.ts.map +1 -0
  332. package/types/helpers/platformResolveValue.native.d.ts.map +1 -0
  333. package/types/helpers/pointerEvents.d.ts.map +1 -0
  334. package/types/helpers/pointerEvents.native.d.ts.map +1 -0
  335. package/types/helpers/propMapper.native.d.ts.map +1 -0
  336. package/types/helpers/pseudoTransitions.d.ts.map +1 -0
  337. package/types/helpers/resolveCompoundTokens.d.ts.map +1 -0
  338. package/types/helpers/resolveRem.d.ts.map +1 -0
  339. package/types/helpers/resolveRem.native.d.ts.map +1 -0
  340. package/types/helpers/resolveSafeArea.d.ts.map +1 -0
  341. package/types/helpers/resolveSafeArea.native.d.ts.map +1 -0
  342. package/types/helpers/useRenderElement.d.ts.map +1 -0
  343. package/types/interfaces/TamaguiComponentPropsBaseBase.d.ts.map +1 -0
  344. package/types/views/TamaguiRoot.d.ts.map +1 -0
  345. package/types/views/TamaguiRoot.native.d.ts.map +1 -0
@@ -0,0 +1,136 @@
1
+ var import_vitest = require("vitest"), import_styled = require("./styled");
2
+ (0, import_vitest.describe)("styled.a() types", () => {
3
+ const StyledAnchor = import_styled.styled.a({
4
+ color: "$blue10"
5
+ });
6
+ (0, import_vitest.test)("styled.a() accepts href prop", () => {
7
+ (0, import_vitest.expectTypeOf)().toHaveProperty("href"), (0, import_vitest.expectTypeOf)().toMatchTypeOf();
8
+ }), (0, import_vitest.test)("styled.a() accepts target prop", () => {
9
+ (0, import_vitest.expectTypeOf)().toHaveProperty("target");
10
+ }), (0, import_vitest.test)("styled.a() accepts rel prop", () => {
11
+ (0, import_vitest.expectTypeOf)().toHaveProperty("rel");
12
+ }), (0, import_vitest.test)("styled.a() accepts text style props", () => {
13
+ (0, import_vitest.expectTypeOf)().toHaveProperty("color"), (0, import_vitest.expectTypeOf)().toHaveProperty("fontSize"), (0, import_vitest.expectTypeOf)().toHaveProperty("fontWeight"), (0, import_vitest.expectTypeOf)().toHaveProperty("textDecorationLine");
14
+ });
15
+ });
16
+ (0, import_vitest.describe)("styled.button() types", () => {
17
+ const StyledButton = import_styled.styled.button({
18
+ padding: "$4"
19
+ });
20
+ (0, import_vitest.test)("styled.button() accepts type prop", () => {
21
+ (0, import_vitest.expectTypeOf)().toHaveProperty("type");
22
+ }), (0, import_vitest.test)("styled.button() accepts disabled prop", () => {
23
+ (0, import_vitest.expectTypeOf)().toHaveProperty("disabled");
24
+ }), (0, import_vitest.test)("styled.button() accepts onClick prop", () => {
25
+ (0, import_vitest.expectTypeOf)().toHaveProperty("onClick");
26
+ }), (0, import_vitest.test)("styled.button() accepts stack style props", () => {
27
+ (0, import_vitest.expectTypeOf)().toHaveProperty("padding"), (0, import_vitest.expectTypeOf)().toHaveProperty("backgroundColor"), (0, import_vitest.expectTypeOf)().toHaveProperty("borderRadius");
28
+ });
29
+ });
30
+ (0, import_vitest.describe)("styled.input() types", () => {
31
+ const StyledInput = import_styled.styled.input({
32
+ padding: "$2"
33
+ });
34
+ (0, import_vitest.test)("styled.input() accepts type prop", () => {
35
+ (0, import_vitest.expectTypeOf)().toHaveProperty("type");
36
+ }), (0, import_vitest.test)("styled.input() accepts placeholder prop", () => {
37
+ (0, import_vitest.expectTypeOf)().toHaveProperty("placeholder");
38
+ }), (0, import_vitest.test)("styled.input() accepts maxLength prop", () => {
39
+ (0, import_vitest.expectTypeOf)().toHaveProperty("maxLength");
40
+ }), (0, import_vitest.test)("styled.input() accepts value prop", () => {
41
+ (0, import_vitest.expectTypeOf)().toHaveProperty("value");
42
+ }), (0, import_vitest.test)("styled.input() accepts onChange prop", () => {
43
+ (0, import_vitest.expectTypeOf)().toHaveProperty("onChange");
44
+ });
45
+ });
46
+ (0, import_vitest.describe)("styled.form() types", () => {
47
+ const StyledForm = import_styled.styled.form({
48
+ gap: "$3"
49
+ });
50
+ (0, import_vitest.test)("styled.form() accepts action prop", () => {
51
+ (0, import_vitest.expectTypeOf)().toHaveProperty("action");
52
+ }), (0, import_vitest.test)("styled.form() accepts method prop", () => {
53
+ (0, import_vitest.expectTypeOf)().toHaveProperty("method");
54
+ }), (0, import_vitest.test)("styled.form() accepts onSubmit prop", () => {
55
+ (0, import_vitest.expectTypeOf)().toHaveProperty("onSubmit");
56
+ });
57
+ });
58
+ (0, import_vitest.describe)("styled.label() types", () => {
59
+ const StyledLabel = import_styled.styled.label({
60
+ fontSize: "$3"
61
+ });
62
+ (0, import_vitest.test)("styled.label() accepts htmlFor prop", () => {
63
+ (0, import_vitest.expectTypeOf)().toHaveProperty("htmlFor");
64
+ });
65
+ });
66
+ (0, import_vitest.describe)("styled.div() types", () => {
67
+ const StyledDiv = import_styled.styled.div({
68
+ padding: "$4"
69
+ });
70
+ (0, import_vitest.test)("styled.div() accepts stack style props", () => {
71
+ (0, import_vitest.expectTypeOf)().toHaveProperty("padding"), (0, import_vitest.expectTypeOf)().toHaveProperty("margin"), (0, import_vitest.expectTypeOf)().toHaveProperty("flex"), (0, import_vitest.expectTypeOf)().toHaveProperty("backgroundColor");
72
+ });
73
+ });
74
+ (0, import_vitest.describe)("styled.span() types", () => {
75
+ const StyledSpan = import_styled.styled.span({
76
+ color: "$color"
77
+ });
78
+ (0, import_vitest.test)("styled.span() accepts text style props", () => {
79
+ (0, import_vitest.expectTypeOf)().toHaveProperty("color"), (0, import_vitest.expectTypeOf)().toHaveProperty("fontSize"), (0, import_vitest.expectTypeOf)().toHaveProperty("fontWeight"), (0, import_vitest.expectTypeOf)().toHaveProperty("lineHeight");
80
+ });
81
+ });
82
+ (0, import_vitest.describe)("styled.element() with variants", () => {
83
+ const StyledAnchorWithVariants = import_styled.styled.a({
84
+ color: "$blue10",
85
+ variants: {
86
+ size: {
87
+ small: { fontSize: "$2" },
88
+ large: { fontSize: "$6" }
89
+ },
90
+ underline: {
91
+ true: { textDecorationLine: "underline" },
92
+ false: { textDecorationLine: "none" }
93
+ }
94
+ },
95
+ defaultVariants: {
96
+ underline: !0
97
+ }
98
+ });
99
+ (0, import_vitest.test)("styled.a() with variants accepts size variant", () => {
100
+ (0, import_vitest.expectTypeOf)().toHaveProperty("size");
101
+ }), (0, import_vitest.test)("styled.a() with variants accepts underline variant", () => {
102
+ (0, import_vitest.expectTypeOf)().toHaveProperty("underline");
103
+ }), (0, import_vitest.test)("styled.a() with variants still accepts href", () => {
104
+ (0, import_vitest.expectTypeOf)().toHaveProperty("href");
105
+ });
106
+ });
107
+ (0, import_vitest.describe)("styledHtml() function", () => {
108
+ const StyledAnchor = (0, import_styled.styledHtml)("a", {
109
+ color: "$blue10"
110
+ });
111
+ (0, import_vitest.test)('styledHtml("a") accepts href prop', () => {
112
+ (0, import_vitest.expectTypeOf)().toHaveProperty("href");
113
+ });
114
+ });
115
+ (0, import_vitest.describe)("semantic HTML elements", () => {
116
+ (0, import_vitest.test)("styled.nav() creates nav element component", () => {
117
+ const StyledNav = import_styled.styled.nav({ padding: "$2" });
118
+ (0, import_vitest.expectTypeOf)().toHaveProperty("padding");
119
+ }), (0, import_vitest.test)("styled.main() creates main element component", () => {
120
+ const StyledMain = import_styled.styled.main({ flex: 1 });
121
+ (0, import_vitest.expectTypeOf)().toHaveProperty("flex");
122
+ }), (0, import_vitest.test)("styled.section() creates section element component", () => {
123
+ const StyledSection = import_styled.styled.section({ padding: "$3" });
124
+ (0, import_vitest.expectTypeOf)().toHaveProperty("padding");
125
+ }), (0, import_vitest.test)("styled.article() creates article element component", () => {
126
+ const StyledArticle = import_styled.styled.article({ padding: "$3" });
127
+ (0, import_vitest.expectTypeOf)().toHaveProperty("padding");
128
+ }), (0, import_vitest.test)("styled.header() creates header element component", () => {
129
+ const StyledHeader = import_styled.styled.header({ padding: "$2" });
130
+ (0, import_vitest.expectTypeOf)().toHaveProperty("padding");
131
+ }), (0, import_vitest.test)("styled.footer() creates footer element component", () => {
132
+ const StyledFooter = import_styled.styled.footer({ padding: "$2" });
133
+ (0, import_vitest.expectTypeOf)().toHaveProperty("padding");
134
+ });
135
+ });
136
+ //# sourceMappingURL=styledHtml.test-d.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/styledHtml.test-d.ts"],
4
+ "mappings": "AAYA,oBAA6C,mBAC7C,gBAAmC;AAAA,IAOnC,wBAAS,oBAAoB,MAAM;AACjC,QAAM,eAAe,qBAAO,EAAE;AAAA,IAC5B,OAAO;AAAA,EACT,CAAC;AAID,0BAAK,gCAAgC,MAAM;AACzC,oCAA0B,EAAE,eAAe,MAAM,OACjD,4BAAkC,EAAE,cAAkC;AAAA,EACxE,CAAC,OAED,oBAAK,kCAAkC,MAAM;AAC3C,oCAA0B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AM;AAC/D,UAAM,gBAAgB,qBAAO,QAAQ,EAAE,SAAS,KAAK,CAAC;AAEtD,oCAA2B,EAAE,eAAe,SAAS;AAAA,EACvD,CAAC,OAED,oBAAK,oDAAoD,MAAM;AAC7D,UAAM,eAAe,qBAAO,OAAO,EAAE,SAAS,KAAK,CAAC;AAEpD,oCAA0B,EAAE,eAAe,SAAS;AAAA,EACtD,CAAC,OAED,oBAAK,oDAAoD,MAAM;AAC7D,UAAM,eAAe,qBAAO,OAAO,EAAE,SAAS,KAAK,CAAC;AAEpD,oCAA0B,EAAE,eAAe,SAAS;AAAA,EACtD,CAAC;AACH,CAAC;",
5
+ "names": []
6
+ }
@@ -0,0 +1,159 @@
1
+ "use strict";
2
+
3
+ var import_vitest = require("vitest"),
4
+ import_styled = require("./styled.native.js");
5
+ (0, import_vitest.describe)("styled.a() types", function () {
6
+ var StyledAnchor = import_styled.styled.a({
7
+ color: "$blue10"
8
+ });
9
+ (0, import_vitest.test)("styled.a() accepts href prop", function () {
10
+ (0, import_vitest.expectTypeOf)().toHaveProperty("href"), (0, import_vitest.expectTypeOf)().toMatchTypeOf();
11
+ }), (0, import_vitest.test)("styled.a() accepts target prop", function () {
12
+ (0, import_vitest.expectTypeOf)().toHaveProperty("target");
13
+ }), (0, import_vitest.test)("styled.a() accepts rel prop", function () {
14
+ (0, import_vitest.expectTypeOf)().toHaveProperty("rel");
15
+ }), (0, import_vitest.test)("styled.a() accepts text style props", function () {
16
+ (0, import_vitest.expectTypeOf)().toHaveProperty("color"), (0, import_vitest.expectTypeOf)().toHaveProperty("fontSize"), (0, import_vitest.expectTypeOf)().toHaveProperty("fontWeight"), (0, import_vitest.expectTypeOf)().toHaveProperty("textDecorationLine");
17
+ });
18
+ });
19
+ (0, import_vitest.describe)("styled.button() types", function () {
20
+ var StyledButton = import_styled.styled.button({
21
+ padding: "$4"
22
+ });
23
+ (0, import_vitest.test)("styled.button() accepts type prop", function () {
24
+ (0, import_vitest.expectTypeOf)().toHaveProperty("type");
25
+ }), (0, import_vitest.test)("styled.button() accepts disabled prop", function () {
26
+ (0, import_vitest.expectTypeOf)().toHaveProperty("disabled");
27
+ }), (0, import_vitest.test)("styled.button() accepts onClick prop", function () {
28
+ (0, import_vitest.expectTypeOf)().toHaveProperty("onClick");
29
+ }), (0, import_vitest.test)("styled.button() accepts stack style props", function () {
30
+ (0, import_vitest.expectTypeOf)().toHaveProperty("padding"), (0, import_vitest.expectTypeOf)().toHaveProperty("backgroundColor"), (0, import_vitest.expectTypeOf)().toHaveProperty("borderRadius");
31
+ });
32
+ });
33
+ (0, import_vitest.describe)("styled.input() types", function () {
34
+ var StyledInput = import_styled.styled.input({
35
+ padding: "$2"
36
+ });
37
+ (0, import_vitest.test)("styled.input() accepts type prop", function () {
38
+ (0, import_vitest.expectTypeOf)().toHaveProperty("type");
39
+ }), (0, import_vitest.test)("styled.input() accepts placeholder prop", function () {
40
+ (0, import_vitest.expectTypeOf)().toHaveProperty("placeholder");
41
+ }), (0, import_vitest.test)("styled.input() accepts maxLength prop", function () {
42
+ (0, import_vitest.expectTypeOf)().toHaveProperty("maxLength");
43
+ }), (0, import_vitest.test)("styled.input() accepts value prop", function () {
44
+ (0, import_vitest.expectTypeOf)().toHaveProperty("value");
45
+ }), (0, import_vitest.test)("styled.input() accepts onChange prop", function () {
46
+ (0, import_vitest.expectTypeOf)().toHaveProperty("onChange");
47
+ });
48
+ });
49
+ (0, import_vitest.describe)("styled.form() types", function () {
50
+ var StyledForm = import_styled.styled.form({
51
+ gap: "$3"
52
+ });
53
+ (0, import_vitest.test)("styled.form() accepts action prop", function () {
54
+ (0, import_vitest.expectTypeOf)().toHaveProperty("action");
55
+ }), (0, import_vitest.test)("styled.form() accepts method prop", function () {
56
+ (0, import_vitest.expectTypeOf)().toHaveProperty("method");
57
+ }), (0, import_vitest.test)("styled.form() accepts onSubmit prop", function () {
58
+ (0, import_vitest.expectTypeOf)().toHaveProperty("onSubmit");
59
+ });
60
+ });
61
+ (0, import_vitest.describe)("styled.label() types", function () {
62
+ var StyledLabel = import_styled.styled.label({
63
+ fontSize: "$3"
64
+ });
65
+ (0, import_vitest.test)("styled.label() accepts htmlFor prop", function () {
66
+ (0, import_vitest.expectTypeOf)().toHaveProperty("htmlFor");
67
+ });
68
+ });
69
+ (0, import_vitest.describe)("styled.div() types", function () {
70
+ var StyledDiv = import_styled.styled.div({
71
+ padding: "$4"
72
+ });
73
+ (0, import_vitest.test)("styled.div() accepts stack style props", function () {
74
+ (0, import_vitest.expectTypeOf)().toHaveProperty("padding"), (0, import_vitest.expectTypeOf)().toHaveProperty("margin"), (0, import_vitest.expectTypeOf)().toHaveProperty("flex"), (0, import_vitest.expectTypeOf)().toHaveProperty("backgroundColor");
75
+ });
76
+ });
77
+ (0, import_vitest.describe)("styled.span() types", function () {
78
+ var StyledSpan = import_styled.styled.span({
79
+ color: "$color"
80
+ });
81
+ (0, import_vitest.test)("styled.span() accepts text style props", function () {
82
+ (0, import_vitest.expectTypeOf)().toHaveProperty("color"), (0, import_vitest.expectTypeOf)().toHaveProperty("fontSize"), (0, import_vitest.expectTypeOf)().toHaveProperty("fontWeight"), (0, import_vitest.expectTypeOf)().toHaveProperty("lineHeight");
83
+ });
84
+ });
85
+ (0, import_vitest.describe)("styled.element() with variants", function () {
86
+ var StyledAnchorWithVariants = import_styled.styled.a({
87
+ color: "$blue10",
88
+ variants: {
89
+ size: {
90
+ small: {
91
+ fontSize: "$2"
92
+ },
93
+ large: {
94
+ fontSize: "$6"
95
+ }
96
+ },
97
+ underline: {
98
+ true: {
99
+ textDecorationLine: "underline"
100
+ },
101
+ false: {
102
+ textDecorationLine: "none"
103
+ }
104
+ }
105
+ },
106
+ defaultVariants: {
107
+ underline: !0
108
+ }
109
+ });
110
+ (0, import_vitest.test)("styled.a() with variants accepts size variant", function () {
111
+ (0, import_vitest.expectTypeOf)().toHaveProperty("size");
112
+ }), (0, import_vitest.test)("styled.a() with variants accepts underline variant", function () {
113
+ (0, import_vitest.expectTypeOf)().toHaveProperty("underline");
114
+ }), (0, import_vitest.test)("styled.a() with variants still accepts href", function () {
115
+ (0, import_vitest.expectTypeOf)().toHaveProperty("href");
116
+ });
117
+ });
118
+ (0, import_vitest.describe)("styledHtml() function", function () {
119
+ var StyledAnchor = (0, import_styled.styledHtml)("a", {
120
+ color: "$blue10"
121
+ });
122
+ (0, import_vitest.test)('styledHtml("a") accepts href prop', function () {
123
+ (0, import_vitest.expectTypeOf)().toHaveProperty("href");
124
+ });
125
+ });
126
+ (0, import_vitest.describe)("semantic HTML elements", function () {
127
+ (0, import_vitest.test)("styled.nav() creates nav element component", function () {
128
+ var StyledNav = import_styled.styled.nav({
129
+ padding: "$2"
130
+ });
131
+ (0, import_vitest.expectTypeOf)().toHaveProperty("padding");
132
+ }), (0, import_vitest.test)("styled.main() creates main element component", function () {
133
+ var StyledMain = import_styled.styled.main({
134
+ flex: 1
135
+ });
136
+ (0, import_vitest.expectTypeOf)().toHaveProperty("flex");
137
+ }), (0, import_vitest.test)("styled.section() creates section element component", function () {
138
+ var StyledSection = import_styled.styled.section({
139
+ padding: "$3"
140
+ });
141
+ (0, import_vitest.expectTypeOf)().toHaveProperty("padding");
142
+ }), (0, import_vitest.test)("styled.article() creates article element component", function () {
143
+ var StyledArticle = import_styled.styled.article({
144
+ padding: "$3"
145
+ });
146
+ (0, import_vitest.expectTypeOf)().toHaveProperty("padding");
147
+ }), (0, import_vitest.test)("styled.header() creates header element component", function () {
148
+ var StyledHeader = import_styled.styled.header({
149
+ padding: "$2"
150
+ });
151
+ (0, import_vitest.expectTypeOf)().toHaveProperty("padding");
152
+ }), (0, import_vitest.test)("styled.footer() creates footer element component", function () {
153
+ var StyledFooter = import_styled.styled.footer({
154
+ padding: "$2"
155
+ });
156
+ (0, import_vitest.expectTypeOf)().toHaveProperty("padding");
157
+ });
158
+ });
159
+ //# sourceMappingURL=styledHtml.test-d.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["import_vitest","require","import_styled","describe","StyledAnchor","styled","a","color","test","expectTypeOf","toHaveProperty","toMatchTypeOf","StyledButton","button","padding","StyledInput","input","StyledForm","form","gap","StyledLabel","label","fontSize","StyledDiv","div","StyledSpan","span","StyledAnchorWithVariants","variants","size","small","large","underline","true","textDecorationLine","false","defaultVariants","styledHtml","StyledNav","nav","StyledMain","main","flex"],"sources":["../../src/styledHtml.test-d.ts"],"sourcesContent":[null],"mappings":"AAYA;;AACmC,IAOnCA,aAAA,GAAAC,OAAA,CAAS;EAAAC,aAAoB,GAAMD,OAAA;AACjC,IAAAD,aAAM,CAAAG,QAAe,oBAAS;EAAA,IAC5BC,YAAO,GAAAF,aAAA,CAAAG,MAAA,CAAAC,CAAA;IACRC,KAAA;EAID;EACE,IAAAP,aAAA,CAAAQ,IAAA,gCAA2C,cAC3C;IACD,IAAAR,aAED,CAAAS,YAAK,IAAAC,cAAA,YAAkC,EAAAV,aAAM,CAAAS,YAAA,IAAAE,aAAA;EAC3C,QAAAX,aAAA,CAAAQ,IAAA,kCAAmD;IACpD,IAAAR,aAED,CAAAS,YAAK,IAAAC,cAAA,SAA+B;EAClC,QAAAV,aAAA,CAAAQ,IAAA,+BAAgD;IACjD,IAAAR,aAED,CAAAS,YAAK,IAAAC,cAAA;EAEH,QAAAV,aAAA,CAAAQ,IAAA,uCACA;IAGD,IAAAR,aAAA,CAAAS,YAAA,IAAAC,cAAA,eAAAV,aAAA,CAAAS,YAAA,IAAAC,cAAA,kBAAAV,aAAA,CAAAS,YAAA,IAAAC,cAAA,oBAAAV,aAAA,CAAAS,YAAA,IAAAC,cAAA;EACF;AAAA;AAOC,IAAAV,aAAM,CAAAG,QAAe,yBAAc;EAAA,IACjCS,YAAS,GAAAV,aAAA,CAAAG,MAAA,CAAAQ,MAAA;IACVC,OAAA;EAID;EACE,IAAAd,aAAA,CAAAQ,IAAA,qCAAiD;IAClD,IAAAR,aAED,CAAAS,YAAK,IAAAC,cAAA;EACH,QAAAV,aAAA,CAAAQ,IAAA,yCAAqD;IACtD,IAA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eAAA;MACDJ,SAAA;IACF;EAAA,EAMD;EACE,IAAAhC,aAAM,CAAAQ,IAAA,iDAA+B;IACnC,IAAAR,aAAO,CAAAS,YAAA,IAAAC,cAAA;EACT,CAAC,OAAAV,aAAA,CAAAQ,IAAA;IAID,IAAAR,aAAA,CAAAS,YAAK,IAAAC,cAAA,YAAqC;EACxC,QAAAV,aAAA,CAAAQ,IAAA,+CAAiD;IAClD,IAAAR,aAAA,CAAAS,YAAA,IAAAC,cAAA;EACF;AAAA;AAOC,IAAAV,aAAA,CAAAG,QAAK;EACH,IAAAC,YAAM,IAAY,GAAAF,aAAA,CAAAmC,UAAa;IAE/B9B,KAAA;EACF,CAAC;EAGC,IAAAP,aAAM,CAAAQ,IAAa,qCAAuB;IAE1C,IAAAR,aAAA,CAAAS,YAAA,EAAwB,EAAEC,cAAA,CAAe,MAAM;EACjD,CAAC;AAGC;AAEA,IAAAV,aAAA,CAAAG,QAAA,0BAA6B,EAAe,YAAS;EACvD,CAAC,GAAAH,aAED,CAAAQ,IAAA,8CAAK;IACH,IAAA8B,SAAM,GAAApC,aAAgB,CAAAG,MAAA,CAAAkC,GAAA;MAEtBzB,OAAA;IACD;IAGC,IAAAd,aAAM,CAAAS,YAAe,IAAAC,cAAO,CAAO,SAAE;EAErC,QAAAV,aAAA,CAAAQ,IAAA,gDAAoD;IACrD,IAAAgC,UAED,GAAAtC,aAAK,CAAAG,MAAA,CAAAoC,IAAA;MACHC,IAAM;IAEN;IACD,IAAA1C,aAAA,CAAAS,YAAA,IAAAC,cAAA;EACF,QAAAV,aAAA,CAAAQ,IAAA","ignoreList":[]}
@@ -0,0 +1,68 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: !0
28
+ }) : target, mod)),
29
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
+ value: !0
31
+ }), mod);
32
+ var TamaguiRoot_exports = {};
33
+ __export(TamaguiRoot_exports, {
34
+ TamaguiRoot: () => TamaguiRoot
35
+ });
36
+ module.exports = __toCommonJS(TamaguiRoot_exports);
37
+ var import_react = __toESM(require("react"), 1),
38
+ import_config = require("../config.cjs"),
39
+ import_Theme = require("./Theme.cjs"),
40
+ import_jsx_runtime = require("react/jsx-runtime");
41
+ let defaultFontClass = "";
42
+ function TamaguiRoot({
43
+ children,
44
+ theme,
45
+ isRootRoot,
46
+ passThrough,
47
+ style
48
+ }) {
49
+ const [mounted, setMounted] = import_react.default.useState(!isRootRoot);
50
+ if (import_react.default.useEffect(() => {
51
+ mounted || setMounted(!0);
52
+ }, []), !defaultFontClass) {
53
+ const defaultFont = (0, import_config.getConfig)().defaultFont;
54
+ defaultFont && (defaultFontClass = `font_${defaultFont}`);
55
+ }
56
+ const contents = /* @__PURE__ */(0, import_jsx_runtime.jsx)("span", {
57
+ style,
58
+ className: `_dsp_contents ${mounted ? "" : "t_unmounted"} ${defaultFontClass}`,
59
+ children
60
+ });
61
+ return isRootRoot ? contents : /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Theme.Theme, {
62
+ passThrough,
63
+ contain: !0,
64
+ forceClassName: !0,
65
+ name: theme,
66
+ children: contents
67
+ });
68
+ }
@@ -0,0 +1,54 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
+ // If the importer is in node compatibility mode or this is not an ESM
17
+ // file that has been converted to a CommonJS file using a Babel-
18
+ // compatible transform (i.e. "__esModule" has not been set), then set
19
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
21
+ mod
22
+ )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
23
+ var TamaguiRoot_exports = {};
24
+ __export(TamaguiRoot_exports, {
25
+ TamaguiRoot: () => TamaguiRoot
26
+ });
27
+ module.exports = __toCommonJS(TamaguiRoot_exports);
28
+ var import_react = __toESM(require("react"), 1), import_config = require("../config"), import_Theme = require("./Theme"), import_jsx_runtime = require("react/jsx-runtime");
29
+ let defaultFontClass = "";
30
+ function TamaguiRoot({
31
+ children,
32
+ theme,
33
+ isRootRoot,
34
+ passThrough,
35
+ style
36
+ }) {
37
+ const [mounted, setMounted] = import_react.default.useState(!isRootRoot);
38
+ if (import_react.default.useEffect(() => {
39
+ mounted || setMounted(!0);
40
+ }, []), !defaultFontClass) {
41
+ const defaultFont = (0, import_config.getConfig)().defaultFont;
42
+ defaultFont && (defaultFontClass = `font_${defaultFont}`);
43
+ }
44
+ const contents = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
45
+ "span",
46
+ {
47
+ style,
48
+ className: `_dsp_contents ${mounted ? "" : "t_unmounted"} ${defaultFontClass}`,
49
+ children
50
+ }
51
+ );
52
+ return isRootRoot ? contents : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.Theme, { passThrough, contain: !0, forceClassName: !0, name: theme, children: contents });
53
+ }
54
+ //# sourceMappingURL=TamaguiRoot.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/views/TamaguiRoot.tsx"],
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB,8BAClB,gBAA0B,sBAE1B,eAAsB,oBAwClB;AAtCJ,IAAI,mBAAmB;AAOhB,SAAS,YAAY;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAMG;AACD,QAAM,CAAC,SAAS,UAAU,IAAI,aAAAA,QAAM,SAAS,CAAC,UAAU;AASxD,MAPA,aAAAA,QAAM,UAAU,MAAM;AACpB,IAAK,WACH,WAAW,EAAI;AAAA,EAEnB,GAAG,CAAC,CAAC,GAGD,CAAC,kBAAkB;AAErB,UAAM,kBADS,yBAAU,EACE;AAC3B,IAAI,gBACF,mBAAmB,QAAQ,WAAW;AAAA,EAE1C;AAEA,QAAM,WACJ;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MAEA,WAAW,iBAAiB,UAAU,KAAK,aAAa,IAAI,gBAAgB;AAAA,MAE3E;AAAA;AAAA,EACH;AAKF,SAAI,aACK,WAIP,4CAAC,sBAAM,aAA0B,SAAO,IAAC,gBAAc,IAAC,MAAM,OAC3D,oBACH;AAEJ;",
5
+ "names": ["React"]
6
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: !0
22
+ }), mod);
23
+ var TamaguiRoot_native_exports = {};
24
+ __export(TamaguiRoot_native_exports, {
25
+ TamaguiRoot: () => TamaguiRoot
26
+ });
27
+ module.exports = __toCommonJS(TamaguiRoot_native_exports);
28
+ function TamaguiRoot(props) {
29
+ return props.children;
30
+ }
31
+ //# sourceMappingURL=TamaguiRoot.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["TamaguiRoot_native_exports","__export","TamaguiRoot","module","exports","__toCommonJS","props","children"],"sources":["../../../src/views/TamaguiRoot.native.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,0BAAA;AAAAC,QAAA,CAAAD,0BAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,0BAAA;AAAO,SAASE,YAAYI,KAAA,EAAO;EAC/B,OAAOA,KAAA,CAAMC,QAAA;AACjB","ignoreList":[]}
@@ -0,0 +1,51 @@
1
+ import { expectTypeOf, describe, test } from "vitest";
2
+ describe("AnimationsConfig types", () => {
3
+ test("AnimationsConfig accepts single driver", () => {
4
+ expectTypeOf().toMatchTypeOf();
5
+ }), test("AnimationsConfig accepts multi-driver object", () => {
6
+ expectTypeOf().toMatchTypeOf();
7
+ }), test("AnimationsConfigObject requires default key", () => {
8
+ expectTypeOf().toMatchTypeOf(), expectTypeOf().toMatchTypeOf();
9
+ });
10
+ });
11
+ describe("CreateTamaguiConfig animation types", () => {
12
+ test("CreateTamaguiConfig.animations accepts single driver", () => {
13
+ const _driver = {};
14
+ }), test("CreateTamaguiConfig.animations accepts multi-driver object", () => {
15
+ const _multi = {};
16
+ });
17
+ });
18
+ describe("TransitionKeys inference", () => {
19
+ test("TransitionKeys type exists and is string-based", () => {
20
+ expectTypeOf().toMatchTypeOf();
21
+ });
22
+ });
23
+ describe("AnimationDriverKeys inference", () => {
24
+ test("AnimationDriverKeys is string or string union", () => {
25
+ expectTypeOf().toMatchTypeOf();
26
+ }), test("TypeOverride.animationDrivers exists in interface", () => {
27
+ expectTypeOf().toBeFunction();
28
+ }), test("AnimationDriverKeys always includes default", () => {
29
+ expectTypeOf().toMatchTypeOf();
30
+ });
31
+ });
32
+ describe("animatedBy prop", () => {
33
+ test("animatedBy exists on TamaguiComponentPropsBaseBase", () => {
34
+ expectTypeOf().toHaveProperty("animatedBy");
35
+ }), test("animatedBy accepts null", () => {
36
+ expectTypeOf().toMatchTypeOf();
37
+ }), test('animatedBy accepts "default"', () => {
38
+ expectTypeOf().toMatchTypeOf();
39
+ });
40
+ });
41
+ describe("Type regression scenarios", () => {
42
+ test("single driver config scenario", () => {
43
+ }), test("multiple drivers config scenario - CreateTamaguiConfig accepts it", () => {
44
+ const _config = {};
45
+ }), test("TypeOverride combines with inferred", () => {
46
+ expectTypeOf().toMatchTypeOf();
47
+ }), test("combined multiple drivers and override", () => {
48
+ expectTypeOf().toMatchTypeOf();
49
+ });
50
+ });
51
+ //# sourceMappingURL=animationDriverTypes.test-d.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/animationDriverTypes.test-d.ts"],
4
+ "mappings": "AAYA,SAAS,cAAc,UAAU,YAAY;AA0B7C,SAAS,0BAA0B,MAAM;AACvC,OAAK,0CAA0C,MAAM;AACnD,iBAA4B,EAAE,cAAgC;AAAA,EAChE,CAAC,GAED,KAAK,gDAAgD,MAAM;AAKzD,iBAA0B,EAAE,cAAgC;AAAA,EAC9D,CAAC,GAED,KAAK,+CAA+C,MAAM;AAKxD,iBAA0B,EAAE,cAAsC,GAOlE,aAA4B,EAAE,cAAsC;AAAA,EACtE,CAAC;AACH,CAAC;AAMD,SAAS,uCAAuC,MAAM;AACpD,OAAK,wDAAwD,MAAM;AAMjE,UAAM,UAAsB,CAAC;AAAA,EAC/B,CAAC,GAED,KAAK,8DAA8D,MAAM;AASvE,UAAM,SAAqB,CAAC;AAAA,EAC9B,CAAC;AACH,CAAC;AAMD,SAAS,4BAA4B,MAAM;AACzC,OAAK,kDAAkD,MAAM;AAE3D,iBAA6B,EAAE,cAAsB;AAAA,EACvD,CAAC;AACH,CAAC;AAMD,SAAS,iCAAiC,MAAM;AAC9C,OAAK,iDAAiD,MAAM;AAE1D,iBAAwB,EAAE,cAAmC;AAAA,EAC/D,CAAC,GAED,KAAK,qDAAqD,MAAM;AAG9D,iBAA4B,EAAE,aAAa;AAAA,EAC7C,CAAC,GAYD,KAAK,+CAA+C,MAAM;AAExD,iBAAwB,EAAE,cAAmC;AAAA,EAC/D,CAAC;AACH,CAAC;AAMD,SAAS,mBAAmB,MAAM;AAChC,OAAK,sDAAsD,MAAM;AAE/D,iBAAoB,EAAE,eAAe,YAAY;AAAA,EACnD,CAAC,GAED,KAAK,2BAA2B,MAAM;AAGpC,iBAAmB,EAAE,cAA0B;AAAA,EACjD,CAAC,GAED,KAAK,gCAAgC,MAAM;AAGzC,iBAAwB,EAAE,cAA0B;AAAA,EACtD,CAAC;AACH,CAAC;AAMD,SAAS,6BAA6B,MAAM;AAO1C,OAAK,iCAAiC,MAAM;AAAA,EAG5C,CAAC,GAWD,KAAK,qEAAqE,MAAM;AAS9E,UAAM,UAAsB,CAAC;AAAA,EAC/B,CAAC,GAYD,KAAK,uCAAuC,MAAM;AAGhD,iBAAwB,EAAE,cAAmC;AAAA,EAC/D,CAAC,GAUD,KAAK,0CAA0C,MAAM;AAGnD,iBAAwB,EAAE,cAAmC;AAAA,EAC/D,CAAC;AACH,CAAC;",
5
+ "names": []
6
+ }
@@ -0,0 +1,50 @@
1
+ import { expectTypeOf, describe, test } from "vitest";
2
+ describe("AnimationsConfig types", () => {
3
+ test("AnimationsConfig accepts single driver", () => {
4
+ expectTypeOf().toMatchTypeOf();
5
+ }), test("AnimationsConfig accepts multi-driver object", () => {
6
+ expectTypeOf().toMatchTypeOf();
7
+ }), test("AnimationsConfigObject requires default key", () => {
8
+ expectTypeOf().toMatchTypeOf(), expectTypeOf().toMatchTypeOf();
9
+ });
10
+ });
11
+ describe("CreateTamaguiConfig animation types", () => {
12
+ test("CreateTamaguiConfig.animations accepts single driver", () => {
13
+ const _driver = {};
14
+ }), test("CreateTamaguiConfig.animations accepts multi-driver object", () => {
15
+ const _multi = {};
16
+ });
17
+ });
18
+ describe("TransitionKeys inference", () => {
19
+ test("TransitionKeys type exists and is string-based", () => {
20
+ expectTypeOf().toMatchTypeOf();
21
+ });
22
+ });
23
+ describe("AnimationDriverKeys inference", () => {
24
+ test("AnimationDriverKeys is string or string union", () => {
25
+ expectTypeOf().toMatchTypeOf();
26
+ }), test("TypeOverride.animationDrivers exists in interface", () => {
27
+ expectTypeOf().toBeFunction();
28
+ }), test("AnimationDriverKeys always includes default", () => {
29
+ expectTypeOf().toMatchTypeOf();
30
+ });
31
+ });
32
+ describe("animatedBy prop", () => {
33
+ test("animatedBy exists on TamaguiComponentPropsBaseBase", () => {
34
+ expectTypeOf().toHaveProperty("animatedBy");
35
+ }), test("animatedBy accepts null", () => {
36
+ expectTypeOf().toMatchTypeOf();
37
+ }), test('animatedBy accepts "default"', () => {
38
+ expectTypeOf().toMatchTypeOf();
39
+ });
40
+ });
41
+ describe("Type regression scenarios", () => {
42
+ test("single driver config scenario", () => {}), test("multiple drivers config scenario - CreateTamaguiConfig accepts it", () => {
43
+ const _config = {};
44
+ }), test("TypeOverride combines with inferred", () => {
45
+ expectTypeOf().toMatchTypeOf();
46
+ }), test("combined multiple drivers and override", () => {
47
+ expectTypeOf().toMatchTypeOf();
48
+ });
49
+ });
50
+ //# sourceMappingURL=animationDriverTypes.test-d.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["expectTypeOf","describe","test","toMatchTypeOf","_driver","_multi","toBeFunction","toHaveProperty","_config"],"sources":["../../src/animationDriverTypes.test-d.ts"],"sourcesContent":[null],"mappings":"AAYA,SAASA,YAAA,EAAcC,QAAA,EAAUC,IAAA,QAAY;AA0B7CD,QAAA,CAAS,0BAA0B,MAAM;EACvCC,IAAA,CAAK,0CAA0C,MAAM;IACnDF,YAAA,CAA4B,EAAEG,aAAA,CAAgC;EAChE,CAAC,GAEDD,IAAA,CAAK,gDAAgD,MAAM;IAKzDF,YAAA,CAA0B,EAAEG,aAAA,CAAgC;EAC9D,CAAC,GAEDD,IAAA,CAAK,+CAA+C,MAAM;IAKxDF,YAAA,CAA0B,EAAEG,aAAA,CAAsC,GAOlEH,YAAA,CAA4B,EAAEG,aAAA,CAAsC;EACtE,CAAC;AACH,CAAC;AAMDF,QAAA,CAAS,uCAAuC,MAAM;EACpDC,IAAA,CAAK,wDAAwD,MAAM;IAMjE,MAAME,OAAA,GAAsB,CAAC;EAC/B,CAAC,GAEDF,IAAA,CAAK,8DAA8D,MAAM;IASvE,MAAMG,MAAA,GAAqB,CAAC;EAC9B,CAAC;AACH,CAAC;AAMDJ,QAAA,CAAS,4BAA4B,MAAM;EACzCC,IAAA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