react-native-css 0.0.0-nightly.15475e8 → 0.0.0-nightly.251cdfc

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 (416) hide show
  1. package/README.md +5 -5
  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 +4 -1
  5. package/dist/commonjs/compiler/compiler.js.map +1 -1
  6. package/dist/commonjs/compiler/declarations.js +61 -10
  7. package/dist/commonjs/compiler/declarations.js.map +1 -1
  8. package/dist/commonjs/compiler/keyframes.js +1 -1
  9. package/dist/commonjs/compiler/keyframes.js.map +1 -1
  10. package/dist/commonjs/compiler/lightningcss-loader.js +12 -2
  11. package/dist/commonjs/compiler/lightningcss-loader.js.map +1 -1
  12. package/dist/commonjs/compiler/stylesheet.js +5 -7
  13. package/dist/commonjs/compiler/stylesheet.js.map +1 -1
  14. package/dist/commonjs/compiler/supports.js +3 -1
  15. package/dist/commonjs/compiler/supports.js.map +1 -1
  16. package/dist/commonjs/components/ActivityIndicator.js +6 -6
  17. package/dist/commonjs/components/ActivityIndicator.js.map +1 -1
  18. package/dist/commonjs/components/Button.js +6 -6
  19. package/dist/commonjs/components/Button.js.map +1 -1
  20. package/dist/commonjs/components/FlatList.js +10 -9
  21. package/dist/commonjs/components/FlatList.js.map +1 -1
  22. package/dist/commonjs/components/Image.js +6 -6
  23. package/dist/commonjs/components/Image.js.map +1 -1
  24. package/dist/commonjs/components/ImageBackground.js +22 -0
  25. package/dist/commonjs/components/ImageBackground.js.map +1 -0
  26. package/dist/commonjs/components/KeyboardAvoidingView.js +19 -0
  27. package/dist/commonjs/components/KeyboardAvoidingView.js.map +1 -0
  28. package/dist/commonjs/components/Pressable.js +17 -0
  29. package/dist/commonjs/components/Pressable.js.map +1 -0
  30. package/dist/commonjs/components/SafeAreaProvider.js +13 -0
  31. package/dist/commonjs/components/SafeAreaProvider.js.map +1 -0
  32. package/dist/commonjs/components/ScrollView.js +18 -0
  33. package/dist/commonjs/components/ScrollView.js.map +1 -0
  34. package/dist/commonjs/components/Switch.js +6 -6
  35. package/dist/commonjs/components/Switch.js.map +1 -1
  36. package/dist/commonjs/components/Text.js +6 -6
  37. package/dist/commonjs/components/Text.js.map +1 -1
  38. package/dist/commonjs/components/TextInput.js +12 -7
  39. package/dist/commonjs/components/TextInput.js.map +1 -1
  40. package/dist/commonjs/components/TouchableHighlight.js +17 -0
  41. package/dist/commonjs/components/TouchableHighlight.js.map +1 -0
  42. package/dist/commonjs/components/TouchableOpacity.js +17 -0
  43. package/dist/commonjs/components/TouchableOpacity.js.map +1 -0
  44. package/dist/commonjs/components/TouchableWithoutFeedback.js +17 -0
  45. package/dist/commonjs/components/TouchableWithoutFeedback.js.map +1 -0
  46. package/dist/commonjs/components/View.js +6 -6
  47. package/dist/commonjs/components/View.js.map +1 -1
  48. package/dist/commonjs/components/VirtualizedList.js +20 -0
  49. package/dist/commonjs/components/VirtualizedList.js.map +1 -0
  50. package/dist/commonjs/components/copyComponentProperties.js +19 -0
  51. package/dist/commonjs/components/copyComponentProperties.js.map +1 -0
  52. package/dist/commonjs/components/index.cjs +265 -0
  53. package/dist/commonjs/components/index.cjs.map +1 -0
  54. package/dist/commonjs/components/index.js +65 -1
  55. package/dist/commonjs/components/index.js.map +1 -1
  56. package/dist/commonjs/index.js +0 -11
  57. package/dist/commonjs/index.js.map +1 -1
  58. package/dist/commonjs/jest/index.js +1 -1
  59. package/dist/commonjs/jest/index.js.map +1 -1
  60. package/dist/commonjs/metro/index.js +7 -117
  61. package/dist/commonjs/metro/index.js.map +1 -1
  62. package/dist/commonjs/metro/metro-transformer.js +8 -1
  63. package/dist/commonjs/metro/metro-transformer.js.map +1 -1
  64. package/dist/commonjs/{native/metro.js → metro/override.js} +1 -1
  65. package/dist/commonjs/{native/metro.js.map → metro/override.js.map} +1 -1
  66. package/dist/commonjs/metro/resolver.js +15 -22
  67. package/dist/commonjs/metro/resolver.js.map +1 -1
  68. package/dist/commonjs/native/api.js +5 -1
  69. package/dist/commonjs/native/api.js.map +1 -1
  70. package/dist/commonjs/native/index.js +8 -8
  71. package/dist/commonjs/native/index.js.map +1 -1
  72. package/dist/commonjs/native/react/useNativeCss.js +11 -5
  73. package/dist/commonjs/native/react/useNativeCss.js.map +1 -1
  74. package/dist/commonjs/{poison.pill.js → native/react-native-css-metro-override.js} +1 -1
  75. package/dist/commonjs/native/react-native-css-metro-override.js.map +1 -0
  76. package/dist/commonjs/native/styles/calculate-props.js +1 -1
  77. package/dist/commonjs/native/styles/functions/color-mix.js +50 -0
  78. package/dist/commonjs/native/styles/functions/color-mix.js.map +1 -0
  79. package/dist/commonjs/native/styles/functions/index.js +11 -0
  80. package/dist/commonjs/native/styles/functions/index.js.map +1 -1
  81. package/dist/commonjs/native/styles/index.js +247 -19
  82. package/dist/commonjs/native/styles/index.js.map +1 -1
  83. package/dist/commonjs/native/styles/resolve.js +0 -1
  84. package/dist/commonjs/native/styles/resolve.js.map +1 -1
  85. package/dist/commonjs/native/styles/shorthands/animation.js +6 -2
  86. package/dist/commonjs/native/styles/shorthands/animation.js.map +1 -1
  87. package/dist/commonjs/web/api.js +6 -3
  88. package/dist/commonjs/web/api.js.map +1 -1
  89. package/dist/module/compiler/atRules.js +30 -16
  90. package/dist/module/compiler/atRules.js.map +1 -1
  91. package/dist/module/compiler/compiler.js +4 -1
  92. package/dist/module/compiler/compiler.js.map +1 -1
  93. package/dist/module/compiler/declarations.js +60 -10
  94. package/dist/module/compiler/declarations.js.map +1 -1
  95. package/dist/module/compiler/keyframes.js +1 -1
  96. package/dist/module/compiler/keyframes.js.map +1 -1
  97. package/dist/module/compiler/lightningcss-loader.js +12 -2
  98. package/dist/module/compiler/lightningcss-loader.js.map +1 -1
  99. package/dist/module/compiler/stylesheet.js +5 -7
  100. package/dist/module/compiler/stylesheet.js.map +1 -1
  101. package/dist/module/compiler/supports.js +3 -1
  102. package/dist/module/compiler/supports.js.map +1 -1
  103. package/dist/module/components/ActivityIndicator.js +4 -3
  104. package/dist/module/components/ActivityIndicator.js.map +1 -1
  105. package/dist/module/components/Button.js +4 -3
  106. package/dist/module/components/Button.js.map +1 -1
  107. package/dist/module/components/FlatList.js +8 -6
  108. package/dist/module/components/FlatList.js.map +1 -1
  109. package/dist/module/components/Image.js +4 -3
  110. package/dist/module/components/Image.js.map +1 -1
  111. package/dist/module/components/ImageBackground.js +18 -0
  112. package/dist/module/components/ImageBackground.js.map +1 -0
  113. package/dist/module/components/KeyboardAvoidingView.js +15 -0
  114. package/dist/module/components/KeyboardAvoidingView.js.map +1 -0
  115. package/dist/module/components/Pressable.js +13 -0
  116. package/dist/module/components/Pressable.js.map +1 -0
  117. package/dist/module/components/SafeAreaProvider.js +4 -0
  118. package/dist/module/components/SafeAreaProvider.js.map +1 -0
  119. package/dist/module/components/ScrollView.js +14 -0
  120. package/dist/module/components/ScrollView.js.map +1 -0
  121. package/dist/module/components/Switch.js +4 -3
  122. package/dist/module/components/Switch.js.map +1 -1
  123. package/dist/module/components/Text.js +4 -3
  124. package/dist/module/components/Text.js.map +1 -1
  125. package/dist/module/components/TextInput.js +10 -4
  126. package/dist/module/components/TextInput.js.map +1 -1
  127. package/dist/module/components/TouchableHighlight.js +13 -0
  128. package/dist/module/components/TouchableHighlight.js.map +1 -0
  129. package/dist/module/components/TouchableOpacity.js +13 -0
  130. package/dist/module/components/TouchableOpacity.js.map +1 -0
  131. package/dist/module/components/TouchableWithoutFeedback.js +13 -0
  132. package/dist/module/components/TouchableWithoutFeedback.js.map +1 -0
  133. package/dist/module/components/View.js +4 -3
  134. package/dist/module/components/View.js.map +1 -1
  135. package/dist/module/components/VirtualizedList.js +16 -0
  136. package/dist/module/components/VirtualizedList.js.map +1 -0
  137. package/dist/module/components/copyComponentProperties.js +15 -0
  138. package/dist/module/components/copyComponentProperties.js.map +1 -0
  139. package/dist/module/components/index.cjs +265 -0
  140. package/dist/module/components/index.cjs.map +1 -0
  141. package/dist/module/components/index.js +8 -0
  142. package/dist/module/components/index.js.map +1 -1
  143. package/dist/module/index.js +0 -1
  144. package/dist/module/index.js.map +1 -1
  145. package/dist/module/jest/index.js +1 -1
  146. package/dist/module/jest/index.js.map +1 -1
  147. package/dist/module/metro/index.js +7 -116
  148. package/dist/module/metro/index.js.map +1 -1
  149. package/dist/module/metro/metro-transformer.js +8 -1
  150. package/dist/module/metro/metro-transformer.js.map +1 -1
  151. package/dist/module/metro/override.js +4 -0
  152. package/dist/module/{native/metro.js.map → metro/override.js.map} +1 -1
  153. package/dist/module/metro/resolver.js +15 -22
  154. package/dist/module/metro/resolver.js.map +1 -1
  155. package/dist/module/native/api.js +4 -1
  156. package/dist/module/native/api.js.map +1 -1
  157. package/dist/module/native/index.js +1 -1
  158. package/dist/module/native/index.js.map +1 -1
  159. package/dist/module/native/react/useNativeCss.js +11 -5
  160. package/dist/module/native/react/useNativeCss.js.map +1 -1
  161. package/dist/module/{poison.pill.js → native/react-native-css-metro-override.js} +1 -1
  162. package/dist/module/native/react-native-css-metro-override.js.map +1 -0
  163. package/dist/module/native/styles/calculate-props.js +1 -1
  164. package/dist/module/native/styles/functions/color-mix.js +45 -0
  165. package/dist/module/native/styles/functions/color-mix.js.map +1 -0
  166. package/dist/module/native/styles/functions/index.js +1 -0
  167. package/dist/module/native/styles/functions/index.js.map +1 -1
  168. package/dist/module/native/styles/index.js +248 -19
  169. package/dist/module/native/styles/index.js.map +1 -1
  170. package/dist/module/native/styles/resolve.js +0 -1
  171. package/dist/module/native/styles/resolve.js.map +1 -1
  172. package/dist/module/native/styles/shorthands/animation.js +4 -1
  173. package/dist/module/native/styles/shorthands/animation.js.map +1 -1
  174. package/dist/module/web/api.js +6 -3
  175. package/dist/module/web/api.js.map +1 -1
  176. package/dist/typescript/commonjs/.config/eslint.config.d.mts +3 -0
  177. package/dist/typescript/commonjs/.config/eslint.config.d.mts.map +1 -0
  178. package/dist/typescript/commonjs/eslint.config.d.mts +2 -0
  179. package/dist/typescript/commonjs/eslint.config.d.mts.map +1 -0
  180. package/dist/typescript/commonjs/example/app.config.d.ts.map +1 -1
  181. package/dist/typescript/commonjs/example/index.d.ts +2 -0
  182. package/dist/typescript/commonjs/example/index.d.ts.map +1 -0
  183. package/dist/typescript/commonjs/example/metro.config.d.ts +3 -0
  184. package/dist/typescript/commonjs/example/metro.config.d.ts.map +1 -0
  185. package/dist/typescript/commonjs/example/postcss.config.d.mts +7 -0
  186. package/dist/typescript/commonjs/example/postcss.config.d.mts.map +1 -0
  187. package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -1
  188. package/dist/typescript/commonjs/src/compiler/declarations.d.ts +2 -1
  189. package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -1
  190. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts +1 -1
  191. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts.map +1 -1
  192. package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts.map +1 -1
  193. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +2 -1
  194. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -1
  195. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +2 -11
  196. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -1
  197. package/dist/typescript/commonjs/src/components/Button.d.ts +2 -11
  198. package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -1
  199. package/dist/typescript/commonjs/src/components/FlatList.d.ts +4 -8
  200. package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -1
  201. package/dist/typescript/commonjs/src/components/Image.d.ts +2 -6
  202. package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -1
  203. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts +4 -0
  204. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts.map +1 -0
  205. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts +4 -0
  206. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts.map +1 -0
  207. package/dist/typescript/commonjs/src/components/Pressable.d.ts +4 -0
  208. package/dist/typescript/commonjs/src/components/Pressable.d.ts.map +1 -0
  209. package/dist/typescript/commonjs/src/components/SafeAreaProvider.d.ts +2 -0
  210. package/dist/typescript/commonjs/src/components/SafeAreaProvider.d.ts.map +1 -0
  211. package/dist/typescript/commonjs/src/components/ScrollView.d.ts +4 -0
  212. package/dist/typescript/commonjs/src/components/ScrollView.d.ts.map +1 -0
  213. package/dist/typescript/commonjs/src/components/Switch.d.ts +2 -6
  214. package/dist/typescript/commonjs/src/components/Switch.d.ts.map +1 -1
  215. package/dist/typescript/commonjs/src/components/Text.d.ts +2 -6
  216. package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -1
  217. package/dist/typescript/commonjs/src/components/TextInput.d.ts +2 -6
  218. package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -1
  219. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts +4 -0
  220. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts.map +1 -0
  221. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts +4 -0
  222. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts.map +1 -0
  223. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts +4 -0
  224. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
  225. package/dist/typescript/commonjs/src/components/View.d.ts +2 -6
  226. package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -1
  227. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts +6 -0
  228. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts.map +1 -0
  229. package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts +5 -0
  230. package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts.map +1 -0
  231. package/dist/typescript/commonjs/src/components/index.d.cts +2 -0
  232. package/dist/typescript/commonjs/src/components/index.d.cts.map +1 -0
  233. package/dist/typescript/commonjs/src/components/index.d.ts +8 -0
  234. package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -1
  235. package/dist/typescript/commonjs/src/index.d.ts +0 -1
  236. package/dist/typescript/commonjs/src/index.d.ts.map +1 -1
  237. package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -1
  238. package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -1
  239. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -1
  240. package/dist/typescript/commonjs/src/metro/override.d.ts +2 -0
  241. package/dist/typescript/commonjs/src/metro/override.d.ts.map +1 -0
  242. package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -1
  243. package/dist/typescript/commonjs/src/native/api.d.ts +1 -1
  244. package/dist/typescript/commonjs/src/native/api.d.ts.map +1 -1
  245. package/dist/typescript/commonjs/src/native/index.d.ts +1 -1
  246. package/dist/typescript/commonjs/src/native/index.d.ts.map +1 -1
  247. package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts.map +1 -1
  248. package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts +2 -0
  249. package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts.map +1 -0
  250. package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts +3 -0
  251. package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts.map +1 -0
  252. package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts +1 -0
  253. package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts.map +1 -1
  254. package/dist/typescript/commonjs/src/native/styles/index.d.ts.map +1 -1
  255. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts.map +1 -1
  256. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts +1 -0
  257. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts.map +1 -1
  258. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts +1 -1
  259. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts.map +1 -1
  260. package/dist/typescript/commonjs/src/web/api.d.ts +2 -2
  261. package/dist/typescript/commonjs/src/web/api.d.ts.map +1 -1
  262. package/dist/typescript/module/.config/eslint.config.d.mts +3 -0
  263. package/dist/typescript/module/.config/eslint.config.d.mts.map +1 -0
  264. package/dist/typescript/module/eslint.config.d.mts +2 -0
  265. package/dist/typescript/module/eslint.config.d.mts.map +1 -0
  266. package/dist/typescript/module/example/app.config.d.ts.map +1 -1
  267. package/dist/typescript/module/example/index.d.ts +2 -0
  268. package/dist/typescript/module/example/index.d.ts.map +1 -0
  269. package/dist/typescript/module/example/metro.config.d.ts +3 -0
  270. package/dist/typescript/module/example/metro.config.d.ts.map +1 -0
  271. package/dist/typescript/module/example/postcss.config.d.mts +7 -0
  272. package/dist/typescript/module/example/postcss.config.d.mts.map +1 -0
  273. package/dist/typescript/module/example/src/App.d.ts.map +1 -1
  274. package/dist/typescript/module/src/compiler/declarations.d.ts +2 -1
  275. package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -1
  276. package/dist/typescript/module/src/compiler/keyframes.d.ts +1 -1
  277. package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -1
  278. package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts.map +1 -1
  279. package/dist/typescript/module/src/compiler/stylesheet.d.ts +2 -1
  280. package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -1
  281. package/dist/typescript/module/src/components/ActivityIndicator.d.ts +2 -11
  282. package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -1
  283. package/dist/typescript/module/src/components/Button.d.ts +2 -11
  284. package/dist/typescript/module/src/components/Button.d.ts.map +1 -1
  285. package/dist/typescript/module/src/components/FlatList.d.ts +4 -8
  286. package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -1
  287. package/dist/typescript/module/src/components/Image.d.ts +2 -6
  288. package/dist/typescript/module/src/components/Image.d.ts.map +1 -1
  289. package/dist/typescript/module/src/components/ImageBackground.d.ts +4 -0
  290. package/dist/typescript/module/src/components/ImageBackground.d.ts.map +1 -0
  291. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts +4 -0
  292. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts.map +1 -0
  293. package/dist/typescript/module/src/components/Pressable.d.ts +4 -0
  294. package/dist/typescript/module/src/components/Pressable.d.ts.map +1 -0
  295. package/dist/typescript/module/src/components/SafeAreaProvider.d.ts +2 -0
  296. package/dist/typescript/module/src/components/SafeAreaProvider.d.ts.map +1 -0
  297. package/dist/typescript/module/src/components/ScrollView.d.ts +4 -0
  298. package/dist/typescript/module/src/components/ScrollView.d.ts.map +1 -0
  299. package/dist/typescript/module/src/components/Switch.d.ts +2 -6
  300. package/dist/typescript/module/src/components/Switch.d.ts.map +1 -1
  301. package/dist/typescript/module/src/components/Text.d.ts +2 -6
  302. package/dist/typescript/module/src/components/Text.d.ts.map +1 -1
  303. package/dist/typescript/module/src/components/TextInput.d.ts +2 -6
  304. package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -1
  305. package/dist/typescript/module/src/components/TouchableHighlight.d.ts +4 -0
  306. package/dist/typescript/module/src/components/TouchableHighlight.d.ts.map +1 -0
  307. package/dist/typescript/module/src/components/TouchableOpacity.d.ts +4 -0
  308. package/dist/typescript/module/src/components/TouchableOpacity.d.ts.map +1 -0
  309. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts +4 -0
  310. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
  311. package/dist/typescript/module/src/components/View.d.ts +2 -6
  312. package/dist/typescript/module/src/components/View.d.ts.map +1 -1
  313. package/dist/typescript/module/src/components/VirtualizedList.d.ts +6 -0
  314. package/dist/typescript/module/src/components/VirtualizedList.d.ts.map +1 -0
  315. package/dist/typescript/module/src/components/copyComponentProperties.d.ts +5 -0
  316. package/dist/typescript/module/src/components/copyComponentProperties.d.ts.map +1 -0
  317. package/dist/typescript/module/src/components/index.d.cts +2 -0
  318. package/dist/typescript/module/src/components/index.d.cts.map +1 -0
  319. package/dist/typescript/module/src/components/index.d.ts +8 -0
  320. package/dist/typescript/module/src/components/index.d.ts.map +1 -1
  321. package/dist/typescript/module/src/index.d.ts +0 -1
  322. package/dist/typescript/module/src/index.d.ts.map +1 -1
  323. package/dist/typescript/module/src/jest/index.d.ts.map +1 -1
  324. package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
  325. package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -1
  326. package/dist/typescript/module/src/metro/override.d.ts +2 -0
  327. package/dist/typescript/module/src/metro/override.d.ts.map +1 -0
  328. package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -1
  329. package/dist/typescript/module/src/native/api.d.ts +1 -1
  330. package/dist/typescript/module/src/native/api.d.ts.map +1 -1
  331. package/dist/typescript/module/src/native/index.d.ts +1 -1
  332. package/dist/typescript/module/src/native/index.d.ts.map +1 -1
  333. package/dist/typescript/module/src/native/react/useNativeCss.d.ts.map +1 -1
  334. package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts +2 -0
  335. package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts.map +1 -0
  336. package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts +3 -0
  337. package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts.map +1 -0
  338. package/dist/typescript/module/src/native/styles/functions/index.d.ts +1 -0
  339. package/dist/typescript/module/src/native/styles/functions/index.d.ts.map +1 -1
  340. package/dist/typescript/module/src/native/styles/index.d.ts.map +1 -1
  341. package/dist/typescript/module/src/native/styles/resolve.d.ts.map +1 -1
  342. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts +1 -0
  343. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts.map +1 -1
  344. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts +1 -1
  345. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts.map +1 -1
  346. package/dist/typescript/module/src/web/api.d.ts +2 -2
  347. package/dist/typescript/module/src/web/api.d.ts.map +1 -1
  348. package/package.json +31 -18
  349. package/src/compiler/atRules.ts +30 -17
  350. package/src/compiler/compiler.ts +2 -2
  351. package/src/compiler/declarations.ts +106 -10
  352. package/src/compiler/keyframes.ts +2 -2
  353. package/src/compiler/lightningcss-loader.ts +20 -1
  354. package/src/compiler/stylesheet.ts +5 -7
  355. package/src/compiler/supports.ts +2 -0
  356. package/src/components/ActivityIndicator.tsx +11 -8
  357. package/src/components/Button.tsx +11 -6
  358. package/src/components/FlatList.tsx +20 -10
  359. package/src/components/Image.tsx +11 -6
  360. package/src/components/ImageBackground.tsx +30 -0
  361. package/src/components/KeyboardAvoidingView.tsx +27 -0
  362. package/src/components/Pressable.tsx +22 -0
  363. package/src/components/SafeAreaProvider.tsx +1 -0
  364. package/src/components/ScrollView.tsx +23 -0
  365. package/src/components/Switch.tsx +9 -4
  366. package/src/components/Text.tsx +9 -4
  367. package/src/components/TextInput.tsx +17 -7
  368. package/src/components/TouchableHighlight.tsx +25 -0
  369. package/src/components/TouchableOpacity.tsx +25 -0
  370. package/src/components/TouchableWithoutFeedback.tsx +25 -0
  371. package/src/components/View.tsx +9 -4
  372. package/src/components/VirtualizedList.tsx +37 -0
  373. package/src/components/copyComponentProperties.ts +21 -0
  374. package/src/components/index.cts +263 -0
  375. package/src/components/index.ts +17 -0
  376. package/src/index.ts +0 -2
  377. package/src/jest/index.ts +2 -1
  378. package/src/metro/index.ts +7 -165
  379. package/src/metro/metro-transformer.ts +15 -1
  380. package/src/metro/override.ts +1 -0
  381. package/src/metro/resolver.ts +29 -28
  382. package/src/native/api.tsx +6 -2
  383. package/src/native/index.ts +1 -2
  384. package/src/native/react/useNativeCss.ts +13 -6
  385. package/src/native/styles/calculate-props.ts +1 -1
  386. package/src/native/styles/functions/color-mix.ts +68 -0
  387. package/src/native/styles/functions/index.ts +1 -0
  388. package/src/native/styles/index.ts +302 -26
  389. package/src/native/styles/resolve.ts +0 -1
  390. package/src/native/styles/shorthands/animation.ts +10 -2
  391. package/src/utilities/dot-notation.types.ts +10 -3
  392. package/src/web/api.tsx +10 -5
  393. package/types.d.ts +3 -0
  394. package/dist/commonjs/poison.pill.js.map +0 -1
  395. package/dist/commonjs/runtime/native/injection.js +0 -2
  396. package/dist/commonjs/runtime/native/injection.js.map +0 -1
  397. package/dist/module/native/metro.js +0 -5
  398. package/dist/module/poison.pill.js.map +0 -1
  399. package/dist/module/runtime/native/injection.js +0 -2
  400. package/dist/module/runtime/native/injection.js.map +0 -1
  401. package/dist/typescript/commonjs/src/native/metro.d.ts +0 -2
  402. package/dist/typescript/commonjs/src/native/metro.d.ts.map +0 -1
  403. package/dist/typescript/commonjs/src/poison.pill.d.ts +0 -2
  404. package/dist/typescript/commonjs/src/poison.pill.d.ts.map +0 -1
  405. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts +0 -1
  406. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts.map +0 -1
  407. package/dist/typescript/module/src/native/metro.d.ts +0 -2
  408. package/dist/typescript/module/src/native/metro.d.ts.map +0 -1
  409. package/dist/typescript/module/src/poison.pill.d.ts +0 -2
  410. package/dist/typescript/module/src/poison.pill.d.ts.map +0 -1
  411. package/dist/typescript/module/src/runtime/native/injection.d.ts +0 -1
  412. package/dist/typescript/module/src/runtime/native/injection.d.ts.map +0 -1
  413. package/src/components/index.tsx +0 -10
  414. package/src/native/metro.ts +0 -2
  415. package/src/runtime/native/injection.ts +0 -0
  416. /package/src/{poison.pill.ts → native/react-native-css-metro-override.ts} +0 -0
@@ -3,8 +3,16 @@ export { ActivityIndicator } from "./ActivityIndicator";
3
3
  export { Button } from "./Button";
4
4
  export { FlatList } from "./FlatList";
5
5
  export { Image } from "./Image";
6
+ export { ImageBackground } from "./ImageBackground";
7
+ export { KeyboardAvoidingView } from "./KeyboardAvoidingView";
8
+ export { Pressable } from "./Pressable";
9
+ export { ScrollView } from "./ScrollView";
6
10
  export { Switch } from "./Switch";
7
11
  export { Text } from "./Text";
8
12
  export { TextInput } from "./TextInput";
13
+ export { TouchableHighlight } from "./TouchableHighlight";
14
+ export { TouchableOpacity } from "./TouchableOpacity";
15
+ export { TouchableWithoutFeedback } from "./TouchableWithoutFeedback";
9
16
  export { View } from "./View";
17
+ export { VirtualizedList } from "./VirtualizedList";
10
18
  //# sourceMappingURL=index.d.ts.map
@@ -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,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,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,aAAa,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,3 +1,2 @@
1
1
  export * from "./runtime";
2
- export * from "./poison.pill";
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAE1B,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
@@ -1 +1 @@
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;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,7 +10,7 @@ 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
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>;
@@ -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;;;;;GA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,CAAC,CAAC,EAEtC,eAAe,CAAC,EAChB,UAAS,CAAuB,EAChC,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,iBAAiB,CAAC,IAAI,EAAE,MAAM,OAkB7C;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC;;;;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"}
@@ -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,sBAA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CAAC;IACzC,mBAAmB,EAAE,qBAAqB,CAAC;IAE3C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,GAAG,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;;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C;AAEF,wBAAgB,YAAY,CAC1B,KAAK,EAAE,eAAe,EACtB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,mBAAmB,GAC3B,GAAG,CA8FL"}
@@ -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,CA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AAQ,GAChC,KAAK,GACL,GAAG,SAAS,MAAM,GAChB,OAAO,SAAS,CAAC,CAAC,GAAG,CAAC,GACpB,GAAG,GAAG,GAAG,GAAG,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,MAA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,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-css",
3
- "version": "0.0.0-nightly.15475e8",
3
+ "version": "0.0.0-nightly.251cdfc",
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",
@@ -186,47 +197,49 @@
186
197
  "!**/__mocks__"
187
198
  ],
188
199
  "dependencies": {
200
+ "@types/debug": "^4.1.12",
189
201
  "babel-plugin-react-compiler": "^19.1.0-rc.2",
190
202
  "colorjs.io": "0.6.0-alpha.1",
191
203
  "comment-json": "^4.2.5",
192
204
  "debug": "^4.4.1"
193
205
  },
194
206
  "peerDependencies": {
195
- "@expo/metro-config": ">=0.21.8",
196
- "react": "19.1.0",
197
- "react-native": "0.81.1"
207
+ "@expo/metro-config": ">=54",
208
+ "lightningcss": ">=1.27.0",
209
+ "react": ">=19",
210
+ "react-native": ">=0.81"
198
211
  },
199
212
  "devDependencies": {
200
213
  "@babel/core": "^7.28.0",
201
214
  "@commitlint/config-conventional": "^19.8.1",
202
215
  "@eslint/js": "^9.30.1",
203
- "@expo/metro-config": "~0.21.11",
216
+ "@expo/metro-config": "~54.0.5",
204
217
  "@ianvs/prettier-plugin-sort-imports": "^4.4.2",
218
+ "@release-it/conventional-changelog": "10.0.1",
205
219
  "@tailwindcss/postcss": "^4.1.12",
206
220
  "@testing-library/react-native": "^13.3.3",
207
221
  "@tsconfig/react-native": "^3.0.6",
208
222
  "@types/babel__core": "^7",
209
- "@types/debug": "^4.1.12",
210
223
  "@types/jest": "^30.0.0",
211
224
  "@types/react": "^19.1.10",
212
225
  "@types/react-test-renderer": "^19",
213
226
  "babel-plugin-tester": "^12.0.0",
214
- "babel-preset-expo": "~14.0.6",
215
- "commitlint": "^19.8.1",
227
+ "babel-preset-expo": "~54.0.3",
228
+ "commitlint": "^20.0.0",
216
229
  "eas-build-cache-provider": "^16.4.2",
217
230
  "eslint": "^9.30.1",
218
231
  "eslint-config-prettier": "^10.1.5",
219
232
  "eslint-plugin-prettier": "^5.5.1",
220
- "expo": "54.0.0-preview.16",
233
+ "expo": "54.0.10",
221
234
  "jest": "^29.7.0",
222
- "jest-expo": "~54.0.8",
235
+ "jest-expo": "~54.0.12",
223
236
  "lefthook": "^1.12.3",
224
237
  "lightningcss": "^1.30.1",
225
238
  "metro-runtime": "^0.83.0",
226
239
  "postcss": "^8.5.6",
227
240
  "prettier": "^3.6.2",
228
241
  "react": "19.1.0",
229
- "react-native": "0.81.1",
242
+ "react-native": "0.81.4",
230
243
  "react-native-builder-bob": "^0.40.13",
231
244
  "react-native-reanimated": "~4.1.0",
232
245
  "react-native-safe-area-context": "5.6.1",
@@ -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,38 +99,51 @@ 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 {
106
- const [from, to] = splitByDelimiter(token, (item) => {
106
+ let [from, to] = splitByDelimiter(token, (item) => {
107
107
  return item.value.type === "colon";
108
108
  });
109
109
 
110
- if (!from || from.length !== 1) {
111
- return mapping;
110
+ // @nativeMapping <to>; (has no from value)
111
+ if (!to) {
112
+ to = from;
113
+ from = [
114
+ {
115
+ type: "token",
116
+ value: { type: "ident", value: "*" },
117
+ },
118
+ ];
112
119
  }
113
120
 
114
- const fromToken = from[0];
115
- if (!fromToken || fromToken.value.type !== "ident") {
121
+ // We can only map from a single property
122
+ if (!from || from.length !== 1 || !to) {
116
123
  return mapping;
117
124
  }
118
125
 
119
- if (!to) {
120
- mapping["*"] = toRNProperty(fromToken.value.value);
126
+ const fromToken = from[0];
127
+ if (!fromToken || fromToken.value.type !== "ident") {
121
128
  return mapping;
122
129
  }
123
130
 
124
- mapping[toRNProperty(fromToken.value.value)] = to.flatMap((item, index) => {
131
+ let value: string | string[] = to.flatMap((item, index) => {
125
132
  switch (item.value.type) {
126
133
  case "delim":
127
- return index === 0 && item.value.value === "*" ? ["*"] : [];
134
+ return index === 0 && item.value.value === "&" ? ["&"] : [];
128
135
  case "ident":
129
- return [toRNProperty(item.value.value)];
136
+ return item.value.value.split(".").map((part) => toRNProperty(part));
130
137
  default:
131
138
  return [];
132
139
  }
133
140
  });
134
141
 
142
+ if (value.length === 2 && value[0] === "&" && value[1]) {
143
+ value = value[1];
144
+ }
145
+
146
+ mapping[toRNProperty(fromToken.value.value)] = value;
147
+
135
148
  return mapping;
136
149
  }
@@ -212,7 +212,7 @@ function extractRule(
212
212
  const declarationBlock = value.declarations;
213
213
  if (declarationBlock) {
214
214
  if (declarationBlock.declarations?.length) {
215
- builder.newNestedRule();
215
+ builder.newNestedRule({ mapping });
216
216
  for (const declaration of declarationBlock.declarations) {
217
217
  parseDeclaration(declaration, builder);
218
218
  }
@@ -220,7 +220,7 @@ function extractRule(
220
220
  }
221
221
 
222
222
  if (declarationBlock.importantDeclarations?.length) {
223
- builder.newNestedRule({ important: true });
223
+ builder.newNestedRule({ mapping, important: true });
224
224
  for (const declaration of declarationBlock.importantDeclarations) {
225
225
  parseDeclaration(declaration, builder);
226
226
  }
@@ -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
  {},