react-native-css 3.0.0-preview.1 → 3.0.0-preview.3

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 (967) hide show
  1. package/README.md +138 -10
  2. package/dist/commonjs/babel/index.js +6 -2
  3. package/dist/commonjs/babel/index.js.map +1 -1
  4. package/dist/commonjs/compiler/atRules.js +6 -26
  5. package/dist/commonjs/compiler/atRules.js.map +1 -1
  6. package/dist/commonjs/compiler/compiler.js +70 -23
  7. package/dist/commonjs/compiler/compiler.js.map +1 -1
  8. package/dist/commonjs/compiler/compiler.types.js +1 -1
  9. package/dist/commonjs/compiler/compiler.types.js.map +1 -1
  10. package/dist/commonjs/compiler/declarations.js +79 -60
  11. package/dist/commonjs/compiler/declarations.js.map +1 -1
  12. package/dist/commonjs/compiler/inline-variables.js +142 -0
  13. package/dist/commonjs/compiler/inline-variables.js.map +1 -0
  14. package/dist/commonjs/compiler/pseudo-elements.js +1 -1
  15. package/dist/commonjs/compiler/selector-builder.js +7 -5
  16. package/dist/commonjs/compiler/selector-builder.js.map +1 -1
  17. package/dist/commonjs/compiler/selectors.js +4 -4
  18. package/dist/commonjs/compiler/selectors.js.map +1 -1
  19. package/dist/commonjs/compiler/stylesheet.js +4 -5
  20. package/dist/commonjs/compiler/stylesheet.js.map +1 -1
  21. package/dist/commonjs/components/ActivityIndicator.js +2 -2
  22. package/dist/commonjs/components/ActivityIndicator.js.map +1 -1
  23. package/dist/commonjs/components/Button.js +2 -2
  24. package/dist/commonjs/components/Button.js.map +1 -1
  25. package/dist/commonjs/components/FlatList.js +2 -2
  26. package/dist/commonjs/components/FlatList.js.map +1 -1
  27. package/dist/commonjs/components/Image.js +2 -2
  28. package/dist/commonjs/components/Image.js.map +1 -1
  29. package/dist/commonjs/components/Switch.js +2 -2
  30. package/dist/commonjs/components/Switch.js.map +1 -1
  31. package/dist/commonjs/components/Text.js +2 -2
  32. package/dist/commonjs/components/Text.js.map +1 -1
  33. package/dist/commonjs/components/TextInput.js +2 -2
  34. package/dist/commonjs/components/TextInput.js.map +1 -1
  35. package/dist/commonjs/components/View.js +2 -2
  36. package/dist/commonjs/components/View.js.map +1 -1
  37. package/dist/commonjs/components/react-native-safe-area-context.native.js +3 -3
  38. package/dist/commonjs/components/react-native-safe-area-context.native.js.map +1 -1
  39. package/dist/commonjs/index.js +4 -4
  40. package/dist/commonjs/index.js.map +1 -1
  41. package/dist/commonjs/jest/index.js +5 -5
  42. package/dist/commonjs/jest/index.js.map +1 -1
  43. package/dist/commonjs/metro/index.js +12 -12
  44. package/dist/commonjs/metro/index.js.map +1 -1
  45. package/dist/commonjs/metro/injection-code.js +1 -1
  46. package/dist/commonjs/metro/injection-code.js.map +1 -1
  47. package/dist/commonjs/native/api.js +113 -0
  48. package/dist/commonjs/native/api.js.map +1 -0
  49. package/dist/commonjs/native/conditions/attributes.js +44 -0
  50. package/dist/commonjs/native/conditions/attributes.js.map +1 -0
  51. package/dist/commonjs/native/conditions/container-query.js.map +1 -0
  52. package/dist/commonjs/native/conditions/guards.js.map +1 -0
  53. package/dist/commonjs/native/conditions/index.js.map +1 -0
  54. package/dist/commonjs/native/conditions/media-query.js.map +1 -0
  55. package/dist/commonjs/native/index.js.map +1 -0
  56. package/dist/commonjs/native/metro.js.map +1 -0
  57. package/dist/commonjs/native/objects.js.map +1 -0
  58. package/dist/commonjs/native/react/interaction.js.map +1 -0
  59. package/dist/commonjs/native/react/rules.js +259 -0
  60. package/dist/commonjs/native/react/rules.js.map +1 -0
  61. package/dist/commonjs/native/react/useNativeCss.js +160 -0
  62. package/dist/commonjs/native/react/useNativeCss.js.map +1 -0
  63. package/dist/commonjs/native/react/usePassthrough.js.map +1 -0
  64. package/dist/commonjs/native/reactivity.js +181 -0
  65. package/dist/commonjs/native/reactivity.js.map +1 -0
  66. package/dist/commonjs/native/reanimated.js.map +1 -0
  67. package/dist/commonjs/native/styles/calculate-props.js +162 -0
  68. package/dist/commonjs/native/styles/calculate-props.js.map +1 -0
  69. package/dist/commonjs/native/styles/constants.js.map +1 -0
  70. package/dist/commonjs/native/styles/defaults.js.map +1 -0
  71. package/dist/commonjs/native/styles/functions/animation-timing.js.map +1 -0
  72. package/dist/commonjs/native/styles/functions/calc.js.map +1 -0
  73. package/dist/commonjs/native/styles/functions/filters.js +84 -0
  74. package/dist/commonjs/native/styles/functions/filters.js.map +1 -0
  75. package/dist/commonjs/native/styles/functions/index.js.map +1 -0
  76. package/dist/commonjs/native/styles/functions/numeric-functions.js.map +1 -0
  77. package/dist/commonjs/native/styles/functions/platform-functions.js.map +1 -0
  78. package/dist/commonjs/native/styles/functions/string-functions.js.map +1 -0
  79. package/dist/commonjs/native/styles/functions/transform-functions.js +121 -0
  80. package/dist/commonjs/native/styles/functions/transform-functions.js.map +1 -0
  81. package/dist/commonjs/native/styles/index.js +115 -0
  82. package/dist/commonjs/native/styles/index.js.map +1 -0
  83. package/dist/commonjs/native/styles/line-height.js +25 -0
  84. package/dist/commonjs/native/styles/line-height.js.map +1 -0
  85. package/dist/commonjs/native/styles/resolve.js +108 -0
  86. package/dist/commonjs/native/styles/resolve.js.map +1 -0
  87. package/dist/commonjs/native/styles/shorthands/_handler.js +79 -0
  88. package/dist/commonjs/native/styles/shorthands/_handler.js.map +1 -0
  89. package/dist/commonjs/native/styles/shorthands/animation.js +57 -0
  90. package/dist/commonjs/native/styles/shorthands/animation.js.map +1 -0
  91. package/dist/commonjs/native/styles/shorthands/border.js.map +1 -0
  92. package/dist/commonjs/native/styles/shorthands/box-shadow.js +48 -0
  93. package/dist/commonjs/native/styles/shorthands/box-shadow.js.map +1 -0
  94. package/dist/commonjs/native/styles/shorthands/index.js.map +1 -0
  95. package/dist/commonjs/native/styles/shorthands/text-shadow.js.map +1 -0
  96. package/dist/commonjs/native/styles/shorthands/transform.js.map +1 -0
  97. package/dist/commonjs/native/styles/units.js.map +1 -0
  98. package/dist/commonjs/native/styles/variables.js +79 -0
  99. package/dist/commonjs/native/styles/variables.js.map +1 -0
  100. package/dist/commonjs/native-internal/README.md +11 -0
  101. package/dist/commonjs/native-internal/index.js +39 -0
  102. package/dist/commonjs/native-internal/index.js.map +1 -0
  103. package/dist/commonjs/native-internal/root.js +34 -0
  104. package/dist/commonjs/native-internal/root.js.map +1 -0
  105. package/dist/commonjs/native-internal/style-collection.js +110 -0
  106. package/dist/commonjs/native-internal/style-collection.js.map +1 -0
  107. package/dist/commonjs/native-internal/variables.js +27 -0
  108. package/dist/commonjs/native-internal/variables.js.map +1 -0
  109. package/dist/commonjs/runtime/native/injection.js +2 -0
  110. package/dist/commonjs/runtime/native/injection.js.map +1 -0
  111. package/dist/commonjs/runtime.js.map +1 -0
  112. package/dist/commonjs/runtime.native.js.map +1 -0
  113. package/dist/commonjs/runtime.types.js.map +1 -0
  114. package/dist/commonjs/utilities/dot-notation.types.js.map +1 -0
  115. package/dist/commonjs/utilities/index.js +39 -0
  116. package/dist/commonjs/utilities/index.js.map +1 -0
  117. package/dist/commonjs/utilities/specificity.js.map +1 -0
  118. package/dist/commonjs/utilities/style-descriptor.js +21 -0
  119. package/dist/commonjs/utilities/style-descriptor.js.map +1 -0
  120. package/dist/commonjs/web/api.js.map +1 -0
  121. package/dist/commonjs/web/assign-style.js.map +1 -0
  122. package/dist/commonjs/web/index.js.map +1 -0
  123. package/dist/commonjs/web/metro.js.map +1 -0
  124. package/dist/module/babel/index.js +2 -2
  125. package/dist/module/babel/index.js.map +1 -1
  126. package/dist/module/compiler/atRules.js +6 -26
  127. package/dist/module/compiler/atRules.js.map +1 -1
  128. package/dist/module/compiler/compiler.js +72 -25
  129. package/dist/module/compiler/compiler.js.map +1 -1
  130. package/dist/module/compiler/compiler.types.js +1 -1
  131. package/dist/module/compiler/compiler.types.js.map +1 -1
  132. package/dist/module/compiler/declarations.js +79 -60
  133. package/dist/module/compiler/declarations.js.map +1 -1
  134. package/dist/module/compiler/inline-variables.js +138 -0
  135. package/dist/module/compiler/inline-variables.js.map +1 -0
  136. package/dist/module/compiler/pseudo-elements.js +1 -1
  137. package/dist/module/compiler/pseudo-elements.js.map +1 -1
  138. package/dist/module/compiler/selector-builder.js +7 -5
  139. package/dist/module/compiler/selector-builder.js.map +1 -1
  140. package/dist/module/compiler/selectors.js +1 -1
  141. package/dist/module/compiler/selectors.js.map +1 -1
  142. package/dist/module/compiler/stylesheet.js +4 -5
  143. package/dist/module/compiler/stylesheet.js.map +1 -1
  144. package/dist/module/components/ActivityIndicator.js +1 -1
  145. package/dist/module/components/ActivityIndicator.js.map +1 -1
  146. package/dist/module/components/Button.js +1 -1
  147. package/dist/module/components/Button.js.map +1 -1
  148. package/dist/module/components/FlatList.js +1 -1
  149. package/dist/module/components/FlatList.js.map +1 -1
  150. package/dist/module/components/Image.js +1 -1
  151. package/dist/module/components/Image.js.map +1 -1
  152. package/dist/module/components/Switch.js +1 -1
  153. package/dist/module/components/Switch.js.map +1 -1
  154. package/dist/module/components/Text.js +1 -1
  155. package/dist/module/components/Text.js.map +1 -1
  156. package/dist/module/components/TextInput.js +1 -1
  157. package/dist/module/components/TextInput.js.map +1 -1
  158. package/dist/module/components/View.js +1 -1
  159. package/dist/module/components/View.js.map +1 -1
  160. package/dist/module/components/react-native-safe-area-context.native.js +2 -2
  161. package/dist/module/components/react-native-safe-area-context.native.js.map +1 -1
  162. package/dist/module/index.js +1 -1
  163. package/dist/module/index.js.map +1 -1
  164. package/dist/module/jest/index.js +3 -3
  165. package/dist/module/jest/index.js.map +1 -1
  166. package/dist/module/metro/index.js +11 -11
  167. package/dist/module/metro/index.js.map +1 -1
  168. package/dist/module/metro/injection-code.js +1 -1
  169. package/dist/module/metro/injection-code.js.map +1 -1
  170. package/dist/module/native/api.js +82 -0
  171. package/dist/module/native/api.js.map +1 -0
  172. package/dist/module/native/conditions/attributes.js +40 -0
  173. package/dist/module/native/conditions/attributes.js.map +1 -0
  174. package/dist/module/native/conditions/container-query.js.map +1 -0
  175. package/dist/module/native/conditions/guards.js.map +1 -0
  176. package/dist/module/native/conditions/index.js.map +1 -0
  177. package/dist/module/native/conditions/media-query.js.map +1 -0
  178. package/dist/module/native/index.js.map +1 -0
  179. package/dist/module/native/metro.js.map +1 -0
  180. package/dist/module/native/objects.js.map +1 -0
  181. package/dist/module/native/react/interaction.js.map +1 -0
  182. package/dist/module/native/react/rules.js +252 -0
  183. package/dist/module/native/react/rules.js.map +1 -0
  184. package/dist/module/native/react/useNativeCss.js +154 -0
  185. package/dist/module/native/react/useNativeCss.js.map +1 -0
  186. package/dist/module/native/react/usePassthrough.js.map +1 -0
  187. package/dist/module/native/reactivity.js +169 -0
  188. package/dist/module/native/reactivity.js.map +1 -0
  189. package/dist/module/native/reanimated.js.map +1 -0
  190. package/dist/module/native/styles/calculate-props.js +157 -0
  191. package/dist/module/native/styles/calculate-props.js.map +1 -0
  192. package/dist/module/native/styles/constants.js.map +1 -0
  193. package/dist/module/native/styles/defaults.js.map +1 -0
  194. package/dist/module/native/styles/functions/animation-timing.js.map +1 -0
  195. package/dist/module/native/styles/functions/calc.js.map +1 -0
  196. package/dist/module/native/styles/functions/filters.js +70 -0
  197. package/dist/module/native/styles/functions/filters.js.map +1 -0
  198. package/dist/module/native/styles/functions/index.js.map +1 -0
  199. package/dist/module/native/styles/functions/numeric-functions.js.map +1 -0
  200. package/dist/module/native/styles/functions/platform-functions.js.map +1 -0
  201. package/dist/module/native/styles/functions/string-functions.js.map +1 -0
  202. package/dist/module/native/styles/functions/transform-functions.js +114 -0
  203. package/dist/module/native/styles/functions/transform-functions.js.map +1 -0
  204. package/dist/module/native/styles/index.js +110 -0
  205. package/dist/module/native/styles/index.js.map +1 -0
  206. package/dist/module/native/styles/line-height.js +20 -0
  207. package/dist/module/native/styles/line-height.js.map +1 -0
  208. package/dist/module/native/styles/resolve.js +103 -0
  209. package/dist/module/native/styles/resolve.js.map +1 -0
  210. package/dist/module/native/styles/shorthands/_handler.js +74 -0
  211. package/dist/module/native/styles/shorthands/_handler.js.map +1 -0
  212. package/dist/module/native/styles/shorthands/animation.js +51 -0
  213. package/dist/module/native/styles/shorthands/animation.js.map +1 -0
  214. package/dist/module/native/styles/shorthands/border.js.map +1 -0
  215. package/dist/module/native/styles/shorthands/box-shadow.js +43 -0
  216. package/dist/module/native/styles/shorthands/box-shadow.js.map +1 -0
  217. package/dist/module/native/styles/shorthands/index.js.map +1 -0
  218. package/dist/module/native/styles/shorthands/text-shadow.js.map +1 -0
  219. package/dist/module/native/styles/shorthands/transform.js.map +1 -0
  220. package/dist/module/native/styles/units.js.map +1 -0
  221. package/dist/module/native/styles/variables.js +75 -0
  222. package/dist/module/native/styles/variables.js.map +1 -0
  223. package/dist/module/native-internal/README.md +11 -0
  224. package/dist/module/native-internal/index.js +6 -0
  225. package/dist/module/native-internal/index.js.map +1 -0
  226. package/dist/module/native-internal/root.js +30 -0
  227. package/dist/module/native-internal/root.js.map +1 -0
  228. package/dist/module/native-internal/style-collection.js +95 -0
  229. package/dist/module/native-internal/style-collection.js.map +1 -0
  230. package/dist/module/native-internal/variables.js +22 -0
  231. package/dist/module/native-internal/variables.js.map +1 -0
  232. package/dist/module/runtime/native/injection.js +2 -0
  233. package/dist/module/runtime/native/injection.js.map +1 -0
  234. package/dist/module/runtime.js.map +1 -0
  235. package/dist/module/runtime.native.js.map +1 -0
  236. package/dist/module/runtime.types.js.map +1 -0
  237. package/dist/module/utilities/dot-notation.types.js.map +1 -0
  238. package/dist/module/utilities/index.js +6 -0
  239. package/dist/module/utilities/index.js.map +1 -0
  240. package/dist/module/utilities/specificity.js.map +1 -0
  241. package/dist/module/utilities/style-descriptor.js +16 -0
  242. package/dist/module/utilities/style-descriptor.js.map +1 -0
  243. package/dist/module/web/api.js.map +1 -0
  244. package/dist/module/web/assign-style.js.map +1 -0
  245. package/dist/module/web/index.js.map +1 -0
  246. package/dist/module/web/metro.js.map +1 -0
  247. package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -1
  248. package/dist/typescript/commonjs/src/babel/index.d.ts +3 -0
  249. package/dist/typescript/commonjs/src/babel/index.d.ts.map +1 -1
  250. package/dist/typescript/commonjs/src/compiler/atRules.d.ts +1 -1
  251. package/dist/typescript/commonjs/src/compiler/atRules.d.ts.map +1 -1
  252. package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -1
  253. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +11 -7
  254. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -1
  255. package/dist/typescript/commonjs/src/compiler/declarations.d.ts +7 -7
  256. package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -1
  257. package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts +4 -0
  258. package/dist/typescript/commonjs/src/compiler/inline-variables.d.ts.map +1 -0
  259. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts +1 -1
  260. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -1
  261. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -1
  262. package/dist/typescript/commonjs/src/components/Text.d.ts +2 -2
  263. package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -1
  264. package/dist/typescript/commonjs/src/components/View.d.ts +2 -2
  265. package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -1
  266. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts.map +1 -1
  267. package/dist/typescript/commonjs/src/jest/index.d.ts +1 -1
  268. package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -1
  269. package/dist/typescript/commonjs/src/metro/index.d.ts +1 -1
  270. package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -1
  271. package/dist/typescript/commonjs/src/native/api.d.ts +26 -0
  272. package/dist/typescript/commonjs/src/native/api.d.ts.map +1 -0
  273. package/dist/typescript/commonjs/src/native/conditions/attributes.d.ts +4 -0
  274. package/dist/typescript/commonjs/src/native/conditions/attributes.d.ts.map +1 -0
  275. package/dist/typescript/commonjs/src/native/conditions/container-query.d.ts +7 -0
  276. package/dist/typescript/commonjs/src/native/conditions/container-query.d.ts.map +1 -0
  277. package/dist/typescript/commonjs/src/native/conditions/guards.d.ts.map +1 -0
  278. package/dist/typescript/commonjs/src/native/conditions/index.d.ts +6 -0
  279. package/dist/typescript/commonjs/src/native/conditions/index.d.ts.map +1 -0
  280. package/dist/typescript/commonjs/src/native/conditions/media-query.d.ts +4 -0
  281. package/dist/typescript/commonjs/src/native/conditions/media-query.d.ts.map +1 -0
  282. package/dist/typescript/commonjs/src/native/index.d.ts.map +1 -0
  283. package/dist/typescript/commonjs/src/native/metro.d.ts.map +1 -0
  284. package/dist/typescript/commonjs/src/native/objects.d.ts.map +1 -0
  285. package/dist/typescript/commonjs/src/native/react/interaction.d.ts.map +1 -0
  286. package/dist/typescript/commonjs/src/native/react/rules.d.ts.map +1 -0
  287. package/dist/typescript/commonjs/src/native/react/useNativeCss.d.ts.map +1 -0
  288. package/dist/typescript/commonjs/src/native/react/usePassthrough.d.ts.map +1 -0
  289. package/dist/typescript/commonjs/src/native/reactivity.d.ts +52 -0
  290. package/dist/typescript/commonjs/src/native/reactivity.d.ts.map +1 -0
  291. package/dist/typescript/commonjs/src/native/reanimated.d.ts.map +1 -0
  292. package/dist/typescript/commonjs/src/native/styles/calculate-props.d.ts +10 -0
  293. package/dist/typescript/commonjs/src/native/styles/calculate-props.d.ts.map +1 -0
  294. package/dist/typescript/commonjs/src/native/styles/constants.d.ts.map +1 -0
  295. package/dist/typescript/commonjs/src/native/styles/defaults.d.ts.map +1 -0
  296. package/dist/typescript/commonjs/src/native/styles/functions/animation-timing.d.ts.map +1 -0
  297. package/dist/typescript/commonjs/src/native/styles/functions/calc.d.ts.map +1 -0
  298. package/dist/typescript/commonjs/src/native/styles/functions/filters.d.ts.map +1 -0
  299. package/dist/typescript/commonjs/src/native/styles/functions/index.d.ts.map +1 -0
  300. package/dist/typescript/commonjs/src/native/styles/functions/numeric-functions.d.ts.map +1 -0
  301. package/dist/typescript/commonjs/src/native/styles/functions/platform-functions.d.ts.map +1 -0
  302. package/dist/typescript/commonjs/src/native/styles/functions/string-functions.d.ts.map +1 -0
  303. package/dist/typescript/commonjs/src/native/styles/functions/transform-functions.d.ts.map +1 -0
  304. package/dist/typescript/commonjs/src/native/styles/index.d.ts +19 -0
  305. package/dist/typescript/commonjs/src/native/styles/index.d.ts.map +1 -0
  306. package/dist/typescript/commonjs/src/native/styles/line-height.d.ts +3 -0
  307. package/dist/typescript/commonjs/src/native/styles/line-height.d.ts.map +1 -0
  308. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts +18 -0
  309. package/dist/typescript/commonjs/src/native/styles/resolve.d.ts.map +1 -0
  310. package/dist/typescript/commonjs/src/native/styles/shorthands/_handler.d.ts.map +1 -0
  311. package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts.map +1 -0
  312. package/dist/typescript/commonjs/src/native/styles/shorthands/border.d.ts.map +1 -0
  313. package/dist/typescript/commonjs/src/native/styles/shorthands/box-shadow.d.ts.map +1 -0
  314. package/dist/typescript/commonjs/src/native/styles/shorthands/index.d.ts.map +1 -0
  315. package/dist/typescript/commonjs/src/native/styles/shorthands/text-shadow.d.ts.map +1 -0
  316. package/dist/typescript/commonjs/src/native/styles/shorthands/transform.d.ts.map +1 -0
  317. package/dist/typescript/commonjs/src/native/styles/units.d.ts.map +1 -0
  318. package/dist/typescript/commonjs/src/native/styles/variables.d.ts +5 -0
  319. package/dist/typescript/commonjs/src/native/styles/variables.d.ts.map +1 -0
  320. package/dist/typescript/commonjs/src/native-internal/index.d.ts +4 -0
  321. package/dist/typescript/commonjs/src/native-internal/index.d.ts.map +1 -0
  322. package/dist/typescript/commonjs/src/native-internal/root.d.ts +11 -0
  323. package/dist/typescript/commonjs/src/native-internal/root.d.ts.map +1 -0
  324. package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts +16 -0
  325. package/dist/typescript/commonjs/src/native-internal/style-collection.d.ts.map +1 -0
  326. package/dist/typescript/commonjs/src/native-internal/variables.d.ts +8 -0
  327. package/dist/typescript/commonjs/src/native-internal/variables.d.ts.map +1 -0
  328. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts +1 -0
  329. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts.map +1 -0
  330. package/dist/typescript/commonjs/src/runtime.d.ts.map +1 -0
  331. package/dist/typescript/commonjs/src/runtime.native.d.ts.map +1 -0
  332. package/dist/typescript/commonjs/src/runtime.types.d.ts +49 -0
  333. package/dist/typescript/commonjs/src/runtime.types.d.ts.map +1 -0
  334. package/dist/typescript/commonjs/src/utilities/dot-notation.types.d.ts.map +1 -0
  335. package/dist/typescript/commonjs/src/utilities/index.d.ts +4 -0
  336. package/dist/typescript/commonjs/src/utilities/index.d.ts.map +1 -0
  337. package/dist/typescript/commonjs/src/utilities/specificity.d.ts +13 -0
  338. package/dist/typescript/commonjs/src/utilities/specificity.d.ts.map +1 -0
  339. package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts +4 -0
  340. package/dist/typescript/commonjs/src/utilities/style-descriptor.d.ts.map +1 -0
  341. package/dist/typescript/commonjs/src/web/api.d.ts +16 -0
  342. package/dist/typescript/commonjs/src/web/api.d.ts.map +1 -0
  343. package/dist/typescript/commonjs/src/web/assign-style.d.ts.map +1 -0
  344. package/dist/typescript/commonjs/src/web/index.d.ts.map +1 -0
  345. package/dist/typescript/commonjs/src/web/metro.d.ts.map +1 -0
  346. package/dist/typescript/module/example/src/App.d.ts.map +1 -1
  347. package/dist/typescript/module/src/babel/index.d.ts +3 -0
  348. package/dist/typescript/module/src/babel/index.d.ts.map +1 -1
  349. package/dist/typescript/module/src/compiler/atRules.d.ts +1 -1
  350. package/dist/typescript/module/src/compiler/atRules.d.ts.map +1 -1
  351. package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -1
  352. package/dist/typescript/module/src/compiler/compiler.types.d.ts +11 -7
  353. package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -1
  354. package/dist/typescript/module/src/compiler/declarations.d.ts +7 -7
  355. package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -1
  356. package/dist/typescript/module/src/compiler/inline-variables.d.ts +4 -0
  357. package/dist/typescript/module/src/compiler/inline-variables.d.ts.map +1 -0
  358. package/dist/typescript/module/src/compiler/selector-builder.d.ts +1 -1
  359. package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -1
  360. package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -1
  361. package/dist/typescript/module/src/components/Text.d.ts +2 -2
  362. package/dist/typescript/module/src/components/Text.d.ts.map +1 -1
  363. package/dist/typescript/module/src/components/View.d.ts +2 -2
  364. package/dist/typescript/module/src/components/View.d.ts.map +1 -1
  365. package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts.map +1 -1
  366. package/dist/typescript/module/src/jest/index.d.ts +1 -1
  367. package/dist/typescript/module/src/jest/index.d.ts.map +1 -1
  368. package/dist/typescript/module/src/metro/index.d.ts +1 -1
  369. package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
  370. package/dist/typescript/module/src/native/api.d.ts +26 -0
  371. package/dist/typescript/module/src/native/api.d.ts.map +1 -0
  372. package/dist/typescript/module/src/native/conditions/attributes.d.ts +4 -0
  373. package/dist/typescript/module/src/native/conditions/attributes.d.ts.map +1 -0
  374. package/dist/typescript/module/src/native/conditions/container-query.d.ts +7 -0
  375. package/dist/typescript/module/src/native/conditions/container-query.d.ts.map +1 -0
  376. package/dist/typescript/module/src/native/conditions/guards.d.ts.map +1 -0
  377. package/dist/typescript/module/src/native/conditions/index.d.ts +6 -0
  378. package/dist/typescript/module/src/native/conditions/index.d.ts.map +1 -0
  379. package/dist/typescript/module/src/native/conditions/media-query.d.ts +4 -0
  380. package/dist/typescript/module/src/native/conditions/media-query.d.ts.map +1 -0
  381. package/dist/typescript/module/src/native/index.d.ts.map +1 -0
  382. package/dist/typescript/module/src/native/metro.d.ts.map +1 -0
  383. package/dist/typescript/module/src/native/objects.d.ts.map +1 -0
  384. package/dist/typescript/module/src/native/react/interaction.d.ts.map +1 -0
  385. package/dist/typescript/module/src/native/react/rules.d.ts.map +1 -0
  386. package/dist/typescript/module/src/native/react/useNativeCss.d.ts.map +1 -0
  387. package/dist/typescript/module/src/native/react/usePassthrough.d.ts.map +1 -0
  388. package/dist/typescript/module/src/native/reactivity.d.ts +52 -0
  389. package/dist/typescript/module/src/native/reactivity.d.ts.map +1 -0
  390. package/dist/typescript/module/src/native/reanimated.d.ts.map +1 -0
  391. package/dist/typescript/module/src/native/styles/calculate-props.d.ts +10 -0
  392. package/dist/typescript/module/src/native/styles/calculate-props.d.ts.map +1 -0
  393. package/dist/typescript/module/src/native/styles/constants.d.ts.map +1 -0
  394. package/dist/typescript/module/src/native/styles/defaults.d.ts.map +1 -0
  395. package/dist/typescript/module/src/native/styles/functions/animation-timing.d.ts.map +1 -0
  396. package/dist/typescript/module/src/native/styles/functions/calc.d.ts.map +1 -0
  397. package/dist/typescript/module/src/native/styles/functions/filters.d.ts.map +1 -0
  398. package/dist/typescript/module/src/native/styles/functions/index.d.ts.map +1 -0
  399. package/dist/typescript/module/src/native/styles/functions/numeric-functions.d.ts.map +1 -0
  400. package/dist/typescript/module/src/native/styles/functions/platform-functions.d.ts.map +1 -0
  401. package/dist/typescript/module/src/native/styles/functions/string-functions.d.ts.map +1 -0
  402. package/dist/typescript/module/src/native/styles/functions/transform-functions.d.ts.map +1 -0
  403. package/dist/typescript/module/src/native/styles/index.d.ts +19 -0
  404. package/dist/typescript/module/src/native/styles/index.d.ts.map +1 -0
  405. package/dist/typescript/module/src/native/styles/line-height.d.ts +3 -0
  406. package/dist/typescript/module/src/native/styles/line-height.d.ts.map +1 -0
  407. package/dist/typescript/module/src/native/styles/resolve.d.ts +18 -0
  408. package/dist/typescript/module/src/native/styles/resolve.d.ts.map +1 -0
  409. package/dist/typescript/module/src/native/styles/shorthands/_handler.d.ts.map +1 -0
  410. package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts.map +1 -0
  411. package/dist/typescript/module/src/native/styles/shorthands/border.d.ts.map +1 -0
  412. package/dist/typescript/module/src/native/styles/shorthands/box-shadow.d.ts.map +1 -0
  413. package/dist/typescript/module/src/native/styles/shorthands/index.d.ts.map +1 -0
  414. package/dist/typescript/module/src/native/styles/shorthands/text-shadow.d.ts.map +1 -0
  415. package/dist/typescript/module/src/native/styles/shorthands/transform.d.ts.map +1 -0
  416. package/dist/typescript/module/src/native/styles/units.d.ts.map +1 -0
  417. package/dist/typescript/module/src/native/styles/variables.d.ts +5 -0
  418. package/dist/typescript/module/src/native/styles/variables.d.ts.map +1 -0
  419. package/dist/typescript/module/src/native-internal/index.d.ts +4 -0
  420. package/dist/typescript/module/src/native-internal/index.d.ts.map +1 -0
  421. package/dist/typescript/module/src/native-internal/root.d.ts +11 -0
  422. package/dist/typescript/module/src/native-internal/root.d.ts.map +1 -0
  423. package/dist/typescript/module/src/native-internal/style-collection.d.ts +16 -0
  424. package/dist/typescript/module/src/native-internal/style-collection.d.ts.map +1 -0
  425. package/dist/typescript/module/src/native-internal/variables.d.ts +8 -0
  426. package/dist/typescript/module/src/native-internal/variables.d.ts.map +1 -0
  427. package/dist/typescript/module/src/runtime/native/injection.d.ts +1 -0
  428. package/dist/typescript/module/src/runtime/native/injection.d.ts.map +1 -0
  429. package/dist/typescript/module/src/runtime.d.ts.map +1 -0
  430. package/dist/typescript/module/src/runtime.native.d.ts.map +1 -0
  431. package/dist/typescript/module/src/runtime.types.d.ts +49 -0
  432. package/dist/typescript/module/src/runtime.types.d.ts.map +1 -0
  433. package/dist/typescript/module/src/utilities/dot-notation.types.d.ts.map +1 -0
  434. package/dist/typescript/module/src/utilities/index.d.ts +4 -0
  435. package/dist/typescript/module/src/utilities/index.d.ts.map +1 -0
  436. package/dist/typescript/module/src/utilities/specificity.d.ts +13 -0
  437. package/dist/typescript/module/src/utilities/specificity.d.ts.map +1 -0
  438. package/dist/typescript/module/src/utilities/style-descriptor.d.ts +4 -0
  439. package/dist/typescript/module/src/utilities/style-descriptor.d.ts.map +1 -0
  440. package/dist/typescript/module/src/web/api.d.ts +16 -0
  441. package/dist/typescript/module/src/web/api.d.ts.map +1 -0
  442. package/dist/typescript/module/src/web/assign-style.d.ts.map +1 -0
  443. package/dist/typescript/module/src/web/index.d.ts.map +1 -0
  444. package/dist/typescript/module/src/web/metro.d.ts.map +1 -0
  445. package/package.json +85 -53
  446. package/src/babel/index.ts +2 -2
  447. package/src/compiler/atRules.ts +4 -26
  448. package/src/compiler/compiler.ts +89 -27
  449. package/src/compiler/compiler.types.ts +16 -7
  450. package/src/compiler/declarations.ts +116 -99
  451. package/src/compiler/inline-variables.ts +209 -0
  452. package/src/compiler/pseudo-elements.ts +1 -1
  453. package/src/compiler/selector-builder.ts +8 -6
  454. package/src/compiler/selectors.ts +1 -1
  455. package/src/compiler/stylesheet.ts +5 -10
  456. package/src/components/Text.tsx +1 -1
  457. package/src/components/View.tsx +1 -1
  458. package/src/components/react-native-safe-area-context.native.tsx +7 -3
  459. package/src/jest/index.ts +4 -4
  460. package/src/metro/index.ts +19 -17
  461. package/src/metro/injection-code.ts +1 -1
  462. package/src/native/api.tsx +120 -0
  463. package/src/native/conditions/attributes.ts +54 -0
  464. package/src/native/conditions/container-query.ts +162 -0
  465. package/src/native/conditions/index.ts +55 -0
  466. package/src/native/conditions/media-query.ts +99 -0
  467. package/src/native/react/rules.ts +336 -0
  468. package/src/native/react/useNativeCss.ts +204 -0
  469. package/src/native/reactivity.ts +248 -0
  470. package/src/native/styles/calculate-props.ts +217 -0
  471. package/src/native/styles/functions/filters.ts +99 -0
  472. package/src/native/styles/functions/transform-functions.ts +85 -0
  473. package/src/native/styles/index.ts +198 -0
  474. package/src/native/styles/line-height.ts +25 -0
  475. package/src/native/styles/resolve.ts +165 -0
  476. package/src/native/styles/shorthands/_handler.ts +122 -0
  477. package/src/native/styles/shorthands/animation.ts +123 -0
  478. package/src/native/styles/shorthands/box-shadow.ts +71 -0
  479. package/src/native/styles/variables.ts +88 -0
  480. package/src/native-internal/README.md +11 -0
  481. package/src/native-internal/index.ts +3 -0
  482. package/src/native-internal/root.ts +44 -0
  483. package/src/native-internal/style-collection.ts +148 -0
  484. package/src/native-internal/variables.tsx +36 -0
  485. package/src/runtime/native/injection.ts +0 -0
  486. package/src/runtime.types.ts +150 -0
  487. package/src/utilities/index.ts +3 -0
  488. package/src/utilities/specificity.ts +45 -0
  489. package/src/utilities/style-descriptor.ts +24 -0
  490. package/src/web/api.tsx +115 -0
  491. package/dist/commonjs/runtime/index.js +0 -17
  492. package/dist/commonjs/runtime/index.js.map +0 -1
  493. package/dist/commonjs/runtime/native/api.js +0 -115
  494. package/dist/commonjs/runtime/native/api.js.map +0 -1
  495. package/dist/commonjs/runtime/native/conditions/attributes.js +0 -42
  496. package/dist/commonjs/runtime/native/conditions/attributes.js.map +0 -1
  497. package/dist/commonjs/runtime/native/conditions/container-query.js.map +0 -1
  498. package/dist/commonjs/runtime/native/conditions/guards.js.map +0 -1
  499. package/dist/commonjs/runtime/native/conditions/index.js.map +0 -1
  500. package/dist/commonjs/runtime/native/conditions/media-query.js.map +0 -1
  501. package/dist/commonjs/runtime/native/index.js.map +0 -1
  502. package/dist/commonjs/runtime/native/metro.js.map +0 -1
  503. package/dist/commonjs/runtime/native/react/interaction.js.map +0 -1
  504. package/dist/commonjs/runtime/native/react/rules.js +0 -259
  505. package/dist/commonjs/runtime/native/react/rules.js.map +0 -1
  506. package/dist/commonjs/runtime/native/react/useNativeCss.js +0 -159
  507. package/dist/commonjs/runtime/native/react/useNativeCss.js.map +0 -1
  508. package/dist/commonjs/runtime/native/react/usePassthrough.js.map +0 -1
  509. package/dist/commonjs/runtime/native/reactivity.js +0 -185
  510. package/dist/commonjs/runtime/native/reactivity.js.map +0 -1
  511. package/dist/commonjs/runtime/native/reanimated.js.map +0 -1
  512. package/dist/commonjs/runtime/native/styles/calculate-props.js +0 -148
  513. package/dist/commonjs/runtime/native/styles/calculate-props.js.map +0 -1
  514. package/dist/commonjs/runtime/native/styles/constants.js.map +0 -1
  515. package/dist/commonjs/runtime/native/styles/defaults.js.map +0 -1
  516. package/dist/commonjs/runtime/native/styles/functions/animation-timing.js.map +0 -1
  517. package/dist/commonjs/runtime/native/styles/functions/calc.js.map +0 -1
  518. package/dist/commonjs/runtime/native/styles/functions/filters.js +0 -84
  519. package/dist/commonjs/runtime/native/styles/functions/filters.js.map +0 -1
  520. package/dist/commonjs/runtime/native/styles/functions/index.js.map +0 -1
  521. package/dist/commonjs/runtime/native/styles/functions/numeric-functions.js.map +0 -1
  522. package/dist/commonjs/runtime/native/styles/functions/platform-functions.js.map +0 -1
  523. package/dist/commonjs/runtime/native/styles/functions/string-functions.js.map +0 -1
  524. package/dist/commonjs/runtime/native/styles/functions/transform-functions.js +0 -121
  525. package/dist/commonjs/runtime/native/styles/functions/transform-functions.js.map +0 -1
  526. package/dist/commonjs/runtime/native/styles/index.js +0 -115
  527. package/dist/commonjs/runtime/native/styles/index.js.map +0 -1
  528. package/dist/commonjs/runtime/native/styles/resolve.js +0 -106
  529. package/dist/commonjs/runtime/native/styles/resolve.js.map +0 -1
  530. package/dist/commonjs/runtime/native/styles/shorthands/_handler.js +0 -79
  531. package/dist/commonjs/runtime/native/styles/shorthands/_handler.js.map +0 -1
  532. package/dist/commonjs/runtime/native/styles/shorthands/animation.js +0 -57
  533. package/dist/commonjs/runtime/native/styles/shorthands/animation.js.map +0 -1
  534. package/dist/commonjs/runtime/native/styles/shorthands/border.js.map +0 -1
  535. package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js +0 -50
  536. package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js.map +0 -1
  537. package/dist/commonjs/runtime/native/styles/shorthands/index.js.map +0 -1
  538. package/dist/commonjs/runtime/native/styles/shorthands/text-shadow.js.map +0 -1
  539. package/dist/commonjs/runtime/native/styles/shorthands/transform.js.map +0 -1
  540. package/dist/commonjs/runtime/native/styles/units.js.map +0 -1
  541. package/dist/commonjs/runtime/native/styles/variables.js +0 -79
  542. package/dist/commonjs/runtime/native/styles/variables.js.map +0 -1
  543. package/dist/commonjs/runtime/runtime.js.map +0 -1
  544. package/dist/commonjs/runtime/runtime.native.js.map +0 -1
  545. package/dist/commonjs/runtime/runtime.types.js.map +0 -1
  546. package/dist/commonjs/runtime/utils/components.js +0 -18
  547. package/dist/commonjs/runtime/utils/components.js.map +0 -1
  548. package/dist/commonjs/runtime/utils/dot-notation.types.js.map +0 -1
  549. package/dist/commonjs/runtime/utils/index.js +0 -61
  550. package/dist/commonjs/runtime/utils/index.js.map +0 -1
  551. package/dist/commonjs/runtime/utils/objects.js.map +0 -1
  552. package/dist/commonjs/runtime/utils/specificity.js.map +0 -1
  553. package/dist/commonjs/runtime/utils/style-value.js +0 -21
  554. package/dist/commonjs/runtime/utils/style-value.js.map +0 -1
  555. package/dist/commonjs/runtime/utils/utils.types.js +0 -6
  556. package/dist/commonjs/runtime/utils/utils.types.js.map +0 -1
  557. package/dist/commonjs/runtime/web/api.js.map +0 -1
  558. package/dist/commonjs/runtime/web/assign-style.js.map +0 -1
  559. package/dist/commonjs/runtime/web/index.js.map +0 -1
  560. package/dist/commonjs/runtime/web/metro.js.map +0 -1
  561. package/dist/commonjs/style-collection/index.js +0 -110
  562. package/dist/commonjs/style-collection/index.js.map +0 -1
  563. package/dist/commonjs/style-collection/root.js +0 -29
  564. package/dist/commonjs/style-collection/root.js.map +0 -1
  565. package/dist/module/runtime/index.js +0 -9
  566. package/dist/module/runtime/index.js.map +0 -1
  567. package/dist/module/runtime/native/api.js +0 -94
  568. package/dist/module/runtime/native/api.js.map +0 -1
  569. package/dist/module/runtime/native/conditions/attributes.js +0 -38
  570. package/dist/module/runtime/native/conditions/attributes.js.map +0 -1
  571. package/dist/module/runtime/native/conditions/container-query.js.map +0 -1
  572. package/dist/module/runtime/native/conditions/guards.js.map +0 -1
  573. package/dist/module/runtime/native/conditions/index.js.map +0 -1
  574. package/dist/module/runtime/native/conditions/media-query.js.map +0 -1
  575. package/dist/module/runtime/native/index.js.map +0 -1
  576. package/dist/module/runtime/native/metro.js.map +0 -1
  577. package/dist/module/runtime/native/react/interaction.js.map +0 -1
  578. package/dist/module/runtime/native/react/rules.js +0 -251
  579. package/dist/module/runtime/native/react/rules.js.map +0 -1
  580. package/dist/module/runtime/native/react/useNativeCss.js +0 -153
  581. package/dist/module/runtime/native/react/useNativeCss.js.map +0 -1
  582. package/dist/module/runtime/native/react/usePassthrough.js.map +0 -1
  583. package/dist/module/runtime/native/reactivity.js +0 -173
  584. package/dist/module/runtime/native/reactivity.js.map +0 -1
  585. package/dist/module/runtime/native/reanimated.js.map +0 -1
  586. package/dist/module/runtime/native/styles/calculate-props.js +0 -143
  587. package/dist/module/runtime/native/styles/calculate-props.js.map +0 -1
  588. package/dist/module/runtime/native/styles/constants.js.map +0 -1
  589. package/dist/module/runtime/native/styles/defaults.js.map +0 -1
  590. package/dist/module/runtime/native/styles/functions/animation-timing.js.map +0 -1
  591. package/dist/module/runtime/native/styles/functions/calc.js.map +0 -1
  592. package/dist/module/runtime/native/styles/functions/filters.js +0 -70
  593. package/dist/module/runtime/native/styles/functions/filters.js.map +0 -1
  594. package/dist/module/runtime/native/styles/functions/index.js.map +0 -1
  595. package/dist/module/runtime/native/styles/functions/numeric-functions.js.map +0 -1
  596. package/dist/module/runtime/native/styles/functions/platform-functions.js.map +0 -1
  597. package/dist/module/runtime/native/styles/functions/string-functions.js.map +0 -1
  598. package/dist/module/runtime/native/styles/functions/transform-functions.js +0 -114
  599. package/dist/module/runtime/native/styles/functions/transform-functions.js.map +0 -1
  600. package/dist/module/runtime/native/styles/index.js +0 -110
  601. package/dist/module/runtime/native/styles/index.js.map +0 -1
  602. package/dist/module/runtime/native/styles/resolve.js +0 -101
  603. package/dist/module/runtime/native/styles/resolve.js.map +0 -1
  604. package/dist/module/runtime/native/styles/shorthands/_handler.js +0 -74
  605. package/dist/module/runtime/native/styles/shorthands/_handler.js.map +0 -1
  606. package/dist/module/runtime/native/styles/shorthands/animation.js +0 -51
  607. package/dist/module/runtime/native/styles/shorthands/animation.js.map +0 -1
  608. package/dist/module/runtime/native/styles/shorthands/border.js.map +0 -1
  609. package/dist/module/runtime/native/styles/shorthands/box-shadow.js +0 -45
  610. package/dist/module/runtime/native/styles/shorthands/box-shadow.js.map +0 -1
  611. package/dist/module/runtime/native/styles/shorthands/index.js.map +0 -1
  612. package/dist/module/runtime/native/styles/shorthands/text-shadow.js.map +0 -1
  613. package/dist/module/runtime/native/styles/shorthands/transform.js.map +0 -1
  614. package/dist/module/runtime/native/styles/units.js.map +0 -1
  615. package/dist/module/runtime/native/styles/variables.js +0 -75
  616. package/dist/module/runtime/native/styles/variables.js.map +0 -1
  617. package/dist/module/runtime/runtime.js.map +0 -1
  618. package/dist/module/runtime/runtime.native.js.map +0 -1
  619. package/dist/module/runtime/runtime.types.js.map +0 -1
  620. package/dist/module/runtime/utils/components.js +0 -14
  621. package/dist/module/runtime/utils/components.js.map +0 -1
  622. package/dist/module/runtime/utils/dot-notation.types.js.map +0 -1
  623. package/dist/module/runtime/utils/index.js +0 -8
  624. package/dist/module/runtime/utils/index.js.map +0 -1
  625. package/dist/module/runtime/utils/objects.js.map +0 -1
  626. package/dist/module/runtime/utils/specificity.js.map +0 -1
  627. package/dist/module/runtime/utils/style-value.js +0 -16
  628. package/dist/module/runtime/utils/style-value.js.map +0 -1
  629. package/dist/module/runtime/utils/utils.types.js +0 -4
  630. package/dist/module/runtime/utils/utils.types.js.map +0 -1
  631. package/dist/module/runtime/web/api.js.map +0 -1
  632. package/dist/module/runtime/web/assign-style.js.map +0 -1
  633. package/dist/module/runtime/web/index.js.map +0 -1
  634. package/dist/module/runtime/web/metro.js.map +0 -1
  635. package/dist/module/style-collection/index.js +0 -95
  636. package/dist/module/style-collection/index.js.map +0 -1
  637. package/dist/module/style-collection/root.js +0 -25
  638. package/dist/module/style-collection/root.js.map +0 -1
  639. package/dist/typescript/commonjs/src/runtime/index.d.ts +0 -7
  640. package/dist/typescript/commonjs/src/runtime/index.d.ts.map +0 -1
  641. package/dist/typescript/commonjs/src/runtime/native/api.d.ts +0 -31
  642. package/dist/typescript/commonjs/src/runtime/native/api.d.ts.map +0 -1
  643. package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts +0 -5
  644. package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts.map +0 -1
  645. package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts +0 -7
  646. package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts.map +0 -1
  647. package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts.map +0 -1
  648. package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts +0 -6
  649. package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts.map +0 -1
  650. package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts +0 -4
  651. package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts.map +0 -1
  652. package/dist/typescript/commonjs/src/runtime/native/index.d.ts.map +0 -1
  653. package/dist/typescript/commonjs/src/runtime/native/metro.d.ts.map +0 -1
  654. package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts.map +0 -1
  655. package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts.map +0 -1
  656. package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts.map +0 -1
  657. package/dist/typescript/commonjs/src/runtime/native/react/usePassthrough.d.ts.map +0 -1
  658. package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts +0 -53
  659. package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts.map +0 -1
  660. package/dist/typescript/commonjs/src/runtime/native/reanimated.d.ts.map +0 -1
  661. package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts +0 -10
  662. package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts.map +0 -1
  663. package/dist/typescript/commonjs/src/runtime/native/styles/constants.d.ts.map +0 -1
  664. package/dist/typescript/commonjs/src/runtime/native/styles/defaults.d.ts.map +0 -1
  665. package/dist/typescript/commonjs/src/runtime/native/styles/functions/animation-timing.d.ts.map +0 -1
  666. package/dist/typescript/commonjs/src/runtime/native/styles/functions/calc.d.ts.map +0 -1
  667. package/dist/typescript/commonjs/src/runtime/native/styles/functions/filters.d.ts.map +0 -1
  668. package/dist/typescript/commonjs/src/runtime/native/styles/functions/index.d.ts.map +0 -1
  669. package/dist/typescript/commonjs/src/runtime/native/styles/functions/numeric-functions.d.ts.map +0 -1
  670. package/dist/typescript/commonjs/src/runtime/native/styles/functions/platform-functions.d.ts.map +0 -1
  671. package/dist/typescript/commonjs/src/runtime/native/styles/functions/string-functions.d.ts.map +0 -1
  672. package/dist/typescript/commonjs/src/runtime/native/styles/functions/transform-functions.d.ts.map +0 -1
  673. package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts +0 -19
  674. package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts.map +0 -1
  675. package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts +0 -18
  676. package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts.map +0 -1
  677. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/_handler.d.ts.map +0 -1
  678. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/animation.d.ts.map +0 -1
  679. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/border.d.ts.map +0 -1
  680. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +0 -1
  681. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/index.d.ts.map +0 -1
  682. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +0 -1
  683. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/transform.d.ts.map +0 -1
  684. package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts.map +0 -1
  685. package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts +0 -5
  686. package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts.map +0 -1
  687. package/dist/typescript/commonjs/src/runtime/runtime.d.ts.map +0 -1
  688. package/dist/typescript/commonjs/src/runtime/runtime.native.d.ts.map +0 -1
  689. package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts +0 -47
  690. package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts.map +0 -1
  691. package/dist/typescript/commonjs/src/runtime/utils/components.d.ts +0 -2
  692. package/dist/typescript/commonjs/src/runtime/utils/components.d.ts.map +0 -1
  693. package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts.map +0 -1
  694. package/dist/typescript/commonjs/src/runtime/utils/index.d.ts +0 -6
  695. package/dist/typescript/commonjs/src/runtime/utils/index.d.ts.map +0 -1
  696. package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts.map +0 -1
  697. package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts +0 -13
  698. package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts.map +0 -1
  699. package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts +0 -4
  700. package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts.map +0 -1
  701. package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts +0 -5
  702. package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts.map +0 -1
  703. package/dist/typescript/commonjs/src/runtime/web/api.d.ts +0 -16
  704. package/dist/typescript/commonjs/src/runtime/web/api.d.ts.map +0 -1
  705. package/dist/typescript/commonjs/src/runtime/web/assign-style.d.ts.map +0 -1
  706. package/dist/typescript/commonjs/src/runtime/web/index.d.ts.map +0 -1
  707. package/dist/typescript/commonjs/src/runtime/web/metro.d.ts.map +0 -1
  708. package/dist/typescript/commonjs/src/style-collection/index.d.ts +0 -14
  709. package/dist/typescript/commonjs/src/style-collection/index.d.ts.map +0 -1
  710. package/dist/typescript/commonjs/src/style-collection/root.d.ts +0 -11
  711. package/dist/typescript/commonjs/src/style-collection/root.d.ts.map +0 -1
  712. package/dist/typescript/module/src/runtime/index.d.ts +0 -7
  713. package/dist/typescript/module/src/runtime/index.d.ts.map +0 -1
  714. package/dist/typescript/module/src/runtime/native/api.d.ts +0 -31
  715. package/dist/typescript/module/src/runtime/native/api.d.ts.map +0 -1
  716. package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts +0 -5
  717. package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts.map +0 -1
  718. package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts +0 -7
  719. package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts.map +0 -1
  720. package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts.map +0 -1
  721. package/dist/typescript/module/src/runtime/native/conditions/index.d.ts +0 -6
  722. package/dist/typescript/module/src/runtime/native/conditions/index.d.ts.map +0 -1
  723. package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts +0 -4
  724. package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts.map +0 -1
  725. package/dist/typescript/module/src/runtime/native/index.d.ts.map +0 -1
  726. package/dist/typescript/module/src/runtime/native/metro.d.ts.map +0 -1
  727. package/dist/typescript/module/src/runtime/native/react/interaction.d.ts.map +0 -1
  728. package/dist/typescript/module/src/runtime/native/react/rules.d.ts.map +0 -1
  729. package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts.map +0 -1
  730. package/dist/typescript/module/src/runtime/native/react/usePassthrough.d.ts.map +0 -1
  731. package/dist/typescript/module/src/runtime/native/reactivity.d.ts +0 -53
  732. package/dist/typescript/module/src/runtime/native/reactivity.d.ts.map +0 -1
  733. package/dist/typescript/module/src/runtime/native/reanimated.d.ts.map +0 -1
  734. package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts +0 -10
  735. package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts.map +0 -1
  736. package/dist/typescript/module/src/runtime/native/styles/constants.d.ts.map +0 -1
  737. package/dist/typescript/module/src/runtime/native/styles/defaults.d.ts.map +0 -1
  738. package/dist/typescript/module/src/runtime/native/styles/functions/animation-timing.d.ts.map +0 -1
  739. package/dist/typescript/module/src/runtime/native/styles/functions/calc.d.ts.map +0 -1
  740. package/dist/typescript/module/src/runtime/native/styles/functions/filters.d.ts.map +0 -1
  741. package/dist/typescript/module/src/runtime/native/styles/functions/index.d.ts.map +0 -1
  742. package/dist/typescript/module/src/runtime/native/styles/functions/numeric-functions.d.ts.map +0 -1
  743. package/dist/typescript/module/src/runtime/native/styles/functions/platform-functions.d.ts.map +0 -1
  744. package/dist/typescript/module/src/runtime/native/styles/functions/string-functions.d.ts.map +0 -1
  745. package/dist/typescript/module/src/runtime/native/styles/functions/transform-functions.d.ts.map +0 -1
  746. package/dist/typescript/module/src/runtime/native/styles/index.d.ts +0 -19
  747. package/dist/typescript/module/src/runtime/native/styles/index.d.ts.map +0 -1
  748. package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts +0 -18
  749. package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts.map +0 -1
  750. package/dist/typescript/module/src/runtime/native/styles/shorthands/_handler.d.ts.map +0 -1
  751. package/dist/typescript/module/src/runtime/native/styles/shorthands/animation.d.ts.map +0 -1
  752. package/dist/typescript/module/src/runtime/native/styles/shorthands/border.d.ts.map +0 -1
  753. package/dist/typescript/module/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +0 -1
  754. package/dist/typescript/module/src/runtime/native/styles/shorthands/index.d.ts.map +0 -1
  755. package/dist/typescript/module/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +0 -1
  756. package/dist/typescript/module/src/runtime/native/styles/shorthands/transform.d.ts.map +0 -1
  757. package/dist/typescript/module/src/runtime/native/styles/units.d.ts.map +0 -1
  758. package/dist/typescript/module/src/runtime/native/styles/variables.d.ts +0 -5
  759. package/dist/typescript/module/src/runtime/native/styles/variables.d.ts.map +0 -1
  760. package/dist/typescript/module/src/runtime/runtime.d.ts.map +0 -1
  761. package/dist/typescript/module/src/runtime/runtime.native.d.ts.map +0 -1
  762. package/dist/typescript/module/src/runtime/runtime.types.d.ts +0 -47
  763. package/dist/typescript/module/src/runtime/runtime.types.d.ts.map +0 -1
  764. package/dist/typescript/module/src/runtime/utils/components.d.ts +0 -2
  765. package/dist/typescript/module/src/runtime/utils/components.d.ts.map +0 -1
  766. package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts.map +0 -1
  767. package/dist/typescript/module/src/runtime/utils/index.d.ts +0 -6
  768. package/dist/typescript/module/src/runtime/utils/index.d.ts.map +0 -1
  769. package/dist/typescript/module/src/runtime/utils/objects.d.ts.map +0 -1
  770. package/dist/typescript/module/src/runtime/utils/specificity.d.ts +0 -13
  771. package/dist/typescript/module/src/runtime/utils/specificity.d.ts.map +0 -1
  772. package/dist/typescript/module/src/runtime/utils/style-value.d.ts +0 -4
  773. package/dist/typescript/module/src/runtime/utils/style-value.d.ts.map +0 -1
  774. package/dist/typescript/module/src/runtime/utils/utils.types.d.ts +0 -5
  775. package/dist/typescript/module/src/runtime/utils/utils.types.d.ts.map +0 -1
  776. package/dist/typescript/module/src/runtime/web/api.d.ts +0 -16
  777. package/dist/typescript/module/src/runtime/web/api.d.ts.map +0 -1
  778. package/dist/typescript/module/src/runtime/web/assign-style.d.ts.map +0 -1
  779. package/dist/typescript/module/src/runtime/web/index.d.ts.map +0 -1
  780. package/dist/typescript/module/src/runtime/web/metro.d.ts.map +0 -1
  781. package/dist/typescript/module/src/style-collection/index.d.ts +0 -14
  782. package/dist/typescript/module/src/style-collection/index.d.ts.map +0 -1
  783. package/dist/typescript/module/src/style-collection/root.d.ts +0 -11
  784. package/dist/typescript/module/src/style-collection/root.d.ts.map +0 -1
  785. package/src/runtime/index.ts +0 -7
  786. package/src/runtime/native/api.tsx +0 -135
  787. package/src/runtime/native/conditions/attributes.ts +0 -52
  788. package/src/runtime/native/conditions/container-query.ts +0 -162
  789. package/src/runtime/native/conditions/index.ts +0 -54
  790. package/src/runtime/native/conditions/media-query.ts +0 -98
  791. package/src/runtime/native/react/rules.ts +0 -336
  792. package/src/runtime/native/react/useNativeCss.ts +0 -203
  793. package/src/runtime/native/reactivity.ts +0 -251
  794. package/src/runtime/native/styles/calculate-props.ts +0 -197
  795. package/src/runtime/native/styles/functions/filters.ts +0 -98
  796. package/src/runtime/native/styles/functions/transform-functions.ts +0 -84
  797. package/src/runtime/native/styles/index.ts +0 -197
  798. package/src/runtime/native/styles/resolve.ts +0 -162
  799. package/src/runtime/native/styles/shorthands/_handler.ts +0 -121
  800. package/src/runtime/native/styles/shorthands/animation.ts +0 -123
  801. package/src/runtime/native/styles/shorthands/box-shadow.ts +0 -74
  802. package/src/runtime/native/styles/variables.ts +0 -88
  803. package/src/runtime/runtime.types.ts +0 -130
  804. package/src/runtime/utils/components.ts +0 -15
  805. package/src/runtime/utils/index.ts +0 -5
  806. package/src/runtime/utils/specificity.ts +0 -45
  807. package/src/runtime/utils/style-value.ts +0 -24
  808. package/src/runtime/utils/utils.types.ts +0 -19
  809. package/src/runtime/web/api.tsx +0 -114
  810. package/src/style-collection/index.ts +0 -142
  811. package/src/style-collection/root.ts +0 -37
  812. /package/dist/commonjs/{runtime/native → native}/conditions/container-query.js +0 -0
  813. /package/dist/commonjs/{runtime/native → native}/conditions/guards.js +0 -0
  814. /package/dist/commonjs/{runtime/native → native}/conditions/index.js +0 -0
  815. /package/dist/commonjs/{runtime/native → native}/conditions/media-query.js +0 -0
  816. /package/dist/commonjs/{runtime/native → native}/index.js +0 -0
  817. /package/dist/commonjs/{runtime/native → native}/metro.js +0 -0
  818. /package/dist/commonjs/{runtime/utils → native}/objects.js +0 -0
  819. /package/dist/commonjs/{runtime/native → native}/react/interaction.js +0 -0
  820. /package/dist/commonjs/{runtime/native → native}/react/usePassthrough.js +0 -0
  821. /package/dist/commonjs/{runtime/native → native}/reanimated.js +0 -0
  822. /package/dist/commonjs/{runtime/native → native}/styles/constants.js +0 -0
  823. /package/dist/commonjs/{runtime/native → native}/styles/defaults.js +0 -0
  824. /package/dist/commonjs/{runtime/native → native}/styles/functions/animation-timing.js +0 -0
  825. /package/dist/commonjs/{runtime/native → native}/styles/functions/calc.js +0 -0
  826. /package/dist/commonjs/{runtime/native → native}/styles/functions/index.js +0 -0
  827. /package/dist/commonjs/{runtime/native → native}/styles/functions/numeric-functions.js +0 -0
  828. /package/dist/commonjs/{runtime/native → native}/styles/functions/platform-functions.js +0 -0
  829. /package/dist/commonjs/{runtime/native → native}/styles/functions/string-functions.js +0 -0
  830. /package/dist/commonjs/{runtime/native → native}/styles/shorthands/border.js +0 -0
  831. /package/dist/commonjs/{runtime/native → native}/styles/shorthands/index.js +0 -0
  832. /package/dist/commonjs/{runtime/native → native}/styles/shorthands/text-shadow.js +0 -0
  833. /package/dist/commonjs/{runtime/native → native}/styles/shorthands/transform.js +0 -0
  834. /package/dist/commonjs/{runtime/native → native}/styles/units.js +0 -0
  835. /package/dist/commonjs/{runtime/runtime.js → runtime.js} +0 -0
  836. /package/dist/commonjs/{runtime/runtime.native.js → runtime.native.js} +0 -0
  837. /package/dist/commonjs/{runtime/runtime.types.js → runtime.types.js} +0 -0
  838. /package/dist/commonjs/{runtime/utils → utilities}/dot-notation.types.js +0 -0
  839. /package/dist/commonjs/{runtime/utils → utilities}/specificity.js +0 -0
  840. /package/dist/commonjs/{runtime/web → web}/api.js +0 -0
  841. /package/dist/commonjs/{runtime/web → web}/assign-style.js +0 -0
  842. /package/dist/commonjs/{runtime/web → web}/index.js +0 -0
  843. /package/dist/commonjs/{runtime/web → web}/metro.js +0 -0
  844. /package/dist/module/{runtime/native → native}/conditions/container-query.js +0 -0
  845. /package/dist/module/{runtime/native → native}/conditions/guards.js +0 -0
  846. /package/dist/module/{runtime/native → native}/conditions/index.js +0 -0
  847. /package/dist/module/{runtime/native → native}/conditions/media-query.js +0 -0
  848. /package/dist/module/{runtime/native → native}/index.js +0 -0
  849. /package/dist/module/{runtime/native → native}/metro.js +0 -0
  850. /package/dist/module/{runtime/utils → native}/objects.js +0 -0
  851. /package/dist/module/{runtime/native → native}/react/interaction.js +0 -0
  852. /package/dist/module/{runtime/native → native}/react/usePassthrough.js +0 -0
  853. /package/dist/module/{runtime/native → native}/reanimated.js +0 -0
  854. /package/dist/module/{runtime/native → native}/styles/constants.js +0 -0
  855. /package/dist/module/{runtime/native → native}/styles/defaults.js +0 -0
  856. /package/dist/module/{runtime/native → native}/styles/functions/animation-timing.js +0 -0
  857. /package/dist/module/{runtime/native → native}/styles/functions/calc.js +0 -0
  858. /package/dist/module/{runtime/native → native}/styles/functions/index.js +0 -0
  859. /package/dist/module/{runtime/native → native}/styles/functions/numeric-functions.js +0 -0
  860. /package/dist/module/{runtime/native → native}/styles/functions/platform-functions.js +0 -0
  861. /package/dist/module/{runtime/native → native}/styles/functions/string-functions.js +0 -0
  862. /package/dist/module/{runtime/native → native}/styles/shorthands/border.js +0 -0
  863. /package/dist/module/{runtime/native → native}/styles/shorthands/index.js +0 -0
  864. /package/dist/module/{runtime/native → native}/styles/shorthands/text-shadow.js +0 -0
  865. /package/dist/module/{runtime/native → native}/styles/shorthands/transform.js +0 -0
  866. /package/dist/module/{runtime/native → native}/styles/units.js +0 -0
  867. /package/dist/module/{runtime/runtime.js → runtime.js} +0 -0
  868. /package/dist/module/{runtime/runtime.native.js → runtime.native.js} +0 -0
  869. /package/dist/module/{runtime/runtime.types.js → runtime.types.js} +0 -0
  870. /package/dist/module/{runtime/utils → utilities}/dot-notation.types.js +0 -0
  871. /package/dist/module/{runtime/utils → utilities}/specificity.js +0 -0
  872. /package/dist/module/{runtime/web → web}/api.js +0 -0
  873. /package/dist/module/{runtime/web → web}/assign-style.js +0 -0
  874. /package/dist/module/{runtime/web → web}/index.js +0 -0
  875. /package/dist/module/{runtime/web → web}/metro.js +0 -0
  876. /package/dist/typescript/commonjs/src/{runtime/native → native}/conditions/guards.d.ts +0 -0
  877. /package/dist/typescript/commonjs/src/{runtime/native → native}/index.d.ts +0 -0
  878. /package/dist/typescript/commonjs/src/{runtime/native → native}/metro.d.ts +0 -0
  879. /package/dist/typescript/commonjs/src/{runtime/utils → native}/objects.d.ts +0 -0
  880. /package/dist/typescript/commonjs/src/{runtime/native → native}/react/interaction.d.ts +0 -0
  881. /package/dist/typescript/commonjs/src/{runtime/native → native}/react/rules.d.ts +0 -0
  882. /package/dist/typescript/commonjs/src/{runtime/native → native}/react/useNativeCss.d.ts +0 -0
  883. /package/dist/typescript/commonjs/src/{runtime/native → native}/react/usePassthrough.d.ts +0 -0
  884. /package/dist/typescript/commonjs/src/{runtime/native → native}/reanimated.d.ts +0 -0
  885. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/constants.d.ts +0 -0
  886. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/defaults.d.ts +0 -0
  887. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/animation-timing.d.ts +0 -0
  888. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/calc.d.ts +0 -0
  889. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/filters.d.ts +0 -0
  890. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/index.d.ts +0 -0
  891. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/numeric-functions.d.ts +0 -0
  892. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/platform-functions.d.ts +0 -0
  893. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/string-functions.d.ts +0 -0
  894. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/functions/transform-functions.d.ts +0 -0
  895. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/_handler.d.ts +0 -0
  896. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/animation.d.ts +0 -0
  897. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/border.d.ts +0 -0
  898. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/box-shadow.d.ts +0 -0
  899. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/index.d.ts +0 -0
  900. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/text-shadow.d.ts +0 -0
  901. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/shorthands/transform.d.ts +0 -0
  902. /package/dist/typescript/commonjs/src/{runtime/native → native}/styles/units.d.ts +0 -0
  903. /package/dist/typescript/commonjs/src/{runtime/runtime.d.ts → runtime.d.ts} +0 -0
  904. /package/dist/typescript/commonjs/src/{runtime/runtime.native.d.ts → runtime.native.d.ts} +0 -0
  905. /package/dist/typescript/commonjs/src/{runtime/utils → utilities}/dot-notation.types.d.ts +0 -0
  906. /package/dist/typescript/commonjs/src/{runtime/web → web}/assign-style.d.ts +0 -0
  907. /package/dist/typescript/commonjs/src/{runtime/web → web}/index.d.ts +0 -0
  908. /package/dist/typescript/commonjs/src/{runtime/web → web}/metro.d.ts +0 -0
  909. /package/dist/typescript/module/src/{runtime/native → native}/conditions/guards.d.ts +0 -0
  910. /package/dist/typescript/module/src/{runtime/native → native}/index.d.ts +0 -0
  911. /package/dist/typescript/module/src/{runtime/native → native}/metro.d.ts +0 -0
  912. /package/dist/typescript/module/src/{runtime/utils → native}/objects.d.ts +0 -0
  913. /package/dist/typescript/module/src/{runtime/native → native}/react/interaction.d.ts +0 -0
  914. /package/dist/typescript/module/src/{runtime/native → native}/react/rules.d.ts +0 -0
  915. /package/dist/typescript/module/src/{runtime/native → native}/react/useNativeCss.d.ts +0 -0
  916. /package/dist/typescript/module/src/{runtime/native → native}/react/usePassthrough.d.ts +0 -0
  917. /package/dist/typescript/module/src/{runtime/native → native}/reanimated.d.ts +0 -0
  918. /package/dist/typescript/module/src/{runtime/native → native}/styles/constants.d.ts +0 -0
  919. /package/dist/typescript/module/src/{runtime/native → native}/styles/defaults.d.ts +0 -0
  920. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/animation-timing.d.ts +0 -0
  921. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/calc.d.ts +0 -0
  922. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/filters.d.ts +0 -0
  923. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/index.d.ts +0 -0
  924. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/numeric-functions.d.ts +0 -0
  925. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/platform-functions.d.ts +0 -0
  926. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/string-functions.d.ts +0 -0
  927. /package/dist/typescript/module/src/{runtime/native → native}/styles/functions/transform-functions.d.ts +0 -0
  928. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/_handler.d.ts +0 -0
  929. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/animation.d.ts +0 -0
  930. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/border.d.ts +0 -0
  931. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/box-shadow.d.ts +0 -0
  932. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/index.d.ts +0 -0
  933. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/text-shadow.d.ts +0 -0
  934. /package/dist/typescript/module/src/{runtime/native → native}/styles/shorthands/transform.d.ts +0 -0
  935. /package/dist/typescript/module/src/{runtime/native → native}/styles/units.d.ts +0 -0
  936. /package/dist/typescript/module/src/{runtime/runtime.d.ts → runtime.d.ts} +0 -0
  937. /package/dist/typescript/module/src/{runtime/runtime.native.d.ts → runtime.native.d.ts} +0 -0
  938. /package/dist/typescript/module/src/{runtime/utils → utilities}/dot-notation.types.d.ts +0 -0
  939. /package/dist/typescript/module/src/{runtime/web → web}/assign-style.d.ts +0 -0
  940. /package/dist/typescript/module/src/{runtime/web → web}/index.d.ts +0 -0
  941. /package/dist/typescript/module/src/{runtime/web → web}/metro.d.ts +0 -0
  942. /package/src/{runtime/native → native}/conditions/guards.ts +0 -0
  943. /package/src/{runtime/native → native}/index.ts +0 -0
  944. /package/src/{runtime/native → native}/metro.ts +0 -0
  945. /package/src/{runtime/utils → native}/objects.ts +0 -0
  946. /package/src/{runtime/native → native}/react/interaction.ts +0 -0
  947. /package/src/{runtime/native → native}/react/usePassthrough.ts +0 -0
  948. /package/src/{runtime/native → native}/reanimated.ts +0 -0
  949. /package/src/{runtime/native → native}/styles/constants.ts +0 -0
  950. /package/src/{runtime/native → native}/styles/defaults.ts +0 -0
  951. /package/src/{runtime/native → native}/styles/functions/animation-timing.ts +0 -0
  952. /package/src/{runtime/native → native}/styles/functions/calc.ts +0 -0
  953. /package/src/{runtime/native → native}/styles/functions/index.ts +0 -0
  954. /package/src/{runtime/native → native}/styles/functions/numeric-functions.ts +0 -0
  955. /package/src/{runtime/native → native}/styles/functions/platform-functions.ts +0 -0
  956. /package/src/{runtime/native → native}/styles/functions/string-functions.ts +0 -0
  957. /package/src/{runtime/native → native}/styles/shorthands/border.ts +0 -0
  958. /package/src/{runtime/native → native}/styles/shorthands/index.ts +0 -0
  959. /package/src/{runtime/native → native}/styles/shorthands/text-shadow.ts +0 -0
  960. /package/src/{runtime/native → native}/styles/shorthands/transform.ts +0 -0
  961. /package/src/{runtime/native → native}/styles/units.ts +0 -0
  962. /package/src/{runtime/runtime.native.ts → runtime.native.ts} +0 -0
  963. /package/src/{runtime/runtime.ts → runtime.ts} +0 -0
  964. /package/src/{runtime/utils → utilities}/dot-notation.types.ts +0 -0
  965. /package/src/{runtime/web → web}/assign-style.ts +0 -0
  966. /package/src/{runtime/web → web}/index.ts +0 -0
  967. /package/src/{runtime/web → web}/metro.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":["module","exports","plugins","require","default"],"sourceRoot":"../../../src","sources":["babel/index.ts"],"mappings":";;AAAA;AACAA,MAAM,CAACC,OAAO,GAAG,YAAY;EAC3B,OAAO;IACLC,OAAO,EAAE,CACPC,OAAO,CAAC,iBAAiB,CAAC,CAACC,OAAO,EAClC,8BAA8B;EAElC,CAAC;AACH,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["plugins","require","default"],"sourceRoot":"../../../src","sources":["babel/index.ts"],"mappings":";;AAAA;AACA,eAAe,YAAY;EACzB,OAAO;IACLA,OAAO,EAAE,CACPC,OAAO,CAAC,iBAAiB,CAAC,CAACC,OAAO,EAClC,8BAA8B;EAElC,CAAC;AACH","ignoreList":[]}
@@ -7,34 +7,12 @@ import { splitByDelimiter } from "./split-by-delimiter.js";
7
7
  * @react-native *
8
8
  ***********************************************/
9
9
 
10
- export function maybeMutateReactNativeOptions(rule, builder) {
10
+ export function maybeMutateReactNativeOptions(rule, _builder) {
11
11
  if (rule.type !== "custom" || rule.value?.name !== "react-native") {
12
12
  return;
13
13
  }
14
- const {
15
- declarations
16
- } = rule.value.body.value;
17
- if (!declarations) return;
18
- for (const declaration of declarations) {
19
- if (declaration.property !== "custom") continue;
20
- switch (declaration.value.name) {
21
- case "preserve-variables":
22
- {
23
- declaration.value.value.forEach(token => {
24
- if (token.type !== "dashed-ident") {
25
- return;
26
- }
27
- if (token.value !== "true" && token.value !== "false") {
28
- return;
29
- }
30
- builder.setOptions("preserveVariables", token.value === "true");
31
- });
32
- break;
33
- }
34
- default:
35
- break;
36
- }
37
- }
14
+
15
+ // TODO: Add inline options
38
16
  }
39
17
 
40
18
  /***********************************************
@@ -53,7 +31,9 @@ export function parsePropAtRule(rules) {
53
31
  "stroke-width": ["strokeWidth"],
54
32
  "-webkit-line-clamp": ["numberOfLines"],
55
33
  "-rn-ripple-color": ["android_ripple", "color"],
56
- "-rn-ripple-style": ["android_ripple", "borderless"]
34
+ "-rn-ripple-style": ["android_ripple", "borderless"],
35
+ "-rn-ripple-radius": ["android_ripple", "radius"],
36
+ "-rn-ripple-layer": ["android_ripple", "foreground"]
57
37
  };
58
38
  if (!rules) return mapping;
59
39
  for (const rule of rules) {
@@ -1 +1 @@
1
- {"version":3,"names":["toRNProperty","splitByDelimiter","maybeMutateReactNativeOptions","rule","builder","type","value","name","declarations","body","declaration","property","forEach","token","setOptions","isPropAtRule","parsePropAtRule","rules","mapping","prelude","length","filter","item","propAtRuleBlock","block","blocks","blockRules","from","to","fromToken","flatMap","index"],"sourceRoot":"../../../src","sources":["compiler/atRules.ts"],"mappings":";;AAQA,SAASA,YAAY,Q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EAAEC,EAAE,CAAC,GAAG3B,gBAAgB,CAACY,KAAK,EAAGS,IAAI,IAAK;IACnD,OAAOA,IAAI,CAAChB,KAAK,CAACD,IAAI,KAAK,OAAO;EACpC,CAAC,CAAC;EAEF,IAAI,CAACsB,IAAI,IAAIA,IAAI,CAACP,MAAM,KAAK,CAAC,EAAE;IAC9B,OAAOF,OAAO;EAChB;EAEA,MAAMW,SAAS,GAAGF,IAAI,CAAC,CAAC,CAAC;EACzB,IAAI,CAACE,SAAS,IAAIA,SAAS,CAACvB,KAAK,CAACD,IAAI,KAAK,OAAO,EAAE;IAClD,OAAOa,OAAO;EAChB;EAEA,IAAI,CAACU,EAAE,EAAE;IACPV,OAAO,CAAC,GAAG,CAAC,GAAGlB,YAAY,CAAC6B,SAAS,CAACvB,KAAK,CAACA,KAAK,CAAC;IAClD,OAAOY,OAAO;EAChB;EAEAA,OAAO,CAAClB,YAAY,CAAC6B,SAAS,CAACvB,KAAK,CAACA,KAAK,CAAC,CAAC,GAAGsB,EAAE,CAACE,OAAO,CAAC,CAACR,IAAI,EAAES,KAAK,KAAK;IACzE,QAAQT,IAAI,CAAChB,KAAK,CAACD,IAAI;MACrB,KAAK,OAAO;QACV,OAAO0B,KAAK,KAAK,CAAC,IAAIT,IAAI,CAAChB,KAAK,CAACA,KAAK,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE;MAC7D,KAAK,OAAO;QACV,OAAO,CAACN,YAAY,CAACsB,IAAI,CAAChB,KAAK,CAACA,KAAK,CAAC,CAAC;MACzC;QACE,OAAO,EAAE;IACb;EACF,CAAC,CAAC;EAEF,OAAOY,OAAO;AAChB","ignoreList":[]}
1
+ {"version":3,"names":["toRNProperty","splitByDelimiter","maybeMutateReactNativeOptions","rule","_builder","type","value","name","isPropAtRule","parsePropAtRule","rules","mapping","prelude","length","filter","item","propAtRuleBlock","block","blocks","blockRules","token","from","to","fromToken","flatMap","index"],"sourceRoot":"../../../src","sources":["compiler/atRules.ts"],"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ClD,OAAOK,OAAO;EAChB;EAEAA,OAAO,CAACX,YAAY,CAACuB,SAAS,CAACjB,KAAK,CAACA,KAAK,CAAC,CAAC,GAAGgB,EAAE,CAACE,OAAO,CAAC,CAACT,IAAI,EAAEU,KAAK,KAAK;IACzE,QAAQV,IAAI,CAACT,KAAK,CAACD,IAAI;MACrB,KAAK,OAAO;QACV,OAAOoB,KAAK,KAAK,CAAC,IAAIV,IAAI,CAACT,KAAK,CAACA,KAAK,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE;MAC7D,KAAK,OAAO;QACV,OAAO,CAACN,YAAY,CAACe,IAAI,CAACT,KAAK,CAACA,KAAK,CAAC,CAAC;MACzC;QACE,OAAO,EAAE;IACb;EACF,CAAC,CAAC;EAEF,OAAOK,OAAO;AAChB","ignoreList":[]}
@@ -3,10 +3,11 @@
3
3
  /* eslint-disable */
4
4
  import { inspect } from "node:util";
5
5
  import { debug } from "debug";
6
- import { transform as lightningcss } from "lightningcss";
6
+ import { Features, transform as lightningcss } from "lightningcss";
7
7
  import { maybeMutateReactNativeOptions, parsePropAtRule } from "./atRules.js";
8
8
  import { parseContainerCondition } from "./container-query.js";
9
- import { parseDeclaration } from "./declarations.js";
9
+ import { parseDeclaration, round } from "./declarations.js";
10
+ import { inlineVariables } from "./inline-variables.js";
10
11
  import { extractKeyFrames } from "./keyframes.js";
11
12
  import { parseMediaQuery } from "./media-query.js";
12
13
  import { StylesheetBuilder } from "./stylesheet.js";
@@ -36,7 +37,72 @@ export function compile(code, options = {}) {
36
37
  }
37
38
  }
38
39
  const builder = new StylesheetBuilder(options);
39
- logger(`Start lightningcss`);
40
+ logger(`Lightningcss first pass`);
41
+
42
+ /**
43
+ * Use the lightningcss library to traverse the CSS AST and extract style declarations and animations
44
+ *
45
+ * devongovett on Aug 20, 2023
46
+ * > calc simplification happens during the initial parse phase, which is before custom visitors run. Currently there is not an additional simplification pass done after transforms, resulting in the output you see here.
47
+ * https://github.com/parcel-bundler/lightningcss/issues/554#issuecomment-1685143494
48
+ *
49
+ * Due to the above issue, we run lightningcss twice
50
+ */
51
+
52
+ const vars = new Map();
53
+ const firstPassVisitor = {};
54
+ if (options.inlineRem !== false) {
55
+ firstPassVisitor.Length = length => {
56
+ if (length.unit !== "rem" || options.inlineRem === false) {
57
+ return length;
58
+ }
59
+ return {
60
+ unit: "px",
61
+ value: round(length.value * (options.inlineRem ?? 14))
62
+ };
63
+ };
64
+ }
65
+ if (options.inlineVariables !== false) {
66
+ const exclusionList = options.inlineVariables?.exclude ?? [];
67
+ firstPassVisitor.Declaration = decl => {
68
+ if (decl.property === "custom" && decl.value.name.startsWith("--") && !exclusionList.includes(decl.value.name)) {
69
+ const entry = vars.get(decl.value.name) ?? {
70
+ count: 0,
71
+ value: [...decl.value.value, {
72
+ type: "token",
73
+ value: {
74
+ type: "white-space",
75
+ value: " "
76
+ }
77
+ }]
78
+ };
79
+ entry.count++;
80
+ vars.set(decl.value.name, entry);
81
+ }
82
+ };
83
+ firstPassVisitor.StyleSheetExit = sheet => {
84
+ return inlineVariables(sheet, vars);
85
+ };
86
+ }
87
+ const {
88
+ code: firstPass
89
+ } = lightningcss({
90
+ code: typeof code === "string" ? new TextEncoder().encode(code) : code,
91
+ include: Features.DoublePositionGradients | Features.ColorFunction,
92
+ exclude: Features.VendorPrefixes,
93
+ visitor: firstPassVisitor,
94
+ filename: options.filename ?? "style.css",
95
+ projectRoot: options.projectRoot ?? process.cwd()
96
+ });
97
+ if (isLoggerEnabled) {
98
+ const MAX_LOG_SIZE = 100 * 1024; // 100KB
99
+ if (firstPass.length <= MAX_LOG_SIZE) {
100
+ logger(firstPass.toString());
101
+ } else {
102
+ logger(`firstPass buffer too large to log in full (${firstPass.length} bytes). Preview: ` + firstPass.subarray(0, 1024).toString() + "...");
103
+ }
104
+ }
105
+ logger(`Lightningcss second pass`);
40
106
  const customAtRules = {
41
107
  "react-native": {
42
108
  body: "declaration-list"
@@ -45,6 +111,7 @@ export function compile(code, options = {}) {
45
111
  const visitor = {
46
112
  Rule(rule) {
47
113
  maybeMutateReactNativeOptions(rule, builder);
114
+ return rule;
48
115
  },
49
116
  StyleSheetExit(sheet) {
50
117
  if (isLoggerEnabled) {
@@ -61,31 +128,11 @@ export function compile(code, options = {}) {
61
128
  // We have processed this rule, so now delete it from the AST
62
129
  }
63
130
  logger(`Exiting lightningcss`);
131
+ return sheet;
64
132
  }
65
133
  };
66
- if (options.stripUnusedVariables) {
67
- const onVarUsage = token => {
68
- if (token.type === "function") {
69
- token.value.arguments.forEach(token => onVarUsage(token));
70
- } else if (token.type === "var") {
71
- builder.varUsage.add(token.value.name.ident);
72
- if (token.value.fallback) {
73
- const fallbackValues = token.value.fallback;
74
- fallbackValues.forEach(varObj => onVarUsage(varObj));
75
- }
76
- }
77
- };
78
- visitor.Declaration = decl => {
79
- if (decl.property === "unparsed" || decl.property === "custom") {
80
- decl.value.value.forEach(token => onVarUsage(token));
81
- }
82
- return decl;
83
- };
84
- }
85
-
86
- // Use the lightningcss library to traverse the CSS AST and extract style declarations and animations
87
134
  lightningcss({
88
- code: typeof code === "string" ? new TextEncoder().encode(code) : code,
135
+ code: firstPass,
89
136
  visitor,
90
137
  filename: options.filename ?? "style.css",
91
138
  projectRoot: options.projectRoot ?? process.cwd()
@@ -1 +1 @@
1
- {"version":3,"names":["inspect","debug","transform","lightningcss","maybeMutateReactNativeOptions","parsePropAtRule","parseContainerCondition","parseDeclaration","extractKeyFrames","parseMediaQuery","StylesheetBuilder","supportsConditionValid","defaultLogger","compile","code","options","logger","isLoggerEnabled","enabled","Boolean","features","Object","assign","selectorPrefix","startsWith","slice","JSON","stringify","process","env","NODE_ENV","toString","builder","customAtRules","body","visitor","Rule","rule","StyleSheetExit","sheet","rules","length","depth","colors","compact","extractRule","stripUnusedVariables","onVarUsage","token","type","value","arguments","forEach","varUsage","add","name","ident","fallback","fallbackValues","varObj","Declaration","decl","property","TextEncoder","encode","filename","projectRoot","cwd","stylesheet","getNativeStyleSheet","warnings","getWarnings","extractContainer","extractMedia","declarationBlock","declarations","newNestedRule","declaration","applyRuleToSelectors","importantDeclarations","important","mapping","fork","selectors","newRule","nestedRule","layerRule","condition","mediaRule","media","mediaQuery","query","mediaQueries","mediaType","qualifier","push","m","containerRule","n","addContainerQuery"],"sourceRoot":"../../../src","sources":["compiler/compiler.ts"],"mappings":";;AAAA;AACA,SAASA,OAAO,QAAQ,WAAW;AAEnC,SAASC,KAAK,QAAQ,OAAO;AAC7B,SACEC,SAAS,IAAIC,YAAY,QAQpB,cAAc;AAErB,SAASC,6BAA6B,EAAEC,eAAe,QAAQ,cAAW;AAE1E,SAASC,uBAAuB,QAAQ,sBAAmB;AAC3D,SAASC,gBAAgB,QAAQ,mBAAgB;AACjD,SAASC,gBAAgB,QAAQ,gBAAa;AAC9C,SAASC,eAAe,QAAQ,kBAAe;AAC/C,SAASC,iBAAiB,QAAQ,iBAAc;AAChD,SAASC,sBAAsB,QAAQ,eAAY;AAEnD,MAAMC,aAAa,GAAGX,KAAK,CAAC,2BAA2B,CAAC;;AAExD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASY,OAAOA,CAACC,IAAqB,EAAEC,OAAwB,GAAG,CAAC,CAAC,EAAE;EAC5E,MAAM;IAAEC,MAAM,GAAGJ;EAAc,CAAC,GAAGG,OAAO;EAC1C,MAAME,eAAe,GACnB,SAAS,IAAID,MAAM,GAAGA,MAAM,CAACE,OAAO,GAAGC,OAAO,CAACH,MAAM,CAAC;EAExD,MAAMI,QAAQ,GAAGC,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEP,OAAO,CAACK,QAAQ,CAAC;EAEpD,IAAIL,OAAO,CAACQ,cAAc,IAAIR,OAAO,CAACQ,cAAc,CAACC,UAAU,CAAC,GAAG,CAAC,EAAE;IACpET,OAAO,CAACQ,cAAc,GAAGR,OAAO,CAACQ,cAAc,CAACE,KAAK,CAAC,CAAC,CAAC;EAC1D;EAEAT,MAAM,CAAC,YAAYU,IAA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;EAEnC;EACA,MAAMS,KAAqB,GAAG;IAC5BK,CAAC,EAAE1F,uBAAuB,CAAC2F,aAAa,CAACV,SAAS,EAAEvD,OAAO;EAC7D,CAAC;EAED,IAAIiE,aAAa,CAAC1C,IAAI,EAAE;IACtBoC,KAAK,CAACO,CAAC,GAAG,KAAKD,aAAa,CAAC1C,IAAI,EAAE;EACrC;EAEAvB,OAAO,CAACmE,iBAAiB,CAACR,KAAK,CAAC;EAEhC,KAAK,MAAMtD,IAAI,IAAI4D,aAAa,CAACzD,KAAK,EAAE;IACtCK,WAAW,CAACR,IAAI,EAAEL,OAAO,CAAC;EAC5B;AACF","ignoreList":[]}
1
+ {"version":3,"names":["inspect","debug","Features","transform","lightningcss","maybeMutateReactNativeOptions","parsePropAtRule","parseContainerCondition","parseDeclaration","round","inlineVariables","extractKeyFrames","parseMediaQuery","StylesheetBuilder","supportsConditionValid","defaultLogger","compile","code","options","logger","isLoggerEnabled","enabled","Boolean","features","Object","assign","selectorPrefix","startsWith","slice","JSON","stringify","process","env","NODE_ENV","toString","builder","vars","Map","firstPassVisitor","inlineRem","Length","length","unit","value","exclusionList","exclude","Declaration","decl","property","name","includes","entry","get","count","type","set","StyleSheetExit","sheet","firstPass","TextEncoder","encode","include","DoublePositionGradients","ColorFunction","VendorPrefixes","visitor","filename","projectRoot","cwd","MAX_LOG_SIZE","subarray","customAtRules","body","Rule","rule","rules","depth","colors","compact","extractRule","stylesheet","getNativeStyleSheet","warnings","getWarnings","extractContainer","extractMedia","declarationBlock","declarations","newNestedRule","declaration","applyRuleToSelectors","importantDeclarations","important","mapping","fork","selectors","newRule","nestedRule","layerRule","condition","mediaRule","media","mediaQuery","query","mediaQueries","mediaType","qualifier","push","m","containerRule","n","addContainerQuery"],"sourceRoot":"../../../src","sources":["compiler/compiler.ts"],"mappings":";;AAAA;AACA,SAASA,OAAO,QAAQ,WAAW;AAEnC,SAASC,KAAK,QAAQ,OAAO;AAC7B,SACEC,QAAQ,EACRC,SAAS,IAA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K,CAAC,EAAErG,uBAAuB,CAACsG,aAAa,CAACV,SAAS,EAAEhE,OAAO;EAC7D,CAAC;EAED,IAAI0E,aAAa,CAAC5D,IAAI,EAAE;IACtBsD,KAAK,CAACO,CAAC,GAAG,KAAKD,aAAa,CAAC5D,IAAI,EAAE;EACrC;EAEAd,OAAO,CAAC4E,iBAAiB,CAACR,KAAK,CAAC;EAEhC,KAAK,MAAM7B,IAAI,IAAImC,aAAa,CAAClC,KAAK,EAAE;IACtCI,WAAW,CAACL,IAAI,EAAEvC,OAAO,CAAC;EAC5B;AACF","ignoreList":[]}
@@ -2,7 +2,7 @@
2
2
 
3
3
  /* eslint-disable */
4
4
 
5
- import { VAR_SYMBOL } from "../runtime/native/reactivity.js";
5
+ import { VAR_SYMBOL } from "../native/reactivity.js";
6
6
 
7
7
  /**
8
8
  * A `react-native-css` StyleSheet
@@ -1 +1 @@
1
- {"version":3,"names":["VAR_SYMBOL"],"sourceRoot":"../../../src","sources":["compiler/compiler.types.ts"],"mappings":";;AAAA;;AAIA,SAASA,UAAU,QAAQ,iCAA8B;;AAmBzD;AACA;AACA;;AAgBA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAwFA;;AAeA;;AAMA;;AAwCS;;AAMkE;;AAI3E;;AAUA;;AAEA;AACA;AACA;AACA;AACA;;AAIA;;AAKA;;AAEA;;AAGA;AACA;AACA;;AAKA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":["VAR_SYMBOL"],"sourceRoot":"../../../src","sources":["compiler/compiler.types.ts"],"mappings":";;AAAA;;AAOA,SAASA,UAAU,QAAQ,yBAAsB;;AAmBjD;AACA;AACA;;AAgBA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAwFA;;AAqBA;;AAMA;;AAwCS;;AAMkE;;AAI3E;;AAUA;;AAEA;AACA;AACA;AACA;AACA;;AAIA;;AAKA;;AAEA;;AAGA;AACA;AACA;;AAKA;AACA;AACA","ignoreList":[]}
@@ -3,15 +3,14 @@
3
3
  // cSpell:ignore rcap,vmin,svmin,lvmin,dvmin,cqmin,vmax,svmax,lvmax,dvmax,cqmax,currentcolor,oklab,oklch,prophoto,squircle,oldstyle,nums
4
4
 
5
5
  import Color from "colorjs.io";
6
+ import { isStyleFunction } from "../utilities/index.js";
6
7
  import { parseEasingFunction, parseIterationCount } from "./keyframes.js";
7
8
  import { toRNProperty } from "./selectors.js";
8
9
  const CommaSeparator = Symbol("CommaSeparator");
9
10
  const propertyRename = {
10
11
  "background-image": "experimental_backgroundImage"
11
12
  };
12
-
13
- // TODO: We need a better way to handle this
14
- const unparsedRuntimeParsing = new Set(["animation", "border", "box-shadow", "text-shadow", "transform", "scale", "rotate", "translate"]);
13
+ const unparsedRuntimeParsing = new Set(["animation", "border", "box-shadow", "line-height", "rotate", "scale", "text-shadow", "transform", "translate"]);
15
14
  const parsers = {
16
15
  "align-content": parseAlignContent,
17
16
  "align-items": parseAlignItems,
@@ -117,8 +116,8 @@ const parsers = {
117
116
  "font-variant-caps": parseFontVariantCapsDeclaration,
118
117
  "font-weight": parseFontWeightDeclaration,
119
118
  "gap": parseGap,
120
- "height": parseSizeDeclaration,
121
- "inline-size": parseSizeDeclaration,
119
+ "height": parseSizeWithAutoDeclaration,
120
+ "inline-size": parseSizeWithAutoDeclaration,
122
121
  "inset": parseInset,
123
122
  "inset-block": parseInsetBlock,
124
123
  "inset-block-end": parseLengthPercentageDeclaration,
@@ -194,7 +193,7 @@ const parsers = {
194
193
  "user-select": parseUserSelect,
195
194
  "vertical-align": parseVerticalAlign,
196
195
  "visibility": parseVisibility,
197
- "width": parseSizeDeclaration,
196
+ "width": parseSizeWithAutoDeclaration,
198
197
  "z-index": parseZIndex
199
198
  };
200
199
 
@@ -266,23 +265,25 @@ function parseBorderRadius({
266
265
  });
267
266
  }
268
267
  function parseBorderColor(declaration, builder) {
269
- switch (declaration.property) {
270
- case "border-color":
271
- builder.addShorthand("border-color", {
272
- "border-top-color": parseColor(declaration.value.top, builder),
273
- "border-bottom-color": parseColor(declaration.value.bottom, builder),
274
- "border-left-color": parseColor(declaration.value.left, builder),
275
- "border-right-color": parseColor(declaration.value.right, builder)
276
- });
277
- break;
278
- case "border-block-color":
279
- builder.addDescriptor("border-top-color", parseColor(declaration.value.start, builder));
280
- builder.addDescriptor("border-bottom-color", parseColor(declaration.value.end, builder));
281
- break;
282
- case "border-inline-color":
283
- builder.addDescriptor("border-left-color", parseColor(declaration.value.start, builder));
284
- builder.addDescriptor("border-right-color", parseColor(declaration.value.end, builder));
285
- break;
268
+ if (declaration.property === "border-color") {
269
+ builder.addShorthand("border-color", {
270
+ "border-top-color": parseColor(declaration.value.top, builder),
271
+ "border-bottom-color": parseColor(declaration.value.bottom, builder),
272
+ "border-left-color": parseColor(declaration.value.left, builder),
273
+ "border-right-color": parseColor(declaration.value.right, builder)
274
+ });
275
+ } else {
276
+ const start = parseColor(declaration.value.start, builder);
277
+ const end = parseColor(declaration.value.end, builder);
278
+ if (start === end) {
279
+ builder.addDescriptor(declaration.property, start);
280
+ } else if (declaration.property === "border-block-color") {
281
+ builder.addDescriptor("border-top-color", start);
282
+ builder.addDescriptor("border-bottom-color", end);
283
+ } else {
284
+ builder.addDescriptor("border-left-color", start);
285
+ builder.addDescriptor("border-right-color", end);
286
+ }
286
287
  }
287
288
  }
288
289
  function parseBorderWidth({
@@ -537,11 +538,7 @@ function parseLetterSpacing({
537
538
  if (value.type === "normal") {
538
539
  return;
539
540
  }
540
- const descriptor = parseLength(value.value, builder);
541
- if (Array.isArray(descriptor) && descriptor[1] === "em" && typeof descriptor[2] === "number") {
542
- return descriptor[2];
543
- }
544
- return descriptor;
541
+ return parseLength(value.value, builder);
545
542
  }
546
543
  function parseTextDecoration({
547
544
  value
@@ -609,7 +606,9 @@ export function parseUnparsedDeclaration(declaration, builder) {
609
606
  builder.addDescriptor("--__rn-css-em", value);
610
607
  }
611
608
  if (property === "color") {
612
- builder.addDescriptor("--__rn-css-current-color", value);
609
+ if (!isStyleFunction(value) || value[1] !== "var" || value[2] !== "-css-color") {
610
+ builder.addDescriptor("--__rn-css-color", value);
611
+ }
613
612
  }
614
613
  }
615
614
  }
@@ -618,7 +617,13 @@ export function parseCustomDeclaration(declaration, builder) {
618
617
  if (property === "-webkit-line-clamp") {
619
618
  builder.addDescriptor(property, parseUnparsed(declaration.value.value, builder, property));
620
619
  } else if (property === "-rn-ripple-style") {
621
- builder.addDescriptor(property, parseUnparsed(declaration.value.value, builder, property) === "borderless");
620
+ if (parseUnparsed(declaration.value.value, builder, property) === "borderless") {
621
+ builder.addDescriptor(property, true);
622
+ }
623
+ } else if (property === "-rn-ripple-layer") {
624
+ if (parseUnparsed(declaration.value.value, builder, property) === "foreground") {
625
+ builder.addDescriptor(property, true);
626
+ }
622
627
  } else if (property === "object-fit") {
623
628
  // https://github.com/parcel-bundler/lightningcss/issues/1046
624
629
  parseObjectFit(declaration.value, builder);
@@ -696,7 +701,7 @@ export function parseUnparsed(tokenOrValue, builder, property, allowAuto = allow
696
701
  } else if (tokenOrValue === "false") {
697
702
  return false;
698
703
  } else if (tokenOrValue === "currentcolor") {
699
- return [{}, "var", "__rn-css-current-color"];
704
+ return [{}, "var", "__rn-css-color"];
700
705
  } else {
701
706
  return tokenOrValue;
702
707
  }
@@ -707,8 +712,13 @@ export function parseUnparsed(tokenOrValue, builder, property, allowAuto = allow
707
712
  if (Array.isArray(tokenOrValue)) {
708
713
  const args = reduceParseUnparsed(tokenOrValue, builder, property, allowAuto);
709
714
  if (!args) return;
710
- if (Array.isArray(args) && args.length === 1) return args[0];
711
- return args;
715
+ if (Array.isArray(args) && args.length === 1) {
716
+ return args[0];
717
+ } else if ((property === "filter" || property === "transform") && isStyleFunction(args)) {
718
+ return [args];
719
+ } else {
720
+ return args;
721
+ }
712
722
  }
713
723
  switch (tokenOrValue.type) {
714
724
  case "unresolved-color":
@@ -797,7 +807,7 @@ export function parseUnparsed(tokenOrValue, builder, property, allowAuto = allow
797
807
  builder.addWarning("value", value);
798
808
  return;
799
809
  } else if (value === "currentcolor") {
800
- return [{}, "var", "__rn-css-current-color"];
810
+ return [{}, "var", "__rn-css-color"];
801
811
  }
802
812
  if (value === "true") {
803
813
  return true;
@@ -892,9 +902,9 @@ export function parseLength(length, builder) {
892
902
  case "px":
893
903
  {
894
904
  if (length.value === Infinity) {
895
- return 9999;
905
+ return Number.MAX_SAFE_INTEGER;
896
906
  } else if (length.value === -Infinity) {
897
- return -9999;
907
+ return Number.MIN_SAFE_INTEGER;
898
908
  } else {
899
909
  // Normalize large values to safe integers, e.g. `calc(infinity * 1px)`
900
910
  const value = Math.max(Math.min(length.value, Number.MAX_SAFE_INTEGER), Number.MIN_SAFE_INTEGER);
@@ -1070,7 +1080,9 @@ export function parseColorOrAutoDeclaration({
1070
1080
  }
1071
1081
  export function parseFontColorDeclaration(declaration, builder) {
1072
1082
  parseColorDeclaration(declaration, builder);
1073
- builder.addDescriptor("--__rn-css-color", parseColor(declaration.value, builder));
1083
+ if (typeof declaration.value !== "object" || declaration.value.type !== "currentcolor") {
1084
+ builder.addDescriptor("--__rn-css-color", parseColor(declaration.value, builder));
1085
+ }
1074
1086
  }
1075
1087
  export function parseColorDeclaration(declaration, builder) {
1076
1088
  builder.addDescriptor(declaration.property, parseColor(declaration.value, builder));
@@ -1089,7 +1101,7 @@ export function parseColor(cssColor, builder) {
1089
1101
  } = builder.getOptions();
1090
1102
  switch (cssColor.type) {
1091
1103
  case "currentcolor":
1092
- return [{}, "var", "__rn-css-current-color"];
1104
+ return [{}, "var", "__rn-css-color"];
1093
1105
  case "light-dark":
1094
1106
  {
1095
1107
  const extraRule = {
@@ -1275,7 +1287,7 @@ export function parseJustifyContent(declaration, builder) {
1275
1287
  return value;
1276
1288
  }
1277
1289
  export function parseAlignContent(declaration, builder) {
1278
- const allowed = new Set(["flex-start", "flex-end", "center", "stretch", "space-between", "space-around"]);
1290
+ const allowed = new Set(["flex-start", "flex-end", "center", "stretch", "space-between", "space-around", "space-evenly"]);
1279
1291
  let value;
1280
1292
  switch (declaration.value.type) {
1281
1293
  case "normal":
@@ -1359,7 +1371,7 @@ export function parseFontWeight(fontWeight, builder) {
1359
1371
  switch (fontWeight.type) {
1360
1372
  case "absolute":
1361
1373
  if (fontWeight.value.type === "weight") {
1362
- return fontWeight.value.value.toString();
1374
+ return fontWeight.value.value;
1363
1375
  } else {
1364
1376
  return fontWeight.value.type;
1365
1377
  }
@@ -1380,8 +1392,8 @@ export function parseTextShadow(declaration, builder) {
1380
1392
  return;
1381
1393
  }
1382
1394
  builder.addDescriptor("textShadowColor", parseColor(textShadow.color, builder));
1383
- builder.addDescriptor("textShadowOffset.width", parseLength(textShadow.xOffset, builder));
1384
- builder.addDescriptor("textShadowOffset.height", parseLength(textShadow.yOffset, builder));
1395
+ builder.addDescriptor("*.textShadowOffset.width", parseLength(textShadow.xOffset, builder));
1396
+ builder.addDescriptor("*.textShadowOffset.height", parseLength(textShadow.yOffset, builder));
1385
1397
  builder.addDescriptor("textShadowRadius", parseLength(textShadow.blur, builder));
1386
1398
  }
1387
1399
  export function parseTextDecorationStyle(declaration, builder) {
@@ -1419,7 +1431,7 @@ export function parseTextDecorationLine(value, builder) {
1419
1431
  export function parsePosition({
1420
1432
  value
1421
1433
  }, builder) {
1422
- if (value.type === "absolute" || value.type === "relative") {
1434
+ if (value.type === "absolute" || value.type === "relative" || value.type === "static") {
1423
1435
  return value.type;
1424
1436
  }
1425
1437
  builder.addWarning("value", value.type);
@@ -1503,7 +1515,7 @@ function parseFontFamily({
1503
1515
  return value[0];
1504
1516
  }
1505
1517
  export function parseLineHeightDeclaration(declaration, builder) {
1506
- return parseLineHeight(declaration.value, builder);
1518
+ builder.addDescriptor("line-height", [{}, "lineHeight", [parseLineHeight(declaration.value, builder)], 1]);
1507
1519
  }
1508
1520
  export function parseLineHeight(value, builder) {
1509
1521
  switch (value.type) {
@@ -1589,16 +1601,20 @@ export function parseLengthOrCoercePercentageToRuntime(value, builder) {
1589
1601
  }
1590
1602
  export function parseGap(declaration, builder) {
1591
1603
  if ("column" in declaration.value) {
1592
- builder.addDescriptor("row-gap", parseGapValue(declaration.value.row, builder));
1593
- builder.addDescriptor("column-gap", parseGapValue(declaration.value.column, builder));
1594
- return;
1595
- } else {
1596
- if (declaration.value.type === "normal") {
1597
- builder.addWarning("value", declaration.value.type);
1598
- return;
1604
+ const row = parseGapValue(declaration.value.row, builder);
1605
+ const column = parseGapValue(declaration.value.column, builder);
1606
+ if (row !== column) {
1607
+ builder.addDescriptor("row-gap", row);
1608
+ builder.addDescriptor("column-gap", column);
1609
+ } else {
1610
+ builder.addDescriptor("gap", row);
1599
1611
  }
1612
+ } else if (declaration.value.type === "normal") {
1613
+ builder.addWarning("value", declaration.value.type);
1614
+ } else {
1600
1615
  return parseLength(declaration.value.value, builder);
1601
1616
  }
1617
+ return;
1602
1618
  }
1603
1619
  function parseGapValue(value, builder) {
1604
1620
  if (value.type === "normal") {
@@ -1621,12 +1637,12 @@ export function parseBoxShadow({
1621
1637
  value
1622
1638
  }, builder) {
1623
1639
  for (const [index, shadow] of value.entries()) {
1624
- builder.addDescriptor(`boxShadow.[${index}].color`, parseColor(shadow.color, builder));
1625
- builder.addDescriptor(`boxShadow.[${index}].offsetX`, parseLength(shadow.xOffset, builder));
1626
- builder.addDescriptor(`boxShadow.[${index}].offsetY`, parseLength(shadow.yOffset, builder));
1627
- builder.addDescriptor(`boxShadow.[${index}].blurRadius`, parseLength(shadow.blur, builder));
1628
- builder.addDescriptor(`boxShadow.[${index}].spreadDistance`, parseLength(shadow.spread, builder));
1629
- builder.addDescriptor(`boxShadow.[${index}].inset`, shadow.inset ? true : undefined);
1640
+ builder.addDescriptor(`*.boxShadow.[${index}].color`, parseColor(shadow.color, builder));
1641
+ builder.addDescriptor(`*.boxShadow.[${index}].offsetX`, parseLength(shadow.xOffset, builder));
1642
+ builder.addDescriptor(`*.boxShadow.[${index}].offsetY`, parseLength(shadow.yOffset, builder));
1643
+ builder.addDescriptor(`*.boxShadow.[${index}].blurRadius`, parseLength(shadow.blur, builder));
1644
+ builder.addDescriptor(`*.boxShadow.[${index}].spreadDistance`, parseLength(shadow.spread, builder));
1645
+ builder.addDescriptor(`*.boxShadow.[${index}].inset`, shadow.inset ? true : undefined);
1630
1646
  }
1631
1647
  }
1632
1648
  export function parseBoxSizing(declaration, builder) {
@@ -1640,7 +1656,7 @@ export function parseDisplay({
1640
1656
  value
1641
1657
  }, builder) {
1642
1658
  if (value.type === "keyword") {
1643
- if (value.value === "none") {
1659
+ if (value.value === "none" || value.value === "contents") {
1644
1660
  return value.value;
1645
1661
  } else {
1646
1662
  builder.addWarning("value", value.value);
@@ -1794,7 +1810,10 @@ export function parseEnv(value, builder) {
1794
1810
  case "safe-area-inset-right":
1795
1811
  case "safe-area-inset-bottom":
1796
1812
  case "safe-area-inset-left":
1797
- return [{}, "var", [`--react-native-css-${value.name.value}`, parseUnparsed(value.fallback, builder, value.name.value)], 1];
1813
+ {
1814
+ const fallback = parseUnparsed(value.fallback, builder, value.name.value);
1815
+ return fallback ? [{}, "var", [`react-native-css-${value.name.value}`, fallback], 1] : [{}, "var", [`react-native-css-${value.name.value}`], 1];
1816
+ }
1798
1817
  case "viewport-segment-width":
1799
1818
  case "viewport-segment-height":
1800
1819
  case "viewport-segment-top":
@@ -1961,7 +1980,7 @@ export function equal(a, b) {
1961
1980
  return false;
1962
1981
  }
1963
1982
  export function parseTime(time) {
1964
- return time.type === "milliseconds" ? time.value : time.value * 1000;
1983
+ return round(time.type === "milliseconds" ? time.value : time.value * 1000);
1965
1984
  }
1966
1985
  export function parseSize2DDimensionPercentageDeclaration(declaration, builder) {
1967
1986
  return parseSize2DDimensionPercentage(declaration.value, builder);