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,235 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Modal = 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 _index3 = require("../Overlay/index.js");
12
+ var _themeProvider = require("../../theme/theme-provider.js");
13
+ var _index4 = require("../../theme/index.js");
14
+ var _rem = require("../../theme/utils/rem.js");
15
+ var _jsxRuntime = require("react/jsx-runtime");
16
+ 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); }
17
+ const sizes = {
18
+ xs: 320,
19
+ sm: 380,
20
+ md: 440,
21
+ lg: 620,
22
+ xl: 780,
23
+ full: '100%'
24
+ };
25
+ const useStyles = (0, _index4.createStyles)((theme, {
26
+ size,
27
+ padding,
28
+ radius,
29
+ centered,
30
+ fullScreen
31
+ }) => {
32
+ const getPadding = () => {
33
+ if (padding === undefined) return theme.spacing.md;
34
+ if (typeof padding === 'number') return (0, _rem.rem)(padding);
35
+ return theme.spacing[padding] || theme.spacing.md;
36
+ };
37
+ const getWidth = () => {
38
+ if (fullScreen) return '100%';
39
+ if (size === 'full') return '100%';
40
+ if (typeof size === 'number') return (0, _rem.rem)(size);
41
+ return (0, _rem.rem)(sizes[size] || sizes.md);
42
+ };
43
+ return {
44
+ overlay: {
45
+ flex: 1,
46
+ backgroundColor: 'rgba(0, 0, 0, 0.001)',
47
+ justifyContent: centered ? 'center' : 'flex-start',
48
+ alignItems: 'center',
49
+ paddingTop: centered ? 0 : (0, _rem.rem)(60)
50
+ },
51
+ container: {
52
+ backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[7] : theme.white,
53
+ borderRadius: fullScreen ? 0 : theme.fn.radius(radius),
54
+ width: getWidth(),
55
+ maxWidth: fullScreen ? '100%' : '90%',
56
+ maxHeight: fullScreen ? '100%' : '90%',
57
+ ...(fullScreen && {
58
+ height: '100%'
59
+ })
60
+ },
61
+ header: {
62
+ padding: getPadding(),
63
+ borderBottomWidth: 1,
64
+ borderBottomColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[5] : (theme.colors.gray || [])[2],
65
+ flexDirection: 'row',
66
+ justifyContent: 'space-between',
67
+ alignItems: 'center'
68
+ },
69
+ title: {
70
+ fontSize: theme.fontSizes.lg,
71
+ fontWeight: '600',
72
+ color: theme.colorScheme === 'dark' ? theme.white : theme.black,
73
+ flex: 1
74
+ },
75
+ closeButton: {
76
+ width: (0, _rem.rem)(32),
77
+ height: (0, _rem.rem)(32),
78
+ borderRadius: (0, _rem.rem)(16),
79
+ backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[5] : (theme.colors.gray || [])[1],
80
+ justifyContent: 'center',
81
+ alignItems: 'center',
82
+ marginLeft: theme.spacing.md
83
+ },
84
+ closeButtonText: {
85
+ fontSize: (0, _rem.rem)(20),
86
+ color: theme.colorScheme === 'dark' ? theme.white : theme.black
87
+ },
88
+ body: {
89
+ padding: getPadding()
90
+ }
91
+ };
92
+ });
93
+ const defaultProps = {
94
+ size: 'md',
95
+ padding: 'md',
96
+ radius: 'md',
97
+ closeOnClickOutside: true,
98
+ centered: false,
99
+ withOverlay: true,
100
+ overlayOpacity: 0.6,
101
+ overlayColor: '#000',
102
+ withCloseButton: true,
103
+ fullScreen: false,
104
+ transitionDuration: 200,
105
+ zIndex: 1000
106
+ };
107
+ const Modal = exports.Modal = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
108
+ const {
109
+ opened,
110
+ onClose,
111
+ title,
112
+ children,
113
+ size,
114
+ padding,
115
+ radius,
116
+ closeOnClickOutside,
117
+ centered,
118
+ withOverlay,
119
+ overlayOpacity,
120
+ overlayColor,
121
+ withCloseButton,
122
+ fullScreen,
123
+ style,
124
+ transitionDuration,
125
+ zIndex,
126
+ ...others
127
+ } = (0, _themeProvider.useComponentDefaultProps)('Modal', defaultProps, props);
128
+ const {
129
+ styles,
130
+ sx
131
+ } = useStyles({
132
+ size,
133
+ padding,
134
+ radius,
135
+ centered,
136
+ fullScreen
137
+ }, {
138
+ name: 'Modal'
139
+ });
140
+ const fadeAnim = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
141
+ const scaleAnim = (0, _react.useRef)(new _reactNative.Animated.Value(0.9)).current;
142
+ (0, _react.useEffect)(() => {
143
+ if (opened) {
144
+ _reactNative.Animated.parallel([_reactNative.Animated.timing(fadeAnim, {
145
+ toValue: 1,
146
+ duration: transitionDuration,
147
+ useNativeDriver: true
148
+ }), _reactNative.Animated.spring(scaleAnim, {
149
+ toValue: 1,
150
+ useNativeDriver: true,
151
+ friction: 8
152
+ })]).start();
153
+ } else {
154
+ _reactNative.Animated.parallel([_reactNative.Animated.timing(fadeAnim, {
155
+ toValue: 0,
156
+ duration: transitionDuration,
157
+ useNativeDriver: true
158
+ }), _reactNative.Animated.timing(scaleAnim, {
159
+ toValue: 0.9,
160
+ duration: transitionDuration,
161
+ useNativeDriver: true
162
+ })]).start();
163
+ }
164
+ }, [opened, fadeAnim, scaleAnim, transitionDuration]);
165
+ const handleOverlayPress = () => {
166
+ if (closeOnClickOutside) {
167
+ onClose();
168
+ }
169
+ };
170
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
171
+ visible: opened,
172
+ transparent: true,
173
+ animationType: "none",
174
+ onRequestClose: onClose,
175
+ statusBarTranslucent: true,
176
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.KeyboardAvoidingView, {
177
+ behavior: _reactNative.Platform.OS === 'ios' ? 'padding' : 'height',
178
+ style: {
179
+ flex: 1
180
+ },
181
+ children: [withOverlay && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
182
+ style: [{
183
+ ...styles.overlay,
184
+ opacity: fadeAnim
185
+ }],
186
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.Overlay, {
187
+ opacity: overlayOpacity,
188
+ color: overlayColor,
189
+ onPress: handleOverlayPress,
190
+ style: {
191
+ position: 'absolute'
192
+ }
193
+ })
194
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
195
+ activeOpacity: 1,
196
+ style: styles.overlay,
197
+ onPress: handleOverlayPress,
198
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
199
+ activeOpacity: 1,
200
+ onPress: e => e.stopPropagation(),
201
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
202
+ ref: ref,
203
+ style: [sx(styles.container, style), {
204
+ opacity: fadeAnim,
205
+ transform: [{
206
+ scale: scaleAnim
207
+ }]
208
+ }],
209
+ ...others,
210
+ children: [(title || withCloseButton) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.BoxView, {
211
+ style: styles.header,
212
+ children: [typeof title === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
213
+ style: styles.title,
214
+ children: title
215
+ }) : title, withCloseButton && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
216
+ style: styles.closeButton,
217
+ onPress: onClose,
218
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
219
+ style: styles.closeButtonText,
220
+ children: "\xD7"
221
+ })
222
+ })]
223
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
224
+ style: styles.body,
225
+ showsVerticalScrollIndicator: false,
226
+ children: children
227
+ })]
228
+ })
229
+ })
230
+ })]
231
+ })
232
+ });
233
+ });
234
+ Modal.displayName = 'Modal';
235
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_index2","_index3","_themeProvider","_index4","_rem","_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","full","useStyles","createStyles","theme","size","padding","radius","centered","fullScreen","getPadding","undefined","spacing","rem","getWidth","overlay","flex","backgroundColor","justifyContent","alignItems","paddingTop","container","colorScheme","colors","dark","white","borderRadius","fn","width","maxWidth","maxHeight","height","header","borderBottomWidth","borderBottomColor","gray","flexDirection","title","fontSize","fontSizes","fontWeight","color","black","closeButton","marginLeft","closeButtonText","body","defaultProps","closeOnClickOutside","withOverlay","overlayOpacity","overlayColor","withCloseButton","transitionDuration","zIndex","Modal","exports","forwardRef","props","ref","opened","onClose","children","style","others","useComponentDefaultProps","styles","sx","name","fadeAnim","useRef","Animated","Value","current","scaleAnim","useEffect","parallel","timing","toValue","duration","useNativeDriver","spring","friction","start","handleOverlayPress","jsx","visible","transparent","animationType","onRequestClose","statusBarTranslucent","jsxs","KeyboardAvoidingView","behavior","Platform","OS","View","opacity","Overlay","onPress","position","TouchableOpacity","activeOpacity","stopPropagation","transform","scale","BoxView","Text","ScrollView","showsVerticalScrollIndicator","displayName"],"sourceRoot":"../../../../src","sources":["components/Modal/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAQA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAEA,IAAAK,cAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,IAAA,GAAAP,OAAA;AAA4C,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAD,wBAAAU,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAZ,uBAAA,YAAAA,CAAAU,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,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I,IAAI;gBAAC5C,KAAK,EAAEG,MAAM,CAAC7B,KAAM;gBAAAyB,QAAA,EAAEzB;cAAK,CAAO,CAAC,GAEzCA,KACD,EACAe,eAAe,iBACd,IAAA7E,WAAA,CAAA8G,GAAA,EAACrH,YAAA,CAAAqI,gBAAgB;gBAACtC,KAAK,EAAEG,MAAM,CAACvB,WAAY;gBAACwD,OAAO,EAAEtC,OAAQ;gBAAAC,QAAA,eAC5D,IAAAvF,WAAA,CAAA8G,GAAA,EAACnH,OAAA,CAAAyI,IAAI;kBAAC5C,KAAK,EAAEG,MAAM,CAACrB,eAAgB;kBAAAiB,QAAA,EAAC;gBAAC,CAAM;cAAC,CAC7B,CACnB;YAAA,CACM,CACV,eAED,IAAAvF,WAAA,CAAA8G,GAAA,EAACrH,YAAA,CAAA4I,UAAU;cAAC7C,KAAK,EAAEG,MAAM,CAACpB,IAAK;cAAC+D,4BAA4B,EAAE,KAAM;cAAA/C,QAAA,EACjEA;YAAQ,CACC,CAAC;UAAA,CACA;QAAC,CACA;MAAC,CACH,CAAC;IAAA,CACC;EAAC,CAChB,CAAC;AAEd,CAAC,CAAC;AAEFP,KAAK,CAACuD,WAAW,GAAG,OAAO","ignoreList":[]}
@@ -0,0 +1,299 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.MultiSelect = 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 _index3 = require("../TextInput/index.js");
12
+ var _index4 = require("../Badge/index.js");
13
+ var _index5 = require("../Checkbox/index.js");
14
+ var _themeProvider = require("../../theme/theme-provider.js");
15
+ var _index6 = require("../../theme/index.js");
16
+ var _rem = require("../../theme/utils/rem.js");
17
+ var _jsxRuntime = require("react/jsx-runtime");
18
+ 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); }
19
+ const useStyles = (0, _index6.createStyles)((theme, {
20
+ color
21
+ }) => {
22
+ const colors = theme.colors[color] || theme.colors[theme.primaryColor];
23
+ return {
24
+ valuesContainer: {
25
+ flexDirection: 'row',
26
+ flexWrap: 'wrap',
27
+ gap: theme.spacing.xs,
28
+ padding: (0, _rem.rem)(4)
29
+ },
30
+ modalOverlay: {
31
+ flex: 1,
32
+ backgroundColor: 'rgba(0, 0, 0, 0.5)',
33
+ justifyContent: 'flex-end'
34
+ },
35
+ modalContent: {
36
+ backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[7] : theme.white,
37
+ borderTopLeftRadius: theme.radius.lg,
38
+ borderTopRightRadius: theme.radius.lg,
39
+ maxHeight: '80%'
40
+ },
41
+ searchContainer: {
42
+ padding: theme.spacing.md,
43
+ borderBottomWidth: 1,
44
+ borderBottomColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[4] : (theme.colors.gray || [])[2]
45
+ },
46
+ listContainer: {
47
+ paddingVertical: (0, _rem.rem)(8)
48
+ },
49
+ item: {
50
+ paddingVertical: (0, _rem.rem)(12),
51
+ paddingHorizontal: theme.spacing.md,
52
+ flexDirection: 'row',
53
+ alignItems: 'center'
54
+ },
55
+ itemSelected: {
56
+ backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[5] : colors?.[0] || (theme.colors.gray || [])[0]
57
+ },
58
+ itemDisabled: {
59
+ opacity: 0.4
60
+ },
61
+ itemText: {
62
+ flex: 1,
63
+ fontSize: (0, _rem.rem)(14),
64
+ marginLeft: theme.spacing.sm,
65
+ color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[0] : theme.black
66
+ },
67
+ itemTextSelected: {
68
+ fontWeight: '600',
69
+ color: colors?.[6] || colors?.[5] || theme.primaryBgColor
70
+ },
71
+ groupLabel: {
72
+ paddingVertical: (0, _rem.rem)(8),
73
+ paddingHorizontal: theme.spacing.md,
74
+ fontSize: (0, _rem.rem)(12),
75
+ fontWeight: '600',
76
+ color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[2] : (theme.colors.gray || [])[6],
77
+ textTransform: 'uppercase'
78
+ },
79
+ emptyState: {
80
+ padding: theme.spacing.xl,
81
+ alignItems: 'center'
82
+ },
83
+ emptyText: {
84
+ color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[2] : (theme.colors.gray || [])[6]
85
+ },
86
+ footer: {
87
+ padding: theme.spacing.md,
88
+ borderTopWidth: 1,
89
+ borderTopColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[4] : (theme.colors.gray || [])[2],
90
+ flexDirection: 'row',
91
+ justifyContent: 'space-between'
92
+ }
93
+ };
94
+ });
95
+ const defaultProps = {
96
+ size: 'md',
97
+ radius: 'sm',
98
+ color: 'blue',
99
+ disabled: false,
100
+ searchable: false,
101
+ clearable: false,
102
+ maxDropdownHeight: 400,
103
+ searchPlaceholder: 'Search...',
104
+ clearButtonLabel: 'Clear all',
105
+ maxSelectedValues: 5
106
+ };
107
+ const normalizeData = data => {
108
+ return data.map(item => typeof item === 'string' ? {
109
+ value: item,
110
+ label: item
111
+ } : item);
112
+ };
113
+ const MultiSelect = exports.MultiSelect = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
114
+ const {
115
+ data,
116
+ value: controlledValue,
117
+ defaultValue,
118
+ onChange,
119
+ placeholder,
120
+ label,
121
+ description,
122
+ error,
123
+ size,
124
+ radius,
125
+ color,
126
+ disabled,
127
+ searchable,
128
+ searchPlaceholder,
129
+ clearable,
130
+ clearButtonLabel,
131
+ maxDropdownHeight,
132
+ maxSelectedValues,
133
+ icon,
134
+ style,
135
+ ...others
136
+ } = (0, _themeProvider.useComponentDefaultProps)('MultiSelect', defaultProps, props);
137
+ const [opened, setOpened] = (0, _react.useState)(false);
138
+ const [searchQuery, setSearchQuery] = (0, _react.useState)('');
139
+ const [value, setValue] = (0, _react.useState)(defaultValue || []);
140
+ const {
141
+ styles
142
+ } = useStyles({
143
+ color,
144
+ size
145
+ }, {
146
+ name: 'MultiSelect'
147
+ });
148
+ const isControlled = controlledValue !== undefined;
149
+ const currentValue = isControlled ? controlledValue : value;
150
+ const normalizedData = normalizeData(data);
151
+ const filteredData = searchable ? normalizedData.filter(item => item.label.toLowerCase().includes(searchQuery.toLowerCase())) : normalizedData;
152
+ const handleToggle = itemValue => {
153
+ const newValue = currentValue.includes(itemValue) ? currentValue.filter(v => v !== itemValue) : [...currentValue, itemValue];
154
+ if (!isControlled) {
155
+ setValue(newValue);
156
+ }
157
+ onChange?.(newValue);
158
+ };
159
+ const handleClear = () => {
160
+ if (!isControlled) {
161
+ setValue([]);
162
+ }
163
+ onChange?.([]);
164
+ };
165
+ const selectedItems = normalizedData.filter(item => currentValue.includes(item.value));
166
+ const displayedValues = maxSelectedValues && selectedItems.length > maxSelectedValues ? selectedItems.slice(0, maxSelectedValues) : selectedItems;
167
+ const remainingCount = maxSelectedValues ? selectedItems.length - maxSelectedValues : 0;
168
+ const groupedData = {};
169
+ let ungroupedItems = [];
170
+ filteredData.forEach(item => {
171
+ if (item.group) {
172
+ if (!groupedData[item.group]) {
173
+ groupedData[item.group] = [];
174
+ }
175
+ groupedData[item.group].push(item);
176
+ } else {
177
+ ungroupedItems.push(item);
178
+ }
179
+ });
180
+ const renderValue = () => {
181
+ if (currentValue.length === 0) {
182
+ return null;
183
+ }
184
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.BoxView, {
185
+ style: styles.valuesContainer,
186
+ children: [displayedValues.map(item => /*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.Badge, {
187
+ size: "sm",
188
+ color: color,
189
+ children: item.label
190
+ }, item.value)), remainingCount > 0 && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index4.Badge, {
191
+ size: "sm",
192
+ color: "gray",
193
+ children: ["+", remainingCount]
194
+ })]
195
+ });
196
+ };
197
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
198
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
199
+ onPress: () => !disabled && setOpened(true),
200
+ disabled: disabled,
201
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.TextInput, {
202
+ ref: ref,
203
+ label: label,
204
+ description: description,
205
+ error: error,
206
+ size: size,
207
+ radius: radius,
208
+ icon: icon,
209
+ value: "",
210
+ placeholder: currentValue.length === 0 ? placeholder : `${currentValue.length} selected`,
211
+ editable: !disabled,
212
+ style: style,
213
+ ...others
214
+ }), renderValue()]
215
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
216
+ visible: opened,
217
+ transparent: true,
218
+ animationType: "slide",
219
+ onRequestClose: () => setOpened(false),
220
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
221
+ activeOpacity: 1,
222
+ style: styles.modalOverlay,
223
+ onPress: () => setOpened(false),
224
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
225
+ activeOpacity: 1,
226
+ style: styles.modalContent,
227
+ children: [searchable && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
228
+ style: styles.searchContainer,
229
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.TextInput, {
230
+ placeholder: searchPlaceholder,
231
+ value: searchQuery,
232
+ onChange: e => setSearchQuery(e.nativeEvent.text),
233
+ autoFocus: true
234
+ })
235
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
236
+ style: {
237
+ maxHeight: maxDropdownHeight
238
+ },
239
+ contentContainerStyle: styles.listContainer,
240
+ children: [ungroupedItems.map(item => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
241
+ style: [styles.item, currentValue.includes(item.value) && styles.itemSelected, item.disabled && styles.itemDisabled],
242
+ onPress: () => !item.disabled && handleToggle(item.value),
243
+ disabled: item.disabled,
244
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index5.Checkbox, {
245
+ checked: currentValue.includes(item.value),
246
+ onChange: () => !item.disabled && handleToggle(item.value),
247
+ disabled: item.disabled
248
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
249
+ style: [styles.itemText, currentValue.includes(item.value) && styles.itemTextSelected],
250
+ children: item.label
251
+ })]
252
+ }, item.value)), Object.keys(groupedData).map(group => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.default.Fragment, {
253
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
254
+ style: styles.groupLabel,
255
+ children: group
256
+ }), groupedData[group].map(item => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
257
+ style: [styles.item, currentValue.includes(item.value) && styles.itemSelected, item.disabled && styles.itemDisabled],
258
+ onPress: () => !item.disabled && handleToggle(item.value),
259
+ disabled: item.disabled,
260
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index5.Checkbox, {
261
+ checked: currentValue.includes(item.value),
262
+ onChange: () => !item.disabled && handleToggle(item.value),
263
+ disabled: item.disabled
264
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
265
+ style: [styles.itemText, currentValue.includes(item.value) && styles.itemTextSelected],
266
+ children: item.label
267
+ })]
268
+ }, item.value))]
269
+ }, group)), filteredData.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
270
+ style: styles.emptyState,
271
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
272
+ style: styles.emptyText,
273
+ children: "No options found"
274
+ })
275
+ })]
276
+ }), clearable && currentValue.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.BoxView, {
277
+ style: styles.footer,
278
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
279
+ onPress: handleClear,
280
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
281
+ style: {
282
+ color: color
283
+ },
284
+ children: clearButtonLabel
285
+ })
286
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
287
+ onPress: () => setOpened(false),
288
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index2.Text, {
289
+ children: ["Done (", currentValue.length, ")"]
290
+ })
291
+ })]
292
+ })]
293
+ })
294
+ })
295
+ })]
296
+ });
297
+ });
298
+ MultiSelect.displayName = 'MultiSelect';
299
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_index2","_index3","_index4","_index5","_themeProvider","_index6","_rem","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","useStyles","createStyles","theme","color","colors","primaryColor","valuesContainer","flexDirection","flexWrap","gap","spacing","xs","padding","rem","modalOverlay","flex","backgroundColor","justifyContent","modalContent","colorScheme","dark","white","borderTopLeftRadius","radius","lg","borderTopRightRadius","maxHeight","searchContainer","md","borderBottomWidth","borderBottomColor","gray","listContainer","paddingVertical","item","paddingHorizontal","alignItems","itemSelected","itemDisabled","opacity","itemText","fontSize","marginLeft","sm","black","itemTextSelected","fontWeight","primaryBgColor","groupLabel","textTransform","emptyState","xl","emptyText","footer","borderTopWidth","borderTopColor","defaultProps","size","disabled","searchable","clearable","maxDropdownHeight","searchPlaceholder","clearButtonLabel","maxSelectedValues","normalizeData","data","map","value","label","MultiSelect","exports","forwardRef","props","ref","controlledValue","defaultValue","onChange","placeholder","description","error","icon","style","others","useComponentDefaultProps","opened","setOpened","useState","searchQuery","setSearchQuery","setValue","styles","name","isControlled","undefined","currentValue","normalizedData","filteredData","filter","toLowerCase","includes","handleToggle","itemValue","newValue","v","handleClear","selectedItems","displayedValues","length","slice","remainingCount","groupedData","ungroupedItems","forEach","group","push","renderValue","jsxs","BoxView","children","jsx","Badge","Fragment","TouchableOpacity","onPress","TextInput","editable","Modal","visible","transparent","animationType","onRequestClose","activeOpacity","nativeEvent","text","autoFocus","ScrollView","contentContainerStyle","Checkbox","checked","Text","keys","displayName"],"sourceRoot":"../../../../src","sources":["components/MultiSelect/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AAOA,IAAAO,cAAA,GAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAR,OAAA;AACA,IAAAS,IAAA,GAAAT,OAAA;AAA4C,IAAAU,WAAA,GAAAV,OAAA;AAAA,SAAAD,wBAAAY,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAd,uBAAA,YAAAA,CAAAY,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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