import type { Meta, StoryObj } from "@storybook/nextjs-vite" import { Typography } from "./Typography.tsx" import TypographyDocs from "./Typography.docs.mdx" import { config as typographyConfig } from "./variants" const meta: Meta = { title: "Core Components/Typography", component: Typography, args: { variant: typographyConfig.defaultVariants.variant }, argTypes: { variant: { control: "select", options: Object.keys(typographyConfig.variants.variant), table: { defaultValue: { summary: typographyConfig.defaultVariants.variant }, }, }, }, parameters: { docs: { toc: true, page: TypographyDocs } }, } export default meta type Story = StoryObj export const TitleLg: Story = { name: "Title/lg", args: { variant: "Title/lg", children:

The quick brown fox jumps over the lazy dog

, }, } export const TitleMd: Story = { name: "Title/md", args: { variant: "Title/md", children:

The quick brown fox jumps over the lazy dog

, }, } export const TitleMdLowCase: Story = { name: "Title/mdLowCase", args: { variant: "Title/mdLowCase", children:

The quick brown fox jumps over the lazy dog

, }, } export const TitleSm: Story = { name: "Title/sm", args: { variant: "Title/sm", children:

The quick brown fox jumps over the lazy dog

, }, } export const TitleSmLowCase: Story = { name: "Title/smLowCase", args: { variant: "Title/smLowCase", children:

The quick brown fox jumps over the lazy dog

, }, } export const TitleXs: Story = { name: "Title/xs", args: { variant: "Title/xs", children:

The quick brown fox jumps over the lazy dog

, }, } export const TitleDecorativeLg: Story = { name: "Title/Decorative/lg", args: { variant: "Title/Decorative/lg", children:

The quick brown fox jumps over the lazy dog

, }, } export const TitleDecorativeMd: Story = { name: "Title/Decorative/md", args: { variant: "Title/Decorative/md", children:

The quick brown fox jumps over the lazy dog

, }, } export const TitleSubtitleLg: Story = { name: "Title/Subtitle/lg", args: { variant: "Title/Subtitle/lg", children:

The quick brown fox jumps over the lazy dog

, }, } export const TitleSubtitleMd: Story = { name: "Title/Subtitle/md", args: { variant: "Title/Subtitle/md", children:

The quick brown fox jumps over the lazy dog

, }, } export const TitleOverlineSm: Story = { name: "Title/Overline/sm", args: { variant: "Title/Overline/sm", children:

The quick brown fox jumps over the lazy dog

, }, } export const BodyLeadtext: Story = { name: "Body/Lead text", args: { variant: "Body/Lead text", children:

The quick brown fox jumps over the lazy dog

, }, } export const BodyParagraphMdRegular: Story = { name: "Body/Paragraph/mdRegular", args: { variant: "Body/Paragraph/mdRegular", children:

The quick brown fox jumps over the lazy dog

, }, } export const BodyParagraphMdBold: Story = { name: "Body/Paragraph/mdBold", args: { variant: "Body/Paragraph/mdBold", children:

The quick brown fox jumps over the lazy dog

, }, } export const BodySupportingtextCaptionSmRegular: Story = { name: "Body/Supporting text (caption)/smRegular", args: { variant: "Body/Supporting text (caption)/smRegular", children:

The quick brown fox jumps over the lazy dog

, }, } export const BodySupportingtextCaptionSmBold: Story = { name: "Body/Supporting text (caption)/smBold", args: { variant: "Body/Supporting text (caption)/smBold", children:

The quick brown fox jumps over the lazy dog

, }, } export const BodyUnderlineMd: Story = { name: "Body/Underline/md", args: { variant: "Body/Underline/md", children:

The quick brown fox jumps over the lazy dog

, }, } export const BodyUnderlineSm: Story = { name: "Body/Underline/sm", args: { variant: "Body/Underline/sm", children:

The quick brown fox jumps over the lazy dog

, }, } export const TagSm: Story = { name: "Tag/sm", args: { variant: "Tag/sm", children: The quick brown fox jumps over the lazy dog, }, } export const LinkMd: Story = { name: "Link/md", args: { variant: "Link/md", children: The quick brown fox jumps over the lazy dog, }, } export const LinkSm: Story = { name: "Link/sm", args: { variant: "Link/sm", children: The quick brown fox jumps over the lazy dog, }, } export const LabelXsRegular: Story = { name: "Label/xsRegular", args: { variant: "Label/xsRegular", children: The quick brown fox jumps over the lazy dog, }, } export const LabelXsBold: Story = { name: "Label/xsBold", args: { variant: "Label/xsBold", children: The quick brown fox jumps over the lazy dog, }, }