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
@@ -0,0 +1 @@
1
+ {"version":3,"names":["filterProps","props","Object","keys","reduce","acc","key","undefined"],"sourceRoot":"../../../src","sources":["theme/filter-props.ts"],"mappings":";;AAIA,OAAO,SAASA,WAAWA,CAAgCC,KAAQ,EAAE;EACnE,OAAOC,MAAM,CAACC,IAAI,CAACF,KAAK,CAAC,CAACG,MAAM,CAAoB,CAACC,GAAG,EAAEC,GAAY,KAAK;IACzE,IAAIL,KAAK,CAACK,GAAG,CAAC,KAAKC,SAAS,EAAE;MAC5BF,GAAG,CAACC,GAAG,CAAC,GAAGL,KAAK,CAACK,GAAG,CAAC;IACvB;IACA,OAAOD,GAAG;EACZ,CAAC,EAAE,CAAC,CAAsB,CAAC;AAC7B","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ import { fns } from "./fns/index.js";
4
+ export function attachFunctions(themeBase) {
5
+ return {
6
+ ...themeBase,
7
+ fn: {
8
+ radius: fns.radius(themeBase),
9
+ variant: fns.variant(themeBase),
10
+ themeColor: fns.themeColor(themeBase)
11
+ }
12
+ };
13
+ }
14
+ //# sourceMappingURL=attach-functions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["fns","attachFunctions","themeBase","fn","radius","variant","themeColor"],"sourceRoot":"../../../../src","sources":["theme/functions/attach-functions.ts"],"mappings":";;AAAA,SAASA,GAAG,QAAQ,gBAAO;AAE3B,OAAO,SAASC,eAAeA,CAACC,SAAc,EAAO;EACnD,OAAO;IACL,GAAGA,SAAS;IACZC,EAAE,EAAE;MACFC,MAAM,EAAEJ,GAAG,CAACI,MAAM,CAACF,SAAS,CAAC;MAC7BG,OAAO,EAAEL,GAAG,CAACK,OAAO,CAACH,SAAS,CAAC;MAC/BI,UAAU,EAAEN,GAAG,CAACM,UAAU,CAACJ,SAAS;IACtC;EACF,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ import { radius } from "./radius.js";
4
+ import { themeColor } from "./theme-color/theme-color.js";
5
+ import { variant } from "./variant.js";
6
+ export const fns = {
7
+ radius,
8
+ variant,
9
+ themeColor
10
+ };
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["radius","themeColor","variant","fns"],"sourceRoot":"../../../../../src","sources":["theme/functions/fns/index.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,aAAU;AACjC,SAASC,UAAU,QAAQ,8BAA2B;AACtD,SAASC,OAAO,QAAQ,cAAW;AAEnC,OAAO,MAAMC,GAAG,GAAG;EACjBH,MAAM;EACNE,OAAO;EACPD;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ export function radius(theme) {
4
+ return size => {
5
+ if (!size) {
6
+ return theme.defaultRadius;
7
+ }
8
+ const defaultRadius = typeof theme.defaultRadius === 'number' ? theme.defaultRadius : theme.radius[theme.defaultRadius] || theme.defaultRadius;
9
+ return theme.radius[size] || size || defaultRadius;
10
+ };
11
+ }
12
+ //# sourceMappingURL=radius.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["radius","theme","size","defaultRadius"],"sourceRoot":"../../../../../src","sources":["theme/functions/fns/radius.ts"],"mappings":";;AAEA,OAAO,SAASA,MAAMA,CAACC,KAAU,EAAE;EACjC,OAAQC,IAAwB,IAAsB;IACpD,IAAI,CAACA,IAAI,EAAE;MACT,OAAOD,KAAK,CAACE,aAAa;IAC5B;IAEA,MAAMA,aAAa,GACjB,OAAOF,KAAK,CAACE,aAAa,KAAK,QAAQ,GACnCF,KAAK,CAACE,aAAa,GACnBF,KAAK,CAACD,MAAM,CAACC,KAAK,CAACE,aAAa,CAAC,IAAIF,KAAK,CAACE,aAAa;IAE9D,OAAOF,KAAK,CAACD,MAAM,CAACE,IAAI,CAAC,IAAIA,IAAI,IAAIC,aAAa;EACpD,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ export function themeColor(_theme) {
4
+ return _theme => {
5
+ return {};
6
+ };
7
+ }
8
+ //# sourceMappingURL=theme-color.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["themeColor","_theme"],"sourceRoot":"../../../../../../src","sources":["theme/functions/fns/theme-color/theme-color.ts"],"mappings":";;AACA,OAAO,SAASA,UAAUA,CAACC,MAAW,EAAE;EACtC,OAAQA,MAAW,IAAK;IACtB,OAAO,CAAC,CAAC;EACX,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ export const variant = _theme => _variant => {
4
+ return {};
5
+ };
6
+ //# sourceMappingURL=variant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["variant","_theme","_variant"],"sourceRoot":"../../../../../src","sources":["theme/functions/fns/variant.ts"],"mappings":";;AAAA,OAAO,MAAMA,OAAO,GAAIC,MAAW,IAAMC,QAAgB,IAAK;EAC5D,OAAO,CAAC,CAAC;AACX,CAAC","ignoreList":[]}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ import { DEFAULT_COLORS, DEFAULT_THEME } from "./default-theme.js";
4
+ export const generateTheme = theme => {
5
+ const {
6
+ primaryShade = 7,
7
+ other = {}
8
+ } = theme || {};
9
+ return {
10
+ ...DEFAULT_THEME,
11
+ primaryShade: primaryShade,
12
+ other: other,
13
+ fontFamily: 'Nunito',
14
+ fontFamilyBold: 'Nunito Bold',
15
+ fontFamilySemiBold: 'Nunito SemiBold',
16
+ fontFamilyInput: 'Nunito',
17
+ primaryColor: 'blue',
18
+ secondaryColor: 'cyan',
19
+ headings: {
20
+ fontFamily: 'Nunito'
21
+ },
22
+ colors: DEFAULT_COLORS
23
+ };
24
+ };
25
+ //# sourceMappingURL=generate-theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["DEFAULT_COLORS","DEFAULT_THEME","generateTheme","theme","primaryShade","other","fontFamily","fontFamilyBold","fontFamilySemiBold","fontFamilyInput","primaryColor","secondaryColor","headings","colors"],"sourceRoot":"../../../src","sources":["theme/generate-theme.ts"],"mappings":";;AAAA,SAASA,cAAc,EAAEC,aAAa,QAAQ,oBAAiB;AAE/D,OAAO,MAAMC,aAAa,GAAIC,KAAuB,IAAa;EAChE,MAAM;IAAEC,YAAY,GAAG,CAAC;IAAEC,KAAK,GAAG,CAAC;EAAE,CAAC,GAAGF,KAAK,IAAI,CAAC,CAAC;EACpD,OAAO;IACL,GAAGF,aAAa;IAChBG,YAAY,EAAEA,YAAY;IAC1BC,KAAK,EAAEA,KAAK;IACZC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,aAAa;IAC7BC,kBAAkB,EAAE,iBAAiB;IACrCC,eAAe,EAAE,QAAQ;IACzBC,YAAY,EAAE,MAAM;IACpBC,cAAc,EAAE,MAAM;IACtBC,QAAQ,EAAE;MACRN,UAAU,EAAE;IACd,CAAC;IACDO,MAAM,EAAEb;EACV,CAAC;AACH,CAAC","ignoreList":[]}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ export function getSize({
4
+ size,
5
+ sizes
6
+ }) {
7
+ if (size in sizes) {
8
+ return sizes[size];
9
+ }
10
+ return size || sizes.md;
11
+ }
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getSize","size","sizes","md"],"sourceRoot":"../../../../src","sources":["theme/get-size/index.ts"],"mappings":";;AAEA,OAAO,SAASA,OAAOA,CAIrB;EACAC,IAAI;EACJC;AAIF,CAAC,EAAwE;EACvE,IAAID,IAAI,IAAIC,KAAK,EAAE;IACjB,OAAOA,KAAK,CAACD,IAAI,CAAQ;EAC3B;EACA,OAAQA,IAAI,IAAYC,KAAK,CAACC,EAAE;AAClC","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ export { ThemeProvider, useTheme, Theme } from "./theme-provider.js";
4
+ export { createStyles } from "./create-styles.js";
5
+ export { filterProps } from "./filter-props.js";
6
+ export { getSize } from "./get-size/index.js";
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ThemeProvider","useTheme","Theme","createStyles","filterProps","getSize"],"sourceRoot":"../../../src","sources":["theme/index.tsx"],"mappings":";;AAAA,SAASA,aAAa,EAAEC,QAAQ,EAAEC,KAAK,QAAQ,qBAAkB;AACjE,SAASC,YAAY,QAAQ,oBAAiB;AAC9C,SAASC,WAAW,QAAQ,mBAAgB;AAC5C,SAASC,OAAO,QAAQ,qBAAY","ignoreList":[]}
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+
3
+ import { get } from 'lodash-es';
4
+ import React, { createContext, useContext, useEffect, useMemo, useState } from 'react';
5
+ import { ActivityIndicator, Appearance, Platform } from 'react-native';
6
+ import { Layout } from "./constants.js";
7
+ import { generateTheme } from "./generate-theme.js";
8
+ import { filterProps } from "./filter-props.js";
9
+ import useCachedResources from "../hooks/useCachedResources.js";
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ export const ThemeContext = /*#__PURE__*/createContext(null);
12
+ export const ThemeProvider = ({
13
+ children,
14
+ theme,
15
+ forceMode
16
+ }) => {
17
+ const {
18
+ colors,
19
+ primaryShade,
20
+ primaryColor,
21
+ secondaryColor
22
+ } = theme;
23
+ const systemDarkMode = Appearance.getColorScheme();
24
+ const [currentMode, setCurrentMode] = useState(forceMode || systemDarkMode || 'light');
25
+ const toggleMode = () => {
26
+ setCurrentMode(currentMode === 'light' ? 'dark' : 'light');
27
+ };
28
+ const forceModeDevice = mode => {
29
+ try {
30
+ Appearance.setColorScheme(mode);
31
+ } catch (e) {
32
+ console.log('failed set scheme');
33
+ }
34
+ };
35
+ useEffect(() => {
36
+ forceModeDevice(currentMode);
37
+ }, [currentMode]);
38
+ const memoValue = useMemo(() => {
39
+ const darkTheme = {
40
+ light: theme.dark,
41
+ dark: theme.light
42
+ };
43
+ return {
44
+ ...theme,
45
+ primaryTextColor: get(colors, `${primaryColor}.${primaryShade}`, 'black'),
46
+ primaryBgColor: get(colors, `${primaryColor}.${primaryShade}`),
47
+ secondaryBgColor: get(colors, `${secondaryColor}.0`),
48
+ ...(currentMode === 'dark' ? darkTheme : {}),
49
+ window: Layout.window,
50
+ isSmallDevice: Layout.isSmallDevice,
51
+ screen: Layout.screen,
52
+ bottomNavBarHeight: Layout.bottomNavBarHeight,
53
+ isIOS: Platform.OS === 'ios',
54
+ OSVersion: Platform.Version ? parseInt(Platform.Version, 10) : 0,
55
+ currentMode,
56
+ toggleMode,
57
+ setCurrentMode
58
+ };
59
+ }, [currentMode, theme]);
60
+ return /*#__PURE__*/_jsx(ThemeContext.Provider, {
61
+ value: memoValue,
62
+ children: children
63
+ });
64
+ };
65
+ export const useTheme = () => useContext(ThemeContext);
66
+ export const Theme = ({
67
+ children,
68
+ theme: themeOverwrite,
69
+ forceMode
70
+ }) => {
71
+ const loaded = useCachedResources();
72
+ const theme = useMemo(() => {
73
+ return generateTheme(themeOverwrite);
74
+ }, [themeOverwrite]);
75
+ if (!loaded) {
76
+ return /*#__PURE__*/_jsx(ActivityIndicator, {});
77
+ }
78
+ return /*#__PURE__*/_jsx(ThemeProvider, {
79
+ theme: theme,
80
+ forceMode: forceMode,
81
+ children: children
82
+ });
83
+ };
84
+ export function useComponentDefaultProps(component, defaultProps, props) {
85
+ const theme = useTheme();
86
+ const contextPropsPayload = theme.components[component]?.defaultProps;
87
+ const contextProps = typeof contextPropsPayload === 'function' ? contextPropsPayload(theme) : contextPropsPayload;
88
+ return {
89
+ ...defaultProps,
90
+ ...contextProps,
91
+ ...filterProps(props)
92
+ };
93
+ }
94
+ //# sourceMappingURL=theme-provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["get","React","createContext","useContext","useEffect","useMemo","useState","ActivityIndicator","Appearance","Platform","Layout","generateTheme","filterProps","useCachedResources","jsx","_jsx","ThemeContext","ThemeProvider","children","theme","forceMode","colors","primaryShade","primaryColor","secondaryColor","systemDarkMode","getColorScheme","currentMode","setCurrentMode","toggleMode","forceModeDevice","mode","setColorScheme","e","console","log","memoValue","darkTheme","light","dark","primaryTextColor","primaryBgColor","secondaryBgColor","window","isSmallDevice","screen","bottomNavBarHeight","isIOS","OS","OSVersion","Version","parseInt","Provider","value","useTheme","Theme","themeOverwrite","loaded","useComponentDefaultProps","component","defaultProps","props","contextPropsPayload","components","contextProps"],"sourceRoot":"../../../src","sources":["theme/theme-provider.tsx"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=theme.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["theme/theme.d.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=ColorScheme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["theme/types/ColorScheme.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=DefaultProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["theme/types/DefaultProps.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=MantineColor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["theme/types/MantineColor.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=MantineSize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["theme/types/MantineSize.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=MantineStyleSystem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["theme/types/MantineStyleSystem.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=Tuple.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["theme/types/Tuple.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=Variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["theme/types/Variants.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["theme/types/index.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}
@@ -0,0 +1,17 @@
1
+ export type ActionIconProps = {
2
+ onPress?: (payload: any) => void;
3
+ children?: React.ReactNode;
4
+ icon: React.ReactNode;
5
+ minWidth?: number;
6
+ style?: any;
7
+ size: any;
8
+ };
9
+ export declare const ActionIcon: ({ onPress, children, icon, minWidth, style, size, }: ActionIconProps) => React.ReactElement;
10
+ export declare const sizes: {
11
+ xs: number;
12
+ sm: number;
13
+ md: number;
14
+ lg: number;
15
+ xl: number;
16
+ };
17
+ //# sourceMappingURL=ActionIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionIcon.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ActionIcon/ActionIcon.tsx"],"names":[],"mappings":"AAMA,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,IAAI,EAAE,GAAG,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,UAAU,wDAOpB,eAAe,KAAG,KAAK,CAAC,YAa1B,CAAC;AAEF,eAAO,MAAM,KAAK;;;;;;CAMjB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { ActionIcon } from './ActionIcon';
2
+ export type { ActionIconProps } from './ActionIcon';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ActionIcon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { View as DefaultView } from 'react-native';
2
+ export type CustomViewStyle = {
3
+ pointerEvents?: 'auto' | 'none' | 'box-none' | 'box-only';
4
+ };
5
+ export type ViewProps = DefaultView['props'] & {
6
+ fullWidth?: boolean;
7
+ fullHeight?: boolean;
8
+ children?: React.ReactNode;
9
+ style?: CustomViewStyle;
10
+ };
11
+ export declare const BoxView: import("react").ForwardRefExoticComponent<Readonly<import("react-native").ViewProps> & {
12
+ fullWidth?: boolean;
13
+ fullHeight?: boolean;
14
+ children?: React.ReactNode;
15
+ style?: CustomViewStyle;
16
+ } & import("react").RefAttributes<unknown>>;
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/BoxView/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,MAAM,eAAe,GAAG;IAC5B,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,CAAC;CAC3D,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,WAAW,CAAC,OAAO,CAAC,GAAG;IAC7C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,OAAO;gBANN,OAAO;iBACN,OAAO;eACT,KAAK,CAAC,SAAS;YAClB,eAAe;2CAkBvB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { ViewProps } from '../BoxView';
2
+ export declare const Group: ({ children, position, style, alignCenter, alignBottom, noWrap, spacing, ...rest }: ViewProps & {
3
+ position?: string;
4
+ alignCenter?: boolean;
5
+ alignBottom?: boolean;
6
+ noWrap?: boolean;
7
+ spacing?: number;
8
+ }) => React.ReactElement;
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Group/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,eAAO,MAAM,KAAK,sFASf,SAAS,GAAG;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,KAAG,KAAK,CAAC,YA2BT,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { MantineNumberSize, MantineColor } from '../../theme/types';
2
+ export interface LoaderProps {
3
+ /** Defines width of loader */
4
+ size?: MantineNumberSize;
5
+ /** Loader color from theme */
6
+ color?: MantineColor;
7
+ /** Loader appearance */
8
+ variant?: any;
9
+ }
10
+ export declare function Loader(props: LoaderProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare namespace Loader {
12
+ var displayName: string;
13
+ }
14
+ //# sourceMappingURL=Loader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Loader/Loader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAYzE,MAAM,WAAW,WAAW;IAC1B,8BAA8B;IAC9B,IAAI,CAAC,EAAE,iBAAiB,CAAC;IAEzB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,YAAY,CAAC;IAErB,wBAAwB;IACxB,OAAO,CAAC,EAAE,GAAG,CAAC;CACf;AAMD,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,2CAmBxC;yBAnBe,MAAM"}
@@ -0,0 +1,3 @@
1
+ export { Loader } from './Loader';
2
+ export type { LoaderProps } from './Loader';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Loader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { ViewProps } from '../BoxView';
2
+ export declare const Stack: ({ children, position, style, spacing, ...rest }: ViewProps & {
3
+ position?: string;
4
+ spacing?: number;
5
+ }) => React.ReactElement;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Stack/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,eAAO,MAAM,KAAK,oDAMf,SAAS,GAAG;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,KAAG,KAAK,CAAC,YAcT,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { Text as DefaultText } from 'react-native';
2
+ export type TextProps = DefaultText['props'] & {
3
+ size?: string;
4
+ bold?: boolean;
5
+ questrial?: boolean;
6
+ semiBold?: boolean;
7
+ fontSize?: number;
8
+ color?: string;
9
+ white?: boolean;
10
+ };
11
+ export declare const Text: import("react").ForwardRefExoticComponent<Readonly<import("react-native").TextProps> & {
12
+ size?: string;
13
+ bold?: boolean;
14
+ questrial?: boolean;
15
+ semiBold?: boolean;
16
+ fontSize?: number;
17
+ color?: string;
18
+ white?: boolean;
19
+ } & import("react").RefAttributes<unknown>>;
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Text/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,MAAM,SAAS,GAAG,WAAW,CAAC,OAAO,CAAC,GAAG;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAkBF,eAAO,MAAM,IAAI;WAzBR,MAAM;WACN,OAAO;gBACF,OAAO;eACR,OAAO;eACP,MAAM;YACT,MAAM;YACN,OAAO;2CAmEf,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export interface UnstyledButtonProps {
3
+ variant?: string;
4
+ children?: React.ReactNode;
5
+ onPress?: (payload: any) => void;
6
+ }
7
+ export declare const UnstyledButton: React.ForwardRefExoticComponent<UnstyledButtonProps & {
8
+ style?: any;
9
+ } & React.RefAttributes<any>>;
10
+ //# sourceMappingURL=UnstyledButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnstyledButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/UnstyledButton/UnstyledButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;CAClC;AAED,eAAO,MAAM,cAAc;YAEO,GAAG;6BAkBnC,CAAC"}
@@ -0,0 +1,9 @@
1
+ declare const _default: (params?: any) => {
2
+ styles: {
3
+ root: import("react-native").ViewStyle | import("react-native").TextStyle | import("react-native").ImageStyle;
4
+ };
5
+ theme: import("../../theme/default-theme").TTheme;
6
+ sx: (...args: any) => any;
7
+ };
8
+ export default _default;
9
+ //# sourceMappingURL=UnstyledButton.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnstyledButton.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/UnstyledButton/UnstyledButton.styles.ts"],"names":[],"mappings":";;;;;;;AAEA,wBAaI"}
@@ -0,0 +1,3 @@
1
+ export { UnstyledButton } from './UnstyledButton';
2
+ export type { UnstyledButtonProps } from './UnstyledButton';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/UnstyledButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,7 @@
1
+ export * from './BoxView';
2
+ export * from './Group';
3
+ export * from './Stack';
4
+ export * from './Text';
5
+ export * from './UnstyledButton';
6
+ export * from './ActionIcon';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/index.tsx"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC"}
@@ -0,0 +1,2 @@
1
+ export default function useCachedResources(): boolean;
2
+ //# sourceMappingURL=useCachedResources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCachedResources.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useCachedResources.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,kBAAkB,IAAI,OAAO,CA0BpD"}
@@ -0,0 +1,5 @@
1
+ export * from './theme';
2
+ export * from './components';
3
+ export type * from './theme/theme';
4
+ export type * from './theme/types';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,mBAAmB,eAAe,CAAC;AACnC,mBAAmB,eAAe,CAAC"}
@@ -0,0 +1,13 @@
1
+ export declare const Layout: {
2
+ window: {
3
+ width: number;
4
+ height: number;
5
+ };
6
+ screen: {
7
+ width: number;
8
+ height: number;
9
+ };
10
+ bottomNavBarHeight: number;
11
+ isSmallDevice: boolean;
12
+ };
13
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/theme/constants.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,MAAM;;;;;;;;;;;CAWlB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { ImageStyle, TextStyle, ViewStyle } from 'react-native';
2
+ import type { TTheme } from './default-theme';
3
+ type NamedStyles<T> = {
4
+ [P in keyof T]: ViewStyle | TextStyle | ImageStyle;
5
+ };
6
+ export declare function createStyles<T = any>(input: (theme: TTheme, params: any) => NamedStyles<T>): (params?: any) => {
7
+ styles: NamedStyles<T>;
8
+ theme: TTheme;
9
+ sx: (...args: any) => any;
10
+ };
11
+ export {};
12
+ //# sourceMappingURL=create-styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-styles.d.ts","sourceRoot":"","sources":["../../../../../src/theme/create-styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMrE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE9C,KAAK,WAAW,CAAC,CAAC,IAAI;KACnB,CAAC,IAAI,MAAM,CAAC,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU;CACnD,CAAC;AAEF,wBAAgB,YAAY,CAAC,CAAC,GAAG,GAAG,EAClC,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,WAAW,CAAC,CAAC,CAAC,aAGzB,GAAG;;;kBAGR,GAAG;EAW3B"}