Some checks failed
DSS Project Analysis / dss-context-update (push) Has been cancelled
- Button.css uses only CSS custom properties, no fallbacks - Token validator now blocks hardcoded values (strict_mode: true) - Hook scripts converted from ESM (.js) to CommonJS (.cjs) - Storybook unified config with HMR disabled for nginx proxy - Added dss-ui package with Figma-synced components and stories 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
74 lines
1.4 KiB
TypeScript
74 lines
1.4 KiB
TypeScript
/**
|
|
* Select & Combobox Stories
|
|
* @generated 2025-12-11T14:37:52.622921
|
|
*/
|
|
import type { Meta, StoryObj } from '@storybook/preact';
|
|
import { SelectCombobox, type SelectComboboxProps } from '../src/atoms/SelectCombobox';
|
|
|
|
const meta: Meta<SelectComboboxProps> = {
|
|
title: '3. Molecules/SelectCombobox',
|
|
component: SelectCombobox,
|
|
tags: ['autodocs'],
|
|
parameters: {
|
|
docs: {
|
|
description: {
|
|
component: `Auto-generated SelectCombobox component
|
|
|
|
**Classification:** molecule
|
|
**Slots:** None
|
|
**Figma ID:** 16:1732`
|
|
}
|
|
}
|
|
},
|
|
argTypes: {
|
|
size: {
|
|
control: 'select',
|
|
options: ['Large', 'Mini', 'Regular', 'Small'],
|
|
description: 'Size variant',
|
|
},
|
|
state: {
|
|
control: 'select',
|
|
options: ['Default', 'Disabled', 'Error', 'Focus', 'Placeholder'],
|
|
description: 'State variant',
|
|
},
|
|
lines: {
|
|
control: 'select',
|
|
options: ['1 Line', '2 Lines'],
|
|
description: 'Lines variant',
|
|
},
|
|
},
|
|
};
|
|
|
|
export default meta;
|
|
type Story = StoryObj<SelectComboboxProps>;
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
size: 'Large',
|
|
state: 'Default',
|
|
lines: '1 Line',
|
|
children: 'SelectCombobox'
|
|
},
|
|
};
|
|
|
|
export const SizeLarge: Story = {
|
|
args: {
|
|
...Default.args,
|
|
size: 'Large',
|
|
},
|
|
};
|
|
|
|
export const SizeMini: Story = {
|
|
args: {
|
|
...Default.args,
|
|
size: 'Mini',
|
|
},
|
|
};
|
|
|
|
export const SizeRegular: Story = {
|
|
args: {
|
|
...Default.args,
|
|
size: 'Regular',
|
|
},
|
|
};
|