[9/n][Storybook] InlineNotification update argTypes and use theme variants (#46)

This commit is contained in:
Vivian Phung 2024-05-14 17:22:38 -04:00 committed by GitHub
commit 294675c276
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 4 deletions

View File

@ -1 +1,2 @@
export * from './InlineNotification';
export * from './InlineNotification.theme';

View File

@ -1,16 +1,19 @@
import { StoryObj, Meta } from '@storybook/react';
import {
InlineNotification,
InlineNotificationTheme,
} from 'components/shared/InlineNotification';
import { PlusIcon } from 'components/shared/CustomIcon';
import { InlineNotification } from 'components/shared/InlineNotification';
const inlineNotificationVariants = [
const inlineNotificationVariants: InlineNotificationTheme['variant'][] = [
'info',
'danger',
'warning',
'success',
'generic',
];
const inlineNotificationSizes = ['md', 'sm'];
const inlineNotificationSizes: InlineNotificationTheme['size'][] = ['sm', 'md'];
const meta: Meta<typeof InlineNotification> = {
title: 'Components/InlineNotification',
@ -34,6 +37,9 @@ const meta: Meta<typeof InlineNotification> = {
control: 'select',
options: inlineNotificationSizes,
},
hasDescription: {
control: 'boolean',
},
},
};