diff --git a/.eslintignore b/.eslintignore index 7a3d6155..1e484b98 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,3 +1,4 @@ node_modules built healthcheck.js +tailwind.config.js \ No newline at end of file diff --git a/frontend/src/components/v2/Card/Card.tsx b/frontend/src/components/v2/Card/Card.tsx index a5d93e3f..1001c8cf 100644 --- a/frontend/src/components/v2/Card/Card.tsx +++ b/frontend/src/components/v2/Card/Card.tsx @@ -34,6 +34,7 @@ export const CardBody = ({ children, className }: CardBodyProps) => ( export type CardProps = { children: ReactNode; + className?: string; isFullHeight?: boolean; isRounded?: boolean; isPlain?: boolean; @@ -41,16 +42,17 @@ export type CardProps = { }; export const Card = forwardRef( - ({ children, isFullHeight, isRounded, isHoverable, isPlain }, ref): JSX.Element => { + ({ children, isFullHeight, isRounded, isHoverable, isPlain, className }, ref): JSX.Element => { return (
{children} diff --git a/frontend/src/components/v2/Modal/Modal.stories.tsx b/frontend/src/components/v2/Modal/Modal.stories.tsx new file mode 100644 index 00000000..5cf19be7 --- /dev/null +++ b/frontend/src/components/v2/Modal/Modal.stories.tsx @@ -0,0 +1,33 @@ +// eslint-disable-next-line import/no-extraneous-dependencies +import { Meta, StoryObj } from '@storybook/react'; + +import { Button } from '../Button'; +import { Modal, ModalContent, ModalContentProps, ModalTrigger } from './Modal'; + +const meta: Meta = { + title: 'Components/Modal', + component: Modal, + tags: ['v2'], + argTypes: {} +}; + +export default meta; +type Story = StoryObj; + +const Template = (args: ModalContentProps) => ( + + + + + Hello world + +); + +export const Basic: Story = { + render: (args) =>