@postnord/pn-marketweb-components 2.0.85 → 2.0.87
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/cjs/pn-proxio-pricegroup.cjs.entry.js +49 -6
- package/cjs/pn-proxio-productcard_4.cjs.entry.js +8 -8
- package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.css +114 -36
- package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.js +53 -9
- package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.stories.js +1 -1
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-description.css +9 -2
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-information.css +4 -3
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-information.js +2 -2
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-pricelink.css +19 -2
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-pricelink.js +1 -1
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard.css +47 -5
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard.js +1 -0
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard.stories.js +2 -1
- package/custom-elements/index.js +57 -14
- package/esm/pn-proxio-pricegroup.entry.js +49 -6
- package/esm/pn-proxio-productcard_4.entry.js +8 -8
- package/esm-es5/pn-proxio-pricegroup.entry.js +1 -1
- package/esm-es5/pn-proxio-productcard_4.entry.js +1 -1
- package/package.json +1 -1
- package/pn-market-web-components/p-375354d3.entry.js +1 -0
- package/pn-market-web-components/p-40f0bb03.entry.js +1 -0
- package/pn-market-web-components/p-5ab6f876.system.entry.js +1 -0
- package/pn-market-web-components/p-67887512.system.js +1 -1
- package/pn-market-web-components/p-e217affa.system.entry.js +1 -0
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/types/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.d.ts +3 -1
- package/umd/pn-marketweb-salesforce.js +2 -2
- package/pn-market-web-components/p-6c8d3789.system.entry.js +0 -1
- package/pn-market-web-components/p-942ad206.system.entry.js +0 -1
- package/pn-market-web-components/p-c3ea7666.entry.js +0 -1
- package/pn-market-web-components/p-df9708f2.entry.js +0 -1
|
@@ -22,7 +22,7 @@ const translations = {
|
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
const pnProxioPricegroupCss = "pn-proxio-pricegroup div.weightcontainer{margin:
|
|
25
|
+
const pnProxioPricegroupCss = "pn-proxio-pricegroup div.proxio-pricegroup-container{max-width:99.4rem}pn-proxio-pricegroup div.weightcontainer{margin:2.8rem 0}pn-proxio-pricegroup div.weightvaluecontainer{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-line-pack:center;align-content:center;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:start;align-items:flex-start}pn-proxio-pricegroup div.weightvaluecontainer pn-button{-webkit-transform:translateY(-0.4rem);transform:translateY(-0.4rem)}pn-proxio-pricegroup div.weightradios{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;color:#005D92;width:80%;margin:0 3.6rem;position:relative;width:0%}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end50]{width:45%;margin-left:auto;margin-right:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end50]{width:40%}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end75]{width:65%;margin-left:auto;margin-right:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end75]{margin-right:auto}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start50]{width:45%;margin-right:auto;margin-left:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start50]{width:40%}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start75]{width:65%;margin-right:auto;margin-left:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start75]{margin-left:auto}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=default]{-ms-flex:0 0 auto;flex:0 0 auto;width:80%}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=default]{width:65%}}pn-proxio-pricegroup div.weightdata{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:justify;justify-content:space-between;gap:1.2rem;min-width:4rem;cursor:pointer}pn-proxio-pricegroup div.weightdata label{font-size:1.4rem;cursor:pointer}pn-proxio-pricegroup div.weightdata[data-carousel-position=\"0\"]{font-size:2rem;font-weight:700}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightdata[data-carousel-position=\"2\"],pn-proxio-pricegroup div.weightdata[data-carousel-position=\"-2\"]{display:none}}pn-proxio-pricegroup div.weightdata[data-carousel-position=outside]{display:none}pn-proxio-pricegroup div.weightdata input[type=radio]{-webkit-appearance:none;-moz-appearance:none;width:1.2rem;height:1.2rem;background-color:#005D92;border-radius:50%;margin:0;cursor:pointer}pn-proxio-pricegroup div.weightdata input[type=radio]:checked{z-index:1;-webkit-transform:translateY(-0.1rem);transform:translateY(-0.1rem);height:1.4rem;width:1.4rem;-webkit-box-shadow:0 0 0 0.3rem #FFFFFF, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.3rem #FFFFFF, 0 0 0 0.4rem #005D92}pn-proxio-pricegroup div.weightline{width:100%;background-color:#F3F2F2;z-index:-1;height:0.8rem;-webkit-transform:translateX(2.1rem) translateY(1.32rem);transform:translateX(2.1rem) translateY(1rem);border-radius:2rem;margin-right:3.5rem}pn-proxio-pricegroup pn-button[disabled=disabled]{opacity:0.2}pn-proxio-pricegroup pn-button[disabled=disabled] button{cursor:default}pn-proxio-pricegroup pn-button[disabled=disabled] button.pn-button-light .pn-button-bg:after{background-color:#FFFFFF}pn-proxio-pricegroup pn-button[disabled=disabled] button[data-tooltip-open]:before{display:none}pn-proxio-pricegroup pn-button button div.button-tooltip{display:none}pn-proxio-pricegroup pn-button button:focus .pn-button-bg{-webkit-box-shadow:none;box-shadow:none}";
|
|
26
26
|
|
|
27
27
|
let PnProxioPricegroup = class {
|
|
28
28
|
constructor(hostRef) {
|
|
@@ -86,21 +86,64 @@ let PnProxioPricegroup = class {
|
|
|
86
86
|
this.i18n = translations[this.culture];
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
|
|
89
|
+
getPriceString(product) {
|
|
90
90
|
var _a;
|
|
91
|
-
|
|
91
|
+
let price = product.weightAndPriceList ? (_a = product === null || product === void 0 ? void 0 : product.weightAndPriceList[this.activeWeightIndex]) === null || _a === void 0 ? void 0 : _a.item2 : '';
|
|
92
|
+
return price ? this.i18n.from + price : '';
|
|
92
93
|
}
|
|
93
94
|
isActive(index) {
|
|
94
95
|
return index === this.activeWeightIndex;
|
|
95
96
|
}
|
|
97
|
+
getCarouselPosition(index) {
|
|
98
|
+
switch (index) {
|
|
99
|
+
case this.activeWeightIndex - 2: {
|
|
100
|
+
return -2;
|
|
101
|
+
}
|
|
102
|
+
case this.activeWeightIndex - 1: {
|
|
103
|
+
return -1;
|
|
104
|
+
}
|
|
105
|
+
case this.activeWeightIndex: {
|
|
106
|
+
return 0;
|
|
107
|
+
}
|
|
108
|
+
case this.activeWeightIndex + 1: {
|
|
109
|
+
return 1;
|
|
110
|
+
}
|
|
111
|
+
case this.activeWeightIndex + 2: {
|
|
112
|
+
return 2;
|
|
113
|
+
}
|
|
114
|
+
default:
|
|
115
|
+
return "outside";
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
getContainerPosition() {
|
|
119
|
+
let maxIndex = this.data.proxioProduct.weightAndPriceList.length - 1;
|
|
120
|
+
switch (this.activeWeightIndex) {
|
|
121
|
+
case 0: {
|
|
122
|
+
return "end50";
|
|
123
|
+
}
|
|
124
|
+
case 1: {
|
|
125
|
+
return "end75";
|
|
126
|
+
}
|
|
127
|
+
case maxIndex - 1: {
|
|
128
|
+
return "start75";
|
|
129
|
+
}
|
|
130
|
+
case maxIndex: {
|
|
131
|
+
return "start50";
|
|
132
|
+
}
|
|
133
|
+
default: {
|
|
134
|
+
return "default";
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
96
138
|
render() {
|
|
97
139
|
var _a, _b, _c;
|
|
98
|
-
return (index.h(index.Host, null, ((_a = this.data) === null || _a === void 0 ? void 0 : _a.proxioProduct) ? (index.h("div",
|
|
99
|
-
(index.h("div", { class: "weightvaluecontainer" }, index.h("pn-button", { disabled: this.activeWeightIndex === 0 ? ("disabled") : (null), "icon-only": "true", icon: "arrow-left", appearance: "light", small: "true", onClick: () => this.setActiveWeightIndex(this.activeWeightIndex - 1) }), index.h("div", { class: "weightradios
|
|
140
|
+
return (index.h(index.Host, null, ((_a = this.data) === null || _a === void 0 ? void 0 : _a.proxioProduct) ? (index.h("div", { class: "proxio-pricegroup-container" }, index.h("div", { class: "weightcontainer" }, this.data.proxioProduct.weightAndPriceList ?
|
|
141
|
+
(index.h("div", { class: "weightvaluecontainer" }, index.h("pn-button", { disabled: this.activeWeightIndex === 0 ? ("disabled") : (null), "icon-only": "true", icon: "arrow-left", appearance: "light", small: "true", onClick: () => this.setActiveWeightIndex(this.activeWeightIndex - 1) }), index.h("div", { class: "weightradios ", "data-carousel-container-position": this.getContainerPosition() }, index.h("div", { class: "weightline" }), this.data.proxioProduct.weightAndPriceList.map((weightItem, index$1) => this.getCarouselPosition(index$1) !== null ?
|
|
142
|
+
index.h("div", { class: "weightdata", "data-carousel-position": this.getCarouselPosition(index$1), onClick: () => this.setActiveWeightIndex(index$1) }, index.h("input", { type: "radio", id: "weightradio" + index$1, name: "weightradio", value: index$1, checked: this.isActive(index$1) }), index.h("label", { htmlFor: "weightradio" + index$1 }, weightItem.item1)) : null)), index.h("pn-button", { disabled: this.activeWeightIndex === ((_c = (_b = this.data.proxioProduct) === null || _b === void 0 ? void 0 : _b.weightAndPriceList) === null || _c === void 0 ? void 0 : _c.length) - 1 ? ("disabled") : (null), icon: "arrow-right", appearance: "light", "icon-only": "true", small: "true", onClick: () => this.setActiveWeightIndex(this.activeWeightIndex + 1) }))) : (null)), index.h("pn-proxio-productcard", null, index.h("pn-illustration", { slot: "illustrationmobile", illustration: this.data.proxioProduct.productIcon }), index.h("h2", { slot: "title" }, this.data.proxioProduct.productTitle), index.h("pn-proxio-productcard-description", { slot: "description", heading: this.data.proxioProduct.productPreamble, highlight: this.data.proxioProduct.deliveryDateInformation, list: this.data.proxioProduct.productDescriptionBulletListItems }), index.h("div", { slot: "information" }, index.h("pn-proxio-productcard-information", { label: this.i18n.labelPackage, information: this.data.proxioProduct.productPackageDimensionsList }), index.h("pn-proxio-productcard-information", { label: this.i18n.labelRoll, information: this.data.proxioProduct.productRollDimensionsList })), index.h("div", { slot: "bottomtags" }, this.data.proxioProduct.tracable ?
|
|
100
143
|
(index.h("pn-titletag", { color: "gray50" }, this.i18n.notTraceable)) : (null), this.data.proxioProduct.usp1 ?
|
|
101
144
|
(index.h("pn-titletag", { color: "gray50" }, this.data.proxioProduct.usp1)) : (null), this.data.proxioProduct.usp2 ?
|
|
102
145
|
(index.h("pn-titletag", { color: "gray50" }, this.data.proxioProduct.usp2)) : (null), this.data.proxioProduct.usp3 ?
|
|
103
|
-
(index.h("pn-titletag", { color: "gray50" }, this.data.proxioProduct.usp3)) : (null)), index.h("pn-illustration", { slot: "illustration", illustration: this.data.proxioProduct.productIcon }), index.h("div", { slot: "pricelink" }, index.h("pn-proxio-productcard-pricelink", { price: this.
|
|
146
|
+
(index.h("pn-titletag", { color: "gray50" }, this.data.proxioProduct.usp3)) : (null)), index.h("pn-illustration", { slot: "illustration", illustration: this.data.proxioProduct.productIcon }), index.h("div", { slot: "pricelink" }, index.h("pn-proxio-productcard-pricelink", { price: this.getPriceString(this.data.proxioProduct), link: this.data.proxioProduct.productLink, linktext: this.data.proxioProduct.productLinkText }), this.data.relatedProxioProducts ? (this.data.relatedProxioProducts.map((product) => (index.h("pn-proxio-productcard-pricelink", { price: this.getPriceString(product), link: product.productLink, linktext: product.productLinkText })))) : (null))))) : (null)));
|
|
104
147
|
}
|
|
105
148
|
};
|
|
106
149
|
PnProxioPricegroup.style = pnProxioPricegroupCss;
|
|
@@ -4,19 +4,19 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e3e27c79.js');
|
|
6
6
|
|
|
7
|
-
const pnProxioProductcardCss = "pn-proxio-productcard .cardcontent{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;border:solid 0.1rem #F9F8F8;border-radius:0.8rem;overflow:hidden;margin-left:auto;margin-right:auto;margin-bottom:1.6rem}pn-proxio-productcard .carddetails{min-width:70%;padding:
|
|
7
|
+
const pnProxioProductcardCss = "pn-proxio-productcard .cardcontent{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;border:solid 0.1rem #F9F8F8;border-radius:0.8rem;overflow:hidden;margin-left:auto;margin-right:auto;margin-bottom:1.6rem}@media screen and (max-width: 48em){pn-proxio-productcard .cardcontent{-ms-flex-direction:column;flex-direction:column}}pn-proxio-productcard .carddetails{min-width:70%;padding:2.4rem;display:-ms-flexbox;display:flex;gap:0.8rem;-ms-flex-direction:column;flex-direction:column}@media screen and (max-width: 48em){pn-proxio-productcard .carddetails{gap:1.6rem;margin-bottom:0.8rem}}pn-proxio-productcard .carddetails pn-illustration[slot=illustrationmobile]{display:none}@media screen and (max-width: 48em){pn-proxio-productcard .carddetails pn-illustration[slot=illustrationmobile]{margin-top:1.6rem;display:block}pn-proxio-productcard .carddetails pn-illustration[slot=illustrationmobile] .pn-illustration{max-width:8rem;height:8rem;margin-left:auto;margin-right:auto}}pn-proxio-productcard .cardcalltoactions{min-width:30%;background-color:#EFFBFF;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-line-pack:center;align-content:center}@media screen and (max-width: 48em){pn-proxio-productcard .cardcalltoactions pn-illustration[slot=illustration]{display:none}}pn-proxio-productcard .cardcalltoactions pn-illustration[slot=illustration] .pn-illustration{max-width:8rem;margin-left:auto;margin-right:auto;margin-top:4rem}pn-proxio-productcard [slot=information]{display:-ms-flexbox;display:flex;gap:1rem}@media screen and (max-width: 48em){pn-proxio-productcard [slot=information]{-ms-flex-direction:column;flex-direction:column;gap:1.6rem}}pn-proxio-productcard [slot=uppertags]{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;gap:2rem}pn-proxio-productcard [slot=bottomtags]{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;gap:2rem;margin:0.8rem 0}pn-proxio-productcard .heading{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:row;flex-direction:row}pn-proxio-productcard [slot=title]{text-decoration:underline}@media screen and (max-width: 48em){pn-proxio-productcard [slot=title]{text-decoration:none}}";
|
|
8
8
|
|
|
9
9
|
let PnProxioProductcard = class {
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (index.h(index.Host, null, index.h("div", { class: "cardcontent" }, index.h("div", { class: "carddetails" }, index.h("div", { class: "heading" }, index.h("slot", { name: "title" }), index.h("slot", { name: "uppertags" })), index.h("slot", { name: "description" }), index.h("slot", { name: "information" }), index.h("slot", { name: "bottomtags" })), index.h("div", { class: "cardcalltoactions" }, index.h("slot", { name: "illustration" }), index.h("slot", { name: "pricelink" })))));
|
|
14
|
+
return (index.h(index.Host, null, index.h("div", { class: "cardcontent" }, index.h("div", { class: "carddetails" }, index.h("slot", { name: "illustrationmobile" }), index.h("div", { class: "heading" }, index.h("slot", { name: "title" }), index.h("slot", { name: "uppertags" })), index.h("slot", { name: "description" }), index.h("slot", { name: "information" }), index.h("slot", { name: "bottomtags" })), index.h("div", { class: "cardcalltoactions" }, index.h("slot", { name: "illustration" }), index.h("slot", { name: "pricelink" })))));
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
PnProxioProductcard.style = pnProxioProductcardCss;
|
|
18
18
|
|
|
19
|
-
const pnProxioProductcardDescriptionCss = "pn-proxio-productcard-description h3{font-size:2rem}pn-proxio-productcard-description .highlight{color:#
|
|
19
|
+
const pnProxioProductcardDescriptionCss = "pn-proxio-productcard-description h3{font-size:1.6rem}pn-proxio-productcard-description ul{padding-left:2.5rem}pn-proxio-productcard-description li{font-size:1.6rem;line-height:2.2rem}pn-proxio-productcard-description .highlight{color:#0AA85C}";
|
|
20
20
|
|
|
21
21
|
let PnProxioProductcardDescription = class {
|
|
22
22
|
constructor(hostRef) {
|
|
@@ -33,7 +33,7 @@ let PnProxioProductcardDescription = class {
|
|
|
33
33
|
};
|
|
34
34
|
PnProxioProductcardDescription.style = pnProxioProductcardDescriptionCss;
|
|
35
35
|
|
|
36
|
-
const pnProxioProductcardInformationCss = "pn-proxio-productcard-information{-
|
|
36
|
+
const pnProxioProductcardInformationCss = "pn-proxio-productcard-information p.cardinfocontent-title{margin-bottom:0.4rem}pn-proxio-productcard-information p strong.cardinfocontent-label{font-size:1.4rem;font-weight:500}";
|
|
37
37
|
|
|
38
38
|
let PnProxioProductcardInformation = class {
|
|
39
39
|
constructor(hostRef) {
|
|
@@ -41,14 +41,14 @@ let PnProxioProductcardInformation = class {
|
|
|
41
41
|
this.information = [];
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (index.h(index.Host, null, index.h("div", { class: "cardinfocontent" }, this.information && this.label ? (index.h("div", { class: "cardinfocontent-item" }, index.h("p",
|
|
45
|
-
(index.h("p", null, index.h("strong", { class: "label" }, item.item1, ":"), " ", item.item2))
|
|
44
|
+
return (index.h(index.Host, null, index.h("div", { class: "cardinfocontent" }, this.information && this.label ? (index.h("div", { class: "cardinfocontent-item" }, index.h("p", { class: "cardinfocontent-title" }, index.h("strong", null, this.label)), this.information.map((item) => (item ?
|
|
45
|
+
(index.h("p", null, index.h("strong", { class: "cardinfocontent-label" }, item.item1, ":"), " ", item.item2))
|
|
46
46
|
: (null))))) : null)));
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
PnProxioProductcardInformation.style = pnProxioProductcardInformationCss;
|
|
50
50
|
|
|
51
|
-
const pnProxioProductcardPricelinkCss = "pn-proxio-productcard-pricelink{-ms-flex-item-align:center;align-self:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;margin:2rem 1rem;gap:
|
|
51
|
+
const pnProxioProductcardPricelinkCss = "pn-proxio-productcard-pricelink{-ms-flex-item-align:center;align-self:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;margin:2rem 1rem;gap:0.8rem;-ms-flex-line-pack:center;align-content:center;-ms-flex-wrap:wrap;flex-wrap:wrap}@media screen and (max-width: 48em){pn-proxio-productcard-pricelink{margin:2.4rem 1rem}}pn-proxio-productcard-pricelink h3{font-size:2rem}pn-proxio-productcard-pricelink pn-button{min-width:17.3rem}pn-proxio-productcard-pricelink pn-button a .pn-button-content{font-size:1.4rem;font-weight:500}@media screen and (max-width: 48em){pn-proxio-productcard-pricelink pn-button{min-width:30rem}}";
|
|
52
52
|
|
|
53
53
|
let PnProxioProductcardPricelink = class {
|
|
54
54
|
constructor(hostRef) {
|
|
@@ -56,7 +56,7 @@ let PnProxioProductcardPricelink = class {
|
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
58
|
return this.link && this.linktext ?
|
|
59
|
-
(index.h(index.Host, null, this.price ? (index.h("
|
|
59
|
+
(index.h(index.Host, null, this.price ? (index.h("h3", null, this.price)) : (null), index.h("pn-button", { small: "true", icon: "arrow-right", appearance: "light", href: this.link, target: "_blank", rel: "noopener nofollower noreferrer" }, this.linktext))) : (null);
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
PnProxioProductcardPricelink.style = pnProxioProductcardPricelinkCss;
|
|
@@ -1,71 +1,149 @@
|
|
|
1
|
+
pn-proxio-pricegroup div.proxio-pricegroup-container {
|
|
2
|
+
max-width: 99.4rem;
|
|
3
|
+
}
|
|
1
4
|
pn-proxio-pricegroup div.weightcontainer {
|
|
2
|
-
margin:
|
|
5
|
+
margin: 2.8rem 0;
|
|
3
6
|
}
|
|
4
7
|
pn-proxio-pricegroup div.weightvaluecontainer {
|
|
5
8
|
display: flex;
|
|
6
9
|
flex-direction: row;
|
|
7
|
-
flex-wrap: wrap;
|
|
8
10
|
align-content: center;
|
|
9
11
|
justify-content: space-between;
|
|
10
12
|
align-items: flex-start;
|
|
11
13
|
}
|
|
14
|
+
pn-proxio-pricegroup div.weightvaluecontainer pn-button {
|
|
15
|
+
transform: translateY(-0.4rem);
|
|
16
|
+
}
|
|
17
|
+
pn-proxio-pricegroup div.weightradios {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: row;
|
|
20
|
+
justify-content: space-between;
|
|
21
|
+
align-items: center;
|
|
22
|
+
flex-wrap: wrap;
|
|
23
|
+
color: #005D92;
|
|
24
|
+
width: 80%;
|
|
25
|
+
margin: 0 3.6rem;
|
|
26
|
+
position: relative;
|
|
27
|
+
width: 0%;
|
|
28
|
+
}
|
|
29
|
+
pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end50] {
|
|
30
|
+
width: 45%;
|
|
31
|
+
margin-left: auto;
|
|
32
|
+
margin-right: 3.6rem;
|
|
33
|
+
}
|
|
34
|
+
@media screen and (max-width: 48em) {
|
|
35
|
+
pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end50] {
|
|
36
|
+
width: 40%;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end75] {
|
|
40
|
+
width: 65%;
|
|
41
|
+
margin-left: auto;
|
|
42
|
+
margin-right: 3.6rem;
|
|
43
|
+
}
|
|
44
|
+
@media screen and (max-width: 48em) {
|
|
45
|
+
pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end75] {
|
|
46
|
+
margin-right: auto;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start50] {
|
|
50
|
+
width: 45%;
|
|
51
|
+
margin-right: auto;
|
|
52
|
+
margin-left: 3.6rem;
|
|
53
|
+
}
|
|
54
|
+
@media screen and (max-width: 48em) {
|
|
55
|
+
pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start50] {
|
|
56
|
+
width: 40%;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start75] {
|
|
60
|
+
width: 65%;
|
|
61
|
+
margin-right: auto;
|
|
62
|
+
margin-left: 3.6rem;
|
|
63
|
+
}
|
|
64
|
+
@media screen and (max-width: 48em) {
|
|
65
|
+
pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start75] {
|
|
66
|
+
margin-left: auto;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
pn-proxio-pricegroup div.weightradios[data-carousel-container-position=default] {
|
|
70
|
+
flex: 0 0 auto;
|
|
71
|
+
width: 80%;
|
|
72
|
+
}
|
|
73
|
+
@media screen and (max-width: 48em) {
|
|
74
|
+
pn-proxio-pricegroup div.weightradios[data-carousel-container-position=default] {
|
|
75
|
+
width: 65%;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
12
78
|
pn-proxio-pricegroup div.weightdata {
|
|
13
79
|
display: flex;
|
|
14
80
|
flex-direction: column;
|
|
15
81
|
align-items: center;
|
|
16
82
|
align-content: center;
|
|
17
83
|
flex-wrap: wrap;
|
|
18
|
-
height: 5rem;
|
|
19
84
|
justify-content: space-between;
|
|
85
|
+
gap: 1.2rem;
|
|
86
|
+
min-width: 4rem;
|
|
87
|
+
cursor: pointer;
|
|
88
|
+
}
|
|
89
|
+
pn-proxio-pricegroup div.weightdata label {
|
|
90
|
+
font-size: 1.4rem;
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
}
|
|
93
|
+
pn-proxio-pricegroup div.weightdata[data-carousel-position="0"] {
|
|
94
|
+
font-size: 2rem;
|
|
95
|
+
font-weight: 700;
|
|
96
|
+
}
|
|
97
|
+
@media screen and (max-width: 48em) {
|
|
98
|
+
pn-proxio-pricegroup div.weightdata[data-carousel-position="2"], pn-proxio-pricegroup div.weightdata[data-carousel-position="-2"] {
|
|
99
|
+
display: none;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
pn-proxio-pricegroup div.weightdata[data-carousel-position=outside] {
|
|
103
|
+
display: none;
|
|
20
104
|
}
|
|
21
|
-
pn-proxio-pricegroup input[type=radio] {
|
|
105
|
+
pn-proxio-pricegroup div.weightdata input[type=radio] {
|
|
22
106
|
-webkit-appearance: none;
|
|
23
107
|
-moz-appearance: none;
|
|
24
|
-
width: 1.
|
|
25
|
-
height: 1.
|
|
108
|
+
width: 1.2rem;
|
|
109
|
+
height: 1.2rem;
|
|
26
110
|
background-color: #005D92;
|
|
27
111
|
border-radius: 50%;
|
|
112
|
+
margin: 0;
|
|
113
|
+
cursor: pointer;
|
|
28
114
|
}
|
|
29
|
-
pn-proxio-pricegroup input[type=radio]:checked {
|
|
115
|
+
pn-proxio-pricegroup div.weightdata input[type=radio]:checked {
|
|
30
116
|
z-index: 1;
|
|
31
117
|
transform: translateY(-0.1rem);
|
|
32
|
-
height: 1.
|
|
33
|
-
width: 1.
|
|
118
|
+
height: 1.4rem;
|
|
119
|
+
width: 1.4rem;
|
|
34
120
|
box-shadow: 0 0 0 0.3rem #FFFFFF, 0 0 0 0.4rem #005D92;
|
|
35
121
|
}
|
|
122
|
+
pn-proxio-pricegroup div.weightline {
|
|
123
|
+
width: 100%;
|
|
124
|
+
background-color: #F3F2F2;
|
|
125
|
+
z-index: -1;
|
|
126
|
+
height: 0.8rem;
|
|
127
|
+
-webkit-transform: translateX(2.1rem) translateY(1.32rem);
|
|
128
|
+
transform: translateX(2.1rem) translateY(1rem);
|
|
129
|
+
border-radius: 2rem;
|
|
130
|
+
margin-right: 3.5rem;
|
|
131
|
+
}
|
|
36
132
|
pn-proxio-pricegroup pn-button[disabled=disabled] {
|
|
37
133
|
opacity: 0.2;
|
|
38
134
|
}
|
|
135
|
+
pn-proxio-pricegroup pn-button[disabled=disabled] button {
|
|
136
|
+
cursor: default;
|
|
137
|
+
}
|
|
138
|
+
pn-proxio-pricegroup pn-button[disabled=disabled] button.pn-button-light .pn-button-bg:after {
|
|
139
|
+
background-color: #FFFFFF;
|
|
140
|
+
}
|
|
141
|
+
pn-proxio-pricegroup pn-button[disabled=disabled] button[data-tooltip-open]:before {
|
|
142
|
+
display: none;
|
|
143
|
+
}
|
|
39
144
|
pn-proxio-pricegroup pn-button button div.button-tooltip {
|
|
40
|
-
visibility: hidden;
|
|
41
145
|
display: none;
|
|
42
146
|
}
|
|
43
147
|
pn-proxio-pricegroup pn-button button:focus .pn-button-bg {
|
|
44
148
|
box-shadow: none;
|
|
45
|
-
}
|
|
46
|
-
pn-proxio-pricegroup div.weightradios {
|
|
47
|
-
display: flex;
|
|
48
|
-
flex-direction: row;
|
|
49
|
-
justify-content: space-between;
|
|
50
|
-
align-items: center;
|
|
51
|
-
flex-wrap: wrap;
|
|
52
|
-
color: #005D92;
|
|
53
|
-
width: 80%;
|
|
54
|
-
margin-left: auto;
|
|
55
|
-
margin-right: auto;
|
|
56
|
-
position: relative;
|
|
57
|
-
}
|
|
58
|
-
pn-proxio-pricegroup div.weightline {
|
|
59
|
-
width: 100%;
|
|
60
|
-
background-color: #F3F2F2;
|
|
61
|
-
z-index: -1;
|
|
62
|
-
height: 0.7rem;
|
|
63
|
-
-webkit-transform: translateX(2.1rem) translateY(1.32rem);
|
|
64
|
-
transform: translateX(2.1rem) translateY(1.32rem);
|
|
65
|
-
border-radius: 3rem;
|
|
66
|
-
margin-right: 3.5rem;
|
|
67
|
-
}
|
|
68
|
-
pn-proxio-pricegroup .activeweight {
|
|
69
|
-
font-size: large;
|
|
70
|
-
font-weight: bold;
|
|
71
149
|
}
|
|
@@ -63,26 +63,70 @@ export class PnProxioPricegroup {
|
|
|
63
63
|
this.i18n = translations[this.culture];
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
|
|
66
|
+
getPriceString(product) {
|
|
67
67
|
var _a;
|
|
68
|
-
|
|
68
|
+
let price = product.weightAndPriceList ? (_a = product === null || product === void 0 ? void 0 : product.weightAndPriceList[this.activeWeightIndex]) === null || _a === void 0 ? void 0 : _a.item2 : '';
|
|
69
|
+
return price ? this.i18n.from + price : '';
|
|
69
70
|
}
|
|
70
71
|
isActive(index) {
|
|
71
72
|
return index === this.activeWeightIndex;
|
|
72
73
|
}
|
|
74
|
+
getCarouselPosition(index) {
|
|
75
|
+
switch (index) {
|
|
76
|
+
case this.activeWeightIndex - 2: {
|
|
77
|
+
return -2;
|
|
78
|
+
}
|
|
79
|
+
case this.activeWeightIndex - 1: {
|
|
80
|
+
return -1;
|
|
81
|
+
}
|
|
82
|
+
case this.activeWeightIndex: {
|
|
83
|
+
return 0;
|
|
84
|
+
}
|
|
85
|
+
case this.activeWeightIndex + 1: {
|
|
86
|
+
return 1;
|
|
87
|
+
}
|
|
88
|
+
case this.activeWeightIndex + 2: {
|
|
89
|
+
return 2;
|
|
90
|
+
}
|
|
91
|
+
default:
|
|
92
|
+
return "outside";
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
getContainerPosition() {
|
|
96
|
+
let maxIndex = this.data.proxioProduct.weightAndPriceList.length - 1;
|
|
97
|
+
switch (this.activeWeightIndex) {
|
|
98
|
+
case 0: {
|
|
99
|
+
return "end50";
|
|
100
|
+
}
|
|
101
|
+
case 1: {
|
|
102
|
+
return "end75";
|
|
103
|
+
}
|
|
104
|
+
case maxIndex - 1: {
|
|
105
|
+
return "start75";
|
|
106
|
+
}
|
|
107
|
+
case maxIndex: {
|
|
108
|
+
return "start50";
|
|
109
|
+
}
|
|
110
|
+
default: {
|
|
111
|
+
return "default";
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
73
115
|
render() {
|
|
74
116
|
var _a, _b, _c;
|
|
75
|
-
return (h(Host, null, ((_a = this.data) === null || _a === void 0 ? void 0 : _a.proxioProduct) ? (h("div",
|
|
117
|
+
return (h(Host, null, ((_a = this.data) === null || _a === void 0 ? void 0 : _a.proxioProduct) ? (h("div", { class: "proxio-pricegroup-container" },
|
|
76
118
|
h("div", { class: "weightcontainer" }, this.data.proxioProduct.weightAndPriceList ?
|
|
77
119
|
(h("div", { class: "weightvaluecontainer" },
|
|
78
120
|
h("pn-button", { disabled: this.activeWeightIndex === 0 ? ("disabled") : (null), "icon-only": "true", icon: "arrow-left", appearance: "light", small: "true", onClick: () => this.setActiveWeightIndex(this.activeWeightIndex - 1) }),
|
|
79
|
-
h("div", { class: "weightradios" },
|
|
121
|
+
h("div", { class: "weightradios ", "data-carousel-container-position": this.getContainerPosition() },
|
|
80
122
|
h("div", { class: "weightline" }),
|
|
81
|
-
this.data.proxioProduct.weightAndPriceList.map((weightItem, index) =>
|
|
82
|
-
h("
|
|
83
|
-
|
|
123
|
+
this.data.proxioProduct.weightAndPriceList.map((weightItem, index) => this.getCarouselPosition(index) !== null ?
|
|
124
|
+
h("div", { class: "weightdata", "data-carousel-position": this.getCarouselPosition(index), onClick: () => this.setActiveWeightIndex(index) },
|
|
125
|
+
h("input", { type: "radio", id: "weightradio" + index, name: "weightradio", value: index, checked: this.isActive(index) }),
|
|
126
|
+
h("label", { htmlFor: "weightradio" + index }, weightItem.item1)) : null)),
|
|
84
127
|
h("pn-button", { disabled: this.activeWeightIndex === ((_c = (_b = this.data.proxioProduct) === null || _b === void 0 ? void 0 : _b.weightAndPriceList) === null || _c === void 0 ? void 0 : _c.length) - 1 ? ("disabled") : (null), icon: "arrow-right", appearance: "light", "icon-only": "true", small: "true", onClick: () => this.setActiveWeightIndex(this.activeWeightIndex + 1) }))) : (null)),
|
|
85
128
|
h("pn-proxio-productcard", null,
|
|
129
|
+
h("pn-illustration", { slot: "illustrationmobile", illustration: this.data.proxioProduct.productIcon }),
|
|
86
130
|
h("h2", { slot: "title" }, this.data.proxioProduct.productTitle),
|
|
87
131
|
h("pn-proxio-productcard-description", { slot: "description", heading: this.data.proxioProduct.productPreamble, highlight: this.data.proxioProduct.deliveryDateInformation, list: this.data.proxioProduct.productDescriptionBulletListItems }),
|
|
88
132
|
h("div", { slot: "information" },
|
|
@@ -99,8 +143,8 @@ export class PnProxioPricegroup {
|
|
|
99
143
|
(h("pn-titletag", { color: "gray50" }, this.data.proxioProduct.usp3)) : (null)),
|
|
100
144
|
h("pn-illustration", { slot: "illustration", illustration: this.data.proxioProduct.productIcon }),
|
|
101
145
|
h("div", { slot: "pricelink" },
|
|
102
|
-
h("pn-proxio-productcard-pricelink", { price: this.
|
|
103
|
-
this.data.relatedProxioProducts ? (this.data.relatedProxioProducts.map((product) => (h("pn-proxio-productcard-pricelink", { price: this.
|
|
146
|
+
h("pn-proxio-productcard-pricelink", { price: this.getPriceString(this.data.proxioProduct), link: this.data.proxioProduct.productLink, linktext: this.data.proxioProduct.productLinkText }),
|
|
147
|
+
this.data.relatedProxioProducts ? (this.data.relatedProxioProducts.map((product) => (h("pn-proxio-productcard-pricelink", { price: this.getPriceString(product), link: product.productLink, linktext: product.productLinkText })))) : (null))))) : (null)));
|
|
104
148
|
}
|
|
105
149
|
static get is() { return "pn-proxio-pricegroup"; }
|
|
106
150
|
static get originalStyleUrls() { return {
|
|
@@ -9,7 +9,7 @@ export default {
|
|
|
9
9
|
|
|
10
10
|
const Template = ({ ...args }) => {
|
|
11
11
|
return `
|
|
12
|
-
<div style="max-width:
|
|
12
|
+
<div style="max-width: 100rem; margin:1.6rem auto 0;">
|
|
13
13
|
<pn-proxio-pricegroup
|
|
14
14
|
culture="${args.culture}"
|
|
15
15
|
tariffid="${args.tariffId}"
|
package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-description.css
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
pn-proxio-productcard-description h3 {
|
|
2
|
-
font-size:
|
|
2
|
+
font-size: 1.6rem;
|
|
3
|
+
}
|
|
4
|
+
pn-proxio-productcard-description ul {
|
|
5
|
+
padding-left: 2.5rem;
|
|
6
|
+
}
|
|
7
|
+
pn-proxio-productcard-description li {
|
|
8
|
+
font-size: 1.6rem;
|
|
9
|
+
line-height: 2.2rem;
|
|
3
10
|
}
|
|
4
11
|
pn-proxio-productcard-description .highlight {
|
|
5
|
-
color: #
|
|
12
|
+
color: #0AA85C;
|
|
6
13
|
}
|
package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-information.css
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
pn-proxio-productcard-information {
|
|
2
|
-
|
|
1
|
+
pn-proxio-productcard-information p.cardinfocontent-title {
|
|
2
|
+
margin-bottom: 0.4rem;
|
|
3
3
|
}
|
|
4
|
-
pn-proxio-productcard-information p strong.label {
|
|
4
|
+
pn-proxio-productcard-information p strong.cardinfocontent-label {
|
|
5
|
+
font-size: 1.4rem;
|
|
5
6
|
font-weight: 500;
|
|
6
7
|
}
|
package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-information.js
CHANGED
|
@@ -6,11 +6,11 @@ export class PnProxioProductcardInformation {
|
|
|
6
6
|
render() {
|
|
7
7
|
return (h(Host, null,
|
|
8
8
|
h("div", { class: "cardinfocontent" }, this.information && this.label ? (h("div", { class: "cardinfocontent-item" },
|
|
9
|
-
h("p",
|
|
9
|
+
h("p", { class: "cardinfocontent-title" },
|
|
10
10
|
h("strong", null, this.label)),
|
|
11
11
|
this.information.map((item) => (item ?
|
|
12
12
|
(h("p", null,
|
|
13
|
-
h("strong", { class: "label" },
|
|
13
|
+
h("strong", { class: "cardinfocontent-label" },
|
|
14
14
|
item.item1,
|
|
15
15
|
":"),
|
|
16
16
|
" ",
|
package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-pricelink.css
CHANGED
|
@@ -4,10 +4,27 @@ pn-proxio-productcard-pricelink {
|
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
align-items: center;
|
|
6
6
|
margin: 2rem 1rem;
|
|
7
|
-
gap:
|
|
7
|
+
gap: 0.8rem;
|
|
8
8
|
align-content: center;
|
|
9
9
|
flex-wrap: wrap;
|
|
10
10
|
}
|
|
11
|
+
@media screen and (max-width: 48em) {
|
|
12
|
+
pn-proxio-productcard-pricelink {
|
|
13
|
+
margin: 2.4rem 1rem;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
pn-proxio-productcard-pricelink h3 {
|
|
17
|
+
font-size: 2rem;
|
|
18
|
+
}
|
|
11
19
|
pn-proxio-productcard-pricelink pn-button {
|
|
12
|
-
min-width:
|
|
20
|
+
min-width: 17.3rem;
|
|
21
|
+
}
|
|
22
|
+
pn-proxio-productcard-pricelink pn-button a .pn-button-content {
|
|
23
|
+
font-size: 1.4rem;
|
|
24
|
+
font-weight: 500;
|
|
25
|
+
}
|
|
26
|
+
@media screen and (max-width: 48em) {
|
|
27
|
+
pn-proxio-productcard-pricelink pn-button {
|
|
28
|
+
min-width: 30rem;
|
|
29
|
+
}
|
|
13
30
|
}
|
package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-pricelink.js
CHANGED
|
@@ -3,7 +3,7 @@ export class PnProxioProductcardPricelink {
|
|
|
3
3
|
render() {
|
|
4
4
|
return this.link && this.linktext ?
|
|
5
5
|
(h(Host, null,
|
|
6
|
-
this.price ? (h("
|
|
6
|
+
this.price ? (h("h3", null, this.price)) : (null),
|
|
7
7
|
h("pn-button", { small: "true", icon: "arrow-right", appearance: "light", href: this.link, target: "_blank", rel: "noopener nofollower noreferrer" }, this.linktext))) : (null);
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "pn-proxio-productcard-pricelink"; }
|
|
@@ -8,31 +8,68 @@ pn-proxio-productcard .cardcontent {
|
|
|
8
8
|
margin-right: auto;
|
|
9
9
|
margin-bottom: 1.6rem;
|
|
10
10
|
}
|
|
11
|
+
@media screen and (max-width: 48em) {
|
|
12
|
+
pn-proxio-productcard .cardcontent {
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
11
16
|
pn-proxio-productcard .carddetails {
|
|
12
17
|
min-width: 70%;
|
|
13
|
-
padding:
|
|
18
|
+
padding: 2.4rem;
|
|
14
19
|
display: flex;
|
|
15
|
-
gap:
|
|
20
|
+
gap: 0.8rem;
|
|
16
21
|
flex-direction: column;
|
|
17
22
|
}
|
|
23
|
+
@media screen and (max-width: 48em) {
|
|
24
|
+
pn-proxio-productcard .carddetails {
|
|
25
|
+
gap: 1.6rem;
|
|
26
|
+
margin-bottom: 0.8rem;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
pn-proxio-productcard .carddetails pn-illustration[slot=illustrationmobile] {
|
|
30
|
+
display: none;
|
|
31
|
+
}
|
|
32
|
+
@media screen and (max-width: 48em) {
|
|
33
|
+
pn-proxio-productcard .carddetails pn-illustration[slot=illustrationmobile] {
|
|
34
|
+
margin-top: 1.6rem;
|
|
35
|
+
display: block;
|
|
36
|
+
}
|
|
37
|
+
pn-proxio-productcard .carddetails pn-illustration[slot=illustrationmobile] .pn-illustration {
|
|
38
|
+
max-width: 8rem;
|
|
39
|
+
height: 8rem;
|
|
40
|
+
margin-left: auto;
|
|
41
|
+
margin-right: auto;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
18
44
|
pn-proxio-productcard .cardcalltoactions {
|
|
19
45
|
min-width: 30%;
|
|
20
46
|
background-color: #EFFBFF;
|
|
21
|
-
padding: 1rem;
|
|
22
47
|
display: flex;
|
|
23
48
|
flex-direction: column;
|
|
24
49
|
justify-content: center;
|
|
25
50
|
align-content: center;
|
|
26
51
|
}
|
|
52
|
+
@media screen and (max-width: 48em) {
|
|
53
|
+
pn-proxio-productcard .cardcalltoactions pn-illustration[slot=illustration] {
|
|
54
|
+
display: none;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
27
57
|
pn-proxio-productcard .cardcalltoactions pn-illustration[slot=illustration] .pn-illustration {
|
|
28
|
-
max-width:
|
|
58
|
+
max-width: 8rem;
|
|
29
59
|
margin-left: auto;
|
|
30
60
|
margin-right: auto;
|
|
61
|
+
margin-top: 4rem;
|
|
31
62
|
}
|
|
32
63
|
pn-proxio-productcard [slot=information] {
|
|
33
64
|
display: flex;
|
|
34
65
|
gap: 1rem;
|
|
35
66
|
}
|
|
67
|
+
@media screen and (max-width: 48em) {
|
|
68
|
+
pn-proxio-productcard [slot=information] {
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
gap: 1.6rem;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
36
73
|
pn-proxio-productcard [slot=uppertags] {
|
|
37
74
|
display: flex;
|
|
38
75
|
flex-direction: row;
|
|
@@ -48,7 +85,7 @@ pn-proxio-productcard [slot=bottomtags] {
|
|
|
48
85
|
justify-content: flex-start;
|
|
49
86
|
align-items: center;
|
|
50
87
|
gap: 2rem;
|
|
51
|
-
margin:
|
|
88
|
+
margin: 0.8rem 0;
|
|
52
89
|
}
|
|
53
90
|
pn-proxio-productcard .heading {
|
|
54
91
|
display: flex;
|
|
@@ -57,4 +94,9 @@ pn-proxio-productcard .heading {
|
|
|
57
94
|
}
|
|
58
95
|
pn-proxio-productcard [slot=title] {
|
|
59
96
|
text-decoration: underline;
|
|
97
|
+
}
|
|
98
|
+
@media screen and (max-width: 48em) {
|
|
99
|
+
pn-proxio-productcard [slot=title] {
|
|
100
|
+
text-decoration: none;
|
|
101
|
+
}
|
|
60
102
|
}
|
|
@@ -4,6 +4,7 @@ export class PnProxioProductcard {
|
|
|
4
4
|
return (h(Host, null,
|
|
5
5
|
h("div", { class: "cardcontent" },
|
|
6
6
|
h("div", { class: "carddetails" },
|
|
7
|
+
h("slot", { name: "illustrationmobile" }),
|
|
7
8
|
h("div", { class: "heading" },
|
|
8
9
|
h("slot", { name: "title" }),
|
|
9
10
|
h("slot", { name: "uppertags" })),
|
package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard.stories.js
CHANGED
|
@@ -9,8 +9,9 @@ export default {
|
|
|
9
9
|
|
|
10
10
|
const Template = ({ ...args }) => {
|
|
11
11
|
return `
|
|
12
|
-
<div style="max-width:
|
|
12
|
+
<div style="max-width: 100rem; margin:1.6rem auto 0;">
|
|
13
13
|
<pn-proxio-productcard>
|
|
14
|
+
<pn-illustration slot="illustrationmobile" illustration="${args.illustration}" ></pn-illustration>
|
|
14
15
|
<h2 slot="title">${args.heading}</h2>
|
|
15
16
|
<div slot="uppertags">
|
|
16
17
|
<pn-titletag icon="box-label" color="green700">${args.uppertag}</pn-titletag>
|