@dcl/governance-site 2.0.0 → 2.0.1-20995780683.commit-d6baf5e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/BlockOverrides-9837a6f9.js +5 -0
- package/assets/ConstantsUtil-298f7898.js +1 -0
- package/assets/ExchangeController-d2354ec6.js +1 -0
- package/assets/HelpersUtil-8cddb046.js +62 -0
- package/assets/MathUtil-b514a570.js +1 -0
- package/assets/NavigationUtil-a0d0ce87.js +1 -0
- package/assets/NetworkUtil-220ea128.js +1 -0
- package/assets/PhWallet-fd2006d2.js +14 -0
- package/assets/{features-b72c9430.js → ReownAuthentication-468828df.js} +4 -4
- package/assets/SwapController-7bfd6ce7.js +1 -0
- package/assets/{UserAvatar-78751cb5.js → UserAvatar-456716f1.js} +1 -1
- package/assets/ccip-ddcec720.js +1 -0
- package/assets/data-capture-3e424a2c.js +242 -0
- package/assets/email-ea617f9c.js +90 -0
- package/assets/embedded-wallet-814bf005.js +410 -0
- package/assets/features-fd521597.js +1 -0
- package/assets/fortmatic-f3cb4aa6.js +13 -0
- package/assets/if-defined-0a35f675.js +5 -0
- package/assets/index-034d22a0.js +138 -0
- package/assets/{index-a8255d1c.css → index-05771666.css} +4 -4
- package/assets/index-07a61b45.js +51 -0
- package/assets/index-1039ded0.js +132 -0
- package/assets/index-123c1362.js +224 -0
- package/assets/index-15bbaaa0.js +7 -0
- package/assets/{index-073512a1.js → index-206e3e77.js} +1 -1
- package/assets/index-27a991e4.js +53 -0
- package/assets/index-2d0efdd2.js +210 -0
- package/assets/index-32d53c87.js +189 -0
- package/assets/index-3b861a37.js +102 -0
- package/assets/index-4207595b.js +100 -0
- package/assets/index-4243d275.js +43 -0
- package/assets/index-42ce7246.js +63 -0
- package/assets/index-47e87339.js +152 -0
- package/assets/index-48bd3fca.js +277 -0
- package/assets/index-49cc5044.js +46 -0
- package/assets/index-5788a0d6.js +468 -0
- package/assets/index-5824c226.js +81 -0
- package/assets/index-5da565ce.js +78 -0
- package/assets/index-685e7949.js +425 -0
- package/assets/index-84e8ecf6.js +647 -0
- package/assets/index-965fdf98.js +3425 -0
- package/assets/index-9d970383.js +152 -0
- package/assets/index-a59b6662.js +68 -0
- package/assets/index-b457d047.js +1062 -0
- package/assets/index-b65e06cc.js +27 -0
- package/assets/{index-2ef9f1d1.js → index-d70e4ab8.js} +66 -66
- package/assets/index-d7a6ceea.js +30 -0
- package/assets/index-d9c55c27.js +77 -0
- package/assets/index-db5b7889.js +77 -0
- package/assets/index-e3222791.js +78 -0
- package/assets/index-eb060c20.js +1 -0
- package/assets/index-f3f03959.js +90 -0
- package/assets/index-fcda68c9.js +19 -0
- package/assets/index-ff4dea43.js +85 -0
- package/assets/networks-14f3c0d2.js +1 -0
- package/assets/onramp-dcdb1a34.js +422 -0
- package/assets/pay-with-exchange-a64f18a3.js +280 -0
- package/assets/receive-ca7bc867.js +131 -0
- package/assets/ref-88e1be05.js +13 -0
- package/assets/send-8739c9fb.js +554 -0
- package/assets/socials-ccc593f5.js +250 -0
- package/assets/swaps-0a90eb06.js +1050 -0
- package/assets/transactions-bb8cb277.js +16 -0
- package/assets/{tslib.es6-82b9ba96.js → tslib.es6-db2ec995.js} +2 -2
- package/assets/w3m-modal-869dafbc.js +891 -0
- package/assets/zoraTestnet-adc7b76b.js +36 -0
- package/index.html +4 -4
- package/package.json +3 -3
- package/assets/basic-ca749c4c.js +0 -1435
- package/assets/core-806d78ea.js +0 -249
- package/assets/fortmatic-12e0f2e5.js +0 -13
- package/assets/index-372705ba.js +0 -1321
- package/assets/index-4be588a0.js +0 -94
- package/assets/index-74e34dfb.js +0 -39
- package/assets/index-bbb36593.js +0 -7
- package/assets/index-c1c8440f.js +0 -47
- package/assets/w3m-modal-26eff9d9.js +0 -1209
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import{j as c,r as h,k as m,l as b,m as a}from"./index-48bd3fca.js";import{n,c as x}from"./index-84e8ecf6.js";import{o as $}from"./if-defined-0a35f675.js";import{e as f,n as g}from"./ref-88e1be05.js";const w=c`
|
|
2
|
+
:host {
|
|
3
|
+
position: relative;
|
|
4
|
+
width: 100%;
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: ${({spacing:t})=>t[3]};
|
|
8
|
+
color: ${({tokens:t})=>t.theme.textPrimary};
|
|
9
|
+
caret-color: ${({tokens:t})=>t.core.textAccentPrimary};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.wui-input-text-container {
|
|
13
|
+
position: relative;
|
|
14
|
+
display: flex;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
input {
|
|
18
|
+
width: 100%;
|
|
19
|
+
border-radius: ${({borderRadius:t})=>t[4]};
|
|
20
|
+
color: inherit;
|
|
21
|
+
background: transparent;
|
|
22
|
+
border: 1px solid ${({tokens:t})=>t.theme.borderPrimary};
|
|
23
|
+
caret-color: ${({tokens:t})=>t.core.textAccentPrimary};
|
|
24
|
+
padding: ${({spacing:t})=>t[3]} ${({spacing:t})=>t[3]}
|
|
25
|
+
${({spacing:t})=>t[3]} ${({spacing:t})=>t[10]};
|
|
26
|
+
font-size: ${({textSize:t})=>t.large};
|
|
27
|
+
line-height: ${({typography:t})=>t["lg-regular"].lineHeight};
|
|
28
|
+
letter-spacing: ${({typography:t})=>t["lg-regular"].letterSpacing};
|
|
29
|
+
font-weight: ${({fontWeight:t})=>t.regular};
|
|
30
|
+
font-family: ${({fontFamily:t})=>t.regular};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
input[data-size='lg'] {
|
|
34
|
+
padding: ${({spacing:t})=>t[4]} ${({spacing:t})=>t[3]}
|
|
35
|
+
${({spacing:t})=>t[4]} ${({spacing:t})=>t[10]};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@media (hover: hover) and (pointer: fine) {
|
|
39
|
+
input:hover:enabled {
|
|
40
|
+
border: 1px solid ${({tokens:t})=>t.theme.borderSecondary};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
input:disabled {
|
|
45
|
+
cursor: unset;
|
|
46
|
+
border: 1px solid ${({tokens:t})=>t.theme.borderPrimary};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
input::placeholder {
|
|
50
|
+
color: ${({tokens:t})=>t.theme.textSecondary};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
input:focus:enabled {
|
|
54
|
+
border: 1px solid ${({tokens:t})=>t.theme.borderSecondary};
|
|
55
|
+
background-color: ${({tokens:t})=>t.theme.foregroundPrimary};
|
|
56
|
+
-webkit-box-shadow: 0px 0px 0px 4px ${({tokens:t})=>t.core.foregroundAccent040};
|
|
57
|
+
-moz-box-shadow: 0px 0px 0px 4px ${({tokens:t})=>t.core.foregroundAccent040};
|
|
58
|
+
box-shadow: 0px 0px 0px 4px ${({tokens:t})=>t.core.foregroundAccent040};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
div.wui-input-text-container:has(input:disabled) {
|
|
62
|
+
opacity: 0.5;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
wui-icon.wui-input-text-left-icon {
|
|
66
|
+
position: absolute;
|
|
67
|
+
top: 50%;
|
|
68
|
+
transform: translateY(-50%);
|
|
69
|
+
pointer-events: none;
|
|
70
|
+
left: ${({spacing:t})=>t[4]};
|
|
71
|
+
color: ${({tokens:t})=>t.theme.iconDefault};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
button.wui-input-text-submit-button {
|
|
75
|
+
position: absolute;
|
|
76
|
+
top: 50%;
|
|
77
|
+
transform: translateY(-50%);
|
|
78
|
+
right: ${({spacing:t})=>t[3]};
|
|
79
|
+
width: 24px;
|
|
80
|
+
height: 24px;
|
|
81
|
+
border: none;
|
|
82
|
+
background: transparent;
|
|
83
|
+
border-radius: ${({borderRadius:t})=>t[2]};
|
|
84
|
+
color: ${({tokens:t})=>t.core.textAccentPrimary};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
button.wui-input-text-submit-button:disabled {
|
|
88
|
+
opacity: 1;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
button.wui-input-text-submit-button.loading wui-icon {
|
|
92
|
+
animation: spin 1s linear infinite;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
button.wui-input-text-submit-button:hover {
|
|
96
|
+
background: ${({tokens:t})=>t.core.foregroundAccent010};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
input:has(+ .wui-input-text-submit-button) {
|
|
100
|
+
padding-right: ${({spacing:t})=>t[12]};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
input[type='number'] {
|
|
104
|
+
-moz-appearance: textfield;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
input[type='search']::-webkit-search-decoration,
|
|
108
|
+
input[type='search']::-webkit-search-cancel-button,
|
|
109
|
+
input[type='search']::-webkit-search-results-button,
|
|
110
|
+
input[type='search']::-webkit-search-results-decoration {
|
|
111
|
+
-webkit-appearance: none;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* -- Keyframes --------------------------------------------------- */
|
|
115
|
+
@keyframes spin {
|
|
116
|
+
from {
|
|
117
|
+
transform: rotate(0deg);
|
|
118
|
+
}
|
|
119
|
+
to {
|
|
120
|
+
transform: rotate(360deg);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
`;var o=globalThis&&globalThis.__decorate||function(t,i,s,u){var p=arguments.length,r=p<3?i:u===null?u=Object.getOwnPropertyDescriptor(i,s):u,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,i,s,u);else for(var d=t.length-1;d>=0;d--)(l=t[d])&&(r=(p<3?l(r):p>3?l(i,s,r):l(i,s))||r);return p>3&&r&&Object.defineProperty(i,s,r),r};let e=class extends b{constructor(){super(...arguments),this.inputElementRef=f(),this.disabled=!1,this.loading=!1,this.placeholder="",this.type="text",this.value="",this.size="md"}render(){return a` <div class="wui-input-text-container">
|
|
124
|
+
${this.templateLeftIcon()}
|
|
125
|
+
<input
|
|
126
|
+
data-size=${this.size}
|
|
127
|
+
${g(this.inputElementRef)}
|
|
128
|
+
data-testid="wui-input-text"
|
|
129
|
+
type=${this.type}
|
|
130
|
+
enterkeyhint=${$(this.enterKeyHint)}
|
|
131
|
+
?disabled=${this.disabled}
|
|
132
|
+
placeholder=${this.placeholder}
|
|
133
|
+
@input=${this.dispatchInputChangeEvent.bind(this)}
|
|
134
|
+
@keydown=${this.onKeyDown}
|
|
135
|
+
.value=${this.value||""}
|
|
136
|
+
/>
|
|
137
|
+
${this.templateSubmitButton()}
|
|
138
|
+
<slot class="wui-input-text-slot"></slot>
|
|
139
|
+
</div>
|
|
140
|
+
${this.templateError()} ${this.templateWarning()}`}templateLeftIcon(){return this.icon?a`<wui-icon
|
|
141
|
+
class="wui-input-text-left-icon"
|
|
142
|
+
size="md"
|
|
143
|
+
data-size=${this.size}
|
|
144
|
+
color="inherit"
|
|
145
|
+
name=${this.icon}
|
|
146
|
+
></wui-icon>`:null}templateSubmitButton(){var i;return this.onSubmit?a`<button
|
|
147
|
+
class="wui-input-text-submit-button ${this.loading?"loading":""}"
|
|
148
|
+
@click=${(i=this.onSubmit)==null?void 0:i.bind(this)}
|
|
149
|
+
?disabled=${this.disabled||this.loading}
|
|
150
|
+
>
|
|
151
|
+
${this.loading?a`<wui-icon name="spinner" size="md"></wui-icon>`:a`<wui-icon name="chevronRight" size="md"></wui-icon>`}
|
|
152
|
+
</button>`:null}templateError(){return this.errorText?a`<wui-text variant="sm-regular" color="error">${this.errorText}</wui-text>`:null}templateWarning(){return this.warningText?a`<wui-text variant="sm-regular" color="warning">${this.warningText}</wui-text>`:null}dispatchInputChangeEvent(){var i;this.dispatchEvent(new CustomEvent("inputChange",{detail:(i=this.inputElementRef.value)==null?void 0:i.value,bubbles:!0,composed:!0}))}};e.styles=[h,m,w];o([n()],e.prototype,"icon",void 0);o([n({type:Boolean})],e.prototype,"disabled",void 0);o([n({type:Boolean})],e.prototype,"loading",void 0);o([n()],e.prototype,"placeholder",void 0);o([n()],e.prototype,"type",void 0);o([n()],e.prototype,"value",void 0);o([n()],e.prototype,"errorText",void 0);o([n()],e.prototype,"warningText",void 0);o([n()],e.prototype,"onSubmit",void 0);o([n()],e.prototype,"size",void 0);o([n({attribute:!1})],e.prototype,"onKeyDown",void 0);e=o([x("wui-input-text")],e);
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import{j as b,r as p,k as m,l as v,m as u}from"./index-48bd3fca.js";import{n as d,c as f}from"./index-84e8ecf6.js";const h=b`
|
|
2
|
+
button {
|
|
3
|
+
border: none;
|
|
4
|
+
background: transparent;
|
|
5
|
+
height: 20px;
|
|
6
|
+
padding: ${({spacing:t})=>t[2]};
|
|
7
|
+
column-gap: ${({spacing:t})=>t[1]};
|
|
8
|
+
border-radius: ${({borderRadius:t})=>t[1]};
|
|
9
|
+
padding: 0 ${({spacing:t})=>t[1]};
|
|
10
|
+
border-radius: ${({spacing:t})=>t[1]};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* -- Variants --------------------------------------------------------- */
|
|
14
|
+
button[data-variant='accent'] {
|
|
15
|
+
color: ${({tokens:t})=>t.core.textAccentPrimary};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
button[data-variant='secondary'] {
|
|
19
|
+
color: ${({tokens:t})=>t.theme.textSecondary};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* -- Focus states --------------------------------------------------- */
|
|
23
|
+
button:focus-visible:enabled {
|
|
24
|
+
box-shadow: 0px 0px 0px 4px rgba(9, 136, 240, 0.2);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
button[data-variant='accent']:focus-visible:enabled {
|
|
28
|
+
background-color: ${({tokens:t})=>t.core.foregroundAccent010};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
button[data-variant='secondary']:focus-visible:enabled {
|
|
32
|
+
background-color: ${({tokens:t})=>t.theme.foregroundSecondary};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* -- Hover & Active states ----------------------------------------------------------- */
|
|
36
|
+
button[data-variant='accent']:hover:enabled {
|
|
37
|
+
background-color: ${({tokens:t})=>t.core.foregroundAccent010};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
button[data-variant='secondary']:hover:enabled {
|
|
41
|
+
background-color: ${({tokens:t})=>t.theme.foregroundSecondary};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
button[data-variant='accent']:focus-visible {
|
|
45
|
+
background-color: ${({tokens:t})=>t.core.foregroundAccent010};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
button[data-variant='secondary']:focus-visible {
|
|
49
|
+
background-color: ${({tokens:t})=>t.theme.foregroundSecondary};
|
|
50
|
+
box-shadow: 0px 0px 0px 4px rgba(9, 136, 240, 0.2);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
button[disabled] {
|
|
54
|
+
opacity: 0.5;
|
|
55
|
+
cursor: not-allowed;
|
|
56
|
+
}
|
|
57
|
+
`;var r=globalThis&&globalThis.__decorate||function(t,n,a,i){var c=arguments.length,e=c<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(t,n,a,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(e=(c<3?s(e):c>3?s(n,a,e):s(n,a))||e);return c>3&&e&&Object.defineProperty(n,a,e),e};const y={sm:"sm-medium",md:"md-medium"},g={accent:"accent-primary",secondary:"secondary"};let o=class extends v{constructor(){super(...arguments),this.size="md",this.disabled=!1,this.variant="accent",this.icon=void 0}render(){return u`
|
|
58
|
+
<button ?disabled=${this.disabled} data-variant=${this.variant}>
|
|
59
|
+
<slot name="iconLeft"></slot>
|
|
60
|
+
<wui-text
|
|
61
|
+
color=${g[this.variant]}
|
|
62
|
+
variant=${y[this.size]}
|
|
63
|
+
>
|
|
64
|
+
<slot></slot>
|
|
65
|
+
</wui-text>
|
|
66
|
+
${this.iconTemplate()}
|
|
67
|
+
</button>
|
|
68
|
+
`}iconTemplate(){return this.icon?u`<wui-icon name=${this.icon} size="sm"></wui-icon>`:null}};o.styles=[p,m,h];r([d()],o.prototype,"size",void 0);r([d({type:Boolean})],o.prototype,"disabled",void 0);r([d()],o.prototype,"variant",void 0);r([d()],o.prototype,"icon",void 0);o=r([f("wui-link")],o);
|