import Create from "../app/components/Create";
import Input from "../app/components/Input";
export default {
title: "Components/Create",
component: Create,
parameters: {
layout: "fullscreen",
docs: {
description: {
component:
"Create dialog component with portal rendering, keyboard navigation, and focus trap. Supports multi-step workflows with stepper integration. Used for the create flow in the application.",
},
},
},
argTypes: {
isOpen: {
control: { type: "boolean" },
},
title: {
control: { type: "text" },
},
description: {
control: { type: "text" },
},
showBackButton: {
control: { type: "boolean" },
},
showNextButton: {
control: { type: "boolean" },
},
nextButtonDisabled: {
control: { type: "boolean" },
},
currentStep: {
control: { type: "number", min: 1, max: 5 },
},
totalSteps: {
control: { type: "number", min: 1, max: 5 },
},
},
tags: ["autodocs"],
};
const Template = (args) => {
return (
{}}>
{args.children}
);
};
export const Default = Template.bind({});
Default.args = {
isOpen: true,
title: "What do you call your group's new policy?",
description: "You can also combine or add new approaches to the list",
children: (
0/48
),
showBackButton: true,
showNextButton: true,
backButtonText: "Back",
nextButtonText: "Next",
nextButtonDisabled: false,
};
export const WithStepper = Template.bind({});
WithStepper.args = {
isOpen: true,
title: "What do you call your group's new policy?",
description: "You can also combine or add new approaches to the list",
children: (
0/48
),
showBackButton: true,
showNextButton: true,
backButtonText: "Back",
nextButtonText: "Next",
nextButtonDisabled: false,
currentStep: 1,
totalSteps: 3,
};
export const Step2 = Template.bind({});
Step2.args = {
isOpen: true,
title: "How should conflicts be resolved?",
description: "You can also combine or add new approaches to the list",
children: (
),
showBackButton: false,
showNextButton: false,
};
export const NextButtonDisabled = Template.bind({});
NextButtonDisabled.args = {
isOpen: true,
title: "What do you call your group's new policy?",
description: "You can also combine or add new approaches to the list",
children: (