From 1d421c6cd97f70969bc74d0433ab9502f69ed81d Mon Sep 17 00:00:00 2001 From: Driss Chelouati Date: Thu, 6 Jun 2024 15:12:38 +0200 Subject: [PATCH] feat(BaseInput): add xl size and update demos --- .playground/pages/tests/form/input.vue | 173 +++++++++++++++++++++++-- components/form/BaseInput.vue | 3 +- 2 files changed, 165 insertions(+), 11 deletions(-) diff --git a/.playground/pages/tests/form/input.vue b/.playground/pages/tests/form/input.vue index 0be75861..4f2f10d5 100644 --- a/.playground/pages/tests/form/input.vue +++ b/.playground/pages/tests/form/input.vue @@ -58,7 +58,7 @@ const taxes = ref('With taxes') -
+
+ +
+ +
@@ -95,7 +105,7 @@ const taxes = ref('With taxes') title="Contrast: default-contrast" description="Input component default contrast" > -
+
+ +
+ +
-
+
+ +
+ +
@@ -172,7 +204,7 @@ const taxes = ref('With taxes') title="Contrast: muted-contrast" description="Input component muted contrast" > -
+
+ +
+ +
-
+
+ +
+ +
-
+
+ +
+ +
-
+
+ +
+ +
-
+
+ +
+ +
-
+
+ +
+ + + +
@@ -479,11 +587,28 @@ const taxes = ref('With taxes') placeholder="Ex: username" label-float /> + +
-
+
+ +
+ +
@@ -575,6 +711,23 @@ const taxes = ref('With taxes') placeholder="Ex: username" loading /> + +
diff --git a/components/form/BaseInput.vue b/components/form/BaseInput.vue index 93313964..a080f368 100644 --- a/components/form/BaseInput.vue +++ b/components/form/BaseInput.vue @@ -70,7 +70,7 @@ const props = withDefaults( * * @default 'md' */ - size?: 'sm' | 'md' | 'lg' + size?: 'sm' | 'md' | 'lg' | 'xl' /** * Optional CSS classes to apply to the wrapper, label, input, addon, error, and icon elements. @@ -165,6 +165,7 @@ const sizes = { sm: 'nui-input-sm', md: 'nui-input-md', lg: 'nui-input-lg', + xl: 'nui-input-xl', } const contrasts = {