Skip to content
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion components/src/assets/wm_close_button.svg

This file was deleted.

85 changes: 84 additions & 1 deletion components/src/assets/wm_wallet_totem.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions components/src/shared/components/close-btn.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { LitElement, css, html } from 'lit'
import { property } from 'lit/decorators.js'

export class CloseBtn extends LitElement {
@property({ type: String }) color: string = 'currentColor'

static styles = css`
button {
border: none;
background: none;
cursor: pointer;
padding: 0px;
border-radius: 8px;
width: 25px;
height: 25px;
aspect-ratio: 1/1;
}

button:hover {
border-radius: 8px;
background-color: rgba(0, 0, 0, 0.05);
}
`

render() {
return html` <button
aria-label="Close window"
@click=${() =>
this.dispatchEvent(new CustomEvent('close', { bubbles: true }))}
>
<svg viewBox="0 0 20 20" fill="none">
<path
d="M5.33219 15.2575L4.74219 14.6675L9.40885 10.0008L4.74219 5.33414L5.33219 4.74414L9.99885 9.41081L14.6655 4.74414L15.2555 5.33414L10.5889 10.0008L15.2555 14.6675L14.6655 15.2575L9.99885 10.5908L5.33219 15.2575Z"
fill=${this.color}
/>
</svg>
</button>`
}
}
45 changes: 45 additions & 0 deletions components/src/shared/components/dots-loader.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import { LitElement, html, css } from 'lit'

export class DotsLoader extends LitElement {
static styles = css`
:host {
display: inline-flex;
gap: 6px;
align-items: flex-end;
height: 20px;
}

span {
width: 8px;
height: 8px;
border-radius: 50%;
background-color: oklch(from var(--primary-color) round(1.21 - L) 0 0);
animation: circles-bounce 500ms infinite ease-in alternate;
}

span:nth-child(2) {
animation-delay: 150ms;
}

span:nth-child(3) {
animation-delay: 300ms;
}

span:nth-child(4) {
animation-delay: 450ms;
}

@keyframes circles-bounce {
0% {
transform: translateY(0);
}
100% {
transform: translateY(-10px);
}
}
`

render() {
return html`<span></span><span></span><span></span><span></span>`
}
}
61 changes: 27 additions & 34 deletions components/src/widget/views/confirmation/confirmation.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
:host {
font-family: var(--wm-font-family, system-ui, sans-serif);
display: flex;
flex: 1;

--primary-color: var(--wm-primary-color, #56b7b5);
--background-color: var(--wm-background-color, #ffffff);
Expand Down Expand Up @@ -45,25 +47,6 @@
color: var(--Colors-white, #ffffff);
}

.close-button {
cursor: pointer;
width: 20px;
height: 20px;
flex-shrink: 0;
aspect-ratio: 1/1;
background: none;
border: none;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
transition: opacity 0.2s ease;
}

.close-button:hover {
background-color: rgba(0, 0, 0, 0.05);
}

.confirmation-buttons-header {
color: var(--primary-color, #7469a8);
font-family: var(--Font-Family-Inter, Inter);
Expand Down Expand Up @@ -112,22 +95,28 @@
align-items: center;
gap: 10px;
border-radius: 100px;
border: 1px solid var(--Colors-silver-300, #c9c9c9);
background: var(--Colors-white, #ffffff);
color: var(--Colors-silver-700, #7b7b7b);
border: 1px solid var(--text-color, #c9c9c9);

background: var(--background-color, #f2fbf9);
color: var(--Text-paragraph-standard, #7b7b7b);
font-family: var(--Font-Family-Inter, Inter);
font-size: var(--Font-Size-text-base, 16px);
font-style: normal;
font-weight: var(--Font-Weight-Bold, 700);
line-height: var(--Font-Line-Height-md, 24px);
}

.preset-btn:hover,
.preset-btn:hover {
background: #0000002f;
}

.preset-btn.selected {
background: var(--primary-color);
color: var(--Colors-white, #ffffff);
opacity: 0.9;
border: 1px solid var(--primary-color);
background: color-mix(
in srgb,
var(--primary-color, #f2fbf9) 45%,
transparent
);
border: 1px solid var(--primary-color, #5b5380);
}

.widget-body p,
Expand Down Expand Up @@ -169,8 +158,12 @@
gap: 10px;
align-self: stretch;
border-radius: 8px;
border: 1px solid var(--Colors-green-200, #abe4df);
background: var(--Colors-mint-50, #f2fbf9);
border: 1px solid var(--primary-color, #abe4df);
background: color-mix(
in srgb,
var(--primary-color, #f2fbf9) 20%,
transparent
);
min-height: 80px;
}

Expand Down Expand Up @@ -202,9 +195,9 @@
}

.summary-value {
color: var(--primary-color);
color: var(--primary-color, #363636);
font-family: var(--Font-Family-Inter, Inter);
font-size: var(--Font-Size-text-base, 16px);
font-size: 16px;
font-style: normal;
font-weight: var(--Font-Weight-Bold, 700);
line-height: var(--Font-Line-Height-md, 24px);
Expand Down Expand Up @@ -259,7 +252,7 @@
display: flex;
align-items: center;
justify-content: center;
margin-top: 16px;
margin-top: auto;

background: var(--primary-color);
}
Expand All @@ -282,7 +275,6 @@
justify-content: center;
gap: var(--Spacings-sm, 8px);
color: var(--Text-paragraph-standard, #363636);
opacity: 0.6;
}

.loader {
Expand Down Expand Up @@ -382,6 +374,7 @@

.form-input.with-currency {
padding-left: calc(var(--Font-Size-text-base) + 2rem);
border: 2px solid var(--Colors-silver-300, #c9c9c9);
}

.form-input,
Expand All @@ -390,7 +383,7 @@
height: 48px;
padding: var(--Spacings-md, 12px);
border: 1px solid var(--Colors-silver-300, #c9c9c9);
border-radius: var(--Radius-Moderate-rounding, 8px);
border-radius: var(--Radius-Moderate-rounding, 0.75rem);
font-family: var(--Font-Family-Inter, Inter);
font-size: var(--Font-Size-text-base, 16px);
font-style: normal;
Expand Down
Loading
Loading