@rabbitio/ui-kit 1.0.0-beta.1 → 1.0.0-beta.10

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 (42) hide show
  1. package/README.md +15 -8
  2. package/dist/index.cjs +1901 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.css +8758 -0
  5. package/dist/index.css.map +1 -0
  6. package/dist/index.modern.js +1809 -0
  7. package/dist/index.modern.js.map +1 -0
  8. package/dist/index.module.js +1891 -0
  9. package/dist/index.module.js.map +1 -0
  10. package/dist/index.umd.js +1905 -0
  11. package/dist/index.umd.js.map +1 -0
  12. package/index.js +1 -1
  13. package/package.json +21 -25
  14. package/src/common/amountUtils.js +423 -0
  15. package/src/common/errorUtils.js +27 -0
  16. package/src/common/fiatCurrenciesService.js +161 -0
  17. package/src/components/atoms/AssetIcon/AssetIcon.jsx +55 -0
  18. package/src/components/atoms/AssetIcon/asset-icon.module.scss +42 -0
  19. package/{stories → src/components}/atoms/LoadingDots/LoadingDots.module.scss +1 -1
  20. package/src/components/atoms/SupportChat/SupportChat.jsx +40 -0
  21. package/{stories → src/components}/atoms/buttons/Button/Button.jsx +6 -6
  22. package/{stories → src/components}/atoms/buttons/Button/Button.module.scss +6 -1
  23. package/src/index.js +10 -0
  24. package/styles/index.scss +10 -10
  25. package/dist/node/52a99d58a36f2b7a78b3.ttf +0 -0
  26. package/dist/node/662b866576cfea51dd64.ttf +0 -0
  27. package/dist/node/7f9eed4cca4d0ae6a772.ttf +0 -0
  28. package/dist/node/8268666c3b2ca2ec11c0.ttf +0 -0
  29. package/dist/node/87d9266583abd389ca1f.ttf +0 -0
  30. package/dist/node/index.js +0 -3
  31. package/dist/node/index.js.LICENSE.txt +0 -32
  32. package/dist/node/index.js.map +0 -1
  33. package/dist/web/52a99d58a36f2b7a78b3.ttf +0 -0
  34. package/dist/web/662b866576cfea51dd64.ttf +0 -0
  35. package/dist/web/7f9eed4cca4d0ae6a772.ttf +0 -0
  36. package/dist/web/8268666c3b2ca2ec11c0.ttf +0 -0
  37. package/dist/web/87d9266583abd389ca1f.ttf +0 -0
  38. package/dist/web/index.js +0 -3
  39. package/dist/web/index.js.LICENSE.txt +0 -32
  40. package/dist/web/index.js.map +0 -1
  41. package/stories/index.js +0 -2
  42. /package/{stories → src/components}/atoms/LoadingDots/LoadingDots.jsx +0 -0
package/README.md CHANGED
@@ -4,21 +4,28 @@ npm install --save @rabbitio/ui-kit
4
4
  ~~~
5
5
 
6
6
  # Using library
7
- 1. To use components for web import the following way:
7
+ 1. To use components for web:
8
+ * import the following way
8
9
  ~~~
9
- import { Button } from "@rabbitio/ui-kit/web";
10
+ import { Button } from "@rabbitio/ui-kit";
10
11
  ~~~
11
- 2. To use components for node import the following way:
12
+ * add top-level styles import
12
13
  ~~~
13
- import { Button } from "@rabbitio/ui-kit/node";
14
+ import "@rabbitio/ui-kit/index.css";
14
15
  ~~~
15
- 3. To use components for next.js import the following way and add "@rabbitio/ui-kit" to transpilePackages inside your next.config.js:
16
+ 2. To use components for next.js import the following way and add "@rabbitio/ui-kit" to transpilePackages inside your next.config.js:
17
+
18
+ * Import the following way
16
19
  ~~~
17
- import { Button } from "@rabbitio/ui-kit";
20
+ import { Button } from "@rabbitio/ui-kit/next";
21
+ ~~~
22
+ * add "@rabbitio/ui-kit" to transpilePackages in next.config.js
23
+ ~~~
24
+ transpilePackages: ["@rabbitio/ui-kit"],
18
25
  ~~~
19
- 4. [In progress] Also, you can import base styles into your scss index file:
26
+ * Import styles inside pages/_app.js
20
27
  ~~~
21
- @import "@rabbitio/ui-kit/styles/index";
28
+ import "@rabbitio/ui-kit/index.css";
22
29
  ~~~
23
30
 
24
31
  # Adding new component