@proximus/lavender 1.4.14-beta.2 → 1.4.15-alpha.1
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 +10 -11
- package/dist/lavender.umd.js +1 -1
- package/package.json +1 -1
package/dist/lavender.es.js
CHANGED
|
@@ -3982,7 +3982,6 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
|
|
|
3982
3982
|
<slot name="title"></slot>
|
|
3983
3983
|
<slot name="description"></slot>
|
|
3984
3984
|
<slot name="content"></slot>
|
|
3985
|
-
|
|
3986
3985
|
</div>
|
|
3987
3986
|
</px-container>
|
|
3988
3987
|
</px-grid>
|
|
@@ -4118,20 +4117,20 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
|
|
|
4118
4117
|
}
|
|
4119
4118
|
createGridding(value) {
|
|
4120
4119
|
const breakpoints = [
|
|
4121
|
-
{ prop: "hasGridding",
|
|
4120
|
+
{ prop: "hasGridding", gridAttr: "grid-cols", attr: "col-span" },
|
|
4122
4121
|
{
|
|
4123
4122
|
prop: "hasGriddingMobile",
|
|
4124
|
-
|
|
4123
|
+
gridAttr: "grid-cols--mobile",
|
|
4125
4124
|
attr: "col-span--mobile"
|
|
4126
4125
|
},
|
|
4127
4126
|
{
|
|
4128
4127
|
prop: "hasGriddingTablet",
|
|
4129
|
-
|
|
4128
|
+
gridAttr: "grid-cols--tablet",
|
|
4130
4129
|
attr: "col-span--tablet"
|
|
4131
4130
|
},
|
|
4132
4131
|
{
|
|
4133
4132
|
prop: "hasGriddingLaptop",
|
|
4134
|
-
|
|
4133
|
+
gridAttr: "grid-cols--laptop",
|
|
4135
4134
|
attr: "col-span--laptop"
|
|
4136
4135
|
}
|
|
4137
4136
|
];
|
|
@@ -4139,16 +4138,16 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
|
|
|
4139
4138
|
"px-grid > px-container"
|
|
4140
4139
|
);
|
|
4141
4140
|
if (value !== null) {
|
|
4142
|
-
breakpoints.forEach(({ prop,
|
|
4141
|
+
breakpoints.forEach(({ prop, gridAttr, attr }) => {
|
|
4143
4142
|
if (this[prop]) {
|
|
4144
|
-
this.$grid
|
|
4145
|
-
spanElement.setAttribute(attr, "2");
|
|
4143
|
+
this.$grid.setAttribute(gridAttr, "3");
|
|
4144
|
+
spanElement == null ? void 0 : spanElement.setAttribute(attr, "2");
|
|
4146
4145
|
}
|
|
4147
4146
|
});
|
|
4148
4147
|
} else {
|
|
4149
|
-
breakpoints.forEach(({
|
|
4150
|
-
this.$grid
|
|
4151
|
-
spanElement.
|
|
4148
|
+
breakpoints.forEach(({ gridAttr, attr }) => {
|
|
4149
|
+
this.$grid.setAttribute(gridAttr, "1");
|
|
4150
|
+
spanElement == null ? void 0 : spanElement.setAttribute(attr, "1");
|
|
4152
4151
|
});
|
|
4153
4152
|
}
|
|
4154
4153
|
}
|