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,139 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Checkbox = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _index = require("../BoxView/index.js");
10
+ var _index2 = require("../Text/index.js");
11
+ var _themeProvider = require("../../theme/theme-provider.js");
12
+ var _index3 = require("../../theme/index.js");
13
+ var _rem = require("../../theme/utils/rem.js");
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
16
+ const sizes = {
17
+ xs: (0, _rem.rem)(14),
18
+ sm: (0, _rem.rem)(18),
19
+ md: (0, _rem.rem)(22),
20
+ lg: (0, _rem.rem)(28),
21
+ xl: (0, _rem.rem)(36)
22
+ };
23
+ const useStyles = (0, _index3.createStyles)((theme, {
24
+ size,
25
+ color,
26
+ disabled
27
+ }) => {
28
+ const colors = theme.colors[color] || theme.colors[theme.primaryColor];
29
+ const checkboxSize = sizes[size] || sizes.md;
30
+ return {
31
+ root: {
32
+ flexDirection: 'row',
33
+ alignItems: 'center',
34
+ opacity: disabled ? 0.5 : 1
35
+ },
36
+ checkbox: {
37
+ width: checkboxSize,
38
+ height: checkboxSize,
39
+ borderRadius: theme.radius.sm,
40
+ borderWidth: 2,
41
+ borderColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[4] : (theme.colors.gray || [])[4],
42
+ backgroundColor: 'transparent',
43
+ justifyContent: 'center',
44
+ alignItems: 'center'
45
+ },
46
+ checked: {
47
+ borderColor: colors?.[6] || colors?.[5] || theme.primaryBgColor,
48
+ backgroundColor: colors?.[6] || colors?.[5] || theme.primaryBgColor
49
+ },
50
+ checkmark: {
51
+ color: theme.white,
52
+ fontSize: checkboxSize * 0.6,
53
+ fontWeight: 'bold'
54
+ },
55
+ label: {
56
+ fontSize: theme.fontSizes.sm,
57
+ color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[0] : theme.black,
58
+ marginLeft: theme.spacing.sm,
59
+ flex: 1
60
+ }
61
+ };
62
+ });
63
+ const defaultProps = {
64
+ size: 'md',
65
+ color: 'blue',
66
+ checked: false,
67
+ indeterminate: false,
68
+ disabled: false
69
+ };
70
+ const Checkbox = exports.Checkbox = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
71
+ const {
72
+ label,
73
+ size,
74
+ color,
75
+ checked,
76
+ onChange,
77
+ indeterminate,
78
+ disabled,
79
+ style,
80
+ wrapperStyle,
81
+ ...otherProps
82
+ } = (0, _themeProvider.useComponentDefaultProps)('Checkbox', defaultProps, props);
83
+ const {
84
+ styles,
85
+ sx
86
+ } = useStyles({
87
+ size,
88
+ color,
89
+ disabled
90
+ }, {
91
+ name: 'Checkbox'
92
+ });
93
+ const scaleAnim = (0, _react.useRef)(new _reactNative.Animated.Value(checked ? 1 : 0)).current;
94
+ (0, _react.useEffect)(() => {
95
+ _reactNative.Animated.spring(scaleAnim, {
96
+ toValue: checked || indeterminate ? 1 : 0,
97
+ useNativeDriver: true,
98
+ tension: 100,
99
+ friction: 7
100
+ }).start();
101
+ }, [checked, indeterminate, scaleAnim]);
102
+ const handlePress = () => {
103
+ if (!disabled) {
104
+ onChange?.(!checked);
105
+ }
106
+ };
107
+ const checkboxContent = /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
108
+ style: sx(styles.checkbox, (checked || indeterminate) && styles.checked, style),
109
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
110
+ style: {
111
+ transform: [{
112
+ scale: scaleAnim
113
+ }],
114
+ opacity: scaleAnim
115
+ },
116
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
117
+ style: styles.checkmark,
118
+ children: indeterminate ? '−' : '✓'
119
+ })
120
+ })
121
+ });
122
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
123
+ ref: ref,
124
+ onPress: handlePress,
125
+ disabled: disabled,
126
+ style: sx(styles.root, wrapperStyle),
127
+ accessibilityRole: "checkbox",
128
+ accessibilityState: {
129
+ checked: checked || indeterminate
130
+ },
131
+ ...otherProps,
132
+ children: [checkboxContent, label && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
133
+ style: styles.label,
134
+ children: label
135
+ })]
136
+ });
137
+ });
138
+ Checkbox.displayName = 'Checkbox';
139
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_index2","_themeProvider","_index3","_rem","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","sizes","xs","rem","sm","md","lg","xl","useStyles","createStyles","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","exports","forwardRef","props","ref","onChange","style","wrapperStyle","otherProps","useComponentDefaultProps","styles","sx","name","scaleAnim","useRef","Animated","Value","current","useEffect","spring","toValue","useNativeDriver","tension","friction","start","handlePress","checkboxContent","jsx","BoxView","children","View","transform","scale","Text","jsxs","Pressable","onPress","accessibilityRole","accessibilityState","displayName"],"sourceRoot":"../../../../src","sources":["components/Checkbox/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAEA,IAAAI,cAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,IAAA,GAAAN,OAAA;AAA4C,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAD,wBAAAS,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAX,uBAAA,YAAAA,CAAAS,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,C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AAErC;IAAK,CAAO,CAAC;EAAA,CAC1C,CAAC;AAEhB,CAAC,CAAC;AAEFQ,QAAQ,CAACuC,WAAW,GAAG,UAAU","ignoreList":[]}
@@ -0,0 +1,268 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ChipGroup = exports.Chip = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _index = require("../BoxView/index.js");
10
+ var _index2 = require("../Text/index.js");
11
+ var _themeProvider = require("../../theme/theme-provider.js");
12
+ var _index3 = require("../../theme/index.js");
13
+ var _rem = require("../../theme/utils/rem.js");
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
16
+ const sizes = {
17
+ xs: {
18
+ height: (0, _rem.rem)(24),
19
+ fontSize: (0, _rem.rem)(10),
20
+ paddingHorizontal: (0, _rem.rem)(8)
21
+ },
22
+ sm: {
23
+ height: (0, _rem.rem)(28),
24
+ fontSize: (0, _rem.rem)(12),
25
+ paddingHorizontal: (0, _rem.rem)(10)
26
+ },
27
+ md: {
28
+ height: (0, _rem.rem)(32),
29
+ fontSize: (0, _rem.rem)(14),
30
+ paddingHorizontal: (0, _rem.rem)(12)
31
+ },
32
+ lg: {
33
+ height: (0, _rem.rem)(36),
34
+ fontSize: (0, _rem.rem)(16),
35
+ paddingHorizontal: (0, _rem.rem)(14)
36
+ },
37
+ xl: {
38
+ height: (0, _rem.rem)(42),
39
+ fontSize: (0, _rem.rem)(18),
40
+ paddingHorizontal: (0, _rem.rem)(16)
41
+ }
42
+ };
43
+ const useStyles = (0, _index3.createStyles)((theme, {
44
+ size,
45
+ color,
46
+ radius,
47
+ variant,
48
+ checked,
49
+ disabled
50
+ }) => {
51
+ const colors = theme.colors[color] || theme.colors[theme.primaryColor];
52
+ const sizeStyles = sizes[size] || sizes.md;
53
+ const getVariantStyles = () => {
54
+ if (!checked) {
55
+ return {
56
+ backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark?.[6] : theme.colors.gray?.[1],
57
+ borderWidth: 1,
58
+ borderColor: theme.colorScheme === 'dark' ? theme.colors.dark?.[4] : theme.colors.gray?.[4]
59
+ };
60
+ }
61
+ switch (variant) {
62
+ case 'filled':
63
+ return {
64
+ backgroundColor: colors?.[6] || colors?.[5] || theme.primaryBgColor,
65
+ borderWidth: 0
66
+ };
67
+ case 'outline':
68
+ return {
69
+ backgroundColor: 'transparent',
70
+ borderWidth: 1,
71
+ borderColor: colors?.[6] || colors?.[5] || theme.primaryBgColor
72
+ };
73
+ case 'light':
74
+ return {
75
+ backgroundColor: theme.colorScheme === 'dark' ? theme.fn.rgba(colors?.[9] || theme.primaryBgColor, 0.25) : colors?.[0] || (theme.colors.gray || [])[1],
76
+ borderWidth: 0
77
+ };
78
+ default:
79
+ return {
80
+ backgroundColor: colors?.[6] || colors?.[5] || theme.primaryBgColor,
81
+ borderWidth: 0
82
+ };
83
+ }
84
+ };
85
+ const getTextColor = () => {
86
+ if (!checked) {
87
+ return theme.colorScheme === 'dark' ? theme.white : theme.black;
88
+ }
89
+ switch (variant) {
90
+ case 'filled':
91
+ return theme.white;
92
+ case 'outline':
93
+ case 'light':
94
+ return colors?.[6] || colors?.[5] || theme.primaryBgColor;
95
+ default:
96
+ return theme.white;
97
+ }
98
+ };
99
+ return {
100
+ root: {
101
+ flexDirection: 'row',
102
+ alignItems: 'center',
103
+ justifyContent: 'center',
104
+ height: sizeStyles.height,
105
+ paddingHorizontal: sizeStyles.paddingHorizontal,
106
+ borderRadius: theme.fn.radius(radius),
107
+ ...getVariantStyles(),
108
+ ...(disabled && {
109
+ opacity: 0.6
110
+ })
111
+ },
112
+ icon: {
113
+ marginRight: (0, _rem.rem)(6)
114
+ },
115
+ text: {
116
+ fontSize: sizeStyles.fontSize,
117
+ fontWeight: checked ? '600' : '500',
118
+ color: getTextColor()
119
+ }
120
+ };
121
+ });
122
+ const defaultProps = {
123
+ size: 'sm',
124
+ color: 'blue',
125
+ radius: 'xl',
126
+ variant: 'filled',
127
+ disabled: false,
128
+ type: 'checkbox'
129
+ };
130
+ const Chip = exports.Chip = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
131
+ const {
132
+ children,
133
+ size,
134
+ color,
135
+ radius,
136
+ variant,
137
+ checked: controlledChecked,
138
+ defaultChecked,
139
+ onChange,
140
+ disabled,
141
+ icon,
142
+ style,
143
+ textStyle,
144
+ value,
145
+ type,
146
+ ...others
147
+ } = (0, _themeProvider.useComponentDefaultProps)('Chip', defaultProps, props);
148
+ const [uncontrolledChecked, setUncontrolledChecked] = _react.default.useState(defaultChecked || false);
149
+ const checked = controlledChecked !== undefined ? controlledChecked : uncontrolledChecked;
150
+ const {
151
+ styles,
152
+ sx
153
+ } = useStyles({
154
+ size,
155
+ color,
156
+ radius,
157
+ variant,
158
+ checked,
159
+ disabled
160
+ }, {
161
+ name: 'Chip'
162
+ });
163
+ const handlePress = () => {
164
+ if (disabled) return;
165
+ const newChecked = !checked;
166
+ if (controlledChecked === undefined) {
167
+ setUncontrolledChecked(newChecked);
168
+ }
169
+ onChange?.(newChecked);
170
+ };
171
+ const showIcon = checked && icon;
172
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
173
+ ref: ref,
174
+ style: sx(styles.root, style),
175
+ onPress: handlePress,
176
+ disabled: disabled,
177
+ activeOpacity: 0.7,
178
+ ...others,
179
+ children: [showIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
180
+ style: styles.icon,
181
+ children: icon
182
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
183
+ style: sx(styles.text, textStyle),
184
+ children: children
185
+ })]
186
+ });
187
+ });
188
+ Chip.displayName = 'Chip';
189
+
190
+ // Chip.Group component for managing multiple chips
191
+
192
+ const useGroupStyles = (0, _index3.createStyles)((_theme, {
193
+ spacing: _spacing
194
+ }) => ({
195
+ root: {
196
+ flexDirection: 'row',
197
+ flexWrap: 'wrap',
198
+ gap: 8
199
+ }
200
+ }));
201
+ const defaultGroupProps = {
202
+ multiple: false,
203
+ spacing: 'sm'
204
+ };
205
+ const ChipGroup = exports.ChipGroup = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
206
+ const {
207
+ children,
208
+ value: controlledValue,
209
+ defaultValue,
210
+ onChange,
211
+ multiple,
212
+ style,
213
+ spacing,
214
+ ...otherProps
215
+ } = (0, _themeProvider.useComponentDefaultProps)('ChipGroup', defaultGroupProps, props);
216
+ const [uncontrolledValue, setUncontrolledValue] = _react.default.useState(defaultValue || (multiple ? [] : ''));
217
+ const value = controlledValue !== undefined ? controlledValue : uncontrolledValue;
218
+ const {
219
+ styles,
220
+ sx
221
+ } = useGroupStyles({
222
+ spacing
223
+ }, {
224
+ name: 'ChipGroup'
225
+ });
226
+ const handleChipChange = (chipValue, checked) => {
227
+ let newValue;
228
+ if (multiple) {
229
+ const currentArray = Array.isArray(value) ? value : [];
230
+ newValue = checked ? [...currentArray, chipValue] : currentArray.filter(v => v !== chipValue);
231
+ } else {
232
+ newValue = checked ? chipValue : '';
233
+ }
234
+ if (controlledValue === undefined) {
235
+ setUncontrolledValue(newValue);
236
+ }
237
+ onChange?.(newValue);
238
+ };
239
+ const isChecked = chipValue => {
240
+ if (multiple && Array.isArray(value)) {
241
+ return value.includes(chipValue);
242
+ }
243
+ return value === chipValue;
244
+ };
245
+ const enhancedChildren = _react.default.Children.map(children, child => {
246
+ if (/*#__PURE__*/_react.default.isValidElement(child) && child.type === Chip) {
247
+ const chipValue = child.props.value;
248
+ if (chipValue !== undefined) {
249
+ return /*#__PURE__*/_react.default.cloneElement(child, {
250
+ checked: isChecked(chipValue),
251
+ onChange: checked => handleChipChange(chipValue, checked)
252
+ });
253
+ }
254
+ }
255
+ return child;
256
+ });
257
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
258
+ ref: ref,
259
+ style: sx(styles.root, style),
260
+ ...otherProps,
261
+ children: enhancedChildren
262
+ });
263
+ });
264
+ ChipGroup.displayName = 'Chip.Group';
265
+
266
+ // Attach Group to Chip
267
+ Chip.Group = ChipGroup;
268
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_index2","_themeProvider","_index3","_rem","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","sizes","xs","height","rem","fontSize","paddingHorizontal","sm","md","lg","xl","useStyles","createStyles","theme","size","color","radius","variant","checked","disabled","colors","primaryColor","sizeStyles","getVariantStyles","backgroundColor","colorScheme","dark","gray","borderWidth","borderColor","primaryBgColor","fn","rgba","getTextColor","white","black","root","flexDirection","alignItems","justifyContent","borderRadius","opacity","icon","marginRight","text","fontWeight","defaultProps","type","Chip","exports","forwardRef","props","ref","children","controlledChecked","defaultChecked","onChange","style","textStyle","value","others","useComponentDefaultProps","uncontrolledChecked","setUncontrolledChecked","React","useState","undefined","styles","sx","name","handlePress","newChecked","showIcon","jsxs","TouchableOpacity","onPress","activeOpacity","jsx","BoxView","Text","displayName","useGroupStyles","_theme","spacing","_spacing","flexWrap","gap","defaultGroupProps","multiple","ChipGroup","controlledValue","defaultValue","otherProps","uncontrolledValue","setUncontrolledValue","handleChipChange","chipValue","newValue","currentArray","Array","isArray","filter","v","isChecked","includes","enhancedChildren","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C,SAAS;EAC5B,CAAC;EAED,MAAMS,gBAAgB,GAAGzC,cAAK,CAAC0C,QAAQ,CAACC,GAAG,CAACtD,QAAQ,EAAGuD,KAAK,IAAK;IAC/D,IAAI,aAAA5C,cAAK,CAAC6C,cAAc,CAACD,KAAK,CAAC,IAAIA,KAAK,CAAC7D,IAAI,KAAKC,IAAI,EAAE;MACtD,MAAMgD,SAAS,GAAGY,KAAK,CAACzD,KAAK,CAACQ,KAAK;MACnC,IAAIqC,SAAS,KAAK9B,SAAS,EAAE;QAC3B,oBAAOF,cAAK,CAAC8C,YAAY,CAACF,KAAK,EAAmC;UAChE1F,OAAO,EAAEqF,SAAS,CAACP,SAAS,CAAC;UAC7BxC,QAAQ,EAAGtC,OAAgB,IAAK6E,gBAAgB,CAACC,SAAS,EAAE9E,OAAO;QACrE,CAAC,CAAC;MACJ;IACF;IACA,OAAO0F,KAAK;EACd,CAAC,CAAC;EAEF,oBACE,IAAA/H,WAAA,CAAAgG,GAAA,EAACrG,MAAA,CAAAsG,OAAO;IAAC1B,GAAG,EAAEA,GAAI;IAACK,KAAK,EAAEW,EAAE,CAACD,MAAM,CAAC/B,IAAI,EAAEqB,KAAK,CAAE;IAAA,GAAKmC,UAAU;IAAAvC,QAAA,EAC7DoD;EAAgB,CACV,CAAC;AAEd,CAAC,CAAC;AAEFhB,SAAS,CAACT,WAAW,GAAG,YAAY;;AAEpC;AACChC,IAAI,CAAS+D,KAAK,GAAGtB,SAAS","ignoreList":[]}
@@ -0,0 +1,136 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.CloseButton = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _index = require("../BoxView/index.js");
10
+ var _themeProvider = require("../../theme/theme-provider.js");
11
+ var _index2 = require("../../theme/index.js");
12
+ var _jsxRuntime = require("react/jsx-runtime");
13
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
14
+ const sizes = {
15
+ xs: 16,
16
+ sm: 22,
17
+ md: 28,
18
+ lg: 34,
19
+ xl: 44
20
+ };
21
+ const iconSizes = {
22
+ xs: 12,
23
+ sm: 16,
24
+ md: 20,
25
+ lg: 24,
26
+ xl: 28
27
+ };
28
+ const useStyles = (0, _index2.createStyles)((theme, {
29
+ size,
30
+ radius,
31
+ disabled
32
+ }) => {
33
+ const buttonSize = typeof size === 'number' ? size : (0, _index2.getSize)({
34
+ size,
35
+ sizes
36
+ });
37
+ return {
38
+ root: {
39
+ width: buttonSize,
40
+ height: buttonSize,
41
+ borderRadius: theme.fn.radius(radius),
42
+ justifyContent: 'center',
43
+ alignItems: 'center',
44
+ backgroundColor: 'transparent',
45
+ opacity: disabled ? 0.4 : 1
46
+ },
47
+ rootHover: {
48
+ backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark?.[5] : theme.colors.gray?.[0]
49
+ }
50
+ };
51
+ });
52
+ const CloseIcon = ({
53
+ size,
54
+ color
55
+ }) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.BoxView, {
56
+ style: {
57
+ width: size,
58
+ height: size,
59
+ position: 'relative'
60
+ },
61
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
62
+ style: {
63
+ position: 'absolute',
64
+ width: size,
65
+ height: 2,
66
+ backgroundColor: color,
67
+ top: (size - 2) / 2,
68
+ transform: [{
69
+ rotate: '45deg'
70
+ }]
71
+ }
72
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
73
+ style: {
74
+ position: 'absolute',
75
+ width: size,
76
+ height: 2,
77
+ backgroundColor: color,
78
+ top: (size - 2) / 2,
79
+ transform: [{
80
+ rotate: '-45deg'
81
+ }]
82
+ }
83
+ })]
84
+ });
85
+ const defaultProps = {
86
+ size: 'md',
87
+ radius: 'sm',
88
+ accessibilityLabel: 'Close',
89
+ disabled: false
90
+ };
91
+ const CloseButton = exports.CloseButton = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
92
+ const {
93
+ onPress,
94
+ size = 'md',
95
+ radius = 'sm',
96
+ iconColor,
97
+ icon,
98
+ accessibilityLabel,
99
+ style,
100
+ disabled,
101
+ ...others
102
+ } = (0, _themeProvider.useComponentDefaultProps)('CloseButton', defaultProps, props);
103
+ const {
104
+ styles,
105
+ sx,
106
+ theme
107
+ } = useStyles({
108
+ size,
109
+ radius,
110
+ disabled
111
+ }, {
112
+ name: 'CloseButton'
113
+ });
114
+ const iconSize = typeof size === 'number' ? Math.round(size * 0.7) : (0, _index2.getSize)({
115
+ size,
116
+ sizes: iconSizes
117
+ });
118
+ const defaultIconColor = iconColor || (theme.colorScheme === 'dark' ? theme.colors.dark?.[0] : theme.colors.gray?.[7]) || '#000';
119
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
120
+ ref: ref,
121
+ onPress: onPress,
122
+ disabled: disabled,
123
+ activeOpacity: 0.6,
124
+ accessible: true,
125
+ accessibilityLabel: accessibilityLabel,
126
+ accessibilityRole: "button",
127
+ style: sx(styles.root, style),
128
+ ...others,
129
+ children: icon || /*#__PURE__*/(0, _jsxRuntime.jsx)(CloseIcon, {
130
+ size: iconSize,
131
+ color: defaultIconColor
132
+ })
133
+ });
134
+ });
135
+ CloseButton.displayName = 'CloseButton';
136
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_themeProvider","_index2","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","sizes","xs","sm","md","lg","xl","iconSizes","useStyles","createStyles","theme","size","radius","disabled","buttonSize","getSize","root","width","height","borderRadius","fn","justifyContent","alignItems","backgroundColor","opacity","rootHover","colorScheme","colors","dark","gray","CloseIcon","color","jsxs","BoxView","style","position","children","jsx","top","transform","rotate","defaultProps","accessibilityLabel","CloseButton","exports","forwardRef","props","ref","onPress","iconColor","icon","others","useComponentDefaultProps","styles","sx","name","iconSize","Math","round","defaultIconColor","TouchableOpacity","activeOpacity","accessible","accessibilityRole","displayName"],"sourceRoot":"../../../../src","sources":["components/CloseButton/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAA2C,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,wBAAAO,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAT,uBAAA,YAAAA,CAAAO,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CA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AAK,EAAEoB,EAAE,CAACD,MAAM,CAACrC,IAAI,EAAEkB,KAAK,CAAE;IAAA,GAC1BiB,MAAM;IAAAf,QAAA,EAETc,IAAI,iBAAI,IAAArE,WAAA,CAAAwD,GAAA,EAACP,SAAS;MAACnB,IAAI,EAAE6C,QAAS;MAACzB,KAAK,EAAE4B;IAAiB,CAAE;EAAC,CAC/C,CAAC;AAEvB,CAAC,CAAC;AAEFhB,WAAW,CAACqB,WAAW,GAAG,aAAa","ignoreList":[]}
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Code = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _index = require("../Text/index.js");
9
+ var _themeProvider = require("../../theme/theme-provider.js");
10
+ var _index2 = require("../BoxView/index.js");
11
+ var _jsxRuntime = require("react/jsx-runtime");
12
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
13
+ /**
14
+ * Code component renders inline code or code blocks with monospace font
15
+ */
16
+ const Code = exports.Code = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
17
+ const {
18
+ children,
19
+ color,
20
+ block = false,
21
+ style,
22
+ ...others
23
+ } = props;
24
+ const theme = (0, _themeProvider.useTheme)();
25
+
26
+ // Get background and text colors
27
+ const backgroundColor = theme.colors.gray?.[0] || '#F6F6F6';
28
+ const textColor = color ? theme.colors[color]?.[theme.primaryShade] || color : theme.light.text;
29
+
30
+ // Monospace font - in React Native, we can use 'Courier' or 'Courier New'
31
+ const codeStyles = {
32
+ fontFamily: 'Courier',
33
+ fontSize: theme.fontSizes.sm || 14,
34
+ backgroundColor: backgroundColor,
35
+ color: textColor,
36
+ paddingHorizontal: block ? 16 : 4,
37
+ paddingVertical: block ? 12 : 2,
38
+ borderRadius: theme.radius.sm || 4
39
+ };
40
+ if (block) {
41
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.BoxView, {
42
+ ref: ref,
43
+ style: [{
44
+ backgroundColor: backgroundColor,
45
+ borderRadius: theme.radius.sm || 4,
46
+ padding: 16
47
+ }, style],
48
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Text, {
49
+ style: [{
50
+ fontFamily: 'Courier',
51
+ fontSize: theme.fontSizes.sm || 14,
52
+ color: textColor
53
+ }],
54
+ ...others,
55
+ children: children
56
+ })
57
+ });
58
+ }
59
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Text, {
60
+ ref: ref,
61
+ style: [codeStyles, style],
62
+ ...others,
63
+ children: children
64
+ });
65
+ });
66
+ Code.displayName = 'Code';
67
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_index","_themeProvider","_index2","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","Code","exports","forwardRef","props","ref","children","color","block","style","others","theme","useTheme","backgroundColor","colors","gray","textColor","primaryShade","light","text","codeStyles","fontFamily","fontSize","fontSizes","sm","paddingHorizontal","paddingVertical","borderRadius","radius","jsx","BoxView","padding","Text","displayName"],"sourceRoot":"../../../../src","sources":["components/Code/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH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