react-native-css 0.0.0-nightly.99fdf44 → 0.0.0-nightly.9e1cae4

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 (397) hide show
  1. package/README.md +5 -5
  2. package/dist/commonjs/compiler/atRules.js +17 -17
  3. package/dist/commonjs/compiler/atRules.js.map +1 -1
  4. package/dist/commonjs/compiler/declarations.js +61 -10
  5. package/dist/commonjs/compiler/declarations.js.map +1 -1
  6. package/dist/commonjs/compiler/keyframes.js +1 -1
  7. package/dist/commonjs/compiler/keyframes.js.map +1 -1
  8. package/dist/commonjs/compiler/lightningcss-loader.js +12 -2
  9. package/dist/commonjs/compiler/lightningcss-loader.js.map +1 -1
  10. package/dist/commonjs/compiler/stylesheet.js +2 -5
  11. package/dist/commonjs/compiler/stylesheet.js.map +1 -1
  12. package/dist/commonjs/compiler/supports.js +3 -1
  13. package/dist/commonjs/compiler/supports.js.map +1 -1
  14. package/dist/commonjs/components/ActivityIndicator.js +6 -6
  15. package/dist/commonjs/components/ActivityIndicator.js.map +1 -1
  16. package/dist/commonjs/components/Button.js +6 -6
  17. package/dist/commonjs/components/Button.js.map +1 -1
  18. package/dist/commonjs/components/FlatList.js +6 -6
  19. package/dist/commonjs/components/FlatList.js.map +1 -1
  20. package/dist/commonjs/components/Image.js +6 -6
  21. package/dist/commonjs/components/Image.js.map +1 -1
  22. package/dist/commonjs/components/ImageBackground.js +6 -6
  23. package/dist/commonjs/components/ImageBackground.js.map +1 -1
  24. package/dist/commonjs/components/KeyboardAvoidingView.js +6 -6
  25. package/dist/commonjs/components/KeyboardAvoidingView.js.map +1 -1
  26. package/dist/commonjs/components/Pressable.js +6 -6
  27. package/dist/commonjs/components/Pressable.js.map +1 -1
  28. package/dist/commonjs/components/SafeAreaProvider.js +13 -0
  29. package/dist/commonjs/components/SafeAreaProvider.js.map +1 -0
  30. package/dist/commonjs/components/ScrollView.js +6 -6
  31. package/dist/commonjs/components/ScrollView.js.map +1 -1
  32. package/dist/commonjs/components/Switch.js +6 -6
  33. package/dist/commonjs/components/Switch.js.map +1 -1
  34. package/dist/commonjs/components/Text.js +6 -6
  35. package/dist/commonjs/components/Text.js.map +1 -1
  36. package/dist/commonjs/components/TextInput.js +6 -6
  37. package/dist/commonjs/components/TextInput.js.map +1 -1
  38. package/dist/commonjs/components/TouchableHighlight.js +6 -6
  39. package/dist/commonjs/components/TouchableHighlight.js.map +1 -1
  40. package/dist/commonjs/components/TouchableOpacity.js +6 -6
  41. package/dist/commonjs/components/TouchableOpacity.js.map +1 -1
  42. package/dist/commonjs/components/TouchableWithoutFeedback.js +6 -6
  43. package/dist/commonjs/components/TouchableWithoutFeedback.js.map +1 -1
  44. package/dist/commonjs/components/View.js +6 -6
  45. package/dist/commonjs/components/View.js.map +1 -1
  46. package/dist/commonjs/components/VirtualizedList.js +6 -6
  47. package/dist/commonjs/components/VirtualizedList.js.map +1 -1
  48. package/dist/commonjs/components/copyComponentProperties.js +19 -0
  49. package/dist/commonjs/components/copyComponentProperties.js.map +1 -0
  50. package/dist/commonjs/components/index.cjs +265 -0
  51. package/dist/commonjs/components/index.cjs.map +1 -0
  52. package/dist/commonjs/components/index.js.map +1 -1
  53. package/dist/commonjs/jest/index.js +1 -1
  54. package/dist/commonjs/jest/index.js.map +1 -1
  55. package/dist/commonjs/metro/index.js +8 -118
  56. package/dist/commonjs/metro/index.js.map +1 -1
  57. package/dist/commonjs/metro/metro-transformer.js +8 -1
  58. package/dist/commonjs/metro/metro-transformer.js.map +1 -1
  59. package/dist/commonjs/{native/metro.js → metro/override.js} +1 -1
  60. package/dist/commonjs/{native/metro.js.map → metro/override.js.map} +1 -1
  61. package/dist/commonjs/metro/resolver.js +15 -22
  62. package/dist/commonjs/metro/resolver.js.map +1 -1
  63. package/dist/commonjs/native/api.js +5 -1
  64. package/dist/commonjs/native/api.js.map +1 -1
  65. package/dist/commonjs/native/index.js +8 -8
  66. package/dist/commonjs/native/index.js.map +1 -1
  67. package/dist/commonjs/native/react/useNativeCss.js +11 -5
  68. package/dist/commonjs/native/react/useNativeCss.js.map +1 -1
  69. package/dist/commonjs/{poison.pill.js → native/react-native-css-metro-override.js} +1 -1
  70. package/dist/commonjs/native/react-native-css-metro-override.js.map +1 -0
  71. package/dist/commonjs/native/styles/calculate-props.js +1 -1
  72. package/dist/commonjs/native/styles/functions/color-mix.js +50 -0
  73. package/dist/commonjs/native/styles/functions/color-mix.js.map +1 -0
  74. package/dist/commonjs/native/styles/functions/index.js +11 -0
  75. package/dist/commonjs/native/styles/functions/index.js.map +1 -1
  76. package/dist/commonjs/native/styles/index.js +249 -19
  77. package/dist/commonjs/native/styles/index.js.map +1 -1
  78. package/dist/commonjs/native/styles/resolve.js +0 -1
  79. package/dist/commonjs/native/styles/resolve.js.map +1 -1
  80. package/dist/commonjs/native/styles/shorthands/animation.js +6 -2
  81. package/dist/commonjs/native/styles/shorthands/animation.js.map +1 -1
  82. package/dist/commonjs/web/api.js +6 -3
  83. package/dist/commonjs/web/api.js.map +1 -1
  84. package/dist/module/compiler/atRules.js +17 -17
  85. package/dist/module/compiler/atRules.js.map +1 -1
  86. package/dist/module/compiler/declarations.js +60 -10
  87. package/dist/module/compiler/declarations.js.map +1 -1
  88. package/dist/module/compiler/keyframes.js +1 -1
  89. package/dist/module/compiler/keyframes.js.map +1 -1
  90. package/dist/module/compiler/lightningcss-loader.js +12 -2
  91. package/dist/module/compiler/lightningcss-loader.js.map +1 -1
  92. package/dist/module/compiler/stylesheet.js +2 -5
  93. package/dist/module/compiler/stylesheet.js.map +1 -1
  94. package/dist/module/compiler/supports.js +3 -1
  95. package/dist/module/compiler/supports.js.map +1 -1
  96. package/dist/module/components/ActivityIndicator.js +4 -3
  97. package/dist/module/components/ActivityIndicator.js.map +1 -1
  98. package/dist/module/components/Button.js +4 -3
  99. package/dist/module/components/Button.js.map +1 -1
  100. package/dist/module/components/FlatList.js +4 -3
  101. package/dist/module/components/FlatList.js.map +1 -1
  102. package/dist/module/components/Image.js +4 -3
  103. package/dist/module/components/Image.js.map +1 -1
  104. package/dist/module/components/ImageBackground.js +4 -3
  105. package/dist/module/components/ImageBackground.js.map +1 -1
  106. package/dist/module/components/KeyboardAvoidingView.js +4 -3
  107. package/dist/module/components/KeyboardAvoidingView.js.map +1 -1
  108. package/dist/module/components/Pressable.js +4 -3
  109. package/dist/module/components/Pressable.js.map +1 -1
  110. package/dist/module/components/SafeAreaProvider.js +4 -0
  111. package/dist/module/components/SafeAreaProvider.js.map +1 -0
  112. package/dist/module/components/ScrollView.js +4 -3
  113. package/dist/module/components/ScrollView.js.map +1 -1
  114. package/dist/module/components/Switch.js +4 -3
  115. package/dist/module/components/Switch.js.map +1 -1
  116. package/dist/module/components/Text.js +4 -3
  117. package/dist/module/components/Text.js.map +1 -1
  118. package/dist/module/components/TextInput.js +4 -3
  119. package/dist/module/components/TextInput.js.map +1 -1
  120. package/dist/module/components/TouchableHighlight.js +4 -3
  121. package/dist/module/components/TouchableHighlight.js.map +1 -1
  122. package/dist/module/components/TouchableOpacity.js +4 -3
  123. package/dist/module/components/TouchableOpacity.js.map +1 -1
  124. package/dist/module/components/TouchableWithoutFeedback.js +4 -3
  125. package/dist/module/components/TouchableWithoutFeedback.js.map +1 -1
  126. package/dist/module/components/View.js +4 -3
  127. package/dist/module/components/View.js.map +1 -1
  128. package/dist/module/components/VirtualizedList.js +4 -3
  129. package/dist/module/components/VirtualizedList.js.map +1 -1
  130. package/dist/module/components/copyComponentProperties.js +15 -0
  131. package/dist/module/components/copyComponentProperties.js.map +1 -0
  132. package/dist/module/components/index.cjs +265 -0
  133. package/dist/module/components/index.cjs.map +1 -0
  134. package/dist/module/components/index.js.map +1 -1
  135. package/dist/module/jest/index.js +1 -1
  136. package/dist/module/jest/index.js.map +1 -1
  137. package/dist/module/metro/index.js +8 -117
  138. package/dist/module/metro/index.js.map +1 -1
  139. package/dist/module/metro/metro-transformer.js +8 -1
  140. package/dist/module/metro/metro-transformer.js.map +1 -1
  141. package/dist/module/metro/override.js +4 -0
  142. package/dist/module/{native/metro.js.map → metro/override.js.map} +1 -1
  143. package/dist/module/metro/resolver.js +15 -22
  144. package/dist/module/metro/resolver.js.map +1 -1
  145. package/dist/module/native/api.js +4 -1
  146. package/dist/module/native/api.js.map +1 -1
  147. package/dist/module/native/index.js +1 -1
  148. package/dist/module/native/index.js.map +1 -1
  149. package/dist/module/native/react/useNativeCss.js +11 -5
  150. package/dist/module/native/react/useNativeCss.js.map +1 -1
  151. package/dist/module/{poison.pill.js → native/react-native-css-metro-override.js} +1 -1
  152. package/dist/module/native/react-native-css-metro-override.js.map +1 -0
  153. package/dist/module/native/styles/calculate-props.js +1 -1
  154. package/dist/module/native/styles/functions/color-mix.js +45 -0
  155. package/dist/module/native/styles/functions/color-mix.js.map +1 -0
  156. package/dist/module/native/styles/functions/index.js +1 -0
  157. package/dist/module/native/styles/functions/index.js.map +1 -1
  158. package/dist/module/native/styles/index.js +250 -19
  159. package/dist/module/native/styles/index.js.map +1 -1
  160. package/dist/module/native/styles/resolve.js +0 -1
  161. package/dist/module/native/styles/resolve.js.map +1 -1
  162. package/dist/module/native/styles/shorthands/animation.js +4 -1
  163. package/dist/module/native/styles/shorthands/animation.js.map +1 -1
  164. package/dist/module/web/api.js +6 -3
  165. package/dist/module/web/api.js.map +1 -1
  166. package/dist/typescript/commonjs/.config/eslint.config.d.mts +3 -0
  167. package/dist/typescript/commonjs/.config/eslint.config.d.mts.map +1 -0
  168. package/dist/typescript/commonjs/eslint.config.d.mts +2 -0
  169. package/dist/typescript/commonjs/eslint.config.d.mts.map +1 -0
  170. package/dist/typescript/commonjs/example/index.d.ts +2 -0
  171. package/dist/typescript/commonjs/example/index.d.ts.map +1 -0
  172. package/dist/typescript/commonjs/example/metro.config.d.ts +3 -0
  173. package/dist/typescript/commonjs/example/metro.config.d.ts.map +1 -0
  174. package/dist/typescript/commonjs/example/postcss.config.d.mts +7 -0
  175. package/dist/typescript/commonjs/example/postcss.config.d.mts.map +1 -0
  176. package/dist/typescript/commonjs/example/src/App.d.ts +1 -0
  177. package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -1
  178. package/dist/typescript/commonjs/src/compiler/declarations.d.ts +2 -1
  179. package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -1
  180. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts +1 -1
  181. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts.map +1 -1
  182. package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts.map +1 -1
  183. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -1
  184. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +2 -4
  185. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -1
  186. package/dist/typescript/commonjs/src/components/Button.d.ts +2 -4
  187. package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -1
  188. package/dist/typescript/commonjs/src/components/FlatList.d.ts +3 -3
  189. package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -1
  190. package/dist/typescript/commonjs/src/components/Image.d.ts +2 -4
  191. package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -1
  192. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts +2 -4
  193. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts.map +1 -1
  194. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts +2 -4
  195. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts.map +1 -1
  196. package/dist/typescript/commonjs/src/components/Pressable.d.ts +2 -4
  197. package/dist/typescript/commonjs/src/components/Pressable.d.ts.map +1 -1
  198. package/dist/typescript/commonjs/src/components/SafeAreaProvider.d.ts +2 -0
  199. package/dist/typescript/commonjs/src/components/SafeAreaProvider.d.ts.map +1 -0
  200. package/dist/typescript/commonjs/src/components/ScrollView.d.ts +2 -4
  201. package/dist/typescript/commonjs/src/components/ScrollView.d.ts.map +1 -1
  202. package/dist/typescript/commonjs/src/components/Switch.d.ts +2 -6
  203. package/dist/typescript/commonjs/src/components/Switch.d.ts.map +1 -1
  204. package/dist/typescript/commonjs/src/components/Text.d.ts +2 -6
  205. package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -1
  206. package/dist/typescript/commonjs/src/components/TextInput.d.ts +2 -4
  207. package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -1
  208. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts +2 -4
  209. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts.map +1 -1
  210. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts +2 -4
  211. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts.map +1 -1
  212. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts +2 -4
  213. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts.map +1 -1
  214. package/dist/typescript/commonjs/src/components/View.d.ts +2 -6
  215. package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -1
  216. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts +3 -3
  217. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts.map +1 -1
  218. package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts +5 -0
  219. package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts.map +1 -0
  220. package/dist/typescript/commonjs/src/components/index.d.cts +2 -0
  221. package/dist/typescript/commonjs/src/components/index.d.cts.map +1 -0
  222. package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -1
  223. package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -1
  224. package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -1
  225. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -1
  226. package/dist/typescript/commonjs/src/metro/override.d.ts +2 -0
  227. package/dist/typescript/commonjs/src/metro/override.d.ts.map +1 -0
  228. package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -1
  229. package/dist/typescript/commonjs/src/native/api.d.ts +2 -2
  230. package/dist/typescript/commonjs/src/native/api.d.ts.map +1 -1
  231. package/dist/typescript/commonjs/src/native/index.d.ts +1 -1
  232. package/dist/typescript/commonjs/src/native/index.d.ts.map +1 -1
  233. package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts +1 -1
  234. package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts.map +1 -1
  235. package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts +2 -0
  236. package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts.map +1 -0
  237. package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts +3 -0
  238. package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts.map +1 -0
  239. package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts +1 -0
  240. package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts.map +1 -1
  241. package/dist/typescript/commonjs/src/native/styles/index.d.ts.map +1 -1
  242. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts.map +1 -1
  243. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts +1 -0
  244. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts.map +1 -1
  245. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts +1 -1
  246. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts.map +1 -1
  247. package/dist/typescript/commonjs/src/web/api.d.ts +2 -2
  248. package/dist/typescript/commonjs/src/web/api.d.ts.map +1 -1
  249. package/dist/typescript/module/.config/eslint.config.d.mts +3 -0
  250. package/dist/typescript/module/.config/eslint.config.d.mts.map +1 -0
  251. package/dist/typescript/module/eslint.config.d.mts +2 -0
  252. package/dist/typescript/module/eslint.config.d.mts.map +1 -0
  253. package/dist/typescript/module/example/index.d.ts +2 -0
  254. package/dist/typescript/module/example/index.d.ts.map +1 -0
  255. package/dist/typescript/module/example/metro.config.d.ts +3 -0
  256. package/dist/typescript/module/example/metro.config.d.ts.map +1 -0
  257. package/dist/typescript/module/example/postcss.config.d.mts +7 -0
  258. package/dist/typescript/module/example/postcss.config.d.mts.map +1 -0
  259. package/dist/typescript/module/example/src/App.d.ts +1 -0
  260. package/dist/typescript/module/example/src/App.d.ts.map +1 -1
  261. package/dist/typescript/module/src/compiler/declarations.d.ts +2 -1
  262. package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -1
  263. package/dist/typescript/module/src/compiler/keyframes.d.ts +1 -1
  264. package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -1
  265. package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts.map +1 -1
  266. package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -1
  267. package/dist/typescript/module/src/components/ActivityIndicator.d.ts +2 -4
  268. package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -1
  269. package/dist/typescript/module/src/components/Button.d.ts +2 -4
  270. package/dist/typescript/module/src/components/Button.d.ts.map +1 -1
  271. package/dist/typescript/module/src/components/FlatList.d.ts +3 -3
  272. package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -1
  273. package/dist/typescript/module/src/components/Image.d.ts +2 -4
  274. package/dist/typescript/module/src/components/Image.d.ts.map +1 -1
  275. package/dist/typescript/module/src/components/ImageBackground.d.ts +2 -4
  276. package/dist/typescript/module/src/components/ImageBackground.d.ts.map +1 -1
  277. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts +2 -4
  278. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts.map +1 -1
  279. package/dist/typescript/module/src/components/Pressable.d.ts +2 -4
  280. package/dist/typescript/module/src/components/Pressable.d.ts.map +1 -1
  281. package/dist/typescript/module/src/components/SafeAreaProvider.d.ts +2 -0
  282. package/dist/typescript/module/src/components/SafeAreaProvider.d.ts.map +1 -0
  283. package/dist/typescript/module/src/components/ScrollView.d.ts +2 -4
  284. package/dist/typescript/module/src/components/ScrollView.d.ts.map +1 -1
  285. package/dist/typescript/module/src/components/Switch.d.ts +2 -6
  286. package/dist/typescript/module/src/components/Switch.d.ts.map +1 -1
  287. package/dist/typescript/module/src/components/Text.d.ts +2 -6
  288. package/dist/typescript/module/src/components/Text.d.ts.map +1 -1
  289. package/dist/typescript/module/src/components/TextInput.d.ts +2 -4
  290. package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -1
  291. package/dist/typescript/module/src/components/TouchableHighlight.d.ts +2 -4
  292. package/dist/typescript/module/src/components/TouchableHighlight.d.ts.map +1 -1
  293. package/dist/typescript/module/src/components/TouchableOpacity.d.ts +2 -4
  294. package/dist/typescript/module/src/components/TouchableOpacity.d.ts.map +1 -1
  295. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts +2 -4
  296. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts.map +1 -1
  297. package/dist/typescript/module/src/components/View.d.ts +2 -6
  298. package/dist/typescript/module/src/components/View.d.ts.map +1 -1
  299. package/dist/typescript/module/src/components/VirtualizedList.d.ts +3 -3
  300. package/dist/typescript/module/src/components/VirtualizedList.d.ts.map +1 -1
  301. package/dist/typescript/module/src/components/copyComponentProperties.d.ts +5 -0
  302. package/dist/typescript/module/src/components/copyComponentProperties.d.ts.map +1 -0
  303. package/dist/typescript/module/src/components/index.d.cts +2 -0
  304. package/dist/typescript/module/src/components/index.d.cts.map +1 -0
  305. package/dist/typescript/module/src/components/index.d.ts.map +1 -1
  306. package/dist/typescript/module/src/jest/index.d.ts.map +1 -1
  307. package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
  308. package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -1
  309. package/dist/typescript/module/src/metro/override.d.ts +2 -0
  310. package/dist/typescript/module/src/metro/override.d.ts.map +1 -0
  311. package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -1
  312. package/dist/typescript/module/src/native/api.d.ts +2 -2
  313. package/dist/typescript/module/src/native/api.d.ts.map +1 -1
  314. package/dist/typescript/module/src/native/index.d.ts +1 -1
  315. package/dist/typescript/module/src/native/index.d.ts.map +1 -1
  316. package/dist/typescript/module/src/native/react/useNativeCss.d.ts +1 -1
  317. package/dist/typescript/module/src/native/react/useNativeCss.d.ts.map +1 -1
  318. package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts +2 -0
  319. package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts.map +1 -0
  320. package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts +3 -0
  321. package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts.map +1 -0
  322. package/dist/typescript/module/src/native/styles/functions/index.d.ts +1 -0
  323. package/dist/typescript/module/src/native/styles/functions/index.d.ts.map +1 -1
  324. package/dist/typescript/module/src/native/styles/index.d.ts.map +1 -1
  325. package/dist/typescript/module/src/native/styles/resolve.d.ts.map +1 -1
  326. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts +1 -0
  327. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts.map +1 -1
  328. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts +1 -1
  329. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts.map +1 -1
  330. package/dist/typescript/module/src/web/api.d.ts +2 -2
  331. package/dist/typescript/module/src/web/api.d.ts.map +1 -1
  332. package/package.json +26 -14
  333. package/src/compiler/atRules.ts +19 -18
  334. package/src/compiler/declarations.ts +106 -10
  335. package/src/compiler/keyframes.ts +2 -2
  336. package/src/compiler/lightningcss-loader.ts +20 -1
  337. package/src/compiler/stylesheet.ts +3 -5
  338. package/src/compiler/supports.ts +2 -0
  339. package/src/components/ActivityIndicator.tsx +9 -6
  340. package/src/components/Button.tsx +9 -4
  341. package/src/components/FlatList.tsx +14 -5
  342. package/src/components/Image.tsx +9 -4
  343. package/src/components/ImageBackground.tsx +9 -6
  344. package/src/components/KeyboardAvoidingView.tsx +9 -6
  345. package/src/components/Pressable.tsx +9 -4
  346. package/src/components/SafeAreaProvider.tsx +1 -0
  347. package/src/components/ScrollView.tsx +9 -6
  348. package/src/components/Switch.tsx +9 -4
  349. package/src/components/Text.tsx +9 -4
  350. package/src/components/TextInput.tsx +9 -4
  351. package/src/components/TouchableHighlight.tsx +9 -6
  352. package/src/components/TouchableOpacity.tsx +9 -6
  353. package/src/components/TouchableWithoutFeedback.tsx +9 -6
  354. package/src/components/View.tsx +9 -4
  355. package/src/components/VirtualizedList.tsx +18 -6
  356. package/src/components/copyComponentProperties.ts +21 -0
  357. package/src/components/index.cts +263 -0
  358. package/src/components/{index.tsx → index.ts} +0 -1
  359. package/src/jest/index.ts +2 -1
  360. package/src/metro/index.ts +8 -166
  361. package/src/metro/metro-transformer.ts +15 -1
  362. package/src/metro/override.ts +1 -0
  363. package/src/metro/resolver.ts +29 -28
  364. package/src/native/api.tsx +6 -2
  365. package/src/native/index.ts +1 -2
  366. package/src/native/react/useNativeCss.ts +13 -6
  367. package/src/native/styles/calculate-props.ts +1 -1
  368. package/src/native/styles/functions/color-mix.ts +68 -0
  369. package/src/native/styles/functions/index.ts +1 -0
  370. package/src/native/styles/index.ts +302 -26
  371. package/src/native/styles/resolve.ts +0 -1
  372. package/src/native/styles/shorthands/animation.ts +10 -2
  373. package/src/utilities/dot-notation.types.ts +10 -3
  374. package/src/web/api.tsx +10 -5
  375. package/types.d.ts +3 -0
  376. package/dist/commonjs/poison.pill.js.map +0 -1
  377. package/dist/commonjs/runtime/native/injection.js +0 -2
  378. package/dist/commonjs/runtime/native/injection.js.map +0 -1
  379. package/dist/module/native/metro.js +0 -5
  380. package/dist/module/poison.pill.js.map +0 -1
  381. package/dist/module/runtime/native/injection.js +0 -2
  382. package/dist/module/runtime/native/injection.js.map +0 -1
  383. package/dist/typescript/commonjs/src/native/metro.d.ts +0 -2
  384. package/dist/typescript/commonjs/src/native/metro.d.ts.map +0 -1
  385. package/dist/typescript/commonjs/src/poison.pill.d.ts +0 -2
  386. package/dist/typescript/commonjs/src/poison.pill.d.ts.map +0 -1
  387. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts +0 -1
  388. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts.map +0 -1
  389. package/dist/typescript/module/src/native/metro.d.ts +0 -2
  390. package/dist/typescript/module/src/native/metro.d.ts.map +0 -1
  391. package/dist/typescript/module/src/poison.pill.d.ts +0 -2
  392. package/dist/typescript/module/src/poison.pill.d.ts.map +0 -1
  393. package/dist/typescript/module/src/runtime/native/injection.d.ts +0 -1
  394. package/dist/typescript/module/src/runtime/native/injection.d.ts.map +0 -1
  395. package/src/native/metro.ts +0 -2
  396. package/src/runtime/native/injection.ts +0 -0
  397. /package/src/{poison.pill.ts → native/react-native-css-metro-override.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"View.d.ts","sourceRoot":"","sources":["../../../../../src/components/View.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9D,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,yBAAyB,CAAC;AAEjC,QAAA,MAAM,OAAO;;CAEiC,CAAC;AAE/C,wBAAgB,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,SAAS,EAAE,OAAO,OAAO,CAAC,oKAEjE;AAED,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"View.d.ts","sourceRoot":"","sources":["../../../../../src/components/View.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,MAAM,EAAkB,MAAM,cAAc,CAAC;AAc9D,eAAO,MAAM,IAAI,eAKhB,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1,6 +1,6 @@
1
+ import type { ReactNode } from "react";
1
2
  import { VirtualizedList as RNVirtualizedList, type VirtualizedListProps } from "react-native";
2
- import { type StyledConfiguration, type StyledProps } from "../runtime";
3
- declare const mapping: StyledConfiguration<typeof RNVirtualizedList>;
4
- export declare function VirtualizedList<ItemT>(props: StyledProps<VirtualizedListProps<ItemT>, typeof mapping>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
3
+ import { type StyledConfiguration, type StyledProps } from "react-native-css";
4
+ export declare const VirtualizedList: typeof RNVirtualizedList & (<ItemT>(props: StyledProps<VirtualizedListProps<ItemT>, StyledConfiguration<typeof RNVirtualizedList>>) => ReactNode);
5
5
  export default VirtualizedList;
6
6
  //# sourceMappingURL=VirtualizedList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"VirtualizedList.d.ts","sourceRoot":"","sources":["../../../../../src/components/VirtualizedList.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,IAAI,iBAAiB,EACpC,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AAEtB,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,WAAW,EACjB,MAAM,YAAY,CAAC;AAEpB,QAAA,MAAM,OAAO,EAAE,mBAAmB,CAAC,OAAO,iBAAiB,CAK1D,CAAC;AAEF,wBAAgB,eAAe,CAAC,KAAK,EACnC,KAAK,EAAE,WAAW,CAAC,oBAAoB,CAAC,KAAK,CAAC,EAAE,OAAO,OAAO,CAAC,0FAGhE;AAED,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"VirtualizedList.d.ts","sourceRoot":"","sources":["../../../../../src/components/VirtualizedList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EACL,eAAe,IAAI,iBAAiB,EACpC,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AAEtB,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,WAAW,EACjB,MAAM,kBAAkB,CAAC;AAW1B,eAAO,MAAM,eAAe,EAOZ,OAAO,iBAAiB,GACtC,CAAC,CAAC,KAAK,EACL,KAAK,EAAE,WAAW,CAChB,oBAAoB,CAAC,KAAK,CAAC,EAC3B,mBAAmB,CAAC,OAAO,iBAAiB,CAAC,CAC9C,KACE,SAAS,CAAC,CAAC;AAElB,eAAe,eAAe,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { ComponentType } from "react";
2
+ type AnyComponent = ComponentType<any>;
3
+ export declare function copyComponentProperties<T extends AnyComponent>(BaseComponent: T, Component: AnyComponent): T;
4
+ export {};
5
+ //# sourceMappingURL=copyComponentProperties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copyComponentProperties.d.ts","sourceRoot":"","sources":["../../../../../src/components/copyComponentProperties.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,KAAK,YAAY,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;AAEvC,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,YAAY,EAC5D,aAAa,EAAE,CAAC,EAChB,SAAS,EAAE,YAAY,GAYQ,CAAC,CACjC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../../../src/components/index.cts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/index.tsx"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,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","sources":["../../../../../src/jest/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAW,KAAK,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAK1E,OAAO,CAAC,MAAM,CAAC;IAEb,UAAU,IAAI,CAAC;QACb,UAAU,QAAQ,CAAC,CAAC;YAClB,mBAAmB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC;SACzC;KACF;CACF;AAED,eAAO,MAAM,MAAM,qBAAqB,CAAC;AAczC,wBAAgB,WAAW,CACzB,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,eAAe,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO;;;;;;;EAoBpD;AAED,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,MAAM,EACX,EACE,KAAoB,EACpB,GAAG,OAAO,EACX,GAAE,eAAe,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAAO;;;;;;;EAY1D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/jest/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAW,KAAK,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAK1E,OAAO,CAAC,MAAM,CAAC;IAEb,UAAU,IAAI,CAAC;QACb,UAAU,QAAQ,CAAC,CAAC;YAClB,mBAAmB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC;SACzC;KACF;CACF;AAED,eAAO,MAAM,MAAM,qBAAqB,CAAC;AAezC,wBAAgB,WAAW,CACzB,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,eAAe,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO;;;;;;;EAoBpD;AAED,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,MAAM,EACX,EACE,KAAoB,EACpB,GAAG,OAAO,EACX,GAAE,eAAe,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAAO;;;;;;;EAY1D"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/metro/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,EAEL,KAAK,eAAe,EAErB,MAAM,aAAa,CAAC;AAKrB,MAAM,WAAW,yBAA0B,SAAQ,eAAe;IAEhE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,mEAAmE;IACnE,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAID,wBAAgB,kBAAkB,CAChC,CAAC,SAAS,WAAW,GAAG,CAAC,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC,EACpD,MAAM,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,yBAAyB,GAAG,CAAC,CAkNnD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/metro/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAInD,MAAM,WAAW,yBAA0B,SAAQ,eAAe;IAEhE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,mEAAmE;IACnE,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAOD,wBAAgB,kBAAkB,CAChC,CAAC,SAAS,WAAW,GAAG,CAAC,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC,EACpD,MAAM,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,yBAAyB,GAAG,CAAC,CAwDnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"metro-transformer.d.ts","sourceRoot":"","sources":["../../../../../src/metro/metro-transformer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAW,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAO5D,wBAAsB,SAAS,CAC7B,MAAM,EAAE,mBAAmB,EAC3B,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,kBAAkB,GAAG;IAC5B,cAAc,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;CAC9C,GACA,OAAO,CAAC,iBAAiB,CAAC,CAyB5B"}
1
+ {"version":3,"file":"metro-transformer.d.ts","sourceRoot":"","sources":["../../../../../src/metro/metro-transformer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAW,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAO5D,wBAAsB,SAAS,CAC7B,MAAM,EAAE,mBAAmB,EAC3B,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,kBAAkB,GAAG;IAC5B,cAAc,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;CAC9C,GACA,OAAO,CAAC,iBAAiB,CAAC,CAuC5B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=override.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"override.d.ts","sourceRoot":"","sources":["../../../../../src/metro/override.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../../../../src/metro/resolver.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,uBAAuB,EACvB,cAAc,EACd,UAAU,EACX,MAAM,gBAAgB,CAAC;AAaxB,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,uBAAuB,EAChC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GAAG,IAAI,GACtB,UAAU,CAyCZ;AAED,wBAAgB,WAAW,CACzB,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,uBAAuB,EAChC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GAAG,IAAI,GACtB,UAAU,CAwBZ"}
1
+ {"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../../../../src/metro/resolver.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,uBAAuB,EACvB,cAAc,EACd,UAAU,EACX,MAAM,gBAAgB,CAAC;AAaxB,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,uBAAuB,EAChC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GAAG,IAAI,GACtB,UAAU,CAmCZ;AAED,wBAAgB,WAAW,CACzB,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,uBAAuB,EAChC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GAAG,IAAI,GACtB,UAAU,CA+BZ"}
@@ -10,10 +10,10 @@ export { useNativeCss };
10
10
  * @param baseComponent
11
11
  * @param mapping
12
12
  */
13
- export declare const styled: <const C extends ReactComponent<any>, const M extends StyledConfiguration<C>>(baseComponent: C, mapping: M, options?: StyledOptions) => any;
13
+ export declare const styled: <const C extends ReactComponent<any>, const M extends StyledConfiguration<C>>(baseComponent: C, mapping?: M, options?: StyledOptions) => any;
14
14
  export declare const colorScheme: ColorScheme;
15
15
  export declare const useUnstableNativeVariable: typeof useNativeVariable;
16
- export declare const useCssElement: <const C extends ReactComponent<any>, const M extends StyledConfiguration<C>>(component: C, incomingProps: Props, mapping: M) => import("react").FunctionComponentElement<import("react").FragmentProps> | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
16
+ export declare const useCssElement: <const C extends ReactComponent<any>, const M extends StyledConfiguration<C>>(component: C, incomingProps: Props, mapping: M) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").FunctionComponentElement<import("react").FragmentProps>;
17
17
  export declare function useNativeVariable(name: string): any;
18
18
  /**
19
19
  * @deprecated Use `<VariableContextProvider />` instead.
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../src/native/api.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAGjE,OAAO,KAAK,EACV,WAAW,EACX,KAAK,EACL,cAAc,EACd,mBAAmB,EACnB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAmB,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAErE,OAAO,EAEL,UAAU,EAGX,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,eAAe,EACf,eAAe,EACf,uBAAuB,GACxB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,CAAC;AAExB;;;;;GAKG;AACH,eAAO,MAAM,MAAM,GACjB,KAAK,CAAC,CAAC,SAAS,cAAc,CAAC,GAAG,CAAC,EACnC,KAAK,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,CAAC,EAEtC,eAAe,CAAC,EAChB,SAAS,CAAC,EACV,UAAU,aAAa,QAoBxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAOzB,CAAC;AAEF,eAAO,MAAM,yBAAyB,0BAAoB,CAAC;AAE3D,eAAO,MAAM,aAAa,GACxB,KAAK,CAAC,CAAC,SAAS,cAAc,CAAC,GAAG,CAAC,EACnC,KAAK,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,CAAC,EAEtC,WAAW,CAAC,EACZ,eAAe,KAAK,EACpB,SAAS,CAAC,qKAIX,CAAC;AAEF,wBAAgB,i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AC;;;;EAO9D"}
@@ -1,4 +1,4 @@
1
- export * from "./metro";
2
1
  export * from "./api";
3
2
  export type * from "../runtime.types";
3
+ export * from "./react-native-css-metro-override";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/native/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AAExB,cAAc,OAAO,CAAC;AACtB,mBAAmB,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/native/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,mBAAmB,kBAAkB,CAAC;AACtC,cAAc,mCAAmC,CAAC"}
@@ -30,7 +30,7 @@ export type ComponentState = {
30
30
  /**
31
31
  * useNativeCss is the native implementation of the useCssElement hook.
32
32
  */
33
- export declare function useNativeCss(type: ComponentType<any>, originalProps: Record<string, any> | undefined | null, configs?: Config[]): import("react").FunctionComponentElement<import("react").FragmentProps> | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
33
+ export declare function useNativeCss(type: ComponentType<any>, originalProps: Record<string, any> | undefined | null, configs?: Config[]): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").FunctionComponentElement<import("react").FragmentProps>;
34
34
  /**
35
35
  * Convert the styled() mapping to a config array
36
36
  */
@@ -1 +1 @@
1
- {"version":3,"file":"useNativeCss.d.ts","sourceRoot":"","sources":["../../../../../../src/native/react/useNativeCss.ts"],"names":[],"mappings":"AACA,OAAO,EAML,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;AAKf,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAc,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAGL,KAAK,qBAAqB,EAC1B,KAAK,MAAM,EACX,KAAK,MAAM,EACX,KAAK,oBAAoB,EAC1B,MAAM,e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AG,OAAO,CAAC;CACjC,CAAC;AAEF;;GAEG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,aAAa,CAAC,GAAG,CAAC,EACxB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,GAAG,IAAI,EACrD,OAAO,GAAE,MAAM,EAA+C,oKAqG/D;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,mBAAmB,CAAC,GAAG,CAAC,YAuChE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=react-native-css-metro-override.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-native-css-metro-override.d.ts","sourceRoot":"","sources":["../../../../../src/native/react-native-css-metro-override.ts"],"names":[],"mappings":"AAmCA,OAAO,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { StyleFunctionResolver } from "../resolve";
2
+ export declare const colorMix: StyleFunctionResolver;
3
+ //# sourceMappingURL=color-mix.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color-mix.d.ts","sourceRoot":"","sources":["../../../../../../../src/native/styles/functions/color-mix.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAMxD,eAAO,MAAM,QAAQ,EAAE,qBAgDtB,CAAC"}
@@ -5,4 +5,5 @@ export * from "./numeric-functions";
5
5
  export * from "./platform-functions";
6
6
  export * from "./string-functions";
7
7
  export * from "./transform-functions";
8
+ export * from "./color-mix";
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/native/styles/functions/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/native/styles/functions/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/native/styles/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAI3E,OAAO,KAAK,EAAE,cAAc,EAAU,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAQL,KAAK,MAAM,EACX,KAAK,oBAAoB,EAC1B,MAAM,eAAe,CAAC;AAGvB,eAAO,MAAM,YAAY;;;;;;;;;sBAaD,MAAM;;;;CAQ7B,CAAC;AAEF,wBAAgB,cAAc,CAC5B,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,GAAG,IAAI,mCAwE/C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/native/styles/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAI3E,OAAO,KAAK,EAAE,cAAc,EAAU,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAQL,KAAK,MAAM,EACX,KAAK,oBAAoB,EAC1B,MAAM,eAAe,CAAC;AAkJvB,eAAO,MAAM,YAAY;;;;;;;;;sBAaD,MAAM;;;;CAQ7B,CAAC;AAEF,wBAAgB,cAAc,CAC5B,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,MAAM,CA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A8FL"}
@@ -1,4 +1,5 @@
1
1
  import type { StyleFunctionResolver } from "../resolve";
2
2
  export declare const animationShorthand: import("../resolve").StyleResolver;
3
3
  export declare const animation: StyleFunctionResolver;
4
+ export declare const animationName: StyleFunctionResolver;
4
5
  //# sourceMappingURL=animation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../../../../../src/native/styles/shorthands/animation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAgCxD,eAAO,MAAM,kBAAkB,oCAuB9B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,qBA6DvB,CAAC"}
1
+ {"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../../../../../src/native/styles/shorthands/animation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAgCxD,eAAO,MAAM,kBAAkB,oCAuB9B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,qBA2DvB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,qBAQ3B,CAAC"}
@@ -6,7 +6,7 @@ type Primitive = string | number | boolean | bigint | symbol | null | undefined
6
6
  interface RecursiveArray<T> extends Array<T | ReadonlyArray<T> | RecursiveArray<T>> {
7
7
  }
8
8
  export type StyleProp<T> = T | RegisteredStyle<T> | RecursiveArray<T | RegisteredStyle<T> | Falsy> | Falsy;
9
- type UnwrapRecursiveArray<T> = T extends (infer I)[] ? UnwrapRecursiveArray<I> : T;
9
+ type UnwrapRecursiveArray<T, Depth extends unknown[] = [], MaxDepth extends number = 10> = Depth["length"] extends MaxDepth ? T : T extends (infer I)[] ? UnwrapRecursiveArray<I, [...Depth, unknown], MaxDepth> : T;
10
10
  type RemoveFalsy<T> = Exclude<T, Falsy>;
11
11
  type RemoveRegisteredStyle<T> = T extends RegisteredStyle<any> ? never : T;
12
12
  type ExtractStyleObject<T> = RemoveRegisteredStyle<RemoveFalsy<UnwrapRecursiveArray<T extends StyleProp<infer U> ? U : T>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"dot-notation.types.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/dot-notation.types.ts"],"names":[],"mappings":"AAGA,KAAK,KAAK,GAAG,SAAS,GAAG,IAAI,GAAG,KAAK,GAAG,EAAE,CAAC;AAC3C,KAAK,eAAe,CAAC,CAAC,IAAI,MAAM,GAAG;IAAE,sBAAsB,EAAE,CAAC,CAAA;CAAE,CAAC;AAEjE,KAAK,SAAS,GACV,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,IAAI,GACJ,SAAS,GACT,IAAI,GACJ,MAAM,GACN,KAAK,GACL,IAAI,CAAC;AAET,UAAU,cAAc,CAAC,CAAC,CACxB,SAAQ,KAAK,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;CAAG;AAE5D,MAAM,MAAM,SAAS,CAAC,CAAC,IACnB,CAAC,GACD,eAAe,CAAC,CAAC,CAAC,GAClB,cAAc,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,GAC9C,KAAK,CAAC;AAKV,KAAK,oBAAoB,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAChD,oBAAoB,CAAC,CAAC,CAAC,GACvB,CAAC,CAAC;AAGN,KAAK,WAAW,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;AAGxC,KAAK,qBAAqB,CAAC,CAAC,IAAI,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC;AAG3E,KAAK,kBAAkB,CAAC,CAAC,IAAI,qBAAqB,CAChD,WAAW,CAAC,oBAAoB,CAAC,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,G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,IAAI,MAAM,EAAE,GAExB,kBAAkB,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,MAAM,OAAO,GAC3D,OAAO,SAAS,SAAS,GACvB,GAAG,GACH,OAAO,SAAS,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAClC,CAAC,SAAS,SAAS,GACjB,GAAG,GAAG,GAAG,GAAG,UAAU,GAElB,GAAG,GACH,GAAG,GAAG,UAAU,GAChB,GAAG,GAAG,YAAY,WAAW,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC,EAAE,QAAQ,CAAC,EAAE,GACjE,aAAa,CAAC,OAAO,CAAC,SAAS,IAAI,GACjC,GAAG,GAAG,GAAG,GAAG,IAAI,WAAW,CAAC,OAAO,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC,EAAE,QAAQ,CAAC,EAAE,GAC/D,GAAG,GACT,KAAK,GACT,KAAK,CAAC;AAIZ,MAAM,MAAM,cAAc,CAAC,CAAC,EAAE,IAAI,SAAS,MAAM,IAAI,WAAW,CAC9D,CAAC,EACD,SAAS,CAAC,IAAI,CAAC,CAChB,CAAC"}
@@ -1,7 +1,7 @@
1
- import { type ComponentProps, type PropsWithChildren } from "react";
1
+ import { type ComponentPropsWithRef, type PropsWithChildren } from "react";
2
2
  import type { ColorScheme, Props, StyledConfiguration, StyledOptions, StyledProps } from "react-native-css";
3
3
  import type { ReactComponent } from "../runtime.types";
4
- export declare const styled: <const C extends ReactComponent, const M extends StyledConfiguration<C>>(baseComponent: C, mapping: M, _options?: StyledOptions) => (props: StyledProps<ComponentProps<C>, M>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
4
+ export declare const styled: <const C extends ReactComponent, const M extends StyledConfiguration<C>>(baseComponent: C, mapping?: M, _options?: StyledOptions) => (props: StyledProps<ComponentPropsWithRef<C>, M>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
5
5
  export declare const useCssElement: <C extends ReactComponent>(component: C, incomingProps: Props, mapping: StyledConfiguration<C>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
6
6
  export declare const colorScheme: ColorScheme;
7
7
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../src/web/api.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACvB,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EACV,WAAW,EACX,KAAK,EACL,mBAAmB,EACnB,aAAa,EACb,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGvD,eAAO,MAAM,MAAM,GACjB,KAAK,CAAC,CAAC,SAAS,cAAc,EAC9B,KAAK,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,CAAC,EAEtC,eAAe,CAAC,EAChB,SAAS,CAAC,EACV,WAAW,aAAa,MAEhB,OAAO,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,2FAGjD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,cAAc,EACpD,WAAW,CAAC,EACZ,eAAe,KAAK,EACpB,SAAS,mBAAmB,CAAC,CAAC,CAAC,2FA4BhC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAOzB,CAAC;AAEF;;GAEG;AACH,wBAAgB,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,0BAW9D;AAED,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,iBAAiB,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC,KAAK,MAAM,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC,CAAA;CAAE,CAAC,2CAe5E;AAED,eAAO,MAAM,iBAAiB,aAE7B,CAAC;AAEF,eAAO,MAAM,yBAAyB,aAErC,CAAC"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../src/web/api.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAE1B,KAAK,iBAAiB,EACvB,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EACV,WAAW,EACX,KAAK,EACL,mBAAmB,EACnB,aAAa,EACb,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOvD,eAAO,MAAM,MAAM,GACjB,KAAK,CAAC,CAAC,SAAS,cAAc,EAC9B,KAAK,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,CAAC,EAEtC,eAAe,CAAC,EAChB,UAAS,CAAuB,EAChC,WAAW,aAAa,MAEhB,OAAO,WAAW,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,2FAGxD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,cAAc,EACpD,WAAW,CAAC,EACZ,eAAe,KAAK,EACpB,SAAS,mBAAmB,CAAC,CAAC,CAAC,2FA4BhC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAOzB,CAAC;AAEF;;GAEG;AACH,wBAAgB,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,0BAW9D;AAED,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,iBAAiB,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC,KAAK,MAAM,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC,CAAA;CAAE,CAAC,2CAe5E;AAED,eAAO,MAAM,iBAAiB,aAE7B,CAAC;AAEF,eAAO,MAAM,yBAAyB,aAErC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-css",
3
- "version": "0.0.0-nightly.99fdf44",
3
+ "version": "0.0.0-nightly.9e1cae4",
4
4
  "description": "A CSS polyfill for React Native",
5
5
  "exports": {
6
6
  ".": {
@@ -37,19 +37,30 @@
37
37
  }
38
38
  },
39
39
  "./components": {
40
- "source": "./src/components/index.ts",
41
- "react-native": "./src/components/index.tsx",
40
+ "source": "./src/components/index.cts",
42
41
  "import": {
43
- "types": "./dist/typescript/module/src/components/index.d.ts",
44
- "default": "./dist/module/components/index.js"
42
+ "default": "./dist/module/components/index.cjs",
43
+ "types": "./dist/typescript/module/src/components/index.d.ts"
45
44
  },
46
45
  "require": {
47
- "types": "./dist/typescript/commonjs/src/components/index.d.ts",
48
- "default": "./dist/commonjs/components/index.js"
46
+ "default": "./dist/commonjs/components/index.cjs",
47
+ "types": "./dist/typescript/commonjs/src/components/index.d.ts"
48
+ }
49
+ },
50
+ "./components/react-native-safe-area-context": {
51
+ "source": "./src/components/react-native-safe-area-context.native.tsx",
52
+ "react-native": "./src/components/react-native-safe-area-context.native.tsx",
53
+ "import": {
54
+ "types": "./dist/typescript/module/src/components/react-native-safe-area-context.d.ts",
55
+ "default": "./dist/module/components/react-native-safe-area-context.js"
56
+ },
57
+ "require": {
58
+ "types": "./dist/typescript/commonjs/src/components/react-native-safe-area-context.d.ts",
59
+ "default": "./dist/commonjs/components/react-native-safe-area-context.js"
49
60
  }
50
61
  },
51
62
  "./components/*": {
52
- "source": "./src/components/*.ts",
63
+ "source": "./src/components/*.tsx",
53
64
  "react-native": "./src/components/*.tsx",
54
65
  "import": {
55
66
  "types": "./dist/typescript/module/src/components/*.d.ts",
@@ -193,14 +204,15 @@
193
204
  },
194
205
  "peerDependencies": {
195
206
  "@expo/metro-config": ">=54",
196
- "react": "19.1.0",
197
- "react-native": "0.81.1"
207
+ "lightningcss": ">=1.27.0",
208
+ "react": ">=19",
209
+ "react-native": ">=0.81"
198
210
  },
199
211
  "devDependencies": {
200
212
  "@babel/core": "^7.28.0",
201
213
  "@commitlint/config-conventional": "^19.8.1",
202
214
  "@eslint/js": "^9.30.1",
203
- "@expo/metro-config": "~54.0.2",
215
+ "@expo/metro-config": "~54.0.5",
204
216
  "@ianvs/prettier-plugin-sort-imports": "^4.4.2",
205
217
  "@tailwindcss/postcss": "^4.1.12",
206
218
  "@testing-library/react-native": "^13.3.3",
@@ -211,13 +223,13 @@
211
223
  "@types/react": "^19.1.10",
212
224
  "@types/react-test-renderer": "^19",
213
225
  "babel-plugin-tester": "^12.0.0",
214
- "babel-preset-expo": "~54.0.0",
215
- "commitlint": "^19.8.1",
226
+ "babel-preset-expo": "~54.0.3",
227
+ "commitlint": "^20.0.0",
216
228
  "eas-build-cache-provider": "^16.4.2",
217
229
  "eslint": "^9.30.1",
218
230
  "eslint-config-prettier": "^10.1.5",
219
231
  "eslint-plugin-prettier": "^5.5.1",
220
- "expo": "54.0.1",
232
+ "expo": "54.0.10",
221
233
  "jest": "^29.7.0",
222
234
  "jest-expo": "~54.0.12",
223
235
  "lefthook": "^1.12.3",
@@ -47,11 +47,11 @@ export function maybeMutateReactNativeOptions(
47
47
  }
48
48
 
49
49
  /***********************************************
50
- * @prop *
50
+ * @nativeMapping *
51
51
  ***********************************************/
52
52
 
53
- function isPropAtRule(rule: Rule | PropAtRule): rule is PropAtRule {
54
- return rule.type === "unknown" && rule.value.name === "prop";
53
+ function isNativeMappingAtRule(rule: Rule | PropAtRule): rule is PropAtRule {
54
+ return rule.type === "unknown" && rule.value.name === "nativeMapping";
55
55
  }
56
56
 
57
57
  export function parsePropAtRule(rules?: (Rule | PropAtRule)[]) {
@@ -71,14 +71,14 @@ export function parsePropAtRule(rules?: (Rule | PropAtRule)[]) {
71
71
  if (!rules) return mapping;
72
72
 
73
73
  for (const rule of rules) {
74
- if (!isPropAtRule(rule)) continue;
74
+ if (!isNativeMappingAtRule(rule)) continue;
75
75
 
76
76
  if (rule.value.prelude.length > 0) {
77
77
  const prelude = rule.value.prelude.filter((item) => {
78
78
  return item.value.type !== "white-space";
79
79
  });
80
80
 
81
- propAtRuleBlock(prelude, mapping);
81
+ nativeMappingAtRuleBlock(prelude, mapping);
82
82
  } else if (rule.value.block) {
83
83
  // Remove all whitespace tokens
84
84
  const blocks = rule.value.block.filter((item) => {
@@ -91,7 +91,7 @@ export function parsePropAtRule(rules?: (Rule | PropAtRule)[]) {
91
91
  });
92
92
 
93
93
  for (const block of blockRules) {
94
- propAtRuleBlock(block, mapping);
94
+ nativeMappingAtRuleBlock(block, mapping);
95
95
  }
96
96
  }
97
97
  }
@@ -99,7 +99,7 @@ export function parsePropAtRule(rules?: (Rule | PropAtRule)[]) {
99
99
  return mapping;
100
100
  }
101
101
 
102
- function propAtRuleBlock(
102
+ function nativeMappingAtRuleBlock(
103
103
  token: Extract<TokenOrValue, { type: "token" }>[],
104
104
  mapping: StyleRuleMapping = {},
105
105
  ): StyleRuleMapping {
@@ -107,8 +107,8 @@ function propAtRuleBlock(
107
107
  return item.value.type === "colon";
108
108
  });
109
109
 
110
- // @props <to>; (has no from value)
111
- if (!to && from) {
110
+ // @nativeMapping <to>; (has no from value)
111
+ if (!to) {
112
112
  to = from;
113
113
  from = [
114
114
  {
@@ -119,7 +119,7 @@ function propAtRuleBlock(
119
119
  }
120
120
 
121
121
  // We can only map from a single property
122
- if (!from || from.length !== 1) {
122
+ if (!from || from.length !== 1 || !to) {
123
123
  return mapping;
124
124
  }
125
125
 
@@ -128,21 +128,22 @@ function propAtRuleBlock(
128
128
  return mapping;
129
129
  }
130
130
 
131
- if (!to) {
132
- mapping["*"] = toRNProperty(fromToken.value.value);
133
- return mapping;
134
- }
135
-
136
- mapping[toRNProperty(fromToken.value.value)] = to.flatMap((item, index) => {
131
+ let value: string | string[] = to.flatMap((item, index) => {
137
132
  switch (item.value.type) {
138
133
  case "delim":
139
- return index === 0 && item.value.value === "*" ? ["*"] : [];
134
+ return index === 0 && item.value.value === "&" ? ["&"] : [];
140
135
  case "ident":
141
- return [toRNProperty(item.value.value)];
136
+ return item.value.value.split(".").map((part) => toRNProperty(part));
142
137
  default:
143
138
  return [];
144
139
  }
145
140
  });
146
141
 
142
+ if (value.length === 2 && value[0] === "&" && value[1]) {
143
+ value = value[1];
144
+ }
145
+
146
+ mapping[toRNProperty(fromToken.value.value)] = value;
147
+
147
148
  return mapping;
148
149
  }
@@ -1228,6 +1228,8 @@ export function parseUnparsed(
1228
1228
  builder,
1229
1229
  property,
1230
1230
  );
1231
+ case "color-mix":
1232
+ return parseColorMix(tokenOrValue.value.arguments, builder, property);
1231
1233
  default: {
1232
1234
  builder.addWarning("value", `${tokenOrValue.value.name}()`);
1233
1235
  return;
@@ -1984,11 +1986,11 @@ export function parseTextShadow(
1984
1986
  parseColor(textShadow.color, builder),
1985
1987
  );
1986
1988
  builder.addDescriptor(
1987
- "*.textShadowOffset.width",
1989
+ "&.textShadowOffset.width",
1988
1990
  parseLength(textShadow.xOffset, builder),
1989
1991
  );
1990
1992
  builder.addDescriptor(
1991
- "*.textShadowOffset.height",
1993
+ "&.textShadowOffset.height",
1992
1994
  parseLength(textShadow.yOffset, builder),
1993
1995
  );
1994
1996
  builder.addDescriptor(
@@ -2374,27 +2376,27 @@ export function parseBoxShadow(
2374
2376
  ) {
2375
2377
  for (const [index, shadow] of value.entries()) {
2376
2378
  builder.addDescriptor(
2377
- `*.boxShadow.[${index}].color`,
2379
+ `&.boxShadow.[${index}].color`,
2378
2380
  parseColor(shadow.color, builder),
2379
2381
  );
2380
2382
  builder.addDescriptor(
2381
- `*.boxShadow.[${index}].offsetX`,
2383
+ `&.boxShadow.[${index}].offsetX`,
2382
2384
  parseLength(shadow.xOffset, builder),
2383
2385
  );
2384
2386
  builder.addDescriptor(
2385
- `*.boxShadow.[${index}].offsetY`,
2387
+ `&.boxShadow.[${index}].offsetY`,
2386
2388
  parseLength(shadow.yOffset, builder),
2387
2389
  );
2388
2390
  builder.addDescriptor(
2389
- `*.boxShadow.[${index}].blurRadius`,
2391
+ `&.boxShadow.[${index}].blurRadius`,
2390
2392
  parseLength(shadow.blur, builder),
2391
2393
  );
2392
2394
  builder.addDescriptor(
2393
- `*.boxShadow.[${index}].spreadDistance`,
2395
+ `&.boxShadow.[${index}].spreadDistance`,
2394
2396
  parseLength(shadow.spread, builder),
2395
2397
  );
2396
2398
  builder.addDescriptor(
2397
- `*.boxShadow.[${index}].inset`,
2399
+ `&.boxShadow.[${index}].inset`,
2398
2400
  shadow.inset ? true : undefined,
2399
2401
  );
2400
2402
  }
@@ -2633,6 +2635,100 @@ export function parseCalcFn(
2633
2635
  return;
2634
2636
  }
2635
2637
 
2638
+ export function parseColorMix(
2639
+ tokens: TokenOrValue[],
2640
+ builder: StylesheetBuilder,
2641
+ property: string,
2642
+ ): StyleDescriptor {
2643
+ const [inToken, whitespace, colorSpace, comma, ...rest] = tokens;
2644
+ if (
2645
+ typeof inToken !== "object" ||
2646
+ inToken.type !== "token" ||
2647
+ inToken.value.type !== "ident" ||
2648
+ inToken.value.value !== "in"
2649
+ ) {
2650
+ return;
2651
+ }
2652
+
2653
+ if (
2654
+ typeof whitespace !== "object" ||
2655
+ whitespace.type !== "token" ||
2656
+ whitespace.value.type !== "white-space"
2657
+ ) {
2658
+ return;
2659
+ }
2660
+
2661
+ if (
2662
+ typeof comma !== "object" ||
2663
+ comma.type !== "token" ||
2664
+ comma.value.type !== "comma"
2665
+ ) {
2666
+ return;
2667
+ }
2668
+
2669
+ const colorSpaceArg = parseUnparsed(colorSpace, builder, property);
2670
+ if (typeof colorSpaceArg !== "string") {
2671
+ return;
2672
+ }
2673
+
2674
+ let nextToken = rest.shift();
2675
+
2676
+ const leftColorArg = parseUnparsed(nextToken, builder, property);
2677
+
2678
+ if (!leftColorArg) {
2679
+ return;
2680
+ }
2681
+
2682
+ nextToken = rest.shift();
2683
+
2684
+ let leftColorPercentage: StyleDescriptor | undefined;
2685
+ if (nextToken?.type !== "token" || nextToken.value.type !== "comma") {
2686
+ leftColorPercentage = parseUnparsed(nextToken, builder, property);
2687
+ nextToken = rest.shift();
2688
+ }
2689
+
2690
+ if (
2691
+ typeof nextToken !== "object" ||
2692
+ nextToken.type !== "token" ||
2693
+ nextToken.value.type !== "comma"
2694
+ ) {
2695
+ return;
2696
+ }
2697
+
2698
+ nextToken = rest.shift();
2699
+
2700
+ const rightColorArg = parseUnparsed(nextToken, builder, property);
2701
+
2702
+ if (rightColorArg === "transparent") {
2703
+ // Ignore the rest, treat as single color with alpha
2704
+ return [{}, "colorMix", [colorSpaceArg, leftColorArg, leftColorPercentage]];
2705
+ }
2706
+
2707
+ nextToken = rest.shift();
2708
+ let rightColorPercentage: StyleDescriptor | undefined;
2709
+ if (nextToken?.type !== "token" || nextToken.value.type !== "comma") {
2710
+ rightColorPercentage = parseUnparsed(nextToken, builder, property);
2711
+ nextToken = rest.shift();
2712
+ }
2713
+
2714
+ // We should have expired all tokens now
2715
+ if (nextToken) {
2716
+ return;
2717
+ }
2718
+
2719
+ return [
2720
+ {},
2721
+ "colorMix",
2722
+ [
2723
+ colorSpaceArg,
2724
+ leftColorArg,
2725
+ leftColorPercentage,
2726
+ rightColorArg,
2727
+ rightColorPercentage,
2728
+ ],
2729
+ ];
2730
+ }
2731
+
2636
2732
  export function parseCalcArguments(
2637
2733
  [...args]: TokenOrValue[],
2638
2734
  builder: StylesheetBuilder,
@@ -3088,7 +3184,7 @@ function parseObjectFit(
3088
3184
  builder: StylesheetBuilder,
3089
3185
  ) {
3090
3186
  builder.addMapping({
3091
- "object-fit": "contentFit",
3187
+ "object-fit": ["contentFit"],
3092
3188
  });
3093
3189
  builder.addDescriptor(
3094
3190
  "object-fit",
@@ -3101,7 +3197,7 @@ function parseObjectPosition(
3101
3197
  builder: StylesheetBuilder,
3102
3198
  ) {
3103
3199
  builder.addMapping({
3104
- "object-position": "contentPosition",
3200
+ "object-position": ["contentPosition"],
3105
3201
  });
3106
3202
  builder.addDescriptor("object-position", [
3107
3203
  {},
@@ -10,9 +10,9 @@ import type { StylesheetBuilder } from "./stylesheet";
10
10
 
11
11
  export function parseIterationCount(
12
12
  value: AnimationIterationCount[],
13
- ): number[] {
13
+ ): (number | "infinite")[] {
14
14
  return value.map((value) => {
15
- return value.type === "infinite" ? -1 : value.value;
15
+ return value.type === "infinite" ? value.type : value.value;
16
16
  });
17
17
  }
18
18