react-native-mantine 0.1.15 → 0.2.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 (753) hide show
  1. package/lib/commonjs/components/Accordion/index.js +251 -0
  2. package/lib/commonjs/components/Accordion/index.js.map +1 -0
  3. package/lib/commonjs/components/ActionIcon/ActionIcon.js +23 -28
  4. package/lib/commonjs/components/ActionIcon/ActionIcon.js.map +1 -1
  5. package/lib/commonjs/components/Anchor/index.js +108 -0
  6. package/lib/commonjs/components/Anchor/index.js.map +1 -0
  7. package/lib/commonjs/components/AspectRatio/index.js +66 -0
  8. package/lib/commonjs/components/AspectRatio/index.js.map +1 -0
  9. package/lib/commonjs/components/Avatar/index.js +129 -0
  10. package/lib/commonjs/components/Avatar/index.js.map +1 -0
  11. package/lib/commonjs/components/BackgroundImage/index.js +56 -0
  12. package/lib/commonjs/components/BackgroundImage/index.js.map +1 -0
  13. package/lib/commonjs/components/Badge/index.js +190 -0
  14. package/lib/commonjs/components/Badge/index.js.map +1 -0
  15. package/lib/commonjs/components/Blockquote/index.js +98 -0
  16. package/lib/commonjs/components/Blockquote/index.js.map +1 -0
  17. package/lib/commonjs/components/BoxView/index.js +66 -2
  18. package/lib/commonjs/components/BoxView/index.js.map +1 -1
  19. package/lib/commonjs/components/Breadcrumbs/index.js +58 -0
  20. package/lib/commonjs/components/Breadcrumbs/index.js.map +1 -0
  21. package/lib/commonjs/components/Burger/index.js +183 -0
  22. package/lib/commonjs/components/Burger/index.js.map +1 -0
  23. package/lib/commonjs/components/Button/Button.styles.js +35 -18
  24. package/lib/commonjs/components/Button/Button.styles.js.map +1 -1
  25. package/lib/commonjs/components/Button/index.js +2 -1
  26. package/lib/commonjs/components/Button/index.js.map +1 -1
  27. package/lib/commonjs/components/Card/index.js +136 -0
  28. package/lib/commonjs/components/Card/index.js.map +1 -0
  29. package/lib/commonjs/components/Center/index.js +36 -0
  30. package/lib/commonjs/components/Center/index.js.map +1 -0
  31. package/lib/commonjs/components/Checkbox/index.js +140 -0
  32. package/lib/commonjs/components/Checkbox/index.js.map +1 -0
  33. package/lib/commonjs/components/Chip/index.js +269 -0
  34. package/lib/commonjs/components/Chip/index.js.map +1 -0
  35. package/lib/commonjs/components/CloseButton/index.js +137 -0
  36. package/lib/commonjs/components/CloseButton/index.js.map +1 -0
  37. package/lib/commonjs/components/Code/index.js +68 -0
  38. package/lib/commonjs/components/Code/index.js.map +1 -0
  39. package/lib/commonjs/components/Collapse/index.js +83 -0
  40. package/lib/commonjs/components/Collapse/index.js.map +1 -0
  41. package/lib/commonjs/components/ColorSwatch/index.js +96 -0
  42. package/lib/commonjs/components/ColorSwatch/index.js.map +1 -0
  43. package/lib/commonjs/components/Container/index.js +71 -0
  44. package/lib/commonjs/components/Container/index.js.map +1 -0
  45. package/lib/commonjs/components/CopyButton/index.js +54 -0
  46. package/lib/commonjs/components/CopyButton/index.js.map +1 -0
  47. package/lib/commonjs/components/Dialog/index.js +140 -0
  48. package/lib/commonjs/components/Dialog/index.js.map +1 -0
  49. package/lib/commonjs/components/Divider/index.js +148 -0
  50. package/lib/commonjs/components/Divider/index.js.map +1 -0
  51. package/lib/commonjs/components/Drawer/index.js +252 -0
  52. package/lib/commonjs/components/Drawer/index.js.map +1 -0
  53. package/lib/commonjs/components/Flex/index.js +63 -0
  54. package/lib/commonjs/components/Flex/index.js.map +1 -0
  55. package/lib/commonjs/components/Grid/index.js +145 -0
  56. package/lib/commonjs/components/Grid/index.js.map +1 -0
  57. package/lib/commonjs/components/Group/index.js +22 -1
  58. package/lib/commonjs/components/Group/index.js.map +1 -1
  59. package/lib/commonjs/components/Highlight/index.js +74 -0
  60. package/lib/commonjs/components/Highlight/index.js.map +1 -0
  61. package/lib/commonjs/components/Image/index.js +133 -0
  62. package/lib/commonjs/components/Image/index.js.map +1 -0
  63. package/lib/commonjs/components/Indicator/index.js +199 -0
  64. package/lib/commonjs/components/Indicator/index.js.map +1 -0
  65. package/lib/commonjs/components/Kbd/index.js +96 -0
  66. package/lib/commonjs/components/Kbd/index.js.map +1 -0
  67. package/lib/commonjs/components/List/index.js +217 -0
  68. package/lib/commonjs/components/List/index.js.map +1 -0
  69. package/lib/commonjs/components/Loader/Loader.js +25 -18
  70. package/lib/commonjs/components/Loader/Loader.js.map +1 -1
  71. package/lib/commonjs/components/LoadingOverlay/index.js +84 -0
  72. package/lib/commonjs/components/LoadingOverlay/index.js.map +1 -0
  73. package/lib/commonjs/components/Mark/index.js +47 -0
  74. package/lib/commonjs/components/Mark/index.js.map +1 -0
  75. package/lib/commonjs/components/MediaQuery/index.js +89 -0
  76. package/lib/commonjs/components/MediaQuery/index.js.map +1 -0
  77. package/lib/commonjs/components/Menu/index.js +306 -0
  78. package/lib/commonjs/components/Menu/index.js.map +1 -0
  79. package/lib/commonjs/components/Modal/index.js +236 -0
  80. package/lib/commonjs/components/Modal/index.js.map +1 -0
  81. package/lib/commonjs/components/MultiSelect/index.js +300 -0
  82. package/lib/commonjs/components/MultiSelect/index.js.map +1 -0
  83. package/lib/commonjs/components/NativeSelect/index.js +295 -0
  84. package/lib/commonjs/components/NativeSelect/index.js.map +1 -0
  85. package/lib/commonjs/components/NavLink/index.js +164 -0
  86. package/lib/commonjs/components/NavLink/index.js.map +1 -0
  87. package/lib/commonjs/components/Notification/index.js +143 -0
  88. package/lib/commonjs/components/Notification/index.js.map +1 -0
  89. package/lib/commonjs/components/NumberInput/index.js +268 -0
  90. package/lib/commonjs/components/NumberInput/index.js.map +1 -0
  91. package/lib/commonjs/components/Overlay/index.js +78 -0
  92. package/lib/commonjs/components/Overlay/index.js.map +1 -0
  93. package/lib/commonjs/components/Pagination/index.js +254 -0
  94. package/lib/commonjs/components/Pagination/index.js.map +1 -0
  95. package/lib/commonjs/components/Paper/index.js +156 -0
  96. package/lib/commonjs/components/Paper/index.js.map +1 -0
  97. package/lib/commonjs/components/PasswordInput/index.js +68 -0
  98. package/lib/commonjs/components/PasswordInput/index.js.map +1 -0
  99. package/lib/commonjs/components/PinInput/index.js +186 -0
  100. package/lib/commonjs/components/PinInput/index.js.map +1 -0
  101. package/lib/commonjs/components/Popover/index.js +163 -0
  102. package/lib/commonjs/components/Popover/index.js.map +1 -0
  103. package/lib/commonjs/components/Portal/index.js +70 -0
  104. package/lib/commonjs/components/Portal/index.js.map +1 -0
  105. package/lib/commonjs/components/Progress/index.js +124 -0
  106. package/lib/commonjs/components/Progress/index.js.map +1 -0
  107. package/lib/commonjs/components/Radio/index.js +136 -0
  108. package/lib/commonjs/components/Radio/index.js.map +1 -0
  109. package/lib/commonjs/components/Rating/index.js +152 -0
  110. package/lib/commonjs/components/Rating/index.js.map +1 -0
  111. package/lib/commonjs/components/RingProgress/index.js +175 -0
  112. package/lib/commonjs/components/RingProgress/index.js.map +1 -0
  113. package/lib/commonjs/components/SegmentedControl/index.js +226 -0
  114. package/lib/commonjs/components/SegmentedControl/index.js.map +1 -0
  115. package/lib/commonjs/components/Select/index.js +245 -0
  116. package/lib/commonjs/components/Select/index.js.map +1 -0
  117. package/lib/commonjs/components/SimpleGrid/index.js +102 -0
  118. package/lib/commonjs/components/SimpleGrid/index.js.map +1 -0
  119. package/lib/commonjs/components/Skeleton/index.js +112 -0
  120. package/lib/commonjs/components/Skeleton/index.js.map +1 -0
  121. package/lib/commonjs/components/Slider/index.js +276 -0
  122. package/lib/commonjs/components/Slider/index.js.map +1 -0
  123. package/lib/commonjs/components/Space/index.js +45 -0
  124. package/lib/commonjs/components/Space/index.js.map +1 -0
  125. package/lib/commonjs/components/Spoiler/index.js +110 -0
  126. package/lib/commonjs/components/Spoiler/index.js.map +1 -0
  127. package/lib/commonjs/components/Stepper/index.js +276 -0
  128. package/lib/commonjs/components/Stepper/index.js.map +1 -0
  129. package/lib/commonjs/components/Switch/index.js +119 -0
  130. package/lib/commonjs/components/Switch/index.js.map +1 -0
  131. package/lib/commonjs/components/Table/index.js +314 -0
  132. package/lib/commonjs/components/Table/index.js.map +1 -0
  133. package/lib/commonjs/components/Text/index.js +7 -2
  134. package/lib/commonjs/components/Text/index.js.map +1 -1
  135. package/lib/commonjs/components/TextInput/index.js +185 -0
  136. package/lib/commonjs/components/TextInput/index.js.map +1 -0
  137. package/lib/commonjs/components/Textarea/index.js +54 -0
  138. package/lib/commonjs/components/Textarea/index.js.map +1 -0
  139. package/lib/commonjs/components/ThemeIcon/index.js +145 -0
  140. package/lib/commonjs/components/ThemeIcon/index.js.map +1 -0
  141. package/lib/commonjs/components/Timeline/index.js +242 -0
  142. package/lib/commonjs/components/Timeline/index.js.map +1 -0
  143. package/lib/commonjs/components/Title/index.js +45 -0
  144. package/lib/commonjs/components/Title/index.js.map +1 -0
  145. package/lib/commonjs/components/Tooltip/index.js +187 -0
  146. package/lib/commonjs/components/Tooltip/index.js.map +1 -0
  147. package/lib/commonjs/components/TransferList/index.js +293 -0
  148. package/lib/commonjs/components/TransferList/index.js.map +1 -0
  149. package/lib/commonjs/components/Transition/index.js +175 -0
  150. package/lib/commonjs/components/Transition/index.js.map +1 -0
  151. package/lib/commonjs/components/index.js +759 -0
  152. package/lib/commonjs/components/index.js.map +1 -1
  153. package/lib/commonjs/theme/create-theme.js +1 -0
  154. package/lib/commonjs/theme/create-theme.js.map +1 -1
  155. package/lib/commonjs/theme/default-theme.js +2 -0
  156. package/lib/commonjs/theme/default-theme.js.map +1 -1
  157. package/lib/commonjs/theme/functions/attach-functions.js +12 -2
  158. package/lib/commonjs/theme/functions/attach-functions.js.map +1 -1
  159. package/lib/commonjs/theme/functions/fns/helpers.js +44 -0
  160. package/lib/commonjs/theme/functions/fns/helpers.js.map +1 -0
  161. package/lib/commonjs/theme/functions/fns/index.js +5 -1
  162. package/lib/commonjs/theme/functions/fns/index.js.map +1 -1
  163. package/lib/commonjs/theme/functions/fns/theme-color/theme-color.js +26 -4
  164. package/lib/commonjs/theme/functions/fns/theme-color/theme-color.js.map +1 -1
  165. package/lib/commonjs/theme/functions/fns/variant.js +89 -2
  166. package/lib/commonjs/theme/functions/fns/variant.js.map +1 -1
  167. package/lib/commonjs/theme/utils/rem.js +8 -6
  168. package/lib/commonjs/theme/utils/rem.js.map +1 -1
  169. package/lib/module/components/Accordion/index.js +246 -0
  170. package/lib/module/components/Accordion/index.js.map +1 -0
  171. package/lib/module/components/ActionIcon/ActionIcon.js +25 -29
  172. package/lib/module/components/ActionIcon/ActionIcon.js.map +1 -1
  173. package/lib/module/components/Anchor/index.js +102 -0
  174. package/lib/module/components/Anchor/index.js.map +1 -0
  175. package/lib/module/components/AspectRatio/index.js +60 -0
  176. package/lib/module/components/AspectRatio/index.js.map +1 -0
  177. package/lib/module/components/Avatar/index.js +123 -0
  178. package/lib/module/components/Avatar/index.js.map +1 -0
  179. package/lib/module/components/BackgroundImage/index.js +50 -0
  180. package/lib/module/components/BackgroundImage/index.js.map +1 -0
  181. package/lib/module/components/Badge/index.js +184 -0
  182. package/lib/module/components/Badge/index.js.map +1 -0
  183. package/lib/module/components/Blockquote/index.js +92 -0
  184. package/lib/module/components/Blockquote/index.js.map +1 -0
  185. package/lib/module/components/BoxView/index.js +66 -2
  186. package/lib/module/components/BoxView/index.js.map +1 -1
  187. package/lib/module/components/Breadcrumbs/index.js +52 -0
  188. package/lib/module/components/Breadcrumbs/index.js.map +1 -0
  189. package/lib/module/components/Burger/index.js +180 -0
  190. package/lib/module/components/Burger/index.js.map +1 -0
  191. package/lib/module/components/Button/Button.styles.js +35 -18
  192. package/lib/module/components/Button/Button.styles.js.map +1 -1
  193. package/lib/module/components/Button/index.js +1 -0
  194. package/lib/module/components/Button/index.js.map +1 -1
  195. package/lib/module/components/Card/index.js +130 -0
  196. package/lib/module/components/Card/index.js.map +1 -0
  197. package/lib/module/components/Center/index.js +30 -0
  198. package/lib/module/components/Center/index.js.map +1 -0
  199. package/lib/module/components/Checkbox/index.js +134 -0
  200. package/lib/module/components/Checkbox/index.js.map +1 -0
  201. package/lib/module/components/Chip/index.js +263 -0
  202. package/lib/module/components/Chip/index.js.map +1 -0
  203. package/lib/module/components/CloseButton/index.js +132 -0
  204. package/lib/module/components/CloseButton/index.js.map +1 -0
  205. package/lib/module/components/Code/index.js +62 -0
  206. package/lib/module/components/Code/index.js.map +1 -0
  207. package/lib/module/components/Collapse/index.js +77 -0
  208. package/lib/module/components/Collapse/index.js.map +1 -0
  209. package/lib/module/components/ColorSwatch/index.js +90 -0
  210. package/lib/module/components/ColorSwatch/index.js.map +1 -0
  211. package/lib/module/components/Container/index.js +65 -0
  212. package/lib/module/components/Container/index.js.map +1 -0
  213. package/lib/module/components/CopyButton/index.js +48 -0
  214. package/lib/module/components/CopyButton/index.js.map +1 -0
  215. package/lib/module/components/Dialog/index.js +134 -0
  216. package/lib/module/components/Dialog/index.js.map +1 -0
  217. package/lib/module/components/Divider/index.js +142 -0
  218. package/lib/module/components/Divider/index.js.map +1 -0
  219. package/lib/module/components/Drawer/index.js +246 -0
  220. package/lib/module/components/Drawer/index.js.map +1 -0
  221. package/lib/module/components/Flex/index.js +57 -0
  222. package/lib/module/components/Flex/index.js.map +1 -0
  223. package/lib/module/components/Grid/index.js +139 -0
  224. package/lib/module/components/Grid/index.js.map +1 -0
  225. package/lib/module/components/Group/index.js +22 -1
  226. package/lib/module/components/Group/index.js.map +1 -1
  227. package/lib/module/components/Highlight/index.js +70 -0
  228. package/lib/module/components/Highlight/index.js.map +1 -0
  229. package/lib/module/components/Image/index.js +127 -0
  230. package/lib/module/components/Image/index.js.map +1 -0
  231. package/lib/module/components/Indicator/index.js +193 -0
  232. package/lib/module/components/Indicator/index.js.map +1 -0
  233. package/lib/module/components/Kbd/index.js +90 -0
  234. package/lib/module/components/Kbd/index.js.map +1 -0
  235. package/lib/module/components/List/index.js +211 -0
  236. package/lib/module/components/List/index.js.map +1 -0
  237. package/lib/module/components/Loader/Loader.js +26 -19
  238. package/lib/module/components/Loader/Loader.js.map +1 -1
  239. package/lib/module/components/LoadingOverlay/index.js +80 -0
  240. package/lib/module/components/LoadingOverlay/index.js.map +1 -0
  241. package/lib/module/components/Mark/index.js +41 -0
  242. package/lib/module/components/Mark/index.js.map +1 -0
  243. package/lib/module/components/MediaQuery/index.js +82 -0
  244. package/lib/module/components/MediaQuery/index.js.map +1 -0
  245. package/lib/module/components/Menu/index.js +300 -0
  246. package/lib/module/components/Menu/index.js.map +1 -0
  247. package/lib/module/components/Modal/index.js +230 -0
  248. package/lib/module/components/Modal/index.js.map +1 -0
  249. package/lib/module/components/MultiSelect/index.js +294 -0
  250. package/lib/module/components/MultiSelect/index.js.map +1 -0
  251. package/lib/module/components/NativeSelect/index.js +289 -0
  252. package/lib/module/components/NativeSelect/index.js.map +1 -0
  253. package/lib/module/components/NavLink/index.js +158 -0
  254. package/lib/module/components/NavLink/index.js.map +1 -0
  255. package/lib/module/components/Notification/index.js +137 -0
  256. package/lib/module/components/Notification/index.js.map +1 -0
  257. package/lib/module/components/NumberInput/index.js +262 -0
  258. package/lib/module/components/NumberInput/index.js.map +1 -0
  259. package/lib/module/components/Overlay/index.js +72 -0
  260. package/lib/module/components/Overlay/index.js.map +1 -0
  261. package/lib/module/components/Pagination/index.js +248 -0
  262. package/lib/module/components/Pagination/index.js.map +1 -0
  263. package/lib/module/components/Paper/index.js +150 -0
  264. package/lib/module/components/Paper/index.js.map +1 -0
  265. package/lib/module/components/PasswordInput/index.js +62 -0
  266. package/lib/module/components/PasswordInput/index.js.map +1 -0
  267. package/lib/module/components/PinInput/index.js +182 -0
  268. package/lib/module/components/PinInput/index.js.map +1 -0
  269. package/lib/module/components/Popover/index.js +157 -0
  270. package/lib/module/components/Popover/index.js.map +1 -0
  271. package/lib/module/components/Portal/index.js +62 -0
  272. package/lib/module/components/Portal/index.js.map +1 -0
  273. package/lib/module/components/Progress/index.js +120 -0
  274. package/lib/module/components/Progress/index.js.map +1 -0
  275. package/lib/module/components/Radio/index.js +130 -0
  276. package/lib/module/components/Radio/index.js.map +1 -0
  277. package/lib/module/components/Rating/index.js +146 -0
  278. package/lib/module/components/Rating/index.js.map +1 -0
  279. package/lib/module/components/RingProgress/index.js +169 -0
  280. package/lib/module/components/RingProgress/index.js.map +1 -0
  281. package/lib/module/components/SegmentedControl/index.js +220 -0
  282. package/lib/module/components/SegmentedControl/index.js.map +1 -0
  283. package/lib/module/components/Select/index.js +239 -0
  284. package/lib/module/components/Select/index.js.map +1 -0
  285. package/lib/module/components/SimpleGrid/index.js +96 -0
  286. package/lib/module/components/SimpleGrid/index.js.map +1 -0
  287. package/lib/module/components/Skeleton/index.js +106 -0
  288. package/lib/module/components/Skeleton/index.js.map +1 -0
  289. package/lib/module/components/Slider/index.js +270 -0
  290. package/lib/module/components/Slider/index.js.map +1 -0
  291. package/lib/module/components/Space/index.js +41 -0
  292. package/lib/module/components/Space/index.js.map +1 -0
  293. package/lib/module/components/Spoiler/index.js +104 -0
  294. package/lib/module/components/Spoiler/index.js.map +1 -0
  295. package/lib/module/components/Stepper/index.js +270 -0
  296. package/lib/module/components/Stepper/index.js.map +1 -0
  297. package/lib/module/components/Switch/index.js +113 -0
  298. package/lib/module/components/Switch/index.js.map +1 -0
  299. package/lib/module/components/Table/index.js +308 -0
  300. package/lib/module/components/Table/index.js.map +1 -0
  301. package/lib/module/components/Text/index.js +7 -2
  302. package/lib/module/components/Text/index.js.map +1 -1
  303. package/lib/module/components/TextInput/index.js +179 -0
  304. package/lib/module/components/TextInput/index.js.map +1 -0
  305. package/lib/module/components/Textarea/index.js +50 -0
  306. package/lib/module/components/Textarea/index.js.map +1 -0
  307. package/lib/module/components/ThemeIcon/index.js +140 -0
  308. package/lib/module/components/ThemeIcon/index.js.map +1 -0
  309. package/lib/module/components/Timeline/index.js +236 -0
  310. package/lib/module/components/Timeline/index.js.map +1 -0
  311. package/lib/module/components/Title/index.js +39 -0
  312. package/lib/module/components/Title/index.js.map +1 -0
  313. package/lib/module/components/Tooltip/index.js +181 -0
  314. package/lib/module/components/Tooltip/index.js.map +1 -0
  315. package/lib/module/components/TransferList/index.js +287 -0
  316. package/lib/module/components/TransferList/index.js.map +1 -0
  317. package/lib/module/components/Transition/index.js +169 -0
  318. package/lib/module/components/Transition/index.js.map +1 -0
  319. package/lib/module/components/index.js +101 -0
  320. package/lib/module/components/index.js.map +1 -1
  321. package/lib/module/theme/create-theme.js +1 -0
  322. package/lib/module/theme/create-theme.js.map +1 -1
  323. package/lib/module/theme/default-theme.js +2 -0
  324. package/lib/module/theme/default-theme.js.map +1 -1
  325. package/lib/module/theme/functions/attach-functions.js +12 -2
  326. package/lib/module/theme/functions/attach-functions.js.map +1 -1
  327. package/lib/module/theme/functions/fns/helpers.js +34 -0
  328. package/lib/module/theme/functions/fns/helpers.js.map +1 -0
  329. package/lib/module/theme/functions/fns/index.js +3 -1
  330. package/lib/module/theme/functions/fns/index.js.map +1 -1
  331. package/lib/module/theme/functions/fns/theme-color/theme-color.js +26 -4
  332. package/lib/module/theme/functions/fns/theme-color/theme-color.js.map +1 -1
  333. package/lib/module/theme/functions/fns/variant.js +89 -2
  334. package/lib/module/theme/functions/fns/variant.js.map +1 -1
  335. package/lib/module/theme/utils/rem.js +8 -6
  336. package/lib/module/theme/utils/rem.js.map +1 -1
  337. package/lib/typescript/commonjs/src/components/Accordion/index.d.ts +54 -0
  338. package/lib/typescript/commonjs/src/components/Accordion/index.d.ts.map +1 -0
  339. package/lib/typescript/commonjs/src/components/ActionIcon/ActionIcon.d.ts +4 -4
  340. package/lib/typescript/commonjs/src/components/ActionIcon/ActionIcon.d.ts.map +1 -1
  341. package/lib/typescript/commonjs/src/components/Anchor/index.d.ts +25 -0
  342. package/lib/typescript/commonjs/src/components/Anchor/index.d.ts.map +1 -0
  343. package/lib/typescript/commonjs/src/components/AspectRatio/index.d.ts +12 -0
  344. package/lib/typescript/commonjs/src/components/AspectRatio/index.d.ts.map +1 -0
  345. package/lib/typescript/commonjs/src/components/Avatar/index.d.ts +23 -0
  346. package/lib/typescript/commonjs/src/components/Avatar/index.d.ts.map +1 -0
  347. package/lib/typescript/commonjs/src/components/BackgroundImage/index.d.ts +15 -0
  348. package/lib/typescript/commonjs/src/components/BackgroundImage/index.d.ts.map +1 -0
  349. package/lib/typescript/commonjs/src/components/Badge/index.d.ts +24 -0
  350. package/lib/typescript/commonjs/src/components/Badge/index.d.ts.map +1 -0
  351. package/lib/typescript/commonjs/src/components/Blockquote/index.d.ts +18 -0
  352. package/lib/typescript/commonjs/src/components/Blockquote/index.d.ts.map +1 -0
  353. package/lib/typescript/commonjs/src/components/BoxView/index.d.ts +28 -0
  354. package/lib/typescript/commonjs/src/components/BoxView/index.d.ts.map +1 -1
  355. package/lib/typescript/commonjs/src/components/Breadcrumbs/index.d.ts +12 -0
  356. package/lib/typescript/commonjs/src/components/Breadcrumbs/index.d.ts.map +1 -0
  357. package/lib/typescript/commonjs/src/components/Burger/index.d.ts +21 -0
  358. package/lib/typescript/commonjs/src/components/Burger/index.d.ts.map +1 -0
  359. package/lib/typescript/commonjs/src/components/Button/Button.styles.d.ts +5 -0
  360. package/lib/typescript/commonjs/src/components/Button/Button.styles.d.ts.map +1 -1
  361. package/lib/typescript/commonjs/src/components/Button/index.d.ts +1 -0
  362. package/lib/typescript/commonjs/src/components/Button/index.d.ts.map +1 -1
  363. package/lib/typescript/commonjs/src/components/Card/index.d.ts +24 -0
  364. package/lib/typescript/commonjs/src/components/Card/index.d.ts.map +1 -0
  365. package/lib/typescript/commonjs/src/components/Center/index.d.ts +15 -0
  366. package/lib/typescript/commonjs/src/components/Center/index.d.ts.map +1 -0
  367. package/lib/typescript/commonjs/src/components/Checkbox/index.d.ts +24 -0
  368. package/lib/typescript/commonjs/src/components/Checkbox/index.d.ts.map +1 -0
  369. package/lib/typescript/commonjs/src/components/Chip/index.d.ts +51 -0
  370. package/lib/typescript/commonjs/src/components/Chip/index.d.ts.map +1 -0
  371. package/lib/typescript/commonjs/src/components/CloseButton/index.d.ts +22 -0
  372. package/lib/typescript/commonjs/src/components/CloseButton/index.d.ts.map +1 -0
  373. package/lib/typescript/commonjs/src/components/Code/index.d.ts +15 -0
  374. package/lib/typescript/commonjs/src/components/Code/index.d.ts.map +1 -0
  375. package/lib/typescript/commonjs/src/components/Collapse/index.d.ts +20 -0
  376. package/lib/typescript/commonjs/src/components/Collapse/index.d.ts.map +1 -0
  377. package/lib/typescript/commonjs/src/components/ColorSwatch/index.d.ts +20 -0
  378. package/lib/typescript/commonjs/src/components/ColorSwatch/index.d.ts.map +1 -0
  379. package/lib/typescript/commonjs/src/components/Container/index.d.ts +20 -0
  380. package/lib/typescript/commonjs/src/components/Container/index.d.ts.map +1 -0
  381. package/lib/typescript/commonjs/src/components/CopyButton/index.d.ts +15 -0
  382. package/lib/typescript/commonjs/src/components/CopyButton/index.d.ts.map +1 -0
  383. package/lib/typescript/commonjs/src/components/Dialog/index.d.ts +31 -0
  384. package/lib/typescript/commonjs/src/components/Dialog/index.d.ts.map +1 -0
  385. package/lib/typescript/commonjs/src/components/Divider/index.d.ts +20 -0
  386. package/lib/typescript/commonjs/src/components/Divider/index.d.ts.map +1 -0
  387. package/lib/typescript/commonjs/src/components/Drawer/index.d.ts +36 -0
  388. package/lib/typescript/commonjs/src/components/Drawer/index.d.ts.map +1 -0
  389. package/lib/typescript/commonjs/src/components/Flex/index.d.ts +27 -0
  390. package/lib/typescript/commonjs/src/components/Flex/index.d.ts.map +1 -0
  391. package/lib/typescript/commonjs/src/components/Grid/index.d.ts +38 -0
  392. package/lib/typescript/commonjs/src/components/Grid/index.d.ts.map +1 -0
  393. package/lib/typescript/commonjs/src/components/Group/index.d.ts +2 -1
  394. package/lib/typescript/commonjs/src/components/Group/index.d.ts.map +1 -1
  395. package/lib/typescript/commonjs/src/components/Highlight/index.d.ts +19 -0
  396. package/lib/typescript/commonjs/src/components/Highlight/index.d.ts.map +1 -0
  397. package/lib/typescript/commonjs/src/components/Image/index.d.ts +31 -0
  398. package/lib/typescript/commonjs/src/components/Image/index.d.ts.map +1 -0
  399. package/lib/typescript/commonjs/src/components/Indicator/index.d.ts +32 -0
  400. package/lib/typescript/commonjs/src/components/Indicator/index.d.ts.map +1 -0
  401. package/lib/typescript/commonjs/src/components/Input/Input.styles.d.ts +5 -5
  402. package/lib/typescript/commonjs/src/components/Kbd/index.d.ts +12 -0
  403. package/lib/typescript/commonjs/src/components/Kbd/index.d.ts.map +1 -0
  404. package/lib/typescript/commonjs/src/components/List/index.d.ts +42 -0
  405. package/lib/typescript/commonjs/src/components/List/index.d.ts.map +1 -0
  406. package/lib/typescript/commonjs/src/components/Loader/Loader.d.ts.map +1 -1
  407. package/lib/typescript/commonjs/src/components/LoadingOverlay/index.d.ts +23 -0
  408. package/lib/typescript/commonjs/src/components/LoadingOverlay/index.d.ts.map +1 -0
  409. package/lib/typescript/commonjs/src/components/Mark/index.d.ts +14 -0
  410. package/lib/typescript/commonjs/src/components/Mark/index.d.ts.map +1 -0
  411. package/lib/typescript/commonjs/src/components/MediaQuery/index.d.ts +24 -0
  412. package/lib/typescript/commonjs/src/components/MediaQuery/index.d.ts.map +1 -0
  413. package/lib/typescript/commonjs/src/components/Menu/index.d.ts +64 -0
  414. package/lib/typescript/commonjs/src/components/Menu/index.d.ts.map +1 -0
  415. package/lib/typescript/commonjs/src/components/Modal/index.d.ts +40 -0
  416. package/lib/typescript/commonjs/src/components/Modal/index.d.ts.map +1 -0
  417. package/lib/typescript/commonjs/src/components/MultiSelect/index.d.ts +53 -0
  418. package/lib/typescript/commonjs/src/components/MultiSelect/index.d.ts.map +1 -0
  419. package/lib/typescript/commonjs/src/components/NativeSelect/index.d.ts +45 -0
  420. package/lib/typescript/commonjs/src/components/NativeSelect/index.d.ts.map +1 -0
  421. package/lib/typescript/commonjs/src/components/NavLink/index.d.ts +30 -0
  422. package/lib/typescript/commonjs/src/components/NavLink/index.d.ts.map +1 -0
  423. package/lib/typescript/commonjs/src/components/Notification/index.d.ts +28 -0
  424. package/lib/typescript/commonjs/src/components/Notification/index.d.ts.map +1 -0
  425. package/lib/typescript/commonjs/src/components/NumberInput/index.d.ts +47 -0
  426. package/lib/typescript/commonjs/src/components/NumberInput/index.d.ts.map +1 -0
  427. package/lib/typescript/commonjs/src/components/Overlay/index.d.ts +24 -0
  428. package/lib/typescript/commonjs/src/components/Overlay/index.d.ts.map +1 -0
  429. package/lib/typescript/commonjs/src/components/Pagination/index.d.ts +37 -0
  430. package/lib/typescript/commonjs/src/components/Pagination/index.d.ts.map +1 -0
  431. package/lib/typescript/commonjs/src/components/Paper/index.d.ts +18 -0
  432. package/lib/typescript/commonjs/src/components/Paper/index.d.ts.map +1 -0
  433. package/lib/typescript/commonjs/src/components/PasswordInput/index.d.ts +15 -0
  434. package/lib/typescript/commonjs/src/components/PasswordInput/index.d.ts.map +1 -0
  435. package/lib/typescript/commonjs/src/components/PinInput/index.d.ts +33 -0
  436. package/lib/typescript/commonjs/src/components/PinInput/index.d.ts.map +1 -0
  437. package/lib/typescript/commonjs/src/components/Popover/index.d.ts +44 -0
  438. package/lib/typescript/commonjs/src/components/Popover/index.d.ts.map +1 -0
  439. package/lib/typescript/commonjs/src/components/Portal/index.d.ts +10 -0
  440. package/lib/typescript/commonjs/src/components/Portal/index.d.ts.map +1 -0
  441. package/lib/typescript/commonjs/src/components/Progress/index.d.ts +29 -0
  442. package/lib/typescript/commonjs/src/components/Progress/index.d.ts.map +1 -0
  443. package/lib/typescript/commonjs/src/components/Radio/index.d.ts +24 -0
  444. package/lib/typescript/commonjs/src/components/Radio/index.d.ts.map +1 -0
  445. package/lib/typescript/commonjs/src/components/Rating/index.d.ts +32 -0
  446. package/lib/typescript/commonjs/src/components/Rating/index.d.ts.map +1 -0
  447. package/lib/typescript/commonjs/src/components/RingProgress/index.d.ts +61 -0
  448. package/lib/typescript/commonjs/src/components/RingProgress/index.d.ts.map +1 -0
  449. package/lib/typescript/commonjs/src/components/SegmentedControl/index.d.ts +35 -0
  450. package/lib/typescript/commonjs/src/components/SegmentedControl/index.d.ts.map +1 -0
  451. package/lib/typescript/commonjs/src/components/Select/index.d.ts +53 -0
  452. package/lib/typescript/commonjs/src/components/Select/index.d.ts.map +1 -0
  453. package/lib/typescript/commonjs/src/components/SimpleGrid/index.d.ts +22 -0
  454. package/lib/typescript/commonjs/src/components/SimpleGrid/index.d.ts.map +1 -0
  455. package/lib/typescript/commonjs/src/components/Skeleton/index.d.ts +22 -0
  456. package/lib/typescript/commonjs/src/components/Skeleton/index.d.ts.map +1 -0
  457. package/lib/typescript/commonjs/src/components/Slider/index.d.ts +43 -0
  458. package/lib/typescript/commonjs/src/components/Slider/index.d.ts.map +1 -0
  459. package/lib/typescript/commonjs/src/components/Space/index.d.ts +13 -0
  460. package/lib/typescript/commonjs/src/components/Space/index.d.ts.map +1 -0
  461. package/lib/typescript/commonjs/src/components/Spoiler/index.d.ts +22 -0
  462. package/lib/typescript/commonjs/src/components/Spoiler/index.d.ts.map +1 -0
  463. package/lib/typescript/commonjs/src/components/Stepper/index.d.ts +55 -0
  464. package/lib/typescript/commonjs/src/components/Stepper/index.d.ts.map +1 -0
  465. package/lib/typescript/commonjs/src/components/Switch/index.d.ts +24 -0
  466. package/lib/typescript/commonjs/src/components/Switch/index.d.ts.map +1 -0
  467. package/lib/typescript/commonjs/src/components/Table/index.d.ts +72 -0
  468. package/lib/typescript/commonjs/src/components/Table/index.d.ts.map +1 -0
  469. package/lib/typescript/commonjs/src/components/Text/index.d.ts +4 -0
  470. package/lib/typescript/commonjs/src/components/Text/index.d.ts.map +1 -1
  471. package/lib/typescript/commonjs/src/components/TextInput/index.d.ts +31 -0
  472. package/lib/typescript/commonjs/src/components/TextInput/index.d.ts.map +1 -0
  473. package/lib/typescript/commonjs/src/components/Textarea/index.d.ts +12 -0
  474. package/lib/typescript/commonjs/src/components/Textarea/index.d.ts.map +1 -0
  475. package/lib/typescript/commonjs/src/components/ThemeIcon/index.d.ts +21 -0
  476. package/lib/typescript/commonjs/src/components/ThemeIcon/index.d.ts.map +1 -0
  477. package/lib/typescript/commonjs/src/components/Timeline/index.d.ts +52 -0
  478. package/lib/typescript/commonjs/src/components/Timeline/index.d.ts.map +1 -0
  479. package/lib/typescript/commonjs/src/components/Title/index.d.ts +14 -0
  480. package/lib/typescript/commonjs/src/components/Title/index.d.ts.map +1 -0
  481. package/lib/typescript/commonjs/src/components/Tooltip/index.d.ts +36 -0
  482. package/lib/typescript/commonjs/src/components/Tooltip/index.d.ts.map +1 -0
  483. package/lib/typescript/commonjs/src/components/TransferList/index.d.ts +42 -0
  484. package/lib/typescript/commonjs/src/components/TransferList/index.d.ts.map +1 -0
  485. package/lib/typescript/commonjs/src/components/Transition/index.d.ts +25 -0
  486. package/lib/typescript/commonjs/src/components/Transition/index.d.ts.map +1 -0
  487. package/lib/typescript/commonjs/src/components/index.d.ts +69 -0
  488. package/lib/typescript/commonjs/src/components/index.d.ts.map +1 -1
  489. package/lib/typescript/commonjs/src/theme/create-theme.d.ts.map +1 -1
  490. package/lib/typescript/commonjs/src/theme/default-theme.d.ts +20 -0
  491. package/lib/typescript/commonjs/src/theme/default-theme.d.ts.map +1 -1
  492. package/lib/typescript/commonjs/src/theme/functions/attach-functions.d.ts.map +1 -1
  493. package/lib/typescript/commonjs/src/theme/functions/fns/helpers.d.ts +23 -0
  494. package/lib/typescript/commonjs/src/theme/functions/fns/helpers.d.ts.map +1 -0
  495. package/lib/typescript/commonjs/src/theme/functions/fns/index.d.ts +22 -1
  496. package/lib/typescript/commonjs/src/theme/functions/fns/index.d.ts.map +1 -1
  497. package/lib/typescript/commonjs/src/theme/functions/fns/theme-color/theme-color.d.ts +8 -1
  498. package/lib/typescript/commonjs/src/theme/functions/fns/theme-color/theme-color.d.ts.map +1 -1
  499. package/lib/typescript/commonjs/src/theme/functions/fns/variant.d.ts +19 -1
  500. package/lib/typescript/commonjs/src/theme/functions/fns/variant.d.ts.map +1 -1
  501. package/lib/typescript/commonjs/src/theme/utils/rem.d.ts +2 -2
  502. package/lib/typescript/commonjs/src/theme/utils/rem.d.ts.map +1 -1
  503. package/lib/typescript/module/src/components/Accordion/index.d.ts +54 -0
  504. package/lib/typescript/module/src/components/Accordion/index.d.ts.map +1 -0
  505. package/lib/typescript/module/src/components/ActionIcon/ActionIcon.d.ts +4 -4
  506. package/lib/typescript/module/src/components/ActionIcon/ActionIcon.d.ts.map +1 -1
  507. package/lib/typescript/module/src/components/Anchor/index.d.ts +25 -0
  508. package/lib/typescript/module/src/components/Anchor/index.d.ts.map +1 -0
  509. package/lib/typescript/module/src/components/AspectRatio/index.d.ts +12 -0
  510. package/lib/typescript/module/src/components/AspectRatio/index.d.ts.map +1 -0
  511. package/lib/typescript/module/src/components/Avatar/index.d.ts +23 -0
  512. package/lib/typescript/module/src/components/Avatar/index.d.ts.map +1 -0
  513. package/lib/typescript/module/src/components/BackgroundImage/index.d.ts +15 -0
  514. package/lib/typescript/module/src/components/BackgroundImage/index.d.ts.map +1 -0
  515. package/lib/typescript/module/src/components/Badge/index.d.ts +24 -0
  516. package/lib/typescript/module/src/components/Badge/index.d.ts.map +1 -0
  517. package/lib/typescript/module/src/components/Blockquote/index.d.ts +18 -0
  518. package/lib/typescript/module/src/components/Blockquote/index.d.ts.map +1 -0
  519. package/lib/typescript/module/src/components/BoxView/index.d.ts +28 -0
  520. package/lib/typescript/module/src/components/BoxView/index.d.ts.map +1 -1
  521. package/lib/typescript/module/src/components/Breadcrumbs/index.d.ts +12 -0
  522. package/lib/typescript/module/src/components/Breadcrumbs/index.d.ts.map +1 -0
  523. package/lib/typescript/module/src/components/Burger/index.d.ts +21 -0
  524. package/lib/typescript/module/src/components/Burger/index.d.ts.map +1 -0
  525. package/lib/typescript/module/src/components/Button/Button.styles.d.ts +5 -0
  526. package/lib/typescript/module/src/components/Button/Button.styles.d.ts.map +1 -1
  527. package/lib/typescript/module/src/components/Button/index.d.ts +1 -0
  528. package/lib/typescript/module/src/components/Button/index.d.ts.map +1 -1
  529. package/lib/typescript/module/src/components/Card/index.d.ts +24 -0
  530. package/lib/typescript/module/src/components/Card/index.d.ts.map +1 -0
  531. package/lib/typescript/module/src/components/Center/index.d.ts +15 -0
  532. package/lib/typescript/module/src/components/Center/index.d.ts.map +1 -0
  533. package/lib/typescript/module/src/components/Checkbox/index.d.ts +24 -0
  534. package/lib/typescript/module/src/components/Checkbox/index.d.ts.map +1 -0
  535. package/lib/typescript/module/src/components/Chip/index.d.ts +51 -0
  536. package/lib/typescript/module/src/components/Chip/index.d.ts.map +1 -0
  537. package/lib/typescript/module/src/components/CloseButton/index.d.ts +22 -0
  538. package/lib/typescript/module/src/components/CloseButton/index.d.ts.map +1 -0
  539. package/lib/typescript/module/src/components/Code/index.d.ts +15 -0
  540. package/lib/typescript/module/src/components/Code/index.d.ts.map +1 -0
  541. package/lib/typescript/module/src/components/Collapse/index.d.ts +20 -0
  542. package/lib/typescript/module/src/components/Collapse/index.d.ts.map +1 -0
  543. package/lib/typescript/module/src/components/ColorSwatch/index.d.ts +20 -0
  544. package/lib/typescript/module/src/components/ColorSwatch/index.d.ts.map +1 -0
  545. package/lib/typescript/module/src/components/Container/index.d.ts +20 -0
  546. package/lib/typescript/module/src/components/Container/index.d.ts.map +1 -0
  547. package/lib/typescript/module/src/components/CopyButton/index.d.ts +15 -0
  548. package/lib/typescript/module/src/components/CopyButton/index.d.ts.map +1 -0
  549. package/lib/typescript/module/src/components/Dialog/index.d.ts +31 -0
  550. package/lib/typescript/module/src/components/Dialog/index.d.ts.map +1 -0
  551. package/lib/typescript/module/src/components/Divider/index.d.ts +20 -0
  552. package/lib/typescript/module/src/components/Divider/index.d.ts.map +1 -0
  553. package/lib/typescript/module/src/components/Drawer/index.d.ts +36 -0
  554. package/lib/typescript/module/src/components/Drawer/index.d.ts.map +1 -0
  555. package/lib/typescript/module/src/components/Flex/index.d.ts +27 -0
  556. package/lib/typescript/module/src/components/Flex/index.d.ts.map +1 -0
  557. package/lib/typescript/module/src/components/Grid/index.d.ts +38 -0
  558. package/lib/typescript/module/src/components/Grid/index.d.ts.map +1 -0
  559. package/lib/typescript/module/src/components/Group/index.d.ts +2 -1
  560. package/lib/typescript/module/src/components/Group/index.d.ts.map +1 -1
  561. package/lib/typescript/module/src/components/Highlight/index.d.ts +19 -0
  562. package/lib/typescript/module/src/components/Highlight/index.d.ts.map +1 -0
  563. package/lib/typescript/module/src/components/Image/index.d.ts +31 -0
  564. package/lib/typescript/module/src/components/Image/index.d.ts.map +1 -0
  565. package/lib/typescript/module/src/components/Indicator/index.d.ts +32 -0
  566. package/lib/typescript/module/src/components/Indicator/index.d.ts.map +1 -0
  567. package/lib/typescript/module/src/components/Input/Input.styles.d.ts +5 -5
  568. package/lib/typescript/module/src/components/Kbd/index.d.ts +12 -0
  569. package/lib/typescript/module/src/components/Kbd/index.d.ts.map +1 -0
  570. package/lib/typescript/module/src/components/List/index.d.ts +42 -0
  571. package/lib/typescript/module/src/components/List/index.d.ts.map +1 -0
  572. package/lib/typescript/module/src/components/Loader/Loader.d.ts.map +1 -1
  573. package/lib/typescript/module/src/components/LoadingOverlay/index.d.ts +23 -0
  574. package/lib/typescript/module/src/components/LoadingOverlay/index.d.ts.map +1 -0
  575. package/lib/typescript/module/src/components/Mark/index.d.ts +14 -0
  576. package/lib/typescript/module/src/components/Mark/index.d.ts.map +1 -0
  577. package/lib/typescript/module/src/components/MediaQuery/index.d.ts +24 -0
  578. package/lib/typescript/module/src/components/MediaQuery/index.d.ts.map +1 -0
  579. package/lib/typescript/module/src/components/Menu/index.d.ts +64 -0
  580. package/lib/typescript/module/src/components/Menu/index.d.ts.map +1 -0
  581. package/lib/typescript/module/src/components/Modal/index.d.ts +40 -0
  582. package/lib/typescript/module/src/components/Modal/index.d.ts.map +1 -0
  583. package/lib/typescript/module/src/components/MultiSelect/index.d.ts +53 -0
  584. package/lib/typescript/module/src/components/MultiSelect/index.d.ts.map +1 -0
  585. package/lib/typescript/module/src/components/NativeSelect/index.d.ts +45 -0
  586. package/lib/typescript/module/src/components/NativeSelect/index.d.ts.map +1 -0
  587. package/lib/typescript/module/src/components/NavLink/index.d.ts +30 -0
  588. package/lib/typescript/module/src/components/NavLink/index.d.ts.map +1 -0
  589. package/lib/typescript/module/src/components/Notification/index.d.ts +28 -0
  590. package/lib/typescript/module/src/components/Notification/index.d.ts.map +1 -0
  591. package/lib/typescript/module/src/components/NumberInput/index.d.ts +47 -0
  592. package/lib/typescript/module/src/components/NumberInput/index.d.ts.map +1 -0
  593. package/lib/typescript/module/src/components/Overlay/index.d.ts +24 -0
  594. package/lib/typescript/module/src/components/Overlay/index.d.ts.map +1 -0
  595. package/lib/typescript/module/src/components/Pagination/index.d.ts +37 -0
  596. package/lib/typescript/module/src/components/Pagination/index.d.ts.map +1 -0
  597. package/lib/typescript/module/src/components/Paper/index.d.ts +18 -0
  598. package/lib/typescript/module/src/components/Paper/index.d.ts.map +1 -0
  599. package/lib/typescript/module/src/components/PasswordInput/index.d.ts +15 -0
  600. package/lib/typescript/module/src/components/PasswordInput/index.d.ts.map +1 -0
  601. package/lib/typescript/module/src/components/PinInput/index.d.ts +33 -0
  602. package/lib/typescript/module/src/components/PinInput/index.d.ts.map +1 -0
  603. package/lib/typescript/module/src/components/Popover/index.d.ts +44 -0
  604. package/lib/typescript/module/src/components/Popover/index.d.ts.map +1 -0
  605. package/lib/typescript/module/src/components/Portal/index.d.ts +10 -0
  606. package/lib/typescript/module/src/components/Portal/index.d.ts.map +1 -0
  607. package/lib/typescript/module/src/components/Progress/index.d.ts +29 -0
  608. package/lib/typescript/module/src/components/Progress/index.d.ts.map +1 -0
  609. package/lib/typescript/module/src/components/Radio/index.d.ts +24 -0
  610. package/lib/typescript/module/src/components/Radio/index.d.ts.map +1 -0
  611. package/lib/typescript/module/src/components/Rating/index.d.ts +32 -0
  612. package/lib/typescript/module/src/components/Rating/index.d.ts.map +1 -0
  613. package/lib/typescript/module/src/components/RingProgress/index.d.ts +61 -0
  614. package/lib/typescript/module/src/components/RingProgress/index.d.ts.map +1 -0
  615. package/lib/typescript/module/src/components/SegmentedControl/index.d.ts +35 -0
  616. package/lib/typescript/module/src/components/SegmentedControl/index.d.ts.map +1 -0
  617. package/lib/typescript/module/src/components/Select/index.d.ts +53 -0
  618. package/lib/typescript/module/src/components/Select/index.d.ts.map +1 -0
  619. package/lib/typescript/module/src/components/SimpleGrid/index.d.ts +22 -0
  620. package/lib/typescript/module/src/components/SimpleGrid/index.d.ts.map +1 -0
  621. package/lib/typescript/module/src/components/Skeleton/index.d.ts +22 -0
  622. package/lib/typescript/module/src/components/Skeleton/index.d.ts.map +1 -0
  623. package/lib/typescript/module/src/components/Slider/index.d.ts +43 -0
  624. package/lib/typescript/module/src/components/Slider/index.d.ts.map +1 -0
  625. package/lib/typescript/module/src/components/Space/index.d.ts +13 -0
  626. package/lib/typescript/module/src/components/Space/index.d.ts.map +1 -0
  627. package/lib/typescript/module/src/components/Spoiler/index.d.ts +22 -0
  628. package/lib/typescript/module/src/components/Spoiler/index.d.ts.map +1 -0
  629. package/lib/typescript/module/src/components/Stepper/index.d.ts +55 -0
  630. package/lib/typescript/module/src/components/Stepper/index.d.ts.map +1 -0
  631. package/lib/typescript/module/src/components/Switch/index.d.ts +24 -0
  632. package/lib/typescript/module/src/components/Switch/index.d.ts.map +1 -0
  633. package/lib/typescript/module/src/components/Table/index.d.ts +72 -0
  634. package/lib/typescript/module/src/components/Table/index.d.ts.map +1 -0
  635. package/lib/typescript/module/src/components/Text/index.d.ts +4 -0
  636. package/lib/typescript/module/src/components/Text/index.d.ts.map +1 -1
  637. package/lib/typescript/module/src/components/TextInput/index.d.ts +31 -0
  638. package/lib/typescript/module/src/components/TextInput/index.d.ts.map +1 -0
  639. package/lib/typescript/module/src/components/Textarea/index.d.ts +12 -0
  640. package/lib/typescript/module/src/components/Textarea/index.d.ts.map +1 -0
  641. package/lib/typescript/module/src/components/ThemeIcon/index.d.ts +21 -0
  642. package/lib/typescript/module/src/components/ThemeIcon/index.d.ts.map +1 -0
  643. package/lib/typescript/module/src/components/Timeline/index.d.ts +52 -0
  644. package/lib/typescript/module/src/components/Timeline/index.d.ts.map +1 -0
  645. package/lib/typescript/module/src/components/Title/index.d.ts +14 -0
  646. package/lib/typescript/module/src/components/Title/index.d.ts.map +1 -0
  647. package/lib/typescript/module/src/components/Tooltip/index.d.ts +36 -0
  648. package/lib/typescript/module/src/components/Tooltip/index.d.ts.map +1 -0
  649. package/lib/typescript/module/src/components/TransferList/index.d.ts +42 -0
  650. package/lib/typescript/module/src/components/TransferList/index.d.ts.map +1 -0
  651. package/lib/typescript/module/src/components/Transition/index.d.ts +25 -0
  652. package/lib/typescript/module/src/components/Transition/index.d.ts.map +1 -0
  653. package/lib/typescript/module/src/components/index.d.ts +69 -0
  654. package/lib/typescript/module/src/components/index.d.ts.map +1 -1
  655. package/lib/typescript/module/src/theme/create-theme.d.ts.map +1 -1
  656. package/lib/typescript/module/src/theme/default-theme.d.ts +20 -0
  657. package/lib/typescript/module/src/theme/default-theme.d.ts.map +1 -1
  658. package/lib/typescript/module/src/theme/functions/attach-functions.d.ts.map +1 -1
  659. package/lib/typescript/module/src/theme/functions/fns/helpers.d.ts +23 -0
  660. package/lib/typescript/module/src/theme/functions/fns/helpers.d.ts.map +1 -0
  661. package/lib/typescript/module/src/theme/functions/fns/index.d.ts +22 -1
  662. package/lib/typescript/module/src/theme/functions/fns/index.d.ts.map +1 -1
  663. package/lib/typescript/module/src/theme/functions/fns/theme-color/theme-color.d.ts +8 -1
  664. package/lib/typescript/module/src/theme/functions/fns/theme-color/theme-color.d.ts.map +1 -1
  665. package/lib/typescript/module/src/theme/functions/fns/variant.d.ts +19 -1
  666. package/lib/typescript/module/src/theme/functions/fns/variant.d.ts.map +1 -1
  667. package/lib/typescript/module/src/theme/utils/rem.d.ts +2 -2
  668. package/lib/typescript/module/src/theme/utils/rem.d.ts.map +1 -1
  669. package/package.json +3 -1
  670. package/src/components/Accordion/index.tsx +297 -0
  671. package/src/components/ActionIcon/ActionIcon.tsx +61 -44
  672. package/src/components/Anchor/index.tsx +139 -0
  673. package/src/components/AspectRatio/index.tsx +68 -0
  674. package/src/components/Avatar/index.tsx +164 -0
  675. package/src/components/BackgroundImage/index.tsx +77 -0
  676. package/src/components/Badge/index.tsx +193 -0
  677. package/src/components/Blockquote/index.tsx +104 -0
  678. package/src/components/BoxView/index.tsx +90 -2
  679. package/src/components/Breadcrumbs/index.tsx +64 -0
  680. package/src/components/Burger/index.tsx +230 -0
  681. package/src/components/Button/Button.styles.ts +36 -16
  682. package/src/components/Button/index.tsx +3 -1
  683. package/src/components/Card/index.tsx +166 -0
  684. package/src/components/Center/index.tsx +40 -0
  685. package/src/components/Checkbox/index.tsx +168 -0
  686. package/src/components/Chip/index.tsx +350 -0
  687. package/src/components/CloseButton/index.tsx +154 -0
  688. package/src/components/Code/index.tsx +83 -0
  689. package/src/components/Collapse/index.tsx +108 -0
  690. package/src/components/ColorSwatch/index.tsx +106 -0
  691. package/src/components/Container/index.tsx +92 -0
  692. package/src/components/CopyButton/index.tsx +60 -0
  693. package/src/components/Dialog/index.tsx +189 -0
  694. package/src/components/Divider/index.tsx +161 -0
  695. package/src/components/Drawer/index.tsx +315 -0
  696. package/src/components/Flex/index.tsx +87 -0
  697. package/src/components/Grid/index.tsx +167 -0
  698. package/src/components/Group/index.tsx +24 -5
  699. package/src/components/Highlight/index.tsx +93 -0
  700. package/src/components/Image/index.tsx +180 -0
  701. package/src/components/Indicator/index.tsx +240 -0
  702. package/src/components/Kbd/index.tsx +84 -0
  703. package/src/components/List/index.tsx +294 -0
  704. package/src/components/Loader/Loader.tsx +27 -17
  705. package/src/components/LoadingOverlay/index.tsx +103 -0
  706. package/src/components/Mark/index.tsx +51 -0
  707. package/src/components/MediaQuery/index.tsx +133 -0
  708. package/src/components/Menu/index.tsx +395 -0
  709. package/src/components/Modal/index.tsx +318 -0
  710. package/src/components/MultiSelect/index.tsx +458 -0
  711. package/src/components/NativeSelect/index.tsx +387 -0
  712. package/src/components/NavLink/index.tsx +205 -0
  713. package/src/components/Notification/index.tsx +175 -0
  714. package/src/components/NumberInput/index.tsx +356 -0
  715. package/src/components/Overlay/index.tsx +100 -0
  716. package/src/components/Pagination/index.tsx +336 -0
  717. package/src/components/Paper/index.tsx +155 -0
  718. package/src/components/PasswordInput/index.tsx +78 -0
  719. package/src/components/PinInput/index.tsx +251 -0
  720. package/src/components/Popover/index.tsx +244 -0
  721. package/src/components/Portal/index.tsx +75 -0
  722. package/src/components/Progress/index.tsx +182 -0
  723. package/src/components/Radio/index.tsx +169 -0
  724. package/src/components/Rating/index.tsx +214 -0
  725. package/src/components/RingProgress/index.tsx +206 -0
  726. package/src/components/SegmentedControl/index.tsx +259 -0
  727. package/src/components/Select/index.tsx +377 -0
  728. package/src/components/SimpleGrid/index.tsx +119 -0
  729. package/src/components/Skeleton/index.tsx +149 -0
  730. package/src/components/Slider/index.tsx +338 -0
  731. package/src/components/Space/index.tsx +48 -0
  732. package/src/components/Spoiler/index.tsx +123 -0
  733. package/src/components/Stepper/index.tsx +388 -0
  734. package/src/components/Switch/index.tsx +146 -0
  735. package/src/components/Table/index.tsx +402 -0
  736. package/src/components/Text/index.tsx +6 -1
  737. package/src/components/TextInput/index.tsx +232 -0
  738. package/src/components/Textarea/index.tsx +61 -0
  739. package/src/components/ThemeIcon/index.tsx +167 -0
  740. package/src/components/Timeline/index.tsx +331 -0
  741. package/src/components/Title/index.tsx +53 -0
  742. package/src/components/Tooltip/index.tsx +259 -0
  743. package/src/components/TransferList/index.tsx +399 -0
  744. package/src/components/Transition/index.tsx +225 -0
  745. package/src/components/index.tsx +101 -0
  746. package/src/theme/create-theme.ts +1 -0
  747. package/src/theme/default-theme.ts +24 -0
  748. package/src/theme/functions/attach-functions.ts +8 -1
  749. package/src/theme/functions/fns/helpers.ts +36 -0
  750. package/src/theme/functions/fns/index.ts +2 -0
  751. package/src/theme/functions/fns/theme-color/theme-color.ts +34 -3
  752. package/src/theme/functions/fns/variant.ts +110 -2
  753. package/src/theme/utils/rem.ts +9 -7
@@ -0,0 +1,248 @@
1
+ "use strict";
2
+
3
+ import React, { forwardRef } from 'react';
4
+ import { TouchableOpacity } 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
+ height: rem(24),
14
+ minWidth: rem(24),
15
+ fontSize: rem(10),
16
+ padding: rem(4)
17
+ },
18
+ sm: {
19
+ height: rem(28),
20
+ minWidth: rem(28),
21
+ fontSize: rem(12),
22
+ padding: rem(6)
23
+ },
24
+ md: {
25
+ height: rem(32),
26
+ minWidth: rem(32),
27
+ fontSize: rem(14),
28
+ padding: rem(8)
29
+ },
30
+ lg: {
31
+ height: rem(38),
32
+ minWidth: rem(38),
33
+ fontSize: rem(16),
34
+ padding: rem(10)
35
+ },
36
+ xl: {
37
+ height: rem(44),
38
+ minWidth: rem(44),
39
+ fontSize: rem(18),
40
+ padding: rem(12)
41
+ }
42
+ };
43
+ const useStyles = createStyles((theme, {
44
+ color,
45
+ radius,
46
+ disabled
47
+ }, {
48
+ size
49
+ }) => {
50
+ const colors = theme.colors[color] || theme.colors[theme.primaryColor];
51
+ const sizeStyles = sizes[size] || sizes.md;
52
+ return {
53
+ root: {
54
+ flexDirection: 'row',
55
+ alignItems: 'center',
56
+ opacity: disabled ? 0.5 : 1
57
+ },
58
+ item: {
59
+ height: sizeStyles.height,
60
+ minWidth: sizeStyles.minWidth,
61
+ paddingHorizontal: sizeStyles.padding,
62
+ justifyContent: 'center',
63
+ alignItems: 'center',
64
+ borderRadius: theme.fn.radius(radius),
65
+ marginHorizontal: rem(2),
66
+ borderWidth: 1,
67
+ borderColor: 'transparent'
68
+ },
69
+ itemDefault: {
70
+ backgroundColor: 'transparent',
71
+ borderColor: theme.colorScheme === 'dark' ? theme.colors.dark?.[4] : theme.colors.gray?.[3]
72
+ },
73
+ itemActive: {
74
+ backgroundColor: colors?.[6] || colors?.[5] || theme.primaryBgColor,
75
+ borderColor: colors?.[6] || colors?.[5] || theme.primaryBgColor
76
+ },
77
+ itemControl: {
78
+ backgroundColor: 'transparent'
79
+ },
80
+ label: {
81
+ fontSize: sizeStyles.fontSize,
82
+ fontWeight: '500'
83
+ },
84
+ labelDefault: {
85
+ color: theme.colorScheme === 'dark' ? theme.white : theme.black
86
+ },
87
+ labelActive: {
88
+ color: theme.white
89
+ },
90
+ labelControl: {
91
+ color: theme.colorScheme === 'dark' ? theme.colors.dark?.[1] : theme.colors.gray?.[7]
92
+ },
93
+ labelDisabled: {
94
+ color: theme.colorScheme === 'dark' ? theme.colors.dark?.[3] : theme.colors.gray?.[5]
95
+ },
96
+ dots: {
97
+ paddingHorizontal: rem(8)
98
+ }
99
+ };
100
+ });
101
+ const defaultProps = {
102
+ size: 'md',
103
+ color: 'blue',
104
+ radius: 'sm',
105
+ siblings: 1,
106
+ boundaries: 1,
107
+ withControls: true,
108
+ withEdges: false,
109
+ disabled: false
110
+ };
111
+ const range = (start, end) => {
112
+ const length = end - start + 1;
113
+ return Array.from({
114
+ length
115
+ }, (_, i) => start + i);
116
+ };
117
+ const DOTS = 'dots';
118
+ export const Pagination = /*#__PURE__*/forwardRef((props, ref) => {
119
+ const {
120
+ value: controlledValue,
121
+ defaultValue,
122
+ onChange,
123
+ total,
124
+ size,
125
+ color,
126
+ radius,
127
+ siblings,
128
+ boundaries,
129
+ withControls,
130
+ withEdges,
131
+ disabled,
132
+ previousIcon,
133
+ nextIcon,
134
+ firstIcon,
135
+ lastIcon,
136
+ style,
137
+ ...others
138
+ } = useComponentDefaultProps('Pagination', defaultProps, props);
139
+ const {
140
+ styles,
141
+ sx
142
+ } = useStyles({
143
+ color,
144
+ radius,
145
+ disabled
146
+ }, {
147
+ name: 'Pagination',
148
+ size
149
+ });
150
+ const [uncontrolledValue, setUncontrolledValue] = React.useState(defaultValue ?? 1);
151
+ const value = controlledValue !== undefined ? controlledValue : uncontrolledValue;
152
+ const handlePageChange = page => {
153
+ if (disabled) return;
154
+ if (page < 1 || page > total) return;
155
+ if (controlledValue === undefined) {
156
+ setUncontrolledValue(page);
157
+ }
158
+ onChange?.(page);
159
+ };
160
+ const paginationRange = React.useMemo(() => {
161
+ const totalPageNumbers = siblings * 2 + 3 + boundaries * 2;
162
+ if (totalPageNumbers >= total) {
163
+ return range(1, total);
164
+ }
165
+ const leftSiblingIndex = Math.max(value - siblings, boundaries + 1);
166
+ const rightSiblingIndex = Math.min(value + siblings, total - boundaries);
167
+ const shouldShowLeftDots = leftSiblingIndex > boundaries + 2;
168
+ const shouldShowRightDots = rightSiblingIndex < total - (boundaries + 1);
169
+ if (!shouldShowLeftDots && shouldShowRightDots) {
170
+ const leftItemCount = siblings * 2 + boundaries + 2;
171
+ return [...range(1, leftItemCount), DOTS, ...range(total - (boundaries - 1), total)];
172
+ }
173
+ if (shouldShowLeftDots && !shouldShowRightDots) {
174
+ const rightItemCount = boundaries + 1 + 2 * siblings;
175
+ return [...range(1, boundaries), DOTS, ...range(total - rightItemCount, total)];
176
+ }
177
+ return [...range(1, boundaries), DOTS, ...range(leftSiblingIndex, rightSiblingIndex), DOTS, ...range(total - boundaries + 1, total)];
178
+ }, [total, value, siblings, boundaries]);
179
+ const renderItem = (page, index) => {
180
+ if (page === DOTS) {
181
+ return /*#__PURE__*/_jsx(BoxView, {
182
+ style: styles.dots,
183
+ children: /*#__PURE__*/_jsx(Text, {
184
+ style: [styles.label, styles.labelDefault],
185
+ children: "..."
186
+ })
187
+ }, `dots-${index}`);
188
+ }
189
+ const pageNumber = page;
190
+ const isActive = pageNumber === value;
191
+ return /*#__PURE__*/_jsx(TouchableOpacity, {
192
+ style: [styles.item, isActive ? styles.itemActive : styles.itemDefault],
193
+ onPress: () => handlePageChange(pageNumber),
194
+ disabled: disabled,
195
+ activeOpacity: 0.7,
196
+ children: /*#__PURE__*/_jsx(Text, {
197
+ style: [styles.label, isActive ? styles.labelActive : styles.labelDefault],
198
+ children: pageNumber
199
+ })
200
+ }, pageNumber);
201
+ };
202
+ const canGoPrevious = value > 1;
203
+ const canGoNext = value < total;
204
+ return /*#__PURE__*/_jsxs(BoxView, {
205
+ ref: ref,
206
+ style: sx(styles.root, style),
207
+ ...others,
208
+ children: [withEdges && /*#__PURE__*/_jsx(TouchableOpacity, {
209
+ style: [styles.item, styles.itemControl],
210
+ onPress: () => handlePageChange(1),
211
+ disabled: disabled || !canGoPrevious,
212
+ activeOpacity: 0.7,
213
+ children: /*#__PURE__*/_jsx(Text, {
214
+ style: [styles.label, styles.labelControl, (!canGoPrevious || disabled) && styles.labelDisabled],
215
+ children: firstIcon || '<<'
216
+ })
217
+ }), withControls && /*#__PURE__*/_jsx(TouchableOpacity, {
218
+ style: [styles.item, styles.itemControl],
219
+ onPress: () => handlePageChange(value - 1),
220
+ disabled: disabled || !canGoPrevious,
221
+ activeOpacity: 0.7,
222
+ children: /*#__PURE__*/_jsx(Text, {
223
+ style: [styles.label, styles.labelControl, (!canGoPrevious || disabled) && styles.labelDisabled],
224
+ children: previousIcon || '<'
225
+ })
226
+ }), paginationRange.map(renderItem), withControls && /*#__PURE__*/_jsx(TouchableOpacity, {
227
+ style: [styles.item, styles.itemControl],
228
+ onPress: () => handlePageChange(value + 1),
229
+ disabled: disabled || !canGoNext,
230
+ activeOpacity: 0.7,
231
+ children: /*#__PURE__*/_jsx(Text, {
232
+ style: [styles.label, styles.labelControl, (!canGoNext || disabled) && styles.labelDisabled],
233
+ children: nextIcon || '>'
234
+ })
235
+ }), withEdges && /*#__PURE__*/_jsx(TouchableOpacity, {
236
+ style: [styles.item, styles.itemControl],
237
+ onPress: () => handlePageChange(total),
238
+ disabled: disabled || !canGoNext,
239
+ activeOpacity: 0.7,
240
+ children: /*#__PURE__*/_jsx(Text, {
241
+ style: [styles.label, styles.labelControl, (!canGoNext || disabled) && styles.labelDisabled],
242
+ children: lastIcon || '>>'
243
+ })
244
+ })]
245
+ });
246
+ });
247
+ Pagination.displayName = 'Pagination';
248
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","TouchableOpacity","BoxView","Text","useComponentDefaultProps","createStyles","rem","jsx","_jsx","jsxs","_jsxs","sizes","xs","height","minWidth","fontSize","padding","sm","md","lg","xl","useStyles","theme","color","radius","disabled","size","colors","primaryColor","sizeStyles","root","flexDirection","alignItems","opacity","item","paddingHorizontal","justifyContent","borderRadius","fn","marginHorizontal","borderWidth","borderColor","itemDefault","backgroundColor","colorScheme","dark","gray","itemActive","primaryBgColor","itemControl","label","fontWeight","labelDefault","white","black","labelActive","labelControl","labelDisabled","dots","defaultProps","siblings","boundaries","withControls","withEdges","range","start","end","length","Array","from","_","i","DOTS","Pagination","props","ref","value","controlledValue","defaultValue","onChange","total","previousIcon","nextIcon","firstIcon","lastIcon","style","others","styles","sx","name","uncontrolledValue","setUncontrolledValue","useState","undefined","handlePageChange","page","paginationRange","useMemo","totalPageNumbers","leftSiblingIndex","Math","max","rightSiblingIndex","min","shouldShowLeftDots","shouldShowRightDots","leftItemCount","rightItemCount","renderItem","index","children","pageNumber","isActive","onPress","activeOpacity","canGoPrevious","canGoNext","map","displayName"],"sourceRoot":"../../../../src","sources":["components/Pagination/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,gBAAgB,QAAQ,cAAc;AAC/C,SAASC,OAAO,QAAQ,qBAAY;AACpC,SAASC,IAAI,QAAQ,kBAAS;AAE9B,SAASC,wBAAwB,QAAQ,+BAA4B;AACrE,SAASC,YAAY,QAAQ,sBAAa;AAC1C,SAASC,GAAG,QAAQ,0BAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAiD5C,MAAMC,KAAK,GAAG;EACZC,EAAE,EAAE;IAAEC,MAAM,EAAEP,GAAG,CAAC,EAAE,CAAQ;IAAEQ,QAAQ,EAAER,GAAG,CAAC,EAAE,CAAC;IAAES,QAAQ,EAAET,GAAG,CAAC,EAAE,CAAC;IAAEU,OAAO,EAAEV,GAAG,CAAC,CAAC;EAAE,CAAC;EACrFW,EAAE,EAAE;IA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K,EACZqC,MAAM,CAAC/B,YAAY,EACnB,CAAC,CAAC4D,SAAS,IAAI3F,QAAQ,KAAK8D,MAAM,CAAC9B,aAAa,CAChD;QAAAqD,QAAA,EAED5B,QAAQ,IAAI;MAAG,CACZ;IAAC,CACS,CACnB,EAEAnB,SAAS,iBACRvD,IAAA,CAACP,gBAAgB;MACfoF,KAAK,EAAE,CAACE,MAAM,CAACrD,IAAI,EAAEqD,MAAM,CAACtC,WAAW,CAAE;MACzCgE,OAAO,EAAEA,CAAA,KAAMnB,gBAAgB,CAACd,KAAK,CAAE;MACvCvD,QAAQ,EAAEA,QAAQ,IAAI,CAAC2F,SAAU;MACjCF,aAAa,EAAE,GAAI;MAAAJ,QAAA,eAEnBtG,IAAA,CAACL,IAAI;QACHkF,KAAK,EAAE,CACLE,MAAM,CAACrC,KAAK,EACZqC,MAAM,CAAC/B,YAAY,EACnB,CAAC,CAAC4D,SAAS,IAAI3F,QAAQ,KAAK8D,MAAM,CAAC9B,aAAa,CAChD;QAAAqD,QAAA,EAED1B,QAAQ,IAAI;MAAI,CACb;IAAC,CACS,CACnB;EAAA,CACM,CAAC;AAEd,CAAC,CAAC;AAEFX,UAAU,CAAC6C,WAAW,GAAG,YAAY","ignoreList":[]}
@@ -0,0 +1,150 @@
1
+ "use strict";
2
+
3
+ import React, { forwardRef } from 'react';
4
+ import { Platform } from 'react-native';
5
+ import { BoxView } from "../BoxView/index.js";
6
+ import { useComponentDefaultProps } from "../../theme/theme-provider.js";
7
+ import { createStyles } from "../../theme/index.js";
8
+ import { rem } from "../../theme/utils/rem.js";
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ const shadows = {
11
+ xs: {
12
+ ios: {
13
+ shadowColor: '#000',
14
+ shadowOffset: {
15
+ width: 0,
16
+ height: 1
17
+ },
18
+ shadowOpacity: 0.05,
19
+ shadowRadius: 1
20
+ },
21
+ android: {
22
+ elevation: 1
23
+ }
24
+ },
25
+ sm: {
26
+ ios: {
27
+ shadowColor: '#000',
28
+ shadowOffset: {
29
+ width: 0,
30
+ height: 1
31
+ },
32
+ shadowOpacity: 0.1,
33
+ shadowRadius: 2
34
+ },
35
+ android: {
36
+ elevation: 2
37
+ }
38
+ },
39
+ md: {
40
+ ios: {
41
+ shadowColor: '#000',
42
+ shadowOffset: {
43
+ width: 0,
44
+ height: 2
45
+ },
46
+ shadowOpacity: 0.15,
47
+ shadowRadius: 4
48
+ },
49
+ android: {
50
+ elevation: 4
51
+ }
52
+ },
53
+ lg: {
54
+ ios: {
55
+ shadowColor: '#000',
56
+ shadowOffset: {
57
+ width: 0,
58
+ height: 4
59
+ },
60
+ shadowOpacity: 0.2,
61
+ shadowRadius: 8
62
+ },
63
+ android: {
64
+ elevation: 8
65
+ }
66
+ },
67
+ xl: {
68
+ ios: {
69
+ shadowColor: '#000',
70
+ shadowOffset: {
71
+ width: 0,
72
+ height: 8
73
+ },
74
+ shadowOpacity: 0.25,
75
+ shadowRadius: 16
76
+ },
77
+ android: {
78
+ elevation: 12
79
+ }
80
+ }
81
+ };
82
+ const useStyles = createStyles((theme, {
83
+ shadow,
84
+ radius,
85
+ p,
86
+ withBorder
87
+ }) => {
88
+ const getShadowStyles = () => {
89
+ if (!shadow) return {};
90
+ const shadowConfig = shadows[shadow];
91
+ if (!shadowConfig) return {};
92
+ return Platform.OS === 'ios' ? shadowConfig.ios : shadowConfig.android;
93
+ };
94
+ const getPadding = () => {
95
+ if (p === undefined) return {};
96
+ if (typeof p === 'number') return {
97
+ padding: rem(p)
98
+ };
99
+ return {
100
+ padding: theme.spacing[p] || theme.spacing.md
101
+ };
102
+ };
103
+ return {
104
+ root: {
105
+ backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[6] : theme.white,
106
+ borderRadius: theme.fn.radius(radius),
107
+ ...getShadowStyles(),
108
+ ...getPadding(),
109
+ ...(withBorder && {
110
+ borderWidth: 1,
111
+ borderColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[4] : (theme.colors.gray || [])[3]
112
+ })
113
+ }
114
+ };
115
+ });
116
+ const defaultProps = {
117
+ radius: 'sm',
118
+ p: 0,
119
+ withBorder: false
120
+ };
121
+ export const Paper = /*#__PURE__*/forwardRef((props, ref) => {
122
+ const {
123
+ shadow,
124
+ radius,
125
+ p,
126
+ withBorder,
127
+ children,
128
+ style
129
+ } = useComponentDefaultProps('Paper', defaultProps, props);
130
+ const {
131
+ styles,
132
+ sx,
133
+ ...others
134
+ } = useStyles({
135
+ shadow,
136
+ radius,
137
+ p,
138
+ withBorder
139
+ }, {
140
+ name: 'Paper'
141
+ });
142
+ return /*#__PURE__*/_jsx(BoxView, {
143
+ ref: ref,
144
+ style: sx(styles.root, style),
145
+ ...others,
146
+ children: children
147
+ });
148
+ });
149
+ Paper.displayName = 'Paper';
150
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","Platform","BoxView","useComponentDefaultProps","createStyles","rem","jsx","_jsx","shadows","xs","ios","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","android","elevation","sm","md","lg","xl","useStyles","theme","shadow","radius","p","withBorder","getShadowStyles","shadowConfig","OS","getPadding","undefined","padding","spacing","root","backgroundColor","colorScheme","colors","dark","white","borderRadius","fn","borderWidth","borderColor","gray","defaultProps","Paper","props","ref","children","style","styles","sx","others","name","displayName"],"sourceRoot":"../../../../src","sources":["components/Paper/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,QAAQ,QAAQ,cAAc;AACvC,SAASC,OAAO,QAAQ,qBAAY;AAMpC,SAASC,wBAAwB,QAAQ,+BAA4B;AACrE,SAASC,YAAY,QAAQ,sBAAa;AAC1C,SAASC,GAAG,QAAQ,0BAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAsB5C,MAAMC,OAAO,GAAG;EACdC,EAAE,EAAE;IACFC,GAAG,EAAE;MACHC,WAAW,EAAE,MAAM;MACnBC,YAAY,EAAE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H;EACF,CAAC;AACH,CACF,CAAC;AAED,MAAMC,YAAiC,GAAG;EACxCrB,MAAM,EAAE,IAAI;EACZC,CAAC,EAAE,CAAC;EACJC,UAAU,EAAE;AACd,CAAC;AAED,OAAO,MAAMoB,KAAK,gBAAGhD,UAAU,CAAkB,CAACiD,KAAK,EAAEC,GAAG,KAAK;EAC/D,MAAM;IAAEzB,MAAM;IAAEC,MAAM;IAAEC,CAAC;IAAEC,UAAU;IAAEuB,QAAQ;IAAEC;EAAK,CAAC,GACrDjD,wBAAwB,CAAC,OAAO,EAAE4C,YAAY,EAAEE,KAAK,CAAC;EAExD,MAAM;IAAEI,MAAM;IAAEC,EAAE;IAAE,GAAGC;EAAM,CAAC,GAAGhC,SAAS,CAAC;IAAEE,MAAM;IAAEC,MAAM;IAAEC,CAAC;IAAEC;EAAU,CAAC,EAAE;IAAE4B,IAAI,EAAE;EAAQ,CAAC,CAAQ;EAEtG,oBACEjD,IAAA,CAACL,OAAO;IAACgD,GAAG,EAAEA,GAAI;IAACE,KAAK,EAAEE,EAAE,CAACD,MAAM,CAACjB,IAAI,EAAEgB,KAAK,CAAE;IAAA,GAAKG,MAAM;IAAAJ,QAAA,EACzDA;EAAQ,CACF,CAAC;AAEd,CAAC,CAAC;AAEFH,KAAK,CAACS,WAAW,GAAG,OAAO","ignoreList":[]}
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+
3
+ import React, { forwardRef, useState } from 'react';
4
+ import { Pressable } from 'react-native';
5
+ import { TextInput } from "../TextInput/index.js";
6
+ import { Text } from "../Text/index.js";
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ const defaultProps = {
9
+ visibilityToggleLabel: 'Toggle password visibility'
10
+ };
11
+ const DefaultEyeIcon = ({
12
+ visible
13
+ }) => /*#__PURE__*/_jsx(Text, {
14
+ style: {
15
+ fontSize: 18
16
+ },
17
+ children: visible ? '👁️' : '👁️‍🗨️'
18
+ });
19
+ export const PasswordInput = /*#__PURE__*/forwardRef((props, ref) => {
20
+ const {
21
+ visibilityToggleLabel,
22
+ visible: controlledVisible,
23
+ onVisibilityChange,
24
+ visibilityToggleIcon,
25
+ ...others
26
+ } = {
27
+ ...defaultProps,
28
+ ...props
29
+ };
30
+ const [uncontrolledVisible, setUncontrolledVisible] = useState(false);
31
+ const isControlled = controlledVisible !== undefined;
32
+ const visible = isControlled ? controlledVisible : uncontrolledVisible;
33
+ const handleToggle = () => {
34
+ const newVisible = !visible;
35
+ if (!isControlled) {
36
+ setUncontrolledVisible(newVisible);
37
+ }
38
+ onVisibilityChange?.(newVisible);
39
+ };
40
+ const toggleButton = /*#__PURE__*/_jsx(Pressable, {
41
+ onPress: handleToggle,
42
+ accessibilityLabel: visibilityToggleLabel,
43
+ accessibilityRole: "button",
44
+ style: {
45
+ padding: 8,
46
+ justifyContent: 'center',
47
+ alignItems: 'center'
48
+ },
49
+ children: visibilityToggleIcon ? visibilityToggleIcon(visible) : /*#__PURE__*/_jsx(DefaultEyeIcon, {
50
+ visible: visible
51
+ })
52
+ });
53
+ return /*#__PURE__*/_jsx(TextInput, {
54
+ ref: ref,
55
+ secureTextEntry: !visible,
56
+ rightSection: toggleButton,
57
+ rightSectionWidth: 40,
58
+ ...others
59
+ });
60
+ });
61
+ PasswordInput.displayName = 'PasswordInput';
62
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","useState","Pressable","TextInput","Text","jsx","_jsx","defaultProps","visibilityToggleLabel","DefaultEyeIcon","visible","style","fontSize","children","PasswordInput","props","ref","controlledVisible","onVisibilityChange","visibilityToggleIcon","others","uncontrolledVisible","setUncontrolledVisible","isControlled","undefined","handleToggle","newVisible","toggleButton","onPress","accessibilityLabel","accessibilityRole","padding","justifyContent","alignItems","secureTextEntry","rightSection","rightSectionWidth","displayName"],"sourceRoot":"../../../../src","sources":["components/PasswordInput/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,QAAQ,QAAQ,OAAO;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AU,EAAE;IACd,CAAE;IAAApB,QAAA,EAEDM,oBAAoB,GAAGA,oBAAoB,CAACT,OAAO,CAAC,gBAAGJ,IAAA,CAACG,cAAc;MAACC,OAAO,EAAEA;IAAQ,CAAE;EAAC,CACnF,CACZ;EAED,oBACEJ,IAAA,CAACH,SAAS;IACRa,GAAG,EAAEA,GAAI;IACTkB,eAAe,EAAE,CAACxB,OAAQ;IAC1ByB,YAAY,EAAER,YAAa;IAC3BS,iBAAiB,EAAE,EAAG;IAAA,GAClBhB;EAAM,CACX,CAAC;AAEN,CAAC,CAAC;AAEFN,aAAa,CAACuB,WAAW,GAAG,eAAe","ignoreList":[]}
@@ -0,0 +1,182 @@
1
+ "use strict";
2
+
3
+ import { forwardRef, useRef, useState } from 'react';
4
+ import { TextInput } from 'react-native';
5
+ import { BoxView } from "../BoxView/index.js";
6
+ import { useComponentDefaultProps } from "../../theme/theme-provider.js";
7
+ import { createStyles, getSize } from "../../theme/index.js";
8
+ import { rem } from "../../theme/utils/rem.js";
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ const sizes = {
11
+ xs: rem(32),
12
+ sm: rem(40),
13
+ md: rem(48),
14
+ lg: rem(56),
15
+ xl: rem(64)
16
+ };
17
+ const useStyles = createStyles((theme, {
18
+ size,
19
+ radius,
20
+ error,
21
+ disabled,
22
+ spacing
23
+ }) => {
24
+ const getSpacing = () => {
25
+ return theme.spacing[spacing] || theme.spacing.sm;
26
+ };
27
+ return {
28
+ root: {
29
+ flexDirection: 'row',
30
+ alignItems: 'center',
31
+ gap: getSpacing()
32
+ },
33
+ input: {
34
+ width: sizes[size] || sizes.md,
35
+ height: sizes[size] || sizes.md,
36
+ borderRadius: theme.fn.radius(radius),
37
+ borderWidth: 1,
38
+ borderColor: error ? (theme.colors.red || [])[6] : theme.colorScheme === 'dark' ? (theme.colors.dark || [])[4] : (theme.colors.gray || [])[4],
39
+ backgroundColor: theme.colorScheme === 'dark' ? (theme.colors.dark || [])[6] : theme.white,
40
+ fontSize: getSize({
41
+ size,
42
+ sizes: theme.fontSizes
43
+ }),
44
+ textAlign: 'center',
45
+ color: theme.colorScheme === 'dark' ? theme.white : theme.black,
46
+ ...(disabled && {
47
+ opacity: 0.6
48
+ })
49
+ },
50
+ inputFocused: {
51
+ borderColor: theme.colors[theme.primaryColor]?.[6] || theme.primaryBgColor,
52
+ borderWidth: 2
53
+ }
54
+ };
55
+ });
56
+ const defaultProps = {
57
+ length: 4,
58
+ size: 'sm',
59
+ radius: 'sm',
60
+ mask: false,
61
+ type: 'number',
62
+ disabled: false,
63
+ error: false,
64
+ spacing: 'sm'
65
+ };
66
+ export const PinInput = /*#__PURE__*/forwardRef((props, ref) => {
67
+ const {
68
+ length,
69
+ size,
70
+ radius,
71
+ mask,
72
+ type,
73
+ value: controlledValue,
74
+ defaultValue,
75
+ onChange,
76
+ onComplete,
77
+ disabled,
78
+ error,
79
+ spacing,
80
+ style,
81
+ inputStyle,
82
+ ...others
83
+ } = useComponentDefaultProps('PinInput', defaultProps, props);
84
+ const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue || '');
85
+ const [focusedIndex, setFocusedIndex] = useState(null);
86
+ const value = controlledValue !== undefined ? controlledValue : uncontrolledValue;
87
+ const inputRefs = useRef([]);
88
+ const {
89
+ styles,
90
+ sx
91
+ } = useStyles({
92
+ size,
93
+ radius,
94
+ error,
95
+ disabled,
96
+ spacing
97
+ }, {
98
+ name: 'PinInput'
99
+ });
100
+ const handleChange = (text, index) => {
101
+ if (disabled) return;
102
+
103
+ // Validate input based on type
104
+ const isValid = type === 'number' ? /^\d*$/.test(text) : /^[a-zA-Z0-9]*$/.test(text);
105
+ if (!isValid) return;
106
+
107
+ // Handle paste
108
+ if (text.length > 1) {
109
+ const pastedText = text.slice(0, length);
110
+ const newValue = pastedText.padEnd(length, ' ').slice(0, length);
111
+ if (controlledValue === undefined) {
112
+ setUncontrolledValue(newValue);
113
+ }
114
+ onChange?.(newValue);
115
+
116
+ // Move focus to the last filled input or the end
117
+ const nextIndex = Math.min(pastedText.length, length - 1);
118
+ inputRefs.current[nextIndex]?.focus();
119
+ if (newValue.replace(/ /g, '').length === length) {
120
+ onComplete?.(newValue);
121
+ }
122
+ return;
123
+ }
124
+
125
+ // Handle single character input
126
+ const newValueArray = value.padEnd(length, ' ').split('');
127
+ newValueArray[index] = text;
128
+ const newValue = newValueArray.join('').slice(0, length);
129
+ if (controlledValue === undefined) {
130
+ setUncontrolledValue(newValue);
131
+ }
132
+ onChange?.(newValue);
133
+
134
+ // Move to next input if character was entered
135
+ if (text && index < length - 1) {
136
+ inputRefs.current[index + 1]?.focus();
137
+ }
138
+
139
+ // Check if complete
140
+ if (newValue.replace(/ /g, '').length === length) {
141
+ onComplete?.(newValue);
142
+ }
143
+ };
144
+ const handleKeyPress = (e, index) => {
145
+ // Handle backspace
146
+ if (e.nativeEvent.key === 'Backspace') {
147
+ const currentValue = value.charAt(index);
148
+ if (!currentValue || currentValue === ' ') {
149
+ // Move to previous input if current is empty
150
+ if (index > 0) {
151
+ inputRefs.current[index - 1]?.focus();
152
+ }
153
+ }
154
+ }
155
+ };
156
+ return /*#__PURE__*/_jsx(BoxView, {
157
+ ref: ref,
158
+ style: sx(styles.root, style),
159
+ ...others,
160
+ children: Array.from({
161
+ length: length
162
+ }, (_, index) => {
163
+ const inputValue = value.charAt(index) || '';
164
+ const displayValue = inputValue === ' ' ? '' : inputValue;
165
+ return /*#__PURE__*/_jsx(TextInput, {
166
+ ref: el => inputRefs.current[index] = el,
167
+ value: mask && displayValue ? '•' : displayValue,
168
+ onChangeText: text => handleChange(text, index),
169
+ onKeyPress: e => handleKeyPress(e, index),
170
+ onFocus: () => setFocusedIndex(index),
171
+ onBlur: () => setFocusedIndex(null),
172
+ maxLength: 1,
173
+ keyboardType: type === 'number' ? 'number-pad' : 'default',
174
+ editable: !disabled,
175
+ selectTextOnFocus: true,
176
+ style: sx(styles.input, focusedIndex === index && styles.inputFocused, inputStyle)
177
+ }, index);
178
+ })
179
+ });
180
+ });
181
+ PinInput.displayName = 'PinInput';
182
+ //# sourceMappingURL=index.js.map