chore(storybook): remove scaffolded example stories

This commit is contained in:
Ilia Mashkov
2026-03-07 10:39:15 +03:00
parent 5bbc19566d
commit ef9d97dde0
6 changed files with 854 additions and 113 deletions

View File

@@ -1,40 +0,0 @@
<script lang="ts">
interface Props {
type?: 'button' | 'submit' | 'reset';
variant?: 'primary' | 'secondary' | 'danger';
size?: 'sm' | 'md' | 'lg';
disabled?: boolean;
onclick?: () => void;
children: any;
}
let {
type = 'button',
variant = 'primary',
size = 'md',
disabled = false,
onclick,
children
}: Props = $props();
const variants = {
primary: 'bg-blue-600 text-white hover:bg-blue-700',
secondary: 'bg-gray-200 text-gray-900 hover:bg-gray-300',
danger: 'bg-red-600 text-white hover:bg-red-700'
};
const sizes = {
sm: 'px-3 py-1.5 text-sm',
md: 'px-4 py-2 text-base',
lg: 'px-6 py-3 text-lg'
};
</script>
<button
{type}
{disabled}
onclick={onclick}
class="rounded-md font-medium focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed {variants[variant]} {sizes[size]}"
>
{@render children()}
</button>

View File

@@ -1,26 +0,0 @@
<script lang="ts">
interface Props {
type?: 'text' | 'email' | 'password' | 'number';
placeholder?: string;
disabled?: boolean;
value?: string;
oninput?: (e: Event) => void;
}
let {
type = 'text',
placeholder = '',
disabled = false,
value = '',
oninput
}: Props = $props();
</script>
<input
{type}
{placeholder}
{disabled}
{value}
oninput={oninput}
class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed"
/>