-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from brainstormforce/SUR-294
Added Progress Steps Story
- Loading branch information
Showing
3 changed files
with
80 additions
and
2 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 |
---|---|---|
@@ -1 +1 @@ | ||
<?php return array('dependencies' => array('react', 'react-dom'), 'version' => 'bf6216ffd684ee62b8cd'); | ||
<?php return array('dependencies' => array('react', 'react-dom'), 'version' => '2313942efbf357138322'); |
Large diffs are not rendered by default.
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,78 @@ | ||
import ProgressSteps from './progress-steps'; | ||
import { Check } from 'lucide-react'; | ||
|
||
export default { | ||
title: 'Components/ProgressSteps', | ||
component: ProgressSteps, | ||
parameters: { | ||
layout: 'centered', | ||
}, | ||
tags: [ 'autodocs' ], | ||
argTypes: { | ||
variant: { | ||
control: 'select', | ||
options: [ 'dot', 'number', 'icon' ], | ||
}, | ||
size: { | ||
control: 'select', | ||
options: [ 'sm', 'md', 'lg' ], | ||
}, | ||
type: { | ||
control: 'select', | ||
options: [ 'inline', 'stack' ], | ||
}, | ||
currentStep: { | ||
control: { type: 'number', min: 1, max: 5 }, | ||
}, | ||
}, | ||
decorators: [ | ||
( Story ) => ( | ||
<div style={ { width: '700px', margin: '0 auto' } }> | ||
<Story /> | ||
</div> | ||
), | ||
], | ||
}; | ||
|
||
const Template = ( args ) => ( | ||
<ProgressSteps { ...args }> | ||
<ProgressSteps.Step labelText="Step 1" /> | ||
<ProgressSteps.Step labelText="Step 2" /> | ||
<ProgressSteps.Step labelText="Step 3" /> | ||
<ProgressSteps.Step labelText="Step 4" /> | ||
<ProgressSteps.Step labelText="Step 5" /> | ||
</ProgressSteps> | ||
); | ||
|
||
export const Default = Template.bind( {} ); | ||
Default.args = { | ||
variant: 'dot', | ||
size: 'md', | ||
type: 'inline', | ||
currentStep: 2, | ||
}; | ||
|
||
export const NumberVariant = Template.bind( {} ); | ||
NumberVariant.args = { | ||
variant: 'number', | ||
size: 'md', | ||
type: 'inline', | ||
currentStep: 3, | ||
}; | ||
|
||
export const IconVariant = Template.bind( {} ); | ||
IconVariant.args = { | ||
variant: 'icon', | ||
size: 'md', | ||
type: 'inline', | ||
currentStep: 4, | ||
icon: <Check />, | ||
}; | ||
|
||
export const StackType = Template.bind( {} ); | ||
StackType.args = { | ||
variant: 'dot', | ||
size: 'md', | ||
type: 'stack', | ||
currentStep: 3, | ||
}; |