import React from 'react' import { type Meta } from '@storybook/react' import { Text } from '~components/Text' import { StickerSheet, type StickerSheetStory } from '~storybook/components/StickerSheet' import { Card, type CardProps } from '../index' export default { title: 'Components/Card', args: { children: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', }, parameters: { chromatic: { disable: false }, controls: { disable: true }, }, } satisfies Meta const colors = [ 'blue', 'green', 'gray', 'orange', 'purple', 'red', 'white', 'yellow', ] satisfies CardProps['color'][] const CardWithContent = (props: CardProps): JSX.Element => (
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Voluptas accusantium doloribus dicta odio recusandae repudiandae tenetur! Fugiat vero architecto quasi rem culpa vel asperiores, sit, quas suscipit, ea deleniti dolorum.
) const StickerSheetTemplate: StickerSheetStory = { render: ({ isReversed, ...args }) => ( <> {colors.map((color) => ( ))} ), } export const StickerSheetDefault: StickerSheetStory = { ...StickerSheetTemplate, name: 'Sticker Sheet (Default)', } export const StickerSheetRTL: StickerSheetStory = { ...StickerSheetTemplate, name: 'Sticker Sheet (RTL)', parameters: { textDirection: 'rtl' }, }