react-native-css 0.0.0-nightly.d48061c → 0.0.0-nightly.da5ce0f

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 (1201) hide show
  1. package/README.md +141 -13
  2. package/dist/commonjs/compiler/atRules.js +30 -16
  3. package/dist/commonjs/compiler/atRules.js.map +1 -1
  4. package/dist/commonjs/compiler/compiler.js +67 -30
  5. package/dist/commonjs/compiler/compiler.js.map +1 -1
  6. package/dist/commonjs/compiler/compiler.types.js +1 -1
  7. package/dist/commonjs/compiler/compiler.types.js.map +1 -1
  8. package/dist/commonjs/compiler/declarations.js +114 -48
  9. package/dist/commonjs/compiler/declarations.js.map +1 -1
  10. package/dist/commonjs/compiler/inline-variables.js +142 -0
  11. package/dist/commonjs/compiler/inline-variables.js.map +1 -0
  12. package/dist/commonjs/compiler/keyframes.js +1 -1
  13. package/dist/commonjs/compiler/keyframes.js.map +1 -1
  14. package/dist/commonjs/compiler/lightningcss-loader.js +50 -0
  15. package/dist/commonjs/compiler/lightningcss-loader.js.map +1 -0
  16. package/dist/commonjs/compiler/pseudo-elements.js +1 -1
  17. package/dist/commonjs/compiler/selector-builder.js +4 -3
  18. package/dist/commonjs/compiler/selector-builder.js.map +1 -1
  19. package/dist/commonjs/compiler/selectors.js +4 -4
  20. package/dist/commonjs/compiler/selectors.js.map +1 -1
  21. package/dist/commonjs/compiler/stylesheet.js +9 -8
  22. package/dist/commonjs/compiler/stylesheet.js.map +1 -1
  23. package/dist/commonjs/compiler/supports.js +3 -1
  24. package/dist/commonjs/compiler/supports.js.map +1 -1
  25. package/dist/commonjs/components/ActivityIndicator.js +6 -6
  26. package/dist/commonjs/components/ActivityIndicator.js.map +1 -1
  27. package/dist/commonjs/components/Button.js +6 -6
  28. package/dist/commonjs/components/Button.js.map +1 -1
  29. package/dist/commonjs/components/FlatList.js +10 -9
  30. package/dist/commonjs/components/FlatList.js.map +1 -1
  31. package/dist/commonjs/components/Image.js +6 -6
  32. package/dist/commonjs/components/Image.js.map +1 -1
  33. package/dist/commonjs/components/ImageBackground.js +22 -0
  34. package/dist/commonjs/components/ImageBackground.js.map +1 -0
  35. package/dist/commonjs/components/KeyboardAvoidingView.js +19 -0
  36. package/dist/commonjs/components/KeyboardAvoidingView.js.map +1 -0
  37. package/dist/commonjs/components/Pressable.js +17 -0
  38. package/dist/commonjs/components/Pressable.js.map +1 -0
  39. package/dist/commonjs/components/SafeAreaProvider.js +13 -0
  40. package/dist/commonjs/components/SafeAreaProvider.js.map +1 -0
  41. package/dist/commonjs/components/ScrollView.js +18 -0
  42. package/dist/commonjs/components/ScrollView.js.map +1 -0
  43. package/dist/commonjs/components/Switch.js +6 -6
  44. package/dist/commonjs/components/Switch.js.map +1 -1
  45. package/dist/commonjs/components/Text.js +6 -6
  46. package/dist/commonjs/components/Text.js.map +1 -1
  47. package/dist/commonjs/components/TextInput.js +12 -7
  48. package/dist/commonjs/components/TextInput.js.map +1 -1
  49. package/dist/commonjs/components/TouchableHighlight.js +17 -0
  50. package/dist/commonjs/components/TouchableHighlight.js.map +1 -0
  51. package/dist/commonjs/components/TouchableOpacity.js +17 -0
  52. package/dist/commonjs/components/TouchableOpacity.js.map +1 -0
  53. package/dist/commonjs/components/TouchableWithoutFeedback.js +17 -0
  54. package/dist/commonjs/components/TouchableWithoutFeedback.js.map +1 -0
  55. package/dist/commonjs/components/View.js +6 -6
  56. package/dist/commonjs/components/View.js.map +1 -1
  57. package/dist/commonjs/components/VirtualizedList.js +20 -0
  58. package/dist/commonjs/components/VirtualizedList.js.map +1 -0
  59. package/dist/commonjs/components/copyComponentProperties.js +19 -0
  60. package/dist/commonjs/components/copyComponentProperties.js.map +1 -0
  61. package/dist/commonjs/components/index.cjs +265 -0
  62. package/dist/commonjs/components/index.cjs.map +1 -0
  63. package/dist/commonjs/components/index.js +65 -1
  64. package/dist/commonjs/components/index.js.map +1 -1
  65. package/dist/commonjs/components/react-native-safe-area-context.native.js +3 -3
  66. package/dist/commonjs/components/react-native-safe-area-context.native.js.map +1 -1
  67. package/dist/commonjs/index.js +4 -15
  68. package/dist/commonjs/index.js.map +1 -1
  69. package/dist/commonjs/jest/index.js +6 -6
  70. package/dist/commonjs/jest/index.js.map +1 -1
  71. package/dist/commonjs/metro/index.js +7 -117
  72. package/dist/commonjs/metro/index.js.map +1 -1
  73. package/dist/commonjs/metro/injection-code.js +1 -1
  74. package/dist/commonjs/metro/injection-code.js.map +1 -1
  75. package/dist/commonjs/metro/metro-transformer.js +8 -1
  76. package/dist/commonjs/metro/metro-transformer.js.map +1 -1
  77. package/dist/commonjs/metro/override.js +6 -0
  78. package/dist/commonjs/metro/override.js.map +1 -0
  79. package/dist/commonjs/metro/resolver.js +15 -22
  80. package/dist/commonjs/metro/resolver.js.map +1 -1
  81. package/dist/commonjs/native/api.js +117 -0
  82. package/dist/commonjs/native/api.js.map +1 -0
  83. package/dist/commonjs/native/conditions/attributes.js +44 -0
  84. package/dist/commonjs/native/conditions/attributes.js.map +1 -0
  85. package/dist/commonjs/native/conditions/container-query.js.map +1 -0
  86. package/dist/commonjs/native/conditions/guards.js.map +1 -0
  87. package/dist/commonjs/native/conditions/index.js.map +1 -0
  88. package/dist/commonjs/native/conditions/media-query.js.map +1 -0
  89. package/dist/commonjs/native/index.js +28 -0
  90. package/dist/commonjs/native/index.js.map +1 -0
  91. package/dist/commonjs/native/objects.js.map +1 -0
  92. package/dist/commonjs/native/react/interaction.js.map +1 -0
  93. package/dist/commonjs/native/react/rules.js +259 -0
  94. package/dist/commonjs/native/react/rules.js.map +1 -0
  95. package/dist/commonjs/native/react/useNativeCss.js +166 -0
  96. package/dist/commonjs/native/react/useNativeCss.js.map +1 -0
  97. package/dist/commonjs/native/react/usePassthrough.js.map +1 -0
  98. package/dist/commonjs/native/react-native-css-metro-override.js +39 -0
  99. package/dist/commonjs/native/react-native-css-metro-override.js.map +1 -0
  100. package/dist/commonjs/native/reactivity.js +181 -0
  101. package/dist/commonjs/native/reactivity.js.map +1 -0
  102. package/dist/commonjs/native/reanimated.js.map +1 -0
  103. package/dist/commonjs/native/styles/calculate-props.js +162 -0
  104. package/dist/commonjs/native/styles/calculate-props.js.map +1 -0
  105. package/dist/commonjs/native/styles/constants.js.map +1 -0
  106. package/dist/commonjs/native/styles/defaults.js.map +1 -0
  107. package/dist/commonjs/native/styles/functions/animation-timing.js.map +1 -0
  108. package/dist/commonjs/native/styles/functions/calc.js.map +1 -0
  109. package/dist/commonjs/native/styles/functions/color-mix.js +50 -0
  110. package/dist/commonjs/native/styles/functions/color-mix.js.map +1 -0
  111. package/dist/commonjs/native/styles/functions/filters.js +84 -0
  112. package/dist/commonjs/native/styles/functions/filters.js.map +1 -0
  113. package/dist/commonjs/native/styles/functions/index.js +94 -0
  114. package/dist/commonjs/native/styles/functions/index.js.map +1 -0
  115. package/dist/commonjs/native/styles/functions/numeric-functions.js.map +1 -0
  116. package/dist/commonjs/native/styles/functions/platform-functions.js.map +1 -0
  117. package/dist/commonjs/native/styles/functions/string-functions.js.map +1 -0
  118. package/dist/commonjs/native/styles/functions/transform-functions.js +121 -0
  119. package/dist/commonjs/native/styles/functions/transform-functions.js.map +1 -0
  120. package/dist/commonjs/native/styles/index.js +343 -0
  121. package/dist/commonjs/native/styles/index.js.map +1 -0
  122. package/dist/commonjs/native/styles/line-height.js.map +1 -0
  123. package/dist/commonjs/native/styles/resolve.js +107 -0
  124. package/dist/commonjs/native/styles/resolve.js.map +1 -0
  125. package/dist/commonjs/native/styles/shorthands/_handler.js +79 -0
  126. package/dist/commonjs/native/styles/shorthands/_handler.js.map +1 -0
  127. package/dist/commonjs/native/styles/shorthands/animation.js +61 -0
  128. package/dist/commonjs/native/styles/shorthands/animation.js.map +1 -0
  129. package/dist/commonjs/native/styles/shorthands/border.js.map +1 -0
  130. package/dist/commonjs/native/styles/shorthands/box-shadow.js +48 -0
  131. package/dist/commonjs/native/styles/shorthands/box-shadow.js.map +1 -0
  132. package/dist/commonjs/native/styles/shorthands/index.js.map +1 -0
  133. package/dist/commonjs/native/styles/shorthands/text-shadow.js.map +1 -0
  134. package/dist/commonjs/native/styles/shorthands/transform.js.map +1 -0
  135. package/dist/commonjs/native/styles/units.js.map +1 -0
  136. package/dist/commonjs/native/styles/variables.js +79 -0
  137. package/dist/commonjs/native/styles/variables.js.map +1 -0
  138. package/dist/commonjs/native-internal/README.md +11 -0
  139. package/dist/commonjs/native-internal/index.js +39 -0
  140. package/dist/commonjs/native-internal/index.js.map +1 -0
  141. package/dist/commonjs/native-internal/root.js +34 -0
  142. package/dist/commonjs/native-internal/root.js.map +1 -0
  143. package/dist/commonjs/native-internal/style-collection.js +110 -0
  144. package/dist/commonjs/native-internal/style-collection.js.map +1 -0
  145. package/dist/commonjs/native-internal/variables.js +27 -0
  146. package/dist/commonjs/native-internal/variables.js.map +1 -0
  147. package/dist/commonjs/runtime.js.map +1 -0
  148. package/dist/commonjs/runtime.native.js.map +1 -0
  149. package/dist/commonjs/runtime.types.js.map +1 -0
  150. package/dist/commonjs/utilities/dot-notation.types.js.map +1 -0
  151. package/dist/commonjs/utilities/index.js +39 -0
  152. package/dist/commonjs/utilities/index.js.map +1 -0
  153. package/dist/commonjs/utilities/specificity.js.map +1 -0
  154. package/dist/commonjs/utilities/style-descriptor.js +21 -0
  155. package/dist/commonjs/utilities/style-descriptor.js.map +1 -0
  156. package/dist/commonjs/web/api.js +89 -0
  157. package/dist/commonjs/web/api.js.map +1 -0
  158. package/dist/commonjs/web/assign-style.js.map +1 -0
  159. package/dist/commonjs/web/index.js.map +1 -0
  160. package/dist/commonjs/web/metro.js.map +1 -0
  161. package/dist/module/compiler/atRules.js +30 -16
  162. package/dist/module/compiler/atRules.js.map +1 -1
  163. package/dist/module/compiler/compiler.js +63 -26
  164. package/dist/module/compiler/compiler.js.map +1 -1
  165. package/dist/module/compiler/compiler.types.js +1 -1
  166. package/dist/module/compiler/compiler.types.js.map +1 -1
  167. package/dist/module/compiler/declarations.js +113 -48
  168. package/dist/module/compiler/declarations.js.map +1 -1
  169. package/dist/module/compiler/inline-variables.js +138 -0
  170. package/dist/module/compiler/inline-variables.js.map +1 -0
  171. package/dist/module/compiler/keyframes.js +1 -1
  172. package/dist/module/compiler/keyframes.js.map +1 -1
  173. package/dist/module/compiler/lightningcss-loader.js +46 -0
  174. package/dist/module/compiler/lightningcss-loader.js.map +1 -0
  175. package/dist/module/compiler/pseudo-elements.js +1 -1
  176. package/dist/module/compiler/pseudo-elements.js.map +1 -1
  177. package/dist/module/compiler/selector-builder.js +4 -3
  178. package/dist/module/compiler/selector-builder.js.map +1 -1
  179. package/dist/module/compiler/selectors.js +1 -1
  180. package/dist/module/compiler/selectors.js.map +1 -1
  181. package/dist/module/compiler/stylesheet.js +9 -8
  182. package/dist/module/compiler/stylesheet.js.map +1 -1
  183. package/dist/module/compiler/supports.js +3 -1
  184. package/dist/module/compiler/supports.js.map +1 -1
  185. package/dist/module/components/ActivityIndicator.js +4 -3
  186. package/dist/module/components/ActivityIndicator.js.map +1 -1
  187. package/dist/module/components/Button.js +4 -3
  188. package/dist/module/components/Button.js.map +1 -1
  189. package/dist/module/components/FlatList.js +8 -6
  190. package/dist/module/components/FlatList.js.map +1 -1
  191. package/dist/module/components/Image.js +4 -3
  192. package/dist/module/components/Image.js.map +1 -1
  193. package/dist/module/components/ImageBackground.js +18 -0
  194. package/dist/module/components/ImageBackground.js.map +1 -0
  195. package/dist/module/components/KeyboardAvoidingView.js +15 -0
  196. package/dist/module/components/KeyboardAvoidingView.js.map +1 -0
  197. package/dist/module/components/Pressable.js +13 -0
  198. package/dist/module/components/Pressable.js.map +1 -0
  199. package/dist/module/components/SafeAreaProvider.js +4 -0
  200. package/dist/module/components/SafeAreaProvider.js.map +1 -0
  201. package/dist/module/components/ScrollView.js +14 -0
  202. package/dist/module/components/ScrollView.js.map +1 -0
  203. package/dist/module/components/Switch.js +4 -3
  204. package/dist/module/components/Switch.js.map +1 -1
  205. package/dist/module/components/Text.js +4 -3
  206. package/dist/module/components/Text.js.map +1 -1
  207. package/dist/module/components/TextInput.js +10 -4
  208. package/dist/module/components/TextInput.js.map +1 -1
  209. package/dist/module/components/TouchableHighlight.js +13 -0
  210. package/dist/module/components/TouchableHighlight.js.map +1 -0
  211. package/dist/module/components/TouchableOpacity.js +13 -0
  212. package/dist/module/components/TouchableOpacity.js.map +1 -0
  213. package/dist/module/components/TouchableWithoutFeedback.js +13 -0
  214. package/dist/module/components/TouchableWithoutFeedback.js.map +1 -0
  215. package/dist/module/components/View.js +4 -3
  216. package/dist/module/components/View.js.map +1 -1
  217. package/dist/module/components/VirtualizedList.js +16 -0
  218. package/dist/module/components/VirtualizedList.js.map +1 -0
  219. package/dist/module/components/copyComponentProperties.js +15 -0
  220. package/dist/module/components/copyComponentProperties.js.map +1 -0
  221. package/dist/module/components/index.cjs +265 -0
  222. package/dist/module/components/index.cjs.map +1 -0
  223. package/dist/module/components/index.js +8 -0
  224. package/dist/module/components/index.js.map +1 -1
  225. package/dist/module/components/react-native-safe-area-context.native.js +2 -2
  226. package/dist/module/components/react-native-safe-area-context.native.js.map +1 -1
  227. package/dist/module/index.js +1 -2
  228. package/dist/module/index.js.map +1 -1
  229. package/dist/module/jest/index.js +4 -4
  230. package/dist/module/jest/index.js.map +1 -1
  231. package/dist/module/metro/index.js +7 -116
  232. package/dist/module/metro/index.js.map +1 -1
  233. package/dist/module/metro/injection-code.js +1 -1
  234. package/dist/module/metro/injection-code.js.map +1 -1
  235. package/dist/module/metro/metro-transformer.js +8 -1
  236. package/dist/module/metro/metro-transformer.js.map +1 -1
  237. package/dist/module/metro/override.js +4 -0
  238. package/dist/module/metro/override.js.map +1 -0
  239. package/dist/module/metro/resolver.js +15 -22
  240. package/dist/module/metro/resolver.js.map +1 -1
  241. package/dist/module/native/api.js +85 -0
  242. package/dist/module/native/api.js.map +1 -0
  243. package/dist/module/native/conditions/attributes.js +40 -0
  244. package/dist/module/native/conditions/attributes.js.map +1 -0
  245. package/dist/module/native/conditions/container-query.js.map +1 -0
  246. package/dist/module/native/conditions/guards.js.map +1 -0
  247. package/dist/module/native/conditions/index.js.map +1 -0
  248. package/dist/module/native/conditions/media-query.js.map +1 -0
  249. package/dist/module/native/index.js +5 -0
  250. package/dist/module/native/index.js.map +1 -0
  251. package/dist/module/native/objects.js.map +1 -0
  252. package/dist/module/native/react/interaction.js.map +1 -0
  253. package/dist/module/native/react/rules.js +252 -0
  254. package/dist/module/native/react/rules.js.map +1 -0
  255. package/dist/module/native/react/useNativeCss.js +160 -0
  256. package/dist/module/native/react/useNativeCss.js.map +1 -0
  257. package/dist/module/native/react/usePassthrough.js.map +1 -0
  258. package/dist/module/native/react-native-css-metro-override.js +37 -0
  259. package/dist/module/native/react-native-css-metro-override.js.map +1 -0
  260. package/dist/module/native/reactivity.js +169 -0
  261. package/dist/module/native/reactivity.js.map +1 -0
  262. package/dist/module/native/reanimated.js.map +1 -0
  263. package/dist/module/native/styles/calculate-props.js +157 -0
  264. package/dist/module/native/styles/calculate-props.js.map +1 -0
  265. package/dist/module/native/styles/constants.js.map +1 -0
  266. package/dist/module/native/styles/defaults.js.map +1 -0
  267. package/dist/module/native/styles/functions/animation-timing.js.map +1 -0
  268. package/dist/module/native/styles/functions/calc.js.map +1 -0
  269. package/dist/module/native/styles/functions/color-mix.js +45 -0
  270. package/dist/module/native/styles/functions/color-mix.js.map +1 -0
  271. package/dist/module/native/styles/functions/filters.js +70 -0
  272. package/dist/module/native/styles/functions/filters.js.map +1 -0
  273. package/dist/module/native/styles/functions/index.js +11 -0
  274. package/dist/module/native/styles/functions/index.js.map +1 -0
  275. package/dist/module/native/styles/functions/numeric-functions.js.map +1 -0
  276. package/dist/module/native/styles/functions/platform-functions.js.map +1 -0
  277. package/dist/module/native/styles/functions/string-functions.js.map +1 -0
  278. package/dist/module/native/styles/functions/transform-functions.js +114 -0
  279. package/dist/module/native/styles/functions/transform-functions.js.map +1 -0
  280. package/dist/module/native/styles/index.js +339 -0
  281. package/dist/module/native/styles/index.js.map +1 -0
  282. package/dist/module/native/styles/line-height.js.map +1 -0
  283. package/dist/module/native/styles/resolve.js +102 -0
  284. package/dist/module/native/styles/resolve.js.map +1 -0
  285. package/dist/module/native/styles/shorthands/_handler.js +74 -0
  286. package/dist/module/native/styles/shorthands/_handler.js.map +1 -0
  287. package/dist/module/native/styles/shorthands/animation.js +54 -0
  288. package/dist/module/native/styles/shorthands/animation.js.map +1 -0
  289. package/dist/module/native/styles/shorthands/border.js.map +1 -0
  290. package/dist/module/native/styles/shorthands/box-shadow.js +43 -0
  291. package/dist/module/native/styles/shorthands/box-shadow.js.map +1 -0
  292. package/dist/module/native/styles/shorthands/index.js.map +1 -0
  293. package/dist/module/native/styles/shorthands/text-shadow.js.map +1 -0
  294. package/dist/module/native/styles/shorthands/transform.js.map +1 -0
  295. package/dist/module/native/styles/units.js.map +1 -0
  296. package/dist/module/native/styles/variables.js +75 -0
  297. package/dist/module/native/styles/variables.js.map +1 -0
  298. package/dist/module/native-internal/README.md +11 -0
  299. package/dist/module/native-internal/index.js +6 -0
  300. package/dist/module/native-internal/index.js.map +1 -0
  301. package/dist/module/native-internal/root.js +30 -0
  302. package/dist/module/native-internal/root.js.map +1 -0
  303. package/dist/module/native-internal/style-collection.js +95 -0
  304. package/dist/module/native-internal/style-collection.js.map +1 -0
  305. package/dist/module/native-internal/variables.js +22 -0
  306. package/dist/module/native-internal/variables.js.map +1 -0
  307. package/dist/module/runtime.js.map +1 -0
  308. package/dist/module/runtime.native.js.map +1 -0
  309. package/dist/module/runtime.types.js.map +1 -0
  310. package/dist/module/utilities/dot-notation.types.js.map +1 -0
  311. package/dist/module/utilities/index.js +6 -0
  312. package/dist/module/utilities/index.js.map +1 -0
  313. package/dist/module/utilities/specificity.js.map +1 -0
  314. package/dist/module/utilities/style-descriptor.js +16 -0
  315. package/dist/module/utilities/style-descriptor.js.map +1 -0
  316. package/dist/module/web/api.js +79 -0
  317. package/dist/module/web/api.js.map +1 -0
  318. package/dist/module/web/assign-style.js.map +1 -0
  319. package/dist/module/web/index.js.map +1 -0
  320. package/dist/module/web/metro.js.map +1 -0
  321. package/dist/typescript/commonjs/.config/eslint.config.d.mts +3 -0
  322. package/dist/typescript/commonjs/.config/eslint.config.d.mts.map +1 -0
  323. package/dist/typescript/commonjs/eslint.config.d.mts +2 -0
  324. package/dist/typescript/commonjs/eslint.config.d.mts.map +1 -0
  325. package/dist/typescript/commonjs/example/app.config.d.ts.map +1 -1
  326. package/dist/typescript/commonjs/example/index.d.ts +2 -0
  327. package/dist/typescript/commonjs/example/index.d.ts.map +1 -0
  328. package/dist/typescript/commonjs/example/metro.config.d.ts +3 -0
  329. package/dist/typescript/commonjs/example/metro.config.d.ts.map +1 -0
  330. package/dist/typescript/commonjs/example/postcss.config.d.mts +7 -0
  331. package/dist/typescript/commonjs/example/postcss.config.d.mts.map +1 -0
  332. package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -1
  333. package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -1
  334. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +11 -2
  335. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -1
  336. package/dist/typescript/commonjs/src/compiler/declarations.d.ts +7 -6
  337. package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -1
  338. package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts +4 -0
  339. package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts.map +1 -0
  340. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts +1 -1
  341. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts.map +1 -1
  342. package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts +30 -0
  343. package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts.map +1 -0
  344. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -1
  345. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +2 -1
  346. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -1
  347. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +2 -11
  348. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -1
  349. package/dist/typescript/commonjs/src/components/Button.d.ts +2 -11
  350. package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -1
  351. package/dist/typescript/commonjs/src/components/FlatList.d.ts +4 -8
  352. package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -1
  353. package/dist/typescript/commonjs/src/components/Image.d.ts +2 -6
  354. package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -1
  355. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts +4 -0
  356. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts.map +1 -0
  357. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts +4 -0
  358. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts.map +1 -0
  359. package/dist/typescript/commonjs/src/components/Pressable.d.ts +4 -0
  360. package/dist/typescript/commonjs/src/components/Pressable.d.ts.map +1 -0
  361. package/dist/typescript/commonjs/src/components/SafeAreaProvider.d.ts +2 -0
  362. package/dist/typescript/commonjs/src/components/SafeAreaProvider.d.ts.map +1 -0
  363. package/dist/typescript/commonjs/src/components/ScrollView.d.ts +4 -0
  364. package/dist/typescript/commonjs/src/components/ScrollView.d.ts.map +1 -0
  365. package/dist/typescript/commonjs/src/components/Switch.d.ts +2 -6
  366. package/dist/typescript/commonjs/src/components/Switch.d.ts.map +1 -1
  367. package/dist/typescript/commonjs/src/components/Text.d.ts +2 -6
  368. package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -1
  369. package/dist/typescript/commonjs/src/components/TextInput.d.ts +2 -6
  370. package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -1
  371. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts +4 -0
  372. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts.map +1 -0
  373. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts +4 -0
  374. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts.map +1 -0
  375. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts +4 -0
  376. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
  377. package/dist/typescript/commonjs/src/components/View.d.ts +2 -6
  378. package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -1
  379. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts +6 -0
  380. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts.map +1 -0
  381. package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts +5 -0
  382. package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts.map +1 -0
  383. package/dist/typescript/commonjs/src/components/index.d.cts +2 -0
  384. package/dist/typescript/commonjs/src/components/index.d.cts.map +1 -0
  385. package/dist/typescript/commonjs/src/components/index.d.ts +8 -0
  386. package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -1
  387. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts.map +1 -1
  388. package/dist/typescript/commonjs/src/index.d.ts +0 -1
  389. package/dist/typescript/commonjs/src/index.d.ts.map +1 -1
  390. package/dist/typescript/commonjs/src/jest/index.d.ts +1 -1
  391. package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -1
  392. package/dist/typescript/commonjs/src/metro/index.d.ts +1 -1
  393. package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -1
  394. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -1
  395. package/dist/typescript/commonjs/src/metro/override.d.ts +2 -0
  396. package/dist/typescript/commonjs/src/metro/override.d.ts.map +1 -0
  397. package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -1
  398. package/dist/typescript/commonjs/src/native/api.d.ts +26 -0
  399. package/dist/typescript/commonjs/src/native/api.d.ts.map +1 -0
  400. package/dist/typescript/commonjs/src/native/conditions/attributes.d.ts +4 -0
  401. package/dist/typescript/commonjs/src/native/conditions/attributes.d.ts.map +1 -0
  402. package/dist/typescript/commonjs/src/native/conditions/container-query.d.ts +7 -0
  403. package/dist/typescript/commonjs/src/native/conditions/container-query.d.ts.map +1 -0
  404. package/dist/typescript/commonjs/src/native/conditions/guards.d.ts.map +1 -0
  405. package/dist/typescript/commonjs/src/native/conditions/index.d.ts +6 -0
  406. package/dist/typescript/commonjs/src/native/conditions/index.d.ts.map +1 -0
  407. package/dist/typescript/commonjs/src/native/conditions/media-query.d.ts +4 -0
  408. package/dist/typescript/commonjs/src/native/conditions/media-query.d.ts.map +1 -0
  409. package/dist/typescript/commonjs/src/native/index.d.ts +4 -0
  410. package/dist/typescript/commonjs/src/native/index.d.ts.map +1 -0
  411. package/dist/typescript/commonjs/src/native/objects.d.ts.map +1 -0
  412. package/dist/typescript/commonjs/src/native/react/interaction.d.ts.map +1 -0
  413. package/dist/typescript/commonjs/src/native/react/rules.d.ts.map +1 -0
  414. package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts.map +1 -0
  415. package/dist/typescript/commonjs/src/native/react/usePassthrough.d.ts.map +1 -0
  416. package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts +2 -0
  417. package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts.map +1 -0
  418. package/dist/typescript/commonjs/src/native/reactivity.d.ts +52 -0
  419. package/dist/typescript/commonjs/src/native/reactivity.d.ts.map +1 -0
  420. package/dist/typescript/commonjs/src/native/reanimated.d.ts.map +1 -0
  421. package/dist/typescript/commonjs/src/native/styles/calculate-props.d.ts +10 -0
  422. package/dist/typescript/commonjs/src/native/styles/calculate-props.d.ts.map +1 -0
  423. package/dist/typescript/commonjs/src/native/styles/constants.d.ts.map +1 -0
  424. package/dist/typescript/commonjs/src/native/styles/defaults.d.ts.map +1 -0
  425. package/dist/typescript/commonjs/src/native/styles/functions/animation-timing.d.ts.map +1 -0
  426. package/dist/typescript/commonjs/src/native/styles/functions/calc.d.ts.map +1 -0
  427. package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts +3 -0
  428. package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts.map +1 -0
  429. package/dist/typescript/commonjs/src/native/styles/functions/filters.d.ts.map +1 -0
  430. package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts +9 -0
  431. package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts.map +1 -0
  432. package/dist/typescript/commonjs/src/native/styles/functions/numeric-functions.d.ts.map +1 -0
  433. package/dist/typescript/commonjs/src/native/styles/functions/platform-functions.d.ts.map +1 -0
  434. package/dist/typescript/commonjs/src/native/styles/functions/string-functions.d.ts.map +1 -0
  435. package/dist/typescript/commonjs/src/native/styles/functions/transform-functions.d.ts.map +1 -0
  436. package/dist/typescript/commonjs/src/native/styles/index.d.ts +19 -0
  437. package/dist/typescript/commonjs/src/native/styles/index.d.ts.map +1 -0
  438. package/dist/typescript/commonjs/src/native/styles/line-height.d.ts.map +1 -0
  439. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts +18 -0
  440. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts.map +1 -0
  441. package/dist/typescript/commonjs/src/native/styles/shorthands/_handler.d.ts.map +1 -0
  442. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts +5 -0
  443. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts.map +1 -0
  444. package/dist/typescript/commonjs/src/native/styles/shorthands/border.d.ts.map +1 -0
  445. package/dist/typescript/commonjs/src/native/styles/shorthands/box-shadow.d.ts.map +1 -0
  446. package/dist/typescript/commonjs/src/native/styles/shorthands/index.d.ts.map +1 -0
  447. package/dist/typescript/commonjs/src/native/styles/shorthands/text-shadow.d.ts.map +1 -0
  448. package/dist/typescript/commonjs/src/native/styles/shorthands/transform.d.ts.map +1 -0
  449. package/dist/typescript/commonjs/src/native/styles/units.d.ts.map +1 -0
  450. package/dist/typescript/commonjs/src/native/styles/variables.d.ts +5 -0
  451. package/dist/typescript/commonjs/src/native/styles/variables.d.ts.map +1 -0
  452. package/dist/typescript/commonjs/src/native-internal/index.d.ts +4 -0
  453. package/dist/typescript/commonjs/src/native-internal/index.d.ts.map +1 -0
  454. package/dist/typescript/commonjs/src/native-internal/root.d.ts +11 -0
  455. package/dist/typescript/commonjs/src/native-internal/root.d.ts.map +1 -0
  456. package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts +16 -0
  457. package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts.map +1 -0
  458. package/dist/typescript/commonjs/src/native-internal/variables.d.ts +8 -0
  459. package/dist/typescript/commonjs/src/native-internal/variables.d.ts.map +1 -0
  460. package/dist/typescript/commonjs/src/runtime.d.ts.map +1 -0
  461. package/dist/typescript/commonjs/src/runtime.native.d.ts.map +1 -0
  462. package/dist/typescript/commonjs/src/runtime.types.d.ts +49 -0
  463. package/dist/typescript/commonjs/src/runtime.types.d.ts.map +1 -0
  464. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts +23 -0
  465. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts.map +1 -0
  466. package/dist/typescript/commonjs/src/utilities/index.d.ts +4 -0
  467. package/dist/typescript/commonjs/src/utilities/index.d.ts.map +1 -0
  468. package/dist/typescript/commonjs/src/utilities/specificity.d.ts +13 -0
  469. package/dist/typescript/commonjs/src/utilities/specificity.d.ts.map +1 -0
  470. package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts +4 -0
  471. package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts.map +1 -0
  472. package/dist/typescript/commonjs/src/web/api.d.ts +16 -0
  473. package/dist/typescript/commonjs/src/web/api.d.ts.map +1 -0
  474. package/dist/typescript/commonjs/src/web/assign-style.d.ts.map +1 -0
  475. package/dist/typescript/commonjs/src/web/index.d.ts.map +1 -0
  476. package/dist/typescript/commonjs/src/web/metro.d.ts.map +1 -0
  477. package/dist/typescript/module/.config/eslint.config.d.mts +3 -0
  478. package/dist/typescript/module/.config/eslint.config.d.mts.map +1 -0
  479. package/dist/typescript/module/eslint.config.d.mts +2 -0
  480. package/dist/typescript/module/eslint.config.d.mts.map +1 -0
  481. package/dist/typescript/module/example/app.config.d.ts.map +1 -1
  482. package/dist/typescript/module/example/index.d.ts +2 -0
  483. package/dist/typescript/module/example/index.d.ts.map +1 -0
  484. package/dist/typescript/module/example/metro.config.d.ts +3 -0
  485. package/dist/typescript/module/example/metro.config.d.ts.map +1 -0
  486. package/dist/typescript/module/example/postcss.config.d.mts +7 -0
  487. package/dist/typescript/module/example/postcss.config.d.mts.map +1 -0
  488. package/dist/typescript/module/example/src/App.d.ts.map +1 -1
  489. package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -1
  490. package/dist/typescript/module/src/compiler/compiler.types.d.ts +11 -2
  491. package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -1
  492. package/dist/typescript/module/src/compiler/declarations.d.ts +7 -6
  493. package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -1
  494. package/dist/typescript/module/src/compiler/inline-variables.d.ts +4 -0
  495. package/dist/typescript/module/src/compiler/inline-variables.d.ts.map +1 -0
  496. package/dist/typescript/module/src/compiler/keyframes.d.ts +1 -1
  497. package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -1
  498. package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts +30 -0
  499. package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts.map +1 -0
  500. package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -1
  501. package/dist/typescript/module/src/compiler/stylesheet.d.ts +2 -1
  502. package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -1
  503. package/dist/typescript/module/src/components/ActivityIndicator.d.ts +2 -11
  504. package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -1
  505. package/dist/typescript/module/src/components/Button.d.ts +2 -11
  506. package/dist/typescript/module/src/components/Button.d.ts.map +1 -1
  507. package/dist/typescript/module/src/components/FlatList.d.ts +4 -8
  508. package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -1
  509. package/dist/typescript/module/src/components/Image.d.ts +2 -6
  510. package/dist/typescript/module/src/components/Image.d.ts.map +1 -1
  511. package/dist/typescript/module/src/components/ImageBackground.d.ts +4 -0
  512. package/dist/typescript/module/src/components/ImageBackground.d.ts.map +1 -0
  513. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts +4 -0
  514. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts.map +1 -0
  515. package/dist/typescript/module/src/components/Pressable.d.ts +4 -0
  516. package/dist/typescript/module/src/components/Pressable.d.ts.map +1 -0
  517. package/dist/typescript/module/src/components/SafeAreaProvider.d.ts +2 -0
  518. package/dist/typescript/module/src/components/SafeAreaProvider.d.ts.map +1 -0
  519. package/dist/typescript/module/src/components/ScrollView.d.ts +4 -0
  520. package/dist/typescript/module/src/components/ScrollView.d.ts.map +1 -0
  521. package/dist/typescript/module/src/components/Switch.d.ts +2 -6
  522. package/dist/typescript/module/src/components/Switch.d.ts.map +1 -1
  523. package/dist/typescript/module/src/components/Text.d.ts +2 -6
  524. package/dist/typescript/module/src/components/Text.d.ts.map +1 -1
  525. package/dist/typescript/module/src/components/TextInput.d.ts +2 -6
  526. package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -1
  527. package/dist/typescript/module/src/components/TouchableHighlight.d.ts +4 -0
  528. package/dist/typescript/module/src/components/TouchableHighlight.d.ts.map +1 -0
  529. package/dist/typescript/module/src/components/TouchableOpacity.d.ts +4 -0
  530. package/dist/typescript/module/src/components/TouchableOpacity.d.ts.map +1 -0
  531. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts +4 -0
  532. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
  533. package/dist/typescript/module/src/components/View.d.ts +2 -6
  534. package/dist/typescript/module/src/components/View.d.ts.map +1 -1
  535. package/dist/typescript/module/src/components/VirtualizedList.d.ts +6 -0
  536. package/dist/typescript/module/src/components/VirtualizedList.d.ts.map +1 -0
  537. package/dist/typescript/module/src/components/copyComponentProperties.d.ts +5 -0
  538. package/dist/typescript/module/src/components/copyComponentProperties.d.ts.map +1 -0
  539. package/dist/typescript/module/src/components/index.d.cts +2 -0
  540. package/dist/typescript/module/src/components/index.d.cts.map +1 -0
  541. package/dist/typescript/module/src/components/index.d.ts +8 -0
  542. package/dist/typescript/module/src/components/index.d.ts.map +1 -1
  543. package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts.map +1 -1
  544. package/dist/typescript/module/src/index.d.ts +0 -1
  545. package/dist/typescript/module/src/index.d.ts.map +1 -1
  546. package/dist/typescript/module/src/jest/index.d.ts +1 -1
  547. package/dist/typescript/module/src/jest/index.d.ts.map +1 -1
  548. package/dist/typescript/module/src/metro/index.d.ts +1 -1
  549. package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
  550. package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -1
  551. package/dist/typescript/module/src/metro/override.d.ts +2 -0
  552. package/dist/typescript/module/src/metro/override.d.ts.map +1 -0
  553. package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -1
  554. package/dist/typescript/module/src/native/api.d.ts +26 -0
  555. package/dist/typescript/module/src/native/api.d.ts.map +1 -0
  556. package/dist/typescript/module/src/native/conditions/attributes.d.ts +4 -0
  557. package/dist/typescript/module/src/native/conditions/attributes.d.ts.map +1 -0
  558. package/dist/typescript/module/src/native/conditions/container-query.d.ts +7 -0
  559. package/dist/typescript/module/src/native/conditions/container-query.d.ts.map +1 -0
  560. package/dist/typescript/module/src/native/conditions/guards.d.ts.map +1 -0
  561. package/dist/typescript/module/src/native/conditions/index.d.ts +6 -0
  562. package/dist/typescript/module/src/native/conditions/index.d.ts.map +1 -0
  563. package/dist/typescript/module/src/native/conditions/media-query.d.ts +4 -0
  564. package/dist/typescript/module/src/native/conditions/media-query.d.ts.map +1 -0
  565. package/dist/typescript/module/src/native/index.d.ts +4 -0
  566. package/dist/typescript/module/src/native/index.d.ts.map +1 -0
  567. package/dist/typescript/module/src/native/objects.d.ts.map +1 -0
  568. package/dist/typescript/module/src/native/react/interaction.d.ts.map +1 -0
  569. package/dist/typescript/module/src/native/react/rules.d.ts.map +1 -0
  570. package/dist/typescript/module/src/native/react/useNativeCss.d.ts.map +1 -0
  571. package/dist/typescript/module/src/native/react/usePassthrough.d.ts.map +1 -0
  572. package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts +2 -0
  573. package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts.map +1 -0
  574. package/dist/typescript/module/src/native/reactivity.d.ts +52 -0
  575. package/dist/typescript/module/src/native/reactivity.d.ts.map +1 -0
  576. package/dist/typescript/module/src/native/reanimated.d.ts.map +1 -0
  577. package/dist/typescript/module/src/native/styles/calculate-props.d.ts +10 -0
  578. package/dist/typescript/module/src/native/styles/calculate-props.d.ts.map +1 -0
  579. package/dist/typescript/module/src/native/styles/constants.d.ts.map +1 -0
  580. package/dist/typescript/module/src/native/styles/defaults.d.ts.map +1 -0
  581. package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts.map +1 -0
  582. package/dist/typescript/module/src/native/styles/functions/calc.d.ts.map +1 -0
  583. package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts +3 -0
  584. package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts.map +1 -0
  585. package/dist/typescript/module/src/native/styles/functions/filters.d.ts.map +1 -0
  586. package/dist/typescript/module/src/native/styles/functions/index.d.ts +9 -0
  587. package/dist/typescript/module/src/native/styles/functions/index.d.ts.map +1 -0
  588. package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts.map +1 -0
  589. package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts.map +1 -0
  590. package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts.map +1 -0
  591. package/dist/typescript/module/src/native/styles/functions/transform-functions.d.ts.map +1 -0
  592. package/dist/typescript/module/src/native/styles/index.d.ts +19 -0
  593. package/dist/typescript/module/src/native/styles/index.d.ts.map +1 -0
  594. package/dist/typescript/module/src/native/styles/line-height.d.ts.map +1 -0
  595. package/dist/typescript/module/src/native/styles/resolve.d.ts +18 -0
  596. package/dist/typescript/module/src/native/styles/resolve.d.ts.map +1 -0
  597. package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts.map +1 -0
  598. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts +5 -0
  599. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts.map +1 -0
  600. package/dist/typescript/module/src/native/styles/shorthands/border.d.ts.map +1 -0
  601. package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts.map +1 -0
  602. package/dist/typescript/module/src/native/styles/shorthands/index.d.ts.map +1 -0
  603. package/dist/typescript/module/src/native/styles/shorthands/text-shadow.d.ts.map +1 -0
  604. package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts.map +1 -0
  605. package/dist/typescript/module/src/native/styles/units.d.ts.map +1 -0
  606. package/dist/typescript/module/src/native/styles/variables.d.ts +5 -0
  607. package/dist/typescript/module/src/native/styles/variables.d.ts.map +1 -0
  608. package/dist/typescript/module/src/native-internal/index.d.ts +4 -0
  609. package/dist/typescript/module/src/native-internal/index.d.ts.map +1 -0
  610. package/dist/typescript/module/src/native-internal/root.d.ts +11 -0
  611. package/dist/typescript/module/src/native-internal/root.d.ts.map +1 -0
  612. package/dist/typescript/module/src/native-internal/style-collection.d.ts +16 -0
  613. package/dist/typescript/module/src/native-internal/style-collection.d.ts.map +1 -0
  614. package/dist/typescript/module/src/native-internal/variables.d.ts +8 -0
  615. package/dist/typescript/module/src/native-internal/variables.d.ts.map +1 -0
  616. package/dist/typescript/module/src/runtime.d.ts.map +1 -0
  617. package/dist/typescript/module/src/runtime.native.d.ts.map +1 -0
  618. package/dist/typescript/module/src/runtime.types.d.ts +49 -0
  619. package/dist/typescript/module/src/runtime.types.d.ts.map +1 -0
  620. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts +23 -0
  621. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts.map +1 -0
  622. package/dist/typescript/module/src/utilities/index.d.ts +4 -0
  623. package/dist/typescript/module/src/utilities/index.d.ts.map +1 -0
  624. package/dist/typescript/module/src/utilities/specificity.d.ts +13 -0
  625. package/dist/typescript/module/src/utilities/specificity.d.ts.map +1 -0
  626. package/dist/typescript/module/src/utilities/style-descriptor.d.ts +4 -0
  627. package/dist/typescript/module/src/utilities/style-descriptor.d.ts.map +1 -0
  628. package/dist/typescript/module/src/web/api.d.ts +16 -0
  629. package/dist/typescript/module/src/web/api.d.ts.map +1 -0
  630. package/dist/typescript/module/src/web/assign-style.d.ts.map +1 -0
  631. package/dist/typescript/module/src/web/index.d.ts.map +1 -0
  632. package/dist/typescript/module/src/web/metro.d.ts.map +1 -0
  633. package/package.json +98 -53
  634. package/src/compiler/atRules.ts +30 -17
  635. package/src/compiler/compiler.ts +77 -29
  636. package/src/compiler/compiler.types.ts +16 -2
  637. package/src/compiler/declarations.ts +181 -84
  638. package/src/compiler/inline-variables.ts +209 -0
  639. package/src/compiler/keyframes.ts +2 -2
  640. package/src/compiler/lightningcss-loader.ts +59 -0
  641. package/src/compiler/pseudo-elements.ts +1 -1
  642. package/src/compiler/selector-builder.ts +7 -3
  643. package/src/compiler/selectors.ts +1 -1
  644. package/src/compiler/stylesheet.ts +10 -8
  645. package/src/compiler/supports.ts +2 -0
  646. package/src/components/ActivityIndicator.tsx +11 -8
  647. package/src/components/Button.tsx +11 -6
  648. package/src/components/FlatList.tsx +20 -10
  649. package/src/components/Image.tsx +11 -6
  650. package/src/components/ImageBackground.tsx +30 -0
  651. package/src/components/KeyboardAvoidingView.tsx +27 -0
  652. package/src/components/Pressable.tsx +22 -0
  653. package/src/components/SafeAreaProvider.tsx +1 -0
  654. package/src/components/ScrollView.tsx +23 -0
  655. package/src/components/Switch.tsx +9 -4
  656. package/src/components/Text.tsx +9 -4
  657. package/src/components/TextInput.tsx +17 -7
  658. package/src/components/TouchableHighlight.tsx +25 -0
  659. package/src/components/TouchableOpacity.tsx +25 -0
  660. package/src/components/TouchableWithoutFeedback.tsx +25 -0
  661. package/src/components/View.tsx +9 -4
  662. package/src/components/VirtualizedList.tsx +37 -0
  663. package/src/components/copyComponentProperties.ts +21 -0
  664. package/src/components/index.cts +263 -0
  665. package/src/components/index.ts +17 -0
  666. package/src/components/react-native-safe-area-context.native.tsx +7 -3
  667. package/src/index.ts +0 -2
  668. package/src/jest/index.ts +6 -5
  669. package/src/metro/index.ts +7 -164
  670. package/src/metro/injection-code.ts +1 -1
  671. package/src/metro/metro-transformer.ts +15 -1
  672. package/src/metro/override.ts +1 -0
  673. package/src/metro/resolver.ts +29 -28
  674. package/src/native/api.tsx +124 -0
  675. package/src/native/conditions/attributes.ts +54 -0
  676. package/src/native/conditions/container-query.ts +162 -0
  677. package/src/native/conditions/index.ts +55 -0
  678. package/src/native/conditions/media-query.ts +99 -0
  679. package/src/native/index.ts +3 -0
  680. package/src/native/react/rules.ts +336 -0
  681. package/src/native/react/useNativeCss.ts +211 -0
  682. package/src/native/reactivity.ts +248 -0
  683. package/src/native/styles/calculate-props.ts +217 -0
  684. package/src/native/styles/functions/color-mix.ts +68 -0
  685. package/src/native/styles/functions/filters.ts +99 -0
  686. package/src/native/styles/functions/index.ts +8 -0
  687. package/src/native/styles/functions/transform-functions.ts +85 -0
  688. package/src/native/styles/index.ts +474 -0
  689. package/src/native/styles/resolve.ts +164 -0
  690. package/src/native/styles/shorthands/_handler.ts +122 -0
  691. package/src/native/styles/shorthands/animation.ts +131 -0
  692. package/src/native/styles/shorthands/box-shadow.ts +71 -0
  693. package/src/native/styles/variables.ts +88 -0
  694. package/src/native-internal/README.md +11 -0
  695. package/src/native-internal/index.ts +3 -0
  696. package/src/native-internal/root.ts +44 -0
  697. package/src/native-internal/style-collection.ts +148 -0
  698. package/src/native-internal/variables.tsx +36 -0
  699. package/src/runtime.types.ts +150 -0
  700. package/src/utilities/dot-notation.types.ts +125 -0
  701. package/src/utilities/index.ts +3 -0
  702. package/src/utilities/specificity.ts +45 -0
  703. package/src/utilities/style-descriptor.ts +24 -0
  704. package/src/web/api.tsx +120 -0
  705. package/types.d.ts +3 -0
  706. package/dist/commonjs/poison.pill.js +0 -39
  707. package/dist/commonjs/poison.pill.js.map +0 -1
  708. package/dist/commonjs/runtime/index.js +0 -17
  709. package/dist/commonjs/runtime/index.js.map +0 -1
  710. package/dist/commonjs/runtime/native/api.js +0 -115
  711. package/dist/commonjs/runtime/native/api.js.map +0 -1
  712. package/dist/commonjs/runtime/native/conditions/attributes.js +0 -42
  713. package/dist/commonjs/runtime/native/conditions/attributes.js.map +0 -1
  714. package/dist/commonjs/runtime/native/conditions/container-query.js.map +0 -1
  715. package/dist/commonjs/runtime/native/conditions/guards.js.map +0 -1
  716. package/dist/commonjs/runtime/native/conditions/index.js.map +0 -1
  717. package/dist/commonjs/runtime/native/conditions/media-query.js.map +0 -1
  718. package/dist/commonjs/runtime/native/index.js +0 -28
  719. package/dist/commonjs/runtime/native/index.js.map +0 -1
  720. package/dist/commonjs/runtime/native/metro.js.map +0 -1
  721. package/dist/commonjs/runtime/native/react/interaction.js.map +0 -1
  722. package/dist/commonjs/runtime/native/react/rules.js +0 -259
  723. package/dist/commonjs/runtime/native/react/rules.js.map +0 -1
  724. package/dist/commonjs/runtime/native/react/useNativeCss.js +0 -159
  725. package/dist/commonjs/runtime/native/react/useNativeCss.js.map +0 -1
  726. package/dist/commonjs/runtime/native/react/usePassthrough.js.map +0 -1
  727. package/dist/commonjs/runtime/native/reactivity.js +0 -185
  728. package/dist/commonjs/runtime/native/reactivity.js.map +0 -1
  729. package/dist/commonjs/runtime/native/reanimated.js.map +0 -1
  730. package/dist/commonjs/runtime/native/styles/calculate-props.js +0 -150
  731. package/dist/commonjs/runtime/native/styles/calculate-props.js.map +0 -1
  732. package/dist/commonjs/runtime/native/styles/constants.js.map +0 -1
  733. package/dist/commonjs/runtime/native/styles/defaults.js.map +0 -1
  734. package/dist/commonjs/runtime/native/styles/functions/animation-timing.js.map +0 -1
  735. package/dist/commonjs/runtime/native/styles/functions/calc.js.map +0 -1
  736. package/dist/commonjs/runtime/native/styles/functions/filters.js +0 -84
  737. package/dist/commonjs/runtime/native/styles/functions/filters.js.map +0 -1
  738. package/dist/commonjs/runtime/native/styles/functions/index.js +0 -83
  739. package/dist/commonjs/runtime/native/styles/functions/index.js.map +0 -1
  740. package/dist/commonjs/runtime/native/styles/functions/numeric-functions.js.map +0 -1
  741. package/dist/commonjs/runtime/native/styles/functions/platform-functions.js.map +0 -1
  742. package/dist/commonjs/runtime/native/styles/functions/string-functions.js.map +0 -1
  743. package/dist/commonjs/runtime/native/styles/functions/transform-functions.js +0 -121
  744. package/dist/commonjs/runtime/native/styles/functions/transform-functions.js.map +0 -1
  745. package/dist/commonjs/runtime/native/styles/index.js +0 -115
  746. package/dist/commonjs/runtime/native/styles/index.js.map +0 -1
  747. package/dist/commonjs/runtime/native/styles/line-height.js.map +0 -1
  748. package/dist/commonjs/runtime/native/styles/resolve.js +0 -108
  749. package/dist/commonjs/runtime/native/styles/resolve.js.map +0 -1
  750. package/dist/commonjs/runtime/native/styles/shorthands/_handler.js +0 -79
  751. package/dist/commonjs/runtime/native/styles/shorthands/_handler.js.map +0 -1
  752. package/dist/commonjs/runtime/native/styles/shorthands/animation.js +0 -57
  753. package/dist/commonjs/runtime/native/styles/shorthands/animation.js.map +0 -1
  754. package/dist/commonjs/runtime/native/styles/shorthands/border.js.map +0 -1
  755. package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js +0 -58
  756. package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js.map +0 -1
  757. package/dist/commonjs/runtime/native/styles/shorthands/index.js.map +0 -1
  758. package/dist/commonjs/runtime/native/styles/shorthands/text-shadow.js.map +0 -1
  759. package/dist/commonjs/runtime/native/styles/shorthands/transform.js.map +0 -1
  760. package/dist/commonjs/runtime/native/styles/units.js.map +0 -1
  761. package/dist/commonjs/runtime/native/styles/variables.js +0 -79
  762. package/dist/commonjs/runtime/native/styles/variables.js.map +0 -1
  763. package/dist/commonjs/runtime/runtime.js.map +0 -1
  764. package/dist/commonjs/runtime/runtime.native.js.map +0 -1
  765. package/dist/commonjs/runtime/runtime.types.js.map +0 -1
  766. package/dist/commonjs/runtime/utils/components.js +0 -18
  767. package/dist/commonjs/runtime/utils/components.js.map +0 -1
  768. package/dist/commonjs/runtime/utils/dot-notation.types.js.map +0 -1
  769. package/dist/commonjs/runtime/utils/index.js +0 -61
  770. package/dist/commonjs/runtime/utils/index.js.map +0 -1
  771. package/dist/commonjs/runtime/utils/objects.js.map +0 -1
  772. package/dist/commonjs/runtime/utils/specificity.js.map +0 -1
  773. package/dist/commonjs/runtime/utils/style-value.js +0 -21
  774. package/dist/commonjs/runtime/utils/style-value.js.map +0 -1
  775. package/dist/commonjs/runtime/utils/utils.types.js +0 -6
  776. package/dist/commonjs/runtime/utils/utils.types.js.map +0 -1
  777. package/dist/commonjs/runtime/web/api.js +0 -86
  778. package/dist/commonjs/runtime/web/api.js.map +0 -1
  779. package/dist/commonjs/runtime/web/assign-style.js.map +0 -1
  780. package/dist/commonjs/runtime/web/index.js.map +0 -1
  781. package/dist/commonjs/runtime/web/metro.js +0 -6
  782. package/dist/commonjs/runtime/web/metro.js.map +0 -1
  783. package/dist/commonjs/style-collection/index.js +0 -110
  784. package/dist/commonjs/style-collection/index.js.map +0 -1
  785. package/dist/commonjs/style-collection/root.js +0 -29
  786. package/dist/commonjs/style-collection/root.js.map +0 -1
  787. package/dist/module/poison.pill.js +0 -37
  788. package/dist/module/poison.pill.js.map +0 -1
  789. package/dist/module/runtime/index.js +0 -9
  790. package/dist/module/runtime/index.js.map +0 -1
  791. package/dist/module/runtime/native/api.js +0 -94
  792. package/dist/module/runtime/native/api.js.map +0 -1
  793. package/dist/module/runtime/native/conditions/attributes.js +0 -38
  794. package/dist/module/runtime/native/conditions/attributes.js.map +0 -1
  795. package/dist/module/runtime/native/conditions/container-query.js.map +0 -1
  796. package/dist/module/runtime/native/conditions/guards.js.map +0 -1
  797. package/dist/module/runtime/native/conditions/index.js.map +0 -1
  798. package/dist/module/runtime/native/conditions/media-query.js.map +0 -1
  799. package/dist/module/runtime/native/index.js +0 -5
  800. package/dist/module/runtime/native/index.js.map +0 -1
  801. package/dist/module/runtime/native/metro.js.map +0 -1
  802. package/dist/module/runtime/native/react/interaction.js.map +0 -1
  803. package/dist/module/runtime/native/react/rules.js +0 -251
  804. package/dist/module/runtime/native/react/rules.js.map +0 -1
  805. package/dist/module/runtime/native/react/useNativeCss.js +0 -153
  806. package/dist/module/runtime/native/react/useNativeCss.js.map +0 -1
  807. package/dist/module/runtime/native/react/usePassthrough.js.map +0 -1
  808. package/dist/module/runtime/native/reactivity.js +0 -173
  809. package/dist/module/runtime/native/reactivity.js.map +0 -1
  810. package/dist/module/runtime/native/reanimated.js.map +0 -1
  811. package/dist/module/runtime/native/styles/calculate-props.js +0 -145
  812. package/dist/module/runtime/native/styles/calculate-props.js.map +0 -1
  813. package/dist/module/runtime/native/styles/constants.js.map +0 -1
  814. package/dist/module/runtime/native/styles/defaults.js.map +0 -1
  815. package/dist/module/runtime/native/styles/functions/animation-timing.js.map +0 -1
  816. package/dist/module/runtime/native/styles/functions/calc.js.map +0 -1
  817. package/dist/module/runtime/native/styles/functions/filters.js +0 -70
  818. package/dist/module/runtime/native/styles/functions/filters.js.map +0 -1
  819. package/dist/module/runtime/native/styles/functions/index.js +0 -10
  820. package/dist/module/runtime/native/styles/functions/index.js.map +0 -1
  821. package/dist/module/runtime/native/styles/functions/numeric-functions.js.map +0 -1
  822. package/dist/module/runtime/native/styles/functions/platform-functions.js.map +0 -1
  823. package/dist/module/runtime/native/styles/functions/string-functions.js.map +0 -1
  824. package/dist/module/runtime/native/styles/functions/transform-functions.js +0 -114
  825. package/dist/module/runtime/native/styles/functions/transform-functions.js.map +0 -1
  826. package/dist/module/runtime/native/styles/index.js +0 -110
  827. package/dist/module/runtime/native/styles/index.js.map +0 -1
  828. package/dist/module/runtime/native/styles/line-height.js.map +0 -1
  829. package/dist/module/runtime/native/styles/resolve.js +0 -103
  830. package/dist/module/runtime/native/styles/resolve.js.map +0 -1
  831. package/dist/module/runtime/native/styles/shorthands/_handler.js +0 -74
  832. package/dist/module/runtime/native/styles/shorthands/_handler.js.map +0 -1
  833. package/dist/module/runtime/native/styles/shorthands/animation.js +0 -51
  834. package/dist/module/runtime/native/styles/shorthands/animation.js.map +0 -1
  835. package/dist/module/runtime/native/styles/shorthands/border.js.map +0 -1
  836. package/dist/module/runtime/native/styles/shorthands/box-shadow.js +0 -53
  837. package/dist/module/runtime/native/styles/shorthands/box-shadow.js.map +0 -1
  838. package/dist/module/runtime/native/styles/shorthands/index.js.map +0 -1
  839. package/dist/module/runtime/native/styles/shorthands/text-shadow.js.map +0 -1
  840. package/dist/module/runtime/native/styles/shorthands/transform.js.map +0 -1
  841. package/dist/module/runtime/native/styles/units.js.map +0 -1
  842. package/dist/module/runtime/native/styles/variables.js +0 -75
  843. package/dist/module/runtime/native/styles/variables.js.map +0 -1
  844. package/dist/module/runtime/runtime.js.map +0 -1
  845. package/dist/module/runtime/runtime.native.js.map +0 -1
  846. package/dist/module/runtime/runtime.types.js.map +0 -1
  847. package/dist/module/runtime/utils/components.js +0 -14
  848. package/dist/module/runtime/utils/components.js.map +0 -1
  849. package/dist/module/runtime/utils/dot-notation.types.js.map +0 -1
  850. package/dist/module/runtime/utils/index.js +0 -8
  851. package/dist/module/runtime/utils/index.js.map +0 -1
  852. package/dist/module/runtime/utils/objects.js.map +0 -1
  853. package/dist/module/runtime/utils/specificity.js.map +0 -1
  854. package/dist/module/runtime/utils/style-value.js +0 -16
  855. package/dist/module/runtime/utils/style-value.js.map +0 -1
  856. package/dist/module/runtime/utils/utils.types.js +0 -4
  857. package/dist/module/runtime/utils/utils.types.js.map +0 -1
  858. package/dist/module/runtime/web/api.js +0 -76
  859. package/dist/module/runtime/web/api.js.map +0 -1
  860. package/dist/module/runtime/web/assign-style.js.map +0 -1
  861. package/dist/module/runtime/web/index.js.map +0 -1
  862. package/dist/module/runtime/web/metro.js +0 -5
  863. package/dist/module/runtime/web/metro.js.map +0 -1
  864. package/dist/module/style-collection/index.js +0 -95
  865. package/dist/module/style-collection/index.js.map +0 -1
  866. package/dist/module/style-collection/root.js +0 -25
  867. package/dist/module/style-collection/root.js.map +0 -1
  868. package/dist/typescript/commonjs/src/poison.pill.d.ts +0 -2
  869. package/dist/typescript/commonjs/src/poison.pill.d.ts.map +0 -1
  870. package/dist/typescript/commonjs/src/runtime/index.d.ts +0 -7
  871. package/dist/typescript/commonjs/src/runtime/index.d.ts.map +0 -1
  872. package/dist/typescript/commonjs/src/runtime/native/api.d.ts +0 -31
  873. package/dist/typescript/commonjs/src/runtime/native/api.d.ts.map +0 -1
  874. package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts +0 -5
  875. package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts.map +0 -1
  876. package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts +0 -7
  877. package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts.map +0 -1
  878. package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts.map +0 -1
  879. package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts +0 -6
  880. package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts.map +0 -1
  881. package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts +0 -4
  882. package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts.map +0 -1
  883. package/dist/typescript/commonjs/src/runtime/native/index.d.ts +0 -4
  884. package/dist/typescript/commonjs/src/runtime/native/index.d.ts.map +0 -1
  885. package/dist/typescript/commonjs/src/runtime/native/metro.d.ts.map +0 -1
  886. package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts.map +0 -1
  887. package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts.map +0 -1
  888. package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts.map +0 -1
  889. package/dist/typescript/commonjs/src/runtime/native/react/usePassthrough.d.ts.map +0 -1
  890. package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts +0 -53
  891. package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts.map +0 -1
  892. package/dist/typescript/commonjs/src/runtime/native/reanimated.d.ts.map +0 -1
  893. package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts +0 -10
  894. package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts.map +0 -1
  895. package/dist/typescript/commonjs/src/runtime/native/styles/constants.d.ts.map +0 -1
  896. package/dist/typescript/commonjs/src/runtime/native/styles/defaults.d.ts.map +0 -1
  897. package/dist/typescript/commonjs/src/runtime/native/styles/functions/animation-timing.d.ts.map +0 -1
  898. package/dist/typescript/commonjs/src/runtime/native/styles/functions/calc.d.ts.map +0 -1
  899. package/dist/typescript/commonjs/src/runtime/native/styles/functions/filters.d.ts.map +0 -1
  900. package/dist/typescript/commonjs/src/runtime/native/styles/functions/index.d.ts +0 -8
  901. package/dist/typescript/commonjs/src/runtime/native/styles/functions/index.d.ts.map +0 -1
  902. package/dist/typescript/commonjs/src/runtime/native/styles/functions/numeric-functions.d.ts.map +0 -1
  903. package/dist/typescript/commonjs/src/runtime/native/styles/functions/platform-functions.d.ts.map +0 -1
  904. package/dist/typescript/commonjs/src/runtime/native/styles/functions/string-functions.d.ts.map +0 -1
  905. package/dist/typescript/commonjs/src/runtime/native/styles/functions/transform-functions.d.ts.map +0 -1
  906. package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts +0 -19
  907. package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts.map +0 -1
  908. package/dist/typescript/commonjs/src/runtime/native/styles/line-height.d.ts.map +0 -1
  909. package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts +0 -18
  910. package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts.map +0 -1
  911. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/_handler.d.ts.map +0 -1
  912. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/animation.d.ts +0 -4
  913. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/animation.d.ts.map +0 -1
  914. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/border.d.ts.map +0 -1
  915. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +0 -1
  916. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/index.d.ts.map +0 -1
  917. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +0 -1
  918. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/transform.d.ts.map +0 -1
  919. package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts.map +0 -1
  920. package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts +0 -5
  921. package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts.map +0 -1
  922. package/dist/typescript/commonjs/src/runtime/runtime.d.ts.map +0 -1
  923. package/dist/typescript/commonjs/src/runtime/runtime.native.d.ts.map +0 -1
  924. package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts +0 -47
  925. package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts.map +0 -1
  926. package/dist/typescript/commonjs/src/runtime/utils/components.d.ts +0 -2
  927. package/dist/typescript/commonjs/src/runtime/utils/components.d.ts.map +0 -1
  928. package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts +0 -23
  929. package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts.map +0 -1
  930. package/dist/typescript/commonjs/src/runtime/utils/index.d.ts +0 -6
  931. package/dist/typescript/commonjs/src/runtime/utils/index.d.ts.map +0 -1
  932. package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts.map +0 -1
  933. package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts +0 -13
  934. package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts.map +0 -1
  935. package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts +0 -4
  936. package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts.map +0 -1
  937. package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts +0 -5
  938. package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts.map +0 -1
  939. package/dist/typescript/commonjs/src/runtime/web/api.d.ts +0 -16
  940. package/dist/typescript/commonjs/src/runtime/web/api.d.ts.map +0 -1
  941. package/dist/typescript/commonjs/src/runtime/web/assign-style.d.ts.map +0 -1
  942. package/dist/typescript/commonjs/src/runtime/web/index.d.ts.map +0 -1
  943. package/dist/typescript/commonjs/src/runtime/web/metro.d.ts.map +0 -1
  944. package/dist/typescript/commonjs/src/style-collection/index.d.ts +0 -14
  945. package/dist/typescript/commonjs/src/style-collection/index.d.ts.map +0 -1
  946. package/dist/typescript/commonjs/src/style-collection/root.d.ts +0 -11
  947. package/dist/typescript/commonjs/src/style-collection/root.d.ts.map +0 -1
  948. package/dist/typescript/module/src/poison.pill.d.ts +0 -2
  949. package/dist/typescript/module/src/poison.pill.d.ts.map +0 -1
  950. package/dist/typescript/module/src/runtime/index.d.ts +0 -7
  951. package/dist/typescript/module/src/runtime/index.d.ts.map +0 -1
  952. package/dist/typescript/module/src/runtime/native/api.d.ts +0 -31
  953. package/dist/typescript/module/src/runtime/native/api.d.ts.map +0 -1
  954. package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts +0 -5
  955. package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts.map +0 -1
  956. package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts +0 -7
  957. package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts.map +0 -1
  958. package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts.map +0 -1
  959. package/dist/typescript/module/src/runtime/native/conditions/index.d.ts +0 -6
  960. package/dist/typescript/module/src/runtime/native/conditions/index.d.ts.map +0 -1
  961. package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts +0 -4
  962. package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts.map +0 -1
  963. package/dist/typescript/module/src/runtime/native/index.d.ts +0 -4
  964. package/dist/typescript/module/src/runtime/native/index.d.ts.map +0 -1
  965. package/dist/typescript/module/src/runtime/native/metro.d.ts +0 -2
  966. package/dist/typescript/module/src/runtime/native/metro.d.ts.map +0 -1
  967. package/dist/typescript/module/src/runtime/native/react/interaction.d.ts.map +0 -1
  968. package/dist/typescript/module/src/runtime/native/react/rules.d.ts.map +0 -1
  969. package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts.map +0 -1
  970. package/dist/typescript/module/src/runtime/native/react/usePassthrough.d.ts.map +0 -1
  971. package/dist/typescript/module/src/runtime/native/reactivity.d.ts +0 -53
  972. package/dist/typescript/module/src/runtime/native/reactivity.d.ts.map +0 -1
  973. package/dist/typescript/module/src/runtime/native/reanimated.d.ts.map +0 -1
  974. package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts +0 -10
  975. package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts.map +0 -1
  976. package/dist/typescript/module/src/runtime/native/styles/constants.d.ts.map +0 -1
  977. package/dist/typescript/module/src/runtime/native/styles/defaults.d.ts.map +0 -1
  978. package/dist/typescript/module/src/runtime/native/styles/functions/animation-timing.d.ts.map +0 -1
  979. package/dist/typescript/module/src/runtime/native/styles/functions/calc.d.ts.map +0 -1
  980. package/dist/typescript/module/src/runtime/native/styles/functions/filters.d.ts.map +0 -1
  981. package/dist/typescript/module/src/runtime/native/styles/functions/index.d.ts +0 -8
  982. package/dist/typescript/module/src/runtime/native/styles/functions/index.d.ts.map +0 -1
  983. package/dist/typescript/module/src/runtime/native/styles/functions/numeric-functions.d.ts.map +0 -1
  984. package/dist/typescript/module/src/runtime/native/styles/functions/platform-functions.d.ts.map +0 -1
  985. package/dist/typescript/module/src/runtime/native/styles/functions/string-functions.d.ts.map +0 -1
  986. package/dist/typescript/module/src/runtime/native/styles/functions/transform-functions.d.ts.map +0 -1
  987. package/dist/typescript/module/src/runtime/native/styles/index.d.ts +0 -19
  988. package/dist/typescript/module/src/runtime/native/styles/index.d.ts.map +0 -1
  989. package/dist/typescript/module/src/runtime/native/styles/line-height.d.ts.map +0 -1
  990. package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts +0 -18
  991. package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts.map +0 -1
  992. package/dist/typescript/module/src/runtime/native/styles/shorthands/_handler.d.ts.map +0 -1
  993. package/dist/typescript/module/src/runtime/native/styles/shorthands/animation.d.ts +0 -4
  994. package/dist/typescript/module/src/runtime/native/styles/shorthands/animation.d.ts.map +0 -1
  995. package/dist/typescript/module/src/runtime/native/styles/shorthands/border.d.ts.map +0 -1
  996. package/dist/typescript/module/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +0 -1
  997. package/dist/typescript/module/src/runtime/native/styles/shorthands/index.d.ts.map +0 -1
  998. package/dist/typescript/module/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +0 -1
  999. package/dist/typescript/module/src/runtime/native/styles/shorthands/transform.d.ts.map +0 -1
  1000. package/dist/typescript/module/src/runtime/native/styles/units.d.ts.map +0 -1
  1001. package/dist/typescript/module/src/runtime/native/styles/variables.d.ts +0 -5
  1002. package/dist/typescript/module/src/runtime/native/styles/variables.d.ts.map +0 -1
  1003. package/dist/typescript/module/src/runtime/runtime.d.ts.map +0 -1
  1004. package/dist/typescript/module/src/runtime/runtime.native.d.ts.map +0 -1
  1005. package/dist/typescript/module/src/runtime/runtime.types.d.ts +0 -47
  1006. package/dist/typescript/module/src/runtime/runtime.types.d.ts.map +0 -1
  1007. package/dist/typescript/module/src/runtime/utils/components.d.ts +0 -2
  1008. package/dist/typescript/module/src/runtime/utils/components.d.ts.map +0 -1
  1009. package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts +0 -23
  1010. package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts.map +0 -1
  1011. package/dist/typescript/module/src/runtime/utils/index.d.ts +0 -6
  1012. package/dist/typescript/module/src/runtime/utils/index.d.ts.map +0 -1
  1013. package/dist/typescript/module/src/runtime/utils/objects.d.ts.map +0 -1
  1014. package/dist/typescript/module/src/runtime/utils/specificity.d.ts +0 -13
  1015. package/dist/typescript/module/src/runtime/utils/specificity.d.ts.map +0 -1
  1016. package/dist/typescript/module/src/runtime/utils/style-value.d.ts +0 -4
  1017. package/dist/typescript/module/src/runtime/utils/style-value.d.ts.map +0 -1
  1018. package/dist/typescript/module/src/runtime/utils/utils.types.d.ts +0 -5
  1019. package/dist/typescript/module/src/runtime/utils/utils.types.d.ts.map +0 -1
  1020. package/dist/typescript/module/src/runtime/web/api.d.ts +0 -16
  1021. package/dist/typescript/module/src/runtime/web/api.d.ts.map +0 -1
  1022. package/dist/typescript/module/src/runtime/web/assign-style.d.ts.map +0 -1
  1023. package/dist/typescript/module/src/runtime/web/index.d.ts.map +0 -1
  1024. package/dist/typescript/module/src/runtime/web/metro.d.ts +0 -2
  1025. package/dist/typescript/module/src/runtime/web/metro.d.ts.map +0 -1
  1026. package/dist/typescript/module/src/style-collection/index.d.ts +0 -14
  1027. package/dist/typescript/module/src/style-collection/index.d.ts.map +0 -1
  1028. package/dist/typescript/module/src/style-collection/root.d.ts +0 -11
  1029. package/dist/typescript/module/src/style-collection/root.d.ts.map +0 -1
  1030. package/src/components/index.tsx +0 -10
  1031. package/src/runtime/index.ts +0 -7
  1032. package/src/runtime/native/api.tsx +0 -135
  1033. package/src/runtime/native/conditions/attributes.ts +0 -52
  1034. package/src/runtime/native/conditions/container-query.ts +0 -162
  1035. package/src/runtime/native/conditions/index.ts +0 -54
  1036. package/src/runtime/native/conditions/media-query.ts +0 -98
  1037. package/src/runtime/native/index.ts +0 -4
  1038. package/src/runtime/native/react/rules.ts +0 -336
  1039. package/src/runtime/native/react/useNativeCss.ts +0 -203
  1040. package/src/runtime/native/reactivity.ts +0 -251
  1041. package/src/runtime/native/styles/calculate-props.ts +0 -201
  1042. package/src/runtime/native/styles/functions/filters.ts +0 -98
  1043. package/src/runtime/native/styles/functions/index.ts +0 -7
  1044. package/src/runtime/native/styles/functions/transform-functions.ts +0 -84
  1045. package/src/runtime/native/styles/index.ts +0 -197
  1046. package/src/runtime/native/styles/resolve.ts +0 -164
  1047. package/src/runtime/native/styles/shorthands/_handler.ts +0 -121
  1048. package/src/runtime/native/styles/shorthands/animation.ts +0 -123
  1049. package/src/runtime/native/styles/shorthands/box-shadow.ts +0 -80
  1050. package/src/runtime/native/styles/variables.ts +0 -88
  1051. package/src/runtime/runtime.types.ts +0 -130
  1052. package/src/runtime/utils/components.ts +0 -15
  1053. package/src/runtime/utils/dot-notation.types.ts +0 -118
  1054. package/src/runtime/utils/index.ts +0 -5
  1055. package/src/runtime/utils/specificity.ts +0 -45
  1056. package/src/runtime/utils/style-value.ts +0 -24
  1057. package/src/runtime/utils/utils.types.ts +0 -19
  1058. package/src/runtime/web/api.tsx +0 -114
  1059. package/src/runtime/web/metro.ts +0 -2
  1060. package/src/style-collection/index.ts +0 -142
  1061. package/src/style-collection/root.ts +0 -37
  1062. /package/dist/commonjs/{runtime/native → native}/conditions/container-query.js +0 -0
  1063. /package/dist/commonjs/{runtime/native → native}/conditions/guards.js +0 -0
  1064. /package/dist/commonjs/{runtime/native → native}/conditions/index.js +0 -0
  1065. /package/dist/commonjs/{runtime/native → native}/conditions/media-query.js +0 -0
  1066. /package/dist/commonjs/{runtime/utils → native}/objects.js +0 -0
  1067. /package/dist/commonjs/{runtime/native → native}/react/interaction.js +0 -0
  1068. /package/dist/commonjs/{runtime/native → native}/react/usePassthrough.js +0 -0
  1069. /package/dist/commonjs/{runtime/native → native}/reanimated.js +0 -0
  1070. /package/dist/commonjs/{runtime/native → native}/styles/constants.js +0 -0
  1071. /package/dist/commonjs/{runtime/native → native}/styles/defaults.js +0 -0
  1072. /package/dist/commonjs/{runtime/native → native}/styles/functions/animation-timing.js +0 -0
  1073. /package/dist/commonjs/{runtime/native → native}/styles/functions/calc.js +0 -0
  1074. /package/dist/commonjs/{runtime/native → native}/styles/functions/numeric-functions.js +0 -0
  1075. /package/dist/commonjs/{runtime/native → native}/styles/functions/platform-functions.js +0 -0
  1076. /package/dist/commonjs/{runtime/native → native}/styles/functions/string-functions.js +0 -0
  1077. /package/dist/commonjs/{runtime/native → native}/styles/line-height.js +0 -0
  1078. /package/dist/commonjs/{runtime/native → native}/styles/shorthands/border.js +0 -0
  1079. /package/dist/commonjs/{runtime/native → native}/styles/shorthands/index.js +0 -0
  1080. /package/dist/commonjs/{runtime/native → native}/styles/shorthands/text-shadow.js +0 -0
  1081. /package/dist/commonjs/{runtime/native → native}/styles/shorthands/transform.js +0 -0
  1082. /package/dist/commonjs/{runtime/native → native}/styles/units.js +0 -0
  1083. /package/dist/commonjs/{runtime/runtime.js → runtime.js} +0 -0
  1084. /package/dist/commonjs/{runtime/runtime.native.js → runtime.native.js} +0 -0
  1085. /package/dist/commonjs/{runtime/runtime.types.js → runtime.types.js} +0 -0
  1086. /package/dist/commonjs/{runtime/utils → utilities}/dot-notation.types.js +0 -0
  1087. /package/dist/commonjs/{runtime/utils → utilities}/specificity.js +0 -0
  1088. /package/dist/commonjs/{runtime/web → web}/assign-style.js +0 -0
  1089. /package/dist/commonjs/{runtime/web → web}/index.js +0 -0
  1090. /package/dist/commonjs/{runtime/native → web}/metro.js +0 -0
  1091. /package/dist/module/{runtime/native → native}/conditions/container-query.js +0 -0
  1092. /package/dist/module/{runtime/native → native}/conditions/guards.js +0 -0
  1093. /package/dist/module/{runtime/native → native}/conditions/index.js +0 -0
  1094. /package/dist/module/{runtime/native → native}/conditions/media-query.js +0 -0
  1095. /package/dist/module/{runtime/utils → native}/objects.js +0 -0
  1096. /package/dist/module/{runtime/native → native}/react/interaction.js +0 -0
  1097. /package/dist/module/{runtime/native → native}/react/usePassthrough.js +0 -0
  1098. /package/dist/module/{runtime/native → native}/reanimated.js +0 -0
  1099. /package/dist/module/{runtime/native → native}/styles/constants.js +0 -0
  1100. /package/dist/module/{runtime/native → native}/styles/defaults.js +0 -0
  1101. /package/dist/module/{runtime/native → native}/styles/functions/animation-timing.js +0 -0
  1102. /package/dist/module/{runtime/native → native}/styles/functions/calc.js +0 -0
  1103. /package/dist/module/{runtime/native → native}/styles/functions/numeric-functions.js +0 -0
  1104. /package/dist/module/{runtime/native → native}/styles/functions/platform-functions.js +0 -0
  1105. /package/dist/module/{runtime/native → native}/styles/functions/string-functions.js +0 -0
  1106. /package/dist/module/{runtime/native → native}/styles/line-height.js +0 -0
  1107. /package/dist/module/{runtime/native → native}/styles/shorthands/border.js +0 -0
  1108. /package/dist/module/{runtime/native → native}/styles/shorthands/index.js +0 -0
  1109. /package/dist/module/{runtime/native → native}/styles/shorthands/text-shadow.js +0 -0
  1110. /package/dist/module/{runtime/native → native}/styles/shorthands/transform.js +0 -0
  1111. /package/dist/module/{runtime/native → native}/styles/units.js +0 -0
  1112. /package/dist/module/{runtime/runtime.js → runtime.js} +0 -0
  1113. /package/dist/module/{runtime/runtime.native.js → runtime.native.js} +0 -0
  1114. /package/dist/module/{runtime/runtime.types.js → runtime.types.js} +0 -0
  1115. /package/dist/module/{runtime/utils → utilities}/dot-notation.types.js +0 -0
  1116. /package/dist/module/{runtime/utils → utilities}/specificity.js +0 -0
  1117. /package/dist/module/{runtime/web → web}/assign-style.js +0 -0
  1118. /package/dist/module/{runtime/web → web}/index.js +0 -0
  1119. /package/dist/module/{runtime/native → web}/metro.js +0 -0
  1120. /package/dist/typescript/commonjs/src/{runtime/native → native}/conditions/guards.d.ts +0 -0
  1121. /package/dist/typescript/commonjs/src/{runtime/utils → native}/objects.d.ts +0 -0
  1122. /package/dist/typescript/commonjs/src/{runtime/native → native}/react/interaction.d.ts +0 -0
  1123. /package/dist/typescript/commonjs/src/{runtime/native → native}/react/rules.d.ts +0 -0
  1124. /package/dist/typescript/commonjs/src/{runtime/native → native}/react/useNativeCss.d.ts +0 -0
  1125. /package/dist/typescript/commonjs/src/{runtime/native → native}/react/usePassthrough.d.ts +0 -0
  1126. /package/dist/typescript/commonjs/src/{runtime/native → native}/reanimated.d.ts +0 -0
  1127. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/constants.d.ts +0 -0
  1128. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/defaults.d.ts +0 -0
  1129. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/animation-timing.d.ts +0 -0
  1130. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/calc.d.ts +0 -0
  1131. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/filters.d.ts +0 -0
  1132. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/numeric-functions.d.ts +0 -0
  1133. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/platform-functions.d.ts +0 -0
  1134. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/string-functions.d.ts +0 -0
  1135. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/transform-functions.d.ts +0 -0
  1136. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/line-height.d.ts +0 -0
  1137. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/_handler.d.ts +0 -0
  1138. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/border.d.ts +0 -0
  1139. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/box-shadow.d.ts +0 -0
  1140. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/index.d.ts +0 -0
  1141. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/text-shadow.d.ts +0 -0
  1142. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/transform.d.ts +0 -0
  1143. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/units.d.ts +0 -0
  1144. /package/dist/typescript/commonjs/src/{runtime/runtime.d.ts → runtime.d.ts} +0 -0
  1145. /package/dist/typescript/commonjs/src/{runtime/runtime.native.d.ts → runtime.native.d.ts} +0 -0
  1146. /package/dist/typescript/commonjs/src/{runtime/web → web}/assign-style.d.ts +0 -0
  1147. /package/dist/typescript/commonjs/src/{runtime/web → web}/index.d.ts +0 -0
  1148. /package/dist/typescript/commonjs/src/{runtime/native → web}/metro.d.ts +0 -0
  1149. /package/dist/typescript/module/src/{runtime/native → native}/conditions/guards.d.ts +0 -0
  1150. /package/dist/typescript/module/src/{runtime/utils → native}/objects.d.ts +0 -0
  1151. /package/dist/typescript/module/src/{runtime/native → native}/react/interaction.d.ts +0 -0
  1152. /package/dist/typescript/module/src/{runtime/native → native}/react/rules.d.ts +0 -0
  1153. /package/dist/typescript/module/src/{runtime/native → native}/react/useNativeCss.d.ts +0 -0
  1154. /package/dist/typescript/module/src/{runtime/native → native}/react/usePassthrough.d.ts +0 -0
  1155. /package/dist/typescript/module/src/{runtime/native → native}/reanimated.d.ts +0 -0
  1156. /package/dist/typescript/module/src/{runtime/native → native}/styles/constants.d.ts +0 -0
  1157. /package/dist/typescript/module/src/{runtime/native → native}/styles/defaults.d.ts +0 -0
  1158. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/animation-timing.d.ts +0 -0
  1159. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/calc.d.ts +0 -0
  1160. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/filters.d.ts +0 -0
  1161. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/numeric-functions.d.ts +0 -0
  1162. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/platform-functions.d.ts +0 -0
  1163. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/string-functions.d.ts +0 -0
  1164. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/transform-functions.d.ts +0 -0
  1165. /package/dist/typescript/module/src/{runtime/native → native}/styles/line-height.d.ts +0 -0
  1166. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/_handler.d.ts +0 -0
  1167. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/border.d.ts +0 -0
  1168. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/box-shadow.d.ts +0 -0
  1169. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/index.d.ts +0 -0
  1170. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/text-shadow.d.ts +0 -0
  1171. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/transform.d.ts +0 -0
  1172. /package/dist/typescript/module/src/{runtime/native → native}/styles/units.d.ts +0 -0
  1173. /package/dist/typescript/module/src/{runtime/runtime.d.ts → runtime.d.ts} +0 -0
  1174. /package/dist/typescript/module/src/{runtime/runtime.native.d.ts → runtime.native.d.ts} +0 -0
  1175. /package/dist/typescript/module/src/{runtime/web → web}/assign-style.d.ts +0 -0
  1176. /package/dist/typescript/module/src/{runtime/web → web}/index.d.ts +0 -0
  1177. /package/dist/typescript/{commonjs/src/runtime → module/src}/web/metro.d.ts +0 -0
  1178. /package/src/{runtime/native → native}/conditions/guards.ts +0 -0
  1179. /package/src/{runtime/utils → native}/objects.ts +0 -0
  1180. /package/src/{runtime/native → native}/react/interaction.ts +0 -0
  1181. /package/src/{runtime/native → native}/react/usePassthrough.ts +0 -0
  1182. /package/src/{poison.pill.ts → native/react-native-css-metro-override.ts} +0 -0
  1183. /package/src/{runtime/native → native}/reanimated.ts +0 -0
  1184. /package/src/{runtime/native → native}/styles/constants.ts +0 -0
  1185. /package/src/{runtime/native → native}/styles/defaults.ts +0 -0
  1186. /package/src/{runtime/native → native}/styles/functions/animation-timing.ts +0 -0
  1187. /package/src/{runtime/native → native}/styles/functions/calc.ts +0 -0
  1188. /package/src/{runtime/native → native}/styles/functions/numeric-functions.ts +0 -0
  1189. /package/src/{runtime/native → native}/styles/functions/platform-functions.ts +0 -0
  1190. /package/src/{runtime/native → native}/styles/functions/string-functions.ts +0 -0
  1191. /package/src/{runtime/native → native}/styles/line-height.ts +0 -0
  1192. /package/src/{runtime/native → native}/styles/shorthands/border.ts +0 -0
  1193. /package/src/{runtime/native → native}/styles/shorthands/index.ts +0 -0
  1194. /package/src/{runtime/native → native}/styles/shorthands/text-shadow.ts +0 -0
  1195. /package/src/{runtime/native → native}/styles/shorthands/transform.ts +0 -0
  1196. /package/src/{runtime/native → native}/styles/units.ts +0 -0
  1197. /package/src/{runtime/runtime.native.ts → runtime.native.ts} +0 -0
  1198. /package/src/{runtime/runtime.ts → runtime.ts} +0 -0
  1199. /package/src/{runtime/web → web}/assign-style.ts +0 -0
  1200. /package/src/{runtime/web → web}/index.ts +0 -0
  1201. /package/src/{runtime/native → web}/metro.ts +0 -0
@@ -8,6 +8,7 @@ var _exportNames = {
8
8
  };
9
9
  exports.SafeAreaProvider = SafeAreaProvider;
10
10
  var _react = require("react");
11
+ var _nativeInternal = require("react-native-css/native-internal");
11
12
  var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
12
13
  Object.keys(_reactNativeSafeAreaContext).forEach(function (key) {
13
14
  if (key === "default" || key === "__esModule") return;
@@ -20,7 +21,6 @@ Object.keys(_reactNativeSafeAreaContext).forEach(function (key) {
20
21
  }
21
22
  });
22
23
  });
23
- var _reactivity = require("../runtime/native/reactivity.js");
24
24
  var _jsxRuntime = require("react/jsx-runtime");
25
25
  function SafeAreaProvider({
26
26
  children,
@@ -37,7 +37,7 @@ function SafeAreaEnv({
37
37
  children
38
38
  }) {
39
39
  const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
40
- const parentVars = (0, _react.useContext)(_reactivity.VariableContext);
40
+ const parentVars = (0, _react.useContext)(_nativeInternal.VariableContext);
41
41
  const value = (0, _react.useMemo)(() => ({
42
42
  ...parentVars,
43
43
  "--react-native-css-safe-area-inset-bottom": insets.bottom,
@@ -45,7 +45,7 @@ function SafeAreaEnv({
45
45
  "--react-native-css-safe-area-inset-right": insets.right,
46
46
  "--react-native-css-safe-area-inset-top": insets.top
47
47
  }), [parentVars, insets]);
48
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactivity.VariableContext, {
48
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_nativeInternal.VariableContextProvider, {
49
49
  value: value,
50
50
  children: children
51
51
  });
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNativeSafeAreaContext","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_reactivity","_jsxRuntime","SafeAreaProvider","children","props","jsx","SafeAreaEnv","insets","useSafeAreaInsets","parentVars","useContext","VariableContext","value","useMemo","bottom","left","right","top"],"sourceRoot":"../../../src","sources":["components/react-native-safe-area-context.native.tsx"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,2BAAA,GAAAD,OAAA;AAQAE,MAAA,CAAAC,IAAA,CAAAF,2BAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,2BAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,2BAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AAFA,IAAAS,WAAA,GAAAd,OAAA;AAA+D,IAAAe,WAAA,GAAAf,OAAA;AAIxD,SAASgB,gBAAgBA,CAAC;EAC/BC,QAAQ;EACR,GAAGC;AACkB,CAAC,EAAE;EACxB,oBACE,IAAAH,WAAA,CAAAI,GAAA,EAAClB,2BAAA,CAAAe,gBAAwB;IAAA,GAAKE,KAAK;IAAAD,QAAA,eACjC,IAAAF,WAAA,CAAAI,GAAA,EAACC,WAAW;MAAAH,QAAA,EAAEA;IAAQ,CAAc;EAAC,CACb,CAAC;AAE/B;AAEA,SAASG,WAAWA,CAAC;EAAEH;AAA4B,CAAC,EAAE;EACpD,MAAMI,MAAM,GAAG,IAAAC,6CAAiB,EAAC,CAAC;EAClC,MAAMC,UAAU,GAAG,IAAAC,iBAAU,EAACC,2BAAe,CAAC;EAE9C,MAAMC,KAAK,GAAG,IAAAC,cAAO,EACnB,OAAO;IACL,GAAGJ,UAAU;IACb,2CAA2C,EAAEF,MAAM,CAACO,MAAM;IAC1D,yCAAyC,EAAEP,MAAM,CAACQ,IAAI;IACtD,0CAA0C,EAAER,MAAM,CAACS,KAAK;IACxD,wCAAwC,EAAET,MAAM,CAACU;EACnD,CAAC,CAAC,EACF,CAACR,UAAU,EAAEF,MAAM,CACrB,CAAC;EAED,oBAAO,IAAAN,WAAA,CAAAI,GAAA,EAACL,WAAA,CAAAW,eAAe;IAACC,KAAK,EAAEA,KAAM;IAAAT,QAAA,EAAEA;EAAQ,CAAkB,CAAC;AACpE","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_nativeInternal","_reactNativeSafeAreaContext","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_jsxRuntime","SafeAreaProvider","children","props","jsx","SafeAreaEnv","insets","useSafeAreaInsets","parentVars","useContext","VariableContext","value","useMemo","bottom","left","right","top","VariableContextProvider"],"sourceRoot":"../../../src","sources":["components/react-native-safe-area-context.native.tsx"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,eAAA,GAAAD,OAAA;AAIA,IAAAE,2BAAA,GAAAF,OAAA;AAMAG,MAAA,CAAAC,IAAA,CAAAF,2BAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,2BAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,2BAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AAA+C,IAAAS,WAAA,GAAAf,OAAA;AAExC,SAASgB,gBAAgBA,CAAC;EAC/BC,QAAQ;EACR,GAAGC;AACkB,CAAC,EAAE;EACxB,oBACE,IAAAH,WAAA,CAAAI,GAAA,EAACjB,2BAAA,CAAAc,gBAAwB;IAAA,GAAKE,KAAK;IAAAD,QAAA,eACjC,IAAAF,WAAA,CAAAI,GAAA,EAACC,WAAW;MAAAH,QAAA,EAAEA;IAAQ,CAAc;EAAC,CACb,CAAC;AAE/B;AAEA,SAASG,WAAWA,CAAC;EAAEH;AAA4B,CAAC,EAAE;EACpD,MAAMI,MAAM,GAAG,IAAAC,6CAAiB,EAAC,CAAC;EAClC,MAAMC,UAAU,GAAG,IAAAC,iBAAU,EAACC,+BAAe,CAAC;EAE9C,MAAMC,KAAK,GAAG,IAAAC,cAAO,EACnB,OAAO;IACL,GAAGJ,UAAU;IACb,2CAA2C,EAAEF,MAAM,CAACO,MAAM;IAC1D,yCAAyC,EAAEP,MAAM,CAACQ,IAAI;IACtD,0CAA0C,EAAER,MAAM,CAACS,KAAK;IACxD,wCAAwC,EAAET,MAAM,CAACU;EACnD,CAAC,CAAC,EACF,CAACR,UAAU,EAAEF,MAAM,CACrB,CAAC;EAED,oBACE,IAAAN,WAAA,CAAAI,GAAA,EAAClB,eAAA,CAAA+B,uBAAuB;IAACN,KAAK,EAAEA,KAAM;IAAAT,QAAA,EAAEA;EAAQ,CAA0B,CAAC;AAE/E","ignoreList":[]}
@@ -3,25 +3,14 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- var _index = require("./runtime/index.js");
7
- Object.keys(_index).forEach(function (key) {
6
+ var _runtime = require("./runtime");
7
+ Object.keys(_runtime).forEach(function (key) {
8
8
  if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _index[key]) return;
9
+ if (key in exports && exports[key] === _runtime[key]) return;
10
10
  Object.defineProperty(exports, key, {
11
11
  enumerable: true,
12
12
  get: function () {
13
- return _index[key];
14
- }
15
- });
16
- });
17
- var _poisonPill = require("./poison.pill.js");
18
- Object.keys(_poisonPill).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _poisonPill[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function () {
24
- return _poisonPill[key];
13
+ return _runtime[key];
25
14
  }
26
15
  });
27
16
  });
@@ -1 +1 @@
1
- {"version":3,"names":["_index","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_poisonPill"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AAEA,IAAAK,WAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,WAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,WAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,WAAA,CAAAL,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["_runtime","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,QAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,QAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,QAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -9,16 +9,16 @@ exports.testID = void 0;
9
9
  var _reactNative = require("react-native");
10
10
  var _nodeUtil = require("node:util");
11
11
  var _compiler = require("react-native-css/compiler");
12
- var _styleCollection = require("react-native-css/style-collection");
13
- var _reactivity = require("../runtime/native/reactivity.js");
12
+ var _native = require("react-native-css/native");
13
+ var _reactivity = require("../native/reactivity.js");
14
14
  const testID = exports.testID = "react-native-css";
15
15
  beforeEach(() => {
16
- _styleCollection.StyleCollection.styles.clear();
16
+ _native.StyleCollection.styles.clear();
17
17
  _reactivity.dimensions.set(_reactNative.Dimensions.get("window"));
18
18
  _reactNative.Appearance.setColorScheme(null);
19
19
  _reactivity.colorScheme.set(null);
20
20
  });
21
- const debugDefault = Boolean(process.env.REACT_NATIVE_CSS_TEST_DEBUG && process.env.NODE_OPTIONS?.includes("--inspect"));
21
+ const debugDefault = Boolean(process.env.REACT_NATIVE_CSS_TEST_DEBUG && typeof process.env.NODE_OPTIONS === "string" && process.env.NODE_OPTIONS.includes("--inspect"));
22
22
  function registerCSS(css, options = {}) {
23
23
  const {
24
24
  debug = debugDefault
@@ -34,7 +34,7 @@ function registerCSS(css, options = {}) {
34
34
  compact: false
35
35
  })}`);
36
36
  }
37
- _styleCollection.StyleCollection.inject(compiled.stylesheet());
37
+ _native.StyleCollection.inject(compiled.stylesheet());
38
38
  return compiled;
39
39
  }
40
40
  function compileWithAutoDebug(css, {
@@ -43,7 +43,7 @@ function compileWithAutoDebug(css, {
43
43
  } = {}) {
44
44
  const logger = debug ? text => {
45
45
  // Just log the rules
46
- if (text.startsWith("[")) {
46
+ if (text.startsWith("[") && debug === "verbose") {
47
47
  console.log(`Rules:\n---\n${text}`);
48
48
  }
49
49
  } : undefined;
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_nodeUtil","_compiler","_styleCollection","_reactivity","testID","exports","beforeEach","StyleCollection","styles","clear","dimensions","set","Dimensions","get","Appearance","setColorScheme","colorScheme","debugDefault","Boolean","process","env","REACT_NATIVE_CSS_TEST_DEBUG","NODE_OPTIONS","includes","registerCSS","css","options","debug","compiled","compileWithAutoDebug","console","log","inspect","stylesheet","warnings","depth","colors","compact","inject","logger","text","startsWith","undefined","compile"],"sourceRoot":"../../../src","sources":["jest/index.ts"],"mappings":";;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AAEA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAH,OAAA;AAEA,IAAAI,WAAA,GAAAJ,OAAA;AAWO,MAAMK,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAG,kBAAkB;AAExCE,UAAU,CAAC,MAAM;EACfC,gCAAe,CAACC,MAAM,CAACC,KAAK,CAAC,CAAC;EAC9BC,sBAAU,CAACC,GAAG,CAACC,uBAAU,CAACC,GAAG,CAAC,QAAQ,CAAC,CAAC;EACxCC,uBAAU,CAACC,cAAc,CAAC,IAAI,CAAC;EAC/BC,uBAAW,CAACL,GAAG,CAAC,IAAI,CAAC;AACvB,CAAC,CAAC;AAEF,MAAMM,YAAY,GAAGC,OAAO,CAC1BC,OAAO,CAACC,GAAG,CAACC,2BAA2B,IACrCF,OAAO,CAACC,GAAG,CAACE,YAAY,EAAEC,QAAQ,CAAC,WAAW,CAClD,CAAC;AAEM,SAASC,WAAWA,CACzBC,GAAW,EACXC,OAA8C,GAAG,CAAC,CAAC,EACnD;EACA,MAAM;IAAEC,KAAK,GAAGV;EAAa,CAAC,GAAGS,OAAO;EACxC,MAAME,QAAQ,GAAGC,oBAAoB,CAACJ,GAAG,EAAEC,OAAO,CAAC;EAEnD,IAAIC,KAAK,EAAE;IACTG,OAAO,CAACC,GAAG,CACT,mBAAmB,IAAAC,iBAAO,EACxB;MACEC,UAAU,EAAEL,QAAQ,CAACK,UAAU,CAAC,CAAC;MACjCC,QAAQ,EAAEN,QAAQ,CAACM,QAAQ,CAAC;IAC9B,CAAC,EACD;MAAEC,KAAK,EAAE,IAAI;MAAEC,MAAM,EAAE,IAAI;MAAEC,OAAO,EAAE;IAAM,CAC9C,CAAC,EACH,CAAC;EACH;EAEA9B,gCAAe,CAAC+B,MAAM,CAACV,QAAQ,CAACK,UAAU,CAAC,CAAC,CAAC;EAE7C,OAAOL,QAAQ;AACjB;AAEO,SAASC,oBAAoBA,CAClCJ,GAAW,EACX;EACEE,KAAK,GAAGV,YAAY;EACpB,GAAGS;AACkC,CAAC,GAAG,CAAC,CAAC,EAC7C;EACA,MAAMa,MAAM,GAAGZ,KAAK,GACfa,IAAY,IAAK;IAChB;IACA,IAAIA,IAAI,CAACC,UAAU,CAAC,GAAG,CAAC,EAAE;MACxBX,OAAO,CAACC,GAAG,CAAC,gBAAgBS,IAAI,EAAE,CAAC;IACrC;EACF,CAAC,GACDE,SAAS;EAEb,OAAO,IAAAC,iBAAO,EAAClB,GAAG,EAAE;IAAE,GAAGC,OAAO;IAAEa;EAAO,CAAC,CAAC;AAC7C","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_nodeUtil","_compiler","_native","_reactivity","testID","exports","beforeEach","StyleCollection","styles","clear","dimensions","set","Dimensions","get","Appearance","setColorScheme","colorScheme","debugDefault","Boolean","process","env","REACT_NATIVE_CSS_TEST_DEBUG","NODE_OPTIONS","includes","registerCSS","css","options","debug","compiled","compileWithAutoDebug","console","log","inspect","stylesheet","warnings","depth","colors","compact","inject","logger","text","startsWith","undefined","compile"],"sourceRoot":"../../../src","sources":["jest/index.ts"],"mappings":";;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AAEA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAEA,IAAAI,WAAA,GAAAJ,OAAA;AAWO,MAAMK,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAG,kBAAkB;AAExCE,UAAU,CAAC,MAAM;EACfC,uBAAe,CAACC,MAAM,CAACC,KAAK,CAAC,CAAC;EAC9BC,sBAAU,CAACC,GAAG,CAACC,uBAAU,CAACC,GAAG,CAAC,QAAQ,CAAC,CAAC;EACxCC,uBAAU,CAACC,cAAc,CAAC,IAAI,CAAC;EAC/BC,uBAAW,CAACL,GAAG,CAAC,IAAI,CAAC;AACvB,CAAC,CAAC;AAEF,MAAMM,YAAY,GAAGC,OAAO,CAC1BC,OAAO,CAACC,GAAG,CAACC,2BAA2B,IACrC,OAAOF,OAAO,CAACC,GAAG,CAACE,YAAY,KAAK,QAAQ,IAC5CH,OAAO,CAACC,GAAG,CAACE,YAAY,CAACC,QAAQ,CAAC,WAAW,CACjD,CAAC;AAEM,SAASC,WAAWA,CACzBC,GAAW,EACXC,OAA8C,GAAG,CAAC,CAAC,EACnD;EACA,MAAM;IAAEC,KAAK,GAAGV;EAAa,CAAC,GAAGS,OAAO;EACxC,MAAME,QAAQ,GAAGC,oBAAoB,CAACJ,GAAG,EAAEC,OAAO,CAAC;EAEnD,IAAIC,KAAK,EAAE;IACTG,OAAO,CAACC,GAAG,CACT,mBAAmB,IAAAC,iBAAO,EACxB;MACEC,UAAU,EAAEL,QAAQ,CAACK,UAAU,CAAC,CAAC;MACjCC,QAAQ,EAAEN,QAAQ,CAACM,QAAQ,CAAC;IAC9B,CAAC,EACD;MAAEC,KAAK,EAAE,IAAI;MAAEC,MAAM,EAAE,IAAI;MAAEC,OAAO,EAAE;IAAM,CAC9C,CAAC,EACH,CAAC;EACH;EAEA9B,uBAAe,CAAC+B,MAAM,CAACV,QAAQ,CAACK,UAAU,CAAC,CAAC,CAAC;EAE7C,OAAOL,QAAQ;AACjB;AAEO,SAASC,oBAAoBA,CAClCJ,GAAW,EACX;EACEE,KAAK,GAAGV,YAAY;EACpB,GAAGS;AAC8C,CAAC,GAAG,CAAC,CAAC,EACzD;EACA,MAAMa,MAAM,GAAGZ,KAAK,GACfa,IAAY,IAAK;IAChB;IACA,IAAIA,IAAI,CAACC,UAAU,CAAC,GAAG,CAAC,IAAId,KAAK,KAAK,SAAS,EAAE;MAC/CG,OAAO,CAACC,GAAG,CAAC,gBAAgBS,IAAI,EAAE,CAAC;IACrC;EACF,CAAC,GACDE,SAAS;EAEb,OAAO,IAAAC,iBAAO,EAAClB,GAAG,EAAE;IAAE,GAAGC,OAAO;IAAEa;EAAO,CAAC,CAAC;AAC7C","ignoreList":[]}
@@ -4,17 +4,15 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.withReactNativeCSS = withReactNativeCSS;
7
- var _nodePath = require("node:path");
8
7
  var _nodeProcess = require("node:process");
9
- var _debug = _interopRequireDefault(require("debug"));
10
- var _compiler = require("../compiler/compiler.js");
11
- var _injectionCode = require("./injection-code.js");
12
8
  var _resolver = require("./resolver.js");
13
9
  var _typescript = require("./typescript.js");
14
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
10
  /* eslint-disable */
16
11
 
17
- const defaultLogger = (0, _debug.default)("react-native-css:metro");
12
+ const metroOverrideResolution = {
13
+ type: "sourceFile",
14
+ filePath: require.resolve("./override")
15
+ };
18
16
  function withReactNativeCSS(config, options) {
19
17
  if (typeof config === "function") {
20
18
  return async () => {
@@ -27,10 +25,8 @@ function withReactNativeCSS(config, options) {
27
25
  const {
28
26
  disableTypeScriptGeneration,
29
27
  typescriptEnvPath,
30
- globalClassNamePolyfill = false,
31
- logger = defaultLogger
28
+ globalClassNamePolyfill = false
32
29
  } = options || {};
33
- const loggerEnabled = "enabled" in logger ? logger.enabled : true;
34
30
  if (disableTypeScriptGeneration !== true) {
35
31
  (0, _typescript.setupTypeScript)(typescriptEnvPath);
36
32
  }
@@ -45,10 +41,8 @@ function withReactNativeCSS(config, options) {
45
41
  ...config.resolver,
46
42
  sourceExts: [...(config?.resolver?.sourceExts || []), "css"],
47
43
  resolveRequest: (context, moduleName, platform) => {
48
- if (moduleName.includes("poison.pill")) {
49
- return {
50
- type: "empty"
51
- };
44
+ if (moduleName.includes("react-native-css-metro-override")) {
45
+ return metroOverrideResolution;
52
46
  }
53
47
  const parentResolver = config.resolver?.resolveRequest ?? context.resolveRequest;
54
48
 
@@ -60,110 +54,6 @@ function withReactNativeCSS(config, options) {
60
54
  const resolved = resolver(parentResolver, context, moduleName, platform);
61
55
  return resolved;
62
56
  }
63
- },
64
- server: {
65
- ...config.server,
66
- enhanceMiddleware(metroMiddleware, metroServer) {
67
- const bundler = metroServer.getBundler().getBundler();
68
- if (!bundler.__react_native_css__patched) {
69
- bundler.__react_native_css__patched = true;
70
- const nativeCSSFiles = new Map();
71
- const webCSSFiles = new Set();
72
- const nativeInjectionPath = require.resolve("../runtime/native/metro");
73
- const nativeInjectionFilepaths = [
74
- // CommonJS
75
- nativeInjectionPath,
76
- // ES Module
77
- nativeInjectionPath.replace(`dist${_nodePath.sep}commonjs`, `dist${_nodePath.sep}module`),
78
- // TypeScript
79
- nativeInjectionPath.replace(`dist${_nodePath.sep}commonjs`, `src`).replace(".js", ".ts")];
80
- const webInjectionPath = require.resolve("../runtime/web/metro");
81
- const webInjectionFilepaths = [
82
- // CommonJS
83
- webInjectionPath,
84
- // ES Module
85
- webInjectionPath.replace(`dist${_nodePath.sep}commonjs`, `dist${_nodePath.sep}module`),
86
- // TypeScript
87
- webInjectionPath.replace(`dist${_nodePath.sep}commonjs`, `src`).replace(".js", ".ts")];
88
-
89
- // Keep the original
90
- const transformFile = bundler.transformFile.bind(bundler);
91
- const watcher = bundler.getWatcher();
92
-
93
- // Patch with our functionality
94
- bundler.transformFile = async function (filePath, transformOptions, fileBuffer) {
95
- const isCss = /\.(s?css|sass)$/.test(filePath);
96
- if (transformOptions.platform === "web") {
97
- if (isCss) {
98
- webCSSFiles.add(filePath);
99
- } else if (webInjectionFilepaths.includes(filePath)) {
100
- fileBuffer = (0, _injectionCode.getWebInjectionCode)(Array.from(webCSSFiles));
101
- }
102
- return transformFile(filePath, transformOptions, fileBuffer);
103
- } else {
104
- // Handle CSS files on native platforms
105
- if (isCss) {
106
- const webTransform = await transformFile(filePath, {
107
- ...transformOptions,
108
- // Force the platform to web for CSS files
109
- platform: "web",
110
- // Let the transformer know that we will handle compilation
111
- customTransformOptions: {
112
- ...transformOptions.customTransformOptions,
113
- reactNativeCSS: options
114
- }
115
- }, fileBuffer);
116
- const lastTransform = nativeCSSFiles.get(filePath);
117
- const last = lastTransform?.[0];
118
- const next = webTransform.output[0].data.css.code.toString();
119
-
120
- // The CSS file has changed, we need to recompile the injection file
121
- if (next !== last) {
122
- nativeCSSFiles.set(filePath, [next, (0, _compiler.compile)(next, {
123
- hexColors: options?.hexColors
124
- }).stylesheet()]);
125
- watcher.emit("change", {
126
- eventsQueue: nativeInjectionFilepaths.map(filePath => ({
127
- filePath,
128
- metadata: {
129
- modifiedTime: Date.now(),
130
- size: 1,
131
- // Can be anything
132
- type: "virtual" // Can be anything
133
- },
134
- type: "change"
135
- }))
136
- });
137
- }
138
- const nativeTransform = await transformFile(filePath, transformOptions, fileBuffer);
139
-
140
- // Tell Expo to skip caching this file
141
- nativeTransform.output[0].data.css = {
142
- skipCache: true,
143
- // Expo requires a `code` property
144
- code: ""
145
- };
146
- return nativeTransform;
147
- } else if (nativeInjectionFilepaths.includes(filePath)) {
148
- // If this is the injection file, we to swap its content with the
149
- // compiled CSS files
150
- fileBuffer = (0, _injectionCode.getNativeInjectionCode)(Array.from(nativeCSSFiles.keys()).map(key => (0, _nodePath.relative)((0, _nodePath.dirname)(filePath), key)), Array.from(nativeCSSFiles.values()).map(([, value]) => value));
151
- if (loggerEnabled && fileBuffer) {
152
- logger(`Transformed ${filePath}`);
153
- logger(fileBuffer?.toString());
154
- }
155
- }
156
- return transformFile(filePath, transformOptions, fileBuffer);
157
- }
158
- };
159
- }
160
-
161
- /**
162
- * We don't modify the middleware, we just use this function to get the metroServer
163
- * So simply return the existing middleware
164
- */
165
- return config.server?.enhanceMiddleware?.(metroMiddleware, metroServer) ?? metroMiddleware;
166
- }
167
57
  }
168
58
  };
169
59
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_nodePath","require","_nodeProcess","_debug","_interopRequireDefault","_compiler","_injectionCode","_resolver","_typescript","e","__esModule","default","defaultLogger","debug","withReactNativeCSS","config","options","Number","versions","node","split","Error","disableTypeScriptGeneration","typescriptEnvPath","globalClassNamePolyfill","logger","loggerEnabled","enabled","setupTypeScript","transformerPath","resolve","transformer","reactNativeCSS","resolver","sourceExts","resolveRequest","context","moduleName","platform","includes","type","parentResolver","webResolver","nativeResolver","resolved","server","enhanceMiddleware","metroMiddleware","metroServer","bundler","getBundler","__react_native_css__patched","nativeCSSFiles","Map","webCSSFiles","Set","nativeInjectionPath","nativeInjectionFilepaths","replace","sep","webInjectionPath","webInjectionFilepaths","transformFile","bind","watcher","getWatcher","filePath","transformOptions","fileBuffer","isCss","test","add","getWebInjectionCode","Array","from","webTransform","customTransformOptions","lastTransform","get","last","next","output","data","css","code","toString","set","compile","hexColors","stylesheet","emit","eventsQueue","map","metadata","modifiedTime","Date","now","size","nativeTransform","skipCache","getNativeInjectionCode","keys","key","relative","dirname","values","value"],"sourceRoot":"../../../src","sources":["metro/index.ts"],"mappings":";;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,MAAA,GAAAC,sBAAA,CAAAH,OAAA;AAIA,IAAAI,SAAA,GAAAJ,O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AC;gBAED,OAAOc,eAAe;cACxB,CAAC,MAAM,IAAIzC,wBAAwB,CAAClB,QAAQ,CAAC2B,QAAQ,CAAC,EAAE;gBACtD;gBACA;gBACAE,UAAU,GAAG,IAAAgC,qCAAsB,EACjC3B,KAAK,CAACC,IAAI,CAACtB,cAAc,CAACiD,IAAI,CAAC,CAAC,CAAC,CAACT,GAAG,CAAEU,GAAG,IACxC,IAAAC,kBAAQ,EAAC,IAAAC,iBAAO,EAACtC,QAAQ,CAAC,EAAEoC,GAAG,CACjC,CAAC,EACD7B,KAAK,CAACC,IAAI,CAACtB,cAAc,CAACqD,MAAM,CAAC,CAAC,CAAC,CAACb,GAAG,CAAC,CAAC,GAAGc,KAAK,CAAC,KAAKA,KAAK,CAC9D,CAAC;gBAED,IAAIhF,aAAa,IAAI0C,UAAU,EAAE;kBAC/B3C,MAAM,CAAC,eAAeyC,QAAQ,EAAE,CAAC;kBACjCzC,MAAM,CAAC2C,UAAU,EAAEiB,QAAQ,CAAC,CAAC,CAAC;gBAChC;cACF;cAEA,OAAOvB,aAAa,CAACI,QAAQ,EAAEC,gBAAgB,EAAEC,UAAU,CAAC;YAC9D;UACF,CAAC;QACH;;QAEA;AACR;AACA;AACA;QACQ,OACErD,MAAM,CAAC8B,MAAM,EAAEC,iBAAiB,GAAGC,eAAe,EAAEC,WAAW,CAAC,IAChED,eAAe;MAEnB;IACF;EACF,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"names":["_nodeProcess","require","_resolver","_typescript","metroOverrideResolution","type","filePath","resolve","withReactNativeCSS","config","options","Number","versions","node","split","Error","disableTypeScriptGeneration","typescriptEnvPath","globalClassNamePolyfill","setupTypeScript","transformerPath","transformer","reactNativeCSS","resolver","sourceExts","resolveRequest","context","moduleName","platform","includes","parentResolver","webResolver","nativeResolver","resolved"],"sourceRoot":"../../../src","sources":["metro/index.ts"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAAC,SAAA,GAAAD,OAAA;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AAc,GAClBrB,MAAM,CAACc,QAAQ,EAAEE,cAAc,IAAIC,OAAO,CAACD,cAAc;;QAE3D;QACA,IAAI,CAACP,uBAAuB,EAAE;UAC5B,OAAOY,cAAc,CAACJ,OAAO,EAAEC,UAAU,EAAEC,QAAQ,CAAC;QACtD;QAEA,MAAML,QAAQ,GAAGK,QAAQ,KAAK,KAAK,GAAGG,qBAAW,GAAGC,wBAAc;QAClE,MAAMC,QAAQ,GAAGV,QAAQ,CACvBO,cAAc,EACdJ,OAAO,EACPC,UAAU,EACVC,QACF,CAAC;QAED,OAAOK,QAAQ;MACjB;IACF;EACF,CAAC;AACH","ignoreList":[]}
@@ -22,6 +22,6 @@ function getWebInjectionCode(filePaths) {
22
22
  function getNativeInjectionCode(cssFilePaths, values) {
23
23
  const importStatements = cssFilePaths.map(filePath => `import "${filePath}";`).join("\n");
24
24
  const contents = values.map(value => `StyleCollection.inject(${JSON.stringify(value)});`).join("\n");
25
- return Buffer.from(`import { StyleCollection } from "react-native-css/style-collection";\n${importStatements}\n${contents};export {};`);
25
+ return Buffer.from(`import { StyleCollection } from "react-native-css/native-internal";\n${importStatements}\n${contents};export {};`);
26
26
  }
27
27
  //# sourceMappingURL=injection-code.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["getWebInjectionCode","filePaths","importStatements","map","filePath","join","Buffer","from","getNativeInjectionCode","cssFilePaths","values","contents","value","JSON","stringify"],"sourceRoot":"../../../src","sources":["metro/injection-code.ts"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,mBAAmBA,CAACC,SAAmB,EAAE;EACvD,MAAMC,gBAAgB,GAAGD,SAAS,CAC/BE,GAAG,CAAEC,QAAQ,IAAK,WAAWA,QAAQ,IAAI,CAAC,CAC1CC,IAAI,CAAC,IAAI,CAAC;EAEb,OAAOC,MAAM,CAACC,IAAI,CAACL,gBAAgB,CAAC;AACtC;AAEO,SAASM,sBAAsBA,CACpCC,YAAsB,EACtBC,MAAiB,EACjB;EACA,MAAMR,gBAAgB,GAAGO,YAAY,CAClCN,GAAG,CAAEC,QAAQ,IAAK,WAAWA,QAAQ,IAAI,CAAC,CAC1CC,IAAI,CAAC,IAAI,CAAC;EAEb,MAAMM,QAAQ,GAAGD,MAAM,CACpBP,GAAG,CAAES,KAAK,IAAK,0BAA0BC,IAAI,CAACC,SAAS,CAACF,KAAK,CAAC,IAAI,CAAC,CACnEP,IAAI,CAAC,IAAI,CAAC;EAEb,OAAOC,MAAM,CAACC,IAAI,CAChB,yEAAyEL,gBAAgB,KAAKS,QAAQ,aACxG,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"names":["getWebInjectionCode","filePaths","importStatements","map","filePath","join","Buffer","from","getNativeInjectionCode","cssFilePaths","values","contents","value","JSON","stringify"],"sourceRoot":"../../../src","sources":["metro/injection-code.ts"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,mBAAmBA,CAACC,SAAmB,EAAE;EACvD,MAAMC,gBAAgB,GAAGD,SAAS,CAC/BE,GAAG,CAAEC,QAAQ,IAAK,WAAWA,QAAQ,IAAI,CAAC,CAC1CC,IAAI,CAAC,IAAI,CAAC;EAEb,OAAOC,MAAM,CAACC,IAAI,CAACL,gBAAgB,CAAC;AACtC;AAEO,SAASM,sBAAsBA,CACpCC,YAAsB,EACtBC,MAAiB,EACjB;EACA,MAAMR,gBAAgB,GAAGO,YAAY,CAClCN,GAAG,CAAEC,QAAQ,IAAK,WAAWA,QAAQ,IAAI,CAAC,CAC1CC,IAAI,CAAC,IAAI,CAAC;EAEb,MAAMM,QAAQ,GAAGD,MAAM,CACpBP,GAAG,CAAES,KAAK,IAAK,0BAA0BC,IAAI,CAACC,SAAS,CAACF,KAAK,CAAC,IAAI,CAAC,CACnEP,IAAI,CAAC,IAAI,CAAC;EAEb,OAAOC,MAAM,CAACC,IAAI,CAChB,wEAAwEL,gBAAgB,KAAKS,QAAQ,aACvG,CAAC;AACH","ignoreList":[]}
@@ -26,6 +26,13 @@ async function transform(config, projectRoot, filePath, data, options) {
26
26
  projectRoot: projectRoot
27
27
  }).stylesheet();
28
28
  data = Buffer.from((0, _injectionCode.getNativeInjectionCode)([], [productionJS]));
29
- return worker.transform(config, projectRoot, `${filePath}.js`, data, options);
29
+ const transform = await worker.transform(config, projectRoot, `${filePath}.js`, data, options);
30
+
31
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
32
+ transform.output[0].data.css = {
33
+ skipCache: true,
34
+ code: ""
35
+ };
36
+ return transform;
30
37
  }
31
38
  //# sourceMappingURL=metro-transformer.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_metroConfig","require","_index","_injectionCode","worker","unstable_transformerPath","transform","config","projectRoot","filePath","data","options","isCss","type","test","platform","cssFile","css","output","code","toString","productionJS","compile","reactNativeCSS","filename","stylesheet","Buffer","from","getNativeInjectionCode"],"sourceRoot":"../../../src","sources":["metro/metro-transformer.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAOA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAEA,MAAMG,MAAM;AACV;AACAH,OAAO,CAACI,qCAAwB,CAA4C;AAEvE,eAAeC,SAASA,CAC7BC,MAA2B,EAC3BC,WAAmB,EACnBC,QAAgB,EAChBC,IAAY,EACZC,OAEC,EAC2B;EAC5B,MAAMC,KAAK,GAAGD,OAAO,CAACE,IAAI,KAAK,OAAO,IAAI,iBAAiB,CAACC,IAAI,CAACL,QAAQ,CAAC;EAE1E,IAAIE,OAAO,CAACI,QAAQ,KAAK,KAAK,IAAI,CAACH,KAAK,EAAE;IACxC,OAAOR,MAAM,CAACE,SAAS,CAACC,MAAM,EAAEC,WAAW,EAAEC,QAAQ,EAAEC,IAAI,EAAEC,OAAO,CAAC;EACvE;EAEA,MAAMK,OAAO,GAAI,MAAMZ,MAAM,CAACE,SAAS,CAACC,MAAM,EAAEC,WAAW,EAAEC,QAAQ,EAAEC,IAAI,EAAE;IAC3E,GAAGC,OAAO;IACVI,QAAQ,EAAE;EACZ,CAAC,CAEA;EAED,MAAME,GAAG,GAAGD,OAAO,CAACE,MAAM,CAAC,CAAC,CAAC,CAACR,IAAI,CAACO,GAAG,CAACE,IAAI,CAACC,QAAQ,CAAC,CAAC;EAEtD,MAAMC,YAAY,GAAG,IAAAC,cAAO,EAACL,GAAG,EAAE;IAChC,GAAGN,OAAO,CAACY,cAAc;IACzBC,QAAQ,EAAEf,QAAQ;IAClBD,WAAW,EAAEA;EACf,CAAC,CAAC,CAACiB,UAAU,CAAC,CAAC;EAEff,IAAI,GAAGgB,MAAM,CAACC,IAAI,CAAC,IAAAC,qCAAsB,EAAC,EAAE,EAAE,CAACP,YAAY,CAAC,CAAC,CAAC;EAE9D,OAAOjB,MAAM,CAACE,SAAS,CAACC,MAAM,EAAEC,WAAW,EAAE,GAAGC,QAAQ,KAAK,EAAEC,IAAI,EAAEC,OAAO,CAAC;AAC/E","ignoreList":[]}
1
+ {"version":3,"names":["_metroConfig","require","_index","_injectionCode","worker","unstable_transformerPath","transform","config","projectRoot","filePath","data","options","isCss","type","test","platform","cssFile","css","output","code","toString","productionJS","compile","reactNativeCSS","filename","stylesheet","Buffer","from","getNativeInjectionCode","skipCache"],"sourceRoot":"../../../src","sources":["metro/metro-transformer.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAOA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAEA,MAAMG,MAAM;AACV;AACAH,OAAO,CAACI,qCAAwB,CAA4C;AAEvE,eAAeC,SAASA,CAC7BC,MAA2B,EAC3BC,WAAmB,EACnBC,QAAgB,EAChBC,IAAY,EACZC,OAEC,EAC2B;EAC5B,MAAMC,KAAK,GAAGD,OAAO,CAACE,IAAI,KAAK,OAAO,IAAI,iBAAiB,CAACC,IAAI,CAACL,QAAQ,CAAC;EAE1E,IAAIE,OAAO,CAACI,QAAQ,KAAK,KAAK,IAAI,CAACH,KAAK,EAAE;IACxC,OAAOR,MAAM,CAACE,SAAS,CAACC,MAAM,EAAEC,WAAW,EAAEC,QAAQ,EAAEC,IAAI,EAAEC,OAAO,CAAC;EACvE;EAEA,MAAMK,OAAO,GAAI,MAAMZ,MAAM,CAACE,SAAS,CAACC,MAAM,EAAEC,WAAW,EAAEC,QAAQ,EAAEC,IAAI,EAAE;IAC3E,GAAGC,OAAO;IACVI,QAAQ,EAAE;EACZ,CAAC,CAEA;EAED,MAAME,GAAG,GAAGD,OAAO,CAACE,MAAM,CAAC,CAAC,CAAC,CAACR,IAAI,CAACO,GAAG,CAACE,IAAI,CAACC,QAAQ,CAAC,CAAC;EAEtD,MAAMC,YAAY,GAAG,IAAAC,cAAO,EAACL,GAAG,EAAE;IAChC,GAAGN,OAAO,CAACY,cAAc;IACzBC,QAAQ,EAAEf,QAAQ;IAClBD,WAAW,EAAEA;EACf,CAAC,CAAC,CAACiB,UAAU,CAAC,CAAC;EAEff,IAAI,GAAGgB,MAAM,CAACC,IAAI,CAAC,IAAAC,qCAAsB,EAAC,EAAE,EAAE,CAACP,YAAY,CAAC,CAAC,CAAC;EAE9D,MAAMf,SAAS,GAAG,MAAMF,MAAM,CAACE,SAAS,CACtCC,MAAM,EACNC,WAAW,EACX,GAAGC,QAAQ,KAAK,EAChBC,IAAI,EACJC,OACF,CAAC;;EAED;EACCL,SAAS,CAASY,MAAM,CAAC,CAAC,CAAC,CAACR,IAAI,CAACO,GAAG,GAAG;IACtCY,SAAS,EAAE,IAAI;IACfV,IAAI,EAAE;EACR,CAAC;EAED,OAAOb,SAAS;AAClB","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=override.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["metro/override.ts"],"mappings":"","ignoreList":[]}
@@ -14,32 +14,23 @@ function isFromThisModule(filename) {
14
14
  }
15
15
  function nativeResolver(resolver, context, moduleName, platform) {
16
16
  const resolution = resolver(context, moduleName, platform);
17
- if (
18
- // Don't include our internal files
19
- isFromThisModule(context.originModulePath) ||
20
- // Only operate on source files
21
- resolution.type !== "sourceFile" ||
22
- // Skip the React Native barrel file to prevent infinite recursion
23
- context.originModulePath.endsWith("react-native/index.js") ||
24
- // Skip anything that isn't importing a React Native component
25
- !(moduleName.startsWith("react-native") || moduleName.startsWith("react-native/"))) {
17
+ const isInternal = isFromThisModule(context.originModulePath);
18
+ const isReactNativeIndex = context.originModulePath.endsWith(`${_nodePath.sep}react-native${_nodePath.sep}index.js`);
19
+ if (isInternal || resolution.type !== "sourceFile" || isReactNativeIndex) {
26
20
  return resolution;
27
21
  }
28
22
  if (moduleName === "react-native") {
29
23
  return resolver(context, `react-native-css/components`, platform);
30
- }
31
- if (moduleName === "react-native-safe-area-context") {
24
+ } else if (moduleName === "react-native-safe-area-context") {
32
25
  return resolver(context, `react-native-css/components/react-native-safe-area-context`, platform);
26
+ } else if (resolution.filePath.includes(`${_nodePath.sep}react-native${_nodePath.sep}Libraries${_nodePath.sep}`)) {
27
+ const filename = (0, _nodePath.basename)(resolution.filePath.split(_nodePath.sep).at(-1) ?? "");
28
+ const module = filename.split(".").at(0);
29
+ if (module && _allowedModules.allowedModules.has(module)) {
30
+ return resolver(context, `react-native-css/components/${module}`, platform);
31
+ }
33
32
  }
34
-
35
- // We only care about `react-native/Library/Components/<module>.js` components
36
- const segments = resolution.filePath.split(_nodePath.sep);
37
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
38
- const module = (0, _nodePath.basename)(segments.at(-1)).split(".")[0];
39
- if (!module || !_allowedModules.allowedModules.has(module)) {
40
- return resolution;
41
- }
42
- return resolver(context, `react-native-css/components/${module}`, platform);
33
+ return resolution;
43
34
  }
44
35
  function webResolver(resolver, context, moduleName, platform) {
45
36
  const resolution = resolver(context, moduleName, platform);
@@ -49,7 +40,9 @@ function webResolver(resolver, context, moduleName, platform) {
49
40
  // Only operate on source files
50
41
  resolution.type !== "sourceFile" ||
51
42
  // Skip anything that isn't importing from `react-native-web`
52
- !resolution.filePath.includes(`${_nodePath.sep}react-native-web${_nodePath.sep}`)) {
43
+ !resolution.filePath.includes(`${_nodePath.sep}react-native-web${_nodePath.sep}`) ||
44
+ // Skip internal react-native-web files
45
+ resolution.filePath.includes(`${_nodePath.sep}react-native-web${_nodePath.sep}dist${_nodePath.sep}vendor`)) {
53
46
  return resolution;
54
47
  }
55
48
 
@@ -57,7 +50,7 @@ function webResolver(resolver, context, moduleName, platform) {
57
50
  const segments = resolution.filePath.split(_nodePath.sep);
58
51
  const isIndex = segments.at(-1)?.startsWith("index.");
59
52
  const module = segments.at(-2);
60
- if (!isIndex || !module || !_allowedModules.allowedModules.has(module)) {
53
+ if (!isIndex || !module || !_allowedModules.allowedModules.has(module) || module === "VirtualizedList") {
61
54
  return resolution;
62
55
  }
63
56
  return resolver(context, `react-native-css/components/${module}`, platform);
@@ -1 +1 @@
1
- {"version":3,"names":["_nodePath","require","_allowedModules","thisModuleDist","resolve","__dirname","thisModuleSrc","isFromThisModule","filename","startsWith","nativeResolver","resolver","context","moduleName","platform","resolution","originModulePath","type","endsWith","segments","filePath","split","sep","module","basename","at","allowedModules","has","webResolver","includes","isIndex"],"sourceRoot":"../../../src","sources":["metro/resolver.ts"],"mappings":";;;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAQA,IAAAC,eAAA,GAAAD,OAAA;AAEA,MAAME,cAAc,GAAG,IAAAC,iBAAO,EAACC,SAAS,EAAE,eAAe,CAAC;AAC1D,MAAMC,aAAa,GAAG,IAAAF,iBAAO,EAACC,SAAS,EAAE,cAAc,CAAC;AAExD,SAASE,gBAAgBA,CAACC,QAAgB,EAAW;EACnD,OACEA,QAAQ,CAACC,UAAU,CAACN,cAAc,CAAC,IAAI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BC,QAAuB,EACX;EACZ,MAAMC,UAAU,GAAGJ,QAAQ,CAACC,OAAO,EAAEC,UAAU,EAAEC,QAAQ,CAAC;EAE1D;EACE;EACAP,gBAAgB,CAACK,OAAO,CAACI,gBAAgB,CAAC;EAC1C;EACAD,UAAU,CAACE,IAAI,KAAK,YAAY;EAChC;EACA,CAACF,UAAU,CAACK,QAAQ,CAACS,QAAQ,CAAC,GAAGP,aAAG,mBAAmBA,aAAG,EAAE,CAAC,EAC7D;IACA,OAAOP,UAAU;EACnB;;EAEA;EACA,MAAMI,QAAQ,GAAGJ,UAAU,CAACK,QAAQ,CAACC,KAAK,CAACC,aAAG,CAAC;EAC/C,MAAMQ,OAAO,GAAGX,QAAQ,CAACM,EAAE,CAAC,CAAC,CAAC,CAAC,EAAEhB,UAAU,CAAC,QAAQ,CAAC;EACrD,MAAMc,MAAM,GAAGJ,QAAQ,CAACM,EAAE,CAAC,CAAC,CAAC,CAAC;EAE9B,IAAI,CAACK,OAAO,IAAI,CAACP,MAAM,IAAI,CAACG,8BAAc,CAACC,GAAG,CAACJ,MAAM,CAAC,EAAE;IACtD,OAAOR,UAAU;EACnB;EAEA,OAAOJ,QAAQ,CAACC,OAAO,EAAE,+BAA+BW,MAAM,EAAE,EAAET,QAAQ,CAAC;AAC7E","ignoreList":[]}
1
+ {"version":3,"names":["_nodePath","require","_allowedModules","thisModuleDist","resolve","__dirname","thisModuleSrc","isFromThisModule","filename","startsWith","nativeResolver","resolver","context","moduleName","platform","resolution","isInternal","originModulePath","isReactNativeIndex","endsWith","sep","type","filePath","includes","basename","split","at","module","allowedModules","has","webResolver","segments","isIndex"],"sourceRoot":"../../../src","sources":["metro/resolver.ts"],"mappings":";;;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAQA,IAAAC,eAAA,GAAAD,OAAA;AAEA,MAAME,cAAc,GAAG,IAAAC,iBAAO,EAACC,SAAS,EAAE,eAAe,CAAC;AAC1D,MAAMC,aAAa,GAAG,IAAAF,iBAA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ule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "StyleCollection", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _nativeInternal.StyleCollection;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "VariableContext", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _nativeInternal.VariableContext;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "VariableContextProvider", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _nativeInternal.VariableContextProvider;
22
+ }
23
+ });
24
+ exports.useCssElement = exports.styled = exports.colorScheme = void 0;
25
+ Object.defineProperty(exports, "useNativeCss", {
26
+ enumerable: true,
27
+ get: function () {
28
+ return _useNativeCss.useNativeCss;
29
+ }
30
+ });
31
+ exports.useNativeVariable = useNativeVariable;
32
+ exports.useUnstableNativeVariable = void 0;
33
+ exports.vars = vars;
34
+ var _react = require("react");
35
+ var _reactNative = require("react-native");
36
+ var _nativeInternal = require("react-native-css/native-internal");
37
+ var _useNativeCss = require("./react/useNativeCss.js");
38
+ var _usePassthrough = require("./react/usePassthrough.js");
39
+ var _reactivity = require("./reactivity.js");
40
+ var _resolve = require("./styles/resolve.js");
41
+ /* eslint-disable */
42
+
43
+ const defaultMapping = {
44
+ className: "style"
45
+ };
46
+
47
+ /**
48
+ * Generates a new Higher-Order component the wraps the base component and applies the styles.
49
+ * This is added to the `interopComponents` map so that it can be used in the `wrapJSX` function
50
+ * @param baseComponent
51
+ * @param mapping
52
+ */
53
+ const styled = (baseComponent, mapping = defaultMapping, options) => {
54
+ let component;
55
+ // const type = getComponentType(baseComponent);
56
+
57
+ const configs = (0, _useNativeCss.mappingToConfig)(mapping);
58
+ if (options?.passThrough) {
59
+ component = props => {
60
+ return (0, _usePassthrough.usePassthrough)(baseComponent, props, configs);
61
+ };
62
+ } else {
63
+ component = props => {
64
+ return (0, _useNativeCss.useNativeCss)(baseComponent, props, configs);
65
+ };
66
+ }
67
+ const name = baseComponent.displayName ?? baseComponent.name ?? "unknown";
68
+ component.displayName = `CssInterop.${name}`;
69
+ return component;
70
+ };
71
+ exports.styled = styled;
72
+ const colorScheme = exports.colorScheme = {
73
+ get() {
74
+ return _reactivity.colorScheme.get() ?? _reactNative.Appearance.getColorScheme() ?? "light";
75
+ },
76
+ set(value) {
77
+ return _reactivity.colorScheme.set(value);
78
+ }
79
+ };
80
+ const useUnstableNativeVariable = exports.useUnstableNativeVariable = useNativeVariable;
81
+ const useCssElement = (component, incomingProps, mapping) => {
82
+ const [config] = (0, _react.useState)(() => (0, _useNativeCss.mappingToConfig)(mapping));
83
+ return (0, _useNativeCss.useNativeCss)(component, incomingProps, config);
84
+ };
85
+ exports.useCssElement = useCssElement;
86
+ function useNativeVariable(name) {
87
+ if (name.startsWith("--")) {
88
+ name = name.slice(2);
89
+ }
90
+ const inheritedVariables = (0, _react.useContext)(_nativeInternal.VariableContext);
91
+ const [effect, setState] = (0, _react.useState)(() => {
92
+ const effect = {
93
+ observers: new Set(),
94
+ run: () => setState(state => ({
95
+ ...state
96
+ }))
97
+ };
98
+ const get = observable => observable.get(effect);
99
+ return {
100
+ ...effect,
101
+ get
102
+ };
103
+ });
104
+ return (0, _resolve.resolveValue)([{}, "var", [name]], effect.get, {
105
+ inheritedVariables
106
+ });
107
+ }
108
+
109
+ /**
110
+ * @deprecated Use `<VariableContextProvider />` instead.
111
+ */
112
+ function vars(variables) {
113
+ return Object.assign({
114
+ [_reactivity.VAR_SYMBOL]: "inline"
115
+ }, Object.fromEntries(Object.entries(variables).map(([k, v]) => [k.replace(/^--/, ""), v])));
116
+ }
117
+ //# sourceMappingURL=api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNative","_nativeInternal","_useNativeCss","_usePassthrough","_reactivity","_resolve","defaultMapping","className","styled","baseComponent","mapping","options","component","configs","mappingToConfig","passThrough","props","usePassthrough","useNativeCss","name","displayName","exports","colorScheme","get","colorSchemeObs","Appearance","getColorScheme","set","value","useUnstableNativeVariable","useNativeVariable","useCssElement","incomingProps","config","useState","startsWith","slice","inheritedVariables","useContext","VariableContext","effect","setState","observers","Set","run","state","observable","resolveValue","vars","variables","Object","assign","VAR_SYMBOL","fromEntries","entries","map","k","v","replace"],"sourceRoot":"../../../src","sources":["native/api.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,eAAA,GAAAF,OAAA;AASA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AAMA,IAAAM,QAAA,GAAAN,OAAA;AAtBA;;AAgCA,MAAMO,cAAsE,GAAG;EAC7EC,SAAS,EAAE;AACb,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,MAAM,GAAGA,CAIpBC,aAAgB,EAChBC,OAAU,GAAGJ,cAAmB,EAChCK,OAAuB,KACpB;EACH,IAAIC,SAAc;EAClB;;EAEA,MAAMC,OAAO,GAAG,IAAAC,6BAAe,EAACJ,OAAO,CAAC;EAExC,IAAIC,OAAO,EAAEI,WAAW,EAAE;IACxBH,SAAS,GAAII,KAA0B,IAAK;MAC1C,OAAO,IAAAC,8BAAc,EAACR,aAAa,EAAEO,KAAK,EAAEH,OAAO,CAAC;IACtD,CAAC;EACH,CAAC,MAAM;IACLD,SAAS,GAAII,KAA0B,IAAK;MAC1C,OAAO,IAAAE,0BAAY,EAACT,aAAa,EAAEO,KAAK,EAAEH,OAAO,CAAC;IACpD,CAAC;EACH;EAEA,MAAMM,IAAI,GAAGV,aAAa,CAACW,WAAW,IAAIX,aAAa,CAACU,IAAI,IAAI,SAAS;EACzEP,SAAS,CAACQ,WAAW,GAAG,cAAcD,IAAI,EAAE;EAC5C,OAAOP,SAAS;AAClB,CAAC;AAACS,OAAA,CAAAb,MAAA,GAAAA,MAAA;AAEK,MAAMc,WAAwB,GAAAD,OAAA,CAAAC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AAC,CAAC;EAEF,OAAO,IAAAwB,qBAAY,EAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC5B,IAAI,CAAC,CAAC,EAAEqB,MAAM,CAACjB,GAAG,EAAE;IAAEc;EAAmB,CAAC,CAAC;AAC9E;;AAEA;AACA;AACA;AACO,SAASW,IAAIA,CAACC,SAA0C,EAAE;EAC/D,OAAOC,MAAM,CAACC,MAAM,CAClB;IAAE,CAACC,sBAAU,GAAG;EAAS,CAAC,EAC1BF,MAAM,CAACG,WAAW,CAChBH,MAAM,CAACI,OAAO,CAACL,SAAS,CAAC,CAACM,GAAG,CAAC,CAAC,CAACC,CAAC,EAAEC,CAAC,CAAC,KAAK,CAACD,CAAC,CAACE,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,EAAED,CAAC,CAAC,CACrE,CACF,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.testAttributes = testAttributes;
7
+ function testAttributes(queries, props, guards) {
8
+ return queries.every(query => testAttribute(query, props, guards));
9
+ }
10
+ function testAttribute([type, prop, operator, testValue], props, guards) {
11
+ let value = undefined;
12
+ if (props) {
13
+ if (type === "a") {
14
+ value = props[prop];
15
+ } else {
16
+ const dataSet = props.dataSet;
17
+ value = dataSet?.[prop];
18
+ }
19
+ }
20
+ guards.push([type, prop, value]);
21
+ if (!operator) {
22
+ return value !== undefined && value !== null && value !== false;
23
+ }
24
+ switch (operator) {
25
+ case "!":
26
+ return !value;
27
+ case "=":
28
+ return value == testValue;
29
+ case "~=":
30
+ return testValue && value?.toString().split(" ").includes(testValue);
31
+ case "|=":
32
+ return testValue && value?.toString().startsWith(testValue + "-");
33
+ case "^=":
34
+ return testValue && value?.toString().startsWith(testValue);
35
+ case "$=":
36
+ return testValue && value?.toString().endsWith(testValue);
37
+ case "*=":
38
+ return testValue && value?.toString().includes(testValue);
39
+ default:
40
+ operator;
41
+ return false;
42
+ }
43
+ }
44
+ //# sourceMappingURL=attributes.js.map