import React from 'react'; import { StoryObj, Meta } from '@storybook/react'; import AUNotificationComponent from '../src/components/AUNotificationComponent'; import AUButtonComponent from '../src/components/AUButtonComponent'; import { ThemeWrapper } from './lib/helpers'; export default { title: 'Delphinus/Notification', component: AUNotificationComponent, argTypes: { type: { control: { type: 'radio', }, options: [ 'default', 'warning', 'attention', 'confirm', ], }, header: { table: { disable: true, } }, content: { table: { disable: true, } }, actions: { table: { disable: true, } }, classNames: { table: { disable: true, } }, }, decorators: [ (Story, context) => ( {Story()} ) ], } as Meta; type Story = StoryObj; export const Default: Story = { args: { header: 'This is a notification', content: [

This might be of importance...

], }, render: (args) => , }; export const Warning: Story = { args: { header: 'Oops! An error has occurred', type: 'warning', content: [

Shit's fucked, yo!

], }, render: (args) => , }; export const Attention: Story = { args: { header: 'Please read this', type: 'attention', content: [

We really want you to read this.

], }, render: (args) => , }; export const Confirm: Story = { args: { header: 'Great success', type: 'confirm', content: [

You the man now, dawg!

], }, render: (args) => , }; export const Single_Action: Story = { args: { header: 'Do you want to do this?', type: 'attention', content: [

Please confirm.

], actions: [ ], }, render: (args) => , }; export const Multiple_Actions: Story = { args: { header: 'Do you want to do this?', type: 'attention', content: [

Please confirm.

], actions: [
, ], }, render: (args) => , }; export const No_Header: Story = { args: { content: [

This might be of importance...

], }, render: (args) => , }; export const Constrained_Width: Story = { args: { header: 'This is a notification', content: [

This might be of importance...

], }, render: (args) => , };