react-native-css 0.0.0-nightly.d11bf3f → 0.0.0-nightly.d6f42ab

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 (377) hide show
  1. package/dist/commonjs/compiler/atRules.js +30 -16
  2. package/dist/commonjs/compiler/atRules.js.map +1 -1
  3. package/dist/commonjs/compiler/compiler.js +29 -19
  4. package/dist/commonjs/compiler/compiler.js.map +1 -1
  5. package/dist/commonjs/compiler/declarations.js +10 -10
  6. package/dist/commonjs/compiler/declarations.js.map +1 -1
  7. package/dist/commonjs/compiler/keyframes.js +1 -1
  8. package/dist/commonjs/compiler/keyframes.js.map +1 -1
  9. package/dist/commonjs/compiler/lightningcss-loader.js +40 -0
  10. package/dist/commonjs/compiler/lightningcss-loader.js.map +1 -0
  11. package/dist/commonjs/compiler/selector-builder.js +3 -2
  12. package/dist/commonjs/compiler/selector-builder.js.map +1 -1
  13. package/dist/commonjs/compiler/stylesheet.js +5 -7
  14. package/dist/commonjs/compiler/stylesheet.js.map +1 -1
  15. package/dist/commonjs/components/ActivityIndicator.js +6 -6
  16. package/dist/commonjs/components/ActivityIndicator.js.map +1 -1
  17. package/dist/commonjs/components/Button.js +6 -6
  18. package/dist/commonjs/components/Button.js.map +1 -1
  19. package/dist/commonjs/components/FlatList.js +10 -9
  20. package/dist/commonjs/components/FlatList.js.map +1 -1
  21. package/dist/commonjs/components/Image.js +6 -6
  22. package/dist/commonjs/components/Image.js.map +1 -1
  23. package/dist/commonjs/components/ImageBackground.js +22 -0
  24. package/dist/commonjs/components/ImageBackground.js.map +1 -0
  25. package/dist/commonjs/components/KeyboardAvoidingView.js +19 -0
  26. package/dist/commonjs/components/KeyboardAvoidingView.js.map +1 -0
  27. package/dist/commonjs/components/Pressable.js +17 -0
  28. package/dist/commonjs/components/Pressable.js.map +1 -0
  29. package/dist/commonjs/components/ScrollView.js +18 -0
  30. package/dist/commonjs/components/ScrollView.js.map +1 -0
  31. package/dist/commonjs/components/Switch.js +6 -6
  32. package/dist/commonjs/components/Switch.js.map +1 -1
  33. package/dist/commonjs/components/Text.js +6 -6
  34. package/dist/commonjs/components/Text.js.map +1 -1
  35. package/dist/commonjs/components/TextInput.js +12 -7
  36. package/dist/commonjs/components/TextInput.js.map +1 -1
  37. package/dist/commonjs/components/TouchableHighlight.js +17 -0
  38. package/dist/commonjs/components/TouchableHighlight.js.map +1 -0
  39. package/dist/commonjs/components/TouchableOpacity.js +17 -0
  40. package/dist/commonjs/components/TouchableOpacity.js.map +1 -0
  41. package/dist/commonjs/components/TouchableWithoutFeedback.js +17 -0
  42. package/dist/commonjs/components/TouchableWithoutFeedback.js.map +1 -0
  43. package/dist/commonjs/components/View.js +6 -6
  44. package/dist/commonjs/components/View.js.map +1 -1
  45. package/dist/commonjs/components/VirtualizedList.js +20 -0
  46. package/dist/commonjs/components/VirtualizedList.js.map +1 -0
  47. package/dist/commonjs/components/copyComponentProperties.js +19 -0
  48. package/dist/commonjs/components/copyComponentProperties.js.map +1 -0
  49. package/dist/commonjs/components/index.cjs +265 -0
  50. package/dist/commonjs/components/index.cjs.map +1 -0
  51. package/dist/commonjs/components/index.js +65 -1
  52. package/dist/commonjs/components/index.js.map +1 -1
  53. package/dist/commonjs/index.js +0 -11
  54. package/dist/commonjs/index.js.map +1 -1
  55. package/dist/commonjs/jest/index.js +1 -1
  56. package/dist/commonjs/jest/index.js.map +1 -1
  57. package/dist/commonjs/metro/index.js +7 -117
  58. package/dist/commonjs/metro/index.js.map +1 -1
  59. package/dist/commonjs/metro/metro-transformer.js +8 -1
  60. package/dist/commonjs/metro/metro-transformer.js.map +1 -1
  61. package/dist/commonjs/{native/metro.js → metro/override.js} +1 -1
  62. package/dist/commonjs/{native/metro.js.map → metro/override.js.map} +1 -1
  63. package/dist/commonjs/metro/resolver.js +15 -22
  64. package/dist/commonjs/metro/resolver.js.map +1 -1
  65. package/dist/commonjs/native/api.js +5 -1
  66. package/dist/commonjs/native/api.js.map +1 -1
  67. package/dist/commonjs/native/index.js +8 -8
  68. package/dist/commonjs/native/index.js.map +1 -1
  69. package/dist/commonjs/{poison.pill.js → native/react-native-css-metro-override.js} +1 -1
  70. package/dist/commonjs/native/react-native-css-metro-override.js.map +1 -0
  71. package/dist/commonjs/native/styles/calculate-props.js +1 -1
  72. package/dist/commonjs/native/styles/resolve.js +0 -1
  73. package/dist/commonjs/native/styles/resolve.js.map +1 -1
  74. package/dist/commonjs/native/styles/shorthands/animation.js +6 -2
  75. package/dist/commonjs/native/styles/shorthands/animation.js.map +1 -1
  76. package/dist/commonjs/web/api.js +5 -2
  77. package/dist/commonjs/web/api.js.map +1 -1
  78. package/dist/module/compiler/atRules.js +30 -16
  79. package/dist/module/compiler/atRules.js.map +1 -1
  80. package/dist/module/compiler/compiler.js +25 -15
  81. package/dist/module/compiler/compiler.js.map +1 -1
  82. package/dist/module/compiler/declarations.js +10 -10
  83. package/dist/module/compiler/declarations.js.map +1 -1
  84. package/dist/module/compiler/keyframes.js +1 -1
  85. package/dist/module/compiler/keyframes.js.map +1 -1
  86. package/dist/module/compiler/lightningcss-loader.js +36 -0
  87. package/dist/module/compiler/lightningcss-loader.js.map +1 -0
  88. package/dist/module/compiler/selector-builder.js +3 -2
  89. package/dist/module/compiler/selector-builder.js.map +1 -1
  90. package/dist/module/compiler/stylesheet.js +5 -7
  91. package/dist/module/compiler/stylesheet.js.map +1 -1
  92. package/dist/module/components/ActivityIndicator.js +4 -3
  93. package/dist/module/components/ActivityIndicator.js.map +1 -1
  94. package/dist/module/components/Button.js +4 -3
  95. package/dist/module/components/Button.js.map +1 -1
  96. package/dist/module/components/FlatList.js +8 -6
  97. package/dist/module/components/FlatList.js.map +1 -1
  98. package/dist/module/components/Image.js +4 -3
  99. package/dist/module/components/Image.js.map +1 -1
  100. package/dist/module/components/ImageBackground.js +18 -0
  101. package/dist/module/components/ImageBackground.js.map +1 -0
  102. package/dist/module/components/KeyboardAvoidingView.js +15 -0
  103. package/dist/module/components/KeyboardAvoidingView.js.map +1 -0
  104. package/dist/module/components/Pressable.js +13 -0
  105. package/dist/module/components/Pressable.js.map +1 -0
  106. package/dist/module/components/ScrollView.js +14 -0
  107. package/dist/module/components/ScrollView.js.map +1 -0
  108. package/dist/module/components/Switch.js +4 -3
  109. package/dist/module/components/Switch.js.map +1 -1
  110. package/dist/module/components/Text.js +4 -3
  111. package/dist/module/components/Text.js.map +1 -1
  112. package/dist/module/components/TextInput.js +10 -4
  113. package/dist/module/components/TextInput.js.map +1 -1
  114. package/dist/module/components/TouchableHighlight.js +13 -0
  115. package/dist/module/components/TouchableHighlight.js.map +1 -0
  116. package/dist/module/components/TouchableOpacity.js +13 -0
  117. package/dist/module/components/TouchableOpacity.js.map +1 -0
  118. package/dist/module/components/TouchableWithoutFeedback.js +13 -0
  119. package/dist/module/components/TouchableWithoutFeedback.js.map +1 -0
  120. package/dist/module/components/View.js +4 -3
  121. package/dist/module/components/View.js.map +1 -1
  122. package/dist/module/components/VirtualizedList.js +16 -0
  123. package/dist/module/components/VirtualizedList.js.map +1 -0
  124. package/dist/module/components/copyComponentProperties.js +15 -0
  125. package/dist/module/components/copyComponentProperties.js.map +1 -0
  126. package/dist/module/components/index.cjs +265 -0
  127. package/dist/module/components/index.cjs.map +1 -0
  128. package/dist/module/components/index.js +8 -0
  129. package/dist/module/components/index.js.map +1 -1
  130. package/dist/module/index.js +0 -1
  131. package/dist/module/index.js.map +1 -1
  132. package/dist/module/jest/index.js +1 -1
  133. package/dist/module/jest/index.js.map +1 -1
  134. package/dist/module/metro/index.js +7 -116
  135. package/dist/module/metro/index.js.map +1 -1
  136. package/dist/module/metro/metro-transformer.js +8 -1
  137. package/dist/module/metro/metro-transformer.js.map +1 -1
  138. package/dist/module/metro/override.js +4 -0
  139. package/dist/module/{native/metro.js.map → metro/override.js.map} +1 -1
  140. package/dist/module/metro/resolver.js +15 -22
  141. package/dist/module/metro/resolver.js.map +1 -1
  142. package/dist/module/native/api.js +4 -1
  143. package/dist/module/native/api.js.map +1 -1
  144. package/dist/module/native/index.js +1 -1
  145. package/dist/module/native/index.js.map +1 -1
  146. package/dist/module/{poison.pill.js → native/react-native-css-metro-override.js} +1 -1
  147. package/dist/module/native/react-native-css-metro-override.js.map +1 -0
  148. package/dist/module/native/styles/calculate-props.js +1 -1
  149. package/dist/module/native/styles/resolve.js +0 -1
  150. package/dist/module/native/styles/resolve.js.map +1 -1
  151. package/dist/module/native/styles/shorthands/animation.js +4 -1
  152. package/dist/module/native/styles/shorthands/animation.js.map +1 -1
  153. package/dist/module/web/api.js +5 -2
  154. package/dist/module/web/api.js.map +1 -1
  155. package/dist/typescript/commonjs/.config/eslint.config.d.mts +3 -0
  156. package/dist/typescript/commonjs/.config/eslint.config.d.mts.map +1 -0
  157. package/dist/typescript/commonjs/eslint.config.d.mts +2 -0
  158. package/dist/typescript/commonjs/eslint.config.d.mts.map +1 -0
  159. package/dist/typescript/commonjs/example/app.config.d.ts.map +1 -1
  160. package/dist/typescript/commonjs/example/index.d.ts +2 -0
  161. package/dist/typescript/commonjs/example/index.d.ts.map +1 -0
  162. package/dist/typescript/commonjs/example/metro.config.d.ts +3 -0
  163. package/dist/typescript/commonjs/example/metro.config.d.ts.map +1 -0
  164. package/dist/typescript/commonjs/example/postcss.config.d.mts +7 -0
  165. package/dist/typescript/commonjs/example/postcss.config.d.mts.map +1 -0
  166. package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -1
  167. package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -1
  168. package/dist/typescript/commonjs/src/compiler/declarations.d.ts +1 -1
  169. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts +1 -1
  170. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts.map +1 -1
  171. package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts +30 -0
  172. package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts.map +1 -0
  173. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -1
  174. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +2 -1
  175. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -1
  176. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +2 -11
  177. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -1
  178. package/dist/typescript/commonjs/src/components/Button.d.ts +2 -11
  179. package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -1
  180. package/dist/typescript/commonjs/src/components/FlatList.d.ts +4 -8
  181. package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -1
  182. package/dist/typescript/commonjs/src/components/Image.d.ts +2 -6
  183. package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -1
  184. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts +4 -0
  185. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts.map +1 -0
  186. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts +4 -0
  187. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts.map +1 -0
  188. package/dist/typescript/commonjs/src/components/Pressable.d.ts +4 -0
  189. package/dist/typescript/commonjs/src/components/Pressable.d.ts.map +1 -0
  190. package/dist/typescript/commonjs/src/components/ScrollView.d.ts +4 -0
  191. package/dist/typescript/commonjs/src/components/ScrollView.d.ts.map +1 -0
  192. package/dist/typescript/commonjs/src/components/Switch.d.ts +2 -6
  193. package/dist/typescript/commonjs/src/components/Switch.d.ts.map +1 -1
  194. package/dist/typescript/commonjs/src/components/Text.d.ts +2 -6
  195. package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -1
  196. package/dist/typescript/commonjs/src/components/TextInput.d.ts +2 -6
  197. package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -1
  198. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts +4 -0
  199. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts.map +1 -0
  200. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts +4 -0
  201. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts.map +1 -0
  202. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts +4 -0
  203. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
  204. package/dist/typescript/commonjs/src/components/View.d.ts +2 -6
  205. package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -1
  206. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts +6 -0
  207. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts.map +1 -0
  208. package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts +5 -0
  209. package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts.map +1 -0
  210. package/dist/typescript/commonjs/src/components/index.d.cts +2 -0
  211. package/dist/typescript/commonjs/src/components/index.d.cts.map +1 -0
  212. package/dist/typescript/commonjs/src/components/index.d.ts +8 -0
  213. package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -1
  214. package/dist/typescript/commonjs/src/index.d.ts +0 -1
  215. package/dist/typescript/commonjs/src/index.d.ts.map +1 -1
  216. package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -1
  217. package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -1
  218. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -1
  219. package/dist/typescript/commonjs/src/metro/override.d.ts +2 -0
  220. package/dist/typescript/commonjs/src/metro/override.d.ts.map +1 -0
  221. package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -1
  222. package/dist/typescript/commonjs/src/native/api.d.ts +1 -1
  223. package/dist/typescript/commonjs/src/native/api.d.ts.map +1 -1
  224. package/dist/typescript/commonjs/src/native/index.d.ts +1 -1
  225. package/dist/typescript/commonjs/src/native/index.d.ts.map +1 -1
  226. package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts +2 -0
  227. package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts.map +1 -0
  228. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts.map +1 -1
  229. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts +1 -0
  230. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts.map +1 -1
  231. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts +1 -1
  232. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts.map +1 -1
  233. package/dist/typescript/commonjs/src/web/api.d.ts +2 -2
  234. package/dist/typescript/commonjs/src/web/api.d.ts.map +1 -1
  235. package/dist/typescript/module/.config/eslint.config.d.mts +3 -0
  236. package/dist/typescript/module/.config/eslint.config.d.mts.map +1 -0
  237. package/dist/typescript/module/eslint.config.d.mts +2 -0
  238. package/dist/typescript/module/eslint.config.d.mts.map +1 -0
  239. package/dist/typescript/module/example/app.config.d.ts.map +1 -1
  240. package/dist/typescript/module/example/index.d.ts +2 -0
  241. package/dist/typescript/module/example/index.d.ts.map +1 -0
  242. package/dist/typescript/module/example/metro.config.d.ts +3 -0
  243. package/dist/typescript/module/example/metro.config.d.ts.map +1 -0
  244. package/dist/typescript/module/example/postcss.config.d.mts +7 -0
  245. package/dist/typescript/module/example/postcss.config.d.mts.map +1 -0
  246. package/dist/typescript/module/example/src/App.d.ts.map +1 -1
  247. package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -1
  248. package/dist/typescript/module/src/compiler/declarations.d.ts +1 -1
  249. package/dist/typescript/module/src/compiler/keyframes.d.ts +1 -1
  250. package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -1
  251. package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts +30 -0
  252. package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts.map +1 -0
  253. package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -1
  254. package/dist/typescript/module/src/compiler/stylesheet.d.ts +2 -1
  255. package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -1
  256. package/dist/typescript/module/src/components/ActivityIndicator.d.ts +2 -11
  257. package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -1
  258. package/dist/typescript/module/src/components/Button.d.ts +2 -11
  259. package/dist/typescript/module/src/components/Button.d.ts.map +1 -1
  260. package/dist/typescript/module/src/components/FlatList.d.ts +4 -8
  261. package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -1
  262. package/dist/typescript/module/src/components/Image.d.ts +2 -6
  263. package/dist/typescript/module/src/components/Image.d.ts.map +1 -1
  264. package/dist/typescript/module/src/components/ImageBackground.d.ts +4 -0
  265. package/dist/typescript/module/src/components/ImageBackground.d.ts.map +1 -0
  266. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts +4 -0
  267. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts.map +1 -0
  268. package/dist/typescript/module/src/components/Pressable.d.ts +4 -0
  269. package/dist/typescript/module/src/components/Pressable.d.ts.map +1 -0
  270. package/dist/typescript/module/src/components/ScrollView.d.ts +4 -0
  271. package/dist/typescript/module/src/components/ScrollView.d.ts.map +1 -0
  272. package/dist/typescript/module/src/components/Switch.d.ts +2 -6
  273. package/dist/typescript/module/src/components/Switch.d.ts.map +1 -1
  274. package/dist/typescript/module/src/components/Text.d.ts +2 -6
  275. package/dist/typescript/module/src/components/Text.d.ts.map +1 -1
  276. package/dist/typescript/module/src/components/TextInput.d.ts +2 -6
  277. package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -1
  278. package/dist/typescript/module/src/components/TouchableHighlight.d.ts +4 -0
  279. package/dist/typescript/module/src/components/TouchableHighlight.d.ts.map +1 -0
  280. package/dist/typescript/module/src/components/TouchableOpacity.d.ts +4 -0
  281. package/dist/typescript/module/src/components/TouchableOpacity.d.ts.map +1 -0
  282. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts +4 -0
  283. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
  284. package/dist/typescript/module/src/components/View.d.ts +2 -6
  285. package/dist/typescript/module/src/components/View.d.ts.map +1 -1
  286. package/dist/typescript/module/src/components/VirtualizedList.d.ts +6 -0
  287. package/dist/typescript/module/src/components/VirtualizedList.d.ts.map +1 -0
  288. package/dist/typescript/module/src/components/copyComponentProperties.d.ts +5 -0
  289. package/dist/typescript/module/src/components/copyComponentProperties.d.ts.map +1 -0
  290. package/dist/typescript/module/src/components/index.d.cts +2 -0
  291. package/dist/typescript/module/src/components/index.d.cts.map +1 -0
  292. package/dist/typescript/module/src/components/index.d.ts +8 -0
  293. package/dist/typescript/module/src/components/index.d.ts.map +1 -1
  294. package/dist/typescript/module/src/index.d.ts +0 -1
  295. package/dist/typescript/module/src/index.d.ts.map +1 -1
  296. package/dist/typescript/module/src/jest/index.d.ts.map +1 -1
  297. package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
  298. package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -1
  299. package/dist/typescript/module/src/metro/override.d.ts +2 -0
  300. package/dist/typescript/module/src/metro/override.d.ts.map +1 -0
  301. package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -1
  302. package/dist/typescript/module/src/native/api.d.ts +1 -1
  303. package/dist/typescript/module/src/native/api.d.ts.map +1 -1
  304. package/dist/typescript/module/src/native/index.d.ts +1 -1
  305. package/dist/typescript/module/src/native/index.d.ts.map +1 -1
  306. package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts +2 -0
  307. package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts.map +1 -0
  308. package/dist/typescript/module/src/native/styles/resolve.d.ts.map +1 -1
  309. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts +1 -0
  310. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts.map +1 -1
  311. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts +1 -1
  312. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts.map +1 -1
  313. package/dist/typescript/module/src/web/api.d.ts +2 -2
  314. package/dist/typescript/module/src/web/api.d.ts.map +1 -1
  315. package/package.json +16 -18
  316. package/src/compiler/atRules.ts +30 -17
  317. package/src/compiler/compiler.ts +27 -16
  318. package/src/compiler/declarations.ts +10 -10
  319. package/src/compiler/keyframes.ts +2 -2
  320. package/src/compiler/lightningcss-loader.ts +40 -0
  321. package/src/compiler/selector-builder.ts +6 -2
  322. package/src/compiler/stylesheet.ts +5 -7
  323. package/src/components/ActivityIndicator.tsx +11 -8
  324. package/src/components/Button.tsx +11 -6
  325. package/src/components/FlatList.tsx +20 -10
  326. package/src/components/Image.tsx +11 -6
  327. package/src/components/ImageBackground.tsx +30 -0
  328. package/src/components/KeyboardAvoidingView.tsx +27 -0
  329. package/src/components/Pressable.tsx +22 -0
  330. package/src/components/ScrollView.tsx +23 -0
  331. package/src/components/Switch.tsx +9 -4
  332. package/src/components/Text.tsx +9 -4
  333. package/src/components/TextInput.tsx +17 -7
  334. package/src/components/TouchableHighlight.tsx +25 -0
  335. package/src/components/TouchableOpacity.tsx +25 -0
  336. package/src/components/TouchableWithoutFeedback.tsx +25 -0
  337. package/src/components/View.tsx +9 -4
  338. package/src/components/VirtualizedList.tsx +37 -0
  339. package/src/components/copyComponentProperties.ts +21 -0
  340. package/src/components/index.cts +263 -0
  341. package/src/components/index.ts +17 -0
  342. package/src/index.ts +0 -2
  343. package/src/jest/index.ts +2 -1
  344. package/src/metro/index.ts +7 -165
  345. package/src/metro/metro-transformer.ts +15 -1
  346. package/src/metro/override.ts +1 -0
  347. package/src/metro/resolver.ts +29 -28
  348. package/src/native/api.tsx +6 -2
  349. package/src/native/index.ts +1 -2
  350. package/src/native/styles/calculate-props.ts +1 -1
  351. package/src/native/styles/resolve.ts +0 -1
  352. package/src/native/styles/shorthands/animation.ts +10 -2
  353. package/src/utilities/dot-notation.types.ts +10 -3
  354. package/src/web/api.tsx +9 -4
  355. package/dist/commonjs/poison.pill.js.map +0 -1
  356. package/dist/commonjs/runtime/native/injection.js +0 -2
  357. package/dist/commonjs/runtime/native/injection.js.map +0 -1
  358. package/dist/module/native/metro.js +0 -5
  359. package/dist/module/poison.pill.js.map +0 -1
  360. package/dist/module/runtime/native/injection.js +0 -2
  361. package/dist/module/runtime/native/injection.js.map +0 -1
  362. package/dist/typescript/commonjs/src/native/metro.d.ts +0 -2
  363. package/dist/typescript/commonjs/src/native/metro.d.ts.map +0 -1
  364. package/dist/typescript/commonjs/src/poison.pill.d.ts +0 -2
  365. package/dist/typescript/commonjs/src/poison.pill.d.ts.map +0 -1
  366. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts +0 -1
  367. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts.map +0 -1
  368. package/dist/typescript/module/src/native/metro.d.ts +0 -2
  369. package/dist/typescript/module/src/native/metro.d.ts.map +0 -1
  370. package/dist/typescript/module/src/poison.pill.d.ts +0 -2
  371. package/dist/typescript/module/src/poison.pill.d.ts.map +0 -1
  372. package/dist/typescript/module/src/runtime/native/injection.d.ts +0 -1
  373. package/dist/typescript/module/src/runtime/native/injection.d.ts.map +0 -1
  374. package/src/components/index.tsx +0 -10
  375. package/src/native/metro.ts +0 -2
  376. package/src/runtime/native/injection.ts +0 -0
  377. /package/src/{poison.pill.ts → native/react-native-css-metro-override.ts} +0 -0
@@ -29,9 +29,16 @@ export type StyleProp<T> =
29
29
  // ---------- Type Helpers ----------
30
30
 
31
31
  // Unwrap nested arrays (from RecursiveArray)
32
- type UnwrapRecursiveArray<T> = T extends (infer I)[]
33
- ? UnwrapRecursiveArray<I>
34
- : T;
32
+ type UnwrapRecursiveArray<
33
+ T,
34
+ Depth extends unknown[] = [],
35
+ MaxDepth extends number = 10
36
+ > = Depth["length"] extends MaxDepth
37
+ ? T
38
+ : T extends (infer I)[]
39
+ ? UnwrapRecursiveArray<I, [...Depth, unknown], MaxDepth>
40
+ : T;
41
+
35
42
 
36
43
  // Remove null, false, undefined, etc.
37
44
  type RemoveFalsy<T> = Exclude<T, Falsy>;
package/src/web/api.tsx CHANGED
@@ -1,7 +1,8 @@
1
1
  import {
2
2
  createElement,
3
3
  useMemo,
4
- type ComponentProps,
4
+ type ComponentPropsWithRef,
5
+ type ComponentType,
5
6
  type PropsWithChildren,
6
7
  } from "react";
7
8
  import { Appearance } from "react-native";
@@ -17,15 +18,19 @@ import type {
17
18
  import type { ReactComponent } from "../runtime.types";
18
19
  import { assignStyle } from "./assign-style";
19
20
 
21
+ const defaultMapping: StyledConfiguration<ComponentType<{ style: unknown }>> = {
22
+ className: "style",
23
+ };
24
+
20
25
  export const styled = <
21
26
  const C extends ReactComponent,
22
27
  const M extends StyledConfiguration<C>,
23
28
  >(
24
29
  baseComponent: C,
25
- mapping: M,
30
+ mapping: M = defaultMapping as M,
26
31
  _options?: StyledOptions,
27
32
  ) => {
28
- return (props: StyledProps<ComponentProps<C>, M>) => {
33
+ return (props: StyledProps<ComponentPropsWithRef<C>, M>) => {
29
34
  return useCssElement(baseComponent, mapping, props);
30
35
  };
31
36
  };
@@ -93,7 +98,7 @@ export function VariableContextProvider(
93
98
  ) {
94
99
  const style = useMemo(() => {
95
100
  return {
96
- display: "content",
101
+ display: "contents",
97
102
  ...Object.fromEntries(
98
103
  Object.entries(props.value).map(([key, value]) => [
99
104
  key.startsWith("--") ? key : `--${key}`,
@@ -1 +0,0 @@
1
- {"version":3,"names":["canWarn","process","env","NODE_ENV","Error"],"sourceRoot":"../../src","sources":["poison.pill.ts"],"mappings":";;;;;AAAA,MAAMA,OAAO,GAAGC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,MAAM;AAE/C,IAAIH,OAAO,EAAE;EACX,MAAM,IAAII,KAAK,CAAC;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC;AACF","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=injection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["runtime/native/injection.ts"],"mappings":"","ignoreList":[]}
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- // This file will be overwritten by Metro
4
- export {};
5
- //# sourceMappingURL=metro.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["canWarn","process","env","NODE_ENV","Error"],"sourceRoot":"../../src","sources":["poison.pill.ts"],"mappings":";;AAAA,MAAMA,OAAO,GAAGC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,MAAM;AAE/C,IAAIH,OAAO,EAAE;EACX,MAAM,IAAII,KAAK,CAAC;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC;AACF;AAEA","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=injection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["runtime/native/injection.ts"],"mappings":"","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=metro.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"metro.d.ts","sourceRoot":"","sources":["../../../../../src/native/metro.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=poison.pill.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"poison.pill.d.ts","sourceRoot":"","sources":["../../../../src/poison.pill.ts"],"names":[],"mappings":"AAmCA,OAAO,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=injection.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"injection.d.ts","sourceRoot":"","sources":["../../../../../../src/runtime/native/injection.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=metro.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"metro.d.ts","sourceRoot":"","sources":["../../../../../src/native/metro.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=poison.pill.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"poison.pill.d.ts","sourceRoot":"","sources":["../../../../src/poison.pill.ts"],"names":[],"mappings":"AAmCA,OAAO,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=injection.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"injection.d.ts","sourceRoot":"","sources":["../../../../../../src/runtime/native/injection.ts"],"names":[],"mappings":""}
@@ -1,10 +0,0 @@
1
- export * from "react-native";
2
-
3
- export { ActivityIndicator } from "./ActivityIndicator";
4
- export { Button } from "./Button";
5
- export { FlatList } from "./FlatList";
6
- export { Image } from "./Image";
7
- export { Switch } from "./Switch";
8
- export { Text } from "./Text";
9
- export { TextInput } from "./TextInput";
10
- export { View } from "./View";
@@ -1,2 +0,0 @@
1
- // This file will be overwritten by Metro
2
- export {};
File without changes