chore: catch up Storybook preview, coverage, and story hygiene
Stories were throwing without AuthModal/CreateFlow providers, autodocs was a no-op, and several DS/create-flow screens had no stories.
This commit is contained in:
@@ -39,32 +39,36 @@ export default {
|
||||
|
||||
const Template = (args) => <Switch {...args} />;
|
||||
|
||||
export const Default = Template.bind({});
|
||||
Default.args = {
|
||||
propSwitch: false,
|
||||
text: "Switch label",
|
||||
export const Default = {
|
||||
args: {
|
||||
propSwitch: false,
|
||||
text: "Switch label",
|
||||
},
|
||||
render: Template,
|
||||
};
|
||||
|
||||
export const Checked = Template.bind({});
|
||||
Checked.args = {
|
||||
propSwitch: true,
|
||||
text: "Switch label",
|
||||
export const Checked = {
|
||||
args: {
|
||||
propSwitch: true,
|
||||
text: "Switch label",
|
||||
},
|
||||
render: Template,
|
||||
};
|
||||
|
||||
export const Focus = Template.bind({});
|
||||
Focus.args = {
|
||||
propSwitch: false,
|
||||
state: "focus",
|
||||
text: "Switch label",
|
||||
export const Focus = {
|
||||
args: {
|
||||
propSwitch: false,
|
||||
state: "focus",
|
||||
text: "Switch label",
|
||||
},
|
||||
render: Template,
|
||||
};
|
||||
|
||||
export const FocusChecked = Template.bind({});
|
||||
FocusChecked.args = {
|
||||
propSwitch: true,
|
||||
state: "focus",
|
||||
text: "Switch label",
|
||||
export const FocusChecked = {
|
||||
args: {
|
||||
propSwitch: true,
|
||||
state: "focus",
|
||||
text: "Switch label",
|
||||
},
|
||||
render: Template,
|
||||
};
|
||||
|
||||
export const States = () => (
|
||||
<div className="space-y-4">
|
||||
<div className="space-y-2">
|
||||
|
||||
Reference in New Issue
Block a user