react-native-mantine 0.14.0 → 0.16.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 (489) hide show
  1. package/README.md +70 -232
  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/Menu/index.js +4 -5
  28. package/lib/commonjs/components/Menu/index.js.map +1 -1
  29. package/lib/commonjs/components/MultiSelect/index.js +8 -9
  30. package/lib/commonjs/components/MultiSelect/index.js.map +1 -1
  31. package/lib/commonjs/components/NativeSelect/index.js +14 -14
  32. package/lib/commonjs/components/NativeSelect/index.js.map +1 -1
  33. package/lib/commonjs/components/NavLink/index.js +43 -20
  34. package/lib/commonjs/components/NavLink/index.js.map +1 -1
  35. package/lib/commonjs/components/Notification/index.js +5 -6
  36. package/lib/commonjs/components/Notification/index.js.map +1 -1
  37. package/lib/commonjs/components/Pagination/index.js +5 -6
  38. package/lib/commonjs/components/Pagination/index.js.map +1 -1
  39. package/lib/commonjs/components/PinInput/index.js +3 -3
  40. package/lib/commonjs/components/PinInput/index.js.map +1 -1
  41. package/lib/commonjs/components/Progress/index.js +3 -5
  42. package/lib/commonjs/components/Progress/index.js.map +1 -1
  43. package/lib/commonjs/components/Radio/index.js +4 -5
  44. package/lib/commonjs/components/Radio/index.js.map +1 -1
  45. package/lib/commonjs/components/Rating/index.js +2 -4
  46. package/lib/commonjs/components/Rating/index.js.map +1 -1
  47. package/lib/commonjs/components/RingProgress/index.js +79 -57
  48. package/lib/commonjs/components/RingProgress/index.js.map +1 -1
  49. package/lib/commonjs/components/Select/index.js +7 -8
  50. package/lib/commonjs/components/Select/index.js.map +1 -1
  51. package/lib/commonjs/components/SimpleGrid/index.js +4 -2
  52. package/lib/commonjs/components/SimpleGrid/index.js.map +1 -1
  53. package/lib/commonjs/components/Spoiler/index.js +1 -1
  54. package/lib/commonjs/components/Spoiler/index.js.map +1 -1
  55. package/lib/commonjs/components/Stepper/index.js +8 -6
  56. package/lib/commonjs/components/Stepper/index.js.map +1 -1
  57. package/lib/commonjs/components/Switch/index.js +4 -5
  58. package/lib/commonjs/components/Switch/index.js.map +1 -1
  59. package/lib/commonjs/components/Table/index.js +257 -273
  60. package/lib/commonjs/components/Table/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 +29 -29
  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.map +1 -1
  92. package/lib/commonjs/theme/functions/fns/helpers.js +51 -3
  93. package/lib/commonjs/theme/functions/fns/helpers.js.map +1 -1
  94. package/lib/commonjs/theme/functions/fns/index.js +151 -6
  95. package/lib/commonjs/theme/functions/fns/index.js.map +1 -1
  96. package/lib/commonjs/theme/functions/fns/primary-shade.js +81 -2
  97. package/lib/commonjs/theme/functions/fns/primary-shade.js.map +1 -1
  98. package/lib/commonjs/theme/functions/fns/shadow.js.map +1 -1
  99. package/lib/commonjs/theme/functions/fns/size.js +2 -1
  100. package/lib/commonjs/theme/functions/fns/size.js.map +1 -1
  101. package/lib/commonjs/theme/functions/fns/theme-color/color-utils.js +196 -0
  102. package/lib/commonjs/theme/functions/fns/theme-color/color-utils.js.map +1 -0
  103. package/lib/commonjs/theme/functions/fns/theme-color/theme-color.js +92 -9
  104. package/lib/commonjs/theme/functions/fns/theme-color/theme-color.js.map +1 -1
  105. package/lib/commonjs/theme/functions/fns/variant.js +112 -17
  106. package/lib/commonjs/theme/functions/fns/variant.js.map +1 -1
  107. package/lib/commonjs/theme/functions/index.js +172 -0
  108. package/lib/commonjs/theme/functions/index.js.map +1 -0
  109. package/lib/commonjs/theme/index.js +116 -14
  110. package/lib/commonjs/theme/index.js.map +1 -1
  111. package/lib/commonjs/theme/theme-provider.js +1 -22
  112. package/lib/commonjs/theme/theme-provider.js.map +1 -1
  113. package/lib/commonjs/theme/types.js +6 -0
  114. package/lib/commonjs/theme/types.js.map +1 -0
  115. package/lib/commonjs/theme/utils/withTextWrapper.js +1 -2
  116. package/lib/commonjs/theme/utils/withTextWrapper.js.map +1 -1
  117. package/lib/module/components/ActionIcon/ActionIcon.js +1 -1
  118. package/lib/module/components/ActionIcon/ActionIcon.js.map +1 -1
  119. package/lib/module/components/Anchor/index.js +3 -4
  120. package/lib/module/components/Anchor/index.js.map +1 -1
  121. package/lib/module/components/Avatar/index.js +1 -2
  122. package/lib/module/components/Avatar/index.js.map +1 -1
  123. package/lib/module/components/Badge/index.js +54 -24
  124. package/lib/module/components/Badge/index.js.map +1 -1
  125. package/lib/module/components/Blockquote/index.js +4 -5
  126. package/lib/module/components/Blockquote/index.js.map +1 -1
  127. package/lib/module/components/Button/index.js +7 -1
  128. package/lib/module/components/Button/index.js.map +1 -1
  129. package/lib/module/components/Center/index.js.map +1 -1
  130. package/lib/module/components/Checkbox/index.js +4 -5
  131. package/lib/module/components/Checkbox/index.js.map +1 -1
  132. package/lib/module/components/Chip/index.js +40 -21
  133. package/lib/module/components/Chip/index.js.map +1 -1
  134. package/lib/module/components/Code/index.js +6 -4
  135. package/lib/module/components/Code/index.js.map +1 -1
  136. package/lib/module/components/Grid/index.js +18 -13
  137. package/lib/module/components/Grid/index.js.map +1 -1
  138. package/lib/module/components/Highlight/index.js +1 -1
  139. package/lib/module/components/Highlight/index.js.map +1 -1
  140. package/lib/module/components/Indicator/index.js +2 -3
  141. package/lib/module/components/Indicator/index.js.map +1 -1
  142. package/lib/module/components/Menu/index.js +4 -5
  143. package/lib/module/components/Menu/index.js.map +1 -1
  144. package/lib/module/components/MultiSelect/index.js +8 -9
  145. package/lib/module/components/MultiSelect/index.js.map +1 -1
  146. package/lib/module/components/NativeSelect/index.js +14 -14
  147. package/lib/module/components/NativeSelect/index.js.map +1 -1
  148. package/lib/module/components/NavLink/index.js +43 -20
  149. package/lib/module/components/NavLink/index.js.map +1 -1
  150. package/lib/module/components/Notification/index.js +5 -6
  151. package/lib/module/components/Notification/index.js.map +1 -1
  152. package/lib/module/components/Pagination/index.js +5 -6
  153. package/lib/module/components/Pagination/index.js.map +1 -1
  154. package/lib/module/components/PinInput/index.js +3 -3
  155. package/lib/module/components/PinInput/index.js.map +1 -1
  156. package/lib/module/components/Progress/index.js +3 -5
  157. package/lib/module/components/Progress/index.js.map +1 -1
  158. package/lib/module/components/Radio/index.js +4 -5
  159. package/lib/module/components/Radio/index.js.map +1 -1
  160. package/lib/module/components/Rating/index.js +2 -4
  161. package/lib/module/components/Rating/index.js.map +1 -1
  162. package/lib/module/components/RingProgress/index.js +80 -58
  163. package/lib/module/components/RingProgress/index.js.map +1 -1
  164. package/lib/module/components/Select/index.js +7 -8
  165. package/lib/module/components/Select/index.js.map +1 -1
  166. package/lib/module/components/SimpleGrid/index.js +4 -2
  167. package/lib/module/components/SimpleGrid/index.js.map +1 -1
  168. package/lib/module/components/Spoiler/index.js +1 -1
  169. package/lib/module/components/Spoiler/index.js.map +1 -1
  170. package/lib/module/components/Stepper/index.js +8 -6
  171. package/lib/module/components/Stepper/index.js.map +1 -1
  172. package/lib/module/components/Switch/index.js +4 -5
  173. package/lib/module/components/Switch/index.js.map +1 -1
  174. package/lib/module/components/Table/index.js +257 -274
  175. package/lib/module/components/Table/index.js.map +1 -1
  176. package/lib/module/components/Text/index.js +78 -17
  177. package/lib/module/components/Text/index.js.map +1 -1
  178. package/lib/module/components/ThemeIcon/index.js +40 -19
  179. package/lib/module/components/ThemeIcon/index.js.map +1 -1
  180. package/lib/module/components/Timeline/index.js +6 -5
  181. package/lib/module/components/Timeline/index.js.map +1 -1
  182. package/lib/module/components/Title/index.js +5 -17
  183. package/lib/module/components/Title/index.js.map +1 -1
  184. package/lib/module/components/Tooltip/index.js +1 -2
  185. package/lib/module/components/Tooltip/index.js.map +1 -1
  186. package/lib/module/components/TransferList/index.js +9 -10
  187. package/lib/module/components/TransferList/index.js.map +1 -1
  188. package/lib/module/components/UnstyledButton/UnstyledButton.styles.js +2 -2
  189. package/lib/module/components/UnstyledButton/UnstyledButton.styles.js.map +1 -1
  190. package/lib/module/components/index.js +3 -1
  191. package/lib/module/components/index.js.map +1 -1
  192. package/lib/module/index.js +1 -0
  193. package/lib/module/index.js.map +1 -1
  194. package/lib/module/theme/create-theme.js +114 -24
  195. package/lib/module/theme/create-theme.js.map +1 -1
  196. package/lib/module/theme/default-colors.js +99 -0
  197. package/lib/module/theme/default-colors.js.map +1 -0
  198. package/lib/module/theme/default-theme.js +143 -127
  199. package/lib/module/theme/default-theme.js.map +1 -1
  200. package/lib/module/theme/functions/attach-functions.js +47 -14
  201. package/lib/module/theme/functions/attach-functions.js.map +1 -1
  202. package/lib/module/theme/functions/fns/breakpoints.js.map +1 -1
  203. package/lib/module/theme/functions/fns/color-scheme-value.js +180 -0
  204. package/lib/module/theme/functions/fns/color-scheme-value.js.map +1 -0
  205. package/lib/module/theme/functions/fns/dimmed.js.map +1 -1
  206. package/lib/module/theme/functions/fns/gradient/gradient.js.map +1 -1
  207. package/lib/module/theme/functions/fns/helpers.js +48 -2
  208. package/lib/module/theme/functions/fns/helpers.js.map +1 -1
  209. package/lib/module/theme/functions/fns/index.js +35 -7
  210. package/lib/module/theme/functions/fns/index.js.map +1 -1
  211. package/lib/module/theme/functions/fns/primary-shade.js +78 -2
  212. package/lib/module/theme/functions/fns/primary-shade.js.map +1 -1
  213. package/lib/module/theme/functions/fns/shadow.js.map +1 -1
  214. package/lib/module/theme/functions/fns/size.js +2 -1
  215. package/lib/module/theme/functions/fns/size.js.map +1 -1
  216. package/lib/module/theme/functions/fns/theme-color/color-utils.js +189 -0
  217. package/lib/module/theme/functions/fns/theme-color/color-utils.js.map +1 -0
  218. package/lib/module/theme/functions/fns/theme-color/theme-color.js +91 -9
  219. package/lib/module/theme/functions/fns/theme-color/theme-color.js.map +1 -1
  220. package/lib/module/theme/functions/fns/variant.js +112 -17
  221. package/lib/module/theme/functions/fns/variant.js.map +1 -1
  222. package/lib/module/theme/functions/index.js +22 -0
  223. package/lib/module/theme/functions/index.js.map +1 -0
  224. package/lib/module/theme/index.js +16 -4
  225. package/lib/module/theme/index.js.map +1 -1
  226. package/lib/module/theme/theme-provider.js +1 -22
  227. package/lib/module/theme/theme-provider.js.map +1 -1
  228. package/lib/module/theme/types.js +4 -0
  229. package/lib/module/theme/types.js.map +1 -0
  230. package/lib/module/theme/utils/withTextWrapper.js +1 -2
  231. package/lib/module/theme/utils/withTextWrapper.js.map +1 -1
  232. package/lib/typescript/commonjs/src/components/Anchor/index.d.ts.map +1 -1
  233. package/lib/typescript/commonjs/src/components/Avatar/index.d.ts.map +1 -1
  234. package/lib/typescript/commonjs/src/components/Badge/index.d.ts.map +1 -1
  235. package/lib/typescript/commonjs/src/components/Blockquote/index.d.ts.map +1 -1
  236. package/lib/typescript/commonjs/src/components/Button/Button.styles.d.ts +8 -8
  237. package/lib/typescript/commonjs/src/components/Button/index.d.ts.map +1 -1
  238. package/lib/typescript/commonjs/src/components/Center/index.d.ts +1 -2
  239. package/lib/typescript/commonjs/src/components/Center/index.d.ts.map +1 -1
  240. package/lib/typescript/commonjs/src/components/Checkbox/index.d.ts.map +1 -1
  241. package/lib/typescript/commonjs/src/components/Chip/index.d.ts.map +1 -1
  242. package/lib/typescript/commonjs/src/components/Code/index.d.ts.map +1 -1
  243. package/lib/typescript/commonjs/src/components/Container/index.d.ts +2 -2
  244. package/lib/typescript/commonjs/src/components/Container/index.d.ts.map +1 -1
  245. package/lib/typescript/commonjs/src/components/Flex/index.d.ts +2 -2
  246. package/lib/typescript/commonjs/src/components/Flex/index.d.ts.map +1 -1
  247. package/lib/typescript/commonjs/src/components/Grid/index.d.ts.map +1 -1
  248. package/lib/typescript/commonjs/src/components/Highlight/index.d.ts.map +1 -1
  249. package/lib/typescript/commonjs/src/components/Indicator/index.d.ts.map +1 -1
  250. package/lib/typescript/commonjs/src/components/Menu/index.d.ts.map +1 -1
  251. package/lib/typescript/commonjs/src/components/MultiSelect/index.d.ts.map +1 -1
  252. package/lib/typescript/commonjs/src/components/NativeSelect/index.d.ts.map +1 -1
  253. package/lib/typescript/commonjs/src/components/NavLink/index.d.ts.map +1 -1
  254. package/lib/typescript/commonjs/src/components/Notification/index.d.ts.map +1 -1
  255. package/lib/typescript/commonjs/src/components/Pagination/index.d.ts.map +1 -1
  256. package/lib/typescript/commonjs/src/components/PinInput/index.d.ts.map +1 -1
  257. package/lib/typescript/commonjs/src/components/Progress/index.d.ts.map +1 -1
  258. package/lib/typescript/commonjs/src/components/Radio/index.d.ts.map +1 -1
  259. package/lib/typescript/commonjs/src/components/Rating/index.d.ts.map +1 -1
  260. package/lib/typescript/commonjs/src/components/RingProgress/index.d.ts.map +1 -1
  261. package/lib/typescript/commonjs/src/components/Select/index.d.ts.map +1 -1
  262. package/lib/typescript/commonjs/src/components/SimpleGrid/index.d.ts.map +1 -1
  263. package/lib/typescript/commonjs/src/components/Switch/index.d.ts.map +1 -1
  264. package/lib/typescript/commonjs/src/components/Table/index.d.ts +17 -83
  265. package/lib/typescript/commonjs/src/components/Table/index.d.ts.map +1 -1
  266. package/lib/typescript/commonjs/src/components/Text/index.d.ts +54 -7
  267. package/lib/typescript/commonjs/src/components/Text/index.d.ts.map +1 -1
  268. package/lib/typescript/commonjs/src/components/ThemeIcon/index.d.ts.map +1 -1
  269. package/lib/typescript/commonjs/src/components/Timeline/index.d.ts.map +1 -1
  270. package/lib/typescript/commonjs/src/components/Title/index.d.ts +1 -0
  271. package/lib/typescript/commonjs/src/components/Title/index.d.ts.map +1 -1
  272. package/lib/typescript/commonjs/src/components/Tooltip/index.d.ts.map +1 -1
  273. package/lib/typescript/commonjs/src/components/TransferList/index.d.ts.map +1 -1
  274. package/lib/typescript/commonjs/src/components/UnstyledButton/UnstyledButton.styles.d.ts +2 -2
  275. package/lib/typescript/commonjs/src/components/UnstyledButton/UnstyledButton.styles.d.ts.map +1 -1
  276. package/lib/typescript/commonjs/src/components/index.d.ts +1 -1
  277. package/lib/typescript/commonjs/src/components/index.d.ts.map +1 -1
  278. package/lib/typescript/commonjs/src/index.d.ts +1 -1
  279. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  280. package/lib/typescript/commonjs/src/theme/create-styles.d.ts +1 -1
  281. package/lib/typescript/commonjs/src/theme/create-styles.d.ts.map +1 -1
  282. package/lib/typescript/commonjs/src/theme/create-theme.d.ts +68 -2
  283. package/lib/typescript/commonjs/src/theme/create-theme.d.ts.map +1 -1
  284. package/lib/typescript/commonjs/src/theme/default-colors.d.ts +12 -0
  285. package/lib/typescript/commonjs/src/theme/default-colors.d.ts.map +1 -0
  286. package/lib/typescript/commonjs/src/theme/default-theme.d.ts +15 -108
  287. package/lib/typescript/commonjs/src/theme/default-theme.d.ts.map +1 -1
  288. package/lib/typescript/commonjs/src/theme/functions/attach-functions.d.ts +20 -1
  289. package/lib/typescript/commonjs/src/theme/functions/attach-functions.d.ts.map +1 -1
  290. package/lib/typescript/commonjs/src/theme/functions/fns/breakpoints.d.ts +3 -3
  291. package/lib/typescript/commonjs/src/theme/functions/fns/breakpoints.d.ts.map +1 -1
  292. package/lib/typescript/commonjs/src/theme/functions/fns/color-scheme-value.d.ts +100 -0
  293. package/lib/typescript/commonjs/src/theme/functions/fns/color-scheme-value.d.ts.map +1 -0
  294. package/lib/typescript/commonjs/src/theme/functions/fns/dimmed.d.ts +2 -2
  295. package/lib/typescript/commonjs/src/theme/functions/fns/dimmed.d.ts.map +1 -1
  296. package/lib/typescript/commonjs/src/theme/functions/fns/gradient/gradient.d.ts +2 -3
  297. package/lib/typescript/commonjs/src/theme/functions/fns/gradient/gradient.d.ts.map +1 -1
  298. package/lib/typescript/commonjs/src/theme/functions/fns/helpers.d.ts +36 -8
  299. package/lib/typescript/commonjs/src/theme/functions/fns/helpers.d.ts.map +1 -1
  300. package/lib/typescript/commonjs/src/theme/functions/fns/index.d.ts +40 -14
  301. package/lib/typescript/commonjs/src/theme/functions/fns/index.d.ts.map +1 -1
  302. package/lib/typescript/commonjs/src/theme/functions/fns/primary-shade.d.ts +53 -3
  303. package/lib/typescript/commonjs/src/theme/functions/fns/primary-shade.d.ts.map +1 -1
  304. package/lib/typescript/commonjs/src/theme/functions/fns/shadow.d.ts +1 -1
  305. package/lib/typescript/commonjs/src/theme/functions/fns/shadow.d.ts.map +1 -1
  306. package/lib/typescript/commonjs/src/theme/functions/fns/size.d.ts +2 -2
  307. package/lib/typescript/commonjs/src/theme/functions/fns/size.d.ts.map +1 -1
  308. package/lib/typescript/commonjs/src/theme/functions/fns/theme-color/color-utils.d.ts +50 -0
  309. package/lib/typescript/commonjs/src/theme/functions/fns/theme-color/color-utils.d.ts.map +1 -0
  310. package/lib/typescript/commonjs/src/theme/functions/fns/theme-color/theme-color.d.ts +51 -5
  311. package/lib/typescript/commonjs/src/theme/functions/fns/theme-color/theme-color.d.ts.map +1 -1
  312. package/lib/typescript/commonjs/src/theme/functions/fns/variant.d.ts +52 -19
  313. package/lib/typescript/commonjs/src/theme/functions/fns/variant.d.ts.map +1 -1
  314. package/lib/typescript/commonjs/src/theme/functions/index.d.ts +19 -0
  315. package/lib/typescript/commonjs/src/theme/functions/index.d.ts.map +1 -0
  316. package/lib/typescript/commonjs/src/theme/index.d.ts +9 -6
  317. package/lib/typescript/commonjs/src/theme/index.d.ts.map +1 -1
  318. package/lib/typescript/commonjs/src/theme/theme-provider.d.ts +1 -1
  319. package/lib/typescript/commonjs/src/theme/theme-provider.d.ts.map +1 -1
  320. package/lib/typescript/commonjs/src/theme/types.d.ts +494 -0
  321. package/lib/typescript/commonjs/src/theme/types.d.ts.map +1 -0
  322. package/lib/typescript/commonjs/src/theme/utils/withTextWrapper.d.ts +1 -1
  323. package/lib/typescript/commonjs/src/theme/utils/withTextWrapper.d.ts.map +1 -1
  324. package/lib/typescript/module/src/components/Anchor/index.d.ts.map +1 -1
  325. package/lib/typescript/module/src/components/Avatar/index.d.ts.map +1 -1
  326. package/lib/typescript/module/src/components/Badge/index.d.ts.map +1 -1
  327. package/lib/typescript/module/src/components/Blockquote/index.d.ts.map +1 -1
  328. package/lib/typescript/module/src/components/Button/Button.styles.d.ts +8 -8
  329. package/lib/typescript/module/src/components/Button/index.d.ts.map +1 -1
  330. package/lib/typescript/module/src/components/Center/index.d.ts +1 -2
  331. package/lib/typescript/module/src/components/Center/index.d.ts.map +1 -1
  332. package/lib/typescript/module/src/components/Checkbox/index.d.ts.map +1 -1
  333. package/lib/typescript/module/src/components/Chip/index.d.ts.map +1 -1
  334. package/lib/typescript/module/src/components/Code/index.d.ts.map +1 -1
  335. package/lib/typescript/module/src/components/Container/index.d.ts +2 -2
  336. package/lib/typescript/module/src/components/Container/index.d.ts.map +1 -1
  337. package/lib/typescript/module/src/components/Flex/index.d.ts +2 -2
  338. package/lib/typescript/module/src/components/Flex/index.d.ts.map +1 -1
  339. package/lib/typescript/module/src/components/Grid/index.d.ts.map +1 -1
  340. package/lib/typescript/module/src/components/Highlight/index.d.ts.map +1 -1
  341. package/lib/typescript/module/src/components/Indicator/index.d.ts.map +1 -1
  342. package/lib/typescript/module/src/components/Menu/index.d.ts.map +1 -1
  343. package/lib/typescript/module/src/components/MultiSelect/index.d.ts.map +1 -1
  344. package/lib/typescript/module/src/components/NativeSelect/index.d.ts.map +1 -1
  345. package/lib/typescript/module/src/components/NavLink/index.d.ts.map +1 -1
  346. package/lib/typescript/module/src/components/Notification/index.d.ts.map +1 -1
  347. package/lib/typescript/module/src/components/Pagination/index.d.ts.map +1 -1
  348. package/lib/typescript/module/src/components/PinInput/index.d.ts.map +1 -1
  349. package/lib/typescript/module/src/components/Progress/index.d.ts.map +1 -1
  350. package/lib/typescript/module/src/components/Radio/index.d.ts.map +1 -1
  351. package/lib/typescript/module/src/components/Rating/index.d.ts.map +1 -1
  352. package/lib/typescript/module/src/components/RingProgress/index.d.ts.map +1 -1
  353. package/lib/typescript/module/src/components/Select/index.d.ts.map +1 -1
  354. package/lib/typescript/module/src/components/SimpleGrid/index.d.ts.map +1 -1
  355. package/lib/typescript/module/src/components/Switch/index.d.ts.map +1 -1
  356. package/lib/typescript/module/src/components/Table/index.d.ts +17 -83
  357. package/lib/typescript/module/src/components/Table/index.d.ts.map +1 -1
  358. package/lib/typescript/module/src/components/Text/index.d.ts +54 -7
  359. package/lib/typescript/module/src/components/Text/index.d.ts.map +1 -1
  360. package/lib/typescript/module/src/components/ThemeIcon/index.d.ts.map +1 -1
  361. package/lib/typescript/module/src/components/Timeline/index.d.ts.map +1 -1
  362. package/lib/typescript/module/src/components/Title/index.d.ts +1 -0
  363. package/lib/typescript/module/src/components/Title/index.d.ts.map +1 -1
  364. package/lib/typescript/module/src/components/Tooltip/index.d.ts.map +1 -1
  365. package/lib/typescript/module/src/components/TransferList/index.d.ts.map +1 -1
  366. package/lib/typescript/module/src/components/UnstyledButton/UnstyledButton.styles.d.ts +2 -2
  367. package/lib/typescript/module/src/components/UnstyledButton/UnstyledButton.styles.d.ts.map +1 -1
  368. package/lib/typescript/module/src/components/index.d.ts +1 -1
  369. package/lib/typescript/module/src/components/index.d.ts.map +1 -1
  370. package/lib/typescript/module/src/index.d.ts +1 -1
  371. package/lib/typescript/module/src/index.d.ts.map +1 -1
  372. package/lib/typescript/module/src/theme/create-styles.d.ts +1 -1
  373. package/lib/typescript/module/src/theme/create-styles.d.ts.map +1 -1
  374. package/lib/typescript/module/src/theme/create-theme.d.ts +68 -2
  375. package/lib/typescript/module/src/theme/create-theme.d.ts.map +1 -1
  376. package/lib/typescript/module/src/theme/default-colors.d.ts +12 -0
  377. package/lib/typescript/module/src/theme/default-colors.d.ts.map +1 -0
  378. package/lib/typescript/module/src/theme/default-theme.d.ts +15 -108
  379. package/lib/typescript/module/src/theme/default-theme.d.ts.map +1 -1
  380. package/lib/typescript/module/src/theme/functions/attach-functions.d.ts +20 -1
  381. package/lib/typescript/module/src/theme/functions/attach-functions.d.ts.map +1 -1
  382. package/lib/typescript/module/src/theme/functions/fns/breakpoints.d.ts +3 -3
  383. package/lib/typescript/module/src/theme/functions/fns/breakpoints.d.ts.map +1 -1
  384. package/lib/typescript/module/src/theme/functions/fns/color-scheme-value.d.ts +100 -0
  385. package/lib/typescript/module/src/theme/functions/fns/color-scheme-value.d.ts.map +1 -0
  386. package/lib/typescript/module/src/theme/functions/fns/dimmed.d.ts +2 -2
  387. package/lib/typescript/module/src/theme/functions/fns/dimmed.d.ts.map +1 -1
  388. package/lib/typescript/module/src/theme/functions/fns/gradient/gradient.d.ts +2 -3
  389. package/lib/typescript/module/src/theme/functions/fns/gradient/gradient.d.ts.map +1 -1
  390. package/lib/typescript/module/src/theme/functions/fns/helpers.d.ts +36 -8
  391. package/lib/typescript/module/src/theme/functions/fns/helpers.d.ts.map +1 -1
  392. package/lib/typescript/module/src/theme/functions/fns/index.d.ts +40 -14
  393. package/lib/typescript/module/src/theme/functions/fns/index.d.ts.map +1 -1
  394. package/lib/typescript/module/src/theme/functions/fns/primary-shade.d.ts +53 -3
  395. package/lib/typescript/module/src/theme/functions/fns/primary-shade.d.ts.map +1 -1
  396. package/lib/typescript/module/src/theme/functions/fns/shadow.d.ts +1 -1
  397. package/lib/typescript/module/src/theme/functions/fns/shadow.d.ts.map +1 -1
  398. package/lib/typescript/module/src/theme/functions/fns/size.d.ts +2 -2
  399. package/lib/typescript/module/src/theme/functions/fns/size.d.ts.map +1 -1
  400. package/lib/typescript/module/src/theme/functions/fns/theme-color/color-utils.d.ts +50 -0
  401. package/lib/typescript/module/src/theme/functions/fns/theme-color/color-utils.d.ts.map +1 -0
  402. package/lib/typescript/module/src/theme/functions/fns/theme-color/theme-color.d.ts +51 -5
  403. package/lib/typescript/module/src/theme/functions/fns/theme-color/theme-color.d.ts.map +1 -1
  404. package/lib/typescript/module/src/theme/functions/fns/variant.d.ts +52 -19
  405. package/lib/typescript/module/src/theme/functions/fns/variant.d.ts.map +1 -1
  406. package/lib/typescript/module/src/theme/functions/index.d.ts +19 -0
  407. package/lib/typescript/module/src/theme/functions/index.d.ts.map +1 -0
  408. package/lib/typescript/module/src/theme/index.d.ts +9 -6
  409. package/lib/typescript/module/src/theme/index.d.ts.map +1 -1
  410. package/lib/typescript/module/src/theme/theme-provider.d.ts +1 -1
  411. package/lib/typescript/module/src/theme/theme-provider.d.ts.map +1 -1
  412. package/lib/typescript/module/src/theme/types.d.ts +494 -0
  413. package/lib/typescript/module/src/theme/types.d.ts.map +1 -0
  414. package/lib/typescript/module/src/theme/utils/withTextWrapper.d.ts +1 -1
  415. package/lib/typescript/module/src/theme/utils/withTextWrapper.d.ts.map +1 -1
  416. package/package.json +1 -1
  417. package/src/components/ActionIcon/ActionIcon.tsx +3 -3
  418. package/src/components/Anchor/index.tsx +3 -4
  419. package/src/components/Avatar/index.tsx +1 -2
  420. package/src/components/Badge/index.tsx +36 -19
  421. package/src/components/Blockquote/index.tsx +4 -6
  422. package/src/components/Button/index.tsx +5 -1
  423. package/src/components/Center/index.tsx +1 -2
  424. package/src/components/Checkbox/index.tsx +4 -5
  425. package/src/components/Chip/index.tsx +25 -18
  426. package/src/components/Code/index.tsx +7 -5
  427. package/src/components/Container/index.tsx +2 -2
  428. package/src/components/Flex/index.tsx +2 -2
  429. package/src/components/Grid/index.tsx +16 -10
  430. package/src/components/Highlight/index.tsx +1 -2
  431. package/src/components/Indicator/index.tsx +3 -4
  432. package/src/components/Menu/index.tsx +8 -10
  433. package/src/components/MultiSelect/index.tsx +13 -15
  434. package/src/components/NativeSelect/index.tsx +34 -21
  435. package/src/components/NavLink/index.tsx +27 -23
  436. package/src/components/Notification/index.tsx +5 -6
  437. package/src/components/Pagination/index.tsx +5 -6
  438. package/src/components/PinInput/index.tsx +5 -6
  439. package/src/components/Progress/index.tsx +5 -6
  440. package/src/components/Radio/index.tsx +4 -5
  441. package/src/components/Rating/index.tsx +2 -4
  442. package/src/components/RingProgress/index.tsx +93 -62
  443. package/src/components/Select/index.tsx +11 -13
  444. package/src/components/SimpleGrid/index.tsx +5 -2
  445. package/src/components/Spoiler/index.tsx +1 -1
  446. package/src/components/Stepper/index.tsx +17 -17
  447. package/src/components/Switch/index.tsx +5 -6
  448. package/src/components/Table/index.tsx +333 -413
  449. package/src/components/Text/index.tsx +125 -28
  450. package/src/components/ThemeIcon/index.tsx +23 -23
  451. package/src/components/Timeline/index.tsx +12 -15
  452. package/src/components/Title/index.tsx +5 -22
  453. package/src/components/Tooltip/index.tsx +1 -3
  454. package/src/components/TransferList/index.tsx +16 -18
  455. package/src/components/UnstyledButton/UnstyledButton.styles.ts +4 -2
  456. package/src/components/index.tsx +3 -1
  457. package/src/index.tsx +1 -1
  458. package/src/theme/create-styles.ts +1 -1
  459. package/src/theme/create-theme.ts +134 -23
  460. package/src/theme/default-colors.ts +252 -0
  461. package/src/theme/default-theme.ts +178 -392
  462. package/src/theme/functions/attach-functions.ts +57 -10
  463. package/src/theme/functions/fns/breakpoints.ts +4 -4
  464. package/src/theme/functions/fns/color-scheme-value.ts +200 -0
  465. package/src/theme/functions/fns/dimmed.ts +2 -2
  466. package/src/theme/functions/fns/gradient/gradient.ts +2 -3
  467. package/src/theme/functions/fns/helpers.ts +50 -9
  468. package/src/theme/functions/fns/index.ts +63 -3
  469. package/src/theme/functions/fns/primary-shade.ts +84 -8
  470. package/src/theme/functions/fns/shadow.ts +1 -1
  471. package/src/theme/functions/fns/size.ts +4 -3
  472. package/src/theme/functions/fns/theme-color/color-utils.ts +193 -0
  473. package/src/theme/functions/fns/theme-color/theme-color.ts +85 -17
  474. package/src/theme/functions/fns/variant.ts +106 -44
  475. package/src/theme/functions/index.ts +19 -0
  476. package/src/theme/index.ts +91 -0
  477. package/src/theme/theme-provider.tsx +2 -17
  478. package/src/theme/types.ts +625 -0
  479. package/src/theme/utils/withTextWrapper.tsx +2 -3
  480. package/lib/commonjs/components/Table/Table.example.js +0 -323
  481. package/lib/commonjs/components/Table/Table.example.js.map +0 -1
  482. package/lib/module/components/Table/Table.example.js +0 -318
  483. package/lib/module/components/Table/Table.example.js.map +0 -1
  484. package/lib/typescript/commonjs/src/components/Table/Table.example.d.ts +0 -13
  485. package/lib/typescript/commonjs/src/components/Table/Table.example.d.ts.map +0 -1
  486. package/lib/typescript/module/src/components/Table/Table.example.d.ts +0 -13
  487. package/lib/typescript/module/src/components/Table/Table.example.d.ts.map +0 -1
  488. package/src/components/Table/Table.example.tsx +0 -215
  489. package/src/theme/index.tsx +0 -9
@@ -1,109 +1,16 @@
1
- import type { Palette } from './theme';
2
- export declare const DEFAULT_COLORS: {
3
- [key: string]: Palette;
4
- };
5
- export declare const _DEFAULT_THEME: MantineTheme;
6
- export declare const DEFAULT_THEME: any;
7
- type ColorScheme = {
8
- text: string;
9
- background: string;
10
- backgroundSecondary?: string;
11
- backgroundThird?: string;
12
- tint: string;
13
- tabIconDefault: string;
14
- tabIconSelected: string;
15
- };
16
- export type ThemeSize = {
17
- xs: number;
18
- sm: number;
19
- md: number;
20
- lg: number;
21
- xl: number;
22
- };
23
- export type HeadingStyle = {
24
- fontSize: number;
25
- lineHeight: number;
26
- fontWeight?: number;
27
- };
28
- export type MantineHeadings = {
29
- fontFamily?: string;
30
- fontWeight?: string;
31
- sizes: {
32
- h1: HeadingStyle;
33
- h2: HeadingStyle;
34
- h3: HeadingStyle;
35
- h4: HeadingStyle;
36
- h5: HeadingStyle;
37
- h6: HeadingStyle;
38
- };
39
- };
40
- export type FontWeights = {
41
- thin: string;
42
- extralight: string;
43
- light: string;
44
- normal: string;
45
- medium: string;
46
- semibold: string;
47
- bold: string;
48
- extrabold: string;
49
- black: string;
50
- };
51
- export type themeMode = 'dark' | 'light';
52
- type Shade = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
53
- export interface MantinePrimaryShade {
54
- light: Shade;
55
- dark: Shade;
56
- }
57
- export type MantineTheme = {
58
- fontFamily: string;
59
- fontFamilyBold: string;
60
- fontFamilySemiBold: string;
61
- fontFamilyInput: string;
62
- fontFamilyMonospace: string;
63
- fontWeights: FontWeights;
64
- localColor: string;
65
- currentMode?: themeMode;
66
- toggleMode?: () => void;
67
- primaryShade: Shade | MantinePrimaryShade;
68
- colors: {
69
- [key: string]: Palette;
70
- };
71
- primaryColor: string;
72
- secondaryColor: string;
73
- secondaryBgColor: string;
74
- white: string;
75
- black: string;
76
- defaultGradient?: {
77
- from: string;
78
- to: string;
79
- deg: number;
80
- };
81
- light: ColorScheme;
82
- dark: ColorScheme;
83
- other: {
84
- [key: string]: any;
85
- };
86
- shadows: {
87
- xs: any;
88
- sm: any;
89
- md: any;
90
- lg: any;
91
- xl: any;
92
- [key: string]: any;
93
- };
94
- radius: ThemeSize;
95
- fontSizes: ThemeSize;
96
- breakpoints: ThemeSize;
97
- headings: MantineHeadings;
98
- window: {
99
- width: number;
100
- height: number;
101
- };
102
- primaryBgColor: string;
103
- primaryTextColor: string;
104
- isIOS?: boolean;
105
- OSVersion?: any;
106
- [key: string]: any;
107
- };
108
- export {};
1
+ /**
2
+ * Default Mantine React Native theme
3
+ * Aligned with Mantine web v6 architecture with React Native adaptations
4
+ */
5
+ import type { MantineTheme as MantineThemeType, MantineThemeBase } from './types';
6
+ /**
7
+ * Base theme configuration (without functions)
8
+ * Matches Mantine web structure with React Native-specific adaptations
9
+ */
10
+ export declare const _DEFAULT_THEME: MantineThemeBase;
11
+ /**
12
+ * Default Mantine theme with attached helper functions
13
+ * This is the main theme object exported for use
14
+ */
15
+ export declare const DEFAULT_THEME: MantineThemeType;
109
16
  //# sourceMappingURL=default-theme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"default-theme.d.ts","sourceRoot":"","sources":["../../../../../src/theme/default-theme.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,eAAO,MAAM,cAAc,EAAE;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAuLxB,CAAC;AAKF,eAAO,MAAM,cAAc,EAAE,YAgK5B,CAAC;AAEF,eAAO,MAAM,aAAa,KAAkC,CAAC;AAE7D,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE;QACL,EAAE,EAAE,YAAY,CAAC;QACjB,EAAE,EAAE,YAAY,CAAC;QACjB,EAAE,EAAE,YAAY,CAAC;QACjB,EAAE,EAAE,YAAY,CAAC;QACjB,EAAE,EAAE,YAAY,CAAC;QACjB,EAAE,EAAE,YAAY,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAEzC,KAAK,KAAK,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEnD,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,KAAK,CAAC;CACb;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,EAAE,WAAW,CAAC;IAEzB,UAAU,EAAE,MAAM,CAAC;IAEnB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,YAAY,EAAE,KAAK,GAAG,mBAAmB,CAAC;IAC1C,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,EAAE,EAAE,MAAM,CAAC;QACX,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IAEF,KAAK,EAAE,WAAW,CAAC;IACnB,IAAI,EAAE,WAAW,CAAC;IAElB,KAAK,EAAE;QACL,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;IACF,OAAO,EAAE;QACP,EAAE,EAAE,GAAG,CAAC;QACR,EAAE,EAAE,GAAG,CAAC;QACR,EAAE,EAAE,GAAG,CAAC;QACR,EAAE,EAAE,GAAG,CAAC;QACR,EAAE,EAAE,GAAG,CAAC;QACR,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;IACF,MAAM,EAAE,SAAS,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,SAAS,CAAC;IACvB,QAAQ,EAAE,eAAe,CAAC;IAC1B,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IAEzB,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB,SAAS,CAAC,EAAE,GAAG,CAAC;IAEhB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC"}
1
+ {"version":3,"file":"default-theme.d.ts","sourceRoot":"","sources":["../../../../../src/theme/default-theme.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,KAAK,EACV,YAAY,IAAI,gBAAgB,EAChC,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAEjB;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,gBAwO5B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,gBAAkD,CAAC"}
@@ -1,2 +1,21 @@
1
- export declare function attachFunctions(themeBase: any): any;
1
+ /**
2
+ * Attach helper functions to theme object
3
+ * Creates theme.fn object with all utility functions
4
+ * Aligned with Mantine web's theme function attachment pattern
5
+ */
6
+ import type { MantineTheme, MantineThemeBase } from '../types';
7
+ /**
8
+ * Attach helper functions to theme base object
9
+ * Converts MantineThemeBase to full MantineTheme with fn object
10
+ *
11
+ * @param themeBase - Base theme configuration without functions
12
+ * @returns Complete theme with attached helper functions
13
+ *
14
+ * @example
15
+ * const theme = attachFunctions(baseTheme);
16
+ * theme.fn.themeColor('blue', 5); // '#339af0'
17
+ * theme.fn.primaryShade(); // 6
18
+ * theme.fn.variant({ variant: 'filled', color: 'blue' });
19
+ */
20
+ export declare function attachFunctions(themeBase: MantineThemeBase): MantineTheme;
2
21
  //# sourceMappingURL=attach-functions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"attach-functions.d.ts","sourceRoot":"","sources":["../../../../../../src/theme/functions/attach-functions.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,SAAS,EAAE,GAAG,GAAG,GAAG,CA0BnD"}
1
+ {"version":3,"file":"attach-functions.d.ts","sourceRoot":"","sources":["../../../../../../src/theme/functions/attach-functions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAQ/D;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,gBAAgB,GAAG,YAAY,CAgDzE"}
@@ -1,15 +1,15 @@
1
- import type { MantineTheme } from '../../default-theme';
1
+ import type { MantineThemeBase } from '../../types';
2
2
  export type MantineNumberSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number;
3
3
  /**
4
4
  * Returns true if current screen width is larger than the specified breakpoint
5
5
  * @param theme - The Mantine theme
6
6
  * @returns A function that takes a breakpoint and returns a boolean
7
7
  */
8
- export declare function largerThan(theme: MantineTheme): (breakpoint: MantineNumberSize) => boolean;
8
+ export declare function largerThan(theme: MantineThemeBase): (breakpoint: MantineNumberSize) => boolean;
9
9
  /**
10
10
  * Returns true if current screen width is smaller than the specified breakpoint
11
11
  * @param theme - The Mantine theme
12
12
  * @returns A function that takes a breakpoint and returns a boolean
13
13
  */
14
- export declare function smallerThan(theme: MantineTheme): (breakpoint: MantineNumberSize) => boolean;
14
+ export declare function smallerThan(theme: MantineThemeBase): (breakpoint: MantineNumberSize) => boolean;
15
15
  //# sourceMappingURL=breakpoints.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/breakpoints.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAcxD,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAsB1E;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,YAAY,IACpC,YAAY,iBAAiB,KAAG,OAAO,CAKhD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,YAAY,IACrC,YAAY,iBAAiB,KAAG,OAAO,CAKhD"}
1
+ {"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/breakpoints.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAcpD,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAsB1E;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,gBAAgB,IACxC,YAAY,iBAAiB,KAAG,OAAO,CAKhD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,IACzC,YAAY,iBAAiB,KAAG,OAAO,CAKhD"}
@@ -0,0 +1,100 @@
1
+ /**
2
+ * Color scheme value helper
3
+ * Returns different values based on the current color scheme (light or dark mode)
4
+ * Useful for theme-aware constants like colors, spacing, etc.
5
+ */
6
+ import type { MantineThemeBase, ColorScheme } from '../../types';
7
+ /**
8
+ * Color scheme value type
9
+ * Represents a value that has different values for light and dark modes
10
+ */
11
+ export interface ColorSchemeValue<T = any> {
12
+ light: T;
13
+ dark: T;
14
+ }
15
+ /**
16
+ * Type helper to resolve ColorSchemeValue types to their base types
17
+ * Recursively transforms ColorSchemeValue<T> to T in object structures
18
+ */
19
+ export type ResolveColorSchemeValue<T> = T extends ColorSchemeValue<infer U> ? U : T extends Record<string, any> ? {
20
+ [K in keyof T]: ResolveColorSchemeValue<T[K]>;
21
+ } : T;
22
+ /**
23
+ * Check if a value is a color scheme value object
24
+ * @param value - Value to check
25
+ * @returns True if value is a ColorSchemeValue object
26
+ */
27
+ export declare function isColorSchemeValue<T = any>(value: any): value is ColorSchemeValue<T>;
28
+ /**
29
+ * Create a color scheme-aware value
30
+ * Returns an object with light and dark values
31
+ *
32
+ * @param light - Value for light mode
33
+ * @param dark - Value for dark mode
34
+ * @returns ColorSchemeValue object
35
+ *
36
+ * @example
37
+ * const backgroundColor = colorSchemeValue('#FCFCFC', '#272727');
38
+ * // { light: '#FCFCFC', dark: '#272727' }
39
+ */
40
+ export declare function colorSchemeValue<T = any>(light: T, dark: T): ColorSchemeValue<T>;
41
+ /**
42
+ * Get the appropriate value based on color scheme
43
+ * If the value is a ColorSchemeValue object, returns the appropriate value
44
+ * Otherwise, returns the value as-is
45
+ *
46
+ * @param value - Value or ColorSchemeValue object
47
+ * @param colorScheme - Current color scheme
48
+ * @returns Resolved value for the current color scheme
49
+ *
50
+ * @example
51
+ * const bgColor = resolveColorSchemeValue({ light: '#fff', dark: '#000' }, 'dark');
52
+ * // '#000'
53
+ *
54
+ * @example
55
+ * const fixedColor = resolveColorSchemeValue('#blue', 'dark');
56
+ * // '#blue'
57
+ */
58
+ export declare function resolveColorSchemeValue<T = any>(value: T | ColorSchemeValue<T>, colorScheme: ColorScheme): T;
59
+ /**
60
+ * Create a theme function that resolves color scheme values
61
+ * This is attached to theme.fn.colorSchemeValue
62
+ *
63
+ * @param theme - Mantine theme base
64
+ * @returns Function that resolves color scheme values based on current theme
65
+ */
66
+ export declare const createColorSchemeValueFunction: (theme: MantineThemeBase) => <T = any>(value: T | ColorSchemeValue<T>) => T;
67
+ /**
68
+ * Helper to create a set of color scheme-aware constants
69
+ * Converts an object with ColorSchemeValue properties into resolved values
70
+ *
71
+ * @param constants - Object with ColorSchemeValue properties
72
+ * @param colorScheme - Current color scheme
73
+ * @returns Object with resolved values
74
+ *
75
+ * @example
76
+ * const constants = {
77
+ * text: { light: '#000', dark: '#fff' },
78
+ * background: { light: '#FCFCFC', dark: '#272727' },
79
+ * primaryButtonBackground: { light: '#00203E', dark: '#2581C4' },
80
+ * fixedColor: '#blue', // Non-scheme values pass through
81
+ * };
82
+ *
83
+ * const resolved = resolveColorSchemeConstants(constants, 'dark');
84
+ * // {
85
+ * // text: '#fff',
86
+ * // background: '#272727',
87
+ * // primaryButtonBackground: '#2581C4',
88
+ * // fixedColor: '#blue'
89
+ * // }
90
+ */
91
+ export declare function resolveColorSchemeConstants<T extends Record<string, any>>(constants: T, colorScheme: ColorScheme): ResolveColorSchemeValue<T>;
92
+ /**
93
+ * Create a theme function that resolves color scheme constants
94
+ * This is attached to theme.fn.colorSchemeConstants
95
+ *
96
+ * @param theme - Mantine theme base
97
+ * @returns Function that resolves all constants in an object based on current theme
98
+ */
99
+ export declare const createColorSchemeConstantsFunction: (theme: MantineThemeBase) => <T extends Record<string, any>>(constants: T) => ResolveColorSchemeValue<T>;
100
+ //# sourceMappingURL=color-scheme-value.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color-scheme-value.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/color-scheme-value.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEjE;;;GAGG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAG,GAAG;IACvC,KAAK,EAAE,CAAC,CAAC;IACT,IAAI,EAAE,CAAC,CAAC;CACT;AAED;;;GAGG;AACH,MAAM,MAAM,uBAAuB,CAAC,CAAC,IAAI,CAAC,SAAS,gBAAgB,CAAC,MAAM,CAAC,CAAC,GACxE,CAAC,GACD,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC7B;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACjD,CAAC,CAAC;AAEN;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,GAAG,GAAG,EAAE,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAQpF;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,GAAG,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAEhF;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,GAAG,GAAG,EAC7C,KAAK,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,EAC9B,WAAW,EAAE,WAAW,GACvB,CAAC,CAKH;AAED;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,GAAI,OAAO,gBAAgB,MAmB5D,CAAC,GAAG,GAAG,EAAE,OAAO,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,KAAG,CAGnD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,2BAA2B,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACvE,SAAS,EAAE,CAAC,EACZ,WAAW,EAAE,WAAW,GACvB,uBAAuB,CAAC,CAAC,CAAC,CAoB5B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC,GAAI,OAAO,gBAAgB,MAwBhE,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,WAAW,CAAC,KAAG,uBAAuB,CAAC,CAAC,CAGhF,CAAC"}
@@ -1,9 +1,9 @@
1
- import type { MantineTheme } from '../../default-theme';
1
+ import type { MantineThemeBase } from '../../types';
2
2
  /**
3
3
  * Returns a dimmed text color based on the current color scheme
4
4
  * Used for secondary text and less prominent UI elements
5
5
  * @param theme - The Mantine theme
6
6
  * @returns A function that returns the dimmed color
7
7
  */
8
- export declare function dimmed(theme: MantineTheme): () => string;
8
+ export declare function dimmed(theme: MantineThemeBase): () => string;
9
9
  //# sourceMappingURL=dimmed.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dimmed.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/dimmed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,YAAY,gBAOzC"}
1
+ {"version":3,"file":"dimmed.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/dimmed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,gBAAgB,gBAO7C"}
@@ -1,10 +1,9 @@
1
- import type { MantineTheme } from '../../../default-theme';
2
- import type { MantineGradient, GradientConfig } from '../../../theme.d';
1
+ import type { MantineThemeBase, MantineGradient, GradientConfig } from '../../../types';
3
2
  /**
4
3
  * Creates a gradient configuration for use with expo-linear-gradient
5
4
  * Returns gradient colors and coordinates based on theme gradient settings
6
5
  */
7
- export declare function gradient(theme: MantineTheme): (payload?: MantineGradient) => GradientConfig;
6
+ export declare function gradient(theme: MantineThemeBase): (payload?: MantineGradient) => GradientConfig;
8
7
  /**
9
8
  * Legacy function for web compatibility - returns gradient string
10
9
  * Not used in React Native but kept for API compatibility
@@ -1 +1 @@
1
- {"version":3,"file":"gradient.d.ts","sourceRoot":"","sources":["../../../../../../../../src/theme/functions/fns/gradient/gradient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AA6BxE;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,YAAY,IAClC,UAAU,eAAe,KAAG,cAAc,CAmBnD;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,UAEpE"}
1
+ {"version":3,"file":"gradient.d.ts","sourceRoot":"","sources":["../../../../../../../../src/theme/functions/fns/gradient/gradient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AA6BxF;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,gBAAgB,IACtC,UAAU,eAAe,KAAG,cAAc,CAmBnD;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,UAEpE"}
@@ -1,26 +1,54 @@
1
- import type { MantineTheme } from '../../default-theme';
2
- export declare const fontStyles: (theme: MantineTheme) => () => {
1
+ import type { MantineThemeBase, MantineNumberSize } from '../../types';
2
+ import type { TextStyle } from 'react-native';
3
+ /**
4
+ * Returns base font styles from theme
5
+ * Includes fontFamily and lineHeight
6
+ */
7
+ export declare const fontStyles: (theme: MantineThemeBase) => () => {
3
8
  fontFamily: string;
9
+ lineHeight: number;
4
10
  };
5
11
  /**
6
12
  * Returns font styles specifically for input components
7
13
  */
8
- export declare const inputFontStyles: (theme: MantineTheme) => () => {
14
+ export declare const inputFontStyles: (theme: MantineThemeBase) => () => {
15
+ fontFamily: string;
16
+ fontSize: number;
17
+ lineHeight: number;
18
+ };
19
+ /**
20
+ * Get font size from theme
21
+ * @param size - Size key or number
22
+ */
23
+ export declare const fontSize: (theme: MantineThemeBase) => (size: MantineNumberSize) => number;
24
+ /**
25
+ * Get line height from theme
26
+ * @param size - Size key or number (unitless multiplier)
27
+ */
28
+ export declare const lineHeight: (theme: MantineThemeBase) => (size: MantineNumberSize) => number;
29
+ /**
30
+ * Get heading styles by order
31
+ * @param order - Heading level (1-6)
32
+ */
33
+ export declare const headingStyles: (theme: MantineThemeBase) => (order: 1 | 2 | 3 | 4 | 5 | 6) => {
34
+ fontSize: number;
35
+ lineHeight: number;
36
+ fontWeight: TextStyle["fontWeight"];
9
37
  fontFamily: string;
10
38
  };
11
- export declare const focusStyles: (_theme: MantineTheme) => () => {};
12
- export declare const placeholderStyles: (_theme: MantineTheme) => () => {
39
+ export declare const focusStyles: (_theme: MantineThemeBase) => () => {};
40
+ export declare const placeholderStyles: (_theme: MantineThemeBase) => () => {
13
41
  opacity: number;
14
42
  };
15
- export declare const cover: (_theme: MantineTheme) => (offset?: number) => {
43
+ export declare const cover: (_theme: MantineThemeBase) => (offset?: number) => {
16
44
  position: "absolute";
17
45
  top: number;
18
46
  right: number;
19
47
  bottom: number;
20
48
  left: number;
21
49
  };
22
- export declare const hover: (_theme: MantineTheme) => (styles: any) => any;
23
- export declare const activeStyles: (_theme: MantineTheme) => {
50
+ export declare const hover: (_theme: MantineThemeBase) => (styles: any) => any;
51
+ export declare const activeStyles: (_theme: MantineThemeBase) => {
24
52
  opacity: number;
25
53
  transform: {
26
54
  scale: number;
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,eAAO,MAAM,UAAU,GAAI,OAAO,YAAY;;CAE5C,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,YAAY;;CAIlD,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,QAAQ,YAAY,aAI9C,CAAC;AAEH,eAAO,MAAM,iBAAiB,GAAI,QAAQ,YAAY;;CAGpD,CAAC;AAEH,eAAO,MAAM,KAAK,GACf,QAAQ,YAAY,MACpB,SAAQ,MAAU;;;;;;CAMjB,CAAC;AAEL,eAAO,MAAM,KAAK,GAAI,QAAQ,YAAY,MAAM,QAAQ,GAAG,QAIzD,CAAC;AAEH,eAAO,MAAM,YAAY,GAAI,QAAQ,YAAY;;;;;CAI/C,CAAC"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,gBAAgB;;;CAGhD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,gBAAgB;;;;CAMtD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,GAAI,OAAO,gBAAgB,MAAM,MAAM,iBAAiB,WAE5E,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,gBAAgB,MAAM,MAAM,iBAAiB,WAE9E,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,gBAAgB,MAAM,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC;;;gBAOQ,SAAS,CAAC,YAAY,CAAC;;CAGrH,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,QAAQ,gBAAgB,aAIlD,CAAC;AAEH,eAAO,MAAM,iBAAiB,GAAI,QAAQ,gBAAgB;;CAGxD,CAAC;AAEH,eAAO,MAAM,KAAK,GACf,QAAQ,gBAAgB,MACxB,SAAQ,MAAU;;;;;;CAMjB,CAAC;AAEL,eAAO,MAAM,KAAK,GAAI,QAAQ,gBAAgB,MAAM,QAAQ,GAAG,QAI7D,CAAC;AAEH,eAAO,MAAM,YAAY,GAAI,QAAQ,gBAAgB;;;;;CAInD,CAAC"}
@@ -1,51 +1,77 @@
1
+ /**
2
+ * Theme helper functions
3
+ * Exports all utility functions for theme manipulation
4
+ */
1
5
  import { radius } from './radius';
2
6
  import { rgba } from './rgba';
3
7
  import { size } from './size';
4
8
  import { themeColor } from './theme-color/theme-color';
5
- import { getPrimaryShade } from './primary-shade';
9
+ import { variant } from './variant';
10
+ import { getPrimaryShade, getPrimaryColor } from './primary-shade';
6
11
  import { shadow } from './shadow';
7
12
  import { gradient } from './gradient/gradient';
8
13
  import { lighten } from './lighten';
9
14
  import { darken } from './darken';
10
15
  import { dimmed } from './dimmed';
11
16
  import { largerThan, smallerThan } from './breakpoints';
17
+ /**
18
+ * Collection of all theme helper functions
19
+ * Used by attach-functions to create theme.fn object
20
+ */
12
21
  export declare const fns: {
13
- fontStyles: (theme: import("../../default-theme").MantineTheme) => () => {
22
+ fontStyles: (theme: import("../..").MantineThemeBase) => () => {
14
23
  fontFamily: string;
24
+ lineHeight: number;
15
25
  };
16
- inputFontStyles: (theme: import("../../default-theme").MantineTheme) => () => {
26
+ inputFontStyles: (theme: import("../..").MantineThemeBase) => () => {
17
27
  fontFamily: string;
28
+ fontSize: number;
29
+ lineHeight: number;
18
30
  };
19
- focusStyles: (_theme: import("../../default-theme").MantineTheme) => () => {};
20
- placeholderStyles: (_theme: import("../../default-theme").MantineTheme) => () => {
31
+ fontSize: (theme: import("../..").MantineThemeBase) => (size: import("../..").MantineNumberSize) => number;
32
+ lineHeight: (theme: import("../..").MantineThemeBase) => (size: import("../..").MantineNumberSize) => number;
33
+ headingStyles: (theme: import("../..").MantineThemeBase) => (order: 1 | 2 | 3 | 4 | 5 | 6) => {
34
+ fontSize: number;
35
+ lineHeight: number;
36
+ fontWeight: import("react-native").TextStyle["fontWeight"];
37
+ fontFamily: string;
38
+ };
39
+ focusStyles: (_theme: import("../..").MantineThemeBase) => () => {};
40
+ placeholderStyles: (_theme: import("../..").MantineThemeBase) => () => {
21
41
  opacity: number;
22
42
  };
23
- cover: (_theme: import("../../default-theme").MantineTheme) => (offset?: number) => {
43
+ cover: (_theme: import("../..").MantineThemeBase) => (offset?: number) => {
24
44
  position: "absolute";
25
45
  top: number;
26
46
  right: number;
27
47
  bottom: number;
28
48
  left: number;
29
49
  };
30
- hover: (_theme: import("../../default-theme").MantineTheme) => (styles: any) => any;
31
- activeStyles: (_theme: import("../../default-theme").MantineTheme) => {
50
+ hover: (_theme: import("../..").MantineThemeBase) => (styles: any) => any;
51
+ activeStyles: (_theme: import("../..").MantineThemeBase) => {
32
52
  opacity: number;
33
53
  transform: {
34
54
  scale: number;
35
55
  }[];
36
56
  };
37
- radius: typeof radius;
38
- rgba: typeof rgba;
39
- size: typeof size;
40
- variant: (theme: import("../../default-theme").MantineTheme) => (input: import("./variant").VariantInput) => import("./variant").VariantOutput;
41
57
  themeColor: typeof themeColor;
42
58
  getPrimaryShade: typeof getPrimaryShade;
43
- shadow: typeof shadow;
44
- gradient: typeof gradient;
59
+ getPrimaryColor: typeof getPrimaryColor;
60
+ variant: (theme: import("../..").MantineThemeBase) => (input: import("../..").VariantInput) => import("../..").VariantOutput;
61
+ rgba: typeof rgba;
45
62
  lighten: typeof lighten;
46
63
  darken: typeof darken;
47
64
  dimmed: typeof dimmed;
65
+ radius: typeof radius;
66
+ size: typeof size;
67
+ shadow: typeof shadow;
68
+ gradient: typeof gradient;
48
69
  largerThan: typeof largerThan;
49
70
  smallerThan: typeof smallerThan;
71
+ colorSchemeValue: (theme: import("../..").MantineThemeBase) => <T = any>(value: T | import("./color-scheme-value").ColorSchemeValue<T>) => T;
72
+ colorSchemeConstants: (theme: import("../..").MantineThemeBase) => <T extends Record<string, any>>(constants: T) => import("./color-scheme-value").ResolveColorSchemeValue<T>;
50
73
  };
74
+ export { radius, rgba, size, themeColor, variant, getPrimaryShade, getPrimaryColor, shadow, gradient, lighten, darken, dimmed, largerThan, smallerThan, };
75
+ export { colorSchemeValue, resolveColorSchemeValue, resolveColorSchemeConstants, isColorSchemeValue, createColorSchemeValueFunction, createColorSchemeConstantsFunction, } from './color-scheme-value';
76
+ export type { ColorSchemeValue, ResolveColorSchemeValue } from './color-scheme-value';
51
77
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAGxD,eAAO,MAAM,GAAG;iBAZG,iDACZ;;;sBAGI,iDAAmB;;;kBAGzB,kDAAoB;wBASrB,kDACS;;;YAQN,kDACK,MAET,eAAkB;;;;;;;YAAkJ,kDAAoB,MAAM,WAAW;mBAAuM,kDAAoB;;;;;;;;;qEAR7Z,uCAEJ;;;;;;;;;;CAKL,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAOxD;;;GAGG;AACH,eAAO,MAAM,GAAG;iBAlBc,uCACd;;;;sBAIP,uCAAsB;;;;;eAOL,uCAGb,MAAM,uCAAuB;iBAUjC,uCAEW,MAClB,uCAEI;oBAgBJ,uCAAsB,MAAM,4BACxB;;;;;;kBA6BE,wCACE;wBAIE,wCAAwB;;;YAA8F,wCAAwB,MAAQ,eAAkB;;;;;;;YAAkJ,wCAAwB,MAAM,WAAW;mBAAuM,wCAAwB;;;;;;;;;2DAA/f,mCAAmB;;;;;;;;;;;oEAAwsC,OAAO,EAAE,6DAA8B;wEAAuqF,6BAA6B,EAAE,YAAY;CA9BliI,CAAC;AAGF,OAAO,EACL,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,OAAO,EACP,eAAe,EACf,eAAe,EACf,MAAM,EACN,QAAQ,EACR,OAAO,EACP,MAAM,EACN,MAAM,EACN,UAAU,EACV,WAAW,GACZ,CAAC;AAGF,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,2BAA2B,EAC3B,kBAAkB,EAClB,8BAA8B,EAC9B,kCAAkC,GACnC,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1,7 +1,57 @@
1
- import type { MantineTheme } from '../../default-theme';
2
1
  /**
2
+ * Primary shade helper function
3
3
  * Returns the appropriate primary shade based on the current color scheme
4
- * Matches Mantine web implementation
4
+ * Aligned with Mantine web's primaryShade implementation
5
5
  */
6
- export declare function getPrimaryShade(theme: MantineTheme, colorScheme?: 'light' | 'dark'): number;
6
+ import type { MantineThemeBase, ColorScheme, Shade } from '../../types';
7
+ /**
8
+ * Get the primary shade for the current color scheme
9
+ *
10
+ * If theme.primaryShade is a number, returns that number.
11
+ * If theme.primaryShade is an object with light/dark values, returns the
12
+ * appropriate value based on the color scheme.
13
+ *
14
+ * @param theme - Mantine theme object
15
+ * @param colorScheme - Optional color scheme override (light or dark)
16
+ * @returns Shade value (0-9)
17
+ *
18
+ * @example
19
+ * // With theme.primaryShade = { light: 6, dark: 8 }
20
+ * // and theme.colorScheme = 'light'
21
+ * getPrimaryShade(theme) // returns 6
22
+ *
23
+ * @example
24
+ * // With explicit colorScheme override
25
+ * getPrimaryShade(theme, 'dark') // returns 8
26
+ *
27
+ * @example
28
+ * // With theme.primaryShade = 7 (single number)
29
+ * getPrimaryShade(theme) // returns 7
30
+ */
31
+ export declare function getPrimaryShade(theme: MantineThemeBase, colorScheme?: ColorScheme): Shade;
32
+ /**
33
+ * Curried version of getPrimaryShade for use with theme.fn
34
+ * Matches Mantine web's theme.fn.primaryShade signature
35
+ *
36
+ * @internal
37
+ */
38
+ export declare function createPrimaryShadeFunction(theme: MantineThemeBase): (colorScheme?: ColorScheme) => Shade;
39
+ /**
40
+ * Get the primary color at the primary shade
41
+ *
42
+ * @param theme - Mantine theme object
43
+ * @param colorScheme - Optional color scheme override
44
+ * @returns Color string value
45
+ *
46
+ * @example
47
+ * // Get primary color at primary shade
48
+ * getPrimaryColor(theme) // returns '#228be6' (blue[6])
49
+ */
50
+ export declare function getPrimaryColor(theme: MantineThemeBase, colorScheme?: ColorScheme): string;
51
+ /**
52
+ * Curried version of getPrimaryColor for use with theme.fn
53
+ *
54
+ * @internal
55
+ */
56
+ export declare function createPrimaryColorFunction(theme: MantineThemeBase): (colorScheme?: ColorScheme) => string;
7
57
  //# sourceMappingURL=primary-shade.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"primary-shade.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/primary-shade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,YAAY,EACnB,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,GAC7B,MAAM,CAOR"}
1
+ {"version":3,"file":"primary-shade.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/primary-shade.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,gBAAgB,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,KAAK,CAYzF;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,gBAAgB,IACxD,cAAc,WAAW,KAAG,KAAK,CAG1C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,gBAAgB,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,MAAM,CAY1F;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,gBAAgB,IACxD,cAAc,WAAW,KAAG,MAAM,CAG3C"}
@@ -20,5 +20,5 @@ export type MantineShadow = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
20
20
  * // Android will get: { elevation: 4 }
21
21
  * const shadowStyles = shadow('md');
22
22
  */
23
- export declare function shadow(size?: MantineShadow | MantineSize): ShadowStyles;
23
+ export declare function shadow(size?: MantineSize): ShadowStyles;
24
24
  //# sourceMappingURL=shadow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shadow.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/shadow.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,YAAY;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACjD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAiE7D;;;;;;;;;GASG;AACH,wBAAgB,MAAM,CAAC,IAAI,CAAC,EAAE,aAAa,GAAG,WAAW,GAAG,YAAY,CAavE"}
1
+ {"version":3,"file":"shadow.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/shadow.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,YAAY;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACjD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAiE7D;;;;;;;;;GASG;AACH,wBAAgB,MAAM,CAAC,IAAI,CAAC,EAAE,WAAW,GAAG,YAAY,CAavD"}
@@ -1,6 +1,6 @@
1
1
  import type { MantineNumberSize } from '../../types';
2
2
  export declare function size(_theme: any): <Sizes extends Record<any, any>>({ size, sizes, }: {
3
- size: MantineNumberSize;
3
+ size?: MantineNumberSize | (string & {});
4
4
  sizes: Sizes;
5
- }) => number;
5
+ }) => number | string;
6
6
  //# sourceMappingURL=size.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"size.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/size.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGrD,wBAAgB,IAAI,CAAC,MAAM,EAAE,GAAG,IACtB,KAAK,SAAS,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,kBAGrC;IACD,IAAI,EAAE,iBAAiB,CAAC;IACxB,KAAK,EAAE,KAAK,CAAC;CACd,KAAG,MAAM,CAGX"}
1
+ {"version":3,"file":"size.d.ts","sourceRoot":"","sources":["../../../../../../../src/theme/functions/fns/size.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGrD,wBAAgB,IAAI,CAAC,MAAM,EAAE,GAAG,IACtB,KAAK,SAAS,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,kBAGrC;IACD,IAAI,CAAC,EAAE,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IACzC,KAAK,EAAE,KAAK,CAAC;CACd,KAAG,MAAM,GAAG,MAAM,CAIpB"}