From a4a0534ff8d7ec19d0200d5f90046f55bfbfb146 Mon Sep 17 00:00:00 2001 From: Rafael Youakeem Date: Mon, 16 Sep 2024 13:56:05 +0200 Subject: [PATCH] Move story file --- .../DetailsList/DetailsList.stories.tsx | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 apps/store/src/components/ProductCard/DetailsList/DetailsList.stories.tsx diff --git a/apps/store/src/components/ProductCard/DetailsList/DetailsList.stories.tsx b/apps/store/src/components/ProductCard/DetailsList/DetailsList.stories.tsx new file mode 100644 index 0000000000..c48593258d --- /dev/null +++ b/apps/store/src/components/ProductCard/DetailsList/DetailsList.stories.tsx @@ -0,0 +1,86 @@ +import type { Meta, StoryObj } from '@storybook/react' +import { type ComponentProps } from 'react' +import { Badge, Text, yStack } from 'ui' +import { CurrencyCode } from '@/services/graphql/graphql' +import { Price } from '../../Price' +import { DetailsList } from './DetailsList' + +type Controls = ComponentProps + +const meta: Meta = { + title: 'Components / Product Card / DetailsList', + component: DetailsList.Root, + parameters: { + design: { + allowFullscreen: true, + type: 'figma', + url: 'https://www.figma.com/file/5kmmDdh6StpXzbEfr7WevV/Hedvig-UI-Kit?type=design&node-id=16269-14623&t=KfZGhlcQELqgimtF-1', + }, + }, +} +export default meta + +type Story = StoryObj + +export const Default: Story = { + render: () => ( +
+ + + + Homeowner insurance{' '} + + Max + + + 379 kr/mo + + + + Extended travel 60 days + 79 kr/mo + + +
+ ), +} + +export const Large: Story = { + render: () => ( +
+ Details + + + Home type + Homeowner + + + + Address + Bellmansgatan 19A + + + + Zip code + 118 47 + + +
+ ), +} + +export const TotalPrice: Story = { + render: () => ( +
+ + + Total + + + -20% for 3 months, then 379 kr/mo + + + +
+ ), +}