diff --git a/package.json b/package.json index 4199f88a..70510303 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@soramitsu/soramitsu-js-ui", - "version": "0.9.2", + "version": "0.9.3", "private": false, "publishConfig": { "registry": "https://nexus.iroha.tech/repository/npm-soramitsu/" @@ -32,7 +32,7 @@ "v-jsoneditor": "^1.4.1", "vue": "^2.6.11", "vue-class-component": "^7.2.3", - "vue-property-decorator": "^8.4.1", + "vue-property-decorator": "^9.1.2", "vuex": "^3.1.3", "vuex-class": "^0.3.2" }, diff --git a/src/components/Card/SCard.vue b/src/components/Card/SCard.vue index d6ecbffa..3bb9b7e3 100644 --- a/src/components/Card/SCard.vue +++ b/src/components/Card/SCard.vue @@ -14,12 +14,15 @@ diff --git a/src/components/Input/SInput.vue b/src/components/Input/SInput.vue index 2ac3d40f..7cd64228 100644 --- a/src/components/Input/SInput.vue +++ b/src/components/Input/SInput.vue @@ -9,7 +9,7 @@
- {{ placeholder }} + {{ placeholder }} { @@ -207,7 +207,7 @@ export default class SInput extends Mixins(BorderRadiusMixin, DesignSystemInject cssClasses.push('s-autofill') } if (this.size) { - cssClasses.push(this.sizeClass) + cssClasses.push(`s-size-${this.size}`) } if (this.prefix) { cssClasses.push('s-input--prefix') @@ -218,16 +218,6 @@ export default class SInput extends Mixins(BorderRadiusMixin, DesignSystemInject return cssClasses } - get sizeClass (): string { - switch (this.size) { - case InputSize.MEDIUM: - return 's-size-medium' - case InputSize.BIG: - default: - return '' - } - } - get computedType (): string { if (this.type === InputType.TEXT_FILE) { return InputType.TEXT diff --git a/src/components/Input/consts.ts b/src/components/Input/consts.ts index bb48a246..82796e87 100644 --- a/src/components/Input/consts.ts +++ b/src/components/Input/consts.ts @@ -31,6 +31,7 @@ export enum InputType { } export enum InputSize { + SMALL = 'small', MEDIUM = 'medium', BIG = 'big' } diff --git a/src/components/Radio/SRadio.vue b/src/components/Radio/SRadio.vue index ff62d7d5..62ed9721 100644 --- a/src/components/Radio/SRadio.vue +++ b/src/components/Radio/SRadio.vue @@ -1,5 +1,6 @@ diff --git a/src/components/Switch/SSwitch.vue b/src/components/Switch/SSwitch.vue index e8b85bc4..1b220064 100644 --- a/src/components/Switch/SSwitch.vue +++ b/src/components/Switch/SSwitch.vue @@ -1,5 +1,5 @@