react-native-css 0.0.0-nightly.416840c → 0.0.0-nightly.4562bdf

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 (793) hide show
  1. package/README.md +35 -5
  2. package/dist/commonjs/babel/helpers.js +7 -0
  3. package/dist/commonjs/babel/helpers.js.map +1 -1
  4. package/dist/commonjs/babel/import-plugin.js +20 -8
  5. package/dist/commonjs/babel/import-plugin.js.map +1 -1
  6. package/dist/commonjs/babel/react-native-web.js +17 -4
  7. package/dist/commonjs/babel/react-native-web.js.map +1 -1
  8. package/dist/commonjs/babel/react-native.js +9 -4
  9. package/dist/commonjs/babel/react-native.js.map +1 -1
  10. package/dist/commonjs/compiler/atRules.js +35 -0
  11. package/dist/commonjs/compiler/atRules.js.map +1 -1
  12. package/dist/commonjs/compiler/compiler.js +198 -39
  13. package/dist/commonjs/compiler/compiler.js.map +1 -1
  14. package/dist/commonjs/compiler/container-query.js +6 -1
  15. package/dist/commonjs/compiler/container-query.js.map +1 -1
  16. package/dist/commonjs/compiler/declarations.js +248 -96
  17. package/dist/commonjs/compiler/declarations.js.map +1 -1
  18. package/dist/commonjs/compiler/individual-transforms.js +129 -0
  19. package/dist/commonjs/compiler/individual-transforms.js.map +1 -0
  20. package/dist/commonjs/compiler/inline-variables.js +47 -1
  21. package/dist/commonjs/compiler/inline-variables.js.map +1 -1
  22. package/dist/commonjs/compiler/lightningcss-loader.js +15 -2
  23. package/dist/commonjs/compiler/lightningcss-loader.js.map +1 -1
  24. package/dist/commonjs/compiler/media-query.js +16 -6
  25. package/dist/commonjs/compiler/media-query.js.map +1 -1
  26. package/dist/commonjs/compiler/selector-builder.js +18 -6
  27. package/dist/commonjs/compiler/selector-builder.js.map +1 -1
  28. package/dist/commonjs/compiler/stylesheet.js +33 -9
  29. package/dist/commonjs/compiler/stylesheet.js.map +1 -1
  30. package/dist/commonjs/compiler/supports.js +2 -2
  31. package/dist/commonjs/compiler/supports.js.map +1 -1
  32. package/dist/commonjs/components/ActivityIndicator.js +4 -4
  33. package/dist/commonjs/components/ActivityIndicator.js.map +1 -1
  34. package/dist/commonjs/components/Button.js +4 -4
  35. package/dist/commonjs/components/Button.js.map +1 -1
  36. package/dist/commonjs/components/FlatList.js +5 -4
  37. package/dist/commonjs/components/FlatList.js.map +1 -1
  38. package/dist/commonjs/components/Image.js +4 -4
  39. package/dist/commonjs/components/Image.js.map +1 -1
  40. package/dist/commonjs/components/ImageBackground.js +6 -10
  41. package/dist/commonjs/components/ImageBackground.js.map +1 -1
  42. package/dist/commonjs/components/KeyboardAvoidingView.js +6 -7
  43. package/dist/commonjs/components/KeyboardAvoidingView.js.map +1 -1
  44. package/dist/commonjs/components/Pressable.js +4 -4
  45. package/dist/commonjs/components/Pressable.js.map +1 -1
  46. package/dist/commonjs/components/SafeAreaProvider.js +13 -0
  47. package/dist/commonjs/components/SafeAreaProvider.js.map +1 -0
  48. package/dist/commonjs/components/ScrollView.js +4 -4
  49. package/dist/commonjs/components/ScrollView.js.map +1 -1
  50. package/dist/commonjs/components/Switch.js +4 -4
  51. package/dist/commonjs/components/Switch.js.map +1 -1
  52. package/dist/commonjs/components/Text.js +4 -4
  53. package/dist/commonjs/components/Text.js.map +1 -1
  54. package/dist/commonjs/components/TextInput.js +4 -4
  55. package/dist/commonjs/components/TextInput.js.map +1 -1
  56. package/dist/commonjs/components/TouchableHighlight.js +4 -4
  57. package/dist/commonjs/components/TouchableHighlight.js.map +1 -1
  58. package/dist/commonjs/components/TouchableOpacity.js +4 -4
  59. package/dist/commonjs/components/TouchableOpacity.js.map +1 -1
  60. package/dist/commonjs/components/TouchableWithoutFeedback.js +4 -4
  61. package/dist/commonjs/components/TouchableWithoutFeedback.js.map +1 -1
  62. package/dist/commonjs/components/View.js +4 -4
  63. package/dist/commonjs/components/View.js.map +1 -1
  64. package/dist/commonjs/components/VirtualizedList.js +4 -4
  65. package/dist/commonjs/components/VirtualizedList.js.map +1 -1
  66. package/dist/commonjs/components/copyComponentProperties.js +19 -0
  67. package/dist/commonjs/components/copyComponentProperties.js.map +1 -0
  68. package/dist/commonjs/components/index.cjs +52 -4
  69. package/dist/commonjs/components/index.cjs.map +1 -1
  70. package/dist/commonjs/components/react-native-safe-area-context.native.js +10 -0
  71. package/dist/commonjs/components/react-native-safe-area-context.native.js.map +1 -1
  72. package/dist/commonjs/jest/index.js +3 -1
  73. package/dist/commonjs/jest/index.js.map +1 -1
  74. package/dist/commonjs/metro/cache-version.js +43 -0
  75. package/dist/commonjs/metro/cache-version.js.map +1 -0
  76. package/dist/commonjs/metro/index.js +2 -0
  77. package/dist/commonjs/metro/index.js.map +1 -1
  78. package/dist/commonjs/metro/metro-transformer.js +16 -3
  79. package/dist/commonjs/metro/metro-transformer.js.map +1 -1
  80. package/dist/commonjs/metro/resolver.js +5 -3
  81. package/dist/commonjs/metro/resolver.js.map +1 -1
  82. package/dist/commonjs/metro/typescript.js +26 -6
  83. package/dist/commonjs/metro/typescript.js.map +1 -1
  84. package/dist/commonjs/metro/warnings.js +135 -0
  85. package/dist/commonjs/metro/warnings.js.map +1 -0
  86. package/dist/commonjs/native/api.js +21 -12
  87. package/dist/commonjs/native/api.js.map +1 -1
  88. package/dist/commonjs/native/conditions/attributes.js +16 -9
  89. package/dist/commonjs/native/conditions/attributes.js.map +1 -1
  90. package/dist/commonjs/native/conditions/container-query.js +11 -11
  91. package/dist/commonjs/native/conditions/container-query.js.map +1 -1
  92. package/dist/commonjs/native/conditions/guards.js +7 -0
  93. package/dist/commonjs/native/conditions/guards.js.map +1 -1
  94. package/dist/commonjs/native/conditions/media-query.js +1 -1
  95. package/dist/commonjs/native/conditions/media-query.js.map +1 -1
  96. package/dist/commonjs/native/objects.js +11 -18
  97. package/dist/commonjs/native/objects.js.map +1 -1
  98. package/dist/commonjs/native/react/interaction.js +10 -5
  99. package/dist/commonjs/native/react/interaction.js.map +1 -1
  100. package/dist/commonjs/native/react/rules.js +45 -38
  101. package/dist/commonjs/native/react/rules.js.map +1 -1
  102. package/dist/commonjs/native/react/useNativeCss.js +80 -19
  103. package/dist/commonjs/native/react/useNativeCss.js.map +1 -1
  104. package/dist/commonjs/native/react/usePassthrough.js +5 -2
  105. package/dist/commonjs/native/react/usePassthrough.js.map +1 -1
  106. package/dist/commonjs/native/reactivity.js +150 -68
  107. package/dist/commonjs/native/reactivity.js.map +1 -1
  108. package/dist/commonjs/native/reanimated.js +15 -3
  109. package/dist/commonjs/native/reanimated.js.map +1 -1
  110. package/dist/commonjs/native/styles/calculate-props.js +139 -26
  111. package/dist/commonjs/native/styles/calculate-props.js.map +1 -1
  112. package/dist/commonjs/native/styles/functions/animation-timing.js +2 -1
  113. package/dist/commonjs/native/styles/functions/animation-timing.js.map +1 -1
  114. package/dist/commonjs/native/styles/functions/color-mix.js +68 -0
  115. package/dist/commonjs/native/styles/functions/color-mix.js.map +1 -0
  116. package/dist/commonjs/native/styles/functions/filters.js +19 -5
  117. package/dist/commonjs/native/styles/functions/filters.js.map +1 -1
  118. package/dist/commonjs/native/styles/functions/index.js +11 -0
  119. package/dist/commonjs/native/styles/functions/index.js.map +1 -1
  120. package/dist/commonjs/native/styles/functions/numeric-functions.js +4 -3
  121. package/dist/commonjs/native/styles/functions/numeric-functions.js.map +1 -1
  122. package/dist/commonjs/native/styles/functions/platform-functions.js +2 -1
  123. package/dist/commonjs/native/styles/functions/platform-functions.js.map +1 -1
  124. package/dist/commonjs/native/styles/functions/string-functions.js +22 -6
  125. package/dist/commonjs/native/styles/functions/string-functions.js.map +1 -1
  126. package/dist/commonjs/native/styles/functions/transform-functions.js +95 -105
  127. package/dist/commonjs/native/styles/functions/transform-functions.js.map +1 -1
  128. package/dist/commonjs/native/styles/index.js +361 -34
  129. package/dist/commonjs/native/styles/index.js.map +1 -1
  130. package/dist/commonjs/native/styles/resolve.js +136 -19
  131. package/dist/commonjs/native/styles/resolve.js.map +1 -1
  132. package/dist/commonjs/native/styles/scale-factor.js +12 -0
  133. package/dist/commonjs/native/styles/scale-factor.js.map +1 -0
  134. package/dist/commonjs/native/styles/shorthands/_handler.js +10 -0
  135. package/dist/commonjs/native/styles/shorthands/_handler.js.map +1 -1
  136. package/dist/commonjs/native/styles/shorthands/animation.js +6 -3
  137. package/dist/commonjs/native/styles/shorthands/animation.js.map +1 -1
  138. package/dist/commonjs/native/styles/shorthands/box-shadow.js +41 -20
  139. package/dist/commonjs/native/styles/shorthands/box-shadow.js.map +1 -1
  140. package/dist/commonjs/native/styles/shorthands/index.js +11 -0
  141. package/dist/commonjs/native/styles/shorthands/index.js.map +1 -1
  142. package/dist/commonjs/native/styles/shorthands/logical-border-width.js +22 -0
  143. package/dist/commonjs/native/styles/shorthands/logical-border-width.js.map +1 -0
  144. package/dist/commonjs/native/styles/shorthands/transform.js +31 -8
  145. package/dist/commonjs/native/styles/shorthands/transform.js.map +1 -1
  146. package/dist/commonjs/native/styles/variables.js +173 -48
  147. package/dist/commonjs/native/styles/variables.js.map +1 -1
  148. package/dist/commonjs/native-internal/root.js +46 -7
  149. package/dist/commonjs/native-internal/root.js.map +1 -1
  150. package/dist/commonjs/native-internal/style-collection.js +56 -74
  151. package/dist/commonjs/native-internal/style-collection.js.map +1 -1
  152. package/dist/commonjs/native-internal/variables.js +1 -1
  153. package/dist/commonjs/native-internal/variables.js.map +1 -1
  154. package/dist/commonjs/utilities/dot-notation.types.js +4 -0
  155. package/dist/commonjs/utilities/equality.js +41 -0
  156. package/dist/commonjs/utilities/equality.js.map +1 -0
  157. package/dist/commonjs/utilities/index.js +11 -0
  158. package/dist/commonjs/utilities/index.js.map +1 -1
  159. package/dist/commonjs/utilities/specificity.js +12 -12
  160. package/dist/commonjs/utilities/specificity.js.map +1 -1
  161. package/dist/commonjs/utilities/style-descriptor.js +32 -8
  162. package/dist/commonjs/utilities/style-descriptor.js.map +1 -1
  163. package/dist/commonjs/web/api.js +7 -4
  164. package/dist/commonjs/web/api.js.map +1 -1
  165. package/dist/commonjs/web/assign-style.js +4 -1
  166. package/dist/commonjs/web/assign-style.js.map +1 -1
  167. package/dist/module/babel/helpers.js +6 -0
  168. package/dist/module/babel/helpers.js.map +1 -1
  169. package/dist/module/babel/import-plugin.js +22 -10
  170. package/dist/module/babel/import-plugin.js.map +1 -1
  171. package/dist/module/babel/react-native-web.js +16 -4
  172. package/dist/module/babel/react-native-web.js.map +1 -1
  173. package/dist/module/babel/react-native.js +9 -4
  174. package/dist/module/babel/react-native.js.map +1 -1
  175. package/dist/module/compiler/atRules.js +33 -0
  176. package/dist/module/compiler/atRules.js.map +1 -1
  177. package/dist/module/compiler/compiler.js +200 -41
  178. package/dist/module/compiler/compiler.js.map +1 -1
  179. package/dist/module/compiler/compiler.types.js +4 -0
  180. package/dist/module/compiler/compiler.types.js.map +1 -1
  181. package/dist/module/compiler/container-query.js +6 -1
  182. package/dist/module/compiler/container-query.js.map +1 -1
  183. package/dist/module/compiler/declarations.js +247 -95
  184. package/dist/module/compiler/declarations.js.map +1 -1
  185. package/dist/module/compiler/individual-transforms.js +125 -0
  186. package/dist/module/compiler/individual-transforms.js.map +1 -0
  187. package/dist/module/compiler/inline-variables.js +47 -1
  188. package/dist/module/compiler/inline-variables.js.map +1 -1
  189. package/dist/module/compiler/lightningcss-loader.js +14 -2
  190. package/dist/module/compiler/lightningcss-loader.js.map +1 -1
  191. package/dist/module/compiler/media-query.js +16 -6
  192. package/dist/module/compiler/media-query.js.map +1 -1
  193. package/dist/module/compiler/selector-builder.js +18 -7
  194. package/dist/module/compiler/selector-builder.js.map +1 -1
  195. package/dist/module/compiler/stylesheet.js +33 -9
  196. package/dist/module/compiler/stylesheet.js.map +1 -1
  197. package/dist/module/compiler/supports.js +2 -2
  198. package/dist/module/compiler/supports.js.map +1 -1
  199. package/dist/module/components/ActivityIndicator.js +3 -2
  200. package/dist/module/components/ActivityIndicator.js.map +1 -1
  201. package/dist/module/components/Button.js +3 -2
  202. package/dist/module/components/Button.js.map +1 -1
  203. package/dist/module/components/FlatList.js +4 -2
  204. package/dist/module/components/FlatList.js.map +1 -1
  205. package/dist/module/components/Image.js +3 -2
  206. package/dist/module/components/Image.js.map +1 -1
  207. package/dist/module/components/ImageBackground.js +5 -8
  208. package/dist/module/components/ImageBackground.js.map +1 -1
  209. package/dist/module/components/KeyboardAvoidingView.js +5 -5
  210. package/dist/module/components/KeyboardAvoidingView.js.map +1 -1
  211. package/dist/module/components/Pressable.js +3 -2
  212. package/dist/module/components/Pressable.js.map +1 -1
  213. package/dist/module/components/SafeAreaProvider.js +4 -0
  214. package/dist/module/components/SafeAreaProvider.js.map +1 -0
  215. package/dist/module/components/ScrollView.js +3 -2
  216. package/dist/module/components/ScrollView.js.map +1 -1
  217. package/dist/module/components/Switch.js +3 -2
  218. package/dist/module/components/Switch.js.map +1 -1
  219. package/dist/module/components/Text.js +3 -2
  220. package/dist/module/components/Text.js.map +1 -1
  221. package/dist/module/components/TextInput.js +3 -2
  222. package/dist/module/components/TextInput.js.map +1 -1
  223. package/dist/module/components/TouchableHighlight.js +3 -2
  224. package/dist/module/components/TouchableHighlight.js.map +1 -1
  225. package/dist/module/components/TouchableOpacity.js +3 -2
  226. package/dist/module/components/TouchableOpacity.js.map +1 -1
  227. package/dist/module/components/TouchableWithoutFeedback.js +3 -2
  228. package/dist/module/components/TouchableWithoutFeedback.js.map +1 -1
  229. package/dist/module/components/View.js +3 -2
  230. package/dist/module/components/View.js.map +1 -1
  231. package/dist/module/components/VirtualizedList.js +3 -2
  232. package/dist/module/components/VirtualizedList.js.map +1 -1
  233. package/dist/module/components/copyComponentProperties.js +15 -0
  234. package/dist/module/components/copyComponentProperties.js.map +1 -0
  235. package/dist/module/components/index.cjs +52 -4
  236. package/dist/module/components/index.cjs.map +1 -1
  237. package/dist/module/components/react-native-safe-area-context.native.js +9 -1
  238. package/dist/module/components/react-native-safe-area-context.native.js.map +1 -1
  239. package/dist/module/jest/index.js +3 -1
  240. package/dist/module/jest/index.js.map +1 -1
  241. package/dist/module/metro/cache-version.js +39 -0
  242. package/dist/module/metro/cache-version.js.map +1 -0
  243. package/dist/module/metro/index.js +2 -0
  244. package/dist/module/metro/index.js.map +1 -1
  245. package/dist/module/metro/metro-transformer.js +16 -3
  246. package/dist/module/metro/metro-transformer.js.map +1 -1
  247. package/dist/module/metro/resolver.js +5 -3
  248. package/dist/module/metro/resolver.js.map +1 -1
  249. package/dist/module/metro/typescript.js +26 -6
  250. package/dist/module/metro/typescript.js.map +1 -1
  251. package/dist/module/metro/warnings.js +131 -0
  252. package/dist/module/metro/warnings.js.map +1 -0
  253. package/dist/module/native/api.js +22 -14
  254. package/dist/module/native/api.js.map +1 -1
  255. package/dist/module/native/conditions/attributes.js +16 -9
  256. package/dist/module/native/conditions/attributes.js.map +1 -1
  257. package/dist/module/native/conditions/container-query.js +11 -11
  258. package/dist/module/native/conditions/container-query.js.map +1 -1
  259. package/dist/module/native/conditions/guards.js +7 -0
  260. package/dist/module/native/conditions/guards.js.map +1 -1
  261. package/dist/module/native/conditions/media-query.js +1 -1
  262. package/dist/module/native/conditions/media-query.js.map +1 -1
  263. package/dist/module/native/objects.js +11 -18
  264. package/dist/module/native/objects.js.map +1 -1
  265. package/dist/module/native/react/interaction.js +10 -5
  266. package/dist/module/native/react/interaction.js.map +1 -1
  267. package/dist/module/native/react/rules.js +46 -39
  268. package/dist/module/native/react/rules.js.map +1 -1
  269. package/dist/module/native/react/useNativeCss.js +83 -22
  270. package/dist/module/native/react/useNativeCss.js.map +1 -1
  271. package/dist/module/native/react/usePassthrough.js +5 -2
  272. package/dist/module/native/react/usePassthrough.js.map +1 -1
  273. package/dist/module/native/reactivity.js +131 -66
  274. package/dist/module/native/reactivity.js.map +1 -1
  275. package/dist/module/native/reanimated.js +15 -3
  276. package/dist/module/native/reanimated.js.map +1 -1
  277. package/dist/module/native/styles/calculate-props.js +139 -26
  278. package/dist/module/native/styles/calculate-props.js.map +1 -1
  279. package/dist/module/native/styles/functions/animation-timing.js +2 -1
  280. package/dist/module/native/styles/functions/animation-timing.js.map +1 -1
  281. package/dist/module/native/styles/functions/color-mix.js +63 -0
  282. package/dist/module/native/styles/functions/color-mix.js.map +1 -0
  283. package/dist/module/native/styles/functions/filters.js +17 -4
  284. package/dist/module/native/styles/functions/filters.js.map +1 -1
  285. package/dist/module/native/styles/functions/index.js +1 -0
  286. package/dist/module/native/styles/functions/index.js.map +1 -1
  287. package/dist/module/native/styles/functions/numeric-functions.js +4 -3
  288. package/dist/module/native/styles/functions/numeric-functions.js.map +1 -1
  289. package/dist/module/native/styles/functions/platform-functions.js +2 -1
  290. package/dist/module/native/styles/functions/platform-functions.js.map +1 -1
  291. package/dist/module/native/styles/functions/string-functions.js +19 -5
  292. package/dist/module/native/styles/functions/string-functions.js.map +1 -1
  293. package/dist/module/native/styles/functions/transform-functions.js +93 -104
  294. package/dist/module/native/styles/functions/transform-functions.js.map +1 -1
  295. package/dist/module/native/styles/index.js +362 -34
  296. package/dist/module/native/styles/index.js.map +1 -1
  297. package/dist/module/native/styles/resolve.js +136 -19
  298. package/dist/module/native/styles/resolve.js.map +1 -1
  299. package/dist/module/native/styles/scale-factor.js +8 -0
  300. package/dist/module/native/styles/scale-factor.js.map +1 -0
  301. package/dist/module/native/styles/shorthands/_handler.js +11 -1
  302. package/dist/module/native/styles/shorthands/_handler.js.map +1 -1
  303. package/dist/module/native/styles/shorthands/animation.js +6 -3
  304. package/dist/module/native/styles/shorthands/animation.js.map +1 -1
  305. package/dist/module/native/styles/shorthands/box-shadow.js +43 -21
  306. package/dist/module/native/styles/shorthands/box-shadow.js.map +1 -1
  307. package/dist/module/native/styles/shorthands/index.js +1 -0
  308. package/dist/module/native/styles/shorthands/index.js.map +1 -1
  309. package/dist/module/native/styles/shorthands/logical-border-width.js +18 -0
  310. package/dist/module/native/styles/shorthands/logical-border-width.js.map +1 -0
  311. package/dist/module/native/styles/shorthands/transform.js +31 -8
  312. package/dist/module/native/styles/shorthands/transform.js.map +1 -1
  313. package/dist/module/native/styles/variables.js +174 -50
  314. package/dist/module/native/styles/variables.js.map +1 -1
  315. package/dist/module/native-internal/root.js +44 -7
  316. package/dist/module/native-internal/root.js.map +1 -1
  317. package/dist/module/native-internal/style-collection.js +45 -75
  318. package/dist/module/native-internal/style-collection.js.map +1 -1
  319. package/dist/module/native-internal/variables.js +2 -2
  320. package/dist/module/native-internal/variables.js.map +1 -1
  321. package/dist/module/utilities/dot-notation.types.js +2 -0
  322. package/dist/module/utilities/equality.js +37 -0
  323. package/dist/module/utilities/equality.js.map +1 -0
  324. package/dist/module/utilities/index.js +1 -0
  325. package/dist/module/utilities/index.js.map +1 -1
  326. package/dist/module/utilities/specificity.js +12 -12
  327. package/dist/module/utilities/specificity.js.map +1 -1
  328. package/dist/module/utilities/style-descriptor.js +30 -8
  329. package/dist/module/utilities/style-descriptor.js.map +1 -1
  330. package/dist/module/web/api.js +7 -4
  331. package/dist/module/web/api.js.map +1 -1
  332. package/dist/module/web/assign-style.js +4 -1
  333. package/dist/module/web/assign-style.js.map +1 -1
  334. package/dist/typescript/commonjs/src/babel/helpers.d.ts +2 -1
  335. package/dist/typescript/commonjs/src/babel/helpers.d.ts.map +1 -1
  336. package/dist/typescript/commonjs/src/babel/import-plugin.d.ts.map +1 -1
  337. package/dist/typescript/commonjs/src/babel/react-native-web.d.ts +2 -1
  338. package/dist/typescript/commonjs/src/babel/react-native-web.d.ts.map +1 -1
  339. package/dist/typescript/commonjs/src/babel/react-native.d.ts.map +1 -1
  340. package/dist/typescript/commonjs/src/compiler/atRules.d.ts +4 -1
  341. package/dist/typescript/commonjs/src/compiler/atRules.d.ts.map +1 -1
  342. package/dist/typescript/commonjs/src/compiler/compiler.d.ts +1 -5
  343. package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -1
  344. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +26 -12
  345. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -1
  346. package/dist/typescript/commonjs/src/compiler/declarations.d.ts +3 -3
  347. package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -1
  348. package/dist/typescript/commonjs/src/compiler/individual-transforms.d.ts +10 -0
  349. package/dist/typescript/commonjs/src/compiler/individual-transforms.d.ts.map +1 -0
  350. package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts +1 -1
  351. package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts.map +1 -1
  352. package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts.map +1 -1
  353. package/dist/typescript/commonjs/src/compiler/media-query.d.ts +1 -1
  354. package/dist/typescript/commonjs/src/compiler/media-query.d.ts.map +1 -1
  355. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts +2 -1
  356. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -1
  357. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +10 -10
  358. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -1
  359. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +2 -4
  360. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -1
  361. package/dist/typescript/commonjs/src/components/Button.d.ts +2 -4
  362. package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -1
  363. package/dist/typescript/commonjs/src/components/FlatList.d.ts +2 -2
  364. package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -1
  365. package/dist/typescript/commonjs/src/components/Image.d.ts +2 -4
  366. package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -1
  367. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts +2 -4
  368. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts.map +1 -1
  369. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts +2 -4
  370. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts.map +1 -1
  371. package/dist/typescript/commonjs/src/components/Pressable.d.ts +2 -4
  372. package/dist/typescript/commonjs/src/components/Pressable.d.ts.map +1 -1
  373. package/dist/typescript/commonjs/src/components/SafeAreaProvider.d.ts +2 -0
  374. package/dist/typescript/commonjs/src/components/SafeAreaProvider.d.ts.map +1 -0
  375. package/dist/typescript/commonjs/src/components/ScrollView.d.ts +2 -4
  376. package/dist/typescript/commonjs/src/components/ScrollView.d.ts.map +1 -1
  377. package/dist/typescript/commonjs/src/components/Switch.d.ts +2 -6
  378. package/dist/typescript/commonjs/src/components/Switch.d.ts.map +1 -1
  379. package/dist/typescript/commonjs/src/components/Text.d.ts +2 -6
  380. package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -1
  381. package/dist/typescript/commonjs/src/components/TextInput.d.ts +2 -4
  382. package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -1
  383. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts +2 -4
  384. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts.map +1 -1
  385. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts +2 -4
  386. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts.map +1 -1
  387. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts +2 -4
  388. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts.map +1 -1
  389. package/dist/typescript/commonjs/src/components/View.d.ts +2 -6
  390. package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -1
  391. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts +2 -2
  392. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts.map +1 -1
  393. package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts +5 -0
  394. package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts.map +1 -0
  395. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts +2 -1
  396. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts.map +1 -1
  397. package/dist/typescript/commonjs/src/jest/index.d.ts +4 -12
  398. package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -1
  399. package/dist/typescript/commonjs/src/metro/cache-version.d.ts +8 -0
  400. package/dist/typescript/commonjs/src/metro/cache-version.d.ts.map +1 -0
  401. package/dist/typescript/commonjs/src/metro/index.d.ts +8 -4
  402. package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -1
  403. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts +9 -4
  404. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -1
  405. package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -1
  406. package/dist/typescript/commonjs/src/metro/typescript.d.ts.map +1 -1
  407. package/dist/typescript/commonjs/src/metro/warnings.d.ts +13 -0
  408. package/dist/typescript/commonjs/src/metro/warnings.d.ts.map +1 -0
  409. package/dist/typescript/commonjs/src/native/api.d.ts +5 -9
  410. package/dist/typescript/commonjs/src/native/api.d.ts.map +1 -1
  411. package/dist/typescript/commonjs/src/native/conditions/container-query.d.ts.map +1 -1
  412. package/dist/typescript/commonjs/src/native/conditions/guards.d.ts +2 -1
  413. package/dist/typescript/commonjs/src/native/conditions/guards.d.ts.map +1 -1
  414. package/dist/typescript/commonjs/src/native/objects.d.ts.map +1 -1
  415. package/dist/typescript/commonjs/src/native/react/interaction.d.ts +1 -1
  416. package/dist/typescript/commonjs/src/native/react/interaction.d.ts.map +1 -1
  417. package/dist/typescript/commonjs/src/native/react/rules.d.ts +7 -2
  418. package/dist/typescript/commonjs/src/native/react/rules.d.ts.map +1 -1
  419. package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts +1 -4
  420. package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts.map +1 -1
  421. package/dist/typescript/commonjs/src/native/react/usePassthrough.d.ts.map +1 -1
  422. package/dist/typescript/commonjs/src/native/reactivity.d.ts +36 -18
  423. package/dist/typescript/commonjs/src/native/reactivity.d.ts.map +1 -1
  424. package/dist/typescript/commonjs/src/native/reanimated.d.ts.map +1 -1
  425. package/dist/typescript/commonjs/src/native/styles/calculate-props.d.ts +11 -2
  426. package/dist/typescript/commonjs/src/native/styles/calculate-props.d.ts.map +1 -1
  427. package/dist/typescript/commonjs/src/native/styles/functions/animation-timing.d.ts.map +1 -1
  428. package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts +3 -0
  429. package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts.map +1 -0
  430. package/dist/typescript/commonjs/src/native/styles/functions/filters.d.ts +2 -0
  431. package/dist/typescript/commonjs/src/native/styles/functions/filters.d.ts.map +1 -1
  432. package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts +1 -0
  433. package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts.map +1 -1
  434. package/dist/typescript/commonjs/src/native/styles/functions/numeric-functions.d.ts.map +1 -1
  435. package/dist/typescript/commonjs/src/native/styles/functions/platform-functions.d.ts.map +1 -1
  436. package/dist/typescript/commonjs/src/native/styles/functions/string-functions.d.ts +2 -0
  437. package/dist/typescript/commonjs/src/native/styles/functions/string-functions.d.ts.map +1 -1
  438. package/dist/typescript/commonjs/src/native/styles/functions/transform-functions.d.ts +2 -0
  439. package/dist/typescript/commonjs/src/native/styles/functions/transform-functions.d.ts.map +1 -1
  440. package/dist/typescript/commonjs/src/native/styles/index.d.ts +16 -4
  441. package/dist/typescript/commonjs/src/native/styles/index.d.ts.map +1 -1
  442. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts +4 -1
  443. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts.map +1 -1
  444. package/dist/typescript/commonjs/src/native/styles/scale-factor.d.ts +2 -0
  445. package/dist/typescript/commonjs/src/native/styles/scale-factor.d.ts.map +1 -0
  446. package/dist/typescript/commonjs/src/native/styles/shorthands/_handler.d.ts.map +1 -1
  447. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts.map +1 -1
  448. package/dist/typescript/commonjs/src/native/styles/shorthands/box-shadow.d.ts.map +1 -1
  449. package/dist/typescript/commonjs/src/native/styles/shorthands/index.d.ts +1 -0
  450. package/dist/typescript/commonjs/src/native/styles/shorthands/index.d.ts.map +1 -1
  451. package/dist/typescript/commonjs/src/native/styles/shorthands/logical-border-width.d.ts +4 -0
  452. package/dist/typescript/commonjs/src/native/styles/shorthands/logical-border-width.d.ts.map +1 -0
  453. package/dist/typescript/commonjs/src/native/styles/shorthands/transform.d.ts.map +1 -1
  454. package/dist/typescript/commonjs/src/native/styles/variables.d.ts +3 -2
  455. package/dist/typescript/commonjs/src/native/styles/variables.d.ts.map +1 -1
  456. package/dist/typescript/commonjs/src/native-internal/root.d.ts +45 -0
  457. package/dist/typescript/commonjs/src/native-internal/root.d.ts.map +1 -1
  458. package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts +2 -2
  459. package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts.map +1 -1
  460. package/dist/typescript/commonjs/src/native-internal/variables.d.ts +1 -1
  461. package/dist/typescript/commonjs/src/native-internal/variables.d.ts.map +1 -1
  462. package/dist/typescript/commonjs/src/runtime.types.d.ts +20 -15
  463. package/dist/typescript/commonjs/src/runtime.types.d.ts.map +1 -1
  464. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts +3 -2
  465. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts.map +1 -1
  466. package/dist/typescript/commonjs/src/utilities/equality.d.ts +2 -0
  467. package/dist/typescript/commonjs/src/utilities/equality.d.ts.map +1 -0
  468. package/dist/typescript/commonjs/src/utilities/index.d.ts +1 -0
  469. package/dist/typescript/commonjs/src/utilities/index.d.ts.map +1 -1
  470. package/dist/typescript/commonjs/src/utilities/specificity.d.ts.map +1 -1
  471. package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts +14 -1
  472. package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts.map +1 -1
  473. package/dist/typescript/commonjs/src/web/api.d.ts +5 -5
  474. package/dist/typescript/commonjs/src/web/api.d.ts.map +1 -1
  475. package/dist/typescript/commonjs/src/web/assign-style.d.ts.map +1 -1
  476. package/dist/typescript/module/src/babel/helpers.d.ts +2 -1
  477. package/dist/typescript/module/src/babel/helpers.d.ts.map +1 -1
  478. package/dist/typescript/module/src/babel/import-plugin.d.ts +1 -1
  479. package/dist/typescript/module/src/babel/import-plugin.d.ts.map +1 -1
  480. package/dist/typescript/module/src/babel/react-native-web.d.ts +2 -1
  481. package/dist/typescript/module/src/babel/react-native-web.d.ts.map +1 -1
  482. package/dist/typescript/module/src/babel/react-native.d.ts.map +1 -1
  483. package/dist/typescript/module/src/compiler/atRules.d.ts +6 -3
  484. package/dist/typescript/module/src/compiler/atRules.d.ts.map +1 -1
  485. package/dist/typescript/module/src/compiler/compiler.d.ts +3 -7
  486. package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -1
  487. package/dist/typescript/module/src/compiler/compiler.types.d.ts +27 -13
  488. package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -1
  489. package/dist/typescript/module/src/compiler/container-query.d.ts +2 -2
  490. package/dist/typescript/module/src/compiler/container-query.d.ts.map +1 -1
  491. package/dist/typescript/module/src/compiler/declarations.d.ts +5 -5
  492. package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -1
  493. package/dist/typescript/module/src/compiler/index.d.ts +2 -2
  494. package/dist/typescript/module/src/compiler/index.d.ts.map +1 -1
  495. package/dist/typescript/module/src/compiler/individual-transforms.d.ts +10 -0
  496. package/dist/typescript/module/src/compiler/individual-transforms.d.ts.map +1 -0
  497. package/dist/typescript/module/src/compiler/inline-variables.d.ts +2 -2
  498. package/dist/typescript/module/src/compiler/inline-variables.d.ts.map +1 -1
  499. package/dist/typescript/module/src/compiler/keyframes.d.ts +2 -2
  500. package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -1
  501. package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts.map +1 -1
  502. package/dist/typescript/module/src/compiler/media-query.d.ts +3 -3
  503. package/dist/typescript/module/src/compiler/media-query.d.ts.map +1 -1
  504. package/dist/typescript/module/src/compiler/pseudo-elements.d.ts +1 -1
  505. package/dist/typescript/module/src/compiler/pseudo-elements.d.ts.map +1 -1
  506. package/dist/typescript/module/src/compiler/selector-builder.d.ts +3 -2
  507. package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -1
  508. package/dist/typescript/module/src/compiler/selectors.d.ts +2 -2
  509. package/dist/typescript/module/src/compiler/selectors.d.ts.map +1 -1
  510. package/dist/typescript/module/src/compiler/stylesheet.d.ts +10 -10
  511. package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -1
  512. package/dist/typescript/module/src/components/ActivityIndicator.d.ts +2 -4
  513. package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -1
  514. package/dist/typescript/module/src/components/Button.d.ts +2 -4
  515. package/dist/typescript/module/src/components/Button.d.ts.map +1 -1
  516. package/dist/typescript/module/src/components/FlatList.d.ts +2 -2
  517. package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -1
  518. package/dist/typescript/module/src/components/Image.d.ts +2 -4
  519. package/dist/typescript/module/src/components/Image.d.ts.map +1 -1
  520. package/dist/typescript/module/src/components/ImageBackground.d.ts +2 -4
  521. package/dist/typescript/module/src/components/ImageBackground.d.ts.map +1 -1
  522. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts +2 -4
  523. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts.map +1 -1
  524. package/dist/typescript/module/src/components/Pressable.d.ts +2 -4
  525. package/dist/typescript/module/src/components/Pressable.d.ts.map +1 -1
  526. package/dist/typescript/module/src/components/SafeAreaProvider.d.ts +2 -0
  527. package/dist/typescript/module/src/components/SafeAreaProvider.d.ts.map +1 -0
  528. package/dist/typescript/module/src/components/ScrollView.d.ts +2 -4
  529. package/dist/typescript/module/src/components/ScrollView.d.ts.map +1 -1
  530. package/dist/typescript/module/src/components/Switch.d.ts +2 -6
  531. package/dist/typescript/module/src/components/Switch.d.ts.map +1 -1
  532. package/dist/typescript/module/src/components/Text.d.ts +2 -6
  533. package/dist/typescript/module/src/components/Text.d.ts.map +1 -1
  534. package/dist/typescript/module/src/components/TextInput.d.ts +2 -4
  535. package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -1
  536. package/dist/typescript/module/src/components/TouchableHighlight.d.ts +2 -4
  537. package/dist/typescript/module/src/components/TouchableHighlight.d.ts.map +1 -1
  538. package/dist/typescript/module/src/components/TouchableOpacity.d.ts +2 -4
  539. package/dist/typescript/module/src/components/TouchableOpacity.d.ts.map +1 -1
  540. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts +2 -4
  541. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts.map +1 -1
  542. package/dist/typescript/module/src/components/View.d.ts +2 -6
  543. package/dist/typescript/module/src/components/View.d.ts.map +1 -1
  544. package/dist/typescript/module/src/components/VirtualizedList.d.ts +2 -2
  545. package/dist/typescript/module/src/components/VirtualizedList.d.ts.map +1 -1
  546. package/dist/typescript/module/src/components/copyComponentProperties.d.ts +5 -0
  547. package/dist/typescript/module/src/components/copyComponentProperties.d.ts.map +1 -0
  548. package/dist/typescript/module/src/components/index.d.ts +16 -16
  549. package/dist/typescript/module/src/components/index.d.ts.map +1 -1
  550. package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts +2 -1
  551. package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts.map +1 -1
  552. package/dist/typescript/module/src/jest/index.d.ts +4 -12
  553. package/dist/typescript/module/src/jest/index.d.ts.map +1 -1
  554. package/dist/typescript/module/src/metro/cache-version.d.ts +8 -0
  555. package/dist/typescript/module/src/metro/cache-version.d.ts.map +1 -0
  556. package/dist/typescript/module/src/metro/index.d.ts +9 -5
  557. package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
  558. package/dist/typescript/module/src/metro/metro-transformer.d.ts +10 -5
  559. package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -1
  560. package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -1
  561. package/dist/typescript/module/src/metro/typescript.d.ts.map +1 -1
  562. package/dist/typescript/module/src/metro/warnings.d.ts +13 -0
  563. package/dist/typescript/module/src/metro/warnings.d.ts.map +1 -0
  564. package/dist/typescript/module/src/native/api.d.ts +6 -10
  565. package/dist/typescript/module/src/native/api.d.ts.map +1 -1
  566. package/dist/typescript/module/src/native/conditions/attributes.d.ts +1 -1
  567. package/dist/typescript/module/src/native/conditions/attributes.d.ts.map +1 -1
  568. package/dist/typescript/module/src/native/conditions/container-query.d.ts +2 -2
  569. package/dist/typescript/module/src/native/conditions/container-query.d.ts.map +1 -1
  570. package/dist/typescript/module/src/native/conditions/guards.d.ts +4 -3
  571. package/dist/typescript/module/src/native/conditions/guards.d.ts.map +1 -1
  572. package/dist/typescript/module/src/native/conditions/index.d.ts +3 -3
  573. package/dist/typescript/module/src/native/conditions/index.d.ts.map +1 -1
  574. package/dist/typescript/module/src/native/conditions/media-query.d.ts +1 -1
  575. package/dist/typescript/module/src/native/conditions/media-query.d.ts.map +1 -1
  576. package/dist/typescript/module/src/native/index.d.ts +3 -3
  577. package/dist/typescript/module/src/native/index.d.ts.map +1 -1
  578. package/dist/typescript/module/src/native/objects.d.ts.map +1 -1
  579. package/dist/typescript/module/src/native/react/interaction.d.ts +2 -2
  580. package/dist/typescript/module/src/native/react/interaction.d.ts.map +1 -1
  581. package/dist/typescript/module/src/native/react/rules.d.ts +9 -4
  582. package/dist/typescript/module/src/native/react/rules.d.ts.map +1 -1
  583. package/dist/typescript/module/src/native/react/useNativeCss.d.ts +5 -8
  584. package/dist/typescript/module/src/native/react/useNativeCss.d.ts.map +1 -1
  585. package/dist/typescript/module/src/native/react/usePassthrough.d.ts +1 -1
  586. package/dist/typescript/module/src/native/react/usePassthrough.d.ts.map +1 -1
  587. package/dist/typescript/module/src/native/reactivity.d.ts +36 -18
  588. package/dist/typescript/module/src/native/reactivity.d.ts.map +1 -1
  589. package/dist/typescript/module/src/native/reanimated.d.ts.map +1 -1
  590. package/dist/typescript/module/src/native/styles/calculate-props.d.ts +13 -4
  591. package/dist/typescript/module/src/native/styles/calculate-props.d.ts.map +1 -1
  592. package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts +1 -1
  593. package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts.map +1 -1
  594. package/dist/typescript/module/src/native/styles/functions/calc.d.ts +1 -1
  595. package/dist/typescript/module/src/native/styles/functions/calc.d.ts.map +1 -1
  596. package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts +3 -0
  597. package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts.map +1 -0
  598. package/dist/typescript/module/src/native/styles/functions/filters.d.ts +3 -1
  599. package/dist/typescript/module/src/native/styles/functions/filters.d.ts.map +1 -1
  600. package/dist/typescript/module/src/native/styles/functions/index.d.ts +8 -7
  601. package/dist/typescript/module/src/native/styles/functions/index.d.ts.map +1 -1
  602. package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts +1 -1
  603. package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts.map +1 -1
  604. package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts +1 -1
  605. package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts.map +1 -1
  606. package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts +3 -1
  607. package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts.map +1 -1
  608. package/dist/typescript/module/src/native/styles/functions/transform-functions.d.ts +3 -1
  609. package/dist/typescript/module/src/native/styles/functions/transform-functions.d.ts.map +1 -1
  610. package/dist/typescript/module/src/native/styles/index.d.ts +20 -8
  611. package/dist/typescript/module/src/native/styles/index.d.ts.map +1 -1
  612. package/dist/typescript/module/src/native/styles/line-height.d.ts +1 -1
  613. package/dist/typescript/module/src/native/styles/line-height.d.ts.map +1 -1
  614. package/dist/typescript/module/src/native/styles/resolve.d.ts +7 -4
  615. package/dist/typescript/module/src/native/styles/resolve.d.ts.map +1 -1
  616. package/dist/typescript/module/src/native/styles/scale-factor.d.ts +2 -0
  617. package/dist/typescript/module/src/native/styles/scale-factor.d.ts.map +1 -0
  618. package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts +1 -1
  619. package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts.map +1 -1
  620. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts +2 -2
  621. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts.map +1 -1
  622. package/dist/typescript/module/src/native/styles/shorthands/border.d.ts +1 -1
  623. package/dist/typescript/module/src/native/styles/shorthands/border.d.ts.map +1 -1
  624. package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts +1 -1
  625. package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts.map +1 -1
  626. package/dist/typescript/module/src/native/styles/shorthands/index.d.ts +6 -5
  627. package/dist/typescript/module/src/native/styles/shorthands/index.d.ts.map +1 -1
  628. package/dist/typescript/module/src/native/styles/shorthands/logical-border-width.d.ts +4 -0
  629. package/dist/typescript/module/src/native/styles/shorthands/logical-border-width.d.ts.map +1 -0
  630. package/dist/typescript/module/src/native/styles/shorthands/text-shadow.d.ts +1 -1
  631. package/dist/typescript/module/src/native/styles/shorthands/text-shadow.d.ts.map +1 -1
  632. package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts +1 -1
  633. package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts.map +1 -1
  634. package/dist/typescript/module/src/native/styles/units.d.ts +1 -1
  635. package/dist/typescript/module/src/native/styles/units.d.ts.map +1 -1
  636. package/dist/typescript/module/src/native/styles/variables.d.ts +4 -3
  637. package/dist/typescript/module/src/native/styles/variables.d.ts.map +1 -1
  638. package/dist/typescript/module/src/native-internal/index.d.ts +3 -3
  639. package/dist/typescript/module/src/native-internal/index.d.ts.map +1 -1
  640. package/dist/typescript/module/src/native-internal/root.d.ts +46 -1
  641. package/dist/typescript/module/src/native-internal/root.d.ts.map +1 -1
  642. package/dist/typescript/module/src/native-internal/style-collection.d.ts +3 -3
  643. package/dist/typescript/module/src/native-internal/style-collection.d.ts.map +1 -1
  644. package/dist/typescript/module/src/native-internal/variables.d.ts +2 -2
  645. package/dist/typescript/module/src/native-internal/variables.d.ts.map +1 -1
  646. package/dist/typescript/module/src/runtime.d.ts +1 -1
  647. package/dist/typescript/module/src/runtime.d.ts.map +1 -1
  648. package/dist/typescript/module/src/runtime.native.d.ts +1 -1
  649. package/dist/typescript/module/src/runtime.native.d.ts.map +1 -1
  650. package/dist/typescript/module/src/runtime.types.d.ts +20 -15
  651. package/dist/typescript/module/src/runtime.types.d.ts.map +1 -1
  652. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts +3 -2
  653. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts.map +1 -1
  654. package/dist/typescript/module/src/utilities/equality.d.ts +2 -0
  655. package/dist/typescript/module/src/utilities/equality.d.ts.map +1 -0
  656. package/dist/typescript/module/src/utilities/index.d.ts +4 -3
  657. package/dist/typescript/module/src/utilities/index.d.ts.map +1 -1
  658. package/dist/typescript/module/src/utilities/specificity.d.ts +2 -2
  659. package/dist/typescript/module/src/utilities/specificity.d.ts.map +1 -1
  660. package/dist/typescript/module/src/utilities/style-descriptor.d.ts +14 -1
  661. package/dist/typescript/module/src/utilities/style-descriptor.d.ts.map +1 -1
  662. package/dist/typescript/module/src/web/api.d.ts +5 -5
  663. package/dist/typescript/module/src/web/api.d.ts.map +1 -1
  664. package/dist/typescript/module/src/web/assign-style.d.ts.map +1 -1
  665. package/dist/typescript/module/src/web/index.d.ts +3 -3
  666. package/dist/typescript/module/src/web/index.d.ts.map +1 -1
  667. package/node/babel.mjs +4 -0
  668. package/node/compiler.mjs +2 -0
  669. package/node/metro.mjs +2 -0
  670. package/package.json +81 -33
  671. package/src/babel/helpers.ts +8 -1
  672. package/src/babel/import-plugin.ts +31 -16
  673. package/src/babel/react-native-web.ts +32 -4
  674. package/src/babel/react-native.ts +9 -4
  675. package/src/compiler/atRules.ts +44 -0
  676. package/src/compiler/compiler.ts +282 -50
  677. package/src/compiler/compiler.types.ts +30 -12
  678. package/src/compiler/container-query.ts +8 -3
  679. package/src/compiler/declarations.ts +499 -241
  680. package/src/compiler/individual-transforms.ts +129 -0
  681. package/src/compiler/inline-variables.ts +67 -0
  682. package/src/compiler/lightningcss-loader.ts +21 -1
  683. package/src/compiler/media-query.ts +20 -9
  684. package/src/compiler/selector-builder.ts +34 -7
  685. package/src/compiler/stylesheet.ts +51 -15
  686. package/src/compiler/supports.ts +2 -2
  687. package/src/components/ActivityIndicator.tsx +8 -5
  688. package/src/components/Button.tsx +8 -3
  689. package/src/components/FlatList.tsx +14 -4
  690. package/src/components/Image.tsx +8 -3
  691. package/src/components/ImageBackground.tsx +10 -11
  692. package/src/components/KeyboardAvoidingView.tsx +10 -8
  693. package/src/components/Pressable.tsx +8 -3
  694. package/src/components/SafeAreaProvider.tsx +1 -0
  695. package/src/components/ScrollView.tsx +8 -5
  696. package/src/components/Switch.tsx +8 -3
  697. package/src/components/Text.tsx +8 -3
  698. package/src/components/TextInput.tsx +8 -3
  699. package/src/components/TouchableHighlight.tsx +8 -5
  700. package/src/components/TouchableOpacity.tsx +8 -5
  701. package/src/components/TouchableWithoutFeedback.tsx +8 -5
  702. package/src/components/View.tsx +8 -3
  703. package/src/components/VirtualizedList.tsx +17 -5
  704. package/src/components/copyComponentProperties.ts +21 -0
  705. package/src/components/index.cts +52 -4
  706. package/src/components/react-native-safe-area-context.native.tsx +20 -0
  707. package/src/jest/index.ts +7 -3
  708. package/src/metro/cache-version.ts +48 -0
  709. package/src/metro/index.ts +11 -4
  710. package/src/metro/metro-transformer.ts +26 -8
  711. package/src/metro/resolver.ts +10 -3
  712. package/src/metro/typescript.ts +53 -6
  713. package/src/metro/warnings.ts +187 -0
  714. package/src/native/api.tsx +32 -18
  715. package/src/native/conditions/attributes.ts +26 -9
  716. package/src/native/conditions/container-query.ts +11 -9
  717. package/src/native/conditions/guards.ts +13 -1
  718. package/src/native/conditions/media-query.ts +1 -1
  719. package/src/native/objects.ts +12 -22
  720. package/src/native/react/interaction.ts +11 -6
  721. package/src/native/react/rules.ts +58 -45
  722. package/src/native/react/useNativeCss.ts +100 -22
  723. package/src/native/react/usePassthrough.ts +3 -2
  724. package/src/native/reactivity.ts +169 -71
  725. package/src/native/reanimated.ts +24 -5
  726. package/src/native/styles/calculate-props.ts +179 -28
  727. package/src/native/styles/functions/animation-timing.ts +3 -1
  728. package/src/native/styles/functions/color-mix.ts +82 -0
  729. package/src/native/styles/functions/filters.ts +21 -6
  730. package/src/native/styles/functions/index.ts +1 -0
  731. package/src/native/styles/functions/numeric-functions.ts +7 -6
  732. package/src/native/styles/functions/platform-functions.ts +3 -1
  733. package/src/native/styles/functions/string-functions.ts +25 -5
  734. package/src/native/styles/functions/transform-functions.ts +111 -64
  735. package/src/native/styles/index.ts +425 -43
  736. package/src/native/styles/resolve.ts +188 -29
  737. package/src/native/styles/scale-factor.ts +9 -0
  738. package/src/native/styles/shorthands/_handler.ts +14 -1
  739. package/src/native/styles/shorthands/animation.ts +8 -2
  740. package/src/native/styles/shorthands/box-shadow.ts +46 -25
  741. package/src/native/styles/shorthands/index.ts +1 -0
  742. package/src/native/styles/shorthands/logical-border-width.ts +32 -0
  743. package/src/native/styles/shorthands/transform.ts +36 -11
  744. package/src/native/styles/variables.ts +251 -45
  745. package/src/native-internal/root.ts +83 -13
  746. package/src/native-internal/style-collection.ts +64 -95
  747. package/src/native-internal/variables.tsx +6 -4
  748. package/src/runtime.types.ts +38 -29
  749. package/src/utilities/dot-notation.types.ts +12 -4
  750. package/src/utilities/equality.ts +41 -0
  751. package/src/utilities/index.ts +1 -0
  752. package/src/utilities/specificity.ts +13 -12
  753. package/src/utilities/style-descriptor.ts +36 -14
  754. package/src/web/api.tsx +17 -13
  755. package/src/web/assign-style.ts +2 -1
  756. package/types.d.ts +14 -31
  757. package/dist/commonjs/compiler/inheritance.test.js +0 -78
  758. package/dist/commonjs/compiler/inheritance.test.js.map +0 -1
  759. package/dist/module/compiler/inheritance.test.js +0 -78
  760. package/dist/module/compiler/inheritance.test.js.map +0 -1
  761. package/dist/typescript/commonjs/.config/eslint.config.d.mts +0 -3
  762. package/dist/typescript/commonjs/.config/eslint.config.d.mts.map +0 -1
  763. package/dist/typescript/commonjs/eslint.config.d.mts +0 -2
  764. package/dist/typescript/commonjs/eslint.config.d.mts.map +0 -1
  765. package/dist/typescript/commonjs/example/app.config.d.ts +0 -4
  766. package/dist/typescript/commonjs/example/app.config.d.ts.map +0 -1
  767. package/dist/typescript/commonjs/example/index.d.ts +0 -2
  768. package/dist/typescript/commonjs/example/index.d.ts.map +0 -1
  769. package/dist/typescript/commonjs/example/metro.config.d.ts +0 -3
  770. package/dist/typescript/commonjs/example/metro.config.d.ts.map +0 -1
  771. package/dist/typescript/commonjs/example/postcss.config.d.mts +0 -7
  772. package/dist/typescript/commonjs/example/postcss.config.d.mts.map +0 -1
  773. package/dist/typescript/commonjs/example/src/App.d.ts +0 -3
  774. package/dist/typescript/commonjs/example/src/App.d.ts.map +0 -1
  775. package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts +0 -2
  776. package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts.map +0 -1
  777. package/dist/typescript/module/.config/eslint.config.d.mts +0 -3
  778. package/dist/typescript/module/.config/eslint.config.d.mts.map +0 -1
  779. package/dist/typescript/module/eslint.config.d.mts +0 -2
  780. package/dist/typescript/module/eslint.config.d.mts.map +0 -1
  781. package/dist/typescript/module/example/app.config.d.ts +0 -4
  782. package/dist/typescript/module/example/app.config.d.ts.map +0 -1
  783. package/dist/typescript/module/example/index.d.ts +0 -2
  784. package/dist/typescript/module/example/index.d.ts.map +0 -1
  785. package/dist/typescript/module/example/metro.config.d.ts +0 -3
  786. package/dist/typescript/module/example/metro.config.d.ts.map +0 -1
  787. package/dist/typescript/module/example/postcss.config.d.mts +0 -7
  788. package/dist/typescript/module/example/postcss.config.d.mts.map +0 -1
  789. package/dist/typescript/module/example/src/App.d.ts +0 -3
  790. package/dist/typescript/module/example/src/App.d.ts.map +0 -1
  791. package/dist/typescript/module/src/compiler/inheritance.test.d.ts +0 -2
  792. package/dist/typescript/module/src/compiler/inheritance.test.d.ts.map +0 -1
  793. package/src/compiler/inheritance.test.ts +0 -121
@@ -3,17 +3,31 @@
3
3
  /* eslint-disable */
4
4
  import { inspect } from "node:util";
5
5
  import { debug } from "debug";
6
- import { maybeMutateReactNativeOptions, parsePropAtRule } from "./atRules.js";
6
+ import { maybeMutateReactNativeOptions, parsePropAtRule, parsePropDeclarations } from "./atRules.js";
7
7
  import { parseContainerCondition } from "./container-query.js";
8
- import { parseDeclaration, round } from "./declarations.js";
8
+ import { parseAngle, parseColor, parseDeclaration, parseLength, reduceParseUnparsed, round } from "./declarations.js";
9
+ import { unparseIndividualTransform } from "./individual-transforms.js";
9
10
  import { inlineVariables } from "./inline-variables.js";
10
11
  import { extractKeyFrames } from "./keyframes.js";
11
12
  import { lightningcssLoader } from "./lightningcss-loader.js";
12
13
  import { parseMediaQuery } from "./media-query.js";
14
+ import { isUniversalSelector } from "./selector-builder.js";
13
15
  import { StylesheetBuilder } from "./stylesheet.js";
14
16
  import { supportsConditionValid } from "./supports.js";
15
17
  const defaultLogger = debug("react-native-css:compiler");
16
18
 
19
+ // lightningcss reports this package's own at-rule as unknown
20
+ const OWN_AT_RULE_WARNING = "Unknown at rule: @nativeMapping";
21
+
22
+ // The warning is the only record of what lightningcss could not parse; only the first pass reads the author's CSS
23
+ function reportSyntaxWarnings(builder, warnings) {
24
+ for (const warning of warnings) {
25
+ if (warning.message !== OWN_AT_RULE_WARNING) {
26
+ builder.addSyntaxWarning(warning.message);
27
+ }
28
+ }
29
+ }
30
+
17
31
  /**
18
32
  * Converts a CSS file to a collection of style declarations that can be used with the StyleSheet API
19
33
  *
@@ -54,21 +68,61 @@ export function compile(code, options = {}) {
54
68
  */
55
69
 
56
70
  const vars = new Map();
57
- const firstPassVisitor = {};
58
- if (options.inlineRem !== false) {
71
+
72
+ // Determine the effective rem multiplier for compile-time inlining.
73
+ // If inlineRem is explicitly set, use that. Otherwise, scan for
74
+ // :root { font-size: Npx } in the CSS to allow CSS-based configuration.
75
+ let effectiveRem = options.inlineRem ?? undefined;
76
+ if (effectiveRem === undefined) {
77
+ const css = typeof code === "string" ? code : code.toString();
78
+ const match = css.match(/:root\s*\{[^}]*font-size:\s*([\d.]+)px/);
79
+ effectiveRem = match?.[1] ? parseFloat(match[1]) : 14;
80
+ options.inlineRem = effectiveRem;
81
+ }
82
+ const inlining = options.inlineVariables !== false;
83
+ const firstPassVisitor = {
84
+ // Registered from the first pass, since lightningcss prints only the last @property of a name, valid or not
85
+ StyleSheetExit(sheet) {
86
+ const nonInheriting = registerProperties(collectRegistrations(sheet.rules), builder);
87
+ if (!inlining) {
88
+ return sheet;
89
+ }
90
+ const universalDeclarations = countUniversalDeclarations(sheet.rules);
91
+
92
+ // A non-inheriting property has one value on every element only when universal rules are all that declare it
93
+ const runtimeVariables = new Set(Array.from(nonInheriting).filter(name => {
94
+ const declarations = vars.get(name)?.count;
95
+ return declarations === undefined || universalDeclarations.get(name) !== declarations;
96
+ }));
97
+ return inlineVariables(sheet, vars, runtimeVariables);
98
+ },
99
+ Rule(rule) {
100
+ if (rule.type === "unknown" && ["cssInterop", "react-native"].includes(rule.value.name)) {
101
+ throw new Error(`Unsupported @${rule.value.name} configuration. Use the compiler inlineVariables.exclude option to preserve variables, @media (prefers-color-scheme: dark) for dark mode, and React Native Appearance.setColorScheme() for manual selection.`);
102
+ }
103
+ // Reject before variable inlining can erase an unsupported condition and
104
+ // accidentally turn its values into unconditional declarations.
105
+ if (rule.type === "style" && rule.value.selectors.some(selector => selector.some(part => part.type === "pseudo-class" && part.kind === "root") && selector.some(part => part.type === "class" || part.type === "attribute" && part.name === "class"))) {
106
+ throw new Error("Class-qualified :root selectors are unsupported on native. Use @media (prefers-color-scheme: dark) for dark mode, and React Native Appearance.setColorScheme() for manual selection.");
107
+ }
108
+ }
109
+ };
110
+ if (effectiveRem !== false) {
111
+ const remMultiplier = effectiveRem;
59
112
  firstPassVisitor.Length = length => {
60
- if (length.unit !== "rem" || options.inlineRem === false) {
61
- return length;
113
+ if (length.unit !== "rem") {
114
+ return undefined;
62
115
  }
63
116
  return {
64
117
  unit: "px",
65
- value: round(length.value * (options.inlineRem ?? 14))
118
+ value: round(length.value * remMultiplier)
66
119
  };
67
120
  };
68
121
  }
122
+ let countVariable;
69
123
  if (options.inlineVariables !== false) {
70
124
  const exclusionList = options.inlineVariables?.exclude ?? [];
71
- firstPassVisitor.Declaration = decl => {
125
+ countVariable = decl => {
72
126
  if (decl.property === "custom" && decl.value.name.startsWith("--") && !exclusionList.includes(decl.value.name)) {
73
127
  const entry = vars.get(decl.value.name) ?? {
74
128
  count: 0,
@@ -84,12 +138,14 @@ export function compile(code, options = {}) {
84
138
  vars.set(decl.value.name, entry);
85
139
  }
86
140
  };
87
- firstPassVisitor.StyleSheetExit = sheet => {
88
- return inlineVariables(sheet, vars);
89
- };
90
141
  }
142
+ firstPassVisitor.Declaration = decl => {
143
+ countVariable?.(decl);
144
+ return unparseIndividualTransform(decl);
145
+ };
91
146
  const {
92
- code: firstPass
147
+ code: firstPass,
148
+ warnings: firstPassWarnings
93
149
  } = lightningcss({
94
150
  code: typeof code === "string" ? new TextEncoder().encode(code) : code,
95
151
  include: Features.DoublePositionGradients | Features.ColorFunction,
@@ -115,7 +171,6 @@ export function compile(code, options = {}) {
115
171
  const visitor = {
116
172
  Rule(rule) {
117
173
  maybeMutateReactNativeOptions(rule, builder);
118
- return rule;
119
174
  },
120
175
  StyleSheetExit(sheet) {
121
176
  if (isLoggerEnabled) {
@@ -132,7 +187,6 @@ export function compile(code, options = {}) {
132
187
  // We have processed this rule, so now delete it from the AST
133
188
  }
134
189
  logger(`Exiting lightningcss`);
135
- return sheet;
136
190
  }
137
191
  };
138
192
  lightningcss({
@@ -141,6 +195,7 @@ export function compile(code, options = {}) {
141
195
  filename: options.filename ?? "style.css",
142
196
  projectRoot: options.projectRoot ?? process.cwd()
143
197
  });
198
+ reportSyntaxWarnings(builder, firstPassWarnings);
144
199
  return {
145
200
  stylesheet: () => builder.getNativeStyleSheet(),
146
201
  warnings: () => builder.getWarnings()
@@ -204,7 +259,9 @@ function extractRule(rule, builder, mapping = {}) {
204
259
  const declarationBlock = value.declarations;
205
260
  mapping = {
206
261
  ...mapping,
207
- ...parsePropAtRule(value.rules)
262
+ ...parsePropAtRule(value.rules),
263
+ ...parsePropDeclarations(declarationBlock?.declarations),
264
+ ...parsePropDeclarations(declarationBlock?.importantDeclarations)
208
265
  };
209
266
 
210
267
  // If the rule is a style declaration, extract it with the `getExtractedStyle` function and store it in the `declarations` map
@@ -246,13 +303,13 @@ function extractRule(rule, builder, mapping = {}) {
246
303
  }
247
304
  }
248
305
  break;
306
+ case "property":
249
307
  case "custom":
250
308
  case "font-face":
251
309
  case "font-palette-values":
252
310
  case "font-feature-values":
253
311
  case "namespace":
254
312
  case "layer-statement":
255
- case "property":
256
313
  case "view-transition":
257
314
  case "ignored":
258
315
  case "unknown":
@@ -280,33 +337,16 @@ function extractRule(rule, builder, mapping = {}) {
280
337
  * @returns undefined if no screen media queries are found in the mediaRule, else it returns the extracted styles.
281
338
  */
282
339
  function extractMedia(mediaRule, builder, mapping) {
283
- builder = builder.fork("media");
284
-
285
- // Initialize an empty array to store screen media queries
286
- const media = [];
287
-
288
- // Iterate over all media queries in the mediaRule
340
+ // Comma separated queries are alternatives. Each branch inherits the outer
341
+ // conditions without adding its siblings as required conjunctions.
289
342
  for (const mediaQuery of mediaRule.query.mediaQueries) {
290
- if (
291
- // If this is only a media query
292
- mediaQuery.mediaType === "print" && mediaQuery.qualifier !== "not" ||
293
- // If this is a @media not print {}
294
- // We can only do this if there are no conditions, as @media not print and (min-width: 100px) could be valid
295
- mediaQuery.mediaType !== "print" && mediaQuery.qualifier === "not" && mediaQuery.condition === null) {
343
+ const queryBuilder = builder.fork("media");
344
+ if (!parseMediaQuery(mediaQuery, queryBuilder)) {
296
345
  continue;
297
346
  }
298
- media.push(mediaQuery);
299
- }
300
- if (media.length === 0) {
301
- return;
302
- }
303
- for (const m of media) {
304
- parseMediaQuery(m, builder);
305
- }
306
-
307
- // Iterate over all rules in the mediaRule and extract their styles using the updated CompilerCollection
308
- for (const rule of mediaRule.rules) {
309
- extractRule(rule, builder, mapping);
347
+ for (const rule of mediaRule.rules) {
348
+ extractRule(rule, queryBuilder, mapping);
349
+ }
310
350
  }
311
351
  }
312
352
 
@@ -319,8 +359,13 @@ function extractContainer(containerRule, builder, mapping) {
319
359
  builder = builder.fork("container");
320
360
 
321
361
  // Iterate over all rules inside the containerRule and extract their styles using the updated CompilerCollection
362
+ const condition = parseContainerCondition(containerRule.condition, builder);
363
+ if (!condition) {
364
+ // An unsupported condition must not turn into an unconditional container.
365
+ return;
366
+ }
322
367
  const query = {
323
- m: parseContainerCondition(containerRule.condition, builder)
368
+ m: condition
324
369
  };
325
370
  if (containerRule.name) {
326
371
  query.n = `c:${containerRule.name}`;
@@ -330,4 +375,118 @@ function extractContainer(containerRule, builder, mapping) {
330
375
  extractRule(rule, builder, mapping);
331
376
  }
332
377
  }
378
+
379
+ // Browsers register the last @property of a name, in a layer, in @container and under an @supports that holds, and one in @media only while it matches
380
+ function collectRegistrations(rules, conditional = false, registrations = new Map()) {
381
+ for (const rule of rules) {
382
+ switch (rule.type) {
383
+ case "property":
384
+ if (!conditional) {
385
+ registrations.set(rule.value.name, rule.value);
386
+ }
387
+ break;
388
+ case "media":
389
+ collectRegistrations(rule.value.rules, true, registrations);
390
+ break;
391
+ case "supports":
392
+ collectRegistrations(rule.value.rules, conditional || !supportsConditionValid(rule.value.condition), registrations);
393
+ break;
394
+ case "container":
395
+ case "layer-block":
396
+ collectRegistrations(rule.value.rules, conditional, registrations);
397
+ break;
398
+ }
399
+ }
400
+ return registrations;
401
+ }
402
+
403
+ // Registers the properties whose initial value has a descriptor, and returns the names that do not inherit
404
+ function registerProperties(registrations, builder) {
405
+ const nonInheriting = new Set();
406
+ for (const [name, {
407
+ inherits,
408
+ initialValue
409
+ }] of registrations) {
410
+ const value = initialValue == null ? undefined : parsePropertyInitialValue(initialValue, builder);
411
+
412
+ // Left unregistered, since without its initial value the property would fall back where CSS gives that value
413
+ if (initialValue != null && value === undefined) {
414
+ continue;
415
+ }
416
+ builder.registerProperty(name.slice(2), inherits, value);
417
+ if (!inherits) {
418
+ nonInheriting.add(name);
419
+ }
420
+ }
421
+ return nonInheriting;
422
+ }
423
+
424
+ // Counts each custom property's declarations in universal rules every element shares: at the top level, in a layer or under an @supports, whose declarations the inliner reads too, and not under @media or @container
425
+ function countUniversalDeclarations(rules, counts = new Map()) {
426
+ for (const rule of rules) {
427
+ switch (rule.type) {
428
+ case "style":
429
+ if (rule.value.selectors.some(isUniversalSelector)) {
430
+ const {
431
+ declarations = [],
432
+ importantDeclarations = []
433
+ } = rule.value.declarations ?? {};
434
+ for (const declaration of [...declarations, ...importantDeclarations]) {
435
+ if (declaration.property === "custom") {
436
+ const {
437
+ name
438
+ } = declaration.value;
439
+ counts.set(name, (counts.get(name) ?? 0) + 1);
440
+ }
441
+ }
442
+ }
443
+ break;
444
+ case "layer-block":
445
+ countUniversalDeclarations(rule.value.rules, counts);
446
+ break;
447
+ case "supports":
448
+ countUniversalDeclarations(rule.value.rules, counts);
449
+ break;
450
+ }
451
+ }
452
+ return counts;
453
+ }
454
+ function parsePropertyInitialValue(component, builder) {
455
+ switch (component.type) {
456
+ case "length":
457
+ return parseLength(component.value, builder);
458
+ case "number":
459
+ case "integer":
460
+ return round(component.value);
461
+ case "percentage":
462
+ return `${round(component.value * 100)}%`;
463
+ case "color":
464
+ return parseColor(component.value, builder);
465
+ case "angle":
466
+ return parseAngle(component.value, builder);
467
+ case "length-percentage":
468
+ return parseLength(component.value, builder);
469
+ case "token-list":
470
+ return reduceParseUnparsed(component.value, builder, "@property", false);
471
+ case "custom-ident":
472
+ case "literal":
473
+ return component.value;
474
+ case "repeated":
475
+ {
476
+ const results = component.value.components.map(item => parsePropertyInitialValue(item, builder));
477
+ if (results.includes(undefined)) {
478
+ return undefined;
479
+ }
480
+ // Unwrap single-child repeated values so downstream consumers get a
481
+ // scalar instead of a 1-element array. For example, `<length>+` with
482
+ // initial-value `10px` should produce the same shape as `<length>`.
483
+ if (results.length === 1) {
484
+ return results[0];
485
+ }
486
+ return component.value.multiplier.type === "comma" ? results.map(result => [result]) : results;
487
+ }
488
+ default:
489
+ return undefined;
490
+ }
491
+ }
333
492
  //# sourceMappingURL=compiler.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["inspect","debug","maybeMutateReactNativeOptions","parsePropAtRule","parseContainerCondition","parseDeclaration","round","inlineVariables","extractKeyFrames","lightningcssLoader","parseMediaQuery","StylesheetBuilder","supportsConditionValid","defaultLogger","compile","code","options","logger","isLoggerEnabled","enabled","Boolean","features","Object","assign","selectorPrefix","startsWith","slice","JSON","stringify","process","env","NODE_ENV","toString","builder","lightningcss","Features","vars","Map","firstPassVisitor","inlineRem","Length","length","unit","value","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","rules","depth","colors","compact","extractRule","stylesheet","getNativeStyleSheet","warnings","getWarnings","mapping","extractContainer","extractMedia","declarationBlock","declarations","newNestedRule","declaration","applyRuleToSelectors","importantDeclarations","important","fork","selectors","newRule","nestedRule","layerRule","condition","mediaRule","media","mediaQuery","query","mediaQueries","mediaType","qualifier","push","m","containerRule","n","addContainerQuery"],"sourceRoot":"../../../src","sources":["compiler/compiler.ts"],"mappings":";;AAAA;AACA,SAASA,OAAO,QAAQ,WAAW;AAEnC,SAASC,KAAK,QAAQ,OAAO;AAU7B,SAASC,6BAA6B,EAAEC,eAAe,QAAQ,cAAW;AAO1E,SAASC,uBAAuB,QAAQ,sBAAmB;AAC3D,SAASC,gBAAgB,EAAEC,KAAK,QAAQ,mBAAgB;AACxD,SAASC,eAAe,QAAQ,uBAAoB;AACpD,SAASC,gBAAgB,QAAQ,gBAAa;AAC9C,SAASC,kBAAkB,QAAQ,0BAAuB;AAC1D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nD,OAAO,GAAGA,OAAO,CAAC6D,IAAI,CAAC,WAAW,CAAC;;EAEnC;EACA,MAAMS,KAAqB,GAAG;IAC5BK,CAAC,EAAExG,uBAAuB,CAACyG,aAAa,CAACV,SAAS,EAAElE,OAAO;EAC7D,CAAC;EAED,IAAI4E,aAAa,CAAC5D,IAAI,EAAE;IACtBsD,KAAK,CAACO,CAAC,GAAG,KAAKD,aAAa,CAAC5D,IAAI,EAAE;EACrC;EAEAhB,OAAO,CAAC8E,iBAAiB,CAACR,KAAK,CAAC;EAEhC,KAAK,MAAM7B,IAAI,IAAImC,aAAa,CAAClC,KAAK,EAAE;IACtCI,WAAW,CAACL,IAAI,EAAEzC,OAAO,EAAEmD,OAAO,CAAC;EACrC;AACF","ignoreList":[]}
1
+ {"version":3,"names":["inspect","debug","maybeMutateReactNativeOptions","parsePropAtRule","parsePropDeclarations","parseContainerCondition","parseAngle","parseColor","parseDeclaration","parseLength","reduceParseUnparsed","round","unparseIndividualTransform","inlineVariables","extractKeyFrames","lightningcssLoader","parseMediaQuery","isUniversalSelector","StylesheetBuilder","supportsConditionValid","defaultLogger","OWN_AT_RULE_WARNING","reportSyntaxWarnings","builder","warnings","warning","message","addSyntaxWarning","compile","code","options","logger","isLoggerEnabled","enabled","Boolean","features","Object","assign","selectorPrefix","startsWith","slice","JSON","stringify","process","env","NODE_ENV","toString","lightningcss","Features","vars","Map","effectiveRem","inlineRem","undefined","css","match","parseFloat","inlining","firstPassVisitor","StyleSheetExit","sheet","nonInheriting","registerProperties","collectRegistrations","rules","universalDeclarations","countUniversalDeclarations","runtimeVariables","Set","Array","from","filter","name","declarations","get","count","Rule","rule","type","includes","value","Error","selectors","some","selector","part","kind","remMultiplier","Length","length","unit","countVariable","exclusionList","exclude","decl","property","entry","set","Declaration","firstPass","firstPassWarnings","TextEncoder","encode","include","DoublePositionGradients","ColorFunction","VendorPrefixes","visitor","filename","projectRoot","cwd","MAX_LOG_SIZE","subarray","customAtRules","body","depth","colors","compact","extractRule","stylesheet","getNativeStyleSheet","getWarnings","mapping","extractContainer","extractMedia","declarationBlock","newNestedRule","declaration","applyRuleToSelectors","importantDeclarations","important","fork","newRule","nestedRule","layerRule","condition","mediaRule","mediaQuery","query","mediaQueries","queryBuilder","containerRule","m","n","addContainerQuery","conditional","registrations","inherits","initialValue","parsePropertyInitialValue","registerProperty","add","counts","component","results","components","map","item","multiplier","result"],"sourceRoot":"../../../src","sources":["compiler/compiler.ts"],"mappings":";;AAAA;AACA,SAASA,OAAO,QAAQ,WAAW;AAEnC,SAASC,KAAK,QAAQ,OAAO;AAa7B,SACEC,6BAA6B,EAC7BC,eAAe,EACfC,qBAAqB,QAChB,cAAW;AAQlB,SAASC,uBAAuB,QAAQ,sBAAmB;AAC3D,SACEC,UAAU,EACVC,UAAU,EACVC,gBAAgB,EAChBC,WAAW,EACXC,mBAAmB,EACnBC,KAAK,QACA,mBAAgB;AACvB,SAASC,0BAA0B,QAAQ,4BAAyB;AACpE,SAASC,eAAe,QAAQ,uBAAoB;AACpD,SAASC,gBAAgB,QAAQ,gBAAa;AAC9C,SAASC,kBAAkB,QAAQ,0BAAuB;AAC1D,SAASC,eAAe,QAAQ,kBAAe;AAC/C,SAASC,mBAAmB,QAAQ,uBAAoB;AACxD,SAASC,iBAAiB,QAAQ,iBAAc;AAChD,SAASC,sBAAsB,QAAQ,eAAY;AAEnD,MAAMC,aAAa,GAAGnB,KAAK,CAAC,2BAA2B,CAAC;;AAExD;AACA,MAAMoB,mBAAmB,GAAG,iCAAiC;;AAE7D;AACA,SAASC,oBAAoBA,CAC3BC,OAA0B,EAC1BC,QAAmB,EACb;EACN,KAAK,MAAMC,OAAO,IAAID,QAAQ,EAAE;IAC9B,IAAIC,OAAO,CAACC,OAAO,KAAKL,mBAAmB,EAAE;MAC3CE,OAAO,CAACI,gBAAgB,CAACF,OAAO,CAACC,OAAO,CAAC;IAC3C;EACF;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASE,O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AK,mBAAmB;MACtB,OAAOd,WAAW,CAACgJ,SAAS,CAACzE,KAAK,EAAEzD,OAAO,CAAC;IAC9C,KAAK,YAAY;MACf,OAAOb,mBAAmB,CAAC+I,SAAS,CAACzE,KAAK,EAAEzD,OAAO,EAAE,WAAW,EAAE,KAAK,CAAC;IAC1E,KAAK,cAAc;IACnB,KAAK,SAAS;MACZ,OAAOkI,SAAS,CAACzE,KAAK;IACxB,KAAK,UAAU;MAAE;QACf,MAAM0E,OAAO,GAAGD,SAAS,CAACzE,KAAK,CAAC2E,UAAU,CAACC,GAAG,CAAEC,IAAI,IAClDR,yBAAyB,CAACQ,IAAI,EAAEtI,OAAO,CACzC,CAAC;QACD,IAAImI,OAAO,CAAC3E,QAAQ,CAAC1B,SAAS,CAAC,EAAE;UAC/B,OAAOA,SAAS;QAClB;QACA;QACA;QACA;QACA,IAAIqG,OAAO,CAACjE,MAAM,KAAK,CAAC,EAAE;UACxB,OAAOiE,OAAO,CAAC,CAAC,CAAC;QACnB;QAEA,OAAOD,SAAS,CAACzE,KAAK,CAAC8E,UAAU,CAAChF,IAAI,KAAK,OAAO,GAC9C4E,OAAO,CAACE,GAAG,CAAEG,MAAM,IAAK,CAACA,MAAM,CAAC,CAAC,GACjCL,OAAO;MACb;IACA;MACE,OAAOrG,SAAS;EACpB;AACF","ignoreList":[]}
@@ -4,6 +4,8 @@
4
4
 
5
5
  import { VAR_SYMBOL } from "../native/reactivity.js";
6
6
 
7
+ // A channel is absent when the compile recorded nothing on it
8
+
7
9
  /**
8
10
  * A `react-native-css` StyleSheet
9
11
  */
@@ -44,6 +46,8 @@ import { VAR_SYMBOL } from "../native/reactivity.js";
44
46
  * This array is sorted by most common values when parsing a StyleSheet
45
47
  */
46
48
 
49
+ /** `null` is what a native runtime reads for an unset slot, because the sheet reaches it as JSON. */
50
+
47
51
  /****************************** Compiler ********************************/
48
52
 
49
53
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"names":["VAR_SYMBOL"],"sourceRoot":"../../../src","sources":["compiler/compiler.types.ts"],"mappings":";;AAAA;;AAOA,SAASA,UAAU,QAAQ,yBAAsB;;AAmBjD;AACA;AACA;;AAgBA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAwFA;;AAqBA;;AAMA;;AAwCS;;AAMkE;;AAI3E;;AAUA;;AAEA;AACA;AACA;AACA;AACA;;AAIA;;AAKA;;AAEA;;AAGA;AACA;AACA;;AAKA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":["VAR_SYMBOL"],"sourceRoot":"../../../src","sources":["compiler/compiler.types.ts"],"mappings":";;AAAA;;AAOA,SAASA,UAAU,QAAQ,yBAAsB;;AAmBjD;;AASA;AACA;AACA;;AAkBA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAwFA;;AA2BA;;AAMA;;AAwCS;;AAMkE;;AAI3E;;AAUA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAGA;;AAKA;;AAEA;;AAGA;AACA;AACA;;AAKA;AACA;AACA","ignoreList":[]}
@@ -20,7 +20,12 @@ function parseContainerQueryCondition(condition, builder) {
20
20
  const query = parseContainerCondition(condition.value, builder);
21
21
  return query ? ["!", query] : undefined;
22
22
  case "operation":
23
- const conditions = condition.conditions.map(c => parseContainerQueryCondition(c, builder)).filter(v => !!v);
23
+ const parsed = condition.conditions.map(c => parseContainerCondition(c, builder));
24
+ if (condition.operator === "and" && parsed.some(c => !c)) {
25
+ // Dropping a conjunct would broaden the query to unrelated containers.
26
+ return;
27
+ }
28
+ const conditions = parsed.filter(c => !!c);
24
29
  if (conditions.length === 0) {
25
30
  return;
26
31
  }
@@ -1 +1 @@
1
- {"version":3,"names":["parseMediaFeatureOperator","parseMediaFeatureValue","parseContainerCondition","condition","builder","containerQuery","parseContainerQueryCondition","some","v","undefined","type","parseFeature","value","query","conditions","map","c","filter","length","operator","feature","name","start","startOperator","end","endOperator"],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AAEA,SAASQ,YAAYA,CACnBS,OAA+C,EAC/ChB,OAA0B,EACE;EAC5B,QAAQgB,OAAO,CAACV,IAAI;IAClB,KAAK,SAAS;MACZ,OAAO,CAAC,IAAI,EAAEU,OAAO,CAACC,IAAI,CAAC;IAC7B,KAAK,OAAO;MACV,OAAO,CACL,GAAG,EACHD,OAAO,CAACC,IAAI,EACZpB,sBAAsB,CAACmB,OAAO,CAACR,KAAK,EAAER,OAAO,CAAC,CAC/C;IACH,KAAK,OAAO;MACV,OAAO,CACLJ,yBAAyB,CAACoB,OAAO,CAACD,QAAQ,CAAC,EAC3CC,OAAO,CAACC,IAAI,EACZpB,sBAAsB,CAACmB,OAAO,CAACR,KAAK,EAAER,OAAO,CAAC,CAC/C;IACH,KAAK,UAAU;MACb,OAAO,CACL,IAAI,EACJgB,OAAO,CAACC,IAAI,EACZpB,sBAAsB,CAACmB,OAAO,CAACE,KAAK,EAAElB,OAAO,CAAC,EAC9CJ,yBAAyB,CAACoB,OAAO,CAACG,aAAa,CAAC,EAChDtB,sBAAsB,CAACmB,OAAO,CAACI,GAAG,EAAEpB,OAAO,CAAC,EAC5CJ,yBAAyB,CAACoB,OAAO,CAACK,WAAW,CAAC,CAC/C;IACH;MACEL,OAAO;MACP;EACJ;AACF","ignoreList":[]}
1
+ {"version":3,"names":["parseMediaFeatureOperator","parseMediaFeatureValue","parseContainerCondition","condition","builder","containerQuery","parseContainerQueryCondition","some","v","undefined","type","parseFeature","value","query","parsed","conditions","map","c","operator","filter","length","feature","name","start","startOperator","end","endOperator"],"sourceRoot":"../../../src","sources":["compiler/container-query.ts"],"mappings":";;AAAA;;AAOA,SACEA,yBAAyB,EACzBC,sBAAsB,QACjB,kBAAe;AAGtB,OAAO,SAASC,uBAAuBA,CACrCC,SAAgC,EAChCC,OAA0B,EAC1B;EACA,IAAIC,cAAc,GAAGC,4BAA4B,CAACH,SAAS,EAAEC,OAAO,CAAC;;EAErE;EACA,IAAI,CAACC,cAAc,IAAIA,cAAc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