-
Notifications
You must be signed in to change notification settings - Fork 843
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert loading components to TS, fix ie11 shadow (#1683)
Converts the loading components over to typescript.
- Loading branch information
Showing
31 changed files
with
514 additions
and
381 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
This file was deleted.
Oops, something went wrong.
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 @@ | ||
import React from 'react'; | ||
|
||
import { EuiLoadingChart } from '../../../../src/components/loading'; | ||
|
||
export default () => ( | ||
<div> | ||
<EuiLoadingChart size="m" /> | ||
| ||
<EuiLoadingChart size="l" /> | ||
| ||
<EuiLoadingChart size="xl" /> | ||
<br /> | ||
<br /> | ||
<EuiLoadingChart size="m" mono /> | ||
| ||
<EuiLoadingChart size="l" mono /> | ||
| ||
<EuiLoadingChart size="xl" mono /> | ||
</div> | ||
); |
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 was deleted.
Oops, something went wrong.
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,11 @@ | ||
import React from 'react'; | ||
|
||
import { EuiLoadingKibana } from '../../../../src/components/loading'; | ||
|
||
export default () => ( | ||
<div> | ||
<EuiLoadingKibana size="m" /> | ||
<EuiLoadingKibana size="l" /> | ||
<EuiLoadingKibana size="xl" /> | ||
</div> | ||
); |
This file was deleted.
Oops, something went wrong.
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,15 @@ | ||
import React from 'react'; | ||
|
||
import { EuiLoadingSpinner } from '../../../../src/components/loading'; | ||
|
||
export default () => ( | ||
<div> | ||
<EuiLoadingSpinner size="s" /> | ||
| ||
<EuiLoadingSpinner size="m" /> | ||
| ||
<EuiLoadingSpinner size="l" /> | ||
| ||
<EuiLoadingSpinner size="xl" /> | ||
</div> | ||
); |
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
41 changes: 0 additions & 41 deletions
41
src/components/loading/__snapshots__/loading_chart.test.js.snap
This file was deleted.
Oops, something went wrong.
98 changes: 98 additions & 0 deletions
98
src/components/loading/__snapshots__/loading_chart.test.tsx.snap
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,98 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`EuiLoadingChart is rendered 1`] = ` | ||
<div | ||
aria-label="aria-label" | ||
class="euiLoadingChart testClass1 testClass2 euiLoadingChart--medium" | ||
data-test-subj="test subject string" | ||
> | ||
<div | ||
class="euiLoadingChart__bar" | ||
/> | ||
<div | ||
class="euiLoadingChart__bar" | ||
/> | ||
<div | ||
class="euiLoadingChart__bar" | ||
/> | ||
<div | ||
class="euiLoadingChart__bar" | ||
/> | ||
</div> | ||
`; | ||
|
||
exports[`EuiLoadingChart mono is rendered 1`] = ` | ||
<div | ||
class="euiLoadingChart euiLoadingChart--mono euiLoadingChart--medium" | ||
> | ||
<div | ||
class="euiLoadingChart__bar" | ||
/> | ||
<div | ||
class="euiLoadingChart__bar" | ||
/> | ||
<div | ||
class="euiLoadingChart__bar" | ||
/> | ||
<div | ||
class="euiLoadingChart__bar" | ||
/> | ||
</div> | ||
`; | ||
|
||
exports[`EuiLoadingChart size l is rendered 1`] = ` | ||
<div | ||
class="euiLoadingChart euiLoadingChart--large" | ||
> | ||
<div | ||
class="euiLoadingChart__bar" | ||
/> | ||
<div | ||
class="euiLoadingChart__bar" | ||
/> | ||
<div | ||
class="euiLoadingChart__bar" | ||
/> | ||
<div | ||
class="euiLoadingChart__bar" | ||
/> | ||
</div> | ||
`; | ||
|
||
exports[`EuiLoadingChart size m is rendered 1`] = ` | ||
<div | ||
class="euiLoadingChart euiLoadingChart--medium" | ||
> | ||
<div | ||
class="euiLoadingChart__bar" | ||
/> | ||
<div | ||
class="euiLoadingChart__bar" | ||
/> | ||
<div | ||
class="euiLoadingChart__bar" | ||
/> | ||
<div | ||
class="euiLoadingChart__bar" | ||
/> | ||
</div> | ||
`; | ||
|
||
exports[`EuiLoadingChart size xl is rendered 1`] = ` | ||
<div | ||
class="euiLoadingChart euiLoadingChart--xLarge" | ||
> | ||
<div | ||
class="euiLoadingChart__bar" | ||
/> | ||
<div | ||
class="euiLoadingChart__bar" | ||
/> | ||
<div | ||
class="euiLoadingChart__bar" | ||
/> | ||
<div | ||
class="euiLoadingChart__bar" | ||
/> | ||
</div> | ||
`; |
40 changes: 0 additions & 40 deletions
40
src/components/loading/__snapshots__/loading_kibana.test.js.snap
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.