@lukso/web-components 1.33.0 → 1.34.0
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/dist/components/lukso-card/index.cjs +11 -10
- package/dist/components/lukso-card/index.js +11 -10
- package/dist/components/lukso-profile/index.cjs +1 -1
- package/dist/components/lukso-profile/index.js +1 -1
- package/dist/components/lukso-share/index.cjs +1 -1
- package/dist/components/lukso-share/index.js +1 -1
- package/dist/components/lukso-username/index.cjs +7 -7
- package/dist/components/lukso-username/index.js +7 -7
- package/package.json +1 -1
- package/tools/assets/images/profile-default.svg +19 -0
- package/tools/assets/images/profile-default.png +0 -0
|
@@ -99,9 +99,9 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
|
|
|
99
99
|
})}
|
|
100
100
|
class="min-h-[129px] -mb-6 bg-center bg-cover rounded-[24px_24px_0_0] relative bg-neutral-90"
|
|
101
101
|
>
|
|
102
|
-
<div
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
${this.backgroundUrl ? shared_tailwindElement_index.x` <div
|
|
103
|
+
class="min-h-full min-w-full rounded-[24px_24px_0_0] bg-neutral-20/10 absolute"
|
|
104
|
+
></div>` : ""}
|
|
105
105
|
<div>
|
|
106
106
|
<slot name="header"></slot>
|
|
107
107
|
</div>
|
|
@@ -149,9 +149,9 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
|
|
|
149
149
|
})}
|
|
150
150
|
class="min-h-[129px] -mb-6 bg-center bg-cover rounded-[24px_24px_0_0] relative bg-neutral-90"
|
|
151
151
|
>
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
152
|
+
${this.backgroundUrl ? shared_tailwindElement_index.x`<div
|
|
153
|
+
class="min-h-full min-w-full rounded-[24px_24px_0_0] bg-neutral-10/10 absolute"
|
|
154
|
+
></div>` : ""}
|
|
155
155
|
<div>
|
|
156
156
|
<slot name="header"></slot>
|
|
157
157
|
</div>
|
|
@@ -169,8 +169,7 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
|
|
|
169
169
|
class="overflow-hidden w-[153px] h-[70px] -top-[70px] relative mx-auto flex items-end justify-center -mb-2"
|
|
170
170
|
>
|
|
171
171
|
<div
|
|
172
|
-
class="bg-neutral-100 rounded-[103px_103px_0_0] w-[96px] h-[48px]
|
|
173
|
-
shadow-neutral-above-shadow-1xl"
|
|
172
|
+
class="bg-neutral-100 rounded-[103px_103px_0_0] w-[96px] h-[48px]"
|
|
174
173
|
></div>
|
|
175
174
|
</div>
|
|
176
175
|
<slot name="content"></slot>
|
|
@@ -186,7 +185,7 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
|
|
|
186
185
|
return shared_tailwindElement_index.x`
|
|
187
186
|
<div
|
|
188
187
|
data-testid="card"
|
|
189
|
-
class="h-[240px] flex bg-neutral-
|
|
188
|
+
class="h-[240px] flex bg-neutral-100 ${index.customClassMap({
|
|
190
189
|
[this.mediumStyles]: !this.customClass && this.size === "medium",
|
|
191
190
|
[this.smallStyles]: !this.customClass && this.size === "small",
|
|
192
191
|
[this.smallHoverStyles]: this.isHoverable && this.size === "small",
|
|
@@ -202,7 +201,9 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
|
|
|
202
201
|
})}
|
|
203
202
|
class="h-full w-full -mb-6 bg-center bg-cover rounded-24 relative"
|
|
204
203
|
>
|
|
205
|
-
|
|
204
|
+
${this.backgroundUrl ? shared_tailwindElement_index.x`<div
|
|
205
|
+
class="h-full w-full rounded-24 bg-neutral-20/10 absolute"
|
|
206
|
+
></div>` : null}
|
|
206
207
|
<div
|
|
207
208
|
class="h-full w-full flex flex-col items-center justify-center absolute"
|
|
208
209
|
>
|
|
@@ -95,9 +95,9 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
95
95
|
})}
|
|
96
96
|
class="min-h-[129px] -mb-6 bg-center bg-cover rounded-[24px_24px_0_0] relative bg-neutral-90"
|
|
97
97
|
>
|
|
98
|
-
<div
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
${this.backgroundUrl ? x` <div
|
|
99
|
+
class="min-h-full min-w-full rounded-[24px_24px_0_0] bg-neutral-20/10 absolute"
|
|
100
|
+
></div>` : ""}
|
|
101
101
|
<div>
|
|
102
102
|
<slot name="header"></slot>
|
|
103
103
|
</div>
|
|
@@ -145,9 +145,9 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
145
145
|
})}
|
|
146
146
|
class="min-h-[129px] -mb-6 bg-center bg-cover rounded-[24px_24px_0_0] relative bg-neutral-90"
|
|
147
147
|
>
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
${this.backgroundUrl ? x`<div
|
|
149
|
+
class="min-h-full min-w-full rounded-[24px_24px_0_0] bg-neutral-10/10 absolute"
|
|
150
|
+
></div>` : ""}
|
|
151
151
|
<div>
|
|
152
152
|
<slot name="header"></slot>
|
|
153
153
|
</div>
|
|
@@ -165,8 +165,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
165
165
|
class="overflow-hidden w-[153px] h-[70px] -top-[70px] relative mx-auto flex items-end justify-center -mb-2"
|
|
166
166
|
>
|
|
167
167
|
<div
|
|
168
|
-
class="bg-neutral-100 rounded-[103px_103px_0_0] w-[96px] h-[48px]
|
|
169
|
-
shadow-neutral-above-shadow-1xl"
|
|
168
|
+
class="bg-neutral-100 rounded-[103px_103px_0_0] w-[96px] h-[48px]"
|
|
170
169
|
></div>
|
|
171
170
|
</div>
|
|
172
171
|
<slot name="content"></slot>
|
|
@@ -182,7 +181,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
182
181
|
return x`
|
|
183
182
|
<div
|
|
184
183
|
data-testid="card"
|
|
185
|
-
class="h-[240px] flex bg-neutral-
|
|
184
|
+
class="h-[240px] flex bg-neutral-100 ${customClassMap({
|
|
186
185
|
[this.mediumStyles]: !this.customClass && this.size === "medium",
|
|
187
186
|
[this.smallStyles]: !this.customClass && this.size === "small",
|
|
188
187
|
[this.smallHoverStyles]: this.isHoverable && this.size === "small",
|
|
@@ -198,7 +197,9 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
198
197
|
})}
|
|
199
198
|
class="h-full w-full -mb-6 bg-center bg-cover rounded-24 relative"
|
|
200
199
|
>
|
|
201
|
-
|
|
200
|
+
${this.backgroundUrl ? x`<div
|
|
201
|
+
class="h-full w-full rounded-24 bg-neutral-20/10 absolute"
|
|
202
|
+
></div>` : null}
|
|
202
203
|
<div
|
|
203
204
|
class="h-full w-full flex flex-col items-center justify-center absolute"
|
|
204
205
|
>
|
|
@@ -487,7 +487,7 @@ exports.LuksoProfile = class LuksoProfile extends shared_tailwindElement_index.T
|
|
|
487
487
|
profileImageSize: 96
|
|
488
488
|
}
|
|
489
489
|
};
|
|
490
|
-
this.defaultProfileUrl = "/assets/images/profile-default.
|
|
490
|
+
this.defaultProfileUrl = "/assets/images/profile-default.svg";
|
|
491
491
|
}
|
|
492
492
|
profileImageSize() {
|
|
493
493
|
return this.sizes[this.size].profileImageSize;
|
|
@@ -483,7 +483,7 @@ let LuksoProfile = class extends TailwindElement {
|
|
|
483
483
|
profileImageSize: 96
|
|
484
484
|
}
|
|
485
485
|
};
|
|
486
|
-
this.defaultProfileUrl = "/assets/images/profile-default.
|
|
486
|
+
this.defaultProfileUrl = "/assets/images/profile-default.svg";
|
|
487
487
|
}
|
|
488
488
|
profileImageSize() {
|
|
489
489
|
return this.sizes[this.size].profileImageSize;
|
|
@@ -27,7 +27,7 @@ exports.LuksoShare = class LuksoShare extends shared_tailwindElement_index.Tailw
|
|
|
27
27
|
twitter: "https://twitter.com/lukso_io",
|
|
28
28
|
instagram: "https://www.instagram.com/lukso",
|
|
29
29
|
linkedin: "https://linkedin.com/company/lukso",
|
|
30
|
-
telegram: "https://t.me/
|
|
30
|
+
telegram: "https://t.me/LUKSO_News",
|
|
31
31
|
discord: "https://discord.gg/lukso",
|
|
32
32
|
reddit: "https://www.reddit.com/r/lukso",
|
|
33
33
|
medium: "https://medium.com/lukso",
|
|
@@ -23,7 +23,7 @@ let LuksoShare = class extends TailwindStyledElement(style) {
|
|
|
23
23
|
twitter: "https://twitter.com/lukso_io",
|
|
24
24
|
instagram: "https://www.instagram.com/lukso",
|
|
25
25
|
linkedin: "https://linkedin.com/company/lukso",
|
|
26
|
-
telegram: "https://t.me/
|
|
26
|
+
telegram: "https://t.me/LUKSO_News",
|
|
27
27
|
discord: "https://discord.gg/lukso",
|
|
28
28
|
reddit: "https://www.reddit.com/r/lukso",
|
|
29
29
|
medium: "https://medium.com/lukso",
|
|
@@ -51,10 +51,10 @@ exports.LuksoUsername = class LuksoUsername extends shared_tailwindElement_index
|
|
|
51
51
|
*/
|
|
52
52
|
addressBytesTemplate() {
|
|
53
53
|
return shared_tailwindElement_index.x`<div
|
|
54
|
-
class="inline-block
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
})}
|
|
54
|
+
class="inline-block ${index.customClassMap({
|
|
55
|
+
["text-" + this.addressColor]: this.addressColor !== "",
|
|
56
|
+
["text-neutral-60"]: this.addressColor === ""
|
|
57
|
+
})}"
|
|
58
58
|
>
|
|
59
59
|
#${this.address.slice(2, 6)}
|
|
60
60
|
</div>`;
|
|
@@ -67,12 +67,12 @@ exports.LuksoUsername = class LuksoUsername extends shared_tailwindElement_index
|
|
|
67
67
|
return shared_tailwindElement_index.x`<div
|
|
68
68
|
class="inline-block whitespace-nowrap overflow-hidden text-ellipsis ${index.customClassMap(
|
|
69
69
|
{
|
|
70
|
-
["text-transparent bg-clip-text bg-gradient-to-r from-gradient-1-start to-gradient-1-end"]: this.nameColor === ""
|
|
70
|
+
["text-transparent bg-clip-text bg-gradient-to-r from-gradient-1-start to-gradient-1-end"]: this.nameColor === "",
|
|
71
|
+
["text-" + this.nameColor]: this.nameColor !== ""
|
|
71
72
|
}
|
|
72
73
|
)}"
|
|
73
74
|
style=${styleMap.o({
|
|
74
|
-
maxWidth: `${this.maxWidth - this.bytesWidth}px
|
|
75
|
-
color: `var(--${this.nameColor})`
|
|
75
|
+
maxWidth: `${this.maxWidth - this.bytesWidth}px`
|
|
76
76
|
})}
|
|
77
77
|
>
|
|
78
78
|
@${this.name}
|
|
@@ -47,10 +47,10 @@ let LuksoUsername = class extends TailwindElement {
|
|
|
47
47
|
*/
|
|
48
48
|
addressBytesTemplate() {
|
|
49
49
|
return x`<div
|
|
50
|
-
class="inline-block
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
})}
|
|
50
|
+
class="inline-block ${customClassMap({
|
|
51
|
+
["text-" + this.addressColor]: this.addressColor !== "",
|
|
52
|
+
["text-neutral-60"]: this.addressColor === ""
|
|
53
|
+
})}"
|
|
54
54
|
>
|
|
55
55
|
#${this.address.slice(2, 6)}
|
|
56
56
|
</div>`;
|
|
@@ -63,12 +63,12 @@ let LuksoUsername = class extends TailwindElement {
|
|
|
63
63
|
return x`<div
|
|
64
64
|
class="inline-block whitespace-nowrap overflow-hidden text-ellipsis ${customClassMap(
|
|
65
65
|
{
|
|
66
|
-
["text-transparent bg-clip-text bg-gradient-to-r from-gradient-1-start to-gradient-1-end"]: this.nameColor === ""
|
|
66
|
+
["text-transparent bg-clip-text bg-gradient-to-r from-gradient-1-start to-gradient-1-end"]: this.nameColor === "",
|
|
67
|
+
["text-" + this.nameColor]: this.nameColor !== ""
|
|
67
68
|
}
|
|
68
69
|
)}"
|
|
69
70
|
style=${o({
|
|
70
|
-
maxWidth: `${this.maxWidth - this.bytesWidth}px
|
|
71
|
-
color: `var(--${this.nameColor})`
|
|
71
|
+
maxWidth: `${this.maxWidth - this.bytesWidth}px`
|
|
72
72
|
})}
|
|
73
73
|
>
|
|
74
74
|
@${this.name}
|
package/package.json
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<svg width="84" height="84" viewBox="0 0 84 84" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="2" y="2" width="80" height="80" rx="40" fill="white"/>
|
|
3
|
+
<circle cx="42" cy="42" r="41" fill="#DEE7ED" stroke="white" stroke-width="2"/>
|
|
4
|
+
<g filter="url(#filter0_d_882_6671)">
|
|
5
|
+
<path d="M60 57.2937C59.0794 51.5075 54.1055 47.0752 48.0653 47.0752H35.9347C29.8903 47.0752 24.9206 51.5075 24 57.2937" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
+
<circle cx="42.4524" cy="32.4524" r="7.45238" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7
|
+
</g>
|
|
8
|
+
<defs>
|
|
9
|
+
<filter id="filter0_d_882_6671" x="3.25" y="4.25" width="77.5" height="73.7939" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
10
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
11
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
12
|
+
<feOffset/>
|
|
13
|
+
<feGaussianBlur stdDeviation="10"/>
|
|
14
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0.529848 0 0 0 0 0.679631 0 0 0 0 0.796129 0 0 0 1 0"/>
|
|
15
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_882_6671"/>
|
|
16
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_882_6671" result="shape"/>
|
|
17
|
+
</filter>
|
|
18
|
+
</defs>
|
|
19
|
+
</svg>
|
|
Binary file
|