From 9783d3ab232eab5ab341132903e81364623a69f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20H=C3=BCbner?= Date: Wed, 29 Nov 2023 20:54:30 +0100 Subject: [PATCH 1/5] fix: Reintroduce placeholder for TextField (#119) --- components/forms/w-textfield.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/forms/w-textfield.vue b/components/forms/w-textfield.vue index 45b1c1a4..be2b35cf 100644 --- a/components/forms/w-textfield.vue +++ b/components/forms/w-textfield.vue @@ -51,6 +51,7 @@ const inputClasses = computed(() => ({ ]" :autocomplete="autocomplete" :disabled="disabled" + :placeholder="placeholder" :readOnly="readOnly" v-bind="{ ...aria, ...$attrs, class: '' }" @blur="triggerValidation"> @@ -68,6 +69,7 @@ const inputClasses = computed(() => ({ ]" :autocomplete="autocomplete" :disabled="disabled" + :placeholder="placeholder" :readOnly="readOnly" v-bind="{ ...aria, ...$attrs, class: '' }" @blur="triggerValidation" From 6dfd7c424e758943eb39618720e33fbfeb7f1785 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 29 Nov 2023 19:55:12 +0000 Subject: [PATCH 2/5] chore(release): 1.2.2-next.1 [skip ci] ## [1.2.2-next.1](https://github.com/warp-ds/vue/compare/v1.2.1...v1.2.2-next.1) (2023-11-29) ### Bug Fixes * Reintroduce placeholder for TextField ([#119](https://github.com/warp-ds/vue/issues/119)) ([9783d3a](https://github.com/warp-ds/vue/commit/9783d3ab232eab5ab341132903e81364623a69f1)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a797e0b..8c71a3ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [1.2.2-next.1](https://github.com/warp-ds/vue/compare/v1.2.1...v1.2.2-next.1) (2023-11-29) + + +### Bug Fixes + +* Reintroduce placeholder for TextField ([#119](https://github.com/warp-ds/vue/issues/119)) ([9783d3a](https://github.com/warp-ds/vue/commit/9783d3ab232eab5ab341132903e81364623a69f1)) + ## [1.2.1](https://github.com/warp-ds/vue/compare/v1.2.0...v1.2.1) (2023-11-29) diff --git a/package.json b/package.json index 27860080..2144e3a1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@warp-ds/vue", "repository": "git@github.com:warp-ds/vue.git", - "version": "1.2.1", + "version": "1.2.2-next.1", "description": "Warp components for Vue 3", "type": "module", "exports": { From db4ba9b5889e4d669938b382c73d08fca1b824b6 Mon Sep 17 00:00:00 2001 From: Balbina K <41303231+BalbinaK@users.noreply.github.com> Date: Thu, 30 Nov 2023 10:05:40 +0100 Subject: [PATCH 3/5] fix(textfield): use inline style when updating input's left padding (#118) This refactor should fix an issue with scoped styles resulting in building styles.css file and causing issues with unocss on build: (https://github.com/warp-ds/vue/actions/runs/7020831994/job/19101472779#step:5:15). --- components/forms/w-textfield.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/components/forms/w-textfield.vue b/components/forms/w-textfield.vue index be2b35cf..c362a01a 100644 --- a/components/forms/w-textfield.vue +++ b/components/forms/w-textfield.vue @@ -32,6 +32,10 @@ const inputClasses = computed(() => ({ [ccInput.suffix]: slots.suffix, [ccInput.prefix]: slots.prefix, })); + +const inputWithPrefixStyle = computed(() => ( + slots.prefix ? 'padding-left: var(--w-prefix-width, 40px);' : undefined +)) - -