@proximus/lavender 1.0.0-alpha.19 → 1.0.0-alpha.20
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 +531 -0
- package/dist/lavender.umd.js +1 -1
- package/package.json +2 -2
package/dist/lavender.es.js
CHANGED
|
@@ -1069,6 +1069,532 @@ class Page extends WithFlexAttributes {
|
|
|
1069
1069
|
if (customElements.get("px-page") === void 0) {
|
|
1070
1070
|
customElements.define("px-page", Page);
|
|
1071
1071
|
}
|
|
1072
|
+
const gridCss = ":host{--grid-cols: initial;--grid-cols--mobile: initial;--grid-cols--tablet: initial;--grid-cols--laptop: initial;--grid-cols--desktop: initial;--justify-content: initial;--justify-items: initial;--align-content: initial;--align-items: initial}.grid{display:grid;gap:var(--grid-gap--mobile, var(--px-spacing-inside-section-default-mobile));grid-template-columns:repeat(var(--grid-cols),minmax(0,1fr));justify-content:var(--justify-content);justify-items:var(--justify-items);align-content:var(--align-content);align-items:var(--align-items)}@media screen and (min-width: 768px){.grid{gap:var( --grid-gap--tablet, var(--px-spacing-inside-section-default-tablet) )}}@media screen and (min-width: 1025px){.grid{gap:var( --grid-gap--laptop, var(--px-spacing-inside-section-default-desktop) )}}.justify-content-normal{justify-content:normal}.justify-content-start{justify-content:start}.justify-content-end{justify-content:end}.justify-content-center{justify-content:center}.justify-content-space-between{justify-content:space-between}.justify-content-space-around{justify-content:space-around}.justify-content-space-evenly{justify-content:space-evenly}.justify-content-stretch{justify-content:stretch}.justify-items-start{justify-items:start}.justify-items-end{justify-items:end}.justify-items-center{justify-items:center}.justify-items-stretch{justify-items:stretch}.align-content-normal{align-content:normal}.align-content-start{align-content:start}.align-content-end{align-content:end}.align-content-center{align-content:center}.align-content-space-between{align-content:space-between}.align-content-space-around{align-content:space-around}.align-content-space-evenly{align-content:space-evenly}.align-content-stretch{align-content:stretch}.align-items-start{align-items:start}.align-items-end{align-items:end}.align-items-center{align-items:center}.align-items-stretch{align-items:stretch}@media only screen and (max-width: 767px){.grid{grid-template-columns:repeat(var(--grid-cols--mobile, var(--grid-cols)),minmax(0,1fr))}.justify-content-normal-mobile{justify-content:normal}.justify-content-start-mobile{justify-content:start}.justify-content-end-mobile{justify-content:end}.justify-content-center-mobile{justify-content:center}.justify-content-space-between-mobile{justify-content:space-between}.justify-content-space-around-mobile{justify-content:space-around}.justify-content-space-evenly-mobile{justify-content:space-evenly}.justify-content-stretch-mobile{justify-content:stretch}.justify-items-start-mobile{justify-items:start}.justify-items-end-mobile{justify-items:end}.justify-items-center-mobile{justify-items:center}.justify-items-stretch-mobile{justify-items:stretch}.align-content-normal-mobile{align-content:normal}.align-content-start-mobile{align-content:start}.align-content-end-mobile{align-content:end}.align-content-center-mobile{align-content:center}.align-content-space-between-mobile{align-content:space-between}.align-content-space-around-mobile{align-content:space-around}.align-content-space-evenly-mobile{align-content:space-evenly}.align-content-stretch-mobile{align-content:stretch}.align-items-start-mobile{align-items:start}.align-items-end-mobile{align-items:end}.align-items-center-mobile{align-items:center}.align-items-stretch-mobile{align-items:stretch}}@media only screen and (min-width: 768px) and (max-width: 1024px){.grid{grid-template-columns:repeat(var(--grid-cols--tablet, var(--grid-cols)),minmax(0,1fr))}.justify-content-normal-tablet{justify-content:normal}.justify-content-start-tablet{justify-content:start}.justify-content-end-tablet{justify-content:end}.justify-content-center-tablet{justify-content:center}.justify-content-space-between-tablet{justify-content:space-between}.justify-content-space-around-tablet{justify-content:space-around}.justify-content-space-evenly-tablet{justify-content:space-evenly}.justify-content-stretch-tablet{justify-content:stretch}.justify-items-start-tablet{justify-items:start}.justify-items-end-tablet{justify-items:end}.justify-items-center-tablet{justify-items:center}.justify-items-stretch-tablet{justify-items:stretch}.align-content-normal-tablet{align-content:normal}.align-content-start-tablet{align-content:start}.align-content-end-tablet{align-content:end}.align-content-center-tablet{align-content:center}.align-content-space-between-tablet{align-content:space-between}.align-content-space-around-tablet{align-content:space-around}.align-content-space-evenly-tablet{align-content:space-evenly}.align-content-stretch-tablet{align-content:stretch}.align-items-start-tablet{align-items:start}.align-items-end-tablet{align-items:end}.align-items-center-tablet{align-items:center}.align-items-stretch-tablet{align-items:stretch}}@media only screen and (min-width: 1025px){.grid{grid-template-columns:repeat(var(--grid-cols--laptop, var(--grid-cols)),minmax(0,1fr))}.justify-content-normal-laptop{justify-content:normal}.justify-content-start-laptop{justify-content:start}.justify-content-end-laptop{justify-content:end}.justify-content-center-laptop{justify-content:center}.justify-content-space-between-laptop{justify-content:space-between}.justify-content-space-around-laptop{justify-content:space-around}.justify-content-space-evenly-laptop{justify-content:space-evenly}.justify-content-stretch-laptop{justify-content:stretch}.justify-items-start-laptop{justify-items:start}.justify-items-end-laptop{justify-items:end}.justify-items-center-laptop{justify-items:center}.justify-items-stretch-laptop{justify-items:stretch}.align-content-normal-laptop{align-content:normal}.align-content-start-laptop{align-content:start}.align-content-end-laptop{align-content:end}.align-content-center-laptop{align-content:center}.align-content-space-between-laptop{align-content:space-between}.align-content-space-around-laptop{align-content:space-around}.align-content-space-evenly-laptop{align-content:space-evenly}.align-content-stretch-laptop{align-content:stretch}.align-items-start-laptop{align-items:start}.align-items-end-laptop{align-items:end}.align-items-center-laptop{align-items:center}.align-items-stretch-laptop{align-items:stretch}}";
|
|
1073
|
+
const gridItemCss = '::slotted([col-span="1"]){grid-column:span 1 / span 1}::slotted([col-span="2"]){grid-column:span 2 / span 2}::slotted([col-span="3"]){grid-column:span 3 / span 3}::slotted([col-span="4"]){grid-column:span 4 / span 4}::slotted([col-span="5"]){grid-column:span 5 / span 5}::slotted([col-span="6"]){grid-column:span 6 / span 6}::slotted([col-span="7"]){grid-column:span 7 / span 7}::slotted([col-span="8"]){grid-column:span 8 / span 8}::slotted([col-span="9"]){grid-column:span 9 / span 9}::slotted([col-span="10"]){grid-column:span 10 / span 10}::slotted([col-span="11"]){grid-column:span 11 / span 11}::slotted([col-span="12"]){grid-column:span 12 / span 12}::slotted([col-span="full"]){grid-column:1 / -1}::slotted([order="1"]){order:1}::slotted([order="2"]){order:2}::slotted([order="3"]){order:3}::slotted([order="4"]){order:4}::slotted([order="5"]){order:5}::slotted([order="6"]){order:6}::slotted([order="first"]){order:-9999}::slotted([order="last"]){order:9999}::slotted([order="none"]){order:0}::slotted([justify-self="auto"]){justify-self:auto}::slotted([justify-self="start"]){justify-self:start}::slotted([justify-self="end"]){justify-self:end}::slotted([justify-self="center"]){justify-self:center}::slotted([justify-self="stretch"]){justify-self:stretch}::slotted([align-self="auto"]){align-self:auto}::slotted([align-self="start"]){align-self:start}::slotted([align-self="end"]){align-self:end}::slotted([align-self="center"]){align-self:center}::slotted([align-self="stretch"]){align-self:stretch}::slotted([place-self="auto"]){place-self:auto}::slotted([place-self="start"]){place-self:start}::slotted([place-self="end"]){place-self:end}::slotted([place-self="center"]){place-self:center}::slotted([place-self="stretch"]){place-self:stretch}@media only screen and (max-width: 767px){::slotted([col--mobile="auto"]){grid-column:auto}::slotted([col-span--mobile="1"]){grid-column:span 1 / span 1}::slotted([col-span--mobile="2"]){grid-column:span 2 / span 2}::slotted([col-span--mobile="3"]){grid-column:span 3 / span 3}::slotted([col-span--mobile="4"]){grid-column:span 4 / span 4}::slotted([col-span--mobile="5"]){grid-column:span 5 / span 5}::slotted([col-span--mobile="6"]){grid-column:span 6 / span 6}::slotted([col-span--mobile="7"]){grid-column:span 7 / span 7}::slotted([col-span--mobile="8"]){grid-column:span 8 / span 8}::slotted([col-span--mobile="9"]){grid-column:span 9 / span 9}::slotted([col-span--mobile="10"]){grid-column:span 10 / span 10}::slotted([col-span--mobile="11"]){grid-column:span 11 / span 11}::slotted([col-span--mobile="12"]){grid-column:span 12 / span 12}::slotted([col-span--mobile="full"]){grid-column:1 / -1}::slotted([order--mobile="1"]){order:1}::slotted([order--mobile="2"]){order:2}::slotted([order--mobile="3"]){order:3}::slotted([order--mobile="4"]){order:4}::slotted([order--mobile="5"]){order:5}::slotted([order--mobile="6"]){order:6}::slotted([order--mobile="first"]){order:-9999}::slotted([order--mobile="last"]){order:9999}::slotted([order--mobile="none"]){order:0}::slotted([justify-self--mobile="auto"]){justify-self:auto}::slotted([justify-self--mobile="start"]){justify-self:start}::slotted([justify-self--mobile="end"]){justify-self:end}::slotted([justify-self--mobile="center"]){justify-self:center}::slotted([justify-self--mobile="stretch"]){justify-self:stretch}::slotted([align-self--mobile="auto"]){align-self:auto}::slotted([align-self--mobile="start"]){align-self:start}::slotted([align-self--mobile="end"]){align-self:end}::slotted([align-self--mobile="center"]){align-self:center}::slotted([align-self--mobile="stretch"]){align-self:stretch}::slotted([place-self--mobile="auto"]){place-self:auto}::slotted([place-self--mobile="start"]){place-self:start}::slotted([place-self--mobile="end"]){place-self:end}::slotted([place-self--mobile="center"]){place-self:center}::slotted([place-self--mobile="stretch"]){place-self:stretch}}@media only screen and (min-width: 768px) and (max-width: 1024px){::slotted([col--tablet="auto"]){grid-column:auto}::slotted([col-span--tablet="1"]){grid-column:span 1 / span 1}::slotted([col-span--tablet="2"]){grid-column:span 2 / span 2}::slotted([col-span--tablet="3"]){grid-column:span 3 / span 3}::slotted([col-span--tablet="4"]){grid-column:span 4 / span 4}::slotted([col-span--tablet="5"]){grid-column:span 5 / span 5}::slotted([col-span--tablet="6"]){grid-column:span 6 / span 6}::slotted([col-span--tablet="7"]){grid-column:span 7 / span 7}::slotted([col-span--tablet="8"]){grid-column:span 8 / span 8}::slotted([col-span--tablet="9"]){grid-column:span 9 / span 9}::slotted([col-span--tablet="10"]){grid-column:span 10 / span 10}::slotted([col-span--tablet="11"]){grid-column:span 11 / span 11}::slotted([col-span--tablet="12"]){grid-column:span 12 / span 12}::slotted([col-span--tablet="full"]){grid-column:1 / -1}::slotted([order--tablet="1"]){order:1}::slotted([order--tablet="2"]){order:2}::slotted([order--tablet="3"]){order:3}::slotted([order--tablet="4"]){order:4}::slotted([order--tablet="5"]){order:5}::slotted([order--tablet="6"]){order:6}::slotted([order--tablet="first"]){order:-9999}::slotted([order--tablet="last"]){order:9999}::slotted([order--tablet="none"]){order:0}::slotted([justify-self--tablet="auto"]){justify-self:auto}::slotted([justify-self--tablet="start"]){justify-self:start}::slotted([justify-self--tablet="end"]){justify-self:end}::slotted([justify-self--tablet="center"]){justify-self:center}::slotted([justify-self--tablet="stretch"]){justify-self:stretch}::slotted([align-self--tablet="auto"]){align-self:auto}::slotted([align-self--tablet="start"]){align-self:start}::slotted([align-self--tablet="end"]){align-self:end}::slotted([align-self--tablet="center"]){align-self:center}::slotted([align-self--tablet="stretch"]){align-self:stretch}::slotted([place-self--tablet="auto"]){place-self:auto}::slotted([place-self--tablet="start"]){place-self:start}::slotted([place-self--tablet="end"]){place-self:end}::slotted([place-self--tablet="center"]){place-self:center}::slotted([place-self--tablet="stretch"]){place-self:stretch}}@media only screen and (min-width: 1025px){::slotted([col--laptop="auto"]){grid-column:auto}::slotted([col-span--laptop="1"]){grid-column:span 1 / span 1}::slotted([col-span--laptop="2"]){grid-column:span 2 / span 2}::slotted([col-span--laptop="3"]){grid-column:span 3 / span 3}::slotted([col-span--laptop="4"]){grid-column:span 4 / span 4}::slotted([col-span--laptop="5"]){grid-column:span 5 / span 5}::slotted([col-span--laptop="6"]){grid-column:span 6 / span 6}::slotted([col-span--laptop="7"]){grid-column:span 7 / span 7}::slotted([col-span--laptop="8"]){grid-column:span 8 / span 8}::slotted([col-span--laptop="9"]){grid-column:span 9 / span 9}::slotted([col-span--laptop="10"]){grid-column:span 10 / span 10}::slotted([col-span--laptop="11"]){grid-column:span 11 / span 11}::slotted([col-span--laptop="12"]){grid-column:span 12 / span 12}::slotted([col-span--laptop="full"]){grid-column:1 / -1}::slotted([justify-self--laptop="auto"]){justify-self:auto}::slotted([justify-self--laptop="start"]){justify-self:start}::slotted([justify-self--laptop="end"]){justify-self:end}::slotted([justify-self--laptop="center"]){justify-self:center}::slotted([justify-self--laptop="stretch"]){justify-self:stretch}::slotted([align-self--laptop="auto"]){align-self:auto}::slotted([align-self--laptop="start"]){align-self:start}::slotted([align-self--laptop="end"]){align-self:end}::slotted([align-self--laptop="center"]){align-self:center}::slotted([align-self--laptop="stretch"]){align-self:stretch}::slotted([place-self--laptop="auto"]){place-self:auto}::slotted([place-self--laptop="start"]){place-self:start}::slotted([place-self--laptop="end"]){place-self:end}::slotted([place-self--laptop="center"]){place-self:center}::slotted([place-self--laptop="stretch"]){place-self:stretch}}';
|
|
1074
|
+
const gridStyles = new CSSStyleSheet();
|
|
1075
|
+
gridStyles.replaceSync(gridCss);
|
|
1076
|
+
const gridItemStyles = new CSSStyleSheet();
|
|
1077
|
+
gridItemStyles.replaceSync(gridItemCss);
|
|
1078
|
+
const gridColsValues = [
|
|
1079
|
+
"1",
|
|
1080
|
+
"2",
|
|
1081
|
+
"3",
|
|
1082
|
+
"4",
|
|
1083
|
+
"5",
|
|
1084
|
+
"6",
|
|
1085
|
+
"7",
|
|
1086
|
+
"8",
|
|
1087
|
+
"9",
|
|
1088
|
+
"10",
|
|
1089
|
+
"11",
|
|
1090
|
+
"12"
|
|
1091
|
+
];
|
|
1092
|
+
const contentAlignmentValues = [
|
|
1093
|
+
"",
|
|
1094
|
+
"start",
|
|
1095
|
+
"end",
|
|
1096
|
+
"center",
|
|
1097
|
+
"space-between",
|
|
1098
|
+
"space-around",
|
|
1099
|
+
"space-evenly",
|
|
1100
|
+
"stretch"
|
|
1101
|
+
];
|
|
1102
|
+
const itemsAlignmentValues = ["", "start", "end", "center", "stretch"];
|
|
1103
|
+
const _Grid = class _Grid extends PxElement {
|
|
1104
|
+
constructor() {
|
|
1105
|
+
super(gridStyles, gridItemStyles);
|
|
1106
|
+
this.template = () => `<div class="grid">
|
|
1107
|
+
<slot></slot>
|
|
1108
|
+
</div>`;
|
|
1109
|
+
this.shadowRoot.innerHTML = this.template();
|
|
1110
|
+
}
|
|
1111
|
+
static get observedAttributes() {
|
|
1112
|
+
return [
|
|
1113
|
+
...super.observedAttributes,
|
|
1114
|
+
"gap",
|
|
1115
|
+
"grid-cols",
|
|
1116
|
+
"grid-cols--mobile",
|
|
1117
|
+
"grid-cols--tablet",
|
|
1118
|
+
"grid-cols--laptop",
|
|
1119
|
+
"justify-content",
|
|
1120
|
+
"justify-items",
|
|
1121
|
+
"align-content",
|
|
1122
|
+
"align-items",
|
|
1123
|
+
"justify-content--mobile",
|
|
1124
|
+
"justify-items--mobile",
|
|
1125
|
+
"align-content--mobile",
|
|
1126
|
+
"align-items--mobile",
|
|
1127
|
+
"justify-content--tablet",
|
|
1128
|
+
"justify-items--tablet",
|
|
1129
|
+
"align-content--tablet",
|
|
1130
|
+
"align-items--tablet",
|
|
1131
|
+
"justify-content--laptop",
|
|
1132
|
+
"justify-items--laptop",
|
|
1133
|
+
"align-content--laptop",
|
|
1134
|
+
"align-items--laptop",
|
|
1135
|
+
"justify-content--desktop",
|
|
1136
|
+
"justify-items--desktop",
|
|
1137
|
+
"align-content--desktop",
|
|
1138
|
+
"align-items--desktop"
|
|
1139
|
+
];
|
|
1140
|
+
}
|
|
1141
|
+
connectedCallback() {
|
|
1142
|
+
super.connectedCallback();
|
|
1143
|
+
if (!this.gap) {
|
|
1144
|
+
this.gap = "inside-section-default";
|
|
1145
|
+
}
|
|
1146
|
+
if (!this.alignItems) {
|
|
1147
|
+
this.alignItems = "stretch";
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
1151
|
+
if (oldValue !== newValue) {
|
|
1152
|
+
switch (attrName) {
|
|
1153
|
+
case "gap":
|
|
1154
|
+
this.updateGap(oldValue, newValue, gridGapValues);
|
|
1155
|
+
break;
|
|
1156
|
+
case "grid-cols":
|
|
1157
|
+
case "grid-cols--mobile":
|
|
1158
|
+
case "grid-cols--tablet":
|
|
1159
|
+
case "grid-cols--laptop":
|
|
1160
|
+
this.updateAttribute(attrName, oldValue, newValue, gridColsValues);
|
|
1161
|
+
break;
|
|
1162
|
+
case "justify-content":
|
|
1163
|
+
case "align-content":
|
|
1164
|
+
case "justify-content--mobile":
|
|
1165
|
+
case "align-content--mobile":
|
|
1166
|
+
case "justify-content--tablet":
|
|
1167
|
+
case "align-content--tablet":
|
|
1168
|
+
case "justify-content--laptop":
|
|
1169
|
+
case "align-content--laptop":
|
|
1170
|
+
case "justify-content--desktop":
|
|
1171
|
+
case "align-content--desktop":
|
|
1172
|
+
this.updateAttribute(
|
|
1173
|
+
attrName,
|
|
1174
|
+
oldValue,
|
|
1175
|
+
newValue,
|
|
1176
|
+
contentAlignmentValues
|
|
1177
|
+
);
|
|
1178
|
+
break;
|
|
1179
|
+
case "justify-items":
|
|
1180
|
+
case "align-items":
|
|
1181
|
+
case "justify-items--mobile":
|
|
1182
|
+
case "align-items--mobile":
|
|
1183
|
+
case "justify-items--tablet":
|
|
1184
|
+
case "align-items--tablet":
|
|
1185
|
+
case "justify-items--laptop":
|
|
1186
|
+
case "align-items--laptop":
|
|
1187
|
+
case "justify-items--desktop":
|
|
1188
|
+
case "align-items--desktop":
|
|
1189
|
+
this.updateAttribute(
|
|
1190
|
+
attrName,
|
|
1191
|
+
oldValue,
|
|
1192
|
+
newValue,
|
|
1193
|
+
itemsAlignmentValues
|
|
1194
|
+
);
|
|
1195
|
+
break;
|
|
1196
|
+
default:
|
|
1197
|
+
super.attributeChangedCallback(attrName, oldValue, newValue);
|
|
1198
|
+
break;
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
updateGap(oldValue, newValue, attrValue) {
|
|
1203
|
+
if (!this.checkName(attrValue, newValue)) {
|
|
1204
|
+
console.error(`Bad gap value for`, this.$el);
|
|
1205
|
+
return;
|
|
1206
|
+
}
|
|
1207
|
+
const updateGapStyle = (value) => {
|
|
1208
|
+
if (value !== null && value !== "" && value !== "default") {
|
|
1209
|
+
this.$el.style.setProperty(
|
|
1210
|
+
`--grid-gap--mobile`,
|
|
1211
|
+
`var(--px-spacing-${value}-mobile)`
|
|
1212
|
+
);
|
|
1213
|
+
this.$el.style.setProperty(
|
|
1214
|
+
`--grid-gap--tablet`,
|
|
1215
|
+
`var(--px-spacing-${value}-tablet)`
|
|
1216
|
+
);
|
|
1217
|
+
this.$el.style.setProperty(
|
|
1218
|
+
`--grid-gap--laptop`,
|
|
1219
|
+
`var(--px-spacing-${value}-desktop)`
|
|
1220
|
+
);
|
|
1221
|
+
}
|
|
1222
|
+
};
|
|
1223
|
+
updateGapStyle(oldValue);
|
|
1224
|
+
updateGapStyle(newValue);
|
|
1225
|
+
}
|
|
1226
|
+
updateAttribute(attrName, oldValue, newValue, attrValues) {
|
|
1227
|
+
if (!this.checkName(attrValues, newValue)) {
|
|
1228
|
+
console.error(
|
|
1229
|
+
`${newValue} is not an allowed ${attrName} value for ${this.$el}`
|
|
1230
|
+
);
|
|
1231
|
+
} else if (attrName === "grid-cols" || attrName === "grid-cols--mobile" || attrName === "grid-cols--tablet" || attrName === "grid-cols--laptop") {
|
|
1232
|
+
this.$el.style.setProperty(`--${attrName}`, newValue);
|
|
1233
|
+
} else {
|
|
1234
|
+
if (oldValue !== null && oldValue !== "" && oldValue !== "default") {
|
|
1235
|
+
this.$el.classList.toggle(`${attrName}-${oldValue}`);
|
|
1236
|
+
}
|
|
1237
|
+
if (newValue !== null && newValue !== "" && newValue !== "default") {
|
|
1238
|
+
this.$el.classList.toggle(`${attrName}-${newValue}`);
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
checkName(values, value) {
|
|
1243
|
+
return values.includes(value);
|
|
1244
|
+
}
|
|
1245
|
+
get gap() {
|
|
1246
|
+
return this.getAttribute("gap");
|
|
1247
|
+
}
|
|
1248
|
+
set gap(value) {
|
|
1249
|
+
this.setAttribute("gap", value);
|
|
1250
|
+
}
|
|
1251
|
+
get gridCols() {
|
|
1252
|
+
return this.getAttribute("grid-cols");
|
|
1253
|
+
}
|
|
1254
|
+
set gridCols(value) {
|
|
1255
|
+
this.setAttribute("grid-cols", value);
|
|
1256
|
+
}
|
|
1257
|
+
get gridColsMobile() {
|
|
1258
|
+
return this.getAttribute("grid-cols--mobile");
|
|
1259
|
+
}
|
|
1260
|
+
set gridColsMobile(value) {
|
|
1261
|
+
this.setAttribute("grid-cols--mobile", value);
|
|
1262
|
+
}
|
|
1263
|
+
get gridColsTablet() {
|
|
1264
|
+
return this.getAttribute("grid-cols--tablet");
|
|
1265
|
+
}
|
|
1266
|
+
set gridColsTablet(value) {
|
|
1267
|
+
this.setAttribute("grid-cols--tablet", value);
|
|
1268
|
+
}
|
|
1269
|
+
get gridColsLaptop() {
|
|
1270
|
+
return this.getAttribute("grid-cols--laptop");
|
|
1271
|
+
}
|
|
1272
|
+
set gridColsLaptop(value) {
|
|
1273
|
+
this.setAttribute("grid-cols--laptop", value);
|
|
1274
|
+
}
|
|
1275
|
+
get justifyContent() {
|
|
1276
|
+
return this.getAttribute("justify-content");
|
|
1277
|
+
}
|
|
1278
|
+
set justifyContent(value) {
|
|
1279
|
+
this.setAttribute("justify-content", value);
|
|
1280
|
+
}
|
|
1281
|
+
get justifyItems() {
|
|
1282
|
+
return this.getAttribute("justify-items");
|
|
1283
|
+
}
|
|
1284
|
+
set justifyItems(value) {
|
|
1285
|
+
this.setAttribute("justify-items", value);
|
|
1286
|
+
}
|
|
1287
|
+
get alignContent() {
|
|
1288
|
+
return this.getAttribute("align-content");
|
|
1289
|
+
}
|
|
1290
|
+
set alignContent(value) {
|
|
1291
|
+
this.setAttribute("align-content", value);
|
|
1292
|
+
}
|
|
1293
|
+
get alignItems() {
|
|
1294
|
+
return this.getAttribute("align-items");
|
|
1295
|
+
}
|
|
1296
|
+
set alignItems(value) {
|
|
1297
|
+
this.setAttribute("align-items", value);
|
|
1298
|
+
}
|
|
1299
|
+
get justifyContentMobile() {
|
|
1300
|
+
return this.getAttribute("justify-content--mobile");
|
|
1301
|
+
}
|
|
1302
|
+
set justifyContentMobile(value) {
|
|
1303
|
+
this.setAttribute("justify-content--mobile", value);
|
|
1304
|
+
}
|
|
1305
|
+
get justifyItemsMobile() {
|
|
1306
|
+
return this.getAttribute("justify-items--mobile");
|
|
1307
|
+
}
|
|
1308
|
+
set justifyItemsMobile(value) {
|
|
1309
|
+
this.setAttribute("justify-items--mobile", value);
|
|
1310
|
+
}
|
|
1311
|
+
get alignContentMobile() {
|
|
1312
|
+
return this.getAttribute("align-content--mobile");
|
|
1313
|
+
}
|
|
1314
|
+
set alignContentMobile(value) {
|
|
1315
|
+
this.setAttribute("align-content--mobile", value);
|
|
1316
|
+
}
|
|
1317
|
+
get alignItemsMobile() {
|
|
1318
|
+
return this.getAttribute("align-items--mobile");
|
|
1319
|
+
}
|
|
1320
|
+
set alignItemsMobile(value) {
|
|
1321
|
+
this.setAttribute("align-items--mobile", value);
|
|
1322
|
+
}
|
|
1323
|
+
get justifyContentTablet() {
|
|
1324
|
+
return this.getAttribute("justify-content--tablet");
|
|
1325
|
+
}
|
|
1326
|
+
set justifyContentTablet(value) {
|
|
1327
|
+
this.setAttribute("justify-content--tablet", value);
|
|
1328
|
+
}
|
|
1329
|
+
get justifyItemsTablet() {
|
|
1330
|
+
return this.getAttribute("justify-items--tablet");
|
|
1331
|
+
}
|
|
1332
|
+
set justifyItemsTablet(value) {
|
|
1333
|
+
this.setAttribute("justify-items--tablet", value);
|
|
1334
|
+
}
|
|
1335
|
+
get alignContentTablet() {
|
|
1336
|
+
return this.getAttribute("align-content--tablet");
|
|
1337
|
+
}
|
|
1338
|
+
set alignContentTablet(value) {
|
|
1339
|
+
this.setAttribute("align-content--tablet", value);
|
|
1340
|
+
}
|
|
1341
|
+
get alignItemsTablet() {
|
|
1342
|
+
return this.getAttribute("align-items--tablet");
|
|
1343
|
+
}
|
|
1344
|
+
set alignItemsTablet(value) {
|
|
1345
|
+
this.setAttribute("align-items--tablet", value);
|
|
1346
|
+
}
|
|
1347
|
+
get justifyContentLaptop() {
|
|
1348
|
+
return this.getAttribute("justify-content--laptop");
|
|
1349
|
+
}
|
|
1350
|
+
set justifyContentLaptop(value) {
|
|
1351
|
+
this.setAttribute("justify-content--laptop", value);
|
|
1352
|
+
}
|
|
1353
|
+
get justifyItemsLaptop() {
|
|
1354
|
+
return this.getAttribute("justify-items--laptop");
|
|
1355
|
+
}
|
|
1356
|
+
set justifyItemsLaptop(value) {
|
|
1357
|
+
this.setAttribute("justify-items--laptop", value);
|
|
1358
|
+
}
|
|
1359
|
+
get alignContentLaptop() {
|
|
1360
|
+
return this.getAttribute("align-content--laptop");
|
|
1361
|
+
}
|
|
1362
|
+
set alignContentLaptop(value) {
|
|
1363
|
+
this.setAttribute("align-content--laptop", value);
|
|
1364
|
+
}
|
|
1365
|
+
get alignItemsLaptop() {
|
|
1366
|
+
return this.getAttribute("align-items--laptop");
|
|
1367
|
+
}
|
|
1368
|
+
set alignItemsLaptop(value) {
|
|
1369
|
+
this.setAttribute("align-items--laptop", value);
|
|
1370
|
+
}
|
|
1371
|
+
get justifyContentDesktop() {
|
|
1372
|
+
return this.getAttribute("justify-content--desktop");
|
|
1373
|
+
}
|
|
1374
|
+
set justifyContentDesktop(value) {
|
|
1375
|
+
this.setAttribute("justify-content--desktop", value);
|
|
1376
|
+
}
|
|
1377
|
+
get justifyItemsDesktop() {
|
|
1378
|
+
return this.getAttribute("justify-items--desktop");
|
|
1379
|
+
}
|
|
1380
|
+
set justifyItemsDesktop(value) {
|
|
1381
|
+
this.setAttribute("justify-items--desktop", value);
|
|
1382
|
+
}
|
|
1383
|
+
get alignContentDesktop() {
|
|
1384
|
+
return this.getAttribute("align-content--desktop");
|
|
1385
|
+
}
|
|
1386
|
+
set alignContentDesktop(value) {
|
|
1387
|
+
this.setAttribute("align-content--desktop", value);
|
|
1388
|
+
}
|
|
1389
|
+
get alignItemsDesktop() {
|
|
1390
|
+
return this.getAttribute("align-items--desktop");
|
|
1391
|
+
}
|
|
1392
|
+
set alignItemsDesktop(value) {
|
|
1393
|
+
this.setAttribute("align-items--desktop", value);
|
|
1394
|
+
}
|
|
1395
|
+
};
|
|
1396
|
+
_Grid.nativeName = "div";
|
|
1397
|
+
let Grid = _Grid;
|
|
1398
|
+
customElements.define("px-grid", Grid);
|
|
1399
|
+
const _GridItem = class _GridItem extends Grid {
|
|
1400
|
+
constructor() {
|
|
1401
|
+
super();
|
|
1402
|
+
this.template = () => `<div class="grid-item">
|
|
1403
|
+
<slot></slot>
|
|
1404
|
+
</div>`;
|
|
1405
|
+
this.shadowRoot.innerHTML = this.template();
|
|
1406
|
+
}
|
|
1407
|
+
static get observedAttributes() {
|
|
1408
|
+
return [
|
|
1409
|
+
...super.observedAttributes,
|
|
1410
|
+
"col-span",
|
|
1411
|
+
"col-span--mobile",
|
|
1412
|
+
"col-span--tablet",
|
|
1413
|
+
"col-span--laptop",
|
|
1414
|
+
"col-span--desktop",
|
|
1415
|
+
"justify-self",
|
|
1416
|
+
"align-self",
|
|
1417
|
+
"place-self",
|
|
1418
|
+
"justify-self--mobile",
|
|
1419
|
+
"align-self--mobile",
|
|
1420
|
+
"place-self--mobile",
|
|
1421
|
+
"justify-self--tablet",
|
|
1422
|
+
"align-self--tablet",
|
|
1423
|
+
"place-self--tablet",
|
|
1424
|
+
"justify-self--laptop",
|
|
1425
|
+
"align-self--laptop",
|
|
1426
|
+
"place-self--laptop",
|
|
1427
|
+
"justify-self--desktop",
|
|
1428
|
+
"align-self--desktop",
|
|
1429
|
+
"place-self--desktop",
|
|
1430
|
+
"order",
|
|
1431
|
+
"order--mobile",
|
|
1432
|
+
"order--tablet",
|
|
1433
|
+
"order--laptop",
|
|
1434
|
+
"order--desktop"
|
|
1435
|
+
];
|
|
1436
|
+
}
|
|
1437
|
+
connectedCallback() {
|
|
1438
|
+
var _a;
|
|
1439
|
+
super.connectedCallback();
|
|
1440
|
+
if (((_a = this.parentElement) == null ? void 0 : _a.getAttribute("align-items")) === "stretch") {
|
|
1441
|
+
this.$el.style.height = "100%";
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
get colSpan() {
|
|
1445
|
+
return this.getAttribute("col-span");
|
|
1446
|
+
}
|
|
1447
|
+
set colSpan(value) {
|
|
1448
|
+
this.setAttribute("col-span", value);
|
|
1449
|
+
}
|
|
1450
|
+
get colSpanMobile() {
|
|
1451
|
+
return this.getAttribute("col-span--mobile");
|
|
1452
|
+
}
|
|
1453
|
+
set colSpanMobile(value) {
|
|
1454
|
+
this.setAttribute("col-span--mobile", value);
|
|
1455
|
+
}
|
|
1456
|
+
get colSpanTablet() {
|
|
1457
|
+
return this.getAttribute("col-span--tablet");
|
|
1458
|
+
}
|
|
1459
|
+
set colSpanTablet(value) {
|
|
1460
|
+
this.setAttribute("col-span--tablet", value);
|
|
1461
|
+
}
|
|
1462
|
+
get colSpanLaptop() {
|
|
1463
|
+
return this.getAttribute("col-span--laptop");
|
|
1464
|
+
}
|
|
1465
|
+
set colSpanLaptop(value) {
|
|
1466
|
+
this.setAttribute("col-span--laptop", value);
|
|
1467
|
+
}
|
|
1468
|
+
get colSpanDesktop() {
|
|
1469
|
+
return this.getAttribute("col-span--desktop");
|
|
1470
|
+
}
|
|
1471
|
+
set colSpanDesktop(value) {
|
|
1472
|
+
this.setAttribute("col-span--desktop", value);
|
|
1473
|
+
}
|
|
1474
|
+
get justifySelf() {
|
|
1475
|
+
return this.getAttribute("justify-self");
|
|
1476
|
+
}
|
|
1477
|
+
set justifySelf(value) {
|
|
1478
|
+
this.setAttribute("justify-self", value);
|
|
1479
|
+
}
|
|
1480
|
+
get alignSelf() {
|
|
1481
|
+
return this.getAttribute("align-self");
|
|
1482
|
+
}
|
|
1483
|
+
set alignSelf(value) {
|
|
1484
|
+
this.setAttribute("align-self", value);
|
|
1485
|
+
}
|
|
1486
|
+
get placeSelf() {
|
|
1487
|
+
return this.getAttribute("place-self");
|
|
1488
|
+
}
|
|
1489
|
+
set placeSelf(value) {
|
|
1490
|
+
this.setAttribute("place-self", value);
|
|
1491
|
+
}
|
|
1492
|
+
get justifySelfMobile() {
|
|
1493
|
+
return this.getAttribute("justify-self--mobile");
|
|
1494
|
+
}
|
|
1495
|
+
set justifySelfMobile(value) {
|
|
1496
|
+
this.setAttribute("justify-self--mobile", value);
|
|
1497
|
+
}
|
|
1498
|
+
get alignSelfMobile() {
|
|
1499
|
+
return this.getAttribute("align-self--mobile");
|
|
1500
|
+
}
|
|
1501
|
+
set alignSelfMobile(value) {
|
|
1502
|
+
this.setAttribute("align-self--mobile", value);
|
|
1503
|
+
}
|
|
1504
|
+
get placeSelfMobile() {
|
|
1505
|
+
return this.getAttribute("place-self--mobile");
|
|
1506
|
+
}
|
|
1507
|
+
set placeSelfMobile(value) {
|
|
1508
|
+
this.setAttribute("place-self--mobile", value);
|
|
1509
|
+
}
|
|
1510
|
+
get justifySelfTablet() {
|
|
1511
|
+
return this.getAttribute("justify-self--tablet");
|
|
1512
|
+
}
|
|
1513
|
+
set justifySelfTablet(value) {
|
|
1514
|
+
this.setAttribute("justify-self--tablet", value);
|
|
1515
|
+
}
|
|
1516
|
+
get alignSelfTablet() {
|
|
1517
|
+
return this.getAttribute("align-self--tablet");
|
|
1518
|
+
}
|
|
1519
|
+
set alignSelfTablet(value) {
|
|
1520
|
+
this.setAttribute("align-self--tablet", value);
|
|
1521
|
+
}
|
|
1522
|
+
get placeSelfTablet() {
|
|
1523
|
+
return this.getAttribute("place-self--tablet");
|
|
1524
|
+
}
|
|
1525
|
+
set placeSelfTablet(value) {
|
|
1526
|
+
this.setAttribute("place-self--tablet", value);
|
|
1527
|
+
}
|
|
1528
|
+
get justifySelfLaptop() {
|
|
1529
|
+
return this.getAttribute("justify-self--laptop");
|
|
1530
|
+
}
|
|
1531
|
+
set justifySelfLaptop(value) {
|
|
1532
|
+
this.setAttribute("justify-self--laptop", value);
|
|
1533
|
+
}
|
|
1534
|
+
get alignSelfLaptop() {
|
|
1535
|
+
return this.getAttribute("align-self--laptop");
|
|
1536
|
+
}
|
|
1537
|
+
set alignSelfLaptop(value) {
|
|
1538
|
+
this.setAttribute("align-self--laptop", value);
|
|
1539
|
+
}
|
|
1540
|
+
get placeSelfLaptop() {
|
|
1541
|
+
return this.getAttribute("place-self--laptop");
|
|
1542
|
+
}
|
|
1543
|
+
set placeSelfLaptop(value) {
|
|
1544
|
+
this.setAttribute("place-self--laptop", value);
|
|
1545
|
+
}
|
|
1546
|
+
get justifySelfDesktop() {
|
|
1547
|
+
return this.getAttribute("justify-self--desktop");
|
|
1548
|
+
}
|
|
1549
|
+
set justifySelfDesktop(value) {
|
|
1550
|
+
this.setAttribute("justify-self--desktop", value);
|
|
1551
|
+
}
|
|
1552
|
+
get alignSelfDesktop() {
|
|
1553
|
+
return this.getAttribute("align-self--desktop");
|
|
1554
|
+
}
|
|
1555
|
+
set alignSelfDesktop(value) {
|
|
1556
|
+
this.setAttribute("align-self--desktop", value);
|
|
1557
|
+
}
|
|
1558
|
+
get placeSelfDesktop() {
|
|
1559
|
+
return this.getAttribute("place-self--desktop");
|
|
1560
|
+
}
|
|
1561
|
+
set placeSelfDesktop(value) {
|
|
1562
|
+
this.setAttribute("place-self--desktop", value);
|
|
1563
|
+
}
|
|
1564
|
+
get order() {
|
|
1565
|
+
return this.getAttribute("order");
|
|
1566
|
+
}
|
|
1567
|
+
set order(value) {
|
|
1568
|
+
this.setAttribute("order", value);
|
|
1569
|
+
}
|
|
1570
|
+
get orderMobile() {
|
|
1571
|
+
return this.getAttribute("order--mobile");
|
|
1572
|
+
}
|
|
1573
|
+
set orderMobile(value) {
|
|
1574
|
+
this.setAttribute("order--mobile", value);
|
|
1575
|
+
}
|
|
1576
|
+
get orderTablet() {
|
|
1577
|
+
return this.getAttribute("order--tablet");
|
|
1578
|
+
}
|
|
1579
|
+
set orderTablet(value) {
|
|
1580
|
+
this.setAttribute("order--tablet", value);
|
|
1581
|
+
}
|
|
1582
|
+
get orderLaptop() {
|
|
1583
|
+
return this.getAttribute("order--laptop");
|
|
1584
|
+
}
|
|
1585
|
+
set orderLaptop(value) {
|
|
1586
|
+
this.setAttribute("order--laptop", value);
|
|
1587
|
+
}
|
|
1588
|
+
get orderDesktop() {
|
|
1589
|
+
return this.getAttribute("order--desktop");
|
|
1590
|
+
}
|
|
1591
|
+
set orderDesktop(value) {
|
|
1592
|
+
this.setAttribute("order--desktop", value);
|
|
1593
|
+
}
|
|
1594
|
+
};
|
|
1595
|
+
_GridItem.nativeName = "div";
|
|
1596
|
+
let GridItem = _GridItem;
|
|
1597
|
+
customElements.define("px-grid-item", GridItem);
|
|
1072
1598
|
const buttonCss = '.btn{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-m);font-weight:700;gap:var(--px-spacing-after-element-2xs-mobile);cursor:pointer;text-decoration:none;--btn-transition: all .2s ease-in-out 0s;transition:var(--btn-transition);border:var(--px-border-size-m) solid transparent}.btn,.btn *{box-sizing:border-box}.btn ::slotted(px-icon){line-height:0}.btn:hover:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-border-color-action-hover-default)}.btn:focus:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-border-color-focus-outline-default)}.btn:active{transform:scale(.95)}.btn[disabled],.btn[aria-disabled=true]{cursor:default;pointer-events:none}.btn.loading{cursor:inherit}.btn.loading ::slotted(px-spinner){line-height:0}.btn:not(.secondary,.tertiary,.patch){color:var(--px-text-color-heading-brand-inverted);background:var(--px-background-color-action-primary-default);min-height:var(--px-action-size-l);padding:var(--px-padding-xs-mobile) var(--px-padding-m-mobile);border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn:not(.secondary,.tertiary,.patch) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-mobile) * -1)}.btn:not(.secondary,.tertiary,.patch) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-mobile) * -1)}.btn:not(.secondary,.tertiary,.patch):hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-text-color-heading-brand-default);background:var(--px-background-color-action-hover-bordered-default)}.btn:not(.secondary,.tertiary,.patch)[disabled],.btn:not(.secondary,.tertiary,.patch)[aria-disabled=true]{background:var(--px-background-color-action-disabled-default);color:var(--px-text-color-action-disabled-default)}.btn:not(.secondary,.tertiary,.patch).loading{background:var(--px-background-color-action-disabled-default);color:var(--px-text-color-heading-brand-default);border-color:transparent}.btn:not(.secondary,.tertiary,.patch).extended{width:100%}.btn:not(.secondary,.tertiary,.patch).alternative{border-radius:var(--px-radius-button-small)}.btn.secondary{color:var(--px-text-color-heading-brand-default);background:var(--px-background-color-action-secondary-default);min-height:var(--px-action-size-l);padding:var(--px-padding-xs-mobile) var(--px-padding-m-mobile);border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn.secondary:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-text-color-heading-brand-default);background:var(--px-background-color-action-hover-bordered-default)}.btn.secondary[disabled],.btn.secondary[aria-disabled=true]{background:var(--px-background-color-action-disabled-default);color:var(--px-text-color-action-disabled-default)}.btn.secondary.loading{background:var(--px-background-color-action-disabled-default);color:var(--px-text-color-heading-brand-default);border-color:transparent}.btn.secondary.extended{width:100%}.btn.secondary.alternative{border-radius:var(--px-radius-button-small)}.btn.tertiary{background:none;color:var(--px-text-color-heading-brand-default);border-radius:var(--px-radius-pill);border:var(--px-border-size-m) solid transparent;padding:var(--px-padding-2xs-mobile) 0;gap:var(--px-spacing-after-element-xs-mobile)}.btn.tertiary ::slotted(px-icon){display:flex;align-items:center;justify-content:center;width:var(--px-icon-size-m-mobile);height:var(--px-icon-size-m-mobile);border-radius:var(--px-radius-pill);background:var(--px-background-color-action-secondary-default);transition:var(--btn-transition)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-mobile) var(--px-padding-s-mobile)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon){background:transparent;width:inherit;height:inherit}.btn.tertiary[disabled],.btn.tertiary[aria-disabled=true]{color:var(--px-text-color-action-disabled-default)}.btn.tertiary[disabled] ::slotted(px-icon),.btn.tertiary[aria-disabled=true] ::slotted(px-icon){background:var(--px-background-color-action-disabled-default)}.btn.tertiary.loading{color:var(--px-text-color-heading-brand-default);border-color:transparent}.btn.tertiary.loading ::slotted(px-spinner){display:flex;align-items:center;justify-content:center;width:var(--px-icon-size-m-mobile);height:var(--px-icon-size-m-mobile);border-radius:var(--px-radius-pill);background:var(--px-background-color-action-disabled-default)}.btn.patch{display:inline-flex}.btn.patch:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-text-color-heading-brand-default);background:var(--px-background-color-action-hover-bordered-default)}.btn.patch[disabled],.btn.patch[aria-disabled=true]{background:var(--px-background-color-action-disabled-default);color:var(--px-text-color-action-disabled-default)}button.link{background:none;border:none;text-decoration:underline;padding:0;cursor:pointer}button.link[disabled],button.link[aria-disabled=true]{cursor:default;pointer-events:none;color:var(--px-text-color-action-disabled-default)}:host([inverted]) .btn:hover:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-border-color-action-hover-inverted)}:host([inverted]) .btn:focus:not([disabled],[aria-disabled=true]){outline-color:var(--px-border-color-focus-outline-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch){color:var(--px-text-color-heading-brand-default);background:var(--px-background-color-action-primary-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch):hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-text-color-heading-brand-inverted);background:var(--px-background-color-action-hover-bordered-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch)[disabled],:host([inverted]) .btn:not(.secondary,.tertiary,.patch)[aria-disabled=true]{background:var(--px-background-color-action-disabled-inverted);color:var(--px-text-color-action-disabled-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch).loading{background:var(--px-background-color-action-disabled-inverted);color:var(--px-text-color-heading-brand-inverted);border-color:transparent}:host([inverted]) .btn.secondary{color:var(--px-text-color-heading-brand-inverted);background:var(--px-background-color-action-secondary-inverted)}:host([inverted]) .btn.secondary:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-text-color-heading-brand-inverted);background:var(--px-background-color-action-hover-bordered-inverted)}:host([inverted]) .btn.secondary[disabled],:host([inverted]) .btn.secondary[aria-disabled=true]{background:var(--px-background-color-action-disabled-inverted);color:var(--px-text-color-action-disabled-inverted)}:host([inverted]) .btn.secondary.loading{background:var(--px-background-color-action-disabled-inverted);color:var(--px-text-color-heading-brand-inverted);border-color:transparent}:host([inverted]) .btn.tertiary{color:var(--px-text-color-heading-brand-inverted)}:host([inverted]) .btn.tertiary ::slotted(px-icon){background:var(--px-background-color-action-secondary-inverted)}:host([inverted]) .btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon){background:transparent}:host([inverted]) .btn.tertiary[disabled],:host([inverted]) .btn.tertiary[aria-disabled=true]{color:var(--px-text-color-action-disabled-inverted)}:host([inverted]) .btn.tertiary[disabled] ::slotted(px-icon),:host([inverted]) .btn.tertiary[aria-disabled=true] ::slotted(px-icon){background:var(--px-background-color-action-disabled-inverted)}:host([inverted]) .btn.tertiary.loading{color:var(--px-text-color-heading-brand-inverted)}:host([inverted]) .btn.tertiary.loading ::slotted(px-spinner){background:var(--px-background-color-action-disabled-inverted)}:host([inverted]) .btn.patch:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-text-color-heading-brand-inverted);background:var( --px-background-color-action-hover-bordered-default-inverted )}:host([inverted]) .btn.patch[disabled],:host([inverted]) .btn.patch[aria-disabled=true]{background:var(--px-background-color-action-disabled-inverted);color:var(--px-text-color-action-disabled-inverted)}:host([inverted]) button.link[disabled],:host([inverted]) button.link[aria-disabled=true]{color:var(--px-text-color-action-disabled-inverted)}@media only screen and (min-width: 768px){.btn{font-size:var(--px-text-size-label-m-tablet);gap:var(--px-spacing-after-element-2xs-tablet)}.btn:focus:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}.btn:not(.secondary,.tertiary,.patch){padding:var(--px-padding-xs-tablet) var(--px-padding-m-tablet)}.btn:not(.secondary,.tertiary,.patch) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-tablet) * -1)}.btn:not(.secondary,.tertiary,.patch) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-tablet) * -1)}.btn.secondary{padding:var(--px-padding-xs-tablet) var(--px-padding-m-tablet)}.btn.tertiary{padding:var(--px-padding-2xs-tablet) 0;gap:var(--px-spacing-after-element-xs-tablet)}.btn.tertiary ::slotted(px-icon){width:var(--px-icon-size-m-tablet);height:var(--px-icon-size-m-tablet)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-tablet) var(--px-padding-s-tablet)}.btn.tertiary.loading ::slotted(px-spinner){width:var(--px-icon-size-m-tablet);height:var(--px-icon-size-m-tablet)}}@media only screen and (min-width: 1025px){.btn{font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-after-element-2xs-desktop)}.btn:focus:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}.btn:not(.secondary,.tertiary,.patch){padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn:not(.secondary,.tertiary,.patch) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-desktop) * -1)}.btn:not(.secondary,.tertiary,.patch) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-desktop) * -1)}.btn.secondary{padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn.tertiary{padding:var(--px-padding-2xs-desktop) 0;gap:var(--px-spacing-after-element-xs-desktop)}.btn.tertiary ::slotted(px-icon){width:var(--px-icon-size-m-desktop);height:var(--px-icon-size-m-desktop)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-desktop) var(--px-padding-s-desktop)}.btn.tertiary.loading ::slotted(px-spinner){width:var(--px-icon-size-m-desktop);height:var(--px-icon-size-m-desktop)}}@keyframes anim-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}';
|
|
1073
1599
|
const linkCss = 'a,.link,::slotted(a){display:inline-flex;align-items:center;font-family:var(--px-font-family);font-size:var(--px-text-size-link-m-mobile);line-height:var(--px-line-height-m);font-weight:400;color:var(--px-text-color-heading-neutral-default)}a:hover,.link:hover{color:var(--px-text-color-action-hover-default)}a:focus,.link:focus{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-border-color-focus-outline-default)}a[aria-disabled=true],.link[aria-disabled=true]{cursor:default;pointer-events:none;color:var(--px-text-color-action-disabled-default)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-after-element-2xs-mobile)}a ::slotted(span[slot="after"]),a ::slotted(span[slot="before"]),.link ::slotted(span[slot="after"]),.link ::slotted(span[slot="before"]){display:inline-block}::slotted(a:hover){color:var(--px-text-color-action-hover-default)}a.no-style{color:inherit;text-decoration:none}a.no-style:hover,a.no-style:focus{color:inherit}a.skip-link{position:absolute;left:-10000px;top:auto;overflow:hidden;background-color:var(--px-background-color-container-weak);padding:var(--px-padding-xs-mobile)}a.skip-link:focus{left:auto;z-index:999}:host([inverted]) a,:host([inverted]) .link,:host([inverted]) ::slotted(a){color:var(--px-text-color-heading-neutral-inverted)}:host([inverted]) a:hover,:host([inverted]) .link:hover{color:var(--px-text-color-action-hover-inverted)}:host([inverted]) a:focus,:host([inverted]) .link:focus{outline-color:var(--px-border-color-focus-outline-inverted)}:host([inverted]) a[aria-disabled=true],:host([inverted]) .link[aria-disabled=true]{color:var(--px-text-color-action-disabled-inverted)}:host([inverted]) ::slotted(a:hover){color:var(--px-text-color-action-hover-inverted)}:host([inverted]) a.skip-link{background-color:var(--px-background-color-container-weak-inverted)}@media only screen and (min-width: 768px){a,.link,::slotted(a){font-size:var(--px-text-size-link-m-tablet)}a:focus,.link:focus{outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-after-element-2xs-tablet)}a.skip-link{padding:var(--px-padding-xs-tablet)}}@media only screen and (min-width: 1025px){a,.link,::slotted(a){font-size:var(--px-text-size-link-m-desktop)}a:focus,.link:focus{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-after-element-2xs-desktop)}a.skip-link{padding:var(--px-padding-xs-desktop)}}';
|
|
1074
1600
|
const styles$b = ".patch{display:inline-flex;align-items:center;padding:0 var(--px-padding-s-mobile);height:1.625rem;border:var(--px-border-size-m) solid transparent;border-radius:var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-small);font-family:var(--px-font-family);font-weight:700;font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-m);text-align:center;background-color:var(--px-background-color-purpose-promo-default);color:var(--px-text-color-action-neutral-inverted)}.patch,.patch *{box-sizing:border-box}.bottom-right{border-radius:var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-small) var(--px-radius-patch-big)}.bottom-left{border-radius:var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-small)}.info{background-color:var(--px-background-color-purpose-info-default);color:var(--px-text-color-action-neutral-default)}.black-friday{background-color:var(--px-background-color-container-neutral-rich-default);color:var(--px-text-color-action-neutral-inverted)}.eco{background-color:var(--px-background-color-purpose-success-default);color:var(--px-text-color-action-neutral-inverted)}.greyed{background-color:var(--px-background-color-action-disabled-default);color:var(--px-text-color-action-disabled-default)}:host([inverted]) .patch{background-color:var(--px-background-color-purpose-promo-inverted);color:var(--px-text-color-action-neutral-inverted)}:host([inverted]) .info{background-color:var(--px-background-color-purpose-info-inverted);color:var(--px-text-color-action-neutral-default)}:host([inverted]) .black-friday{background-color:var(--px-background-color-container-neutral-bare-default);color:var(--px-text-color-action-neutral-default)}:host([inverted]) .eco{background-color:var(--px-background-color-purpose-success-inverted);color:var(--px-text-color-action-neutral-default)}:host([inverted]) .greyed{background-color:var(--px-background-color-action-disabled-inverted);color:var(--px-text-color-action-disabled-inverted)}@media only screen and (min-width: 768px){.patch{padding:0 var(--px-padding-s-tablet);font-size:var(--px-text-size-label-m-tablet)}}@media only screen and (min-width: 1025px){.patch{padding:0 var(--px-padding-s-desktop);font-size:var(--px-text-size-label-m-desktop)}}@media only screen and (min-width: 1441px){.patch{padding:0 var(--px-padding-s-desktop);font-size:var(--px-text-size-label-m-desktop)}}";
|
|
@@ -4846,6 +5372,8 @@ export {
|
|
|
4846
5372
|
Container,
|
|
4847
5373
|
Entrypoint,
|
|
4848
5374
|
FontIcon,
|
|
5375
|
+
Grid,
|
|
5376
|
+
GridItem,
|
|
4849
5377
|
H1,
|
|
4850
5378
|
H2,
|
|
4851
5379
|
H3,
|
|
@@ -4892,16 +5420,19 @@ export {
|
|
|
4892
5420
|
buttonIconSizeValues,
|
|
4893
5421
|
buttonIconVariantValues,
|
|
4894
5422
|
colorValues,
|
|
5423
|
+
contentAlignmentValues,
|
|
4895
5424
|
fontsizeValues,
|
|
4896
5425
|
fontweightValues,
|
|
4897
5426
|
gapValues,
|
|
4898
5427
|
getSupportedAttributeNames,
|
|
4899
5428
|
getViewportFormat,
|
|
4900
5429
|
gradientValues,
|
|
5430
|
+
gridColsValues,
|
|
4901
5431
|
gridGapValues,
|
|
4902
5432
|
headingValues,
|
|
4903
5433
|
iconSizeValues$1 as iconSizeValues,
|
|
4904
5434
|
isFalsy,
|
|
5435
|
+
itemsAlignmentValues,
|
|
4905
5436
|
linkShapeValues,
|
|
4906
5437
|
linkVariantValues,
|
|
4907
5438
|
noBorderRadiusValues,
|