-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add search icon (#226) * add an error & loading state to the Select (#235) * Auto-Scale select on open (#236) * add initialWidth prop to select for auto-scaling * re-order navbar items in mobile view (#237) Co-authored-by: Jamie <[email protected]> Co-authored-by: Daniel <[email protected]>
- Loading branch information
1 parent
f77ee8e
commit 10c871d
Showing
18 changed files
with
447 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,4 +48,3 @@ workflows: | |
branches: | ||
only: | ||
- master | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Spinner | ||
|
||
To implement `Spinner` into your project you'll need to add this import | ||
```js | ||
import { Spinner } from '@sofarsounds/maestro' | ||
``` | ||
|
||
After adding the import you can use it simply like this | ||
```html | ||
<Spinner /> | ||
``` | ||
|
||
## Props | ||
Table below contains all types of props available in the Spinner component | ||
|
||
| Name | Type | Default | Description | | ||
| :------------ | :----- | :-------------- | :------------------------------- | | ||
| size | `string` | `25px` | The size of the spinner in pixels | ||
| invert | `Boolean` | `false` | Whether the invert the color of the spinner | ||
| data-qaid | `string` | | Optional prop for testing purposes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import styled, { css, keyframes } from '../../lib/styledComponents'; | ||
|
||
const load8 = keyframes` | ||
0% { | ||
transform: rotate(0deg); | ||
} | ||
100% { | ||
transform: rotate(360deg); | ||
} | ||
`; | ||
|
||
interface Props { | ||
size?: string; | ||
invert?: boolean; | ||
'data-qaid'?: string; | ||
} | ||
|
||
export default styled.div<Props>` | ||
${({ theme, size = '25px', invert }) => css` | ||
&:after { | ||
border-radius: 50%; | ||
width: 10em; | ||
height: 10em; | ||
} | ||
position: relative; | ||
border-top: 2px solid transparent; | ||
border-right: 2px solid transparent; | ||
border-bottom: 2px solid transparent; | ||
border-left: 2px solid ${theme.colors[invert ? 'whiteDenim' : 'macyGrey']}; | ||
transform: translateZ(0); | ||
animation: ${load8} 0.5s infinite linear; | ||
border-radius: 50%; | ||
width: ${size}; | ||
height: ${size}; | ||
`}; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.