react-native-css 0.0.0-nightly.99fdf44 → 0.0.0-nightly.a5002c5

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 (711) hide show
  1. package/README.md +5 -5
  2. package/dist/commonjs/babel/import-plugin.js +9 -3
  3. package/dist/commonjs/babel/import-plugin.js.map +1 -1
  4. package/dist/commonjs/babel/react-native-web.js +16 -3
  5. package/dist/commonjs/babel/react-native-web.js.map +1 -1
  6. package/dist/commonjs/babel/react-native.js +7 -2
  7. package/dist/commonjs/babel/react-native.js.map +1 -1
  8. package/dist/commonjs/compiler/atRules.js +52 -17
  9. package/dist/commonjs/compiler/atRules.js.map +1 -1
  10. package/dist/commonjs/compiler/compiler.js +92 -31
  11. package/dist/commonjs/compiler/compiler.js.map +1 -1
  12. package/dist/commonjs/compiler/container-query.js +6 -1
  13. package/dist/commonjs/compiler/container-query.js.map +1 -1
  14. package/dist/commonjs/compiler/declarations.js +158 -66
  15. package/dist/commonjs/compiler/declarations.js.map +1 -1
  16. package/dist/commonjs/compiler/keyframes.js +1 -1
  17. package/dist/commonjs/compiler/keyframes.js.map +1 -1
  18. package/dist/commonjs/compiler/lightningcss-loader.js +15 -2
  19. package/dist/commonjs/compiler/lightningcss-loader.js.map +1 -1
  20. package/dist/commonjs/compiler/media-query.js +16 -6
  21. package/dist/commonjs/compiler/media-query.js.map +1 -1
  22. package/dist/commonjs/compiler/selector-builder.js +13 -3
  23. package/dist/commonjs/compiler/selector-builder.js.map +1 -1
  24. package/dist/commonjs/compiler/stylesheet.js +7 -5
  25. package/dist/commonjs/compiler/stylesheet.js.map +1 -1
  26. package/dist/commonjs/compiler/supports.js +2 -2
  27. package/dist/commonjs/compiler/supports.js.map +1 -1
  28. package/dist/commonjs/components/ActivityIndicator.js +6 -6
  29. package/dist/commonjs/components/ActivityIndicator.js.map +1 -1
  30. package/dist/commonjs/components/Button.js +6 -6
  31. package/dist/commonjs/components/Button.js.map +1 -1
  32. package/dist/commonjs/components/FlatList.js +7 -6
  33. package/dist/commonjs/components/FlatList.js.map +1 -1
  34. package/dist/commonjs/components/Image.js +6 -6
  35. package/dist/commonjs/components/Image.js.map +1 -1
  36. package/dist/commonjs/components/ImageBackground.js +8 -12
  37. package/dist/commonjs/components/ImageBackground.js.map +1 -1
  38. package/dist/commonjs/components/KeyboardAvoidingView.js +8 -9
  39. package/dist/commonjs/components/KeyboardAvoidingView.js.map +1 -1
  40. package/dist/commonjs/components/Pressable.js +6 -6
  41. package/dist/commonjs/components/Pressable.js.map +1 -1
  42. package/dist/commonjs/components/SafeAreaProvider.js +13 -0
  43. package/dist/commonjs/components/SafeAreaProvider.js.map +1 -0
  44. package/dist/commonjs/components/ScrollView.js +6 -6
  45. package/dist/commonjs/components/ScrollView.js.map +1 -1
  46. package/dist/commonjs/components/Switch.js +6 -6
  47. package/dist/commonjs/components/Switch.js.map +1 -1
  48. package/dist/commonjs/components/Text.js +6 -6
  49. package/dist/commonjs/components/Text.js.map +1 -1
  50. package/dist/commonjs/components/TextInput.js +6 -6
  51. package/dist/commonjs/components/TextInput.js.map +1 -1
  52. package/dist/commonjs/components/TouchableHighlight.js +6 -6
  53. package/dist/commonjs/components/TouchableHighlight.js.map +1 -1
  54. package/dist/commonjs/components/TouchableOpacity.js +6 -6
  55. package/dist/commonjs/components/TouchableOpacity.js.map +1 -1
  56. package/dist/commonjs/components/TouchableWithoutFeedback.js +6 -6
  57. package/dist/commonjs/components/TouchableWithoutFeedback.js.map +1 -1
  58. package/dist/commonjs/components/View.js +6 -6
  59. package/dist/commonjs/components/View.js.map +1 -1
  60. package/dist/commonjs/components/VirtualizedList.js +6 -6
  61. package/dist/commonjs/components/VirtualizedList.js.map +1 -1
  62. package/dist/commonjs/components/copyComponentProperties.js +19 -0
  63. package/dist/commonjs/components/copyComponentProperties.js.map +1 -0
  64. package/dist/commonjs/components/index.cjs +310 -0
  65. package/dist/commonjs/components/index.cjs.map +1 -0
  66. package/dist/commonjs/components/index.js.map +1 -1
  67. package/dist/commonjs/jest/index.js +2 -2
  68. package/dist/commonjs/jest/index.js.map +1 -1
  69. package/dist/commonjs/metro/cache-version.js +43 -0
  70. package/dist/commonjs/metro/cache-version.js.map +1 -0
  71. package/dist/commonjs/metro/index.js +10 -118
  72. package/dist/commonjs/metro/index.js.map +1 -1
  73. package/dist/commonjs/metro/metro-transformer.js +9 -2
  74. package/dist/commonjs/metro/metro-transformer.js.map +1 -1
  75. package/dist/commonjs/{native/metro.js → metro/override.js} +1 -1
  76. package/dist/commonjs/{native/metro.js.map → metro/override.js.map} +1 -1
  77. package/dist/commonjs/metro/resolver.js +15 -22
  78. package/dist/commonjs/metro/resolver.js.map +1 -1
  79. package/dist/commonjs/metro/typescript.js +26 -6
  80. package/dist/commonjs/metro/typescript.js.map +1 -1
  81. package/dist/commonjs/native/api.js +17 -9
  82. package/dist/commonjs/native/api.js.map +1 -1
  83. package/dist/commonjs/native/conditions/attributes.js +16 -9
  84. package/dist/commonjs/native/conditions/attributes.js.map +1 -1
  85. package/dist/commonjs/native/conditions/container-query.js +11 -11
  86. package/dist/commonjs/native/conditions/container-query.js.map +1 -1
  87. package/dist/commonjs/native/conditions/media-query.js +1 -1
  88. package/dist/commonjs/native/conditions/media-query.js.map +1 -1
  89. package/dist/commonjs/native/index.js +8 -8
  90. package/dist/commonjs/native/index.js.map +1 -1
  91. package/dist/commonjs/native/react/interaction.js +10 -5
  92. package/dist/commonjs/native/react/interaction.js.map +1 -1
  93. package/dist/commonjs/native/react/rules.js +12 -5
  94. package/dist/commonjs/native/react/rules.js.map +1 -1
  95. package/dist/commonjs/native/react/useNativeCss.js +58 -16
  96. package/dist/commonjs/native/react/useNativeCss.js.map +1 -1
  97. package/dist/commonjs/native/react/usePassthrough.js +5 -2
  98. package/dist/commonjs/native/react/usePassthrough.js.map +1 -1
  99. package/dist/commonjs/{poison.pill.js → native/react-native-css-metro-override.js} +1 -1
  100. package/dist/commonjs/native/react-native-css-metro-override.js.map +1 -0
  101. package/dist/commonjs/native/reactivity.js +32 -22
  102. package/dist/commonjs/native/reactivity.js.map +1 -1
  103. package/dist/commonjs/native/reanimated.js +15 -3
  104. package/dist/commonjs/native/reanimated.js.map +1 -1
  105. package/dist/commonjs/native/styles/calculate-props.js +1 -1
  106. package/dist/commonjs/native/styles/functions/color-mix.js +64 -0
  107. package/dist/commonjs/native/styles/functions/color-mix.js.map +1 -0
  108. package/dist/commonjs/native/styles/functions/filters.js +18 -5
  109. package/dist/commonjs/native/styles/functions/filters.js.map +1 -1
  110. package/dist/commonjs/native/styles/functions/index.js +11 -0
  111. package/dist/commonjs/native/styles/functions/index.js.map +1 -1
  112. package/dist/commonjs/native/styles/functions/numeric-functions.js +4 -3
  113. package/dist/commonjs/native/styles/functions/numeric-functions.js.map +1 -1
  114. package/dist/commonjs/native/styles/functions/string-functions.js +16 -1
  115. package/dist/commonjs/native/styles/functions/string-functions.js.map +1 -1
  116. package/dist/commonjs/native/styles/functions/transform-functions.js +5 -4
  117. package/dist/commonjs/native/styles/functions/transform-functions.js.map +1 -1
  118. package/dist/commonjs/native/styles/index.js +382 -28
  119. package/dist/commonjs/native/styles/index.js.map +1 -1
  120. package/dist/commonjs/native/styles/resolve.js +10 -7
  121. package/dist/commonjs/native/styles/resolve.js.map +1 -1
  122. package/dist/commonjs/native/styles/scale-factor.js +13 -0
  123. package/dist/commonjs/native/styles/scale-factor.js.map +1 -0
  124. package/dist/commonjs/native/styles/shorthands/_handler.js +10 -0
  125. package/dist/commonjs/native/styles/shorthands/_handler.js.map +1 -1
  126. package/dist/commonjs/native/styles/shorthands/animation.js +11 -4
  127. package/dist/commonjs/native/styles/shorthands/animation.js.map +1 -1
  128. package/dist/commonjs/native/styles/shorthands/box-shadow.js +45 -12
  129. package/dist/commonjs/native/styles/shorthands/box-shadow.js.map +1 -1
  130. package/dist/commonjs/native/styles/shorthands/index.js +11 -0
  131. package/dist/commonjs/native/styles/shorthands/index.js.map +1 -1
  132. package/dist/commonjs/native/styles/shorthands/logical-border-width.js +22 -0
  133. package/dist/commonjs/native/styles/shorthands/logical-border-width.js.map +1 -0
  134. package/dist/commonjs/native/styles/variables.js +55 -43
  135. package/dist/commonjs/native/styles/variables.js.map +1 -1
  136. package/dist/commonjs/native-internal/style-collection.js +1 -1
  137. package/dist/commonjs/native-internal/style-collection.js.map +1 -1
  138. package/dist/commonjs/utilities/dot-notation.types.js +4 -0
  139. package/dist/commonjs/utilities/style-descriptor.js +4 -9
  140. package/dist/commonjs/utilities/style-descriptor.js.map +1 -1
  141. package/dist/commonjs/web/api.js +7 -4
  142. package/dist/commonjs/web/api.js.map +1 -1
  143. package/dist/commonjs/web/assign-style.js +4 -1
  144. package/dist/commonjs/web/assign-style.js.map +1 -1
  145. package/dist/module/babel/import-plugin.js +11 -5
  146. package/dist/module/babel/import-plugin.js.map +1 -1
  147. package/dist/module/babel/react-native-web.js +16 -4
  148. package/dist/module/babel/react-native-web.js.map +1 -1
  149. package/dist/module/babel/react-native.js +7 -2
  150. package/dist/module/babel/react-native.js.map +1 -1
  151. package/dist/module/compiler/atRules.js +50 -17
  152. package/dist/module/compiler/atRules.js.map +1 -1
  153. package/dist/module/compiler/compiler.js +94 -33
  154. package/dist/module/compiler/compiler.js.map +1 -1
  155. package/dist/module/compiler/container-query.js +6 -1
  156. package/dist/module/compiler/container-query.js.map +1 -1
  157. package/dist/module/compiler/declarations.js +157 -66
  158. package/dist/module/compiler/declarations.js.map +1 -1
  159. package/dist/module/compiler/keyframes.js +1 -1
  160. package/dist/module/compiler/keyframes.js.map +1 -1
  161. package/dist/module/compiler/lightningcss-loader.js +14 -2
  162. package/dist/module/compiler/lightningcss-loader.js.map +1 -1
  163. package/dist/module/compiler/media-query.js +16 -6
  164. package/dist/module/compiler/media-query.js.map +1 -1
  165. package/dist/module/compiler/selector-builder.js +13 -3
  166. package/dist/module/compiler/selector-builder.js.map +1 -1
  167. package/dist/module/compiler/stylesheet.js +7 -5
  168. package/dist/module/compiler/stylesheet.js.map +1 -1
  169. package/dist/module/compiler/supports.js +2 -2
  170. package/dist/module/compiler/supports.js.map +1 -1
  171. package/dist/module/components/ActivityIndicator.js +4 -3
  172. package/dist/module/components/ActivityIndicator.js.map +1 -1
  173. package/dist/module/components/Button.js +4 -3
  174. package/dist/module/components/Button.js.map +1 -1
  175. package/dist/module/components/FlatList.js +5 -3
  176. package/dist/module/components/FlatList.js.map +1 -1
  177. package/dist/module/components/Image.js +4 -3
  178. package/dist/module/components/Image.js.map +1 -1
  179. package/dist/module/components/ImageBackground.js +6 -9
  180. package/dist/module/components/ImageBackground.js.map +1 -1
  181. package/dist/module/components/KeyboardAvoidingView.js +6 -6
  182. package/dist/module/components/KeyboardAvoidingView.js.map +1 -1
  183. package/dist/module/components/Pressable.js +4 -3
  184. package/dist/module/components/Pressable.js.map +1 -1
  185. package/dist/module/components/SafeAreaProvider.js +4 -0
  186. package/dist/module/components/SafeAreaProvider.js.map +1 -0
  187. package/dist/module/components/ScrollView.js +4 -3
  188. package/dist/module/components/ScrollView.js.map +1 -1
  189. package/dist/module/components/Switch.js +4 -3
  190. package/dist/module/components/Switch.js.map +1 -1
  191. package/dist/module/components/Text.js +4 -3
  192. package/dist/module/components/Text.js.map +1 -1
  193. package/dist/module/components/TextInput.js +4 -3
  194. package/dist/module/components/TextInput.js.map +1 -1
  195. package/dist/module/components/TouchableHighlight.js +4 -3
  196. package/dist/module/components/TouchableHighlight.js.map +1 -1
  197. package/dist/module/components/TouchableOpacity.js +4 -3
  198. package/dist/module/components/TouchableOpacity.js.map +1 -1
  199. package/dist/module/components/TouchableWithoutFeedback.js +4 -3
  200. package/dist/module/components/TouchableWithoutFeedback.js.map +1 -1
  201. package/dist/module/components/View.js +4 -3
  202. package/dist/module/components/View.js.map +1 -1
  203. package/dist/module/components/VirtualizedList.js +4 -3
  204. package/dist/module/components/VirtualizedList.js.map +1 -1
  205. package/dist/module/components/copyComponentProperties.js +15 -0
  206. package/dist/module/components/copyComponentProperties.js.map +1 -0
  207. package/dist/module/components/index.cjs +310 -0
  208. package/dist/module/components/index.cjs.map +1 -0
  209. package/dist/module/components/index.js.map +1 -1
  210. package/dist/module/jest/index.js +2 -2
  211. package/dist/module/jest/index.js.map +1 -1
  212. package/dist/module/metro/cache-version.js +39 -0
  213. package/dist/module/metro/cache-version.js.map +1 -0
  214. package/dist/module/metro/index.js +10 -117
  215. package/dist/module/metro/index.js.map +1 -1
  216. package/dist/module/metro/metro-transformer.js +9 -2
  217. package/dist/module/metro/metro-transformer.js.map +1 -1
  218. package/dist/module/metro/override.js +4 -0
  219. package/dist/module/{native/metro.js.map → metro/override.js.map} +1 -1
  220. package/dist/module/metro/resolver.js +15 -22
  221. package/dist/module/metro/resolver.js.map +1 -1
  222. package/dist/module/metro/typescript.js +26 -6
  223. package/dist/module/metro/typescript.js.map +1 -1
  224. package/dist/module/native/api.js +18 -11
  225. package/dist/module/native/api.js.map +1 -1
  226. package/dist/module/native/conditions/attributes.js +16 -9
  227. package/dist/module/native/conditions/attributes.js.map +1 -1
  228. package/dist/module/native/conditions/container-query.js +11 -11
  229. package/dist/module/native/conditions/container-query.js.map +1 -1
  230. package/dist/module/native/conditions/media-query.js +1 -1
  231. package/dist/module/native/conditions/media-query.js.map +1 -1
  232. package/dist/module/native/index.js +1 -1
  233. package/dist/module/native/index.js.map +1 -1
  234. package/dist/module/native/react/interaction.js +10 -5
  235. package/dist/module/native/react/interaction.js.map +1 -1
  236. package/dist/module/native/react/rules.js +13 -6
  237. package/dist/module/native/react/rules.js.map +1 -1
  238. package/dist/module/native/react/useNativeCss.js +59 -17
  239. package/dist/module/native/react/useNativeCss.js.map +1 -1
  240. package/dist/module/native/react/usePassthrough.js +5 -2
  241. package/dist/module/native/react/usePassthrough.js.map +1 -1
  242. package/dist/module/{poison.pill.js → native/react-native-css-metro-override.js} +1 -1
  243. package/dist/module/native/react-native-css-metro-override.js.map +1 -0
  244. package/dist/module/native/reactivity.js +32 -22
  245. package/dist/module/native/reactivity.js.map +1 -1
  246. package/dist/module/native/reanimated.js +15 -3
  247. package/dist/module/native/reanimated.js.map +1 -1
  248. package/dist/module/native/styles/calculate-props.js +1 -1
  249. package/dist/module/native/styles/functions/color-mix.js +59 -0
  250. package/dist/module/native/styles/functions/color-mix.js.map +1 -0
  251. package/dist/module/native/styles/functions/filters.js +16 -4
  252. package/dist/module/native/styles/functions/filters.js.map +1 -1
  253. package/dist/module/native/styles/functions/index.js +1 -0
  254. package/dist/module/native/styles/functions/index.js.map +1 -1
  255. package/dist/module/native/styles/functions/numeric-functions.js +4 -3
  256. package/dist/module/native/styles/functions/numeric-functions.js.map +1 -1
  257. package/dist/module/native/styles/functions/string-functions.js +13 -0
  258. package/dist/module/native/styles/functions/string-functions.js.map +1 -1
  259. package/dist/module/native/styles/functions/transform-functions.js +5 -4
  260. package/dist/module/native/styles/functions/transform-functions.js.map +1 -1
  261. package/dist/module/native/styles/index.js +383 -28
  262. package/dist/module/native/styles/index.js.map +1 -1
  263. package/dist/module/native/styles/resolve.js +10 -7
  264. package/dist/module/native/styles/resolve.js.map +1 -1
  265. package/dist/module/native/styles/scale-factor.js +9 -0
  266. package/dist/module/native/styles/scale-factor.js.map +1 -0
  267. package/dist/module/native/styles/shorthands/_handler.js +11 -1
  268. package/dist/module/native/styles/shorthands/_handler.js.map +1 -1
  269. package/dist/module/native/styles/shorthands/animation.js +9 -3
  270. package/dist/module/native/styles/shorthands/animation.js.map +1 -1
  271. package/dist/module/native/styles/shorthands/box-shadow.js +46 -12
  272. package/dist/module/native/styles/shorthands/box-shadow.js.map +1 -1
  273. package/dist/module/native/styles/shorthands/index.js +1 -0
  274. package/dist/module/native/styles/shorthands/index.js.map +1 -1
  275. package/dist/module/native/styles/shorthands/logical-border-width.js +18 -0
  276. package/dist/module/native/styles/shorthands/logical-border-width.js.map +1 -0
  277. package/dist/module/native/styles/variables.js +55 -43
  278. package/dist/module/native/styles/variables.js.map +1 -1
  279. package/dist/module/native-internal/style-collection.js +1 -1
  280. package/dist/module/native-internal/style-collection.js.map +1 -1
  281. package/dist/module/utilities/dot-notation.types.js +2 -0
  282. package/dist/module/utilities/style-descriptor.js +4 -9
  283. package/dist/module/utilities/style-descriptor.js.map +1 -1
  284. package/dist/module/web/api.js +7 -4
  285. package/dist/module/web/api.js.map +1 -1
  286. package/dist/module/web/assign-style.js +4 -1
  287. package/dist/module/web/assign-style.js.map +1 -1
  288. package/dist/typescript/commonjs/src/babel/import-plugin.d.ts.map +1 -1
  289. package/dist/typescript/commonjs/src/babel/react-native-web.d.ts +2 -1
  290. package/dist/typescript/commonjs/src/babel/react-native-web.d.ts.map +1 -1
  291. package/dist/typescript/commonjs/src/babel/react-native.d.ts.map +1 -1
  292. package/dist/typescript/commonjs/src/compiler/atRules.d.ts +4 -1
  293. package/dist/typescript/commonjs/src/compiler/atRules.d.ts.map +1 -1
  294. package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -1
  295. package/dist/typescript/commonjs/src/compiler/declarations.d.ts +2 -1
  296. package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -1
  297. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts +1 -1
  298. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts.map +1 -1
  299. package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts.map +1 -1
  300. package/dist/typescript/commonjs/src/compiler/media-query.d.ts +1 -1
  301. package/dist/typescript/commonjs/src/compiler/media-query.d.ts.map +1 -1
  302. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -1
  303. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +1 -0
  304. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -1
  305. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +2 -4
  306. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -1
  307. package/dist/typescript/commonjs/src/components/Button.d.ts +2 -4
  308. package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -1
  309. package/dist/typescript/commonjs/src/components/FlatList.d.ts +3 -3
  310. package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -1
  311. package/dist/typescript/commonjs/src/components/Image.d.ts +2 -4
  312. package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -1
  313. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts +2 -4
  314. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts.map +1 -1
  315. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts +2 -4
  316. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts.map +1 -1
  317. package/dist/typescript/commonjs/src/components/Pressable.d.ts +2 -4
  318. package/dist/typescript/commonjs/src/components/Pressable.d.ts.map +1 -1
  319. package/dist/typescript/commonjs/src/components/SafeAreaProvider.d.ts +2 -0
  320. package/dist/typescript/commonjs/src/components/SafeAreaProvider.d.ts.map +1 -0
  321. package/dist/typescript/commonjs/src/components/ScrollView.d.ts +2 -4
  322. package/dist/typescript/commonjs/src/components/ScrollView.d.ts.map +1 -1
  323. package/dist/typescript/commonjs/src/components/Switch.d.ts +2 -6
  324. package/dist/typescript/commonjs/src/components/Switch.d.ts.map +1 -1
  325. package/dist/typescript/commonjs/src/components/Text.d.ts +2 -6
  326. package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -1
  327. package/dist/typescript/commonjs/src/components/TextInput.d.ts +2 -4
  328. package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -1
  329. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts +2 -4
  330. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts.map +1 -1
  331. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts +2 -4
  332. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts.map +1 -1
  333. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts +2 -4
  334. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts.map +1 -1
  335. package/dist/typescript/commonjs/src/components/View.d.ts +2 -6
  336. package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -1
  337. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts +3 -3
  338. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts.map +1 -1
  339. package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts +5 -0
  340. package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts.map +1 -0
  341. package/dist/typescript/commonjs/src/components/index.d.cts +2 -0
  342. package/dist/typescript/commonjs/src/components/index.d.cts.map +1 -0
  343. package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -1
  344. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts +1 -1
  345. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts.map +1 -1
  346. package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -1
  347. package/dist/typescript/commonjs/src/metro/cache-version.d.ts +8 -0
  348. package/dist/typescript/commonjs/src/metro/cache-version.d.ts.map +1 -0
  349. package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -1
  350. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts +5 -3
  351. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -1
  352. package/dist/typescript/commonjs/src/metro/override.d.ts +2 -0
  353. package/dist/typescript/commonjs/src/metro/override.d.ts.map +1 -0
  354. package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -1
  355. package/dist/typescript/commonjs/src/metro/typescript.d.ts.map +1 -1
  356. package/dist/typescript/commonjs/src/native/api.d.ts +5 -9
  357. package/dist/typescript/commonjs/src/native/api.d.ts.map +1 -1
  358. package/dist/typescript/commonjs/src/native/conditions/container-query.d.ts.map +1 -1
  359. package/dist/typescript/commonjs/src/native/index.d.ts +1 -1
  360. package/dist/typescript/commonjs/src/native/index.d.ts.map +1 -1
  361. package/dist/typescript/commonjs/src/native/react/interaction.d.ts +1 -1
  362. package/dist/typescript/commonjs/src/native/react/interaction.d.ts.map +1 -1
  363. package/dist/typescript/commonjs/src/native/react/rules.d.ts.map +1 -1
  364. package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts +1 -1
  365. package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts.map +1 -1
  366. package/dist/typescript/commonjs/src/native/react/usePassthrough.d.ts.map +1 -1
  367. package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts +2 -0
  368. package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts.map +1 -0
  369. package/dist/typescript/commonjs/src/native/reactivity.d.ts +7 -3
  370. package/dist/typescript/commonjs/src/native/reactivity.d.ts.map +1 -1
  371. package/dist/typescript/commonjs/src/native/reanimated.d.ts.map +1 -1
  372. package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts +3 -0
  373. package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts.map +1 -0
  374. package/dist/typescript/commonjs/src/native/styles/functions/filters.d.ts +2 -0
  375. package/dist/typescript/commonjs/src/native/styles/functions/filters.d.ts.map +1 -1
  376. package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts +1 -0
  377. package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts.map +1 -1
  378. package/dist/typescript/commonjs/src/native/styles/functions/numeric-functions.d.ts.map +1 -1
  379. package/dist/typescript/commonjs/src/native/styles/functions/string-functions.d.ts +2 -0
  380. package/dist/typescript/commonjs/src/native/styles/functions/string-functions.d.ts.map +1 -1
  381. package/dist/typescript/commonjs/src/native/styles/functions/transform-functions.d.ts.map +1 -1
  382. package/dist/typescript/commonjs/src/native/styles/index.d.ts +2 -2
  383. package/dist/typescript/commonjs/src/native/styles/index.d.ts.map +1 -1
  384. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts +1 -0
  385. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts.map +1 -1
  386. package/dist/typescript/commonjs/src/native/styles/scale-factor.d.ts +2 -0
  387. package/dist/typescript/commonjs/src/native/styles/scale-factor.d.ts.map +1 -0
  388. package/dist/typescript/commonjs/src/native/styles/shorthands/_handler.d.ts.map +1 -1
  389. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts +1 -0
  390. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts.map +1 -1
  391. package/dist/typescript/commonjs/src/native/styles/shorthands/box-shadow.d.ts.map +1 -1
  392. package/dist/typescript/commonjs/src/native/styles/shorthands/index.d.ts +1 -0
  393. package/dist/typescript/commonjs/src/native/styles/shorthands/index.d.ts.map +1 -1
  394. package/dist/typescript/commonjs/src/native/styles/shorthands/logical-border-width.d.ts +4 -0
  395. package/dist/typescript/commonjs/src/native/styles/shorthands/logical-border-width.d.ts.map +1 -0
  396. package/dist/typescript/commonjs/src/native/styles/variables.d.ts.map +1 -1
  397. package/dist/typescript/commonjs/src/native-internal/variables.d.ts +1 -1
  398. package/dist/typescript/commonjs/src/native-internal/variables.d.ts.map +1 -1
  399. package/dist/typescript/commonjs/src/runtime.types.d.ts +11 -6
  400. package/dist/typescript/commonjs/src/runtime.types.d.ts.map +1 -1
  401. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts +3 -2
  402. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts.map +1 -1
  403. package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts +1 -1
  404. package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts.map +1 -1
  405. package/dist/typescript/commonjs/src/web/api.d.ts +5 -5
  406. package/dist/typescript/commonjs/src/web/api.d.ts.map +1 -1
  407. package/dist/typescript/commonjs/src/web/assign-style.d.ts.map +1 -1
  408. package/dist/typescript/module/src/babel/import-plugin.d.ts +1 -1
  409. package/dist/typescript/module/src/babel/import-plugin.d.ts.map +1 -1
  410. package/dist/typescript/module/src/babel/react-native-web.d.ts +2 -1
  411. package/dist/typescript/module/src/babel/react-native-web.d.ts.map +1 -1
  412. package/dist/typescript/module/src/babel/react-native.d.ts.map +1 -1
  413. package/dist/typescript/module/src/compiler/atRules.d.ts +6 -3
  414. package/dist/typescript/module/src/compiler/atRules.d.ts.map +1 -1
  415. package/dist/typescript/module/src/compiler/compiler.d.ts +2 -2
  416. package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -1
  417. package/dist/typescript/module/src/compiler/compiler.types.d.ts +1 -1
  418. package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -1
  419. package/dist/typescript/module/src/compiler/container-query.d.ts +2 -2
  420. package/dist/typescript/module/src/compiler/container-query.d.ts.map +1 -1
  421. package/dist/typescript/module/src/compiler/declarations.d.ts +4 -3
  422. package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -1
  423. package/dist/typescript/module/src/compiler/index.d.ts +2 -2
  424. package/dist/typescript/module/src/compiler/index.d.ts.map +1 -1
  425. package/dist/typescript/module/src/compiler/inline-variables.d.ts +1 -1
  426. package/dist/typescript/module/src/compiler/inline-variables.d.ts.map +1 -1
  427. package/dist/typescript/module/src/compiler/keyframes.d.ts +3 -3
  428. package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -1
  429. package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts.map +1 -1
  430. package/dist/typescript/module/src/compiler/media-query.d.ts +3 -3
  431. package/dist/typescript/module/src/compiler/media-query.d.ts.map +1 -1
  432. package/dist/typescript/module/src/compiler/pseudo-elements.d.ts +1 -1
  433. package/dist/typescript/module/src/compiler/pseudo-elements.d.ts.map +1 -1
  434. package/dist/typescript/module/src/compiler/selector-builder.d.ts +1 -1
  435. package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -1
  436. package/dist/typescript/module/src/compiler/selectors.d.ts +2 -2
  437. package/dist/typescript/module/src/compiler/selectors.d.ts.map +1 -1
  438. package/dist/typescript/module/src/compiler/stylesheet.d.ts +2 -1
  439. package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -1
  440. package/dist/typescript/module/src/components/ActivityIndicator.d.ts +2 -4
  441. package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -1
  442. package/dist/typescript/module/src/components/Button.d.ts +2 -4
  443. package/dist/typescript/module/src/components/Button.d.ts.map +1 -1
  444. package/dist/typescript/module/src/components/FlatList.d.ts +3 -3
  445. package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -1
  446. package/dist/typescript/module/src/components/Image.d.ts +2 -4
  447. package/dist/typescript/module/src/components/Image.d.ts.map +1 -1
  448. package/dist/typescript/module/src/components/ImageBackground.d.ts +2 -4
  449. package/dist/typescript/module/src/components/ImageBackground.d.ts.map +1 -1
  450. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts +2 -4
  451. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts.map +1 -1
  452. package/dist/typescript/module/src/components/Pressable.d.ts +2 -4
  453. package/dist/typescript/module/src/components/Pressable.d.ts.map +1 -1
  454. package/dist/typescript/module/src/components/SafeAreaProvider.d.ts +2 -0
  455. package/dist/typescript/module/src/components/SafeAreaProvider.d.ts.map +1 -0
  456. package/dist/typescript/module/src/components/ScrollView.d.ts +2 -4
  457. package/dist/typescript/module/src/components/ScrollView.d.ts.map +1 -1
  458. package/dist/typescript/module/src/components/Switch.d.ts +2 -6
  459. package/dist/typescript/module/src/components/Switch.d.ts.map +1 -1
  460. package/dist/typescript/module/src/components/Text.d.ts +2 -6
  461. package/dist/typescript/module/src/components/Text.d.ts.map +1 -1
  462. package/dist/typescript/module/src/components/TextInput.d.ts +2 -4
  463. package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -1
  464. package/dist/typescript/module/src/components/TouchableHighlight.d.ts +2 -4
  465. package/dist/typescript/module/src/components/TouchableHighlight.d.ts.map +1 -1
  466. package/dist/typescript/module/src/components/TouchableOpacity.d.ts +2 -4
  467. package/dist/typescript/module/src/components/TouchableOpacity.d.ts.map +1 -1
  468. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts +2 -4
  469. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts.map +1 -1
  470. package/dist/typescript/module/src/components/View.d.ts +2 -6
  471. package/dist/typescript/module/src/components/View.d.ts.map +1 -1
  472. package/dist/typescript/module/src/components/VirtualizedList.d.ts +3 -3
  473. package/dist/typescript/module/src/components/VirtualizedList.d.ts.map +1 -1
  474. package/dist/typescript/module/src/components/copyComponentProperties.d.ts +5 -0
  475. package/dist/typescript/module/src/components/copyComponentProperties.d.ts.map +1 -0
  476. package/dist/typescript/module/src/components/index.d.cts +2 -0
  477. package/dist/typescript/module/src/components/index.d.cts.map +1 -0
  478. package/dist/typescript/module/src/components/index.d.ts +16 -16
  479. package/dist/typescript/module/src/components/index.d.ts.map +1 -1
  480. package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts +1 -1
  481. package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts.map +1 -1
  482. package/dist/typescript/module/src/jest/index.d.ts.map +1 -1
  483. package/dist/typescript/module/src/metro/cache-version.d.ts +8 -0
  484. package/dist/typescript/module/src/metro/cache-version.d.ts.map +1 -0
  485. package/dist/typescript/module/src/metro/index.d.ts +1 -1
  486. package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
  487. package/dist/typescript/module/src/metro/metro-transformer.d.ts +6 -4
  488. package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -1
  489. package/dist/typescript/module/src/metro/override.d.ts +2 -0
  490. package/dist/typescript/module/src/metro/override.d.ts.map +1 -0
  491. package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -1
  492. package/dist/typescript/module/src/metro/typescript.d.ts.map +1 -1
  493. package/dist/typescript/module/src/native/api.d.ts +6 -10
  494. package/dist/typescript/module/src/native/api.d.ts.map +1 -1
  495. package/dist/typescript/module/src/native/conditions/attributes.d.ts +1 -1
  496. package/dist/typescript/module/src/native/conditions/attributes.d.ts.map +1 -1
  497. package/dist/typescript/module/src/native/conditions/container-query.d.ts +2 -2
  498. package/dist/typescript/module/src/native/conditions/container-query.d.ts.map +1 -1
  499. package/dist/typescript/module/src/native/conditions/guards.d.ts +2 -2
  500. package/dist/typescript/module/src/native/conditions/guards.d.ts.map +1 -1
  501. package/dist/typescript/module/src/native/conditions/index.d.ts +3 -3
  502. package/dist/typescript/module/src/native/conditions/index.d.ts.map +1 -1
  503. package/dist/typescript/module/src/native/conditions/media-query.d.ts +1 -1
  504. package/dist/typescript/module/src/native/conditions/media-query.d.ts.map +1 -1
  505. package/dist/typescript/module/src/native/index.d.ts +3 -3
  506. package/dist/typescript/module/src/native/index.d.ts.map +1 -1
  507. package/dist/typescript/module/src/native/react/interaction.d.ts +2 -2
  508. package/dist/typescript/module/src/native/react/interaction.d.ts.map +1 -1
  509. package/dist/typescript/module/src/native/react/rules.d.ts +2 -2
  510. package/dist/typescript/module/src/native/react/rules.d.ts.map +1 -1
  511. package/dist/typescript/module/src/native/react/useNativeCss.d.ts +5 -5
  512. package/dist/typescript/module/src/native/react/useNativeCss.d.ts.map +1 -1
  513. package/dist/typescript/module/src/native/react/usePassthrough.d.ts +1 -1
  514. package/dist/typescript/module/src/native/react/usePassthrough.d.ts.map +1 -1
  515. package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts +2 -0
  516. package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts.map +1 -0
  517. package/dist/typescript/module/src/native/reactivity.d.ts +7 -3
  518. package/dist/typescript/module/src/native/reactivity.d.ts.map +1 -1
  519. package/dist/typescript/module/src/native/reanimated.d.ts.map +1 -1
  520. package/dist/typescript/module/src/native/styles/calculate-props.d.ts +2 -2
  521. package/dist/typescript/module/src/native/styles/calculate-props.d.ts.map +1 -1
  522. package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts +1 -1
  523. package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts.map +1 -1
  524. package/dist/typescript/module/src/native/styles/functions/calc.d.ts +1 -1
  525. package/dist/typescript/module/src/native/styles/functions/calc.d.ts.map +1 -1
  526. package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts +3 -0
  527. package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts.map +1 -0
  528. package/dist/typescript/module/src/native/styles/functions/filters.d.ts +3 -1
  529. package/dist/typescript/module/src/native/styles/functions/filters.d.ts.map +1 -1
  530. package/dist/typescript/module/src/native/styles/functions/index.d.ts +8 -7
  531. package/dist/typescript/module/src/native/styles/functions/index.d.ts.map +1 -1
  532. package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts +1 -1
  533. package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts.map +1 -1
  534. package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts +1 -1
  535. package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts.map +1 -1
  536. package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts +3 -1
  537. package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts.map +1 -1
  538. package/dist/typescript/module/src/native/styles/functions/transform-functions.d.ts +1 -1
  539. package/dist/typescript/module/src/native/styles/functions/transform-functions.d.ts.map +1 -1
  540. package/dist/typescript/module/src/native/styles/index.d.ts +7 -7
  541. package/dist/typescript/module/src/native/styles/index.d.ts.map +1 -1
  542. package/dist/typescript/module/src/native/styles/line-height.d.ts +1 -1
  543. package/dist/typescript/module/src/native/styles/line-height.d.ts.map +1 -1
  544. package/dist/typescript/module/src/native/styles/resolve.d.ts +4 -3
  545. package/dist/typescript/module/src/native/styles/resolve.d.ts.map +1 -1
  546. package/dist/typescript/module/src/native/styles/scale-factor.d.ts +2 -0
  547. package/dist/typescript/module/src/native/styles/scale-factor.d.ts.map +1 -0
  548. package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts +1 -1
  549. package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts.map +1 -1
  550. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts +3 -2
  551. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts.map +1 -1
  552. package/dist/typescript/module/src/native/styles/shorthands/border.d.ts +1 -1
  553. package/dist/typescript/module/src/native/styles/shorthands/border.d.ts.map +1 -1
  554. package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts +1 -1
  555. package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts.map +1 -1
  556. package/dist/typescript/module/src/native/styles/shorthands/index.d.ts +6 -5
  557. package/dist/typescript/module/src/native/styles/shorthands/index.d.ts.map +1 -1
  558. package/dist/typescript/module/src/native/styles/shorthands/logical-border-width.d.ts +4 -0
  559. package/dist/typescript/module/src/native/styles/shorthands/logical-border-width.d.ts.map +1 -0
  560. package/dist/typescript/module/src/native/styles/shorthands/text-shadow.d.ts +1 -1
  561. package/dist/typescript/module/src/native/styles/shorthands/text-shadow.d.ts.map +1 -1
  562. package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts +1 -1
  563. package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts.map +1 -1
  564. package/dist/typescript/module/src/native/styles/units.d.ts +1 -1
  565. package/dist/typescript/module/src/native/styles/units.d.ts.map +1 -1
  566. package/dist/typescript/module/src/native/styles/variables.d.ts +2 -2
  567. package/dist/typescript/module/src/native/styles/variables.d.ts.map +1 -1
  568. package/dist/typescript/module/src/native-internal/index.d.ts +3 -3
  569. package/dist/typescript/module/src/native-internal/index.d.ts.map +1 -1
  570. package/dist/typescript/module/src/native-internal/root.d.ts +1 -1
  571. package/dist/typescript/module/src/native-internal/root.d.ts.map +1 -1
  572. package/dist/typescript/module/src/native-internal/style-collection.d.ts +2 -2
  573. package/dist/typescript/module/src/native-internal/style-collection.d.ts.map +1 -1
  574. package/dist/typescript/module/src/native-internal/variables.d.ts +2 -2
  575. package/dist/typescript/module/src/native-internal/variables.d.ts.map +1 -1
  576. package/dist/typescript/module/src/runtime.d.ts +1 -1
  577. package/dist/typescript/module/src/runtime.d.ts.map +1 -1
  578. package/dist/typescript/module/src/runtime.native.d.ts +1 -1
  579. package/dist/typescript/module/src/runtime.native.d.ts.map +1 -1
  580. package/dist/typescript/module/src/runtime.types.d.ts +11 -6
  581. package/dist/typescript/module/src/runtime.types.d.ts.map +1 -1
  582. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts +3 -2
  583. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts.map +1 -1
  584. package/dist/typescript/module/src/utilities/index.d.ts +3 -3
  585. package/dist/typescript/module/src/utilities/index.d.ts.map +1 -1
  586. package/dist/typescript/module/src/utilities/specificity.d.ts +2 -2
  587. package/dist/typescript/module/src/utilities/specificity.d.ts.map +1 -1
  588. package/dist/typescript/module/src/utilities/style-descriptor.d.ts +1 -1
  589. package/dist/typescript/module/src/utilities/style-descriptor.d.ts.map +1 -1
  590. package/dist/typescript/module/src/web/api.d.ts +5 -5
  591. package/dist/typescript/module/src/web/api.d.ts.map +1 -1
  592. package/dist/typescript/module/src/web/assign-style.d.ts.map +1 -1
  593. package/dist/typescript/module/src/web/index.d.ts +3 -3
  594. package/dist/typescript/module/src/web/index.d.ts.map +1 -1
  595. package/node/babel.mjs +4 -0
  596. package/node/compiler.mjs +2 -0
  597. package/node/metro.mjs +2 -0
  598. package/package.json +87 -39
  599. package/src/babel/import-plugin.ts +15 -4
  600. package/src/babel/react-native-web.ts +32 -3
  601. package/src/babel/react-native.ts +7 -1
  602. package/src/compiler/atRules.ts +63 -18
  603. package/src/compiler/compiler.ts +140 -42
  604. package/src/compiler/container-query.ts +8 -3
  605. package/src/compiler/declarations.ts +289 -104
  606. package/src/compiler/keyframes.ts +2 -2
  607. package/src/compiler/lightningcss-loader.ts +21 -1
  608. package/src/compiler/media-query.ts +20 -9
  609. package/src/compiler/selector-builder.ts +29 -3
  610. package/src/compiler/stylesheet.ts +9 -5
  611. package/src/compiler/supports.ts +2 -2
  612. package/src/components/ActivityIndicator.tsx +9 -6
  613. package/src/components/Button.tsx +9 -4
  614. package/src/components/FlatList.tsx +15 -5
  615. package/src/components/Image.tsx +9 -4
  616. package/src/components/ImageBackground.tsx +11 -12
  617. package/src/components/KeyboardAvoidingView.tsx +11 -9
  618. package/src/components/Pressable.tsx +9 -4
  619. package/src/components/SafeAreaProvider.tsx +1 -0
  620. package/src/components/ScrollView.tsx +9 -6
  621. package/src/components/Switch.tsx +9 -4
  622. package/src/components/Text.tsx +9 -4
  623. package/src/components/TextInput.tsx +9 -4
  624. package/src/components/TouchableHighlight.tsx +9 -6
  625. package/src/components/TouchableOpacity.tsx +9 -6
  626. package/src/components/TouchableWithoutFeedback.tsx +9 -6
  627. package/src/components/View.tsx +9 -4
  628. package/src/components/VirtualizedList.tsx +18 -6
  629. package/src/components/copyComponentProperties.ts +21 -0
  630. package/src/components/index.cts +308 -0
  631. package/src/components/{index.tsx → index.ts} +0 -1
  632. package/src/jest/index.ts +3 -2
  633. package/src/metro/cache-version.ts +48 -0
  634. package/src/metro/index.ts +10 -166
  635. package/src/metro/metro-transformer.ts +24 -7
  636. package/src/metro/override.ts +1 -0
  637. package/src/metro/resolver.ts +29 -28
  638. package/src/metro/typescript.ts +53 -6
  639. package/src/native/api.tsx +24 -14
  640. package/src/native/conditions/attributes.ts +26 -9
  641. package/src/native/conditions/container-query.ts +11 -9
  642. package/src/native/conditions/media-query.ts +1 -1
  643. package/src/native/index.ts +1 -2
  644. package/src/native/react/interaction.ts +11 -6
  645. package/src/native/react/rules.ts +13 -5
  646. package/src/native/react/useNativeCss.ts +64 -17
  647. package/src/native/react/usePassthrough.ts +3 -2
  648. package/src/native/reactivity.ts +42 -24
  649. package/src/native/reanimated.ts +24 -5
  650. package/src/native/styles/calculate-props.ts +1 -1
  651. package/src/native/styles/functions/color-mix.ts +74 -0
  652. package/src/native/styles/functions/filters.ts +20 -6
  653. package/src/native/styles/functions/index.ts +1 -0
  654. package/src/native/styles/functions/numeric-functions.ts +7 -6
  655. package/src/native/styles/functions/string-functions.ts +18 -0
  656. package/src/native/styles/functions/transform-functions.ts +5 -4
  657. package/src/native/styles/index.ts +443 -36
  658. package/src/native/styles/resolve.ts +15 -12
  659. package/src/native/styles/scale-factor.ts +6 -0
  660. package/src/native/styles/shorthands/_handler.ts +14 -1
  661. package/src/native/styles/shorthands/animation.ts +17 -3
  662. package/src/native/styles/shorthands/box-shadow.ts +50 -15
  663. package/src/native/styles/shorthands/index.ts +1 -0
  664. package/src/native/styles/shorthands/logical-border-width.ts +32 -0
  665. package/src/native/styles/variables.ts +48 -38
  666. package/src/native-internal/style-collection.ts +1 -1
  667. package/src/runtime.types.ts +17 -15
  668. package/src/utilities/dot-notation.types.ts +12 -4
  669. package/src/utilities/style-descriptor.ts +11 -16
  670. package/src/web/api.tsx +13 -13
  671. package/src/web/assign-style.ts +2 -1
  672. package/types.d.ts +3 -20
  673. package/dist/commonjs/compiler/inheritance.test.js +0 -78
  674. package/dist/commonjs/compiler/inheritance.test.js.map +0 -1
  675. package/dist/commonjs/poison.pill.js.map +0 -1
  676. package/dist/commonjs/runtime/native/injection.js +0 -2
  677. package/dist/commonjs/runtime/native/injection.js.map +0 -1
  678. package/dist/module/compiler/inheritance.test.js +0 -78
  679. package/dist/module/compiler/inheritance.test.js.map +0 -1
  680. package/dist/module/native/metro.js +0 -5
  681. package/dist/module/poison.pill.js.map +0 -1
  682. package/dist/module/runtime/native/injection.js +0 -2
  683. package/dist/module/runtime/native/injection.js.map +0 -1
  684. package/dist/typescript/commonjs/example/app.config.d.ts +0 -4
  685. package/dist/typescript/commonjs/example/app.config.d.ts.map +0 -1
  686. package/dist/typescript/commonjs/example/src/App.d.ts +0 -2
  687. package/dist/typescript/commonjs/example/src/App.d.ts.map +0 -1
  688. package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts +0 -2
  689. package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts.map +0 -1
  690. package/dist/typescript/commonjs/src/native/metro.d.ts +0 -2
  691. package/dist/typescript/commonjs/src/native/metro.d.ts.map +0 -1
  692. package/dist/typescript/commonjs/src/poison.pill.d.ts +0 -2
  693. package/dist/typescript/commonjs/src/poison.pill.d.ts.map +0 -1
  694. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts +0 -1
  695. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts.map +0 -1
  696. package/dist/typescript/module/example/app.config.d.ts +0 -4
  697. package/dist/typescript/module/example/app.config.d.ts.map +0 -1
  698. package/dist/typescript/module/example/src/App.d.ts +0 -2
  699. package/dist/typescript/module/example/src/App.d.ts.map +0 -1
  700. package/dist/typescript/module/src/compiler/inheritance.test.d.ts +0 -2
  701. package/dist/typescript/module/src/compiler/inheritance.test.d.ts.map +0 -1
  702. package/dist/typescript/module/src/native/metro.d.ts +0 -2
  703. package/dist/typescript/module/src/native/metro.d.ts.map +0 -1
  704. package/dist/typescript/module/src/poison.pill.d.ts +0 -2
  705. package/dist/typescript/module/src/poison.pill.d.ts.map +0 -1
  706. package/dist/typescript/module/src/runtime/native/injection.d.ts +0 -1
  707. package/dist/typescript/module/src/runtime/native/injection.d.ts.map +0 -1
  708. package/src/compiler/inheritance.test.ts +0 -121
  709. package/src/native/metro.ts +0 -2
  710. package/src/runtime/native/injection.ts +0 -0
  711. /package/src/{poison.pill.ts → native/react-native-css-metro-override.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":["_nodeUtil","require","_debug","_atRules","_containerQuery","_declarations","_inlineVariables","_keyframes","_lightningcssLoader","_mediaQuery","_stylesheet","_supports","defaultLogger","debug","compile","code","options","logger","isLoggerEnabled","enabled","Boolean","features","Object","assign","selectorPrefix","startsWith","slice","JSON","stringify","process","env","NODE_ENV","toString","builder","StylesheetBuilder","lightningcss","Features","lightningcssLoader","vars","Map","firstPassVisitor","inlineRem","Length","length","unit","value","round","inlineVariables","exclusionList","exclude","Declaration","decl","property","name","includes","entry","get","count","type","set","StyleSheetExit","sheet","firstPass","TextEncoder","encode","include","DoublePositionGradients","ColorFunction","VendorPrefixes","visitor","filename","projectRoot","cwd","MAX_LOG_SIZE","subarray","customAtRules","body","Rule","rule","maybeMutateReactNativeOptions","rules","inspect","depth","colors","compact","extractRule","stylesheet","getNativeStyleSheet","warnings","getWarnings","mapping","extractKeyFrames","extractContainer","extractMedia","declarationBlock","declarations","newNestedRule","declaration","parseDeclaration","applyRuleToSelectors","importantDeclarations","important","parsePropAtRule","fork","selectors","newRule","nestedRule","layerRule","supportsConditionValid","condition","mediaRule","media","mediaQuery","query","mediaQueries","mediaType","qualifier","push","m","parseMediaQuery","containerRule","parseContainerCondition","n","addContainerQuery"],"sourceRoot":"../../../src","sources":["compiler/compiler.ts"],"mappings":";;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAUA,IAAAE,QAAA,GAAAF,OAAA;AAOA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,WAAA,GAAAT,OAAA;AACA,IAAAU,SAAA,GAAAV,OAAA;AA3BA;;AA6BA,MAAMW,aAAa,GAAG,IAAAC,YAAK,EAAC,2BAA2B,CAAC;;AAExD;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,OAAOA,CAACC,IAAqB,EAAEC,OAAwB,GAAG,CAAC,CAAC,EAAE;EAC5E,MAAM;IAAEC,MAAM,GAAGL;EAAc,CAAC,GAAGI,OAAO;EAE1C,MAAME,eAAe,GACnB,SAAS,IAAID,MAAM,GAAGA,MAAM,CAACE,OAAO,GAAGC,OAAO,CAACH,MAAM,CAAC;EAExD,MAAMI,QAAQ,GAAGC,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEP,OAAO,CAACK,QAAQ,CAAC;EAEpD,IAAIL,OAAO,CAACQ,cAAc,IAAIR,OAAO,CAACQ,cAAc,CAACC,UAAU,CAAC,GAAG,CAAC,EAAE;IACpET,OAAO,CAACQ,cAAc,GAAGR,OAAO,CAACQ,cAAc,CAACE,KAAK,CAAC,CAAC,CAAC;EAC1D;EAEAT,MAAM,CAAC,YAAYU,IAAI,CAACC,SAAS,CAACP,QAAQ,CAAC,EAAE,CAAC;EAE9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,UAAU,CAACH,SAAS,KAAK,IAAK,EAChC;MACA;IACF;IAEAE,KAAK,CAACM,IAAI,CAACL,UAAU,CAAC;EACxB;EAEA,IAAID,KAAK,CAACpE,MAAM,KAAK,CAAC,EAAE;IACtB;EACF;EAEA,KAAK,MAAM2E,CAAC,IAAIP,KAAK,EAAE;IACrB,IAAAQ,2BAAe,EAACD,CAAC,EAAErF,OAAO,CAAC;EAC7B;;EAEA;EACA,KAAK,MAAM6C,IAAI,IAAIgC,SAAS,CAAC9B,KAAK,EAAE;IAClCK,WAAW,CAACP,IAAI,EAAE7C,OAAO,EAAEyD,OAAO,CAAC;EACrC;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASE,gBAAgBA,CACvB4B,aAA4B,EAC5BvF,OAA0B,EAC1ByD,OAAyB,EACzB;EACAzD,OAAO,GAAGA,OAAO,CAACsE,IAAI,CAAC,WAAW,CAAC;;EAEnC;EACA,MAAMU,KAAqB,GAAG;IAC5BK,CAAC,EAAE,IAAAG,uCAAuB,EAACD,aAAa,CAACX,SAAS,EAAE5E,OAAO;EAC7D,CAAC;EAED,IAAIuF,aAAa,CAACnE,IAAI,EAAE;IACtB4D,KAAK,CAACS,CAAC,GAAG,KAAKF,aAAa,CAACnE,IAAI,EAAE;EACrC;EAEApB,OAAO,CAAC0F,iBAAiB,CAACV,KAAK,CAAC;EAEhC,KAAK,MAAMnC,IAAI,IAAI0C,aAAa,CAACxC,KAAK,EAAE;IACtCK,WAAW,CAACP,IAAI,EAAE7C,OAAO,EAAEyD,OAAO,CAAC;EACrC;AACF","ignoreList":[]}
1
+ {"version":3,"names":["_nodeUtil","require","_debug","_atRules","_containerQuery","_declarations","_inlineVariables","_keyframes","_lightningcssLoader","_mediaQuery","_stylesheet","_supports","defaultLogger","debug","compile","code","options","logger","isLoggerEnabled","enabled","Boolean","features","Object","assign","selectorPrefix","startsWith","slice","JSON","stringify","process","env","NODE_ENV","toString","builder","StylesheetBuilder","lightningcss","Features","lightningcssLoader","vars","Map","effectiveRem","inlineRem","undefined","css","match","parseFloat","firstPassVisitor","Rule","rule","type","includes","value","name","Error","selectors","some","selector","part","kind","remMultiplier","Length","length","unit","round","inlineVariables","exclusionList","exclude","Declaration","decl","property","entry","get","count","set","StyleSheetExit","sheet","firstPass","TextEncoder","encode","include","DoublePositionGradients","ColorFunction","VendorPrefixes","visitor","filename","projectRoot","cwd","MAX_LOG_SIZE","subarray","customAtRules","body","maybeMutateReactNativeOptions","rules","inspect","depth","colors","compact","extractRule","stylesheet","getNativeStyleSheet","warnings","getWarnings","mapping","extractKeyFrames","extractContainer","extractMedia","declarationBlock","declarations","newNestedRule","declaration","parseDeclaration","applyRuleToSelectors","importantDeclarations","important","parsePropAtRule","parsePropDeclarations","fork","newRule","nestedRule","layerRule","supportsConditionValid","condition","extractPropertyRule","mediaRule","mediaQuery","query","mediaQueries","queryBuilder","parseMediaQuery","containerRule","parseContainerCondition","m","n","addContainerQuery","propertyRule","initialValue","varName","parsePropertyInitialValue","addRootVariable","component","parseLength","parseColor","parseAngle","reduceParseUnparsed","results","components","map","c","filter","v"],"sourceRoot":"../../../src","sources":["compiler/compiler.ts"],"mappings":";;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAWA,IAAAE,QAAA,GAAAF,OAAA;AAYA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AAQA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,WAAA,GAAAT,OAAA;AACA,IAAAU,SAAA,GAAAV,OAAA;AAxCA;;AA0CA,MAAMW,aAAa,GAAG,IAAAC,YAAK,EAAC,2BAA2B,CAAC;;AAExD;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,OAAOA,CAACC,IAAqB,EAAEC,OAAwB,GA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,CAACxF,KAAK,EAAElB,OAAO,EAAE,WAAW,EAAE,KAAK,CAAC;IAC1E,KAAK,cAAc;IACnB,KAAK,SAAS;MACZ,OAAO0G,SAAS,CAACxF,KAAK;IACxB,KAAK,UAAU;MAAE;QACf,MAAM6F,OAAO,GAAGL,SAAS,CAACxF,KAAK,CAAC8F,UAAU,CACvCC,GAAG,CAAEC,CAAC,IAAKV,yBAAyB,CAACU,CAAC,EAAElH,OAAO,CAAC,CAAC,CACjDmH,MAAM,CAAEC,CAAC,IAAwCA,CAAC,KAAK3G,SAAS,CAAC;QACpE;QACA;QACA;QACA,OAAOsG,OAAO,CAACnF,MAAM,KAAK,CAAC,GAAGmF,OAAO,CAAC,CAAC,CAAC,GAAGA,OAAO;MACpD;IACA;MACE,OAAOtG,SAAS;EACpB;AACF","ignoreList":[]}
@@ -24,7 +24,12 @@ function parseContainerQueryCondition(condition, builder) {
24
24
  const query = parseContainerCondition(condition.value, builder);
25
25
  return query ? ["!", query] : undefined;
26
26
  case "operation":
27
- const conditions = condition.conditions.map(c => parseContainerQueryCondition(c, builder)).filter(v => !!v);
27
+ const parsed = condition.conditions.map(c => parseContainerCondition(c, builder));
28
+ if (condition.operator === "and" && parsed.some(c => !c)) {
29
+ // Dropping a conjunct would broaden the query to unrelated containers.
30
+ return;
31
+ }
32
+ const conditions = parsed.filter(c => !!c);
28
33
  if (conditions.length === 0) {
29
34
  return;
30
35
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_mediaQuery","require","parseContainerCondition","condition","builder","containerQuery","parseContainerQueryCondition","some","v","undefined","type","parseFeature","value","query","conditions","map","c","filter","length","operator","feature","name","parseMediaFeatureValue","parseMediaFeatureOperator","start","startOperator","end","endOperator"],"sourceRoot":"../../../src","sources":["compiler/container-query.ts"],"mappings":";;;;;;AAOA,IAAAA,WAAA,GAAAC,OAAA;AAPA;;AAaO,SAASC,uBAAuBA,CACrCC,SAAgC,EAChCC,OAA0B,EAC1B;EACA,IAAIC,cAAc,GAAGC,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O,CACL,GAAG,EACHD,OAAO,CAACC,IAAI,EACZ,IAAAC,kCAAsB,EAACF,OAAO,CAACR,KAAK,EAAER,OAAO,CAAC,CAC/C;IACH,KAAK,OAAO;MACV,OAAO,CACL,IAAAmB,qCAAyB,EAACH,OAAO,CAACD,QAAQ,CAAC,EAC3CC,OAAO,CAACC,IAAI,EACZ,IAAAC,kCAAsB,EAACF,OAAO,CAACR,KAAK,EAAER,OAAO,CAAC,CAC/C;IACH,KAAK,UAAU;MACb,OAAO,CACL,IAAI,EACJgB,OAAO,CAACC,IAAI,EACZ,IAAAC,kCAAsB,EAACF,OAAO,CAACI,KAAK,EAAEpB,OAAO,CAAC,EAC9C,IAAAmB,qCAAyB,EAACH,OAAO,CAACK,aAAa,CAAC,EAChD,IAAAH,kCAAsB,EAACF,OAAO,CAACM,GAAG,EAAEtB,OAAO,CAAC,EAC5C,IAAAmB,qCAAyB,EAACH,OAAO,CAACO,WAAW,CAAC,CAC/C;IACH;MACEP,OAAO;MACP;EACJ;AACF","ignoreList":[]}
1
+ {"version":3,"names":["_mediaQuery","require","parseContainerCondition","condition","builder","containerQuery","parseContainerQueryCondition","some","v","undefined","type","parseFeature","value","query","parsed","conditions","map","c","operator","filter","length","feature","name","parseMediaFeatureValue","parseMediaFeatureOperator","start","startOperator","end","endOperator"],"sourceRoot":"../../../src","sources":["compiler/container-query.ts"],"mappings":";;;;;;AAOA,IAAAA,WAAA,GAAAC,OAAA;AAPA;;AAaO,SAASC,uBAAuBA,CACrCC,SAAgC,EAChCC,OAA0B,EAC1B;EACA,IAAIC,cAAc,GAAGC,4BAA4B,CAACH,SAAS,EAAEC,OAAO,CAAC;;EAErE;EACA,IAAI,CAACC,cAAc,IAAIA,cAAc,CAACE,IAAI,CAAEC,CAAC,IAAKA,CAAC,KAAKC,SAAS,CAAC,EAAE;IAClE;EACF;EAEA,OAAOJ,cAAc;AACvB;AAEA,SAASC,4BAA4BA,CACnCH,SAAgC,EAChCC,OAA0B,EACE;EAC5B,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AAO,CAAC,CAC/C;IACH,KAAK,OAAO;MACV,OAAO,CACL,IAAAoB,qCAAyB,EAACH,OAAO,CAACH,QAAQ,CAAC,EAC3CG,OAAO,CAACC,IAAI,EACZ,IAAAC,kCAAsB,EAACF,OAAO,CAACT,KAAK,EAAER,OAAO,CAAC,CAC/C;IACH,KAAK,UAAU;MACb,OAAO,CACL,IAAI,EACJiB,OAAO,CAACC,IAAI,EACZ,IAAAC,kCAAsB,EAACF,OAAO,CAACI,KAAK,EAAErB,OAAO,CAAC,EAC9C,IAAAoB,qCAAyB,EAACH,OAAO,CAACK,aAAa,CAAC,EAChD,IAAAH,kCAAsB,EAACF,OAAO,CAACM,GAAG,EAAEvB,OAAO,CAAC,EAC5C,IAAAoB,qCAAyB,EAACH,OAAO,CAACO,WAAW,CAAC,CAC/C;IACH;MACEP,OAAO;MACP;EACJ;AACF","ignoreList":[]}
@@ -27,6 +27,7 @@ exports.parseCalcArguments = parseCalcArguments;
27
27
  exports.parseCalcFn = parseCalcFn;
28
28
  exports.parseColor = parseColor;
29
29
  exports.parseColorDeclaration = parseColorDeclaration;
30
+ exports.parseColorMix = parseColorMix;
30
31
  exports.parseColorOrAutoDeclaration = parseColorOrAutoDeclaration;
31
32
  exports.parseCustomDeclaration = parseCustomDeclaration;
32
33
  exports.parseDeclaration = parseDeclaration;
@@ -81,6 +82,7 @@ exports.round = round;
81
82
  exports.unparsedFunction = unparsedFunction;
82
83
  var _colorjs = _interopRequireDefault(require("colorjs.io"));
83
84
  var _index = require("../utilities/index.js");
85
+ var _atRules = require("./atRules.js");
84
86
  var _keyframes = require("./keyframes.js");
85
87
  var _selectors = require("./selectors.js");
86
88
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -88,9 +90,23 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
88
90
 
89
91
  const CommaSeparator = Symbol("CommaSeparator");
90
92
  const propertyRename = {
91
- "background-image": "experimental_backgroundImage"
93
+ "background-image": "experimental_backgroundImage",
94
+ // React Native has no border-inline-* props, but ships the equivalent
95
+ // RTL-aware border-start-* / border-end-* props
96
+ "border-inline-end-color": "border-end-color",
97
+ "border-inline-end-width": "border-end-width",
98
+ "border-inline-start-color": "border-start-color",
99
+ "border-inline-start-width": "border-start-width",
100
+ "border-block-start-width": "border-top-width",
101
+ "border-block-end-width": "border-bottom-width",
102
+ "font-variant-caps": "font-variant"
92
103
  };
93
- const unparsedRuntimeParsing = new Set(["animation", "border", "box-shadow", "line-height", "rotate", "scale", "text-shadow", "transform", "translate"]);
104
+
105
+ // React Native only supports a uniform borderStyle, so per-side border
106
+ // styles have no native equivalent and are dropped. "solid" is dropped
107
+ // silently as it matches React Native's default rendering.
108
+ const unsupportedLogicalStyles = new Set(["border-inline-style", "border-inline-start-style", "border-inline-end-style", "border-block-style", "border-block-start-style", "border-block-end-style"]);
109
+ const unparsedRuntimeParsing = new Set(["animation", "animation-name", "border", "border-block-width", "border-inline-width", "box-shadow", "filter", "line-height", "rotate", "scale", "text-shadow", "transform", "translate"]);
94
110
  const parsers = {
95
111
  "align-content": parseAlignContent,
96
112
  "align-items": parseAlignItems,
@@ -114,10 +130,11 @@ const parsers = {
114
130
  "border-block-color": parseBorderColor,
115
131
  "border-block-end": parseBorderBlockEnd,
116
132
  "border-block-end-color": parseColorDeclaration,
133
+ "border-block-end-style": parseBorderInlineStyle,
117
134
  "border-block-end-width": parseBorderSideWidthDeclaration,
118
135
  "border-block-start": parseBorderBlockStart,
119
136
  "border-block-start-color": parseColorDeclaration,
120
- "border-block-start-style": parseBorderStyleDeclaration,
137
+ "border-block-start-style": parseBorderInlineStyle,
121
138
  "border-block-start-width": parseBorderSideWidthDeclaration,
122
139
  "border-block-style": parseBorderBlockStyle,
123
140
  "border-block-width": parseBorderBlockWidth,
@@ -320,8 +337,8 @@ function parseInsetInline({
320
337
  value
321
338
  }, builder) {
322
339
  builder.addShorthand("inset-inline", {
323
- "inset-block-start": parseLengthPercentageOrAuto(value.inlineStart, builder),
324
- "inset-block-end": parseLengthPercentageOrAuto(value.inlineEnd, builder)
340
+ "inset-inline-start": parseLengthPercentageOrAuto(value.inlineStart, builder),
341
+ "inset-inline-end": parseLengthPercentageOrAuto(value.inlineEnd, builder)
325
342
  });
326
343
  }
327
344
  function parseInset({
@@ -355,14 +372,14 @@ function parseBorderColor(declaration, builder) {
355
372
  } else {
356
373
  const start = parseColor(declaration.value.start, builder);
357
374
  const end = parseColor(declaration.value.end, builder);
358
- if (start === end) {
375
+ if (declaration.property === "border-inline-color") {
376
+ builder.addDescriptor("border-start-color", start);
377
+ builder.addDescriptor("border-end-color", end);
378
+ } else if (start === end) {
359
379
  builder.addDescriptor(declaration.property, start);
360
- } else if (declaration.property === "border-block-color") {
380
+ } else {
361
381
  builder.addDescriptor("border-top-color", start);
362
382
  builder.addDescriptor("border-bottom-color", end);
363
- } else {
364
- builder.addDescriptor("border-left-color", start);
365
- builder.addDescriptor("border-right-color", end);
366
383
  }
367
384
  }
368
385
  }
@@ -396,53 +413,65 @@ function parseBorderBlock({
396
413
  value
397
414
  }, builder) {
398
415
  builder.addDescriptor("border-block-color", parseColor(value.color, builder));
399
- builder.addDescriptor("border-block-width", parseBorderSideWidth(value.width, builder));
400
- builder.addDescriptor("border-block-style", parseBorderStyle(value.style, builder));
416
+ const width = parseBorderSideWidth(value.width, builder);
417
+ builder.addDescriptor("border-top-width", width);
418
+ builder.addDescriptor("border-bottom-width", width);
419
+ dropUnsupportedInlineStyle(parseBorderStyle(value.style, builder), builder, "border-block-style");
401
420
  }
402
421
  function parseBorderBlockStart({
403
422
  value
404
423
  }, builder) {
405
424
  builder.addDescriptor("border-block-start-color", parseColor(value.color, builder));
406
- builder.addDescriptor("border-block-start-width", parseBorderSideWidth(value.width, builder));
425
+ builder.addDescriptor("border-top-width", parseBorderSideWidth(value.width, builder));
426
+ dropUnsupportedInlineStyle(parseBorderStyle(value.style, builder), builder, "border-block-start-style");
407
427
  }
408
428
  function parseBorderBlockEnd({
409
429
  value
410
430
  }, builder) {
411
431
  builder.addDescriptor("border-block-end-color", parseColor(value.color, builder));
412
- builder.addDescriptor("border-block-end-width", parseBorderSideWidth(value.width, builder));
432
+ builder.addDescriptor("border-bottom-width", parseBorderSideWidth(value.width, builder));
433
+ dropUnsupportedInlineStyle(parseBorderStyle(value.style, builder), builder, "border-block-end-style");
413
434
  }
414
435
  function parseBorderInline({
415
436
  value
416
437
  }, builder) {
417
- builder.addDescriptor("border-inline-color", parseColor(value.color, builder));
418
- builder.addDescriptor("border-inline-width", parseBorderSideWidth(value.width, builder));
419
- builder.addDescriptor("border-inline-style", parseBorderStyle(value.style, builder));
438
+ const color = parseColor(value.color, builder);
439
+ const width = parseBorderSideWidth(value.width, builder);
440
+ builder.addDescriptor("border-start-color", color);
441
+ builder.addDescriptor("border-end-color", color);
442
+ builder.addDescriptor("border-start-width", width);
443
+ builder.addDescriptor("border-end-width", width);
444
+ dropUnsupportedInlineStyle(parseBorderStyle(value.style, builder), builder, "border-inline-style");
420
445
  }
421
446
  function parseBorderInlineStart({
422
447
  value
423
448
  }, builder) {
424
- builder.addDescriptor("border-inline-start-color", parseColor(value.color, builder));
425
- builder.addDescriptor("border-inline-start-width", parseBorderSideWidth(value.width, builder));
426
- builder.addDescriptor("border-inline-start-style", parseBorderStyle(value.style, builder));
449
+ builder.addDescriptor("border-start-color", parseColor(value.color, builder));
450
+ builder.addDescriptor("border-start-width", parseBorderSideWidth(value.width, builder));
451
+ dropUnsupportedInlineStyle(parseBorderStyle(value.style, builder), builder, "border-inline-start-style");
427
452
  }
428
453
  function parseBorderInlineEnd({
429
454
  value
430
455
  }, builder) {
431
- builder.addDescriptor("border-inline-end-color", parseColor(value.color, builder));
432
- builder.addDescriptor("border-inline-end-width", parseBorderSideWidth(value.width, builder));
433
- builder.addDescriptor("border-inline-end-style", parseBorderStyle(value.style, builder));
456
+ builder.addDescriptor("border-end-color", parseColor(value.color, builder));
457
+ builder.addDescriptor("border-end-width", parseBorderSideWidth(value.width, builder));
458
+ dropUnsupportedInlineStyle(parseBorderStyle(value.style, builder), builder, "border-inline-end-style");
434
459
  }
435
460
  function parseBorderInlineWidth(declaration, builder) {
436
- builder.addDescriptor("border-inline-width", parseBorderSideWidth(declaration.value.start, builder));
461
+ builder.addDescriptor("border-start-width", parseBorderSideWidth(declaration.value.start, builder));
462
+ builder.addDescriptor("border-end-width", parseBorderSideWidth(declaration.value.end, builder));
437
463
  }
438
464
  function parseBorderInlineStyle(declaration, builder) {
439
465
  if (typeof declaration.value === "string") {
440
- builder.addDescriptor(declaration.property, parseBorderStyle(declaration.value, builder));
441
- } else if (declaration.value.start === declaration.value.end) {
442
- builder.addDescriptor(declaration.property, parseBorderStyle(declaration.value.start, builder));
466
+ dropUnsupportedInlineStyle(parseBorderStyle(declaration.value, builder), builder, declaration.property);
443
467
  } else {
444
- builder.addDescriptor("border-inline-start-style", parseBorderStyle(declaration.value.start, builder));
445
- builder.addDescriptor("border-inline-end-style", parseBorderStyle(declaration.value.end, builder));
468
+ dropUnsupportedInlineStyle(parseBorderStyle(declaration.value.start, builder), builder, "border-inline-start-style");
469
+ dropUnsupportedInlineStyle(parseBorderStyle(declaration.value.end, builder), builder, "border-inline-end-style");
470
+ }
471
+ }
472
+ function dropUnsupportedInlineStyle(style, builder, property) {
473
+ if (style !== undefined && style !== "solid") {
474
+ builder.addWarning("style", property, style);
446
475
  }
447
476
  }
448
477
  function parseFlexFlow({
@@ -608,7 +637,7 @@ function parseScale({
608
637
  }
609
638
  function parseScaleValue(translate, prop, builder) {
610
639
  if (translate === "none") {
611
- return 0;
640
+ return 1;
612
641
  }
613
642
  return parseLength(translate[prop], builder);
614
643
  }
@@ -658,6 +687,10 @@ function parseUnparsedDeclaration(declaration, builder) {
658
687
  builder.addWarning("property", property);
659
688
  return;
660
689
  }
690
+ if (unsupportedLogicalStyles.has(property)) {
691
+ builder.addWarning("property", property);
692
+ return;
693
+ }
661
694
  builder.setWarningProperty(property);
662
695
 
663
696
  /**
@@ -694,7 +727,10 @@ function parseUnparsedDeclaration(declaration, builder) {
694
727
  }
695
728
  function parseCustomDeclaration(declaration, builder) {
696
729
  const property = declaration.value.name;
697
- if (property === "-webkit-line-clamp") {
730
+ if ((0, _atRules.isMappingProperty)(property)) {
731
+ // Consumed before declarations so property order cannot affect mapping.
732
+ return;
733
+ } else if (property === "-webkit-line-clamp") {
698
734
  builder.addDescriptor(property, parseUnparsed(declaration.value.value, builder, property));
699
735
  } else if (property === "-rn-ripple-style") {
700
736
  if (parseUnparsed(declaration.value.value, builder, property) === "borderless") {
@@ -715,6 +751,11 @@ function parseCustomDeclaration(declaration, builder) {
715
751
  builder.addDescriptor(property, parseUnparsed(declaration.value.value, builder, property));
716
752
  } else if (property === "corner-shape") {
717
753
  parseCornerShape(declaration.value, builder);
754
+ } else if (property === "font-variant") {
755
+ const parsedFontVariant = parseFontVariantCaps(parseUnparsed(declaration.value.value, builder, property), builder);
756
+ if (parsedFontVariant !== undefined) {
757
+ builder.addDescriptor(property, parsedFontVariant);
758
+ }
718
759
  } else if (validProperties.has(property) || property.startsWith("--") || property.startsWith("-rn-")) {
719
760
  builder.addDescriptor(property, parseUnparsed(declaration.value.value, builder, property));
720
761
  } else {
@@ -862,6 +903,8 @@ function parseUnparsed(tokenOrValue, builder, property, allowAuto = allowAutoPro
862
903
  case "min":
863
904
  case "clamp":
864
905
  return parseCalcFn(tokenOrValue.value.name, tokenOrValue.value.arguments, builder, property);
906
+ case "color-mix":
907
+ return parseColorMix(tokenOrValue.value.arguments, builder, property);
865
908
  default:
866
909
  {
867
910
  builder.addWarning("value", `${tokenOrValue.value.name}()`);
@@ -1165,7 +1208,19 @@ function parseFontColorDeclaration(declaration, builder) {
1165
1208
  }
1166
1209
  }
1167
1210
  function parseColorDeclaration(declaration, builder) {
1168
- builder.addDescriptor(declaration.property, parseColor(declaration.value, builder));
1211
+ builder.addDescriptor(propertyRename[declaration.property] ?? declaration.property, parseColor(declaration.value, builder));
1212
+ }
1213
+
1214
+ /**
1215
+ * Lab/LCH/OKLab/OKLCH channels can be `NaN` when lightningcss resolves a
1216
+ * degenerate `color-mix()` at compile time (e.g. mixing black with
1217
+ * `transparent` in oklab yields `NaN` for the a/b chromaticity channels).
1218
+ * Passing `NaN` to colorjs.io produces an invalid string such as
1219
+ * `#NaNNaNNaN80`, which React Native silently discards. Per CSS Color 4 a
1220
+ * missing component is treated as `0`, so coerce `NaN` to `0`.
1221
+ */
1222
+ function nanToZero(value) {
1223
+ return Number.isNaN(value) ? 0 : value;
1169
1224
  }
1170
1225
  function parseColor(cssColor, builder) {
1171
1226
  if (typeof cssColor === "string") {
@@ -1218,28 +1273,28 @@ function parseColor(cssColor, builder) {
1218
1273
  case "lab":
1219
1274
  color = new _colorjs.default({
1220
1275
  space: cssColor.type,
1221
- coords: [cssColor.l, cssColor.a, cssColor.b],
1276
+ coords: [nanToZero(cssColor.l), nanToZero(cssColor.a), nanToZero(cssColor.b)],
1222
1277
  alpha: cssColor.alpha
1223
1278
  });
1224
1279
  break;
1225
1280
  case "lch":
1226
1281
  color = new _colorjs.default({
1227
1282
  space: cssColor.type,
1228
- coords: [cssColor.l, cssColor.c, cssColor.h],
1283
+ coords: [nanToZero(cssColor.l), nanToZero(cssColor.c), nanToZero(cssColor.h)],
1229
1284
  alpha: cssColor.alpha
1230
1285
  });
1231
1286
  break;
1232
1287
  case "oklab":
1233
1288
  color = new _colorjs.default({
1234
1289
  space: cssColor.type,
1235
- coords: [cssColor.l, cssColor.a, cssColor.b],
1290
+ coords: [nanToZero(cssColor.l), nanToZero(cssColor.a), nanToZero(cssColor.b)],
1236
1291
  alpha: cssColor.alpha
1237
1292
  });
1238
1293
  break;
1239
1294
  case "oklch":
1240
1295
  color = new _colorjs.default({
1241
1296
  space: cssColor.type,
1242
- coords: [cssColor.l, cssColor.c, cssColor.h],
1297
+ coords: [nanToZero(cssColor.l), nanToZero(cssColor.c), nanToZero(cssColor.h)],
1243
1298
  alpha: cssColor.alpha
1244
1299
  });
1245
1300
  break;
@@ -1472,8 +1527,8 @@ function parseTextShadow(declaration, builder) {
1472
1527
  return;
1473
1528
  }
1474
1529
  builder.addDescriptor("textShadowColor", parseColor(textShadow.color, builder));
1475
- builder.addDescriptor("*.textShadowOffset.width", parseLength(textShadow.xOffset, builder));
1476
- builder.addDescriptor("*.textShadowOffset.height", parseLength(textShadow.yOffset, builder));
1530
+ builder.addDescriptor("&.textShadowOffset.width", parseLength(textShadow.xOffset, builder));
1531
+ builder.addDescriptor("&.textShadowOffset.height", parseLength(textShadow.yOffset, builder));
1477
1532
  builder.addDescriptor("textShadowRadius", parseLength(textShadow.blur, builder));
1478
1533
  }
1479
1534
  function parseTextDecorationStyle(declaration, builder) {
@@ -1548,25 +1603,17 @@ function parseBorderStyle(value, builder) {
1548
1603
  function parseBorderBlockWidth(declaration, builder) {
1549
1604
  const start = parseBorderSideWidth(declaration.value.start, builder);
1550
1605
  const end = parseBorderSideWidth(declaration.value.end, builder);
1551
- if (start === end) {
1552
- builder.addDescriptor("border-block-width", start);
1553
- } else {
1554
- builder.addDescriptor("border-block-start-width", start);
1555
- builder.addDescriptor("border-block-end-width", end);
1556
- }
1606
+ builder.addDescriptor("border-top-width", start);
1607
+ builder.addDescriptor("border-bottom-width", end);
1557
1608
  }
1558
1609
  function parseBorderBlockStyle(declaration, builder) {
1559
1610
  const start = parseBorderStyle(declaration.value.start, builder);
1560
1611
  const end = parseBorderStyle(declaration.value.end, builder);
1561
- if (start == end) {
1562
- builder.addDescriptor("border-block-style", start);
1563
- } else {
1564
- builder.addDescriptor("border-block-start-style", start);
1565
- builder.addDescriptor("border-block-end-style", end);
1566
- }
1612
+ dropUnsupportedInlineStyle(start, builder, "border-block-start-style");
1613
+ dropUnsupportedInlineStyle(end, builder, "border-block-end-style");
1567
1614
  }
1568
1615
  function parseBorderSideWidthDeclaration(declaration, builder) {
1569
- builder.addDescriptor(declaration.property, parseBorderSideWidth(declaration.value, builder));
1616
+ builder.addDescriptor(propertyRename[declaration.property] ?? declaration.property, parseBorderSideWidth(declaration.value, builder));
1570
1617
  }
1571
1618
  function parseBorderSideWidth(value, builder) {
1572
1619
  if (value.type === "length") {
@@ -1595,14 +1642,14 @@ function parseFontFamily({
1595
1642
  return value[0];
1596
1643
  }
1597
1644
  function parseLineHeightDeclaration(declaration, builder) {
1598
- builder.addDescriptor("line-height", [{}, "lineHeight", [parseLineHeight(declaration.value, builder)], 1]);
1645
+ builder.addDescriptor("line-height", parseLineHeight(declaration.value, builder));
1599
1646
  }
1600
1647
  function parseLineHeight(value, builder) {
1601
1648
  switch (value.type) {
1602
1649
  case "normal":
1603
1650
  return undefined;
1604
1651
  case "number":
1605
- return [{}, "em", [value.value], 1];
1652
+ return [{}, "em", value.value, 1];
1606
1653
  case "length":
1607
1654
  {
1608
1655
  const length = value.value;
@@ -1717,12 +1764,12 @@ function parseBoxShadow({
1717
1764
  value
1718
1765
  }, builder) {
1719
1766
  for (const [index, shadow] of value.entries()) {
1720
- builder.addDescriptor(`*.boxShadow.[${index}].color`, parseColor(shadow.color, builder));
1721
- builder.addDescriptor(`*.boxShadow.[${index}].offsetX`, parseLength(shadow.xOffset, builder));
1722
- builder.addDescriptor(`*.boxShadow.[${index}].offsetY`, parseLength(shadow.yOffset, builder));
1723
- builder.addDescriptor(`*.boxShadow.[${index}].blurRadius`, parseLength(shadow.blur, builder));
1724
- builder.addDescriptor(`*.boxShadow.[${index}].spreadDistance`, parseLength(shadow.spread, builder));
1725
- builder.addDescriptor(`*.boxShadow.[${index}].inset`, shadow.inset ? true : undefined);
1767
+ builder.addDescriptor(`&.boxShadow.[${index}].color`, parseColor(shadow.color, builder));
1768
+ builder.addDescriptor(`&.boxShadow.[${index}].offsetX`, parseLength(shadow.xOffset, builder));
1769
+ builder.addDescriptor(`&.boxShadow.[${index}].offsetY`, parseLength(shadow.yOffset, builder));
1770
+ builder.addDescriptor(`&.boxShadow.[${index}].blurRadius`, parseLength(shadow.blur, builder));
1771
+ builder.addDescriptor(`&.boxShadow.[${index}].spreadDistance`, parseLength(shadow.spread, builder));
1772
+ builder.addDescriptor(`&.boxShadow.[${index}].inset`, shadow.inset ? true : undefined);
1726
1773
  }
1727
1774
  }
1728
1775
  function parseBoxSizing(declaration, builder) {
@@ -1914,6 +1961,51 @@ function parseCalcFn(name, tokens, builder, property) {
1914
1961
  }
1915
1962
  return;
1916
1963
  }
1964
+ function parseColorMix(tokens, builder, property) {
1965
+ const [inToken, whitespace, colorSpace, comma, ...remaining] = tokens;
1966
+ const rest = remaining.filter(token => token.type !== "token" || !["white-space", "comment"].includes(token.value.type));
1967
+ if (typeof inToken !== "object" || inToken.type !== "token" || inToken.value.type !== "ident" || inToken.value.value !== "in") {
1968
+ return;
1969
+ }
1970
+ if (typeof whitespace !== "object" || whitespace.type !== "token" || whitespace.value.type !== "white-space") {
1971
+ return;
1972
+ }
1973
+ if (typeof comma !== "object" || comma.type !== "token" || comma.value.type !== "comma") {
1974
+ return;
1975
+ }
1976
+ const colorSpaceArg = parseUnparsed(colorSpace, builder, property);
1977
+ if (typeof colorSpaceArg !== "string") {
1978
+ return;
1979
+ }
1980
+ let nextToken = rest.shift();
1981
+ const leftColorArg = parseUnparsed(nextToken, builder, property);
1982
+ if (!leftColorArg) {
1983
+ return;
1984
+ }
1985
+ nextToken = rest.shift();
1986
+ let leftColorPercentage;
1987
+ if (nextToken?.type !== "token" || nextToken.value.type !== "comma") {
1988
+ leftColorPercentage = parseUnparsed(nextToken, builder, property);
1989
+ nextToken = rest.shift();
1990
+ }
1991
+ if (typeof nextToken !== "object" || nextToken.type !== "token" || nextToken.value.type !== "comma") {
1992
+ return;
1993
+ }
1994
+ nextToken = rest.shift();
1995
+ const rightColorArg = parseUnparsed(nextToken, builder, property);
1996
+ nextToken = rest.shift();
1997
+ let rightColorPercentage;
1998
+ if (nextToken?.type !== "token" || nextToken.value.type !== "comma") {
1999
+ rightColorPercentage = parseUnparsed(nextToken, builder, property);
2000
+ nextToken = rest.shift();
2001
+ }
2002
+
2003
+ // We should have expired all tokens now
2004
+ if (nextToken) {
2005
+ return;
2006
+ }
2007
+ return [{}, "colorMix", [colorSpaceArg, leftColorArg, leftColorPercentage, rightColorArg, rightColorPercentage]];
2008
+ }
1917
2009
  function parseCalcArguments([...args], builder, property) {
1918
2010
  const parsed = [];
1919
2011
  for (const arg of args) {
@@ -2168,7 +2260,7 @@ function kebabCase(str) {
2168
2260
  return str.replace(/[A-Z]+(?![a-z])|[A-Z]/g, ($, ofs) => (ofs ? "-" : "") + $.toLowerCase());
2169
2261
  }
2170
2262
  function parseBackgroundImage(declaration, builder) {
2171
- builder.addDescriptor("experimental_backgroundImage", declaration.value.flatMap(image => {
2263
+ builder.addDescriptor("experimental_backgroundImage", [{}, "join", [declaration.value.flatMap(image => {
2172
2264
  switch (image.type) {
2173
2265
  case "gradient":
2174
2266
  {
@@ -2179,7 +2271,7 @@ function parseBackgroundImage(declaration, builder) {
2179
2271
  return ["none"];
2180
2272
  }
2181
2273
  return [];
2182
- }));
2274
+ }), ", "]]);
2183
2275
  return;
2184
2276
  }
2185
2277
  function parseGradient(gradient, builder) {
@@ -2215,21 +2307,21 @@ function parseGradientItem(item, builder) {
2215
2307
  if (item.position) {
2216
2308
  args.push(parseLength(item.position, builder));
2217
2309
  }
2218
- return [{}, "@colorStop", args, 1];
2310
+ return [{}, "colorStop", args, 1];
2219
2311
  }
2220
2312
  case "hint":
2221
- return parseLength(item.value, builder);
2313
+ return [{}, "gradientPosition", parseLength(item.value, builder), 1];
2222
2314
  }
2223
2315
  }
2224
2316
  function parseObjectFit(declaration, builder) {
2225
2317
  builder.addMapping({
2226
- "object-fit": "contentFit"
2318
+ "object-fit": ["contentFit"]
2227
2319
  });
2228
2320
  builder.addDescriptor("object-fit", parseUnparsed(declaration.value, builder, "object-fit"));
2229
2321
  }
2230
2322
  function parseObjectPosition(declaration, builder) {
2231
2323
  builder.addMapping({
2232
- "object-position": "contentPosition"
2324
+ "object-position": ["contentPosition"]
2233
2325
  });
2234
2326
  builder.addDescriptor("object-position", [{}, "join", [parseUnparsed(declaration.value, builder, "object-position"), " "]]);
2235
2327
  }
@@ -2277,7 +2369,7 @@ function parseFilter(declaration, builder) {
2277
2369
  };
2278
2370
  case "hue-rotate":
2279
2371
  return {
2280
- [value.type]: parseAngle(value.value, builder)
2372
+ [(0, _selectors.toRNProperty)(value.type)]: parseAngle(value.value, builder)
2281
2373
  };
2282
2374
  case "drop-shadow":
2283
2375
  return [{}, (0, _selectors.toRNProperty)(value.type), [parseLength(value.value.xOffset, builder), parseLength(value.value.yOffset, builder), parseLength(value.value.blur, builder), parseColor(value.value.color, builder)]];