├── .gitignore
├── LICENSE
├── LICENSE.md
├── README.md
├── img
└── loader.gif
├── package-lock.json
├── package.json
├── public
├── favicon.ico
├── index.html
├── logo192.png
├── logo512.png
├── manifest.json
└── robots.txt
└── src
├── App.css
├── App.js
├── App.test.js
├── ColorBar
├── index.js
└── style.css
├── index.css
├── index.js
├── logo.svg
├── reportWebVitals.js
└── setupTests.js
/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2020 Amur Khoyetsyan
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2020 Amur Khoyetsyan
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # React-js-loader
2 |
3 | ## [demo page](https://amurkhoyetsyan.github.io/smart-loaders/)
4 |
5 | ### Install
6 |
7 | npm i react-js-loader
8 |
9 |
10 |
11 |
12 |
13 | ### Documentation
14 |
15 | props
16 |
17 | | Name | Type |
18 | | ------------------- | ------------------ |
19 | | type | String |
20 | | bgColor | String |
21 | | color | String |
22 | | title | String |
23 | | size | Integer |
24 | | LICENSE | [LICENSE](LICENSE) |
25 |
26 |
27 |
28 | | Types Color | Types | Value Example |
29 | | -------------------- | -------- | ------------------------------- |
30 | | rgb | String | rgb(0, 0, 0) or rgb(0%, 0%, 0%) |
31 | | hex | String | #000000 or #000 |
32 | | hsl | String | hsl(0deg 0% 0%) |
33 | | name | String | black |
34 |
35 |
36 |
37 | | Types |
38 | | ------------------- |
39 | | box-rotate-x |
40 | | box-rotate-y |
41 | | box-rotate-z |
42 | | box-rectangular |
43 | | ping-cube |
44 | | heart |
45 | | bubble-scale |
46 | | bubble-top |
47 | | bubble-ping |
48 | | bubble-spin |
49 | | spinner-cub |
50 | | spinner-circle |
51 | | spinner-default |
52 | | ekvalayzer |
53 | | hourglass |
54 | | rectangular-ping |
55 |
56 |
57 |
58 | color and bgColor = rgb or hex
59 |
60 |
61 | ### Example
62 |
63 | import React from 'react';
64 |
65 | ....
66 | ....
67 | ....
68 |
69 | import Loader from "react-js-loader";
70 |
71 | ....
72 | ....
73 | ....
74 |
75 | return (
76 |