import { NoopAnimationsModule } from "@angular/platform-browser/animations"; import { Meta, StoryObj, moduleMetadata } 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/file/Zt3YSeb6E6lebAffrNLa0h/Tailwind-Component-Library", }, }, } 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 ScrollingContent: Story = { render: (args: SimpleDialogComponent) => ({ 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 `, }), };