import type { Meta, StoryObj } from '@storybook/nextjs' import ModalLikeWrap from '.' const meta = { title: 'Base/Feedback/ModalLikeWrap', component: ModalLikeWrap, parameters: { layout: 'centered', docs: { description: { component: 'Compact “modal-like” card used in wizards. Provides header actions, optional back slot, and confirm/cancel buttons.', }, }, }, tags: ['autodocs'], argTypes: { title: { control: 'text', description: 'Header title text.', }, className: { control: 'text', description: 'Additional classes on the wrapper.', }, beforeHeader: { control: false, description: 'Slot rendered before the header (commonly a back link).', }, hideCloseBtn: { control: 'boolean', description: 'Hides the top-right close icon when true.', }, children: { control: false, }, onClose: { control: false, }, onConfirm: { control: false, }, }, args: { title: 'Create dataset field', hideCloseBtn: false, onClose: () => console.log('close'), onConfirm: () => console.log('confirm'), children: null, }, } satisfies Meta export default meta type Story = StoryObj const BaseContent = () => (

Describe the new field your dataset should collect. Provide a clear label and optional helper text.

Form inputs would be placed here in the real flow.
) export const Default: Story = { render: args => ( ), args: { children: null, }, } export const WithBackLink: Story = { render: args => ( console.log('back')} > {'<'} Back )} > ), args: { title: 'Select metadata type', children: null, }, parameters: { docs: { description: { story: 'Demonstrates feeding content into `beforeHeader` while hiding the close button.', }, }, }, } export const CustomWidth: Story = { render: args => (
Tip: metadata keys may only include letters, numbers, and underscores.
), args: { title: 'Advanced configuration', children: null, }, parameters: { docs: { description: { story: 'Applies extra width and helper messaging to emulate configuration panels.', }, }, }, }