forked from elastic/eui
-
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.
Split EuiUpdateButton from EuiSuperDatePicker so it can be used on it…
…s own (elastic#1470) * EuiUpdateButton * changelog * rename EuiUpdateButton to EuiSuperUpdateButton * change log clean up * rest * change log type * Update button/design (#5) * Refactor button’s prop names * Fixing widths
- Loading branch information
Showing
15 changed files
with
350 additions
and
249 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 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 |
---|---|---|
|
@@ -8,4 +8,5 @@ export { | |
|
||
export { | ||
EuiSuperDatePicker, | ||
EuiSuperUpdateButton, | ||
} from './super_date_picker'; |
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
107 changes: 107 additions & 0 deletions
107
src/components/date_picker/super_date_picker/__snapshots__/super_update_button.test.js.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,107 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`EuiSuperUpdateButton is rendered 1`] = ` | ||
<EuiToolTip | ||
delay="regular" | ||
position="bottom" | ||
> | ||
<EuiButton | ||
className="euiSuperUpdateButton" | ||
color="primary" | ||
fill={true} | ||
iconSide="left" | ||
iconType="refresh" | ||
isDisabled={false} | ||
isLoading={false} | ||
onClick={[Function]} | ||
textProps={ | ||
Object { | ||
"className": "euiSuperUpdateButton__text", | ||
} | ||
} | ||
type="button" | ||
> | ||
Refresh | ||
</EuiButton> | ||
</EuiToolTip> | ||
`; | ||
|
||
exports[`EuiSuperUpdateButton isDisabled 1`] = ` | ||
<EuiToolTip | ||
content="Cannot update" | ||
delay="regular" | ||
position="bottom" | ||
> | ||
<EuiButton | ||
className="euiSuperUpdateButton" | ||
color="primary" | ||
fill={true} | ||
iconSide="left" | ||
iconType="refresh" | ||
isDisabled={true} | ||
isLoading={false} | ||
onClick={[Function]} | ||
textProps={ | ||
Object { | ||
"className": "euiSuperUpdateButton__text", | ||
} | ||
} | ||
type="button" | ||
> | ||
Refresh | ||
</EuiButton> | ||
</EuiToolTip> | ||
`; | ||
|
||
exports[`EuiSuperUpdateButton isLoading 1`] = ` | ||
<EuiToolTip | ||
delay="regular" | ||
position="bottom" | ||
> | ||
<EuiButton | ||
className="euiSuperUpdateButton" | ||
color="secondary" | ||
fill={true} | ||
iconSide="left" | ||
iconType="kqlFunction" | ||
isDisabled={false} | ||
isLoading={true} | ||
onClick={[Function]} | ||
textProps={ | ||
Object { | ||
"className": "euiSuperUpdateButton__text", | ||
} | ||
} | ||
type="button" | ||
> | ||
Updating | ||
</EuiButton> | ||
</EuiToolTip> | ||
`; | ||
|
||
exports[`EuiSuperUpdateButton needsUpdate 1`] = ` | ||
<EuiToolTip | ||
content="Click to apply" | ||
delay="regular" | ||
position="bottom" | ||
> | ||
<EuiButton | ||
className="euiSuperUpdateButton" | ||
color="secondary" | ||
fill={true} | ||
iconSide="left" | ||
iconType="kqlFunction" | ||
isDisabled={false} | ||
isLoading={false} | ||
onClick={[Function]} | ||
textProps={ | ||
Object { | ||
"className": "euiSuperUpdateButton__text", | ||
} | ||
} | ||
type="button" | ||
> | ||
Update | ||
</EuiButton> | ||
</EuiToolTip> | ||
`; |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
@import 'variables'; | ||
@import 'mixins'; | ||
|
||
@import 'date_popover/index'; | ||
@import 'quick_select_popover/index'; | ||
@import 'super_date_picker'; | ||
@import 'super_update_button'; |
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.