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","forwardRef","useState","TouchableOpacity","BoxView","Text","useComponentDefaultProps","createStyles","rem","jsx","_jsx","sizes","xs","sm","md","lg","xl","useStyles","theme","color","emptyColor","size","colors","primaryColor","emptyColors","gray","sizeValue","root","flexDirection","alignItems","symbolWrapper","marginHorizontal","symbol","fontSize","lineHeight","symbolFilled","primaryBgColor","symbolEmpty","symbolHovered","opacity","defaultProps","count","fractions","readOnly","highlightSelectedOnly","StarSymbol","filled","children","Rating","props","ref","value","controlledValue","defaultValue","onChange","emptySymbol","style","others","styles","sx","name","uncontrolledValue","setUncontrolledValue","hoveredValue","setHoveredValue","undefined","handleClick","index","newValue","renderSymbol","currentValue","isActive","fillPercentage","Math","floor","isHovered","symbolContent","emptySymbolContent","onPress","onPressIn","onPressOut","disabled","activeOpacity","Array","from","length","_","displayName"],"sourceRoot":"../../../../src","sources":["components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
+ "use strict";
2
+
3
+ import React, { forwardRef } from 'react';
4
+ import { View } from 'react-native';
5
+ import { BoxView } from "../BoxView/index.js";
6
+ import { Text } from "../Text/index.js";
7
+ import { useComponentDefaultProps, useTheme } from "../../theme/theme-provider.js";
8
+ import { createStyles } from "../../theme/index.js";
9
+ import { rem } from "../../theme/utils/rem.js";
10
+
11
+ /**
12
+ * NOTE: This is a simplified version of RingProgress.
13
+ * For full SVG-based circular progress, install react-native-svg:
14
+ * yarn add react-native-svg
15
+ *
16
+ * This version uses View-based rendering with transform rotation.
17
+ * For production use, consider implementing with react-native-svg.
18
+ */
19
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
20
+ const useStyles = createStyles((theme, {
21
+ size,
22
+ thickness,
23
+ rootColor
24
+ }) => ({
25
+ root: {
26
+ width: size,
27
+ height: size,
28
+ position: 'relative',
29
+ alignItems: 'center',
30
+ justifyContent: 'center'
31
+ },
32
+ track: {
33
+ position: 'absolute',
34
+ width: size,
35
+ height: size,
36
+ borderRadius: size / 2,
37
+ borderWidth: thickness,
38
+ borderColor: rootColor
39
+ },
40
+ label: {
41
+ position: 'absolute',
42
+ fontSize: rem(14),
43
+ fontWeight: '600',
44
+ color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[0] : theme.black
45
+ },
46
+ // Simplified progress representation
47
+ progressContainer: {
48
+ position: 'absolute',
49
+ width: size,
50
+ height: size,
51
+ borderRadius: size / 2,
52
+ overflow: 'hidden'
53
+ }
54
+ }));
55
+ const defaultProps = {
56
+ size: 120,
57
+ thickness: 12,
58
+ roundCaps: false
59
+ };
60
+ export const RingProgress = /*#__PURE__*/forwardRef((props, ref) => {
61
+ const {
62
+ sections,
63
+ size,
64
+ thickness,
65
+ label,
66
+ rootColor: customRootColor,
67
+ roundCaps,
68
+ style,
69
+ ...others
70
+ } = useComponentDefaultProps('RingProgress', defaultProps, props);
71
+ const theme = useTheme();
72
+ const rootColor = customRootColor || (theme.colorScheme === 'dark' ? (theme.colors.dark || [])[4] : (theme.colors.gray || [])[2]);
73
+ const {
74
+ styles,
75
+ sx
76
+ } = useStyles({
77
+ size,
78
+ thickness,
79
+ rootColor
80
+ }, {
81
+ name: 'RingProgress'
82
+ });
83
+
84
+ // Calculate total value and normalize sections
85
+ const normalizedSections = sections.map(section => ({
86
+ ...section,
87
+ percentage: section.value / 100 * 100
88
+ }));
89
+
90
+ // Render simplified ring using borders and transforms
91
+ // Note: This is a basic implementation. For full SVG support, use react-native-svg
92
+ const renderSections = () => {
93
+ let currentAngle = 0;
94
+ return normalizedSections.map((section, index) => {
95
+ const colors = theme.colors[section.color] || theme.colors[theme.primaryColor];
96
+ const sectionColor = colors?.[6] || colors?.[5] || theme.primaryBgColor;
97
+ const angle = section.percentage / 100 * 360;
98
+ const rotation = currentAngle;
99
+ currentAngle += angle;
100
+
101
+ // Simplified representation - just show colored arcs
102
+ // This is a placeholder implementation
103
+ return /*#__PURE__*/_jsx(View, {
104
+ style: {
105
+ position: 'absolute',
106
+ width: size,
107
+ height: size,
108
+ borderRadius: size / 2,
109
+ borderWidth: thickness,
110
+ borderColor: 'transparent',
111
+ borderTopColor: sectionColor,
112
+ transform: [{
113
+ rotate: `${rotation}deg`
114
+ }]
115
+ }
116
+ }, index);
117
+ });
118
+ };
119
+ return /*#__PURE__*/_jsxs(BoxView, {
120
+ ref: ref,
121
+ style: sx(styles.root, style),
122
+ ...others,
123
+ children: [/*#__PURE__*/_jsx(View, {
124
+ style: styles.track
125
+ }), /*#__PURE__*/_jsx(View, {
126
+ style: styles.progressContainer,
127
+ children: renderSections()
128
+ }), label && (typeof label === 'string' ? /*#__PURE__*/_jsx(Text, {
129
+ style: styles.label,
130
+ children: label
131
+ }) : /*#__PURE__*/_jsx(View, {
132
+ style: {
133
+ position: 'absolute'
134
+ },
135
+ children: label
136
+ }))]
137
+ });
138
+ });
139
+ RingProgress.displayName = 'RingProgress';
140
+
141
+ /**
142
+ * USAGE NOTE:
143
+ * This is a simplified implementation of RingProgress.
144
+ * For production-quality circular progress with accurate rendering,
145
+ * install react-native-svg and implement using SVG circles with
146
+ * stroke-dasharray and stroke-dashoffset.
147
+ *
148
+ * Example with react-native-svg:
149
+ * ```tsx
150
+ * import Svg, { Circle } from 'react-native-svg';
151
+ *
152
+ * const circumference = 2 * Math.PI * radius;
153
+ * const strokeDashoffset = circumference - (percentage / 100) * circumference;
154
+ *
155
+ * <Svg width={size} height={size}>
156
+ * <Circle
157
+ * cx={size / 2}
158
+ * cy={size / 2}
159
+ * r={radius}
160
+ * stroke={color}
161
+ * strokeWidth={thickness}
162
+ * strokeDasharray={circumference}
163
+ * strokeDashoffset={strokeDashoffset}
164
+ * fill="none"
165
+ * />
166
+ * </Svg>
167
+ * ```
168
+ */
169
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","View","BoxView","Text","useComponentDefaultProps","useTheme","createStyles","rem","jsx","_jsx","jsxs","_jsxs","useStyles","theme","size","thickness","rootColor","root","width","height","position","alignItems","justifyContent","track","borderRadius","borderWidth","borderColor","label","fontSize","fontWeight","color","colorScheme","colors","dark","black","progressContainer","overflow","defaultProps","roundCaps","RingProgress","props","ref","sections","customRootColor","style","others","gray","styles","sx","name","normalizedSections","map","section","percentage","value","renderSections","currentAngle","index","primaryColor","sectionColor","primaryBgColor","angle","rotation","borderTopColor","transform","rotate","children","displayName"],"sourceRoot":"../../../../src","sources":["components/RingProgress/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,OAAO,QAAQ,qBAAY;AACpC,SAASC,IAAI,QAAQ,kBAAS;AAE9B,SAASC,wBAAwB,EAAEC,QAAQ,QAAQ,+BAA4B;AAC/E,SAASC,YAAY,QAAQ,sBAAa;AAC1C,SAASC,GAAG,QAAQ,0BAAuB;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPA,SAAAC,GAAA,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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -0,0 +1,220 @@
1
+ "use strict";
2
+
3
+ import React, { forwardRef, useState, useRef, useEffect } from 'react';
4
+ import { TouchableOpacity, Animated } from 'react-native';
5
+ import { BoxView } from "../BoxView/index.js";
6
+ import { Text } from "../Text/index.js";
7
+ import { useComponentDefaultProps } from "../../theme/theme-provider.js";
8
+ import { createStyles } from "../../theme/index.js";
9
+ import { rem } from "../../theme/utils/rem.js";
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
+ const sizes = {
12
+ xs: {
13
+ fontSize: rem(10),
14
+ padding: rem(4),
15
+ height: rem(24)
16
+ },
17
+ sm: {
18
+ fontSize: rem(12),
19
+ padding: rem(6),
20
+ height: rem(28)
21
+ },
22
+ md: {
23
+ fontSize: rem(14),
24
+ padding: rem(8),
25
+ height: rem(32)
26
+ },
27
+ lg: {
28
+ fontSize: rem(16),
29
+ padding: rem(10),
30
+ height: rem(38)
31
+ },
32
+ xl: {
33
+ fontSize: rem(18),
34
+ padding: rem(12),
35
+ height: rem(44)
36
+ }
37
+ };
38
+ const useStyles = createStyles((theme, {
39
+ radius,
40
+ disabled,
41
+ orientation,
42
+ fullWidth
43
+ }, {
44
+ size
45
+ }) => {
46
+ const sizeStyles = sizes[size] || sizes.md;
47
+ return {
48
+ root: {
49
+ position: 'relative',
50
+ flexDirection: orientation === 'horizontal' ? 'row' : 'column',
51
+ backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark?.[6] : theme.colors.gray?.[1],
52
+ borderRadius: theme.fn.radius(radius),
53
+ padding: rem(4),
54
+ opacity: disabled ? 0.5 : 1,
55
+ ...(fullWidth && {
56
+ width: '100%'
57
+ })
58
+ },
59
+ indicator: {
60
+ position: 'absolute',
61
+ backgroundColor: theme.white,
62
+ borderRadius: theme.fn.radius(radius),
63
+ shadowColor: '#000',
64
+ shadowOffset: {
65
+ width: 0,
66
+ height: 1
67
+ },
68
+ shadowOpacity: 0.05,
69
+ shadowRadius: 1,
70
+ elevation: 1,
71
+ ...(theme.colorScheme === 'dark' && {
72
+ backgroundColor: theme.colors.dark?.[5]
73
+ })
74
+ },
75
+ segment: {
76
+ flex: 1,
77
+ paddingHorizontal: sizeStyles.padding,
78
+ paddingVertical: sizeStyles.padding,
79
+ minHeight: sizeStyles.height,
80
+ justifyContent: 'center',
81
+ alignItems: 'center',
82
+ borderRadius: theme.fn.radius(radius),
83
+ zIndex: 1
84
+ },
85
+ label: {
86
+ fontSize: sizeStyles.fontSize,
87
+ fontWeight: '500',
88
+ textAlign: 'center'
89
+ },
90
+ activeLabel: {
91
+ color: theme.colorScheme === 'dark' ? theme.white : theme.black
92
+ },
93
+ inactiveLabel: {
94
+ color: theme.colorScheme === 'dark' ? theme.colors.dark?.[1] : theme.colors.gray?.[7]
95
+ },
96
+ disabledLabel: {
97
+ color: theme.colorScheme === 'dark' ? theme.colors.dark?.[3] : theme.colors.gray?.[5]
98
+ }
99
+ };
100
+ });
101
+ const defaultProps = {
102
+ size: 'md',
103
+ color: 'blue',
104
+ radius: 'sm',
105
+ disabled: false,
106
+ orientation: 'horizontal',
107
+ fullWidth: false,
108
+ transitionDuration: 200
109
+ };
110
+ export const SegmentedControl = /*#__PURE__*/forwardRef((props, ref) => {
111
+ const {
112
+ value: controlledValue,
113
+ defaultValue,
114
+ onChange,
115
+ data,
116
+ size,
117
+ color,
118
+ radius,
119
+ disabled,
120
+ orientation,
121
+ fullWidth,
122
+ transitionDuration,
123
+ style,
124
+ ...others
125
+ } = useComponentDefaultProps('SegmentedControl', defaultProps, props);
126
+ const {
127
+ styles,
128
+ sx
129
+ } = useStyles({
130
+ color,
131
+ radius,
132
+ disabled,
133
+ orientation,
134
+ fullWidth
135
+ }, {
136
+ name: 'SegmentedControl',
137
+ size
138
+ });
139
+
140
+ // Normalize data to SegmentedControlItem[]
141
+ const normalizedData = data.map(item => typeof item === 'string' ? {
142
+ label: item,
143
+ value: item,
144
+ disabled: false
145
+ } : item);
146
+ const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue ?? normalizedData[0]?.value ?? '');
147
+ const [segmentLayouts, setSegmentLayouts] = useState([]);
148
+ const value = controlledValue !== undefined ? controlledValue : uncontrolledValue;
149
+ const activeIndex = normalizedData.findIndex(item => item.value === value);
150
+ const indicatorPosition = useRef(new Animated.Value(0)).current;
151
+ const indicatorSize = useRef(new Animated.Value(0)).current;
152
+ useEffect(() => {
153
+ if (segmentLayouts[activeIndex]) {
154
+ const layout = segmentLayouts[activeIndex];
155
+ Animated.parallel([Animated.timing(indicatorPosition, {
156
+ toValue: orientation === 'horizontal' ? layout.x : layout.y,
157
+ duration: transitionDuration,
158
+ useNativeDriver: false
159
+ }), Animated.timing(indicatorSize, {
160
+ toValue: orientation === 'horizontal' ? layout.width : layout.height,
161
+ duration: transitionDuration,
162
+ useNativeDriver: false
163
+ })]).start();
164
+ }
165
+ }, [activeIndex, segmentLayouts, orientation, transitionDuration, indicatorPosition, indicatorSize]);
166
+ const handleSegmentLayout = (index, event) => {
167
+ const {
168
+ x,
169
+ y,
170
+ width,
171
+ height
172
+ } = event.nativeEvent.layout;
173
+ setSegmentLayouts(prev => {
174
+ const newLayouts = [...prev];
175
+ newLayouts[index] = {
176
+ x,
177
+ y,
178
+ width,
179
+ height
180
+ };
181
+ return newLayouts;
182
+ });
183
+ };
184
+ const handlePress = item => {
185
+ if (disabled || item.disabled) return;
186
+ if (controlledValue === undefined) {
187
+ setUncontrolledValue(item.value);
188
+ }
189
+ onChange?.(item.value);
190
+ };
191
+ const indicatorStyle = {
192
+ [orientation === 'horizontal' ? 'left' : 'top']: indicatorPosition,
193
+ [orientation === 'horizontal' ? 'width' : 'height']: indicatorSize,
194
+ [orientation === 'horizontal' ? 'height' : 'width']: '100%'
195
+ };
196
+ return /*#__PURE__*/_jsxs(BoxView, {
197
+ ref: ref,
198
+ style: sx(styles.root, style),
199
+ ...others,
200
+ children: [segmentLayouts.length === normalizedData.length && /*#__PURE__*/_jsx(Animated.View, {
201
+ style: [styles.indicator, indicatorStyle]
202
+ }), normalizedData.map((item, index) => {
203
+ const isActive = item.value === value;
204
+ const isDisabled = disabled || item.disabled;
205
+ return /*#__PURE__*/_jsx(TouchableOpacity, {
206
+ style: styles.segment,
207
+ onPress: () => handlePress(item),
208
+ disabled: isDisabled,
209
+ activeOpacity: 0.7,
210
+ onLayout: event => handleSegmentLayout(index, event),
211
+ children: /*#__PURE__*/_jsx(Text, {
212
+ style: [styles.label, isActive ? styles.activeLabel : styles.inactiveLabel, isDisabled && styles.disabledLabel],
213
+ children: item.label
214
+ })
215
+ }, item.value);
216
+ })]
217
+ });
218
+ });
219
+ SegmentedControl.displayName = 'SegmentedControl';
220
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","useState","useRef","useEffect","TouchableOpacity","Animated","BoxView","Text","useComponentDefaultProps","createStyles","rem","jsx","_jsx","jsxs","_jsxs","sizes","xs","fontSize","padding","height","sm","md","lg","xl","useStyles","theme","radius","disabled","orientation","fullWidth","size","sizeStyles","root","position","flexDirection","backgroundColor","colorScheme","colors","dark","gray","borderRadius","fn","opacity","width","indicator","white","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","segment","flex","paddingHorizontal","paddingVertical","minHeight","justifyContent","alignItems","zIndex","label","fontWeight","textAlign","activeLabel","color","black","inactiveLabel","disabledLabel","defaultProps","transitionDuration","SegmentedControl","props","ref","value","controlledValue","defaultValue","onChange","data","style","others","styles","sx","name","normalizedData","map","item","uncontrolledValue","setUncontrolledValue","segmentLayouts","setSegmentLayouts","undefined","activeIndex","findIndex","indicatorPosition","Value","current","indicatorSize","layout","parallel","timing","toValue","x","y","duration","useNativeDriver","start","handleSegmentLayout","index","event","nativeEvent","prev","newLayouts","handlePress","indicatorStyle","children","length","View","isActive","isDisabled","onPress","activeOpacity","onLayout","displayName"],"sourceRoot":"../../../../src","sources":["components/SegmentedControl/index.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BAAmB,CAACC,KAAK,EAAEC,KAAK,CAAE;QAAAM,QAAA,eAEvDrG,IAAA,CAACL,IAAI;UACHsE,KAAK,EAAE,CACLE,MAAM,CAACpB,KAAK,EACZyD,QAAQ,GAAGrC,MAAM,CAACjB,WAAW,GAAGiB,MAAM,CAACd,aAAa,EACpDoD,UAAU,IAAItC,MAAM,CAACb,aAAa,CAClC;UAAA+C,QAAA,EAED7B,IAAI,CAACzB;QAAK,CACP;MAAC,GAfFyB,IAAI,CAACZ,KAgBM,CAAC;IAEvB,CAAC,CAAC;EAAA,CACK,CAAC;AAEd,CAAC,CAAC;AAEFH,gBAAgB,CAACoD,WAAW,GAAG,kBAAkB","ignoreList":[]}
@@ -0,0 +1,239 @@
1
+ "use strict";
2
+
3
+ import React, { forwardRef, useState } from 'react';
4
+ import { Modal, ScrollView, TouchableOpacity } from 'react-native';
5
+ import { BoxView } from "../BoxView/index.js";
6
+ import { Text } from "../Text/index.js";
7
+ import { TextInput } from "../TextInput/index.js";
8
+ import { useComponentDefaultProps } from "../../theme/theme-provider.js";
9
+ import { createStyles } from "../../theme/index.js";
10
+ import { rem } from "../../theme/utils/rem.js";
11
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
12
+ const useStyles = createStyles((theme, {
13
+ color
14
+ }) => {
15
+ const colors = theme.colors[color] || theme.colors[theme.primaryColor];
16
+ return {
17
+ modalOverlay: {
18
+ flex: 1,
19
+ backgroundColor: 'rgba(0, 0, 0, 0.5)',
20
+ justifyContent: 'flex-end'
21
+ },
22
+ modalContent: {
23
+ backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[7] : theme.white,
24
+ borderTopLeftRadius: theme.radius.lg,
25
+ borderTopRightRadius: theme.radius.lg,
26
+ maxHeight: '80%'
27
+ },
28
+ searchContainer: {
29
+ padding: theme.spacing.md,
30
+ borderBottomWidth: 1,
31
+ borderBottomColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[4] : (theme.colors.gray || [])[2]
32
+ },
33
+ listContainer: {
34
+ paddingVertical: rem(8)
35
+ },
36
+ item: {
37
+ paddingVertical: rem(12),
38
+ paddingHorizontal: theme.spacing.md,
39
+ flexDirection: 'row',
40
+ alignItems: 'center'
41
+ },
42
+ itemSelected: {
43
+ backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[5] : colors?.[0] || (theme.colors.gray || [])[0]
44
+ },
45
+ itemDisabled: {
46
+ opacity: 0.4
47
+ },
48
+ itemText: {
49
+ fontSize: rem(14),
50
+ color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[0] : theme.black
51
+ },
52
+ itemTextSelected: {
53
+ fontWeight: '600',
54
+ color: colors?.[6] || colors?.[5] || theme.primaryBgColor
55
+ },
56
+ groupLabel: {
57
+ paddingVertical: rem(8),
58
+ paddingHorizontal: theme.spacing.md,
59
+ fontSize: rem(12),
60
+ fontWeight: '600',
61
+ color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[2] : (theme.colors.gray || [])[6],
62
+ textTransform: 'uppercase'
63
+ },
64
+ emptyState: {
65
+ padding: theme.spacing.xl,
66
+ alignItems: 'center'
67
+ },
68
+ emptyText: {
69
+ color: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[2] : (theme.colors.gray || [])[6]
70
+ }
71
+ };
72
+ });
73
+ const defaultProps = {
74
+ size: 'md',
75
+ radius: 'sm',
76
+ color: 'blue',
77
+ disabled: false,
78
+ searchable: false,
79
+ clearable: false,
80
+ maxDropdownHeight: 400,
81
+ searchPlaceholder: 'Search...',
82
+ clearButtonLabel: 'Clear'
83
+ };
84
+ const normalizeData = data => {
85
+ return data.map(item => typeof item === 'string' ? {
86
+ value: item,
87
+ label: item
88
+ } : item);
89
+ };
90
+ export const Select = /*#__PURE__*/forwardRef((props, ref) => {
91
+ const {
92
+ data,
93
+ value: controlledValue,
94
+ defaultValue,
95
+ onChange,
96
+ placeholder,
97
+ label,
98
+ description,
99
+ error,
100
+ size,
101
+ radius,
102
+ color,
103
+ disabled,
104
+ searchable,
105
+ searchPlaceholder,
106
+ clearable,
107
+ clearButtonLabel,
108
+ maxDropdownHeight,
109
+ icon,
110
+ rightSection,
111
+ style,
112
+ ...others
113
+ } = useComponentDefaultProps('Select', defaultProps, props);
114
+ const [opened, setOpened] = useState(false);
115
+ const [searchQuery, setSearchQuery] = useState('');
116
+ const [value, setValue] = useState(defaultValue || '');
117
+ const {
118
+ styles
119
+ } = useStyles({
120
+ color,
121
+ size
122
+ }, {
123
+ name: 'Select'
124
+ });
125
+ const isControlled = controlledValue !== undefined;
126
+ const currentValue = isControlled ? controlledValue : value;
127
+ const normalizedData = normalizeData(data);
128
+ const selectedItem = normalizedData.find(item => item.value === currentValue);
129
+ const filteredData = searchable ? normalizedData.filter(item => item.label.toLowerCase().includes(searchQuery.toLowerCase())) : normalizedData;
130
+ const handleSelect = itemValue => {
131
+ if (!isControlled) {
132
+ setValue(itemValue);
133
+ }
134
+ onChange?.(itemValue);
135
+ setOpened(false);
136
+ setSearchQuery('');
137
+ };
138
+ const handleClear = () => {
139
+ if (!isControlled) {
140
+ setValue('');
141
+ }
142
+ onChange?.('');
143
+ };
144
+ const groupedData = {};
145
+ let ungroupedItems = [];
146
+ filteredData.forEach(item => {
147
+ if (item.group) {
148
+ if (!groupedData[item.group]) {
149
+ groupedData[item.group] = [];
150
+ }
151
+ groupedData[item.group].push(item);
152
+ } else {
153
+ ungroupedItems.push(item);
154
+ }
155
+ });
156
+ return /*#__PURE__*/_jsxs(_Fragment, {
157
+ children: [/*#__PURE__*/_jsx(TextInput, {
158
+ ref: ref,
159
+ label: label,
160
+ description: description,
161
+ error: error,
162
+ size: size,
163
+ radius: radius,
164
+ icon: icon,
165
+ rightSection: rightSection,
166
+ value: selectedItem?.label || '',
167
+ placeholder: placeholder,
168
+ editable: !disabled,
169
+ onPress: () => !disabled && setOpened(true),
170
+ style: style,
171
+ ...others
172
+ }), /*#__PURE__*/_jsx(Modal, {
173
+ visible: opened,
174
+ transparent: true,
175
+ animationType: "slide",
176
+ onRequestClose: () => setOpened(false),
177
+ children: /*#__PURE__*/_jsx(TouchableOpacity, {
178
+ activeOpacity: 1,
179
+ style: styles.modalOverlay,
180
+ onPress: () => setOpened(false),
181
+ children: /*#__PURE__*/_jsxs(TouchableOpacity, {
182
+ activeOpacity: 1,
183
+ style: styles.modalContent,
184
+ children: [searchable && /*#__PURE__*/_jsx(BoxView, {
185
+ style: styles.searchContainer,
186
+ children: /*#__PURE__*/_jsx(TextInput, {
187
+ placeholder: searchPlaceholder,
188
+ value: searchQuery,
189
+ onChange: e => setSearchQuery(e.nativeEvent.text),
190
+ autoFocus: true
191
+ })
192
+ }), /*#__PURE__*/_jsxs(ScrollView, {
193
+ style: {
194
+ maxHeight: maxDropdownHeight
195
+ },
196
+ contentContainerStyle: styles.listContainer,
197
+ children: [clearable && currentValue && /*#__PURE__*/_jsx(TouchableOpacity, {
198
+ style: styles.item,
199
+ onPress: handleClear,
200
+ children: /*#__PURE__*/_jsx(Text, {
201
+ style: styles.itemText,
202
+ children: clearButtonLabel
203
+ })
204
+ }), ungroupedItems.map(item => /*#__PURE__*/_jsx(TouchableOpacity, {
205
+ style: [styles.item, currentValue === item.value && styles.itemSelected, item.disabled && styles.itemDisabled],
206
+ onPress: () => !item.disabled && handleSelect(item.value),
207
+ disabled: item.disabled,
208
+ children: /*#__PURE__*/_jsx(Text, {
209
+ style: [styles.itemText, currentValue === item.value && styles.itemTextSelected],
210
+ children: item.label
211
+ })
212
+ }, item.value)), Object.keys(groupedData).map(group => /*#__PURE__*/_jsxs(React.Fragment, {
213
+ children: [/*#__PURE__*/_jsx(Text, {
214
+ style: styles.groupLabel,
215
+ children: group
216
+ }), (groupedData[group] || []).map(item => /*#__PURE__*/_jsx(TouchableOpacity, {
217
+ style: [styles.item, currentValue === item.value && styles.itemSelected, item.disabled && styles.itemDisabled],
218
+ onPress: () => !item.disabled && handleSelect(item.value),
219
+ disabled: item.disabled,
220
+ children: /*#__PURE__*/_jsx(Text, {
221
+ style: [styles.itemText, currentValue === item.value && styles.itemTextSelected],
222
+ children: item.label
223
+ })
224
+ }, item.value))]
225
+ }, group)), filteredData.length === 0 && /*#__PURE__*/_jsx(BoxView, {
226
+ style: styles.emptyState,
227
+ children: /*#__PURE__*/_jsx(Text, {
228
+ style: styles.emptyText,
229
+ children: "No options found"
230
+ })
231
+ })]
232
+ })]
233
+ })
234
+ })
235
+ })]
236
+ });
237
+ });
238
+ Select.displayName = 'Select';
239
+ //# sourceMappingURL=index.js.map