react-native-css 2.1.1 → 3.0.0-nightly.4723140

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 (660) hide show
  1. package/{LICENSE.md → LICENSE} +6 -8
  2. package/README.md +10 -86
  3. package/dist/commonjs/babel/helpers.js +129 -0
  4. package/dist/commonjs/babel/helpers.js.map +1 -0
  5. package/dist/commonjs/babel/import-plugin.js +97 -0
  6. package/dist/commonjs/babel/import-plugin.js.map +1 -0
  7. package/dist/commonjs/babel/index.js +9 -0
  8. package/dist/commonjs/babel/index.js.map +1 -0
  9. package/dist/commonjs/compiler/add.js +175 -0
  10. package/dist/commonjs/compiler/add.js.map +1 -0
  11. package/dist/commonjs/compiler/compiler.js +466 -0
  12. package/dist/commonjs/compiler/compiler.js.map +1 -0
  13. package/dist/commonjs/compiler/compiler.types.js +4 -0
  14. package/dist/commonjs/compiler/compiler.types.js.map +1 -0
  15. package/dist/commonjs/compiler/container-query.js +63 -0
  16. package/dist/commonjs/compiler/container-query.js.map +1 -0
  17. package/dist/commonjs/compiler/declarations.js +1843 -0
  18. package/dist/commonjs/compiler/declarations.js.map +1 -0
  19. package/dist/commonjs/compiler/functions-web.js +44 -0
  20. package/dist/commonjs/compiler/functions-web.js.map +1 -0
  21. package/dist/commonjs/compiler/functions.js +59 -0
  22. package/dist/commonjs/compiler/functions.js.map +1 -0
  23. package/dist/commonjs/compiler/index.js +17 -0
  24. package/dist/commonjs/compiler/index.js.map +1 -0
  25. package/dist/commonjs/compiler/keyframes.js +69 -0
  26. package/dist/commonjs/compiler/keyframes.js.map +1 -0
  27. package/dist/commonjs/compiler/media-query.js +172 -0
  28. package/dist/commonjs/compiler/media-query.js.map +1 -0
  29. package/dist/commonjs/compiler/selectors.js +330 -0
  30. package/dist/commonjs/compiler/selectors.js.map +1 -0
  31. package/dist/commonjs/components/ActivityIndicator.js +20 -0
  32. package/dist/commonjs/components/ActivityIndicator.js.map +1 -0
  33. package/dist/commonjs/components/SafeAreaProvider/index.js +41 -0
  34. package/dist/commonjs/components/SafeAreaProvider/index.js.map +1 -0
  35. package/dist/commonjs/components/SafeAreaProvider/index.web.js +13 -0
  36. package/dist/commonjs/components/SafeAreaProvider/index.web.js.map +1 -0
  37. package/dist/commonjs/components/Text.js +15 -0
  38. package/dist/commonjs/components/Text.js.map +1 -0
  39. package/dist/commonjs/components/TextInput.js +20 -0
  40. package/dist/commonjs/components/TextInput.js.map +1 -0
  41. package/dist/commonjs/components/View.js +15 -0
  42. package/dist/commonjs/components/View.js.map +1 -0
  43. package/dist/commonjs/components/index.js +36 -0
  44. package/dist/commonjs/components/index.js.map +1 -0
  45. package/dist/commonjs/doctor/index.js +6 -0
  46. package/dist/commonjs/doctor/index.js.map +1 -0
  47. package/dist/commonjs/index.js +17 -0
  48. package/dist/commonjs/index.js.map +1 -0
  49. package/dist/commonjs/jest/expect.d.js +2 -0
  50. package/dist/commonjs/jest/expect.d.js.map +1 -0
  51. package/dist/commonjs/jest/index.js +49 -0
  52. package/dist/commonjs/jest/index.js.map +1 -0
  53. package/dist/commonjs/jest/setup.js +3 -0
  54. package/dist/commonjs/jest/setup.js.map +1 -0
  55. package/dist/commonjs/jest/setupAfterEnv.js +15 -0
  56. package/dist/commonjs/jest/setupAfterEnv.js.map +1 -0
  57. package/dist/commonjs/metro/index.js +106 -0
  58. package/dist/commonjs/metro/index.js.map +1 -0
  59. package/dist/commonjs/metro/injection-code.js +12 -0
  60. package/dist/commonjs/metro/injection-code.js.map +1 -0
  61. package/dist/commonjs/metro/metro-transformer.js +21 -0
  62. package/dist/commonjs/metro/metro-transformer.js.map +1 -0
  63. package/dist/commonjs/metro/picocolors.js +71 -0
  64. package/dist/commonjs/metro/picocolors.js.map +1 -0
  65. package/dist/commonjs/metro/stringify.js +59 -0
  66. package/dist/commonjs/metro/stringify.js.map +1 -0
  67. package/dist/commonjs/metro/typescript.js +47 -0
  68. package/dist/commonjs/metro/typescript.js.map +1 -0
  69. package/dist/commonjs/package.json +1 -0
  70. package/dist/commonjs/runtime/index.js +17 -0
  71. package/dist/commonjs/runtime/index.js.map +1 -0
  72. package/dist/commonjs/runtime/native/api.js +90 -0
  73. package/dist/commonjs/runtime/native/api.js.map +1 -0
  74. package/dist/commonjs/runtime/native/conditions/container-query.js +116 -0
  75. package/dist/commonjs/runtime/native/conditions/container-query.js.map +1 -0
  76. package/dist/commonjs/runtime/native/conditions/guards.js +27 -0
  77. package/dist/commonjs/runtime/native/conditions/guards.js.map +1 -0
  78. package/dist/commonjs/runtime/native/conditions/index.js +74 -0
  79. package/dist/commonjs/runtime/native/conditions/index.js.map +1 -0
  80. package/dist/commonjs/runtime/native/conditions/media-query.js +91 -0
  81. package/dist/commonjs/runtime/native/conditions/media-query.js.map +1 -0
  82. package/dist/commonjs/runtime/native/index.js +18 -0
  83. package/dist/commonjs/runtime/native/index.js.map +1 -0
  84. package/dist/commonjs/runtime/native/injection.js +80 -0
  85. package/dist/commonjs/runtime/native/injection.js.map +1 -0
  86. package/dist/commonjs/runtime/native/metro.js +6 -0
  87. package/dist/commonjs/runtime/native/metro.js.map +1 -0
  88. package/dist/commonjs/runtime/native/react/interaction.js +63 -0
  89. package/dist/commonjs/runtime/native/react/interaction.js.map +1 -0
  90. package/dist/commonjs/runtime/native/react/rules.js +257 -0
  91. package/dist/commonjs/runtime/native/react/rules.js.map +1 -0
  92. package/dist/commonjs/runtime/native/react/useNativeCss.js +158 -0
  93. package/dist/commonjs/runtime/native/react/useNativeCss.js.map +1 -0
  94. package/dist/commonjs/runtime/native/react/usePassthrough.js +50 -0
  95. package/dist/commonjs/runtime/native/react/usePassthrough.js.map +1 -0
  96. package/dist/commonjs/runtime/native/reactivity.js +193 -0
  97. package/dist/commonjs/runtime/native/reactivity.js.map +1 -0
  98. package/dist/commonjs/runtime/native/styles/animation.js +90 -0
  99. package/dist/commonjs/runtime/native/styles/animation.js.map +1 -0
  100. package/dist/commonjs/runtime/native/styles/calc.js +113 -0
  101. package/dist/commonjs/runtime/native/styles/calc.js.map +1 -0
  102. package/dist/commonjs/runtime/native/styles/constants.js +8 -0
  103. package/dist/commonjs/runtime/native/styles/constants.js.map +1 -0
  104. package/dist/commonjs/runtime/native/styles/defaults.js +69 -0
  105. package/dist/commonjs/runtime/native/styles/defaults.js.map +1 -0
  106. package/dist/commonjs/runtime/native/styles/index.js +223 -0
  107. package/dist/commonjs/runtime/native/styles/index.js.map +1 -0
  108. package/dist/commonjs/runtime/native/styles/resolve.js +96 -0
  109. package/dist/commonjs/runtime/native/styles/resolve.js.map +1 -0
  110. package/dist/commonjs/runtime/native/styles/shorthand.js +62 -0
  111. package/dist/commonjs/runtime/native/styles/shorthand.js.map +1 -0
  112. package/dist/commonjs/runtime/native/styles/text-shadow.js +13 -0
  113. package/dist/commonjs/runtime/native/styles/text-shadow.js.map +1 -0
  114. package/dist/commonjs/runtime/native/styles/transform.js +17 -0
  115. package/dist/commonjs/runtime/native/styles/transform.js.map +1 -0
  116. package/dist/commonjs/runtime/native/styles/units.js +46 -0
  117. package/dist/commonjs/runtime/native/styles/units.js.map +1 -0
  118. package/dist/commonjs/runtime/native/styles/variables.js +57 -0
  119. package/dist/commonjs/runtime/native/styles/variables.js.map +1 -0
  120. package/dist/commonjs/runtime/runtime.js +17 -0
  121. package/dist/commonjs/runtime/runtime.js.map +1 -0
  122. package/dist/commonjs/runtime/runtime.native.js +17 -0
  123. package/dist/commonjs/runtime/runtime.native.js.map +1 -0
  124. package/dist/commonjs/runtime/runtime.types.js +6 -0
  125. package/dist/commonjs/runtime/runtime.types.js.map +1 -0
  126. package/dist/commonjs/runtime/utils/components.js +18 -0
  127. package/dist/commonjs/runtime/utils/components.js.map +1 -0
  128. package/dist/commonjs/runtime/utils/dot-notation.types.js +2 -0
  129. package/dist/commonjs/runtime/utils/dot-notation.types.js.map +1 -0
  130. package/dist/commonjs/runtime/utils/index.js +61 -0
  131. package/dist/commonjs/runtime/utils/index.js.map +1 -0
  132. package/dist/commonjs/runtime/utils/objects.js +71 -0
  133. package/dist/commonjs/runtime/utils/objects.js.map +1 -0
  134. package/dist/commonjs/runtime/utils/specificity.js +43 -0
  135. package/dist/commonjs/runtime/utils/specificity.js.map +1 -0
  136. package/dist/commonjs/runtime/utils/style-value.js +14 -0
  137. package/dist/commonjs/runtime/utils/style-value.js.map +1 -0
  138. package/dist/commonjs/runtime/utils/utils.types.js +6 -0
  139. package/dist/commonjs/runtime/utils/utils.types.js.map +1 -0
  140. package/dist/commonjs/runtime/web/api.js +68 -0
  141. package/dist/commonjs/runtime/web/api.js.map +1 -0
  142. package/dist/commonjs/runtime/web/assign-style.js +27 -0
  143. package/dist/commonjs/runtime/web/assign-style.js.map +1 -0
  144. package/dist/commonjs/runtime/web/index.js +17 -0
  145. package/dist/commonjs/runtime/web/index.js.map +1 -0
  146. package/dist/module/babel/helpers.js +120 -0
  147. package/dist/module/babel/helpers.js.map +1 -0
  148. package/dist/module/babel/import-plugin.js +93 -0
  149. package/dist/module/babel/import-plugin.js.map +1 -0
  150. package/dist/module/babel/index.js +9 -0
  151. package/dist/module/babel/index.js.map +1 -0
  152. package/dist/module/compiler/add.js +168 -0
  153. package/dist/module/compiler/add.js.map +1 -0
  154. package/dist/module/compiler/compiler.js +461 -0
  155. package/dist/module/compiler/compiler.js.map +1 -0
  156. package/dist/module/compiler/compiler.types.js +72 -0
  157. package/dist/module/compiler/compiler.types.js.map +1 -0
  158. package/dist/module/compiler/container-query.js +59 -0
  159. package/dist/module/compiler/container-query.js.map +1 -0
  160. package/dist/module/compiler/declarations.js +1834 -0
  161. package/dist/module/compiler/declarations.js.map +1 -0
  162. package/dist/module/compiler/functions-web.js +32 -0
  163. package/dist/module/compiler/functions-web.js.map +1 -0
  164. package/dist/module/compiler/functions.js +47 -0
  165. package/dist/module/compiler/functions.js.map +1 -0
  166. package/dist/module/compiler/index.js +9 -0
  167. package/dist/module/compiler/index.js.map +1 -0
  168. package/dist/module/compiler/keyframes.js +63 -0
  169. package/dist/module/compiler/keyframes.js.map +1 -0
  170. package/dist/module/compiler/media-query.js +166 -0
  171. package/dist/module/compiler/media-query.js.map +1 -0
  172. package/dist/module/compiler/selectors.js +325 -0
  173. package/dist/module/compiler/selectors.js.map +1 -0
  174. package/dist/module/components/ActivityIndicator.js +16 -0
  175. package/dist/module/components/ActivityIndicator.js.map +1 -0
  176. package/dist/module/components/SafeAreaProvider/index.js +36 -0
  177. package/dist/module/components/SafeAreaProvider/index.js.map +1 -0
  178. package/dist/module/components/SafeAreaProvider/index.web.js +4 -0
  179. package/dist/module/components/SafeAreaProvider/index.web.js.map +1 -0
  180. package/dist/module/components/Text.js +11 -0
  181. package/dist/module/components/Text.js.map +1 -0
  182. package/dist/module/components/TextInput.js +16 -0
  183. package/dist/module/components/TextInput.js.map +1 -0
  184. package/dist/module/components/View.js +11 -0
  185. package/dist/module/components/View.js.map +1 -0
  186. package/dist/module/components/index.js +6 -0
  187. package/dist/module/components/index.js.map +1 -0
  188. package/dist/module/doctor/index.js +4 -0
  189. package/dist/module/doctor/index.js.map +1 -0
  190. package/dist/module/index.js +4 -0
  191. package/dist/module/index.js.map +1 -0
  192. package/dist/module/jest/expect.d.js +2 -0
  193. package/dist/module/jest/expect.d.js.map +1 -0
  194. package/dist/module/jest/index.js +28 -0
  195. package/dist/module/jest/index.js.map +1 -0
  196. package/dist/module/jest/setup.js +3 -0
  197. package/dist/module/jest/setup.js.map +1 -0
  198. package/dist/module/jest/setupAfterEnv.js +15 -0
  199. package/dist/module/jest/setupAfterEnv.js.map +1 -0
  200. package/dist/module/metro/index.js +100 -0
  201. package/dist/module/metro/index.js.map +1 -0
  202. package/dist/module/metro/injection-code.js +8 -0
  203. package/dist/module/metro/injection-code.js.map +1 -0
  204. package/dist/module/metro/metro-transformer.js +17 -0
  205. package/dist/module/metro/metro-transformer.js.map +1 -0
  206. package/dist/module/metro/picocolors.js +67 -0
  207. package/dist/module/metro/picocolors.js.map +1 -0
  208. package/dist/module/metro/stringify.js +55 -0
  209. package/dist/module/metro/stringify.js.map +1 -0
  210. package/dist/module/metro/typescript.js +42 -0
  211. package/dist/module/metro/typescript.js.map +1 -0
  212. package/dist/module/package.json +1 -0
  213. package/dist/module/runtime/index.js +9 -0
  214. package/dist/module/runtime/index.js.map +1 -0
  215. package/dist/module/runtime/native/api.js +75 -0
  216. package/dist/module/runtime/native/api.js.map +1 -0
  217. package/dist/module/runtime/native/conditions/container-query.js +110 -0
  218. package/dist/module/runtime/native/conditions/container-query.js.map +1 -0
  219. package/dist/module/runtime/native/conditions/guards.js +23 -0
  220. package/dist/module/runtime/native/conditions/guards.js.map +1 -0
  221. package/dist/module/runtime/native/conditions/index.js +70 -0
  222. package/dist/module/runtime/native/conditions/index.js.map +1 -0
  223. package/dist/module/runtime/native/conditions/media-query.js +86 -0
  224. package/dist/module/runtime/native/conditions/media-query.js.map +1 -0
  225. package/dist/module/runtime/native/index.js +6 -0
  226. package/dist/module/runtime/native/index.js.map +1 -0
  227. package/dist/module/runtime/native/injection.js +75 -0
  228. package/dist/module/runtime/native/injection.js.map +1 -0
  229. package/dist/module/runtime/native/metro.js +5 -0
  230. package/dist/module/runtime/native/metro.js.map +1 -0
  231. package/dist/module/runtime/native/react/interaction.js +59 -0
  232. package/dist/module/runtime/native/react/interaction.js.map +1 -0
  233. package/dist/module/runtime/native/react/rules.js +251 -0
  234. package/dist/module/runtime/native/react/rules.js.map +1 -0
  235. package/dist/module/runtime/native/react/useNativeCss.js +152 -0
  236. package/dist/module/runtime/native/react/useNativeCss.js.map +1 -0
  237. package/dist/module/runtime/native/react/usePassthrough.js +45 -0
  238. package/dist/module/runtime/native/react/usePassthrough.js.map +1 -0
  239. package/dist/module/runtime/native/reactivity.js +181 -0
  240. package/dist/module/runtime/native/reactivity.js.map +1 -0
  241. package/dist/module/runtime/native/styles/animation.js +85 -0
  242. package/dist/module/runtime/native/styles/animation.js.map +1 -0
  243. package/dist/module/runtime/native/styles/calc.js +108 -0
  244. package/dist/module/runtime/native/styles/calc.js.map +1 -0
  245. package/dist/module/runtime/native/styles/constants.js +4 -0
  246. package/dist/module/runtime/native/styles/constants.js.map +1 -0
  247. package/dist/module/runtime/native/styles/defaults.js +65 -0
  248. package/dist/module/runtime/native/styles/defaults.js.map +1 -0
  249. package/dist/module/runtime/native/styles/index.js +218 -0
  250. package/dist/module/runtime/native/styles/index.js.map +1 -0
  251. package/dist/module/runtime/native/styles/resolve.js +92 -0
  252. package/dist/module/runtime/native/styles/resolve.js.map +1 -0
  253. package/dist/module/runtime/native/styles/shorthand.js +57 -0
  254. package/dist/module/runtime/native/styles/shorthand.js.map +1 -0
  255. package/dist/module/runtime/native/styles/text-shadow.js +9 -0
  256. package/dist/module/runtime/native/styles/text-shadow.js.map +1 -0
  257. package/dist/module/runtime/native/styles/transform.js +12 -0
  258. package/dist/module/runtime/native/styles/transform.js.map +1 -0
  259. package/dist/module/runtime/native/styles/units.js +37 -0
  260. package/dist/module/runtime/native/styles/units.js.map +1 -0
  261. package/dist/module/runtime/native/styles/variables.js +53 -0
  262. package/dist/module/runtime/native/styles/variables.js.map +1 -0
  263. package/dist/module/runtime/runtime.js +4 -0
  264. package/dist/module/runtime/runtime.js.map +1 -0
  265. package/dist/module/runtime/runtime.native.js +4 -0
  266. package/dist/module/runtime/runtime.native.js.map +1 -0
  267. package/dist/module/runtime/runtime.types.js +4 -0
  268. package/dist/module/runtime/runtime.types.js.map +1 -0
  269. package/dist/module/runtime/utils/components.js +14 -0
  270. package/dist/module/runtime/utils/components.js.map +1 -0
  271. package/dist/module/runtime/utils/dot-notation.types.js +2 -0
  272. package/dist/module/runtime/utils/dot-notation.types.js.map +1 -0
  273. package/dist/module/runtime/utils/index.js +8 -0
  274. package/dist/module/runtime/utils/index.js.map +1 -0
  275. package/dist/module/runtime/utils/objects.js +64 -0
  276. package/dist/module/runtime/utils/objects.js.map +1 -0
  277. package/dist/module/runtime/utils/specificity.js +38 -0
  278. package/dist/module/runtime/utils/specificity.js.map +1 -0
  279. package/dist/module/runtime/utils/style-value.js +10 -0
  280. package/dist/module/runtime/utils/style-value.js.map +1 -0
  281. package/dist/module/runtime/utils/utils.types.js +4 -0
  282. package/dist/module/runtime/utils/utils.types.js.map +1 -0
  283. package/dist/module/runtime/web/api.js +59 -0
  284. package/dist/module/runtime/web/api.js.map +1 -0
  285. package/dist/module/runtime/web/assign-style.js +23 -0
  286. package/dist/module/runtime/web/assign-style.js.map +1 -0
  287. package/dist/module/runtime/web/index.js +4 -0
  288. package/dist/module/runtime/web/index.js.map +1 -0
  289. package/dist/typescript/commonjs/example/src/App.d.ts +3 -0
  290. package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -0
  291. package/dist/typescript/commonjs/package.json +1 -0
  292. package/dist/typescript/commonjs/src/babel/helpers.d.ts +18 -0
  293. package/dist/typescript/commonjs/src/babel/helpers.d.ts.map +1 -0
  294. package/dist/typescript/commonjs/src/babel/import-plugin.d.ts +6 -0
  295. package/dist/typescript/commonjs/src/babel/import-plugin.d.ts.map +1 -0
  296. package/dist/typescript/commonjs/src/babel/index.d.ts +1 -0
  297. package/dist/typescript/commonjs/src/babel/index.d.ts.map +1 -0
  298. package/dist/typescript/commonjs/src/compiler/add.d.ts +10 -0
  299. package/dist/typescript/commonjs/src/compiler/add.d.ts.map +1 -0
  300. package/dist/typescript/commonjs/src/compiler/compiler.d.ts +10 -0
  301. package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -0
  302. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +279 -0
  303. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -0
  304. package/dist/typescript/commonjs/src/compiler/container-query.d.ts +5 -0
  305. package/dist/typescript/commonjs/src/compiler/container-query.d.ts.map +1 -0
  306. package/dist/typescript/commonjs/src/compiler/declarations.d.ts +28 -0
  307. package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -0
  308. package/dist/typescript/commonjs/src/compiler/functions-web.d.ts +11 -0
  309. package/dist/typescript/commonjs/src/compiler/functions-web.d.ts.map +1 -0
  310. package/dist/typescript/commonjs/src/compiler/functions.d.ts +11 -0
  311. package/dist/typescript/commonjs/src/compiler/functions.d.ts.map +1 -0
  312. package/dist/typescript/commonjs/src/compiler/index.d.ts +7 -0
  313. package/dist/typescript/commonjs/src/compiler/index.d.ts.map +1 -0
  314. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts +6 -0
  315. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts.map +1 -0
  316. package/dist/typescript/commonjs/src/compiler/media-query.d.ts +7 -0
  317. package/dist/typescript/commonjs/src/compiler/media-query.d.ts.map +1 -0
  318. package/dist/typescript/commonjs/src/compiler/selectors.d.ts +18 -0
  319. package/dist/typescript/commonjs/src/compiler/selectors.d.ts.map +1 -0
  320. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +3 -0
  321. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -0
  322. package/dist/typescript/commonjs/src/components/SafeAreaProvider/index.d.ts +4 -0
  323. package/dist/typescript/commonjs/src/components/SafeAreaProvider/index.d.ts.map +1 -0
  324. package/dist/typescript/commonjs/src/components/SafeAreaProvider/index.web.d.ts +2 -0
  325. package/dist/typescript/commonjs/src/components/SafeAreaProvider/index.web.d.ts.map +1 -0
  326. package/dist/typescript/commonjs/src/components/Text.d.ts +8 -0
  327. package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -0
  328. package/dist/typescript/commonjs/src/components/TextInput.d.ts +13 -0
  329. package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -0
  330. package/dist/typescript/commonjs/src/components/View.d.ts +8 -0
  331. package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -0
  332. package/dist/typescript/commonjs/src/components/index.d.ts +4 -0
  333. package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -0
  334. package/dist/typescript/commonjs/src/doctor/index.d.ts +2 -0
  335. package/dist/typescript/commonjs/src/doctor/index.d.ts.map +1 -0
  336. package/dist/typescript/commonjs/src/index.d.ts +2 -0
  337. package/dist/typescript/commonjs/src/index.d.ts.map +1 -0
  338. package/dist/typescript/commonjs/src/jest/index.d.ts +14 -0
  339. package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -0
  340. package/dist/typescript/commonjs/src/jest/setup.d.ts +1 -0
  341. package/dist/typescript/commonjs/src/jest/setup.d.ts.map +1 -0
  342. package/dist/typescript/commonjs/src/jest/setupAfterEnv.d.ts +1 -0
  343. package/dist/typescript/commonjs/src/jest/setupAfterEnv.d.ts.map +1 -0
  344. package/dist/typescript/commonjs/src/metro/index.d.ts +10 -0
  345. package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -0
  346. package/dist/typescript/commonjs/src/metro/injection-code.d.ts +2 -0
  347. package/dist/typescript/commonjs/src/metro/injection-code.d.ts.map +1 -0
  348. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts +3 -0
  349. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -0
  350. package/dist/typescript/commonjs/src/metro/picocolors.d.ts +27 -0
  351. package/dist/typescript/commonjs/src/metro/picocolors.d.ts.map +1 -0
  352. package/dist/typescript/commonjs/src/metro/stringify.d.ts +7 -0
  353. package/dist/typescript/commonjs/src/metro/stringify.d.ts.map +1 -0
  354. package/dist/typescript/commonjs/src/metro/typescript.d.ts +2 -0
  355. package/dist/typescript/commonjs/src/metro/typescript.d.ts.map +1 -0
  356. package/dist/typescript/commonjs/src/runtime/index.d.ts +7 -0
  357. package/dist/typescript/commonjs/src/runtime/index.d.ts.map +1 -0
  358. package/dist/typescript/commonjs/src/runtime/native/api.d.ts +17 -0
  359. package/dist/typescript/commonjs/src/runtime/native/api.d.ts.map +1 -0
  360. package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts +7 -0
  361. package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts.map +1 -0
  362. package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts +5 -0
  363. package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts.map +1 -0
  364. package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts +6 -0
  365. package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts.map +1 -0
  366. package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts +4 -0
  367. package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts.map +1 -0
  368. package/dist/typescript/commonjs/src/runtime/native/index.d.ts +4 -0
  369. package/dist/typescript/commonjs/src/runtime/native/index.d.ts.map +1 -0
  370. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts +16 -0
  371. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts.map +1 -0
  372. package/dist/typescript/commonjs/src/runtime/native/metro.d.ts +2 -0
  373. package/dist/typescript/commonjs/src/runtime/native/metro.d.ts.map +1 -0
  374. package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts +6 -0
  375. package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts.map +1 -0
  376. package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts +6 -0
  377. package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts.map +1 -0
  378. package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts +37 -0
  379. package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts.map +1 -0
  380. package/dist/typescript/commonjs/src/runtime/native/react/usePassthrough.d.ts +4 -0
  381. package/dist/typescript/commonjs/src/runtime/native/react/usePassthrough.d.ts.map +1 -0
  382. package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts +63 -0
  383. package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts.map +1 -0
  384. package/dist/typescript/commonjs/src/runtime/native/styles/animation.d.ts +8 -0
  385. package/dist/typescript/commonjs/src/runtime/native/styles/animation.d.ts.map +1 -0
  386. package/dist/typescript/commonjs/src/runtime/native/styles/calc.d.ts +3 -0
  387. package/dist/typescript/commonjs/src/runtime/native/styles/calc.d.ts.map +1 -0
  388. package/dist/typescript/commonjs/src/runtime/native/styles/constants.d.ts +2 -0
  389. package/dist/typescript/commonjs/src/runtime/native/styles/constants.d.ts.map +1 -0
  390. package/dist/typescript/commonjs/src/runtime/native/styles/defaults.d.ts +3 -0
  391. package/dist/typescript/commonjs/src/runtime/native/styles/defaults.d.ts.map +1 -0
  392. package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts +20 -0
  393. package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts.map +1 -0
  394. package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts +14 -0
  395. package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts.map +1 -0
  396. package/dist/typescript/commonjs/src/runtime/native/styles/shorthand.d.ts +12 -0
  397. package/dist/typescript/commonjs/src/runtime/native/styles/shorthand.d.ts.map +1 -0
  398. package/dist/typescript/commonjs/src/runtime/native/styles/text-shadow.d.ts +2 -0
  399. package/dist/typescript/commonjs/src/runtime/native/styles/text-shadow.d.ts.map +1 -0
  400. package/dist/typescript/commonjs/src/runtime/native/styles/transform.d.ts +7 -0
  401. package/dist/typescript/commonjs/src/runtime/native/styles/transform.d.ts.map +1 -0
  402. package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts +6 -0
  403. package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts.map +1 -0
  404. package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts +5 -0
  405. package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts.map +1 -0
  406. package/dist/typescript/commonjs/src/runtime/runtime.d.ts +2 -0
  407. package/dist/typescript/commonjs/src/runtime/runtime.d.ts.map +1 -0
  408. package/dist/typescript/commonjs/src/runtime/runtime.native.d.ts +2 -0
  409. package/dist/typescript/commonjs/src/runtime/runtime.native.d.ts.map +1 -0
  410. package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts +62 -0
  411. package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts.map +1 -0
  412. package/dist/typescript/commonjs/src/runtime/utils/components.d.ts +2 -0
  413. package/dist/typescript/commonjs/src/runtime/utils/components.d.ts.map +1 -0
  414. package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts +23 -0
  415. package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts.map +1 -0
  416. package/dist/typescript/commonjs/src/runtime/utils/index.d.ts +6 -0
  417. package/dist/typescript/commonjs/src/runtime/utils/index.d.ts.map +1 -0
  418. package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts +4 -0
  419. package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts.map +1 -0
  420. package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts +12 -0
  421. package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts.map +1 -0
  422. package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts +3 -0
  423. package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts.map +1 -0
  424. package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts +5 -0
  425. package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts.map +1 -0
  426. package/dist/typescript/commonjs/src/runtime/web/api.d.ts +10 -0
  427. package/dist/typescript/commonjs/src/runtime/web/api.d.ts.map +1 -0
  428. package/dist/typescript/commonjs/src/runtime/web/assign-style.d.ts +2 -0
  429. package/dist/typescript/commonjs/src/runtime/web/assign-style.d.ts.map +1 -0
  430. package/dist/typescript/commonjs/src/runtime/web/index.d.ts +3 -0
  431. package/dist/typescript/commonjs/src/runtime/web/index.d.ts.map +1 -0
  432. package/dist/typescript/module/example/src/App.d.ts +3 -0
  433. package/dist/typescript/module/example/src/App.d.ts.map +1 -0
  434. package/dist/typescript/module/package.json +1 -0
  435. package/dist/typescript/module/src/babel/helpers.d.ts +18 -0
  436. package/dist/typescript/module/src/babel/helpers.d.ts.map +1 -0
  437. package/dist/typescript/module/src/babel/import-plugin.d.ts +6 -0
  438. package/dist/typescript/module/src/babel/import-plugin.d.ts.map +1 -0
  439. package/dist/typescript/module/src/babel/index.d.ts +1 -0
  440. package/dist/typescript/module/src/babel/index.d.ts.map +1 -0
  441. package/dist/typescript/module/src/compiler/add.d.ts +10 -0
  442. package/dist/typescript/module/src/compiler/add.d.ts.map +1 -0
  443. package/dist/typescript/module/src/compiler/compiler.d.ts +10 -0
  444. package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -0
  445. package/dist/typescript/module/src/compiler/compiler.types.d.ts +279 -0
  446. package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -0
  447. package/dist/typescript/module/src/compiler/container-query.d.ts +5 -0
  448. package/dist/typescript/module/src/compiler/container-query.d.ts.map +1 -0
  449. package/dist/typescript/module/src/compiler/declarations.d.ts +28 -0
  450. package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -0
  451. package/dist/typescript/module/src/compiler/functions-web.d.ts +11 -0
  452. package/dist/typescript/module/src/compiler/functions-web.d.ts.map +1 -0
  453. package/dist/typescript/module/src/compiler/functions.d.ts +11 -0
  454. package/dist/typescript/module/src/compiler/functions.d.ts.map +1 -0
  455. package/dist/typescript/module/src/compiler/index.d.ts +7 -0
  456. package/dist/typescript/module/src/compiler/index.d.ts.map +1 -0
  457. package/dist/typescript/module/src/compiler/keyframes.d.ts +6 -0
  458. package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -0
  459. package/dist/typescript/module/src/compiler/media-query.d.ts +7 -0
  460. package/dist/typescript/module/src/compiler/media-query.d.ts.map +1 -0
  461. package/dist/typescript/module/src/compiler/selectors.d.ts +18 -0
  462. package/dist/typescript/module/src/compiler/selectors.d.ts.map +1 -0
  463. package/dist/typescript/module/src/components/ActivityIndicator.d.ts +3 -0
  464. package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -0
  465. package/dist/typescript/module/src/components/SafeAreaProvider/index.d.ts +4 -0
  466. package/dist/typescript/module/src/components/SafeAreaProvider/index.d.ts.map +1 -0
  467. package/dist/typescript/module/src/components/SafeAreaProvider/index.web.d.ts +2 -0
  468. package/dist/typescript/module/src/components/SafeAreaProvider/index.web.d.ts.map +1 -0
  469. package/dist/typescript/module/src/components/Text.d.ts +8 -0
  470. package/dist/typescript/module/src/components/Text.d.ts.map +1 -0
  471. package/dist/typescript/module/src/components/TextInput.d.ts +13 -0
  472. package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -0
  473. package/dist/typescript/module/src/components/View.d.ts +8 -0
  474. package/dist/typescript/module/src/components/View.d.ts.map +1 -0
  475. package/dist/typescript/module/src/components/index.d.ts +4 -0
  476. package/dist/typescript/module/src/components/index.d.ts.map +1 -0
  477. package/dist/typescript/module/src/doctor/index.d.ts +2 -0
  478. package/dist/typescript/module/src/doctor/index.d.ts.map +1 -0
  479. package/dist/typescript/module/src/index.d.ts +2 -0
  480. package/dist/typescript/module/src/index.d.ts.map +1 -0
  481. package/dist/typescript/module/src/jest/index.d.ts +14 -0
  482. package/dist/typescript/module/src/jest/index.d.ts.map +1 -0
  483. package/dist/typescript/module/src/jest/setup.d.ts +1 -0
  484. package/dist/typescript/module/src/jest/setup.d.ts.map +1 -0
  485. package/dist/typescript/module/src/jest/setupAfterEnv.d.ts +1 -0
  486. package/dist/typescript/module/src/jest/setupAfterEnv.d.ts.map +1 -0
  487. package/dist/typescript/module/src/metro/index.d.ts +10 -0
  488. package/dist/typescript/module/src/metro/index.d.ts.map +1 -0
  489. package/dist/typescript/module/src/metro/injection-code.d.ts +2 -0
  490. package/dist/typescript/module/src/metro/injection-code.d.ts.map +1 -0
  491. package/dist/typescript/module/src/metro/metro-transformer.d.ts +3 -0
  492. package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -0
  493. package/dist/typescript/module/src/metro/picocolors.d.ts +27 -0
  494. package/dist/typescript/module/src/metro/picocolors.d.ts.map +1 -0
  495. package/dist/typescript/module/src/metro/stringify.d.ts +7 -0
  496. package/dist/typescript/module/src/metro/stringify.d.ts.map +1 -0
  497. package/dist/typescript/module/src/metro/typescript.d.ts +2 -0
  498. package/dist/typescript/module/src/metro/typescript.d.ts.map +1 -0
  499. package/dist/typescript/module/src/runtime/index.d.ts +7 -0
  500. package/dist/typescript/module/src/runtime/index.d.ts.map +1 -0
  501. package/dist/typescript/module/src/runtime/native/api.d.ts +17 -0
  502. package/dist/typescript/module/src/runtime/native/api.d.ts.map +1 -0
  503. package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts +7 -0
  504. package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts.map +1 -0
  505. package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts +5 -0
  506. package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts.map +1 -0
  507. package/dist/typescript/module/src/runtime/native/conditions/index.d.ts +6 -0
  508. package/dist/typescript/module/src/runtime/native/conditions/index.d.ts.map +1 -0
  509. package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts +4 -0
  510. package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts.map +1 -0
  511. package/dist/typescript/module/src/runtime/native/index.d.ts +4 -0
  512. package/dist/typescript/module/src/runtime/native/index.d.ts.map +1 -0
  513. package/dist/typescript/module/src/runtime/native/injection.d.ts +16 -0
  514. package/dist/typescript/module/src/runtime/native/injection.d.ts.map +1 -0
  515. package/dist/typescript/module/src/runtime/native/metro.d.ts +2 -0
  516. package/dist/typescript/module/src/runtime/native/metro.d.ts.map +1 -0
  517. package/dist/typescript/module/src/runtime/native/react/interaction.d.ts +6 -0
  518. package/dist/typescript/module/src/runtime/native/react/interaction.d.ts.map +1 -0
  519. package/dist/typescript/module/src/runtime/native/react/rules.d.ts +6 -0
  520. package/dist/typescript/module/src/runtime/native/react/rules.d.ts.map +1 -0
  521. package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts +37 -0
  522. package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts.map +1 -0
  523. package/dist/typescript/module/src/runtime/native/react/usePassthrough.d.ts +4 -0
  524. package/dist/typescript/module/src/runtime/native/react/usePassthrough.d.ts.map +1 -0
  525. package/dist/typescript/module/src/runtime/native/reactivity.d.ts +63 -0
  526. package/dist/typescript/module/src/runtime/native/reactivity.d.ts.map +1 -0
  527. package/dist/typescript/module/src/runtime/native/styles/animation.d.ts +8 -0
  528. package/dist/typescript/module/src/runtime/native/styles/animation.d.ts.map +1 -0
  529. package/dist/typescript/module/src/runtime/native/styles/calc.d.ts +3 -0
  530. package/dist/typescript/module/src/runtime/native/styles/calc.d.ts.map +1 -0
  531. package/dist/typescript/module/src/runtime/native/styles/constants.d.ts +2 -0
  532. package/dist/typescript/module/src/runtime/native/styles/constants.d.ts.map +1 -0
  533. package/dist/typescript/module/src/runtime/native/styles/defaults.d.ts +3 -0
  534. package/dist/typescript/module/src/runtime/native/styles/defaults.d.ts.map +1 -0
  535. package/dist/typescript/module/src/runtime/native/styles/index.d.ts +20 -0
  536. package/dist/typescript/module/src/runtime/native/styles/index.d.ts.map +1 -0
  537. package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts +14 -0
  538. package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts.map +1 -0
  539. package/dist/typescript/module/src/runtime/native/styles/shorthand.d.ts +12 -0
  540. package/dist/typescript/module/src/runtime/native/styles/shorthand.d.ts.map +1 -0
  541. package/dist/typescript/module/src/runtime/native/styles/text-shadow.d.ts +2 -0
  542. package/dist/typescript/module/src/runtime/native/styles/text-shadow.d.ts.map +1 -0
  543. package/dist/typescript/module/src/runtime/native/styles/transform.d.ts +7 -0
  544. package/dist/typescript/module/src/runtime/native/styles/transform.d.ts.map +1 -0
  545. package/dist/typescript/module/src/runtime/native/styles/units.d.ts +6 -0
  546. package/dist/typescript/module/src/runtime/native/styles/units.d.ts.map +1 -0
  547. package/dist/typescript/module/src/runtime/native/styles/variables.d.ts +5 -0
  548. package/dist/typescript/module/src/runtime/native/styles/variables.d.ts.map +1 -0
  549. package/dist/typescript/module/src/runtime/runtime.d.ts +2 -0
  550. package/dist/typescript/module/src/runtime/runtime.d.ts.map +1 -0
  551. package/dist/typescript/module/src/runtime/runtime.native.d.ts +2 -0
  552. package/dist/typescript/module/src/runtime/runtime.native.d.ts.map +1 -0
  553. package/dist/typescript/module/src/runtime/runtime.types.d.ts +62 -0
  554. package/dist/typescript/module/src/runtime/runtime.types.d.ts.map +1 -0
  555. package/dist/typescript/module/src/runtime/utils/components.d.ts +2 -0
  556. package/dist/typescript/module/src/runtime/utils/components.d.ts.map +1 -0
  557. package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts +23 -0
  558. package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts.map +1 -0
  559. package/dist/typescript/module/src/runtime/utils/index.d.ts +6 -0
  560. package/dist/typescript/module/src/runtime/utils/index.d.ts.map +1 -0
  561. package/dist/typescript/module/src/runtime/utils/objects.d.ts +4 -0
  562. package/dist/typescript/module/src/runtime/utils/objects.d.ts.map +1 -0
  563. package/dist/typescript/module/src/runtime/utils/specificity.d.ts +12 -0
  564. package/dist/typescript/module/src/runtime/utils/specificity.d.ts.map +1 -0
  565. package/dist/typescript/module/src/runtime/utils/style-value.d.ts +3 -0
  566. package/dist/typescript/module/src/runtime/utils/style-value.d.ts.map +1 -0
  567. package/dist/typescript/module/src/runtime/utils/utils.types.d.ts +5 -0
  568. package/dist/typescript/module/src/runtime/utils/utils.types.d.ts.map +1 -0
  569. package/dist/typescript/module/src/runtime/web/api.d.ts +10 -0
  570. package/dist/typescript/module/src/runtime/web/api.d.ts.map +1 -0
  571. package/dist/typescript/module/src/runtime/web/assign-style.d.ts +2 -0
  572. package/dist/typescript/module/src/runtime/web/assign-style.d.ts.map +1 -0
  573. package/dist/typescript/module/src/runtime/web/index.d.ts +3 -0
  574. package/dist/typescript/module/src/runtime/web/index.d.ts.map +1 -0
  575. package/package.json +191 -45
  576. package/src/babel/helpers.ts +182 -0
  577. package/src/babel/import-plugin.ts +183 -0
  578. package/src/babel/index.ts +9 -0
  579. package/src/compiler/add.ts +257 -0
  580. package/src/compiler/compiler.ts +627 -0
  581. package/src/compiler/compiler.types.ts +372 -0
  582. package/src/compiler/container-query.ts +97 -0
  583. package/src/compiler/declarations.ts +3146 -0
  584. package/src/compiler/functions-web.ts +44 -0
  585. package/src/compiler/functions.ts +64 -0
  586. package/src/compiler/index.ts +7 -0
  587. package/src/compiler/keyframes.ts +100 -0
  588. package/src/compiler/media-query.ts +250 -0
  589. package/src/compiler/selectors.ts +473 -0
  590. package/src/components/ActivityIndicator.tsx +19 -0
  591. package/src/components/SafeAreaProvider/index.tsx +50 -0
  592. package/src/components/SafeAreaProvider/index.web.tsx +1 -0
  593. package/src/components/Text.tsx +15 -0
  594. package/src/components/TextInput.tsx +20 -0
  595. package/src/components/View.tsx +15 -0
  596. package/src/components/index.tsx +4 -0
  597. package/src/doctor/index.ts +1 -0
  598. package/src/index.ts +1 -0
  599. package/src/jest/expect.d.ts +1 -0
  600. package/src/jest/index.ts +40 -0
  601. package/src/jest/setup.ts +1 -0
  602. package/src/jest/setupAfterEnv.ts +13 -0
  603. package/src/metro/index.ts +137 -0
  604. package/src/metro/injection-code.ts +8 -0
  605. package/src/metro/metro-transformer.ts +31 -0
  606. package/src/metro/picocolors.ts +77 -0
  607. package/src/metro/stringify.ts +59 -0
  608. package/src/metro/typescript.ts +73 -0
  609. package/src/runtime/index.ts +7 -0
  610. package/src/runtime/native/api.ts +106 -0
  611. package/src/runtime/native/conditions/container-query.ts +157 -0
  612. package/src/runtime/native/conditions/guards.ts +37 -0
  613. package/src/runtime/native/conditions/index.ts +106 -0
  614. package/src/runtime/native/conditions/media-query.ts +92 -0
  615. package/src/runtime/native/index.ts +5 -0
  616. package/src/runtime/native/injection.ts +101 -0
  617. package/src/runtime/native/metro.ts +2 -0
  618. package/src/runtime/native/react/interaction.ts +90 -0
  619. package/src/runtime/native/react/rules.ts +333 -0
  620. package/src/runtime/native/react/useNativeCss.ts +200 -0
  621. package/src/runtime/native/react/usePassthrough.ts +51 -0
  622. package/src/runtime/native/reactivity.ts +266 -0
  623. package/src/runtime/native/styles/animation.ts +142 -0
  624. package/src/runtime/native/styles/calc.ts +120 -0
  625. package/src/runtime/native/styles/constants.ts +1 -0
  626. package/src/runtime/native/styles/defaults.ts +78 -0
  627. package/src/runtime/native/styles/index.ts +333 -0
  628. package/src/runtime/native/styles/resolve.ts +131 -0
  629. package/src/runtime/native/styles/shorthand.ts +101 -0
  630. package/src/runtime/native/styles/text-shadow.ts +17 -0
  631. package/src/runtime/native/styles/transform.ts +15 -0
  632. package/src/runtime/native/styles/units.ts +48 -0
  633. package/src/runtime/native/styles/variables.ts +72 -0
  634. package/src/runtime/runtime.native.ts +1 -0
  635. package/src/runtime/runtime.ts +1 -0
  636. package/src/runtime/runtime.types.ts +155 -0
  637. package/src/runtime/utils/components.ts +15 -0
  638. package/src/runtime/utils/dot-notation.types.ts +118 -0
  639. package/src/runtime/utils/index.ts +5 -0
  640. package/src/runtime/utils/objects.ts +82 -0
  641. package/src/runtime/utils/specificity.ts +44 -0
  642. package/src/runtime/utils/style-value.ts +12 -0
  643. package/src/runtime/utils/utils.types.ts +19 -0
  644. package/src/runtime/web/api.ts +88 -0
  645. package/src/runtime/web/assign-style.ts +26 -0
  646. package/src/runtime/web/index.ts +2 -0
  647. package/.babelrc +0 -8
  648. package/.editorconfig +0 -17
  649. package/.eslintignore +0 -3
  650. package/.eslintrc +0 -39
  651. package/.npmignore +0 -7
  652. package/build/index.js +0 -294
  653. package/build/utils.js +0 -54
  654. package/circle.yml +0 -31
  655. package/jsconfig.json +0 -9
  656. package/login.sh +0 -11
  657. package/src/index.js +0 -184
  658. package/src/utils.js +0 -32
  659. package/test/rnc.test.js +0 -258
  660. package/yarn.lock +0 -3333
@@ -1,8 +1,6 @@
1
- The MIT License
2
- ===============
3
-
4
- Copyright (c) 2016 Sabeur Thabti
1
+ MIT License
5
2
 
3
+ Copyright (c) 2025 Mark Lawlor
6
4
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
5
  of this software and associated documentation files (the "Software"), to deal
8
6
  in the Software without restriction, including without limitation the rights
@@ -10,13 +8,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
8
  copies of the Software, and to permit persons to whom the Software is
11
9
  furnished to do so, subject to the following conditions:
12
10
 
13
- The above copyright notice and this permission notice shall be included in
14
- all copies or substantial portions of the Software.
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
15
13
 
16
14
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
15
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
16
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
17
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
18
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
- THE SOFTWARE.
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
package/README.md CHANGED
@@ -1,95 +1,19 @@
1
+ # react-native-css
1
2
 
2
- # Babel-plugin
3
- The awesome @danilosterrapid7 create a babel-plugin for React-native-css:
3
+ A CSS polyfill for React Native's native platforms
4
4
 
5
- https://www.npmjs.com/package/babel-plugin-react-native-sass-classname
5
+ ## Installation
6
6
 
7
+ ## Usage
7
8
 
8
- # react-native-css [![Circle CI](https://circleci.com/gh/sabeurthabti/react-native-css.svg?style=svg&circle-token=a140907997e6a37c6c5ec75f04e8150cef049ff6)](https://circleci.com/gh/sabeurthabti/react-native-css) [![NPM](https://img.shields.io/npm/dm/react-native-css.svg?style=flat-square)](https://www.npmjs.com/package/react-native-css)
9
+ ## Contributing
9
10
 
10
- > React-native-css turns valid CSS into the Facebook subset of CSS.
11
+ See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
11
12
 
12
- ## Version 2
13
- With version 2 come new changes:
13
+ ## License
14
14
 
15
- - Remove sass/scss support, this is a huge overhead for little benefit.
16
- - No CLI, we believe that this is an unnecessary context switch
17
- - NO I/O, no longer writing files, we do everything at runtime.
15
+ MIT
18
16
 
19
- > if you still want access to the the old implementation, please check `v1` branch.
17
+ ---
20
18
 
21
- ## Install
22
-
23
- ```bash
24
- yarn add react-native-css
25
- ```
26
-
27
- ```bash
28
- npm install react-native-css --save
29
- ```
30
-
31
-
32
- # Example
33
-
34
- Given the following CSS:
35
-
36
- ``` js
37
- import RNC from 'react-native-css';
38
-
39
- RNC`
40
- description {
41
- margin-bottom: 20px;
42
- font-size: 18px;
43
- text-align: center;
44
- color: #656656;
45
- }
46
-
47
- container {
48
- padding: 30px;
49
- margin-top: 65px;
50
- align-items: center;
51
- display: block;
52
- }
53
- `
54
-
55
- ```
56
-
57
- React-native-css will generate to the following:
58
-
59
- ``` javascript
60
- {"description":{"marginBottom":20,"fontSize":18,"textAlign":"center","color":"#656656"},"container":{"padding":30,"marginTop":65,"alignItems":"center"}}
61
- ```
62
- # Usage
63
- ```js
64
- import RNC from 'react-native-css';
65
-
66
- class SearchPage extends Component {
67
- render() {
68
- const { color, fontSize } = this.props;
69
- const styles = RNC`
70
- description {
71
- margin-bottom: 20px;
72
- font-size: ${fontSize}
73
- text-align: center;
74
- color: ${color}
75
- }
76
-
77
- container {
78
- padding: 30px;
79
- margin-top: 65px;
80
- align-items: center;
81
- display: block;
82
- }
83
- `;
84
-
85
- return (
86
- <View style={styles.container}>
87
- <Text style={styles.description}>
88
- Search!
89
- </Text>
90
- </View>
91
- );
92
- }
93
- }
94
-
95
- ```
19
+ Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
@@ -0,0 +1,129 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.allowedModules = void 0;
7
+ exports.isInsideModule = isInsideModule;
8
+ exports.isPackageImport = isPackageImport;
9
+ exports.shouldTransformImport = shouldTransformImport;
10
+ exports.shouldTransformRequire = shouldTransformRequire;
11
+ var _fs = require("fs");
12
+ var _path = require("path");
13
+ /* eslint-disable @typescript-eslint/no-non-null-assertion */
14
+
15
+ const allowedModules = exports.allowedModules = new Set(getFilesWithoutExtension((0, _path.join)(__dirname, "../components")));
16
+ function getFilesWithoutExtension(dirPath) {
17
+ // Read all files and directories inside dirPath synchronously
18
+ const entries = (0, _fs.readdirSync)(dirPath, {
19
+ withFileTypes: true
20
+ });
21
+
22
+ // Filter only files (ignore directories)
23
+ const files = entries.filter(entry => entry.isFile() && /\.[jt]sx$/.exec(entry.name) && !/index\.[jt]sx$/.exec(entry.name));
24
+
25
+ // For each file, get the filename without extension
26
+ const filesWithoutExt = files.map(file => (0, _path.parse)(file.name).name);
27
+ return filesWithoutExt;
28
+ }
29
+ function isInsideModule(filename, module) {
30
+ const normalized = (0, _path.normalize)(filename);
31
+
32
+ // Match exact module name
33
+ if (normalized === module) {
34
+ return true;
35
+ }
36
+
37
+ // Absolute posix paths
38
+ if (normalized.startsWith(`${module}/`)) {
39
+ return true;
40
+ }
41
+
42
+ // Check for our local development structure
43
+ if (normalized.includes(`${_path.sep}${module}${_path.sep}src${_path.sep}`)) {
44
+ // Ignore the test files
45
+ return !normalized.includes("__tests__");
46
+ }
47
+
48
+ // Match classic node_modules
49
+ if (normalized.includes(`${_path.sep}node_modules${_path.sep}${module}${_path.sep}`)) {
50
+ return true;
51
+ }
52
+
53
+ // Match Yarn PnP .zip-style paths (e.g., .zip/node_modules/${module}/)
54
+ if (normalized.includes(`${_path.sep}.zip${_path.sep}node_modules${_path.sep}${module}${_path.sep}`)) {
55
+ return true;
56
+ }
57
+
58
+ // Match Yarn .yarn/cache/${module}/*
59
+ if (normalized.includes(`${_path.sep}.yarn${_path.sep}cache${_path.sep}${module}${_path.sep}`)) {
60
+ return true;
61
+ }
62
+ return false;
63
+ }
64
+ function isPackageImport(path) {
65
+ const source = path.node.source?.value;
66
+ if (!source) {
67
+ return false;
68
+ }
69
+ return source === "react-native" || source === "react-native-web";
70
+ }
71
+ function shouldTransformImport(path, filename) {
72
+ let source = path.node.source?.value;
73
+ if (!source) {
74
+ return false;
75
+ }
76
+ if (source.startsWith(".")) {
77
+ source = (0, _path.resolve)((0, _path.dirname)(filename), source);
78
+ }
79
+
80
+ // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
81
+ return isReactNativeSource(source) || isReactNativeWebSource(source);
82
+ }
83
+ function isReactNativeSource(source) {
84
+ if (source === "react-native") return true;
85
+ const components = source.split(`react-native${_path.sep}Libraries${_path.sep}Components${_path.sep}`);
86
+ if (components.length > 1) {
87
+ const component = components[1]?.split(_path.sep)[0];
88
+ return component && allowedModules.has(component);
89
+ }
90
+ return false;
91
+ }
92
+ function isReactNativeWebSource(source) {
93
+ if (source === "react-native-web") return true;
94
+ let components = source.split(`react-native-web${_path.sep}dist${_path.sep}commonjs${_path.sep}exports${_path.sep}`);
95
+ if (components.length > 1) {
96
+ const component = components[1]?.split(_path.sep)[0];
97
+ return component && allowedModules.has(component);
98
+ }
99
+ components = source.split(`react-native-web${_path.sep}dist${_path.sep}module${_path.sep}exports${_path.sep}`);
100
+ if (components.length > 1) {
101
+ const component = components[1]?.split(_path.sep)[0];
102
+ return component && allowedModules.has(component);
103
+ }
104
+ return false;
105
+ }
106
+ function shouldTransformRequire(t, node, basePath) {
107
+ const {
108
+ declarations
109
+ } = node;
110
+ const declaration = declarations[0];
111
+ if (declarations.length > 1 || !declaration) {
112
+ return false;
113
+ }
114
+ const {
115
+ id,
116
+ init
117
+ } = declaration;
118
+ let source = (t.isObjectPattern(id) || t.isIdentifier(id)) && t.isCallExpression(init) && t.isIdentifier(init.callee) && init.callee.name === "require" && init.arguments.length === 1 && "value" in init.arguments[0] && typeof init.arguments[0].value === "string" && init.arguments[0].value;
119
+ if (!source) {
120
+ return false;
121
+ }
122
+ if (source.startsWith(".")) {
123
+ source = (0, _path.resolve)(basePath, source);
124
+ }
125
+
126
+ // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
127
+ return isReactNativeSource(source) || isReactNativeWebSource(source);
128
+ }
129
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_fs","require","_path","allowedModules","exports","Set","getFilesWithoutExtension","join","__dirname","dirPath","entries","readdirSync","withFileTypes","files","filter","entry","isFile","exec","name","filesWithoutExt","map","file","parse","isInsideModule","filename","module","normalized","normalize","startsWith","includes","sep","isPackageImport","path","source","node","value","shouldTransformImport","resolve","dirname","isReactNativeSource","isReactNativeWebSource","components","split","length","component","has","shouldTransformRequire","t","basePath","declarations","declaration","id","init","isObjectPattern","isIdentifier","isCallExpression","callee","arguments"],"sourceRoot":"../../../src","sources":["babel/helpers.ts"],"mappings":";;;;;;;;;;AACA,IAAAA,GAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAFA;;AAoBO,MAAME,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,IAAIE,GAAG,CACnCC,wBAAwB,CAAC,IAAAC,UAAI,EAACC,SAAS,EAAE,eAAe,CAAC,CAC3D,CAAC;AAED,SAASF,wBAAwBA,CAACG,OAAe,EAAE;EACjD;EACA,MAAMC,OAAO,GAAG,IAAAC,eAAW,EAACF,OAAO,EAAE;IAAEG,aAAa,EAAE;EAAK,CAAC,CAAC;;EAE7D;EACA,MAAMC,KAAK,GAAGH,OAAO,CAACI,MAAM,CACzBC,KAAK,IACJA,KAAK,CAACC,MAAM,CAAC,CAAC,IACd,WAAW,CAACC,IAAI,CAACF,KAAK,CAACG,IAAI,CAAC,IAC5B,CAAC,gBAAgB,CAACD,IAAI,CAACF,KAAK,CAACG,IAAI,CACrC,CAAC;;EAED;EACA,MAAMC,eAAe,GAAGN,KAAK,CAACO,GAAG,CAAEC,IAAI,IAAK,IAAAC,WAAK,EAACD,IAAI,CAACH,IAAI,CAAC,CAACA,IAAI,CAAC;EAElE,OAAOC,eAAe;AACxB;AAEO,SA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AIA,MAAM,CAACL,UAAU,CAAC,GAAG,CAAC,EAAE;IAC1BK,MAAM,GAAG,IAAAI,aAAO,EAACW,QAAQ,EAAEf,MAAM,CAAC;EACpC;;EAEA;EACA,OAAOM,mBAAmB,CAACN,MAAM,CAAC,IAAIO,sBAAsB,CAACP,MAAM,CAAC;AACtE","ignoreList":[]}
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
7
+ var _helpers = require("./helpers.js");
8
+ function _default({
9
+ types: t
10
+ }) {
11
+ const processed = new WeakSet();
12
+ function importDeclaration(...args) {
13
+ const declaration = t.importDeclaration(...args);
14
+ processed.add(declaration);
15
+ return declaration;
16
+ }
17
+ function requireDeclaration(...args) {
18
+ const declaration = t.variableDeclaration(...args);
19
+ processed.add(declaration);
20
+ return declaration;
21
+ }
22
+ return {
23
+ name: "Rewrite react-native to react-native-css",
24
+ visitor: {
25
+ ImportDeclaration(path, state) {
26
+ if (processed.has(path) || processed.has(path.node)) {
27
+ return;
28
+ }
29
+ const {
30
+ specifiers,
31
+ source
32
+ } = path.node;
33
+ if ((0, _helpers.isInsideModule)(state.filename, "react-native-css") || !(0, _helpers.shouldTransformImport)(path, state.filename)) {
34
+ return;
35
+ }
36
+ if (specifiers.length === 0) {
37
+ path.replaceWith(importDeclaration([], t.stringLiteral("react-native-css/components")));
38
+ path.scope.registerDeclaration(path);
39
+ return;
40
+ }
41
+ const imports = specifiers.map(specifier => {
42
+ if (t.isImportDefaultSpecifier(specifier)) {
43
+ const name = specifier.local.name;
44
+ if ((0, _helpers.isPackageImport)(path)) {
45
+ return importDeclaration([t.importDefaultSpecifier(specifier.local)], t.stringLiteral("react-native-css/components"));
46
+ } else if (_helpers.allowedModules.has(name)) {
47
+ return importDeclaration([t.importSpecifier(specifier.local, specifier.local)], t.stringLiteral(`react-native-css/components/${name}`));
48
+ } else {
49
+ return importDeclaration([specifier], source);
50
+ }
51
+ } else if (t.isImportNamespaceSpecifier(specifier)) {
52
+ return importDeclaration([specifier], t.stringLiteral("react-native-css/components"));
53
+ } else {
54
+ const localName = t.isStringLiteral(specifier.imported) ? specifier.imported.value : specifier.imported.name;
55
+ return _helpers.allowedModules.has(localName) ? importDeclaration([t.importSpecifier(specifier.local, specifier.imported)], t.stringLiteral(`react-native-css/components/${localName}`)) : importDeclaration([specifier], source);
56
+ }
57
+ });
58
+ path.replaceInline(imports).map(importPath => {
59
+ path.scope.registerDeclaration(importPath);
60
+ });
61
+ },
62
+ VariableDeclaration(path, state) {
63
+ if (processed.has(path) || processed.has(path.node)) {
64
+ return;
65
+ }
66
+ if ((0, _helpers.isInsideModule)(state.filename, "react-native-css") || !(0, _helpers.shouldTransformRequire)(t, path.node, state.filename)) {
67
+ return;
68
+ }
69
+
70
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
71
+ const {
72
+ id,
73
+ init
74
+ } = path.node.declarations[0];
75
+ if (!t.isObjectPattern(id) || !init) {
76
+ path.replaceWith(requireDeclaration(path.node.kind, [t.variableDeclarator(id, t.callExpression(t.identifier("require"), [t.stringLiteral(`react-native-css/components`)]))]));
77
+ return;
78
+ }
79
+ const imports = id.properties.map(identifier => {
80
+ if (t.isRestElement(identifier)) {
81
+ return requireDeclaration(path.node.kind, [t.variableDeclarator(identifier, init)]);
82
+ }
83
+ if (!t.isIdentifier(identifier.key)) {
84
+ return requireDeclaration(path.node.kind, [t.variableDeclarator(t.objectPattern([identifier]), init)]);
85
+ }
86
+ const name = identifier.key.name;
87
+ if (!_helpers.allowedModules.has(name)) {
88
+ return requireDeclaration(path.node.kind, [t.variableDeclarator(t.objectPattern([t.objectProperty(t.identifier(name), t.identifier(name), false, true)]), init)]);
89
+ }
90
+ return requireDeclaration(path.node.kind, [t.variableDeclarator(t.objectPattern([t.objectProperty(t.identifier(name), t.identifier(name), false, true)]), t.callExpression(t.identifier("require"), [t.stringLiteral(`react-native-css/components/${name}`)]))]);
91
+ });
92
+ path.replaceWithMultiple(imports);
93
+ }
94
+ }
95
+ };
96
+ }
97
+ //# sourceMappingURL=import-plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_helpers","require","_default","types","t","processed","WeakSet","importDeclaration","args","declaration","add","requireDeclaration","variableDeclaration","name","visitor","ImportDeclaration","path","state","has","node","specifiers","source","isInsideModule","filename","shouldTransformImport","length","replaceWith","stringLiteral","scope","registerDeclaration","imports","map","specifier","isImportDefaultSpecifier","local","isPackageImport","importDefaultSpecifier","allowedModules","importSpecifier","isImportNamespaceSpecifier","localName","isStringLiteral","imported","value","replaceInline","importPath","VariableDeclaration","shouldTransformRequire","id","init","declarations","isObjectPattern","kind","variableDeclarator","callExpression","identifier","properties","isRestElement","isIdentifier","key","objectPattern","objectProperty","replaceWithMultiple"],"sourceRoot":"../../../src","sources":["babel/import-plugin.ts"],"mappings":";;;;;;AAEA,IAAAA,QAAA,GAAAC,OAAA;AAUe,SAAAC,SAAU;EACvBC,KAAK,EAAEC;AAGT,CAAC,EAA0B;EACzB,MAAMC,SAAS,GAAG,IAAIC,OAAO,CAAC,CAAC;EAE/B,SAASC,iBAAiBA,CAAC,GAAGC,IAA4C,EAAE;IAC1E,MAAMC,WAAW,GAAGL,CAAC,CAACG,iBAAiB,CAAC,GAAGC,IAAI,CAAC;IAChDH,SAAS,CAACK,GAAG,CAACD,WAAW,CAAC;IAC1B,OAAOA,WAAW;EACpB;EAEA,SAASE,kBAAkBA,CACzB,GAAGH,IAA8C,EACjD;IACA,MAAMC,WAAW,GAAGL,CAAC,CAACQ,mBAAmB,CAAC,GAAGJ,IAAI,CAAC;IAClDH,SAAS,CAACK,GAAG,CAACD,WAAW,CAAC;IAC1B,OAAOA,WAAW;EACpB;EAEA,OAAO;IACLI,IAAI,EAAE,0CAA0C;IAChDC,OAAO,EAAE;MACPC,iBAAiBA,CAACC,IAAI,EAAEC,KAAK,EAAQ;QACnC,IAAIZ,SAAS,CAACa,GAAG,CAACF,IAAI,CAAC,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,CAACiD,kBAAkB,CAClBjD,CAAC,CAACwD,aAAa,CAAC,CACdxD,CAAC,CAACyD,cAAc,CACdzD,CAAC,CAACmD,UAAU,CAAC1C,IAAI,CAAC,EAClBT,CAAC,CAACmD,UAAU,CAAC1C,IAAI,CAAC,EAClB,KAAK,EACL,IACF,CAAC,CACF,CAAC,EACFoC,IACF,CAAC,CACF,CAAC;UACJ;UAEA,OAAOtC,kBAAkB,CAACK,IAAI,CAACG,IAAI,CAACiC,IAAI,EAAE,CACxChD,CAAC,CAACiD,kBAAkB,CAClBjD,CAAC,CAACwD,aAAa,CAAC,CACdxD,CAAC,CAACyD,cAAc,CACdzD,CAAC,CAACmD,UAAU,CAAC1C,IAAI,CAAC,EAClBT,CAAC,CAACmD,UAAU,CAAC1C,IAAI,CAAC,EAClB,KAAK,EACL,IACF,CAAC,CACF,CAAC,EACFT,CAAC,CAACkD,cAAc,CAAClD,CAAC,CAACmD,UAAU,CAAC,SAAS,CAAC,EAAE,CACxCnD,CAAC,CAACuB,aAAa,CAAC,+BAA+Bd,IAAI,EAAE,CAAC,CACvD,CACH,CAAC,CACF,CAAC;QACJ,CAAC,CAAC;QAEFG,IAAI,CAAC8C,mBAAmB,CAAChC,OAAO,CAAC;MACnC;IACF;EACF,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ /* eslint-disable */
4
+ module.exports = function () {
5
+ return {
6
+ plugins: [require("./import-plugin").default, "react-native-worklets/plugin"]
7
+ };
8
+ };
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["module","exports","plugins","require","default"],"sourceRoot":"../../../src","sources":["babel/index.ts"],"mappings":";;AAAA;AACAA,MAAM,CAACC,OAAO,GAAG,YAAY;EAC3B,OAAO;IACLC,OAAO,EAAE,CACPC,OAAO,CAAC,iBAAiB,CAAC,CAACC,OAAO,EAClC,8BAA8B;EAElC,CAAC;AACH,CAAC","ignoreList":[]}
@@ -0,0 +1,175 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.addAnimation_V2 = void 0;
7
+ exports.buildAddFn = buildAddFn;
8
+ var _styleValue = require("../runtime/utils/style-value.js");
9
+ var _selectors = require("./selectors.js");
10
+ /* eslint-disable */
11
+
12
+ function buildAddFn(rule, collection, mapping) {
13
+ let staticDeclarations;
14
+ function add(type, property, value) {
15
+ if (value === undefined) {
16
+ return;
17
+ }
18
+ let forceTuple = false;
19
+ switch (type) {
20
+ case "container":
21
+ {
22
+ rule.c ??= [];
23
+ const names = value.map(name => `c:${name}`);
24
+ rule.c.push(...names);
25
+ break;
26
+ }
27
+ case "animation":
28
+ {
29
+ value = value;
30
+ if (value === undefined) {
31
+ return;
32
+ }
33
+
34
+ // We cannot animate variables
35
+ if (property.startsWith("--")) {
36
+ return;
37
+ }
38
+ property = (0, _selectors.toRNProperty)(property);
39
+ const rename = mapping[property] ?? mapping["*"];
40
+ const [styleFunction, delayed, usesVariables] = postProcessStyleFunction(value);
41
+ rule.d ??= [];
42
+ rule.a = true;
43
+ if (delayed) {
44
+ rule.d.push([styleFunction, rename || property, 1]);
45
+ } else {
46
+ rule.d.push([styleFunction, rename || property]);
47
+ }
48
+ if (usesVariables) {
49
+ rule.dv = 1;
50
+ }
51
+ break;
52
+ }
53
+ // @ts-ignore
54
+ case "transition":
55
+ {
56
+ rule.a = true;
57
+ }
58
+ case "style":
59
+ {
60
+ value = value;
61
+ if (value === undefined) {
62
+ return;
63
+ }
64
+ if (property.startsWith("--")) {
65
+ if (!property.startsWith("--__rn-css") && !collection.varUsageCount.has(property)) {
66
+ return;
67
+ }
68
+ rule.v ??= [];
69
+ rule.v.push([property.slice(2), value]);
70
+ return;
71
+ }
72
+ property = (0, _selectors.toRNProperty)(property);
73
+ const rename = mapping[property] ?? mapping["*"];
74
+ if (Array.isArray(value) && !(0, _styleValue.isStyleDescriptorArray)(value)) {
75
+ rule.d ??= [];
76
+ const [styleFunction, delayed, usesVariables] = postProcessStyleFunction(value);
77
+ if (delayed) {
78
+ rule.d.push([styleFunction, rename || property, 1]);
79
+ } else {
80
+ rule.d.push([styleFunction, rename || property]);
81
+ }
82
+ if (usesVariables) {
83
+ rule.dv = 1;
84
+ }
85
+ } else if (forceTuple || rename && (rename.length > 1 || !rename[0].startsWith("^"))) {
86
+ rule.d ??= [];
87
+ rule.d.push([value, rename || property]);
88
+ } else {
89
+ if (rename) {
90
+ property = rename[0].slice(1);
91
+ }
92
+ if (!staticDeclarations) {
93
+ staticDeclarations = {};
94
+ rule.d ??= [];
95
+ rule.d.push(staticDeclarations);
96
+ }
97
+ staticDeclarations[property] = value;
98
+ }
99
+ }
100
+ }
101
+ }
102
+ return add;
103
+ }
104
+ function postProcessStyleFunction(value) {
105
+ if (!Array.isArray(value)) {
106
+ return [value, false, false];
107
+ }
108
+ if ((0, _styleValue.isStyleDescriptorArray)(value)) {
109
+ let shouldDelay = false;
110
+ let usesVariables = false;
111
+ const results = [];
112
+ for (const v of value) {
113
+ let [result, delayed, variables] = postProcessStyleFunction(v);
114
+ shouldDelay ||= delayed;
115
+ usesVariables ||= variables;
116
+ results.push(result);
117
+ }
118
+ return [results, shouldDelay, usesVariables];
119
+ }
120
+ let [newArgs, shouldDelay, usesVariables] = postProcessStyleFunction(value[2]);
121
+ shouldDelay ||= value[3] === 1;
122
+ usesVariables ||= value[1] === "var";
123
+ if (shouldDelay) {
124
+ return [[value[0], value[1], newArgs], true, usesVariables];
125
+ }
126
+ return [value, false, false];
127
+ }
128
+ const addAnimation_V2 = declarations => (addType, property, value) => {
129
+ if (value === undefined) return;
130
+ let forceTuple = false;
131
+ let staticDeclarations;
132
+ switch (addType) {
133
+ case "container":
134
+ return;
135
+ case "animation":
136
+ return;
137
+ case "transition":
138
+ case "style":
139
+ {
140
+ value = value;
141
+ property = (0, _selectors.toRNProperty)(property);
142
+
143
+ // TODO: Support property mapping
144
+
145
+ // Animating variables not currently supported
146
+ if (property.startsWith("--")) {
147
+ return;
148
+ }
149
+ if (Array.isArray(value)) {
150
+ const [strippedValue, delayed] = postProcessStyleFunction(value);
151
+ if (delayed) {
152
+ declarations.push([strippedValue, property, 1]);
153
+ } else {
154
+ declarations.push([strippedValue, property]);
155
+ }
156
+ } else if (forceTuple) {
157
+ declarations.push([value, property]);
158
+ } else {
159
+ if (!staticDeclarations) {
160
+ staticDeclarations = {};
161
+ declarations ??= [];
162
+ declarations.push(staticDeclarations);
163
+ }
164
+ staticDeclarations[property] = value;
165
+ }
166
+ break;
167
+ }
168
+ default:
169
+ {
170
+ addType;
171
+ }
172
+ }
173
+ };
174
+ exports.addAnimation_V2 = addAnimation_V2;
175
+ //# sourceMappingURL=add.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_styleValue","require","_selectors","buildAddFn","rule","collection","mapping","staticDeclarations","add","type","property","value","undefined","forceTuple","c","names","map","name","push","startsWith","toRNProperty","rename","styleFunction","delayed","usesVariables","postProcessStyleFunction","d","a","dv","varUsageCount","has","v","slice","Array","isArray","isStyleDescriptorArray","length","shouldDelay","results","result","variables","newArgs","addAnimation_V2","declarations","addType","strippedValue","exports"],"sourceRoot":"../../../src","sources":["compiler/add.ts"],"mappings":";;;;;;;AACA,IAAAA,WAAA,GAAAC,OAAA;AAUA,IAAAC,UAAA,GAAAD,OAAA;AAXA;;AAeO,SAASE,UAAUA,CACxBC,IAAe,EACfC,UAA8B,EAC9BC,OAAyB,EACzB;EACA,IAAIC,kBAA+D;EAkBnE,SAASC,GAAGA,CACVC,IAAY,EACZC,QAAgB,EAChBC,KAAyC,EACzC;IACA,IAAIA,KAAK,KAAKC,SAAS,EAAE;MACvB;IACF;IAEA,IAAIC,UAAU,GAAG,KAAK;IAEtB,QAAQJ,IAAI;MACV,KAAK,WAAW;QAAE;UAChBL,IAAI,CAACU,CAAC,KAAK,EAAE;UACb,MAAMC,KAAK,GAAIJ,KAAK,CAAcK,GAAG,CAAEC,IAAI,IAAK,KAAKA,IAAI,EAA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