react-native-css 2.1.1 → 3.0.0-nightly.19372e8

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 (899) 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 +2166 -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/doctor/index.js +6 -0
  68. package/dist/commonjs/doctor/index.js.map +1 -0
  69. package/dist/commonjs/index.js +28 -0
  70. package/dist/commonjs/index.js.map +1 -0
  71. package/dist/commonjs/jest/expect.d.js +2 -0
  72. package/dist/commonjs/jest/expect.d.js.map +1 -0
  73. package/dist/commonjs/jest/index.js +56 -0
  74. package/dist/commonjs/jest/index.js.map +1 -0
  75. package/dist/commonjs/jest/setup.js +3 -0
  76. package/dist/commonjs/jest/setup.js.map +1 -0
  77. package/dist/commonjs/jest/setupAfterEnv.js +15 -0
  78. package/dist/commonjs/jest/setupAfterEnv.js.map +1 -0
  79. package/dist/commonjs/metro/index.js +167 -0
  80. package/dist/commonjs/metro/index.js.map +1 -0
  81. package/dist/commonjs/metro/injection-code.js +32 -0
  82. package/dist/commonjs/metro/injection-code.js.map +1 -0
  83. package/dist/commonjs/metro/metro-transformer.js +21 -0
  84. package/dist/commonjs/metro/metro-transformer.js.map +1 -0
  85. package/dist/commonjs/metro/picocolors.js +71 -0
  86. package/dist/commonjs/metro/picocolors.js.map +1 -0
  87. package/dist/commonjs/metro/resolver.js +62 -0
  88. package/dist/commonjs/metro/resolver.js.map +1 -0
  89. package/dist/commonjs/metro/stringify.js +59 -0
  90. package/dist/commonjs/metro/stringify.js.map +1 -0
  91. package/dist/commonjs/metro/typescript.js +47 -0
  92. package/dist/commonjs/metro/typescript.js.map +1 -0
  93. package/dist/commonjs/package.json +1 -0
  94. package/dist/commonjs/poison.pill.js +39 -0
  95. package/dist/commonjs/poison.pill.js.map +1 -0
  96. package/dist/commonjs/runtime/index.js +17 -0
  97. package/dist/commonjs/runtime/index.js.map +1 -0
  98. package/dist/commonjs/runtime/native/api.js +90 -0
  99. package/dist/commonjs/runtime/native/api.js.map +1 -0
  100. package/dist/commonjs/runtime/native/conditions/attributes.js +42 -0
  101. package/dist/commonjs/runtime/native/conditions/attributes.js.map +1 -0
  102. package/dist/commonjs/runtime/native/conditions/container-query.js +123 -0
  103. package/dist/commonjs/runtime/native/conditions/container-query.js.map +1 -0
  104. package/dist/commonjs/runtime/native/conditions/guards.js +33 -0
  105. package/dist/commonjs/runtime/native/conditions/guards.js.map +1 -0
  106. package/dist/commonjs/runtime/native/conditions/index.js +40 -0
  107. package/dist/commonjs/runtime/native/conditions/index.js.map +1 -0
  108. package/dist/commonjs/runtime/native/conditions/media-query.js +98 -0
  109. package/dist/commonjs/runtime/native/conditions/media-query.js.map +1 -0
  110. package/dist/commonjs/runtime/native/index.js +28 -0
  111. package/dist/commonjs/runtime/native/index.js.map +1 -0
  112. package/dist/commonjs/runtime/native/injection.js +100 -0
  113. package/dist/commonjs/runtime/native/injection.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 +255 -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 +178 -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/root.js +28 -0
  129. package/dist/commonjs/runtime/native/root.js.map +1 -0
  130. package/dist/commonjs/runtime/native/styles/calculate-props.js +148 -0
  131. package/dist/commonjs/runtime/native/styles/calculate-props.js.map +1 -0
  132. package/dist/commonjs/runtime/native/styles/constants.js +9 -0
  133. package/dist/commonjs/runtime/native/styles/constants.js.map +1 -0
  134. package/dist/commonjs/runtime/native/styles/defaults.js +69 -0
  135. package/dist/commonjs/runtime/native/styles/defaults.js.map +1 -0
  136. package/dist/commonjs/runtime/native/styles/functions/animation-timing.js +34 -0
  137. package/dist/commonjs/runtime/native/styles/functions/animation-timing.js.map +1 -0
  138. package/dist/commonjs/runtime/native/styles/functions/calc.js +125 -0
  139. package/dist/commonjs/runtime/native/styles/functions/calc.js.map +1 -0
  140. package/dist/commonjs/runtime/native/styles/functions/filters.js +84 -0
  141. package/dist/commonjs/runtime/native/styles/functions/filters.js.map +1 -0
  142. package/dist/commonjs/runtime/native/styles/functions/index.js +61 -0
  143. package/dist/commonjs/runtime/native/styles/functions/index.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/transform-functions.js +121 -0
  147. package/dist/commonjs/runtime/native/styles/functions/transform-functions.js.map +1 -0
  148. package/dist/commonjs/runtime/native/styles/index.js +115 -0
  149. package/dist/commonjs/runtime/native/styles/index.js.map +1 -0
  150. package/dist/commonjs/runtime/native/styles/resolve.js +106 -0
  151. package/dist/commonjs/runtime/native/styles/resolve.js.map +1 -0
  152. package/dist/commonjs/runtime/native/styles/shorthands/_handler.js +79 -0
  153. package/dist/commonjs/runtime/native/styles/shorthands/_handler.js.map +1 -0
  154. package/dist/commonjs/runtime/native/styles/shorthands/animation.js +57 -0
  155. package/dist/commonjs/runtime/native/styles/shorthands/animation.js.map +1 -0
  156. package/dist/commonjs/runtime/native/styles/shorthands/border.js +12 -0
  157. package/dist/commonjs/runtime/native/styles/shorthands/border.js.map +1 -0
  158. package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js +40 -0
  159. package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js.map +1 -0
  160. package/dist/commonjs/runtime/native/styles/shorthands/index.js +61 -0
  161. package/dist/commonjs/runtime/native/styles/shorthands/index.js.map +1 -0
  162. package/dist/commonjs/runtime/native/styles/shorthands/text-shadow.js +13 -0
  163. package/dist/commonjs/runtime/native/styles/shorthands/text-shadow.js.map +1 -0
  164. package/dist/commonjs/runtime/native/styles/shorthands/transform.js +23 -0
  165. package/dist/commonjs/runtime/native/styles/shorthands/transform.js.map +1 -0
  166. package/dist/commonjs/runtime/native/styles/units.js +52 -0
  167. package/dist/commonjs/runtime/native/styles/units.js.map +1 -0
  168. package/dist/commonjs/runtime/native/styles/variables.js +79 -0
  169. package/dist/commonjs/runtime/native/styles/variables.js.map +1 -0
  170. package/dist/commonjs/runtime/runtime.js +17 -0
  171. package/dist/commonjs/runtime/runtime.js.map +1 -0
  172. package/dist/commonjs/runtime/runtime.native.js +17 -0
  173. package/dist/commonjs/runtime/runtime.native.js.map +1 -0
  174. package/dist/commonjs/runtime/runtime.types.js +6 -0
  175. package/dist/commonjs/runtime/runtime.types.js.map +1 -0
  176. package/dist/commonjs/runtime/utils/components.js +18 -0
  177. package/dist/commonjs/runtime/utils/components.js.map +1 -0
  178. package/dist/commonjs/runtime/utils/dot-notation.types.js +2 -0
  179. package/dist/commonjs/runtime/utils/dot-notation.types.js.map +1 -0
  180. package/dist/commonjs/runtime/utils/index.js +61 -0
  181. package/dist/commonjs/runtime/utils/index.js.map +1 -0
  182. package/dist/commonjs/runtime/utils/objects.js +92 -0
  183. package/dist/commonjs/runtime/utils/objects.js.map +1 -0
  184. package/dist/commonjs/runtime/utils/specificity.js +44 -0
  185. package/dist/commonjs/runtime/utils/specificity.js.map +1 -0
  186. package/dist/commonjs/runtime/utils/style-value.js +21 -0
  187. package/dist/commonjs/runtime/utils/style-value.js.map +1 -0
  188. package/dist/commonjs/runtime/utils/utils.types.js +6 -0
  189. package/dist/commonjs/runtime/utils/utils.types.js.map +1 -0
  190. package/dist/commonjs/runtime/web/api.js +68 -0
  191. package/dist/commonjs/runtime/web/api.js.map +1 -0
  192. package/dist/commonjs/runtime/web/assign-style.js +27 -0
  193. package/dist/commonjs/runtime/web/assign-style.js.map +1 -0
  194. package/dist/commonjs/runtime/web/index.js +18 -0
  195. package/dist/commonjs/runtime/web/index.js.map +1 -0
  196. package/dist/commonjs/runtime/web/metro.js +6 -0
  197. package/dist/commonjs/runtime/web/metro.js.map +1 -0
  198. package/dist/module/babel/allowedModules.js +19 -0
  199. package/dist/module/babel/allowedModules.js.map +1 -0
  200. package/dist/module/babel/helpers.js +21 -0
  201. package/dist/module/babel/helpers.js.map +1 -0
  202. package/dist/module/babel/import-plugin.js +97 -0
  203. package/dist/module/babel/import-plugin.js.map +1 -0
  204. package/dist/module/babel/index.js +9 -0
  205. package/dist/module/babel/index.js.map +1 -0
  206. package/dist/module/babel/react-native-web.js +112 -0
  207. package/dist/module/babel/react-native-web.js.map +1 -0
  208. package/dist/module/babel/react-native.js +112 -0
  209. package/dist/module/babel/react-native.js.map +1 -0
  210. package/dist/module/compiler/atRules.js +110 -0
  211. package/dist/module/compiler/atRules.js.map +1 -0
  212. package/dist/module/compiler/compiler.js +276 -0
  213. package/dist/module/compiler/compiler.js.map +1 -0
  214. package/dist/module/compiler/compiler.types.js +60 -0
  215. package/dist/module/compiler/compiler.types.js.map +1 -0
  216. package/dist/module/compiler/container-query.js +59 -0
  217. package/dist/module/compiler/container-query.js.map +1 -0
  218. package/dist/module/compiler/declarations.js +2091 -0
  219. package/dist/module/compiler/declarations.js.map +1 -0
  220. package/dist/module/compiler/functions-web.js +32 -0
  221. package/dist/module/compiler/functions-web.js.map +1 -0
  222. package/dist/module/compiler/functions.js +47 -0
  223. package/dist/module/compiler/functions.js.map +1 -0
  224. package/dist/module/compiler/index.js +9 -0
  225. package/dist/module/compiler/index.js.map +1 -0
  226. package/dist/module/compiler/inheritance.test.js +78 -0
  227. package/dist/module/compiler/inheritance.test.js.map +1 -0
  228. package/dist/module/compiler/keyframes.js +54 -0
  229. package/dist/module/compiler/keyframes.js.map +1 -0
  230. package/dist/module/compiler/media-query.js +166 -0
  231. package/dist/module/compiler/media-query.js.map +1 -0
  232. package/dist/module/compiler/pseudo-elements.js +44 -0
  233. package/dist/module/compiler/pseudo-elements.js.map +1 -0
  234. package/dist/module/compiler/selector-builder.js +496 -0
  235. package/dist/module/compiler/selector-builder.js.map +1 -0
  236. package/dist/module/compiler/selectors.js +409 -0
  237. package/dist/module/compiler/selectors.js.map +1 -0
  238. package/dist/module/compiler/split-by-delimiter.js +17 -0
  239. package/dist/module/compiler/split-by-delimiter.js.map +1 -0
  240. package/dist/module/compiler/stylesheet.js +471 -0
  241. package/dist/module/compiler/stylesheet.js.map +1 -0
  242. package/dist/module/compiler/supports.js +23 -0
  243. package/dist/module/compiler/supports.js.map +1 -0
  244. package/dist/module/components/ActivityIndicator.js +17 -0
  245. package/dist/module/components/ActivityIndicator.js.map +1 -0
  246. package/dist/module/components/Button.js +17 -0
  247. package/dist/module/components/Button.js.map +1 -0
  248. package/dist/module/components/FlatList.js +14 -0
  249. package/dist/module/components/FlatList.js.map +1 -0
  250. package/dist/module/components/Image.js +12 -0
  251. package/dist/module/components/Image.js.map +1 -0
  252. package/dist/module/components/Switch.js +12 -0
  253. package/dist/module/components/Switch.js.map +1 -0
  254. package/dist/module/components/Text.js +12 -0
  255. package/dist/module/components/Text.js.map +1 -0
  256. package/dist/module/components/TextInput.js +12 -0
  257. package/dist/module/components/TextInput.js.map +1 -0
  258. package/dist/module/components/View.js +12 -0
  259. package/dist/module/components/View.js.map +1 -0
  260. package/dist/module/components/index.js +12 -0
  261. package/dist/module/components/index.js.map +1 -0
  262. package/dist/module/doctor/index.js +4 -0
  263. package/dist/module/doctor/index.js.map +1 -0
  264. package/dist/module/index.js +5 -0
  265. package/dist/module/index.js.map +1 -0
  266. package/dist/module/jest/expect.d.js +2 -0
  267. package/dist/module/jest/expect.d.js.map +1 -0
  268. package/dist/module/jest/index.js +50 -0
  269. package/dist/module/jest/index.js.map +1 -0
  270. package/dist/module/jest/setup.js +3 -0
  271. package/dist/module/jest/setup.js.map +1 -0
  272. package/dist/module/jest/setupAfterEnv.js +15 -0
  273. package/dist/module/jest/setupAfterEnv.js.map +1 -0
  274. package/dist/module/metro/index.js +161 -0
  275. package/dist/module/metro/index.js.map +1 -0
  276. package/dist/module/metro/injection-code.js +27 -0
  277. package/dist/module/metro/injection-code.js.map +1 -0
  278. package/dist/module/metro/metro-transformer.js +17 -0
  279. package/dist/module/metro/metro-transformer.js.map +1 -0
  280. package/dist/module/metro/picocolors.js +67 -0
  281. package/dist/module/metro/picocolors.js.map +1 -0
  282. package/dist/module/metro/resolver.js +57 -0
  283. package/dist/module/metro/resolver.js.map +1 -0
  284. package/dist/module/metro/stringify.js +55 -0
  285. package/dist/module/metro/stringify.js.map +1 -0
  286. package/dist/module/metro/typescript.js +42 -0
  287. package/dist/module/metro/typescript.js.map +1 -0
  288. package/dist/module/package.json +1 -0
  289. package/dist/module/poison.pill.js +37 -0
  290. package/dist/module/poison.pill.js.map +1 -0
  291. package/dist/module/runtime/index.js +9 -0
  292. package/dist/module/runtime/index.js.map +1 -0
  293. package/dist/module/runtime/native/api.js +75 -0
  294. package/dist/module/runtime/native/api.js.map +1 -0
  295. package/dist/module/runtime/native/conditions/attributes.js +38 -0
  296. package/dist/module/runtime/native/conditions/attributes.js.map +1 -0
  297. package/dist/module/runtime/native/conditions/container-query.js +117 -0
  298. package/dist/module/runtime/native/conditions/container-query.js.map +1 -0
  299. package/dist/module/runtime/native/conditions/guards.js +29 -0
  300. package/dist/module/runtime/native/conditions/guards.js.map +1 -0
  301. package/dist/module/runtime/native/conditions/index.js +36 -0
  302. package/dist/module/runtime/native/conditions/index.js.map +1 -0
  303. package/dist/module/runtime/native/conditions/media-query.js +93 -0
  304. package/dist/module/runtime/native/conditions/media-query.js.map +1 -0
  305. package/dist/module/runtime/native/index.js +5 -0
  306. package/dist/module/runtime/native/index.js.map +1 -0
  307. package/dist/module/runtime/native/injection.js +95 -0
  308. package/dist/module/runtime/native/injection.js.map +1 -0
  309. package/dist/module/runtime/native/metro.js +5 -0
  310. package/dist/module/runtime/native/metro.js.map +1 -0
  311. package/dist/module/runtime/native/react/interaction.js +59 -0
  312. package/dist/module/runtime/native/react/interaction.js.map +1 -0
  313. package/dist/module/runtime/native/react/rules.js +248 -0
  314. package/dist/module/runtime/native/react/rules.js.map +1 -0
  315. package/dist/module/runtime/native/react/useNativeCss.js +153 -0
  316. package/dist/module/runtime/native/react/useNativeCss.js.map +1 -0
  317. package/dist/module/runtime/native/react/usePassthrough.js +45 -0
  318. package/dist/module/runtime/native/react/usePassthrough.js.map +1 -0
  319. package/dist/module/runtime/native/reactivity.js +166 -0
  320. package/dist/module/runtime/native/reactivity.js.map +1 -0
  321. package/dist/module/runtime/native/reanimated.js +13 -0
  322. package/dist/module/runtime/native/reanimated.js.map +1 -0
  323. package/dist/module/runtime/native/root.js +24 -0
  324. package/dist/module/runtime/native/root.js.map +1 -0
  325. package/dist/module/runtime/native/styles/calculate-props.js +143 -0
  326. package/dist/module/runtime/native/styles/calculate-props.js.map +1 -0
  327. package/dist/module/runtime/native/styles/constants.js +5 -0
  328. package/dist/module/runtime/native/styles/constants.js.map +1 -0
  329. package/dist/module/runtime/native/styles/defaults.js +65 -0
  330. package/dist/module/runtime/native/styles/defaults.js.map +1 -0
  331. package/dist/module/runtime/native/styles/functions/animation-timing.js +30 -0
  332. package/dist/module/runtime/native/styles/functions/animation-timing.js.map +1 -0
  333. package/dist/module/runtime/native/styles/functions/calc.js +120 -0
  334. package/dist/module/runtime/native/styles/functions/calc.js.map +1 -0
  335. package/dist/module/runtime/native/styles/functions/filters.js +70 -0
  336. package/dist/module/runtime/native/styles/functions/filters.js.map +1 -0
  337. package/dist/module/runtime/native/styles/functions/index.js +8 -0
  338. package/dist/module/runtime/native/styles/functions/index.js.map +1 -0
  339. package/dist/module/runtime/native/styles/functions/platform-functions.js +36 -0
  340. package/dist/module/runtime/native/styles/functions/platform-functions.js.map +1 -0
  341. package/dist/module/runtime/native/styles/functions/transform-functions.js +114 -0
  342. package/dist/module/runtime/native/styles/functions/transform-functions.js.map +1 -0
  343. package/dist/module/runtime/native/styles/index.js +110 -0
  344. package/dist/module/runtime/native/styles/index.js.map +1 -0
  345. package/dist/module/runtime/native/styles/resolve.js +101 -0
  346. package/dist/module/runtime/native/styles/resolve.js.map +1 -0
  347. package/dist/module/runtime/native/styles/shorthands/_handler.js +74 -0
  348. package/dist/module/runtime/native/styles/shorthands/_handler.js.map +1 -0
  349. package/dist/module/runtime/native/styles/shorthands/animation.js +51 -0
  350. package/dist/module/runtime/native/styles/shorthands/animation.js.map +1 -0
  351. package/dist/module/runtime/native/styles/shorthands/border.js +8 -0
  352. package/dist/module/runtime/native/styles/shorthands/border.js.map +1 -0
  353. package/dist/module/runtime/native/styles/shorthands/box-shadow.js +35 -0
  354. package/dist/module/runtime/native/styles/shorthands/box-shadow.js.map +1 -0
  355. package/dist/module/runtime/native/styles/shorthands/index.js +8 -0
  356. package/dist/module/runtime/native/styles/shorthands/index.js.map +1 -0
  357. package/dist/module/runtime/native/styles/shorthands/text-shadow.js +9 -0
  358. package/dist/module/runtime/native/styles/shorthands/text-shadow.js.map +1 -0
  359. package/dist/module/runtime/native/styles/shorthands/transform.js +18 -0
  360. package/dist/module/runtime/native/styles/shorthands/transform.js.map +1 -0
  361. package/dist/module/runtime/native/styles/units.js +43 -0
  362. package/dist/module/runtime/native/styles/units.js.map +1 -0
  363. package/dist/module/runtime/native/styles/variables.js +75 -0
  364. package/dist/module/runtime/native/styles/variables.js.map +1 -0
  365. package/dist/module/runtime/runtime.js +4 -0
  366. package/dist/module/runtime/runtime.js.map +1 -0
  367. package/dist/module/runtime/runtime.native.js +4 -0
  368. package/dist/module/runtime/runtime.native.js.map +1 -0
  369. package/dist/module/runtime/runtime.types.js +4 -0
  370. package/dist/module/runtime/runtime.types.js.map +1 -0
  371. package/dist/module/runtime/utils/components.js +14 -0
  372. package/dist/module/runtime/utils/components.js.map +1 -0
  373. package/dist/module/runtime/utils/dot-notation.types.js +2 -0
  374. package/dist/module/runtime/utils/dot-notation.types.js.map +1 -0
  375. package/dist/module/runtime/utils/index.js +8 -0
  376. package/dist/module/runtime/utils/index.js.map +1 -0
  377. package/dist/module/runtime/utils/objects.js +84 -0
  378. package/dist/module/runtime/utils/objects.js.map +1 -0
  379. package/dist/module/runtime/utils/specificity.js +39 -0
  380. package/dist/module/runtime/utils/specificity.js.map +1 -0
  381. package/dist/module/runtime/utils/style-value.js +16 -0
  382. package/dist/module/runtime/utils/style-value.js.map +1 -0
  383. package/dist/module/runtime/utils/utils.types.js +4 -0
  384. package/dist/module/runtime/utils/utils.types.js.map +1 -0
  385. package/dist/module/runtime/web/api.js +59 -0
  386. package/dist/module/runtime/web/api.js.map +1 -0
  387. package/dist/module/runtime/web/assign-style.js +23 -0
  388. package/dist/module/runtime/web/assign-style.js.map +1 -0
  389. package/dist/module/runtime/web/index.js +6 -0
  390. package/dist/module/runtime/web/index.js.map +1 -0
  391. package/dist/module/runtime/web/metro.js +5 -0
  392. package/dist/module/runtime/web/metro.js.map +1 -0
  393. package/dist/typescript/commonjs/example/app.config.d.ts +4 -0
  394. package/dist/typescript/commonjs/example/app.config.d.ts.map +1 -0
  395. package/dist/typescript/commonjs/example/src/App.d.ts +3 -0
  396. package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -0
  397. package/dist/typescript/commonjs/package.json +1 -0
  398. package/dist/typescript/commonjs/src/babel/allowedModules.d.ts +2 -0
  399. package/dist/typescript/commonjs/src/babel/allowedModules.d.ts.map +1 -0
  400. package/dist/typescript/commonjs/src/babel/helpers.d.ts +13 -0
  401. package/dist/typescript/commonjs/src/babel/helpers.d.ts.map +1 -0
  402. package/dist/typescript/commonjs/src/babel/import-plugin.d.ts +6 -0
  403. package/dist/typescript/commonjs/src/babel/import-plugin.d.ts.map +1 -0
  404. package/dist/typescript/commonjs/src/babel/index.d.ts +1 -0
  405. package/dist/typescript/commonjs/src/babel/index.d.ts.map +1 -0
  406. package/dist/typescript/commonjs/src/babel/react-native-web.d.ts +8 -0
  407. package/dist/typescript/commonjs/src/babel/react-native-web.d.ts.map +1 -0
  408. package/dist/typescript/commonjs/src/babel/react-native.d.ts +8 -0
  409. package/dist/typescript/commonjs/src/babel/react-native.d.ts.map +1 -0
  410. package/dist/typescript/commonjs/src/compiler/atRules.d.ts +34 -0
  411. package/dist/typescript/commonjs/src/compiler/atRules.d.ts.map +1 -0
  412. package/dist/typescript/commonjs/src/compiler/compiler.d.ts +17 -0
  413. package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -0
  414. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +197 -0
  415. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -0
  416. package/dist/typescript/commonjs/src/compiler/container-query.d.ts +5 -0
  417. package/dist/typescript/commonjs/src/compiler/container-query.d.ts.map +1 -0
  418. package/dist/typescript/commonjs/src/compiler/declarations.d.ts +118 -0
  419. package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -0
  420. package/dist/typescript/commonjs/src/compiler/functions-web.d.ts +11 -0
  421. package/dist/typescript/commonjs/src/compiler/functions-web.d.ts.map +1 -0
  422. package/dist/typescript/commonjs/src/compiler/functions.d.ts +11 -0
  423. package/dist/typescript/commonjs/src/compiler/functions.d.ts.map +1 -0
  424. package/dist/typescript/commonjs/src/compiler/index.d.ts +7 -0
  425. package/dist/typescript/commonjs/src/compiler/index.d.ts.map +1 -0
  426. package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts +2 -0
  427. package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts.map +1 -0
  428. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts +7 -0
  429. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts.map +1 -0
  430. package/dist/typescript/commonjs/src/compiler/media-query.d.ts +7 -0
  431. package/dist/typescript/commonjs/src/compiler/media-query.d.ts.map +1 -0
  432. package/dist/typescript/commonjs/src/compiler/pseudo-elements.d.ts +4 -0
  433. package/dist/typescript/commonjs/src/compiler/pseudo-elements.d.ts.map +1 -0
  434. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts +24 -0
  435. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -0
  436. package/dist/typescript/commonjs/src/compiler/selectors.d.ts +24 -0
  437. package/dist/typescript/commonjs/src/compiler/selectors.d.ts.map +1 -0
  438. package/dist/typescript/commonjs/src/compiler/split-by-delimiter.d.ts +2 -0
  439. package/dist/typescript/commonjs/src/compiler/split-by-delimiter.d.ts.map +1 -0
  440. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +68 -0
  441. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -0
  442. package/dist/typescript/commonjs/src/compiler/supports.d.ts +3 -0
  443. package/dist/typescript/commonjs/src/compiler/supports.d.ts.map +1 -0
  444. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +13 -0
  445. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -0
  446. package/dist/typescript/commonjs/src/components/Button.d.ts +13 -0
  447. package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -0
  448. package/dist/typescript/commonjs/src/components/FlatList.d.ts +10 -0
  449. package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -0
  450. package/dist/typescript/commonjs/src/components/Image.d.ts +8 -0
  451. package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -0
  452. package/dist/typescript/commonjs/src/components/Switch.d.ts +8 -0
  453. package/dist/typescript/commonjs/src/components/Switch.d.ts.map +1 -0
  454. package/dist/typescript/commonjs/src/components/Text.d.ts +8 -0
  455. package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -0
  456. package/dist/typescript/commonjs/src/components/TextInput.d.ts +8 -0
  457. package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -0
  458. package/dist/typescript/commonjs/src/components/View.d.ts +8 -0
  459. package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -0
  460. package/dist/typescript/commonjs/src/components/index.d.ts +10 -0
  461. package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -0
  462. package/dist/typescript/commonjs/src/doctor/index.d.ts +2 -0
  463. package/dist/typescript/commonjs/src/doctor/index.d.ts.map +1 -0
  464. package/dist/typescript/commonjs/src/index.d.ts +3 -0
  465. package/dist/typescript/commonjs/src/index.d.ts.map +1 -0
  466. package/dist/typescript/commonjs/src/jest/index.d.ts +30 -0
  467. package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -0
  468. package/dist/typescript/commonjs/src/jest/setup.d.ts +1 -0
  469. package/dist/typescript/commonjs/src/jest/setup.d.ts.map +1 -0
  470. package/dist/typescript/commonjs/src/jest/setupAfterEnv.d.ts +1 -0
  471. package/dist/typescript/commonjs/src/jest/setupAfterEnv.d.ts.map +1 -0
  472. package/dist/typescript/commonjs/src/metro/index.d.ts +11 -0
  473. package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -0
  474. package/dist/typescript/commonjs/src/metro/injection-code.d.ts +16 -0
  475. package/dist/typescript/commonjs/src/metro/injection-code.d.ts.map +1 -0
  476. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts +3 -0
  477. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -0
  478. package/dist/typescript/commonjs/src/metro/picocolors.d.ts +27 -0
  479. package/dist/typescript/commonjs/src/metro/picocolors.d.ts.map +1 -0
  480. package/dist/typescript/commonjs/src/metro/resolver.d.ts +4 -0
  481. package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -0
  482. package/dist/typescript/commonjs/src/metro/stringify.d.ts +7 -0
  483. package/dist/typescript/commonjs/src/metro/stringify.d.ts.map +1 -0
  484. package/dist/typescript/commonjs/src/metro/typescript.d.ts +2 -0
  485. package/dist/typescript/commonjs/src/metro/typescript.d.ts.map +1 -0
  486. package/dist/typescript/commonjs/src/poison.pill.d.ts +2 -0
  487. package/dist/typescript/commonjs/src/poison.pill.d.ts.map +1 -0
  488. package/dist/typescript/commonjs/src/runtime/index.d.ts +7 -0
  489. package/dist/typescript/commonjs/src/runtime/index.d.ts.map +1 -0
  490. package/dist/typescript/commonjs/src/runtime/native/api.d.ts +17 -0
  491. package/dist/typescript/commonjs/src/runtime/native/api.d.ts.map +1 -0
  492. package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts +5 -0
  493. package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts.map +1 -0
  494. package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts +7 -0
  495. package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts.map +1 -0
  496. package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts +5 -0
  497. package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts.map +1 -0
  498. package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts +6 -0
  499. package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts.map +1 -0
  500. package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts +4 -0
  501. package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts.map +1 -0
  502. package/dist/typescript/commonjs/src/runtime/native/index.d.ts +4 -0
  503. package/dist/typescript/commonjs/src/runtime/native/index.d.ts.map +1 -0
  504. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts +16 -0
  505. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts.map +1 -0
  506. package/dist/typescript/commonjs/src/runtime/native/metro.d.ts +2 -0
  507. package/dist/typescript/commonjs/src/runtime/native/metro.d.ts.map +1 -0
  508. package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts +6 -0
  509. package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts.map +1 -0
  510. package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts +7 -0
  511. package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts.map +1 -0
  512. package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts +38 -0
  513. package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts.map +1 -0
  514. package/dist/typescript/commonjs/src/runtime/native/react/usePassthrough.d.ts +4 -0
  515. package/dist/typescript/commonjs/src/runtime/native/react/usePassthrough.d.ts.map +1 -0
  516. package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts +55 -0
  517. package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts.map +1 -0
  518. package/dist/typescript/commonjs/src/runtime/native/reanimated.d.ts +5 -0
  519. package/dist/typescript/commonjs/src/runtime/native/reanimated.d.ts.map +1 -0
  520. package/dist/typescript/commonjs/src/runtime/native/root.d.ts +11 -0
  521. package/dist/typescript/commonjs/src/runtime/native/root.d.ts.map +1 -0
  522. package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts +10 -0
  523. package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts.map +1 -0
  524. package/dist/typescript/commonjs/src/runtime/native/styles/constants.d.ts +3 -0
  525. package/dist/typescript/commonjs/src/runtime/native/styles/constants.d.ts.map +1 -0
  526. package/dist/typescript/commonjs/src/runtime/native/styles/defaults.d.ts +3 -0
  527. package/dist/typescript/commonjs/src/runtime/native/styles/defaults.d.ts.map +1 -0
  528. package/dist/typescript/commonjs/src/runtime/native/styles/functions/animation-timing.d.ts +4 -0
  529. package/dist/typescript/commonjs/src/runtime/native/styles/functions/animation-timing.d.ts.map +1 -0
  530. package/dist/typescript/commonjs/src/runtime/native/styles/functions/calc.d.ts +3 -0
  531. package/dist/typescript/commonjs/src/runtime/native/styles/functions/calc.d.ts.map +1 -0
  532. package/dist/typescript/commonjs/src/runtime/native/styles/functions/filters.d.ts +12 -0
  533. package/dist/typescript/commonjs/src/runtime/native/styles/functions/filters.d.ts.map +1 -0
  534. package/dist/typescript/commonjs/src/runtime/native/styles/functions/index.d.ts +6 -0
  535. package/dist/typescript/commonjs/src/runtime/native/styles/functions/index.d.ts.map +1 -0
  536. package/dist/typescript/commonjs/src/runtime/native/styles/functions/platform-functions.d.ts +8 -0
  537. package/dist/typescript/commonjs/src/runtime/native/styles/functions/platform-functions.d.ts.map +1 -0
  538. package/dist/typescript/commonjs/src/runtime/native/styles/functions/transform-functions.d.ts +5 -0
  539. package/dist/typescript/commonjs/src/runtime/native/styles/functions/transform-functions.d.ts.map +1 -0
  540. package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts +19 -0
  541. package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts.map +1 -0
  542. package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts +18 -0
  543. package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts.map +1 -0
  544. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/_handler.d.ts +11 -0
  545. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/_handler.d.ts.map +1 -0
  546. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/animation.d.ts +4 -0
  547. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/animation.d.ts.map +1 -0
  548. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/border.d.ts +2 -0
  549. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/border.d.ts.map +1 -0
  550. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/box-shadow.d.ts +3 -0
  551. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +1 -0
  552. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/index.d.ts +6 -0
  553. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/index.d.ts.map +1 -0
  554. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/text-shadow.d.ts +2 -0
  555. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +1 -0
  556. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/transform.d.ts +7 -0
  557. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/transform.d.ts.map +1 -0
  558. package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts +6 -0
  559. package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts.map +1 -0
  560. package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts +5 -0
  561. package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts.map +1 -0
  562. package/dist/typescript/commonjs/src/runtime/runtime.d.ts +2 -0
  563. package/dist/typescript/commonjs/src/runtime/runtime.d.ts.map +1 -0
  564. package/dist/typescript/commonjs/src/runtime/runtime.native.d.ts +2 -0
  565. package/dist/typescript/commonjs/src/runtime/runtime.native.d.ts.map +1 -0
  566. package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts +47 -0
  567. package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts.map +1 -0
  568. package/dist/typescript/commonjs/src/runtime/utils/components.d.ts +2 -0
  569. package/dist/typescript/commonjs/src/runtime/utils/components.d.ts.map +1 -0
  570. package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts +23 -0
  571. package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts.map +1 -0
  572. package/dist/typescript/commonjs/src/runtime/utils/index.d.ts +6 -0
  573. package/dist/typescript/commonjs/src/runtime/utils/index.d.ts.map +1 -0
  574. package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts +5 -0
  575. package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts.map +1 -0
  576. package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts +13 -0
  577. package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts.map +1 -0
  578. package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts +4 -0
  579. package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts.map +1 -0
  580. package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts +5 -0
  581. package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts.map +1 -0
  582. package/dist/typescript/commonjs/src/runtime/web/api.d.ts +10 -0
  583. package/dist/typescript/commonjs/src/runtime/web/api.d.ts.map +1 -0
  584. package/dist/typescript/commonjs/src/runtime/web/assign-style.d.ts +2 -0
  585. package/dist/typescript/commonjs/src/runtime/web/assign-style.d.ts.map +1 -0
  586. package/dist/typescript/commonjs/src/runtime/web/index.d.ts +4 -0
  587. package/dist/typescript/commonjs/src/runtime/web/index.d.ts.map +1 -0
  588. package/dist/typescript/commonjs/src/runtime/web/metro.d.ts +2 -0
  589. package/dist/typescript/commonjs/src/runtime/web/metro.d.ts.map +1 -0
  590. package/dist/typescript/module/example/app.config.d.ts +4 -0
  591. package/dist/typescript/module/example/app.config.d.ts.map +1 -0
  592. package/dist/typescript/module/example/src/App.d.ts +3 -0
  593. package/dist/typescript/module/example/src/App.d.ts.map +1 -0
  594. package/dist/typescript/module/package.json +1 -0
  595. package/dist/typescript/module/src/babel/allowedModules.d.ts +2 -0
  596. package/dist/typescript/module/src/babel/allowedModules.d.ts.map +1 -0
  597. package/dist/typescript/module/src/babel/helpers.d.ts +13 -0
  598. package/dist/typescript/module/src/babel/helpers.d.ts.map +1 -0
  599. package/dist/typescript/module/src/babel/import-plugin.d.ts +6 -0
  600. package/dist/typescript/module/src/babel/import-plugin.d.ts.map +1 -0
  601. package/dist/typescript/module/src/babel/index.d.ts +1 -0
  602. package/dist/typescript/module/src/babel/index.d.ts.map +1 -0
  603. package/dist/typescript/module/src/babel/react-native-web.d.ts +8 -0
  604. package/dist/typescript/module/src/babel/react-native-web.d.ts.map +1 -0
  605. package/dist/typescript/module/src/babel/react-native.d.ts +8 -0
  606. package/dist/typescript/module/src/babel/react-native.d.ts.map +1 -0
  607. package/dist/typescript/module/src/compiler/atRules.d.ts +34 -0
  608. package/dist/typescript/module/src/compiler/atRules.d.ts.map +1 -0
  609. package/dist/typescript/module/src/compiler/compiler.d.ts +17 -0
  610. package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -0
  611. package/dist/typescript/module/src/compiler/compiler.types.d.ts +197 -0
  612. package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -0
  613. package/dist/typescript/module/src/compiler/container-query.d.ts +5 -0
  614. package/dist/typescript/module/src/compiler/container-query.d.ts.map +1 -0
  615. package/dist/typescript/module/src/compiler/declarations.d.ts +118 -0
  616. package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -0
  617. package/dist/typescript/module/src/compiler/functions-web.d.ts +11 -0
  618. package/dist/typescript/module/src/compiler/functions-web.d.ts.map +1 -0
  619. package/dist/typescript/module/src/compiler/functions.d.ts +11 -0
  620. package/dist/typescript/module/src/compiler/functions.d.ts.map +1 -0
  621. package/dist/typescript/module/src/compiler/index.d.ts +7 -0
  622. package/dist/typescript/module/src/compiler/index.d.ts.map +1 -0
  623. package/dist/typescript/module/src/compiler/inheritance.test.d.ts +2 -0
  624. package/dist/typescript/module/src/compiler/inheritance.test.d.ts.map +1 -0
  625. package/dist/typescript/module/src/compiler/keyframes.d.ts +7 -0
  626. package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -0
  627. package/dist/typescript/module/src/compiler/media-query.d.ts +7 -0
  628. package/dist/typescript/module/src/compiler/media-query.d.ts.map +1 -0
  629. package/dist/typescript/module/src/compiler/pseudo-elements.d.ts +4 -0
  630. package/dist/typescript/module/src/compiler/pseudo-elements.d.ts.map +1 -0
  631. package/dist/typescript/module/src/compiler/selector-builder.d.ts +24 -0
  632. package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -0
  633. package/dist/typescript/module/src/compiler/selectors.d.ts +24 -0
  634. package/dist/typescript/module/src/compiler/selectors.d.ts.map +1 -0
  635. package/dist/typescript/module/src/compiler/split-by-delimiter.d.ts +2 -0
  636. package/dist/typescript/module/src/compiler/split-by-delimiter.d.ts.map +1 -0
  637. package/dist/typescript/module/src/compiler/stylesheet.d.ts +68 -0
  638. package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -0
  639. package/dist/typescript/module/src/compiler/supports.d.ts +3 -0
  640. package/dist/typescript/module/src/compiler/supports.d.ts.map +1 -0
  641. package/dist/typescript/module/src/components/ActivityIndicator.d.ts +13 -0
  642. package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -0
  643. package/dist/typescript/module/src/components/Button.d.ts +13 -0
  644. package/dist/typescript/module/src/components/Button.d.ts.map +1 -0
  645. package/dist/typescript/module/src/components/FlatList.d.ts +10 -0
  646. package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -0
  647. package/dist/typescript/module/src/components/Image.d.ts +8 -0
  648. package/dist/typescript/module/src/components/Image.d.ts.map +1 -0
  649. package/dist/typescript/module/src/components/Switch.d.ts +8 -0
  650. package/dist/typescript/module/src/components/Switch.d.ts.map +1 -0
  651. package/dist/typescript/module/src/components/Text.d.ts +8 -0
  652. package/dist/typescript/module/src/components/Text.d.ts.map +1 -0
  653. package/dist/typescript/module/src/components/TextInput.d.ts +8 -0
  654. package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -0
  655. package/dist/typescript/module/src/components/View.d.ts +8 -0
  656. package/dist/typescript/module/src/components/View.d.ts.map +1 -0
  657. package/dist/typescript/module/src/components/index.d.ts +10 -0
  658. package/dist/typescript/module/src/components/index.d.ts.map +1 -0
  659. package/dist/typescript/module/src/doctor/index.d.ts +2 -0
  660. package/dist/typescript/module/src/doctor/index.d.ts.map +1 -0
  661. package/dist/typescript/module/src/index.d.ts +3 -0
  662. package/dist/typescript/module/src/index.d.ts.map +1 -0
  663. package/dist/typescript/module/src/jest/index.d.ts +30 -0
  664. package/dist/typescript/module/src/jest/index.d.ts.map +1 -0
  665. package/dist/typescript/module/src/jest/setup.d.ts +1 -0
  666. package/dist/typescript/module/src/jest/setup.d.ts.map +1 -0
  667. package/dist/typescript/module/src/jest/setupAfterEnv.d.ts +1 -0
  668. package/dist/typescript/module/src/jest/setupAfterEnv.d.ts.map +1 -0
  669. package/dist/typescript/module/src/metro/index.d.ts +11 -0
  670. package/dist/typescript/module/src/metro/index.d.ts.map +1 -0
  671. package/dist/typescript/module/src/metro/injection-code.d.ts +16 -0
  672. package/dist/typescript/module/src/metro/injection-code.d.ts.map +1 -0
  673. package/dist/typescript/module/src/metro/metro-transformer.d.ts +3 -0
  674. package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -0
  675. package/dist/typescript/module/src/metro/picocolors.d.ts +27 -0
  676. package/dist/typescript/module/src/metro/picocolors.d.ts.map +1 -0
  677. package/dist/typescript/module/src/metro/resolver.d.ts +4 -0
  678. package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -0
  679. package/dist/typescript/module/src/metro/stringify.d.ts +7 -0
  680. package/dist/typescript/module/src/metro/stringify.d.ts.map +1 -0
  681. package/dist/typescript/module/src/metro/typescript.d.ts +2 -0
  682. package/dist/typescript/module/src/metro/typescript.d.ts.map +1 -0
  683. package/dist/typescript/module/src/poison.pill.d.ts +2 -0
  684. package/dist/typescript/module/src/poison.pill.d.ts.map +1 -0
  685. package/dist/typescript/module/src/runtime/index.d.ts +7 -0
  686. package/dist/typescript/module/src/runtime/index.d.ts.map +1 -0
  687. package/dist/typescript/module/src/runtime/native/api.d.ts +17 -0
  688. package/dist/typescript/module/src/runtime/native/api.d.ts.map +1 -0
  689. package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts +5 -0
  690. package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts.map +1 -0
  691. package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts +7 -0
  692. package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts.map +1 -0
  693. package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts +5 -0
  694. package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts.map +1 -0
  695. package/dist/typescript/module/src/runtime/native/conditions/index.d.ts +6 -0
  696. package/dist/typescript/module/src/runtime/native/conditions/index.d.ts.map +1 -0
  697. package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts +4 -0
  698. package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts.map +1 -0
  699. package/dist/typescript/module/src/runtime/native/index.d.ts +4 -0
  700. package/dist/typescript/module/src/runtime/native/index.d.ts.map +1 -0
  701. package/dist/typescript/module/src/runtime/native/injection.d.ts +16 -0
  702. package/dist/typescript/module/src/runtime/native/injection.d.ts.map +1 -0
  703. package/dist/typescript/module/src/runtime/native/metro.d.ts +2 -0
  704. package/dist/typescript/module/src/runtime/native/metro.d.ts.map +1 -0
  705. package/dist/typescript/module/src/runtime/native/react/interaction.d.ts +6 -0
  706. package/dist/typescript/module/src/runtime/native/react/interaction.d.ts.map +1 -0
  707. package/dist/typescript/module/src/runtime/native/react/rules.d.ts +7 -0
  708. package/dist/typescript/module/src/runtime/native/react/rules.d.ts.map +1 -0
  709. package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts +38 -0
  710. package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts.map +1 -0
  711. package/dist/typescript/module/src/runtime/native/react/usePassthrough.d.ts +4 -0
  712. package/dist/typescript/module/src/runtime/native/react/usePassthrough.d.ts.map +1 -0
  713. package/dist/typescript/module/src/runtime/native/reactivity.d.ts +55 -0
  714. package/dist/typescript/module/src/runtime/native/reactivity.d.ts.map +1 -0
  715. package/dist/typescript/module/src/runtime/native/reanimated.d.ts +5 -0
  716. package/dist/typescript/module/src/runtime/native/reanimated.d.ts.map +1 -0
  717. package/dist/typescript/module/src/runtime/native/root.d.ts +11 -0
  718. package/dist/typescript/module/src/runtime/native/root.d.ts.map +1 -0
  719. package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts +10 -0
  720. package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts.map +1 -0
  721. package/dist/typescript/module/src/runtime/native/styles/constants.d.ts +3 -0
  722. package/dist/typescript/module/src/runtime/native/styles/constants.d.ts.map +1 -0
  723. package/dist/typescript/module/src/runtime/native/styles/defaults.d.ts +3 -0
  724. package/dist/typescript/module/src/runtime/native/styles/defaults.d.ts.map +1 -0
  725. package/dist/typescript/module/src/runtime/native/styles/functions/animation-timing.d.ts +4 -0
  726. package/dist/typescript/module/src/runtime/native/styles/functions/animation-timing.d.ts.map +1 -0
  727. package/dist/typescript/module/src/runtime/native/styles/functions/calc.d.ts +3 -0
  728. package/dist/typescript/module/src/runtime/native/styles/functions/calc.d.ts.map +1 -0
  729. package/dist/typescript/module/src/runtime/native/styles/functions/filters.d.ts +12 -0
  730. package/dist/typescript/module/src/runtime/native/styles/functions/filters.d.ts.map +1 -0
  731. package/dist/typescript/module/src/runtime/native/styles/functions/index.d.ts +6 -0
  732. package/dist/typescript/module/src/runtime/native/styles/functions/index.d.ts.map +1 -0
  733. package/dist/typescript/module/src/runtime/native/styles/functions/platform-functions.d.ts +8 -0
  734. package/dist/typescript/module/src/runtime/native/styles/functions/platform-functions.d.ts.map +1 -0
  735. package/dist/typescript/module/src/runtime/native/styles/functions/transform-functions.d.ts +5 -0
  736. package/dist/typescript/module/src/runtime/native/styles/functions/transform-functions.d.ts.map +1 -0
  737. package/dist/typescript/module/src/runtime/native/styles/index.d.ts +19 -0
  738. package/dist/typescript/module/src/runtime/native/styles/index.d.ts.map +1 -0
  739. package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts +18 -0
  740. package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts.map +1 -0
  741. package/dist/typescript/module/src/runtime/native/styles/shorthands/_handler.d.ts +11 -0
  742. package/dist/typescript/module/src/runtime/native/styles/shorthands/_handler.d.ts.map +1 -0
  743. package/dist/typescript/module/src/runtime/native/styles/shorthands/animation.d.ts +4 -0
  744. package/dist/typescript/module/src/runtime/native/styles/shorthands/animation.d.ts.map +1 -0
  745. package/dist/typescript/module/src/runtime/native/styles/shorthands/border.d.ts +2 -0
  746. package/dist/typescript/module/src/runtime/native/styles/shorthands/border.d.ts.map +1 -0
  747. package/dist/typescript/module/src/runtime/native/styles/shorthands/box-shadow.d.ts +3 -0
  748. package/dist/typescript/module/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +1 -0
  749. package/dist/typescript/module/src/runtime/native/styles/shorthands/index.d.ts +6 -0
  750. package/dist/typescript/module/src/runtime/native/styles/shorthands/index.d.ts.map +1 -0
  751. package/dist/typescript/module/src/runtime/native/styles/shorthands/text-shadow.d.ts +2 -0
  752. package/dist/typescript/module/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +1 -0
  753. package/dist/typescript/module/src/runtime/native/styles/shorthands/transform.d.ts +7 -0
  754. package/dist/typescript/module/src/runtime/native/styles/shorthands/transform.d.ts.map +1 -0
  755. package/dist/typescript/module/src/runtime/native/styles/units.d.ts +6 -0
  756. package/dist/typescript/module/src/runtime/native/styles/units.d.ts.map +1 -0
  757. package/dist/typescript/module/src/runtime/native/styles/variables.d.ts +5 -0
  758. package/dist/typescript/module/src/runtime/native/styles/variables.d.ts.map +1 -0
  759. package/dist/typescript/module/src/runtime/runtime.d.ts +2 -0
  760. package/dist/typescript/module/src/runtime/runtime.d.ts.map +1 -0
  761. package/dist/typescript/module/src/runtime/runtime.native.d.ts +2 -0
  762. package/dist/typescript/module/src/runtime/runtime.native.d.ts.map +1 -0
  763. package/dist/typescript/module/src/runtime/runtime.types.d.ts +47 -0
  764. package/dist/typescript/module/src/runtime/runtime.types.d.ts.map +1 -0
  765. package/dist/typescript/module/src/runtime/utils/components.d.ts +2 -0
  766. package/dist/typescript/module/src/runtime/utils/components.d.ts.map +1 -0
  767. package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts +23 -0
  768. package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts.map +1 -0
  769. package/dist/typescript/module/src/runtime/utils/index.d.ts +6 -0
  770. package/dist/typescript/module/src/runtime/utils/index.d.ts.map +1 -0
  771. package/dist/typescript/module/src/runtime/utils/objects.d.ts +5 -0
  772. package/dist/typescript/module/src/runtime/utils/objects.d.ts.map +1 -0
  773. package/dist/typescript/module/src/runtime/utils/specificity.d.ts +13 -0
  774. package/dist/typescript/module/src/runtime/utils/specificity.d.ts.map +1 -0
  775. package/dist/typescript/module/src/runtime/utils/style-value.d.ts +4 -0
  776. package/dist/typescript/module/src/runtime/utils/style-value.d.ts.map +1 -0
  777. package/dist/typescript/module/src/runtime/utils/utils.types.d.ts +5 -0
  778. package/dist/typescript/module/src/runtime/utils/utils.types.d.ts.map +1 -0
  779. package/dist/typescript/module/src/runtime/web/api.d.ts +10 -0
  780. package/dist/typescript/module/src/runtime/web/api.d.ts.map +1 -0
  781. package/dist/typescript/module/src/runtime/web/assign-style.d.ts +2 -0
  782. package/dist/typescript/module/src/runtime/web/assign-style.d.ts.map +1 -0
  783. package/dist/typescript/module/src/runtime/web/index.d.ts +4 -0
  784. package/dist/typescript/module/src/runtime/web/index.d.ts.map +1 -0
  785. package/dist/typescript/module/src/runtime/web/metro.d.ts +2 -0
  786. package/dist/typescript/module/src/runtime/web/metro.d.ts.map +1 -0
  787. package/package.json +248 -45
  788. package/src/babel/allowedModules.ts +24 -0
  789. package/src/babel/helpers.ts +40 -0
  790. package/src/babel/import-plugin.ts +176 -0
  791. package/src/babel/index.ts +9 -0
  792. package/src/babel/react-native-web.ts +226 -0
  793. package/src/babel/react-native.ts +226 -0
  794. package/src/compiler/atRules.ts +158 -0
  795. package/src/compiler/compiler.ts +305 -0
  796. package/src/compiler/compiler.types.ts +267 -0
  797. package/src/compiler/container-query.ts +97 -0
  798. package/src/compiler/declarations.ts +3177 -0
  799. package/src/compiler/functions-web.ts +44 -0
  800. package/src/compiler/functions.ts +64 -0
  801. package/src/compiler/index.ts +7 -0
  802. package/src/compiler/inheritance.test.ts +121 -0
  803. package/src/compiler/keyframes.ts +86 -0
  804. package/src/compiler/media-query.ts +251 -0
  805. package/src/compiler/pseudo-elements.ts +54 -0
  806. package/src/compiler/selector-builder.ts +586 -0
  807. package/src/compiler/selectors.ts +505 -0
  808. package/src/compiler/split-by-delimiter.ts +19 -0
  809. package/src/compiler/stylesheet.ts +681 -0
  810. package/src/compiler/supports.ts +26 -0
  811. package/src/components/ActivityIndicator.tsx +27 -0
  812. package/src/components/Button.tsx +22 -0
  813. package/src/components/FlatList.tsx +21 -0
  814. package/src/components/Image.tsx +17 -0
  815. package/src/components/Switch.tsx +17 -0
  816. package/src/components/Text.tsx +17 -0
  817. package/src/components/TextInput.tsx +17 -0
  818. package/src/components/View.tsx +17 -0
  819. package/src/components/index.tsx +10 -0
  820. package/src/doctor/index.ts +1 -0
  821. package/src/index.ts +3 -0
  822. package/src/jest/expect.d.ts +1 -0
  823. package/src/jest/index.ts +74 -0
  824. package/src/jest/setup.ts +1 -0
  825. package/src/jest/setupAfterEnv.ts +13 -0
  826. package/src/metro/index.ts +237 -0
  827. package/src/metro/injection-code.ts +38 -0
  828. package/src/metro/metro-transformer.ts +31 -0
  829. package/src/metro/picocolors.ts +77 -0
  830. package/src/metro/resolver.ts +89 -0
  831. package/src/metro/stringify.ts +59 -0
  832. package/src/metro/typescript.ts +73 -0
  833. package/src/poison.pill.ts +36 -0
  834. package/src/runtime/index.ts +7 -0
  835. package/src/runtime/native/api.ts +106 -0
  836. package/src/runtime/native/conditions/attributes.ts +52 -0
  837. package/src/runtime/native/conditions/container-query.ts +162 -0
  838. package/src/runtime/native/conditions/guards.ts +44 -0
  839. package/src/runtime/native/conditions/index.ts +54 -0
  840. package/src/runtime/native/conditions/media-query.ts +98 -0
  841. package/src/runtime/native/index.ts +4 -0
  842. package/src/runtime/native/injection.ts +132 -0
  843. package/src/runtime/native/metro.ts +2 -0
  844. package/src/runtime/native/react/interaction.ts +90 -0
  845. package/src/runtime/native/react/rules.ts +330 -0
  846. package/src/runtime/native/react/useNativeCss.ts +203 -0
  847. package/src/runtime/native/react/usePassthrough.ts +51 -0
  848. package/src/runtime/native/reactivity.ts +243 -0
  849. package/src/runtime/native/reanimated.ts +22 -0
  850. package/src/runtime/native/root.ts +31 -0
  851. package/src/runtime/native/styles/calculate-props.ts +197 -0
  852. package/src/runtime/native/styles/constants.ts +2 -0
  853. package/src/runtime/native/styles/defaults.ts +79 -0
  854. package/src/runtime/native/styles/functions/animation-timing.ts +44 -0
  855. package/src/runtime/native/styles/functions/calc.ts +121 -0
  856. package/src/runtime/native/styles/functions/filters.ts +98 -0
  857. package/src/runtime/native/styles/functions/index.ts +5 -0
  858. package/src/runtime/native/styles/functions/platform-functions.ts +50 -0
  859. package/src/runtime/native/styles/functions/transform-functions.ts +84 -0
  860. package/src/runtime/native/styles/index.ts +197 -0
  861. package/src/runtime/native/styles/resolve.ts +162 -0
  862. package/src/runtime/native/styles/shorthands/_handler.ts +121 -0
  863. package/src/runtime/native/styles/shorthands/animation.ts +122 -0
  864. package/src/runtime/native/styles/shorthands/border.ts +10 -0
  865. package/src/runtime/native/styles/shorthands/box-shadow.ts +54 -0
  866. package/src/runtime/native/styles/shorthands/index.ts +5 -0
  867. package/src/runtime/native/styles/shorthands/text-shadow.ts +17 -0
  868. package/src/runtime/native/styles/shorthands/transform.ts +23 -0
  869. package/src/runtime/native/styles/units.ts +57 -0
  870. package/src/runtime/native/styles/variables.ts +84 -0
  871. package/src/runtime/runtime.native.ts +1 -0
  872. package/src/runtime/runtime.ts +1 -0
  873. package/src/runtime/runtime.types.ts +130 -0
  874. package/src/runtime/utils/components.ts +15 -0
  875. package/src/runtime/utils/dot-notation.types.ts +118 -0
  876. package/src/runtime/utils/index.ts +5 -0
  877. package/src/runtime/utils/objects.ts +109 -0
  878. package/src/runtime/utils/specificity.ts +45 -0
  879. package/src/runtime/utils/style-value.ts +24 -0
  880. package/src/runtime/utils/utils.types.ts +19 -0
  881. package/src/runtime/web/api.ts +88 -0
  882. package/src/runtime/web/assign-style.ts +26 -0
  883. package/src/runtime/web/index.ts +5 -0
  884. package/src/runtime/web/metro.ts +2 -0
  885. package/types.d.ts +70 -0
  886. package/.babelrc +0 -8
  887. package/.editorconfig +0 -17
  888. package/.eslintignore +0 -3
  889. package/.eslintrc +0 -39
  890. package/.npmignore +0 -7
  891. package/build/index.js +0 -294
  892. package/build/utils.js +0 -54
  893. package/circle.yml +0 -31
  894. package/jsconfig.json +0 -9
  895. package/login.sh +0 -11
  896. package/src/index.js +0 -184
  897. package/src/utils.js +0 -32
  898. package/test/rnc.test.js +0 -258
  899. package/yarn.lock +0 -3333
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+
3
+ import { isStyleDescriptorArray } from "../../../utils/index.js";
4
+ import { shorthandHandler } from "../shorthands/_handler.js";
5
+ export const blur = (resolveValue, value) => {
6
+ const args = resolveValue(value[2]);
7
+ return {
8
+ blur: Array.isArray(args) ? args[0] : args
9
+ };
10
+ };
11
+ export const brightness = (resolveValue, value) => {
12
+ const args = resolveValue(value[2]);
13
+ return {
14
+ brightness: Array.isArray(args) ? args[0] : args
15
+ };
16
+ };
17
+ export const contrast = (resolveValue, value) => {
18
+ const args = resolveValue(value[2]);
19
+ return {
20
+ contrast: Array.isArray(args) ? args[0] : args
21
+ };
22
+ };
23
+ export const grayscale = (resolveValue, value) => {
24
+ const args = resolveValue(value[2]);
25
+ return {
26
+ grayscale: Array.isArray(args) ? args[0] : args
27
+ };
28
+ };
29
+ export const hueRotate = (resolveValue, value) => {
30
+ const args = resolveValue(value[2]);
31
+ return {
32
+ hueRotate: Array.isArray(args) ? args[0] : args
33
+ };
34
+ };
35
+ export const invert = (resolveValue, value) => {
36
+ const args = resolveValue(value[2]);
37
+ return {
38
+ invert: Array.isArray(args) ? args[0] : args
39
+ };
40
+ };
41
+ export const sepia = (resolveValue, value) => {
42
+ const args = resolveValue(value[2]);
43
+ return {
44
+ sepia: Array.isArray(args) ? args[0] : args
45
+ };
46
+ };
47
+ export const saturate = (resolveValue, value) => {
48
+ const args = resolveValue(value[2]);
49
+ return {
50
+ saturate: Array.isArray(args) ? args[0] : args
51
+ };
52
+ };
53
+ export const opacity = (resolveValue, value) => {
54
+ const args = resolveValue(value[2]);
55
+ return {
56
+ hueRotate: Array.isArray(args) ? args[0] : args
57
+ };
58
+ };
59
+ const color = ["color", "string"];
60
+ const offsetX = ["offsetX", "number"];
61
+ const offsetY = ["offsetY", "number"];
62
+ const blurRadius = ["blurRadius", "number"];
63
+ const handler = shorthandHandler([[offsetX, offsetY, blurRadius, color], [color, offsetX, offsetY], [color, offsetX, offsetY, blurRadius], [offsetX, offsetY, color], [offsetX, offsetY, blurRadius, color]], [], "object");
64
+ export const dropShadow = (resolveValue, func, get, options) => {
65
+ const args = resolveValue(func[2]);
66
+ return isStyleDescriptorArray(args) ? {
67
+ dropShadow: handler(resolveValue, args, get, options)
68
+ } : undefined;
69
+ };
70
+ //# sourceMappingURL=filters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["isStyleDescriptorArray","shorthandHandler","blur","resolveValue","value","args","Array","isArray","brightness","contrast","grayscale","hueRotate","invert","sepia","saturate","opacity","color","offsetX","offsetY","blurRadius","handler","dropShadow","func","get","options","undefined"],"sourceRoot":"../../../../../../src","sources":["runtime/native/styles/functions/filters.ts"],"mappings":";;AAAA,SAASA,sBAAsB,QAAQ,yBAAgB;AAEvD,SAASC,gBAAgB,QAAQ,2BAAwB;AAEzD,OAAO,MAAMC,IAA2B,GAAGA,CAACC,YAAY,EAAEC,KAAK,KAAK;EAClE,MAAMC,IAAI,GAAGF,YAAY,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;EACnC,OAAO;IACLF,IAAI,EAAGI,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,GAAGA,IAAI,CAAC,CAAC,CAAC,GAAGA;EACzC,CAAC;AACH,CAAC;AAED,OAAO,MAAMG,UAAiC,GAAGA,CAACL,YAAY,EAAEC,KAAK,KAAK;EACxE,MAAMC,IAAI,GAAGF,YAAY,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;EACnC,OAAO;IACLI,UAAU,EAAGF,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,GAAGA,IAAI,CAAC,CAAC,CAAC,GAAGA;EAC/C,CAAC;AACH,CAAC;AAED,OAAO,MAAMI,QAA+B,GAAGA,CAACN,YAAY,EAAEC,KAAK,KAAK;EACtE,MAAMC,IAAI,GAAGF,YAAY,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;EACnC,OAAO;IACLK,QAAQ,EAAGH,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,GAAGA,IAAI,CAAC,CAAC,CAAC,GAAGA;EAC7C,CAAC;AACH,CAAC;AAED,OAAO,MAAMK,SAAgC,GAAGA,CAACP,YAA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List":[]}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ export * from "./animation-timing.js";
4
+ export * from "./calc.js";
5
+ export * from "./filters.js";
6
+ export * from "./platform-functions.js";
7
+ export * from "./transform-functions.js";
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["runtime/native/styles/functions/index.ts"],"mappings":";;AAAA,cAAc,uBAAoB;AAClC,cAAc,WAAQ;AACtB,cAAc,cAAW;AACzB,cAAc,yBAAsB;AACpC,cAAc,0BAAuB","ignoreList":[]}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ import { PixelRatio, PlatformColor, StyleSheet } from "react-native";
4
+ export const platformColor = (resolveValue, value) => {
5
+ const color = resolveValue(value[2]);
6
+ if (Array.isArray(color)) {
7
+ return PlatformColor(...color);
8
+ } else if (typeof color === "string") {
9
+ return PlatformColor(color);
10
+ }
11
+ return;
12
+ };
13
+ export const hairlineWidth = () => {
14
+ return StyleSheet.hairlineWidth;
15
+ };
16
+ export const pixelRatio = () => {
17
+ return PixelRatio.get();
18
+ };
19
+ export const fontScale = () => {
20
+ return PixelRatio.getFontScale();
21
+ };
22
+ export const getPixelSizeForLayoutSize = (resolveValue, value) => {
23
+ const size = resolveValue(value[2]);
24
+ if (typeof size === "number") {
25
+ return PixelRatio.getPixelSizeForLayoutSize(size);
26
+ }
27
+ return;
28
+ };
29
+ export const roundToNearestPixel = (resolveValue, value) => {
30
+ const size = resolveValue(value[2]);
31
+ if (typeof size === "number") {
32
+ return PixelRatio.roundToNearestPixel(size);
33
+ }
34
+ return;
35
+ };
36
+ //# sourceMappingURL=platform-functions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["PixelRatio","PlatformColor","StyleSheet","platformColor","resolveValue","value","color","Array","isArray","hairlineWidth","pixelRatio","get","fontScale","getFontScale","getPixelSizeForLayoutSize","size","roundToNearestPixel"],"sourceRoot":"../../../../../../src","sources":["runtime/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;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+
3
+ import { isStyleDescriptorArray } from "../../../utils/index.js";
4
+ export const scale = (resolveValue, descriptor) => {
5
+ const args = descriptor[2];
6
+ if (!isStyleDescriptorArray(args)) {
7
+ return {
8
+ scale: resolveValue(args)
9
+ };
10
+ }
11
+ const x = resolveValue(args[0]);
12
+ const y = resolveValue(args[1]);
13
+ const isXValid = typeof x === "string" || typeof x === "number";
14
+ const isYValid = typeof y === "string" || typeof y === "number";
15
+ if (isXValid && isYValid) {
16
+ return x === y ? {
17
+ scale: x
18
+ } : [{
19
+ scaleX: x
20
+ }, {
21
+ scaleY: y
22
+ }];
23
+ } else if (isXValid) {
24
+ return {
25
+ scaleX: x
26
+ };
27
+ } else if (isYValid) {
28
+ return {
29
+ scaleY: y
30
+ };
31
+ }
32
+ return;
33
+ };
34
+ export const rotate = (resolveValue, descriptor) => {
35
+ const args = descriptor[2];
36
+ if (!isStyleDescriptorArray(args)) {
37
+ return {
38
+ rotate: resolveValue(args)
39
+ };
40
+ }
41
+ const x = resolveValue(args[0]);
42
+ const y = resolveValue(args[1]);
43
+ const z = resolveValue(args[2]);
44
+ const isXValid = typeof x === "string" || typeof x === "number";
45
+ const isYValid = typeof y === "string" || typeof y === "number";
46
+ const isZValid = typeof z === "string" || typeof z === "number";
47
+ if (isXValid && isYValid && isZValid) {
48
+ return [{
49
+ rotateX: x
50
+ }, {
51
+ rotateY: y
52
+ }, {
53
+ rotateZ: z
54
+ }];
55
+ } else if (isXValid && isYValid) {
56
+ return [{
57
+ rotateX: x
58
+ }, {
59
+ rotateY: y
60
+ }];
61
+ } else if (isXValid && isZValid) {
62
+ return [{
63
+ rotateX: x
64
+ }, {
65
+ rotateZ: z
66
+ }];
67
+ } else if (isYValid && isZValid) {
68
+ return [{
69
+ rotateY: y
70
+ }, {
71
+ rotateZ: z
72
+ }];
73
+ } else if (isXValid) {
74
+ return {
75
+ rotateX: x
76
+ };
77
+ } else if (isYValid) {
78
+ return {
79
+ rotateY: y
80
+ };
81
+ } else if (isZValid) {
82
+ return {
83
+ rotateZ: z
84
+ };
85
+ }
86
+ return;
87
+ };
88
+ export const translate = (resolveValue, descriptor) => {
89
+ const args = descriptor[2];
90
+ if (!isStyleDescriptorArray(args)) {
91
+ return;
92
+ }
93
+ const x = resolveValue(args[0]);
94
+ const y = resolveValue(args[1]);
95
+ const isXValid = typeof x === "string" || typeof x === "number";
96
+ const isYValid = typeof y === "string" || typeof y === "number";
97
+ if (isXValid && isYValid) {
98
+ return [{
99
+ translateX: x
100
+ }, {
101
+ translateY: y
102
+ }];
103
+ } else if (isXValid) {
104
+ return {
105
+ translateX: x
106
+ };
107
+ } else if (isYValid) {
108
+ return {
109
+ translateY: y
110
+ };
111
+ }
112
+ return;
113
+ };
114
+ //# sourceMappingURL=transform-functions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["isStyleDescriptorArray","scale","resolveValue","descriptor","args","x","y","isXValid","isYValid","scaleX","scaleY","rotate","z","isZValid","rotateX","rotateY","rotateZ","translate","translateX","translateY"],"sourceRoot":"../../../../../../src","sources":["runtime/native/styles/functions/transform-functions.ts"],"mappings":";;AAAA,SAASA,sBAAsB,QAAQ,yBAAgB;AAGvD,OAAO,MAAMC,KAA4B,GAAGA,CAACC,YAAY,EAAEC,UAAU,KAAK;EACxE,MAAMC,IAAI,GAAGD,UAAU,CAAC,CAAC,CAAC;EAE1B,IAAI,CAACH,sBAAsB,CAACI,IAAI,CAAC,EAAE;IACjC,OAAO;MAAEH,KAAK,EAAEC,YAAY,CAACE,IAAI;IAAE,CAAC;EACtC;EAEA,MAAMC,CAAC,GAAGH,YAAY,CAACE,IAAI,CAAC,CAAC,CAAC,CAAC;EAC/B,MAAME,CAAC,GAAGJ,YAAY,CAACE,IAAI,CAAC,CAAC,CAAC,CAAC;EAE/B,MAAMG,QAAQ,GAAG,OAAOF,CAAC,KAAK,QAAQ,IAAI,OAAOA,CAAC,KAAK,QA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,IAAI,OAAOA,CAAC,KAAK,QAAQ;EAC/D,MAAMG,QAAQ,GAAG,OAAOF,CAAC,KAAK,QAAQ,IAAI,OAAOA,CAAC,KAAK,QAAQ;EAE/D,IAAIC,QAAQ,IAAIC,QAAQ,EAAE;IACxB,OAAO,CAAC;MAAEU,UAAU,EAAEb;IAAE,CAAC,EAAE;MAAEc,UAAU,EAAEb;IAAE,CAAC,CAAC;EAC/C,CAAC,MAAM,IAAIC,QAAQ,EAAE;IACnB,OAAO;MAAEW,UAAU,EAAEb;IAAE,CAAC;EAC1B,CAAC,MAAM,IAAIG,QAAQ,EAAE;IACnB,OAAO;MAAEW,UAAU,EAAEb;IAAE,CAAC;EAC1B;EAEA;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+
3
+ /* eslint-disable */
4
+
5
+ import { specificityCompareFn } from "../../utils/index.js";
6
+ import { getInteractionHandler } from "../react/interaction.js";
7
+ import { activeFamily, containerLayoutFamily, family, focusFamily, hoverFamily, observable, VAR_SYMBOL } from "../reactivity.js";
8
+ import { calculateProps } from "./calculate-props.js";
9
+ export const stylesFamily = family((hash, rules) => {
10
+ const sortedRules = Array.from(rules).sort(specificityCompareFn);
11
+ const obs = observable(read => calculateProps(read, sortedRules));
12
+
13
+ /**
14
+ * A family is a map, so we need to cleanup the observers when the the hash is no longer used
15
+ */
16
+ return Object.assign(obs, {
17
+ cleanup: effect => {
18
+ obs.observers.delete(effect);
19
+ if (obs.observers.size === 0) {
20
+ stylesFamily.delete(hash);
21
+ }
22
+ }
23
+ });
24
+ });
25
+ export function getStyledProps(state, inline) {
26
+ let result;
27
+ const styledProps = state.stylesObs?.get(state.styleEffect);
28
+ for (const config of state.configs) {
29
+ result = deepMergeConfig(config, styledProps?.normal, inline, true);
30
+ if (styledProps?.important) {
31
+ result = deepMergeConfig(config, result, styledProps.important);
32
+ }
33
+
34
+ // Apply the handlers
35
+ if (hoverFamily.has(state.ruleEffectGetter)) {
36
+ result ??= {};
37
+ result.onHoverIn = getInteractionHandler(state.ruleEffectGetter, "onHoverIn", inline?.onHoverIn);
38
+ result.onHoverOut = getInteractionHandler(state.ruleEffectGetter, "onHoverOut", inline?.onHoverOut);
39
+ }
40
+ if (activeFamily.has(state.ruleEffectGetter)) {
41
+ result ??= {};
42
+ result.onPress = getInteractionHandler(state.ruleEffectGetter, "onPress", inline?.onPress);
43
+ result.onPressIn = getInteractionHandler(state.ruleEffectGetter, "onPressIn", inline?.onPressIn);
44
+ result.onPressOut = getInteractionHandler(state.ruleEffectGetter, "onPressOut", inline?.onPressOut);
45
+ }
46
+ if (focusFamily.has(state.ruleEffectGetter)) {
47
+ result ??= {};
48
+ result.onBlur = getInteractionHandler(state.ruleEffectGetter, "onBlur", inline?.onBlur);
49
+ result.onFocus = getInteractionHandler(state.ruleEffectGetter, "onFocus", inline?.onFocus);
50
+ }
51
+ if (containerLayoutFamily.has(state.ruleEffectGetter)) {
52
+ result ??= {};
53
+ result.onLayout = getInteractionHandler(state.ruleEffectGetter, "onLayout", inline?.onLayout);
54
+ }
55
+ }
56
+ return result;
57
+ }
58
+ function deepMergeConfig(config, left, right, rightIsInline = false) {
59
+ if (!config.target || !right) {
60
+ return {
61
+ ...left
62
+ };
63
+ }
64
+ let result = Object.assign({}, left, right);
65
+ if (right && rightIsInline && config.source in right && config.target !== config.source) {
66
+ delete result[config.source];
67
+ }
68
+
69
+ /**
70
+ * If target is a path, deep merge until we get to the last key
71
+ */
72
+ if (Array.isArray(config.target) && config.target.length > 1) {
73
+ for (let i = 0; i < config.target.length - 1; i++) {
74
+ const key = config.target[i];
75
+ if (key === undefined) {
76
+ return result;
77
+ }
78
+ result[key] = deepMergeConfig({
79
+ source: config.source,
80
+ target: config.target.slice(i + 1)
81
+ }, left?.[key], right?.[key], rightIsInline);
82
+ }
83
+ return result;
84
+ }
85
+ const target = Array.isArray(config.target) ? config.target[0] : config.target;
86
+ if (target === undefined) {
87
+ return result;
88
+ }
89
+ let rightValue = right?.[target];
90
+
91
+ // Strip any inline variables from the target
92
+ if (rightIsInline && rightValue) {
93
+ if (Array.isArray(rightValue)) {
94
+ rightValue = rightValue.filter(v => {
95
+ return typeof v !== "object" || !(v && VAR_SYMBOL in v);
96
+ });
97
+ if (rightValue.length === 0) {
98
+ rightValue = undefined;
99
+ }
100
+ } else if (typeof rightValue === "object" && rightValue && VAR_SYMBOL in rightValue) {
101
+ rightValue = undefined;
102
+ delete result[target][VAR_SYMBOL];
103
+ }
104
+ }
105
+ if (rightValue !== undefined) {
106
+ result[target] = left && target in left ? [left[target], rightValue] : rightValue;
107
+ }
108
+ return result;
109
+ }
110
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["specificityCompareFn","getInteractionHandler","activeFamily","containerLayoutFamily","family","focusFamily","hoverFamily","observable","VAR_SYMBOL","calculateProps","stylesFamily","hash","rules","sortedRules","Array","from","sort","obs","read","Object","assign","cleanup","effect","observers","delete","size","getStyledProps","state","inline","result","styledProps","stylesObs","get","styleEffect","config","configs","deepMergeConfig","normal","important","has","ruleEffectGetter","onHoverIn","onHoverOut","onPress","onPressIn","onPressOut","onBlur","onFocus","onLayout","left","right","rightIsInline","target","source","isArray","length","i","key","undefined","slice","rightValue","filter","v"],"sourceRoot":"../../../../../src","sources":["runtime/native/styles/index.ts"],"mappings":";;AAAA;;AAEA,SAASA,oBAAoB,QAAQ,sBAAa;AAClD,SAASC,qBAAqB,QAAQ,yBAAsB;AAE5D,SACEC,YAAY,EACZC,qBAAqB,EACrBC,MAAM,EACNC,WAAW,EACXC,WAAW,EACXC,UAAU,EACVC,UAAU,QAGL,kBAAe;AACtB,SAASC,cAAc,QAAQ,sBAAmB;AAElD,OAAO,MAAMC,YAAY,GAAGN,MAAM,CAChC,CACEO,IAAY,EACZC,KAA6D,KAC1D;EACH,MAAMC,WAAW,GAAGC,KAAK,CAACC,IAAI,CAACH,KAAK,CAAC,CAACI,IAAI,CAAChB,oBAAoB,CAAC;EAEhE,M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E,MAAM,CAAC;;EAEhC;EACA,IAAID,aAAa,IAAIS,UAAU,EAAE;IAC/B,IAAI9C,KAAK,CAACwC,OAAO,CAACM,UAAU,CAAC,EAAE;MAC7BA,UAAU,GAAGA,UAAU,CAACC,MAAM,CAAEC,CAAC,IAAK;QACpC,OAAO,OAAOA,CAAC,KAAK,QAAQ,IAAI,EAAEA,CAAC,IAAItD,UAAU,IAAIsD,CAAC,CAAC;MACzD,CAAC,CAAC;MAEF,IAAIF,UAAU,CAACL,MAAM,KAAK,CAAC,EAAE;QAC3BK,UAAU,GAAGF,SAAS;MACxB;IACF,CAAC,MAAM,IACL,OAAOE,UAAU,KAAK,QAAQ,IAC9BA,UAAU,IACVpD,UAAU,IAAIoD,UAAU,EACxB;MACAA,UAAU,GAAGF,SAAS;MACtB,OAAO7B,MAAM,CAACuB,MAAM,CAAC,CAAC5C,UAAU,CAAC;IACnC;EACF;EAEA,IAAIoD,UAAU,KAAKF,SAAS,EAAE;IAC5B7B,MAAM,CAACuB,MAAM,CAAC,GACZH,IAAI,IAAIG,MAAM,IAAIH,IAAI,GAAG,CAACA,IAAI,CAACG,MAAM,CAAC,EAAEQ,UAAU,CAAC,GAAGA,UAAU;EACpE;EAEA,OAAO/B,MAAM;AACf","ignoreList":[]}
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+
3
+ /* eslint-disable */
4
+
5
+ import { transformKeys } from "./defaults.js";
6
+ import * as functions from "./functions/index.js";
7
+ import * as shorthands from "./shorthands/index.js";
8
+ import { em, rem, vh, vw } from "./units.js";
9
+ import { varResolver } from "./variables.js";
10
+ const functionResolvers = {
11
+ ...shorthands,
12
+ ...functions,
13
+ animationName: shorthands.animation,
14
+ em,
15
+ rem,
16
+ vh,
17
+ vw
18
+ };
19
+ export function resolveValue(value, get, options) {
20
+ const {
21
+ castToArray
22
+ } = options;
23
+ switch (typeof value) {
24
+ case "bigint":
25
+ case "symbol":
26
+ case "undefined":
27
+ case "function":
28
+ // These types are not supported
29
+ return;
30
+ case "number":
31
+ case "boolean":
32
+ return value;
33
+ case "string":
34
+ {
35
+ if (value === "unset") {
36
+ return null;
37
+ } else if (value.endsWith("px")) {
38
+ // Inline vars() might set a value with a px suffix
39
+ return parseInt(value.slice(0, -2), 10);
40
+ } else {
41
+ return value;
42
+ }
43
+ }
44
+ case "object":
45
+ {
46
+ if (!Array.isArray(value)) {
47
+ return value;
48
+ }
49
+ if (isDescriptorArray(value)) {
50
+ value = value.map(d => resolveValue(d, get, options)).filter(d => d !== undefined);
51
+ if (castToArray && !Array.isArray(value)) {
52
+ return [value];
53
+ } else {
54
+ return value;
55
+ }
56
+ }
57
+ const name = value[1];
58
+ const simpleResolve = value => {
59
+ return resolveValue(value, get, options);
60
+ };
61
+ if (name === "var") {
62
+ return varResolver(simpleResolve, value, get, options);
63
+ } else if (name in functionResolvers) {
64
+ const fn = functionResolvers[name];
65
+ if (typeof fn !== "function") {
66
+ throw new Error(`Unknown function: ${name}`);
67
+ }
68
+ value = fn(simpleResolve, value, get, options);
69
+ } else if (transformKeys.has(name)) {
70
+ // translate, rotate, scale, etc.
71
+ return {
72
+ [name]: simpleResolve(value[2], castToArray)
73
+ };
74
+ } else {
75
+ let args = simpleResolve(value[2], castToArray);
76
+ if (args === undefined) {
77
+ return;
78
+ } else if (Array.isArray(args)) {
79
+ let joinedArgs = args.map(arg => {
80
+ if (Array.isArray(arg)) {
81
+ return arg.flat().join(" ");
82
+ }
83
+ return arg;
84
+ }).filter(value => value !== "/").join(", ");
85
+ if (name === "radial-gradient") {
86
+ // Nativewind / Tailwind CSS hack which can force the 'in oklab' color space
87
+ joinedArgs = joinedArgs.replace("in oklab, ", "");
88
+ }
89
+ value = `${name}(${joinedArgs})`;
90
+ } else {
91
+ value = `${name}(${args})`;
92
+ }
93
+ }
94
+ return castToArray && value && !Array.isArray(value) ? [value] : value;
95
+ }
96
+ }
97
+ }
98
+ function isDescriptorArray(value) {
99
+ return Array.isArray(value) && typeof value[0] === "object" ? Array.isArray(value[0]) : true;
100
+ }
101
+ //# sourceMappingURL=resolve.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["transformKeys","functions","shorthands","em","rem","vh","vw","varResolver","functionResolvers","animationName","animation","resolveValue","value","get","options","castToArray","endsWith","parseInt","slice","Array","isArray","isDescriptorArray","map","d","filter","undefined","name","simpleResolve","fn","Error","has","args","joinedArgs","arg","flat","join","replace"],"sourceRoot":"../../../../../src","sources":["runtime/native/styles/resolve.ts"],"mappings":";;AAAA;;AAUA,SAASA,aAAa,QAAQ,eAAY;AAC1C,OAAO,KAAKC,SAAS,MAAM,sBAAa;AACxC,OAAO,KAAKC,UAAU,MAAM,uBAAc;AAC1C,SAASC,EAAE,EAAEC,GAAG,EAAEC,EAAE,EAAEC,EAAE,QAAQ,YAAS;AACzC,SAASC,WAAW,QAAQ,gBAAa;AAqBzC,MAAMC,iBAAiB,GAAG;EACxB,GAAGN,UAAU;EACb,GAAGD,SAAS;EACZQ,aAAa,EAAEP,UAAU,CAACQ,SAAS;EACnCP,EAAE;EACFC,GAAG;EACHC,EAAE;EACFC;AACF,CAAC;AAYD,OAAO,SAASK,YAAYA,CAC1BC,KAAsB,EACtBC,GAAW,EACXC,OAA4B,EACvB;EACL,MAAM;IAAEC;EAAY,CAAC,GAAGD,OAAO;EAE/B,QAAQ,OAAOF,KAAK;IAClB,KAAK,QAAQ;IACb,KAAK,QAAQ;IACb,KAAK,WAAW;IAChB,KAAK,UAAU;MACb;MACA;IACF,KAAK,QAAQ;IACb,KAAK,SAAS;MACZ,OAAOA,KAAK;IACd,KAAK,QAAQ;MAAE;QACb,IAAIA,KAAK,KAAK,OAAO,EAAE;UACrB,OAAO,IAAI;QACb,CAAC,MAAM,IAAIA,KAAK,CAACI,QAAQ,CAAC,IAAI,CAAC,EAAE;UAC/B;UACA,OAAOC,QAAQ,CAACL,KAAK,CAACM,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QACzC,CAAC,MAAM;UACL,OA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 /* eslint-disable */
4
+ import { setDeepPath } from "../../../utils/objects.js";
5
+ import { isStyleDescriptorArray } from "../../../utils/style-value.js";
6
+ import { ShortHandSymbol } from "../constants.js";
7
+ import { defaultValues } from "../defaults.js";
8
+ export function shorthandHandler(mappings, defaults, returnType = "shorthandObject") {
9
+ return (resolve, value, __, {
10
+ castToArray
11
+ }) => {
12
+ let args = isStyleDescriptorArray(value) ? resolve(value) : Array.isArray(value) ? resolve(value[2]) : value;
13
+ if (!Array.isArray(args)) {
14
+ return;
15
+ }
16
+ args = args.flat();
17
+ if (!Array.isArray(args)) {
18
+ return;
19
+ }
20
+ const match = mappings.find(mapping => {
21
+ return args.length === mapping.length && mapping.every((map, index) => {
22
+ const type = map[1];
23
+ const value = args[index];
24
+ if (Array.isArray(type)) {
25
+ return type.includes(value) || type.includes(typeof value);
26
+ }
27
+ switch (type) {
28
+ case "string":
29
+ case "number":
30
+ return typeof value === type;
31
+ case "color":
32
+ return typeof value === "string" || typeof value === "object";
33
+ case "length":
34
+ return typeof value === "string" ? value.endsWith("%") : typeof value === "number";
35
+ }
36
+ return;
37
+ });
38
+ });
39
+ if (!match) return;
40
+ const seenDefaults = new Set(defaults);
41
+ const tuples = [...match.map((map, index) => {
42
+ if (map.length === 3) {
43
+ seenDefaults.delete(map);
44
+ }
45
+ let value = args[index];
46
+ if (castToArray && value && !Array.isArray(value)) {
47
+ value = [value];
48
+ }
49
+ return [value, map[0]];
50
+ }), ...Array.from(seenDefaults).map(map => {
51
+ let value = defaultValues[map[2]] ?? map[2];
52
+ if (castToArray && value && !Array.isArray(value)) {
53
+ value = [value];
54
+ }
55
+ return [value, map[0]];
56
+ })];
57
+ if (returnType === "shorthandObject" || returnType === "object") {
58
+ const target = returnType === "shorthandObject" ? {
59
+ [ShortHandSymbol]: true
60
+ } : {};
61
+ for (const [value, prop] of tuples) {
62
+ if (typeof prop === "string") {
63
+ target[prop] = value;
64
+ } else {
65
+ setDeepPath(target, prop, value);
66
+ }
67
+ }
68
+ return target;
69
+ } else {
70
+ return tuples;
71
+ }
72
+ };
73
+ }
74
+ //# sourceMappingURL=_handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["setDeepPath","isStyleDescriptorArray","ShortHandSymbol","defaultValues","shorthandHandler","mappings","defaults","returnType","resolve","value","__","castToArray","args","Array","isArray","flat","match","find","mapping","length","every","map","index","type","includes","endsWith","seenDefaults","Set","tuples","delete","from","target","prop"],"sourceRoot":"../../../../../../src","sources":["runtime/native/styles/shorthands/_handler.ts"],"mappings":";;AAAA;AACA,SAASA,WAAW,QAAQ,2BAAwB;AACpD,SAASC,sBAAsB,QAAQ,+BAA4B;AACnE,SAASC,eAAe,QAAQ,iBAAc;AAC9C,SAASC,aAAa,QAAQ,gBAAa;AAoB3C,OAAO,SAASC,gBAAgBA,CAC9BC,QAAoC,EACpCC,QAAiC,EACjCC,UAAmD,GAAG,iBAAiB,EACxD;EACf,OAAO,CAACC,OAAO,EAAEC,KAAK,EAAEC,EAAE,EAAE;IAAEC;EAAY,CAAC,KAAK;IAC9C,IAAIC,IAAI,GAAGX,sBAAsB,CAACQ,KAAK,CAAC,GACpCD,OAAO,CAACC,KAAK,CAAC,GACdI,KAAK,CAACC,OAAO,CAACL,KAAK,CAAC,GAClBD,OAAO,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC,GACjBA,KAAK;IAEX,IAAI,CAACI,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,EAAE;MACxB;IACF;IAEAA,IAAI,GAAGA,IAAI,CAACG,IAAI,CAAC,CAAC;IAElB,IAAI,CAACF,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,EAAE;MACxB;IACF;IAEA,MAAMI,KAAK,GAAGX,QAAQ,CAACY,IAAI,CAAEC,OAAO,IAAK;MACvC,OACEN,IAAI,CAACO,MAAM,KAAKD,OAAO,CAACC,MAAM,IAC9BD,OAAO,CAACE,KAAK,CAAC,CAACC,GAAG,EAAEC,KAAK,KAAK;QAC5B,MAAMC,IAA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5BA,GAAG,IAA2C;MAC7C,IAAIZ,KAAK,GAAGN,aAAa,CAACkB,GAAG,CAAC,CAAC,CAAC,CAAC,IAAIA,GAAG,CAAC,CAAC,CAAC;MAC3C,IAAIV,WAAW,IAAIF,KAAK,IAAI,CAACI,KAAK,CAACC,OAAO,CAACL,KAAK,CAAC,EAAE;QACjDA,KAAK,GAAG,CAACA,KAAK,CAAC;MACjB;MAEA,OAAO,CAACA,KAAK,EAAEY,GAAG,CAAC,CAAC,CAAC,CAAC;IACxB,CACF,CAAC,CACF;IAED,IAAId,UAAU,KAAK,iBAAiB,IAAIA,UAAU,KAAK,QAAQ,EAAE;MAC/D,MAAMwB,MAA+B,GACnCxB,UAAU,KAAK,iBAAiB,GAAG;QAAE,CAACL,eAAe,GAAG;MAAK,CAAC,GAAG,CAAC,CAAC;MAErE,KAAK,MAAM,CAACO,KAAK,EAAEuB,IAAI,CAAC,IAAIJ,MAAM,EAAE;QAClC,IAAI,OAAOI,IAAI,KAAK,QAAQ,EAAE;UAC5BD,MAAM,CAACC,IAAI,CAAC,GAAGvB,KAAK;QACtB,CAAC,MAAM;UACLT,WAAW,CAAC+B,MAAM,EAAEC,IAAI,EAAEvB,KAAK,CAAC;QAClC;MACF;MAEA,OAAOsB,MAAM;IACf,CAAC,MAAM;MACL,OAAOH,MAAM;IACf;EACF,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+
3
+ /* eslint-disable */
4
+ import { applyShorthand } from "../../../utils/index.js";
5
+ import { StyleCollection } from "../../injection.js";
6
+ import { shorthandHandler } from "./_handler.js";
7
+ const name = ["animationName", "string", "none"];
8
+ const delay = ["animationDelay", "number", 0];
9
+ const duration = ["animationDuration", "number", 0];
10
+ const iteration = ["animationIterationCount", ["number", "infinite"], 1];
11
+ const fill = ["animationFillMode", ["none", "forwards", "backwards", "both"], "none"];
12
+ const playState = ["animationPlayState", ["running", "paused"], "running"];
13
+ const direction = ["animationDirection", ["normal", "reverse", "alternate", "alternate-reverse"], "normal"];
14
+ const timingFunction = ["animationTimingFunction", ["linear", "ease", "ease-in", "ease-out", "ease-in-out", "object"], "ease"];
15
+ export const animationShorthand = shorthandHandler([[name], [duration, name], [name, duration], [name, duration, iteration], [name, duration, timingFunction, iteration], [duration, delay, name], [duration, delay, iteration, name], [duration, delay, iteration, timingFunction, name], [name, duration, timingFunction, delay, iteration, fill]], [name, delay, direction, duration, fill, iteration, playState, timingFunction], "tuples");
16
+ export const animation = (resolveValue, value, get, options) => {
17
+ const animationShortHandTuples = animationShorthand(resolveValue, value, get, options);
18
+ if (!Array.isArray(animationShortHandTuples)) {
19
+ return;
20
+ }
21
+ animationShortHandTuples.pop();
22
+ const nameTuple = animationShortHandTuples.find(tuple => tuple[1] === "animationName");
23
+ const name = nameTuple?.[0];
24
+ if (!nameTuple || typeof name !== "string") {
25
+ return;
26
+ }
27
+ const keyframes = get(StyleCollection.keyframes(name));
28
+ const animation = {};
29
+ for (const [progress, declarations] of keyframes) {
30
+ animation[progress] ??= {};
31
+ const props = options.calculateProps?.(get,
32
+ // Cast this into a StyleRule[]
33
+ [{
34
+ s: [0],
35
+ d: declarations
36
+ }], options.renderGuards, options.inheritedVariables, options.inlineVariables);
37
+ if (!props) {
38
+ continue;
39
+ }
40
+ if (props.normal) {
41
+ Object.assign(animation[progress], props.normal);
42
+ }
43
+ if (props.important) {
44
+ Object.assign(animation[progress], props.important);
45
+ }
46
+ animation[progress] = animation[progress].style;
47
+ }
48
+ nameTuple[0] = animation;
49
+ return applyShorthand(animationShortHandTuples);
50
+ };
51
+ //# sourceMappingURL=animation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["applyShorthand","StyleCollection","shorthandHandler","name","delay","duration","iteration","fill","playState","direction","timingFunction","animationShorthand","animation","resolveValue","value","get","options","animationShortHandTuples","Array","isArray","pop","nameTuple","find","tuple","keyframes","progress","declarations","props","calculateProps","s","d","renderGuards","inheritedVariables","inlineVariables","normal","Object","assign","important","style"],"sourceRo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,CAAC;MAAEc,CAAC,EAAE,CAAC,CAAC,CAAC;MAAEC,CAAC,EAAEJ;IAAa,CAAC,CAAC,EAC7BV,OAAO,CAACe,YAAY,EACpBf,OAAO,CAACgB,kBAAkB,EAC1BhB,OAAO,CAACiB,eACV,CAAC;IAED,IAAI,CAACN,KAAK,EAAE;MACV;IACF;IAEA,IAAIA,KAAK,CAACO,MAAM,EAAE;MAChBC,MAAM,CAACC,MAAM,CAACxB,SAAS,CAACa,QAAQ,CAAC,EAAEE,KAAK,CAACO,MAAM,CAAC;IAClD;IACA,IAAIP,KAAK,CAACU,SAAS,EAAE;MACnBF,MAAM,CAACC,MAAM,CAACxB,SAAS,CAACa,QAAQ,CAAC,EAAEE,KAAK,CAACU,SAAS,CAAC;IACrD;IAEAzB,SAAS,CAACa,QAAQ,CAAC,GAAGb,SAAS,CAACa,QAAQ,CAAC,CAACa,KAAK;EACjD;EAEAjB,SAAS,CAAC,CAAC,CAAC,GAAGT,SAAS;EAExB,OAAOZ,cAAc,CAACiB,wBAAwB,CAAC;AACjD,CAAC","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ import { shorthandHandler } from "./_handler.js";
4
+ const width = ["borderWidth", "number"];
5
+ const style = ["borderStyle", "string"];
6
+ const color = ["borderColor", "color", "color"];
7
+ export const border = shorthandHandler([[width, style, color], [style, color], [width, style], [style]], []);
8
+ //# sourceMappingURL=border.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["shorthandHandler","width","style","color","border"],"sourceRoot":"../../../../../../src","sources":["runtime/native/styles/shorthands/border.ts"],"mappings":";;AAAA,SAASA,gBAAgB,QAAQ,eAAY;AAE7C,MAAMC,KAAK,GAAG,CAAC,aAAa,EAAE,QAAQ,CAAU;AAChD,MAAMC,KAAK,GAAG,CAAC,aAAa,EAAE,QAAQ,CAAU;AAChD,MAAMC,KAAK,GAAG,CAAC,aAAa,EAAE,OAAO,EAAE,OAAO,CAAU;AAExD,OAAO,MAAMC,MAAM,GAAGJ,gBAAgB,CACpC,CAAC,CAACC,KAAK,EAAEC,KAAK,EAAEC,KAAK,CAAC,EAAE,CAACD,KAAK,EAAEC,KAAK,CAAC,EAAE,CAACF,KAAK,EAAEC,KAAK,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC,EAChE,EACF,CAAC","ignoreList":[]}