From 2e3468da62ab089fe7aee464a3fcbcc1527bd160 Mon Sep 17 00:00:00 2001 From: Nikita Polyakov <53777036+Nikita-Polyakov@users.noreply.github.com> Date: Wed, 24 Feb 2021 11:47:17 +0300 Subject: [PATCH 01/15] Release/0.7.3 * add styles for select prefix slot * increase version in package.json --- package.json | 2 +- src/components/Select/SSelect.vue | 1 + src/styles/select.scss | 52 ++++++++++++++++++++++++------- 3 files changed, 42 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 85235b9e..f21a6683 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@soramitsu/soramitsu-js-ui", - "version": "0.7.2", + "version": "0.7.3", "private": false, "publishConfig": { "registry": "https://nexus.iroha.tech/repository/npm-soramitsu-private/" diff --git a/src/components/Select/SSelect.vue b/src/components/Select/SSelect.vue index 04fdcccc..885e4c63 100644 --- a/src/components/Select/SSelect.vue +++ b/src/components/Select/SSelect.vue @@ -18,6 +18,7 @@ @visible-change="handleVisibleChange" @clear="handleClear" > + diff --git a/src/styles/select.scss b/src/styles/select.scss index cbf72ac3..f66d5f4d 100644 --- a/src/styles/select.scss +++ b/src/styles/select.scss @@ -45,6 +45,16 @@ .el-select__caret { color: var(--s-color-base-content-tertiary); } + &--prefix { + .el-input__prefix { + bottom: 0; + left: 12px; + width: $s-size-mini; + height: $s-size-mini; + margin: auto; + overflow: hidden; + } + } } } &.s-input-type { @@ -71,8 +81,19 @@ } } .s-placeholder + .el-select { - .el-input__inner { - padding-top: 12px; + .el-input { + &--prefix { + .el-input__inner{ + padding-left: 44px; + } + + .el-input__prefix { + top: 12px; + } + } + .el-input__inner{ + padding-top: 12px; + } } .el-input__validateIcon { padding-top: 11px; @@ -127,18 +148,25 @@ } &.s-select-type { .el-select { - .el-input__inner { - padding-left: 12px; - font-weight: bold; - &:hover { - border-color: var(--s-color-base-border-primary); + .el-input { + &.el-input--prefix { + .el-input__inner { + padding-left: 44px; + } } - &::placeholder { - color: var(--s-color-base-content-tertiary); + .el-input__inner { + padding-left: 12px; font-weight: bold; - } - &:focus { - border-color: var(--s-color-base-border-primary); + &:hover { + border-color: var(--s-color-base-border-primary); + } + &::placeholder { + color: var(--s-color-base-content-tertiary); + font-weight: bold; + } + &:focus { + border-color: var(--s-color-base-border-primary); + } } } .el-select__caret { From 504f1408cdcabade626d594aab0cc2303236fc4e Mon Sep 17 00:00:00 2001 From: Nikita Polyakov <53777036+Nikita-Polyakov@users.noreply.github.com> Date: Thu, 25 Feb 2021 09:20:22 +0300 Subject: [PATCH 02/15] Release/0.7.4 (#130) * Fix/remove input inner model (#129) * removed model from SInput * up package version * fix paste input handler * add change emitter on file change --- package.json | 2 +- src/components/Input/SInput.vue | 27 ++++++++++----------------- 2 files changed, 11 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index f21a6683..ff0bbeee 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@soramitsu/soramitsu-js-ui", - "version": "0.7.3", + "version": "0.7.4", "private": false, "publishConfig": { "registry": "https://nexus.iroha.tech/repository/npm-soramitsu-private/" diff --git a/src/components/Input/SInput.vue b/src/components/Input/SInput.vue index 2ecac0be..d6f53b46 100644 --- a/src/components/Input/SInput.vue +++ b/src/components/Input/SInput.vue @@ -3,12 +3,12 @@ class="s-input" :class="computedClasses" > - {{ placeholder }} + {{ placeholder }} diff --git a/src/stories/SFloatInput.stories.ts b/src/stories/SFloatInput.stories.ts index f091cfdb..72454425 100644 --- a/src/stories/SFloatInput.stories.ts +++ b/src/stories/SFloatInput.stories.ts @@ -1,4 +1,4 @@ -import { number, withKnobs } from '@storybook/addon-knobs' +import { number, text, withKnobs } from '@storybook/addon-knobs' import { SFloatInput, SRow } from '../components' @@ -14,6 +14,7 @@ export const configurable = () => ({ `, data: () => ({ @@ -22,6 +23,9 @@ export const configurable = () => ({ props: { decimals: { default: number('Decimals', 18) + }, + max: { + default: text('Max', '10000') } } }) From 8139e9f2ba0d73a4d4cd793bf57fe873ce629d2f Mon Sep 17 00:00:00 2001 From: RDMStreet Date: Mon, 24 May 2021 13:13:52 +0300 Subject: [PATCH 15/15] Change version from 0.8.10 to 0.8.9 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bb68747a..6e8bcc79 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@soramitsu/soramitsu-js-ui", - "version": "0.8.10", + "version": "0.8.9", "private": false, "publishConfig": { "registry": "https://nexus.iroha.tech/repository/npm-soramitsu/"