react-native-css 3.0.0 → 3.0.2

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 (247) hide show
  1. package/dist/commonjs/compiler/declarations.js +51 -0
  2. package/dist/commonjs/compiler/declarations.js.map +1 -1
  3. package/dist/commonjs/compiler/lightningcss-loader.js +12 -2
  4. package/dist/commonjs/compiler/lightningcss-loader.js.map +1 -1
  5. package/dist/commonjs/compiler/supports.js +3 -1
  6. package/dist/commonjs/compiler/supports.js.map +1 -1
  7. package/dist/commonjs/components/ActivityIndicator.js +4 -4
  8. package/dist/commonjs/components/ActivityIndicator.js.map +1 -1
  9. package/dist/commonjs/components/Button.js +4 -4
  10. package/dist/commonjs/components/Button.js.map +1 -1
  11. package/dist/commonjs/components/FlatList.js +4 -4
  12. package/dist/commonjs/components/FlatList.js.map +1 -1
  13. package/dist/commonjs/components/Image.js +4 -4
  14. package/dist/commonjs/components/Image.js.map +1 -1
  15. package/dist/commonjs/components/ImageBackground.js +4 -4
  16. package/dist/commonjs/components/ImageBackground.js.map +1 -1
  17. package/dist/commonjs/components/KeyboardAvoidingView.js +4 -4
  18. package/dist/commonjs/components/KeyboardAvoidingView.js.map +1 -1
  19. package/dist/commonjs/components/Pressable.js +4 -4
  20. package/dist/commonjs/components/Pressable.js.map +1 -1
  21. package/dist/commonjs/components/ScrollView.js +4 -4
  22. package/dist/commonjs/components/ScrollView.js.map +1 -1
  23. package/dist/commonjs/components/Switch.js +4 -4
  24. package/dist/commonjs/components/Switch.js.map +1 -1
  25. package/dist/commonjs/components/Text.js +4 -4
  26. package/dist/commonjs/components/Text.js.map +1 -1
  27. package/dist/commonjs/components/TextInput.js +4 -4
  28. package/dist/commonjs/components/TextInput.js.map +1 -1
  29. package/dist/commonjs/components/TouchableHighlight.js +4 -4
  30. package/dist/commonjs/components/TouchableHighlight.js.map +1 -1
  31. package/dist/commonjs/components/TouchableOpacity.js +4 -4
  32. package/dist/commonjs/components/TouchableOpacity.js.map +1 -1
  33. package/dist/commonjs/components/TouchableWithoutFeedback.js +4 -4
  34. package/dist/commonjs/components/TouchableWithoutFeedback.js.map +1 -1
  35. package/dist/commonjs/components/View.js +4 -4
  36. package/dist/commonjs/components/View.js.map +1 -1
  37. package/dist/commonjs/components/VirtualizedList.js +4 -4
  38. package/dist/commonjs/components/VirtualizedList.js.map +1 -1
  39. package/dist/commonjs/components/copyComponentProperties.js +19 -0
  40. package/dist/commonjs/components/copyComponentProperties.js.map +1 -0
  41. package/dist/commonjs/components/index.cjs +3 -3
  42. package/dist/commonjs/components/index.cjs.map +1 -1
  43. package/dist/commonjs/metro/resolver.js +5 -3
  44. package/dist/commonjs/metro/resolver.js.map +1 -1
  45. package/dist/commonjs/native/api.js +5 -1
  46. package/dist/commonjs/native/api.js.map +1 -1
  47. package/dist/commonjs/native/react/useNativeCss.js +11 -5
  48. package/dist/commonjs/native/react/useNativeCss.js.map +1 -1
  49. package/dist/commonjs/native/styles/functions/color-mix.js +50 -0
  50. package/dist/commonjs/native/styles/functions/color-mix.js.map +1 -0
  51. package/dist/commonjs/native/styles/functions/index.js +11 -0
  52. package/dist/commonjs/native/styles/functions/index.js.map +1 -1
  53. package/dist/commonjs/native/styles/index.js +249 -19
  54. package/dist/commonjs/native/styles/index.js.map +1 -1
  55. package/dist/commonjs/web/api.js +5 -2
  56. package/dist/commonjs/web/api.js.map +1 -1
  57. package/dist/module/compiler/declarations.js +50 -0
  58. package/dist/module/compiler/declarations.js.map +1 -1
  59. package/dist/module/compiler/lightningcss-loader.js +12 -2
  60. package/dist/module/compiler/lightningcss-loader.js.map +1 -1
  61. package/dist/module/compiler/supports.js +3 -1
  62. package/dist/module/compiler/supports.js.map +1 -1
  63. package/dist/module/components/ActivityIndicator.js +3 -2
  64. package/dist/module/components/ActivityIndicator.js.map +1 -1
  65. package/dist/module/components/Button.js +3 -2
  66. package/dist/module/components/Button.js.map +1 -1
  67. package/dist/module/components/FlatList.js +3 -2
  68. package/dist/module/components/FlatList.js.map +1 -1
  69. package/dist/module/components/Image.js +3 -2
  70. package/dist/module/components/Image.js.map +1 -1
  71. package/dist/module/components/ImageBackground.js +3 -2
  72. package/dist/module/components/ImageBackground.js.map +1 -1
  73. package/dist/module/components/KeyboardAvoidingView.js +3 -2
  74. package/dist/module/components/KeyboardAvoidingView.js.map +1 -1
  75. package/dist/module/components/Pressable.js +3 -2
  76. package/dist/module/components/Pressable.js.map +1 -1
  77. package/dist/module/components/ScrollView.js +3 -2
  78. package/dist/module/components/ScrollView.js.map +1 -1
  79. package/dist/module/components/Switch.js +3 -2
  80. package/dist/module/components/Switch.js.map +1 -1
  81. package/dist/module/components/Text.js +3 -2
  82. package/dist/module/components/Text.js.map +1 -1
  83. package/dist/module/components/TextInput.js +3 -2
  84. package/dist/module/components/TextInput.js.map +1 -1
  85. package/dist/module/components/TouchableHighlight.js +3 -2
  86. package/dist/module/components/TouchableHighlight.js.map +1 -1
  87. package/dist/module/components/TouchableOpacity.js +3 -2
  88. package/dist/module/components/TouchableOpacity.js.map +1 -1
  89. package/dist/module/components/TouchableWithoutFeedback.js +3 -2
  90. package/dist/module/components/TouchableWithoutFeedback.js.map +1 -1
  91. package/dist/module/components/View.js +3 -2
  92. package/dist/module/components/View.js.map +1 -1
  93. package/dist/module/components/VirtualizedList.js +3 -2
  94. package/dist/module/components/VirtualizedList.js.map +1 -1
  95. package/dist/module/components/copyComponentProperties.js +15 -0
  96. package/dist/module/components/copyComponentProperties.js.map +1 -0
  97. package/dist/module/components/index.cjs +3 -3
  98. package/dist/module/components/index.cjs.map +1 -1
  99. package/dist/module/metro/resolver.js +5 -3
  100. package/dist/module/metro/resolver.js.map +1 -1
  101. package/dist/module/native/api.js +4 -1
  102. package/dist/module/native/api.js.map +1 -1
  103. package/dist/module/native/react/useNativeCss.js +11 -5
  104. package/dist/module/native/react/useNativeCss.js.map +1 -1
  105. package/dist/module/native/styles/functions/color-mix.js +45 -0
  106. package/dist/module/native/styles/functions/color-mix.js.map +1 -0
  107. package/dist/module/native/styles/functions/index.js +1 -0
  108. package/dist/module/native/styles/functions/index.js.map +1 -1
  109. package/dist/module/native/styles/index.js +250 -19
  110. package/dist/module/native/styles/index.js.map +1 -1
  111. package/dist/module/web/api.js +5 -2
  112. package/dist/module/web/api.js.map +1 -1
  113. package/dist/typescript/commonjs/.config/eslint.config.d.mts +1 -1
  114. package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -1
  115. package/dist/typescript/commonjs/src/compiler/declarations.d.ts +1 -0
  116. package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -1
  117. package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts.map +1 -1
  118. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +2 -4
  119. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -1
  120. package/dist/typescript/commonjs/src/components/Button.d.ts +2 -4
  121. package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -1
  122. package/dist/typescript/commonjs/src/components/FlatList.d.ts +2 -2
  123. package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -1
  124. package/dist/typescript/commonjs/src/components/Image.d.ts +2 -4
  125. package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -1
  126. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts +2 -4
  127. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts.map +1 -1
  128. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts +2 -4
  129. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts.map +1 -1
  130. package/dist/typescript/commonjs/src/components/Pressable.d.ts +2 -4
  131. package/dist/typescript/commonjs/src/components/Pressable.d.ts.map +1 -1
  132. package/dist/typescript/commonjs/src/components/ScrollView.d.ts +2 -4
  133. package/dist/typescript/commonjs/src/components/ScrollView.d.ts.map +1 -1
  134. package/dist/typescript/commonjs/src/components/Switch.d.ts +2 -6
  135. package/dist/typescript/commonjs/src/components/Switch.d.ts.map +1 -1
  136. package/dist/typescript/commonjs/src/components/Text.d.ts +2 -6
  137. package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -1
  138. package/dist/typescript/commonjs/src/components/TextInput.d.ts +2 -4
  139. package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -1
  140. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts +2 -4
  141. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts.map +1 -1
  142. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts +2 -4
  143. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts.map +1 -1
  144. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts +2 -4
  145. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts.map +1 -1
  146. package/dist/typescript/commonjs/src/components/View.d.ts +2 -6
  147. package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -1
  148. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts +2 -2
  149. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts.map +1 -1
  150. package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts +5 -0
  151. package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts.map +1 -0
  152. package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -1
  153. package/dist/typescript/commonjs/src/native/api.d.ts +1 -1
  154. package/dist/typescript/commonjs/src/native/api.d.ts.map +1 -1
  155. package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts.map +1 -1
  156. package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts +3 -0
  157. package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts.map +1 -0
  158. package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts +1 -0
  159. package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts.map +1 -1
  160. package/dist/typescript/commonjs/src/native/styles/index.d.ts.map +1 -1
  161. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts +1 -1
  162. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts.map +1 -1
  163. package/dist/typescript/commonjs/src/web/api.d.ts +2 -2
  164. package/dist/typescript/commonjs/src/web/api.d.ts.map +1 -1
  165. package/dist/typescript/module/.config/eslint.config.d.mts +1 -1
  166. package/dist/typescript/module/example/src/App.d.ts.map +1 -1
  167. package/dist/typescript/module/src/compiler/declarations.d.ts +1 -0
  168. package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -1
  169. package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts.map +1 -1
  170. package/dist/typescript/module/src/components/ActivityIndicator.d.ts +2 -4
  171. package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -1
  172. package/dist/typescript/module/src/components/Button.d.ts +2 -4
  173. package/dist/typescript/module/src/components/Button.d.ts.map +1 -1
  174. package/dist/typescript/module/src/components/FlatList.d.ts +2 -2
  175. package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -1
  176. package/dist/typescript/module/src/components/Image.d.ts +2 -4
  177. package/dist/typescript/module/src/components/Image.d.ts.map +1 -1
  178. package/dist/typescript/module/src/components/ImageBackground.d.ts +2 -4
  179. package/dist/typescript/module/src/components/ImageBackground.d.ts.map +1 -1
  180. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts +2 -4
  181. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts.map +1 -1
  182. package/dist/typescript/module/src/components/Pressable.d.ts +2 -4
  183. package/dist/typescript/module/src/components/Pressable.d.ts.map +1 -1
  184. package/dist/typescript/module/src/components/ScrollView.d.ts +2 -4
  185. package/dist/typescript/module/src/components/ScrollView.d.ts.map +1 -1
  186. package/dist/typescript/module/src/components/Switch.d.ts +2 -6
  187. package/dist/typescript/module/src/components/Switch.d.ts.map +1 -1
  188. package/dist/typescript/module/src/components/Text.d.ts +2 -6
  189. package/dist/typescript/module/src/components/Text.d.ts.map +1 -1
  190. package/dist/typescript/module/src/components/TextInput.d.ts +2 -4
  191. package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -1
  192. package/dist/typescript/module/src/components/TouchableHighlight.d.ts +2 -4
  193. package/dist/typescript/module/src/components/TouchableHighlight.d.ts.map +1 -1
  194. package/dist/typescript/module/src/components/TouchableOpacity.d.ts +2 -4
  195. package/dist/typescript/module/src/components/TouchableOpacity.d.ts.map +1 -1
  196. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts +2 -4
  197. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts.map +1 -1
  198. package/dist/typescript/module/src/components/View.d.ts +2 -6
  199. package/dist/typescript/module/src/components/View.d.ts.map +1 -1
  200. package/dist/typescript/module/src/components/VirtualizedList.d.ts +2 -2
  201. package/dist/typescript/module/src/components/VirtualizedList.d.ts.map +1 -1
  202. package/dist/typescript/module/src/components/copyComponentProperties.d.ts +5 -0
  203. package/dist/typescript/module/src/components/copyComponentProperties.d.ts.map +1 -0
  204. package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -1
  205. package/dist/typescript/module/src/native/api.d.ts +1 -1
  206. package/dist/typescript/module/src/native/api.d.ts.map +1 -1
  207. package/dist/typescript/module/src/native/react/useNativeCss.d.ts.map +1 -1
  208. package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts +3 -0
  209. package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts.map +1 -0
  210. package/dist/typescript/module/src/native/styles/functions/index.d.ts +1 -0
  211. package/dist/typescript/module/src/native/styles/functions/index.d.ts.map +1 -1
  212. package/dist/typescript/module/src/native/styles/index.d.ts.map +1 -1
  213. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts +1 -1
  214. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts.map +1 -1
  215. package/dist/typescript/module/src/web/api.d.ts +2 -2
  216. package/dist/typescript/module/src/web/api.d.ts.map +1 -1
  217. package/package.json +4 -3
  218. package/src/compiler/declarations.ts +96 -0
  219. package/src/compiler/lightningcss-loader.ts +20 -1
  220. package/src/compiler/supports.ts +2 -0
  221. package/src/components/ActivityIndicator.tsx +8 -5
  222. package/src/components/Button.tsx +8 -3
  223. package/src/components/FlatList.tsx +13 -4
  224. package/src/components/Image.tsx +8 -3
  225. package/src/components/ImageBackground.tsx +8 -5
  226. package/src/components/KeyboardAvoidingView.tsx +8 -5
  227. package/src/components/Pressable.tsx +8 -3
  228. package/src/components/ScrollView.tsx +8 -5
  229. package/src/components/Switch.tsx +8 -3
  230. package/src/components/Text.tsx +8 -3
  231. package/src/components/TextInput.tsx +8 -3
  232. package/src/components/TouchableHighlight.tsx +8 -5
  233. package/src/components/TouchableOpacity.tsx +8 -5
  234. package/src/components/TouchableWithoutFeedback.tsx +8 -5
  235. package/src/components/View.tsx +8 -3
  236. package/src/components/VirtualizedList.tsx +17 -5
  237. package/src/components/copyComponentProperties.ts +21 -0
  238. package/src/components/index.cts +3 -3
  239. package/src/metro/resolver.ts +10 -3
  240. package/src/native/api.tsx +6 -2
  241. package/src/native/react/useNativeCss.ts +13 -6
  242. package/src/native/styles/functions/color-mix.ts +68 -0
  243. package/src/native/styles/functions/index.ts +1 -0
  244. package/src/native/styles/index.ts +302 -26
  245. package/src/utilities/dot-notation.types.ts +10 -3
  246. package/src/web/api.tsx +9 -4
  247. package/types.d.ts +3 -0
@@ -1,8 +1,4 @@
1
- import { type ViewProps } from "react-native";
2
- import { type StyledProps } from "react-native-css";
3
- declare const mapping: {
4
- className: "style";
5
- };
6
- export declare function View(props: StyledProps<ViewProps, typeof mapping>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
1
+ import { View as RNView } from "react-native";
2
+ export declare const View: typeof RNView;
7
3
  export default View;
8
4
  //# sourceMappingURL=View.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"View.d.ts","sourceRoot":"","sources":["../../../../../src/components/View.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9D,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,kBAAkB,CAAC;AAE1B,QAAA,MAAM,OAAO;;CAEiC,CAAC;AAE/C,wBAAgB,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,SAAS,EAAE,OAAO,OAAO,CAAC,0FAEjE;AAED,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"View.d.ts","sourceRoot":"","sources":["../../../../../src/components/View.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,MAAM,EAAkB,MAAM,cAAc,CAAC;AAc9D,eAAO,MAAM,IAAI,eAKhB,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1,6 +1,6 @@
1
+ import type { ReactNode } from "react";
1
2
  import { VirtualizedList as RNVirtualizedList, type VirtualizedListProps } from "react-native";
2
3
  import { type StyledConfiguration, type StyledProps } from "react-native-css";
3
- declare const mapping: StyledConfiguration<typeof RNVirtualizedList>;
4
- export declare function VirtualizedList<ItemT>(props: StyledProps<VirtualizedListProps<ItemT>, typeof mapping>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
4
+ export declare const VirtualizedList: typeof RNVirtualizedList & (<ItemT>(props: StyledProps<VirtualizedListProps<ItemT>, StyledConfiguration<typeof RNVirtualizedList>>) => ReactNode);
5
5
  export default VirtualizedList;
6
6
  //# sourceMappingURL=VirtualizedList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"VirtualizedList.d.ts","sourceRoot":"","sources":["../../../../../src/components/VirtualizedList.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,IAAI,iBAAiB,EACpC,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AAEtB,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,WAAW,EACjB,MAAM,kBAAkB,CAAC;AAE1B,QAAA,MAAM,OAAO,EAAE,mBAAmB,CAAC,OAAO,iBAAiB,CAK1D,CAAC;AAEF,wBAAgB,eAAe,CAAC,KAAK,EACnC,KAAK,EAAE,WAAW,CAAC,oBAAoB,CAAC,KAAK,CAAC,EAAE,OAAO,OAAO,CAAC,0FAGhE;AAED,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"VirtualizedList.d.ts","sourceRoot":"","sources":["../../../../../src/components/VirtualizedList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EACL,eAAe,IAAI,iBAAiB,EACpC,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AAEtB,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,WAAW,EACjB,MAAM,kBAAkB,CAAC;AAW1B,eAAO,MAAM,eAAe,EAOZ,OAAO,iBAAiB,GACtC,CAAC,CAAC,KAAK,EACL,KAAK,EAAE,WAAW,CAChB,oBAAoB,CAAC,KAAK,CAAC,EAC3B,mBAAmB,CAAC,OAAO,iBAAiB,CAAC,CAC9C,KACE,SAAS,CAAC,CAAC;AAElB,eAAe,eAAe,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { ComponentType } from "react";
2
+ type AnyComponent = ComponentType<any>;
3
+ export declare function copyComponentProperties<T extends AnyComponent>(BaseComponent: T, Component: AnyComponent): T;
4
+ export {};
5
+ //# sourceMappingURL=copyComponentProperties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copyComponentProperties.d.ts","sourceRoot":"","sources":["../../../../../src/components/copyComponentProperties.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,KAAK,YAAY,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;AAEvC,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,YAAY,EAC5D,aAAa,EAAE,CAAC,EAChB,SAAS,EAAE,YAAY,GAYQ,CAAC,CACjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../../../../src/metro/resolver.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,uBAAuB,EACvB,cAAc,EACd,UAAU,EACX,MAAM,gBAAgB,CAAC;AAaxB,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,uBAAuB,EAChC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GAAG,IAAI,GACtB,UAAU,CAmCZ;AAED,wBAAgB,WAAW,CACzB,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,uBAAuB,EAChC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GAAG,IAAI,GACtB,UAAU,CAwBZ"}
1
+ {"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../../../../src/metro/resolver.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,uBAAuB,EACvB,cAAc,EACd,UAAU,EACX,MAAM,gBAAgB,CAAC;AAaxB,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,uBAAuB,EAChC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GAAG,IAAI,GACtB,UAAU,CAmCZ;AAED,wBAAgB,WAAW,CACzB,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,uBAAuB,EAChC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GAAG,IAAI,GACtB,UAAU,CA+BZ"}
@@ -10,7 +10,7 @@ export { useNativeCss };
10
10
  * @param baseComponent
11
11
  * @param mapping
12
12
  */
13
- export declare const styled: <const C extends ReactComponent<any>, const M extends StyledConfiguration<C>>(baseComponent: C, mapping: M, options?: StyledOptions) => any;
13
+ export declare const styled: <const C extends ReactComponent<any>, const M extends StyledConfiguration<C>>(baseComponent: C, mapping?: M, options?: StyledOptions) => any;
14
14
  export declare const colorScheme: ColorScheme;
15
15
  export declare const useUnstableNativeVariable: typeof useNativeVariable;
16
16
  export declare const useCssElement: <const C extends ReactComponent<any>, const M extends StyledConfiguration<C>>(component: C, incomingProps: Props, mapping: M) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").FunctionComponentElement<import("react").FragmentProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../src/native/api.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAGjE,OAAO,KAAK,EACV,WAAW,EACX,KAAK,EACL,cAAc,EACd,mBAAmB,EACnB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAmB,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAErE,OAAO,EAEL,UAAU,EAGX,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,eAAe,EACf,eAAe,EACf,uBAAuB,GACxB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,CAAC;AAExB;;;;;GAKG;AACH,eAAO,MAAM,MAAM,GACjB,KAAK,CAAC,CAAC,SAAS,cAAc,CAAC,GAAG,CAAC,EACnC,KAAK,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,CAAC,EAEtC,eAAe,CAAC,EAChB,SAAS,CAAC,EACV,UAAU,aAAa,QAoBxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAOzB,CAAC;AAEF,eAAO,MAAM,yBAAyB,0BAAoB,CAAC;AAE3D,eAAO,MAAM,aAAa,GACxB,KAAK,CAAC,CAAC,SAAS,cAAc,CAAC,GAAG,CAAC,EACnC,KAAK,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,CAAC,EAEtC,WAAW,CAAC,EACZ,eAAe,KAAK,EACpB,SAAS,CAAC,qKAIX,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,OAkB7C;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC;;;;EAO9D"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../src/native/api.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAGjE,OAAO,KAAK,EACV,WAAW,EACX,KAAK,EACL,cAAc,EACd,mBAAmB,EACnB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAmB,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAErE,OAAO,EAEL,UAAU,EAGX,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,eAAe,EACf,eAAe,EACf,uBAAuB,GACxB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,CAAC;AAMxB;;;;;GAKG;AACH,eAAO,MAAM,MAAM,GACjB,KAAK,CAAC,CAAC,SAAS,cAAc,CAAC,GAAG,CAAC,EACnC,KAAK,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,CAAC,EAEtC,eAAe,CAAC,EAChB,UAAS,CAAuB,EAChC,UAAU,aAAa,QAoBxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAOzB,CAAC;AAEF,eAAO,MAAM,yBAAyB,0BAAoB,CAAC;AAE3D,eAAO,MAAM,aAAa,GACxB,KAAK,CAAC,CAAC,SAAS,cAAc,CAAC,GAAG,CAAC,EACnC,KAAK,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,CAAC,EAEtC,WAAW,CAAC,EACZ,eAAe,KAAK,EACpB,SAAS,CAAC,qKAIX,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,OAkB7C;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC;;;;EAO9D"}
@@ -1 +1 @@
1
- {"version":3,"file":"useNativeCss.d.ts","sourceRoot":"","sources":["../../../../../../src/native/react/useNativeCss.ts"],"names":[],"mappings":"AACA,OAAO,EAML,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;AAKf,OAAO,KAAK,EAAE,mBAAmB,EA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AC;IACjC,UAAU,CAAC,EAAE,qBAAqB,CAAC;IAEnC,kBAAkB,EAAE,oBAAoB,CAAC;IACzC,mBAAmB,EAAE,qBAAqB,CAAC;IAE3C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;CACjC,CAAC;AAEF;;GAEG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,aAAa,CAAC,GAAG,CAAC,EACxB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,GAAG,IAAI,EACrD,OAAO,GAAE,MAAM,EAA+C,oKAqG/D;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,mBAAmB,CAAC,GAAG,CAAC,YAuChE"}
@@ -0,0 +1,3 @@
1
+ import type { StyleFunctionResolver } from "../resolve";
2
+ export declare const colorMix: StyleFunctionResolver;
3
+ //# sourceMappingURL=color-mix.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color-mix.d.ts","sourceRoot":"","sources":["../../../../../../../src/native/styles/functions/color-mix.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAMxD,eAAO,MAAM,QAAQ,EAAE,qBAgDtB,CAAC"}
@@ -5,4 +5,5 @@ export * from "./numeric-functions";
5
5
  export * from "./platform-functions";
6
6
  export * from "./string-functions";
7
7
  export * from "./transform-functions";
8
+ export * from "./color-mix";
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/native/styles/functions/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/native/styles/functions/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/native/styles/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAI3E,OAAO,KAAK,EAAE,cAAc,EAAU,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAQL,KAAK,MAAM,EACX,KAAK,oBAAoB,EAC1B,MAAM,eAAe,CAAC;AAGvB,eAAO,MAAM,YAAY;;;;;;;;;sBAaD,MAAM;;;;CAQ7B,CAAC;AAEF,wBAAgB,cAAc,CAC5B,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,GAAG,IAAI,mCAwE/C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/native/styles/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAI3E,OAAO,KAAK,EAAE,cAAc,EAAU,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAQL,KAAK,MAAM,EACX,KAAK,oBAAoB,EAC1B,MAAM,eAAe,CAAC;AAkJvB,eAAO,MAAM,YAAY;;;;;;;;;sBAaD,MAAM;;;;CAQ7B,CAAC;AAEF,wBAAgB,cAAc,CAC5B,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,GAAG,IAAI,mCAiF/C"}
@@ -6,7 +6,7 @@ type Primitive = string | number | boolean | bigint | symbol | null | undefined
6
6
  interface RecursiveArray<T> extends Array<T | ReadonlyArray<T> | RecursiveArray<T>> {
7
7
  }
8
8
  export type StyleProp<T> = T | RegisteredStyle<T> | RecursiveArray<T | RegisteredStyle<T> | Falsy> | Falsy;
9
- type UnwrapRecursiveArray<T> = T extends (infer I)[] ? UnwrapRecursiveArray<I> : T;
9
+ type UnwrapRecursiveArray<T, Depth extends unknown[] = [], MaxDepth extends number = 10> = Depth["length"] extends MaxDepth ? T : T extends (infer I)[] ? UnwrapRecursiveArray<I, [...Depth, unknown], MaxDepth> : T;
10
10
  type RemoveFalsy<T> = Exclude<T, Falsy>;
11
11
  type RemoveRegisteredStyle<T> = T extends RegisteredStyle<any> ? never : T;
12
12
  type ExtractStyleObject<T> = RemoveRegisteredStyle<RemoveFalsy<UnwrapRecursiveArray<T extends StyleProp<infer U> ? U : T>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"dot-notation.types.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/dot-notation.types.ts"],"names":[],"mappings":"AAGA,KAAK,KAAK,GAAG,SAAS,GAAG,IAAI,GAAG,KAAK,GAAG,EAAE,CAAC;AAC3C,KAAK,eAAe,CAAC,CAAC,IAAI,MAAM,GAAG;IAAE,sBAAsB,EAAE,CAAC,CAAA;CAAE,CAAC;AAEjE,KAAK,SAAS,GACV,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,IAAI,GACJ,SAAS,GACT,IAAI,GACJ,MAAM,GACN,KAAK,GACL,IAAI,CAAC;AAET,UAAU,cAAc,CAAC,CAAC,CACxB,SAAQ,KAAK,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;CAAG;AAE5D,MAAM,MAAM,SAAS,CAAC,CAAC,IACnB,CAAC,GACD,eAAe,CAAC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W,CAC9D,CAAC,EACD,SAAS,CAAC,IAAI,CAAC,CAChB,CAAC"}
@@ -1,7 +1,7 @@
1
- import { type ComponentProps, type PropsWithChildren } from "react";
1
+ import { type ComponentPropsWithRef, type PropsWithChildren } from "react";
2
2
  import type { ColorScheme, Props, StyledConfiguration, StyledOptions, StyledProps } from "react-native-css";
3
3
  import type { ReactComponent } from "../runtime.types";
4
- export declare const styled: <const C extends ReactComponent, const M extends StyledConfiguration<C>>(baseComponent: C, mapping: M, _options?: StyledOptions) => (props: StyledProps<ComponentProps<C>, M>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
4
+ export declare const styled: <const C extends ReactComponent, const M extends StyledConfiguration<C>>(baseComponent: C, mapping?: M, _options?: StyledOptions) => (props: StyledProps<ComponentPropsWithRef<C>, M>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
5
5
  export declare const useCssElement: <C extends ReactComponent>(component: C, incomingProps: Props, mapping: StyledConfiguration<C>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
6
6
  export declare const colorScheme: ColorScheme;
7
7
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../src/web/api.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACvB,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EACV,WAAW,EACX,KAAK,EACL,mBAAmB,EACnB,aAAa,EACb,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGvD,eAAO,MAAM,MAAM,GACjB,KAAK,CAAC,CAAC,SAAS,cAAc,EAC9B,KAAK,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,CAAC,EAEtC,eAAe,CAAC,EAChB,SAAS,CAAC,EACV,WAAW,aAAa,MAEhB,OAAO,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC,E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B,CAAC,CAAC,CAAC,2FA4BhC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAOzB,CAAC;AAEF;;GAEG;AACH,wBAAgB,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,0BAW9D;AAED,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,iBAAiB,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC,KAAK,MAAM,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC,CAAA;CAAE,CAAC,2CAe5E;AAED,eAAO,MAAM,iBAAiB,aAE7B,CAAC;AAEF,eAAO,MAAM,yBAAyB,aAErC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-css",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "A CSS polyfill for React Native",
5
5
  "exports": {
6
6
  ".": {
@@ -48,7 +48,7 @@
48
48
  }
49
49
  },
50
50
  "./components/*": {
51
- "source": "./src/components/*.ts",
51
+ "source": "./src/components/*.tsx",
52
52
  "react-native": "./src/components/*.tsx",
53
53
  "import": {
54
54
  "types": "./dist/typescript/module/src/components/*.d.ts",
@@ -192,6 +192,7 @@
192
192
  },
193
193
  "peerDependencies": {
194
194
  "@expo/metro-config": ">=54",
195
+ "lightningcss": ">=1.27.0",
195
196
  "react": ">=19",
196
197
  "react-native": ">=0.81"
197
198
  },
@@ -211,7 +212,7 @@
211
212
  "@types/react-test-renderer": "^19",
212
213
  "babel-plugin-tester": "^12.0.0",
213
214
  "babel-preset-expo": "~54.0.3",
214
- "commitlint": "^19.8.1",
215
+ "commitlint": "^20.0.0",
215
216
  "eas-build-cache-provider": "^16.4.2",
216
217
  "eslint": "^9.30.1",
217
218
  "eslint-config-prettier": "^10.1.5",
@@ -1228,6 +1228,8 @@ export function parseUnparsed(
1228
1228
  builder,
1229
1229
  property,
1230
1230
  );
1231
+ case "color-mix":
1232
+ return parseColorMix(tokenOrValue.value.arguments, builder, property);
1231
1233
  default: {
1232
1234
  builder.addWarning("value", `${tokenOrValue.value.name}()`);
1233
1235
  return;
@@ -2633,6 +2635,100 @@ export function parseCalcFn(
2633
2635
  return;
2634
2636
  }
2635
2637
 
2638
+ export function parseColorMix(
2639
+ tokens: TokenOrValue[],
2640
+ builder: StylesheetBuilder,
2641
+ property: string,
2642
+ ): StyleDescriptor {
2643
+ const [inToken, whitespace, colorSpace, comma, ...rest] = tokens;
2644
+ if (
2645
+ typeof inToken !== "object" ||
2646
+ inToken.type !== "token" ||
2647
+ inToken.value.type !== "ident" ||
2648
+ inToken.value.value !== "in"
2649
+ ) {
2650
+ return;
2651
+ }
2652
+
2653
+ if (
2654
+ typeof whitespace !== "object" ||
2655
+ whitespace.type !== "token" ||
2656
+ whitespace.value.type !== "white-space"
2657
+ ) {
2658
+ return;
2659
+ }
2660
+
2661
+ if (
2662
+ typeof comma !== "object" ||
2663
+ comma.type !== "token" ||
2664
+ comma.value.type !== "comma"
2665
+ ) {
2666
+ return;
2667
+ }
2668
+
2669
+ const colorSpaceArg = parseUnparsed(colorSpace, builder, property);
2670
+ if (typeof colorSpaceArg !== "string") {
2671
+ return;
2672
+ }
2673
+
2674
+ let nextToken = rest.shift();
2675
+
2676
+ const leftColorArg = parseUnparsed(nextToken, builder, property);
2677
+
2678
+ if (!leftColorArg) {
2679
+ return;
2680
+ }
2681
+
2682
+ nextToken = rest.shift();
2683
+
2684
+ let leftColorPercentage: StyleDescriptor | undefined;
2685
+ if (nextToken?.type !== "token" || nextToken.value.type !== "comma") {
2686
+ leftColorPercentage = parseUnparsed(nextToken, builder, property);
2687
+ nextToken = rest.shift();
2688
+ }
2689
+
2690
+ if (
2691
+ typeof nextToken !== "object" ||
2692
+ nextToken.type !== "token" ||
2693
+ nextToken.value.type !== "comma"
2694
+ ) {
2695
+ return;
2696
+ }
2697
+
2698
+ nextToken = rest.shift();
2699
+
2700
+ const rightColorArg = parseUnparsed(nextToken, builder, property);
2701
+
2702
+ if (rightColorArg === "transparent") {
2703
+ // Ignore the rest, treat as single color with alpha
2704
+ return [{}, "colorMix", [colorSpaceArg, leftColorArg, leftColorPercentage]];
2705
+ }
2706
+
2707
+ nextToken = rest.shift();
2708
+ let rightColorPercentage: StyleDescriptor | undefined;
2709
+ if (nextToken?.type !== "token" || nextToken.value.type !== "comma") {
2710
+ rightColorPercentage = parseUnparsed(nextToken, builder, property);
2711
+ nextToken = rest.shift();
2712
+ }
2713
+
2714
+ // We should have expired all tokens now
2715
+ if (nextToken) {
2716
+ return;
2717
+ }
2718
+
2719
+ return [
2720
+ {},
2721
+ "colorMix",
2722
+ [
2723
+ colorSpaceArg,
2724
+ leftColorArg,
2725
+ leftColorPercentage,
2726
+ rightColorArg,
2727
+ rightColorPercentage,
2728
+ ],
2729
+ ];
2730
+ }
2731
+
2636
2732
  export function parseCalcArguments(
2637
2733
  [...args]: TokenOrValue[],
2638
2734
  builder: StylesheetBuilder,
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-require-imports */
1
2
  export function lightningcssLoader() {
2
3
  let lightningcssPath: string | undefined;
3
4
 
@@ -28,11 +29,29 @@ export function lightningcssLoader() {
28
29
  );
29
30
  }
30
31
 
31
- // eslint-disable-next-line @typescript-eslint/no-require-imports
32
32
  const { transform: lightningcss, Features } = require(
33
33
  lightningcssPath,
34
34
  ) as typeof import("lightningcss");
35
35
 
36
+ try {
37
+ const lightningcssPackageJSONPath = require.resolve("../../package.json", {
38
+ paths: [lightningcssPath],
39
+ });
40
+
41
+ const packageJSON = require(lightningcssPackageJSONPath) as Record<
42
+ string,
43
+ unknown
44
+ >;
45
+
46
+ if (packageJSON.version === "1.30.2") {
47
+ throw new Error(
48
+ "[react-native-css] lightningcss version 1.30.2 has a critical bug that breaks compilation. Please pin the version of lightningcss to 1.30.1; or try upgrading.",
49
+ );
50
+ }
51
+ } catch {
52
+ // Intentionally left empty
53
+ }
54
+
36
55
  return {
37
56
  lightningcss,
38
57
  Features,
@@ -23,4 +23,6 @@ export function supportsConditionValid(condition: SupportsCondition): boolean {
23
23
  const declarations: Record<string, string[]> = {
24
24
  // We don't actually support this, but its needed for Tailwind CSS
25
25
  "-moz-orient": ["inline"],
26
+ // Special text used by TailwindCSS. We should probably change this to all color-mix
27
+ "color": ["color-mix(in lab, red, red)"],
26
28
  };
@@ -9,6 +9,8 @@ import {
9
9
  type StyledProps,
10
10
  } from "react-native-css";
11
11
 
12
+ import { copyComponentProperties } from "./copyComponentProperties";
13
+
12
14
  const mapping: StyledConfiguration<typeof RNActivityIndicator> = {
13
15
  className: {
14
16
  target: "style",
@@ -18,10 +20,11 @@ const mapping: StyledConfiguration<typeof RNActivityIndicator> = {
18
20
  },
19
21
  };
20
22
 
21
- export function ActivityIndicator(
22
- props: StyledProps<ActivityIndicatorProps, typeof mapping>,
23
- ) {
24
- return useCssElement(RNActivityIndicator, props, mapping);
25
- }
23
+ export const ActivityIndicator = copyComponentProperties(
24
+ RNActivityIndicator,
25
+ (props: StyledProps<ActivityIndicatorProps, typeof mapping>) => {
26
+ return useCssElement(RNActivityIndicator, props, mapping);
27
+ },
28
+ );
26
29
 
27
30
  export default ActivityIndicator;
@@ -6,6 +6,8 @@ import {
6
6
  type StyledProps,
7
7
  } from "react-native-css";
8
8
 
9
+ import { copyComponentProperties } from "./copyComponentProperties";
10
+
9
11
  const mapping: StyledConfiguration<typeof RNButton> = {
10
12
  className: {
11
13
  target: false,
@@ -15,8 +17,11 @@ const mapping: StyledConfiguration<typeof RNButton> = {
15
17
  },
16
18
  };
17
19
 
18
- export function Button(props: StyledProps<ButtonProps, typeof mapping>) {
19
- return useCssElement(RNButton, props, mapping);
20
- }
20
+ export const Button = copyComponentProperties(
21
+ RNButton,
22
+ (props: StyledProps<ButtonProps, typeof mapping>) => {
23
+ return useCssElement(RNButton, props, mapping);
24
+ },
25
+ );
21
26
 
22
27
  export default Button;
@@ -1,3 +1,4 @@
1
+ import type { ReactNode } from "react";
1
2
  import { FlatList as RNFlatList, type FlatListProps } from "react-native";
2
3
 
3
4
  import {
@@ -6,6 +7,8 @@ import {
6
7
  type StyledProps,
7
8
  } from "react-native-css";
8
9
 
10
+ import { copyComponentProperties } from "./copyComponentProperties";
11
+
9
12
  const mapping: StyledConfiguration<typeof RNFlatList> = {
10
13
  ListFooterComponentClassName: "ListFooterComponentStyle",
11
14
  ListHeaderComponentClassName: "ListHeaderComponentStyle",
@@ -13,10 +16,16 @@ const mapping: StyledConfiguration<typeof RNFlatList> = {
13
16
  contentContainerClassName: "contentContainerStyle",
14
17
  };
15
18
 
16
- export function FlatList<ItemT>(
17
- props: StyledProps<FlatListProps<ItemT>, typeof mapping>,
18
- ) {
19
+ export const FlatList = copyComponentProperties(RNFlatList, function <
20
+ ItemT,
21
+ >(props: StyledProps<FlatListProps<ItemT>, typeof mapping>) {
19
22
  return useCssElement(RNFlatList, props, mapping);
20
- }
23
+ }) as unknown as typeof RNFlatList &
24
+ (<ItemT>(
25
+ props: StyledProps<
26
+ FlatListProps<ItemT>,
27
+ StyledConfiguration<typeof RNFlatList>
28
+ >,
29
+ ) => ReactNode);
21
30
 
22
31
  export default FlatList;
@@ -6,12 +6,17 @@ import {
6
6
  type StyledProps,
7
7
  } from "react-native-css";
8
8
 
9
+ import { copyComponentProperties } from "./copyComponentProperties";
10
+
9
11
  const mapping: StyledConfiguration<typeof RNImage> = {
10
12
  className: "style",
11
13
  };
12
14
 
13
- export function Image(props: StyledProps<ImageProps, typeof mapping>) {
14
- return useCssElement(RNImage, props, mapping);
15
- }
15
+ export const Image = copyComponentProperties(
16
+ RNImage,
17
+ (props: StyledProps<ImageProps, typeof mapping>) => {
18
+ return useCssElement(RNImage, props, mapping);
19
+ },
20
+ );
16
21
 
17
22
  export default Image;
@@ -9,6 +9,8 @@ import {
9
9
  type StyledProps,
10
10
  } from "react-native-css";
11
11
 
12
+ import { copyComponentProperties } from "./copyComponentProperties";
13
+
12
14
  const mapping: StyledConfiguration<typeof RNImageBackground> = {
13
15
  className: {
14
16
  target: "style",
@@ -18,10 +20,11 @@ const mapping: StyledConfiguration<typeof RNImageBackground> = {
18
20
  },
19
21
  };
20
22
 
21
- export function ImageBackground(
22
- props: StyledProps<ImageBackgroundProps, typeof mapping>,
23
- ) {
24
- return useCssElement(RNImageBackground, props, mapping);
25
- }
23
+ export const ImageBackground = copyComponentProperties(
24
+ RNImageBackground,
25
+ (props: StyledProps<ImageBackgroundProps, typeof mapping>) => {
26
+ return useCssElement(RNImageBackground, props, mapping);
27
+ },
28
+ );
26
29
 
27
30
  export default ImageBackground;
@@ -9,16 +9,19 @@ import {
9
9
  type StyledProps,
10
10
  } from "react-native-css";
11
11
 
12
+ import { copyComponentProperties } from "./copyComponentProperties";
13
+
12
14
  const mapping: StyledConfiguration<typeof RNKeyboardAvoidingView> = {
13
15
  className: {
14
16
  target: "style",
15
17
  },
16
18
  };
17
19
 
18
- export function KeyboardAvoidingView(
19
- props: StyledProps<KeyboardAvoidingViewProps, typeof mapping>,
20
- ) {
21
- return useCssElement(RNKeyboardAvoidingView, props, mapping);
22
- }
20
+ export const KeyboardAvoidingView = copyComponentProperties(
21
+ RNKeyboardAvoidingView,
22
+ (props: StyledProps<KeyboardAvoidingViewProps, typeof mapping>) => {
23
+ return useCssElement(RNKeyboardAvoidingView, props, mapping);
24
+ },
25
+ );
23
26
 
24
27
  export default KeyboardAvoidingView;
@@ -6,12 +6,17 @@ import {
6
6
  type StyledProps,
7
7
  } from "react-native-css";
8
8
 
9
+ import { copyComponentProperties } from "./copyComponentProperties";
10
+
9
11
  const mapping: StyledConfiguration<typeof RNPressable> = {
10
12
  className: "style",
11
13
  };
12
14
 
13
- export function Pressable(props: StyledProps<PressableProps, typeof mapping>) {
14
- return useCssElement(RNPressable, props, mapping);
15
- }
15
+ export const Pressable = copyComponentProperties(
16
+ RNPressable,
17
+ (props: StyledProps<PressableProps, typeof mapping>) => {
18
+ return useCssElement(RNPressable, props, mapping);
19
+ },
20
+ );
16
21
 
17
22
  export default Pressable;
@@ -6,15 +6,18 @@ import {
6
6
  type StyledProps,
7
7
  } from "react-native-css";
8
8
 
9
+ import { copyComponentProperties } from "./copyComponentProperties";
10
+
9
11
  const mapping: StyledConfiguration<typeof RNScrollView> = {
10
12
  className: "style",
11
13
  contentContainerClassName: "contentContainerStyle",
12
14
  };
13
15
 
14
- export function ScrollView(
15
- props: StyledProps<ScrollViewProps, typeof mapping>,
16
- ) {
17
- return useCssElement(RNScrollView, props, mapping);
18
- }
16
+ export const ScrollView = copyComponentProperties(
17
+ RNScrollView,
18
+ (props: StyledProps<ScrollViewProps, typeof mapping>) => {
19
+ return useCssElement(RNScrollView, props, mapping);
20
+ },
21
+ );
19
22
 
20
23
  export default ScrollView;
@@ -6,12 +6,17 @@ import {
6
6
  type StyledProps,
7
7
  } from "react-native-css";
8
8
 
9
+ import { copyComponentProperties } from "./copyComponentProperties";
10
+
9
11
  const mapping = {
10
12
  className: "style",
11
13
  } satisfies StyledConfiguration<typeof RNSwitch>;
12
14
 
13
- export function Switch(props: StyledProps<SwitchProps, typeof mapping>) {
14
- return useCssElement(RNSwitch, props, mapping);
15
- }
15
+ export const Switch = copyComponentProperties(
16
+ RNSwitch,
17
+ (props: StyledProps<SwitchProps, typeof mapping>) => {
18
+ return useCssElement(RNSwitch, props, mapping);
19
+ },
20
+ );
16
21
 
17
22
  export default Switch;
@@ -6,12 +6,17 @@ import {
6
6
  type StyledProps,
7
7
  } from "react-native-css";
8
8
 
9
+ import { copyComponentProperties } from "./copyComponentProperties";
10
+
9
11
  const mapping = {
10
12
  className: "style",
11
13
  } satisfies StyledConfiguration<typeof RNText>;
12
14
 
13
- export function Text(props: StyledProps<TextProps, typeof mapping>) {
14
- return useCssElement(RNText, props, mapping);
15
- }
15
+ export const Text = copyComponentProperties(
16
+ RNText,
17
+ (props: StyledProps<TextProps, typeof mapping>) => {
18
+ return useCssElement(RNText, props, mapping);
19
+ },
20
+ );
16
21
 
17
22
  export default Text;
@@ -6,6 +6,8 @@ import {
6
6
  type StyledProps,
7
7
  } from "react-native-css";
8
8
 
9
+ import { copyComponentProperties } from "./copyComponentProperties";
10
+
9
11
  const mapping: StyledConfiguration<typeof RNTextInput> = {
10
12
  className: {
11
13
  target: "style",
@@ -15,8 +17,11 @@ const mapping: StyledConfiguration<typeof RNTextInput> = {
15
17
  },
16
18
  };
17
19
 
18
- export function TextInput(props: StyledProps<TextInputProps, typeof mapping>) {
19
- return useCssElement(RNTextInput, props, mapping);
20
- }
20
+ export const TextInput = copyComponentProperties(
21
+ RNTextInput,
22
+ (props: StyledProps<TextInputProps, typeof mapping>) => {
23
+ return useCssElement(RNTextInput, props, mapping);
24
+ },
25
+ );
21
26
 
22
27
  export default TextInput;