@lukso/web-components 1.41.0 → 1.42.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 -6
- package/dist/components/index.js +7 -6
- package/dist/components/lukso-button/index.cjs +21 -20
- package/dist/components/lukso-button/index.js +5 -4
- package/dist/components/lukso-card/index.cjs +15 -14
- package/dist/components/lukso-card/index.js +5 -4
- package/dist/components/lukso-checkbox/index.cjs +16 -15
- package/dist/components/lukso-checkbox/index.js +5 -4
- package/dist/components/lukso-footer/index.cjs +39 -27
- package/dist/components/lukso-footer/index.d.ts +2 -0
- package/dist/components/lukso-footer/index.d.ts.map +1 -1
- package/dist/components/lukso-footer/index.js +39 -27
- package/dist/components/lukso-footer/lukso-footer.stories.d.ts +2 -0
- package/dist/components/lukso-footer/lukso-footer.stories.d.ts.map +1 -1
- package/dist/components/lukso-icon/index.cjs +9 -8
- package/dist/components/lukso-icon/index.js +4 -3
- package/dist/components/lukso-input/index.cjs +26 -25
- package/dist/components/lukso-input/index.js +5 -4
- package/dist/components/lukso-modal/index.cjs +7 -6
- package/dist/components/lukso-modal/index.js +4 -3
- package/dist/components/lukso-navbar/index.cjs +15 -14
- package/dist/components/lukso-navbar/index.js +6 -5
- package/dist/components/lukso-profile/index.cjs +10 -9
- package/dist/components/lukso-profile/index.js +5 -4
- package/dist/components/lukso-progress/index.cjs +10 -9
- package/dist/components/lukso-progress/index.js +5 -4
- package/dist/components/lukso-sanitize/index.cjs +7 -6
- package/dist/components/lukso-sanitize/index.js +3 -2
- package/dist/components/lukso-search/index.cjs +27 -26
- package/dist/components/lukso-search/index.js +6 -5
- package/dist/components/lukso-share/index.cjs +24 -15
- package/dist/components/lukso-share/index.d.ts +8 -2
- package/dist/components/lukso-share/index.d.ts.map +1 -1
- package/dist/components/lukso-share/index.js +23 -14
- package/dist/components/lukso-share/lukso-share.stories.d.ts +5 -1
- package/dist/components/lukso-share/lukso-share.stories.d.ts.map +1 -1
- package/dist/components/lukso-switch/index.cjs +9 -8
- package/dist/components/lukso-switch/index.js +5 -4
- package/dist/components/lukso-tag/index.cjs +10 -9
- package/dist/components/lukso-tag/index.js +5 -4
- package/dist/components/lukso-terms/index.cjs +9 -7
- package/dist/components/lukso-terms/index.d.ts.map +1 -1
- package/dist/components/lukso-terms/index.js +7 -5
- package/dist/components/lukso-test/index.cjs +10 -9
- package/dist/components/lukso-test/index.js +4 -3
- package/dist/components/lukso-username/index.cjs +16 -15
- package/dist/components/lukso-username/index.js +5 -4
- package/dist/components/lukso-wizard/index.cjs +10 -9
- package/dist/components/lukso-wizard/index.js +5 -4
- package/dist/directive-2bb7789e.js +8 -0
- package/dist/directive-8278ab14.cjs +12 -0
- package/dist/{directive-helpers-e70702eb.cjs → directive-helpers-01f1c3b1.cjs} +1 -1
- package/dist/{directive-helpers-1affe406.js → directive-helpers-8f79cbe5.js} +1 -1
- package/dist/{index-714323c9.js → index-5e194caf.js} +1 -1
- package/dist/{index-e765f94b.cjs → index-930f6cf2.cjs} +1 -1
- package/dist/{index-7dc05ee5.cjs → index-e9668573.cjs} +2 -2
- package/dist/{index-9dfdafd2.js → index-ed87f41b.js} +1 -1
- package/dist/index.cjs +7 -6
- package/dist/index.js +7 -6
- package/dist/query-assigned-elements-5200f974.cjs +24 -0
- package/dist/query-assigned-elements-e36df787.js +21 -0
- package/dist/shared/tailwind-element/index.cjs +1 -1
- package/dist/shared/tailwind-element/index.js +1 -1
- package/dist/{state-7fde94d1.js → state-02a92ffa.js} +1 -1
- package/dist/state-51b50a6b.cjs +11 -0
- package/dist/style-map-3b9af808.cjs +12 -0
- package/dist/{style-map-5173bb70.js → style-map-5daca6c4.js} +2 -2
- package/package.json +1 -1
- package/tools/assets/images/social-discord.svg +4 -1
- package/tools/assets/images/social-github.svg +11 -1
- package/tools/assets/images/social-instagram.svg +6 -1
- package/tools/assets/images/social-linkedin.svg +4 -1
- package/tools/assets/images/social-medium.svg +6 -1
- package/tools/assets/images/social-reddit.svg +11 -1
- package/tools/assets/images/social-telegram.svg +4 -1
- package/tools/assets/images/social-twitter.svg +4 -1
- package/dist/directive-9ec64c08.js +0 -28
- package/dist/directive-db00f5fb.cjs +0 -34
- package/dist/state-a62a7d5d.cjs +0 -11
- package/dist/style-map-3a049df9.cjs +0 -12
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x } from '../../index-
|
|
2
|
-
import { e, a as e$1 } from '../../
|
|
3
|
-
import { c as customClassMap } from '../../index-714323c9.js';
|
|
1
|
+
import { T as TailwindStyledElement, x } from '../../index-ed87f41b.js';
|
|
2
|
+
import { e, a as e$1 } from '../../query-assigned-elements-e36df787.js';
|
|
4
3
|
|
|
5
4
|
const style = ":host {\n display: inline-flex\n}";
|
|
6
5
|
|
|
@@ -18,7 +17,17 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
18
17
|
let LuksoShare = class extends TailwindStyledElement(style) {
|
|
19
18
|
constructor() {
|
|
20
19
|
super(...arguments);
|
|
21
|
-
this.
|
|
20
|
+
this.customStyle = "";
|
|
21
|
+
this.providers = [
|
|
22
|
+
"twitter",
|
|
23
|
+
"instagram",
|
|
24
|
+
"linkedin",
|
|
25
|
+
"telegram",
|
|
26
|
+
"discord",
|
|
27
|
+
"reddit",
|
|
28
|
+
"medium",
|
|
29
|
+
"github"
|
|
30
|
+
];
|
|
22
31
|
this.urls = {
|
|
23
32
|
twitter: "https://twitter.com/lukso_io",
|
|
24
33
|
instagram: "https://www.instagram.com/lukso",
|
|
@@ -34,29 +43,29 @@ let LuksoShare = class extends TailwindStyledElement(style) {
|
|
|
34
43
|
return x`<a
|
|
35
44
|
href=${url}
|
|
36
45
|
target="_blank"
|
|
37
|
-
class="transition-all duration-300 rounded-full hover:opacity-80 hover:shadow-button-hover-primary"
|
|
46
|
+
class="transition-all duration-300 rounded-full opacity-50 hover:opacity-80 hover:shadow-button-hover-primary h-7 w-7"
|
|
38
47
|
><img src="/assets/images/social-${name}.svg" alt=""
|
|
39
48
|
/></a>`;
|
|
40
49
|
}
|
|
41
50
|
render() {
|
|
42
51
|
const linkTemplates = [];
|
|
43
|
-
for (const
|
|
44
|
-
linkTemplates.push(this.linkTemplate(
|
|
52
|
+
for (const provider of this.providers) {
|
|
53
|
+
linkTemplates.push(this.linkTemplate(provider, this.urls[provider]));
|
|
45
54
|
}
|
|
46
55
|
return x`<div
|
|
47
|
-
class="grid gap-
|
|
48
|
-
{
|
|
49
|
-
[this.customClass]: !!this.customClass
|
|
50
|
-
}
|
|
51
|
-
)}"
|
|
56
|
+
class="grid gap-2 sm:gap-4"
|
|
57
|
+
style="grid-template-columns: repeat(${this.providers.length}, max-content); ${this.customStyle}"
|
|
52
58
|
>
|
|
53
59
|
${linkTemplates}
|
|
54
60
|
</div>`;
|
|
55
61
|
}
|
|
56
62
|
};
|
|
57
63
|
__decorateClass([
|
|
58
|
-
e({ type: String, attribute: "custom-
|
|
59
|
-
], LuksoShare.prototype, "
|
|
64
|
+
e({ type: String, attribute: "custom-style" })
|
|
65
|
+
], LuksoShare.prototype, "customStyle", 2);
|
|
66
|
+
__decorateClass([
|
|
67
|
+
e({ type: Array })
|
|
68
|
+
], LuksoShare.prototype, "providers", 2);
|
|
60
69
|
LuksoShare = __decorateClass([
|
|
61
70
|
e$1("lukso-share")
|
|
62
71
|
], LuksoShare);
|
|
@@ -2,6 +2,10 @@ import { Meta } from '@storybook/web-components';
|
|
|
2
2
|
/** Documentation and examples of `lukso-share` component. */
|
|
3
3
|
declare const meta: Meta;
|
|
4
4
|
export default meta;
|
|
5
|
-
/** Component render responsive list of links
|
|
5
|
+
/** Component render responsive list of links. */
|
|
6
6
|
export declare const Default: any;
|
|
7
|
+
/** With `custom-style` attribute you can change layout of the elements. */
|
|
8
|
+
export declare const CustomStyle: any;
|
|
9
|
+
/** With `providers` attribute pick only providers that you want, you can also control order this way. Use `JSON.stringify` to encode `array`. */
|
|
10
|
+
export declare const LimitProviders: any;
|
|
7
11
|
//# sourceMappingURL=lukso-share.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lukso-share.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-share/lukso-share.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAEhD,OAAO,SAAS,CAAA;AAEhB,8DAA8D;AAC9D,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"lukso-share.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-share/lukso-share.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAEhD,OAAO,SAAS,CAAA;AAEhB,8DAA8D;AAC9D,QAAA,MAAM,IAAI,EAAE,IAoCX,CAAA;AAED,eAAe,IAAI,CAAA;AAQnB,iDAAiD;AACjD,eAAO,MAAM,OAAO,KAAoB,CAAA;AAExC,2EAA2E;AAC3E,eAAO,MAAM,WAAW,KAAoB,CAAA;AAK5C,iJAAiJ;AACjJ,eAAO,MAAM,cAAc,KAAoB,CAAA"}
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
8
|
-
const index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-930f6cf2.cjs');
|
|
6
|
+
const queryAssignedElements = require('../../query-assigned-elements-5200f974.cjs');
|
|
7
|
+
const styleMap = require('../../style-map-3b9af808.cjs');
|
|
8
|
+
const index = require('../../index-e9668573.cjs');
|
|
9
|
+
require('../../directive-8278ab14.cjs');
|
|
9
10
|
|
|
10
11
|
var __defProp = Object.defineProperty;
|
|
11
12
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -73,17 +74,17 @@ exports.LuksoSwitch = class LuksoSwitch extends shared_tailwindElement_index.Tai
|
|
|
73
74
|
}
|
|
74
75
|
};
|
|
75
76
|
__decorateClass([
|
|
76
|
-
|
|
77
|
+
queryAssignedElements.e({ type: String })
|
|
77
78
|
], exports.LuksoSwitch.prototype, "color", 2);
|
|
78
79
|
__decorateClass([
|
|
79
|
-
|
|
80
|
+
queryAssignedElements.e({ type: Boolean, attribute: "is-checked" })
|
|
80
81
|
], exports.LuksoSwitch.prototype, "isChecked", 2);
|
|
81
82
|
__decorateClass([
|
|
82
|
-
|
|
83
|
+
queryAssignedElements.e({
|
|
83
84
|
type: Boolean,
|
|
84
85
|
attribute: "is-disabled"
|
|
85
86
|
})
|
|
86
87
|
], exports.LuksoSwitch.prototype, "isDisabled", 2);
|
|
87
88
|
exports.LuksoSwitch = __decorateClass([
|
|
88
|
-
|
|
89
|
+
queryAssignedElements.e$1("lukso-switch")
|
|
89
90
|
], exports.LuksoSwitch);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
2
|
-
import { e, a as e$1 } from '../../
|
|
3
|
-
import { o } from '../../style-map-
|
|
4
|
-
import { c as customClassMap } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-ed87f41b.js';
|
|
2
|
+
import { e, a as e$1 } from '../../query-assigned-elements-e36df787.js';
|
|
3
|
+
import { o } from '../../style-map-5daca6c4.js';
|
|
4
|
+
import { c as customClassMap } from '../../index-5e194caf.js';
|
|
5
|
+
import '../../directive-2bb7789e.js';
|
|
5
6
|
|
|
6
7
|
var __defProp = Object.defineProperty;
|
|
7
8
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
8
|
-
const index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-930f6cf2.cjs');
|
|
6
|
+
const queryAssignedElements = require('../../query-assigned-elements-5200f974.cjs');
|
|
7
|
+
const styleMap = require('../../style-map-3b9af808.cjs');
|
|
8
|
+
const index = require('../../index-e9668573.cjs');
|
|
9
|
+
require('../../directive-8278ab14.cjs');
|
|
9
10
|
|
|
10
11
|
const style = ":host {\n display: inline-flex\n}";
|
|
11
12
|
|
|
@@ -70,17 +71,17 @@ exports.LuksoTag = class LuksoTag extends shared_tailwindElement_index.TailwindS
|
|
|
70
71
|
}
|
|
71
72
|
};
|
|
72
73
|
__decorateClass([
|
|
73
|
-
|
|
74
|
+
queryAssignedElements.e({ type: String })
|
|
74
75
|
], exports.LuksoTag.prototype, "size", 2);
|
|
75
76
|
__decorateClass([
|
|
76
|
-
|
|
77
|
+
queryAssignedElements.e({ type: Boolean, attribute: "is-rounded" })
|
|
77
78
|
], exports.LuksoTag.prototype, "isRounded", 2);
|
|
78
79
|
__decorateClass([
|
|
79
|
-
|
|
80
|
+
queryAssignedElements.e({ type: String, attribute: "background-color" })
|
|
80
81
|
], exports.LuksoTag.prototype, "backgroundColor", 2);
|
|
81
82
|
__decorateClass([
|
|
82
|
-
|
|
83
|
+
queryAssignedElements.e({ type: String, attribute: "text-color" })
|
|
83
84
|
], exports.LuksoTag.prototype, "textColor", 2);
|
|
84
85
|
exports.LuksoTag = __decorateClass([
|
|
85
|
-
|
|
86
|
+
queryAssignedElements.e$1("lukso-tag")
|
|
86
87
|
], exports.LuksoTag);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x } from '../../index-
|
|
2
|
-
import { e, a as e$1 } from '../../
|
|
3
|
-
import { o } from '../../style-map-
|
|
4
|
-
import { c as customClassMap } from '../../index-
|
|
1
|
+
import { T as TailwindStyledElement, x } from '../../index-ed87f41b.js';
|
|
2
|
+
import { e, a as e$1 } from '../../query-assigned-elements-e36df787.js';
|
|
3
|
+
import { o } from '../../style-map-5daca6c4.js';
|
|
4
|
+
import { c as customClassMap } from '../../index-5e194caf.js';
|
|
5
|
+
import '../../directive-2bb7789e.js';
|
|
5
6
|
|
|
6
7
|
const style = ":host {\n display: inline-flex\n}";
|
|
7
8
|
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const
|
|
7
|
-
const state = require('../../state-
|
|
8
|
-
const index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-930f6cf2.cjs');
|
|
6
|
+
const queryAssignedElements = require('../../query-assigned-elements-5200f974.cjs');
|
|
7
|
+
const state = require('../../state-51b50a6b.cjs');
|
|
8
|
+
const index = require('../../index-e9668573.cjs');
|
|
9
9
|
require('../lukso-icon/index.cjs');
|
|
10
10
|
require('../lukso-sanitize/index.cjs');
|
|
11
|
-
require('../../
|
|
11
|
+
require('../../directive-8278ab14.cjs');
|
|
12
|
+
require('../../style-map-3b9af808.cjs');
|
|
12
13
|
|
|
13
14
|
const style = ":host {\n display: flex;\n height: 100%\n}";
|
|
14
15
|
|
|
@@ -77,6 +78,7 @@ exports.LuksoTerms = class LuksoTerms extends shared_tailwindElement_index.Tailw
|
|
|
77
78
|
})}
|
|
78
79
|
>
|
|
79
80
|
<div
|
|
81
|
+
data-testid="scroll-to-bottom"
|
|
80
82
|
class="w-10 h-10 bg-neutral-100 rounded-full shadow-1xl flex items-center justify-center animate-bounce2 cursor-pointer"
|
|
81
83
|
@click=${this.handleBottomScroll}
|
|
82
84
|
>
|
|
@@ -87,11 +89,11 @@ exports.LuksoTerms = class LuksoTerms extends shared_tailwindElement_index.Tailw
|
|
|
87
89
|
}
|
|
88
90
|
};
|
|
89
91
|
__decorateClass([
|
|
90
|
-
|
|
92
|
+
queryAssignedElements.e({ type: String })
|
|
91
93
|
], exports.LuksoTerms.prototype, "text", 2);
|
|
92
94
|
__decorateClass([
|
|
93
95
|
state.t()
|
|
94
96
|
], exports.LuksoTerms.prototype, "hasScrollButton", 2);
|
|
95
97
|
exports.LuksoTerms = __decorateClass([
|
|
96
|
-
|
|
98
|
+
queryAssignedElements.e$1("lukso-terms")
|
|
97
99
|
], exports.LuksoTerms);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-terms/index.ts"],"names":[],"mappings":"AAMA,OAAO,yBAAyB,CAAA;AAChC,OAAO,6BAA6B,CAAA;;AAEpC,qBACa,UAAW,SAAQ,eAA4B;IAE1D,IAAI,SAAK;IAGT,OAAO,CAAC,eAAe,CAAO;IAE9B,OAAO,CAAC,aAAa,CAE8B;IAEnD,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,YAAY;IAcpB,OAAO,CAAC,kBAAkB;IAW1B,MAAM;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-terms/index.ts"],"names":[],"mappings":"AAMA,OAAO,yBAAyB,CAAA;AAChC,OAAO,6BAA6B,CAAA;;AAEpC,qBACa,UAAW,SAAQ,eAA4B;IAE1D,IAAI,SAAK;IAGT,OAAO,CAAC,eAAe,CAAO;IAE9B,OAAO,CAAC,aAAa,CAE8B;IAEnD,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,YAAY;IAcpB,OAAO,CAAC,kBAAkB;IAW1B,MAAM;CA4BP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAA;KAC1B;CACF"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x } from '../../index-
|
|
2
|
-
import { e, a as e$1 } from '../../
|
|
3
|
-
import { t } from '../../state-
|
|
4
|
-
import { c as customClassMap } from '../../index-
|
|
1
|
+
import { T as TailwindStyledElement, x } from '../../index-ed87f41b.js';
|
|
2
|
+
import { e, a as e$1 } from '../../query-assigned-elements-e36df787.js';
|
|
3
|
+
import { t } from '../../state-02a92ffa.js';
|
|
4
|
+
import { c as customClassMap } from '../../index-5e194caf.js';
|
|
5
5
|
import '../lukso-icon/index.js';
|
|
6
6
|
import '../lukso-sanitize/index.js';
|
|
7
|
-
import '../../
|
|
7
|
+
import '../../directive-2bb7789e.js';
|
|
8
|
+
import '../../style-map-5daca6c4.js';
|
|
8
9
|
|
|
9
10
|
const style = ":host {\n display: flex;\n height: 100%\n}";
|
|
10
11
|
|
|
@@ -73,6 +74,7 @@ let LuksoTerms = class extends TailwindStyledElement(style) {
|
|
|
73
74
|
})}
|
|
74
75
|
>
|
|
75
76
|
<div
|
|
77
|
+
data-testid="scroll-to-bottom"
|
|
76
78
|
class="w-10 h-10 bg-neutral-100 rounded-full shadow-1xl flex items-center justify-center animate-bounce2 cursor-pointer"
|
|
77
79
|
@click=${this.handleBottomScroll}
|
|
78
80
|
>
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const
|
|
7
|
-
const
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-930f6cf2.cjs');
|
|
6
|
+
const queryAssignedElements = require('../../query-assigned-elements-5200f974.cjs');
|
|
7
|
+
const directive = require('../../directive-8278ab14.cjs');
|
|
8
|
+
const directiveHelpers = require('../../directive-helpers-01f1c3b1.cjs');
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* @license
|
|
@@ -14,13 +15,13 @@ const directiveHelpers = require('../../directive-helpers-e70702eb.cjs');
|
|
|
14
15
|
|
|
15
16
|
const i=new WeakMap;class t{constructor(t,s){this.startPaused=!1,this.disabled=!1,this.clients=new Set,this.pendingComplete=!1,this.host=t,this.defaultOptions=s.defaultOptions||{},this.startPaused=!!s.startPaused,this.disabled=!!s.disabled,this.onComplete=s.onComplete,i.set(this.host,this);}async add(i){var t,s;this.clients.add(i),this.startPaused&&(null===(t=i.webAnimation)||void 0===t||t.pause()),this.pendingComplete=!0,await i.finished,this.pendingComplete&&!this.isAnimating&&(this.pendingComplete=!1,null===(s=this.onComplete)||void 0===s||s.call(this));}remove(i){this.clients.delete(i);}pause(){this.clients.forEach((i=>{var t;return null===(t=i.webAnimation)||void 0===t?void 0:t.pause()}));}play(){this.clients.forEach((i=>{var t;return null===(t=i.webAnimation)||void 0===t?void 0:t.play()}));}cancel(){this.clients.forEach((i=>{var t;return null===(t=i.webAnimation)||void 0===t?void 0:t.cancel()})),this.clients.clear();}finish(){this.clients.forEach((i=>{var t;return null===(t=i.webAnimation)||void 0===t?void 0:t.finish()})),this.clients.clear();}togglePlay(){this.isPlaying?this.pause():this.play();}get isAnimating(){return this.clients.size>0}get isPlaying(){return Array.from(this.clients).some((i=>{var t;return "running"===(null===(t=i.webAnimation)||void 0===t?void 0:t.playState)}))}async finished(){await Promise.all(Array.from(this.clients).map((i=>i.finished)));}}
|
|
16
17
|
|
|
17
|
-
let h=0;const r=new Map,n=new WeakSet,a=()=>new Promise((t=>requestAnimationFrame(t))),g=(t,i)=>{const s=t-i;return 0===s?void 0:s},w=(t,i)=>{const s=t/i;return 1===s?void 0:s},N={left:(t,i)=>{const s=g(t,i);return {value:s,transform:null==s||isNaN(s)?void 0:`translateX(${s}px)`}},top:(t,i)=>{const s=g(t,i);return {value:s,transform:null==s||isNaN(s)?void 0:`translateY(${s}px)`}},width:(t,i)=>{let s;0===i&&(i=1,s={width:"1px"});const e=w(t,i);return {value:e,overrideFrom:s,transform:null==e||isNaN(e)?void 0:`scaleX(${e})`}},height:(t,i)=>{let s;0===i&&(i=1,s={height:"1px"});const e=w(t,i);return {value:e,overrideFrom:s,transform:null==e||isNaN(e)?void 0:`scaleY(${e})`}}},A={duration:333,easing:"ease-in-out"},b=["left","top","width","height","opacity","color","background"],j=new WeakMap;class x extends c{constructor(t){if(super(t),this.t=null,this.i=null,this.o=!0,this.shouldLog=!1,t.type===directive.t.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished();}createFinished(){var t;null===(t=this.resolveFinished)||void 0===t||t.call(this),this.finished=new Promise((t=>{this.h=t;}));}async resolveFinished(){var t;null===(t=this.h)||void 0===t||t.call(this),this.h=void 0;}render(i){return shared_tailwindElement_index.A$1}getController(){return i.get(this.l)}isDisabled(){var t;return this.options.disabled||(null===(t=this.getController())||void 0===t?void 0:t.disabled)}update(t,[i]){var s;const e=void 0===this.l;return e&&(this.l=null===(s=t.options)||void 0===s?void 0:s.host,this.l.addController(this),this.element=t.element,j.set(this.element,this)),this.optionsOrCallback=i,(e||"function"!=typeof i)&&this.u(i),this.render(i)}u(t){var i,s;t=null!=t?t:{};const e=this.getController();void 0!==e&&((t={...e.defaultOptions,...t}).keyframeOptions={...e.defaultOptions.keyframeOptions,...t.keyframeOptions}),null!==(i=(s=t).properties)&&void 0!==i||(s.properties=b),this.options=t;}v(){const t={},i=this.element.getBoundingClientRect(),s=getComputedStyle(this.element);return this.options.properties.forEach((e=>{var o;const h=null!==(o=i[e])&&void 0!==o?o:N[e]?void 0:s[e],r=Number(h);t[e]=isNaN(r)?h+"":r;})),t}p(){let t,i=!0;return this.options.guard&&(t=this.options.guard(),i=((t,i)=>{if(Array.isArray(t)){if(Array.isArray(i)&&i.length===t.length&&t.every(((t,s)=>t===i[s])))return !1}else if(i===t)return !1;return !0})(t,this.m)),this.o=this.l.hasUpdated&&!this.isDisabled()&&!this.isAnimating()&&i&&this.element.isConnected,this.o&&(this.m=Array.isArray(t)?Array.from(t):t),this.o}hostUpdate(){var t;"function"==typeof this.optionsOrCallback&&this.u(this.optionsOrCallback()),this.p()&&(this.g=this.v(),this.t=null!==(t=this.t)&&void 0!==t?t:this.element.parentNode,this.i=this.element.nextSibling);}async hostUpdated(){if(!this.o||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await a;const i=this._(),s=this.A(this.options.keyframeOptions,i),e=this.v();if(void 0!==this.g){const{from:s,to:o}=this.O(this.g,e,i);this.log("measured",[this.g,e,s,o]),t=this.calculateKeyframes(s,o);}else {const s=r.get(this.options.inId);if(s){r.delete(this.options.inId);const{from:o,to:n}=this.O(s,e,i);t=this.calculateKeyframes(o,n),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,h++,t.forEach((t=>t.zIndex=h));}else this.options.in&&(t=[...this.options.in,{}]);}this.animate(t,s);}resetStyles(){var t;void 0!==this.j&&(this.element.setAttribute("style",null!==(t=this.j)&&void 0!==t?t:""),this.j=void 0);}commitStyles(){var t,i;this.j=this.element.getAttribute("style"),null===(t=this.webAnimation)||void 0===t||t.commitStyles(),null===(i=this.webAnimation)||void 0===i||i.cancel();}reconnected(){}async disconnected(){var t;if(!this.o)return;if(void 0!==this.options.id&&r.set(this.options.id,this.g),void 0===this.options.out)return;if(this.prepare(),await a(),null===(t=this.t)||void 0===t?void 0:t.isConnected){const t=this.i&&this.i.parentNode===this.t?this.i:null;if(this.t.insertBefore(this.element,t),this.options.stabilizeOut){const t=this.v();this.log("stabilizing out");const i=this.g.left-t.left,s=this.g.top-t.top;!("static"===getComputedStyle(this.element).position)||0===i&&0===s||(this.element.style.position="relative"),0!==i&&(this.element.style.left=i+"px"),0!==s&&(this.element.style.top=s+"px");}}const i=this.A(this.options.keyframeOptions);await this.animate(this.options.out,i),this.element.remove();}prepare(){this.createFinished();}start(){var t,i;null===(i=(t=this.options).onStart)||void 0===i||i.call(t,this);}didFinish(t){var i,s;t&&(null===(s=(i=this.options).onComplete)||void 0===s||s.call(i,this)),this.g=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished();}_(){const t=[];for(let i=this.element.parentNode;i;i=null==i?void 0:i.parentNode){const s=j.get(i);s&&!s.isDisabled()&&s&&t.push(s);}return t}get isHostRendered(){const t=n.has(this.l);return t||this.l.updateComplete.then((()=>{n.add(this.l);})),t}A(t,i=this._()){const s={...A};return i.forEach((t=>Object.assign(s,t.options.keyframeOptions))),Object.assign(s,t),s}O(t,i,s){t={...t},i={...i};const e=s.map((t=>t.animatingProperties)).filter((t=>void 0!==t));let o=1,h=1;return void 0!==e&&(e.forEach((t=>{t.width&&(o/=t.width),t.height&&(h/=t.height);})),void 0!==t.left&&void 0!==i.left&&(t.left=o*t.left,i.left=o*i.left),void 0!==t.top&&void 0!==i.top&&(t.top=h*t.top,i.top=h*i.top)),{from:t,to:i}}calculateKeyframes(t,i,s=!1){var e;const o={},h={};let r=!1;const n={};for(const s in i){const a=t[s],l=i[s];if(s in N){const t=N[s];if(void 0===a||void 0===l)continue;const i=t(a,l);void 0!==i.transform&&(n[s]=i.value,r=!0,o.transform=`${null!==(e=o.transform)&&void 0!==e?e:""} ${i.transform}`,void 0!==i.overrideFrom&&Object.assign(o,i.overrideFrom));}else a!==l&&void 0!==a&&void 0!==l&&(r=!0,o[s]=a,h[s]=l);}return o.transformOrigin=h.transformOrigin=s?"center center":"top left",this.animatingProperties=n,r?[o,h]:void 0}async animate(t,i=this.options.keyframeOptions){this.start(),this.frames=t;let s=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),void 0!==t)){this.log("animate",[t,i]),s=!0,this.webAnimation=this.element.animate(t,i);const e=this.getController();null==e||e.add(this);try{await this.webAnimation.finished;}catch(t){}null==e||e.remove(this);}return this.didFinish(s),s}isAnimating(){var t,i;return "running"===(null===(t=this.webAnimation)||void 0===t?void 0:t.playState)||(null===(i=this.webAnimation)||void 0===i?void 0:i.pending)}log(t,i){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,i);}}const F=directive.e
|
|
18
|
+
let h=0;const r=new Map,n=new WeakSet,a=()=>new Promise((t=>requestAnimationFrame(t))),g=(t,i)=>{const s=t-i;return 0===s?void 0:s},w=(t,i)=>{const s=t/i;return 1===s?void 0:s},N={left:(t,i)=>{const s=g(t,i);return {value:s,transform:null==s||isNaN(s)?void 0:`translateX(${s}px)`}},top:(t,i)=>{const s=g(t,i);return {value:s,transform:null==s||isNaN(s)?void 0:`translateY(${s}px)`}},width:(t,i)=>{let s;0===i&&(i=1,s={width:"1px"});const e=w(t,i);return {value:e,overrideFrom:s,transform:null==e||isNaN(e)?void 0:`scaleX(${e})`}},height:(t,i)=>{let s;0===i&&(i=1,s={height:"1px"});const e=w(t,i);return {value:e,overrideFrom:s,transform:null==e||isNaN(e)?void 0:`scaleY(${e})`}}},A={duration:333,easing:"ease-in-out"},b=["left","top","width","height","opacity","color","background"],j=new WeakMap;class x extends c{constructor(t){if(super(t),this.t=null,this.i=null,this.o=!0,this.shouldLog=!1,t.type===directive.t.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished();}createFinished(){var t;null===(t=this.resolveFinished)||void 0===t||t.call(this),this.finished=new Promise((t=>{this.h=t;}));}async resolveFinished(){var t;null===(t=this.h)||void 0===t||t.call(this),this.h=void 0;}render(i){return shared_tailwindElement_index.A$1}getController(){return i.get(this.l)}isDisabled(){var t;return this.options.disabled||(null===(t=this.getController())||void 0===t?void 0:t.disabled)}update(t,[i]){var s;const e=void 0===this.l;return e&&(this.l=null===(s=t.options)||void 0===s?void 0:s.host,this.l.addController(this),this.element=t.element,j.set(this.element,this)),this.optionsOrCallback=i,(e||"function"!=typeof i)&&this.u(i),this.render(i)}u(t){var i,s;t=null!=t?t:{};const e=this.getController();void 0!==e&&((t={...e.defaultOptions,...t}).keyframeOptions={...e.defaultOptions.keyframeOptions,...t.keyframeOptions}),null!==(i=(s=t).properties)&&void 0!==i||(s.properties=b),this.options=t;}v(){const t={},i=this.element.getBoundingClientRect(),s=getComputedStyle(this.element);return this.options.properties.forEach((e=>{var o;const h=null!==(o=i[e])&&void 0!==o?o:N[e]?void 0:s[e],r=Number(h);t[e]=isNaN(r)?h+"":r;})),t}p(){let t,i=!0;return this.options.guard&&(t=this.options.guard(),i=((t,i)=>{if(Array.isArray(t)){if(Array.isArray(i)&&i.length===t.length&&t.every(((t,s)=>t===i[s])))return !1}else if(i===t)return !1;return !0})(t,this.m)),this.o=this.l.hasUpdated&&!this.isDisabled()&&!this.isAnimating()&&i&&this.element.isConnected,this.o&&(this.m=Array.isArray(t)?Array.from(t):t),this.o}hostUpdate(){var t;"function"==typeof this.optionsOrCallback&&this.u(this.optionsOrCallback()),this.p()&&(this.g=this.v(),this.t=null!==(t=this.t)&&void 0!==t?t:this.element.parentNode,this.i=this.element.nextSibling);}async hostUpdated(){if(!this.o||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await a;const i=this._(),s=this.A(this.options.keyframeOptions,i),e=this.v();if(void 0!==this.g){const{from:s,to:o}=this.O(this.g,e,i);this.log("measured",[this.g,e,s,o]),t=this.calculateKeyframes(s,o);}else {const s=r.get(this.options.inId);if(s){r.delete(this.options.inId);const{from:o,to:n}=this.O(s,e,i);t=this.calculateKeyframes(o,n),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,h++,t.forEach((t=>t.zIndex=h));}else this.options.in&&(t=[...this.options.in,{}]);}this.animate(t,s);}resetStyles(){var t;void 0!==this.j&&(this.element.setAttribute("style",null!==(t=this.j)&&void 0!==t?t:""),this.j=void 0);}commitStyles(){var t,i;this.j=this.element.getAttribute("style"),null===(t=this.webAnimation)||void 0===t||t.commitStyles(),null===(i=this.webAnimation)||void 0===i||i.cancel();}reconnected(){}async disconnected(){var t;if(!this.o)return;if(void 0!==this.options.id&&r.set(this.options.id,this.g),void 0===this.options.out)return;if(this.prepare(),await a(),null===(t=this.t)||void 0===t?void 0:t.isConnected){const t=this.i&&this.i.parentNode===this.t?this.i:null;if(this.t.insertBefore(this.element,t),this.options.stabilizeOut){const t=this.v();this.log("stabilizing out");const i=this.g.left-t.left,s=this.g.top-t.top;!("static"===getComputedStyle(this.element).position)||0===i&&0===s||(this.element.style.position="relative"),0!==i&&(this.element.style.left=i+"px"),0!==s&&(this.element.style.top=s+"px");}}const i=this.A(this.options.keyframeOptions);await this.animate(this.options.out,i),this.element.remove();}prepare(){this.createFinished();}start(){var t,i;null===(i=(t=this.options).onStart)||void 0===i||i.call(t,this);}didFinish(t){var i,s;t&&(null===(s=(i=this.options).onComplete)||void 0===s||s.call(i,this)),this.g=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished();}_(){const t=[];for(let i=this.element.parentNode;i;i=null==i?void 0:i.parentNode){const s=j.get(i);s&&!s.isDisabled()&&s&&t.push(s);}return t}get isHostRendered(){const t=n.has(this.l);return t||this.l.updateComplete.then((()=>{n.add(this.l);})),t}A(t,i=this._()){const s={...A};return i.forEach((t=>Object.assign(s,t.options.keyframeOptions))),Object.assign(s,t),s}O(t,i,s){t={...t},i={...i};const e=s.map((t=>t.animatingProperties)).filter((t=>void 0!==t));let o=1,h=1;return void 0!==e&&(e.forEach((t=>{t.width&&(o/=t.width),t.height&&(h/=t.height);})),void 0!==t.left&&void 0!==i.left&&(t.left=o*t.left,i.left=o*i.left),void 0!==t.top&&void 0!==i.top&&(t.top=h*t.top,i.top=h*i.top)),{from:t,to:i}}calculateKeyframes(t,i,s=!1){var e;const o={},h={};let r=!1;const n={};for(const s in i){const a=t[s],l=i[s];if(s in N){const t=N[s];if(void 0===a||void 0===l)continue;const i=t(a,l);void 0!==i.transform&&(n[s]=i.value,r=!0,o.transform=`${null!==(e=o.transform)&&void 0!==e?e:""} ${i.transform}`,void 0!==i.overrideFrom&&Object.assign(o,i.overrideFrom));}else a!==l&&void 0!==a&&void 0!==l&&(r=!0,o[s]=a,h[s]=l);}return o.transformOrigin=h.transformOrigin=s?"center center":"top left",this.animatingProperties=n,r?[o,h]:void 0}async animate(t,i=this.options.keyframeOptions){this.start(),this.frames=t;let s=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),void 0!==t)){this.log("animate",[t,i]),s=!0,this.webAnimation=this.element.animate(t,i);const e=this.getController();null==e||e.add(this);try{await this.webAnimation.finished;}catch(t){}null==e||e.remove(this);}return this.didFinish(s),s}isAnimating(){var t,i;return "running"===(null===(t=this.webAnimation)||void 0===t?void 0:t.playState)||(null===(i=this.webAnimation)||void 0===i?void 0:i.pending)}log(t,i){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,i);}}const F=directive.e(x);
|
|
18
19
|
|
|
19
20
|
/**
|
|
20
21
|
* @license
|
|
21
22
|
* Copyright 2018 Google LLC
|
|
22
23
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/const o=directive.e
|
|
24
|
+
*/const o=directive.e(class extends directive.i{constructor(t){var i;if(super(t),t.type!==directive.t.ATTRIBUTE||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(i,[s]){var r,o;if(void 0===this.it){this.it=new Set,void 0!==i.strings&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in s)s[t]&&!(null===(r=this.nt)||void 0===r?void 0:r.has(t))&&this.it.add(t);return this.render(s)}const e=i.element.classList;this.it.forEach((t=>{t in s||(e.remove(t),this.it.delete(t));}));for(const t in s){const i=!!s[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)));}return shared_tailwindElement_index.T}});
|
|
24
25
|
|
|
25
26
|
const style = "p {\n --tw-bg-opacity: 1;\n background-color: rgb(254 202 202 / var(--tw-bg-opacity))\n}\np b {\n --tw-text-opacity: 1;\n color: rgb(249 115 22 / var(--tw-text-opacity))\n}";
|
|
26
27
|
|
|
@@ -88,14 +89,14 @@ exports.LuksoTest = class LuksoTest extends shared_tailwindElement_index.Tailwin
|
|
|
88
89
|
}
|
|
89
90
|
};
|
|
90
91
|
__decorateClass([
|
|
91
|
-
|
|
92
|
+
queryAssignedElements.e()
|
|
92
93
|
], exports.LuksoTest.prototype, "name", 2);
|
|
93
94
|
__decorateClass([
|
|
94
|
-
|
|
95
|
+
queryAssignedElements.e()
|
|
95
96
|
], exports.LuksoTest.prototype, "clicked", 2);
|
|
96
97
|
__decorateClass([
|
|
97
|
-
|
|
98
|
+
queryAssignedElements.e({ type: Boolean })
|
|
98
99
|
], exports.LuksoTest.prototype, "disabled", 2);
|
|
99
100
|
exports.LuksoTest = __decorateClass([
|
|
100
|
-
|
|
101
|
+
queryAssignedElements.e$1("lukso-test")
|
|
101
102
|
], exports.LuksoTest);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { c as A$1, b as T, T as TailwindStyledElement, x as x$1 } from '../../index-
|
|
2
|
-
import {
|
|
3
|
-
import { e } from '../../directive-
|
|
1
|
+
import { c as A$1, b as T, T as TailwindStyledElement, x as x$1 } from '../../index-ed87f41b.js';
|
|
2
|
+
import { e as e$2, a as e$3 } from '../../query-assigned-elements-e36df787.js';
|
|
3
|
+
import { i as i$1, t as t$1, e as e$1 } from '../../directive-2bb7789e.js';
|
|
4
|
+
import { e } from '../../directive-helpers-8f79cbe5.js';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* @license
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
8
|
-
const index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-930f6cf2.cjs');
|
|
6
|
+
const queryAssignedElements = require('../../query-assigned-elements-5200f974.cjs');
|
|
7
|
+
const styleMap = require('../../style-map-3b9af808.cjs');
|
|
8
|
+
const index = require('../../index-e9668573.cjs');
|
|
9
|
+
require('../../directive-8278ab14.cjs');
|
|
9
10
|
|
|
10
11
|
const sliceAddress = (address, startSliceBy = 6, endSliceBy) => {
|
|
11
12
|
if (!address) {
|
|
@@ -122,35 +123,35 @@ exports.LuksoUsername = class LuksoUsername extends shared_tailwindElement_index
|
|
|
122
123
|
}
|
|
123
124
|
};
|
|
124
125
|
__decorateClass([
|
|
125
|
-
|
|
126
|
+
queryAssignedElements.e({ type: String })
|
|
126
127
|
], exports.LuksoUsername.prototype, "name", 2);
|
|
127
128
|
__decorateClass([
|
|
128
|
-
|
|
129
|
+
queryAssignedElements.e({ type: String })
|
|
129
130
|
], exports.LuksoUsername.prototype, "address", 2);
|
|
130
131
|
__decorateClass([
|
|
131
|
-
|
|
132
|
+
queryAssignedElements.e({ type: Number, attribute: "max-width" })
|
|
132
133
|
], exports.LuksoUsername.prototype, "maxWidth", 2);
|
|
133
134
|
__decorateClass([
|
|
134
|
-
|
|
135
|
+
queryAssignedElements.e({ type: "string" })
|
|
135
136
|
], exports.LuksoUsername.prototype, "size", 2);
|
|
136
137
|
__decorateClass([
|
|
137
|
-
|
|
138
|
+
queryAssignedElements.e({ type: Number, attribute: "slice-by" })
|
|
138
139
|
], exports.LuksoUsername.prototype, "sliceBy", 2);
|
|
139
140
|
__decorateClass([
|
|
140
|
-
|
|
141
|
+
queryAssignedElements.e({ type: String, attribute: "address-color" })
|
|
141
142
|
], exports.LuksoUsername.prototype, "addressColor", 2);
|
|
142
143
|
__decorateClass([
|
|
143
|
-
|
|
144
|
+
queryAssignedElements.e({ type: String, attribute: "name-color" })
|
|
144
145
|
], exports.LuksoUsername.prototype, "nameColor", 2);
|
|
145
146
|
__decorateClass([
|
|
146
|
-
|
|
147
|
+
queryAssignedElements.e({ type: String, attribute: "custom-class" })
|
|
147
148
|
], exports.LuksoUsername.prototype, "customClass", 2);
|
|
148
149
|
__decorateClass([
|
|
149
|
-
|
|
150
|
+
queryAssignedElements.e({ type: Boolean, attribute: "hide-prefix" })
|
|
150
151
|
], exports.LuksoUsername.prototype, "hidePrefix", 2);
|
|
151
152
|
__decorateClass([
|
|
152
|
-
|
|
153
|
+
queryAssignedElements.e({ type: String })
|
|
153
154
|
], exports.LuksoUsername.prototype, "prefix", 2);
|
|
154
155
|
exports.LuksoUsername = __decorateClass([
|
|
155
|
-
|
|
156
|
+
queryAssignedElements.e$1("lukso-username")
|
|
156
157
|
], exports.LuksoUsername);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x, c as A } from '../../index-
|
|
2
|
-
import { e, a as e$1 } from '../../
|
|
3
|
-
import { o } from '../../style-map-
|
|
4
|
-
import { c as customClassMap } from '../../index-
|
|
1
|
+
import { T as TailwindStyledElement, x, c as A } from '../../index-ed87f41b.js';
|
|
2
|
+
import { e, a as e$1 } from '../../query-assigned-elements-e36df787.js';
|
|
3
|
+
import { o } from '../../style-map-5daca6c4.js';
|
|
4
|
+
import { c as customClassMap } from '../../index-5e194caf.js';
|
|
5
|
+
import '../../directive-2bb7789e.js';
|
|
5
6
|
|
|
6
7
|
const sliceAddress = (address, startSliceBy = 6, endSliceBy) => {
|
|
7
8
|
if (!address) {
|
|
@@ -2,17 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-930f6cf2.cjs');
|
|
6
|
+
const queryAssignedElements = require('../../query-assigned-elements-5200f974.cjs');
|
|
7
|
+
const directive = require('../../directive-8278ab14.cjs');
|
|
8
|
+
const directiveHelpers = require('../../directive-helpers-01f1c3b1.cjs');
|
|
9
|
+
const index = require('../../index-e9668573.cjs');
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* @license
|
|
12
13
|
* Copyright 2017 Google LLC
|
|
13
14
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
14
15
|
*/
|
|
15
|
-
const u=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c=directive.e
|
|
16
|
+
const u=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c=directive.e(class extends directive.i{constructor(e){if(super(e),e.type!==directive.t.CHILD)throw Error("repeat() can only be used in text expressions")}ct(e,s,t){let r;void 0===t?t=s:void 0!==s&&(r=s);const l=[],o=[];let i=0;for(const s of e)l[i]=r?r(s,i):i,o[i]=t(s,i),i++;return {values:o,keys:l}}render(e,s,t){return this.ct(e,s,t).values}update(s,[t,r,c]){var d;const a=directiveHelpers.m(s),{values:p,keys:v}=this.ct(t,r,c);if(!Array.isArray(a))return this.ut=v,p;const h=null!==(d=this.ut)&&void 0!==d?d:this.ut=[],m=[];let y,x,j=0,k=a.length-1,w=0,A=p.length-1;for(;j<=k&&w<=A;)if(null===a[j])j++;else if(null===a[k])k--;else if(h[j]===v[w])m[w]=directiveHelpers.f(a[j],p[w]),j++,w++;else if(h[k]===v[A])m[A]=directiveHelpers.f(a[k],p[A]),k--,A--;else if(h[j]===v[A])m[A]=directiveHelpers.f(a[j],p[A]),directiveHelpers.c(s,m[A+1],a[j]),j++,A--;else if(h[k]===v[w])m[w]=directiveHelpers.f(a[k],p[w]),directiveHelpers.c(s,a[j],a[k]),k--,w++;else if(void 0===y&&(y=u(v,w,A),x=u(h,j,k)),y.has(h[j]))if(y.has(h[k])){const e=x.get(v[w]),t=void 0!==e?a[e]:null;if(null===t){const e=directiveHelpers.c(s,a[j]);directiveHelpers.f(e,p[w]),m[w]=e;}else m[w]=directiveHelpers.f(t,p[w]),directiveHelpers.c(s,a[j],t),a[e]=null;w++;}else directiveHelpers.p(a[k]),k--;else directiveHelpers.p(a[j]),j++;for(;w<=A;){const e=directiveHelpers.c(s,m[A+1]);directiveHelpers.f(e,p[w]),m[w++]=e;}for(;j<=k;){const e=a[j++];null!==e&&directiveHelpers.p(e);}return this.ut=v,directiveHelpers.a(s,m),shared_tailwindElement_index.T}});
|
|
16
17
|
|
|
17
18
|
const style = ".lukso-wizard-circle::after {\n width: 0;\n}\n.lukso-wizard-circle.completed::after {\n width: calc(100% - 16px);\n}\n.lukso-wizard-circle.current::after {\n width: 0;\n}\n.lukso-wizard-circle.current.animated-step::after {\n width: calc(100% - 16px);\n}";
|
|
18
19
|
|
|
@@ -98,14 +99,14 @@ exports.LuksoWizard = class LuksoWizard extends shared_tailwindElement_index.Tai
|
|
|
98
99
|
}
|
|
99
100
|
};
|
|
100
101
|
__decorateClass([
|
|
101
|
-
|
|
102
|
+
queryAssignedElements.e({ type: String })
|
|
102
103
|
], exports.LuksoWizard.prototype, "steps", 2);
|
|
103
104
|
__decorateClass([
|
|
104
|
-
|
|
105
|
+
queryAssignedElements.e({ type: Number, attribute: "active-step" })
|
|
105
106
|
], exports.LuksoWizard.prototype, "activeStep", 2);
|
|
106
107
|
__decorateClass([
|
|
107
|
-
|
|
108
|
+
queryAssignedElements.e({ type: Boolean, attribute: "is-full-width" })
|
|
108
109
|
], exports.LuksoWizard.prototype, "isFullWidth", 2);
|
|
109
110
|
exports.LuksoWizard = __decorateClass([
|
|
110
|
-
|
|
111
|
+
queryAssignedElements.e$1("lukso-wizard")
|
|
111
112
|
], exports.LuksoWizard);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { b as T, T as TailwindStyledElement, x } from '../../index-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { c as
|
|
1
|
+
import { b as T, T as TailwindStyledElement, x } from '../../index-ed87f41b.js';
|
|
2
|
+
import { e as e$1, a as e$2 } from '../../query-assigned-elements-e36df787.js';
|
|
3
|
+
import { e, i, t } from '../../directive-2bb7789e.js';
|
|
4
|
+
import { m, f, c as c$1, p, a } from '../../directive-helpers-8f79cbe5.js';
|
|
5
|
+
import { c as customClassMap } from '../../index-5e194caf.js';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* @license
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2017 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/
|
|
6
|
+
const t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
7
|
+
|
|
8
|
+
export { e, i, t };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license
|
|
5
|
+
* Copyright 2017 Google LLC
|
|
6
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
7
|
+
*/
|
|
8
|
+
const t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
9
|
+
|
|
10
|
+
exports.e = e;
|
|
11
|
+
exports.i = i;
|
|
12
|
+
exports.t = t;
|