react-native-css 2.1.1 → 3.0.0-nightly.27bd5e2

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 (759) 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 +101 -0
  16. package/dist/commonjs/compiler/atRules.js.map +1 -0
  17. package/dist/commonjs/compiler/attributes.test.js +20 -0
  18. package/dist/commonjs/compiler/attributes.test.js.map +1 -0
  19. package/dist/commonjs/compiler/compiler.js +235 -0
  20. package/dist/commonjs/compiler/compiler.js.map +1 -0
  21. package/dist/commonjs/compiler/compiler.types.js +4 -0
  22. package/dist/commonjs/compiler/compiler.types.js.map +1 -0
  23. package/dist/commonjs/compiler/container-query.js +63 -0
  24. package/dist/commonjs/compiler/container-query.js.map +1 -0
  25. package/dist/commonjs/compiler/declarations.js +2088 -0
  26. package/dist/commonjs/compiler/declarations.js.map +1 -0
  27. package/dist/commonjs/compiler/functions-web.js +44 -0
  28. package/dist/commonjs/compiler/functions-web.js.map +1 -0
  29. package/dist/commonjs/compiler/functions.js +59 -0
  30. package/dist/commonjs/compiler/functions.js.map +1 -0
  31. package/dist/commonjs/compiler/index.js +17 -0
  32. package/dist/commonjs/compiler/index.js.map +1 -0
  33. package/dist/commonjs/compiler/inheritance.test.js +78 -0
  34. package/dist/commonjs/compiler/inheritance.test.js.map +1 -0
  35. package/dist/commonjs/compiler/keyframes.js +60 -0
  36. package/dist/commonjs/compiler/keyframes.js.map +1 -0
  37. package/dist/commonjs/compiler/media-query.js +172 -0
  38. package/dist/commonjs/compiler/media-query.js.map +1 -0
  39. package/dist/commonjs/compiler/selectors.js +410 -0
  40. package/dist/commonjs/compiler/selectors.js.map +1 -0
  41. package/dist/commonjs/compiler/split-by-delimiter.js +21 -0
  42. package/dist/commonjs/compiler/split-by-delimiter.js.map +1 -0
  43. package/dist/commonjs/compiler/stylesheet.js +374 -0
  44. package/dist/commonjs/compiler/stylesheet.js.map +1 -0
  45. package/dist/commonjs/components/Text.js +17 -0
  46. package/dist/commonjs/components/Text.js.map +1 -0
  47. package/dist/commonjs/components/View.js +17 -0
  48. package/dist/commonjs/components/View.js.map +1 -0
  49. package/dist/commonjs/components/index.js +36 -0
  50. package/dist/commonjs/components/index.js.map +1 -0
  51. package/dist/commonjs/doctor/index.js +6 -0
  52. package/dist/commonjs/doctor/index.js.map +1 -0
  53. package/dist/commonjs/index.js +28 -0
  54. package/dist/commonjs/index.js.map +1 -0
  55. package/dist/commonjs/jest/expect.d.js +2 -0
  56. package/dist/commonjs/jest/expect.d.js.map +1 -0
  57. package/dist/commonjs/jest/index.js +50 -0
  58. package/dist/commonjs/jest/index.js.map +1 -0
  59. package/dist/commonjs/jest/setup.js +3 -0
  60. package/dist/commonjs/jest/setup.js.map +1 -0
  61. package/dist/commonjs/jest/setupAfterEnv.js +15 -0
  62. package/dist/commonjs/jest/setupAfterEnv.js.map +1 -0
  63. package/dist/commonjs/metro/index.js +165 -0
  64. package/dist/commonjs/metro/index.js.map +1 -0
  65. package/dist/commonjs/metro/injection-code.js +32 -0
  66. package/dist/commonjs/metro/injection-code.js.map +1 -0
  67. package/dist/commonjs/metro/metro-transformer.js +21 -0
  68. package/dist/commonjs/metro/metro-transformer.js.map +1 -0
  69. package/dist/commonjs/metro/picocolors.js +71 -0
  70. package/dist/commonjs/metro/picocolors.js.map +1 -0
  71. package/dist/commonjs/metro/resolver.js +62 -0
  72. package/dist/commonjs/metro/resolver.js.map +1 -0
  73. package/dist/commonjs/metro/stringify.js +59 -0
  74. package/dist/commonjs/metro/stringify.js.map +1 -0
  75. package/dist/commonjs/metro/typescript.js +47 -0
  76. package/dist/commonjs/metro/typescript.js.map +1 -0
  77. package/dist/commonjs/package.json +1 -0
  78. package/dist/commonjs/poison.pill.js +36 -0
  79. package/dist/commonjs/poison.pill.js.map +1 -0
  80. package/dist/commonjs/runtime/index.js +17 -0
  81. package/dist/commonjs/runtime/index.js.map +1 -0
  82. package/dist/commonjs/runtime/native/api.js +90 -0
  83. package/dist/commonjs/runtime/native/api.js.map +1 -0
  84. package/dist/commonjs/runtime/native/conditions/container-query.js +116 -0
  85. package/dist/commonjs/runtime/native/conditions/container-query.js.map +1 -0
  86. package/dist/commonjs/runtime/native/conditions/guards.js +33 -0
  87. package/dist/commonjs/runtime/native/conditions/guards.js.map +1 -0
  88. package/dist/commonjs/runtime/native/conditions/index.js +74 -0
  89. package/dist/commonjs/runtime/native/conditions/index.js.map +1 -0
  90. package/dist/commonjs/runtime/native/conditions/media-query.js +93 -0
  91. package/dist/commonjs/runtime/native/conditions/media-query.js.map +1 -0
  92. package/dist/commonjs/runtime/native/index.js +28 -0
  93. package/dist/commonjs/runtime/native/index.js.map +1 -0
  94. package/dist/commonjs/runtime/native/injection.js +98 -0
  95. package/dist/commonjs/runtime/native/injection.js.map +1 -0
  96. package/dist/commonjs/runtime/native/metro.js +6 -0
  97. package/dist/commonjs/runtime/native/metro.js.map +1 -0
  98. package/dist/commonjs/runtime/native/react/interaction.js +63 -0
  99. package/dist/commonjs/runtime/native/react/interaction.js.map +1 -0
  100. package/dist/commonjs/runtime/native/react/rules.js +253 -0
  101. package/dist/commonjs/runtime/native/react/rules.js.map +1 -0
  102. package/dist/commonjs/runtime/native/react/useNativeCss.js +158 -0
  103. package/dist/commonjs/runtime/native/react/useNativeCss.js.map +1 -0
  104. package/dist/commonjs/runtime/native/react/usePassthrough.js +50 -0
  105. package/dist/commonjs/runtime/native/react/usePassthrough.js.map +1 -0
  106. package/dist/commonjs/runtime/native/reactivity.js +189 -0
  107. package/dist/commonjs/runtime/native/reactivity.js.map +1 -0
  108. package/dist/commonjs/runtime/native/styles/animation.js +88 -0
  109. package/dist/commonjs/runtime/native/styles/animation.js.map +1 -0
  110. package/dist/commonjs/runtime/native/styles/border.js +12 -0
  111. package/dist/commonjs/runtime/native/styles/border.js.map +1 -0
  112. package/dist/commonjs/runtime/native/styles/box-shadow.js +40 -0
  113. package/dist/commonjs/runtime/native/styles/box-shadow.js.map +1 -0
  114. package/dist/commonjs/runtime/native/styles/calc.js +85 -0
  115. package/dist/commonjs/runtime/native/styles/calc.js.map +1 -0
  116. package/dist/commonjs/runtime/native/styles/calculate-props.js +123 -0
  117. package/dist/commonjs/runtime/native/styles/calculate-props.js.map +1 -0
  118. package/dist/commonjs/runtime/native/styles/constants.js +9 -0
  119. package/dist/commonjs/runtime/native/styles/constants.js.map +1 -0
  120. package/dist/commonjs/runtime/native/styles/defaults.js +69 -0
  121. package/dist/commonjs/runtime/native/styles/defaults.js.map +1 -0
  122. package/dist/commonjs/runtime/native/styles/filters.js +84 -0
  123. package/dist/commonjs/runtime/native/styles/filters.js.map +1 -0
  124. package/dist/commonjs/runtime/native/styles/index.js +115 -0
  125. package/dist/commonjs/runtime/native/styles/index.js.map +1 -0
  126. package/dist/commonjs/runtime/native/styles/platform-functions.js +46 -0
  127. package/dist/commonjs/runtime/native/styles/platform-functions.js.map +1 -0
  128. package/dist/commonjs/runtime/native/styles/resolve.js +129 -0
  129. package/dist/commonjs/runtime/native/styles/resolve.js.map +1 -0
  130. package/dist/commonjs/runtime/native/styles/shorthand.js +79 -0
  131. package/dist/commonjs/runtime/native/styles/shorthand.js.map +1 -0
  132. package/dist/commonjs/runtime/native/styles/text-shadow.js +13 -0
  133. package/dist/commonjs/runtime/native/styles/text-shadow.js.map +1 -0
  134. package/dist/commonjs/runtime/native/styles/transform.js +23 -0
  135. package/dist/commonjs/runtime/native/styles/transform.js.map +1 -0
  136. package/dist/commonjs/runtime/native/styles/units.js +49 -0
  137. package/dist/commonjs/runtime/native/styles/units.js.map +1 -0
  138. package/dist/commonjs/runtime/native/styles/variables.js +78 -0
  139. package/dist/commonjs/runtime/native/styles/variables.js.map +1 -0
  140. package/dist/commonjs/runtime/runtime.js +17 -0
  141. package/dist/commonjs/runtime/runtime.js.map +1 -0
  142. package/dist/commonjs/runtime/runtime.native.js +17 -0
  143. package/dist/commonjs/runtime/runtime.native.js.map +1 -0
  144. package/dist/commonjs/runtime/runtime.types.js +6 -0
  145. package/dist/commonjs/runtime/runtime.types.js.map +1 -0
  146. package/dist/commonjs/runtime/utils/components.js +18 -0
  147. package/dist/commonjs/runtime/utils/components.js.map +1 -0
  148. package/dist/commonjs/runtime/utils/dot-notation.types.js +2 -0
  149. package/dist/commonjs/runtime/utils/dot-notation.types.js.map +1 -0
  150. package/dist/commonjs/runtime/utils/index.js +61 -0
  151. package/dist/commonjs/runtime/utils/index.js.map +1 -0
  152. package/dist/commonjs/runtime/utils/objects.js +84 -0
  153. package/dist/commonjs/runtime/utils/objects.js.map +1 -0
  154. package/dist/commonjs/runtime/utils/specificity.js +43 -0
  155. package/dist/commonjs/runtime/utils/specificity.js.map +1 -0
  156. package/dist/commonjs/runtime/utils/style-value.js +21 -0
  157. package/dist/commonjs/runtime/utils/style-value.js.map +1 -0
  158. package/dist/commonjs/runtime/utils/utils.types.js +6 -0
  159. package/dist/commonjs/runtime/utils/utils.types.js.map +1 -0
  160. package/dist/commonjs/runtime/web/api.js +68 -0
  161. package/dist/commonjs/runtime/web/api.js.map +1 -0
  162. package/dist/commonjs/runtime/web/assign-style.js +27 -0
  163. package/dist/commonjs/runtime/web/assign-style.js.map +1 -0
  164. package/dist/commonjs/runtime/web/index.js +18 -0
  165. package/dist/commonjs/runtime/web/index.js.map +1 -0
  166. package/dist/commonjs/runtime/web/metro.js +6 -0
  167. package/dist/commonjs/runtime/web/metro.js.map +1 -0
  168. package/dist/module/babel/allowedModules.js +19 -0
  169. package/dist/module/babel/allowedModules.js.map +1 -0
  170. package/dist/module/babel/helpers.js +21 -0
  171. package/dist/module/babel/helpers.js.map +1 -0
  172. package/dist/module/babel/import-plugin.js +97 -0
  173. package/dist/module/babel/import-plugin.js.map +1 -0
  174. package/dist/module/babel/index.js +9 -0
  175. package/dist/module/babel/index.js.map +1 -0
  176. package/dist/module/babel/react-native-web.js +112 -0
  177. package/dist/module/babel/react-native-web.js.map +1 -0
  178. package/dist/module/babel/react-native.js +112 -0
  179. package/dist/module/babel/react-native.js.map +1 -0
  180. package/dist/module/compiler/atRules.js +97 -0
  181. package/dist/module/compiler/atRules.js.map +1 -0
  182. package/dist/module/compiler/attributes.test.js +20 -0
  183. package/dist/module/compiler/attributes.test.js.map +1 -0
  184. package/dist/module/compiler/compiler.js +230 -0
  185. package/dist/module/compiler/compiler.js.map +1 -0
  186. package/dist/module/compiler/compiler.types.js +60 -0
  187. package/dist/module/compiler/compiler.types.js.map +1 -0
  188. package/dist/module/compiler/container-query.js +59 -0
  189. package/dist/module/compiler/container-query.js.map +1 -0
  190. package/dist/module/compiler/declarations.js +2014 -0
  191. package/dist/module/compiler/declarations.js.map +1 -0
  192. package/dist/module/compiler/functions-web.js +32 -0
  193. package/dist/module/compiler/functions-web.js.map +1 -0
  194. package/dist/module/compiler/functions.js +47 -0
  195. package/dist/module/compiler/functions.js.map +1 -0
  196. package/dist/module/compiler/index.js +9 -0
  197. package/dist/module/compiler/index.js.map +1 -0
  198. package/dist/module/compiler/inheritance.test.js +78 -0
  199. package/dist/module/compiler/inheritance.test.js.map +1 -0
  200. package/dist/module/compiler/keyframes.js +54 -0
  201. package/dist/module/compiler/keyframes.js.map +1 -0
  202. package/dist/module/compiler/media-query.js +166 -0
  203. package/dist/module/compiler/media-query.js.map +1 -0
  204. package/dist/module/compiler/selectors.js +405 -0
  205. package/dist/module/compiler/selectors.js.map +1 -0
  206. package/dist/module/compiler/split-by-delimiter.js +17 -0
  207. package/dist/module/compiler/split-by-delimiter.js.map +1 -0
  208. package/dist/module/compiler/stylesheet.js +369 -0
  209. package/dist/module/compiler/stylesheet.js.map +1 -0
  210. package/dist/module/components/Text.js +12 -0
  211. package/dist/module/components/Text.js.map +1 -0
  212. package/dist/module/components/View.js +12 -0
  213. package/dist/module/components/View.js.map +1 -0
  214. package/dist/module/components/index.js +6 -0
  215. package/dist/module/components/index.js.map +1 -0
  216. package/dist/module/doctor/index.js +4 -0
  217. package/dist/module/doctor/index.js.map +1 -0
  218. package/dist/module/index.js +5 -0
  219. package/dist/module/index.js.map +1 -0
  220. package/dist/module/jest/expect.d.js +2 -0
  221. package/dist/module/jest/expect.d.js.map +1 -0
  222. package/dist/module/jest/index.js +29 -0
  223. package/dist/module/jest/index.js.map +1 -0
  224. package/dist/module/jest/setup.js +3 -0
  225. package/dist/module/jest/setup.js.map +1 -0
  226. package/dist/module/jest/setupAfterEnv.js +15 -0
  227. package/dist/module/jest/setupAfterEnv.js.map +1 -0
  228. package/dist/module/metro/index.js +159 -0
  229. package/dist/module/metro/index.js.map +1 -0
  230. package/dist/module/metro/injection-code.js +27 -0
  231. package/dist/module/metro/injection-code.js.map +1 -0
  232. package/dist/module/metro/metro-transformer.js +17 -0
  233. package/dist/module/metro/metro-transformer.js.map +1 -0
  234. package/dist/module/metro/picocolors.js +67 -0
  235. package/dist/module/metro/picocolors.js.map +1 -0
  236. package/dist/module/metro/resolver.js +57 -0
  237. package/dist/module/metro/resolver.js.map +1 -0
  238. package/dist/module/metro/stringify.js +55 -0
  239. package/dist/module/metro/stringify.js.map +1 -0
  240. package/dist/module/metro/typescript.js +42 -0
  241. package/dist/module/metro/typescript.js.map +1 -0
  242. package/dist/module/package.json +1 -0
  243. package/dist/module/poison.pill.js +34 -0
  244. package/dist/module/poison.pill.js.map +1 -0
  245. package/dist/module/runtime/index.js +9 -0
  246. package/dist/module/runtime/index.js.map +1 -0
  247. package/dist/module/runtime/native/api.js +75 -0
  248. package/dist/module/runtime/native/api.js.map +1 -0
  249. package/dist/module/runtime/native/conditions/container-query.js +110 -0
  250. package/dist/module/runtime/native/conditions/container-query.js.map +1 -0
  251. package/dist/module/runtime/native/conditions/guards.js +29 -0
  252. package/dist/module/runtime/native/conditions/guards.js.map +1 -0
  253. package/dist/module/runtime/native/conditions/index.js +70 -0
  254. package/dist/module/runtime/native/conditions/index.js.map +1 -0
  255. package/dist/module/runtime/native/conditions/media-query.js +88 -0
  256. package/dist/module/runtime/native/conditions/media-query.js.map +1 -0
  257. package/dist/module/runtime/native/index.js +5 -0
  258. package/dist/module/runtime/native/index.js.map +1 -0
  259. package/dist/module/runtime/native/injection.js +93 -0
  260. package/dist/module/runtime/native/injection.js.map +1 -0
  261. package/dist/module/runtime/native/metro.js +5 -0
  262. package/dist/module/runtime/native/metro.js.map +1 -0
  263. package/dist/module/runtime/native/react/interaction.js +59 -0
  264. package/dist/module/runtime/native/react/interaction.js.map +1 -0
  265. package/dist/module/runtime/native/react/rules.js +246 -0
  266. package/dist/module/runtime/native/react/rules.js.map +1 -0
  267. package/dist/module/runtime/native/react/useNativeCss.js +152 -0
  268. package/dist/module/runtime/native/react/useNativeCss.js.map +1 -0
  269. package/dist/module/runtime/native/react/usePassthrough.js +45 -0
  270. package/dist/module/runtime/native/react/usePassthrough.js.map +1 -0
  271. package/dist/module/runtime/native/reactivity.js +177 -0
  272. package/dist/module/runtime/native/reactivity.js.map +1 -0
  273. package/dist/module/runtime/native/styles/animation.js +82 -0
  274. package/dist/module/runtime/native/styles/animation.js.map +1 -0
  275. package/dist/module/runtime/native/styles/border.js +8 -0
  276. package/dist/module/runtime/native/styles/border.js.map +1 -0
  277. package/dist/module/runtime/native/styles/box-shadow.js +35 -0
  278. package/dist/module/runtime/native/styles/box-shadow.js.map +1 -0
  279. package/dist/module/runtime/native/styles/calc.js +79 -0
  280. package/dist/module/runtime/native/styles/calc.js.map +1 -0
  281. package/dist/module/runtime/native/styles/calculate-props.js +118 -0
  282. package/dist/module/runtime/native/styles/calculate-props.js.map +1 -0
  283. package/dist/module/runtime/native/styles/constants.js +5 -0
  284. package/dist/module/runtime/native/styles/constants.js.map +1 -0
  285. package/dist/module/runtime/native/styles/defaults.js +65 -0
  286. package/dist/module/runtime/native/styles/defaults.js.map +1 -0
  287. package/dist/module/runtime/native/styles/filters.js +70 -0
  288. package/dist/module/runtime/native/styles/filters.js.map +1 -0
  289. package/dist/module/runtime/native/styles/index.js +110 -0
  290. package/dist/module/runtime/native/styles/index.js.map +1 -0
  291. package/dist/module/runtime/native/styles/platform-functions.js +36 -0
  292. package/dist/module/runtime/native/styles/platform-functions.js.map +1 -0
  293. package/dist/module/runtime/native/styles/resolve.js +125 -0
  294. package/dist/module/runtime/native/styles/resolve.js.map +1 -0
  295. package/dist/module/runtime/native/styles/shorthand.js +74 -0
  296. package/dist/module/runtime/native/styles/shorthand.js.map +1 -0
  297. package/dist/module/runtime/native/styles/text-shadow.js +9 -0
  298. package/dist/module/runtime/native/styles/text-shadow.js.map +1 -0
  299. package/dist/module/runtime/native/styles/transform.js +18 -0
  300. package/dist/module/runtime/native/styles/transform.js.map +1 -0
  301. package/dist/module/runtime/native/styles/units.js +40 -0
  302. package/dist/module/runtime/native/styles/units.js.map +1 -0
  303. package/dist/module/runtime/native/styles/variables.js +74 -0
  304. package/dist/module/runtime/native/styles/variables.js.map +1 -0
  305. package/dist/module/runtime/runtime.js +4 -0
  306. package/dist/module/runtime/runtime.js.map +1 -0
  307. package/dist/module/runtime/runtime.native.js +4 -0
  308. package/dist/module/runtime/runtime.native.js.map +1 -0
  309. package/dist/module/runtime/runtime.types.js +4 -0
  310. package/dist/module/runtime/runtime.types.js.map +1 -0
  311. package/dist/module/runtime/utils/components.js +14 -0
  312. package/dist/module/runtime/utils/components.js.map +1 -0
  313. package/dist/module/runtime/utils/dot-notation.types.js +2 -0
  314. package/dist/module/runtime/utils/dot-notation.types.js.map +1 -0
  315. package/dist/module/runtime/utils/index.js +8 -0
  316. package/dist/module/runtime/utils/index.js.map +1 -0
  317. package/dist/module/runtime/utils/objects.js +76 -0
  318. package/dist/module/runtime/utils/objects.js.map +1 -0
  319. package/dist/module/runtime/utils/specificity.js +38 -0
  320. package/dist/module/runtime/utils/specificity.js.map +1 -0
  321. package/dist/module/runtime/utils/style-value.js +16 -0
  322. package/dist/module/runtime/utils/style-value.js.map +1 -0
  323. package/dist/module/runtime/utils/utils.types.js +4 -0
  324. package/dist/module/runtime/utils/utils.types.js.map +1 -0
  325. package/dist/module/runtime/web/api.js +59 -0
  326. package/dist/module/runtime/web/api.js.map +1 -0
  327. package/dist/module/runtime/web/assign-style.js +23 -0
  328. package/dist/module/runtime/web/assign-style.js.map +1 -0
  329. package/dist/module/runtime/web/index.js +6 -0
  330. package/dist/module/runtime/web/index.js.map +1 -0
  331. package/dist/module/runtime/web/metro.js +5 -0
  332. package/dist/module/runtime/web/metro.js.map +1 -0
  333. package/dist/typescript/commonjs/example/src/App.d.ts +3 -0
  334. package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -0
  335. package/dist/typescript/commonjs/package.json +1 -0
  336. package/dist/typescript/commonjs/src/babel/allowedModules.d.ts +2 -0
  337. package/dist/typescript/commonjs/src/babel/allowedModules.d.ts.map +1 -0
  338. package/dist/typescript/commonjs/src/babel/helpers.d.ts +13 -0
  339. package/dist/typescript/commonjs/src/babel/helpers.d.ts.map +1 -0
  340. package/dist/typescript/commonjs/src/babel/import-plugin.d.ts +6 -0
  341. package/dist/typescript/commonjs/src/babel/import-plugin.d.ts.map +1 -0
  342. package/dist/typescript/commonjs/src/babel/index.d.ts +1 -0
  343. package/dist/typescript/commonjs/src/babel/index.d.ts.map +1 -0
  344. package/dist/typescript/commonjs/src/babel/react-native-web.d.ts +8 -0
  345. package/dist/typescript/commonjs/src/babel/react-native-web.d.ts.map +1 -0
  346. package/dist/typescript/commonjs/src/babel/react-native.d.ts +8 -0
  347. package/dist/typescript/commonjs/src/babel/react-native.d.ts.map +1 -0
  348. package/dist/typescript/commonjs/src/compiler/atRules.d.ts +34 -0
  349. package/dist/typescript/commonjs/src/compiler/atRules.d.ts.map +1 -0
  350. package/dist/typescript/commonjs/src/compiler/attributes.test.d.ts +2 -0
  351. package/dist/typescript/commonjs/src/compiler/attributes.test.d.ts.map +1 -0
  352. package/dist/typescript/commonjs/src/compiler/compiler.d.ts +10 -0
  353. package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -0
  354. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +198 -0
  355. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -0
  356. package/dist/typescript/commonjs/src/compiler/container-query.d.ts +5 -0
  357. package/dist/typescript/commonjs/src/compiler/container-query.d.ts.map +1 -0
  358. package/dist/typescript/commonjs/src/compiler/declarations.d.ts +121 -0
  359. package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -0
  360. package/dist/typescript/commonjs/src/compiler/functions-web.d.ts +11 -0
  361. package/dist/typescript/commonjs/src/compiler/functions-web.d.ts.map +1 -0
  362. package/dist/typescript/commonjs/src/compiler/functions.d.ts +11 -0
  363. package/dist/typescript/commonjs/src/compiler/functions.d.ts.map +1 -0
  364. package/dist/typescript/commonjs/src/compiler/index.d.ts +7 -0
  365. package/dist/typescript/commonjs/src/compiler/index.d.ts.map +1 -0
  366. package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts +2 -0
  367. package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts.map +1 -0
  368. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts +7 -0
  369. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts.map +1 -0
  370. package/dist/typescript/commonjs/src/compiler/media-query.d.ts +7 -0
  371. package/dist/typescript/commonjs/src/compiler/media-query.d.ts.map +1 -0
  372. package/dist/typescript/commonjs/src/compiler/selectors.d.ts +23 -0
  373. package/dist/typescript/commonjs/src/compiler/selectors.d.ts.map +1 -0
  374. package/dist/typescript/commonjs/src/compiler/split-by-delimiter.d.ts +2 -0
  375. package/dist/typescript/commonjs/src/compiler/split-by-delimiter.d.ts.map +1 -0
  376. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +50 -0
  377. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -0
  378. package/dist/typescript/commonjs/src/components/Text.d.ts +8 -0
  379. package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -0
  380. package/dist/typescript/commonjs/src/components/View.d.ts +8 -0
  381. package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -0
  382. package/dist/typescript/commonjs/src/components/index.d.ts +4 -0
  383. package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -0
  384. package/dist/typescript/commonjs/src/doctor/index.d.ts +2 -0
  385. package/dist/typescript/commonjs/src/doctor/index.d.ts.map +1 -0
  386. package/dist/typescript/commonjs/src/index.d.ts +3 -0
  387. package/dist/typescript/commonjs/src/index.d.ts.map +1 -0
  388. package/dist/typescript/commonjs/src/jest/index.d.ts +14 -0
  389. package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -0
  390. package/dist/typescript/commonjs/src/jest/setup.d.ts +1 -0
  391. package/dist/typescript/commonjs/src/jest/setup.d.ts.map +1 -0
  392. package/dist/typescript/commonjs/src/jest/setupAfterEnv.d.ts +1 -0
  393. package/dist/typescript/commonjs/src/jest/setupAfterEnv.d.ts.map +1 -0
  394. package/dist/typescript/commonjs/src/metro/index.d.ts +11 -0
  395. package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -0
  396. package/dist/typescript/commonjs/src/metro/injection-code.d.ts +16 -0
  397. package/dist/typescript/commonjs/src/metro/injection-code.d.ts.map +1 -0
  398. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts +3 -0
  399. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -0
  400. package/dist/typescript/commonjs/src/metro/picocolors.d.ts +27 -0
  401. package/dist/typescript/commonjs/src/metro/picocolors.d.ts.map +1 -0
  402. package/dist/typescript/commonjs/src/metro/resolver.d.ts +4 -0
  403. package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -0
  404. package/dist/typescript/commonjs/src/metro/stringify.d.ts +7 -0
  405. package/dist/typescript/commonjs/src/metro/stringify.d.ts.map +1 -0
  406. package/dist/typescript/commonjs/src/metro/typescript.d.ts +2 -0
  407. package/dist/typescript/commonjs/src/metro/typescript.d.ts.map +1 -0
  408. package/dist/typescript/commonjs/src/poison.pill.d.ts +2 -0
  409. package/dist/typescript/commonjs/src/poison.pill.d.ts.map +1 -0
  410. package/dist/typescript/commonjs/src/runtime/index.d.ts +7 -0
  411. package/dist/typescript/commonjs/src/runtime/index.d.ts.map +1 -0
  412. package/dist/typescript/commonjs/src/runtime/native/api.d.ts +17 -0
  413. package/dist/typescript/commonjs/src/runtime/native/api.d.ts.map +1 -0
  414. package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts +7 -0
  415. package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts.map +1 -0
  416. package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts +5 -0
  417. package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts.map +1 -0
  418. package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts +6 -0
  419. package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts.map +1 -0
  420. package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts +4 -0
  421. package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts.map +1 -0
  422. package/dist/typescript/commonjs/src/runtime/native/index.d.ts +4 -0
  423. package/dist/typescript/commonjs/src/runtime/native/index.d.ts.map +1 -0
  424. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts +16 -0
  425. package/dist/typescript/commonjs/src/runtime/native/injection.d.ts.map +1 -0
  426. package/dist/typescript/commonjs/src/runtime/native/metro.d.ts +2 -0
  427. package/dist/typescript/commonjs/src/runtime/native/metro.d.ts.map +1 -0
  428. package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts +6 -0
  429. package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts.map +1 -0
  430. package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts +7 -0
  431. package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts.map +1 -0
  432. package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts +37 -0
  433. package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts.map +1 -0
  434. package/dist/typescript/commonjs/src/runtime/native/react/usePassthrough.d.ts +4 -0
  435. package/dist/typescript/commonjs/src/runtime/native/react/usePassthrough.d.ts.map +1 -0
  436. package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts +63 -0
  437. package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts.map +1 -0
  438. package/dist/typescript/commonjs/src/runtime/native/styles/animation.d.ts +9 -0
  439. package/dist/typescript/commonjs/src/runtime/native/styles/animation.d.ts.map +1 -0
  440. package/dist/typescript/commonjs/src/runtime/native/styles/border.d.ts +2 -0
  441. package/dist/typescript/commonjs/src/runtime/native/styles/border.d.ts.map +1 -0
  442. package/dist/typescript/commonjs/src/runtime/native/styles/box-shadow.d.ts +3 -0
  443. package/dist/typescript/commonjs/src/runtime/native/styles/box-shadow.d.ts.map +1 -0
  444. package/dist/typescript/commonjs/src/runtime/native/styles/calc.d.ts +3 -0
  445. package/dist/typescript/commonjs/src/runtime/native/styles/calc.d.ts.map +1 -0
  446. package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts +10 -0
  447. package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts.map +1 -0
  448. package/dist/typescript/commonjs/src/runtime/native/styles/constants.d.ts +3 -0
  449. package/dist/typescript/commonjs/src/runtime/native/styles/constants.d.ts.map +1 -0
  450. package/dist/typescript/commonjs/src/runtime/native/styles/defaults.d.ts +3 -0
  451. package/dist/typescript/commonjs/src/runtime/native/styles/defaults.d.ts.map +1 -0
  452. package/dist/typescript/commonjs/src/runtime/native/styles/filters.d.ts +12 -0
  453. package/dist/typescript/commonjs/src/runtime/native/styles/filters.d.ts.map +1 -0
  454. package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts +19 -0
  455. package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts.map +1 -0
  456. package/dist/typescript/commonjs/src/runtime/native/styles/platform-functions.d.ts +8 -0
  457. package/dist/typescript/commonjs/src/runtime/native/styles/platform-functions.d.ts.map +1 -0
  458. package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts +18 -0
  459. package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts.map +1 -0
  460. package/dist/typescript/commonjs/src/runtime/native/styles/shorthand.d.ts +11 -0
  461. package/dist/typescript/commonjs/src/runtime/native/styles/shorthand.d.ts.map +1 -0
  462. package/dist/typescript/commonjs/src/runtime/native/styles/text-shadow.d.ts +2 -0
  463. package/dist/typescript/commonjs/src/runtime/native/styles/text-shadow.d.ts.map +1 -0
  464. package/dist/typescript/commonjs/src/runtime/native/styles/transform.d.ts +7 -0
  465. package/dist/typescript/commonjs/src/runtime/native/styles/transform.d.ts.map +1 -0
  466. package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts +6 -0
  467. package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts.map +1 -0
  468. package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts +5 -0
  469. package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts.map +1 -0
  470. package/dist/typescript/commonjs/src/runtime/runtime.d.ts +2 -0
  471. package/dist/typescript/commonjs/src/runtime/runtime.d.ts.map +1 -0
  472. package/dist/typescript/commonjs/src/runtime/runtime.native.d.ts +2 -0
  473. package/dist/typescript/commonjs/src/runtime/runtime.native.d.ts.map +1 -0
  474. package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts +47 -0
  475. package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts.map +1 -0
  476. package/dist/typescript/commonjs/src/runtime/utils/components.d.ts +2 -0
  477. package/dist/typescript/commonjs/src/runtime/utils/components.d.ts.map +1 -0
  478. package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts +23 -0
  479. package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts.map +1 -0
  480. package/dist/typescript/commonjs/src/runtime/utils/index.d.ts +6 -0
  481. package/dist/typescript/commonjs/src/runtime/utils/index.d.ts.map +1 -0
  482. package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts +5 -0
  483. package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts.map +1 -0
  484. package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts +12 -0
  485. package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts.map +1 -0
  486. package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts +4 -0
  487. package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts.map +1 -0
  488. package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts +5 -0
  489. package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts.map +1 -0
  490. package/dist/typescript/commonjs/src/runtime/web/api.d.ts +10 -0
  491. package/dist/typescript/commonjs/src/runtime/web/api.d.ts.map +1 -0
  492. package/dist/typescript/commonjs/src/runtime/web/assign-style.d.ts +2 -0
  493. package/dist/typescript/commonjs/src/runtime/web/assign-style.d.ts.map +1 -0
  494. package/dist/typescript/commonjs/src/runtime/web/index.d.ts +4 -0
  495. package/dist/typescript/commonjs/src/runtime/web/index.d.ts.map +1 -0
  496. package/dist/typescript/commonjs/src/runtime/web/metro.d.ts +2 -0
  497. package/dist/typescript/commonjs/src/runtime/web/metro.d.ts.map +1 -0
  498. package/dist/typescript/module/example/src/App.d.ts +3 -0
  499. package/dist/typescript/module/example/src/App.d.ts.map +1 -0
  500. package/dist/typescript/module/package.json +1 -0
  501. package/dist/typescript/module/src/babel/allowedModules.d.ts +2 -0
  502. package/dist/typescript/module/src/babel/allowedModules.d.ts.map +1 -0
  503. package/dist/typescript/module/src/babel/helpers.d.ts +13 -0
  504. package/dist/typescript/module/src/babel/helpers.d.ts.map +1 -0
  505. package/dist/typescript/module/src/babel/import-plugin.d.ts +6 -0
  506. package/dist/typescript/module/src/babel/import-plugin.d.ts.map +1 -0
  507. package/dist/typescript/module/src/babel/index.d.ts +1 -0
  508. package/dist/typescript/module/src/babel/index.d.ts.map +1 -0
  509. package/dist/typescript/module/src/babel/react-native-web.d.ts +8 -0
  510. package/dist/typescript/module/src/babel/react-native-web.d.ts.map +1 -0
  511. package/dist/typescript/module/src/babel/react-native.d.ts +8 -0
  512. package/dist/typescript/module/src/babel/react-native.d.ts.map +1 -0
  513. package/dist/typescript/module/src/compiler/atRules.d.ts +34 -0
  514. package/dist/typescript/module/src/compiler/atRules.d.ts.map +1 -0
  515. package/dist/typescript/module/src/compiler/attributes.test.d.ts +2 -0
  516. package/dist/typescript/module/src/compiler/attributes.test.d.ts.map +1 -0
  517. package/dist/typescript/module/src/compiler/compiler.d.ts +10 -0
  518. package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -0
  519. package/dist/typescript/module/src/compiler/compiler.types.d.ts +198 -0
  520. package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -0
  521. package/dist/typescript/module/src/compiler/container-query.d.ts +5 -0
  522. package/dist/typescript/module/src/compiler/container-query.d.ts.map +1 -0
  523. package/dist/typescript/module/src/compiler/declarations.d.ts +121 -0
  524. package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -0
  525. package/dist/typescript/module/src/compiler/functions-web.d.ts +11 -0
  526. package/dist/typescript/module/src/compiler/functions-web.d.ts.map +1 -0
  527. package/dist/typescript/module/src/compiler/functions.d.ts +11 -0
  528. package/dist/typescript/module/src/compiler/functions.d.ts.map +1 -0
  529. package/dist/typescript/module/src/compiler/index.d.ts +7 -0
  530. package/dist/typescript/module/src/compiler/index.d.ts.map +1 -0
  531. package/dist/typescript/module/src/compiler/inheritance.test.d.ts +2 -0
  532. package/dist/typescript/module/src/compiler/inheritance.test.d.ts.map +1 -0
  533. package/dist/typescript/module/src/compiler/keyframes.d.ts +7 -0
  534. package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -0
  535. package/dist/typescript/module/src/compiler/media-query.d.ts +7 -0
  536. package/dist/typescript/module/src/compiler/media-query.d.ts.map +1 -0
  537. package/dist/typescript/module/src/compiler/selectors.d.ts +23 -0
  538. package/dist/typescript/module/src/compiler/selectors.d.ts.map +1 -0
  539. package/dist/typescript/module/src/compiler/split-by-delimiter.d.ts +2 -0
  540. package/dist/typescript/module/src/compiler/split-by-delimiter.d.ts.map +1 -0
  541. package/dist/typescript/module/src/compiler/stylesheet.d.ts +50 -0
  542. package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -0
  543. package/dist/typescript/module/src/components/Text.d.ts +8 -0
  544. package/dist/typescript/module/src/components/Text.d.ts.map +1 -0
  545. package/dist/typescript/module/src/components/View.d.ts +8 -0
  546. package/dist/typescript/module/src/components/View.d.ts.map +1 -0
  547. package/dist/typescript/module/src/components/index.d.ts +4 -0
  548. package/dist/typescript/module/src/components/index.d.ts.map +1 -0
  549. package/dist/typescript/module/src/doctor/index.d.ts +2 -0
  550. package/dist/typescript/module/src/doctor/index.d.ts.map +1 -0
  551. package/dist/typescript/module/src/index.d.ts +3 -0
  552. package/dist/typescript/module/src/index.d.ts.map +1 -0
  553. package/dist/typescript/module/src/jest/index.d.ts +14 -0
  554. package/dist/typescript/module/src/jest/index.d.ts.map +1 -0
  555. package/dist/typescript/module/src/jest/setup.d.ts +1 -0
  556. package/dist/typescript/module/src/jest/setup.d.ts.map +1 -0
  557. package/dist/typescript/module/src/jest/setupAfterEnv.d.ts +1 -0
  558. package/dist/typescript/module/src/jest/setupAfterEnv.d.ts.map +1 -0
  559. package/dist/typescript/module/src/metro/index.d.ts +11 -0
  560. package/dist/typescript/module/src/metro/index.d.ts.map +1 -0
  561. package/dist/typescript/module/src/metro/injection-code.d.ts +16 -0
  562. package/dist/typescript/module/src/metro/injection-code.d.ts.map +1 -0
  563. package/dist/typescript/module/src/metro/metro-transformer.d.ts +3 -0
  564. package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -0
  565. package/dist/typescript/module/src/metro/picocolors.d.ts +27 -0
  566. package/dist/typescript/module/src/metro/picocolors.d.ts.map +1 -0
  567. package/dist/typescript/module/src/metro/resolver.d.ts +4 -0
  568. package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -0
  569. package/dist/typescript/module/src/metro/stringify.d.ts +7 -0
  570. package/dist/typescript/module/src/metro/stringify.d.ts.map +1 -0
  571. package/dist/typescript/module/src/metro/typescript.d.ts +2 -0
  572. package/dist/typescript/module/src/metro/typescript.d.ts.map +1 -0
  573. package/dist/typescript/module/src/poison.pill.d.ts +2 -0
  574. package/dist/typescript/module/src/poison.pill.d.ts.map +1 -0
  575. package/dist/typescript/module/src/runtime/index.d.ts +7 -0
  576. package/dist/typescript/module/src/runtime/index.d.ts.map +1 -0
  577. package/dist/typescript/module/src/runtime/native/api.d.ts +17 -0
  578. package/dist/typescript/module/src/runtime/native/api.d.ts.map +1 -0
  579. package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts +7 -0
  580. package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts.map +1 -0
  581. package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts +5 -0
  582. package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts.map +1 -0
  583. package/dist/typescript/module/src/runtime/native/conditions/index.d.ts +6 -0
  584. package/dist/typescript/module/src/runtime/native/conditions/index.d.ts.map +1 -0
  585. package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts +4 -0
  586. package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts.map +1 -0
  587. package/dist/typescript/module/src/runtime/native/index.d.ts +4 -0
  588. package/dist/typescript/module/src/runtime/native/index.d.ts.map +1 -0
  589. package/dist/typescript/module/src/runtime/native/injection.d.ts +16 -0
  590. package/dist/typescript/module/src/runtime/native/injection.d.ts.map +1 -0
  591. package/dist/typescript/module/src/runtime/native/metro.d.ts +2 -0
  592. package/dist/typescript/module/src/runtime/native/metro.d.ts.map +1 -0
  593. package/dist/typescript/module/src/runtime/native/react/interaction.d.ts +6 -0
  594. package/dist/typescript/module/src/runtime/native/react/interaction.d.ts.map +1 -0
  595. package/dist/typescript/module/src/runtime/native/react/rules.d.ts +7 -0
  596. package/dist/typescript/module/src/runtime/native/react/rules.d.ts.map +1 -0
  597. package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts +37 -0
  598. package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts.map +1 -0
  599. package/dist/typescript/module/src/runtime/native/react/usePassthrough.d.ts +4 -0
  600. package/dist/typescript/module/src/runtime/native/react/usePassthrough.d.ts.map +1 -0
  601. package/dist/typescript/module/src/runtime/native/reactivity.d.ts +63 -0
  602. package/dist/typescript/module/src/runtime/native/reactivity.d.ts.map +1 -0
  603. package/dist/typescript/module/src/runtime/native/styles/animation.d.ts +9 -0
  604. package/dist/typescript/module/src/runtime/native/styles/animation.d.ts.map +1 -0
  605. package/dist/typescript/module/src/runtime/native/styles/border.d.ts +2 -0
  606. package/dist/typescript/module/src/runtime/native/styles/border.d.ts.map +1 -0
  607. package/dist/typescript/module/src/runtime/native/styles/box-shadow.d.ts +3 -0
  608. package/dist/typescript/module/src/runtime/native/styles/box-shadow.d.ts.map +1 -0
  609. package/dist/typescript/module/src/runtime/native/styles/calc.d.ts +3 -0
  610. package/dist/typescript/module/src/runtime/native/styles/calc.d.ts.map +1 -0
  611. package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts +10 -0
  612. package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts.map +1 -0
  613. package/dist/typescript/module/src/runtime/native/styles/constants.d.ts +3 -0
  614. package/dist/typescript/module/src/runtime/native/styles/constants.d.ts.map +1 -0
  615. package/dist/typescript/module/src/runtime/native/styles/defaults.d.ts +3 -0
  616. package/dist/typescript/module/src/runtime/native/styles/defaults.d.ts.map +1 -0
  617. package/dist/typescript/module/src/runtime/native/styles/filters.d.ts +12 -0
  618. package/dist/typescript/module/src/runtime/native/styles/filters.d.ts.map +1 -0
  619. package/dist/typescript/module/src/runtime/native/styles/index.d.ts +19 -0
  620. package/dist/typescript/module/src/runtime/native/styles/index.d.ts.map +1 -0
  621. package/dist/typescript/module/src/runtime/native/styles/platform-functions.d.ts +8 -0
  622. package/dist/typescript/module/src/runtime/native/styles/platform-functions.d.ts.map +1 -0
  623. package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts +18 -0
  624. package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts.map +1 -0
  625. package/dist/typescript/module/src/runtime/native/styles/shorthand.d.ts +11 -0
  626. package/dist/typescript/module/src/runtime/native/styles/shorthand.d.ts.map +1 -0
  627. package/dist/typescript/module/src/runtime/native/styles/text-shadow.d.ts +2 -0
  628. package/dist/typescript/module/src/runtime/native/styles/text-shadow.d.ts.map +1 -0
  629. package/dist/typescript/module/src/runtime/native/styles/transform.d.ts +7 -0
  630. package/dist/typescript/module/src/runtime/native/styles/transform.d.ts.map +1 -0
  631. package/dist/typescript/module/src/runtime/native/styles/units.d.ts +6 -0
  632. package/dist/typescript/module/src/runtime/native/styles/units.d.ts.map +1 -0
  633. package/dist/typescript/module/src/runtime/native/styles/variables.d.ts +5 -0
  634. package/dist/typescript/module/src/runtime/native/styles/variables.d.ts.map +1 -0
  635. package/dist/typescript/module/src/runtime/runtime.d.ts +2 -0
  636. package/dist/typescript/module/src/runtime/runtime.d.ts.map +1 -0
  637. package/dist/typescript/module/src/runtime/runtime.native.d.ts +2 -0
  638. package/dist/typescript/module/src/runtime/runtime.native.d.ts.map +1 -0
  639. package/dist/typescript/module/src/runtime/runtime.types.d.ts +47 -0
  640. package/dist/typescript/module/src/runtime/runtime.types.d.ts.map +1 -0
  641. package/dist/typescript/module/src/runtime/utils/components.d.ts +2 -0
  642. package/dist/typescript/module/src/runtime/utils/components.d.ts.map +1 -0
  643. package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts +23 -0
  644. package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts.map +1 -0
  645. package/dist/typescript/module/src/runtime/utils/index.d.ts +6 -0
  646. package/dist/typescript/module/src/runtime/utils/index.d.ts.map +1 -0
  647. package/dist/typescript/module/src/runtime/utils/objects.d.ts +5 -0
  648. package/dist/typescript/module/src/runtime/utils/objects.d.ts.map +1 -0
  649. package/dist/typescript/module/src/runtime/utils/specificity.d.ts +12 -0
  650. package/dist/typescript/module/src/runtime/utils/specificity.d.ts.map +1 -0
  651. package/dist/typescript/module/src/runtime/utils/style-value.d.ts +4 -0
  652. package/dist/typescript/module/src/runtime/utils/style-value.d.ts.map +1 -0
  653. package/dist/typescript/module/src/runtime/utils/utils.types.d.ts +5 -0
  654. package/dist/typescript/module/src/runtime/utils/utils.types.d.ts.map +1 -0
  655. package/dist/typescript/module/src/runtime/web/api.d.ts +10 -0
  656. package/dist/typescript/module/src/runtime/web/api.d.ts.map +1 -0
  657. package/dist/typescript/module/src/runtime/web/assign-style.d.ts +2 -0
  658. package/dist/typescript/module/src/runtime/web/assign-style.d.ts.map +1 -0
  659. package/dist/typescript/module/src/runtime/web/index.d.ts +4 -0
  660. package/dist/typescript/module/src/runtime/web/index.d.ts.map +1 -0
  661. package/dist/typescript/module/src/runtime/web/metro.d.ts +2 -0
  662. package/dist/typescript/module/src/runtime/web/metro.d.ts.map +1 -0
  663. package/package.json +222 -45
  664. package/src/babel/allowedModules.ts +24 -0
  665. package/src/babel/helpers.ts +40 -0
  666. package/src/babel/import-plugin.ts +176 -0
  667. package/src/babel/index.ts +9 -0
  668. package/src/babel/react-native-web.ts +226 -0
  669. package/src/babel/react-native.ts +226 -0
  670. package/src/compiler/atRules.ts +144 -0
  671. package/src/compiler/attributes.test.ts +28 -0
  672. package/src/compiler/compiler.ts +268 -0
  673. package/src/compiler/compiler.types.ts +267 -0
  674. package/src/compiler/container-query.ts +97 -0
  675. package/src/compiler/declarations.ts +2964 -0
  676. package/src/compiler/functions-web.ts +44 -0
  677. package/src/compiler/functions.ts +64 -0
  678. package/src/compiler/index.ts +7 -0
  679. package/src/compiler/inheritance.test.ts +121 -0
  680. package/src/compiler/keyframes.ts +86 -0
  681. package/src/compiler/media-query.ts +251 -0
  682. package/src/compiler/selectors.ts +491 -0
  683. package/src/compiler/split-by-delimiter.ts +19 -0
  684. package/src/compiler/stylesheet.ts +528 -0
  685. package/src/components/Text.tsx +17 -0
  686. package/src/components/View.tsx +17 -0
  687. package/src/components/index.tsx +4 -0
  688. package/src/doctor/index.ts +1 -0
  689. package/src/index.ts +3 -0
  690. package/src/jest/expect.d.ts +1 -0
  691. package/src/jest/index.ts +42 -0
  692. package/src/jest/setup.ts +1 -0
  693. package/src/jest/setupAfterEnv.ts +13 -0
  694. package/src/metro/index.ts +231 -0
  695. package/src/metro/injection-code.ts +38 -0
  696. package/src/metro/metro-transformer.ts +31 -0
  697. package/src/metro/picocolors.ts +77 -0
  698. package/src/metro/resolver.ts +89 -0
  699. package/src/metro/stringify.ts +59 -0
  700. package/src/metro/typescript.ts +73 -0
  701. package/src/poison.pill.ts +32 -0
  702. package/src/runtime/index.ts +7 -0
  703. package/src/runtime/native/api.ts +106 -0
  704. package/src/runtime/native/conditions/container-query.ts +157 -0
  705. package/src/runtime/native/conditions/guards.ts +45 -0
  706. package/src/runtime/native/conditions/index.ts +106 -0
  707. package/src/runtime/native/conditions/media-query.ts +94 -0
  708. package/src/runtime/native/index.ts +4 -0
  709. package/src/runtime/native/injection.ts +131 -0
  710. package/src/runtime/native/metro.ts +2 -0
  711. package/src/runtime/native/react/interaction.ts +90 -0
  712. package/src/runtime/native/react/rules.ts +326 -0
  713. package/src/runtime/native/react/useNativeCss.ts +200 -0
  714. package/src/runtime/native/react/usePassthrough.ts +51 -0
  715. package/src/runtime/native/reactivity.ts +262 -0
  716. package/src/runtime/native/styles/animation.ts +181 -0
  717. package/src/runtime/native/styles/border.ts +10 -0
  718. package/src/runtime/native/styles/box-shadow.ts +54 -0
  719. package/src/runtime/native/styles/calc.ts +97 -0
  720. package/src/runtime/native/styles/calculate-props.ts +165 -0
  721. package/src/runtime/native/styles/constants.ts +2 -0
  722. package/src/runtime/native/styles/defaults.ts +78 -0
  723. package/src/runtime/native/styles/filters.ts +98 -0
  724. package/src/runtime/native/styles/index.ts +197 -0
  725. package/src/runtime/native/styles/platform-functions.ts +50 -0
  726. package/src/runtime/native/styles/resolve.ts +205 -0
  727. package/src/runtime/native/styles/shorthand.ts +121 -0
  728. package/src/runtime/native/styles/text-shadow.ts +17 -0
  729. package/src/runtime/native/styles/transform.ts +21 -0
  730. package/src/runtime/native/styles/units.ts +53 -0
  731. package/src/runtime/native/styles/variables.ts +88 -0
  732. package/src/runtime/runtime.native.ts +1 -0
  733. package/src/runtime/runtime.ts +1 -0
  734. package/src/runtime/runtime.types.ts +130 -0
  735. package/src/runtime/utils/components.ts +15 -0
  736. package/src/runtime/utils/dot-notation.types.ts +118 -0
  737. package/src/runtime/utils/index.ts +5 -0
  738. package/src/runtime/utils/objects.ts +97 -0
  739. package/src/runtime/utils/specificity.ts +44 -0
  740. package/src/runtime/utils/style-value.ts +24 -0
  741. package/src/runtime/utils/utils.types.ts +19 -0
  742. package/src/runtime/web/api.ts +88 -0
  743. package/src/runtime/web/assign-style.ts +26 -0
  744. package/src/runtime/web/index.ts +5 -0
  745. package/src/runtime/web/metro.ts +2 -0
  746. package/.babelrc +0 -8
  747. package/.editorconfig +0 -17
  748. package/.eslintignore +0 -3
  749. package/.eslintrc +0 -39
  750. package/.npmignore +0 -7
  751. package/build/index.js +0 -294
  752. package/build/utils.js +0 -54
  753. package/circle.yml +0 -31
  754. package/jsconfig.json +0 -9
  755. package/login.sh +0 -11
  756. package/src/index.js +0 -184
  757. package/src/utils.js +0 -32
  758. package/test/rnc.test.js +0 -258
  759. package/yarn.lock +0 -3333
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+
3
+ /* eslint-disable */
4
+
5
+ import { applyShorthand } from "../../utils/index.js";
6
+ import { StyleCollection } from "../injection.js";
7
+ import { weakFamily } from "../reactivity.js";
8
+ import { shorthandHandler } from "./shorthand.js";
9
+ const name = ["animationName", "string", "none"];
10
+ const delay = ["animationDelay", "number", 0];
11
+ const duration = ["animationDuration", "number", 0];
12
+ const iteration = ["animationIterationCount", ["number", "infinite"], 1];
13
+ const fill = ["animationFillMode", ["none", "forwards", "backwards", "both"], "none"];
14
+ const playState = ["animationPlayState", ["running", "paused"], "running"];
15
+ const direction = ["animationDirection", ["normal", "reverse", "alternate", "alternate-reverse"], "normal"];
16
+ const timingFunction = ["animationTimingFunction", ["linear", "ease", "ease-in", "ease-out", "ease-in-out", "object"], "ease"];
17
+ 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");
18
+ export const animatedComponentFamily = weakFamily(component => {
19
+ if ("displayName" in component && component.displayName?.startsWith("Animated.")) {
20
+ return component;
21
+ }
22
+ const createAnimatedComponent = require("react-native-reanimated").createAnimatedComponent;
23
+ return createAnimatedComponent(component);
24
+ });
25
+ export const animation = (resolveValue, value, get, options) => {
26
+ const animationShortHandTuples = animationShorthand(resolveValue, value, get, options);
27
+ if (!Array.isArray(animationShortHandTuples)) {
28
+ return;
29
+ }
30
+ animationShortHandTuples.pop();
31
+ const nameTuple = animationShortHandTuples.find(tuple => tuple[1] === "animationName");
32
+ const name = nameTuple?.[0];
33
+ if (!nameTuple || typeof name !== "string") {
34
+ return;
35
+ }
36
+ const keyframes = get(StyleCollection.keyframes(name));
37
+ const animation = {};
38
+ for (const [progress, declarations] of keyframes) {
39
+ animation[progress] ??= {};
40
+ const props = options.calculateProps?.(get,
41
+ // Cast this into a StyleRule[]
42
+ [{
43
+ s: [0],
44
+ d: declarations
45
+ }], options.renderGuards, options.inheritedVariables, options.inlineVariables);
46
+ if (!props) {
47
+ continue;
48
+ }
49
+ if (props.normal) {
50
+ Object.assign(animation[progress], props.normal);
51
+ }
52
+ if (props.important) {
53
+ Object.assign(animation[progress], props.important);
54
+ }
55
+ animation[progress] = animation[progress].style;
56
+ }
57
+ nameTuple[0] = animation;
58
+ return applyShorthand(animationShortHandTuples);
59
+ };
60
+ const advancedTimingFunctions = {
61
+ "cubic-bezier": () => {
62
+ return require("react-native-reanimated").cubicBezier;
63
+ },
64
+ "steps": () => {
65
+ return require("react-native-reanimated").steps;
66
+ }
67
+ };
68
+ export const timingFunctionResolver = (resolveValue, value) => {
69
+ const name = value[1];
70
+ const resolver = advancedTimingFunctions[name];
71
+ if (!resolver) {
72
+ return;
73
+ }
74
+ const args = resolveValue(value[2]);
75
+ if (!Array.isArray(args)) {
76
+ return;
77
+ }
78
+ const fn = resolver();
79
+ const result = fn(...args);
80
+ return result;
81
+ };
82
+ //# sourceMappingURL=animation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["applyShorthand","StyleCollection","weakFamily","shorthandHandler","name","delay","duration","iteration","fill","playState","direction","timingFunction","animationShorthand","animatedComponentFamily","component","displayName","startsWith","createAnimatedComponent","require","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","advancedTimingFunctions","cubic-bezier","cubicBezier","steps","timingFunctionResolver","resolver","args","fn","result"],"sourceRoot":"../../../../../src","sources":["runtime/native/styles/animation.ts"],"mappings":";;AAAA;;AAGA,SAASA,cAAc,QAAQ,sBAAa;AAC5C,SAASC,eAAe,QAAQ,iBAAc;AAC9C,SAASC,UAAU,QAAQ,kBAAe;AAE1C,SAASC,gBAAgB,QAAQ,gBAAa;AAE9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AQ,EAAE;IACb;EACF;EAEA,MAAMC,IAAI,GAAGhC,YAAY,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;EAEnC,IAAI,CAACI,KAAK,CAACC,OAAO,CAAC0B,IAAI,CAAC,EAAE;IACxB;EACF;EAEA,MAAMC,EAAE,GAAGF,QAAQ,CAAC,CAAC;EAErB,MAAMG,MAAM,GAAGD,EAAE,CAAC,GAAGD,IAAI,CAAC;EAE1B,OAAOE,MAAM;AACf,CAAC","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ import { shorthandHandler } from "./shorthand.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/border.ts"],"mappings":";;AAAA,SAASA,gBAAgB,QAAQ,gBAAa;AAE9C,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":[]}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ import { isStyleDescriptorArray } from "../../utils/index.js";
4
+ import { shorthandHandler } from "./shorthand.js";
5
+ const color = ["color", "string"];
6
+ const offsetX = ["offsetX", "number"];
7
+ const offsetY = ["offsetY", "number"];
8
+ const blurRadius = ["blurRadius", "number"];
9
+ const spreadDistance = ["spreadDistance", "number"];
10
+ // const inset = ["inset", "string"] as const;
11
+
12
+ const handler = shorthandHandler([[offsetX, offsetY, blurRadius, spreadDistance, color], [color, offsetX, offsetY], [color, offsetX, offsetY, blurRadius], [color, offsetX, offsetY, blurRadius, spreadDistance], [offsetX, offsetY, color], [offsetX, offsetY, blurRadius, color]], [], "object");
13
+ export const boxShadow = (resolveValue, func, get, options) => {
14
+ const args = resolveValue(func[2]);
15
+ if (!isStyleDescriptorArray(args)) {
16
+ return args;
17
+ } else {
18
+ return args.flatMap(shadows => {
19
+ if (shadows === undefined) {
20
+ return [];
21
+ } else if (isStyleDescriptorArray(shadows)) {
22
+ if (shadows.length === 0) {
23
+ return [];
24
+ } else if (Array.isArray(shadows[0])) {
25
+ return shadows.map(shadow => handler(resolveValue, shadow, get, options)).filter(v => v !== undefined);
26
+ } else {
27
+ return handler(resolveValue, shadows, get, options);
28
+ }
29
+ } else {
30
+ return handler(resolveValue, shadows, get, options);
31
+ }
32
+ });
33
+ }
34
+ };
35
+ //# sourceMappingURL=box-shadow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["isStyleDescriptorArray","shorthandHandler","color","offsetX","offsetY","blurRadius","spreadDistance","handler","boxShadow","resolveValue","func","get","options","args","flatMap","shadows","undefined","length","Array","isArray","map","shadow","filter","v"],"sourceRoot":"../../../../../src","sources":["runtime/native/styles/box-shadow.ts"],"mappings":";;AAAA,SAASA,sBAAsB,QAAQ,sBAAa;AAEpD,SAASC,gBAAgB,QAAQ,gBAAa;AAE9C,MAAMC,KAAK,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAU;AAC1C,MAAMC,OAAO,GAAG,CAAC,SAAS,EAAE,QAAQ,CAAU;AAC9C,MAAMC,OAAO,GAAG,CAAC,SAAS,EAAE,QAAQ,CAAU;AAC9C,MAAMC,UAAU,GAAG,CAAC,YAAY,EAAE,QAAQ,C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EC,CAAC,IAAKA,CAAC,KAAKP,SAAS,CAAC;QACnC,CAAC,MAAM;UACL,OAAOT,OAAO,CAACE,YAAY,EAAEM,OAAO,EAAEJ,GAAG,EAAEC,OAAO,CAAC;QACrD;MACF,CAAC,MAAM;QACL,OAAOL,OAAO,CAACE,YAAY,EAAEM,OAAO,EAAEJ,GAAG,EAAEC,OAAO,CAAC;MACrD;IACF,CAAC,CAAC;EACJ;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+
3
+ /* eslint-disable */
4
+ import { isStyleDescriptorArray } from "../../utils/index.js";
5
+ const calcPrecedence = {
6
+ "+": 1,
7
+ "-": 1,
8
+ "*": 2,
9
+ "/": 2
10
+ };
11
+ export const calc = (resolveValue, func) => {
12
+ let mode;
13
+ const values = [];
14
+ const ops = [];
15
+ const args = resolveValue(func[2]);
16
+ if (!isStyleDescriptorArray(args)) return;
17
+ for (let token of args) {
18
+ if (typeof token === "number") {
19
+ if (!mode) mode = "number";
20
+ if (mode !== "number") return;
21
+ values.push(token);
22
+ continue;
23
+ } else if (typeof token === "string") {
24
+ if (token === "(") {
25
+ ops.push(token);
26
+ } else if (token === ")") {
27
+ // Resolve all values within the brackets
28
+ while (ops.length && ops[ops.length - 1] !== "(") {
29
+ applyCalcOperator(ops.pop(), values.pop(), values.pop(), values);
30
+ }
31
+ ops.pop();
32
+ } else if (token.endsWith("%")) {
33
+ if (!mode) mode = "percentage";
34
+ if (mode !== "percentage") return;
35
+ values.push(Number.parseFloat(token.slice(0, -1)));
36
+ } else {
37
+ // This means we have an operator
38
+ while (ops.length && ops[ops.length - 1] &&
39
+ // @ts-ignore
40
+ calcPrecedence[ops[ops.length - 1]] >= calcPrecedence[token]) {
41
+ applyCalcOperator(ops.pop(), values.pop(), values.pop(), values);
42
+ }
43
+ ops.push(token);
44
+ }
45
+ } else {
46
+ // We got something unexpected
47
+ return;
48
+ }
49
+ }
50
+ while (ops.length) {
51
+ applyCalcOperator(ops.pop(), values.pop(), values.pop(), values);
52
+ }
53
+ if (!mode) return;
54
+ const num = values[0];
55
+ if (typeof num !== "number") {
56
+ return;
57
+ }
58
+ const value = Math.round((num + Number.EPSILON) * 100) / 100;
59
+ if (mode === "percentage") {
60
+ return `${value}%`;
61
+ }
62
+ return value;
63
+ };
64
+ function applyCalcOperator(operator, b = 0,
65
+ // These are reversed because we pop them off the stack
66
+ a = 0, values) {
67
+ switch (operator) {
68
+ case "+":
69
+ return values.push(a + b);
70
+ case "-":
71
+ return values.push(a - b);
72
+ case "*":
73
+ return values.push(a * b);
74
+ case "/":
75
+ return values.push(a / b);
76
+ }
77
+ return;
78
+ }
79
+ //# sourceMappingURL=calc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["isStyleDescriptorArray","calcPrecedence","calc","resolveValue","func","mode","values","ops","args","token","push","length","applyCalcOperator","pop","endsWith","Number","parseFloat","slice","num","value","Math","round","EPSILON","operator","b","a"],"sourceRoot":"../../../../../src","sources":["runtime/native/styles/calc.ts"],"mappings":";;AAAA;AACA,SAASA,sBAAsB,QAAQ,sBAAa;AAGpD,MAAMC,cAAsC,GAAG;EAC7C,GAAG,EAAE,CAAC;EACN,GAAG,EAAE,CAAC;EACN,GAAG,EAAE,CAAC;EACN,GAAG,EAAE;AACP,CAAC;AAED,OAAO,MAAMC,IAA2B,GAAGA,CAACC,YAAY,EAAEC,IAAI,KAAK;EACjE,IAAIC,IAAyC;EAC7C,MAAMC,MAAgB,GAAG,EAAE;EAC3B,MAAMC,GAAa,GAAG,EAAE;EAExB,MAAMC,IAAI,GAAGL,YAAY,CAACC,IAAI,CAAC,CAAC,CAAC,CAAC;EAElC,IAAI,CAACJ,sBAAsB,CAACQ,IAAI,CAAC,EAAE;EAEnC,KAAK,IAAIC,KAAK,IAAID,IAAI,EAAE;IACtB,IAAI,OAAOC,KAAK,KAAK,QAAQ,EAAE;MAC7B,IAAI,CAACJ,IAAI,EAAEA,IAAI,GAAG,QAAQ;MAC1B,IAAIA,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,IAAI,CAACD,KAAK,CAAC;MACjB;IACF,CAAC,MAAM;MACL;MACA;IACF;EACF;EAEA,OAAOF,GAAG,CAACI,MAAM,EAAE;IACjBC,iBAAiB,CAACL,GAAG,CAACM,GAAG,CAAC,CAAC,EAAGP,MAAM,CAACO,GAAG,CAAC,CAAC,EAAEP,MAAM,CAACO,GAAG,CAAC,CAAC,EAAEP,MAAM,CAAC;EACnE;EAEA,IAAI,CAACD,IAAI,EAAE;EAEX,MAAMa,GAAG,GAAGZ,MAAM,CAAC,CAAC,CAAC;EAErB,IAAI,OAAOY,GAAG,KAAK,QAAQ,EAAE;IAC3B;EACF;EAEA,MAAMC,KAAK,GAAGC,IAAI,CAACC,KAAK,CAAC,CAACH,GAAG,GAAGH,MAAM,CAACO,OAAO,IAAI,GAAG,CAAC,GAAG,GAAG;EAE5D,IAAIjB,IAAI,KAAK,YAAY,EAAE;IACzB,OAAO,GAAGc,KAAK,GAAG;EACpB;EAEA,OAAOA,KAAK;AACd,CAAC;AAED,SAASP,iBAAiBA,CACxBW,QAAgB,EAChBC,CAAC,GAAG,CAAC;AAAE;AACPC,CAAC,GAAG,CAAC,EACLnB,MAAgB,EAChB;EACA,QAAQiB,QAAQ;IACd,KAAK,GAAG;MACN,OAAOjB,MAAM,CAACI,IAAI,CAACe,CAAC,GAAGD,CAAC,CAAC;IAC3B,KAAK,GAAG;MACN,OAAOlB,MAAM,CAACI,IAAI,CAACe,CAAC,GAAGD,CAAC,CAAC;IAC3B,KAAK,GAAG;MACN,OAAOlB,MAAM,CAACI,IAAI,CAACe,CAAC,GAAGD,CAAC,CAAC;IAC3B,KAAK,GAAG;MACN,OAAOlB,MAAM,CAACI,IAAI,CAACe,CAAC,GAAGD,CAAC,CAAC;EAC7B;EAEA;AACF","ignoreList":[]}
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+
3
+ /* eslint-disable */
4
+
5
+ import { applyValue, Specificity as S } from "../../utils/index.js";
6
+ import { VAR_SYMBOL } from "../reactivity.js";
7
+ import { resolveValue } from "./resolve.js";
8
+ export function calculateProps(get, rules, guards = [], inheritedVariables = {
9
+ [VAR_SYMBOL]: true
10
+ }, inlineVariables = {
11
+ [VAR_SYMBOL]: "inline"
12
+ }) {
13
+ let normal;
14
+ let important;
15
+ const delayedStyles = [];
16
+ for (const rule of rules) {
17
+ if (VAR_SYMBOL in rule) {
18
+ if (typeof rule[VAR_SYMBOL] === "string") {
19
+ Object.assign(inlineVariables, rule);
20
+ } else {
21
+ Object.assign(inheritedVariables, rule);
22
+ }
23
+ continue;
24
+ }
25
+ if (rule.v) {
26
+ for (const variable of rule.v) {
27
+ inlineVariables[variable[0]] = variable[1];
28
+ }
29
+ }
30
+ if (rule.d) {
31
+ let topLevelTarget = rule.s?.[S.Important] ? important ??= {} : normal ??= {};
32
+ let target = topLevelTarget;
33
+ const ruleTarget = rule.target || "style";
34
+ if (typeof ruleTarget === "string") {
35
+ target = target[ruleTarget] ??= {};
36
+ } else if (ruleTarget) {
37
+ for (const path of ruleTarget) {
38
+ target = target[path] ??= {};
39
+ }
40
+ }
41
+ applyDeclarations(get, rule.d, inlineVariables, inheritedVariables, delayedStyles, guards, target, topLevelTarget);
42
+ }
43
+ }
44
+ for (const delayedStyle of delayedStyles) {
45
+ delayedStyle();
46
+ }
47
+ return {
48
+ normal,
49
+ guards,
50
+ important
51
+ };
52
+ }
53
+ export function applyDeclarations(get, declarations, inlineVariables, inheritedVariables, delayedStyles = [], guards = [], target = {}, topLevelTarget = target) {
54
+ for (const declaration of declarations) {
55
+ if (!Array.isArray(declaration)) {
56
+ // Static styles
57
+ Object.assign(target, declaration);
58
+ } else {
59
+ // Dynamic styles
60
+ let value = declaration[0];
61
+ let propPath = declaration[1];
62
+ let prop = "";
63
+ if (typeof propPath === "string") {
64
+ if (propPath.startsWith("^")) {
65
+ propPath = propPath.slice(1);
66
+ target = topLevelTarget[propPath] ??= {};
67
+ }
68
+ prop = propPath;
69
+ } else {
70
+ for (prop of propPath) {
71
+ if (prop.startsWith("^")) {
72
+ prop = prop.slice(1);
73
+ target = topLevelTarget[prop] ??= {};
74
+ } else {
75
+ target = target[prop] ??= {};
76
+ }
77
+ }
78
+ }
79
+ if (Array.isArray(value)) {
80
+ const shouldDelay = declaration[2];
81
+ if (shouldDelay) {
82
+ /**
83
+ * We need to delay the resolution of this value until after all
84
+ * styles have been calculated. But another style might override
85
+ * this value. So we set a placeholder value and only override
86
+ * if the placeholder is preserved
87
+ *
88
+ * This also ensures the props exist, so setValue will properly
89
+ * mutate the props object and not create a new one
90
+ */
91
+ const originalValue = value;
92
+ value = {};
93
+ delayedStyles.push(() => {
94
+ if (target[prop] === value) {
95
+ delete target[prop];
96
+ value = resolveValue(originalValue, get, {
97
+ inlineVariables,
98
+ inheritedVariables,
99
+ renderGuards: guards,
100
+ calculateProps
101
+ });
102
+ applyValue(target, prop, value);
103
+ }
104
+ });
105
+ } else {
106
+ value = resolveValue(value, get, {
107
+ inlineVariables,
108
+ inheritedVariables,
109
+ renderGuards: guards,
110
+ calculateProps
111
+ });
112
+ }
113
+ applyValue(target, prop, value);
114
+ }
115
+ }
116
+ }
117
+ }
118
+ //# sourceMappingURL=calculate-props.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["applyValue","Specificity","S","VAR_SYMBOL","resolveValue","calculateProps","get","rules","guards","inheritedVariables","inlineVariables","normal","important","delayedStyles","rule","Object","assign","v","variable","d","topLevelTarget","s","Important","target","ruleTarget","path","applyDeclarations","delayedStyle","declarations","declaration","Array","isArray","value","propPath","prop","startsWith","slice","shouldDelay","originalValue","push","renderGuards"],"sourceRoot":"../../../../../src","sources":["runtime/native/styles/calculate-props.ts"],"mappings":";;AAAA;;AAMA,SAASA,UAAU,EAAEC,WAAW,IAAIC,CAAC,QAAQ,sBAAa;AAE1D,SACEC,UAAU,QAGL,kBAAe;AACtB,SAASC,YAAY,QAAQ,cAAW;AAExC,OAAO,SAASC,cAAcA,CAC5BC,GAAW,EACXC,KAA4D,EAC5DC,MAAqB,GA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ACpBb,MAAM,GAAGH,cAAc,CAACc,IAAI,CAAC,KAAK,CAAC,CAAC;UACtC,CAAC,MAAM;YACLX,MAAM,GAAGA,MAAM,CAACW,IAAI,CAAC,KAAK,CAAC,CAAC;UAC9B;QACF;MACF;MAEA,IAAIJ,KAAK,CAACC,OAAO,CAACC,KAAK,CAAC,EAAE;QACxB,MAAMK,WAAW,GAAGR,WAAW,CAAC,CAAC,CAAC;QAElC,IAAIQ,WAAW,EAAE;UACf;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;UACU,MAAMC,aAAa,GAAGN,KAAK;UAC3BA,KAAK,GAAG,CAAC,CAAC;UACVnB,aAAa,CAAC0B,IAAI,CAAC,MAAM;YACvB,IAAIhB,MAAM,CAACW,IAAI,CAAC,KAAKF,KAAK,EAAE;cAC1B,OAAOT,MAAM,CAACW,IAAI,CAAC;cACnBF,KAAK,GAAG5B,YAAY,CAACkC,aAAa,EAAEhC,GAAG,EAAE;gBACvCI,eAAe;gBACfD,kBAAkB;gBAClB+B,YAAY,EAAEhC,MAAM;gBACpBH;cACF,CAAC,CAAC;cACFL,UAAU,CAACuB,MAAM,EAAEW,IAAI,EAAEF,KAAK,CAAC;YACjC;UACF,CAAC,CAAC;QACJ,CAAC,MAAM;UACLA,KAAK,GAAG5B,YAAY,CAAC4B,KAAK,EAAE1B,GAAG,EAAE;YAC/BI,eAAe;YACfD,kBAAkB;YAClB+B,YAAY,EAAEhC,MAAM;YACpBH;UACF,CAAC,CAAC;QACJ;QAEAL,UAAU,CAACuB,MAAM,EAAEW,IAAI,EAAEF,KAAK,CAAC;MACjC;IACF;EACF;AACF","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ export const emVariableName = "__rn-css-em";
4
+ export const ShortHandSymbol = Symbol();
5
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["emVariableName","ShortHandSymbol","Symbol"],"sourceRoot":"../../../../../src","sources":["runtime/native/styles/constants.ts"],"mappings":";;AAAA,OAAO,MAAMA,cAAc,GAAG,aAAa;AAC3C,OAAO,MAAMC,eAAe,GAAGC,MAAM,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+
3
+ /* eslint-disable */
4
+ export const transformKeys = new Set(["translateX", "translateY", "scale", "scaleX", "scaleY", "rotate", "rotateX", "rotateY", "rotateZ", "skewX", "skewY", "perspective", "matrix", "transformOrigin"]);
5
+ export const defaultValues = {
6
+ backgroundColor: "transparent",
7
+ borderBottomColor: "transparent",
8
+ borderBottomLeftRadius: 0,
9
+ borderBottomRightRadius: 0,
10
+ borderBottomWidth: 0,
11
+ borderColor: "transparent",
12
+ borderLeftColor: "transparent",
13
+ borderLeftWidth: 0,
14
+ borderRadius: 0,
15
+ borderRightColor: "transparent",
16
+ borderRightWidth: 0,
17
+ borderTopColor: "transparent",
18
+ borderTopWidth: 0,
19
+ borderWidth: 0,
20
+ bottom: 0,
21
+ color: "black",
22
+ flex: 1,
23
+ flexBasis: 1,
24
+ flexGrow: 1,
25
+ flexShrink: 0,
26
+ fontSize: 14,
27
+ fontWeight: "400",
28
+ gap: 0,
29
+ left: 0,
30
+ lineHeight: 14,
31
+ margin: 0,
32
+ marginBottom: 0,
33
+ marginLeft: 0,
34
+ marginRight: 0,
35
+ marginTop: 0,
36
+ maxHeight: 99999,
37
+ maxWidth: 99999,
38
+ minHeight: 0,
39
+ minWidth: 0,
40
+ opacity: 1,
41
+ padding: 0,
42
+ paddingBottom: 0,
43
+ paddingLeft: 0,
44
+ paddingRight: 0,
45
+ paddingTop: 0,
46
+ perspective: 1,
47
+ right: 0,
48
+ rotate: "0deg",
49
+ rotateX: "0deg",
50
+ rotateY: "0deg",
51
+ rotateZ: "0deg",
52
+ scale: 1,
53
+ scaleX: 1,
54
+ scaleY: 1,
55
+ skewX: "0deg",
56
+ skewY: "0deg",
57
+ textShadowRadius: 0,
58
+ top: 0,
59
+ transformOrigin: "50%",
60
+ translateX: 0,
61
+ translateY: 0,
62
+ width: 0,
63
+ zIndex: 0
64
+ };
65
+ //# sourceMappingURL=defaults.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["transformKeys","Set","defaultValues","backgroundColor","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomWidth","borderColor","borderLeftColor","borderLeftWidth","borderRadius","borderRightColor","borderRightWidth","borderTopColor","borderTopWidth","borderWidth","bottom","color","flex","flexBasis","flexGrow","flexShrink","fontSize","fontWeight","gap","left","lineHeight","margin","marginBottom","marginLeft","marginRight","marginTop","maxHeight","maxWidth","minHeight","minWidth","opacity","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","perspective","right","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","skewX","skewY","textShadowRadius","top","transformOrigin","translateX","translateY","width","zIndex"],"sourceRoot":"../../../../../src","sources":["runtime/native/styles/defaults.ts"],"mappings":";;AAAA;AACA,OAAO,MAAMA,aAAa,GAAG,IAAIC,GAAG,CAAC,CACnC,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAS,EACT,SAAS,EACT,OAAO,EACP,OAAO,EACP,aAAa,EACb,QAAQ,EACR,iBAAiB,CAClB,CAAC;AAEF,OAAO,MAAMC,aAAkC,GAAG;EAChDC,eAAe,EAAE,aAAa;EAC9BC,iBAAiB,EAAE,aAAa;EAChCC,sBAAsB,EAAE,CAAC;EACzBC,uBAAuB,EAAE,CAAC;EAC1BC,iBAAiB,EAAE,CAAC;EACpBC,WAAW,EAAE,aAAa;EAC1BC,eAAe,EAAE,aAAa;EAC9BC,eAAe,EAAE,CAAC;EAClBC,YAAY,EAAE,CAAC;EACfC,gBAAgB,EAAE,aAAa;EAC/BC,gBAAgB,EAAE,CAAC;EACnBC,cAAc,EAAE,aAAa;EAC7BC,cAAc,EAAE,CAAC;EACjBC,WAAW,EAAE,CAAC;EACdC,MAAM,EAAE,CAAC;EACTC,KAAK,EAAE,OAAO;EACdC,IAAI,EAAE,CAAC;EACPC,SAAS,EAAE,CAAC;EACZC,QAAQ,EAAE,CAAC;EACXC,UAAU,EAAE,CAAC;EACbC,QAAQ,EAAE,EAAE;EACZC,UAAU,EAAE,KAAK;EACjBC,GAAG,EAAE,CAAC;EACNC,IAAI,EAAE,CAAC;EACPC,UAAU,EAAE,EAAE;EACdC,MAAM,EAAE,CAAC;EACTC,YAAY,EAAE,CAAC;EACfC,UAAU,EAAE,CAAC;EACbC,WAAW,EAAE,CAAC;EACdC,SAAS,EAAE,CAAC;EACZC,SAAS,EAAE,KAAK;EAChBC,QAAQ,EAAE,KAAK;EACfC,SAAS,EAAE,CAAC;EACZC,QAAQ,EAAE,CAAC;EACXC,OAAO,EAAE,CAAC;EACVC,OAAO,EAAE,CAAC;EACVC,aAAa,EAAE,CAAC;EAChBC,WAAW,EAAE,CAAC;EACdC,YAAY,EAAE,CAAC;EACfC,UAAU,EAAE,CAAC;EACbC,WAAW,EAAE,CAAC;EACdC,KAAK,EAAE,CAAC;EACRC,MAAM,EAAE,MAAM;EACdC,OAAO,EAAE,MAAM;EACfC,OAAO,EAAE,MAAM;EACfC,OAAO,EAAE,MAAM;EACfC,KAAK,EAAE,CAAC;EACRC,MAAM,EAAE,CAAC;EACTC,MAAM,EAAE,CAAC;EACTC,KAAK,EAAE,MAAM;EACbC,KAAK,EAAE,MAAM;EACbC,gBAAgB,EAAE,CAAC;EACnBC,GAAG,EAAE,CAAC;EACNC,eAAe,EAAE,KAAK;EACtBC,UAAU,EAAE,CAAC;EACbC,UAAU,EAAE,CAAC;EACbC,KAAK,EAAE,CAAC;EACRC,MAAM,EAAE;AACV,CAAC","ignoreList":[]}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+
3
+ import { isStyleDescriptorArray } from "../../utils/index.js";
4
+ import { shorthandHandler } from "./shorthand.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/filters.ts"],"mappings":";;AAAA,SAASA,sBAAsB,QAAQ,sBAAa;AAEpD,SAASC,gBAAgB,QAAQ,gBAAa;AAE9C,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,YAAY,EAAEC,KAAK,KAAK;EACvE,MAAMC,IAAI,GAAGF,YAAY,CAACC,KAAK,CAAC,CAAC,CAA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} 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.ruleEffect)) {
36
+ result ??= {};
37
+ result.onHoverIn = getInteractionHandler(state.ruleEffect, "onHoverIn", inline?.onHoverIn);
38
+ result.onHoverOut = getInteractionHandler(state.ruleEffect, "onHoverOut", inline?.onHoverOut);
39
+ }
40
+ if (activeFamily.has(state.ruleEffect)) {
41
+ result ??= {};
42
+ result.onPress = getInteractionHandler(state.ruleEffect, "onPress", inline?.onPress);
43
+ result.onPressIn = getInteractionHandler(state.ruleEffect, "onPressIn", inline?.onPressIn);
44
+ result.onPressOut = getInteractionHandler(state.ruleEffect, "onPressOut", inline?.onPressOut);
45
+ }
46
+ if (focusFamily.has(state.ruleEffect)) {
47
+ result ??= {};
48
+ result.onBlur = getInteractionHandler(state.ruleEffect, "onBlur", inline?.onBlur);
49
+ result.onFocus = getInteractionHandler(state.ruleEffect, "onFocus", inline?.onFocus);
50
+ }
51
+ if (containerLayoutFamily.has(state.ruleEffect)) {
52
+ result ??= {};
53
+ result.onLayout = getInteractionHandler(state.ruleEffect, "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","ruleEffect","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,MAAMiB,GAAG,GAAGV,UAAU,CAAEW,IAAI,IAAKT,cAAc,CAACS,IAAI,EAAEL,WAAW,CAAC,CAAC;;EAEnE;AACJ;AACA;EACI,OAAOM,MAAM,CAACC,MAAM,CAACH,GAAG,EAAE;IACxBI,OAAO,EAAGC,MAAc,IAAK;MAC3BL,GAAG,CAACM,SAAS,CAACC,MAAM,CAACF,MAAM,CAAC;MAC5B,IAAIL,GAAG,CAACM,SAAS,CAACE,IAAI,KAAK,CAAC,EAAE;QAC5Bf,YAAY,CAACc,MAAM,CAACb,IAAI,CAAC;MAC3B;IACF;EACF,CAAC,CAAC;AACJ,CACF,CAAC;AAED,OAAO,SAASe,cAAcA,CAC5BC,KAAqB,EACrBC,MAA8C,EAC9C;EACA,IAAIC,MAAuC;EAE3C,MAAMC,WAAW,GAAGH,KAAK,CAACI,SAAS,EAAEC,GAAG,CAACL,KAAK,CAACM,WAAW,CAAC;EAE3D,KAAK,M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