react-native-css 2.1.2 → 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 -47
  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 -17
  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 -299
  653. package/build/utils.js +0 -61
  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
@@ -0,0 +1,63 @@
1
+ import { type ColorSchemeName, type LayoutRectangle } from "react-native";
2
+ import type { LightDarkVariable, StyleDescriptor } from "../../compiler";
3
+ export type Effect = {
4
+ observers: Set<Effect>;
5
+ run(): void;
6
+ };
7
+ export type Observable<Value, Arg = Value> = {
8
+ observers: Set<Effect>;
9
+ get: (effect?: Effect) => Value;
10
+ set: (arg: Arg) => void;
11
+ run: () => void;
12
+ };
13
+ type Read<Value, Arg> = (get: Getter, arg?: Arg) => Value;
14
+ export type Getter = <Value>(observable: Observable<Value, any>) => Value;
15
+ export declare const observableBatch: {
16
+ current?: Set<Effect>;
17
+ };
18
+ export declare function observable<Value, Arg = Value>(init: Value | Read<Value, Arg>, equality?: (value1: any, value2: any) => boolean): Observable<Value, Arg>;
19
+ export declare function cleanupEffect(effect: Effect): void;
20
+ /** Family Helpers ************************************************************/
21
+ export declare function family<Key, Result = Key, Args extends any = void>(fn: (key: Key, args: Args) => Result): ((key: Key, args: Args) => Result) & {
22
+ delete(key: Key): boolean;
23
+ clear(): void;
24
+ };
25
+ type WeakFamilyFn<Key, Args = undefined, Result = Key> = ((key: Key, args: Args) => Result) & {
26
+ has(key: Key): boolean;
27
+ };
28
+ export declare function weakFamily<Key extends WeakKey, Result = Key>(fn: (key: Key) => Result): WeakFamilyFn<Key, void, Result>;
29
+ export declare function weakFamily<Key extends WeakKey, Args = undefined, Result = Key>(fn: (key: Key, args: Args) => Result): WeakFamilyFn<Key, Args, Result>;
30
+ /********************************* Variables **********************************/
31
+ export declare const VAR_SYMBOL: unique symbol;
32
+ export type VariableContextValue = Record<string, StyleDescriptor> & {
33
+ [VAR_SYMBOL]: true;
34
+ };
35
+ export declare const VariableContext: import("react").Context<VariableContextValue>;
36
+ export declare const rootVariables: ((key: string, args: void) => Observable<StyleDescriptor, LightDarkVariable>) & {
37
+ delete(key: string): boolean;
38
+ clear(): void;
39
+ };
40
+ export declare const universalVariables: ((key: string, args: void) => Observable<StyleDescriptor, LightDarkVariable>) & {
41
+ delete(key: string): boolean;
42
+ clear(): void;
43
+ };
44
+ /** Units *********************************************************************/
45
+ export declare const rem: Observable<number, number>;
46
+ /** Pseudo Classes ************************************************************/
47
+ export declare const hoverFamily: WeakFamilyFn<WeakKey, void, Observable<boolean, boolean>>;
48
+ export declare const activeFamily: WeakFamilyFn<WeakKey, void, Observable<boolean, boolean>>;
49
+ export declare const focusFamily: WeakFamilyFn<WeakKey, void, Observable<boolean, boolean>>;
50
+ /** Dimensions ****************************************************************/
51
+ export declare const dimensions: Observable<import("react-native").ScaledSize, import("react-native").ScaledSize>;
52
+ export declare const vw: Observable<number, number>;
53
+ export declare const vh: Observable<number, number>;
54
+ /** Color Scheme **************************************************************/
55
+ export declare const colorScheme: Observable<ColorSchemeName, ColorSchemeName>;
56
+ /** Containers ****************************************************************/
57
+ export type ContainerContextValue = Record<string, Effect>;
58
+ export declare const ContainerContext: import("react").Context<ContainerContextValue>;
59
+ export declare const containerLayoutFamily: WeakFamilyFn<WeakKey, void, Observable<LayoutRectangle, LayoutRectangle>>;
60
+ export declare const containerWidthFamily: WeakFamilyFn<WeakKey, void, Observable<number, number>>;
61
+ export declare const containerHeightFamily: WeakFamilyFn<WeakKey, void, Observable<number, number>>;
62
+ export {};
63
+ //# sourceMappingURL=reactivity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reactivity.d.ts","sourceRoot":"","sources":["../../../../../../src/runtime/native/reactivity.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,eAAe,EACrB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEzE,MAAM,MAAM,MAAM,GAAG;IACnB,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACvB,GAAG,IAAI,IAAI,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI;IAC3C,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACvB,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,KAAK,CAAC;IAChC,GAAG,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IACxB,GAAG,EAAE,MAAM,IAAI,CAAC;CACjB,CAAC;AACF,KAAK,IAAI,CAAC,KAAK,EA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AG,GAAG,EAC5E,EAAE,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,KAAK,MAAM,GACnC,YAAY,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAoBnC,gFAAgF;AAEhF,eAAO,MAAM,UAAU,eAAiC,CAAC;AACzD,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG;IACnE,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC;CACpB,CAAC;AACF,eAAO,MAAM,eAAe,+CAE1B,CAAC;AAkBH,eAAO,MAAM,aAAa;;;CAAoB,CAAC;AAC/C,eAAO,MAAM,kBAAkB;;;CAAoB,CAAC;AAEpD,gFAAgF;AAEhF,eAAO,MAAM,GAAG,4BAAiB,CAAC;AAElC,gFAAgF;AAEhF,eAAO,MAAM,WAAW,2DAAsC,CAAC;AAC/D,eAAO,MAAM,YAAY,2DAA+C,CAAC;AACzE,eAAO,MAAM,WAAW,2DAA+C,CAAC;AAExE,gFAAgF;AAEhF,eAAO,MAAM,UAAU,kFAAuC,CAAC;AAC/D,eAAO,MAAM,EAAE,4BAEd,CAAC;AACF,eAAO,MAAM,EAAE,4BAEd,CAAC;AAEF,gFAAgF;AAEhF,eAAO,MAAM,WAAW,8CAEvB,CAAC;AAOF,gFAAgF;AAEhF,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC3D,eAAO,MAAM,gBAAgB,gDAA2C,CAAC;AAEzE,eAAO,MAAM,qBAAqB,2EAOhC,CAAC;AAEH,eAAO,MAAM,oBAAoB,yDAI/B,CAAC;AAEH,eAAO,MAAM,qBAAqB,yDAIhC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ComponentType } from "react";
2
+ import type { StyleFunctionResolver } from "./resolve";
3
+ export declare const animationShorthand: StyleFunctionResolver;
4
+ export declare const animation: StyleFunctionResolver;
5
+ export declare const animatedComponentFamily: ((key: ComponentType, args: void) => any) & {
6
+ has(key: ComponentType): boolean;
7
+ };
8
+ //# sourceMappingURL=animation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/styles/animation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAK3C,OAAO,KAAK,EAAsB,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAoB3E,eAAO,MAAM,kBAAkB,uBAW9B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,qBAmBvB,CAAC;AAqEF,eAAO,MAAM,uBAAuB;;CAcnC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { StyleFunctionResolver } from "./resolve";
2
+ export declare const calc: StyleFunctionResolver;
3
+ //# sourceMappingURL=calc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calc.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/styles/calc.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AASvD,eAAO,MAAM,IAAI,EAAE,qBAyFlB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const emVariableName = "__rn-css-em";
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/styles/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const transformKeys: Set<string>;
2
+ export declare const defaultValues: Record<string, any>;
3
+ //# sourceMappingURL=defaults.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/styles/defaults.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa,aAexB,CAAC;AAEH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CA2D7C,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type { InlineVariable, StyleRule } from "../../../compiler";
2
+ import type { RenderGuard } from "../conditions/guards";
3
+ import type { ComponentState } from "../react/useNativeCss";
4
+ import { type Effect, type VariableContextValue } from "../reactivity";
5
+ export declare const stylesFamily: ((key: string, args: Set<StyleRule | VariableContextValue | InlineVariable>) => import("../reactivity").Observable<{
6
+ normal: Record<string, any> | undefined;
7
+ guards: RenderGuard[];
8
+ important: Record<string, any> | undefined;
9
+ }, {
10
+ normal: Record<string, any> | undefined;
11
+ guards: RenderGuard[];
12
+ important: Record<string, any> | undefined;
13
+ }> & {
14
+ cleanup: (effect: Effect) => void;
15
+ }) & {
16
+ delete(key: string): boolean;
17
+ clear(): void;
18
+ };
19
+ export declare function getStyledProps(state: ComponentState, inline: Record<string, any> | undefined | null): Record<string, any> | undefined;
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/styles/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAMnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,KAAK,EAAE,cAAc,EAAU,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAQL,KAAK,MAAM,EAEX,KAAK,oBAAoB,EAC1B,MAAM,eAAe,CAAC;AAGvB,eAAO,MAAM,YAAY;;;;;;;;;sBAaD,MAAM;;;;CAQ7B,CAAC;AAoIF,wBAAgB,cAAc,CAC5B,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,GAAG,IAAI,mCAwE/C"}
@@ -0,0 +1,14 @@
1
+ import type { InlineVariable, StyleDescriptor, StyleFunction } from "../../../compiler";
2
+ import type { RenderGuard } from "../conditions/guards";
3
+ import { type Getter, type VariableContextValue } from "../reactivity";
4
+ export type SimpleResolveValue = (value: StyleDescriptor, castToArray?: boolean) => any;
5
+ export type StyleFunctionResolver = (resolveValue: SimpleResolveValue, value: StyleFunction, get: Getter, options: ResolveValueOptions) => any;
6
+ export type ResolveValueOptions = {
7
+ castToArray?: boolean;
8
+ inheritedVariables?: VariableContextValue;
9
+ inlineVariables?: InlineVariable | undefined;
10
+ renderGuards?: RenderGuard[];
11
+ variableHistory?: Set<string>;
12
+ };
13
+ export declare function resolveValue(value: StyleDescriptor, get: Getter, options: ResolveValueOptions): any;
14
+ //# sourceMappingURL=resolve.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/styles/resolve.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,aAAa,EACd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,oBAAoB,EAAE,MAAM,eAAe,CAAC;AASvE,MAAM,MAAM,kBAAkB,GAAG,CAC/B,KAAK,EAAE,eAAe,EACtB,WAAW,CAAC,EAAE,OAAO,KAClB,GAAG,CAAC;AAET,MAAM,MAAM,qBAAqB,GAAG,CAClC,YAAY,EAAE,kBAAkB,EAChC,KAAK,EAAE,aAAa,EACpB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,mBAAmB,KACzB,GAAG,CAAC;AAaT,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kBAAkB,CAAC,EAAE,oBAAoB,CAAC;IAC1C,eAAe,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IAC7C,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC/B,CAAC;AAEF,wBAAgB,YAAY,CAC1B,KAAK,EAAE,eAAe,EACtB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,mBAAmB,GAC3B,GAAG,CAuEL"}
@@ -0,0 +1,12 @@
1
+ import type { StyleFunctionResolver } from "./resolve";
2
+ type ShorthandType = "string" | "number" | "length" | "color" | Readonly<string[]>;
3
+ type ShorthandRequiredValue = readonly [string | readonly string[], ShorthandType] | ShorthandDefaultValue;
4
+ type ShorthandDefaultValue = readonly [
5
+ string | readonly string[],
6
+ ShorthandType,
7
+ any
8
+ ];
9
+ export declare const ShortHandSymbol: unique symbol;
10
+ export declare function shorthandHandler(mappings: ShorthandRequiredValue[][], defaults: ShorthandDefaultValue[]): StyleFunctionResolver;
11
+ export {};
12
+ //# sourceMappingURL=shorthand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shorthand.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/styles/shorthand.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAEvD,KAAK,aAAa,GACd,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;AAEvB,KAAK,sBAAsB,GACvB,SAAS,CAAC,MAAM,GAAG,SAAS,MAAM,EAAE,EAAE,aAAa,CAAC,GACpD,qBAAqB,CAAC;AAE1B,KAAK,qBAAqB,GAAG,SAAS;IACpC,MAAM,GAAG,SAAS,MAAM,EAAE;IAC1B,aAAa;IACb,GAAG;CACJ,CAAC;AAEF,eAAO,MAAM,eAAe,eAAW,CAAC;AAExC,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,sBAAsB,EAAE,EAAE,EACpC,QAAQ,EAAE,qBAAqB,EAAE,yBA0ElC"}
@@ -0,0 +1,2 @@
1
+ export declare const textShadow: import("./resolve").StyleFunctionResolver;
2
+ //# sourceMappingURL=text-shadow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-shadow.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/styles/text-shadow.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,UAAU,2CAStB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { StyleFunctionResolver } from "./resolve";
2
+ /**
3
+ * Handle the unparsable transform property by converting its values into StyleDeclarations
4
+ * Each value should be a StyleDescriptor function of the transform type
5
+ */
6
+ export declare const transform: StyleFunctionResolver;
7
+ //# sourceMappingURL=transform.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/styles/transform.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,qBAOvB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { StyleFunctionResolver } from "./resolve";
2
+ export declare const em: StyleFunctionResolver;
3
+ export declare const vw: StyleFunctionResolver;
4
+ export declare const vh: StyleFunctionResolver;
5
+ export declare const rem: StyleFunctionResolver;
6
+ //# sourceMappingURL=units.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"units.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/styles/units.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAEvD,eAAO,MAAM,EAAE,EAAE,qBAShB,CAAC;AAEF,eAAO,MAAM,EAAE,EAAE,qBAQhB,CAAC;AAEF,eAAO,MAAM,EAAE,EAAE,qBAQhB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,qBAQjB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { StyleFunction } from "../../../compiler";
2
+ import { type Getter } from "../reactivity";
3
+ import type { ResolveValueOptions, SimpleResolveValue } from "./resolve";
4
+ export declare function varResolver(resolve: SimpleResolveValue, fn: StyleFunction, get: Getter, options: ResolveValueOptions): any;
5
+ //# sourceMappingURL=variables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variables.d.ts","sourceRoot":"","sources":["../../../../../../../src/runtime/native/styles/variables.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAIL,KAAK,MAAM,EACZ,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAEzE,wBAAgB,WAAW,CACzB,OAAO,EAAE,kBAAkB,EAC3B,EAAE,EAAE,aAAa,EACjB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,mBAAmB,OAyD7B"}
@@ -0,0 +1,2 @@
1
+ export * from "./web";
2
+ //# sourceMappingURL=runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../../../src/runtime/runtime.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./native";
2
+ //# sourceMappingURL=runtime.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.native.d.ts","sourceRoot":"","sources":["../../../../../src/runtime/runtime.native.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,62 @@
1
+ import type { ComponentProps, ComponentType, ReactElement } from "react";
2
+ import type { ColorSchemeName, ImageStyle, TextStyle, ViewStyle } from "react-native";
3
+ import type { makeMutable, SharedValue } from "react-native-reanimated";
4
+ import type { AnimationInterpolation_V1, AnimationKeyframes_V1 } from "../compiler";
5
+ import type { ComponentPropsDotNotation, ReactComponent } from "./utils";
6
+ import type { DotNotation, ResolveDotPath } from "./utils/dot-notation.types";
7
+ /******************************** API ********************************/
8
+ export type StyledReactElement<C extends ReactComponent, M extends StyledConfiguration<C>> = ReactElement<ComponentProps<C> & {
9
+ [K in keyof M as K extends string ? M[K] extends undefined | false ? never : M[K] extends true | string | object ? K : never : never]?: string;
10
+ }>;
11
+ export type StyledProps<P, M extends StyledConfiguration<any>> = P & {
12
+ [K in keyof M as K extends string ? M[K] extends undefined | false ? never : M[K] extends true | string | object ? K : never : never]?: string;
13
+ };
14
+ export type Styled = <const C extends ReactComponent<any>, const M extends StyledConfiguration<C>>(component: C, mapping: M & StyledConfiguration<C>, options?: StyledOptions) => StyledComponent<C, M>;
15
+ type StyledComponent<C extends ReactComponent<any>, M extends StyledConfiguration<C>> = ComponentType<ComponentProps<C> & {
16
+ [K in keyof M as K extends string ? M[K] extends undefined | false ? never : M[K] extends true | string | object ? K : never : never]?: string;
17
+ }>;
18
+ export type StyledConfiguration<C extends ReactComponent<any>, K extends string = string> = Record<K, boolean | ComponentPropsDotNotation<C> | StyledConfigurationObject<C, ComponentPropsDotNotation<C> | false>>;
19
+ type StyledConfigurationObject<C extends ReactComponent<any>, T extends ComponentPropsDotNotation<C> | false> = {
20
+ target: T;
21
+ nativeStyleMapping?: T extends false ? NativeStyleMapping<string, ComponentProps<C>> : NativeStyleMapping<ResolveDotPath<T, ComponentProps<C>>, ComponentProps<C>>;
22
+ /** @deprecated Please use nativeStyleMapping */
23
+ nativeStyleToProp?: NativeStyleMapping<ResolveDotPath<T, ComponentProps<C>>, ComponentProps<C>>;
24
+ };
25
+ type NativeStyleMapping<T, S> = T extends object ? {
26
+ [K in keyof T as K extends string ? K : never]: true | DotNotation<S>;
27
+ } & {
28
+ fill?: true | DotNotation<S>;
29
+ stroke?: true | DotNotation<S>;
30
+ } : Record<string, true | DotNotation<S>>;
31
+ export type StyledOptions = {
32
+ passThrough?: boolean;
33
+ };
34
+ /******************************** Styles ********************************/
35
+ export type InlineStyleRecord = Record<string, unknown> & {
36
+ s?: never;
37
+ };
38
+ export type InlineStyle = InlineStyleRecord | undefined | null | (Record<string, unknown> | undefined | null)[] | (() => unknown);
39
+ /****************************** Animations ******************************/
40
+ export type Mutable<Value> = ReturnType<typeof makeMutable<Value>>;
41
+ export type AnimationMutable = Mutable<number>;
42
+ export interface KeyFramesWithStyles {
43
+ animation: AnimationKeyframes_V1;
44
+ baseStyles: Record<string, any>;
45
+ }
46
+ export type SharedValueInterpolation = [
47
+ SharedValue<number>,
48
+ AnimationInterpolation_V1[]
49
+ ];
50
+ /****************************** Transitions *****************************/
51
+ export type Transition = [string | string[], Mutable<any>];
52
+ /********************************* Misc *********************************/
53
+ export type Props = Record<string, any> | undefined | null;
54
+ export type Callback = () => void;
55
+ export type RNStyle = ViewStyle & TextStyle & ImageStyle;
56
+ /******************************** Globals ********************************/
57
+ export type ColorScheme = {
58
+ get: () => ColorSchemeName;
59
+ set: (value: ColorSchemeName) => void;
60
+ };
61
+ export {};
62
+ //# sourceMappingURL=runtime.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.types.d.ts","sourceRoot":"","sources":["../../../../../src/runtime/runtime.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,KAAK,EACV,eAAe,EACf,UAAU,EACV,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAExE,OAAO,KAAK,EACV,yBAAyB,EACzB,qBAAqB,EACtB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,yBAAyB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE9E,gFAAgF;AAEhF,MAAM,MAAM,kBAAkB,CAC5B,CAAC,SAAS,cAAc,EACxB,CAAC,SAAS,mBAAmB,CAAC,CAAC,CAAC,IAC9B,YAAY,CACd,cAAc,CAAC,CA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AAG,SAAS,GAAG,UAAU,CAAC;AAEzD,iFAAiF;AAEjF,MAAM,MAAM,WAAW,GAAG;IACxB,GAAG,EAAE,MAAM,eAAe,CAAC;IAC3B,GAAG,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;CACvC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function getComponentType(component: any): "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "class" | "unknown" | "forwardRef";
2
+ //# sourceMappingURL=components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../../../src/runtime/utils/components.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,GAAG,oIAY9C"}
@@ -0,0 +1,23 @@
1
+ type Falsy = undefined | null | false | "";
2
+ type RegisteredStyle<T> = number & {
3
+ __registeredStyleBrand: T;
4
+ };
5
+ type Primitive = string | number | boolean | bigint | symbol | null | undefined | Date | RegExp | false | true;
6
+ interface RecursiveArray<T> extends Array<T | ReadonlyArray<T> | RecursiveArray<T>> {
7
+ }
8
+ export type StyleProp<T> = T | RegisteredStyle<T> | RecursiveArray<T | RegisteredStyle<T> | Falsy> | Falsy;
9
+ type UnwrapRecursiveArray<T> = T extends (infer I)[] ? UnwrapRecursiveArray<I> : T;
10
+ type RemoveFalsy<T> = Exclude<T, Falsy>;
11
+ type RemoveRegisteredStyle<T> = T extends RegisteredStyle<any> ? never : T;
12
+ type ExtractStyleObject<T> = RemoveRegisteredStyle<RemoveFalsy<UnwrapRecursiveArray<T extends StyleProp<infer U> ? U : T>>>;
13
+ type IsPlainObject<T> = T extends object ? T extends Function ? false : T extends readonly any[] ? false : true : false;
14
+ type Split<T extends string, Delimiter extends string> = T extends `${infer Head}${Delimiter}${infer Tail}` ? [Head, ...Split<Tail, Delimiter>] : [T];
15
+ type ParsePath<T extends string> = T extends `${infer Head}[${number}]${infer Rest}` ? [Head, number, ...ParsePath<Rest extends `.${infer R}` ? R : Rest>] : Split<T, ".">;
16
+ type ResolvePath<T, Parts extends readonly any[]> = Parts extends [
17
+ infer Head,
18
+ ...infer Rest
19
+ ] ? Head extends keyof T ? ResolvePath<T[Head], Rest> : Head extends number ? T extends (infer U)[] ? ResolvePath<U, Rest> : never : never : T;
20
+ export type DotNotation<T, Depth extends unknown[] = [], MaxDepth extends number = 10, Key extends keyof T = keyof T> = Depth["length"] extends MaxDepth ? never : Key extends string ? unknown extends T[Key] ? Key | `${Key}.${string}` : ExtractStyleObject<NonNullable<T[Key]>> extends infer Cleaned ? Cleaned extends Primitive ? Key : Cleaned extends readonly (infer E)[] ? E extends Primitive ? Key | `${Key}[number]` : Key | `${Key}[number]` | `${Key}[number].${DotNotation<E, [...Depth, 0], MaxDepth>}` : IsPlainObject<Cleaned> extends true ? Key | `${Key}.${DotNotation<Cleaned, [...Depth, 0], MaxDepth>}` : Key : never : never;
21
+ export type ResolveDotPath<T, Path extends string> = ResolvePath<T, ParsePath<Path>>;
22
+ export {};
23
+ //# sourceMappingURL=dot-notation.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dot-notation.types.d.ts","sourceRoot":"","sources":["../../../../../../src/runtime/utils/dot-notation.types.ts"],"names":[],"mappings":"AAGA,KAAK,KAAK,GAAG,SAAS,GAAG,IAAI,GAAG,KAAK,GAAG,EAAE,CAAC;AAC3C,KAAK,eAAe,CAAC,CAAC,IAAI,MAAM,GAAG;IAAE,sBAAsB,EAAE,CAAC,CAAA;CAAE,CAAC;AAEjE,KAAK,SAAS,GACV,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,IAAI,GACJ,SAAS,GACT,IAAI,GACJ,MAAM,GACN,KAAK,GACL,IAAI,CAAC;AAET,UAAU,cAAc,CAAC,CAAC,CACxB,SAAQ,KAAK,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;CAAG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OAAO,CAAC,SAAS,IAAI,GACjC,GAAG,GAAG,GAAG,GAAG,IAAI,WAAW,CAAC,OAAO,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC,EAAE,QAAQ,CAAC,EAAE,GAC/D,GAAG,GACT,KAAK,GACT,KAAK,CAAC;AAIZ,MAAM,MAAM,cAAc,CAAC,CAAC,EAAE,IAAI,SAAS,MAAM,IAAI,WAAW,CAC9D,CAAC,EACD,SAAS,CAAC,IAAI,CAAC,CAChB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export * from "./objects";
2
+ export * from "./components";
3
+ export * from "./specificity";
4
+ export * from "./style-value";
5
+ export * from "./utils.types";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/runtime/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare function getDeepPath(source: any, paths: string | string[] | false): any;
2
+ export declare function applyValue(target: Record<string, any>, prop: string, value: any): void;
3
+ export declare function setDeepPath(target: Record<string, any>, paths: string | string[], value: any): Record<string, any>;
4
+ //# sourceMappingURL=objects.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"objects.d.ts","sourceRoot":"","sources":["../../../../../../src/runtime/utils/objects.ts"],"names":[],"mappings":"AAIA,wBAAgB,WAAW,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,KAAK,OAwBxE;AAED,wBAAgB,UAAU,CACxB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC3B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,GAAG,QA2BX;AAED,wBAAgB,WAAW,CACzB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC3B,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,EACxB,KAAK,EAAE,GAAG,uBAgBX"}
@@ -0,0 +1,12 @@
1
+ import type { SpecificityArray, StyleRule } from "../../compiler";
2
+ import type { InlineStyleRecord } from "../runtime.types";
3
+ export declare const Specificity: {
4
+ Order: number;
5
+ ClassName: number;
6
+ Important: number;
7
+ Inline: number;
8
+ PseudoElements: number;
9
+ };
10
+ export declare const inlineSpecificity: SpecificityArray;
11
+ export declare const specificityCompareFn: (a: StyleRule | InlineStyleRecord, b: StyleRule | InlineStyleRecord) => number;
12
+ //# sourceMappingURL=specificity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"specificity.d.ts","sourceRoot":"","sources":["../../../../../../src/runtime/utils/specificity.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,eAAO,MAAM,WAAW;;;;;;CAQvB,CAAC;AAQF,eAAO,MAAM,iBAAiB,EAAE,gBAAqB,CAAC;AAGtD,eAAO,MAAM,oBAAoB,GAC/B,GAAG,SAAS,GAAG,iBAAiB,EAChC,GAAG,SAAS,GAAG,iBAAiB,WAkBjC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { StyleDescriptor } from "../../compiler";
2
+ export declare function isStyleDescriptorArray(value: StyleDescriptor | StyleDescriptor[]): value is StyleDescriptor[];
3
+ //# sourceMappingURL=style-value.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style-value.d.ts","sourceRoot":"","sources":["../../../../../../src/runtime/utils/style-value.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,eAAe,GAAG,eAAe,EAAE,GACzC,KAAK,IAAI,eAAe,EAAE,CAO5B"}
@@ -0,0 +1,5 @@
1
+ import type { ClassicComponentClass, ComponentClass, ComponentProps, ForwardRefExoticComponent, FunctionComponent } from "react";
2
+ import type { DotNotation } from "./dot-notation.types";
3
+ export type ReactComponent<P = any> = ClassicComponentClass<P> | ComponentClass<P> | FunctionComponent<P> | ForwardRefExoticComponent<P>;
4
+ export type ComponentPropsDotNotation<C extends ReactComponent<any>> = DotNotation<ComponentProps<C>>;
5
+ //# sourceMappingURL=utils.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.types.d.ts","sourceRoot":"","sources":["../../../../../../src/runtime/utils/utils.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,qBAAqB,EACrB,cAAc,EACd,cAAc,EACd,yBAAyB,EACzB,iBAAiB,EAClB,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG,GAAG,IAC9B,qBAAqB,CAAC,CAAC,CAAC,GACxB,cAAc,CAAC,CAAC,CAAC,GACjB,iBAAiB,CAAC,CAAC,CAAC,GACpB,yBAAyB,CAAC,CAAC,CAAC,CAAC;AAEjC,MAAM,MAAM,yBAAyB,CAAC,CAAC,SAAS,cAAc,CAAC,GAAG,CAAC,IACjE,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { type ComponentProps } from "react";
2
+ import type { ColorScheme, Props, StyledConfiguration, StyledOptions, StyledProps } from "../runtime.types";
3
+ import type { ReactComponent } from "../utils";
4
+ export declare const styled: <const C extends ReactComponent, const M extends StyledConfiguration<C>>(baseComponent: C, mapping: M, _options?: StyledOptions) => (props: StyledProps<ComponentProps<C>, M>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
5
+ export declare const useCssElement: <const C extends ReactComponent>(component: C, incomingProps: Props, mapping: StyledConfiguration<C>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
6
+ export declare const colorScheme: ColorScheme;
7
+ export declare function vars(variables: Record<`--${string}`, string | number>): Record<string, string>;
8
+ export declare const useNativeVariable: () => never;
9
+ export declare const useUnstableNativeVariable: () => never;
10
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../../src/runtime/web/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG3D,OAAO,KAAK,EACV,WAAW,EACX,KAAK,EACL,mBAAmB,EACnB,aAAa,EACb,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,eAAO,MAAM,MAAM,GACjB,KAAK,CAAC,CAAC,SAAS,cAAc,EAC9B,KAAK,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,CAAC,EAEtC,eAAe,CAAC,EAChB,SAAS,CAAC,EACV,WAAW,aAAa,MAEhB,OAAO,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,2FAGjD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,KAAK,CAAC,CAAC,SAAS,cAAc,EAC1D,WAAW,CAAC,EACZ,eAAe,KAAK,EACpB,SAAS,mBAAmB,CAAC,CAAC,CAAC,2FA4BhC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAOzB,CAAC;AAEF,wBAAgB,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,KAAK,MAAM,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC,0BAWrE;AAED,eAAO,MAAM,iBAAiB,aAE7B,CAAC;AAEF,eAAO,MAAM,yBAAyB,aAErC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function assignStyle(value: Record<string, any>, targets: string[], props: Record<string, any>): Record<string, any>;
2
+ //# sourceMappingURL=assign-style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assign-style.d.ts","sourceRoot":"","sources":["../../../../../../src/runtime/web/assign-style.ts"],"names":[],"mappings":"AACA,wBAAgB,WAAW,CACzB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1B,OAAO,EAAE,MAAM,EAAE,EACjB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,uBAqB3B"}
@@ -0,0 +1,3 @@
1
+ export type * from "../runtime.types";
2
+ export * from "./api";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/runtime/web/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,kBAAkB,CAAC;AACtC,cAAc,OAAO,CAAC"}
@@ -0,0 +1,3 @@
1
+ import "../global.css";
2
+ export default function App(): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=App.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../../../example/src/App.tsx"],"names":[],"mappings":"AAEA,OAAO,eAAe,CAAC;AAEvB,MAAM,CAAC,OAAO,UAAU,GAAG,4CAM1B"}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1,18 @@
1
+ import { type NodePath } from "@babel/traverse";
2
+ import t from "@babel/types";
3
+ export type BabelTypes = typeof t;
4
+ export interface PluginOpts {
5
+ target?: string;
6
+ runtime?: string;
7
+ commonjs?: boolean;
8
+ }
9
+ export interface PluginState {
10
+ opts?: PluginOpts;
11
+ filename: string;
12
+ }
13
+ export declare const allowedModules: Set<string>;
14
+ export declare function isInsideModule(filename: string, module: string): boolean;
15
+ export declare function isPackageImport(path: NodePath<t.ImportDeclaration | t.ExportNamedDeclaration>): boolean;
16
+ export declare function shouldTransformImport(path: NodePath<t.ImportDeclaration | t.ExportNamedDeclaration>, filename: string): boolean | "" | undefined;
17
+ export declare function shouldTransformRequire(t: BabelTypes, node: t.VariableDeclaration, basePath: string): boolean | "" | undefined;
18
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/babel/helpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,CAAC,MAAM,cAAc,CAAC;AAE7B,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,CAAC;AAElC,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,cAAc,aAE1B,CAAC;AAoBF,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAqCxE;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,iBAAiB,GAAG,CAAC,CAAC,sBAAsB,CAAC,WAQ/D;AAED,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,iBAAiB,GAAG,CAAC,CAAC,sBAAsB,CAAC,EAC9D,QAAQ,EAAE,MAAM,4BAcjB;AAuCD,wBAAgB,sBAAsB,CACpC,CAAC,EAAE,UAAU,EACb,IAAI,EAAE,CAAC,CAAC,mBAAmB,EAC3B,QAAQ,EAAE,MAAM,4BA+BjB"}
@@ -0,0 +1,6 @@
1
+ import { type PluginObj } from "@babel/core";
2
+ import { type BabelTypes, type PluginState } from "./helpers";
3
+ export default function ({ types: t, }: {
4
+ types: BabelTypes;
5
+ }): PluginObj<PluginState>;
6
+ //# sourceMappingURL=import-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-plugin.d.ts","sourceRoot":"","sources":["../../../../../src/babel/import-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EACL,KAAK,UAAU,EACf,KAAK,WAAW,EAMjB,MAAM,WAAW,CAAC;AAEnB,MAAM,CAAC,OAAO,WAAW,EACvB,KAAK,EAAE,CAAC,GACT,EAAE;IACD,KAAK,EAAE,UAAU,CAAC;CACnB,GAAG,SAAS,CAAC,WAAW,CAAC,CAsKzB"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/babel/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import type { CompilerCollection, StyleDeclaration, StyleDescriptor, StyleRule, StyleRuleMapping } from "./compiler.types";
2
+ export type AddFn = ReturnType<typeof buildAddFn>;
3
+ export declare function buildAddFn(rule: StyleRule, collection: CompilerCollection, mapping: StyleRuleMapping): {
4
+ (type: "container", property: "container-name", value: string[] | false): void;
5
+ (type: "transition", property: string, value: StyleDescriptor): void;
6
+ (type: "style", property: string, value: StyleDescriptor): void;
7
+ (type: "animation", property: string, value: StyleDescriptor): void;
8
+ };
9
+ export declare const addAnimation_V2: (declarations: StyleDeclaration[]) => AddFn;
10
+ //# sourceMappingURL=add.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/add.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,kBAAkB,EAElB,gBAAgB,EAChB,eAAe,EAEf,SAAS,EACT,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAG1B,MAAM,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAElD,wBAAgB,UAAU,CACxB,IAAI,EAAE,SAAS,EACf,UAAU,EAAE,kBAAkB,EAC9B,OAAO,EAAE,gBAAgB;WAKjB,WAAW,YACP,gBAAgB,SACnB,MAAM,EAAE,GAAG,KAAK,GACtB,IAAI;WAEC,YAAY,YACR,MAAM,SACT,eAAe,GACrB,IAAI;WACY,OAAO,YAAY,MAAM,SAAS,eAAe,GAAG,IAAI;WAEnE,WAAW,YACP,MAAM,SACT,eAAe,GACrB,IAAI;EAwHR;AAgDD,eAAO,MAAM,eAAe,GACzB,cAAc,gBAAgB,EAAE,KAAG,KAkDnC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { CompilerOptions, ReactNativeCssStyleSheet } from "./compiler.types";
2
+ /**
3
+ * Converts a CSS file to a collection of style declarations that can be used with the StyleSheet API
4
+ *
5
+ * @param code - The CSS file contents
6
+ * @param options - Compiler options
7
+ * @returns A `ReactNativeCssStyleSheet` that can be passed to `StyleSheet.register` or used with a custom runtime
8
+ */
9
+ export declare function compile(code: Buffer | string, { logger, ...options }?: CompilerOptions): ReactNativeCssStyleSheet;
10
+ //# sourceMappingURL=compiler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compiler.d.ts","sourceRoot":"","sources":["../../../../../src/compiler/compiler.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAGV,eAAe,EAGf,wBAAwB,EAKzB,MAAM,kBAAkB,CAAC;AA0B1B;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,MAAM,GAAG,MAAM,EACrB,EAAE,MAAkC,EAAE,GAAG,OAAO,EAAE,GAAE,eAAoB,GACvE,wBAAwB,CA2G1B"}