@mexi/uikit 0.0.1

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 (394) hide show
  1. package/CHANGELOG.md +1020 -0
  2. package/README.md +40 -0
  3. package/dist/ResetCSS.d.ts +2 -0
  4. package/dist/components/Alert/Alert.d.ts +4 -0
  5. package/dist/components/Alert/index.d.ts +3 -0
  6. package/dist/components/Alert/theme.d.ts +3 -0
  7. package/dist/components/Alert/types.d.ts +17 -0
  8. package/dist/components/BalanceInput/BalanceInput.d.ts +4 -0
  9. package/dist/components/BalanceInput/TextField.d.ts +4 -0
  10. package/dist/components/BalanceInput/index.d.ts +3 -0
  11. package/dist/components/BalanceInput/styles.d.ts +9 -0
  12. package/dist/components/BalanceInput/types.d.ts +22 -0
  13. package/dist/components/BaseMenu/BaseMenu.d.ts +4 -0
  14. package/dist/components/BaseMenu/InlineMenu.d.ts +5 -0
  15. package/dist/components/BaseMenu/SubMenu.d.ts +5 -0
  16. package/dist/components/BaseMenu/index.d.ts +5 -0
  17. package/dist/components/BaseMenu/styles.d.ts +4 -0
  18. package/dist/components/BaseMenu/types.d.ts +12 -0
  19. package/dist/components/BottomNav/BottomNav.d.ts +4 -0
  20. package/dist/components/BottomNav/constants.d.ts +2 -0
  21. package/dist/components/BottomNav/index.d.ts +1 -0
  22. package/dist/components/BottomNav/mock.d.ts +3 -0
  23. package/dist/components/BottomNav/styles.d.ts +3 -0
  24. package/dist/components/BottomNav/types.d.ts +7 -0
  25. package/dist/components/BottomNavItem/BottomNavItem.d.ts +4 -0
  26. package/dist/components/BottomNavItem/index.d.ts +1 -0
  27. package/dist/components/BottomNavItem/styles.d.ts +2 -0
  28. package/dist/components/BottomNavItem/types.d.ts +7 -0
  29. package/dist/components/Box/Box.d.ts +3 -0
  30. package/dist/components/Box/Flex.d.ts +3 -0
  31. package/dist/components/Box/Grid.d.ts +3 -0
  32. package/dist/components/Box/index.d.ts +4 -0
  33. package/dist/components/Box/types.d.ts +8 -0
  34. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +4 -0
  35. package/dist/components/Breadcrumbs/index.d.ts +2 -0
  36. package/dist/components/Breadcrumbs/types.d.ts +5 -0
  37. package/dist/components/Button/Button.d.ts +13 -0
  38. package/dist/components/Button/ExpandableButton.d.ts +8 -0
  39. package/dist/components/Button/IconButton.d.ts +3 -0
  40. package/dist/components/Button/StyledButton.d.ts +4 -0
  41. package/dist/components/Button/index.d.ts +4 -0
  42. package/dist/components/Button/theme.d.ts +58 -0
  43. package/dist/components/Button/types.d.ts +40 -0
  44. package/dist/components/ButtonMenu/ButtonMenu.d.ts +4 -0
  45. package/dist/components/ButtonMenu/ButtonMenuItem.d.ts +4 -0
  46. package/dist/components/ButtonMenu/index.d.ts +3 -0
  47. package/dist/components/ButtonMenu/types.d.ts +15 -0
  48. package/dist/components/CakePrice/CakePrice.d.ts +8 -0
  49. package/dist/components/CakePrice/index.d.ts +2 -0
  50. package/dist/components/Card/Card.d.ts +4 -0
  51. package/dist/components/Card/CardBody.d.ts +4 -0
  52. package/dist/components/Card/CardFooter.d.ts +4 -0
  53. package/dist/components/Card/CardHeader.d.ts +7 -0
  54. package/dist/components/Card/CardRibbon.d.ts +4 -0
  55. package/dist/components/Card/StyledCard.d.ts +11 -0
  56. package/dist/components/Card/index.d.ts +6 -0
  57. package/dist/components/Card/theme.d.ts +3 -0
  58. package/dist/components/Card/types.d.ts +31 -0
  59. package/dist/components/Checkbox/Checkbox.d.ts +5 -0
  60. package/dist/components/Checkbox/index.d.ts +2 -0
  61. package/dist/components/Checkbox/types.d.ts +8 -0
  62. package/dist/components/Dropdown/Dropdown.d.ts +4 -0
  63. package/dist/components/Dropdown/index.d.ts +2 -0
  64. package/dist/components/Dropdown/types.d.ts +8 -0
  65. package/dist/components/DropdownMenu/DropdownMenu.d.ts +4 -0
  66. package/dist/components/DropdownMenu/index.d.ts +2 -0
  67. package/dist/components/DropdownMenu/mock.d.ts +3 -0
  68. package/dist/components/DropdownMenu/styles.d.ts +15 -0
  69. package/dist/components/DropdownMenu/types.d.ts +36 -0
  70. package/dist/components/FallingBunnies/FallingBunnies.d.ts +4 -0
  71. package/dist/components/FallingBunnies/index.d.ts +2 -0
  72. package/dist/components/FallingBunnies/types.d.ts +11 -0
  73. package/dist/components/Footer/Components/SocialLinks.d.ts +4 -0
  74. package/dist/components/Footer/Footer.d.ts +4 -0
  75. package/dist/components/Footer/config.d.ts +18 -0
  76. package/dist/components/Footer/index.d.ts +1 -0
  77. package/dist/components/Footer/styles.d.ts +8 -0
  78. package/dist/components/Footer/types.d.ts +20 -0
  79. package/dist/components/Heading/Heading.d.ts +5 -0
  80. package/dist/components/Heading/index.d.ts +2 -0
  81. package/dist/components/Heading/types.d.ts +20 -0
  82. package/dist/components/Image/BackgroundImage.d.ts +4 -0
  83. package/dist/components/Image/Image.d.ts +4 -0
  84. package/dist/components/Image/Placeholder.d.ts +2 -0
  85. package/dist/components/Image/ProfileAvatar.d.ts +4 -0
  86. package/dist/components/Image/TokenImage.d.ts +3 -0
  87. package/dist/components/Image/TokenPairImage.d.ts +4 -0
  88. package/dist/components/Image/Wrapper.d.ts +4 -0
  89. package/dist/components/Image/index.d.ts +6 -0
  90. package/dist/components/Image/options.d.ts +6 -0
  91. package/dist/components/Image/styles.d.ts +8 -0
  92. package/dist/components/Image/tokens.d.ts +1545 -0
  93. package/dist/components/Image/types.d.ts +29 -0
  94. package/dist/components/Input/Input.d.ts +4 -0
  95. package/dist/components/Input/InputGroup.d.ts +4 -0
  96. package/dist/components/Input/index.d.ts +3 -0
  97. package/dist/components/Input/types.d.ts +19 -0
  98. package/dist/components/LangSelector/LangSelector.d.ts +16 -0
  99. package/dist/components/LangSelector/MenuButton.d.ts +12 -0
  100. package/dist/components/LangSelector/types.d.ts +5 -0
  101. package/dist/components/Layouts/BaseLayout.d.ts +2 -0
  102. package/dist/components/Layouts/CardsLayout.d.ts +2 -0
  103. package/dist/components/Layouts/index.d.ts +2 -0
  104. package/dist/components/Link/Link.d.ts +4 -0
  105. package/dist/components/Link/LinkExternal.d.ts +4 -0
  106. package/dist/components/Link/index.d.ts +3 -0
  107. package/dist/components/Link/types.d.ts +5 -0
  108. package/dist/components/MenuItem/MenuItem.d.ts +4 -0
  109. package/dist/components/MenuItem/index.d.ts +1 -0
  110. package/dist/components/MenuItem/styles.d.ts +4 -0
  111. package/dist/components/MenuItem/types.d.ts +13 -0
  112. package/dist/components/MenuItems/MenuItems.d.ts +4 -0
  113. package/dist/components/MenuItems/index.d.ts +1 -0
  114. package/dist/components/MenuItems/mock.d.ts +6 -0
  115. package/dist/components/MenuItems/types.d.ts +15 -0
  116. package/dist/components/Message/Message.d.ts +4 -0
  117. package/dist/components/Message/index.d.ts +2 -0
  118. package/dist/components/Message/theme.d.ts +11 -0
  119. package/dist/components/Message/types.d.ts +11 -0
  120. package/dist/components/NotificationDot/NotificationDot.d.ts +4 -0
  121. package/dist/components/NotificationDot/index.d.ts +2 -0
  122. package/dist/components/NotificationDot/types.d.ts +11 -0
  123. package/dist/components/Overlay/Overlay.d.ts +5 -0
  124. package/dist/components/Overlay/index.d.ts +2 -0
  125. package/dist/components/Overlay/types.d.ts +4 -0
  126. package/dist/components/PancakeToggle/PancakeToggle.d.ts +4 -0
  127. package/dist/components/PancakeToggle/StyledPancakeToggle.d.ts +4 -0
  128. package/dist/components/PancakeToggle/index.d.ts +2 -0
  129. package/dist/components/PancakeToggle/theme.d.ts +3 -0
  130. package/dist/components/PancakeToggle/types.d.ts +41 -0
  131. package/dist/components/Progress/Progress.d.ts +4 -0
  132. package/dist/components/Progress/ProgressBunnyWrapper.d.ts +2 -0
  133. package/dist/components/Progress/StyledProgress.d.ts +13 -0
  134. package/dist/components/Progress/index.d.ts +2 -0
  135. package/dist/components/Progress/themes.d.ts +17 -0
  136. package/dist/components/Progress/types.d.ts +18 -0
  137. package/dist/components/Radio/Radio.d.ts +5 -0
  138. package/dist/components/Radio/index.d.ts +2 -0
  139. package/dist/components/Radio/theme.d.ts +3 -0
  140. package/dist/components/Radio/types.d.ts +12 -0
  141. package/dist/components/Skeleton/Skeleton.d.ts +4 -0
  142. package/dist/components/Skeleton/index.d.ts +2 -0
  143. package/dist/components/Skeleton/types.d.ts +15 -0
  144. package/dist/components/Slider/Slider.d.ts +4 -0
  145. package/dist/components/Slider/index.d.ts +2 -0
  146. package/dist/components/Slider/styles.d.ts +18 -0
  147. package/dist/components/Slider/types.d.ts +11 -0
  148. package/dist/components/Spinner/PanIcon.d.ts +4 -0
  149. package/dist/components/Spinner/PancakeIcon.d.ts +4 -0
  150. package/dist/components/Spinner/Spinner.d.ts +4 -0
  151. package/dist/components/Spinner/index.d.ts +2 -0
  152. package/dist/components/Spinner/types.d.ts +3 -0
  153. package/dist/components/Stepper/Step.d.ts +8 -0
  154. package/dist/components/Stepper/Stepper.d.ts +3 -0
  155. package/dist/components/Stepper/index.d.ts +3 -0
  156. package/dist/components/Stepper/types.d.ts +18 -0
  157. package/dist/components/SubMenuItems/SubMenuItems.d.ts +4 -0
  158. package/dist/components/SubMenuItems/index.d.ts +2 -0
  159. package/dist/components/SubMenuItems/mock.d.ts +10 -0
  160. package/dist/components/SubMenuItems/styles.d.ts +4 -0
  161. package/dist/components/SubMenuItems/types.d.ts +12 -0
  162. package/dist/components/Svg/AnimatedIconComponent.d.ts +4 -0
  163. package/dist/components/Svg/IconComponent.d.ts +6 -0
  164. package/dist/components/Svg/Icons/Account.d.ts +4 -0
  165. package/dist/components/Svg/Icons/AccountFilled.d.ts +4 -0
  166. package/dist/components/Svg/Icons/Add.d.ts +4 -0
  167. package/dist/components/Svg/Icons/ArrowBack.d.ts +4 -0
  168. package/dist/components/Svg/Icons/ArrowDown.d.ts +4 -0
  169. package/dist/components/Svg/Icons/ArrowDropDown.d.ts +4 -0
  170. package/dist/components/Svg/Icons/ArrowDropUp.d.ts +4 -0
  171. package/dist/components/Svg/Icons/ArrowFirst.d.ts +4 -0
  172. package/dist/components/Svg/Icons/ArrowForward.d.ts +4 -0
  173. package/dist/components/Svg/Icons/ArrowLast.d.ts +4 -0
  174. package/dist/components/Svg/Icons/ArrowUp.d.ts +4 -0
  175. package/dist/components/Svg/Icons/AutoRenew.d.ts +4 -0
  176. package/dist/components/Svg/Icons/Binance.d.ts +4 -0
  177. package/dist/components/Svg/Icons/BinanceChain.d.ts +4 -0
  178. package/dist/components/Svg/Icons/Block.d.ts +4 -0
  179. package/dist/components/Svg/Icons/BnbUsdtPairToken.d.ts +4 -0
  180. package/dist/components/Svg/Icons/BscScan.d.ts +4 -0
  181. package/dist/components/Svg/Icons/BunnyCards.d.ts +4 -0
  182. package/dist/components/Svg/Icons/BunnyPlaceholder.d.ts +4 -0
  183. package/dist/components/Svg/Icons/Calculate.d.ts +4 -0
  184. package/dist/components/Svg/Icons/Camera.d.ts +4 -0
  185. package/dist/components/Svg/Icons/CardView.d.ts +4 -0
  186. package/dist/components/Svg/Icons/Cards.d.ts +4 -0
  187. package/dist/components/Svg/Icons/Chart.d.ts +4 -0
  188. package/dist/components/Svg/Icons/Checkmark.d.ts +4 -0
  189. package/dist/components/Svg/Icons/CheckmarkCircle.d.ts +4 -0
  190. package/dist/components/Svg/Icons/CheckmarkCircleFill.d.ts +4 -0
  191. package/dist/components/Svg/Icons/ChevronDown.d.ts +4 -0
  192. package/dist/components/Svg/Icons/ChevronLeft.d.ts +4 -0
  193. package/dist/components/Svg/Icons/ChevronRight.d.ts +4 -0
  194. package/dist/components/Svg/Icons/ChevronUp.d.ts +4 -0
  195. package/dist/components/Svg/Icons/CircleOutline.d.ts +4 -0
  196. package/dist/components/Svg/Icons/Close.d.ts +4 -0
  197. package/dist/components/Svg/Icons/Cog.d.ts +4 -0
  198. package/dist/components/Svg/Icons/Coin98.d.ts +4 -0
  199. package/dist/components/Svg/Icons/Community.d.ts +4 -0
  200. package/dist/components/Svg/Icons/CommunityFilled.d.ts +4 -0
  201. package/dist/components/Svg/Icons/Copy.d.ts +4 -0
  202. package/dist/components/Svg/Icons/Crown.d.ts +4 -0
  203. package/dist/components/Svg/Icons/Currency.d.ts +4 -0
  204. package/dist/components/Svg/Icons/Earn.d.ts +4 -0
  205. package/dist/components/Svg/Icons/EarnFill.d.ts +4 -0
  206. package/dist/components/Svg/Icons/EarnFilled.d.ts +4 -0
  207. package/dist/components/Svg/Icons/Ellipsis.d.ts +4 -0
  208. package/dist/components/Svg/Icons/Error.d.ts +4 -0
  209. package/dist/components/Svg/Icons/Expand.d.ts +4 -0
  210. package/dist/components/Svg/Icons/Farm.d.ts +4 -0
  211. package/dist/components/Svg/Icons/Github.d.ts +4 -0
  212. package/dist/components/Svg/Icons/Groups.d.ts +4 -0
  213. package/dist/components/Svg/Icons/Hamburger.d.ts +4 -0
  214. package/dist/components/Svg/Icons/HamburgerClose.d.ts +4 -0
  215. package/dist/components/Svg/Icons/Help.d.ts +4 -0
  216. package/dist/components/Svg/Icons/History.d.ts +4 -0
  217. package/dist/components/Svg/Icons/Home.d.ts +4 -0
  218. package/dist/components/Svg/Icons/Ifo.d.ts +4 -0
  219. package/dist/components/Svg/Icons/Info.d.ts +4 -0
  220. package/dist/components/Svg/Icons/Instagram.d.ts +4 -0
  221. package/dist/components/Svg/Icons/Language.d.ts +4 -0
  222. package/dist/components/Svg/Icons/LanguageCurrency.d.ts +4 -0
  223. package/dist/components/Svg/Icons/LaurelLeft.d.ts +4 -0
  224. package/dist/components/Svg/Icons/LaurelRight.d.ts +4 -0
  225. package/dist/components/Svg/Icons/ListView.d.ts +4 -0
  226. package/dist/components/Svg/Icons/Login.d.ts +4 -0
  227. package/dist/components/Svg/Icons/Logo.d.ts +4 -0
  228. package/dist/components/Svg/Icons/LogoRound.d.ts +4 -0
  229. package/dist/components/Svg/Icons/LogoWithText.d.ts +4 -0
  230. package/dist/components/Svg/Icons/Logout.d.ts +4 -0
  231. package/dist/components/Svg/Icons/MathWallet.d.ts +4 -0
  232. package/dist/components/Svg/Icons/MedalBronze.d.ts +4 -0
  233. package/dist/components/Svg/Icons/MedalGold.d.ts +4 -0
  234. package/dist/components/Svg/Icons/MedalPurple.d.ts +4 -0
  235. package/dist/components/Svg/Icons/MedalSilver.d.ts +4 -0
  236. package/dist/components/Svg/Icons/MedalTeal.d.ts +4 -0
  237. package/dist/components/Svg/Icons/Metamask.d.ts +4 -0
  238. package/dist/components/Svg/Icons/Minus.d.ts +4 -0
  239. package/dist/components/Svg/Icons/Moon.d.ts +4 -0
  240. package/dist/components/Svg/Icons/More.d.ts +4 -0
  241. package/dist/components/Svg/Icons/MoreHorizontal.d.ts +4 -0
  242. package/dist/components/Svg/Icons/MoreVertical.d.ts +4 -0
  243. package/dist/components/Svg/Icons/Nft.d.ts +4 -0
  244. package/dist/components/Svg/Icons/NftFill.d.ts +4 -0
  245. package/dist/components/Svg/Icons/NftFilled.d.ts +4 -0
  246. package/dist/components/Svg/Icons/NoProfileAvatar.d.ts +4 -0
  247. package/dist/components/Svg/Icons/OpenNew.d.ts +4 -0
  248. package/dist/components/Svg/Icons/PancakeRound.d.ts +4 -0
  249. package/dist/components/Svg/Icons/Pancakes.d.ts +4 -0
  250. package/dist/components/Svg/Icons/Pencil.d.ts +4 -0
  251. package/dist/components/Svg/Icons/PlayCircleOutline.d.ts +4 -0
  252. package/dist/components/Svg/Icons/PocketWatch.d.ts +4 -0
  253. package/dist/components/Svg/Icons/Pool.d.ts +4 -0
  254. package/dist/components/Svg/Icons/Predictions.d.ts +4 -0
  255. package/dist/components/Svg/Icons/PresentCheck.d.ts +4 -0
  256. package/dist/components/Svg/Icons/PresentNone.d.ts +4 -0
  257. package/dist/components/Svg/Icons/PresentWon.d.ts +4 -0
  258. package/dist/components/Svg/Icons/Prize.d.ts +4 -0
  259. package/dist/components/Svg/Icons/ProgressBunny.d.ts +4 -0
  260. package/dist/components/Svg/Icons/Proposal.d.ts +4 -0
  261. package/dist/components/Svg/Icons/Reddit.d.ts +4 -0
  262. package/dist/components/Svg/Icons/Refresh.d.ts +4 -0
  263. package/dist/components/Svg/Icons/Remove.d.ts +4 -0
  264. package/dist/components/Svg/Icons/Resources.d.ts +4 -0
  265. package/dist/components/Svg/Icons/ResourcesFilled.d.ts +4 -0
  266. package/dist/components/Svg/Icons/SafePal.d.ts +4 -0
  267. package/dist/components/Svg/Icons/Search.d.ts +4 -0
  268. package/dist/components/Svg/Icons/Sell.d.ts +4 -0
  269. package/dist/components/Svg/Icons/Share.d.ts +4 -0
  270. package/dist/components/Svg/Icons/Shrink.d.ts +4 -0
  271. package/dist/components/Svg/Icons/SmallDot.d.ts +4 -0
  272. package/dist/components/Svg/Icons/StarFill.d.ts +4 -0
  273. package/dist/components/Svg/Icons/StarLine.d.ts +4 -0
  274. package/dist/components/Svg/Icons/Sun.d.ts +4 -0
  275. package/dist/components/Svg/Icons/Swap.d.ts +4 -0
  276. package/dist/components/Svg/Icons/SwapFill.d.ts +4 -0
  277. package/dist/components/Svg/Icons/SwapVert.d.ts +4 -0
  278. package/dist/components/Svg/Icons/SyncAlt.d.ts +4 -0
  279. package/dist/components/Svg/Icons/TeamBattle.d.ts +4 -0
  280. package/dist/components/Svg/Icons/TeamPlayer.d.ts +4 -0
  281. package/dist/components/Svg/Icons/Telegram.d.ts +4 -0
  282. package/dist/components/Svg/Icons/Testnet.d.ts +4 -0
  283. package/dist/components/Svg/Icons/Ticket.d.ts +4 -0
  284. package/dist/components/Svg/Icons/TicketFill.d.ts +4 -0
  285. package/dist/components/Svg/Icons/TicketRound.d.ts +4 -0
  286. package/dist/components/Svg/Icons/Timer.d.ts +4 -0
  287. package/dist/components/Svg/Icons/TokenPocket.d.ts +4 -0
  288. package/dist/components/Svg/Icons/Trade.d.ts +4 -0
  289. package/dist/components/Svg/Icons/TradeFilled.d.ts +4 -0
  290. package/dist/components/Svg/Icons/Trophy.d.ts +4 -0
  291. package/dist/components/Svg/Icons/TrophyFill.d.ts +4 -0
  292. package/dist/components/Svg/Icons/TrophyGold.d.ts +4 -0
  293. package/dist/components/Svg/Icons/TrustWallet.d.ts +4 -0
  294. package/dist/components/Svg/Icons/Tune.d.ts +4 -0
  295. package/dist/components/Svg/Icons/Twitter.d.ts +6 -0
  296. package/dist/components/Svg/Icons/Verified.d.ts +4 -0
  297. package/dist/components/Svg/Icons/VisibilityOff.d.ts +4 -0
  298. package/dist/components/Svg/Icons/VisibilityOn.d.ts +4 -0
  299. package/dist/components/Svg/Icons/VolumeOff.d.ts +4 -0
  300. package/dist/components/Svg/Icons/VolumeUp.d.ts +4 -0
  301. package/dist/components/Svg/Icons/Vote.d.ts +4 -0
  302. package/dist/components/Svg/Icons/Wait.d.ts +4 -0
  303. package/dist/components/Svg/Icons/Wallet.d.ts +4 -0
  304. package/dist/components/Svg/Icons/WalletConnect.d.ts +4 -0
  305. package/dist/components/Svg/Icons/WalletFilled.d.ts +4 -0
  306. package/dist/components/Svg/Icons/Warning.d.ts +4 -0
  307. package/dist/components/Svg/Svg.d.ts +3 -0
  308. package/dist/components/Svg/index.d.ts +146 -0
  309. package/dist/components/Svg/styles.d.ts +10 -0
  310. package/dist/components/Svg/types.d.ts +16 -0
  311. package/dist/components/TabMenu/Tab.d.ts +3 -0
  312. package/dist/components/TabMenu/TabMenu.d.ts +4 -0
  313. package/dist/components/TabMenu/index.d.ts +3 -0
  314. package/dist/components/TabMenu/types.d.ts +12 -0
  315. package/dist/components/Table/Cell.d.ts +5 -0
  316. package/dist/components/Table/Table.d.ts +2 -0
  317. package/dist/components/Table/example/const.d.ts +28 -0
  318. package/dist/components/Table/example/header.d.ts +2 -0
  319. package/dist/components/Table/hooks.d.ts +7 -0
  320. package/dist/components/Table/index.d.ts +5 -0
  321. package/dist/components/Table/types.d.ts +145 -0
  322. package/dist/components/Table/utils.d.ts +2 -0
  323. package/dist/components/Tag/StyledTag.d.ts +8 -0
  324. package/dist/components/Tag/Tag.d.ts +4 -0
  325. package/dist/components/Tag/index.d.ts +2 -0
  326. package/dist/components/Tag/theme.d.ts +38 -0
  327. package/dist/components/Tag/types.d.ts +26 -0
  328. package/dist/components/Text/Text.d.ts +4 -0
  329. package/dist/components/Text/TooltipText.d.ts +2 -0
  330. package/dist/components/Text/index.d.ts +3 -0
  331. package/dist/components/Text/types.d.ts +9 -0
  332. package/dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +7 -0
  333. package/dist/components/ThemeSwitcher/index.d.ts +2 -0
  334. package/dist/components/Timeline/InfoTooltip.d.ts +8 -0
  335. package/dist/components/Timeline/Timeline.d.ts +4 -0
  336. package/dist/components/Timeline/index.d.ts +2 -0
  337. package/dist/components/Timeline/styles.d.ts +4 -0
  338. package/dist/components/Timeline/types.d.ts +11 -0
  339. package/dist/components/Toggle/StyledToggle.d.ts +5 -0
  340. package/dist/components/Toggle/Toggle.d.ts +4 -0
  341. package/dist/components/Toggle/index.d.ts +2 -0
  342. package/dist/components/Toggle/theme.d.ts +5 -0
  343. package/dist/components/Toggle/types.d.ts +38 -0
  344. package/dist/components/Tooltip/theme.d.ts +3 -0
  345. package/dist/components/Tooltip/types.d.ts +5 -0
  346. package/dist/hooks/index.d.ts +4 -0
  347. package/dist/hooks/useKonamiCheatCode.d.ts +2 -0
  348. package/dist/hooks/useMatchBreakpoints.d.ts +10 -0
  349. package/dist/hooks/useParticleBurst.d.ts +20 -0
  350. package/dist/hooks/useTooltip/StyledTooltip.d.ts +2 -0
  351. package/dist/hooks/useTooltip/index.d.ts +3 -0
  352. package/dist/hooks/useTooltip/types.d.ts +15 -0
  353. package/dist/hooks/useTooltip/useTooltip.d.ts +4 -0
  354. package/dist/index.cjs.js +5589 -0
  355. package/dist/index.d.ts +42 -0
  356. package/dist/index.esm.js +5316 -0
  357. package/dist/setupTests.d.ts +1 -0
  358. package/dist/testHelpers.d.ts +4 -0
  359. package/dist/theme/base.d.ts +39 -0
  360. package/dist/theme/colors.d.ts +19 -0
  361. package/dist/theme/dark.d.ts +3 -0
  362. package/dist/theme/index.d.ts +32 -0
  363. package/dist/theme/light.d.ts +3 -0
  364. package/dist/theme/types.d.ts +70 -0
  365. package/dist/util/getExternalLinkProps.d.ts +5 -0
  366. package/dist/util/getThemeValue.d.ts +3 -0
  367. package/dist/util/isTouchDevice.d.ts +2 -0
  368. package/dist/widgets/Menu/Menu.d.ts +4 -0
  369. package/dist/widgets/Menu/components/Logo.d.ts +7 -0
  370. package/dist/widgets/Menu/components/UserMenu/MenuIcon.d.ts +11 -0
  371. package/dist/widgets/Menu/components/UserMenu/index.d.ts +6 -0
  372. package/dist/widgets/Menu/components/UserMenu/styles.d.ts +3 -0
  373. package/dist/widgets/Menu/components/UserMenu/types.d.ts +17 -0
  374. package/dist/widgets/Menu/config.d.ts +15 -0
  375. package/dist/widgets/Menu/images/logo.d.ts +6 -0
  376. package/dist/widgets/Menu/index.d.ts +9 -0
  377. package/dist/widgets/Menu/theme.d.ts +5 -0
  378. package/dist/widgets/Menu/types.d.ts +30 -0
  379. package/dist/widgets/Modal/Modal.d.ts +4 -0
  380. package/dist/widgets/Modal/ModalContext.d.ts +14 -0
  381. package/dist/widgets/Modal/index.d.ts +5 -0
  382. package/dist/widgets/Modal/styles.d.ts +16 -0
  383. package/dist/widgets/Modal/theme.d.ts +3 -0
  384. package/dist/widgets/Modal/types.d.ts +16 -0
  385. package/dist/widgets/Modal/useModal.d.ts +4 -0
  386. package/dist/widgets/WalletModal/AccountModal.d.ts +9 -0
  387. package/dist/widgets/WalletModal/ConnectModal.d.ts +10 -0
  388. package/dist/widgets/WalletModal/CopyToClipboard.d.ts +6 -0
  389. package/dist/widgets/WalletModal/WalletCard.d.ts +14 -0
  390. package/dist/widgets/WalletModal/config.d.ts +5 -0
  391. package/dist/widgets/WalletModal/index.d.ts +4 -0
  392. package/dist/widgets/WalletModal/types.d.ts +14 -0
  393. package/dist/widgets/WalletModal/useWalletModal.d.ts +7 -0
  394. package/package.json +56 -0
package/README.md ADDED
@@ -0,0 +1,40 @@
1
+ # 🥞 Pancake UIkit
2
+
3
+ [![Version](https://img.shields.io/npm/v/@pancakeswap-libs/uikit)](https://www.npmjs.com/package/@pancakeswap-libs/uikit) [![Size](https://img.shields.io/bundlephobia/min/@pancakeswap-libs/uikit)](https://www.npmjs.com/package/@pancakeswap-libs/uikit)
4
+
5
+ Pancake UIkit is a set of React components and hooks used to build pages on Pancake's apps. It also contains a theme file for dark and light mode.
6
+
7
+ ## Install
8
+
9
+ `yarn add @pancakeswap-libs/uikit`
10
+
11
+ ## Setup
12
+
13
+ ### Theme
14
+
15
+ Before using Pancake UIkit, you need to provide the theme file to styled-component.
16
+
17
+ ```
18
+ import { ThemeProvider } from 'styled-components'
19
+ import { light, dark } from '@pancakeswap-libs/uikit'
20
+ ...
21
+ <ThemeProvider theme={isDark}>...</ThemeProvider>
22
+ ```
23
+
24
+ ### Reset
25
+
26
+ A reset CSS is available as a global styled component.
27
+
28
+ ```
29
+ import { ResetCSS } from '@pancakeswap-libs/uikit'
30
+ ...
31
+ <ResetCSS />
32
+ ```
33
+
34
+ ### Types
35
+
36
+ This project is built with Typescript and export all the relevant types.
37
+
38
+ ## How to use the UIkit
39
+
40
+ If you want to use components from the UIkit, check the [Storybook documentation](https://pancakeswap.github.io/pancake-uikit/)
@@ -0,0 +1,2 @@
1
+ declare const ResetCSS: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
2
+ export default ResetCSS;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { AlertProps } from "./types";
3
+ declare const Alert: React.FC<AlertProps>;
4
+ export default Alert;
@@ -0,0 +1,3 @@
1
+ export { default as Alert } from "./Alert";
2
+ export { variants as alertVariants } from "./types";
3
+ export type { AlertProps, Variants as AlertVariants } from "./types";
@@ -0,0 +1,3 @@
1
+ import { AlertTheme } from "./types";
2
+ export declare const light: AlertTheme;
3
+ export declare const dark: AlertTheme;
@@ -0,0 +1,17 @@
1
+ import { MouseEvent, ReactNode } from "react";
2
+ export declare type AlertTheme = {
3
+ background: string;
4
+ };
5
+ export declare const variants: {
6
+ readonly INFO: "info";
7
+ readonly DANGER: "danger";
8
+ readonly SUCCESS: "success";
9
+ readonly WARNING: "warning";
10
+ };
11
+ export declare type Variants = typeof variants[keyof typeof variants];
12
+ export interface AlertProps {
13
+ variant?: Variants;
14
+ title: string;
15
+ children?: ReactNode;
16
+ onClick?: (evt: MouseEvent<HTMLButtonElement>) => void;
17
+ }
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { BalanceInputProps } from "./types";
3
+ declare const BalanceInput: React.FC<BalanceInputProps>;
4
+ export default BalanceInput;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { TextfieldProps } from "./types";
3
+ declare const Textfield: React.FC<TextfieldProps>;
4
+ export default Textfield;
@@ -0,0 +1,3 @@
1
+ export { default as BalanceInput } from "./BalanceInput";
2
+ export { default as TextField } from "./TextField";
3
+ export type { BalanceInputProps, TextfieldProps } from "./types";
@@ -0,0 +1,9 @@
1
+ import { BalanceInputProps } from "./types";
2
+ export declare const SwitchUnitsButton: import("styled-components").StyledComponent<import("../Button/types").PolymorphicComponent<import("../Button").BaseButtonProps, "button">, import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const UnitContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Text").TextProps, never>;
4
+ export declare const StyledBalanceInput: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Box").BoxProps & {
5
+ isWarning: BalanceInputProps["isWarning"];
6
+ }, never>;
7
+ export declare const StyledInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, import("../Input").InputProps & {
8
+ textAlign?: string | undefined;
9
+ }, never>;
@@ -0,0 +1,22 @@
1
+ import { InputHTMLAttributes, ReactNode, ReactText } from "react";
2
+ import { BoxProps } from "../Box";
3
+ export interface BalanceInputProps extends BoxProps {
4
+ value: ReactText;
5
+ onUserInput: (input: string) => void;
6
+ innerRef?: React.RefObject<HTMLInputElement>;
7
+ currencyValue?: ReactNode;
8
+ placeholder?: string;
9
+ inputProps?: Omit<InputHTMLAttributes<HTMLInputElement>, "value" | "placeholder" | "onChange">;
10
+ isWarning?: boolean;
11
+ decimals?: number;
12
+ unit?: string;
13
+ switchEditingUnits?: () => void;
14
+ }
15
+ export interface TextfieldProps {
16
+ label: ReactNode;
17
+ value: ReactText;
18
+ placeholder?: string;
19
+ onUserInput: (input: string) => void;
20
+ inputProps?: Omit<InputHTMLAttributes<HTMLInputElement>, "value" | "placeholder" | "onChange">;
21
+ isWarning?: boolean;
22
+ }
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { BaseMenuProps } from "./types";
3
+ declare const BaseMenu: React.FC<BaseMenuProps>;
4
+ export default BaseMenu;
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import { BoxProps } from "../Box";
3
+ import { BaseMenuProps } from "./types";
4
+ declare const InlineMenu: React.FC<BaseMenuProps & BoxProps>;
5
+ export default InlineMenu;
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import { FlexProps } from "../Box";
3
+ import { BaseMenuProps } from "./types";
4
+ declare const SubMenu: React.FC<BaseMenuProps & FlexProps>;
5
+ export default SubMenu;
@@ -0,0 +1,5 @@
1
+ export { default as BaseMenu } from "./BaseMenu";
2
+ export { default as InlineMenu } from "./InlineMenu";
3
+ export { default as SubMenu } from "./SubMenu";
4
+ export * from "./styles";
5
+ export type { MenuOptions, BaseMenuProps } from "./types";
@@ -0,0 +1,4 @@
1
+ export declare const InlineMenuContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Box").BoxProps, never>;
2
+ export declare const SubMenuContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Box").BoxProps & import("../Box").FlexProps, never>;
3
+ export declare const ClickableElementContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const SubMenuItem: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from "react";
2
+ import { Placement, Padding } from "@popperjs/core";
3
+ export interface MenuOptions {
4
+ placement?: Placement;
5
+ offset?: [number, number];
6
+ padding?: Padding;
7
+ }
8
+ export interface BaseMenuProps {
9
+ component: ReactNode;
10
+ options?: MenuOptions;
11
+ isOpen?: boolean;
12
+ }
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { BottomNavProps } from "./types";
3
+ declare const BottomNav: React.FC<BottomNavProps>;
4
+ export default BottomNav;
@@ -0,0 +1,2 @@
1
+ declare const MAX_TIME_PRESSED = 500;
2
+ export default MAX_TIME_PRESSED;
@@ -0,0 +1 @@
1
+ export { default } from "./BottomNav";
@@ -0,0 +1,3 @@
1
+ import { MenuItemsType } from "../MenuItems/types";
2
+ declare const MenuItemsMock: MenuItemsType[];
3
+ export default MenuItemsMock;
@@ -0,0 +1,3 @@
1
+ declare const StyledBottomNav: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Box").BoxProps & import("../Box").FlexProps, never>;
2
+ export declare const StyledOverlay: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
+ export default StyledBottomNav;
@@ -0,0 +1,7 @@
1
+ import { BoxProps } from "../Box";
2
+ import { MenuItemsType } from "../MenuItems/types";
3
+ export interface BottomNavProps extends BoxProps {
4
+ items: MenuItemsType[];
5
+ activeItem?: string;
6
+ activeSubItem?: string;
7
+ }
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { BottomNavItemProps } from "./types";
3
+ declare const BottomNavItem: React.FC<BottomNavItemProps>;
4
+ export default BottomNavItem;
@@ -0,0 +1 @@
1
+ export { default } from "./BottomNavItem";
@@ -0,0 +1,2 @@
1
+ export declare const StyledBottomNavItem: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const StyledBottomNavText: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Text").TextProps, never>;
@@ -0,0 +1,7 @@
1
+ export interface BottomNavItemProps {
2
+ label: string;
3
+ href: string;
4
+ iconName?: string;
5
+ isActive?: boolean;
6
+ showItemsOnMobile?: boolean;
7
+ }
@@ -0,0 +1,3 @@
1
+ import { BoxProps } from "./types";
2
+ declare const Box: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, BoxProps, never>;
3
+ export default Box;
@@ -0,0 +1,3 @@
1
+ import { FlexProps } from "./types";
2
+ declare const Flex: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("./types").BoxProps & FlexProps, never>;
3
+ export default Flex;
@@ -0,0 +1,3 @@
1
+ import { GridProps } from "./types";
2
+ declare const Grid: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("./types").BoxProps & GridProps, never>;
3
+ export default Grid;
@@ -0,0 +1,4 @@
1
+ export { default as Box } from "./Box";
2
+ export { default as Flex } from "./Flex";
3
+ export { default as Grid } from "./Grid";
4
+ export type { BoxProps, FlexProps, GridProps } from "./types";
@@ -0,0 +1,8 @@
1
+ import { HTMLAttributes } from "react";
2
+ import { BackgroundProps, BorderProps, FlexboxProps, LayoutProps, PositionProps, SpaceProps, GridProps as _GridProps } from "styled-system";
3
+ export interface BoxProps extends BackgroundProps, BorderProps, LayoutProps, PositionProps, SpaceProps, HTMLAttributes<HTMLDivElement> {
4
+ }
5
+ export interface FlexProps extends BoxProps, FlexboxProps {
6
+ }
7
+ export interface GridProps extends FlexProps, _GridProps {
8
+ }
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { BreadcrumbsProps } from "./types";
3
+ declare const Breadcrumbs: React.FC<BreadcrumbsProps>;
4
+ export default Breadcrumbs;
@@ -0,0 +1,2 @@
1
+ export { default as Breadcrumbs } from "./Breadcrumbs";
2
+ export type { BreadcrumbsProps } from "./types";
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { SpaceProps } from "styled-system";
3
+ export interface BreadcrumbsProps extends SpaceProps {
4
+ separator?: React.ReactNode;
5
+ }
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import { ButtonProps } from "./types";
3
+ declare const Button: {
4
+ <E extends React.ElementType<any> = "button">(props: ButtonProps<E>): JSX.Element;
5
+ defaultProps: {
6
+ isLoading: boolean;
7
+ external: boolean;
8
+ variant: "primary";
9
+ scale: "md";
10
+ disabled: boolean;
11
+ };
12
+ };
13
+ export default Button;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ interface Props {
3
+ onClick?: () => void;
4
+ expanded?: boolean;
5
+ }
6
+ export declare const ExpandableButton: React.FC<Props>;
7
+ export declare const ExpandableLabel: React.FC<Props>;
8
+ export {};
@@ -0,0 +1,3 @@
1
+ import { BaseButtonProps, PolymorphicComponent } from "./types";
2
+ declare const IconButton: PolymorphicComponent<BaseButtonProps, "button">;
3
+ export default IconButton;
@@ -0,0 +1,4 @@
1
+ import { DefaultTheme } from "styled-components";
2
+ import { BaseButtonProps } from "./types";
3
+ declare const StyledButton: import("styled-components").StyledComponent<"button", DefaultTheme, BaseButtonProps, never>;
4
+ export default StyledButton;
@@ -0,0 +1,4 @@
1
+ export { default as Button } from "./Button";
2
+ export { default as IconButton } from "./IconButton";
3
+ export * from "./ExpandableButton";
4
+ export type { ButtonProps, BaseButtonProps, Scale as ButtonScale, Variant as ButtonVariant } from "./types";
@@ -0,0 +1,58 @@
1
+ export declare const scaleVariants: {
2
+ md: {
3
+ height: string;
4
+ padding: string;
5
+ };
6
+ sm: {
7
+ height: string;
8
+ padding: string;
9
+ };
10
+ xs: {
11
+ height: string;
12
+ fontSize: string;
13
+ padding: string;
14
+ };
15
+ };
16
+ export declare const styleVariants: {
17
+ primary: {
18
+ backgroundColor: string;
19
+ color: string;
20
+ };
21
+ secondary: {
22
+ backgroundColor: string;
23
+ border: string;
24
+ borderColor: string;
25
+ boxShadow: string;
26
+ color: string;
27
+ ":disabled": {
28
+ backgroundColor: string;
29
+ };
30
+ };
31
+ tertiary: {
32
+ backgroundColor: string;
33
+ boxShadow: string;
34
+ color: string;
35
+ };
36
+ subtle: {
37
+ backgroundColor: string;
38
+ color: string;
39
+ };
40
+ danger: {
41
+ backgroundColor: string;
42
+ color: string;
43
+ };
44
+ success: {
45
+ backgroundColor: string;
46
+ color: string;
47
+ };
48
+ text: {
49
+ backgroundColor: string;
50
+ color: string;
51
+ boxShadow: string;
52
+ };
53
+ light: {
54
+ backgroundColor: string;
55
+ color: string;
56
+ boxShadow: string;
57
+ };
58
+ };
@@ -0,0 +1,40 @@
1
+ import { ComponentProps, ElementType, ReactElement, ReactNode } from "react";
2
+ import { Link } from "react-router-dom";
3
+ import { LayoutProps, SpaceProps } from "styled-system";
4
+ export declare const scales: {
5
+ readonly MD: "md";
6
+ readonly SM: "sm";
7
+ readonly XS: "xs";
8
+ };
9
+ export declare const variants: {
10
+ readonly PRIMARY: "primary";
11
+ readonly SECONDARY: "secondary";
12
+ readonly TERTIARY: "tertiary";
13
+ readonly TEXT: "text";
14
+ readonly DANGER: "danger";
15
+ readonly SUBTLE: "subtle";
16
+ readonly SUCCESS: "success";
17
+ readonly LIGHT: "light";
18
+ };
19
+ export declare type Scale = typeof scales[keyof typeof scales];
20
+ export declare type Variant = typeof variants[keyof typeof variants];
21
+ /**
22
+ * @see https://www.benmvp.com/blog/polymorphic-react-components-typescript/
23
+ */
24
+ export declare type AsProps<E extends ElementType = ElementType> = {
25
+ as?: E;
26
+ };
27
+ export declare type MergeProps<E extends ElementType> = AsProps<E> & Omit<ComponentProps<E>, keyof AsProps>;
28
+ export declare type PolymorphicComponentProps<E extends ElementType, P> = P & MergeProps<E>;
29
+ export declare type PolymorphicComponent<P, D extends ElementType = "button"> = <E extends ElementType = D>(props: PolymorphicComponentProps<E, P>) => ReactElement | null;
30
+ export interface BaseButtonProps extends LayoutProps, SpaceProps {
31
+ as?: "a" | "button" | typeof Link;
32
+ external?: boolean;
33
+ isLoading?: boolean;
34
+ scale?: Scale;
35
+ variant?: Variant;
36
+ disabled?: boolean;
37
+ startIcon?: ReactNode;
38
+ endIcon?: ReactNode;
39
+ }
40
+ export declare type ButtonProps<P extends ElementType = "button"> = PolymorphicComponentProps<P, BaseButtonProps>;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { ButtonMenuProps } from "./types";
3
+ declare const ButtonMenu: React.FC<ButtonMenuProps>;
4
+ export default ButtonMenu;
@@ -0,0 +1,4 @@
1
+ import { PolymorphicComponent } from "../Button/types";
2
+ import { ButtonMenuItemProps } from "./types";
3
+ declare const ButtonMenuItem: PolymorphicComponent<ButtonMenuItemProps, "button">;
4
+ export default ButtonMenuItem;
@@ -0,0 +1,3 @@
1
+ export { default as ButtonMenu } from "./ButtonMenu";
2
+ export { default as ButtonMenuItem } from "./ButtonMenuItem";
3
+ export type { ButtonMenuProps, ButtonMenuItemProps } from "./types";
@@ -0,0 +1,15 @@
1
+ import { ReactElement } from "react";
2
+ import { SpaceProps } from "styled-system";
3
+ import { BaseButtonProps, Scale, variants } from "../Button/types";
4
+ export interface ButtonMenuItemProps extends BaseButtonProps {
5
+ isActive?: boolean;
6
+ }
7
+ export interface ButtonMenuProps extends SpaceProps {
8
+ variant?: typeof variants.PRIMARY | typeof variants.SUBTLE;
9
+ activeIndex?: number;
10
+ onItemClick?: (index: number) => void;
11
+ scale?: Scale;
12
+ disabled?: boolean;
13
+ children: ReactElement[];
14
+ fullWidth?: boolean;
15
+ }
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { Colors } from "../../theme";
3
+ export interface Props {
4
+ color?: keyof Colors;
5
+ cakePriceUsd?: number;
6
+ }
7
+ declare const _default: React.NamedExoticComponent<Props>;
8
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as CakePrice } from "./CakePrice";
2
+ export type { Props as CakePriceProps } from "./CakePrice";
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { CardProps } from "./types";
3
+ declare const Card: React.FC<CardProps>;
4
+ export default Card;
@@ -0,0 +1,4 @@
1
+ import { SpaceProps } from "styled-system";
2
+ export declare type CardBodyProps = SpaceProps;
3
+ declare const CardBody: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, CardBodyProps, never>;
4
+ export default CardBody;
@@ -0,0 +1,4 @@
1
+ import { SpaceProps } from "styled-system";
2
+ export declare type CardFooterProps = SpaceProps;
3
+ declare const CardFooter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, CardFooterProps, never>;
4
+ export default CardFooter;
@@ -0,0 +1,7 @@
1
+ import { SpaceProps } from "styled-system";
2
+ import { CardTheme } from "./types";
3
+ export interface CardHeaderProps extends SpaceProps {
4
+ variant?: keyof CardTheme["cardHeaderBackground"];
5
+ }
6
+ declare const CardHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, CardHeaderProps, never>;
7
+ export default CardHeader;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { CardRibbonProps } from "./types";
3
+ declare const CardRibbon: React.FC<CardRibbonProps>;
4
+ export default CardRibbon;
@@ -0,0 +1,11 @@
1
+ import { DefaultTheme } from "styled-components";
2
+ import { CardProps } from "./types";
3
+ interface StyledCardProps extends CardProps {
4
+ theme: DefaultTheme;
5
+ }
6
+ export declare const StyledCard: import("styled-components").StyledComponent<"div", DefaultTheme, StyledCardProps, never>;
7
+ export declare const StyledCardInner: import("styled-components").StyledComponent<"div", DefaultTheme, import("../Box").BoxProps & {
8
+ background?: string | undefined;
9
+ hasCustomBorder: boolean;
10
+ }, never>;
11
+ export {};
@@ -0,0 +1,6 @@
1
+ export { default as Card } from "./Card";
2
+ export { default as CardBody } from "./CardBody";
3
+ export { default as CardHeader } from "./CardHeader";
4
+ export { default as CardFooter } from "./CardFooter";
5
+ export { default as CardRibbon } from "./CardRibbon";
6
+ export type { CardProps, CardRibbonProps } from "./types";
@@ -0,0 +1,3 @@
1
+ import { CardTheme } from "./types";
2
+ export declare const light: CardTheme;
3
+ export declare const dark: CardTheme;
@@ -0,0 +1,31 @@
1
+ import { HTMLAttributes } from "react";
2
+ import { SpaceProps } from "styled-system";
3
+ import { Colors } from "../../theme/types";
4
+ export interface CardRibbonProps extends SpaceProps, HTMLAttributes<HTMLDivElement> {
5
+ variantColor?: keyof Colors;
6
+ text: string;
7
+ ribbonPosition?: "right" | "left";
8
+ }
9
+ export declare type CardTheme = {
10
+ background: string;
11
+ boxShadow: string;
12
+ boxShadowActive: string;
13
+ boxShadowSuccess: string;
14
+ boxShadowWarning: string;
15
+ cardHeaderBackground: {
16
+ default: string;
17
+ blue: string;
18
+ bubblegum: string;
19
+ violet: string;
20
+ };
21
+ dropShadow: string;
22
+ };
23
+ export interface CardProps extends SpaceProps, HTMLAttributes<HTMLDivElement> {
24
+ isActive?: boolean;
25
+ isSuccess?: boolean;
26
+ isWarning?: boolean;
27
+ isDisabled?: boolean;
28
+ ribbon?: React.ReactNode;
29
+ borderBackground?: string;
30
+ background?: string;
31
+ }
@@ -0,0 +1,5 @@
1
+ import { CheckboxProps } from "./types";
2
+ declare const Checkbox: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {
3
+ type: "checkbox";
4
+ } & CheckboxProps, "type">;
5
+ export default Checkbox;
@@ -0,0 +1,2 @@
1
+ export { default as Checkbox } from "./Checkbox";
2
+ export type { CheckboxProps, Scales as CheckboxScales } from "./types";
@@ -0,0 +1,8 @@
1
+ export declare const scales: {
2
+ readonly SM: "sm";
3
+ readonly MD: "md";
4
+ };
5
+ export declare type Scales = typeof scales[keyof typeof scales];
6
+ export interface CheckboxProps {
7
+ scale?: Scales;
8
+ }
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { DropdownProps } from "./types";
3
+ declare const Dropdown: React.FC<DropdownProps>;
4
+ export default Dropdown;
@@ -0,0 +1,2 @@
1
+ export { default as Dropdown } from "./Dropdown";
2
+ export type { DropdownProps } from "./types";
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export declare type Position = "top" | "top-right" | "bottom";
3
+ export interface PositionProps {
4
+ position?: Position;
5
+ }
6
+ export interface DropdownProps extends PositionProps {
7
+ target: React.ReactElement;
8
+ }
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { DropdownMenuProps } from "./types";
3
+ declare const DropdownMenu: React.FC<DropdownMenuProps>;
4
+ export default DropdownMenu;
@@ -0,0 +1,2 @@
1
+ export { default as DropdownMenu } from "./DropdownMenu";
2
+ export type { DropdownMenuProps } from "./types";
@@ -0,0 +1,3 @@
1
+ import { DropdownMenuItems } from "./types";
2
+ declare const ItemsMock: DropdownMenuItems[];
3
+ export default ItemsMock;