From 300fab40d6bab02d25083da7a4e41649d047cb43 Mon Sep 17 00:00:00 2001 From: didu4 Date: Thu, 27 Nov 2025 20:55:52 +0400 Subject: [PATCH 1/5] =?UTF-8?q?=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BB=20?= =?UTF-8?q?=D0=BF=D0=B0=D0=BF=D0=BA=D1=83=20=D0=B4=D0=BB=D1=8F=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BC=D0=BF=D0=BE=D0=BD=D0=B5=D0=BD=D1=82=D0=B0=20=D1=81?= =?UTF-8?q?=20=D1=81=D0=BE=D0=BE=D1=82=D0=B2=D0=B5=D1=82=D1=81=D1=82=D0=B2?= =?UTF-8?q?=D1=83=D1=8E=D1=89=D0=B8=D0=BC=D0=B8=20=D1=84=D0=B0=D0=B9=D0=BB?= =?UTF-8?q?=D0=B0=D0=BC=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Tag/VuTag.stories.ts | 0 src/components/Tag/VuTag.vue | 0 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 src/components/Tag/VuTag.stories.ts create mode 100644 src/components/Tag/VuTag.vue diff --git a/src/components/Tag/VuTag.stories.ts b/src/components/Tag/VuTag.stories.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/components/Tag/VuTag.vue b/src/components/Tag/VuTag.vue new file mode 100644 index 0000000..e69de29 From d8075ffde998b708e29d52c138e8697daab31492 Mon Sep 17 00:00:00 2001 From: didu4 Date: Thu, 27 Nov 2025 21:56:05 +0400 Subject: [PATCH 2/5] =?UTF-8?q?=D0=B2=D0=BF=D0=B8=D1=81=D0=B0=D0=BB=20?= =?UTF-8?q?=D0=BF=D0=B5=D1=80=D0=B2=D0=BE=D0=BD=D0=B0=D1=87=D0=B0=D0=BB?= =?UTF-8?q?=D1=8C=D0=BD=D1=8B=D0=B5=20=D0=BF=D1=80=D0=BE=D0=BF=D1=8B,=20?= =?UTF-8?q?=D0=BA=D0=BB=D0=B0=D1=81=D1=81=D1=8B,=20=D0=B8=D0=B2=D0=B5?= =?UTF-8?q?=D0=BD=D1=82=D1=8B,=20=D0=BE=D1=80=D0=B8=D0=B5=D0=BD=D1=82?= =?UTF-8?q?=D0=B8=D1=80=D1=83=D1=8F=D1=81=D1=8C=20=D0=BD=D0=B0=20=D0=B4?= =?UTF-8?q?=D0=BE=D0=BA=D1=83.=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BB=20?= =?UTF-8?q?=D1=82=D0=B5=D1=81=D1=82=D0=BE=D0=B2=D0=BE=D0=B5=20=D1=81=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Tag/VuTag.stories.ts | 84 +++++++++++++++++++++++++++++ src/components/Tag/VuTag.vue | 42 +++++++++++++++ 2 files changed, 126 insertions(+) diff --git a/src/components/Tag/VuTag.stories.ts b/src/components/Tag/VuTag.stories.ts index e69de29..af8f420 100644 --- a/src/components/Tag/VuTag.stories.ts +++ b/src/components/Tag/VuTag.stories.ts @@ -0,0 +1,84 @@ +import type { Meta, StoryObj } from '@storybook/vue3-vite'; +import { fn } from 'storybook/test'; +import VuTag from './VuTag.vue'; + +const meta = { + title: 'Viribus Unitis/VuTag', + component: VuTag, + tags: ['autodocs'], + args: { + onClick: fn(), + onClose: fn(), + text: 'Тег', + active: false, + danger: false, + closable: false, + size: 24, + }, + argTypes: { + text: { + control: 'text', + }, + active: { + control: 'boolean', + }, + danger: { + control: 'boolean', + }, + closable: { + control: 'boolean', + }, + size: { + control: 'select', + options: [24, 32], + }, + }, +} satisfies Meta; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = { + args: { + text: 'Механика', + }, +}; + +export const Active: Story = { + args: { + text: 'Механика', + active: true, + }, +}; + +export const Danger: Story = { + args: { + text: 'Страйк', + danger: true, + }, +}; + +export const Large: Story = { + args: { + text: 'Механика', + size: 32, + }, +}; + +export const LargeActive: Story = { + args: { + text: 'Механика', + size: 32, + active: true, + }, +}; + + +export const LargeClosable: Story = { + args: { + text: 'Механика', + size: 32, + closable: true, + }, +}; diff --git a/src/components/Tag/VuTag.vue b/src/components/Tag/VuTag.vue index e69de29..14bd449 100644 --- a/src/components/Tag/VuTag.vue +++ b/src/components/Tag/VuTag.vue @@ -0,0 +1,42 @@ + + + + + \ No newline at end of file From 75d95e276610b56a7fe69092bf0915fca2733577 Mon Sep 17 00:00:00 2001 From: didu4 Date: Tue, 2 Dec 2025 22:24:42 +0400 Subject: [PATCH 3/5] =?UTF-8?q?=D1=84=D0=BE=D1=80=D0=BC=D0=B0=D1=82=D0=B8?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Tag/VuTag.vue | 50 ++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/src/components/Tag/VuTag.vue b/src/components/Tag/VuTag.vue index 14bd449..1ebce51 100644 --- a/src/components/Tag/VuTag.vue +++ b/src/components/Tag/VuTag.vue @@ -1,42 +1,42 @@ \ No newline at end of file + From 2f3e8cb7689d6dc768971652b753e144618c305d Mon Sep 17 00:00:00 2001 From: didu4 Date: Sat, 6 Dec 2025 00:39:17 +0400 Subject: [PATCH 4/5] =?UTF-8?q?=D0=BF=D0=BE=D0=BC=D0=B5=D0=BD=D1=8F=D0=BB?= =?UTF-8?q?=20=D1=86=D0=B2=D0=B5=D1=82=20=D1=83=20=D0=B4=D0=B5=D0=BD=D0=B6?= =?UTF-8?q?=D0=B5=D1=80-=D1=82=D0=B5=D0=B3=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Tag/VuTag.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Tag/VuTag.vue b/src/components/Tag/VuTag.vue index 1ebce51..fc2d1e1 100644 --- a/src/components/Tag/VuTag.vue +++ b/src/components/Tag/VuTag.vue @@ -30,13 +30,16 @@ defineEmits<{ From 23db4d42140ef6c698bffad82a220e475df47dd5 Mon Sep 17 00:00:00 2001 From: didu4 Date: Wed, 17 Dec 2025 21:12:13 +0400 Subject: [PATCH 5/5] =?UTF-8?q?=D1=80=D0=B5=D0=B0=D0=BB=D0=B8=D0=B7=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D0=BB=20=D0=BD=D1=83=D0=B6=D0=BD=D1=8B=D0=B9=20?= =?UTF-8?q?=D0=BA=D1=80=D0=B5=D1=81=D1=82=D0=B8=D0=BA,=20=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D0=B1=D0=BD=D0=BE=20=D0=BF=D0=BE=D0=B4=D0=BE=D0=B1=D1=80?= =?UTF-8?q?=D0=B0=D0=BB=20=D0=BD=D1=83=D0=B6=D0=BD=D1=8B=D0=B9=20=D1=86?= =?UTF-8?q?=D0=B2=D0=B5=D1=82=20=D0=B4=D0=BB=D1=8F=20=D0=B4=D0=B5=D1=84?= =?UTF-8?q?=D0=BE=D0=BB=D1=82=20=D0=B8=20=D0=BE=D0=BD=D0=BA=D0=BB=D0=B8?= =?UTF-8?q?=D0=BA=20=D1=81=D0=BE=D1=81=D1=82=D0=BE=D1=8F=D0=BD=D0=B8=D0=B9?= =?UTF-8?q?;=20=D0=B2=D0=BE=D0=B7=D0=BD=D0=B8=D0=BA=D0=BB=D0=B8=20=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D0=B1=D0=BB=D0=B5=D0=BC=D1=8B=20=D1=81=20=D1=86?= =?UTF-8?q?=D0=B2=D0=B5=D1=82=D0=BE=D0=BC=20=D1=88=D1=80=D0=B8=D1=84=D1=82?= =?UTF-8?q?=D0=B0=20=D1=83=20=D1=81=D0=BE=D0=BE=D1=82=D0=B2=D0=B5=D1=82?= =?UTF-8?q?=D1=81=D1=82=D0=B2=D1=83=D1=8E=D1=89=D0=B8=D1=85=20=D1=81=D0=BE?= =?UTF-8?q?=D1=81=D1=82=D0=BE=D1=8F=D0=BD=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Tag/VuTag.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/components/Tag/VuTag.vue b/src/components/Tag/VuTag.vue index fc2d1e1..f6fab7b 100644 --- a/src/components/Tag/VuTag.vue +++ b/src/components/Tag/VuTag.vue @@ -16,6 +16,7 @@ defineEmits<{