Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bit #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
447 changes: 447 additions & 0 deletions .bitmap

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ A collection of loading spinners built with [styled-components](https://styled-c

## Live Demo

- To check out live examples visit https://dmitrymorozoff.github.io/react-spinners-kit/
To check out live examples visit https://dmitrymorozoff.github.io/react-spinners-kit/

https://bitsrc.io/dmitrymorozoff/react-spinners-kit - Disocver, play and install spinners.

## Installation

Expand All @@ -23,6 +25,7 @@ or if you prefer yarn

### `yarn add react-spinners-kit`


## Usage

```jsx
Expand Down
8 changes: 8 additions & 0 deletions bit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"env": {
"compiler": "bit.envs/compilers/[email protected]"
},
"dependencies": {},
"componentsDefaultDirectory": "components/{name}",
"packageManager": "npm"
}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,17 @@
"path": "^0.12.7",
"prettier": "^1.14.2",
"react-addons-test-utils": "^15.6.2",
"react-syntax-highlighter": "^9.0.0",
"rimraf": "^2.6.2",
"webpack": "^4.19.0",
"webpack-cli": "^3.1.0",
"webpack-node-externals": "^1.7.2",
"react-syntax-highlighter": "^9.0.0"
"webpack-node-externals": "^1.7.2"
},
"dependencies": {
"polished": "^1.9.3",
"prop-types": "^15.6.2",
"react": "^16.5.2",
"react-dom": "^16.5.1"
"react": ">= 16.3.0",
"react-dom": ">= 16.3.0"
},
"peerDependencies": {
"styled-components": "^2.x"
Expand Down
5 changes: 4 additions & 1 deletion src/components/ball/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ const motion = props => keyframes`
}
`;

export const BallSpinner = ({ size, color, loading, sizeUnit }) => {

const BallSpinner = ({ size, color, loading, sizeUnit }) => {
return (
loading && (
<Wrapper size={size}>
Expand Down Expand Up @@ -61,3 +62,5 @@ BallSpinner.propTypes = {
color: PropTypes.string,
sizeUnit: PropTypes.string,
};

export default BallSpinner;
4 changes: 3 additions & 1 deletion src/components/bars/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const getBars = (countBars, color, size, sizeUnit) => {
return bars;
};

export const BarsSpinner = ({ size, color, loading, sizeUnit }) => {
const BarsSpinner = ({ size, color, loading, sizeUnit }) => {
const countBars = 5;
return (
loading && (
Expand Down Expand Up @@ -75,3 +75,5 @@ BarsSpinner.propTypes = {
color: PropTypes.string,
sizeUnit: PropTypes.string,
};

export default BarsSpinner;
4 changes: 3 additions & 1 deletion src/components/circle/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const rotate = keyframes`
}
`;

export const CircleSpinner = ({ size, color, loading, sizeUnit }) => {
const CircleSpinner = ({ size, color, loading, sizeUnit }) => {
return loading && <Wrapper size={size} color={color} sizeUnit={sizeUnit} />;
};

Expand Down Expand Up @@ -41,3 +41,5 @@ CircleSpinner.propTypes = {
color: PropTypes.string,
sizeUnit: PropTypes.string,
};

export default CircleSpinner;
4 changes: 3 additions & 1 deletion src/components/clap/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const getBalls = ({
return balls;
};

export const ClapSpinner = ({
const ClapSpinner = ({
size,
frontColor,
backColor,
Expand Down Expand Up @@ -136,3 +136,5 @@ ClapSpinner.propTypes = {
backColor: PropTypes.string,
sizeUnit: PropTypes.string,
};

export default ClapSpinner;
4 changes: 3 additions & 1 deletion src/components/classic/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const getBars = ({
return bars;
};

export const ClassicSpinner = ({ size, color, loading, sizeUnit }) => {
const ClassicSpinner = ({ size, color, loading, sizeUnit }) => {
const radius = size / 2;
const countBars = 16;
return (
Expand Down Expand Up @@ -91,3 +91,5 @@ ClassicSpinner.propTypes = {
color: PropTypes.string,
sizeUnit: PropTypes.string,
};

export default ClassicSpinner;
4 changes: 3 additions & 1 deletion src/components/comb/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const getBars = ({ countBars, color, size, sizeUnit }) => {
return bars;
};

export const CombSpinner = ({ size, color, loading, sizeUnit }) => {
const CombSpinner = ({ size, color, loading, sizeUnit }) => {
const countBars = size / 9;
return (
loading && (
Expand Down Expand Up @@ -72,3 +72,5 @@ CombSpinner.propTypes = {
color: PropTypes.string,
sizeUnit: PropTypes.string,
};

export default CombSpinner;
4 changes: 3 additions & 1 deletion src/components/cube/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const rotate = keyframes`
to { transform: rotateX(360deg) rotateY(360deg); }
`;

export const CubeSpinner = ({
const CubeSpinner = ({
size,
backColor,
frontColor,
Expand Down Expand Up @@ -138,3 +138,5 @@ CubeSpinner.propTypes = {
backColor: PropTypes.string,
sizeUnit: PropTypes.string,
};

export default CubeSpinner;
4 changes: 3 additions & 1 deletion src/components/domino/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const getBars = ({
return bars;
};

export const DominoSpinner = ({ size, color, loading, sizeUnit }) => {
const DominoSpinner = ({ size, color, loading, sizeUnit }) => {
const countBars = 7;
const rotatesPoints = [0, 0, 0, 10, 40, 60, 70];
const translatesPoints = getTranslatePositions(countBars, size);
Expand Down Expand Up @@ -149,3 +149,5 @@ DominoSpinner.propTypes = {
color: PropTypes.string,
sizeUnit: PropTypes.string,
};

export default DominoSpinner;
4 changes: 3 additions & 1 deletion src/components/fill/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const fill = keyframes`
}
`;

export const FillSpinner = ({ size, color, loading, sizeUnit }) => {
const FillSpinner = ({ size, color, loading, sizeUnit }) => {
return (
loading && (
<Wrapper size={size} color={color} sizeUnit={sizeUnit}>
Expand Down Expand Up @@ -78,3 +78,5 @@ FillSpinner.propTypes = {
color: PropTypes.string,
sizeUnit: PropTypes.string,
};

export default FillSpinner;
4 changes: 3 additions & 1 deletion src/components/firework/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const fire = keyframes`
}
`;

export const FireworkSpinner = ({ size, color, loading, sizeUnit }) => {
const FireworkSpinner = ({ size, color, loading, sizeUnit }) => {
return loading && <Wrapper size={size} color={color} sizeUnit={sizeUnit} />;
};

Expand Down Expand Up @@ -45,3 +45,5 @@ FireworkSpinner.propTypes = {
color: PropTypes.string,
sizeUnit: PropTypes.string,
};

export default FireworkSpinner;
4 changes: 3 additions & 1 deletion src/components/flag/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const getPlanes = ({ countPlaneInLine, color, size, sizeUnit }) => {
return lines;
};

export const FlagSpinner = ({ size, color, loading, sizeUnit }) => {
const FlagSpinner = ({ size, color, loading, sizeUnit }) => {
const countPlaneInLine = 4;
return (
loading && (
Expand Down Expand Up @@ -101,3 +101,5 @@ FlagSpinner.propTypes = {
color: PropTypes.string,
sizeUnit: PropTypes.string,
};

export default FlagSpinner;
4 changes: 3 additions & 1 deletion src/components/flapper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const getBalls = ({
return balls;
};

export const FlapperSpinner = ({ size, color, loading, sizeUnit }) => {
const FlapperSpinner = ({ size, color, loading, sizeUnit }) => {
const radius = size / 2;
const countBalls = 7;
const ballSize = size / 1.5;
Expand Down Expand Up @@ -98,3 +98,5 @@ FlapperSpinner.propTypes = {
color: PropTypes.string,
sizeUnit: PropTypes.string,
};

export default FlapperSpinner;
5 changes: 4 additions & 1 deletion src/components/goo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const getBalls = ({ countBalls, color, size, sizeUnit }) => {
return balls;
};

export const GooSpinner = ({ size, color, loading, sizeUnit }) => {
const GooSpinner = ({ size, color, loading, sizeUnit }) => {
const countBalls = 2;
return (
loading && (
Expand Down Expand Up @@ -112,3 +112,6 @@ GooSpinner.propTypes = {
color: PropTypes.string,
sizeUnit: PropTypes.string,
};


export default GooSpinner;
4 changes: 3 additions & 1 deletion src/components/grid/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const getBalls = ({ countBallsInLine, color, size, sizeUnit }) => {
return balls;
};

export const GridSpinner = ({ size, color, loading, sizeUnit }) => {
const GridSpinner = ({ size, color, loading, sizeUnit }) => {
const countBallsInLine = 3;
return (
loading && (
Expand Down Expand Up @@ -84,3 +84,5 @@ GridSpinner.propTypes = {
color: PropTypes.string,
sizeUnit: PropTypes.string,
};

export default GridSpinner;
4 changes: 3 additions & 1 deletion src/components/guard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const getCubes = ({
return cubes;
};

export const GuardSpinner = ({
const GuardSpinner = ({
size,
backColor,
frontColor,
Expand Down Expand Up @@ -130,3 +130,5 @@ GuardSpinner.propTypes = {
backColor: PropTypes.string,
sizeUnit: PropTypes.string,
};

export default GuardSpinner;
4 changes: 3 additions & 1 deletion src/components/heart/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const resize = keyframes`
}
`;

export const HeartSpinner = ({ size, color, loading, sizeUnit }) => {
const HeartSpinner = ({ size, color, loading, sizeUnit }) => {
return loading && <Wrapper size={size} color={color} sizeUnit={sizeUnit} />;
};

Expand Down Expand Up @@ -66,3 +66,5 @@ HeartSpinner.propTypes = {
color: PropTypes.string,
sizeUnit: PropTypes.string,
};

export default HeartSpinner;
4 changes: 3 additions & 1 deletion src/components/hoop/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const getBalls = ({ countBallsInLine, color, size, sizeUnit }) => {
return balls;
};

export const HoopSpinner = ({ size, color, loading, sizeUnit }) => {
const HoopSpinner = ({ size, color, loading, sizeUnit }) => {
const countBallsInLine = 6;
return (
loading && (
Expand Down Expand Up @@ -88,3 +88,5 @@ HoopSpinner.propTypes = {
color: PropTypes.string,
sizeUnit: PropTypes.string,
};

export default HoopSpinner;
4 changes: 3 additions & 1 deletion src/components/impulse/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const getBalls = ({ countBalls, frontColor, backColor, size, sizeUnit }) => {
return balls;
};

export const ImpulseSpinner = ({
const ImpulseSpinner = ({
size,
frontColor,
backColor,
Expand Down Expand Up @@ -102,3 +102,5 @@ ImpulseSpinner.propTypes = {
backColor: PropTypes.string,
sizeUnit: PropTypes.string,
};

export default ImpulseSpinner;
4 changes: 3 additions & 1 deletion src/components/jellyfish/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const getRings = ({ countBalls: countRings, color, size, sizeUnit }) => {
return rings;
};

export const JellyfishSpinner = ({ size, color, loading, sizeUnit }) => {
const JellyfishSpinner = ({ size, color, loading, sizeUnit }) => {
const countRings = 6;
return (
loading && (
Expand Down Expand Up @@ -81,3 +81,5 @@ JellyfishSpinner.propTypes = {
color: PropTypes.string,
sizeUnit: PropTypes.string,
};

export default JellyfishSpinner;
4 changes: 3 additions & 1 deletion src/components/magic/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const getBalls = ({ countBalls, color, size, sizeUnit }) => {
return balls;
};

export const MagicSpinner = ({ size, color, loading, sizeUnit }) => {
const MagicSpinner = ({ size, color, loading, sizeUnit }) => {
const countBalls = size / 12;
return (
loading && (
Expand Down Expand Up @@ -82,3 +82,5 @@ MagicSpinner.propTypes = {
color: PropTypes.string,
sizeUnit: PropTypes.string,
};

export default MagicSpinner;
4 changes: 3 additions & 1 deletion src/components/pong/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const motionBall = props => keyframes`
}
`;

export const PongSpinner = ({ size, color, loading, sizeUnit }) => {
const PongSpinner = ({ size, color, loading, sizeUnit }) => {
return (
loading && (
<Wrapper size={size} sizeUnit={sizeUnit}>
Expand Down Expand Up @@ -98,3 +98,5 @@ PongSpinner.propTypes = {
color: PropTypes.string,
sizeUnit: PropTypes.string,
};

export default PongSpinner;
4 changes: 3 additions & 1 deletion src/components/pulse/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const getCubes = ({ countCubeInLine, color, size, sizeUnit }) => {
return cubes;
};

export const PulseSpinner = ({ size, color, loading, sizeUnit }) => {
const PulseSpinner = ({ size, color, loading, sizeUnit }) => {
const countCubeInLine = 3;
return (
loading && (
Expand Down Expand Up @@ -78,3 +78,5 @@ PulseSpinner.propTypes = {
color: PropTypes.string,
sizeUnit: PropTypes.string,
};

export default PulseSpinner;
4 changes: 3 additions & 1 deletion src/components/push/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const getBars = ({ countBars, color, size, sizeUnit }) => {
return bars;
};

export const PushSpinner = ({ size, color, loading, sizeUnit }) => {
const PushSpinner = ({ size, color, loading, sizeUnit }) => {
const countBars = 10;
return (
loading && (
Expand Down Expand Up @@ -78,3 +78,5 @@ PushSpinner.propTypes = {
color: PropTypes.string,
sizeUnit: PropTypes.string,
};

export default PushSpinner;
Loading