react-native-css 0.0.0-nightly.08286a2 → 0.0.0-nightly.126d37e

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 (420) hide show
  1. package/README.md +5 -5
  2. package/dist/commonjs/compiler/atRules.js +14 -10
  3. package/dist/commonjs/compiler/atRules.js.map +1 -1
  4. package/dist/commonjs/compiler/compiler.js +49 -1
  5. package/dist/commonjs/compiler/compiler.js.map +1 -1
  6. package/dist/commonjs/compiler/declarations.js +61 -10
  7. package/dist/commonjs/compiler/declarations.js.map +1 -1
  8. package/dist/commonjs/compiler/keyframes.js +1 -1
  9. package/dist/commonjs/compiler/keyframes.js.map +1 -1
  10. package/dist/commonjs/compiler/lightningcss-loader.js +12 -2
  11. package/dist/commonjs/compiler/lightningcss-loader.js.map +1 -1
  12. package/dist/commonjs/compiler/stylesheet.js +7 -5
  13. package/dist/commonjs/compiler/stylesheet.js.map +1 -1
  14. package/dist/commonjs/compiler/supports.js +2 -2
  15. package/dist/commonjs/compiler/supports.js.map +1 -1
  16. package/dist/commonjs/components/ActivityIndicator.js +6 -6
  17. package/dist/commonjs/components/ActivityIndicator.js.map +1 -1
  18. package/dist/commonjs/components/Button.js +6 -6
  19. package/dist/commonjs/components/Button.js.map +1 -1
  20. package/dist/commonjs/components/FlatList.js +6 -6
  21. package/dist/commonjs/components/FlatList.js.map +1 -1
  22. package/dist/commonjs/components/Image.js +6 -6
  23. package/dist/commonjs/components/Image.js.map +1 -1
  24. package/dist/commonjs/components/ImageBackground.js +6 -6
  25. package/dist/commonjs/components/ImageBackground.js.map +1 -1
  26. package/dist/commonjs/components/KeyboardAvoidingView.js +6 -6
  27. package/dist/commonjs/components/KeyboardAvoidingView.js.map +1 -1
  28. package/dist/commonjs/components/Pressable.js +6 -6
  29. package/dist/commonjs/components/Pressable.js.map +1 -1
  30. package/dist/commonjs/components/SafeAreaProvider.js +13 -0
  31. package/dist/commonjs/components/SafeAreaProvider.js.map +1 -0
  32. package/dist/commonjs/components/ScrollView.js +6 -6
  33. package/dist/commonjs/components/ScrollView.js.map +1 -1
  34. package/dist/commonjs/components/Switch.js +6 -6
  35. package/dist/commonjs/components/Switch.js.map +1 -1
  36. package/dist/commonjs/components/Text.js +6 -6
  37. package/dist/commonjs/components/Text.js.map +1 -1
  38. package/dist/commonjs/components/TextInput.js +6 -6
  39. package/dist/commonjs/components/TextInput.js.map +1 -1
  40. package/dist/commonjs/components/TouchableHighlight.js +6 -6
  41. package/dist/commonjs/components/TouchableHighlight.js.map +1 -1
  42. package/dist/commonjs/components/TouchableOpacity.js +6 -6
  43. package/dist/commonjs/components/TouchableOpacity.js.map +1 -1
  44. package/dist/commonjs/components/TouchableWithoutFeedback.js +6 -6
  45. package/dist/commonjs/components/TouchableWithoutFeedback.js.map +1 -1
  46. package/dist/commonjs/components/View.js +6 -6
  47. package/dist/commonjs/components/View.js.map +1 -1
  48. package/dist/commonjs/components/VirtualizedList.js +6 -6
  49. package/dist/commonjs/components/VirtualizedList.js.map +1 -1
  50. package/dist/commonjs/components/copyComponentProperties.js +19 -0
  51. package/dist/commonjs/components/copyComponentProperties.js.map +1 -0
  52. package/dist/commonjs/components/index.cjs +265 -0
  53. package/dist/commonjs/components/index.cjs.map +1 -0
  54. package/dist/commonjs/components/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 +8 -118
  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/native/react/useNativeCss.js +11 -5
  70. package/dist/commonjs/native/react/useNativeCss.js.map +1 -1
  71. package/dist/commonjs/{poison.pill.js → native/react-native-css-metro-override.js} +1 -1
  72. package/dist/commonjs/native/react-native-css-metro-override.js.map +1 -0
  73. package/dist/commonjs/native/styles/calculate-props.js +1 -1
  74. package/dist/commonjs/native/styles/functions/color-mix.js +50 -0
  75. package/dist/commonjs/native/styles/functions/color-mix.js.map +1 -0
  76. package/dist/commonjs/native/styles/functions/index.js +11 -0
  77. package/dist/commonjs/native/styles/functions/index.js.map +1 -1
  78. package/dist/commonjs/native/styles/index.js +247 -19
  79. package/dist/commonjs/native/styles/index.js.map +1 -1
  80. package/dist/commonjs/native/styles/resolve.js +0 -1
  81. package/dist/commonjs/native/styles/resolve.js.map +1 -1
  82. package/dist/commonjs/native/styles/shorthands/_handler.js +10 -0
  83. package/dist/commonjs/native/styles/shorthands/_handler.js.map +1 -1
  84. package/dist/commonjs/native/styles/shorthands/animation.js +6 -2
  85. package/dist/commonjs/native/styles/shorthands/animation.js.map +1 -1
  86. package/dist/commonjs/native/styles/shorthands/box-shadow.js +45 -12
  87. package/dist/commonjs/native/styles/shorthands/box-shadow.js.map +1 -1
  88. package/dist/commonjs/web/api.js +6 -3
  89. package/dist/commonjs/web/api.js.map +1 -1
  90. package/dist/module/compiler/atRules.js +14 -10
  91. package/dist/module/compiler/atRules.js.map +1 -1
  92. package/dist/module/compiler/compiler.js +50 -2
  93. package/dist/module/compiler/compiler.js.map +1 -1
  94. package/dist/module/compiler/declarations.js +60 -10
  95. package/dist/module/compiler/declarations.js.map +1 -1
  96. package/dist/module/compiler/keyframes.js +1 -1
  97. package/dist/module/compiler/keyframes.js.map +1 -1
  98. package/dist/module/compiler/lightningcss-loader.js +12 -2
  99. package/dist/module/compiler/lightningcss-loader.js.map +1 -1
  100. package/dist/module/compiler/stylesheet.js +7 -5
  101. package/dist/module/compiler/stylesheet.js.map +1 -1
  102. package/dist/module/compiler/supports.js +2 -2
  103. package/dist/module/compiler/supports.js.map +1 -1
  104. package/dist/module/components/ActivityIndicator.js +4 -3
  105. package/dist/module/components/ActivityIndicator.js.map +1 -1
  106. package/dist/module/components/Button.js +4 -3
  107. package/dist/module/components/Button.js.map +1 -1
  108. package/dist/module/components/FlatList.js +4 -3
  109. package/dist/module/components/FlatList.js.map +1 -1
  110. package/dist/module/components/Image.js +4 -3
  111. package/dist/module/components/Image.js.map +1 -1
  112. package/dist/module/components/ImageBackground.js +4 -3
  113. package/dist/module/components/ImageBackground.js.map +1 -1
  114. package/dist/module/components/KeyboardAvoidingView.js +4 -3
  115. package/dist/module/components/KeyboardAvoidingView.js.map +1 -1
  116. package/dist/module/components/Pressable.js +4 -3
  117. package/dist/module/components/Pressable.js.map +1 -1
  118. package/dist/module/components/SafeAreaProvider.js +4 -0
  119. package/dist/module/components/SafeAreaProvider.js.map +1 -0
  120. package/dist/module/components/ScrollView.js +4 -3
  121. package/dist/module/components/ScrollView.js.map +1 -1
  122. package/dist/module/components/Switch.js +4 -3
  123. package/dist/module/components/Switch.js.map +1 -1
  124. package/dist/module/components/Text.js +4 -3
  125. package/dist/module/components/Text.js.map +1 -1
  126. package/dist/module/components/TextInput.js +4 -3
  127. package/dist/module/components/TextInput.js.map +1 -1
  128. package/dist/module/components/TouchableHighlight.js +4 -3
  129. package/dist/module/components/TouchableHighlight.js.map +1 -1
  130. package/dist/module/components/TouchableOpacity.js +4 -3
  131. package/dist/module/components/TouchableOpacity.js.map +1 -1
  132. package/dist/module/components/TouchableWithoutFeedback.js +4 -3
  133. package/dist/module/components/TouchableWithoutFeedback.js.map +1 -1
  134. package/dist/module/components/View.js +4 -3
  135. package/dist/module/components/View.js.map +1 -1
  136. package/dist/module/components/VirtualizedList.js +4 -3
  137. package/dist/module/components/VirtualizedList.js.map +1 -1
  138. package/dist/module/components/copyComponentProperties.js +15 -0
  139. package/dist/module/components/copyComponentProperties.js.map +1 -0
  140. package/dist/module/components/index.cjs +265 -0
  141. package/dist/module/components/index.cjs.map +1 -0
  142. package/dist/module/components/index.js.map +1 -1
  143. package/dist/module/jest/index.js +1 -1
  144. package/dist/module/jest/index.js.map +1 -1
  145. package/dist/module/metro/index.js +8 -117
  146. package/dist/module/metro/index.js.map +1 -1
  147. package/dist/module/metro/metro-transformer.js +8 -1
  148. package/dist/module/metro/metro-transformer.js.map +1 -1
  149. package/dist/module/metro/override.js +4 -0
  150. package/dist/module/{native/metro.js.map → metro/override.js.map} +1 -1
  151. package/dist/module/metro/resolver.js +15 -22
  152. package/dist/module/metro/resolver.js.map +1 -1
  153. package/dist/module/native/api.js +4 -1
  154. package/dist/module/native/api.js.map +1 -1
  155. package/dist/module/native/index.js +1 -1
  156. package/dist/module/native/index.js.map +1 -1
  157. package/dist/module/native/react/useNativeCss.js +11 -5
  158. package/dist/module/native/react/useNativeCss.js.map +1 -1
  159. package/dist/module/{poison.pill.js → native/react-native-css-metro-override.js} +1 -1
  160. package/dist/module/native/react-native-css-metro-override.js.map +1 -0
  161. package/dist/module/native/styles/calculate-props.js +1 -1
  162. package/dist/module/native/styles/functions/color-mix.js +45 -0
  163. package/dist/module/native/styles/functions/color-mix.js.map +1 -0
  164. package/dist/module/native/styles/functions/index.js +1 -0
  165. package/dist/module/native/styles/functions/index.js.map +1 -1
  166. package/dist/module/native/styles/index.js +248 -19
  167. package/dist/module/native/styles/index.js.map +1 -1
  168. package/dist/module/native/styles/resolve.js +0 -1
  169. package/dist/module/native/styles/resolve.js.map +1 -1
  170. package/dist/module/native/styles/shorthands/_handler.js +11 -1
  171. package/dist/module/native/styles/shorthands/_handler.js.map +1 -1
  172. package/dist/module/native/styles/shorthands/animation.js +4 -1
  173. package/dist/module/native/styles/shorthands/animation.js.map +1 -1
  174. package/dist/module/native/styles/shorthands/box-shadow.js +46 -12
  175. package/dist/module/native/styles/shorthands/box-shadow.js.map +1 -1
  176. package/dist/module/web/api.js +6 -3
  177. package/dist/module/web/api.js.map +1 -1
  178. package/dist/typescript/commonjs/.config/eslint.config.d.mts +3 -0
  179. package/dist/typescript/commonjs/.config/eslint.config.d.mts.map +1 -0
  180. package/dist/typescript/commonjs/eslint.config.d.mts +2 -0
  181. package/dist/typescript/commonjs/eslint.config.d.mts.map +1 -0
  182. package/dist/typescript/commonjs/example/index.d.ts +2 -0
  183. package/dist/typescript/commonjs/example/index.d.ts.map +1 -0
  184. package/dist/typescript/commonjs/example/metro.config.d.ts +3 -0
  185. package/dist/typescript/commonjs/example/metro.config.d.ts.map +1 -0
  186. package/dist/typescript/commonjs/example/postcss.config.d.mts +7 -0
  187. package/dist/typescript/commonjs/example/postcss.config.d.mts.map +1 -0
  188. package/dist/typescript/commonjs/example/src/App.d.ts +1 -0
  189. package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -1
  190. package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -1
  191. package/dist/typescript/commonjs/src/compiler/declarations.d.ts +2 -1
  192. package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -1
  193. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts +1 -1
  194. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts.map +1 -1
  195. package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts.map +1 -1
  196. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +1 -0
  197. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -1
  198. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +2 -4
  199. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -1
  200. package/dist/typescript/commonjs/src/components/Button.d.ts +2 -4
  201. package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -1
  202. package/dist/typescript/commonjs/src/components/FlatList.d.ts +3 -3
  203. package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -1
  204. package/dist/typescript/commonjs/src/components/Image.d.ts +2 -4
  205. package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -1
  206. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts +2 -4
  207. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts.map +1 -1
  208. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts +2 -4
  209. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts.map +1 -1
  210. package/dist/typescript/commonjs/src/components/Pressable.d.ts +2 -4
  211. package/dist/typescript/commonjs/src/components/Pressable.d.ts.map +1 -1
  212. package/dist/typescript/commonjs/src/components/SafeAreaProvider.d.ts +2 -0
  213. package/dist/typescript/commonjs/src/components/SafeAreaProvider.d.ts.map +1 -0
  214. package/dist/typescript/commonjs/src/components/ScrollView.d.ts +2 -4
  215. package/dist/typescript/commonjs/src/components/ScrollView.d.ts.map +1 -1
  216. package/dist/typescript/commonjs/src/components/Switch.d.ts +2 -6
  217. package/dist/typescript/commonjs/src/components/Switch.d.ts.map +1 -1
  218. package/dist/typescript/commonjs/src/components/Text.d.ts +2 -6
  219. package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -1
  220. package/dist/typescript/commonjs/src/components/TextInput.d.ts +2 -4
  221. package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -1
  222. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts +2 -4
  223. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts.map +1 -1
  224. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts +2 -4
  225. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts.map +1 -1
  226. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts +2 -4
  227. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts.map +1 -1
  228. package/dist/typescript/commonjs/src/components/View.d.ts +2 -6
  229. package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -1
  230. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts +3 -3
  231. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts.map +1 -1
  232. package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts +5 -0
  233. package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts.map +1 -0
  234. package/dist/typescript/commonjs/src/components/index.d.cts +2 -0
  235. package/dist/typescript/commonjs/src/components/index.d.cts.map +1 -0
  236. package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -1
  237. package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -1
  238. package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -1
  239. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -1
  240. package/dist/typescript/commonjs/src/metro/override.d.ts +2 -0
  241. package/dist/typescript/commonjs/src/metro/override.d.ts.map +1 -0
  242. package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -1
  243. package/dist/typescript/commonjs/src/native/api.d.ts +2 -2
  244. package/dist/typescript/commonjs/src/native/api.d.ts.map +1 -1
  245. package/dist/typescript/commonjs/src/native/index.d.ts +1 -1
  246. package/dist/typescript/commonjs/src/native/index.d.ts.map +1 -1
  247. package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts +1 -1
  248. package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts.map +1 -1
  249. package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts +2 -0
  250. package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts.map +1 -0
  251. package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts +3 -0
  252. package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts.map +1 -0
  253. package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts +1 -0
  254. package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts.map +1 -1
  255. package/dist/typescript/commonjs/src/native/styles/index.d.ts.map +1 -1
  256. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts.map +1 -1
  257. package/dist/typescript/commonjs/src/native/styles/shorthands/_handler.d.ts.map +1 -1
  258. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts +1 -0
  259. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts.map +1 -1
  260. package/dist/typescript/commonjs/src/native/styles/shorthands/box-shadow.d.ts.map +1 -1
  261. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts +1 -1
  262. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts.map +1 -1
  263. package/dist/typescript/commonjs/src/web/api.d.ts +2 -2
  264. package/dist/typescript/commonjs/src/web/api.d.ts.map +1 -1
  265. package/dist/typescript/module/.config/eslint.config.d.mts +3 -0
  266. package/dist/typescript/module/.config/eslint.config.d.mts.map +1 -0
  267. package/dist/typescript/module/eslint.config.d.mts +2 -0
  268. package/dist/typescript/module/eslint.config.d.mts.map +1 -0
  269. package/dist/typescript/module/example/index.d.ts +2 -0
  270. package/dist/typescript/module/example/index.d.ts.map +1 -0
  271. package/dist/typescript/module/example/metro.config.d.ts +3 -0
  272. package/dist/typescript/module/example/metro.config.d.ts.map +1 -0
  273. package/dist/typescript/module/example/postcss.config.d.mts +7 -0
  274. package/dist/typescript/module/example/postcss.config.d.mts.map +1 -0
  275. package/dist/typescript/module/example/src/App.d.ts +1 -0
  276. package/dist/typescript/module/example/src/App.d.ts.map +1 -1
  277. package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -1
  278. package/dist/typescript/module/src/compiler/declarations.d.ts +2 -1
  279. package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -1
  280. package/dist/typescript/module/src/compiler/keyframes.d.ts +1 -1
  281. package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -1
  282. package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts.map +1 -1
  283. package/dist/typescript/module/src/compiler/stylesheet.d.ts +1 -0
  284. package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -1
  285. package/dist/typescript/module/src/components/ActivityIndicator.d.ts +2 -4
  286. package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -1
  287. package/dist/typescript/module/src/components/Button.d.ts +2 -4
  288. package/dist/typescript/module/src/components/Button.d.ts.map +1 -1
  289. package/dist/typescript/module/src/components/FlatList.d.ts +3 -3
  290. package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -1
  291. package/dist/typescript/module/src/components/Image.d.ts +2 -4
  292. package/dist/typescript/module/src/components/Image.d.ts.map +1 -1
  293. package/dist/typescript/module/src/components/ImageBackground.d.ts +2 -4
  294. package/dist/typescript/module/src/components/ImageBackground.d.ts.map +1 -1
  295. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts +2 -4
  296. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts.map +1 -1
  297. package/dist/typescript/module/src/components/Pressable.d.ts +2 -4
  298. package/dist/typescript/module/src/components/Pressable.d.ts.map +1 -1
  299. package/dist/typescript/module/src/components/SafeAreaProvider.d.ts +2 -0
  300. package/dist/typescript/module/src/components/SafeAreaProvider.d.ts.map +1 -0
  301. package/dist/typescript/module/src/components/ScrollView.d.ts +2 -4
  302. package/dist/typescript/module/src/components/ScrollView.d.ts.map +1 -1
  303. package/dist/typescript/module/src/components/Switch.d.ts +2 -6
  304. package/dist/typescript/module/src/components/Switch.d.ts.map +1 -1
  305. package/dist/typescript/module/src/components/Text.d.ts +2 -6
  306. package/dist/typescript/module/src/components/Text.d.ts.map +1 -1
  307. package/dist/typescript/module/src/components/TextInput.d.ts +2 -4
  308. package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -1
  309. package/dist/typescript/module/src/components/TouchableHighlight.d.ts +2 -4
  310. package/dist/typescript/module/src/components/TouchableHighlight.d.ts.map +1 -1
  311. package/dist/typescript/module/src/components/TouchableOpacity.d.ts +2 -4
  312. package/dist/typescript/module/src/components/TouchableOpacity.d.ts.map +1 -1
  313. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts +2 -4
  314. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts.map +1 -1
  315. package/dist/typescript/module/src/components/View.d.ts +2 -6
  316. package/dist/typescript/module/src/components/View.d.ts.map +1 -1
  317. package/dist/typescript/module/src/components/VirtualizedList.d.ts +3 -3
  318. package/dist/typescript/module/src/components/VirtualizedList.d.ts.map +1 -1
  319. package/dist/typescript/module/src/components/copyComponentProperties.d.ts +5 -0
  320. package/dist/typescript/module/src/components/copyComponentProperties.d.ts.map +1 -0
  321. package/dist/typescript/module/src/components/index.d.cts +2 -0
  322. package/dist/typescript/module/src/components/index.d.cts.map +1 -0
  323. package/dist/typescript/module/src/components/index.d.ts.map +1 -1
  324. package/dist/typescript/module/src/jest/index.d.ts.map +1 -1
  325. package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
  326. package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -1
  327. package/dist/typescript/module/src/metro/override.d.ts +2 -0
  328. package/dist/typescript/module/src/metro/override.d.ts.map +1 -0
  329. package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -1
  330. package/dist/typescript/module/src/native/api.d.ts +2 -2
  331. package/dist/typescript/module/src/native/api.d.ts.map +1 -1
  332. package/dist/typescript/module/src/native/index.d.ts +1 -1
  333. package/dist/typescript/module/src/native/index.d.ts.map +1 -1
  334. package/dist/typescript/module/src/native/react/useNativeCss.d.ts +1 -1
  335. package/dist/typescript/module/src/native/react/useNativeCss.d.ts.map +1 -1
  336. package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts +2 -0
  337. package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts.map +1 -0
  338. package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts +3 -0
  339. package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts.map +1 -0
  340. package/dist/typescript/module/src/native/styles/functions/index.d.ts +1 -0
  341. package/dist/typescript/module/src/native/styles/functions/index.d.ts.map +1 -1
  342. package/dist/typescript/module/src/native/styles/index.d.ts.map +1 -1
  343. package/dist/typescript/module/src/native/styles/resolve.d.ts.map +1 -1
  344. package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts.map +1 -1
  345. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts +1 -0
  346. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts.map +1 -1
  347. package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts.map +1 -1
  348. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts +1 -1
  349. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts.map +1 -1
  350. package/dist/typescript/module/src/web/api.d.ts +2 -2
  351. package/dist/typescript/module/src/web/api.d.ts.map +1 -1
  352. package/package.json +27 -14
  353. package/src/compiler/atRules.ts +16 -10
  354. package/src/compiler/compiler.ts +76 -2
  355. package/src/compiler/declarations.ts +106 -10
  356. package/src/compiler/keyframes.ts +2 -2
  357. package/src/compiler/lightningcss-loader.ts +20 -1
  358. package/src/compiler/stylesheet.ts +9 -5
  359. package/src/compiler/supports.ts +2 -2
  360. package/src/components/ActivityIndicator.tsx +9 -6
  361. package/src/components/Button.tsx +9 -4
  362. package/src/components/FlatList.tsx +14 -5
  363. package/src/components/Image.tsx +9 -4
  364. package/src/components/ImageBackground.tsx +9 -6
  365. package/src/components/KeyboardAvoidingView.tsx +9 -6
  366. package/src/components/Pressable.tsx +9 -4
  367. package/src/components/SafeAreaProvider.tsx +1 -0
  368. package/src/components/ScrollView.tsx +9 -6
  369. package/src/components/Switch.tsx +9 -4
  370. package/src/components/Text.tsx +9 -4
  371. package/src/components/TextInput.tsx +9 -4
  372. package/src/components/TouchableHighlight.tsx +9 -6
  373. package/src/components/TouchableOpacity.tsx +9 -6
  374. package/src/components/TouchableWithoutFeedback.tsx +9 -6
  375. package/src/components/View.tsx +9 -4
  376. package/src/components/VirtualizedList.tsx +18 -6
  377. package/src/components/copyComponentProperties.ts +21 -0
  378. package/src/components/index.cts +263 -0
  379. package/src/components/{index.tsx → index.ts} +0 -1
  380. package/src/jest/index.ts +2 -1
  381. package/src/metro/index.ts +8 -166
  382. package/src/metro/metro-transformer.ts +15 -1
  383. package/src/metro/override.ts +1 -0
  384. package/src/metro/resolver.ts +29 -28
  385. package/src/native/api.tsx +6 -2
  386. package/src/native/index.ts +1 -2
  387. package/src/native/react/useNativeCss.ts +13 -6
  388. package/src/native/styles/calculate-props.ts +1 -1
  389. package/src/native/styles/functions/color-mix.ts +68 -0
  390. package/src/native/styles/functions/index.ts +1 -0
  391. package/src/native/styles/index.ts +302 -26
  392. package/src/native/styles/resolve.ts +0 -1
  393. package/src/native/styles/shorthands/_handler.ts +14 -1
  394. package/src/native/styles/shorthands/animation.ts +10 -2
  395. package/src/native/styles/shorthands/box-shadow.ts +50 -15
  396. package/src/utilities/dot-notation.types.ts +10 -3
  397. package/src/web/api.tsx +10 -5
  398. package/types.d.ts +3 -0
  399. package/dist/commonjs/poison.pill.js.map +0 -1
  400. package/dist/commonjs/runtime/native/injection.js +0 -2
  401. package/dist/commonjs/runtime/native/injection.js.map +0 -1
  402. package/dist/module/native/metro.js +0 -5
  403. package/dist/module/poison.pill.js.map +0 -1
  404. package/dist/module/runtime/native/injection.js +0 -2
  405. package/dist/module/runtime/native/injection.js.map +0 -1
  406. package/dist/typescript/commonjs/src/native/metro.d.ts +0 -2
  407. package/dist/typescript/commonjs/src/native/metro.d.ts.map +0 -1
  408. package/dist/typescript/commonjs/src/poison.pill.d.ts +0 -2
  409. package/dist/typescript/commonjs/src/poison.pill.d.ts.map +0 -1
  410. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts +0 -1
  411. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts.map +0 -1
  412. package/dist/typescript/module/src/native/metro.d.ts +0 -2
  413. package/dist/typescript/module/src/native/metro.d.ts.map +0 -1
  414. package/dist/typescript/module/src/poison.pill.d.ts +0 -2
  415. package/dist/typescript/module/src/poison.pill.d.ts.map +0 -1
  416. package/dist/typescript/module/src/runtime/native/injection.d.ts +0 -1
  417. package/dist/typescript/module/src/runtime/native/injection.d.ts.map +0 -1
  418. package/src/native/metro.ts +0 -2
  419. package/src/runtime/native/injection.ts +0 -0
  420. /package/src/{poison.pill.ts → native/react-native-css-metro-override.ts} +0 -0
@@ -4,21 +4,30 @@ import { isStyleDescriptorArray } from "react-native-css/utilities";
4
4
  import type { StyleFunctionResolver } from "../resolve";
5
5
  import { shorthandHandler } from "./_handler";
6
6
 
7
- const color = ["color", "string"] as const;
7
+ // "color" type accepts both strings ("#fff") and objects (PlatformColor from currentcolor).
8
+ // Using "string" here would reject platform color objects and silently drop the shadow.
9
+ const color = ["color", "color"] as const;
8
10
  const offsetX = ["offsetX", "number"] as const;
9
11
  const offsetY = ["offsetY", "number"] as const;
10
12
  const blurRadius = ["blurRadius", "number"] as const;
11
13
  const spreadDistance = ["spreadDistance", "number"] as const;
12
- // const inset = ["inset", "string"] as const;
14
+ // Match the literal string "inset" - the array type checks if value is in array
15
+ const inset = ["inset", ["inset"]] as const;
13
16
 
14
17
  const handler = shorthandHandler(
15
18
  [
19
+ // Standard patterns (without inset)
16
20
  [offsetX, offsetY, blurRadius, spreadDistance],
17
21
  [offsetX, offsetY, blurRadius, spreadDistance, color],
18
22
  [color, offsetX, offsetY],
19
23
  [color, offsetX, offsetY, blurRadius, spreadDistance],
20
24
  [offsetX, offsetY, color],
21
25
  [offsetX, offsetY, blurRadius, color],
26
+ // Inset patterns - "inset" keyword at the beginning
27
+ [inset, offsetX, offsetY, blurRadius, spreadDistance],
28
+ [inset, offsetX, offsetY, blurRadius, spreadDistance, color],
29
+ [inset, offsetX, offsetY, blurRadius, color],
30
+ [inset, color, offsetX, offsetY, blurRadius, spreadDistance],
22
31
  ],
23
32
  [],
24
33
  "object",
@@ -34,20 +43,32 @@ export const boxShadow: StyleFunctionResolver = (
34
43
 
35
44
  if (!isStyleDescriptorArray(args)) {
36
45
  return args;
37
- } else {
38
- return args
39
- .flatMap(flattenShadowDescriptor)
40
- .map((shadows) => {
41
- if (shadows === undefined) {
42
- return;
43
- } else {
44
- return omitTransparentShadows(
45
- handler(resolveValue, shadows, get, options),
46
- );
47
- }
48
- })
49
- .filter((v) => v !== undefined);
50
46
  }
47
+
48
+ // A flat array of primitives (e.g. [0, 4, 6, -1, "#000"]) is a single shadow
49
+ // resolved from a runtime variable. Pass it directly to the pattern handler.
50
+ // A nested array (e.g. [[0, 4, 6, -1, "#000"], [...]]) is multiple shadows.
51
+ if (args.length > 0 && !Array.isArray(args[0])) {
52
+ const result = handler(resolveValue, args, get, options);
53
+ if (result === undefined) {
54
+ return [];
55
+ }
56
+ const filtered = omitTransparentShadows(result);
57
+ return filtered !== undefined ? [normalizeInsetValue(filtered)] : [];
58
+ }
59
+
60
+ return args
61
+ .flatMap(flattenShadowDescriptor)
62
+ .map((shadows) => {
63
+ if (shadows === undefined) {
64
+ return;
65
+ } else {
66
+ return normalizeInsetValue(
67
+ omitTransparentShadows(handler(resolveValue, shadows, get, options)),
68
+ );
69
+ }
70
+ })
71
+ .filter((v) => v !== undefined);
51
72
  };
52
73
 
53
74
  function flattenShadowDescriptor(arg: StyleDescriptor): StyleDescriptor[] {
@@ -69,3 +90,17 @@ function omitTransparentShadows(style: unknown) {
69
90
 
70
91
  return style;
71
92
  }
93
+
94
+ /**
95
+ * Convert inset: "inset" to inset: true for React Native boxShadow.
96
+ *
97
+ * The shorthand handler matches the literal "inset" string and assigns it as the value.
98
+ * React Native's boxShadow expects inset to be a boolean.
99
+ */
100
+ function normalizeInsetValue(style: unknown) {
101
+ if (typeof style === "object" && style && "inset" in style) {
102
+ return { ...style, inset: true };
103
+ }
104
+
105
+ return style;
106
+ }
@@ -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,16 +18,20 @@ 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>) => {
29
- return useCssElement(baseComponent, mapping, props);
33
+ return (props: StyledProps<ComponentPropsWithRef<C>, M>) => {
34
+ return useCssElement(baseComponent, props, mapping);
30
35
  };
31
36
  };
32
37
 
@@ -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}`,
package/types.d.ts CHANGED
@@ -16,6 +16,9 @@ declare module "@react-native/virtualized-lists" {
16
16
  }
17
17
 
18
18
  declare module "react-native" {
19
+ interface ButtonProps {
20
+ className?: string;
21
+ }
19
22
  interface ScrollViewProps
20
23
  extends ViewProps,
21
24
  ScrollViewPropsIOS,
@@ -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,2 +0,0 @@
1
- // This file will be overwritten by Metro
2
- export {};
File without changes