- Add root biome.json that extends packages/config/biome.json - Add explicit ignore patterns for dist/, build/, .next/, .turbo/, etc. - Make a11y lints warnings instead of errors (non-blocking) - Remove invalid biome-ignore comment from Section.tsx - Apply formatting to all source files (155 files checked, 129 fixed) This fixes the CI format check that was failing with 2064+ errors because Biome was checking generated files in dist/ and .turbo/. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
import type { Meta, StoryObj } from '@storybook/react';
|
|
import { Card, CardContent, CardHeader, CardTitle } from '@tpmjs/ui/Card/Card';
|
|
import { createElement } from 'react';
|
|
|
|
const meta = {
|
|
title: 'Components/Card',
|
|
component: Card,
|
|
parameters: {
|
|
layout: 'centered',
|
|
},
|
|
tags: ['autodocs'],
|
|
} satisfies Meta<typeof Card>;
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
export const Default: Story = {
|
|
render: () =>
|
|
createElement(
|
|
Card,
|
|
{ className: 'w-[350px]' },
|
|
createElement(CardHeader, {}, createElement(CardTitle, {}, 'Card Title')),
|
|
createElement(CardContent, {}, 'This is the card content.')
|
|
),
|
|
};
|
|
|
|
export const WithLongContent: Story = {
|
|
render: () =>
|
|
createElement(
|
|
Card,
|
|
{ className: 'w-[400px]' },
|
|
createElement(CardHeader, {}, createElement(CardTitle, {}, 'TPMJS')),
|
|
createElement(
|
|
CardContent,
|
|
{},
|
|
'Tool Package Manager for AI Agents. The registry for AI tools. Discover, share, and integrate tools that give your agents superpowers.'
|
|
)
|
|
),
|
|
};
|