@proximus/lavender-link 2.0.0-alpha.113 → 2.0.0-alpha.115
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/index.es.js +7 -7
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -16,7 +16,7 @@ const T = [...y, "link-m", "link-s"], h = [
|
|
|
16
16
|
"btn-secondary",
|
|
17
17
|
"btn-tertiary",
|
|
18
18
|
"icon-link"
|
|
19
|
-
],
|
|
19
|
+
], I = ["", "default", "alternative"], s = class s extends w {
|
|
20
20
|
constructor() {
|
|
21
21
|
super(g, f, m), this.template = () => '<slot name="before"></slot><slot></slot><slot name="after"></slot>';
|
|
22
22
|
const t = document.createElement(s.nativeName);
|
|
@@ -63,7 +63,7 @@ const T = [...y, "link-m", "link-s"], h = [
|
|
|
63
63
|
case "shape--tablet":
|
|
64
64
|
case "shape--laptop":
|
|
65
65
|
case "shape--desktop":
|
|
66
|
-
this.updateShape(t, a,
|
|
66
|
+
this.updateShape(t, a, I);
|
|
67
67
|
break;
|
|
68
68
|
case "extended":
|
|
69
69
|
case "extended--mobile":
|
|
@@ -111,7 +111,7 @@ const T = [...y, "link-m", "link-s"], h = [
|
|
|
111
111
|
updateVariant(t, e) {
|
|
112
112
|
t !== null && t !== "" && t !== "link" && this._toggleClassList(t), e !== null && e !== "" && e !== "link" && this._toggleClassList(e), this.checkName(h, e) || c(
|
|
113
113
|
`"${e}" is not a valid variant value for ${this.tagName.toLowerCase()}. Allowed values are: "${h.join('", "')}".`
|
|
114
|
-
)
|
|
114
|
+
);
|
|
115
115
|
}
|
|
116
116
|
updateShape(t, e, a) {
|
|
117
117
|
if (!$(a, e)) {
|
|
@@ -248,7 +248,7 @@ s.nativeName = "a";
|
|
|
248
248
|
let n = s;
|
|
249
249
|
customElements.get("px-a") || customElements.define("px-a", n);
|
|
250
250
|
var i, l, k;
|
|
251
|
-
class
|
|
251
|
+
class M extends n {
|
|
252
252
|
constructor() {
|
|
253
253
|
super();
|
|
254
254
|
b(this, l);
|
|
@@ -280,11 +280,11 @@ class I extends n {
|
|
|
280
280
|
i = new WeakMap(), l = new WeakSet(), k = function() {
|
|
281
281
|
return !this.hasAttribute("disabled") && this.$el.getAttribute("aria-disabled") !== "true";
|
|
282
282
|
};
|
|
283
|
-
customElements.get("px-a-wrapper") || customElements.define("px-a-wrapper",
|
|
283
|
+
customElements.get("px-a-wrapper") || customElements.define("px-a-wrapper", M);
|
|
284
284
|
export {
|
|
285
285
|
n as Link,
|
|
286
|
-
|
|
287
|
-
|
|
286
|
+
M as LinkWrapper,
|
|
287
|
+
I as linkShapeValues,
|
|
288
288
|
h as linkVariantValues,
|
|
289
289
|
T as linktextsizesValues
|
|
290
290
|
};
|