react-native-css 0.0.0-nightly.008d479

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 (1052) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +330 -0
  3. package/dist/commonjs/babel/allowedModules.js +23 -0
  4. package/dist/commonjs/babel/allowedModules.js.map +1 -0
  5. package/dist/commonjs/babel/helpers.js +25 -0
  6. package/dist/commonjs/babel/helpers.js.map +1 -0
  7. package/dist/commonjs/babel/import-plugin.js +101 -0
  8. package/dist/commonjs/babel/import-plugin.js.map +1 -0
  9. package/dist/commonjs/babel/index.js +13 -0
  10. package/dist/commonjs/babel/index.js.map +1 -0
  11. package/dist/commonjs/babel/react-native-web.js +118 -0
  12. package/dist/commonjs/babel/react-native-web.js.map +1 -0
  13. package/dist/commonjs/babel/react-native.js +118 -0
  14. package/dist/commonjs/babel/react-native.js.map +1 -0
  15. package/dist/commonjs/compiler/atRules.js +108 -0
  16. package/dist/commonjs/compiler/atRules.js.map +1 -0
  17. package/dist/commonjs/compiler/compiler.js +338 -0
  18. package/dist/commonjs/compiler/compiler.js.map +1 -0
  19. package/dist/commonjs/compiler/compiler.types.js +4 -0
  20. package/dist/commonjs/compiler/compiler.types.js.map +1 -0
  21. package/dist/commonjs/compiler/container-query.js +63 -0
  22. package/dist/commonjs/compiler/container-query.js.map +1 -0
  23. package/dist/commonjs/compiler/declarations.js +2341 -0
  24. package/dist/commonjs/compiler/declarations.js.map +1 -0
  25. package/dist/commonjs/compiler/functions-web.js +44 -0
  26. package/dist/commonjs/compiler/functions-web.js.map +1 -0
  27. package/dist/commonjs/compiler/functions.js +59 -0
  28. package/dist/commonjs/compiler/functions.js.map +1 -0
  29. package/dist/commonjs/compiler/index.js +17 -0
  30. package/dist/commonjs/compiler/index.js.map +1 -0
  31. package/dist/commonjs/compiler/inheritance.test.js +78 -0
  32. package/dist/commonjs/compiler/inheritance.test.js.map +1 -0
  33. package/dist/commonjs/compiler/inline-variables.js +142 -0
  34. package/dist/commonjs/compiler/inline-variables.js.map +1 -0
  35. package/dist/commonjs/compiler/keyframes.js +60 -0
  36. package/dist/commonjs/compiler/keyframes.js.map +1 -0
  37. package/dist/commonjs/compiler/lightningcss-loader.js +50 -0
  38. package/dist/commonjs/compiler/lightningcss-loader.js.map +1 -0
  39. package/dist/commonjs/compiler/media-query.js +172 -0
  40. package/dist/commonjs/compiler/media-query.js.map +1 -0
  41. package/dist/commonjs/compiler/pseudo-elements.js +49 -0
  42. package/dist/commonjs/compiler/pseudo-elements.js.map +1 -0
  43. package/dist/commonjs/compiler/selector-builder.js +504 -0
  44. package/dist/commonjs/compiler/selector-builder.js.map +1 -0
  45. package/dist/commonjs/compiler/selectors.js +414 -0
  46. package/dist/commonjs/compiler/selectors.js.map +1 -0
  47. package/dist/commonjs/compiler/split-by-delimiter.js +21 -0
  48. package/dist/commonjs/compiler/split-by-delimiter.js.map +1 -0
  49. package/dist/commonjs/compiler/stylesheet.js +478 -0
  50. package/dist/commonjs/compiler/stylesheet.js.map +1 -0
  51. package/dist/commonjs/compiler/supports.js +29 -0
  52. package/dist/commonjs/compiler/supports.js.map +1 -0
  53. package/dist/commonjs/components/ActivityIndicator.js +22 -0
  54. package/dist/commonjs/components/ActivityIndicator.js.map +1 -0
  55. package/dist/commonjs/components/Button.js +22 -0
  56. package/dist/commonjs/components/Button.js.map +1 -0
  57. package/dist/commonjs/components/FlatList.js +20 -0
  58. package/dist/commonjs/components/FlatList.js.map +1 -0
  59. package/dist/commonjs/components/Image.js +17 -0
  60. package/dist/commonjs/components/Image.js.map +1 -0
  61. package/dist/commonjs/components/ImageBackground.js +22 -0
  62. package/dist/commonjs/components/ImageBackground.js.map +1 -0
  63. package/dist/commonjs/components/KeyboardAvoidingView.js +19 -0
  64. package/dist/commonjs/components/KeyboardAvoidingView.js.map +1 -0
  65. package/dist/commonjs/components/Pressable.js +17 -0
  66. package/dist/commonjs/components/Pressable.js.map +1 -0
  67. package/dist/commonjs/components/ScrollView.js +18 -0
  68. package/dist/commonjs/components/ScrollView.js.map +1 -0
  69. package/dist/commonjs/components/Switch.js +17 -0
  70. package/dist/commonjs/components/Switch.js.map +1 -0
  71. package/dist/commonjs/components/Text.js +17 -0
  72. package/dist/commonjs/components/Text.js.map +1 -0
  73. package/dist/commonjs/components/TextInput.js +22 -0
  74. package/dist/commonjs/components/TextInput.js.map +1 -0
  75. package/dist/commonjs/components/TouchableHighlight.js +17 -0
  76. package/dist/commonjs/components/TouchableHighlight.js.map +1 -0
  77. package/dist/commonjs/components/TouchableOpacity.js +17 -0
  78. package/dist/commonjs/components/TouchableOpacity.js.map +1 -0
  79. package/dist/commonjs/components/TouchableWithoutFeedback.js +17 -0
  80. package/dist/commonjs/components/TouchableWithoutFeedback.js.map +1 -0
  81. package/dist/commonjs/components/View.js +17 -0
  82. package/dist/commonjs/components/View.js.map +1 -0
  83. package/dist/commonjs/components/VirtualizedList.js +20 -0
  84. package/dist/commonjs/components/VirtualizedList.js.map +1 -0
  85. package/dist/commonjs/components/copyComponentProperties.js +19 -0
  86. package/dist/commonjs/components/copyComponentProperties.js.map +1 -0
  87. package/dist/commonjs/components/index.cjs +265 -0
  88. package/dist/commonjs/components/index.cjs.map +1 -0
  89. package/dist/commonjs/components/index.js +148 -0
  90. package/dist/commonjs/components/index.js.map +1 -0
  91. package/dist/commonjs/components/react-native-safe-area-context.js +17 -0
  92. package/dist/commonjs/components/react-native-safe-area-context.js.map +1 -0
  93. package/dist/commonjs/components/react-native-safe-area-context.native.js +53 -0
  94. package/dist/commonjs/components/react-native-safe-area-context.native.js.map +1 -0
  95. package/dist/commonjs/index.js +17 -0
  96. package/dist/commonjs/index.js.map +1 -0
  97. package/dist/commonjs/jest/expect.d.js +2 -0
  98. package/dist/commonjs/jest/expect.d.js.map +1 -0
  99. package/dist/commonjs/jest/index.js +55 -0
  100. package/dist/commonjs/jest/index.js.map +1 -0
  101. package/dist/commonjs/jest/setup.js +3 -0
  102. package/dist/commonjs/jest/setup.js.map +1 -0
  103. package/dist/commonjs/jest/setupAfterEnv.js +15 -0
  104. package/dist/commonjs/jest/setupAfterEnv.js.map +1 -0
  105. package/dist/commonjs/metro/index.js +60 -0
  106. package/dist/commonjs/metro/index.js.map +1 -0
  107. package/dist/commonjs/metro/injection-code.js +27 -0
  108. package/dist/commonjs/metro/injection-code.js.map +1 -0
  109. package/dist/commonjs/metro/metro-transformer.js +38 -0
  110. package/dist/commonjs/metro/metro-transformer.js.map +1 -0
  111. package/dist/commonjs/metro/override.js +6 -0
  112. package/dist/commonjs/metro/override.js.map +1 -0
  113. package/dist/commonjs/metro/picocolors.js +71 -0
  114. package/dist/commonjs/metro/picocolors.js.map +1 -0
  115. package/dist/commonjs/metro/resolver.js +58 -0
  116. package/dist/commonjs/metro/resolver.js.map +1 -0
  117. package/dist/commonjs/metro/stringify.js +59 -0
  118. package/dist/commonjs/metro/stringify.js.map +1 -0
  119. package/dist/commonjs/metro/typescript.js +47 -0
  120. package/dist/commonjs/metro/typescript.js.map +1 -0
  121. package/dist/commonjs/native/api.js +117 -0
  122. package/dist/commonjs/native/api.js.map +1 -0
  123. package/dist/commonjs/native/conditions/attributes.js +44 -0
  124. package/dist/commonjs/native/conditions/attributes.js.map +1 -0
  125. package/dist/commonjs/native/conditions/container-query.js +123 -0
  126. package/dist/commonjs/native/conditions/container-query.js.map +1 -0
  127. package/dist/commonjs/native/conditions/guards.js +33 -0
  128. package/dist/commonjs/native/conditions/guards.js.map +1 -0
  129. package/dist/commonjs/native/conditions/index.js +40 -0
  130. package/dist/commonjs/native/conditions/index.js.map +1 -0
  131. package/dist/commonjs/native/conditions/media-query.js +98 -0
  132. package/dist/commonjs/native/conditions/media-query.js.map +1 -0
  133. package/dist/commonjs/native/index.js +28 -0
  134. package/dist/commonjs/native/index.js.map +1 -0
  135. package/dist/commonjs/native/objects.js +92 -0
  136. package/dist/commonjs/native/objects.js.map +1 -0
  137. package/dist/commonjs/native/react/interaction.js +63 -0
  138. package/dist/commonjs/native/react/interaction.js.map +1 -0
  139. package/dist/commonjs/native/react/rules.js +259 -0
  140. package/dist/commonjs/native/react/rules.js.map +1 -0
  141. package/dist/commonjs/native/react/useNativeCss.js +166 -0
  142. package/dist/commonjs/native/react/useNativeCss.js.map +1 -0
  143. package/dist/commonjs/native/react/usePassthrough.js +50 -0
  144. package/dist/commonjs/native/react/usePassthrough.js.map +1 -0
  145. package/dist/commonjs/native/react-native-css-metro-override.js +39 -0
  146. package/dist/commonjs/native/react-native-css-metro-override.js.map +1 -0
  147. package/dist/commonjs/native/reactivity.js +181 -0
  148. package/dist/commonjs/native/reactivity.js.map +1 -0
  149. package/dist/commonjs/native/reanimated.js +17 -0
  150. package/dist/commonjs/native/reanimated.js.map +1 -0
  151. package/dist/commonjs/native/styles/calculate-props.js +162 -0
  152. package/dist/commonjs/native/styles/calculate-props.js.map +1 -0
  153. package/dist/commonjs/native/styles/constants.js +9 -0
  154. package/dist/commonjs/native/styles/constants.js.map +1 -0
  155. package/dist/commonjs/native/styles/defaults.js +69 -0
  156. package/dist/commonjs/native/styles/defaults.js.map +1 -0
  157. package/dist/commonjs/native/styles/functions/animation-timing.js +34 -0
  158. package/dist/commonjs/native/styles/functions/animation-timing.js.map +1 -0
  159. package/dist/commonjs/native/styles/functions/calc.js +125 -0
  160. package/dist/commonjs/native/styles/functions/calc.js.map +1 -0
  161. package/dist/commonjs/native/styles/functions/color-mix.js +50 -0
  162. package/dist/commonjs/native/styles/functions/color-mix.js.map +1 -0
  163. package/dist/commonjs/native/styles/functions/filters.js +84 -0
  164. package/dist/commonjs/native/styles/functions/filters.js.map +1 -0
  165. package/dist/commonjs/native/styles/functions/index.js +94 -0
  166. package/dist/commonjs/native/styles/functions/index.js.map +1 -0
  167. package/dist/commonjs/native/styles/functions/numeric-functions.js +32 -0
  168. package/dist/commonjs/native/styles/functions/numeric-functions.js.map +1 -0
  169. package/dist/commonjs/native/styles/functions/platform-functions.js +46 -0
  170. package/dist/commonjs/native/styles/functions/platform-functions.js.map +1 -0
  171. package/dist/commonjs/native/styles/functions/string-functions.js +23 -0
  172. package/dist/commonjs/native/styles/functions/string-functions.js.map +1 -0
  173. package/dist/commonjs/native/styles/functions/transform-functions.js +121 -0
  174. package/dist/commonjs/native/styles/functions/transform-functions.js.map +1 -0
  175. package/dist/commonjs/native/styles/index.js +345 -0
  176. package/dist/commonjs/native/styles/index.js.map +1 -0
  177. package/dist/commonjs/native/styles/line-height.js +25 -0
  178. package/dist/commonjs/native/styles/line-height.js.map +1 -0
  179. package/dist/commonjs/native/styles/resolve.js +107 -0
  180. package/dist/commonjs/native/styles/resolve.js.map +1 -0
  181. package/dist/commonjs/native/styles/shorthands/_handler.js +79 -0
  182. package/dist/commonjs/native/styles/shorthands/_handler.js.map +1 -0
  183. package/dist/commonjs/native/styles/shorthands/animation.js +61 -0
  184. package/dist/commonjs/native/styles/shorthands/animation.js.map +1 -0
  185. package/dist/commonjs/native/styles/shorthands/border.js +12 -0
  186. package/dist/commonjs/native/styles/shorthands/border.js.map +1 -0
  187. package/dist/commonjs/native/styles/shorthands/box-shadow.js +48 -0
  188. package/dist/commonjs/native/styles/shorthands/box-shadow.js.map +1 -0
  189. package/dist/commonjs/native/styles/shorthands/index.js +61 -0
  190. package/dist/commonjs/native/styles/shorthands/index.js.map +1 -0
  191. package/dist/commonjs/native/styles/shorthands/text-shadow.js +13 -0
  192. package/dist/commonjs/native/styles/shorthands/text-shadow.js.map +1 -0
  193. package/dist/commonjs/native/styles/shorthands/transform.js +23 -0
  194. package/dist/commonjs/native/styles/shorthands/transform.js.map +1 -0
  195. package/dist/commonjs/native/styles/units.js +54 -0
  196. package/dist/commonjs/native/styles/units.js.map +1 -0
  197. package/dist/commonjs/native/styles/variables.js +79 -0
  198. package/dist/commonjs/native/styles/variables.js.map +1 -0
  199. package/dist/commonjs/native-internal/README.md +11 -0
  200. package/dist/commonjs/native-internal/index.js +39 -0
  201. package/dist/commonjs/native-internal/index.js.map +1 -0
  202. package/dist/commonjs/native-internal/root.js +34 -0
  203. package/dist/commonjs/native-internal/root.js.map +1 -0
  204. package/dist/commonjs/native-internal/style-collection.js +110 -0
  205. package/dist/commonjs/native-internal/style-collection.js.map +1 -0
  206. package/dist/commonjs/native-internal/variables.js +27 -0
  207. package/dist/commonjs/native-internal/variables.js.map +1 -0
  208. package/dist/commonjs/package.json +1 -0
  209. package/dist/commonjs/runtime.js +17 -0
  210. package/dist/commonjs/runtime.js.map +1 -0
  211. package/dist/commonjs/runtime.native.js +17 -0
  212. package/dist/commonjs/runtime.native.js.map +1 -0
  213. package/dist/commonjs/runtime.types.js +6 -0
  214. package/dist/commonjs/runtime.types.js.map +1 -0
  215. package/dist/commonjs/utilities/dot-notation.types.js +2 -0
  216. package/dist/commonjs/utilities/dot-notation.types.js.map +1 -0
  217. package/dist/commonjs/utilities/index.js +39 -0
  218. package/dist/commonjs/utilities/index.js.map +1 -0
  219. package/dist/commonjs/utilities/specificity.js +44 -0
  220. package/dist/commonjs/utilities/specificity.js.map +1 -0
  221. package/dist/commonjs/utilities/style-descriptor.js +21 -0
  222. package/dist/commonjs/utilities/style-descriptor.js.map +1 -0
  223. package/dist/commonjs/web/api.js +89 -0
  224. package/dist/commonjs/web/api.js.map +1 -0
  225. package/dist/commonjs/web/assign-style.js +27 -0
  226. package/dist/commonjs/web/assign-style.js.map +1 -0
  227. package/dist/commonjs/web/index.js +18 -0
  228. package/dist/commonjs/web/index.js.map +1 -0
  229. package/dist/commonjs/web/metro.js +6 -0
  230. package/dist/commonjs/web/metro.js.map +1 -0
  231. package/dist/module/babel/allowedModules.js +19 -0
  232. package/dist/module/babel/allowedModules.js.map +1 -0
  233. package/dist/module/babel/helpers.js +21 -0
  234. package/dist/module/babel/helpers.js.map +1 -0
  235. package/dist/module/babel/import-plugin.js +97 -0
  236. package/dist/module/babel/import-plugin.js.map +1 -0
  237. package/dist/module/babel/index.js +9 -0
  238. package/dist/module/babel/index.js.map +1 -0
  239. package/dist/module/babel/react-native-web.js +112 -0
  240. package/dist/module/babel/react-native-web.js.map +1 -0
  241. package/dist/module/babel/react-native.js +112 -0
  242. package/dist/module/babel/react-native.js.map +1 -0
  243. package/dist/module/compiler/atRules.js +104 -0
  244. package/dist/module/compiler/atRules.js.map +1 -0
  245. package/dist/module/compiler/compiler.js +333 -0
  246. package/dist/module/compiler/compiler.js.map +1 -0
  247. package/dist/module/compiler/compiler.types.js +60 -0
  248. package/dist/module/compiler/compiler.types.js.map +1 -0
  249. package/dist/module/compiler/container-query.js +59 -0
  250. package/dist/module/compiler/container-query.js.map +1 -0
  251. package/dist/module/compiler/declarations.js +2260 -0
  252. package/dist/module/compiler/declarations.js.map +1 -0
  253. package/dist/module/compiler/functions-web.js +32 -0
  254. package/dist/module/compiler/functions-web.js.map +1 -0
  255. package/dist/module/compiler/functions.js +47 -0
  256. package/dist/module/compiler/functions.js.map +1 -0
  257. package/dist/module/compiler/index.js +9 -0
  258. package/dist/module/compiler/index.js.map +1 -0
  259. package/dist/module/compiler/inheritance.test.js +78 -0
  260. package/dist/module/compiler/inheritance.test.js.map +1 -0
  261. package/dist/module/compiler/inline-variables.js +138 -0
  262. package/dist/module/compiler/inline-variables.js.map +1 -0
  263. package/dist/module/compiler/keyframes.js +54 -0
  264. package/dist/module/compiler/keyframes.js.map +1 -0
  265. package/dist/module/compiler/lightningcss-loader.js +46 -0
  266. package/dist/module/compiler/lightningcss-loader.js.map +1 -0
  267. package/dist/module/compiler/media-query.js +166 -0
  268. package/dist/module/compiler/media-query.js.map +1 -0
  269. package/dist/module/compiler/pseudo-elements.js +44 -0
  270. package/dist/module/compiler/pseudo-elements.js.map +1 -0
  271. package/dist/module/compiler/selector-builder.js +499 -0
  272. package/dist/module/compiler/selector-builder.js.map +1 -0
  273. package/dist/module/compiler/selectors.js +409 -0
  274. package/dist/module/compiler/selectors.js.map +1 -0
  275. package/dist/module/compiler/split-by-delimiter.js +17 -0
  276. package/dist/module/compiler/split-by-delimiter.js.map +1 -0
  277. package/dist/module/compiler/stylesheet.js +473 -0
  278. package/dist/module/compiler/stylesheet.js.map +1 -0
  279. package/dist/module/compiler/supports.js +25 -0
  280. package/dist/module/compiler/supports.js.map +1 -0
  281. package/dist/module/components/ActivityIndicator.js +18 -0
  282. package/dist/module/components/ActivityIndicator.js.map +1 -0
  283. package/dist/module/components/Button.js +18 -0
  284. package/dist/module/components/Button.js.map +1 -0
  285. package/dist/module/components/FlatList.js +16 -0
  286. package/dist/module/components/FlatList.js.map +1 -0
  287. package/dist/module/components/Image.js +13 -0
  288. package/dist/module/components/Image.js.map +1 -0
  289. package/dist/module/components/ImageBackground.js +18 -0
  290. package/dist/module/components/ImageBackground.js.map +1 -0
  291. package/dist/module/components/KeyboardAvoidingView.js +15 -0
  292. package/dist/module/components/KeyboardAvoidingView.js.map +1 -0
  293. package/dist/module/components/Pressable.js +13 -0
  294. package/dist/module/components/Pressable.js.map +1 -0
  295. package/dist/module/components/ScrollView.js +14 -0
  296. package/dist/module/components/ScrollView.js.map +1 -0
  297. package/dist/module/components/Switch.js +13 -0
  298. package/dist/module/components/Switch.js.map +1 -0
  299. package/dist/module/components/Text.js +13 -0
  300. package/dist/module/components/Text.js.map +1 -0
  301. package/dist/module/components/TextInput.js +18 -0
  302. package/dist/module/components/TextInput.js.map +1 -0
  303. package/dist/module/components/TouchableHighlight.js +13 -0
  304. package/dist/module/components/TouchableHighlight.js.map +1 -0
  305. package/dist/module/components/TouchableOpacity.js +13 -0
  306. package/dist/module/components/TouchableOpacity.js.map +1 -0
  307. package/dist/module/components/TouchableWithoutFeedback.js +13 -0
  308. package/dist/module/components/TouchableWithoutFeedback.js.map +1 -0
  309. package/dist/module/components/View.js +13 -0
  310. package/dist/module/components/View.js.map +1 -0
  311. package/dist/module/components/VirtualizedList.js +16 -0
  312. package/dist/module/components/VirtualizedList.js.map +1 -0
  313. package/dist/module/components/copyComponentProperties.js +15 -0
  314. package/dist/module/components/copyComponentProperties.js.map +1 -0
  315. package/dist/module/components/index.cjs +265 -0
  316. package/dist/module/components/index.cjs.map +1 -0
  317. package/dist/module/components/index.js +20 -0
  318. package/dist/module/components/index.js.map +1 -0
  319. package/dist/module/components/react-native-safe-area-context.js +4 -0
  320. package/dist/module/components/react-native-safe-area-context.js.map +1 -0
  321. package/dist/module/components/react-native-safe-area-context.native.js +36 -0
  322. package/dist/module/components/react-native-safe-area-context.native.js.map +1 -0
  323. package/dist/module/index.js +4 -0
  324. package/dist/module/index.js.map +1 -0
  325. package/dist/module/jest/expect.d.js +2 -0
  326. package/dist/module/jest/expect.d.js.map +1 -0
  327. package/dist/module/jest/index.js +49 -0
  328. package/dist/module/jest/index.js.map +1 -0
  329. package/dist/module/jest/setup.js +3 -0
  330. package/dist/module/jest/setup.js.map +1 -0
  331. package/dist/module/jest/setupAfterEnv.js +15 -0
  332. package/dist/module/jest/setupAfterEnv.js.map +1 -0
  333. package/dist/module/metro/index.js +55 -0
  334. package/dist/module/metro/index.js.map +1 -0
  335. package/dist/module/metro/injection-code.js +22 -0
  336. package/dist/module/metro/injection-code.js.map +1 -0
  337. package/dist/module/metro/metro-transformer.js +34 -0
  338. package/dist/module/metro/metro-transformer.js.map +1 -0
  339. package/dist/module/metro/override.js +4 -0
  340. package/dist/module/metro/override.js.map +1 -0
  341. package/dist/module/metro/picocolors.js +67 -0
  342. package/dist/module/metro/picocolors.js.map +1 -0
  343. package/dist/module/metro/resolver.js +53 -0
  344. package/dist/module/metro/resolver.js.map +1 -0
  345. package/dist/module/metro/stringify.js +55 -0
  346. package/dist/module/metro/stringify.js.map +1 -0
  347. package/dist/module/metro/typescript.js +42 -0
  348. package/dist/module/metro/typescript.js.map +1 -0
  349. package/dist/module/native/api.js +85 -0
  350. package/dist/module/native/api.js.map +1 -0
  351. package/dist/module/native/conditions/attributes.js +40 -0
  352. package/dist/module/native/conditions/attributes.js.map +1 -0
  353. package/dist/module/native/conditions/container-query.js +117 -0
  354. package/dist/module/native/conditions/container-query.js.map +1 -0
  355. package/dist/module/native/conditions/guards.js +29 -0
  356. package/dist/module/native/conditions/guards.js.map +1 -0
  357. package/dist/module/native/conditions/index.js +36 -0
  358. package/dist/module/native/conditions/index.js.map +1 -0
  359. package/dist/module/native/conditions/media-query.js +93 -0
  360. package/dist/module/native/conditions/media-query.js.map +1 -0
  361. package/dist/module/native/index.js +5 -0
  362. package/dist/module/native/index.js.map +1 -0
  363. package/dist/module/native/objects.js +84 -0
  364. package/dist/module/native/objects.js.map +1 -0
  365. package/dist/module/native/react/interaction.js +59 -0
  366. package/dist/module/native/react/interaction.js.map +1 -0
  367. package/dist/module/native/react/rules.js +252 -0
  368. package/dist/module/native/react/rules.js.map +1 -0
  369. package/dist/module/native/react/useNativeCss.js +160 -0
  370. package/dist/module/native/react/useNativeCss.js.map +1 -0
  371. package/dist/module/native/react/usePassthrough.js +45 -0
  372. package/dist/module/native/react/usePassthrough.js.map +1 -0
  373. package/dist/module/native/react-native-css-metro-override.js +37 -0
  374. package/dist/module/native/react-native-css-metro-override.js.map +1 -0
  375. package/dist/module/native/reactivity.js +169 -0
  376. package/dist/module/native/reactivity.js.map +1 -0
  377. package/dist/module/native/reanimated.js +13 -0
  378. package/dist/module/native/reanimated.js.map +1 -0
  379. package/dist/module/native/styles/calculate-props.js +157 -0
  380. package/dist/module/native/styles/calculate-props.js.map +1 -0
  381. package/dist/module/native/styles/constants.js +5 -0
  382. package/dist/module/native/styles/constants.js.map +1 -0
  383. package/dist/module/native/styles/defaults.js +65 -0
  384. package/dist/module/native/styles/defaults.js.map +1 -0
  385. package/dist/module/native/styles/functions/animation-timing.js +30 -0
  386. package/dist/module/native/styles/functions/animation-timing.js.map +1 -0
  387. package/dist/module/native/styles/functions/calc.js +120 -0
  388. package/dist/module/native/styles/functions/calc.js.map +1 -0
  389. package/dist/module/native/styles/functions/color-mix.js +45 -0
  390. package/dist/module/native/styles/functions/color-mix.js.map +1 -0
  391. package/dist/module/native/styles/functions/filters.js +70 -0
  392. package/dist/module/native/styles/functions/filters.js.map +1 -0
  393. package/dist/module/native/styles/functions/index.js +11 -0
  394. package/dist/module/native/styles/functions/index.js.map +1 -0
  395. package/dist/module/native/styles/functions/numeric-functions.js +25 -0
  396. package/dist/module/native/styles/functions/numeric-functions.js.map +1 -0
  397. package/dist/module/native/styles/functions/platform-functions.js +36 -0
  398. package/dist/module/native/styles/functions/platform-functions.js.map +1 -0
  399. package/dist/module/native/styles/functions/string-functions.js +18 -0
  400. package/dist/module/native/styles/functions/string-functions.js.map +1 -0
  401. package/dist/module/native/styles/functions/transform-functions.js +114 -0
  402. package/dist/module/native/styles/functions/transform-functions.js.map +1 -0
  403. package/dist/module/native/styles/index.js +341 -0
  404. package/dist/module/native/styles/index.js.map +1 -0
  405. package/dist/module/native/styles/line-height.js +20 -0
  406. package/dist/module/native/styles/line-height.js.map +1 -0
  407. package/dist/module/native/styles/resolve.js +102 -0
  408. package/dist/module/native/styles/resolve.js.map +1 -0
  409. package/dist/module/native/styles/shorthands/_handler.js +74 -0
  410. package/dist/module/native/styles/shorthands/_handler.js.map +1 -0
  411. package/dist/module/native/styles/shorthands/animation.js +54 -0
  412. package/dist/module/native/styles/shorthands/animation.js.map +1 -0
  413. package/dist/module/native/styles/shorthands/border.js +8 -0
  414. package/dist/module/native/styles/shorthands/border.js.map +1 -0
  415. package/dist/module/native/styles/shorthands/box-shadow.js +43 -0
  416. package/dist/module/native/styles/shorthands/box-shadow.js.map +1 -0
  417. package/dist/module/native/styles/shorthands/index.js +8 -0
  418. package/dist/module/native/styles/shorthands/index.js.map +1 -0
  419. package/dist/module/native/styles/shorthands/text-shadow.js +9 -0
  420. package/dist/module/native/styles/shorthands/text-shadow.js.map +1 -0
  421. package/dist/module/native/styles/shorthands/transform.js +18 -0
  422. package/dist/module/native/styles/shorthands/transform.js.map +1 -0
  423. package/dist/module/native/styles/units.js +46 -0
  424. package/dist/module/native/styles/units.js.map +1 -0
  425. package/dist/module/native/styles/variables.js +75 -0
  426. package/dist/module/native/styles/variables.js.map +1 -0
  427. package/dist/module/native-internal/README.md +11 -0
  428. package/dist/module/native-internal/index.js +6 -0
  429. package/dist/module/native-internal/index.js.map +1 -0
  430. package/dist/module/native-internal/root.js +30 -0
  431. package/dist/module/native-internal/root.js.map +1 -0
  432. package/dist/module/native-internal/style-collection.js +95 -0
  433. package/dist/module/native-internal/style-collection.js.map +1 -0
  434. package/dist/module/native-internal/variables.js +22 -0
  435. package/dist/module/native-internal/variables.js.map +1 -0
  436. package/dist/module/package.json +1 -0
  437. package/dist/module/runtime.js +4 -0
  438. package/dist/module/runtime.js.map +1 -0
  439. package/dist/module/runtime.native.js +4 -0
  440. package/dist/module/runtime.native.js.map +1 -0
  441. package/dist/module/runtime.types.js +4 -0
  442. package/dist/module/runtime.types.js.map +1 -0
  443. package/dist/module/utilities/dot-notation.types.js +2 -0
  444. package/dist/module/utilities/dot-notation.types.js.map +1 -0
  445. package/dist/module/utilities/index.js +6 -0
  446. package/dist/module/utilities/index.js.map +1 -0
  447. package/dist/module/utilities/specificity.js +39 -0
  448. package/dist/module/utilities/specificity.js.map +1 -0
  449. package/dist/module/utilities/style-descriptor.js +16 -0
  450. package/dist/module/utilities/style-descriptor.js.map +1 -0
  451. package/dist/module/web/api.js +79 -0
  452. package/dist/module/web/api.js.map +1 -0
  453. package/dist/module/web/assign-style.js +23 -0
  454. package/dist/module/web/assign-style.js.map +1 -0
  455. package/dist/module/web/index.js +6 -0
  456. package/dist/module/web/index.js.map +1 -0
  457. package/dist/module/web/metro.js +5 -0
  458. package/dist/module/web/metro.js.map +1 -0
  459. package/dist/typescript/commonjs/.config/eslint.config.d.mts +3 -0
  460. package/dist/typescript/commonjs/.config/eslint.config.d.mts.map +1 -0
  461. package/dist/typescript/commonjs/eslint.config.d.mts +2 -0
  462. package/dist/typescript/commonjs/eslint.config.d.mts.map +1 -0
  463. package/dist/typescript/commonjs/example/app.config.d.ts +4 -0
  464. package/dist/typescript/commonjs/example/app.config.d.ts.map +1 -0
  465. package/dist/typescript/commonjs/example/index.d.ts +2 -0
  466. package/dist/typescript/commonjs/example/index.d.ts.map +1 -0
  467. package/dist/typescript/commonjs/example/metro.config.d.ts +3 -0
  468. package/dist/typescript/commonjs/example/metro.config.d.ts.map +1 -0
  469. package/dist/typescript/commonjs/example/postcss.config.d.mts +7 -0
  470. package/dist/typescript/commonjs/example/postcss.config.d.mts.map +1 -0
  471. package/dist/typescript/commonjs/example/src/App.d.ts +3 -0
  472. package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -0
  473. package/dist/typescript/commonjs/package.json +1 -0
  474. package/dist/typescript/commonjs/src/babel/allowedModules.d.ts +2 -0
  475. package/dist/typescript/commonjs/src/babel/allowedModules.d.ts.map +1 -0
  476. package/dist/typescript/commonjs/src/babel/helpers.d.ts +13 -0
  477. package/dist/typescript/commonjs/src/babel/helpers.d.ts.map +1 -0
  478. package/dist/typescript/commonjs/src/babel/import-plugin.d.ts +6 -0
  479. package/dist/typescript/commonjs/src/babel/import-plugin.d.ts.map +1 -0
  480. package/dist/typescript/commonjs/src/babel/index.d.ts +4 -0
  481. package/dist/typescript/commonjs/src/babel/index.d.ts.map +1 -0
  482. package/dist/typescript/commonjs/src/babel/react-native-web.d.ts +8 -0
  483. package/dist/typescript/commonjs/src/babel/react-native-web.d.ts.map +1 -0
  484. package/dist/typescript/commonjs/src/babel/react-native.d.ts +8 -0
  485. package/dist/typescript/commonjs/src/babel/react-native.d.ts.map +1 -0
  486. package/dist/typescript/commonjs/src/compiler/atRules.d.ts +34 -0
  487. package/dist/typescript/commonjs/src/compiler/atRules.d.ts.map +1 -0
  488. package/dist/typescript/commonjs/src/compiler/compiler.d.ts +17 -0
  489. package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -0
  490. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +201 -0
  491. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -0
  492. package/dist/typescript/commonjs/src/compiler/container-query.d.ts +5 -0
  493. package/dist/typescript/commonjs/src/compiler/container-query.d.ts.map +1 -0
  494. package/dist/typescript/commonjs/src/compiler/declarations.d.ts +132 -0
  495. package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -0
  496. package/dist/typescript/commonjs/src/compiler/functions-web.d.ts +11 -0
  497. package/dist/typescript/commonjs/src/compiler/functions-web.d.ts.map +1 -0
  498. package/dist/typescript/commonjs/src/compiler/functions.d.ts +11 -0
  499. package/dist/typescript/commonjs/src/compiler/functions.d.ts.map +1 -0
  500. package/dist/typescript/commonjs/src/compiler/index.d.ts +7 -0
  501. package/dist/typescript/commonjs/src/compiler/index.d.ts.map +1 -0
  502. package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts +2 -0
  503. package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts.map +1 -0
  504. package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts +4 -0
  505. package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts.map +1 -0
  506. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts +7 -0
  507. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts.map +1 -0
  508. package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts +30 -0
  509. package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts.map +1 -0
  510. package/dist/typescript/commonjs/src/compiler/media-query.d.ts +7 -0
  511. package/dist/typescript/commonjs/src/compiler/media-query.d.ts.map +1 -0
  512. package/dist/typescript/commonjs/src/compiler/pseudo-elements.d.ts +4 -0
  513. package/dist/typescript/commonjs/src/compiler/pseudo-elements.d.ts.map +1 -0
  514. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts +24 -0
  515. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -0
  516. package/dist/typescript/commonjs/src/compiler/selectors.d.ts +24 -0
  517. package/dist/typescript/commonjs/src/compiler/selectors.d.ts.map +1 -0
  518. package/dist/typescript/commonjs/src/compiler/split-by-delimiter.d.ts +2 -0
  519. package/dist/typescript/commonjs/src/compiler/split-by-delimiter.d.ts.map +1 -0
  520. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +69 -0
  521. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -0
  522. package/dist/typescript/commonjs/src/compiler/supports.d.ts +3 -0
  523. package/dist/typescript/commonjs/src/compiler/supports.d.ts.map +1 -0
  524. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +4 -0
  525. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -0
  526. package/dist/typescript/commonjs/src/components/Button.d.ts +4 -0
  527. package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -0
  528. package/dist/typescript/commonjs/src/components/FlatList.d.ts +6 -0
  529. package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -0
  530. package/dist/typescript/commonjs/src/components/Image.d.ts +4 -0
  531. package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -0
  532. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts +4 -0
  533. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts.map +1 -0
  534. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts +4 -0
  535. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts.map +1 -0
  536. package/dist/typescript/commonjs/src/components/Pressable.d.ts +4 -0
  537. package/dist/typescript/commonjs/src/components/Pressable.d.ts.map +1 -0
  538. package/dist/typescript/commonjs/src/components/ScrollView.d.ts +4 -0
  539. package/dist/typescript/commonjs/src/components/ScrollView.d.ts.map +1 -0
  540. package/dist/typescript/commonjs/src/components/Switch.d.ts +4 -0
  541. package/dist/typescript/commonjs/src/components/Switch.d.ts.map +1 -0
  542. package/dist/typescript/commonjs/src/components/Text.d.ts +4 -0
  543. package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -0
  544. package/dist/typescript/commonjs/src/components/TextInput.d.ts +4 -0
  545. package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -0
  546. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts +4 -0
  547. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts.map +1 -0
  548. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts +4 -0
  549. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts.map +1 -0
  550. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts +4 -0
  551. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
  552. package/dist/typescript/commonjs/src/components/View.d.ts +4 -0
  553. package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -0
  554. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts +6 -0
  555. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts.map +1 -0
  556. package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts +5 -0
  557. package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts.map +1 -0
  558. package/dist/typescript/commonjs/src/components/index.d.cts +2 -0
  559. package/dist/typescript/commonjs/src/components/index.d.cts.map +1 -0
  560. package/dist/typescript/commonjs/src/components/index.d.ts +18 -0
  561. package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -0
  562. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.d.ts +2 -0
  563. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.d.ts.map +1 -0
  564. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts +4 -0
  565. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts.map +1 -0
  566. package/dist/typescript/commonjs/src/index.d.ts +2 -0
  567. package/dist/typescript/commonjs/src/index.d.ts.map +1 -0
  568. package/dist/typescript/commonjs/src/jest/index.d.ts +30 -0
  569. package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -0
  570. package/dist/typescript/commonjs/src/jest/setup.d.ts +1 -0
  571. package/dist/typescript/commonjs/src/jest/setup.d.ts.map +1 -0
  572. package/dist/typescript/commonjs/src/jest/setupAfterEnv.d.ts +1 -0
  573. package/dist/typescript/commonjs/src/jest/setupAfterEnv.d.ts.map +1 -0
  574. package/dist/typescript/commonjs/src/metro/index.d.ts +11 -0
  575. package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -0
  576. package/dist/typescript/commonjs/src/metro/injection-code.d.ts +13 -0
  577. package/dist/typescript/commonjs/src/metro/injection-code.d.ts.map +1 -0
  578. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts +6 -0
  579. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -0
  580. package/dist/typescript/commonjs/src/metro/override.d.ts +2 -0
  581. package/dist/typescript/commonjs/src/metro/override.d.ts.map +1 -0
  582. package/dist/typescript/commonjs/src/metro/picocolors.d.ts +27 -0
  583. package/dist/typescript/commonjs/src/metro/picocolors.d.ts.map +1 -0
  584. package/dist/typescript/commonjs/src/metro/resolver.d.ts +4 -0
  585. package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -0
  586. package/dist/typescript/commonjs/src/metro/stringify.d.ts +7 -0
  587. package/dist/typescript/commonjs/src/metro/stringify.d.ts.map +1 -0
  588. package/dist/typescript/commonjs/src/metro/typescript.d.ts +2 -0
  589. package/dist/typescript/commonjs/src/metro/typescript.d.ts.map +1 -0
  590. package/dist/typescript/commonjs/src/native/api.d.ts +26 -0
  591. package/dist/typescript/commonjs/src/native/api.d.ts.map +1 -0
  592. package/dist/typescript/commonjs/src/native/conditions/attributes.d.ts +4 -0
  593. package/dist/typescript/commonjs/src/native/conditions/attributes.d.ts.map +1 -0
  594. package/dist/typescript/commonjs/src/native/conditions/container-query.d.ts +7 -0
  595. package/dist/typescript/commonjs/src/native/conditions/container-query.d.ts.map +1 -0
  596. package/dist/typescript/commonjs/src/native/conditions/guards.d.ts +5 -0
  597. package/dist/typescript/commonjs/src/native/conditions/guards.d.ts.map +1 -0
  598. package/dist/typescript/commonjs/src/native/conditions/index.d.ts +6 -0
  599. package/dist/typescript/commonjs/src/native/conditions/index.d.ts.map +1 -0
  600. package/dist/typescript/commonjs/src/native/conditions/media-query.d.ts +4 -0
  601. package/dist/typescript/commonjs/src/native/conditions/media-query.d.ts.map +1 -0
  602. package/dist/typescript/commonjs/src/native/index.d.ts +4 -0
  603. package/dist/typescript/commonjs/src/native/index.d.ts.map +1 -0
  604. package/dist/typescript/commonjs/src/native/objects.d.ts +5 -0
  605. package/dist/typescript/commonjs/src/native/objects.d.ts.map +1 -0
  606. package/dist/typescript/commonjs/src/native/react/interaction.d.ts +6 -0
  607. package/dist/typescript/commonjs/src/native/react/interaction.d.ts.map +1 -0
  608. package/dist/typescript/commonjs/src/native/react/rules.d.ts +7 -0
  609. package/dist/typescript/commonjs/src/native/react/rules.d.ts.map +1 -0
  610. package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts +38 -0
  611. package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts.map +1 -0
  612. package/dist/typescript/commonjs/src/native/react/usePassthrough.d.ts +4 -0
  613. package/dist/typescript/commonjs/src/native/react/usePassthrough.d.ts.map +1 -0
  614. package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts +2 -0
  615. package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts.map +1 -0
  616. package/dist/typescript/commonjs/src/native/reactivity.d.ts +52 -0
  617. package/dist/typescript/commonjs/src/native/reactivity.d.ts.map +1 -0
  618. package/dist/typescript/commonjs/src/native/reanimated.d.ts +5 -0
  619. package/dist/typescript/commonjs/src/native/reanimated.d.ts.map +1 -0
  620. package/dist/typescript/commonjs/src/native/styles/calculate-props.d.ts +10 -0
  621. package/dist/typescript/commonjs/src/native/styles/calculate-props.d.ts.map +1 -0
  622. package/dist/typescript/commonjs/src/native/styles/constants.d.ts +3 -0
  623. package/dist/typescript/commonjs/src/native/styles/constants.d.ts.map +1 -0
  624. package/dist/typescript/commonjs/src/native/styles/defaults.d.ts +3 -0
  625. package/dist/typescript/commonjs/src/native/styles/defaults.d.ts.map +1 -0
  626. package/dist/typescript/commonjs/src/native/styles/functions/animation-timing.d.ts +4 -0
  627. package/dist/typescript/commonjs/src/native/styles/functions/animation-timing.d.ts.map +1 -0
  628. package/dist/typescript/commonjs/src/native/styles/functions/calc.d.ts +3 -0
  629. package/dist/typescript/commonjs/src/native/styles/functions/calc.d.ts.map +1 -0
  630. package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts +3 -0
  631. package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts.map +1 -0
  632. package/dist/typescript/commonjs/src/native/styles/functions/filters.d.ts +12 -0
  633. package/dist/typescript/commonjs/src/native/styles/functions/filters.d.ts.map +1 -0
  634. package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts +9 -0
  635. package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts.map +1 -0
  636. package/dist/typescript/commonjs/src/native/styles/functions/numeric-functions.d.ts +5 -0
  637. package/dist/typescript/commonjs/src/native/styles/functions/numeric-functions.d.ts.map +1 -0
  638. package/dist/typescript/commonjs/src/native/styles/functions/platform-functions.d.ts +8 -0
  639. package/dist/typescript/commonjs/src/native/styles/functions/platform-functions.d.ts.map +1 -0
  640. package/dist/typescript/commonjs/src/native/styles/functions/string-functions.d.ts +3 -0
  641. package/dist/typescript/commonjs/src/native/styles/functions/string-functions.d.ts.map +1 -0
  642. package/dist/typescript/commonjs/src/native/styles/functions/transform-functions.d.ts +5 -0
  643. package/dist/typescript/commonjs/src/native/styles/functions/transform-functions.d.ts.map +1 -0
  644. package/dist/typescript/commonjs/src/native/styles/index.d.ts +19 -0
  645. package/dist/typescript/commonjs/src/native/styles/index.d.ts.map +1 -0
  646. package/dist/typescript/commonjs/src/native/styles/line-height.d.ts +3 -0
  647. package/dist/typescript/commonjs/src/native/styles/line-height.d.ts.map +1 -0
  648. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts +18 -0
  649. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts.map +1 -0
  650. package/dist/typescript/commonjs/src/native/styles/shorthands/_handler.d.ts +11 -0
  651. package/dist/typescript/commonjs/src/native/styles/shorthands/_handler.d.ts.map +1 -0
  652. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts +5 -0
  653. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts.map +1 -0
  654. package/dist/typescript/commonjs/src/native/styles/shorthands/border.d.ts +2 -0
  655. package/dist/typescript/commonjs/src/native/styles/shorthands/border.d.ts.map +1 -0
  656. package/dist/typescript/commonjs/src/native/styles/shorthands/box-shadow.d.ts +3 -0
  657. package/dist/typescript/commonjs/src/native/styles/shorthands/box-shadow.d.ts.map +1 -0
  658. package/dist/typescript/commonjs/src/native/styles/shorthands/index.d.ts +6 -0
  659. package/dist/typescript/commonjs/src/native/styles/shorthands/index.d.ts.map +1 -0
  660. package/dist/typescript/commonjs/src/native/styles/shorthands/text-shadow.d.ts +2 -0
  661. package/dist/typescript/commonjs/src/native/styles/shorthands/text-shadow.d.ts.map +1 -0
  662. package/dist/typescript/commonjs/src/native/styles/shorthands/transform.d.ts +7 -0
  663. package/dist/typescript/commonjs/src/native/styles/shorthands/transform.d.ts.map +1 -0
  664. package/dist/typescript/commonjs/src/native/styles/units.d.ts +6 -0
  665. package/dist/typescript/commonjs/src/native/styles/units.d.ts.map +1 -0
  666. package/dist/typescript/commonjs/src/native/styles/variables.d.ts +5 -0
  667. package/dist/typescript/commonjs/src/native/styles/variables.d.ts.map +1 -0
  668. package/dist/typescript/commonjs/src/native-internal/index.d.ts +4 -0
  669. package/dist/typescript/commonjs/src/native-internal/index.d.ts.map +1 -0
  670. package/dist/typescript/commonjs/src/native-internal/root.d.ts +11 -0
  671. package/dist/typescript/commonjs/src/native-internal/root.d.ts.map +1 -0
  672. package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts +16 -0
  673. package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts.map +1 -0
  674. package/dist/typescript/commonjs/src/native-internal/variables.d.ts +8 -0
  675. package/dist/typescript/commonjs/src/native-internal/variables.d.ts.map +1 -0
  676. package/dist/typescript/commonjs/src/runtime.d.ts +2 -0
  677. package/dist/typescript/commonjs/src/runtime.d.ts.map +1 -0
  678. package/dist/typescript/commonjs/src/runtime.native.d.ts +2 -0
  679. package/dist/typescript/commonjs/src/runtime.native.d.ts.map +1 -0
  680. package/dist/typescript/commonjs/src/runtime.types.d.ts +49 -0
  681. package/dist/typescript/commonjs/src/runtime.types.d.ts.map +1 -0
  682. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts +23 -0
  683. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts.map +1 -0
  684. package/dist/typescript/commonjs/src/utilities/index.d.ts +4 -0
  685. package/dist/typescript/commonjs/src/utilities/index.d.ts.map +1 -0
  686. package/dist/typescript/commonjs/src/utilities/specificity.d.ts +13 -0
  687. package/dist/typescript/commonjs/src/utilities/specificity.d.ts.map +1 -0
  688. package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts +4 -0
  689. package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts.map +1 -0
  690. package/dist/typescript/commonjs/src/web/api.d.ts +16 -0
  691. package/dist/typescript/commonjs/src/web/api.d.ts.map +1 -0
  692. package/dist/typescript/commonjs/src/web/assign-style.d.ts +2 -0
  693. package/dist/typescript/commonjs/src/web/assign-style.d.ts.map +1 -0
  694. package/dist/typescript/commonjs/src/web/index.d.ts +4 -0
  695. package/dist/typescript/commonjs/src/web/index.d.ts.map +1 -0
  696. package/dist/typescript/commonjs/src/web/metro.d.ts +2 -0
  697. package/dist/typescript/commonjs/src/web/metro.d.ts.map +1 -0
  698. package/dist/typescript/module/.config/eslint.config.d.mts +3 -0
  699. package/dist/typescript/module/.config/eslint.config.d.mts.map +1 -0
  700. package/dist/typescript/module/eslint.config.d.mts +2 -0
  701. package/dist/typescript/module/eslint.config.d.mts.map +1 -0
  702. package/dist/typescript/module/example/app.config.d.ts +4 -0
  703. package/dist/typescript/module/example/app.config.d.ts.map +1 -0
  704. package/dist/typescript/module/example/index.d.ts +2 -0
  705. package/dist/typescript/module/example/index.d.ts.map +1 -0
  706. package/dist/typescript/module/example/metro.config.d.ts +3 -0
  707. package/dist/typescript/module/example/metro.config.d.ts.map +1 -0
  708. package/dist/typescript/module/example/postcss.config.d.mts +7 -0
  709. package/dist/typescript/module/example/postcss.config.d.mts.map +1 -0
  710. package/dist/typescript/module/example/src/App.d.ts +3 -0
  711. package/dist/typescript/module/example/src/App.d.ts.map +1 -0
  712. package/dist/typescript/module/package.json +1 -0
  713. package/dist/typescript/module/src/babel/allowedModules.d.ts +2 -0
  714. package/dist/typescript/module/src/babel/allowedModules.d.ts.map +1 -0
  715. package/dist/typescript/module/src/babel/helpers.d.ts +13 -0
  716. package/dist/typescript/module/src/babel/helpers.d.ts.map +1 -0
  717. package/dist/typescript/module/src/babel/import-plugin.d.ts +6 -0
  718. package/dist/typescript/module/src/babel/import-plugin.d.ts.map +1 -0
  719. package/dist/typescript/module/src/babel/index.d.ts +4 -0
  720. package/dist/typescript/module/src/babel/index.d.ts.map +1 -0
  721. package/dist/typescript/module/src/babel/react-native-web.d.ts +8 -0
  722. package/dist/typescript/module/src/babel/react-native-web.d.ts.map +1 -0
  723. package/dist/typescript/module/src/babel/react-native.d.ts +8 -0
  724. package/dist/typescript/module/src/babel/react-native.d.ts.map +1 -0
  725. package/dist/typescript/module/src/compiler/atRules.d.ts +34 -0
  726. package/dist/typescript/module/src/compiler/atRules.d.ts.map +1 -0
  727. package/dist/typescript/module/src/compiler/compiler.d.ts +17 -0
  728. package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -0
  729. package/dist/typescript/module/src/compiler/compiler.types.d.ts +201 -0
  730. package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -0
  731. package/dist/typescript/module/src/compiler/container-query.d.ts +5 -0
  732. package/dist/typescript/module/src/compiler/container-query.d.ts.map +1 -0
  733. package/dist/typescript/module/src/compiler/declarations.d.ts +132 -0
  734. package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -0
  735. package/dist/typescript/module/src/compiler/functions-web.d.ts +11 -0
  736. package/dist/typescript/module/src/compiler/functions-web.d.ts.map +1 -0
  737. package/dist/typescript/module/src/compiler/functions.d.ts +11 -0
  738. package/dist/typescript/module/src/compiler/functions.d.ts.map +1 -0
  739. package/dist/typescript/module/src/compiler/index.d.ts +7 -0
  740. package/dist/typescript/module/src/compiler/index.d.ts.map +1 -0
  741. package/dist/typescript/module/src/compiler/inheritance.test.d.ts +2 -0
  742. package/dist/typescript/module/src/compiler/inheritance.test.d.ts.map +1 -0
  743. package/dist/typescript/module/src/compiler/inline-variables.d.ts +4 -0
  744. package/dist/typescript/module/src/compiler/inline-variables.d.ts.map +1 -0
  745. package/dist/typescript/module/src/compiler/keyframes.d.ts +7 -0
  746. package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -0
  747. package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts +30 -0
  748. package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts.map +1 -0
  749. package/dist/typescript/module/src/compiler/media-query.d.ts +7 -0
  750. package/dist/typescript/module/src/compiler/media-query.d.ts.map +1 -0
  751. package/dist/typescript/module/src/compiler/pseudo-elements.d.ts +4 -0
  752. package/dist/typescript/module/src/compiler/pseudo-elements.d.ts.map +1 -0
  753. package/dist/typescript/module/src/compiler/selector-builder.d.ts +24 -0
  754. package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -0
  755. package/dist/typescript/module/src/compiler/selectors.d.ts +24 -0
  756. package/dist/typescript/module/src/compiler/selectors.d.ts.map +1 -0
  757. package/dist/typescript/module/src/compiler/split-by-delimiter.d.ts +2 -0
  758. package/dist/typescript/module/src/compiler/split-by-delimiter.d.ts.map +1 -0
  759. package/dist/typescript/module/src/compiler/stylesheet.d.ts +69 -0
  760. package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -0
  761. package/dist/typescript/module/src/compiler/supports.d.ts +3 -0
  762. package/dist/typescript/module/src/compiler/supports.d.ts.map +1 -0
  763. package/dist/typescript/module/src/components/ActivityIndicator.d.ts +4 -0
  764. package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -0
  765. package/dist/typescript/module/src/components/Button.d.ts +4 -0
  766. package/dist/typescript/module/src/components/Button.d.ts.map +1 -0
  767. package/dist/typescript/module/src/components/FlatList.d.ts +6 -0
  768. package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -0
  769. package/dist/typescript/module/src/components/Image.d.ts +4 -0
  770. package/dist/typescript/module/src/components/Image.d.ts.map +1 -0
  771. package/dist/typescript/module/src/components/ImageBackground.d.ts +4 -0
  772. package/dist/typescript/module/src/components/ImageBackground.d.ts.map +1 -0
  773. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts +4 -0
  774. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts.map +1 -0
  775. package/dist/typescript/module/src/components/Pressable.d.ts +4 -0
  776. package/dist/typescript/module/src/components/Pressable.d.ts.map +1 -0
  777. package/dist/typescript/module/src/components/ScrollView.d.ts +4 -0
  778. package/dist/typescript/module/src/components/ScrollView.d.ts.map +1 -0
  779. package/dist/typescript/module/src/components/Switch.d.ts +4 -0
  780. package/dist/typescript/module/src/components/Switch.d.ts.map +1 -0
  781. package/dist/typescript/module/src/components/Text.d.ts +4 -0
  782. package/dist/typescript/module/src/components/Text.d.ts.map +1 -0
  783. package/dist/typescript/module/src/components/TextInput.d.ts +4 -0
  784. package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -0
  785. package/dist/typescript/module/src/components/TouchableHighlight.d.ts +4 -0
  786. package/dist/typescript/module/src/components/TouchableHighlight.d.ts.map +1 -0
  787. package/dist/typescript/module/src/components/TouchableOpacity.d.ts +4 -0
  788. package/dist/typescript/module/src/components/TouchableOpacity.d.ts.map +1 -0
  789. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts +4 -0
  790. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
  791. package/dist/typescript/module/src/components/View.d.ts +4 -0
  792. package/dist/typescript/module/src/components/View.d.ts.map +1 -0
  793. package/dist/typescript/module/src/components/VirtualizedList.d.ts +6 -0
  794. package/dist/typescript/module/src/components/VirtualizedList.d.ts.map +1 -0
  795. package/dist/typescript/module/src/components/copyComponentProperties.d.ts +5 -0
  796. package/dist/typescript/module/src/components/copyComponentProperties.d.ts.map +1 -0
  797. package/dist/typescript/module/src/components/index.d.cts +2 -0
  798. package/dist/typescript/module/src/components/index.d.cts.map +1 -0
  799. package/dist/typescript/module/src/components/index.d.ts +18 -0
  800. package/dist/typescript/module/src/components/index.d.ts.map +1 -0
  801. package/dist/typescript/module/src/components/react-native-safe-area-context.d.ts +2 -0
  802. package/dist/typescript/module/src/components/react-native-safe-area-context.d.ts.map +1 -0
  803. package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts +4 -0
  804. package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts.map +1 -0
  805. package/dist/typescript/module/src/index.d.ts +2 -0
  806. package/dist/typescript/module/src/index.d.ts.map +1 -0
  807. package/dist/typescript/module/src/jest/index.d.ts +30 -0
  808. package/dist/typescript/module/src/jest/index.d.ts.map +1 -0
  809. package/dist/typescript/module/src/jest/setup.d.ts +1 -0
  810. package/dist/typescript/module/src/jest/setup.d.ts.map +1 -0
  811. package/dist/typescript/module/src/jest/setupAfterEnv.d.ts +1 -0
  812. package/dist/typescript/module/src/jest/setupAfterEnv.d.ts.map +1 -0
  813. package/dist/typescript/module/src/metro/index.d.ts +11 -0
  814. package/dist/typescript/module/src/metro/index.d.ts.map +1 -0
  815. package/dist/typescript/module/src/metro/injection-code.d.ts +13 -0
  816. package/dist/typescript/module/src/metro/injection-code.d.ts.map +1 -0
  817. package/dist/typescript/module/src/metro/metro-transformer.d.ts +6 -0
  818. package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -0
  819. package/dist/typescript/module/src/metro/override.d.ts +2 -0
  820. package/dist/typescript/module/src/metro/override.d.ts.map +1 -0
  821. package/dist/typescript/module/src/metro/picocolors.d.ts +27 -0
  822. package/dist/typescript/module/src/metro/picocolors.d.ts.map +1 -0
  823. package/dist/typescript/module/src/metro/resolver.d.ts +4 -0
  824. package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -0
  825. package/dist/typescript/module/src/metro/stringify.d.ts +7 -0
  826. package/dist/typescript/module/src/metro/stringify.d.ts.map +1 -0
  827. package/dist/typescript/module/src/metro/typescript.d.ts +2 -0
  828. package/dist/typescript/module/src/metro/typescript.d.ts.map +1 -0
  829. package/dist/typescript/module/src/native/api.d.ts +26 -0
  830. package/dist/typescript/module/src/native/api.d.ts.map +1 -0
  831. package/dist/typescript/module/src/native/conditions/attributes.d.ts +4 -0
  832. package/dist/typescript/module/src/native/conditions/attributes.d.ts.map +1 -0
  833. package/dist/typescript/module/src/native/conditions/container-query.d.ts +7 -0
  834. package/dist/typescript/module/src/native/conditions/container-query.d.ts.map +1 -0
  835. package/dist/typescript/module/src/native/conditions/guards.d.ts +5 -0
  836. package/dist/typescript/module/src/native/conditions/guards.d.ts.map +1 -0
  837. package/dist/typescript/module/src/native/conditions/index.d.ts +6 -0
  838. package/dist/typescript/module/src/native/conditions/index.d.ts.map +1 -0
  839. package/dist/typescript/module/src/native/conditions/media-query.d.ts +4 -0
  840. package/dist/typescript/module/src/native/conditions/media-query.d.ts.map +1 -0
  841. package/dist/typescript/module/src/native/index.d.ts +4 -0
  842. package/dist/typescript/module/src/native/index.d.ts.map +1 -0
  843. package/dist/typescript/module/src/native/objects.d.ts +5 -0
  844. package/dist/typescript/module/src/native/objects.d.ts.map +1 -0
  845. package/dist/typescript/module/src/native/react/interaction.d.ts +6 -0
  846. package/dist/typescript/module/src/native/react/interaction.d.ts.map +1 -0
  847. package/dist/typescript/module/src/native/react/rules.d.ts +7 -0
  848. package/dist/typescript/module/src/native/react/rules.d.ts.map +1 -0
  849. package/dist/typescript/module/src/native/react/useNativeCss.d.ts +38 -0
  850. package/dist/typescript/module/src/native/react/useNativeCss.d.ts.map +1 -0
  851. package/dist/typescript/module/src/native/react/usePassthrough.d.ts +4 -0
  852. package/dist/typescript/module/src/native/react/usePassthrough.d.ts.map +1 -0
  853. package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts +2 -0
  854. package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts.map +1 -0
  855. package/dist/typescript/module/src/native/reactivity.d.ts +52 -0
  856. package/dist/typescript/module/src/native/reactivity.d.ts.map +1 -0
  857. package/dist/typescript/module/src/native/reanimated.d.ts +5 -0
  858. package/dist/typescript/module/src/native/reanimated.d.ts.map +1 -0
  859. package/dist/typescript/module/src/native/styles/calculate-props.d.ts +10 -0
  860. package/dist/typescript/module/src/native/styles/calculate-props.d.ts.map +1 -0
  861. package/dist/typescript/module/src/native/styles/constants.d.ts +3 -0
  862. package/dist/typescript/module/src/native/styles/constants.d.ts.map +1 -0
  863. package/dist/typescript/module/src/native/styles/defaults.d.ts +3 -0
  864. package/dist/typescript/module/src/native/styles/defaults.d.ts.map +1 -0
  865. package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts +4 -0
  866. package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts.map +1 -0
  867. package/dist/typescript/module/src/native/styles/functions/calc.d.ts +3 -0
  868. package/dist/typescript/module/src/native/styles/functions/calc.d.ts.map +1 -0
  869. package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts +3 -0
  870. package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts.map +1 -0
  871. package/dist/typescript/module/src/native/styles/functions/filters.d.ts +12 -0
  872. package/dist/typescript/module/src/native/styles/functions/filters.d.ts.map +1 -0
  873. package/dist/typescript/module/src/native/styles/functions/index.d.ts +9 -0
  874. package/dist/typescript/module/src/native/styles/functions/index.d.ts.map +1 -0
  875. package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts +5 -0
  876. package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts.map +1 -0
  877. package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts +8 -0
  878. package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts.map +1 -0
  879. package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts +3 -0
  880. package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts.map +1 -0
  881. package/dist/typescript/module/src/native/styles/functions/transform-functions.d.ts +5 -0
  882. package/dist/typescript/module/src/native/styles/functions/transform-functions.d.ts.map +1 -0
  883. package/dist/typescript/module/src/native/styles/index.d.ts +19 -0
  884. package/dist/typescript/module/src/native/styles/index.d.ts.map +1 -0
  885. package/dist/typescript/module/src/native/styles/line-height.d.ts +3 -0
  886. package/dist/typescript/module/src/native/styles/line-height.d.ts.map +1 -0
  887. package/dist/typescript/module/src/native/styles/resolve.d.ts +18 -0
  888. package/dist/typescript/module/src/native/styles/resolve.d.ts.map +1 -0
  889. package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts +11 -0
  890. package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts.map +1 -0
  891. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts +5 -0
  892. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts.map +1 -0
  893. package/dist/typescript/module/src/native/styles/shorthands/border.d.ts +2 -0
  894. package/dist/typescript/module/src/native/styles/shorthands/border.d.ts.map +1 -0
  895. package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts +3 -0
  896. package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts.map +1 -0
  897. package/dist/typescript/module/src/native/styles/shorthands/index.d.ts +6 -0
  898. package/dist/typescript/module/src/native/styles/shorthands/index.d.ts.map +1 -0
  899. package/dist/typescript/module/src/native/styles/shorthands/text-shadow.d.ts +2 -0
  900. package/dist/typescript/module/src/native/styles/shorthands/text-shadow.d.ts.map +1 -0
  901. package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts +7 -0
  902. package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts.map +1 -0
  903. package/dist/typescript/module/src/native/styles/units.d.ts +6 -0
  904. package/dist/typescript/module/src/native/styles/units.d.ts.map +1 -0
  905. package/dist/typescript/module/src/native/styles/variables.d.ts +5 -0
  906. package/dist/typescript/module/src/native/styles/variables.d.ts.map +1 -0
  907. package/dist/typescript/module/src/native-internal/index.d.ts +4 -0
  908. package/dist/typescript/module/src/native-internal/index.d.ts.map +1 -0
  909. package/dist/typescript/module/src/native-internal/root.d.ts +11 -0
  910. package/dist/typescript/module/src/native-internal/root.d.ts.map +1 -0
  911. package/dist/typescript/module/src/native-internal/style-collection.d.ts +16 -0
  912. package/dist/typescript/module/src/native-internal/style-collection.d.ts.map +1 -0
  913. package/dist/typescript/module/src/native-internal/variables.d.ts +8 -0
  914. package/dist/typescript/module/src/native-internal/variables.d.ts.map +1 -0
  915. package/dist/typescript/module/src/runtime.d.ts +2 -0
  916. package/dist/typescript/module/src/runtime.d.ts.map +1 -0
  917. package/dist/typescript/module/src/runtime.native.d.ts +2 -0
  918. package/dist/typescript/module/src/runtime.native.d.ts.map +1 -0
  919. package/dist/typescript/module/src/runtime.types.d.ts +49 -0
  920. package/dist/typescript/module/src/runtime.types.d.ts.map +1 -0
  921. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts +23 -0
  922. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts.map +1 -0
  923. package/dist/typescript/module/src/utilities/index.d.ts +4 -0
  924. package/dist/typescript/module/src/utilities/index.d.ts.map +1 -0
  925. package/dist/typescript/module/src/utilities/specificity.d.ts +13 -0
  926. package/dist/typescript/module/src/utilities/specificity.d.ts.map +1 -0
  927. package/dist/typescript/module/src/utilities/style-descriptor.d.ts +4 -0
  928. package/dist/typescript/module/src/utilities/style-descriptor.d.ts.map +1 -0
  929. package/dist/typescript/module/src/web/api.d.ts +16 -0
  930. package/dist/typescript/module/src/web/api.d.ts.map +1 -0
  931. package/dist/typescript/module/src/web/assign-style.d.ts +2 -0
  932. package/dist/typescript/module/src/web/assign-style.d.ts.map +1 -0
  933. package/dist/typescript/module/src/web/index.d.ts +4 -0
  934. package/dist/typescript/module/src/web/index.d.ts.map +1 -0
  935. package/dist/typescript/module/src/web/metro.d.ts +2 -0
  936. package/dist/typescript/module/src/web/metro.d.ts.map +1 -0
  937. package/package.json +304 -0
  938. package/src/babel/allowedModules.ts +24 -0
  939. package/src/babel/helpers.ts +40 -0
  940. package/src/babel/import-plugin.ts +176 -0
  941. package/src/babel/index.ts +9 -0
  942. package/src/babel/react-native-web.ts +226 -0
  943. package/src/babel/react-native.ts +226 -0
  944. package/src/compiler/atRules.ts +149 -0
  945. package/src/compiler/compiler.ts +379 -0
  946. package/src/compiler/compiler.types.ts +275 -0
  947. package/src/compiler/container-query.ts +97 -0
  948. package/src/compiler/declarations.ts +3444 -0
  949. package/src/compiler/functions-web.ts +44 -0
  950. package/src/compiler/functions.ts +64 -0
  951. package/src/compiler/index.ts +7 -0
  952. package/src/compiler/inheritance.test.ts +121 -0
  953. package/src/compiler/inline-variables.ts +209 -0
  954. package/src/compiler/keyframes.ts +86 -0
  955. package/src/compiler/lightningcss-loader.ts +59 -0
  956. package/src/compiler/media-query.ts +251 -0
  957. package/src/compiler/pseudo-elements.ts +54 -0
  958. package/src/compiler/selector-builder.ts +592 -0
  959. package/src/compiler/selectors.ts +505 -0
  960. package/src/compiler/split-by-delimiter.ts +19 -0
  961. package/src/compiler/stylesheet.ts +680 -0
  962. package/src/compiler/supports.ts +28 -0
  963. package/src/components/ActivityIndicator.tsx +30 -0
  964. package/src/components/Button.tsx +27 -0
  965. package/src/components/FlatList.tsx +31 -0
  966. package/src/components/Image.tsx +22 -0
  967. package/src/components/ImageBackground.tsx +30 -0
  968. package/src/components/KeyboardAvoidingView.tsx +27 -0
  969. package/src/components/Pressable.tsx +22 -0
  970. package/src/components/ScrollView.tsx +23 -0
  971. package/src/components/Switch.tsx +22 -0
  972. package/src/components/Text.tsx +22 -0
  973. package/src/components/TextInput.tsx +27 -0
  974. package/src/components/TouchableHighlight.tsx +25 -0
  975. package/src/components/TouchableOpacity.tsx +25 -0
  976. package/src/components/TouchableWithoutFeedback.tsx +25 -0
  977. package/src/components/View.tsx +22 -0
  978. package/src/components/VirtualizedList.tsx +37 -0
  979. package/src/components/copyComponentProperties.ts +21 -0
  980. package/src/components/index.cts +263 -0
  981. package/src/components/index.ts +17 -0
  982. package/src/components/react-native-safe-area-context.native.tsx +44 -0
  983. package/src/components/react-native-safe-area-context.tsx +1 -0
  984. package/src/index.ts +1 -0
  985. package/src/jest/expect.d.ts +1 -0
  986. package/src/jest/index.ts +75 -0
  987. package/src/jest/setup.ts +1 -0
  988. package/src/jest/setupAfterEnv.ts +13 -0
  989. package/src/metro/index.ts +83 -0
  990. package/src/metro/injection-code.ts +34 -0
  991. package/src/metro/metro-transformer.ts +62 -0
  992. package/src/metro/override.ts +1 -0
  993. package/src/metro/picocolors.ts +77 -0
  994. package/src/metro/resolver.ts +98 -0
  995. package/src/metro/stringify.ts +59 -0
  996. package/src/metro/typescript.ts +73 -0
  997. package/src/native/api.tsx +124 -0
  998. package/src/native/conditions/attributes.ts +54 -0
  999. package/src/native/conditions/container-query.ts +162 -0
  1000. package/src/native/conditions/guards.ts +44 -0
  1001. package/src/native/conditions/index.ts +55 -0
  1002. package/src/native/conditions/media-query.ts +99 -0
  1003. package/src/native/index.ts +3 -0
  1004. package/src/native/objects.ts +109 -0
  1005. package/src/native/react/interaction.ts +90 -0
  1006. package/src/native/react/rules.ts +336 -0
  1007. package/src/native/react/useNativeCss.ts +211 -0
  1008. package/src/native/react/usePassthrough.ts +51 -0
  1009. package/src/native/react-native-css-metro-override.ts +36 -0
  1010. package/src/native/reactivity.ts +248 -0
  1011. package/src/native/reanimated.ts +22 -0
  1012. package/src/native/styles/calculate-props.ts +217 -0
  1013. package/src/native/styles/constants.ts +2 -0
  1014. package/src/native/styles/defaults.ts +79 -0
  1015. package/src/native/styles/functions/animation-timing.ts +44 -0
  1016. package/src/native/styles/functions/calc.ts +121 -0
  1017. package/src/native/styles/functions/color-mix.ts +68 -0
  1018. package/src/native/styles/functions/filters.ts +99 -0
  1019. package/src/native/styles/functions/index.ts +8 -0
  1020. package/src/native/styles/functions/numeric-functions.ts +38 -0
  1021. package/src/native/styles/functions/platform-functions.ts +50 -0
  1022. package/src/native/styles/functions/string-functions.ts +22 -0
  1023. package/src/native/styles/functions/transform-functions.ts +85 -0
  1024. package/src/native/styles/index.ts +474 -0
  1025. package/src/native/styles/line-height.ts +25 -0
  1026. package/src/native/styles/resolve.ts +164 -0
  1027. package/src/native/styles/shorthands/_handler.ts +122 -0
  1028. package/src/native/styles/shorthands/animation.ts +131 -0
  1029. package/src/native/styles/shorthands/border.ts +10 -0
  1030. package/src/native/styles/shorthands/box-shadow.ts +71 -0
  1031. package/src/native/styles/shorthands/index.ts +5 -0
  1032. package/src/native/styles/shorthands/text-shadow.ts +17 -0
  1033. package/src/native/styles/shorthands/transform.ts +23 -0
  1034. package/src/native/styles/units.ts +62 -0
  1035. package/src/native/styles/variables.ts +88 -0
  1036. package/src/native-internal/README.md +11 -0
  1037. package/src/native-internal/index.ts +3 -0
  1038. package/src/native-internal/root.ts +44 -0
  1039. package/src/native-internal/style-collection.ts +148 -0
  1040. package/src/native-internal/variables.tsx +36 -0
  1041. package/src/runtime.native.ts +1 -0
  1042. package/src/runtime.ts +1 -0
  1043. package/src/runtime.types.ts +150 -0
  1044. package/src/utilities/dot-notation.types.ts +125 -0
  1045. package/src/utilities/index.ts +3 -0
  1046. package/src/utilities/specificity.ts +45 -0
  1047. package/src/utilities/style-descriptor.ts +24 -0
  1048. package/src/web/api.tsx +120 -0
  1049. package/src/web/assign-style.ts +26 -0
  1050. package/src/web/index.ts +5 -0
  1051. package/src/web/metro.ts +2 -0
  1052. package/types.d.ts +73 -0
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ import { Appearance, Dimensions } from "react-native";
4
+ import { inspect } from "node:util";
5
+ import { compile } from "react-native-css/compiler";
6
+ import { StyleCollection } from "react-native-css/native";
7
+ import { colorScheme, dimensions } from "../native/reactivity.js";
8
+ export const testID = "react-native-css";
9
+ beforeEach(() => {
10
+ StyleCollection.styles.clear();
11
+ dimensions.set(Dimensions.get("window"));
12
+ Appearance.setColorScheme(null);
13
+ colorScheme.set(null);
14
+ });
15
+ const debugDefault = Boolean(process.env.REACT_NATIVE_CSS_TEST_DEBUG && typeof process.env.NODE_OPTIONS === "string" && process.env.NODE_OPTIONS.includes("--inspect"));
16
+ export function registerCSS(css, options = {}) {
17
+ const {
18
+ debug = debugDefault
19
+ } = options;
20
+ const compiled = compileWithAutoDebug(css, options);
21
+ if (debug) {
22
+ console.log(`Compiled:\n---\n${inspect({
23
+ stylesheet: compiled.stylesheet(),
24
+ warnings: compiled.warnings()
25
+ }, {
26
+ depth: null,
27
+ colors: true,
28
+ compact: false
29
+ })}`);
30
+ }
31
+ StyleCollection.inject(compiled.stylesheet());
32
+ return compiled;
33
+ }
34
+ export function compileWithAutoDebug(css, {
35
+ debug = debugDefault,
36
+ ...options
37
+ } = {}) {
38
+ const logger = debug ? text => {
39
+ // Just log the rules
40
+ if (text.startsWith("[") && debug === "verbose") {
41
+ console.log(`Rules:\n---\n${text}`);
42
+ }
43
+ } : undefined;
44
+ return compile(css, {
45
+ ...options,
46
+ logger
47
+ });
48
+ }
49
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Appearance","Dimensions","inspect","compile","StyleCollection","colorScheme","dimensions","testID","beforeEach","styles","clear","set","get","setColorScheme","debugDefault","Boolean","process","env","REACT_NATIVE_CSS_TEST_DEBUG","NODE_OPTIONS","includes","registerCSS","css","options","debug","compiled","compileWithAutoDebug","console","log","stylesheet","warnings","depth","colors","compact","inject","logger","text","startsWith","undefined"],"sourceRoot":"../../../src","sources":["jest/index.ts"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,UAAU,QAAQ,cAAc;AAErD,SAASC,OAAO,QAAQ,WAAW;AAEnC,SAASC,OAAO,QAA8B,2BAA2B;AACzE,SAASC,eAAe,QAAQ,yBAAyB;AAEzD,SAASC,WAAW,EAAEC,UAAU,QAAQ,yBAAsB;AAW9D,OAAO,MAAMC,M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,KAAK,GACfY,IAAY,IAAK;IAChB;IACA,IAAIA,IAAI,CAACC,UAAU,CAAC,GAAG,CAAC,IAAIb,KAAK,KAAK,SAAS,EAAE;MAC/CG,OAAO,CAACC,GAAG,CAAC,gBAAgBQ,IAAI,EAAE,CAAC;IACrC;EACF,CAAC,GACDE,SAAS;EAEb,OAAOnC,OAAO,CAACmB,GAAG,EAAE;IAAE,GAAGC,OAAO;IAAEY;EAAO,CAAC,CAAC;AAC7C","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ // require("react-native-reanimated").setUpTests();
2
+ "use strict";
3
+ //# sourceMappingURL=setup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["jest/setup.ts"],"mappings":"AAAA;AAAA","ignoreList":[]}
@@ -0,0 +1,15 @@
1
+ // import matchers from "expect/build/matchers";
2
+
3
+ // // I do not know why this is needed
4
+ // matchers.customTesters = [];
5
+
6
+ // expect.extend({
7
+ // toHaveStyle(received, style) {
8
+ // const receivedStyle = received?.props?.style
9
+ // ? Object.fromEntries(Object.entries(received?.props?.style))
10
+ // : undefined;
11
+ // return matchers.toStrictEqual(receivedStyle, style);
12
+ // },
13
+ // });
14
+ "use strict";
15
+ //# sourceMappingURL=setupAfterEnv.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["jest/setupAfterEnv.ts"],"mappings":"AAAA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA","ignoreList":[]}
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+
3
+ /* eslint-disable */
4
+ import { versions } from "node:process";
5
+ import { nativeResolver, webResolver } from "./resolver.js";
6
+ import { setupTypeScript } from "./typescript.js";
7
+ const metroOverrideResolution = {
8
+ type: "sourceFile",
9
+ filePath: require.resolve("./override")
10
+ };
11
+ export function withReactNativeCSS(config, options) {
12
+ if (typeof config === "function") {
13
+ return async () => {
14
+ return withReactNativeCSS(await config(), options);
15
+ };
16
+ }
17
+ if (Number(versions.node.split(".")[0]) < 20) {
18
+ throw new Error("react-native-css only supports NodeJS >20");
19
+ }
20
+ const {
21
+ disableTypeScriptGeneration,
22
+ typescriptEnvPath,
23
+ globalClassNamePolyfill = false
24
+ } = options || {};
25
+ if (disableTypeScriptGeneration !== true) {
26
+ setupTypeScript(typescriptEnvPath);
27
+ }
28
+ return {
29
+ ...config,
30
+ transformerPath: require.resolve("./metro-transformer"),
31
+ transformer: {
32
+ ...config.transformer,
33
+ reactNativeCSS: options
34
+ },
35
+ resolver: {
36
+ ...config.resolver,
37
+ sourceExts: [...(config?.resolver?.sourceExts || []), "css"],
38
+ resolveRequest: (context, moduleName, platform) => {
39
+ if (moduleName.includes("react-native-css-metro-override")) {
40
+ return metroOverrideResolution;
41
+ }
42
+ const parentResolver = config.resolver?.resolveRequest ?? context.resolveRequest;
43
+
44
+ // Don't hijack the resolution of react-native imports
45
+ if (!globalClassNamePolyfill) {
46
+ return parentResolver(context, moduleName, platform);
47
+ }
48
+ const resolver = platform === "web" ? webResolver : nativeResolver;
49
+ const resolved = resolver(parentResolver, context, moduleName, platform);
50
+ return resolved;
51
+ }
52
+ }
53
+ };
54
+ }
55
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["versions","nativeResolver","webResolver","setupTypeScript","metroOverrideResolution","type","filePath","require","resolve","withReactNativeCSS","config","options","Number","node","split","Error","disableTypeScriptGeneration","typescriptEnvPath","globalClassNamePolyfill","transformerPath","transformer","reactNativeCSS","resolver","sourceExts","resolveRequest","context","moduleName","platform","includes","parentResolver","resolved"],"sourceRoot":"../../../src","sources":["metro/index.ts"],"mappings":";;AAAA;AACA,SAASA,QAAQ,QAAQ,cAAc;AAKvC,SAASC,cAAc,EAAEC,WAAW,QAAQ,eAAY;AACxD,SAASC,eAAe,QAAQ,iBAAc;AAY9C,MAAMC,uBAAuB,GAAG;EAC9BC,IAAI,EAAE,YAAY;EAClBC,QAAQ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UAC5B,OAAOW,cAAc,CAACJ,OAAO,EAAEC,UAAU,EAAEC,QAAQ,CAAC;QACtD;QAEA,MAAML,QAAQ,GAAGK,QAAQ,KAAK,KAAK,GAAGzB,WAAW,GAAGD,cAAc;QAClE,MAAM6B,QAAQ,GAAGR,QAAQ,CACvBO,cAAc,EACdJ,OAAO,EACPC,UAAU,EACVC,QACF,CAAC;QAED,OAAOG,QAAQ;MACjB;IACF;EACF,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * This is a hack around Metro's handling of bundles.
5
+ * When a component is inside a lazy() barrier, it is inside a different JS bundle.
6
+ * So when it updates, it only updates its local bundle, not the global one which contains the CSS files.
7
+ *
8
+ * This means that the CSS file will not be re-evaluated when a component in a different bundle updates,
9
+ * breaking tools like Tailwind CSS
10
+ *
11
+ * To fix this, we force our code to always import the CSS files, so now the CSS files are in every bundle.
12
+ */
13
+ export function getWebInjectionCode(filePaths) {
14
+ const importStatements = filePaths.map(filePath => `import "${filePath}";`).join("\n");
15
+ return Buffer.from(importStatements);
16
+ }
17
+ export function getNativeInjectionCode(cssFilePaths, values) {
18
+ const importStatements = cssFilePaths.map(filePath => `import "${filePath}";`).join("\n");
19
+ const contents = values.map(value => `StyleCollection.inject(${JSON.stringify(value)});`).join("\n");
20
+ return Buffer.from(`import { StyleCollection } from "react-native-css/native-internal";\n${importStatements}\n${contents};export {};`);
21
+ }
22
+ //# sourceMappingURL=injection-code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getWebInjectionCode","filePaths","importStatements","map","filePath","join","Buffer","from","getNativeInjectionCode","cssFilePaths","values","contents","value","JSON","stringify"],"sourceRoot":"../../../src","sources":["metro/injection-code.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,mBAAmBA,CAACC,SAAmB,EAAE;EACvD,MAAMC,gBAAgB,GAAGD,SAAS,CAC/BE,GAAG,CAAEC,QAAQ,IAAK,WAAWA,QAAQ,IAAI,CAAC,CAC1CC,IAAI,CAAC,IAAI,CAAC;EAEb,OAAOC,MAAM,CAACC,IAAI,CAACL,gBAAgB,CAAC;AACtC;AAEA,OAAO,SAASM,sBAAsBA,CACpCC,YAAsB,EACtBC,MAAiB,EACjB;EACA,MAAMR,gBAAgB,GAAGO,YAAY,CAClCN,GAAG,CAAEC,QAAQ,IAAK,WAAWA,QAAQ,IAAI,CAAC,CAC1CC,IAAI,CAAC,IAAI,CAAC;EAEb,MAAMM,QAAQ,GAAGD,MAAM,CACpBP,GAAG,CAAES,KAAK,IAAK,0BAA0BC,IAAI,CAACC,SAAS,CAACF,KAAK,CAAC,IAAI,CAAC,CACnEP,IAAI,CAAC,IAAI,CAAC;EAEb,OAAOC,MAAM,CAACC,IAAI,CAChB,wEAAwEL,gBAAgB,KAAKS,QAAQ,aACvG,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ import { unstable_transformerPath } from "@expo/metro-config";
4
+ import { compile } from "../compiler/index.js";
5
+ import { getNativeInjectionCode } from "./injection-code.js";
6
+ const worker =
7
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
8
+ require(unstable_transformerPath);
9
+ export async function transform(config, projectRoot, filePath, data, options) {
10
+ const isCss = options.type !== "asset" && /\.(s?css|sass)$/.test(filePath);
11
+ if (options.platform === "web" || !isCss) {
12
+ return worker.transform(config, projectRoot, filePath, data, options);
13
+ }
14
+ const cssFile = await worker.transform(config, projectRoot, filePath, data, {
15
+ ...options,
16
+ platform: "web"
17
+ });
18
+ const css = cssFile.output[0].data.css.code.toString();
19
+ const productionJS = compile(css, {
20
+ ...options.reactNativeCSS,
21
+ filename: filePath,
22
+ projectRoot: projectRoot
23
+ }).stylesheet();
24
+ data = Buffer.from(getNativeInjectionCode([], [productionJS]));
25
+ const transform = await worker.transform(config, projectRoot, `${filePath}.js`, data, options);
26
+
27
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
28
+ transform.output[0].data.css = {
29
+ skipCache: true,
30
+ code: ""
31
+ };
32
+ return transform;
33
+ }
34
+ //# sourceMappingURL=metro-transformer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["unstable_transformerPath","compile","getNativeInjectionCode","worker","require","transform","config","projectRoot","filePath","data","options","isCss","type","test","platform","cssFile","css","output","code","toString","productionJS","reactNativeCSS","filename","stylesheet","Buffer","from","skipCache"],"sourceRoot":"../../../src","sources":["metro/metro-transformer.ts"],"mappings":";;AAAA,SAASA,wBAAwB,QAAQ,oBAAoB;AAO7D,SAASC,OAAO,QAA8B,sBAAa;AAC3D,SAASC,sBAAsB,QAAQ,qBAAkB;AAEzD,MAAMC,MAAM;AACV;AACAC,OAAO,CAACJ,wBAAwB,CAA4C;AAE9E,OAAO,eAAeK,SAASA,CAC7BC,MAA2B,EAC3BC,WAAmB,EACnBC,QAAgB,EAChBC,IAAY,EACZC,OAEC,EAC2B;EAC5B,MAAMC,KAAK,GAAGD,OAAO,CAACE,IAAI,KAAK,OAAO,IAAI,iBAAiB,CAACC,IAAI,CAACL,QAAQ,CAAC;EAE1E,IAAIE,OAAO,CAACI,QAAQ,KAAK,KAAK,IAAI,CAACH,KAAK,EAAE;IACxC,OAAOR,MAAM,CAACE,SAAS,CAACC,MAAM,EAAEC,WAAW,EAAEC,QAAQ,EAAEC,IAAI,EAAEC,OAAO,CAAC;EACvE;EAEA,MAAMK,OAAO,GAAI,MAAMZ,MAAM,CAACE,SAAS,CAACC,MAAM,EAAEC,WAAW,EAAEC,QAAQ,EAAEC,IAAI,EAAE;IAC3E,GAAGC,OAAO;IACVI,QAAQ,EAAE;EACZ,CAAC,CAEA;EAED,MAAME,GAAG,GAAGD,OAAO,CAACE,MAAM,CAAC,CAAC,CAAC,CAACR,IAAI,CAACO,GAAG,CAACE,IAAI,CAACC,QAAQ,CAAC,CAAC;EAEtD,MAAMC,YAAY,GAAGnB,OAAO,CAACe,GAAG,EAAE;IAChC,GAAGN,OAAO,CAACW,cAAc;IACzBC,QAAQ,EAAEd,QAAQ;IAClBD,WAAW,EAAEA;EACf,CAAC,CAAC,CAACgB,UAAU,CAAC,CAAC;EAEfd,IAAI,GAAGe,MAAM,CAACC,IAAI,CAACvB,sBAAsB,CAAC,EAAE,EAAE,CAACkB,YAAY,CAAC,CAAC,CAAC;EAE9D,MAAMf,SAAS,GAAG,MAAMF,MAAM,CAACE,SAAS,CACtCC,MAAM,EACNC,WAAW,EACX,GAAGC,QAAQ,KAAK,EAChBC,IAAI,EACJC,OACF,CAAC;;EAED;EACCL,SAAS,CAASY,MAAM,CAAC,CAAC,CAAC,CAACR,IAAI,CAACO,GAAG,GAAG;IACtCU,SAAS,EAAE,IAAI;IACfR,IAAI,EAAE;EACR,CAAC;EAED,OAAOb,SAAS;AAClB","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=override.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["metro/override.ts"],"mappings":";;AAAA","ignoreList":[]}
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+
3
+ /* eslint-disable */
4
+ // ISC License
5
+
6
+ // Copyright (c) 2021 Alexey Raspopov, Kostiantyn Denysov, Anton Verinov
7
+
8
+ // Permission to use, copy, modify, and/or distribute this software for any
9
+ // purpose with or without fee is hereby granted, provided that the above
10
+ // copyright notice and this permission notice appear in all copies.
11
+
12
+ // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
13
+ // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
14
+ // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
15
+ // ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
16
+ // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17
+ // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18
+ // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19
+ //
20
+ // https://github.com/alexeyraspopov/picocolors/blob/b6261487e7b81aaab2440e397a356732cad9e342/picocolors.js#L1
21
+
22
+ const {
23
+ env,
24
+ stdout
25
+ } = globalThis?.process ?? {};
26
+ const enabled = env && !env.NO_COLOR && (env.FORCE_COLOR || stdout?.isTTY && !env.CI && env.TERM !== "dumb");
27
+ const replaceClose = (str, close, replace, index) => {
28
+ const start = str.substring(0, index) + replace;
29
+ const end = str.substring(index + close.length);
30
+ const nextIndex = end.indexOf(close);
31
+ return ~nextIndex ? start + replaceClose(end, close, replace, nextIndex) : start + end;
32
+ };
33
+ const formatter = (open, close, replace = open) => {
34
+ if (!enabled) return String;
35
+ return input => {
36
+ const string = "" + input;
37
+ const index = string.indexOf(close, open.length);
38
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
39
+ };
40
+ };
41
+ export const reset = enabled ? s => `\x1b[0m${s}\x1b[0m` : String;
42
+ export const bold = formatter("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m");
43
+ export const dim = formatter("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m");
44
+ export const italic = formatter("\x1b[3m", "\x1b[23m");
45
+ export const underline = formatter("\x1b[4m", "\x1b[24m");
46
+ export const inverse = formatter("\x1b[7m", "\x1b[27m");
47
+ export const hidden = formatter("\x1b[8m", "\x1b[28m");
48
+ export const strikethrough = formatter("\x1b[9m", "\x1b[29m");
49
+ export const black = formatter("\x1b[30m", "\x1b[39m");
50
+ export const red = formatter("\x1b[31m", "\x1b[39m");
51
+ export const green = formatter("\x1b[32m", "\x1b[39m");
52
+ export const yellow = formatter("\x1b[33m", "\x1b[39m");
53
+ export const blue = formatter("\x1b[34m", "\x1b[39m");
54
+ export const magenta = formatter("\x1b[35m", "\x1b[39m");
55
+ export const purple = formatter("\x1b[38;2;173;127;168m", "\x1b[39m");
56
+ export const cyan = formatter("\x1b[36m", "\x1b[39m");
57
+ export const white = formatter("\x1b[37m", "\x1b[39m");
58
+ export const gray = formatter("\x1b[90m", "\x1b[39m");
59
+ export const bgBlack = formatter("\x1b[40m", "\x1b[49m");
60
+ export const bgRed = formatter("\x1b[41m", "\x1b[49m");
61
+ export const bgGreen = formatter("\x1b[42m", "\x1b[49m");
62
+ export const bgYellow = formatter("\x1b[43m", "\x1b[49m");
63
+ export const bgBlue = formatter("\x1b[44m", "\x1b[49m");
64
+ export const bgMagenta = formatter("\x1b[45m", "\x1b[49m");
65
+ export const bgCyan = formatter("\x1b[46m", "\x1b[49m");
66
+ export const bgWhite = formatter("\x1b[47m", "\x1b[49m");
67
+ //# sourceMappingURL=picocolors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["env","stdout","globalThis","process","enabled","NO_COLOR","FORCE_COLOR","isTTY","CI","TERM","replaceClose","str","close","replace","index","start","substring","end","length","nextIndex","indexOf","formatter","open","String","input","string","reset","s","bold","dim","italic","underline","inverse","hidden","strikethrough","black","red","green","yellow","blue","magenta","purple","cyan","white","gray","bgBlack","bgRed","bgGreen","bgYellow","bgBlue","bgMagenta","bgCyan","bgWhite"],"sourceRoot":"../../../src","sources":["metro/picocolors.ts"],"mappings":";;AAAA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAM;EAAEA,GAAG;EAAEC;AAAO,CAAC,GAAGC,UAAU,EAAEC,OAAO,IAAI,CAAC,CAAC;AAEjD,MAAMC,OAAO,GACXJ,GAAG,IACH,CAACA,GAAG,CAACK,QAAQ,KACZL,GAAG,CAACM,WAAW,IAAKL,MAAM,EAAEM,KAAK,IAAI,CAACP,GAAG,CAACQ,EAAE,IAAIR,GAAG,CAACS,IAAI,KAAK,MAAO,CAAC;AAExE,MAA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;AACxD,OAAO,MAAM2B,QAAQ,GAAG3B,SAAS,CAAC,UAAU,EAAE,UAAU,CAAC;AACzD,OAAO,MAAM4B,MAAM,GAAG5B,SAAS,CAAC,UAAU,EAAE,UAAU,CAAC;AACvD,OAAO,MAAM6B,SAAS,GAAG7B,SAAS,CAAC,UAAU,EAAE,UAAU,CAAC;AAC1D,OAAO,MAAM8B,MAAM,GAAG9B,SAAS,CAAC,UAAU,EAAE,UAAU,CAAC;AACvD,OAAO,MAAM+B,OAAO,GAAG/B,SAAS,CAAC,UAAU,EAAE,UAAU,CAAC","ignoreList":[]}
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+
3
+ import { basename, resolve, sep } from "node:path";
4
+ import { allowedModules } from "../babel/allowedModules.js";
5
+ const thisModuleDist = resolve(__dirname, "../../../dist");
6
+ const thisModuleSrc = resolve(__dirname, "../../../src");
7
+ function isFromThisModule(filename) {
8
+ return filename.startsWith(thisModuleDist) || filename.startsWith(thisModuleSrc);
9
+ }
10
+ export function nativeResolver(resolver, context, moduleName, platform) {
11
+ const resolution = resolver(context, moduleName, platform);
12
+ const isInternal = isFromThisModule(context.originModulePath);
13
+ const isReactNativeIndex = context.originModulePath.endsWith(`${sep}react-native${sep}index.js`);
14
+ if (isInternal || resolution.type !== "sourceFile" || isReactNativeIndex) {
15
+ return resolution;
16
+ }
17
+ if (moduleName === "react-native") {
18
+ return resolver(context, `react-native-css/components`, platform);
19
+ } else if (moduleName === "react-native-safe-area-context") {
20
+ return resolver(context, `react-native-css/components/react-native-safe-area-context`, platform);
21
+ } else if (resolution.filePath.includes(`${sep}react-native${sep}Libraries${sep}`)) {
22
+ const filename = basename(resolution.filePath.split(sep).at(-1) ?? "");
23
+ const module = filename.split(".").at(0);
24
+ if (module && allowedModules.has(module)) {
25
+ return resolver(context, `react-native-css/components/${module}`, platform);
26
+ }
27
+ }
28
+ return resolution;
29
+ }
30
+ export function webResolver(resolver, context, moduleName, platform) {
31
+ const resolution = resolver(context, moduleName, platform);
32
+ if (
33
+ // Don't include our internal files
34
+ isFromThisModule(context.originModulePath) ||
35
+ // Only operate on source files
36
+ resolution.type !== "sourceFile" ||
37
+ // Skip anything that isn't importing from `react-native-web`
38
+ !resolution.filePath.includes(`${sep}react-native-web${sep}`) ||
39
+ // Skip internal react-native-web files
40
+ resolution.filePath.includes(`${sep}react-native-web${sep}dist${sep}vendor`)) {
41
+ return resolution;
42
+ }
43
+
44
+ // We only care about `react-native-web/<segment>/<segment>/<module>/index.js` components
45
+ const segments = resolution.filePath.split(sep);
46
+ const isIndex = segments.at(-1)?.startsWith("index.");
47
+ const module = segments.at(-2);
48
+ if (!isIndex || !module || !allowedModules.has(module) || module === "VirtualizedList") {
49
+ return resolution;
50
+ }
51
+ return resolver(context, `react-native-css/components/${module}`, platform);
52
+ }
53
+ //# sourceMappingURL=resolver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["basename","resolve","sep","allowedModules","thisModuleDist","__dirname","thisModuleSrc","isFromThisModule","filename","startsWith","nativeResolver","resolver","context","moduleName","platform","resolution","isInternal","originModulePath","isReactNativeIndex","endsWith","type","filePath","includes","split","at","module","has","webResolver","segments","isIndex"],"sourceRoot":"../../../src","sources":["metro/resolver.ts"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,OAAO,EAAEC,GAAG,QAAQ,WAAW;AAQlD,SAASC,cAAc,QAAQ,4BAAyB;AAExD,MAAMC,cAAc,GAAGH,OAAO,CAACI,SAAS,EAAE,eAAe,CAAC;AAC1D,MAAMC,aAAa,GAAGL,OAAO,CAACI,SAAS,EAAE,cAAc,CAAC;AAExD,SAASE,gBAAgBA,CAACC,QAAgB,EAAW;EACnD,OACEA,QAAQ,CAACC,UAAU,CAACL,cAAc,CAAC,IAAII,QAAQ,CAACC,UAAU,CAACH,aAAa,CAAC;AAE7E;AAEA,OAAO,SAASI,cAAcA,CAC5BC,QAAwB,EACxBC,OAAgC,EAChCC,UAAkB,EAClBC,QAAuB,EACX;EACZ,MAAMC,UAA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,CAACC,OAAO,EAAEC,UAAU,EAAEC,QAAQ,CAAC;EAE1D;EACE;EACAP,gBAAgB,CAACK,OAAO,CAACK,gBAAgB,CAAC;EAC1C;EACAF,UAAU,CAACK,IAAI,KAAK,YAAY;EAChC;EACA,CAACL,UAAU,CAACM,QAAQ,CAACC,QAAQ,CAAC,GAAGpB,GAAG,mBAAmBA,GAAG,EAAE,CAAC;EAC7D;EACAa,UAAU,CAACM,QAAQ,CAACC,QAAQ,CAAC,GAAGpB,GAAG,mBAAmBA,GAAG,OAAOA,GAAG,QAAQ,CAAC,EAC5E;IACA,OAAOa,UAAU;EACnB;;EAEA;EACA,MAAMa,QAAQ,GAAGb,UAAU,CAACM,QAAQ,CAACE,KAAK,CAACrB,GAAG,CAAC;EAC/C,MAAM2B,OAAO,GAAGD,QAAQ,CAACJ,EAAE,CAAC,CAAC,CAAC,CAAC,EAAEf,UAAU,CAAC,QAAQ,CAAC;EACrD,MAAMgB,MAAM,GAAGG,QAAQ,CAACJ,EAAE,CAAC,CAAC,CAAC,CAAC;EAE9B,IACE,CAACK,OAAO,IACR,CAACJ,MAAM,IACP,CAACtB,cAAc,CAACuB,GAAG,CAACD,MAAM,CAAC,IAC3BA,MAAM,KAAK,iBAAiB,EAC5B;IACA,OAAOV,UAAU;EACnB;EAEA,OAAOJ,QAAQ,CAACC,OAAO,EAAE,+BAA+Ba,MAAM,EAAE,EAAEX,QAAQ,CAAC;AAC7E","ignoreList":[]}
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+
3
+ /* eslint-disable */
4
+ /**
5
+ * Convert a data structure to JavaScript.
6
+ * The output should be similar to JSON, but without the extra characters.
7
+ * This is simply to reduce file size in production
8
+ */
9
+ export function stringify(data) {
10
+ switch (typeof data) {
11
+ case "bigint":
12
+ case "symbol":
13
+ case "function":
14
+ throw new Error(`Cannot stringify ${typeof data}`);
15
+ case "string":
16
+ return `"${data}"`;
17
+ case "number":
18
+ // Reduce to 3 decimal places
19
+ return `${Math.round(data * 1000) / 1000}`;
20
+ case "boolean":
21
+ return `${data}`;
22
+ case "undefined":
23
+ // null is processed faster than undefined
24
+ // JSON.stringify also converts undefined to null
25
+ return "null";
26
+ case "object":
27
+ {
28
+ if (data === null) {
29
+ return "null";
30
+ } else if (Array.isArray(data)) {
31
+ return `[${data.map(value => {
32
+ // These values can be omitted to create a holey array
33
+ // This is slightly slower to parse at runtime, but keeps the
34
+ // file size smaller
35
+ return value === null || value === undefined ? "" : stringify(value);
36
+ }).join(",")}]`;
37
+ } else {
38
+ return `{${Object.entries(data).flatMap(([key, value]) => {
39
+ // If an object's property is undefined or null we can just skip it
40
+ if (value === null || value === undefined) {
41
+ return [];
42
+ }
43
+
44
+ // Make sure we quote strings that require quotes
45
+ if (key.match(/[^a-zA-Z]/)) {
46
+ key = `"${key}"`;
47
+ }
48
+ value = stringify(value);
49
+ return [`${key}:${value}`];
50
+ }).join(",")}}`;
51
+ }
52
+ }
53
+ }
54
+ }
55
+ //# sourceMappingURL=stringify.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stringify","data","Error","Math","round","Array","isArray","map","value","undefined","join","Object","entries","flatMap","key","match"],"sourceRoot":"../../../src","sources":["metro/stringify.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,SAASA,CAACC,IAAa,EAAU;EAC/C,QAAQ,OAAOA,IAAI;IACjB,KAAK,QAAQ;IACb,KAAK,QAAQ;IACb,KAAK,UAAU;MACb,MAAM,IAAIC,KAAK,CAAC,oBAAoB,OAAOD,IAAI,EAAE,CAAC;IACpD,KAAK,QAAQ;MACX,OAAO,IAAIA,IAAI,GAAG;IACpB,KAAK,QAAQ;MACX;MACA,OAAO,GAAGE,IAAI,CAACC,KAAK,CAACH,IAAI,GAAG,IAAI,CAAC,GAAG,IAAI,EAAE;IAC5C,KAAK,SAAS;MACZ,OAAO,GAAGA,IAAI,EAAE;IAClB,KAAK,WAAW;MACd;MACA;MACA,OAAO,MAAM;IACf,KAAK,QAAQ;MAAE;QACb,IAAIA,IAAI,KAAK,IAAI,EAAE;UACjB,OAAO,MAAM;QACf,CAAC,MAAM,IAAII,KAAK,CAACC,OAAO,CAACL,IAAI,CAAC,EAAE;UAC9B,OAAO,IAAIA,IAAI,CACZM,GAAG,CAAEC,KAAK,IAAK;YACd;YACA;YACA;YACA,OAAOA,KAAK,KAAK,IAAI,IAAIA,KAAK,KAAKC,SAAS,GACxC,EAAE,GACFT,SAAS,CAACQ,KAAK,CAAC;UACtB,CAAC,CAAC,CACDE,IAAI,CAAC,GAAG,CAAC,GAAG;QACjB,CAAC,MAAM;UACL,OAAO,IAAIC,MAAM,CAACC,OAAO,CAACX,IAAI,CAAC,CAC5BY,OAAO,CAAC,CAAC,CAACC,GAAG,EAAEN,KAAK,CAAC,KAAK;YACzB;YACA,IAAIA,KAAK,KAAK,IAAI,IAAIA,KAAK,KAAKC,SAAS,EAAE;cACzC,OAAO,EAAE;YACX;;YAEA;YACA,IAAIK,GAAG,CAACC,KAAK,CAAC,WAAW,CAAC,EAAE;cAC1BD,GAAG,GAAG,IAAIA,GAAG,GAAG;YAClB;YAEAN,KAAK,GAAGR,SAAS,CAACQ,KAAK,CAAC;YAExB,OAAO,CAAC,GAAGM,GAAG,IAAIN,KAAK,EAAE,CAAC;UAC5B,CAAC,CAAC,CACDE,IAAI,CAAC,GAAG,CAAC,GAAG;QACjB;MACF;EACF;AACF","ignoreList":[]}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+
3
+ /* eslint-disable */
4
+ import { existsSync, readFileSync, writeFileSync } from "fs";
5
+ import { CommentArray, parse, stringify } from "comment-json";
6
+ import { bold, cyan } from "./picocolors.js";
7
+ export function setupTypeScript(envPath = "react-native-css-env.d.ts", name = "react-native-css") {
8
+ try {
9
+ const ts = require("typescript");
10
+ if (!ts) {
11
+ return;
12
+ }
13
+ const configFileName = ts.findConfigFile("./", ts.sys.fileExists, "tsconfig.json");
14
+ const userConfig = parse(readFileSync(configFileName, {
15
+ encoding: "utf-8"
16
+ }));
17
+ if (typeof userConfig !== "object" || !userConfig || Array.isArray(userConfig)) {
18
+ return;
19
+ }
20
+ const output = [];
21
+ let updatedConfig = false;
22
+ if (!existsSync(envPath)) {
23
+ writeFileSync(envPath, `/// <reference types="react-native-css/types" />
24
+
25
+ // NOTE: This file should not be edited and should be committed with your source code. It is generated by ${name}. If you need to move or disable this file, please see the documentation.`);
26
+ output.push(`Created ${cyan(envPath)}`);
27
+ }
28
+ userConfig.include ??= new CommentArray(envPath);
29
+ if (Array.isArray(userConfig.include) && !userConfig.include.includes(envPath)) {
30
+ userConfig.include.push(envPath);
31
+ updatedConfig = true;
32
+ output.push(`Updated ${configFileName} to include the ${cyan(envPath)} file`);
33
+ }
34
+ if (updatedConfig) {
35
+ writeFileSync(configFileName, stringify(userConfig, null, 2));
36
+ }
37
+ if (output.length) {
38
+ console.log(`${cyan(bold("NativeWind"))} made the following changes to your project to support TypeScript:\n - ${output.join("\n - ")}`);
39
+ }
40
+ } catch {}
41
+ }
42
+ //# sourceMappingURL=typescript.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["existsSync","readFileSync","writeFileSync","CommentArray","parse","stringify","bold","cyan","setupTypeScript","envPath","name","ts","require","configFileName","findConfigFile","sys","fileExists","userConfig","encoding","Array","isArray","output","updatedConfig","push","include","includes","length","console","log","join"],"sourceRoot":"../../../src","sources":["metro/typescript.ts"],"mappings":";;AAAA;AACA,SAASA,UAAU,EAAEC,YAAY,EAAEC,aAAa,QAAQ,IAAI;AAE5D,SAASC,YAAY,EAAEC,KAAK,EAAEC,SAAS,QAAQ,cAAc;AAE7D,SAASC,IAAI,EAAEC,IAAI,QAAQ,iBAAc;AAEzC,OAAO,SAASC,eAAeA,CAC7BC,OAAO,GAAG,2BAA2B,EACrCC,IAAI,GAAG,kBAAkB,EACzB;EACA,IAAI;IACF,MAAMC,EAAE,GAAGC,OAAO,CAAC,YAAY,CAAC;IAChC,IAAI,CAACD,EAAE,EAAE;MACP;IACF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AAC,QAAQ,CAAC,EAC7H,CAAC;IACH;EACF,CAAC,CAAC,MAAM,CAAC;AACX","ignoreList":[]}
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+
3
+ /* eslint-disable */
4
+ import { useContext, useState } from "react";
5
+ import { Appearance } from "react-native";
6
+ import { VariableContext } from "react-native-css/native-internal";
7
+ import { mappingToConfig, useNativeCss } from "./react/useNativeCss.js";
8
+ import { usePassthrough } from "./react/usePassthrough.js";
9
+ import { colorScheme as colorSchemeObs, VAR_SYMBOL } from "./reactivity.js";
10
+ import { resolveValue } from "./styles/resolve.js";
11
+ export { StyleCollection, VariableContext, VariableContextProvider } from "react-native-css/native-internal";
12
+ export { useNativeCss };
13
+ const defaultMapping = {
14
+ className: "style"
15
+ };
16
+
17
+ /**
18
+ * Generates a new Higher-Order component the wraps the base component and applies the styles.
19
+ * This is added to the `interopComponents` map so that it can be used in the `wrapJSX` function
20
+ * @param baseComponent
21
+ * @param mapping
22
+ */
23
+ export const styled = (baseComponent, mapping = defaultMapping, options) => {
24
+ let component;
25
+ // const type = getComponentType(baseComponent);
26
+
27
+ const configs = mappingToConfig(mapping);
28
+ if (options?.passThrough) {
29
+ component = props => {
30
+ return usePassthrough(baseComponent, props, configs);
31
+ };
32
+ } else {
33
+ component = props => {
34
+ return useNativeCss(baseComponent, props, configs);
35
+ };
36
+ }
37
+ const name = baseComponent.displayName ?? baseComponent.name ?? "unknown";
38
+ component.displayName = `CssInterop.${name}`;
39
+ return component;
40
+ };
41
+ export const colorScheme = {
42
+ get() {
43
+ return colorSchemeObs.get() ?? Appearance.getColorScheme() ?? "light";
44
+ },
45
+ set(value) {
46
+ return colorSchemeObs.set(value);
47
+ }
48
+ };
49
+ export const useUnstableNativeVariable = useNativeVariable;
50
+ export const useCssElement = (component, incomingProps, mapping) => {
51
+ const [config] = useState(() => mappingToConfig(mapping));
52
+ return useNativeCss(component, incomingProps, config);
53
+ };
54
+ export function useNativeVariable(name) {
55
+ if (name.startsWith("--")) {
56
+ name = name.slice(2);
57
+ }
58
+ const inheritedVariables = useContext(VariableContext);
59
+ const [effect, setState] = useState(() => {
60
+ const effect = {
61
+ observers: new Set(),
62
+ run: () => setState(state => ({
63
+ ...state
64
+ }))
65
+ };
66
+ const get = observable => observable.get(effect);
67
+ return {
68
+ ...effect,
69
+ get
70
+ };
71
+ });
72
+ return resolveValue([{}, "var", [name]], effect.get, {
73
+ inheritedVariables
74
+ });
75
+ }
76
+
77
+ /**
78
+ * @deprecated Use `<VariableContextProvider />` instead.
79
+ */
80
+ export function vars(variables) {
81
+ return Object.assign({
82
+ [VAR_SYMBOL]: "inline"
83
+ }, Object.fromEntries(Object.entries(variables).map(([k, v]) => [k.replace(/^--/, ""), v])));
84
+ }
85
+ //# sourceMappingURL=api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useContext","useState","Appearance","VariableContext","mappingToConfig","useNativeCss","usePassthrough","colorScheme","colorSchemeObs","VAR_SYMBOL","resolveValue","StyleCollection","VariableContextProvider","defaultMapping","className","styled","baseComponent","mapping","options","component","configs","passThrough","props","name","displayName","get","getColorScheme","set","value","useUnstableNativeVariable","useNativeVariable","useCssElement","incomingProps","config","startsWith","slice","inheritedVariables","effect","setState","observers","Set","run","state","observable","vars","variables","Object","assign","fromEntries","entries","map","k","v","replace"],"sourceRoot":"../../../src","sources":["native/api.tsx"],"mappings":";;AAAA;AACA,SAASA,UAAU,EAAEC,QAAQ,QAA4B,OAAO;AAChE,SAASC,UAAU,QAAQ,cAAc;AAGzC,SAASC,eAAe,QAAQ,kCAAkC;AASlE,SAASC,eAAe,EAAEC,YAAY,QAAQ,yBAAsB;AACpE,SAASC,cAAc,QAAQ,2BAAwB;AACvD,SACEC,WAAW,IAAIC,cAAc,EAC7BC,UAAU,QAGL,iBAAc;AACrB,SAASC,YAAY,QAAQ,qBAAkB;AAE/C,SACEC,eAAe,EACfR,eAAe,EACfS,uBAAuB,QAClB,kCAAkC;AAEzC,SAASP,YAAY;AAErB,MAAMQ,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4
+ return queries.every(query => testAttribute(query, props, guards));
5
+ }
6
+ function testAttribute([type, prop, operator, testValue], props, guards) {
7
+ let value = undefined;
8
+ if (props) {
9
+ if (type === "a") {
10
+ value = props[prop];
11
+ } else {
12
+ const dataSet = props.dataSet;
13
+ value = dataSet?.[prop];
14
+ }
15
+ }
16
+ guards.push([type, prop, value]);
17
+ if (!operator) {
18
+ return value !== undefined && value !== null && value !== false;
19
+ }
20
+ switch (operator) {
21
+ case "!":
22
+ return !value;
23
+ case "=":
24
+ return value == testValue;
25
+ case "~=":
26
+ return testValue && value?.toString().split(" ").includes(testValue);
27
+ case "|=":
28
+ return testValue && value?.toString().startsWith(testValue + "-");
29
+ case "^=":
30
+ return testValue && value?.toString().startsWith(testValue);
31
+ case "$=":
32
+ return testValue && value?.toString().endsWith(testValue);
33
+ case "*=":
34
+ return testValue && value?.toString().includes(testValue);
35
+ default:
36
+ operator;
37
+ return false;
38
+ }
39
+ }
40
+ //# sourceMappingURL=attributes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["testAttributes","queries","props","guards","every","query","testAttribute","type","prop","operator","testValue","value","undefined","dataSet","push","toString","split","includes","startsWith","endsWith"],"sourceRoot":"../../../../src","sources":["native/conditions/attributes.ts"],"mappings":";;AAIA,OAAO,SAASA,cAAcA,CAC5BC,OAAyB,EACzBC,KAAiD,EACjDC,MAAqB,EACrB;EACA,OAAOF,OAAO,CAACG,KAAK,CAAEC,KAAK,IAAKC,aAAa,CAACD,KAAK,EAAEH,KAAK,EAAEC,MAAM,CAAC,CAAC;AACtE;AAEA,SAASG,aAAaA,CACpB,CAACC,IAAI,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,SAAS,CAAiB,EACjDR,KAAiD,EACjDC,MAAqB,EACrB;EACA,IAAIQ,KAAc,GAAGC,SAAS;EAE9B,IAAIV,KAAK,EAAE;IACT,IAAIK,IAAI,KAAK,GAAG,EAAE;MAChBI,KAAK,GAAGT,KAAK,CAACM,IAAI,CAAC;IACrB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