mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 03:27:52 +00:00
chore: Remove older UI (#11720)
This commit is contained in:
@@ -11,7 +11,7 @@ const SIZES = ['default', 'sm', 'lg'];
|
||||
<Story title="Components/Button" :layout="{ type: 'grid', width: '800px' }">
|
||||
<!-- Basic Variants -->
|
||||
<Variant title="Basic Variants">
|
||||
<div class="flex flex-wrap gap-2 p-4 bg-white dark:bg-slate-900">
|
||||
<div class="flex flex-wrap gap-2 p-4 bg-n-background">
|
||||
<Button
|
||||
v-for="variant in VARIANTS"
|
||||
:key="variant"
|
||||
@@ -23,7 +23,7 @@ const SIZES = ['default', 'sm', 'lg'];
|
||||
|
||||
<!-- Colors -->
|
||||
<Variant title="Color Variants">
|
||||
<div class="flex flex-wrap gap-2 p-4 bg-white dark:bg-slate-900">
|
||||
<div class="flex flex-wrap gap-2 p-4 bg-n-background">
|
||||
<Button
|
||||
v-for="color in COLORS"
|
||||
:key="color"
|
||||
@@ -35,16 +35,14 @@ const SIZES = ['default', 'sm', 'lg'];
|
||||
|
||||
<!-- Sizes -->
|
||||
<Variant title="Size Variants">
|
||||
<div
|
||||
class="flex flex-wrap items-center gap-2 p-4 bg-white dark:bg-slate-900"
|
||||
>
|
||||
<div class="flex flex-wrap items-center gap-2 p-4 bg-n-background">
|
||||
<Button v-for="size in SIZES" :key="size" :label="size" :size="size" />
|
||||
</div>
|
||||
</Variant>
|
||||
|
||||
<!-- Icons -->
|
||||
<Variant title="Icons">
|
||||
<div class="flex flex-wrap gap-2 p-4 bg-white dark:bg-slate-900">
|
||||
<div class="flex flex-wrap gap-2 p-4 bg-n-background">
|
||||
<Button label="Leading Icon" icon="i-lucide-plus" />
|
||||
<Button label="Trailing Icon" icon="i-lucide-plus" trailing-icon />
|
||||
<Button icon="i-lucide-plus" />
|
||||
@@ -53,7 +51,7 @@ const SIZES = ['default', 'sm', 'lg'];
|
||||
|
||||
<!-- Loading State -->
|
||||
<Variant title="Loading State">
|
||||
<div class="flex flex-wrap gap-2 p-4 bg-white dark:bg-slate-900">
|
||||
<div class="flex flex-wrap gap-2 p-4 bg-n-background">
|
||||
<Button label="Loading" is-loading />
|
||||
<Button label="Loading" variant="outline" is-loading />
|
||||
<Button is-loading icon="i-lucide-plus" />
|
||||
@@ -62,7 +60,7 @@ const SIZES = ['default', 'sm', 'lg'];
|
||||
|
||||
<!-- Disabled State -->
|
||||
<Variant title="Disabled State">
|
||||
<div class="flex flex-wrap gap-2 p-4 bg-white dark:bg-slate-900">
|
||||
<div class="flex flex-wrap gap-2 p-4 bg-n-background">
|
||||
<Button label="Disabled" disabled />
|
||||
<Button label="Disabled Outline" variant="outline" disabled />
|
||||
<Button label="Disabled Icon" icon="delete" disabled />
|
||||
@@ -78,7 +76,7 @@ const SIZES = ['default', 'sm', 'lg'];
|
||||
|
||||
<!-- Color Combinations -->
|
||||
<Variant title="Color & Variant Combinations">
|
||||
<div class="flex flex-wrap gap-2 p-4 bg-white dark:bg-slate-900">
|
||||
<div class="flex flex-wrap gap-2 p-4 bg-n-background">
|
||||
<template v-for="color in COLORS" :key="color">
|
||||
<Button
|
||||
v-for="variant in VARIANTS"
|
||||
@@ -93,7 +91,7 @@ const SIZES = ['default', 'sm', 'lg'];
|
||||
|
||||
<!-- Icon Positions -->
|
||||
<Variant title="Icon Positions & Sizes">
|
||||
<div class="flex flex-wrap gap-2 p-4 bg-white dark:bg-slate-900">
|
||||
<div class="flex flex-wrap gap-2 p-4 bg-n-background">
|
||||
<template v-for="size in SIZES" :key="size">
|
||||
<Button
|
||||
:label="`${size} Leading`"
|
||||
@@ -113,7 +111,7 @@ const SIZES = ['default', 'sm', 'lg'];
|
||||
|
||||
<!-- Ghost & Link Variants -->
|
||||
<Variant title="Ghost & Link Variants">
|
||||
<div class="flex flex-wrap gap-2 p-4 bg-white dark:bg-slate-900">
|
||||
<div class="flex flex-wrap gap-2 p-4 bg-n-background">
|
||||
<Button label="Ghost Button" variant="ghost" color="slate" />
|
||||
<Button
|
||||
label="Ghost with Icon"
|
||||
|
||||
Reference in New Issue
Block a user