@proximus/lavender-timeline 1.0.0-alpha.16 → 1.0.0-alpha.18
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.js +6 -6
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const l = ".timeline{list-style:none;margin:0;padding:0}", o = new CSSStyleSheet();
|
|
2
2
|
o.replaceSync(l);
|
|
3
|
-
class
|
|
3
|
+
class d extends HTMLElement {
|
|
4
4
|
template() {
|
|
5
5
|
return `
|
|
6
6
|
<ol class="timeline" role="list">
|
|
@@ -28,7 +28,7 @@ class c extends HTMLElement {
|
|
|
28
28
|
}
|
|
29
29
|
configureChildren() {
|
|
30
30
|
const t = this.$children[this.$children.length - 1];
|
|
31
|
-
t
|
|
31
|
+
t && !t.hasAttribute("lastchild") && t.setAttribute("lastchild", "");
|
|
32
32
|
for (let e = 0; e < this.$children.length; e++)
|
|
33
33
|
this.$children[e].setAttribute("item", `${e + 1}`);
|
|
34
34
|
}
|
|
@@ -45,9 +45,9 @@ class c extends HTMLElement {
|
|
|
45
45
|
this.setAttribute("inverted", t);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
customElements.get("px-timeline") || customElements.define("px-timeline",
|
|
49
|
-
const
|
|
50
|
-
a.replaceSync(
|
|
48
|
+
customElements.get("px-timeline") || customElements.define("px-timeline", d);
|
|
49
|
+
const c = '.timeline-item{display:flex;gap:var(--px-spacing-text-to-icon-horizontal);font-family:var(--px-font-family);font-size:var(--px-text-size-base-mobile);line-height:var(--px-line-height-m)}.indicator-area{position:relative}.indicator-area:before{display:block;content:"";position:absolute;top:26px;left:12px;width:var(--px-border-m);height:calc(100% - 26px);background:var(--px-color-border-main-default)}.indicator-area .indicator{display:flex;align-items:center;justify-content:center;text-align:center;width:26px;height:26px;font-weight:700;font-size:var(--px-text-size-s-mobile);color:var(--px-color-icon-body-default);border-radius:var(--px-radius-pill);background:var(--px-color-bg-container-weak-default)}.content-area{margin-bottom:var(--px-spacing-component-default-vertical)}.content-area ::slotted([slot="title"]){font-weight:700;color:var(--px-color-txt-body-default)}.content-area ::slotted([slot="content"]){font-weight:400;color:var(--px-color-txt-details-default);margin-top:var(--px-spacing-under-text-vertical)}:host([lastchild]) .indicator-area:before{display:none}:host([lastchild]) .content-area{margin-bottom:0}:host([inverted]) .indicator-area:before{background:var(--px-color-border-main-inverted)}:host([inverted]) .indicator-area .indicator{color:var(--px-color-icon-body-inverted);background:var(--px-color-bg-container-weak-inverted)}:host([inverted]) .content-area ::slotted([slot="title"]){color:var(--px-color-txt-body-inverted)}:host([inverted]) .content-area ::slotted([slot="content"]){color:var(--px-color-txt-details-inverted)}@media only screen and (min-width: 64rem){.timeline-item{font-size:var(--px-text-size-base-tablet)}.indicator-area .indicator{font-size:var(--px-text-size-s-tablet)}}@media only screen and (min-width: 90rem){.timeline-item{font-size:var(--px-text-size-base-desktop)}.indicator-area .indicator{font-size:var(--px-text-size-s-desktop)}}', a = new CSSStyleSheet();
|
|
50
|
+
a.replaceSync(c);
|
|
51
51
|
let n = "1";
|
|
52
52
|
class h extends HTMLElement {
|
|
53
53
|
template() {
|
|
@@ -108,6 +108,6 @@ class h extends HTMLElement {
|
|
|
108
108
|
}
|
|
109
109
|
customElements.get("px-timeline-item") || customElements.define("px-timeline-item", h);
|
|
110
110
|
export {
|
|
111
|
-
|
|
111
|
+
d as Timeline,
|
|
112
112
|
h as TimelineItem
|
|
113
113
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proximus/lavender-timeline",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.18",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "4b5f8f71ad05a06f7e186a24c428525a034a2c21",
|
|
28
28
|
"lerna": {
|
|
29
29
|
"command": {
|
|
30
30
|
"publish": {
|