react-native-mantine 0.1.11

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 (334) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +28 -0
  3. package/lib/commonjs/components/ActionIcon/ActionIcon.js +71 -0
  4. package/lib/commonjs/components/ActionIcon/ActionIcon.js.map +1 -0
  5. package/lib/commonjs/components/ActionIcon/index.js +13 -0
  6. package/lib/commonjs/components/ActionIcon/index.js.map +1 -0
  7. package/lib/commonjs/components/BoxView/index.js +30 -0
  8. package/lib/commonjs/components/BoxView/index.js.map +1 -0
  9. package/lib/commonjs/components/Group/index.js +33 -0
  10. package/lib/commonjs/components/Group/index.js.map +1 -0
  11. package/lib/commonjs/components/Loader/Loader.js +42 -0
  12. package/lib/commonjs/components/Loader/Loader.js.map +1 -0
  13. package/lib/commonjs/components/Loader/index.js +13 -0
  14. package/lib/commonjs/components/Loader/index.js.map +1 -0
  15. package/lib/commonjs/components/Stack/index.js +30 -0
  16. package/lib/commonjs/components/Stack/index.js.map +1 -0
  17. package/lib/commonjs/components/Text/index.js +51 -0
  18. package/lib/commonjs/components/Text/index.js.map +1 -0
  19. package/lib/commonjs/components/UnstyledButton/UnstyledButton.js +42 -0
  20. package/lib/commonjs/components/UnstyledButton/UnstyledButton.js.map +1 -0
  21. package/lib/commonjs/components/UnstyledButton/UnstyledButton.styles.js +24 -0
  22. package/lib/commonjs/components/UnstyledButton/UnstyledButton.styles.js.map +1 -0
  23. package/lib/commonjs/components/UnstyledButton/index.js +13 -0
  24. package/lib/commonjs/components/UnstyledButton/index.js.map +1 -0
  25. package/lib/commonjs/components/index.js +72 -0
  26. package/lib/commonjs/components/index.js.map +1 -0
  27. package/lib/commonjs/fonts/Nunito-Bold.ttf +0 -0
  28. package/lib/commonjs/fonts/Nunito-Regular.ttf +0 -0
  29. package/lib/commonjs/fonts/Nunito-SemiBold.ttf +0 -0
  30. package/lib/commonjs/hooks/useCachedResources.js +36 -0
  31. package/lib/commonjs/hooks/useCachedResources.js.map +1 -0
  32. package/lib/commonjs/index.js +28 -0
  33. package/lib/commonjs/index.js.map +1 -0
  34. package/lib/commonjs/theme/constants.js +25 -0
  35. package/lib/commonjs/theme/constants.js.map +1 -0
  36. package/lib/commonjs/theme/create-styles.js +25 -0
  37. package/lib/commonjs/theme/create-styles.js.map +1 -0
  38. package/lib/commonjs/theme/default-theme.js +132 -0
  39. package/lib/commonjs/theme/default-theme.js.map +1 -0
  40. package/lib/commonjs/theme/filter-props.js +15 -0
  41. package/lib/commonjs/theme/filter-props.js.map +1 -0
  42. package/lib/commonjs/theme/functions/attach-functions.js +18 -0
  43. package/lib/commonjs/theme/functions/attach-functions.js.map +1 -0
  44. package/lib/commonjs/theme/functions/fns/index.js +15 -0
  45. package/lib/commonjs/theme/functions/fns/index.js.map +1 -0
  46. package/lib/commonjs/theme/functions/fns/radius.js +16 -0
  47. package/lib/commonjs/theme/functions/fns/radius.js.map +1 -0
  48. package/lib/commonjs/theme/functions/fns/theme-color/theme-color.js +12 -0
  49. package/lib/commonjs/theme/functions/fns/theme-color/theme-color.js.map +1 -0
  50. package/lib/commonjs/theme/functions/fns/variant.js +11 -0
  51. package/lib/commonjs/theme/functions/fns/variant.js.map +1 -0
  52. package/lib/commonjs/theme/generate-theme.js +30 -0
  53. package/lib/commonjs/theme/generate-theme.js.map +1 -0
  54. package/lib/commonjs/theme/get-size/index.js +16 -0
  55. package/lib/commonjs/theme/get-size/index.js.map +1 -0
  56. package/lib/commonjs/theme/index.js +46 -0
  57. package/lib/commonjs/theme/index.js.map +1 -0
  58. package/lib/commonjs/theme/theme-provider.js +106 -0
  59. package/lib/commonjs/theme/theme-provider.js.map +1 -0
  60. package/lib/commonjs/theme/theme.d.js +2 -0
  61. package/lib/commonjs/theme/theme.d.js.map +1 -0
  62. package/lib/commonjs/theme/types/ColorScheme.js +2 -0
  63. package/lib/commonjs/theme/types/ColorScheme.js.map +1 -0
  64. package/lib/commonjs/theme/types/DefaultProps.js +2 -0
  65. package/lib/commonjs/theme/types/DefaultProps.js.map +1 -0
  66. package/lib/commonjs/theme/types/MantineColor.js +6 -0
  67. package/lib/commonjs/theme/types/MantineColor.js.map +1 -0
  68. package/lib/commonjs/theme/types/MantineSize.js +2 -0
  69. package/lib/commonjs/theme/types/MantineSize.js.map +1 -0
  70. package/lib/commonjs/theme/types/MantineStyleSystem.js +6 -0
  71. package/lib/commonjs/theme/types/MantineStyleSystem.js.map +1 -0
  72. package/lib/commonjs/theme/types/Tuple.js +2 -0
  73. package/lib/commonjs/theme/types/Tuple.js.map +1 -0
  74. package/lib/commonjs/theme/types/Variants.js +2 -0
  75. package/lib/commonjs/theme/types/Variants.js.map +1 -0
  76. package/lib/commonjs/theme/types/index.js +2 -0
  77. package/lib/commonjs/theme/types/index.js.map +1 -0
  78. package/lib/module/components/ActionIcon/ActionIcon.js +66 -0
  79. package/lib/module/components/ActionIcon/ActionIcon.js.map +1 -0
  80. package/lib/module/components/ActionIcon/index.js +4 -0
  81. package/lib/module/components/ActionIcon/index.js.map +1 -0
  82. package/lib/module/components/BoxView/index.js +26 -0
  83. package/lib/module/components/BoxView/index.js.map +1 -0
  84. package/lib/module/components/Group/index.js +28 -0
  85. package/lib/module/components/Group/index.js.map +1 -0
  86. package/lib/module/components/Loader/Loader.js +38 -0
  87. package/lib/module/components/Loader/Loader.js.map +1 -0
  88. package/lib/module/components/Loader/index.js +4 -0
  89. package/lib/module/components/Loader/index.js.map +1 -0
  90. package/lib/module/components/Stack/index.js +25 -0
  91. package/lib/module/components/Stack/index.js.map +1 -0
  92. package/lib/module/components/Text/index.js +47 -0
  93. package/lib/module/components/Text/index.js.map +1 -0
  94. package/lib/module/components/UnstyledButton/UnstyledButton.js +35 -0
  95. package/lib/module/components/UnstyledButton/UnstyledButton.js.map +1 -0
  96. package/lib/module/components/UnstyledButton/UnstyledButton.styles.js +20 -0
  97. package/lib/module/components/UnstyledButton/UnstyledButton.styles.js.map +1 -0
  98. package/lib/module/components/UnstyledButton/index.js +4 -0
  99. package/lib/module/components/UnstyledButton/index.js.map +1 -0
  100. package/lib/module/components/index.js +9 -0
  101. package/lib/module/components/index.js.map +1 -0
  102. package/lib/module/fonts/Nunito-Bold.ttf +0 -0
  103. package/lib/module/fonts/Nunito-Regular.ttf +0 -0
  104. package/lib/module/fonts/Nunito-SemiBold.ttf +0 -0
  105. package/lib/module/hooks/useCachedResources.js +30 -0
  106. package/lib/module/hooks/useCachedResources.js.map +1 -0
  107. package/lib/module/index.js +5 -0
  108. package/lib/module/index.js.map +1 -0
  109. package/lib/module/theme/constants.js +21 -0
  110. package/lib/module/theme/constants.js.map +1 -0
  111. package/lib/module/theme/create-styles.js +21 -0
  112. package/lib/module/theme/create-styles.js.map +1 -0
  113. package/lib/module/theme/default-theme.js +128 -0
  114. package/lib/module/theme/default-theme.js.map +1 -0
  115. package/lib/module/theme/filter-props.js +11 -0
  116. package/lib/module/theme/filter-props.js.map +1 -0
  117. package/lib/module/theme/functions/attach-functions.js +14 -0
  118. package/lib/module/theme/functions/attach-functions.js.map +1 -0
  119. package/lib/module/theme/functions/fns/index.js +11 -0
  120. package/lib/module/theme/functions/fns/index.js.map +1 -0
  121. package/lib/module/theme/functions/fns/radius.js +12 -0
  122. package/lib/module/theme/functions/fns/radius.js.map +1 -0
  123. package/lib/module/theme/functions/fns/theme-color/theme-color.js +8 -0
  124. package/lib/module/theme/functions/fns/theme-color/theme-color.js.map +1 -0
  125. package/lib/module/theme/functions/fns/variant.js +6 -0
  126. package/lib/module/theme/functions/fns/variant.js.map +1 -0
  127. package/lib/module/theme/generate-theme.js +25 -0
  128. package/lib/module/theme/generate-theme.js.map +1 -0
  129. package/lib/module/theme/get-size/index.js +12 -0
  130. package/lib/module/theme/get-size/index.js.map +1 -0
  131. package/lib/module/theme/index.js +7 -0
  132. package/lib/module/theme/index.js.map +1 -0
  133. package/lib/module/theme/theme-provider.js +94 -0
  134. package/lib/module/theme/theme-provider.js.map +1 -0
  135. package/lib/module/theme/theme.d.js +2 -0
  136. package/lib/module/theme/theme.d.js.map +1 -0
  137. package/lib/module/theme/types/ColorScheme.js +2 -0
  138. package/lib/module/theme/types/ColorScheme.js.map +1 -0
  139. package/lib/module/theme/types/DefaultProps.js +2 -0
  140. package/lib/module/theme/types/DefaultProps.js.map +1 -0
  141. package/lib/module/theme/types/MantineColor.js +4 -0
  142. package/lib/module/theme/types/MantineColor.js.map +1 -0
  143. package/lib/module/theme/types/MantineSize.js +2 -0
  144. package/lib/module/theme/types/MantineSize.js.map +1 -0
  145. package/lib/module/theme/types/MantineStyleSystem.js +4 -0
  146. package/lib/module/theme/types/MantineStyleSystem.js.map +1 -0
  147. package/lib/module/theme/types/Tuple.js +2 -0
  148. package/lib/module/theme/types/Tuple.js.map +1 -0
  149. package/lib/module/theme/types/Variants.js +2 -0
  150. package/lib/module/theme/types/Variants.js.map +1 -0
  151. package/lib/module/theme/types/index.js +2 -0
  152. package/lib/module/theme/types/index.js.map +1 -0
  153. package/lib/typescript/commonjs/package.json +1 -0
  154. package/lib/typescript/commonjs/src/components/ActionIcon/ActionIcon.d.ts +17 -0
  155. package/lib/typescript/commonjs/src/components/ActionIcon/ActionIcon.d.ts.map +1 -0
  156. package/lib/typescript/commonjs/src/components/ActionIcon/index.d.ts +3 -0
  157. package/lib/typescript/commonjs/src/components/ActionIcon/index.d.ts.map +1 -0
  158. package/lib/typescript/commonjs/src/components/BoxView/index.d.ts +17 -0
  159. package/lib/typescript/commonjs/src/components/BoxView/index.d.ts.map +1 -0
  160. package/lib/typescript/commonjs/src/components/Group/index.d.ts +9 -0
  161. package/lib/typescript/commonjs/src/components/Group/index.d.ts.map +1 -0
  162. package/lib/typescript/commonjs/src/components/Loader/Loader.d.ts +14 -0
  163. package/lib/typescript/commonjs/src/components/Loader/Loader.d.ts.map +1 -0
  164. package/lib/typescript/commonjs/src/components/Loader/index.d.ts +3 -0
  165. package/lib/typescript/commonjs/src/components/Loader/index.d.ts.map +1 -0
  166. package/lib/typescript/commonjs/src/components/Stack/index.d.ts +6 -0
  167. package/lib/typescript/commonjs/src/components/Stack/index.d.ts.map +1 -0
  168. package/lib/typescript/commonjs/src/components/Text/index.d.ts +20 -0
  169. package/lib/typescript/commonjs/src/components/Text/index.d.ts.map +1 -0
  170. package/lib/typescript/commonjs/src/components/UnstyledButton/UnstyledButton.d.ts +10 -0
  171. package/lib/typescript/commonjs/src/components/UnstyledButton/UnstyledButton.d.ts.map +1 -0
  172. package/lib/typescript/commonjs/src/components/UnstyledButton/UnstyledButton.styles.d.ts +9 -0
  173. package/lib/typescript/commonjs/src/components/UnstyledButton/UnstyledButton.styles.d.ts.map +1 -0
  174. package/lib/typescript/commonjs/src/components/UnstyledButton/index.d.ts +3 -0
  175. package/lib/typescript/commonjs/src/components/UnstyledButton/index.d.ts.map +1 -0
  176. package/lib/typescript/commonjs/src/components/index.d.ts +7 -0
  177. package/lib/typescript/commonjs/src/components/index.d.ts.map +1 -0
  178. package/lib/typescript/commonjs/src/hooks/useCachedResources.d.ts +2 -0
  179. package/lib/typescript/commonjs/src/hooks/useCachedResources.d.ts.map +1 -0
  180. package/lib/typescript/commonjs/src/index.d.ts +5 -0
  181. package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
  182. package/lib/typescript/commonjs/src/theme/constants.d.ts +13 -0
  183. package/lib/typescript/commonjs/src/theme/constants.d.ts.map +1 -0
  184. package/lib/typescript/commonjs/src/theme/create-styles.d.ts +12 -0
  185. package/lib/typescript/commonjs/src/theme/create-styles.d.ts.map +1 -0
  186. package/lib/typescript/commonjs/src/theme/default-theme.d.ts +58 -0
  187. package/lib/typescript/commonjs/src/theme/default-theme.d.ts.map +1 -0
  188. package/lib/typescript/commonjs/src/theme/filter-props.d.ts +6 -0
  189. package/lib/typescript/commonjs/src/theme/filter-props.d.ts.map +1 -0
  190. package/lib/typescript/commonjs/src/theme/functions/attach-functions.d.ts +2 -0
  191. package/lib/typescript/commonjs/src/theme/functions/attach-functions.d.ts.map +1 -0
  192. package/lib/typescript/commonjs/src/theme/functions/fns/index.d.ts +8 -0
  193. package/lib/typescript/commonjs/src/theme/functions/fns/index.d.ts.map +1 -0
  194. package/lib/typescript/commonjs/src/theme/functions/fns/radius.d.ts +3 -0
  195. package/lib/typescript/commonjs/src/theme/functions/fns/radius.d.ts.map +1 -0
  196. package/lib/typescript/commonjs/src/theme/functions/fns/theme-color/theme-color.d.ts +2 -0
  197. package/lib/typescript/commonjs/src/theme/functions/fns/theme-color/theme-color.d.ts.map +1 -0
  198. package/lib/typescript/commonjs/src/theme/functions/fns/variant.d.ts +2 -0
  199. package/lib/typescript/commonjs/src/theme/functions/fns/variant.d.ts.map +1 -0
  200. package/lib/typescript/commonjs/src/theme/generate-theme.d.ts +3 -0
  201. package/lib/typescript/commonjs/src/theme/generate-theme.d.ts.map +1 -0
  202. package/lib/typescript/commonjs/src/theme/get-size/index.d.ts +6 -0
  203. package/lib/typescript/commonjs/src/theme/get-size/index.d.ts.map +1 -0
  204. package/lib/typescript/commonjs/src/theme/index.d.ts +5 -0
  205. package/lib/typescript/commonjs/src/theme/index.d.ts.map +1 -0
  206. package/lib/typescript/commonjs/src/theme/theme-provider.d.ts +21 -0
  207. package/lib/typescript/commonjs/src/theme/theme-provider.d.ts.map +1 -0
  208. package/lib/typescript/commonjs/src/theme/types/ColorScheme.d.ts +2 -0
  209. package/lib/typescript/commonjs/src/theme/types/ColorScheme.d.ts.map +1 -0
  210. package/lib/typescript/commonjs/src/theme/types/DefaultProps.d.ts +8 -0
  211. package/lib/typescript/commonjs/src/theme/types/DefaultProps.d.ts.map +1 -0
  212. package/lib/typescript/commonjs/src/theme/types/MantineColor.d.ts +8 -0
  213. package/lib/typescript/commonjs/src/theme/types/MantineColor.d.ts.map +1 -0
  214. package/lib/typescript/commonjs/src/theme/types/MantineSize.d.ts +4 -0
  215. package/lib/typescript/commonjs/src/theme/types/MantineSize.d.ts.map +1 -0
  216. package/lib/typescript/commonjs/src/theme/types/MantineStyleSystem.d.ts +5 -0
  217. package/lib/typescript/commonjs/src/theme/types/MantineStyleSystem.d.ts.map +1 -0
  218. package/lib/typescript/commonjs/src/theme/types/Tuple.d.ts +4 -0
  219. package/lib/typescript/commonjs/src/theme/types/Tuple.d.ts.map +1 -0
  220. package/lib/typescript/commonjs/src/theme/types/Variants.d.ts +2 -0
  221. package/lib/typescript/commonjs/src/theme/types/Variants.d.ts.map +1 -0
  222. package/lib/typescript/commonjs/src/theme/types/index.d.ts +8 -0
  223. package/lib/typescript/commonjs/src/theme/types/index.d.ts.map +1 -0
  224. package/lib/typescript/module/package.json +1 -0
  225. package/lib/typescript/module/src/components/ActionIcon/ActionIcon.d.ts +17 -0
  226. package/lib/typescript/module/src/components/ActionIcon/ActionIcon.d.ts.map +1 -0
  227. package/lib/typescript/module/src/components/ActionIcon/index.d.ts +3 -0
  228. package/lib/typescript/module/src/components/ActionIcon/index.d.ts.map +1 -0
  229. package/lib/typescript/module/src/components/BoxView/index.d.ts +17 -0
  230. package/lib/typescript/module/src/components/BoxView/index.d.ts.map +1 -0
  231. package/lib/typescript/module/src/components/Group/index.d.ts +9 -0
  232. package/lib/typescript/module/src/components/Group/index.d.ts.map +1 -0
  233. package/lib/typescript/module/src/components/Loader/Loader.d.ts +14 -0
  234. package/lib/typescript/module/src/components/Loader/Loader.d.ts.map +1 -0
  235. package/lib/typescript/module/src/components/Loader/index.d.ts +3 -0
  236. package/lib/typescript/module/src/components/Loader/index.d.ts.map +1 -0
  237. package/lib/typescript/module/src/components/Stack/index.d.ts +6 -0
  238. package/lib/typescript/module/src/components/Stack/index.d.ts.map +1 -0
  239. package/lib/typescript/module/src/components/Text/index.d.ts +20 -0
  240. package/lib/typescript/module/src/components/Text/index.d.ts.map +1 -0
  241. package/lib/typescript/module/src/components/UnstyledButton/UnstyledButton.d.ts +10 -0
  242. package/lib/typescript/module/src/components/UnstyledButton/UnstyledButton.d.ts.map +1 -0
  243. package/lib/typescript/module/src/components/UnstyledButton/UnstyledButton.styles.d.ts +9 -0
  244. package/lib/typescript/module/src/components/UnstyledButton/UnstyledButton.styles.d.ts.map +1 -0
  245. package/lib/typescript/module/src/components/UnstyledButton/index.d.ts +3 -0
  246. package/lib/typescript/module/src/components/UnstyledButton/index.d.ts.map +1 -0
  247. package/lib/typescript/module/src/components/index.d.ts +7 -0
  248. package/lib/typescript/module/src/components/index.d.ts.map +1 -0
  249. package/lib/typescript/module/src/hooks/useCachedResources.d.ts +2 -0
  250. package/lib/typescript/module/src/hooks/useCachedResources.d.ts.map +1 -0
  251. package/lib/typescript/module/src/index.d.ts +5 -0
  252. package/lib/typescript/module/src/index.d.ts.map +1 -0
  253. package/lib/typescript/module/src/theme/constants.d.ts +13 -0
  254. package/lib/typescript/module/src/theme/constants.d.ts.map +1 -0
  255. package/lib/typescript/module/src/theme/create-styles.d.ts +12 -0
  256. package/lib/typescript/module/src/theme/create-styles.d.ts.map +1 -0
  257. package/lib/typescript/module/src/theme/default-theme.d.ts +58 -0
  258. package/lib/typescript/module/src/theme/default-theme.d.ts.map +1 -0
  259. package/lib/typescript/module/src/theme/filter-props.d.ts +6 -0
  260. package/lib/typescript/module/src/theme/filter-props.d.ts.map +1 -0
  261. package/lib/typescript/module/src/theme/functions/attach-functions.d.ts +2 -0
  262. package/lib/typescript/module/src/theme/functions/attach-functions.d.ts.map +1 -0
  263. package/lib/typescript/module/src/theme/functions/fns/index.d.ts +8 -0
  264. package/lib/typescript/module/src/theme/functions/fns/index.d.ts.map +1 -0
  265. package/lib/typescript/module/src/theme/functions/fns/radius.d.ts +3 -0
  266. package/lib/typescript/module/src/theme/functions/fns/radius.d.ts.map +1 -0
  267. package/lib/typescript/module/src/theme/functions/fns/theme-color/theme-color.d.ts +2 -0
  268. package/lib/typescript/module/src/theme/functions/fns/theme-color/theme-color.d.ts.map +1 -0
  269. package/lib/typescript/module/src/theme/functions/fns/variant.d.ts +2 -0
  270. package/lib/typescript/module/src/theme/functions/fns/variant.d.ts.map +1 -0
  271. package/lib/typescript/module/src/theme/generate-theme.d.ts +3 -0
  272. package/lib/typescript/module/src/theme/generate-theme.d.ts.map +1 -0
  273. package/lib/typescript/module/src/theme/get-size/index.d.ts +6 -0
  274. package/lib/typescript/module/src/theme/get-size/index.d.ts.map +1 -0
  275. package/lib/typescript/module/src/theme/index.d.ts +5 -0
  276. package/lib/typescript/module/src/theme/index.d.ts.map +1 -0
  277. package/lib/typescript/module/src/theme/theme-provider.d.ts +21 -0
  278. package/lib/typescript/module/src/theme/theme-provider.d.ts.map +1 -0
  279. package/lib/typescript/module/src/theme/types/ColorScheme.d.ts +2 -0
  280. package/lib/typescript/module/src/theme/types/ColorScheme.d.ts.map +1 -0
  281. package/lib/typescript/module/src/theme/types/DefaultProps.d.ts +8 -0
  282. package/lib/typescript/module/src/theme/types/DefaultProps.d.ts.map +1 -0
  283. package/lib/typescript/module/src/theme/types/MantineColor.d.ts +8 -0
  284. package/lib/typescript/module/src/theme/types/MantineColor.d.ts.map +1 -0
  285. package/lib/typescript/module/src/theme/types/MantineSize.d.ts +4 -0
  286. package/lib/typescript/module/src/theme/types/MantineSize.d.ts.map +1 -0
  287. package/lib/typescript/module/src/theme/types/MantineStyleSystem.d.ts +5 -0
  288. package/lib/typescript/module/src/theme/types/MantineStyleSystem.d.ts.map +1 -0
  289. package/lib/typescript/module/src/theme/types/Tuple.d.ts +4 -0
  290. package/lib/typescript/module/src/theme/types/Tuple.d.ts.map +1 -0
  291. package/lib/typescript/module/src/theme/types/Variants.d.ts +2 -0
  292. package/lib/typescript/module/src/theme/types/Variants.d.ts.map +1 -0
  293. package/lib/typescript/module/src/theme/types/index.d.ts +8 -0
  294. package/lib/typescript/module/src/theme/types/index.d.ts.map +1 -0
  295. package/package.json +194 -0
  296. package/src/components/ActionIcon/ActionIcon.tsx +64 -0
  297. package/src/components/ActionIcon/index.ts +3 -0
  298. package/src/components/BoxView/index.tsx +30 -0
  299. package/src/components/Group/index.tsx +48 -0
  300. package/src/components/Loader/Loader.tsx +50 -0
  301. package/src/components/Loader/index.ts +2 -0
  302. package/src/components/Stack/index.tsx +29 -0
  303. package/src/components/Text/index.tsx +81 -0
  304. package/src/components/UnstyledButton/UnstyledButton.styles.ts +16 -0
  305. package/src/components/UnstyledButton/UnstyledButton.tsx +34 -0
  306. package/src/components/UnstyledButton/index.ts +2 -0
  307. package/src/components/index.tsx +6 -0
  308. package/src/fonts/Nunito-Bold.ttf +0 -0
  309. package/src/fonts/Nunito-Regular.ttf +0 -0
  310. package/src/fonts/Nunito-SemiBold.ttf +0 -0
  311. package/src/hooks/useCachedResources.ts +30 -0
  312. package/src/index.tsx +4 -0
  313. package/src/theme/constants.ts +20 -0
  314. package/src/theme/create-styles.ts +31 -0
  315. package/src/theme/default-theme.ts +359 -0
  316. package/src/theme/filter-props.ts +12 -0
  317. package/src/theme/functions/attach-functions.ts +12 -0
  318. package/src/theme/functions/fns/index.ts +9 -0
  319. package/src/theme/functions/fns/radius.ts +16 -0
  320. package/src/theme/functions/fns/theme-color/theme-color.ts +6 -0
  321. package/src/theme/functions/fns/variant.ts +3 -0
  322. package/src/theme/generate-theme.ts +20 -0
  323. package/src/theme/get-size/index.ts +18 -0
  324. package/src/theme/index.tsx +4 -0
  325. package/src/theme/theme-provider.tsx +131 -0
  326. package/src/theme/theme.d.ts +13 -0
  327. package/src/theme/types/ColorScheme.ts +1 -0
  328. package/src/theme/types/DefaultProps.ts +13 -0
  329. package/src/theme/types/MantineColor.ts +28 -0
  330. package/src/theme/types/MantineSize.ts +3 -0
  331. package/src/theme/types/MantineStyleSystem.ts +62 -0
  332. package/src/theme/types/Tuple.ts +9 -0
  333. package/src/theme/types/Variants.ts +1 -0
  334. package/src/theme/types/index.ts +12 -0
package/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Auronsan
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # react-native-mantine (WIP / Work in Progress)
2
+
3
+ Make Mantine Accessable on React Native
4
+
5
+ ## Installation
6
+
7
+ ```sh
8
+ npm install react-native-mantine
9
+ ```
10
+
11
+ ## Usage
12
+
13
+
14
+ ```js
15
+
16
+ ```
17
+
18
+
19
+ ## Contributing
20
+
21
+ See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
22
+
23
+ ## License
24
+
25
+ MIT
26
+
27
+ ---
28
+
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.sizes = exports.ActionIcon = void 0;
7
+ var _react = require("react");
8
+ var _reactNative = require("react-native");
9
+ var _createStyles = require("../../theme/create-styles.js");
10
+ var _index = require("../BoxView/index.js");
11
+ var _index2 = require("../../theme/index.js");
12
+ var _jsxRuntime = require("react/jsx-runtime");
13
+ const ActionIcon = ({
14
+ onPress = () => {},
15
+ children,
16
+ icon,
17
+ minWidth = 100,
18
+ style,
19
+ size = 'md'
20
+ }) => {
21
+ const {
22
+ styles
23
+ } = useStyles({
24
+ minWidth,
25
+ size
26
+ });
27
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
28
+ onPress: typeof onPress === 'function' ? onPress : () => {},
29
+ style: [style, styles.container],
30
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
31
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
32
+ style: styles.containerButton,
33
+ children: icon
34
+ }), /*#__PURE__*/(0, _react.isValidElement)(children) ? children : /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {})]
35
+ })
36
+ });
37
+ };
38
+ exports.ActionIcon = ActionIcon;
39
+ const sizes = exports.sizes = {
40
+ xs: 18,
41
+ sm: 22,
42
+ md: 28,
43
+ lg: 34,
44
+ xl: 44
45
+ };
46
+ const useStyles = (0, _createStyles.createStyles)((theme, {
47
+ minWidth = 100,
48
+ size = 40
49
+ }) => {
50
+ return {
51
+ container: {
52
+ alignItems: 'center',
53
+ minWidth: minWidth
54
+ },
55
+ containerButton: {
56
+ backgroundColor: theme.currentMode === 'dark' ? theme.primaryBgColor : theme.secondaryBgColor,
57
+ borderRadius: 50,
58
+ alignItems: 'center',
59
+ justifyContent: 'center',
60
+ height: (0, _index2.getSize)({
61
+ size: size,
62
+ sizes
63
+ }),
64
+ width: (0, _index2.getSize)({
65
+ size: size,
66
+ sizes
67
+ })
68
+ }
69
+ };
70
+ });
71
+ //# sourceMappingURL=ActionIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNative","_createStyles","_index","_index2","_jsxRuntime","ActionIcon","onPress","children","icon","minWidth","style","size","styles","useStyles","jsx","TouchableOpacity","container","jsxs","Fragment","BoxView","containerButton","isValidElement","exports","sizes","xs","sm","md","lg","xl","createStyles","theme","alignItems","backgroundColor","currentMode","primaryBgColor","secondaryBgColor","borderRadius","justifyContent","height","getSize","width"],"sour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,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE;AACN,CAAC;AAED,MAAMf,SAAS,GAAG,IAAAgB,0BAAY,EAAC,CAACC,KAAK,EAAE;EAAErB,QAAQ,GAAG,GAAG;EAAEE,IAAI,GAAG;AAAG,CAAC,KAAK;EACvE,OAAO;IACLK,SAAS,EAAE;MACTe,UAAU,EAAE,QAAQ;MACpBtB,QAAQ,EAAEA;IACZ,CAAC;IACDW,eAAe,EAAE;MACfY,eAAe,EACbF,KAAK,CAACG,WAAW,KAAK,MAAM,GACxBH,KAAK,CAACI,cAAc,GACpBJ,KAAK,CAACK,gBAAgB;MAC5BC,YAAY,EAAE,EAAE;MAChBL,UAAU,EAAE,QAAQ;MACpBM,cAAc,EAAE,QAAQ;MACxBC,MAAM,EAAE,IAAAC,eAAO,EAAC;QAAE5B,IAAI,EAAEA,IAAI;QAAEY;MAAM,CAAC,CAAC;MACtCiB,KAAK,EAAE,IAAAD,eAAO,EAAC;QAAE5B,IAAI,EAAEA,IAAI;QAAEY;MAAM,CAAC;IACtC;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "ActionIcon", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _ActionIcon.ActionIcon;
10
+ }
11
+ });
12
+ var _ActionIcon = require("./ActionIcon.js");
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_ActionIcon","require"],"sourceRoot":"../../../../src","sources":["components/ActionIcon/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA","ignoreList":[]}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.BoxView = void 0;
7
+ var _react = require("react");
8
+ var _reactNative = require("react-native");
9
+ var _jsxRuntime = require("react/jsx-runtime");
10
+ const BoxView = exports.BoxView = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
11
+ const {
12
+ style,
13
+ fullWidth,
14
+ fullHeight,
15
+ ...otherProps
16
+ } = props;
17
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
18
+ style: [style, {
19
+ ...(fullWidth ? {
20
+ width: '100%'
21
+ } : {}),
22
+ ...(fullHeight ? {
23
+ height: '100%'
24
+ } : {})
25
+ }],
26
+ ref: ref,
27
+ ...otherProps
28
+ });
29
+ });
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNative","_jsxRuntime","BoxView","exports","forwardRef","props","ref","style","fullWidth","fullHeight","otherProps","jsx","View","width","height"],"sourceRoot":"../../../../src","sources":["components/BoxView/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAAmD,IAAAE,WAAA,GAAAF,OAAA;AAa5C,MAAMG,OAAO,GAAAC,OAAA,CAAAD,OAAA,gBAAG,IAAAE,iBAAU,EAAC,CAACC,KAAgB,EAAEC,GAAQ,KAAK;EAChE,MAAM;IAAEC,KAAK;IAAEC,SAAS;IAAEC,UAAU;IAAE,GAAGC;EAAW,CAAC,GAAGL,KAAK;EAC7D,oBACE,IAAAJ,WAAA,CAAAU,GAAA,EAACX,YAAA,CAAAY,IAAW;IACVL,KAAK,EAAE,CACLA,KAAK,EACL;MACE,IAAIC,SAAS,GAAG;QAAEK,KAAK,EAAE;MAAO,CAAC,GAAG,CAAC,CAAC,CAAC;MACvC,IAAIJ,UAAU,GAAG;QAAEK,MAAM,EAAE;MAAO,CAAC,GAAG,CAAC,CAAC;IAC1C,CAAC,CACD;IACFR,GAAG,EAAEA,GAAI;IAAA,GACLI;EAAU,CACf,CAAC;AAEN,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Group = void 0;
7
+ var _index = require("../BoxView/index.js");
8
+ var _jsxRuntime = require("react/jsx-runtime");
9
+ const Group = ({
10
+ children,
11
+ position,
12
+ style,
13
+ alignCenter = true,
14
+ alignBottom = false,
15
+ noWrap = false,
16
+ spacing = 5,
17
+ ...rest
18
+ }) => {
19
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
20
+ style: {
21
+ gap: spacing,
22
+ flexDirection: 'row',
23
+ justifyContent: position === 'apart' ? 'space-between' : position === 'center' ? 'center' : position === 'right' ? 'flex-end' : 'flex-start',
24
+ flexWrap: noWrap ? 'nowrap' : 'wrap',
25
+ alignItems: alignCenter ? 'center' : alignBottom ? 'flex-end' : 'flex-start',
26
+ ...style
27
+ },
28
+ ...rest,
29
+ children: children
30
+ });
31
+ };
32
+ exports.Group = Group;
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_index","require","_jsxRuntime","Group","children","position","style","alignCenter","alignBottom","noWrap","spacing","rest","jsx","BoxView","gap","flexDirection","justifyContent","flexWrap","alignItems","exports"],"sourceRoot":"../../../../src","sources":["components/Group/index.tsx"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,OAAA;AAAqC,IAAAC,WAAA,GAAAD,OAAA;AAG9B,MAAME,KAAK,GAAGA,CAAC;EACpBC,QAAQ;EACRC,QAAQ;EACRC,KAAK;EACLC,WAAW,GAAG,IAAI;EAClBC,WAAW,GAAG,KAAK;EACnBC,MAAM,GAAG,KAAK;EACdC,OAAO,GAAG,CAAC;EACX,GAAGC;AAOL,CAAC,KAAyB;EACxB,oBACE,IAAAT,WAAA,CAAAU,GAAA,EAACZ,MAAA,CAAAa,OAAO;IACNP,KAAK,EAAE;MACLQ,GAAG,EAAEJ,OAAO;MACZK,aAAa,EAAE,KAAK;MACpBC,cAAc,EACZX,QAAQ,KAAK,OAAO,GAChB,eAAe,GACfA,QAAQ,KAAK,QAAQ,GACnB,QAAQ,GACRA,QAAQ,KAAK,OAAO,GAClB,UAAU,GACV,YAAY;MACtBY,QAAQ,EAAER,MAAM,GAAG,QAAQ,GAAG,MAAM;MACpCS,UAAU,EAAEX,WAAW,GACnB,QAAQ,GACRC,WAAW,GACT,UAAU,GACV,YAAY;MAClB,GAAIF;IACN,CAAE;IAAA,GACEK,IAAI;IAAAP,QAAA,EAEPA;EAAQ,CACF,CAAC;AAEd,CAAC;AAACe,OAAA,CAAAhB,KAAA,GAAAA,KAAA","ignoreList":[]}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Loader = Loader;
7
+ var _reactNative = require("react-native");
8
+ var _themeProvider = require("../../theme/theme-provider.js");
9
+ var _jsxRuntime = require("react/jsx-runtime");
10
+ // const sizes = {
11
+ // xs: 18,
12
+ // sm: 22,
13
+ // md: 36,
14
+ // lg: 44,
15
+ // xl: 58,
16
+ // };
17
+
18
+ const defaultProps = {
19
+ size: 'md'
20
+ };
21
+ function Loader(props) {
22
+ const {
23
+ size,
24
+ color,
25
+ variant,
26
+ ...others
27
+ } = (0, _themeProvider.useComponentDefaultProps)('Loader', defaultProps, props);
28
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator
29
+ // size={getSize({ size, sizes })}
30
+ // color={
31
+ // theme.fn.variant({
32
+ // variant: 'filled',
33
+ // primaryFallback: false,
34
+ // color: color || theme.primaryColor,
35
+ // }).background
36
+ // }
37
+ , {
38
+ ...others
39
+ });
40
+ }
41
+ Loader.displayName = '@mantine/core/Loader';
42
+ //# sourceMappingURL=Loader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_themeProvider","_jsxRuntime","defaultProps","size","Loader","props","color","variant","others","useComponentDefaultProps","jsx","ActivityIndicator","displayName"],"sourceRoot":"../../../../src","sources":["components/Loader/Loader.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAGA,IAAAC,cAAA,GAAAD,OAAA;AAAsE,IAAAE,WAAA,GAAAF,OAAA;AAEtE;AACA;AACA;AACA;AACA;AACA;AACA;;AAaA,MAAMG,YAAkC,GAAG;EACzCC,IAAI,EAAE;AACR,CAAC;AAEM,SAASC,MAAMA,CAACC,KAAkB,EAAE;EACzC,MAAM;IAAEF,IAAI;IAAEG,KAAK;IAAEC,OAAO;IAAE,GAAGC;EAAO,CAAC,GAAG,IAAAC,uCAAwB,EAClE,QAAQ,EACRP,YAAY,EACZG,KACF,CAAC;EACD,oBACE,IAAAJ,WAAA,CAAAS,GAAA,EAACZ,YAAA,CAAAa;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAAA;IAAA,GACIH;EAAM,CACX,CAAC;AAEN;AAEAJ,MAAM,CAACQ,WAAW,GAAG,sBAAsB","ignoreList":[]}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "Loader", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _Loader.Loader;
10
+ }
11
+ });
12
+ var _Loader = require("./Loader.js");
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_Loader","require"],"sourceRoot":"../../../../src","sources":["components/Loader/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA","ignoreList":[]}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Stack = void 0;
7
+ var _index = require("../BoxView/index.js");
8
+ var _jsxRuntime = require("react/jsx-runtime");
9
+ const Stack = ({
10
+ children,
11
+ position,
12
+ style,
13
+ spacing = 15,
14
+ ...rest
15
+ }) => {
16
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
17
+ style: {
18
+ gap: spacing,
19
+ flexDirection: 'column',
20
+ ...(position === 'center' ? {
21
+ alignItems: 'center'
22
+ } : {}),
23
+ ...style
24
+ },
25
+ ...rest,
26
+ children: children
27
+ });
28
+ };
29
+ exports.Stack = Stack;
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_index","require","_jsxRuntime","Stack","children","position","style","spacing","rest","jsx","BoxView","gap","flexDirection","alignItems","exports"],"sourceRoot":"../../../../src","sources":["components/Stack/index.tsx"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,OAAA;AAAqC,IAAAC,WAAA,GAAAD,OAAA;AAG9B,MAAME,KAAK,GAAGA,CAAC;EACpBC,QAAQ;EACRC,QAAQ;EACRC,KAAK;EACLC,OAAO,GAAG,EAAE;EACZ,GAAGC;AAIL,CAAC,KAAyB;EACxB,oBACE,IAAAN,WAAA,CAAAO,GAAA,EAACT,MAAA,CAAAU,OAAO;IACNJ,KAAK,EAAE;MACLK,GAAG,EAAEJ,OAAO;MACZK,aAAa,EAAE,QAAQ;MACvB,IAAIP,QAAQ,KAAK,QAAQ,GAAG;QAAEQ,UAAU,EAAE;MAAS,CAAC,GAAG,CAAC,CAAC,CAAC;MAC1D,GAAIP;IACN,CAAE;IAAA,GACEE,IAAI;IAAAJ,QAAA,EAEPA;EAAQ,CACF,CAAC;AAEd,CAAC;AAACU,OAAA,CAAAX,KAAA,GAAAA,KAAA","ignoreList":[]}
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Text = void 0;
7
+ var _themeProvider = require("../../theme/theme-provider.js");
8
+ var _lodashEs = require("lodash-es");
9
+ var _react = require("react");
10
+ var _reactNative = require("react-native");
11
+ var _jsxRuntime = require("react/jsx-runtime");
12
+ const propToColor = (color, colors, primaryShade) => {
13
+ const colorExistOnPalette = (0, _lodashEs.get)(colors, `${color}.${primaryShade}`, '');
14
+ if (colorExistOnPalette) {
15
+ return colorExistOnPalette;
16
+ }
17
+ return color;
18
+ };
19
+ const Text = exports.Text = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
20
+ const {
21
+ style,
22
+ color,
23
+ white,
24
+ size = 'md',
25
+ bold = false,
26
+ questrial = false,
27
+ semiBold = false,
28
+ fontSize,
29
+ ...otherProps
30
+ } = props;
31
+ const {
32
+ fontFamily,
33
+ fontFamilyBold,
34
+ fontFamilySemiBold,
35
+ colors,
36
+ primaryShade,
37
+ fontSizes,
38
+ light
39
+ } = (0, _themeProvider.useTheme)();
40
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
41
+ ref: ref,
42
+ style: [{
43
+ fontFamily: semiBold ? fontFamilySemiBold : bold ? fontFamilyBold : questrial ? 'Questrial' : fontFamily,
44
+ fontWeight: bold ? '900' : '300',
45
+ fontSize: fontSize ? fontSize : (0, _lodashEs.get)(fontSizes, size, 16),
46
+ color: white ? 'white' : color ? propToColor(color, colors, primaryShade) : light.text
47
+ }, style],
48
+ ...otherProps
49
+ });
50
+ });
51
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_themeProvider","require","_lodashEs","_react","_reactNative","_jsxRuntime","propToColor","color","colors","primaryShade","colorExistOnPalette","get","Text","exports","forwardRef","props","ref","style","white","size","bold","questrial","semiBold","fontSize","otherProps","fontFamily","fontFamilyBold","fontFamilySemiBold","fontSizes","light","useTheme","jsx","fontWeight","text"],"sourceRoot":"../../../../src","sources":["components/Text/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAAmD,IAAAI,WAAA,GAAAJ,OAAA;AAYnD,MAAMK,WAAW,GAAGA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O;EAAU,CACf,CAAC;AAEN,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.UnstyledButton = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _index = require("../BoxView/index.js");
9
+ var _UnstyledButtonStyles = _interopRequireDefault(require("./UnstyledButton.styles.js"));
10
+ var _reactNative = require("react-native");
11
+ var _themeProvider = require("../../theme/theme-provider.js");
12
+ var _index2 = require("../Text/index.js");
13
+ var _jsxRuntime = require("react/jsx-runtime");
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
16
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
17
+ const UnstyledButton = exports.UnstyledButton = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
18
+ const {
19
+ variant,
20
+ style,
21
+ children,
22
+ onPress,
23
+ ...others
24
+ } = (0, _themeProvider.useComponentDefaultProps)('UnstyledButton', {}, props);
25
+ const {
26
+ styles
27
+ } = (0, _UnstyledButtonStyles.default)({
28
+ variant
29
+ });
30
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
31
+ onPress: typeof onPress === 'function' ? onPress : () => {},
32
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
33
+ ref: ref,
34
+ style: [styles.root, style],
35
+ ...others,
36
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
37
+ children: children
38
+ })
39
+ })
40
+ });
41
+ });
42
+ //# sourceMappingURL=UnstyledButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_index","_UnstyledButtonStyles","_interopRequireDefault","_reactNative","_themeProvider","_index2","_jsxRuntime","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","UnstyledButton","exports","forwardRef","props","ref","variant","style","children","onPress","others","useComponentDefaultProps","styles","useStyles","jsx","TouchableOpacity","BoxView","root","Text"],"sourceRoot":"../../../../src","sources":["components/UnstyledButton/UnstyledButton.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,qBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,cAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AAA+B,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAG,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAT,wBAAAS,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,y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O,GAAG,MAAM,CAAC,CAAE;IAAAD,QAAA,eAE5D,IAAA5B,WAAA,CAAAkC,GAAA,EAACxC,MAAA,CAAA0C,OAAO;MAACX,GAAG,EAAEA,GAAI;MAACE,KAAK,EAAE,CAACK,MAAM,CAACK,IAAI,EAAEV,KAAK,CAAE;MAAA,GAAKG,MAAM;MAAAF,QAAA,eACxD,IAAA5B,WAAA,CAAAkC,GAAA,EAACnC,OAAA,CAAAuC,IAAI;QAAAV,QAAA,EAAEA;MAAQ,CAAO;IAAC,CAChB;EAAC,CACM,CAAC;AAEvB,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _index = require("../../theme/index.js");
8
+ var _default = exports.default = (0, _index.createStyles)((theme, {
9
+ variant
10
+ }) => ({
11
+ root: {
12
+ cursor: 'pointer',
13
+ border: 0,
14
+ padding: 0,
15
+ appearance: 'none',
16
+ fontSize: theme.fontSizes.md,
17
+ textAlign: 'left',
18
+ color: theme.light.text,
19
+ textDecoration: 'none',
20
+ boxSizing: 'border-box',
21
+ backgroundColor: variant === 'transparent' ? 'transparent' : theme.light.background
22
+ }
23
+ }));
24
+ //# sourceMappingURL=UnstyledButton.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_index","require","_default","exports","default","createStyles","theme","variant","root","cursor","border","padding","appearance","fontSize","fontSizes","md","textAlign","color","light","text","textDecoration","boxSizing","backgroundColor","background"],"sourceRoot":"../../../../src","sources":["components/UnstyledButton/UnstyledButton.styles.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAA2C,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAE5B,IAAAC,mBAAY,EAAC,CAACC,KAAK,EAAE;EAACC;AAAO,CAAC,MAAO;EAClDC,IAAI,EAAE;IACJC,MAAM,EAAE,SAAS;IACjBC,MAAM,EAAE,CAAC;IACTC,OAAO,EAAE,CAAC;IACVC,UAAU,EAAE,MAAM;IAClBC,QAAQ,EAAEP,KAAK,CAACQ,SAAS,CAACC,EAAE;IAC5BC,SAAS,EAAE,MAAM;IACjBC,KAAK,EAAEX,KAAK,CAACY,KAAK,CAACC,IAAI;IACvBC,cAAc,EAAE,MAAM;IACtBC,SAAS,EAAE,YAAY;IACvBC,eAAe,EAAEf,OAAO,KAAK,aAAa,GAAG,aAAa,GAAGD,KAAK,CAACY,KAAK,CAACK;EAC3E;AACF,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "UnstyledButton", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _UnstyledButton.UnstyledButton;
10
+ }
11
+ });
12
+ var _UnstyledButton = require("./UnstyledButton.js");
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_UnstyledButton","require"],"sourceRoot":"../../../../src","sources":["components/UnstyledButton/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA","ignoreList":[]}
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _index = require("./BoxView/index.js");
7
+ Object.keys(_index).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _index[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _index[key];
14
+ }
15
+ });
16
+ });
17
+ var _index2 = require("./Group/index.js");
18
+ Object.keys(_index2).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _index2[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _index2[key];
25
+ }
26
+ });
27
+ });
28
+ var _index3 = require("./Stack/index.js");
29
+ Object.keys(_index3).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _index3[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _index3[key];
36
+ }
37
+ });
38
+ });
39
+ var _index4 = require("./Text/index.js");
40
+ Object.keys(_index4).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _index4[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function () {
46
+ return _index4[key];
47
+ }
48
+ });
49
+ });
50
+ var _index5 = require("./UnstyledButton/index.js");
51
+ Object.keys(_index5).forEach(function (key) {
52
+ if (key === "default" || key === "__esModule") return;
53
+ if (key in exports && exports[key] === _index5[key]) return;
54
+ Object.defineProperty(exports, key, {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _index5[key];
58
+ }
59
+ });
60
+ });
61
+ var _index6 = require("./ActionIcon/index.js");
62
+ Object.keys(_index6).forEach(function (key) {
63
+ if (key === "default" || key === "__esModule") return;
64
+ if (key in exports && exports[key] === _index6[key]) return;
65
+ Object.defineProperty(exports, key, {
66
+ enumerable: true,
67
+ get: function () {
68
+ return _index6[key];
69
+ }
70
+ });
71
+ });
72
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_index","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_index2","_index3","_index4","_index5","_index6"],"sourceRoot":"../../../src","sources":["components/index.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,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AAAC,MAAA,CAAAC,IAAA,CAAAU,OAAA,EAAAT,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAQ,OAAA,CAAAR,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAI,OAAA,CAAAR,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,OAAA,GAAAb,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAW,OAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAS,OAAA,CAAAT,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAK,OAAA,CAAAT,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = useCachedResources;
7
+ var Font = _interopRequireWildcard(require("expo-font"));
8
+ var _react = require("react");
9
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
10
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
11
+ function useCachedResources() {
12
+ const [isLoadingComplete, setLoadingComplete] = (0, _react.useState)(false);
13
+
14
+ // Load any resources or data that we need prior to rendering the app
15
+ (0, _react.useEffect)(() => {
16
+ async function loadResourcesAndDataAsync() {
17
+ try {
18
+ // SplashScreen.preventAutoHideAsync()
19
+ // Load fonts
20
+ await Font.loadAsync({
21
+ Nunito: require('../fonts/Nunito-Regular.ttf'),
22
+ 'Nunito Bold': require('../fonts/Nunito-Bold.ttf'),
23
+ 'Nunito SemiBold': require('../fonts/Nunito-SemiBold.ttf')
24
+ });
25
+ } catch (e) {
26
+ // We might want to provide this error information to an error reporting service
27
+ // console.warn(e)
28
+ } finally {
29
+ setLoadingComplete(true);
30
+ }
31
+ }
32
+ loadResourcesAndDataAsync();
33
+ }, []);
34
+ return isLoadingComplete;
35
+ }
36
+ //# sourceMappingURL=useCachedResources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Font","_interopRequireWildcard","require","_react","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","useCachedResources","isLoadingComplete","setLoadingComplete","useState","useEffect","loadResourcesAndDataAsync","loadAsync","Nunito"],"sourceRoot":"../../../src","sources":["hooks/useCachedResources.ts"],"mappings":";;;;;;AAAA,IAAAA,IAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAA2C,SAAAE,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAJ,wBAAAI,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,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C,OAAOG,CAAC,EAAE;QACV;QACA;MAAA,CACD,SAAS;QACRqB,kBAAkB,CAAC,IAAI,CAAC;MAC1B;IACF;IAEAG,yBAAyB,CAAC,CAAC;EAC7B,CAAC,EAAE,EAAE,CAAC;EAEN,OAAOJ,iBAAiB;AAC1B","ignoreList":[]}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _index = require("./theme/index.js");
7
+ Object.keys(_index).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _index[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _index[key];
14
+ }
15
+ });
16
+ });
17
+ var _index2 = require("./components/index.js");
18
+ Object.keys(_index2).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _index2[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _index2[key];
25
+ }
26
+ });
27
+ });
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_index","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_index2"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,OAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,OAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,OAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,OAAA,CAAAL,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}