@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.
- package/README.md +15 -8
- package/dist/index.cjs +1901 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.css +8758 -0
- package/dist/index.css.map +1 -0
- package/dist/index.modern.js +1809 -0
- package/dist/index.modern.js.map +1 -0
- package/dist/index.module.js +1891 -0
- package/dist/index.module.js.map +1 -0
- package/dist/index.umd.js +1905 -0
- package/dist/index.umd.js.map +1 -0
- package/index.js +1 -1
- package/package.json +21 -25
- package/src/common/amountUtils.js +423 -0
- package/src/common/errorUtils.js +27 -0
- package/src/common/fiatCurrenciesService.js +161 -0
- package/src/components/atoms/AssetIcon/AssetIcon.jsx +55 -0
- package/src/components/atoms/AssetIcon/asset-icon.module.scss +42 -0
- package/{stories → src/components}/atoms/LoadingDots/LoadingDots.module.scss +1 -1
- package/src/components/atoms/SupportChat/SupportChat.jsx +40 -0
- package/{stories → src/components}/atoms/buttons/Button/Button.jsx +6 -6
- package/{stories → src/components}/atoms/buttons/Button/Button.module.scss +6 -1
- package/src/index.js +10 -0
- package/styles/index.scss +10 -10
- package/dist/node/52a99d58a36f2b7a78b3.ttf +0 -0
- package/dist/node/662b866576cfea51dd64.ttf +0 -0
- package/dist/node/7f9eed4cca4d0ae6a772.ttf +0 -0
- package/dist/node/8268666c3b2ca2ec11c0.ttf +0 -0
- package/dist/node/87d9266583abd389ca1f.ttf +0 -0
- package/dist/node/index.js +0 -3
- package/dist/node/index.js.LICENSE.txt +0 -32
- package/dist/node/index.js.map +0 -1
- package/dist/web/52a99d58a36f2b7a78b3.ttf +0 -0
- package/dist/web/662b866576cfea51dd64.ttf +0 -0
- package/dist/web/7f9eed4cca4d0ae6a772.ttf +0 -0
- package/dist/web/8268666c3b2ca2ec11c0.ttf +0 -0
- package/dist/web/87d9266583abd389ca1f.ttf +0 -0
- package/dist/web/index.js +0 -3
- package/dist/web/index.js.LICENSE.txt +0 -32
- package/dist/web/index.js.map +0 -1
- package/stories/index.js +0 -2
- /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
|
|
7
|
+
1. To use components for web:
|
|
8
|
+
* import the following way
|
|
8
9
|
~~~
|
|
9
|
-
import { Button } from "@rabbitio/ui-kit
|
|
10
|
+
import { Button } from "@rabbitio/ui-kit";
|
|
10
11
|
~~~
|
|
11
|
-
|
|
12
|
+
* add top-level styles import
|
|
12
13
|
~~~
|
|
13
|
-
import
|
|
14
|
+
import "@rabbitio/ui-kit/index.css";
|
|
14
15
|
~~~
|
|
15
|
-
|
|
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
|
-
|
|
26
|
+
* Import styles inside pages/_app.js
|
|
20
27
|
~~~
|
|
21
|
-
|
|
28
|
+
import "@rabbitio/ui-kit/index.css";
|
|
22
29
|
~~~
|
|
23
30
|
|
|
24
31
|
# Adding new component
|