react-native-css 0.0.0-nightly.03a4e35

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 (942) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +330 -0
  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 +13 -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 +94 -0
  16. package/dist/commonjs/compiler/atRules.js.map +1 -0
  17. package/dist/commonjs/compiler/compiler.js +338 -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 +2290 -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/inline-variables.js +142 -0
  34. package/dist/commonjs/compiler/inline-variables.js.map +1 -0
  35. package/dist/commonjs/compiler/keyframes.js +60 -0
  36. package/dist/commonjs/compiler/keyframes.js.map +1 -0
  37. package/dist/commonjs/compiler/lightningcss-loader.js +40 -0
  38. package/dist/commonjs/compiler/lightningcss-loader.js.map +1 -0
  39. package/dist/commonjs/compiler/media-query.js +172 -0
  40. package/dist/commonjs/compiler/media-query.js.map +1 -0
  41. package/dist/commonjs/compiler/pseudo-elements.js +49 -0
  42. package/dist/commonjs/compiler/pseudo-elements.js.map +1 -0
  43. package/dist/commonjs/compiler/selector-builder.js +504 -0
  44. package/dist/commonjs/compiler/selector-builder.js.map +1 -0
  45. package/dist/commonjs/compiler/selectors.js +414 -0
  46. package/dist/commonjs/compiler/selectors.js.map +1 -0
  47. package/dist/commonjs/compiler/split-by-delimiter.js +21 -0
  48. package/dist/commonjs/compiler/split-by-delimiter.js.map +1 -0
  49. package/dist/commonjs/compiler/stylesheet.js +481 -0
  50. package/dist/commonjs/compiler/stylesheet.js.map +1 -0
  51. package/dist/commonjs/compiler/supports.js +27 -0
  52. package/dist/commonjs/compiler/supports.js.map +1 -0
  53. package/dist/commonjs/components/ActivityIndicator.js +22 -0
  54. package/dist/commonjs/components/ActivityIndicator.js.map +1 -0
  55. package/dist/commonjs/components/Button.js +22 -0
  56. package/dist/commonjs/components/Button.js.map +1 -0
  57. package/dist/commonjs/components/FlatList.js +19 -0
  58. package/dist/commonjs/components/FlatList.js.map +1 -0
  59. package/dist/commonjs/components/Image.js +17 -0
  60. package/dist/commonjs/components/Image.js.map +1 -0
  61. package/dist/commonjs/components/Switch.js +17 -0
  62. package/dist/commonjs/components/Switch.js.map +1 -0
  63. package/dist/commonjs/components/Text.js +17 -0
  64. package/dist/commonjs/components/Text.js.map +1 -0
  65. package/dist/commonjs/components/TextInput.js +17 -0
  66. package/dist/commonjs/components/TextInput.js.map +1 -0
  67. package/dist/commonjs/components/View.js +17 -0
  68. package/dist/commonjs/components/View.js.map +1 -0
  69. package/dist/commonjs/components/index.js +84 -0
  70. package/dist/commonjs/components/index.js.map +1 -0
  71. package/dist/commonjs/components/react-native-safe-area-context.js +17 -0
  72. package/dist/commonjs/components/react-native-safe-area-context.js.map +1 -0
  73. package/dist/commonjs/components/react-native-safe-area-context.native.js +53 -0
  74. package/dist/commonjs/components/react-native-safe-area-context.native.js.map +1 -0
  75. package/dist/commonjs/index.js +17 -0
  76. package/dist/commonjs/index.js.map +1 -0
  77. package/dist/commonjs/jest/expect.d.js +2 -0
  78. package/dist/commonjs/jest/expect.d.js.map +1 -0
  79. package/dist/commonjs/jest/index.js +55 -0
  80. package/dist/commonjs/jest/index.js.map +1 -0
  81. package/dist/commonjs/jest/setup.js +3 -0
  82. package/dist/commonjs/jest/setup.js.map +1 -0
  83. package/dist/commonjs/jest/setupAfterEnv.js +15 -0
  84. package/dist/commonjs/jest/setupAfterEnv.js.map +1 -0
  85. package/dist/commonjs/metro/index.js +170 -0
  86. package/dist/commonjs/metro/index.js.map +1 -0
  87. package/dist/commonjs/metro/injection-code.js +27 -0
  88. package/dist/commonjs/metro/injection-code.js.map +1 -0
  89. package/dist/commonjs/metro/metro-transformer.js +31 -0
  90. package/dist/commonjs/metro/metro-transformer.js.map +1 -0
  91. package/dist/commonjs/metro/picocolors.js +71 -0
  92. package/dist/commonjs/metro/picocolors.js.map +1 -0
  93. package/dist/commonjs/metro/resolver.js +65 -0
  94. package/dist/commonjs/metro/resolver.js.map +1 -0
  95. package/dist/commonjs/metro/stringify.js +59 -0
  96. package/dist/commonjs/metro/stringify.js.map +1 -0
  97. package/dist/commonjs/metro/typescript.js +47 -0
  98. package/dist/commonjs/metro/typescript.js.map +1 -0
  99. package/dist/commonjs/native/api.js +113 -0
  100. package/dist/commonjs/native/api.js.map +1 -0
  101. package/dist/commonjs/native/conditions/attributes.js +44 -0
  102. package/dist/commonjs/native/conditions/attributes.js.map +1 -0
  103. package/dist/commonjs/native/conditions/container-query.js +123 -0
  104. package/dist/commonjs/native/conditions/container-query.js.map +1 -0
  105. package/dist/commonjs/native/conditions/guards.js +33 -0
  106. package/dist/commonjs/native/conditions/guards.js.map +1 -0
  107. package/dist/commonjs/native/conditions/index.js +40 -0
  108. package/dist/commonjs/native/conditions/index.js.map +1 -0
  109. package/dist/commonjs/native/conditions/media-query.js +98 -0
  110. package/dist/commonjs/native/conditions/media-query.js.map +1 -0
  111. package/dist/commonjs/native/index.js +28 -0
  112. package/dist/commonjs/native/index.js.map +1 -0
  113. package/dist/commonjs/native/metro.js +6 -0
  114. package/dist/commonjs/native/metro.js.map +1 -0
  115. package/dist/commonjs/native/objects.js +92 -0
  116. package/dist/commonjs/native/objects.js.map +1 -0
  117. package/dist/commonjs/native/react/interaction.js +63 -0
  118. package/dist/commonjs/native/react/interaction.js.map +1 -0
  119. package/dist/commonjs/native/react/rules.js +259 -0
  120. package/dist/commonjs/native/react/rules.js.map +1 -0
  121. package/dist/commonjs/native/react/useNativeCss.js +160 -0
  122. package/dist/commonjs/native/react/useNativeCss.js.map +1 -0
  123. package/dist/commonjs/native/react/usePassthrough.js +50 -0
  124. package/dist/commonjs/native/react/usePassthrough.js.map +1 -0
  125. package/dist/commonjs/native/reactivity.js +181 -0
  126. package/dist/commonjs/native/reactivity.js.map +1 -0
  127. package/dist/commonjs/native/reanimated.js +17 -0
  128. package/dist/commonjs/native/reanimated.js.map +1 -0
  129. package/dist/commonjs/native/styles/calculate-props.js +162 -0
  130. package/dist/commonjs/native/styles/calculate-props.js.map +1 -0
  131. package/dist/commonjs/native/styles/constants.js +9 -0
  132. package/dist/commonjs/native/styles/constants.js.map +1 -0
  133. package/dist/commonjs/native/styles/defaults.js +69 -0
  134. package/dist/commonjs/native/styles/defaults.js.map +1 -0
  135. package/dist/commonjs/native/styles/functions/animation-timing.js +34 -0
  136. package/dist/commonjs/native/styles/functions/animation-timing.js.map +1 -0
  137. package/dist/commonjs/native/styles/functions/calc.js +125 -0
  138. package/dist/commonjs/native/styles/functions/calc.js.map +1 -0
  139. package/dist/commonjs/native/styles/functions/filters.js +84 -0
  140. package/dist/commonjs/native/styles/functions/filters.js.map +1 -0
  141. package/dist/commonjs/native/styles/functions/index.js +83 -0
  142. package/dist/commonjs/native/styles/functions/index.js.map +1 -0
  143. package/dist/commonjs/native/styles/functions/numeric-functions.js +32 -0
  144. package/dist/commonjs/native/styles/functions/numeric-functions.js.map +1 -0
  145. package/dist/commonjs/native/styles/functions/platform-functions.js +46 -0
  146. package/dist/commonjs/native/styles/functions/platform-functions.js.map +1 -0
  147. package/dist/commonjs/native/styles/functions/string-functions.js +23 -0
  148. package/dist/commonjs/native/styles/functions/string-functions.js.map +1 -0
  149. package/dist/commonjs/native/styles/functions/transform-functions.js +121 -0
  150. package/dist/commonjs/native/styles/functions/transform-functions.js.map +1 -0
  151. package/dist/commonjs/native/styles/index.js +115 -0
  152. package/dist/commonjs/native/styles/index.js.map +1 -0
  153. package/dist/commonjs/native/styles/line-height.js +25 -0
  154. package/dist/commonjs/native/styles/line-height.js.map +1 -0
  155. package/dist/commonjs/native/styles/resolve.js +108 -0
  156. package/dist/commonjs/native/styles/resolve.js.map +1 -0
  157. package/dist/commonjs/native/styles/shorthands/_handler.js +79 -0
  158. package/dist/commonjs/native/styles/shorthands/_handler.js.map +1 -0
  159. package/dist/commonjs/native/styles/shorthands/animation.js +57 -0
  160. package/dist/commonjs/native/styles/shorthands/animation.js.map +1 -0
  161. package/dist/commonjs/native/styles/shorthands/border.js +12 -0
  162. package/dist/commonjs/native/styles/shorthands/border.js.map +1 -0
  163. package/dist/commonjs/native/styles/shorthands/box-shadow.js +48 -0
  164. package/dist/commonjs/native/styles/shorthands/box-shadow.js.map +1 -0
  165. package/dist/commonjs/native/styles/shorthands/index.js +61 -0
  166. package/dist/commonjs/native/styles/shorthands/index.js.map +1 -0
  167. package/dist/commonjs/native/styles/shorthands/text-shadow.js +13 -0
  168. package/dist/commonjs/native/styles/shorthands/text-shadow.js.map +1 -0
  169. package/dist/commonjs/native/styles/shorthands/transform.js +23 -0
  170. package/dist/commonjs/native/styles/shorthands/transform.js.map +1 -0
  171. package/dist/commonjs/native/styles/units.js +54 -0
  172. package/dist/commonjs/native/styles/units.js.map +1 -0
  173. package/dist/commonjs/native/styles/variables.js +79 -0
  174. package/dist/commonjs/native/styles/variables.js.map +1 -0
  175. package/dist/commonjs/native-internal/README.md +11 -0
  176. package/dist/commonjs/native-internal/index.js +39 -0
  177. package/dist/commonjs/native-internal/index.js.map +1 -0
  178. package/dist/commonjs/native-internal/root.js +34 -0
  179. package/dist/commonjs/native-internal/root.js.map +1 -0
  180. package/dist/commonjs/native-internal/style-collection.js +110 -0
  181. package/dist/commonjs/native-internal/style-collection.js.map +1 -0
  182. package/dist/commonjs/native-internal/variables.js +27 -0
  183. package/dist/commonjs/native-internal/variables.js.map +1 -0
  184. package/dist/commonjs/package.json +1 -0
  185. package/dist/commonjs/poison.pill.js +39 -0
  186. package/dist/commonjs/poison.pill.js.map +1 -0
  187. package/dist/commonjs/runtime/native/injection.js +2 -0
  188. package/dist/commonjs/runtime/native/injection.js.map +1 -0
  189. package/dist/commonjs/runtime.js +17 -0
  190. package/dist/commonjs/runtime.js.map +1 -0
  191. package/dist/commonjs/runtime.native.js +17 -0
  192. package/dist/commonjs/runtime.native.js.map +1 -0
  193. package/dist/commonjs/runtime.types.js +6 -0
  194. package/dist/commonjs/runtime.types.js.map +1 -0
  195. package/dist/commonjs/utilities/dot-notation.types.js +2 -0
  196. package/dist/commonjs/utilities/dot-notation.types.js.map +1 -0
  197. package/dist/commonjs/utilities/index.js +39 -0
  198. package/dist/commonjs/utilities/index.js.map +1 -0
  199. package/dist/commonjs/utilities/specificity.js +44 -0
  200. package/dist/commonjs/utilities/specificity.js.map +1 -0
  201. package/dist/commonjs/utilities/style-descriptor.js +21 -0
  202. package/dist/commonjs/utilities/style-descriptor.js.map +1 -0
  203. package/dist/commonjs/web/api.js +86 -0
  204. package/dist/commonjs/web/api.js.map +1 -0
  205. package/dist/commonjs/web/assign-style.js +27 -0
  206. package/dist/commonjs/web/assign-style.js.map +1 -0
  207. package/dist/commonjs/web/index.js +18 -0
  208. package/dist/commonjs/web/index.js.map +1 -0
  209. package/dist/commonjs/web/metro.js +6 -0
  210. package/dist/commonjs/web/metro.js.map +1 -0
  211. package/dist/module/babel/allowedModules.js +19 -0
  212. package/dist/module/babel/allowedModules.js.map +1 -0
  213. package/dist/module/babel/helpers.js +21 -0
  214. package/dist/module/babel/helpers.js.map +1 -0
  215. package/dist/module/babel/import-plugin.js +97 -0
  216. package/dist/module/babel/import-plugin.js.map +1 -0
  217. package/dist/module/babel/index.js +9 -0
  218. package/dist/module/babel/index.js.map +1 -0
  219. package/dist/module/babel/react-native-web.js +112 -0
  220. package/dist/module/babel/react-native-web.js.map +1 -0
  221. package/dist/module/babel/react-native.js +112 -0
  222. package/dist/module/babel/react-native.js.map +1 -0
  223. package/dist/module/compiler/atRules.js +90 -0
  224. package/dist/module/compiler/atRules.js.map +1 -0
  225. package/dist/module/compiler/compiler.js +333 -0
  226. package/dist/module/compiler/compiler.js.map +1 -0
  227. package/dist/module/compiler/compiler.types.js +60 -0
  228. package/dist/module/compiler/compiler.types.js.map +1 -0
  229. package/dist/module/compiler/container-query.js +59 -0
  230. package/dist/module/compiler/container-query.js.map +1 -0
  231. package/dist/module/compiler/declarations.js +2210 -0
  232. package/dist/module/compiler/declarations.js.map +1 -0
  233. package/dist/module/compiler/functions-web.js +32 -0
  234. package/dist/module/compiler/functions-web.js.map +1 -0
  235. package/dist/module/compiler/functions.js +47 -0
  236. package/dist/module/compiler/functions.js.map +1 -0
  237. package/dist/module/compiler/index.js +9 -0
  238. package/dist/module/compiler/index.js.map +1 -0
  239. package/dist/module/compiler/inheritance.test.js +78 -0
  240. package/dist/module/compiler/inheritance.test.js.map +1 -0
  241. package/dist/module/compiler/inline-variables.js +138 -0
  242. package/dist/module/compiler/inline-variables.js.map +1 -0
  243. package/dist/module/compiler/keyframes.js +54 -0
  244. package/dist/module/compiler/keyframes.js.map +1 -0
  245. package/dist/module/compiler/lightningcss-loader.js +36 -0
  246. package/dist/module/compiler/lightningcss-loader.js.map +1 -0
  247. package/dist/module/compiler/media-query.js +166 -0
  248. package/dist/module/compiler/media-query.js.map +1 -0
  249. package/dist/module/compiler/pseudo-elements.js +44 -0
  250. package/dist/module/compiler/pseudo-elements.js.map +1 -0
  251. package/dist/module/compiler/selector-builder.js +499 -0
  252. package/dist/module/compiler/selector-builder.js.map +1 -0
  253. package/dist/module/compiler/selectors.js +409 -0
  254. package/dist/module/compiler/selectors.js.map +1 -0
  255. package/dist/module/compiler/split-by-delimiter.js +17 -0
  256. package/dist/module/compiler/split-by-delimiter.js.map +1 -0
  257. package/dist/module/compiler/stylesheet.js +476 -0
  258. package/dist/module/compiler/stylesheet.js.map +1 -0
  259. package/dist/module/compiler/supports.js +23 -0
  260. package/dist/module/compiler/supports.js.map +1 -0
  261. package/dist/module/components/ActivityIndicator.js +17 -0
  262. package/dist/module/components/ActivityIndicator.js.map +1 -0
  263. package/dist/module/components/Button.js +17 -0
  264. package/dist/module/components/Button.js.map +1 -0
  265. package/dist/module/components/FlatList.js +14 -0
  266. package/dist/module/components/FlatList.js.map +1 -0
  267. package/dist/module/components/Image.js +12 -0
  268. package/dist/module/components/Image.js.map +1 -0
  269. package/dist/module/components/Switch.js +12 -0
  270. package/dist/module/components/Switch.js.map +1 -0
  271. package/dist/module/components/Text.js +12 -0
  272. package/dist/module/components/Text.js.map +1 -0
  273. package/dist/module/components/TextInput.js +12 -0
  274. package/dist/module/components/TextInput.js.map +1 -0
  275. package/dist/module/components/View.js +12 -0
  276. package/dist/module/components/View.js.map +1 -0
  277. package/dist/module/components/index.js +12 -0
  278. package/dist/module/components/index.js.map +1 -0
  279. package/dist/module/components/react-native-safe-area-context.js +4 -0
  280. package/dist/module/components/react-native-safe-area-context.js.map +1 -0
  281. package/dist/module/components/react-native-safe-area-context.native.js +36 -0
  282. package/dist/module/components/react-native-safe-area-context.native.js.map +1 -0
  283. package/dist/module/index.js +4 -0
  284. package/dist/module/index.js.map +1 -0
  285. package/dist/module/jest/expect.d.js +2 -0
  286. package/dist/module/jest/expect.d.js.map +1 -0
  287. package/dist/module/jest/index.js +49 -0
  288. package/dist/module/jest/index.js.map +1 -0
  289. package/dist/module/jest/setup.js +3 -0
  290. package/dist/module/jest/setup.js.map +1 -0
  291. package/dist/module/jest/setupAfterEnv.js +15 -0
  292. package/dist/module/jest/setupAfterEnv.js.map +1 -0
  293. package/dist/module/metro/index.js +164 -0
  294. package/dist/module/metro/index.js.map +1 -0
  295. package/dist/module/metro/injection-code.js +22 -0
  296. package/dist/module/metro/injection-code.js.map +1 -0
  297. package/dist/module/metro/metro-transformer.js +27 -0
  298. package/dist/module/metro/metro-transformer.js.map +1 -0
  299. package/dist/module/metro/picocolors.js +67 -0
  300. package/dist/module/metro/picocolors.js.map +1 -0
  301. package/dist/module/metro/resolver.js +60 -0
  302. package/dist/module/metro/resolver.js.map +1 -0
  303. package/dist/module/metro/stringify.js +55 -0
  304. package/dist/module/metro/stringify.js.map +1 -0
  305. package/dist/module/metro/typescript.js +42 -0
  306. package/dist/module/metro/typescript.js.map +1 -0
  307. package/dist/module/native/api.js +82 -0
  308. package/dist/module/native/api.js.map +1 -0
  309. package/dist/module/native/conditions/attributes.js +40 -0
  310. package/dist/module/native/conditions/attributes.js.map +1 -0
  311. package/dist/module/native/conditions/container-query.js +117 -0
  312. package/dist/module/native/conditions/container-query.js.map +1 -0
  313. package/dist/module/native/conditions/guards.js +29 -0
  314. package/dist/module/native/conditions/guards.js.map +1 -0
  315. package/dist/module/native/conditions/index.js +36 -0
  316. package/dist/module/native/conditions/index.js.map +1 -0
  317. package/dist/module/native/conditions/media-query.js +93 -0
  318. package/dist/module/native/conditions/media-query.js.map +1 -0
  319. package/dist/module/native/index.js +5 -0
  320. package/dist/module/native/index.js.map +1 -0
  321. package/dist/module/native/metro.js +5 -0
  322. package/dist/module/native/metro.js.map +1 -0
  323. package/dist/module/native/objects.js +84 -0
  324. package/dist/module/native/objects.js.map +1 -0
  325. package/dist/module/native/react/interaction.js +59 -0
  326. package/dist/module/native/react/interaction.js.map +1 -0
  327. package/dist/module/native/react/rules.js +252 -0
  328. package/dist/module/native/react/rules.js.map +1 -0
  329. package/dist/module/native/react/useNativeCss.js +154 -0
  330. package/dist/module/native/react/useNativeCss.js.map +1 -0
  331. package/dist/module/native/react/usePassthrough.js +45 -0
  332. package/dist/module/native/react/usePassthrough.js.map +1 -0
  333. package/dist/module/native/reactivity.js +169 -0
  334. package/dist/module/native/reactivity.js.map +1 -0
  335. package/dist/module/native/reanimated.js +13 -0
  336. package/dist/module/native/reanimated.js.map +1 -0
  337. package/dist/module/native/styles/calculate-props.js +157 -0
  338. package/dist/module/native/styles/calculate-props.js.map +1 -0
  339. package/dist/module/native/styles/constants.js +5 -0
  340. package/dist/module/native/styles/constants.js.map +1 -0
  341. package/dist/module/native/styles/defaults.js +65 -0
  342. package/dist/module/native/styles/defaults.js.map +1 -0
  343. package/dist/module/native/styles/functions/animation-timing.js +30 -0
  344. package/dist/module/native/styles/functions/animation-timing.js.map +1 -0
  345. package/dist/module/native/styles/functions/calc.js +120 -0
  346. package/dist/module/native/styles/functions/calc.js.map +1 -0
  347. package/dist/module/native/styles/functions/filters.js +70 -0
  348. package/dist/module/native/styles/functions/filters.js.map +1 -0
  349. package/dist/module/native/styles/functions/index.js +10 -0
  350. package/dist/module/native/styles/functions/index.js.map +1 -0
  351. package/dist/module/native/styles/functions/numeric-functions.js +25 -0
  352. package/dist/module/native/styles/functions/numeric-functions.js.map +1 -0
  353. package/dist/module/native/styles/functions/platform-functions.js +36 -0
  354. package/dist/module/native/styles/functions/platform-functions.js.map +1 -0
  355. package/dist/module/native/styles/functions/string-functions.js +18 -0
  356. package/dist/module/native/styles/functions/string-functions.js.map +1 -0
  357. package/dist/module/native/styles/functions/transform-functions.js +114 -0
  358. package/dist/module/native/styles/functions/transform-functions.js.map +1 -0
  359. package/dist/module/native/styles/index.js +110 -0
  360. package/dist/module/native/styles/index.js.map +1 -0
  361. package/dist/module/native/styles/line-height.js +20 -0
  362. package/dist/module/native/styles/line-height.js.map +1 -0
  363. package/dist/module/native/styles/resolve.js +103 -0
  364. package/dist/module/native/styles/resolve.js.map +1 -0
  365. package/dist/module/native/styles/shorthands/_handler.js +74 -0
  366. package/dist/module/native/styles/shorthands/_handler.js.map +1 -0
  367. package/dist/module/native/styles/shorthands/animation.js +51 -0
  368. package/dist/module/native/styles/shorthands/animation.js.map +1 -0
  369. package/dist/module/native/styles/shorthands/border.js +8 -0
  370. package/dist/module/native/styles/shorthands/border.js.map +1 -0
  371. package/dist/module/native/styles/shorthands/box-shadow.js +43 -0
  372. package/dist/module/native/styles/shorthands/box-shadow.js.map +1 -0
  373. package/dist/module/native/styles/shorthands/index.js +8 -0
  374. package/dist/module/native/styles/shorthands/index.js.map +1 -0
  375. package/dist/module/native/styles/shorthands/text-shadow.js +9 -0
  376. package/dist/module/native/styles/shorthands/text-shadow.js.map +1 -0
  377. package/dist/module/native/styles/shorthands/transform.js +18 -0
  378. package/dist/module/native/styles/shorthands/transform.js.map +1 -0
  379. package/dist/module/native/styles/units.js +46 -0
  380. package/dist/module/native/styles/units.js.map +1 -0
  381. package/dist/module/native/styles/variables.js +75 -0
  382. package/dist/module/native/styles/variables.js.map +1 -0
  383. package/dist/module/native-internal/README.md +11 -0
  384. package/dist/module/native-internal/index.js +6 -0
  385. package/dist/module/native-internal/index.js.map +1 -0
  386. package/dist/module/native-internal/root.js +30 -0
  387. package/dist/module/native-internal/root.js.map +1 -0
  388. package/dist/module/native-internal/style-collection.js +95 -0
  389. package/dist/module/native-internal/style-collection.js.map +1 -0
  390. package/dist/module/native-internal/variables.js +22 -0
  391. package/dist/module/native-internal/variables.js.map +1 -0
  392. package/dist/module/package.json +1 -0
  393. package/dist/module/poison.pill.js +37 -0
  394. package/dist/module/poison.pill.js.map +1 -0
  395. package/dist/module/runtime/native/injection.js +2 -0
  396. package/dist/module/runtime/native/injection.js.map +1 -0
  397. package/dist/module/runtime.js +4 -0
  398. package/dist/module/runtime.js.map +1 -0
  399. package/dist/module/runtime.native.js +4 -0
  400. package/dist/module/runtime.native.js.map +1 -0
  401. package/dist/module/runtime.types.js +4 -0
  402. package/dist/module/runtime.types.js.map +1 -0
  403. package/dist/module/utilities/dot-notation.types.js +2 -0
  404. package/dist/module/utilities/dot-notation.types.js.map +1 -0
  405. package/dist/module/utilities/index.js +6 -0
  406. package/dist/module/utilities/index.js.map +1 -0
  407. package/dist/module/utilities/specificity.js +39 -0
  408. package/dist/module/utilities/specificity.js.map +1 -0
  409. package/dist/module/utilities/style-descriptor.js +16 -0
  410. package/dist/module/utilities/style-descriptor.js.map +1 -0
  411. package/dist/module/web/api.js +76 -0
  412. package/dist/module/web/api.js.map +1 -0
  413. package/dist/module/web/assign-style.js +23 -0
  414. package/dist/module/web/assign-style.js.map +1 -0
  415. package/dist/module/web/index.js +6 -0
  416. package/dist/module/web/index.js.map +1 -0
  417. package/dist/module/web/metro.js +5 -0
  418. package/dist/module/web/metro.js.map +1 -0
  419. package/dist/typescript/commonjs/example/app.config.d.ts +4 -0
  420. package/dist/typescript/commonjs/example/app.config.d.ts.map +1 -0
  421. package/dist/typescript/commonjs/example/src/App.d.ts +2 -0
  422. package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -0
  423. package/dist/typescript/commonjs/package.json +1 -0
  424. package/dist/typescript/commonjs/src/babel/allowedModules.d.ts +2 -0
  425. package/dist/typescript/commonjs/src/babel/allowedModules.d.ts.map +1 -0
  426. package/dist/typescript/commonjs/src/babel/helpers.d.ts +13 -0
  427. package/dist/typescript/commonjs/src/babel/helpers.d.ts.map +1 -0
  428. package/dist/typescript/commonjs/src/babel/import-plugin.d.ts +6 -0
  429. package/dist/typescript/commonjs/src/babel/import-plugin.d.ts.map +1 -0
  430. package/dist/typescript/commonjs/src/babel/index.d.ts +4 -0
  431. package/dist/typescript/commonjs/src/babel/index.d.ts.map +1 -0
  432. package/dist/typescript/commonjs/src/babel/react-native-web.d.ts +8 -0
  433. package/dist/typescript/commonjs/src/babel/react-native-web.d.ts.map +1 -0
  434. package/dist/typescript/commonjs/src/babel/react-native.d.ts +8 -0
  435. package/dist/typescript/commonjs/src/babel/react-native.d.ts.map +1 -0
  436. package/dist/typescript/commonjs/src/compiler/atRules.d.ts +34 -0
  437. package/dist/typescript/commonjs/src/compiler/atRules.d.ts.map +1 -0
  438. package/dist/typescript/commonjs/src/compiler/compiler.d.ts +17 -0
  439. package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -0
  440. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +201 -0
  441. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -0
  442. package/dist/typescript/commonjs/src/compiler/container-query.d.ts +5 -0
  443. package/dist/typescript/commonjs/src/compiler/container-query.d.ts.map +1 -0
  444. package/dist/typescript/commonjs/src/compiler/declarations.d.ts +131 -0
  445. package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -0
  446. package/dist/typescript/commonjs/src/compiler/functions-web.d.ts +11 -0
  447. package/dist/typescript/commonjs/src/compiler/functions-web.d.ts.map +1 -0
  448. package/dist/typescript/commonjs/src/compiler/functions.d.ts +11 -0
  449. package/dist/typescript/commonjs/src/compiler/functions.d.ts.map +1 -0
  450. package/dist/typescript/commonjs/src/compiler/index.d.ts +7 -0
  451. package/dist/typescript/commonjs/src/compiler/index.d.ts.map +1 -0
  452. package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts +2 -0
  453. package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts.map +1 -0
  454. package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts +4 -0
  455. package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts.map +1 -0
  456. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts +7 -0
  457. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts.map +1 -0
  458. package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts +30 -0
  459. package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts.map +1 -0
  460. package/dist/typescript/commonjs/src/compiler/media-query.d.ts +7 -0
  461. package/dist/typescript/commonjs/src/compiler/media-query.d.ts.map +1 -0
  462. package/dist/typescript/commonjs/src/compiler/pseudo-elements.d.ts +4 -0
  463. package/dist/typescript/commonjs/src/compiler/pseudo-elements.d.ts.map +1 -0
  464. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts +24 -0
  465. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -0
  466. package/dist/typescript/commonjs/src/compiler/selectors.d.ts +24 -0
  467. package/dist/typescript/commonjs/src/compiler/selectors.d.ts.map +1 -0
  468. package/dist/typescript/commonjs/src/compiler/split-by-delimiter.d.ts +2 -0
  469. package/dist/typescript/commonjs/src/compiler/split-by-delimiter.d.ts.map +1 -0
  470. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +69 -0
  471. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -0
  472. package/dist/typescript/commonjs/src/compiler/supports.d.ts +3 -0
  473. package/dist/typescript/commonjs/src/compiler/supports.d.ts.map +1 -0
  474. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +13 -0
  475. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -0
  476. package/dist/typescript/commonjs/src/components/Button.d.ts +13 -0
  477. package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -0
  478. package/dist/typescript/commonjs/src/components/FlatList.d.ts +10 -0
  479. package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -0
  480. package/dist/typescript/commonjs/src/components/Image.d.ts +8 -0
  481. package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -0
  482. package/dist/typescript/commonjs/src/components/Switch.d.ts +8 -0
  483. package/dist/typescript/commonjs/src/components/Switch.d.ts.map +1 -0
  484. package/dist/typescript/commonjs/src/components/Text.d.ts +8 -0
  485. package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -0
  486. package/dist/typescript/commonjs/src/components/TextInput.d.ts +8 -0
  487. package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -0
  488. package/dist/typescript/commonjs/src/components/View.d.ts +8 -0
  489. package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -0
  490. package/dist/typescript/commonjs/src/components/index.d.ts +10 -0
  491. package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -0
  492. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.d.ts +2 -0
  493. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.d.ts.map +1 -0
  494. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts +4 -0
  495. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts.map +1 -0
  496. package/dist/typescript/commonjs/src/index.d.ts +2 -0
  497. package/dist/typescript/commonjs/src/index.d.ts.map +1 -0
  498. package/dist/typescript/commonjs/src/jest/index.d.ts +30 -0
  499. package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -0
  500. package/dist/typescript/commonjs/src/jest/setup.d.ts +1 -0
  501. package/dist/typescript/commonjs/src/jest/setup.d.ts.map +1 -0
  502. package/dist/typescript/commonjs/src/jest/setupAfterEnv.d.ts +1 -0
  503. package/dist/typescript/commonjs/src/jest/setupAfterEnv.d.ts.map +1 -0
  504. package/dist/typescript/commonjs/src/metro/index.d.ts +11 -0
  505. package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -0
  506. package/dist/typescript/commonjs/src/metro/injection-code.d.ts +13 -0
  507. package/dist/typescript/commonjs/src/metro/injection-code.d.ts.map +1 -0
  508. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts +6 -0
  509. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -0
  510. package/dist/typescript/commonjs/src/metro/picocolors.d.ts +27 -0
  511. package/dist/typescript/commonjs/src/metro/picocolors.d.ts.map +1 -0
  512. package/dist/typescript/commonjs/src/metro/resolver.d.ts +4 -0
  513. package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -0
  514. package/dist/typescript/commonjs/src/metro/stringify.d.ts +7 -0
  515. package/dist/typescript/commonjs/src/metro/stringify.d.ts.map +1 -0
  516. package/dist/typescript/commonjs/src/metro/typescript.d.ts +2 -0
  517. package/dist/typescript/commonjs/src/metro/typescript.d.ts.map +1 -0
  518. package/dist/typescript/commonjs/src/native/api.d.ts +26 -0
  519. package/dist/typescript/commonjs/src/native/api.d.ts.map +1 -0
  520. package/dist/typescript/commonjs/src/native/conditions/attributes.d.ts +4 -0
  521. package/dist/typescript/commonjs/src/native/conditions/attributes.d.ts.map +1 -0
  522. package/dist/typescript/commonjs/src/native/conditions/container-query.d.ts +7 -0
  523. package/dist/typescript/commonjs/src/native/conditions/container-query.d.ts.map +1 -0
  524. package/dist/typescript/commonjs/src/native/conditions/guards.d.ts +5 -0
  525. package/dist/typescript/commonjs/src/native/conditions/guards.d.ts.map +1 -0
  526. package/dist/typescript/commonjs/src/native/conditions/index.d.ts +6 -0
  527. package/dist/typescript/commonjs/src/native/conditions/index.d.ts.map +1 -0
  528. package/dist/typescript/commonjs/src/native/conditions/media-query.d.ts +4 -0
  529. package/dist/typescript/commonjs/src/native/conditions/media-query.d.ts.map +1 -0
  530. package/dist/typescript/commonjs/src/native/index.d.ts +4 -0
  531. package/dist/typescript/commonjs/src/native/index.d.ts.map +1 -0
  532. package/dist/typescript/commonjs/src/native/metro.d.ts +2 -0
  533. package/dist/typescript/commonjs/src/native/metro.d.ts.map +1 -0
  534. package/dist/typescript/commonjs/src/native/objects.d.ts +5 -0
  535. package/dist/typescript/commonjs/src/native/objects.d.ts.map +1 -0
  536. package/dist/typescript/commonjs/src/native/react/interaction.d.ts +6 -0
  537. package/dist/typescript/commonjs/src/native/react/interaction.d.ts.map +1 -0
  538. package/dist/typescript/commonjs/src/native/react/rules.d.ts +7 -0
  539. package/dist/typescript/commonjs/src/native/react/rules.d.ts.map +1 -0
  540. package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts +38 -0
  541. package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts.map +1 -0
  542. package/dist/typescript/commonjs/src/native/react/usePassthrough.d.ts +4 -0
  543. package/dist/typescript/commonjs/src/native/react/usePassthrough.d.ts.map +1 -0
  544. package/dist/typescript/commonjs/src/native/reactivity.d.ts +52 -0
  545. package/dist/typescript/commonjs/src/native/reactivity.d.ts.map +1 -0
  546. package/dist/typescript/commonjs/src/native/reanimated.d.ts +5 -0
  547. package/dist/typescript/commonjs/src/native/reanimated.d.ts.map +1 -0
  548. package/dist/typescript/commonjs/src/native/styles/calculate-props.d.ts +10 -0
  549. package/dist/typescript/commonjs/src/native/styles/calculate-props.d.ts.map +1 -0
  550. package/dist/typescript/commonjs/src/native/styles/constants.d.ts +3 -0
  551. package/dist/typescript/commonjs/src/native/styles/constants.d.ts.map +1 -0
  552. package/dist/typescript/commonjs/src/native/styles/defaults.d.ts +3 -0
  553. package/dist/typescript/commonjs/src/native/styles/defaults.d.ts.map +1 -0
  554. package/dist/typescript/commonjs/src/native/styles/functions/animation-timing.d.ts +4 -0
  555. package/dist/typescript/commonjs/src/native/styles/functions/animation-timing.d.ts.map +1 -0
  556. package/dist/typescript/commonjs/src/native/styles/functions/calc.d.ts +3 -0
  557. package/dist/typescript/commonjs/src/native/styles/functions/calc.d.ts.map +1 -0
  558. package/dist/typescript/commonjs/src/native/styles/functions/filters.d.ts +12 -0
  559. package/dist/typescript/commonjs/src/native/styles/functions/filters.d.ts.map +1 -0
  560. package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts +8 -0
  561. package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts.map +1 -0
  562. package/dist/typescript/commonjs/src/native/styles/functions/numeric-functions.d.ts +5 -0
  563. package/dist/typescript/commonjs/src/native/styles/functions/numeric-functions.d.ts.map +1 -0
  564. package/dist/typescript/commonjs/src/native/styles/functions/platform-functions.d.ts +8 -0
  565. package/dist/typescript/commonjs/src/native/styles/functions/platform-functions.d.ts.map +1 -0
  566. package/dist/typescript/commonjs/src/native/styles/functions/string-functions.d.ts +3 -0
  567. package/dist/typescript/commonjs/src/native/styles/functions/string-functions.d.ts.map +1 -0
  568. package/dist/typescript/commonjs/src/native/styles/functions/transform-functions.d.ts +5 -0
  569. package/dist/typescript/commonjs/src/native/styles/functions/transform-functions.d.ts.map +1 -0
  570. package/dist/typescript/commonjs/src/native/styles/index.d.ts +19 -0
  571. package/dist/typescript/commonjs/src/native/styles/index.d.ts.map +1 -0
  572. package/dist/typescript/commonjs/src/native/styles/line-height.d.ts +3 -0
  573. package/dist/typescript/commonjs/src/native/styles/line-height.d.ts.map +1 -0
  574. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts +18 -0
  575. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts.map +1 -0
  576. package/dist/typescript/commonjs/src/native/styles/shorthands/_handler.d.ts +11 -0
  577. package/dist/typescript/commonjs/src/native/styles/shorthands/_handler.d.ts.map +1 -0
  578. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts +4 -0
  579. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts.map +1 -0
  580. package/dist/typescript/commonjs/src/native/styles/shorthands/border.d.ts +2 -0
  581. package/dist/typescript/commonjs/src/native/styles/shorthands/border.d.ts.map +1 -0
  582. package/dist/typescript/commonjs/src/native/styles/shorthands/box-shadow.d.ts +3 -0
  583. package/dist/typescript/commonjs/src/native/styles/shorthands/box-shadow.d.ts.map +1 -0
  584. package/dist/typescript/commonjs/src/native/styles/shorthands/index.d.ts +6 -0
  585. package/dist/typescript/commonjs/src/native/styles/shorthands/index.d.ts.map +1 -0
  586. package/dist/typescript/commonjs/src/native/styles/shorthands/text-shadow.d.ts +2 -0
  587. package/dist/typescript/commonjs/src/native/styles/shorthands/text-shadow.d.ts.map +1 -0
  588. package/dist/typescript/commonjs/src/native/styles/shorthands/transform.d.ts +7 -0
  589. package/dist/typescript/commonjs/src/native/styles/shorthands/transform.d.ts.map +1 -0
  590. package/dist/typescript/commonjs/src/native/styles/units.d.ts +6 -0
  591. package/dist/typescript/commonjs/src/native/styles/units.d.ts.map +1 -0
  592. package/dist/typescript/commonjs/src/native/styles/variables.d.ts +5 -0
  593. package/dist/typescript/commonjs/src/native/styles/variables.d.ts.map +1 -0
  594. package/dist/typescript/commonjs/src/native-internal/index.d.ts +4 -0
  595. package/dist/typescript/commonjs/src/native-internal/index.d.ts.map +1 -0
  596. package/dist/typescript/commonjs/src/native-internal/root.d.ts +11 -0
  597. package/dist/typescript/commonjs/src/native-internal/root.d.ts.map +1 -0
  598. package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts +16 -0
  599. package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts.map +1 -0
  600. package/dist/typescript/commonjs/src/native-internal/variables.d.ts +8 -0
  601. package/dist/typescript/commonjs/src/native-internal/variables.d.ts.map +1 -0
  602. package/dist/typescript/commonjs/src/poison.pill.d.ts +2 -0
  603. package/dist/typescript/commonjs/src/poison.pill.d.ts.map +1 -0
  604. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts +1 -0
  605. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts.map +1 -0
  606. package/dist/typescript/commonjs/src/runtime.d.ts +2 -0
  607. package/dist/typescript/commonjs/src/runtime.d.ts.map +1 -0
  608. package/dist/typescript/commonjs/src/runtime.native.d.ts +2 -0
  609. package/dist/typescript/commonjs/src/runtime.native.d.ts.map +1 -0
  610. package/dist/typescript/commonjs/src/runtime.types.d.ts +49 -0
  611. package/dist/typescript/commonjs/src/runtime.types.d.ts.map +1 -0
  612. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts +23 -0
  613. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts.map +1 -0
  614. package/dist/typescript/commonjs/src/utilities/index.d.ts +4 -0
  615. package/dist/typescript/commonjs/src/utilities/index.d.ts.map +1 -0
  616. package/dist/typescript/commonjs/src/utilities/specificity.d.ts +13 -0
  617. package/dist/typescript/commonjs/src/utilities/specificity.d.ts.map +1 -0
  618. package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts +4 -0
  619. package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts.map +1 -0
  620. package/dist/typescript/commonjs/src/web/api.d.ts +16 -0
  621. package/dist/typescript/commonjs/src/web/api.d.ts.map +1 -0
  622. package/dist/typescript/commonjs/src/web/assign-style.d.ts +2 -0
  623. package/dist/typescript/commonjs/src/web/assign-style.d.ts.map +1 -0
  624. package/dist/typescript/commonjs/src/web/index.d.ts +4 -0
  625. package/dist/typescript/commonjs/src/web/index.d.ts.map +1 -0
  626. package/dist/typescript/commonjs/src/web/metro.d.ts +2 -0
  627. package/dist/typescript/commonjs/src/web/metro.d.ts.map +1 -0
  628. package/dist/typescript/module/example/app.config.d.ts +4 -0
  629. package/dist/typescript/module/example/app.config.d.ts.map +1 -0
  630. package/dist/typescript/module/example/src/App.d.ts +2 -0
  631. package/dist/typescript/module/example/src/App.d.ts.map +1 -0
  632. package/dist/typescript/module/package.json +1 -0
  633. package/dist/typescript/module/src/babel/allowedModules.d.ts +2 -0
  634. package/dist/typescript/module/src/babel/allowedModules.d.ts.map +1 -0
  635. package/dist/typescript/module/src/babel/helpers.d.ts +13 -0
  636. package/dist/typescript/module/src/babel/helpers.d.ts.map +1 -0
  637. package/dist/typescript/module/src/babel/import-plugin.d.ts +6 -0
  638. package/dist/typescript/module/src/babel/import-plugin.d.ts.map +1 -0
  639. package/dist/typescript/module/src/babel/index.d.ts +4 -0
  640. package/dist/typescript/module/src/babel/index.d.ts.map +1 -0
  641. package/dist/typescript/module/src/babel/react-native-web.d.ts +8 -0
  642. package/dist/typescript/module/src/babel/react-native-web.d.ts.map +1 -0
  643. package/dist/typescript/module/src/babel/react-native.d.ts +8 -0
  644. package/dist/typescript/module/src/babel/react-native.d.ts.map +1 -0
  645. package/dist/typescript/module/src/compiler/atRules.d.ts +34 -0
  646. package/dist/typescript/module/src/compiler/atRules.d.ts.map +1 -0
  647. package/dist/typescript/module/src/compiler/compiler.d.ts +17 -0
  648. package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -0
  649. package/dist/typescript/module/src/compiler/compiler.types.d.ts +201 -0
  650. package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -0
  651. package/dist/typescript/module/src/compiler/container-query.d.ts +5 -0
  652. package/dist/typescript/module/src/compiler/container-query.d.ts.map +1 -0
  653. package/dist/typescript/module/src/compiler/declarations.d.ts +131 -0
  654. package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -0
  655. package/dist/typescript/module/src/compiler/functions-web.d.ts +11 -0
  656. package/dist/typescript/module/src/compiler/functions-web.d.ts.map +1 -0
  657. package/dist/typescript/module/src/compiler/functions.d.ts +11 -0
  658. package/dist/typescript/module/src/compiler/functions.d.ts.map +1 -0
  659. package/dist/typescript/module/src/compiler/index.d.ts +7 -0
  660. package/dist/typescript/module/src/compiler/index.d.ts.map +1 -0
  661. package/dist/typescript/module/src/compiler/inheritance.test.d.ts +2 -0
  662. package/dist/typescript/module/src/compiler/inheritance.test.d.ts.map +1 -0
  663. package/dist/typescript/module/src/compiler/inline-variables.d.ts +4 -0
  664. package/dist/typescript/module/src/compiler/inline-variables.d.ts.map +1 -0
  665. package/dist/typescript/module/src/compiler/keyframes.d.ts +7 -0
  666. package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -0
  667. package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts +30 -0
  668. package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts.map +1 -0
  669. package/dist/typescript/module/src/compiler/media-query.d.ts +7 -0
  670. package/dist/typescript/module/src/compiler/media-query.d.ts.map +1 -0
  671. package/dist/typescript/module/src/compiler/pseudo-elements.d.ts +4 -0
  672. package/dist/typescript/module/src/compiler/pseudo-elements.d.ts.map +1 -0
  673. package/dist/typescript/module/src/compiler/selector-builder.d.ts +24 -0
  674. package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -0
  675. package/dist/typescript/module/src/compiler/selectors.d.ts +24 -0
  676. package/dist/typescript/module/src/compiler/selectors.d.ts.map +1 -0
  677. package/dist/typescript/module/src/compiler/split-by-delimiter.d.ts +2 -0
  678. package/dist/typescript/module/src/compiler/split-by-delimiter.d.ts.map +1 -0
  679. package/dist/typescript/module/src/compiler/stylesheet.d.ts +69 -0
  680. package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -0
  681. package/dist/typescript/module/src/compiler/supports.d.ts +3 -0
  682. package/dist/typescript/module/src/compiler/supports.d.ts.map +1 -0
  683. package/dist/typescript/module/src/components/ActivityIndicator.d.ts +13 -0
  684. package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -0
  685. package/dist/typescript/module/src/components/Button.d.ts +13 -0
  686. package/dist/typescript/module/src/components/Button.d.ts.map +1 -0
  687. package/dist/typescript/module/src/components/FlatList.d.ts +10 -0
  688. package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -0
  689. package/dist/typescript/module/src/components/Image.d.ts +8 -0
  690. package/dist/typescript/module/src/components/Image.d.ts.map +1 -0
  691. package/dist/typescript/module/src/components/Switch.d.ts +8 -0
  692. package/dist/typescript/module/src/components/Switch.d.ts.map +1 -0
  693. package/dist/typescript/module/src/components/Text.d.ts +8 -0
  694. package/dist/typescript/module/src/components/Text.d.ts.map +1 -0
  695. package/dist/typescript/module/src/components/TextInput.d.ts +8 -0
  696. package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -0
  697. package/dist/typescript/module/src/components/View.d.ts +8 -0
  698. package/dist/typescript/module/src/components/View.d.ts.map +1 -0
  699. package/dist/typescript/module/src/components/index.d.ts +10 -0
  700. package/dist/typescript/module/src/components/index.d.ts.map +1 -0
  701. package/dist/typescript/module/src/components/react-native-safe-area-context.d.ts +2 -0
  702. package/dist/typescript/module/src/components/react-native-safe-area-context.d.ts.map +1 -0
  703. package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts +4 -0
  704. package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts.map +1 -0
  705. package/dist/typescript/module/src/index.d.ts +2 -0
  706. package/dist/typescript/module/src/index.d.ts.map +1 -0
  707. package/dist/typescript/module/src/jest/index.d.ts +30 -0
  708. package/dist/typescript/module/src/jest/index.d.ts.map +1 -0
  709. package/dist/typescript/module/src/jest/setup.d.ts +1 -0
  710. package/dist/typescript/module/src/jest/setup.d.ts.map +1 -0
  711. package/dist/typescript/module/src/jest/setupAfterEnv.d.ts +1 -0
  712. package/dist/typescript/module/src/jest/setupAfterEnv.d.ts.map +1 -0
  713. package/dist/typescript/module/src/metro/index.d.ts +11 -0
  714. package/dist/typescript/module/src/metro/index.d.ts.map +1 -0
  715. package/dist/typescript/module/src/metro/injection-code.d.ts +13 -0
  716. package/dist/typescript/module/src/metro/injection-code.d.ts.map +1 -0
  717. package/dist/typescript/module/src/metro/metro-transformer.d.ts +6 -0
  718. package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -0
  719. package/dist/typescript/module/src/metro/picocolors.d.ts +27 -0
  720. package/dist/typescript/module/src/metro/picocolors.d.ts.map +1 -0
  721. package/dist/typescript/module/src/metro/resolver.d.ts +4 -0
  722. package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -0
  723. package/dist/typescript/module/src/metro/stringify.d.ts +7 -0
  724. package/dist/typescript/module/src/metro/stringify.d.ts.map +1 -0
  725. package/dist/typescript/module/src/metro/typescript.d.ts +2 -0
  726. package/dist/typescript/module/src/metro/typescript.d.ts.map +1 -0
  727. package/dist/typescript/module/src/native/api.d.ts +26 -0
  728. package/dist/typescript/module/src/native/api.d.ts.map +1 -0
  729. package/dist/typescript/module/src/native/conditions/attributes.d.ts +4 -0
  730. package/dist/typescript/module/src/native/conditions/attributes.d.ts.map +1 -0
  731. package/dist/typescript/module/src/native/conditions/container-query.d.ts +7 -0
  732. package/dist/typescript/module/src/native/conditions/container-query.d.ts.map +1 -0
  733. package/dist/typescript/module/src/native/conditions/guards.d.ts +5 -0
  734. package/dist/typescript/module/src/native/conditions/guards.d.ts.map +1 -0
  735. package/dist/typescript/module/src/native/conditions/index.d.ts +6 -0
  736. package/dist/typescript/module/src/native/conditions/index.d.ts.map +1 -0
  737. package/dist/typescript/module/src/native/conditions/media-query.d.ts +4 -0
  738. package/dist/typescript/module/src/native/conditions/media-query.d.ts.map +1 -0
  739. package/dist/typescript/module/src/native/index.d.ts +4 -0
  740. package/dist/typescript/module/src/native/index.d.ts.map +1 -0
  741. package/dist/typescript/module/src/native/metro.d.ts +2 -0
  742. package/dist/typescript/module/src/native/metro.d.ts.map +1 -0
  743. package/dist/typescript/module/src/native/objects.d.ts +5 -0
  744. package/dist/typescript/module/src/native/objects.d.ts.map +1 -0
  745. package/dist/typescript/module/src/native/react/interaction.d.ts +6 -0
  746. package/dist/typescript/module/src/native/react/interaction.d.ts.map +1 -0
  747. package/dist/typescript/module/src/native/react/rules.d.ts +7 -0
  748. package/dist/typescript/module/src/native/react/rules.d.ts.map +1 -0
  749. package/dist/typescript/module/src/native/react/useNativeCss.d.ts +38 -0
  750. package/dist/typescript/module/src/native/react/useNativeCss.d.ts.map +1 -0
  751. package/dist/typescript/module/src/native/react/usePassthrough.d.ts +4 -0
  752. package/dist/typescript/module/src/native/react/usePassthrough.d.ts.map +1 -0
  753. package/dist/typescript/module/src/native/reactivity.d.ts +52 -0
  754. package/dist/typescript/module/src/native/reactivity.d.ts.map +1 -0
  755. package/dist/typescript/module/src/native/reanimated.d.ts +5 -0
  756. package/dist/typescript/module/src/native/reanimated.d.ts.map +1 -0
  757. package/dist/typescript/module/src/native/styles/calculate-props.d.ts +10 -0
  758. package/dist/typescript/module/src/native/styles/calculate-props.d.ts.map +1 -0
  759. package/dist/typescript/module/src/native/styles/constants.d.ts +3 -0
  760. package/dist/typescript/module/src/native/styles/constants.d.ts.map +1 -0
  761. package/dist/typescript/module/src/native/styles/defaults.d.ts +3 -0
  762. package/dist/typescript/module/src/native/styles/defaults.d.ts.map +1 -0
  763. package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts +4 -0
  764. package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts.map +1 -0
  765. package/dist/typescript/module/src/native/styles/functions/calc.d.ts +3 -0
  766. package/dist/typescript/module/src/native/styles/functions/calc.d.ts.map +1 -0
  767. package/dist/typescript/module/src/native/styles/functions/filters.d.ts +12 -0
  768. package/dist/typescript/module/src/native/styles/functions/filters.d.ts.map +1 -0
  769. package/dist/typescript/module/src/native/styles/functions/index.d.ts +8 -0
  770. package/dist/typescript/module/src/native/styles/functions/index.d.ts.map +1 -0
  771. package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts +5 -0
  772. package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts.map +1 -0
  773. package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts +8 -0
  774. package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts.map +1 -0
  775. package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts +3 -0
  776. package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts.map +1 -0
  777. package/dist/typescript/module/src/native/styles/functions/transform-functions.d.ts +5 -0
  778. package/dist/typescript/module/src/native/styles/functions/transform-functions.d.ts.map +1 -0
  779. package/dist/typescript/module/src/native/styles/index.d.ts +19 -0
  780. package/dist/typescript/module/src/native/styles/index.d.ts.map +1 -0
  781. package/dist/typescript/module/src/native/styles/line-height.d.ts +3 -0
  782. package/dist/typescript/module/src/native/styles/line-height.d.ts.map +1 -0
  783. package/dist/typescript/module/src/native/styles/resolve.d.ts +18 -0
  784. package/dist/typescript/module/src/native/styles/resolve.d.ts.map +1 -0
  785. package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts +11 -0
  786. package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts.map +1 -0
  787. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts +4 -0
  788. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts.map +1 -0
  789. package/dist/typescript/module/src/native/styles/shorthands/border.d.ts +2 -0
  790. package/dist/typescript/module/src/native/styles/shorthands/border.d.ts.map +1 -0
  791. package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts +3 -0
  792. package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts.map +1 -0
  793. package/dist/typescript/module/src/native/styles/shorthands/index.d.ts +6 -0
  794. package/dist/typescript/module/src/native/styles/shorthands/index.d.ts.map +1 -0
  795. package/dist/typescript/module/src/native/styles/shorthands/text-shadow.d.ts +2 -0
  796. package/dist/typescript/module/src/native/styles/shorthands/text-shadow.d.ts.map +1 -0
  797. package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts +7 -0
  798. package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts.map +1 -0
  799. package/dist/typescript/module/src/native/styles/units.d.ts +6 -0
  800. package/dist/typescript/module/src/native/styles/units.d.ts.map +1 -0
  801. package/dist/typescript/module/src/native/styles/variables.d.ts +5 -0
  802. package/dist/typescript/module/src/native/styles/variables.d.ts.map +1 -0
  803. package/dist/typescript/module/src/native-internal/index.d.ts +4 -0
  804. package/dist/typescript/module/src/native-internal/index.d.ts.map +1 -0
  805. package/dist/typescript/module/src/native-internal/root.d.ts +11 -0
  806. package/dist/typescript/module/src/native-internal/root.d.ts.map +1 -0
  807. package/dist/typescript/module/src/native-internal/style-collection.d.ts +16 -0
  808. package/dist/typescript/module/src/native-internal/style-collection.d.ts.map +1 -0
  809. package/dist/typescript/module/src/native-internal/variables.d.ts +8 -0
  810. package/dist/typescript/module/src/native-internal/variables.d.ts.map +1 -0
  811. package/dist/typescript/module/src/poison.pill.d.ts +2 -0
  812. package/dist/typescript/module/src/poison.pill.d.ts.map +1 -0
  813. package/dist/typescript/module/src/runtime/native/injection.d.ts +1 -0
  814. package/dist/typescript/module/src/runtime/native/injection.d.ts.map +1 -0
  815. package/dist/typescript/module/src/runtime.d.ts +2 -0
  816. package/dist/typescript/module/src/runtime.d.ts.map +1 -0
  817. package/dist/typescript/module/src/runtime.native.d.ts +2 -0
  818. package/dist/typescript/module/src/runtime.native.d.ts.map +1 -0
  819. package/dist/typescript/module/src/runtime.types.d.ts +49 -0
  820. package/dist/typescript/module/src/runtime.types.d.ts.map +1 -0
  821. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts +23 -0
  822. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts.map +1 -0
  823. package/dist/typescript/module/src/utilities/index.d.ts +4 -0
  824. package/dist/typescript/module/src/utilities/index.d.ts.map +1 -0
  825. package/dist/typescript/module/src/utilities/specificity.d.ts +13 -0
  826. package/dist/typescript/module/src/utilities/specificity.d.ts.map +1 -0
  827. package/dist/typescript/module/src/utilities/style-descriptor.d.ts +4 -0
  828. package/dist/typescript/module/src/utilities/style-descriptor.d.ts.map +1 -0
  829. package/dist/typescript/module/src/web/api.d.ts +16 -0
  830. package/dist/typescript/module/src/web/api.d.ts.map +1 -0
  831. package/dist/typescript/module/src/web/assign-style.d.ts +2 -0
  832. package/dist/typescript/module/src/web/assign-style.d.ts.map +1 -0
  833. package/dist/typescript/module/src/web/index.d.ts +4 -0
  834. package/dist/typescript/module/src/web/index.d.ts.map +1 -0
  835. package/dist/typescript/module/src/web/metro.d.ts +2 -0
  836. package/dist/typescript/module/src/web/metro.d.ts.map +1 -0
  837. package/package.json +304 -0
  838. package/src/babel/allowedModules.ts +24 -0
  839. package/src/babel/helpers.ts +40 -0
  840. package/src/babel/import-plugin.ts +176 -0
  841. package/src/babel/index.ts +9 -0
  842. package/src/babel/react-native-web.ts +226 -0
  843. package/src/babel/react-native.ts +226 -0
  844. package/src/compiler/atRules.ts +136 -0
  845. package/src/compiler/compiler.ts +379 -0
  846. package/src/compiler/compiler.types.ts +275 -0
  847. package/src/compiler/container-query.ts +97 -0
  848. package/src/compiler/declarations.ts +3348 -0
  849. package/src/compiler/functions-web.ts +44 -0
  850. package/src/compiler/functions.ts +64 -0
  851. package/src/compiler/index.ts +7 -0
  852. package/src/compiler/inheritance.test.ts +121 -0
  853. package/src/compiler/inline-variables.ts +209 -0
  854. package/src/compiler/keyframes.ts +86 -0
  855. package/src/compiler/lightningcss-loader.ts +40 -0
  856. package/src/compiler/media-query.ts +251 -0
  857. package/src/compiler/pseudo-elements.ts +54 -0
  858. package/src/compiler/selector-builder.ts +592 -0
  859. package/src/compiler/selectors.ts +505 -0
  860. package/src/compiler/split-by-delimiter.ts +19 -0
  861. package/src/compiler/stylesheet.ts +682 -0
  862. package/src/compiler/supports.ts +26 -0
  863. package/src/components/ActivityIndicator.tsx +27 -0
  864. package/src/components/Button.tsx +22 -0
  865. package/src/components/FlatList.tsx +21 -0
  866. package/src/components/Image.tsx +17 -0
  867. package/src/components/Switch.tsx +17 -0
  868. package/src/components/Text.tsx +17 -0
  869. package/src/components/TextInput.tsx +17 -0
  870. package/src/components/View.tsx +17 -0
  871. package/src/components/index.tsx +10 -0
  872. package/src/components/react-native-safe-area-context.native.tsx +44 -0
  873. package/src/components/react-native-safe-area-context.tsx +1 -0
  874. package/src/index.ts +1 -0
  875. package/src/jest/expect.d.ts +1 -0
  876. package/src/jest/index.ts +74 -0
  877. package/src/jest/setup.ts +1 -0
  878. package/src/jest/setupAfterEnv.ts +13 -0
  879. package/src/metro/index.ts +241 -0
  880. package/src/metro/injection-code.ts +34 -0
  881. package/src/metro/metro-transformer.ts +48 -0
  882. package/src/metro/picocolors.ts +77 -0
  883. package/src/metro/resolver.ts +97 -0
  884. package/src/metro/stringify.ts +59 -0
  885. package/src/metro/typescript.ts +73 -0
  886. package/src/native/api.tsx +120 -0
  887. package/src/native/conditions/attributes.ts +54 -0
  888. package/src/native/conditions/container-query.ts +162 -0
  889. package/src/native/conditions/guards.ts +44 -0
  890. package/src/native/conditions/index.ts +55 -0
  891. package/src/native/conditions/media-query.ts +99 -0
  892. package/src/native/index.ts +4 -0
  893. package/src/native/metro.ts +2 -0
  894. package/src/native/objects.ts +109 -0
  895. package/src/native/react/interaction.ts +90 -0
  896. package/src/native/react/rules.ts +336 -0
  897. package/src/native/react/useNativeCss.ts +204 -0
  898. package/src/native/react/usePassthrough.ts +51 -0
  899. package/src/native/reactivity.ts +248 -0
  900. package/src/native/reanimated.ts +22 -0
  901. package/src/native/styles/calculate-props.ts +217 -0
  902. package/src/native/styles/constants.ts +2 -0
  903. package/src/native/styles/defaults.ts +79 -0
  904. package/src/native/styles/functions/animation-timing.ts +44 -0
  905. package/src/native/styles/functions/calc.ts +121 -0
  906. package/src/native/styles/functions/filters.ts +99 -0
  907. package/src/native/styles/functions/index.ts +7 -0
  908. package/src/native/styles/functions/numeric-functions.ts +38 -0
  909. package/src/native/styles/functions/platform-functions.ts +50 -0
  910. package/src/native/styles/functions/string-functions.ts +22 -0
  911. package/src/native/styles/functions/transform-functions.ts +85 -0
  912. package/src/native/styles/index.ts +198 -0
  913. package/src/native/styles/line-height.ts +25 -0
  914. package/src/native/styles/resolve.ts +165 -0
  915. package/src/native/styles/shorthands/_handler.ts +122 -0
  916. package/src/native/styles/shorthands/animation.ts +123 -0
  917. package/src/native/styles/shorthands/border.ts +10 -0
  918. package/src/native/styles/shorthands/box-shadow.ts +71 -0
  919. package/src/native/styles/shorthands/index.ts +5 -0
  920. package/src/native/styles/shorthands/text-shadow.ts +17 -0
  921. package/src/native/styles/shorthands/transform.ts +23 -0
  922. package/src/native/styles/units.ts +62 -0
  923. package/src/native/styles/variables.ts +88 -0
  924. package/src/native-internal/README.md +11 -0
  925. package/src/native-internal/index.ts +3 -0
  926. package/src/native-internal/root.ts +44 -0
  927. package/src/native-internal/style-collection.ts +148 -0
  928. package/src/native-internal/variables.tsx +36 -0
  929. package/src/poison.pill.ts +36 -0
  930. package/src/runtime/native/injection.ts +0 -0
  931. package/src/runtime.native.ts +1 -0
  932. package/src/runtime.ts +1 -0
  933. package/src/runtime.types.ts +150 -0
  934. package/src/utilities/dot-notation.types.ts +118 -0
  935. package/src/utilities/index.ts +3 -0
  936. package/src/utilities/specificity.ts +45 -0
  937. package/src/utilities/style-descriptor.ts +24 -0
  938. package/src/web/api.tsx +115 -0
  939. package/src/web/assign-style.ts +26 -0
  940. package/src/web/index.ts +5 -0
  941. package/src/web/metro.ts +2 -0
  942. package/types.d.ts +70 -0
@@ -0,0 +1,55 @@
1
+ import type { PseudoClassesQuery, StyleRule } from "react-native-css/compiler";
2
+
3
+ import type { Props } from "../../runtime.types";
4
+ import {
5
+ activeFamily,
6
+ focusFamily,
7
+ hoverFamily,
8
+ type ContainerContextValue,
9
+ type Getter,
10
+ } from "../reactivity";
11
+ import { testAttributes } from "./attributes";
12
+ import { testContainerQueries } from "./container-query";
13
+ import type { RenderGuard } from "./guards";
14
+ import { testMediaQuery } from "./media-query";
15
+
16
+ export function testRule(
17
+ rule: StyleRule,
18
+ get: Getter,
19
+ props: Props,
20
+ guards: RenderGuard[],
21
+ containerContext: ContainerContextValue,
22
+ ) {
23
+ if (rule.p && !pseudoClasses(rule.p, get)) {
24
+ return false;
25
+ }
26
+ if (rule.m && !testMediaQuery(rule.m, get)) {
27
+ return false;
28
+ }
29
+ if (rule.aq && !testAttributes(rule.aq, props, guards)) {
30
+ return false;
31
+ }
32
+ if (
33
+ rule.cq &&
34
+ !testContainerQueries(rule.cq, containerContext, guards, get)
35
+ ) {
36
+ return false;
37
+ }
38
+
39
+ return true;
40
+ }
41
+
42
+ function pseudoClasses(query: PseudoClassesQuery, get: Getter) {
43
+ // IMPORTANT: active needs: to be first. Modifies a global value
44
+ // that we use to determine if the component should be a pressable
45
+ if (query.a && !get(activeFamily(get))) {
46
+ return false;
47
+ }
48
+ if (query.h && !get(hoverFamily(get))) {
49
+ return false;
50
+ }
51
+ if (query.f && !get(focusFamily(get))) {
52
+ return false;
53
+ }
54
+ return true;
55
+ }
@@ -0,0 +1,99 @@
1
+ /* eslint-disable */
2
+ import { I18nManager, PixelRatio, Platform } from "react-native";
3
+
4
+ import type { MediaCondition } from "react-native-css/compiler";
5
+
6
+ import { colorScheme, vh, vw, type Getter } from "../reactivity";
7
+
8
+ export function testMediaQuery(mediaQueries: MediaCondition[], get: Getter) {
9
+ return mediaQueries.every((query) => test(query, get));
10
+ }
11
+
12
+ function test(mediaQuery: MediaCondition, get: Getter): Boolean {
13
+ switch (mediaQuery[0]) {
14
+ case "[]":
15
+ case "!!":
16
+ return false;
17
+ case "!":
18
+ return !test(mediaQuery[1], get);
19
+ case "&":
20
+ return mediaQuery[1].every((query) => {
21
+ return test(query, get);
22
+ });
23
+ case "|":
24
+ return mediaQuery[1].some((query) => {
25
+ return test(query, get);
26
+ });
27
+ case ">":
28
+ case ">=":
29
+ case "<":
30
+ case "<=":
31
+ case "=": {
32
+ return testComparison(mediaQuery, get);
33
+ }
34
+ }
35
+ }
36
+
37
+ function testComparison(mediaQuery: MediaCondition, get: Getter): Boolean {
38
+ const value = mediaQuery[2];
39
+
40
+ switch (mediaQuery[1]) {
41
+ case "dir":
42
+ return (I18nManager.isRTL && value === "rtl") || value === "ltr";
43
+ case "hover":
44
+ return true;
45
+ case "platform":
46
+ return value === "native" || value === Platform.OS;
47
+ case "prefers-color-scheme": {
48
+ return value === get(colorScheme);
49
+ }
50
+ case "display-mode":
51
+ return value === "native" || Platform.OS === value;
52
+ case "min-width":
53
+ return typeof value === "number" && get(vw) >= value;
54
+ case "max-width":
55
+ return typeof value === "number" && get(vw) <= value;
56
+ case "min-height":
57
+ return typeof value === "number" && get(vh) >= value;
58
+ case "max-height":
59
+ return typeof value === "number" && get(vh) <= value;
60
+ case "orientation":
61
+ return value === "landscape" ? get(vh) < get(vw) : get(vh) >= get(vw);
62
+ }
63
+
64
+ if (typeof value !== "number") {
65
+ return false;
66
+ }
67
+
68
+ let left: number | undefined;
69
+ const right = value;
70
+
71
+ switch (mediaQuery[1]) {
72
+ case "width":
73
+ left = get(vw);
74
+ break;
75
+ case "height":
76
+ left = get(vh);
77
+ break;
78
+ case "resolution":
79
+ left = PixelRatio.get();
80
+ break;
81
+ default:
82
+ return false;
83
+ }
84
+
85
+ switch (mediaQuery[0]) {
86
+ case "=":
87
+ return left === right;
88
+ case ">":
89
+ return left > right;
90
+ case ">=":
91
+ return left >= right;
92
+ case "<":
93
+ return left < right;
94
+ case "<=":
95
+ return left <= right;
96
+ default:
97
+ return false;
98
+ }
99
+ }
@@ -0,0 +1,4 @@
1
+ export * from "./metro";
2
+
3
+ export * from "./api";
4
+ export type * from "../runtime.types";
@@ -0,0 +1,2 @@
1
+ // This file will be overwritten by Metro
2
+ export {};
@@ -0,0 +1,109 @@
1
+ /* eslint-disable */
2
+ import { ShortHandSymbol } from "../native/styles/constants";
3
+ import { transformKeys } from "../native/styles/defaults";
4
+
5
+ export function getDeepPath(source: any, paths: string | string[] | false) {
6
+ if (!source) {
7
+ return;
8
+ }
9
+
10
+ if (paths === false) {
11
+ return undefined;
12
+ }
13
+
14
+ if (Array.isArray(paths)) {
15
+ let target = source;
16
+
17
+ for (const path of paths) {
18
+ if (typeof target !== "object" || !target || !(path in target)) {
19
+ return undefined;
20
+ }
21
+
22
+ target = target[path];
23
+ }
24
+
25
+ return target;
26
+ } else if (transformKeys.has(paths)) {
27
+ return Array.isArray(source?.transform)
28
+ ? source.transform.find((t: any) => t[paths] !== undefined)
29
+ : source.transform;
30
+ } else {
31
+ return source?.[paths];
32
+ }
33
+ }
34
+
35
+ export function applyShorthand(value: any) {
36
+ if (value === undefined) {
37
+ return;
38
+ }
39
+
40
+ const target: Record<string, unknown> = { [ShortHandSymbol]: true };
41
+
42
+ const values = value as [unknown, string][];
43
+
44
+ for (const [value, prop] of values) {
45
+ target[prop] = value;
46
+ }
47
+
48
+ return target;
49
+ }
50
+
51
+ export function applyValue(
52
+ target: Record<string, any>,
53
+ prop: string,
54
+ value: any,
55
+ ) {
56
+ // This is confusing.
57
+ // An undefined value means "don't set anything" (something failed while parsing)
58
+ // While a null value means "remove this value", which in React Native means "set to undefined"
59
+ if (value === undefined) {
60
+ return;
61
+ } else if (value === null) {
62
+ value = undefined;
63
+ }
64
+
65
+ if (transformKeys.has(prop)) {
66
+ if (!Array.isArray(target.transform)) {
67
+ target.transform = [];
68
+ }
69
+
70
+ const transformArray: Record<string, unknown>[] = target.transform;
71
+
72
+ // Remove any existing values
73
+ target.transform = transformArray.filter((t) => !(prop in t));
74
+
75
+ if (Array.isArray(value)) {
76
+ target.transform.push(...value);
77
+ } else {
78
+ target.transform.push(value);
79
+ }
80
+ return;
81
+ } else if (typeof value === "object" && value && ShortHandSymbol in value) {
82
+ delete value[ShortHandSymbol];
83
+ Object.assign(target, value);
84
+ return;
85
+ }
86
+
87
+ target[prop] = value;
88
+ }
89
+
90
+ export function setDeepPath(
91
+ target: Record<string, any>,
92
+ paths: string | string[] | readonly string[],
93
+ value: any,
94
+ ) {
95
+ if (typeof paths === "string") {
96
+ target[paths] = value;
97
+ return target;
98
+ }
99
+
100
+ for (let i = 0; i < paths.length - 1; i++) {
101
+ const path = paths[i]!;
102
+ target[path] ??= {};
103
+ target = target[path];
104
+ }
105
+
106
+ target[paths[paths.length - 1]!] = value;
107
+
108
+ return target;
109
+ }
@@ -0,0 +1,90 @@
1
+ /* eslint-disable */
2
+ import type { LayoutChangeEvent } from "react-native";
3
+
4
+ import {
5
+ activeFamily,
6
+ containerLayoutFamily,
7
+ focusFamily,
8
+ hoverFamily,
9
+ type Getter as WeakKey,
10
+ } from "../reactivity";
11
+
12
+ const mainCache = new WeakMap<
13
+ WeakKey,
14
+ WeakMap<Function, (event: any) => void>
15
+ >();
16
+
17
+ type Handler = (event: unknown) => void;
18
+
19
+ export type InteractionType =
20
+ | "onLayout"
21
+ | "onHoverIn"
22
+ | "onHoverOut"
23
+ | "onPress"
24
+ | "onPressIn"
25
+ | "onPressOut"
26
+ | "onFocus"
27
+ | "onBlur";
28
+
29
+ const defaultHandlers: Record<InteractionType, Handler> = {
30
+ onLayout: () => {},
31
+ onHoverIn: () => {},
32
+ onHoverOut: () => {},
33
+ onPress: () => {},
34
+ onPressIn: () => {},
35
+ onPressOut: () => {},
36
+ onFocus: () => {},
37
+ onBlur: () => {},
38
+ };
39
+
40
+ export function getInteractionHandler(
41
+ weakKey: WeakKey,
42
+ type: InteractionType,
43
+ handler = defaultHandlers[type],
44
+ ) {
45
+ let cache = mainCache.get(weakKey);
46
+ if (!cache) {
47
+ cache = new WeakMap();
48
+ mainCache.set(weakKey, cache);
49
+ }
50
+
51
+ let cached = cache.get(handler);
52
+ if (!cached) {
53
+ cached = (event: any) => {
54
+ if (handler) {
55
+ handler(event);
56
+ }
57
+
58
+ switch (type) {
59
+ case "onLayout":
60
+ containerLayoutFamily(weakKey).set(
61
+ (event as LayoutChangeEvent).nativeEvent.layout,
62
+ );
63
+ break;
64
+ case "onHoverIn":
65
+ hoverFamily(weakKey).set(true);
66
+ break;
67
+ case "onHoverOut":
68
+ hoverFamily(weakKey).set(false);
69
+ break;
70
+ case "onPress":
71
+ break;
72
+ case "onPressIn":
73
+ activeFamily(weakKey).set(true);
74
+ break;
75
+ case "onPressOut":
76
+ activeFamily(weakKey).set(false);
77
+ break;
78
+ case "onFocus":
79
+ focusFamily(weakKey).set(true);
80
+ break;
81
+ case "onBlur":
82
+ focusFamily(weakKey).set(false);
83
+ break;
84
+ }
85
+ };
86
+ cache.set(handler, cached);
87
+ }
88
+
89
+ return cached;
90
+ }
@@ -0,0 +1,336 @@
1
+ /* eslint-disable */
2
+ import type { InlineVariable, StyleRule } from "react-native-css/compiler";
3
+ import { StyleCollection } from "react-native-css/native-internal";
4
+
5
+ import { testRule } from "../conditions";
6
+ import { DEFAULT_CONTAINER_NAME } from "../conditions/container-query";
7
+ import type { RenderGuard } from "../conditions/guards";
8
+ import { getDeepPath } from "../objects";
9
+ import {
10
+ activeFamily,
11
+ containerLayoutFamily,
12
+ focusFamily,
13
+ hoverFamily,
14
+ VAR_SYMBOL,
15
+ weakFamily,
16
+ type ContainerContextValue,
17
+ type VariableContextValue,
18
+ } from "../reactivity";
19
+ import { stylesFamily } from "../styles";
20
+ import type { ComponentState, Config } from "./useNativeCss";
21
+
22
+ export const INLINE_RULE_SYMBOL = Symbol("react-native-css.inlineRule");
23
+
24
+ export function updateRules(
25
+ state: ComponentState,
26
+ // Either update the state with new props or use the current props
27
+ currentProps = state.currentProps,
28
+ inheritedVariables = state.inheritedVariables,
29
+ inheritedContainers = state.inheritedContainers,
30
+ forceUpdate = false,
31
+ isRerender = true,
32
+ ): ComponentState {
33
+ const guards: RenderGuard[] = [];
34
+ const rules = new Set<StyleRule | InlineVariable | VariableContextValue>();
35
+ if (forceUpdate) {
36
+ state = { ...state, guards, currentProps };
37
+ }
38
+
39
+ let usesVariables = false;
40
+
41
+ let variables: VariableContextValue | undefined;
42
+ let containers: ContainerContextValue | undefined;
43
+ const inlineVariables = new Set<InlineVariable>();
44
+
45
+ let animated = false;
46
+ let pressable = false;
47
+
48
+ for (const config of state.configs) {
49
+ const source = currentProps?.[config.source];
50
+ const shallowTarget = Array.isArray(config.target)
51
+ ? config.target[0]
52
+ : config.target;
53
+
54
+ guards.push(["a", config.source, source]);
55
+ if (shallowTarget) {
56
+ guards.push(["a", shallowTarget, currentProps?.[shallowTarget]]);
57
+ }
58
+
59
+ const styleRuleSet = [];
60
+
61
+ if (typeof source === "string") {
62
+ const classNames = source.split(/\s+/);
63
+ for (const className of classNames) {
64
+ styleRuleSet.push(
65
+ ...StyleCollection.styles(className).get(state.ruleEffect),
66
+ );
67
+ }
68
+ }
69
+
70
+ const target = getDeepPath(currentProps, config.target);
71
+ if (target) {
72
+ if (Array.isArray(target)) {
73
+ for (const item of target) {
74
+ // undefined or falsy is allowed in the style array
75
+ if (!item) {
76
+ continue;
77
+ }
78
+
79
+ if (VAR_SYMBOL in item) {
80
+ inlineVariables.add(item);
81
+ } else if (
82
+ INLINE_RULE_SYMBOL in item &&
83
+ typeof item[INLINE_RULE_SYMBOL] === "string"
84
+ ) {
85
+ pushInlineRule(state, item, styleRuleSet);
86
+ }
87
+ }
88
+ } else if (
89
+ config.target &&
90
+ typeof target === "object" &&
91
+ target &&
92
+ VAR_SYMBOL in target
93
+ ) {
94
+ inlineVariables.add(target);
95
+ } else if (
96
+ INLINE_RULE_SYMBOL in target &&
97
+ typeof target[INLINE_RULE_SYMBOL] === "string"
98
+ ) {
99
+ pushInlineRule(state, target, styleRuleSet);
100
+ }
101
+ }
102
+
103
+ for (let rule of styleRuleSet) {
104
+ usesVariables ||= Boolean(rule.dv);
105
+
106
+ // We do this even if the rule doesn't match so we can maintain a consistent render tree
107
+ // We we need to inject React context
108
+ if (rule.a) animated = true;
109
+
110
+ if (rule.v) {
111
+ variables ??= inheritedVariables;
112
+ }
113
+
114
+ if (rule.c) {
115
+ containers ??= inheritedContainers;
116
+ activeFamily(state.ruleEffectGetter);
117
+ }
118
+
119
+ if (
120
+ !testRule(
121
+ rule,
122
+ state.ruleEffectGetter,
123
+ currentProps,
124
+ guards,
125
+ inheritedContainers,
126
+ )
127
+ ) {
128
+ continue;
129
+ }
130
+
131
+ if (rule.v) {
132
+ if (variables === inheritedVariables) {
133
+ variables = { ...inheritedVariables };
134
+ }
135
+
136
+ for (const v of rule.v) {
137
+ variables![v[0]] = v[1];
138
+ }
139
+ }
140
+
141
+ if (rule.c) {
142
+ // We're going to set a value, so we need to create a new object
143
+ if (containers === inheritedContainers) {
144
+ containers = {
145
+ ...inheritedContainers,
146
+ // This container becomes the default container
147
+ [DEFAULT_CONTAINER_NAME]: state.ruleEffectGetter,
148
+ };
149
+ }
150
+
151
+ // This this component as the named container
152
+ for (const name of rule.c) {
153
+ containers![name] = state.ruleEffectGetter;
154
+ }
155
+
156
+ // Enable hover/active/focus/layout handlers
157
+ hoverFamily(state.ruleEffectGetter);
158
+ activeFamily(state.ruleEffectGetter);
159
+ focusFamily(state.ruleEffectGetter);
160
+ containerLayoutFamily(state.ruleEffectGetter);
161
+ }
162
+
163
+ if (rule.a) {
164
+ animated = true;
165
+ }
166
+
167
+ // Rules normally target style. If the target is not style, we need to create a new rule.
168
+ if (config.target !== "style") {
169
+ rule = getRuleVariation(rule)(config);
170
+ }
171
+
172
+ // Add the rule to the set and update the hash
173
+ rules.add(rule);
174
+ }
175
+
176
+ if (process.env.NODE_ENV !== "production") {
177
+ if (isRerender) {
178
+ const pressable = activeFamily.has(state.ruleEffectGetter);
179
+
180
+ if (Boolean(variables) !== Boolean(state.variables)) {
181
+ console.log(
182
+ `ReactNativeCss: className '${source}' added or removed a variable after the initial render. This causes the components state to be reset and all children be re-mounted. Use the className 'will-change-variable' to avoid this warning. If this was caused by sibling components being added/removed, use a 'key' prop so React can track the component correctly.`,
183
+ );
184
+ } else if (Boolean(containers) !== Boolean(state.containers)) {
185
+ console.log(
186
+ `ReactNativeCss: className '${source}' added or removed a container after the initial render. This causes the components state to be reset and all children be re-mounted. This will cause unexpected behavior. Use the className 'will-change-container' to avoid this warning. If this was caused by sibling components being added/removed, use a 'key' prop so React can track the component correctly.`,
187
+ );
188
+ } else if (animated !== state.animated) {
189
+ console.log(
190
+ `ReactNativeCss: className '${source}' added or removed an animation after the initial render. This causes the components state to be reset and all children be re-mounted. This will cause unexpected behavior. Use the className 'will-change-animation' to avoid this warning. If this was caused by sibling components being added/removed, use a 'key' prop so React can track the component correctly.`,
191
+ );
192
+ } else if (pressable !== state.pressable) {
193
+ console.log(
194
+ `ReactNativeCss: className '${source}' added or removed a pressable state after the initial render. This causes the components state to be reset and all children be re-mounted. This will cause unexpected behavior. Use the className 'will-change-pressable' to avoid this warning. If this was caused by sibling components being added/removed, use a 'key' prop so React can track the component correctly.`,
195
+ );
196
+ }
197
+ }
198
+ }
199
+ }
200
+
201
+ pressable = activeFamily.has(state.ruleEffectGetter);
202
+
203
+ if (!rules.size && !state.stylesObs && !inlineVariables.size) {
204
+ return {
205
+ ...state,
206
+ currentProps,
207
+ guards,
208
+ animated,
209
+ pressable,
210
+ variables,
211
+ containers,
212
+ };
213
+ }
214
+
215
+ if (usesVariables || variables) {
216
+ rules.add(inheritedVariables);
217
+
218
+ if (inlineVariables.size) {
219
+ variables = Object.assign(
220
+ {},
221
+ variables,
222
+ inheritedVariables,
223
+ ...Array.from(inlineVariables),
224
+ { [VAR_SYMBOL]: true },
225
+ );
226
+ }
227
+
228
+ for (const variable of inlineVariables) {
229
+ rules.add(variable);
230
+ }
231
+ }
232
+
233
+ // Generate a StyleObservable for this unique set of rules / variables
234
+ const stylesObs = stylesFamily(generateStateHash(state, rules), rules);
235
+
236
+ // Get the guards without subscribing to the observable
237
+ // We will subscribe within the render using the StyleEffect
238
+ guards.push(...stylesObs.get().guards);
239
+
240
+ // If these are the same styles with no inline variables, we can skip the update
241
+ if (state.stylesObs === stylesObs && !inlineVariables.size) {
242
+ return state;
243
+ }
244
+
245
+ // Remove this component from the old observer
246
+ state.stylesObs?.cleanup(state.ruleEffect);
247
+
248
+ return {
249
+ ...state,
250
+ currentProps,
251
+ stylesObs,
252
+ variables,
253
+ containers,
254
+ guards,
255
+ animated,
256
+ pressable,
257
+ };
258
+ }
259
+
260
+ /**
261
+ * Create variations of a style rule based on the config.
262
+ * Cache for reference equality.
263
+ */
264
+ const getRuleVariation = weakFamily((rule: StyleRule) => {
265
+ return weakFamily((config: Config): StyleRule => {
266
+ return { ...rule, target: config.target };
267
+ });
268
+ });
269
+
270
+ function pushInlineRule(
271
+ state: ComponentState,
272
+ item: any,
273
+ styleRuleSet: StyleRule[],
274
+ ) {
275
+ for (const className of item[INLINE_RULE_SYMBOL].split(/\s+/)) {
276
+ let inlineRuleSet = StyleCollection.styles(className).get(state.ruleEffect);
277
+
278
+ for (let rule of inlineRuleSet) {
279
+ styleRuleSet.push(rule);
280
+ }
281
+ }
282
+ }
283
+
284
+ /**
285
+ * Get a unique number for a weak key.
286
+ */
287
+ let hashKeyCount = 0;
288
+ const hashKeyFamily = weakFamily(() => hashKeyCount++);
289
+
290
+ export function generateStateHash(
291
+ state: ComponentState,
292
+ iterableKeys?: Iterable<WeakKey>,
293
+ variables?: WeakKey,
294
+ inlineVars?: Set<WeakKey>,
295
+ ): string {
296
+ if (!iterableKeys) {
297
+ return "";
298
+ }
299
+
300
+ const keys = [state.configs, ...iterableKeys];
301
+
302
+ if (variables) {
303
+ keys.push(variables);
304
+ }
305
+
306
+ if (inlineVars) {
307
+ keys.push(...inlineVars);
308
+ }
309
+
310
+ return generateHash(keys);
311
+ }
312
+
313
+ /**
314
+ * Quickly generate a unique hash for a set of numbers.
315
+ * This is not a cryptographic hash, but it is fast and has a low chance of collision.
316
+ */
317
+ const MOD = 9007199254740871; // Largest prime within safe integer range 2^53
318
+ const PRIME = 31; // A smaller prime for mixing
319
+ export function generateHash(keys: WeakKey[]): string {
320
+ let hash = 0;
321
+ let product = 1; // Used for mixing to enhance uniqueness
322
+
323
+ for (const key of keys) {
324
+ if (!key) continue; // Skip if key is undefined
325
+
326
+ const num = hashKeyFamily(key);
327
+ hash = (hash ^ num) % MOD; // XOR and modular arithmetic
328
+ product = (product * (num + PRIME)) % MOD; // Mix with multiplication
329
+ }
330
+
331
+ // Combine hash and product to form the final hash
332
+ hash = (hash + product) % MOD;
333
+
334
+ // Return the hash as a string
335
+ return hash.toString(36);
336
+ }