react-native-mantine 0.1.15 → 0.3.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 (776) hide show
  1. package/README.md +603 -7
  2. package/lib/commonjs/components/Accordion/index.js +250 -0
  3. package/lib/commonjs/components/Accordion/index.js.map +1 -0
  4. package/lib/commonjs/components/ActionIcon/ActionIcon.js +23 -28
  5. package/lib/commonjs/components/ActionIcon/ActionIcon.js.map +1 -1
  6. package/lib/commonjs/components/Anchor/index.js +107 -0
  7. package/lib/commonjs/components/Anchor/index.js.map +1 -0
  8. package/lib/commonjs/components/AspectRatio/index.js +65 -0
  9. package/lib/commonjs/components/AspectRatio/index.js.map +1 -0
  10. package/lib/commonjs/components/Avatar/index.js +128 -0
  11. package/lib/commonjs/components/Avatar/index.js.map +1 -0
  12. package/lib/commonjs/components/BackgroundImage/index.js +55 -0
  13. package/lib/commonjs/components/BackgroundImage/index.js.map +1 -0
  14. package/lib/commonjs/components/Badge/index.js +189 -0
  15. package/lib/commonjs/components/Badge/index.js.map +1 -0
  16. package/lib/commonjs/components/Blockquote/index.js +97 -0
  17. package/lib/commonjs/components/Blockquote/index.js.map +1 -0
  18. package/lib/commonjs/components/BoxView/index.js +66 -2
  19. package/lib/commonjs/components/BoxView/index.js.map +1 -1
  20. package/lib/commonjs/components/Breadcrumbs/index.js +57 -0
  21. package/lib/commonjs/components/Breadcrumbs/index.js.map +1 -0
  22. package/lib/commonjs/components/Burger/index.js +183 -0
  23. package/lib/commonjs/components/Burger/index.js.map +1 -0
  24. package/lib/commonjs/components/Button/Button.styles.js +35 -18
  25. package/lib/commonjs/components/Button/Button.styles.js.map +1 -1
  26. package/lib/commonjs/components/Button/index.js +3 -3
  27. package/lib/commonjs/components/Button/index.js.map +1 -1
  28. package/lib/commonjs/components/Card/index.js +135 -0
  29. package/lib/commonjs/components/Card/index.js.map +1 -0
  30. package/lib/commonjs/components/Center/index.js +35 -0
  31. package/lib/commonjs/components/Center/index.js.map +1 -0
  32. package/lib/commonjs/components/Checkbox/index.js +139 -0
  33. package/lib/commonjs/components/Checkbox/index.js.map +1 -0
  34. package/lib/commonjs/components/Chip/index.js +268 -0
  35. package/lib/commonjs/components/Chip/index.js.map +1 -0
  36. package/lib/commonjs/components/CloseButton/index.js +136 -0
  37. package/lib/commonjs/components/CloseButton/index.js.map +1 -0
  38. package/lib/commonjs/components/Code/index.js +67 -0
  39. package/lib/commonjs/components/Code/index.js.map +1 -0
  40. package/lib/commonjs/components/Collapse/index.js +82 -0
  41. package/lib/commonjs/components/Collapse/index.js.map +1 -0
  42. package/lib/commonjs/components/ColorSwatch/index.js +95 -0
  43. package/lib/commonjs/components/ColorSwatch/index.js.map +1 -0
  44. package/lib/commonjs/components/Container/index.js +70 -0
  45. package/lib/commonjs/components/Container/index.js.map +1 -0
  46. package/lib/commonjs/components/CopyButton/index.js +54 -0
  47. package/lib/commonjs/components/CopyButton/index.js.map +1 -0
  48. package/lib/commonjs/components/Dialog/index.js +139 -0
  49. package/lib/commonjs/components/Dialog/index.js.map +1 -0
  50. package/lib/commonjs/components/Divider/index.js +147 -0
  51. package/lib/commonjs/components/Divider/index.js.map +1 -0
  52. package/lib/commonjs/components/Drawer/index.js +251 -0
  53. package/lib/commonjs/components/Drawer/index.js.map +1 -0
  54. package/lib/commonjs/components/Flex/index.js +62 -0
  55. package/lib/commonjs/components/Flex/index.js.map +1 -0
  56. package/lib/commonjs/components/Grid/index.js +144 -0
  57. package/lib/commonjs/components/Grid/index.js.map +1 -0
  58. package/lib/commonjs/components/Group/index.js +22 -1
  59. package/lib/commonjs/components/Group/index.js.map +1 -1
  60. package/lib/commonjs/components/Highlight/index.js +74 -0
  61. package/lib/commonjs/components/Highlight/index.js.map +1 -0
  62. package/lib/commonjs/components/Image/index.js +132 -0
  63. package/lib/commonjs/components/Image/index.js.map +1 -0
  64. package/lib/commonjs/components/Indicator/index.js +198 -0
  65. package/lib/commonjs/components/Indicator/index.js.map +1 -0
  66. package/lib/commonjs/components/Kbd/index.js +95 -0
  67. package/lib/commonjs/components/Kbd/index.js.map +1 -0
  68. package/lib/commonjs/components/List/index.js +216 -0
  69. package/lib/commonjs/components/List/index.js.map +1 -0
  70. package/lib/commonjs/components/Loader/Loader.js +25 -18
  71. package/lib/commonjs/components/Loader/Loader.js.map +1 -1
  72. package/lib/commonjs/components/LoadingOverlay/index.js +84 -0
  73. package/lib/commonjs/components/LoadingOverlay/index.js.map +1 -0
  74. package/lib/commonjs/components/Mark/index.js +46 -0
  75. package/lib/commonjs/components/Mark/index.js.map +1 -0
  76. package/lib/commonjs/components/MediaQuery/index.js +88 -0
  77. package/lib/commonjs/components/MediaQuery/index.js.map +1 -0
  78. package/lib/commonjs/components/Menu/index.js +305 -0
  79. package/lib/commonjs/components/Menu/index.js.map +1 -0
  80. package/lib/commonjs/components/Modal/index.js +235 -0
  81. package/lib/commonjs/components/Modal/index.js.map +1 -0
  82. package/lib/commonjs/components/MultiSelect/index.js +299 -0
  83. package/lib/commonjs/components/MultiSelect/index.js.map +1 -0
  84. package/lib/commonjs/components/NativeSelect/index.js +294 -0
  85. package/lib/commonjs/components/NativeSelect/index.js.map +1 -0
  86. package/lib/commonjs/components/NavLink/index.js +163 -0
  87. package/lib/commonjs/components/NavLink/index.js.map +1 -0
  88. package/lib/commonjs/components/Notification/index.js +142 -0
  89. package/lib/commonjs/components/Notification/index.js.map +1 -0
  90. package/lib/commonjs/components/NumberInput/index.js +267 -0
  91. package/lib/commonjs/components/NumberInput/index.js.map +1 -0
  92. package/lib/commonjs/components/Overlay/index.js +77 -0
  93. package/lib/commonjs/components/Overlay/index.js.map +1 -0
  94. package/lib/commonjs/components/Pagination/index.js +253 -0
  95. package/lib/commonjs/components/Pagination/index.js.map +1 -0
  96. package/lib/commonjs/components/Paper/index.js +155 -0
  97. package/lib/commonjs/components/Paper/index.js.map +1 -0
  98. package/lib/commonjs/components/PasswordInput/index.js +67 -0
  99. package/lib/commonjs/components/PasswordInput/index.js.map +1 -0
  100. package/lib/commonjs/components/PinInput/index.js +186 -0
  101. package/lib/commonjs/components/PinInput/index.js.map +1 -0
  102. package/lib/commonjs/components/Popover/index.js +162 -0
  103. package/lib/commonjs/components/Popover/index.js.map +1 -0
  104. package/lib/commonjs/components/Portal/index.js +69 -0
  105. package/lib/commonjs/components/Portal/index.js.map +1 -0
  106. package/lib/commonjs/components/Progress/index.js +124 -0
  107. package/lib/commonjs/components/Progress/index.js.map +1 -0
  108. package/lib/commonjs/components/Radio/index.js +135 -0
  109. package/lib/commonjs/components/Radio/index.js.map +1 -0
  110. package/lib/commonjs/components/Rating/index.js +151 -0
  111. package/lib/commonjs/components/Rating/index.js.map +1 -0
  112. package/lib/commonjs/components/RingProgress/index.js +174 -0
  113. package/lib/commonjs/components/RingProgress/index.js.map +1 -0
  114. package/lib/commonjs/components/SegmentedControl/index.js +225 -0
  115. package/lib/commonjs/components/SegmentedControl/index.js.map +1 -0
  116. package/lib/commonjs/components/Select/index.js +244 -0
  117. package/lib/commonjs/components/Select/index.js.map +1 -0
  118. package/lib/commonjs/components/SimpleGrid/index.js +101 -0
  119. package/lib/commonjs/components/SimpleGrid/index.js.map +1 -0
  120. package/lib/commonjs/components/Skeleton/index.js +111 -0
  121. package/lib/commonjs/components/Skeleton/index.js.map +1 -0
  122. package/lib/commonjs/components/Slider/index.js +275 -0
  123. package/lib/commonjs/components/Slider/index.js.map +1 -0
  124. package/lib/commonjs/components/Space/index.js +45 -0
  125. package/lib/commonjs/components/Space/index.js.map +1 -0
  126. package/lib/commonjs/components/Spoiler/index.js +109 -0
  127. package/lib/commonjs/components/Spoiler/index.js.map +1 -0
  128. package/lib/commonjs/components/Stepper/index.js +275 -0
  129. package/lib/commonjs/components/Stepper/index.js.map +1 -0
  130. package/lib/commonjs/components/Switch/index.js +118 -0
  131. package/lib/commonjs/components/Switch/index.js.map +1 -0
  132. package/lib/commonjs/components/Table/index.js +313 -0
  133. package/lib/commonjs/components/Table/index.js.map +1 -0
  134. package/lib/commonjs/components/Text/index.js +7 -2
  135. package/lib/commonjs/components/Text/index.js.map +1 -1
  136. package/lib/commonjs/components/TextInput/index.js +184 -0
  137. package/lib/commonjs/components/TextInput/index.js.map +1 -0
  138. package/lib/commonjs/components/Textarea/index.js +54 -0
  139. package/lib/commonjs/components/Textarea/index.js.map +1 -0
  140. package/lib/commonjs/components/ThemeIcon/index.js +144 -0
  141. package/lib/commonjs/components/ThemeIcon/index.js.map +1 -0
  142. package/lib/commonjs/components/Timeline/index.js +241 -0
  143. package/lib/commonjs/components/Timeline/index.js.map +1 -0
  144. package/lib/commonjs/components/Title/index.js +44 -0
  145. package/lib/commonjs/components/Title/index.js.map +1 -0
  146. package/lib/commonjs/components/Tooltip/index.js +186 -0
  147. package/lib/commonjs/components/Tooltip/index.js.map +1 -0
  148. package/lib/commonjs/components/TransferList/index.js +292 -0
  149. package/lib/commonjs/components/TransferList/index.js.map +1 -0
  150. package/lib/commonjs/components/Transition/index.js +174 -0
  151. package/lib/commonjs/components/Transition/index.js.map +1 -0
  152. package/lib/commonjs/components/UnstyledButton/UnstyledButton.js +1 -2
  153. package/lib/commonjs/components/UnstyledButton/UnstyledButton.js.map +1 -1
  154. package/lib/commonjs/components/index.js +759 -0
  155. package/lib/commonjs/components/index.js.map +1 -1
  156. package/lib/commonjs/hooks/useCachedResources.js +1 -2
  157. package/lib/commonjs/hooks/useCachedResources.js.map +1 -1
  158. package/lib/commonjs/package.json +1 -0
  159. package/lib/commonjs/theme/create-theme.js +4 -1
  160. package/lib/commonjs/theme/create-theme.js.map +1 -1
  161. package/lib/commonjs/theme/default-theme.js +2 -0
  162. package/lib/commonjs/theme/default-theme.js.map +1 -1
  163. package/lib/commonjs/theme/functions/attach-functions.js +12 -2
  164. package/lib/commonjs/theme/functions/attach-functions.js.map +1 -1
  165. package/lib/commonjs/theme/functions/fns/helpers.js +44 -0
  166. package/lib/commonjs/theme/functions/fns/helpers.js.map +1 -0
  167. package/lib/commonjs/theme/functions/fns/index.js +4 -1
  168. package/lib/commonjs/theme/functions/fns/index.js.map +1 -1
  169. package/lib/commonjs/theme/functions/fns/theme-color/theme-color.js +26 -4
  170. package/lib/commonjs/theme/functions/fns/theme-color/theme-color.js.map +1 -1
  171. package/lib/commonjs/theme/functions/fns/variant.js +89 -2
  172. package/lib/commonjs/theme/functions/fns/variant.js.map +1 -1
  173. package/lib/commonjs/theme/get-size/index.js +2 -2
  174. package/lib/commonjs/theme/get-size/index.js.map +1 -1
  175. package/lib/commonjs/theme/theme-provider.js +10 -9
  176. package/lib/commonjs/theme/theme-provider.js.map +1 -1
  177. package/lib/commonjs/theme/utils/rem.js +8 -6
  178. package/lib/commonjs/theme/utils/rem.js.map +1 -1
  179. package/lib/module/components/Accordion/index.js +246 -0
  180. package/lib/module/components/Accordion/index.js.map +1 -0
  181. package/lib/module/components/ActionIcon/ActionIcon.js +25 -29
  182. package/lib/module/components/ActionIcon/ActionIcon.js.map +1 -1
  183. package/lib/module/components/Anchor/index.js +102 -0
  184. package/lib/module/components/Anchor/index.js.map +1 -0
  185. package/lib/module/components/AspectRatio/index.js +60 -0
  186. package/lib/module/components/AspectRatio/index.js.map +1 -0
  187. package/lib/module/components/Avatar/index.js +123 -0
  188. package/lib/module/components/Avatar/index.js.map +1 -0
  189. package/lib/module/components/BackgroundImage/index.js +50 -0
  190. package/lib/module/components/BackgroundImage/index.js.map +1 -0
  191. package/lib/module/components/Badge/index.js +184 -0
  192. package/lib/module/components/Badge/index.js.map +1 -0
  193. package/lib/module/components/Blockquote/index.js +92 -0
  194. package/lib/module/components/Blockquote/index.js.map +1 -0
  195. package/lib/module/components/BoxView/index.js +66 -2
  196. package/lib/module/components/BoxView/index.js.map +1 -1
  197. package/lib/module/components/Breadcrumbs/index.js +52 -0
  198. package/lib/module/components/Breadcrumbs/index.js.map +1 -0
  199. package/lib/module/components/Burger/index.js +180 -0
  200. package/lib/module/components/Burger/index.js.map +1 -0
  201. package/lib/module/components/Button/Button.styles.js +35 -18
  202. package/lib/module/components/Button/Button.styles.js.map +1 -1
  203. package/lib/module/components/Button/index.js +1 -0
  204. package/lib/module/components/Button/index.js.map +1 -1
  205. package/lib/module/components/Card/index.js +130 -0
  206. package/lib/module/components/Card/index.js.map +1 -0
  207. package/lib/module/components/Center/index.js +30 -0
  208. package/lib/module/components/Center/index.js.map +1 -0
  209. package/lib/module/components/Checkbox/index.js +134 -0
  210. package/lib/module/components/Checkbox/index.js.map +1 -0
  211. package/lib/module/components/Chip/index.js +263 -0
  212. package/lib/module/components/Chip/index.js.map +1 -0
  213. package/lib/module/components/CloseButton/index.js +132 -0
  214. package/lib/module/components/CloseButton/index.js.map +1 -0
  215. package/lib/module/components/Code/index.js +62 -0
  216. package/lib/module/components/Code/index.js.map +1 -0
  217. package/lib/module/components/Collapse/index.js +77 -0
  218. package/lib/module/components/Collapse/index.js.map +1 -0
  219. package/lib/module/components/ColorSwatch/index.js +90 -0
  220. package/lib/module/components/ColorSwatch/index.js.map +1 -0
  221. package/lib/module/components/Container/index.js +65 -0
  222. package/lib/module/components/Container/index.js.map +1 -0
  223. package/lib/module/components/CopyButton/index.js +48 -0
  224. package/lib/module/components/CopyButton/index.js.map +1 -0
  225. package/lib/module/components/Dialog/index.js +134 -0
  226. package/lib/module/components/Dialog/index.js.map +1 -0
  227. package/lib/module/components/Divider/index.js +142 -0
  228. package/lib/module/components/Divider/index.js.map +1 -0
  229. package/lib/module/components/Drawer/index.js +246 -0
  230. package/lib/module/components/Drawer/index.js.map +1 -0
  231. package/lib/module/components/Flex/index.js +57 -0
  232. package/lib/module/components/Flex/index.js.map +1 -0
  233. package/lib/module/components/Grid/index.js +139 -0
  234. package/lib/module/components/Grid/index.js.map +1 -0
  235. package/lib/module/components/Group/index.js +22 -1
  236. package/lib/module/components/Group/index.js.map +1 -1
  237. package/lib/module/components/Highlight/index.js +70 -0
  238. package/lib/module/components/Highlight/index.js.map +1 -0
  239. package/lib/module/components/Image/index.js +127 -0
  240. package/lib/module/components/Image/index.js.map +1 -0
  241. package/lib/module/components/Indicator/index.js +193 -0
  242. package/lib/module/components/Indicator/index.js.map +1 -0
  243. package/lib/module/components/Kbd/index.js +90 -0
  244. package/lib/module/components/Kbd/index.js.map +1 -0
  245. package/lib/module/components/List/index.js +211 -0
  246. package/lib/module/components/List/index.js.map +1 -0
  247. package/lib/module/components/Loader/Loader.js +26 -19
  248. package/lib/module/components/Loader/Loader.js.map +1 -1
  249. package/lib/module/components/LoadingOverlay/index.js +80 -0
  250. package/lib/module/components/LoadingOverlay/index.js.map +1 -0
  251. package/lib/module/components/Mark/index.js +41 -0
  252. package/lib/module/components/Mark/index.js.map +1 -0
  253. package/lib/module/components/MediaQuery/index.js +82 -0
  254. package/lib/module/components/MediaQuery/index.js.map +1 -0
  255. package/lib/module/components/Menu/index.js +300 -0
  256. package/lib/module/components/Menu/index.js.map +1 -0
  257. package/lib/module/components/Modal/index.js +230 -0
  258. package/lib/module/components/Modal/index.js.map +1 -0
  259. package/lib/module/components/MultiSelect/index.js +294 -0
  260. package/lib/module/components/MultiSelect/index.js.map +1 -0
  261. package/lib/module/components/NativeSelect/index.js +289 -0
  262. package/lib/module/components/NativeSelect/index.js.map +1 -0
  263. package/lib/module/components/NavLink/index.js +158 -0
  264. package/lib/module/components/NavLink/index.js.map +1 -0
  265. package/lib/module/components/Notification/index.js +137 -0
  266. package/lib/module/components/Notification/index.js.map +1 -0
  267. package/lib/module/components/NumberInput/index.js +262 -0
  268. package/lib/module/components/NumberInput/index.js.map +1 -0
  269. package/lib/module/components/Overlay/index.js +72 -0
  270. package/lib/module/components/Overlay/index.js.map +1 -0
  271. package/lib/module/components/Pagination/index.js +248 -0
  272. package/lib/module/components/Pagination/index.js.map +1 -0
  273. package/lib/module/components/Paper/index.js +150 -0
  274. package/lib/module/components/Paper/index.js.map +1 -0
  275. package/lib/module/components/PasswordInput/index.js +62 -0
  276. package/lib/module/components/PasswordInput/index.js.map +1 -0
  277. package/lib/module/components/PinInput/index.js +182 -0
  278. package/lib/module/components/PinInput/index.js.map +1 -0
  279. package/lib/module/components/Popover/index.js +157 -0
  280. package/lib/module/components/Popover/index.js.map +1 -0
  281. package/lib/module/components/Portal/index.js +62 -0
  282. package/lib/module/components/Portal/index.js.map +1 -0
  283. package/lib/module/components/Progress/index.js +120 -0
  284. package/lib/module/components/Progress/index.js.map +1 -0
  285. package/lib/module/components/Radio/index.js +130 -0
  286. package/lib/module/components/Radio/index.js.map +1 -0
  287. package/lib/module/components/Rating/index.js +146 -0
  288. package/lib/module/components/Rating/index.js.map +1 -0
  289. package/lib/module/components/RingProgress/index.js +169 -0
  290. package/lib/module/components/RingProgress/index.js.map +1 -0
  291. package/lib/module/components/SegmentedControl/index.js +220 -0
  292. package/lib/module/components/SegmentedControl/index.js.map +1 -0
  293. package/lib/module/components/Select/index.js +239 -0
  294. package/lib/module/components/Select/index.js.map +1 -0
  295. package/lib/module/components/SimpleGrid/index.js +96 -0
  296. package/lib/module/components/SimpleGrid/index.js.map +1 -0
  297. package/lib/module/components/Skeleton/index.js +106 -0
  298. package/lib/module/components/Skeleton/index.js.map +1 -0
  299. package/lib/module/components/Slider/index.js +270 -0
  300. package/lib/module/components/Slider/index.js.map +1 -0
  301. package/lib/module/components/Space/index.js +41 -0
  302. package/lib/module/components/Space/index.js.map +1 -0
  303. package/lib/module/components/Spoiler/index.js +104 -0
  304. package/lib/module/components/Spoiler/index.js.map +1 -0
  305. package/lib/module/components/Stepper/index.js +270 -0
  306. package/lib/module/components/Stepper/index.js.map +1 -0
  307. package/lib/module/components/Switch/index.js +113 -0
  308. package/lib/module/components/Switch/index.js.map +1 -0
  309. package/lib/module/components/Table/index.js +308 -0
  310. package/lib/module/components/Table/index.js.map +1 -0
  311. package/lib/module/components/Text/index.js +7 -2
  312. package/lib/module/components/Text/index.js.map +1 -1
  313. package/lib/module/components/TextInput/index.js +179 -0
  314. package/lib/module/components/TextInput/index.js.map +1 -0
  315. package/lib/module/components/Textarea/index.js +50 -0
  316. package/lib/module/components/Textarea/index.js.map +1 -0
  317. package/lib/module/components/ThemeIcon/index.js +140 -0
  318. package/lib/module/components/ThemeIcon/index.js.map +1 -0
  319. package/lib/module/components/Timeline/index.js +236 -0
  320. package/lib/module/components/Timeline/index.js.map +1 -0
  321. package/lib/module/components/Title/index.js +39 -0
  322. package/lib/module/components/Title/index.js.map +1 -0
  323. package/lib/module/components/Tooltip/index.js +181 -0
  324. package/lib/module/components/Tooltip/index.js.map +1 -0
  325. package/lib/module/components/TransferList/index.js +287 -0
  326. package/lib/module/components/TransferList/index.js.map +1 -0
  327. package/lib/module/components/Transition/index.js +169 -0
  328. package/lib/module/components/Transition/index.js.map +1 -0
  329. package/lib/module/components/index.js +101 -0
  330. package/lib/module/components/index.js.map +1 -1
  331. package/lib/module/package.json +1 -0
  332. package/lib/module/theme/create-theme.js +4 -1
  333. package/lib/module/theme/create-theme.js.map +1 -1
  334. package/lib/module/theme/default-theme.js +2 -0
  335. package/lib/module/theme/default-theme.js.map +1 -1
  336. package/lib/module/theme/functions/attach-functions.js +12 -2
  337. package/lib/module/theme/functions/attach-functions.js.map +1 -1
  338. package/lib/module/theme/functions/fns/helpers.js +34 -0
  339. package/lib/module/theme/functions/fns/helpers.js.map +1 -0
  340. package/lib/module/theme/functions/fns/index.js +3 -1
  341. package/lib/module/theme/functions/fns/index.js.map +1 -1
  342. package/lib/module/theme/functions/fns/theme-color/theme-color.js +26 -4
  343. package/lib/module/theme/functions/fns/theme-color/theme-color.js.map +1 -1
  344. package/lib/module/theme/functions/fns/variant.js +89 -2
  345. package/lib/module/theme/functions/fns/variant.js.map +1 -1
  346. package/lib/module/theme/get-size/index.js +2 -2
  347. package/lib/module/theme/get-size/index.js.map +1 -1
  348. package/lib/module/theme/theme-provider.js +9 -7
  349. package/lib/module/theme/theme-provider.js.map +1 -1
  350. package/lib/module/theme/utils/rem.js +8 -6
  351. package/lib/module/theme/utils/rem.js.map +1 -1
  352. package/lib/typescript/commonjs/src/components/Accordion/index.d.ts +54 -0
  353. package/lib/typescript/commonjs/src/components/Accordion/index.d.ts.map +1 -0
  354. package/lib/typescript/commonjs/src/components/ActionIcon/ActionIcon.d.ts +4 -4
  355. package/lib/typescript/commonjs/src/components/ActionIcon/ActionIcon.d.ts.map +1 -1
  356. package/lib/typescript/commonjs/src/components/Anchor/index.d.ts +25 -0
  357. package/lib/typescript/commonjs/src/components/Anchor/index.d.ts.map +1 -0
  358. package/lib/typescript/commonjs/src/components/AspectRatio/index.d.ts +12 -0
  359. package/lib/typescript/commonjs/src/components/AspectRatio/index.d.ts.map +1 -0
  360. package/lib/typescript/commonjs/src/components/Avatar/index.d.ts +23 -0
  361. package/lib/typescript/commonjs/src/components/Avatar/index.d.ts.map +1 -0
  362. package/lib/typescript/commonjs/src/components/BackgroundImage/index.d.ts +15 -0
  363. package/lib/typescript/commonjs/src/components/BackgroundImage/index.d.ts.map +1 -0
  364. package/lib/typescript/commonjs/src/components/Badge/index.d.ts +24 -0
  365. package/lib/typescript/commonjs/src/components/Badge/index.d.ts.map +1 -0
  366. package/lib/typescript/commonjs/src/components/Blockquote/index.d.ts +18 -0
  367. package/lib/typescript/commonjs/src/components/Blockquote/index.d.ts.map +1 -0
  368. package/lib/typescript/commonjs/src/components/BoxView/index.d.ts +28 -0
  369. package/lib/typescript/commonjs/src/components/BoxView/index.d.ts.map +1 -1
  370. package/lib/typescript/commonjs/src/components/Breadcrumbs/index.d.ts +12 -0
  371. package/lib/typescript/commonjs/src/components/Breadcrumbs/index.d.ts.map +1 -0
  372. package/lib/typescript/commonjs/src/components/Burger/index.d.ts +21 -0
  373. package/lib/typescript/commonjs/src/components/Burger/index.d.ts.map +1 -0
  374. package/lib/typescript/commonjs/src/components/Button/Button.styles.d.ts +5 -0
  375. package/lib/typescript/commonjs/src/components/Button/Button.styles.d.ts.map +1 -1
  376. package/lib/typescript/commonjs/src/components/Button/index.d.ts +1 -0
  377. package/lib/typescript/commonjs/src/components/Button/index.d.ts.map +1 -1
  378. package/lib/typescript/commonjs/src/components/Card/index.d.ts +24 -0
  379. package/lib/typescript/commonjs/src/components/Card/index.d.ts.map +1 -0
  380. package/lib/typescript/commonjs/src/components/Center/index.d.ts +15 -0
  381. package/lib/typescript/commonjs/src/components/Center/index.d.ts.map +1 -0
  382. package/lib/typescript/commonjs/src/components/Checkbox/index.d.ts +24 -0
  383. package/lib/typescript/commonjs/src/components/Checkbox/index.d.ts.map +1 -0
  384. package/lib/typescript/commonjs/src/components/Chip/index.d.ts +51 -0
  385. package/lib/typescript/commonjs/src/components/Chip/index.d.ts.map +1 -0
  386. package/lib/typescript/commonjs/src/components/CloseButton/index.d.ts +22 -0
  387. package/lib/typescript/commonjs/src/components/CloseButton/index.d.ts.map +1 -0
  388. package/lib/typescript/commonjs/src/components/Code/index.d.ts +15 -0
  389. package/lib/typescript/commonjs/src/components/Code/index.d.ts.map +1 -0
  390. package/lib/typescript/commonjs/src/components/Collapse/index.d.ts +20 -0
  391. package/lib/typescript/commonjs/src/components/Collapse/index.d.ts.map +1 -0
  392. package/lib/typescript/commonjs/src/components/ColorSwatch/index.d.ts +20 -0
  393. package/lib/typescript/commonjs/src/components/ColorSwatch/index.d.ts.map +1 -0
  394. package/lib/typescript/commonjs/src/components/Container/index.d.ts +20 -0
  395. package/lib/typescript/commonjs/src/components/Container/index.d.ts.map +1 -0
  396. package/lib/typescript/commonjs/src/components/CopyButton/index.d.ts +15 -0
  397. package/lib/typescript/commonjs/src/components/CopyButton/index.d.ts.map +1 -0
  398. package/lib/typescript/commonjs/src/components/Dialog/index.d.ts +31 -0
  399. package/lib/typescript/commonjs/src/components/Dialog/index.d.ts.map +1 -0
  400. package/lib/typescript/commonjs/src/components/Divider/index.d.ts +20 -0
  401. package/lib/typescript/commonjs/src/components/Divider/index.d.ts.map +1 -0
  402. package/lib/typescript/commonjs/src/components/Drawer/index.d.ts +36 -0
  403. package/lib/typescript/commonjs/src/components/Drawer/index.d.ts.map +1 -0
  404. package/lib/typescript/commonjs/src/components/Flex/index.d.ts +27 -0
  405. package/lib/typescript/commonjs/src/components/Flex/index.d.ts.map +1 -0
  406. package/lib/typescript/commonjs/src/components/Grid/index.d.ts +38 -0
  407. package/lib/typescript/commonjs/src/components/Grid/index.d.ts.map +1 -0
  408. package/lib/typescript/commonjs/src/components/Group/index.d.ts +2 -1
  409. package/lib/typescript/commonjs/src/components/Group/index.d.ts.map +1 -1
  410. package/lib/typescript/commonjs/src/components/Highlight/index.d.ts +19 -0
  411. package/lib/typescript/commonjs/src/components/Highlight/index.d.ts.map +1 -0
  412. package/lib/typescript/commonjs/src/components/Image/index.d.ts +31 -0
  413. package/lib/typescript/commonjs/src/components/Image/index.d.ts.map +1 -0
  414. package/lib/typescript/commonjs/src/components/Indicator/index.d.ts +32 -0
  415. package/lib/typescript/commonjs/src/components/Indicator/index.d.ts.map +1 -0
  416. package/lib/typescript/commonjs/src/components/Input/Input.styles.d.ts +5 -5
  417. package/lib/typescript/commonjs/src/components/Kbd/index.d.ts +12 -0
  418. package/lib/typescript/commonjs/src/components/Kbd/index.d.ts.map +1 -0
  419. package/lib/typescript/commonjs/src/components/List/index.d.ts +42 -0
  420. package/lib/typescript/commonjs/src/components/List/index.d.ts.map +1 -0
  421. package/lib/typescript/commonjs/src/components/Loader/Loader.d.ts.map +1 -1
  422. package/lib/typescript/commonjs/src/components/LoadingOverlay/index.d.ts +23 -0
  423. package/lib/typescript/commonjs/src/components/LoadingOverlay/index.d.ts.map +1 -0
  424. package/lib/typescript/commonjs/src/components/Mark/index.d.ts +14 -0
  425. package/lib/typescript/commonjs/src/components/Mark/index.d.ts.map +1 -0
  426. package/lib/typescript/commonjs/src/components/MediaQuery/index.d.ts +24 -0
  427. package/lib/typescript/commonjs/src/components/MediaQuery/index.d.ts.map +1 -0
  428. package/lib/typescript/commonjs/src/components/Menu/index.d.ts +64 -0
  429. package/lib/typescript/commonjs/src/components/Menu/index.d.ts.map +1 -0
  430. package/lib/typescript/commonjs/src/components/Modal/index.d.ts +40 -0
  431. package/lib/typescript/commonjs/src/components/Modal/index.d.ts.map +1 -0
  432. package/lib/typescript/commonjs/src/components/MultiSelect/index.d.ts +53 -0
  433. package/lib/typescript/commonjs/src/components/MultiSelect/index.d.ts.map +1 -0
  434. package/lib/typescript/commonjs/src/components/NativeSelect/index.d.ts +45 -0
  435. package/lib/typescript/commonjs/src/components/NativeSelect/index.d.ts.map +1 -0
  436. package/lib/typescript/commonjs/src/components/NavLink/index.d.ts +30 -0
  437. package/lib/typescript/commonjs/src/components/NavLink/index.d.ts.map +1 -0
  438. package/lib/typescript/commonjs/src/components/Notification/index.d.ts +28 -0
  439. package/lib/typescript/commonjs/src/components/Notification/index.d.ts.map +1 -0
  440. package/lib/typescript/commonjs/src/components/NumberInput/index.d.ts +47 -0
  441. package/lib/typescript/commonjs/src/components/NumberInput/index.d.ts.map +1 -0
  442. package/lib/typescript/commonjs/src/components/Overlay/index.d.ts +24 -0
  443. package/lib/typescript/commonjs/src/components/Overlay/index.d.ts.map +1 -0
  444. package/lib/typescript/commonjs/src/components/Pagination/index.d.ts +37 -0
  445. package/lib/typescript/commonjs/src/components/Pagination/index.d.ts.map +1 -0
  446. package/lib/typescript/commonjs/src/components/Paper/index.d.ts +18 -0
  447. package/lib/typescript/commonjs/src/components/Paper/index.d.ts.map +1 -0
  448. package/lib/typescript/commonjs/src/components/PasswordInput/index.d.ts +15 -0
  449. package/lib/typescript/commonjs/src/components/PasswordInput/index.d.ts.map +1 -0
  450. package/lib/typescript/commonjs/src/components/PinInput/index.d.ts +33 -0
  451. package/lib/typescript/commonjs/src/components/PinInput/index.d.ts.map +1 -0
  452. package/lib/typescript/commonjs/src/components/Popover/index.d.ts +44 -0
  453. package/lib/typescript/commonjs/src/components/Popover/index.d.ts.map +1 -0
  454. package/lib/typescript/commonjs/src/components/Portal/index.d.ts +10 -0
  455. package/lib/typescript/commonjs/src/components/Portal/index.d.ts.map +1 -0
  456. package/lib/typescript/commonjs/src/components/Progress/index.d.ts +29 -0
  457. package/lib/typescript/commonjs/src/components/Progress/index.d.ts.map +1 -0
  458. package/lib/typescript/commonjs/src/components/Radio/index.d.ts +24 -0
  459. package/lib/typescript/commonjs/src/components/Radio/index.d.ts.map +1 -0
  460. package/lib/typescript/commonjs/src/components/Rating/index.d.ts +32 -0
  461. package/lib/typescript/commonjs/src/components/Rating/index.d.ts.map +1 -0
  462. package/lib/typescript/commonjs/src/components/RingProgress/index.d.ts +61 -0
  463. package/lib/typescript/commonjs/src/components/RingProgress/index.d.ts.map +1 -0
  464. package/lib/typescript/commonjs/src/components/SegmentedControl/index.d.ts +35 -0
  465. package/lib/typescript/commonjs/src/components/SegmentedControl/index.d.ts.map +1 -0
  466. package/lib/typescript/commonjs/src/components/Select/index.d.ts +53 -0
  467. package/lib/typescript/commonjs/src/components/Select/index.d.ts.map +1 -0
  468. package/lib/typescript/commonjs/src/components/SimpleGrid/index.d.ts +22 -0
  469. package/lib/typescript/commonjs/src/components/SimpleGrid/index.d.ts.map +1 -0
  470. package/lib/typescript/commonjs/src/components/Skeleton/index.d.ts +22 -0
  471. package/lib/typescript/commonjs/src/components/Skeleton/index.d.ts.map +1 -0
  472. package/lib/typescript/commonjs/src/components/Slider/index.d.ts +43 -0
  473. package/lib/typescript/commonjs/src/components/Slider/index.d.ts.map +1 -0
  474. package/lib/typescript/commonjs/src/components/Space/index.d.ts +13 -0
  475. package/lib/typescript/commonjs/src/components/Space/index.d.ts.map +1 -0
  476. package/lib/typescript/commonjs/src/components/Spoiler/index.d.ts +22 -0
  477. package/lib/typescript/commonjs/src/components/Spoiler/index.d.ts.map +1 -0
  478. package/lib/typescript/commonjs/src/components/Stack/index.d.ts.map +1 -1
  479. package/lib/typescript/commonjs/src/components/Stepper/index.d.ts +55 -0
  480. package/lib/typescript/commonjs/src/components/Stepper/index.d.ts.map +1 -0
  481. package/lib/typescript/commonjs/src/components/Switch/index.d.ts +24 -0
  482. package/lib/typescript/commonjs/src/components/Switch/index.d.ts.map +1 -0
  483. package/lib/typescript/commonjs/src/components/Table/index.d.ts +72 -0
  484. package/lib/typescript/commonjs/src/components/Table/index.d.ts.map +1 -0
  485. package/lib/typescript/commonjs/src/components/Text/index.d.ts +4 -0
  486. package/lib/typescript/commonjs/src/components/Text/index.d.ts.map +1 -1
  487. package/lib/typescript/commonjs/src/components/TextInput/index.d.ts +31 -0
  488. package/lib/typescript/commonjs/src/components/TextInput/index.d.ts.map +1 -0
  489. package/lib/typescript/commonjs/src/components/Textarea/index.d.ts +12 -0
  490. package/lib/typescript/commonjs/src/components/Textarea/index.d.ts.map +1 -0
  491. package/lib/typescript/commonjs/src/components/ThemeIcon/index.d.ts +21 -0
  492. package/lib/typescript/commonjs/src/components/ThemeIcon/index.d.ts.map +1 -0
  493. package/lib/typescript/commonjs/src/components/Timeline/index.d.ts +52 -0
  494. package/lib/typescript/commonjs/src/components/Timeline/index.d.ts.map +1 -0
  495. package/lib/typescript/commonjs/src/components/Title/index.d.ts +14 -0
  496. package/lib/typescript/commonjs/src/components/Title/index.d.ts.map +1 -0
  497. package/lib/typescript/commonjs/src/components/Tooltip/index.d.ts +36 -0
  498. package/lib/typescript/commonjs/src/components/Tooltip/index.d.ts.map +1 -0
  499. package/lib/typescript/commonjs/src/components/TransferList/index.d.ts +42 -0
  500. package/lib/typescript/commonjs/src/components/TransferList/index.d.ts.map +1 -0
  501. package/lib/typescript/commonjs/src/components/Transition/index.d.ts +25 -0
  502. package/lib/typescript/commonjs/src/components/Transition/index.d.ts.map +1 -0
  503. package/lib/typescript/commonjs/src/components/index.d.ts +69 -0
  504. package/lib/typescript/commonjs/src/components/index.d.ts.map +1 -1
  505. package/lib/typescript/commonjs/src/theme/create-theme.d.ts.map +1 -1
  506. package/lib/typescript/commonjs/src/theme/default-theme.d.ts +20 -0
  507. package/lib/typescript/commonjs/src/theme/default-theme.d.ts.map +1 -1
  508. package/lib/typescript/commonjs/src/theme/functions/attach-functions.d.ts.map +1 -1
  509. package/lib/typescript/commonjs/src/theme/functions/fns/helpers.d.ts +23 -0
  510. package/lib/typescript/commonjs/src/theme/functions/fns/helpers.d.ts.map +1 -0
  511. package/lib/typescript/commonjs/src/theme/functions/fns/index.d.ts +22 -1
  512. package/lib/typescript/commonjs/src/theme/functions/fns/index.d.ts.map +1 -1
  513. package/lib/typescript/commonjs/src/theme/functions/fns/radius.d.ts.map +1 -1
  514. package/lib/typescript/commonjs/src/theme/functions/fns/theme-color/theme-color.d.ts +8 -1
  515. package/lib/typescript/commonjs/src/theme/functions/fns/theme-color/theme-color.d.ts.map +1 -1
  516. package/lib/typescript/commonjs/src/theme/functions/fns/variant.d.ts +19 -1
  517. package/lib/typescript/commonjs/src/theme/functions/fns/variant.d.ts.map +1 -1
  518. package/lib/typescript/commonjs/src/theme/theme-provider.d.ts.map +1 -1
  519. package/lib/typescript/commonjs/src/theme/utils/rem.d.ts +2 -2
  520. package/lib/typescript/commonjs/src/theme/utils/rem.d.ts.map +1 -1
  521. package/lib/typescript/module/src/components/Accordion/index.d.ts +54 -0
  522. package/lib/typescript/module/src/components/Accordion/index.d.ts.map +1 -0
  523. package/lib/typescript/module/src/components/ActionIcon/ActionIcon.d.ts +4 -4
  524. package/lib/typescript/module/src/components/ActionIcon/ActionIcon.d.ts.map +1 -1
  525. package/lib/typescript/module/src/components/Anchor/index.d.ts +25 -0
  526. package/lib/typescript/module/src/components/Anchor/index.d.ts.map +1 -0
  527. package/lib/typescript/module/src/components/AspectRatio/index.d.ts +12 -0
  528. package/lib/typescript/module/src/components/AspectRatio/index.d.ts.map +1 -0
  529. package/lib/typescript/module/src/components/Avatar/index.d.ts +23 -0
  530. package/lib/typescript/module/src/components/Avatar/index.d.ts.map +1 -0
  531. package/lib/typescript/module/src/components/BackgroundImage/index.d.ts +15 -0
  532. package/lib/typescript/module/src/components/BackgroundImage/index.d.ts.map +1 -0
  533. package/lib/typescript/module/src/components/Badge/index.d.ts +24 -0
  534. package/lib/typescript/module/src/components/Badge/index.d.ts.map +1 -0
  535. package/lib/typescript/module/src/components/Blockquote/index.d.ts +18 -0
  536. package/lib/typescript/module/src/components/Blockquote/index.d.ts.map +1 -0
  537. package/lib/typescript/module/src/components/BoxView/index.d.ts +28 -0
  538. package/lib/typescript/module/src/components/BoxView/index.d.ts.map +1 -1
  539. package/lib/typescript/module/src/components/Breadcrumbs/index.d.ts +12 -0
  540. package/lib/typescript/module/src/components/Breadcrumbs/index.d.ts.map +1 -0
  541. package/lib/typescript/module/src/components/Burger/index.d.ts +21 -0
  542. package/lib/typescript/module/src/components/Burger/index.d.ts.map +1 -0
  543. package/lib/typescript/module/src/components/Button/Button.styles.d.ts +5 -0
  544. package/lib/typescript/module/src/components/Button/Button.styles.d.ts.map +1 -1
  545. package/lib/typescript/module/src/components/Button/index.d.ts +1 -0
  546. package/lib/typescript/module/src/components/Button/index.d.ts.map +1 -1
  547. package/lib/typescript/module/src/components/Card/index.d.ts +24 -0
  548. package/lib/typescript/module/src/components/Card/index.d.ts.map +1 -0
  549. package/lib/typescript/module/src/components/Center/index.d.ts +15 -0
  550. package/lib/typescript/module/src/components/Center/index.d.ts.map +1 -0
  551. package/lib/typescript/module/src/components/Checkbox/index.d.ts +24 -0
  552. package/lib/typescript/module/src/components/Checkbox/index.d.ts.map +1 -0
  553. package/lib/typescript/module/src/components/Chip/index.d.ts +51 -0
  554. package/lib/typescript/module/src/components/Chip/index.d.ts.map +1 -0
  555. package/lib/typescript/module/src/components/CloseButton/index.d.ts +22 -0
  556. package/lib/typescript/module/src/components/CloseButton/index.d.ts.map +1 -0
  557. package/lib/typescript/module/src/components/Code/index.d.ts +15 -0
  558. package/lib/typescript/module/src/components/Code/index.d.ts.map +1 -0
  559. package/lib/typescript/module/src/components/Collapse/index.d.ts +20 -0
  560. package/lib/typescript/module/src/components/Collapse/index.d.ts.map +1 -0
  561. package/lib/typescript/module/src/components/ColorSwatch/index.d.ts +20 -0
  562. package/lib/typescript/module/src/components/ColorSwatch/index.d.ts.map +1 -0
  563. package/lib/typescript/module/src/components/Container/index.d.ts +20 -0
  564. package/lib/typescript/module/src/components/Container/index.d.ts.map +1 -0
  565. package/lib/typescript/module/src/components/CopyButton/index.d.ts +15 -0
  566. package/lib/typescript/module/src/components/CopyButton/index.d.ts.map +1 -0
  567. package/lib/typescript/module/src/components/Dialog/index.d.ts +31 -0
  568. package/lib/typescript/module/src/components/Dialog/index.d.ts.map +1 -0
  569. package/lib/typescript/module/src/components/Divider/index.d.ts +20 -0
  570. package/lib/typescript/module/src/components/Divider/index.d.ts.map +1 -0
  571. package/lib/typescript/module/src/components/Drawer/index.d.ts +36 -0
  572. package/lib/typescript/module/src/components/Drawer/index.d.ts.map +1 -0
  573. package/lib/typescript/module/src/components/Flex/index.d.ts +27 -0
  574. package/lib/typescript/module/src/components/Flex/index.d.ts.map +1 -0
  575. package/lib/typescript/module/src/components/Grid/index.d.ts +38 -0
  576. package/lib/typescript/module/src/components/Grid/index.d.ts.map +1 -0
  577. package/lib/typescript/module/src/components/Group/index.d.ts +2 -1
  578. package/lib/typescript/module/src/components/Group/index.d.ts.map +1 -1
  579. package/lib/typescript/module/src/components/Highlight/index.d.ts +19 -0
  580. package/lib/typescript/module/src/components/Highlight/index.d.ts.map +1 -0
  581. package/lib/typescript/module/src/components/Image/index.d.ts +31 -0
  582. package/lib/typescript/module/src/components/Image/index.d.ts.map +1 -0
  583. package/lib/typescript/module/src/components/Indicator/index.d.ts +32 -0
  584. package/lib/typescript/module/src/components/Indicator/index.d.ts.map +1 -0
  585. package/lib/typescript/module/src/components/Input/Input.styles.d.ts +5 -5
  586. package/lib/typescript/module/src/components/Kbd/index.d.ts +12 -0
  587. package/lib/typescript/module/src/components/Kbd/index.d.ts.map +1 -0
  588. package/lib/typescript/module/src/components/List/index.d.ts +42 -0
  589. package/lib/typescript/module/src/components/List/index.d.ts.map +1 -0
  590. package/lib/typescript/module/src/components/Loader/Loader.d.ts.map +1 -1
  591. package/lib/typescript/module/src/components/LoadingOverlay/index.d.ts +23 -0
  592. package/lib/typescript/module/src/components/LoadingOverlay/index.d.ts.map +1 -0
  593. package/lib/typescript/module/src/components/Mark/index.d.ts +14 -0
  594. package/lib/typescript/module/src/components/Mark/index.d.ts.map +1 -0
  595. package/lib/typescript/module/src/components/MediaQuery/index.d.ts +24 -0
  596. package/lib/typescript/module/src/components/MediaQuery/index.d.ts.map +1 -0
  597. package/lib/typescript/module/src/components/Menu/index.d.ts +64 -0
  598. package/lib/typescript/module/src/components/Menu/index.d.ts.map +1 -0
  599. package/lib/typescript/module/src/components/Modal/index.d.ts +40 -0
  600. package/lib/typescript/module/src/components/Modal/index.d.ts.map +1 -0
  601. package/lib/typescript/module/src/components/MultiSelect/index.d.ts +53 -0
  602. package/lib/typescript/module/src/components/MultiSelect/index.d.ts.map +1 -0
  603. package/lib/typescript/module/src/components/NativeSelect/index.d.ts +45 -0
  604. package/lib/typescript/module/src/components/NativeSelect/index.d.ts.map +1 -0
  605. package/lib/typescript/module/src/components/NavLink/index.d.ts +30 -0
  606. package/lib/typescript/module/src/components/NavLink/index.d.ts.map +1 -0
  607. package/lib/typescript/module/src/components/Notification/index.d.ts +28 -0
  608. package/lib/typescript/module/src/components/Notification/index.d.ts.map +1 -0
  609. package/lib/typescript/module/src/components/NumberInput/index.d.ts +47 -0
  610. package/lib/typescript/module/src/components/NumberInput/index.d.ts.map +1 -0
  611. package/lib/typescript/module/src/components/Overlay/index.d.ts +24 -0
  612. package/lib/typescript/module/src/components/Overlay/index.d.ts.map +1 -0
  613. package/lib/typescript/module/src/components/Pagination/index.d.ts +37 -0
  614. package/lib/typescript/module/src/components/Pagination/index.d.ts.map +1 -0
  615. package/lib/typescript/module/src/components/Paper/index.d.ts +18 -0
  616. package/lib/typescript/module/src/components/Paper/index.d.ts.map +1 -0
  617. package/lib/typescript/module/src/components/PasswordInput/index.d.ts +15 -0
  618. package/lib/typescript/module/src/components/PasswordInput/index.d.ts.map +1 -0
  619. package/lib/typescript/module/src/components/PinInput/index.d.ts +33 -0
  620. package/lib/typescript/module/src/components/PinInput/index.d.ts.map +1 -0
  621. package/lib/typescript/module/src/components/Popover/index.d.ts +44 -0
  622. package/lib/typescript/module/src/components/Popover/index.d.ts.map +1 -0
  623. package/lib/typescript/module/src/components/Portal/index.d.ts +10 -0
  624. package/lib/typescript/module/src/components/Portal/index.d.ts.map +1 -0
  625. package/lib/typescript/module/src/components/Progress/index.d.ts +29 -0
  626. package/lib/typescript/module/src/components/Progress/index.d.ts.map +1 -0
  627. package/lib/typescript/module/src/components/Radio/index.d.ts +24 -0
  628. package/lib/typescript/module/src/components/Radio/index.d.ts.map +1 -0
  629. package/lib/typescript/module/src/components/Rating/index.d.ts +32 -0
  630. package/lib/typescript/module/src/components/Rating/index.d.ts.map +1 -0
  631. package/lib/typescript/module/src/components/RingProgress/index.d.ts +61 -0
  632. package/lib/typescript/module/src/components/RingProgress/index.d.ts.map +1 -0
  633. package/lib/typescript/module/src/components/SegmentedControl/index.d.ts +35 -0
  634. package/lib/typescript/module/src/components/SegmentedControl/index.d.ts.map +1 -0
  635. package/lib/typescript/module/src/components/Select/index.d.ts +53 -0
  636. package/lib/typescript/module/src/components/Select/index.d.ts.map +1 -0
  637. package/lib/typescript/module/src/components/SimpleGrid/index.d.ts +22 -0
  638. package/lib/typescript/module/src/components/SimpleGrid/index.d.ts.map +1 -0
  639. package/lib/typescript/module/src/components/Skeleton/index.d.ts +22 -0
  640. package/lib/typescript/module/src/components/Skeleton/index.d.ts.map +1 -0
  641. package/lib/typescript/module/src/components/Slider/index.d.ts +43 -0
  642. package/lib/typescript/module/src/components/Slider/index.d.ts.map +1 -0
  643. package/lib/typescript/module/src/components/Space/index.d.ts +13 -0
  644. package/lib/typescript/module/src/components/Space/index.d.ts.map +1 -0
  645. package/lib/typescript/module/src/components/Spoiler/index.d.ts +22 -0
  646. package/lib/typescript/module/src/components/Spoiler/index.d.ts.map +1 -0
  647. package/lib/typescript/module/src/components/Stack/index.d.ts.map +1 -1
  648. package/lib/typescript/module/src/components/Stepper/index.d.ts +55 -0
  649. package/lib/typescript/module/src/components/Stepper/index.d.ts.map +1 -0
  650. package/lib/typescript/module/src/components/Switch/index.d.ts +24 -0
  651. package/lib/typescript/module/src/components/Switch/index.d.ts.map +1 -0
  652. package/lib/typescript/module/src/components/Table/index.d.ts +72 -0
  653. package/lib/typescript/module/src/components/Table/index.d.ts.map +1 -0
  654. package/lib/typescript/module/src/components/Text/index.d.ts +4 -0
  655. package/lib/typescript/module/src/components/Text/index.d.ts.map +1 -1
  656. package/lib/typescript/module/src/components/TextInput/index.d.ts +31 -0
  657. package/lib/typescript/module/src/components/TextInput/index.d.ts.map +1 -0
  658. package/lib/typescript/module/src/components/Textarea/index.d.ts +12 -0
  659. package/lib/typescript/module/src/components/Textarea/index.d.ts.map +1 -0
  660. package/lib/typescript/module/src/components/ThemeIcon/index.d.ts +21 -0
  661. package/lib/typescript/module/src/components/ThemeIcon/index.d.ts.map +1 -0
  662. package/lib/typescript/module/src/components/Timeline/index.d.ts +52 -0
  663. package/lib/typescript/module/src/components/Timeline/index.d.ts.map +1 -0
  664. package/lib/typescript/module/src/components/Title/index.d.ts +14 -0
  665. package/lib/typescript/module/src/components/Title/index.d.ts.map +1 -0
  666. package/lib/typescript/module/src/components/Tooltip/index.d.ts +36 -0
  667. package/lib/typescript/module/src/components/Tooltip/index.d.ts.map +1 -0
  668. package/lib/typescript/module/src/components/TransferList/index.d.ts +42 -0
  669. package/lib/typescript/module/src/components/TransferList/index.d.ts.map +1 -0
  670. package/lib/typescript/module/src/components/Transition/index.d.ts +25 -0
  671. package/lib/typescript/module/src/components/Transition/index.d.ts.map +1 -0
  672. package/lib/typescript/module/src/components/index.d.ts +69 -0
  673. package/lib/typescript/module/src/components/index.d.ts.map +1 -1
  674. package/lib/typescript/module/src/theme/create-theme.d.ts.map +1 -1
  675. package/lib/typescript/module/src/theme/default-theme.d.ts +20 -0
  676. package/lib/typescript/module/src/theme/default-theme.d.ts.map +1 -1
  677. package/lib/typescript/module/src/theme/functions/attach-functions.d.ts.map +1 -1
  678. package/lib/typescript/module/src/theme/functions/fns/helpers.d.ts +23 -0
  679. package/lib/typescript/module/src/theme/functions/fns/helpers.d.ts.map +1 -0
  680. package/lib/typescript/module/src/theme/functions/fns/index.d.ts +22 -1
  681. package/lib/typescript/module/src/theme/functions/fns/index.d.ts.map +1 -1
  682. package/lib/typescript/module/src/theme/functions/fns/radius.d.ts.map +1 -1
  683. package/lib/typescript/module/src/theme/functions/fns/theme-color/theme-color.d.ts +8 -1
  684. package/lib/typescript/module/src/theme/functions/fns/theme-color/theme-color.d.ts.map +1 -1
  685. package/lib/typescript/module/src/theme/functions/fns/variant.d.ts +19 -1
  686. package/lib/typescript/module/src/theme/functions/fns/variant.d.ts.map +1 -1
  687. package/lib/typescript/module/src/theme/theme-provider.d.ts.map +1 -1
  688. package/lib/typescript/module/src/theme/utils/rem.d.ts +2 -2
  689. package/lib/typescript/module/src/theme/utils/rem.d.ts.map +1 -1
  690. package/package.json +11 -8
  691. package/src/components/Accordion/index.tsx +297 -0
  692. package/src/components/ActionIcon/ActionIcon.tsx +61 -44
  693. package/src/components/Anchor/index.tsx +139 -0
  694. package/src/components/AspectRatio/index.tsx +68 -0
  695. package/src/components/Avatar/index.tsx +164 -0
  696. package/src/components/BackgroundImage/index.tsx +77 -0
  697. package/src/components/Badge/index.tsx +193 -0
  698. package/src/components/Blockquote/index.tsx +104 -0
  699. package/src/components/BoxView/index.tsx +90 -2
  700. package/src/components/Breadcrumbs/index.tsx +64 -0
  701. package/src/components/Burger/index.tsx +230 -0
  702. package/src/components/Button/Button.styles.ts +36 -16
  703. package/src/components/Button/index.tsx +3 -1
  704. package/src/components/Card/index.tsx +166 -0
  705. package/src/components/Center/index.tsx +40 -0
  706. package/src/components/Checkbox/index.tsx +168 -0
  707. package/src/components/Chip/index.tsx +350 -0
  708. package/src/components/CloseButton/index.tsx +154 -0
  709. package/src/components/Code/index.tsx +83 -0
  710. package/src/components/Collapse/index.tsx +108 -0
  711. package/src/components/ColorSwatch/index.tsx +106 -0
  712. package/src/components/Container/index.tsx +92 -0
  713. package/src/components/CopyButton/index.tsx +60 -0
  714. package/src/components/Dialog/index.tsx +189 -0
  715. package/src/components/Divider/index.tsx +161 -0
  716. package/src/components/Drawer/index.tsx +315 -0
  717. package/src/components/Flex/index.tsx +87 -0
  718. package/src/components/Grid/index.tsx +167 -0
  719. package/src/components/Group/index.tsx +24 -5
  720. package/src/components/Highlight/index.tsx +93 -0
  721. package/src/components/Image/index.tsx +180 -0
  722. package/src/components/Indicator/index.tsx +240 -0
  723. package/src/components/Kbd/index.tsx +84 -0
  724. package/src/components/List/index.tsx +294 -0
  725. package/src/components/Loader/Loader.tsx +27 -17
  726. package/src/components/LoadingOverlay/index.tsx +103 -0
  727. package/src/components/Mark/index.tsx +51 -0
  728. package/src/components/MediaQuery/index.tsx +133 -0
  729. package/src/components/Menu/index.tsx +395 -0
  730. package/src/components/Modal/index.tsx +318 -0
  731. package/src/components/MultiSelect/index.tsx +458 -0
  732. package/src/components/NativeSelect/index.tsx +387 -0
  733. package/src/components/NavLink/index.tsx +205 -0
  734. package/src/components/Notification/index.tsx +175 -0
  735. package/src/components/NumberInput/index.tsx +356 -0
  736. package/src/components/Overlay/index.tsx +100 -0
  737. package/src/components/Pagination/index.tsx +336 -0
  738. package/src/components/Paper/index.tsx +155 -0
  739. package/src/components/PasswordInput/index.tsx +78 -0
  740. package/src/components/PinInput/index.tsx +251 -0
  741. package/src/components/Popover/index.tsx +244 -0
  742. package/src/components/Portal/index.tsx +75 -0
  743. package/src/components/Progress/index.tsx +182 -0
  744. package/src/components/Radio/index.tsx +169 -0
  745. package/src/components/Rating/index.tsx +214 -0
  746. package/src/components/RingProgress/index.tsx +206 -0
  747. package/src/components/SegmentedControl/index.tsx +259 -0
  748. package/src/components/Select/index.tsx +377 -0
  749. package/src/components/SimpleGrid/index.tsx +119 -0
  750. package/src/components/Skeleton/index.tsx +149 -0
  751. package/src/components/Slider/index.tsx +338 -0
  752. package/src/components/Space/index.tsx +48 -0
  753. package/src/components/Spoiler/index.tsx +123 -0
  754. package/src/components/Stepper/index.tsx +388 -0
  755. package/src/components/Switch/index.tsx +146 -0
  756. package/src/components/Table/index.tsx +402 -0
  757. package/src/components/Text/index.tsx +6 -1
  758. package/src/components/TextInput/index.tsx +232 -0
  759. package/src/components/Textarea/index.tsx +61 -0
  760. package/src/components/ThemeIcon/index.tsx +167 -0
  761. package/src/components/Timeline/index.tsx +331 -0
  762. package/src/components/Title/index.tsx +53 -0
  763. package/src/components/Tooltip/index.tsx +259 -0
  764. package/src/components/TransferList/index.tsx +399 -0
  765. package/src/components/Transition/index.tsx +225 -0
  766. package/src/components/index.tsx +101 -0
  767. package/src/theme/create-theme.ts +3 -1
  768. package/src/theme/default-theme.ts +24 -0
  769. package/src/theme/functions/attach-functions.ts +8 -1
  770. package/src/theme/functions/fns/helpers.ts +36 -0
  771. package/src/theme/functions/fns/index.ts +2 -0
  772. package/src/theme/functions/fns/theme-color/theme-color.ts +34 -3
  773. package/src/theme/functions/fns/variant.ts +110 -2
  774. package/src/theme/get-size/index.ts +2 -2
  775. package/src/theme/theme-provider.tsx +7 -7
  776. package/src/theme/utils/rem.ts +9 -7
@@ -0,0 +1,180 @@
1
+ "use strict";
2
+
3
+ import { forwardRef, useEffect, useRef } from 'react';
4
+ import { TouchableOpacity, Animated } from 'react-native';
5
+ import { useComponentDefaultProps } from "../../theme/theme-provider.js";
6
+ import { createStyles } from "../../theme/index.js";
7
+ import { getSize } from "../../theme/index.js";
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
+ const sizes = {
10
+ xs: 12,
11
+ sm: 18,
12
+ md: 24,
13
+ lg: 34,
14
+ xl: 42
15
+ };
16
+ const useStyles = createStyles((_theme, {
17
+ size,
18
+ color,
19
+ disabled
20
+ }) => {
21
+ const burgerSize = typeof size === 'number' ? size : getSize({
22
+ size,
23
+ sizes
24
+ });
25
+ return {
26
+ root: {
27
+ width: burgerSize + 8,
28
+ height: burgerSize,
29
+ justifyContent: 'center',
30
+ alignItems: 'center',
31
+ opacity: disabled ? 0.4 : 1
32
+ },
33
+ burger: {
34
+ width: burgerSize,
35
+ height: burgerSize,
36
+ justifyContent: 'space-between',
37
+ position: 'relative'
38
+ },
39
+ line: {
40
+ height: Math.max(1, Math.round(burgerSize / 12)),
41
+ backgroundColor: color,
42
+ borderRadius: burgerSize / 24
43
+ }
44
+ };
45
+ });
46
+ const defaultProps = {
47
+ size: 'md',
48
+ transitionDuration: 300,
49
+ accessibilityLabel: 'Toggle navigation',
50
+ disabled: false
51
+ };
52
+ export const Burger = /*#__PURE__*/forwardRef((props, ref) => {
53
+ const {
54
+ opened,
55
+ onPress,
56
+ color,
57
+ size = 'md',
58
+ transitionDuration,
59
+ accessibilityLabel,
60
+ style,
61
+ disabled,
62
+ ...others
63
+ } = useComponentDefaultProps('Burger', defaultProps, props);
64
+ const topLineRotation = useRef(new Animated.Value(0)).current;
65
+ const middleLineOpacity = useRef(new Animated.Value(1)).current;
66
+ const bottomLineRotation = useRef(new Animated.Value(0)).current;
67
+ const topLineTranslateY = useRef(new Animated.Value(0)).current;
68
+ const bottomLineTranslateY = useRef(new Animated.Value(0)).current;
69
+ const burgerSize = typeof size === 'number' ? size : getSize({
70
+ size,
71
+ sizes
72
+ });
73
+ const lineHeight = Math.max(1, Math.round(burgerSize / 12));
74
+ const spacing = (burgerSize - lineHeight * 3) / 2;
75
+ const {
76
+ styles,
77
+ sx
78
+ } = useStyles({
79
+ size,
80
+ color: color || '#000',
81
+ disabled: disabled || false
82
+ }, {
83
+ name: 'Burger'
84
+ });
85
+ useEffect(() => {
86
+ const config = {
87
+ duration: transitionDuration,
88
+ useNativeDriver: true
89
+ };
90
+ if (opened) {
91
+ Animated.parallel([Animated.timing(topLineRotation, {
92
+ toValue: 1,
93
+ ...config
94
+ }), Animated.timing(middleLineOpacity, {
95
+ toValue: 0,
96
+ ...config
97
+ }), Animated.timing(bottomLineRotation, {
98
+ toValue: 1,
99
+ ...config
100
+ }), Animated.timing(topLineTranslateY, {
101
+ toValue: 1,
102
+ ...config
103
+ }), Animated.timing(bottomLineTranslateY, {
104
+ toValue: 1,
105
+ ...config
106
+ })]).start();
107
+ } else {
108
+ Animated.parallel([Animated.timing(topLineRotation, {
109
+ toValue: 0,
110
+ ...config
111
+ }), Animated.timing(middleLineOpacity, {
112
+ toValue: 1,
113
+ ...config
114
+ }), Animated.timing(bottomLineRotation, {
115
+ toValue: 0,
116
+ ...config
117
+ }), Animated.timing(topLineTranslateY, {
118
+ toValue: 0,
119
+ ...config
120
+ }), Animated.timing(bottomLineTranslateY, {
121
+ toValue: 0,
122
+ ...config
123
+ })]).start();
124
+ }
125
+ }, [opened, transitionDuration, topLineRotation, middleLineOpacity, bottomLineRotation, topLineTranslateY, bottomLineTranslateY]);
126
+ const topLineStyle = {
127
+ transform: [{
128
+ translateY: topLineTranslateY.interpolate({
129
+ inputRange: [0, 1],
130
+ outputRange: [0, spacing + lineHeight]
131
+ })
132
+ }, {
133
+ rotate: topLineRotation.interpolate({
134
+ inputRange: [0, 1],
135
+ outputRange: ['0deg', '45deg']
136
+ })
137
+ }]
138
+ };
139
+ const bottomLineStyle = {
140
+ transform: [{
141
+ translateY: bottomLineTranslateY.interpolate({
142
+ inputRange: [0, 1],
143
+ outputRange: [0, -(spacing + lineHeight)]
144
+ })
145
+ }, {
146
+ rotate: bottomLineRotation.interpolate({
147
+ inputRange: [0, 1],
148
+ outputRange: ['0deg', '-45deg']
149
+ })
150
+ }]
151
+ };
152
+ return /*#__PURE__*/_jsx(TouchableOpacity, {
153
+ ref: ref,
154
+ onPress: onPress,
155
+ disabled: disabled,
156
+ activeOpacity: 0.6,
157
+ accessible: true,
158
+ accessibilityLabel: accessibilityLabel,
159
+ accessibilityRole: "button",
160
+ accessibilityState: {
161
+ expanded: opened
162
+ },
163
+ style: sx(styles.root, style),
164
+ ...others,
165
+ children: /*#__PURE__*/_jsxs(Animated.View, {
166
+ style: styles.burger,
167
+ children: [/*#__PURE__*/_jsx(Animated.View, {
168
+ style: [styles.line, topLineStyle]
169
+ }), /*#__PURE__*/_jsx(Animated.View, {
170
+ style: [styles.line, {
171
+ opacity: middleLineOpacity
172
+ }]
173
+ }), /*#__PURE__*/_jsx(Animated.View, {
174
+ style: [styles.line, bottomLineStyle]
175
+ })]
176
+ })
177
+ });
178
+ });
179
+ Burger.displayName = 'Burger';
180
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["forwardRef","useEffect","useRef","TouchableOpacity","Animated","useComponentDefaultProps","createStyles","getSize","jsx","_jsx","jsxs","_jsxs","sizes","xs","sm","md","lg","xl","useStyles","_theme","size","color","disabled","burgerSize","root","width","height","justifyContent","alignItems","opacity","burger","position","line","Math","max","round","backgroundColor","borderRadius","defaultProps","transitionDuration","accessibilityLabel","Burger","props","ref","opened","onPress","style","others","topLineRotation","Value","current","middleLineOpacity","bottomLineRotation","topLineTranslateY","bottomLineTranslateY","lineHeight","spacing","styles","sx","name","config","duration","useNativeDriver","parallel","timing","toValue","start","topLineStyle","transform","translateY","interpolate","inputRange","outputRange","rotate","bottomLineStyle","activeOpacity","accessible","accessibilityRole","accessibilityState","expanded","children","View","displayName"],"sourceRoot":"../../../../src","sources":["components/Burger/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AACrD,SAASC,gBAAgB,EAAEC,QAAQ,QAAQ,cAAc;AAEzD,SAASC,wBAAwB,QAAQ,+BAA4B;AACrE,SAASC,YAAY,QAAQ,sBAAa;AAC1C,SAASC,OAAO,QAAQ,sBAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA4BtC,MAAMC,KAAK,GAAG;EACZC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE;AACN,CAAC;AAED,MAAMC,SAAS,GAAGZ,YAAY,CAC5B,CACEa,MAAM,EACN;EACEC,IAAI;EACJC,KA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EVrE,KAAA,CAACP,QAAQ,CAAC6E,IAAI;MAACnC,KAAK,EAAEW,MAAM,CAAC3B,MAAO;MAAAkD,QAAA,gBAClCvE,IAAA,CAACL,QAAQ,CAAC6E,IAAI;QAACnC,KAAK,EAAE,CAACW,MAAM,CAACzB,IAAI,EAAEmC,YAAY;MAAE,CAAE,CAAC,eACrD1D,IAAA,CAACL,QAAQ,CAAC6E,IAAI;QAACnC,KAAK,EAAE,CAACW,MAAM,CAACzB,IAAI,EAAE;UAAEH,OAAO,EAAEsB;QAAkB,CAAC;MAAE,CAAE,CAAC,eACvE1C,IAAA,CAACL,QAAQ,CAAC6E,IAAI;QAACnC,KAAK,EAAE,CAACW,MAAM,CAACzB,IAAI,EAAE0C,eAAe;MAAE,CAAE,CAAC;IAAA,CAC3C;EAAC,CACA,CAAC;AAEvB,CAAC,CAAC;AAEFjC,MAAM,CAACyC,WAAW,GAAG,QAAQ","ignoreList":[]}
@@ -117,16 +117,38 @@ const getWidthStyles = fullWidth => ({
117
117
  // };
118
118
  // }
119
119
 
120
+ function getVariantStyles({
121
+ variant,
122
+ theme,
123
+ color,
124
+ gradient
125
+ }) {
126
+ if (!BUTTON_VARIANTS.includes(variant)) {
127
+ return {};
128
+ }
129
+ const colors = theme.fn.variant({
130
+ color,
131
+ variant,
132
+ gradient
133
+ });
134
+ return {
135
+ backgroundColor: colors.background,
136
+ color: colors.color,
137
+ borderWidth: 1,
138
+ borderStyle: 'solid',
139
+ borderColor: colors.border
140
+ };
141
+ }
120
142
  const useStyles = createStyles((theme, {
121
143
  radius,
122
144
  fullWidth,
123
145
  compact,
124
146
  withLeftIcon,
125
- withRightIcon
126
- // color,
127
- // gradient,
147
+ withRightIcon,
148
+ color,
149
+ gradient
128
150
  }, {
129
- // variant,
151
+ variant,
130
152
  size
131
153
  }) => {
132
154
  return {
@@ -140,6 +162,12 @@ const useStyles = createStyles((theme, {
140
162
  ...theme.fn.fontStyles(),
141
163
  ...theme.fn.focusStyles(),
142
164
  ...getWidthStyles(fullWidth),
165
+ ...getVariantStyles({
166
+ variant,
167
+ theme,
168
+ color,
169
+ gradient
170
+ }),
143
171
  'borderRadius': theme.fn.radius(radius),
144
172
  'fontWeight': 600,
145
173
  'position': 'relative',
@@ -150,19 +178,11 @@ const useStyles = createStyles((theme, {
150
178
  }),
151
179
  'userSelect': 'none',
152
180
  'cursor': 'pointer',
153
- // ...getVariantStyles({ variant, theme, color, gradient }),
154
-
155
181
  '&:active': theme.activeStyles,
156
182
  '&:disabled, &[data-disabled]': {
157
183
  'borderColor': 'transparent',
158
- // 'backgroundColor':
159
- // theme.colorScheme === 'dark'
160
- // ? theme.colors.dark[4]
161
- // : theme.colors.gray[2],
162
- // 'color':
163
- // theme.colorScheme === 'dark'
164
- // ? theme.colors.dark[6]
165
- // : theme.colors.gray[5],
184
+ 'backgroundColor': theme.colors.gray?.[2] || '#e9ecef',
185
+ 'color': theme.colors.gray?.[5] || '#adb5bd',
166
186
  'cursor': 'not-allowed',
167
187
  'backgroundImage': 'none',
168
188
  'pointerEvents': 'none',
@@ -175,10 +195,7 @@ const useStyles = createStyles((theme, {
175
195
  '&::before': {
176
196
  content: '""',
177
197
  ...theme.fn.cover(rem(-1)),
178
- // backgroundColor:
179
- // theme.colorScheme === 'dark'
180
- // ? theme.fn.rgba(theme.colors.dark[7], 0.5)
181
- // : 'rgba(255, 255, 255, .5)',
198
+ backgroundColor: 'rgba(255, 255, 255, .5)',
182
199
  borderRadius: theme.fn.radius(radius),
183
200
  cursor: 'not-allowed'
184
201
  }
@@ -1 +1 @@
1
- {"version":3,"names":["createStyles","getSize","rem","INPUT_SIZES","BUTTON_VARIANTS","sizes","height","xs","paddingLeft","paddingRight","sm","md","lg","xl","getSizeStyles","size","withLeftIcon","withRightIcon","_sizes","getWidthStyles","fullWidth","display","width","useStyles","theme","radius","compact","root","fn","fontStyles","focusStyles","fontSizes","activeStyles","transform","content","cover","borderRadius","cursor","icon","alignItems","leftIcon","marginRight","spacing","rightIcon","marginLeft","centerLoader","position","left","opacity","inner","justifyContent","overflow","label","whiteSpace"],"sourceRoot":"../../../../src","sources":["components/Button/Button.styles.ts"],"mappings":";;AAAA,SAASA,YAAY,EAAEC,OAAO,QAAQ,sBAAa;AAEnD,SAASC,GAAG,QAAQ,0BAAuB;AAC3C,SAASC,WAAW,QAAQ,mBAAU;AAEtC,OAAO,MAAMC,eAAe,GAAG,CAC7B,QAAQ,EACR,SAAS,EACT,OAAO,EACP,OAAO,EACP,SAAS,EACT,QAAQ,EACR,UAAU,CACX;AAWD,OAAO,MAAMC,KAAK,GAAG;EACnB,IAAI,EAAE;IAAEC,MAAM,EAAEH,WAAW,CAACI,EAAE;IAAEC,WAAW,EAAEN,GAAG,CAAC,EAAE,CAAC;IAAEO,YAAY,EAAEP,GAAG,CAAC,EAAE;EAAE,CAAC;EAC7E,IAAI,EAAE;IAAEI,MAAM,EAAEH,WAAW,CAACO,EAAE;IAAEF,WAAW,EAAEN,GAAG,CAAC,EAAE,CAAC;IAAEO,YAAY,EAAEP,GAAG,CAAC,EAAE;EAAE,CAAC;EAC7E,IAAI,EAAE;IAAEI,MAAM,EAAEH,WAAW,CAACQ,EAAE;IAAEH,WAAW,EAAEN,GAAG,CAAC,EAAE,CAAC;IAAEO,YAAY,EAAEP,GAAG,CAAC,EAAE;EAAE,CAAC;EAC7E,IAAI,EAAE;IAAEI,MAAM,EAAEH,WAAW,CAACS,EAAE;IAAEJ,WAAW,EAAEN,GAAG,CAAC,EAAE,CAAC;IAAEO,YAAY,EAAEP,GAAG,CAAC,EAAE;EAAE,CAAC;EAC7E,IAAI,EAAE;IAAEI,MAAM,EAAEH,WAAW,CAACU,EAAE;IAAEL,WAAW,EAAEN,GAAG,CAAC,EAAE,CAAC;IAAEO,YAAY,EAAEP,GAAG,CAAC,EAAE;EAAE,CAAC;EAC7E,YAAY,EAAE;IAAEI,MAAM,EAAEJ,GAAG,CAAC,EAAE,CAAC;IAAEM,WAAW,EAAEN,GAAG,CAAC,CAAC,CAA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,EAAE;UACXC,OAAO,EAAE,IAAI;UACb,GAAGV,KAAK,CAACI,EAAE,CAACO,KAAK,CAACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;UAC1B;UACA;UACA;UACA;UACAkC,YAAY,EAAEZ,KAAK,CAACI,EAAE,CAACH,MAAM,CAACA,MAAM,CAAC;UACrCY,MAAM,EAAE;QACV;MACF;IACF,CAAC;IAEDC,IAAI,EAAE;MACJjB,OAAO,EAAE,MAAM;MACfkB,UAAU,EAAE;IACd,CAAC;IAEDC,QAAQ,EAAE;MACRC,WAAW,EAAEjB,KAAK,CAACkB,OAAO,CAACnC;IAC7B,CAAC;IAEDoC,SAAS,EAAE;MACTC,UAAU,EAAEpB,KAAK,CAACkB,OAAO,CAACnC;IAC5B,CAAC;IAEDsC,YAAY,EAAE;MACZC,QAAQ,EAAE,UAAU;MACpBC,IAAI,EAAE,KAAK;MACXd,SAAS,EAAE,kBAAkB;MAC7Be,OAAO,EAAE;IACX,CAAC;IAEDC,KAAK,EAAE;MACL5B,OAAO,EAAE,MAAM;MACfkB,UAAU,EAAE,QAAQ;MACpBW,cAAc,EAAE,QAAQ;MACxB5C,MAAM,EAAE,MAAM;MACd6C,QAAQ,EAAE;IACZ,CAAC;IAEDC,KAAK,EAAE;MACLC,UAAU,EAAE,QAAQ;MACpB/C,MAAM,EAAE,MAAM;MACd6C,QAAQ,EAAE,QAAQ;MAClB9B,OAAO,EAAE,MAAM;MACfkB,UAAU,EAAE;IACd;EACF,CAAC;AACH,CACF,CAAC;AACD,eAAehB,SAAS","ignoreList":[]}
1
+ {"version":3,"names":["createStyles","getSize","rem","INPUT_SIZES","BUTTON_VARIANTS","sizes","height","xs","paddingLeft","paddingRight","sm","md","lg","xl","getSizeStyles","size","withLeftIcon","withRightIcon","_sizes","getWidthStyles","fullWidth","display","width","getVariantStyles","variant","theme","color","gradient","includes","colors","fn","backgroundColor","background","borderWidth","borderStyle","borderColor","border","useStyles","radius","compact","root","fontStyles","focusStyles","fontSizes","activeStyles","gray","transform","content","cover","borderRadius","cursor","icon","alignItems","leftIcon","marginRight","spacing","rightIcon","marginLeft","centerLoader","position","left","opacity","inner","justifyContent","overflow","label","whiteSpace"],"sourceRoot":"../../../../src","sources":["components/Button/Button.styles.ts"],"mappings":";;AAAA,SAASA,YAAY,EAAEC,OAAO,QAAQ,sBAAa;AAEnD,SAASC,GAAG,QAAQ,0BAAuB;AAC3C,SAASC,WAAW,QAAQ,mBAAU;AAEtC,OAAO,MAAMC,eAAe,GAAG,CAC7B,QAAQ,EACR,SAAS,EACT,OAAO,EACP,OAAO,EACP,SAAS,EACT,QAAQ,EACR,UAAU,CACX;AAYD,OAAO,MAAMC,KAAK,GAAG;EACnB,IAAI,EAAE;IAAEC,MAAM,EAAEH,WAAW,CAACI,EAAE;IAAEC,WAAW,EAAEN,GAAG,CAAC,EAAE,CAAC;IAAEO,YAAY,EAAEP,GAAG,CAAC,EAAE;EAAE,CAAC;EAC7E,IAAI,EAAE;IAAEI,MAAM,EAAEH,WAAW,CAACO,EAAE;IAAEF,WAAW,EAAEN,GAAG,CAAC,EAAE,CAAC;IAAEO,YAAY,EAAEP,GAAG,CAAC,EAAE;EAAE,CAAC;EAC7E,IAAI,EAAE;IAAEI,MAAM,EAAEH,WAAW,CAACQ,EAAE;IAAEH,WAAW,EAAEN,GAAG,CAAC,EAAE,CAAC;IAAEO,YAAY,EAAEP,GAAG,CAAC,EAAE;EAAE,CAAC;EAC7E,IAAI,EAAE;IAAEI,MAAM,EAAEH,WAAW,CAACS,EAAE;IAAEJ,WAAW,EAAEN,GAAG,CAAC,EAAE,CAAC;IAAEO,YAAY,EAAEP,GAAG,CAAC,EAAE;EAAE,CAAC;EAC7E,IAAI,EAAE;IAAEI,MAAM,EAAEH,WAAW,CAACU,EAAE;IAAEL,WAAW,EAAEN,GAAG,CAAC,EAAE,CAAC;IAAEO,YAAY,EAAEP,GAAG,CAAC,EAAE;EAAE,CAAC;EAC7E,YAAY,EAAE;IAAEI,MAA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IAEDiD,SAAS,EAAE;MACTC,UAAU,EAAEhC,KAAK,CAAC8B,OAAO,CAAChD;IAC5B,CAAC;IAEDmD,YAAY,EAAE;MACZC,QAAQ,EAAE,UAAU;MACpBC,IAAI,EAAE,KAAK;MACXd,SAAS,EAAE,kBAAkB;MAC7Be,OAAO,EAAE;IACX,CAAC;IAEDC,KAAK,EAAE;MACLzC,OAAO,EAAE,MAAM;MACf+B,UAAU,EAAE,QAAQ;MACpBW,cAAc,EAAE,QAAQ;MACxBzD,MAAM,EAAE,MAAM;MACd0D,QAAQ,EAAE;IACZ,CAAC;IAEDC,KAAK,EAAE;MACLC,UAAU,EAAE,QAAQ;MACpB5D,MAAM,EAAE,MAAM;MACd0D,QAAQ,EAAE,QAAQ;MAClB3C,OAAO,EAAE,MAAM;MACf+B,UAAU,EAAE;IACd;EACF,CAAC;AACH,CACF,CAAC;AACD,eAAef,SAAS","ignoreList":[]}
@@ -98,4 +98,5 @@ export const _Button = /*#__PURE__*/forwardRef((props, ref) => {
98
98
  })
99
99
  });
100
100
  });
101
+ export const Button = _Button;
101
102
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","forwardRef","UnstyledButton","ActivityIndicator","useComponentDefaultProps","useStyles","BoxView","jsx","_jsx","jsxs","_jsxs","defaultProps","size","type","variant","loaderPosition","_Button","props","ref","color","disabled","children","leftIcon","rightIcon","fullWidth","radius","uppercase","compact","loading","loaderProps","gradient","style","others","styles","sx","withLeftIcon","withRightIcon","name","loader","root","undefined","inner","icon","centerLoader","label"],"sourceRoot":"../../../../src","sources":["components/Button/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,cAAc,QAAQ,4BAAmB;AAUlD,SAASC,iBAAiB,QAAQ,cAAc;AAChD,SAASC,wBAAwB,QAAQ,+BAA4B;AACrE,OAAOC,SAAS,MAAM,oBAAiB;AACvC,SAASC,OAAO,QAAQ,qBAAY;AAAC,SA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A,eAEVX,KAAA,CAACJ,OAAO;MAACyB,KAAK,EAAEE,MAAM,CAACQ,KAAM;MAAApB,QAAA,GAC1B,CAACC,QAAQ,IAAKM,OAAO,IAAIb,cAAc,KAAK,MAAO,kBAClDP,IAAA,CAACF,OAAO;QAACyB,KAAK,EAAEG,EAAE,CAACD,MAAM,CAACS,IAAI,EAAET,MAAM,CAACX,QAAQ,CAAE;QAAAD,QAAA,EAC9CO,OAAO,IAAIb,cAAc,KAAK,MAAM,GAAGuB,MAAM,GAAGhB;MAAQ,CAClD,CACV,EAEAM,OAAO,IAAIb,cAAc,KAAK,QAAQ,iBACrCP,IAAA,CAACF,OAAO;QAACyB,KAAK,EAAEE,MAAM,CAACU,YAAa;QAAAtB,QAAA,EAAEiB;MAAM,CAAU,CACvD,eAED9B,IAAA,CAACF,OAAO;QACNyB,KAAK,EAAEE,MAAM,CAACW;QACd;QAAA;QAAAvB,QAAA,EAECA;MAAQ,CACF,CAAC,EAET,CAACE,SAAS,IAAKK,OAAO,IAAIb,cAAc,KAAK,OAAQ,kBACpDP,IAAA,CAACF,OAAO;QAACyB,KAAK,EAAEG,EAAE,CAACD,MAAM,CAACS,IAAI,EAAET,MAAM,CAACV,SAAS,CAAE;QAAAF,QAAA,EAC/CO,OAAO,IAAIb,cAAc,KAAK,OAAO,GAAGuB,MAAM,GAAGf;MAAS,CACpD,CACV;IAAA,CACM;EAAC,CACI,CAAC;AAErB,CACF,CAAQ","ignoreList":[]}
1
+ {"version":3,"names":["React","forwardRef","UnstyledButton","ActivityIndicator","useComponentDefaultProps","useStyles","BoxView","jsx","_jsx","jsxs","_jsxs","defaultProps","size","type","variant","loaderPosition","_Button","props","ref","color","disabled","children","leftIcon","rightIcon","fullWidth","radius","uppercase","compact","loading","loaderProps","gradient","style","others","styles","sx","withLeftIcon","withRightIcon","name","loader","root","undefined","inner","icon","centerLoader","label","Button"],"sourceRoot":"../../../../src","sources":["components/Button/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IA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EAAE,CAACD,MAAM,CAACM,IAAI,EAAER,KAAK;IAC5B;IACA;IAAA;IACA,mBAAW;IACX,iBAAeX,QAAQ,IAAIoB,SAAU;IACrC,gBAAcZ,OAAO,IAAIY,SAAU;IACnCtB,GAAG,EAAEA;IACL;IAAA;IAAA,GACIc,MAAM;IAAAX,QAAA,eAEVX,KAAA,CAACJ,OAAO;MAACyB,KAAK,EAAEE,MAAM,CAACQ,KAAM;MAAApB,QAAA,GAC1B,CAACC,QAAQ,IAAKM,OAAO,IAAIb,cAAc,KAAK,MAAO,kBAClDP,IAAA,CAACF,OAAO;QAACyB,KAAK,EAAEG,EAAE,CAACD,MAAM,CAACS,IAAI,EAAET,MAAM,CAACX,QAAQ,CAAE;QAAAD,QAAA,EAC9CO,OAAO,IAAIb,cAAc,KAAK,MAAM,GAAGuB,MAAM,GAAGhB;MAAQ,CAClD,CACV,EAEAM,OAAO,IAAIb,cAAc,KAAK,QAAQ,iBACrCP,IAAA,CAACF,OAAO;QAACyB,KAAK,EAAEE,MAAM,CAACU,YAAa;QAAAtB,QAAA,EAAEiB;MAAM,CAAU,CACvD,eAED9B,IAAA,CAACF,OAAO;QACNyB,KAAK,EAAEE,MAAM,CAACW;QACd;QAAA;QAAAvB,QAAA,EAECA;MAAQ,CACF,CAAC,EAET,CAACE,SAAS,IAAKK,OAAO,IAAIb,cAAc,KAAK,OAAQ,kBACpDP,IAAA,CAACF,OAAO;QAACyB,KAAK,EAAEG,EAAE,CAACD,MAAM,CAACS,IAAI,EAAET,MAAM,CAACV,SAAS,CAAE;QAAAF,QAAA,EAC/CO,OAAO,IAAIb,cAAc,KAAK,OAAO,GAAGuB,MAAM,GAAGf;MAAS,CACpD,CACV;IAAA,CACM;EAAC,CACI,CAAC;AAErB,CACF,CAAQ;AAER,OAAO,MAAMsB,MAAM,GAAG7B,OAAO","ignoreList":[]}
@@ -0,0 +1,130 @@
1
+ "use strict";
2
+
3
+ import React, { forwardRef, createContext, useContext } from 'react';
4
+ import { BoxView } from "../BoxView/index.js";
5
+ import { Paper } from "../Paper/index.js";
6
+ import { useComponentDefaultProps } from "../../theme/theme-provider.js";
7
+ import { createStyles } from "../../theme/index.js";
8
+ import { rem } from "../../theme/utils/rem.js";
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ const CardContext = /*#__PURE__*/createContext(null);
11
+ const useCardContext = () => {
12
+ const context = useContext(CardContext);
13
+ return context;
14
+ };
15
+ const useCardStyles = createStyles((theme, {
16
+ padding
17
+ }) => {
18
+ const getPadding = () => {
19
+ if (padding === undefined) return theme.spacing.md;
20
+ if (typeof padding === 'number') return rem(padding);
21
+ return theme.spacing[padding] || theme.spacing.md;
22
+ };
23
+ return {
24
+ root: {
25
+ padding: getPadding(),
26
+ overflow: 'hidden'
27
+ }
28
+ };
29
+ });
30
+ const useCardSectionStyles = createStyles((theme, {
31
+ padding,
32
+ withBorder,
33
+ inheritPadding,
34
+ cardPadding
35
+ }) => {
36
+ const getPadding = () => {
37
+ if (inheritPadding && cardPadding !== undefined) {
38
+ if (typeof cardPadding === 'number') return rem(cardPadding);
39
+ return theme.spacing[cardPadding] || theme.spacing.md;
40
+ }
41
+ if (padding === undefined) return 0;
42
+ if (typeof padding === 'number') return rem(padding);
43
+ return theme.spacing[padding] || 0;
44
+ };
45
+ return {
46
+ root: {
47
+ padding: getPadding(),
48
+ ...(withBorder && {
49
+ borderTopWidth: 1,
50
+ borderBottomWidth: 1,
51
+ borderColor: theme.colorScheme === 'dark' ? theme.colors.dark?.[4] : theme.colors.gray?.[3]
52
+ })
53
+ }
54
+ };
55
+ });
56
+ const defaultCardProps = {
57
+ padding: 'md',
58
+ radius: 'sm',
59
+ withBorder: false
60
+ };
61
+ const defaultCardSectionProps = {
62
+ inheritPadding: false,
63
+ withBorder: false
64
+ };
65
+ export const Card = /*#__PURE__*/forwardRef((props, ref) => {
66
+ const {
67
+ padding,
68
+ children,
69
+ style,
70
+ p,
71
+ ...otherProps
72
+ } = useComponentDefaultProps('Card', defaultCardProps, props);
73
+ const {
74
+ styles,
75
+ sx
76
+ } = useCardStyles({
77
+ padding
78
+ }, {
79
+ name: 'Card'
80
+ });
81
+
82
+ // Use p prop for Paper, padding for Card internal logic
83
+ const paperPadding = p !== undefined ? p : 0;
84
+ return /*#__PURE__*/_jsx(CardContext.Provider, {
85
+ value: {
86
+ padding: padding
87
+ },
88
+ children: /*#__PURE__*/_jsx(Paper, {
89
+ ref: ref,
90
+ p: paperPadding,
91
+ style: sx(styles.root, style),
92
+ ...otherProps,
93
+ children: children
94
+ })
95
+ });
96
+ });
97
+ export const CardSection = /*#__PURE__*/forwardRef((props, ref) => {
98
+ const {
99
+ children,
100
+ inheritPadding,
101
+ padding,
102
+ withBorder,
103
+ style,
104
+ ...others
105
+ } = useComponentDefaultProps('CardSection', defaultCardSectionProps, props);
106
+ const cardContext = useCardContext();
107
+ const {
108
+ styles,
109
+ sx
110
+ } = useCardSectionStyles({
111
+ padding,
112
+ withBorder,
113
+ inheritPadding,
114
+ cardPadding: cardContext?.padding
115
+ }, {
116
+ name: 'CardSection'
117
+ });
118
+ return /*#__PURE__*/_jsx(BoxView, {
119
+ ref: ref,
120
+ style: sx(styles.root, style),
121
+ ...others,
122
+ children: children
123
+ });
124
+ });
125
+ Card.displayName = 'Card';
126
+ CardSection.displayName = 'Card.Section';
127
+
128
+ // Attach sub-components
129
+ Card.Section = CardSection;
130
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","createContext","useContext","BoxView","Paper","useComponentDefaultProps","createStyles","rem","jsx","_jsx","CardContext","useCardContext","context","useCardStyles","theme","padding","getPadding","undefined","spacing","md","root","overflow","useCardSectionStyles","withBorder","inheritPadding","cardPadding","borderTopWidth","borderBottomWidth","borderColor","colorScheme","colors","dark","gray","defaultCardProps","radius","defaultCardSectionProps","Card","props","ref","children","style","p","otherProps","styles","sx","name","paperPadding","Provider","value","CardSection","others","cardContext","displayName","Section"],"sourceRoot":"../../../../src","sources":["components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,WAAW","ignoreList":[]}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ import React, { forwardRef } from 'react';
4
+ import { BoxView } from "../BoxView/index.js";
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ /**
7
+ * Center component centers its children horizontally and vertically
8
+ * Uses flexbox to achieve centering
9
+ */
10
+ export const Center = /*#__PURE__*/forwardRef((props, ref) => {
11
+ const {
12
+ children,
13
+ style,
14
+ inline,
15
+ ...others
16
+ } = props;
17
+ return /*#__PURE__*/_jsx(BoxView, {
18
+ ref: ref,
19
+ style: [{
20
+ display: 'flex',
21
+ flexDirection: 'column',
22
+ alignItems: 'center',
23
+ justifyContent: 'center'
24
+ }, style],
25
+ ...others,
26
+ children: children
27
+ });
28
+ });
29
+ Center.displayName = 'Center';
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","BoxView","jsx","_jsx","Center","props","ref","children","style","inline","others","display","flexDirection","alignItems","justifyContent","displayName"],"sourceRoot":"../../../../src","sources":["components/Center/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,OAAO,QAAQ,qBAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAYrC;AACA;AACA;AACA;AACA,OAAO,MAAMC,MAAM,gBAAGJ,UAAU,CAAmB,CAACK,KAAK,EAAEC,GAAG,KAAK;EACjE,MAAM;IAAEC,QAAQ;IAAEC,KAAK;IAAEC,MAAM;IAAE,GAAGC;EAAM,CAAC,GAAGL,KAAK;EAEnD,oBACEF,IAAA,CAACF,OAAO;IACNK,GAAG,EAAEA,GAAI;IACTE,KAAK,EAAE,CACL;MACEG,OAAO,EAAE,MAAM;MACfC,aAAa,EAAE,QAAQ;MACvBC,UAAU,EAAE,QAAQ;MACpBC,cAAc,EAAE;IAClB,CAAC,EACDN,KAAK,CACL;IAAA,GACEE,MAAM;IAAAH,QAAA,EAETA;EAAQ,CACF,CAAC;AAEd,CAAC,CAAC;AAEFH,MAAM,CAACW,WAAW,GAAG,QAAQ","ignoreList":[]}
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+
3
+ import React, { forwardRef, useEffect, useRef } from 'react';
4
+ import { Pressable, Animated } from 'react-native';
5
+ import { BoxView } from "../BoxView/index.js";
6
+ import { Text } from "../Text/index.js";
7
+ import { useComponentDefaultProps } from "../../theme/theme-provider.js";
8
+ import { createStyles } from "../../theme/index.js";
9
+ import { rem } from "../../theme/utils/rem.js";
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
+ const sizes = {
12
+ xs: rem(14),
13
+ sm: rem(18),
14
+ md: rem(22),
15
+ lg: rem(28),
16
+ xl: rem(36)
17
+ };
18
+ const useStyles = createStyles((theme, {
19
+ size,
20
+ color,
21
+ disabled
22
+ }) => {
23
+ const colors = theme.colors[color] || theme.colors[theme.primaryColor];
24
+ const checkboxSize = sizes[size] || sizes.md;
25
+ return {
26
+ root: {
27
+ flexDirection: 'row',
28
+ alignItems: 'center',
29
+ opacity: disabled ? 0.5 : 1
30
+ },
31
+ checkbox: {
32
+ width: checkboxSize,
33
+ height: checkboxSize,
34
+ borderRadius: theme.radius.sm,
35
+ borderWidth: 2,
36
+ borderColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[4] : (theme.colors.gray || [])[4],
37
+ backgroundColor: 'transparent',
38
+ justifyContent: 'center',
39
+ alignItems: 'center'
40
+ },
41
+ checked: {
42
+ borderColor: colors?.[6] || colors?.[5] || theme.primaryBgColor,
43
+ backgroundColor: colors?.[6] || colors?.[5] || theme.primaryBgColor
44
+ },
45
+ checkmark: {
46
+ color: theme.white,
47
+ fontSize: checkboxSize * 0.6,
48
+ fontWeight: 'bold'
49
+ },
50
+ label: {
51
+ fontSize: theme.fontSizes.sm,
52
+ color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[0] : theme.black,
53
+ marginLeft: theme.spacing.sm,
54
+ flex: 1
55
+ }
56
+ };
57
+ });
58
+ const defaultProps = {
59
+ size: 'md',
60
+ color: 'blue',
61
+ checked: false,
62
+ indeterminate: false,
63
+ disabled: false
64
+ };
65
+ export const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
66
+ const {
67
+ label,
68
+ size,
69
+ color,
70
+ checked,
71
+ onChange,
72
+ indeterminate,
73
+ disabled,
74
+ style,
75
+ wrapperStyle,
76
+ ...otherProps
77
+ } = useComponentDefaultProps('Checkbox', defaultProps, props);
78
+ const {
79
+ styles,
80
+ sx
81
+ } = useStyles({
82
+ size,
83
+ color,
84
+ disabled
85
+ }, {
86
+ name: 'Checkbox'
87
+ });
88
+ const scaleAnim = useRef(new Animated.Value(checked ? 1 : 0)).current;
89
+ useEffect(() => {
90
+ Animated.spring(scaleAnim, {
91
+ toValue: checked || indeterminate ? 1 : 0,
92
+ useNativeDriver: true,
93
+ tension: 100,
94
+ friction: 7
95
+ }).start();
96
+ }, [checked, indeterminate, scaleAnim]);
97
+ const handlePress = () => {
98
+ if (!disabled) {
99
+ onChange?.(!checked);
100
+ }
101
+ };
102
+ const checkboxContent = /*#__PURE__*/_jsx(BoxView, {
103
+ style: sx(styles.checkbox, (checked || indeterminate) && styles.checked, style),
104
+ children: /*#__PURE__*/_jsx(Animated.View, {
105
+ style: {
106
+ transform: [{
107
+ scale: scaleAnim
108
+ }],
109
+ opacity: scaleAnim
110
+ },
111
+ children: /*#__PURE__*/_jsx(Text, {
112
+ style: styles.checkmark,
113
+ children: indeterminate ? '−' : '✓'
114
+ })
115
+ })
116
+ });
117
+ return /*#__PURE__*/_jsxs(Pressable, {
118
+ ref: ref,
119
+ onPress: handlePress,
120
+ disabled: disabled,
121
+ style: sx(styles.root, wrapperStyle),
122
+ accessibilityRole: "checkbox",
123
+ accessibilityState: {
124
+ checked: checked || indeterminate
125
+ },
126
+ ...otherProps,
127
+ children: [checkboxContent, label && /*#__PURE__*/_jsx(Text, {
128
+ style: styles.label,
129
+ children: label
130
+ })]
131
+ });
132
+ });
133
+ Checkbox.displayName = 'Checkbox';
134
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","useEffect","useRef","Pressable","Animated","BoxView","Text","useComponentDefaultProps","createStyles","rem","jsx","_jsx","jsxs","_jsxs","sizes","xs","sm","md","lg","xl","useStyles","theme","size","color","disabled","colors","primaryColor","checkboxSize","root","flexDirection","alignItems","opacity","checkbox","width","height","borderRadius","radius","borderWidth","borderColor","colorScheme","dark","gray","backgroundColor","justifyContent","checked","primaryBgColor","checkmark","white","fontSize","fontWeight","label","fontSizes","black","marginLeft","spacing","flex","defaultProps","indeterminate","Checkbox","props","ref","onChange","style","wrapperStyle","otherProps","styles","sx","name","scaleAnim","Value","current","spring","toValue","useNativeDriver","tension","friction","start","handlePress","checkboxContent","children","View","transform","scale","onPress","accessibilityRole","accessibilityState","displayName"],"sourceRoot":"../../../../src","sources":["components/Checkbox/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAC5D,SAASC,SAAS,EAAEC,QAAQ,QAAQ,cAAc;AAClD,SAASC,OAAO,QAAQ,qBAAY;AACpC,SAASC,IAAI,QAAQ,kBAAS;AAE9B,SAASC,wBAAwB,QAAQ,+BAA4B;AACrE,SAASC,YAAY,QAAQ,sBAAa;AAC1C,SAASC,GAAG,QAAQ,0BAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA+B5C,MAAMC,KAAK,GAAG;EACZC,EAAE,EAAEN,GAAG,CAAC,EAAE,CAAC;EACXO,EAAE,EAAEP,GAAG,CAAC,EAAE,CAAC;EACXQ,EAAE,EAAER,GAAG,CAAC,EAAE,CAAC;EACXS,EAAE,EAAET,GAAG,CAAC,EAAE,CAAC;EACXU,EAAE,EAAEV,GAAG,CAAC,EAAE;AACZ,CAAC;AAED,MAAMW,SAAS,GAAGZ,YAAY,CAC5B,CACEa,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