@proximus/lavender 1.4.6-beta.1 → 1.4.7-alpha.2
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 +30 -26
- package/dist/lavender.umd.js +1 -1
- package/package.json +1 -1
package/dist/lavender.es.js
CHANGED
|
@@ -3695,7 +3695,6 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
|
|
|
3695
3695
|
<slot name="title"></slot>
|
|
3696
3696
|
<slot name="description"></slot>
|
|
3697
3697
|
<slot name="content"></slot>
|
|
3698
|
-
|
|
3699
3698
|
</div>
|
|
3700
3699
|
</px-container>
|
|
3701
3700
|
</px-grid>
|
|
@@ -3729,6 +3728,11 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
|
|
|
3729
3728
|
connectedCallback() {
|
|
3730
3729
|
var _a;
|
|
3731
3730
|
(_a = super.connectedCallback) == null ? void 0 : _a.call(this);
|
|
3731
|
+
if (this.reduced) {
|
|
3732
|
+
this.$container.setAttribute("padding", "m");
|
|
3733
|
+
} else {
|
|
3734
|
+
this.$container.setAttribute("padding", "l");
|
|
3735
|
+
}
|
|
3732
3736
|
this.createGridTemplateAreas();
|
|
3733
3737
|
this.createGridding();
|
|
3734
3738
|
this.observer = new MutationObserver(() => {
|
|
@@ -3827,20 +3831,20 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
|
|
|
3827
3831
|
}
|
|
3828
3832
|
createGridding(value) {
|
|
3829
3833
|
const breakpoints = [
|
|
3830
|
-
{ prop: "hasGridding",
|
|
3834
|
+
{ prop: "hasGridding", gridAttr: "grid-cols", attr: "col-span" },
|
|
3831
3835
|
{
|
|
3832
3836
|
prop: "hasGriddingMobile",
|
|
3833
|
-
|
|
3837
|
+
gridAttr: "grid-cols--mobile",
|
|
3834
3838
|
attr: "col-span--mobile"
|
|
3835
3839
|
},
|
|
3836
3840
|
{
|
|
3837
3841
|
prop: "hasGriddingTablet",
|
|
3838
|
-
|
|
3842
|
+
gridAttr: "grid-cols--tablet",
|
|
3839
3843
|
attr: "col-span--tablet"
|
|
3840
3844
|
},
|
|
3841
3845
|
{
|
|
3842
3846
|
prop: "hasGriddingLaptop",
|
|
3843
|
-
|
|
3847
|
+
gridAttr: "grid-cols--laptop",
|
|
3844
3848
|
attr: "col-span--laptop"
|
|
3845
3849
|
}
|
|
3846
3850
|
];
|
|
@@ -3848,16 +3852,16 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
|
|
|
3848
3852
|
"px-grid > px-container"
|
|
3849
3853
|
);
|
|
3850
3854
|
if (value !== null) {
|
|
3851
|
-
breakpoints.forEach(({ prop,
|
|
3855
|
+
breakpoints.forEach(({ prop, gridAttr, attr }) => {
|
|
3852
3856
|
if (this[prop]) {
|
|
3853
|
-
this.$grid
|
|
3854
|
-
spanElement.setAttribute(attr, "2");
|
|
3857
|
+
this.$grid.setAttribute(gridAttr, "3");
|
|
3858
|
+
spanElement == null ? void 0 : spanElement.setAttribute(attr, "2");
|
|
3855
3859
|
}
|
|
3856
3860
|
});
|
|
3857
3861
|
} else {
|
|
3858
|
-
breakpoints.forEach(({
|
|
3859
|
-
this.$grid
|
|
3860
|
-
spanElement.
|
|
3862
|
+
breakpoints.forEach(({ gridAttr, attr }) => {
|
|
3863
|
+
this.$grid.setAttribute(gridAttr, "1");
|
|
3864
|
+
spanElement == null ? void 0 : spanElement.setAttribute(attr, "1");
|
|
3861
3865
|
});
|
|
3862
3866
|
}
|
|
3863
3867
|
}
|
|
@@ -6881,7 +6885,7 @@ class CellSwitch extends WithExtraAttributes {
|
|
|
6881
6885
|
return `
|
|
6882
6886
|
<div class="cell-switch">
|
|
6883
6887
|
<px-cell hoverable>
|
|
6884
|
-
<px-switch slot="action-indicator"
|
|
6888
|
+
<px-switch slot="action-indicator" inert></px-switch>
|
|
6885
6889
|
<slot name="visual" slot="visual"></slot>
|
|
6886
6890
|
<slot name="label" slot="label"></slot>
|
|
6887
6891
|
<slot name="description" slot="description"></slot>
|
|
@@ -7775,7 +7779,7 @@ class CellRadio extends WithExtraAttributes {
|
|
|
7775
7779
|
return `
|
|
7776
7780
|
<div class="cell-radio">
|
|
7777
7781
|
<px-cell hoverable>
|
|
7778
|
-
<px-radio slot="prefix"
|
|
7782
|
+
<px-radio slot="prefix" inert></px-radio>
|
|
7779
7783
|
<slot name="visual" slot="visual"></slot>
|
|
7780
7784
|
<slot name="label" slot="label"></slot>
|
|
7781
7785
|
<slot name="description" slot="description"></slot>
|
|
@@ -9052,20 +9056,20 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
9052
9056
|
}
|
|
9053
9057
|
createGridding(value) {
|
|
9054
9058
|
const breakpoints = [
|
|
9055
|
-
{ prop: "hasGridding",
|
|
9059
|
+
{ prop: "hasGridding", gridAttr: "grid-cols", attr: "col-span" },
|
|
9056
9060
|
{
|
|
9057
9061
|
prop: "hasGriddingMobile",
|
|
9058
|
-
|
|
9062
|
+
gridAttr: "grid-cols--mobile",
|
|
9059
9063
|
attr: "col-span--mobile"
|
|
9060
9064
|
},
|
|
9061
9065
|
{
|
|
9062
9066
|
prop: "hasGriddingTablet",
|
|
9063
|
-
|
|
9067
|
+
gridAttr: "grid-cols--tablet",
|
|
9064
9068
|
attr: "col-span--tablet"
|
|
9065
9069
|
},
|
|
9066
9070
|
{
|
|
9067
9071
|
prop: "hasGriddingLaptop",
|
|
9068
|
-
|
|
9072
|
+
gridAttr: "grid-cols--laptop",
|
|
9069
9073
|
attr: "col-span--laptop"
|
|
9070
9074
|
}
|
|
9071
9075
|
];
|
|
@@ -9073,16 +9077,16 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
9073
9077
|
"px-grid > px-container"
|
|
9074
9078
|
);
|
|
9075
9079
|
if (value !== null) {
|
|
9076
|
-
breakpoints.forEach(({ prop,
|
|
9080
|
+
breakpoints.forEach(({ prop, gridAttr, attr }) => {
|
|
9077
9081
|
if (this[prop]) {
|
|
9078
|
-
this.$grid
|
|
9079
|
-
spanElement.setAttribute(attr, "2");
|
|
9082
|
+
this.$grid.setAttribute(gridAttr, "3");
|
|
9083
|
+
spanElement == null ? void 0 : spanElement.setAttribute(attr, "2");
|
|
9080
9084
|
}
|
|
9081
9085
|
});
|
|
9082
9086
|
} else {
|
|
9083
|
-
breakpoints.forEach(({
|
|
9084
|
-
this.$grid
|
|
9085
|
-
spanElement.
|
|
9087
|
+
breakpoints.forEach(({ gridAttr, attr }) => {
|
|
9088
|
+
this.$grid.setAttribute(gridAttr, "1");
|
|
9089
|
+
spanElement == null ? void 0 : spanElement.setAttribute(attr, "1");
|
|
9086
9090
|
});
|
|
9087
9091
|
}
|
|
9088
9092
|
}
|
|
@@ -15793,7 +15797,7 @@ class TileCheckbox extends WithExtraAttributes {
|
|
|
15793
15797
|
<div class="tile-checkbox">
|
|
15794
15798
|
<px-tile hoverable>
|
|
15795
15799
|
<slot name="prefix" slot="prefix"></slot>
|
|
15796
|
-
<px-checkbox slot="suffix"
|
|
15800
|
+
<px-checkbox slot="suffix" inert></px-checkbox>
|
|
15797
15801
|
<slot name="label" slot="label"></slot>
|
|
15798
15802
|
<slot name="description" slot="description"></slot>
|
|
15799
15803
|
</px-tile>
|
|
@@ -16073,7 +16077,7 @@ class TileRadio extends WithExtraAttributes {
|
|
|
16073
16077
|
<div class="tile-radio">
|
|
16074
16078
|
<px-tile hoverable>
|
|
16075
16079
|
<slot name="prefix" slot="prefix"></slot>
|
|
16076
|
-
<px-radio slot="suffix"
|
|
16080
|
+
<px-radio slot="suffix" inert></px-radio>
|
|
16077
16081
|
<slot name="label" slot="label"></slot>
|
|
16078
16082
|
<slot name="description" slot="description"></slot>
|
|
16079
16083
|
</px-tile>
|
|
@@ -16515,7 +16519,7 @@ class TileSwitch extends WithExtraAttributes {
|
|
|
16515
16519
|
<div class="tile-switch">
|
|
16516
16520
|
<px-tile hoverable>
|
|
16517
16521
|
<slot name="prefix" slot="prefix"></slot>
|
|
16518
|
-
<px-switch slot="suffix"
|
|
16522
|
+
<px-switch slot="suffix" inert></px-switch>
|
|
16519
16523
|
<slot name="label" slot="label"></slot>
|
|
16520
16524
|
<slot name="description" slot="description"></slot>
|
|
16521
16525
|
</px-tile>
|