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,263 @@
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
+ fontSize: rem(10),
15
+ paddingHorizontal: rem(8)
16
+ },
17
+ sm: {
18
+ height: rem(28),
19
+ fontSize: rem(12),
20
+ paddingHorizontal: rem(10)
21
+ },
22
+ md: {
23
+ height: rem(32),
24
+ fontSize: rem(14),
25
+ paddingHorizontal: rem(12)
26
+ },
27
+ lg: {
28
+ height: rem(36),
29
+ fontSize: rem(16),
30
+ paddingHorizontal: rem(14)
31
+ },
32
+ xl: {
33
+ height: rem(42),
34
+ fontSize: rem(18),
35
+ paddingHorizontal: rem(16)
36
+ }
37
+ };
38
+ const useStyles = createStyles((theme, {
39
+ size,
40
+ color,
41
+ radius,
42
+ variant,
43
+ checked,
44
+ disabled
45
+ }) => {
46
+ const colors = theme.colors[color] || theme.colors[theme.primaryColor];
47
+ const sizeStyles = sizes[size] || sizes.md;
48
+ const getVariantStyles = () => {
49
+ if (!checked) {
50
+ return {
51
+ backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark?.[6] : theme.colors.gray?.[1],
52
+ borderWidth: 1,
53
+ borderColor: theme.colorScheme === 'dark' ? theme.colors.dark?.[4] : theme.colors.gray?.[4]
54
+ };
55
+ }
56
+ switch (variant) {
57
+ case 'filled':
58
+ return {
59
+ backgroundColor: colors?.[6] || colors?.[5] || theme.primaryBgColor,
60
+ borderWidth: 0
61
+ };
62
+ case 'outline':
63
+ return {
64
+ backgroundColor: 'transparent',
65
+ borderWidth: 1,
66
+ borderColor: colors?.[6] || colors?.[5] || theme.primaryBgColor
67
+ };
68
+ case 'light':
69
+ return {
70
+ backgroundColor: theme.colorScheme === 'dark' ? theme.fn.rgba(colors?.[9] || theme.primaryBgColor, 0.25) : colors?.[0] || (theme.colors.gray || [])[1],
71
+ borderWidth: 0
72
+ };
73
+ default:
74
+ return {
75
+ backgroundColor: colors?.[6] || colors?.[5] || theme.primaryBgColor,
76
+ borderWidth: 0
77
+ };
78
+ }
79
+ };
80
+ const getTextColor = () => {
81
+ if (!checked) {
82
+ return theme.colorScheme === 'dark' ? theme.white : theme.black;
83
+ }
84
+ switch (variant) {
85
+ case 'filled':
86
+ return theme.white;
87
+ case 'outline':
88
+ case 'light':
89
+ return colors?.[6] || colors?.[5] || theme.primaryBgColor;
90
+ default:
91
+ return theme.white;
92
+ }
93
+ };
94
+ return {
95
+ root: {
96
+ flexDirection: 'row',
97
+ alignItems: 'center',
98
+ justifyContent: 'center',
99
+ height: sizeStyles.height,
100
+ paddingHorizontal: sizeStyles.paddingHorizontal,
101
+ borderRadius: theme.fn.radius(radius),
102
+ ...getVariantStyles(),
103
+ ...(disabled && {
104
+ opacity: 0.6
105
+ })
106
+ },
107
+ icon: {
108
+ marginRight: rem(6)
109
+ },
110
+ text: {
111
+ fontSize: sizeStyles.fontSize,
112
+ fontWeight: checked ? '600' : '500',
113
+ color: getTextColor()
114
+ }
115
+ };
116
+ });
117
+ const defaultProps = {
118
+ size: 'sm',
119
+ color: 'blue',
120
+ radius: 'xl',
121
+ variant: 'filled',
122
+ disabled: false,
123
+ type: 'checkbox'
124
+ };
125
+ export const Chip = /*#__PURE__*/forwardRef((props, ref) => {
126
+ const {
127
+ children,
128
+ size,
129
+ color,
130
+ radius,
131
+ variant,
132
+ checked: controlledChecked,
133
+ defaultChecked,
134
+ onChange,
135
+ disabled,
136
+ icon,
137
+ style,
138
+ textStyle,
139
+ value,
140
+ type,
141
+ ...others
142
+ } = useComponentDefaultProps('Chip', defaultProps, props);
143
+ const [uncontrolledChecked, setUncontrolledChecked] = React.useState(defaultChecked || false);
144
+ const checked = controlledChecked !== undefined ? controlledChecked : uncontrolledChecked;
145
+ const {
146
+ styles,
147
+ sx
148
+ } = useStyles({
149
+ size,
150
+ color,
151
+ radius,
152
+ variant,
153
+ checked,
154
+ disabled
155
+ }, {
156
+ name: 'Chip'
157
+ });
158
+ const handlePress = () => {
159
+ if (disabled) return;
160
+ const newChecked = !checked;
161
+ if (controlledChecked === undefined) {
162
+ setUncontrolledChecked(newChecked);
163
+ }
164
+ onChange?.(newChecked);
165
+ };
166
+ const showIcon = checked && icon;
167
+ return /*#__PURE__*/_jsxs(TouchableOpacity, {
168
+ ref: ref,
169
+ style: sx(styles.root, style),
170
+ onPress: handlePress,
171
+ disabled: disabled,
172
+ activeOpacity: 0.7,
173
+ ...others,
174
+ children: [showIcon && /*#__PURE__*/_jsx(BoxView, {
175
+ style: styles.icon,
176
+ children: icon
177
+ }), /*#__PURE__*/_jsx(Text, {
178
+ style: sx(styles.text, textStyle),
179
+ children: children
180
+ })]
181
+ });
182
+ });
183
+ Chip.displayName = 'Chip';
184
+
185
+ // Chip.Group component for managing multiple chips
186
+
187
+ const useGroupStyles = createStyles((_theme, {
188
+ spacing: _spacing
189
+ }) => ({
190
+ root: {
191
+ flexDirection: 'row',
192
+ flexWrap: 'wrap',
193
+ gap: 8
194
+ }
195
+ }));
196
+ const defaultGroupProps = {
197
+ multiple: false,
198
+ spacing: 'sm'
199
+ };
200
+ export const ChipGroup = /*#__PURE__*/forwardRef((props, ref) => {
201
+ const {
202
+ children,
203
+ value: controlledValue,
204
+ defaultValue,
205
+ onChange,
206
+ multiple,
207
+ style,
208
+ spacing,
209
+ ...otherProps
210
+ } = useComponentDefaultProps('ChipGroup', defaultGroupProps, props);
211
+ const [uncontrolledValue, setUncontrolledValue] = React.useState(defaultValue || (multiple ? [] : ''));
212
+ const value = controlledValue !== undefined ? controlledValue : uncontrolledValue;
213
+ const {
214
+ styles,
215
+ sx
216
+ } = useGroupStyles({
217
+ spacing
218
+ }, {
219
+ name: 'ChipGroup'
220
+ });
221
+ const handleChipChange = (chipValue, checked) => {
222
+ let newValue;
223
+ if (multiple) {
224
+ const currentArray = Array.isArray(value) ? value : [];
225
+ newValue = checked ? [...currentArray, chipValue] : currentArray.filter(v => v !== chipValue);
226
+ } else {
227
+ newValue = checked ? chipValue : '';
228
+ }
229
+ if (controlledValue === undefined) {
230
+ setUncontrolledValue(newValue);
231
+ }
232
+ onChange?.(newValue);
233
+ };
234
+ const isChecked = chipValue => {
235
+ if (multiple && Array.isArray(value)) {
236
+ return value.includes(chipValue);
237
+ }
238
+ return value === chipValue;
239
+ };
240
+ const enhancedChildren = React.Children.map(children, child => {
241
+ if (/*#__PURE__*/React.isValidElement(child) && child.type === Chip) {
242
+ const chipValue = child.props.value;
243
+ if (chipValue !== undefined) {
244
+ return /*#__PURE__*/React.cloneElement(child, {
245
+ checked: isChecked(chipValue),
246
+ onChange: checked => handleChipChange(chipValue, checked)
247
+ });
248
+ }
249
+ }
250
+ return child;
251
+ });
252
+ return /*#__PURE__*/_jsx(BoxView, {
253
+ ref: ref,
254
+ style: sx(styles.root, style),
255
+ ...otherProps,
256
+ children: enhancedChildren
257
+ });
258
+ });
259
+ ChipGroup.displayName = 'Chip.Group';
260
+
261
+ // Attach Group to Chip
262
+ Chip.Group = ChipGroup;
263
+ //# 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","fontSize","paddingHorizontal","sm","md","lg","xl","useStyles","theme","size","color","radius","variant","checked","disabled","colors","primaryColor","sizeStyles","getVariantStyles","backgroundColor","colorScheme","dark","gray","borderWidth","borderColor","primaryBgColor","fn","rgba","getTextColor","white","black","root","flexDirection","alignItems","justifyContent","borderRadius","opacity","icon","marginRight","text","fontWeight","defaultProps","type","Chip","props","ref","children","controlledChecked","defaultChecked","onChange","style","textStyle","value","others","uncontrolledChecked","setUncontrolledChecked","useState","undefined","styles","sx","name","handlePress","newChecked","showIcon","onPress","activeOpacity","displayName","useGroupStyles","_theme","spacing","_spacing","flexWrap","gap","defaultGroupProps","multiple","ChipGroup","controlledValue","defaultValue","otherProps","uncontrolledValue","setUncontrolledValue","handleChipChange","chipValue","newValue","currentArray","Array","isArray","filter","v","isChecked","includes","enhancedChildren","Children","map","child","isValidElement","cloneElement","Group"],"sourceRoot":"../../../../src","sources":["components/Chip/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;AAQ9B,SAASC,wBAAwB,QAAQ,+BAA4B;AACrE,SAASC,YAAY,QAAQ,sBAAa;AAC1C,SAASC,GAAG,QAAQ,0BAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA8C5C,MAAMC,KAAK,GAAG;EACZC,EAAE,EAAE;IAAEC,MAAM,EAAEP,GAAG,CAAC,EAAE,CAAQ;IAAEQ,QAAQ,EAAER,GAAG,CAAC,EAAE,CAAC;IAAES,iBAAiB,EAAET,GAAG,CAAC,CAAC;EAAS,CAAC;EACnFU,EAAE,EAAE;IAAEH,MAAM,EAAEP,GAAG,CAAC,EAAE,CAAQ;IAAEQ,QAAQ,EAAER,GAAG,CAAC,EAAE,CAAC;IAAES,iBAAiB,EAAET,GAAG,CAAC,EAAE;EAAS,CAAC;EACpFW,EAAE,EAAE;IAAEJ,MAAM,EAAEP,GAAG,CAAC,EAAE,CAAQ;IAAEQ,QAAQ,EAAER,GAAG,CAAC,EAAE,CAAC;IAAES,iBAAiB,EAAET,GAAG,CAAC,EAAE;EAAS,CAAC;EACpFY,EAAE,EAAE;IAAEL,MAAM,EAAEP,GAAG,CAAC,EAAE,CAAQ;IAAEQ,QAAQ,EAAER,GAAG,CAAC,EAAE,CAAC;IAAES,iBAAiB,EAAET,GAAG,CAAC,EAAE;EAAS,CAAC;EACpFa,EAAE,EAAE;IAAEN,MAAM,EAAEP,GAAG,CAAC,EAAE,CAAQ;IAAEQ,QAAQ,EAAER,GAAG,CAAC,EAAE,CAAC;IAAES,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AAOA,KAAK,CAACsC,QAAQ,CAACR,SAAS,CAAC;IAClC;IACA,OAAO9B,KAAK,KAAK8B,SAAS;EAC5B,CAAC;EAED,MAAMS,gBAAgB,GAAGzG,KAAK,CAAC0G,QAAQ,CAACC,GAAG,CAAC/C,QAAQ,EAAGgD,KAAK,IAAK;IAC/D,IAAI,aAAA5G,KAAK,CAAC6G,cAAc,CAACD,KAAK,CAAC,IAAIA,KAAK,CAACpD,IAAI,KAAKC,IAAI,EAAE;MACtD,MAAMuC,SAAS,GAAGY,KAAK,CAAClD,KAAK,CAACQ,KAAK;MACnC,IAAI8B,SAAS,KAAKzB,SAAS,EAAE;QAC3B,oBAAOvE,KAAK,CAAC8G,YAAY,CAACF,KAAK,EAAmC;UAChEjF,OAAO,EAAE4E,SAAS,CAACP,SAAS,CAAC;UAC7BjC,QAAQ,EAAGpC,OAAgB,IAAKoE,gBAAgB,CAACC,SAAS,EAAErE,OAAO;QACrE,CAAC,CAAC;MACJ;IACF;IACA,OAAOiF,KAAK;EACd,CAAC,CAAC;EAEF,oBACEnG,IAAA,CAACN,OAAO;IAACwD,GAAG,EAAEA,GAAI;IAACK,KAAK,EAAES,EAAE,CAACD,MAAM,CAAC3B,IAAI,EAAEmB,KAAK,CAAE;IAAA,GAAK4B,UAAU;IAAAhC,QAAA,EAC7D6C;EAAgB,CACV,CAAC;AAEd,CAAC,CAAC;AAEFhB,SAAS,CAACT,WAAW,GAAG,YAAY;;AAEpC;AACCvB,IAAI,CAASsD,KAAK,GAAGtB,SAAS","ignoreList":[]}
@@ -0,0 +1,132 @@
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 { useComponentDefaultProps } from "../../theme/theme-provider.js";
7
+ import { createStyles } from "../../theme/index.js";
8
+ import { getSize } from "../../theme/index.js";
9
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
+ const sizes = {
11
+ xs: 16,
12
+ sm: 22,
13
+ md: 28,
14
+ lg: 34,
15
+ xl: 44
16
+ };
17
+ const iconSizes = {
18
+ xs: 12,
19
+ sm: 16,
20
+ md: 20,
21
+ lg: 24,
22
+ xl: 28
23
+ };
24
+ const useStyles = createStyles((theme, {
25
+ size,
26
+ radius,
27
+ disabled
28
+ }) => {
29
+ const buttonSize = typeof size === 'number' ? size : getSize({
30
+ size,
31
+ sizes
32
+ });
33
+ return {
34
+ root: {
35
+ width: buttonSize,
36
+ height: buttonSize,
37
+ borderRadius: theme.fn.radius(radius),
38
+ justifyContent: 'center',
39
+ alignItems: 'center',
40
+ backgroundColor: 'transparent',
41
+ opacity: disabled ? 0.4 : 1
42
+ },
43
+ rootHover: {
44
+ backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark?.[5] : theme.colors.gray?.[0]
45
+ }
46
+ };
47
+ });
48
+ const CloseIcon = ({
49
+ size,
50
+ color
51
+ }) => /*#__PURE__*/_jsxs(BoxView, {
52
+ style: {
53
+ width: size,
54
+ height: size,
55
+ position: 'relative'
56
+ },
57
+ children: [/*#__PURE__*/_jsx(BoxView, {
58
+ style: {
59
+ position: 'absolute',
60
+ width: size,
61
+ height: 2,
62
+ backgroundColor: color,
63
+ top: (size - 2) / 2,
64
+ transform: [{
65
+ rotate: '45deg'
66
+ }]
67
+ }
68
+ }), /*#__PURE__*/_jsx(BoxView, {
69
+ style: {
70
+ position: 'absolute',
71
+ width: size,
72
+ height: 2,
73
+ backgroundColor: color,
74
+ top: (size - 2) / 2,
75
+ transform: [{
76
+ rotate: '-45deg'
77
+ }]
78
+ }
79
+ })]
80
+ });
81
+ const defaultProps = {
82
+ size: 'md',
83
+ radius: 'sm',
84
+ accessibilityLabel: 'Close',
85
+ disabled: false
86
+ };
87
+ export const CloseButton = /*#__PURE__*/forwardRef((props, ref) => {
88
+ const {
89
+ onPress,
90
+ size = 'md',
91
+ radius = 'sm',
92
+ iconColor,
93
+ icon,
94
+ accessibilityLabel,
95
+ style,
96
+ disabled,
97
+ ...others
98
+ } = useComponentDefaultProps('CloseButton', defaultProps, props);
99
+ const {
100
+ styles,
101
+ sx,
102
+ theme
103
+ } = useStyles({
104
+ size,
105
+ radius,
106
+ disabled
107
+ }, {
108
+ name: 'CloseButton'
109
+ });
110
+ const iconSize = typeof size === 'number' ? Math.round(size * 0.7) : getSize({
111
+ size,
112
+ sizes: iconSizes
113
+ });
114
+ const defaultIconColor = iconColor || (theme.colorScheme === 'dark' ? theme.colors.dark?.[0] : theme.colors.gray?.[7]) || '#000';
115
+ return /*#__PURE__*/_jsx(TouchableOpacity, {
116
+ ref: ref,
117
+ onPress: onPress,
118
+ disabled: disabled,
119
+ activeOpacity: 0.6,
120
+ accessible: true,
121
+ accessibilityLabel: accessibilityLabel,
122
+ accessibilityRole: "button",
123
+ style: sx(styles.root, style),
124
+ ...others,
125
+ children: icon || /*#__PURE__*/_jsx(CloseIcon, {
126
+ size: iconSize,
127
+ color: defaultIconColor
128
+ })
129
+ });
130
+ });
131
+ CloseButton.displayName = 'CloseButton';
132
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","TouchableOpacity","BoxView","useComponentDefaultProps","createStyles","getSize","jsx","_jsx","jsxs","_jsxs","sizes","xs","sm","md","lg","xl","iconSizes","useStyles","theme","size","radius","disabled","buttonSize","root","width","height","borderRadius","fn","justifyContent","alignItems","backgroundColor","opacity","rootHover","colorScheme","colors","dark","gray","CloseIcon","color","style","position","children","top","transform","rotate","defaultProps","accessibilityLabel","CloseButton","props","ref","onPress","iconColor","icon","others","styles","sx","name","iconSize","Math","round","defaultIconColor","activeOpacity","accessible","accessibilityRole","displayName"],"sourceRoot":"../../../../src","sources":["components/CloseButton/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,gBAAgB,QAAQ,cAAc;AAC/C,SAASC,OAAO,QAAQ,qBAAY;AAEpC,SAASC,wBAAwB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;EAAK,CAAC,GAAGD,SAAS,CACpC;IAAEE,IAAI;IAAEC,MAAM;IAAEC;EAAS,CAAC,EAC1B;IAAEmC,IAAI,EAAE;EAAc,CACxB,CAAQ;EAER,MAAMC,QAAQ,GAAG,OAAOtC,IAAI,KAAK,QAAQ,GAAGuC,IAAI,CAACC,KAAK,CAACxC,IAAI,GAAG,GAAG,CAAC,GAAId,OAAO,CAAC;IAAEc,IAAI;IAAET,KAAK,EAAEM;EAAU,CAAC,CAAuB;EAC/H,MAAM4C,gBAAgB,GACpBT,SAAS,KAAKjC,KAAK,CAACe,WAAW,KAAK,MAAM,GAAGf,KAAK,CAACgB,MAAM,CAACC,IAAI,GAAG,CAAC,CAAC,GAAGjB,KAAK,CAACgB,MAAM,CAACE,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,MAAM;EAEzG,oBACE7B,IAAA,CAACN,gBAAgB;IACfgD,GAAG,EAAEA,GAAI;IACTC,OAAO,EAAEA,OAAQ;IACjB7B,QAAQ,EAAEA,QAAS;IACnBwC,aAAa,EAAE,GAAI;IACnBC,UAAU,EAAE,IAAK;IACjBhB,kBAAkB,EAAEA,kBAAmB;IACvCiB,iBAAiB,EAAC,QAAQ;IAC1BxB,KAAK,EAAEgB,EAAE,CAACD,MAAM,CAAC/B,IAAI,EAAEgB,KAAK,CAAE;IAAA,GAC1Bc,MAAM;IAAAZ,QAAA,EAETW,IAAI,iBAAI7C,IAAA,CAAC8B,SAAS;MAAClB,IAAI,EAAEsC,QAAS;MAACnB,KAAK,EAAEsB;IAAiB,CAAE;EAAC,CAC/C,CAAC;AAEvB,CAAC,CAAC;AAEFb,WAAW,CAACiB,WAAW,GAAG,aAAa","ignoreList":[]}
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+
3
+ import React, { forwardRef } from 'react';
4
+ import { Text } from "../Text/index.js";
5
+ import { useTheme } from "../../theme/theme-provider.js";
6
+ import { BoxView } from "../BoxView/index.js";
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ /**
9
+ * Code component renders inline code or code blocks with monospace font
10
+ */
11
+ export const Code = /*#__PURE__*/forwardRef((props, ref) => {
12
+ const {
13
+ children,
14
+ color,
15
+ block = false,
16
+ style,
17
+ ...others
18
+ } = props;
19
+ const theme = useTheme();
20
+
21
+ // Get background and text colors
22
+ const backgroundColor = theme.colors.gray?.[0] || '#F6F6F6';
23
+ const textColor = color ? theme.colors[color]?.[theme.primaryShade] || color : theme.light.text;
24
+
25
+ // Monospace font - in React Native, we can use 'Courier' or 'Courier New'
26
+ const codeStyles = {
27
+ fontFamily: 'Courier',
28
+ fontSize: theme.fontSizes.sm || 14,
29
+ backgroundColor: backgroundColor,
30
+ color: textColor,
31
+ paddingHorizontal: block ? 16 : 4,
32
+ paddingVertical: block ? 12 : 2,
33
+ borderRadius: theme.radius.sm || 4
34
+ };
35
+ if (block) {
36
+ return /*#__PURE__*/_jsx(BoxView, {
37
+ ref: ref,
38
+ style: [{
39
+ backgroundColor: backgroundColor,
40
+ borderRadius: theme.radius.sm || 4,
41
+ padding: 16
42
+ }, style],
43
+ children: /*#__PURE__*/_jsx(Text, {
44
+ style: [{
45
+ fontFamily: 'Courier',
46
+ fontSize: theme.fontSizes.sm || 14,
47
+ color: textColor
48
+ }],
49
+ ...others,
50
+ children: children
51
+ })
52
+ });
53
+ }
54
+ return /*#__PURE__*/_jsx(Text, {
55
+ ref: ref,
56
+ style: [codeStyles, style],
57
+ ...others,
58
+ children: children
59
+ });
60
+ });
61
+ Code.displayName = 'Code';
62
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","Text","useTheme","BoxView","jsx","_jsx","Code","props","ref","children","color","block","style","others","theme","backgroundColor","colors","gray","textColor","primaryShade","light","text","codeStyles","fontFamily","fontSize","fontSizes","sm","paddingHorizontal","paddingVertical","borderRadius","radius","padding","displayName"],"sourceRoot":"../../../../src","sources":["components/Code/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UA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X,CAAC,EACDnB,KAAK,CACL;MAAAH,QAAA,eAEFJ,IAAA,CAACJ,IAAI;QACHW,KAAK,EAAE,CACL;UACEW,UAAU,EAAE,SAAS;UACrBC,QAAQ,EAAEV,KAAK,CAACW,SAAS,CAACC,EAAE,IAAc,EAAE;UAC5ChB,KAAK,EAAEQ;QACT,CAAC,CACD;QAAA,GACEL,MAAM;QAAAJ,QAAA,EAETA;MAAQ,CACL;IAAC,CACA,CAAC;EAEd;EAEA,oBACEJ,IAAA,CAACJ,IAAI;IACHO,GAAG,EAAEA,GAAI;IACTI,KAAK,EAAE,CAACU,UAAU,EAAEV,KAAK,CAAE;IAAA,GACvBC,MAAM;IAAAJ,QAAA,EAETA;EAAQ,CACL,CAAC;AAEX,CAAC,CAAC;AAEFH,IAAI,CAAC0B,WAAW,GAAG,MAAM","ignoreList":[]}
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+
3
+ import React, { forwardRef, useEffect, useRef, useState } from 'react';
4
+ import { Animated } from 'react-native';
5
+ import { BoxView } from "../BoxView/index.js";
6
+ import { useComponentDefaultProps } from "../../theme/theme-provider.js";
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ const defaultProps = {
9
+ transitionDuration: 200,
10
+ transitionTimingFunction: 'ease',
11
+ animateOpacity: true
12
+ };
13
+ export const Collapse = /*#__PURE__*/forwardRef((props, ref) => {
14
+ const {
15
+ children,
16
+ in: opened,
17
+ transitionDuration,
18
+ transitionTimingFunction,
19
+ onTransitionEnd,
20
+ animateOpacity,
21
+ style,
22
+ ...others
23
+ } = useComponentDefaultProps('Collapse', defaultProps, props);
24
+ const [contentHeight, setContentHeight] = useState(0);
25
+ const heightAnim = useRef(new Animated.Value(opened ? 1 : 0)).current;
26
+ const opacityAnim = useRef(new Animated.Value(opened ? 1 : 0)).current;
27
+ const handleLayout = event => {
28
+ const {
29
+ height
30
+ } = event.nativeEvent.layout;
31
+ if (height > 0 && height !== contentHeight) {
32
+ setContentHeight(height);
33
+ }
34
+ };
35
+ useEffect(() => {
36
+ const animations = [Animated.timing(heightAnim, {
37
+ toValue: opened ? 1 : 0,
38
+ duration: transitionDuration,
39
+ useNativeDriver: false
40
+ })];
41
+ if (animateOpacity) {
42
+ animations.push(Animated.timing(opacityAnim, {
43
+ toValue: opened ? 1 : 0,
44
+ duration: transitionDuration,
45
+ useNativeDriver: true
46
+ }));
47
+ }
48
+ Animated.parallel(animations).start(({
49
+ finished
50
+ }) => {
51
+ if (finished && onTransitionEnd) {
52
+ onTransitionEnd();
53
+ }
54
+ });
55
+ }, [opened, heightAnim, opacityAnim, transitionDuration, animateOpacity, onTransitionEnd]);
56
+ const animatedHeight = heightAnim.interpolate({
57
+ inputRange: [0, 1],
58
+ outputRange: [0, contentHeight || 0]
59
+ });
60
+ return /*#__PURE__*/_jsx(Animated.View, {
61
+ ref: ref,
62
+ style: [{
63
+ height: animatedHeight,
64
+ overflow: 'hidden',
65
+ ...(animateOpacity && {
66
+ opacity: opacityAnim
67
+ })
68
+ }, style],
69
+ ...others,
70
+ children: /*#__PURE__*/_jsx(BoxView, {
71
+ onLayout: handleLayout,
72
+ children: children
73
+ })
74
+ });
75
+ });
76
+ Collapse.displayName = 'Collapse';
77
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","useEffect","useRef","useState","Animated","BoxView","useComponentDefaultProps","jsx","_jsx","defaultProps","transitionDuration","transitionTimingFunction","animateOpacity","Collapse","props","ref","children","in","opened","onTransitionEnd","style","others","contentHeight","setContentHeight","heightAnim","Value","current","opacityAnim","handleLayout","event","height","nativeEvent","layout","animations","timing","toValue","duration","useNativeDriver","push","parallel","start","finished","animatedHeight","interpolate","inputRange","outputRange","View","overflow","opacity","onLayout","displayName"],"sourceRoot":"../../../../src","sources":["components/Collapse/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AACtE,SAASC,Q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AU","ignoreList":[]}
@@ -0,0 +1,90 @@
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 { useComponentDefaultProps } from "../../theme/theme-provider.js";
7
+ import { createStyles } from "../../theme/index.js";
8
+ import { jsx as _jsx } from "react/jsx-runtime";
9
+ const useStyles = createStyles((theme, {
10
+ color,
11
+ size,
12
+ radius,
13
+ withShadow
14
+ }) => ({
15
+ root: {
16
+ width: size,
17
+ height: size,
18
+ borderRadius: theme.fn.radius(radius),
19
+ backgroundColor: color,
20
+ justifyContent: 'center',
21
+ alignItems: 'center',
22
+ overflow: 'hidden',
23
+ ...(withShadow && {
24
+ shadowColor: '#000',
25
+ shadowOffset: {
26
+ width: 0,
27
+ height: 1
28
+ },
29
+ shadowOpacity: 0.1,
30
+ shadowRadius: 1,
31
+ elevation: 1
32
+ })
33
+ },
34
+ overlay: {
35
+ position: 'absolute',
36
+ top: 0,
37
+ left: 0,
38
+ right: 0,
39
+ bottom: 0,
40
+ justifyContent: 'center',
41
+ alignItems: 'center'
42
+ }
43
+ }));
44
+ const defaultProps = {
45
+ size: 25,
46
+ radius: 'xl',
47
+ withShadow: true
48
+ };
49
+ export const ColorSwatch = /*#__PURE__*/forwardRef((props, ref) => {
50
+ const {
51
+ color,
52
+ size,
53
+ radius,
54
+ withShadow,
55
+ children,
56
+ onPress,
57
+ style,
58
+ ...others
59
+ } = useComponentDefaultProps('ColorSwatch', defaultProps, props);
60
+ const {
61
+ styles,
62
+ sx
63
+ } = useStyles({
64
+ color,
65
+ size,
66
+ radius,
67
+ withShadow
68
+ }, {
69
+ name: 'ColorSwatch'
70
+ });
71
+ const content = /*#__PURE__*/_jsx(BoxView, {
72
+ ref: ref,
73
+ style: sx(styles.root, style),
74
+ ...others,
75
+ children: children && /*#__PURE__*/_jsx(BoxView, {
76
+ style: styles.overlay,
77
+ children: children
78
+ })
79
+ });
80
+ if (onPress) {
81
+ return /*#__PURE__*/_jsx(TouchableOpacity, {
82
+ onPress: onPress,
83
+ activeOpacity: 0.7,
84
+ children: content
85
+ });
86
+ }
87
+ return content;
88
+ });
89
+ ColorSwatch.displayName = 'ColorSwatch';
90
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","TouchableOpacity","BoxView","useComponentDefaultProps","createStyles","jsx","_jsx","useStyles","theme","color","size","radius","withShadow","root","width","height","borderRadius","fn","backgroundColor","justifyContent","alignItems","overflow","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","overlay","position","top","left","right","bottom","defaultProps","ColorSwatch","props","ref","children","onPress","style","others","styles","sx","name","content","activeOpacity","displayName"],"sourceRoot":"../../../../src","sources":["components/ColorSwatch/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,gBAAgB,QAAQ,cAAc;AAC/C,SAASC,OAAO,QAAQ,qBAAY;AAEpC,SAASC,wBAAwB,QAAQ,+BAA4B;AACrE,SAASC,YAAY,QAAQ,sBAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAyB3C,MAAMC,SAAS,GAAGH,YAAY,CAC5B,CACEI,KAAK,EACL;EACEC,KAAK;EACLC,IAAI;EACJC,MAAM;EACNC;AAMF,CAAC,MACG;EACJC,IAAI,EAAE;IACJC,KAAK,EAAEJ,IAAI;IACXK,MAAM,EAAEL,IAAI;IACZM,YAAY,EAAER,KAAK,CAACS,EAAE,CAACN,MAAM,CAACA,MAAM,CAAC;IACrCO,eAAe,EAAET,KAAK;IACtBU,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBC,QAAQ,EAAE,QAAQ;IAClB,IAAIT,UAAU,IAAI;MAChBU,WAAW,EAAE,MAAM;MACnBC,YAAY,EAAE;QAAET,KAAK,EAAE,CAAC;QAAEC,MAAM,EAAE;MAAE,CAAC;MACrCS,aAAa,EAAE,GAAG;MACl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