react-native-css 0.0.0-nightly.416840c → 0.0.0-nightly.4562bdf

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 (793) hide show
  1. package/README.md +35 -5
  2. package/dist/commonjs/babel/helpers.js +7 -0
  3. package/dist/commonjs/babel/helpers.js.map +1 -1
  4. package/dist/commonjs/babel/import-plugin.js +20 -8
  5. package/dist/commonjs/babel/import-plugin.js.map +1 -1
  6. package/dist/commonjs/babel/react-native-web.js +17 -4
  7. package/dist/commonjs/babel/react-native-web.js.map +1 -1
  8. package/dist/commonjs/babel/react-native.js +9 -4
  9. package/dist/commonjs/babel/react-native.js.map +1 -1
  10. package/dist/commonjs/compiler/atRules.js +35 -0
  11. package/dist/commonjs/compiler/atRules.js.map +1 -1
  12. package/dist/commonjs/compiler/compiler.js +198 -39
  13. package/dist/commonjs/compiler/compiler.js.map +1 -1
  14. package/dist/commonjs/compiler/container-query.js +6 -1
  15. package/dist/commonjs/compiler/container-query.js.map +1 -1
  16. package/dist/commonjs/compiler/declarations.js +248 -96
  17. package/dist/commonjs/compiler/declarations.js.map +1 -1
  18. package/dist/commonjs/compiler/individual-transforms.js +129 -0
  19. package/dist/commonjs/compiler/individual-transforms.js.map +1 -0
  20. package/dist/commonjs/compiler/inline-variables.js +47 -1
  21. package/dist/commonjs/compiler/inline-variables.js.map +1 -1
  22. package/dist/commonjs/compiler/lightningcss-loader.js +15 -2
  23. package/dist/commonjs/compiler/lightningcss-loader.js.map +1 -1
  24. package/dist/commonjs/compiler/media-query.js +16 -6
  25. package/dist/commonjs/compiler/media-query.js.map +1 -1
  26. package/dist/commonjs/compiler/selector-builder.js +18 -6
  27. package/dist/commonjs/compiler/selector-builder.js.map +1 -1
  28. package/dist/commonjs/compiler/stylesheet.js +33 -9
  29. package/dist/commonjs/compiler/stylesheet.js.map +1 -1
  30. package/dist/commonjs/compiler/supports.js +2 -2
  31. package/dist/commonjs/compiler/supports.js.map +1 -1
  32. package/dist/commonjs/components/ActivityIndicator.js +4 -4
  33. package/dist/commonjs/components/ActivityIndicator.js.map +1 -1
  34. package/dist/commonjs/components/Button.js +4 -4
  35. package/dist/commonjs/components/Button.js.map +1 -1
  36. package/dist/commonjs/components/FlatList.js +5 -4
  37. package/dist/commonjs/components/FlatList.js.map +1 -1
  38. package/dist/commonjs/components/Image.js +4 -4
  39. package/dist/commonjs/components/Image.js.map +1 -1
  40. package/dist/commonjs/components/ImageBackground.js +6 -10
  41. package/dist/commonjs/components/ImageBackground.js.map +1 -1
  42. package/dist/commonjs/components/KeyboardAvoidingView.js +6 -7
  43. package/dist/commonjs/components/KeyboardAvoidingView.js.map +1 -1
  44. package/dist/commonjs/components/Pressable.js +4 -4
  45. package/dist/commonjs/components/Pressable.js.map +1 -1
  46. package/dist/commonjs/components/SafeAreaProvider.js +13 -0
  47. package/dist/commonjs/components/SafeAreaProvider.js.map +1 -0
  48. package/dist/commonjs/components/ScrollView.js +4 -4
  49. package/dist/commonjs/components/ScrollView.js.map +1 -1
  50. package/dist/commonjs/components/Switch.js +4 -4
  51. package/dist/commonjs/components/Switch.js.map +1 -1
  52. package/dist/commonjs/components/Text.js +4 -4
  53. package/dist/commonjs/components/Text.js.map +1 -1
  54. package/dist/commonjs/components/TextInput.js +4 -4
  55. package/dist/commonjs/components/TextInput.js.map +1 -1
  56. package/dist/commonjs/components/TouchableHighlight.js +4 -4
  57. package/dist/commonjs/components/TouchableHighlight.js.map +1 -1
  58. package/dist/commonjs/components/TouchableOpacity.js +4 -4
  59. package/dist/commonjs/components/TouchableOpacity.js.map +1 -1
  60. package/dist/commonjs/components/TouchableWithoutFeedback.js +4 -4
  61. package/dist/commonjs/components/TouchableWithoutFeedback.js.map +1 -1
  62. package/dist/commonjs/components/View.js +4 -4
  63. package/dist/commonjs/components/View.js.map +1 -1
  64. package/dist/commonjs/components/VirtualizedList.js +4 -4
  65. package/dist/commonjs/components/VirtualizedList.js.map +1 -1
  66. package/dist/commonjs/components/copyComponentProperties.js +19 -0
  67. package/dist/commonjs/components/copyComponentProperties.js.map +1 -0
  68. package/dist/commonjs/components/index.cjs +52 -4
  69. package/dist/commonjs/components/index.cjs.map +1 -1
  70. package/dist/commonjs/components/react-native-safe-area-context.native.js +10 -0
  71. package/dist/commonjs/components/react-native-safe-area-context.native.js.map +1 -1
  72. package/dist/commonjs/jest/index.js +3 -1
  73. package/dist/commonjs/jest/index.js.map +1 -1
  74. package/dist/commonjs/metro/cache-version.js +43 -0
  75. package/dist/commonjs/metro/cache-version.js.map +1 -0
  76. package/dist/commonjs/metro/index.js +2 -0
  77. package/dist/commonjs/metro/index.js.map +1 -1
  78. package/dist/commonjs/metro/metro-transformer.js +16 -3
  79. package/dist/commonjs/metro/metro-transformer.js.map +1 -1
  80. package/dist/commonjs/metro/resolver.js +5 -3
  81. package/dist/commonjs/metro/resolver.js.map +1 -1
  82. package/dist/commonjs/metro/typescript.js +26 -6
  83. package/dist/commonjs/metro/typescript.js.map +1 -1
  84. package/dist/commonjs/metro/warnings.js +135 -0
  85. package/dist/commonjs/metro/warnings.js.map +1 -0
  86. package/dist/commonjs/native/api.js +21 -12
  87. package/dist/commonjs/native/api.js.map +1 -1
  88. package/dist/commonjs/native/conditions/attributes.js +16 -9
  89. package/dist/commonjs/native/conditions/attributes.js.map +1 -1
  90. package/dist/commonjs/native/conditions/container-query.js +11 -11
  91. package/dist/commonjs/native/conditions/container-query.js.map +1 -1
  92. package/dist/commonjs/native/conditions/guards.js +7 -0
  93. package/dist/commonjs/native/conditions/guards.js.map +1 -1
  94. package/dist/commonjs/native/conditions/media-query.js +1 -1
  95. package/dist/commonjs/native/conditions/media-query.js.map +1 -1
  96. package/dist/commonjs/native/objects.js +11 -18
  97. package/dist/commonjs/native/objects.js.map +1 -1
  98. package/dist/commonjs/native/react/interaction.js +10 -5
  99. package/dist/commonjs/native/react/interaction.js.map +1 -1
  100. package/dist/commonjs/native/react/rules.js +45 -38
  101. package/dist/commonjs/native/react/rules.js.map +1 -1
  102. package/dist/commonjs/native/react/useNativeCss.js +80 -19
  103. package/dist/commonjs/native/react/useNativeCss.js.map +1 -1
  104. package/dist/commonjs/native/react/usePassthrough.js +5 -2
  105. package/dist/commonjs/native/react/usePassthrough.js.map +1 -1
  106. package/dist/commonjs/native/reactivity.js +150 -68
  107. package/dist/commonjs/native/reactivity.js.map +1 -1
  108. package/dist/commonjs/native/reanimated.js +15 -3
  109. package/dist/commonjs/native/reanimated.js.map +1 -1
  110. package/dist/commonjs/native/styles/calculate-props.js +139 -26
  111. package/dist/commonjs/native/styles/calculate-props.js.map +1 -1
  112. package/dist/commonjs/native/styles/functions/animation-timing.js +2 -1
  113. package/dist/commonjs/native/styles/functions/animation-timing.js.map +1 -1
  114. package/dist/commonjs/native/styles/functions/color-mix.js +68 -0
  115. package/dist/commonjs/native/styles/functions/color-mix.js.map +1 -0
  116. package/dist/commonjs/native/styles/functions/filters.js +19 -5
  117. package/dist/commonjs/native/styles/functions/filters.js.map +1 -1
  118. package/dist/commonjs/native/styles/functions/index.js +11 -0
  119. package/dist/commonjs/native/styles/functions/index.js.map +1 -1
  120. package/dist/commonjs/native/styles/functions/numeric-functions.js +4 -3
  121. package/dist/commonjs/native/styles/functions/numeric-functions.js.map +1 -1
  122. package/dist/commonjs/native/styles/functions/platform-functions.js +2 -1
  123. package/dist/commonjs/native/styles/functions/platform-functions.js.map +1 -1
  124. package/dist/commonjs/native/styles/functions/string-functions.js +22 -6
  125. package/dist/commonjs/native/styles/functions/string-functions.js.map +1 -1
  126. package/dist/commonjs/native/styles/functions/transform-functions.js +95 -105
  127. package/dist/commonjs/native/styles/functions/transform-functions.js.map +1 -1
  128. package/dist/commonjs/native/styles/index.js +361 -34
  129. package/dist/commonjs/native/styles/index.js.map +1 -1
  130. package/dist/commonjs/native/styles/resolve.js +136 -19
  131. package/dist/commonjs/native/styles/resolve.js.map +1 -1
  132. package/dist/commonjs/native/styles/scale-factor.js +12 -0
  133. package/dist/commonjs/native/styles/scale-factor.js.map +1 -0
  134. package/dist/commonjs/native/styles/shorthands/_handler.js +10 -0
  135. package/dist/commonjs/native/styles/shorthands/_handler.js.map +1 -1
  136. package/dist/commonjs/native/styles/shorthands/animation.js +6 -3
  137. package/dist/commonjs/native/styles/shorthands/animation.js.map +1 -1
  138. package/dist/commonjs/native/styles/shorthands/box-shadow.js +41 -20
  139. package/dist/commonjs/native/styles/shorthands/box-shadow.js.map +1 -1
  140. package/dist/commonjs/native/styles/shorthands/index.js +11 -0
  141. package/dist/commonjs/native/styles/shorthands/index.js.map +1 -1
  142. package/dist/commonjs/native/styles/shorthands/logical-border-width.js +22 -0
  143. package/dist/commonjs/native/styles/shorthands/logical-border-width.js.map +1 -0
  144. package/dist/commonjs/native/styles/shorthands/transform.js +31 -8
  145. package/dist/commonjs/native/styles/shorthands/transform.js.map +1 -1
  146. package/dist/commonjs/native/styles/variables.js +173 -48
  147. package/dist/commonjs/native/styles/variables.js.map +1 -1
  148. package/dist/commonjs/native-internal/root.js +46 -7
  149. package/dist/commonjs/native-internal/root.js.map +1 -1
  150. package/dist/commonjs/native-internal/style-collection.js +56 -74
  151. package/dist/commonjs/native-internal/style-collection.js.map +1 -1
  152. package/dist/commonjs/native-internal/variables.js +1 -1
  153. package/dist/commonjs/native-internal/variables.js.map +1 -1
  154. package/dist/commonjs/utilities/dot-notation.types.js +4 -0
  155. package/dist/commonjs/utilities/equality.js +41 -0
  156. package/dist/commonjs/utilities/equality.js.map +1 -0
  157. package/dist/commonjs/utilities/index.js +11 -0
  158. package/dist/commonjs/utilities/index.js.map +1 -1
  159. package/dist/commonjs/utilities/specificity.js +12 -12
  160. package/dist/commonjs/utilities/specificity.js.map +1 -1
  161. package/dist/commonjs/utilities/style-descriptor.js +32 -8
  162. package/dist/commonjs/utilities/style-descriptor.js.map +1 -1
  163. package/dist/commonjs/web/api.js +7 -4
  164. package/dist/commonjs/web/api.js.map +1 -1
  165. package/dist/commonjs/web/assign-style.js +4 -1
  166. package/dist/commonjs/web/assign-style.js.map +1 -1
  167. package/dist/module/babel/helpers.js +6 -0
  168. package/dist/module/babel/helpers.js.map +1 -1
  169. package/dist/module/babel/import-plugin.js +22 -10
  170. package/dist/module/babel/import-plugin.js.map +1 -1
  171. package/dist/module/babel/react-native-web.js +16 -4
  172. package/dist/module/babel/react-native-web.js.map +1 -1
  173. package/dist/module/babel/react-native.js +9 -4
  174. package/dist/module/babel/react-native.js.map +1 -1
  175. package/dist/module/compiler/atRules.js +33 -0
  176. package/dist/module/compiler/atRules.js.map +1 -1
  177. package/dist/module/compiler/compiler.js +200 -41
  178. package/dist/module/compiler/compiler.js.map +1 -1
  179. package/dist/module/compiler/compiler.types.js +4 -0
  180. package/dist/module/compiler/compiler.types.js.map +1 -1
  181. package/dist/module/compiler/container-query.js +6 -1
  182. package/dist/module/compiler/container-query.js.map +1 -1
  183. package/dist/module/compiler/declarations.js +247 -95
  184. package/dist/module/compiler/declarations.js.map +1 -1
  185. package/dist/module/compiler/individual-transforms.js +125 -0
  186. package/dist/module/compiler/individual-transforms.js.map +1 -0
  187. package/dist/module/compiler/inline-variables.js +47 -1
  188. package/dist/module/compiler/inline-variables.js.map +1 -1
  189. package/dist/module/compiler/lightningcss-loader.js +14 -2
  190. package/dist/module/compiler/lightningcss-loader.js.map +1 -1
  191. package/dist/module/compiler/media-query.js +16 -6
  192. package/dist/module/compiler/media-query.js.map +1 -1
  193. package/dist/module/compiler/selector-builder.js +18 -7
  194. package/dist/module/compiler/selector-builder.js.map +1 -1
  195. package/dist/module/compiler/stylesheet.js +33 -9
  196. package/dist/module/compiler/stylesheet.js.map +1 -1
  197. package/dist/module/compiler/supports.js +2 -2
  198. package/dist/module/compiler/supports.js.map +1 -1
  199. package/dist/module/components/ActivityIndicator.js +3 -2
  200. package/dist/module/components/ActivityIndicator.js.map +1 -1
  201. package/dist/module/components/Button.js +3 -2
  202. package/dist/module/components/Button.js.map +1 -1
  203. package/dist/module/components/FlatList.js +4 -2
  204. package/dist/module/components/FlatList.js.map +1 -1
  205. package/dist/module/components/Image.js +3 -2
  206. package/dist/module/components/Image.js.map +1 -1
  207. package/dist/module/components/ImageBackground.js +5 -8
  208. package/dist/module/components/ImageBackground.js.map +1 -1
  209. package/dist/module/components/KeyboardAvoidingView.js +5 -5
  210. package/dist/module/components/KeyboardAvoidingView.js.map +1 -1
  211. package/dist/module/components/Pressable.js +3 -2
  212. package/dist/module/components/Pressable.js.map +1 -1
  213. package/dist/module/components/SafeAreaProvider.js +4 -0
  214. package/dist/module/components/SafeAreaProvider.js.map +1 -0
  215. package/dist/module/components/ScrollView.js +3 -2
  216. package/dist/module/components/ScrollView.js.map +1 -1
  217. package/dist/module/components/Switch.js +3 -2
  218. package/dist/module/components/Switch.js.map +1 -1
  219. package/dist/module/components/Text.js +3 -2
  220. package/dist/module/components/Text.js.map +1 -1
  221. package/dist/module/components/TextInput.js +3 -2
  222. package/dist/module/components/TextInput.js.map +1 -1
  223. package/dist/module/components/TouchableHighlight.js +3 -2
  224. package/dist/module/components/TouchableHighlight.js.map +1 -1
  225. package/dist/module/components/TouchableOpacity.js +3 -2
  226. package/dist/module/components/TouchableOpacity.js.map +1 -1
  227. package/dist/module/components/TouchableWithoutFeedback.js +3 -2
  228. package/dist/module/components/TouchableWithoutFeedback.js.map +1 -1
  229. package/dist/module/components/View.js +3 -2
  230. package/dist/module/components/View.js.map +1 -1
  231. package/dist/module/components/VirtualizedList.js +3 -2
  232. package/dist/module/components/VirtualizedList.js.map +1 -1
  233. package/dist/module/components/copyComponentProperties.js +15 -0
  234. package/dist/module/components/copyComponentProperties.js.map +1 -0
  235. package/dist/module/components/index.cjs +52 -4
  236. package/dist/module/components/index.cjs.map +1 -1
  237. package/dist/module/components/react-native-safe-area-context.native.js +9 -1
  238. package/dist/module/components/react-native-safe-area-context.native.js.map +1 -1
  239. package/dist/module/jest/index.js +3 -1
  240. package/dist/module/jest/index.js.map +1 -1
  241. package/dist/module/metro/cache-version.js +39 -0
  242. package/dist/module/metro/cache-version.js.map +1 -0
  243. package/dist/module/metro/index.js +2 -0
  244. package/dist/module/metro/index.js.map +1 -1
  245. package/dist/module/metro/metro-transformer.js +16 -3
  246. package/dist/module/metro/metro-transformer.js.map +1 -1
  247. package/dist/module/metro/resolver.js +5 -3
  248. package/dist/module/metro/resolver.js.map +1 -1
  249. package/dist/module/metro/typescript.js +26 -6
  250. package/dist/module/metro/typescript.js.map +1 -1
  251. package/dist/module/metro/warnings.js +131 -0
  252. package/dist/module/metro/warnings.js.map +1 -0
  253. package/dist/module/native/api.js +22 -14
  254. package/dist/module/native/api.js.map +1 -1
  255. package/dist/module/native/conditions/attributes.js +16 -9
  256. package/dist/module/native/conditions/attributes.js.map +1 -1
  257. package/dist/module/native/conditions/container-query.js +11 -11
  258. package/dist/module/native/conditions/container-query.js.map +1 -1
  259. package/dist/module/native/conditions/guards.js +7 -0
  260. package/dist/module/native/conditions/guards.js.map +1 -1
  261. package/dist/module/native/conditions/media-query.js +1 -1
  262. package/dist/module/native/conditions/media-query.js.map +1 -1
  263. package/dist/module/native/objects.js +11 -18
  264. package/dist/module/native/objects.js.map +1 -1
  265. package/dist/module/native/react/interaction.js +10 -5
  266. package/dist/module/native/react/interaction.js.map +1 -1
  267. package/dist/module/native/react/rules.js +46 -39
  268. package/dist/module/native/react/rules.js.map +1 -1
  269. package/dist/module/native/react/useNativeCss.js +83 -22
  270. package/dist/module/native/react/useNativeCss.js.map +1 -1
  271. package/dist/module/native/react/usePassthrough.js +5 -2
  272. package/dist/module/native/react/usePassthrough.js.map +1 -1
  273. package/dist/module/native/reactivity.js +131 -66
  274. package/dist/module/native/reactivity.js.map +1 -1
  275. package/dist/module/native/reanimated.js +15 -3
  276. package/dist/module/native/reanimated.js.map +1 -1
  277. package/dist/module/native/styles/calculate-props.js +139 -26
  278. package/dist/module/native/styles/calculate-props.js.map +1 -1
  279. package/dist/module/native/styles/functions/animation-timing.js +2 -1
  280. package/dist/module/native/styles/functions/animation-timing.js.map +1 -1
  281. package/dist/module/native/styles/functions/color-mix.js +63 -0
  282. package/dist/module/native/styles/functions/color-mix.js.map +1 -0
  283. package/dist/module/native/styles/functions/filters.js +17 -4
  284. package/dist/module/native/styles/functions/filters.js.map +1 -1
  285. package/dist/module/native/styles/functions/index.js +1 -0
  286. package/dist/module/native/styles/functions/index.js.map +1 -1
  287. package/dist/module/native/styles/functions/numeric-functions.js +4 -3
  288. package/dist/module/native/styles/functions/numeric-functions.js.map +1 -1
  289. package/dist/module/native/styles/functions/platform-functions.js +2 -1
  290. package/dist/module/native/styles/functions/platform-functions.js.map +1 -1
  291. package/dist/module/native/styles/functions/string-functions.js +19 -5
  292. package/dist/module/native/styles/functions/string-functions.js.map +1 -1
  293. package/dist/module/native/styles/functions/transform-functions.js +93 -104
  294. package/dist/module/native/styles/functions/transform-functions.js.map +1 -1
  295. package/dist/module/native/styles/index.js +362 -34
  296. package/dist/module/native/styles/index.js.map +1 -1
  297. package/dist/module/native/styles/resolve.js +136 -19
  298. package/dist/module/native/styles/resolve.js.map +1 -1
  299. package/dist/module/native/styles/scale-factor.js +8 -0
  300. package/dist/module/native/styles/scale-factor.js.map +1 -0
  301. package/dist/module/native/styles/shorthands/_handler.js +11 -1
  302. package/dist/module/native/styles/shorthands/_handler.js.map +1 -1
  303. package/dist/module/native/styles/shorthands/animation.js +6 -3
  304. package/dist/module/native/styles/shorthands/animation.js.map +1 -1
  305. package/dist/module/native/styles/shorthands/box-shadow.js +43 -21
  306. package/dist/module/native/styles/shorthands/box-shadow.js.map +1 -1
  307. package/dist/module/native/styles/shorthands/index.js +1 -0
  308. package/dist/module/native/styles/shorthands/index.js.map +1 -1
  309. package/dist/module/native/styles/shorthands/logical-border-width.js +18 -0
  310. package/dist/module/native/styles/shorthands/logical-border-width.js.map +1 -0
  311. package/dist/module/native/styles/shorthands/transform.js +31 -8
  312. package/dist/module/native/styles/shorthands/transform.js.map +1 -1
  313. package/dist/module/native/styles/variables.js +174 -50
  314. package/dist/module/native/styles/variables.js.map +1 -1
  315. package/dist/module/native-internal/root.js +44 -7
  316. package/dist/module/native-internal/root.js.map +1 -1
  317. package/dist/module/native-internal/style-collection.js +45 -75
  318. package/dist/module/native-internal/style-collection.js.map +1 -1
  319. package/dist/module/native-internal/variables.js +2 -2
  320. package/dist/module/native-internal/variables.js.map +1 -1
  321. package/dist/module/utilities/dot-notation.types.js +2 -0
  322. package/dist/module/utilities/equality.js +37 -0
  323. package/dist/module/utilities/equality.js.map +1 -0
  324. package/dist/module/utilities/index.js +1 -0
  325. package/dist/module/utilities/index.js.map +1 -1
  326. package/dist/module/utilities/specificity.js +12 -12
  327. package/dist/module/utilities/specificity.js.map +1 -1
  328. package/dist/module/utilities/style-descriptor.js +30 -8
  329. package/dist/module/utilities/style-descriptor.js.map +1 -1
  330. package/dist/module/web/api.js +7 -4
  331. package/dist/module/web/api.js.map +1 -1
  332. package/dist/module/web/assign-style.js +4 -1
  333. package/dist/module/web/assign-style.js.map +1 -1
  334. package/dist/typescript/commonjs/src/babel/helpers.d.ts +2 -1
  335. package/dist/typescript/commonjs/src/babel/helpers.d.ts.map +1 -1
  336. package/dist/typescript/commonjs/src/babel/import-plugin.d.ts.map +1 -1
  337. package/dist/typescript/commonjs/src/babel/react-native-web.d.ts +2 -1
  338. package/dist/typescript/commonjs/src/babel/react-native-web.d.ts.map +1 -1
  339. package/dist/typescript/commonjs/src/babel/react-native.d.ts.map +1 -1
  340. package/dist/typescript/commonjs/src/compiler/atRules.d.ts +4 -1
  341. package/dist/typescript/commonjs/src/compiler/atRules.d.ts.map +1 -1
  342. package/dist/typescript/commonjs/src/compiler/compiler.d.ts +1 -5
  343. package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -1
  344. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +26 -12
  345. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -1
  346. package/dist/typescript/commonjs/src/compiler/declarations.d.ts +3 -3
  347. package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -1
  348. package/dist/typescript/commonjs/src/compiler/individual-transforms.d.ts +10 -0
  349. package/dist/typescript/commonjs/src/compiler/individual-transforms.d.ts.map +1 -0
  350. package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts +1 -1
  351. package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts.map +1 -1
  352. package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts.map +1 -1
  353. package/dist/typescript/commonjs/src/compiler/media-query.d.ts +1 -1
  354. package/dist/typescript/commonjs/src/compiler/media-query.d.ts.map +1 -1
  355. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts +2 -1
  356. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -1
  357. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +10 -10
  358. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -1
  359. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +2 -4
  360. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -1
  361. package/dist/typescript/commonjs/src/components/Button.d.ts +2 -4
  362. package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -1
  363. package/dist/typescript/commonjs/src/components/FlatList.d.ts +2 -2
  364. package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -1
  365. package/dist/typescript/commonjs/src/components/Image.d.ts +2 -4
  366. package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -1
  367. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts +2 -4
  368. package/dist/typescript/commonjs/src/components/ImageBackground.d.ts.map +1 -1
  369. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts +2 -4
  370. package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts.map +1 -1
  371. package/dist/typescript/commonjs/src/components/Pressable.d.ts +2 -4
  372. package/dist/typescript/commonjs/src/components/Pressable.d.ts.map +1 -1
  373. package/dist/typescript/commonjs/src/components/SafeAreaProvider.d.ts +2 -0
  374. package/dist/typescript/commonjs/src/components/SafeAreaProvider.d.ts.map +1 -0
  375. package/dist/typescript/commonjs/src/components/ScrollView.d.ts +2 -4
  376. package/dist/typescript/commonjs/src/components/ScrollView.d.ts.map +1 -1
  377. package/dist/typescript/commonjs/src/components/Switch.d.ts +2 -6
  378. package/dist/typescript/commonjs/src/components/Switch.d.ts.map +1 -1
  379. package/dist/typescript/commonjs/src/components/Text.d.ts +2 -6
  380. package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -1
  381. package/dist/typescript/commonjs/src/components/TextInput.d.ts +2 -4
  382. package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -1
  383. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts +2 -4
  384. package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts.map +1 -1
  385. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts +2 -4
  386. package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts.map +1 -1
  387. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts +2 -4
  388. package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts.map +1 -1
  389. package/dist/typescript/commonjs/src/components/View.d.ts +2 -6
  390. package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -1
  391. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts +2 -2
  392. package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts.map +1 -1
  393. package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts +5 -0
  394. package/dist/typescript/commonjs/src/components/copyComponentProperties.d.ts.map +1 -0
  395. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts +2 -1
  396. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts.map +1 -1
  397. package/dist/typescript/commonjs/src/jest/index.d.ts +4 -12
  398. package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -1
  399. package/dist/typescript/commonjs/src/metro/cache-version.d.ts +8 -0
  400. package/dist/typescript/commonjs/src/metro/cache-version.d.ts.map +1 -0
  401. package/dist/typescript/commonjs/src/metro/index.d.ts +8 -4
  402. package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -1
  403. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts +9 -4
  404. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -1
  405. package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -1
  406. package/dist/typescript/commonjs/src/metro/typescript.d.ts.map +1 -1
  407. package/dist/typescript/commonjs/src/metro/warnings.d.ts +13 -0
  408. package/dist/typescript/commonjs/src/metro/warnings.d.ts.map +1 -0
  409. package/dist/typescript/commonjs/src/native/api.d.ts +5 -9
  410. package/dist/typescript/commonjs/src/native/api.d.ts.map +1 -1
  411. package/dist/typescript/commonjs/src/native/conditions/container-query.d.ts.map +1 -1
  412. package/dist/typescript/commonjs/src/native/conditions/guards.d.ts +2 -1
  413. package/dist/typescript/commonjs/src/native/conditions/guards.d.ts.map +1 -1
  414. package/dist/typescript/commonjs/src/native/objects.d.ts.map +1 -1
  415. package/dist/typescript/commonjs/src/native/react/interaction.d.ts +1 -1
  416. package/dist/typescript/commonjs/src/native/react/interaction.d.ts.map +1 -1
  417. package/dist/typescript/commonjs/src/native/react/rules.d.ts +7 -2
  418. package/dist/typescript/commonjs/src/native/react/rules.d.ts.map +1 -1
  419. package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts +1 -4
  420. package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts.map +1 -1
  421. package/dist/typescript/commonjs/src/native/react/usePassthrough.d.ts.map +1 -1
  422. package/dist/typescript/commonjs/src/native/reactivity.d.ts +36 -18
  423. package/dist/typescript/commonjs/src/native/reactivity.d.ts.map +1 -1
  424. package/dist/typescript/commonjs/src/native/reanimated.d.ts.map +1 -1
  425. package/dist/typescript/commonjs/src/native/styles/calculate-props.d.ts +11 -2
  426. package/dist/typescript/commonjs/src/native/styles/calculate-props.d.ts.map +1 -1
  427. package/dist/typescript/commonjs/src/native/styles/functions/animation-timing.d.ts.map +1 -1
  428. package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts +3 -0
  429. package/dist/typescript/commonjs/src/native/styles/functions/color-mix.d.ts.map +1 -0
  430. package/dist/typescript/commonjs/src/native/styles/functions/filters.d.ts +2 -0
  431. package/dist/typescript/commonjs/src/native/styles/functions/filters.d.ts.map +1 -1
  432. package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts +1 -0
  433. package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts.map +1 -1
  434. package/dist/typescript/commonjs/src/native/styles/functions/numeric-functions.d.ts.map +1 -1
  435. package/dist/typescript/commonjs/src/native/styles/functions/platform-functions.d.ts.map +1 -1
  436. package/dist/typescript/commonjs/src/native/styles/functions/string-functions.d.ts +2 -0
  437. package/dist/typescript/commonjs/src/native/styles/functions/string-functions.d.ts.map +1 -1
  438. package/dist/typescript/commonjs/src/native/styles/functions/transform-functions.d.ts +2 -0
  439. package/dist/typescript/commonjs/src/native/styles/functions/transform-functions.d.ts.map +1 -1
  440. package/dist/typescript/commonjs/src/native/styles/index.d.ts +16 -4
  441. package/dist/typescript/commonjs/src/native/styles/index.d.ts.map +1 -1
  442. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts +4 -1
  443. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts.map +1 -1
  444. package/dist/typescript/commonjs/src/native/styles/scale-factor.d.ts +2 -0
  445. package/dist/typescript/commonjs/src/native/styles/scale-factor.d.ts.map +1 -0
  446. package/dist/typescript/commonjs/src/native/styles/shorthands/_handler.d.ts.map +1 -1
  447. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts.map +1 -1
  448. package/dist/typescript/commonjs/src/native/styles/shorthands/box-shadow.d.ts.map +1 -1
  449. package/dist/typescript/commonjs/src/native/styles/shorthands/index.d.ts +1 -0
  450. package/dist/typescript/commonjs/src/native/styles/shorthands/index.d.ts.map +1 -1
  451. package/dist/typescript/commonjs/src/native/styles/shorthands/logical-border-width.d.ts +4 -0
  452. package/dist/typescript/commonjs/src/native/styles/shorthands/logical-border-width.d.ts.map +1 -0
  453. package/dist/typescript/commonjs/src/native/styles/shorthands/transform.d.ts.map +1 -1
  454. package/dist/typescript/commonjs/src/native/styles/variables.d.ts +3 -2
  455. package/dist/typescript/commonjs/src/native/styles/variables.d.ts.map +1 -1
  456. package/dist/typescript/commonjs/src/native-internal/root.d.ts +45 -0
  457. package/dist/typescript/commonjs/src/native-internal/root.d.ts.map +1 -1
  458. package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts +2 -2
  459. package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts.map +1 -1
  460. package/dist/typescript/commonjs/src/native-internal/variables.d.ts +1 -1
  461. package/dist/typescript/commonjs/src/native-internal/variables.d.ts.map +1 -1
  462. package/dist/typescript/commonjs/src/runtime.types.d.ts +20 -15
  463. package/dist/typescript/commonjs/src/runtime.types.d.ts.map +1 -1
  464. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts +3 -2
  465. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts.map +1 -1
  466. package/dist/typescript/commonjs/src/utilities/equality.d.ts +2 -0
  467. package/dist/typescript/commonjs/src/utilities/equality.d.ts.map +1 -0
  468. package/dist/typescript/commonjs/src/utilities/index.d.ts +1 -0
  469. package/dist/typescript/commonjs/src/utilities/index.d.ts.map +1 -1
  470. package/dist/typescript/commonjs/src/utilities/specificity.d.ts.map +1 -1
  471. package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts +14 -1
  472. package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts.map +1 -1
  473. package/dist/typescript/commonjs/src/web/api.d.ts +5 -5
  474. package/dist/typescript/commonjs/src/web/api.d.ts.map +1 -1
  475. package/dist/typescript/commonjs/src/web/assign-style.d.ts.map +1 -1
  476. package/dist/typescript/module/src/babel/helpers.d.ts +2 -1
  477. package/dist/typescript/module/src/babel/helpers.d.ts.map +1 -1
  478. package/dist/typescript/module/src/babel/import-plugin.d.ts +1 -1
  479. package/dist/typescript/module/src/babel/import-plugin.d.ts.map +1 -1
  480. package/dist/typescript/module/src/babel/react-native-web.d.ts +2 -1
  481. package/dist/typescript/module/src/babel/react-native-web.d.ts.map +1 -1
  482. package/dist/typescript/module/src/babel/react-native.d.ts.map +1 -1
  483. package/dist/typescript/module/src/compiler/atRules.d.ts +6 -3
  484. package/dist/typescript/module/src/compiler/atRules.d.ts.map +1 -1
  485. package/dist/typescript/module/src/compiler/compiler.d.ts +3 -7
  486. package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -1
  487. package/dist/typescript/module/src/compiler/compiler.types.d.ts +27 -13
  488. package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -1
  489. package/dist/typescript/module/src/compiler/container-query.d.ts +2 -2
  490. package/dist/typescript/module/src/compiler/container-query.d.ts.map +1 -1
  491. package/dist/typescript/module/src/compiler/declarations.d.ts +5 -5
  492. package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -1
  493. package/dist/typescript/module/src/compiler/index.d.ts +2 -2
  494. package/dist/typescript/module/src/compiler/index.d.ts.map +1 -1
  495. package/dist/typescript/module/src/compiler/individual-transforms.d.ts +10 -0
  496. package/dist/typescript/module/src/compiler/individual-transforms.d.ts.map +1 -0
  497. package/dist/typescript/module/src/compiler/inline-variables.d.ts +2 -2
  498. package/dist/typescript/module/src/compiler/inline-variables.d.ts.map +1 -1
  499. package/dist/typescript/module/src/compiler/keyframes.d.ts +2 -2
  500. package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -1
  501. package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts.map +1 -1
  502. package/dist/typescript/module/src/compiler/media-query.d.ts +3 -3
  503. package/dist/typescript/module/src/compiler/media-query.d.ts.map +1 -1
  504. package/dist/typescript/module/src/compiler/pseudo-elements.d.ts +1 -1
  505. package/dist/typescript/module/src/compiler/pseudo-elements.d.ts.map +1 -1
  506. package/dist/typescript/module/src/compiler/selector-builder.d.ts +3 -2
  507. package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -1
  508. package/dist/typescript/module/src/compiler/selectors.d.ts +2 -2
  509. package/dist/typescript/module/src/compiler/selectors.d.ts.map +1 -1
  510. package/dist/typescript/module/src/compiler/stylesheet.d.ts +10 -10
  511. package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -1
  512. package/dist/typescript/module/src/components/ActivityIndicator.d.ts +2 -4
  513. package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -1
  514. package/dist/typescript/module/src/components/Button.d.ts +2 -4
  515. package/dist/typescript/module/src/components/Button.d.ts.map +1 -1
  516. package/dist/typescript/module/src/components/FlatList.d.ts +2 -2
  517. package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -1
  518. package/dist/typescript/module/src/components/Image.d.ts +2 -4
  519. package/dist/typescript/module/src/components/Image.d.ts.map +1 -1
  520. package/dist/typescript/module/src/components/ImageBackground.d.ts +2 -4
  521. package/dist/typescript/module/src/components/ImageBackground.d.ts.map +1 -1
  522. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts +2 -4
  523. package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts.map +1 -1
  524. package/dist/typescript/module/src/components/Pressable.d.ts +2 -4
  525. package/dist/typescript/module/src/components/Pressable.d.ts.map +1 -1
  526. package/dist/typescript/module/src/components/SafeAreaProvider.d.ts +2 -0
  527. package/dist/typescript/module/src/components/SafeAreaProvider.d.ts.map +1 -0
  528. package/dist/typescript/module/src/components/ScrollView.d.ts +2 -4
  529. package/dist/typescript/module/src/components/ScrollView.d.ts.map +1 -1
  530. package/dist/typescript/module/src/components/Switch.d.ts +2 -6
  531. package/dist/typescript/module/src/components/Switch.d.ts.map +1 -1
  532. package/dist/typescript/module/src/components/Text.d.ts +2 -6
  533. package/dist/typescript/module/src/components/Text.d.ts.map +1 -1
  534. package/dist/typescript/module/src/components/TextInput.d.ts +2 -4
  535. package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -1
  536. package/dist/typescript/module/src/components/TouchableHighlight.d.ts +2 -4
  537. package/dist/typescript/module/src/components/TouchableHighlight.d.ts.map +1 -1
  538. package/dist/typescript/module/src/components/TouchableOpacity.d.ts +2 -4
  539. package/dist/typescript/module/src/components/TouchableOpacity.d.ts.map +1 -1
  540. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts +2 -4
  541. package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts.map +1 -1
  542. package/dist/typescript/module/src/components/View.d.ts +2 -6
  543. package/dist/typescript/module/src/components/View.d.ts.map +1 -1
  544. package/dist/typescript/module/src/components/VirtualizedList.d.ts +2 -2
  545. package/dist/typescript/module/src/components/VirtualizedList.d.ts.map +1 -1
  546. package/dist/typescript/module/src/components/copyComponentProperties.d.ts +5 -0
  547. package/dist/typescript/module/src/components/copyComponentProperties.d.ts.map +1 -0
  548. package/dist/typescript/module/src/components/index.d.ts +16 -16
  549. package/dist/typescript/module/src/components/index.d.ts.map +1 -1
  550. package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts +2 -1
  551. package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts.map +1 -1
  552. package/dist/typescript/module/src/jest/index.d.ts +4 -12
  553. package/dist/typescript/module/src/jest/index.d.ts.map +1 -1
  554. package/dist/typescript/module/src/metro/cache-version.d.ts +8 -0
  555. package/dist/typescript/module/src/metro/cache-version.d.ts.map +1 -0
  556. package/dist/typescript/module/src/metro/index.d.ts +9 -5
  557. package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
  558. package/dist/typescript/module/src/metro/metro-transformer.d.ts +10 -5
  559. package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -1
  560. package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -1
  561. package/dist/typescript/module/src/metro/typescript.d.ts.map +1 -1
  562. package/dist/typescript/module/src/metro/warnings.d.ts +13 -0
  563. package/dist/typescript/module/src/metro/warnings.d.ts.map +1 -0
  564. package/dist/typescript/module/src/native/api.d.ts +6 -10
  565. package/dist/typescript/module/src/native/api.d.ts.map +1 -1
  566. package/dist/typescript/module/src/native/conditions/attributes.d.ts +1 -1
  567. package/dist/typescript/module/src/native/conditions/attributes.d.ts.map +1 -1
  568. package/dist/typescript/module/src/native/conditions/container-query.d.ts +2 -2
  569. package/dist/typescript/module/src/native/conditions/container-query.d.ts.map +1 -1
  570. package/dist/typescript/module/src/native/conditions/guards.d.ts +4 -3
  571. package/dist/typescript/module/src/native/conditions/guards.d.ts.map +1 -1
  572. package/dist/typescript/module/src/native/conditions/index.d.ts +3 -3
  573. package/dist/typescript/module/src/native/conditions/index.d.ts.map +1 -1
  574. package/dist/typescript/module/src/native/conditions/media-query.d.ts +1 -1
  575. package/dist/typescript/module/src/native/conditions/media-query.d.ts.map +1 -1
  576. package/dist/typescript/module/src/native/index.d.ts +3 -3
  577. package/dist/typescript/module/src/native/index.d.ts.map +1 -1
  578. package/dist/typescript/module/src/native/objects.d.ts.map +1 -1
  579. package/dist/typescript/module/src/native/react/interaction.d.ts +2 -2
  580. package/dist/typescript/module/src/native/react/interaction.d.ts.map +1 -1
  581. package/dist/typescript/module/src/native/react/rules.d.ts +9 -4
  582. package/dist/typescript/module/src/native/react/rules.d.ts.map +1 -1
  583. package/dist/typescript/module/src/native/react/useNativeCss.d.ts +5 -8
  584. package/dist/typescript/module/src/native/react/useNativeCss.d.ts.map +1 -1
  585. package/dist/typescript/module/src/native/react/usePassthrough.d.ts +1 -1
  586. package/dist/typescript/module/src/native/react/usePassthrough.d.ts.map +1 -1
  587. package/dist/typescript/module/src/native/reactivity.d.ts +36 -18
  588. package/dist/typescript/module/src/native/reactivity.d.ts.map +1 -1
  589. package/dist/typescript/module/src/native/reanimated.d.ts.map +1 -1
  590. package/dist/typescript/module/src/native/styles/calculate-props.d.ts +13 -4
  591. package/dist/typescript/module/src/native/styles/calculate-props.d.ts.map +1 -1
  592. package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts +1 -1
  593. package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts.map +1 -1
  594. package/dist/typescript/module/src/native/styles/functions/calc.d.ts +1 -1
  595. package/dist/typescript/module/src/native/styles/functions/calc.d.ts.map +1 -1
  596. package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts +3 -0
  597. package/dist/typescript/module/src/native/styles/functions/color-mix.d.ts.map +1 -0
  598. package/dist/typescript/module/src/native/styles/functions/filters.d.ts +3 -1
  599. package/dist/typescript/module/src/native/styles/functions/filters.d.ts.map +1 -1
  600. package/dist/typescript/module/src/native/styles/functions/index.d.ts +8 -7
  601. package/dist/typescript/module/src/native/styles/functions/index.d.ts.map +1 -1
  602. package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts +1 -1
  603. package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts.map +1 -1
  604. package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts +1 -1
  605. package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts.map +1 -1
  606. package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts +3 -1
  607. package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts.map +1 -1
  608. package/dist/typescript/module/src/native/styles/functions/transform-functions.d.ts +3 -1
  609. package/dist/typescript/module/src/native/styles/functions/transform-functions.d.ts.map +1 -1
  610. package/dist/typescript/module/src/native/styles/index.d.ts +20 -8
  611. package/dist/typescript/module/src/native/styles/index.d.ts.map +1 -1
  612. package/dist/typescript/module/src/native/styles/line-height.d.ts +1 -1
  613. package/dist/typescript/module/src/native/styles/line-height.d.ts.map +1 -1
  614. package/dist/typescript/module/src/native/styles/resolve.d.ts +7 -4
  615. package/dist/typescript/module/src/native/styles/resolve.d.ts.map +1 -1
  616. package/dist/typescript/module/src/native/styles/scale-factor.d.ts +2 -0
  617. package/dist/typescript/module/src/native/styles/scale-factor.d.ts.map +1 -0
  618. package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts +1 -1
  619. package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts.map +1 -1
  620. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts +2 -2
  621. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts.map +1 -1
  622. package/dist/typescript/module/src/native/styles/shorthands/border.d.ts +1 -1
  623. package/dist/typescript/module/src/native/styles/shorthands/border.d.ts.map +1 -1
  624. package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts +1 -1
  625. package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts.map +1 -1
  626. package/dist/typescript/module/src/native/styles/shorthands/index.d.ts +6 -5
  627. package/dist/typescript/module/src/native/styles/shorthands/index.d.ts.map +1 -1
  628. package/dist/typescript/module/src/native/styles/shorthands/logical-border-width.d.ts +4 -0
  629. package/dist/typescript/module/src/native/styles/shorthands/logical-border-width.d.ts.map +1 -0
  630. package/dist/typescript/module/src/native/styles/shorthands/text-shadow.d.ts +1 -1
  631. package/dist/typescript/module/src/native/styles/shorthands/text-shadow.d.ts.map +1 -1
  632. package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts +1 -1
  633. package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts.map +1 -1
  634. package/dist/typescript/module/src/native/styles/units.d.ts +1 -1
  635. package/dist/typescript/module/src/native/styles/units.d.ts.map +1 -1
  636. package/dist/typescript/module/src/native/styles/variables.d.ts +4 -3
  637. package/dist/typescript/module/src/native/styles/variables.d.ts.map +1 -1
  638. package/dist/typescript/module/src/native-internal/index.d.ts +3 -3
  639. package/dist/typescript/module/src/native-internal/index.d.ts.map +1 -1
  640. package/dist/typescript/module/src/native-internal/root.d.ts +46 -1
  641. package/dist/typescript/module/src/native-internal/root.d.ts.map +1 -1
  642. package/dist/typescript/module/src/native-internal/style-collection.d.ts +3 -3
  643. package/dist/typescript/module/src/native-internal/style-collection.d.ts.map +1 -1
  644. package/dist/typescript/module/src/native-internal/variables.d.ts +2 -2
  645. package/dist/typescript/module/src/native-internal/variables.d.ts.map +1 -1
  646. package/dist/typescript/module/src/runtime.d.ts +1 -1
  647. package/dist/typescript/module/src/runtime.d.ts.map +1 -1
  648. package/dist/typescript/module/src/runtime.native.d.ts +1 -1
  649. package/dist/typescript/module/src/runtime.native.d.ts.map +1 -1
  650. package/dist/typescript/module/src/runtime.types.d.ts +20 -15
  651. package/dist/typescript/module/src/runtime.types.d.ts.map +1 -1
  652. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts +3 -2
  653. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts.map +1 -1
  654. package/dist/typescript/module/src/utilities/equality.d.ts +2 -0
  655. package/dist/typescript/module/src/utilities/equality.d.ts.map +1 -0
  656. package/dist/typescript/module/src/utilities/index.d.ts +4 -3
  657. package/dist/typescript/module/src/utilities/index.d.ts.map +1 -1
  658. package/dist/typescript/module/src/utilities/specificity.d.ts +2 -2
  659. package/dist/typescript/module/src/utilities/specificity.d.ts.map +1 -1
  660. package/dist/typescript/module/src/utilities/style-descriptor.d.ts +14 -1
  661. package/dist/typescript/module/src/utilities/style-descriptor.d.ts.map +1 -1
  662. package/dist/typescript/module/src/web/api.d.ts +5 -5
  663. package/dist/typescript/module/src/web/api.d.ts.map +1 -1
  664. package/dist/typescript/module/src/web/assign-style.d.ts.map +1 -1
  665. package/dist/typescript/module/src/web/index.d.ts +3 -3
  666. package/dist/typescript/module/src/web/index.d.ts.map +1 -1
  667. package/node/babel.mjs +4 -0
  668. package/node/compiler.mjs +2 -0
  669. package/node/metro.mjs +2 -0
  670. package/package.json +81 -33
  671. package/src/babel/helpers.ts +8 -1
  672. package/src/babel/import-plugin.ts +31 -16
  673. package/src/babel/react-native-web.ts +32 -4
  674. package/src/babel/react-native.ts +9 -4
  675. package/src/compiler/atRules.ts +44 -0
  676. package/src/compiler/compiler.ts +282 -50
  677. package/src/compiler/compiler.types.ts +30 -12
  678. package/src/compiler/container-query.ts +8 -3
  679. package/src/compiler/declarations.ts +499 -241
  680. package/src/compiler/individual-transforms.ts +129 -0
  681. package/src/compiler/inline-variables.ts +67 -0
  682. package/src/compiler/lightningcss-loader.ts +21 -1
  683. package/src/compiler/media-query.ts +20 -9
  684. package/src/compiler/selector-builder.ts +34 -7
  685. package/src/compiler/stylesheet.ts +51 -15
  686. package/src/compiler/supports.ts +2 -2
  687. package/src/components/ActivityIndicator.tsx +8 -5
  688. package/src/components/Button.tsx +8 -3
  689. package/src/components/FlatList.tsx +14 -4
  690. package/src/components/Image.tsx +8 -3
  691. package/src/components/ImageBackground.tsx +10 -11
  692. package/src/components/KeyboardAvoidingView.tsx +10 -8
  693. package/src/components/Pressable.tsx +8 -3
  694. package/src/components/SafeAreaProvider.tsx +1 -0
  695. package/src/components/ScrollView.tsx +8 -5
  696. package/src/components/Switch.tsx +8 -3
  697. package/src/components/Text.tsx +8 -3
  698. package/src/components/TextInput.tsx +8 -3
  699. package/src/components/TouchableHighlight.tsx +8 -5
  700. package/src/components/TouchableOpacity.tsx +8 -5
  701. package/src/components/TouchableWithoutFeedback.tsx +8 -5
  702. package/src/components/View.tsx +8 -3
  703. package/src/components/VirtualizedList.tsx +17 -5
  704. package/src/components/copyComponentProperties.ts +21 -0
  705. package/src/components/index.cts +52 -4
  706. package/src/components/react-native-safe-area-context.native.tsx +20 -0
  707. package/src/jest/index.ts +7 -3
  708. package/src/metro/cache-version.ts +48 -0
  709. package/src/metro/index.ts +11 -4
  710. package/src/metro/metro-transformer.ts +26 -8
  711. package/src/metro/resolver.ts +10 -3
  712. package/src/metro/typescript.ts +53 -6
  713. package/src/metro/warnings.ts +187 -0
  714. package/src/native/api.tsx +32 -18
  715. package/src/native/conditions/attributes.ts +26 -9
  716. package/src/native/conditions/container-query.ts +11 -9
  717. package/src/native/conditions/guards.ts +13 -1
  718. package/src/native/conditions/media-query.ts +1 -1
  719. package/src/native/objects.ts +12 -22
  720. package/src/native/react/interaction.ts +11 -6
  721. package/src/native/react/rules.ts +58 -45
  722. package/src/native/react/useNativeCss.ts +100 -22
  723. package/src/native/react/usePassthrough.ts +3 -2
  724. package/src/native/reactivity.ts +169 -71
  725. package/src/native/reanimated.ts +24 -5
  726. package/src/native/styles/calculate-props.ts +179 -28
  727. package/src/native/styles/functions/animation-timing.ts +3 -1
  728. package/src/native/styles/functions/color-mix.ts +82 -0
  729. package/src/native/styles/functions/filters.ts +21 -6
  730. package/src/native/styles/functions/index.ts +1 -0
  731. package/src/native/styles/functions/numeric-functions.ts +7 -6
  732. package/src/native/styles/functions/platform-functions.ts +3 -1
  733. package/src/native/styles/functions/string-functions.ts +25 -5
  734. package/src/native/styles/functions/transform-functions.ts +111 -64
  735. package/src/native/styles/index.ts +425 -43
  736. package/src/native/styles/resolve.ts +188 -29
  737. package/src/native/styles/scale-factor.ts +9 -0
  738. package/src/native/styles/shorthands/_handler.ts +14 -1
  739. package/src/native/styles/shorthands/animation.ts +8 -2
  740. package/src/native/styles/shorthands/box-shadow.ts +46 -25
  741. package/src/native/styles/shorthands/index.ts +1 -0
  742. package/src/native/styles/shorthands/logical-border-width.ts +32 -0
  743. package/src/native/styles/shorthands/transform.ts +36 -11
  744. package/src/native/styles/variables.ts +251 -45
  745. package/src/native-internal/root.ts +83 -13
  746. package/src/native-internal/style-collection.ts +64 -95
  747. package/src/native-internal/variables.tsx +6 -4
  748. package/src/runtime.types.ts +38 -29
  749. package/src/utilities/dot-notation.types.ts +12 -4
  750. package/src/utilities/equality.ts +41 -0
  751. package/src/utilities/index.ts +1 -0
  752. package/src/utilities/specificity.ts +13 -12
  753. package/src/utilities/style-descriptor.ts +36 -14
  754. package/src/web/api.tsx +17 -13
  755. package/src/web/assign-style.ts +2 -1
  756. package/types.d.ts +14 -31
  757. package/dist/commonjs/compiler/inheritance.test.js +0 -78
  758. package/dist/commonjs/compiler/inheritance.test.js.map +0 -1
  759. package/dist/module/compiler/inheritance.test.js +0 -78
  760. package/dist/module/compiler/inheritance.test.js.map +0 -1
  761. package/dist/typescript/commonjs/.config/eslint.config.d.mts +0 -3
  762. package/dist/typescript/commonjs/.config/eslint.config.d.mts.map +0 -1
  763. package/dist/typescript/commonjs/eslint.config.d.mts +0 -2
  764. package/dist/typescript/commonjs/eslint.config.d.mts.map +0 -1
  765. package/dist/typescript/commonjs/example/app.config.d.ts +0 -4
  766. package/dist/typescript/commonjs/example/app.config.d.ts.map +0 -1
  767. package/dist/typescript/commonjs/example/index.d.ts +0 -2
  768. package/dist/typescript/commonjs/example/index.d.ts.map +0 -1
  769. package/dist/typescript/commonjs/example/metro.config.d.ts +0 -3
  770. package/dist/typescript/commonjs/example/metro.config.d.ts.map +0 -1
  771. package/dist/typescript/commonjs/example/postcss.config.d.mts +0 -7
  772. package/dist/typescript/commonjs/example/postcss.config.d.mts.map +0 -1
  773. package/dist/typescript/commonjs/example/src/App.d.ts +0 -3
  774. package/dist/typescript/commonjs/example/src/App.d.ts.map +0 -1
  775. package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts +0 -2
  776. package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts.map +0 -1
  777. package/dist/typescript/module/.config/eslint.config.d.mts +0 -3
  778. package/dist/typescript/module/.config/eslint.config.d.mts.map +0 -1
  779. package/dist/typescript/module/eslint.config.d.mts +0 -2
  780. package/dist/typescript/module/eslint.config.d.mts.map +0 -1
  781. package/dist/typescript/module/example/app.config.d.ts +0 -4
  782. package/dist/typescript/module/example/app.config.d.ts.map +0 -1
  783. package/dist/typescript/module/example/index.d.ts +0 -2
  784. package/dist/typescript/module/example/index.d.ts.map +0 -1
  785. package/dist/typescript/module/example/metro.config.d.ts +0 -3
  786. package/dist/typescript/module/example/metro.config.d.ts.map +0 -1
  787. package/dist/typescript/module/example/postcss.config.d.mts +0 -7
  788. package/dist/typescript/module/example/postcss.config.d.mts.map +0 -1
  789. package/dist/typescript/module/example/src/App.d.ts +0 -3
  790. package/dist/typescript/module/example/src/App.d.ts.map +0 -1
  791. package/dist/typescript/module/src/compiler/inheritance.test.d.ts +0 -2
  792. package/dist/typescript/module/src/compiler/inheritance.test.d.ts.map +0 -1
  793. package/src/compiler/inheritance.test.ts +0 -121
@@ -1 +1 @@
1
- {"version":3,"names":["createElement","INLINE_RULE_SYMBOL","cache","Map","usePassthrough","type","props","configs","config","source","target","classNames","styles","get","undefined","targetProps","Array","isArray","i","length","prop"],"sourceRoot":"../../../../src","sources":["native/react/usePassthrough.ts"],"mappings":";;AAAA;AACA,SAASA,aAAa,QAA4B,OAAO;AAEzD,SAASC,kBAAkB,QAAQ,YAAS;AAG5C,MAAMC,KAAK,GAAG,IAAIC,GAAG,CAA8B,CAAC;AAEpD,OAAO,SAASC,cAAcA,CAC5BC,IAAwB,EACxB;EAAE,GAAGC;AAA2B,CAAC,EACjCC,OAAiB,EACjB;EACA,KAAK,MAAMC,MAAM,IAAID,OAAO,EAAE;IAC5B,IAAI;MAAEE,MAAM;MAAEC;IAAO,CAAC,GAAGF,MAAM;IAE/B,MAAMG,UAAU,GAAGL,KAAK,CAACG,MAAM,CAAC;IAEhC,IAAIG,MAAM,GAAGV,KAAK,CAACW,GAAG,CAACJ,MAAM,CAAC;IAC9B,IAAIG,MAAM,KAAKE,SAAS,EAAE;MACxBF,MAAM,GAAG;QAAE,CAACX,kBAAkB,GAAGU;MAAW,CAAC;IAC/C;IAEA,OAAOL,KAAK,CAACG,MAAM,CAAC;IAEpB,IAAIE,UAAU,KAAKG,SAAS,IAAIJ,MAAM,KAAK,KAAK,EAAE;MAChD;IACF;IAEA,IAAIK,WAAW,GAAGT,KAAK;IAEvB,IAAIU,KAAK,CAACC,OAAO,CAACP,MAAM,CAAC,EAAE;MACzB,KAAK,IAAIQ,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGR,MAAM,CAACS,MAAM,GAAG,CAAC,EAAED,CAAC,EAAE,EAAE;QAC1C,MAAME,IAAI,GAAGV,MAAM,CAACQ,CAAC,CAAE;QACvBZ,KAAK,CAACc,IAAI,CAAC,KAAK,CAAC,CAAC;QAClBL,WAAW,GAAGT,KAAK,CAACc,IAAI,CAAC;MAC3B;MACAV,MAAM,GAAGA,MAAM,CAACA,MAAM,CAACS,MAAM,GAAG,CAAC,CAAE;IACrC;IAEA,IAAIH,KAAK,CAACC,OAAO,CAACF,WAAW,CAACL,MAAM,CAAC,CAAC,EAAE;MACtCK,WAAW,CAACL,MAAM,CAAC,GAAG,CAAC,GAAGK,WAAW,CAACL,MAAM,CAAC,EAAEE,MAAM,CAAC;IACxD,CAAC,MAAM,IAAIG,WAAW,CAACL,MAAM,CAAC,EAAE;MAC9BK,WAAW,CAACL,MAAM,CAAC,GAAG,CAACK,WAAW,CAACL,MAAM,CAAC,EAAEE,MAAM,CAAC;IACrD,CAAC,MAAM;MACLG,WAAW,CAACL,MAAM,CAAC,GAAGE,MAAM;IAC9B;EACF;EAEA,oBAAOZ,aAAa,CAACK,IAAI,EAAEC,KAAK,CAAC;AACnC","ignoreList":[]}
1
+ {"version":3,"names":["createElement","INLINE_RULE_SYMBOL","cache","Map","usePassthrough","type","props","configs","config","source","target","classNames","styles","get","undefined","targetProps","Array","isArray","i","length","prop","value"],"sourceRoot":"../../../../src","sources":["native/react/usePassthrough.ts"],"mappings":";;AAAA;AACA,SAASA,aAAa,QAA4B,OAAO;AAEzD,SAASC,kBAAkB,QAAQ,YAAS;AAG5C,MAAMC,KAAK,GAAG,IAAIC,GAAG,CAA8B,CAAC;AAEpD,OAAO,SAASC,cAAcA,CAC5BC,IAAwB,EACxB;EAAE,GAAGC;AAA2B,CAAC,EACjCC,OAAiB,EACjB;EACA,KAAK,MAAMC,MAAM,IAAID,OAAO,EAAE;IAC5B,IAAI;MAAEE,MAAM;MAAEC;IAAO,CAAC,GAAGF,MAAM;IAE/B,MAAMG,UAAU,GAAGL,KAAK,CAACG,MAAM,CAAC;IAEhC,IAAIG,MAAM,GAAGV,KAAK,CAACW,GAAG,CAACJ,MAAM,CAAC;IAC9B,IAAIG,MAAM,KAAKE,SAAS,EAAE;MACxBF,MAAM,GAAG;QAAE,CAACX,kBAAkB,GAAGU;MAAW,CAAC;IAC/C;IAEA,OAAOL,KAAK,CAACG,MAAM,CAAC;IAEpB,IAAIE,UAAU,KAAKG,SAAS,IAAIJ,MAAM,KAAK,KAAK,EAAE;MAChD;IACF;IAEA,IAAIK,WAAW,GAAGT,KAAK;IAEvB,IAAIU,KAAK,CAACC,OAAO,CAACP,MAAM,CAAC,EAAE;MACzB,KAAK,IAAIQ,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGR,MAAM,CAACS,MAAM,GAAG,CAAC,EAAED,CAAC,EAAE,EAAE;QAC1C,MAAME,IAAI,GAAGV,MAAM,CAACQ,CAAC,CAAE;QACvB,MAAMG,KAAK,GAAGN,WAAW,CAACK,IAAI,CAAC;QAC/BL,WAAW,CAACK,IAAI,CAAC,GAAGJ,KAAK,CAACC,OAAO,CAACI,KAAK,CAAC,GAAG,CAAC,GAAGA,KAAK,CAAC,GAAG;UAAE,GAAGA;QAAM,CAAC;QACpEN,WAAW,GAAGA,WAAW,CAACK,IAAI,CAAC;MACjC;MACAV,MAAM,GAAGA,MAAM,CAACA,MAAM,CAACS,MAAM,GAAG,CAAC,CAAE;IACrC;IAEA,IAAIH,KAAK,CAACC,OAAO,CAACF,WAAW,CAACL,MAAM,CAAC,CAAC,EAAE;MACtCK,WAAW,CAACL,MAAM,CAAC,GAAG,CAAC,GAAGK,WAAW,CAACL,MAAM,CAAC,EAAEE,MAAM,CAAC;IACxD,CAAC,MAAM,IAAIG,WAAW,CAACL,MAAM,CAAC,EAAE;MAC9BK,WAAW,CAACL,MAAM,CAAC,GAAG,CAACK,WAAW,CAACL,MAAM,CAAC,EAAEE,MAAM,CAAC;IACrD,CAAC,MAAM;MACLG,WAAW,CAACL,MAAM,CAAC,GAAGE,MAAM;IAC9B;EACF;EAEA,oBAAOZ,aAAa,CAACK,IAAI,EAAEC,KAAK,CAAC;AACnC","ignoreList":[]}
@@ -3,7 +3,6 @@
3
3
  /* eslint-disable */
4
4
  import { createContext } from "react";
5
5
  import { Appearance, Dimensions } from "react-native";
6
- export const observableBatch = {};
7
6
  export function observable(init, equality = Object.is) {
8
7
  let value;
9
8
  let isStatic = typeof init !== "function";
@@ -15,9 +14,10 @@ export function observable(init, equality = Object.is) {
15
14
  }
16
15
  const observers = new Set();
17
16
  const effect = {
18
- observers,
17
+ observers: new Set(),
19
18
  run: () => {
20
19
  if (!isStatic) {
20
+ cleanupEffect(effect);
21
21
  const nextValue = init(getter, lastArg);
22
22
  if (equality(value, nextValue)) {
23
23
  return;
@@ -27,13 +27,17 @@ export function observable(init, equality = Object.is) {
27
27
  notify();
28
28
  }
29
29
  };
30
- const getter = observable => observable.get(effect);
31
- function get(effect) {
32
- if (effect) {
33
- observers.add(effect);
30
+ const getter = observable => observable.get(observers.size > 0 ? effect : undefined);
31
+ function get(subscriber) {
32
+ if (subscriber) {
33
+ if (observers.size === 0 && !isStatic) didInit = false;
34
+ observers.add(subscriber);
35
+ subscriber.observers.add(obs);
34
36
  }
35
37
  if (!didInit) {
36
- value = init(getter, undefined);
38
+ cleanupEffect(effect);
39
+ value = init(getter, lastArg);
40
+ didInit = observers.size > 0;
37
41
  }
38
42
  return value;
39
43
  }
@@ -44,8 +48,9 @@ export function observable(init, equality = Object.is) {
44
48
  }
45
49
  value = arg;
46
50
  } else {
51
+ cleanupEffect(effect);
47
52
  const nextValue = init(getter, arg);
48
- didInit = true;
53
+ didInit = observers.size > 0;
49
54
  lastArg = arg;
50
55
  if (equality(value, nextValue)) {
51
56
  return;
@@ -68,16 +73,48 @@ export function observable(init, equality = Object.is) {
68
73
  observers,
69
74
  get,
70
75
  set,
71
- run: effect.run
76
+ run: effect.run,
77
+ unsubscribe(subscriber) {
78
+ if (observers.delete(subscriber) && observers.size === 0 && !isStatic) {
79
+ cleanupEffect(effect);
80
+ didInit = false;
81
+ }
82
+ subscriber.observers.delete(obs);
83
+ }
72
84
  };
73
85
  return obs;
74
86
  }
75
87
  export function cleanupEffect(effect) {
76
88
  if (!effect) return;
77
- for (const dep of effect.observers) {
78
- dep.observers.delete(effect);
79
- }
89
+ const dependencies = effect.dependencies = Array.from(effect.observers);
90
+ // Snapshot before detaching so computed observables return cached values
91
+ effect.snapshots = dependencies.map(observable => [observable, observable.get()]);
80
92
  effect.observers.clear();
93
+ for (const dep of dependencies) {
94
+ dep.unsubscribe(effect);
95
+ }
96
+ }
97
+
98
+ /** Whether any of the effect's dependencies changed since cleanupEffect() */
99
+ export function hasChangedDependencies(effect) {
100
+ const snapshots = effect.snapshots;
101
+ if (!snapshots) return false;
102
+ for (const [observable, value] of snapshots) {
103
+ if (!Object.is(observable.get(), value)) return true;
104
+ }
105
+ return false;
106
+ }
107
+ export function batch(update) {
108
+ const notified = new Set();
109
+ observableBatch.current = notified;
110
+ update();
111
+
112
+ // Deleted before it runs, so an effect notified again during the drain is re-added and runs again
113
+ for (const effect of notified) {
114
+ notified.delete(effect);
115
+ effect.run();
116
+ }
117
+ observableBatch.current = undefined;
81
118
  }
82
119
 
83
120
  /** Family Helpers ************************************************************/
@@ -85,16 +122,20 @@ export function cleanupEffect(effect) {
85
122
  export function family(fn) {
86
123
  const map = new Map();
87
124
  return Object.assign((key, args) => {
88
- let value = map.get(key);
89
- if (!value) {
90
- value = fn(key, args);
91
- map.set(key, value);
92
- }
125
+ if (map.has(key)) return map.get(key);
126
+ const value = fn(key, args);
127
+ map.set(key, value);
93
128
  return value;
94
129
  }, {
95
130
  delete(key) {
96
131
  return map.delete(key);
97
132
  },
133
+ deleteIf(key, value) {
134
+ return map.get(key) === value && map.delete(key);
135
+ },
136
+ size() {
137
+ return map.size;
138
+ },
98
139
  clear() {
99
140
  return map.clear();
100
141
  }
@@ -103,11 +144,9 @@ export function family(fn) {
103
144
  export function weakFamily(fn) {
104
145
  const map = new WeakMap();
105
146
  return Object.assign((key, args) => {
106
- let value = map.get(key);
107
- if (!value) {
108
- value = fn(key, args);
109
- map.set(key, value);
110
- }
147
+ if (map.has(key)) return map.get(key);
148
+ const value = fn(key, args);
149
+ map.set(key, value);
111
150
  return value;
112
151
  }, {
113
152
  has: key => map.has(key)
@@ -117,53 +156,79 @@ export function weakFamily(fn) {
117
156
  /********************************* Variables **********************************/
118
157
 
119
158
  export const VAR_SYMBOL = Symbol.for("react-native-css.var");
120
- /** Pseudo Classes ************************************************************/
121
-
122
- export const hoverFamily = weakFamily(() => observable(false));
123
- export const activeFamily = weakFamily(() => observable(false));
124
- export const focusFamily = weakFamily(() => observable(false));
125
-
126
- /** Dimensions ****************************************************************/
127
-
128
- export const dimensions = observable(Dimensions.get("window"));
129
- export const vw = observable((read, value) => value ?? read(dimensions)?.width);
130
- export const vh = observable((read, value) => value ?? read(dimensions)?.height);
131
- Dimensions.addEventListener("change", ({
132
- window
133
- }) => {
134
- observableBatch.current = new Set();
135
- vw.set(window.width);
136
- vh.set(window.height);
137
- for (const effect of observableBatch.current) {
138
- effect.run();
159
+ // Variable lookup is presence-keyed, so an entry with no value produces no key rather than one that stops the cascade
160
+ export function toVariableRecord(variables) {
161
+ const record = {};
162
+ for (const [name, value] of Object.entries(variables)) {
163
+ if (value !== undefined) {
164
+ record[name.replace(/^--/, "")] = value;
165
+ }
139
166
  }
140
- observableBatch.current = undefined;
141
- });
142
-
143
- /** Color Scheme **************************************************************/
144
-
145
- export const colorScheme = observable(Appearance.getColorScheme());
146
- Appearance.addChangeListener(event => colorScheme.set(event.colorScheme));
167
+ return record;
168
+ }
147
169
 
148
- /** Containers ****************************************************************/
170
+ /******************************* Process globals ******************************/
149
171
 
150
- export const ContainerContext = /*#__PURE__*/createContext({});
151
- export const containerLayoutFamily = weakFamily(() => {
152
- return observable({
153
- x: 0,
154
- y: 0,
155
- width: 0,
156
- height: 0
157
- });
158
- });
159
- export const containerWidthFamily = weakFamily(key => {
160
- return observable(read => {
161
- return read(containerLayoutFamily(key))?.width || 0;
172
+ // The exports map sends import and require to two builds, so one app can evaluate this module twice; one pinned object keeps a single copy of every observable, context and listener
173
+ function createReactivityState() {
174
+ const observableBatch = {};
175
+ const dimensions = observable(Dimensions.get("window"));
176
+ const vw = observable((read, value) => value ?? read(dimensions)?.width);
177
+ const vh = observable((read, value) => value ?? read(dimensions)?.height);
178
+ Dimensions.addEventListener("change", ({
179
+ window
180
+ }) => {
181
+ batch(() => {
182
+ vw.set(window.width);
183
+ vh.set(window.height);
184
+ });
162
185
  });
163
- });
164
- export const containerHeightFamily = weakFamily(key => {
165
- return observable(read => {
166
- return read(containerLayoutFamily(key))?.width || 0;
186
+ const colorScheme = observable(Appearance.getColorScheme());
187
+ Appearance.addChangeListener(event => colorScheme.set(event.colorScheme));
188
+ const containerLayoutFamily = weakFamily(() => {
189
+ return observable({
190
+ x: 0,
191
+ y: 0,
192
+ width: 0,
193
+ height: 0
194
+ });
167
195
  });
168
- });
196
+ return {
197
+ observableBatch,
198
+ hoverFamily: weakFamily(() => observable(false)),
199
+ activeFamily: weakFamily(() => observable(false)),
200
+ focusFamily: weakFamily(() => observable(false)),
201
+ dimensions,
202
+ vw,
203
+ vh,
204
+ colorScheme,
205
+ ContainerContext: /*#__PURE__*/createContext({}),
206
+ containerLayoutFamily,
207
+ containerWidthFamily: weakFamily(key => {
208
+ return observable(read => {
209
+ return read(containerLayoutFamily(key))?.width || 0;
210
+ });
211
+ }),
212
+ containerHeightFamily: weakFamily(key => {
213
+ return observable(read => {
214
+ return read(containerLayoutFamily(key))?.height || 0;
215
+ });
216
+ })
217
+ };
218
+ }
219
+ globalThis.__react_native_css_reactivity ??= createReactivityState();
220
+ export const {
221
+ observableBatch,
222
+ hoverFamily,
223
+ activeFamily,
224
+ focusFamily,
225
+ dimensions,
226
+ vw,
227
+ vh,
228
+ colorScheme,
229
+ ContainerContext,
230
+ containerLayoutFamily,
231
+ containerWidthFamily,
232
+ containerHeightFamily
233
+ } = globalThis.__react_native_css_reactivity;
169
234
  //# sourceMappingURL=reactivity.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createContext","Appearance","Dimensions","observableBatch","observable","init","equality","Object","is","value","isStatic","didInit","lastArg","observers","Set","effect","run","nextValue","getter","notify","get","add","undefined","set","arg","obs","Array","from","forEach","observer","current","cleanupEffect","dep","delete","clear","family","fn","map","Map","assign","key","args","weakFamily","WeakMap","has","VAR_SYMBOL","Symbol","for","hoverFamily","activeFamily","focusFamily","dimensions","vw","read","width","vh","height","addEventListener","window","colorScheme","getColorScheme","addChangeListener","event","ContainerContext","containerLayoutFamily","x","y","containerWidthFamily","containerHeightFamily"],"sourceRoot":"../../../src","sources":["native/reactivity.ts"],"mappings":";;AAAA;AACA,SAASA,aAAa,QAAQ,OAAO;AACrC,SACEC,UAAU,EACVC,UAAU,QAGL,cAAc;AAkBrB,OAAO,MAAMC,eAEZ,GAAG,CAAC,CAAC;AAEN,OAAO,SAASC,UAAUA,CACxBC,IAA8B,EAC9BC,QAAmD,GAAGC,MAAM,CAACC,EAAE,EAC/D;EACA,IAAIC,KAAY;EAChB,IAAIC,QAAQ,GAAG,OAAOL,IAAI,KAAK,UAAU;EACzC,IAAIM,OAA4B;EAChC,IAAIC,OAAwB;EAE5B,IAAI,OAAOP,IAAI,KAAK,UAAU,EAAE;IAC9BI,KAAK,GAAGJ,IAAI;IACZM,OAAO,GAAG,IAAI;EAChB;EAEA,MAAME,SAAS,GAAG,IAAIC,GAAG,CAAS,CAAC;EACnC,MAAMC,MAAc,GAAG;IACrBF,SAAS;IACTG,GAAG,EAAEA,CAAA,KAAM;MACT,IAAI,CAACN,QAAQ,EAAE;QACb,MAAMO,SAAS,GAAIZ,IAAI,CAAsBa,MAAM,EAAEN,OAAO,CAAC;QAC7D,IAAIN,QAAQ,CAACG,KAAK,EAAEQ,SAAS,CAAC,EAAE;UAC9B;QACF;QACAR,KAAK,GAAGQ,SAAS;MACnB;MAEAE,MAAM,CAAC,CAAC;IACV;EACF,CAAC;EAED,MAAMD,MAAc,GAAId,UAAU,IAAKA,UAAU,CAACgB,GAAG,CAACL,MAAM,CAAC;EAE7D,SAASK,GAAGA,CAACL,MAAe,EAAE;IAC5B,IAAIA,MAAM,EAAE;MACVF,SAAS,CAACQ,GAAG,CAACN,MAAM,CAAC;IACvB;IACA,IAAI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AG,CAACuC,KAAK,CAACH,WAAW,CAAC,CAAC;;AAE3E;;AAGA,OAAO,MAAMI,gBAAgB,gBAAG/D,aAAa,CAAwB,CAAC,CAAC,CAAC;AAExE,OAAO,MAAMgE,qBAAqB,GAAGtB,UAAU,CAAC,MAAM;EACpD,OAAOtC,UAAU,CAAkB;IACjC6D,CAAC,EAAE,CAAC;IACJC,CAAC,EAAE,CAAC;IACJZ,KAAK,EAAE,CAAC;IACRE,MAAM,EAAE;EACV,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,MAAMW,oBAAoB,GAAGzB,UAAU,CAAEF,GAAG,IAAK;EACtD,OAAOpC,UAAU,CAAEiD,IAAI,IAAK;IAC1B,OAAOA,IAAI,CAACW,qBAAqB,CAACxB,GAAG,CAAC,CAAC,EAAEc,KAAK,IAAI,CAAC;EACrD,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,MAAMc,qBAAqB,GAAG1B,UAAU,CAAEF,GAAG,IAAK;EACvD,OAAOpC,UAAU,CAAEiD,IAAI,IAAK;IAC1B,OAAOA,IAAI,CAACW,qBAAqB,CAACxB,GAAG,CAAC,CAAC,EAAEc,KAAK,IAAI,CAAC;EACrD,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["createContext","Appearance","Dimensions","observable","init","equality","Object","is","value","isStatic","didInit","lastArg","observers","Set","effect","run","cleanupEffect","nextValue","getter","notify","get","size","undefined","subscriber","add","obs","set","arg","Array","from","forEach","observer","observableBatch","current","unsubscribe","delete","dependencies","snapshots","map","clear","dep","hasChangedDependencies","batch","update","notified","family","fn","Map","assign","key","args","has","deleteIf","weakFamily","WeakMap","VAR_SYMBOL","Symbol","for","toVariableRecord","variables","record","name","entries","replace","createReactivityState","dimensions","vw","read","width","vh","height","addEventListener","window","colorScheme","getColorScheme","addChangeListener","event","containerLayoutFamily","x","y","hoverFamily","activeFamily","focusFamily","ContainerContext","containerWidthFamily","containerHeightFamily","globalThis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hC,UAAU,CAAEJ,GAAY,IAAK;MAClD,OAAO9C,UAAU,CAAEgE,IAAI,IAAK;QAC1B,OAAOA,IAAI,CAACU,qBAAqB,CAAC5B,GAAG,CAAC,CAAC,EAAEqB,MAAM,IAAI,CAAC;MACtD,CAAC,CAAC;IACJ,CAAC;EACH,CAAC;AACH;AAQAgB,UAAU,CAACC,6BAA6B,KAAKvB,qBAAqB,CAAC,CAAC;AAEpE,OAAO,MAAM;EACXhC,eAAe;EACfgD,WAAW;EACXC,YAAY;EACZC,WAAW;EACXjB,UAAU;EACVC,EAAE;EACFG,EAAE;EACFI,WAAW;EACXU,gBAAgB;EAChBN,qBAAqB;EACrBO,oBAAoB;EACpBC;AACF,CAAC,GAAGC,UAAU,CAACC,6BAA6B","ignoreList":[]}
@@ -5,9 +5,21 @@ export const animatedComponentFamily = weakFamily(component => {
5
5
  if ("displayName" in component && component.displayName?.startsWith("Animated.")) {
6
6
  return component;
7
7
  }
8
- const createAnimatedComponent =
9
- // eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-unsafe-member-access
10
- require("react-native-reanimated").createAnimatedComponent;
8
+
9
+ // Reanimated 4.5 keeps the original component display name. Compare its
10
+ // public built-in components by identity instead of interpreting that name.
11
+ const reanimated =
12
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
13
+ require("react-native-reanimated");
14
+ const animated = reanimated.default;
15
+ if ([animated.View, animated.Text, animated.Image, animated.ScrollView, animated.FlatList].some(value => value === component)) {
16
+ return component;
17
+ }
18
+
19
+ // This public constructor remains supported for arbitrary components; only
20
+ // its FlatList-specific overload is deprecated by Reanimated.
21
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
22
+ const createAnimatedComponent = reanimated.createAnimatedComponent;
11
23
  return createAnimatedComponent(component);
12
24
  });
13
25
  //# sourceMappingURL=reanimated.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["weakFamily","animatedComponentFamily","component","displayName","startsWith","createAnimatedComponent","require"],"sourceRoot":"../../../src","sources":["native/reanimated.ts"],"mappings":";;AAEA,SAASA,UAAU,QAAQ,iBAAc;AAEzC,OAAO,MAAMC,uBAAuB,GAAGD,UAAU,CAC9CE,SAAwB,IAAK;EAC5B,IACE,aAAa,IAAIA,SAAS,IAC1BA,SAAS,CAACC,WAAW,EAAEC,UAAU,CAAC,WAAW,CAAC,EAC9C;IACA,OAAOF,SAAS;EAClB;EAEA,MAAMG,uBAAuB;EAC3B;EACAC,OAAO,CAAC,yBAAyB,CAAC,CAACD,uBAEjB;EAEpB,OAAOA,uBAAuB,CAACH,SAAS,CAAC;AAC3C,CACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["weakFamily","animatedComponentFamily","component","displayName","startsWith","reanimated","require","animated","default","View","Text","Image","ScrollView","FlatList","some","value","createAnimatedComponent"],"sourceRoot":"../../../src","sources":["native/reanimated.ts"],"mappings":";;AAEA,SAASA,UAAU,QAAQ,iBAAc;AAEzC,OAAO,MAAMC,uBAAuB,GAAGD,UAAU,CAC9CE,SAAwB,IAAK;EAC5B,IACE,aAAa,IAAIA,SAAS,IAC1BA,SAAS,CAACC,WAAW,EAAEC,UAAU,CAAC,WAAW,CAAC,EAC9C;IACA,OAAOF,SAAS;EAClB;;EAEA;EACA;EACA,MAAMG,UAAU;EACd;EACAC,OAAO,CAAC,yBAAyB,CAA6C;EAChF,MAAMC,QAAQ,GAAGF,UAAU,CAACG,OAAO;EACnC,IACE,CACED,QAAQ,CAACE,IAAI,EACbF,QAAQ,CAACG,IAAI,EACbH,QAAQ,CAACI,KAAK,EACdJ,QAAQ,CAACK,UAAU,EACnBL,QAAQ,CAACM,QAAQ,CAClB,CAACC,IAAI,CAAEC,KAAK,IAAKA,KAAK,KAAKb,SAAS,CAAC,EACtC;IACA,OAAOA,SAAS;EAClB;;EAEA;EACA;EACA;EACA,MAAMc,uBAAuB,GAAGX,UAAU,CAACW,uBAEzB;EAElB,OAAOA,uBAAuB,CAACd,SAAS,CAAC;AAC3C,CACF,CAAC","ignoreList":[]}
@@ -5,7 +5,6 @@
5
5
  import { Specificity as S } from "react-native-css/utilities";
6
6
  import { applyValue, getDeepPath } from "../objects.js";
7
7
  import { VAR_SYMBOL } from "../reactivity.js";
8
- import { transformKeys } from "./defaults.js";
9
8
  import { resolveValue } from "./resolve.js";
10
9
  export function calculateProps(get, rules, guards = [], inheritedVariables = {
11
10
  [VAR_SYMBOL]: true
@@ -15,7 +14,7 @@ export function calculateProps(get, rules, guards = [], inheritedVariables = {
15
14
  let normal;
16
15
  let important;
17
16
  const delayedStyles = [];
18
- const transformStyles = [];
17
+ const transforms = [];
19
18
  for (const rule of rules) {
20
19
  if (VAR_SYMBOL in rule) {
21
20
  if (typeof rule[VAR_SYMBOL] === "string") {
@@ -31,7 +30,8 @@ export function calculateProps(get, rules, guards = [], inheritedVariables = {
31
30
  }
32
31
  }
33
32
  if (rule.d) {
34
- let topLevelTarget = rule.s?.[S.Important] ? important ??= {} : normal ??= {};
33
+ const isImportant = Boolean(rule.s?.[S.Important]);
34
+ let topLevelTarget = isImportant ? important ??= {} : normal ??= {};
35
35
  let target = topLevelTarget;
36
36
  const ruleTarget = rule.target || "style";
37
37
  if (typeof ruleTarget === "string") {
@@ -41,14 +41,19 @@ export function calculateProps(get, rules, guards = [], inheritedVariables = {
41
41
  target = target[path] ??= {};
42
42
  }
43
43
  }
44
- applyDeclarations(get, rule.d, inlineVariables, inheritedVariables, delayedStyles, transformStyles, guards, target, topLevelTarget);
44
+ applyDeclarations(get, rule.d, inlineVariables, inheritedVariables, delayedStyles, transforms, guards, target, topLevelTarget, ruleTarget, isImportant);
45
45
  }
46
46
  }
47
47
  for (const delayedStyle of delayedStyles) {
48
48
  delayedStyle();
49
49
  }
50
- for (const transformStyle of transformStyles) {
51
- transformStyle();
50
+ if (transforms.length > 0) {
51
+ composeTransforms(transforms, value => resolveValue(value, get, {
52
+ inlineVariables,
53
+ inheritedVariables,
54
+ renderGuards: guards,
55
+ calculateProps
56
+ }));
52
57
  }
53
58
  return {
54
59
  normal,
@@ -56,7 +61,117 @@ export function calculateProps(get, rules, guards = [], inheritedVariables = {
56
61
  important
57
62
  };
58
63
  }
59
- export function applyDeclarations(get, declarations, inlineVariables, inheritedVariables, delayedStyles = [], transformStyles = [], guards = [], target = {}, topLevelTarget = target) {
64
+
65
+ // css-transforms-2 §6: an element's transform is its `translate`, then its `rotate`, then its `scale`, then its `transform` list
66
+ const TRANSFORM_SLOTS = 4;
67
+
68
+ // A transform property's cascade slot in composition order, or -1. This runs for every dynamic declaration
69
+ function transformSlot(prop) {
70
+ switch (prop) {
71
+ case "translate":
72
+ return 0;
73
+ case "rotate":
74
+ return 1;
75
+ case "scale":
76
+ return 2;
77
+ case "transform":
78
+ return 3;
79
+ default:
80
+ return -1;
81
+ }
82
+ }
83
+
84
+ /** A transform property's declaration, kept until every rule has been walked */
85
+
86
+ /** One style target's slots: the normal ones, then the !important ones */
87
+
88
+ function samePath(a, b) {
89
+ if (a === b) return true;
90
+ if (typeof a === "string" || typeof b === "string") return false;
91
+ if (a.length !== b.length) return false;
92
+ for (let i = 0; i < a.length; i++) {
93
+ if (a[i] !== b[i]) return false;
94
+ }
95
+ return true;
96
+ }
97
+
98
+ /**
99
+ * Each transform property of each style target is a cascade slot of its own,
100
+ * and the slots compose into one `transform`. Records arrive in cascade
101
+ * order, so a later one replaces an earlier one, and an !important slot
102
+ * replaces a normal one for the same path.
103
+ */
104
+ function composeTransforms(records, resolve) {
105
+ // One declaration, the usual case, has nothing to compose with
106
+ if (records.length === 1) {
107
+ const record = records[0];
108
+ const resolved = resolve(record.value);
109
+ if (resolved !== undefined && resolved !== null) {
110
+ const composed = [];
111
+ pushEntries(composed, resolved);
112
+ record.target.transform = composed;
113
+ }
114
+ return;
115
+ }
116
+
117
+ // Almost always one group, so a scan beats keying a Map by path
118
+ const groups = [];
119
+ for (let r = 0; r < records.length; r++) {
120
+ const record = records[r];
121
+ let group;
122
+ for (let g = 0; g < groups.length; g++) {
123
+ if (samePath(groups[g].path, record.path)) {
124
+ group = groups[g];
125
+ break;
126
+ }
127
+ }
128
+ if (group === undefined) {
129
+ group = {
130
+ path: record.path,
131
+ target: record.target,
132
+ slots: [undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined]
133
+ };
134
+ groups.push(group);
135
+ }
136
+ if (record.important) {
137
+ // The important target is merged over the normal one, so it takes the composed list
138
+ group.target = record.target;
139
+ group.slots[record.slot + TRANSFORM_SLOTS] = record.value;
140
+ } else {
141
+ group.slots[record.slot] = record.value;
142
+ }
143
+ }
144
+ for (let g = 0; g < groups.length; g++) {
145
+ const group = groups[g];
146
+ let composed;
147
+ for (let slot = 0; slot < TRANSFORM_SLOTS; slot++) {
148
+ const important = group.slots[slot + TRANSFORM_SLOTS];
149
+ const value = important !== undefined ? important : group.slots[slot];
150
+ if (value === undefined) {
151
+ continue;
152
+ }
153
+ const resolved = resolve(value);
154
+
155
+ // A property that resolves to no value is `none` (css-variables-1 §3.1)
156
+ if (resolved !== undefined && resolved !== null) {
157
+ pushEntries(composed ??= [], resolved);
158
+ }
159
+ }
160
+ if (composed !== undefined) {
161
+ group.target.transform = composed;
162
+ }
163
+ }
164
+ }
165
+
166
+ // A resolver returns a group for a two-axis function, so entries are spread into the list
167
+ function pushEntries(entries, value) {
168
+ if (Array.isArray(value)) {
169
+ for (let i = 0; i < value.length; i++) pushEntries(entries, value[i]);
170
+ } else {
171
+ entries.push(value);
172
+ }
173
+ }
174
+ export function applyDeclarations(get, declarations, inlineVariables, inheritedVariables, delayedStyles = [], transforms = [], guards = [], target = {}, topLevelTarget = target, path = "style", important = false) {
60
175
  const originalTarget = target;
61
176
  for (const declaration of declarations) {
62
177
  target = originalTarget;
@@ -102,8 +217,19 @@ export function applyDeclarations(get, declarations, inlineVariables, inheritedV
102
217
  } else {
103
218
  prop = propPath;
104
219
  }
220
+ const slot = target === originalTarget ? transformSlot(prop) : -1;
221
+ if (slot !== -1) {
222
+ transforms.push({
223
+ target,
224
+ path,
225
+ important,
226
+ slot,
227
+ value
228
+ });
229
+ continue;
230
+ }
105
231
  const shouldDelay = declaration[2];
106
- if (shouldDelay || transformKeys.has(prop)) {
232
+ if (shouldDelay) {
107
233
  /**
108
234
  * We need to delay the resolution of this value until after all
109
235
  * styles have been calculated. But another style might override
@@ -114,12 +240,12 @@ export function applyDeclarations(get, declarations, inlineVariables, inheritedV
114
240
  * mutate the props object and not create a new one
115
241
  */
116
242
  const originalValue = value;
117
- // This needs to be a object with the [prop] so we can discover in transform arrays
118
243
  value = {
119
244
  [prop]: true
120
245
  };
121
- if (transformKeys.has(prop)) {
122
- transformStyles.push(() => {
246
+ delayedStyles.push(() => {
247
+ if (getDeepPath(target, prop) === value) {
248
+ delete target[prop];
123
249
  value = resolveValue(originalValue, get, {
124
250
  inlineVariables,
125
251
  inheritedVariables,
@@ -127,21 +253,8 @@ export function applyDeclarations(get, declarations, inlineVariables, inheritedV
127
253
  calculateProps
128
254
  });
129
255
  applyValue(target, prop, value);
130
- });
131
- } else {
132
- delayedStyles.push(() => {
133
- if (getDeepPath(target, prop) === value) {
134
- delete target[prop];
135
- value = resolveValue(originalValue, get, {
136
- inlineVariables,
137
- inheritedVariables,
138
- renderGuards: guards,
139
- calculateProps
140
- });
141
- applyValue(target, prop, value);
142
- }
143
- });
144
- }
256
+ }
257
+ });
145
258
  } else {
146
259
  value = resolveValue(value, get, {
147
260
  inlineVariables,
@@ -1 +1 @@
1
- {"version":3,"names":["Specificity","S","applyValue","getDeepPath","VAR_SYMBOL","transformKeys","resolveValue","calculateProps","get","rules","guards","inheritedVariables","inlineVariables","normal","important","delayedStyles","transformStyles","rule","Object","assign","v","variable","d","topLevelTarget","s","Important","target","ruleTarget","path","applyDeclarations","delayedStyle","transformStyle","declarations","originalTarget","declaration","Array","isArray","value","propPath","prop","first","rest","final","pop","previousProp","previousTarget","startsWith","endsWith","Number","slice","shouldDelay","has","originalValue","push","renderGuards"],"sourceRoot":"../../../../src","sources":["native/styles/calculate-props.ts"],"mappings":";;AAAA;;AAMA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["Specificity","S","applyValue","getDeepPath","VAR_SYMBOL","resolveValue","calculateProps","get","rules","guards","inheritedVariables","inlineVariables","normal","important","delayedStyles","transforms","rule","Object","assign","v","variable","d","isImportant","Boolean","s","Important","topLevelTarget","target","ruleTarget","path","applyDeclarations","delayedStyle","length","composeTransforms","value","renderGuards","TRANSFORM_SLOTS","transformSlot","prop","samePath","a","b","i","records","resolve","record","resolved","undefined","composed","pushEntries","transform","groups","r","group","g","slots","push","slot","entries","Array","isArray","declarations","originalTarget","declaration","propPath","first","rest","final","pop","previousProp","previousTarget","startsWith","endsWith","Number","slice","shouldDelay","originalValue"],"sourceRoot":"../../../../src","sources":["native/styles/calculate-props.ts"],"mappings":";;AAAA;;AAOA,SAASA,WAAW,IAAIC,CAAC,QAAQ,4BAA4B;AAG7D,SAASC,UAAU,EAAEC,WAAW,QAAQ,eAAY;AACpD,SACEC,UAAU,QAGL,kBAAe;AACtB,SAASC,YAAY,QAAQ,cAAW;AAExC,OAAO,SAASC,cAAcA,CAC5BC,GAAW,EACXC,KAA4D,EAC5DC,MAAqB,GAAG,EAAE,EAC1BC,kBAAwC,GAAG;EACzC,CAACN,UAAU,GAAG;AAChB,CAAC,EACDO,eAA+B,GAAG;EAChC,CAACP,UAAU,GAAG;AAChB,CAAC,EACD;EACA,IAAIQ,MAAuC;EAC3C,IAAIC,SAA0C;EAE9C,MAAMC,aAA6B,GAAG,EAAE;EACxC,MAAMC,UAA6B,GAAG,EAAE;EAExC,KAAK,MAAMC,IAAI,IAAIR,KAAK,EAAE;IACxB,IAAIJ,UAAU,IAAIY,IAAI,EAAE;MACtB,IAAI,OAAOA,IAAI,CAACZ,UAAU,CAAC,KAAK,QAAQ,EAAE;QACxCa,MAAM,CAACC,MAAM,CAACP,eAAe,EAAEK,IAAI,CAAC;MACtC,CAAC,MAAM;QACLC,MAAM,CAACC,MAAM,CAACR,kBAAkB,EAAEM,IAAI,CAAC;MACzC;MACA;IACF;IAEA,IAAIA,IAAI,CAACG,CAAC,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,kBAAkB;cAClByB,YAAY,EAAE1B,MAAM;cACpBH;YACF,CAAC,CAAC;YACFJ,UAAU,CAACyB,MAAM,EAAEW,IAAI,EAAEJ,KAAK,CAAC;UACjC;QACF,CAAC,CAAC;MACJ,CAAC,MAAM;QACLA,KAAK,GAAG7B,YAAY,CAAC6B,KAAK,EAAE3B,GAAG,EAAE;UAC/BI,eAAe;UACfD,kBAAkB;UAClByB,YAAY,EAAE1B,MAAM;UACpBH;QACF,CAAC,CAAC;MACJ;MAEAJ,UAAU,CAACyB,MAAM,EAAEW,IAAI,EAAEJ,KAAK,CAAC;IACjC;EACF;AACF","ignoreList":[]}
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+ import { commaListItems } from "react-native-css/utilities";
3
4
  /* eslint-disable @typescript-eslint/no-require-imports */
4
5
  const advancedTimingFunctions = {
5
6
  cubicBezier: () => {
@@ -15,7 +16,7 @@ const timingFunctionResolver = (resolveValue, value) => {
15
16
  if (!resolver) {
16
17
  return;
17
18
  }
18
- const args = resolveValue(value[2]);
19
+ const args = commaListItems(resolveValue(value[2]));
19
20
  if (!Array.isArray(args)) {
20
21
  return;
21
22
  }