react-native-css 2.1.2 → 3.0.0-nightly.0

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 (926) hide show
  1. package/{LICENSE.md → LICENSE} +6 -8
  2. package/README.md +177 -70
  3. package/dist/commonjs/babel/allowedModules.js +23 -0
  4. package/dist/commonjs/babel/allowedModules.js.map +1 -0
  5. package/dist/commonjs/babel/helpers.js +25 -0
  6. package/dist/commonjs/babel/helpers.js.map +1 -0
  7. package/dist/commonjs/babel/import-plugin.js +101 -0
  8. package/dist/commonjs/babel/import-plugin.js.map +1 -0
  9. package/dist/commonjs/babel/index.js +9 -0
  10. package/dist/commonjs/babel/index.js.map +1 -0
  11. package/dist/commonjs/babel/react-native-web.js +118 -0
  12. package/dist/commonjs/babel/react-native-web.js.map +1 -0
  13. package/dist/commonjs/babel/react-native.js +118 -0
  14. package/dist/commonjs/babel/react-native.js.map +1 -0
  15. package/dist/commonjs/compiler/atRules.js +114 -0
  16. package/dist/commonjs/compiler/atRules.js.map +1 -0
  17. package/dist/commonjs/compiler/compiler.js +281 -0
  18. package/dist/commonjs/compiler/compiler.js.map +1 -0
  19. package/dist/commonjs/compiler/compiler.types.js +4 -0
  20. package/dist/commonjs/compiler/compiler.types.js.map +1 -0
  21. package/dist/commonjs/compiler/container-query.js +63 -0
  22. package/dist/commonjs/compiler/container-query.js.map +1 -0
  23. package/dist/commonjs/compiler/declarations.js +2196 -0
  24. package/dist/commonjs/compiler/declarations.js.map +1 -0
  25. package/dist/commonjs/compiler/functions-web.js +44 -0
  26. package/dist/commonjs/compiler/functions-web.js.map +1 -0
  27. package/dist/commonjs/compiler/functions.js +59 -0
  28. package/dist/commonjs/compiler/functions.js.map +1 -0
  29. package/dist/commonjs/compiler/index.js +17 -0
  30. package/dist/commonjs/compiler/index.js.map +1 -0
  31. package/dist/commonjs/compiler/inheritance.test.js +78 -0
  32. package/dist/commonjs/compiler/inheritance.test.js.map +1 -0
  33. package/dist/commonjs/compiler/keyframes.js +60 -0
  34. package/dist/commonjs/compiler/keyframes.js.map +1 -0
  35. package/dist/commonjs/compiler/media-query.js +172 -0
  36. package/dist/commonjs/compiler/media-query.js.map +1 -0
  37. package/dist/commonjs/compiler/pseudo-elements.js +49 -0
  38. package/dist/commonjs/compiler/pseudo-elements.js.map +1 -0
  39. package/dist/commonjs/compiler/selector-builder.js +501 -0
  40. package/dist/commonjs/compiler/selector-builder.js.map +1 -0
  41. package/dist/commonjs/compiler/selectors.js +414 -0
  42. package/dist/commonjs/compiler/selectors.js.map +1 -0
  43. package/dist/commonjs/compiler/split-by-delimiter.js +21 -0
  44. package/dist/commonjs/compiler/split-by-delimiter.js.map +1 -0
  45. package/dist/commonjs/compiler/stylesheet.js +476 -0
  46. package/dist/commonjs/compiler/stylesheet.js.map +1 -0
  47. package/dist/commonjs/compiler/supports.js +27 -0
  48. package/dist/commonjs/compiler/supports.js.map +1 -0
  49. package/dist/commonjs/components/ActivityIndicator.js +22 -0
  50. package/dist/commonjs/components/ActivityIndicator.js.map +1 -0
  51. package/dist/commonjs/components/Button.js +22 -0
  52. package/dist/commonjs/components/Button.js.map +1 -0
  53. package/dist/commonjs/components/FlatList.js +19 -0
  54. package/dist/commonjs/components/FlatList.js.map +1 -0
  55. package/dist/commonjs/components/Image.js +17 -0
  56. package/dist/commonjs/components/Image.js.map +1 -0
  57. package/dist/commonjs/components/Switch.js +17 -0
  58. package/dist/commonjs/components/Switch.js.map +1 -0
  59. package/dist/commonjs/components/Text.js +17 -0
  60. package/dist/commonjs/components/Text.js.map +1 -0
  61. package/dist/commonjs/components/TextInput.js +17 -0
  62. package/dist/commonjs/components/TextInput.js.map +1 -0
  63. package/dist/commonjs/components/View.js +17 -0
  64. package/dist/commonjs/components/View.js.map +1 -0
  65. package/dist/commonjs/components/index.js +84 -0
  66. package/dist/commonjs/components/index.js.map +1 -0
  67. package/dist/commonjs/components/react-native-safe-area-context.js +17 -0
  68. package/dist/commonjs/components/react-native-safe-area-context.js.map +1 -0
  69. package/dist/commonjs/components/react-native-safe-area-context.native.js +53 -0
  70. package/dist/commonjs/components/react-native-safe-area-context.native.js.map +1 -0
  71. package/dist/commonjs/index.js +28 -0
  72. package/dist/commonjs/index.js.map +1 -0
  73. package/dist/commonjs/jest/expect.d.js +2 -0
  74. package/dist/commonjs/jest/expect.d.js.map +1 -0
  75. package/dist/commonjs/jest/index.js +56 -0
  76. package/dist/commonjs/jest/index.js.map +1 -0
  77. package/dist/commonjs/jest/setup.js +3 -0
  78. package/dist/commonjs/jest/setup.js.map +1 -0
  79. package/dist/commonjs/jest/setupAfterEnv.js +15 -0
  80. package/dist/commonjs/jest/setupAfterEnv.js.map +1 -0
  81. package/dist/commonjs/metro/index.js +170 -0
  82. package/dist/commonjs/metro/index.js.map +1 -0
  83. package/dist/commonjs/metro/injection-code.js +27 -0
  84. package/dist/commonjs/metro/injection-code.js.map +1 -0
  85. package/dist/commonjs/metro/metro-transformer.js +31 -0
  86. package/dist/commonjs/metro/metro-transformer.js.map +1 -0
  87. package/dist/commonjs/metro/picocolors.js +71 -0
  88. package/dist/commonjs/metro/picocolors.js.map +1 -0
  89. package/dist/commonjs/metro/resolver.js +65 -0
  90. package/dist/commonjs/metro/resolver.js.map +1 -0
  91. package/dist/commonjs/metro/stringify.js +59 -0
  92. package/dist/commonjs/metro/stringify.js.map +1 -0
  93. package/dist/commonjs/metro/typescript.js +47 -0
  94. package/dist/commonjs/metro/typescript.js.map +1 -0
  95. package/dist/commonjs/package.json +1 -0
  96. package/dist/commonjs/poison.pill.js +39 -0
  97. package/dist/commonjs/poison.pill.js.map +1 -0
  98. package/dist/commonjs/runtime/index.js +17 -0
  99. package/dist/commonjs/runtime/index.js.map +1 -0
  100. package/dist/commonjs/runtime/native/api.js +96 -0
  101. package/dist/commonjs/runtime/native/api.js.map +1 -0
  102. package/dist/commonjs/runtime/native/conditions/attributes.js +42 -0
  103. package/dist/commonjs/runtime/native/conditions/attributes.js.map +1 -0
  104. package/dist/commonjs/runtime/native/conditions/container-query.js +123 -0
  105. package/dist/commonjs/runtime/native/conditions/container-query.js.map +1 -0
  106. package/dist/commonjs/runtime/native/conditions/guards.js +33 -0
  107. package/dist/commonjs/runtime/native/conditions/guards.js.map +1 -0
  108. package/dist/commonjs/runtime/native/conditions/index.js +40 -0
  109. package/dist/commonjs/runtime/native/conditions/index.js.map +1 -0
  110. package/dist/commonjs/runtime/native/conditions/media-query.js +98 -0
  111. package/dist/commonjs/runtime/native/conditions/media-query.js.map +1 -0
  112. package/dist/commonjs/runtime/native/index.js +28 -0
  113. package/dist/commonjs/runtime/native/index.js.map +1 -0
  114. package/dist/commonjs/runtime/native/metro.js +6 -0
  115. package/dist/commonjs/runtime/native/metro.js.map +1 -0
  116. package/dist/commonjs/runtime/native/react/interaction.js +63 -0
  117. package/dist/commonjs/runtime/native/react/interaction.js.map +1 -0
  118. package/dist/commonjs/runtime/native/react/rules.js +259 -0
  119. package/dist/commonjs/runtime/native/react/rules.js.map +1 -0
  120. package/dist/commonjs/runtime/native/react/useNativeCss.js +159 -0
  121. package/dist/commonjs/runtime/native/react/useNativeCss.js.map +1 -0
  122. package/dist/commonjs/runtime/native/react/usePassthrough.js +50 -0
  123. package/dist/commonjs/runtime/native/react/usePassthrough.js.map +1 -0
  124. package/dist/commonjs/runtime/native/reactivity.js +189 -0
  125. package/dist/commonjs/runtime/native/reactivity.js.map +1 -0
  126. package/dist/commonjs/runtime/native/reanimated.js +17 -0
  127. package/dist/commonjs/runtime/native/reanimated.js.map +1 -0
  128. package/dist/commonjs/runtime/native/styles/calculate-props.js +148 -0
  129. package/dist/commonjs/runtime/native/styles/calculate-props.js.map +1 -0
  130. package/dist/commonjs/runtime/native/styles/constants.js +9 -0
  131. package/dist/commonjs/runtime/native/styles/constants.js.map +1 -0
  132. package/dist/commonjs/runtime/native/styles/defaults.js +69 -0
  133. package/dist/commonjs/runtime/native/styles/defaults.js.map +1 -0
  134. package/dist/commonjs/runtime/native/styles/functions/animation-timing.js +34 -0
  135. package/dist/commonjs/runtime/native/styles/functions/animation-timing.js.map +1 -0
  136. package/dist/commonjs/runtime/native/styles/functions/calc.js +125 -0
  137. package/dist/commonjs/runtime/native/styles/functions/calc.js.map +1 -0
  138. package/dist/commonjs/runtime/native/styles/functions/filters.js +84 -0
  139. package/dist/commonjs/runtime/native/styles/functions/filters.js.map +1 -0
  140. package/dist/commonjs/runtime/native/styles/functions/index.js +83 -0
  141. package/dist/commonjs/runtime/native/styles/functions/index.js.map +1 -0
  142. package/dist/commonjs/runtime/native/styles/functions/numeric-functions.js +32 -0
  143. package/dist/commonjs/runtime/native/styles/functions/numeric-functions.js.map +1 -0
  144. package/dist/commonjs/runtime/native/styles/functions/platform-functions.js +46 -0
  145. package/dist/commonjs/runtime/native/styles/functions/platform-functions.js.map +1 -0
  146. package/dist/commonjs/runtime/native/styles/functions/string-functions.js +23 -0
  147. package/dist/commonjs/runtime/native/styles/functions/string-functions.js.map +1 -0
  148. package/dist/commonjs/runtime/native/styles/functions/transform-functions.js +121 -0
  149. package/dist/commonjs/runtime/native/styles/functions/transform-functions.js.map +1 -0
  150. package/dist/commonjs/runtime/native/styles/index.js +115 -0
  151. package/dist/commonjs/runtime/native/styles/index.js.map +1 -0
  152. package/dist/commonjs/runtime/native/styles/resolve.js +106 -0
  153. package/dist/commonjs/runtime/native/styles/resolve.js.map +1 -0
  154. package/dist/commonjs/runtime/native/styles/shorthands/_handler.js +79 -0
  155. package/dist/commonjs/runtime/native/styles/shorthands/_handler.js.map +1 -0
  156. package/dist/commonjs/runtime/native/styles/shorthands/animation.js +57 -0
  157. package/dist/commonjs/runtime/native/styles/shorthands/animation.js.map +1 -0
  158. package/dist/commonjs/runtime/native/styles/shorthands/border.js +12 -0
  159. package/dist/commonjs/runtime/native/styles/shorthands/border.js.map +1 -0
  160. package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js +50 -0
  161. package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js.map +1 -0
  162. package/dist/commonjs/runtime/native/styles/shorthands/index.js +61 -0
  163. package/dist/commonjs/runtime/native/styles/shorthands/index.js.map +1 -0
  164. package/dist/commonjs/runtime/native/styles/shorthands/text-shadow.js +13 -0
  165. package/dist/commonjs/runtime/native/styles/shorthands/text-shadow.js.map +1 -0
  166. package/dist/commonjs/runtime/native/styles/shorthands/transform.js +23 -0
  167. package/dist/commonjs/runtime/native/styles/shorthands/transform.js.map +1 -0
  168. package/dist/commonjs/runtime/native/styles/units.js +52 -0
  169. package/dist/commonjs/runtime/native/styles/units.js.map +1 -0
  170. package/dist/commonjs/runtime/native/styles/variables.js +79 -0
  171. package/dist/commonjs/runtime/native/styles/variables.js.map +1 -0
  172. package/dist/commonjs/runtime/runtime.js +17 -0
  173. package/dist/commonjs/runtime/runtime.js.map +1 -0
  174. package/dist/commonjs/runtime/runtime.native.js +17 -0
  175. package/dist/commonjs/runtime/runtime.native.js.map +1 -0
  176. package/dist/commonjs/runtime/runtime.types.js +6 -0
  177. package/dist/commonjs/runtime/runtime.types.js.map +1 -0
  178. package/dist/commonjs/runtime/utils/components.js +18 -0
  179. package/dist/commonjs/runtime/utils/components.js.map +1 -0
  180. package/dist/commonjs/runtime/utils/dot-notation.types.js +2 -0
  181. package/dist/commonjs/runtime/utils/dot-notation.types.js.map +1 -0
  182. package/dist/commonjs/runtime/utils/index.js +61 -0
  183. package/dist/commonjs/runtime/utils/index.js.map +1 -0
  184. package/dist/commonjs/runtime/utils/objects.js +92 -0
  185. package/dist/commonjs/runtime/utils/objects.js.map +1 -0
  186. package/dist/commonjs/runtime/utils/specificity.js +44 -0
  187. package/dist/commonjs/runtime/utils/specificity.js.map +1 -0
  188. package/dist/commonjs/runtime/utils/style-value.js +21 -0
  189. package/dist/commonjs/runtime/utils/style-value.js.map +1 -0
  190. package/dist/commonjs/runtime/utils/utils.types.js +6 -0
  191. package/dist/commonjs/runtime/utils/utils.types.js.map +1 -0
  192. package/dist/commonjs/runtime/web/api.js +68 -0
  193. package/dist/commonjs/runtime/web/api.js.map +1 -0
  194. package/dist/commonjs/runtime/web/assign-style.js +27 -0
  195. package/dist/commonjs/runtime/web/assign-style.js.map +1 -0
  196. package/dist/commonjs/runtime/web/index.js +18 -0
  197. package/dist/commonjs/runtime/web/index.js.map +1 -0
  198. package/dist/commonjs/runtime/web/metro.js +6 -0
  199. package/dist/commonjs/runtime/web/metro.js.map +1 -0
  200. package/dist/commonjs/style-collection/index.js +110 -0
  201. package/dist/commonjs/style-collection/index.js.map +1 -0
  202. package/dist/commonjs/style-collection/root.js +28 -0
  203. package/dist/commonjs/style-collection/root.js.map +1 -0
  204. package/dist/module/babel/allowedModules.js +19 -0
  205. package/dist/module/babel/allowedModules.js.map +1 -0
  206. package/dist/module/babel/helpers.js +21 -0
  207. package/dist/module/babel/helpers.js.map +1 -0
  208. package/dist/module/babel/import-plugin.js +97 -0
  209. package/dist/module/babel/import-plugin.js.map +1 -0
  210. package/dist/module/babel/index.js +9 -0
  211. package/dist/module/babel/index.js.map +1 -0
  212. package/dist/module/babel/react-native-web.js +112 -0
  213. package/dist/module/babel/react-native-web.js.map +1 -0
  214. package/dist/module/babel/react-native.js +112 -0
  215. package/dist/module/babel/react-native.js.map +1 -0
  216. package/dist/module/compiler/atRules.js +110 -0
  217. package/dist/module/compiler/atRules.js.map +1 -0
  218. package/dist/module/compiler/compiler.js +276 -0
  219. package/dist/module/compiler/compiler.js.map +1 -0
  220. package/dist/module/compiler/compiler.types.js +60 -0
  221. package/dist/module/compiler/compiler.types.js.map +1 -0
  222. package/dist/module/compiler/container-query.js +59 -0
  223. package/dist/module/compiler/container-query.js.map +1 -0
  224. package/dist/module/compiler/declarations.js +2121 -0
  225. package/dist/module/compiler/declarations.js.map +1 -0
  226. package/dist/module/compiler/functions-web.js +32 -0
  227. package/dist/module/compiler/functions-web.js.map +1 -0
  228. package/dist/module/compiler/functions.js +47 -0
  229. package/dist/module/compiler/functions.js.map +1 -0
  230. package/dist/module/compiler/index.js +9 -0
  231. package/dist/module/compiler/index.js.map +1 -0
  232. package/dist/module/compiler/inheritance.test.js +78 -0
  233. package/dist/module/compiler/inheritance.test.js.map +1 -0
  234. package/dist/module/compiler/keyframes.js +54 -0
  235. package/dist/module/compiler/keyframes.js.map +1 -0
  236. package/dist/module/compiler/media-query.js +166 -0
  237. package/dist/module/compiler/media-query.js.map +1 -0
  238. package/dist/module/compiler/pseudo-elements.js +44 -0
  239. package/dist/module/compiler/pseudo-elements.js.map +1 -0
  240. package/dist/module/compiler/selector-builder.js +496 -0
  241. package/dist/module/compiler/selector-builder.js.map +1 -0
  242. package/dist/module/compiler/selectors.js +409 -0
  243. package/dist/module/compiler/selectors.js.map +1 -0
  244. package/dist/module/compiler/split-by-delimiter.js +17 -0
  245. package/dist/module/compiler/split-by-delimiter.js.map +1 -0
  246. package/dist/module/compiler/stylesheet.js +471 -0
  247. package/dist/module/compiler/stylesheet.js.map +1 -0
  248. package/dist/module/compiler/supports.js +23 -0
  249. package/dist/module/compiler/supports.js.map +1 -0
  250. package/dist/module/components/ActivityIndicator.js +17 -0
  251. package/dist/module/components/ActivityIndicator.js.map +1 -0
  252. package/dist/module/components/Button.js +17 -0
  253. package/dist/module/components/Button.js.map +1 -0
  254. package/dist/module/components/FlatList.js +14 -0
  255. package/dist/module/components/FlatList.js.map +1 -0
  256. package/dist/module/components/Image.js +12 -0
  257. package/dist/module/components/Image.js.map +1 -0
  258. package/dist/module/components/Switch.js +12 -0
  259. package/dist/module/components/Switch.js.map +1 -0
  260. package/dist/module/components/Text.js +12 -0
  261. package/dist/module/components/Text.js.map +1 -0
  262. package/dist/module/components/TextInput.js +12 -0
  263. package/dist/module/components/TextInput.js.map +1 -0
  264. package/dist/module/components/View.js +12 -0
  265. package/dist/module/components/View.js.map +1 -0
  266. package/dist/module/components/index.js +12 -0
  267. package/dist/module/components/index.js.map +1 -0
  268. package/dist/module/components/react-native-safe-area-context.js +4 -0
  269. package/dist/module/components/react-native-safe-area-context.js.map +1 -0
  270. package/dist/module/components/react-native-safe-area-context.native.js +36 -0
  271. package/dist/module/components/react-native-safe-area-context.native.js.map +1 -0
  272. package/dist/module/index.js +5 -0
  273. package/dist/module/index.js.map +1 -0
  274. package/dist/module/jest/expect.d.js +2 -0
  275. package/dist/module/jest/expect.d.js.map +1 -0
  276. package/dist/module/jest/index.js +50 -0
  277. package/dist/module/jest/index.js.map +1 -0
  278. package/dist/module/jest/setup.js +3 -0
  279. package/dist/module/jest/setup.js.map +1 -0
  280. package/dist/module/jest/setupAfterEnv.js +15 -0
  281. package/dist/module/jest/setupAfterEnv.js.map +1 -0
  282. package/dist/module/metro/index.js +164 -0
  283. package/dist/module/metro/index.js.map +1 -0
  284. package/dist/module/metro/injection-code.js +22 -0
  285. package/dist/module/metro/injection-code.js.map +1 -0
  286. package/dist/module/metro/metro-transformer.js +27 -0
  287. package/dist/module/metro/metro-transformer.js.map +1 -0
  288. package/dist/module/metro/picocolors.js +67 -0
  289. package/dist/module/metro/picocolors.js.map +1 -0
  290. package/dist/module/metro/resolver.js +60 -0
  291. package/dist/module/metro/resolver.js.map +1 -0
  292. package/dist/module/metro/stringify.js +55 -0
  293. package/dist/module/metro/stringify.js.map +1 -0
  294. package/dist/module/metro/typescript.js +42 -0
  295. package/dist/module/metro/typescript.js.map +1 -0
  296. package/dist/module/package.json +1 -0
  297. package/dist/module/poison.pill.js +37 -0
  298. package/dist/module/poison.pill.js.map +1 -0
  299. package/dist/module/runtime/index.js +9 -0
  300. package/dist/module/runtime/index.js.map +1 -0
  301. package/dist/module/runtime/native/api.js +76 -0
  302. package/dist/module/runtime/native/api.js.map +1 -0
  303. package/dist/module/runtime/native/conditions/attributes.js +38 -0
  304. package/dist/module/runtime/native/conditions/attributes.js.map +1 -0
  305. package/dist/module/runtime/native/conditions/container-query.js +117 -0
  306. package/dist/module/runtime/native/conditions/container-query.js.map +1 -0
  307. package/dist/module/runtime/native/conditions/guards.js +29 -0
  308. package/dist/module/runtime/native/conditions/guards.js.map +1 -0
  309. package/dist/module/runtime/native/conditions/index.js +36 -0
  310. package/dist/module/runtime/native/conditions/index.js.map +1 -0
  311. package/dist/module/runtime/native/conditions/media-query.js +93 -0
  312. package/dist/module/runtime/native/conditions/media-query.js.map +1 -0
  313. package/dist/module/runtime/native/index.js +5 -0
  314. package/dist/module/runtime/native/index.js.map +1 -0
  315. package/dist/module/runtime/native/metro.js +5 -0
  316. package/dist/module/runtime/native/metro.js.map +1 -0
  317. package/dist/module/runtime/native/react/interaction.js +59 -0
  318. package/dist/module/runtime/native/react/interaction.js.map +1 -0
  319. package/dist/module/runtime/native/react/rules.js +251 -0
  320. package/dist/module/runtime/native/react/rules.js.map +1 -0
  321. package/dist/module/runtime/native/react/useNativeCss.js +153 -0
  322. package/dist/module/runtime/native/react/useNativeCss.js.map +1 -0
  323. package/dist/module/runtime/native/react/usePassthrough.js +45 -0
  324. package/dist/module/runtime/native/react/usePassthrough.js.map +1 -0
  325. package/dist/module/runtime/native/reactivity.js +177 -0
  326. package/dist/module/runtime/native/reactivity.js.map +1 -0
  327. package/dist/module/runtime/native/reanimated.js +13 -0
  328. package/dist/module/runtime/native/reanimated.js.map +1 -0
  329. package/dist/module/runtime/native/styles/calculate-props.js +143 -0
  330. package/dist/module/runtime/native/styles/calculate-props.js.map +1 -0
  331. package/dist/module/runtime/native/styles/constants.js +5 -0
  332. package/dist/module/runtime/native/styles/constants.js.map +1 -0
  333. package/dist/module/runtime/native/styles/defaults.js +65 -0
  334. package/dist/module/runtime/native/styles/defaults.js.map +1 -0
  335. package/dist/module/runtime/native/styles/functions/animation-timing.js +30 -0
  336. package/dist/module/runtime/native/styles/functions/animation-timing.js.map +1 -0
  337. package/dist/module/runtime/native/styles/functions/calc.js +120 -0
  338. package/dist/module/runtime/native/styles/functions/calc.js.map +1 -0
  339. package/dist/module/runtime/native/styles/functions/filters.js +70 -0
  340. package/dist/module/runtime/native/styles/functions/filters.js.map +1 -0
  341. package/dist/module/runtime/native/styles/functions/index.js +10 -0
  342. package/dist/module/runtime/native/styles/functions/index.js.map +1 -0
  343. package/dist/module/runtime/native/styles/functions/numeric-functions.js +25 -0
  344. package/dist/module/runtime/native/styles/functions/numeric-functions.js.map +1 -0
  345. package/dist/module/runtime/native/styles/functions/platform-functions.js +36 -0
  346. package/dist/module/runtime/native/styles/functions/platform-functions.js.map +1 -0
  347. package/dist/module/runtime/native/styles/functions/string-functions.js +18 -0
  348. package/dist/module/runtime/native/styles/functions/string-functions.js.map +1 -0
  349. package/dist/module/runtime/native/styles/functions/transform-functions.js +114 -0
  350. package/dist/module/runtime/native/styles/functions/transform-functions.js.map +1 -0
  351. package/dist/module/runtime/native/styles/index.js +110 -0
  352. package/dist/module/runtime/native/styles/index.js.map +1 -0
  353. package/dist/module/runtime/native/styles/resolve.js +101 -0
  354. package/dist/module/runtime/native/styles/resolve.js.map +1 -0
  355. package/dist/module/runtime/native/styles/shorthands/_handler.js +74 -0
  356. package/dist/module/runtime/native/styles/shorthands/_handler.js.map +1 -0
  357. package/dist/module/runtime/native/styles/shorthands/animation.js +51 -0
  358. package/dist/module/runtime/native/styles/shorthands/animation.js.map +1 -0
  359. package/dist/module/runtime/native/styles/shorthands/border.js +8 -0
  360. package/dist/module/runtime/native/styles/shorthands/border.js.map +1 -0
  361. package/dist/module/runtime/native/styles/shorthands/box-shadow.js +45 -0
  362. package/dist/module/runtime/native/styles/shorthands/box-shadow.js.map +1 -0
  363. package/dist/module/runtime/native/styles/shorthands/index.js +8 -0
  364. package/dist/module/runtime/native/styles/shorthands/index.js.map +1 -0
  365. package/dist/module/runtime/native/styles/shorthands/text-shadow.js +9 -0
  366. package/dist/module/runtime/native/styles/shorthands/text-shadow.js.map +1 -0
  367. package/dist/module/runtime/native/styles/shorthands/transform.js +18 -0
  368. package/dist/module/runtime/native/styles/shorthands/transform.js.map +1 -0
  369. package/dist/module/runtime/native/styles/units.js +43 -0
  370. package/dist/module/runtime/native/styles/units.js.map +1 -0
  371. package/dist/module/runtime/native/styles/variables.js +75 -0
  372. package/dist/module/runtime/native/styles/variables.js.map +1 -0
  373. package/dist/module/runtime/runtime.js +4 -0
  374. package/dist/module/runtime/runtime.js.map +1 -0
  375. package/dist/module/runtime/runtime.native.js +4 -0
  376. package/dist/module/runtime/runtime.native.js.map +1 -0
  377. package/dist/module/runtime/runtime.types.js +4 -0
  378. package/dist/module/runtime/runtime.types.js.map +1 -0
  379. package/dist/module/runtime/utils/components.js +14 -0
  380. package/dist/module/runtime/utils/components.js.map +1 -0
  381. package/dist/module/runtime/utils/dot-notation.types.js +2 -0
  382. package/dist/module/runtime/utils/dot-notation.types.js.map +1 -0
  383. package/dist/module/runtime/utils/index.js +8 -0
  384. package/dist/module/runtime/utils/index.js.map +1 -0
  385. package/dist/module/runtime/utils/objects.js +84 -0
  386. package/dist/module/runtime/utils/objects.js.map +1 -0
  387. package/dist/module/runtime/utils/specificity.js +39 -0
  388. package/dist/module/runtime/utils/specificity.js.map +1 -0
  389. package/dist/module/runtime/utils/style-value.js +16 -0
  390. package/dist/module/runtime/utils/style-value.js.map +1 -0
  391. package/dist/module/runtime/utils/utils.types.js +4 -0
  392. package/dist/module/runtime/utils/utils.types.js.map +1 -0
  393. package/dist/module/runtime/web/api.js +59 -0
  394. package/dist/module/runtime/web/api.js.map +1 -0
  395. package/dist/module/runtime/web/assign-style.js +23 -0
  396. package/dist/module/runtime/web/assign-style.js.map +1 -0
  397. package/dist/module/runtime/web/index.js +6 -0
  398. package/dist/module/runtime/web/index.js.map +1 -0
  399. package/dist/module/runtime/web/metro.js +5 -0
  400. package/dist/module/runtime/web/metro.js.map +1 -0
  401. package/dist/module/style-collection/index.js +95 -0
  402. package/dist/module/style-collection/index.js.map +1 -0
  403. package/dist/module/style-collection/root.js +24 -0
  404. package/dist/module/style-collection/root.js.map +1 -0
  405. package/dist/typescript/commonjs/example/app.config.d.ts +4 -0
  406. package/dist/typescript/commonjs/example/app.config.d.ts.map +1 -0
  407. package/dist/typescript/commonjs/example/src/App.d.ts +3 -0
  408. package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -0
  409. package/dist/typescript/commonjs/package.json +1 -0
  410. package/dist/typescript/commonjs/src/babel/allowedModules.d.ts +2 -0
  411. package/dist/typescript/commonjs/src/babel/allowedModules.d.ts.map +1 -0
  412. package/dist/typescript/commonjs/src/babel/helpers.d.ts +13 -0
  413. package/dist/typescript/commonjs/src/babel/helpers.d.ts.map +1 -0
  414. package/dist/typescript/commonjs/src/babel/import-plugin.d.ts +6 -0
  415. package/dist/typescript/commonjs/src/babel/import-plugin.d.ts.map +1 -0
  416. package/dist/typescript/commonjs/src/babel/index.d.ts +1 -0
  417. package/dist/typescript/commonjs/src/babel/index.d.ts.map +1 -0
  418. package/dist/typescript/commonjs/src/babel/react-native-web.d.ts +8 -0
  419. package/dist/typescript/commonjs/src/babel/react-native-web.d.ts.map +1 -0
  420. package/dist/typescript/commonjs/src/babel/react-native.d.ts +8 -0
  421. package/dist/typescript/commonjs/src/babel/react-native.d.ts.map +1 -0
  422. package/dist/typescript/commonjs/src/compiler/atRules.d.ts +34 -0
  423. package/dist/typescript/commonjs/src/compiler/atRules.d.ts.map +1 -0
  424. package/dist/typescript/commonjs/src/compiler/compiler.d.ts +17 -0
  425. package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -0
  426. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +197 -0
  427. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -0
  428. package/dist/typescript/commonjs/src/compiler/container-query.d.ts +5 -0
  429. package/dist/typescript/commonjs/src/compiler/container-query.d.ts.map +1 -0
  430. package/dist/typescript/commonjs/src/compiler/declarations.d.ts +120 -0
  431. package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -0
  432. package/dist/typescript/commonjs/src/compiler/functions-web.d.ts +11 -0
  433. package/dist/typescript/commonjs/src/compiler/functions-web.d.ts.map +1 -0
  434. package/dist/typescript/commonjs/src/compiler/functions.d.ts +11 -0
  435. package/dist/typescript/commonjs/src/compiler/functions.d.ts.map +1 -0
  436. package/dist/typescript/commonjs/src/compiler/index.d.ts +7 -0
  437. package/dist/typescript/commonjs/src/compiler/index.d.ts.map +1 -0
  438. package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts +2 -0
  439. package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts.map +1 -0
  440. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts +7 -0
  441. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts.map +1 -0
  442. package/dist/typescript/commonjs/src/compiler/media-query.d.ts +7 -0
  443. package/dist/typescript/commonjs/src/compiler/media-query.d.ts.map +1 -0
  444. package/dist/typescript/commonjs/src/compiler/pseudo-elements.d.ts +4 -0
  445. package/dist/typescript/commonjs/src/compiler/pseudo-elements.d.ts.map +1 -0
  446. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts +24 -0
  447. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -0
  448. package/dist/typescript/commonjs/src/compiler/selectors.d.ts +24 -0
  449. package/dist/typescript/commonjs/src/compiler/selectors.d.ts.map +1 -0
  450. package/dist/typescript/commonjs/src/compiler/split-by-delimiter.d.ts +2 -0
  451. package/dist/typescript/commonjs/src/compiler/split-by-delimiter.d.ts.map +1 -0
  452. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +68 -0
  453. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -0
  454. package/dist/typescript/commonjs/src/compiler/supports.d.ts +3 -0
  455. package/dist/typescript/commonjs/src/compiler/supports.d.ts.map +1 -0
  456. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +13 -0
  457. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -0
  458. package/dist/typescript/commonjs/src/components/Button.d.ts +13 -0
  459. package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -0
  460. package/dist/typescript/commonjs/src/components/FlatList.d.ts +10 -0
  461. package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -0
  462. package/dist/typescript/commonjs/src/components/Image.d.ts +8 -0
  463. package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -0
  464. package/dist/typescript/commonjs/src/components/Switch.d.ts +8 -0
  465. package/dist/typescript/commonjs/src/components/Switch.d.ts.map +1 -0
  466. package/dist/typescript/commonjs/src/components/Text.d.ts +8 -0
  467. package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -0
  468. package/dist/typescript/commonjs/src/components/TextInput.d.ts +8 -0
  469. package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -0
  470. package/dist/typescript/commonjs/src/components/View.d.ts +8 -0
  471. package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -0
  472. package/dist/typescript/commonjs/src/components/index.d.ts +10 -0
  473. package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -0
  474. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.d.ts +2 -0
  475. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.d.ts.map +1 -0
  476. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts +4 -0
  477. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts.map +1 -0
  478. package/dist/typescript/commonjs/src/index.d.ts +3 -0
  479. package/dist/typescript/commonjs/src/index.d.ts.map +1 -0
  480. package/dist/typescript/commonjs/src/jest/index.d.ts +30 -0
  481. package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -0
  482. package/dist/typescript/commonjs/src/jest/setup.d.ts +1 -0
  483. package/dist/typescript/commonjs/src/jest/setup.d.ts.map +1 -0
  484. package/dist/typescript/commonjs/src/jest/setupAfterEnv.d.ts +1 -0
  485. package/dist/typescript/commonjs/src/jest/setupAfterEnv.d.ts.map +1 -0
  486. package/dist/typescript/commonjs/src/metro/index.d.ts +11 -0
  487. package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -0
  488. package/dist/typescript/commonjs/src/metro/injection-code.d.ts +13 -0
  489. package/dist/typescript/commonjs/src/metro/injection-code.d.ts.map +1 -0
  490. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts +6 -0
  491. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -0
  492. package/dist/typescript/commonjs/src/metro/picocolors.d.ts +27 -0
  493. package/dist/typescript/commonjs/src/metro/picocolors.d.ts.map +1 -0
  494. package/dist/typescript/commonjs/src/metro/resolver.d.ts +4 -0
  495. package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -0
  496. package/dist/typescript/commonjs/src/metro/stringify.d.ts +7 -0
  497. package/dist/typescript/commonjs/src/metro/stringify.d.ts.map +1 -0
  498. package/dist/typescript/commonjs/src/metro/typescript.d.ts +2 -0
  499. package/dist/typescript/commonjs/src/metro/typescript.d.ts.map +1 -0
  500. package/dist/typescript/commonjs/src/poison.pill.d.ts +2 -0
  501. package/dist/typescript/commonjs/src/poison.pill.d.ts.map +1 -0
  502. package/dist/typescript/commonjs/src/runtime/index.d.ts +7 -0
  503. package/dist/typescript/commonjs/src/runtime/index.d.ts.map +1 -0
  504. package/dist/typescript/commonjs/src/runtime/native/api.d.ts +19 -0
  505. package/dist/typescript/commonjs/src/runtime/native/api.d.ts.map +1 -0
  506. package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts +5 -0
  507. package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts.map +1 -0
  508. package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts +7 -0
  509. package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts.map +1 -0
  510. package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts +5 -0
  511. package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts.map +1 -0
  512. package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts +6 -0
  513. package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts.map +1 -0
  514. package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts +4 -0
  515. package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts.map +1 -0
  516. package/dist/typescript/commonjs/src/runtime/native/index.d.ts +4 -0
  517. package/dist/typescript/commonjs/src/runtime/native/index.d.ts.map +1 -0
  518. package/dist/typescript/commonjs/src/runtime/native/metro.d.ts +2 -0
  519. package/dist/typescript/commonjs/src/runtime/native/metro.d.ts.map +1 -0
  520. package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts +6 -0
  521. package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts.map +1 -0
  522. package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts +7 -0
  523. package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts.map +1 -0
  524. package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts +38 -0
  525. package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts.map +1 -0
  526. package/dist/typescript/commonjs/src/runtime/native/react/usePassthrough.d.ts +4 -0
  527. package/dist/typescript/commonjs/src/runtime/native/react/usePassthrough.d.ts.map +1 -0
  528. package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts +55 -0
  529. package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts.map +1 -0
  530. package/dist/typescript/commonjs/src/runtime/native/reanimated.d.ts +5 -0
  531. package/dist/typescript/commonjs/src/runtime/native/reanimated.d.ts.map +1 -0
  532. package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts +10 -0
  533. package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts.map +1 -0
  534. package/dist/typescript/commonjs/src/runtime/native/styles/constants.d.ts +3 -0
  535. package/dist/typescript/commonjs/src/runtime/native/styles/constants.d.ts.map +1 -0
  536. package/dist/typescript/commonjs/src/runtime/native/styles/defaults.d.ts +3 -0
  537. package/dist/typescript/commonjs/src/runtime/native/styles/defaults.d.ts.map +1 -0
  538. package/dist/typescript/commonjs/src/runtime/native/styles/functions/animation-timing.d.ts +4 -0
  539. package/dist/typescript/commonjs/src/runtime/native/styles/functions/animation-timing.d.ts.map +1 -0
  540. package/dist/typescript/commonjs/src/runtime/native/styles/functions/calc.d.ts +3 -0
  541. package/dist/typescript/commonjs/src/runtime/native/styles/functions/calc.d.ts.map +1 -0
  542. package/dist/typescript/commonjs/src/runtime/native/styles/functions/filters.d.ts +12 -0
  543. package/dist/typescript/commonjs/src/runtime/native/styles/functions/filters.d.ts.map +1 -0
  544. package/dist/typescript/commonjs/src/runtime/native/styles/functions/index.d.ts +8 -0
  545. package/dist/typescript/commonjs/src/runtime/native/styles/functions/index.d.ts.map +1 -0
  546. package/dist/typescript/commonjs/src/runtime/native/styles/functions/numeric-functions.d.ts +5 -0
  547. package/dist/typescript/commonjs/src/runtime/native/styles/functions/numeric-functions.d.ts.map +1 -0
  548. package/dist/typescript/commonjs/src/runtime/native/styles/functions/platform-functions.d.ts +8 -0
  549. package/dist/typescript/commonjs/src/runtime/native/styles/functions/platform-functions.d.ts.map +1 -0
  550. package/dist/typescript/commonjs/src/runtime/native/styles/functions/string-functions.d.ts +3 -0
  551. package/dist/typescript/commonjs/src/runtime/native/styles/functions/string-functions.d.ts.map +1 -0
  552. package/dist/typescript/commonjs/src/runtime/native/styles/functions/transform-functions.d.ts +5 -0
  553. package/dist/typescript/commonjs/src/runtime/native/styles/functions/transform-functions.d.ts.map +1 -0
  554. package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts +19 -0
  555. package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts.map +1 -0
  556. package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts +18 -0
  557. package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts.map +1 -0
  558. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/_handler.d.ts +11 -0
  559. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/_handler.d.ts.map +1 -0
  560. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/animation.d.ts +4 -0
  561. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/animation.d.ts.map +1 -0
  562. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/border.d.ts +2 -0
  563. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/border.d.ts.map +1 -0
  564. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/box-shadow.d.ts +3 -0
  565. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +1 -0
  566. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/index.d.ts +6 -0
  567. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/index.d.ts.map +1 -0
  568. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/text-shadow.d.ts +2 -0
  569. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +1 -0
  570. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/transform.d.ts +7 -0
  571. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/transform.d.ts.map +1 -0
  572. package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts +6 -0
  573. package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts.map +1 -0
  574. package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts +5 -0
  575. package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts.map +1 -0
  576. package/dist/typescript/commonjs/src/runtime/runtime.d.ts +2 -0
  577. package/dist/typescript/commonjs/src/runtime/runtime.d.ts.map +1 -0
  578. package/dist/typescript/commonjs/src/runtime/runtime.native.d.ts +2 -0
  579. package/dist/typescript/commonjs/src/runtime/runtime.native.d.ts.map +1 -0
  580. package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts +47 -0
  581. package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts.map +1 -0
  582. package/dist/typescript/commonjs/src/runtime/utils/components.d.ts +2 -0
  583. package/dist/typescript/commonjs/src/runtime/utils/components.d.ts.map +1 -0
  584. package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts +23 -0
  585. package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts.map +1 -0
  586. package/dist/typescript/commonjs/src/runtime/utils/index.d.ts +6 -0
  587. package/dist/typescript/commonjs/src/runtime/utils/index.d.ts.map +1 -0
  588. package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts +5 -0
  589. package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts.map +1 -0
  590. package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts +13 -0
  591. package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts.map +1 -0
  592. package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts +4 -0
  593. package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts.map +1 -0
  594. package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts +5 -0
  595. package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts.map +1 -0
  596. package/dist/typescript/commonjs/src/runtime/web/api.d.ts +10 -0
  597. package/dist/typescript/commonjs/src/runtime/web/api.d.ts.map +1 -0
  598. package/dist/typescript/commonjs/src/runtime/web/assign-style.d.ts +2 -0
  599. package/dist/typescript/commonjs/src/runtime/web/assign-style.d.ts.map +1 -0
  600. package/dist/typescript/commonjs/src/runtime/web/index.d.ts +4 -0
  601. package/dist/typescript/commonjs/src/runtime/web/index.d.ts.map +1 -0
  602. package/dist/typescript/commonjs/src/runtime/web/metro.d.ts +2 -0
  603. package/dist/typescript/commonjs/src/runtime/web/metro.d.ts.map +1 -0
  604. package/dist/typescript/commonjs/src/style-collection/index.d.ts +14 -0
  605. package/dist/typescript/commonjs/src/style-collection/index.d.ts.map +1 -0
  606. package/dist/typescript/commonjs/src/style-collection/root.d.ts +11 -0
  607. package/dist/typescript/commonjs/src/style-collection/root.d.ts.map +1 -0
  608. package/dist/typescript/module/example/app.config.d.ts +4 -0
  609. package/dist/typescript/module/example/app.config.d.ts.map +1 -0
  610. package/dist/typescript/module/example/src/App.d.ts +3 -0
  611. package/dist/typescript/module/example/src/App.d.ts.map +1 -0
  612. package/dist/typescript/module/package.json +1 -0
  613. package/dist/typescript/module/src/babel/allowedModules.d.ts +2 -0
  614. package/dist/typescript/module/src/babel/allowedModules.d.ts.map +1 -0
  615. package/dist/typescript/module/src/babel/helpers.d.ts +13 -0
  616. package/dist/typescript/module/src/babel/helpers.d.ts.map +1 -0
  617. package/dist/typescript/module/src/babel/import-plugin.d.ts +6 -0
  618. package/dist/typescript/module/src/babel/import-plugin.d.ts.map +1 -0
  619. package/dist/typescript/module/src/babel/index.d.ts +1 -0
  620. package/dist/typescript/module/src/babel/index.d.ts.map +1 -0
  621. package/dist/typescript/module/src/babel/react-native-web.d.ts +8 -0
  622. package/dist/typescript/module/src/babel/react-native-web.d.ts.map +1 -0
  623. package/dist/typescript/module/src/babel/react-native.d.ts +8 -0
  624. package/dist/typescript/module/src/babel/react-native.d.ts.map +1 -0
  625. package/dist/typescript/module/src/compiler/atRules.d.ts +34 -0
  626. package/dist/typescript/module/src/compiler/atRules.d.ts.map +1 -0
  627. package/dist/typescript/module/src/compiler/compiler.d.ts +17 -0
  628. package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -0
  629. package/dist/typescript/module/src/compiler/compiler.types.d.ts +197 -0
  630. package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -0
  631. package/dist/typescript/module/src/compiler/container-query.d.ts +5 -0
  632. package/dist/typescript/module/src/compiler/container-query.d.ts.map +1 -0
  633. package/dist/typescript/module/src/compiler/declarations.d.ts +120 -0
  634. package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -0
  635. package/dist/typescript/module/src/compiler/functions-web.d.ts +11 -0
  636. package/dist/typescript/module/src/compiler/functions-web.d.ts.map +1 -0
  637. package/dist/typescript/module/src/compiler/functions.d.ts +11 -0
  638. package/dist/typescript/module/src/compiler/functions.d.ts.map +1 -0
  639. package/dist/typescript/module/src/compiler/index.d.ts +7 -0
  640. package/dist/typescript/module/src/compiler/index.d.ts.map +1 -0
  641. package/dist/typescript/module/src/compiler/inheritance.test.d.ts +2 -0
  642. package/dist/typescript/module/src/compiler/inheritance.test.d.ts.map +1 -0
  643. package/dist/typescript/module/src/compiler/keyframes.d.ts +7 -0
  644. package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -0
  645. package/dist/typescript/module/src/compiler/media-query.d.ts +7 -0
  646. package/dist/typescript/module/src/compiler/media-query.d.ts.map +1 -0
  647. package/dist/typescript/module/src/compiler/pseudo-elements.d.ts +4 -0
  648. package/dist/typescript/module/src/compiler/pseudo-elements.d.ts.map +1 -0
  649. package/dist/typescript/module/src/compiler/selector-builder.d.ts +24 -0
  650. package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -0
  651. package/dist/typescript/module/src/compiler/selectors.d.ts +24 -0
  652. package/dist/typescript/module/src/compiler/selectors.d.ts.map +1 -0
  653. package/dist/typescript/module/src/compiler/split-by-delimiter.d.ts +2 -0
  654. package/dist/typescript/module/src/compiler/split-by-delimiter.d.ts.map +1 -0
  655. package/dist/typescript/module/src/compiler/stylesheet.d.ts +68 -0
  656. package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -0
  657. package/dist/typescript/module/src/compiler/supports.d.ts +3 -0
  658. package/dist/typescript/module/src/compiler/supports.d.ts.map +1 -0
  659. package/dist/typescript/module/src/components/ActivityIndicator.d.ts +13 -0
  660. package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -0
  661. package/dist/typescript/module/src/components/Button.d.ts +13 -0
  662. package/dist/typescript/module/src/components/Button.d.ts.map +1 -0
  663. package/dist/typescript/module/src/components/FlatList.d.ts +10 -0
  664. package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -0
  665. package/dist/typescript/module/src/components/Image.d.ts +8 -0
  666. package/dist/typescript/module/src/components/Image.d.ts.map +1 -0
  667. package/dist/typescript/module/src/components/Switch.d.ts +8 -0
  668. package/dist/typescript/module/src/components/Switch.d.ts.map +1 -0
  669. package/dist/typescript/module/src/components/Text.d.ts +8 -0
  670. package/dist/typescript/module/src/components/Text.d.ts.map +1 -0
  671. package/dist/typescript/module/src/components/TextInput.d.ts +8 -0
  672. package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -0
  673. package/dist/typescript/module/src/components/View.d.ts +8 -0
  674. package/dist/typescript/module/src/components/View.d.ts.map +1 -0
  675. package/dist/typescript/module/src/components/index.d.ts +10 -0
  676. package/dist/typescript/module/src/components/index.d.ts.map +1 -0
  677. package/dist/typescript/module/src/components/react-native-safe-area-context.d.ts +2 -0
  678. package/dist/typescript/module/src/components/react-native-safe-area-context.d.ts.map +1 -0
  679. package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts +4 -0
  680. package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts.map +1 -0
  681. package/dist/typescript/module/src/index.d.ts +3 -0
  682. package/dist/typescript/module/src/index.d.ts.map +1 -0
  683. package/dist/typescript/module/src/jest/index.d.ts +30 -0
  684. package/dist/typescript/module/src/jest/index.d.ts.map +1 -0
  685. package/dist/typescript/module/src/jest/setup.d.ts +1 -0
  686. package/dist/typescript/module/src/jest/setup.d.ts.map +1 -0
  687. package/dist/typescript/module/src/jest/setupAfterEnv.d.ts +1 -0
  688. package/dist/typescript/module/src/jest/setupAfterEnv.d.ts.map +1 -0
  689. package/dist/typescript/module/src/metro/index.d.ts +11 -0
  690. package/dist/typescript/module/src/metro/index.d.ts.map +1 -0
  691. package/dist/typescript/module/src/metro/injection-code.d.ts +13 -0
  692. package/dist/typescript/module/src/metro/injection-code.d.ts.map +1 -0
  693. package/dist/typescript/module/src/metro/metro-transformer.d.ts +6 -0
  694. package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -0
  695. package/dist/typescript/module/src/metro/picocolors.d.ts +27 -0
  696. package/dist/typescript/module/src/metro/picocolors.d.ts.map +1 -0
  697. package/dist/typescript/module/src/metro/resolver.d.ts +4 -0
  698. package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -0
  699. package/dist/typescript/module/src/metro/stringify.d.ts +7 -0
  700. package/dist/typescript/module/src/metro/stringify.d.ts.map +1 -0
  701. package/dist/typescript/module/src/metro/typescript.d.ts +2 -0
  702. package/dist/typescript/module/src/metro/typescript.d.ts.map +1 -0
  703. package/dist/typescript/module/src/poison.pill.d.ts +2 -0
  704. package/dist/typescript/module/src/poison.pill.d.ts.map +1 -0
  705. package/dist/typescript/module/src/runtime/index.d.ts +7 -0
  706. package/dist/typescript/module/src/runtime/index.d.ts.map +1 -0
  707. package/dist/typescript/module/src/runtime/native/api.d.ts +19 -0
  708. package/dist/typescript/module/src/runtime/native/api.d.ts.map +1 -0
  709. package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts +5 -0
  710. package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts.map +1 -0
  711. package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts +7 -0
  712. package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts.map +1 -0
  713. package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts +5 -0
  714. package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts.map +1 -0
  715. package/dist/typescript/module/src/runtime/native/conditions/index.d.ts +6 -0
  716. package/dist/typescript/module/src/runtime/native/conditions/index.d.ts.map +1 -0
  717. package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts +4 -0
  718. package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts.map +1 -0
  719. package/dist/typescript/module/src/runtime/native/index.d.ts +4 -0
  720. package/dist/typescript/module/src/runtime/native/index.d.ts.map +1 -0
  721. package/dist/typescript/module/src/runtime/native/metro.d.ts +2 -0
  722. package/dist/typescript/module/src/runtime/native/metro.d.ts.map +1 -0
  723. package/dist/typescript/module/src/runtime/native/react/interaction.d.ts +6 -0
  724. package/dist/typescript/module/src/runtime/native/react/interaction.d.ts.map +1 -0
  725. package/dist/typescript/module/src/runtime/native/react/rules.d.ts +7 -0
  726. package/dist/typescript/module/src/runtime/native/react/rules.d.ts.map +1 -0
  727. package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts +38 -0
  728. package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts.map +1 -0
  729. package/dist/typescript/module/src/runtime/native/react/usePassthrough.d.ts +4 -0
  730. package/dist/typescript/module/src/runtime/native/react/usePassthrough.d.ts.map +1 -0
  731. package/dist/typescript/module/src/runtime/native/reactivity.d.ts +55 -0
  732. package/dist/typescript/module/src/runtime/native/reactivity.d.ts.map +1 -0
  733. package/dist/typescript/module/src/runtime/native/reanimated.d.ts +5 -0
  734. package/dist/typescript/module/src/runtime/native/reanimated.d.ts.map +1 -0
  735. package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts +10 -0
  736. package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts.map +1 -0
  737. package/dist/typescript/module/src/runtime/native/styles/constants.d.ts +3 -0
  738. package/dist/typescript/module/src/runtime/native/styles/constants.d.ts.map +1 -0
  739. package/dist/typescript/module/src/runtime/native/styles/defaults.d.ts +3 -0
  740. package/dist/typescript/module/src/runtime/native/styles/defaults.d.ts.map +1 -0
  741. package/dist/typescript/module/src/runtime/native/styles/functions/animation-timing.d.ts +4 -0
  742. package/dist/typescript/module/src/runtime/native/styles/functions/animation-timing.d.ts.map +1 -0
  743. package/dist/typescript/module/src/runtime/native/styles/functions/calc.d.ts +3 -0
  744. package/dist/typescript/module/src/runtime/native/styles/functions/calc.d.ts.map +1 -0
  745. package/dist/typescript/module/src/runtime/native/styles/functions/filters.d.ts +12 -0
  746. package/dist/typescript/module/src/runtime/native/styles/functions/filters.d.ts.map +1 -0
  747. package/dist/typescript/module/src/runtime/native/styles/functions/index.d.ts +8 -0
  748. package/dist/typescript/module/src/runtime/native/styles/functions/index.d.ts.map +1 -0
  749. package/dist/typescript/module/src/runtime/native/styles/functions/numeric-functions.d.ts +5 -0
  750. package/dist/typescript/module/src/runtime/native/styles/functions/numeric-functions.d.ts.map +1 -0
  751. package/dist/typescript/module/src/runtime/native/styles/functions/platform-functions.d.ts +8 -0
  752. package/dist/typescript/module/src/runtime/native/styles/functions/platform-functions.d.ts.map +1 -0
  753. package/dist/typescript/module/src/runtime/native/styles/functions/string-functions.d.ts +3 -0
  754. package/dist/typescript/module/src/runtime/native/styles/functions/string-functions.d.ts.map +1 -0
  755. package/dist/typescript/module/src/runtime/native/styles/functions/transform-functions.d.ts +5 -0
  756. package/dist/typescript/module/src/runtime/native/styles/functions/transform-functions.d.ts.map +1 -0
  757. package/dist/typescript/module/src/runtime/native/styles/index.d.ts +19 -0
  758. package/dist/typescript/module/src/runtime/native/styles/index.d.ts.map +1 -0
  759. package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts +18 -0
  760. package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts.map +1 -0
  761. package/dist/typescript/module/src/runtime/native/styles/shorthands/_handler.d.ts +11 -0
  762. package/dist/typescript/module/src/runtime/native/styles/shorthands/_handler.d.ts.map +1 -0
  763. package/dist/typescript/module/src/runtime/native/styles/shorthands/animation.d.ts +4 -0
  764. package/dist/typescript/module/src/runtime/native/styles/shorthands/animation.d.ts.map +1 -0
  765. package/dist/typescript/module/src/runtime/native/styles/shorthands/border.d.ts +2 -0
  766. package/dist/typescript/module/src/runtime/native/styles/shorthands/border.d.ts.map +1 -0
  767. package/dist/typescript/module/src/runtime/native/styles/shorthands/box-shadow.d.ts +3 -0
  768. package/dist/typescript/module/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +1 -0
  769. package/dist/typescript/module/src/runtime/native/styles/shorthands/index.d.ts +6 -0
  770. package/dist/typescript/module/src/runtime/native/styles/shorthands/index.d.ts.map +1 -0
  771. package/dist/typescript/module/src/runtime/native/styles/shorthands/text-shadow.d.ts +2 -0
  772. package/dist/typescript/module/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +1 -0
  773. package/dist/typescript/module/src/runtime/native/styles/shorthands/transform.d.ts +7 -0
  774. package/dist/typescript/module/src/runtime/native/styles/shorthands/transform.d.ts.map +1 -0
  775. package/dist/typescript/module/src/runtime/native/styles/units.d.ts +6 -0
  776. package/dist/typescript/module/src/runtime/native/styles/units.d.ts.map +1 -0
  777. package/dist/typescript/module/src/runtime/native/styles/variables.d.ts +5 -0
  778. package/dist/typescript/module/src/runtime/native/styles/variables.d.ts.map +1 -0
  779. package/dist/typescript/module/src/runtime/runtime.d.ts +2 -0
  780. package/dist/typescript/module/src/runtime/runtime.d.ts.map +1 -0
  781. package/dist/typescript/module/src/runtime/runtime.native.d.ts +2 -0
  782. package/dist/typescript/module/src/runtime/runtime.native.d.ts.map +1 -0
  783. package/dist/typescript/module/src/runtime/runtime.types.d.ts +47 -0
  784. package/dist/typescript/module/src/runtime/runtime.types.d.ts.map +1 -0
  785. package/dist/typescript/module/src/runtime/utils/components.d.ts +2 -0
  786. package/dist/typescript/module/src/runtime/utils/components.d.ts.map +1 -0
  787. package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts +23 -0
  788. package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts.map +1 -0
  789. package/dist/typescript/module/src/runtime/utils/index.d.ts +6 -0
  790. package/dist/typescript/module/src/runtime/utils/index.d.ts.map +1 -0
  791. package/dist/typescript/module/src/runtime/utils/objects.d.ts +5 -0
  792. package/dist/typescript/module/src/runtime/utils/objects.d.ts.map +1 -0
  793. package/dist/typescript/module/src/runtime/utils/specificity.d.ts +13 -0
  794. package/dist/typescript/module/src/runtime/utils/specificity.d.ts.map +1 -0
  795. package/dist/typescript/module/src/runtime/utils/style-value.d.ts +4 -0
  796. package/dist/typescript/module/src/runtime/utils/style-value.d.ts.map +1 -0
  797. package/dist/typescript/module/src/runtime/utils/utils.types.d.ts +5 -0
  798. package/dist/typescript/module/src/runtime/utils/utils.types.d.ts.map +1 -0
  799. package/dist/typescript/module/src/runtime/web/api.d.ts +10 -0
  800. package/dist/typescript/module/src/runtime/web/api.d.ts.map +1 -0
  801. package/dist/typescript/module/src/runtime/web/assign-style.d.ts +2 -0
  802. package/dist/typescript/module/src/runtime/web/assign-style.d.ts.map +1 -0
  803. package/dist/typescript/module/src/runtime/web/index.d.ts +4 -0
  804. package/dist/typescript/module/src/runtime/web/index.d.ts.map +1 -0
  805. package/dist/typescript/module/src/runtime/web/metro.d.ts +2 -0
  806. package/dist/typescript/module/src/runtime/web/metro.d.ts.map +1 -0
  807. package/dist/typescript/module/src/style-collection/index.d.ts +14 -0
  808. package/dist/typescript/module/src/style-collection/index.d.ts.map +1 -0
  809. package/dist/typescript/module/src/style-collection/root.d.ts +11 -0
  810. package/dist/typescript/module/src/style-collection/root.d.ts.map +1 -0
  811. package/package.json +262 -47
  812. package/src/babel/allowedModules.ts +24 -0
  813. package/src/babel/helpers.ts +40 -0
  814. package/src/babel/import-plugin.ts +176 -0
  815. package/src/babel/index.ts +9 -0
  816. package/src/babel/react-native-web.ts +226 -0
  817. package/src/babel/react-native.ts +226 -0
  818. package/src/compiler/atRules.ts +158 -0
  819. package/src/compiler/compiler.ts +306 -0
  820. package/src/compiler/compiler.types.ts +266 -0
  821. package/src/compiler/container-query.ts +97 -0
  822. package/src/compiler/declarations.ts +3237 -0
  823. package/src/compiler/functions-web.ts +44 -0
  824. package/src/compiler/functions.ts +64 -0
  825. package/src/compiler/index.ts +7 -0
  826. package/src/compiler/inheritance.test.ts +121 -0
  827. package/src/compiler/keyframes.ts +86 -0
  828. package/src/compiler/media-query.ts +251 -0
  829. package/src/compiler/pseudo-elements.ts +54 -0
  830. package/src/compiler/selector-builder.ts +586 -0
  831. package/src/compiler/selectors.ts +505 -0
  832. package/src/compiler/split-by-delimiter.ts +19 -0
  833. package/src/compiler/stylesheet.ts +681 -0
  834. package/src/compiler/supports.ts +26 -0
  835. package/src/components/ActivityIndicator.tsx +27 -0
  836. package/src/components/Button.tsx +22 -0
  837. package/src/components/FlatList.tsx +21 -0
  838. package/src/components/Image.tsx +17 -0
  839. package/src/components/Switch.tsx +17 -0
  840. package/src/components/Text.tsx +17 -0
  841. package/src/components/TextInput.tsx +17 -0
  842. package/src/components/View.tsx +17 -0
  843. package/src/components/index.tsx +10 -0
  844. package/src/components/react-native-safe-area-context.native.tsx +40 -0
  845. package/src/components/react-native-safe-area-context.tsx +1 -0
  846. package/src/index.ts +3 -0
  847. package/src/jest/expect.d.ts +1 -0
  848. package/src/jest/index.ts +75 -0
  849. package/src/jest/setup.ts +1 -0
  850. package/src/jest/setupAfterEnv.ts +13 -0
  851. package/src/metro/index.ts +239 -0
  852. package/src/metro/injection-code.ts +34 -0
  853. package/src/metro/metro-transformer.ts +48 -0
  854. package/src/metro/picocolors.ts +77 -0
  855. package/src/metro/resolver.ts +97 -0
  856. package/src/metro/stringify.ts +59 -0
  857. package/src/metro/typescript.ts +73 -0
  858. package/src/poison.pill.ts +36 -0
  859. package/src/runtime/index.ts +7 -0
  860. package/src/runtime/native/api.ts +108 -0
  861. package/src/runtime/native/conditions/attributes.ts +52 -0
  862. package/src/runtime/native/conditions/container-query.ts +162 -0
  863. package/src/runtime/native/conditions/guards.ts +44 -0
  864. package/src/runtime/native/conditions/index.ts +54 -0
  865. package/src/runtime/native/conditions/media-query.ts +98 -0
  866. package/src/runtime/native/index.ts +4 -0
  867. package/src/runtime/native/metro.ts +2 -0
  868. package/src/runtime/native/react/interaction.ts +90 -0
  869. package/src/runtime/native/react/rules.ts +336 -0
  870. package/src/runtime/native/react/useNativeCss.ts +203 -0
  871. package/src/runtime/native/react/usePassthrough.ts +51 -0
  872. package/src/runtime/native/reactivity.ts +255 -0
  873. package/src/runtime/native/reanimated.ts +22 -0
  874. package/src/runtime/native/styles/calculate-props.ts +197 -0
  875. package/src/runtime/native/styles/constants.ts +2 -0
  876. package/src/runtime/native/styles/defaults.ts +79 -0
  877. package/src/runtime/native/styles/functions/animation-timing.ts +44 -0
  878. package/src/runtime/native/styles/functions/calc.ts +121 -0
  879. package/src/runtime/native/styles/functions/filters.ts +98 -0
  880. package/src/runtime/native/styles/functions/index.ts +7 -0
  881. package/src/runtime/native/styles/functions/numeric-functions.ts +38 -0
  882. package/src/runtime/native/styles/functions/platform-functions.ts +50 -0
  883. package/src/runtime/native/styles/functions/string-functions.ts +22 -0
  884. package/src/runtime/native/styles/functions/transform-functions.ts +84 -0
  885. package/src/runtime/native/styles/index.ts +197 -0
  886. package/src/runtime/native/styles/resolve.ts +162 -0
  887. package/src/runtime/native/styles/shorthands/_handler.ts +121 -0
  888. package/src/runtime/native/styles/shorthands/animation.ts +123 -0
  889. package/src/runtime/native/styles/shorthands/border.ts +10 -0
  890. package/src/runtime/native/styles/shorthands/box-shadow.ts +74 -0
  891. package/src/runtime/native/styles/shorthands/index.ts +5 -0
  892. package/src/runtime/native/styles/shorthands/text-shadow.ts +17 -0
  893. package/src/runtime/native/styles/shorthands/transform.ts +23 -0
  894. package/src/runtime/native/styles/units.ts +57 -0
  895. package/src/runtime/native/styles/variables.ts +88 -0
  896. package/src/runtime/runtime.native.ts +1 -0
  897. package/src/runtime/runtime.ts +1 -0
  898. package/src/runtime/runtime.types.ts +130 -0
  899. package/src/runtime/utils/components.ts +15 -0
  900. package/src/runtime/utils/dot-notation.types.ts +118 -0
  901. package/src/runtime/utils/index.ts +5 -0
  902. package/src/runtime/utils/objects.ts +109 -0
  903. package/src/runtime/utils/specificity.ts +45 -0
  904. package/src/runtime/utils/style-value.ts +24 -0
  905. package/src/runtime/utils/utils.types.ts +19 -0
  906. package/src/runtime/web/api.ts +88 -0
  907. package/src/runtime/web/assign-style.ts +26 -0
  908. package/src/runtime/web/index.ts +5 -0
  909. package/src/runtime/web/metro.ts +2 -0
  910. package/src/style-collection/index.ts +142 -0
  911. package/src/style-collection/root.ts +35 -0
  912. package/types.d.ts +70 -0
  913. package/.babelrc +0 -17
  914. package/.editorconfig +0 -17
  915. package/.eslintignore +0 -3
  916. package/.eslintrc +0 -39
  917. package/.npmignore +0 -7
  918. package/build/index.js +0 -299
  919. package/build/utils.js +0 -61
  920. package/circle.yml +0 -31
  921. package/jsconfig.json +0 -9
  922. package/login.sh +0 -11
  923. package/src/index.js +0 -184
  924. package/src/utils.js +0 -32
  925. package/test/rnc.test.js +0 -258
  926. package/yarn.lock +0 -3333
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+
3
+ import { dirname, resolve } from "path";
4
+ import { allowedModules } from "./allowedModules.js";
5
+ function parseReactNativeSource(source, filename) {
6
+ if (source.startsWith(".")) {
7
+ source = resolve(dirname(filename), source);
8
+ const internalPath = source.split("react-native/Libraries/Components/")[1];
9
+ if (!internalPath) {
10
+ return;
11
+ }
12
+
13
+ // Strip the absolute system filepath
14
+ source = `react-native/Libraries/Components/${internalPath}`;
15
+ }
16
+ if (source === "react-native") {
17
+ return {
18
+ source: "react-native-css/components"
19
+ };
20
+ } else if (source.startsWith("react-native/")) {
21
+ const name = source.split("/").at(-1);
22
+ if (!name || !allowedModules.has(name)) {
23
+ return;
24
+ }
25
+ return {
26
+ source: `react-native-css/components/${name}`,
27
+ name
28
+ };
29
+ }
30
+ return;
31
+ }
32
+ export function handleReactNativeImport(declaration, t, filename) {
33
+ const {
34
+ specifiers,
35
+ source
36
+ } = declaration;
37
+ const rnwSource = parseReactNativeSource(source.value, filename);
38
+ if (!rnwSource) {
39
+ return;
40
+ }
41
+ if (specifiers.length === 0) {
42
+ return [t.importDeclaration([], t.stringLiteral("react-native-css/components"))];
43
+ }
44
+ const statements = [];
45
+ for (const specifier of specifiers) {
46
+ if (t.isImportDefaultSpecifier(specifier)) {
47
+ const {
48
+ source: newSource,
49
+ name
50
+ } = rnwSource;
51
+ if (!name) {
52
+ statements.push(t.importDeclaration([t.importDefaultSpecifier(specifier.local)], t.stringLiteral(newSource)));
53
+ } else {
54
+ statements.push(t.importDeclaration([t.importSpecifier(specifier.local, specifier.local)], t.stringLiteral(`react-native-css/components/${name}`)));
55
+ }
56
+ } else if (t.isImportNamespaceSpecifier(specifier)) {
57
+ statements.push(t.importDeclaration([specifier], t.stringLiteral("react-native-css/components")));
58
+ } else {
59
+ const localName = t.isStringLiteral(specifier.imported) ? specifier.imported.value : specifier.imported.name;
60
+ if (!allowedModules.has(localName)) {
61
+ statements.push(t.importDeclaration([specifier], source));
62
+ } else {
63
+ statements.push(t.importDeclaration([t.importSpecifier(specifier.local, specifier.imported)], t.stringLiteral(`react-native-css/components/${localName}`)));
64
+ }
65
+ }
66
+ }
67
+ return statements;
68
+ }
69
+ export function handleReactNativeIdentifierRequire(path, t, id, source, filename) {
70
+ const parsedSource = parseReactNativeSource(source, filename);
71
+ if (!parsedSource) {
72
+ return;
73
+ }
74
+ const {
75
+ source: newSource,
76
+ name
77
+ } = parsedSource;
78
+ if (name) {
79
+ return [t.variableDeclaration(path.node.kind, [t.variableDeclarator(t.objectPattern([name === id ? t.objectProperty(t.identifier(name), t.identifier(id), false, true) : t.objectProperty(t.identifier(name), t.identifier(id))]), t.callExpression(t.identifier("require"), [t.stringLiteral(newSource)]))])];
80
+ } else {
81
+ return [t.variableDeclaration(path.node.kind, [t.variableDeclarator(t.identifier(id), t.callExpression(t.identifier("require"), [t.stringLiteral(newSource)]))])];
82
+ }
83
+ }
84
+ export function handleReactNativeObjectPatternRequire(path, t, id, source, filename) {
85
+ const parsedSource = parseReactNativeSource(source, filename);
86
+
87
+ // Don't handle `const { Text } = require('react-native/Libraries/Text/Text');` - we only handle package exports
88
+ if (!parsedSource || parsedSource.name) {
89
+ return;
90
+ }
91
+ const statements = [];
92
+ for (const identifier of id.properties) {
93
+ if (t.isRestElement(identifier)) {
94
+ // Bail out on `const { ...rest } = require('react-native');`
95
+ // We need to exit as we do not handle `const { Text, ...rest } = require('react-native');`
96
+ return;
97
+ } else if (!(t.isIdentifier(identifier.value) && t.isIdentifier(identifier.key))) {
98
+ // Bail out on anything that isn't `const { <key>: <identifier> } = require('react-native');`
99
+ return;
100
+ } else {
101
+ const name = identifier.key.name;
102
+ if (!allowedModules.has(name)) {
103
+ statements.push(t.variableDeclaration(path.node.kind, [t.variableDeclarator(t.objectPattern([identifier]), t.callExpression(t.identifier("require"), [t.stringLiteral(source)]))]));
104
+ } else {
105
+ const newSourceWithName = `react-native-css/components/${name}`;
106
+ statements.push(t.variableDeclaration(path.node.kind, [t.variableDeclarator(t.objectPattern([t.objectProperty(t.identifier(name), t.identifier(identifier.value.name), false, true)]), t.callExpression(t.identifier("require"), [t.stringLiteral(newSourceWithName)]))]));
107
+ }
108
+ }
109
+ }
110
+ return statements;
111
+ }
112
+ //# sourceMappingURL=react-native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["dirname","resolve","allowedModules","parseReactNativeSource","source","filename","startsWith","internalPath","split","name","at","has","handleReactNativeImport","declaration","t","specifiers","rnwSource","value","length","importDeclaration","stringLiteral","statements","specifier","isImportDefaultSpecifier","newSource","push","importDefaultSpecifier","local","importSpecifier","isImportNamespaceSpecifier","localName","isStringLiteral","imported","handleReactNativeIdentifierRequire","path","id","parsedSource","variableDeclaration","node","kind","variableDeclarator","objectPattern","objectProperty","identifier","callExpression","handleReactNativeObjectPatternRequire","properties","isRestElement","isIdentifier","key","newSourceWithName"],"sourceRoot":"../../../src","sources":["babel/react-native.ts"],"mappings":";;AAAA,SAASA,OAAO,EAAEC,OAAO,QAAQ,MAAM;AAUvC,SAASC,cAAc,QAAQ,qBAAkB;AAIjD,SAASC,sBAAsBA,CAACC,MAAc,EAAEC,QAAgB,EAAE;EAChE,IAAID,MAAM,CAACE,UAAU,CAAC,GAAG,CAAC,EAAE;IAC1BF,MAAM,GAAGH,OAAO,CAACD,OAAO,CAACK,QAAQ,CAAC,EAAED,MAAM,CAAC;IAE3C,MAAMG,YAAY,GAAGH,MAAM,CAACI,KAAK,CAAC,oCAAoC,CAAC,CAAC,CAAC,CAAC;IAC1E,IAAI,CAACD,YAAY,EAAE;MACjB;IACF;;IAEA;IACAH,MAAM,GAAG,qCAAqCG,YAAY,EAAE;EAC9D;EAEA,IAAIH,MAAM,KAAK,cAAc,EAAE;IAC7B,OAAO;MAAEA,MAAM,EAAE;IAA8B,CAAC;EAClD,CAAC,MAAM,IAAIA,MAAM,CAACE,UAAU,CAAC,eAAe,CAAC,EAAE;IAC7C,MAAMG,IAAI,GAAGL,MAAM,CAACI,KAAK,C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AC,SAAS,CAAC,EAAE,CACxC7B,CAAC,CAACM,aAAa,CAAC8B,iBAAiB,CAAC,CACnC,CACH,CAAC,CACF,CACH,CAAC;MACH;IACF;EACF;EAEA,OAAO7B,UAAU;AACnB","ignoreList":[]}
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+
3
+ import { toRNProperty } from "./selectors.js";
4
+ import { splitByDelimiter } from "./split-by-delimiter.js";
5
+
6
+ /***********************************************
7
+ * @react-native *
8
+ ***********************************************/
9
+
10
+ export function maybeMutateReactNativeOptions(rule, builder) {
11
+ if (rule.type !== "custom" || rule.value?.name !== "react-native") {
12
+ return;
13
+ }
14
+ const {
15
+ declarations
16
+ } = rule.value.body.value;
17
+ if (!declarations) return;
18
+ for (const declaration of declarations) {
19
+ if (declaration.property !== "custom") continue;
20
+ switch (declaration.value.name) {
21
+ case "preserve-variables":
22
+ {
23
+ declaration.value.value.forEach(token => {
24
+ if (token.type !== "dashed-ident") {
25
+ return;
26
+ }
27
+ if (token.value !== "true" && token.value !== "false") {
28
+ return;
29
+ }
30
+ builder.setOptions("preserveVariables", token.value === "true");
31
+ });
32
+ break;
33
+ }
34
+ default:
35
+ break;
36
+ }
37
+ }
38
+ }
39
+
40
+ /***********************************************
41
+ * @prop *
42
+ ***********************************************/
43
+
44
+ function isPropAtRule(rule) {
45
+ return rule.type === "unknown" && rule.value.name === "prop";
46
+ }
47
+ export function parsePropAtRule(rules) {
48
+ // Include any default mapping here
49
+ const mapping = {
50
+ "caret-color": ["cursorColor"],
51
+ "fill": ["fill"],
52
+ "stroke": ["stroke"],
53
+ "stroke-width": ["strokeWidth"],
54
+ "-webkit-line-clamp": ["numberOfLines"],
55
+ "-rn-ripple-color": ["android_ripple", "color"],
56
+ "-rn-ripple-style": ["android_ripple", "borderless"]
57
+ };
58
+ if (!rules) return mapping;
59
+ for (const rule of rules) {
60
+ if (!isPropAtRule(rule)) continue;
61
+ if (rule.value.prelude.length > 0) {
62
+ const prelude = rule.value.prelude.filter(item => {
63
+ return item.value.type !== "white-space";
64
+ });
65
+ propAtRuleBlock(prelude, mapping);
66
+ } else if (rule.value.block) {
67
+ // Remove all whitespace tokens
68
+ const blocks = rule.value.block.filter(item => {
69
+ return item.value.type !== "white-space";
70
+ });
71
+
72
+ // Separate each rule, delimited by a semicolon
73
+ const blockRules = splitByDelimiter(blocks, item => {
74
+ return item.value.type === "semicolon";
75
+ });
76
+ for (const block of blockRules) {
77
+ propAtRuleBlock(block, mapping);
78
+ }
79
+ }
80
+ }
81
+ return mapping;
82
+ }
83
+ function propAtRuleBlock(token, mapping = {}) {
84
+ const [from, to] = splitByDelimiter(token, item => {
85
+ return item.value.type === "colon";
86
+ });
87
+ if (!from || from.length !== 1) {
88
+ return mapping;
89
+ }
90
+ const fromToken = from[0];
91
+ if (!fromToken || fromToken.value.type !== "ident") {
92
+ return mapping;
93
+ }
94
+ if (!to) {
95
+ mapping["*"] = toRNProperty(fromToken.value.value);
96
+ return mapping;
97
+ }
98
+ mapping[toRNProperty(fromToken.value.value)] = to.flatMap((item, index) => {
99
+ switch (item.value.type) {
100
+ case "delim":
101
+ return index === 0 && item.value.value === "*" ? ["*"] : [];
102
+ case "ident":
103
+ return [toRNProperty(item.value.value)];
104
+ default:
105
+ return [];
106
+ }
107
+ });
108
+ return mapping;
109
+ }
110
+ //# sourceMappingURL=atRules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["toRNProperty","splitByDelimiter","maybeMutateReactNativeOptions","rule","builder","type","value","name","declarations","body","declaration","property","forEach","token","setOptions","isPropAtRule","parsePropAtRule","rules","mapping","prelude","length","filter","item","propAtRuleBlock","block","blocks","blockRules","from","to","fromToken","flatMap","index"],"sourceRoot":"../../../src","sources":["compiler/atRules.ts"],"mappings":";;AAQA,SAASA,YAAY,QAAQ,gBAAa;AAC1C,SAASC,gBAAgB,QAAQ,yBAAsB;;AAYvD;AACA;AACA;;AAcA,OAAO,SAASC,6BAA6BA,CAC3CC,IAA8B,EAC9BC,OAA0B,EAC1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C,CAAC;EAEF,IAAI,CAACsB,IAAI,IAAIA,IAAI,CAACP,MAAM,KAAK,CAAC,EAAE;IAC9B,OAAOF,OAAO;EAChB;EAEA,MAAMW,SAAS,GAAGF,IAAI,CAAC,CAAC,CAAC;EACzB,IAAI,CAACE,SAAS,IAAIA,SAAS,CAACvB,KAAK,CAACD,IAAI,KAAK,OAAO,EAAE;IAClD,OAAOa,OAAO;EAChB;EAEA,IAAI,CAACU,EAAE,EAAE;IACPV,OAAO,CAAC,GAAG,CAAC,GAAGlB,YAAY,CAAC6B,SAAS,CAACvB,KAAK,CAACA,KAAK,CAAC;IAClD,OAAOY,OAAO;EAChB;EAEAA,OAAO,CAAClB,YAAY,CAAC6B,SAAS,CAACvB,KAAK,CAACA,KAAK,CAAC,CAAC,GAAGsB,EAAE,CAACE,OAAO,CAAC,CAACR,IAAI,EAAES,KAAK,KAAK;IACzE,QAAQT,IAAI,CAAChB,KAAK,CAACD,IAAI;MACrB,KAAK,OAAO;QACV,OAAO0B,KAAK,KAAK,CAAC,IAAIT,IAAI,CAAChB,KAAK,CAACA,KAAK,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE;MAC7D,KAAK,OAAO;QACV,OAAO,CAACN,YAAY,CAACsB,IAAI,CAAChB,KAAK,CAACA,KAAK,CAAC,CAAC;MACzC;QACE,OAAO,EAAE;IACb;EACF,CAAC,CAAC;EAEF,OAAOY,OAAO;AAChB","ignoreList":[]}
@@ -0,0 +1,276 @@
1
+ "use strict";
2
+
3
+ /* eslint-disable */
4
+ import { inspect } from "node:util";
5
+ import { debug } from "debug";
6
+ import { transform as lightningcss } from "lightningcss";
7
+ import { maybeMutateReactNativeOptions, parsePropAtRule } from "./atRules.js";
8
+ import { parseContainerCondition } from "./container-query.js";
9
+ import { parseDeclaration } from "./declarations.js";
10
+ import { extractKeyFrames } from "./keyframes.js";
11
+ import { parseMediaQuery } from "./media-query.js";
12
+ import { StylesheetBuilder } from "./stylesheet.js";
13
+ import { supportsConditionValid } from "./supports.js";
14
+ const defaultLogger = debug("react-native-css:compiler");
15
+
16
+ /**
17
+ * Converts a CSS file to a collection of style declarations that can be used with the StyleSheet API
18
+ *
19
+ * @param code - The CSS file contents
20
+ * @param options - Compiler options
21
+ * @returns A `ReactNativeCssStyleSheet` that can be passed to `StyleSheet.register` or used with a custom runtime
22
+ */
23
+ export function compile(code, options = {}) {
24
+ const {
25
+ logger = defaultLogger
26
+ } = options;
27
+ const isLoggerEnabled = "enabled" in logger ? logger.enabled : Boolean(logger);
28
+ const features = Object.assign({}, options.features);
29
+ if (options.selectorPrefix && options.selectorPrefix.startsWith(".")) {
30
+ options.selectorPrefix = options.selectorPrefix.slice(1);
31
+ }
32
+ logger(`Features ${JSON.stringify(features)}`);
33
+ if (process.env.NODE_ENV !== "production") {
34
+ if (defaultLogger.enabled) {
35
+ defaultLogger(code.toString());
36
+ }
37
+ }
38
+ const builder = new StylesheetBuilder(options);
39
+ logger(`Start lightningcss`);
40
+ const customAtRules = {
41
+ "react-native": {
42
+ body: "declaration-list"
43
+ }
44
+ };
45
+ const visitor = {
46
+ Rule(rule) {
47
+ maybeMutateReactNativeOptions(rule, builder);
48
+ },
49
+ StyleSheetExit(sheet) {
50
+ if (isLoggerEnabled) {
51
+ logger(`Found ${sheet.rules.length} rules to process`);
52
+ logger(inspect(sheet.rules, {
53
+ depth: null,
54
+ colors: true,
55
+ compact: false
56
+ }));
57
+ }
58
+ for (const rule of sheet.rules) {
59
+ // Extract the style declarations and animations from the current rule
60
+ extractRule(rule, builder);
61
+ // We have processed this rule, so now delete it from the AST
62
+ }
63
+ logger(`Exiting lightningcss`);
64
+ }
65
+ };
66
+ if (options.stripUnusedVariables) {
67
+ const onVarUsage = token => {
68
+ if (token.type === "function") {
69
+ token.value.arguments.forEach(token => onVarUsage(token));
70
+ } else if (token.type === "var") {
71
+ builder.varUsage.add(token.value.name.ident);
72
+ if (token.value.fallback) {
73
+ const fallbackValues = token.value.fallback;
74
+ fallbackValues.forEach(varObj => onVarUsage(varObj));
75
+ }
76
+ }
77
+ };
78
+ visitor.Declaration = decl => {
79
+ if (decl.property === "unparsed" || decl.property === "custom") {
80
+ decl.value.value.forEach(token => onVarUsage(token));
81
+ }
82
+ return decl;
83
+ };
84
+ }
85
+
86
+ // Use the lightningcss library to traverse the CSS AST and extract style declarations and animations
87
+ lightningcss({
88
+ code: typeof code === "string" ? new TextEncoder().encode(code) : code,
89
+ visitor,
90
+ filename: options.filename ?? "style.css",
91
+ projectRoot: options.projectRoot ?? process.cwd()
92
+ });
93
+ return {
94
+ stylesheet: () => builder.getNativeStyleSheet(),
95
+ warnings: () => builder.getWarnings()
96
+ };
97
+ }
98
+
99
+ /**
100
+ * Extracts style declarations and animations from a given CSS rule, based on its type.
101
+ */
102
+ function extractRule(rule, builder) {
103
+ // Check the rule's type to determine which extraction function to call
104
+ switch (rule.type) {
105
+ case "keyframes":
106
+ {
107
+ // If the rule is a keyframe animation, extract it with the `extractKeyFrames` function
108
+ extractKeyFrames(rule.value, builder);
109
+ break;
110
+ }
111
+ case "container":
112
+ {
113
+ // If the rule is a container, extract it with the `extractedContainer` function
114
+ extractContainer(rule.value, builder);
115
+ break;
116
+ }
117
+ case "media":
118
+ {
119
+ // If the rule is a media query, extract it with the `extractMedia` function
120
+ extractMedia(rule.value, builder);
121
+ break;
122
+ }
123
+ case "nested-declarations":
124
+ {
125
+ const value = rule.value;
126
+ const declarationBlock = value.declarations;
127
+ if (declarationBlock) {
128
+ if (declarationBlock.declarations?.length) {
129
+ builder.newNestedRule();
130
+ for (const declaration of declarationBlock.declarations) {
131
+ parseDeclaration(declaration, builder);
132
+ }
133
+ builder.applyRuleToSelectors();
134
+ }
135
+ if (declarationBlock.importantDeclarations?.length) {
136
+ builder.newNestedRule({
137
+ important: true
138
+ });
139
+ for (const declaration of declarationBlock.importantDeclarations) {
140
+ parseDeclaration(declaration, builder);
141
+ }
142
+ builder.applyRuleToSelectors();
143
+ }
144
+ }
145
+ break;
146
+ }
147
+ case "style":
148
+ {
149
+ const value = rule.value;
150
+ const declarationBlock = value.declarations;
151
+ const mapping = parsePropAtRule(value.rules);
152
+
153
+ // If the rule is a style declaration, extract it with the `getExtractedStyle` function and store it in the `declarations` map
154
+ builder = builder.fork("style", value.selectors);
155
+ if (declarationBlock) {
156
+ if (declarationBlock.declarations) {
157
+ builder.newRule(mapping);
158
+ for (const declaration of declarationBlock.declarations) {
159
+ parseDeclaration(declaration, builder);
160
+ }
161
+ builder.applyRuleToSelectors();
162
+ }
163
+ if (declarationBlock.importantDeclarations) {
164
+ builder.newRule(mapping, {
165
+ important: true
166
+ });
167
+ for (const declaration of declarationBlock.importantDeclarations) {
168
+ parseDeclaration(declaration, builder);
169
+ }
170
+ builder.applyRuleToSelectors();
171
+ }
172
+ }
173
+ if (value.rules) {
174
+ for (const nestedRule of value.rules) {
175
+ extractRule(nestedRule, builder);
176
+ }
177
+ }
178
+ break;
179
+ }
180
+ case "layer-block":
181
+ for (const layerRule of rule.value.rules) {
182
+ extractRule(layerRule, builder);
183
+ }
184
+ break;
185
+ case "supports":
186
+ if (supportsConditionValid(rule.value.condition)) {
187
+ for (const layerRule of rule.value.rules) {
188
+ extractRule(layerRule, builder);
189
+ }
190
+ }
191
+ break;
192
+ case "custom":
193
+ case "font-face":
194
+ case "font-palette-values":
195
+ case "font-feature-values":
196
+ case "namespace":
197
+ case "layer-statement":
198
+ case "property":
199
+ case "view-transition":
200
+ case "ignored":
201
+ case "unknown":
202
+ case "import":
203
+ case "page":
204
+ case "counter-style":
205
+ case "moz-document":
206
+ case "nesting":
207
+ case "viewport":
208
+ case "custom-media":
209
+ case "scope":
210
+ case "starting-style":
211
+ break;
212
+ }
213
+ }
214
+
215
+ /**
216
+ * This function takes in a MediaRule object, an CompilerCollection object and a CssToReactNativeRuntimeOptions object,
217
+ * and returns an array of MediaQuery objects representing styles extracted from screen media queries.
218
+ *
219
+ * @param mediaRule - The MediaRule object containing the media query and its rules.
220
+ * @param collection - The CompilerCollection object to use when extracting styles.
221
+ * @param parseOptions - The CssToReactNativeRuntimeOptions object to use when parsing styles.
222
+ *
223
+ * @returns undefined if no screen media queries are found in the mediaRule, else it returns the extracted styles.
224
+ */
225
+ function extractMedia(mediaRule, builder) {
226
+ builder = builder.fork("media");
227
+
228
+ // Initialize an empty array to store screen media queries
229
+ const media = [];
230
+
231
+ // Iterate over all media queries in the mediaRule
232
+ for (const mediaQuery of mediaRule.query.mediaQueries) {
233
+ if (
234
+ // If this is only a media query
235
+ mediaQuery.mediaType === "print" && mediaQuery.qualifier !== "not" ||
236
+ // If this is a @media not print {}
237
+ // We can only do this if there are no conditions, as @media not print and (min-width: 100px) could be valid
238
+ mediaQuery.mediaType !== "print" && mediaQuery.qualifier === "not" && mediaQuery.condition === null) {
239
+ continue;
240
+ }
241
+ media.push(mediaQuery);
242
+ }
243
+ if (media.length === 0) {
244
+ return;
245
+ }
246
+ for (const m of media) {
247
+ parseMediaQuery(m, builder);
248
+ }
249
+
250
+ // Iterate over all rules in the mediaRule and extract their styles using the updated CompilerCollection
251
+ for (const rule of mediaRule.rules) {
252
+ extractRule(rule, builder);
253
+ }
254
+ }
255
+
256
+ /**
257
+ * @param containerRule - The ContainerRule object containing the container query and its rules.
258
+ * @param collection - The CompilerCollection object to use when extracting styles.
259
+ * @param parseOptions - The CssToReactNativeRuntimeOptions object to use when parsing styles.
260
+ */
261
+ function extractContainer(containerRule, builder) {
262
+ builder = builder.fork("container");
263
+
264
+ // Iterate over all rules inside the containerRule and extract their styles using the updated CompilerCollection
265
+ const query = {
266
+ m: parseContainerCondition(containerRule.condition, builder)
267
+ };
268
+ if (containerRule.name) {
269
+ query.n = `c:${containerRule.name}`;
270
+ }
271
+ builder.addContainerQuery(query);
272
+ for (const rule of containerRule.rules) {
273
+ extractRule(rule, builder);
274
+ }
275
+ }
276
+ //# sourceMappingURL=compiler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["inspect","debug","transform","lightningcss","maybeMutateReactNativeOptions","parsePropAtRule","parseContainerCondition","parseDeclaration","extractKeyFrames","parseMediaQuery","StylesheetBuilder","supportsConditionValid","defaultLogger","compile","code","options","logger","isLoggerEnabled","enabled","Boolean","features","Object","assign","selectorPrefix","startsWith","slice","JSON","stringify","process","env","NODE_ENV","toString","builder","customAtRules","body","visitor","Rule","rule","StyleSheetExit","sheet","rules","length","depth","colors","compact","extractRule","stripUnusedVariables","onVarUsage","token","type","value","arguments","forEach","varUsage","add","name","ident","fallback","fallbackValues","varObj","Declaration","decl","property","TextEncoder","encode","filename","projectRoot","cwd","stylesheet","getNativeStyleSheet","warnings","getWarnings","extractContainer","extractMedia","declarationBlock","declarations","newNestedRule","declaration","applyRuleToSelectors","importantDeclarations","important","mapping","fork","selectors","newRule","nestedRule","layerRule","condition","mediaRule","media","mediaQuery","query","mediaQueries","mediaType","qualifier","push","m","containerRule","n","addContainerQuery"],"sourceRoot":"../../../src","sources":["compiler/compiler.ts"],"mappings":";;AAAA;AACA,SAASA,OAAO,QAAQ,WAAW;AAEnC,SAASC,KAAK,QAAQ,OAAO;AAC7B,SACEC,SAAS,IAAIC,YAAY,QAQpB,cAAc;AAErB,SAASC,6BAA6B,EAAEC,eAAe,QAAQ,cAAW;AAE1E,SAASC,uBAAuB,QAAQ,sBAAmB;AAC3D,SAASC,gBAAgB,QAAQ,mBAAgB;AACjD,SAASC,gBAAgB,QAAQ,gBAAa;AAC9C,SAASC,eAAe,QAAQ,kBAAe;AAC/C,SAASC,iBAAiB,QAAQ,iBAAc;AAChD,SAASC,sBAAsB,QAAQ,eAAY;AAEnD,MAAMC,aAAa,GAAGX,KAAK,CAAC,2BAA2B,CAAC;;AAExD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASY,OAAOA,CAACC,IAAqB,EAAEC,OAAwB,GAAG,CAAC,CAAC,EAAE;EAC5E,MAAM;IAAEC,MAAM,GAAGJ;EAAc,CAAC,GAAGG,OAAO;EAC1C,MAAME,eAAe,GACnB,SAAS,IAAID,MAAM,G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F;EAEA,KAAK,MAAMuD,CAAC,IAAIP,KAAK,EAAE;IACrBhF,eAAe,CAACuF,CAAC,EAAEhE,OAAO,CAAC;EAC7B;;EAEA;EACA,KAAK,MAAMK,IAAI,IAAImD,SAAS,CAAChD,KAAK,EAAE;IAClCK,WAAW,CAACR,IAAI,EAAEL,OAAO,CAAC;EAC5B;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASwC,gBAAgBA,CACvByB,aAA4B,EAC5BjE,OAA0B,EAC1B;EACAA,OAAO,GAAGA,OAAO,CAACkD,IAAI,CAAC,WAAW,CAAC;;EAEnC;EACA,MAAMS,KAAqB,GAAG;IAC5BK,CAAC,EAAE1F,uBAAuB,CAAC2F,aAAa,CAACV,SAAS,EAAEvD,OAAO;EAC7D,CAAC;EAED,IAAIiE,aAAa,CAAC1C,IAAI,EAAE;IACtBoC,KAAK,CAACO,CAAC,GAAG,KAAKD,aAAa,CAAC1C,IAAI,EAAE;EACrC;EAEAvB,OAAO,CAACmE,iBAAiB,CAACR,KAAK,CAAC;EAEhC,KAAK,MAAMtD,IAAI,IAAI4D,aAAa,CAACzD,KAAK,EAAE;IACtCK,WAAW,CAACR,IAAI,EAAEL,OAAO,CAAC;EAC5B;AACF","ignoreList":[]}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+
3
+ /* eslint-disable */
4
+
5
+ import { VAR_SYMBOL } from "../runtime/native/reactivity.js";
6
+
7
+ /**
8
+ * A `react-native-css` StyleSheet
9
+ */
10
+
11
+ /******************************** Styles ********************************/
12
+
13
+ /**
14
+ * The JS representation of a style object
15
+ *
16
+ * This CSS rule is a single StyleRuleSet, made up of multiple StyleRules
17
+ *
18
+ * ```css
19
+ * .my-class {
20
+ * color: red;
21
+ * }
22
+ * ```
23
+ * Properties are split into normal and important properties, and then split
24
+ * into different StyleRules depending on their specificity, conditions, etc
25
+ */
26
+
27
+ /****************************** Variables *******************************/
28
+
29
+ /****************************** Animations ******************************/
30
+
31
+ /****************************** Conditions ******************************/
32
+
33
+ // Data-Attribute
34
+
35
+ // Case sensitivity
36
+
37
+ /****************************** Containers *****************************/
38
+
39
+ /****************************** Specificity *****************************/
40
+
41
+ /**
42
+ * https://drafts.csswg.org/selectors/#specificity-rules
43
+ *
44
+ * This array is sorted by most common values when parsing a StyleSheet
45
+ */
46
+
47
+ /****************************** Compiler ********************************/
48
+
49
+ /** @internal */
50
+
51
+ /** @internal */
52
+
53
+ /**
54
+ * @internal
55
+ */
56
+
57
+ /**
58
+ * @internal
59
+ */
60
+ //# sourceMappingURL=compiler.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["VAR_SYMBOL"],"sourceRoot":"../../../src","sources":["compiler/compiler.types.ts"],"mappings":";;AAAA;;AAIA,SAASA,UAAU,QAAQ,iCAA8B;;AAmBzD;AACA;AACA;;AAgBA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAwFA;;AAeA;;AAMA;;AAwCS;;AAMkE;;AAI3E;;AAUA;;AAEA;AACA;AACA;AACA;AACA;;AAIA;;AAKA;;AAEA;;AAGA;AACA;AACA;;AAKA;AACA;AACA","ignoreList":[]}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+
3
+ /* eslint-disable */
4
+
5
+ import { parseMediaFeatureOperator, parseMediaFeatureValue } from "./media-query.js";
6
+ export function parseContainerCondition(condition, builder) {
7
+ let containerQuery = parseContainerQueryCondition(condition, builder);
8
+
9
+ // If any of these are undefined, the media query is invalid
10
+ if (!containerQuery || containerQuery.some(v => v === undefined)) {
11
+ return;
12
+ }
13
+ return containerQuery;
14
+ }
15
+ function parseContainerQueryCondition(condition, builder) {
16
+ switch (condition.type) {
17
+ case "feature":
18
+ return parseFeature(condition.value, builder);
19
+ case "not":
20
+ const query = parseContainerCondition(condition.value, builder);
21
+ return query ? ["!", query] : undefined;
22
+ case "operation":
23
+ const conditions = condition.conditions.map(c => parseContainerQueryCondition(c, builder)).filter(v => !!v);
24
+ if (conditions.length === 0) {
25
+ return;
26
+ }
27
+ switch (condition.operator) {
28
+ case "and":
29
+ return ["&", conditions];
30
+ case "or":
31
+ return ["|", conditions];
32
+ default:
33
+ condition.operator;
34
+ return;
35
+ }
36
+ case "style":
37
+ // We don't support these yet
38
+ return;
39
+ default:
40
+ condition;
41
+ return;
42
+ }
43
+ }
44
+ function parseFeature(feature, builder) {
45
+ switch (feature.type) {
46
+ case "boolean":
47
+ return ["!!", feature.name];
48
+ case "plain":
49
+ return ["=", feature.name, parseMediaFeatureValue(feature.value, builder)];
50
+ case "range":
51
+ return [parseMediaFeatureOperator(feature.operator), feature.name, parseMediaFeatureValue(feature.value, builder)];
52
+ case "interval":
53
+ return ["[]", feature.name, parseMediaFeatureValue(feature.start, builder), parseMediaFeatureOperator(feature.startOperator), parseMediaFeatureValue(feature.end, builder), parseMediaFeatureOperator(feature.endOperator)];
54
+ default:
55
+ feature;
56
+ return;
57
+ }
58
+ }
59
+ //# sourceMappingURL=container-query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["parseMediaFeatureOperator","parseMediaFeatureValue","parseContainerCondition","condition","builder","containerQuery","parseContainerQueryCondition","some","v","undefined","type","parseFeature","value","query","conditions","map","c","filter","length","operator","feature","name","start","startOperator","end","endOperator"],"sourceRoot":"../../../src","sources":["compiler/container-query.ts"],"mappings":";;AAAA;;AAOA,SACEA,yBAAyB,EACzBC,sBAAsB,QACjB,kBAAe;AAGtB,OAAO,SAASC,uBAAuBA,CACrCC,SAAgC,EAChCC,OAA0B,EAC1B;EACA,IAAIC,cAAc,GAAGC,4BAA4B,CAACH,SAAS,EAAEC,OAAO,CAAC;;EAErE;EACA,IAAI,CAACC,cAAc,IAAIA,cAAc,CAACE,IAAI,CAAEC,CAAC,IAAKA,CAAC,KAAKC,SAAS,CAAC,EAAE;IAClE;EACF;EAEA,OAAOJ,cAAc;AACvB;AAEA,SAASC,4BAA4BA,CACnCH,SAAgC,EAChCC,OAA0B,EACE;EAC5B,QAAQD,SA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