From b39e66e0b32367376d5107ad7f9dba62a7ea8f84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=B8=D0=B2=D0=B0=D0=BD=20=D0=93=D0=BE=D1=80=D0=B1=D1=83?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2?= Date: Sun, 30 Nov 2025 19:50:50 +0400 Subject: [PATCH 1/5] =?UTF-8?q?=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20VuInput=20=D0=BA=D0=BE=D0=BC=D0=BF=D0=BE=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Input/VuCheckbox.vue | 1 + src/components/Input/VuInput.stories.ts | 0 2 files changed, 1 insertion(+) create mode 100644 src/components/Input/VuCheckbox.vue create mode 100644 src/components/Input/VuInput.stories.ts diff --git a/src/components/Input/VuCheckbox.vue b/src/components/Input/VuCheckbox.vue new file mode 100644 index 0000000..501a6bb --- /dev/null +++ b/src/components/Input/VuCheckbox.vue @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/Input/VuInput.stories.ts b/src/components/Input/VuInput.stories.ts new file mode 100644 index 0000000..e69de29 From c49dce48f7b98475dab29401a19470aac929b92c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=B8=D0=B2=D0=B0=D0=BD=20=D0=93=D0=BE=D1=80=D0=B1=D1=83?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2?= Date: Sun, 30 Nov 2025 19:52:02 +0400 Subject: [PATCH 2/5] =?UTF-8?q?=D1=83=D0=B4=D0=B0=D0=BB=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B1=D0=B5=D0=BB))?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Input/VuCheckbox.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/Input/VuCheckbox.vue b/src/components/Input/VuCheckbox.vue index 501a6bb..e69de29 100644 --- a/src/components/Input/VuCheckbox.vue +++ b/src/components/Input/VuCheckbox.vue @@ -1 +0,0 @@ - \ No newline at end of file From 55979ed120b931f7c26acaa0195db2a991fb697b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=B8=D0=B2=D0=B0=D0=BD=20=D0=93=D0=BE=D1=80=D0=B1=D1=83?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2?= Date: Tue, 2 Dec 2025 21:27:20 +0400 Subject: [PATCH 3/5] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB?= =?UTF-8?q?=20=D0=B4=D0=BB=D1=8F=20sb=20VuInput?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Input/VuCheckbox.vue | 0 src/components/Input/VuInput.stories.ts | 30 +++++++++++++++ src/components/Input/VuInput.vue | 49 +++++++++++++++++++++++++ 3 files changed, 79 insertions(+) delete mode 100644 src/components/Input/VuCheckbox.vue create mode 100644 src/components/Input/VuInput.vue diff --git a/src/components/Input/VuCheckbox.vue b/src/components/Input/VuCheckbox.vue deleted file mode 100644 index e69de29..0000000 diff --git a/src/components/Input/VuInput.stories.ts b/src/components/Input/VuInput.stories.ts index e69de29..6ed9685 100644 --- a/src/components/Input/VuInput.stories.ts +++ b/src/components/Input/VuInput.stories.ts @@ -0,0 +1,30 @@ +import { Meta, StoryObj } from '@storybook/vue3-vite'; +import VuInput from './VuInput.vue'; + +const meta = { + title: 'Viribus Unitis/VuInput', + component: VuInput, +} satisfies Meta; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = { + args: { + message: 'Номер группы', + }, +}; +export const Hover: Story = { + args: { + message: 'Номер группы', + rules: [(value: string) => !!value || 'Обязательное поле'] + }, +}; +export const Active: Story = { + args: { + message: 'Номер группы', + placeholder:"Введите номер группы", + autofocus: true + }, +}; diff --git a/src/components/Input/VuInput.vue b/src/components/Input/VuInput.vue new file mode 100644 index 0000000..d50acad --- /dev/null +++ b/src/components/Input/VuInput.vue @@ -0,0 +1,49 @@ + + + \ No newline at end of file From c094b3521edcc0fe7f15bb8d81a45052ba5d7369 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=B8=D0=B2=D0=B0=D0=BD=20=D0=93=D0=BE=D1=80=D0=B1=D1=83?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2?= Date: Wed, 17 Dec 2025 20:18:35 +0400 Subject: [PATCH 4/5] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=20cod?= =?UTF-8?q?e=20review?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Input/VuInput.stories.ts | 39 +++++++------- src/components/Input/VuInput.vue | 68 ++++++++++++------------- 2 files changed, 52 insertions(+), 55 deletions(-) diff --git a/src/components/Input/VuInput.stories.ts b/src/components/Input/VuInput.stories.ts index 6ed9685..6515e69 100644 --- a/src/components/Input/VuInput.stories.ts +++ b/src/components/Input/VuInput.stories.ts @@ -2,29 +2,30 @@ import { Meta, StoryObj } from '@storybook/vue3-vite'; import VuInput from './VuInput.vue'; const meta = { - title: 'Viribus Unitis/VuInput', - component: VuInput, + title: 'Viribus Unitis/VuInput', + component: VuInput, + tags: ['autodocs'], + args: { + message: 'Номер группы', + variant: 'outlined', + }, } satisfies Meta; export default meta; type Story = StoryObj; -export const Default: Story = { - args: { - message: 'Номер группы', - }, -}; -export const Hover: Story = { - args: { - message: 'Номер группы', - rules: [(value: string) => !!value || 'Обязательное поле'] - }, -}; -export const Active: Story = { - args: { - message: 'Номер группы', - placeholder:"Введите номер группы", - autofocus: true - }, +export const Default: Story = {}; + +export const WithPlaceholder: Story = { + args: { + placeholder: "Введите номер группы", + autofocus: true + }, }; + +export const Validate: Story = { + args: { + rules: [(value: string) => !!value || 'Обязательное поле'] + }, +}; \ No newline at end of file diff --git a/src/components/Input/VuInput.vue b/src/components/Input/VuInput.vue index d50acad..3ae94d5 100644 --- a/src/components/Input/VuInput.vue +++ b/src/components/Input/VuInput.vue @@ -1,49 +1,45 @@ \ No newline at end of file From 2dc9566299f962510fc7cd2286b635613b9b0d6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=B8=D0=B2=D0=B0=D0=BD=20=D0=93=D0=BE=D1=80=D0=B1=D1=83?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2?= Date: Wed, 17 Dec 2025 20:22:23 +0400 Subject: [PATCH 5/5] =?UTF-8?q?=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Input/VuInput.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Input/VuInput.vue b/src/components/Input/VuInput.vue index 3ae94d5..0cb13ee 100644 --- a/src/components/Input/VuInput.vue +++ b/src/components/Input/VuInput.vue @@ -2,7 +2,7 @@ import { PropType } from 'vue'; type VariantType = "outlined" -type Rule = (value: any) => string | boolean; +type Rule = (value: string) => string | boolean; defineProps({ message: {