@lukso/web-components 1.14.0 → 1.15.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/README.md +4 -4
- package/dist/components/lukso-button/index.cjs +5 -0
- package/dist/components/lukso-button/index.d.ts +2 -0
- package/dist/components/lukso-button/index.d.ts.map +1 -1
- package/dist/components/lukso-button/index.js +5 -0
- package/dist/components/lukso-card/index.cjs +10 -3
- package/dist/components/lukso-card/index.d.ts +1 -0
- package/dist/components/lukso-card/index.d.ts.map +1 -1
- package/dist/components/lukso-card/index.js +10 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,15 +25,15 @@ Library is focused around projects build on top of [Tailwind CSS](https://tailwi
|
|
|
25
25
|
For using components you need to first import them either as individual ones:
|
|
26
26
|
|
|
27
27
|
```js
|
|
28
|
-
import('@lukso/web-components/components/lukso-button')
|
|
29
|
-
import('@lukso/web-components/components/lukso-card')
|
|
30
|
-
import('@lukso/web-components/components/lukso-tag')
|
|
28
|
+
import('@lukso/web-components/components/dist/lukso-button')
|
|
29
|
+
import('@lukso/web-components/components/dist/lukso-card')
|
|
30
|
+
import('@lukso/web-components/components/dist/lukso-tag')
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
or all of them in single import:
|
|
34
34
|
|
|
35
35
|
```js
|
|
36
|
-
import('@lukso/web-components
|
|
36
|
+
import('@lukso/web-components')
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
> Hint: you can make import in root level of your project (`app.vue`) instead of importing in every component.
|
|
@@ -31,6 +31,7 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
|
|
|
31
31
|
this.isLongPress = false;
|
|
32
32
|
this.isLink = false;
|
|
33
33
|
this.isLoading = false;
|
|
34
|
+
this.type = "button";
|
|
34
35
|
this.href = "";
|
|
35
36
|
this.target = "_blank";
|
|
36
37
|
this.rel = "";
|
|
@@ -113,6 +114,7 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
|
|
|
113
114
|
<button
|
|
114
115
|
data-testid="button"
|
|
115
116
|
?disabled=${this.disabled || this.isLoading}
|
|
117
|
+
type=${this.type}
|
|
116
118
|
class=${index.customClassMap({
|
|
117
119
|
[this.defaultStyles]: true,
|
|
118
120
|
[this.mediumSize]: this.size === "medium",
|
|
@@ -184,6 +186,9 @@ __decorateClass([
|
|
|
184
186
|
__decorateClass([
|
|
185
187
|
directive.e({ type: Boolean, attribute: "is-loading" })
|
|
186
188
|
], exports.LuksoButton.prototype, "isLoading", 2);
|
|
189
|
+
__decorateClass([
|
|
190
|
+
directive.e({ type: String })
|
|
191
|
+
], exports.LuksoButton.prototype, "type", 2);
|
|
187
192
|
__decorateClass([
|
|
188
193
|
directive.e({ type: String })
|
|
189
194
|
], exports.LuksoButton.prototype, "href", 2);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare type ButtonVariant = 'primary' | 'secondary' | 'landing' | 'text';
|
|
2
2
|
export declare type ButtonSize = 'small' | 'medium';
|
|
3
|
+
export declare type ButtonType = 'submit' | 'reset' | 'button';
|
|
3
4
|
export declare type LinkTarget = '_blank' | '_self' | '_parent' | '_top';
|
|
4
5
|
declare const LuksoButton_base: typeof import("lit").LitElement;
|
|
5
6
|
export declare class LuksoButton extends LuksoButton_base {
|
|
@@ -10,6 +11,7 @@ export declare class LuksoButton extends LuksoButton_base {
|
|
|
10
11
|
isLongPress: boolean;
|
|
11
12
|
isLink: boolean;
|
|
12
13
|
isLoading: boolean;
|
|
14
|
+
type: ButtonType;
|
|
13
15
|
href: string;
|
|
14
16
|
target: LinkTarget;
|
|
15
17
|
rel: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAOA,oBAAY,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,CAAA;AACxE,oBAAY,UAAU,GAAG,OAAO,GAAG,QAAQ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GAAG,SAAS,GAAG,MAAM,CAAA;;AAIhE,qBACa,WAAY,SAAQ,gBAA4B;IAE3D,OAAO,EAAE,aAAa,CAAY;IAGlC,IAAI,EAAE,UAAU,CAAW;IAG3B,QAAQ,UAAQ;IAGhB,WAAW,UAAQ;IAGnB,WAAW,UAAQ;IAGnB,MAAM,UAAQ;IAGd,SAAS,UAAQ;IAGjB,IAAI,EAAE,UAAU,CAAW;IAG3B,IAAI,SAAK;IAGT,MAAM,EAAE,UAAU,CAAW;IAG7B,GAAG,SAAK;IAGR,WAAW,SAAK;IAGhB,WAAW,SAAK;IAGhB,OAAO,CAAC,SAAS,CAAQ;IAGzB,OAAO,CAAC,YAAY,CAAQ;IAG5B,OAAO,CAAC,KAAK,CAAI;IAEjB,OAAO,CAAC,aAAa,CAGqE;IAE1F,OAAO,CAAC,eAAe,CACoD;IAE3E,OAAO,CAAC,aAAa,CAIE;IAEvB,OAAO,CAAC,aAAa,CAIC;IAEtB,OAAO,CAAC,UAAU,CAGS;IAE3B,OAAO,CAAC,UAAU,CAAyE;IAE3F,OAAO,CAAC,eAAe,CAEyD;IAEhF,OAAO,CAAC,aAAa,CAAgC;IAErD,OAAO,CAAC,kBAAkB,CAA2B;IAErD,OAAO,CAAC,UAAU,CAAsD;IAExE,OAAO,CAAC,SAAS,CAAwF;IAEzG,OAAO,CAAC,eAAe;IA2BvB,OAAO,CAAC,aAAa;IAcrB,eAAe,IAAI,OAAO;IAc1B,cAAc;IA6Bd,YAAY;IAyBZ,MAAM;CAGP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
|
|
@@ -27,6 +27,7 @@ let LuksoButton = class extends TailwindStyledElement(style) {
|
|
|
27
27
|
this.isLongPress = false;
|
|
28
28
|
this.isLink = false;
|
|
29
29
|
this.isLoading = false;
|
|
30
|
+
this.type = "button";
|
|
30
31
|
this.href = "";
|
|
31
32
|
this.target = "_blank";
|
|
32
33
|
this.rel = "";
|
|
@@ -109,6 +110,7 @@ let LuksoButton = class extends TailwindStyledElement(style) {
|
|
|
109
110
|
<button
|
|
110
111
|
data-testid="button"
|
|
111
112
|
?disabled=${this.disabled || this.isLoading}
|
|
113
|
+
type=${this.type}
|
|
112
114
|
class=${customClassMap({
|
|
113
115
|
[this.defaultStyles]: true,
|
|
114
116
|
[this.mediumSize]: this.size === "medium",
|
|
@@ -180,6 +182,9 @@ __decorateClass([
|
|
|
180
182
|
__decorateClass([
|
|
181
183
|
e({ type: Boolean, attribute: "is-loading" })
|
|
182
184
|
], LuksoButton.prototype, "isLoading", 2);
|
|
185
|
+
__decorateClass([
|
|
186
|
+
e({ type: String })
|
|
187
|
+
], LuksoButton.prototype, "type", 2);
|
|
183
188
|
__decorateClass([
|
|
184
189
|
e({ type: String })
|
|
185
190
|
], LuksoButton.prototype, "href", 2);
|
|
@@ -30,6 +30,7 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
|
|
|
30
30
|
this.profileAddress = "";
|
|
31
31
|
this.isFixedWidth = false;
|
|
32
32
|
this.isFixedHeight = false;
|
|
33
|
+
this.isFullWidth = false;
|
|
33
34
|
this.defaultStyles = `rounded-24 shadow-pink-drop-shadow-2xl`;
|
|
34
35
|
}
|
|
35
36
|
basicTemplate() {
|
|
@@ -39,7 +40,8 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
|
|
|
39
40
|
class="bg-neutral-100 ${index.customClassMap({
|
|
40
41
|
[this.defaultStyles]: true,
|
|
41
42
|
["w-[362px]"]: this.isFixedWidth,
|
|
42
|
-
["min-h-[534px]"]: this.isFixedHeight
|
|
43
|
+
["min-h-[534px]"]: this.isFixedHeight,
|
|
44
|
+
["w-full"]: this.isFullWidth
|
|
43
45
|
})}"
|
|
44
46
|
>
|
|
45
47
|
<slot name="content"></slot>
|
|
@@ -53,7 +55,8 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
|
|
|
53
55
|
class="bg-neutral-98 grid grid-rows-[auto,1fr] ${index.customClassMap({
|
|
54
56
|
[this.defaultStyles]: true,
|
|
55
57
|
["w-[362px]"]: this.isFixedWidth,
|
|
56
|
-
["min-h-[534px]"]: this.isFixedHeight
|
|
58
|
+
["min-h-[534px]"]: this.isFixedHeight,
|
|
59
|
+
["w-full"]: this.isFullWidth
|
|
57
60
|
})}"
|
|
58
61
|
>
|
|
59
62
|
<div>
|
|
@@ -72,7 +75,8 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
|
|
|
72
75
|
class="bg-neutral-98 grid grid-rows-[auto,1fr] ${index.customClassMap({
|
|
73
76
|
[this.defaultStyles]: true,
|
|
74
77
|
["w-[362px]"]: this.isFixedWidth,
|
|
75
|
-
["min-h-[534px]"]: this.isFixedHeight
|
|
78
|
+
["min-h-[534px]"]: this.isFixedHeight,
|
|
79
|
+
["w-full"]: this.isFullWidth
|
|
76
80
|
})}"
|
|
77
81
|
>
|
|
78
82
|
<div
|
|
@@ -140,6 +144,9 @@ __decorateClass([
|
|
|
140
144
|
__decorateClass([
|
|
141
145
|
directive.e({ type: Boolean, attribute: "is-fixed-height" })
|
|
142
146
|
], exports.LuksoCard.prototype, "isFixedHeight", 2);
|
|
147
|
+
__decorateClass([
|
|
148
|
+
directive.e({ type: Boolean, attribute: "is-full-width" })
|
|
149
|
+
], exports.LuksoCard.prototype, "isFullWidth", 2);
|
|
143
150
|
exports.LuksoCard = __decorateClass([
|
|
144
151
|
directive.e$1("lukso-card")
|
|
145
152
|
], exports.LuksoCard);
|
|
@@ -7,6 +7,7 @@ export declare class LuksoCard extends LuksoCard_base {
|
|
|
7
7
|
profileAddress: string;
|
|
8
8
|
isFixedWidth: boolean;
|
|
9
9
|
isFixedHeight: boolean;
|
|
10
|
+
isFullWidth: boolean;
|
|
10
11
|
private defaultStyles;
|
|
11
12
|
basicTemplate(): import("lit").TemplateResult<1>;
|
|
12
13
|
withHeaderTemplate(): import("lit").TemplateResult<1>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAOA,OAAO,4BAA4B,CAAA;AAEnC,oBAAY,YAAY,GAAG,OAAO,GAAG,aAAa,GAAG,SAAS,CAAA;;AAE9D,qBACa,SAAU,SAAQ,cAA4B;IAEzD,OAAO,EAAE,YAAY,CAAU;IAG/B,aAAa,SAAK;IAGlB,UAAU,SAAK;IAGf,cAAc,SAAK;IAGnB,YAAY,UAAQ;IAGpB,aAAa,UAAQ;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAOA,OAAO,4BAA4B,CAAA;AAEnC,oBAAY,YAAY,GAAG,OAAO,GAAG,aAAa,GAAG,SAAS,CAAA;;AAE9D,qBACa,SAAU,SAAQ,cAA4B;IAEzD,OAAO,EAAE,YAAY,CAAU;IAG/B,aAAa,SAAK;IAGlB,UAAU,SAAK;IAGf,cAAc,SAAK;IAGnB,YAAY,UAAQ;IAGpB,aAAa,UAAQ;IAGrB,WAAW,UAAQ;IAEnB,OAAO,CAAC,aAAa,CAA4C;IAEjE,aAAa;IAgBb,kBAAkB;IAqBlB,eAAe;IAgDf,MAAM;CAWP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAA;KACxB;CACF"}
|
|
@@ -26,6 +26,7 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
26
26
|
this.profileAddress = "";
|
|
27
27
|
this.isFixedWidth = false;
|
|
28
28
|
this.isFixedHeight = false;
|
|
29
|
+
this.isFullWidth = false;
|
|
29
30
|
this.defaultStyles = `rounded-24 shadow-pink-drop-shadow-2xl`;
|
|
30
31
|
}
|
|
31
32
|
basicTemplate() {
|
|
@@ -35,7 +36,8 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
35
36
|
class="bg-neutral-100 ${customClassMap({
|
|
36
37
|
[this.defaultStyles]: true,
|
|
37
38
|
["w-[362px]"]: this.isFixedWidth,
|
|
38
|
-
["min-h-[534px]"]: this.isFixedHeight
|
|
39
|
+
["min-h-[534px]"]: this.isFixedHeight,
|
|
40
|
+
["w-full"]: this.isFullWidth
|
|
39
41
|
})}"
|
|
40
42
|
>
|
|
41
43
|
<slot name="content"></slot>
|
|
@@ -49,7 +51,8 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
49
51
|
class="bg-neutral-98 grid grid-rows-[auto,1fr] ${customClassMap({
|
|
50
52
|
[this.defaultStyles]: true,
|
|
51
53
|
["w-[362px]"]: this.isFixedWidth,
|
|
52
|
-
["min-h-[534px]"]: this.isFixedHeight
|
|
54
|
+
["min-h-[534px]"]: this.isFixedHeight,
|
|
55
|
+
["w-full"]: this.isFullWidth
|
|
53
56
|
})}"
|
|
54
57
|
>
|
|
55
58
|
<div>
|
|
@@ -68,7 +71,8 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
68
71
|
class="bg-neutral-98 grid grid-rows-[auto,1fr] ${customClassMap({
|
|
69
72
|
[this.defaultStyles]: true,
|
|
70
73
|
["w-[362px]"]: this.isFixedWidth,
|
|
71
|
-
["min-h-[534px]"]: this.isFixedHeight
|
|
74
|
+
["min-h-[534px]"]: this.isFixedHeight,
|
|
75
|
+
["w-full"]: this.isFullWidth
|
|
72
76
|
})}"
|
|
73
77
|
>
|
|
74
78
|
<div
|
|
@@ -136,6 +140,9 @@ __decorateClass([
|
|
|
136
140
|
__decorateClass([
|
|
137
141
|
e({ type: Boolean, attribute: "is-fixed-height" })
|
|
138
142
|
], LuksoCard.prototype, "isFixedHeight", 2);
|
|
143
|
+
__decorateClass([
|
|
144
|
+
e({ type: Boolean, attribute: "is-full-width" })
|
|
145
|
+
], LuksoCard.prototype, "isFullWidth", 2);
|
|
139
146
|
LuksoCard = __decorateClass([
|
|
140
147
|
e$1("lukso-card")
|
|
141
148
|
], LuksoCard);
|