@proximus/lavender 1.0.0-alpha.20 → 1.0.0-alpha.21
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/lavender.cjs.js +1 -1
- package/dist/lavender.es.js +225 -145
- package/dist/lavender.umd.js +1 -1
- package/package.json +2 -2
package/dist/lavender.es.js
CHANGED
|
@@ -437,7 +437,7 @@ function getViewportFormat() {
|
|
|
437
437
|
return "mobile";
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
const styles$d = ".flex-container{display:flex;height:100%;width:100%;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap
|
|
440
|
+
const styles$d = ".flex-container{display:flex;height:100%;width:100%;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value)}@media screen and (min-width: 768px){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value)}}@media screen and (min-width: 1025px){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value)}}@media screen and (min-width: 1441px){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value)}}";
|
|
441
441
|
const styleSheet$d = new CSSStyleSheet();
|
|
442
442
|
styleSheet$d.replaceSync(styles$d);
|
|
443
443
|
const gapValues = [
|
|
@@ -456,6 +456,34 @@ const gapValues = [
|
|
|
456
456
|
"inside-section-l",
|
|
457
457
|
"between-sections"
|
|
458
458
|
];
|
|
459
|
+
const directionValues = [
|
|
460
|
+
"",
|
|
461
|
+
"default",
|
|
462
|
+
"row",
|
|
463
|
+
"row-reverse",
|
|
464
|
+
"column",
|
|
465
|
+
"column-reverse"
|
|
466
|
+
];
|
|
467
|
+
const alignItemsValues = [
|
|
468
|
+
"",
|
|
469
|
+
"default",
|
|
470
|
+
"stretch",
|
|
471
|
+
"flex-start",
|
|
472
|
+
"flex-end",
|
|
473
|
+
"center",
|
|
474
|
+
"baseline"
|
|
475
|
+
];
|
|
476
|
+
const justifyContentValues = [
|
|
477
|
+
"",
|
|
478
|
+
"default",
|
|
479
|
+
"flex-start",
|
|
480
|
+
"flex-end",
|
|
481
|
+
"center",
|
|
482
|
+
"space-between",
|
|
483
|
+
"space-around",
|
|
484
|
+
"space-evenly"
|
|
485
|
+
];
|
|
486
|
+
const wrapValues = ["", "default", "nowrap", "wrap", "wrap-reverse"];
|
|
459
487
|
class Stack extends WithFlexAttributes {
|
|
460
488
|
constructor() {
|
|
461
489
|
super(styleSheet$d);
|
|
@@ -468,6 +496,18 @@ class Stack extends WithFlexAttributes {
|
|
|
468
496
|
if (!this.hasAttribute("direction")) {
|
|
469
497
|
this.direction = "row";
|
|
470
498
|
}
|
|
499
|
+
if (!this.hasAttribute("gap")) {
|
|
500
|
+
this.gap = "inside-section-none";
|
|
501
|
+
}
|
|
502
|
+
if (!this.hasAttribute("align-items")) {
|
|
503
|
+
this.alignItems = "stretch";
|
|
504
|
+
}
|
|
505
|
+
if (!this.hasAttribute("justify-content")) {
|
|
506
|
+
this.justifyContent = "flex-start";
|
|
507
|
+
}
|
|
508
|
+
if (!this.hasAttribute("wrap")) {
|
|
509
|
+
this.wrap = "nowrap";
|
|
510
|
+
}
|
|
471
511
|
}
|
|
472
512
|
static get observedAttributes() {
|
|
473
513
|
return [
|
|
@@ -478,6 +518,10 @@ class Stack extends WithFlexAttributes {
|
|
|
478
518
|
"direction--laptop",
|
|
479
519
|
"direction--desktop",
|
|
480
520
|
"gap",
|
|
521
|
+
"gap--mobile",
|
|
522
|
+
"gap--tablet",
|
|
523
|
+
"gap--laptop",
|
|
524
|
+
"gap--desktop",
|
|
481
525
|
"justify-content",
|
|
482
526
|
"justify-content--mobile",
|
|
483
527
|
"justify-content--tablet",
|
|
@@ -489,10 +533,10 @@ class Stack extends WithFlexAttributes {
|
|
|
489
533
|
"align-items--laptop",
|
|
490
534
|
"align-items--desktop",
|
|
491
535
|
"wrap",
|
|
492
|
-
"wrap
|
|
493
|
-
"wrap
|
|
494
|
-
"wrap
|
|
495
|
-
"wrap
|
|
536
|
+
"wrap--mobile",
|
|
537
|
+
"wrap--tablet",
|
|
538
|
+
"wrap--laptop",
|
|
539
|
+
"wrap--desktop"
|
|
496
540
|
];
|
|
497
541
|
}
|
|
498
542
|
attributeChangedCallback(name, oldValue, newValue) {
|
|
@@ -501,148 +545,97 @@ class Stack extends WithFlexAttributes {
|
|
|
501
545
|
}
|
|
502
546
|
switch (name) {
|
|
503
547
|
case "gap":
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
this
|
|
509
|
-
`--flex-gap-tablet-value`,
|
|
510
|
-
this.getGapCSSVariable(newValue, "tablet")
|
|
511
|
-
);
|
|
512
|
-
this.$el.style.setProperty(
|
|
513
|
-
`--flex-gap-laptop-value`,
|
|
514
|
-
this.getGapCSSVariable(newValue, "desktop")
|
|
515
|
-
);
|
|
516
|
-
this.$el.style.setProperty(
|
|
517
|
-
`--flex-gap-desktop-value`,
|
|
518
|
-
this.getGapCSSVariable(newValue, "desktop")
|
|
519
|
-
);
|
|
520
|
-
break;
|
|
521
|
-
case "direction":
|
|
522
|
-
if (!this.$el.style.getPropertyValue("--flex-direction--mobile-value")) {
|
|
523
|
-
this.$el.style.setProperty(
|
|
524
|
-
`--flex-direction--mobile-value`,
|
|
525
|
-
newValue
|
|
526
|
-
);
|
|
527
|
-
}
|
|
528
|
-
if (!this.$el.style.getPropertyValue("--flex-direction--tablet-value")) {
|
|
529
|
-
this.$el.style.setProperty(
|
|
530
|
-
`--flex-direction--tablet-value`,
|
|
531
|
-
newValue
|
|
532
|
-
);
|
|
533
|
-
}
|
|
534
|
-
if (!this.$el.style.getPropertyValue("--flex-direction--laptop-value")) {
|
|
535
|
-
this.$el.style.setProperty(
|
|
536
|
-
`--flex-direction--laptop-value`,
|
|
537
|
-
newValue
|
|
538
|
-
);
|
|
539
|
-
}
|
|
540
|
-
if (!this.$el.style.getPropertyValue("--flex-direction--desktop-value")) {
|
|
541
|
-
this.$el.style.setProperty(
|
|
542
|
-
`--flex-direction--desktop-value`,
|
|
543
|
-
newValue
|
|
544
|
-
);
|
|
545
|
-
}
|
|
548
|
+
case "gap--mobile":
|
|
549
|
+
case "gap--tablet":
|
|
550
|
+
case "gap--laptop":
|
|
551
|
+
case "gap--desktop":
|
|
552
|
+
this.updateFlexProperties(name, oldValue, newValue, gapValues);
|
|
546
553
|
break;
|
|
547
554
|
case "justify-content":
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
)) {
|
|
559
|
-
this.$el.style.setProperty(
|
|
560
|
-
`--flex-justify-content--tablet-value`,
|
|
561
|
-
newValue
|
|
562
|
-
);
|
|
563
|
-
}
|
|
564
|
-
if (!this.$el.style.getPropertyValue(
|
|
565
|
-
"--flex-justify-content--laptop-value"
|
|
566
|
-
)) {
|
|
567
|
-
this.$el.style.setProperty(
|
|
568
|
-
`--flex-justify-content--laptop-value`,
|
|
569
|
-
newValue
|
|
570
|
-
);
|
|
571
|
-
}
|
|
572
|
-
if (!this.$el.style.getPropertyValue(
|
|
573
|
-
"--flex-justify-content--desktop-value"
|
|
574
|
-
)) {
|
|
575
|
-
this.$el.style.setProperty(
|
|
576
|
-
`--flex-justify-content--desktop-value`,
|
|
577
|
-
newValue
|
|
578
|
-
);
|
|
579
|
-
}
|
|
555
|
+
case "justify-content--mobile":
|
|
556
|
+
case "justify-content--tablet":
|
|
557
|
+
case "justify-content--laptop":
|
|
558
|
+
case "justify-content--desktop":
|
|
559
|
+
this.updateFlexProperties(
|
|
560
|
+
name,
|
|
561
|
+
oldValue,
|
|
562
|
+
newValue,
|
|
563
|
+
justifyContentValues
|
|
564
|
+
);
|
|
580
565
|
break;
|
|
581
566
|
case "align-items":
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
}
|
|
588
|
-
if (!this.$el.style.getPropertyValue("--flex-align-items--tablet-value")) {
|
|
589
|
-
this.$el.style.setProperty(
|
|
590
|
-
`--flex-align-items--tablet-value`,
|
|
591
|
-
newValue
|
|
592
|
-
);
|
|
593
|
-
}
|
|
594
|
-
if (!this.$el.style.getPropertyValue("--flex-align-items--laptop-value")) {
|
|
595
|
-
this.$el.style.setProperty(
|
|
596
|
-
`--flex-align-items--laptop-value`,
|
|
597
|
-
newValue
|
|
598
|
-
);
|
|
599
|
-
}
|
|
600
|
-
if (!this.$el.style.getPropertyValue("--flex-align-items--desktop-value")) {
|
|
601
|
-
this.$el.style.setProperty(
|
|
602
|
-
`--flex-align-items--desktop-value`,
|
|
603
|
-
newValue
|
|
604
|
-
);
|
|
605
|
-
}
|
|
567
|
+
case "align-items--mobile":
|
|
568
|
+
case "align-items--tablet":
|
|
569
|
+
case "align-items--laptop":
|
|
570
|
+
case "align-items--desktop":
|
|
571
|
+
this.updateFlexProperties(name, oldValue, newValue, alignItemsValues);
|
|
606
572
|
break;
|
|
607
573
|
case "wrap":
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
}
|
|
614
|
-
if (!this.$el.style.getPropertyValue(`--flex-wrap-laptop-value`)) {
|
|
615
|
-
this.$el.style.setProperty(`--flex-wrap-laptop-value`, newValue);
|
|
616
|
-
}
|
|
617
|
-
if (!this.$el.style.getPropertyValue(`--flex-wrap-desktop-value`)) {
|
|
618
|
-
this.$el.style.setProperty(`--flex-wrap-desktop-value`, newValue);
|
|
619
|
-
}
|
|
574
|
+
case "wrap--mobile":
|
|
575
|
+
case "wrap--tablet":
|
|
576
|
+
case "wrap--laptop":
|
|
577
|
+
case "wrap--desktop":
|
|
578
|
+
this.updateFlexProperties(name, oldValue, newValue, wrapValues);
|
|
620
579
|
break;
|
|
580
|
+
case "direction":
|
|
621
581
|
case "direction--mobile":
|
|
622
582
|
case "direction--tablet":
|
|
623
583
|
case "direction--laptop":
|
|
624
584
|
case "direction--desktop":
|
|
625
|
-
|
|
626
|
-
case "justify-content--tablet":
|
|
627
|
-
case "justify-content--laptop":
|
|
628
|
-
case "justify-content--desktop":
|
|
629
|
-
case "align-items--mobile":
|
|
630
|
-
case "align-items--tablet":
|
|
631
|
-
case "align-items--laptop":
|
|
632
|
-
case "align-items--desktop":
|
|
633
|
-
case "wrap-mobile":
|
|
634
|
-
case "wrap-tablet":
|
|
635
|
-
case "wrap-laptop":
|
|
636
|
-
case "wrap-desktop":
|
|
637
|
-
this.$el.style.setProperty(`--flex-${name}-value`, newValue);
|
|
585
|
+
this.updateFlexProperties(name, oldValue, newValue, directionValues);
|
|
638
586
|
break;
|
|
639
587
|
default:
|
|
640
588
|
super.attributeChangedCallback(name, oldValue, newValue);
|
|
641
589
|
break;
|
|
642
590
|
}
|
|
643
591
|
}
|
|
644
|
-
|
|
645
|
-
|
|
592
|
+
updateFlexProperties(name, oldValue, newValue, attrValue) {
|
|
593
|
+
if (!this.checkName(attrValue, newValue)) {
|
|
594
|
+
console.error(`Bad ${name} value for`, this.$el);
|
|
595
|
+
}
|
|
596
|
+
const hasBreakpoint = name.indexOf("--") > -1;
|
|
597
|
+
const cssPropertyName = hasBreakpoint ? name.split("--")[0] : name;
|
|
598
|
+
const breakpoints = [];
|
|
599
|
+
if (!hasBreakpoint) {
|
|
600
|
+
if (!this.getAttribute(cssPropertyName + "--mobile")) {
|
|
601
|
+
breakpoints.push("mobile");
|
|
602
|
+
}
|
|
603
|
+
if (!this.getAttribute(cssPropertyName + "--tablet")) {
|
|
604
|
+
breakpoints.push("tablet");
|
|
605
|
+
}
|
|
606
|
+
if (!this.getAttribute(cssPropertyName + "--laptop")) {
|
|
607
|
+
breakpoints.push("laptop");
|
|
608
|
+
}
|
|
609
|
+
if (!this.getAttribute(cssPropertyName + "--desktop")) {
|
|
610
|
+
breakpoints.push("desktop");
|
|
611
|
+
}
|
|
612
|
+
breakpoints.forEach((breakpoint) => {
|
|
613
|
+
this.updateStyle(cssPropertyName, breakpoint, oldValue, attrValue);
|
|
614
|
+
this.updateStyle(cssPropertyName, breakpoint, newValue, attrValue);
|
|
615
|
+
});
|
|
616
|
+
} else {
|
|
617
|
+
const breakpoint = name.split("--")[1];
|
|
618
|
+
this.updateStyle(cssPropertyName, breakpoint, oldValue, attrValue);
|
|
619
|
+
this.updateStyle(cssPropertyName, breakpoint, newValue, attrValue);
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
updateStyle(cssName, breakpoint, value, attrValue) {
|
|
623
|
+
if (value !== null && value !== "" && value !== "default") {
|
|
624
|
+
if (cssName === "gap" && attrValue.includes(value)) {
|
|
625
|
+
this.$el.style.setProperty(
|
|
626
|
+
`--flex-${cssName}--${breakpoint}-value`,
|
|
627
|
+
`var(--px-spacing-${value}-${breakpoint === "laptop" ? "desktop" : breakpoint})`
|
|
628
|
+
);
|
|
629
|
+
} else {
|
|
630
|
+
this.$el.style.setProperty(
|
|
631
|
+
`--flex-${cssName}--${breakpoint}-value`,
|
|
632
|
+
value
|
|
633
|
+
);
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
checkName(values, value) {
|
|
638
|
+
return values.includes(value);
|
|
646
639
|
}
|
|
647
640
|
get direction() {
|
|
648
641
|
return this.getAttribute("direction");
|
|
@@ -765,28 +758,28 @@ class Stack extends WithFlexAttributes {
|
|
|
765
758
|
this.setAttribute("wrap", value);
|
|
766
759
|
}
|
|
767
760
|
get wrapMobile() {
|
|
768
|
-
return this.getAttribute("wrap
|
|
761
|
+
return this.getAttribute("wrap--mobile");
|
|
769
762
|
}
|
|
770
763
|
set wrapMobile(value) {
|
|
771
|
-
this.setAttribute("wrap
|
|
764
|
+
this.setAttribute("wrap--mobile", value);
|
|
772
765
|
}
|
|
773
766
|
get wrapTablet() {
|
|
774
|
-
return this.getAttribute("wrap
|
|
767
|
+
return this.getAttribute("wrap--tablet");
|
|
775
768
|
}
|
|
776
769
|
set wrapTablet(value) {
|
|
777
|
-
this.setAttribute("wrap
|
|
770
|
+
this.setAttribute("wrap--tablet", value);
|
|
778
771
|
}
|
|
779
772
|
get wrapLaptop() {
|
|
780
|
-
return this.getAttribute("wrap
|
|
773
|
+
return this.getAttribute("wrap--laptop");
|
|
781
774
|
}
|
|
782
775
|
set wrapLaptop(value) {
|
|
783
|
-
this.setAttribute("wrap
|
|
776
|
+
this.setAttribute("wrap--laptop", value);
|
|
784
777
|
}
|
|
785
778
|
get wrapDesktop() {
|
|
786
|
-
return this.getAttribute("wrap
|
|
779
|
+
return this.getAttribute("wrap--desktop");
|
|
787
780
|
}
|
|
788
781
|
set wrapDesktop(value) {
|
|
789
|
-
this.setAttribute("wrap
|
|
782
|
+
this.setAttribute("wrap--desktop", value);
|
|
790
783
|
}
|
|
791
784
|
get $el() {
|
|
792
785
|
return this.shadowRoot.querySelector(".flex-container");
|
|
@@ -2027,7 +2020,7 @@ class FontIcon extends Icon {
|
|
|
2027
2020
|
}
|
|
2028
2021
|
}
|
|
2029
2022
|
customElements.define("px-icon-f", FontIcon);
|
|
2030
|
-
const containerCss = '.container{font-family:var(--px-font-family);background-color:var(--background-color);background-image:var(--background-image);background:var(--background-gradient);border-radius:var(--px-radius-main);padding:var(--container-padding-top--mobile) var(--container-padding-right--mobile) var(--container-padding-bottom--mobile) var(--container-padding-left--mobile);box-sizing:border-box}:host([inverted]) .container{background-color:var(--background-color-inverted)}.border-none{border:none}.border-s{border:var(--px-border-size-s) solid var(--border-color)}.border-m{border:var(--px-border-size-m) solid var(--border-color)}.border-l{border:var(--px-border-size-l) solid var(--border-color)}.border-side-top{border-bottom-style:none;border-right-style:none;border-left-style:none}.border-side-right{border-top-style:none;border-bottom-style:none;border-left-style:none}.border-side-bottom{border-top-style:none;border-right-style:none;border-left-style:none}.border-side-left{border-top-style:none;border-right-style:none;border-bottom-style:none}.border-side-block{border-inline-style:none}.border-side-inline{border-block-style:none}:host([inverted]) .border-s,:host([inverted]) .border-m,:host([inverted]) .border-l{border-color:var(--border-color-inverted)}.border-radius-main{border-radius:var(--px-radius-main)}.border-radius-pill{border-radius:var(--px-radius-pill)}.no-border-radius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all,.border-radius-none{border-radius:var(--px-radius-none)}.bgimg{background-repeat:no-repeat}.background-size-cover{background-size:cover;background-position:center center}.background-size-contain{background-size:contain}.box-shadow-none{box-shadow:none}.box-shadow-s{box-shadow:0 1px 2px #2525251f}.box-shadow-m{box-shadow:0 4px 6px -1px #25252514}.box-shadow-l{box-shadow:0 10px 15px -3px #25252514}.box-shadow-xl{box-shadow:0 20px 25px -5px #25252514}.anchored{position:relative}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]),::slotted([slot="anchor-full"]){position:absolute;top:0}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]){transform:translateY(-50%);z-index:2}::slotted([slot="anchor-right"]){right:var(--container-padding-right--mobile)}::slotted([slot="anchor-left"]){left:var(--container-padding-left--mobile)}::slotted([slot="anchor-full"]){transform:translateY(-100%);right:0;left:0;text-align:center;z-index:1}@media only screen and (max-width: 640px){.container{background-color:var(--background-color--mobile, var(--background-color));background-image:var( --background-image--mobile, var( --background-image, var(--background-gradient--mobile, var(--background-gradient)) ) )}:host([inverted]) .container{background-color:var( --background-color-inverted--mobile, var(--background-color-inverted) )}.border-side-top--mobile{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--mobile{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--mobile{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--mobile{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--mobile{border-inline-style:none;border-block-style:solid}.border-side-inline--mobile{border-block-style:none;border-inline-style:solid}.no-border-radius-top--mobile{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--mobile{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--mobile{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--mobile{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--mobile{border-radius:var(--px-radius-none)}}.border-s ::slotted([slot="anchor-full"]){right:calc(var(--px-border-size-s) * -1);left:calc(var(--px-border-size-s) * -1)}.border-m ::slotted([slot="anchor-full"]){right:calc(var(--px-border-size-m) * -1);left:calc(var(--px-border-size-m) * -1)}.border-l ::slotted([slot="anchor-full"]){right:calc(var(--px-border-l) * -1);left:calc(var(--px-border-l) * -1)}@media only screen and (min-width: 768px) and (max-width: 1024px){.container{padding:var(--container-padding-top--tablet) var(--container-padding-right--tablet) var(--container-padding-bottom--tablet) var(--container-padding-left--tablet);background-color:var(--background-color--tablet, var(--background-color));background-image:var( --background-image--tablet, var( --background-image, var(--background-gradient--tablet, var(--background-gradient)) ) )}:host([inverted]) .container{background-color:var( --background-color-inverted--tablet, var(--background-color-inverted) )}.no-border-radius-top--tablet{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--tablet{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--tablet{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--tablet{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--tablet{border-radius:var(--px-radius-none)}.border-side-top--tablet{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--tablet{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--tablet{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--tablet{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--tablet{border-inline-style:none;border-block-style:solid}.border-side-inline--tablet{border-block-style:none;border-inline-style:solid}::slotted([slot="anchor-right"]){right:var(--container-padding-right--tablet)}::slotted([slot="anchor-left"]){left:var(--container-padding-left--tablet)}}@media only screen and (min-width: 1025px){.container{padding:var(--container-padding-top--laptop) var(--container-padding-right--laptop) var(--container-padding-bottom--laptop) var(--container-padding-left--laptop);background-color:var(--background-color--laptop, var(--background-color));background-image:var( --background-image--laptop, var( --background-image, var(--background-gradient--laptop, var(--background-gradient)) ) )}:host([inverted]) .container{background-color:var( --background-color-inverted--laptop, var(--background-color-inverted) )}.no-border-radius-top--laptop{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop{border-radius:var(--px-radius-none)}::slotted([slot="anchor-right"]){right:var(--container-padding-right--laptop)}::slotted([slot="anchor-left"]){left:var(--container-padding-left--laptop)}.border-side-top--laptop{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--laptop{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--laptop{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--laptop{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--laptop{border-inline-style:none;border-block-style:solid}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}';
|
|
2023
|
+
const containerCss = ':host{display:block}.container{font-family:var(--px-font-family);background-color:var(--background-color);background-image:var(--background-image);background:var(--background-gradient);border-radius:var(--px-radius-main);padding:var(--container-padding-top--mobile) var(--container-padding-right--mobile) var(--container-padding-bottom--mobile) var(--container-padding-left--mobile);box-sizing:border-box}:host([inverted]) .container{background-color:var(--background-color-inverted)}.border-none{border:none}.border-s{border:var(--px-border-size-s) solid var(--border-color)}.border-m{border:var(--px-border-size-m) solid var(--border-color)}.border-l{border:var(--px-border-size-l) solid var(--border-color)}.border-side-top{border-bottom-style:none;border-right-style:none;border-left-style:none}.border-side-right{border-top-style:none;border-bottom-style:none;border-left-style:none}.border-side-bottom{border-top-style:none;border-right-style:none;border-left-style:none}.border-side-left{border-top-style:none;border-right-style:none;border-bottom-style:none}.border-side-block{border-inline-style:none}.border-side-inline{border-block-style:none}:host([inverted]) .border-s,:host([inverted]) .border-m,:host([inverted]) .border-l{border-color:var(--border-color-inverted)}.border-radius-main{border-radius:var(--px-radius-main)}.border-radius-pill{border-radius:var(--px-radius-pill)}.no-border-radius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all,.border-radius-none{border-radius:var(--px-radius-none)}.bgimg{background-repeat:no-repeat}.background-size-cover{background-size:cover;background-position:center center}.background-size-contain{background-size:contain}.box-shadow-none{box-shadow:none}.box-shadow-s{box-shadow:0 1px 2px #2525251f}.box-shadow-m{box-shadow:0 4px 6px -1px #25252514}.box-shadow-l{box-shadow:0 10px 15px -3px #25252514}.box-shadow-xl{box-shadow:0 20px 25px -5px #25252514}.anchored{position:relative}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]),::slotted([slot="anchor-full"]){position:absolute;top:0}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]){transform:translateY(-50%);z-index:2}::slotted([slot="anchor-right"]){right:var(--container-padding-right--mobile)}::slotted([slot="anchor-left"]){left:var(--container-padding-left--mobile)}::slotted([slot="anchor-full"]){transform:translateY(-100%);right:0;left:0;text-align:center;z-index:1}@media only screen and (max-width: 640px){.container{background-color:var(--background-color--mobile, var(--background-color));background-image:var( --background-image--mobile, var( --background-image, var(--background-gradient--mobile, var(--background-gradient)) ) )}:host([inverted]) .container{background-color:var( --background-color-inverted--mobile, var(--background-color-inverted) )}.border-side-top--mobile{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--mobile{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--mobile{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--mobile{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--mobile{border-inline-style:none;border-block-style:solid}.border-side-inline--mobile{border-block-style:none;border-inline-style:solid}.no-border-radius-top--mobile{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--mobile{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--mobile{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--mobile{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--mobile{border-radius:var(--px-radius-none)}}.border-s ::slotted([slot="anchor-full"]){right:calc(var(--px-border-size-s) * -1);left:calc(var(--px-border-size-s) * -1)}.border-m ::slotted([slot="anchor-full"]){right:calc(var(--px-border-size-m) * -1);left:calc(var(--px-border-size-m) * -1)}.border-l ::slotted([slot="anchor-full"]){right:calc(var(--px-border-l) * -1);left:calc(var(--px-border-l) * -1)}@media only screen and (min-width: 768px) and (max-width: 1024px){.container{padding:var(--container-padding-top--tablet) var(--container-padding-right--tablet) var(--container-padding-bottom--tablet) var(--container-padding-left--tablet);background-color:var(--background-color--tablet, var(--background-color));background-image:var( --background-image--tablet, var( --background-image, var(--background-gradient--tablet, var(--background-gradient)) ) )}:host([inverted]) .container{background-color:var( --background-color-inverted--tablet, var(--background-color-inverted) )}.no-border-radius-top--tablet{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--tablet{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--tablet{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--tablet{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--tablet{border-radius:var(--px-radius-none)}.border-side-top--tablet{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--tablet{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--tablet{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--tablet{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--tablet{border-inline-style:none;border-block-style:solid}.border-side-inline--tablet{border-block-style:none;border-inline-style:solid}::slotted([slot="anchor-right"]){right:var(--container-padding-right--tablet)}::slotted([slot="anchor-left"]){left:var(--container-padding-left--tablet)}}@media only screen and (min-width: 1025px){.container{padding:var(--container-padding-top--laptop) var(--container-padding-right--laptop) var(--container-padding-bottom--laptop) var(--container-padding-left--laptop);background-color:var(--background-color--laptop, var(--background-color));background-image:var( --background-image--laptop, var( --background-image, var(--background-gradient--laptop, var(--background-gradient)) ) )}:host([inverted]) .container{background-color:var( --background-color-inverted--laptop, var(--background-color-inverted) )}.no-border-radius-top--laptop{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop{border-radius:var(--px-radius-none)}::slotted([slot="anchor-right"]){right:var(--container-padding-right--laptop)}::slotted([slot="anchor-left"]){left:var(--container-padding-left--laptop)}.border-side-top--laptop{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--laptop{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--laptop{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--laptop{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--laptop{border-inline-style:none;border-block-style:solid}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}';
|
|
2031
2024
|
const containerStyles = new CSSStyleSheet();
|
|
2032
2025
|
containerStyles.replaceSync(containerCss);
|
|
2033
2026
|
const anchorValues = ["anchor-right", "anchor-left", "anchor-full"];
|
|
@@ -2129,7 +2122,7 @@ const _Container = class _Container extends PxElement {
|
|
|
2129
2122
|
}
|
|
2130
2123
|
}
|
|
2131
2124
|
if (((_c = this.parentElement) == null ? void 0 : _c.localName) === "px-grid-item" || ((_d = this.parentElement) == null ? void 0 : _d.localName) === "px-a") {
|
|
2132
|
-
this
|
|
2125
|
+
this.style.height = "100%";
|
|
2133
2126
|
}
|
|
2134
2127
|
}
|
|
2135
2128
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
@@ -3307,10 +3300,11 @@ const _Accordion = class _Accordion extends PxElement {
|
|
|
3307
3300
|
_Accordion.nativeName = "details";
|
|
3308
3301
|
let Accordion = _Accordion;
|
|
3309
3302
|
customElements.define("px-accordion", Accordion);
|
|
3310
|
-
const imgCss = 'img{display:inline-block;
|
|
3303
|
+
const imgCss = ':host{display:inline-block;line-height:0}picture{display:inline-block}img{display:inline-block;border-style:none;width:var(--img-width--mobile, auto);max-width:100%}.border-radius-main,.border-radius-main img{border-radius:var(--px-radius-main)}.border-radius-pill,.border-radius-pill img{border-radius:var(--px-radius-pill)}.no-border-radius-top,.no-border-radius-top img{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right,.no-border-radius-right img{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom,.no-border-radius-bottom img{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left,.no-border-radius-left img{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all,.no-border-radius-all img{border-radius:var(--px-radius-none)}@media only screen and (max-width: 767px){:host([hide-for="mobile"]),:host([show-for="tablet"]),:host([show-for="laptop"]),.hide-for-mobile,.show-for-tablet,.show-for-laptop{display:none}.no-border-radius-top--mobile,.no-border-radius-top--mobile img{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--mobile,.no-border-radius-right--mobile img{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--mobile,.no-border-radius-bottom--mobile img{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--mobile,.no-border-radius-left--mobile img{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--mobile,.no-border-radius-all--mobile img{border-radius:var(--px-radius-none)}}@media only screen and (min-width: 768px) and (max-width: 1024px){img{width:var(--img-width--tablet, auto)}:host([hide-for="tablet"]),:host([show-for="mobile"]),:host([show-for="laptop"]),.hide-for-tablet,.show-for-mobile,.show-for-laptop{display:none}.no-border-radius-top--tablet,.no-border-radius-top--tablet img{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--tablet,.no-border-radius-right--tablet img{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--tablet,.no-border-radius-bottom--tablet img{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--tablet,.no-border-radius-left--tablet img{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--tablet,.no-border-radius-all--tablet img{border-radius:var(--px-radius-none)}}@media only screen and (min-width: 1025px){img{width:var(--img-width--laptop, auto)}:host([hide-for="laptop"]),:host([show-for="mobile"]),:host([show-for="tablet"]),.hide-for-laptop,.show-for-mobile,.show-for-tablet{display:none}.no-border-radius-top--laptop,.no-border-radius-top--laptop img{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop,.no-border-radius-right--laptop img{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop,.no-border-radius-bottom--laptop img{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop,.no-border-radius-left--laptop img{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop,.no-border-radius-all--laptop img{border-radius:var(--px-radius-none)}}@media only screen and (min-width: 1441px){img{width:var(--img-width--desktop, auto)}}';
|
|
3311
3304
|
const styleSheet$8 = new CSSStyleSheet();
|
|
3312
3305
|
styleSheet$8.replaceSync(imgCss);
|
|
3313
3306
|
const breakpointsValues = ["", "mobile", "tablet", "laptop"];
|
|
3307
|
+
const imageWidthValues = ["", "default", "s", "m", "l"];
|
|
3314
3308
|
class AbstractImage extends PxElement {
|
|
3315
3309
|
constructor() {
|
|
3316
3310
|
super(styleSheet$8);
|
|
@@ -3324,7 +3318,12 @@ class AbstractImage extends PxElement {
|
|
|
3324
3318
|
"no-border-radius",
|
|
3325
3319
|
"no-border-radius--mobile",
|
|
3326
3320
|
"no-border-radius--tablet",
|
|
3327
|
-
"no-border-radius--laptop"
|
|
3321
|
+
"no-border-radius--laptop",
|
|
3322
|
+
"width",
|
|
3323
|
+
"width--mobile",
|
|
3324
|
+
"width--tablet",
|
|
3325
|
+
"width--laptop",
|
|
3326
|
+
"width--desktop"
|
|
3328
3327
|
];
|
|
3329
3328
|
}
|
|
3330
3329
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
@@ -3353,12 +3352,60 @@ class AbstractImage extends PxElement {
|
|
|
3353
3352
|
noBorderRadiusValues
|
|
3354
3353
|
);
|
|
3355
3354
|
break;
|
|
3355
|
+
case "width":
|
|
3356
|
+
case "width--mobile":
|
|
3357
|
+
case "width--tablet":
|
|
3358
|
+
case "width--laptop":
|
|
3359
|
+
case "width--desktop":
|
|
3360
|
+
this.updateWidth(attrName, oldValue, newValue, imageWidthValues);
|
|
3361
|
+
break;
|
|
3356
3362
|
default:
|
|
3357
3363
|
super.attributeChangedCallback(attrName, oldValue, newValue);
|
|
3358
3364
|
break;
|
|
3359
3365
|
}
|
|
3360
3366
|
}
|
|
3361
3367
|
}
|
|
3368
|
+
updateWidth(attrName, oldValue, newValue, attrValues) {
|
|
3369
|
+
if (!this.checkName(attrValues, newValue)) {
|
|
3370
|
+
console.error(
|
|
3371
|
+
`${newValue} is not an allowed ${attrName} value for ${this.$el}`
|
|
3372
|
+
);
|
|
3373
|
+
return;
|
|
3374
|
+
}
|
|
3375
|
+
const hasBreakpoint = attrName.indexOf("--") > -1;
|
|
3376
|
+
const cssPropertyName = hasBreakpoint ? attrName.split("--")[0] : attrName;
|
|
3377
|
+
const breakpoints = [];
|
|
3378
|
+
if (!hasBreakpoint) {
|
|
3379
|
+
if (!this.getAttribute(cssPropertyName + "--mobile")) {
|
|
3380
|
+
breakpoints.push("mobile");
|
|
3381
|
+
}
|
|
3382
|
+
if (!this.getAttribute(cssPropertyName + "--tablet")) {
|
|
3383
|
+
breakpoints.push("tablet");
|
|
3384
|
+
}
|
|
3385
|
+
if (!this.getAttribute(cssPropertyName + "--laptop")) {
|
|
3386
|
+
breakpoints.push("laptop");
|
|
3387
|
+
}
|
|
3388
|
+
if (!this.getAttribute(cssPropertyName + "--desktop")) {
|
|
3389
|
+
breakpoints.push("desktop");
|
|
3390
|
+
}
|
|
3391
|
+
breakpoints.forEach((breakpoint) => {
|
|
3392
|
+
this.updateStyle(cssPropertyName, breakpoint, oldValue);
|
|
3393
|
+
this.updateStyle(cssPropertyName, breakpoint, newValue);
|
|
3394
|
+
});
|
|
3395
|
+
} else {
|
|
3396
|
+
const breakpoint = attrName.split("--")[1];
|
|
3397
|
+
this.updateStyle(cssPropertyName, breakpoint, oldValue);
|
|
3398
|
+
this.updateStyle(cssPropertyName, breakpoint, newValue);
|
|
3399
|
+
}
|
|
3400
|
+
}
|
|
3401
|
+
updateStyle(cssName, breakpoint, value) {
|
|
3402
|
+
if (value !== null && value !== "" && value !== "default") {
|
|
3403
|
+
this.$el.style.setProperty(
|
|
3404
|
+
`--img-${cssName}--${breakpoint}`,
|
|
3405
|
+
`var(--px-image-${value}-${breakpoint === "laptop" ? "desktop" : breakpoint})`
|
|
3406
|
+
);
|
|
3407
|
+
}
|
|
3408
|
+
}
|
|
3362
3409
|
updateAttribute(attrName, oldValue, newValue, attrValues) {
|
|
3363
3410
|
if (!this.checkName(attrValues, newValue)) {
|
|
3364
3411
|
console.error(
|
|
@@ -3436,6 +3483,36 @@ class AbstractImage extends PxElement {
|
|
|
3436
3483
|
set noBorderRadiusLaptop(value) {
|
|
3437
3484
|
this.setAttribute("no-border-radius--laptop", value);
|
|
3438
3485
|
}
|
|
3486
|
+
get width() {
|
|
3487
|
+
return this.getAttribute("width");
|
|
3488
|
+
}
|
|
3489
|
+
set width(value) {
|
|
3490
|
+
this.setAttribute("width", value);
|
|
3491
|
+
}
|
|
3492
|
+
get widthMobile() {
|
|
3493
|
+
return this.getAttribute("width--mobile");
|
|
3494
|
+
}
|
|
3495
|
+
set widthMobile(value) {
|
|
3496
|
+
this.setAttribute("width--mobile", value);
|
|
3497
|
+
}
|
|
3498
|
+
get widthTablet() {
|
|
3499
|
+
return this.getAttribute("width--tablet");
|
|
3500
|
+
}
|
|
3501
|
+
set widthTablet(value) {
|
|
3502
|
+
this.setAttribute("width--tablet", value);
|
|
3503
|
+
}
|
|
3504
|
+
get widthLaptop() {
|
|
3505
|
+
return this.getAttribute("width--laptop");
|
|
3506
|
+
}
|
|
3507
|
+
set widthLaptop(value) {
|
|
3508
|
+
this.setAttribute("width--laptop", value);
|
|
3509
|
+
}
|
|
3510
|
+
get widthDesktop() {
|
|
3511
|
+
return this.getAttribute("width--desktop");
|
|
3512
|
+
}
|
|
3513
|
+
set widthDesktop(value) {
|
|
3514
|
+
this.setAttribute("width--desktop", value);
|
|
3515
|
+
}
|
|
3439
3516
|
}
|
|
3440
3517
|
const _Image = class _Image extends AbstractImage {
|
|
3441
3518
|
constructor() {
|
|
@@ -4262,7 +4339,6 @@ class Tab extends HTMLElement {
|
|
|
4262
4339
|
if (!isFalsy(value)) {
|
|
4263
4340
|
this.$button.setAttribute("aria-selected", value);
|
|
4264
4341
|
this.$button.removeAttribute("tabindex");
|
|
4265
|
-
this.$button.focus();
|
|
4266
4342
|
} else {
|
|
4267
4343
|
this.$button.removeAttribute("aria-selected");
|
|
4268
4344
|
this.$button.tabIndex = -1;
|
|
@@ -4971,7 +5047,7 @@ const _Paragraph = class _Paragraph extends PxElement {
|
|
|
4971
5047
|
_Paragraph.nativeName = "p";
|
|
4972
5048
|
let Paragraph = _Paragraph;
|
|
4973
5049
|
customElements.define("px-p", Paragraph);
|
|
4974
|
-
const typographyCss = "*{font-family:var(--px-font-family)}::slotted(ul),::slotted(ol){margin:0 0 0 var(--px-spacing-inside-section-default-desktop);padding:0}::slotted(b),::slotted(strong){font-weight:700}:host([inverted]) slot{color:var(--px-color-
|
|
5050
|
+
const typographyCss = "*{font-family:var(--px-font-family)}::slotted(ul),::slotted(ol){margin:0 0 0 var(--px-spacing-inside-section-default-desktop);padding:0}::slotted(b),::slotted(strong){font-weight:700}:host([inverted]) slot{color:var(--px-text-color-body-neutral-strong-inverted)}";
|
|
4975
5051
|
const lightStyles = ".li{padding-bottom:var(--px-padding-xs)}";
|
|
4976
5052
|
const typographyStyles$1 = new CSSStyleSheet();
|
|
4977
5053
|
const headingStyles = new CSSStyleSheet();
|
|
@@ -5409,6 +5485,7 @@ export {
|
|
|
5409
5485
|
VStack,
|
|
5410
5486
|
WithFlexAttributes,
|
|
5411
5487
|
addGlobalStylesheet,
|
|
5488
|
+
alignItemsValues,
|
|
5412
5489
|
backgroundColorValues,
|
|
5413
5490
|
backgroundSizeValues,
|
|
5414
5491
|
backgroundValues,
|
|
@@ -5421,6 +5498,7 @@ export {
|
|
|
5421
5498
|
buttonIconVariantValues,
|
|
5422
5499
|
colorValues,
|
|
5423
5500
|
contentAlignmentValues,
|
|
5501
|
+
directionValues,
|
|
5424
5502
|
fontsizeValues,
|
|
5425
5503
|
fontweightValues,
|
|
5426
5504
|
gapValues,
|
|
@@ -5433,6 +5511,7 @@ export {
|
|
|
5433
5511
|
iconSizeValues$1 as iconSizeValues,
|
|
5434
5512
|
isFalsy,
|
|
5435
5513
|
itemsAlignmentValues,
|
|
5514
|
+
justifyContentValues,
|
|
5436
5515
|
linkShapeValues,
|
|
5437
5516
|
linkVariantValues,
|
|
5438
5517
|
noBorderRadiusValues,
|
|
@@ -5447,5 +5526,6 @@ export {
|
|
|
5447
5526
|
tagShapeValues,
|
|
5448
5527
|
tagVariantValues,
|
|
5449
5528
|
textalignValues,
|
|
5450
|
-
variantValues$1 as variantValues
|
|
5529
|
+
variantValues$1 as variantValues,
|
|
5530
|
+
wrapValues
|
|
5451
5531
|
};
|