From 7c14d16b4a9985bf495c352e1ba04135a36f71d4 Mon Sep 17 00:00:00 2001 From: joris K Date: Thu, 7 Nov 2024 15:23:24 +0100 Subject: [PATCH 1/4] feat(web-core): update UiInput component --- .../web-core/ui/input/ui-input.story.vue | 24 +- .../lib/components/ui/input/UiInput.vue | 215 ++++++++++-------- .../ui/query-search-bar/UiQuerySearchBar.vue | 2 + 3 files changed, 144 insertions(+), 97 deletions(-) diff --git a/@xen-orchestra/lite/src/stories/web-core/ui/input/ui-input.story.vue b/@xen-orchestra/lite/src/stories/web-core/ui/input/ui-input.story.vue index cd5f1bea0c2..26d8500751a 100644 --- a/@xen-orchestra/lite/src/stories/web-core/ui/input/ui-input.story.vue +++ b/@xen-orchestra/lite/src/stories/web-core/ui/input/ui-input.story.vue @@ -1,19 +1,33 @@ diff --git a/@xen-orchestra/web-core/lib/components/ui/input/UiInput.vue b/@xen-orchestra/web-core/lib/components/ui/input/UiInput.vue index 03b1c8cb5d5..46f8327f07c 100644 --- a/@xen-orchestra/web-core/lib/components/ui/input/UiInput.vue +++ b/@xen-orchestra/web-core/lib/components/ui/input/UiInput.vue @@ -1,141 +1,172 @@ - + diff --git a/@xen-orchestra/web-core/lib/components/ui/query-search-bar/UiQuerySearchBar.vue b/@xen-orchestra/web-core/lib/components/ui/query-search-bar/UiQuerySearchBar.vue index 3dfe9b4bd86..3d44824868a 100644 --- a/@xen-orchestra/web-core/lib/components/ui/query-search-bar/UiQuerySearchBar.vue +++ b/@xen-orchestra/web-core/lib/components/ui/query-search-bar/UiQuerySearchBar.vue @@ -7,6 +7,8 @@ Date: Thu, 21 Nov 2024 15:22:52 +0100 Subject: [PATCH 2/4] Feedback --- .../stories/web-core/ui/input/ui-input.story.vue | 2 +- .../web-core/lib/components/ui/input/UiInput.vue | 14 ++++---------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/@xen-orchestra/lite/src/stories/web-core/ui/input/ui-input.story.vue b/@xen-orchestra/lite/src/stories/web-core/ui/input/ui-input.story.vue index 26d8500751a..a135f6c6e8a 100644 --- a/@xen-orchestra/lite/src/stories/web-core/ui/input/ui-input.story.vue +++ b/@xen-orchestra/lite/src/stories/web-core/ui/input/ui-input.story.vue @@ -2,7 +2,7 @@ - + (props.accent === 'info' ? 'neutral' : props.accent)) +const labelAccent = computed(() => (accent === 'info' ? 'neutral' : accent))