@proximus/lavender-breadcrumb 2.0.0-alpha.100 → 2.0.0-alpha.102
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 +19 -19
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var
|
|
1
|
+
var c = (r) => {
|
|
2
2
|
throw TypeError(r);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var b = (r, t, e) => t.has(r) ?
|
|
6
|
-
var
|
|
4
|
+
var h = (r, t, e) => t.has(r) || c("Cannot " + e);
|
|
5
|
+
var b = (r, t, e) => t.has(r) ? c("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(r) : t.set(r, e);
|
|
6
|
+
var l = (r, t, e) => (h(r, t, "access private method"), e);
|
|
7
7
|
import { PxElement as v, WithExtraAttributes as x } from "@proximus/lavender-common";
|
|
8
|
-
const g = `:host{display:block}:host *{box-sizing:border-box}.breadcrumb{font-family:var(--px-font-family);color:var(--px-color-text-neutral-default);margin:calc(var(--px-spacing-s-mobile) * -1) 0 0 0;padding:0}.breadcrumb div[role=list]{display:flex;flex-wrap:wrap;align-items:center}.breadcrumb ::slotted(px-breadcrumb-item){margin-top:var(--px-spacing-s-mobile)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)){display:flex;align-items:center;margin-right:var(--px-spacing-xs-mobile)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)):after{display:inline-block;content:"";width:16px;height:16px;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:cover;mask-size:cover;-webkit-mask-position:50% 50%;mask-position:50% 50%;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.90255 3.61987C5.6515 3.8749 5.6515 4.2884 5.90255 4.54343L9.30512 8.00002L5.90255 11.4566C5.6515 11.7116 5.6515 12.1251 5.90255 12.3802C6.1536 12.6352 6.56063 12.6352 6.81169 12.3802L10.6688 8.4618C10.9199 8.20677 10.9199 7.79327 10.6688 7.53823L6.81169 3.61987C6.56063 3.36483 6.1536 3.36483 5.90255 3.61987Z' fill='%23252525'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.90255 3.61987C5.6515 3.8749 5.6515 4.2884 5.90255 4.54343L9.30512 8.00002L5.90255 11.4566C5.6515 11.7116 5.6515 12.1251 5.90255 12.3802C6.1536 12.6352 6.56063 12.6352 6.81169 12.3802L10.6688 8.4618C10.9199 8.20677 10.9199 7.79327 10.6688 7.53823L6.81169 3.61987C6.56063 3.36483 6.1536 3.36483 5.90255 3.61987Z' fill='%23252525'/%3E%3C/svg%3E");background-color:currentColor;color:var(--px-color-icon-neutral-default);margin-left:var(--px-spacing-xs-mobile)}@media screen and (min-width: 48rem){.breadcrumb{margin:calc(var(--px-spacing-s-tablet) * -1) 0 0 0}.breadcrumb ::slotted(px-breadcrumb-item){margin-top:var(--px-spacing-s-tablet)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)){margin-right:var(--px-spacing-xs-tablet)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)):after{margin-left:var(--px-spacing-xs-tablet)}}@media screen and (min-width: 64.0625rem){.breadcrumb{margin:calc(var(--px-spacing-s-laptop) * -1) 0 0 0}.breadcrumb ::slotted(px-breadcrumb-item){margin-top:var(--px-spacing-s-laptop)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)){margin-right:var(--px-spacing-xs-laptop)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)):after{margin-left:var(--px-spacing-xs-laptop)}}@media screen and (min-width: 90.0625rem){.breadcrumb{margin:calc(var(--px-spacing-s-desktop) * -1) 0 0 0}.breadcrumb ::slotted(px-breadcrumb-item){margin-top:var(--px-spacing-s-desktop)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)){margin-right:var(--px-spacing-xs-desktop)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)):after{margin-left:var(--px-spacing-xs-desktop)}}:host([inverted]) .breadcrumb{color:var(--px-color-text-neutral-inverted)}:host([inverted]) .breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)):after{color:var(--px-color-icon-neutral-inverted)}`, f =
|
|
8
|
+
const g = `:host{display:block}:host *{box-sizing:border-box}.breadcrumb{font-family:var(--px-font-family);color:var(--px-color-text-neutral-default);margin:calc(var(--px-spacing-s-mobile) * -1) 0 0 0;padding:0}.breadcrumb div[role=list]{display:flex;flex-wrap:wrap;align-items:center}.breadcrumb ::slotted(px-breadcrumb-item){margin-top:var(--px-spacing-s-mobile)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)){display:flex;align-items:center;margin-right:var(--px-spacing-xs-mobile)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)):after{display:inline-block;content:"";width:16px;height:16px;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:cover;mask-size:cover;-webkit-mask-position:50% 50%;mask-position:50% 50%;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.90255 3.61987C5.6515 3.8749 5.6515 4.2884 5.90255 4.54343L9.30512 8.00002L5.90255 11.4566C5.6515 11.7116 5.6515 12.1251 5.90255 12.3802C6.1536 12.6352 6.56063 12.6352 6.81169 12.3802L10.6688 8.4618C10.9199 8.20677 10.9199 7.79327 10.6688 7.53823L6.81169 3.61987C6.56063 3.36483 6.1536 3.36483 5.90255 3.61987Z' fill='%23252525'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.90255 3.61987C5.6515 3.8749 5.6515 4.2884 5.90255 4.54343L9.30512 8.00002L5.90255 11.4566C5.6515 11.7116 5.6515 12.1251 5.90255 12.3802C6.1536 12.6352 6.56063 12.6352 6.81169 12.3802L10.6688 8.4618C10.9199 8.20677 10.9199 7.79327 10.6688 7.53823L6.81169 3.61987C6.56063 3.36483 6.1536 3.36483 5.90255 3.61987Z' fill='%23252525'/%3E%3C/svg%3E");background-color:currentColor;color:var(--px-color-icon-neutral-default);margin-left:var(--px-spacing-xs-mobile)}@media screen and (min-width: 48rem){.breadcrumb{margin:calc(var(--px-spacing-s-tablet) * -1) 0 0 0}.breadcrumb ::slotted(px-breadcrumb-item){margin-top:var(--px-spacing-s-tablet)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)){margin-right:var(--px-spacing-xs-tablet)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)):after{margin-left:var(--px-spacing-xs-tablet)}}@media screen and (min-width: 64.0625rem){.breadcrumb{margin:calc(var(--px-spacing-s-laptop) * -1) 0 0 0}.breadcrumb ::slotted(px-breadcrumb-item){margin-top:var(--px-spacing-s-laptop)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)){margin-right:var(--px-spacing-xs-laptop)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)):after{margin-left:var(--px-spacing-xs-laptop)}}@media screen and (min-width: 90.0625rem){.breadcrumb{margin:calc(var(--px-spacing-s-desktop) * -1) 0 0 0}.breadcrumb ::slotted(px-breadcrumb-item){margin-top:var(--px-spacing-s-desktop)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)){margin-right:var(--px-spacing-xs-desktop)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)):after{margin-left:var(--px-spacing-xs-desktop)}}:host([inverted]) .breadcrumb{color:var(--px-color-text-neutral-inverted)}:host([inverted]) .breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)):after{color:var(--px-color-icon-neutral-inverted)}`, f = ':host{display:block}:host *{box-sizing:border-box}.breadcrumb-item{display:flex;line-height:var(--px-font-line-height-s);font-size:var(--px-text-size-label-m-mobile)}:host ::slotted(px-a[variant="icon-link"][color="inherit"]){color:var(--px-color-icon-accent-default)}@media screen and (min-width: 48rem){.breadcrumb-item{font-size:var(--px-text-size-label-m-tablet)}}@media screen and (min-width: 64.0625rem){.breadcrumb-item{font-size:var(--px-text-size-label-m-laptop)}}@media screen and (min-width: 90.0625rem){.breadcrumb-item{font-size:var(--px-text-size-label-m-desktop)}}:host([inverted]) ::slotted(px-a[variant="icon-link"][color="inherit"]){color:var(--px-color-icon-neutral-default)}:is():hover{color:var(--px-color-text-state-hover-default)}', m = new CSSStyleSheet();
|
|
9
9
|
m.replaceSync(f);
|
|
10
|
-
const
|
|
10
|
+
const p = "px-breadcrumb-item-connected", d = class d extends v {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(m), this.template = () => '<div class="breadcrumb-item" role="listitem"><slot></slot></div>', this.shadowRoot && (this.shadowRoot.innerHTML = this.template());
|
|
13
13
|
}
|
|
@@ -16,7 +16,7 @@ const h = "px-breadcrumb-item-connected", c = class c extends v {
|
|
|
16
16
|
}
|
|
17
17
|
connectedCallback() {
|
|
18
18
|
this.$icon && this.$icon.setAttribute("size", "s"), this.$link || this.$el.setAttribute("aria-current", "page"), this.dispatchEvent(
|
|
19
|
-
new CustomEvent(
|
|
19
|
+
new CustomEvent(p, {
|
|
20
20
|
bubbles: !0,
|
|
21
21
|
composed: !0
|
|
22
22
|
})
|
|
@@ -50,15 +50,15 @@ const h = "px-breadcrumb-item-connected", c = class c extends v {
|
|
|
50
50
|
t ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
-
|
|
54
|
-
let o =
|
|
53
|
+
d.nativeName = "div";
|
|
54
|
+
let o = d;
|
|
55
55
|
customElements.get("px-breadcrumb-item") || customElements.define("px-breadcrumb-item", o);
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
var s,
|
|
56
|
+
const u = new CSSStyleSheet();
|
|
57
|
+
u.replaceSync(g);
|
|
58
|
+
var s, n;
|
|
59
59
|
class k extends x {
|
|
60
60
|
constructor() {
|
|
61
|
-
super(
|
|
61
|
+
super(u);
|
|
62
62
|
b(this, s);
|
|
63
63
|
this.shadowRoot.innerHTML = this.template();
|
|
64
64
|
}
|
|
@@ -72,9 +72,9 @@ class k extends x {
|
|
|
72
72
|
`;
|
|
73
73
|
}
|
|
74
74
|
connectedCallback() {
|
|
75
|
-
this.ariaLabel || (this.ariaLabel = "Breadcrumb"), this.addEventListener(
|
|
76
|
-
|
|
77
|
-
}),
|
|
75
|
+
this.ariaLabel || (this.ariaLabel = "Breadcrumb"), this.addEventListener(p, () => {
|
|
76
|
+
l(this, s, n).call(this);
|
|
77
|
+
}), l(this, s, n).call(this);
|
|
78
78
|
}
|
|
79
79
|
static get observedAttributes() {
|
|
80
80
|
return [...super.observedAttributes, "inverted", "aria-label"];
|
|
@@ -86,7 +86,7 @@ class k extends x {
|
|
|
86
86
|
this.$el.setAttribute("aria-label", this.ariaLabel);
|
|
87
87
|
break;
|
|
88
88
|
case "inverted":
|
|
89
|
-
this.isConnected &&
|
|
89
|
+
this.isConnected && l(this, s, n).call(this);
|
|
90
90
|
break;
|
|
91
91
|
default:
|
|
92
92
|
super.attributeChangedCallback(e, i, a);
|
|
@@ -112,14 +112,14 @@ class k extends x {
|
|
|
112
112
|
e ? this.setAttribute("aria-label", e) : this.removeAttribute("aria-label");
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
s = new WeakSet(),
|
|
115
|
+
s = new WeakSet(), n = function() {
|
|
116
116
|
const e = this.hasAttribute("inverted");
|
|
117
117
|
for (let i = 0; i < this.$children.length; i++)
|
|
118
118
|
this.$children[i].toggleAttribute("inverted", e);
|
|
119
119
|
};
|
|
120
120
|
customElements.get("px-breadcrumb") || customElements.define("px-breadcrumb", k);
|
|
121
121
|
export {
|
|
122
|
-
|
|
122
|
+
p as BREADCRUMB_ITEM_CONNECTED_EVENT,
|
|
123
123
|
k as Breadcrumb,
|
|
124
124
|
o as BreadcrumbItem
|
|
125
125
|
};
|