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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (926) hide show
  1. package/{LICENSE.md → LICENSE} +6 -8
  2. package/README.md +177 -70
  3. package/dist/commonjs/babel/allowedModules.js +23 -0
  4. package/dist/commonjs/babel/allowedModules.js.map +1 -0
  5. package/dist/commonjs/babel/helpers.js +25 -0
  6. package/dist/commonjs/babel/helpers.js.map +1 -0
  7. package/dist/commonjs/babel/import-plugin.js +101 -0
  8. package/dist/commonjs/babel/import-plugin.js.map +1 -0
  9. package/dist/commonjs/babel/index.js +9 -0
  10. package/dist/commonjs/babel/index.js.map +1 -0
  11. package/dist/commonjs/babel/react-native-web.js +118 -0
  12. package/dist/commonjs/babel/react-native-web.js.map +1 -0
  13. package/dist/commonjs/babel/react-native.js +118 -0
  14. package/dist/commonjs/babel/react-native.js.map +1 -0
  15. package/dist/commonjs/compiler/atRules.js +114 -0
  16. package/dist/commonjs/compiler/atRules.js.map +1 -0
  17. package/dist/commonjs/compiler/compiler.js +281 -0
  18. package/dist/commonjs/compiler/compiler.js.map +1 -0
  19. package/dist/commonjs/compiler/compiler.types.js +4 -0
  20. package/dist/commonjs/compiler/compiler.types.js.map +1 -0
  21. package/dist/commonjs/compiler/container-query.js +63 -0
  22. package/dist/commonjs/compiler/container-query.js.map +1 -0
  23. package/dist/commonjs/compiler/declarations.js +2196 -0
  24. package/dist/commonjs/compiler/declarations.js.map +1 -0
  25. package/dist/commonjs/compiler/functions-web.js +44 -0
  26. package/dist/commonjs/compiler/functions-web.js.map +1 -0
  27. package/dist/commonjs/compiler/functions.js +59 -0
  28. package/dist/commonjs/compiler/functions.js.map +1 -0
  29. package/dist/commonjs/compiler/index.js +17 -0
  30. package/dist/commonjs/compiler/index.js.map +1 -0
  31. package/dist/commonjs/compiler/inheritance.test.js +78 -0
  32. package/dist/commonjs/compiler/inheritance.test.js.map +1 -0
  33. package/dist/commonjs/compiler/keyframes.js +60 -0
  34. package/dist/commonjs/compiler/keyframes.js.map +1 -0
  35. package/dist/commonjs/compiler/media-query.js +172 -0
  36. package/dist/commonjs/compiler/media-query.js.map +1 -0
  37. package/dist/commonjs/compiler/pseudo-elements.js +49 -0
  38. package/dist/commonjs/compiler/pseudo-elements.js.map +1 -0
  39. package/dist/commonjs/compiler/selector-builder.js +501 -0
  40. package/dist/commonjs/compiler/selector-builder.js.map +1 -0
  41. package/dist/commonjs/compiler/selectors.js +414 -0
  42. package/dist/commonjs/compiler/selectors.js.map +1 -0
  43. package/dist/commonjs/compiler/split-by-delimiter.js +21 -0
  44. package/dist/commonjs/compiler/split-by-delimiter.js.map +1 -0
  45. package/dist/commonjs/compiler/stylesheet.js +476 -0
  46. package/dist/commonjs/compiler/stylesheet.js.map +1 -0
  47. package/dist/commonjs/compiler/supports.js +27 -0
  48. package/dist/commonjs/compiler/supports.js.map +1 -0
  49. package/dist/commonjs/components/ActivityIndicator.js +22 -0
  50. package/dist/commonjs/components/ActivityIndicator.js.map +1 -0
  51. package/dist/commonjs/components/Button.js +22 -0
  52. package/dist/commonjs/components/Button.js.map +1 -0
  53. package/dist/commonjs/components/FlatList.js +19 -0
  54. package/dist/commonjs/components/FlatList.js.map +1 -0
  55. package/dist/commonjs/components/Image.js +17 -0
  56. package/dist/commonjs/components/Image.js.map +1 -0
  57. package/dist/commonjs/components/Switch.js +17 -0
  58. package/dist/commonjs/components/Switch.js.map +1 -0
  59. package/dist/commonjs/components/Text.js +17 -0
  60. package/dist/commonjs/components/Text.js.map +1 -0
  61. package/dist/commonjs/components/TextInput.js +17 -0
  62. package/dist/commonjs/components/TextInput.js.map +1 -0
  63. package/dist/commonjs/components/View.js +17 -0
  64. package/dist/commonjs/components/View.js.map +1 -0
  65. package/dist/commonjs/components/index.js +84 -0
  66. package/dist/commonjs/components/index.js.map +1 -0
  67. package/dist/commonjs/components/react-native-safe-area-context.js +17 -0
  68. package/dist/commonjs/components/react-native-safe-area-context.js.map +1 -0
  69. package/dist/commonjs/components/react-native-safe-area-context.native.js +53 -0
  70. package/dist/commonjs/components/react-native-safe-area-context.native.js.map +1 -0
  71. package/dist/commonjs/index.js +28 -0
  72. package/dist/commonjs/index.js.map +1 -0
  73. package/dist/commonjs/jest/expect.d.js +2 -0
  74. package/dist/commonjs/jest/expect.d.js.map +1 -0
  75. package/dist/commonjs/jest/index.js +56 -0
  76. package/dist/commonjs/jest/index.js.map +1 -0
  77. package/dist/commonjs/jest/setup.js +3 -0
  78. package/dist/commonjs/jest/setup.js.map +1 -0
  79. package/dist/commonjs/jest/setupAfterEnv.js +15 -0
  80. package/dist/commonjs/jest/setupAfterEnv.js.map +1 -0
  81. package/dist/commonjs/metro/index.js +170 -0
  82. package/dist/commonjs/metro/index.js.map +1 -0
  83. package/dist/commonjs/metro/injection-code.js +27 -0
  84. package/dist/commonjs/metro/injection-code.js.map +1 -0
  85. package/dist/commonjs/metro/metro-transformer.js +31 -0
  86. package/dist/commonjs/metro/metro-transformer.js.map +1 -0
  87. package/dist/commonjs/metro/picocolors.js +71 -0
  88. package/dist/commonjs/metro/picocolors.js.map +1 -0
  89. package/dist/commonjs/metro/resolver.js +65 -0
  90. package/dist/commonjs/metro/resolver.js.map +1 -0
  91. package/dist/commonjs/metro/stringify.js +59 -0
  92. package/dist/commonjs/metro/stringify.js.map +1 -0
  93. package/dist/commonjs/metro/typescript.js +47 -0
  94. package/dist/commonjs/metro/typescript.js.map +1 -0
  95. package/dist/commonjs/package.json +1 -0
  96. package/dist/commonjs/poison.pill.js +39 -0
  97. package/dist/commonjs/poison.pill.js.map +1 -0
  98. package/dist/commonjs/runtime/index.js +17 -0
  99. package/dist/commonjs/runtime/index.js.map +1 -0
  100. package/dist/commonjs/runtime/native/api.js +96 -0
  101. package/dist/commonjs/runtime/native/api.js.map +1 -0
  102. package/dist/commonjs/runtime/native/conditions/attributes.js +42 -0
  103. package/dist/commonjs/runtime/native/conditions/attributes.js.map +1 -0
  104. package/dist/commonjs/runtime/native/conditions/container-query.js +123 -0
  105. package/dist/commonjs/runtime/native/conditions/container-query.js.map +1 -0
  106. package/dist/commonjs/runtime/native/conditions/guards.js +33 -0
  107. package/dist/commonjs/runtime/native/conditions/guards.js.map +1 -0
  108. package/dist/commonjs/runtime/native/conditions/index.js +40 -0
  109. package/dist/commonjs/runtime/native/conditions/index.js.map +1 -0
  110. package/dist/commonjs/runtime/native/conditions/media-query.js +98 -0
  111. package/dist/commonjs/runtime/native/conditions/media-query.js.map +1 -0
  112. package/dist/commonjs/runtime/native/index.js +28 -0
  113. package/dist/commonjs/runtime/native/index.js.map +1 -0
  114. package/dist/commonjs/runtime/native/metro.js +6 -0
  115. package/dist/commonjs/runtime/native/metro.js.map +1 -0
  116. package/dist/commonjs/runtime/native/react/interaction.js +63 -0
  117. package/dist/commonjs/runtime/native/react/interaction.js.map +1 -0
  118. package/dist/commonjs/runtime/native/react/rules.js +259 -0
  119. package/dist/commonjs/runtime/native/react/rules.js.map +1 -0
  120. package/dist/commonjs/runtime/native/react/useNativeCss.js +159 -0
  121. package/dist/commonjs/runtime/native/react/useNativeCss.js.map +1 -0
  122. package/dist/commonjs/runtime/native/react/usePassthrough.js +50 -0
  123. package/dist/commonjs/runtime/native/react/usePassthrough.js.map +1 -0
  124. package/dist/commonjs/runtime/native/reactivity.js +189 -0
  125. package/dist/commonjs/runtime/native/reactivity.js.map +1 -0
  126. package/dist/commonjs/runtime/native/reanimated.js +17 -0
  127. package/dist/commonjs/runtime/native/reanimated.js.map +1 -0
  128. package/dist/commonjs/runtime/native/styles/calculate-props.js +148 -0
  129. package/dist/commonjs/runtime/native/styles/calculate-props.js.map +1 -0
  130. package/dist/commonjs/runtime/native/styles/constants.js +9 -0
  131. package/dist/commonjs/runtime/native/styles/constants.js.map +1 -0
  132. package/dist/commonjs/runtime/native/styles/defaults.js +69 -0
  133. package/dist/commonjs/runtime/native/styles/defaults.js.map +1 -0
  134. package/dist/commonjs/runtime/native/styles/functions/animation-timing.js +34 -0
  135. package/dist/commonjs/runtime/native/styles/functions/animation-timing.js.map +1 -0
  136. package/dist/commonjs/runtime/native/styles/functions/calc.js +125 -0
  137. package/dist/commonjs/runtime/native/styles/functions/calc.js.map +1 -0
  138. package/dist/commonjs/runtime/native/styles/functions/filters.js +84 -0
  139. package/dist/commonjs/runtime/native/styles/functions/filters.js.map +1 -0
  140. package/dist/commonjs/runtime/native/styles/functions/index.js +83 -0
  141. package/dist/commonjs/runtime/native/styles/functions/index.js.map +1 -0
  142. package/dist/commonjs/runtime/native/styles/functions/numeric-functions.js +32 -0
  143. package/dist/commonjs/runtime/native/styles/functions/numeric-functions.js.map +1 -0
  144. package/dist/commonjs/runtime/native/styles/functions/platform-functions.js +46 -0
  145. package/dist/commonjs/runtime/native/styles/functions/platform-functions.js.map +1 -0
  146. package/dist/commonjs/runtime/native/styles/functions/string-functions.js +23 -0
  147. package/dist/commonjs/runtime/native/styles/functions/string-functions.js.map +1 -0
  148. package/dist/commonjs/runtime/native/styles/functions/transform-functions.js +121 -0
  149. package/dist/commonjs/runtime/native/styles/functions/transform-functions.js.map +1 -0
  150. package/dist/commonjs/runtime/native/styles/index.js +115 -0
  151. package/dist/commonjs/runtime/native/styles/index.js.map +1 -0
  152. package/dist/commonjs/runtime/native/styles/resolve.js +106 -0
  153. package/dist/commonjs/runtime/native/styles/resolve.js.map +1 -0
  154. package/dist/commonjs/runtime/native/styles/shorthands/_handler.js +79 -0
  155. package/dist/commonjs/runtime/native/styles/shorthands/_handler.js.map +1 -0
  156. package/dist/commonjs/runtime/native/styles/shorthands/animation.js +57 -0
  157. package/dist/commonjs/runtime/native/styles/shorthands/animation.js.map +1 -0
  158. package/dist/commonjs/runtime/native/styles/shorthands/border.js +12 -0
  159. package/dist/commonjs/runtime/native/styles/shorthands/border.js.map +1 -0
  160. package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js +50 -0
  161. package/dist/commonjs/runtime/native/styles/shorthands/box-shadow.js.map +1 -0
  162. package/dist/commonjs/runtime/native/styles/shorthands/index.js +61 -0
  163. package/dist/commonjs/runtime/native/styles/shorthands/index.js.map +1 -0
  164. package/dist/commonjs/runtime/native/styles/shorthands/text-shadow.js +13 -0
  165. package/dist/commonjs/runtime/native/styles/shorthands/text-shadow.js.map +1 -0
  166. package/dist/commonjs/runtime/native/styles/shorthands/transform.js +23 -0
  167. package/dist/commonjs/runtime/native/styles/shorthands/transform.js.map +1 -0
  168. package/dist/commonjs/runtime/native/styles/units.js +52 -0
  169. package/dist/commonjs/runtime/native/styles/units.js.map +1 -0
  170. package/dist/commonjs/runtime/native/styles/variables.js +79 -0
  171. package/dist/commonjs/runtime/native/styles/variables.js.map +1 -0
  172. package/dist/commonjs/runtime/runtime.js +17 -0
  173. package/dist/commonjs/runtime/runtime.js.map +1 -0
  174. package/dist/commonjs/runtime/runtime.native.js +17 -0
  175. package/dist/commonjs/runtime/runtime.native.js.map +1 -0
  176. package/dist/commonjs/runtime/runtime.types.js +6 -0
  177. package/dist/commonjs/runtime/runtime.types.js.map +1 -0
  178. package/dist/commonjs/runtime/utils/components.js +18 -0
  179. package/dist/commonjs/runtime/utils/components.js.map +1 -0
  180. package/dist/commonjs/runtime/utils/dot-notation.types.js +2 -0
  181. package/dist/commonjs/runtime/utils/dot-notation.types.js.map +1 -0
  182. package/dist/commonjs/runtime/utils/index.js +61 -0
  183. package/dist/commonjs/runtime/utils/index.js.map +1 -0
  184. package/dist/commonjs/runtime/utils/objects.js +92 -0
  185. package/dist/commonjs/runtime/utils/objects.js.map +1 -0
  186. package/dist/commonjs/runtime/utils/specificity.js +44 -0
  187. package/dist/commonjs/runtime/utils/specificity.js.map +1 -0
  188. package/dist/commonjs/runtime/utils/style-value.js +21 -0
  189. package/dist/commonjs/runtime/utils/style-value.js.map +1 -0
  190. package/dist/commonjs/runtime/utils/utils.types.js +6 -0
  191. package/dist/commonjs/runtime/utils/utils.types.js.map +1 -0
  192. package/dist/commonjs/runtime/web/api.js +68 -0
  193. package/dist/commonjs/runtime/web/api.js.map +1 -0
  194. package/dist/commonjs/runtime/web/assign-style.js +27 -0
  195. package/dist/commonjs/runtime/web/assign-style.js.map +1 -0
  196. package/dist/commonjs/runtime/web/index.js +18 -0
  197. package/dist/commonjs/runtime/web/index.js.map +1 -0
  198. package/dist/commonjs/runtime/web/metro.js +6 -0
  199. package/dist/commonjs/runtime/web/metro.js.map +1 -0
  200. package/dist/commonjs/style-collection/index.js +110 -0
  201. package/dist/commonjs/style-collection/index.js.map +1 -0
  202. package/dist/commonjs/style-collection/root.js +28 -0
  203. package/dist/commonjs/style-collection/root.js.map +1 -0
  204. package/dist/module/babel/allowedModules.js +19 -0
  205. package/dist/module/babel/allowedModules.js.map +1 -0
  206. package/dist/module/babel/helpers.js +21 -0
  207. package/dist/module/babel/helpers.js.map +1 -0
  208. package/dist/module/babel/import-plugin.js +97 -0
  209. package/dist/module/babel/import-plugin.js.map +1 -0
  210. package/dist/module/babel/index.js +9 -0
  211. package/dist/module/babel/index.js.map +1 -0
  212. package/dist/module/babel/react-native-web.js +112 -0
  213. package/dist/module/babel/react-native-web.js.map +1 -0
  214. package/dist/module/babel/react-native.js +112 -0
  215. package/dist/module/babel/react-native.js.map +1 -0
  216. package/dist/module/compiler/atRules.js +110 -0
  217. package/dist/module/compiler/atRules.js.map +1 -0
  218. package/dist/module/compiler/compiler.js +276 -0
  219. package/dist/module/compiler/compiler.js.map +1 -0
  220. package/dist/module/compiler/compiler.types.js +60 -0
  221. package/dist/module/compiler/compiler.types.js.map +1 -0
  222. package/dist/module/compiler/container-query.js +59 -0
  223. package/dist/module/compiler/container-query.js.map +1 -0
  224. package/dist/module/compiler/declarations.js +2121 -0
  225. package/dist/module/compiler/declarations.js.map +1 -0
  226. package/dist/module/compiler/functions-web.js +32 -0
  227. package/dist/module/compiler/functions-web.js.map +1 -0
  228. package/dist/module/compiler/functions.js +47 -0
  229. package/dist/module/compiler/functions.js.map +1 -0
  230. package/dist/module/compiler/index.js +9 -0
  231. package/dist/module/compiler/index.js.map +1 -0
  232. package/dist/module/compiler/inheritance.test.js +78 -0
  233. package/dist/module/compiler/inheritance.test.js.map +1 -0
  234. package/dist/module/compiler/keyframes.js +54 -0
  235. package/dist/module/compiler/keyframes.js.map +1 -0
  236. package/dist/module/compiler/media-query.js +166 -0
  237. package/dist/module/compiler/media-query.js.map +1 -0
  238. package/dist/module/compiler/pseudo-elements.js +44 -0
  239. package/dist/module/compiler/pseudo-elements.js.map +1 -0
  240. package/dist/module/compiler/selector-builder.js +496 -0
  241. package/dist/module/compiler/selector-builder.js.map +1 -0
  242. package/dist/module/compiler/selectors.js +409 -0
  243. package/dist/module/compiler/selectors.js.map +1 -0
  244. package/dist/module/compiler/split-by-delimiter.js +17 -0
  245. package/dist/module/compiler/split-by-delimiter.js.map +1 -0
  246. package/dist/module/compiler/stylesheet.js +471 -0
  247. package/dist/module/compiler/stylesheet.js.map +1 -0
  248. package/dist/module/compiler/supports.js +23 -0
  249. package/dist/module/compiler/supports.js.map +1 -0
  250. package/dist/module/components/ActivityIndicator.js +17 -0
  251. package/dist/module/components/ActivityIndicator.js.map +1 -0
  252. package/dist/module/components/Button.js +17 -0
  253. package/dist/module/components/Button.js.map +1 -0
  254. package/dist/module/components/FlatList.js +14 -0
  255. package/dist/module/components/FlatList.js.map +1 -0
  256. package/dist/module/components/Image.js +12 -0
  257. package/dist/module/components/Image.js.map +1 -0
  258. package/dist/module/components/Switch.js +12 -0
  259. package/dist/module/components/Switch.js.map +1 -0
  260. package/dist/module/components/Text.js +12 -0
  261. package/dist/module/components/Text.js.map +1 -0
  262. package/dist/module/components/TextInput.js +12 -0
  263. package/dist/module/components/TextInput.js.map +1 -0
  264. package/dist/module/components/View.js +12 -0
  265. package/dist/module/components/View.js.map +1 -0
  266. package/dist/module/components/index.js +12 -0
  267. package/dist/module/components/index.js.map +1 -0
  268. package/dist/module/components/react-native-safe-area-context.js +4 -0
  269. package/dist/module/components/react-native-safe-area-context.js.map +1 -0
  270. package/dist/module/components/react-native-safe-area-context.native.js +36 -0
  271. package/dist/module/components/react-native-safe-area-context.native.js.map +1 -0
  272. package/dist/module/index.js +5 -0
  273. package/dist/module/index.js.map +1 -0
  274. package/dist/module/jest/expect.d.js +2 -0
  275. package/dist/module/jest/expect.d.js.map +1 -0
  276. package/dist/module/jest/index.js +50 -0
  277. package/dist/module/jest/index.js.map +1 -0
  278. package/dist/module/jest/setup.js +3 -0
  279. package/dist/module/jest/setup.js.map +1 -0
  280. package/dist/module/jest/setupAfterEnv.js +15 -0
  281. package/dist/module/jest/setupAfterEnv.js.map +1 -0
  282. package/dist/module/metro/index.js +164 -0
  283. package/dist/module/metro/index.js.map +1 -0
  284. package/dist/module/metro/injection-code.js +22 -0
  285. package/dist/module/metro/injection-code.js.map +1 -0
  286. package/dist/module/metro/metro-transformer.js +27 -0
  287. package/dist/module/metro/metro-transformer.js.map +1 -0
  288. package/dist/module/metro/picocolors.js +67 -0
  289. package/dist/module/metro/picocolors.js.map +1 -0
  290. package/dist/module/metro/resolver.js +60 -0
  291. package/dist/module/metro/resolver.js.map +1 -0
  292. package/dist/module/metro/stringify.js +55 -0
  293. package/dist/module/metro/stringify.js.map +1 -0
  294. package/dist/module/metro/typescript.js +42 -0
  295. package/dist/module/metro/typescript.js.map +1 -0
  296. package/dist/module/package.json +1 -0
  297. package/dist/module/poison.pill.js +37 -0
  298. package/dist/module/poison.pill.js.map +1 -0
  299. package/dist/module/runtime/index.js +9 -0
  300. package/dist/module/runtime/index.js.map +1 -0
  301. package/dist/module/runtime/native/api.js +76 -0
  302. package/dist/module/runtime/native/api.js.map +1 -0
  303. package/dist/module/runtime/native/conditions/attributes.js +38 -0
  304. package/dist/module/runtime/native/conditions/attributes.js.map +1 -0
  305. package/dist/module/runtime/native/conditions/container-query.js +117 -0
  306. package/dist/module/runtime/native/conditions/container-query.js.map +1 -0
  307. package/dist/module/runtime/native/conditions/guards.js +29 -0
  308. package/dist/module/runtime/native/conditions/guards.js.map +1 -0
  309. package/dist/module/runtime/native/conditions/index.js +36 -0
  310. package/dist/module/runtime/native/conditions/index.js.map +1 -0
  311. package/dist/module/runtime/native/conditions/media-query.js +93 -0
  312. package/dist/module/runtime/native/conditions/media-query.js.map +1 -0
  313. package/dist/module/runtime/native/index.js +5 -0
  314. package/dist/module/runtime/native/index.js.map +1 -0
  315. package/dist/module/runtime/native/metro.js +5 -0
  316. package/dist/module/runtime/native/metro.js.map +1 -0
  317. package/dist/module/runtime/native/react/interaction.js +59 -0
  318. package/dist/module/runtime/native/react/interaction.js.map +1 -0
  319. package/dist/module/runtime/native/react/rules.js +251 -0
  320. package/dist/module/runtime/native/react/rules.js.map +1 -0
  321. package/dist/module/runtime/native/react/useNativeCss.js +153 -0
  322. package/dist/module/runtime/native/react/useNativeCss.js.map +1 -0
  323. package/dist/module/runtime/native/react/usePassthrough.js +45 -0
  324. package/dist/module/runtime/native/react/usePassthrough.js.map +1 -0
  325. package/dist/module/runtime/native/reactivity.js +177 -0
  326. package/dist/module/runtime/native/reactivity.js.map +1 -0
  327. package/dist/module/runtime/native/reanimated.js +13 -0
  328. package/dist/module/runtime/native/reanimated.js.map +1 -0
  329. package/dist/module/runtime/native/styles/calculate-props.js +143 -0
  330. package/dist/module/runtime/native/styles/calculate-props.js.map +1 -0
  331. package/dist/module/runtime/native/styles/constants.js +5 -0
  332. package/dist/module/runtime/native/styles/constants.js.map +1 -0
  333. package/dist/module/runtime/native/styles/defaults.js +65 -0
  334. package/dist/module/runtime/native/styles/defaults.js.map +1 -0
  335. package/dist/module/runtime/native/styles/functions/animation-timing.js +30 -0
  336. package/dist/module/runtime/native/styles/functions/animation-timing.js.map +1 -0
  337. package/dist/module/runtime/native/styles/functions/calc.js +120 -0
  338. package/dist/module/runtime/native/styles/functions/calc.js.map +1 -0
  339. package/dist/module/runtime/native/styles/functions/filters.js +70 -0
  340. package/dist/module/runtime/native/styles/functions/filters.js.map +1 -0
  341. package/dist/module/runtime/native/styles/functions/index.js +10 -0
  342. package/dist/module/runtime/native/styles/functions/index.js.map +1 -0
  343. package/dist/module/runtime/native/styles/functions/numeric-functions.js +25 -0
  344. package/dist/module/runtime/native/styles/functions/numeric-functions.js.map +1 -0
  345. package/dist/module/runtime/native/styles/functions/platform-functions.js +36 -0
  346. package/dist/module/runtime/native/styles/functions/platform-functions.js.map +1 -0
  347. package/dist/module/runtime/native/styles/functions/string-functions.js +18 -0
  348. package/dist/module/runtime/native/styles/functions/string-functions.js.map +1 -0
  349. package/dist/module/runtime/native/styles/functions/transform-functions.js +114 -0
  350. package/dist/module/runtime/native/styles/functions/transform-functions.js.map +1 -0
  351. package/dist/module/runtime/native/styles/index.js +110 -0
  352. package/dist/module/runtime/native/styles/index.js.map +1 -0
  353. package/dist/module/runtime/native/styles/resolve.js +101 -0
  354. package/dist/module/runtime/native/styles/resolve.js.map +1 -0
  355. package/dist/module/runtime/native/styles/shorthands/_handler.js +74 -0
  356. package/dist/module/runtime/native/styles/shorthands/_handler.js.map +1 -0
  357. package/dist/module/runtime/native/styles/shorthands/animation.js +51 -0
  358. package/dist/module/runtime/native/styles/shorthands/animation.js.map +1 -0
  359. package/dist/module/runtime/native/styles/shorthands/border.js +8 -0
  360. package/dist/module/runtime/native/styles/shorthands/border.js.map +1 -0
  361. package/dist/module/runtime/native/styles/shorthands/box-shadow.js +45 -0
  362. package/dist/module/runtime/native/styles/shorthands/box-shadow.js.map +1 -0
  363. package/dist/module/runtime/native/styles/shorthands/index.js +8 -0
  364. package/dist/module/runtime/native/styles/shorthands/index.js.map +1 -0
  365. package/dist/module/runtime/native/styles/shorthands/text-shadow.js +9 -0
  366. package/dist/module/runtime/native/styles/shorthands/text-shadow.js.map +1 -0
  367. package/dist/module/runtime/native/styles/shorthands/transform.js +18 -0
  368. package/dist/module/runtime/native/styles/shorthands/transform.js.map +1 -0
  369. package/dist/module/runtime/native/styles/units.js +43 -0
  370. package/dist/module/runtime/native/styles/units.js.map +1 -0
  371. package/dist/module/runtime/native/styles/variables.js +75 -0
  372. package/dist/module/runtime/native/styles/variables.js.map +1 -0
  373. package/dist/module/runtime/runtime.js +4 -0
  374. package/dist/module/runtime/runtime.js.map +1 -0
  375. package/dist/module/runtime/runtime.native.js +4 -0
  376. package/dist/module/runtime/runtime.native.js.map +1 -0
  377. package/dist/module/runtime/runtime.types.js +4 -0
  378. package/dist/module/runtime/runtime.types.js.map +1 -0
  379. package/dist/module/runtime/utils/components.js +14 -0
  380. package/dist/module/runtime/utils/components.js.map +1 -0
  381. package/dist/module/runtime/utils/dot-notation.types.js +2 -0
  382. package/dist/module/runtime/utils/dot-notation.types.js.map +1 -0
  383. package/dist/module/runtime/utils/index.js +8 -0
  384. package/dist/module/runtime/utils/index.js.map +1 -0
  385. package/dist/module/runtime/utils/objects.js +84 -0
  386. package/dist/module/runtime/utils/objects.js.map +1 -0
  387. package/dist/module/runtime/utils/specificity.js +39 -0
  388. package/dist/module/runtime/utils/specificity.js.map +1 -0
  389. package/dist/module/runtime/utils/style-value.js +16 -0
  390. package/dist/module/runtime/utils/style-value.js.map +1 -0
  391. package/dist/module/runtime/utils/utils.types.js +4 -0
  392. package/dist/module/runtime/utils/utils.types.js.map +1 -0
  393. package/dist/module/runtime/web/api.js +59 -0
  394. package/dist/module/runtime/web/api.js.map +1 -0
  395. package/dist/module/runtime/web/assign-style.js +23 -0
  396. package/dist/module/runtime/web/assign-style.js.map +1 -0
  397. package/dist/module/runtime/web/index.js +6 -0
  398. package/dist/module/runtime/web/index.js.map +1 -0
  399. package/dist/module/runtime/web/metro.js +5 -0
  400. package/dist/module/runtime/web/metro.js.map +1 -0
  401. package/dist/module/style-collection/index.js +95 -0
  402. package/dist/module/style-collection/index.js.map +1 -0
  403. package/dist/module/style-collection/root.js +24 -0
  404. package/dist/module/style-collection/root.js.map +1 -0
  405. package/dist/typescript/commonjs/example/app.config.d.ts +4 -0
  406. package/dist/typescript/commonjs/example/app.config.d.ts.map +1 -0
  407. package/dist/typescript/commonjs/example/src/App.d.ts +3 -0
  408. package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -0
  409. package/dist/typescript/commonjs/package.json +1 -0
  410. package/dist/typescript/commonjs/src/babel/allowedModules.d.ts +2 -0
  411. package/dist/typescript/commonjs/src/babel/allowedModules.d.ts.map +1 -0
  412. package/dist/typescript/commonjs/src/babel/helpers.d.ts +13 -0
  413. package/dist/typescript/commonjs/src/babel/helpers.d.ts.map +1 -0
  414. package/dist/typescript/commonjs/src/babel/import-plugin.d.ts +6 -0
  415. package/dist/typescript/commonjs/src/babel/import-plugin.d.ts.map +1 -0
  416. package/dist/typescript/commonjs/src/babel/index.d.ts +1 -0
  417. package/dist/typescript/commonjs/src/babel/index.d.ts.map +1 -0
  418. package/dist/typescript/commonjs/src/babel/react-native-web.d.ts +8 -0
  419. package/dist/typescript/commonjs/src/babel/react-native-web.d.ts.map +1 -0
  420. package/dist/typescript/commonjs/src/babel/react-native.d.ts +8 -0
  421. package/dist/typescript/commonjs/src/babel/react-native.d.ts.map +1 -0
  422. package/dist/typescript/commonjs/src/compiler/atRules.d.ts +34 -0
  423. package/dist/typescript/commonjs/src/compiler/atRules.d.ts.map +1 -0
  424. package/dist/typescript/commonjs/src/compiler/compiler.d.ts +17 -0
  425. package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -0
  426. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts +197 -0
  427. package/dist/typescript/commonjs/src/compiler/compiler.types.d.ts.map +1 -0
  428. package/dist/typescript/commonjs/src/compiler/container-query.d.ts +5 -0
  429. package/dist/typescript/commonjs/src/compiler/container-query.d.ts.map +1 -0
  430. package/dist/typescript/commonjs/src/compiler/declarations.d.ts +120 -0
  431. package/dist/typescript/commonjs/src/compiler/declarations.d.ts.map +1 -0
  432. package/dist/typescript/commonjs/src/compiler/functions-web.d.ts +11 -0
  433. package/dist/typescript/commonjs/src/compiler/functions-web.d.ts.map +1 -0
  434. package/dist/typescript/commonjs/src/compiler/functions.d.ts +11 -0
  435. package/dist/typescript/commonjs/src/compiler/functions.d.ts.map +1 -0
  436. package/dist/typescript/commonjs/src/compiler/index.d.ts +7 -0
  437. package/dist/typescript/commonjs/src/compiler/index.d.ts.map +1 -0
  438. package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts +2 -0
  439. package/dist/typescript/commonjs/src/compiler/inheritance.test.d.ts.map +1 -0
  440. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts +7 -0
  441. package/dist/typescript/commonjs/src/compiler/keyframes.d.ts.map +1 -0
  442. package/dist/typescript/commonjs/src/compiler/media-query.d.ts +7 -0
  443. package/dist/typescript/commonjs/src/compiler/media-query.d.ts.map +1 -0
  444. package/dist/typescript/commonjs/src/compiler/pseudo-elements.d.ts +4 -0
  445. package/dist/typescript/commonjs/src/compiler/pseudo-elements.d.ts.map +1 -0
  446. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts +24 -0
  447. package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -0
  448. package/dist/typescript/commonjs/src/compiler/selectors.d.ts +24 -0
  449. package/dist/typescript/commonjs/src/compiler/selectors.d.ts.map +1 -0
  450. package/dist/typescript/commonjs/src/compiler/split-by-delimiter.d.ts +2 -0
  451. package/dist/typescript/commonjs/src/compiler/split-by-delimiter.d.ts.map +1 -0
  452. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +68 -0
  453. package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -0
  454. package/dist/typescript/commonjs/src/compiler/supports.d.ts +3 -0
  455. package/dist/typescript/commonjs/src/compiler/supports.d.ts.map +1 -0
  456. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +13 -0
  457. package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -0
  458. package/dist/typescript/commonjs/src/components/Button.d.ts +13 -0
  459. package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -0
  460. package/dist/typescript/commonjs/src/components/FlatList.d.ts +10 -0
  461. package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -0
  462. package/dist/typescript/commonjs/src/components/Image.d.ts +8 -0
  463. package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -0
  464. package/dist/typescript/commonjs/src/components/Switch.d.ts +8 -0
  465. package/dist/typescript/commonjs/src/components/Switch.d.ts.map +1 -0
  466. package/dist/typescript/commonjs/src/components/Text.d.ts +8 -0
  467. package/dist/typescript/commonjs/src/components/Text.d.ts.map +1 -0
  468. package/dist/typescript/commonjs/src/components/TextInput.d.ts +8 -0
  469. package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -0
  470. package/dist/typescript/commonjs/src/components/View.d.ts +8 -0
  471. package/dist/typescript/commonjs/src/components/View.d.ts.map +1 -0
  472. package/dist/typescript/commonjs/src/components/index.d.ts +10 -0
  473. package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -0
  474. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.d.ts +2 -0
  475. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.d.ts.map +1 -0
  476. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts +4 -0
  477. package/dist/typescript/commonjs/src/components/react-native-safe-area-context.native.d.ts.map +1 -0
  478. package/dist/typescript/commonjs/src/index.d.ts +3 -0
  479. package/dist/typescript/commonjs/src/index.d.ts.map +1 -0
  480. package/dist/typescript/commonjs/src/jest/index.d.ts +30 -0
  481. package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -0
  482. package/dist/typescript/commonjs/src/jest/setup.d.ts +1 -0
  483. package/dist/typescript/commonjs/src/jest/setup.d.ts.map +1 -0
  484. package/dist/typescript/commonjs/src/jest/setupAfterEnv.d.ts +1 -0
  485. package/dist/typescript/commonjs/src/jest/setupAfterEnv.d.ts.map +1 -0
  486. package/dist/typescript/commonjs/src/metro/index.d.ts +11 -0
  487. package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -0
  488. package/dist/typescript/commonjs/src/metro/injection-code.d.ts +13 -0
  489. package/dist/typescript/commonjs/src/metro/injection-code.d.ts.map +1 -0
  490. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts +6 -0
  491. package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -0
  492. package/dist/typescript/commonjs/src/metro/picocolors.d.ts +27 -0
  493. package/dist/typescript/commonjs/src/metro/picocolors.d.ts.map +1 -0
  494. package/dist/typescript/commonjs/src/metro/resolver.d.ts +4 -0
  495. package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -0
  496. package/dist/typescript/commonjs/src/metro/stringify.d.ts +7 -0
  497. package/dist/typescript/commonjs/src/metro/stringify.d.ts.map +1 -0
  498. package/dist/typescript/commonjs/src/metro/typescript.d.ts +2 -0
  499. package/dist/typescript/commonjs/src/metro/typescript.d.ts.map +1 -0
  500. package/dist/typescript/commonjs/src/poison.pill.d.ts +2 -0
  501. package/dist/typescript/commonjs/src/poison.pill.d.ts.map +1 -0
  502. package/dist/typescript/commonjs/src/runtime/index.d.ts +7 -0
  503. package/dist/typescript/commonjs/src/runtime/index.d.ts.map +1 -0
  504. package/dist/typescript/commonjs/src/runtime/native/api.d.ts +19 -0
  505. package/dist/typescript/commonjs/src/runtime/native/api.d.ts.map +1 -0
  506. package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts +5 -0
  507. package/dist/typescript/commonjs/src/runtime/native/conditions/attributes.d.ts.map +1 -0
  508. package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts +7 -0
  509. package/dist/typescript/commonjs/src/runtime/native/conditions/container-query.d.ts.map +1 -0
  510. package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts +5 -0
  511. package/dist/typescript/commonjs/src/runtime/native/conditions/guards.d.ts.map +1 -0
  512. package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts +6 -0
  513. package/dist/typescript/commonjs/src/runtime/native/conditions/index.d.ts.map +1 -0
  514. package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts +4 -0
  515. package/dist/typescript/commonjs/src/runtime/native/conditions/media-query.d.ts.map +1 -0
  516. package/dist/typescript/commonjs/src/runtime/native/index.d.ts +4 -0
  517. package/dist/typescript/commonjs/src/runtime/native/index.d.ts.map +1 -0
  518. package/dist/typescript/commonjs/src/runtime/native/metro.d.ts +2 -0
  519. package/dist/typescript/commonjs/src/runtime/native/metro.d.ts.map +1 -0
  520. package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts +6 -0
  521. package/dist/typescript/commonjs/src/runtime/native/react/interaction.d.ts.map +1 -0
  522. package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts +7 -0
  523. package/dist/typescript/commonjs/src/runtime/native/react/rules.d.ts.map +1 -0
  524. package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts +38 -0
  525. package/dist/typescript/commonjs/src/runtime/native/react/useNativeCss.d.ts.map +1 -0
  526. package/dist/typescript/commonjs/src/runtime/native/react/usePassthrough.d.ts +4 -0
  527. package/dist/typescript/commonjs/src/runtime/native/react/usePassthrough.d.ts.map +1 -0
  528. package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts +55 -0
  529. package/dist/typescript/commonjs/src/runtime/native/reactivity.d.ts.map +1 -0
  530. package/dist/typescript/commonjs/src/runtime/native/reanimated.d.ts +5 -0
  531. package/dist/typescript/commonjs/src/runtime/native/reanimated.d.ts.map +1 -0
  532. package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts +10 -0
  533. package/dist/typescript/commonjs/src/runtime/native/styles/calculate-props.d.ts.map +1 -0
  534. package/dist/typescript/commonjs/src/runtime/native/styles/constants.d.ts +3 -0
  535. package/dist/typescript/commonjs/src/runtime/native/styles/constants.d.ts.map +1 -0
  536. package/dist/typescript/commonjs/src/runtime/native/styles/defaults.d.ts +3 -0
  537. package/dist/typescript/commonjs/src/runtime/native/styles/defaults.d.ts.map +1 -0
  538. package/dist/typescript/commonjs/src/runtime/native/styles/functions/animation-timing.d.ts +4 -0
  539. package/dist/typescript/commonjs/src/runtime/native/styles/functions/animation-timing.d.ts.map +1 -0
  540. package/dist/typescript/commonjs/src/runtime/native/styles/functions/calc.d.ts +3 -0
  541. package/dist/typescript/commonjs/src/runtime/native/styles/functions/calc.d.ts.map +1 -0
  542. package/dist/typescript/commonjs/src/runtime/native/styles/functions/filters.d.ts +12 -0
  543. package/dist/typescript/commonjs/src/runtime/native/styles/functions/filters.d.ts.map +1 -0
  544. package/dist/typescript/commonjs/src/runtime/native/styles/functions/index.d.ts +8 -0
  545. package/dist/typescript/commonjs/src/runtime/native/styles/functions/index.d.ts.map +1 -0
  546. package/dist/typescript/commonjs/src/runtime/native/styles/functions/numeric-functions.d.ts +5 -0
  547. package/dist/typescript/commonjs/src/runtime/native/styles/functions/numeric-functions.d.ts.map +1 -0
  548. package/dist/typescript/commonjs/src/runtime/native/styles/functions/platform-functions.d.ts +8 -0
  549. package/dist/typescript/commonjs/src/runtime/native/styles/functions/platform-functions.d.ts.map +1 -0
  550. package/dist/typescript/commonjs/src/runtime/native/styles/functions/string-functions.d.ts +3 -0
  551. package/dist/typescript/commonjs/src/runtime/native/styles/functions/string-functions.d.ts.map +1 -0
  552. package/dist/typescript/commonjs/src/runtime/native/styles/functions/transform-functions.d.ts +5 -0
  553. package/dist/typescript/commonjs/src/runtime/native/styles/functions/transform-functions.d.ts.map +1 -0
  554. package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts +19 -0
  555. package/dist/typescript/commonjs/src/runtime/native/styles/index.d.ts.map +1 -0
  556. package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts +18 -0
  557. package/dist/typescript/commonjs/src/runtime/native/styles/resolve.d.ts.map +1 -0
  558. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/_handler.d.ts +11 -0
  559. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/_handler.d.ts.map +1 -0
  560. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/animation.d.ts +4 -0
  561. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/animation.d.ts.map +1 -0
  562. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/border.d.ts +2 -0
  563. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/border.d.ts.map +1 -0
  564. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/box-shadow.d.ts +3 -0
  565. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +1 -0
  566. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/index.d.ts +6 -0
  567. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/index.d.ts.map +1 -0
  568. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/text-shadow.d.ts +2 -0
  569. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +1 -0
  570. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/transform.d.ts +7 -0
  571. package/dist/typescript/commonjs/src/runtime/native/styles/shorthands/transform.d.ts.map +1 -0
  572. package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts +6 -0
  573. package/dist/typescript/commonjs/src/runtime/native/styles/units.d.ts.map +1 -0
  574. package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts +5 -0
  575. package/dist/typescript/commonjs/src/runtime/native/styles/variables.d.ts.map +1 -0
  576. package/dist/typescript/commonjs/src/runtime/runtime.d.ts +2 -0
  577. package/dist/typescript/commonjs/src/runtime/runtime.d.ts.map +1 -0
  578. package/dist/typescript/commonjs/src/runtime/runtime.native.d.ts +2 -0
  579. package/dist/typescript/commonjs/src/runtime/runtime.native.d.ts.map +1 -0
  580. package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts +47 -0
  581. package/dist/typescript/commonjs/src/runtime/runtime.types.d.ts.map +1 -0
  582. package/dist/typescript/commonjs/src/runtime/utils/components.d.ts +2 -0
  583. package/dist/typescript/commonjs/src/runtime/utils/components.d.ts.map +1 -0
  584. package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts +23 -0
  585. package/dist/typescript/commonjs/src/runtime/utils/dot-notation.types.d.ts.map +1 -0
  586. package/dist/typescript/commonjs/src/runtime/utils/index.d.ts +6 -0
  587. package/dist/typescript/commonjs/src/runtime/utils/index.d.ts.map +1 -0
  588. package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts +5 -0
  589. package/dist/typescript/commonjs/src/runtime/utils/objects.d.ts.map +1 -0
  590. package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts +13 -0
  591. package/dist/typescript/commonjs/src/runtime/utils/specificity.d.ts.map +1 -0
  592. package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts +4 -0
  593. package/dist/typescript/commonjs/src/runtime/utils/style-value.d.ts.map +1 -0
  594. package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts +5 -0
  595. package/dist/typescript/commonjs/src/runtime/utils/utils.types.d.ts.map +1 -0
  596. package/dist/typescript/commonjs/src/runtime/web/api.d.ts +10 -0
  597. package/dist/typescript/commonjs/src/runtime/web/api.d.ts.map +1 -0
  598. package/dist/typescript/commonjs/src/runtime/web/assign-style.d.ts +2 -0
  599. package/dist/typescript/commonjs/src/runtime/web/assign-style.d.ts.map +1 -0
  600. package/dist/typescript/commonjs/src/runtime/web/index.d.ts +4 -0
  601. package/dist/typescript/commonjs/src/runtime/web/index.d.ts.map +1 -0
  602. package/dist/typescript/commonjs/src/runtime/web/metro.d.ts +2 -0
  603. package/dist/typescript/commonjs/src/runtime/web/metro.d.ts.map +1 -0
  604. package/dist/typescript/commonjs/src/style-collection/index.d.ts +14 -0
  605. package/dist/typescript/commonjs/src/style-collection/index.d.ts.map +1 -0
  606. package/dist/typescript/commonjs/src/style-collection/root.d.ts +11 -0
  607. package/dist/typescript/commonjs/src/style-collection/root.d.ts.map +1 -0
  608. package/dist/typescript/module/example/app.config.d.ts +4 -0
  609. package/dist/typescript/module/example/app.config.d.ts.map +1 -0
  610. package/dist/typescript/module/example/src/App.d.ts +3 -0
  611. package/dist/typescript/module/example/src/App.d.ts.map +1 -0
  612. package/dist/typescript/module/package.json +1 -0
  613. package/dist/typescript/module/src/babel/allowedModules.d.ts +2 -0
  614. package/dist/typescript/module/src/babel/allowedModules.d.ts.map +1 -0
  615. package/dist/typescript/module/src/babel/helpers.d.ts +13 -0
  616. package/dist/typescript/module/src/babel/helpers.d.ts.map +1 -0
  617. package/dist/typescript/module/src/babel/import-plugin.d.ts +6 -0
  618. package/dist/typescript/module/src/babel/import-plugin.d.ts.map +1 -0
  619. package/dist/typescript/module/src/babel/index.d.ts +1 -0
  620. package/dist/typescript/module/src/babel/index.d.ts.map +1 -0
  621. package/dist/typescript/module/src/babel/react-native-web.d.ts +8 -0
  622. package/dist/typescript/module/src/babel/react-native-web.d.ts.map +1 -0
  623. package/dist/typescript/module/src/babel/react-native.d.ts +8 -0
  624. package/dist/typescript/module/src/babel/react-native.d.ts.map +1 -0
  625. package/dist/typescript/module/src/compiler/atRules.d.ts +34 -0
  626. package/dist/typescript/module/src/compiler/atRules.d.ts.map +1 -0
  627. package/dist/typescript/module/src/compiler/compiler.d.ts +17 -0
  628. package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -0
  629. package/dist/typescript/module/src/compiler/compiler.types.d.ts +197 -0
  630. package/dist/typescript/module/src/compiler/compiler.types.d.ts.map +1 -0
  631. package/dist/typescript/module/src/compiler/container-query.d.ts +5 -0
  632. package/dist/typescript/module/src/compiler/container-query.d.ts.map +1 -0
  633. package/dist/typescript/module/src/compiler/declarations.d.ts +120 -0
  634. package/dist/typescript/module/src/compiler/declarations.d.ts.map +1 -0
  635. package/dist/typescript/module/src/compiler/functions-web.d.ts +11 -0
  636. package/dist/typescript/module/src/compiler/functions-web.d.ts.map +1 -0
  637. package/dist/typescript/module/src/compiler/functions.d.ts +11 -0
  638. package/dist/typescript/module/src/compiler/functions.d.ts.map +1 -0
  639. package/dist/typescript/module/src/compiler/index.d.ts +7 -0
  640. package/dist/typescript/module/src/compiler/index.d.ts.map +1 -0
  641. package/dist/typescript/module/src/compiler/inheritance.test.d.ts +2 -0
  642. package/dist/typescript/module/src/compiler/inheritance.test.d.ts.map +1 -0
  643. package/dist/typescript/module/src/compiler/keyframes.d.ts +7 -0
  644. package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -0
  645. package/dist/typescript/module/src/compiler/media-query.d.ts +7 -0
  646. package/dist/typescript/module/src/compiler/media-query.d.ts.map +1 -0
  647. package/dist/typescript/module/src/compiler/pseudo-elements.d.ts +4 -0
  648. package/dist/typescript/module/src/compiler/pseudo-elements.d.ts.map +1 -0
  649. package/dist/typescript/module/src/compiler/selector-builder.d.ts +24 -0
  650. package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -0
  651. package/dist/typescript/module/src/compiler/selectors.d.ts +24 -0
  652. package/dist/typescript/module/src/compiler/selectors.d.ts.map +1 -0
  653. package/dist/typescript/module/src/compiler/split-by-delimiter.d.ts +2 -0
  654. package/dist/typescript/module/src/compiler/split-by-delimiter.d.ts.map +1 -0
  655. package/dist/typescript/module/src/compiler/stylesheet.d.ts +68 -0
  656. package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -0
  657. package/dist/typescript/module/src/compiler/supports.d.ts +3 -0
  658. package/dist/typescript/module/src/compiler/supports.d.ts.map +1 -0
  659. package/dist/typescript/module/src/components/ActivityIndicator.d.ts +13 -0
  660. package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -0
  661. package/dist/typescript/module/src/components/Button.d.ts +13 -0
  662. package/dist/typescript/module/src/components/Button.d.ts.map +1 -0
  663. package/dist/typescript/module/src/components/FlatList.d.ts +10 -0
  664. package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -0
  665. package/dist/typescript/module/src/components/Image.d.ts +8 -0
  666. package/dist/typescript/module/src/components/Image.d.ts.map +1 -0
  667. package/dist/typescript/module/src/components/Switch.d.ts +8 -0
  668. package/dist/typescript/module/src/components/Switch.d.ts.map +1 -0
  669. package/dist/typescript/module/src/components/Text.d.ts +8 -0
  670. package/dist/typescript/module/src/components/Text.d.ts.map +1 -0
  671. package/dist/typescript/module/src/components/TextInput.d.ts +8 -0
  672. package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -0
  673. package/dist/typescript/module/src/components/View.d.ts +8 -0
  674. package/dist/typescript/module/src/components/View.d.ts.map +1 -0
  675. package/dist/typescript/module/src/components/index.d.ts +10 -0
  676. package/dist/typescript/module/src/components/index.d.ts.map +1 -0
  677. package/dist/typescript/module/src/components/react-native-safe-area-context.d.ts +2 -0
  678. package/dist/typescript/module/src/components/react-native-safe-area-context.d.ts.map +1 -0
  679. package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts +4 -0
  680. package/dist/typescript/module/src/components/react-native-safe-area-context.native.d.ts.map +1 -0
  681. package/dist/typescript/module/src/index.d.ts +3 -0
  682. package/dist/typescript/module/src/index.d.ts.map +1 -0
  683. package/dist/typescript/module/src/jest/index.d.ts +30 -0
  684. package/dist/typescript/module/src/jest/index.d.ts.map +1 -0
  685. package/dist/typescript/module/src/jest/setup.d.ts +1 -0
  686. package/dist/typescript/module/src/jest/setup.d.ts.map +1 -0
  687. package/dist/typescript/module/src/jest/setupAfterEnv.d.ts +1 -0
  688. package/dist/typescript/module/src/jest/setupAfterEnv.d.ts.map +1 -0
  689. package/dist/typescript/module/src/metro/index.d.ts +11 -0
  690. package/dist/typescript/module/src/metro/index.d.ts.map +1 -0
  691. package/dist/typescript/module/src/metro/injection-code.d.ts +13 -0
  692. package/dist/typescript/module/src/metro/injection-code.d.ts.map +1 -0
  693. package/dist/typescript/module/src/metro/metro-transformer.d.ts +6 -0
  694. package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -0
  695. package/dist/typescript/module/src/metro/picocolors.d.ts +27 -0
  696. package/dist/typescript/module/src/metro/picocolors.d.ts.map +1 -0
  697. package/dist/typescript/module/src/metro/resolver.d.ts +4 -0
  698. package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -0
  699. package/dist/typescript/module/src/metro/stringify.d.ts +7 -0
  700. package/dist/typescript/module/src/metro/stringify.d.ts.map +1 -0
  701. package/dist/typescript/module/src/metro/typescript.d.ts +2 -0
  702. package/dist/typescript/module/src/metro/typescript.d.ts.map +1 -0
  703. package/dist/typescript/module/src/poison.pill.d.ts +2 -0
  704. package/dist/typescript/module/src/poison.pill.d.ts.map +1 -0
  705. package/dist/typescript/module/src/runtime/index.d.ts +7 -0
  706. package/dist/typescript/module/src/runtime/index.d.ts.map +1 -0
  707. package/dist/typescript/module/src/runtime/native/api.d.ts +19 -0
  708. package/dist/typescript/module/src/runtime/native/api.d.ts.map +1 -0
  709. package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts +5 -0
  710. package/dist/typescript/module/src/runtime/native/conditions/attributes.d.ts.map +1 -0
  711. package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts +7 -0
  712. package/dist/typescript/module/src/runtime/native/conditions/container-query.d.ts.map +1 -0
  713. package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts +5 -0
  714. package/dist/typescript/module/src/runtime/native/conditions/guards.d.ts.map +1 -0
  715. package/dist/typescript/module/src/runtime/native/conditions/index.d.ts +6 -0
  716. package/dist/typescript/module/src/runtime/native/conditions/index.d.ts.map +1 -0
  717. package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts +4 -0
  718. package/dist/typescript/module/src/runtime/native/conditions/media-query.d.ts.map +1 -0
  719. package/dist/typescript/module/src/runtime/native/index.d.ts +4 -0
  720. package/dist/typescript/module/src/runtime/native/index.d.ts.map +1 -0
  721. package/dist/typescript/module/src/runtime/native/metro.d.ts +2 -0
  722. package/dist/typescript/module/src/runtime/native/metro.d.ts.map +1 -0
  723. package/dist/typescript/module/src/runtime/native/react/interaction.d.ts +6 -0
  724. package/dist/typescript/module/src/runtime/native/react/interaction.d.ts.map +1 -0
  725. package/dist/typescript/module/src/runtime/native/react/rules.d.ts +7 -0
  726. package/dist/typescript/module/src/runtime/native/react/rules.d.ts.map +1 -0
  727. package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts +38 -0
  728. package/dist/typescript/module/src/runtime/native/react/useNativeCss.d.ts.map +1 -0
  729. package/dist/typescript/module/src/runtime/native/react/usePassthrough.d.ts +4 -0
  730. package/dist/typescript/module/src/runtime/native/react/usePassthrough.d.ts.map +1 -0
  731. package/dist/typescript/module/src/runtime/native/reactivity.d.ts +55 -0
  732. package/dist/typescript/module/src/runtime/native/reactivity.d.ts.map +1 -0
  733. package/dist/typescript/module/src/runtime/native/reanimated.d.ts +5 -0
  734. package/dist/typescript/module/src/runtime/native/reanimated.d.ts.map +1 -0
  735. package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts +10 -0
  736. package/dist/typescript/module/src/runtime/native/styles/calculate-props.d.ts.map +1 -0
  737. package/dist/typescript/module/src/runtime/native/styles/constants.d.ts +3 -0
  738. package/dist/typescript/module/src/runtime/native/styles/constants.d.ts.map +1 -0
  739. package/dist/typescript/module/src/runtime/native/styles/defaults.d.ts +3 -0
  740. package/dist/typescript/module/src/runtime/native/styles/defaults.d.ts.map +1 -0
  741. package/dist/typescript/module/src/runtime/native/styles/functions/animation-timing.d.ts +4 -0
  742. package/dist/typescript/module/src/runtime/native/styles/functions/animation-timing.d.ts.map +1 -0
  743. package/dist/typescript/module/src/runtime/native/styles/functions/calc.d.ts +3 -0
  744. package/dist/typescript/module/src/runtime/native/styles/functions/calc.d.ts.map +1 -0
  745. package/dist/typescript/module/src/runtime/native/styles/functions/filters.d.ts +12 -0
  746. package/dist/typescript/module/src/runtime/native/styles/functions/filters.d.ts.map +1 -0
  747. package/dist/typescript/module/src/runtime/native/styles/functions/index.d.ts +8 -0
  748. package/dist/typescript/module/src/runtime/native/styles/functions/index.d.ts.map +1 -0
  749. package/dist/typescript/module/src/runtime/native/styles/functions/numeric-functions.d.ts +5 -0
  750. package/dist/typescript/module/src/runtime/native/styles/functions/numeric-functions.d.ts.map +1 -0
  751. package/dist/typescript/module/src/runtime/native/styles/functions/platform-functions.d.ts +8 -0
  752. package/dist/typescript/module/src/runtime/native/styles/functions/platform-functions.d.ts.map +1 -0
  753. package/dist/typescript/module/src/runtime/native/styles/functions/string-functions.d.ts +3 -0
  754. package/dist/typescript/module/src/runtime/native/styles/functions/string-functions.d.ts.map +1 -0
  755. package/dist/typescript/module/src/runtime/native/styles/functions/transform-functions.d.ts +5 -0
  756. package/dist/typescript/module/src/runtime/native/styles/functions/transform-functions.d.ts.map +1 -0
  757. package/dist/typescript/module/src/runtime/native/styles/index.d.ts +19 -0
  758. package/dist/typescript/module/src/runtime/native/styles/index.d.ts.map +1 -0
  759. package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts +18 -0
  760. package/dist/typescript/module/src/runtime/native/styles/resolve.d.ts.map +1 -0
  761. package/dist/typescript/module/src/runtime/native/styles/shorthands/_handler.d.ts +11 -0
  762. package/dist/typescript/module/src/runtime/native/styles/shorthands/_handler.d.ts.map +1 -0
  763. package/dist/typescript/module/src/runtime/native/styles/shorthands/animation.d.ts +4 -0
  764. package/dist/typescript/module/src/runtime/native/styles/shorthands/animation.d.ts.map +1 -0
  765. package/dist/typescript/module/src/runtime/native/styles/shorthands/border.d.ts +2 -0
  766. package/dist/typescript/module/src/runtime/native/styles/shorthands/border.d.ts.map +1 -0
  767. package/dist/typescript/module/src/runtime/native/styles/shorthands/box-shadow.d.ts +3 -0
  768. package/dist/typescript/module/src/runtime/native/styles/shorthands/box-shadow.d.ts.map +1 -0
  769. package/dist/typescript/module/src/runtime/native/styles/shorthands/index.d.ts +6 -0
  770. package/dist/typescript/module/src/runtime/native/styles/shorthands/index.d.ts.map +1 -0
  771. package/dist/typescript/module/src/runtime/native/styles/shorthands/text-shadow.d.ts +2 -0
  772. package/dist/typescript/module/src/runtime/native/styles/shorthands/text-shadow.d.ts.map +1 -0
  773. package/dist/typescript/module/src/runtime/native/styles/shorthands/transform.d.ts +7 -0
  774. package/dist/typescript/module/src/runtime/native/styles/shorthands/transform.d.ts.map +1 -0
  775. package/dist/typescript/module/src/runtime/native/styles/units.d.ts +6 -0
  776. package/dist/typescript/module/src/runtime/native/styles/units.d.ts.map +1 -0
  777. package/dist/typescript/module/src/runtime/native/styles/variables.d.ts +5 -0
  778. package/dist/typescript/module/src/runtime/native/styles/variables.d.ts.map +1 -0
  779. package/dist/typescript/module/src/runtime/runtime.d.ts +2 -0
  780. package/dist/typescript/module/src/runtime/runtime.d.ts.map +1 -0
  781. package/dist/typescript/module/src/runtime/runtime.native.d.ts +2 -0
  782. package/dist/typescript/module/src/runtime/runtime.native.d.ts.map +1 -0
  783. package/dist/typescript/module/src/runtime/runtime.types.d.ts +47 -0
  784. package/dist/typescript/module/src/runtime/runtime.types.d.ts.map +1 -0
  785. package/dist/typescript/module/src/runtime/utils/components.d.ts +2 -0
  786. package/dist/typescript/module/src/runtime/utils/components.d.ts.map +1 -0
  787. package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts +23 -0
  788. package/dist/typescript/module/src/runtime/utils/dot-notation.types.d.ts.map +1 -0
  789. package/dist/typescript/module/src/runtime/utils/index.d.ts +6 -0
  790. package/dist/typescript/module/src/runtime/utils/index.d.ts.map +1 -0
  791. package/dist/typescript/module/src/runtime/utils/objects.d.ts +5 -0
  792. package/dist/typescript/module/src/runtime/utils/objects.d.ts.map +1 -0
  793. package/dist/typescript/module/src/runtime/utils/specificity.d.ts +13 -0
  794. package/dist/typescript/module/src/runtime/utils/specificity.d.ts.map +1 -0
  795. package/dist/typescript/module/src/runtime/utils/style-value.d.ts +4 -0
  796. package/dist/typescript/module/src/runtime/utils/style-value.d.ts.map +1 -0
  797. package/dist/typescript/module/src/runtime/utils/utils.types.d.ts +5 -0
  798. package/dist/typescript/module/src/runtime/utils/utils.types.d.ts.map +1 -0
  799. package/dist/typescript/module/src/runtime/web/api.d.ts +10 -0
  800. package/dist/typescript/module/src/runtime/web/api.d.ts.map +1 -0
  801. package/dist/typescript/module/src/runtime/web/assign-style.d.ts +2 -0
  802. package/dist/typescript/module/src/runtime/web/assign-style.d.ts.map +1 -0
  803. package/dist/typescript/module/src/runtime/web/index.d.ts +4 -0
  804. package/dist/typescript/module/src/runtime/web/index.d.ts.map +1 -0
  805. package/dist/typescript/module/src/runtime/web/metro.d.ts +2 -0
  806. package/dist/typescript/module/src/runtime/web/metro.d.ts.map +1 -0
  807. package/dist/typescript/module/src/style-collection/index.d.ts +14 -0
  808. package/dist/typescript/module/src/style-collection/index.d.ts.map +1 -0
  809. package/dist/typescript/module/src/style-collection/root.d.ts +11 -0
  810. package/dist/typescript/module/src/style-collection/root.d.ts.map +1 -0
  811. package/package.json +262 -45
  812. package/src/babel/allowedModules.ts +24 -0
  813. package/src/babel/helpers.ts +40 -0
  814. package/src/babel/import-plugin.ts +176 -0
  815. package/src/babel/index.ts +9 -0
  816. package/src/babel/react-native-web.ts +226 -0
  817. package/src/babel/react-native.ts +226 -0
  818. package/src/compiler/atRules.ts +158 -0
  819. package/src/compiler/compiler.ts +306 -0
  820. package/src/compiler/compiler.types.ts +266 -0
  821. package/src/compiler/container-query.ts +97 -0
  822. package/src/compiler/declarations.ts +3237 -0
  823. package/src/compiler/functions-web.ts +44 -0
  824. package/src/compiler/functions.ts +64 -0
  825. package/src/compiler/index.ts +7 -0
  826. package/src/compiler/inheritance.test.ts +121 -0
  827. package/src/compiler/keyframes.ts +86 -0
  828. package/src/compiler/media-query.ts +251 -0
  829. package/src/compiler/pseudo-elements.ts +54 -0
  830. package/src/compiler/selector-builder.ts +586 -0
  831. package/src/compiler/selectors.ts +505 -0
  832. package/src/compiler/split-by-delimiter.ts +19 -0
  833. package/src/compiler/stylesheet.ts +681 -0
  834. package/src/compiler/supports.ts +26 -0
  835. package/src/components/ActivityIndicator.tsx +27 -0
  836. package/src/components/Button.tsx +22 -0
  837. package/src/components/FlatList.tsx +21 -0
  838. package/src/components/Image.tsx +17 -0
  839. package/src/components/Switch.tsx +17 -0
  840. package/src/components/Text.tsx +17 -0
  841. package/src/components/TextInput.tsx +17 -0
  842. package/src/components/View.tsx +17 -0
  843. package/src/components/index.tsx +10 -0
  844. package/src/components/react-native-safe-area-context.native.tsx +40 -0
  845. package/src/components/react-native-safe-area-context.tsx +1 -0
  846. package/src/index.ts +3 -0
  847. package/src/jest/expect.d.ts +1 -0
  848. package/src/jest/index.ts +75 -0
  849. package/src/jest/setup.ts +1 -0
  850. package/src/jest/setupAfterEnv.ts +13 -0
  851. package/src/metro/index.ts +239 -0
  852. package/src/metro/injection-code.ts +34 -0
  853. package/src/metro/metro-transformer.ts +48 -0
  854. package/src/metro/picocolors.ts +77 -0
  855. package/src/metro/resolver.ts +97 -0
  856. package/src/metro/stringify.ts +59 -0
  857. package/src/metro/typescript.ts +73 -0
  858. package/src/poison.pill.ts +36 -0
  859. package/src/runtime/index.ts +7 -0
  860. package/src/runtime/native/api.ts +108 -0
  861. package/src/runtime/native/conditions/attributes.ts +52 -0
  862. package/src/runtime/native/conditions/container-query.ts +162 -0
  863. package/src/runtime/native/conditions/guards.ts +44 -0
  864. package/src/runtime/native/conditions/index.ts +54 -0
  865. package/src/runtime/native/conditions/media-query.ts +98 -0
  866. package/src/runtime/native/index.ts +4 -0
  867. package/src/runtime/native/metro.ts +2 -0
  868. package/src/runtime/native/react/interaction.ts +90 -0
  869. package/src/runtime/native/react/rules.ts +336 -0
  870. package/src/runtime/native/react/useNativeCss.ts +203 -0
  871. package/src/runtime/native/react/usePassthrough.ts +51 -0
  872. package/src/runtime/native/reactivity.ts +255 -0
  873. package/src/runtime/native/reanimated.ts +22 -0
  874. package/src/runtime/native/styles/calculate-props.ts +197 -0
  875. package/src/runtime/native/styles/constants.ts +2 -0
  876. package/src/runtime/native/styles/defaults.ts +79 -0
  877. package/src/runtime/native/styles/functions/animation-timing.ts +44 -0
  878. package/src/runtime/native/styles/functions/calc.ts +121 -0
  879. package/src/runtime/native/styles/functions/filters.ts +98 -0
  880. package/src/runtime/native/styles/functions/index.ts +7 -0
  881. package/src/runtime/native/styles/functions/numeric-functions.ts +38 -0
  882. package/src/runtime/native/styles/functions/platform-functions.ts +50 -0
  883. package/src/runtime/native/styles/functions/string-functions.ts +22 -0
  884. package/src/runtime/native/styles/functions/transform-functions.ts +84 -0
  885. package/src/runtime/native/styles/index.ts +197 -0
  886. package/src/runtime/native/styles/resolve.ts +162 -0
  887. package/src/runtime/native/styles/shorthands/_handler.ts +121 -0
  888. package/src/runtime/native/styles/shorthands/animation.ts +123 -0
  889. package/src/runtime/native/styles/shorthands/border.ts +10 -0
  890. package/src/runtime/native/styles/shorthands/box-shadow.ts +74 -0
  891. package/src/runtime/native/styles/shorthands/index.ts +5 -0
  892. package/src/runtime/native/styles/shorthands/text-shadow.ts +17 -0
  893. package/src/runtime/native/styles/shorthands/transform.ts +23 -0
  894. package/src/runtime/native/styles/units.ts +57 -0
  895. package/src/runtime/native/styles/variables.ts +88 -0
  896. package/src/runtime/runtime.native.ts +1 -0
  897. package/src/runtime/runtime.ts +1 -0
  898. package/src/runtime/runtime.types.ts +130 -0
  899. package/src/runtime/utils/components.ts +15 -0
  900. package/src/runtime/utils/dot-notation.types.ts +118 -0
  901. package/src/runtime/utils/index.ts +5 -0
  902. package/src/runtime/utils/objects.ts +109 -0
  903. package/src/runtime/utils/specificity.ts +45 -0
  904. package/src/runtime/utils/style-value.ts +24 -0
  905. package/src/runtime/utils/utils.types.ts +19 -0
  906. package/src/runtime/web/api.ts +88 -0
  907. package/src/runtime/web/assign-style.ts +26 -0
  908. package/src/runtime/web/index.ts +5 -0
  909. package/src/runtime/web/metro.ts +2 -0
  910. package/src/style-collection/index.ts +142 -0
  911. package/src/style-collection/root.ts +35 -0
  912. package/types.d.ts +70 -0
  913. package/.babelrc +0 -8
  914. package/.editorconfig +0 -17
  915. package/.eslintignore +0 -3
  916. package/.eslintrc +0 -39
  917. package/.npmignore +0 -7
  918. package/build/index.js +0 -294
  919. package/build/utils.js +0 -54
  920. package/circle.yml +0 -31
  921. package/jsconfig.json +0 -9
  922. package/login.sh +0 -11
  923. package/src/index.js +0 -184
  924. package/src/utils.js +0 -32
  925. package/test/rnc.test.js +0 -258
  926. package/yarn.lock +0 -3333
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+
3
+ /* eslint-disable */
4
+ import { StyleCollection } from "react-native-css/style-collection";
5
+ import { applyShorthand } from "../../../utils/index.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":["StyleCollection","applyShorthand","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"],"sourceRoot":"../../../../../../src","sources":["runtime/native/styles/shorthands/animation.ts"],"mappings":";;AAAA;AACA,SAASA,eAAe,QAAQ,mCAAmC;AAEnE,SAASC,cAAc,QAAQ,yBAAgB;AAE/C,SAASC,gBAAgB,QAAQ,eAAY;AAE7C,MAAMC,IAAI,GAAG,CAAC,eAAe,EAAE,QAAQ,EAAE,MAAM,CAAU;AACzD,MAAMC,KAAK,GAAG,CAAC,gBAAgB,EAAE,QAAQ,EAAE,CAAC,CAAU;AACtD,MAAMC,QAAQ,GAAG,CAAC,mBAAmB,EAAE,QAAQ,EAAE,CAAC,CAAU;AAC5D,MAAMC,SAAS,GAAG,CAChB,yBAAyB,EACzB,CAAC,QAAQ,EAAE,UAAU,CAAC,EACtB,CAAC,CACO;AACV,MAAMC,IAAI,GAAG,CACX,mBAAmB,EACnB,CAAC,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,CAAC,EACzC,MAAM,CACE;AACV,MAAMC,SAAS,GAAG,CAChB,oBAAoB,EACpB,CAAC,SAAS,EAAE,QAAQ,CAAC,EACrB,SAAS,CACD;AACV,MAAMC,SAAS,GAAG,CAChB,oBAAoB,EACpB,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,mBAAmB,CAAC,EACvD,QAAQ,CACA;AACV,MAAMC,cAAc,GAAG,CACrB,yBAAyB,EACz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CAAC;EAE3B,IAAI,CAACA,SAAS,IAAI,OAAOlB,IAAI,KAAK,QAAQ,EAAE;IAC1C;EACF;EAEA,MAAMqB,SAAS,GAAGT,GAAG,CAACf,eAAe,CAACwB,SAAS,CAACrB,IAAI,CAAC,CAAC;EAEtD,MAAMS,SAA8B,GAAG,CAAC,CAAC;EACzC,KAAK,MAAM,CAACa,QAAQ,EAAEC,YAAY,CAAC,IAAIF,SAAS,EAAE;IAChDZ,SAAS,CAACa,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE1B,MAAME,KAAK,GAAGX,OAAO,CAACY,cAAc,GAClCb,GAAG;IACH;IACA,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,OAAOX,cAAc,CAACgB,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":[]}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+
3
+ import { isStyleDescriptorArray } from "../../../utils/index.js";
4
+ import { shorthandHandler } from "./_handler.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 => {
26
+ return omitTransparentShadows(handler(resolveValue, shadow, get, options));
27
+ }).filter(v => v !== undefined);
28
+ } else {
29
+ return omitTransparentShadows(handler(resolveValue, shadows, get, options));
30
+ }
31
+ } else {
32
+ return omitTransparentShadows(handler(resolveValue, shadows, get, options));
33
+ }
34
+ }).filter(v => v !== undefined);
35
+ }
36
+ };
37
+ function omitTransparentShadows(style) {
38
+ if (typeof style === "object" && style && "color" in style) {
39
+ if (style.color === "#0000" || style.color === "transparent") {
40
+ return;
41
+ }
42
+ }
43
+ return style;
44
+ }
45
+ //# 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","omitTransparentShadows","filter","v","style"],"sourceRoot":"../../../../../../src","sources":["runtime/native/styles/shorthands/box-shadow.ts"],"mappings":";;AAAA,SAASA,sBAAsB,QAAQ,yBAAgB;AAEvD,SAASC,gBAAgB,QAAQ,eAAY;AAE7C,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,CAAU;AACpD,MAAMC,cAAc,GAAG,CAAC,gBAAgB,EAAE,QAAQ,CAAU;AAC5D;;AAEA,MAAMC,OAAO,GAAGN,gBAAgB,CAC9B,CACE,CAACE,OAAO,EAAEC,OAAO,EAAEC,UAAU,EAAEC,cAAc,EAAEJ,KAAK,CAAC,EACrD,CAACA,KAAK,EAAEC,OAAO,EAAEC,OAAO,CAAC,EACzB,CAACF,KAAK,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AO,CAACE,YAAY,EAAEM,OAAO,EAAEJ,GAAG,EAAEC,OAAO,CAC7C,CAAC;MACH;IACF,CAAC,CAAC,CACDW,MAAM,CAAEC,CAAC,IAAKA,CAAC,KAAKR,SAAS,CAAC;EACnC;AACF,CAAC;AAED,SAASM,sBAAsBA,CAACG,KAAc,EAAE;EAC9C,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAIA,KAAK,IAAI,OAAO,IAAIA,KAAK,EAAE;IAC1D,IAAIA,KAAK,CAACvB,KAAK,KAAK,OAAO,IAAIuB,KAAK,CAACvB,KAAK,KAAK,aAAa,EAAE;MAC5D;IACF;EACF;EAEA,OAAOuB,KAAK;AACd","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ export * from "./animation.js";
4
+ export * from "./border.js";
5
+ export * from "./box-shadow.js";
6
+ export * from "./text-shadow.js";
7
+ export * from "./transform.js";
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["runtime/native/styles/shorthands/index.ts"],"mappings":";;AAAA,cAAc,gBAAa;AAC3B,cAAc,aAAU;AACxB,cAAc,iBAAc;AAC5B,cAAc,kBAAe;AAC7B,cAAc,gBAAa","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ import { shorthandHandler } from "./_handler.js";
4
+ const width = [["textShadowOffset", "width"], "number"];
5
+ const height = [["textShadowOffset", "height"], "number"];
6
+ const blur = ["textShadowRadius", "number", "textShadowRadius"];
7
+ const color = ["textShadowColor", "color", "color"];
8
+ export const textShadow = shorthandHandler([[width, height, blur, color], [color, width, height, blur], [width, height, color], [color, width, height], [width, height]], [blur, color]);
9
+ //# sourceMappingURL=text-shadow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["shorthandHandler","width","height","blur","color","textShadow"],"sourceRoot":"../../../../../../src","sources":["runtime/native/styles/shorthands/text-shadow.ts"],"mappings":";;AAAA,SAASA,gBAAgB,QAAQ,eAAY;AAE7C,MAAMC,KAAK,GAAG,CAAC,CAAC,kBAAkB,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAU;AAChE,MAAMC,MAAM,GAAG,CAAC,CAAC,kBAAkB,EAAE,QAAQ,CAAC,EAAE,QAAQ,CAAU;AAClE,MAAMC,IAAI,GAAG,CAAC,kBAAkB,EAAE,QAAQ,EAAE,kBAAkB,CAAU;AACxE,MAAMC,KAAK,GAAG,CAAC,iBAAiB,EAAE,OAAO,EAAE,OAAO,CAAU;AAE5D,OAAO,MAAMC,UAAU,GAAGL,gBAAgB,CACxC,CACE,CAACC,KAAK,EAAEC,MAAM,EAAEC,IAAI,EAAEC,KAAK,CAAC,EAC5B,CAACA,KAAK,EAAEH,KAAK,EAAEC,MAAM,EAAEC,IAAI,CAAC,EAC5B,CAACF,KAAK,EAAEC,MAAM,EAAEE,KAAK,CAAC,EACtB,CAACA,KAAK,EAAEH,KAAK,EAAEC,MAAM,CAAC,EACtB,CAACD,KAAK,EAAEC,MAAM,CAAC,CAChB,EACD,CAACC,IAAI,EAAEC,KAAK,CACd,CAAC","ignoreList":[]}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Handle the unparsable transform property by converting its values into StyleDeclarations
5
+ * Each value should be a StyleDescriptor function of the transform type
6
+ */
7
+ export const transform = (resolveValue, transformDescriptor) => {
8
+ const transforms = resolveValue(transformDescriptor[2]);
9
+ if (Array.isArray(transforms)) {
10
+ return transforms.filter(transform => transform !== undefined && transform !== "initial");
11
+ } else if (transforms) {
12
+ // If it's a single transform, wrap it in an array
13
+ return [transforms];
14
+ } else {
15
+ return;
16
+ }
17
+ };
18
+ //# sourceMappingURL=transform.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["transform","resolveValue","transformDescriptor","transforms","Array","isArray","filter","undefined"],"sourceRoot":"../../../../../../src","sources":["runtime/native/styles/shorthands/transform.ts"],"mappings":";;AAEA;AACA;AACA;AACA;AACA,OAAO,MAAMA,SAAgC,GAAGA,CAC9CC,YAAY,EACZC,mBAAmB,KAChB;EACH,MAAMC,UAAU,GAAGF,YAAY,CAACC,mBAAmB,CAAC,CAAC,CAAC,CAAC;EAEvD,IAAIE,KAAK,CAACC,OAAO,CAACF,UAAU,CAAC,EAAE;IAC7B,OAAOA,UAAU,CAACG,MAAM,CACrBN,SAAS,IAAKA,SAAS,KAAKO,SAAS,IAAIP,SAAS,KAAK,SAC1D,CAAC;EACH,CAAC,MAAM,IAAIG,UAAU,EAAE;IACrB;IACA,OAAO,CAACA,UAAU,CAAC;EACrB,CAAC,MAAM;IACL;EACF;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+
3
+ /* eslint-disable */
4
+ import { rem as remObs, vh as vhObs, vw as vwObs } from "../reactivity.js";
5
+ export const em = (resolve, func, get) => {
6
+ let value = func[2];
7
+ if (typeof value !== "number") {
8
+ return;
9
+ }
10
+ let emValue = resolve([{}, "var", ["__rn-css-em"]]);
11
+ if (typeof emValue !== "number") {
12
+ emValue = get(remObs);
13
+ }
14
+ if (typeof emValue !== "number") {
15
+ return;
16
+ }
17
+ return round(Number(value) * emValue);
18
+ };
19
+ export const vw = (_, func, get) => {
20
+ const value = func[2];
21
+ if (typeof value !== "number") {
22
+ return;
23
+ }
24
+ return round(get(vwObs) * (value / 100));
25
+ };
26
+ export const vh = (_, func, get) => {
27
+ const value = func[2];
28
+ if (typeof value !== "number") {
29
+ return;
30
+ }
31
+ return round(value / 100 * get(vhObs));
32
+ };
33
+ export const rem = (_, func, get) => {
34
+ const value = func[2];
35
+ if (typeof value !== "number") {
36
+ return;
37
+ }
38
+ return round(value * get(remObs));
39
+ };
40
+ function round(number) {
41
+ return Math.round((number + Number.EPSILON) * 100) / 100;
42
+ }
43
+ //# sourceMappingURL=units.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["rem","remObs","vh","vhObs","vw","vwObs","em","resolve","func","get","value","emValue","round","Number","_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AAK,CAAC,CAAC;AAC1C,CAAC;AAED,OAAO,MAAMH,GAA0B,GAAGA,CAACc,CAAC,EAAEN,IAAI,EAAEC,GAAG,KAAK;EAC1D,MAAMC,KAAK,GAAGF,IAAI,CAAC,CAAC,CAAC;EAErB,IAAI,OAAOE,KAAK,KAAK,QAAQ,EAAE;IAC7B;EACF;EAEA,OAAOE,KAAK,CAACF,KAAK,GAAGD,GAAG,CAACR,MAAM,CAAC,CAAC;AACnC,CAAC;AAED,SAASW,KAAKA,CAACG,MAAc,EAAE;EAC7B,OAAOC,IAAI,CAACJ,KAAK,CAAC,CAACG,MAAM,GAAGF,MAAM,CAACI,OAAO,IAAI,GAAG,CAAC,GAAG,GAAG;AAC1D","ignoreList":[]}
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+
3
+ import { rootVariables, universalVariables } from "react-native-css/style-collection";
4
+ import { isStyleDescriptorArray } from "../../utils/index.js";
5
+ import { VAR_SYMBOL } from "../reactivity.js";
6
+ export function varResolver(resolve, fn, get, options) {
7
+ const {
8
+ renderGuards,
9
+ inheritedVariables: variables = {
10
+ [VAR_SYMBOL]: true
11
+ },
12
+ inlineVariables,
13
+ variableHistory = new Set()
14
+ } = options;
15
+ const args = fn[2];
16
+ let name;
17
+ let fallback;
18
+ if (typeof args === "string") {
19
+ name = args;
20
+ } else {
21
+ const result = resolve(args);
22
+ if (isStyleDescriptorArray(result)) {
23
+ name = result[0];
24
+ fallback = result[1];
25
+ }
26
+ }
27
+ if (typeof name !== "string") {
28
+ return;
29
+ }
30
+
31
+ // If this recurses back to the same variable, we need to stop
32
+ if (variableHistory.has(name)) {
33
+ return;
34
+ }
35
+ if (name in variables) {
36
+ renderGuards?.push(["v", name, variables[name]]);
37
+ return variables[name];
38
+ }
39
+ variableHistory.add(name);
40
+ let value = resolve(inlineVariables?.[name]);
41
+ if (value !== undefined) {
42
+ options.inlineVariables ??= {
43
+ [VAR_SYMBOL]: "inline"
44
+ };
45
+ options.inlineVariables[name] = value;
46
+ return value;
47
+ }
48
+ value = resolve(variables[name]);
49
+ if (value !== undefined) {
50
+ renderGuards?.push(["v", name, value]);
51
+ options.inlineVariables ??= {
52
+ [VAR_SYMBOL]: "inline"
53
+ };
54
+ options.inlineVariables[name] = value;
55
+ return value;
56
+ }
57
+ value = resolve(get(universalVariables(name)));
58
+ if (value !== undefined) {
59
+ options.inlineVariables ??= {
60
+ [VAR_SYMBOL]: "inline"
61
+ };
62
+ options.inlineVariables[name] = value;
63
+ return value;
64
+ }
65
+ value = resolve(get(rootVariables(name)));
66
+ if (value !== undefined) {
67
+ options.inlineVariables ??= {
68
+ [VAR_SYMBOL]: "inline"
69
+ };
70
+ options.inlineVariables[name] = value;
71
+ return value;
72
+ }
73
+ return resolve(fallback);
74
+ }
75
+ //# sourceMappingURL=variables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["rootVariables","universalVariables","isStyleDescriptorArray","VAR_SYMBOL","varResolver","resolve","fn","get","options","renderGuards","inheritedVariables","variables","inlineVariables","variableHistory","Set","args","name","fallback","result","has","push","add","value","undefined"],"sourceRoot":"../../../../../src","sources":["runtime/native/styles/variables.ts"],"mappings":";;AAAA,SACEA,aAAa,EACbC,kBAAkB,QACb,mCAAmC;AAG1C,SAASC,sBAAsB,QAAQ,sBAAa;AACpD,SAASC,UAAU,QAAqB,kBAAe;AAGvD,OAAO,SAASC,WAAWA,CACzBC,OAA2B,EAC3BC,EAAiB,EACjBC,GAAW,EACXC,OAA4B,EAC5B;EACA,MAAM;IACJC,YAAY;IACZC,kBAAkB,EAAEC,SAAS,GAAG;MAAE,CAACR,UAAU,GAAG;IAAK,CAAC;IACtDS,eAAe;IACfC,eAAe,GAAG,IAAIC,GAAG,CAAC;EAC5B,CAAC,GAAGN,OAAO;EAEX,MAAMO,IAAI,GAAGT,EAAE,CAAC,CAAC,CAAC;EAElB,IAAIU,IAAwB;EAC5B,IAAIC,QAAqC;EAEzC,IAAI,OAAOF,IAAI,KAAK,QAAQ,EAAE;IAC5B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CAACN,kBAAkB,CAACe,IAAI,CAAC,CAAC,CAAC;EAC9C,IAAIM,KAAK,KAAKC,SAAS,EAAE;IACvBf,OAAO,CAACI,eAAe,KAAK;MAAE,CAACT,UAAU,GAAG;IAAS,CAAC;IACtDK,OAAO,CAACI,eAAe,CAACI,IAAI,CAAC,GAAGM,KAAK;IACrC,OAAOA,KAAK;EACd;EAEAA,KAAK,GAAGjB,OAAO,CAACE,GAAG,CAACP,aAAa,CAACgB,IAAI,CAAC,CAAC,CAAC;EACzC,IAAIM,KAAK,KAAKC,SAAS,EAAE;IACvBf,OAAO,CAACI,eAAe,KAAK;MAAE,CAACT,UAAU,GAAG;IAAS,CAAC;IACtDK,OAAO,CAACI,eAAe,CAACI,IAAI,CAAC,GAAGM,KAAK;IACrC,OAAOA,KAAK;EACd;EAEA,OAAOjB,OAAO,CAACY,QAAQ,CAAC;AAC1B","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export * from "./web/index.js";
4
+ //# sourceMappingURL=runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["runtime/runtime.ts"],"mappings":";;AAAA,cAAc,gBAAO","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export * from "./native/index.js";
4
+ //# sourceMappingURL=runtime.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["runtime/runtime.native.ts"],"mappings":";;AAAA,cAAc,mBAAU","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=runtime.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["runtime/runtime.types.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ /* eslint-disable */
4
+ const ForwardRefSymbol = Symbol.for("react.forward_ref");
5
+ export function getComponentType(component) {
6
+ switch (typeof component) {
7
+ case "function":
8
+ case "object":
9
+ return "$$typeof" in component && component.$$typeof === ForwardRefSymbol ? "forwardRef" : component.prototype?.isReactComponent ? "class" : typeof component;
10
+ default:
11
+ return "unknown";
12
+ }
13
+ }
14
+ //# sourceMappingURL=components.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ForwardRefSymbol","Symbol","for","getComponentType","component","$$typeof","prototype","isReactComponent"],"sourceRoot":"../../../../src","sources":["runtime/utils/components.ts"],"mappings":";;AAAA;AACA,MAAMA,gBAAgB,GAAGC,MAAM,CAACC,GAAG,CAAC,mBAAmB,CAAC;AACxD,OAAO,SAASC,gBAAgBA,CAACC,SAAc,EAAE;EAC/C,QAAQ,OAAOA,SAAS;IACtB,KAAK,UAAU;IACf,KAAK,QAAQ;MACX,OAAO,UAAU,IAAIA,SAAS,IAAIA,SAAS,CAACC,QAAQ,KAAKL,gBAAgB,GACrE,YAAY,GACZI,SAAS,CAACE,SAAS,EAAEC,gBAAgB,GACnC,OAAO,GACP,OAAOH,SAAS;IACxB;MACE,OAAO,SAAS;EACpB;AACF","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=dot-notation.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["runtime/utils/dot-notation.types.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ export * from "./objects.js";
4
+ export * from "./components.js";
5
+ export * from "./specificity.js";
6
+ export * from "./style-value.js";
7
+ export * from "./utils.types.js";
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["runtime/utils/index.ts"],"mappings":";;AAAA,cAAc,cAAW;AACzB,cAAc,iBAAc;AAC5B,cAAc,kBAAe;AAC7B,cAAc,kBAAe;AAC7B,cAAc,kBAAe","ignoreList":[]}
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+
3
+ /* eslint-disable */
4
+ import { ShortHandSymbol } from "../native/styles/constants.js";
5
+ import { transformKeys } from "../native/styles/defaults.js";
6
+ export function getDeepPath(source, paths) {
7
+ if (!source) {
8
+ return;
9
+ }
10
+ if (paths === false) {
11
+ return undefined;
12
+ }
13
+ if (Array.isArray(paths)) {
14
+ let target = source;
15
+ for (const path of paths) {
16
+ if (typeof target !== "object" || !target || !(path in target)) {
17
+ return undefined;
18
+ }
19
+ target = target[path];
20
+ }
21
+ return target;
22
+ } else if (transformKeys.has(paths)) {
23
+ return Array.isArray(source?.transform) ? source.transform.find(t => t[paths] !== undefined) : source.transform;
24
+ } else {
25
+ return source?.[paths];
26
+ }
27
+ }
28
+ export function applyShorthand(value) {
29
+ if (value === undefined) {
30
+ return;
31
+ }
32
+ const target = {
33
+ [ShortHandSymbol]: true
34
+ };
35
+ const values = value;
36
+ for (const [value, prop] of values) {
37
+ target[prop] = value;
38
+ }
39
+ return target;
40
+ }
41
+ export function applyValue(target, prop, value) {
42
+ // This is confusing.
43
+ // An undefined value means "don't set anything" (something failed while parsing)
44
+ // While a null value means "remove this value", which in React Native means "set to undefined"
45
+ if (value === undefined) {
46
+ return;
47
+ } else if (value === null) {
48
+ value = undefined;
49
+ }
50
+ if (transformKeys.has(prop)) {
51
+ if (!Array.isArray(target.transform)) {
52
+ target.transform = [];
53
+ }
54
+ const transformArray = target.transform;
55
+
56
+ // Remove any existing values
57
+ target.transform = transformArray.filter(t => !(prop in t));
58
+ if (Array.isArray(value)) {
59
+ target.transform.push(...value);
60
+ } else {
61
+ target.transform.push(value);
62
+ }
63
+ return;
64
+ } else if (typeof value === "object" && value && ShortHandSymbol in value) {
65
+ delete value[ShortHandSymbol];
66
+ Object.assign(target, value);
67
+ return;
68
+ }
69
+ target[prop] = value;
70
+ }
71
+ export function setDeepPath(target, paths, value) {
72
+ if (typeof paths === "string") {
73
+ target[paths] = value;
74
+ return target;
75
+ }
76
+ for (let i = 0; i < paths.length - 1; i++) {
77
+ const path = paths[i];
78
+ target[path] ??= {};
79
+ target = target[path];
80
+ }
81
+ target[paths[paths.length - 1]] = value;
82
+ return target;
83
+ }
84
+ //# sourceMappingURL=objects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ShortHandSymbol","transformKeys","getDeepPath","source","paths","undefined","Array","isArray","target","path","has","transform","find","t","applyShorthand","value","values","prop","applyValue","transformArray","filter","push","Object","assign","setDeepPath","i","length"],"sourceRoot":"../../../../src","sources":["runtime/utils/objects.ts"],"mappings":";;AAAA;AACA,SAASA,eAAe,QAAQ,+BAA4B;AAC5D,SAASC,aAAa,QAAQ,8BAA2B;AAEzD,OAAO,SAASC,WAAWA,CAACC,MAAW,EAAEC,KAAgC,EAAE;EACzE,IAAI,CAACD,MAAM,EAAE;IACX;EACF;EAEA,IAAIC,KAAK,KAAK,KAAK,EAAE;IACnB,OAAOC,SAAS;EAClB;EAEA,IAAIC,KAAK,CAACC,OAAO,CAACH,KAAK,CAAC,EAAE;IACxB,IAAII,MAAM,GAAGL,MAAM;IAEnB,KAAK,MAAMM,IAAI,IAAIL,KAAK,EAAE;MACxB,IAAI,OAAOI,MAAM,KAAK,QAAQ,IAAI,CAACA,MAAM,IAAI,EAAEC,IAAI,IAAID,MAAM,CAAC,EAAE;QAC9D,OAAOH,SAAS;MAClB;MAEAG,MAAM,GAAGA,MAAM,CAACC,IAAI,CAAC;IACvB;IAEA,OAAOD,MAAM;EACf,CAAC,MAAM,IAAIP,aAAa,CAACS,GAAG,CAACN,KAAK,CAAC,EAAE;IACnC,OAAOE,KAAK,CAACC,OAAO,CAACJ,MAAM,EAAEQ,SAAS,CAAC,GACnCR,MAAM,CAACQ,SAAS,CAACC,IAAI,CAAEC,CAAM,IAAKA,CAAC,CAACT,KAAK,CAAC,KAAKC,SAAS,CAAC,GACzDF,MAAM,CAACQ,SAAS;EACtB,CAAC,MAAM;IACL,OAAOR,MAAM,GAAGC,KAAK,CAAC;EACxB;AACF;AAEA,OAAO,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,CAACf,MAAM,EAAEO,KAAK,CAAC;IAC5B;EACF;EAEAP,MAAM,CAACS,IAAI,CAAC,GAAGF,KAAK;AACtB;AAEA,OAAO,SAASS,WAAWA,CACzBhB,MAA2B,EAC3BJ,KAA4C,EAC5CW,KAAU,EACV;EACA,IAAI,OAAOX,KAAK,KAAK,QAAQ,EAAE;IAC7BI,MAAM,CAACJ,KAAK,CAAC,GAAGW,KAAK;IACrB,OAAOP,MAAM;EACf;EAEA,KAAK,IAAIiB,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGrB,KAAK,CAACsB,MAAM,GAAG,CAAC,EAAED,CAAC,EAAE,EAAE;IACzC,MAAMhB,IAAI,GAAGL,KAAK,CAACqB,CAAC,CAAE;IACtBjB,MAAM,CAACC,IAAI,CAAC,KAAK,CAAC,CAAC;IACnBD,MAAM,GAAGA,MAAM,CAACC,IAAI,CAAC;EACvB;EAEAD,MAAM,CAACJ,KAAK,CAACA,KAAK,CAACsB,MAAM,GAAG,CAAC,CAAC,CAAE,GAAGX,KAAK;EAExC,OAAOP,MAAM;AACf","ignoreList":[]}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ /* eslint-disable */
4
+
5
+ export const Specificity = {
6
+ Order: 0,
7
+ ClassName: 1,
8
+ Important: 2,
9
+ Inline: 3,
10
+ PseudoElements: 4,
11
+ PseudoClass: 1
12
+ // Id: 0, - We don't support ID yet
13
+ // StyleSheet: 0, - We don't support multiple stylesheets
14
+ };
15
+ const Important = Specificity.Important;
16
+ const Inline = Specificity.Inline;
17
+ const PseudoElements = Specificity.PseudoElements;
18
+ const ClassName = Specificity.ClassName;
19
+ const Order = Specificity.Order;
20
+ export const inlineSpecificity = [];
21
+ inlineSpecificity[Specificity.Inline] = 1;
22
+ export const specificityCompareFn = (a, b) => {
23
+ const aSpec = a.s ? a.s : inlineSpecificity;
24
+ const bSpec = b.s ? b.s : inlineSpecificity;
25
+ if (aSpec[Important] !== bSpec[Important]) {
26
+ return (aSpec[Important] || 0) - (bSpec[Important] || 0);
27
+ } else if (aSpec[Inline] !== bSpec[Inline]) {
28
+ return (aSpec[Inline] || 0) - (bSpec[Inline] || 0);
29
+ } else if (aSpec[PseudoElements] !== bSpec[PseudoElements]) {
30
+ return (aSpec[PseudoElements] || 0) - (bSpec[PseudoElements] || 0);
31
+ } else if (aSpec[ClassName] !== bSpec[ClassName]) {
32
+ return (aSpec[ClassName] || 0) - (bSpec[ClassName] || 0);
33
+ } else if (aSpec[Order] !== bSpec[Order]) {
34
+ return (aSpec[Order] || 0) - (bSpec[Order] || 0);
35
+ } else {
36
+ return 0;
37
+ }
38
+ };
39
+ //# sourceMappingURL=specificity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Specificity","Order","ClassName","Important","Inline","PseudoElements","PseudoClass","inlineSpecificity","specificityCompareFn","a","b","aSpec","s","bSpec"],"sourceRoot":"../../../../src","sources":["runtime/utils/specificity.ts"],"mappings":";;AAAA;;AAIA,OAAO,MAAMA,WAAW,GAAG;EACzBC,KAAK,EAAE,CAAC;EACRC,SAAS,EAAE,CAAC;EACZC,SAAS,EAAE,CAAC;EACZC,MAAM,EAAE,CAAC;EACTC,cAAc,EAAE,CAAC;EACjBC,WAAW,EAAE;EACb;EACA;AACF,CAAC;AAED,MAAMH,SAAS,GAAGH,WAAW,CAACG,SAAS;AACvC,MAAMC,MAAM,GAAGJ,WAAW,CAACI,MAAM;AACjC,MAAMC,cAAc,GAAGL,WAAW,CAACK,cAAc;AACjD,MAAMH,SAAS,GAAGF,WAAW,CAACE,SAAS;AACvC,MAAMD,KAAK,GAAGD,WAAW,CAACC,KAAK;AAE/B,OAAO,MAAMM,iBAAmC,GAAG,EAAE;AACrDA,iBAAiB,CAACP,WAAW,CAACI,MAAM,CAAC,GAAG,CAAC;AAEzC,OAAO,MAAMI,oBAAoB,GAAGA,CAClCC,CAAgC,EAChCC,CAAgC,KAC7B;EACH,MAAMC,KAAK,GAAGF,CAAC,CAACG,CAAC,GAAGH,CAAC,CAACG,CAAC,GAAGL,iBAAiB;EAC3C,MAAMM,KAAK,GAAGH,CAAC,CAACE,CAAC,GAAGF,CAAC,CAACE,CAAC,GAAGL,iBAAiB;EAE3C,IAAII,KAAK,CAACR,SAAS,CAAC,KAAKU,KAAK,CAACV,SAAS,CAAC,EAAE;IACzC,OAAO,CAACQ,KAAK,CAACR,SAAS,CAAC,IAAI,CAAC,KAAKU,KAAK,CAACV,SAAS,CAAC,IAAI,CAAC,CAAC;EAC1D,CAAC,MAAM,IAAIQ,KAAK,CAACP,MAAM,CAAC,KAAKS,KAAK,CAACT,MAAM,CAAC,EAAE;IAC1C,OAAO,CAACO,KAAK,CAACP,MAAM,CAAC,IAAI,CAAC,KAAKS,KAAK,CAACT,MAAM,CAAC,IAAI,CAAC,CAAC;EACpD,CAAC,MAAM,IAAIO,KAAK,CAACN,cAAc,CAAC,KAAKQ,KAAK,CAACR,cAAc,CAAC,EAAE;IAC1D,OAAO,CAACM,KAAK,CAACN,cAAc,CAAC,IAAI,CAAC,KAAKQ,KAAK,CAACR,cAAc,CAAC,IAAI,CAAC,CAAC;EACpE,CAAC,MAAM,IAAIM,KAAK,CAACT,SAAS,CAAC,KAAKW,KAAK,CAACX,SAAS,CAAC,EAAE;IAChD,OAAO,CAACS,KAAK,CAACT,SAAS,CAAC,IAAI,CAAC,KAAKW,KAAK,CAACX,SAAS,CAAC,IAAI,CAAC,CAAC;EAC1D,CAAC,MAAM,IAAIS,KAAK,CAACV,KAAK,CAAC,KAAKY,KAAK,CAACZ,KAAK,CAAC,EAAE;IACxC,OAAO,CAACU,KAAK,CAACV,KAAK,CAAC,IAAI,CAAC,KAAKY,KAAK,CAACZ,KAAK,CAAC,IAAI,CAAC,CAAC;EAClD,CAAC,MAAM;IACL,OAAO,CAAC;EACV;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ export function isStyleDescriptorArray(value) {
4
+ if (Array.isArray(value)) {
5
+ // If its an array and the first item is an object, the only allowed value is an array
6
+ return typeof value[0] === "object" ? Array.isArray(value[0]) : true;
7
+ }
8
+ return false;
9
+ }
10
+ export function isStyleFunction(value) {
11
+ if (Array.isArray(value)) {
12
+ return typeof value[0] === "object" ? Object.keys(value[0]).length === 0 : false;
13
+ }
14
+ return false;
15
+ }
16
+ //# sourceMappingURL=style-value.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["isStyleDescriptorArray","value","Array","isArray","isStyleFunction","Object","keys","length"],"sourceRoot":"../../../../src","sources":["runtime/utils/style-value.ts"],"mappings":";;AAEA,OAAO,SAASA,sBAAsBA,CACpCC,KAAc,EACc;EAC5B,IAAIC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;IACxB;IACA,OAAO,OAAOA,KAAK,CAAC,CAAC,CAAC,KAAK,QAAQ,GAAGC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;EACtE;EAEA,OAAO,KAAK;AACd;AAEA,OAAO,SAASG,eAAeA,CAC7BH,KAAsB,EACE;EACxB,IAAIC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;IACxB,OAAO,OAAOA,KAAK,CAAC,CAAC,CAAC,KAAK,QAAQ,GAC/BI,MAAM,CAACC,IAAI,CAACL,KAAK,CAAC,CAAC,CAAC,CAAC,CAACM,MAAM,KAAK,CAAC,GAClC,KAAK;EACX;EAEA,OAAO,KAAK;AACd","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=utils.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["runtime/utils/utils.types.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+
3
+ import { createElement } from "react";
4
+ import { Appearance } from "react-native";
5
+ import { assignStyle } from "./assign-style.js";
6
+ export const styled = (baseComponent, mapping, _options) => {
7
+ return props => {
8
+ return useCssElement(baseComponent, mapping, props);
9
+ };
10
+ };
11
+ export const useCssElement = (component, incomingProps, mapping) => {
12
+ let props = {
13
+ ...incomingProps
14
+ };
15
+ for (const [key, value] of Object.entries(mapping)) {
16
+ const source = props[key];
17
+ if (!source) {
18
+ continue;
19
+ }
20
+
21
+ // eslint-disable-next-line @typescript-eslint/no-dynamic-delete
22
+ delete props[key];
23
+ let target = typeof value === "object" ? value.target : value;
24
+ if (typeof target === "boolean") {
25
+ target = key;
26
+ }
27
+ props = assignStyle({
28
+ $$css: true,
29
+ [key]: source
30
+ }, target.split("."), props);
31
+ }
32
+ return /*#__PURE__*/createElement(component, props);
33
+ };
34
+ export const colorScheme = {
35
+ get() {
36
+ return Appearance.getColorScheme();
37
+ },
38
+ set(name) {
39
+ Appearance.setColorScheme(name);
40
+ }
41
+ };
42
+ export function vars(variables) {
43
+ const $variables = {};
44
+ for (const [key, value] of Object.entries(variables)) {
45
+ if (key.startsWith("--")) {
46
+ $variables[key] = value.toString();
47
+ } else {
48
+ $variables[`--${key}`] = value.toString();
49
+ }
50
+ }
51
+ return $variables;
52
+ }
53
+ export const useNativeVariable = () => {
54
+ throw new Error("useNativeVariable is not supported in web");
55
+ };
56
+ export const useUnstableNativeVariable = () => {
57
+ throw new Error("useUnstableNativeVariable is not supported in web");
58
+ };
59
+ //# sourceMappingURL=api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createElement","Appearance","assignStyle","styled","baseComponent","mapping","_options","props","useCssElement","component","incomingProps","key","value","Object","entries","source","target","$$css","split","colorScheme","get","getColorScheme","set","name","setColorScheme","vars","variables","$variables","startsWith","toString","useNativeVariable","Error","useUnstableNativeVariable"],"sourceRoot":"../../../../src","sources":["runtime/web/api.ts"],"mappings":";;AAAA,SAASA,aAAa,QAA6B,OAAO;AAC1D,SAASC,UAAU,QAAQ,cAAc;AAUzC,SAASC,WAAW,QAAQ,mBAAgB;AAE5C,OAAO,MAAMC,MAAM,GAAGA,CAIpBC,aAAgB,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