-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converted EuiFlex* docs to typescript
- Loading branch information
1 parent
e6b12c5
commit d074292
Showing
16 changed files
with
144 additions
and
56 deletions.
There are no files selected for viewing
5 changes: 1 addition & 4 deletions
5
src-docs/src/views/flex/component_span.js → src-docs/src/views/flex/component_span.tsx
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
5 changes: 1 addition & 4 deletions
5
src-docs/src/views/flex/direction.js → src-docs/src/views/flex/direction.tsx
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
5 changes: 1 addition & 4 deletions
5
src-docs/src/views/flex/flex_grid.js → src-docs/src/views/flex/flex_grid.tsx
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
5 changes: 1 addition & 4 deletions
5
src-docs/src/views/flex/flex_grid_columns.js → ...docs/src/views/flex/flex_grid_columns.tsx
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
7 changes: 2 additions & 5 deletions
7
src-docs/src/views/flex/flex_group.js → src-docs/src/views/flex/flex_group.tsx
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
5 changes: 1 addition & 4 deletions
5
src-docs/src/views/flex/flex_group_wrap.js → src-docs/src/views/flex/flex_group_wrap.tsx
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
7 changes: 2 additions & 5 deletions
7
src-docs/src/views/flex/flex_grow_numeric.js → ...docs/src/views/flex/flex_grow_numeric.tsx
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
5 changes: 1 addition & 4 deletions
5
src-docs/src/views/flex/flex_grow_zero.js → src-docs/src/views/flex/flex_grow_zero.tsx
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
7 changes: 2 additions & 5 deletions
7
src-docs/src/views/flex/flex_gutter.js → src-docs/src/views/flex/flex_gutter.tsx
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
5 changes: 1 addition & 4 deletions
5
src-docs/src/views/flex/flex_items.js → src-docs/src/views/flex/flex_items.tsx
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
8 changes: 2 additions & 6 deletions
8
src-docs/src/views/flex/flex_nest.js → src-docs/src/views/flex/flex_nest.tsx
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
10 changes: 3 additions & 7 deletions
10
src-docs/src/views/flex/flex_responsive.js → src-docs/src/views/flex/flex_responsive.tsx
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
88 changes: 88 additions & 0 deletions
88
src/components/description_list/__snapshots__/description_list.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,88 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`EuiDescriptionList is rendered 1`] = ` | ||
<dl | ||
aria-label="aria-label" | ||
class="euiDescriptionList euiDescriptionList--row testClass1 testClass2" | ||
data-test-subj="test subject string" | ||
> | ||
Content | ||
</dl> | ||
`; | ||
|
||
exports[`EuiDescriptionList props align center is rendered 1`] = ` | ||
<dl | ||
class="euiDescriptionList euiDescriptionList--row euiDescriptionList--center" | ||
/> | ||
`; | ||
|
||
exports[`EuiDescriptionList props align left is rendered 1`] = ` | ||
<dl | ||
class="euiDescriptionList euiDescriptionList--row" | ||
/> | ||
`; | ||
|
||
exports[`EuiDescriptionList props compressed is rendered 1`] = ` | ||
<dl | ||
class="euiDescriptionList euiDescriptionList--row euiDescriptionList--compressed" | ||
/> | ||
`; | ||
|
||
exports[`EuiDescriptionList props listItems is rendered as strings and elements 1`] = ` | ||
<dl | ||
class="euiDescriptionList euiDescriptionList--row" | ||
> | ||
<dt | ||
class="euiDescriptionList__title" | ||
> | ||
Title 1 | ||
</dt> | ||
<dd | ||
class="euiDescriptionList__description" | ||
> | ||
Description 1 | ||
</dd> | ||
<dt | ||
class="euiDescriptionList__title" | ||
> | ||
<em> | ||
Title 2 | ||
</em> | ||
</dt> | ||
<dd | ||
class="euiDescriptionList__description" | ||
> | ||
<code> | ||
Description 2 | ||
</code> | ||
</dd> | ||
<dt | ||
class="euiDescriptionList__title" | ||
> | ||
Title 3 | ||
</dt> | ||
<dd | ||
class="euiDescriptionList__description" | ||
> | ||
Description 3 | ||
</dd> | ||
</dl> | ||
`; | ||
|
||
exports[`EuiDescriptionList props type column is rendered 1`] = ` | ||
<dl | ||
class="euiDescriptionList euiDescriptionList--column" | ||
/> | ||
`; | ||
|
||
exports[`EuiDescriptionList props type inline is rendered 1`] = ` | ||
<dl | ||
class="euiDescriptionList euiDescriptionList--inline" | ||
/> | ||
`; | ||
|
||
exports[`EuiDescriptionList props type row is rendered 1`] = ` | ||
<dl | ||
class="euiDescriptionList euiDescriptionList--row" | ||
/> | ||
`; |
11 changes: 11 additions & 0 deletions
11
src/components/description_list/__snapshots__/description_list_description.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,11 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`EuiDescriptionListDescription is rendered 1`] = ` | ||
<dd | ||
aria-label="aria-label" | ||
class="euiDescriptionList__description testClass1 testClass2" | ||
data-test-subj="test subject string" | ||
> | ||
Content | ||
</dd> | ||
`; |
11 changes: 11 additions & 0 deletions
11
src/components/description_list/__snapshots__/description_list_title.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,11 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`EuiDescriptionListTitle is rendered 1`] = ` | ||
<dt | ||
aria-label="aria-label" | ||
class="euiDescriptionList__title testClass1 testClass2" | ||
data-test-subj="test subject string" | ||
> | ||
Content | ||
</dt> | ||
`; |
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