chore: Remove older UI (#11720)
This commit is contained in:
@@ -5,25 +5,25 @@ import Input from './Input.vue';
|
||||
<template>
|
||||
<Story title="Components/Input" :layout="{ type: 'grid', width: '400' }">
|
||||
<Variant title="Default">
|
||||
<div class="p-4 bg-white dark:bg-slate-800">
|
||||
<div class="p-4 bg-n-background">
|
||||
<Input placeholder="Default Input" />
|
||||
</div>
|
||||
</Variant>
|
||||
|
||||
<Variant title="With Label">
|
||||
<div class="p-4 bg-white dark:bg-slate-800">
|
||||
<div class="p-4 bg-n-background">
|
||||
<Input label="Username" placeholder="Enter your username" />
|
||||
</div>
|
||||
</Variant>
|
||||
|
||||
<Variant title="Disabled">
|
||||
<div class="p-4 bg-white dark:bg-slate-800">
|
||||
<div class="p-4 bg-n-background">
|
||||
<Input label="Disabled Input" placeholder="Can't type here" disabled />
|
||||
</div>
|
||||
</Variant>
|
||||
|
||||
<Variant title="With Message">
|
||||
<div class="flex flex-col gap-4 p-4 bg-white dark:bg-slate-800">
|
||||
<div class="flex flex-col gap-4 p-4 bg-n-background">
|
||||
<Input
|
||||
label="Email"
|
||||
placeholder="Enter your email"
|
||||
@@ -46,7 +46,7 @@ import Input from './Input.vue';
|
||||
</Variant>
|
||||
|
||||
<Variant title="Different Types">
|
||||
<div class="flex flex-col gap-4 p-4 bg-white dark:bg-slate-800">
|
||||
<div class="flex flex-col gap-4 p-4 bg-n-background">
|
||||
<Input label="Text" type="text" placeholder="Text input" />
|
||||
<Input label="Number" type="number" placeholder="Number input" />
|
||||
<Input label="Password" type="password" placeholder="Password input" />
|
||||
@@ -56,11 +56,11 @@ import Input from './Input.vue';
|
||||
</Variant>
|
||||
|
||||
<Variant title="Custom Input Class">
|
||||
<div class="p-4 bg-white dark:bg-slate-800">
|
||||
<div class="p-4 bg-n-background">
|
||||
<Input
|
||||
label="Custom Style"
|
||||
placeholder="Custom input class"
|
||||
custom-input-class="border-yellow-500 dark:border-yellow-700"
|
||||
custom-input-class="border-n-amber-5 dark:border-n-amber-5"
|
||||
/>
|
||||
</div>
|
||||
</Variant>
|
||||
|
||||
@@ -38,7 +38,7 @@ const messageClass = computed(() => {
|
||||
case 'error':
|
||||
return 'text-n-ruby-9 dark:text-n-ruby-9';
|
||||
case 'success':
|
||||
return 'text-green-500 dark:text-green-400';
|
||||
return 'text-n-teal-10 dark:text-n-teal-10';
|
||||
default:
|
||||
return 'text-n-slate-11 dark:text-n-slate-11';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user