react-native-css 0.0.0-nightly.96f5ce2 → 0.0.0-nightly.99fdf44

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 (1095) hide show
  1. package/README.md +138 -10
  2. package/dist/commonjs/babel/index.js +6 -2
  3. package/dist/commonjs/babel/index.js.map +1 -1
  4. package/dist/commonjs/compiler/atRules.js +18 -26
  5. package/dist/commonjs/compiler/atRules.js.map +1 -1
  6. package/dist/commonjs/compiler/compiler.js +96 -39
  7. package/dist/commonjs/compiler/compiler.js.map +1 -1
  8. package/dist/commonjs/compiler/compiler.types.js +1 -1
  9. package/dist/commonjs/compiler/compiler.types.js.map +1 -1
  10. package/dist/commonjs/compiler/declarations.js +72 -59
  11. package/dist/commonjs/compiler/declarations.js.map +1 -1
  12. package/dist/commonjs/compiler/inline-variables.js +142 -0
  13. package/dist/commonjs/compiler/inline-variables.js.map +1 -0
  14. package/dist/commonjs/compiler/lightningcss-loader.js +40 -0
  15. package/dist/commonjs/compiler/lightningcss-loader.js.map +1 -0
  16. package/dist/commonjs/compiler/pseudo-elements.js +1 -1
  17. package/dist/commonjs/compiler/selector-builder.js +10 -7
  18. package/dist/commonjs/compiler/selector-builder.js.map +1 -1
  19. package/dist/commonjs/compiler/selectors.js +4 -4
  20. package/dist/commonjs/compiler/selectors.js.map +1 -1
  21. package/dist/commonjs/compiler/stylesheet.js +7 -7
  22. package/dist/commonjs/compiler/stylesheet.js.map +1 -1
  23. package/dist/commonjs/components/ActivityIndicator.js +2 -2
  24. package/dist/commonjs/components/ActivityIndicator.js.map +1 -1
  25. package/dist/commonjs/components/Button.js +2 -2
  26. package/dist/commonjs/components/Button.js.map +1 -1
  27. package/dist/commonjs/components/FlatList.js +6 -5
  28. package/dist/commonjs/components/FlatList.js.map +1 -1
  29. package/dist/commonjs/components/Image.js +2 -2
  30. package/dist/commonjs/components/Image.js.map +1 -1
  31. package/dist/commonjs/components/ImageBackground.js +22 -0
  32. package/dist/commonjs/components/ImageBackground.js.map +1 -0
  33. package/dist/commonjs/components/KeyboardAvoidingView.js +19 -0
  34. package/dist/commonjs/components/KeyboardAvoidingView.js.map +1 -0
  35. package/dist/commonjs/components/Pressable.js +17 -0
  36. package/dist/commonjs/components/Pressable.js.map +1 -0
  37. package/dist/commonjs/components/ScrollView.js +18 -0
  38. package/dist/commonjs/components/ScrollView.js.map +1 -0
  39. package/dist/commonjs/components/Switch.js +2 -2
  40. package/dist/commonjs/components/Switch.js.map +1 -1
  41. package/dist/commonjs/components/Text.js +2 -2
  42. package/dist/commonjs/components/Text.js.map +1 -1
  43. package/dist/commonjs/components/TextInput.js +8 -3
  44. package/dist/commonjs/components/TextInput.js.map +1 -1
  45. package/dist/commonjs/components/TouchableHighlight.js +17 -0
  46. package/dist/commonjs/components/TouchableHighlight.js.map +1 -0
  47. package/dist/commonjs/components/TouchableOpacity.js +17 -0
  48. package/dist/commonjs/components/TouchableOpacity.js.map +1 -0
  49. package/dist/commonjs/components/TouchableWithoutFeedback.js +17 -0
  50. package/dist/commonjs/components/TouchableWithoutFeedback.js.map +1 -0
  51. package/dist/commonjs/components/View.js +2 -2
  52. package/dist/commonjs/components/View.js.map +1 -1
  53. package/dist/commonjs/components/VirtualizedList.js +20 -0
  54. package/dist/commonjs/components/VirtualizedList.js.map +1 -0
  55. package/dist/commonjs/components/index.js +65 -1
  56. package/dist/commonjs/components/index.js.map +1 -1
  57. package/dist/commonjs/components/react-native-safe-area-context.native.js +3 -3
  58. package/dist/commonjs/components/react-native-safe-area-context.native.js.map +1 -1
  59. package/dist/commonjs/index.js +4 -15
  60. package/dist/commonjs/index.js.map +1 -1
  61. package/dist/commonjs/jest/index.js +5 -5
  62. package/dist/commonjs/jest/index.js.map +1 -1
  63. package/dist/commonjs/metro/index.js +13 -13
  64. package/dist/commonjs/metro/index.js.map +1 -1
  65. package/dist/commonjs/metro/injection-code.js +1 -1
  66. package/dist/commonjs/metro/injection-code.js.map +1 -1
  67. package/dist/commonjs/native/api.js +113 -0
  68. package/dist/commonjs/native/api.js.map +1 -0
  69. package/dist/commonjs/native/conditions/attributes.js +44 -0
  70. package/dist/commonjs/native/conditions/attributes.js.map +1 -0
  71. package/dist/commonjs/native/conditions/container-query.js.map +1 -0
  72. package/dist/commonjs/native/conditions/guards.js.map +1 -0
  73. package/dist/commonjs/native/conditions/index.js.map +1 -0
  74. package/dist/commonjs/native/conditions/media-query.js.map +1 -0
  75. package/dist/commonjs/native/index.js.map +1 -0
  76. package/dist/commonjs/native/metro.js.map +1 -0
  77. package/dist/commonjs/native/objects.js.map +1 -0
  78. package/dist/commonjs/native/react/interaction.js.map +1 -0
  79. package/dist/commonjs/native/react/rules.js +259 -0
  80. package/dist/commonjs/native/react/rules.js.map +1 -0
  81. package/dist/commonjs/native/react/useNativeCss.js +160 -0
  82. package/dist/commonjs/native/react/useNativeCss.js.map +1 -0
  83. package/dist/commonjs/native/react/usePassthrough.js.map +1 -0
  84. package/dist/commonjs/native/reactivity.js +181 -0
  85. package/dist/commonjs/native/reactivity.js.map +1 -0
  86. package/dist/commonjs/native/reanimated.js.map +1 -0
  87. package/dist/commonjs/native/styles/calculate-props.js +162 -0
  88. package/dist/commonjs/native/styles/calculate-props.js.map +1 -0
  89. package/dist/commonjs/native/styles/constants.js.map +1 -0
  90. package/dist/commonjs/native/styles/defaults.js.map +1 -0
  91. package/dist/commonjs/native/styles/functions/animation-timing.js.map +1 -0
  92. package/dist/commonjs/native/styles/functions/calc.js.map +1 -0
  93. package/dist/commonjs/native/styles/functions/filters.js +84 -0
  94. package/dist/commonjs/native/styles/functions/filters.js.map +1 -0
  95. package/dist/commonjs/native/styles/functions/index.js.map +1 -0
  96. package/dist/commonjs/native/styles/functions/numeric-functions.js.map +1 -0
  97. package/dist/commonjs/native/styles/functions/platform-functions.js.map +1 -0
  98. package/dist/commonjs/native/styles/functions/string-functions.js.map +1 -0
  99. package/dist/commonjs/native/styles/functions/transform-functions.js +121 -0
  100. package/dist/commonjs/native/styles/functions/transform-functions.js.map +1 -0
  101. package/dist/commonjs/native/styles/index.js +115 -0
  102. package/dist/commonjs/native/styles/index.js.map +1 -0
  103. package/dist/commonjs/native/styles/line-height.js +25 -0
  104. package/dist/commonjs/native/styles/line-height.js.map +1 -0
  105. package/dist/commonjs/native/styles/resolve.js +108 -0
  106. package/dist/commonjs/native/styles/resolve.js.map +1 -0
  107. package/dist/commonjs/native/styles/shorthands/_handler.js +79 -0
  108. package/dist/commonjs/native/styles/shorthands/_handler.js.map +1 -0
  109. package/dist/commonjs/native/styles/shorthands/animation.js +57 -0
  110. package/dist/commonjs/native/styles/shorthands/animation.js.map +1 -0
  111. package/dist/commonjs/native/styles/shorthands/border.js.map +1 -0
  112. package/dist/commonjs/native/styles/shorthands/box-shadow.js +48 -0
  113. package/dist/commonjs/native/styles/shorthands/box-shadow.js.map +1 -0
  114. package/dist/commonjs/native/styles/shorthands/index.js.map +1 -0
  115. package/dist/commonjs/native/styles/shorthands/text-shadow.js.map +1 -0
  116. package/dist/commonjs/native/styles/shorthands/transform.js.map +1 -0
  117. package/dist/commonjs/native/styles/units.js.map +1 -0
  118. package/dist/commonjs/native/styles/variables.js +79 -0
  119. package/dist/commonjs/native/styles/variables.js.map +1 -0
  120. package/dist/commonjs/native-internal/README.md +11 -0
  121. package/dist/commonjs/native-internal/index.js +39 -0
  122. package/dist/commonjs/native-internal/index.js.map +1 -0
  123. package/dist/commonjs/native-internal/root.js +34 -0
  124. package/dist/commonjs/native-internal/root.js.map +1 -0
  125. package/dist/commonjs/native-internal/style-collection.js +110 -0
  126. package/dist/commonjs/native-internal/style-collection.js.map +1 -0
  127. package/dist/commonjs/native-internal/variables.js +27 -0
  128. package/dist/commonjs/native-internal/variables.js.map +1 -0
  129. package/dist/commonjs/runtime/native/injection.js +2 -0
  130. package/dist/commonjs/runtime/native/injection.js.map +1 -0
  131. package/dist/commonjs/runtime.js.map +1 -0
  132. package/dist/commonjs/runtime.native.js.map +1 -0
  133. package/dist/commonjs/runtime.types.js.map +1 -0
  134. package/dist/commonjs/utilities/dot-notation.types.js.map +1 -0
  135. package/dist/commonjs/utilities/index.js +39 -0
  136. package/dist/commonjs/utilities/index.js.map +1 -0
  137. package/dist/commonjs/utilities/specificity.js.map +1 -0
  138. package/dist/commonjs/utilities/style-descriptor.js +21 -0
  139. package/dist/commonjs/utilities/style-descriptor.js.map +1 -0
  140. package/dist/commonjs/web/api.js.map +1 -0
  141. package/dist/commonjs/web/assign-style.js.map +1 -0
  142. package/dist/commonjs/web/index.js.map +1 -0
  143. package/dist/commonjs/web/metro.js.map +1 -0
  144. package/dist/module/babel/index.js +2 -2
  145. package/dist/module/babel/index.js.map +1 -1
  146. package/dist/module/compiler/atRules.js +18 -26
  147. package/dist/module/compiler/atRules.js.map +1 -1
  148. package/dist/module/compiler/compiler.js +96 -39
  149. package/dist/module/compiler/compiler.js.map +1 -1
  150. package/dist/module/compiler/compiler.types.js +1 -1
  151. package/dist/module/compiler/compiler.types.js.map +1 -1
  152. package/dist/module/compiler/declarations.js +72 -59
  153. package/dist/module/compiler/declarations.js.map +1 -1
  154. package/dist/module/compiler/inline-variables.js +138 -0
  155. package/dist/module/compiler/inline-variables.js.map +1 -0
  156. package/dist/module/compiler/lightningcss-loader.js +36 -0
  157. package/dist/module/compiler/lightningcss-loader.js.map +1 -0
  158. package/dist/module/compiler/pseudo-elements.js +1 -1
  159. package/dist/module/compiler/pseudo-elements.js.map +1 -1
  160. package/dist/module/compiler/selector-builder.js +10 -7
  161. package/dist/module/compiler/selector-builder.js.map +1 -1
  162. package/dist/module/compiler/selectors.js +1 -1
  163. package/dist/module/compiler/selectors.js.map +1 -1
  164. package/dist/module/compiler/stylesheet.js +7 -7
  165. package/dist/module/compiler/stylesheet.js.map +1 -1
  166. package/dist/module/components/ActivityIndicator.js +1 -1
  167. package/dist/module/components/ActivityIndicator.js.map +1 -1
  168. package/dist/module/components/Button.js +1 -1
  169. package/dist/module/components/Button.js.map +1 -1
  170. package/dist/module/components/FlatList.js +5 -4
  171. package/dist/module/components/FlatList.js.map +1 -1
  172. package/dist/module/components/Image.js +1 -1
  173. package/dist/module/components/Image.js.map +1 -1
  174. package/dist/module/components/ImageBackground.js +17 -0
  175. package/dist/module/components/ImageBackground.js.map +1 -0
  176. package/dist/module/components/KeyboardAvoidingView.js +14 -0
  177. package/dist/module/components/KeyboardAvoidingView.js.map +1 -0
  178. package/dist/module/components/Pressable.js +12 -0
  179. package/dist/module/components/Pressable.js.map +1 -0
  180. package/dist/module/components/ScrollView.js +13 -0
  181. package/dist/module/components/ScrollView.js.map +1 -0
  182. package/dist/module/components/Switch.js +1 -1
  183. package/dist/module/components/Switch.js.map +1 -1
  184. package/dist/module/components/Text.js +1 -1
  185. package/dist/module/components/Text.js.map +1 -1
  186. package/dist/module/components/TextInput.js +7 -2
  187. package/dist/module/components/TextInput.js.map +1 -1
  188. package/dist/module/components/TouchableHighlight.js +12 -0
  189. package/dist/module/components/TouchableHighlight.js.map +1 -0
  190. package/dist/module/components/TouchableOpacity.js +12 -0
  191. package/dist/module/components/TouchableOpacity.js.map +1 -0
  192. package/dist/module/components/TouchableWithoutFeedback.js +12 -0
  193. package/dist/module/components/TouchableWithoutFeedback.js.map +1 -0
  194. package/dist/module/components/View.js +1 -1
  195. package/dist/module/components/View.js.map +1 -1
  196. package/dist/module/components/VirtualizedList.js +15 -0
  197. package/dist/module/components/VirtualizedList.js.map +1 -0
  198. package/dist/module/components/index.js +8 -0
  199. package/dist/module/components/index.js.map +1 -1
  200. package/dist/module/components/react-native-safe-area-context.native.js +2 -2
  201. package/dist/module/components/react-native-safe-area-context.native.js.map +1 -1
  202. package/dist/module/index.js +1 -2
  203. package/dist/module/index.js.map +1 -1
  204. package/dist/module/jest/index.js +3 -3
  205. package/dist/module/jest/index.js.map +1 -1
  206. package/dist/module/metro/index.js +12 -12
  207. package/dist/module/metro/index.js.map +1 -1
  208. package/dist/module/metro/injection-code.js +1 -1
  209. package/dist/module/metro/injection-code.js.map +1 -1
  210. package/dist/module/native/api.js +82 -0
  211. package/dist/module/native/api.js.map +1 -0
  212. package/dist/module/native/conditions/attributes.js +40 -0
  213. package/dist/module/native/conditions/attributes.js.map +1 -0
  214. package/dist/module/native/conditions/container-query.js.map +1 -0
  215. package/dist/module/native/conditions/guards.js.map +1 -0
  216. package/dist/module/native/conditions/index.js.map +1 -0
  217. package/dist/module/native/conditions/media-query.js.map +1 -0
  218. package/dist/module/native/index.js.map +1 -0
  219. package/dist/module/native/metro.js.map +1 -0
  220. package/dist/module/native/objects.js.map +1 -0
  221. package/dist/module/native/react/interaction.js.map +1 -0
  222. package/dist/module/native/react/rules.js +252 -0
  223. package/dist/module/native/react/rules.js.map +1 -0
  224. package/dist/module/native/react/useNativeCss.js +154 -0
  225. package/dist/module/native/react/useNativeCss.js.map +1 -0
  226. package/dist/module/native/react/usePassthrough.js.map +1 -0
  227. package/dist/module/native/reactivity.js +169 -0
  228. package/dist/module/native/reactivity.js.map +1 -0
  229. package/dist/module/native/reanimated.js.map +1 -0
  230. package/dist/module/native/styles/calculate-props.js +157 -0
  231. package/dist/module/native/styles/calculate-props.js.map +1 -0
  232. package/dist/module/native/styles/constants.js.map +1 -0
  233. package/dist/module/native/styles/defaults.js.map +1 -0
  234. package/dist/module/native/styles/functions/animation-timing.js.map +1 -0
  235. package/dist/module/native/styles/functions/calc.js.map +1 -0
  236. package/dist/module/native/styles/functions/filters.js +70 -0
  237. package/dist/module/native/styles/functions/filters.js.map +1 -0
  238. package/dist/module/native/styles/functions/index.js.map +1 -0
  239. package/dist/module/native/styles/functions/numeric-functions.js.map +1 -0
  240. package/dist/module/native/styles/functions/platform-functions.js.map +1 -0
  241. package/dist/module/native/styles/functions/string-functions.js.map +1 -0
  242. package/dist/module/native/styles/functions/transform-functions.js +114 -0
  243. package/dist/module/native/styles/functions/transform-functions.js.map +1 -0
  244. package/dist/module/native/styles/index.js +110 -0
  245. package/dist/module/native/styles/index.js.map +1 -0
  246. package/dist/module/native/styles/line-height.js +20 -0
  247. package/dist/module/native/styles/line-height.js.map +1 -0
  248. package/dist/module/native/styles/resolve.js +103 -0
  249. package/dist/module/native/styles/resolve.js.map +1 -0
  250. package/dist/module/native/styles/shorthands/_handler.js +74 -0
  251. package/dist/module/native/styles/shorthands/_handler.js.map +1 -0
  252. package/dist/module/native/styles/shorthands/animation.js +51 -0
  253. package/dist/module/native/styles/shorthands/animation.js.map +1 -0
  254. package/dist/module/native/styles/shorthands/border.js.map +1 -0
  255. package/dist/module/native/styles/shorthands/box-shadow.js +43 -0
  256. package/dist/module/native/styles/shorthands/box-shadow.js.map +1 -0
  257. package/dist/module/native/styles/shorthands/index.js.map +1 -0
  258. package/dist/module/native/styles/shorthands/text-shadow.js.map +1 -0
  259. package/dist/module/native/styles/shorthands/transform.js.map +1 -0
  260. package/dist/module/native/styles/units.js.map +1 -0
  261. package/dist/module/native/styles/variables.js +75 -0
  262. package/dist/module/native/styles/variables.js.map +1 -0
  263. package/dist/module/native-internal/README.md +11 -0
  264. package/dist/module/native-internal/index.js +6 -0
  265. package/dist/module/native-internal/index.js.map +1 -0
  266. package/dist/module/native-internal/root.js +30 -0
  267. package/dist/module/native-internal/root.js.map +1 -0
  268. package/dist/module/native-internal/style-collection.js +95 -0
  269. package/dist/module/native-internal/style-collection.js.map +1 -0
  270. package/dist/module/native-internal/variables.js +22 -0
  271. package/dist/module/native-internal/variables.js.map +1 -0
  272. package/dist/module/runtime/native/injection.js +2 -0
  273. package/dist/module/runtime/native/injection.js.map +1 -0
  274. package/dist/module/runtime.js.map +1 -0
  275. package/dist/module/runtime.native.js.map +1 -0
  276. package/dist/module/runtime.types.js.map +1 -0
  277. package/dist/module/utilities/dot-notation.types.js.map +1 -0
  278. package/dist/module/utilities/index.js +6 -0
  279. package/dist/module/utilities/index.js.map +1 -0
  280. package/dist/module/utilities/specificity.js.map +1 -0
  281. package/dist/module/utilities/style-descriptor.js +16 -0
  282. package/dist/module/utilities/style-descriptor.js.map +1 -0
  283. package/dist/module/web/api.js.map +1 -0
  284. package/dist/module/web/assign-style.js.map +1 -0
  285. package/dist/module/web/index.js.map +1 -0
  286. package/dist/module/web/metro.js.map +1 -0
  287. package/dist/typescript/commonjs/example/app.config.d.ts.map +1 -1
  288. package/dist/typescript/commonjs/example/src/App.d.ts +0 -1
  289. package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -1
  290. package/dist/typescript/commonjs/src/babel/index.d.ts +3 -0
  291. package/dist/typescript/commonjs/src/babel/index.d.ts.map +1 -1
  292. package/dist/typescript/commonjs/src/compiler/atRules.d.ts +1 -1
  293. package/dist/typescript/commonjs/src/compiler/atRules.d.ts.map +1 -1
  294. package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -1
  295. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +11 -7
  296. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -1
  297. package/dist/typescript/commonjs/src/compiler/declarations.d.ts +7 -7
  298. package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -1
  299. package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts +4 -0
  300. package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts.map +1 -0
  301. package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts +30 -0
  302. package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts.map +1 -0
  303. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts +1 -1
  304. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -1
  305. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +2 -1
  306. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -1
  307. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +3 -10
  308. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -1
  309. package/dist/typescript/commonjs/src/components/Button.d.ts +3 -10
  310. package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -1
  311. package/dist/typescript/commonjs/src/components/FlatList.d.ts +3 -7
  312. package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -1
  313. package/dist/typescript/commonjs/src/components/Image.d.ts +3 -5
  314. package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -1
  315. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts +6 -0
  316. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts.map +1 -0
  317. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts +6 -0
  318. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts.map +1 -0
  319. package/dist/typescript/commonjs/src/components/Pressable.d.ts +6 -0
  320. package/dist/typescript/commonjs/src/components/Pressable.d.ts.map +1 -0
  321. package/dist/typescript/commonjs/src/components/ScrollView.d.ts +6 -0
  322. package/dist/typescript/commonjs/src/components/ScrollView.d.ts.map +1 -0
  323. package/dist/typescript/commonjs/src/components/Text.d.ts +2 -2
  324. package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -1
  325. package/dist/typescript/commonjs/src/components/TextInput.d.ts +3 -5
  326. package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -1
  327. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts +6 -0
  328. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts.map +1 -0
  329. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts +6 -0
  330. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts.map +1 -0
  331. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts +6 -0
  332. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
  333. package/dist/typescript/commonjs/src/components/View.d.ts +2 -2
  334. package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -1
  335. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts +6 -0
  336. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts.map +1 -0
  337. package/dist/typescript/commonjs/src/components/index.d.ts +8 -0
  338. package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -1
  339. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts.map +1 -1
  340. package/dist/typescript/commonjs/src/index.d.ts +0 -1
  341. package/dist/typescript/commonjs/src/index.d.ts.map +1 -1
  342. package/dist/typescript/commonjs/src/jest/index.d.ts +1 -1
  343. package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -1
  344. package/dist/typescript/commonjs/src/metro/index.d.ts +1 -1
  345. package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -1
  346. package/dist/typescript/commonjs/src/native/api.d.ts +26 -0
  347. package/dist/typescript/commonjs/src/native/api.d.ts.map +1 -0
  348. package/dist/typescript/commonjs/src/native/conditions/attributes.d.ts +4 -0
  349. package/dist/typescript/commonjs/src/native/conditions/attributes.d.ts.map +1 -0
  350. package/dist/typescript/commonjs/src/native/conditions/container-query.d.ts +7 -0
  351. package/dist/typescript/commonjs/src/native/conditions/container-query.d.ts.map +1 -0
  352. package/dist/typescript/commonjs/src/native/conditions/guards.d.ts.map +1 -0
  353. package/dist/typescript/commonjs/src/native/conditions/index.d.ts +6 -0
  354. package/dist/typescript/commonjs/src/native/conditions/index.d.ts.map +1 -0
  355. package/dist/typescript/commonjs/src/native/conditions/media-query.d.ts +4 -0
  356. package/dist/typescript/commonjs/src/native/conditions/media-query.d.ts.map +1 -0
  357. package/dist/typescript/commonjs/src/native/index.d.ts.map +1 -0
  358. package/dist/typescript/commonjs/src/native/metro.d.ts.map +1 -0
  359. package/dist/typescript/commonjs/src/native/objects.d.ts.map +1 -0
  360. package/dist/typescript/commonjs/src/native/react/interaction.d.ts.map +1 -0
  361. package/dist/typescript/commonjs/src/native/react/rules.d.ts.map +1 -0
  362. package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts +38 -0
  363. package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts.map +1 -0
  364. package/dist/typescript/commonjs/src/native/react/usePassthrough.d.ts.map +1 -0
  365. package/dist/typescript/commonjs/src/native/reactivity.d.ts +52 -0
  366. package/dist/typescript/commonjs/src/native/reactivity.d.ts.map +1 -0
  367. package/dist/typescript/commonjs/src/native/reanimated.d.ts.map +1 -0
  368. package/dist/typescript/commonjs/src/native/styles/calculate-props.d.ts +10 -0
  369. package/dist/typescript/commonjs/src/native/styles/calculate-props.d.ts.map +1 -0
  370. package/dist/typescript/commonjs/src/native/styles/constants.d.ts.map +1 -0
  371. package/dist/typescript/commonjs/src/native/styles/defaults.d.ts.map +1 -0
  372. package/dist/typescript/commonjs/src/native/styles/functions/animation-timing.d.ts.map +1 -0
  373. package/dist/typescript/commonjs/src/native/styles/functions/calc.d.ts.map +1 -0
  374. package/dist/typescript/commonjs/src/native/styles/functions/filters.d.ts.map +1 -0
  375. package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts.map +1 -0
  376. package/dist/typescript/commonjs/src/native/styles/functions/numeric-functions.d.ts.map +1 -0
  377. package/dist/typescript/commonjs/src/native/styles/functions/platform-functions.d.ts.map +1 -0
  378. package/dist/typescript/commonjs/src/native/styles/functions/string-functions.d.ts.map +1 -0
  379. package/dist/typescript/commonjs/src/native/styles/functions/transform-functions.d.ts.map +1 -0
  380. package/dist/typescript/commonjs/src/native/styles/index.d.ts +19 -0
  381. package/dist/typescript/commonjs/src/native/styles/index.d.ts.map +1 -0
  382. package/dist/typescript/commonjs/src/native/styles/line-height.d.ts +3 -0
  383. package/dist/typescript/commonjs/src/native/styles/line-height.d.ts.map +1 -0
  384. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts +18 -0
  385. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts.map +1 -0
  386. package/dist/typescript/commonjs/src/native/styles/shorthands/_handler.d.ts.map +1 -0
  387. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts.map +1 -0
  388. package/dist/typescript/commonjs/src/native/styles/shorthands/border.d.ts.map +1 -0
  389. package/dist/typescript/commonjs/src/native/styles/shorthands/box-shadow.d.ts.map +1 -0
  390. package/dist/typescript/commonjs/src/native/styles/shorthands/index.d.ts.map +1 -0
  391. package/dist/typescript/commonjs/src/native/styles/shorthands/text-shadow.d.ts.map +1 -0
  392. package/dist/typescript/commonjs/src/native/styles/shorthands/transform.d.ts.map +1 -0
  393. package/dist/typescript/commonjs/src/native/styles/units.d.ts.map +1 -0
  394. package/dist/typescript/commonjs/src/native/styles/variables.d.ts +5 -0
  395. package/dist/typescript/commonjs/src/native/styles/variables.d.ts.map +1 -0
  396. package/dist/typescript/commonjs/src/native-internal/index.d.ts +4 -0
  397. package/dist/typescript/commonjs/src/native-internal/index.d.ts.map +1 -0
  398. package/dist/typescript/commonjs/src/native-internal/root.d.ts +11 -0
  399. package/dist/typescript/commonjs/src/native-internal/root.d.ts.map +1 -0
  400. package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts +16 -0
  401. package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts.map +1 -0
  402. package/dist/typescript/commonjs/src/native-internal/variables.d.ts +8 -0
  403. package/dist/typescript/commonjs/src/native-internal/variables.d.ts.map +1 -0
  404. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts +1 -0
  405. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts.map +1 -0
  406. package/dist/typescript/commonjs/src/runtime.d.ts.map +1 -0
  407. package/dist/typescript/commonjs/src/runtime.native.d.ts.map +1 -0
  408. package/dist/typescript/commonjs/src/runtime.types.d.ts +49 -0
  409. package/dist/typescript/commonjs/src/runtime.types.d.ts.map +1 -0
  410. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts.map +1 -0
  411. package/dist/typescript/commonjs/src/utilities/index.d.ts +4 -0
  412. package/dist/typescript/commonjs/src/utilities/index.d.ts.map +1 -0
  413. package/dist/typescript/commonjs/src/utilities/specificity.d.ts +13 -0
  414. package/dist/typescript/commonjs/src/utilities/specificity.d.ts.map +1 -0
  415. package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts +4 -0
  416. package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts.map +1 -0
  417. package/dist/typescript/commonjs/src/web/api.d.ts +16 -0
  418. package/dist/typescript/commonjs/src/web/api.d.ts.map +1 -0
  419. package/dist/typescript/commonjs/src/web/assign-style.d.ts.map +1 -0
  420. package/dist/typescript/commonjs/src/web/index.d.ts.map +1 -0
  421. package/dist/typescript/commonjs/src/web/metro.d.ts.map +1 -0
  422. package/dist/typescript/module/example/app.config.d.ts.map +1 -1
  423. package/dist/typescript/module/example/src/App.d.ts +0 -1
  424. package/dist/typescript/module/example/src/App.d.ts.map +1 -1
  425. package/dist/typescript/module/src/babel/index.d.ts +3 -0
  426. package/dist/typescript/module/src/babel/index.d.ts.map +1 -1
  427. package/dist/typescript/module/src/compiler/atRules.d.ts +1 -1
  428. package/dist/typescript/module/src/compiler/atRules.d.ts.map +1 -1
  429. package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -1
  430. package/dist/typescript/module/src/compiler/compiler.types.d.ts +11 -7
  431. package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -1
  432. package/dist/typescript/module/src/compiler/declarations.d.ts +7 -7
  433. package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -1
  434. package/dist/typescript/module/src/compiler/inline-variables.d.ts +4 -0
  435. package/dist/typescript/module/src/compiler/inline-variables.d.ts.map +1 -0
  436. package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts +30 -0
  437. package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts.map +1 -0
  438. package/dist/typescript/module/src/compiler/selector-builder.d.ts +1 -1
  439. package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -1
  440. package/dist/typescript/module/src/compiler/stylesheet.d.ts +2 -1
  441. package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -1
  442. package/dist/typescript/module/src/components/ActivityIndicator.d.ts +3 -10
  443. package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -1
  444. package/dist/typescript/module/src/components/Button.d.ts +3 -10
  445. package/dist/typescript/module/src/components/Button.d.ts.map +1 -1
  446. package/dist/typescript/module/src/components/FlatList.d.ts +3 -7
  447. package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -1
  448. package/dist/typescript/module/src/components/Image.d.ts +3 -5
  449. package/dist/typescript/module/src/components/Image.d.ts.map +1 -1
  450. package/dist/typescript/module/src/components/ImageBackground.d.ts +6 -0
  451. package/dist/typescript/module/src/components/ImageBackground.d.ts.map +1 -0
  452. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts +6 -0
  453. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts.map +1 -0
  454. package/dist/typescript/module/src/components/Pressable.d.ts +6 -0
  455. package/dist/typescript/module/src/components/Pressable.d.ts.map +1 -0
  456. package/dist/typescript/module/src/components/ScrollView.d.ts +6 -0
  457. package/dist/typescript/module/src/components/ScrollView.d.ts.map +1 -0
  458. package/dist/typescript/module/src/components/Text.d.ts +2 -2
  459. package/dist/typescript/module/src/components/Text.d.ts.map +1 -1
  460. package/dist/typescript/module/src/components/TextInput.d.ts +3 -5
  461. package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -1
  462. package/dist/typescript/module/src/components/TouchableHighlight.d.ts +6 -0
  463. package/dist/typescript/module/src/components/TouchableHighlight.d.ts.map +1 -0
  464. package/dist/typescript/module/src/components/TouchableOpacity.d.ts +6 -0
  465. package/dist/typescript/module/src/components/TouchableOpacity.d.ts.map +1 -0
  466. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts +6 -0
  467. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
  468. package/dist/typescript/module/src/components/View.d.ts +2 -2
  469. package/dist/typescript/module/src/components/View.d.ts.map +1 -1
  470. package/dist/typescript/module/src/components/VirtualizedList.d.ts +6 -0
  471. package/dist/typescript/module/src/components/VirtualizedList.d.ts.map +1 -0
  472. package/dist/typescript/module/src/components/index.d.ts +8 -0
  473. package/dist/typescript/module/src/components/index.d.ts.map +1 -1
  474. package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts.map +1 -1
  475. package/dist/typescript/module/src/index.d.ts +0 -1
  476. package/dist/typescript/module/src/index.d.ts.map +1 -1
  477. package/dist/typescript/module/src/jest/index.d.ts +1 -1
  478. package/dist/typescript/module/src/jest/index.d.ts.map +1 -1
  479. package/dist/typescript/module/src/metro/index.d.ts +1 -1
  480. package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
  481. package/dist/typescript/module/src/native/api.d.ts +26 -0
  482. package/dist/typescript/module/src/native/api.d.ts.map +1 -0
  483. package/dist/typescript/module/src/native/conditions/attributes.d.ts +4 -0
  484. package/dist/typescript/module/src/native/conditions/attributes.d.ts.map +1 -0
  485. package/dist/typescript/module/src/native/conditions/container-query.d.ts +7 -0
  486. package/dist/typescript/module/src/native/conditions/container-query.d.ts.map +1 -0
  487. package/dist/typescript/module/src/native/conditions/guards.d.ts.map +1 -0
  488. package/dist/typescript/module/src/native/conditions/index.d.ts +6 -0
  489. package/dist/typescript/module/src/native/conditions/index.d.ts.map +1 -0
  490. package/dist/typescript/module/src/native/conditions/media-query.d.ts +4 -0
  491. package/dist/typescript/module/src/native/conditions/media-query.d.ts.map +1 -0
  492. package/dist/typescript/module/src/native/index.d.ts.map +1 -0
  493. package/dist/typescript/module/src/native/metro.d.ts.map +1 -0
  494. package/dist/typescript/module/src/native/objects.d.ts.map +1 -0
  495. package/dist/typescript/module/src/native/react/interaction.d.ts.map +1 -0
  496. package/dist/typescript/module/src/native/react/rules.d.ts.map +1 -0
  497. package/dist/typescript/module/src/native/react/useNativeCss.d.ts +38 -0
  498. package/dist/typescript/module/src/native/react/useNativeCss.d.ts.map +1 -0
  499. package/dist/typescript/module/src/native/react/usePassthrough.d.ts.map +1 -0
  500. package/dist/typescript/module/src/native/reactivity.d.ts +52 -0
  501. package/dist/typescript/module/src/native/reactivity.d.ts.map +1 -0
  502. package/dist/typescript/module/src/native/reanimated.d.ts.map +1 -0
  503. package/dist/typescript/module/src/native/styles/calculate-props.d.ts +10 -0
  504. package/dist/typescript/module/src/native/styles/calculate-props.d.ts.map +1 -0
  505. package/dist/typescript/module/src/native/styles/constants.d.ts.map +1 -0
  506. package/dist/typescript/module/src/native/styles/defaults.d.ts.map +1 -0
  507. package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts.map +1 -0
  508. package/dist/typescript/module/src/native/styles/functions/calc.d.ts.map +1 -0
  509. package/dist/typescript/module/src/native/styles/functions/filters.d.ts.map +1 -0
  510. package/dist/typescript/module/src/native/styles/functions/index.d.ts.map +1 -0
  511. package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts.map +1 -0
  512. package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts.map +1 -0
  513. package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts.map +1 -0
  514. package/dist/typescript/module/src/native/styles/functions/transform-functions.d.ts.map +1 -0
  515. package/dist/typescript/module/src/native/styles/index.d.ts +19 -0
  516. package/dist/typescript/module/src/native/styles/index.d.ts.map +1 -0
  517. package/dist/typescript/module/src/native/styles/line-height.d.ts +3 -0
  518. package/dist/typescript/module/src/native/styles/line-height.d.ts.map +1 -0
  519. package/dist/typescript/module/src/native/styles/resolve.d.ts +18 -0
  520. package/dist/typescript/module/src/native/styles/resolve.d.ts.map +1 -0
  521. package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts.map +1 -0
  522. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts.map +1 -0
  523. package/dist/typescript/module/src/native/styles/shorthands/border.d.ts.map +1 -0
  524. package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts.map +1 -0
  525. package/dist/typescript/module/src/native/styles/shorthands/index.d.ts.map +1 -0
  526. package/dist/typescript/module/src/native/styles/shorthands/text-shadow.d.ts.map +1 -0
  527. package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts.map +1 -0
  528. package/dist/typescript/module/src/native/styles/units.d.ts.map +1 -0
  529. package/dist/typescript/module/src/native/styles/variables.d.ts +5 -0
  530. package/dist/typescript/module/src/native/styles/variables.d.ts.map +1 -0
  531. package/dist/typescript/module/src/native-internal/index.d.ts +4 -0
  532. package/dist/typescript/module/src/native-internal/index.d.ts.map +1 -0
  533. package/dist/typescript/module/src/native-internal/root.d.ts +11 -0
  534. package/dist/typescript/module/src/native-internal/root.d.ts.map +1 -0
  535. package/dist/typescript/module/src/native-internal/style-collection.d.ts +16 -0
  536. package/dist/typescript/module/src/native-internal/style-collection.d.ts.map +1 -0
  537. package/dist/typescript/module/src/native-internal/variables.d.ts +8 -0
  538. package/dist/typescript/module/src/native-internal/variables.d.ts.map +1 -0
  539. package/dist/typescript/module/src/runtime/native/injection.d.ts +1 -0
  540. package/dist/typescript/module/src/runtime/native/injection.d.ts.map +1 -0
  541. package/dist/typescript/module/src/runtime.d.ts.map +1 -0
  542. package/dist/typescript/module/src/runtime.native.d.ts.map +1 -0
  543. package/dist/typescript/module/src/runtime.types.d.ts +49 -0
  544. package/dist/typescript/module/src/runtime.types.d.ts.map +1 -0
  545. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts.map +1 -0
  546. package/dist/typescript/module/src/utilities/index.d.ts +4 -0
  547. package/dist/typescript/module/src/utilities/index.d.ts.map +1 -0
  548. package/dist/typescript/module/src/utilities/specificity.d.ts +13 -0
  549. package/dist/typescript/module/src/utilities/specificity.d.ts.map +1 -0
  550. package/dist/typescript/module/src/utilities/style-descriptor.d.ts +4 -0
  551. package/dist/typescript/module/src/utilities/style-descriptor.d.ts.map +1 -0
  552. package/dist/typescript/module/src/web/api.d.ts +16 -0
  553. package/dist/typescript/module/src/web/api.d.ts.map +1 -0
  554. package/dist/typescript/module/src/web/assign-style.d.ts.map +1 -0
  555. package/dist/typescript/module/src/web/index.d.ts.map +1 -0
  556. package/dist/typescript/module/src/web/metro.d.ts.map +1 -0
  557. package/package.json +85 -54
  558. package/src/babel/index.ts +2 -2
  559. package/src/compiler/atRules.ts +15 -27
  560. package/src/compiler/compiler.ts +115 -42
  561. package/src/compiler/compiler.types.ts +16 -7
  562. package/src/compiler/declarations.ts +105 -94
  563. package/src/compiler/inline-variables.ts +209 -0
  564. package/src/compiler/lightningcss-loader.ts +40 -0
  565. package/src/compiler/pseudo-elements.ts +1 -1
  566. package/src/compiler/selector-builder.ts +14 -8
  567. package/src/compiler/selectors.ts +1 -1
  568. package/src/compiler/stylesheet.ts +7 -12
  569. package/src/components/ActivityIndicator.tsx +2 -2
  570. package/src/components/Button.tsx +2 -2
  571. package/src/components/FlatList.tsx +6 -5
  572. package/src/components/Image.tsx +2 -2
  573. package/src/components/ImageBackground.tsx +27 -0
  574. package/src/components/KeyboardAvoidingView.tsx +24 -0
  575. package/src/components/Pressable.tsx +17 -0
  576. package/src/components/ScrollView.tsx +20 -0
  577. package/src/components/Text.tsx +1 -1
  578. package/src/components/TextInput.tsx +8 -3
  579. package/src/components/TouchableHighlight.tsx +22 -0
  580. package/src/components/TouchableOpacity.tsx +22 -0
  581. package/src/components/TouchableWithoutFeedback.tsx +22 -0
  582. package/src/components/View.tsx +1 -1
  583. package/src/components/VirtualizedList.tsx +25 -0
  584. package/src/components/index.tsx +8 -0
  585. package/src/components/react-native-safe-area-context.native.tsx +7 -3
  586. package/src/index.ts +0 -2
  587. package/src/jest/index.ts +4 -4
  588. package/src/metro/index.ts +20 -18
  589. package/src/metro/injection-code.ts +1 -1
  590. package/src/native/api.tsx +120 -0
  591. package/src/native/conditions/attributes.ts +54 -0
  592. package/src/native/conditions/container-query.ts +162 -0
  593. package/src/native/conditions/index.ts +55 -0
  594. package/src/native/conditions/media-query.ts +99 -0
  595. package/src/native/react/rules.ts +336 -0
  596. package/src/native/react/useNativeCss.ts +204 -0
  597. package/src/native/reactivity.ts +248 -0
  598. package/src/native/styles/calculate-props.ts +217 -0
  599. package/src/native/styles/functions/filters.ts +99 -0
  600. package/src/native/styles/functions/transform-functions.ts +85 -0
  601. package/src/native/styles/index.ts +198 -0
  602. package/src/native/styles/line-height.ts +25 -0
  603. package/src/native/styles/resolve.ts +165 -0
  604. package/src/native/styles/shorthands/_handler.ts +122 -0
  605. package/src/native/styles/shorthands/animation.ts +123 -0
  606. package/src/native/styles/shorthands/box-shadow.ts +71 -0
  607. package/src/native/styles/variables.ts +88 -0
  608. package/src/native-internal/README.md +11 -0
  609. package/src/native-internal/index.ts +3 -0
  610. package/src/native-internal/root.ts +44 -0
  611. package/src/native-internal/style-collection.ts +148 -0
  612. package/src/native-internal/variables.tsx +36 -0
  613. package/src/runtime/native/injection.ts +0 -0
  614. package/src/runtime.types.ts +150 -0
  615. package/src/utilities/index.ts +3 -0
  616. package/src/utilities/specificity.ts +45 -0
  617. package/src/utilities/style-descriptor.ts +24 -0
  618. package/src/web/api.tsx +115 -0
  619. package/dist/commonjs/runtime/index.js +0 -17
  620. package/dist/commonjs/runtime/index.js.map +0 -1
  621. package/dist/commonjs/runtime/native/api.js +0 -115
  622. package/dist/commonjs/runtime/native/api.js.map +0 -1
  623. package/dist/commonjs/runtime/native/conditions/attributes.js +0 -42
  624. package/dist/commonjs/runtime/native/conditions/attributes.js.map +0 -1
  625. package/dist/commonjs/runtime/native/conditions/container-query.js.map +0 -1
  626. package/dist/commonjs/runtime/native/conditions/guards.js.map +0 -1
  627. package/dist/commonjs/runtime/native/conditions/index.js.map +0 -1
  628. package/dist/commonjs/runtime/native/conditions/media-query.js.map +0 -1
  629. package/dist/commonjs/runtime/native/index.js.map +0 -1
  630. package/dist/commonjs/runtime/native/metro.js.map +0 -1
  631. package/dist/commonjs/runtime/native/react/interaction.js.map +0 -1
  632. package/dist/commonjs/runtime/native/react/rules.js +0 -259
  633. package/dist/commonjs/runtime/native/react/rules.js.map +0 -1
  634. package/dist/commonjs/runtime/native/react/useNativeCss.js +0 -159
  635. package/dist/commonjs/runtime/native/react/useNativeCss.js.map +0 -1
  636. package/dist/commonjs/runtime/native/react/usePassthrough.js.map +0 -1
  637. package/dist/commonjs/runtime/native/reactivity.js +0 -185
  638. package/dist/commonjs/runtime/native/reactivity.js.map +0 -1
  639. package/dist/commonjs/runtime/native/reanimated.js.map +0 -1
  640. package/dist/commonjs/runtime/native/styles/calculate-props.js +0 -148
  641. package/dist/commonjs/runtime/native/styles/calculate-props.js.map +0 -1
  642. package/dist/commonjs/runtime/native/styles/constants.js.map +0 -1
  643. package/dist/commonjs/runtime/native/styles/defaults.js.map +0 -1
  644. package/dist/commonjs/runtime/native/styles/functions/animation-timing.js.map +0 -1
  645. package/dist/commonjs/runtime/native/styles/functions/calc.js.map +0 -1
  646. package/dist/commonjs/runtime/native/styles/functions/filters.js +0 -84
  647. package/dist/commonjs/runtime/native/styles/functions/filters.js.map +0 -1
  648. package/dist/commonjs/runtime/native/styles/functions/index.js.map +0 -1
  649. package/dist/commonjs/runtime/native/styles/functions/numeric-functions.js.map +0 -1
  650. package/dist/commonjs/runtime/native/styles/functions/platform-functions.js.map +0 -1
  651. package/dist/commonjs/runtime/native/styles/functions/string-functions.js.map +0 -1
  652. package/dist/commonjs/runtime/native/styles/functions/transform-functions.js +0 -121
  653. package/dist/commonjs/runtime/native/styles/functions/transform-functions.js.map +0 -1
  654. package/dist/commonjs/runtime/native/styles/index.js +0 -115
  655. package/dist/commonjs/runtime/native/styles/index.js.map +0 -1
  656. package/dist/commonjs/runtime/native/styles/resolve.js +0 -106
  657. package/dist/commonjs/runtime/native/styles/resolve.js.map +0 -1
  658. package/dist/commonjs/runtime/native/styles/shorthands/_handler.js +0 -79
  659. package/dist/commonjs/runtime/native/styles/shorthands/_handler.js.map +0 -1
  660. package/dist/commonjs/runtime/native/styles/shorthands/animation.js +0 -57
  661. package/dist/commonjs/runtime/native/styles/shorthands/animation.js.map +0 -1
  662. package/dist/commonjs/runtime/native/styles/shorthands/border.js.map +0 -1
  663. package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js +0 -50
  664. package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js.map +0 -1
  665. package/dist/commonjs/runtime/native/styles/shorthands/index.js.map +0 -1
  666. package/dist/commonjs/runtime/native/styles/shorthands/text-shadow.js.map +0 -1
  667. package/dist/commonjs/runtime/native/styles/shorthands/transform.js.map +0 -1
  668. package/dist/commonjs/runtime/native/styles/units.js.map +0 -1
  669. package/dist/commonjs/runtime/native/styles/variables.js +0 -79
  670. package/dist/commonjs/runtime/native/styles/variables.js.map +0 -1
  671. package/dist/commonjs/runtime/runtime.js.map +0 -1
  672. package/dist/commonjs/runtime/runtime.native.js.map +0 -1
  673. package/dist/commonjs/runtime/runtime.types.js.map +0 -1
  674. package/dist/commonjs/runtime/utils/components.js +0 -18
  675. package/dist/commonjs/runtime/utils/components.js.map +0 -1
  676. package/dist/commonjs/runtime/utils/dot-notation.types.js.map +0 -1
  677. package/dist/commonjs/runtime/utils/index.js +0 -61
  678. package/dist/commonjs/runtime/utils/index.js.map +0 -1
  679. package/dist/commonjs/runtime/utils/objects.js.map +0 -1
  680. package/dist/commonjs/runtime/utils/specificity.js.map +0 -1
  681. package/dist/commonjs/runtime/utils/style-value.js +0 -21
  682. package/dist/commonjs/runtime/utils/style-value.js.map +0 -1
  683. package/dist/commonjs/runtime/utils/utils.types.js +0 -6
  684. package/dist/commonjs/runtime/utils/utils.types.js.map +0 -1
  685. package/dist/commonjs/runtime/web/api.js.map +0 -1
  686. package/dist/commonjs/runtime/web/assign-style.js.map +0 -1
  687. package/dist/commonjs/runtime/web/index.js.map +0 -1
  688. package/dist/commonjs/runtime/web/metro.js.map +0 -1
  689. package/dist/commonjs/style-collection/index.js +0 -110
  690. package/dist/commonjs/style-collection/index.js.map +0 -1
  691. package/dist/commonjs/style-collection/root.js +0 -29
  692. package/dist/commonjs/style-collection/root.js.map +0 -1
  693. package/dist/module/runtime/index.js +0 -9
  694. package/dist/module/runtime/index.js.map +0 -1
  695. package/dist/module/runtime/native/api.js +0 -94
  696. package/dist/module/runtime/native/api.js.map +0 -1
  697. package/dist/module/runtime/native/conditions/attributes.js +0 -38
  698. package/dist/module/runtime/native/conditions/attributes.js.map +0 -1
  699. package/dist/module/runtime/native/conditions/container-query.js.map +0 -1
  700. package/dist/module/runtime/native/conditions/guards.js.map +0 -1
  701. package/dist/module/runtime/native/conditions/index.js.map +0 -1
  702. package/dist/module/runtime/native/conditions/media-query.js.map +0 -1
  703. package/dist/module/runtime/native/index.js.map +0 -1
  704. package/dist/module/runtime/native/metro.js.map +0 -1
  705. package/dist/module/runtime/native/react/interaction.js.map +0 -1
  706. package/dist/module/runtime/native/react/rules.js +0 -251
  707. package/dist/module/runtime/native/react/rules.js.map +0 -1
  708. package/dist/module/runtime/native/react/useNativeCss.js +0 -153
  709. package/dist/module/runtime/native/react/useNativeCss.js.map +0 -1
  710. package/dist/module/runtime/native/react/usePassthrough.js.map +0 -1
  711. package/dist/module/runtime/native/reactivity.js +0 -173
  712. package/dist/module/runtime/native/reactivity.js.map +0 -1
  713. package/dist/module/runtime/native/reanimated.js.map +0 -1
  714. package/dist/module/runtime/native/styles/calculate-props.js +0 -143
  715. package/dist/module/runtime/native/styles/calculate-props.js.map +0 -1
  716. package/dist/module/runtime/native/styles/constants.js.map +0 -1
  717. package/dist/module/runtime/native/styles/defaults.js.map +0 -1
  718. package/dist/module/runtime/native/styles/functions/animation-timing.js.map +0 -1
  719. package/dist/module/runtime/native/styles/functions/calc.js.map +0 -1
  720. package/dist/module/runtime/native/styles/functions/filters.js +0 -70
  721. package/dist/module/runtime/native/styles/functions/filters.js.map +0 -1
  722. package/dist/module/runtime/native/styles/functions/index.js.map +0 -1
  723. package/dist/module/runtime/native/styles/functions/numeric-functions.js.map +0 -1
  724. package/dist/module/runtime/native/styles/functions/platform-functions.js.map +0 -1
  725. package/dist/module/runtime/native/styles/functions/string-functions.js.map +0 -1
  726. package/dist/module/runtime/native/styles/functions/transform-functions.js +0 -114
  727. package/dist/module/runtime/native/styles/functions/transform-functions.js.map +0 -1
  728. package/dist/module/runtime/native/styles/index.js +0 -110
  729. package/dist/module/runtime/native/styles/index.js.map +0 -1
  730. package/dist/module/runtime/native/styles/resolve.js +0 -101
  731. package/dist/module/runtime/native/styles/resolve.js.map +0 -1
  732. package/dist/module/runtime/native/styles/shorthands/_handler.js +0 -74
  733. package/dist/module/runtime/native/styles/shorthands/_handler.js.map +0 -1
  734. package/dist/module/runtime/native/styles/shorthands/animation.js +0 -51
  735. package/dist/module/runtime/native/styles/shorthands/animation.js.map +0 -1
  736. package/dist/module/runtime/native/styles/shorthands/border.js.map +0 -1
  737. package/dist/module/runtime/native/styles/shorthands/box-shadow.js +0 -45
  738. package/dist/module/runtime/native/styles/shorthands/box-shadow.js.map +0 -1
  739. package/dist/module/runtime/native/styles/shorthands/index.js.map +0 -1
  740. package/dist/module/runtime/native/styles/shorthands/text-shadow.js.map +0 -1
  741. package/dist/module/runtime/native/styles/shorthands/transform.js.map +0 -1
  742. package/dist/module/runtime/native/styles/units.js.map +0 -1
  743. package/dist/module/runtime/native/styles/variables.js +0 -75
  744. package/dist/module/runtime/native/styles/variables.js.map +0 -1
  745. package/dist/module/runtime/runtime.js.map +0 -1
  746. package/dist/module/runtime/runtime.native.js.map +0 -1
  747. package/dist/module/runtime/runtime.types.js.map +0 -1
  748. package/dist/module/runtime/utils/components.js +0 -14
  749. package/dist/module/runtime/utils/components.js.map +0 -1
  750. package/dist/module/runtime/utils/dot-notation.types.js.map +0 -1
  751. package/dist/module/runtime/utils/index.js +0 -8
  752. package/dist/module/runtime/utils/index.js.map +0 -1
  753. package/dist/module/runtime/utils/objects.js.map +0 -1
  754. package/dist/module/runtime/utils/specificity.js.map +0 -1
  755. package/dist/module/runtime/utils/style-value.js +0 -16
  756. package/dist/module/runtime/utils/style-value.js.map +0 -1
  757. package/dist/module/runtime/utils/utils.types.js +0 -4
  758. package/dist/module/runtime/utils/utils.types.js.map +0 -1
  759. package/dist/module/runtime/web/api.js.map +0 -1
  760. package/dist/module/runtime/web/assign-style.js.map +0 -1
  761. package/dist/module/runtime/web/index.js.map +0 -1
  762. package/dist/module/runtime/web/metro.js.map +0 -1
  763. package/dist/module/style-collection/index.js +0 -95
  764. package/dist/module/style-collection/index.js.map +0 -1
  765. package/dist/module/style-collection/root.js +0 -25
  766. package/dist/module/style-collection/root.js.map +0 -1
  767. package/dist/typescript/commonjs/src/runtime/index.d.ts +0 -7
  768. package/dist/typescript/commonjs/src/runtime/index.d.ts.map +0 -1
  769. package/dist/typescript/commonjs/src/runtime/native/api.d.ts +0 -31
  770. package/dist/typescript/commonjs/src/runtime/native/api.d.ts.map +0 -1
  771. package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts +0 -5
  772. package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts.map +0 -1
  773. package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts +0 -7
  774. package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts.map +0 -1
  775. package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts.map +0 -1
  776. package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts +0 -6
  777. package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts.map +0 -1
  778. package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts +0 -4
  779. package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts.map +0 -1
  780. package/dist/typescript/commonjs/src/runtime/native/index.d.ts.map +0 -1
  781. package/dist/typescript/commonjs/src/runtime/native/metro.d.ts.map +0 -1
  782. package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts.map +0 -1
  783. package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts.map +0 -1
  784. package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts +0 -38
  785. package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts.map +0 -1
  786. package/dist/typescript/commonjs/src/runtime/native/react/usePassthrough.d.ts.map +0 -1
  787. package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts +0 -53
  788. package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts.map +0 -1
  789. package/dist/typescript/commonjs/src/runtime/native/reanimated.d.ts.map +0 -1
  790. package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts +0 -10
  791. package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts.map +0 -1
  792. package/dist/typescript/commonjs/src/runtime/native/styles/constants.d.ts.map +0 -1
  793. package/dist/typescript/commonjs/src/runtime/native/styles/defaults.d.ts.map +0 -1
  794. package/dist/typescript/commonjs/src/runtime/native/styles/functions/animation-timing.d.ts.map +0 -1
  795. package/dist/typescript/commonjs/src/runtime/native/styles/functions/calc.d.ts.map +0 -1
  796. package/dist/typescript/commonjs/src/runtime/native/styles/functions/filters.d.ts.map +0 -1
  797. package/dist/typescript/commonjs/src/runtime/native/styles/functions/index.d.ts.map +0 -1
  798. package/dist/typescript/commonjs/src/runtime/native/styles/functions/numeric-functions.d.ts.map +0 -1
  799. package/dist/typescript/commonjs/src/runtime/native/styles/functions/platform-functions.d.ts.map +0 -1
  800. package/dist/typescript/commonjs/src/runtime/native/styles/functions/string-functions.d.ts.map +0 -1
  801. package/dist/typescript/commonjs/src/runtime/native/styles/functions/transform-functions.d.ts.map +0 -1
  802. package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts +0 -19
  803. package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts.map +0 -1
  804. package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts +0 -18
  805. package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts.map +0 -1
  806. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/_handler.d.ts.map +0 -1
  807. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/animation.d.ts.map +0 -1
  808. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/border.d.ts.map +0 -1
  809. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +0 -1
  810. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/index.d.ts.map +0 -1
  811. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +0 -1
  812. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/transform.d.ts.map +0 -1
  813. package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts.map +0 -1
  814. package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts +0 -5
  815. package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts.map +0 -1
  816. package/dist/typescript/commonjs/src/runtime/runtime.d.ts.map +0 -1
  817. package/dist/typescript/commonjs/src/runtime/runtime.native.d.ts.map +0 -1
  818. package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts +0 -47
  819. package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts.map +0 -1
  820. package/dist/typescript/commonjs/src/runtime/utils/components.d.ts +0 -2
  821. package/dist/typescript/commonjs/src/runtime/utils/components.d.ts.map +0 -1
  822. package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts.map +0 -1
  823. package/dist/typescript/commonjs/src/runtime/utils/index.d.ts +0 -6
  824. package/dist/typescript/commonjs/src/runtime/utils/index.d.ts.map +0 -1
  825. package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts.map +0 -1
  826. package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts +0 -13
  827. package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts.map +0 -1
  828. package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts +0 -4
  829. package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts.map +0 -1
  830. package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts +0 -5
  831. package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts.map +0 -1
  832. package/dist/typescript/commonjs/src/runtime/web/api.d.ts +0 -16
  833. package/dist/typescript/commonjs/src/runtime/web/api.d.ts.map +0 -1
  834. package/dist/typescript/commonjs/src/runtime/web/assign-style.d.ts.map +0 -1
  835. package/dist/typescript/commonjs/src/runtime/web/index.d.ts.map +0 -1
  836. package/dist/typescript/commonjs/src/runtime/web/metro.d.ts.map +0 -1
  837. package/dist/typescript/commonjs/src/style-collection/index.d.ts +0 -14
  838. package/dist/typescript/commonjs/src/style-collection/index.d.ts.map +0 -1
  839. package/dist/typescript/commonjs/src/style-collection/root.d.ts +0 -11
  840. package/dist/typescript/commonjs/src/style-collection/root.d.ts.map +0 -1
  841. package/dist/typescript/module/src/runtime/index.d.ts +0 -7
  842. package/dist/typescript/module/src/runtime/index.d.ts.map +0 -1
  843. package/dist/typescript/module/src/runtime/native/api.d.ts +0 -31
  844. package/dist/typescript/module/src/runtime/native/api.d.ts.map +0 -1
  845. package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts +0 -5
  846. package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts.map +0 -1
  847. package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts +0 -7
  848. package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts.map +0 -1
  849. package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts.map +0 -1
  850. package/dist/typescript/module/src/runtime/native/conditions/index.d.ts +0 -6
  851. package/dist/typescript/module/src/runtime/native/conditions/index.d.ts.map +0 -1
  852. package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts +0 -4
  853. package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts.map +0 -1
  854. package/dist/typescript/module/src/runtime/native/index.d.ts.map +0 -1
  855. package/dist/typescript/module/src/runtime/native/metro.d.ts.map +0 -1
  856. package/dist/typescript/module/src/runtime/native/react/interaction.d.ts.map +0 -1
  857. package/dist/typescript/module/src/runtime/native/react/rules.d.ts.map +0 -1
  858. package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts +0 -38
  859. package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts.map +0 -1
  860. package/dist/typescript/module/src/runtime/native/react/usePassthrough.d.ts.map +0 -1
  861. package/dist/typescript/module/src/runtime/native/reactivity.d.ts +0 -53
  862. package/dist/typescript/module/src/runtime/native/reactivity.d.ts.map +0 -1
  863. package/dist/typescript/module/src/runtime/native/reanimated.d.ts.map +0 -1
  864. package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts +0 -10
  865. package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts.map +0 -1
  866. package/dist/typescript/module/src/runtime/native/styles/constants.d.ts.map +0 -1
  867. package/dist/typescript/module/src/runtime/native/styles/defaults.d.ts.map +0 -1
  868. package/dist/typescript/module/src/runtime/native/styles/functions/animation-timing.d.ts.map +0 -1
  869. package/dist/typescript/module/src/runtime/native/styles/functions/calc.d.ts.map +0 -1
  870. package/dist/typescript/module/src/runtime/native/styles/functions/filters.d.ts.map +0 -1
  871. package/dist/typescript/module/src/runtime/native/styles/functions/index.d.ts.map +0 -1
  872. package/dist/typescript/module/src/runtime/native/styles/functions/numeric-functions.d.ts.map +0 -1
  873. package/dist/typescript/module/src/runtime/native/styles/functions/platform-functions.d.ts.map +0 -1
  874. package/dist/typescript/module/src/runtime/native/styles/functions/string-functions.d.ts.map +0 -1
  875. package/dist/typescript/module/src/runtime/native/styles/functions/transform-functions.d.ts.map +0 -1
  876. package/dist/typescript/module/src/runtime/native/styles/index.d.ts +0 -19
  877. package/dist/typescript/module/src/runtime/native/styles/index.d.ts.map +0 -1
  878. package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts +0 -18
  879. package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts.map +0 -1
  880. package/dist/typescript/module/src/runtime/native/styles/shorthands/_handler.d.ts.map +0 -1
  881. package/dist/typescript/module/src/runtime/native/styles/shorthands/animation.d.ts.map +0 -1
  882. package/dist/typescript/module/src/runtime/native/styles/shorthands/border.d.ts.map +0 -1
  883. package/dist/typescript/module/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +0 -1
  884. package/dist/typescript/module/src/runtime/native/styles/shorthands/index.d.ts.map +0 -1
  885. package/dist/typescript/module/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +0 -1
  886. package/dist/typescript/module/src/runtime/native/styles/shorthands/transform.d.ts.map +0 -1
  887. package/dist/typescript/module/src/runtime/native/styles/units.d.ts.map +0 -1
  888. package/dist/typescript/module/src/runtime/native/styles/variables.d.ts +0 -5
  889. package/dist/typescript/module/src/runtime/native/styles/variables.d.ts.map +0 -1
  890. package/dist/typescript/module/src/runtime/runtime.d.ts.map +0 -1
  891. package/dist/typescript/module/src/runtime/runtime.native.d.ts.map +0 -1
  892. package/dist/typescript/module/src/runtime/runtime.types.d.ts +0 -47
  893. package/dist/typescript/module/src/runtime/runtime.types.d.ts.map +0 -1
  894. package/dist/typescript/module/src/runtime/utils/components.d.ts +0 -2
  895. package/dist/typescript/module/src/runtime/utils/components.d.ts.map +0 -1
  896. package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts.map +0 -1
  897. package/dist/typescript/module/src/runtime/utils/index.d.ts +0 -6
  898. package/dist/typescript/module/src/runtime/utils/index.d.ts.map +0 -1
  899. package/dist/typescript/module/src/runtime/utils/objects.d.ts.map +0 -1
  900. package/dist/typescript/module/src/runtime/utils/specificity.d.ts +0 -13
  901. package/dist/typescript/module/src/runtime/utils/specificity.d.ts.map +0 -1
  902. package/dist/typescript/module/src/runtime/utils/style-value.d.ts +0 -4
  903. package/dist/typescript/module/src/runtime/utils/style-value.d.ts.map +0 -1
  904. package/dist/typescript/module/src/runtime/utils/utils.types.d.ts +0 -5
  905. package/dist/typescript/module/src/runtime/utils/utils.types.d.ts.map +0 -1
  906. package/dist/typescript/module/src/runtime/web/api.d.ts +0 -16
  907. package/dist/typescript/module/src/runtime/web/api.d.ts.map +0 -1
  908. package/dist/typescript/module/src/runtime/web/assign-style.d.ts.map +0 -1
  909. package/dist/typescript/module/src/runtime/web/index.d.ts.map +0 -1
  910. package/dist/typescript/module/src/runtime/web/metro.d.ts.map +0 -1
  911. package/dist/typescript/module/src/style-collection/index.d.ts +0 -14
  912. package/dist/typescript/module/src/style-collection/index.d.ts.map +0 -1
  913. package/dist/typescript/module/src/style-collection/root.d.ts +0 -11
  914. package/dist/typescript/module/src/style-collection/root.d.ts.map +0 -1
  915. package/src/runtime/index.ts +0 -7
  916. package/src/runtime/native/api.tsx +0 -135
  917. package/src/runtime/native/conditions/attributes.ts +0 -52
  918. package/src/runtime/native/conditions/container-query.ts +0 -162
  919. package/src/runtime/native/conditions/index.ts +0 -54
  920. package/src/runtime/native/conditions/media-query.ts +0 -98
  921. package/src/runtime/native/react/rules.ts +0 -336
  922. package/src/runtime/native/react/useNativeCss.ts +0 -203
  923. package/src/runtime/native/reactivity.ts +0 -251
  924. package/src/runtime/native/styles/calculate-props.ts +0 -197
  925. package/src/runtime/native/styles/functions/filters.ts +0 -98
  926. package/src/runtime/native/styles/functions/transform-functions.ts +0 -84
  927. package/src/runtime/native/styles/index.ts +0 -197
  928. package/src/runtime/native/styles/resolve.ts +0 -162
  929. package/src/runtime/native/styles/shorthands/_handler.ts +0 -121
  930. package/src/runtime/native/styles/shorthands/animation.ts +0 -123
  931. package/src/runtime/native/styles/shorthands/box-shadow.ts +0 -74
  932. package/src/runtime/native/styles/variables.ts +0 -88
  933. package/src/runtime/runtime.types.ts +0 -130
  934. package/src/runtime/utils/components.ts +0 -15
  935. package/src/runtime/utils/index.ts +0 -5
  936. package/src/runtime/utils/specificity.ts +0 -45
  937. package/src/runtime/utils/style-value.ts +0 -24
  938. package/src/runtime/utils/utils.types.ts +0 -19
  939. package/src/runtime/web/api.tsx +0 -114
  940. package/src/style-collection/index.ts +0 -142
  941. package/src/style-collection/root.ts +0 -37
  942. /package/dist/commonjs/{runtime/native → native}/conditions/container-query.js +0 -0
  943. /package/dist/commonjs/{runtime/native → native}/conditions/guards.js +0 -0
  944. /package/dist/commonjs/{runtime/native → native}/conditions/index.js +0 -0
  945. /package/dist/commonjs/{runtime/native → native}/conditions/media-query.js +0 -0
  946. /package/dist/commonjs/{runtime/native → native}/index.js +0 -0
  947. /package/dist/commonjs/{runtime/native → native}/metro.js +0 -0
  948. /package/dist/commonjs/{runtime/utils → native}/objects.js +0 -0
  949. /package/dist/commonjs/{runtime/native → native}/react/interaction.js +0 -0
  950. /package/dist/commonjs/{runtime/native → native}/react/usePassthrough.js +0 -0
  951. /package/dist/commonjs/{runtime/native → native}/reanimated.js +0 -0
  952. /package/dist/commonjs/{runtime/native → native}/styles/constants.js +0 -0
  953. /package/dist/commonjs/{runtime/native → native}/styles/defaults.js +0 -0
  954. /package/dist/commonjs/{runtime/native → native}/styles/functions/animation-timing.js +0 -0
  955. /package/dist/commonjs/{runtime/native → native}/styles/functions/calc.js +0 -0
  956. /package/dist/commonjs/{runtime/native → native}/styles/functions/index.js +0 -0
  957. /package/dist/commonjs/{runtime/native → native}/styles/functions/numeric-functions.js +0 -0
  958. /package/dist/commonjs/{runtime/native → native}/styles/functions/platform-functions.js +0 -0
  959. /package/dist/commonjs/{runtime/native → native}/styles/functions/string-functions.js +0 -0
  960. /package/dist/commonjs/{runtime/native → native}/styles/shorthands/border.js +0 -0
  961. /package/dist/commonjs/{runtime/native → native}/styles/shorthands/index.js +0 -0
  962. /package/dist/commonjs/{runtime/native → native}/styles/shorthands/text-shadow.js +0 -0
  963. /package/dist/commonjs/{runtime/native → native}/styles/shorthands/transform.js +0 -0
  964. /package/dist/commonjs/{runtime/native → native}/styles/units.js +0 -0
  965. /package/dist/commonjs/{runtime/runtime.js → runtime.js} +0 -0
  966. /package/dist/commonjs/{runtime/runtime.native.js → runtime.native.js} +0 -0
  967. /package/dist/commonjs/{runtime/runtime.types.js → runtime.types.js} +0 -0
  968. /package/dist/commonjs/{runtime/utils → utilities}/dot-notation.types.js +0 -0
  969. /package/dist/commonjs/{runtime/utils → utilities}/specificity.js +0 -0
  970. /package/dist/commonjs/{runtime/web → web}/api.js +0 -0
  971. /package/dist/commonjs/{runtime/web → web}/assign-style.js +0 -0
  972. /package/dist/commonjs/{runtime/web → web}/index.js +0 -0
  973. /package/dist/commonjs/{runtime/web → web}/metro.js +0 -0
  974. /package/dist/module/{runtime/native → native}/conditions/container-query.js +0 -0
  975. /package/dist/module/{runtime/native → native}/conditions/guards.js +0 -0
  976. /package/dist/module/{runtime/native → native}/conditions/index.js +0 -0
  977. /package/dist/module/{runtime/native → native}/conditions/media-query.js +0 -0
  978. /package/dist/module/{runtime/native → native}/index.js +0 -0
  979. /package/dist/module/{runtime/native → native}/metro.js +0 -0
  980. /package/dist/module/{runtime/utils → native}/objects.js +0 -0
  981. /package/dist/module/{runtime/native → native}/react/interaction.js +0 -0
  982. /package/dist/module/{runtime/native → native}/react/usePassthrough.js +0 -0
  983. /package/dist/module/{runtime/native → native}/reanimated.js +0 -0
  984. /package/dist/module/{runtime/native → native}/styles/constants.js +0 -0
  985. /package/dist/module/{runtime/native → native}/styles/defaults.js +0 -0
  986. /package/dist/module/{runtime/native → native}/styles/functions/animation-timing.js +0 -0
  987. /package/dist/module/{runtime/native → native}/styles/functions/calc.js +0 -0
  988. /package/dist/module/{runtime/native → native}/styles/functions/index.js +0 -0
  989. /package/dist/module/{runtime/native → native}/styles/functions/numeric-functions.js +0 -0
  990. /package/dist/module/{runtime/native → native}/styles/functions/platform-functions.js +0 -0
  991. /package/dist/module/{runtime/native → native}/styles/functions/string-functions.js +0 -0
  992. /package/dist/module/{runtime/native → native}/styles/shorthands/border.js +0 -0
  993. /package/dist/module/{runtime/native → native}/styles/shorthands/index.js +0 -0
  994. /package/dist/module/{runtime/native → native}/styles/shorthands/text-shadow.js +0 -0
  995. /package/dist/module/{runtime/native → native}/styles/shorthands/transform.js +0 -0
  996. /package/dist/module/{runtime/native → native}/styles/units.js +0 -0
  997. /package/dist/module/{runtime/runtime.js → runtime.js} +0 -0
  998. /package/dist/module/{runtime/runtime.native.js → runtime.native.js} +0 -0
  999. /package/dist/module/{runtime/runtime.types.js → runtime.types.js} +0 -0
  1000. /package/dist/module/{runtime/utils → utilities}/dot-notation.types.js +0 -0
  1001. /package/dist/module/{runtime/utils → utilities}/specificity.js +0 -0
  1002. /package/dist/module/{runtime/web → web}/api.js +0 -0
  1003. /package/dist/module/{runtime/web → web}/assign-style.js +0 -0
  1004. /package/dist/module/{runtime/web → web}/index.js +0 -0
  1005. /package/dist/module/{runtime/web → web}/metro.js +0 -0
  1006. /package/dist/typescript/commonjs/src/{runtime/native → native}/conditions/guards.d.ts +0 -0
  1007. /package/dist/typescript/commonjs/src/{runtime/native → native}/index.d.ts +0 -0
  1008. /package/dist/typescript/commonjs/src/{runtime/native → native}/metro.d.ts +0 -0
  1009. /package/dist/typescript/commonjs/src/{runtime/utils → native}/objects.d.ts +0 -0
  1010. /package/dist/typescript/commonjs/src/{runtime/native → native}/react/interaction.d.ts +0 -0
  1011. /package/dist/typescript/commonjs/src/{runtime/native → native}/react/rules.d.ts +0 -0
  1012. /package/dist/typescript/commonjs/src/{runtime/native → native}/react/usePassthrough.d.ts +0 -0
  1013. /package/dist/typescript/commonjs/src/{runtime/native → native}/reanimated.d.ts +0 -0
  1014. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/constants.d.ts +0 -0
  1015. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/defaults.d.ts +0 -0
  1016. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/animation-timing.d.ts +0 -0
  1017. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/calc.d.ts +0 -0
  1018. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/filters.d.ts +0 -0
  1019. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/index.d.ts +0 -0
  1020. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/numeric-functions.d.ts +0 -0
  1021. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/platform-functions.d.ts +0 -0
  1022. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/string-functions.d.ts +0 -0
  1023. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/transform-functions.d.ts +0 -0
  1024. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/_handler.d.ts +0 -0
  1025. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/animation.d.ts +0 -0
  1026. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/border.d.ts +0 -0
  1027. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/box-shadow.d.ts +0 -0
  1028. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/index.d.ts +0 -0
  1029. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/text-shadow.d.ts +0 -0
  1030. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/transform.d.ts +0 -0
  1031. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/units.d.ts +0 -0
  1032. /package/dist/typescript/commonjs/src/{runtime/runtime.d.ts → runtime.d.ts} +0 -0
  1033. /package/dist/typescript/commonjs/src/{runtime/runtime.native.d.ts → runtime.native.d.ts} +0 -0
  1034. /package/dist/typescript/commonjs/src/{runtime/utils → utilities}/dot-notation.types.d.ts +0 -0
  1035. /package/dist/typescript/commonjs/src/{runtime/web → web}/assign-style.d.ts +0 -0
  1036. /package/dist/typescript/commonjs/src/{runtime/web → web}/index.d.ts +0 -0
  1037. /package/dist/typescript/commonjs/src/{runtime/web → web}/metro.d.ts +0 -0
  1038. /package/dist/typescript/module/src/{runtime/native → native}/conditions/guards.d.ts +0 -0
  1039. /package/dist/typescript/module/src/{runtime/native → native}/index.d.ts +0 -0
  1040. /package/dist/typescript/module/src/{runtime/native → native}/metro.d.ts +0 -0
  1041. /package/dist/typescript/module/src/{runtime/utils → native}/objects.d.ts +0 -0
  1042. /package/dist/typescript/module/src/{runtime/native → native}/react/interaction.d.ts +0 -0
  1043. /package/dist/typescript/module/src/{runtime/native → native}/react/rules.d.ts +0 -0
  1044. /package/dist/typescript/module/src/{runtime/native → native}/react/usePassthrough.d.ts +0 -0
  1045. /package/dist/typescript/module/src/{runtime/native → native}/reanimated.d.ts +0 -0
  1046. /package/dist/typescript/module/src/{runtime/native → native}/styles/constants.d.ts +0 -0
  1047. /package/dist/typescript/module/src/{runtime/native → native}/styles/defaults.d.ts +0 -0
  1048. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/animation-timing.d.ts +0 -0
  1049. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/calc.d.ts +0 -0
  1050. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/filters.d.ts +0 -0
  1051. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/index.d.ts +0 -0
  1052. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/numeric-functions.d.ts +0 -0
  1053. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/platform-functions.d.ts +0 -0
  1054. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/string-functions.d.ts +0 -0
  1055. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/transform-functions.d.ts +0 -0
  1056. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/_handler.d.ts +0 -0
  1057. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/animation.d.ts +0 -0
  1058. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/border.d.ts +0 -0
  1059. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/box-shadow.d.ts +0 -0
  1060. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/index.d.ts +0 -0
  1061. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/text-shadow.d.ts +0 -0
  1062. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/transform.d.ts +0 -0
  1063. /package/dist/typescript/module/src/{runtime/native → native}/styles/units.d.ts +0 -0
  1064. /package/dist/typescript/module/src/{runtime/runtime.d.ts → runtime.d.ts} +0 -0
  1065. /package/dist/typescript/module/src/{runtime/runtime.native.d.ts → runtime.native.d.ts} +0 -0
  1066. /package/dist/typescript/module/src/{runtime/utils → utilities}/dot-notation.types.d.ts +0 -0
  1067. /package/dist/typescript/module/src/{runtime/web → web}/assign-style.d.ts +0 -0
  1068. /package/dist/typescript/module/src/{runtime/web → web}/index.d.ts +0 -0
  1069. /package/dist/typescript/module/src/{runtime/web → web}/metro.d.ts +0 -0
  1070. /package/src/{runtime/native → native}/conditions/guards.ts +0 -0
  1071. /package/src/{runtime/native → native}/index.ts +0 -0
  1072. /package/src/{runtime/native → native}/metro.ts +0 -0
  1073. /package/src/{runtime/utils → native}/objects.ts +0 -0
  1074. /package/src/{runtime/native → native}/react/interaction.ts +0 -0
  1075. /package/src/{runtime/native → native}/react/usePassthrough.ts +0 -0
  1076. /package/src/{runtime/native → native}/reanimated.ts +0 -0
  1077. /package/src/{runtime/native → native}/styles/constants.ts +0 -0
  1078. /package/src/{runtime/native → native}/styles/defaults.ts +0 -0
  1079. /package/src/{runtime/native → native}/styles/functions/animation-timing.ts +0 -0
  1080. /package/src/{runtime/native → native}/styles/functions/calc.ts +0 -0
  1081. /package/src/{runtime/native → native}/styles/functions/index.ts +0 -0
  1082. /package/src/{runtime/native → native}/styles/functions/numeric-functions.ts +0 -0
  1083. /package/src/{runtime/native → native}/styles/functions/platform-functions.ts +0 -0
  1084. /package/src/{runtime/native → native}/styles/functions/string-functions.ts +0 -0
  1085. /package/src/{runtime/native → native}/styles/shorthands/border.ts +0 -0
  1086. /package/src/{runtime/native → native}/styles/shorthands/index.ts +0 -0
  1087. /package/src/{runtime/native → native}/styles/shorthands/text-shadow.ts +0 -0
  1088. /package/src/{runtime/native → native}/styles/shorthands/transform.ts +0 -0
  1089. /package/src/{runtime/native → native}/styles/units.ts +0 -0
  1090. /package/src/{runtime/runtime.native.ts → runtime.native.ts} +0 -0
  1091. /package/src/{runtime/runtime.ts → runtime.ts} +0 -0
  1092. /package/src/{runtime/utils → utilities}/dot-notation.types.ts +0 -0
  1093. /package/src/{runtime/web → web}/assign-style.ts +0 -0
  1094. /package/src/{runtime/web → web}/index.ts +0 -0
  1095. /package/src/{runtime/web → web}/metro.ts +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  isStyleDescriptorArray,
5
5
  Specificity,
6
6
  specificityCompareFn,
7
- } from "../runtime/utils";
7
+ } from "../utilities";
8
8
  import type {
9
9
  AnimationKeyframes,
10
10
  AnimationRecord,
@@ -263,8 +263,8 @@ export class StylesheetBuilder {
263
263
  }
264
264
 
265
265
  /** Used by nested declarations (for example @media inside a RuleSet) */
266
- newNestedRule({ important = false } = {}) {
267
- this.newRule(this.mapping, { important });
266
+ newNestedRule({ important = false, mapping = this.mapping } = {}) {
267
+ this.newRule(mapping, { important });
268
268
  }
269
269
 
270
270
  /** Hack for light-dark, which requires adding a new rule without changing the current rule */
@@ -331,15 +331,6 @@ export class StylesheetBuilder {
331
331
  forceTuple,
332
332
  );
333
333
  } else if (property.startsWith("--")) {
334
- // If we have enabled variable usage tracking, skip unused variables
335
- if (
336
- this.options.stripUnusedVariables &&
337
- !property.startsWith("--__rn-css") &&
338
- !this.varUsage.has(property)
339
- ) {
340
- return;
341
- }
342
-
343
334
  rule.v ??= [];
344
335
  rule.v.push([property.slice(2), value]);
345
336
  } else if (isStyleFunction(value)) {
@@ -400,6 +391,10 @@ export class StylesheetBuilder {
400
391
  let propPath: string | string[] | undefined =
401
392
  this.mapping[rawProperty] ?? this.mapping[property] ?? this.mapping["*"];
402
393
 
394
+ if (typeof property === "string" && property.includes(".")) {
395
+ propPath = property.split(".");
396
+ }
397
+
403
398
  if (Array.isArray(propPath)) {
404
399
  const [first, second] = propPath;
405
400
 
@@ -9,14 +9,14 @@ import {
9
9
  type StyledProps,
10
10
  } from "../runtime";
11
11
 
12
- const mapping = {
12
+ const mapping: StyledConfiguration<typeof RNActivityIndicator> = {
13
13
  className: {
14
14
  target: "style",
15
15
  nativeStyleMapping: {
16
16
  color: "color",
17
17
  },
18
18
  },
19
- } satisfies StyledConfiguration<typeof RNActivityIndicator>;
19
+ };
20
20
 
21
21
  export function ActivityIndicator(
22
22
  props: StyledProps<ActivityIndicatorProps, typeof mapping>,
@@ -6,14 +6,14 @@ import {
6
6
  type StyledProps,
7
7
  } from "../runtime";
8
8
 
9
- const mapping = {
9
+ const mapping: StyledConfiguration<typeof RNButton> = {
10
10
  className: {
11
11
  target: false,
12
12
  nativeStyleMapping: {
13
13
  color: "color",
14
14
  },
15
15
  },
16
- } satisfies StyledConfiguration<typeof RNButton>;
16
+ };
17
17
 
18
18
  export function Button(props: StyledProps<ButtonProps, typeof mapping>) {
19
19
  return useCssElement(RNButton, props, mapping);
@@ -6,11 +6,12 @@ import {
6
6
  type StyledProps,
7
7
  } from "../runtime";
8
8
 
9
- const mapping = {
10
- columnWrapperStyle: "columnWrapperStyle",
11
- listFooterComponentClassName: "ListFooterComponentStyle",
12
- listHeaderComponentClassName: "ListHeaderComponentStyle",
13
- } satisfies StyledConfiguration<typeof RNFlatList>;
9
+ const mapping: StyledConfiguration<typeof RNFlatList> = {
10
+ ListFooterComponentClassName: "ListFooterComponentStyle",
11
+ ListHeaderComponentClassName: "ListHeaderComponentStyle",
12
+ columnWrapperClassName: "columnWrapperStyle",
13
+ contentContainerClassName: "contentContainerStyle",
14
+ };
14
15
 
15
16
  export function FlatList<ItemT>(
16
17
  props: StyledProps<FlatListProps<ItemT>, typeof mapping>,
@@ -6,9 +6,9 @@ import {
6
6
  type StyledProps,
7
7
  } from "../runtime";
8
8
 
9
- const mapping = {
9
+ const mapping: StyledConfiguration<typeof RNImage> = {
10
10
  className: "style",
11
- } satisfies StyledConfiguration<typeof RNImage>;
11
+ };
12
12
 
13
13
  export function Image(props: StyledProps<ImageProps, typeof mapping>) {
14
14
  return useCssElement(RNImage, props, mapping);
@@ -0,0 +1,27 @@
1
+ import {
2
+ ImageBackground as RNImageBackground,
3
+ type ImageBackgroundProps,
4
+ } from "react-native";
5
+
6
+ import {
7
+ useCssElement,
8
+ type StyledConfiguration,
9
+ type StyledProps,
10
+ } from "../runtime";
11
+
12
+ const mapping: StyledConfiguration<typeof RNImageBackground> = {
13
+ className: {
14
+ target: "style",
15
+ nativeStyleMapping: {
16
+ backgroundColor: true,
17
+ },
18
+ },
19
+ };
20
+
21
+ export function ImageBackground(
22
+ props: StyledProps<ImageBackgroundProps, typeof mapping>,
23
+ ) {
24
+ return useCssElement(RNImageBackground, props, mapping);
25
+ }
26
+
27
+ export default ImageBackground;
@@ -0,0 +1,24 @@
1
+ import {
2
+ KeyboardAvoidingView as RNKeyboardAvoidingView,
3
+ type KeyboardAvoidingViewProps,
4
+ } from "react-native";
5
+
6
+ import {
7
+ useCssElement,
8
+ type StyledConfiguration,
9
+ type StyledProps,
10
+ } from "../runtime";
11
+
12
+ const mapping: StyledConfiguration<typeof RNKeyboardAvoidingView> = {
13
+ className: {
14
+ target: "style",
15
+ },
16
+ };
17
+
18
+ export function KeyboardAvoidingView(
19
+ props: StyledProps<KeyboardAvoidingViewProps, typeof mapping>,
20
+ ) {
21
+ return useCssElement(RNKeyboardAvoidingView, props, mapping);
22
+ }
23
+
24
+ export default KeyboardAvoidingView;
@@ -0,0 +1,17 @@
1
+ import { Pressable as RNPressable, type PressableProps } from "react-native";
2
+
3
+ import {
4
+ useCssElement,
5
+ type StyledConfiguration,
6
+ type StyledProps,
7
+ } from "../runtime";
8
+
9
+ const mapping: StyledConfiguration<typeof RNPressable> = {
10
+ className: "style",
11
+ };
12
+
13
+ export function Pressable(props: StyledProps<PressableProps, typeof mapping>) {
14
+ return useCssElement(RNPressable, props, mapping);
15
+ }
16
+
17
+ export default Pressable;
@@ -0,0 +1,20 @@
1
+ import { ScrollView as RNScrollView, type ScrollViewProps } from "react-native";
2
+
3
+ import {
4
+ useCssElement,
5
+ type StyledConfiguration,
6
+ type StyledProps,
7
+ } from "../runtime";
8
+
9
+ const mapping: StyledConfiguration<typeof RNScrollView> = {
10
+ className: "style",
11
+ contentContainerClassName: "contentContainerStyle",
12
+ };
13
+
14
+ export function ScrollView(
15
+ props: StyledProps<ScrollViewProps, typeof mapping>,
16
+ ) {
17
+ return useCssElement(RNScrollView, props, mapping);
18
+ }
19
+
20
+ export default ScrollView;
@@ -4,7 +4,7 @@ import {
4
4
  useCssElement,
5
5
  type StyledConfiguration,
6
6
  type StyledProps,
7
- } from "../runtime";
7
+ } from "react-native-css/native";
8
8
 
9
9
  const mapping = {
10
10
  className: "style",
@@ -6,9 +6,14 @@ import {
6
6
  type StyledProps,
7
7
  } from "../runtime";
8
8
 
9
- const mapping = {
10
- className: "style",
11
- } satisfies StyledConfiguration<typeof RNTextInput>;
9
+ const mapping: StyledConfiguration<typeof RNTextInput> = {
10
+ className: {
11
+ target: "style",
12
+ nativeStyleMapping: {
13
+ textAlign: true,
14
+ },
15
+ },
16
+ };
12
17
 
13
18
  export function TextInput(props: StyledProps<TextInputProps, typeof mapping>) {
14
19
  return useCssElement(RNTextInput, props, mapping);
@@ -0,0 +1,22 @@
1
+ import {
2
+ TouchableHighlight as RNTouchableHighlight,
3
+ type TouchableHighlightProps,
4
+ } from "react-native";
5
+
6
+ import {
7
+ useCssElement,
8
+ type StyledConfiguration,
9
+ type StyledProps,
10
+ } from "../runtime";
11
+
12
+ const mapping: StyledConfiguration<typeof RNTouchableHighlight> = {
13
+ className: "style",
14
+ };
15
+
16
+ export function TouchableHighlight(
17
+ props: StyledProps<TouchableHighlightProps, typeof mapping>,
18
+ ) {
19
+ return useCssElement(RNTouchableHighlight, props, mapping);
20
+ }
21
+
22
+ export default TouchableHighlight;
@@ -0,0 +1,22 @@
1
+ import {
2
+ TouchableOpacity as RNTouchableOpacity,
3
+ type TouchableOpacityProps,
4
+ } from "react-native";
5
+
6
+ import {
7
+ useCssElement,
8
+ type StyledConfiguration,
9
+ type StyledProps,
10
+ } from "../runtime";
11
+
12
+ const mapping: StyledConfiguration<typeof RNTouchableOpacity> = {
13
+ className: "style",
14
+ };
15
+
16
+ export function TouchableOpacity(
17
+ props: StyledProps<TouchableOpacityProps, typeof mapping>,
18
+ ) {
19
+ return useCssElement(RNTouchableOpacity, props, mapping);
20
+ }
21
+
22
+ export default TouchableOpacity;
@@ -0,0 +1,22 @@
1
+ import {
2
+ TouchableWithoutFeedback as RNTouchableWithoutFeedback,
3
+ type TouchableWithoutFeedbackProps,
4
+ } from "react-native";
5
+
6
+ import {
7
+ useCssElement,
8
+ type StyledConfiguration,
9
+ type StyledProps,
10
+ } from "../runtime";
11
+
12
+ const mapping: StyledConfiguration<typeof RNTouchableWithoutFeedback> = {
13
+ className: "style",
14
+ };
15
+
16
+ export function TouchableWithoutFeedback(
17
+ props: StyledProps<TouchableWithoutFeedbackProps, typeof mapping>,
18
+ ) {
19
+ return useCssElement(RNTouchableWithoutFeedback, props, mapping);
20
+ }
21
+
22
+ export default TouchableWithoutFeedback;
@@ -4,7 +4,7 @@ import {
4
4
  useCssElement,
5
5
  type StyledConfiguration,
6
6
  type StyledProps,
7
- } from "../runtime";
7
+ } from "react-native-css/native";
8
8
 
9
9
  const mapping = {
10
10
  className: "style",
@@ -0,0 +1,25 @@
1
+ import {
2
+ VirtualizedList as RNVirtualizedList,
3
+ type VirtualizedListProps,
4
+ } from "react-native";
5
+
6
+ import {
7
+ useCssElement,
8
+ type StyledConfiguration,
9
+ type StyledProps,
10
+ } from "../runtime";
11
+
12
+ const mapping: StyledConfiguration<typeof RNVirtualizedList> = {
13
+ className: "style",
14
+ ListFooterComponentClassName: "ListFooterComponentStyle",
15
+ ListHeaderComponentClassName: "ListHeaderComponentStyle",
16
+ contentContainerClassName: "contentContainerStyle",
17
+ };
18
+
19
+ export function VirtualizedList<ItemT>(
20
+ props: StyledProps<VirtualizedListProps<ItemT>, typeof mapping>,
21
+ ) {
22
+ return useCssElement(RNVirtualizedList, props, mapping);
23
+ }
24
+
25
+ export default VirtualizedList;
@@ -4,7 +4,15 @@ export { ActivityIndicator } from "./ActivityIndicator";
4
4
  export { Button } from "./Button";
5
5
  export { FlatList } from "./FlatList";
6
6
  export { Image } from "./Image";
7
+ export { ImageBackground } from "./ImageBackground";
8
+ export { KeyboardAvoidingView } from "./KeyboardAvoidingView";
9
+ export { Pressable } from "./Pressable";
10
+ export { ScrollView } from "./ScrollView";
7
11
  export { Switch } from "./Switch";
8
12
  export { Text } from "./Text";
9
13
  export { TextInput } from "./TextInput";
14
+ export { TouchableHighlight } from "./TouchableHighlight";
15
+ export { TouchableOpacity } from "./TouchableOpacity";
16
+ export { TouchableWithoutFeedback } from "./TouchableWithoutFeedback";
10
17
  export { View } from "./View";
18
+ export { VirtualizedList } from "./VirtualizedList";
@@ -1,13 +1,15 @@
1
1
  import { useContext, useMemo, type PropsWithChildren } from "react";
2
2
 
3
+ import {
4
+ VariableContext,
5
+ VariableContextProvider,
6
+ } from "react-native-css/native-internal";
3
7
  import {
4
8
  SafeAreaProvider as OriginalSafeAreaProvider,
5
9
  useSafeAreaInsets,
6
10
  type SafeAreaProviderProps,
7
11
  } from "react-native-safe-area-context";
8
12
 
9
- import { VariableContext } from "../runtime/native/reactivity";
10
-
11
13
  export * from "react-native-safe-area-context";
12
14
 
13
15
  export function SafeAreaProvider({
@@ -36,5 +38,7 @@ function SafeAreaEnv({ children }: PropsWithChildren) {
36
38
  [parentVars, insets],
37
39
  );
38
40
 
39
- return <VariableContext value={value}>{children}</VariableContext>;
41
+ return (
42
+ <VariableContextProvider value={value}>{children}</VariableContextProvider>
43
+ );
40
44
  }
package/src/index.ts CHANGED
@@ -1,3 +1 @@
1
1
  export * from "./runtime";
2
-
3
- export * from "./poison.pill";
package/src/jest/index.ts CHANGED
@@ -3,9 +3,9 @@ import { Appearance, Dimensions } from "react-native";
3
3
  import { inspect } from "node:util";
4
4
 
5
5
  import { compile, type CompilerOptions } from "react-native-css/compiler";
6
- import { StyleCollection } from "react-native-css/style-collection";
6
+ import { StyleCollection } from "react-native-css/native";
7
7
 
8
- import { colorScheme, dimensions } from "../runtime/native/reactivity";
8
+ import { colorScheme, dimensions } from "../native/reactivity";
9
9
 
10
10
  declare global {
11
11
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -59,12 +59,12 @@ export function compileWithAutoDebug(
59
59
  {
60
60
  debug = debugDefault,
61
61
  ...options
62
- }: CompilerOptions & { debug?: boolean } = {},
62
+ }: CompilerOptions & { debug?: boolean | "verbose" } = {},
63
63
  ) {
64
64
  const logger = debug
65
65
  ? (text: string) => {
66
66
  // Just log the rules
67
- if (text.startsWith("[")) {
67
+ if (text.startsWith("[") && debug === "verbose") {
68
68
  console.log(`Rules:\n---\n${text}`);
69
69
  }
70
70
  }
@@ -2,12 +2,14 @@
2
2
  import { dirname, relative, sep } from "node:path";
3
3
  import { versions } from "node:process";
4
4
 
5
- import connect from "connect";
6
5
  import debug from "debug";
7
6
  import type { MetroConfig } from "metro-config";
8
7
 
9
- import type { CompilerOptions, ReactNativeCssStyleSheet } from "../compiler";
10
- import { compile } from "../compiler/compiler";
8
+ import {
9
+ compile,
10
+ type CompilerOptions,
11
+ type ReactNativeCssStyleSheet,
12
+ } from "../compiler";
11
13
  import { getNativeInjectionCode, getWebInjectionCode } from "./injection-code";
12
14
  import { nativeResolver, webResolver } from "./resolver";
13
15
  import { setupTypeScript } from "./typescript";
@@ -50,12 +52,9 @@ export function withReactNativeCSS<
50
52
  setupTypeScript(typescriptEnvPath);
51
53
  }
52
54
 
53
- const originalMiddleware = config.server?.enhanceMiddleware;
54
- const originalResolver = config.resolver?.resolveRequest;
55
-
56
55
  return {
57
56
  ...config,
58
- transformerPath: require.resolve("./metro-transformer"),
57
+ // transformerPath: require.resolve("./metro-transformer"),
59
58
  transformer: {
60
59
  ...config.transformer,
61
60
  reactNativeCSS: options,
@@ -68,13 +67,14 @@ export function withReactNativeCSS<
68
67
  return { type: "empty" };
69
68
  }
70
69
 
70
+ const parentResolver =
71
+ config.resolver?.resolveRequest ?? context.resolveRequest;
72
+
71
73
  // Don't hijack the resolution of react-native imports
72
74
  if (!globalClassNamePolyfill) {
73
- const parentResolver = originalResolver ?? context.resolveRequest;
74
75
  return parentResolver(context, moduleName, platform);
75
76
  }
76
77
 
77
- const parentResolver = originalResolver ?? context.resolveRequest;
78
78
  const resolver = platform === "web" ? webResolver : nativeResolver;
79
79
  const resolved = resolver(
80
80
  parentResolver,
@@ -88,8 +88,7 @@ export function withReactNativeCSS<
88
88
  },
89
89
  server: {
90
90
  ...config.server,
91
- enhanceMiddleware(middleware, metroServer) {
92
- const server = connect();
91
+ enhanceMiddleware(metroMiddleware, metroServer) {
93
92
  const bundler: any = metroServer.getBundler().getBundler();
94
93
 
95
94
  if (!bundler.__react_native_css__patched) {
@@ -101,9 +100,7 @@ export function withReactNativeCSS<
101
100
  >();
102
101
  const webCSSFiles = new Set<string>();
103
102
 
104
- const nativeInjectionPath = require.resolve(
105
- "../runtime/native/metro",
106
- );
103
+ const nativeInjectionPath = require.resolve("../native/metro");
107
104
  const nativeInjectionFilepaths = [
108
105
  // CommonJS
109
106
  nativeInjectionPath,
@@ -118,7 +115,7 @@ export function withReactNativeCSS<
118
115
  .replace(".js", ".ts"),
119
116
  ];
120
117
 
121
- const webInjectionPath = require.resolve("../runtime/web/metro");
118
+ const webInjectionPath = require.resolve("../web/metro");
122
119
  const webInjectionFilepaths = [
123
120
  // CommonJS
124
121
  webInjectionPath,
@@ -230,9 +227,14 @@ export function withReactNativeCSS<
230
227
  };
231
228
  }
232
229
 
233
- return originalMiddleware
234
- ? server.use(originalMiddleware(middleware, metroServer))
235
- : server.use(middleware);
230
+ /**
231
+ * We don't modify the middleware, we just use this function to get the metroServer
232
+ * So simply return the existing middleware
233
+ */
234
+ return (
235
+ config.server?.enhanceMiddleware?.(metroMiddleware, metroServer) ??
236
+ metroMiddleware
237
+ );
236
238
  },
237
239
  },
238
240
  };
@@ -29,6 +29,6 @@ export function getNativeInjectionCode(
29
29
  .join("\n");
30
30
 
31
31
  return Buffer.from(
32
- `import { StyleCollection } from "react-native-css/style-collection";\n${importStatements}\n${contents};export {};`,
32
+ `import { StyleCollection } from "react-native-css/native-internal";\n${importStatements}\n${contents};export {};`,
33
33
  );
34
34
  }
@@ -0,0 +1,120 @@
1
+ /* eslint-disable */
2
+ import { useContext, useState } from "react";
3
+ import { Appearance } from "react-native";
4
+
5
+ import type { StyleDescriptor } from "react-native-css/compiler";
6
+ import { VariableContext } from "react-native-css/native-internal";
7
+
8
+ import type {
9
+ ColorScheme,
10
+ Props,
11
+ ReactComponent,
12
+ StyledConfiguration,
13
+ StyledOptions,
14
+ } from "../runtime.types";
15
+ import { mappingToConfig, useNativeCss } from "./react/useNativeCss";
16
+ import { usePassthrough } from "./react/usePassthrough";
17
+ import {
18
+ colorScheme as colorSchemeObs,
19
+ VAR_SYMBOL,
20
+ type Effect,
21
+ type Getter,
22
+ } from "./reactivity";
23
+ import { resolveValue } from "./styles/resolve";
24
+
25
+ export {
26
+ StyleCollection,
27
+ VariableContext,
28
+ VariableContextProvider,
29
+ } from "react-native-css/native-internal";
30
+
31
+ export { useNativeCss };
32
+
33
+ /**
34
+ * Generates a new Higher-Order component the wraps the base component and applies the styles.
35
+ * This is added to the `interopComponents` map so that it can be used in the `wrapJSX` function
36
+ * @param baseComponent
37
+ * @param mapping
38
+ */
39
+ export const styled = <
40
+ const C extends ReactComponent<any>,
41
+ const M extends StyledConfiguration<C>,
42
+ >(
43
+ baseComponent: C,
44
+ mapping: M,
45
+ options?: StyledOptions,
46
+ ) => {
47
+ let component: any;
48
+ // const type = getComponentType(baseComponent);
49
+
50
+ const configs = mappingToConfig(mapping);
51
+
52
+ if (options?.passThrough) {
53
+ component = (props: Record<string, any>) => {
54
+ return usePassthrough(baseComponent, props, configs);
55
+ };
56
+ } else {
57
+ component = (props: Record<string, any>) => {
58
+ return useNativeCss(baseComponent, props, configs);
59
+ };
60
+ }
61
+
62
+ const name = baseComponent.displayName ?? baseComponent.name ?? "unknown";
63
+ component.displayName = `CssInterop.${name}`;
64
+ return component;
65
+ };
66
+
67
+ export const colorScheme: ColorScheme = {
68
+ get() {
69
+ return colorSchemeObs.get() ?? Appearance.getColorScheme() ?? "light";
70
+ },
71
+ set(value) {
72
+ return colorSchemeObs.set(value);
73
+ },
74
+ };
75
+
76
+ export const useUnstableNativeVariable = useNativeVariable;
77
+
78
+ export const useCssElement = <
79
+ const C extends ReactComponent<any>,
80
+ const M extends StyledConfiguration<C>,
81
+ >(
82
+ component: C,
83
+ incomingProps: Props,
84
+ mapping: M,
85
+ ) => {
86
+ const [config] = useState(() => mappingToConfig(mapping));
87
+ return useNativeCss(component, incomingProps, config);
88
+ };
89
+
90
+ export function useNativeVariable(name: string) {
91
+ if (name.startsWith("--")) {
92
+ name = name.slice(2);
93
+ }
94
+
95
+ const inheritedVariables = useContext(VariableContext);
96
+ const [effect, setState] = useState(() => {
97
+ const effect: Effect = {
98
+ observers: new Set(),
99
+ run: () => setState((state) => ({ ...state })),
100
+ };
101
+
102
+ const get: Getter = (observable) => observable.get(effect);
103
+
104
+ return { ...effect, get };
105
+ });
106
+
107
+ return resolveValue([{}, "var", [name]], effect.get, { inheritedVariables });
108
+ }
109
+
110
+ /**
111
+ * @deprecated Use `<VariableContextProvider />` instead.
112
+ */
113
+ export function vars(variables: Record<string, StyleDescriptor>) {
114
+ return Object.assign(
115
+ { [VAR_SYMBOL]: "inline" },
116
+ Object.fromEntries(
117
+ Object.entries(variables).map(([k, v]) => [k.replace(/^--/, ""), v]),
118
+ ),
119
+ );
120
+ }