diff --git a/src/common/styles/_cards.scss b/src/common/styles/_cards.scss index 0627c834..26a07caf 100644 --- a/src/common/styles/_cards.scss +++ b/src/common/styles/_cards.scss @@ -10,3 +10,15 @@ border-color: rgba(var(--v-border-color), 1); } } + +.not-available { + position: relative; + .not-available-text { + position: absolute; + inset: 0; + background-color: rgba(var(--v-theme-background), 0.5); + backdrop-filter: blur(4px); + opacity: 1; + z-index: 1; + } +} \ No newline at end of file diff --git a/src/common/styles/_inputs.scss b/src/common/styles/_inputs.scss index 6e364039..acfcda14 100644 --- a/src/common/styles/_inputs.scss +++ b/src/common/styles/_inputs.scss @@ -26,6 +26,7 @@ input[type=number].v-field__input, .v-select__selection, .amount-input input[typ font-size: 1.5rem; font-weight: 700; line-height: 1; + padding-block: 0; } .v-field--focused { diff --git a/src/common/styles/main.scss b/src/common/styles/main.scss index 61b53c08..d4133b4f 100644 --- a/src/common/styles/main.scss +++ b/src/common/styles/main.scss @@ -26,3 +26,8 @@ a:hover { --v-avatar-height: 16px; } } + +.v-tooltip > .v-overlay__content { + background-color: rgb(var(--v-theme-bw-700)); + color: white; +} diff --git a/src/pegin/components/create/BtcFeeSelect.vue b/src/pegin/components/create/BtcFeeSelect.vue index 4d96065e..338ff4b4 100644 --- a/src/pegin/components/create/BtcFeeSelect.vue +++ b/src/pegin/components/create/BtcFeeSelect.vue @@ -1,6 +1,6 @@ - - + + Select transaction fee diff --git a/src/pegin/components/create/BtcInput.vue b/src/pegin/components/create/BtcInput.vue new file mode 100644 index 00000000..1c803688 --- /dev/null +++ b/src/pegin/components/create/BtcInput.vue @@ -0,0 +1,169 @@ + + + + Amount to send + + + + + {{ environmentContext.getBtcTicker() }} + + + + + + {{ boundaries.minValue.toBTCString().slice(0,5) }} MIN + + + + + + + + + + + diff --git a/src/pegin/components/create/PegInForm.vue b/src/pegin/components/create/PegInForm.vue index b5969295..af84f881 100644 --- a/src/pegin/components/create/PegInForm.vue +++ b/src/pegin/components/create/PegInForm.vue @@ -1,33 +1,47 @@ - - + + Go Back - - - - - - - - - + + + - + + + Select mode + + + + + Fast Mode is unavailable at this time. + + + + + + + + + + + + - - - - - - - Continue to Summary - - - - - - - - + + + + + Send + + + - - + + diff --git a/src/pegin/components/create/SendBitcoin.vue b/src/pegin/components/create/SendBitcoin.vue index b1fc6e07..14f948f4 100644 --- a/src/pegin/components/create/SendBitcoin.vue +++ b/src/pegin/components/create/SendBitcoin.vue @@ -1,5 +1,5 @@ - + = { [constants.PEGIN_TX_SELECT_ACCOUNT_TYPE]: ({ commit }, accountType: BtcAccount): void => { commit(constants.PEGIN_TX_SET_ACCOUNT_TYPE, accountType); }, - [constants.PEGIN_TX_ADD_AMOUNT_TO_TRANSFER]: ({ commit }, amount: SatoshiBig): void => { - commit(constants.PEGIN_TX_SET_AMOUNT_TO_TRANSFER, amount); - }, + [constants.PEGIN_TX_ADD_AMOUNT_TO_TRANSFER]: + ({ commit, dispatch, state }, amount: SatoshiBig): void => { + commit(constants.PEGIN_TX_SET_AMOUNT_TO_TRANSFER, amount); + const minValue = new SatoshiBig(state.peginConfiguration.minValue, 'btc'); + const isValidAmount = isBTCAmountValidRegex(amount.toBTCString()) && amount.gte(minValue); + if (isValidAmount) { + dispatch(constants.PEGIN_TX_CALCULATE_TX_FEE); + } + if (amount.eq(0)) { + commit(constants.PEGIN_TX_SET_CALCULATED_TX_FEE, getClearPeginTxState().calculatedFees); + } + }, [constants.PEGIN_TX_CALCULATE_TX_FEE]: ({ commit, state, getters }): Promise => new Promise((resolve, reject) => { if (!state.selectedAccount) { diff --git a/src/scss/settings.scss b/src/scss/settings.scss index fac981f5..601eca61 100644 --- a/src/scss/settings.scss +++ b/src/scss/settings.scss @@ -41,6 +41,9 @@ 'size': 0.75rem, ), "button": ( + "size": 0.875rem, + "line-height": 1, + "letter-spacing": normal, "text-transform": none, ) ),