@lukso/web-components 1.91.0 → 1.92.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/lukso-tooltip/index.cjs +10 -1
- package/dist/components/lukso-tooltip/index.d.ts +2 -0
- package/dist/components/lukso-tooltip/index.d.ts.map +1 -1
- package/dist/components/lukso-tooltip/index.js +10 -1
- package/dist/components/lukso-tooltip/lukso-tooltip.stories.d.ts +2 -0
- package/dist/components/lukso-tooltip/lukso-tooltip.stories.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -3477,6 +3477,8 @@ exports.LuksoTooltip = class LuksoTooltip extends shared_tailwindElement_index.T
|
|
|
3477
3477
|
this.offset = 10;
|
|
3478
3478
|
this.options = "";
|
|
3479
3479
|
this.showArrow = true;
|
|
3480
|
+
this.showDelay = 300;
|
|
3481
|
+
this.hideDelay = 300;
|
|
3480
3482
|
this.showCopy = false;
|
|
3481
3483
|
this.optionsParsed = [];
|
|
3482
3484
|
this.tooltipInstance = void 0;
|
|
@@ -3521,7 +3523,8 @@ exports.LuksoTooltip = class LuksoTooltip extends shared_tailwindElement_index.T
|
|
|
3521
3523
|
maxWidth: this.maxWidth,
|
|
3522
3524
|
theme: `${this.variant}-${this.size}`,
|
|
3523
3525
|
offset: [0, this.offset],
|
|
3524
|
-
hideOnClick: this.hideOnClickCheck()
|
|
3526
|
+
hideOnClick: this.hideOnClickCheck(),
|
|
3527
|
+
delay: [this.showDelay, this.hideDelay]
|
|
3525
3528
|
});
|
|
3526
3529
|
}
|
|
3527
3530
|
handleClick() {
|
|
@@ -3642,6 +3645,12 @@ __decorateClass([
|
|
|
3642
3645
|
__decorateClass([
|
|
3643
3646
|
queryAssignedElements.n({ type: Boolean, attribute: "show-arrow" })
|
|
3644
3647
|
], exports.LuksoTooltip.prototype, "showArrow", 2);
|
|
3648
|
+
__decorateClass([
|
|
3649
|
+
queryAssignedElements.n({ type: Number, attribute: "show-delay" })
|
|
3650
|
+
], exports.LuksoTooltip.prototype, "showDelay", 2);
|
|
3651
|
+
__decorateClass([
|
|
3652
|
+
queryAssignedElements.n({ type: Number, attribute: "hide-delay" })
|
|
3653
|
+
], exports.LuksoTooltip.prototype, "hideDelay", 2);
|
|
3645
3654
|
__decorateClass([
|
|
3646
3655
|
state.t()
|
|
3647
3656
|
], exports.LuksoTooltip.prototype, "showCopy", 2);
|
|
@@ -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;IAGv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QAAQ,SAAK;IAGb,SAAS,SAAK;IAGd,MAAM,SAAK;IAGX,OAAO,SAAK;IAGZ,SAAS,UAAO;IAGhB,SAAS,SAAM;IAGf,SAAS,SAAM;IAGf,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;IA+BnB,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"}
|
|
@@ -3473,6 +3473,8 @@ let LuksoTooltip = class extends TailwindStyledElement(style) {
|
|
|
3473
3473
|
this.offset = 10;
|
|
3474
3474
|
this.options = "";
|
|
3475
3475
|
this.showArrow = true;
|
|
3476
|
+
this.showDelay = 300;
|
|
3477
|
+
this.hideDelay = 300;
|
|
3476
3478
|
this.showCopy = false;
|
|
3477
3479
|
this.optionsParsed = [];
|
|
3478
3480
|
this.tooltipInstance = void 0;
|
|
@@ -3517,7 +3519,8 @@ let LuksoTooltip = class extends TailwindStyledElement(style) {
|
|
|
3517
3519
|
maxWidth: this.maxWidth,
|
|
3518
3520
|
theme: `${this.variant}-${this.size}`,
|
|
3519
3521
|
offset: [0, this.offset],
|
|
3520
|
-
hideOnClick: this.hideOnClickCheck()
|
|
3522
|
+
hideOnClick: this.hideOnClickCheck(),
|
|
3523
|
+
delay: [this.showDelay, this.hideDelay]
|
|
3521
3524
|
});
|
|
3522
3525
|
}
|
|
3523
3526
|
handleClick() {
|
|
@@ -3638,6 +3641,12 @@ __decorateClass([
|
|
|
3638
3641
|
__decorateClass([
|
|
3639
3642
|
n({ type: Boolean, attribute: "show-arrow" })
|
|
3640
3643
|
], LuksoTooltip.prototype, "showArrow", 2);
|
|
3644
|
+
__decorateClass([
|
|
3645
|
+
n({ type: Number, attribute: "show-delay" })
|
|
3646
|
+
], LuksoTooltip.prototype, "showDelay", 2);
|
|
3647
|
+
__decorateClass([
|
|
3648
|
+
n({ type: Number, attribute: "hide-delay" })
|
|
3649
|
+
], LuksoTooltip.prototype, "hideDelay", 2);
|
|
3641
3650
|
__decorateClass([
|
|
3642
3651
|
t()
|
|
3643
3652
|
], LuksoTooltip.prototype, "showCopy", 2);
|
|
@@ -26,4 +26,6 @@ export declare const Offset: any;
|
|
|
26
26
|
export declare const ClipboardCopy: any;
|
|
27
27
|
/** Tooltip with `options` (copied to clipboard). */
|
|
28
28
|
export declare const OptionsTooltip: any;
|
|
29
|
+
/** Delayed show/hide. */
|
|
30
|
+
export declare const DelayedTooltip: any;
|
|
29
31
|
//# sourceMappingURL=lukso-tooltip.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lukso-tooltip.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-tooltip/lukso-tooltip.stories.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAErD,OAAO,SAAS,CAAA;AAChB,OAAO,uBAAuB,CAAA;AAE9B,gEAAgE;AAChE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"lukso-tooltip.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-tooltip/lukso-tooltip.stories.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAErD,OAAO,SAAS,CAAA;AAChB,OAAO,uBAAuB,CAAA;AAE9B,gEAAgE;AAChE,QAAA,MAAM,IAAI,EAAE,IA2NX,CAAA;AAED,eAAe,IAAI,CAAA;AA6CnB,8CAA8C;AAC9C,eAAO,MAAM,cAAc,KAA2B,CAAA;AAMtD,4CAA4C;AAC5C,eAAO,MAAM,YAAY,KAA2B,CAAA;AAOpD,sEAAsE;AACtE,eAAO,MAAM,QAAQ,KAA2B,CAAA;AAUhD,gCAAgC;AAChC,eAAO,MAAM,SAAS,KAA2B,CAAA;AASjD,mCAAmC;AACnC,eAAO,MAAM,YAAY,KAA2B,CAAA;AASpD,qCAAqC;AACrC,eAAO,MAAM,cAAc,KAA2B,CAAA;AAStD,oCAAoC;AACpC,eAAO,MAAM,aAAa,KAA2B,CAAA;AASrD,oEAAoE;AACpE,eAAO,MAAM,cAAc,KAA2B,CAAA;AAOtD,eAAO,MAAM,aAAa,KAA2B,CAAA;AAQrD,eAAO,MAAM,eAAe,KAA2B,CAAA;AASvD,8DAA8D;AAC9D,eAAO,MAAM,MAAM,KAA2B,CAAA;AAS9C,qIAAqI;AACrI,eAAO,MAAM,aAAa,KAA2B,CAAA;AAUrD,qDAAqD;AACrD,eAAO,MAAM,cAAc,KAA2B,CAAA;AAwBtD,0BAA0B;AAC1B,eAAO,MAAM,cAAc,KAA2B,CAAA"}
|