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 @@
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","useStyles","createStyles","theme","color","colors","primaryColor","modalOverlay","flex","backgroundColor","justifyContent","modalContent","colorScheme","dark","white","borderTopLeftRadius","radius","lg","borderTopRightRadius","maxHeight","searchContainer","padding","spacing","md","borderBottomWidth","borderBottomColor","gray","listContainer","paddingVertical","rem","item","paddingHorizontal","flexDirection","alignItems","itemSelected","itemDisabled","opacity","itemText","fontSize","black","itemTextSelected","fontWeight","primaryBgColor","groupLabel","textTransform","emptyState","xl","emptyText","defaultProps","size","disabled","searchable","clearable","maxDropdownHeight","searchPlaceholder","clearButtonLabel","normalizeData","data","map","value","label","Select","exports","forwardRef","props","ref","controlledValue","defaultValue","onChange","placeholder","description","error","icon","rightSection","style","others","useComponentDefaultProps","opened","setOpened","useState","searchQuery","setSearchQuery","setValue","styles","name","isControlled","undefined","currentValue","normalizedData","selectedItem","find","filteredData","filter","toLowerCase","includes","handleSelect","itemValue","handleClear","groupedData","ungroupedItems","forEach","group","push","jsxs","Fragment","children","jsx","TextInput","editable","onPress","Modal","visible","transparent","animationType","onRequestClose","TouchableOpacity","activeOpacity","BoxView","nativeEvent","text","autoFocus","ScrollView","contentContainerStyle","Text","keys","length","displayName"],"sourceRoot":"../../../../src","sources":["components/Select/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;AAOA,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,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,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H,GAAA,EAAClI,OAAA,CAAAmJ,IAAI;gBAACjD,KAAK,EAAES,MAAM,CAACpC,SAAU;gBAAA0D,QAAA,EAAC;cAAgB,CAAM;YAAC,CAC/C,CACV;UAAA,CACS,CAAC;QAAA,CACG;MAAC,CACH;IAAC,CACd,CAAC;EAAA,CACR,CAAC;AAEP,CAAC,CAAC;AAEF5C,MAAM,CAACiE,WAAW,GAAG,QAAQ","ignoreList":[]}
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SimpleGrid = 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 useStyles = (0, _index2.createStyles)((theme, {
15
+ cols,
16
+ spacing,
17
+ verticalSpacing
18
+ }) => {
19
+ const horizontalSpacing = theme.fn.size({
20
+ size: spacing,
21
+ sizes: theme.spacing
22
+ });
23
+ const rowSpacing = theme.fn.size({
24
+ size: verticalSpacing || spacing,
25
+ sizes: theme.spacing
26
+ });
27
+ return {
28
+ root: {
29
+ flexDirection: 'row',
30
+ flexWrap: 'wrap',
31
+ margin: -horizontalSpacing / 2
32
+ },
33
+ child: {
34
+ flexBasis: `${100 / cols}%`,
35
+ flexGrow: 0,
36
+ flexShrink: 0,
37
+ paddingHorizontal: horizontalSpacing / 2,
38
+ paddingVertical: rowSpacing / 2
39
+ }
40
+ };
41
+ });
42
+ const defaultProps = {
43
+ cols: 1,
44
+ spacing: 'md'
45
+ };
46
+ const SimpleGrid = exports.SimpleGrid = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
47
+ const {
48
+ cols,
49
+ spacing,
50
+ verticalSpacing,
51
+ breakpoints,
52
+ children,
53
+ style
54
+ } = (0, _themeProvider.useComponentDefaultProps)('SimpleGrid', defaultProps, props);
55
+ const [dimensions, setDimensions] = (0, _react.useState)(_reactNative.Dimensions.get('window'));
56
+ const [activeCols, setActiveCols] = (0, _react.useState)(cols);
57
+ const [activeSpacing, setActiveSpacing] = (0, _react.useState)(spacing);
58
+ (0, _react.useEffect)(() => {
59
+ const subscription = _reactNative.Dimensions.addEventListener('change', ({
60
+ window
61
+ }) => {
62
+ setDimensions(window);
63
+ });
64
+ return () => subscription?.remove();
65
+ }, []);
66
+ (0, _react.useEffect)(() => {
67
+ if (breakpoints && breakpoints.length > 0) {
68
+ const width = dimensions.width;
69
+ const sorted = [...breakpoints].sort((a, b) => b.maxWidth - a.maxWidth);
70
+ const breakpoint = sorted.find(bp => width <= bp.maxWidth);
71
+ if (breakpoint) {
72
+ setActiveCols(breakpoint.cols);
73
+ setActiveSpacing(breakpoint.spacing || spacing);
74
+ } else {
75
+ setActiveCols(cols);
76
+ setActiveSpacing(spacing);
77
+ }
78
+ }
79
+ }, [dimensions, breakpoints, cols, spacing]);
80
+ const {
81
+ styles,
82
+ sx
83
+ } = useStyles({
84
+ cols: activeCols,
85
+ spacing: activeSpacing,
86
+ verticalSpacing
87
+ }, {
88
+ name: 'SimpleGrid'
89
+ });
90
+ const childArray = _react.default.Children.toArray(children);
91
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
92
+ ref: ref,
93
+ style: sx(styles.root, style),
94
+ children: childArray.map((child, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
95
+ style: styles.child,
96
+ children: child
97
+ }, index))
98
+ });
99
+ });
100
+ SimpleGrid.displayName = 'SimpleGrid';
101
+ //# 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","useStyles","createStyles","theme","cols","spacing","verticalSpacing","horizontalSpacing","fn","size","sizes","rowSpacing","root","flexDirection","flexWrap","margin","child","flexBasis","flexGrow","flexShrink","paddingHorizontal","paddingVertical","defaultProps","SimpleGrid","exports","forwardRef","props","ref","breakpoints","children","style","useComponentDefaultProps","dimensions","setDimensions","useState","Dimensions","activeCols","setActiveCols","activeSpacing","setActiveSpacing","useEffect","subscription","addEventListener","window","remove","length","width","sorted","sort","a","b","maxWidth","breakpoint","find","bp","styles","sx","name","childArray","React","Children","toArray","jsx","BoxView","map","index","displayName"],"sourceRoot":"../../../../src","sources":["components/SimpleGrid/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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AA,EACtCb;IAAK,GADMiD,KAEL,CACV;EAAC,CACK,CAAC;AAEd,CAAC,CAAC;AAEF1C,UAAU,CAAC2C,WAAW,GAAG,YAAY","ignoreList":[]}
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Skeleton = 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 _rem = require("../../theme/utils/rem.js");
13
+ var _jsxRuntime = require("react/jsx-runtime");
14
+ 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); }
15
+ const useStyles = (0, _index2.createStyles)((theme, {
16
+ height,
17
+ width,
18
+ radius,
19
+ circle
20
+ }) => {
21
+ const getSize = value => {
22
+ if (typeof value === 'number') return (0, _rem.rem)(value);
23
+ return value;
24
+ };
25
+ const circleSize = circle && height ? getSize(height) : undefined;
26
+ return {
27
+ root: {
28
+ height: circleSize || getSize(height) || (0, _rem.rem)(120),
29
+ width: circleSize || getSize(width) || '100%',
30
+ borderRadius: circle ? 9999 : theme.fn.radius(radius),
31
+ backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[4] : (theme.colors.gray || [])[3],
32
+ overflow: 'hidden'
33
+ },
34
+ shimmer: {
35
+ position: 'absolute',
36
+ top: 0,
37
+ left: 0,
38
+ right: 0,
39
+ bottom: 0,
40
+ backgroundColor: 'rgba(255, 255, 255, 0.2)'
41
+ }
42
+ };
43
+ });
44
+ const defaultProps = {
45
+ height: 120,
46
+ radius: 'sm',
47
+ circle: false,
48
+ animate: true,
49
+ visible: true
50
+ };
51
+ const Skeleton = exports.Skeleton = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
52
+ const {
53
+ height,
54
+ width,
55
+ radius,
56
+ circle,
57
+ animate,
58
+ visible,
59
+ children,
60
+ style,
61
+ ...others
62
+ } = (0, _themeProvider.useComponentDefaultProps)('Skeleton', defaultProps, props);
63
+ const shimmerAnimation = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
64
+ (0, _react.useEffect)(() => {
65
+ if (animate && visible) {
66
+ _reactNative.Animated.loop(_reactNative.Animated.sequence([_reactNative.Animated.timing(shimmerAnimation, {
67
+ toValue: 1,
68
+ duration: 1500,
69
+ useNativeDriver: true
70
+ }), _reactNative.Animated.timing(shimmerAnimation, {
71
+ toValue: 0,
72
+ duration: 1500,
73
+ useNativeDriver: true
74
+ })])).start();
75
+ }
76
+ }, [animate, visible, shimmerAnimation]);
77
+ const {
78
+ styles,
79
+ sx
80
+ } = useStyles({
81
+ height,
82
+ width,
83
+ radius,
84
+ circle
85
+ }, {
86
+ name: 'Skeleton'
87
+ });
88
+ if (!visible && children) {
89
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
90
+ children: children
91
+ });
92
+ }
93
+ const shimmerTranslateX = shimmerAnimation.interpolate({
94
+ inputRange: [0, 1],
95
+ outputRange: ['-100%', '100%']
96
+ });
97
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
98
+ ref: ref,
99
+ style: sx(styles.root, style),
100
+ ...others,
101
+ children: animate && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
102
+ style: [styles.shimmer, {
103
+ transform: [{
104
+ translateX: shimmerTranslateX
105
+ }]
106
+ }]
107
+ })
108
+ });
109
+ });
110
+ Skeleton.displayName = 'Skeleton';
111
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_themeProvider","_index2","_rem","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","useStyles","createStyles","theme","height","width","radius","circle","getSize","value","rem","circleSize","undefined","root","borderRadius","fn","backgroundColor","colorScheme","colors","dark","gray","overflow","shimmer","position","top","left","right","bottom","defaultProps","animate","visible","Skeleton","exports","forwardRef","props","ref","children","style","others","useComponentDefaultProps","shimmerAnimation","useRef","Animated","Value","current","useEffect","loop","sequence","timing","toValue","duration","useNativeDriver","start","styles","sx","name","jsx","Fragment","shimmerTranslateX","interpolate","inputRange","outputRange","BoxView","View","transform","translateX","displayName"],"sourceRoot":"../../../../src","sources":["components/Skeleton/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;AACA,IAAAK,IAAA,GAAAL,OAAA;AAA4C,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAD,wBAAAQ,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAV,uBAAA,YAAAA,CAAAQ,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,CA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,CAAC;AAEd,CAAC,CAAC;AAEF3B,QAAQ,CAACmC,WAAW,GAAG,UAAU","ignoreList":[]}
@@ -0,0 +1,275 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Slider = 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)(4),
19
+ thumb: (0, _rem.rem)(12)
20
+ },
21
+ sm: {
22
+ height: (0, _rem.rem)(6),
23
+ thumb: (0, _rem.rem)(16)
24
+ },
25
+ md: {
26
+ height: (0, _rem.rem)(8),
27
+ thumb: (0, _rem.rem)(20)
28
+ },
29
+ lg: {
30
+ height: (0, _rem.rem)(10),
31
+ thumb: (0, _rem.rem)(24)
32
+ },
33
+ xl: {
34
+ height: (0, _rem.rem)(12),
35
+ thumb: (0, _rem.rem)(28)
36
+ }
37
+ };
38
+ const useStyles = (0, _index3.createStyles)((theme, {
39
+ color,
40
+ radius,
41
+ disabled
42
+ }, {
43
+ size
44
+ }) => {
45
+ const colors = theme.colors[color] || theme.colors[theme.primaryColor];
46
+ const sizeStyles = sizes[size] || sizes.md;
47
+ return {
48
+ root: {
49
+ position: 'relative',
50
+ width: '100%',
51
+ paddingVertical: (0, _rem.rem)(10),
52
+ opacity: disabled ? 0.5 : 1
53
+ },
54
+ track: {
55
+ position: 'relative',
56
+ height: sizeStyles.height,
57
+ backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark?.[4] : theme.colors.gray?.[2],
58
+ borderRadius: theme.fn.radius(radius),
59
+ overflow: 'hidden'
60
+ },
61
+ bar: {
62
+ position: 'absolute',
63
+ height: '100%',
64
+ backgroundColor: colors?.[6] || colors?.[5] || theme.primaryBgColor,
65
+ borderRadius: theme.fn.radius(radius)
66
+ },
67
+ thumb: {
68
+ position: 'absolute',
69
+ width: sizeStyles.thumb,
70
+ height: sizeStyles.thumb,
71
+ borderRadius: sizeStyles.thumb,
72
+ backgroundColor: theme.white,
73
+ borderWidth: (0, _rem.rem)(3),
74
+ borderColor: colors?.[6] || colors?.[5] || theme.primaryBgColor,
75
+ top: -(sizeStyles.thumb / 2 - sizeStyles.height / 2),
76
+ shadowColor: '#000',
77
+ shadowOffset: {
78
+ width: 0,
79
+ height: 2
80
+ },
81
+ shadowOpacity: 0.1,
82
+ shadowRadius: 4,
83
+ elevation: 2
84
+ },
85
+ label: {
86
+ position: 'absolute',
87
+ top: (0, _rem.rem)(-32),
88
+ backgroundColor: colors?.[6] || colors?.[5] || theme.primaryBgColor,
89
+ paddingHorizontal: theme.spacing.xs,
90
+ paddingVertical: (0, _rem.rem)(4),
91
+ borderRadius: theme.fn.radius('sm'),
92
+ minWidth: (0, _rem.rem)(28),
93
+ alignItems: 'center',
94
+ justifyContent: 'center'
95
+ },
96
+ labelText: {
97
+ color: theme.white,
98
+ fontSize: theme.fontSizes.xs,
99
+ fontWeight: '600'
100
+ },
101
+ marks: {
102
+ position: 'absolute',
103
+ width: '100%',
104
+ top: sizeStyles.height,
105
+ flexDirection: 'row'
106
+ },
107
+ mark: {
108
+ position: 'absolute',
109
+ width: (0, _rem.rem)(2),
110
+ height: (0, _rem.rem)(6),
111
+ backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark?.[4] : theme.colors.gray?.[3],
112
+ borderRadius: (0, _rem.rem)(1)
113
+ },
114
+ markLabel: {
115
+ position: 'absolute',
116
+ top: (0, _rem.rem)(10),
117
+ fontSize: theme.fontSizes.xs,
118
+ color: theme.colorScheme === 'dark' ? theme.colors.dark?.[2] : theme.colors.gray?.[6],
119
+ transform: [{
120
+ translateX: -10
121
+ }]
122
+ }
123
+ };
124
+ });
125
+ const defaultProps = {
126
+ min: 0,
127
+ max: 100,
128
+ step: 1,
129
+ size: 'md',
130
+ color: 'blue',
131
+ radius: 'xl',
132
+ disabled: false,
133
+ showLabelOnHover: true,
134
+ thumbWithoutBorder: false
135
+ };
136
+ const Slider = exports.Slider = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
137
+ const {
138
+ value: controlledValue,
139
+ defaultValue,
140
+ onChange,
141
+ onChangeEnd,
142
+ min,
143
+ max,
144
+ step,
145
+ size,
146
+ color,
147
+ radius,
148
+ label,
149
+ marks,
150
+ disabled,
151
+ showLabelOnHover,
152
+ thumbChildren,
153
+ thumbWithoutBorder,
154
+ style,
155
+ ...others
156
+ } = (0, _themeProvider.useComponentDefaultProps)('Slider', defaultProps, props);
157
+ const {
158
+ styles,
159
+ sx
160
+ } = useStyles({
161
+ color,
162
+ radius,
163
+ disabled
164
+ }, {
165
+ name: 'Slider',
166
+ size
167
+ });
168
+ const sizeStyles = sizes[size] || sizes.md;
169
+ const [uncontrolledValue, setUncontrolledValue] = (0, _react.useState)(defaultValue ?? min ?? 0);
170
+ const [trackWidth, setTrackWidth] = (0, _react.useState)(0);
171
+ const [showLabel, setShowLabel] = (0, _react.useState)(false);
172
+ const value = controlledValue !== undefined ? controlledValue : uncontrolledValue;
173
+ const scale = (0, _react.useRef)(new _reactNative.Animated.Value(1)).current;
174
+ const clampValue = (0, _react.useCallback)(val => {
175
+ const clamped = Math.max(min, Math.min(max, val));
176
+ const stepped = Math.round(clamped / step) * step;
177
+ return stepped;
178
+ }, [min, max, step]);
179
+ const updateValue = (0, _react.useCallback)(newValue => {
180
+ const clampedValue = clampValue(newValue);
181
+ if (controlledValue === undefined) {
182
+ setUncontrolledValue(clampedValue);
183
+ }
184
+ onChange?.(clampedValue);
185
+ }, [clampValue, controlledValue, onChange]);
186
+ const getValueFromPosition = (0, _react.useCallback)(posX => {
187
+ const percentage = posX / trackWidth;
188
+ return min + percentage * (max - min);
189
+ }, [trackWidth, min, max]);
190
+ const panResponder = (0, _react.useRef)(_reactNative.PanResponder.create({
191
+ onStartShouldSetPanResponder: () => !disabled,
192
+ onMoveShouldSetPanResponder: () => !disabled,
193
+ onPanResponderGrant: () => {
194
+ setShowLabel(true);
195
+ _reactNative.Animated.spring(scale, {
196
+ toValue: 1.2,
197
+ useNativeDriver: true
198
+ }).start();
199
+ },
200
+ onPanResponderMove: (_evt, gestureState) => {
201
+ const newValue = getValueFromPosition(gestureState.moveX);
202
+ updateValue(newValue);
203
+ },
204
+ onPanResponderRelease: () => {
205
+ setShowLabel(false);
206
+ _reactNative.Animated.spring(scale, {
207
+ toValue: 1,
208
+ useNativeDriver: true
209
+ }).start();
210
+ onChangeEnd?.(value);
211
+ }
212
+ })).current;
213
+ const handleLayout = event => {
214
+ setTrackWidth(event.nativeEvent.layout.width);
215
+ };
216
+ const percentage = (value - min) / (max - min) * 100;
217
+ const thumbPosition = trackWidth * percentage / 100;
218
+ const renderLabel = () => {
219
+ if (!showLabel && !showLabelOnHover) return null;
220
+ if (!showLabel) return null;
221
+ const labelContent = typeof label === 'function' ? label(value) : label || value;
222
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
223
+ style: [styles.label, {
224
+ left: -((0, _rem.rem)(28) / 2)
225
+ }],
226
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
227
+ style: styles.labelText,
228
+ children: labelContent
229
+ })
230
+ });
231
+ };
232
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.BoxView, {
233
+ ref: ref,
234
+ style: sx(styles.root, style),
235
+ ...others,
236
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
237
+ style: styles.track,
238
+ onLayout: handleLayout,
239
+ ...panResponder.panHandlers,
240
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
241
+ style: [styles.bar, {
242
+ width: `${percentage}%`
243
+ }]
244
+ }), trackWidth > 0 && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
245
+ style: [styles.thumb, {
246
+ left: thumbPosition - sizeStyles.thumb / 2,
247
+ transform: [{
248
+ scale
249
+ }]
250
+ }],
251
+ children: [renderLabel(), thumbChildren]
252
+ })]
253
+ }), marks && marks.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
254
+ style: styles.marks,
255
+ children: marks.map((mark, index) => {
256
+ const markPercentage = (mark.value - min) / (max - min) * 100;
257
+ const markPosition = trackWidth * markPercentage / 100;
258
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
259
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
260
+ style: [styles.mark, {
261
+ left: markPosition
262
+ }]
263
+ }), mark.label && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Text, {
264
+ style: [styles.markLabel, {
265
+ left: markPosition
266
+ }],
267
+ children: mark.label
268
+ })]
269
+ }, index);
270
+ })
271
+ })]
272
+ });
273
+ });
274
+ Slider.displayName = 'Slider';
275
+ //# 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","thumb","sm","md","lg","xl","useStyles","createStyles","theme","color","radius","disabled","size","colors","primaryColor","sizeStyles","root","position","width","paddingVertical","opacity","track","backgroundColor","colorScheme","dark","gray","borderRadius","fn","overflow","bar","primaryBgColor","white","borderWidth","borderColor","top","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","label","paddingHorizontal","spacing","minWidth","alignItems","justifyContent","labelText","fontSize","fontSizes","fontWeight","marks","flexDirection","mark","markLabel","transform","translateX","defaultProps","min","max","step","showLabelOnHover","thumbWithoutBorder","Slider","exports","forwardRef","props","ref","value","controlledValue","defaultValue","onChange","onChangeEnd","thumbChildren","style","others","useComponentDefaultProps","styles","sx","name","uncontrolledValue","setUncontrolledValue","useState","trackWidth","setTrackWidth","showLabel","setShowLabel","undefined","scale","useRef","Animated","Value","current","clampValue","useCallback","val","clamped","Math","stepped","round","updateValue","newValue","clampedValue","getValueFromPosition","posX","percentage","panResponder","PanResponder","create","onStartShouldSetPanResponder","onMoveShouldSetPanResponder","onPanResponderGrant","spring","toValue","useNativeDriver","start","onPanResponderMove","_evt","gestureState","moveX","onPanResponderRelease","handleLayout","event","nativeEvent","layout","thumbPosition","renderLabel","labelContent","jsx","BoxView","left","children","Text","jsxs","View","onLayout","panHandlers","length","map","index","markPercentage","markPosition","displayName"],"sourceRoot":"../../../../src","sources":["components/Slider/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAUA,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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CAAC,EACbrD,aAAa;MAAA,CACD,CAChB;IAAA,CACG,CAAC,EAENtB,KAAK,IAAIA,KAAK,CAACsF,MAAM,GAAG,CAAC,iBACxB,IAAA/J,WAAA,CAAAsJ,GAAA,EAAC5J,YAAA,CAAAkK,IAAI;MAAC5D,KAAK,EAAEG,MAAM,CAAC1B,KAAM;MAAAgF,QAAA,EACvBhF,KAAK,CAACuF,GAAG,CAAC,CAACrF,IAAI,EAAEsF,KAAK,KAAK;QAC1B,MAAMC,cAAc,GAAI,CAACvF,IAAI,CAACe,KAAK,GAAGV,GAAI,KAAKC,GAAG,GAAID,GAAI,CAAC,GAAI,GAAG;QAClE,MAAMmF,YAAY,GAAI1D,UAAU,GAAGyD,cAAc,GAAI,GAAG;QAExD,oBACE,IAAAlK,WAAA,CAAA2J,IAAA,EAACjK,YAAA,CAAAkK,IAAI;UAAAH,QAAA,gBACH,IAAAzJ,WAAA,CAAAsJ,GAAA,EAAC5J,YAAA,CAAAkK,IAAI;YAAC5D,KAAK,EAAE,CAACG,MAAM,CAACxB,IAAI,EAAE;cAAE6E,IAAI,EAAEW;YAAa,CAAC;UAAE,CAAE,CAAC,EACrDxF,IAAI,CAACZ,KAAK,iBACT,IAAA/D,WAAA,CAAAsJ,GAAA,EAAC1J,OAAA,CAAA8J,IAAI;YAAC1D,KAAK,EAAE,CAACG,MAAM,CAACvB,SAAS,EAAE;cAAE4E,IAAI,EAAEW;YAAa,CAAC,CAAE;YAAAV,QAAA,EAAE9E,IAAI,CAACZ;UAAK,CAAO,CAC5E;QAAA,GAJQkG,KAKL,CAAC;MAEX,CAAC;IAAC,CACE,CACP;EAAA,CACM,CAAC;AAEd,CAAC,CAAC;AAEF5E,MAAM,CAAC+E,WAAW,GAAG,QAAQ","ignoreList":[]}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Space = void 0;
7
+ var _react = require("react");
8
+ var _index = require("../BoxView/index.js");
9
+ var _themeProvider = require("../../theme/theme-provider.js");
10
+ var _jsxRuntime = require("react/jsx-runtime");
11
+ /**
12
+ * Space component adds horizontal or vertical spacing between elements
13
+ */
14
+ const Space = exports.Space = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
15
+ const {
16
+ style,
17
+ w,
18
+ h,
19
+ ...others
20
+ } = props;
21
+ const theme = (0, _themeProvider.useTheme)();
22
+
23
+ // Get spacing value from theme or use number directly
24
+ const getSpacing = value => {
25
+ if (value === undefined) return undefined;
26
+ if (typeof value === 'number') return value;
27
+ return theme.spacing[value] || 0;
28
+ };
29
+ const width = getSpacing(w);
30
+ const height = getSpacing(h);
31
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BoxView, {
32
+ ref: ref,
33
+ style: [{
34
+ ...(width !== undefined && {
35
+ width
36
+ }),
37
+ ...(height !== undefined && {
38
+ height
39
+ })
40
+ }, style],
41
+ ...others
42
+ });
43
+ });
44
+ Space.displayName = 'Space';
45
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_index","_themeProvider","_jsxRuntime","Space","exports","forwardRef","props","ref","style","w","h","others","theme","useTheme","getSpacing","value","undefined","spacing","width","height","jsx","BoxView","displayName"],"sourceRoot":"../../../../src","sources":["components/Space/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAGA,IAAAE,cAAA,GAAAF,OAAA;AAAsD,IAAAG,WAAA,GAAAH,OAAA;AAUtD;AACA;AACA;AACO,MAAMI,KAAK,GAAAC,OAAA,CAAAD,KAAA,gBAAG,IAAAE,iBAAU,EAAkB,CAACC,KAAK,EAAEC,GAAG,KAAK;EAC/D,MAAM;IAAEC,KAAK;IAAEC,CAAC;IAAEC,CAAC;IAAE,GAAGC;EAAM,CAAC,GAAGL,KAAK;EAEvC,MAAMM,KAAK,GAAG,IAAAC,uBAAQ,EAAC,CAAC;;EAExB;EACA,MAAMC,UAAU,GAAIC,KAA6C,IAAK;IACpE,IAAIA,KAAK,KAAKC,SAAS,EAAE,OAAOA,SAAS;IACzC,IAAI,OAAOD,KAAK,KAAK,QAAQ,EAAE,OAAOA,KAAK;IAC3C,OAAOH,KAAK,CAACK,OAAO,CAACF,KAAK,CAA+B,IAAI,CAAC;EAChE,CAAC;EAED,MAAMG,KAAK,GAAGJ,UAAU,CAACL,CAAC,CAAC;EAC3B,MAAMU,MAAM,GAAGL,UAAU,CAACJ,CAAC,CAAC;EAE5B,oBACE,IAAAR,WAAA,CAAAkB,GAAA,EAACpB,MAAA,CAAAqB,OAAO;IACNd,GAAG,EAAEA,GAAI;IACTC,KAAK,EAAE,CACL;MACE,IAAIU,KAAK,KAAKF,SAAS,IAAI;QAAEE;MAAM,CAAC,CAAC;MACrC,IAAIC,MAAM,KAAKH,SAAS,IAAI;QAAEG;MAAO,CAAC;IACxC,CAAC,EACDX,KAAK,CACL;IAAA,GACEG;EAAM,CACX,CAAC;AAEN,CAAC,CAAC;AAEFR,KAAK,CAACmB,WAAW,GAAG,OAAO","ignoreList":[]}