@proximus/lavender 2.0.0-alpha.13 → 2.0.0-alpha.15
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 +34 -29
- package/dist/lavender.umd.js +1 -1
- package/package.json +1 -1
package/dist/lavender.es.js
CHANGED
|
@@ -3577,7 +3577,7 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
|
|
|
3577
3577
|
super(bannerStyles);
|
|
3578
3578
|
this.template = () => `<div class="banner">
|
|
3579
3579
|
<div class="contrast-helper"></div>
|
|
3580
|
-
<px-container class="banner-container" padding
|
|
3580
|
+
<px-container class="banner-container" padding--mobile="m" border-radius="main" >
|
|
3581
3581
|
<px-grid gap="none">
|
|
3582
3582
|
<px-container padding="none" background-color="none">
|
|
3583
3583
|
<div class="banner-content">
|
|
@@ -3617,6 +3617,11 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
|
|
|
3617
3617
|
connectedCallback() {
|
|
3618
3618
|
var _a;
|
|
3619
3619
|
(_a = super.connectedCallback) == null ? void 0 : _a.call(this);
|
|
3620
|
+
if (this.reduced) {
|
|
3621
|
+
this.$container.setAttribute("padding", "m");
|
|
3622
|
+
} else {
|
|
3623
|
+
this.$container.setAttribute("padding", "l");
|
|
3624
|
+
}
|
|
3620
3625
|
this.createGridTemplateAreas();
|
|
3621
3626
|
this.createGridding();
|
|
3622
3627
|
}
|
|
@@ -3704,20 +3709,20 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
|
|
|
3704
3709
|
}
|
|
3705
3710
|
createGridding(value) {
|
|
3706
3711
|
const breakpoints = [
|
|
3707
|
-
{ prop: "hasGridding",
|
|
3712
|
+
{ prop: "hasGridding", gridAttr: "grid-cols", attr: "col-span" },
|
|
3708
3713
|
{
|
|
3709
3714
|
prop: "hasGriddingMobile",
|
|
3710
|
-
|
|
3715
|
+
gridAttr: "grid-cols--mobile",
|
|
3711
3716
|
attr: "col-span--mobile"
|
|
3712
3717
|
},
|
|
3713
3718
|
{
|
|
3714
3719
|
prop: "hasGriddingTablet",
|
|
3715
|
-
|
|
3720
|
+
gridAttr: "grid-cols--tablet",
|
|
3716
3721
|
attr: "col-span--tablet"
|
|
3717
3722
|
},
|
|
3718
3723
|
{
|
|
3719
3724
|
prop: "hasGriddingLaptop",
|
|
3720
|
-
|
|
3725
|
+
gridAttr: "grid-cols--laptop",
|
|
3721
3726
|
attr: "col-span--laptop"
|
|
3722
3727
|
}
|
|
3723
3728
|
];
|
|
@@ -3725,16 +3730,16 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
|
|
|
3725
3730
|
"px-grid > px-container"
|
|
3726
3731
|
);
|
|
3727
3732
|
if (value !== null) {
|
|
3728
|
-
breakpoints.forEach(({ prop,
|
|
3733
|
+
breakpoints.forEach(({ prop, gridAttr, attr }) => {
|
|
3729
3734
|
if (this[prop]) {
|
|
3730
|
-
this.$grid
|
|
3731
|
-
spanElement.setAttribute(attr, "2");
|
|
3735
|
+
this.$grid.setAttribute(gridAttr, "3");
|
|
3736
|
+
spanElement == null ? void 0 : spanElement.setAttribute(attr, "2");
|
|
3732
3737
|
}
|
|
3733
3738
|
});
|
|
3734
3739
|
} else {
|
|
3735
|
-
breakpoints.forEach(({
|
|
3736
|
-
this.$grid
|
|
3737
|
-
spanElement.
|
|
3740
|
+
breakpoints.forEach(({ gridAttr, attr }) => {
|
|
3741
|
+
this.$grid.setAttribute(gridAttr, "1");
|
|
3742
|
+
spanElement == null ? void 0 : spanElement.setAttribute(attr, "1");
|
|
3738
3743
|
});
|
|
3739
3744
|
}
|
|
3740
3745
|
}
|
|
@@ -6354,7 +6359,7 @@ class CellCheckbox extends WithExtraAttributes {
|
|
|
6354
6359
|
return `
|
|
6355
6360
|
<div class="cell-checkbox">
|
|
6356
6361
|
<px-cell hoverable>
|
|
6357
|
-
<px-checkbox slot="prefix"
|
|
6362
|
+
<px-checkbox slot="prefix" inert ${this.name ? 'name="${this.name"' : ""} ${this.value ? 'value="${this.value"' : ""}></px-checkbox>
|
|
6358
6363
|
<slot name="visual" slot="visual"></slot>
|
|
6359
6364
|
<slot name="label" slot="label"></slot>
|
|
6360
6365
|
<slot name="description" slot="description"></slot>
|
|
@@ -6763,7 +6768,7 @@ class CellSwitch extends WithExtraAttributes {
|
|
|
6763
6768
|
return `
|
|
6764
6769
|
<div class="cell-switch">
|
|
6765
6770
|
<px-cell hoverable>
|
|
6766
|
-
<px-switch slot="action-indicator"
|
|
6771
|
+
<px-switch slot="action-indicator" inert></px-switch>
|
|
6767
6772
|
<slot name="visual" slot="visual"></slot>
|
|
6768
6773
|
<slot name="label" slot="label"></slot>
|
|
6769
6774
|
<slot name="description" slot="description"></slot>
|
|
@@ -7662,7 +7667,7 @@ class CellRadio extends WithExtraAttributes {
|
|
|
7662
7667
|
return `
|
|
7663
7668
|
<div class="cell-radio">
|
|
7664
7669
|
<px-cell hoverable>
|
|
7665
|
-
<px-radio slot="prefix"
|
|
7670
|
+
<px-radio slot="prefix" inert></px-radio>
|
|
7666
7671
|
<slot name="visual" slot="visual"></slot>
|
|
7667
7672
|
<slot name="label" slot="label"></slot>
|
|
7668
7673
|
<slot name="description" slot="description"></slot>
|
|
@@ -8898,20 +8903,20 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
8898
8903
|
}
|
|
8899
8904
|
createGridding(value) {
|
|
8900
8905
|
const breakpoints = [
|
|
8901
|
-
{ prop: "hasGridding",
|
|
8906
|
+
{ prop: "hasGridding", gridAttr: "grid-cols", attr: "col-span" },
|
|
8902
8907
|
{
|
|
8903
8908
|
prop: "hasGriddingMobile",
|
|
8904
|
-
|
|
8909
|
+
gridAttr: "grid-cols--mobile",
|
|
8905
8910
|
attr: "col-span--mobile"
|
|
8906
8911
|
},
|
|
8907
8912
|
{
|
|
8908
8913
|
prop: "hasGriddingTablet",
|
|
8909
|
-
|
|
8914
|
+
gridAttr: "grid-cols--tablet",
|
|
8910
8915
|
attr: "col-span--tablet"
|
|
8911
8916
|
},
|
|
8912
8917
|
{
|
|
8913
8918
|
prop: "hasGriddingLaptop",
|
|
8914
|
-
|
|
8919
|
+
gridAttr: "grid-cols--laptop",
|
|
8915
8920
|
attr: "col-span--laptop"
|
|
8916
8921
|
}
|
|
8917
8922
|
];
|
|
@@ -8919,16 +8924,16 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
8919
8924
|
"px-grid > px-container"
|
|
8920
8925
|
);
|
|
8921
8926
|
if (value !== null) {
|
|
8922
|
-
breakpoints.forEach(({ prop,
|
|
8927
|
+
breakpoints.forEach(({ prop, gridAttr, attr }) => {
|
|
8923
8928
|
if (this[prop]) {
|
|
8924
|
-
this.$grid
|
|
8925
|
-
spanElement.setAttribute(attr, "2");
|
|
8929
|
+
this.$grid.setAttribute(gridAttr, "3");
|
|
8930
|
+
spanElement == null ? void 0 : spanElement.setAttribute(attr, "2");
|
|
8926
8931
|
}
|
|
8927
8932
|
});
|
|
8928
8933
|
} else {
|
|
8929
|
-
breakpoints.forEach(({
|
|
8930
|
-
this.$grid
|
|
8931
|
-
spanElement.
|
|
8934
|
+
breakpoints.forEach(({ gridAttr, attr }) => {
|
|
8935
|
+
this.$grid.setAttribute(gridAttr, "1");
|
|
8936
|
+
spanElement == null ? void 0 : spanElement.setAttribute(attr, "1");
|
|
8932
8937
|
});
|
|
8933
8938
|
}
|
|
8934
8939
|
}
|
|
@@ -12964,7 +12969,7 @@ class SelectableBoxCheckbox extends WithExtraAttributes {
|
|
|
12964
12969
|
<px-selectable-box>
|
|
12965
12970
|
<slot name="media" slot="media"></slot>
|
|
12966
12971
|
<px-checkbox
|
|
12967
|
-
slot="action"
|
|
12972
|
+
slot="action" inert
|
|
12968
12973
|
name="${this.name}"
|
|
12969
12974
|
value="${this.value}"
|
|
12970
12975
|
></px-checkbox>
|
|
@@ -13237,7 +13242,7 @@ class SelectableBoxRadio extends WithExtraAttributes {
|
|
|
13237
13242
|
<px-selectable-box>
|
|
13238
13243
|
<slot name="media" slot="media"></slot>
|
|
13239
13244
|
<px-radio
|
|
13240
|
-
slot="action"
|
|
13245
|
+
slot="action" inert
|
|
13241
13246
|
name="${this.name}"
|
|
13242
13247
|
value="${this.value}"
|
|
13243
13248
|
></px-radio>
|
|
@@ -15262,7 +15267,7 @@ class TileCheckbox extends WithExtraAttributes {
|
|
|
15262
15267
|
<div class="tile-checkbox">
|
|
15263
15268
|
<px-tile hoverable>
|
|
15264
15269
|
<slot name="prefix" slot="prefix"></slot>
|
|
15265
|
-
<px-checkbox slot="suffix"
|
|
15270
|
+
<px-checkbox slot="suffix" inert></px-checkbox>
|
|
15266
15271
|
<slot name="label" slot="label"></slot>
|
|
15267
15272
|
<slot name="description" slot="description"></slot>
|
|
15268
15273
|
</px-tile>
|
|
@@ -15540,7 +15545,7 @@ class TileRadio extends WithExtraAttributes {
|
|
|
15540
15545
|
<div class="tile-radio">
|
|
15541
15546
|
<px-tile hoverable>
|
|
15542
15547
|
<slot name="prefix" slot="prefix"></slot>
|
|
15543
|
-
<px-radio slot="suffix"
|
|
15548
|
+
<px-radio slot="suffix" inert></px-radio>
|
|
15544
15549
|
<slot name="label" slot="label"></slot>
|
|
15545
15550
|
<slot name="description" slot="description"></slot>
|
|
15546
15551
|
</px-tile>
|
|
@@ -15980,7 +15985,7 @@ class TileSwitch extends WithExtraAttributes {
|
|
|
15980
15985
|
<div class="tile-switch">
|
|
15981
15986
|
<px-tile hoverable>
|
|
15982
15987
|
<slot name="prefix" slot="prefix"></slot>
|
|
15983
|
-
<px-switch slot="suffix"
|
|
15988
|
+
<px-switch slot="suffix" inert></px-switch>
|
|
15984
15989
|
<slot name="label" slot="label"></slot>
|
|
15985
15990
|
<slot name="description" slot="description"></slot>
|
|
15986
15991
|
</px-tile>
|