midashand-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 (271) hide show
  1. package/README.md +76 -0
  2. package/dist/ResetCSS.d.ts +2 -0
  3. package/dist/components/Alert/Alert.d.ts +4 -0
  4. package/dist/components/Alert/index.d.ts +3 -0
  5. package/dist/components/Alert/theme.d.ts +3 -0
  6. package/dist/components/Alert/types.d.ts +17 -0
  7. package/dist/components/Box/Box.d.ts +3 -0
  8. package/dist/components/Box/Flex.d.ts +3 -0
  9. package/dist/components/Box/index.d.ts +3 -0
  10. package/dist/components/Box/types.d.ts +6 -0
  11. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +4 -0
  12. package/dist/components/Breadcrumbs/index.d.ts +2 -0
  13. package/dist/components/Breadcrumbs/types.d.ts +5 -0
  14. package/dist/components/Button/Button.d.ts +13 -0
  15. package/dist/components/Button/IconButton.d.ts +3 -0
  16. package/dist/components/Button/StyledButton.d.ts +4 -0
  17. package/dist/components/Button/index.d.ts +3 -0
  18. package/dist/components/Button/theme.d.ts +77 -0
  19. package/dist/components/Button/types.d.ts +42 -0
  20. package/dist/components/ButtonMenu/ButtonMenu.d.ts +4 -0
  21. package/dist/components/ButtonMenu/ButtonMenuItem.d.ts +4 -0
  22. package/dist/components/ButtonMenu/StyledButtonMenu.d.ts +6 -0
  23. package/dist/components/ButtonMenu/index.d.ts +3 -0
  24. package/dist/components/ButtonMenu/types.d.ts +12 -0
  25. package/dist/components/Card/Card.d.ts +4 -0
  26. package/dist/components/Card/CardBody.d.ts +4 -0
  27. package/dist/components/Card/CardFooter.d.ts +4 -0
  28. package/dist/components/Card/CardHeader.d.ts +4 -0
  29. package/dist/components/Card/CardRibbon.d.ts +4 -0
  30. package/dist/components/Card/StyledCard.d.ts +7 -0
  31. package/dist/components/Card/index.d.ts +6 -0
  32. package/dist/components/Card/theme.d.ts +3 -0
  33. package/dist/components/Card/types.d.ts +23 -0
  34. package/dist/components/Checkbox/Checkbox.d.ts +5 -0
  35. package/dist/components/Checkbox/index.d.ts +2 -0
  36. package/dist/components/Checkbox/types.d.ts +8 -0
  37. package/dist/components/Dropdown/Dropdown.d.ts +4 -0
  38. package/dist/components/Dropdown/index.d.ts +2 -0
  39. package/dist/components/Dropdown/types.d.ts +8 -0
  40. package/dist/components/FallingBunnies/FallingBunnies.d.ts +4 -0
  41. package/dist/components/FallingBunnies/index.d.ts +2 -0
  42. package/dist/components/FallingBunnies/types.d.ts +11 -0
  43. package/dist/components/Heading/Heading.d.ts +5 -0
  44. package/dist/components/Heading/index.d.ts +2 -0
  45. package/dist/components/Heading/types.d.ts +20 -0
  46. package/dist/components/Image/BackgroundImage.d.ts +4 -0
  47. package/dist/components/Image/Image.d.ts +4 -0
  48. package/dist/components/Image/Wrapper.d.ts +3 -0
  49. package/dist/components/Image/index.d.ts +2 -0
  50. package/dist/components/Image/options.d.ts +6 -0
  51. package/dist/components/Image/types.d.ts +10 -0
  52. package/dist/components/Input/Input.d.ts +4 -0
  53. package/dist/components/Input/index.d.ts +2 -0
  54. package/dist/components/Input/types.d.ts +12 -0
  55. package/dist/components/Layouts/BaseLayout.d.ts +2 -0
  56. package/dist/components/Layouts/CardsLayout.d.ts +2 -0
  57. package/dist/components/Layouts/index.d.ts +2 -0
  58. package/dist/components/Link/Link.d.ts +4 -0
  59. package/dist/components/Link/LinkExternal.d.ts +4 -0
  60. package/dist/components/Link/index.d.ts +3 -0
  61. package/dist/components/Link/types.d.ts +5 -0
  62. package/dist/components/NotificationDot/NotificationDot.d.ts +4 -0
  63. package/dist/components/NotificationDot/index.d.ts +2 -0
  64. package/dist/components/NotificationDot/types.d.ts +8 -0
  65. package/dist/components/Overlay/Overlay.d.ts +5 -0
  66. package/dist/components/Overlay/index.d.ts +2 -0
  67. package/dist/components/Overlay/types.d.ts +4 -0
  68. package/dist/components/Progress/Progress.d.ts +4 -0
  69. package/dist/components/Progress/ProgressBunnyWrapper.d.ts +2 -0
  70. package/dist/components/Progress/StyledProgress.d.ts +10 -0
  71. package/dist/components/Progress/index.d.ts +2 -0
  72. package/dist/components/Progress/themes.d.ts +9 -0
  73. package/dist/components/Progress/types.d.ts +11 -0
  74. package/dist/components/Radio/Radio.d.ts +5 -0
  75. package/dist/components/Radio/index.d.ts +2 -0
  76. package/dist/components/Radio/theme.d.ts +3 -0
  77. package/dist/components/Radio/types.d.ts +12 -0
  78. package/dist/components/Skeleton/Skeleton.d.ts +4 -0
  79. package/dist/components/Skeleton/index.d.ts +2 -0
  80. package/dist/components/Skeleton/types.d.ts +15 -0
  81. package/dist/components/Slider/Slider.d.ts +4 -0
  82. package/dist/components/Slider/index.d.ts +2 -0
  83. package/dist/components/Slider/styles.d.ts +18 -0
  84. package/dist/components/Slider/svg/BunnyButt.d.ts +4 -0
  85. package/dist/components/Slider/types.d.ts +8 -0
  86. package/dist/components/Spinner/PanIcon.d.ts +4 -0
  87. package/dist/components/Spinner/PancakeIcon.d.ts +4 -0
  88. package/dist/components/Spinner/Spinner.d.ts +4 -0
  89. package/dist/components/Spinner/index.d.ts +2 -0
  90. package/dist/components/Spinner/types.d.ts +4 -0
  91. package/dist/components/Svg/Icons/Add.d.ts +4 -0
  92. package/dist/components/Svg/Icons/ArrowBack.d.ts +4 -0
  93. package/dist/components/Svg/Icons/ArrowDouble.d.ts +4 -0
  94. package/dist/components/Svg/Icons/ArrowDown.d.ts +4 -0
  95. package/dist/components/Svg/Icons/ArrowDropDown.d.ts +4 -0
  96. package/dist/components/Svg/Icons/ArrowDropUp.d.ts +4 -0
  97. package/dist/components/Svg/Icons/ArrowForward.d.ts +4 -0
  98. package/dist/components/Svg/Icons/ArrowUp.d.ts +4 -0
  99. package/dist/components/Svg/Icons/AutoRenew.d.ts +4 -0
  100. package/dist/components/Svg/Icons/Binance.d.ts +4 -0
  101. package/dist/components/Svg/Icons/Block.d.ts +4 -0
  102. package/dist/components/Svg/Icons/Bow.d.ts +4 -0
  103. package/dist/components/Svg/Icons/Bsc.d.ts +4 -0
  104. package/dist/components/Svg/Icons/BunnyPlaceholder.d.ts +4 -0
  105. package/dist/components/Svg/Icons/Calculate.d.ts +4 -0
  106. package/dist/components/Svg/Icons/CardView.d.ts +4 -0
  107. package/dist/components/Svg/Icons/Checkmark.d.ts +4 -0
  108. package/dist/components/Svg/Icons/CheckmarkCircle.d.ts +4 -0
  109. package/dist/components/Svg/Icons/ChevronDown.d.ts +4 -0
  110. package/dist/components/Svg/Icons/ChevronLeft.d.ts +4 -0
  111. package/dist/components/Svg/Icons/ChevronRight.d.ts +4 -0
  112. package/dist/components/Svg/Icons/ChevronUp.d.ts +4 -0
  113. package/dist/components/Svg/Icons/Close.d.ts +4 -0
  114. package/dist/components/Svg/Icons/Cog.d.ts +4 -0
  115. package/dist/components/Svg/Icons/Community.d.ts +4 -0
  116. package/dist/components/Svg/Icons/Copy.d.ts +4 -0
  117. package/dist/components/Svg/Icons/Error.d.ts +4 -0
  118. package/dist/components/Svg/Icons/Help.d.ts +4 -0
  119. package/dist/components/Svg/Icons/Info.d.ts +4 -0
  120. package/dist/components/Svg/Icons/ListView.d.ts +4 -0
  121. package/dist/components/Svg/Icons/Logo.d.ts +4 -0
  122. package/dist/components/Svg/Icons/LogoRound.d.ts +4 -0
  123. package/dist/components/Svg/Icons/Metamask.d.ts +4 -0
  124. package/dist/components/Svg/Icons/Minus.d.ts +4 -0
  125. package/dist/components/Svg/Icons/NoProfileAvatar.d.ts +4 -0
  126. package/dist/components/Svg/Icons/OpenNew.d.ts +4 -0
  127. package/dist/components/Svg/Icons/PancakeRound.d.ts +4 -0
  128. package/dist/components/Svg/Icons/Pancakes.d.ts +4 -0
  129. package/dist/components/Svg/Icons/PlayCircleOutline.d.ts +4 -0
  130. package/dist/components/Svg/Icons/Prize.d.ts +4 -0
  131. package/dist/components/Svg/Icons/ProgressBunny.d.ts +4 -0
  132. package/dist/components/Svg/Icons/Remove.d.ts +4 -0
  133. package/dist/components/Svg/Icons/Search.d.ts +4 -0
  134. package/dist/components/Svg/Icons/SwapVert.d.ts +4 -0
  135. package/dist/components/Svg/Icons/SyncAlt.d.ts +4 -0
  136. package/dist/components/Svg/Icons/Ticket.d.ts +4 -0
  137. package/dist/components/Svg/Icons/TicketRound.d.ts +4 -0
  138. package/dist/components/Svg/Icons/Timer.d.ts +4 -0
  139. package/dist/components/Svg/Icons/Verified.d.ts +4 -0
  140. package/dist/components/Svg/Icons/Wait.d.ts +4 -0
  141. package/dist/components/Svg/Icons/Warning.d.ts +4 -0
  142. package/dist/components/Svg/Icons/Won.d.ts +4 -0
  143. package/dist/components/Svg/Svg.d.ts +3 -0
  144. package/dist/components/Svg/index.d.ts +54 -0
  145. package/dist/components/Svg/types.d.ts +8 -0
  146. package/dist/components/Table/example/const.d.ts +28 -0
  147. package/dist/components/Table/example/header.d.ts +2 -0
  148. package/dist/components/Table/hooks.d.ts +7 -0
  149. package/dist/components/Table/index.d.ts +3 -0
  150. package/dist/components/Table/types.d.ts +145 -0
  151. package/dist/components/Table/utils.d.ts +2 -0
  152. package/dist/components/Tag/StyledTag.d.ts +8 -0
  153. package/dist/components/Tag/Tag.d.ts +4 -0
  154. package/dist/components/Tag/index.d.ts +2 -0
  155. package/dist/components/Tag/theme.d.ts +38 -0
  156. package/dist/components/Tag/types.d.ts +25 -0
  157. package/dist/components/Text/Text.d.ts +4 -0
  158. package/dist/components/Text/index.d.ts +2 -0
  159. package/dist/components/Text/types.d.ts +8 -0
  160. package/dist/components/Toggle/StyledToggle.d.ts +5 -0
  161. package/dist/components/Toggle/Toggle.d.ts +4 -0
  162. package/dist/components/Toggle/index.d.ts +2 -0
  163. package/dist/components/Toggle/theme.d.ts +3 -0
  164. package/dist/components/Toggle/types.d.ts +29 -0
  165. package/dist/components/Tooltip/theme.d.ts +3 -0
  166. package/dist/components/Tooltip/types.d.ts +5 -0
  167. package/dist/hooks/index.d.ts +4 -0
  168. package/dist/hooks/useIsMounted.d.ts +1 -0
  169. package/dist/hooks/useKonamiCheatCode.d.ts +2 -0
  170. package/dist/hooks/useMatchBreakpoints.d.ts +5 -0
  171. package/dist/hooks/useParticleBurst.d.ts +20 -0
  172. package/dist/index.cjs.js +3706 -0
  173. package/dist/index.d.ts +32 -0
  174. package/dist/index.esm.js +3585 -0
  175. package/dist/setupTests.d.ts +1 -0
  176. package/dist/testHelpers.d.ts +3 -0
  177. package/dist/theme/base.d.ts +37 -0
  178. package/dist/theme/colors.d.ts +17 -0
  179. package/dist/theme/dark.d.ts +3 -0
  180. package/dist/theme/index.d.ts +30 -0
  181. package/dist/theme/light.d.ts +3 -0
  182. package/dist/theme/types.d.ts +71 -0
  183. package/dist/util/getColor.d.ts +3 -0
  184. package/dist/util/getExternalLinkProps.d.ts +5 -0
  185. package/dist/util/getThemeValue.d.ts +5 -0
  186. package/dist/widgets/Menu/Menu.d.ts +4 -0
  187. package/dist/widgets/Menu/components/Accordion.d.ts +12 -0
  188. package/dist/widgets/Menu/components/Avatar.d.ts +7 -0
  189. package/dist/widgets/Menu/components/CakePrice.d.ts +6 -0
  190. package/dist/widgets/Menu/components/LangSelector.d.ts +9 -0
  191. package/dist/widgets/Menu/components/Logo.d.ts +9 -0
  192. package/dist/widgets/Menu/components/MenuButton.d.ts +12 -0
  193. package/dist/widgets/Menu/components/MenuEntry.d.ts +12 -0
  194. package/dist/widgets/Menu/components/MenuLink.d.ts +3 -0
  195. package/dist/widgets/Menu/components/Panel.d.ts +9 -0
  196. package/dist/widgets/Menu/components/PanelBody.d.ts +7 -0
  197. package/dist/widgets/Menu/components/PanelFooter.d.ts +6 -0
  198. package/dist/widgets/Menu/components/SocialLinks.d.ts +3 -0
  199. package/dist/widgets/Menu/components/ThemeSwitcher.d.ts +7 -0
  200. package/dist/widgets/Menu/components/UserBlock.d.ts +9 -0
  201. package/dist/widgets/Menu/config.d.ts +52 -0
  202. package/dist/widgets/Menu/icons/Audit.d.ts +4 -0
  203. package/dist/widgets/Menu/icons/Bridge.d.ts +4 -0
  204. package/dist/widgets/Menu/icons/CreateToken.d.ts +4 -0
  205. package/dist/widgets/Menu/icons/Dice.d.ts +4 -0
  206. package/dist/widgets/Menu/icons/Discord.d.ts +4 -0
  207. package/dist/widgets/Menu/icons/Disperse.d.ts +4 -0
  208. package/dist/widgets/Menu/icons/Farm.d.ts +4 -0
  209. package/dist/widgets/Menu/icons/Feature.d.ts +4 -0
  210. package/dist/widgets/Menu/icons/Groups.d.ts +4 -0
  211. package/dist/widgets/Menu/icons/Hamburger.d.ts +4 -0
  212. package/dist/widgets/Menu/icons/HamburgerClose.d.ts +4 -0
  213. package/dist/widgets/Menu/icons/Home.d.ts +4 -0
  214. package/dist/widgets/Menu/icons/Hunt.d.ts +4 -0
  215. package/dist/widgets/Menu/icons/Ifo.d.ts +4 -0
  216. package/dist/widgets/Menu/icons/Info.d.ts +4 -0
  217. package/dist/widgets/Menu/icons/KyudoArcher.d.ts +4 -0
  218. package/dist/widgets/Menu/icons/Language.d.ts +4 -0
  219. package/dist/widgets/Menu/icons/Listing.d.ts +4 -0
  220. package/dist/widgets/Menu/icons/Logo.d.ts +7 -0
  221. package/dist/widgets/Menu/icons/Lottery.d.ts +4 -0
  222. package/dist/widgets/Menu/icons/Moon.d.ts +4 -0
  223. package/dist/widgets/Menu/icons/More.d.ts +4 -0
  224. package/dist/widgets/Menu/icons/Multisender.d.ts +4 -0
  225. package/dist/widgets/Menu/icons/Nft.d.ts +4 -0
  226. package/dist/widgets/Menu/icons/Partner.d.ts +4 -0
  227. package/dist/widgets/Menu/icons/Pool.d.ts +4 -0
  228. package/dist/widgets/Menu/icons/Referral.d.ts +4 -0
  229. package/dist/widgets/Menu/icons/Stacking.d.ts +4 -0
  230. package/dist/widgets/Menu/icons/Sun.d.ts +4 -0
  231. package/dist/widgets/Menu/icons/Team.d.ts +4 -0
  232. package/dist/widgets/Menu/icons/Telegram.d.ts +4 -0
  233. package/dist/widgets/Menu/icons/Ticket.d.ts +4 -0
  234. package/dist/widgets/Menu/icons/Trade.d.ts +4 -0
  235. package/dist/widgets/Menu/icons/Twitter.d.ts +4 -0
  236. package/dist/widgets/Menu/icons/Vault.d.ts +4 -0
  237. package/dist/widgets/Menu/icons/index.d.ts +30 -0
  238. package/dist/widgets/Menu/index.d.ts +3 -0
  239. package/dist/widgets/Menu/theme.d.ts +3 -0
  240. package/dist/widgets/Menu/types.d.ts +54 -0
  241. package/dist/widgets/Modal/Modal.d.ts +10 -0
  242. package/dist/widgets/Modal/ModalContext.d.ts +10 -0
  243. package/dist/widgets/Modal/index.d.ts +4 -0
  244. package/dist/widgets/Modal/theme.d.ts +3 -0
  245. package/dist/widgets/Modal/types.d.ts +7 -0
  246. package/dist/widgets/Modal/useModal.d.ts +3 -0
  247. package/dist/widgets/Toast/Toast.d.ts +4 -0
  248. package/dist/widgets/Toast/ToastAction.d.ts +7 -0
  249. package/dist/widgets/Toast/ToastContainer.d.ts +4 -0
  250. package/dist/widgets/Toast/index.d.ts +3 -0
  251. package/dist/widgets/Toast/types.d.ts +30 -0
  252. package/dist/widgets/WalletModal/AccountModal.d.ts +8 -0
  253. package/dist/widgets/WalletModal/ConnectModal.d.ts +8 -0
  254. package/dist/widgets/WalletModal/CopyToClipboard.d.ts +6 -0
  255. package/dist/widgets/WalletModal/WalletCard.d.ts +10 -0
  256. package/dist/widgets/WalletModal/config.d.ts +4 -0
  257. package/dist/widgets/WalletModal/icons/BinanceChain.d.ts +4 -0
  258. package/dist/widgets/WalletModal/icons/BitKeepWallet.d.ts +4 -0
  259. package/dist/widgets/WalletModal/icons/MathWallet.d.ts +4 -0
  260. package/dist/widgets/WalletModal/icons/Metamask.d.ts +4 -0
  261. package/dist/widgets/WalletModal/icons/OkxWallet.d.ts +4 -0
  262. package/dist/widgets/WalletModal/icons/OntoWallet.d.ts +4 -0
  263. package/dist/widgets/WalletModal/icons/SafePalWallet.d.ts +4 -0
  264. package/dist/widgets/WalletModal/icons/StarkeyWallet.d.ts +4 -0
  265. package/dist/widgets/WalletModal/icons/TokenPocket.d.ts +4 -0
  266. package/dist/widgets/WalletModal/icons/TrustWallet.d.ts +4 -0
  267. package/dist/widgets/WalletModal/icons/WalletConnect.d.ts +4 -0
  268. package/dist/widgets/WalletModal/index.d.ts +4 -0
  269. package/dist/widgets/WalletModal/types.d.ts +14 -0
  270. package/dist/widgets/WalletModal/useWalletModal.d.ts +7 -0
  271. package/package.json +89 -0
package/README.md ADDED
@@ -0,0 +1,76 @@
1
+ # midashand UIkit
2
+
3
+ midashand UIkit is a set of React components and hooks used to build pages on midashand's apps. It also contains a theme file for dark and light mode.
4
+
5
+ ## Install
6
+
7
+ `npm i midashand-uikit`
8
+
9
+
10
+ ## Deployment Guide
11
+
12
+ ### 1. Edit ONG token address
13
+ first go to `src/widgets/Menu/components/CakePrice.tsx`, find `PriceLink` tag and change the ONG token address to current mainnet address.
14
+
15
+ then go to `package.json` and increase version.
16
+
17
+ then run
18
+ ```
19
+ npm run build
20
+ npm login
21
+ npm publish
22
+ ```
23
+
24
+
25
+ ## Setup
26
+
27
+ ### Theme
28
+
29
+ Before using midashand UIkit, you need to provide the theme file to styled-component.
30
+
31
+ ```
32
+ import { ThemeProvider } from 'styled-components'
33
+ import { light, dark } from 'midashand-uikit'
34
+ ...
35
+ <ThemeProvider theme={isDark}>...</ThemeProvider>
36
+ ```
37
+
38
+ ### Reset
39
+
40
+ A reset CSS is available as a global styled component.
41
+
42
+ ```
43
+ import { ResetCSS } from 'midashand-uikit'
44
+ ...
45
+ <ResetCSS />
46
+ ```
47
+
48
+ ### Types
49
+
50
+ This project is built with Typescript and export all the relevant types.
51
+
52
+ ## How to use the UIkit
53
+
54
+ If you want to use components from the UIkit, check the [Storybook documentation](https://midashand.github.io/pancake-uikit/)
55
+
56
+ ## How to Customize UIkit
57
+
58
+ First clone this repo to local and then start editing the components, theme, etc.
59
+
60
+ When is finished the Customization of the UIkit build it using:
61
+
62
+ `npm run build`
63
+
64
+ Commit everything to the git repo and if you are using a diferent repo just change it in package.json.
65
+
66
+ If you have a commit error due to husky you can try:
67
+
68
+ `git commit -am 'commit' --no-verify`
69
+
70
+ That should solve the problem, then push to remote repo.
71
+
72
+ After this you need to [publish the npm packege](https://zellwk.com/blog/publish-to-npm/)
73
+
74
+ Be aware of the versions, If you make an update change the version in package.json so when you publish this's not gonna throw you an error.
75
+
76
+ Go to the npm package you create an you are ready to use it.
@@ -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 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 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,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
+ export { default as Box } from "./Box";
2
+ export { default as Flex } from "./Flex";
3
+ export type { BoxProps, FlexProps } from "./types";
@@ -0,0 +1,6 @@
1
+ import { HTMLAttributes } from "react";
2
+ import { BackgroundProps, BorderProps, FlexboxProps, LayoutProps, PositionProps, SpaceProps } from "styled-system";
3
+ export interface BoxProps extends BackgroundProps, BorderProps, LayoutProps, PositionProps, SpaceProps, HTMLAttributes<HTMLDivElement> {
4
+ }
5
+ export interface FlexProps extends BoxProps, FlexboxProps {
6
+ }
@@ -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,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,3 @@
1
+ export { default as Button } from "./Button";
2
+ export { default as IconButton } from "./IconButton";
3
+ export type { ButtonProps, BaseButtonProps, Scale as ButtonScale, Variant as ButtonVariant } from "./types";
@@ -0,0 +1,77 @@
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
+ background: string;
19
+ color: string;
20
+ ":disabled": {
21
+ background: string;
22
+ backgroundColor: string;
23
+ };
24
+ };
25
+ secondary: {
26
+ backgroundColor: string;
27
+ border: string;
28
+ borderColor: string;
29
+ boxShadow: string;
30
+ color: string;
31
+ ":disabled": {
32
+ backgroundColor: string;
33
+ };
34
+ };
35
+ tertiary: {
36
+ backgroundColor: string;
37
+ boxShadow: string;
38
+ color: string;
39
+ };
40
+ subtle: {
41
+ backgroundColor: string;
42
+ color: string;
43
+ };
44
+ danger: {
45
+ backgroundColor: string;
46
+ color: string;
47
+ };
48
+ success: {
49
+ backgroundColor: string;
50
+ color: string;
51
+ };
52
+ text: {
53
+ backgroundColor: string;
54
+ color: string;
55
+ boxShadow: string;
56
+ };
57
+ switch: {
58
+ backgroundColor: string;
59
+ color: string;
60
+ boxShadow: string;
61
+ };
62
+ tradeprimary: {
63
+ backgroundColor: string;
64
+ color: string;
65
+ boxShadow: string;
66
+ };
67
+ tradesecondary: {
68
+ backgroundColor: string;
69
+ border: string;
70
+ borderColor: string;
71
+ boxShadow: string;
72
+ color: string;
73
+ ":disabled": {
74
+ backgroundColor: string;
75
+ };
76
+ };
77
+ };
@@ -0,0 +1,42 @@
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 SWITCH: "switch";
18
+ readonly TRADEPRIMARY: "tradeprimary";
19
+ readonly TRADESECONDARY: "tradesecondary";
20
+ };
21
+ export type Scale = typeof scales[keyof typeof scales];
22
+ export type Variant = typeof variants[keyof typeof variants];
23
+ /**
24
+ * @see https://www.benmvp.com/blog/polymorphic-react-components-typescript/
25
+ */
26
+ export type AsProps<E extends ElementType = ElementType> = {
27
+ as?: E;
28
+ };
29
+ export type MergeProps<E extends ElementType> = AsProps<E> & Omit<ComponentProps<E>, keyof AsProps>;
30
+ export type PolymorphicComponentProps<E extends ElementType, P> = P & MergeProps<E>;
31
+ export type PolymorphicComponent<P, D extends ElementType = "button"> = <E extends ElementType = D>(props: PolymorphicComponentProps<E, P>) => ReactElement | null;
32
+ export interface BaseButtonProps extends LayoutProps, SpaceProps {
33
+ as?: "a" | "button" | typeof Link;
34
+ external?: boolean;
35
+ isLoading?: boolean;
36
+ scale?: Scale;
37
+ variant?: Variant;
38
+ disabled?: boolean;
39
+ startIcon?: ReactNode;
40
+ endIcon?: ReactNode;
41
+ }
42
+ export 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,6 @@
1
+ import { DefaultTheme } from "styled-components";
2
+ import { Variant } from "../Button/types";
3
+ declare const StyledButtonMenu: import("styled-components").StyledComponent<"div", DefaultTheme, {
4
+ variant: Variant;
5
+ }, never>;
6
+ export default StyledButtonMenu;
@@ -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,12 @@
1
+ /// <reference types="react" />
2
+ import { BaseButtonProps, Scale, variants } from "../Button/types";
3
+ export interface ButtonMenuItemProps extends BaseButtonProps {
4
+ isActive?: boolean;
5
+ }
6
+ export interface ButtonMenuProps {
7
+ variant?: typeof variants.PRIMARY | typeof variants.SUBTLE;
8
+ activeIndex?: number;
9
+ onItemClick?: (index: number) => void;
10
+ scale?: Scale;
11
+ children: React.ReactElement[];
12
+ }
@@ -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 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 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,4 @@
1
+ import { SpaceProps } from "styled-system";
2
+ export type CardHeaderProps = SpaceProps;
3
+ declare const CardHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, CardHeaderProps, never>;
4
+ 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,7 @@
1
+ import { DefaultTheme } from "styled-components";
2
+ import { CardProps } from "./types";
3
+ interface StyledCardProps extends CardProps {
4
+ theme: DefaultTheme;
5
+ }
6
+ declare const StyledCard: import("styled-components").StyledComponent<"div", DefaultTheme, StyledCardProps, never>;
7
+ export default StyledCard;
@@ -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,23 @@
1
+ import { HTMLAttributes } from "react";
2
+ import { SpaceProps } from "styled-system";
3
+ import { Colors } from "../../theme/types";
4
+ export interface CardRibbonProps {
5
+ variantColor?: keyof Colors;
6
+ text: string;
7
+ }
8
+ export type CardTheme = {
9
+ background: string;
10
+ boxShadow: string;
11
+ boxShadowActive: string;
12
+ boxShadowSuccess: string;
13
+ boxShadowWarning: string;
14
+ cardHeaderBackground: string;
15
+ dropShadow: string;
16
+ };
17
+ export interface CardProps extends SpaceProps, HTMLAttributes<HTMLDivElement> {
18
+ isActive?: boolean;
19
+ isSuccess?: boolean;
20
+ isWarning?: boolean;
21
+ isDisabled?: boolean;
22
+ ribbon?: React.ReactNode;
23
+ }
@@ -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 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 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 { FallingBunniesProps } from "./types";
3
+ declare const FallingBunnies: React.FC<FallingBunniesProps>;
4
+ export default FallingBunnies;
@@ -0,0 +1,2 @@
1
+ export { default as FallingBunnies } from "./FallingBunnies";
2
+ export type { FallingBunniesProps } from "./types";
@@ -0,0 +1,11 @@
1
+ export interface BunnyProps {
2
+ position: number;
3
+ iterations: number;
4
+ duration: number;
5
+ }
6
+ export interface FallingBunniesProps {
7
+ size?: number;
8
+ count?: number;
9
+ iterations?: number;
10
+ duration?: number;
11
+ }
@@ -0,0 +1,5 @@
1
+ import { HeadingProps } from "./types";
2
+ declare const Heading: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Text").TextProps & {
3
+ bold: boolean;
4
+ } & HeadingProps, "bold">;
5
+ export default Heading;
@@ -0,0 +1,2 @@
1
+ export { default as Heading } from "./Heading";
2
+ export type { HeadingProps, Sizes as HeadingSizes, Tags as HeadingTags } from "./types";
@@ -0,0 +1,20 @@
1
+ export declare const tags: {
2
+ H1: string;
3
+ H2: string;
4
+ H3: string;
5
+ H4: string;
6
+ H5: string;
7
+ H6: string;
8
+ };
9
+ export declare const sizes: {
10
+ readonly MD: "md";
11
+ readonly LG: "lg";
12
+ readonly XL: "xl";
13
+ readonly XXL: "xxl";
14
+ };
15
+ export type Tags = typeof tags[keyof typeof tags];
16
+ export type Sizes = typeof sizes[keyof typeof sizes];
17
+ export interface HeadingProps {
18
+ as?: Tags;
19
+ size?: Sizes;
20
+ }
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { ImageProps } from "./types";
3
+ declare const BackgroundImage: React.FC<ImageProps>;
4
+ export default BackgroundImage;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { ImageProps } from "./types";
3
+ declare const Image: React.FC<ImageProps>;
4
+ export default Image;
@@ -0,0 +1,3 @@
1
+ import { ContainerProps } from "./types";
2
+ declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ContainerProps, never>;
3
+ export default Wrapper;
@@ -0,0 +1,2 @@
1
+ export { default as BackgroundImage } from "./BackgroundImage";
2
+ export { default as Image } from "./Image";
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ root: null;
3
+ rootMargin: string;
4
+ threshold: number;
5
+ };
6
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { SpaceProps } from "styled-system";
2
+ export interface ContainerProps {
3
+ width: number;
4
+ height: number;
5
+ responsive?: boolean;
6
+ }
7
+ export interface ImageProps extends ContainerProps, SpaceProps {
8
+ src: string;
9
+ alt?: string;
10
+ }
@@ -0,0 +1,4 @@
1
+ import { DefaultTheme } from "styled-components";
2
+ import { InputProps } from "./types";
3
+ declare const Input: import("styled-components").StyledComponent<"input", DefaultTheme, InputProps, never>;
4
+ export default Input;
@@ -0,0 +1,2 @@
1
+ export { default as Input } from "./Input";
2
+ export type { InputProps, Scales as InputScales } from "./types";
@@ -0,0 +1,12 @@
1
+ import { SpaceProps } from "styled-system";
2
+ export declare const scales: {
3
+ readonly SM: "sm";
4
+ readonly MD: "md";
5
+ readonly LG: "lg";
6
+ };
7
+ export type Scales = typeof scales[keyof typeof scales];
8
+ export interface InputProps extends SpaceProps {
9
+ scale?: Scales;
10
+ isSuccess?: boolean;
11
+ isWarning?: boolean;
12
+ }
@@ -0,0 +1,2 @@
1
+ declare const GridLayout: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export default GridLayout;
@@ -0,0 +1,2 @@
1
+ declare const GridLayout: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export default GridLayout;
@@ -0,0 +1,2 @@
1
+ export { default as BaseLayout } from "./BaseLayout";
2
+ export { default as CardsLayout } from "./CardsLayout";
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { LinkProps } from "./types";
3
+ declare const Link: React.FC<LinkProps>;
4
+ export default Link;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { LinkProps } from "./types";
3
+ declare const LinkExternal: React.FC<LinkProps>;
4
+ export default LinkExternal;
@@ -0,0 +1,3 @@
1
+ export { default as Link } from "./Link";
2
+ export { default as LinkExternal } from "./LinkExternal";
3
+ export type { LinkProps } from "./types";
@@ -0,0 +1,5 @@
1
+ import { AnchorHTMLAttributes } from "react";
2
+ import { TextProps } from "../Text";
3
+ export interface LinkProps extends TextProps, AnchorHTMLAttributes<HTMLAnchorElement> {
4
+ external?: boolean;
5
+ }
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { NotificationDotProps } from "./types";
3
+ declare const NotificationDot: React.FC<NotificationDotProps>;
4
+ export default NotificationDot;
@@ -0,0 +1,2 @@
1
+ export { default as NotificationDot } from "./NotificationDot";
2
+ export type { NotificationDotProps, DotProps } from "./types";