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,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
- import { rootVariables, universalVariables } from "react-native-css/native-internal";
4
- import { isStyleDescriptorArray } from "react-native-css/utilities";
3
+ import { registeredInheritance, registeredInitialValues, rootVariables, universalVariables } from "react-native-css/native-internal";
4
+ import { isDeepEqual, isStyleDescriptorArray, isStyleFunction } from "react-native-css/utilities";
5
5
  import { VAR_SYMBOL } from "../reactivity.js";
6
6
  export function varResolver(resolve, fn, get, options) {
7
7
  const {
@@ -10,66 +10,190 @@ export function varResolver(resolve, fn, get, options) {
10
10
  [VAR_SYMBOL]: true
11
11
  },
12
12
  inlineVariables,
13
- variableHistory = new Set()
13
+ variableHistory = options.variableHistory ??= new Set(),
14
+ variableCycles = options.variableCycles ??= new Set()
14
15
  } = options;
15
- const args = fn[2];
16
- let name;
17
- let fallback;
18
- if (typeof args === "string") {
19
- name = args;
20
- } else {
21
- const result = resolve(args);
22
- if (isStyleDescriptorArray(result)) {
23
- name = result[0];
24
- fallback = result[1];
25
- }
26
- }
27
- if (typeof name !== "string") {
16
+ const name = variableName(fn[2]);
17
+ if (name === undefined) {
28
18
  return;
29
19
  }
30
20
 
31
- // If this recurses back to the same variable, we need to stop
21
+ // Fallbacks are substituted only when needed, after reading the variable.
22
+ const fallback = variableFallback(fn[2]);
23
+ if (variableCycles.has(name)) return resolve(fallback);
24
+
25
+ // Share the active resolution path with recursive calls.
32
26
  if (variableHistory.has(name)) {
27
+ markCycle(variableHistory, name, variableCycles);
33
28
  return;
34
29
  }
35
- if (name in variables) {
36
- renderGuards?.push(["v", name, variables[name]]);
37
- return resolve(variables[name]);
38
- }
39
30
  variableHistory.add(name);
40
- let value = resolve(inlineVariables?.[name]);
41
- if (value !== undefined) {
42
- options.inlineVariables ??= {
43
- [VAR_SYMBOL]: "inline"
44
- };
45
- options.inlineVariables[name] = value;
46
- return value;
31
+ try {
32
+ let value = resolve(inlineVariables?.[name]);
33
+ if (variableCycles.has(name)) return resolve(fallback);
34
+ if (value !== undefined) {
35
+ options.inlineVariables ??= {
36
+ [VAR_SYMBOL]: "inline"
37
+ };
38
+ options.inlineVariables[name] = value;
39
+ return value;
40
+ }
41
+
42
+ // `initial` resolves to nothing, and hides every other declaration and the ancestor's value, leaving the registered initial value or the fallback
43
+ if (isInitial(inlineVariables?.[name])) {
44
+ return resolve(get(registeredInitialValues(name))) ?? resolve(fallback);
45
+ }
46
+
47
+ // A universal selector declares the variable on this element. It has lower
48
+ // specificity than the element's class declarations, but beats inheritance.
49
+ value = resolve(get(universalVariables(name)));
50
+ if (variableCycles.has(name)) return resolve(fallback);
51
+ if (value !== undefined) {
52
+ options.inlineVariables ??= {
53
+ [VAR_SYMBOL]: "inline"
54
+ };
55
+ options.inlineVariables[name] = value;
56
+ return value;
57
+ }
58
+
59
+ // An ancestor's variables and :root reach an element only by inheritance, which a non-inheriting registration switches off
60
+ // Guards retain the ancestor's raw descriptor, matching the context value.
61
+ if (name in variables) {
62
+ if (inherits(name, get)) {
63
+ renderGuards?.push(["v", name, variables[name]]);
64
+ value = resolve(variables[name]);
65
+ // An ancestor's guaranteed-invalid value inherits as such, so the reader takes its own fallback
66
+ return value === undefined || variableCycles.has(name) ? resolve(fallback) : value;
67
+ }
68
+ renderGuards?.push(["n", name, variables[name]]);
69
+ }
70
+ const rootValue = get(rootVariables(name));
71
+ if (rootValue !== undefined && inherits(name, get)) {
72
+ value = resolve(Array.isArray(rootValue) ? substituteOwnValues(rootValue, reference => get(rootVariables(reference)), get) : rootValue);
73
+ if (variableCycles.has(name)) return resolve(fallback);
74
+ if (value !== undefined) {
75
+ options.inlineVariables ??= {
76
+ [VAR_SYMBOL]: "inline"
77
+ };
78
+ options.inlineVariables[name] = value;
79
+ return value;
80
+ }
81
+ }
82
+
83
+ // A registered initial value applies only where no declaration reaches the element
84
+ value = resolve(get(registeredInitialValues(name)));
85
+ if (variableCycles.has(name)) return resolve(fallback);
86
+ if (value !== undefined) {
87
+ options.inlineVariables ??= {
88
+ [VAR_SYMBOL]: "inline"
89
+ };
90
+ options.inlineVariables[name] = value;
91
+ return value;
92
+ }
93
+ return resolve(fallback);
94
+ } finally {
95
+ variableHistory.delete(name);
47
96
  }
48
- value = resolve(variables[name]);
49
- if (value !== undefined) {
50
- renderGuards?.push(["v", name, value]);
51
- options.inlineVariables ??= {
52
- [VAR_SYMBOL]: "inline"
53
- };
54
- options.inlineVariables[name] = value;
97
+ }
98
+ function isInitial(value) {
99
+ return Array.isArray(value) && value.length === 2 && value[1] === "initial";
100
+ }
101
+ function inherits(name, get) {
102
+ return get(registeredInheritance(name));
103
+ }
104
+
105
+ // A value that inherits is computed where it is declared, so its references to non-inheriting properties take that scope's own values
106
+ function substituteOwnValues(value, ownValue, get, history = new Set(), cycles = new Set()) {
107
+ if (!Array.isArray(value)) {
55
108
  return value;
56
109
  }
57
- value = resolve(get(universalVariables(name)));
58
- if (value !== undefined) {
59
- options.inlineVariables ??= {
60
- [VAR_SYMBOL]: "inline"
61
- };
62
- options.inlineVariables[name] = value;
63
- return value;
110
+ const substitute = descriptor => substituteOwnValues(descriptor, ownValue, get, history, cycles);
111
+ if (!isStyleFunction(value)) {
112
+ let substituted;
113
+ value.forEach((item, index) => {
114
+ const substitutedItem = substitute(item);
115
+ if (substitutedItem !== item) {
116
+ substituted ??= [...value];
117
+ substituted[index] = substitutedItem;
118
+ }
119
+ });
120
+ return substituted ?? value;
64
121
  }
65
- value = resolve(get(rootVariables(name)));
66
- if (value !== undefined) {
67
- options.inlineVariables ??= {
68
- [VAR_SYMBOL]: "inline"
69
- };
70
- options.inlineVariables[name] = value;
71
- return value;
122
+ const name = value[1] === "var" ? variableName(value[2]) : undefined;
123
+ if (name === undefined) {
124
+ const substitutedArguments = substitute(value[2]);
125
+ return substitutedArguments === value[2] ? value : withArguments(value, substitutedArguments);
126
+ }
127
+ const fallback = variableFallback(value[2]);
128
+ if (inherits(name, get)) {
129
+ const substitutedFallback = substitute(fallback);
130
+ return substitutedFallback === fallback ? value : withArguments(value, [name, substitutedFallback]);
131
+ }
132
+ if (cycles.has(name)) {
133
+ return substitute(fallback);
134
+ }
135
+ if (history.has(name)) {
136
+ markCycle(history, name, cycles);
137
+ return;
138
+ }
139
+ history.add(name);
140
+ try {
141
+ const own = substitute(ownValue(name) ?? get(universalVariables(name)) ?? get(registeredInitialValues(name)));
142
+ return own === undefined || cycles.has(name) ? substitute(fallback) : own;
143
+ } finally {
144
+ history.delete(name);
145
+ }
146
+ }
147
+
148
+ // Returns whether a value the element publishes differs from the one it published last
149
+ export function substituteOwnReferences(variables, ruleVariableNames, inlineVariables, previous, get) {
150
+ // Only inheriting values are rewritten, so a non-inheriting one still reads as declared
151
+ const ownValue = name => ruleVariableNames.has(name) || declaresInline(inlineVariables, name) ? variables[name] : undefined;
152
+ let changed = false;
153
+
154
+ // An inline vars() value is a value, never a reference, so only the rules' variables need rewriting
155
+ for (const name of ruleVariableNames) {
156
+ // Read without subscribing: if a later stylesheet flips `inherits` on a name this element publishes, the change is
157
+ // picked up only when the element next updates for another reason. In practice that matters only during Fast Refresh.
158
+ if (registeredInheritance(name).get()) {
159
+ const declared = variables[name];
160
+ const value = substituteOwnValues(declared, ownValue, get);
161
+ if (value !== declared) {
162
+ // The previous descriptor keeps descendants' guards holding while nothing changed
163
+ variables[name] = previous && isDeepEqual(previous[name], value) ? previous[name] : value;
164
+ }
165
+ }
166
+ changed ||= previous?.[name] !== variables[name];
167
+ }
168
+ return changed;
169
+ }
170
+ function declaresInline(inlineVariables, name) {
171
+ for (const inlineVariable of inlineVariables) {
172
+ if (name in inlineVariable) {
173
+ return true;
174
+ }
175
+ }
176
+ return false;
177
+ }
178
+ function withArguments(styleFunction, functionArguments) {
179
+ return styleFunction.length === 4 ? [styleFunction[0], styleFunction[1], functionArguments, styleFunction[3]] : [styleFunction[0], styleFunction[1], functionArguments];
180
+ }
181
+ function variableName(variableArguments) {
182
+ if (typeof variableArguments === "string") {
183
+ return variableArguments;
184
+ }
185
+ return isStyleDescriptorArray(variableArguments) && typeof variableArguments[0] === "string" ? variableArguments[0] : undefined;
186
+ }
187
+ function variableFallback(variableArguments) {
188
+ return isStyleDescriptorArray(variableArguments) ? variableArguments[1] : undefined;
189
+ }
190
+
191
+ // Marks only the actual cycle, so a variable that depends on it can still use its own fallback
192
+ function markCycle(history, name, cycles) {
193
+ let inCycle = false;
194
+ for (const dependency of history) {
195
+ if (dependency === name) inCycle = true;
196
+ if (inCycle) cycles.add(dependency);
72
197
  }
73
- return resolve(fallback);
74
198
  }
75
199
  //# sourceMappingURL=variables.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["rootVariables","universalVariables","isStyleDescriptorArray","VAR_SYMBOL","varResolver","resolve","fn","get","options","renderGuards","inheritedVariables","variables","inlineVariables","variableHistory","Set","args","name","fallback","result","has","push","add","value","undefined"],"sourceRoot":"../../../../src","sources":["native/styles/variables.ts"],"mappings":";;AACA,SACEA,aAAa,EACbC,kBAAkB,QACb,kCAAkC;AACzC,SAASC,sBAAsB,QAAQ,4BAA4B;AAEnE,SAASC,UAAU,QAAqB,kBAAe;AAGvD,OAAO,SAASC,WAAWA,CACzBC,OAA2B,EAC3BC,EAAiB,EACjBC,GAAW,EACXC,OAA4B,EAC5B;EACA,MAAM;IACJC,YAAY;IACZC,kBAAkB,EAAEC,SAAS,GAAG;MAAE,CAACR,UAAU,GAAG;IAAK,CAAC;IACtDS,eAAe;IACfC,eAAe,GAAG,IAAIC,GAAG,CAAC;EAC5B,CAAC,GAAGN,OAAO;EAEX,MAAMO,IAAI,GAAGT,EAAE,CAAC,CAAC,CAAC;EAElB,IAAIU,IAAwB;EAC5B,IAAIC,QAAqC;EAEzC,IAAI,OAAOF,IAAI,KAAK,QAAQ,EAAE;IAC5BC,IAAI,GAAGD,IAAI;EACb,CAAC,MAAM;IACL,MAAMG,MAAM,GAAGb,OAAO,CAACU,IAAI,CAAC;IAE5B,IAAIb,sBAAsB,CAACgB,MAAM,CAAC,EAAE;MAClCF,IAAI,GAAGE,MAAM,CAAC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C;IACtDK,OAAO,CAACI,eAAe,CAACI,IAAI,CAAC,GAAGM,KAAK;IACrC,OAAOA,KAAK;EACd;EAEAA,KAAK,GAAGjB,OAAO,CAACE,GAAG,CAACP,aAAa,CAACgB,IAAI,CAAC,CAAC,CAAC;EACzC,IAAIM,KAAK,KAAKC,SAAS,EAAE;IACvBf,OAAO,CAACI,eAAe,KAAK;MAAE,CAACT,UAAU,GAAG;IAAS,CAAC;IACtDK,OAAO,CAACI,eAAe,CAACI,IAAI,CAAC,GAAGM,KAAK;IACrC,OAAOA,KAAK;EACd;EAEA,OAAOjB,OAAO,CAACY,QAAQ,CAAC;AAC1B","ignoreList":[]}
1
+ {"version":3,"names":["registeredInheritance","registeredInitialValues","rootVariables","universalVariables","isDeepEqual","isStyleDescriptorArray","isStyleFunction","VAR_SYMBOL","varResolver","resolve","fn","get","options","renderGuards","inheritedVariables","variables","inlineVariables","variableHistory","Set","variableCycles","name","variableName","undefined","fallback","variableFallback","has","markCycle","add","value","isInitial","inherits","push","rootValue","Array","isArray","substituteOwnValues","reference","delete","length","ownValue","history","cycles","substitute","descriptor","substituted","forEach","item","index","substitutedItem","substitutedArguments","withArguments","substitutedFallback","own","substituteOwnReferences","ruleVariableNames","previous","declaresInline","changed","declared","inlineVariable","styleFunction","functionArguments","variableArguments","inCycle","dependency"],"sourceRoot":"../../../../src","sources":["native/styles/variables.ts"],"mappings":";;AAKA,SACEA,qBAAqB,EACrBC,uBAAuB,EACvBC,aAAa,EACbC,kBAAkB,QACb,kCAAkC;AACzC,SACEC,WAAW,EACXC,sBAAsB,EACtBC,eAAe,QACV,4BAA4B;AAEnC,SACEC,UAAU,QAGL,kBAAe;AAGtB,OAAO,SAASC,WAAWA,CACzBC,OAA2B,EAC3BC,EAAiB,EACjBC,GAAW,EACXC,OAA4B,EAC5B;EACA,MAAM;IACJC,YAAY;IACZC,kBAAkB,EAAEC,SAAS,GAAG;MAAE,CAACR,UAAU,GAAG;IAAK,CAAC;IACtDS,eAAe;IAC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5CA,iBAAiB,CAAC,CAAC,CAAC,GACpBxC,SAAS;AACf;;AAEA;AACA,SAASI,SAASA,CAChBc,OAA4B,EAC5BpB,IAAY,EACZqB,MAAmB,EACnB;EACA,IAAIsB,OAAO,GAAG,KAAK;EACnB,KAAK,MAAMC,UAAU,IAAIxB,OAAO,EAAE;IAChC,IAAIwB,UAAU,KAAK5C,IAAI,EAAE2C,OAAO,GAAG,IAAI;IACvC,IAAIA,OAAO,EAAEtB,MAAM,CAACd,GAAG,CAACqC,UAAU,CAAC;EACrC;AACF","ignoreList":[]}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  import { Platform, PlatformColor } from "react-native";
4
+ import { isDeepEqual } from "react-native-css/utilities";
4
5
  import { testMediaQuery } from "../native/conditions/media-query.js";
5
6
  import { family, observable } from "../native/reactivity.js";
6
7
  const rootVariableFamily = () => {
@@ -20,11 +21,47 @@ const rootVariableFamily = () => {
20
21
  return obs;
21
22
  });
22
23
  };
23
- export const rootVariables = rootVariableFamily();
24
- export const universalVariables = rootVariableFamily();
25
- rootVariables("__rn-css-rem").set([[14]]);
26
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
27
- rootVariables("__rn-css-color").set([[Platform.OS === "ios" ? PlatformColor("label", "labelColor") : PlatformColor("?attr/textColorPrimary", "SystemBaseHighColor")]
28
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
29
- ]);
24
+
25
+ // Static, since the compiler records only the @property rules no condition wraps
26
+ const registeredInitialValueFamily = () => {
27
+ return family(() => observable(undefined, isDeepEqual));
28
+ };
29
+ const registeredInheritanceFamily = () => {
30
+ return family(() => observable(true));
31
+ };
32
+ function seedRootRegistry(root) {
33
+ root("__rn-css-rem").set([[14]]);
34
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
35
+ root("__rn-css-color").set([[Platform.OS === "ios" ? PlatformColor("label", "labelColor") : PlatformColor("?attr/textColorPrimary", "SystemBaseHighColor")]
36
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
37
+ ]);
38
+ }
39
+
40
+ // Seeded with the registries, so a copy that loads after the stylesheet inject keeps the project's rem
41
+ function createRootVariableRegistries() {
42
+ const registries = {
43
+ root: rootVariableFamily(),
44
+ universal: rootVariableFamily()
45
+ };
46
+ seedRootRegistry(registries.root);
47
+ return registries;
48
+ }
49
+
50
+ // The exports map gives import and require different builds, and Metro resolves each per requesting module
51
+ globalThis.__react_native_css_root_variable_registries ??= createRootVariableRegistries();
52
+ export const rootVariables = globalThis.__react_native_css_root_variable_registries.root;
53
+ export const universalVariables = globalThis.__react_native_css_root_variable_registries.universal;
54
+ globalThis.__react_native_css_registered_initial_values ??= registeredInitialValueFamily();
55
+ globalThis.__react_native_css_registered_inheritance ??= registeredInheritanceFamily();
56
+ export const registeredInitialValues = globalThis.__react_native_css_registered_initial_values;
57
+ export const registeredInheritance = globalThis.__react_native_css_registered_inheritance;
58
+
59
+ // Clearing suffices between tests, where nothing stays mounted to strand
60
+ export function resetVariableRegistries() {
61
+ rootVariables.clear();
62
+ universalVariables.clear();
63
+ registeredInitialValues.clear();
64
+ registeredInheritance.clear();
65
+ seedRootRegistry(rootVariables);
66
+ }
30
67
  //# sourceMappingURL=root.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Platform","PlatformColor","testMediaQuery","family","observable","rootVariableFamily","obs","read","variableValue","undefined","value","mediaQuery","rootVariables","universalVariables","set","OS"],"sourceRoot":"../../../src","sources":["native-internal/root.ts"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,aAAa,QAAQ,cAAc;AAItD,SAASC,cAAc,QAAQ,qCAAkC;AACjE,SAASC,MAAM,EAAEC,UAAU,QAAyB,yBAAsB;AAE1E,MAAMC,kBAAkB,GAAGA,CAAA,KAAM;EAC/B,OAAOF,MAAM,CAAuD,MAAM;IACxE,MAAMG,GAAG,GAAGF,UAAU,CACpB,CAACG,IAAI,EAAEC,aAAa,KAAK;MACvB,IAAI,CAACA,aAAa,EAAE,OAAOC,SAAS;MAEpC,KAAK,MAAM,CAACC,KAAK,EAAEC,UAAU,CAAC,IAAIH,aAAa,EAAE;QAC/C,IAAI,CAACG,UAAU,EAAE;UACf,OAAOD,KAAK;QACd;QAEA,IAAIR,cAAc,CAACS,UAAU,EAAEJ,IAAI,CAAC,EAAE;UACpC,OAAOG,KAAK;QACd;MACF;MAEA,OAAOD,SAAS;IAClB,CACF,CAAC;IAED,OAAOH,GAAG;EACZ,CAAC,CAAC;AACJ,CAAC;AAED,OAAO,MAAMM,aAAa,GAAGP,kBAAkB,CAAC,CAAC;AACjD,OAAO,MAAMQ,kBAAkB,GAAGR,kBAAkB,CAAC,CAAC;AAEtDO,aAAa,CAAC,cAAc,CAAC,CAACE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACzC;AACAF,aAAa,CAAC,gBAAgB,CAAC,CAACE,GAAG,CAAC,CAClC,CACEd,QAAQ,CAACe,EAAE,KAAK,KAAK,GACjBd,aAAa,CAAC,OAAO,EAAE,YAAY,CAAC,GACpCA,aAAa,CAAC,wBAAwB,EAAE,qBAAqB,CAAC;AAEpE;AAAA,CACM,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["Platform","PlatformColor","isDeepEqual","testMediaQuery","family","observable","rootVariableFamily","obs","read","variableValue","undefined","value","mediaQuery","registeredInitialValueFamily","registeredInheritanceFamily","seedRootRegistry","root","set","OS","createRootVariableRegistries","registries","universal","globalThis","__react_native_css_root_variable_registries","rootVariables","universalVariables","__react_native_css_registered_initial_values","__react_native_css_registered_inheritance","registeredInitialValues","registeredInheritance","resetVariableRegistries","clear"],"sourceRoot":"../../../src","sources":["native-internal/root.ts"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,aAAa,QAAQ,cAAc;AAGtD,SAASC,WAAW,QAAQ,4BAA4B;AAExD,SAASC,cAAc,QAAQ,qCAAkC;AACjE,SAASC,MAAM,EAAEC,UAAU,QAAyB,yBAAsB;AAE1E,MAAMC,kBAAkB,GAAGA,CAAA,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AAU,CAACJ,IAAI,CAAC;EAEjC,OAAOI,UAAU;AACnB;;AAEA;AACAE,UAAU,CAACC,2CAA2C,KACpDJ,4BAA4B,CAAC,CAAC;AAEhC,OAAO,MAAMK,aAAa,GACxBF,UAAU,CAACC,2CAA2C,CAACP,IAAI;AAC7D,OAAO,MAAMS,kBAAkB,GAC7BH,UAAU,CAACC,2CAA2C,CAACF,SAAS;AAElEC,UAAU,CAACI,4CAA4C,KACrDb,4BAA4B,CAAC,CAAC;AAChCS,UAAU,CAACK,yCAAyC,KAClDb,2BAA2B,CAAC,CAAC;AAE/B,OAAO,MAAMc,uBAAuB,GAClCN,UAAU,CAACI,4CAA4C;AAEzD,OAAO,MAAMG,qBAAqB,GAChCP,UAAU,CAACK,yCAAyC;;AAEtD;AACA,OAAO,SAASG,uBAAuBA,CAAA,EAAG;EACxCN,aAAa,CAACO,KAAK,CAAC,CAAC;EACrBN,kBAAkB,CAACM,KAAK,CAAC,CAAC;EAC1BH,uBAAuB,CAACG,KAAK,CAAC,CAAC;EAC/BF,qBAAqB,CAACE,KAAK,CAAC,CAAC;EAE7BhB,gBAAgB,CAACS,aAAa,CAAC;AACjC","ignoreList":[]}
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
 
3
+ import { isDeepEqual } from "react-native-css/utilities";
3
4
  import { DEFAULT_CONTAINER_NAME } from "../native/conditions/container-query.js";
4
- import { family, observable, observableBatch } from "../native/reactivity.js";
5
- import { rootVariables, universalVariables } from "./root.js";
6
- export { rootVariables, universalVariables };
5
+ import { batch, family, observable } from "../native/reactivity.js";
6
+ import { registeredInheritance, registeredInitialValues, rootVariables, universalVariables } from "./root.js";
7
+ export { registeredInheritance, registeredInitialValues, rootVariables, universalVariables };
7
8
  globalThis.__react_native_css_style_collection ??= {
8
9
  styles: family(() => {
9
10
  return observable([], isDeepEqual);
@@ -12,84 +13,53 @@ globalThis.__react_native_css_style_collection ??= {
12
13
  return observable([], isDeepEqual);
13
14
  }),
14
15
  inject: function (options) {
15
- observableBatch.current = new Set();
16
- StyleCollection.styles("will-change-variable").set([{
17
- s: [0],
18
- v: []
19
- }]);
20
- StyleCollection.styles("will-change-container").set([{
21
- s: [0],
22
- c: [DEFAULT_CONTAINER_NAME]
23
- }]);
24
- StyleCollection.styles("will-change-animation").set([{
25
- s: [0],
26
- a: true
27
- }]);
28
- StyleCollection.styles("will-change-pressable").set([{
29
- s: [0],
30
- p: {
31
- h: 1
16
+ batch(() => {
17
+ StyleCollection.styles("will-change-variable").set([{
18
+ s: [0],
19
+ v: []
20
+ }]);
21
+ StyleCollection.styles("will-change-container").set([{
22
+ s: [0],
23
+ c: [DEFAULT_CONTAINER_NAME]
24
+ }]);
25
+ StyleCollection.styles("will-change-animation").set([{
26
+ s: [0],
27
+ a: true
28
+ }]);
29
+ StyleCollection.styles("will-change-pressable").set([{
30
+ s: [0],
31
+ p: {
32
+ h: 1
33
+ }
34
+ }]);
35
+ if (options.s) {
36
+ for (const style of options.s) {
37
+ StyleCollection.styles(style[0]).set(style[1]);
38
+ }
32
39
  }
33
- }]);
34
- if (options.s) {
35
- for (const style of options.s) {
36
- StyleCollection.styles(style[0]).set(style[1]);
40
+ if (options.k) {
41
+ for (const keyframes of options.k) {
42
+ StyleCollection.keyframes(keyframes[0]).set(keyframes[1]);
43
+ }
37
44
  }
38
- }
39
- if (options.k) {
40
- for (const keyframes of options.k) {
41
- StyleCollection.keyframes(keyframes[0]).set(keyframes[1]);
45
+ if (options.vr) {
46
+ for (const entry of options.vr) {
47
+ rootVariables(entry[0]).set(entry[1]);
48
+ }
42
49
  }
43
- }
44
- if (options.vr) {
45
- for (const entry of options.vr) {
46
- rootVariables(entry[0]).set(entry[1]);
50
+ if (options.vu) {
51
+ for (const entry of options.vu) {
52
+ universalVariables(entry[0]).set(entry[1]);
53
+ }
47
54
  }
48
- }
49
- if (options.vu) {
50
- for (const entry of options.vu) {
51
- rootVariables(entry[0]).set(entry[1]);
55
+
56
+ // Added by name like vr and vu, since Metro injects each CSS file apart and a registration holds across them
57
+ for (const [name, inherits, initialValue] of options.vp ?? []) {
58
+ registeredInheritance(name).set(inherits);
59
+ registeredInitialValues(name).set(initialValue);
52
60
  }
53
- }
54
- for (const effect of observableBatch.current) {
55
- effect.run();
56
- }
57
- observableBatch.current = undefined;
61
+ });
58
62
  }
59
63
  };
60
64
  export const StyleCollection = globalThis.__react_native_css_style_collection;
61
- function isDeepEqual(a, b) {
62
- const aArray = Array.isArray(a);
63
- const bArray = Array.isArray(b);
64
- const requiresKeyComparison = typeof a === "object" && typeof b === "object" && aArray === bArray;
65
-
66
- // Only compare keys when both are an object or array
67
- // This does not account for complex types like Date/Regex, because we don't use them
68
- if (!requiresKeyComparison) return a === b;
69
-
70
- // Make either are not null
71
- if (!a || !b) {
72
- return a === b;
73
- }
74
-
75
- // Shortcut for arrays
76
- if (aArray && bArray && a.length !== b.length) {
77
- return false;
78
- }
79
-
80
- // Compare a to b
81
- for (const key in a) {
82
- if (!isDeepEqual(a[key], b[key])) {
83
- return false;
84
- }
85
- }
86
-
87
- // Compare b to a
88
- for (const key in b) {
89
- if (!(key in a)) {
90
- return false;
91
- }
92
- }
93
- return true;
94
- }
95
65
  //# sourceMappingURL=style-collection.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["DEFAULT_CONTAINER_NAME","family","observable","observableBatch","rootVariables","universalVariables","globalThis","__react_native_css_style_collection","styles","isDeepEqual","keyframes","inject","options","current","Set","StyleCollection","set","s","v","c","a","p","h","style","k","vr","entry","vu","effect","run","undefined","b","aArray","Array","isArray","bArray","requiresKeyComparison","length","key"],"sourceRoot":"../../../src","sources":["native-internal/style-collection.ts"],"mappings":";;AAQA,SAASA,sBAAsB,QAAQ,yCAAsC;AAC7E,SACEC,MAAM,EACNC,UAAU,EACVC,eAAe,QAGV,yBAAsB;AAC7B,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,WAAQ;AAE1D,SAASD,aAAa,EAAEC,kBAAkB;AAe1CC,UAAU,CAACC,mCAAmC,KAAK;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IC,MAAM,IAAIG,MAAM,IAAIf,CAAC,CAACiB,MAAM,KAAKN,CAAC,CAACM,MAAM,EAAE;IAC7C,OAAO,KAAK;EACd;;EAEA;EACA,KAAK,MAAMC,GAAG,IAAIlB,CAAC,EAAE;IACnB,IACE,CAACX,WAAW,CACTW,CAAC,CAA6BkB,GAAG,CAAC,EAClCP,CAAC,CAA6BO,GAAG,CACpC,CAAC,EACD;MACA,OAAO,KAAK;IACd;EACF;;EAEA;EACA,KAAK,MAAMA,GAAG,IAAIP,CAAC,EAAE;IACnB,IAAI,EAAEO,GAAG,IAAIlB,CAAC,CAAC,EAAE;MACf,OAAO,KAAK;IACd;EACF;EAEA,OAAO,IAAI;AACb","ignoreList":[]}
1
+ {"version":3,"names":["isDeepEqual","DEFAULT_CONTAINER_NAME","batch","family","observable","registeredInheritance","registeredInitialValues","rootVariables","universalVariables","globalThis","__react_native_css_style_collection","styles","keyframes","inject","options","StyleCollection","set","s","v","c","a","p","h","style","k","vr","entry","vu","name","inherits","initialValue","vp"],"sourceRoot":"../../../src","sources":["native-internal/style-collection.ts"],"mappings":";;AAOA,SAASA,WAAW,QAAQ,4BAA4B;AAExD,SAASC,sBAAsB,QAAQ,yCAAsC;AAC7E,SACEC,KAAK,EACLC,MAAM,EACNC,UAAU,QAGL,yBAAsB;AAC7B,SACEC,qBAAqB,EACrBC,uBAAuB,EACvBC,aAAa,EACbC,kBAAkB,QACb,WAAQ;AAEf,SACEH,qBAAqB,EACrBC,uBAAuB,EACvBC,aAAa,EACbC,kBAAkB;AAgBpBC,UAAU,CAACC,mCAAmC,KAAK;EACjDC,MAAM,EAAER,MAAM,CAAmC,MAAM;IACrD,OAAOC,UAAU,CAAC,EAAE,EAAEJ,WAAW,CAAC;EACpC,CAAC,CAAC;EACFY,SAAS,EAAET,MAAM,CAAmC,MAAM;IACxD,OAAOC,UAAU,CAAC,EAAE,EAAEJ,WAAW,CAAC;EACpC,CAAC,CAAC;EACFa,MAAM,EAAE,SAAAA,CAAU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AC,CAAC,CAAC,CAACV,GAAG,CAACU,KAAK,CAAC,CAAC,CAAC,CAAC;QACvC;MACF;MAEA,IAAIZ,OAAO,CAACa,EAAE,EAAE;QACd,KAAK,MAAMD,KAAK,IAAIZ,OAAO,CAACa,EAAE,EAAE;UAC9BnB,kBAAkB,CAACkB,KAAK,CAAC,CAAC,CAAC,CAAC,CAACV,GAAG,CAACU,KAAK,CAAC,CAAC,CAAC,CAAC;QAC5C;MACF;;MAEA;MACA,KAAK,MAAM,CAACE,IAAI,EAAEC,QAAQ,EAAEC,YAAY,CAAC,IAAIhB,OAAO,CAACiB,EAAE,IAAI,EAAE,EAAE;QAC7D1B,qBAAqB,CAACuB,IAAI,CAAC,CAACZ,GAAG,CAACa,QAAQ,CAAC;QACzCvB,uBAAuB,CAACsB,IAAI,CAAC,CAACZ,GAAG,CAACc,YAAY,CAAC;MACjD;IACF,CAAC,CAAC;EACJ;AACF,CAAC;AAED,OAAO,MAAMf,eAAe,GAAGN,UAAU,CAACC,mCAAmC","ignoreList":[]}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  import { createContext, useContext, useMemo } from "react";
4
- import { VAR_SYMBOL } from "../native/reactivity.js";
4
+ import { toVariableRecord, VAR_SYMBOL } from "../native/reactivity.js";
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
6
  globalThis.__react_native_css_variable_context ??= /*#__PURE__*/createContext({
7
7
  [VAR_SYMBOL]: true
@@ -11,7 +11,7 @@ export function VariableContextProvider(props) {
11
11
  const inheritedVariables = useContext(VariableContext);
12
12
  const value = useMemo(() => ({
13
13
  ...inheritedVariables,
14
- ...Object.fromEntries(Object.entries(props.value).map(([k, v]) => [k.replace(/^--/, ""), v])),
14
+ ...toVariableRecord(props.value),
15
15
  [VAR_SYMBOL]: true
16
16
  }), [inheritedVariables, props.value]);
17
17
  return /*#__PURE__*/_jsx(VariableContext, {
@@ -1 +1 @@
1
- {"version":3,"names":["createContext","useContext","useMemo","VAR_SYMBOL","jsx","_jsx","globalThis","__react_native_css_variable_context","VariableContext","VariableContextProvider","props","inheritedVariables","value","Object","fromEntries","entries","map","k","v","replace","children"],"sourceRoot":"../../../src","sources":["native-internal/variables.tsx"],"mappings":";;AAAA,SACEA,aAAa,EACbC,UAAU,EACVC,OAAO,QAEF,OAAO;AAId,SAASC,UAAU,QAAmC,yBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE7EC,UAAU,CAACC,mCAAmC,kBAC5CP,aAAa,CAAuB;EAClC,CAACG,UAAU,GAAG;AAChB,CAAC,CAAC;AAEJ,OAAO,MAAMK,eAAe,GAAGF,UAAU,CAACC,mCAAmC;AAE7E,OAAO,SAASE,uBAAuBA,CACrCC,KAA2E,EAC3E;EACA,MAAMC,kBAAkB,GAAGV,UAAU,CAACO,eAAe,CAAC;EAEtD,MAAMI,KAA2B,GAAGV,OAAO,CACzC,OAAO;IACL,GAAGS,kBAAkB;IACrB,GAAGE,MAAM,CAACC,WAAW,CACnBD,MAAM,CAACE,OAAO,CAACL,KAAK,CAACE,KAAK,CAAC,CAACI,GAAG,CAAC,CAAC,CAACC,CAAC,EAAEC,CAAC,CAAC,KAAK,CAACD,CAAC,CAACE,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,EAAED,CAAC,CAAC,CACvE,CAAC;IACD,CAACf,UAAU,GAAG;EAChB,CAAC,CAAC,EACF,CAACQ,kBAAkB,EAAED,KAAK,CAACE,KAAK,CAClC,CAAC;EAED,oBAAOP,IAAA,CAACG,eAAe;IAACI,KAAK,EAAEA,KAAM;IAAAQ,QAAA,EAAEV,KAAK,CAACU;EAAQ,CAAkB,CAAC;AAC1E","ignoreList":[]}
1
+ {"version":3,"names":["createContext","useContext","useMemo","toVariableRecord","VAR_SYMBOL","jsx","_jsx","globalThis","__react_native_css_variable_context","VariableContext","VariableContextProvider","props","inheritedVariables","value","children"],"sourceRoot":"../../../src","sources":["native-internal/variables.tsx"],"mappings":";;AAAA,SACEA,aAAa,EACbC,UAAU,EACVC,OAAO,QAEF,OAAO;AAId,SACEC,gBAAgB,EAChBC,UAAU,QAEL,yBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE9BC,UAAU,CAACC,mCAAmC,kBAC5CR,aAAa,CAAuB;EAClC,CAACI,UAAU,GAAG;AAChB,CAAC,CAAC;AAEJ,OAAO,MAAMK,eAAe,GAAGF,UAAU,CAACC,mCAAmC;AAE7E,OAAO,SAASE,uBAAuBA,CACrCC,KAA2E,EAC3E;EACA,MAAMC,kBAAkB,GAAGX,UAAU,CAACQ,eAAe,CAAC;EAEtD,MAAMI,KAA2B,GAAGX,OAAO,CACzC,OAAO;IACL,GAAGU,kBAAkB;IACrB,GAAGT,gBAAgB,CAACQ,KAAK,CAACE,KAAK,CAAC;IAChC,CAACT,UAAU,GAAG;EAChB,CAAC,CAAC,EACF,CAACQ,kBAAkB,EAAED,KAAK,CAACE,KAAK,CAClC,CAAC;EAED,oBAAOP,IAAA,CAACG,eAAe;IAACI,KAAK,EAAEA,KAAM;IAAAC,QAAA,EAAEH,KAAK,CAACG;EAAQ,CAAkB,CAAC;AAC1E","ignoreList":[]}
@@ -1,2 +1,4 @@
1
1
  "use strict";
2
+
3
+ export {};
2
4
  //# sourceMappingURL=dot-notation.types.js.map
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+
3
+ export function isDeepEqual(a, b) {
4
+ const aArray = Array.isArray(a);
5
+ const bArray = Array.isArray(b);
6
+ const requiresKeyComparison = typeof a === "object" && typeof b === "object" && aArray === bArray;
7
+
8
+ // Only compare keys when both are an object or array
9
+ // This does not account for complex types like Date/Regex, because we don't use them
10
+ if (!requiresKeyComparison) return a === b;
11
+
12
+ // Make either are not null
13
+ if (!a || !b) {
14
+ return a === b;
15
+ }
16
+
17
+ // Shortcut for arrays
18
+ if (aArray && bArray && a.length !== b.length) {
19
+ return false;
20
+ }
21
+
22
+ // Compare a to b
23
+ for (const key in a) {
24
+ if (!isDeepEqual(a[key], b[key])) {
25
+ return false;
26
+ }
27
+ }
28
+
29
+ // Compare b to a
30
+ for (const key in b) {
31
+ if (!(key in a)) {
32
+ return false;
33
+ }
34
+ }
35
+ return true;
36
+ }
37
+ //# sourceMappingURL=equality.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["isDeepEqual","a","b","aArray","Array","isArray","bArray","requiresKeyComparison","length","key"],"sourceRoot":"../../../src","sources":["utilities/equality.ts"],"mappings":";;AAAA,OAAO,SAASA,WAAWA,CAACC,CAAU,EAAEC,CAAU,EAAW;EAC3D,MAAMC,MAAM,GAAGC,KAAK,CAACC,OAAO,CAACJ,CAAC,CAAC;EAC/B,MAAMK,MAAM,GAAGF,KAAK,CAACC,OAAO,CAACH,CAAC,CAAC;EAC/B,MAAMK,qBAAqB,GACzB,OAAON,CAAC,KAAK,QAAQ,IAAI,OAAOC,CAAC,KAAK,QAAQ,IAAIC,MAAM,KAAKG,MAAM;;EAErE;EACA;EACA,IAAI,CAACC,qBAAqB,EAAE,OAAON,CAAC,KAAKC,CAAC;;EAE1C;EACA,IAAI,CAACD,CAAC,IAAI,CAACC,CAAC,EAAE;IACZ,OAAOD,CAAC,KAAKC,CAAC;EAChB;;EAEA;EACA,IAAIC,MAAM,IAAIG,MAAM,IAAIL,CAAC,CAACO,MAAM,KAAKN,CAAC,CAACM,MAAM,EAAE;IAC7C,OAAO,KAAK;EACd;;EAEA;EACA,KAAK,MAAMC,GAAG,IAAIR,CAAC,EAAE;IACnB,IACE,CAACD,WAAW,CACTC,CAAC,CAA6BQ,GAAG,CAAC,EAClCP,CAAC,CAA6BO,GAAG,CACpC,CAAC,EACD;MACA,OAAO,KAAK;IACd;EACF;;EAEA;EACA,KAAK,MAAMA,GAAG,IAAIP,CAAC,EAAE;IACnB,IAAI,EAAEO,GAAG,IAAIR,CAAC,CAAC,EAAE;MACf,OAAO,KAAK;IACd;EACF;EAEA,OAAO,IAAI;AACb","ignoreList":[]}
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+ export * from "./equality.js";
3
4
  export * from "./specificity.js";
4
5
  export * from "./style-descriptor.js";
5
6
  export * from "./dot-notation.types.js";
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../src","sources":["utilities/index.ts"],"mappings":";;AAAA,cAAc,kBAAe;AAC7B,cAAc,uBAAoB;AAClC,cAAc,yBAAsB","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["utilities/index.ts"],"mappings":";;AAAA,cAAc,eAAY;AAC1B,cAAc,kBAAe;AAC7B,cAAc,uBAAoB;AAClC,cAAc,yBAAsB","ignoreList":[]}