import { NoopAnimationsModule } from "@angular/platform-browser/animations"; import { Meta, moduleMetadata, StoryObj } from "@storybook/angular"; import { ButtonModule } from "../../button"; import { DialogModule } from "../dialog.module"; import { SimpleDialogComponent } from "./simple-dialog.component"; export default { title: "Component Library/Dialogs/Simple Dialog", component: SimpleDialogComponent, decorators: [ moduleMetadata({ imports: [ButtonModule, NoopAnimationsModule, DialogModule], }), ], parameters: { design: { type: "figma", url: "https://www.figma.com/design/Zt3YSeb6E6lebAffrNLa0h/Tailwind-Component-Library?node-id=21514-19247&t=b5tDKylm5sWm2yKo-4", }, }, } as Meta; type Story = StoryObj; export const Default: Story = { render: (args) => ({ props: args, template: ` Alert Dialog Message Content `, }), }; export const CustomIcon: Story = { render: (args) => ({ props: args, template: ` Premium Subscription Available Message Content `, }), }; export const HideIcon: Story = { render: (args) => ({ props: args, template: ` Premium Subscription Available Message Content `, }), }; export const ScrollingContent: Story = { render: (args) => ({ props: args, template: ` Alert Dialog Message Content Message text goes here.
repeating lines of characters
end of sequence!
`, }), args: { useDefaultIcon: true, }, }; export const TextOverflow: Story = { render: (args) => ({ props: args, template: ` Alert Dialogdialogdialogdialogdialogdialogdialogdialogdialogdialogdialogdialogdialog Message Contentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontent `, }), };