react-native-css 0.0.0-nightly.048e6da → 0.0.0-nightly.08286a2

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 (1100) hide show
  1. package/README.md +138 -10
  2. package/dist/commonjs/babel/index.js +6 -2
  3. package/dist/commonjs/babel/index.js.map +1 -1
  4. package/dist/commonjs/compiler/atRules.js +23 -33
  5. package/dist/commonjs/compiler/atRules.js.map +1 -1
  6. package/dist/commonjs/compiler/compiler.js +96 -39
  7. package/dist/commonjs/compiler/compiler.js.map +1 -1
  8. package/dist/commonjs/compiler/compiler.types.js +1 -1
  9. package/dist/commonjs/compiler/compiler.types.js.map +1 -1
  10. package/dist/commonjs/compiler/declarations.js +178 -84
  11. package/dist/commonjs/compiler/declarations.js.map +1 -1
  12. package/dist/commonjs/compiler/inline-variables.js +142 -0
  13. package/dist/commonjs/compiler/inline-variables.js.map +1 -0
  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 +12 -7
  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.js +65 -1
  56. package/dist/commonjs/components/index.js.map +1 -1
  57. package/dist/commonjs/components/react-native-safe-area-context.native.js +3 -3
  58. package/dist/commonjs/components/react-native-safe-area-context.native.js.map +1 -1
  59. package/dist/commonjs/index.js +4 -15
  60. package/dist/commonjs/index.js.map +1 -1
  61. package/dist/commonjs/jest/index.js +5 -6
  62. package/dist/commonjs/jest/index.js.map +1 -1
  63. package/dist/commonjs/metro/index.js +13 -13
  64. package/dist/commonjs/metro/index.js.map +1 -1
  65. package/dist/commonjs/metro/injection-code.js +1 -1
  66. package/dist/commonjs/metro/injection-code.js.map +1 -1
  67. package/dist/commonjs/native/api.js +113 -0
  68. package/dist/commonjs/native/api.js.map +1 -0
  69. package/dist/commonjs/native/conditions/attributes.js +44 -0
  70. package/dist/commonjs/native/conditions/attributes.js.map +1 -0
  71. package/dist/commonjs/native/conditions/container-query.js.map +1 -0
  72. package/dist/commonjs/native/conditions/guards.js.map +1 -0
  73. package/dist/commonjs/native/conditions/index.js.map +1 -0
  74. package/dist/commonjs/native/conditions/media-query.js.map +1 -0
  75. package/dist/commonjs/native/index.js.map +1 -0
  76. package/dist/commonjs/native/metro.js.map +1 -0
  77. package/dist/commonjs/native/objects.js.map +1 -0
  78. package/dist/commonjs/native/react/interaction.js.map +1 -0
  79. package/dist/commonjs/native/react/rules.js +259 -0
  80. package/dist/commonjs/native/react/rules.js.map +1 -0
  81. package/dist/commonjs/native/react/useNativeCss.js +160 -0
  82. package/dist/commonjs/native/react/useNativeCss.js.map +1 -0
  83. package/dist/commonjs/native/react/usePassthrough.js.map +1 -0
  84. package/dist/commonjs/native/reactivity.js +181 -0
  85. package/dist/commonjs/native/reactivity.js.map +1 -0
  86. package/dist/commonjs/native/reanimated.js.map +1 -0
  87. package/dist/commonjs/native/styles/calculate-props.js +162 -0
  88. package/dist/commonjs/native/styles/calculate-props.js.map +1 -0
  89. package/dist/commonjs/native/styles/constants.js.map +1 -0
  90. package/dist/commonjs/native/styles/defaults.js.map +1 -0
  91. package/dist/commonjs/native/styles/functions/animation-timing.js.map +1 -0
  92. package/dist/commonjs/native/styles/functions/calc.js.map +1 -0
  93. package/dist/commonjs/native/styles/functions/filters.js +84 -0
  94. package/dist/commonjs/native/styles/functions/filters.js.map +1 -0
  95. package/dist/commonjs/native/styles/functions/index.js.map +1 -0
  96. package/dist/commonjs/native/styles/functions/numeric-functions.js.map +1 -0
  97. package/dist/commonjs/native/styles/functions/platform-functions.js.map +1 -0
  98. package/dist/commonjs/native/styles/functions/string-functions.js.map +1 -0
  99. package/dist/commonjs/native/styles/functions/transform-functions.js +121 -0
  100. package/dist/commonjs/native/styles/functions/transform-functions.js.map +1 -0
  101. package/dist/commonjs/native/styles/index.js +115 -0
  102. package/dist/commonjs/native/styles/index.js.map +1 -0
  103. package/dist/commonjs/native/styles/line-height.js +25 -0
  104. package/dist/commonjs/native/styles/line-height.js.map +1 -0
  105. package/dist/commonjs/native/styles/resolve.js +108 -0
  106. package/dist/commonjs/native/styles/resolve.js.map +1 -0
  107. package/dist/commonjs/native/styles/shorthands/_handler.js +79 -0
  108. package/dist/commonjs/native/styles/shorthands/_handler.js.map +1 -0
  109. package/dist/commonjs/native/styles/shorthands/animation.js +57 -0
  110. package/dist/commonjs/native/styles/shorthands/animation.js.map +1 -0
  111. package/dist/commonjs/native/styles/shorthands/border.js.map +1 -0
  112. package/dist/commonjs/native/styles/shorthands/box-shadow.js +48 -0
  113. package/dist/commonjs/native/styles/shorthands/box-shadow.js.map +1 -0
  114. package/dist/commonjs/native/styles/shorthands/index.js.map +1 -0
  115. package/dist/commonjs/native/styles/shorthands/text-shadow.js.map +1 -0
  116. package/dist/commonjs/native/styles/shorthands/transform.js.map +1 -0
  117. package/dist/commonjs/native/styles/units.js +54 -0
  118. package/dist/commonjs/native/styles/units.js.map +1 -0
  119. package/dist/commonjs/native/styles/variables.js +79 -0
  120. package/dist/commonjs/native/styles/variables.js.map +1 -0
  121. package/dist/commonjs/native-internal/README.md +11 -0
  122. package/dist/commonjs/native-internal/index.js +39 -0
  123. package/dist/commonjs/native-internal/index.js.map +1 -0
  124. package/dist/commonjs/native-internal/root.js +34 -0
  125. package/dist/commonjs/native-internal/root.js.map +1 -0
  126. package/dist/commonjs/native-internal/style-collection.js +110 -0
  127. package/dist/commonjs/native-internal/style-collection.js.map +1 -0
  128. package/dist/commonjs/native-internal/variables.js +27 -0
  129. package/dist/commonjs/native-internal/variables.js.map +1 -0
  130. package/dist/commonjs/runtime/native/injection.js +2 -0
  131. package/dist/commonjs/runtime/native/injection.js.map +1 -0
  132. package/dist/commonjs/runtime.js.map +1 -0
  133. package/dist/commonjs/runtime.native.js.map +1 -0
  134. package/dist/commonjs/runtime.types.js.map +1 -0
  135. package/dist/commonjs/utilities/dot-notation.types.js.map +1 -0
  136. package/dist/commonjs/utilities/index.js +39 -0
  137. package/dist/commonjs/utilities/index.js.map +1 -0
  138. package/dist/commonjs/utilities/specificity.js.map +1 -0
  139. package/dist/commonjs/utilities/style-descriptor.js +21 -0
  140. package/dist/commonjs/utilities/style-descriptor.js.map +1 -0
  141. package/dist/commonjs/web/api.js +86 -0
  142. package/dist/commonjs/web/api.js.map +1 -0
  143. package/dist/commonjs/web/assign-style.js.map +1 -0
  144. package/dist/commonjs/web/index.js.map +1 -0
  145. package/dist/commonjs/web/metro.js.map +1 -0
  146. package/dist/module/babel/index.js +2 -2
  147. package/dist/module/babel/index.js.map +1 -1
  148. package/dist/module/compiler/atRules.js +23 -33
  149. package/dist/module/compiler/atRules.js.map +1 -1
  150. package/dist/module/compiler/compiler.js +96 -39
  151. package/dist/module/compiler/compiler.js.map +1 -1
  152. package/dist/module/compiler/compiler.types.js +1 -1
  153. package/dist/module/compiler/compiler.types.js.map +1 -1
  154. package/dist/module/compiler/declarations.js +173 -84
  155. package/dist/module/compiler/declarations.js.map +1 -1
  156. package/dist/module/compiler/inline-variables.js +138 -0
  157. package/dist/module/compiler/inline-variables.js.map +1 -0
  158. package/dist/module/compiler/lightningcss-loader.js +36 -0
  159. package/dist/module/compiler/lightningcss-loader.js.map +1 -0
  160. package/dist/module/compiler/pseudo-elements.js +1 -1
  161. package/dist/module/compiler/pseudo-elements.js.map +1 -1
  162. package/dist/module/compiler/selector-builder.js +10 -7
  163. package/dist/module/compiler/selector-builder.js.map +1 -1
  164. package/dist/module/compiler/selectors.js +1 -1
  165. package/dist/module/compiler/selectors.js.map +1 -1
  166. package/dist/module/compiler/stylesheet.js +12 -7
  167. package/dist/module/compiler/stylesheet.js.map +1 -1
  168. package/dist/module/components/ActivityIndicator.js +1 -1
  169. package/dist/module/components/ActivityIndicator.js.map +1 -1
  170. package/dist/module/components/Button.js +1 -1
  171. package/dist/module/components/Button.js.map +1 -1
  172. package/dist/module/components/FlatList.js +5 -4
  173. package/dist/module/components/FlatList.js.map +1 -1
  174. package/dist/module/components/Image.js +1 -1
  175. package/dist/module/components/Image.js.map +1 -1
  176. package/dist/module/components/ImageBackground.js +17 -0
  177. package/dist/module/components/ImageBackground.js.map +1 -0
  178. package/dist/module/components/KeyboardAvoidingView.js +14 -0
  179. package/dist/module/components/KeyboardAvoidingView.js.map +1 -0
  180. package/dist/module/components/Pressable.js +12 -0
  181. package/dist/module/components/Pressable.js.map +1 -0
  182. package/dist/module/components/ScrollView.js +13 -0
  183. package/dist/module/components/ScrollView.js.map +1 -0
  184. package/dist/module/components/Switch.js +1 -1
  185. package/dist/module/components/Switch.js.map +1 -1
  186. package/dist/module/components/Text.js +1 -1
  187. package/dist/module/components/Text.js.map +1 -1
  188. package/dist/module/components/TextInput.js +7 -2
  189. package/dist/module/components/TextInput.js.map +1 -1
  190. package/dist/module/components/TouchableHighlight.js +12 -0
  191. package/dist/module/components/TouchableHighlight.js.map +1 -0
  192. package/dist/module/components/TouchableOpacity.js +12 -0
  193. package/dist/module/components/TouchableOpacity.js.map +1 -0
  194. package/dist/module/components/TouchableWithoutFeedback.js +12 -0
  195. package/dist/module/components/TouchableWithoutFeedback.js.map +1 -0
  196. package/dist/module/components/View.js +1 -1
  197. package/dist/module/components/View.js.map +1 -1
  198. package/dist/module/components/VirtualizedList.js +15 -0
  199. package/dist/module/components/VirtualizedList.js.map +1 -0
  200. package/dist/module/components/index.js +8 -0
  201. package/dist/module/components/index.js.map +1 -1
  202. package/dist/module/components/react-native-safe-area-context.native.js +2 -2
  203. package/dist/module/components/react-native-safe-area-context.native.js.map +1 -1
  204. package/dist/module/index.js +1 -2
  205. package/dist/module/index.js.map +1 -1
  206. package/dist/module/jest/index.js +3 -4
  207. package/dist/module/jest/index.js.map +1 -1
  208. package/dist/module/metro/index.js +12 -12
  209. package/dist/module/metro/index.js.map +1 -1
  210. package/dist/module/metro/injection-code.js +1 -1
  211. package/dist/module/metro/injection-code.js.map +1 -1
  212. package/dist/module/native/api.js +82 -0
  213. package/dist/module/native/api.js.map +1 -0
  214. package/dist/module/native/conditions/attributes.js +40 -0
  215. package/dist/module/native/conditions/attributes.js.map +1 -0
  216. package/dist/module/native/conditions/container-query.js.map +1 -0
  217. package/dist/module/native/conditions/guards.js.map +1 -0
  218. package/dist/module/native/conditions/index.js.map +1 -0
  219. package/dist/module/native/conditions/media-query.js.map +1 -0
  220. package/dist/module/native/index.js.map +1 -0
  221. package/dist/module/native/metro.js.map +1 -0
  222. package/dist/module/native/objects.js.map +1 -0
  223. package/dist/module/native/react/interaction.js.map +1 -0
  224. package/dist/module/native/react/rules.js +252 -0
  225. package/dist/module/native/react/rules.js.map +1 -0
  226. package/dist/module/native/react/useNativeCss.js +154 -0
  227. package/dist/module/native/react/useNativeCss.js.map +1 -0
  228. package/dist/module/native/react/usePassthrough.js.map +1 -0
  229. package/dist/module/native/reactivity.js +169 -0
  230. package/dist/module/native/reactivity.js.map +1 -0
  231. package/dist/module/native/reanimated.js.map +1 -0
  232. package/dist/module/native/styles/calculate-props.js +157 -0
  233. package/dist/module/native/styles/calculate-props.js.map +1 -0
  234. package/dist/module/native/styles/constants.js.map +1 -0
  235. package/dist/module/native/styles/defaults.js.map +1 -0
  236. package/dist/module/native/styles/functions/animation-timing.js.map +1 -0
  237. package/dist/module/native/styles/functions/calc.js.map +1 -0
  238. package/dist/module/native/styles/functions/filters.js +70 -0
  239. package/dist/module/native/styles/functions/filters.js.map +1 -0
  240. package/dist/module/native/styles/functions/index.js.map +1 -0
  241. package/dist/module/native/styles/functions/numeric-functions.js.map +1 -0
  242. package/dist/module/native/styles/functions/platform-functions.js.map +1 -0
  243. package/dist/module/native/styles/functions/string-functions.js.map +1 -0
  244. package/dist/module/native/styles/functions/transform-functions.js +114 -0
  245. package/dist/module/native/styles/functions/transform-functions.js.map +1 -0
  246. package/dist/module/native/styles/index.js +110 -0
  247. package/dist/module/native/styles/index.js.map +1 -0
  248. package/dist/module/native/styles/line-height.js +20 -0
  249. package/dist/module/native/styles/line-height.js.map +1 -0
  250. package/dist/module/native/styles/resolve.js +103 -0
  251. package/dist/module/native/styles/resolve.js.map +1 -0
  252. package/dist/module/native/styles/shorthands/_handler.js +74 -0
  253. package/dist/module/native/styles/shorthands/_handler.js.map +1 -0
  254. package/dist/module/native/styles/shorthands/animation.js +51 -0
  255. package/dist/module/native/styles/shorthands/animation.js.map +1 -0
  256. package/dist/module/native/styles/shorthands/border.js.map +1 -0
  257. package/dist/module/native/styles/shorthands/box-shadow.js +43 -0
  258. package/dist/module/native/styles/shorthands/box-shadow.js.map +1 -0
  259. package/dist/module/native/styles/shorthands/index.js.map +1 -0
  260. package/dist/module/native/styles/shorthands/text-shadow.js.map +1 -0
  261. package/dist/module/native/styles/shorthands/transform.js.map +1 -0
  262. package/dist/module/native/styles/units.js +46 -0
  263. package/dist/module/native/styles/units.js.map +1 -0
  264. package/dist/module/native/styles/variables.js +75 -0
  265. package/dist/module/native/styles/variables.js.map +1 -0
  266. package/dist/module/native-internal/README.md +11 -0
  267. package/dist/module/native-internal/index.js +6 -0
  268. package/dist/module/native-internal/index.js.map +1 -0
  269. package/dist/module/native-internal/root.js +30 -0
  270. package/dist/module/native-internal/root.js.map +1 -0
  271. package/dist/module/native-internal/style-collection.js +95 -0
  272. package/dist/module/native-internal/style-collection.js.map +1 -0
  273. package/dist/module/native-internal/variables.js +22 -0
  274. package/dist/module/native-internal/variables.js.map +1 -0
  275. package/dist/module/runtime/native/injection.js +2 -0
  276. package/dist/module/runtime/native/injection.js.map +1 -0
  277. package/dist/module/runtime.js.map +1 -0
  278. package/dist/module/runtime.native.js.map +1 -0
  279. package/dist/module/runtime.types.js.map +1 -0
  280. package/dist/module/utilities/dot-notation.types.js.map +1 -0
  281. package/dist/module/utilities/index.js +6 -0
  282. package/dist/module/utilities/index.js.map +1 -0
  283. package/dist/module/utilities/specificity.js.map +1 -0
  284. package/dist/module/utilities/style-descriptor.js +16 -0
  285. package/dist/module/utilities/style-descriptor.js.map +1 -0
  286. package/dist/module/web/api.js +76 -0
  287. package/dist/module/web/api.js.map +1 -0
  288. package/dist/module/web/assign-style.js.map +1 -0
  289. package/dist/module/web/index.js.map +1 -0
  290. package/dist/module/web/metro.js.map +1 -0
  291. package/dist/typescript/commonjs/example/app.config.d.ts.map +1 -1
  292. package/dist/typescript/commonjs/example/src/App.d.ts +0 -1
  293. package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -1
  294. package/dist/typescript/commonjs/src/babel/index.d.ts +3 -0
  295. package/dist/typescript/commonjs/src/babel/index.d.ts.map +1 -1
  296. package/dist/typescript/commonjs/src/compiler/atRules.d.ts +1 -1
  297. package/dist/typescript/commonjs/src/compiler/atRules.d.ts.map +1 -1
  298. package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -1
  299. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +11 -7
  300. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -1
  301. package/dist/typescript/commonjs/src/compiler/declarations.d.ts +19 -8
  302. package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -1
  303. package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts +4 -0
  304. package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts.map +1 -0
  305. package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts +30 -0
  306. package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts.map +1 -0
  307. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts +1 -1
  308. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -1
  309. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +2 -1
  310. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -1
  311. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +3 -10
  312. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -1
  313. package/dist/typescript/commonjs/src/components/Button.d.ts +3 -10
  314. package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -1
  315. package/dist/typescript/commonjs/src/components/FlatList.d.ts +3 -7
  316. package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -1
  317. package/dist/typescript/commonjs/src/components/Image.d.ts +3 -5
  318. package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -1
  319. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts +6 -0
  320. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts.map +1 -0
  321. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts +6 -0
  322. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts.map +1 -0
  323. package/dist/typescript/commonjs/src/components/Pressable.d.ts +6 -0
  324. package/dist/typescript/commonjs/src/components/Pressable.d.ts.map +1 -0
  325. package/dist/typescript/commonjs/src/components/ScrollView.d.ts +6 -0
  326. package/dist/typescript/commonjs/src/components/ScrollView.d.ts.map +1 -0
  327. package/dist/typescript/commonjs/src/components/Text.d.ts +2 -2
  328. package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -1
  329. package/dist/typescript/commonjs/src/components/TextInput.d.ts +3 -5
  330. package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -1
  331. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts +6 -0
  332. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts.map +1 -0
  333. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts +6 -0
  334. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts.map +1 -0
  335. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts +6 -0
  336. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
  337. package/dist/typescript/commonjs/src/components/View.d.ts +2 -2
  338. package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -1
  339. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts +6 -0
  340. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts.map +1 -0
  341. package/dist/typescript/commonjs/src/components/index.d.ts +8 -0
  342. package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -1
  343. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts.map +1 -1
  344. package/dist/typescript/commonjs/src/index.d.ts +0 -1
  345. package/dist/typescript/commonjs/src/index.d.ts.map +1 -1
  346. package/dist/typescript/commonjs/src/jest/index.d.ts +1 -1
  347. package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -1
  348. package/dist/typescript/commonjs/src/metro/index.d.ts +1 -1
  349. package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -1
  350. package/dist/typescript/commonjs/src/native/api.d.ts +26 -0
  351. package/dist/typescript/commonjs/src/native/api.d.ts.map +1 -0
  352. package/dist/typescript/commonjs/src/native/conditions/attributes.d.ts +4 -0
  353. package/dist/typescript/commonjs/src/native/conditions/attributes.d.ts.map +1 -0
  354. package/dist/typescript/commonjs/src/native/conditions/container-query.d.ts +7 -0
  355. package/dist/typescript/commonjs/src/native/conditions/container-query.d.ts.map +1 -0
  356. package/dist/typescript/commonjs/src/native/conditions/guards.d.ts.map +1 -0
  357. package/dist/typescript/commonjs/src/native/conditions/index.d.ts +6 -0
  358. package/dist/typescript/commonjs/src/native/conditions/index.d.ts.map +1 -0
  359. package/dist/typescript/commonjs/src/native/conditions/media-query.d.ts +4 -0
  360. package/dist/typescript/commonjs/src/native/conditions/media-query.d.ts.map +1 -0
  361. package/dist/typescript/commonjs/src/native/index.d.ts.map +1 -0
  362. package/dist/typescript/commonjs/src/native/metro.d.ts.map +1 -0
  363. package/dist/typescript/commonjs/src/native/objects.d.ts.map +1 -0
  364. package/dist/typescript/commonjs/src/native/react/interaction.d.ts.map +1 -0
  365. package/dist/typescript/commonjs/src/native/react/rules.d.ts.map +1 -0
  366. package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts +38 -0
  367. package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts.map +1 -0
  368. package/dist/typescript/commonjs/src/native/react/usePassthrough.d.ts.map +1 -0
  369. package/dist/typescript/commonjs/src/native/reactivity.d.ts +52 -0
  370. package/dist/typescript/commonjs/src/native/reactivity.d.ts.map +1 -0
  371. package/dist/typescript/commonjs/src/native/reanimated.d.ts.map +1 -0
  372. package/dist/typescript/commonjs/src/native/styles/calculate-props.d.ts +10 -0
  373. package/dist/typescript/commonjs/src/native/styles/calculate-props.d.ts.map +1 -0
  374. package/dist/typescript/commonjs/src/native/styles/constants.d.ts.map +1 -0
  375. package/dist/typescript/commonjs/src/native/styles/defaults.d.ts.map +1 -0
  376. package/dist/typescript/commonjs/src/native/styles/functions/animation-timing.d.ts.map +1 -0
  377. package/dist/typescript/commonjs/src/native/styles/functions/calc.d.ts.map +1 -0
  378. package/dist/typescript/commonjs/src/native/styles/functions/filters.d.ts.map +1 -0
  379. package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts.map +1 -0
  380. package/dist/typescript/commonjs/src/native/styles/functions/numeric-functions.d.ts.map +1 -0
  381. package/dist/typescript/commonjs/src/native/styles/functions/platform-functions.d.ts.map +1 -0
  382. package/dist/typescript/commonjs/src/native/styles/functions/string-functions.d.ts.map +1 -0
  383. package/dist/typescript/commonjs/src/native/styles/functions/transform-functions.d.ts.map +1 -0
  384. package/dist/typescript/commonjs/src/native/styles/index.d.ts +19 -0
  385. package/dist/typescript/commonjs/src/native/styles/index.d.ts.map +1 -0
  386. package/dist/typescript/commonjs/src/native/styles/line-height.d.ts +3 -0
  387. package/dist/typescript/commonjs/src/native/styles/line-height.d.ts.map +1 -0
  388. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts +18 -0
  389. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts.map +1 -0
  390. package/dist/typescript/commonjs/src/native/styles/shorthands/_handler.d.ts.map +1 -0
  391. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts.map +1 -0
  392. package/dist/typescript/commonjs/src/native/styles/shorthands/border.d.ts.map +1 -0
  393. package/dist/typescript/commonjs/src/native/styles/shorthands/box-shadow.d.ts.map +1 -0
  394. package/dist/typescript/commonjs/src/native/styles/shorthands/index.d.ts.map +1 -0
  395. package/dist/typescript/commonjs/src/native/styles/shorthands/text-shadow.d.ts.map +1 -0
  396. package/dist/typescript/commonjs/src/native/styles/shorthands/transform.d.ts.map +1 -0
  397. package/dist/typescript/commonjs/src/native/styles/units.d.ts.map +1 -0
  398. package/dist/typescript/commonjs/src/native/styles/variables.d.ts +5 -0
  399. package/dist/typescript/commonjs/src/native/styles/variables.d.ts.map +1 -0
  400. package/dist/typescript/commonjs/src/native-internal/index.d.ts +4 -0
  401. package/dist/typescript/commonjs/src/native-internal/index.d.ts.map +1 -0
  402. package/dist/typescript/commonjs/src/native-internal/root.d.ts +11 -0
  403. package/dist/typescript/commonjs/src/native-internal/root.d.ts.map +1 -0
  404. package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts +16 -0
  405. package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts.map +1 -0
  406. package/dist/typescript/commonjs/src/native-internal/variables.d.ts +8 -0
  407. package/dist/typescript/commonjs/src/native-internal/variables.d.ts.map +1 -0
  408. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts +1 -0
  409. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts.map +1 -0
  410. package/dist/typescript/commonjs/src/runtime.d.ts.map +1 -0
  411. package/dist/typescript/commonjs/src/runtime.native.d.ts.map +1 -0
  412. package/dist/typescript/commonjs/src/runtime.types.d.ts +49 -0
  413. package/dist/typescript/commonjs/src/runtime.types.d.ts.map +1 -0
  414. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts.map +1 -0
  415. package/dist/typescript/commonjs/src/utilities/index.d.ts +4 -0
  416. package/dist/typescript/commonjs/src/utilities/index.d.ts.map +1 -0
  417. package/dist/typescript/commonjs/src/utilities/specificity.d.ts +13 -0
  418. package/dist/typescript/commonjs/src/utilities/specificity.d.ts.map +1 -0
  419. package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts +4 -0
  420. package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts.map +1 -0
  421. package/dist/typescript/commonjs/src/web/api.d.ts +16 -0
  422. package/dist/typescript/commonjs/src/web/api.d.ts.map +1 -0
  423. package/dist/typescript/commonjs/src/web/assign-style.d.ts.map +1 -0
  424. package/dist/typescript/commonjs/src/web/index.d.ts.map +1 -0
  425. package/dist/typescript/commonjs/src/web/metro.d.ts.map +1 -0
  426. package/dist/typescript/module/example/app.config.d.ts.map +1 -1
  427. package/dist/typescript/module/example/src/App.d.ts +0 -1
  428. package/dist/typescript/module/example/src/App.d.ts.map +1 -1
  429. package/dist/typescript/module/src/babel/index.d.ts +3 -0
  430. package/dist/typescript/module/src/babel/index.d.ts.map +1 -1
  431. package/dist/typescript/module/src/compiler/atRules.d.ts +1 -1
  432. package/dist/typescript/module/src/compiler/atRules.d.ts.map +1 -1
  433. package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -1
  434. package/dist/typescript/module/src/compiler/compiler.types.d.ts +11 -7
  435. package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -1
  436. package/dist/typescript/module/src/compiler/declarations.d.ts +19 -8
  437. package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -1
  438. package/dist/typescript/module/src/compiler/inline-variables.d.ts +4 -0
  439. package/dist/typescript/module/src/compiler/inline-variables.d.ts.map +1 -0
  440. package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts +30 -0
  441. package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts.map +1 -0
  442. package/dist/typescript/module/src/compiler/selector-builder.d.ts +1 -1
  443. package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -1
  444. package/dist/typescript/module/src/compiler/stylesheet.d.ts +2 -1
  445. package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -1
  446. package/dist/typescript/module/src/components/ActivityIndicator.d.ts +3 -10
  447. package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -1
  448. package/dist/typescript/module/src/components/Button.d.ts +3 -10
  449. package/dist/typescript/module/src/components/Button.d.ts.map +1 -1
  450. package/dist/typescript/module/src/components/FlatList.d.ts +3 -7
  451. package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -1
  452. package/dist/typescript/module/src/components/Image.d.ts +3 -5
  453. package/dist/typescript/module/src/components/Image.d.ts.map +1 -1
  454. package/dist/typescript/module/src/components/ImageBackground.d.ts +6 -0
  455. package/dist/typescript/module/src/components/ImageBackground.d.ts.map +1 -0
  456. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts +6 -0
  457. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts.map +1 -0
  458. package/dist/typescript/module/src/components/Pressable.d.ts +6 -0
  459. package/dist/typescript/module/src/components/Pressable.d.ts.map +1 -0
  460. package/dist/typescript/module/src/components/ScrollView.d.ts +6 -0
  461. package/dist/typescript/module/src/components/ScrollView.d.ts.map +1 -0
  462. package/dist/typescript/module/src/components/Text.d.ts +2 -2
  463. package/dist/typescript/module/src/components/Text.d.ts.map +1 -1
  464. package/dist/typescript/module/src/components/TextInput.d.ts +3 -5
  465. package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -1
  466. package/dist/typescript/module/src/components/TouchableHighlight.d.ts +6 -0
  467. package/dist/typescript/module/src/components/TouchableHighlight.d.ts.map +1 -0
  468. package/dist/typescript/module/src/components/TouchableOpacity.d.ts +6 -0
  469. package/dist/typescript/module/src/components/TouchableOpacity.d.ts.map +1 -0
  470. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts +6 -0
  471. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
  472. package/dist/typescript/module/src/components/View.d.ts +2 -2
  473. package/dist/typescript/module/src/components/View.d.ts.map +1 -1
  474. package/dist/typescript/module/src/components/VirtualizedList.d.ts +6 -0
  475. package/dist/typescript/module/src/components/VirtualizedList.d.ts.map +1 -0
  476. package/dist/typescript/module/src/components/index.d.ts +8 -0
  477. package/dist/typescript/module/src/components/index.d.ts.map +1 -1
  478. package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts.map +1 -1
  479. package/dist/typescript/module/src/index.d.ts +0 -1
  480. package/dist/typescript/module/src/index.d.ts.map +1 -1
  481. package/dist/typescript/module/src/jest/index.d.ts +1 -1
  482. package/dist/typescript/module/src/jest/index.d.ts.map +1 -1
  483. package/dist/typescript/module/src/metro/index.d.ts +1 -1
  484. package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
  485. package/dist/typescript/module/src/native/api.d.ts +26 -0
  486. package/dist/typescript/module/src/native/api.d.ts.map +1 -0
  487. package/dist/typescript/module/src/native/conditions/attributes.d.ts +4 -0
  488. package/dist/typescript/module/src/native/conditions/attributes.d.ts.map +1 -0
  489. package/dist/typescript/module/src/native/conditions/container-query.d.ts +7 -0
  490. package/dist/typescript/module/src/native/conditions/container-query.d.ts.map +1 -0
  491. package/dist/typescript/module/src/native/conditions/guards.d.ts.map +1 -0
  492. package/dist/typescript/module/src/native/conditions/index.d.ts +6 -0
  493. package/dist/typescript/module/src/native/conditions/index.d.ts.map +1 -0
  494. package/dist/typescript/module/src/native/conditions/media-query.d.ts +4 -0
  495. package/dist/typescript/module/src/native/conditions/media-query.d.ts.map +1 -0
  496. package/dist/typescript/module/src/native/index.d.ts.map +1 -0
  497. package/dist/typescript/module/src/native/metro.d.ts.map +1 -0
  498. package/dist/typescript/module/src/native/objects.d.ts.map +1 -0
  499. package/dist/typescript/module/src/native/react/interaction.d.ts.map +1 -0
  500. package/dist/typescript/module/src/native/react/rules.d.ts.map +1 -0
  501. package/dist/typescript/module/src/native/react/useNativeCss.d.ts +38 -0
  502. package/dist/typescript/module/src/native/react/useNativeCss.d.ts.map +1 -0
  503. package/dist/typescript/module/src/native/react/usePassthrough.d.ts.map +1 -0
  504. package/dist/typescript/module/src/native/reactivity.d.ts +52 -0
  505. package/dist/typescript/module/src/native/reactivity.d.ts.map +1 -0
  506. package/dist/typescript/module/src/native/reanimated.d.ts.map +1 -0
  507. package/dist/typescript/module/src/native/styles/calculate-props.d.ts +10 -0
  508. package/dist/typescript/module/src/native/styles/calculate-props.d.ts.map +1 -0
  509. package/dist/typescript/module/src/native/styles/constants.d.ts.map +1 -0
  510. package/dist/typescript/module/src/native/styles/defaults.d.ts.map +1 -0
  511. package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts.map +1 -0
  512. package/dist/typescript/module/src/native/styles/functions/calc.d.ts.map +1 -0
  513. package/dist/typescript/module/src/native/styles/functions/filters.d.ts.map +1 -0
  514. package/dist/typescript/module/src/native/styles/functions/index.d.ts.map +1 -0
  515. package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts.map +1 -0
  516. package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts.map +1 -0
  517. package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts.map +1 -0
  518. package/dist/typescript/module/src/native/styles/functions/transform-functions.d.ts.map +1 -0
  519. package/dist/typescript/module/src/native/styles/index.d.ts +19 -0
  520. package/dist/typescript/module/src/native/styles/index.d.ts.map +1 -0
  521. package/dist/typescript/module/src/native/styles/line-height.d.ts +3 -0
  522. package/dist/typescript/module/src/native/styles/line-height.d.ts.map +1 -0
  523. package/dist/typescript/module/src/native/styles/resolve.d.ts +18 -0
  524. package/dist/typescript/module/src/native/styles/resolve.d.ts.map +1 -0
  525. package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts.map +1 -0
  526. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts.map +1 -0
  527. package/dist/typescript/module/src/native/styles/shorthands/border.d.ts.map +1 -0
  528. package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts.map +1 -0
  529. package/dist/typescript/module/src/native/styles/shorthands/index.d.ts.map +1 -0
  530. package/dist/typescript/module/src/native/styles/shorthands/text-shadow.d.ts.map +1 -0
  531. package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts.map +1 -0
  532. package/dist/typescript/module/src/native/styles/units.d.ts.map +1 -0
  533. package/dist/typescript/module/src/native/styles/variables.d.ts +5 -0
  534. package/dist/typescript/module/src/native/styles/variables.d.ts.map +1 -0
  535. package/dist/typescript/module/src/native-internal/index.d.ts +4 -0
  536. package/dist/typescript/module/src/native-internal/index.d.ts.map +1 -0
  537. package/dist/typescript/module/src/native-internal/root.d.ts +11 -0
  538. package/dist/typescript/module/src/native-internal/root.d.ts.map +1 -0
  539. package/dist/typescript/module/src/native-internal/style-collection.d.ts +16 -0
  540. package/dist/typescript/module/src/native-internal/style-collection.d.ts.map +1 -0
  541. package/dist/typescript/module/src/native-internal/variables.d.ts +8 -0
  542. package/dist/typescript/module/src/native-internal/variables.d.ts.map +1 -0
  543. package/dist/typescript/module/src/runtime/native/injection.d.ts +1 -0
  544. package/dist/typescript/module/src/runtime/native/injection.d.ts.map +1 -0
  545. package/dist/typescript/module/src/runtime.d.ts.map +1 -0
  546. package/dist/typescript/module/src/runtime.native.d.ts.map +1 -0
  547. package/dist/typescript/module/src/runtime.types.d.ts +49 -0
  548. package/dist/typescript/module/src/runtime.types.d.ts.map +1 -0
  549. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts.map +1 -0
  550. package/dist/typescript/module/src/utilities/index.d.ts +4 -0
  551. package/dist/typescript/module/src/utilities/index.d.ts.map +1 -0
  552. package/dist/typescript/module/src/utilities/specificity.d.ts +13 -0
  553. package/dist/typescript/module/src/utilities/specificity.d.ts.map +1 -0
  554. package/dist/typescript/module/src/utilities/style-descriptor.d.ts +4 -0
  555. package/dist/typescript/module/src/utilities/style-descriptor.d.ts.map +1 -0
  556. package/dist/typescript/module/src/web/api.d.ts +16 -0
  557. package/dist/typescript/module/src/web/api.d.ts.map +1 -0
  558. package/dist/typescript/module/src/web/assign-style.d.ts.map +1 -0
  559. package/dist/typescript/module/src/web/index.d.ts.map +1 -0
  560. package/dist/typescript/module/src/web/metro.d.ts.map +1 -0
  561. package/package.json +86 -55
  562. package/src/babel/index.ts +2 -2
  563. package/src/compiler/atRules.ts +19 -34
  564. package/src/compiler/compiler.ts +115 -42
  565. package/src/compiler/compiler.types.ts +16 -7
  566. package/src/compiler/declarations.ts +242 -131
  567. package/src/compiler/inline-variables.ts +209 -0
  568. package/src/compiler/lightningcss-loader.ts +40 -0
  569. package/src/compiler/pseudo-elements.ts +1 -1
  570. package/src/compiler/selector-builder.ts +14 -8
  571. package/src/compiler/selectors.ts +1 -1
  572. package/src/compiler/stylesheet.ts +13 -12
  573. package/src/components/ActivityIndicator.tsx +2 -2
  574. package/src/components/Button.tsx +2 -2
  575. package/src/components/FlatList.tsx +6 -5
  576. package/src/components/Image.tsx +2 -2
  577. package/src/components/ImageBackground.tsx +27 -0
  578. package/src/components/KeyboardAvoidingView.tsx +24 -0
  579. package/src/components/Pressable.tsx +17 -0
  580. package/src/components/ScrollView.tsx +20 -0
  581. package/src/components/Text.tsx +1 -1
  582. package/src/components/TextInput.tsx +8 -3
  583. package/src/components/TouchableHighlight.tsx +22 -0
  584. package/src/components/TouchableOpacity.tsx +22 -0
  585. package/src/components/TouchableWithoutFeedback.tsx +22 -0
  586. package/src/components/View.tsx +1 -1
  587. package/src/components/VirtualizedList.tsx +25 -0
  588. package/src/components/index.tsx +8 -0
  589. package/src/components/react-native-safe-area-context.native.tsx +7 -3
  590. package/src/index.ts +0 -2
  591. package/src/jest/index.ts +4 -5
  592. package/src/metro/index.ts +20 -18
  593. package/src/metro/injection-code.ts +1 -1
  594. package/src/native/api.tsx +120 -0
  595. package/src/native/conditions/attributes.ts +54 -0
  596. package/src/native/conditions/container-query.ts +162 -0
  597. package/src/native/conditions/index.ts +55 -0
  598. package/src/native/conditions/media-query.ts +99 -0
  599. package/src/native/react/rules.ts +336 -0
  600. package/src/native/react/useNativeCss.ts +204 -0
  601. package/src/native/reactivity.ts +248 -0
  602. package/src/native/styles/calculate-props.ts +217 -0
  603. package/src/native/styles/functions/filters.ts +99 -0
  604. package/src/native/styles/functions/transform-functions.ts +85 -0
  605. package/src/native/styles/index.ts +198 -0
  606. package/src/native/styles/line-height.ts +25 -0
  607. package/src/native/styles/resolve.ts +165 -0
  608. package/src/native/styles/shorthands/_handler.ts +122 -0
  609. package/src/native/styles/shorthands/animation.ts +123 -0
  610. package/src/native/styles/shorthands/box-shadow.ts +71 -0
  611. package/src/native/styles/units.ts +62 -0
  612. package/src/native/styles/variables.ts +88 -0
  613. package/src/native-internal/README.md +11 -0
  614. package/src/native-internal/index.ts +3 -0
  615. package/src/native-internal/root.ts +44 -0
  616. package/src/native-internal/style-collection.ts +148 -0
  617. package/src/native-internal/variables.tsx +36 -0
  618. package/src/runtime/native/injection.ts +0 -0
  619. package/src/runtime.types.ts +150 -0
  620. package/src/utilities/index.ts +3 -0
  621. package/src/utilities/specificity.ts +45 -0
  622. package/src/utilities/style-descriptor.ts +24 -0
  623. package/src/web/api.tsx +115 -0
  624. package/dist/commonjs/runtime/index.js +0 -17
  625. package/dist/commonjs/runtime/index.js.map +0 -1
  626. package/dist/commonjs/runtime/native/api.js +0 -96
  627. package/dist/commonjs/runtime/native/api.js.map +0 -1
  628. package/dist/commonjs/runtime/native/conditions/attributes.js +0 -42
  629. package/dist/commonjs/runtime/native/conditions/attributes.js.map +0 -1
  630. package/dist/commonjs/runtime/native/conditions/container-query.js.map +0 -1
  631. package/dist/commonjs/runtime/native/conditions/guards.js.map +0 -1
  632. package/dist/commonjs/runtime/native/conditions/index.js.map +0 -1
  633. package/dist/commonjs/runtime/native/conditions/media-query.js.map +0 -1
  634. package/dist/commonjs/runtime/native/index.js.map +0 -1
  635. package/dist/commonjs/runtime/native/metro.js.map +0 -1
  636. package/dist/commonjs/runtime/native/react/interaction.js.map +0 -1
  637. package/dist/commonjs/runtime/native/react/rules.js +0 -259
  638. package/dist/commonjs/runtime/native/react/rules.js.map +0 -1
  639. package/dist/commonjs/runtime/native/react/useNativeCss.js +0 -159
  640. package/dist/commonjs/runtime/native/react/useNativeCss.js.map +0 -1
  641. package/dist/commonjs/runtime/native/react/usePassthrough.js.map +0 -1
  642. package/dist/commonjs/runtime/native/reactivity.js +0 -189
  643. package/dist/commonjs/runtime/native/reactivity.js.map +0 -1
  644. package/dist/commonjs/runtime/native/reanimated.js.map +0 -1
  645. package/dist/commonjs/runtime/native/styles/calculate-props.js +0 -148
  646. package/dist/commonjs/runtime/native/styles/calculate-props.js.map +0 -1
  647. package/dist/commonjs/runtime/native/styles/constants.js.map +0 -1
  648. package/dist/commonjs/runtime/native/styles/defaults.js.map +0 -1
  649. package/dist/commonjs/runtime/native/styles/functions/animation-timing.js.map +0 -1
  650. package/dist/commonjs/runtime/native/styles/functions/calc.js.map +0 -1
  651. package/dist/commonjs/runtime/native/styles/functions/filters.js +0 -84
  652. package/dist/commonjs/runtime/native/styles/functions/filters.js.map +0 -1
  653. package/dist/commonjs/runtime/native/styles/functions/index.js.map +0 -1
  654. package/dist/commonjs/runtime/native/styles/functions/numeric-functions.js.map +0 -1
  655. package/dist/commonjs/runtime/native/styles/functions/platform-functions.js.map +0 -1
  656. package/dist/commonjs/runtime/native/styles/functions/string-functions.js.map +0 -1
  657. package/dist/commonjs/runtime/native/styles/functions/transform-functions.js +0 -121
  658. package/dist/commonjs/runtime/native/styles/functions/transform-functions.js.map +0 -1
  659. package/dist/commonjs/runtime/native/styles/index.js +0 -115
  660. package/dist/commonjs/runtime/native/styles/index.js.map +0 -1
  661. package/dist/commonjs/runtime/native/styles/resolve.js +0 -106
  662. package/dist/commonjs/runtime/native/styles/resolve.js.map +0 -1
  663. package/dist/commonjs/runtime/native/styles/shorthands/_handler.js +0 -79
  664. package/dist/commonjs/runtime/native/styles/shorthands/_handler.js.map +0 -1
  665. package/dist/commonjs/runtime/native/styles/shorthands/animation.js +0 -57
  666. package/dist/commonjs/runtime/native/styles/shorthands/animation.js.map +0 -1
  667. package/dist/commonjs/runtime/native/styles/shorthands/border.js.map +0 -1
  668. package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js +0 -50
  669. package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js.map +0 -1
  670. package/dist/commonjs/runtime/native/styles/shorthands/index.js.map +0 -1
  671. package/dist/commonjs/runtime/native/styles/shorthands/text-shadow.js.map +0 -1
  672. package/dist/commonjs/runtime/native/styles/shorthands/transform.js.map +0 -1
  673. package/dist/commonjs/runtime/native/styles/units.js +0 -52
  674. package/dist/commonjs/runtime/native/styles/units.js.map +0 -1
  675. package/dist/commonjs/runtime/native/styles/variables.js +0 -79
  676. package/dist/commonjs/runtime/native/styles/variables.js.map +0 -1
  677. package/dist/commonjs/runtime/runtime.js.map +0 -1
  678. package/dist/commonjs/runtime/runtime.native.js.map +0 -1
  679. package/dist/commonjs/runtime/runtime.types.js.map +0 -1
  680. package/dist/commonjs/runtime/utils/components.js +0 -18
  681. package/dist/commonjs/runtime/utils/components.js.map +0 -1
  682. package/dist/commonjs/runtime/utils/dot-notation.types.js.map +0 -1
  683. package/dist/commonjs/runtime/utils/index.js +0 -61
  684. package/dist/commonjs/runtime/utils/index.js.map +0 -1
  685. package/dist/commonjs/runtime/utils/objects.js.map +0 -1
  686. package/dist/commonjs/runtime/utils/specificity.js.map +0 -1
  687. package/dist/commonjs/runtime/utils/style-value.js +0 -21
  688. package/dist/commonjs/runtime/utils/style-value.js.map +0 -1
  689. package/dist/commonjs/runtime/utils/utils.types.js +0 -6
  690. package/dist/commonjs/runtime/utils/utils.types.js.map +0 -1
  691. package/dist/commonjs/runtime/web/api.js +0 -68
  692. package/dist/commonjs/runtime/web/api.js.map +0 -1
  693. package/dist/commonjs/runtime/web/assign-style.js.map +0 -1
  694. package/dist/commonjs/runtime/web/index.js.map +0 -1
  695. package/dist/commonjs/runtime/web/metro.js.map +0 -1
  696. package/dist/commonjs/style-collection/index.js +0 -110
  697. package/dist/commonjs/style-collection/index.js.map +0 -1
  698. package/dist/commonjs/style-collection/root.js +0 -28
  699. package/dist/commonjs/style-collection/root.js.map +0 -1
  700. package/dist/module/runtime/index.js +0 -9
  701. package/dist/module/runtime/index.js.map +0 -1
  702. package/dist/module/runtime/native/api.js +0 -76
  703. package/dist/module/runtime/native/api.js.map +0 -1
  704. package/dist/module/runtime/native/conditions/attributes.js +0 -38
  705. package/dist/module/runtime/native/conditions/attributes.js.map +0 -1
  706. package/dist/module/runtime/native/conditions/container-query.js.map +0 -1
  707. package/dist/module/runtime/native/conditions/guards.js.map +0 -1
  708. package/dist/module/runtime/native/conditions/index.js.map +0 -1
  709. package/dist/module/runtime/native/conditions/media-query.js.map +0 -1
  710. package/dist/module/runtime/native/index.js.map +0 -1
  711. package/dist/module/runtime/native/metro.js.map +0 -1
  712. package/dist/module/runtime/native/react/interaction.js.map +0 -1
  713. package/dist/module/runtime/native/react/rules.js +0 -251
  714. package/dist/module/runtime/native/react/rules.js.map +0 -1
  715. package/dist/module/runtime/native/react/useNativeCss.js +0 -153
  716. package/dist/module/runtime/native/react/useNativeCss.js.map +0 -1
  717. package/dist/module/runtime/native/react/usePassthrough.js.map +0 -1
  718. package/dist/module/runtime/native/reactivity.js +0 -177
  719. package/dist/module/runtime/native/reactivity.js.map +0 -1
  720. package/dist/module/runtime/native/reanimated.js.map +0 -1
  721. package/dist/module/runtime/native/styles/calculate-props.js +0 -143
  722. package/dist/module/runtime/native/styles/calculate-props.js.map +0 -1
  723. package/dist/module/runtime/native/styles/constants.js.map +0 -1
  724. package/dist/module/runtime/native/styles/defaults.js.map +0 -1
  725. package/dist/module/runtime/native/styles/functions/animation-timing.js.map +0 -1
  726. package/dist/module/runtime/native/styles/functions/calc.js.map +0 -1
  727. package/dist/module/runtime/native/styles/functions/filters.js +0 -70
  728. package/dist/module/runtime/native/styles/functions/filters.js.map +0 -1
  729. package/dist/module/runtime/native/styles/functions/index.js.map +0 -1
  730. package/dist/module/runtime/native/styles/functions/numeric-functions.js.map +0 -1
  731. package/dist/module/runtime/native/styles/functions/platform-functions.js.map +0 -1
  732. package/dist/module/runtime/native/styles/functions/string-functions.js.map +0 -1
  733. package/dist/module/runtime/native/styles/functions/transform-functions.js +0 -114
  734. package/dist/module/runtime/native/styles/functions/transform-functions.js.map +0 -1
  735. package/dist/module/runtime/native/styles/index.js +0 -110
  736. package/dist/module/runtime/native/styles/index.js.map +0 -1
  737. package/dist/module/runtime/native/styles/resolve.js +0 -101
  738. package/dist/module/runtime/native/styles/resolve.js.map +0 -1
  739. package/dist/module/runtime/native/styles/shorthands/_handler.js +0 -74
  740. package/dist/module/runtime/native/styles/shorthands/_handler.js.map +0 -1
  741. package/dist/module/runtime/native/styles/shorthands/animation.js +0 -51
  742. package/dist/module/runtime/native/styles/shorthands/animation.js.map +0 -1
  743. package/dist/module/runtime/native/styles/shorthands/border.js.map +0 -1
  744. package/dist/module/runtime/native/styles/shorthands/box-shadow.js +0 -45
  745. package/dist/module/runtime/native/styles/shorthands/box-shadow.js.map +0 -1
  746. package/dist/module/runtime/native/styles/shorthands/index.js.map +0 -1
  747. package/dist/module/runtime/native/styles/shorthands/text-shadow.js.map +0 -1
  748. package/dist/module/runtime/native/styles/shorthands/transform.js.map +0 -1
  749. package/dist/module/runtime/native/styles/units.js +0 -43
  750. package/dist/module/runtime/native/styles/units.js.map +0 -1
  751. package/dist/module/runtime/native/styles/variables.js +0 -75
  752. package/dist/module/runtime/native/styles/variables.js.map +0 -1
  753. package/dist/module/runtime/runtime.js.map +0 -1
  754. package/dist/module/runtime/runtime.native.js.map +0 -1
  755. package/dist/module/runtime/runtime.types.js.map +0 -1
  756. package/dist/module/runtime/utils/components.js +0 -14
  757. package/dist/module/runtime/utils/components.js.map +0 -1
  758. package/dist/module/runtime/utils/dot-notation.types.js.map +0 -1
  759. package/dist/module/runtime/utils/index.js +0 -8
  760. package/dist/module/runtime/utils/index.js.map +0 -1
  761. package/dist/module/runtime/utils/objects.js.map +0 -1
  762. package/dist/module/runtime/utils/specificity.js.map +0 -1
  763. package/dist/module/runtime/utils/style-value.js +0 -16
  764. package/dist/module/runtime/utils/style-value.js.map +0 -1
  765. package/dist/module/runtime/utils/utils.types.js +0 -4
  766. package/dist/module/runtime/utils/utils.types.js.map +0 -1
  767. package/dist/module/runtime/web/api.js +0 -59
  768. package/dist/module/runtime/web/api.js.map +0 -1
  769. package/dist/module/runtime/web/assign-style.js.map +0 -1
  770. package/dist/module/runtime/web/index.js.map +0 -1
  771. package/dist/module/runtime/web/metro.js.map +0 -1
  772. package/dist/module/style-collection/index.js +0 -95
  773. package/dist/module/style-collection/index.js.map +0 -1
  774. package/dist/module/style-collection/root.js +0 -24
  775. package/dist/module/style-collection/root.js.map +0 -1
  776. package/dist/typescript/commonjs/src/runtime/index.d.ts +0 -7
  777. package/dist/typescript/commonjs/src/runtime/index.d.ts.map +0 -1
  778. package/dist/typescript/commonjs/src/runtime/native/api.d.ts +0 -19
  779. package/dist/typescript/commonjs/src/runtime/native/api.d.ts.map +0 -1
  780. package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts +0 -5
  781. package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts.map +0 -1
  782. package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts +0 -7
  783. package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts.map +0 -1
  784. package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts.map +0 -1
  785. package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts +0 -6
  786. package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts.map +0 -1
  787. package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts +0 -4
  788. package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts.map +0 -1
  789. package/dist/typescript/commonjs/src/runtime/native/index.d.ts.map +0 -1
  790. package/dist/typescript/commonjs/src/runtime/native/metro.d.ts.map +0 -1
  791. package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts.map +0 -1
  792. package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts.map +0 -1
  793. package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts +0 -38
  794. package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts.map +0 -1
  795. package/dist/typescript/commonjs/src/runtime/native/react/usePassthrough.d.ts.map +0 -1
  796. package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts +0 -55
  797. package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts.map +0 -1
  798. package/dist/typescript/commonjs/src/runtime/native/reanimated.d.ts.map +0 -1
  799. package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts +0 -10
  800. package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts.map +0 -1
  801. package/dist/typescript/commonjs/src/runtime/native/styles/constants.d.ts.map +0 -1
  802. package/dist/typescript/commonjs/src/runtime/native/styles/defaults.d.ts.map +0 -1
  803. package/dist/typescript/commonjs/src/runtime/native/styles/functions/animation-timing.d.ts.map +0 -1
  804. package/dist/typescript/commonjs/src/runtime/native/styles/functions/calc.d.ts.map +0 -1
  805. package/dist/typescript/commonjs/src/runtime/native/styles/functions/filters.d.ts.map +0 -1
  806. package/dist/typescript/commonjs/src/runtime/native/styles/functions/index.d.ts.map +0 -1
  807. package/dist/typescript/commonjs/src/runtime/native/styles/functions/numeric-functions.d.ts.map +0 -1
  808. package/dist/typescript/commonjs/src/runtime/native/styles/functions/platform-functions.d.ts.map +0 -1
  809. package/dist/typescript/commonjs/src/runtime/native/styles/functions/string-functions.d.ts.map +0 -1
  810. package/dist/typescript/commonjs/src/runtime/native/styles/functions/transform-functions.d.ts.map +0 -1
  811. package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts +0 -19
  812. package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts.map +0 -1
  813. package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts +0 -18
  814. package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts.map +0 -1
  815. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/_handler.d.ts.map +0 -1
  816. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/animation.d.ts.map +0 -1
  817. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/border.d.ts.map +0 -1
  818. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +0 -1
  819. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/index.d.ts.map +0 -1
  820. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +0 -1
  821. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/transform.d.ts.map +0 -1
  822. package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts.map +0 -1
  823. package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts +0 -5
  824. package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts.map +0 -1
  825. package/dist/typescript/commonjs/src/runtime/runtime.d.ts.map +0 -1
  826. package/dist/typescript/commonjs/src/runtime/runtime.native.d.ts.map +0 -1
  827. package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts +0 -47
  828. package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts.map +0 -1
  829. package/dist/typescript/commonjs/src/runtime/utils/components.d.ts +0 -2
  830. package/dist/typescript/commonjs/src/runtime/utils/components.d.ts.map +0 -1
  831. package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts.map +0 -1
  832. package/dist/typescript/commonjs/src/runtime/utils/index.d.ts +0 -6
  833. package/dist/typescript/commonjs/src/runtime/utils/index.d.ts.map +0 -1
  834. package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts.map +0 -1
  835. package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts +0 -13
  836. package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts.map +0 -1
  837. package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts +0 -4
  838. package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts.map +0 -1
  839. package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts +0 -5
  840. package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts.map +0 -1
  841. package/dist/typescript/commonjs/src/runtime/web/api.d.ts +0 -10
  842. package/dist/typescript/commonjs/src/runtime/web/api.d.ts.map +0 -1
  843. package/dist/typescript/commonjs/src/runtime/web/assign-style.d.ts.map +0 -1
  844. package/dist/typescript/commonjs/src/runtime/web/index.d.ts.map +0 -1
  845. package/dist/typescript/commonjs/src/runtime/web/metro.d.ts.map +0 -1
  846. package/dist/typescript/commonjs/src/style-collection/index.d.ts +0 -14
  847. package/dist/typescript/commonjs/src/style-collection/index.d.ts.map +0 -1
  848. package/dist/typescript/commonjs/src/style-collection/root.d.ts +0 -11
  849. package/dist/typescript/commonjs/src/style-collection/root.d.ts.map +0 -1
  850. package/dist/typescript/module/src/runtime/index.d.ts +0 -7
  851. package/dist/typescript/module/src/runtime/index.d.ts.map +0 -1
  852. package/dist/typescript/module/src/runtime/native/api.d.ts +0 -19
  853. package/dist/typescript/module/src/runtime/native/api.d.ts.map +0 -1
  854. package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts +0 -5
  855. package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts.map +0 -1
  856. package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts +0 -7
  857. package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts.map +0 -1
  858. package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts.map +0 -1
  859. package/dist/typescript/module/src/runtime/native/conditions/index.d.ts +0 -6
  860. package/dist/typescript/module/src/runtime/native/conditions/index.d.ts.map +0 -1
  861. package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts +0 -4
  862. package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts.map +0 -1
  863. package/dist/typescript/module/src/runtime/native/index.d.ts.map +0 -1
  864. package/dist/typescript/module/src/runtime/native/metro.d.ts.map +0 -1
  865. package/dist/typescript/module/src/runtime/native/react/interaction.d.ts.map +0 -1
  866. package/dist/typescript/module/src/runtime/native/react/rules.d.ts.map +0 -1
  867. package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts +0 -38
  868. package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts.map +0 -1
  869. package/dist/typescript/module/src/runtime/native/react/usePassthrough.d.ts.map +0 -1
  870. package/dist/typescript/module/src/runtime/native/reactivity.d.ts +0 -55
  871. package/dist/typescript/module/src/runtime/native/reactivity.d.ts.map +0 -1
  872. package/dist/typescript/module/src/runtime/native/reanimated.d.ts.map +0 -1
  873. package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts +0 -10
  874. package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts.map +0 -1
  875. package/dist/typescript/module/src/runtime/native/styles/constants.d.ts.map +0 -1
  876. package/dist/typescript/module/src/runtime/native/styles/defaults.d.ts.map +0 -1
  877. package/dist/typescript/module/src/runtime/native/styles/functions/animation-timing.d.ts.map +0 -1
  878. package/dist/typescript/module/src/runtime/native/styles/functions/calc.d.ts.map +0 -1
  879. package/dist/typescript/module/src/runtime/native/styles/functions/filters.d.ts.map +0 -1
  880. package/dist/typescript/module/src/runtime/native/styles/functions/index.d.ts.map +0 -1
  881. package/dist/typescript/module/src/runtime/native/styles/functions/numeric-functions.d.ts.map +0 -1
  882. package/dist/typescript/module/src/runtime/native/styles/functions/platform-functions.d.ts.map +0 -1
  883. package/dist/typescript/module/src/runtime/native/styles/functions/string-functions.d.ts.map +0 -1
  884. package/dist/typescript/module/src/runtime/native/styles/functions/transform-functions.d.ts.map +0 -1
  885. package/dist/typescript/module/src/runtime/native/styles/index.d.ts +0 -19
  886. package/dist/typescript/module/src/runtime/native/styles/index.d.ts.map +0 -1
  887. package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts +0 -18
  888. package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts.map +0 -1
  889. package/dist/typescript/module/src/runtime/native/styles/shorthands/_handler.d.ts.map +0 -1
  890. package/dist/typescript/module/src/runtime/native/styles/shorthands/animation.d.ts.map +0 -1
  891. package/dist/typescript/module/src/runtime/native/styles/shorthands/border.d.ts.map +0 -1
  892. package/dist/typescript/module/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +0 -1
  893. package/dist/typescript/module/src/runtime/native/styles/shorthands/index.d.ts.map +0 -1
  894. package/dist/typescript/module/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +0 -1
  895. package/dist/typescript/module/src/runtime/native/styles/shorthands/transform.d.ts.map +0 -1
  896. package/dist/typescript/module/src/runtime/native/styles/units.d.ts.map +0 -1
  897. package/dist/typescript/module/src/runtime/native/styles/variables.d.ts +0 -5
  898. package/dist/typescript/module/src/runtime/native/styles/variables.d.ts.map +0 -1
  899. package/dist/typescript/module/src/runtime/runtime.d.ts.map +0 -1
  900. package/dist/typescript/module/src/runtime/runtime.native.d.ts.map +0 -1
  901. package/dist/typescript/module/src/runtime/runtime.types.d.ts +0 -47
  902. package/dist/typescript/module/src/runtime/runtime.types.d.ts.map +0 -1
  903. package/dist/typescript/module/src/runtime/utils/components.d.ts +0 -2
  904. package/dist/typescript/module/src/runtime/utils/components.d.ts.map +0 -1
  905. package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts.map +0 -1
  906. package/dist/typescript/module/src/runtime/utils/index.d.ts +0 -6
  907. package/dist/typescript/module/src/runtime/utils/index.d.ts.map +0 -1
  908. package/dist/typescript/module/src/runtime/utils/objects.d.ts.map +0 -1
  909. package/dist/typescript/module/src/runtime/utils/specificity.d.ts +0 -13
  910. package/dist/typescript/module/src/runtime/utils/specificity.d.ts.map +0 -1
  911. package/dist/typescript/module/src/runtime/utils/style-value.d.ts +0 -4
  912. package/dist/typescript/module/src/runtime/utils/style-value.d.ts.map +0 -1
  913. package/dist/typescript/module/src/runtime/utils/utils.types.d.ts +0 -5
  914. package/dist/typescript/module/src/runtime/utils/utils.types.d.ts.map +0 -1
  915. package/dist/typescript/module/src/runtime/web/api.d.ts +0 -10
  916. package/dist/typescript/module/src/runtime/web/api.d.ts.map +0 -1
  917. package/dist/typescript/module/src/runtime/web/assign-style.d.ts.map +0 -1
  918. package/dist/typescript/module/src/runtime/web/index.d.ts.map +0 -1
  919. package/dist/typescript/module/src/runtime/web/metro.d.ts.map +0 -1
  920. package/dist/typescript/module/src/style-collection/index.d.ts +0 -14
  921. package/dist/typescript/module/src/style-collection/index.d.ts.map +0 -1
  922. package/dist/typescript/module/src/style-collection/root.d.ts +0 -11
  923. package/dist/typescript/module/src/style-collection/root.d.ts.map +0 -1
  924. package/src/runtime/index.ts +0 -7
  925. package/src/runtime/native/api.ts +0 -108
  926. package/src/runtime/native/conditions/attributes.ts +0 -52
  927. package/src/runtime/native/conditions/container-query.ts +0 -162
  928. package/src/runtime/native/conditions/index.ts +0 -54
  929. package/src/runtime/native/conditions/media-query.ts +0 -98
  930. package/src/runtime/native/react/rules.ts +0 -336
  931. package/src/runtime/native/react/useNativeCss.ts +0 -203
  932. package/src/runtime/native/reactivity.ts +0 -255
  933. package/src/runtime/native/styles/calculate-props.ts +0 -197
  934. package/src/runtime/native/styles/functions/filters.ts +0 -98
  935. package/src/runtime/native/styles/functions/transform-functions.ts +0 -84
  936. package/src/runtime/native/styles/index.ts +0 -197
  937. package/src/runtime/native/styles/resolve.ts +0 -162
  938. package/src/runtime/native/styles/shorthands/_handler.ts +0 -121
  939. package/src/runtime/native/styles/shorthands/animation.ts +0 -123
  940. package/src/runtime/native/styles/shorthands/box-shadow.ts +0 -74
  941. package/src/runtime/native/styles/units.ts +0 -57
  942. package/src/runtime/native/styles/variables.ts +0 -88
  943. package/src/runtime/runtime.types.ts +0 -130
  944. package/src/runtime/utils/components.ts +0 -15
  945. package/src/runtime/utils/index.ts +0 -5
  946. package/src/runtime/utils/specificity.ts +0 -45
  947. package/src/runtime/utils/style-value.ts +0 -24
  948. package/src/runtime/utils/utils.types.ts +0 -19
  949. package/src/runtime/web/api.ts +0 -88
  950. package/src/style-collection/index.ts +0 -142
  951. package/src/style-collection/root.ts +0 -35
  952. /package/dist/commonjs/{runtime/native → native}/conditions/container-query.js +0 -0
  953. /package/dist/commonjs/{runtime/native → native}/conditions/guards.js +0 -0
  954. /package/dist/commonjs/{runtime/native → native}/conditions/index.js +0 -0
  955. /package/dist/commonjs/{runtime/native → native}/conditions/media-query.js +0 -0
  956. /package/dist/commonjs/{runtime/native → native}/index.js +0 -0
  957. /package/dist/commonjs/{runtime/native → native}/metro.js +0 -0
  958. /package/dist/commonjs/{runtime/utils → native}/objects.js +0 -0
  959. /package/dist/commonjs/{runtime/native → native}/react/interaction.js +0 -0
  960. /package/dist/commonjs/{runtime/native → native}/react/usePassthrough.js +0 -0
  961. /package/dist/commonjs/{runtime/native → native}/reanimated.js +0 -0
  962. /package/dist/commonjs/{runtime/native → native}/styles/constants.js +0 -0
  963. /package/dist/commonjs/{runtime/native → native}/styles/defaults.js +0 -0
  964. /package/dist/commonjs/{runtime/native → native}/styles/functions/animation-timing.js +0 -0
  965. /package/dist/commonjs/{runtime/native → native}/styles/functions/calc.js +0 -0
  966. /package/dist/commonjs/{runtime/native → native}/styles/functions/index.js +0 -0
  967. /package/dist/commonjs/{runtime/native → native}/styles/functions/numeric-functions.js +0 -0
  968. /package/dist/commonjs/{runtime/native → native}/styles/functions/platform-functions.js +0 -0
  969. /package/dist/commonjs/{runtime/native → native}/styles/functions/string-functions.js +0 -0
  970. /package/dist/commonjs/{runtime/native → native}/styles/shorthands/border.js +0 -0
  971. /package/dist/commonjs/{runtime/native → native}/styles/shorthands/index.js +0 -0
  972. /package/dist/commonjs/{runtime/native → native}/styles/shorthands/text-shadow.js +0 -0
  973. /package/dist/commonjs/{runtime/native → native}/styles/shorthands/transform.js +0 -0
  974. /package/dist/commonjs/{runtime/runtime.js → runtime.js} +0 -0
  975. /package/dist/commonjs/{runtime/runtime.native.js → runtime.native.js} +0 -0
  976. /package/dist/commonjs/{runtime/runtime.types.js → runtime.types.js} +0 -0
  977. /package/dist/commonjs/{runtime/utils → utilities}/dot-notation.types.js +0 -0
  978. /package/dist/commonjs/{runtime/utils → utilities}/specificity.js +0 -0
  979. /package/dist/commonjs/{runtime/web → web}/assign-style.js +0 -0
  980. /package/dist/commonjs/{runtime/web → web}/index.js +0 -0
  981. /package/dist/commonjs/{runtime/web → web}/metro.js +0 -0
  982. /package/dist/module/{runtime/native → native}/conditions/container-query.js +0 -0
  983. /package/dist/module/{runtime/native → native}/conditions/guards.js +0 -0
  984. /package/dist/module/{runtime/native → native}/conditions/index.js +0 -0
  985. /package/dist/module/{runtime/native → native}/conditions/media-query.js +0 -0
  986. /package/dist/module/{runtime/native → native}/index.js +0 -0
  987. /package/dist/module/{runtime/native → native}/metro.js +0 -0
  988. /package/dist/module/{runtime/utils → native}/objects.js +0 -0
  989. /package/dist/module/{runtime/native → native}/react/interaction.js +0 -0
  990. /package/dist/module/{runtime/native → native}/react/usePassthrough.js +0 -0
  991. /package/dist/module/{runtime/native → native}/reanimated.js +0 -0
  992. /package/dist/module/{runtime/native → native}/styles/constants.js +0 -0
  993. /package/dist/module/{runtime/native → native}/styles/defaults.js +0 -0
  994. /package/dist/module/{runtime/native → native}/styles/functions/animation-timing.js +0 -0
  995. /package/dist/module/{runtime/native → native}/styles/functions/calc.js +0 -0
  996. /package/dist/module/{runtime/native → native}/styles/functions/index.js +0 -0
  997. /package/dist/module/{runtime/native → native}/styles/functions/numeric-functions.js +0 -0
  998. /package/dist/module/{runtime/native → native}/styles/functions/platform-functions.js +0 -0
  999. /package/dist/module/{runtime/native → native}/styles/functions/string-functions.js +0 -0
  1000. /package/dist/module/{runtime/native → native}/styles/shorthands/border.js +0 -0
  1001. /package/dist/module/{runtime/native → native}/styles/shorthands/index.js +0 -0
  1002. /package/dist/module/{runtime/native → native}/styles/shorthands/text-shadow.js +0 -0
  1003. /package/dist/module/{runtime/native → native}/styles/shorthands/transform.js +0 -0
  1004. /package/dist/module/{runtime/runtime.js → runtime.js} +0 -0
  1005. /package/dist/module/{runtime/runtime.native.js → runtime.native.js} +0 -0
  1006. /package/dist/module/{runtime/runtime.types.js → runtime.types.js} +0 -0
  1007. /package/dist/module/{runtime/utils → utilities}/dot-notation.types.js +0 -0
  1008. /package/dist/module/{runtime/utils → utilities}/specificity.js +0 -0
  1009. /package/dist/module/{runtime/web → web}/assign-style.js +0 -0
  1010. /package/dist/module/{runtime/web → web}/index.js +0 -0
  1011. /package/dist/module/{runtime/web → web}/metro.js +0 -0
  1012. /package/dist/typescript/commonjs/src/{runtime/native → native}/conditions/guards.d.ts +0 -0
  1013. /package/dist/typescript/commonjs/src/{runtime/native → native}/index.d.ts +0 -0
  1014. /package/dist/typescript/commonjs/src/{runtime/native → native}/metro.d.ts +0 -0
  1015. /package/dist/typescript/commonjs/src/{runtime/utils → native}/objects.d.ts +0 -0
  1016. /package/dist/typescript/commonjs/src/{runtime/native → native}/react/interaction.d.ts +0 -0
  1017. /package/dist/typescript/commonjs/src/{runtime/native → native}/react/rules.d.ts +0 -0
  1018. /package/dist/typescript/commonjs/src/{runtime/native → native}/react/usePassthrough.d.ts +0 -0
  1019. /package/dist/typescript/commonjs/src/{runtime/native → native}/reanimated.d.ts +0 -0
  1020. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/constants.d.ts +0 -0
  1021. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/defaults.d.ts +0 -0
  1022. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/animation-timing.d.ts +0 -0
  1023. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/calc.d.ts +0 -0
  1024. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/filters.d.ts +0 -0
  1025. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/index.d.ts +0 -0
  1026. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/numeric-functions.d.ts +0 -0
  1027. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/platform-functions.d.ts +0 -0
  1028. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/string-functions.d.ts +0 -0
  1029. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/transform-functions.d.ts +0 -0
  1030. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/_handler.d.ts +0 -0
  1031. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/animation.d.ts +0 -0
  1032. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/border.d.ts +0 -0
  1033. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/box-shadow.d.ts +0 -0
  1034. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/index.d.ts +0 -0
  1035. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/text-shadow.d.ts +0 -0
  1036. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/transform.d.ts +0 -0
  1037. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/units.d.ts +0 -0
  1038. /package/dist/typescript/commonjs/src/{runtime/runtime.d.ts → runtime.d.ts} +0 -0
  1039. /package/dist/typescript/commonjs/src/{runtime/runtime.native.d.ts → runtime.native.d.ts} +0 -0
  1040. /package/dist/typescript/commonjs/src/{runtime/utils → utilities}/dot-notation.types.d.ts +0 -0
  1041. /package/dist/typescript/commonjs/src/{runtime/web → web}/assign-style.d.ts +0 -0
  1042. /package/dist/typescript/commonjs/src/{runtime/web → web}/index.d.ts +0 -0
  1043. /package/dist/typescript/commonjs/src/{runtime/web → web}/metro.d.ts +0 -0
  1044. /package/dist/typescript/module/src/{runtime/native → native}/conditions/guards.d.ts +0 -0
  1045. /package/dist/typescript/module/src/{runtime/native → native}/index.d.ts +0 -0
  1046. /package/dist/typescript/module/src/{runtime/native → native}/metro.d.ts +0 -0
  1047. /package/dist/typescript/module/src/{runtime/utils → native}/objects.d.ts +0 -0
  1048. /package/dist/typescript/module/src/{runtime/native → native}/react/interaction.d.ts +0 -0
  1049. /package/dist/typescript/module/src/{runtime/native → native}/react/rules.d.ts +0 -0
  1050. /package/dist/typescript/module/src/{runtime/native → native}/react/usePassthrough.d.ts +0 -0
  1051. /package/dist/typescript/module/src/{runtime/native → native}/reanimated.d.ts +0 -0
  1052. /package/dist/typescript/module/src/{runtime/native → native}/styles/constants.d.ts +0 -0
  1053. /package/dist/typescript/module/src/{runtime/native → native}/styles/defaults.d.ts +0 -0
  1054. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/animation-timing.d.ts +0 -0
  1055. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/calc.d.ts +0 -0
  1056. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/filters.d.ts +0 -0
  1057. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/index.d.ts +0 -0
  1058. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/numeric-functions.d.ts +0 -0
  1059. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/platform-functions.d.ts +0 -0
  1060. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/string-functions.d.ts +0 -0
  1061. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/transform-functions.d.ts +0 -0
  1062. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/_handler.d.ts +0 -0
  1063. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/animation.d.ts +0 -0
  1064. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/border.d.ts +0 -0
  1065. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/box-shadow.d.ts +0 -0
  1066. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/index.d.ts +0 -0
  1067. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/text-shadow.d.ts +0 -0
  1068. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/transform.d.ts +0 -0
  1069. /package/dist/typescript/module/src/{runtime/native → native}/styles/units.d.ts +0 -0
  1070. /package/dist/typescript/module/src/{runtime/runtime.d.ts → runtime.d.ts} +0 -0
  1071. /package/dist/typescript/module/src/{runtime/runtime.native.d.ts → runtime.native.d.ts} +0 -0
  1072. /package/dist/typescript/module/src/{runtime/utils → utilities}/dot-notation.types.d.ts +0 -0
  1073. /package/dist/typescript/module/src/{runtime/web → web}/assign-style.d.ts +0 -0
  1074. /package/dist/typescript/module/src/{runtime/web → web}/index.d.ts +0 -0
  1075. /package/dist/typescript/module/src/{runtime/web → web}/metro.d.ts +0 -0
  1076. /package/src/{runtime/native → native}/conditions/guards.ts +0 -0
  1077. /package/src/{runtime/native → native}/index.ts +0 -0
  1078. /package/src/{runtime/native → native}/metro.ts +0 -0
  1079. /package/src/{runtime/utils → native}/objects.ts +0 -0
  1080. /package/src/{runtime/native → native}/react/interaction.ts +0 -0
  1081. /package/src/{runtime/native → native}/react/usePassthrough.ts +0 -0
  1082. /package/src/{runtime/native → native}/reanimated.ts +0 -0
  1083. /package/src/{runtime/native → native}/styles/constants.ts +0 -0
  1084. /package/src/{runtime/native → native}/styles/defaults.ts +0 -0
  1085. /package/src/{runtime/native → native}/styles/functions/animation-timing.ts +0 -0
  1086. /package/src/{runtime/native → native}/styles/functions/calc.ts +0 -0
  1087. /package/src/{runtime/native → native}/styles/functions/index.ts +0 -0
  1088. /package/src/{runtime/native → native}/styles/functions/numeric-functions.ts +0 -0
  1089. /package/src/{runtime/native → native}/styles/functions/platform-functions.ts +0 -0
  1090. /package/src/{runtime/native → native}/styles/functions/string-functions.ts +0 -0
  1091. /package/src/{runtime/native → native}/styles/shorthands/border.ts +0 -0
  1092. /package/src/{runtime/native → native}/styles/shorthands/index.ts +0 -0
  1093. /package/src/{runtime/native → native}/styles/shorthands/text-shadow.ts +0 -0
  1094. /package/src/{runtime/native → native}/styles/shorthands/transform.ts +0 -0
  1095. /package/src/{runtime/runtime.native.ts → runtime.native.ts} +0 -0
  1096. /package/src/{runtime/runtime.ts → runtime.ts} +0 -0
  1097. /package/src/{runtime/utils → utilities}/dot-notation.types.ts +0 -0
  1098. /package/src/{runtime/web → web}/assign-style.ts +0 -0
  1099. /package/src/{runtime/web → web}/index.ts +0 -0
  1100. /package/src/{runtime/web → web}/metro.ts +0 -0
package/README.md CHANGED
@@ -13,10 +13,12 @@ The goal of this library is to provide the most complete CSS support for React N
13
13
  ### Metro based projects
14
14
 
15
15
  > [!TIP]
16
- > All Expo and React Native Community CLI projects use Metro as the bundler, so this guide applies to them.
16
+ > Most React Native projects use Metro as the bundler.
17
17
 
18
18
  You will need to add `withReactNativeCSS` to your Metro configuration.
19
19
 
20
+ #### Expo Projects
21
+
20
22
  ```ts
21
23
  import { getDefaultConfig } from "expo/metro-config";
22
24
  import { withReactNativeCSS } from "react-native-css/metro";
@@ -31,6 +33,17 @@ export default withReactNativeCSS(defaultConfig, {
31
33
  });
32
34
  ```
33
35
 
36
+ #### Non-Expo Projects
37
+
38
+ `react-native-css` relies on the bundler to process CSS files. Currently only Expo provides a CSS asset pipeline. Since the Expo SDK is modular, you can add this functionality by just using the `@expo/metro-config` package.
39
+
40
+ Follow the Expo instructions, but replace the `expo` package with `@expo/metro-config`.
41
+
42
+ ```diff
43
+ - import { getDefaultConfig } from "expo/metro-config";
44
+ + import { getDefaultConfig } from "@expo/metro-config";
45
+ ```
46
+
34
47
  ### Other bundlers
35
48
 
36
49
  `react-native-css` officially only supports Metro as the bundler, but we welcome community contributions to support other bundlers like Webpack, Vite or Turbopack.
@@ -88,23 +101,42 @@ module.exports = withReactNativeCSS(
88
101
  );
89
102
  ```
90
103
 
91
- ### Via hooks
104
+ ### Via `styled`
105
+
106
+ You can also use the `styled` function to get styled components.
107
+
108
+ ```ts
109
+ import { View } from 'react-native';
110
+ import { styled } from 'react-native-css';
111
+
112
+ import "./styles.css";
113
+
114
+ const MyView = styled(View)
115
+
116
+ export default function App() {
117
+ return (
118
+ <MyView className="container">
119
+ <MyView className="box" />
120
+ </View>
121
+ );
122
+ }
123
+ ```
92
124
 
93
- #### `useCssElement`
125
+ ### Via hooks
94
126
 
95
127
  You can also use the `useCssElement` hook.
96
128
 
97
129
  ```ts
98
- import { View as RNView } from 'react-native';
130
+ import { View } from 'react-native';
99
131
  import { useCssElement } from 'react-native-css';
100
132
 
101
133
  export default function App() {
102
- const Container = useCssElement(RNView, {
134
+ const Container = useCssElement(View, {
103
135
  className: "container",
104
136
  });
105
137
 
106
- const Box = useCssElement(RNView, {
107
- className: "container",
138
+ const Box = useCssElement(View, {
139
+ className: "box",
108
140
  });
109
141
 
110
142
  return (
@@ -116,11 +148,11 @@ export default function App() {
116
148
  ```
117
149
 
118
150
  > [!IMPORTANT]
119
- > The hook returns a React Element, not a style object. The element will work on all platforms and will correctly apply the React context needed to support all features of the library
151
+ > The hook returns a React Element, not a style object.
120
152
 
121
153
  #### `useNativeCssStyle`
122
154
 
123
- If you just require the style object, you can use the `useNativeCssStyle` hook:
155
+ If you just require the style object, you can use the `useNativeCssStyle` hook
124
156
 
125
157
  ```ts
126
158
  import { View as RNView } from 'react-native';
@@ -152,7 +184,7 @@ If you just require a CSS variable value, you can use the `useNativeCssVariable`
152
184
  import { useNativeCssVariable } from 'react-native-css';
153
185
 
154
186
  export default function App() {
155
- const myColor = useNativeCssVariable("my-color");
187
+ const myColor = useNativeCssVariable("--my-color");
156
188
 
157
189
  return (
158
190
  <View style={{ backgroundColor: myColor }}>
@@ -168,6 +200,102 @@ export default function App() {
168
200
  > This hook may will only work on native platforms. It will return `undefined` on web.
169
201
  > This hook may not support all features of the library.
170
202
 
203
+ ## CSS variables
204
+
205
+ It is preferable that all CSS variables are set via CSS. If you need values to change dynamically, we recommend using a class to change the values.
206
+
207
+ ```css
208
+ .theme-red {
209
+ --brand-color: red;
210
+ }
211
+
212
+ .theme-blue {
213
+ --brand-color: blue;
214
+ }
215
+ ```
216
+
217
+ As a last resort, you can use `VariableContext` to dynamically set CSS variables in JavaScript
218
+
219
+ ```ts
220
+ import { VariableContext } from 'react-native-css';
221
+
222
+ export default function App() {
223
+ return (
224
+ <VariableContext values={{ "--my-color": "red" }}>
225
+ <Text className="my-color-text">
226
+ Hello, world!
227
+ </Text>
228
+ </VariableContext>
229
+ )
230
+ }
231
+ ```
232
+
233
+ This API only allows for setting CSS variables as primitive values. For more complex styles, you will need to use a helper CSS class.
234
+
235
+ > [!IMPORTANT]
236
+ > By using `VariableContext` you may need to disable the `inlineVariable` optimization
237
+
238
+ ## Optimizations
239
+
240
+ CSS is a dynamic styling language that use highly optimized engines that are not available in React Native. Instead, we optimize the styles to improve performance
241
+
242
+ These optimizations are only applied in native environments and are enabled by default.
243
+
244
+ ### Inline REM units
245
+
246
+ All `rem` units are converted to `dp` units at build time. On native, the default dp is 14. You can change the default `rem` by passing a `inlineRem` option to the `withReactNativeCSS` function.
247
+
248
+ ```tsx
249
+ export default withReactNativeCSS(defaultConfig, {
250
+ inlineRem: 16, // change to 16dp,
251
+ });
252
+ ```
253
+
254
+ ### Inline CSS Custom Properties (variables)
255
+
256
+ Custom properties (sometimes referred to as CSS variables or cascading variables) are a way to store values that can be reused throughout a CSS document. They are defined using a property name that starts with `--`, and their values can be accessed using the `var()` function.
257
+
258
+ To improve performance, Custom properties that are only set **once** in the CSS file are inlined at build time.
259
+
260
+ For example
261
+
262
+ ```css
263
+ :root {
264
+ --my-var: red;
265
+ --var-with-two-possible-values: blue;
266
+ }
267
+
268
+ .my-class {
269
+ --var-with-two-possible-values: green;
270
+ color: var(--my-var);
271
+ background-color: var(--var-with-two-possible-values);
272
+ }
273
+ ```
274
+
275
+ Is converted to:
276
+
277
+ ```css
278
+ :root {
279
+ --var-with-two-possible-values: blue;
280
+ }
281
+
282
+ .my-class {
283
+ color: red; /* This was inlined and the variable was removed */
284
+
285
+ /* These are preserved as there are multiple possible values */
286
+ --var-with-two-possible-values: green;
287
+ background-color: var(--var-with-two-possible-values);
288
+ }
289
+ ```
290
+
291
+ Using `VariableContext` with `inlineVariables` may have unexpected results, as rules may have been rewritten not to use a variable. You can disable this behavior by setting `inlineVariables: false`
292
+
293
+ ```tsx
294
+ export default withReactNativeCSS(defaultConfig, {
295
+ inlineVariables: false,
296
+ });
297
+ ```
298
+
171
299
  ## Contributing
172
300
 
173
301
  See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
2
 
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = _default;
3
7
  /* eslint-disable */
4
- module.exports = function () {
8
+ function _default() {
5
9
  return {
6
10
  plugins: [require("./import-plugin").default, "react-native-worklets/plugin"]
7
11
  };
8
- };
12
+ }
9
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["module","exports","plugins","require","default"],"sourceRoot":"../../../src","sources":["babel/index.ts"],"mappings":";;AAAA;AACAA,MAAM,CAACC,OAAO,GAAG,YAAY;EAC3B,OAAO;IACLC,OAAO,EAAE,CACPC,OAAO,CAAC,iBAAiB,CAAC,CAACC,OAAO,EAClC,8BAA8B;EAElC,CAAC;AACH,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_default","plugins","require","default"],"sourceRoot":"../../../src","sources":["babel/index.ts"],"mappings":";;;;;;AAAA;AACe,SAAAA,SAAA,EAAY;EACzB,OAAO;IACLC,OAAO,EAAE,CACPC,OAAO,CAAC,iBAAiB,CAAC,CAACC,OAAO,EAClC,8BAA8B;EAElC,CAAC;AACH","ignoreList":[]}
@@ -11,34 +11,12 @@ var _splitByDelimiter = require("./split-by-delimiter.js");
11
11
  * @react-native *
12
12
  ***********************************************/
13
13
 
14
- function maybeMutateReactNativeOptions(rule, builder) {
14
+ function maybeMutateReactNativeOptions(rule, _builder) {
15
15
  if (rule.type !== "custom" || rule.value?.name !== "react-native") {
16
16
  return;
17
17
  }
18
- const {
19
- declarations
20
- } = rule.value.body.value;
21
- if (!declarations) return;
22
- for (const declaration of declarations) {
23
- if (declaration.property !== "custom") continue;
24
- switch (declaration.value.name) {
25
- case "preserve-variables":
26
- {
27
- declaration.value.value.forEach(token => {
28
- if (token.type !== "dashed-ident") {
29
- return;
30
- }
31
- if (token.value !== "true" && token.value !== "false") {
32
- return;
33
- }
34
- builder.setOptions("preserveVariables", token.value === "true");
35
- });
36
- break;
37
- }
38
- default:
39
- break;
40
- }
41
- }
18
+
19
+ // TODO: Add inline options
42
20
  }
43
21
 
44
22
  /***********************************************
@@ -57,7 +35,9 @@ function parsePropAtRule(rules) {
57
35
  "stroke-width": ["strokeWidth"],
58
36
  "-webkit-line-clamp": ["numberOfLines"],
59
37
  "-rn-ripple-color": ["android_ripple", "color"],
60
- "-rn-ripple-style": ["android_ripple", "borderless"]
38
+ "-rn-ripple-style": ["android_ripple", "borderless"],
39
+ "-rn-ripple-radius": ["android_ripple", "radius"],
40
+ "-rn-ripple-layer": ["android_ripple", "foreground"]
61
41
  };
62
42
  if (!rules) return mapping;
63
43
  for (const rule of rules) {
@@ -85,26 +65,36 @@ function parsePropAtRule(rules) {
85
65
  return mapping;
86
66
  }
87
67
  function propAtRuleBlock(token, mapping = {}) {
88
- const [from, to] = (0, _splitByDelimiter.splitByDelimiter)(token, item => {
68
+ let [from, to] = (0, _splitByDelimiter.splitByDelimiter)(token, item => {
89
69
  return item.value.type === "colon";
90
70
  });
91
- if (!from || from.length !== 1) {
71
+
72
+ // @props <to>; (has no from value)
73
+ if (!to) {
74
+ to = from;
75
+ from = [{
76
+ type: "token",
77
+ value: {
78
+ type: "ident",
79
+ value: "*"
80
+ }
81
+ }];
82
+ }
83
+
84
+ // We can only map from a single property
85
+ if (!from || from.length !== 1 || !to) {
92
86
  return mapping;
93
87
  }
94
88
  const fromToken = from[0];
95
89
  if (!fromToken || fromToken.value.type !== "ident") {
96
90
  return mapping;
97
91
  }
98
- if (!to) {
99
- mapping["*"] = (0, _selectors.toRNProperty)(fromToken.value.value);
100
- return mapping;
101
- }
102
92
  mapping[(0, _selectors.toRNProperty)(fromToken.value.value)] = to.flatMap((item, index) => {
103
93
  switch (item.value.type) {
104
94
  case "delim":
105
95
  return index === 0 && item.value.value === "*" ? ["*"] : [];
106
96
  case "ident":
107
- return [(0, _selectors.toRNProperty)(item.value.value)];
97
+ return item.value.value.split(".").map(part => (0, _selectors.toRNProperty)(part));
108
98
  default:
109
99
  return [];
110
100
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_selectors","require","_splitByDelimiter","maybeMutateReactNativeOptions","rule","builder","type","value","name","declarations","body","declaration","property","forEach","token","setOptions","isPropAtRule","parsePropAtRule","rules","mapping","prelude","length","filter","item","propAtRuleBlock","block","blocks","blockRules","splitByDelimiter","from","to","fromToken","toRNProperty","flatMap","index"],"sourceRoot":"../../../src","sources":["compiler/atRules.ts"],"mappings":";;;;;;;AAQA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AAYA;AACA;AACA;;AAcO,SAASE,6BAA6BA,CAC3CC,IAA8B,EAC9BC,OAA0B,EAC1B;EACA,IAAID,IAAI,CAACE,IAAI,KAAK,QAAQ,IAAIF,IAAI,CAACG,KAAK,EAAEC,IAAI,KAAK,cAAc,EAAE;IACjE;EACF;EAEA,MAAM;IAAEC;EAAa,CAAC,GAAGL,IAAI,CAACG,KAAK,CAACG,IAAI,CAACH,KAAK;EAC9C,IAAI,CAACE,YAAY,EAAE;EAEnB,KAAK,MAAME,WAAW,IAAIF,YAAY,EAAE;IACtC,IAAIE,WAAW,CAACC,QAAQ,KAAK,QAAQ,EAAE;IAEvC,QAAQD,WAAW,CAACJ,KAAK,CAACC,IAAI;MAC5B,KAAK,oBAAoB;QAAE;UACzBG,WAAW,CAACJ,KAAK,CAACA,KAAK,CAACM,OAAO,CAAEC,KAAK,IAAK;YACzC,IAAIA,KAAK,CAACR,IAAI,KAAK,cAAc,EAAE;cACjC;YACF;YAEA,IAAIQ,KAAK,CAACP,KAAK,KAAK,MAAM,IAAIO,KAAK,CAACP,KAAK,KAAK,OAAO,EAAE;cACrD;YACF;YAEAF,OAAO,CAACU,UAAU,CAAC,mBAAmB,EAAED,KAAK,CAACP,KAAK,KAAK,MAAM,CAAC;UACjE,CAAC,CAAC;UACF;QACF;MACA;QACE;IACJ;EACF;AACF;;AAEA;AACA;AACA;;AAEA,SAASS,YAAY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AACT,IAAI,CAAChB,KAAK,CAACA,KAAK,CAAC,CAAC;MACzC;QACE,OAAO,EAAE;IACb;EACF,CAAC,CAAC;EAEF,OAAOY,OAAO;AAChB","ignoreList":[]}
1
+ {"version":3,"names":["_selectors","require","_splitByDelimiter","maybeMutateReactNativeOptions","rule","_builder","type","value","name","isPropAtRule","parsePropAtRule","rules","mapping","prelude","length","filter","item","propAtRuleBlock","block","blocks","blockRules","splitByDelimiter","token","from","to","fromToken","toRNProperty","flatMap","index","split","map","part"],"sourceRoot":"../../../src","sources":["compiler/atRules.ts"],"mappings":";;;;;;;AAQA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AAYA;AACA;AACA;;AAcO,SAASE,6BAA6BA,CAC3CC,IAA8B,EAC9BC,QAA2B,EAC3B;EACA,IAAID,IAAI,CAACE,IAAI,KAAK,QAAQ,IAAIF,IAAI,CAACG,KAAK,EAAEC,IAAI,KAAK,cAAc,EAAE;IACjE;EACF;;EAEA;AACF;;AAEA;AACA;AACA;;AAEA,SAASC,YAAYA,CAACL,IAAuB,EAAsB;EACjE,OAAOA,IAAI,CAACE,IAAI,KAAK,SAAS,IAAIF,IAAI,CAACG,KAAK,CAACC,IAAI,KAAK,MAAM;AAC9D;AAEO,SAASE,eAAeA,CAACC,KAA6B,EAAE;EAC7D;EACA,MAAMC,OAAyB,GAAG;IAChC,aAAa,EAAE,CAAC,aAAa,CAAC;IAC9B,MAAM,EAAE,CAAC,MAAM,CAAC;IAChB,QAAQ,EAAE,CAAC,QAAQ,CAAC;IACpB,cAAc,EAAE,CAAC,aAAa,CAAC;IAC/B,oBAAoB,EAAE,CAAC,eAAe,CAAC;IACvC,kBAAkB,EAAE,CAAC,gBAAgB,EAAE,OAAO,CAAC;IAC/C,kBAAkB,EAAE,CAAC,gBAAgB,EAAE,YAAY,CAAC;IACpD,mBAAmB,EAAE,CAAC,gBAAgB,EAAE,QAAQ,CAAC;IACjD,kBAAkB,EAAE,CA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B,EAAE,EAAE;IACPA,EAAE,GAAGD,IAAI;IACTA,IAAI,GAAG,CACL;MACEjB,IAAI,EAAE,OAAO;MACbC,KAAK,EAAE;QAAED,IAAI,EAAE,OAAO;QAAEC,KAAK,EAAE;MAAI;IACrC,CAAC,CACF;EACH;;EAEA;EACA,IAAI,CAACgB,IAAI,IAAIA,IAAI,CAACT,MAAM,KAAK,CAAC,IAAI,CAACU,EAAE,EAAE;IACrC,OAAOZ,OAAO;EAChB;EAEA,MAAMa,SAAS,GAAGF,IAAI,CAAC,CAAC,CAAC;EACzB,IAAI,CAACE,SAAS,IAAIA,SAAS,CAAClB,KAAK,CAACD,IAAI,KAAK,OAAO,EAAE;IAClD,OAAOM,OAAO;EAChB;EAEAA,OAAO,CAAC,IAAAc,uBAAY,EAACD,SAAS,CAAClB,KAAK,CAACA,KAAK,CAAC,CAAC,GAAGiB,EAAE,CAACG,OAAO,CAAC,CAACX,IAAI,EAAEY,KAAK,KAAK;IACzE,QAAQZ,IAAI,CAACT,KAAK,CAACD,IAAI;MACrB,KAAK,OAAO;QACV,OAAOsB,KAAK,KAAK,CAAC,IAAIZ,IAAI,CAACT,KAAK,CAACA,KAAK,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE;MAC7D,KAAK,OAAO;QACV,OAAOS,IAAI,CAACT,KAAK,CAACA,KAAK,CAACsB,KAAK,CAAC,GAAG,CAAC,CAACC,GAAG,CAAEC,IAAI,IAAK,IAAAL,uBAAY,EAACK,IAAI,CAAC,CAAC;MACtE;QACE,OAAO,EAAE;IACb;EACF,CAAC,CAAC;EAEF,OAAOnB,OAAO;AAChB","ignoreList":[]}
@@ -6,11 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.compile = compile;
7
7
  var _nodeUtil = require("node:util");
8
8
  var _debug = require("debug");
9
- var _lightningcss = require("lightningcss");
10
9
  var _atRules = require("./atRules.js");
11
10
  var _containerQuery = require("./container-query.js");
12
11
  var _declarations = require("./declarations.js");
12
+ var _inlineVariables = require("./inline-variables.js");
13
13
  var _keyframes = require("./keyframes.js");
14
+ var _lightningcssLoader = require("./lightningcss-loader.js");
14
15
  var _mediaQuery = require("./media-query.js");
15
16
  var _stylesheet = require("./stylesheet.js");
16
17
  var _supports = require("./supports.js");
@@ -41,7 +42,76 @@ function compile(code, options = {}) {
41
42
  }
42
43
  }
43
44
  const builder = new _stylesheet.StylesheetBuilder(options);
44
- logger(`Start lightningcss`);
45
+ const {
46
+ lightningcss,
47
+ Features
48
+ } = (0, _lightningcssLoader.lightningcssLoader)();
49
+ logger(`Lightningcss first pass`);
50
+
51
+ /**
52
+ * Use the lightningcss library to traverse the CSS AST and extract style declarations and animations
53
+ *
54
+ * devongovett on Aug 20, 2023
55
+ * > 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.
56
+ * https://github.com/parcel-bundler/lightningcss/issues/554#issuecomment-1685143494
57
+ *
58
+ * Due to the above issue, we run lightningcss twice
59
+ */
60
+
61
+ const vars = new Map();
62
+ const firstPassVisitor = {};
63
+ if (options.inlineRem !== false) {
64
+ firstPassVisitor.Length = length => {
65
+ if (length.unit !== "rem" || options.inlineRem === false) {
66
+ return length;
67
+ }
68
+ return {
69
+ unit: "px",
70
+ value: (0, _declarations.round)(length.value * (options.inlineRem ?? 14))
71
+ };
72
+ };
73
+ }
74
+ if (options.inlineVariables !== false) {
75
+ const exclusionList = options.inlineVariables?.exclude ?? [];
76
+ firstPassVisitor.Declaration = decl => {
77
+ if (decl.property === "custom" && decl.value.name.startsWith("--") && !exclusionList.includes(decl.value.name)) {
78
+ const entry = vars.get(decl.value.name) ?? {
79
+ count: 0,
80
+ value: [...decl.value.value, {
81
+ type: "token",
82
+ value: {
83
+ type: "white-space",
84
+ value: " "
85
+ }
86
+ }]
87
+ };
88
+ entry.count++;
89
+ vars.set(decl.value.name, entry);
90
+ }
91
+ };
92
+ firstPassVisitor.StyleSheetExit = sheet => {
93
+ return (0, _inlineVariables.inlineVariables)(sheet, vars);
94
+ };
95
+ }
96
+ const {
97
+ code: firstPass
98
+ } = lightningcss({
99
+ code: typeof code === "string" ? new TextEncoder().encode(code) : code,
100
+ include: Features.DoublePositionGradients | Features.ColorFunction,
101
+ exclude: Features.VendorPrefixes,
102
+ visitor: firstPassVisitor,
103
+ filename: options.filename ?? "style.css",
104
+ projectRoot: options.projectRoot ?? process.cwd()
105
+ });
106
+ if (isLoggerEnabled) {
107
+ const MAX_LOG_SIZE = 100 * 1024; // 100KB
108
+ if (firstPass.length <= MAX_LOG_SIZE) {
109
+ logger(firstPass.toString());
110
+ } else {
111
+ logger(`firstPass buffer too large to log in full (${firstPass.length} bytes). Preview: ` + firstPass.subarray(0, 1024).toString() + "...");
112
+ }
113
+ }
114
+ logger(`Lightningcss second pass`);
45
115
  const customAtRules = {
46
116
  "react-native": {
47
117
  body: "declaration-list"
@@ -50,6 +120,7 @@ function compile(code, options = {}) {
50
120
  const visitor = {
51
121
  Rule(rule) {
52
122
  (0, _atRules.maybeMutateReactNativeOptions)(rule, builder);
123
+ return rule;
53
124
  },
54
125
  StyleSheetExit(sheet) {
55
126
  if (isLoggerEnabled) {
@@ -66,31 +137,11 @@ function compile(code, options = {}) {
66
137
  // We have processed this rule, so now delete it from the AST
67
138
  }
68
139
  logger(`Exiting lightningcss`);
140
+ return sheet;
69
141
  }
70
142
  };
71
- if (options.stripUnusedVariables) {
72
- const onVarUsage = token => {
73
- if (token.type === "function") {
74
- token.value.arguments.forEach(token => onVarUsage(token));
75
- } else if (token.type === "var") {
76
- builder.varUsage.add(token.value.name.ident);
77
- if (token.value.fallback) {
78
- const fallbackValues = token.value.fallback;
79
- fallbackValues.forEach(varObj => onVarUsage(varObj));
80
- }
81
- }
82
- };
83
- visitor.Declaration = decl => {
84
- if (decl.property === "unparsed" || decl.property === "custom") {
85
- decl.value.value.forEach(token => onVarUsage(token));
86
- }
87
- return decl;
88
- };
89
- }
90
-
91
- // Use the lightningcss library to traverse the CSS AST and extract style declarations and animations
92
- (0, _lightningcss.transform)({
93
- code: typeof code === "string" ? new TextEncoder().encode(code) : code,
143
+ lightningcss({
144
+ code: firstPass,
94
145
  visitor,
95
146
  filename: options.filename ?? "style.css",
96
147
  projectRoot: options.projectRoot ?? process.cwd()
@@ -104,7 +155,7 @@ function compile(code, options = {}) {
104
155
  /**
105
156
  * Extracts style declarations and animations from a given CSS rule, based on its type.
106
157
  */
107
- function extractRule(rule, builder) {
158
+ function extractRule(rule, builder, mapping = {}) {
108
159
  // Check the rule's type to determine which extraction function to call
109
160
  switch (rule.type) {
110
161
  case "keyframes":
@@ -116,13 +167,13 @@ function extractRule(rule, builder) {
116
167
  case "container":
117
168
  {
118
169
  // If the rule is a container, extract it with the `extractedContainer` function
119
- extractContainer(rule.value, builder);
170
+ extractContainer(rule.value, builder, mapping);
120
171
  break;
121
172
  }
122
173
  case "media":
123
174
  {
124
175
  // If the rule is a media query, extract it with the `extractMedia` function
125
- extractMedia(rule.value, builder);
176
+ extractMedia(rule.value, builder, mapping);
126
177
  break;
127
178
  }
128
179
  case "nested-declarations":
@@ -131,7 +182,9 @@ function extractRule(rule, builder) {
131
182
  const declarationBlock = value.declarations;
132
183
  if (declarationBlock) {
133
184
  if (declarationBlock.declarations?.length) {
134
- builder.newNestedRule();
185
+ builder.newNestedRule({
186
+ mapping
187
+ });
135
188
  for (const declaration of declarationBlock.declarations) {
136
189
  (0, _declarations.parseDeclaration)(declaration, builder);
137
190
  }
@@ -139,6 +192,7 @@ function extractRule(rule, builder) {
139
192
  }
140
193
  if (declarationBlock.importantDeclarations?.length) {
141
194
  builder.newNestedRule({
195
+ mapping,
142
196
  important: true
143
197
  });
144
198
  for (const declaration of declarationBlock.importantDeclarations) {
@@ -153,19 +207,22 @@ function extractRule(rule, builder) {
153
207
  {
154
208
  const value = rule.value;
155
209
  const declarationBlock = value.declarations;
156
- const mapping = (0, _atRules.parsePropAtRule)(value.rules);
210
+ mapping = {
211
+ ...mapping,
212
+ ...(0, _atRules.parsePropAtRule)(value.rules)
213
+ };
157
214
 
158
215
  // If the rule is a style declaration, extract it with the `getExtractedStyle` function and store it in the `declarations` map
159
216
  builder = builder.fork("style", value.selectors);
160
217
  if (declarationBlock) {
161
- if (declarationBlock.declarations) {
218
+ if (declarationBlock.declarations?.length) {
162
219
  builder.newRule(mapping);
163
220
  for (const declaration of declarationBlock.declarations) {
164
221
  (0, _declarations.parseDeclaration)(declaration, builder);
165
222
  }
166
223
  builder.applyRuleToSelectors();
167
224
  }
168
- if (declarationBlock.importantDeclarations) {
225
+ if (declarationBlock.importantDeclarations?.length) {
169
226
  builder.newRule(mapping, {
170
227
  important: true
171
228
  });
@@ -177,20 +234,20 @@ function extractRule(rule, builder) {
177
234
  }
178
235
  if (value.rules) {
179
236
  for (const nestedRule of value.rules) {
180
- extractRule(nestedRule, builder);
237
+ extractRule(nestedRule, builder, mapping);
181
238
  }
182
239
  }
183
240
  break;
184
241
  }
185
242
  case "layer-block":
186
243
  for (const layerRule of rule.value.rules) {
187
- extractRule(layerRule, builder);
244
+ extractRule(layerRule, builder, mapping);
188
245
  }
189
246
  break;
190
247
  case "supports":
191
248
  if ((0, _supports.supportsConditionValid)(rule.value.condition)) {
192
249
  for (const layerRule of rule.value.rules) {
193
- extractRule(layerRule, builder);
250
+ extractRule(layerRule, builder, mapping);
194
251
  }
195
252
  }
196
253
  break;
@@ -227,7 +284,7 @@ function extractRule(rule, builder) {
227
284
  *
228
285
  * @returns undefined if no screen media queries are found in the mediaRule, else it returns the extracted styles.
229
286
  */
230
- function extractMedia(mediaRule, builder) {
287
+ function extractMedia(mediaRule, builder, mapping) {
231
288
  builder = builder.fork("media");
232
289
 
233
290
  // Initialize an empty array to store screen media queries
@@ -254,7 +311,7 @@ function extractMedia(mediaRule, builder) {
254
311
 
255
312
  // Iterate over all rules in the mediaRule and extract their styles using the updated CompilerCollection
256
313
  for (const rule of mediaRule.rules) {
257
- extractRule(rule, builder);
314
+ extractRule(rule, builder, mapping);
258
315
  }
259
316
  }
260
317
 
@@ -263,7 +320,7 @@ function extractMedia(mediaRule, builder) {
263
320
  * @param collection - The CompilerCollection object to use when extracting styles.
264
321
  * @param parseOptions - The CssToReactNativeRuntimeOptions object to use when parsing styles.
265
322
  */
266
- function extractContainer(containerRule, builder) {
323
+ function extractContainer(containerRule, builder, mapping) {
267
324
  builder = builder.fork("container");
268
325
 
269
326
  // Iterate over all rules inside the containerRule and extract their styles using the updated CompilerCollection
@@ -275,7 +332,7 @@ function extractContainer(containerRule, builder) {
275
332
  }
276
333
  builder.addContainerQuery(query);
277
334
  for (const rule of containerRule.rules) {
278
- extractRule(rule, builder);
335
+ extractRule(rule, builder, mapping);
279
336
  }
280
337
  }
281
338
  //# sourceMappingURL=compiler.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_nodeUtil","require","_debug","_lightningcss","_atRules","_containerQuery","_declarations","_keyframes","_mediaQuery","_stylesheet","_supports","defaultLogger","debug","compile","code","options","logger","isLoggerEnabled","enabled","Boolean","features","Object","assign","selectorPrefix","startsWith","slice","JSON","stringify","process","env","NODE_ENV","toString","builder","StylesheetBuilder","customAtRules","body","visitor","Rule","rule","maybeMutateReactNativeOptions","StyleSheetExit","sheet","rules","length","inspect","depth","colors","compact","extractRule","stripUnusedVariables","onVarUsage","token","type","value","arguments","forEach","varUsage","add","name","ident","fallback","fallbackValues","varObj","Declaration","decl","property","lightningcss","TextEncoder","encode","filename","projectRoot","cwd","stylesheet","getNativeStyleSheet","warnings","getWarnings","extractKeyFrames","extractContainer","extractMedia","declarationBlock","declarations","newNestedRule","declaration","parseDeclaration","applyRuleToSelectors","importantDeclarations","important","mapping","parsePropAtRule","fork","selectors","newRule","nestedRule","layerRule","supportsConditionValid","condition","mediaRule","media","mediaQuery","query","mediaQueries","mediaType","qualifier","push","m","parseMediaQuery","containerRule","parseContainerCondition","n","addContainerQuery"],"sourceRoot":"../../../src","sources":["compiler/compiler.ts"],"mappings":";;;;;;AACA,IAAAA,SAAA,GAAA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EACrC;EAEA1B,OAAO,CAAC6E,iBAAiB,CAACV,KAAK,CAAC;EAEhC,KAAK,MAAM7D,IAAI,IAAIoE,aAAa,CAAChE,KAAK,EAAE;IACtCM,WAAW,CAACV,IAAI,EAAEN,OAAO,CAAC;EAC5B;AACF","ignoreList":[]}
1
+ {"version":3,"names":["_nodeUtil","require","_debug","_atRules","_containerQuery","_declarations","_inlineVariables","_keyframes","_lightningcssLoader","_mediaQuery","_stylesheet","_supports","defaultLogger","debug","compile","code","options","logger","isLoggerEnabled","enabled","Boolean","features","Object","assign","selectorPrefix","startsWith","slice","JSON","stringify","process","env","NODE_ENV","toString","builder","StylesheetBuilder","lightningcss","Features","lightningcssLoader","vars","Map","firstPassVisitor","inlineRem","Length","length","unit","value","round","inlineVariables","exclusionList","exclude","Declaration","decl","property","name","includes","entry","get","count","type","set","StyleSheetExit","sheet","firstPass","TextEncoder","encode","include","DoublePositionGradients","ColorFunction","VendorPrefixes","visitor","filename","projectRoot","cwd","MAX_LOG_SIZE","subarray","customAtRules","body","Rule","rule","maybeMutateReactNativeOptions","rules","inspect","depth","colors","compact","extractRule","stylesheet","getNativeStyleSheet","warnings","getWarnings","mapping","extractKeyFrames","extractContainer","extractMedia","declarationBlock","declarations","newNestedRule","declaration","parseDeclaration","applyRuleToSelectors","importantDeclarations","important","parsePropAtRule","fork","selectors","newRule","nestedRule","layerRule","supportsConditionValid","condition","mediaRule","media","mediaQuery","query","mediaQueries","mediaType","qualifier","push","m","parseMediaQuery","containerRule","parseContainerCondition","n","addContainerQuery"],"sourceRoot":"../../../src","sources":["compiler/compiler.ts"],"mappings":";;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAUA,IAAAE,QAAA,GAAAF,OAAA;AAOA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AAC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