From 8910e9b7e4f9da27e9e066527399d085572511d4 Mon Sep 17 00:00:00 2001 From: Jason Woodland Date: Tue, 9 Aug 2022 12:18:53 +1000 Subject: [PATCH 01/11] feat(interactables): clean up input group --- .../interactables/InputGroup/InputGroup.html | 22 ++++--- .../interactables/InputGroup/InputGroup.less | 40 +++++++------ .../interactables/InputGroup/InputGroup.vue | 58 +++++++------------ components/interactables/InputGroup/README.md | 7 +-- .../interactables/InputGroup/types.d.ts | 7 ++- 5 files changed, 63 insertions(+), 71 deletions(-) diff --git a/components/interactables/InputGroup/InputGroup.html b/components/interactables/InputGroup/InputGroup.html index 21307dc13f..90d05d7eaa 100644 --- a/components/interactables/InputGroup/InputGroup.html +++ b/components/interactables/InputGroup/InputGroup.html @@ -1,29 +1,33 @@ -
- {{label}} +
+ + {{ label }} +
- {{ textLength }} + + {{ text.length }}/{{ maxLength }} +
diff --git a/components/interactables/InputGroup/InputGroup.less b/components/interactables/InputGroup/InputGroup.less index c204d08806..bbadfe6f26 100644 --- a/components/interactables/InputGroup/InputGroup.less +++ b/components/interactables/InputGroup/InputGroup.less @@ -1,21 +1,25 @@ -.control:nth-child(1) { - &:extend(.full-width); -} -.input-wrapper { +.input-container { display: flex; - &:extend(.bordered); - &:extend(.round-corners); -} + flex-direction: column; -.input.is-normal, -.button.is-normal { - height: 2.3rem; - font-size: @text-size; -} -.char-limit { - float: right; - margin-right: @light-spacing; - font-size: @mini-text-size; - &:extend(.font-muted); - margin-left: auto; + .input-wrapper { + display: flex; + align-items: stretch; + + &:extend(.bordered); + &:extend(.round-corners); + + .button { + border-top-left-radius: 0; + border-bottom-left-radius: 0; + } + } + + .char-limit { + float: right; + margin-right: @light-spacing; + font-size: @mini-text-size; + &:extend(.font-muted); + margin-left: auto; + } } diff --git a/components/interactables/InputGroup/InputGroup.vue b/components/interactables/InputGroup/InputGroup.vue index e26a8c9ebd..f410c27143 100644 --- a/components/interactables/InputGroup/InputGroup.vue +++ b/components/interactables/InputGroup/InputGroup.vue @@ -1,8 +1,8 @@ + + diff --git a/components/interactables/InputGroup/README.md b/components/interactables/InputGroup/README.md index 039118f36a..4be5792227 100644 --- a/components/interactables/InputGroup/README.md +++ b/components/interactables/InputGroup/README.md @@ -7,11 +7,10 @@ Generic input group component. ```vue { inputGroupLoading = true } diff --git a/components/interactables/InputGroup/types.d.ts b/components/interactables/InputGroup/types.d.ts index 754f398cb3..2f8d25eede 100644 --- a/components/interactables/InputGroup/types.d.ts +++ b/components/interactables/InputGroup/types.d.ts @@ -1,9 +1,10 @@ -export type InputTypes = 'text' | 'number' | 'password' -export type InputStyle = +export type InputType = 'text' | 'number' | 'password' +export type InputColor = | 'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger' -export type InputSize = 'small' | 'normal' | 'medium' | 'large' + | null +export type InputSize = 'sm' | 'md' | 'lg' | 'xl' From 0b6f332384ee0c69c11dff5597fa30e6fdc5aedd Mon Sep 17 00:00:00 2001 From: Jason Woodland Date: Mon, 8 Aug 2022 15:55:59 +1000 Subject: [PATCH 02/11] feat: use new input group props --- .../interactables/QuickProfile/QuickProfile.html | 3 +-- components/views/files/controls/Controls.html | 5 ++--- components/views/files/rename/Rename.html | 3 +-- .../views/settings/pages/accounts/Accounts.html | 3 +-- .../settings/pages/notifications/Notifications.html | 12 +++++------- components/views/settings/pages/profile/Profile.html | 12 ++++-------- components/views/wallet/balance/Balance.html | 6 +----- components/views/wallet/mini/body/Body.html | 7 +++---- pages/auth/unlock/Unlock.html | 11 ++++++----- pages/components.vue | 9 ++++----- 10 files changed, 28 insertions(+), 43 deletions(-) diff --git a/components/interactables/QuickProfile/QuickProfile.html b/components/interactables/QuickProfile/QuickProfile.html index 98c12b49ad..2793cfee8e 100644 --- a/components/interactables/QuickProfile/QuickProfile.html +++ b/components/interactables/QuickProfile/QuickProfile.html @@ -24,10 +24,9 @@