2026-02-02 18:44:58 +00:00
|
|
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
|
|
|
import { Sidebar } from './Sidebar';
|
|
|
|
|
import { Filter, User } from 'lucide-react';
|
|
|
|
|
|
|
|
|
|
const meta = {
|
|
|
|
|
title: 'UI/Sidebar',
|
|
|
|
|
component: Sidebar,
|
|
|
|
|
tags: ['autodocs'],
|
|
|
|
|
argTypes: {
|
|
|
|
|
position: {
|
|
|
|
|
control: 'radio',
|
|
|
|
|
options: ['left', 'right'],
|
|
|
|
|
},
|
|
|
|
|
width: { control: 'text' },
|
|
|
|
|
collapsible: { control: 'boolean' },
|
|
|
|
|
},
|
|
|
|
|
parameters: {
|
|
|
|
|
layout: 'fullscreen',
|
|
|
|
|
},
|
|
|
|
|
decorators: [
|
|
|
|
|
(Story) => (
|
refactor: Phase 3a — Global color class migration to SUMI semantics
- Replace all kodo-* color classes across ~100 TSX files:
kodo-void → background, kodo-ink → card, kodo-graphite → muted,
kodo-steel → muted-foreground, kodo-cyan → primary, kodo-magenta → destructive,
kodo-lime → success, kodo-red → destructive, kodo-gold → warning
- Replace cyan-500, magenta-500, lime-500 default Tailwind colors with
semantic equivalents (primary, destructive, success)
- Fix WaveformVisualizer hardcoded hex colors to SUMI values
- Delete global-effects.css (conflicting, redundant with index.css)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 00:51:49 +00:00
|
|
|
<div className="h-[500px] w-full relative flex border bg-background">
|
2026-02-02 18:44:58 +00:00
|
|
|
<Story />
|
|
|
|
|
<div className="flex-1 p-8">
|
|
|
|
|
<h1 className="text-2xl font-bold mb-4">Main Content</h1>
|
refactor: Phase 3a — Global color class migration to SUMI semantics
- Replace all kodo-* color classes across ~100 TSX files:
kodo-void → background, kodo-ink → card, kodo-graphite → muted,
kodo-steel → muted-foreground, kodo-cyan → primary, kodo-magenta → destructive,
kodo-lime → success, kodo-red → destructive, kodo-gold → warning
- Replace cyan-500, magenta-500, lime-500 default Tailwind colors with
semantic equivalents (primary, destructive, success)
- Fix WaveformVisualizer hardcoded hex colors to SUMI values
- Delete global-effects.css (conflicting, redundant with index.css)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 00:51:49 +00:00
|
|
|
<p className="text-muted-foreground">
|
2026-02-02 18:44:58 +00:00
|
|
|
The sidebar sits alongside this content.
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
} satisfies Meta<typeof Sidebar>;
|
|
|
|
|
|
|
|
|
|
export default meta;
|
|
|
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
|
|
|
|
|
|
export const LeftSidebar: Story = {
|
|
|
|
|
args: {
|
|
|
|
|
title: 'Filters',
|
|
|
|
|
icon: <Filter className="w-4 h-4" />,
|
|
|
|
|
position: 'left',
|
|
|
|
|
children: (
|
|
|
|
|
<div className="p-4 space-y-4">
|
|
|
|
|
<div className="h-20 bg-white/5 rounded-md" />
|
|
|
|
|
<div className="h-20 bg-white/5 rounded-md" />
|
|
|
|
|
<div className="h-20 bg-white/5 rounded-md" />
|
|
|
|
|
</div>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const RightSidebar: Story = {
|
|
|
|
|
args: {
|
|
|
|
|
title: 'User Profile',
|
|
|
|
|
icon: <User className="w-4 h-4" />,
|
|
|
|
|
position: 'right',
|
|
|
|
|
children: (
|
|
|
|
|
<div className="p-4 space-y-4">
|
refactor: Phase 3a — Global color class migration to SUMI semantics
- Replace all kodo-* color classes across ~100 TSX files:
kodo-void → background, kodo-ink → card, kodo-graphite → muted,
kodo-steel → muted-foreground, kodo-cyan → primary, kodo-magenta → destructive,
kodo-lime → success, kodo-red → destructive, kodo-gold → warning
- Replace cyan-500, magenta-500, lime-500 default Tailwind colors with
semantic equivalents (primary, destructive, success)
- Fix WaveformVisualizer hardcoded hex colors to SUMI values
- Delete global-effects.css (conflicting, redundant with index.css)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 00:51:49 +00:00
|
|
|
<div className="text-sm text-muted-foreground">User details go here</div>
|
2026-02-02 18:44:58 +00:00
|
|
|
</div>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
decorators: [
|
|
|
|
|
(Story) => (
|
refactor: Phase 3a — Global color class migration to SUMI semantics
- Replace all kodo-* color classes across ~100 TSX files:
kodo-void → background, kodo-ink → card, kodo-graphite → muted,
kodo-steel → muted-foreground, kodo-cyan → primary, kodo-magenta → destructive,
kodo-lime → success, kodo-red → destructive, kodo-gold → warning
- Replace cyan-500, magenta-500, lime-500 default Tailwind colors with
semantic equivalents (primary, destructive, success)
- Fix WaveformVisualizer hardcoded hex colors to SUMI values
- Delete global-effects.css (conflicting, redundant with index.css)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 00:51:49 +00:00
|
|
|
<div className="h-[500px] w-full relative flex border bg-background">
|
2026-02-02 18:44:58 +00:00
|
|
|
<div className="flex-1 p-8">
|
|
|
|
|
<h1 className="text-2xl font-bold mb-4">Main Content</h1>
|
|
|
|
|
</div>
|
|
|
|
|
<Story />
|
|
|
|
|
</div>
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
};
|