@lukso/web-components 1.10.0 → 1.12.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/index.cjs +7 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +3 -2
- package/dist/components/lukso-button/index.cjs +22 -3
- package/dist/components/lukso-button/index.d.ts +3 -0
- package/dist/components/lukso-button/index.d.ts.map +1 -1
- package/dist/components/lukso-button/index.js +22 -3
- package/dist/components/lukso-card/index.cjs +3 -3
- package/dist/components/lukso-card/index.js +3 -3
- package/dist/components/lukso-icon/icons/spinner.d.ts +3 -0
- package/dist/components/lukso-icon/icons/spinner.d.ts.map +1 -0
- package/dist/components/lukso-icon/index.cjs +24 -2
- package/dist/components/lukso-icon/index.d.ts.map +1 -1
- package/dist/components/lukso-icon/index.js +24 -2
- package/dist/components/lukso-input/index.cjs +1 -1
- package/dist/components/lukso-input/index.js +1 -1
- package/dist/components/lukso-modal/index.cjs +1 -1
- package/dist/components/lukso-modal/index.js +1 -1
- package/dist/components/lukso-navbar/index.cjs +10 -4
- package/dist/components/lukso-navbar/index.d.ts +3 -1
- package/dist/components/lukso-navbar/index.d.ts.map +1 -1
- package/dist/components/lukso-navbar/index.js +10 -4
- package/dist/components/lukso-profile/index.cjs +2 -2
- package/dist/components/lukso-profile/index.js +2 -2
- package/dist/components/lukso-sanitize/index.cjs +1 -1
- package/dist/components/lukso-sanitize/index.js +1 -1
- package/dist/components/lukso-tag/index.cjs +2 -2
- package/dist/components/lukso-tag/index.js +2 -2
- package/dist/components/lukso-terms/index.cjs +97 -0
- package/dist/components/lukso-terms/index.d.ts +17 -0
- package/dist/components/lukso-terms/index.d.ts.map +1 -0
- package/dist/components/lukso-terms/index.js +95 -0
- package/dist/components/lukso-test/index.cjs +1 -1
- package/dist/components/lukso-test/index.js +1 -1
- package/dist/components/lukso-username/index.cjs +2 -2
- package/dist/components/lukso-username/index.js +2 -2
- package/dist/components/lukso-wizard/index.cjs +1 -1
- package/dist/components/lukso-wizard/index.js +1 -1
- package/dist/index-65ac952c.cjs +67 -0
- package/dist/index-bd97c2c3.js +59 -0
- package/dist/index.cjs +7 -2
- package/dist/index.js +3 -2
- package/dist/shared/tailwind-element/index.cjs +1 -1
- package/dist/shared/tailwind-element/index.js +1 -1
- package/dist/{style-map-bc22229e.js → style-map-8b1b8545.js} +1 -1
- package/dist/{style-map-843d93d6.cjs → style-map-9f53097b.cjs} +1 -1
- package/dist/styles/main.css +13 -0
- package/dist/styles/main.css.map +1 -1
- package/package.json +6 -1
- package/tailwind.config.cjs +5 -0
- package/tools/sass/component.scss +2 -0
- package/tools/sass/main.scss +2 -0
- package/tools/sass/utilities.scss +9 -0
- package/tools/styles/main.css +13 -0
- package/dist/index-9ac33909.cjs +0 -67
- package/dist/index-c8ea7256.js +0 -59
|
@@ -11,14 +11,15 @@ const components_luksoNavbar_index = require('./lukso-navbar/index.cjs');
|
|
|
11
11
|
const components_luksoProfile_index = require('./lukso-profile/index.cjs');
|
|
12
12
|
const components_luksoSanitize_index = require('./lukso-sanitize/index.cjs');
|
|
13
13
|
const components_luksoTag_index = require('./lukso-tag/index.cjs');
|
|
14
|
+
const components_luksoTerms_index = require('./lukso-terms/index.cjs');
|
|
14
15
|
const components_luksoTest_index = require('./lukso-test/index.cjs');
|
|
15
16
|
const components_luksoUsername_index = require('./lukso-username/index.cjs');
|
|
16
17
|
const components_luksoWizard_index = require('./lukso-wizard/index.cjs');
|
|
17
|
-
const shared_tailwindElement_index = require('../index-
|
|
18
|
+
const shared_tailwindElement_index = require('../index-65ac952c.cjs');
|
|
18
19
|
require('../directive-db00f5fb.cjs');
|
|
19
20
|
require('../state-a62a7d5d.cjs');
|
|
20
21
|
require('../index-7dc05ee5.cjs');
|
|
21
|
-
require('../style-map-
|
|
22
|
+
require('../style-map-9f53097b.cjs');
|
|
22
23
|
|
|
23
24
|
|
|
24
25
|
|
|
@@ -58,6 +59,10 @@ Object.defineProperty(exports, 'LuksoTag', {
|
|
|
58
59
|
enumerable: true,
|
|
59
60
|
get: () => components_luksoTag_index.LuksoTag
|
|
60
61
|
});
|
|
62
|
+
Object.defineProperty(exports, 'LuksoTerms', {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
get: () => components_luksoTerms_index.LuksoTerms
|
|
65
|
+
});
|
|
61
66
|
Object.defineProperty(exports, 'LuksoTest', {
|
|
62
67
|
enumerable: true,
|
|
63
68
|
get: () => components_luksoTest_index.LuksoTest
|
|
@@ -7,6 +7,7 @@ export * from './lukso-navbar/index';
|
|
|
7
7
|
export * from './lukso-profile/index';
|
|
8
8
|
export * from './lukso-sanitize/index';
|
|
9
9
|
export * from './lukso-tag/index';
|
|
10
|
+
export * from './lukso-terms/index';
|
|
10
11
|
export * from './lukso-test/index';
|
|
11
12
|
export * from './lukso-username/index';
|
|
12
13
|
export * from './lukso-wizard/index';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AACA,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,8BAA8B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AACA,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,8BAA8B,CAAA"}
|
package/dist/components/index.js
CHANGED
|
@@ -7,11 +7,12 @@ export { LuksoNavbar } from './lukso-navbar/index.js';
|
|
|
7
7
|
export { LuksoProfile } from './lukso-profile/index.js';
|
|
8
8
|
export { LuksoSanitize } from './lukso-sanitize/index.js';
|
|
9
9
|
export { LuksoTag } from './lukso-tag/index.js';
|
|
10
|
+
export { LuksoTerms } from './lukso-terms/index.js';
|
|
10
11
|
export { LuksoTest } from './lukso-test/index.js';
|
|
11
12
|
export { LuksoUsername } from './lukso-username/index.js';
|
|
12
13
|
export { LuksoWizard } from './lukso-wizard/index.js';
|
|
13
|
-
export { a as TailwindElement, T as TailwindStyledElement } from '../index-
|
|
14
|
+
export { a as TailwindElement, T as TailwindStyledElement } from '../index-bd97c2c3.js';
|
|
14
15
|
import '../directive-9ec64c08.js';
|
|
15
16
|
import '../state-7fde94d1.js';
|
|
16
17
|
import '../index-714323c9.js';
|
|
17
|
-
import '../style-map-
|
|
18
|
+
import '../style-map-8b1b8545.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-65ac952c.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
const state = require('../../state-a62a7d5d.cjs');
|
|
8
8
|
const index = require('../../index-7dc05ee5.cjs');
|
|
@@ -30,9 +30,11 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
|
|
|
30
30
|
this.isFullWidth = false;
|
|
31
31
|
this.isLongPress = false;
|
|
32
32
|
this.isLink = false;
|
|
33
|
+
this.isLoading = false;
|
|
33
34
|
this.href = "";
|
|
34
35
|
this.target = "_blank";
|
|
35
36
|
this.rel = "";
|
|
37
|
+
this.loadingText = "";
|
|
36
38
|
this.isPressed = false;
|
|
37
39
|
this.noTransition = false;
|
|
38
40
|
this.timer = 0;
|
|
@@ -94,11 +96,22 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
|
|
|
94
96
|
}, 100);
|
|
95
97
|
this.timer && clearTimeout(this.timer);
|
|
96
98
|
}
|
|
99
|
+
loadingTemplate() {
|
|
100
|
+
return shared_tailwindElement_index.y`<lukso-icon
|
|
101
|
+
name="spinner"
|
|
102
|
+
color=${this.variant === "secondary" || this.variant === "text" ? "neutral-20" : "neutral-100"}
|
|
103
|
+
class=${index.customClassMap({
|
|
104
|
+
"animate-spin": true,
|
|
105
|
+
"mr-2": !!this.loadingText
|
|
106
|
+
})}
|
|
107
|
+
></lukso-icon>
|
|
108
|
+
${this.loadingText}`;
|
|
109
|
+
}
|
|
97
110
|
buttonTemplate() {
|
|
98
111
|
return shared_tailwindElement_index.y`
|
|
99
112
|
<button
|
|
100
113
|
data-testid="button"
|
|
101
|
-
?disabled=${this.disabled}
|
|
114
|
+
?disabled=${this.disabled || this.isLoading}
|
|
102
115
|
class=${index.customClassMap({
|
|
103
116
|
[this.defaultStyles]: true,
|
|
104
117
|
[this.mediumSize]: this.size === "medium",
|
|
@@ -116,7 +129,7 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
|
|
|
116
129
|
@mouseup=${this.handleMouseUp}
|
|
117
130
|
@mouseleave=${this.handleMouseUp}
|
|
118
131
|
>
|
|
119
|
-
|
|
132
|
+
${this.isLoading ? this.loadingTemplate() : shared_tailwindElement_index.y`<slot></slot>`}
|
|
120
133
|
</button>
|
|
121
134
|
`;
|
|
122
135
|
}
|
|
@@ -165,6 +178,9 @@ __decorateClass([
|
|
|
165
178
|
__decorateClass([
|
|
166
179
|
directive.e({ type: Boolean, attribute: "is-link" })
|
|
167
180
|
], exports.LuksoButton.prototype, "isLink", 2);
|
|
181
|
+
__decorateClass([
|
|
182
|
+
directive.e({ type: Boolean, attribute: "is-loading" })
|
|
183
|
+
], exports.LuksoButton.prototype, "isLoading", 2);
|
|
168
184
|
__decorateClass([
|
|
169
185
|
directive.e({ type: String })
|
|
170
186
|
], exports.LuksoButton.prototype, "href", 2);
|
|
@@ -174,6 +190,9 @@ __decorateClass([
|
|
|
174
190
|
__decorateClass([
|
|
175
191
|
directive.e({ type: String })
|
|
176
192
|
], exports.LuksoButton.prototype, "rel", 2);
|
|
193
|
+
__decorateClass([
|
|
194
|
+
directive.e({ type: String, attribute: "loading-text" })
|
|
195
|
+
], exports.LuksoButton.prototype, "loadingText", 2);
|
|
177
196
|
__decorateClass([
|
|
178
197
|
state.t()
|
|
179
198
|
], exports.LuksoButton.prototype, "isPressed", 2);
|
|
@@ -9,9 +9,11 @@ export declare class LuksoButton extends LuksoButton_base {
|
|
|
9
9
|
isFullWidth: boolean;
|
|
10
10
|
isLongPress: boolean;
|
|
11
11
|
isLink: boolean;
|
|
12
|
+
isLoading: boolean;
|
|
12
13
|
href: string;
|
|
13
14
|
target: LinkTarget;
|
|
14
15
|
rel: string;
|
|
16
|
+
loadingText: string;
|
|
15
17
|
private isPressed;
|
|
16
18
|
private noTransition;
|
|
17
19
|
private timer;
|
|
@@ -28,6 +30,7 @@ export declare class LuksoButton extends LuksoButton_base {
|
|
|
28
30
|
private smallSize;
|
|
29
31
|
private handleMouseDown;
|
|
30
32
|
private handleMouseUp;
|
|
33
|
+
loadingTemplate(): unknown;
|
|
31
34
|
buttonTemplate(): import("lit").TemplateResult<1>;
|
|
32
35
|
linkTemplate(): import("lit").TemplateResult<1>;
|
|
33
36
|
render(): import("lit").TemplateResult<1>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.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a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
3
|
import { t } from '../../state-7fde94d1.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-714323c9.js';
|
|
@@ -26,9 +26,11 @@ let LuksoButton = class extends TailwindStyledElement(style) {
|
|
|
26
26
|
this.isFullWidth = false;
|
|
27
27
|
this.isLongPress = false;
|
|
28
28
|
this.isLink = false;
|
|
29
|
+
this.isLoading = false;
|
|
29
30
|
this.href = "";
|
|
30
31
|
this.target = "_blank";
|
|
31
32
|
this.rel = "";
|
|
33
|
+
this.loadingText = "";
|
|
32
34
|
this.isPressed = false;
|
|
33
35
|
this.noTransition = false;
|
|
34
36
|
this.timer = 0;
|
|
@@ -90,11 +92,22 @@ let LuksoButton = class extends TailwindStyledElement(style) {
|
|
|
90
92
|
}, 100);
|
|
91
93
|
this.timer && clearTimeout(this.timer);
|
|
92
94
|
}
|
|
95
|
+
loadingTemplate() {
|
|
96
|
+
return y`<lukso-icon
|
|
97
|
+
name="spinner"
|
|
98
|
+
color=${this.variant === "secondary" || this.variant === "text" ? "neutral-20" : "neutral-100"}
|
|
99
|
+
class=${customClassMap({
|
|
100
|
+
"animate-spin": true,
|
|
101
|
+
"mr-2": !!this.loadingText
|
|
102
|
+
})}
|
|
103
|
+
></lukso-icon>
|
|
104
|
+
${this.loadingText}`;
|
|
105
|
+
}
|
|
93
106
|
buttonTemplate() {
|
|
94
107
|
return y`
|
|
95
108
|
<button
|
|
96
109
|
data-testid="button"
|
|
97
|
-
?disabled=${this.disabled}
|
|
110
|
+
?disabled=${this.disabled || this.isLoading}
|
|
98
111
|
class=${customClassMap({
|
|
99
112
|
[this.defaultStyles]: true,
|
|
100
113
|
[this.mediumSize]: this.size === "medium",
|
|
@@ -112,7 +125,7 @@ let LuksoButton = class extends TailwindStyledElement(style) {
|
|
|
112
125
|
@mouseup=${this.handleMouseUp}
|
|
113
126
|
@mouseleave=${this.handleMouseUp}
|
|
114
127
|
>
|
|
115
|
-
|
|
128
|
+
${this.isLoading ? this.loadingTemplate() : y`<slot></slot>`}
|
|
116
129
|
</button>
|
|
117
130
|
`;
|
|
118
131
|
}
|
|
@@ -161,6 +174,9 @@ __decorateClass([
|
|
|
161
174
|
__decorateClass([
|
|
162
175
|
e({ type: Boolean, attribute: "is-link" })
|
|
163
176
|
], LuksoButton.prototype, "isLink", 2);
|
|
177
|
+
__decorateClass([
|
|
178
|
+
e({ type: Boolean, attribute: "is-loading" })
|
|
179
|
+
], LuksoButton.prototype, "isLoading", 2);
|
|
164
180
|
__decorateClass([
|
|
165
181
|
e({ type: String })
|
|
166
182
|
], LuksoButton.prototype, "href", 2);
|
|
@@ -170,6 +186,9 @@ __decorateClass([
|
|
|
170
186
|
__decorateClass([
|
|
171
187
|
e({ type: String })
|
|
172
188
|
], LuksoButton.prototype, "rel", 2);
|
|
189
|
+
__decorateClass([
|
|
190
|
+
e({ type: String, attribute: "loading-text" })
|
|
191
|
+
], LuksoButton.prototype, "loadingText", 2);
|
|
173
192
|
__decorateClass([
|
|
174
193
|
t()
|
|
175
194
|
], LuksoButton.prototype, "isPressed", 2);
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-65ac952c.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-9f53097b.cjs');
|
|
8
8
|
const index = require('../../index-7dc05ee5.cjs');
|
|
9
9
|
require('../lukso-profile/index.cjs');
|
|
10
10
|
|
|
11
|
-
const style = ":host {\n width: 100%;\n}\n\n:host([is-fixed-width]) {\n width: inherit;\n}";
|
|
11
|
+
const style = ":host {\n display: flex;\n width: 100%;\n}\n\n:host([is-fixed-width]) {\n width: inherit;\n}";
|
|
12
12
|
|
|
13
13
|
var __defProp = Object.defineProperty;
|
|
14
14
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, y } from '../../index-
|
|
1
|
+
import { T as TailwindStyledElement, y } from '../../index-bd97c2c3.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { i } from '../../style-map-
|
|
3
|
+
import { i } from '../../style-map-8b1b8545.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-714323c9.js';
|
|
5
5
|
import '../lukso-profile/index.js';
|
|
6
6
|
|
|
7
|
-
const style = ":host {\n width: 100%;\n}\n\n:host([is-fixed-width]) {\n width: inherit;\n}";
|
|
7
|
+
const style = ":host {\n display: flex;\n width: 100%;\n}\n\n:host([is-fixed-width]) {\n width: inherit;\n}";
|
|
8
8
|
|
|
9
9
|
var __defProp = Object.defineProperty;
|
|
10
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["spinner.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAE9D,eAAO,MAAM,OAAO,YAAa,WAAW,oCAmB3C,CAAA"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-65ac952c.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-9f53097b.cjs');
|
|
8
8
|
|
|
9
9
|
const style = ":host {\n display: inline-flex\n}";
|
|
10
10
|
|
|
@@ -3057,6 +3057,27 @@ const smartContract = (options) => {
|
|
|
3057
3057
|
</svg> `;
|
|
3058
3058
|
};
|
|
3059
3059
|
|
|
3060
|
+
const spinner = (options) => {
|
|
3061
|
+
return shared_tailwindElement_index.y`<svg
|
|
3062
|
+
width="24"
|
|
3063
|
+
height="24"
|
|
3064
|
+
viewBox="0 0 24 24"
|
|
3065
|
+
fill="none"
|
|
3066
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
3067
|
+
style=${styleMap.i({
|
|
3068
|
+
width: `${options.width}px`,
|
|
3069
|
+
height: `${options.height}px`
|
|
3070
|
+
})}
|
|
3071
|
+
>
|
|
3072
|
+
<path
|
|
3073
|
+
d="M20.25 12C20.25 13.6317 19.7661 15.2267 18.8596 16.5835C17.9531 17.9402 16.6646 18.9976 15.1571 19.622C13.6496 20.2464 11.9908 20.4098 10.3905 20.0915C8.79016 19.7732 7.32015 18.9874 6.16637 17.8336C5.01259 16.6798 4.22685 15.2098 3.90852 13.6095C3.59019 12.0092 3.75357 10.3504 4.37799 8.84286C5.00242 7.33537 6.05984 6.0469 7.41655 5.14038C8.77325 4.23385 10.3683 3.75 12 3.75"
|
|
3074
|
+
stroke="var(--${options.color})"
|
|
3075
|
+
stroke-width="${options.strokeWidth}"
|
|
3076
|
+
stroke-linecap="round"
|
|
3077
|
+
/>
|
|
3078
|
+
</svg> `;
|
|
3079
|
+
};
|
|
3080
|
+
|
|
3060
3081
|
const starFilled = (options) => {
|
|
3061
3082
|
return shared_tailwindElement_index.y`<svg
|
|
3062
3083
|
width="24"
|
|
@@ -4441,6 +4462,7 @@ const iconMap = {
|
|
|
4441
4462
|
settings,
|
|
4442
4463
|
"smart-contract-doc": smartContractDoc,
|
|
4443
4464
|
"smart-contract": smartContract,
|
|
4465
|
+
spinner,
|
|
4444
4466
|
"star-filled": starFilled,
|
|
4445
4467
|
"star-outline": starOutline,
|
|
4446
4468
|
"step-dot": stepDot,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AA0HA,oBAAY,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,oBAAY,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAA;;AA+H5E,qBACa,SAAU,SAAQ,cAA4B;IAEzD,IAAI,SAAK;IAGT,IAAI,SAAW;IAGf,KAAK,SAAe;IAGpB,cAAc,SAAK;IAEnB,OAAO,CAAC,KAAK,CA0BZ;IAED,MAAM;CAuBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAA;KACxB;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { y, T as TailwindStyledElement } from '../../index-
|
|
1
|
+
import { y, T as TailwindStyledElement } from '../../index-bd97c2c3.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { i } from '../../style-map-
|
|
3
|
+
import { i } from '../../style-map-8b1b8545.js';
|
|
4
4
|
|
|
5
5
|
const style = ":host {\n display: inline-flex\n}";
|
|
6
6
|
|
|
@@ -3053,6 +3053,27 @@ const smartContract = (options) => {
|
|
|
3053
3053
|
</svg> `;
|
|
3054
3054
|
};
|
|
3055
3055
|
|
|
3056
|
+
const spinner = (options) => {
|
|
3057
|
+
return y`<svg
|
|
3058
|
+
width="24"
|
|
3059
|
+
height="24"
|
|
3060
|
+
viewBox="0 0 24 24"
|
|
3061
|
+
fill="none"
|
|
3062
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
3063
|
+
style=${i({
|
|
3064
|
+
width: `${options.width}px`,
|
|
3065
|
+
height: `${options.height}px`
|
|
3066
|
+
})}
|
|
3067
|
+
>
|
|
3068
|
+
<path
|
|
3069
|
+
d="M20.25 12C20.25 13.6317 19.7661 15.2267 18.8596 16.5835C17.9531 17.9402 16.6646 18.9976 15.1571 19.622C13.6496 20.2464 11.9908 20.4098 10.3905 20.0915C8.79016 19.7732 7.32015 18.9874 6.16637 17.8336C5.01259 16.6798 4.22685 15.2098 3.90852 13.6095C3.59019 12.0092 3.75357 10.3504 4.37799 8.84286C5.00242 7.33537 6.05984 6.0469 7.41655 5.14038C8.77325 4.23385 10.3683 3.75 12 3.75"
|
|
3070
|
+
stroke="var(--${options.color})"
|
|
3071
|
+
stroke-width="${options.strokeWidth}"
|
|
3072
|
+
stroke-linecap="round"
|
|
3073
|
+
/>
|
|
3074
|
+
</svg> `;
|
|
3075
|
+
};
|
|
3076
|
+
|
|
3056
3077
|
const starFilled = (options) => {
|
|
3057
3078
|
return y`<svg
|
|
3058
3079
|
width="24"
|
|
@@ -4437,6 +4458,7 @@ const iconMap = {
|
|
|
4437
4458
|
settings,
|
|
4438
4459
|
"smart-contract-doc": smartContractDoc,
|
|
4439
4460
|
"smart-contract": smartContract,
|
|
4461
|
+
spinner,
|
|
4440
4462
|
"star-filled": starFilled,
|
|
4441
4463
|
"star-outline": starOutline,
|
|
4442
4464
|
"step-dot": stepDot,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-65ac952c.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
const state = require('../../state-a62a7d5d.cjs');
|
|
8
8
|
const index = require('../../index-7dc05ee5.cjs');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TailwindElement, y, b } from '../../index-
|
|
1
|
+
import { a as TailwindElement, y, b } from '../../index-bd97c2c3.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
3
|
import { t } from '../../state-7fde94d1.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-714323c9.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-65ac952c.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
const index = require('../../index-7dc05ee5.cjs');
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-65ac952c.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
const index = require('../../index-7dc05ee5.cjs');
|
|
8
8
|
|
|
@@ -23,11 +23,13 @@ exports.LuksoNavbar = class LuksoNavbar extends shared_tailwindElement_index.Tai
|
|
|
23
23
|
this.title = "";
|
|
24
24
|
this.isCenter = false;
|
|
25
25
|
this.isSticky = false;
|
|
26
|
+
this.isTransparent = false;
|
|
26
27
|
this.defaultStyles = `bg-neutral-100 shadow-pink-drop-shadow h-78 flex`;
|
|
27
28
|
this.centerStyles = `justify-center`;
|
|
28
29
|
this.stickyStyles = `sticky top-0 z-[1000]`;
|
|
30
|
+
this.transparentStyles = `!bg-transparent !shadow-none`;
|
|
29
31
|
}
|
|
30
|
-
|
|
32
|
+
handleBrandClick() {
|
|
31
33
|
const event = new CustomEvent("on-brand-click", {
|
|
32
34
|
bubbles: true,
|
|
33
35
|
composed: true
|
|
@@ -41,12 +43,13 @@ exports.LuksoNavbar = class LuksoNavbar extends shared_tailwindElement_index.Tai
|
|
|
41
43
|
class=${index.customClassMap({
|
|
42
44
|
[this.defaultStyles]: true,
|
|
43
45
|
[this.centerStyles]: this.isCenter,
|
|
44
|
-
[this.stickyStyles]: this.isSticky
|
|
46
|
+
[this.stickyStyles]: this.isSticky,
|
|
47
|
+
[this.transparentStyles]: this.isTransparent
|
|
45
48
|
})}
|
|
46
49
|
>
|
|
47
50
|
<div
|
|
48
51
|
class="flex items-center px-7 h-full cursor-pointer sm:px-10"
|
|
49
|
-
@click=${this.
|
|
52
|
+
@click=${this.handleBrandClick}
|
|
50
53
|
>
|
|
51
54
|
<img src="/assets/images/lukso-logo.svg" class="mr-4" />
|
|
52
55
|
<div
|
|
@@ -70,6 +73,9 @@ __decorateClass([
|
|
|
70
73
|
__decorateClass([
|
|
71
74
|
directive.e({ type: Boolean, attribute: "is-sticky" })
|
|
72
75
|
], exports.LuksoNavbar.prototype, "isSticky", 2);
|
|
76
|
+
__decorateClass([
|
|
77
|
+
directive.e({ type: Boolean, attribute: "is-transparent" })
|
|
78
|
+
], exports.LuksoNavbar.prototype, "isTransparent", 2);
|
|
73
79
|
exports.LuksoNavbar = __decorateClass([
|
|
74
80
|
directive.e$1("lukso-navbar")
|
|
75
81
|
], exports.LuksoNavbar);
|
|
@@ -3,10 +3,12 @@ export declare class LuksoNavbar extends TailwindElement {
|
|
|
3
3
|
title: string;
|
|
4
4
|
isCenter: boolean;
|
|
5
5
|
isSticky: boolean;
|
|
6
|
+
isTransparent: boolean;
|
|
6
7
|
private defaultStyles;
|
|
7
8
|
private centerStyles;
|
|
8
9
|
private stickyStyles;
|
|
9
|
-
|
|
10
|
+
private transparentStyles;
|
|
11
|
+
private handleBrandClick;
|
|
10
12
|
render(): import("lit").TemplateResult<1>;
|
|
11
13
|
}
|
|
12
14
|
declare global {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAG3D,qBACa,WAAY,SAAQ,eAAe;IAE9C,KAAK,SAAK;IAGV,QAAQ,UAAQ;IAGhB,QAAQ,UAAQ;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAG3D,qBACa,WAAY,SAAQ,eAAe;IAE9C,KAAK,SAAK;IAGV,QAAQ,UAAQ;IAGhB,QAAQ,UAAQ;IAGhB,aAAa,UAAQ;IAErB,OAAO,CAAC,aAAa,CAAqD;IAE1E,OAAO,CAAC,YAAY,CAAmB;IAEvC,OAAO,CAAC,YAAY,CAA0B;IAE9C,OAAO,CAAC,iBAAiB,CAAiC;IAE1D,OAAO,CAAC,gBAAgB;IAQxB,MAAM;CA2BP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TailwindElement, y } from '../../index-
|
|
1
|
+
import { a as TailwindElement, y } from '../../index-bd97c2c3.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
3
|
import { c as customClassMap } from '../../index-714323c9.js';
|
|
4
4
|
|
|
@@ -19,11 +19,13 @@ let LuksoNavbar = class extends TailwindElement {
|
|
|
19
19
|
this.title = "";
|
|
20
20
|
this.isCenter = false;
|
|
21
21
|
this.isSticky = false;
|
|
22
|
+
this.isTransparent = false;
|
|
22
23
|
this.defaultStyles = `bg-neutral-100 shadow-pink-drop-shadow h-78 flex`;
|
|
23
24
|
this.centerStyles = `justify-center`;
|
|
24
25
|
this.stickyStyles = `sticky top-0 z-[1000]`;
|
|
26
|
+
this.transparentStyles = `!bg-transparent !shadow-none`;
|
|
25
27
|
}
|
|
26
|
-
|
|
28
|
+
handleBrandClick() {
|
|
27
29
|
const event = new CustomEvent("on-brand-click", {
|
|
28
30
|
bubbles: true,
|
|
29
31
|
composed: true
|
|
@@ -37,12 +39,13 @@ let LuksoNavbar = class extends TailwindElement {
|
|
|
37
39
|
class=${customClassMap({
|
|
38
40
|
[this.defaultStyles]: true,
|
|
39
41
|
[this.centerStyles]: this.isCenter,
|
|
40
|
-
[this.stickyStyles]: this.isSticky
|
|
42
|
+
[this.stickyStyles]: this.isSticky,
|
|
43
|
+
[this.transparentStyles]: this.isTransparent
|
|
41
44
|
})}
|
|
42
45
|
>
|
|
43
46
|
<div
|
|
44
47
|
class="flex items-center px-7 h-full cursor-pointer sm:px-10"
|
|
45
|
-
@click=${this.
|
|
48
|
+
@click=${this.handleBrandClick}
|
|
46
49
|
>
|
|
47
50
|
<img src="/assets/images/lukso-logo.svg" class="mr-4" />
|
|
48
51
|
<div
|
|
@@ -66,6 +69,9 @@ __decorateClass([
|
|
|
66
69
|
__decorateClass([
|
|
67
70
|
e({ type: Boolean, attribute: "is-sticky" })
|
|
68
71
|
], LuksoNavbar.prototype, "isSticky", 2);
|
|
72
|
+
__decorateClass([
|
|
73
|
+
e({ type: Boolean, attribute: "is-transparent" })
|
|
74
|
+
], LuksoNavbar.prototype, "isTransparent", 2);
|
|
69
75
|
LuksoNavbar = __decorateClass([
|
|
70
76
|
e$1("lukso-navbar")
|
|
71
77
|
], LuksoNavbar);
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-65ac952c.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-9f53097b.cjs');
|
|
8
8
|
|
|
9
9
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as TailwindElement, y } from '../../index-
|
|
1
|
+
import { a as TailwindElement, y } from '../../index-bd97c2c3.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { i } from '../../style-map-
|
|
3
|
+
import { i } from '../../style-map-8b1b8545.js';
|
|
4
4
|
|
|
5
5
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
6
6
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-65ac952c.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-65ac952c.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-9f53097b.cjs');
|
|
8
8
|
const index = require('../../index-7dc05ee5.cjs');
|
|
9
9
|
|
|
10
10
|
var __defProp = Object.defineProperty;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as TailwindElement, y } from '../../index-
|
|
1
|
+
import { a as TailwindElement, y } from '../../index-bd97c2c3.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { i } from '../../style-map-
|
|
3
|
+
import { i } from '../../style-map-8b1b8545.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-714323c9.js';
|
|
5
5
|
|
|
6
6
|
var __defProp = Object.defineProperty;
|