react-native-css 2.1.2 → 3.0.0-nightly.0

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 (926) hide show
  1. package/{LICENSE.md → LICENSE} +6 -8
  2. package/README.md +177 -70
  3. package/dist/commonjs/babel/allowedModules.js +23 -0
  4. package/dist/commonjs/babel/allowedModules.js.map +1 -0
  5. package/dist/commonjs/babel/helpers.js +25 -0
  6. package/dist/commonjs/babel/helpers.js.map +1 -0
  7. package/dist/commonjs/babel/import-plugin.js +101 -0
  8. package/dist/commonjs/babel/import-plugin.js.map +1 -0
  9. package/dist/commonjs/babel/index.js +9 -0
  10. package/dist/commonjs/babel/index.js.map +1 -0
  11. package/dist/commonjs/babel/react-native-web.js +118 -0
  12. package/dist/commonjs/babel/react-native-web.js.map +1 -0
  13. package/dist/commonjs/babel/react-native.js +118 -0
  14. package/dist/commonjs/babel/react-native.js.map +1 -0
  15. package/dist/commonjs/compiler/atRules.js +114 -0
  16. package/dist/commonjs/compiler/atRules.js.map +1 -0
  17. package/dist/commonjs/compiler/compiler.js +281 -0
  18. package/dist/commonjs/compiler/compiler.js.map +1 -0
  19. package/dist/commonjs/compiler/compiler.types.js +4 -0
  20. package/dist/commonjs/compiler/compiler.types.js.map +1 -0
  21. package/dist/commonjs/compiler/container-query.js +63 -0
  22. package/dist/commonjs/compiler/container-query.js.map +1 -0
  23. package/dist/commonjs/compiler/declarations.js +2196 -0
  24. package/dist/commonjs/compiler/declarations.js.map +1 -0
  25. package/dist/commonjs/compiler/functions-web.js +44 -0
  26. package/dist/commonjs/compiler/functions-web.js.map +1 -0
  27. package/dist/commonjs/compiler/functions.js +59 -0
  28. package/dist/commonjs/compiler/functions.js.map +1 -0
  29. package/dist/commonjs/compiler/index.js +17 -0
  30. package/dist/commonjs/compiler/index.js.map +1 -0
  31. package/dist/commonjs/compiler/inheritance.test.js +78 -0
  32. package/dist/commonjs/compiler/inheritance.test.js.map +1 -0
  33. package/dist/commonjs/compiler/keyframes.js +60 -0
  34. package/dist/commonjs/compiler/keyframes.js.map +1 -0
  35. package/dist/commonjs/compiler/media-query.js +172 -0
  36. package/dist/commonjs/compiler/media-query.js.map +1 -0
  37. package/dist/commonjs/compiler/pseudo-elements.js +49 -0
  38. package/dist/commonjs/compiler/pseudo-elements.js.map +1 -0
  39. package/dist/commonjs/compiler/selector-builder.js +501 -0
  40. package/dist/commonjs/compiler/selector-builder.js.map +1 -0
  41. package/dist/commonjs/compiler/selectors.js +414 -0
  42. package/dist/commonjs/compiler/selectors.js.map +1 -0
  43. package/dist/commonjs/compiler/split-by-delimiter.js +21 -0
  44. package/dist/commonjs/compiler/split-by-delimiter.js.map +1 -0
  45. package/dist/commonjs/compiler/stylesheet.js +476 -0
  46. package/dist/commonjs/compiler/stylesheet.js.map +1 -0
  47. package/dist/commonjs/compiler/supports.js +27 -0
  48. package/dist/commonjs/compiler/supports.js.map +1 -0
  49. package/dist/commonjs/components/ActivityIndicator.js +22 -0
  50. package/dist/commonjs/components/ActivityIndicator.js.map +1 -0
  51. package/dist/commonjs/components/Button.js +22 -0
  52. package/dist/commonjs/components/Button.js.map +1 -0
  53. package/dist/commonjs/components/FlatList.js +19 -0
  54. package/dist/commonjs/components/FlatList.js.map +1 -0
  55. package/dist/commonjs/components/Image.js +17 -0
  56. package/dist/commonjs/components/Image.js.map +1 -0
  57. package/dist/commonjs/components/Switch.js +17 -0
  58. package/dist/commonjs/components/Switch.js.map +1 -0
  59. package/dist/commonjs/components/Text.js +17 -0
  60. package/dist/commonjs/components/Text.js.map +1 -0
  61. package/dist/commonjs/components/TextInput.js +17 -0
  62. package/dist/commonjs/components/TextInput.js.map +1 -0
  63. package/dist/commonjs/components/View.js +17 -0
  64. package/dist/commonjs/components/View.js.map +1 -0
  65. package/dist/commonjs/components/index.js +84 -0
  66. package/dist/commonjs/components/index.js.map +1 -0
  67. package/dist/commonjs/components/react-native-safe-area-context.js +17 -0
  68. package/dist/commonjs/components/react-native-safe-area-context.js.map +1 -0
  69. package/dist/commonjs/components/react-native-safe-area-context.native.js +53 -0
  70. package/dist/commonjs/components/react-native-safe-area-context.native.js.map +1 -0
  71. package/dist/commonjs/index.js +28 -0
  72. package/dist/commonjs/index.js.map +1 -0
  73. package/dist/commonjs/jest/expect.d.js +2 -0
  74. package/dist/commonjs/jest/expect.d.js.map +1 -0
  75. package/dist/commonjs/jest/index.js +56 -0
  76. package/dist/commonjs/jest/index.js.map +1 -0
  77. package/dist/commonjs/jest/setup.js +3 -0
  78. package/dist/commonjs/jest/setup.js.map +1 -0
  79. package/dist/commonjs/jest/setupAfterEnv.js +15 -0
  80. package/dist/commonjs/jest/setupAfterEnv.js.map +1 -0
  81. package/dist/commonjs/metro/index.js +170 -0
  82. package/dist/commonjs/metro/index.js.map +1 -0
  83. package/dist/commonjs/metro/injection-code.js +27 -0
  84. package/dist/commonjs/metro/injection-code.js.map +1 -0
  85. package/dist/commonjs/metro/metro-transformer.js +31 -0
  86. package/dist/commonjs/metro/metro-transformer.js.map +1 -0
  87. package/dist/commonjs/metro/picocolors.js +71 -0
  88. package/dist/commonjs/metro/picocolors.js.map +1 -0
  89. package/dist/commonjs/metro/resolver.js +65 -0
  90. package/dist/commonjs/metro/resolver.js.map +1 -0
  91. package/dist/commonjs/metro/stringify.js +59 -0
  92. package/dist/commonjs/metro/stringify.js.map +1 -0
  93. package/dist/commonjs/metro/typescript.js +47 -0
  94. package/dist/commonjs/metro/typescript.js.map +1 -0
  95. package/dist/commonjs/package.json +1 -0
  96. package/dist/commonjs/poison.pill.js +39 -0
  97. package/dist/commonjs/poison.pill.js.map +1 -0
  98. package/dist/commonjs/runtime/index.js +17 -0
  99. package/dist/commonjs/runtime/index.js.map +1 -0
  100. package/dist/commonjs/runtime/native/api.js +96 -0
  101. package/dist/commonjs/runtime/native/api.js.map +1 -0
  102. package/dist/commonjs/runtime/native/conditions/attributes.js +42 -0
  103. package/dist/commonjs/runtime/native/conditions/attributes.js.map +1 -0
  104. package/dist/commonjs/runtime/native/conditions/container-query.js +123 -0
  105. package/dist/commonjs/runtime/native/conditions/container-query.js.map +1 -0
  106. package/dist/commonjs/runtime/native/conditions/guards.js +33 -0
  107. package/dist/commonjs/runtime/native/conditions/guards.js.map +1 -0
  108. package/dist/commonjs/runtime/native/conditions/index.js +40 -0
  109. package/dist/commonjs/runtime/native/conditions/index.js.map +1 -0
  110. package/dist/commonjs/runtime/native/conditions/media-query.js +98 -0
  111. package/dist/commonjs/runtime/native/conditions/media-query.js.map +1 -0
  112. package/dist/commonjs/runtime/native/index.js +28 -0
  113. package/dist/commonjs/runtime/native/index.js.map +1 -0
  114. package/dist/commonjs/runtime/native/metro.js +6 -0
  115. package/dist/commonjs/runtime/native/metro.js.map +1 -0
  116. package/dist/commonjs/runtime/native/react/interaction.js +63 -0
  117. package/dist/commonjs/runtime/native/react/interaction.js.map +1 -0
  118. package/dist/commonjs/runtime/native/react/rules.js +259 -0
  119. package/dist/commonjs/runtime/native/react/rules.js.map +1 -0
  120. package/dist/commonjs/runtime/native/react/useNativeCss.js +159 -0
  121. package/dist/commonjs/runtime/native/react/useNativeCss.js.map +1 -0
  122. package/dist/commonjs/runtime/native/react/usePassthrough.js +50 -0
  123. package/dist/commonjs/runtime/native/react/usePassthrough.js.map +1 -0
  124. package/dist/commonjs/runtime/native/reactivity.js +189 -0
  125. package/dist/commonjs/runtime/native/reactivity.js.map +1 -0
  126. package/dist/commonjs/runtime/native/reanimated.js +17 -0
  127. package/dist/commonjs/runtime/native/reanimated.js.map +1 -0
  128. package/dist/commonjs/runtime/native/styles/calculate-props.js +148 -0
  129. package/dist/commonjs/runtime/native/styles/calculate-props.js.map +1 -0
  130. package/dist/commonjs/runtime/native/styles/constants.js +9 -0
  131. package/dist/commonjs/runtime/native/styles/constants.js.map +1 -0
  132. package/dist/commonjs/runtime/native/styles/defaults.js +69 -0
  133. package/dist/commonjs/runtime/native/styles/defaults.js.map +1 -0
  134. package/dist/commonjs/runtime/native/styles/functions/animation-timing.js +34 -0
  135. package/dist/commonjs/runtime/native/styles/functions/animation-timing.js.map +1 -0
  136. package/dist/commonjs/runtime/native/styles/functions/calc.js +125 -0
  137. package/dist/commonjs/runtime/native/styles/functions/calc.js.map +1 -0
  138. package/dist/commonjs/runtime/native/styles/functions/filters.js +84 -0
  139. package/dist/commonjs/runtime/native/styles/functions/filters.js.map +1 -0
  140. package/dist/commonjs/runtime/native/styles/functions/index.js +83 -0
  141. package/dist/commonjs/runtime/native/styles/functions/index.js.map +1 -0
  142. package/dist/commonjs/runtime/native/styles/functions/numeric-functions.js +32 -0
  143. package/dist/commonjs/runtime/native/styles/functions/numeric-functions.js.map +1 -0
  144. package/dist/commonjs/runtime/native/styles/functions/platform-functions.js +46 -0
  145. package/dist/commonjs/runtime/native/styles/functions/platform-functions.js.map +1 -0
  146. package/dist/commonjs/runtime/native/styles/functions/string-functions.js +23 -0
  147. package/dist/commonjs/runtime/native/styles/functions/string-functions.js.map +1 -0
  148. package/dist/commonjs/runtime/native/styles/functions/transform-functions.js +121 -0
  149. package/dist/commonjs/runtime/native/styles/functions/transform-functions.js.map +1 -0
  150. package/dist/commonjs/runtime/native/styles/index.js +115 -0
  151. package/dist/commonjs/runtime/native/styles/index.js.map +1 -0
  152. package/dist/commonjs/runtime/native/styles/resolve.js +106 -0
  153. package/dist/commonjs/runtime/native/styles/resolve.js.map +1 -0
  154. package/dist/commonjs/runtime/native/styles/shorthands/_handler.js +79 -0
  155. package/dist/commonjs/runtime/native/styles/shorthands/_handler.js.map +1 -0
  156. package/dist/commonjs/runtime/native/styles/shorthands/animation.js +57 -0
  157. package/dist/commonjs/runtime/native/styles/shorthands/animation.js.map +1 -0
  158. package/dist/commonjs/runtime/native/styles/shorthands/border.js +12 -0
  159. package/dist/commonjs/runtime/native/styles/shorthands/border.js.map +1 -0
  160. package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js +50 -0
  161. package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js.map +1 -0
  162. package/dist/commonjs/runtime/native/styles/shorthands/index.js +61 -0
  163. package/dist/commonjs/runtime/native/styles/shorthands/index.js.map +1 -0
  164. package/dist/commonjs/runtime/native/styles/shorthands/text-shadow.js +13 -0
  165. package/dist/commonjs/runtime/native/styles/shorthands/text-shadow.js.map +1 -0
  166. package/dist/commonjs/runtime/native/styles/shorthands/transform.js +23 -0
  167. package/dist/commonjs/runtime/native/styles/shorthands/transform.js.map +1 -0
  168. package/dist/commonjs/runtime/native/styles/units.js +52 -0
  169. package/dist/commonjs/runtime/native/styles/units.js.map +1 -0
  170. package/dist/commonjs/runtime/native/styles/variables.js +79 -0
  171. package/dist/commonjs/runtime/native/styles/variables.js.map +1 -0
  172. package/dist/commonjs/runtime/runtime.js +17 -0
  173. package/dist/commonjs/runtime/runtime.js.map +1 -0
  174. package/dist/commonjs/runtime/runtime.native.js +17 -0
  175. package/dist/commonjs/runtime/runtime.native.js.map +1 -0
  176. package/dist/commonjs/runtime/runtime.types.js +6 -0
  177. package/dist/commonjs/runtime/runtime.types.js.map +1 -0
  178. package/dist/commonjs/runtime/utils/components.js +18 -0
  179. package/dist/commonjs/runtime/utils/components.js.map +1 -0
  180. package/dist/commonjs/runtime/utils/dot-notation.types.js +2 -0
  181. package/dist/commonjs/runtime/utils/dot-notation.types.js.map +1 -0
  182. package/dist/commonjs/runtime/utils/index.js +61 -0
  183. package/dist/commonjs/runtime/utils/index.js.map +1 -0
  184. package/dist/commonjs/runtime/utils/objects.js +92 -0
  185. package/dist/commonjs/runtime/utils/objects.js.map +1 -0
  186. package/dist/commonjs/runtime/utils/specificity.js +44 -0
  187. package/dist/commonjs/runtime/utils/specificity.js.map +1 -0
  188. package/dist/commonjs/runtime/utils/style-value.js +21 -0
  189. package/dist/commonjs/runtime/utils/style-value.js.map +1 -0
  190. package/dist/commonjs/runtime/utils/utils.types.js +6 -0
  191. package/dist/commonjs/runtime/utils/utils.types.js.map +1 -0
  192. package/dist/commonjs/runtime/web/api.js +68 -0
  193. package/dist/commonjs/runtime/web/api.js.map +1 -0
  194. package/dist/commonjs/runtime/web/assign-style.js +27 -0
  195. package/dist/commonjs/runtime/web/assign-style.js.map +1 -0
  196. package/dist/commonjs/runtime/web/index.js +18 -0
  197. package/dist/commonjs/runtime/web/index.js.map +1 -0
  198. package/dist/commonjs/runtime/web/metro.js +6 -0
  199. package/dist/commonjs/runtime/web/metro.js.map +1 -0
  200. package/dist/commonjs/style-collection/index.js +110 -0
  201. package/dist/commonjs/style-collection/index.js.map +1 -0
  202. package/dist/commonjs/style-collection/root.js +28 -0
  203. package/dist/commonjs/style-collection/root.js.map +1 -0
  204. package/dist/module/babel/allowedModules.js +19 -0
  205. package/dist/module/babel/allowedModules.js.map +1 -0
  206. package/dist/module/babel/helpers.js +21 -0
  207. package/dist/module/babel/helpers.js.map +1 -0
  208. package/dist/module/babel/import-plugin.js +97 -0
  209. package/dist/module/babel/import-plugin.js.map +1 -0
  210. package/dist/module/babel/index.js +9 -0
  211. package/dist/module/babel/index.js.map +1 -0
  212. package/dist/module/babel/react-native-web.js +112 -0
  213. package/dist/module/babel/react-native-web.js.map +1 -0
  214. package/dist/module/babel/react-native.js +112 -0
  215. package/dist/module/babel/react-native.js.map +1 -0
  216. package/dist/module/compiler/atRules.js +110 -0
  217. package/dist/module/compiler/atRules.js.map +1 -0
  218. package/dist/module/compiler/compiler.js +276 -0
  219. package/dist/module/compiler/compiler.js.map +1 -0
  220. package/dist/module/compiler/compiler.types.js +60 -0
  221. package/dist/module/compiler/compiler.types.js.map +1 -0
  222. package/dist/module/compiler/container-query.js +59 -0
  223. package/dist/module/compiler/container-query.js.map +1 -0
  224. package/dist/module/compiler/declarations.js +2121 -0
  225. package/dist/module/compiler/declarations.js.map +1 -0
  226. package/dist/module/compiler/functions-web.js +32 -0
  227. package/dist/module/compiler/functions-web.js.map +1 -0
  228. package/dist/module/compiler/functions.js +47 -0
  229. package/dist/module/compiler/functions.js.map +1 -0
  230. package/dist/module/compiler/index.js +9 -0
  231. package/dist/module/compiler/index.js.map +1 -0
  232. package/dist/module/compiler/inheritance.test.js +78 -0
  233. package/dist/module/compiler/inheritance.test.js.map +1 -0
  234. package/dist/module/compiler/keyframes.js +54 -0
  235. package/dist/module/compiler/keyframes.js.map +1 -0
  236. package/dist/module/compiler/media-query.js +166 -0
  237. package/dist/module/compiler/media-query.js.map +1 -0
  238. package/dist/module/compiler/pseudo-elements.js +44 -0
  239. package/dist/module/compiler/pseudo-elements.js.map +1 -0
  240. package/dist/module/compiler/selector-builder.js +496 -0
  241. package/dist/module/compiler/selector-builder.js.map +1 -0
  242. package/dist/module/compiler/selectors.js +409 -0
  243. package/dist/module/compiler/selectors.js.map +1 -0
  244. package/dist/module/compiler/split-by-delimiter.js +17 -0
  245. package/dist/module/compiler/split-by-delimiter.js.map +1 -0
  246. package/dist/module/compiler/stylesheet.js +471 -0
  247. package/dist/module/compiler/stylesheet.js.map +1 -0
  248. package/dist/module/compiler/supports.js +23 -0
  249. package/dist/module/compiler/supports.js.map +1 -0
  250. package/dist/module/components/ActivityIndicator.js +17 -0
  251. package/dist/module/components/ActivityIndicator.js.map +1 -0
  252. package/dist/module/components/Button.js +17 -0
  253. package/dist/module/components/Button.js.map +1 -0
  254. package/dist/module/components/FlatList.js +14 -0
  255. package/dist/module/components/FlatList.js.map +1 -0
  256. package/dist/module/components/Image.js +12 -0
  257. package/dist/module/components/Image.js.map +1 -0
  258. package/dist/module/components/Switch.js +12 -0
  259. package/dist/module/components/Switch.js.map +1 -0
  260. package/dist/module/components/Text.js +12 -0
  261. package/dist/module/components/Text.js.map +1 -0
  262. package/dist/module/components/TextInput.js +12 -0
  263. package/dist/module/components/TextInput.js.map +1 -0
  264. package/dist/module/components/View.js +12 -0
  265. package/dist/module/components/View.js.map +1 -0
  266. package/dist/module/components/index.js +12 -0
  267. package/dist/module/components/index.js.map +1 -0
  268. package/dist/module/components/react-native-safe-area-context.js +4 -0
  269. package/dist/module/components/react-native-safe-area-context.js.map +1 -0
  270. package/dist/module/components/react-native-safe-area-context.native.js +36 -0
  271. package/dist/module/components/react-native-safe-area-context.native.js.map +1 -0
  272. package/dist/module/index.js +5 -0
  273. package/dist/module/index.js.map +1 -0
  274. package/dist/module/jest/expect.d.js +2 -0
  275. package/dist/module/jest/expect.d.js.map +1 -0
  276. package/dist/module/jest/index.js +50 -0
  277. package/dist/module/jest/index.js.map +1 -0
  278. package/dist/module/jest/setup.js +3 -0
  279. package/dist/module/jest/setup.js.map +1 -0
  280. package/dist/module/jest/setupAfterEnv.js +15 -0
  281. package/dist/module/jest/setupAfterEnv.js.map +1 -0
  282. package/dist/module/metro/index.js +164 -0
  283. package/dist/module/metro/index.js.map +1 -0
  284. package/dist/module/metro/injection-code.js +22 -0
  285. package/dist/module/metro/injection-code.js.map +1 -0
  286. package/dist/module/metro/metro-transformer.js +27 -0
  287. package/dist/module/metro/metro-transformer.js.map +1 -0
  288. package/dist/module/metro/picocolors.js +67 -0
  289. package/dist/module/metro/picocolors.js.map +1 -0
  290. package/dist/module/metro/resolver.js +60 -0
  291. package/dist/module/metro/resolver.js.map +1 -0
  292. package/dist/module/metro/stringify.js +55 -0
  293. package/dist/module/metro/stringify.js.map +1 -0
  294. package/dist/module/metro/typescript.js +42 -0
  295. package/dist/module/metro/typescript.js.map +1 -0
  296. package/dist/module/package.json +1 -0
  297. package/dist/module/poison.pill.js +37 -0
  298. package/dist/module/poison.pill.js.map +1 -0
  299. package/dist/module/runtime/index.js +9 -0
  300. package/dist/module/runtime/index.js.map +1 -0
  301. package/dist/module/runtime/native/api.js +76 -0
  302. package/dist/module/runtime/native/api.js.map +1 -0
  303. package/dist/module/runtime/native/conditions/attributes.js +38 -0
  304. package/dist/module/runtime/native/conditions/attributes.js.map +1 -0
  305. package/dist/module/runtime/native/conditions/container-query.js +117 -0
  306. package/dist/module/runtime/native/conditions/container-query.js.map +1 -0
  307. package/dist/module/runtime/native/conditions/guards.js +29 -0
  308. package/dist/module/runtime/native/conditions/guards.js.map +1 -0
  309. package/dist/module/runtime/native/conditions/index.js +36 -0
  310. package/dist/module/runtime/native/conditions/index.js.map +1 -0
  311. package/dist/module/runtime/native/conditions/media-query.js +93 -0
  312. package/dist/module/runtime/native/conditions/media-query.js.map +1 -0
  313. package/dist/module/runtime/native/index.js +5 -0
  314. package/dist/module/runtime/native/index.js.map +1 -0
  315. package/dist/module/runtime/native/metro.js +5 -0
  316. package/dist/module/runtime/native/metro.js.map +1 -0
  317. package/dist/module/runtime/native/react/interaction.js +59 -0
  318. package/dist/module/runtime/native/react/interaction.js.map +1 -0
  319. package/dist/module/runtime/native/react/rules.js +251 -0
  320. package/dist/module/runtime/native/react/rules.js.map +1 -0
  321. package/dist/module/runtime/native/react/useNativeCss.js +153 -0
  322. package/dist/module/runtime/native/react/useNativeCss.js.map +1 -0
  323. package/dist/module/runtime/native/react/usePassthrough.js +45 -0
  324. package/dist/module/runtime/native/react/usePassthrough.js.map +1 -0
  325. package/dist/module/runtime/native/reactivity.js +177 -0
  326. package/dist/module/runtime/native/reactivity.js.map +1 -0
  327. package/dist/module/runtime/native/reanimated.js +13 -0
  328. package/dist/module/runtime/native/reanimated.js.map +1 -0
  329. package/dist/module/runtime/native/styles/calculate-props.js +143 -0
  330. package/dist/module/runtime/native/styles/calculate-props.js.map +1 -0
  331. package/dist/module/runtime/native/styles/constants.js +5 -0
  332. package/dist/module/runtime/native/styles/constants.js.map +1 -0
  333. package/dist/module/runtime/native/styles/defaults.js +65 -0
  334. package/dist/module/runtime/native/styles/defaults.js.map +1 -0
  335. package/dist/module/runtime/native/styles/functions/animation-timing.js +30 -0
  336. package/dist/module/runtime/native/styles/functions/animation-timing.js.map +1 -0
  337. package/dist/module/runtime/native/styles/functions/calc.js +120 -0
  338. package/dist/module/runtime/native/styles/functions/calc.js.map +1 -0
  339. package/dist/module/runtime/native/styles/functions/filters.js +70 -0
  340. package/dist/module/runtime/native/styles/functions/filters.js.map +1 -0
  341. package/dist/module/runtime/native/styles/functions/index.js +10 -0
  342. package/dist/module/runtime/native/styles/functions/index.js.map +1 -0
  343. package/dist/module/runtime/native/styles/functions/numeric-functions.js +25 -0
  344. package/dist/module/runtime/native/styles/functions/numeric-functions.js.map +1 -0
  345. package/dist/module/runtime/native/styles/functions/platform-functions.js +36 -0
  346. package/dist/module/runtime/native/styles/functions/platform-functions.js.map +1 -0
  347. package/dist/module/runtime/native/styles/functions/string-functions.js +18 -0
  348. package/dist/module/runtime/native/styles/functions/string-functions.js.map +1 -0
  349. package/dist/module/runtime/native/styles/functions/transform-functions.js +114 -0
  350. package/dist/module/runtime/native/styles/functions/transform-functions.js.map +1 -0
  351. package/dist/module/runtime/native/styles/index.js +110 -0
  352. package/dist/module/runtime/native/styles/index.js.map +1 -0
  353. package/dist/module/runtime/native/styles/resolve.js +101 -0
  354. package/dist/module/runtime/native/styles/resolve.js.map +1 -0
  355. package/dist/module/runtime/native/styles/shorthands/_handler.js +74 -0
  356. package/dist/module/runtime/native/styles/shorthands/_handler.js.map +1 -0
  357. package/dist/module/runtime/native/styles/shorthands/animation.js +51 -0
  358. package/dist/module/runtime/native/styles/shorthands/animation.js.map +1 -0
  359. package/dist/module/runtime/native/styles/shorthands/border.js +8 -0
  360. package/dist/module/runtime/native/styles/shorthands/border.js.map +1 -0
  361. package/dist/module/runtime/native/styles/shorthands/box-shadow.js +45 -0
  362. package/dist/module/runtime/native/styles/shorthands/box-shadow.js.map +1 -0
  363. package/dist/module/runtime/native/styles/shorthands/index.js +8 -0
  364. package/dist/module/runtime/native/styles/shorthands/index.js.map +1 -0
  365. package/dist/module/runtime/native/styles/shorthands/text-shadow.js +9 -0
  366. package/dist/module/runtime/native/styles/shorthands/text-shadow.js.map +1 -0
  367. package/dist/module/runtime/native/styles/shorthands/transform.js +18 -0
  368. package/dist/module/runtime/native/styles/shorthands/transform.js.map +1 -0
  369. package/dist/module/runtime/native/styles/units.js +43 -0
  370. package/dist/module/runtime/native/styles/units.js.map +1 -0
  371. package/dist/module/runtime/native/styles/variables.js +75 -0
  372. package/dist/module/runtime/native/styles/variables.js.map +1 -0
  373. package/dist/module/runtime/runtime.js +4 -0
  374. package/dist/module/runtime/runtime.js.map +1 -0
  375. package/dist/module/runtime/runtime.native.js +4 -0
  376. package/dist/module/runtime/runtime.native.js.map +1 -0
  377. package/dist/module/runtime/runtime.types.js +4 -0
  378. package/dist/module/runtime/runtime.types.js.map +1 -0
  379. package/dist/module/runtime/utils/components.js +14 -0
  380. package/dist/module/runtime/utils/components.js.map +1 -0
  381. package/dist/module/runtime/utils/dot-notation.types.js +2 -0
  382. package/dist/module/runtime/utils/dot-notation.types.js.map +1 -0
  383. package/dist/module/runtime/utils/index.js +8 -0
  384. package/dist/module/runtime/utils/index.js.map +1 -0
  385. package/dist/module/runtime/utils/objects.js +84 -0
  386. package/dist/module/runtime/utils/objects.js.map +1 -0
  387. package/dist/module/runtime/utils/specificity.js +39 -0
  388. package/dist/module/runtime/utils/specificity.js.map +1 -0
  389. package/dist/module/runtime/utils/style-value.js +16 -0
  390. package/dist/module/runtime/utils/style-value.js.map +1 -0
  391. package/dist/module/runtime/utils/utils.types.js +4 -0
  392. package/dist/module/runtime/utils/utils.types.js.map +1 -0
  393. package/dist/module/runtime/web/api.js +59 -0
  394. package/dist/module/runtime/web/api.js.map +1 -0
  395. package/dist/module/runtime/web/assign-style.js +23 -0
  396. package/dist/module/runtime/web/assign-style.js.map +1 -0
  397. package/dist/module/runtime/web/index.js +6 -0
  398. package/dist/module/runtime/web/index.js.map +1 -0
  399. package/dist/module/runtime/web/metro.js +5 -0
  400. package/dist/module/runtime/web/metro.js.map +1 -0
  401. package/dist/module/style-collection/index.js +95 -0
  402. package/dist/module/style-collection/index.js.map +1 -0
  403. package/dist/module/style-collection/root.js +24 -0
  404. package/dist/module/style-collection/root.js.map +1 -0
  405. package/dist/typescript/commonjs/example/app.config.d.ts +4 -0
  406. package/dist/typescript/commonjs/example/app.config.d.ts.map +1 -0
  407. package/dist/typescript/commonjs/example/src/App.d.ts +3 -0
  408. package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -0
  409. package/dist/typescript/commonjs/package.json +1 -0
  410. package/dist/typescript/commonjs/src/babel/allowedModules.d.ts +2 -0
  411. package/dist/typescript/commonjs/src/babel/allowedModules.d.ts.map +1 -0
  412. package/dist/typescript/commonjs/src/babel/helpers.d.ts +13 -0
  413. package/dist/typescript/commonjs/src/babel/helpers.d.ts.map +1 -0
  414. package/dist/typescript/commonjs/src/babel/import-plugin.d.ts +6 -0
  415. package/dist/typescript/commonjs/src/babel/import-plugin.d.ts.map +1 -0
  416. package/dist/typescript/commonjs/src/babel/index.d.ts +1 -0
  417. package/dist/typescript/commonjs/src/babel/index.d.ts.map +1 -0
  418. package/dist/typescript/commonjs/src/babel/react-native-web.d.ts +8 -0
  419. package/dist/typescript/commonjs/src/babel/react-native-web.d.ts.map +1 -0
  420. package/dist/typescript/commonjs/src/babel/react-native.d.ts +8 -0
  421. package/dist/typescript/commonjs/src/babel/react-native.d.ts.map +1 -0
  422. package/dist/typescript/commonjs/src/compiler/atRules.d.ts +34 -0
  423. package/dist/typescript/commonjs/src/compiler/atRules.d.ts.map +1 -0
  424. package/dist/typescript/commonjs/src/compiler/compiler.d.ts +17 -0
  425. package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -0
  426. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +197 -0
  427. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -0
  428. package/dist/typescript/commonjs/src/compiler/container-query.d.ts +5 -0
  429. package/dist/typescript/commonjs/src/compiler/container-query.d.ts.map +1 -0
  430. package/dist/typescript/commonjs/src/compiler/declarations.d.ts +120 -0
  431. package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -0
  432. package/dist/typescript/commonjs/src/compiler/functions-web.d.ts +11 -0
  433. package/dist/typescript/commonjs/src/compiler/functions-web.d.ts.map +1 -0
  434. package/dist/typescript/commonjs/src/compiler/functions.d.ts +11 -0
  435. package/dist/typescript/commonjs/src/compiler/functions.d.ts.map +1 -0
  436. package/dist/typescript/commonjs/src/compiler/index.d.ts +7 -0
  437. package/dist/typescript/commonjs/src/compiler/index.d.ts.map +1 -0
  438. package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts +2 -0
  439. package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts.map +1 -0
  440. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts +7 -0
  441. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts.map +1 -0
  442. package/dist/typescript/commonjs/src/compiler/media-query.d.ts +7 -0
  443. package/dist/typescript/commonjs/src/compiler/media-query.d.ts.map +1 -0
  444. package/dist/typescript/commonjs/src/compiler/pseudo-elements.d.ts +4 -0
  445. package/dist/typescript/commonjs/src/compiler/pseudo-elements.d.ts.map +1 -0
  446. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts +24 -0
  447. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -0
  448. package/dist/typescript/commonjs/src/compiler/selectors.d.ts +24 -0
  449. package/dist/typescript/commonjs/src/compiler/selectors.d.ts.map +1 -0
  450. package/dist/typescript/commonjs/src/compiler/split-by-delimiter.d.ts +2 -0
  451. package/dist/typescript/commonjs/src/compiler/split-by-delimiter.d.ts.map +1 -0
  452. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +68 -0
  453. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -0
  454. package/dist/typescript/commonjs/src/compiler/supports.d.ts +3 -0
  455. package/dist/typescript/commonjs/src/compiler/supports.d.ts.map +1 -0
  456. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +13 -0
  457. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -0
  458. package/dist/typescript/commonjs/src/components/Button.d.ts +13 -0
  459. package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -0
  460. package/dist/typescript/commonjs/src/components/FlatList.d.ts +10 -0
  461. package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -0
  462. package/dist/typescript/commonjs/src/components/Image.d.ts +8 -0
  463. package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -0
  464. package/dist/typescript/commonjs/src/components/Switch.d.ts +8 -0
  465. package/dist/typescript/commonjs/src/components/Switch.d.ts.map +1 -0
  466. package/dist/typescript/commonjs/src/components/Text.d.ts +8 -0
  467. package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -0
  468. package/dist/typescript/commonjs/src/components/TextInput.d.ts +8 -0
  469. package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -0
  470. package/dist/typescript/commonjs/src/components/View.d.ts +8 -0
  471. package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -0
  472. package/dist/typescript/commonjs/src/components/index.d.ts +10 -0
  473. package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -0
  474. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.d.ts +2 -0
  475. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.d.ts.map +1 -0
  476. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts +4 -0
  477. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts.map +1 -0
  478. package/dist/typescript/commonjs/src/index.d.ts +3 -0
  479. package/dist/typescript/commonjs/src/index.d.ts.map +1 -0
  480. package/dist/typescript/commonjs/src/jest/index.d.ts +30 -0
  481. package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -0
  482. package/dist/typescript/commonjs/src/jest/setup.d.ts +1 -0
  483. package/dist/typescript/commonjs/src/jest/setup.d.ts.map +1 -0
  484. package/dist/typescript/commonjs/src/jest/setupAfterEnv.d.ts +1 -0
  485. package/dist/typescript/commonjs/src/jest/setupAfterEnv.d.ts.map +1 -0
  486. package/dist/typescript/commonjs/src/metro/index.d.ts +11 -0
  487. package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -0
  488. package/dist/typescript/commonjs/src/metro/injection-code.d.ts +13 -0
  489. package/dist/typescript/commonjs/src/metro/injection-code.d.ts.map +1 -0
  490. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts +6 -0
  491. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -0
  492. package/dist/typescript/commonjs/src/metro/picocolors.d.ts +27 -0
  493. package/dist/typescript/commonjs/src/metro/picocolors.d.ts.map +1 -0
  494. package/dist/typescript/commonjs/src/metro/resolver.d.ts +4 -0
  495. package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -0
  496. package/dist/typescript/commonjs/src/metro/stringify.d.ts +7 -0
  497. package/dist/typescript/commonjs/src/metro/stringify.d.ts.map +1 -0
  498. package/dist/typescript/commonjs/src/metro/typescript.d.ts +2 -0
  499. package/dist/typescript/commonjs/src/metro/typescript.d.ts.map +1 -0
  500. package/dist/typescript/commonjs/src/poison.pill.d.ts +2 -0
  501. package/dist/typescript/commonjs/src/poison.pill.d.ts.map +1 -0
  502. package/dist/typescript/commonjs/src/runtime/index.d.ts +7 -0
  503. package/dist/typescript/commonjs/src/runtime/index.d.ts.map +1 -0
  504. package/dist/typescript/commonjs/src/runtime/native/api.d.ts +19 -0
  505. package/dist/typescript/commonjs/src/runtime/native/api.d.ts.map +1 -0
  506. package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts +5 -0
  507. package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts.map +1 -0
  508. package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts +7 -0
  509. package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts.map +1 -0
  510. package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts +5 -0
  511. package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts.map +1 -0
  512. package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts +6 -0
  513. package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts.map +1 -0
  514. package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts +4 -0
  515. package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts.map +1 -0
  516. package/dist/typescript/commonjs/src/runtime/native/index.d.ts +4 -0
  517. package/dist/typescript/commonjs/src/runtime/native/index.d.ts.map +1 -0
  518. package/dist/typescript/commonjs/src/runtime/native/metro.d.ts +2 -0
  519. package/dist/typescript/commonjs/src/runtime/native/metro.d.ts.map +1 -0
  520. package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts +6 -0
  521. package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts.map +1 -0
  522. package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts +7 -0
  523. package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts.map +1 -0
  524. package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts +38 -0
  525. package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts.map +1 -0
  526. package/dist/typescript/commonjs/src/runtime/native/react/usePassthrough.d.ts +4 -0
  527. package/dist/typescript/commonjs/src/runtime/native/react/usePassthrough.d.ts.map +1 -0
  528. package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts +55 -0
  529. package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts.map +1 -0
  530. package/dist/typescript/commonjs/src/runtime/native/reanimated.d.ts +5 -0
  531. package/dist/typescript/commonjs/src/runtime/native/reanimated.d.ts.map +1 -0
  532. package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts +10 -0
  533. package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts.map +1 -0
  534. package/dist/typescript/commonjs/src/runtime/native/styles/constants.d.ts +3 -0
  535. package/dist/typescript/commonjs/src/runtime/native/styles/constants.d.ts.map +1 -0
  536. package/dist/typescript/commonjs/src/runtime/native/styles/defaults.d.ts +3 -0
  537. package/dist/typescript/commonjs/src/runtime/native/styles/defaults.d.ts.map +1 -0
  538. package/dist/typescript/commonjs/src/runtime/native/styles/functions/animation-timing.d.ts +4 -0
  539. package/dist/typescript/commonjs/src/runtime/native/styles/functions/animation-timing.d.ts.map +1 -0
  540. package/dist/typescript/commonjs/src/runtime/native/styles/functions/calc.d.ts +3 -0
  541. package/dist/typescript/commonjs/src/runtime/native/styles/functions/calc.d.ts.map +1 -0
  542. package/dist/typescript/commonjs/src/runtime/native/styles/functions/filters.d.ts +12 -0
  543. package/dist/typescript/commonjs/src/runtime/native/styles/functions/filters.d.ts.map +1 -0
  544. package/dist/typescript/commonjs/src/runtime/native/styles/functions/index.d.ts +8 -0
  545. package/dist/typescript/commonjs/src/runtime/native/styles/functions/index.d.ts.map +1 -0
  546. package/dist/typescript/commonjs/src/runtime/native/styles/functions/numeric-functions.d.ts +5 -0
  547. package/dist/typescript/commonjs/src/runtime/native/styles/functions/numeric-functions.d.ts.map +1 -0
  548. package/dist/typescript/commonjs/src/runtime/native/styles/functions/platform-functions.d.ts +8 -0
  549. package/dist/typescript/commonjs/src/runtime/native/styles/functions/platform-functions.d.ts.map +1 -0
  550. package/dist/typescript/commonjs/src/runtime/native/styles/functions/string-functions.d.ts +3 -0
  551. package/dist/typescript/commonjs/src/runtime/native/styles/functions/string-functions.d.ts.map +1 -0
  552. package/dist/typescript/commonjs/src/runtime/native/styles/functions/transform-functions.d.ts +5 -0
  553. package/dist/typescript/commonjs/src/runtime/native/styles/functions/transform-functions.d.ts.map +1 -0
  554. package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts +19 -0
  555. package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts.map +1 -0
  556. package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts +18 -0
  557. package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts.map +1 -0
  558. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/_handler.d.ts +11 -0
  559. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/_handler.d.ts.map +1 -0
  560. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/animation.d.ts +4 -0
  561. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/animation.d.ts.map +1 -0
  562. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/border.d.ts +2 -0
  563. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/border.d.ts.map +1 -0
  564. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/box-shadow.d.ts +3 -0
  565. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +1 -0
  566. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/index.d.ts +6 -0
  567. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/index.d.ts.map +1 -0
  568. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/text-shadow.d.ts +2 -0
  569. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +1 -0
  570. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/transform.d.ts +7 -0
  571. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/transform.d.ts.map +1 -0
  572. package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts +6 -0
  573. package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts.map +1 -0
  574. package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts +5 -0
  575. package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts.map +1 -0
  576. package/dist/typescript/commonjs/src/runtime/runtime.d.ts +2 -0
  577. package/dist/typescript/commonjs/src/runtime/runtime.d.ts.map +1 -0
  578. package/dist/typescript/commonjs/src/runtime/runtime.native.d.ts +2 -0
  579. package/dist/typescript/commonjs/src/runtime/runtime.native.d.ts.map +1 -0
  580. package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts +47 -0
  581. package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts.map +1 -0
  582. package/dist/typescript/commonjs/src/runtime/utils/components.d.ts +2 -0
  583. package/dist/typescript/commonjs/src/runtime/utils/components.d.ts.map +1 -0
  584. package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts +23 -0
  585. package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts.map +1 -0
  586. package/dist/typescript/commonjs/src/runtime/utils/index.d.ts +6 -0
  587. package/dist/typescript/commonjs/src/runtime/utils/index.d.ts.map +1 -0
  588. package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts +5 -0
  589. package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts.map +1 -0
  590. package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts +13 -0
  591. package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts.map +1 -0
  592. package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts +4 -0
  593. package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts.map +1 -0
  594. package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts +5 -0
  595. package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts.map +1 -0
  596. package/dist/typescript/commonjs/src/runtime/web/api.d.ts +10 -0
  597. package/dist/typescript/commonjs/src/runtime/web/api.d.ts.map +1 -0
  598. package/dist/typescript/commonjs/src/runtime/web/assign-style.d.ts +2 -0
  599. package/dist/typescript/commonjs/src/runtime/web/assign-style.d.ts.map +1 -0
  600. package/dist/typescript/commonjs/src/runtime/web/index.d.ts +4 -0
  601. package/dist/typescript/commonjs/src/runtime/web/index.d.ts.map +1 -0
  602. package/dist/typescript/commonjs/src/runtime/web/metro.d.ts +2 -0
  603. package/dist/typescript/commonjs/src/runtime/web/metro.d.ts.map +1 -0
  604. package/dist/typescript/commonjs/src/style-collection/index.d.ts +14 -0
  605. package/dist/typescript/commonjs/src/style-collection/index.d.ts.map +1 -0
  606. package/dist/typescript/commonjs/src/style-collection/root.d.ts +11 -0
  607. package/dist/typescript/commonjs/src/style-collection/root.d.ts.map +1 -0
  608. package/dist/typescript/module/example/app.config.d.ts +4 -0
  609. package/dist/typescript/module/example/app.config.d.ts.map +1 -0
  610. package/dist/typescript/module/example/src/App.d.ts +3 -0
  611. package/dist/typescript/module/example/src/App.d.ts.map +1 -0
  612. package/dist/typescript/module/package.json +1 -0
  613. package/dist/typescript/module/src/babel/allowedModules.d.ts +2 -0
  614. package/dist/typescript/module/src/babel/allowedModules.d.ts.map +1 -0
  615. package/dist/typescript/module/src/babel/helpers.d.ts +13 -0
  616. package/dist/typescript/module/src/babel/helpers.d.ts.map +1 -0
  617. package/dist/typescript/module/src/babel/import-plugin.d.ts +6 -0
  618. package/dist/typescript/module/src/babel/import-plugin.d.ts.map +1 -0
  619. package/dist/typescript/module/src/babel/index.d.ts +1 -0
  620. package/dist/typescript/module/src/babel/index.d.ts.map +1 -0
  621. package/dist/typescript/module/src/babel/react-native-web.d.ts +8 -0
  622. package/dist/typescript/module/src/babel/react-native-web.d.ts.map +1 -0
  623. package/dist/typescript/module/src/babel/react-native.d.ts +8 -0
  624. package/dist/typescript/module/src/babel/react-native.d.ts.map +1 -0
  625. package/dist/typescript/module/src/compiler/atRules.d.ts +34 -0
  626. package/dist/typescript/module/src/compiler/atRules.d.ts.map +1 -0
  627. package/dist/typescript/module/src/compiler/compiler.d.ts +17 -0
  628. package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -0
  629. package/dist/typescript/module/src/compiler/compiler.types.d.ts +197 -0
  630. package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -0
  631. package/dist/typescript/module/src/compiler/container-query.d.ts +5 -0
  632. package/dist/typescript/module/src/compiler/container-query.d.ts.map +1 -0
  633. package/dist/typescript/module/src/compiler/declarations.d.ts +120 -0
  634. package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -0
  635. package/dist/typescript/module/src/compiler/functions-web.d.ts +11 -0
  636. package/dist/typescript/module/src/compiler/functions-web.d.ts.map +1 -0
  637. package/dist/typescript/module/src/compiler/functions.d.ts +11 -0
  638. package/dist/typescript/module/src/compiler/functions.d.ts.map +1 -0
  639. package/dist/typescript/module/src/compiler/index.d.ts +7 -0
  640. package/dist/typescript/module/src/compiler/index.d.ts.map +1 -0
  641. package/dist/typescript/module/src/compiler/inheritance.test.d.ts +2 -0
  642. package/dist/typescript/module/src/compiler/inheritance.test.d.ts.map +1 -0
  643. package/dist/typescript/module/src/compiler/keyframes.d.ts +7 -0
  644. package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -0
  645. package/dist/typescript/module/src/compiler/media-query.d.ts +7 -0
  646. package/dist/typescript/module/src/compiler/media-query.d.ts.map +1 -0
  647. package/dist/typescript/module/src/compiler/pseudo-elements.d.ts +4 -0
  648. package/dist/typescript/module/src/compiler/pseudo-elements.d.ts.map +1 -0
  649. package/dist/typescript/module/src/compiler/selector-builder.d.ts +24 -0
  650. package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -0
  651. package/dist/typescript/module/src/compiler/selectors.d.ts +24 -0
  652. package/dist/typescript/module/src/compiler/selectors.d.ts.map +1 -0
  653. package/dist/typescript/module/src/compiler/split-by-delimiter.d.ts +2 -0
  654. package/dist/typescript/module/src/compiler/split-by-delimiter.d.ts.map +1 -0
  655. package/dist/typescript/module/src/compiler/stylesheet.d.ts +68 -0
  656. package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -0
  657. package/dist/typescript/module/src/compiler/supports.d.ts +3 -0
  658. package/dist/typescript/module/src/compiler/supports.d.ts.map +1 -0
  659. package/dist/typescript/module/src/components/ActivityIndicator.d.ts +13 -0
  660. package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -0
  661. package/dist/typescript/module/src/components/Button.d.ts +13 -0
  662. package/dist/typescript/module/src/components/Button.d.ts.map +1 -0
  663. package/dist/typescript/module/src/components/FlatList.d.ts +10 -0
  664. package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -0
  665. package/dist/typescript/module/src/components/Image.d.ts +8 -0
  666. package/dist/typescript/module/src/components/Image.d.ts.map +1 -0
  667. package/dist/typescript/module/src/components/Switch.d.ts +8 -0
  668. package/dist/typescript/module/src/components/Switch.d.ts.map +1 -0
  669. package/dist/typescript/module/src/components/Text.d.ts +8 -0
  670. package/dist/typescript/module/src/components/Text.d.ts.map +1 -0
  671. package/dist/typescript/module/src/components/TextInput.d.ts +8 -0
  672. package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -0
  673. package/dist/typescript/module/src/components/View.d.ts +8 -0
  674. package/dist/typescript/module/src/components/View.d.ts.map +1 -0
  675. package/dist/typescript/module/src/components/index.d.ts +10 -0
  676. package/dist/typescript/module/src/components/index.d.ts.map +1 -0
  677. package/dist/typescript/module/src/components/react-native-safe-area-context.d.ts +2 -0
  678. package/dist/typescript/module/src/components/react-native-safe-area-context.d.ts.map +1 -0
  679. package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts +4 -0
  680. package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts.map +1 -0
  681. package/dist/typescript/module/src/index.d.ts +3 -0
  682. package/dist/typescript/module/src/index.d.ts.map +1 -0
  683. package/dist/typescript/module/src/jest/index.d.ts +30 -0
  684. package/dist/typescript/module/src/jest/index.d.ts.map +1 -0
  685. package/dist/typescript/module/src/jest/setup.d.ts +1 -0
  686. package/dist/typescript/module/src/jest/setup.d.ts.map +1 -0
  687. package/dist/typescript/module/src/jest/setupAfterEnv.d.ts +1 -0
  688. package/dist/typescript/module/src/jest/setupAfterEnv.d.ts.map +1 -0
  689. package/dist/typescript/module/src/metro/index.d.ts +11 -0
  690. package/dist/typescript/module/src/metro/index.d.ts.map +1 -0
  691. package/dist/typescript/module/src/metro/injection-code.d.ts +13 -0
  692. package/dist/typescript/module/src/metro/injection-code.d.ts.map +1 -0
  693. package/dist/typescript/module/src/metro/metro-transformer.d.ts +6 -0
  694. package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -0
  695. package/dist/typescript/module/src/metro/picocolors.d.ts +27 -0
  696. package/dist/typescript/module/src/metro/picocolors.d.ts.map +1 -0
  697. package/dist/typescript/module/src/metro/resolver.d.ts +4 -0
  698. package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -0
  699. package/dist/typescript/module/src/metro/stringify.d.ts +7 -0
  700. package/dist/typescript/module/src/metro/stringify.d.ts.map +1 -0
  701. package/dist/typescript/module/src/metro/typescript.d.ts +2 -0
  702. package/dist/typescript/module/src/metro/typescript.d.ts.map +1 -0
  703. package/dist/typescript/module/src/poison.pill.d.ts +2 -0
  704. package/dist/typescript/module/src/poison.pill.d.ts.map +1 -0
  705. package/dist/typescript/module/src/runtime/index.d.ts +7 -0
  706. package/dist/typescript/module/src/runtime/index.d.ts.map +1 -0
  707. package/dist/typescript/module/src/runtime/native/api.d.ts +19 -0
  708. package/dist/typescript/module/src/runtime/native/api.d.ts.map +1 -0
  709. package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts +5 -0
  710. package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts.map +1 -0
  711. package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts +7 -0
  712. package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts.map +1 -0
  713. package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts +5 -0
  714. package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts.map +1 -0
  715. package/dist/typescript/module/src/runtime/native/conditions/index.d.ts +6 -0
  716. package/dist/typescript/module/src/runtime/native/conditions/index.d.ts.map +1 -0
  717. package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts +4 -0
  718. package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts.map +1 -0
  719. package/dist/typescript/module/src/runtime/native/index.d.ts +4 -0
  720. package/dist/typescript/module/src/runtime/native/index.d.ts.map +1 -0
  721. package/dist/typescript/module/src/runtime/native/metro.d.ts +2 -0
  722. package/dist/typescript/module/src/runtime/native/metro.d.ts.map +1 -0
  723. package/dist/typescript/module/src/runtime/native/react/interaction.d.ts +6 -0
  724. package/dist/typescript/module/src/runtime/native/react/interaction.d.ts.map +1 -0
  725. package/dist/typescript/module/src/runtime/native/react/rules.d.ts +7 -0
  726. package/dist/typescript/module/src/runtime/native/react/rules.d.ts.map +1 -0
  727. package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts +38 -0
  728. package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts.map +1 -0
  729. package/dist/typescript/module/src/runtime/native/react/usePassthrough.d.ts +4 -0
  730. package/dist/typescript/module/src/runtime/native/react/usePassthrough.d.ts.map +1 -0
  731. package/dist/typescript/module/src/runtime/native/reactivity.d.ts +55 -0
  732. package/dist/typescript/module/src/runtime/native/reactivity.d.ts.map +1 -0
  733. package/dist/typescript/module/src/runtime/native/reanimated.d.ts +5 -0
  734. package/dist/typescript/module/src/runtime/native/reanimated.d.ts.map +1 -0
  735. package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts +10 -0
  736. package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts.map +1 -0
  737. package/dist/typescript/module/src/runtime/native/styles/constants.d.ts +3 -0
  738. package/dist/typescript/module/src/runtime/native/styles/constants.d.ts.map +1 -0
  739. package/dist/typescript/module/src/runtime/native/styles/defaults.d.ts +3 -0
  740. package/dist/typescript/module/src/runtime/native/styles/defaults.d.ts.map +1 -0
  741. package/dist/typescript/module/src/runtime/native/styles/functions/animation-timing.d.ts +4 -0
  742. package/dist/typescript/module/src/runtime/native/styles/functions/animation-timing.d.ts.map +1 -0
  743. package/dist/typescript/module/src/runtime/native/styles/functions/calc.d.ts +3 -0
  744. package/dist/typescript/module/src/runtime/native/styles/functions/calc.d.ts.map +1 -0
  745. package/dist/typescript/module/src/runtime/native/styles/functions/filters.d.ts +12 -0
  746. package/dist/typescript/module/src/runtime/native/styles/functions/filters.d.ts.map +1 -0
  747. package/dist/typescript/module/src/runtime/native/styles/functions/index.d.ts +8 -0
  748. package/dist/typescript/module/src/runtime/native/styles/functions/index.d.ts.map +1 -0
  749. package/dist/typescript/module/src/runtime/native/styles/functions/numeric-functions.d.ts +5 -0
  750. package/dist/typescript/module/src/runtime/native/styles/functions/numeric-functions.d.ts.map +1 -0
  751. package/dist/typescript/module/src/runtime/native/styles/functions/platform-functions.d.ts +8 -0
  752. package/dist/typescript/module/src/runtime/native/styles/functions/platform-functions.d.ts.map +1 -0
  753. package/dist/typescript/module/src/runtime/native/styles/functions/string-functions.d.ts +3 -0
  754. package/dist/typescript/module/src/runtime/native/styles/functions/string-functions.d.ts.map +1 -0
  755. package/dist/typescript/module/src/runtime/native/styles/functions/transform-functions.d.ts +5 -0
  756. package/dist/typescript/module/src/runtime/native/styles/functions/transform-functions.d.ts.map +1 -0
  757. package/dist/typescript/module/src/runtime/native/styles/index.d.ts +19 -0
  758. package/dist/typescript/module/src/runtime/native/styles/index.d.ts.map +1 -0
  759. package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts +18 -0
  760. package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts.map +1 -0
  761. package/dist/typescript/module/src/runtime/native/styles/shorthands/_handler.d.ts +11 -0
  762. package/dist/typescript/module/src/runtime/native/styles/shorthands/_handler.d.ts.map +1 -0
  763. package/dist/typescript/module/src/runtime/native/styles/shorthands/animation.d.ts +4 -0
  764. package/dist/typescript/module/src/runtime/native/styles/shorthands/animation.d.ts.map +1 -0
  765. package/dist/typescript/module/src/runtime/native/styles/shorthands/border.d.ts +2 -0
  766. package/dist/typescript/module/src/runtime/native/styles/shorthands/border.d.ts.map +1 -0
  767. package/dist/typescript/module/src/runtime/native/styles/shorthands/box-shadow.d.ts +3 -0
  768. package/dist/typescript/module/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +1 -0
  769. package/dist/typescript/module/src/runtime/native/styles/shorthands/index.d.ts +6 -0
  770. package/dist/typescript/module/src/runtime/native/styles/shorthands/index.d.ts.map +1 -0
  771. package/dist/typescript/module/src/runtime/native/styles/shorthands/text-shadow.d.ts +2 -0
  772. package/dist/typescript/module/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +1 -0
  773. package/dist/typescript/module/src/runtime/native/styles/shorthands/transform.d.ts +7 -0
  774. package/dist/typescript/module/src/runtime/native/styles/shorthands/transform.d.ts.map +1 -0
  775. package/dist/typescript/module/src/runtime/native/styles/units.d.ts +6 -0
  776. package/dist/typescript/module/src/runtime/native/styles/units.d.ts.map +1 -0
  777. package/dist/typescript/module/src/runtime/native/styles/variables.d.ts +5 -0
  778. package/dist/typescript/module/src/runtime/native/styles/variables.d.ts.map +1 -0
  779. package/dist/typescript/module/src/runtime/runtime.d.ts +2 -0
  780. package/dist/typescript/module/src/runtime/runtime.d.ts.map +1 -0
  781. package/dist/typescript/module/src/runtime/runtime.native.d.ts +2 -0
  782. package/dist/typescript/module/src/runtime/runtime.native.d.ts.map +1 -0
  783. package/dist/typescript/module/src/runtime/runtime.types.d.ts +47 -0
  784. package/dist/typescript/module/src/runtime/runtime.types.d.ts.map +1 -0
  785. package/dist/typescript/module/src/runtime/utils/components.d.ts +2 -0
  786. package/dist/typescript/module/src/runtime/utils/components.d.ts.map +1 -0
  787. package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts +23 -0
  788. package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts.map +1 -0
  789. package/dist/typescript/module/src/runtime/utils/index.d.ts +6 -0
  790. package/dist/typescript/module/src/runtime/utils/index.d.ts.map +1 -0
  791. package/dist/typescript/module/src/runtime/utils/objects.d.ts +5 -0
  792. package/dist/typescript/module/src/runtime/utils/objects.d.ts.map +1 -0
  793. package/dist/typescript/module/src/runtime/utils/specificity.d.ts +13 -0
  794. package/dist/typescript/module/src/runtime/utils/specificity.d.ts.map +1 -0
  795. package/dist/typescript/module/src/runtime/utils/style-value.d.ts +4 -0
  796. package/dist/typescript/module/src/runtime/utils/style-value.d.ts.map +1 -0
  797. package/dist/typescript/module/src/runtime/utils/utils.types.d.ts +5 -0
  798. package/dist/typescript/module/src/runtime/utils/utils.types.d.ts.map +1 -0
  799. package/dist/typescript/module/src/runtime/web/api.d.ts +10 -0
  800. package/dist/typescript/module/src/runtime/web/api.d.ts.map +1 -0
  801. package/dist/typescript/module/src/runtime/web/assign-style.d.ts +2 -0
  802. package/dist/typescript/module/src/runtime/web/assign-style.d.ts.map +1 -0
  803. package/dist/typescript/module/src/runtime/web/index.d.ts +4 -0
  804. package/dist/typescript/module/src/runtime/web/index.d.ts.map +1 -0
  805. package/dist/typescript/module/src/runtime/web/metro.d.ts +2 -0
  806. package/dist/typescript/module/src/runtime/web/metro.d.ts.map +1 -0
  807. package/dist/typescript/module/src/style-collection/index.d.ts +14 -0
  808. package/dist/typescript/module/src/style-collection/index.d.ts.map +1 -0
  809. package/dist/typescript/module/src/style-collection/root.d.ts +11 -0
  810. package/dist/typescript/module/src/style-collection/root.d.ts.map +1 -0
  811. package/package.json +262 -47
  812. package/src/babel/allowedModules.ts +24 -0
  813. package/src/babel/helpers.ts +40 -0
  814. package/src/babel/import-plugin.ts +176 -0
  815. package/src/babel/index.ts +9 -0
  816. package/src/babel/react-native-web.ts +226 -0
  817. package/src/babel/react-native.ts +226 -0
  818. package/src/compiler/atRules.ts +158 -0
  819. package/src/compiler/compiler.ts +306 -0
  820. package/src/compiler/compiler.types.ts +266 -0
  821. package/src/compiler/container-query.ts +97 -0
  822. package/src/compiler/declarations.ts +3237 -0
  823. package/src/compiler/functions-web.ts +44 -0
  824. package/src/compiler/functions.ts +64 -0
  825. package/src/compiler/index.ts +7 -0
  826. package/src/compiler/inheritance.test.ts +121 -0
  827. package/src/compiler/keyframes.ts +86 -0
  828. package/src/compiler/media-query.ts +251 -0
  829. package/src/compiler/pseudo-elements.ts +54 -0
  830. package/src/compiler/selector-builder.ts +586 -0
  831. package/src/compiler/selectors.ts +505 -0
  832. package/src/compiler/split-by-delimiter.ts +19 -0
  833. package/src/compiler/stylesheet.ts +681 -0
  834. package/src/compiler/supports.ts +26 -0
  835. package/src/components/ActivityIndicator.tsx +27 -0
  836. package/src/components/Button.tsx +22 -0
  837. package/src/components/FlatList.tsx +21 -0
  838. package/src/components/Image.tsx +17 -0
  839. package/src/components/Switch.tsx +17 -0
  840. package/src/components/Text.tsx +17 -0
  841. package/src/components/TextInput.tsx +17 -0
  842. package/src/components/View.tsx +17 -0
  843. package/src/components/index.tsx +10 -0
  844. package/src/components/react-native-safe-area-context.native.tsx +40 -0
  845. package/src/components/react-native-safe-area-context.tsx +1 -0
  846. package/src/index.ts +3 -0
  847. package/src/jest/expect.d.ts +1 -0
  848. package/src/jest/index.ts +75 -0
  849. package/src/jest/setup.ts +1 -0
  850. package/src/jest/setupAfterEnv.ts +13 -0
  851. package/src/metro/index.ts +239 -0
  852. package/src/metro/injection-code.ts +34 -0
  853. package/src/metro/metro-transformer.ts +48 -0
  854. package/src/metro/picocolors.ts +77 -0
  855. package/src/metro/resolver.ts +97 -0
  856. package/src/metro/stringify.ts +59 -0
  857. package/src/metro/typescript.ts +73 -0
  858. package/src/poison.pill.ts +36 -0
  859. package/src/runtime/index.ts +7 -0
  860. package/src/runtime/native/api.ts +108 -0
  861. package/src/runtime/native/conditions/attributes.ts +52 -0
  862. package/src/runtime/native/conditions/container-query.ts +162 -0
  863. package/src/runtime/native/conditions/guards.ts +44 -0
  864. package/src/runtime/native/conditions/index.ts +54 -0
  865. package/src/runtime/native/conditions/media-query.ts +98 -0
  866. package/src/runtime/native/index.ts +4 -0
  867. package/src/runtime/native/metro.ts +2 -0
  868. package/src/runtime/native/react/interaction.ts +90 -0
  869. package/src/runtime/native/react/rules.ts +336 -0
  870. package/src/runtime/native/react/useNativeCss.ts +203 -0
  871. package/src/runtime/native/react/usePassthrough.ts +51 -0
  872. package/src/runtime/native/reactivity.ts +255 -0
  873. package/src/runtime/native/reanimated.ts +22 -0
  874. package/src/runtime/native/styles/calculate-props.ts +197 -0
  875. package/src/runtime/native/styles/constants.ts +2 -0
  876. package/src/runtime/native/styles/defaults.ts +79 -0
  877. package/src/runtime/native/styles/functions/animation-timing.ts +44 -0
  878. package/src/runtime/native/styles/functions/calc.ts +121 -0
  879. package/src/runtime/native/styles/functions/filters.ts +98 -0
  880. package/src/runtime/native/styles/functions/index.ts +7 -0
  881. package/src/runtime/native/styles/functions/numeric-functions.ts +38 -0
  882. package/src/runtime/native/styles/functions/platform-functions.ts +50 -0
  883. package/src/runtime/native/styles/functions/string-functions.ts +22 -0
  884. package/src/runtime/native/styles/functions/transform-functions.ts +84 -0
  885. package/src/runtime/native/styles/index.ts +197 -0
  886. package/src/runtime/native/styles/resolve.ts +162 -0
  887. package/src/runtime/native/styles/shorthands/_handler.ts +121 -0
  888. package/src/runtime/native/styles/shorthands/animation.ts +123 -0
  889. package/src/runtime/native/styles/shorthands/border.ts +10 -0
  890. package/src/runtime/native/styles/shorthands/box-shadow.ts +74 -0
  891. package/src/runtime/native/styles/shorthands/index.ts +5 -0
  892. package/src/runtime/native/styles/shorthands/text-shadow.ts +17 -0
  893. package/src/runtime/native/styles/shorthands/transform.ts +23 -0
  894. package/src/runtime/native/styles/units.ts +57 -0
  895. package/src/runtime/native/styles/variables.ts +88 -0
  896. package/src/runtime/runtime.native.ts +1 -0
  897. package/src/runtime/runtime.ts +1 -0
  898. package/src/runtime/runtime.types.ts +130 -0
  899. package/src/runtime/utils/components.ts +15 -0
  900. package/src/runtime/utils/dot-notation.types.ts +118 -0
  901. package/src/runtime/utils/index.ts +5 -0
  902. package/src/runtime/utils/objects.ts +109 -0
  903. package/src/runtime/utils/specificity.ts +45 -0
  904. package/src/runtime/utils/style-value.ts +24 -0
  905. package/src/runtime/utils/utils.types.ts +19 -0
  906. package/src/runtime/web/api.ts +88 -0
  907. package/src/runtime/web/assign-style.ts +26 -0
  908. package/src/runtime/web/index.ts +5 -0
  909. package/src/runtime/web/metro.ts +2 -0
  910. package/src/style-collection/index.ts +142 -0
  911. package/src/style-collection/root.ts +35 -0
  912. package/types.d.ts +70 -0
  913. package/.babelrc +0 -17
  914. package/.editorconfig +0 -17
  915. package/.eslintignore +0 -3
  916. package/.eslintrc +0 -39
  917. package/.npmignore +0 -7
  918. package/build/index.js +0 -299
  919. package/build/utils.js +0 -61
  920. package/circle.yml +0 -31
  921. package/jsconfig.json +0 -9
  922. package/login.sh +0 -11
  923. package/src/index.js +0 -184
  924. package/src/utils.js +0 -32
  925. package/test/rnc.test.js +0 -258
  926. package/yarn.lock +0 -3333
@@ -0,0 +1,159 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.mappingToConfig = mappingToConfig;
7
+ exports.useNativeCss = useNativeCss;
8
+ var _react = require("react");
9
+ var _reactNative = require("react-native");
10
+ var _guards = require("../conditions/guards.js");
11
+ var _reactivity = require("../reactivity.js");
12
+ var _reanimated = require("../reanimated.js");
13
+ var _index = require("../styles/index.js");
14
+ var _rules = require("./rules.js");
15
+ /* eslint-disable */
16
+
17
+ /**
18
+ * useNativeCss is the native implementation of the useCssElement hook.
19
+ */
20
+ function useNativeCss(type, originalProps, configs = [{
21
+ source: "className",
22
+ target: "style"
23
+ }]) {
24
+ const inheritedVariables = (0, _react.useContext)(_reactivity.VariableContext);
25
+ const inheritedContainers = (0, _react.useContext)(_reactivity.ContainerContext);
26
+ const [state, setState] = (0, _react.useState)(() => {
27
+ // Both effects share the same observers to improve memory usage
28
+ const observers = new Set();
29
+
30
+ /**
31
+ * When fired, this effect will force the rules to be re-evaluated.
32
+ * This will cause a re-render if there are different rules
33
+ *
34
+ * Use this when a rule condition changes, e.g FastRefresh or media queries
35
+ */
36
+ const ruleEffect = {
37
+ observers,
38
+ run: () => setState(state => (0, _rules.updateRules)(state))
39
+ };
40
+
41
+ /**
42
+ * When fired, this effect will force a re-render of the component.
43
+ * This will cause a re-fetch of the styles.
44
+ *
45
+ * Use this when a value changes, e.g vm units or light / dark mode
46
+ */
47
+ const styleEffect = {
48
+ observers,
49
+ run: () => setState(state => ({
50
+ ...state
51
+ }))
52
+ };
53
+ return (0, _rules.updateRules)({
54
+ ruleEffect,
55
+ ruleEffectGetter: observable => observable.get(ruleEffect),
56
+ styleEffect,
57
+ configs,
58
+ inheritedContainers,
59
+ inheritedVariables,
60
+ pressable: type === _reactNative.View ? false : undefined
61
+ }, originalProps, inheritedVariables, inheritedContainers, false, false);
62
+ });
63
+
64
+ // Both effects share the same observers, so we only need to cleanup one of them
65
+ (0, _react.useEffect)(() => () => (0, _reactivity.cleanupEffect)(state.ruleEffect), [state.ruleEffect]);
66
+
67
+ // Check if our derived state has changed (e.g the className prop)
68
+ if ((0, _guards.testGuards)(state, originalProps, inheritedVariables, inheritedContainers)) {
69
+ /**
70
+ * Get the new state
71
+ * Note, this might result in the same styles, but the guards will now be different
72
+ */
73
+ setState((0, _rules.updateRules)(state, originalProps, inheritedVariables, inheritedContainers, true));
74
+
75
+ // We can bail on rendering as the result of this render will be discarded
76
+ return /*#__PURE__*/(0, _react.createElement)(_react.Fragment);
77
+ }
78
+ let props = (0, _index.getStyledProps)(state, originalProps);
79
+ if (type === _reactNative.View && props?.onPress) {
80
+ type = _reactNative.Pressable;
81
+ }
82
+ if (state.animated) {
83
+ type = (0, _reanimated.animatedComponentFamily)(type);
84
+ }
85
+ if (state.variables) {
86
+ props = {
87
+ value: state.variables,
88
+ children: /*#__PURE__*/(0, _react.createElement)(type, props)
89
+ };
90
+ type = _reactivity.VariableContext.Provider;
91
+ }
92
+ if (state.containers) {
93
+ props = {
94
+ value: state.containers,
95
+ children: /*#__PURE__*/(0, _react.createElement)(type, props)
96
+ };
97
+ type = _reactivity.ContainerContext.Provider;
98
+ }
99
+ return /*#__PURE__*/(0, _react.createElement)(type, props);
100
+ }
101
+
102
+ /**
103
+ * Convert the styled() mapping to a config array
104
+ */
105
+ function mappingToConfig(mapping) {
106
+ return Object.entries(mapping).flatMap(([key, value]) => {
107
+ if (value === true) {
108
+ return {
109
+ source: key,
110
+ target: key
111
+ };
112
+ } else if (value === false) {
113
+ return {
114
+ source: key,
115
+ target: false
116
+ };
117
+ } else if (typeof value === "string") {
118
+ return {
119
+ source: key,
120
+ target: value.split(".")
121
+ };
122
+ } else if (typeof value === "object") {
123
+ if (Array.isArray(value)) {
124
+ return {
125
+ source: key,
126
+ target: value
127
+ };
128
+ }
129
+ if ("target" in value) {
130
+ if (value.target === false) {
131
+ return {
132
+ source: key,
133
+ target: false
134
+ };
135
+ } else if (typeof value.target === "string") {
136
+ const target = value.target.split(".");
137
+ if (target.length === 1) {
138
+ return {
139
+ source: key,
140
+ target: target[0]
141
+ };
142
+ } else {
143
+ return {
144
+ source: key,
145
+ target
146
+ };
147
+ }
148
+ } else if (Array.isArray(value.target)) {
149
+ return {
150
+ source: key,
151
+ target: value.target
152
+ };
153
+ }
154
+ }
155
+ }
156
+ throw new Error(`styled(): Invalid mapping for ${key}: ${value}`);
157
+ });
158
+ }
159
+ //# sourceMappingURL=useNativeCss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNative","_guards","_reactivity","_reanimated","_index","_rules","useNativeCss","type","originalProps","configs","source","target","inheritedVariables","useContext","VariableContext","inheritedContainers","ContainerContext","state","setState","useState","observers","Set","ruleEffect","run","updateRules","styleEffect","ruleEffectGetter","observable","get","pressable","View","undefined","useEffect","cleanupEffect","testGuards","createElement","Fragment","props","getStyledProps","onPress","Pressable","animated","animatedComponentFamily","variables","value","children","Provider","containers","mappingToConfig","mapping","Object","entries","flatMap","key","split","Array","isArray","length","Error"],"sourceRoot":"../../../../../src","sources":["runtime/native/react/useNativeCss.ts"],"mappings":";;;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAQA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AASA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AAxBA;;AA0DA;AACA;AACA;AACO,SAASO,YAAYA,CAC1BC,IAAwB,EACxBC,aAAqD,EACrDC,OAAiB,GAAG,CAAC;EAAEC,MAAM,EAAE,WAAW;EAAEC,MAAM,EAAE;AAAQ,CAAC,CAAC,EAC9D;EACA,MAAMC,kBAAkB,GAAG,IAAAC,iBAAU,EAACC,2BAAe,CAAC;EACtD,MAAMC,mBAAmB,GAAG,IAAAF,iBAAU,EAACG,4BAAgB,CAAC;EA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: true
5
+ });
6
+ exports.usePassthrough = usePassthrough;
7
+ var _react = require("react");
8
+ var _rules = require("./rules.js");
9
+ /* eslint-disable */
10
+
11
+ const cache = new Map();
12
+ function usePassthrough(type, {
13
+ ...props
14
+ }, configs) {
15
+ for (const config of configs) {
16
+ let {
17
+ source,
18
+ target
19
+ } = config;
20
+ const classNames = props[source];
21
+ let styles = cache.get(source);
22
+ if (styles === undefined) {
23
+ styles = {
24
+ [_rules.INLINE_RULE_SYMBOL]: classNames
25
+ };
26
+ }
27
+ delete props[source];
28
+ if (classNames === undefined || target === false) {
29
+ continue;
30
+ }
31
+ let targetProps = props;
32
+ if (Array.isArray(target)) {
33
+ for (let i = 0; i < target.length - 1; i++) {
34
+ const prop = target[i];
35
+ props[prop] ??= {};
36
+ targetProps = props[prop];
37
+ }
38
+ target = target[target.length - 1];
39
+ }
40
+ if (Array.isArray(targetProps[target])) {
41
+ targetProps[target] = [...targetProps[target], styles];
42
+ } else if (targetProps[target]) {
43
+ targetProps[target] = [targetProps[target], styles];
44
+ } else {
45
+ targetProps[target] = styles;
46
+ }
47
+ }
48
+ return /*#__PURE__*/(0, _react.createElement)(type, props);
49
+ }
50
+ //# sourceMappingURL=usePassthrough.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_rules","cache","Map","usePassthrough","type","props","configs","config","source","target","classNames","styles","get","undefined","INLINE_RULE_SYMBOL","targetProps","Array","isArray","i","length","prop","createElement"],"sourceRoot":"../../../../../src","sources":["runtime/native/react/usePassthrough.ts"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAHA;;AAMA,MAAME,KAAK,GAAG,IAAIC,GAAG,CAA8B,CAAC;AAE7C,SAASC,cAAcA,CAC5BC,IAAwB,EACxB;EAAE,GAAGC;AAA2B,CAAC,EACjCC,OAAiB,EACjB;EACA,KAAK,MAAMC,MAAM,IAAID,OAAO,EAAE;IAC5B,IAAI;MAAEE,MA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AAK,CAAC;AACnC","ignoreList":[]}
@@ -0,0 +1,189 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.activeFamily = exports.VariableContext = exports.VAR_SYMBOL = exports.ContainerContext = void 0;
7
+ exports.cleanupEffect = cleanupEffect;
8
+ exports.dimensions = exports.containerWidthFamily = exports.containerLayoutFamily = exports.containerHeightFamily = exports.colorScheme = void 0;
9
+ exports.family = family;
10
+ exports.hoverFamily = exports.focusFamily = void 0;
11
+ exports.observable = observable;
12
+ exports.vw = exports.vh = exports.rem = exports.observableBatch = void 0;
13
+ exports.weakFamily = weakFamily;
14
+ var _react = require("react");
15
+ var _reactNative = require("react-native");
16
+ /* eslint-disable */
17
+
18
+ const observableBatch = exports.observableBatch = {};
19
+ function observable(init, equality = Object.is) {
20
+ let value;
21
+ let isStatic = typeof init !== "function";
22
+ let didInit;
23
+ let lastArg;
24
+ if (typeof init !== "function") {
25
+ value = init;
26
+ didInit = true;
27
+ }
28
+ const observers = new Set();
29
+ const effect = {
30
+ observers,
31
+ run: () => {
32
+ if (!isStatic) {
33
+ const nextValue = init(getter, lastArg);
34
+ if (equality(value, nextValue)) {
35
+ return;
36
+ }
37
+ value = nextValue;
38
+ }
39
+ notify();
40
+ }
41
+ };
42
+ const getter = observable => observable.get(effect);
43
+ function get(effect) {
44
+ if (effect) {
45
+ observers.add(effect);
46
+ }
47
+ if (!didInit) {
48
+ value = init(getter, undefined);
49
+ }
50
+ return value;
51
+ }
52
+ function set(arg) {
53
+ if (isStatic) {
54
+ if (equality(value, arg)) {
55
+ return;
56
+ }
57
+ value = arg;
58
+ } else {
59
+ const nextValue = init(getter, arg);
60
+ didInit = true;
61
+ lastArg = arg;
62
+ if (equality(value, nextValue)) {
63
+ return;
64
+ }
65
+ value = nextValue;
66
+ }
67
+ notify();
68
+ return obs;
69
+ }
70
+ function notify() {
71
+ Array.from(observers).forEach(observer => {
72
+ if (observableBatch.current) {
73
+ observableBatch.current.add(observer);
74
+ } else {
75
+ observer.run();
76
+ }
77
+ });
78
+ }
79
+ const obs = {
80
+ observers,
81
+ get,
82
+ set,
83
+ run: effect.run
84
+ };
85
+ return obs;
86
+ }
87
+ function cleanupEffect(effect) {
88
+ if (!effect) return;
89
+ for (const dep of effect.observers) {
90
+ dep.observers.delete(effect);
91
+ }
92
+ effect.observers.clear();
93
+ }
94
+
95
+ /** Family Helpers ************************************************************/
96
+
97
+ function family(fn) {
98
+ const map = new Map();
99
+ return Object.assign((key, args) => {
100
+ let value = map.get(key);
101
+ if (!value) {
102
+ value = fn(key, args);
103
+ map.set(key, value);
104
+ }
105
+ return value;
106
+ }, {
107
+ delete(key) {
108
+ return map.delete(key);
109
+ },
110
+ clear() {
111
+ return map.clear();
112
+ }
113
+ });
114
+ }
115
+ function weakFamily(fn) {
116
+ const map = new WeakMap();
117
+ return Object.assign((key, args) => {
118
+ let value = map.get(key);
119
+ if (!value) {
120
+ value = fn(key, args);
121
+ map.set(key, value);
122
+ }
123
+ return value;
124
+ }, {
125
+ has: key => map.has(key)
126
+ });
127
+ }
128
+
129
+ /********************************* Variables **********************************/
130
+
131
+ const VAR_SYMBOL = exports.VAR_SYMBOL = Symbol("react-native-css.var");
132
+ const VariableContext = exports.VariableContext = /*#__PURE__*/(0, _react.createContext)({
133
+ [VAR_SYMBOL]: true
134
+ });
135
+
136
+ /** Units *********************************************************************/
137
+
138
+ const rem = exports.rem = observable(14);
139
+
140
+ /** Pseudo Classes ************************************************************/
141
+
142
+ const hoverFamily = exports.hoverFamily = weakFamily(() => observable(false));
143
+ const activeFamily = exports.activeFamily = weakFamily(() => observable(false));
144
+ const focusFamily = exports.focusFamily = weakFamily(() => observable(false));
145
+
146
+ /** Dimensions ****************************************************************/
147
+
148
+ const dimensions = exports.dimensions = observable(_reactNative.Dimensions.get("window"));
149
+ const vw = exports.vw = observable((read, value) => value ?? read(dimensions)?.width);
150
+ const vh = exports.vh = observable((read, value) => value ?? read(dimensions)?.height);
151
+ _reactNative.Dimensions.addEventListener("change", ({
152
+ window
153
+ }) => {
154
+ observableBatch.current = new Set();
155
+ vw.set(window.width);
156
+ vh.set(window.height);
157
+ for (const effect of observableBatch.current) {
158
+ effect.run();
159
+ }
160
+ observableBatch.current = undefined;
161
+ });
162
+
163
+ /** Color Scheme **************************************************************/
164
+
165
+ const colorScheme = exports.colorScheme = observable(_reactNative.Appearance.getColorScheme());
166
+ _reactNative.Appearance.addChangeListener(event => colorScheme.set(event.colorScheme));
167
+
168
+ /** Containers ****************************************************************/
169
+
170
+ const ContainerContext = exports.ContainerContext = /*#__PURE__*/(0, _react.createContext)({});
171
+ const containerLayoutFamily = exports.containerLayoutFamily = weakFamily(() => {
172
+ return observable({
173
+ x: 0,
174
+ y: 0,
175
+ width: 0,
176
+ height: 0
177
+ });
178
+ });
179
+ const containerWidthFamily = exports.containerWidthFamily = weakFamily(key => {
180
+ return observable(read => {
181
+ return read(containerLayoutFamily(key))?.width || 0;
182
+ });
183
+ });
184
+ const containerHeightFamily = exports.containerHeightFamily = weakFamily(key => {
185
+ return observable(read => {
186
+ return read(containerLayoutFamily(key))?.width || 0;
187
+ });
188
+ });
189
+ //# sourceMappingURL=reactivity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNative","observableBatch","exports","observable","init","equality","Object","is","value","isStatic","didInit","lastArg","observers","Set","effect","run","nextValue","getter","notify","get","add","undefined","set","arg","obs","Array","from","forEach","observer","current","cleanupEffect","dep","delete","clear","family","fn","map","Map","assign","key","args","weakFamily","WeakMap","has","VAR_SYMBOL","Symbol","VariableContext","createContext","rem","hoverFamily","activeFamily","focusFamily","dimensions","Dimensions","vw","read","width","vh","height","addEventListener","window","colorScheme","Appearance","getColorScheme","addChangeListener","event","ContainerContext","containerLayoutFamily","x","y","containerWidthFamily","containerHeightFamily"],"sourceRoot":"../../../../src","sources":["runtime/native/reactivity.ts"],"mappings":";;;;;;;;;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA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c,CAAC,CAC5B,CAAC;AACDD,uBAAU,CAACE,iBAAiB,CAAEC,KAAK,IAAKJ,WAAW,CAACvC,GAAG,CAAC2C,KAAK,CAACJ,WAAW,CAAC,CAAC;;AAE3E;;AAGO,MAAMK,gBAAgB,GAAAhE,OAAA,CAAAgE,gBAAA,gBAAG,IAAAnB,oBAAa,EAAwB,CAAC,CAAC,CAAC;AAEjE,MAAMoB,qBAAqB,GAAAjE,OAAA,CAAAiE,qBAAA,GAAG1B,UAAU,CAAC,MAAM;EACpD,OAAOtC,UAAU,CAAkB;IACjCiE,CAAC,EAAE,CAAC;IACJC,CAAC,EAAE,CAAC;IACJb,KAAK,EAAE,CAAC;IACRE,MAAM,EAAE;EACV,CAAC,CAAC;AACJ,CAAC,CAAC;AAEK,MAAMY,oBAAoB,GAAApE,OAAA,CAAAoE,oBAAA,GAAG7B,UAAU,CAAEF,GAAG,IAAK;EACtD,OAAOpC,UAAU,CAAEoD,IAAI,IAAK;IAC1B,OAAOA,IAAI,CAACY,qBAAqB,CAAC5B,GAAG,CAAC,CAAC,EAAEiB,KAAK,IAAI,CAAC;EACrD,CAAC,CAAC;AACJ,CAAC,CAAC;AAEK,MAAMe,qBAAqB,GAAArE,OAAA,CAAAqE,qBAAA,GAAG9B,UAAU,CAAEF,GAAG,IAAK;EACvD,OAAOpC,UAAU,CAAEoD,IAAI,IAAK;IAC1B,OAAOA,IAAI,CAACY,qBAAqB,CAAC5B,GAAG,CAAC,CAAC,EAAEiB,KAAK,IAAI,CAAC;EACrD,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.animatedComponentFamily = void 0;
7
+ var _reactivity = require("./reactivity.js");
8
+ const animatedComponentFamily = exports.animatedComponentFamily = (0, _reactivity.weakFamily)(component => {
9
+ if ("displayName" in component && component.displayName?.startsWith("Animated.")) {
10
+ return component;
11
+ }
12
+ const createAnimatedComponent =
13
+ // eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-unsafe-member-access
14
+ require("react-native-reanimated").createAnimatedComponent;
15
+ return createAnimatedComponent(component);
16
+ });
17
+ //# sourceMappingURL=reanimated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactivity","require","animatedComponentFamily","exports","weakFamily","component","displayName","startsWith","createAnimatedComponent"],"sourceRoot":"../../../../src","sources":["runtime/native/reanimated.ts"],"mappings":";;;;;;AAEA,IAAAA,WAAA,GAAAC,OAAA;AAEO,MAAMC,uBAAuB,GAAAC,OAAA,CAAAD,uBAAA,GAAG,IAAAE,sBAAU,EAC9CC,SAAwB,IAAK;EAC5B,IACE,aAAa,IAAIA,SAAS,IAC1BA,SAAS,CAACC,WAAW,EAAEC,UAAU,CAAC,WAAW,CAAC,EAC9C;IACA,OAAOF,SAAS;EAClB;EAEA,MAAMG,uBAAuB;EAC3B;EACAP,OAAO,CAAC,yBAAyB,CAAC,CAACO,uBAEjB;EAEpB,OAAOA,uBAAuB,CAACH,SAAS,CAAC;AAC3C,CACF,CAAC","ignoreList":[]}
@@ -0,0 +1,148 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.applyDeclarations = applyDeclarations;
7
+ exports.calculateProps = calculateProps;
8
+ var _index = require("../../utils/index.js");
9
+ var _reactivity = require("../reactivity.js");
10
+ var _defaults = require("./defaults.js");
11
+ var _resolve = require("./resolve.js");
12
+ /* eslint-disable */
13
+
14
+ function calculateProps(get, rules, guards = [], inheritedVariables = {
15
+ [_reactivity.VAR_SYMBOL]: true
16
+ }, inlineVariables = {
17
+ [_reactivity.VAR_SYMBOL]: "inline"
18
+ }) {
19
+ let normal;
20
+ let important;
21
+ const delayedStyles = [];
22
+ const transformStyles = [];
23
+ for (const rule of rules) {
24
+ if (_reactivity.VAR_SYMBOL in rule) {
25
+ if (typeof rule[_reactivity.VAR_SYMBOL] === "string") {
26
+ Object.assign(inlineVariables, rule);
27
+ } else {
28
+ Object.assign(inheritedVariables, rule);
29
+ }
30
+ continue;
31
+ }
32
+ if (rule.v) {
33
+ for (const variable of rule.v) {
34
+ inlineVariables[variable[0]] = variable[1];
35
+ }
36
+ }
37
+ if (rule.d) {
38
+ let topLevelTarget = rule.s?.[_index.Specificity.Important] ? important ??= {} : normal ??= {};
39
+ let target = topLevelTarget;
40
+ const ruleTarget = rule.target || "style";
41
+ if (typeof ruleTarget === "string") {
42
+ target = target[ruleTarget] ??= {};
43
+ } else if (ruleTarget) {
44
+ for (const path of ruleTarget) {
45
+ target = target[path] ??= {};
46
+ }
47
+ }
48
+ applyDeclarations(get, rule.d, inlineVariables, inheritedVariables, delayedStyles, transformStyles, guards, target, topLevelTarget);
49
+ }
50
+ }
51
+ for (const delayedStyle of delayedStyles) {
52
+ delayedStyle();
53
+ }
54
+ for (const transformStyle of transformStyles) {
55
+ transformStyle();
56
+ }
57
+ return {
58
+ normal,
59
+ guards,
60
+ important
61
+ };
62
+ }
63
+ function applyDeclarations(get, declarations, inlineVariables, inheritedVariables, delayedStyles = [], transformStyles = [], guards = [], target = {}, topLevelTarget = target) {
64
+ for (const declaration of declarations) {
65
+ if (!Array.isArray(declaration)) {
66
+ // Static styles
67
+ Object.assign(target, declaration);
68
+ } else {
69
+ // Dynamic styles
70
+ let value = declaration[0];
71
+ let propPath = declaration[1];
72
+ let prop;
73
+ if (Array.isArray(propPath)) {
74
+ const [first, ...rest] = propPath;
75
+ if (!first) {
76
+ continue;
77
+ }
78
+ const final = rest.pop();
79
+ if (final) {
80
+ if (first !== "*") {
81
+ topLevelTarget[first] ??= {};
82
+ target = topLevelTarget[first];
83
+ }
84
+ for (prop of rest) {
85
+ target[prop] ??= {};
86
+ target = target[prop];
87
+ }
88
+ prop = final;
89
+ } else {
90
+ target = topLevelTarget;
91
+ prop = first;
92
+ }
93
+ } else {
94
+ prop = propPath;
95
+ }
96
+ const shouldDelay = declaration[2];
97
+ if (shouldDelay || _defaults.transformKeys.has(prop)) {
98
+ /**
99
+ * We need to delay the resolution of this value until after all
100
+ * styles have been calculated. But another style might override
101
+ * this value. So we set a placeholder value and only override
102
+ * if the placeholder is preserved
103
+ *
104
+ * This also ensures the props exist, so setValue will properly
105
+ * mutate the props object and not create a new one
106
+ */
107
+ const originalValue = value;
108
+ // This needs to be a object with the [prop] so we can discover in transform arrays
109
+ value = {
110
+ [prop]: true
111
+ };
112
+ if (_defaults.transformKeys.has(prop)) {
113
+ transformStyles.push(() => {
114
+ value = (0, _resolve.resolveValue)(originalValue, get, {
115
+ inlineVariables,
116
+ inheritedVariables,
117
+ renderGuards: guards,
118
+ calculateProps
119
+ });
120
+ (0, _index.applyValue)(target, prop, value);
121
+ });
122
+ } else {
123
+ delayedStyles.push(() => {
124
+ if ((0, _index.getDeepPath)(target, prop) === value) {
125
+ delete target[prop];
126
+ value = (0, _resolve.resolveValue)(originalValue, get, {
127
+ inlineVariables,
128
+ inheritedVariables,
129
+ renderGuards: guards,
130
+ calculateProps
131
+ });
132
+ (0, _index.applyValue)(target, prop, value);
133
+ }
134
+ });
135
+ }
136
+ } else {
137
+ value = (0, _resolve.resolveValue)(value, get, {
138
+ inlineVariables,
139
+ inheritedVariables,
140
+ renderGuards: guards,
141
+ calculateProps
142
+ });
143
+ }
144
+ (0, _index.applyValue)(target, prop, value);
145
+ }
146
+ }
147
+ }
148
+ //# sourceMappingURL=calculate-props.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_index","require","_reactivity","_defaults","_resolve","calculateProps","get","rules","guards","inheritedVariables","VAR_SYMBOL","inlineVariables","normal","important","delayedStyles","transformStyles","rule","Object","assign","v","variable","d","topLevelTarget","s","S","Important","target","ruleTarget","path","applyDeclarations","delayedStyle","transformStyle","declarations","declaration","Array","isArray","value","propPath","prop","first","rest","final","pop","shouldDelay","transformKeys","has","originalValue","push","resolveValue","renderGuards","applyValue","getDeepPath"],"sourceRoot":"../../../../../src","sources":["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CAAC,MAAM;UACLtB,aAAa,CAACiC,IAAI,CAAC,MAAM;YACvB,IAAI,IAAAI,kBAAW,EAACzB,MAAM,EAAEY,IAAI,CAAC,KAAKF,KAAK,EAAE;cACvC,OAAOV,MAAM,CAACY,IAAI,CAAC;cACnBF,KAAK,GAAG,IAAAY,qBAAY,EAACF,aAAa,EAAExC,GAAG,EAAE;gBACvCK,eAAe;gBACfF,kBAAkB;gBAClBwC,YAAY,EAAEzC,MAAM;gBACpBH;cACF,CAAC,CAAC;cACF,IAAA6C,iBAAU,EAACxB,MAAM,EAAEY,IAAI,EAAEF,KAAK,CAAC;YACjC;UACF,CAAC,CAAC;QACJ;MACF,CAAC,MAAM;QACLA,KAAK,GAAG,IAAAY,qBAAY,EAACZ,KAAK,EAAE9B,GAAG,EAAE;UAC/BK,eAAe;UACfF,kBAAkB;UAClBwC,YAAY,EAAEzC,MAAM;UACpBH;QACF,CAAC,CAAC;MACJ;MAEA,IAAA6C,iBAAU,EAACxB,MAAM,EAAEY,IAAI,EAAEF,KAAK,CAAC;IACjC;EACF;AACF","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.emVariableName = exports.ShortHandSymbol = void 0;
7
+ const emVariableName = exports.emVariableName = "__rn-css-em";
8
+ const ShortHandSymbol = exports.ShortHandSymbol = Symbol();
9
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["emVariableName","exports","ShortHandSymbol","Symbol"],"sourceRoot":"../../../../../src","sources":["runtime/native/styles/constants.ts"],"mappings":";;;;;;AAAO,MAAMA,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,aAAa;AACpC,MAAME,eAAe,GAAAD,OAAA,CAAAC,eAAA,GAAGC,MAAM,CAAC,CAAC","ignoreList":[]}