From ec000bf02632661c44a1ec1e28f9058b6d722578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Go=CC=88khan=20O=CC=88ztu=CC=88rk?= Date: Thu, 8 Sep 2022 15:37:36 +0300 Subject: [PATCH 1/2] feat: add clearable & sizes & row view & docs improvements --- .../Textfield/Textfield.stories.mdx | 23 ++++++- src/components/Textfield/Textfield.vue | 68 ++++++++++++++++--- src/components/Textfield/textfield.css | 31 ++++++++- 3 files changed, 109 insertions(+), 13 deletions(-) diff --git a/src/components/Textfield/Textfield.stories.mdx b/src/components/Textfield/Textfield.stories.mdx index 92a7e6e..b6cabef 100644 --- a/src/components/Textfield/Textfield.stories.mdx +++ b/src/components/Textfield/Textfield.stories.mdx @@ -40,7 +40,7 @@ export const defaultArgs = { type: 'select', options: [null, ...icons], }, - defaultValue: icons[0], + // defaultValue: icons[0], }, iconLeft: { control: { @@ -66,6 +66,25 @@ export const defaultArgs = { }, defaultValue: false, }, + clearable: { + control: { + type: 'boolean', + }, + defaultValue: false, + }, + size: { + control: { + type: 'select', + options: ['small', 'medium', 'large'], + }, + defaultValue: 'medium', + }, + rows: { + control: { + type: 'boolean', + }, + defaultValue: false, + }, onChange: { control: { type: 'action', @@ -137,7 +156,7 @@ export const Default = (args) => { # Reference - + # Usage diff --git a/src/components/Textfield/Textfield.vue b/src/components/Textfield/Textfield.vue index 45105c2..edd1148 100644 --- a/src/components/Textfield/Textfield.vue +++ b/src/components/Textfield/Textfield.vue @@ -1,5 +1,5 @@