react-native-mantine 0.13.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (511) hide show
  1. package/README.md +138 -0
  2. package/lib/commonjs/components/ActionIcon/ActionIcon.js +1 -1
  3. package/lib/commonjs/components/ActionIcon/ActionIcon.js.map +1 -1
  4. package/lib/commonjs/components/Anchor/index.js +3 -4
  5. package/lib/commonjs/components/Anchor/index.js.map +1 -1
  6. package/lib/commonjs/components/Avatar/index.js +1 -2
  7. package/lib/commonjs/components/Avatar/index.js.map +1 -1
  8. package/lib/commonjs/components/Badge/index.js +54 -24
  9. package/lib/commonjs/components/Badge/index.js.map +1 -1
  10. package/lib/commonjs/components/Blockquote/index.js +4 -5
  11. package/lib/commonjs/components/Blockquote/index.js.map +1 -1
  12. package/lib/commonjs/components/Button/index.js +7 -1
  13. package/lib/commonjs/components/Button/index.js.map +1 -1
  14. package/lib/commonjs/components/Center/index.js.map +1 -1
  15. package/lib/commonjs/components/Checkbox/index.js +4 -5
  16. package/lib/commonjs/components/Checkbox/index.js.map +1 -1
  17. package/lib/commonjs/components/Chip/index.js +40 -21
  18. package/lib/commonjs/components/Chip/index.js.map +1 -1
  19. package/lib/commonjs/components/Code/index.js +6 -4
  20. package/lib/commonjs/components/Code/index.js.map +1 -1
  21. package/lib/commonjs/components/Grid/index.js +18 -13
  22. package/lib/commonjs/components/Grid/index.js.map +1 -1
  23. package/lib/commonjs/components/Highlight/index.js +1 -1
  24. package/lib/commonjs/components/Highlight/index.js.map +1 -1
  25. package/lib/commonjs/components/Indicator/index.js +2 -3
  26. package/lib/commonjs/components/Indicator/index.js.map +1 -1
  27. package/lib/commonjs/components/LinearGradient/PlatformLinearGradient.js +9 -9
  28. package/lib/commonjs/components/LinearGradient/PlatformLinearGradient.js.map +1 -1
  29. package/lib/commonjs/components/Menu/index.js +4 -5
  30. package/lib/commonjs/components/Menu/index.js.map +1 -1
  31. package/lib/commonjs/components/MultiSelect/index.js +8 -9
  32. package/lib/commonjs/components/MultiSelect/index.js.map +1 -1
  33. package/lib/commonjs/components/NativeSelect/index.js +14 -14
  34. package/lib/commonjs/components/NativeSelect/index.js.map +1 -1
  35. package/lib/commonjs/components/NavLink/index.js +43 -20
  36. package/lib/commonjs/components/NavLink/index.js.map +1 -1
  37. package/lib/commonjs/components/Notification/index.js +5 -6
  38. package/lib/commonjs/components/Notification/index.js.map +1 -1
  39. package/lib/commonjs/components/Pagination/index.js +5 -6
  40. package/lib/commonjs/components/Pagination/index.js.map +1 -1
  41. package/lib/commonjs/components/PinInput/index.js +3 -3
  42. package/lib/commonjs/components/PinInput/index.js.map +1 -1
  43. package/lib/commonjs/components/Progress/index.js +3 -5
  44. package/lib/commonjs/components/Progress/index.js.map +1 -1
  45. package/lib/commonjs/components/Radio/index.js +4 -5
  46. package/lib/commonjs/components/Radio/index.js.map +1 -1
  47. package/lib/commonjs/components/Rating/index.js +2 -4
  48. package/lib/commonjs/components/Rating/index.js.map +1 -1
  49. package/lib/commonjs/components/RingProgress/index.js +3 -4
  50. package/lib/commonjs/components/RingProgress/index.js.map +1 -1
  51. package/lib/commonjs/components/Select/index.js +7 -8
  52. package/lib/commonjs/components/Select/index.js.map +1 -1
  53. package/lib/commonjs/components/SimpleGrid/index.js +4 -2
  54. package/lib/commonjs/components/SimpleGrid/index.js.map +1 -1
  55. package/lib/commonjs/components/Spoiler/index.js +1 -1
  56. package/lib/commonjs/components/Spoiler/index.js.map +1 -1
  57. package/lib/commonjs/components/Stepper/index.js +8 -6
  58. package/lib/commonjs/components/Stepper/index.js.map +1 -1
  59. package/lib/commonjs/components/Switch/index.js +4 -5
  60. package/lib/commonjs/components/Switch/index.js.map +1 -1
  61. package/lib/commonjs/components/Text/index.js +78 -17
  62. package/lib/commonjs/components/Text/index.js.map +1 -1
  63. package/lib/commonjs/components/ThemeIcon/index.js +40 -19
  64. package/lib/commonjs/components/ThemeIcon/index.js.map +1 -1
  65. package/lib/commonjs/components/Timeline/index.js +6 -5
  66. package/lib/commonjs/components/Timeline/index.js.map +1 -1
  67. package/lib/commonjs/components/Title/index.js +5 -17
  68. package/lib/commonjs/components/Title/index.js.map +1 -1
  69. package/lib/commonjs/components/Tooltip/index.js +1 -2
  70. package/lib/commonjs/components/Tooltip/index.js.map +1 -1
  71. package/lib/commonjs/components/TransferList/index.js +9 -10
  72. package/lib/commonjs/components/TransferList/index.js.map +1 -1
  73. package/lib/commonjs/components/UnstyledButton/UnstyledButton.styles.js +2 -2
  74. package/lib/commonjs/components/UnstyledButton/UnstyledButton.styles.js.map +1 -1
  75. package/lib/commonjs/components/index.js +35 -46
  76. package/lib/commonjs/components/index.js.map +1 -1
  77. package/lib/commonjs/index.js +34 -0
  78. package/lib/commonjs/index.js.map +1 -1
  79. package/lib/commonjs/theme/create-theme.js +114 -25
  80. package/lib/commonjs/theme/create-theme.js.map +1 -1
  81. package/lib/commonjs/theme/default-colors.js +103 -0
  82. package/lib/commonjs/theme/default-colors.js.map +1 -0
  83. package/lib/commonjs/theme/default-theme.js +144 -128
  84. package/lib/commonjs/theme/default-theme.js.map +1 -1
  85. package/lib/commonjs/theme/functions/attach-functions.js +46 -14
  86. package/lib/commonjs/theme/functions/attach-functions.js.map +1 -1
  87. package/lib/commonjs/theme/functions/fns/breakpoints.js.map +1 -1
  88. package/lib/commonjs/theme/functions/fns/color-scheme-value.js +190 -0
  89. package/lib/commonjs/theme/functions/fns/color-scheme-value.js.map +1 -0
  90. package/lib/commonjs/theme/functions/fns/dimmed.js.map +1 -1
  91. package/lib/commonjs/theme/functions/fns/gradient/gradient.js +3 -3
  92. package/lib/commonjs/theme/functions/fns/gradient/gradient.js.map +1 -1
  93. package/lib/commonjs/theme/functions/fns/helpers.js +51 -3
  94. package/lib/commonjs/theme/functions/fns/helpers.js.map +1 -1
  95. package/lib/commonjs/theme/functions/fns/index.js +151 -6
  96. package/lib/commonjs/theme/functions/fns/index.js.map +1 -1
  97. package/lib/commonjs/theme/functions/fns/primary-shade.js +81 -2
  98. package/lib/commonjs/theme/functions/fns/primary-shade.js.map +1 -1
  99. package/lib/commonjs/theme/functions/fns/shadow.js.map +1 -1
  100. package/lib/commonjs/theme/functions/fns/size.js +2 -1
  101. package/lib/commonjs/theme/functions/fns/size.js.map +1 -1
  102. package/lib/commonjs/theme/functions/fns/theme-color/color-utils.js +196 -0
  103. package/lib/commonjs/theme/functions/fns/theme-color/color-utils.js.map +1 -0
  104. package/lib/commonjs/theme/functions/fns/theme-color/theme-color.js +92 -9
  105. package/lib/commonjs/theme/functions/fns/theme-color/theme-color.js.map +1 -1
  106. package/lib/commonjs/theme/functions/fns/variant.js +112 -17
  107. package/lib/commonjs/theme/functions/fns/variant.js.map +1 -1
  108. package/lib/commonjs/theme/functions/index.js +172 -0
  109. package/lib/commonjs/theme/functions/index.js.map +1 -0
  110. package/lib/commonjs/theme/index.js +116 -14
  111. package/lib/commonjs/theme/index.js.map +1 -1
  112. package/lib/commonjs/theme/theme-provider.js +1 -22
  113. package/lib/commonjs/theme/theme-provider.js.map +1 -1
  114. package/lib/commonjs/theme/types.js +6 -0
  115. package/lib/commonjs/theme/types.js.map +1 -0
  116. package/lib/commonjs/theme/utils/withTextWrapper.js +1 -2
  117. package/lib/commonjs/theme/utils/withTextWrapper.js.map +1 -1
  118. package/lib/module/components/ActionIcon/ActionIcon.js +1 -1
  119. package/lib/module/components/ActionIcon/ActionIcon.js.map +1 -1
  120. package/lib/module/components/Anchor/index.js +3 -4
  121. package/lib/module/components/Anchor/index.js.map +1 -1
  122. package/lib/module/components/Avatar/index.js +1 -2
  123. package/lib/module/components/Avatar/index.js.map +1 -1
  124. package/lib/module/components/Badge/index.js +54 -24
  125. package/lib/module/components/Badge/index.js.map +1 -1
  126. package/lib/module/components/Blockquote/index.js +4 -5
  127. package/lib/module/components/Blockquote/index.js.map +1 -1
  128. package/lib/module/components/Button/index.js +7 -1
  129. package/lib/module/components/Button/index.js.map +1 -1
  130. package/lib/module/components/Center/index.js.map +1 -1
  131. package/lib/module/components/Checkbox/index.js +4 -5
  132. package/lib/module/components/Checkbox/index.js.map +1 -1
  133. package/lib/module/components/Chip/index.js +40 -21
  134. package/lib/module/components/Chip/index.js.map +1 -1
  135. package/lib/module/components/Code/index.js +6 -4
  136. package/lib/module/components/Code/index.js.map +1 -1
  137. package/lib/module/components/Grid/index.js +18 -13
  138. package/lib/module/components/Grid/index.js.map +1 -1
  139. package/lib/module/components/Highlight/index.js +1 -1
  140. package/lib/module/components/Highlight/index.js.map +1 -1
  141. package/lib/module/components/Indicator/index.js +2 -3
  142. package/lib/module/components/Indicator/index.js.map +1 -1
  143. package/lib/module/components/LinearGradient/PlatformLinearGradient.js +9 -9
  144. package/lib/module/components/LinearGradient/PlatformLinearGradient.js.map +1 -1
  145. package/lib/module/components/Menu/index.js +4 -5
  146. package/lib/module/components/Menu/index.js.map +1 -1
  147. package/lib/module/components/MultiSelect/index.js +8 -9
  148. package/lib/module/components/MultiSelect/index.js.map +1 -1
  149. package/lib/module/components/NativeSelect/index.js +14 -14
  150. package/lib/module/components/NativeSelect/index.js.map +1 -1
  151. package/lib/module/components/NavLink/index.js +43 -20
  152. package/lib/module/components/NavLink/index.js.map +1 -1
  153. package/lib/module/components/Notification/index.js +5 -6
  154. package/lib/module/components/Notification/index.js.map +1 -1
  155. package/lib/module/components/Pagination/index.js +5 -6
  156. package/lib/module/components/Pagination/index.js.map +1 -1
  157. package/lib/module/components/PinInput/index.js +3 -3
  158. package/lib/module/components/PinInput/index.js.map +1 -1
  159. package/lib/module/components/Progress/index.js +3 -5
  160. package/lib/module/components/Progress/index.js.map +1 -1
  161. package/lib/module/components/Radio/index.js +4 -5
  162. package/lib/module/components/Radio/index.js.map +1 -1
  163. package/lib/module/components/Rating/index.js +2 -4
  164. package/lib/module/components/Rating/index.js.map +1 -1
  165. package/lib/module/components/RingProgress/index.js +3 -4
  166. package/lib/module/components/RingProgress/index.js.map +1 -1
  167. package/lib/module/components/Select/index.js +7 -8
  168. package/lib/module/components/Select/index.js.map +1 -1
  169. package/lib/module/components/SimpleGrid/index.js +4 -2
  170. package/lib/module/components/SimpleGrid/index.js.map +1 -1
  171. package/lib/module/components/Spoiler/index.js +1 -1
  172. package/lib/module/components/Spoiler/index.js.map +1 -1
  173. package/lib/module/components/Stepper/index.js +8 -6
  174. package/lib/module/components/Stepper/index.js.map +1 -1
  175. package/lib/module/components/Switch/index.js +4 -5
  176. package/lib/module/components/Switch/index.js.map +1 -1
  177. package/lib/module/components/Text/index.js +78 -17
  178. package/lib/module/components/Text/index.js.map +1 -1
  179. package/lib/module/components/ThemeIcon/index.js +40 -19
  180. package/lib/module/components/ThemeIcon/index.js.map +1 -1
  181. package/lib/module/components/Timeline/index.js +6 -5
  182. package/lib/module/components/Timeline/index.js.map +1 -1
  183. package/lib/module/components/Title/index.js +5 -17
  184. package/lib/module/components/Title/index.js.map +1 -1
  185. package/lib/module/components/Tooltip/index.js +1 -2
  186. package/lib/module/components/Tooltip/index.js.map +1 -1
  187. package/lib/module/components/TransferList/index.js +9 -10
  188. package/lib/module/components/TransferList/index.js.map +1 -1
  189. package/lib/module/components/UnstyledButton/UnstyledButton.styles.js +2 -2
  190. package/lib/module/components/UnstyledButton/UnstyledButton.styles.js.map +1 -1
  191. package/lib/module/components/index.js +0 -1
  192. package/lib/module/components/index.js.map +1 -1
  193. package/lib/module/index.js +1 -0
  194. package/lib/module/index.js.map +1 -1
  195. package/lib/module/theme/create-theme.js +114 -24
  196. package/lib/module/theme/create-theme.js.map +1 -1
  197. package/lib/module/theme/default-colors.js +99 -0
  198. package/lib/module/theme/default-colors.js.map +1 -0
  199. package/lib/module/theme/default-theme.js +143 -127
  200. package/lib/module/theme/default-theme.js.map +1 -1
  201. package/lib/module/theme/functions/attach-functions.js +47 -14
  202. package/lib/module/theme/functions/attach-functions.js.map +1 -1
  203. package/lib/module/theme/functions/fns/breakpoints.js.map +1 -1
  204. package/lib/module/theme/functions/fns/color-scheme-value.js +180 -0
  205. package/lib/module/theme/functions/fns/color-scheme-value.js.map +1 -0
  206. package/lib/module/theme/functions/fns/dimmed.js.map +1 -1
  207. package/lib/module/theme/functions/fns/gradient/gradient.js +2 -2
  208. package/lib/module/theme/functions/fns/gradient/gradient.js.map +1 -1
  209. package/lib/module/theme/functions/fns/helpers.js +48 -2
  210. package/lib/module/theme/functions/fns/helpers.js.map +1 -1
  211. package/lib/module/theme/functions/fns/index.js +35 -7
  212. package/lib/module/theme/functions/fns/index.js.map +1 -1
  213. package/lib/module/theme/functions/fns/primary-shade.js +78 -2
  214. package/lib/module/theme/functions/fns/primary-shade.js.map +1 -1
  215. package/lib/module/theme/functions/fns/shadow.js.map +1 -1
  216. package/lib/module/theme/functions/fns/size.js +2 -1
  217. package/lib/module/theme/functions/fns/size.js.map +1 -1
  218. package/lib/module/theme/functions/fns/theme-color/color-utils.js +189 -0
  219. package/lib/module/theme/functions/fns/theme-color/color-utils.js.map +1 -0
  220. package/lib/module/theme/functions/fns/theme-color/theme-color.js +91 -9
  221. package/lib/module/theme/functions/fns/theme-color/theme-color.js.map +1 -1
  222. package/lib/module/theme/functions/fns/variant.js +112 -17
  223. package/lib/module/theme/functions/fns/variant.js.map +1 -1
  224. package/lib/module/theme/functions/index.js +22 -0
  225. package/lib/module/theme/functions/index.js.map +1 -0
  226. package/lib/module/theme/index.js +16 -4
  227. package/lib/module/theme/index.js.map +1 -1
  228. package/lib/module/theme/theme-provider.js +1 -22
  229. package/lib/module/theme/theme-provider.js.map +1 -1
  230. package/lib/module/theme/types.js +4 -0
  231. package/lib/module/theme/types.js.map +1 -0
  232. package/lib/module/theme/utils/withTextWrapper.js +1 -2
  233. package/lib/module/theme/utils/withTextWrapper.js.map +1 -1
  234. package/lib/typescript/commonjs/src/components/Anchor/index.d.ts.map +1 -1
  235. package/lib/typescript/commonjs/src/components/Avatar/index.d.ts.map +1 -1
  236. package/lib/typescript/commonjs/src/components/Badge/index.d.ts.map +1 -1
  237. package/lib/typescript/commonjs/src/components/Blockquote/index.d.ts.map +1 -1
  238. package/lib/typescript/commonjs/src/components/Button/Button.styles.d.ts +8 -8
  239. package/lib/typescript/commonjs/src/components/Button/index.d.ts +1 -1
  240. package/lib/typescript/commonjs/src/components/Button/index.d.ts.map +1 -1
  241. package/lib/typescript/commonjs/src/components/Center/index.d.ts +1 -2
  242. package/lib/typescript/commonjs/src/components/Center/index.d.ts.map +1 -1
  243. package/lib/typescript/commonjs/src/components/Checkbox/index.d.ts.map +1 -1
  244. package/lib/typescript/commonjs/src/components/Chip/index.d.ts.map +1 -1
  245. package/lib/typescript/commonjs/src/components/Code/index.d.ts.map +1 -1
  246. package/lib/typescript/commonjs/src/components/ColorSwatch/index.d.ts +1 -1
  247. package/lib/typescript/commonjs/src/components/ColorSwatch/index.d.ts.map +1 -1
  248. package/lib/typescript/commonjs/src/components/Container/index.d.ts +2 -2
  249. package/lib/typescript/commonjs/src/components/Container/index.d.ts.map +1 -1
  250. package/lib/typescript/commonjs/src/components/Flex/index.d.ts +2 -2
  251. package/lib/typescript/commonjs/src/components/Flex/index.d.ts.map +1 -1
  252. package/lib/typescript/commonjs/src/components/Grid/index.d.ts.map +1 -1
  253. package/lib/typescript/commonjs/src/components/Highlight/index.d.ts.map +1 -1
  254. package/lib/typescript/commonjs/src/components/Indicator/index.d.ts.map +1 -1
  255. package/lib/typescript/commonjs/src/components/LinearGradient/PlatformLinearGradient.d.ts +1 -1
  256. package/lib/typescript/commonjs/src/components/Mark/index.d.ts +1 -1
  257. package/lib/typescript/commonjs/src/components/Mark/index.d.ts.map +1 -1
  258. package/lib/typescript/commonjs/src/components/Menu/index.d.ts.map +1 -1
  259. package/lib/typescript/commonjs/src/components/MultiSelect/index.d.ts.map +1 -1
  260. package/lib/typescript/commonjs/src/components/NativeSelect/index.d.ts.map +1 -1
  261. package/lib/typescript/commonjs/src/components/NavLink/index.d.ts.map +1 -1
  262. package/lib/typescript/commonjs/src/components/Notification/index.d.ts.map +1 -1
  263. package/lib/typescript/commonjs/src/components/Pagination/index.d.ts.map +1 -1
  264. package/lib/typescript/commonjs/src/components/PinInput/index.d.ts.map +1 -1
  265. package/lib/typescript/commonjs/src/components/Progress/index.d.ts.map +1 -1
  266. package/lib/typescript/commonjs/src/components/Radio/index.d.ts.map +1 -1
  267. package/lib/typescript/commonjs/src/components/Rating/index.d.ts.map +1 -1
  268. package/lib/typescript/commonjs/src/components/RingProgress/index.d.ts.map +1 -1
  269. package/lib/typescript/commonjs/src/components/Select/index.d.ts.map +1 -1
  270. package/lib/typescript/commonjs/src/components/SimpleGrid/index.d.ts.map +1 -1
  271. package/lib/typescript/commonjs/src/components/Space/index.d.ts +2 -2
  272. package/lib/typescript/commonjs/src/components/Space/index.d.ts.map +1 -1
  273. package/lib/typescript/commonjs/src/components/Switch/index.d.ts.map +1 -1
  274. package/lib/typescript/commonjs/src/components/Text/index.d.ts +54 -7
  275. package/lib/typescript/commonjs/src/components/Text/index.d.ts.map +1 -1
  276. package/lib/typescript/commonjs/src/components/ThemeIcon/index.d.ts.map +1 -1
  277. package/lib/typescript/commonjs/src/components/Timeline/index.d.ts.map +1 -1
  278. package/lib/typescript/commonjs/src/components/Title/index.d.ts +1 -0
  279. package/lib/typescript/commonjs/src/components/Title/index.d.ts.map +1 -1
  280. package/lib/typescript/commonjs/src/components/Tooltip/index.d.ts.map +1 -1
  281. package/lib/typescript/commonjs/src/components/TransferList/index.d.ts.map +1 -1
  282. package/lib/typescript/commonjs/src/components/UnstyledButton/UnstyledButton.styles.d.ts +2 -2
  283. package/lib/typescript/commonjs/src/components/UnstyledButton/UnstyledButton.styles.d.ts.map +1 -1
  284. package/lib/typescript/commonjs/src/components/index.d.ts +0 -1
  285. package/lib/typescript/commonjs/src/components/index.d.ts.map +1 -1
  286. package/lib/typescript/commonjs/src/index.d.ts +1 -1
  287. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  288. package/lib/typescript/commonjs/src/theme/create-styles.d.ts +1 -1
  289. package/lib/typescript/commonjs/src/theme/create-styles.d.ts.map +1 -1
  290. package/lib/typescript/commonjs/src/theme/create-theme.d.ts +68 -2
  291. package/lib/typescript/commonjs/src/theme/create-theme.d.ts.map +1 -1
  292. package/lib/typescript/commonjs/src/theme/default-colors.d.ts +12 -0
  293. package/lib/typescript/commonjs/src/theme/default-colors.d.ts.map +1 -0
  294. package/lib/typescript/commonjs/src/theme/default-theme.d.ts +15 -108
  295. package/lib/typescript/commonjs/src/theme/default-theme.d.ts.map +1 -1
  296. package/lib/typescript/commonjs/src/theme/functions/attach-functions.d.ts +20 -1
  297. package/lib/typescript/commonjs/src/theme/functions/attach-functions.d.ts.map +1 -1
  298. package/lib/typescript/commonjs/src/theme/functions/fns/breakpoints.d.ts +3 -3
  299. package/lib/typescript/commonjs/src/theme/functions/fns/breakpoints.d.ts.map +1 -1
  300. package/lib/typescript/commonjs/src/theme/functions/fns/color-scheme-value.d.ts +100 -0
  301. package/lib/typescript/commonjs/src/theme/functions/fns/color-scheme-value.d.ts.map +1 -0
  302. package/lib/typescript/commonjs/src/theme/functions/fns/dimmed.d.ts +2 -2
  303. package/lib/typescript/commonjs/src/theme/functions/fns/dimmed.d.ts.map +1 -1
  304. package/lib/typescript/commonjs/src/theme/functions/fns/gradient/gradient.d.ts +4 -5
  305. package/lib/typescript/commonjs/src/theme/functions/fns/gradient/gradient.d.ts.map +1 -1
  306. package/lib/typescript/commonjs/src/theme/functions/fns/helpers.d.ts +36 -8
  307. package/lib/typescript/commonjs/src/theme/functions/fns/helpers.d.ts.map +1 -1
  308. package/lib/typescript/commonjs/src/theme/functions/fns/index.d.ts +40 -14
  309. package/lib/typescript/commonjs/src/theme/functions/fns/index.d.ts.map +1 -1
  310. package/lib/typescript/commonjs/src/theme/functions/fns/primary-shade.d.ts +53 -3
  311. package/lib/typescript/commonjs/src/theme/functions/fns/primary-shade.d.ts.map +1 -1
  312. package/lib/typescript/commonjs/src/theme/functions/fns/shadow.d.ts +1 -1
  313. package/lib/typescript/commonjs/src/theme/functions/fns/shadow.d.ts.map +1 -1
  314. package/lib/typescript/commonjs/src/theme/functions/fns/size.d.ts +2 -2
  315. package/lib/typescript/commonjs/src/theme/functions/fns/size.d.ts.map +1 -1
  316. package/lib/typescript/commonjs/src/theme/functions/fns/theme-color/color-utils.d.ts +50 -0
  317. package/lib/typescript/commonjs/src/theme/functions/fns/theme-color/color-utils.d.ts.map +1 -0
  318. package/lib/typescript/commonjs/src/theme/functions/fns/theme-color/theme-color.d.ts +51 -5
  319. package/lib/typescript/commonjs/src/theme/functions/fns/theme-color/theme-color.d.ts.map +1 -1
  320. package/lib/typescript/commonjs/src/theme/functions/fns/variant.d.ts +52 -19
  321. package/lib/typescript/commonjs/src/theme/functions/fns/variant.d.ts.map +1 -1
  322. package/lib/typescript/commonjs/src/theme/functions/index.d.ts +19 -0
  323. package/lib/typescript/commonjs/src/theme/functions/index.d.ts.map +1 -0
  324. package/lib/typescript/commonjs/src/theme/index.d.ts +9 -6
  325. package/lib/typescript/commonjs/src/theme/index.d.ts.map +1 -1
  326. package/lib/typescript/commonjs/src/theme/theme-provider.d.ts +1 -1
  327. package/lib/typescript/commonjs/src/theme/theme-provider.d.ts.map +1 -1
  328. package/lib/typescript/commonjs/src/theme/types/DefaultProps.d.ts +2 -2
  329. package/lib/typescript/commonjs/src/theme/types/DefaultProps.d.ts.map +1 -1
  330. package/lib/typescript/commonjs/src/theme/types.d.ts +494 -0
  331. package/lib/typescript/commonjs/src/theme/types.d.ts.map +1 -0
  332. package/lib/typescript/commonjs/src/theme/utils/withTextWrapper.d.ts +1 -1
  333. package/lib/typescript/commonjs/src/theme/utils/withTextWrapper.d.ts.map +1 -1
  334. package/lib/typescript/module/src/components/Anchor/index.d.ts.map +1 -1
  335. package/lib/typescript/module/src/components/Avatar/index.d.ts.map +1 -1
  336. package/lib/typescript/module/src/components/Badge/index.d.ts.map +1 -1
  337. package/lib/typescript/module/src/components/Blockquote/index.d.ts.map +1 -1
  338. package/lib/typescript/module/src/components/Button/Button.styles.d.ts +8 -8
  339. package/lib/typescript/module/src/components/Button/index.d.ts +1 -1
  340. package/lib/typescript/module/src/components/Button/index.d.ts.map +1 -1
  341. package/lib/typescript/module/src/components/Center/index.d.ts +1 -2
  342. package/lib/typescript/module/src/components/Center/index.d.ts.map +1 -1
  343. package/lib/typescript/module/src/components/Checkbox/index.d.ts.map +1 -1
  344. package/lib/typescript/module/src/components/Chip/index.d.ts.map +1 -1
  345. package/lib/typescript/module/src/components/Code/index.d.ts.map +1 -1
  346. package/lib/typescript/module/src/components/ColorSwatch/index.d.ts +1 -1
  347. package/lib/typescript/module/src/components/ColorSwatch/index.d.ts.map +1 -1
  348. package/lib/typescript/module/src/components/Container/index.d.ts +2 -2
  349. package/lib/typescript/module/src/components/Container/index.d.ts.map +1 -1
  350. package/lib/typescript/module/src/components/Flex/index.d.ts +2 -2
  351. package/lib/typescript/module/src/components/Flex/index.d.ts.map +1 -1
  352. package/lib/typescript/module/src/components/Grid/index.d.ts.map +1 -1
  353. package/lib/typescript/module/src/components/Highlight/index.d.ts.map +1 -1
  354. package/lib/typescript/module/src/components/Indicator/index.d.ts.map +1 -1
  355. package/lib/typescript/module/src/components/LinearGradient/PlatformLinearGradient.d.ts +1 -1
  356. package/lib/typescript/module/src/components/Mark/index.d.ts +1 -1
  357. package/lib/typescript/module/src/components/Mark/index.d.ts.map +1 -1
  358. package/lib/typescript/module/src/components/Menu/index.d.ts.map +1 -1
  359. package/lib/typescript/module/src/components/MultiSelect/index.d.ts.map +1 -1
  360. package/lib/typescript/module/src/components/NativeSelect/index.d.ts.map +1 -1
  361. package/lib/typescript/module/src/components/NavLink/index.d.ts.map +1 -1
  362. package/lib/typescript/module/src/components/Notification/index.d.ts.map +1 -1
  363. package/lib/typescript/module/src/components/Pagination/index.d.ts.map +1 -1
  364. package/lib/typescript/module/src/components/PinInput/index.d.ts.map +1 -1
  365. package/lib/typescript/module/src/components/Progress/index.d.ts.map +1 -1
  366. package/lib/typescript/module/src/components/Radio/index.d.ts.map +1 -1
  367. package/lib/typescript/module/src/components/Rating/index.d.ts.map +1 -1
  368. package/lib/typescript/module/src/components/RingProgress/index.d.ts.map +1 -1
  369. package/lib/typescript/module/src/components/Select/index.d.ts.map +1 -1
  370. package/lib/typescript/module/src/components/SimpleGrid/index.d.ts.map +1 -1
  371. package/lib/typescript/module/src/components/Space/index.d.ts +2 -2
  372. package/lib/typescript/module/src/components/Space/index.d.ts.map +1 -1
  373. package/lib/typescript/module/src/components/Switch/index.d.ts.map +1 -1
  374. package/lib/typescript/module/src/components/Text/index.d.ts +54 -7
  375. package/lib/typescript/module/src/components/Text/index.d.ts.map +1 -1
  376. package/lib/typescript/module/src/components/ThemeIcon/index.d.ts.map +1 -1
  377. package/lib/typescript/module/src/components/Timeline/index.d.ts.map +1 -1
  378. package/lib/typescript/module/src/components/Title/index.d.ts +1 -0
  379. package/lib/typescript/module/src/components/Title/index.d.ts.map +1 -1
  380. package/lib/typescript/module/src/components/Tooltip/index.d.ts.map +1 -1
  381. package/lib/typescript/module/src/components/TransferList/index.d.ts.map +1 -1
  382. package/lib/typescript/module/src/components/UnstyledButton/UnstyledButton.styles.d.ts +2 -2
  383. package/lib/typescript/module/src/components/UnstyledButton/UnstyledButton.styles.d.ts.map +1 -1
  384. package/lib/typescript/module/src/components/index.d.ts +0 -1
  385. package/lib/typescript/module/src/components/index.d.ts.map +1 -1
  386. package/lib/typescript/module/src/index.d.ts +1 -1
  387. package/lib/typescript/module/src/index.d.ts.map +1 -1
  388. package/lib/typescript/module/src/theme/create-styles.d.ts +1 -1
  389. package/lib/typescript/module/src/theme/create-styles.d.ts.map +1 -1
  390. package/lib/typescript/module/src/theme/create-theme.d.ts +68 -2
  391. package/lib/typescript/module/src/theme/create-theme.d.ts.map +1 -1
  392. package/lib/typescript/module/src/theme/default-colors.d.ts +12 -0
  393. package/lib/typescript/module/src/theme/default-colors.d.ts.map +1 -0
  394. package/lib/typescript/module/src/theme/default-theme.d.ts +15 -108
  395. package/lib/typescript/module/src/theme/default-theme.d.ts.map +1 -1
  396. package/lib/typescript/module/src/theme/functions/attach-functions.d.ts +20 -1
  397. package/lib/typescript/module/src/theme/functions/attach-functions.d.ts.map +1 -1
  398. package/lib/typescript/module/src/theme/functions/fns/breakpoints.d.ts +3 -3
  399. package/lib/typescript/module/src/theme/functions/fns/breakpoints.d.ts.map +1 -1
  400. package/lib/typescript/module/src/theme/functions/fns/color-scheme-value.d.ts +100 -0
  401. package/lib/typescript/module/src/theme/functions/fns/color-scheme-value.d.ts.map +1 -0
  402. package/lib/typescript/module/src/theme/functions/fns/dimmed.d.ts +2 -2
  403. package/lib/typescript/module/src/theme/functions/fns/dimmed.d.ts.map +1 -1
  404. package/lib/typescript/module/src/theme/functions/fns/gradient/gradient.d.ts +4 -5
  405. package/lib/typescript/module/src/theme/functions/fns/gradient/gradient.d.ts.map +1 -1
  406. package/lib/typescript/module/src/theme/functions/fns/helpers.d.ts +36 -8
  407. package/lib/typescript/module/src/theme/functions/fns/helpers.d.ts.map +1 -1
  408. package/lib/typescript/module/src/theme/functions/fns/index.d.ts +40 -14
  409. package/lib/typescript/module/src/theme/functions/fns/index.d.ts.map +1 -1
  410. package/lib/typescript/module/src/theme/functions/fns/primary-shade.d.ts +53 -3
  411. package/lib/typescript/module/src/theme/functions/fns/primary-shade.d.ts.map +1 -1
  412. package/lib/typescript/module/src/theme/functions/fns/shadow.d.ts +1 -1
  413. package/lib/typescript/module/src/theme/functions/fns/shadow.d.ts.map +1 -1
  414. package/lib/typescript/module/src/theme/functions/fns/size.d.ts +2 -2
  415. package/lib/typescript/module/src/theme/functions/fns/size.d.ts.map +1 -1
  416. package/lib/typescript/module/src/theme/functions/fns/theme-color/color-utils.d.ts +50 -0
  417. package/lib/typescript/module/src/theme/functions/fns/theme-color/color-utils.d.ts.map +1 -0
  418. package/lib/typescript/module/src/theme/functions/fns/theme-color/theme-color.d.ts +51 -5
  419. package/lib/typescript/module/src/theme/functions/fns/theme-color/theme-color.d.ts.map +1 -1
  420. package/lib/typescript/module/src/theme/functions/fns/variant.d.ts +52 -19
  421. package/lib/typescript/module/src/theme/functions/fns/variant.d.ts.map +1 -1
  422. package/lib/typescript/module/src/theme/functions/index.d.ts +19 -0
  423. package/lib/typescript/module/src/theme/functions/index.d.ts.map +1 -0
  424. package/lib/typescript/module/src/theme/index.d.ts +9 -6
  425. package/lib/typescript/module/src/theme/index.d.ts.map +1 -1
  426. package/lib/typescript/module/src/theme/theme-provider.d.ts +1 -1
  427. package/lib/typescript/module/src/theme/theme-provider.d.ts.map +1 -1
  428. package/lib/typescript/module/src/theme/types/DefaultProps.d.ts +2 -2
  429. package/lib/typescript/module/src/theme/types/DefaultProps.d.ts.map +1 -1
  430. package/lib/typescript/module/src/theme/types.d.ts +494 -0
  431. package/lib/typescript/module/src/theme/types.d.ts.map +1 -0
  432. package/lib/typescript/module/src/theme/utils/withTextWrapper.d.ts +1 -1
  433. package/lib/typescript/module/src/theme/utils/withTextWrapper.d.ts.map +1 -1
  434. package/package.json +2 -4
  435. package/src/components/ActionIcon/ActionIcon.tsx +3 -3
  436. package/src/components/Anchor/index.tsx +3 -4
  437. package/src/components/Avatar/index.tsx +1 -2
  438. package/src/components/Badge/index.tsx +36 -19
  439. package/src/components/Blockquote/index.tsx +4 -6
  440. package/src/components/Button/index.tsx +6 -2
  441. package/src/components/Center/index.tsx +1 -2
  442. package/src/components/Checkbox/index.tsx +4 -5
  443. package/src/components/Chip/index.tsx +25 -18
  444. package/src/components/Code/index.tsx +7 -5
  445. package/src/components/ColorSwatch/index.tsx +1 -1
  446. package/src/components/Container/index.tsx +2 -2
  447. package/src/components/Flex/index.tsx +2 -2
  448. package/src/components/Grid/index.tsx +16 -10
  449. package/src/components/Highlight/index.tsx +1 -2
  450. package/src/components/Indicator/index.tsx +3 -4
  451. package/src/components/LinearGradient/PlatformLinearGradient.tsx +9 -9
  452. package/src/components/Mark/index.tsx +1 -1
  453. package/src/components/Menu/index.tsx +8 -10
  454. package/src/components/MultiSelect/index.tsx +13 -15
  455. package/src/components/NativeSelect/index.tsx +34 -21
  456. package/src/components/NavLink/index.tsx +27 -23
  457. package/src/components/Notification/index.tsx +5 -6
  458. package/src/components/Pagination/index.tsx +5 -6
  459. package/src/components/PinInput/index.tsx +5 -6
  460. package/src/components/Progress/index.tsx +5 -6
  461. package/src/components/Radio/index.tsx +4 -5
  462. package/src/components/Rating/index.tsx +2 -4
  463. package/src/components/RingProgress/index.tsx +3 -5
  464. package/src/components/Select/index.tsx +11 -13
  465. package/src/components/SimpleGrid/index.tsx +5 -2
  466. package/src/components/Space/index.tsx +2 -2
  467. package/src/components/Spoiler/index.tsx +1 -1
  468. package/src/components/Stepper/index.tsx +17 -17
  469. package/src/components/Switch/index.tsx +5 -6
  470. package/src/components/Text/index.tsx +125 -28
  471. package/src/components/ThemeIcon/index.tsx +23 -23
  472. package/src/components/Timeline/index.tsx +12 -15
  473. package/src/components/Title/index.tsx +5 -22
  474. package/src/components/Tooltip/index.tsx +1 -3
  475. package/src/components/TransferList/index.tsx +16 -18
  476. package/src/components/UnstyledButton/UnstyledButton.styles.ts +4 -2
  477. package/src/components/index.tsx +0 -1
  478. package/src/index.tsx +1 -1
  479. package/src/theme/create-styles.ts +1 -1
  480. package/src/theme/create-theme.ts +134 -23
  481. package/src/theme/default-colors.ts +252 -0
  482. package/src/theme/default-theme.ts +178 -392
  483. package/src/theme/functions/attach-functions.ts +57 -10
  484. package/src/theme/functions/fns/breakpoints.ts +4 -4
  485. package/src/theme/functions/fns/color-scheme-value.ts +200 -0
  486. package/src/theme/functions/fns/dimmed.ts +2 -2
  487. package/src/theme/functions/fns/gradient/gradient.ts +4 -5
  488. package/src/theme/functions/fns/helpers.ts +50 -9
  489. package/src/theme/functions/fns/index.ts +63 -3
  490. package/src/theme/functions/fns/primary-shade.ts +84 -8
  491. package/src/theme/functions/fns/shadow.ts +1 -1
  492. package/src/theme/functions/fns/size.ts +4 -3
  493. package/src/theme/functions/fns/theme-color/color-utils.ts +193 -0
  494. package/src/theme/functions/fns/theme-color/theme-color.ts +85 -17
  495. package/src/theme/functions/fns/variant.ts +106 -44
  496. package/src/theme/functions/index.ts +19 -0
  497. package/src/theme/index.ts +91 -0
  498. package/src/theme/theme-provider.tsx +2 -17
  499. package/src/theme/types/DefaultProps.ts +3 -3
  500. package/src/theme/types.ts +625 -0
  501. package/src/theme/utils/withTextWrapper.tsx +2 -3
  502. package/lib/commonjs/components/Slider/index.js +0 -300
  503. package/lib/commonjs/components/Slider/index.js.map +0 -1
  504. package/lib/module/components/Slider/index.js +0 -295
  505. package/lib/module/components/Slider/index.js.map +0 -1
  506. package/lib/typescript/commonjs/src/components/Slider/index.d.ts +0 -43
  507. package/lib/typescript/commonjs/src/components/Slider/index.d.ts.map +0 -1
  508. package/lib/typescript/module/src/components/Slider/index.d.ts +0 -43
  509. package/lib/typescript/module/src/components/Slider/index.d.ts.map +0 -1
  510. package/src/components/Slider/index.tsx +0 -349
  511. package/src/theme/index.tsx +0 -9
@@ -0,0 +1,494 @@
1
+ /**
2
+ * Core type definitions for Mantine React Native theme system
3
+ * Aligned with Mantine web v6 architecture
4
+ */
5
+ import type { TextStyle, ViewStyle } from 'react-native';
6
+ /**
7
+ * Shade index for color palettes (0-9)
8
+ * 0 = lightest, 9 = darkest
9
+ */
10
+ export type Shade = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
11
+ /**
12
+ * 10-shade color palette tuple
13
+ * Matches Mantine web's Tuple<string, 10> structure
14
+ */
15
+ export type MantineColorsTuple = readonly [
16
+ string,
17
+ string,
18
+ string,
19
+ string,
20
+ string,
21
+ string,
22
+ string,
23
+ string,
24
+ string,
25
+ string
26
+ ];
27
+ /**
28
+ * Default color keys from Mantine web
29
+ */
30
+ export type DefaultMantineColor = 'dark' | 'gray' | 'red' | 'pink' | 'grape' | 'violet' | 'indigo' | 'blue' | 'cyan' | 'teal' | 'green' | 'lime' | 'yellow' | 'orange';
31
+ /**
32
+ * Mantine color - either a theme color key or a CSS color value
33
+ *
34
+ * Supports:
35
+ * - Theme palette colors: 'blue', 'red', 'gray', etc.
36
+ * - Custom hex colors: '#FF5733', '#fff'
37
+ * - Custom rgb colors: 'rgb(255, 87, 51)'
38
+ * - Custom rgba colors: 'rgba(255, 87, 51, 0.5)'
39
+ * - CSS keywords: 'transparent', 'currentColor'
40
+ *
41
+ * Custom colors can be used with shade modifiers in themeColor() and variant() functions.
42
+ */
43
+ export type MantineColor = DefaultMantineColor | (string & {});
44
+ /**
45
+ * Theme colors record - maps color names to 10-shade tuples
46
+ */
47
+ export interface MantineThemeColors {
48
+ [key: string]: MantineColorsTuple;
49
+ dark: MantineColorsTuple;
50
+ gray: MantineColorsTuple;
51
+ red: MantineColorsTuple;
52
+ pink: MantineColorsTuple;
53
+ grape: MantineColorsTuple;
54
+ violet: MantineColorsTuple;
55
+ indigo: MantineColorsTuple;
56
+ blue: MantineColorsTuple;
57
+ cyan: MantineColorsTuple;
58
+ teal: MantineColorsTuple;
59
+ green: MantineColorsTuple;
60
+ lime: MantineColorsTuple;
61
+ yellow: MantineColorsTuple;
62
+ orange: MantineColorsTuple;
63
+ }
64
+ /**
65
+ * Primary shade configuration
66
+ * Can be a single shade or different shades for light/dark modes
67
+ */
68
+ export interface MantinePrimaryShade {
69
+ light: Shade;
70
+ dark: Shade;
71
+ }
72
+ /**
73
+ * Color scheme - light or dark mode
74
+ */
75
+ export type ColorScheme = 'light' | 'dark';
76
+ /**
77
+ * Color scheme value type
78
+ * Represents a value that has different values for light and dark modes
79
+ */
80
+ export interface ColorSchemeValue<T = any> {
81
+ light: T;
82
+ dark: T;
83
+ }
84
+ /**
85
+ * Type helper to resolve ColorSchemeValue types to their base types
86
+ * Recursively transforms ColorSchemeValue<T> to T in object structures
87
+ */
88
+ export type ResolveColorSchemeValue<T> = T extends ColorSchemeValue<infer U> ? U : T extends Record<string, any> ? {
89
+ [K in keyof T]: ResolveColorSchemeValue<T[K]>;
90
+ } : T;
91
+ /**
92
+ * Named size values
93
+ */
94
+ export type MantineSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
95
+ /**
96
+ * Size can be a named size or a number
97
+ */
98
+ export type MantineNumberSize = MantineSize | number;
99
+ /**
100
+ * Size scale - maps size names to numbers
101
+ */
102
+ export interface MantineSizes {
103
+ [key: string]: number;
104
+ xs: number;
105
+ sm: number;
106
+ md: number;
107
+ lg: number;
108
+ xl: number;
109
+ }
110
+ /**
111
+ * Gradient configuration
112
+ */
113
+ export interface MantineGradient {
114
+ from: MantineColor;
115
+ to: MantineColor;
116
+ deg?: number;
117
+ }
118
+ /**
119
+ * React Native gradient configuration
120
+ */
121
+ export interface GradientConfig {
122
+ colors: [string, string];
123
+ start: {
124
+ x: number;
125
+ y: number;
126
+ };
127
+ end: {
128
+ x: number;
129
+ y: number;
130
+ };
131
+ }
132
+ /**
133
+ * Font weight values
134
+ */
135
+ export interface FontWeights {
136
+ thin: TextStyle['fontWeight'];
137
+ extralight: TextStyle['fontWeight'];
138
+ light: TextStyle['fontWeight'];
139
+ normal: TextStyle['fontWeight'];
140
+ medium: TextStyle['fontWeight'];
141
+ semibold: TextStyle['fontWeight'];
142
+ bold: TextStyle['fontWeight'];
143
+ extrabold: TextStyle['fontWeight'];
144
+ black: TextStyle['fontWeight'];
145
+ }
146
+ /**
147
+ * Heading style configuration
148
+ * Matches Mantine web HeadingStyle with React Native adaptations
149
+ */
150
+ export interface HeadingStyle {
151
+ fontSize: number;
152
+ lineHeight: number;
153
+ fontWeight?: TextStyle['fontWeight'];
154
+ fontFamily?: string;
155
+ }
156
+ /**
157
+ * Headings configuration
158
+ */
159
+ export interface MantineHeadings {
160
+ fontFamily?: string;
161
+ fontWeight?: TextStyle['fontWeight'];
162
+ sizes: {
163
+ h1: HeadingStyle;
164
+ h2: HeadingStyle;
165
+ h3: HeadingStyle;
166
+ h4: HeadingStyle;
167
+ h5: HeadingStyle;
168
+ h6: HeadingStyle;
169
+ };
170
+ }
171
+ /**
172
+ * iOS shadow configuration
173
+ */
174
+ export interface IOSShadow {
175
+ shadowColor: string;
176
+ shadowOffset: {
177
+ width: number;
178
+ height: number;
179
+ };
180
+ shadowOpacity: number;
181
+ shadowRadius: number;
182
+ }
183
+ /**
184
+ * Android shadow configuration (elevation)
185
+ */
186
+ export interface AndroidShadow {
187
+ elevation: number;
188
+ }
189
+ /**
190
+ * Platform-specific shadow type
191
+ */
192
+ export type MantineShadow = IOSShadow | AndroidShadow;
193
+ /**
194
+ * Shadow scale
195
+ */
196
+ export interface MantineShadows {
197
+ xs: MantineShadow;
198
+ sm: MantineShadow;
199
+ md: MantineShadow;
200
+ lg: MantineShadow;
201
+ xl: MantineShadow;
202
+ }
203
+ /**
204
+ * Component variant types
205
+ */
206
+ export type MantineVariant = 'filled' | 'outline' | 'light' | 'white' | 'default' | 'subtle' | 'gradient' | 'transparent';
207
+ /**
208
+ * Variant function input
209
+ */
210
+ export interface VariantInput {
211
+ variant: MantineVariant;
212
+ color?: MantineColor;
213
+ gradient?: MantineGradient;
214
+ primaryFallback?: boolean;
215
+ }
216
+ /**
217
+ * Variant function output (React Native styles)
218
+ */
219
+ export interface VariantOutput {
220
+ background: string;
221
+ color: string;
222
+ border: string;
223
+ hover?: string;
224
+ }
225
+ /**
226
+ * Component-specific theme configuration
227
+ */
228
+ export interface ThemeComponent {
229
+ defaultProps?: Record<string, any> | ((theme: MantineTheme) => Record<string, any>);
230
+ styles?: Record<string, ViewStyle | TextStyle> | ((theme: MantineTheme, params: any) => Record<string, ViewStyle | TextStyle>);
231
+ }
232
+ /**
233
+ * Theme components record
234
+ */
235
+ export type MantineThemeComponents = Record<string, ThemeComponent>;
236
+ /**
237
+ * Theme helper functions
238
+ * React Native-specific implementations of Mantine web functions
239
+ */
240
+ export interface MantineThemeFunctions {
241
+ /**
242
+ * Get color from theme palette
243
+ * @param color - Color name or CSS value
244
+ * @param shade - Optional shade (0-9)
245
+ * @param primaryFallback - Use primary color if color not found
246
+ */
247
+ themeColor(color: MantineColor, shade?: Shade, primaryFallback?: boolean): string;
248
+ /**
249
+ * Get primary shade based on color scheme
250
+ * @param colorScheme - Optional color scheme override
251
+ */
252
+ primaryShade(colorScheme?: ColorScheme): Shade;
253
+ /**
254
+ * Get primary color based on color scheme
255
+ * @param colorScheme - Optional color scheme override
256
+ */
257
+ primaryColor(colorScheme?: ColorScheme): string;
258
+ /**
259
+ * Get variant styles for components
260
+ * @param input - Variant configuration
261
+ */
262
+ variant(input: VariantInput): VariantOutput;
263
+ /**
264
+ * Convert color to rgba with alpha
265
+ * @param color - Color value
266
+ * @param alpha - Alpha value (0-1)
267
+ */
268
+ rgba(color: string, alpha: number): string;
269
+ /**
270
+ * Get radius value from theme
271
+ * @param size - Size or number
272
+ */
273
+ radius(size?: MantineNumberSize | (string & {})): number | string;
274
+ /**
275
+ * Get size value from theme
276
+ * @param options - Size configuration
277
+ */
278
+ size(options: {
279
+ size?: MantineNumberSize | (string & {});
280
+ sizes: Record<string, number>;
281
+ }): number | string;
282
+ /**
283
+ * Get shadow styles
284
+ * @param size - Shadow size
285
+ */
286
+ shadow(size?: MantineSize): MantineShadow | {};
287
+ /**
288
+ * Get gradient configuration for React Native
289
+ * @param gradient - Gradient config
290
+ */
291
+ gradient(gradient?: MantineGradient): GradientConfig;
292
+ /**
293
+ * Lighten a color
294
+ * @param color - Color to lighten
295
+ * @param alpha - Amount to lighten (0-1)
296
+ */
297
+ lighten(color: string, alpha: number): string;
298
+ /**
299
+ * Darken a color
300
+ * @param color - Color to darken
301
+ * @param alpha - Amount to darken (0-1)
302
+ */
303
+ darken(color: string, alpha: number): string;
304
+ /**
305
+ * Get dimmed color based on color scheme
306
+ */
307
+ dimmed(): string;
308
+ /**
309
+ * Get font styles
310
+ */
311
+ fontStyles(): TextStyle;
312
+ /**
313
+ * Get input font styles
314
+ */
315
+ inputFontStyles(): TextStyle;
316
+ /**
317
+ * Get font size from theme
318
+ * @param size - Size key or number
319
+ */
320
+ fontSize(size: MantineNumberSize): number;
321
+ /**
322
+ * Get line height from theme
323
+ * @param size - Size key or number (unitless multiplier)
324
+ */
325
+ lineHeight(size: MantineNumberSize): number;
326
+ /**
327
+ * Get heading styles by order
328
+ * @param order - Heading level (1-6)
329
+ */
330
+ headingStyles(order: 1 | 2 | 3 | 4 | 5 | 6): TextStyle;
331
+ /**
332
+ * Get focus styles
333
+ */
334
+ focusStyles(): ViewStyle;
335
+ /**
336
+ * Get placeholder styles
337
+ */
338
+ placeholderStyles(): TextStyle;
339
+ /**
340
+ * Get cover styles (position: absolute, full size)
341
+ * @param offset - Optional offset
342
+ */
343
+ cover(offset?: number): ViewStyle;
344
+ /**
345
+ * Get hover styles
346
+ * @param hoverStyle - Styles to apply on hover
347
+ */
348
+ hover(hoverStyle: ViewStyle | TextStyle): ViewStyle | TextStyle;
349
+ /**
350
+ * Get styles for screens larger than breakpoint
351
+ * @param breakpoint - Breakpoint value
352
+ */
353
+ largerThan(breakpoint: MantineNumberSize): any;
354
+ /**
355
+ * Get styles for screens smaller than breakpoint
356
+ * @param breakpoint - Breakpoint value
357
+ */
358
+ smallerThan(breakpoint: MantineNumberSize): any;
359
+ /**
360
+ * Get value based on current color scheme
361
+ * Returns different values for light and dark modes
362
+ * @param value - Value or ColorSchemeValue object with light/dark properties
363
+ */
364
+ colorSchemeValue<T = any>(value: T | {
365
+ light: T;
366
+ dark: T;
367
+ }): T;
368
+ /**
369
+ * Resolve all color scheme values in an object
370
+ * Useful for resolving theme constants with different light/dark values
371
+ * @param constants - Object containing ColorSchemeValue properties
372
+ */
373
+ colorSchemeConstants<T extends Record<string, any>>(constants: T): any;
374
+ }
375
+ /**
376
+ * Mantine React Native theme
377
+ * Core configuration object for the entire design system
378
+ */
379
+ export interface MantineTheme {
380
+ colorScheme: ColorScheme;
381
+ primaryColor: DefaultMantineColor;
382
+ primaryShade: Shade | MantinePrimaryShade;
383
+ colors: MantineThemeColors;
384
+ white: string;
385
+ black: string;
386
+ defaultGradient: MantineGradient;
387
+ fontFamily: string;
388
+ fontFamilyBold: string;
389
+ fontFamilySemiBold: string;
390
+ fontFamilyInput: string;
391
+ fontFamilyMonospace: string;
392
+ fontWeights: FontWeights;
393
+ fontSizes: MantineSizes;
394
+ lineHeight: number;
395
+ lineHeights: MantineSizes;
396
+ headings: MantineHeadings;
397
+ spacing: MantineSizes;
398
+ radius: MantineSizes;
399
+ defaultRadius: MantineNumberSize | (string & {});
400
+ breakpoints: MantineSizes;
401
+ shadows: MantineShadows;
402
+ fn: MantineThemeFunctions;
403
+ components: MantineThemeComponents;
404
+ other: Record<string, any>;
405
+ window: {
406
+ width: number;
407
+ height: number;
408
+ };
409
+ isIOS?: boolean;
410
+ OSVersion?: any;
411
+ currentMode?: ColorScheme;
412
+ toggleMode?: () => void;
413
+ setCurrentMode?: (mode: ColorScheme) => void;
414
+ activeStyles: ViewStyle | TextStyle;
415
+ secondaryColor?: string;
416
+ isSmallDevice?: boolean;
417
+ screen?: {
418
+ width: number;
419
+ height: number;
420
+ };
421
+ bottomNavBarHeight?: number;
422
+ }
423
+ /**
424
+ * Theme without functions (base theme object)
425
+ */
426
+ export type MantineThemeBase = Omit<MantineTheme, 'fn'>;
427
+ /**
428
+ * Partial theme for overrides
429
+ */
430
+ export type MantineThemeOverride = {
431
+ colorScheme?: ColorScheme;
432
+ primaryColor?: DefaultMantineColor;
433
+ primaryShade?: Shade | MantinePrimaryShade;
434
+ colors?: Partial<MantineThemeColors>;
435
+ white?: string;
436
+ black?: string;
437
+ defaultGradient?: MantineGradient;
438
+ fontFamily?: string;
439
+ fontFamilyBold?: string;
440
+ fontFamilySemiBold?: string;
441
+ fontFamilyInput?: string;
442
+ fontFamilyMonospace?: string;
443
+ fontWeights?: Partial<FontWeights>;
444
+ fontSizes?: Partial<MantineSizes>;
445
+ lineHeight?: number;
446
+ lineHeights?: Partial<MantineSizes>;
447
+ headings?: Partial<MantineHeadings>;
448
+ spacing?: Partial<MantineSizes>;
449
+ radius?: Partial<MantineSizes>;
450
+ defaultRadius?: MantineNumberSize | (string & {});
451
+ breakpoints?: Partial<MantineSizes>;
452
+ shadows?: Partial<MantineShadows>;
453
+ components?: MantineThemeComponents;
454
+ other?: Record<string, any>;
455
+ window?: {
456
+ width: number;
457
+ height: number;
458
+ };
459
+ activeStyles?: ViewStyle | TextStyle;
460
+ };
461
+ /**
462
+ * Deep partial type for nested objects
463
+ */
464
+ export type DeepPartial<T> = {
465
+ [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
466
+ };
467
+ /**
468
+ * Extract style props that can be themed
469
+ */
470
+ export type ThemeableStyleProps = {
471
+ color?: MantineColor;
472
+ radius?: MantineNumberSize;
473
+ size?: MantineSize;
474
+ variant?: MantineVariant;
475
+ gradient?: MantineGradient;
476
+ };
477
+ /**
478
+ * Spacing value - can be a size or number
479
+ */
480
+ export type SpacingValue = MantineNumberSize | (string & {});
481
+ /**
482
+ * Generic variant type that allows specific variants plus custom strings
483
+ */
484
+ export type Variants<T> = T | (string & {});
485
+ /**
486
+ * Default props that can be passed to any component
487
+ */
488
+ export interface DefaultProps {
489
+ className?: string;
490
+ style?: any;
491
+ sx?: any;
492
+ unstyled?: boolean;
493
+ }
494
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/theme/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMzD;;;GAGG;AACH,MAAM,MAAM,KAAK,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE1D;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,SAAS;IACxC,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;CACP,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mBAA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CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACtC,CAAC;AAMF;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAChE,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,QAAQ,CAAC,EAAE,eAAe,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAE5C;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,EAAE,CAAC,EAAE,GAAG,CAAC;IACT,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
@@ -25,7 +25,7 @@ import type { TextProps } from '../../components/Text';
25
25
  * // Default behavior (wrap)
26
26
  * withTextWrapper('Text', true, styles.text, { numberOfLines: 1 })
27
27
  */
28
- export declare function withTextWrapper(children: ReactNode, shouldWrap?: boolean, textStyle?: any, textProps?: Omit<TextProps, 'children' | 'style'>): ReactNode;
28
+ export declare function withTextWrapper(children: ReactNode, shouldWrap?: boolean, textProps?: Omit<TextProps, 'children'>): ReactNode;
29
29
  /**
30
30
  * Type helper for components that support the withTextWrapper pattern.
31
31
  * Add this to your component props interface.
@@ -1 +1 @@
1
- {"version":3,"file":"withTextWrapper.d.ts","sourceRoot":"","sources":["../../../../../../src/theme/utils/withTextWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,SAAS,EACnB,UAAU,GAAE,OAAc,EAC1B,SAAS,CAAC,EAAE,GAAG,EACf,SAAS,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAAC,GAChD,SAAS,CAUX;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B"}
1
+ {"version":3,"file":"withTextWrapper.d.ts","sourceRoot":"","sources":["../../../../../../src/theme/utils/withTextWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,SAAS,EACnB,UAAU,GAAE,OAAc,EAC1B,SAAS,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,GACtC,SAAS,CAUX;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-mantine",
3
- "version": "0.13.0",
3
+ "version": "0.15.0",
4
4
  "description": "Make Mantine Accessable on React Native",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -44,9 +44,7 @@
44
44
  "clean": "del-cli lib",
45
45
  "prepare": "bob build",
46
46
  "release": "release-it",
47
- "typescript": "tsc --noEmit",
48
- "docs:preview": "bash scripts/preview-docs.sh",
49
- "docs:open": "open http://localhost:3000 && yarn docs:preview"
47
+ "typescript": "tsc --noEmit"
50
48
  },
51
49
  "keywords": [
52
50
  "react-native",
@@ -67,9 +67,9 @@ const useStyles = createStyles(
67
67
  backgroundColor:
68
68
  variant === 'transparent'
69
69
  ? 'transparent'
70
- : theme.currentMode === 'dark'
71
- ? theme.primaryBgColor
72
- : theme.secondaryBgColor,
70
+ : theme.colorScheme === 'dark'
71
+ ? theme.fn.primaryColor()
72
+ : theme.fn.themeColor('gray', 1),
73
73
  borderRadius: sizeValue / 2,
74
74
  alignItems: 'center',
75
75
  justifyContent: 'center',
@@ -65,24 +65,23 @@ const useStyles = createStyles(
65
65
  },
66
66
  { variant }
67
67
  ) => {
68
- const colors = theme.colors[color] || theme.colors[theme.primaryColor];
69
68
  const fontSize = sizes[size as keyof typeof sizes] || sizes.md;
70
69
 
71
70
  const getVariantStyles = () => {
72
71
  switch (variant) {
73
72
  case 'link':
74
73
  return {
75
- color: colors?.[6] || colors?.[5] || theme.primaryBgColor,
74
+ color: theme.fn.themeColor(color, 6),
76
75
  textDecorationLine: underline ? 'underline' : 'none',
77
76
  };
78
77
  case 'text':
79
78
  return {
80
- color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[0] || theme.white : theme.black,
79
+ color: theme.colorScheme === 'dark' ? theme.fn.themeColor('dark', 0) : theme.black,
81
80
  textDecorationLine: 'none',
82
81
  };
83
82
  default:
84
83
  return {
85
- color: colors?.[6] || colors?.[5] || theme.primaryBgColor,
84
+ color: theme.fn.themeColor(color, 6),
86
85
  textDecorationLine: underline ? 'underline' : 'none',
87
86
  };
88
87
  }
@@ -59,7 +59,6 @@ const useStyles = createStyles(
59
59
  size: MantineSize | number;
60
60
  }
61
61
  ) => {
62
- const colors = theme.colors[color] || theme.colors[theme.primaryColor];
63
62
  const sizeValue = typeof size === 'number' ? rem(size) : sizes[size as keyof typeof sizes] || sizes.md;
64
63
 
65
64
  return {
@@ -68,7 +67,7 @@ const useStyles = createStyles(
68
67
  height: sizeValue as any,
69
68
  borderRadius: theme.fn.radius(radius),
70
69
  overflow: 'hidden',
71
- backgroundColor: colors?.[6] || colors?.[5] || theme.primaryBgColor,
70
+ backgroundColor: theme.fn.themeColor(color, 6),
72
71
  justifyContent: 'center',
73
72
  alignItems: 'center',
74
73
  } as any,