@lukso/web-components 1.68.0 → 1.69.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 +3 -3
- package/dist/components/index.js +3 -3
- package/dist/components/lukso-button/index.cjs +1 -1
- package/dist/components/lukso-button/index.js +1 -1
- package/dist/components/lukso-card/index.cjs +3 -4
- package/dist/components/lukso-card/index.js +3 -4
- package/dist/components/lukso-checkbox/index.cjs +1 -1
- package/dist/components/lukso-checkbox/index.js +1 -1
- package/dist/components/lukso-footer/index.cjs +1 -1
- package/dist/components/lukso-footer/index.js +1 -1
- package/dist/components/lukso-icon/index.cjs +2 -2
- package/dist/components/lukso-icon/index.js +2 -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 +3 -3
- package/dist/components/lukso-navbar/index.js +3 -3
- package/dist/components/lukso-profile/index.cjs +99 -65
- package/dist/components/lukso-profile/index.d.ts +2 -11
- package/dist/components/lukso-profile/index.d.ts.map +1 -1
- package/dist/components/lukso-profile/index.js +99 -65
- package/dist/components/lukso-profile/lukso-profile.stories.d.ts +3 -1
- package/dist/components/lukso-profile/lukso-profile.stories.d.ts.map +1 -1
- package/dist/components/lukso-progress/index.cjs +2 -2
- package/dist/components/lukso-progress/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-search/index.cjs +4 -3
- package/dist/components/lukso-search/index.js +4 -3
- package/dist/components/lukso-select/index.cjs +3 -3
- package/dist/components/lukso-select/index.js +3 -3
- package/dist/components/lukso-share/index.cjs +1 -1
- package/dist/components/lukso-share/index.js +1 -1
- package/dist/components/lukso-switch/index.cjs +2 -2
- package/dist/components/lukso-switch/index.js +2 -2
- 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 +2 -2
- package/dist/components/lukso-terms/index.js +2 -2
- package/dist/components/lukso-test/index.cjs +1 -1
- package/dist/components/lukso-test/index.js +1 -1
- package/dist/components/lukso-tooltip/index.cjs +6 -2
- package/dist/components/lukso-tooltip/index.d.ts +1 -0
- package/dist/components/lukso-tooltip/index.d.ts.map +1 -1
- package/dist/components/lukso-tooltip/index.js +6 -2
- 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-0e131d65.cjs → index-5bfb2237.cjs} +1 -1
- package/dist/index-806013c2.js +39 -0
- package/dist/{index-f171e7da.js → index-cb570192.js} +1 -1
- package/dist/index-f0846b77.cjs +46 -0
- package/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/dist/shared/tailwind-element/index.cjs +1 -1
- package/dist/shared/tailwind-element/index.js +1 -1
- package/dist/{style-map-7d4ddea1.cjs → style-map-36078d57.cjs} +1 -1
- package/dist/{style-map-21f59b89.js → style-map-e1ea4b4f.js} +1 -1
- package/package.json +1 -1
- package/tools/assets/images/token-default.svg +27 -0
- package/dist/index-5cc4a839.cjs +0 -46
- package/dist/index-814bcac2.js +0 -39
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-806013c2.js';
|
|
2
2
|
import { n, e } from '../../query-assigned-elements-5d94572f.js';
|
|
3
|
-
import { o } from '../../style-map-
|
|
4
|
-
import {
|
|
3
|
+
import { o } from '../../style-map-e1ea4b4f.js';
|
|
4
|
+
import { i as ie } from '../../index-faa8c4ae.js';
|
|
5
5
|
import '../../directive-2bb7789e.js';
|
|
6
6
|
|
|
7
7
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -464,84 +464,115 @@ let LuksoProfile = class extends TailwindElement {
|
|
|
464
464
|
this.hasIdenticon = false;
|
|
465
465
|
this.size = "large";
|
|
466
466
|
this.isSquare = false;
|
|
467
|
-
this.
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
467
|
+
this.placeholder = "/assets/images/profile-default.svg";
|
|
468
|
+
this.profileStyles = ie({
|
|
469
|
+
slots: {
|
|
470
|
+
wrapper: "bg-[50%] bg-no-repeat bg-cover bg-neutral-90 outline outline-2 outline-neutral-100",
|
|
471
|
+
profile: "bg-[50%] bg-no-repeat bg-cover relative",
|
|
472
|
+
identicon: "absolute shadow-shadow-1xl rounded-full outline outline-neutral-100 right-0 bottom-0"
|
|
472
473
|
},
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
474
|
+
variants: {
|
|
475
|
+
isSquare: {
|
|
476
|
+
false: {
|
|
477
|
+
wrapper: "rounded-full",
|
|
478
|
+
profile: "rounded-full"
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
size: {
|
|
482
|
+
"x-small": {
|
|
483
|
+
wrapper: "w-6 h-6",
|
|
484
|
+
profile: "w-6 h-6",
|
|
485
|
+
identicon: "w-3 h-3 outline-1"
|
|
486
|
+
},
|
|
487
|
+
small: {
|
|
488
|
+
wrapper: "w-10 h-10",
|
|
489
|
+
profile: "w-10 h-10",
|
|
490
|
+
identicon: "w-4 h-4 outline-2"
|
|
491
|
+
},
|
|
492
|
+
medium: {
|
|
493
|
+
wrapper: "w-14 h-14",
|
|
494
|
+
profile: "w-14 h-14",
|
|
495
|
+
identicon: "w-5 h-5 outline-2"
|
|
496
|
+
},
|
|
497
|
+
large: {
|
|
498
|
+
wrapper: "w-20 h-20",
|
|
499
|
+
profile: "w-20 h-20",
|
|
500
|
+
identicon: "w-6 h-6 outline-2"
|
|
501
|
+
},
|
|
502
|
+
"x-large": {
|
|
503
|
+
wrapper: "w-24 h-24",
|
|
504
|
+
profile: "w-24 h-24",
|
|
505
|
+
identicon: "w-7 h-7 outline-2"
|
|
506
|
+
}
|
|
507
|
+
}
|
|
477
508
|
},
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
509
|
+
compoundVariants: [
|
|
510
|
+
{
|
|
511
|
+
isSquare: true,
|
|
512
|
+
size: "x-small",
|
|
513
|
+
class: {
|
|
514
|
+
wrapper: "rounded-[2px]",
|
|
515
|
+
profile: "rounded-[2px]"
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
isSquare: true,
|
|
520
|
+
size: "small",
|
|
521
|
+
class: {
|
|
522
|
+
wrapper: "rounded-4",
|
|
523
|
+
profile: "rounded-4"
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
isSquare: true,
|
|
528
|
+
size: "medium",
|
|
529
|
+
class: {
|
|
530
|
+
wrapper: "rounded-8",
|
|
531
|
+
profile: "rounded-8"
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
isSquare: true,
|
|
536
|
+
size: "large",
|
|
537
|
+
class: {
|
|
538
|
+
wrapper: "rounded-[10px]",
|
|
539
|
+
profile: "rounded-[10px]"
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
isSquare: true,
|
|
544
|
+
size: "x-large",
|
|
545
|
+
class: {
|
|
546
|
+
wrapper: "rounded-12",
|
|
547
|
+
profile: "rounded-12"
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
]
|
|
551
|
+
});
|
|
504
552
|
}
|
|
505
553
|
identicon() {
|
|
506
|
-
return this.hasIdenticon && this.profileAddress
|
|
554
|
+
return this.hasIdenticon && this.profileAddress ? makeBlockie(this.profileAddress) : "";
|
|
507
555
|
}
|
|
508
556
|
render() {
|
|
557
|
+
const { wrapper, profile, identicon } = this.profileStyles({
|
|
558
|
+
size: this.size,
|
|
559
|
+
isSquare: this.isSquare
|
|
560
|
+
});
|
|
509
561
|
return x`
|
|
510
562
|
<div
|
|
511
563
|
data-testid="profile"
|
|
512
564
|
style=${o({
|
|
513
|
-
backgroundImage: `url('${this.
|
|
514
|
-
width: `${this.profileImageSize()}px`,
|
|
515
|
-
height: `${this.profileImageSize()}px`,
|
|
516
|
-
borderRadius: `${this.isSquare ? this.squareRoundingSize() + "px" : "50%"}`
|
|
565
|
+
backgroundImage: `url('${this.placeholder}')`
|
|
517
566
|
})}
|
|
518
|
-
class
|
|
519
|
-
outline outline-2 outline-neutral-100"
|
|
567
|
+
class=${wrapper()}
|
|
520
568
|
>
|
|
521
569
|
<div
|
|
522
570
|
style=${o({
|
|
523
|
-
backgroundImage: `url('${this.profileUrl}')
|
|
524
|
-
width: `${this.profileImageSize()}px`,
|
|
525
|
-
height: `${this.profileImageSize()}px`,
|
|
526
|
-
borderRadius: `${this.isSquare ? this.squareRoundingSize() + "px" : "50%"}`
|
|
571
|
+
backgroundImage: `url('${this.profileUrl}')`
|
|
527
572
|
})}
|
|
528
|
-
class
|
|
529
|
-
"
|
|
573
|
+
class=${profile()}
|
|
530
574
|
>
|
|
531
|
-
${this.identicon() ? x`<img
|
|
532
|
-
src=${this.identicon()}
|
|
533
|
-
class="absolute shadow-shadow-1xl rounded-full
|
|
534
|
-
outline outline-neutral-100 right-0 bottom-0 ${customClassMap(
|
|
535
|
-
{
|
|
536
|
-
"outline-2": this.identiconSize() >= 16,
|
|
537
|
-
"outline-1": this.identiconSize() < 16
|
|
538
|
-
}
|
|
539
|
-
)}"
|
|
540
|
-
style=${o({
|
|
541
|
-
width: `${this.identiconSize()}px`,
|
|
542
|
-
height: `${this.identiconSize()}px`
|
|
543
|
-
})}
|
|
544
|
-
/>` : ""}
|
|
575
|
+
${this.identicon() ? x`<img src=${this.identicon()} class=${identicon()} />` : ""}
|
|
545
576
|
</div>
|
|
546
577
|
</div>
|
|
547
578
|
`;
|
|
@@ -562,6 +593,9 @@ __decorateClass([
|
|
|
562
593
|
__decorateClass([
|
|
563
594
|
n({ type: Boolean, attribute: "is-square" })
|
|
564
595
|
], LuksoProfile.prototype, "isSquare", 2);
|
|
596
|
+
__decorateClass([
|
|
597
|
+
n({ type: String })
|
|
598
|
+
], LuksoProfile.prototype, "placeholder", 2);
|
|
565
599
|
LuksoProfile = __decorateClass([
|
|
566
600
|
e("lukso-profile")
|
|
567
601
|
], LuksoProfile);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta } from '@storybook/web-components';
|
|
1
|
+
import type { Meta } from '@storybook/web-components';
|
|
2
2
|
/**
|
|
3
3
|
* Documentation and examples of `lukso-profile` component.
|
|
4
4
|
* Profiles comes in `x-small`, `small`, `medium`, `large` and `x-large` size that is set in `size` attribute.
|
|
@@ -23,4 +23,6 @@ export declare const Unknown: any;
|
|
|
23
23
|
export declare const NoIdenticon: any;
|
|
24
24
|
/** You can also show square profile using `is-square` attribute. */
|
|
25
25
|
export declare const Square: any;
|
|
26
|
+
/** You can also change default placeholder using `placeholder` attribute. */
|
|
27
|
+
export declare const Placeholder: any;
|
|
26
28
|
//# sourceMappingURL=lukso-profile.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lukso-profile.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-profile/lukso-profile.stories.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lukso-profile.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-profile/lukso-profile.stories.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAErD,OAAO,SAAS,CAAA;AAEhB;;;;;GAKG;AACH,QAAA,MAAM,IAAI,EAAE,IAuFX,CAAA;AAED,eAAe,IAAI,CAAA;AAmBnB,yDAAyD;AACzD,eAAO,MAAM,MAAM,KAAoB,CAAA;AAKvC,uDAAuD;AACvD,eAAO,MAAM,KAAK,KAAoB,CAAA;AAKtC,wDAAwD;AACxD,eAAO,MAAM,MAAM,KAAoB,CAAA;AAKvC,uDAAuD;AACvD,eAAO,MAAM,KAAK,KAAoB,CAAA;AAKtC,yDAAyD;AACzD,eAAO,MAAM,MAAM,KAAoB,CAAA;AAKvC,0EAA0E;AAC1E,eAAO,MAAM,OAAO,KAAoB,CAAA;AAKxC,0FAA0F;AAC1F,eAAO,MAAM,WAAW,KAAoB,CAAA;AAK5C,oEAAoE;AACpE,eAAO,MAAM,MAAM,KAAoB,CAAA;AAKvC,6EAA6E;AAC7E,eAAO,MAAM,WAAW,KAAoB,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-f0846b77.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-36078d57.cjs');
|
|
8
8
|
require('../../tailwind-config.cjs');
|
|
9
9
|
const cn = require('../../cn-5a985a94.cjs');
|
|
10
10
|
require('../../directive-8278ab14.cjs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-806013c2.js';
|
|
2
2
|
import { n, e } from '../../query-assigned-elements-5d94572f.js';
|
|
3
|
-
import { o } from '../../style-map-
|
|
3
|
+
import { o } from '../../style-map-e1ea4b4f.js';
|
|
4
4
|
import '../../tailwind-config.js';
|
|
5
5
|
import { c as cn } from '../../cn-e708e7fa.js';
|
|
6
6
|
import '../../directive-2bb7789e.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-f0846b77.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
|
|
7
7
|
const directive = require('../../directive-8278ab14.cjs');
|
|
8
8
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, b as T, a as TailwindElement, x } from '../../index-
|
|
1
|
+
import { A, b as T, a as TailwindElement, x } from '../../index-806013c2.js';
|
|
2
2
|
import { n, e as e$2 } from '../../query-assigned-elements-5d94572f.js';
|
|
3
3
|
import { i, t, e as e$1 } from '../../directive-2bb7789e.js';
|
|
4
4
|
|
|
@@ -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-f0846b77.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
|
|
7
7
|
const state = require('../../state-f73a8b4f.cjs');
|
|
8
8
|
const index = require('../../index-e9668573.cjs');
|
|
@@ -10,8 +10,9 @@ require('../lukso-icon/index.cjs');
|
|
|
10
10
|
require('../lukso-profile/index.cjs');
|
|
11
11
|
require('../lukso-username/index.cjs');
|
|
12
12
|
require('../../directive-8278ab14.cjs');
|
|
13
|
-
require('../../style-map-
|
|
14
|
-
require('../../index-
|
|
13
|
+
require('../../style-map-36078d57.cjs');
|
|
14
|
+
require('../../index-66211c85.cjs');
|
|
15
|
+
require('../../index-5bfb2237.cjs');
|
|
15
16
|
|
|
16
17
|
const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
|
|
17
18
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x, A } from '../../index-
|
|
1
|
+
import { T as TailwindStyledElement, x, A } from '../../index-806013c2.js';
|
|
2
2
|
import { n, e } from '../../query-assigned-elements-5d94572f.js';
|
|
3
3
|
import { t } from '../../state-0a779257.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-5e194caf.js';
|
|
@@ -6,8 +6,9 @@ import '../lukso-icon/index.js';
|
|
|
6
6
|
import '../lukso-profile/index.js';
|
|
7
7
|
import '../lukso-username/index.js';
|
|
8
8
|
import '../../directive-2bb7789e.js';
|
|
9
|
-
import '../../style-map-
|
|
10
|
-
import '../../index-
|
|
9
|
+
import '../../style-map-e1ea4b4f.js';
|
|
10
|
+
import '../../index-faa8c4ae.js';
|
|
11
|
+
import '../../index-cb570192.js';
|
|
11
12
|
|
|
12
13
|
const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
|
|
13
14
|
|
|
@@ -2,17 +2,17 @@
|
|
|
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-f0846b77.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
|
|
7
7
|
const state = require('../../state-f73a8b4f.cjs');
|
|
8
8
|
const index = require('../../index-66211c85.cjs');
|
|
9
9
|
require('../lukso-icon/index.cjs');
|
|
10
10
|
require('../lukso-profile/index.cjs');
|
|
11
11
|
require('../lukso-username/index.cjs');
|
|
12
|
-
require('../../style-map-
|
|
12
|
+
require('../../style-map-36078d57.cjs');
|
|
13
13
|
require('../../directive-8278ab14.cjs');
|
|
14
14
|
require('../../index-e9668573.cjs');
|
|
15
|
-
require('../../index-
|
|
15
|
+
require('../../index-5bfb2237.cjs');
|
|
16
16
|
|
|
17
17
|
const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
|
|
18
18
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x, A } from '../../index-
|
|
1
|
+
import { T as TailwindStyledElement, x, A } from '../../index-806013c2.js';
|
|
2
2
|
import { n, e } from '../../query-assigned-elements-5d94572f.js';
|
|
3
3
|
import { t } from '../../state-0a779257.js';
|
|
4
4
|
import { i as ie } from '../../index-faa8c4ae.js';
|
|
5
5
|
import '../lukso-icon/index.js';
|
|
6
6
|
import '../lukso-profile/index.js';
|
|
7
7
|
import '../lukso-username/index.js';
|
|
8
|
-
import '../../style-map-
|
|
8
|
+
import '../../style-map-e1ea4b4f.js';
|
|
9
9
|
import '../../directive-2bb7789e.js';
|
|
10
10
|
import '../../index-5e194caf.js';
|
|
11
|
-
import '../../index-
|
|
11
|
+
import '../../index-cb570192.js';
|
|
12
12
|
|
|
13
13
|
const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
|
|
14
14
|
|
|
@@ -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-f0846b77.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
|
|
7
7
|
|
|
8
8
|
const style = ":host {\n display: inline-flex\n}";
|
|
@@ -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-f0846b77.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-36078d57.cjs');
|
|
8
8
|
const index = require('../../index-e9668573.cjs');
|
|
9
9
|
require('../../directive-8278ab14.cjs');
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-806013c2.js';
|
|
2
2
|
import { n, e } from '../../query-assigned-elements-5d94572f.js';
|
|
3
|
-
import { o } from '../../style-map-
|
|
3
|
+
import { o } from '../../style-map-e1ea4b4f.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-5e194caf.js';
|
|
5
5
|
import '../../directive-2bb7789e.js';
|
|
6
6
|
|
|
@@ -2,10 +2,10 @@
|
|
|
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-f0846b77.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
|
|
7
7
|
const index = require('../../index-66211c85.cjs');
|
|
8
|
-
const index$1 = require('../../index-
|
|
8
|
+
const index$1 = require('../../index-5bfb2237.cjs');
|
|
9
9
|
require('../../directive-8278ab14.cjs');
|
|
10
10
|
|
|
11
11
|
const style = ":host {\n display: inline-flex\n}";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x } from '../../index-
|
|
1
|
+
import { T as TailwindStyledElement, x } from '../../index-806013c2.js';
|
|
2
2
|
import { n, e } from '../../query-assigned-elements-5d94572f.js';
|
|
3
3
|
import { i as ie } from '../../index-faa8c4ae.js';
|
|
4
|
-
import { c as customStyleMap } from '../../index-
|
|
4
|
+
import { c as customStyleMap } from '../../index-cb570192.js';
|
|
5
5
|
import '../../directive-2bb7789e.js';
|
|
6
6
|
|
|
7
7
|
const style = ":host {\n display: inline-flex\n}";
|
|
@@ -2,14 +2,14 @@
|
|
|
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-f0846b77.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
|
|
7
7
|
const state = require('../../state-f73a8b4f.cjs');
|
|
8
8
|
const index = require('../../index-e9668573.cjs');
|
|
9
9
|
require('../lukso-icon/index.cjs');
|
|
10
10
|
require('../lukso-sanitize/index.cjs');
|
|
11
11
|
require('../../directive-8278ab14.cjs');
|
|
12
|
-
require('../../style-map-
|
|
12
|
+
require('../../style-map-36078d57.cjs');
|
|
13
13
|
|
|
14
14
|
const style = ":host {\n display: flex;\n height: 100%\n}";
|
|
15
15
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x } from '../../index-
|
|
1
|
+
import { T as TailwindStyledElement, x } from '../../index-806013c2.js';
|
|
2
2
|
import { n, e } from '../../query-assigned-elements-5d94572f.js';
|
|
3
3
|
import { t } from '../../state-0a779257.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-5e194caf.js';
|
|
5
5
|
import '../lukso-icon/index.js';
|
|
6
6
|
import '../lukso-sanitize/index.js';
|
|
7
7
|
import '../../directive-2bb7789e.js';
|
|
8
|
-
import '../../style-map-
|
|
8
|
+
import '../../style-map-e1ea4b4f.js';
|
|
9
9
|
|
|
10
10
|
const style = ":host {\n display: flex;\n height: 100%\n}";
|
|
11
11
|
|
|
@@ -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-f0846b77.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
|
|
7
7
|
const directive = require('../../directive-8278ab14.cjs');
|
|
8
8
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as T$1, T as TailwindStyledElement, x as x$1 } from '../../index-
|
|
1
|
+
import { b as T$1, T as TailwindStyledElement, x as x$1 } from '../../index-806013c2.js';
|
|
2
2
|
import { n as n$3, e as e$3 } from '../../query-assigned-elements-5d94572f.js';
|
|
3
3
|
import { e as e$2, i as i$3, t as t$3 } from '../../directive-2bb7789e.js';
|
|
4
4
|
|
|
@@ -2,11 +2,11 @@
|
|
|
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-f0846b77.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
|
|
7
7
|
const state = require('../../state-f73a8b4f.cjs');
|
|
8
8
|
const index = require('../../index-66211c85.cjs');
|
|
9
|
-
const styleMap = require('../../style-map-
|
|
9
|
+
const styleMap = require('../../style-map-36078d57.cjs');
|
|
10
10
|
require('../../directive-8278ab14.cjs');
|
|
11
11
|
|
|
12
12
|
var top = 'top';
|
|
@@ -3552,6 +3552,10 @@ exports.LuksoTooltip = class LuksoTooltip extends shared_tailwindElement_index.T
|
|
|
3552
3552
|
}
|
|
3553
3553
|
this.initTooltip();
|
|
3554
3554
|
}
|
|
3555
|
+
disconnectedCallback() {
|
|
3556
|
+
super.disconnectedCallback();
|
|
3557
|
+
this.tooltipInstance?.destroy();
|
|
3558
|
+
}
|
|
3555
3559
|
optionsTemplate() {
|
|
3556
3560
|
const { options } = this.tooltipStyles();
|
|
3557
3561
|
return shared_tailwindElement_index.x`<ul>
|
|
@@ -31,6 +31,7 @@ export declare class LuksoTooltip extends LuksoTooltip_base {
|
|
|
31
31
|
private initTooltip;
|
|
32
32
|
private handleClick;
|
|
33
33
|
willUpdate(changedProperties: PropertyValues<this>): Promise<void>;
|
|
34
|
+
disconnectedCallback(): void;
|
|
34
35
|
private optionsTemplate;
|
|
35
36
|
render(): import("lit-html").TemplateResult<1>;
|
|
36
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,KAAK,CAAA;AAS/C,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAA;AAC9E,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,OAAO,CAAA;AAC5C,MAAM,MAAM,gBAAgB,GACxB,KAAK,GACL,WAAW,GACX,SAAS,GACT,OAAO,GACP,aAAa,GACb,WAAW,GACX,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,GACV,MAAM,GACN,YAAY,GACZ,UAAU,CAAA;AACd,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG,OAAO,GAAG,QAAQ,CAAA;AAE9D,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;;AAED,qBACa,YAAa,SAAQ,iBAA4B;IAE5D,OAAO,EAAE,cAAc,CAAU;IAGjC,IAAI,EAAE,WAAW,CAAW;IAG5B,SAAS,EAAE,gBAAgB,CAAQ;IAGnC,OAAO,EAAE,cAAc,CAAe;IAGtC,IAAI,SAAK;IAGT,QAAQ,SAAM;IAGd,IAAI,UAAQ;IAGZ,WAAW,SAAS;IAGpB,eAAe,UAAQ;IAGvB,QAAQ,SAAK;IAGb,SAAS,SAAK;IAGd,MAAM,SAAK;IAGX,OAAO,SAAK;IAGZ,QAAQ,UAAQ;IAGhB,aAAa,EAAE,aAAa,EAAE,CAAK;IAEnC,OAAO,CAAC,eAAe,CAAY;IAEnC,OAAO,CAAC,aAAa,CAMnB;IAEF,OAAO,CAAC,gBAAgB;IAcxB,OAAO,CAAC,WAAW;IA8BnB,OAAO,CAAC,WAAW;IAab,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC;IAyBxD,OAAO,CAAC,eAAe;IAqBvB,MAAM;CA2BP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,eAAe,EAAE,YAAY,CAAA;KAC9B;CACF"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,KAAK,CAAA;AAS/C,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAA;AAC9E,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,OAAO,CAAA;AAC5C,MAAM,MAAM,gBAAgB,GACxB,KAAK,GACL,WAAW,GACX,SAAS,GACT,OAAO,GACP,aAAa,GACb,WAAW,GACX,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,GACV,MAAM,GACN,YAAY,GACZ,UAAU,CAAA;AACd,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG,OAAO,GAAG,QAAQ,CAAA;AAE9D,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;;AAED,qBACa,YAAa,SAAQ,iBAA4B;IAE5D,OAAO,EAAE,cAAc,CAAU;IAGjC,IAAI,EAAE,WAAW,CAAW;IAG5B,SAAS,EAAE,gBAAgB,CAAQ;IAGnC,OAAO,EAAE,cAAc,CAAe;IAGtC,IAAI,SAAK;IAGT,QAAQ,SAAM;IAGd,IAAI,UAAQ;IAGZ,WAAW,SAAS;IAGpB,eAAe,UAAQ;IAGvB,QAAQ,SAAK;IAGb,SAAS,SAAK;IAGd,MAAM,SAAK;IAGX,OAAO,SAAK;IAGZ,QAAQ,UAAQ;IAGhB,aAAa,EAAE,aAAa,EAAE,CAAK;IAEnC,OAAO,CAAC,eAAe,CAAY;IAEnC,OAAO,CAAC,aAAa,CAMnB;IAEF,OAAO,CAAC,gBAAgB;IAcxB,OAAO,CAAC,WAAW;IA8BnB,OAAO,CAAC,WAAW;IAab,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC;IAyBxD,oBAAoB;IAKpB,OAAO,CAAC,eAAe;IAqBvB,MAAM;CA2BP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,eAAe,EAAE,YAAY,CAAA;KAC9B;CACF"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x } from '../../index-
|
|
1
|
+
import { T as TailwindStyledElement, x } from '../../index-806013c2.js';
|
|
2
2
|
import { n, e } from '../../query-assigned-elements-5d94572f.js';
|
|
3
3
|
import { t } from '../../state-0a779257.js';
|
|
4
4
|
import { i as ie } from '../../index-faa8c4ae.js';
|
|
5
|
-
import { o } from '../../style-map-
|
|
5
|
+
import { o } from '../../style-map-e1ea4b4f.js';
|
|
6
6
|
import '../../directive-2bb7789e.js';
|
|
7
7
|
|
|
8
8
|
var top = 'top';
|
|
@@ -3548,6 +3548,10 @@ let LuksoTooltip = class extends TailwindStyledElement(style) {
|
|
|
3548
3548
|
}
|
|
3549
3549
|
this.initTooltip();
|
|
3550
3550
|
}
|
|
3551
|
+
disconnectedCallback() {
|
|
3552
|
+
super.disconnectedCallback();
|
|
3553
|
+
this.tooltipInstance?.destroy();
|
|
3554
|
+
}
|
|
3551
3555
|
optionsTemplate() {
|
|
3552
3556
|
const { options } = this.tooltipStyles();
|
|
3553
3557
|
return x`<ul>
|
|
@@ -2,10 +2,10 @@
|
|
|
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-f0846b77.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
|
|
7
7
|
const index = require('../../index-e9668573.cjs');
|
|
8
|
-
const index$1 = require('../../index-
|
|
8
|
+
const index$1 = require('../../index-5bfb2237.cjs');
|
|
9
9
|
require('../../directive-8278ab14.cjs');
|
|
10
10
|
|
|
11
11
|
const sliceAddress = (address, startSliceBy = 6, endSliceBy) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x, A } from '../../index-
|
|
1
|
+
import { T as TailwindStyledElement, x, A } from '../../index-806013c2.js';
|
|
2
2
|
import { n, e } from '../../query-assigned-elements-5d94572f.js';
|
|
3
3
|
import { c as customClassMap } from '../../index-5e194caf.js';
|
|
4
|
-
import { c as customStyleMap } from '../../index-
|
|
4
|
+
import { c as customStyleMap } from '../../index-cb570192.js';
|
|
5
5
|
import '../../directive-2bb7789e.js';
|
|
6
6
|
|
|
7
7
|
const sliceAddress = (address, startSliceBy = 6, endSliceBy) => {
|
|
@@ -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-f0846b77.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
|
|
7
7
|
const directive = require('../../directive-8278ab14.cjs');
|
|
8
8
|
const index = require('../../index-66211c85.cjs');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j, b as T, T as TailwindStyledElement, x } from '../../index-
|
|
1
|
+
import { j, b as T, T as TailwindStyledElement, x } from '../../index-806013c2.js';
|
|
2
2
|
import { n, e as e$1 } from '../../query-assigned-elements-5d94572f.js';
|
|
3
3
|
import { e, i, t } from '../../directive-2bb7789e.js';
|
|
4
4
|
import { i as ie } from '../../index-faa8c4ae.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const shared_tailwindElement_index = require('./index-
|
|
3
|
+
const shared_tailwindElement_index = require('./index-f0846b77.cjs');
|
|
4
4
|
const directive = require('./directive-8278ab14.cjs');
|
|
5
5
|
|
|
6
6
|
class CustomStyleMapDirective extends directive.i {
|