forked from uber/baseweb
-
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.
feat(progress-step):update design (uber#3703)
* feat(progress-step):update design * fix typos * test(vrt): update visual snapshots for 213cbb4 [skip ci] (uber#3704) Co-authored-by: UberOpenSourceBot <[email protected]> * update docs * fix typos * style modification * fix bugs * fix bugs * fix bugs * test(vrt): update visual snapshots for b9dfdda [skip ci] (uber#3709) Co-authored-by: UberOpenSourceBot <[email protected]> * test(vrt): update visual snapshots for bf5e760 [skip ci] (uber#3712) Co-authored-by: UberOpenSourceBot <[email protected]> Co-authored-by: UberOpenSourceBot <[email protected]> Co-authored-by: UberOpenSourceBot <[email protected]> Co-authored-by: Chase Starr <[email protected]>
- Loading branch information
1 parent
4f0f593
commit f98ddc7
Showing
30 changed files
with
237 additions
and
86 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
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
58 changes: 58 additions & 0 deletions
58
src/progress-steps/__tests__/progress-steps-number.scenario.js
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,58 @@ | ||
/* | ||
Copyright (c) 2018-2020 Uber Technologies, Inc. | ||
This source code is licensed under the MIT license found in the | ||
LICENSE file in the root directory of this source tree. | ||
*/ | ||
// @flow | ||
|
||
import * as React from 'react'; | ||
|
||
import {Block} from '../../block/index.js'; | ||
import {Button} from '../../button/index.js'; | ||
import {ProgressSteps, NumberedStep} from '../index.js'; | ||
|
||
class ProgressStepsNumberContainer extends React.Component< | ||
{}, | ||
{current: number}, | ||
> { | ||
state = {current: 0}; | ||
|
||
render() { | ||
return ( | ||
<ProgressSteps current={this.state.current}> | ||
<NumberedStep title="Create Account"> | ||
<Block data-e2e="content-1" font="font400"> | ||
Here is some step content | ||
</Block> | ||
<Button | ||
data-e2e="button-next" | ||
onClick={() => this.setState({current: 1})} | ||
> | ||
Next | ||
</Button> | ||
</NumberedStep> | ||
<NumberedStep title="Verify Payment"> | ||
<Block data-e2e="content-2" font="font400"> | ||
Here is some more content | ||
</Block> | ||
<Button | ||
data-e2e="button-previous" | ||
onClick={() => this.setState({current: 0})} | ||
> | ||
Previous | ||
</Button> | ||
<Button onClick={() => this.setState({current: 2})}>Next</Button> | ||
</NumberedStep> | ||
<NumberedStep title="Add Payment Method"> | ||
<Block data-e2e="content-3" font="font400"> | ||
Here too! | ||
</Block> | ||
<Button onClick={() => this.setState({current: 1})}>Previous</Button> | ||
</NumberedStep> | ||
</ProgressSteps> | ||
); | ||
} | ||
} | ||
|
||
export default ProgressStepsNumberContainer; |
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.