react-native-css 3.0.0-preview.2 → 3.0.0-preview.4

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 (1159) hide show
  1. package/README.md +138 -10
  2. package/dist/commonjs/compiler/atRules.js +33 -41
  3. package/dist/commonjs/compiler/atRules.js.map +1 -1
  4. package/dist/commonjs/compiler/compiler.js +96 -39
  5. package/dist/commonjs/compiler/compiler.js.map +1 -1
  6. package/dist/commonjs/compiler/compiler.types.js +1 -1
  7. package/dist/commonjs/compiler/compiler.types.js.map +1 -1
  8. package/dist/commonjs/compiler/declarations.js +66 -51
  9. package/dist/commonjs/compiler/declarations.js.map +1 -1
  10. package/dist/commonjs/compiler/inline-variables.js +142 -0
  11. package/dist/commonjs/compiler/inline-variables.js.map +1 -0
  12. package/dist/commonjs/compiler/keyframes.js +1 -1
  13. package/dist/commonjs/compiler/keyframes.js.map +1 -1
  14. package/dist/commonjs/compiler/lightningcss-loader.js +40 -0
  15. package/dist/commonjs/compiler/lightningcss-loader.js.map +1 -0
  16. package/dist/commonjs/compiler/pseudo-elements.js +1 -1
  17. package/dist/commonjs/compiler/selector-builder.js +10 -7
  18. package/dist/commonjs/compiler/selector-builder.js.map +1 -1
  19. package/dist/commonjs/compiler/selectors.js +4 -4
  20. package/dist/commonjs/compiler/selectors.js.map +1 -1
  21. package/dist/commonjs/compiler/stylesheet.js +9 -12
  22. package/dist/commonjs/compiler/stylesheet.js.map +1 -1
  23. package/dist/commonjs/components/ActivityIndicator.js +2 -2
  24. package/dist/commonjs/components/ActivityIndicator.js.map +1 -1
  25. package/dist/commonjs/components/Button.js +2 -2
  26. package/dist/commonjs/components/Button.js.map +1 -1
  27. package/dist/commonjs/components/FlatList.js +6 -5
  28. package/dist/commonjs/components/FlatList.js.map +1 -1
  29. package/dist/commonjs/components/Image.js +2 -2
  30. package/dist/commonjs/components/Image.js.map +1 -1
  31. package/dist/commonjs/components/ImageBackground.js +22 -0
  32. package/dist/commonjs/components/ImageBackground.js.map +1 -0
  33. package/dist/commonjs/components/KeyboardAvoidingView.js +19 -0
  34. package/dist/commonjs/components/KeyboardAvoidingView.js.map +1 -0
  35. package/dist/commonjs/components/Pressable.js +17 -0
  36. package/dist/commonjs/components/Pressable.js.map +1 -0
  37. package/dist/commonjs/components/ScrollView.js +18 -0
  38. package/dist/commonjs/components/ScrollView.js.map +1 -0
  39. package/dist/commonjs/components/Switch.js +2 -2
  40. package/dist/commonjs/components/Switch.js.map +1 -1
  41. package/dist/commonjs/components/Text.js +2 -2
  42. package/dist/commonjs/components/Text.js.map +1 -1
  43. package/dist/commonjs/components/TextInput.js +8 -3
  44. package/dist/commonjs/components/TextInput.js.map +1 -1
  45. package/dist/commonjs/components/TouchableHighlight.js +17 -0
  46. package/dist/commonjs/components/TouchableHighlight.js.map +1 -0
  47. package/dist/commonjs/components/TouchableOpacity.js +17 -0
  48. package/dist/commonjs/components/TouchableOpacity.js.map +1 -0
  49. package/dist/commonjs/components/TouchableWithoutFeedback.js +17 -0
  50. package/dist/commonjs/components/TouchableWithoutFeedback.js.map +1 -0
  51. package/dist/commonjs/components/View.js +2 -2
  52. package/dist/commonjs/components/View.js.map +1 -1
  53. package/dist/commonjs/components/VirtualizedList.js +20 -0
  54. package/dist/commonjs/components/VirtualizedList.js.map +1 -0
  55. package/dist/commonjs/components/index.cjs +265 -0
  56. package/dist/commonjs/components/index.cjs.map +1 -0
  57. package/dist/commonjs/components/index.js +65 -1
  58. package/dist/commonjs/components/index.js.map +1 -1
  59. package/dist/commonjs/components/react-native-safe-area-context.native.js +3 -3
  60. package/dist/commonjs/components/react-native-safe-area-context.native.js.map +1 -1
  61. package/dist/commonjs/index.js +4 -15
  62. package/dist/commonjs/index.js.map +1 -1
  63. package/dist/commonjs/jest/index.js +6 -6
  64. package/dist/commonjs/jest/index.js.map +1 -1
  65. package/dist/commonjs/metro/index.js +8 -118
  66. package/dist/commonjs/metro/index.js.map +1 -1
  67. package/dist/commonjs/metro/injection-code.js +1 -1
  68. package/dist/commonjs/metro/injection-code.js.map +1 -1
  69. package/dist/commonjs/metro/metro-transformer.js +8 -1
  70. package/dist/commonjs/metro/metro-transformer.js.map +1 -1
  71. package/dist/commonjs/metro/override.js +6 -0
  72. package/dist/commonjs/metro/override.js.map +1 -0
  73. package/dist/commonjs/metro/resolver.js +11 -20
  74. package/dist/commonjs/metro/resolver.js.map +1 -1
  75. package/dist/commonjs/native/api.js +113 -0
  76. package/dist/commonjs/native/api.js.map +1 -0
  77. package/dist/commonjs/native/conditions/attributes.js +44 -0
  78. package/dist/commonjs/native/conditions/attributes.js.map +1 -0
  79. package/dist/commonjs/native/conditions/container-query.js.map +1 -0
  80. package/dist/commonjs/native/conditions/guards.js.map +1 -0
  81. package/dist/commonjs/native/conditions/index.js.map +1 -0
  82. package/dist/commonjs/native/conditions/media-query.js.map +1 -0
  83. package/dist/commonjs/native/index.js +28 -0
  84. package/dist/commonjs/native/index.js.map +1 -0
  85. package/dist/commonjs/native/objects.js.map +1 -0
  86. package/dist/commonjs/native/react/interaction.js.map +1 -0
  87. package/dist/commonjs/native/react/rules.js +259 -0
  88. package/dist/commonjs/native/react/rules.js.map +1 -0
  89. package/dist/commonjs/native/react/useNativeCss.js +160 -0
  90. package/dist/commonjs/native/react/useNativeCss.js.map +1 -0
  91. package/dist/commonjs/native/react/usePassthrough.js.map +1 -0
  92. package/dist/commonjs/native/react-native-css-metro-override.js +39 -0
  93. package/dist/commonjs/native/react-native-css-metro-override.js.map +1 -0
  94. package/dist/commonjs/native/reactivity.js +181 -0
  95. package/dist/commonjs/native/reactivity.js.map +1 -0
  96. package/dist/commonjs/native/reanimated.js.map +1 -0
  97. package/dist/commonjs/native/styles/calculate-props.js +162 -0
  98. package/dist/commonjs/native/styles/calculate-props.js.map +1 -0
  99. package/dist/commonjs/native/styles/constants.js.map +1 -0
  100. package/dist/commonjs/native/styles/defaults.js.map +1 -0
  101. package/dist/commonjs/native/styles/functions/animation-timing.js.map +1 -0
  102. package/dist/commonjs/native/styles/functions/calc.js.map +1 -0
  103. package/dist/commonjs/native/styles/functions/filters.js +84 -0
  104. package/dist/commonjs/native/styles/functions/filters.js.map +1 -0
  105. package/dist/commonjs/native/styles/functions/index.js.map +1 -0
  106. package/dist/commonjs/native/styles/functions/numeric-functions.js.map +1 -0
  107. package/dist/commonjs/native/styles/functions/platform-functions.js.map +1 -0
  108. package/dist/commonjs/native/styles/functions/string-functions.js.map +1 -0
  109. package/dist/commonjs/native/styles/functions/transform-functions.js +121 -0
  110. package/dist/commonjs/native/styles/functions/transform-functions.js.map +1 -0
  111. package/dist/commonjs/native/styles/index.js +115 -0
  112. package/dist/commonjs/native/styles/index.js.map +1 -0
  113. package/dist/commonjs/native/styles/line-height.js.map +1 -0
  114. package/dist/commonjs/native/styles/resolve.js +107 -0
  115. package/dist/commonjs/native/styles/resolve.js.map +1 -0
  116. package/dist/commonjs/native/styles/shorthands/_handler.js +79 -0
  117. package/dist/commonjs/native/styles/shorthands/_handler.js.map +1 -0
  118. package/dist/commonjs/native/styles/shorthands/animation.js +61 -0
  119. package/dist/commonjs/native/styles/shorthands/animation.js.map +1 -0
  120. package/dist/commonjs/native/styles/shorthands/border.js.map +1 -0
  121. package/dist/commonjs/native/styles/shorthands/box-shadow.js +48 -0
  122. package/dist/commonjs/native/styles/shorthands/box-shadow.js.map +1 -0
  123. package/dist/commonjs/native/styles/shorthands/index.js.map +1 -0
  124. package/dist/commonjs/native/styles/shorthands/text-shadow.js.map +1 -0
  125. package/dist/commonjs/native/styles/shorthands/transform.js.map +1 -0
  126. package/dist/commonjs/native/styles/units.js.map +1 -0
  127. package/dist/commonjs/native/styles/variables.js +79 -0
  128. package/dist/commonjs/native/styles/variables.js.map +1 -0
  129. package/dist/commonjs/native-internal/README.md +11 -0
  130. package/dist/commonjs/native-internal/index.js +39 -0
  131. package/dist/commonjs/native-internal/index.js.map +1 -0
  132. package/dist/commonjs/native-internal/root.js +34 -0
  133. package/dist/commonjs/native-internal/root.js.map +1 -0
  134. package/dist/commonjs/native-internal/style-collection.js +110 -0
  135. package/dist/commonjs/native-internal/style-collection.js.map +1 -0
  136. package/dist/commonjs/native-internal/variables.js +27 -0
  137. package/dist/commonjs/native-internal/variables.js.map +1 -0
  138. package/dist/commonjs/runtime.js.map +1 -0
  139. package/dist/commonjs/runtime.native.js.map +1 -0
  140. package/dist/commonjs/runtime.types.js.map +1 -0
  141. package/dist/commonjs/utilities/dot-notation.types.js.map +1 -0
  142. package/dist/commonjs/utilities/index.js +39 -0
  143. package/dist/commonjs/utilities/index.js.map +1 -0
  144. package/dist/commonjs/utilities/specificity.js.map +1 -0
  145. package/dist/commonjs/utilities/style-descriptor.js +21 -0
  146. package/dist/commonjs/utilities/style-descriptor.js.map +1 -0
  147. package/dist/commonjs/web/api.js.map +1 -0
  148. package/dist/commonjs/web/assign-style.js.map +1 -0
  149. package/dist/commonjs/web/index.js.map +1 -0
  150. package/dist/commonjs/web/metro.js.map +1 -0
  151. package/dist/module/compiler/atRules.js +33 -41
  152. package/dist/module/compiler/atRules.js.map +1 -1
  153. package/dist/module/compiler/compiler.js +96 -39
  154. package/dist/module/compiler/compiler.js.map +1 -1
  155. package/dist/module/compiler/compiler.types.js +1 -1
  156. package/dist/module/compiler/compiler.types.js.map +1 -1
  157. package/dist/module/compiler/declarations.js +66 -51
  158. package/dist/module/compiler/declarations.js.map +1 -1
  159. package/dist/module/compiler/inline-variables.js +138 -0
  160. package/dist/module/compiler/inline-variables.js.map +1 -0
  161. package/dist/module/compiler/keyframes.js +1 -1
  162. package/dist/module/compiler/keyframes.js.map +1 -1
  163. package/dist/module/compiler/lightningcss-loader.js +36 -0
  164. package/dist/module/compiler/lightningcss-loader.js.map +1 -0
  165. package/dist/module/compiler/pseudo-elements.js +1 -1
  166. package/dist/module/compiler/pseudo-elements.js.map +1 -1
  167. package/dist/module/compiler/selector-builder.js +10 -7
  168. package/dist/module/compiler/selector-builder.js.map +1 -1
  169. package/dist/module/compiler/selectors.js +1 -1
  170. package/dist/module/compiler/selectors.js.map +1 -1
  171. package/dist/module/compiler/stylesheet.js +9 -12
  172. package/dist/module/compiler/stylesheet.js.map +1 -1
  173. package/dist/module/components/ActivityIndicator.js +1 -1
  174. package/dist/module/components/ActivityIndicator.js.map +1 -1
  175. package/dist/module/components/Button.js +1 -1
  176. package/dist/module/components/Button.js.map +1 -1
  177. package/dist/module/components/FlatList.js +5 -4
  178. package/dist/module/components/FlatList.js.map +1 -1
  179. package/dist/module/components/Image.js +1 -1
  180. package/dist/module/components/Image.js.map +1 -1
  181. package/dist/module/components/ImageBackground.js +17 -0
  182. package/dist/module/components/ImageBackground.js.map +1 -0
  183. package/dist/module/components/KeyboardAvoidingView.js +14 -0
  184. package/dist/module/components/KeyboardAvoidingView.js.map +1 -0
  185. package/dist/module/components/Pressable.js +12 -0
  186. package/dist/module/components/Pressable.js.map +1 -0
  187. package/dist/module/components/ScrollView.js +13 -0
  188. package/dist/module/components/ScrollView.js.map +1 -0
  189. package/dist/module/components/Switch.js +1 -1
  190. package/dist/module/components/Switch.js.map +1 -1
  191. package/dist/module/components/Text.js +1 -1
  192. package/dist/module/components/Text.js.map +1 -1
  193. package/dist/module/components/TextInput.js +7 -2
  194. package/dist/module/components/TextInput.js.map +1 -1
  195. package/dist/module/components/TouchableHighlight.js +12 -0
  196. package/dist/module/components/TouchableHighlight.js.map +1 -0
  197. package/dist/module/components/TouchableOpacity.js +12 -0
  198. package/dist/module/components/TouchableOpacity.js.map +1 -0
  199. package/dist/module/components/TouchableWithoutFeedback.js +12 -0
  200. package/dist/module/components/TouchableWithoutFeedback.js.map +1 -0
  201. package/dist/module/components/View.js +1 -1
  202. package/dist/module/components/View.js.map +1 -1
  203. package/dist/module/components/VirtualizedList.js +15 -0
  204. package/dist/module/components/VirtualizedList.js.map +1 -0
  205. package/dist/module/components/index.cjs +265 -0
  206. package/dist/module/components/index.cjs.map +1 -0
  207. package/dist/module/components/index.js +8 -0
  208. package/dist/module/components/index.js.map +1 -1
  209. package/dist/module/components/react-native-safe-area-context.native.js +2 -2
  210. package/dist/module/components/react-native-safe-area-context.native.js.map +1 -1
  211. package/dist/module/index.js +1 -2
  212. package/dist/module/index.js.map +1 -1
  213. package/dist/module/jest/index.js +4 -4
  214. package/dist/module/jest/index.js.map +1 -1
  215. package/dist/module/metro/index.js +8 -117
  216. package/dist/module/metro/index.js.map +1 -1
  217. package/dist/module/metro/injection-code.js +1 -1
  218. package/dist/module/metro/injection-code.js.map +1 -1
  219. package/dist/module/metro/metro-transformer.js +8 -1
  220. package/dist/module/metro/metro-transformer.js.map +1 -1
  221. package/dist/module/metro/override.js +4 -0
  222. package/dist/module/metro/override.js.map +1 -0
  223. package/dist/module/metro/resolver.js +11 -20
  224. package/dist/module/metro/resolver.js.map +1 -1
  225. package/dist/module/native/api.js +82 -0
  226. package/dist/module/native/api.js.map +1 -0
  227. package/dist/module/native/conditions/attributes.js +40 -0
  228. package/dist/module/native/conditions/attributes.js.map +1 -0
  229. package/dist/module/native/conditions/container-query.js.map +1 -0
  230. package/dist/module/native/conditions/guards.js.map +1 -0
  231. package/dist/module/native/conditions/index.js.map +1 -0
  232. package/dist/module/native/conditions/media-query.js.map +1 -0
  233. package/dist/module/native/index.js +5 -0
  234. package/dist/module/native/index.js.map +1 -0
  235. package/dist/module/native/objects.js.map +1 -0
  236. package/dist/module/native/react/interaction.js.map +1 -0
  237. package/dist/module/native/react/rules.js +252 -0
  238. package/dist/module/native/react/rules.js.map +1 -0
  239. package/dist/module/native/react/useNativeCss.js +154 -0
  240. package/dist/module/native/react/useNativeCss.js.map +1 -0
  241. package/dist/module/native/react/usePassthrough.js.map +1 -0
  242. package/dist/module/native/react-native-css-metro-override.js +37 -0
  243. package/dist/module/native/react-native-css-metro-override.js.map +1 -0
  244. package/dist/module/native/reactivity.js +169 -0
  245. package/dist/module/native/reactivity.js.map +1 -0
  246. package/dist/module/native/reanimated.js.map +1 -0
  247. package/dist/module/native/styles/calculate-props.js +157 -0
  248. package/dist/module/native/styles/calculate-props.js.map +1 -0
  249. package/dist/module/native/styles/constants.js.map +1 -0
  250. package/dist/module/native/styles/defaults.js.map +1 -0
  251. package/dist/module/native/styles/functions/animation-timing.js.map +1 -0
  252. package/dist/module/native/styles/functions/calc.js.map +1 -0
  253. package/dist/module/native/styles/functions/filters.js +70 -0
  254. package/dist/module/native/styles/functions/filters.js.map +1 -0
  255. package/dist/module/native/styles/functions/index.js.map +1 -0
  256. package/dist/module/native/styles/functions/numeric-functions.js.map +1 -0
  257. package/dist/module/native/styles/functions/platform-functions.js.map +1 -0
  258. package/dist/module/native/styles/functions/string-functions.js.map +1 -0
  259. package/dist/module/native/styles/functions/transform-functions.js +114 -0
  260. package/dist/module/native/styles/functions/transform-functions.js.map +1 -0
  261. package/dist/module/native/styles/index.js +110 -0
  262. package/dist/module/native/styles/index.js.map +1 -0
  263. package/dist/module/native/styles/line-height.js.map +1 -0
  264. package/dist/module/native/styles/resolve.js +102 -0
  265. package/dist/module/native/styles/resolve.js.map +1 -0
  266. package/dist/module/native/styles/shorthands/_handler.js +74 -0
  267. package/dist/module/native/styles/shorthands/_handler.js.map +1 -0
  268. package/dist/module/native/styles/shorthands/animation.js +54 -0
  269. package/dist/module/native/styles/shorthands/animation.js.map +1 -0
  270. package/dist/module/native/styles/shorthands/border.js.map +1 -0
  271. package/dist/module/native/styles/shorthands/box-shadow.js +43 -0
  272. package/dist/module/native/styles/shorthands/box-shadow.js.map +1 -0
  273. package/dist/module/native/styles/shorthands/index.js.map +1 -0
  274. package/dist/module/native/styles/shorthands/text-shadow.js.map +1 -0
  275. package/dist/module/native/styles/shorthands/transform.js.map +1 -0
  276. package/dist/module/native/styles/units.js.map +1 -0
  277. package/dist/module/native/styles/variables.js +75 -0
  278. package/dist/module/native/styles/variables.js.map +1 -0
  279. package/dist/module/native-internal/README.md +11 -0
  280. package/dist/module/native-internal/index.js +6 -0
  281. package/dist/module/native-internal/index.js.map +1 -0
  282. package/dist/module/native-internal/root.js +30 -0
  283. package/dist/module/native-internal/root.js.map +1 -0
  284. package/dist/module/native-internal/style-collection.js +95 -0
  285. package/dist/module/native-internal/style-collection.js.map +1 -0
  286. package/dist/module/native-internal/variables.js +22 -0
  287. package/dist/module/native-internal/variables.js.map +1 -0
  288. package/dist/module/runtime.js.map +1 -0
  289. package/dist/module/runtime.native.js.map +1 -0
  290. package/dist/module/runtime.types.js.map +1 -0
  291. package/dist/module/utilities/dot-notation.types.js.map +1 -0
  292. package/dist/module/utilities/index.js +6 -0
  293. package/dist/module/utilities/index.js.map +1 -0
  294. package/dist/module/utilities/specificity.js.map +1 -0
  295. package/dist/module/utilities/style-descriptor.js +16 -0
  296. package/dist/module/utilities/style-descriptor.js.map +1 -0
  297. package/dist/module/web/api.js.map +1 -0
  298. package/dist/module/web/assign-style.js.map +1 -0
  299. package/dist/module/web/index.js.map +1 -0
  300. package/dist/module/web/metro.js.map +1 -0
  301. package/dist/typescript/commonjs/.config/eslint.config.d.mts +3 -0
  302. package/dist/typescript/commonjs/.config/eslint.config.d.mts.map +1 -0
  303. package/dist/typescript/commonjs/eslint.config.d.mts +2 -0
  304. package/dist/typescript/commonjs/eslint.config.d.mts.map +1 -0
  305. package/dist/typescript/commonjs/example/app.config.d.ts.map +1 -1
  306. package/dist/typescript/commonjs/example/index.d.ts +2 -0
  307. package/dist/typescript/commonjs/example/index.d.ts.map +1 -0
  308. package/dist/typescript/commonjs/example/metro.config.d.ts +3 -0
  309. package/dist/typescript/commonjs/example/metro.config.d.ts.map +1 -0
  310. package/dist/typescript/commonjs/example/postcss.config.d.mts +7 -0
  311. package/dist/typescript/commonjs/example/postcss.config.d.mts.map +1 -0
  312. package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -1
  313. package/dist/typescript/commonjs/src/compiler/atRules.d.ts +1 -1
  314. package/dist/typescript/commonjs/src/compiler/atRules.d.ts.map +1 -1
  315. package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -1
  316. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +11 -7
  317. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -1
  318. package/dist/typescript/commonjs/src/compiler/declarations.d.ts +6 -6
  319. package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -1
  320. package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts +4 -0
  321. package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts.map +1 -0
  322. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts +1 -1
  323. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts.map +1 -1
  324. package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts +30 -0
  325. package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts.map +1 -0
  326. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts +1 -1
  327. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -1
  328. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +2 -1
  329. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -1
  330. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +3 -10
  331. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -1
  332. package/dist/typescript/commonjs/src/components/Button.d.ts +3 -10
  333. package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -1
  334. package/dist/typescript/commonjs/src/components/FlatList.d.ts +3 -7
  335. package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -1
  336. package/dist/typescript/commonjs/src/components/Image.d.ts +3 -5
  337. package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -1
  338. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts +6 -0
  339. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts.map +1 -0
  340. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts +6 -0
  341. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts.map +1 -0
  342. package/dist/typescript/commonjs/src/components/Pressable.d.ts +6 -0
  343. package/dist/typescript/commonjs/src/components/Pressable.d.ts.map +1 -0
  344. package/dist/typescript/commonjs/src/components/ScrollView.d.ts +6 -0
  345. package/dist/typescript/commonjs/src/components/ScrollView.d.ts.map +1 -0
  346. package/dist/typescript/commonjs/src/components/Text.d.ts +2 -2
  347. package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -1
  348. package/dist/typescript/commonjs/src/components/TextInput.d.ts +3 -5
  349. package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -1
  350. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts +6 -0
  351. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts.map +1 -0
  352. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts +6 -0
  353. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts.map +1 -0
  354. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts +6 -0
  355. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
  356. package/dist/typescript/commonjs/src/components/View.d.ts +2 -2
  357. package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -1
  358. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts +6 -0
  359. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts.map +1 -0
  360. package/dist/typescript/commonjs/src/components/index.d.cts +2 -0
  361. package/dist/typescript/commonjs/src/components/index.d.cts.map +1 -0
  362. package/dist/typescript/commonjs/src/components/index.d.ts +8 -0
  363. package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -1
  364. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts.map +1 -1
  365. package/dist/typescript/commonjs/src/index.d.ts +0 -1
  366. package/dist/typescript/commonjs/src/index.d.ts.map +1 -1
  367. package/dist/typescript/commonjs/src/jest/index.d.ts +1 -1
  368. package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -1
  369. package/dist/typescript/commonjs/src/metro/index.d.ts +1 -1
  370. package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -1
  371. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -1
  372. package/dist/typescript/commonjs/src/metro/override.d.ts +2 -0
  373. package/dist/typescript/commonjs/src/metro/override.d.ts.map +1 -0
  374. package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -1
  375. package/dist/typescript/commonjs/src/native/api.d.ts +26 -0
  376. package/dist/typescript/commonjs/src/native/api.d.ts.map +1 -0
  377. package/dist/typescript/commonjs/src/native/conditions/attributes.d.ts +4 -0
  378. package/dist/typescript/commonjs/src/native/conditions/attributes.d.ts.map +1 -0
  379. package/dist/typescript/commonjs/src/native/conditions/container-query.d.ts +7 -0
  380. package/dist/typescript/commonjs/src/native/conditions/container-query.d.ts.map +1 -0
  381. package/dist/typescript/commonjs/src/native/conditions/guards.d.ts.map +1 -0
  382. package/dist/typescript/commonjs/src/native/conditions/index.d.ts +6 -0
  383. package/dist/typescript/commonjs/src/native/conditions/index.d.ts.map +1 -0
  384. package/dist/typescript/commonjs/src/native/conditions/media-query.d.ts +4 -0
  385. package/dist/typescript/commonjs/src/native/conditions/media-query.d.ts.map +1 -0
  386. package/dist/typescript/commonjs/src/native/index.d.ts +4 -0
  387. package/dist/typescript/commonjs/src/native/index.d.ts.map +1 -0
  388. package/dist/typescript/commonjs/src/native/objects.d.ts.map +1 -0
  389. package/dist/typescript/commonjs/src/native/react/interaction.d.ts.map +1 -0
  390. package/dist/typescript/commonjs/src/native/react/rules.d.ts.map +1 -0
  391. package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts.map +1 -0
  392. package/dist/typescript/commonjs/src/native/react/usePassthrough.d.ts.map +1 -0
  393. package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts +2 -0
  394. package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts.map +1 -0
  395. package/dist/typescript/commonjs/src/native/reactivity.d.ts +52 -0
  396. package/dist/typescript/commonjs/src/native/reactivity.d.ts.map +1 -0
  397. package/dist/typescript/commonjs/src/native/reanimated.d.ts.map +1 -0
  398. package/dist/typescript/commonjs/src/native/styles/calculate-props.d.ts +10 -0
  399. package/dist/typescript/commonjs/src/native/styles/calculate-props.d.ts.map +1 -0
  400. package/dist/typescript/commonjs/src/native/styles/constants.d.ts.map +1 -0
  401. package/dist/typescript/commonjs/src/native/styles/defaults.d.ts.map +1 -0
  402. package/dist/typescript/commonjs/src/native/styles/functions/animation-timing.d.ts.map +1 -0
  403. package/dist/typescript/commonjs/src/native/styles/functions/calc.d.ts.map +1 -0
  404. package/dist/typescript/commonjs/src/native/styles/functions/filters.d.ts.map +1 -0
  405. package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts.map +1 -0
  406. package/dist/typescript/commonjs/src/native/styles/functions/numeric-functions.d.ts.map +1 -0
  407. package/dist/typescript/commonjs/src/native/styles/functions/platform-functions.d.ts.map +1 -0
  408. package/dist/typescript/commonjs/src/native/styles/functions/string-functions.d.ts.map +1 -0
  409. package/dist/typescript/commonjs/src/native/styles/functions/transform-functions.d.ts.map +1 -0
  410. package/dist/typescript/commonjs/src/native/styles/index.d.ts +19 -0
  411. package/dist/typescript/commonjs/src/native/styles/index.d.ts.map +1 -0
  412. package/dist/typescript/commonjs/src/native/styles/line-height.d.ts.map +1 -0
  413. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts +18 -0
  414. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts.map +1 -0
  415. package/dist/typescript/commonjs/src/native/styles/shorthands/_handler.d.ts.map +1 -0
  416. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts +5 -0
  417. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts.map +1 -0
  418. package/dist/typescript/commonjs/src/native/styles/shorthands/border.d.ts.map +1 -0
  419. package/dist/typescript/commonjs/src/native/styles/shorthands/box-shadow.d.ts.map +1 -0
  420. package/dist/typescript/commonjs/src/native/styles/shorthands/index.d.ts.map +1 -0
  421. package/dist/typescript/commonjs/src/native/styles/shorthands/text-shadow.d.ts.map +1 -0
  422. package/dist/typescript/commonjs/src/native/styles/shorthands/transform.d.ts.map +1 -0
  423. package/dist/typescript/commonjs/src/native/styles/units.d.ts.map +1 -0
  424. package/dist/typescript/commonjs/src/native/styles/variables.d.ts +5 -0
  425. package/dist/typescript/commonjs/src/native/styles/variables.d.ts.map +1 -0
  426. package/dist/typescript/commonjs/src/native-internal/index.d.ts +4 -0
  427. package/dist/typescript/commonjs/src/native-internal/index.d.ts.map +1 -0
  428. package/dist/typescript/commonjs/src/native-internal/root.d.ts +11 -0
  429. package/dist/typescript/commonjs/src/native-internal/root.d.ts.map +1 -0
  430. package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts +16 -0
  431. package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts.map +1 -0
  432. package/dist/typescript/commonjs/src/native-internal/variables.d.ts +8 -0
  433. package/dist/typescript/commonjs/src/native-internal/variables.d.ts.map +1 -0
  434. package/dist/typescript/commonjs/src/runtime.d.ts.map +1 -0
  435. package/dist/typescript/commonjs/src/runtime.native.d.ts.map +1 -0
  436. package/dist/typescript/commonjs/src/runtime.types.d.ts +49 -0
  437. package/dist/typescript/commonjs/src/runtime.types.d.ts.map +1 -0
  438. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts.map +1 -0
  439. package/dist/typescript/commonjs/src/utilities/index.d.ts +4 -0
  440. package/dist/typescript/commonjs/src/utilities/index.d.ts.map +1 -0
  441. package/dist/typescript/commonjs/src/utilities/specificity.d.ts +13 -0
  442. package/dist/typescript/commonjs/src/utilities/specificity.d.ts.map +1 -0
  443. package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts +4 -0
  444. package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts.map +1 -0
  445. package/dist/typescript/commonjs/src/web/api.d.ts +16 -0
  446. package/dist/typescript/commonjs/src/web/api.d.ts.map +1 -0
  447. package/dist/typescript/commonjs/src/web/assign-style.d.ts.map +1 -0
  448. package/dist/typescript/commonjs/src/web/index.d.ts.map +1 -0
  449. package/dist/typescript/commonjs/src/web/metro.d.ts.map +1 -0
  450. package/dist/typescript/module/.config/eslint.config.d.mts +3 -0
  451. package/dist/typescript/module/.config/eslint.config.d.mts.map +1 -0
  452. package/dist/typescript/module/eslint.config.d.mts +2 -0
  453. package/dist/typescript/module/eslint.config.d.mts.map +1 -0
  454. package/dist/typescript/module/example/app.config.d.ts.map +1 -1
  455. package/dist/typescript/module/example/index.d.ts +2 -0
  456. package/dist/typescript/module/example/index.d.ts.map +1 -0
  457. package/dist/typescript/module/example/metro.config.d.ts +3 -0
  458. package/dist/typescript/module/example/metro.config.d.ts.map +1 -0
  459. package/dist/typescript/module/example/postcss.config.d.mts +7 -0
  460. package/dist/typescript/module/example/postcss.config.d.mts.map +1 -0
  461. package/dist/typescript/module/example/src/App.d.ts.map +1 -1
  462. package/dist/typescript/module/src/compiler/atRules.d.ts +1 -1
  463. package/dist/typescript/module/src/compiler/atRules.d.ts.map +1 -1
  464. package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -1
  465. package/dist/typescript/module/src/compiler/compiler.types.d.ts +11 -7
  466. package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -1
  467. package/dist/typescript/module/src/compiler/declarations.d.ts +6 -6
  468. package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -1
  469. package/dist/typescript/module/src/compiler/inline-variables.d.ts +4 -0
  470. package/dist/typescript/module/src/compiler/inline-variables.d.ts.map +1 -0
  471. package/dist/typescript/module/src/compiler/keyframes.d.ts +1 -1
  472. package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -1
  473. package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts +30 -0
  474. package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts.map +1 -0
  475. package/dist/typescript/module/src/compiler/selector-builder.d.ts +1 -1
  476. package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -1
  477. package/dist/typescript/module/src/compiler/stylesheet.d.ts +2 -1
  478. package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -1
  479. package/dist/typescript/module/src/components/ActivityIndicator.d.ts +3 -10
  480. package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -1
  481. package/dist/typescript/module/src/components/Button.d.ts +3 -10
  482. package/dist/typescript/module/src/components/Button.d.ts.map +1 -1
  483. package/dist/typescript/module/src/components/FlatList.d.ts +3 -7
  484. package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -1
  485. package/dist/typescript/module/src/components/Image.d.ts +3 -5
  486. package/dist/typescript/module/src/components/Image.d.ts.map +1 -1
  487. package/dist/typescript/module/src/components/ImageBackground.d.ts +6 -0
  488. package/dist/typescript/module/src/components/ImageBackground.d.ts.map +1 -0
  489. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts +6 -0
  490. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts.map +1 -0
  491. package/dist/typescript/module/src/components/Pressable.d.ts +6 -0
  492. package/dist/typescript/module/src/components/Pressable.d.ts.map +1 -0
  493. package/dist/typescript/module/src/components/ScrollView.d.ts +6 -0
  494. package/dist/typescript/module/src/components/ScrollView.d.ts.map +1 -0
  495. package/dist/typescript/module/src/components/Text.d.ts +2 -2
  496. package/dist/typescript/module/src/components/Text.d.ts.map +1 -1
  497. package/dist/typescript/module/src/components/TextInput.d.ts +3 -5
  498. package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -1
  499. package/dist/typescript/module/src/components/TouchableHighlight.d.ts +6 -0
  500. package/dist/typescript/module/src/components/TouchableHighlight.d.ts.map +1 -0
  501. package/dist/typescript/module/src/components/TouchableOpacity.d.ts +6 -0
  502. package/dist/typescript/module/src/components/TouchableOpacity.d.ts.map +1 -0
  503. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts +6 -0
  504. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
  505. package/dist/typescript/module/src/components/View.d.ts +2 -2
  506. package/dist/typescript/module/src/components/View.d.ts.map +1 -1
  507. package/dist/typescript/module/src/components/VirtualizedList.d.ts +6 -0
  508. package/dist/typescript/module/src/components/VirtualizedList.d.ts.map +1 -0
  509. package/dist/typescript/module/src/components/index.d.cts +2 -0
  510. package/dist/typescript/module/src/components/index.d.cts.map +1 -0
  511. package/dist/typescript/module/src/components/index.d.ts +8 -0
  512. package/dist/typescript/module/src/components/index.d.ts.map +1 -1
  513. package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts.map +1 -1
  514. package/dist/typescript/module/src/index.d.ts +0 -1
  515. package/dist/typescript/module/src/index.d.ts.map +1 -1
  516. package/dist/typescript/module/src/jest/index.d.ts +1 -1
  517. package/dist/typescript/module/src/jest/index.d.ts.map +1 -1
  518. package/dist/typescript/module/src/metro/index.d.ts +1 -1
  519. package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
  520. package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -1
  521. package/dist/typescript/module/src/metro/override.d.ts +2 -0
  522. package/dist/typescript/module/src/metro/override.d.ts.map +1 -0
  523. package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -1
  524. package/dist/typescript/module/src/native/api.d.ts +26 -0
  525. package/dist/typescript/module/src/native/api.d.ts.map +1 -0
  526. package/dist/typescript/module/src/native/conditions/attributes.d.ts +4 -0
  527. package/dist/typescript/module/src/native/conditions/attributes.d.ts.map +1 -0
  528. package/dist/typescript/module/src/native/conditions/container-query.d.ts +7 -0
  529. package/dist/typescript/module/src/native/conditions/container-query.d.ts.map +1 -0
  530. package/dist/typescript/module/src/native/conditions/guards.d.ts.map +1 -0
  531. package/dist/typescript/module/src/native/conditions/index.d.ts +6 -0
  532. package/dist/typescript/module/src/native/conditions/index.d.ts.map +1 -0
  533. package/dist/typescript/module/src/native/conditions/media-query.d.ts +4 -0
  534. package/dist/typescript/module/src/native/conditions/media-query.d.ts.map +1 -0
  535. package/dist/typescript/module/src/native/index.d.ts +4 -0
  536. package/dist/typescript/module/src/native/index.d.ts.map +1 -0
  537. package/dist/typescript/module/src/native/objects.d.ts.map +1 -0
  538. package/dist/typescript/module/src/native/react/interaction.d.ts.map +1 -0
  539. package/dist/typescript/module/src/native/react/rules.d.ts.map +1 -0
  540. package/dist/typescript/module/src/native/react/useNativeCss.d.ts.map +1 -0
  541. package/dist/typescript/module/src/native/react/usePassthrough.d.ts.map +1 -0
  542. package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts +2 -0
  543. package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts.map +1 -0
  544. package/dist/typescript/module/src/native/reactivity.d.ts +52 -0
  545. package/dist/typescript/module/src/native/reactivity.d.ts.map +1 -0
  546. package/dist/typescript/module/src/native/reanimated.d.ts.map +1 -0
  547. package/dist/typescript/module/src/native/styles/calculate-props.d.ts +10 -0
  548. package/dist/typescript/module/src/native/styles/calculate-props.d.ts.map +1 -0
  549. package/dist/typescript/module/src/native/styles/constants.d.ts.map +1 -0
  550. package/dist/typescript/module/src/native/styles/defaults.d.ts.map +1 -0
  551. package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts.map +1 -0
  552. package/dist/typescript/module/src/native/styles/functions/calc.d.ts.map +1 -0
  553. package/dist/typescript/module/src/native/styles/functions/filters.d.ts.map +1 -0
  554. package/dist/typescript/module/src/native/styles/functions/index.d.ts.map +1 -0
  555. package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts.map +1 -0
  556. package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts.map +1 -0
  557. package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts.map +1 -0
  558. package/dist/typescript/module/src/native/styles/functions/transform-functions.d.ts.map +1 -0
  559. package/dist/typescript/module/src/native/styles/index.d.ts +19 -0
  560. package/dist/typescript/module/src/native/styles/index.d.ts.map +1 -0
  561. package/dist/typescript/module/src/native/styles/line-height.d.ts.map +1 -0
  562. package/dist/typescript/module/src/native/styles/resolve.d.ts +18 -0
  563. package/dist/typescript/module/src/native/styles/resolve.d.ts.map +1 -0
  564. package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts.map +1 -0
  565. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts +5 -0
  566. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts.map +1 -0
  567. package/dist/typescript/module/src/native/styles/shorthands/border.d.ts.map +1 -0
  568. package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts.map +1 -0
  569. package/dist/typescript/module/src/native/styles/shorthands/index.d.ts.map +1 -0
  570. package/dist/typescript/module/src/native/styles/shorthands/text-shadow.d.ts.map +1 -0
  571. package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts.map +1 -0
  572. package/dist/typescript/module/src/native/styles/units.d.ts.map +1 -0
  573. package/dist/typescript/module/src/native/styles/variables.d.ts +5 -0
  574. package/dist/typescript/module/src/native/styles/variables.d.ts.map +1 -0
  575. package/dist/typescript/module/src/native-internal/index.d.ts +4 -0
  576. package/dist/typescript/module/src/native-internal/index.d.ts.map +1 -0
  577. package/dist/typescript/module/src/native-internal/root.d.ts +11 -0
  578. package/dist/typescript/module/src/native-internal/root.d.ts.map +1 -0
  579. package/dist/typescript/module/src/native-internal/style-collection.d.ts +16 -0
  580. package/dist/typescript/module/src/native-internal/style-collection.d.ts.map +1 -0
  581. package/dist/typescript/module/src/native-internal/variables.d.ts +8 -0
  582. package/dist/typescript/module/src/native-internal/variables.d.ts.map +1 -0
  583. package/dist/typescript/module/src/runtime.d.ts.map +1 -0
  584. package/dist/typescript/module/src/runtime.native.d.ts.map +1 -0
  585. package/dist/typescript/module/src/runtime.types.d.ts +49 -0
  586. package/dist/typescript/module/src/runtime.types.d.ts.map +1 -0
  587. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts.map +1 -0
  588. package/dist/typescript/module/src/utilities/index.d.ts +4 -0
  589. package/dist/typescript/module/src/utilities/index.d.ts.map +1 -0
  590. package/dist/typescript/module/src/utilities/specificity.d.ts +13 -0
  591. package/dist/typescript/module/src/utilities/specificity.d.ts.map +1 -0
  592. package/dist/typescript/module/src/utilities/style-descriptor.d.ts +4 -0
  593. package/dist/typescript/module/src/utilities/style-descriptor.d.ts.map +1 -0
  594. package/dist/typescript/module/src/web/api.d.ts +16 -0
  595. package/dist/typescript/module/src/web/api.d.ts.map +1 -0
  596. package/dist/typescript/module/src/web/assign-style.d.ts.map +1 -0
  597. package/dist/typescript/module/src/web/index.d.ts.map +1 -0
  598. package/dist/typescript/module/src/web/metro.d.ts.map +1 -0
  599. package/package.json +84 -55
  600. package/src/compiler/atRules.ts +32 -43
  601. package/src/compiler/compiler.ts +115 -42
  602. package/src/compiler/compiler.types.ts +16 -7
  603. package/src/compiler/declarations.ts +88 -87
  604. package/src/compiler/inline-variables.ts +209 -0
  605. package/src/compiler/keyframes.ts +2 -2
  606. package/src/compiler/lightningcss-loader.ts +40 -0
  607. package/src/compiler/pseudo-elements.ts +1 -1
  608. package/src/compiler/selector-builder.ts +14 -8
  609. package/src/compiler/selectors.ts +1 -1
  610. package/src/compiler/stylesheet.ts +10 -17
  611. package/src/components/ActivityIndicator.tsx +2 -2
  612. package/src/components/Button.tsx +2 -2
  613. package/src/components/FlatList.tsx +6 -5
  614. package/src/components/Image.tsx +2 -2
  615. package/src/components/ImageBackground.tsx +27 -0
  616. package/src/components/KeyboardAvoidingView.tsx +24 -0
  617. package/src/components/Pressable.tsx +17 -0
  618. package/src/components/ScrollView.tsx +20 -0
  619. package/src/components/Text.tsx +1 -1
  620. package/src/components/TextInput.tsx +8 -3
  621. package/src/components/TouchableHighlight.tsx +22 -0
  622. package/src/components/TouchableOpacity.tsx +22 -0
  623. package/src/components/TouchableWithoutFeedback.tsx +22 -0
  624. package/src/components/View.tsx +1 -1
  625. package/src/components/VirtualizedList.tsx +25 -0
  626. package/src/components/index.cts +263 -0
  627. package/src/components/index.ts +17 -0
  628. package/src/components/react-native-safe-area-context.native.tsx +7 -3
  629. package/src/index.ts +0 -2
  630. package/src/jest/index.ts +6 -5
  631. package/src/metro/index.ts +10 -166
  632. package/src/metro/injection-code.ts +1 -1
  633. package/src/metro/metro-transformer.ts +15 -1
  634. package/src/metro/override.ts +1 -0
  635. package/src/metro/resolver.ts +20 -26
  636. package/src/native/api.tsx +120 -0
  637. package/src/native/conditions/attributes.ts +54 -0
  638. package/src/native/conditions/container-query.ts +162 -0
  639. package/src/native/conditions/index.ts +55 -0
  640. package/src/native/conditions/media-query.ts +99 -0
  641. package/src/native/index.ts +3 -0
  642. package/src/native/react/rules.ts +336 -0
  643. package/src/native/react/useNativeCss.ts +204 -0
  644. package/src/native/reactivity.ts +248 -0
  645. package/src/native/styles/calculate-props.ts +217 -0
  646. package/src/native/styles/functions/filters.ts +99 -0
  647. package/src/native/styles/functions/transform-functions.ts +85 -0
  648. package/src/native/styles/index.ts +198 -0
  649. package/src/native/styles/resolve.ts +164 -0
  650. package/src/native/styles/shorthands/_handler.ts +122 -0
  651. package/src/native/styles/shorthands/animation.ts +131 -0
  652. package/src/native/styles/shorthands/box-shadow.ts +71 -0
  653. package/src/native/styles/variables.ts +88 -0
  654. package/src/native-internal/README.md +11 -0
  655. package/src/native-internal/index.ts +3 -0
  656. package/src/native-internal/root.ts +44 -0
  657. package/src/native-internal/style-collection.ts +148 -0
  658. package/src/native-internal/variables.tsx +36 -0
  659. package/src/runtime.types.ts +150 -0
  660. package/src/utilities/index.ts +3 -0
  661. package/src/utilities/specificity.ts +45 -0
  662. package/src/utilities/style-descriptor.ts +24 -0
  663. package/src/web/api.tsx +115 -0
  664. package/dist/commonjs/poison.pill.js +0 -39
  665. package/dist/commonjs/poison.pill.js.map +0 -1
  666. package/dist/commonjs/runtime/index.js +0 -17
  667. package/dist/commonjs/runtime/index.js.map +0 -1
  668. package/dist/commonjs/runtime/native/api.js +0 -115
  669. package/dist/commonjs/runtime/native/api.js.map +0 -1
  670. package/dist/commonjs/runtime/native/conditions/attributes.js +0 -42
  671. package/dist/commonjs/runtime/native/conditions/attributes.js.map +0 -1
  672. package/dist/commonjs/runtime/native/conditions/container-query.js.map +0 -1
  673. package/dist/commonjs/runtime/native/conditions/guards.js.map +0 -1
  674. package/dist/commonjs/runtime/native/conditions/index.js.map +0 -1
  675. package/dist/commonjs/runtime/native/conditions/media-query.js.map +0 -1
  676. package/dist/commonjs/runtime/native/index.js +0 -28
  677. package/dist/commonjs/runtime/native/index.js.map +0 -1
  678. package/dist/commonjs/runtime/native/metro.js.map +0 -1
  679. package/dist/commonjs/runtime/native/react/interaction.js.map +0 -1
  680. package/dist/commonjs/runtime/native/react/rules.js +0 -259
  681. package/dist/commonjs/runtime/native/react/rules.js.map +0 -1
  682. package/dist/commonjs/runtime/native/react/useNativeCss.js +0 -159
  683. package/dist/commonjs/runtime/native/react/useNativeCss.js.map +0 -1
  684. package/dist/commonjs/runtime/native/react/usePassthrough.js.map +0 -1
  685. package/dist/commonjs/runtime/native/reactivity.js +0 -185
  686. package/dist/commonjs/runtime/native/reactivity.js.map +0 -1
  687. package/dist/commonjs/runtime/native/reanimated.js.map +0 -1
  688. package/dist/commonjs/runtime/native/styles/calculate-props.js +0 -148
  689. package/dist/commonjs/runtime/native/styles/calculate-props.js.map +0 -1
  690. package/dist/commonjs/runtime/native/styles/constants.js.map +0 -1
  691. package/dist/commonjs/runtime/native/styles/defaults.js.map +0 -1
  692. package/dist/commonjs/runtime/native/styles/functions/animation-timing.js.map +0 -1
  693. package/dist/commonjs/runtime/native/styles/functions/calc.js.map +0 -1
  694. package/dist/commonjs/runtime/native/styles/functions/filters.js +0 -84
  695. package/dist/commonjs/runtime/native/styles/functions/filters.js.map +0 -1
  696. package/dist/commonjs/runtime/native/styles/functions/index.js.map +0 -1
  697. package/dist/commonjs/runtime/native/styles/functions/numeric-functions.js.map +0 -1
  698. package/dist/commonjs/runtime/native/styles/functions/platform-functions.js.map +0 -1
  699. package/dist/commonjs/runtime/native/styles/functions/string-functions.js.map +0 -1
  700. package/dist/commonjs/runtime/native/styles/functions/transform-functions.js +0 -121
  701. package/dist/commonjs/runtime/native/styles/functions/transform-functions.js.map +0 -1
  702. package/dist/commonjs/runtime/native/styles/index.js +0 -115
  703. package/dist/commonjs/runtime/native/styles/index.js.map +0 -1
  704. package/dist/commonjs/runtime/native/styles/line-height.js.map +0 -1
  705. package/dist/commonjs/runtime/native/styles/resolve.js +0 -108
  706. package/dist/commonjs/runtime/native/styles/resolve.js.map +0 -1
  707. package/dist/commonjs/runtime/native/styles/shorthands/_handler.js +0 -79
  708. package/dist/commonjs/runtime/native/styles/shorthands/_handler.js.map +0 -1
  709. package/dist/commonjs/runtime/native/styles/shorthands/animation.js +0 -57
  710. package/dist/commonjs/runtime/native/styles/shorthands/animation.js.map +0 -1
  711. package/dist/commonjs/runtime/native/styles/shorthands/border.js.map +0 -1
  712. package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js +0 -58
  713. package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js.map +0 -1
  714. package/dist/commonjs/runtime/native/styles/shorthands/index.js.map +0 -1
  715. package/dist/commonjs/runtime/native/styles/shorthands/text-shadow.js.map +0 -1
  716. package/dist/commonjs/runtime/native/styles/shorthands/transform.js.map +0 -1
  717. package/dist/commonjs/runtime/native/styles/units.js.map +0 -1
  718. package/dist/commonjs/runtime/native/styles/variables.js +0 -79
  719. package/dist/commonjs/runtime/native/styles/variables.js.map +0 -1
  720. package/dist/commonjs/runtime/runtime.js.map +0 -1
  721. package/dist/commonjs/runtime/runtime.native.js.map +0 -1
  722. package/dist/commonjs/runtime/runtime.types.js.map +0 -1
  723. package/dist/commonjs/runtime/utils/components.js +0 -18
  724. package/dist/commonjs/runtime/utils/components.js.map +0 -1
  725. package/dist/commonjs/runtime/utils/dot-notation.types.js.map +0 -1
  726. package/dist/commonjs/runtime/utils/index.js +0 -61
  727. package/dist/commonjs/runtime/utils/index.js.map +0 -1
  728. package/dist/commonjs/runtime/utils/objects.js.map +0 -1
  729. package/dist/commonjs/runtime/utils/specificity.js.map +0 -1
  730. package/dist/commonjs/runtime/utils/style-value.js +0 -21
  731. package/dist/commonjs/runtime/utils/style-value.js.map +0 -1
  732. package/dist/commonjs/runtime/utils/utils.types.js +0 -6
  733. package/dist/commonjs/runtime/utils/utils.types.js.map +0 -1
  734. package/dist/commonjs/runtime/web/api.js.map +0 -1
  735. package/dist/commonjs/runtime/web/assign-style.js.map +0 -1
  736. package/dist/commonjs/runtime/web/index.js.map +0 -1
  737. package/dist/commonjs/runtime/web/metro.js +0 -6
  738. package/dist/commonjs/runtime/web/metro.js.map +0 -1
  739. package/dist/commonjs/style-collection/index.js +0 -110
  740. package/dist/commonjs/style-collection/index.js.map +0 -1
  741. package/dist/commonjs/style-collection/root.js +0 -29
  742. package/dist/commonjs/style-collection/root.js.map +0 -1
  743. package/dist/module/poison.pill.js +0 -37
  744. package/dist/module/poison.pill.js.map +0 -1
  745. package/dist/module/runtime/index.js +0 -9
  746. package/dist/module/runtime/index.js.map +0 -1
  747. package/dist/module/runtime/native/api.js +0 -94
  748. package/dist/module/runtime/native/api.js.map +0 -1
  749. package/dist/module/runtime/native/conditions/attributes.js +0 -38
  750. package/dist/module/runtime/native/conditions/attributes.js.map +0 -1
  751. package/dist/module/runtime/native/conditions/container-query.js.map +0 -1
  752. package/dist/module/runtime/native/conditions/guards.js.map +0 -1
  753. package/dist/module/runtime/native/conditions/index.js.map +0 -1
  754. package/dist/module/runtime/native/conditions/media-query.js.map +0 -1
  755. package/dist/module/runtime/native/index.js +0 -5
  756. package/dist/module/runtime/native/index.js.map +0 -1
  757. package/dist/module/runtime/native/metro.js.map +0 -1
  758. package/dist/module/runtime/native/react/interaction.js.map +0 -1
  759. package/dist/module/runtime/native/react/rules.js +0 -251
  760. package/dist/module/runtime/native/react/rules.js.map +0 -1
  761. package/dist/module/runtime/native/react/useNativeCss.js +0 -153
  762. package/dist/module/runtime/native/react/useNativeCss.js.map +0 -1
  763. package/dist/module/runtime/native/react/usePassthrough.js.map +0 -1
  764. package/dist/module/runtime/native/reactivity.js +0 -173
  765. package/dist/module/runtime/native/reactivity.js.map +0 -1
  766. package/dist/module/runtime/native/reanimated.js.map +0 -1
  767. package/dist/module/runtime/native/styles/calculate-props.js +0 -143
  768. package/dist/module/runtime/native/styles/calculate-props.js.map +0 -1
  769. package/dist/module/runtime/native/styles/constants.js.map +0 -1
  770. package/dist/module/runtime/native/styles/defaults.js.map +0 -1
  771. package/dist/module/runtime/native/styles/functions/animation-timing.js.map +0 -1
  772. package/dist/module/runtime/native/styles/functions/calc.js.map +0 -1
  773. package/dist/module/runtime/native/styles/functions/filters.js +0 -70
  774. package/dist/module/runtime/native/styles/functions/filters.js.map +0 -1
  775. package/dist/module/runtime/native/styles/functions/index.js.map +0 -1
  776. package/dist/module/runtime/native/styles/functions/numeric-functions.js.map +0 -1
  777. package/dist/module/runtime/native/styles/functions/platform-functions.js.map +0 -1
  778. package/dist/module/runtime/native/styles/functions/string-functions.js.map +0 -1
  779. package/dist/module/runtime/native/styles/functions/transform-functions.js +0 -114
  780. package/dist/module/runtime/native/styles/functions/transform-functions.js.map +0 -1
  781. package/dist/module/runtime/native/styles/index.js +0 -110
  782. package/dist/module/runtime/native/styles/index.js.map +0 -1
  783. package/dist/module/runtime/native/styles/line-height.js.map +0 -1
  784. package/dist/module/runtime/native/styles/resolve.js +0 -103
  785. package/dist/module/runtime/native/styles/resolve.js.map +0 -1
  786. package/dist/module/runtime/native/styles/shorthands/_handler.js +0 -74
  787. package/dist/module/runtime/native/styles/shorthands/_handler.js.map +0 -1
  788. package/dist/module/runtime/native/styles/shorthands/animation.js +0 -51
  789. package/dist/module/runtime/native/styles/shorthands/animation.js.map +0 -1
  790. package/dist/module/runtime/native/styles/shorthands/border.js.map +0 -1
  791. package/dist/module/runtime/native/styles/shorthands/box-shadow.js +0 -53
  792. package/dist/module/runtime/native/styles/shorthands/box-shadow.js.map +0 -1
  793. package/dist/module/runtime/native/styles/shorthands/index.js.map +0 -1
  794. package/dist/module/runtime/native/styles/shorthands/text-shadow.js.map +0 -1
  795. package/dist/module/runtime/native/styles/shorthands/transform.js.map +0 -1
  796. package/dist/module/runtime/native/styles/units.js.map +0 -1
  797. package/dist/module/runtime/native/styles/variables.js +0 -75
  798. package/dist/module/runtime/native/styles/variables.js.map +0 -1
  799. package/dist/module/runtime/runtime.js.map +0 -1
  800. package/dist/module/runtime/runtime.native.js.map +0 -1
  801. package/dist/module/runtime/runtime.types.js.map +0 -1
  802. package/dist/module/runtime/utils/components.js +0 -14
  803. package/dist/module/runtime/utils/components.js.map +0 -1
  804. package/dist/module/runtime/utils/dot-notation.types.js.map +0 -1
  805. package/dist/module/runtime/utils/index.js +0 -8
  806. package/dist/module/runtime/utils/index.js.map +0 -1
  807. package/dist/module/runtime/utils/objects.js.map +0 -1
  808. package/dist/module/runtime/utils/specificity.js.map +0 -1
  809. package/dist/module/runtime/utils/style-value.js +0 -16
  810. package/dist/module/runtime/utils/style-value.js.map +0 -1
  811. package/dist/module/runtime/utils/utils.types.js +0 -4
  812. package/dist/module/runtime/utils/utils.types.js.map +0 -1
  813. package/dist/module/runtime/web/api.js.map +0 -1
  814. package/dist/module/runtime/web/assign-style.js.map +0 -1
  815. package/dist/module/runtime/web/index.js.map +0 -1
  816. package/dist/module/runtime/web/metro.js +0 -5
  817. package/dist/module/runtime/web/metro.js.map +0 -1
  818. package/dist/module/style-collection/index.js +0 -95
  819. package/dist/module/style-collection/index.js.map +0 -1
  820. package/dist/module/style-collection/root.js +0 -25
  821. package/dist/module/style-collection/root.js.map +0 -1
  822. package/dist/typescript/commonjs/src/poison.pill.d.ts +0 -2
  823. package/dist/typescript/commonjs/src/poison.pill.d.ts.map +0 -1
  824. package/dist/typescript/commonjs/src/runtime/index.d.ts +0 -7
  825. package/dist/typescript/commonjs/src/runtime/index.d.ts.map +0 -1
  826. package/dist/typescript/commonjs/src/runtime/native/api.d.ts +0 -31
  827. package/dist/typescript/commonjs/src/runtime/native/api.d.ts.map +0 -1
  828. package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts +0 -5
  829. package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts.map +0 -1
  830. package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts +0 -7
  831. package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts.map +0 -1
  832. package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts.map +0 -1
  833. package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts +0 -6
  834. package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts.map +0 -1
  835. package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts +0 -4
  836. package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts.map +0 -1
  837. package/dist/typescript/commonjs/src/runtime/native/index.d.ts +0 -4
  838. package/dist/typescript/commonjs/src/runtime/native/index.d.ts.map +0 -1
  839. package/dist/typescript/commonjs/src/runtime/native/metro.d.ts.map +0 -1
  840. package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts.map +0 -1
  841. package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts.map +0 -1
  842. package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts.map +0 -1
  843. package/dist/typescript/commonjs/src/runtime/native/react/usePassthrough.d.ts.map +0 -1
  844. package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts +0 -53
  845. package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts.map +0 -1
  846. package/dist/typescript/commonjs/src/runtime/native/reanimated.d.ts.map +0 -1
  847. package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts +0 -10
  848. package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts.map +0 -1
  849. package/dist/typescript/commonjs/src/runtime/native/styles/constants.d.ts.map +0 -1
  850. package/dist/typescript/commonjs/src/runtime/native/styles/defaults.d.ts.map +0 -1
  851. package/dist/typescript/commonjs/src/runtime/native/styles/functions/animation-timing.d.ts.map +0 -1
  852. package/dist/typescript/commonjs/src/runtime/native/styles/functions/calc.d.ts.map +0 -1
  853. package/dist/typescript/commonjs/src/runtime/native/styles/functions/filters.d.ts.map +0 -1
  854. package/dist/typescript/commonjs/src/runtime/native/styles/functions/index.d.ts.map +0 -1
  855. package/dist/typescript/commonjs/src/runtime/native/styles/functions/numeric-functions.d.ts.map +0 -1
  856. package/dist/typescript/commonjs/src/runtime/native/styles/functions/platform-functions.d.ts.map +0 -1
  857. package/dist/typescript/commonjs/src/runtime/native/styles/functions/string-functions.d.ts.map +0 -1
  858. package/dist/typescript/commonjs/src/runtime/native/styles/functions/transform-functions.d.ts.map +0 -1
  859. package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts +0 -19
  860. package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts.map +0 -1
  861. package/dist/typescript/commonjs/src/runtime/native/styles/line-height.d.ts.map +0 -1
  862. package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts +0 -18
  863. package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts.map +0 -1
  864. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/_handler.d.ts.map +0 -1
  865. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/animation.d.ts +0 -4
  866. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/animation.d.ts.map +0 -1
  867. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/border.d.ts.map +0 -1
  868. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +0 -1
  869. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/index.d.ts.map +0 -1
  870. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +0 -1
  871. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/transform.d.ts.map +0 -1
  872. package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts.map +0 -1
  873. package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts +0 -5
  874. package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts.map +0 -1
  875. package/dist/typescript/commonjs/src/runtime/runtime.d.ts.map +0 -1
  876. package/dist/typescript/commonjs/src/runtime/runtime.native.d.ts.map +0 -1
  877. package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts +0 -47
  878. package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts.map +0 -1
  879. package/dist/typescript/commonjs/src/runtime/utils/components.d.ts +0 -2
  880. package/dist/typescript/commonjs/src/runtime/utils/components.d.ts.map +0 -1
  881. package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts.map +0 -1
  882. package/dist/typescript/commonjs/src/runtime/utils/index.d.ts +0 -6
  883. package/dist/typescript/commonjs/src/runtime/utils/index.d.ts.map +0 -1
  884. package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts.map +0 -1
  885. package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts +0 -13
  886. package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts.map +0 -1
  887. package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts +0 -4
  888. package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts.map +0 -1
  889. package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts +0 -5
  890. package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts.map +0 -1
  891. package/dist/typescript/commonjs/src/runtime/web/api.d.ts +0 -16
  892. package/dist/typescript/commonjs/src/runtime/web/api.d.ts.map +0 -1
  893. package/dist/typescript/commonjs/src/runtime/web/assign-style.d.ts.map +0 -1
  894. package/dist/typescript/commonjs/src/runtime/web/index.d.ts.map +0 -1
  895. package/dist/typescript/commonjs/src/runtime/web/metro.d.ts.map +0 -1
  896. package/dist/typescript/commonjs/src/style-collection/index.d.ts +0 -14
  897. package/dist/typescript/commonjs/src/style-collection/index.d.ts.map +0 -1
  898. package/dist/typescript/commonjs/src/style-collection/root.d.ts +0 -11
  899. package/dist/typescript/commonjs/src/style-collection/root.d.ts.map +0 -1
  900. package/dist/typescript/module/src/poison.pill.d.ts +0 -2
  901. package/dist/typescript/module/src/poison.pill.d.ts.map +0 -1
  902. package/dist/typescript/module/src/runtime/index.d.ts +0 -7
  903. package/dist/typescript/module/src/runtime/index.d.ts.map +0 -1
  904. package/dist/typescript/module/src/runtime/native/api.d.ts +0 -31
  905. package/dist/typescript/module/src/runtime/native/api.d.ts.map +0 -1
  906. package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts +0 -5
  907. package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts.map +0 -1
  908. package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts +0 -7
  909. package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts.map +0 -1
  910. package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts.map +0 -1
  911. package/dist/typescript/module/src/runtime/native/conditions/index.d.ts +0 -6
  912. package/dist/typescript/module/src/runtime/native/conditions/index.d.ts.map +0 -1
  913. package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts +0 -4
  914. package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts.map +0 -1
  915. package/dist/typescript/module/src/runtime/native/index.d.ts +0 -4
  916. package/dist/typescript/module/src/runtime/native/index.d.ts.map +0 -1
  917. package/dist/typescript/module/src/runtime/native/metro.d.ts +0 -2
  918. package/dist/typescript/module/src/runtime/native/metro.d.ts.map +0 -1
  919. package/dist/typescript/module/src/runtime/native/react/interaction.d.ts.map +0 -1
  920. package/dist/typescript/module/src/runtime/native/react/rules.d.ts.map +0 -1
  921. package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts.map +0 -1
  922. package/dist/typescript/module/src/runtime/native/react/usePassthrough.d.ts.map +0 -1
  923. package/dist/typescript/module/src/runtime/native/reactivity.d.ts +0 -53
  924. package/dist/typescript/module/src/runtime/native/reactivity.d.ts.map +0 -1
  925. package/dist/typescript/module/src/runtime/native/reanimated.d.ts.map +0 -1
  926. package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts +0 -10
  927. package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts.map +0 -1
  928. package/dist/typescript/module/src/runtime/native/styles/constants.d.ts.map +0 -1
  929. package/dist/typescript/module/src/runtime/native/styles/defaults.d.ts.map +0 -1
  930. package/dist/typescript/module/src/runtime/native/styles/functions/animation-timing.d.ts.map +0 -1
  931. package/dist/typescript/module/src/runtime/native/styles/functions/calc.d.ts.map +0 -1
  932. package/dist/typescript/module/src/runtime/native/styles/functions/filters.d.ts.map +0 -1
  933. package/dist/typescript/module/src/runtime/native/styles/functions/index.d.ts.map +0 -1
  934. package/dist/typescript/module/src/runtime/native/styles/functions/numeric-functions.d.ts.map +0 -1
  935. package/dist/typescript/module/src/runtime/native/styles/functions/platform-functions.d.ts.map +0 -1
  936. package/dist/typescript/module/src/runtime/native/styles/functions/string-functions.d.ts.map +0 -1
  937. package/dist/typescript/module/src/runtime/native/styles/functions/transform-functions.d.ts.map +0 -1
  938. package/dist/typescript/module/src/runtime/native/styles/index.d.ts +0 -19
  939. package/dist/typescript/module/src/runtime/native/styles/index.d.ts.map +0 -1
  940. package/dist/typescript/module/src/runtime/native/styles/line-height.d.ts.map +0 -1
  941. package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts +0 -18
  942. package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts.map +0 -1
  943. package/dist/typescript/module/src/runtime/native/styles/shorthands/_handler.d.ts.map +0 -1
  944. package/dist/typescript/module/src/runtime/native/styles/shorthands/animation.d.ts +0 -4
  945. package/dist/typescript/module/src/runtime/native/styles/shorthands/animation.d.ts.map +0 -1
  946. package/dist/typescript/module/src/runtime/native/styles/shorthands/border.d.ts.map +0 -1
  947. package/dist/typescript/module/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +0 -1
  948. package/dist/typescript/module/src/runtime/native/styles/shorthands/index.d.ts.map +0 -1
  949. package/dist/typescript/module/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +0 -1
  950. package/dist/typescript/module/src/runtime/native/styles/shorthands/transform.d.ts.map +0 -1
  951. package/dist/typescript/module/src/runtime/native/styles/units.d.ts.map +0 -1
  952. package/dist/typescript/module/src/runtime/native/styles/variables.d.ts +0 -5
  953. package/dist/typescript/module/src/runtime/native/styles/variables.d.ts.map +0 -1
  954. package/dist/typescript/module/src/runtime/runtime.d.ts.map +0 -1
  955. package/dist/typescript/module/src/runtime/runtime.native.d.ts.map +0 -1
  956. package/dist/typescript/module/src/runtime/runtime.types.d.ts +0 -47
  957. package/dist/typescript/module/src/runtime/runtime.types.d.ts.map +0 -1
  958. package/dist/typescript/module/src/runtime/utils/components.d.ts +0 -2
  959. package/dist/typescript/module/src/runtime/utils/components.d.ts.map +0 -1
  960. package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts.map +0 -1
  961. package/dist/typescript/module/src/runtime/utils/index.d.ts +0 -6
  962. package/dist/typescript/module/src/runtime/utils/index.d.ts.map +0 -1
  963. package/dist/typescript/module/src/runtime/utils/objects.d.ts.map +0 -1
  964. package/dist/typescript/module/src/runtime/utils/specificity.d.ts +0 -13
  965. package/dist/typescript/module/src/runtime/utils/specificity.d.ts.map +0 -1
  966. package/dist/typescript/module/src/runtime/utils/style-value.d.ts +0 -4
  967. package/dist/typescript/module/src/runtime/utils/style-value.d.ts.map +0 -1
  968. package/dist/typescript/module/src/runtime/utils/utils.types.d.ts +0 -5
  969. package/dist/typescript/module/src/runtime/utils/utils.types.d.ts.map +0 -1
  970. package/dist/typescript/module/src/runtime/web/api.d.ts +0 -16
  971. package/dist/typescript/module/src/runtime/web/api.d.ts.map +0 -1
  972. package/dist/typescript/module/src/runtime/web/assign-style.d.ts.map +0 -1
  973. package/dist/typescript/module/src/runtime/web/index.d.ts.map +0 -1
  974. package/dist/typescript/module/src/runtime/web/metro.d.ts +0 -2
  975. package/dist/typescript/module/src/runtime/web/metro.d.ts.map +0 -1
  976. package/dist/typescript/module/src/style-collection/index.d.ts +0 -14
  977. package/dist/typescript/module/src/style-collection/index.d.ts.map +0 -1
  978. package/dist/typescript/module/src/style-collection/root.d.ts +0 -11
  979. package/dist/typescript/module/src/style-collection/root.d.ts.map +0 -1
  980. package/src/components/index.tsx +0 -10
  981. package/src/runtime/index.ts +0 -7
  982. package/src/runtime/native/api.tsx +0 -135
  983. package/src/runtime/native/conditions/attributes.ts +0 -52
  984. package/src/runtime/native/conditions/container-query.ts +0 -162
  985. package/src/runtime/native/conditions/index.ts +0 -54
  986. package/src/runtime/native/conditions/media-query.ts +0 -98
  987. package/src/runtime/native/index.ts +0 -4
  988. package/src/runtime/native/react/rules.ts +0 -336
  989. package/src/runtime/native/react/useNativeCss.ts +0 -203
  990. package/src/runtime/native/reactivity.ts +0 -251
  991. package/src/runtime/native/styles/calculate-props.ts +0 -197
  992. package/src/runtime/native/styles/functions/filters.ts +0 -98
  993. package/src/runtime/native/styles/functions/transform-functions.ts +0 -84
  994. package/src/runtime/native/styles/index.ts +0 -197
  995. package/src/runtime/native/styles/resolve.ts +0 -164
  996. package/src/runtime/native/styles/shorthands/_handler.ts +0 -121
  997. package/src/runtime/native/styles/shorthands/animation.ts +0 -123
  998. package/src/runtime/native/styles/shorthands/box-shadow.ts +0 -80
  999. package/src/runtime/native/styles/variables.ts +0 -88
  1000. package/src/runtime/runtime.types.ts +0 -130
  1001. package/src/runtime/utils/components.ts +0 -15
  1002. package/src/runtime/utils/index.ts +0 -5
  1003. package/src/runtime/utils/specificity.ts +0 -45
  1004. package/src/runtime/utils/style-value.ts +0 -24
  1005. package/src/runtime/utils/utils.types.ts +0 -19
  1006. package/src/runtime/web/api.tsx +0 -114
  1007. package/src/runtime/web/metro.ts +0 -2
  1008. package/src/style-collection/index.ts +0 -142
  1009. package/src/style-collection/root.ts +0 -37
  1010. /package/dist/commonjs/{runtime/native → native}/conditions/container-query.js +0 -0
  1011. /package/dist/commonjs/{runtime/native → native}/conditions/guards.js +0 -0
  1012. /package/dist/commonjs/{runtime/native → native}/conditions/index.js +0 -0
  1013. /package/dist/commonjs/{runtime/native → native}/conditions/media-query.js +0 -0
  1014. /package/dist/commonjs/{runtime/utils → native}/objects.js +0 -0
  1015. /package/dist/commonjs/{runtime/native → native}/react/interaction.js +0 -0
  1016. /package/dist/commonjs/{runtime/native → native}/react/usePassthrough.js +0 -0
  1017. /package/dist/commonjs/{runtime/native → native}/reanimated.js +0 -0
  1018. /package/dist/commonjs/{runtime/native → native}/styles/constants.js +0 -0
  1019. /package/dist/commonjs/{runtime/native → native}/styles/defaults.js +0 -0
  1020. /package/dist/commonjs/{runtime/native → native}/styles/functions/animation-timing.js +0 -0
  1021. /package/dist/commonjs/{runtime/native → native}/styles/functions/calc.js +0 -0
  1022. /package/dist/commonjs/{runtime/native → native}/styles/functions/index.js +0 -0
  1023. /package/dist/commonjs/{runtime/native → native}/styles/functions/numeric-functions.js +0 -0
  1024. /package/dist/commonjs/{runtime/native → native}/styles/functions/platform-functions.js +0 -0
  1025. /package/dist/commonjs/{runtime/native → native}/styles/functions/string-functions.js +0 -0
  1026. /package/dist/commonjs/{runtime/native → native}/styles/line-height.js +0 -0
  1027. /package/dist/commonjs/{runtime/native → native}/styles/shorthands/border.js +0 -0
  1028. /package/dist/commonjs/{runtime/native → native}/styles/shorthands/index.js +0 -0
  1029. /package/dist/commonjs/{runtime/native → native}/styles/shorthands/text-shadow.js +0 -0
  1030. /package/dist/commonjs/{runtime/native → native}/styles/shorthands/transform.js +0 -0
  1031. /package/dist/commonjs/{runtime/native → native}/styles/units.js +0 -0
  1032. /package/dist/commonjs/{runtime/runtime.js → runtime.js} +0 -0
  1033. /package/dist/commonjs/{runtime/runtime.native.js → runtime.native.js} +0 -0
  1034. /package/dist/commonjs/{runtime/runtime.types.js → runtime.types.js} +0 -0
  1035. /package/dist/commonjs/{runtime/utils → utilities}/dot-notation.types.js +0 -0
  1036. /package/dist/commonjs/{runtime/utils → utilities}/specificity.js +0 -0
  1037. /package/dist/commonjs/{runtime/web → web}/api.js +0 -0
  1038. /package/dist/commonjs/{runtime/web → web}/assign-style.js +0 -0
  1039. /package/dist/commonjs/{runtime/web → web}/index.js +0 -0
  1040. /package/dist/commonjs/{runtime/native → web}/metro.js +0 -0
  1041. /package/dist/module/{runtime/native → native}/conditions/container-query.js +0 -0
  1042. /package/dist/module/{runtime/native → native}/conditions/guards.js +0 -0
  1043. /package/dist/module/{runtime/native → native}/conditions/index.js +0 -0
  1044. /package/dist/module/{runtime/native → native}/conditions/media-query.js +0 -0
  1045. /package/dist/module/{runtime/utils → native}/objects.js +0 -0
  1046. /package/dist/module/{runtime/native → native}/react/interaction.js +0 -0
  1047. /package/dist/module/{runtime/native → native}/react/usePassthrough.js +0 -0
  1048. /package/dist/module/{runtime/native → native}/reanimated.js +0 -0
  1049. /package/dist/module/{runtime/native → native}/styles/constants.js +0 -0
  1050. /package/dist/module/{runtime/native → native}/styles/defaults.js +0 -0
  1051. /package/dist/module/{runtime/native → native}/styles/functions/animation-timing.js +0 -0
  1052. /package/dist/module/{runtime/native → native}/styles/functions/calc.js +0 -0
  1053. /package/dist/module/{runtime/native → native}/styles/functions/index.js +0 -0
  1054. /package/dist/module/{runtime/native → native}/styles/functions/numeric-functions.js +0 -0
  1055. /package/dist/module/{runtime/native → native}/styles/functions/platform-functions.js +0 -0
  1056. /package/dist/module/{runtime/native → native}/styles/functions/string-functions.js +0 -0
  1057. /package/dist/module/{runtime/native → native}/styles/line-height.js +0 -0
  1058. /package/dist/module/{runtime/native → native}/styles/shorthands/border.js +0 -0
  1059. /package/dist/module/{runtime/native → native}/styles/shorthands/index.js +0 -0
  1060. /package/dist/module/{runtime/native → native}/styles/shorthands/text-shadow.js +0 -0
  1061. /package/dist/module/{runtime/native → native}/styles/shorthands/transform.js +0 -0
  1062. /package/dist/module/{runtime/native → native}/styles/units.js +0 -0
  1063. /package/dist/module/{runtime/runtime.js → runtime.js} +0 -0
  1064. /package/dist/module/{runtime/runtime.native.js → runtime.native.js} +0 -0
  1065. /package/dist/module/{runtime/runtime.types.js → runtime.types.js} +0 -0
  1066. /package/dist/module/{runtime/utils → utilities}/dot-notation.types.js +0 -0
  1067. /package/dist/module/{runtime/utils → utilities}/specificity.js +0 -0
  1068. /package/dist/module/{runtime/web → web}/api.js +0 -0
  1069. /package/dist/module/{runtime/web → web}/assign-style.js +0 -0
  1070. /package/dist/module/{runtime/web → web}/index.js +0 -0
  1071. /package/dist/module/{runtime/native → web}/metro.js +0 -0
  1072. /package/dist/typescript/commonjs/src/{runtime/native → native}/conditions/guards.d.ts +0 -0
  1073. /package/dist/typescript/commonjs/src/{runtime/utils → native}/objects.d.ts +0 -0
  1074. /package/dist/typescript/commonjs/src/{runtime/native → native}/react/interaction.d.ts +0 -0
  1075. /package/dist/typescript/commonjs/src/{runtime/native → native}/react/rules.d.ts +0 -0
  1076. /package/dist/typescript/commonjs/src/{runtime/native → native}/react/useNativeCss.d.ts +0 -0
  1077. /package/dist/typescript/commonjs/src/{runtime/native → native}/react/usePassthrough.d.ts +0 -0
  1078. /package/dist/typescript/commonjs/src/{runtime/native → native}/reanimated.d.ts +0 -0
  1079. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/constants.d.ts +0 -0
  1080. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/defaults.d.ts +0 -0
  1081. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/animation-timing.d.ts +0 -0
  1082. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/calc.d.ts +0 -0
  1083. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/filters.d.ts +0 -0
  1084. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/index.d.ts +0 -0
  1085. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/numeric-functions.d.ts +0 -0
  1086. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/platform-functions.d.ts +0 -0
  1087. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/string-functions.d.ts +0 -0
  1088. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/transform-functions.d.ts +0 -0
  1089. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/line-height.d.ts +0 -0
  1090. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/_handler.d.ts +0 -0
  1091. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/border.d.ts +0 -0
  1092. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/box-shadow.d.ts +0 -0
  1093. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/index.d.ts +0 -0
  1094. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/text-shadow.d.ts +0 -0
  1095. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/transform.d.ts +0 -0
  1096. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/units.d.ts +0 -0
  1097. /package/dist/typescript/commonjs/src/{runtime/runtime.d.ts → runtime.d.ts} +0 -0
  1098. /package/dist/typescript/commonjs/src/{runtime/runtime.native.d.ts → runtime.native.d.ts} +0 -0
  1099. /package/dist/typescript/commonjs/src/{runtime/utils → utilities}/dot-notation.types.d.ts +0 -0
  1100. /package/dist/typescript/commonjs/src/{runtime/web → web}/assign-style.d.ts +0 -0
  1101. /package/dist/typescript/commonjs/src/{runtime/web → web}/index.d.ts +0 -0
  1102. /package/dist/typescript/commonjs/src/{runtime/native → web}/metro.d.ts +0 -0
  1103. /package/dist/typescript/module/src/{runtime/native → native}/conditions/guards.d.ts +0 -0
  1104. /package/dist/typescript/module/src/{runtime/utils → native}/objects.d.ts +0 -0
  1105. /package/dist/typescript/module/src/{runtime/native → native}/react/interaction.d.ts +0 -0
  1106. /package/dist/typescript/module/src/{runtime/native → native}/react/rules.d.ts +0 -0
  1107. /package/dist/typescript/module/src/{runtime/native → native}/react/useNativeCss.d.ts +0 -0
  1108. /package/dist/typescript/module/src/{runtime/native → native}/react/usePassthrough.d.ts +0 -0
  1109. /package/dist/typescript/module/src/{runtime/native → native}/reanimated.d.ts +0 -0
  1110. /package/dist/typescript/module/src/{runtime/native → native}/styles/constants.d.ts +0 -0
  1111. /package/dist/typescript/module/src/{runtime/native → native}/styles/defaults.d.ts +0 -0
  1112. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/animation-timing.d.ts +0 -0
  1113. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/calc.d.ts +0 -0
  1114. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/filters.d.ts +0 -0
  1115. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/index.d.ts +0 -0
  1116. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/numeric-functions.d.ts +0 -0
  1117. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/platform-functions.d.ts +0 -0
  1118. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/string-functions.d.ts +0 -0
  1119. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/transform-functions.d.ts +0 -0
  1120. /package/dist/typescript/module/src/{runtime/native → native}/styles/line-height.d.ts +0 -0
  1121. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/_handler.d.ts +0 -0
  1122. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/border.d.ts +0 -0
  1123. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/box-shadow.d.ts +0 -0
  1124. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/index.d.ts +0 -0
  1125. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/text-shadow.d.ts +0 -0
  1126. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/transform.d.ts +0 -0
  1127. /package/dist/typescript/module/src/{runtime/native → native}/styles/units.d.ts +0 -0
  1128. /package/dist/typescript/module/src/{runtime/runtime.d.ts → runtime.d.ts} +0 -0
  1129. /package/dist/typescript/module/src/{runtime/runtime.native.d.ts → runtime.native.d.ts} +0 -0
  1130. /package/dist/typescript/module/src/{runtime/utils → utilities}/dot-notation.types.d.ts +0 -0
  1131. /package/dist/typescript/module/src/{runtime/web → web}/assign-style.d.ts +0 -0
  1132. /package/dist/typescript/module/src/{runtime/web → web}/index.d.ts +0 -0
  1133. /package/dist/typescript/{commonjs/src/runtime → module/src}/web/metro.d.ts +0 -0
  1134. /package/src/{runtime/native → native}/conditions/guards.ts +0 -0
  1135. /package/src/{runtime/utils → native}/objects.ts +0 -0
  1136. /package/src/{runtime/native → native}/react/interaction.ts +0 -0
  1137. /package/src/{runtime/native → native}/react/usePassthrough.ts +0 -0
  1138. /package/src/{poison.pill.ts → native/react-native-css-metro-override.ts} +0 -0
  1139. /package/src/{runtime/native → native}/reanimated.ts +0 -0
  1140. /package/src/{runtime/native → native}/styles/constants.ts +0 -0
  1141. /package/src/{runtime/native → native}/styles/defaults.ts +0 -0
  1142. /package/src/{runtime/native → native}/styles/functions/animation-timing.ts +0 -0
  1143. /package/src/{runtime/native → native}/styles/functions/calc.ts +0 -0
  1144. /package/src/{runtime/native → native}/styles/functions/index.ts +0 -0
  1145. /package/src/{runtime/native → native}/styles/functions/numeric-functions.ts +0 -0
  1146. /package/src/{runtime/native → native}/styles/functions/platform-functions.ts +0 -0
  1147. /package/src/{runtime/native → native}/styles/functions/string-functions.ts +0 -0
  1148. /package/src/{runtime/native → native}/styles/line-height.ts +0 -0
  1149. /package/src/{runtime/native → native}/styles/shorthands/border.ts +0 -0
  1150. /package/src/{runtime/native → native}/styles/shorthands/index.ts +0 -0
  1151. /package/src/{runtime/native → native}/styles/shorthands/text-shadow.ts +0 -0
  1152. /package/src/{runtime/native → native}/styles/shorthands/transform.ts +0 -0
  1153. /package/src/{runtime/native → native}/styles/units.ts +0 -0
  1154. /package/src/{runtime/runtime.native.ts → runtime.native.ts} +0 -0
  1155. /package/src/{runtime/runtime.ts → runtime.ts} +0 -0
  1156. /package/src/{runtime/utils → utilities}/dot-notation.types.ts +0 -0
  1157. /package/src/{runtime/web → web}/assign-style.ts +0 -0
  1158. /package/src/{runtime/web → web}/index.ts +0 -0
  1159. /package/src/{runtime/native → web}/metro.ts +0 -0
@@ -3,11 +3,12 @@
3
3
  /* eslint-disable */
4
4
  import { inspect } from "node:util";
5
5
  import { debug } from "debug";
6
- import { transform as lightningcss } from "lightningcss";
7
6
  import { maybeMutateReactNativeOptions, parsePropAtRule } from "./atRules.js";
8
7
  import { parseContainerCondition } from "./container-query.js";
9
- import { parseDeclaration } from "./declarations.js";
8
+ import { parseDeclaration, round } from "./declarations.js";
9
+ import { inlineVariables } from "./inline-variables.js";
10
10
  import { extractKeyFrames } from "./keyframes.js";
11
+ import { lightningcssLoader } from "./lightningcss-loader.js";
11
12
  import { parseMediaQuery } from "./media-query.js";
12
13
  import { StylesheetBuilder } from "./stylesheet.js";
13
14
  import { supportsConditionValid } from "./supports.js";
@@ -36,7 +37,76 @@ export function compile(code, options = {}) {
36
37
  }
37
38
  }
38
39
  const builder = new StylesheetBuilder(options);
39
- logger(`Start lightningcss`);
40
+ const {
41
+ lightningcss,
42
+ Features
43
+ } = lightningcssLoader();
44
+ logger(`Lightningcss first pass`);
45
+
46
+ /**
47
+ * Use the lightningcss library to traverse the CSS AST and extract style declarations and animations
48
+ *
49
+ * devongovett on Aug 20, 2023
50
+ * > calc simplification happens during the initial parse phase, which is before custom visitors run. Currently there is not an additional simplification pass done after transforms, resulting in the output you see here.
51
+ * https://github.com/parcel-bundler/lightningcss/issues/554#issuecomment-1685143494
52
+ *
53
+ * Due to the above issue, we run lightningcss twice
54
+ */
55
+
56
+ const vars = new Map();
57
+ const firstPassVisitor = {};
58
+ if (options.inlineRem !== false) {
59
+ firstPassVisitor.Length = length => {
60
+ if (length.unit !== "rem" || options.inlineRem === false) {
61
+ return length;
62
+ }
63
+ return {
64
+ unit: "px",
65
+ value: round(length.value * (options.inlineRem ?? 14))
66
+ };
67
+ };
68
+ }
69
+ if (options.inlineVariables !== false) {
70
+ const exclusionList = options.inlineVariables?.exclude ?? [];
71
+ firstPassVisitor.Declaration = decl => {
72
+ if (decl.property === "custom" && decl.value.name.startsWith("--") && !exclusionList.includes(decl.value.name)) {
73
+ const entry = vars.get(decl.value.name) ?? {
74
+ count: 0,
75
+ value: [...decl.value.value, {
76
+ type: "token",
77
+ value: {
78
+ type: "white-space",
79
+ value: " "
80
+ }
81
+ }]
82
+ };
83
+ entry.count++;
84
+ vars.set(decl.value.name, entry);
85
+ }
86
+ };
87
+ firstPassVisitor.StyleSheetExit = sheet => {
88
+ return inlineVariables(sheet, vars);
89
+ };
90
+ }
91
+ const {
92
+ code: firstPass
93
+ } = lightningcss({
94
+ code: typeof code === "string" ? new TextEncoder().encode(code) : code,
95
+ include: Features.DoublePositionGradients | Features.ColorFunction,
96
+ exclude: Features.VendorPrefixes,
97
+ visitor: firstPassVisitor,
98
+ filename: options.filename ?? "style.css",
99
+ projectRoot: options.projectRoot ?? process.cwd()
100
+ });
101
+ if (isLoggerEnabled) {
102
+ const MAX_LOG_SIZE = 100 * 1024; // 100KB
103
+ if (firstPass.length <= MAX_LOG_SIZE) {
104
+ logger(firstPass.toString());
105
+ } else {
106
+ logger(`firstPass buffer too large to log in full (${firstPass.length} bytes). Preview: ` + firstPass.subarray(0, 1024).toString() + "...");
107
+ }
108
+ }
109
+ logger(`Lightningcss second pass`);
40
110
  const customAtRules = {
41
111
  "react-native": {
42
112
  body: "declaration-list"
@@ -45,6 +115,7 @@ export function compile(code, options = {}) {
45
115
  const visitor = {
46
116
  Rule(rule) {
47
117
  maybeMutateReactNativeOptions(rule, builder);
118
+ return rule;
48
119
  },
49
120
  StyleSheetExit(sheet) {
50
121
  if (isLoggerEnabled) {
@@ -61,31 +132,11 @@ export function compile(code, options = {}) {
61
132
  // We have processed this rule, so now delete it from the AST
62
133
  }
63
134
  logger(`Exiting lightningcss`);
135
+ return sheet;
64
136
  }
65
137
  };
66
- if (options.stripUnusedVariables) {
67
- const onVarUsage = token => {
68
- if (token.type === "function") {
69
- token.value.arguments.forEach(token => onVarUsage(token));
70
- } else if (token.type === "var") {
71
- builder.varUsage.add(token.value.name.ident);
72
- if (token.value.fallback) {
73
- const fallbackValues = token.value.fallback;
74
- fallbackValues.forEach(varObj => onVarUsage(varObj));
75
- }
76
- }
77
- };
78
- visitor.Declaration = decl => {
79
- if (decl.property === "unparsed" || decl.property === "custom") {
80
- decl.value.value.forEach(token => onVarUsage(token));
81
- }
82
- return decl;
83
- };
84
- }
85
-
86
- // Use the lightningcss library to traverse the CSS AST and extract style declarations and animations
87
138
  lightningcss({
88
- code: typeof code === "string" ? new TextEncoder().encode(code) : code,
139
+ code: firstPass,
89
140
  visitor,
90
141
  filename: options.filename ?? "style.css",
91
142
  projectRoot: options.projectRoot ?? process.cwd()
@@ -99,7 +150,7 @@ export function compile(code, options = {}) {
99
150
  /**
100
151
  * Extracts style declarations and animations from a given CSS rule, based on its type.
101
152
  */
102
- function extractRule(rule, builder) {
153
+ function extractRule(rule, builder, mapping = {}) {
103
154
  // Check the rule's type to determine which extraction function to call
104
155
  switch (rule.type) {
105
156
  case "keyframes":
@@ -111,13 +162,13 @@ function extractRule(rule, builder) {
111
162
  case "container":
112
163
  {
113
164
  // If the rule is a container, extract it with the `extractedContainer` function
114
- extractContainer(rule.value, builder);
165
+ extractContainer(rule.value, builder, mapping);
115
166
  break;
116
167
  }
117
168
  case "media":
118
169
  {
119
170
  // If the rule is a media query, extract it with the `extractMedia` function
120
- extractMedia(rule.value, builder);
171
+ extractMedia(rule.value, builder, mapping);
121
172
  break;
122
173
  }
123
174
  case "nested-declarations":
@@ -126,7 +177,9 @@ function extractRule(rule, builder) {
126
177
  const declarationBlock = value.declarations;
127
178
  if (declarationBlock) {
128
179
  if (declarationBlock.declarations?.length) {
129
- builder.newNestedRule();
180
+ builder.newNestedRule({
181
+ mapping
182
+ });
130
183
  for (const declaration of declarationBlock.declarations) {
131
184
  parseDeclaration(declaration, builder);
132
185
  }
@@ -134,6 +187,7 @@ function extractRule(rule, builder) {
134
187
  }
135
188
  if (declarationBlock.importantDeclarations?.length) {
136
189
  builder.newNestedRule({
190
+ mapping,
137
191
  important: true
138
192
  });
139
193
  for (const declaration of declarationBlock.importantDeclarations) {
@@ -148,19 +202,22 @@ function extractRule(rule, builder) {
148
202
  {
149
203
  const value = rule.value;
150
204
  const declarationBlock = value.declarations;
151
- const mapping = parsePropAtRule(value.rules);
205
+ mapping = {
206
+ ...mapping,
207
+ ...parsePropAtRule(value.rules)
208
+ };
152
209
 
153
210
  // If the rule is a style declaration, extract it with the `getExtractedStyle` function and store it in the `declarations` map
154
211
  builder = builder.fork("style", value.selectors);
155
212
  if (declarationBlock) {
156
- if (declarationBlock.declarations) {
213
+ if (declarationBlock.declarations?.length) {
157
214
  builder.newRule(mapping);
158
215
  for (const declaration of declarationBlock.declarations) {
159
216
  parseDeclaration(declaration, builder);
160
217
  }
161
218
  builder.applyRuleToSelectors();
162
219
  }
163
- if (declarationBlock.importantDeclarations) {
220
+ if (declarationBlock.importantDeclarations?.length) {
164
221
  builder.newRule(mapping, {
165
222
  important: true
166
223
  });
@@ -172,20 +229,20 @@ function extractRule(rule, builder) {
172
229
  }
173
230
  if (value.rules) {
174
231
  for (const nestedRule of value.rules) {
175
- extractRule(nestedRule, builder);
232
+ extractRule(nestedRule, builder, mapping);
176
233
  }
177
234
  }
178
235
  break;
179
236
  }
180
237
  case "layer-block":
181
238
  for (const layerRule of rule.value.rules) {
182
- extractRule(layerRule, builder);
239
+ extractRule(layerRule, builder, mapping);
183
240
  }
184
241
  break;
185
242
  case "supports":
186
243
  if (supportsConditionValid(rule.value.condition)) {
187
244
  for (const layerRule of rule.value.rules) {
188
- extractRule(layerRule, builder);
245
+ extractRule(layerRule, builder, mapping);
189
246
  }
190
247
  }
191
248
  break;
@@ -222,7 +279,7 @@ function extractRule(rule, builder) {
222
279
  *
223
280
  * @returns undefined if no screen media queries are found in the mediaRule, else it returns the extracted styles.
224
281
  */
225
- function extractMedia(mediaRule, builder) {
282
+ function extractMedia(mediaRule, builder, mapping) {
226
283
  builder = builder.fork("media");
227
284
 
228
285
  // Initialize an empty array to store screen media queries
@@ -249,7 +306,7 @@ function extractMedia(mediaRule, builder) {
249
306
 
250
307
  // Iterate over all rules in the mediaRule and extract their styles using the updated CompilerCollection
251
308
  for (const rule of mediaRule.rules) {
252
- extractRule(rule, builder);
309
+ extractRule(rule, builder, mapping);
253
310
  }
254
311
  }
255
312
 
@@ -258,7 +315,7 @@ function extractMedia(mediaRule, builder) {
258
315
  * @param collection - The CompilerCollection object to use when extracting styles.
259
316
  * @param parseOptions - The CssToReactNativeRuntimeOptions object to use when parsing styles.
260
317
  */
261
- function extractContainer(containerRule, builder) {
318
+ function extractContainer(containerRule, builder, mapping) {
262
319
  builder = builder.fork("container");
263
320
 
264
321
  // Iterate over all rules inside the containerRule and extract their styles using the updated CompilerCollection
@@ -270,7 +327,7 @@ function extractContainer(containerRule, builder) {
270
327
  }
271
328
  builder.addContainerQuery(query);
272
329
  for (const rule of containerRule.rules) {
273
- extractRule(rule, builder);
330
+ extractRule(rule, builder, mapping);
274
331
  }
275
332
  }
276
333
  //# sourceMappingURL=compiler.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["inspect","debug","transform","lightningcss","maybeMutateReactNativeOptions","parsePropAtRule","parseContainerCondition","parseDeclaration","extractKeyFrames","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","customAtRules","body","visitor","Rule","rule","StyleSheetExit","sheet","rules","length","depth","colors","compact","extractRule","stripUnusedVariables","onVarUsage","token","type","value","arguments","forEach","varUsage","add","name","ident","fallback","fallbackValues","varObj","Declaration","decl","property","TextEncoder","encode","filename","projectRoot","cwd","stylesheet","getNativeStyleSheet","warnings","getWarnings","extractContainer","extractMedia","declarationBlock","declarations","newNestedRule","declaration","applyRuleToSelectors","importantDeclarations","important","mapping","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,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E,iBAAiB,CAACR,KAAK,CAAC;EAEhC,KAAK,MAAMtD,IAAI,IAAI4D,aAAa,CAACzD,KAAK,EAAE;IACtCK,WAAW,CAACR,IAAI,EAAEL,OAAO,CAAC;EAC5B;AACF","ignoreList":[]}
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,SAASC,eAAe,QAAQ,kBAAe;AAC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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":[]}
@@ -2,7 +2,7 @@
2
2
 
3
3
  /* eslint-disable */
4
4
 
5
- import { VAR_SYMBOL } from "../runtime/native/reactivity.js";
5
+ import { VAR_SYMBOL } from "../native/reactivity.js";
6
6
 
7
7
  /**
8
8
  * A `react-native-css` StyleSheet
@@ -1 +1 @@
1
- {"version":3,"names":["VAR_SYMBOL"],"sourceRoot":"../../../src","sources":["compiler/compiler.types.ts"],"mappings":";;AAAA;;AAIA,SAASA,UAAU,QAAQ,iCAA8B;;AAmBzD;AACA;AACA;;AAgBA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAwFA;;AAeA;;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;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":[]}
@@ -3,6 +3,7 @@
3
3
  // cSpell:ignore rcap,vmin,svmin,lvmin,dvmin,cqmin,vmax,svmax,lvmax,dvmax,cqmax,currentcolor,oklab,oklch,prophoto,squircle,oldstyle,nums
4
4
 
5
5
  import Color from "colorjs.io";
6
+ import { isStyleFunction } from "../utilities/index.js";
6
7
  import { parseEasingFunction, parseIterationCount } from "./keyframes.js";
7
8
  import { toRNProperty } from "./selectors.js";
8
9
  const CommaSeparator = Symbol("CommaSeparator");
@@ -264,23 +265,25 @@ function parseBorderRadius({
264
265
  });
265
266
  }
266
267
  function parseBorderColor(declaration, builder) {
267
- switch (declaration.property) {
268
- case "border-color":
269
- builder.addShorthand("border-color", {
270
- "border-top-color": parseColor(declaration.value.top, builder),
271
- "border-bottom-color": parseColor(declaration.value.bottom, builder),
272
- "border-left-color": parseColor(declaration.value.left, builder),
273
- "border-right-color": parseColor(declaration.value.right, builder)
274
- });
275
- break;
276
- case "border-block-color":
277
- builder.addDescriptor("border-top-color", parseColor(declaration.value.start, builder));
278
- builder.addDescriptor("border-bottom-color", parseColor(declaration.value.end, builder));
279
- break;
280
- case "border-inline-color":
281
- builder.addDescriptor("border-left-color", parseColor(declaration.value.start, builder));
282
- builder.addDescriptor("border-right-color", parseColor(declaration.value.end, builder));
283
- break;
268
+ if (declaration.property === "border-color") {
269
+ builder.addShorthand("border-color", {
270
+ "border-top-color": parseColor(declaration.value.top, builder),
271
+ "border-bottom-color": parseColor(declaration.value.bottom, builder),
272
+ "border-left-color": parseColor(declaration.value.left, builder),
273
+ "border-right-color": parseColor(declaration.value.right, builder)
274
+ });
275
+ } else {
276
+ const start = parseColor(declaration.value.start, builder);
277
+ const end = parseColor(declaration.value.end, builder);
278
+ if (start === end) {
279
+ builder.addDescriptor(declaration.property, start);
280
+ } else if (declaration.property === "border-block-color") {
281
+ builder.addDescriptor("border-top-color", start);
282
+ builder.addDescriptor("border-bottom-color", end);
283
+ } else {
284
+ builder.addDescriptor("border-left-color", start);
285
+ builder.addDescriptor("border-right-color", end);
286
+ }
284
287
  }
285
288
  }
286
289
  function parseBorderWidth({
@@ -535,11 +538,7 @@ function parseLetterSpacing({
535
538
  if (value.type === "normal") {
536
539
  return;
537
540
  }
538
- const descriptor = parseLength(value.value, builder);
539
- if (Array.isArray(descriptor) && descriptor[1] === "em" && typeof descriptor[2] === "number") {
540
- return descriptor[2];
541
- }
542
- return descriptor;
541
+ return parseLength(value.value, builder);
543
542
  }
544
543
  function parseTextDecoration({
545
544
  value
@@ -607,7 +606,9 @@ export function parseUnparsedDeclaration(declaration, builder) {
607
606
  builder.addDescriptor("--__rn-css-em", value);
608
607
  }
609
608
  if (property === "color") {
610
- builder.addDescriptor("--__rn-css-current-color", value);
609
+ if (!isStyleFunction(value) || value[1] !== "var" || value[2] !== "-css-color") {
610
+ builder.addDescriptor("--__rn-css-color", value);
611
+ }
611
612
  }
612
613
  }
613
614
  }
@@ -700,7 +701,7 @@ export function parseUnparsed(tokenOrValue, builder, property, allowAuto = allow
700
701
  } else if (tokenOrValue === "false") {
701
702
  return false;
702
703
  } else if (tokenOrValue === "currentcolor") {
703
- return [{}, "var", "__rn-css-current-color"];
704
+ return [{}, "var", "__rn-css-color"];
704
705
  } else {
705
706
  return tokenOrValue;
706
707
  }
@@ -711,8 +712,13 @@ export function parseUnparsed(tokenOrValue, builder, property, allowAuto = allow
711
712
  if (Array.isArray(tokenOrValue)) {
712
713
  const args = reduceParseUnparsed(tokenOrValue, builder, property, allowAuto);
713
714
  if (!args) return;
714
- if (Array.isArray(args) && args.length === 1) return args[0];
715
- return args;
715
+ if (Array.isArray(args) && args.length === 1) {
716
+ return args[0];
717
+ } else if ((property === "filter" || property === "transform") && isStyleFunction(args)) {
718
+ return [args];
719
+ } else {
720
+ return args;
721
+ }
716
722
  }
717
723
  switch (tokenOrValue.type) {
718
724
  case "unresolved-color":
@@ -801,7 +807,7 @@ export function parseUnparsed(tokenOrValue, builder, property, allowAuto = allow
801
807
  builder.addWarning("value", value);
802
808
  return;
803
809
  } else if (value === "currentcolor") {
804
- return [{}, "var", "__rn-css-current-color"];
810
+ return [{}, "var", "__rn-css-color"];
805
811
  }
806
812
  if (value === "true") {
807
813
  return true;
@@ -896,9 +902,9 @@ export function parseLength(length, builder) {
896
902
  case "px":
897
903
  {
898
904
  if (length.value === Infinity) {
899
- return 9999;
905
+ return Number.MAX_SAFE_INTEGER;
900
906
  } else if (length.value === -Infinity) {
901
- return -9999;
907
+ return Number.MIN_SAFE_INTEGER;
902
908
  } else {
903
909
  // Normalize large values to safe integers, e.g. `calc(infinity * 1px)`
904
910
  const value = Math.max(Math.min(length.value, Number.MAX_SAFE_INTEGER), Number.MIN_SAFE_INTEGER);
@@ -1074,7 +1080,9 @@ export function parseColorOrAutoDeclaration({
1074
1080
  }
1075
1081
  export function parseFontColorDeclaration(declaration, builder) {
1076
1082
  parseColorDeclaration(declaration, builder);
1077
- builder.addDescriptor("--__rn-css-color", parseColor(declaration.value, builder));
1083
+ if (typeof declaration.value !== "object" || declaration.value.type !== "currentcolor") {
1084
+ builder.addDescriptor("--__rn-css-color", parseColor(declaration.value, builder));
1085
+ }
1078
1086
  }
1079
1087
  export function parseColorDeclaration(declaration, builder) {
1080
1088
  builder.addDescriptor(declaration.property, parseColor(declaration.value, builder));
@@ -1093,7 +1101,7 @@ export function parseColor(cssColor, builder) {
1093
1101
  } = builder.getOptions();
1094
1102
  switch (cssColor.type) {
1095
1103
  case "currentcolor":
1096
- return [{}, "var", "__rn-css-current-color"];
1104
+ return [{}, "var", "__rn-css-color"];
1097
1105
  case "light-dark":
1098
1106
  {
1099
1107
  const extraRule = {
@@ -1363,7 +1371,7 @@ export function parseFontWeight(fontWeight, builder) {
1363
1371
  switch (fontWeight.type) {
1364
1372
  case "absolute":
1365
1373
  if (fontWeight.value.type === "weight") {
1366
- return fontWeight.value.value.toString();
1374
+ return fontWeight.value.value;
1367
1375
  } else {
1368
1376
  return fontWeight.value.type;
1369
1377
  }
@@ -1384,8 +1392,8 @@ export function parseTextShadow(declaration, builder) {
1384
1392
  return;
1385
1393
  }
1386
1394
  builder.addDescriptor("textShadowColor", parseColor(textShadow.color, builder));
1387
- builder.addDescriptor("textShadowOffset.width", parseLength(textShadow.xOffset, builder));
1388
- builder.addDescriptor("textShadowOffset.height", parseLength(textShadow.yOffset, builder));
1395
+ builder.addDescriptor("&.textShadowOffset.width", parseLength(textShadow.xOffset, builder));
1396
+ builder.addDescriptor("&.textShadowOffset.height", parseLength(textShadow.yOffset, builder));
1389
1397
  builder.addDescriptor("textShadowRadius", parseLength(textShadow.blur, builder));
1390
1398
  }
1391
1399
  export function parseTextDecorationStyle(declaration, builder) {
@@ -1593,16 +1601,20 @@ export function parseLengthOrCoercePercentageToRuntime(value, builder) {
1593
1601
  }
1594
1602
  export function parseGap(declaration, builder) {
1595
1603
  if ("column" in declaration.value) {
1596
- builder.addDescriptor("row-gap", parseGapValue(declaration.value.row, builder));
1597
- builder.addDescriptor("column-gap", parseGapValue(declaration.value.column, builder));
1598
- return;
1599
- } else {
1600
- if (declaration.value.type === "normal") {
1601
- builder.addWarning("value", declaration.value.type);
1602
- return;
1604
+ const row = parseGapValue(declaration.value.row, builder);
1605
+ const column = parseGapValue(declaration.value.column, builder);
1606
+ if (row !== column) {
1607
+ builder.addDescriptor("row-gap", row);
1608
+ builder.addDescriptor("column-gap", column);
1609
+ } else {
1610
+ builder.addDescriptor("gap", row);
1603
1611
  }
1612
+ } else if (declaration.value.type === "normal") {
1613
+ builder.addWarning("value", declaration.value.type);
1614
+ } else {
1604
1615
  return parseLength(declaration.value.value, builder);
1605
1616
  }
1617
+ return;
1606
1618
  }
1607
1619
  function parseGapValue(value, builder) {
1608
1620
  if (value.type === "normal") {
@@ -1625,12 +1637,12 @@ export function parseBoxShadow({
1625
1637
  value
1626
1638
  }, builder) {
1627
1639
  for (const [index, shadow] of value.entries()) {
1628
- builder.addDescriptor(`boxShadow.[${index}].color`, parseColor(shadow.color, builder));
1629
- builder.addDescriptor(`boxShadow.[${index}].offsetX`, parseLength(shadow.xOffset, builder));
1630
- builder.addDescriptor(`boxShadow.[${index}].offsetY`, parseLength(shadow.yOffset, builder));
1631
- builder.addDescriptor(`boxShadow.[${index}].blurRadius`, parseLength(shadow.blur, builder));
1632
- builder.addDescriptor(`boxShadow.[${index}].spreadDistance`, parseLength(shadow.spread, builder));
1633
- builder.addDescriptor(`boxShadow.[${index}].inset`, shadow.inset ? true : undefined);
1640
+ builder.addDescriptor(`&.boxShadow.[${index}].color`, parseColor(shadow.color, builder));
1641
+ builder.addDescriptor(`&.boxShadow.[${index}].offsetX`, parseLength(shadow.xOffset, builder));
1642
+ builder.addDescriptor(`&.boxShadow.[${index}].offsetY`, parseLength(shadow.yOffset, builder));
1643
+ builder.addDescriptor(`&.boxShadow.[${index}].blurRadius`, parseLength(shadow.blur, builder));
1644
+ builder.addDescriptor(`&.boxShadow.[${index}].spreadDistance`, parseLength(shadow.spread, builder));
1645
+ builder.addDescriptor(`&.boxShadow.[${index}].inset`, shadow.inset ? true : undefined);
1634
1646
  }
1635
1647
  }
1636
1648
  export function parseBoxSizing(declaration, builder) {
@@ -1798,7 +1810,10 @@ export function parseEnv(value, builder) {
1798
1810
  case "safe-area-inset-right":
1799
1811
  case "safe-area-inset-bottom":
1800
1812
  case "safe-area-inset-left":
1801
- return [{}, "var", [`--react-native-css-${value.name.value}`, parseUnparsed(value.fallback, builder, value.name.value)], 1];
1813
+ {
1814
+ const fallback = parseUnparsed(value.fallback, builder, value.name.value);
1815
+ return fallback ? [{}, "var", [`react-native-css-${value.name.value}`, fallback], 1] : [{}, "var", [`react-native-css-${value.name.value}`], 1];
1816
+ }
1802
1817
  case "viewport-segment-width":
1803
1818
  case "viewport-segment-height":
1804
1819
  case "viewport-segment-top":
@@ -1965,7 +1980,7 @@ export function equal(a, b) {
1965
1980
  return false;
1966
1981
  }
1967
1982
  export function parseTime(time) {
1968
- return time.type === "milliseconds" ? time.value : time.value * 1000;
1983
+ return round(time.type === "milliseconds" ? time.value : time.value * 1000);
1969
1984
  }
1970
1985
  export function parseSize2DDimensionPercentageDeclaration(declaration, builder) {
1971
1986
  return parseSize2DDimensionPercentage(declaration.value, builder);
@@ -2128,13 +2143,13 @@ function parseGradientItem(item, builder) {
2128
2143
  }
2129
2144
  function parseObjectFit(declaration, builder) {
2130
2145
  builder.addMapping({
2131
- "object-fit": "contentFit"
2146
+ "object-fit": ["contentFit"]
2132
2147
  });
2133
2148
  builder.addDescriptor("object-fit", parseUnparsed(declaration.value, builder, "object-fit"));
2134
2149
  }
2135
2150
  function parseObjectPosition(declaration, builder) {
2136
2151
  builder.addMapping({
2137
- "object-position": "contentPosition"
2152
+ "object-position": ["contentPosition"]
2138
2153
  });
2139
2154
  builder.addDescriptor("object-position", [{}, "join", [parseUnparsed(declaration.value, builder, "object-position"), " "]]);
2140
2155
  }