1
0
mirror of https://github.com/SomboChea/ui synced 2026-01-18 00:56:00 +07:00

chore: sync with verdaccio master

This commit is contained in:
Juan Picado @jotadeveloper
2019-04-04 21:23:40 +02:00
parent 133a5f0171
commit 3506f32ad8
241 changed files with 57691 additions and 1932 deletions

View File

@@ -1,18 +0,0 @@
/**
* @prettier
* @flow
*/
import React from 'react';
import type { Node } from 'react';
import { IProps } from './types';
import { Wrapper, Circular } from './styles';
const Spinner = ({ size = 50, centered = false }: IProps): Node => (
<Wrapper centered={centered}>
<Circular size={size} />
</Wrapper>
);
export default Spinner;

View File

@@ -1,30 +0,0 @@
/**
* @prettier
* @flow
*/
import styled, { css } from 'react-emotion';
import CircularProgress from '@material-ui/core/CircularProgress/index';
import colors from '../../utils/styles/colors';
export const Wrapper = styled.div`
&& {
display: flex;
align-items: center;
justify-content: center;
${props =>
props.centered &&
css`
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
`};
}
`;
export const Circular = styled(CircularProgress)`
&& {
color: ${colors.primary};
}
`;

View File

@@ -1,9 +0,0 @@
/**
* @prettier
* @flow
*/
export interface IProps {
size?: number;
centered?: boolean;
}