// Representative Story: the common Story page; each trigger opens the real dialog.
// Representative-page layout (Storybook presentation only): equal columns on PC (iframe width 1000px and up), fewer below that
// (200px minimum). Each specimen sits in its own single-column StateBoard (min larger than any column), so every subtitle and divider
// has the width of its column; a section with fewer specimens than columns leaves the remaining columns empty. The trigger keeps its
// own size (the wrapper div stretches, the inline-flex trigger does not). Overlays open in a portal, so this layout never affects them.
function SpecimenGrid({ states, columns = 4 }: { states: BoardState[]; columns?: 4 | 5 }) {
return (
{states.map((state) => (
{state.children}
}]} />
))}
)
}
// Representative Story: Overview and Variants are merged into one Variants section.
export const All: Story = {
name: "Alert Dialog",
parameters: { layout: "fullscreen", controls: { disable: true } },
render: () => (
},
{ id: "destructive", label: "Destructive", children: },
]}
/>
),
}
export const ConfirmationOpen: Story = { tags: ["verification"], name: "Confirmation", render: () => }
export const DestructiveOpen: Story = { tags: ["verification"], name: "Destructive", render: () => }