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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1159) hide show
  1. package/README.md +138 -10
  2. package/dist/commonjs/compiler/atRules.js +33 -41
  3. package/dist/commonjs/compiler/atRules.js.map +1 -1
  4. package/dist/commonjs/compiler/compiler.js +96 -39
  5. package/dist/commonjs/compiler/compiler.js.map +1 -1
  6. package/dist/commonjs/compiler/compiler.types.js +1 -1
  7. package/dist/commonjs/compiler/compiler.types.js.map +1 -1
  8. package/dist/commonjs/compiler/declarations.js +66 -51
  9. package/dist/commonjs/compiler/declarations.js.map +1 -1
  10. package/dist/commonjs/compiler/inline-variables.js +142 -0
  11. package/dist/commonjs/compiler/inline-variables.js.map +1 -0
  12. package/dist/commonjs/compiler/keyframes.js +1 -1
  13. package/dist/commonjs/compiler/keyframes.js.map +1 -1
  14. package/dist/commonjs/compiler/lightningcss-loader.js +40 -0
  15. package/dist/commonjs/compiler/lightningcss-loader.js.map +1 -0
  16. package/dist/commonjs/compiler/pseudo-elements.js +1 -1
  17. package/dist/commonjs/compiler/selector-builder.js +10 -7
  18. package/dist/commonjs/compiler/selector-builder.js.map +1 -1
  19. package/dist/commonjs/compiler/selectors.js +4 -4
  20. package/dist/commonjs/compiler/selectors.js.map +1 -1
  21. package/dist/commonjs/compiler/stylesheet.js +9 -12
  22. package/dist/commonjs/compiler/stylesheet.js.map +1 -1
  23. package/dist/commonjs/components/ActivityIndicator.js +2 -2
  24. package/dist/commonjs/components/ActivityIndicator.js.map +1 -1
  25. package/dist/commonjs/components/Button.js +2 -2
  26. package/dist/commonjs/components/Button.js.map +1 -1
  27. package/dist/commonjs/components/FlatList.js +6 -5
  28. package/dist/commonjs/components/FlatList.js.map +1 -1
  29. package/dist/commonjs/components/Image.js +2 -2
  30. package/dist/commonjs/components/Image.js.map +1 -1
  31. package/dist/commonjs/components/ImageBackground.js +22 -0
  32. package/dist/commonjs/components/ImageBackground.js.map +1 -0
  33. package/dist/commonjs/components/KeyboardAvoidingView.js +19 -0
  34. package/dist/commonjs/components/KeyboardAvoidingView.js.map +1 -0
  35. package/dist/commonjs/components/Pressable.js +17 -0
  36. package/dist/commonjs/components/Pressable.js.map +1 -0
  37. package/dist/commonjs/components/ScrollView.js +18 -0
  38. package/dist/commonjs/components/ScrollView.js.map +1 -0
  39. package/dist/commonjs/components/Switch.js +2 -2
  40. package/dist/commonjs/components/Switch.js.map +1 -1
  41. package/dist/commonjs/components/Text.js +2 -2
  42. package/dist/commonjs/components/Text.js.map +1 -1
  43. package/dist/commonjs/components/TextInput.js +8 -3
  44. package/dist/commonjs/components/TextInput.js.map +1 -1
  45. package/dist/commonjs/components/TouchableHighlight.js +17 -0
  46. package/dist/commonjs/components/TouchableHighlight.js.map +1 -0
  47. package/dist/commonjs/components/TouchableOpacity.js +17 -0
  48. package/dist/commonjs/components/TouchableOpacity.js.map +1 -0
  49. package/dist/commonjs/components/TouchableWithoutFeedback.js +17 -0
  50. package/dist/commonjs/components/TouchableWithoutFeedback.js.map +1 -0
  51. package/dist/commonjs/components/View.js +2 -2
  52. package/dist/commonjs/components/View.js.map +1 -1
  53. package/dist/commonjs/components/VirtualizedList.js +20 -0
  54. package/dist/commonjs/components/VirtualizedList.js.map +1 -0
  55. package/dist/commonjs/components/index.cjs +265 -0
  56. package/dist/commonjs/components/index.cjs.map +1 -0
  57. package/dist/commonjs/components/index.js +65 -1
  58. package/dist/commonjs/components/index.js.map +1 -1
  59. package/dist/commonjs/components/react-native-safe-area-context.native.js +3 -3
  60. package/dist/commonjs/components/react-native-safe-area-context.native.js.map +1 -1
  61. package/dist/commonjs/index.js +4 -15
  62. package/dist/commonjs/index.js.map +1 -1
  63. package/dist/commonjs/jest/index.js +6 -6
  64. package/dist/commonjs/jest/index.js.map +1 -1
  65. package/dist/commonjs/metro/index.js +8 -118
  66. package/dist/commonjs/metro/index.js.map +1 -1
  67. package/dist/commonjs/metro/injection-code.js +1 -1
  68. package/dist/commonjs/metro/injection-code.js.map +1 -1
  69. package/dist/commonjs/metro/metro-transformer.js +8 -1
  70. package/dist/commonjs/metro/metro-transformer.js.map +1 -1
  71. package/dist/commonjs/metro/override.js +6 -0
  72. package/dist/commonjs/metro/override.js.map +1 -0
  73. package/dist/commonjs/metro/resolver.js +11 -20
  74. package/dist/commonjs/metro/resolver.js.map +1 -1
  75. package/dist/commonjs/native/api.js +113 -0
  76. package/dist/commonjs/native/api.js.map +1 -0
  77. package/dist/commonjs/native/conditions/attributes.js +44 -0
  78. package/dist/commonjs/native/conditions/attributes.js.map +1 -0
  79. package/dist/commonjs/native/conditions/container-query.js.map +1 -0
  80. package/dist/commonjs/native/conditions/guards.js.map +1 -0
  81. package/dist/commonjs/native/conditions/index.js.map +1 -0
  82. package/dist/commonjs/native/conditions/media-query.js.map +1 -0
  83. package/dist/commonjs/native/index.js +28 -0
  84. package/dist/commonjs/native/index.js.map +1 -0
  85. package/dist/commonjs/native/objects.js.map +1 -0
  86. package/dist/commonjs/native/react/interaction.js.map +1 -0
  87. package/dist/commonjs/native/react/rules.js +259 -0
  88. package/dist/commonjs/native/react/rules.js.map +1 -0
  89. package/dist/commonjs/native/react/useNativeCss.js +160 -0
  90. package/dist/commonjs/native/react/useNativeCss.js.map +1 -0
  91. package/dist/commonjs/native/react/usePassthrough.js.map +1 -0
  92. package/dist/commonjs/native/react-native-css-metro-override.js +39 -0
  93. package/dist/commonjs/native/react-native-css-metro-override.js.map +1 -0
  94. package/dist/commonjs/native/reactivity.js +181 -0
  95. package/dist/commonjs/native/reactivity.js.map +1 -0
  96. package/dist/commonjs/native/reanimated.js.map +1 -0
  97. package/dist/commonjs/native/styles/calculate-props.js +162 -0
  98. package/dist/commonjs/native/styles/calculate-props.js.map +1 -0
  99. package/dist/commonjs/native/styles/constants.js.map +1 -0
  100. package/dist/commonjs/native/styles/defaults.js.map +1 -0
  101. package/dist/commonjs/native/styles/functions/animation-timing.js.map +1 -0
  102. package/dist/commonjs/native/styles/functions/calc.js.map +1 -0
  103. package/dist/commonjs/native/styles/functions/filters.js +84 -0
  104. package/dist/commonjs/native/styles/functions/filters.js.map +1 -0
  105. package/dist/commonjs/native/styles/functions/index.js.map +1 -0
  106. package/dist/commonjs/native/styles/functions/numeric-functions.js.map +1 -0
  107. package/dist/commonjs/native/styles/functions/platform-functions.js.map +1 -0
  108. package/dist/commonjs/native/styles/functions/string-functions.js.map +1 -0
  109. package/dist/commonjs/native/styles/functions/transform-functions.js +121 -0
  110. package/dist/commonjs/native/styles/functions/transform-functions.js.map +1 -0
  111. package/dist/commonjs/native/styles/index.js +115 -0
  112. package/dist/commonjs/native/styles/index.js.map +1 -0
  113. package/dist/commonjs/native/styles/line-height.js.map +1 -0
  114. package/dist/commonjs/native/styles/resolve.js +107 -0
  115. package/dist/commonjs/native/styles/resolve.js.map +1 -0
  116. package/dist/commonjs/native/styles/shorthands/_handler.js +79 -0
  117. package/dist/commonjs/native/styles/shorthands/_handler.js.map +1 -0
  118. package/dist/commonjs/native/styles/shorthands/animation.js +61 -0
  119. package/dist/commonjs/native/styles/shorthands/animation.js.map +1 -0
  120. package/dist/commonjs/native/styles/shorthands/border.js.map +1 -0
  121. package/dist/commonjs/native/styles/shorthands/box-shadow.js +48 -0
  122. package/dist/commonjs/native/styles/shorthands/box-shadow.js.map +1 -0
  123. package/dist/commonjs/native/styles/shorthands/index.js.map +1 -0
  124. package/dist/commonjs/native/styles/shorthands/text-shadow.js.map +1 -0
  125. package/dist/commonjs/native/styles/shorthands/transform.js.map +1 -0
  126. package/dist/commonjs/native/styles/units.js.map +1 -0
  127. package/dist/commonjs/native/styles/variables.js +79 -0
  128. package/dist/commonjs/native/styles/variables.js.map +1 -0
  129. package/dist/commonjs/native-internal/README.md +11 -0
  130. package/dist/commonjs/native-internal/index.js +39 -0
  131. package/dist/commonjs/native-internal/index.js.map +1 -0
  132. package/dist/commonjs/native-internal/root.js +34 -0
  133. package/dist/commonjs/native-internal/root.js.map +1 -0
  134. package/dist/commonjs/native-internal/style-collection.js +110 -0
  135. package/dist/commonjs/native-internal/style-collection.js.map +1 -0
  136. package/dist/commonjs/native-internal/variables.js +27 -0
  137. package/dist/commonjs/native-internal/variables.js.map +1 -0
  138. package/dist/commonjs/runtime.js.map +1 -0
  139. package/dist/commonjs/runtime.native.js.map +1 -0
  140. package/dist/commonjs/runtime.types.js.map +1 -0
  141. package/dist/commonjs/utilities/dot-notation.types.js.map +1 -0
  142. package/dist/commonjs/utilities/index.js +39 -0
  143. package/dist/commonjs/utilities/index.js.map +1 -0
  144. package/dist/commonjs/utilities/specificity.js.map +1 -0
  145. package/dist/commonjs/utilities/style-descriptor.js +21 -0
  146. package/dist/commonjs/utilities/style-descriptor.js.map +1 -0
  147. package/dist/commonjs/web/api.js.map +1 -0
  148. package/dist/commonjs/web/assign-style.js.map +1 -0
  149. package/dist/commonjs/web/index.js.map +1 -0
  150. package/dist/commonjs/web/metro.js.map +1 -0
  151. package/dist/module/compiler/atRules.js +33 -41
  152. package/dist/module/compiler/atRules.js.map +1 -1
  153. package/dist/module/compiler/compiler.js +96 -39
  154. package/dist/module/compiler/compiler.js.map +1 -1
  155. package/dist/module/compiler/compiler.types.js +1 -1
  156. package/dist/module/compiler/compiler.types.js.map +1 -1
  157. package/dist/module/compiler/declarations.js +66 -51
  158. package/dist/module/compiler/declarations.js.map +1 -1
  159. package/dist/module/compiler/inline-variables.js +138 -0
  160. package/dist/module/compiler/inline-variables.js.map +1 -0
  161. package/dist/module/compiler/keyframes.js +1 -1
  162. package/dist/module/compiler/keyframes.js.map +1 -1
  163. package/dist/module/compiler/lightningcss-loader.js +36 -0
  164. package/dist/module/compiler/lightningcss-loader.js.map +1 -0
  165. package/dist/module/compiler/pseudo-elements.js +1 -1
  166. package/dist/module/compiler/pseudo-elements.js.map +1 -1
  167. package/dist/module/compiler/selector-builder.js +10 -7
  168. package/dist/module/compiler/selector-builder.js.map +1 -1
  169. package/dist/module/compiler/selectors.js +1 -1
  170. package/dist/module/compiler/selectors.js.map +1 -1
  171. package/dist/module/compiler/stylesheet.js +9 -12
  172. package/dist/module/compiler/stylesheet.js.map +1 -1
  173. package/dist/module/components/ActivityIndicator.js +1 -1
  174. package/dist/module/components/ActivityIndicator.js.map +1 -1
  175. package/dist/module/components/Button.js +1 -1
  176. package/dist/module/components/Button.js.map +1 -1
  177. package/dist/module/components/FlatList.js +5 -4
  178. package/dist/module/components/FlatList.js.map +1 -1
  179. package/dist/module/components/Image.js +1 -1
  180. package/dist/module/components/Image.js.map +1 -1
  181. package/dist/module/components/ImageBackground.js +17 -0
  182. package/dist/module/components/ImageBackground.js.map +1 -0
  183. package/dist/module/components/KeyboardAvoidingView.js +14 -0
  184. package/dist/module/components/KeyboardAvoidingView.js.map +1 -0
  185. package/dist/module/components/Pressable.js +12 -0
  186. package/dist/module/components/Pressable.js.map +1 -0
  187. package/dist/module/components/ScrollView.js +13 -0
  188. package/dist/module/components/ScrollView.js.map +1 -0
  189. package/dist/module/components/Switch.js +1 -1
  190. package/dist/module/components/Switch.js.map +1 -1
  191. package/dist/module/components/Text.js +1 -1
  192. package/dist/module/components/Text.js.map +1 -1
  193. package/dist/module/components/TextInput.js +7 -2
  194. package/dist/module/components/TextInput.js.map +1 -1
  195. package/dist/module/components/TouchableHighlight.js +12 -0
  196. package/dist/module/components/TouchableHighlight.js.map +1 -0
  197. package/dist/module/components/TouchableOpacity.js +12 -0
  198. package/dist/module/components/TouchableOpacity.js.map +1 -0
  199. package/dist/module/components/TouchableWithoutFeedback.js +12 -0
  200. package/dist/module/components/TouchableWithoutFeedback.js.map +1 -0
  201. package/dist/module/components/View.js +1 -1
  202. package/dist/module/components/View.js.map +1 -1
  203. package/dist/module/components/VirtualizedList.js +15 -0
  204. package/dist/module/components/VirtualizedList.js.map +1 -0
  205. package/dist/module/components/index.cjs +265 -0
  206. package/dist/module/components/index.cjs.map +1 -0
  207. package/dist/module/components/index.js +8 -0
  208. package/dist/module/components/index.js.map +1 -1
  209. package/dist/module/components/react-native-safe-area-context.native.js +2 -2
  210. package/dist/module/components/react-native-safe-area-context.native.js.map +1 -1
  211. package/dist/module/index.js +1 -2
  212. package/dist/module/index.js.map +1 -1
  213. package/dist/module/jest/index.js +4 -4
  214. package/dist/module/jest/index.js.map +1 -1
  215. package/dist/module/metro/index.js +8 -117
  216. package/dist/module/metro/index.js.map +1 -1
  217. package/dist/module/metro/injection-code.js +1 -1
  218. package/dist/module/metro/injection-code.js.map +1 -1
  219. package/dist/module/metro/metro-transformer.js +8 -1
  220. package/dist/module/metro/metro-transformer.js.map +1 -1
  221. package/dist/module/metro/override.js +4 -0
  222. package/dist/module/metro/override.js.map +1 -0
  223. package/dist/module/metro/resolver.js +11 -20
  224. package/dist/module/metro/resolver.js.map +1 -1
  225. package/dist/module/native/api.js +82 -0
  226. package/dist/module/native/api.js.map +1 -0
  227. package/dist/module/native/conditions/attributes.js +40 -0
  228. package/dist/module/native/conditions/attributes.js.map +1 -0
  229. package/dist/module/native/conditions/container-query.js.map +1 -0
  230. package/dist/module/native/conditions/guards.js.map +1 -0
  231. package/dist/module/native/conditions/index.js.map +1 -0
  232. package/dist/module/native/conditions/media-query.js.map +1 -0
  233. package/dist/module/native/index.js +5 -0
  234. package/dist/module/native/index.js.map +1 -0
  235. package/dist/module/native/objects.js.map +1 -0
  236. package/dist/module/native/react/interaction.js.map +1 -0
  237. package/dist/module/native/react/rules.js +252 -0
  238. package/dist/module/native/react/rules.js.map +1 -0
  239. package/dist/module/native/react/useNativeCss.js +154 -0
  240. package/dist/module/native/react/useNativeCss.js.map +1 -0
  241. package/dist/module/native/react/usePassthrough.js.map +1 -0
  242. package/dist/module/native/react-native-css-metro-override.js +37 -0
  243. package/dist/module/native/react-native-css-metro-override.js.map +1 -0
  244. package/dist/module/native/reactivity.js +169 -0
  245. package/dist/module/native/reactivity.js.map +1 -0
  246. package/dist/module/native/reanimated.js.map +1 -0
  247. package/dist/module/native/styles/calculate-props.js +157 -0
  248. package/dist/module/native/styles/calculate-props.js.map +1 -0
  249. package/dist/module/native/styles/constants.js.map +1 -0
  250. package/dist/module/native/styles/defaults.js.map +1 -0
  251. package/dist/module/native/styles/functions/animation-timing.js.map +1 -0
  252. package/dist/module/native/styles/functions/calc.js.map +1 -0
  253. package/dist/module/native/styles/functions/filters.js +70 -0
  254. package/dist/module/native/styles/functions/filters.js.map +1 -0
  255. package/dist/module/native/styles/functions/index.js.map +1 -0
  256. package/dist/module/native/styles/functions/numeric-functions.js.map +1 -0
  257. package/dist/module/native/styles/functions/platform-functions.js.map +1 -0
  258. package/dist/module/native/styles/functions/string-functions.js.map +1 -0
  259. package/dist/module/native/styles/functions/transform-functions.js +114 -0
  260. package/dist/module/native/styles/functions/transform-functions.js.map +1 -0
  261. package/dist/module/native/styles/index.js +110 -0
  262. package/dist/module/native/styles/index.js.map +1 -0
  263. package/dist/module/native/styles/line-height.js.map +1 -0
  264. package/dist/module/native/styles/resolve.js +102 -0
  265. package/dist/module/native/styles/resolve.js.map +1 -0
  266. package/dist/module/native/styles/shorthands/_handler.js +74 -0
  267. package/dist/module/native/styles/shorthands/_handler.js.map +1 -0
  268. package/dist/module/native/styles/shorthands/animation.js +54 -0
  269. package/dist/module/native/styles/shorthands/animation.js.map +1 -0
  270. package/dist/module/native/styles/shorthands/border.js.map +1 -0
  271. package/dist/module/native/styles/shorthands/box-shadow.js +43 -0
  272. package/dist/module/native/styles/shorthands/box-shadow.js.map +1 -0
  273. package/dist/module/native/styles/shorthands/index.js.map +1 -0
  274. package/dist/module/native/styles/shorthands/text-shadow.js.map +1 -0
  275. package/dist/module/native/styles/shorthands/transform.js.map +1 -0
  276. package/dist/module/native/styles/units.js.map +1 -0
  277. package/dist/module/native/styles/variables.js +75 -0
  278. package/dist/module/native/styles/variables.js.map +1 -0
  279. package/dist/module/native-internal/README.md +11 -0
  280. package/dist/module/native-internal/index.js +6 -0
  281. package/dist/module/native-internal/index.js.map +1 -0
  282. package/dist/module/native-internal/root.js +30 -0
  283. package/dist/module/native-internal/root.js.map +1 -0
  284. package/dist/module/native-internal/style-collection.js +95 -0
  285. package/dist/module/native-internal/style-collection.js.map +1 -0
  286. package/dist/module/native-internal/variables.js +22 -0
  287. package/dist/module/native-internal/variables.js.map +1 -0
  288. package/dist/module/runtime.js.map +1 -0
  289. package/dist/module/runtime.native.js.map +1 -0
  290. package/dist/module/runtime.types.js.map +1 -0
  291. package/dist/module/utilities/dot-notation.types.js.map +1 -0
  292. package/dist/module/utilities/index.js +6 -0
  293. package/dist/module/utilities/index.js.map +1 -0
  294. package/dist/module/utilities/specificity.js.map +1 -0
  295. package/dist/module/utilities/style-descriptor.js +16 -0
  296. package/dist/module/utilities/style-descriptor.js.map +1 -0
  297. package/dist/module/web/api.js.map +1 -0
  298. package/dist/module/web/assign-style.js.map +1 -0
  299. package/dist/module/web/index.js.map +1 -0
  300. package/dist/module/web/metro.js.map +1 -0
  301. package/dist/typescript/commonjs/.config/eslint.config.d.mts +3 -0
  302. package/dist/typescript/commonjs/.config/eslint.config.d.mts.map +1 -0
  303. package/dist/typescript/commonjs/eslint.config.d.mts +2 -0
  304. package/dist/typescript/commonjs/eslint.config.d.mts.map +1 -0
  305. package/dist/typescript/commonjs/example/app.config.d.ts.map +1 -1
  306. package/dist/typescript/commonjs/example/index.d.ts +2 -0
  307. package/dist/typescript/commonjs/example/index.d.ts.map +1 -0
  308. package/dist/typescript/commonjs/example/metro.config.d.ts +3 -0
  309. package/dist/typescript/commonjs/example/metro.config.d.ts.map +1 -0
  310. package/dist/typescript/commonjs/example/postcss.config.d.mts +7 -0
  311. package/dist/typescript/commonjs/example/postcss.config.d.mts.map +1 -0
  312. package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -1
  313. package/dist/typescript/commonjs/src/compiler/atRules.d.ts +1 -1
  314. package/dist/typescript/commonjs/src/compiler/atRules.d.ts.map +1 -1
  315. package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -1
  316. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +11 -7
  317. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -1
  318. package/dist/typescript/commonjs/src/compiler/declarations.d.ts +6 -6
  319. package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -1
  320. package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts +4 -0
  321. package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts.map +1 -0
  322. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts +1 -1
  323. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts.map +1 -1
  324. package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts +30 -0
  325. package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts.map +1 -0
  326. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts +1 -1
  327. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -1
  328. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +2 -1
  329. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -1
  330. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +3 -10
  331. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -1
  332. package/dist/typescript/commonjs/src/components/Button.d.ts +3 -10
  333. package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -1
  334. package/dist/typescript/commonjs/src/components/FlatList.d.ts +3 -7
  335. package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -1
  336. package/dist/typescript/commonjs/src/components/Image.d.ts +3 -5
  337. package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -1
  338. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts +6 -0
  339. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts.map +1 -0
  340. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts +6 -0
  341. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts.map +1 -0
  342. package/dist/typescript/commonjs/src/components/Pressable.d.ts +6 -0
  343. package/dist/typescript/commonjs/src/components/Pressable.d.ts.map +1 -0
  344. package/dist/typescript/commonjs/src/components/ScrollView.d.ts +6 -0
  345. package/dist/typescript/commonjs/src/components/ScrollView.d.ts.map +1 -0
  346. package/dist/typescript/commonjs/src/components/Text.d.ts +2 -2
  347. package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -1
  348. package/dist/typescript/commonjs/src/components/TextInput.d.ts +3 -5
  349. package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -1
  350. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts +6 -0
  351. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts.map +1 -0
  352. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts +6 -0
  353. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts.map +1 -0
  354. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts +6 -0
  355. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
  356. package/dist/typescript/commonjs/src/components/View.d.ts +2 -2
  357. package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -1
  358. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts +6 -0
  359. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts.map +1 -0
  360. package/dist/typescript/commonjs/src/components/index.d.cts +2 -0
  361. package/dist/typescript/commonjs/src/components/index.d.cts.map +1 -0
  362. package/dist/typescript/commonjs/src/components/index.d.ts +8 -0
  363. package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -1
  364. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts.map +1 -1
  365. package/dist/typescript/commonjs/src/index.d.ts +0 -1
  366. package/dist/typescript/commonjs/src/index.d.ts.map +1 -1
  367. package/dist/typescript/commonjs/src/jest/index.d.ts +1 -1
  368. package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -1
  369. package/dist/typescript/commonjs/src/metro/index.d.ts +1 -1
  370. package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -1
  371. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -1
  372. package/dist/typescript/commonjs/src/metro/override.d.ts +2 -0
  373. package/dist/typescript/commonjs/src/metro/override.d.ts.map +1 -0
  374. package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -1
  375. package/dist/typescript/commonjs/src/native/api.d.ts +26 -0
  376. package/dist/typescript/commonjs/src/native/api.d.ts.map +1 -0
  377. package/dist/typescript/commonjs/src/native/conditions/attributes.d.ts +4 -0
  378. package/dist/typescript/commonjs/src/native/conditions/attributes.d.ts.map +1 -0
  379. package/dist/typescript/commonjs/src/native/conditions/container-query.d.ts +7 -0
  380. package/dist/typescript/commonjs/src/native/conditions/container-query.d.ts.map +1 -0
  381. package/dist/typescript/commonjs/src/native/conditions/guards.d.ts.map +1 -0
  382. package/dist/typescript/commonjs/src/native/conditions/index.d.ts +6 -0
  383. package/dist/typescript/commonjs/src/native/conditions/index.d.ts.map +1 -0
  384. package/dist/typescript/commonjs/src/native/conditions/media-query.d.ts +4 -0
  385. package/dist/typescript/commonjs/src/native/conditions/media-query.d.ts.map +1 -0
  386. package/dist/typescript/commonjs/src/native/index.d.ts +4 -0
  387. package/dist/typescript/commonjs/src/native/index.d.ts.map +1 -0
  388. package/dist/typescript/commonjs/src/native/objects.d.ts.map +1 -0
  389. package/dist/typescript/commonjs/src/native/react/interaction.d.ts.map +1 -0
  390. package/dist/typescript/commonjs/src/native/react/rules.d.ts.map +1 -0
  391. package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts.map +1 -0
  392. package/dist/typescript/commonjs/src/native/react/usePassthrough.d.ts.map +1 -0
  393. package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts +2 -0
  394. package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts.map +1 -0
  395. package/dist/typescript/commonjs/src/native/reactivity.d.ts +52 -0
  396. package/dist/typescript/commonjs/src/native/reactivity.d.ts.map +1 -0
  397. package/dist/typescript/commonjs/src/native/reanimated.d.ts.map +1 -0
  398. package/dist/typescript/commonjs/src/native/styles/calculate-props.d.ts +10 -0
  399. package/dist/typescript/commonjs/src/native/styles/calculate-props.d.ts.map +1 -0
  400. package/dist/typescript/commonjs/src/native/styles/constants.d.ts.map +1 -0
  401. package/dist/typescript/commonjs/src/native/styles/defaults.d.ts.map +1 -0
  402. package/dist/typescript/commonjs/src/native/styles/functions/animation-timing.d.ts.map +1 -0
  403. package/dist/typescript/commonjs/src/native/styles/functions/calc.d.ts.map +1 -0
  404. package/dist/typescript/commonjs/src/native/styles/functions/filters.d.ts.map +1 -0
  405. package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts.map +1 -0
  406. package/dist/typescript/commonjs/src/native/styles/functions/numeric-functions.d.ts.map +1 -0
  407. package/dist/typescript/commonjs/src/native/styles/functions/platform-functions.d.ts.map +1 -0
  408. package/dist/typescript/commonjs/src/native/styles/functions/string-functions.d.ts.map +1 -0
  409. package/dist/typescript/commonjs/src/native/styles/functions/transform-functions.d.ts.map +1 -0
  410. package/dist/typescript/commonjs/src/native/styles/index.d.ts +19 -0
  411. package/dist/typescript/commonjs/src/native/styles/index.d.ts.map +1 -0
  412. package/dist/typescript/commonjs/src/native/styles/line-height.d.ts.map +1 -0
  413. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts +18 -0
  414. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts.map +1 -0
  415. package/dist/typescript/commonjs/src/native/styles/shorthands/_handler.d.ts.map +1 -0
  416. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts +5 -0
  417. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts.map +1 -0
  418. package/dist/typescript/commonjs/src/native/styles/shorthands/border.d.ts.map +1 -0
  419. package/dist/typescript/commonjs/src/native/styles/shorthands/box-shadow.d.ts.map +1 -0
  420. package/dist/typescript/commonjs/src/native/styles/shorthands/index.d.ts.map +1 -0
  421. package/dist/typescript/commonjs/src/native/styles/shorthands/text-shadow.d.ts.map +1 -0
  422. package/dist/typescript/commonjs/src/native/styles/shorthands/transform.d.ts.map +1 -0
  423. package/dist/typescript/commonjs/src/native/styles/units.d.ts.map +1 -0
  424. package/dist/typescript/commonjs/src/native/styles/variables.d.ts +5 -0
  425. package/dist/typescript/commonjs/src/native/styles/variables.d.ts.map +1 -0
  426. package/dist/typescript/commonjs/src/native-internal/index.d.ts +4 -0
  427. package/dist/typescript/commonjs/src/native-internal/index.d.ts.map +1 -0
  428. package/dist/typescript/commonjs/src/native-internal/root.d.ts +11 -0
  429. package/dist/typescript/commonjs/src/native-internal/root.d.ts.map +1 -0
  430. package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts +16 -0
  431. package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts.map +1 -0
  432. package/dist/typescript/commonjs/src/native-internal/variables.d.ts +8 -0
  433. package/dist/typescript/commonjs/src/native-internal/variables.d.ts.map +1 -0
  434. package/dist/typescript/commonjs/src/runtime.d.ts.map +1 -0
  435. package/dist/typescript/commonjs/src/runtime.native.d.ts.map +1 -0
  436. package/dist/typescript/commonjs/src/runtime.types.d.ts +49 -0
  437. package/dist/typescript/commonjs/src/runtime.types.d.ts.map +1 -0
  438. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts.map +1 -0
  439. package/dist/typescript/commonjs/src/utilities/index.d.ts +4 -0
  440. package/dist/typescript/commonjs/src/utilities/index.d.ts.map +1 -0
  441. package/dist/typescript/commonjs/src/utilities/specificity.d.ts +13 -0
  442. package/dist/typescript/commonjs/src/utilities/specificity.d.ts.map +1 -0
  443. package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts +4 -0
  444. package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts.map +1 -0
  445. package/dist/typescript/commonjs/src/web/api.d.ts +16 -0
  446. package/dist/typescript/commonjs/src/web/api.d.ts.map +1 -0
  447. package/dist/typescript/commonjs/src/web/assign-style.d.ts.map +1 -0
  448. package/dist/typescript/commonjs/src/web/index.d.ts.map +1 -0
  449. package/dist/typescript/commonjs/src/web/metro.d.ts.map +1 -0
  450. package/dist/typescript/module/.config/eslint.config.d.mts +3 -0
  451. package/dist/typescript/module/.config/eslint.config.d.mts.map +1 -0
  452. package/dist/typescript/module/eslint.config.d.mts +2 -0
  453. package/dist/typescript/module/eslint.config.d.mts.map +1 -0
  454. package/dist/typescript/module/example/app.config.d.ts.map +1 -1
  455. package/dist/typescript/module/example/index.d.ts +2 -0
  456. package/dist/typescript/module/example/index.d.ts.map +1 -0
  457. package/dist/typescript/module/example/metro.config.d.ts +3 -0
  458. package/dist/typescript/module/example/metro.config.d.ts.map +1 -0
  459. package/dist/typescript/module/example/postcss.config.d.mts +7 -0
  460. package/dist/typescript/module/example/postcss.config.d.mts.map +1 -0
  461. package/dist/typescript/module/example/src/App.d.ts.map +1 -1
  462. package/dist/typescript/module/src/compiler/atRules.d.ts +1 -1
  463. package/dist/typescript/module/src/compiler/atRules.d.ts.map +1 -1
  464. package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -1
  465. package/dist/typescript/module/src/compiler/compiler.types.d.ts +11 -7
  466. package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -1
  467. package/dist/typescript/module/src/compiler/declarations.d.ts +6 -6
  468. package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -1
  469. package/dist/typescript/module/src/compiler/inline-variables.d.ts +4 -0
  470. package/dist/typescript/module/src/compiler/inline-variables.d.ts.map +1 -0
  471. package/dist/typescript/module/src/compiler/keyframes.d.ts +1 -1
  472. package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -1
  473. package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts +30 -0
  474. package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts.map +1 -0
  475. package/dist/typescript/module/src/compiler/selector-builder.d.ts +1 -1
  476. package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -1
  477. package/dist/typescript/module/src/compiler/stylesheet.d.ts +2 -1
  478. package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -1
  479. package/dist/typescript/module/src/components/ActivityIndicator.d.ts +3 -10
  480. package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -1
  481. package/dist/typescript/module/src/components/Button.d.ts +3 -10
  482. package/dist/typescript/module/src/components/Button.d.ts.map +1 -1
  483. package/dist/typescript/module/src/components/FlatList.d.ts +3 -7
  484. package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -1
  485. package/dist/typescript/module/src/components/Image.d.ts +3 -5
  486. package/dist/typescript/module/src/components/Image.d.ts.map +1 -1
  487. package/dist/typescript/module/src/components/ImageBackground.d.ts +6 -0
  488. package/dist/typescript/module/src/components/ImageBackground.d.ts.map +1 -0
  489. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts +6 -0
  490. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts.map +1 -0
  491. package/dist/typescript/module/src/components/Pressable.d.ts +6 -0
  492. package/dist/typescript/module/src/components/Pressable.d.ts.map +1 -0
  493. package/dist/typescript/module/src/components/ScrollView.d.ts +6 -0
  494. package/dist/typescript/module/src/components/ScrollView.d.ts.map +1 -0
  495. package/dist/typescript/module/src/components/Text.d.ts +2 -2
  496. package/dist/typescript/module/src/components/Text.d.ts.map +1 -1
  497. package/dist/typescript/module/src/components/TextInput.d.ts +3 -5
  498. package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -1
  499. package/dist/typescript/module/src/components/TouchableHighlight.d.ts +6 -0
  500. package/dist/typescript/module/src/components/TouchableHighlight.d.ts.map +1 -0
  501. package/dist/typescript/module/src/components/TouchableOpacity.d.ts +6 -0
  502. package/dist/typescript/module/src/components/TouchableOpacity.d.ts.map +1 -0
  503. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts +6 -0
  504. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
  505. package/dist/typescript/module/src/components/View.d.ts +2 -2
  506. package/dist/typescript/module/src/components/View.d.ts.map +1 -1
  507. package/dist/typescript/module/src/components/VirtualizedList.d.ts +6 -0
  508. package/dist/typescript/module/src/components/VirtualizedList.d.ts.map +1 -0
  509. package/dist/typescript/module/src/components/index.d.cts +2 -0
  510. package/dist/typescript/module/src/components/index.d.cts.map +1 -0
  511. package/dist/typescript/module/src/components/index.d.ts +8 -0
  512. package/dist/typescript/module/src/components/index.d.ts.map +1 -1
  513. package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts.map +1 -1
  514. package/dist/typescript/module/src/index.d.ts +0 -1
  515. package/dist/typescript/module/src/index.d.ts.map +1 -1
  516. package/dist/typescript/module/src/jest/index.d.ts +1 -1
  517. package/dist/typescript/module/src/jest/index.d.ts.map +1 -1
  518. package/dist/typescript/module/src/metro/index.d.ts +1 -1
  519. package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
  520. package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -1
  521. package/dist/typescript/module/src/metro/override.d.ts +2 -0
  522. package/dist/typescript/module/src/metro/override.d.ts.map +1 -0
  523. package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -1
  524. package/dist/typescript/module/src/native/api.d.ts +26 -0
  525. package/dist/typescript/module/src/native/api.d.ts.map +1 -0
  526. package/dist/typescript/module/src/native/conditions/attributes.d.ts +4 -0
  527. package/dist/typescript/module/src/native/conditions/attributes.d.ts.map +1 -0
  528. package/dist/typescript/module/src/native/conditions/container-query.d.ts +7 -0
  529. package/dist/typescript/module/src/native/conditions/container-query.d.ts.map +1 -0
  530. package/dist/typescript/module/src/native/conditions/guards.d.ts.map +1 -0
  531. package/dist/typescript/module/src/native/conditions/index.d.ts +6 -0
  532. package/dist/typescript/module/src/native/conditions/index.d.ts.map +1 -0
  533. package/dist/typescript/module/src/native/conditions/media-query.d.ts +4 -0
  534. package/dist/typescript/module/src/native/conditions/media-query.d.ts.map +1 -0
  535. package/dist/typescript/module/src/native/index.d.ts +4 -0
  536. package/dist/typescript/module/src/native/index.d.ts.map +1 -0
  537. package/dist/typescript/module/src/native/objects.d.ts.map +1 -0
  538. package/dist/typescript/module/src/native/react/interaction.d.ts.map +1 -0
  539. package/dist/typescript/module/src/native/react/rules.d.ts.map +1 -0
  540. package/dist/typescript/module/src/native/react/useNativeCss.d.ts.map +1 -0
  541. package/dist/typescript/module/src/native/react/usePassthrough.d.ts.map +1 -0
  542. package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts +2 -0
  543. package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts.map +1 -0
  544. package/dist/typescript/module/src/native/reactivity.d.ts +52 -0
  545. package/dist/typescript/module/src/native/reactivity.d.ts.map +1 -0
  546. package/dist/typescript/module/src/native/reanimated.d.ts.map +1 -0
  547. package/dist/typescript/module/src/native/styles/calculate-props.d.ts +10 -0
  548. package/dist/typescript/module/src/native/styles/calculate-props.d.ts.map +1 -0
  549. package/dist/typescript/module/src/native/styles/constants.d.ts.map +1 -0
  550. package/dist/typescript/module/src/native/styles/defaults.d.ts.map +1 -0
  551. package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts.map +1 -0
  552. package/dist/typescript/module/src/native/styles/functions/calc.d.ts.map +1 -0
  553. package/dist/typescript/module/src/native/styles/functions/filters.d.ts.map +1 -0
  554. package/dist/typescript/module/src/native/styles/functions/index.d.ts.map +1 -0
  555. package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts.map +1 -0
  556. package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts.map +1 -0
  557. package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts.map +1 -0
  558. package/dist/typescript/module/src/native/styles/functions/transform-functions.d.ts.map +1 -0
  559. package/dist/typescript/module/src/native/styles/index.d.ts +19 -0
  560. package/dist/typescript/module/src/native/styles/index.d.ts.map +1 -0
  561. package/dist/typescript/module/src/native/styles/line-height.d.ts.map +1 -0
  562. package/dist/typescript/module/src/native/styles/resolve.d.ts +18 -0
  563. package/dist/typescript/module/src/native/styles/resolve.d.ts.map +1 -0
  564. package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts.map +1 -0
  565. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts +5 -0
  566. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts.map +1 -0
  567. package/dist/typescript/module/src/native/styles/shorthands/border.d.ts.map +1 -0
  568. package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts.map +1 -0
  569. package/dist/typescript/module/src/native/styles/shorthands/index.d.ts.map +1 -0
  570. package/dist/typescript/module/src/native/styles/shorthands/text-shadow.d.ts.map +1 -0
  571. package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts.map +1 -0
  572. package/dist/typescript/module/src/native/styles/units.d.ts.map +1 -0
  573. package/dist/typescript/module/src/native/styles/variables.d.ts +5 -0
  574. package/dist/typescript/module/src/native/styles/variables.d.ts.map +1 -0
  575. package/dist/typescript/module/src/native-internal/index.d.ts +4 -0
  576. package/dist/typescript/module/src/native-internal/index.d.ts.map +1 -0
  577. package/dist/typescript/module/src/native-internal/root.d.ts +11 -0
  578. package/dist/typescript/module/src/native-internal/root.d.ts.map +1 -0
  579. package/dist/typescript/module/src/native-internal/style-collection.d.ts +16 -0
  580. package/dist/typescript/module/src/native-internal/style-collection.d.ts.map +1 -0
  581. package/dist/typescript/module/src/native-internal/variables.d.ts +8 -0
  582. package/dist/typescript/module/src/native-internal/variables.d.ts.map +1 -0
  583. package/dist/typescript/module/src/runtime.d.ts.map +1 -0
  584. package/dist/typescript/module/src/runtime.native.d.ts.map +1 -0
  585. package/dist/typescript/module/src/runtime.types.d.ts +49 -0
  586. package/dist/typescript/module/src/runtime.types.d.ts.map +1 -0
  587. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts.map +1 -0
  588. package/dist/typescript/module/src/utilities/index.d.ts +4 -0
  589. package/dist/typescript/module/src/utilities/index.d.ts.map +1 -0
  590. package/dist/typescript/module/src/utilities/specificity.d.ts +13 -0
  591. package/dist/typescript/module/src/utilities/specificity.d.ts.map +1 -0
  592. package/dist/typescript/module/src/utilities/style-descriptor.d.ts +4 -0
  593. package/dist/typescript/module/src/utilities/style-descriptor.d.ts.map +1 -0
  594. package/dist/typescript/module/src/web/api.d.ts +16 -0
  595. package/dist/typescript/module/src/web/api.d.ts.map +1 -0
  596. package/dist/typescript/module/src/web/assign-style.d.ts.map +1 -0
  597. package/dist/typescript/module/src/web/index.d.ts.map +1 -0
  598. package/dist/typescript/module/src/web/metro.d.ts.map +1 -0
  599. package/package.json +84 -55
  600. package/src/compiler/atRules.ts +32 -43
  601. package/src/compiler/compiler.ts +115 -42
  602. package/src/compiler/compiler.types.ts +16 -7
  603. package/src/compiler/declarations.ts +88 -87
  604. package/src/compiler/inline-variables.ts +209 -0
  605. package/src/compiler/keyframes.ts +2 -2
  606. package/src/compiler/lightningcss-loader.ts +40 -0
  607. package/src/compiler/pseudo-elements.ts +1 -1
  608. package/src/compiler/selector-builder.ts +14 -8
  609. package/src/compiler/selectors.ts +1 -1
  610. package/src/compiler/stylesheet.ts +10 -17
  611. package/src/components/ActivityIndicator.tsx +2 -2
  612. package/src/components/Button.tsx +2 -2
  613. package/src/components/FlatList.tsx +6 -5
  614. package/src/components/Image.tsx +2 -2
  615. package/src/components/ImageBackground.tsx +27 -0
  616. package/src/components/KeyboardAvoidingView.tsx +24 -0
  617. package/src/components/Pressable.tsx +17 -0
  618. package/src/components/ScrollView.tsx +20 -0
  619. package/src/components/Text.tsx +1 -1
  620. package/src/components/TextInput.tsx +8 -3
  621. package/src/components/TouchableHighlight.tsx +22 -0
  622. package/src/components/TouchableOpacity.tsx +22 -0
  623. package/src/components/TouchableWithoutFeedback.tsx +22 -0
  624. package/src/components/View.tsx +1 -1
  625. package/src/components/VirtualizedList.tsx +25 -0
  626. package/src/components/index.cts +263 -0
  627. package/src/components/index.ts +17 -0
  628. package/src/components/react-native-safe-area-context.native.tsx +7 -3
  629. package/src/index.ts +0 -2
  630. package/src/jest/index.ts +6 -5
  631. package/src/metro/index.ts +10 -166
  632. package/src/metro/injection-code.ts +1 -1
  633. package/src/metro/metro-transformer.ts +15 -1
  634. package/src/metro/override.ts +1 -0
  635. package/src/metro/resolver.ts +20 -26
  636. package/src/native/api.tsx +120 -0
  637. package/src/native/conditions/attributes.ts +54 -0
  638. package/src/native/conditions/container-query.ts +162 -0
  639. package/src/native/conditions/index.ts +55 -0
  640. package/src/native/conditions/media-query.ts +99 -0
  641. package/src/native/index.ts +3 -0
  642. package/src/native/react/rules.ts +336 -0
  643. package/src/native/react/useNativeCss.ts +204 -0
  644. package/src/native/reactivity.ts +248 -0
  645. package/src/native/styles/calculate-props.ts +217 -0
  646. package/src/native/styles/functions/filters.ts +99 -0
  647. package/src/native/styles/functions/transform-functions.ts +85 -0
  648. package/src/native/styles/index.ts +198 -0
  649. package/src/native/styles/resolve.ts +164 -0
  650. package/src/native/styles/shorthands/_handler.ts +122 -0
  651. package/src/native/styles/shorthands/animation.ts +131 -0
  652. package/src/native/styles/shorthands/box-shadow.ts +71 -0
  653. package/src/native/styles/variables.ts +88 -0
  654. package/src/native-internal/README.md +11 -0
  655. package/src/native-internal/index.ts +3 -0
  656. package/src/native-internal/root.ts +44 -0
  657. package/src/native-internal/style-collection.ts +148 -0
  658. package/src/native-internal/variables.tsx +36 -0
  659. package/src/runtime.types.ts +150 -0
  660. package/src/utilities/index.ts +3 -0
  661. package/src/utilities/specificity.ts +45 -0
  662. package/src/utilities/style-descriptor.ts +24 -0
  663. package/src/web/api.tsx +115 -0
  664. package/dist/commonjs/poison.pill.js +0 -39
  665. package/dist/commonjs/poison.pill.js.map +0 -1
  666. package/dist/commonjs/runtime/index.js +0 -17
  667. package/dist/commonjs/runtime/index.js.map +0 -1
  668. package/dist/commonjs/runtime/native/api.js +0 -115
  669. package/dist/commonjs/runtime/native/api.js.map +0 -1
  670. package/dist/commonjs/runtime/native/conditions/attributes.js +0 -42
  671. package/dist/commonjs/runtime/native/conditions/attributes.js.map +0 -1
  672. package/dist/commonjs/runtime/native/conditions/container-query.js.map +0 -1
  673. package/dist/commonjs/runtime/native/conditions/guards.js.map +0 -1
  674. package/dist/commonjs/runtime/native/conditions/index.js.map +0 -1
  675. package/dist/commonjs/runtime/native/conditions/media-query.js.map +0 -1
  676. package/dist/commonjs/runtime/native/index.js +0 -28
  677. package/dist/commonjs/runtime/native/index.js.map +0 -1
  678. package/dist/commonjs/runtime/native/metro.js.map +0 -1
  679. package/dist/commonjs/runtime/native/react/interaction.js.map +0 -1
  680. package/dist/commonjs/runtime/native/react/rules.js +0 -259
  681. package/dist/commonjs/runtime/native/react/rules.js.map +0 -1
  682. package/dist/commonjs/runtime/native/react/useNativeCss.js +0 -159
  683. package/dist/commonjs/runtime/native/react/useNativeCss.js.map +0 -1
  684. package/dist/commonjs/runtime/native/react/usePassthrough.js.map +0 -1
  685. package/dist/commonjs/runtime/native/reactivity.js +0 -185
  686. package/dist/commonjs/runtime/native/reactivity.js.map +0 -1
  687. package/dist/commonjs/runtime/native/reanimated.js.map +0 -1
  688. package/dist/commonjs/runtime/native/styles/calculate-props.js +0 -148
  689. package/dist/commonjs/runtime/native/styles/calculate-props.js.map +0 -1
  690. package/dist/commonjs/runtime/native/styles/constants.js.map +0 -1
  691. package/dist/commonjs/runtime/native/styles/defaults.js.map +0 -1
  692. package/dist/commonjs/runtime/native/styles/functions/animation-timing.js.map +0 -1
  693. package/dist/commonjs/runtime/native/styles/functions/calc.js.map +0 -1
  694. package/dist/commonjs/runtime/native/styles/functions/filters.js +0 -84
  695. package/dist/commonjs/runtime/native/styles/functions/filters.js.map +0 -1
  696. package/dist/commonjs/runtime/native/styles/functions/index.js.map +0 -1
  697. package/dist/commonjs/runtime/native/styles/functions/numeric-functions.js.map +0 -1
  698. package/dist/commonjs/runtime/native/styles/functions/platform-functions.js.map +0 -1
  699. package/dist/commonjs/runtime/native/styles/functions/string-functions.js.map +0 -1
  700. package/dist/commonjs/runtime/native/styles/functions/transform-functions.js +0 -121
  701. package/dist/commonjs/runtime/native/styles/functions/transform-functions.js.map +0 -1
  702. package/dist/commonjs/runtime/native/styles/index.js +0 -115
  703. package/dist/commonjs/runtime/native/styles/index.js.map +0 -1
  704. package/dist/commonjs/runtime/native/styles/line-height.js.map +0 -1
  705. package/dist/commonjs/runtime/native/styles/resolve.js +0 -108
  706. package/dist/commonjs/runtime/native/styles/resolve.js.map +0 -1
  707. package/dist/commonjs/runtime/native/styles/shorthands/_handler.js +0 -79
  708. package/dist/commonjs/runtime/native/styles/shorthands/_handler.js.map +0 -1
  709. package/dist/commonjs/runtime/native/styles/shorthands/animation.js +0 -57
  710. package/dist/commonjs/runtime/native/styles/shorthands/animation.js.map +0 -1
  711. package/dist/commonjs/runtime/native/styles/shorthands/border.js.map +0 -1
  712. package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js +0 -58
  713. package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js.map +0 -1
  714. package/dist/commonjs/runtime/native/styles/shorthands/index.js.map +0 -1
  715. package/dist/commonjs/runtime/native/styles/shorthands/text-shadow.js.map +0 -1
  716. package/dist/commonjs/runtime/native/styles/shorthands/transform.js.map +0 -1
  717. package/dist/commonjs/runtime/native/styles/units.js.map +0 -1
  718. package/dist/commonjs/runtime/native/styles/variables.js +0 -79
  719. package/dist/commonjs/runtime/native/styles/variables.js.map +0 -1
  720. package/dist/commonjs/runtime/runtime.js.map +0 -1
  721. package/dist/commonjs/runtime/runtime.native.js.map +0 -1
  722. package/dist/commonjs/runtime/runtime.types.js.map +0 -1
  723. package/dist/commonjs/runtime/utils/components.js +0 -18
  724. package/dist/commonjs/runtime/utils/components.js.map +0 -1
  725. package/dist/commonjs/runtime/utils/dot-notation.types.js.map +0 -1
  726. package/dist/commonjs/runtime/utils/index.js +0 -61
  727. package/dist/commonjs/runtime/utils/index.js.map +0 -1
  728. package/dist/commonjs/runtime/utils/objects.js.map +0 -1
  729. package/dist/commonjs/runtime/utils/specificity.js.map +0 -1
  730. package/dist/commonjs/runtime/utils/style-value.js +0 -21
  731. package/dist/commonjs/runtime/utils/style-value.js.map +0 -1
  732. package/dist/commonjs/runtime/utils/utils.types.js +0 -6
  733. package/dist/commonjs/runtime/utils/utils.types.js.map +0 -1
  734. package/dist/commonjs/runtime/web/api.js.map +0 -1
  735. package/dist/commonjs/runtime/web/assign-style.js.map +0 -1
  736. package/dist/commonjs/runtime/web/index.js.map +0 -1
  737. package/dist/commonjs/runtime/web/metro.js +0 -6
  738. package/dist/commonjs/runtime/web/metro.js.map +0 -1
  739. package/dist/commonjs/style-collection/index.js +0 -110
  740. package/dist/commonjs/style-collection/index.js.map +0 -1
  741. package/dist/commonjs/style-collection/root.js +0 -29
  742. package/dist/commonjs/style-collection/root.js.map +0 -1
  743. package/dist/module/poison.pill.js +0 -37
  744. package/dist/module/poison.pill.js.map +0 -1
  745. package/dist/module/runtime/index.js +0 -9
  746. package/dist/module/runtime/index.js.map +0 -1
  747. package/dist/module/runtime/native/api.js +0 -94
  748. package/dist/module/runtime/native/api.js.map +0 -1
  749. package/dist/module/runtime/native/conditions/attributes.js +0 -38
  750. package/dist/module/runtime/native/conditions/attributes.js.map +0 -1
  751. package/dist/module/runtime/native/conditions/container-query.js.map +0 -1
  752. package/dist/module/runtime/native/conditions/guards.js.map +0 -1
  753. package/dist/module/runtime/native/conditions/index.js.map +0 -1
  754. package/dist/module/runtime/native/conditions/media-query.js.map +0 -1
  755. package/dist/module/runtime/native/index.js +0 -5
  756. package/dist/module/runtime/native/index.js.map +0 -1
  757. package/dist/module/runtime/native/metro.js.map +0 -1
  758. package/dist/module/runtime/native/react/interaction.js.map +0 -1
  759. package/dist/module/runtime/native/react/rules.js +0 -251
  760. package/dist/module/runtime/native/react/rules.js.map +0 -1
  761. package/dist/module/runtime/native/react/useNativeCss.js +0 -153
  762. package/dist/module/runtime/native/react/useNativeCss.js.map +0 -1
  763. package/dist/module/runtime/native/react/usePassthrough.js.map +0 -1
  764. package/dist/module/runtime/native/reactivity.js +0 -173
  765. package/dist/module/runtime/native/reactivity.js.map +0 -1
  766. package/dist/module/runtime/native/reanimated.js.map +0 -1
  767. package/dist/module/runtime/native/styles/calculate-props.js +0 -143
  768. package/dist/module/runtime/native/styles/calculate-props.js.map +0 -1
  769. package/dist/module/runtime/native/styles/constants.js.map +0 -1
  770. package/dist/module/runtime/native/styles/defaults.js.map +0 -1
  771. package/dist/module/runtime/native/styles/functions/animation-timing.js.map +0 -1
  772. package/dist/module/runtime/native/styles/functions/calc.js.map +0 -1
  773. package/dist/module/runtime/native/styles/functions/filters.js +0 -70
  774. package/dist/module/runtime/native/styles/functions/filters.js.map +0 -1
  775. package/dist/module/runtime/native/styles/functions/index.js.map +0 -1
  776. package/dist/module/runtime/native/styles/functions/numeric-functions.js.map +0 -1
  777. package/dist/module/runtime/native/styles/functions/platform-functions.js.map +0 -1
  778. package/dist/module/runtime/native/styles/functions/string-functions.js.map +0 -1
  779. package/dist/module/runtime/native/styles/functions/transform-functions.js +0 -114
  780. package/dist/module/runtime/native/styles/functions/transform-functions.js.map +0 -1
  781. package/dist/module/runtime/native/styles/index.js +0 -110
  782. package/dist/module/runtime/native/styles/index.js.map +0 -1
  783. package/dist/module/runtime/native/styles/line-height.js.map +0 -1
  784. package/dist/module/runtime/native/styles/resolve.js +0 -103
  785. package/dist/module/runtime/native/styles/resolve.js.map +0 -1
  786. package/dist/module/runtime/native/styles/shorthands/_handler.js +0 -74
  787. package/dist/module/runtime/native/styles/shorthands/_handler.js.map +0 -1
  788. package/dist/module/runtime/native/styles/shorthands/animation.js +0 -51
  789. package/dist/module/runtime/native/styles/shorthands/animation.js.map +0 -1
  790. package/dist/module/runtime/native/styles/shorthands/border.js.map +0 -1
  791. package/dist/module/runtime/native/styles/shorthands/box-shadow.js +0 -53
  792. package/dist/module/runtime/native/styles/shorthands/box-shadow.js.map +0 -1
  793. package/dist/module/runtime/native/styles/shorthands/index.js.map +0 -1
  794. package/dist/module/runtime/native/styles/shorthands/text-shadow.js.map +0 -1
  795. package/dist/module/runtime/native/styles/shorthands/transform.js.map +0 -1
  796. package/dist/module/runtime/native/styles/units.js.map +0 -1
  797. package/dist/module/runtime/native/styles/variables.js +0 -75
  798. package/dist/module/runtime/native/styles/variables.js.map +0 -1
  799. package/dist/module/runtime/runtime.js.map +0 -1
  800. package/dist/module/runtime/runtime.native.js.map +0 -1
  801. package/dist/module/runtime/runtime.types.js.map +0 -1
  802. package/dist/module/runtime/utils/components.js +0 -14
  803. package/dist/module/runtime/utils/components.js.map +0 -1
  804. package/dist/module/runtime/utils/dot-notation.types.js.map +0 -1
  805. package/dist/module/runtime/utils/index.js +0 -8
  806. package/dist/module/runtime/utils/index.js.map +0 -1
  807. package/dist/module/runtime/utils/objects.js.map +0 -1
  808. package/dist/module/runtime/utils/specificity.js.map +0 -1
  809. package/dist/module/runtime/utils/style-value.js +0 -16
  810. package/dist/module/runtime/utils/style-value.js.map +0 -1
  811. package/dist/module/runtime/utils/utils.types.js +0 -4
  812. package/dist/module/runtime/utils/utils.types.js.map +0 -1
  813. package/dist/module/runtime/web/api.js.map +0 -1
  814. package/dist/module/runtime/web/assign-style.js.map +0 -1
  815. package/dist/module/runtime/web/index.js.map +0 -1
  816. package/dist/module/runtime/web/metro.js +0 -5
  817. package/dist/module/runtime/web/metro.js.map +0 -1
  818. package/dist/module/style-collection/index.js +0 -95
  819. package/dist/module/style-collection/index.js.map +0 -1
  820. package/dist/module/style-collection/root.js +0 -25
  821. package/dist/module/style-collection/root.js.map +0 -1
  822. package/dist/typescript/commonjs/src/poison.pill.d.ts +0 -2
  823. package/dist/typescript/commonjs/src/poison.pill.d.ts.map +0 -1
  824. package/dist/typescript/commonjs/src/runtime/index.d.ts +0 -7
  825. package/dist/typescript/commonjs/src/runtime/index.d.ts.map +0 -1
  826. package/dist/typescript/commonjs/src/runtime/native/api.d.ts +0 -31
  827. package/dist/typescript/commonjs/src/runtime/native/api.d.ts.map +0 -1
  828. package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts +0 -5
  829. package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts.map +0 -1
  830. package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts +0 -7
  831. package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts.map +0 -1
  832. package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts.map +0 -1
  833. package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts +0 -6
  834. package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts.map +0 -1
  835. package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts +0 -4
  836. package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts.map +0 -1
  837. package/dist/typescript/commonjs/src/runtime/native/index.d.ts +0 -4
  838. package/dist/typescript/commonjs/src/runtime/native/index.d.ts.map +0 -1
  839. package/dist/typescript/commonjs/src/runtime/native/metro.d.ts.map +0 -1
  840. package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts.map +0 -1
  841. package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts.map +0 -1
  842. package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts.map +0 -1
  843. package/dist/typescript/commonjs/src/runtime/native/react/usePassthrough.d.ts.map +0 -1
  844. package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts +0 -53
  845. package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts.map +0 -1
  846. package/dist/typescript/commonjs/src/runtime/native/reanimated.d.ts.map +0 -1
  847. package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts +0 -10
  848. package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts.map +0 -1
  849. package/dist/typescript/commonjs/src/runtime/native/styles/constants.d.ts.map +0 -1
  850. package/dist/typescript/commonjs/src/runtime/native/styles/defaults.d.ts.map +0 -1
  851. package/dist/typescript/commonjs/src/runtime/native/styles/functions/animation-timing.d.ts.map +0 -1
  852. package/dist/typescript/commonjs/src/runtime/native/styles/functions/calc.d.ts.map +0 -1
  853. package/dist/typescript/commonjs/src/runtime/native/styles/functions/filters.d.ts.map +0 -1
  854. package/dist/typescript/commonjs/src/runtime/native/styles/functions/index.d.ts.map +0 -1
  855. package/dist/typescript/commonjs/src/runtime/native/styles/functions/numeric-functions.d.ts.map +0 -1
  856. package/dist/typescript/commonjs/src/runtime/native/styles/functions/platform-functions.d.ts.map +0 -1
  857. package/dist/typescript/commonjs/src/runtime/native/styles/functions/string-functions.d.ts.map +0 -1
  858. package/dist/typescript/commonjs/src/runtime/native/styles/functions/transform-functions.d.ts.map +0 -1
  859. package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts +0 -19
  860. package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts.map +0 -1
  861. package/dist/typescript/commonjs/src/runtime/native/styles/line-height.d.ts.map +0 -1
  862. package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts +0 -18
  863. package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts.map +0 -1
  864. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/_handler.d.ts.map +0 -1
  865. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/animation.d.ts +0 -4
  866. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/animation.d.ts.map +0 -1
  867. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/border.d.ts.map +0 -1
  868. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +0 -1
  869. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/index.d.ts.map +0 -1
  870. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +0 -1
  871. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/transform.d.ts.map +0 -1
  872. package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts.map +0 -1
  873. package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts +0 -5
  874. package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts.map +0 -1
  875. package/dist/typescript/commonjs/src/runtime/runtime.d.ts.map +0 -1
  876. package/dist/typescript/commonjs/src/runtime/runtime.native.d.ts.map +0 -1
  877. package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts +0 -47
  878. package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts.map +0 -1
  879. package/dist/typescript/commonjs/src/runtime/utils/components.d.ts +0 -2
  880. package/dist/typescript/commonjs/src/runtime/utils/components.d.ts.map +0 -1
  881. package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts.map +0 -1
  882. package/dist/typescript/commonjs/src/runtime/utils/index.d.ts +0 -6
  883. package/dist/typescript/commonjs/src/runtime/utils/index.d.ts.map +0 -1
  884. package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts.map +0 -1
  885. package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts +0 -13
  886. package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts.map +0 -1
  887. package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts +0 -4
  888. package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts.map +0 -1
  889. package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts +0 -5
  890. package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts.map +0 -1
  891. package/dist/typescript/commonjs/src/runtime/web/api.d.ts +0 -16
  892. package/dist/typescript/commonjs/src/runtime/web/api.d.ts.map +0 -1
  893. package/dist/typescript/commonjs/src/runtime/web/assign-style.d.ts.map +0 -1
  894. package/dist/typescript/commonjs/src/runtime/web/index.d.ts.map +0 -1
  895. package/dist/typescript/commonjs/src/runtime/web/metro.d.ts.map +0 -1
  896. package/dist/typescript/commonjs/src/style-collection/index.d.ts +0 -14
  897. package/dist/typescript/commonjs/src/style-collection/index.d.ts.map +0 -1
  898. package/dist/typescript/commonjs/src/style-collection/root.d.ts +0 -11
  899. package/dist/typescript/commonjs/src/style-collection/root.d.ts.map +0 -1
  900. package/dist/typescript/module/src/poison.pill.d.ts +0 -2
  901. package/dist/typescript/module/src/poison.pill.d.ts.map +0 -1
  902. package/dist/typescript/module/src/runtime/index.d.ts +0 -7
  903. package/dist/typescript/module/src/runtime/index.d.ts.map +0 -1
  904. package/dist/typescript/module/src/runtime/native/api.d.ts +0 -31
  905. package/dist/typescript/module/src/runtime/native/api.d.ts.map +0 -1
  906. package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts +0 -5
  907. package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts.map +0 -1
  908. package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts +0 -7
  909. package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts.map +0 -1
  910. package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts.map +0 -1
  911. package/dist/typescript/module/src/runtime/native/conditions/index.d.ts +0 -6
  912. package/dist/typescript/module/src/runtime/native/conditions/index.d.ts.map +0 -1
  913. package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts +0 -4
  914. package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts.map +0 -1
  915. package/dist/typescript/module/src/runtime/native/index.d.ts +0 -4
  916. package/dist/typescript/module/src/runtime/native/index.d.ts.map +0 -1
  917. package/dist/typescript/module/src/runtime/native/metro.d.ts +0 -2
  918. package/dist/typescript/module/src/runtime/native/metro.d.ts.map +0 -1
  919. package/dist/typescript/module/src/runtime/native/react/interaction.d.ts.map +0 -1
  920. package/dist/typescript/module/src/runtime/native/react/rules.d.ts.map +0 -1
  921. package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts.map +0 -1
  922. package/dist/typescript/module/src/runtime/native/react/usePassthrough.d.ts.map +0 -1
  923. package/dist/typescript/module/src/runtime/native/reactivity.d.ts +0 -53
  924. package/dist/typescript/module/src/runtime/native/reactivity.d.ts.map +0 -1
  925. package/dist/typescript/module/src/runtime/native/reanimated.d.ts.map +0 -1
  926. package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts +0 -10
  927. package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts.map +0 -1
  928. package/dist/typescript/module/src/runtime/native/styles/constants.d.ts.map +0 -1
  929. package/dist/typescript/module/src/runtime/native/styles/defaults.d.ts.map +0 -1
  930. package/dist/typescript/module/src/runtime/native/styles/functions/animation-timing.d.ts.map +0 -1
  931. package/dist/typescript/module/src/runtime/native/styles/functions/calc.d.ts.map +0 -1
  932. package/dist/typescript/module/src/runtime/native/styles/functions/filters.d.ts.map +0 -1
  933. package/dist/typescript/module/src/runtime/native/styles/functions/index.d.ts.map +0 -1
  934. package/dist/typescript/module/src/runtime/native/styles/functions/numeric-functions.d.ts.map +0 -1
  935. package/dist/typescript/module/src/runtime/native/styles/functions/platform-functions.d.ts.map +0 -1
  936. package/dist/typescript/module/src/runtime/native/styles/functions/string-functions.d.ts.map +0 -1
  937. package/dist/typescript/module/src/runtime/native/styles/functions/transform-functions.d.ts.map +0 -1
  938. package/dist/typescript/module/src/runtime/native/styles/index.d.ts +0 -19
  939. package/dist/typescript/module/src/runtime/native/styles/index.d.ts.map +0 -1
  940. package/dist/typescript/module/src/runtime/native/styles/line-height.d.ts.map +0 -1
  941. package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts +0 -18
  942. package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts.map +0 -1
  943. package/dist/typescript/module/src/runtime/native/styles/shorthands/_handler.d.ts.map +0 -1
  944. package/dist/typescript/module/src/runtime/native/styles/shorthands/animation.d.ts +0 -4
  945. package/dist/typescript/module/src/runtime/native/styles/shorthands/animation.d.ts.map +0 -1
  946. package/dist/typescript/module/src/runtime/native/styles/shorthands/border.d.ts.map +0 -1
  947. package/dist/typescript/module/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +0 -1
  948. package/dist/typescript/module/src/runtime/native/styles/shorthands/index.d.ts.map +0 -1
  949. package/dist/typescript/module/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +0 -1
  950. package/dist/typescript/module/src/runtime/native/styles/shorthands/transform.d.ts.map +0 -1
  951. package/dist/typescript/module/src/runtime/native/styles/units.d.ts.map +0 -1
  952. package/dist/typescript/module/src/runtime/native/styles/variables.d.ts +0 -5
  953. package/dist/typescript/module/src/runtime/native/styles/variables.d.ts.map +0 -1
  954. package/dist/typescript/module/src/runtime/runtime.d.ts.map +0 -1
  955. package/dist/typescript/module/src/runtime/runtime.native.d.ts.map +0 -1
  956. package/dist/typescript/module/src/runtime/runtime.types.d.ts +0 -47
  957. package/dist/typescript/module/src/runtime/runtime.types.d.ts.map +0 -1
  958. package/dist/typescript/module/src/runtime/utils/components.d.ts +0 -2
  959. package/dist/typescript/module/src/runtime/utils/components.d.ts.map +0 -1
  960. package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts.map +0 -1
  961. package/dist/typescript/module/src/runtime/utils/index.d.ts +0 -6
  962. package/dist/typescript/module/src/runtime/utils/index.d.ts.map +0 -1
  963. package/dist/typescript/module/src/runtime/utils/objects.d.ts.map +0 -1
  964. package/dist/typescript/module/src/runtime/utils/specificity.d.ts +0 -13
  965. package/dist/typescript/module/src/runtime/utils/specificity.d.ts.map +0 -1
  966. package/dist/typescript/module/src/runtime/utils/style-value.d.ts +0 -4
  967. package/dist/typescript/module/src/runtime/utils/style-value.d.ts.map +0 -1
  968. package/dist/typescript/module/src/runtime/utils/utils.types.d.ts +0 -5
  969. package/dist/typescript/module/src/runtime/utils/utils.types.d.ts.map +0 -1
  970. package/dist/typescript/module/src/runtime/web/api.d.ts +0 -16
  971. package/dist/typescript/module/src/runtime/web/api.d.ts.map +0 -1
  972. package/dist/typescript/module/src/runtime/web/assign-style.d.ts.map +0 -1
  973. package/dist/typescript/module/src/runtime/web/index.d.ts.map +0 -1
  974. package/dist/typescript/module/src/runtime/web/metro.d.ts +0 -2
  975. package/dist/typescript/module/src/runtime/web/metro.d.ts.map +0 -1
  976. package/dist/typescript/module/src/style-collection/index.d.ts +0 -14
  977. package/dist/typescript/module/src/style-collection/index.d.ts.map +0 -1
  978. package/dist/typescript/module/src/style-collection/root.d.ts +0 -11
  979. package/dist/typescript/module/src/style-collection/root.d.ts.map +0 -1
  980. package/src/components/index.tsx +0 -10
  981. package/src/runtime/index.ts +0 -7
  982. package/src/runtime/native/api.tsx +0 -135
  983. package/src/runtime/native/conditions/attributes.ts +0 -52
  984. package/src/runtime/native/conditions/container-query.ts +0 -162
  985. package/src/runtime/native/conditions/index.ts +0 -54
  986. package/src/runtime/native/conditions/media-query.ts +0 -98
  987. package/src/runtime/native/index.ts +0 -4
  988. package/src/runtime/native/react/rules.ts +0 -336
  989. package/src/runtime/native/react/useNativeCss.ts +0 -203
  990. package/src/runtime/native/reactivity.ts +0 -251
  991. package/src/runtime/native/styles/calculate-props.ts +0 -197
  992. package/src/runtime/native/styles/functions/filters.ts +0 -98
  993. package/src/runtime/native/styles/functions/transform-functions.ts +0 -84
  994. package/src/runtime/native/styles/index.ts +0 -197
  995. package/src/runtime/native/styles/resolve.ts +0 -164
  996. package/src/runtime/native/styles/shorthands/_handler.ts +0 -121
  997. package/src/runtime/native/styles/shorthands/animation.ts +0 -123
  998. package/src/runtime/native/styles/shorthands/box-shadow.ts +0 -80
  999. package/src/runtime/native/styles/variables.ts +0 -88
  1000. package/src/runtime/runtime.types.ts +0 -130
  1001. package/src/runtime/utils/components.ts +0 -15
  1002. package/src/runtime/utils/index.ts +0 -5
  1003. package/src/runtime/utils/specificity.ts +0 -45
  1004. package/src/runtime/utils/style-value.ts +0 -24
  1005. package/src/runtime/utils/utils.types.ts +0 -19
  1006. package/src/runtime/web/api.tsx +0 -114
  1007. package/src/runtime/web/metro.ts +0 -2
  1008. package/src/style-collection/index.ts +0 -142
  1009. package/src/style-collection/root.ts +0 -37
  1010. /package/dist/commonjs/{runtime/native → native}/conditions/container-query.js +0 -0
  1011. /package/dist/commonjs/{runtime/native → native}/conditions/guards.js +0 -0
  1012. /package/dist/commonjs/{runtime/native → native}/conditions/index.js +0 -0
  1013. /package/dist/commonjs/{runtime/native → native}/conditions/media-query.js +0 -0
  1014. /package/dist/commonjs/{runtime/utils → native}/objects.js +0 -0
  1015. /package/dist/commonjs/{runtime/native → native}/react/interaction.js +0 -0
  1016. /package/dist/commonjs/{runtime/native → native}/react/usePassthrough.js +0 -0
  1017. /package/dist/commonjs/{runtime/native → native}/reanimated.js +0 -0
  1018. /package/dist/commonjs/{runtime/native → native}/styles/constants.js +0 -0
  1019. /package/dist/commonjs/{runtime/native → native}/styles/defaults.js +0 -0
  1020. /package/dist/commonjs/{runtime/native → native}/styles/functions/animation-timing.js +0 -0
  1021. /package/dist/commonjs/{runtime/native → native}/styles/functions/calc.js +0 -0
  1022. /package/dist/commonjs/{runtime/native → native}/styles/functions/index.js +0 -0
  1023. /package/dist/commonjs/{runtime/native → native}/styles/functions/numeric-functions.js +0 -0
  1024. /package/dist/commonjs/{runtime/native → native}/styles/functions/platform-functions.js +0 -0
  1025. /package/dist/commonjs/{runtime/native → native}/styles/functions/string-functions.js +0 -0
  1026. /package/dist/commonjs/{runtime/native → native}/styles/line-height.js +0 -0
  1027. /package/dist/commonjs/{runtime/native → native}/styles/shorthands/border.js +0 -0
  1028. /package/dist/commonjs/{runtime/native → native}/styles/shorthands/index.js +0 -0
  1029. /package/dist/commonjs/{runtime/native → native}/styles/shorthands/text-shadow.js +0 -0
  1030. /package/dist/commonjs/{runtime/native → native}/styles/shorthands/transform.js +0 -0
  1031. /package/dist/commonjs/{runtime/native → native}/styles/units.js +0 -0
  1032. /package/dist/commonjs/{runtime/runtime.js → runtime.js} +0 -0
  1033. /package/dist/commonjs/{runtime/runtime.native.js → runtime.native.js} +0 -0
  1034. /package/dist/commonjs/{runtime/runtime.types.js → runtime.types.js} +0 -0
  1035. /package/dist/commonjs/{runtime/utils → utilities}/dot-notation.types.js +0 -0
  1036. /package/dist/commonjs/{runtime/utils → utilities}/specificity.js +0 -0
  1037. /package/dist/commonjs/{runtime/web → web}/api.js +0 -0
  1038. /package/dist/commonjs/{runtime/web → web}/assign-style.js +0 -0
  1039. /package/dist/commonjs/{runtime/web → web}/index.js +0 -0
  1040. /package/dist/commonjs/{runtime/native → web}/metro.js +0 -0
  1041. /package/dist/module/{runtime/native → native}/conditions/container-query.js +0 -0
  1042. /package/dist/module/{runtime/native → native}/conditions/guards.js +0 -0
  1043. /package/dist/module/{runtime/native → native}/conditions/index.js +0 -0
  1044. /package/dist/module/{runtime/native → native}/conditions/media-query.js +0 -0
  1045. /package/dist/module/{runtime/utils → native}/objects.js +0 -0
  1046. /package/dist/module/{runtime/native → native}/react/interaction.js +0 -0
  1047. /package/dist/module/{runtime/native → native}/react/usePassthrough.js +0 -0
  1048. /package/dist/module/{runtime/native → native}/reanimated.js +0 -0
  1049. /package/dist/module/{runtime/native → native}/styles/constants.js +0 -0
  1050. /package/dist/module/{runtime/native → native}/styles/defaults.js +0 -0
  1051. /package/dist/module/{runtime/native → native}/styles/functions/animation-timing.js +0 -0
  1052. /package/dist/module/{runtime/native → native}/styles/functions/calc.js +0 -0
  1053. /package/dist/module/{runtime/native → native}/styles/functions/index.js +0 -0
  1054. /package/dist/module/{runtime/native → native}/styles/functions/numeric-functions.js +0 -0
  1055. /package/dist/module/{runtime/native → native}/styles/functions/platform-functions.js +0 -0
  1056. /package/dist/module/{runtime/native → native}/styles/functions/string-functions.js +0 -0
  1057. /package/dist/module/{runtime/native → native}/styles/line-height.js +0 -0
  1058. /package/dist/module/{runtime/native → native}/styles/shorthands/border.js +0 -0
  1059. /package/dist/module/{runtime/native → native}/styles/shorthands/index.js +0 -0
  1060. /package/dist/module/{runtime/native → native}/styles/shorthands/text-shadow.js +0 -0
  1061. /package/dist/module/{runtime/native → native}/styles/shorthands/transform.js +0 -0
  1062. /package/dist/module/{runtime/native → native}/styles/units.js +0 -0
  1063. /package/dist/module/{runtime/runtime.js → runtime.js} +0 -0
  1064. /package/dist/module/{runtime/runtime.native.js → runtime.native.js} +0 -0
  1065. /package/dist/module/{runtime/runtime.types.js → runtime.types.js} +0 -0
  1066. /package/dist/module/{runtime/utils → utilities}/dot-notation.types.js +0 -0
  1067. /package/dist/module/{runtime/utils → utilities}/specificity.js +0 -0
  1068. /package/dist/module/{runtime/web → web}/api.js +0 -0
  1069. /package/dist/module/{runtime/web → web}/assign-style.js +0 -0
  1070. /package/dist/module/{runtime/web → web}/index.js +0 -0
  1071. /package/dist/module/{runtime/native → web}/metro.js +0 -0
  1072. /package/dist/typescript/commonjs/src/{runtime/native → native}/conditions/guards.d.ts +0 -0
  1073. /package/dist/typescript/commonjs/src/{runtime/utils → native}/objects.d.ts +0 -0
  1074. /package/dist/typescript/commonjs/src/{runtime/native → native}/react/interaction.d.ts +0 -0
  1075. /package/dist/typescript/commonjs/src/{runtime/native → native}/react/rules.d.ts +0 -0
  1076. /package/dist/typescript/commonjs/src/{runtime/native → native}/react/useNativeCss.d.ts +0 -0
  1077. /package/dist/typescript/commonjs/src/{runtime/native → native}/react/usePassthrough.d.ts +0 -0
  1078. /package/dist/typescript/commonjs/src/{runtime/native → native}/reanimated.d.ts +0 -0
  1079. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/constants.d.ts +0 -0
  1080. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/defaults.d.ts +0 -0
  1081. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/animation-timing.d.ts +0 -0
  1082. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/calc.d.ts +0 -0
  1083. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/filters.d.ts +0 -0
  1084. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/index.d.ts +0 -0
  1085. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/numeric-functions.d.ts +0 -0
  1086. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/platform-functions.d.ts +0 -0
  1087. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/string-functions.d.ts +0 -0
  1088. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/transform-functions.d.ts +0 -0
  1089. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/line-height.d.ts +0 -0
  1090. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/_handler.d.ts +0 -0
  1091. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/border.d.ts +0 -0
  1092. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/box-shadow.d.ts +0 -0
  1093. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/index.d.ts +0 -0
  1094. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/text-shadow.d.ts +0 -0
  1095. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/transform.d.ts +0 -0
  1096. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/units.d.ts +0 -0
  1097. /package/dist/typescript/commonjs/src/{runtime/runtime.d.ts → runtime.d.ts} +0 -0
  1098. /package/dist/typescript/commonjs/src/{runtime/runtime.native.d.ts → runtime.native.d.ts} +0 -0
  1099. /package/dist/typescript/commonjs/src/{runtime/utils → utilities}/dot-notation.types.d.ts +0 -0
  1100. /package/dist/typescript/commonjs/src/{runtime/web → web}/assign-style.d.ts +0 -0
  1101. /package/dist/typescript/commonjs/src/{runtime/web → web}/index.d.ts +0 -0
  1102. /package/dist/typescript/commonjs/src/{runtime/native → web}/metro.d.ts +0 -0
  1103. /package/dist/typescript/module/src/{runtime/native → native}/conditions/guards.d.ts +0 -0
  1104. /package/dist/typescript/module/src/{runtime/utils → native}/objects.d.ts +0 -0
  1105. /package/dist/typescript/module/src/{runtime/native → native}/react/interaction.d.ts +0 -0
  1106. /package/dist/typescript/module/src/{runtime/native → native}/react/rules.d.ts +0 -0
  1107. /package/dist/typescript/module/src/{runtime/native → native}/react/useNativeCss.d.ts +0 -0
  1108. /package/dist/typescript/module/src/{runtime/native → native}/react/usePassthrough.d.ts +0 -0
  1109. /package/dist/typescript/module/src/{runtime/native → native}/reanimated.d.ts +0 -0
  1110. /package/dist/typescript/module/src/{runtime/native → native}/styles/constants.d.ts +0 -0
  1111. /package/dist/typescript/module/src/{runtime/native → native}/styles/defaults.d.ts +0 -0
  1112. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/animation-timing.d.ts +0 -0
  1113. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/calc.d.ts +0 -0
  1114. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/filters.d.ts +0 -0
  1115. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/index.d.ts +0 -0
  1116. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/numeric-functions.d.ts +0 -0
  1117. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/platform-functions.d.ts +0 -0
  1118. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/string-functions.d.ts +0 -0
  1119. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/transform-functions.d.ts +0 -0
  1120. /package/dist/typescript/module/src/{runtime/native → native}/styles/line-height.d.ts +0 -0
  1121. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/_handler.d.ts +0 -0
  1122. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/border.d.ts +0 -0
  1123. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/box-shadow.d.ts +0 -0
  1124. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/index.d.ts +0 -0
  1125. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/text-shadow.d.ts +0 -0
  1126. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/transform.d.ts +0 -0
  1127. /package/dist/typescript/module/src/{runtime/native → native}/styles/units.d.ts +0 -0
  1128. /package/dist/typescript/module/src/{runtime/runtime.d.ts → runtime.d.ts} +0 -0
  1129. /package/dist/typescript/module/src/{runtime/runtime.native.d.ts → runtime.native.d.ts} +0 -0
  1130. /package/dist/typescript/module/src/{runtime/utils → utilities}/dot-notation.types.d.ts +0 -0
  1131. /package/dist/typescript/module/src/{runtime/web → web}/assign-style.d.ts +0 -0
  1132. /package/dist/typescript/module/src/{runtime/web → web}/index.d.ts +0 -0
  1133. /package/dist/typescript/{commonjs/src/runtime → module/src}/web/metro.d.ts +0 -0
  1134. /package/src/{runtime/native → native}/conditions/guards.ts +0 -0
  1135. /package/src/{runtime/utils → native}/objects.ts +0 -0
  1136. /package/src/{runtime/native → native}/react/interaction.ts +0 -0
  1137. /package/src/{runtime/native → native}/react/usePassthrough.ts +0 -0
  1138. /package/src/{poison.pill.ts → native/react-native-css-metro-override.ts} +0 -0
  1139. /package/src/{runtime/native → native}/reanimated.ts +0 -0
  1140. /package/src/{runtime/native → native}/styles/constants.ts +0 -0
  1141. /package/src/{runtime/native → native}/styles/defaults.ts +0 -0
  1142. /package/src/{runtime/native → native}/styles/functions/animation-timing.ts +0 -0
  1143. /package/src/{runtime/native → native}/styles/functions/calc.ts +0 -0
  1144. /package/src/{runtime/native → native}/styles/functions/index.ts +0 -0
  1145. /package/src/{runtime/native → native}/styles/functions/numeric-functions.ts +0 -0
  1146. /package/src/{runtime/native → native}/styles/functions/platform-functions.ts +0 -0
  1147. /package/src/{runtime/native → native}/styles/functions/string-functions.ts +0 -0
  1148. /package/src/{runtime/native → native}/styles/line-height.ts +0 -0
  1149. /package/src/{runtime/native → native}/styles/shorthands/border.ts +0 -0
  1150. /package/src/{runtime/native → native}/styles/shorthands/index.ts +0 -0
  1151. /package/src/{runtime/native → native}/styles/shorthands/text-shadow.ts +0 -0
  1152. /package/src/{runtime/native → native}/styles/shorthands/transform.ts +0 -0
  1153. /package/src/{runtime/native → native}/styles/units.ts +0 -0
  1154. /package/src/{runtime/runtime.native.ts → runtime.native.ts} +0 -0
  1155. /package/src/{runtime/runtime.ts → runtime.ts} +0 -0
  1156. /package/src/{runtime/utils → utilities}/dot-notation.types.ts +0 -0
  1157. /package/src/{runtime/web → web}/assign-style.ts +0 -0
  1158. /package/src/{runtime/web → web}/index.ts +0 -0
  1159. /package/src/{runtime/native → web}/metro.ts +0 -0
@@ -1,98 +0,0 @@
1
- /* eslint-disable */
2
- import { I18nManager, PixelRatio, Platform } from "react-native";
3
-
4
- import type { MediaCondition } from "../../../compiler";
5
- import { colorScheme, vh, vw, type Getter } from "../reactivity";
6
-
7
- export function testMediaQuery(mediaQueries: MediaCondition[], get: Getter) {
8
- return mediaQueries.every((query) => test(query, get));
9
- }
10
-
11
- function test(mediaQuery: MediaCondition, get: Getter): Boolean {
12
- switch (mediaQuery[0]) {
13
- case "[]":
14
- case "!!":
15
- return false;
16
- case "!":
17
- return !test(mediaQuery[1], get);
18
- case "&":
19
- return mediaQuery[1].every((query) => {
20
- return test(query, get);
21
- });
22
- case "|":
23
- return mediaQuery[1].some((query) => {
24
- return test(query, get);
25
- });
26
- case ">":
27
- case ">=":
28
- case "<":
29
- case "<=":
30
- case "=": {
31
- return testComparison(mediaQuery, get);
32
- }
33
- }
34
- }
35
-
36
- function testComparison(mediaQuery: MediaCondition, get: Getter): Boolean {
37
- const value = mediaQuery[2];
38
-
39
- switch (mediaQuery[1]) {
40
- case "dir":
41
- return (I18nManager.isRTL && value === "rtl") || value === "ltr";
42
- case "hover":
43
- return true;
44
- case "platform":
45
- return value === "native" || value === Platform.OS;
46
- case "prefers-color-scheme": {
47
- return value === get(colorScheme);
48
- }
49
- case "display-mode":
50
- return value === "native" || Platform.OS === value;
51
- case "min-width":
52
- return typeof value === "number" && get(vw) >= value;
53
- case "max-width":
54
- return typeof value === "number" && get(vw) <= value;
55
- case "min-height":
56
- return typeof value === "number" && get(vh) >= value;
57
- case "max-height":
58
- return typeof value === "number" && get(vh) <= value;
59
- case "orientation":
60
- return value === "landscape" ? get(vh) < get(vw) : get(vh) >= get(vw);
61
- }
62
-
63
- if (typeof value !== "number") {
64
- return false;
65
- }
66
-
67
- let left: number | undefined;
68
- const right = value;
69
-
70
- switch (mediaQuery[1]) {
71
- case "width":
72
- left = get(vw);
73
- break;
74
- case "height":
75
- left = get(vh);
76
- break;
77
- case "resolution":
78
- left = PixelRatio.get();
79
- break;
80
- default:
81
- return false;
82
- }
83
-
84
- switch (mediaQuery[0]) {
85
- case "=":
86
- return left === right;
87
- case ">":
88
- return left > right;
89
- case ">=":
90
- return left >= right;
91
- case "<":
92
- return left < right;
93
- case "<=":
94
- return left <= right;
95
- default:
96
- return false;
97
- }
98
- }
@@ -1,4 +0,0 @@
1
- export * from "./metro";
2
-
3
- export * from "./api";
4
- export type * from "../runtime.types";
@@ -1,336 +0,0 @@
1
- /* eslint-disable */
2
- import { StyleCollection } from "react-native-css/style-collection";
3
-
4
- import type { InlineVariable, StyleRule } from "../../../compiler";
5
- import { getDeepPath } from "../../utils";
6
- import { testRule } from "../conditions";
7
- import { DEFAULT_CONTAINER_NAME } from "../conditions/container-query";
8
- import type { RenderGuard } from "../conditions/guards";
9
- import {
10
- activeFamily,
11
- containerLayoutFamily,
12
- focusFamily,
13
- hoverFamily,
14
- VAR_SYMBOL,
15
- weakFamily,
16
- type ContainerContextValue,
17
- type VariableContextValue,
18
- } from "../reactivity";
19
- import { stylesFamily } from "../styles";
20
- import type { ComponentState, Config } from "./useNativeCss";
21
-
22
- export const INLINE_RULE_SYMBOL = Symbol("react-native-css.inlineRule");
23
-
24
- export function updateRules(
25
- state: ComponentState,
26
- // Either update the state with new props or use the current props
27
- currentProps = state.currentProps,
28
- inheritedVariables = state.inheritedVariables,
29
- inheritedContainers = state.inheritedContainers,
30
- forceUpdate = false,
31
- isRerender = true,
32
- ): ComponentState {
33
- const guards: RenderGuard[] = [];
34
- const rules = new Set<StyleRule | InlineVariable | VariableContextValue>();
35
- if (forceUpdate) {
36
- state = { ...state, guards, currentProps };
37
- }
38
-
39
- let usesVariables = false;
40
-
41
- let variables: VariableContextValue | undefined;
42
- let containers: ContainerContextValue | undefined;
43
- const inlineVariables = new Set<InlineVariable>();
44
-
45
- let animated = false;
46
- let pressable = false;
47
-
48
- for (const config of state.configs) {
49
- const source = currentProps?.[config.source];
50
- const shallowTarget = Array.isArray(config.target)
51
- ? config.target[0]
52
- : config.target;
53
-
54
- guards.push(["a", config.source, source]);
55
- if (shallowTarget) {
56
- guards.push(["a", shallowTarget, currentProps?.[shallowTarget]]);
57
- }
58
-
59
- const styleRuleSet = [];
60
-
61
- if (typeof source === "string") {
62
- const classNames = source.split(/\s+/);
63
- for (const className of classNames) {
64
- styleRuleSet.push(
65
- ...StyleCollection.styles(className).get(state.ruleEffect),
66
- );
67
- }
68
- }
69
-
70
- const target = getDeepPath(currentProps, config.target);
71
- if (target) {
72
- if (Array.isArray(target)) {
73
- for (const item of target) {
74
- // undefined or falsy is allowed in the style array
75
- if (!item) {
76
- continue;
77
- }
78
-
79
- if (VAR_SYMBOL in item) {
80
- inlineVariables.add(item);
81
- } else if (
82
- INLINE_RULE_SYMBOL in item &&
83
- typeof item[INLINE_RULE_SYMBOL] === "string"
84
- ) {
85
- pushInlineRule(state, item, styleRuleSet);
86
- }
87
- }
88
- } else if (
89
- config.target &&
90
- typeof target === "object" &&
91
- target &&
92
- VAR_SYMBOL in target
93
- ) {
94
- inlineVariables.add(target);
95
- } else if (
96
- INLINE_RULE_SYMBOL in target &&
97
- typeof target[INLINE_RULE_SYMBOL] === "string"
98
- ) {
99
- pushInlineRule(state, target, styleRuleSet);
100
- }
101
- }
102
-
103
- for (let rule of styleRuleSet) {
104
- usesVariables ||= Boolean(rule.dv);
105
-
106
- // We do this even if the rule doesn't match so we can maintain a consistent render tree
107
- // We we need to inject React context
108
- if (rule.a) animated = true;
109
-
110
- if (rule.v) {
111
- variables ??= inheritedVariables;
112
- }
113
-
114
- if (rule.c) {
115
- containers ??= inheritedContainers;
116
- activeFamily(state.ruleEffectGetter);
117
- }
118
-
119
- if (
120
- !testRule(
121
- rule,
122
- state.ruleEffectGetter,
123
- currentProps,
124
- guards,
125
- inheritedContainers,
126
- )
127
- ) {
128
- continue;
129
- }
130
-
131
- if (rule.v) {
132
- if (variables === inheritedVariables) {
133
- variables = { ...inheritedVariables };
134
- }
135
-
136
- for (const v of rule.v) {
137
- variables![v[0]] = v[1];
138
- }
139
- }
140
-
141
- if (rule.c) {
142
- // We're going to set a value, so we need to create a new object
143
- if (containers === inheritedContainers) {
144
- containers = {
145
- ...inheritedContainers,
146
- // This container becomes the default container
147
- [DEFAULT_CONTAINER_NAME]: state.ruleEffectGetter,
148
- };
149
- }
150
-
151
- // This this component as the named container
152
- for (const name of rule.c) {
153
- containers![name] = state.ruleEffectGetter;
154
- }
155
-
156
- // Enable hover/active/focus/layout handlers
157
- hoverFamily(state.ruleEffectGetter);
158
- activeFamily(state.ruleEffectGetter);
159
- focusFamily(state.ruleEffectGetter);
160
- containerLayoutFamily(state.ruleEffectGetter);
161
- }
162
-
163
- if (rule.a) {
164
- animated = true;
165
- }
166
-
167
- // Rules normally target style. If the target is not style, we need to create a new rule.
168
- if (config.target !== "style") {
169
- rule = getRuleVariation(rule)(config);
170
- }
171
-
172
- // Add the rule to the set and update the hash
173
- rules.add(rule);
174
- }
175
-
176
- if (process.env.NODE_ENV !== "production") {
177
- if (isRerender) {
178
- const pressable = activeFamily.has(state.ruleEffectGetter);
179
-
180
- if (Boolean(variables) !== Boolean(state.variables)) {
181
- console.log(
182
- `ReactNativeCss: className '${source}' added or removed a variable after the initial render. This causes the components state to be reset and all children be re-mounted. Use the className 'will-change-variable' to avoid this warning. If this was caused by sibling components being added/removed, use a 'key' prop so React can track the component correctly.`,
183
- );
184
- } else if (Boolean(containers) !== Boolean(state.containers)) {
185
- console.log(
186
- `ReactNativeCss: className '${source}' added or removed a container after the initial render. This causes the components state to be reset and all children be re-mounted. This will cause unexpected behavior. Use the className 'will-change-container' to avoid this warning. If this was caused by sibling components being added/removed, use a 'key' prop so React can track the component correctly.`,
187
- );
188
- } else if (animated !== state.animated) {
189
- console.log(
190
- `ReactNativeCss: className '${source}' added or removed an animation after the initial render. This causes the components state to be reset and all children be re-mounted. This will cause unexpected behavior. Use the className 'will-change-animation' to avoid this warning. If this was caused by sibling components being added/removed, use a 'key' prop so React can track the component correctly.`,
191
- );
192
- } else if (pressable !== state.pressable) {
193
- console.log(
194
- `ReactNativeCss: className '${source}' added or removed a pressable state after the initial render. This causes the components state to be reset and all children be re-mounted. This will cause unexpected behavior. Use the className 'will-change-pressable' to avoid this warning. If this was caused by sibling components being added/removed, use a 'key' prop so React can track the component correctly.`,
195
- );
196
- }
197
- }
198
- }
199
- }
200
-
201
- pressable = activeFamily.has(state.ruleEffectGetter);
202
-
203
- if (!rules.size && !state.stylesObs && !inlineVariables.size) {
204
- return {
205
- ...state,
206
- currentProps,
207
- guards,
208
- animated,
209
- pressable,
210
- variables,
211
- containers,
212
- };
213
- }
214
-
215
- if (usesVariables || variables) {
216
- rules.add(inheritedVariables);
217
-
218
- if (inlineVariables.size) {
219
- variables = Object.assign(
220
- {},
221
- variables,
222
- inheritedVariables,
223
- ...Array.from(inlineVariables),
224
- { [VAR_SYMBOL]: true },
225
- );
226
- }
227
-
228
- for (const variable of inlineVariables) {
229
- rules.add(variable);
230
- }
231
- }
232
-
233
- // Generate a StyleObservable for this unique set of rules / variables
234
- const stylesObs = stylesFamily(generateStateHash(state, rules), rules);
235
-
236
- // Get the guards without subscribing to the observable
237
- // We will subscribe within the render using the StyleEffect
238
- guards.push(...stylesObs.get().guards);
239
-
240
- // If these are the same styles with no inline variables, we can skip the update
241
- if (state.stylesObs === stylesObs && !inlineVariables.size) {
242
- return state;
243
- }
244
-
245
- // Remove this component from the old observer
246
- state.stylesObs?.cleanup(state.ruleEffect);
247
-
248
- return {
249
- ...state,
250
- currentProps,
251
- stylesObs,
252
- variables,
253
- containers,
254
- guards,
255
- animated,
256
- pressable,
257
- };
258
- }
259
-
260
- /**
261
- * Create variations of a style rule based on the config.
262
- * Cache for reference equality.
263
- */
264
- const getRuleVariation = weakFamily((rule: StyleRule) => {
265
- return weakFamily((config: Config): StyleRule => {
266
- return { ...rule, target: config.target };
267
- });
268
- });
269
-
270
- function pushInlineRule(
271
- state: ComponentState,
272
- item: any,
273
- styleRuleSet: StyleRule[],
274
- ) {
275
- for (const className of item[INLINE_RULE_SYMBOL].split(/\s+/)) {
276
- let inlineRuleSet = StyleCollection.styles(className).get(state.ruleEffect);
277
-
278
- for (let rule of inlineRuleSet) {
279
- styleRuleSet.push(rule);
280
- }
281
- }
282
- }
283
-
284
- /**
285
- * Get a unique number for a weak key.
286
- */
287
- let hashKeyCount = 0;
288
- const hashKeyFamily = weakFamily(() => hashKeyCount++);
289
-
290
- export function generateStateHash(
291
- state: ComponentState,
292
- iterableKeys?: Iterable<WeakKey>,
293
- variables?: WeakKey,
294
- inlineVars?: Set<WeakKey>,
295
- ): string {
296
- if (!iterableKeys) {
297
- return "";
298
- }
299
-
300
- const keys = [state.configs, ...iterableKeys];
301
-
302
- if (variables) {
303
- keys.push(variables);
304
- }
305
-
306
- if (inlineVars) {
307
- keys.push(...inlineVars);
308
- }
309
-
310
- return generateHash(keys);
311
- }
312
-
313
- /**
314
- * Quickly generate a unique hash for a set of numbers.
315
- * This is not a cryptographic hash, but it is fast and has a low chance of collision.
316
- */
317
- const MOD = 9007199254740871; // Largest prime within safe integer range 2^53
318
- const PRIME = 31; // A smaller prime for mixing
319
- export function generateHash(keys: WeakKey[]): string {
320
- let hash = 0;
321
- let product = 1; // Used for mixing to enhance uniqueness
322
-
323
- for (const key of keys) {
324
- if (!key) continue; // Skip if key is undefined
325
-
326
- const num = hashKeyFamily(key);
327
- hash = (hash ^ num) % MOD; // XOR and modular arithmetic
328
- product = (product * (num + PRIME)) % MOD; // Mix with multiplication
329
- }
330
-
331
- // Combine hash and product to form the final hash
332
- hash = (hash + product) % MOD;
333
-
334
- // Return the hash as a string
335
- return hash.toString(36);
336
- }
@@ -1,203 +0,0 @@
1
- /* eslint-disable */
2
- import {
3
- createElement,
4
- Fragment,
5
- useContext,
6
- useEffect,
7
- useState,
8
- type ComponentType,
9
- } from "react";
10
- import { Pressable, View } from "react-native";
11
-
12
- import type { StyledConfiguration } from "../../runtime.types";
13
- import { testGuards, type RenderGuard } from "../conditions/guards";
14
- import {
15
- cleanupEffect,
16
- ContainerContext,
17
- VariableContext,
18
- type ContainerContextValue,
19
- type Effect,
20
- type Getter,
21
- type VariableContextValue,
22
- } from "../reactivity";
23
- import { animatedComponentFamily } from "../reanimated";
24
- import { getStyledProps, stylesFamily } from "../styles";
25
- import { updateRules } from "./rules";
26
-
27
- export type Config = {
28
- source: string;
29
- target: string[] | string | false;
30
- nativeStyleMapping?: Record<string, string>;
31
- };
32
-
33
- export type ComponentState = {
34
- /** The source/target for classNames */
35
- configs: Config[];
36
-
37
- /** Reactive tracking */
38
- ruleEffect: Effect;
39
- ruleEffectGetter: Getter;
40
- styleEffect: Effect;
41
-
42
- /** The components props */
43
- currentProps?: Record<string, any> | undefined | null;
44
-
45
- /** An observable of the normal/important props */
46
- stylesObs?: ReturnType<typeof stylesFamily>;
47
- guards?: RenderGuard[];
48
-
49
- variables?: VariableContextValue;
50
- containers?: ContainerContextValue;
51
-
52
- inheritedVariables: VariableContextValue;
53
- inheritedContainers: ContainerContextValue;
54
-
55
- animated?: boolean;
56
- pressable?: undefined | boolean;
57
- };
58
-
59
- /**
60
- * useNativeCss is the native implementation of the useCssElement hook.
61
- */
62
- export function useNativeCss(
63
- type: ComponentType<any>,
64
- originalProps: Record<string, any> | undefined | null,
65
- configs: Config[] = [{ source: "className", target: "style" }],
66
- ) {
67
- const inheritedVariables = useContext(VariableContext);
68
- const inheritedContainers = useContext(ContainerContext);
69
-
70
- const [state, setState] = useState((): ComponentState => {
71
- // Both effects share the same observers to improve memory usage
72
- const observers = new Set<Effect>();
73
-
74
- /**
75
- * When fired, this effect will force the rules to be re-evaluated.
76
- * This will cause a re-render if there are different rules
77
- *
78
- * Use this when a rule condition changes, e.g FastRefresh or media queries
79
- */
80
- const ruleEffect: Effect = {
81
- observers,
82
- run: () => setState((state) => updateRules(state)),
83
- };
84
-
85
- /**
86
- * When fired, this effect will force a re-render of the component.
87
- * This will cause a re-fetch of the styles.
88
- *
89
- * Use this when a value changes, e.g vm units or light / dark mode
90
- */
91
- const styleEffect: Effect = {
92
- observers,
93
- run: () => setState((state) => ({ ...state })),
94
- };
95
-
96
- return updateRules(
97
- {
98
- ruleEffect,
99
- ruleEffectGetter: (observable) => observable.get(ruleEffect),
100
- styleEffect,
101
- configs,
102
- inheritedContainers,
103
- inheritedVariables,
104
- pressable: type === View ? false : undefined,
105
- },
106
- originalProps,
107
- inheritedVariables,
108
- inheritedContainers,
109
- false,
110
- false,
111
- );
112
- });
113
-
114
- // Both effects share the same observers, so we only need to cleanup one of them
115
- useEffect(() => () => cleanupEffect(state.ruleEffect), [state.ruleEffect]);
116
-
117
- // Check if our derived state has changed (e.g the className prop)
118
- if (
119
- testGuards(state, originalProps, inheritedVariables, inheritedContainers)
120
- ) {
121
- /**
122
- * Get the new state
123
- * Note, this might result in the same styles, but the guards will now be different
124
- */
125
- setState(
126
- updateRules(
127
- state,
128
- originalProps,
129
- inheritedVariables,
130
- inheritedContainers,
131
- true,
132
- ),
133
- );
134
-
135
- // We can bail on rendering as the result of this render will be discarded
136
- return createElement(Fragment);
137
- }
138
-
139
- let props = getStyledProps(state, originalProps);
140
-
141
- if (type === View && props?.onPress) {
142
- type = Pressable;
143
- }
144
-
145
- if (state.animated) {
146
- type = animatedComponentFamily(type);
147
- }
148
-
149
- if (state.variables) {
150
- props = {
151
- value: state.variables,
152
- children: createElement(type, props),
153
- };
154
- type = VariableContext.Provider;
155
- }
156
-
157
- if (state.containers) {
158
- props = {
159
- value: state.containers,
160
- children: createElement(type, props),
161
- };
162
- type = ContainerContext.Provider;
163
- }
164
-
165
- return createElement(type, props);
166
- }
167
-
168
- /**
169
- * Convert the styled() mapping to a config array
170
- */
171
- export function mappingToConfig(mapping: StyledConfiguration<any>) {
172
- return Object.entries(mapping).flatMap(([key, value]): Config => {
173
- if (value === true) {
174
- return { source: key, target: key };
175
- } else if (value === false) {
176
- return { source: key, target: false };
177
- } else if (typeof value === "string") {
178
- return { source: key, target: value.split(".") };
179
- } else if (typeof value === "object") {
180
- if (Array.isArray(value)) {
181
- return { source: key, target: value };
182
- }
183
-
184
- if ("target" in value) {
185
- if (value.target === false) {
186
- return { source: key, target: false };
187
- } else if (typeof value.target === "string") {
188
- const target = value.target.split(".");
189
-
190
- if (target.length === 1) {
191
- return { source: key, target: target[0]! };
192
- } else {
193
- return { source: key, target };
194
- }
195
- } else if (Array.isArray(value.target)) {
196
- return { source: key, target: value.target };
197
- }
198
- }
199
- }
200
-
201
- throw new Error(`styled(): Invalid mapping for ${key}: ${value}`);
202
- });
203
- }