@postnord/pn-marketweb-components 1.0.48 → 1.0.49-beta1

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.
Files changed (46) hide show
  1. package/cjs/loader.cjs.js +1 -1
  2. package/cjs/pn-find-price-result.cjs.entry.js +10 -3
  3. package/cjs/pn-find-price.cjs.entry.js +49 -71
  4. package/cjs/pn-market-web-components.cjs.js +1 -1
  5. package/cjs/pn-product-card_3.cjs.entry.js +3 -3
  6. package/collection/components/widgets/pn-find-price/data.js +27 -32
  7. package/collection/components/widgets/pn-find-price/find-price.stories.js +1 -1
  8. package/collection/components/widgets/pn-find-price/img/large-package.svg +9 -0
  9. package/collection/components/widgets/pn-find-price/img/medium-package.svg +9 -0
  10. package/collection/components/widgets/pn-find-price/img/postnord-person1.svg +52 -0
  11. package/collection/components/widgets/pn-find-price/img/small-package.svg +23 -0
  12. package/collection/components/widgets/pn-find-price/pn-find-price-result.js +75 -9
  13. package/collection/components/widgets/pn-find-price/pn-find-price-translations.js +5 -5
  14. package/collection/components/widgets/pn-find-price/pn-find-price.css +43 -36
  15. package/collection/components/widgets/pn-find-price/pn-find-price.js +35 -53
  16. package/collection/components/widgets/pn-product-card/pn-product-card-info.css +2 -2
  17. package/collection/components/widgets/pn-product-card/pn-product-card.css +44 -17
  18. package/collection/components/widgets/pn-product-card/pn-product-card.js +1 -0
  19. package/custom-elements/index.js +63 -78
  20. package/esm/loader.js +1 -1
  21. package/esm/pn-find-price-result.entry.js +10 -3
  22. package/esm/pn-find-price.entry.js +49 -71
  23. package/esm/pn-market-web-components.js +1 -1
  24. package/esm/pn-product-card_3.entry.js +3 -3
  25. package/esm-es5/loader.js +1 -1
  26. package/esm-es5/pn-find-price-result.entry.js +1 -1
  27. package/esm-es5/pn-find-price.entry.js +1 -1
  28. package/esm-es5/pn-market-web-components.js +1 -1
  29. package/esm-es5/pn-product-card_3.entry.js +1 -1
  30. package/package.json +1 -1
  31. package/pn-market-web-components/p-096a65f7.entry.js +1 -0
  32. package/pn-market-web-components/p-3e3d5907.entry.js +1 -0
  33. package/pn-market-web-components/p-413116a5.system.entry.js +1 -0
  34. package/pn-market-web-components/p-7a7f380b.system.js +1 -1
  35. package/pn-market-web-components/p-952ba9ab.system.entry.js +1 -0
  36. package/pn-market-web-components/p-c66cb026.system.entry.js +1 -0
  37. package/pn-market-web-components/p-f5efc1c6.entry.js +1 -0
  38. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  39. package/types/components/widgets/pn-find-price/pn-find-price-result.d.ts +3 -0
  40. package/types/components.d.ts +6 -0
  41. package/pn-market-web-components/p-1060d686.system.entry.js +0 -1
  42. package/pn-market-web-components/p-37e26384.system.entry.js +0 -1
  43. package/pn-market-web-components/p-45bb8f15.entry.js +0 -1
  44. package/pn-market-web-components/p-518b1864.entry.js +0 -1
  45. package/pn-market-web-components/p-b425e079.system.entry.js +0 -1
  46. package/pn-market-web-components/p-c799bf36.entry.js +0 -1
@@ -10,24 +10,39 @@ export class PnfindPriceResult {
10
10
  this.composeItems();
11
11
  }
12
12
  composeItems() {
13
+ if (this.item.additionalusp) {
14
+ var x = this.item.additionalusp.split("/");
15
+ this.Usp1 = (x.length > 0) ? x[0] : null;
16
+ this.Usp2 = (x.length > 1) ? x[1] : null;
17
+ this.Usp3 = (x.length > 2) ? x[2] : null;
18
+ }
13
19
  }
14
20
  render() {
15
21
  return (h(Host, null, h("pn-product-card", null,
16
22
  h("pn-illustration", { slot: "illustration", illustration: this.item.illustration }),
23
+ h("div", { slot: "title" },
24
+ h("h2", null,
25
+ this.item.name,
26
+ " "),
27
+ (this.item.highestrankusp) ?
28
+ (this.item.highestrankusp === "Billigast") ?
29
+ (h("span", { slot: "Biligast" },
30
+ this.item.highestrankusp,
31
+ h("pn-icon", { symbol: "box-label", small: "false", color: "green700" })))
32
+ : (h("span", { slot: "Snabbast" },
33
+ this.item.highestrankusp,
34
+ h("pn-icon", { symbol: "bolt", small: "false", color: "blue700" }))) : null),
17
35
  h("div", { slot: "content" },
18
36
  h("div", { class: "content" },
19
- h("h3", null,
20
- this.item.name,
21
- (this.item.highestrankusp) ?
22
- (this.item.highestrankusp === "Biligast") ?
23
- (h("span", { slot: "Biligast" }, this.item.highestrankusp)) : (h("span", { slot: "Snabbast" }, this.item.highestrankusp)) : null),
24
- (this.item.description) ? (h("div", { class: "description" }, this.item.description)) : null,
37
+ (this.item.description) ? (h("div", { class: "description" },
38
+ h("pre", null, this.item.description))) : null,
25
39
  (this.item.info) ? (h("div", { class: "description" }, this.item.info)) : null)),
26
40
  this.item.note ? (h("small", { slot: "note" },
27
41
  h("p", null, this.item.note))) : null,
28
- this.item.additionalusp ? (h("small", { slot: "additionalUSP" },
29
- h("p", null, this.item.additionalusp))) : null,
30
- this.item.maximummeasurements ? (h("pn-product-card-info", { label: state.i18n.maxmeasurementlabel, text: this.item.maximummeasurements })) : null,
42
+ this.item.additionalusp ? (h("div", { slot: "additionalUSP" },
43
+ this.Usp1 ? (h("span", null, this.Usp1)) : null,
44
+ this.Usp2 ? (h("span", null, this.Usp2)) : null,
45
+ this.Usp3 ? (h("span", null, this.Usp3)) : null)) : null,
31
46
  this.item.paket ? (h("pn-product-card-info", { paket: this.item.paket, rulle: this.item.rulle })) : null,
32
47
  this.item.priceagent ? (h("pn-product-card-price", { slot: "price", label: "", amount: this.item.priceagent + '', currency: state.market.currency, url: "https://shop.postnord.se/ebutik/default.aspx" })) : null,
33
48
  this.item.pricesenddirect ? (h("pn-product-card-price", { slot: "sendDirectPrice", label: state.i18n.senddirectcta, amount: this.item.pricesenddirect + '', currency: state.market.currency, url: "https://portal.postnord.com/skickadirekt/" })) : null,
@@ -82,6 +97,57 @@ export class PnfindPriceResult {
82
97
  "text": ""
83
98
  },
84
99
  "defaultValue": "[]"
100
+ },
101
+ "Usp1": {
102
+ "type": "string",
103
+ "mutable": false,
104
+ "complexType": {
105
+ "original": "string",
106
+ "resolved": "string",
107
+ "references": {}
108
+ },
109
+ "required": false,
110
+ "optional": true,
111
+ "docs": {
112
+ "tags": [],
113
+ "text": ""
114
+ },
115
+ "attribute": "usp-1",
116
+ "reflect": false
117
+ },
118
+ "Usp2": {
119
+ "type": "string",
120
+ "mutable": false,
121
+ "complexType": {
122
+ "original": "string",
123
+ "resolved": "string",
124
+ "references": {}
125
+ },
126
+ "required": false,
127
+ "optional": true,
128
+ "docs": {
129
+ "tags": [],
130
+ "text": ""
131
+ },
132
+ "attribute": "usp-2",
133
+ "reflect": false
134
+ },
135
+ "Usp3": {
136
+ "type": "string",
137
+ "mutable": false,
138
+ "complexType": {
139
+ "original": "string",
140
+ "resolved": "string",
141
+ "references": {}
142
+ },
143
+ "required": false,
144
+ "optional": true,
145
+ "docs": {
146
+ "tags": [],
147
+ "text": ""
148
+ },
149
+ "attribute": "usp-3",
150
+ "reflect": false
85
151
  }
86
152
  }; }
87
153
  static get states() { return {
@@ -1,9 +1,9 @@
1
1
  export const translations = {
2
2
  'sv': {
3
- 'componentheading': 'Vad vill du skicka?',
3
+ 'componentheading': 'Våra priser och villkor för inrikesförsändelser för dig som direktbetalande kund?',
4
4
  'deliveryscopeheading': 'Endast leveranser inom Sverige',
5
- 'sizeheading': 'Hur mycket väger det?',
6
- 'resultlistheading': 'Några utvalda val',
5
+ 'sizeheading': 'Uppskatta storlek och vikt på din försändelse',
6
+ 'resultlistheading': 'Några bra alternativ för dig',
7
7
  'weightlabel': 'Vikt',
8
8
  'maxweightlabel': 'Maxvikt',
9
9
  'maxmeasurementlabel': 'Maxvolym',
@@ -12,9 +12,9 @@ export const translations = {
12
12
  'message': '*Vid köp hos valfritt ombud'
13
13
  },
14
14
  'en': {
15
- 'componentheading': 'What do you want to send?',
15
+ 'componentheading': 'Our prices and terms and conditions for domestic shipments for you as a direct paying customer',
16
16
  'deliveryscopeheading': 'Deliveries within Sweden only',
17
- 'sizeheading': 'How much does it weigh?',
17
+ 'sizeheading': 'Estimate the size and weight of your shipment',
18
18
  'resultlistheading': 'Some suitable options for you',
19
19
  'weightlabel': 'Weight',
20
20
  'maxweightlabel': 'Max weight',
@@ -1,55 +1,62 @@
1
+ @charset "UTF-8";
2
+ pn-find-price td {
3
+ margin-bottom: 1em;
4
+ text-align: center;
5
+ vertical-align: bottom;
6
+ padding-right: 1em;
7
+ }
8
+ pn-find-price .firstCell {
9
+ margin-right: 0;
10
+ margin-left: auto;
11
+ }
1
12
  pn-find-price .findprice-form {
2
13
  max-width: 50em;
3
14
  margin: 0 auto;
4
15
  }
5
16
  pn-find-price h2,
6
- pn-find-price .heading {
17
+ pn-find-price .heading, pn-find-price .resultHeading {
7
18
  text-align: center;
8
19
  font-size: 1.5em;
9
20
  line-height: 1.1;
10
21
  font-weight: bold;
11
22
  margin-bottom: 1rem;
12
23
  }
13
- pn-find-price .sizecategory {
24
+ pn-find-price .sizeheading {
14
25
  text-align: center;
26
+ font-size: 1em;
27
+ line-height: 1.1;
28
+ font-weight: bold;
29
+ margin-bottom: 1rem;
30
+ margin-top: 3.5em;
31
+ }
32
+ pn-find-price .sizecategory {
15
33
  margin-bottom: 3rem;
16
34
  font-size: 0.9em;
35
+ display: flex;
36
+ align-items: center;
37
+ justify-content: center;
17
38
  }
18
39
  pn-find-price .weightoption {
19
- display: flex;
20
- gap: 1em;
21
- }
22
- pn-find-price .weightoption-input {
23
- width: 5em;
24
- position: relative;
25
- }
26
- pn-find-price .weightoption-input input::-webkit-outer-spin-button,
27
- pn-find-price .weightoption-input input::-webkit-inner-spin-button {
28
- -webkit-appearance: none;
29
- margin: 0;
30
- }
31
- pn-find-price .weightoption-input-abbreviation {
32
- position: absolute;
33
- top: 50%;
34
- transform: translateY(-50%);
35
- right: 1.2em;
36
- margin-top: 1.55rem;
37
- font-weight: 500;
38
- }
39
- pn-find-price .weightoption-range {
40
- flex-grow: 1;
41
- align-self: flex-end;
42
- position: relative;
43
- top: 0.5em;
44
- }
45
- pn-find-price .weightoption-range input {
46
- width: calc(100% - 1.5em);
47
- }
48
- pn-find-price .weightoption-range datalist {
49
- width: 100%;
50
- display: flex;
51
- justify-content: space-between;
52
- font-size: 0.75em;
40
+ font-size: 0.9em;
41
+ max-width: 41rem;
42
+ margin: 0 auto;
43
+ }
44
+ pn-find-price .weightoption-content {
45
+ text-align: center;
46
+ }
47
+ pn-find-price .weightoption-content pn-choice-button {
48
+ width: 7em;
49
+ line-height: 3.3em;
50
+ font-size: 0.9em;
51
+ vertical-align: bottom;
52
+ }
53
+ pn-find-price .weightoption-content pn-choice-button > label {
54
+ align-content: center;
55
+ justify-content: center;
56
+ }
57
+ pn-find-price .weightoption-content pn-choice-button ::before {
58
+ content: "Max  ";
59
+ font-weight: lighter;
53
60
  }
54
61
  pn-find-price .resultlist {
55
62
  margin: 3em 0;
@@ -1,11 +1,15 @@
1
1
  import { Component, h, Prop, State, Watch } from "@stencil/core";
2
2
  import { translations, markets } from "./pn-find-price-translations";
3
- import { weights, sizeCategories } from "./data.js";
3
+ import { weights, sizeCategories, fileLocation } from "./data.js";
4
4
  import { convertFileForSizeCategogy } from "../../../globals/shared/productprice/convert.js";
5
5
  import { state } from "./pn-find-price-store";
6
+ import small from "./img/small-package.svg";
7
+ import medium from "./img/medium-package.svg";
8
+ import large from "./img/large-package.svg";
9
+ import person from "./img/postnord-person1.svg";
6
10
  export class PnfindPrice {
7
11
  constructor() {
8
- this.source = "https://com-integration.postnord.com/globalassets/global/prices/sv-findprice.xlsx";
12
+ this.source = fileLocation;
9
13
  this.language = "sv";
10
14
  this.market = "se";
11
15
  this.filteredItems = [];
@@ -45,11 +49,11 @@ export class PnfindPrice {
45
49
  console.log('Data has not yet been loaded');
46
50
  return;
47
51
  }
48
- const deliveryScopeData = this.sourceData.data.filter((x) => x.deliveryscope === "Sweden");
52
+ const deliveryScopeData = this.sourceData.data.filter((x) => x.deliveryscope.toLocaleLowerCase() === "sweden");
49
53
  if (!this.sizecategory) {
50
54
  return;
51
55
  }
52
- const sizeItemData = deliveryScopeData.filter((x) => x.sizecategory === this.sizecategory.value);
56
+ const sizeItemData = deliveryScopeData.filter((x) => x.sizecategory.toLocaleLowerCase() === this.sizecategory.value.toLocaleLowerCase());
53
57
  if (!this.weight || !this.weight.value) {
54
58
  return;
55
59
  }
@@ -78,56 +82,34 @@ export class PnfindPrice {
78
82
  render() {
79
83
  return (h("div", null,
80
84
  h("div", { class: "findprice-form" },
81
- h("div", null, (h("div", { class: "heading" }, state.i18n.deliveryscopeheading))),
85
+ h("div", null, (h("div", { class: "heading" }, state.i18n.componentheading))),
82
86
  h("div", null,
83
- (h("div", { class: "heading" }, state.i18n.componentheading)),
84
- h("div", { class: "sizecategory" }, sizeCategories.map((sizeCategory) => (h("pn-choice-button", { choiceid: sizeCategory.value, value: sizeCategory.value, name: "sizecategory", type: "radio", checked: sizeCategory.value === this.sizecategory.value, onChange: () => {
85
- this.sizecategory = sizeCategories.filter(x => x.value === sizeCategory.value)[0];
86
- if (this.weight.value === 0) {
87
- this.weight = weights[this.sizecategory.unit][0];
88
- this.weightvalue = this.weight.value;
89
- }
90
- } },
91
- h("pn-illustration", { illustration: sizeCategory.illustration }),
92
- " ",
93
- sizeCategory.name))))),
94
- (this.sizecategory.value && weights[this.sizecategory.unit]) ? (h("div", null,
95
- (state.i18n.sizeheading) ? (h("div", { class: "heading" }, state.i18n.sizeheading)) : null,
96
- h("div", { class: "weightoption" },
97
- h("div", { class: "weightoption-input" },
98
- h("pn-input", { inputid: "weightvalue", name: "weightvalue", type: "number", label: state.i18n.weightlabel, value: this.weightvalue, onChange: (e) => {
99
- if (e && e.target && e.target.value) {
100
- const weightNum = parseInt(e.target.value, 10);
101
- if (!isNaN(weightNum)) {
102
- let matchingWeights = weights[this.sizecategory.unit].filter((x) => {
103
- let weightInGrams = (x.abbreviation === "kg") ? x.value * 1000 : x.value;
104
- return weightInGrams >= weightNum;
105
- });
106
- if (matchingWeights && matchingWeights.length > 0) {
107
- this.weight = matchingWeights[0];
108
- this.weightvalue = this.weight.value;
109
- }
110
- }
111
- }
112
- } }),
113
- h("span", { class: "weightoption-input-abbreviation" }, this.weight.abbreviation)),
114
- h("div", { class: "weightoption-range" },
115
- h("input", { type: "range", id: "weightrange", name: "weightrange", list: "weightlist", value: (!this.weight.value) ? 0 : weights[this.sizecategory.unit].findIndex((x) => x.value === this.weightvalue), onChange: (e) => {
116
- const value = e.target.value;
117
- this.weight = weights[this.sizecategory.unit][value];
118
- this.weightvalue = this.weight.value;
119
- }, min: "0",
120
- // max={ weights[this.postagetype.value][weights[this.postagetype.value].length - 1].value }
121
- max: weights[this.sizecategory.unit].length - 1 }),
122
- h("datalist", { id: "weightlist" }, weights[this.sizecategory.unit].map((weight, weightindex) => {
123
- let labelText = weight.name;
124
- if (weights[this.sizecategory.unit].length > 6) {
125
- labelText = (weightindex % 5 === 0 || weightindex === 0 || weightindex === weights[this.sizecategory.unit].length - 1) ? weight.name : '';
126
- }
127
- return (h("option", Object.assign({ value: weightindex }, (labelText ? { label: labelText } : {}))));
128
- })))))) : null),
87
+ (h("div", { class: "sizeheading" }, state.i18n.sizeheading)),
88
+ h("div", { class: "sizecategory" },
89
+ h("table", null,
90
+ h("tr", null,
91
+ h("td", null,
92
+ h("img", { class: "firstCell", src: person })),
93
+ h("td", null,
94
+ h("img", { src: small })),
95
+ h("td", null,
96
+ h("img", { src: medium })),
97
+ h("td", null,
98
+ h("img", { src: large }))),
99
+ h("tr", null,
100
+ h("td", null),
101
+ sizeCategories.map((sizeCategory) => (h("td", null,
102
+ h("pn-radio-button", { radioid: sizeCategory.value, value: sizeCategory.value, name: "sizecategory", checked: sizeCategory.value === this.sizecategory.value, onChange: () => {
103
+ this.sizecategory = sizeCategories.filter(x => x.value === sizeCategory.value)[0];
104
+ this.weight = weights[this.sizecategory.unit][0];
105
+ this.weightvalue = this.weight.value;
106
+ } })))))))),
107
+ (this.sizecategory.value && weights[this.sizecategory.unit]) ? (h("div", { class: "weightoption" }, h("div", { class: "weightoption-content" }, weights[this.sizecategory.unit].map((wght) => (h("pn-choice-button", { choiceid: this.sizecategory.value + wght.value, value: wght.value, name: "weight", type: "radio", checked: wght.value === this.weight.value, onChange: () => {
108
+ this.weight = weights[this.sizecategory.unit].filter(x => x.value === wght.value)[0];
109
+ this.weightvalue = this.weight.value;
110
+ } }, wght.name)))))) : null),
129
111
  (this.filteredItems && this.filteredItems.length > 0) ? (h("div", { class: "resultlist" },
130
- (state.i18n.resultlistheading) ? (h("div", { class: "heading" }, state.i18n.resultlistheading)) : null,
112
+ (state.i18n.resultlistheading) ? (h("div", { class: "resultHeading" }, state.i18n.resultlistheading)) : null,
131
113
  this.filteredItems.map((item) => (h("div", null,
132
114
  h("pn-find-price-result", { item: item })))))) : null));
133
115
  }
@@ -155,7 +137,7 @@ export class PnfindPrice {
155
137
  },
156
138
  "attribute": "source",
157
139
  "reflect": false,
158
- "defaultValue": "\"https://com-integration.postnord.com/globalassets/global/prices/sv-findprice.xlsx\""
140
+ "defaultValue": "fileLocation"
159
141
  },
160
142
  "language": {
161
143
  "type": "string",
@@ -10,12 +10,12 @@ pn-product-card-info {
10
10
  font-size: 0.875em;
11
11
  }
12
12
  .cardinfocontent > div {
13
- margin: 10px;
13
+ margin: 0.625em;
14
14
  }
15
15
 
16
16
  [slot=formatPre] {
17
- font-size: 1em;
18
17
  font-family: "PostNordSans", "Verdana";
18
+ font-size: 1em;
19
19
  }
20
20
  [slot=formatPre] > strong {
21
21
  font-weight: bold;
@@ -2,7 +2,7 @@ pn-product-card {
2
2
  margin-bottom: 1em;
3
3
  border: 0.1rem solid #D3CECB;
4
4
  outline: none;
5
- background: white;
5
+ background: #FFFFFF;
6
6
  box-shadow: 0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);
7
7
  display: flex;
8
8
  padding: 1.5em;
@@ -10,42 +10,69 @@ pn-product-card {
10
10
  text-decoration: none;
11
11
  border-radius: 0.8rem;
12
12
  }
13
- pn-product-card [slot=content] h3 {
13
+ pn-product-card .description > pre {
14
+ margin-top: 0;
15
+ margin-left: 0.5em;
16
+ font-family: "PostNordSans", "Verdana";
17
+ font-size: 1em;
18
+ }
19
+ pn-product-card .description > pre > strong {
20
+ font-weight: bold;
21
+ }
22
+ pn-product-card [slot=title] {
14
23
  display: flex;
15
24
  width: 100%;
16
25
  margin-bottom: 0.5em;
17
26
  }
18
- pn-product-card [slot=content] h3 > [slot=Biligast] {
19
- font-size: 0.6em;
20
- background: #005E41;
21
- color: white;
27
+ pn-product-card [slot=title] > [slot=Biligast] {
28
+ color: #005E41;
29
+ background: #DCF6E7;
22
30
  border-radius: 0.37em;
23
- width: 4em;
24
- line-height: 2em;
31
+ width: 6.3em;
32
+ height: 2em;
33
+ margin-left: 1.5em;
34
+ font-weight: normal;
35
+ font-size: 0.75em;
25
36
  text-align: center;
37
+ vertical-align: bottom;
38
+ padding-top: 0.25em;
39
+ }
40
+ pn-product-card [slot=title] > [slot=Biligast] pn-icon {
41
+ vertical-align: middle;
26
42
  margin-left: 0.6em;
27
- font-weight: normal;
28
43
  }
29
- pn-product-card [slot=content] h3 > [slot=Snabbast] {
30
- font-size: 0.6em;
31
- background: #005D92;
32
- color: white;
44
+ pn-product-card [slot=title] > [slot=Snabbast] {
45
+ background: #E0F8FF;
46
+ color: #005D92;
33
47
  border-radius: 0.37em;
34
- width: 5em;
35
- line-height: 2em;
48
+ width: 7em;
49
+ height: 2em;
50
+ margin-left: 1.5em;
51
+ font-weight: normal;
52
+ font-size: 0.75em;
36
53
  text-align: center;
37
54
  vertical-align: bottom;
55
+ padding-top: 0.25em;
56
+ }
57
+ pn-product-card [slot=title] > [slot=Snabbast] pn-icon {
58
+ vertical-align: middle;
38
59
  margin-left: 0.6em;
39
- font-weight: normal;
40
60
  }
41
61
  pn-product-card [slot=additionalUSP] {
42
- font-size: 0.6em;
62
+ display: flex;
63
+ }
64
+ pn-product-card [slot=additionalUSP] :first-child {
65
+ margin-left: 0em;
66
+ }
67
+ pn-product-card [slot=additionalUSP] span {
68
+ margin-left: 1em;
43
69
  background: #D3CECB;
44
70
  color: #2D2013;
45
71
  border-radius: 0.25em;
46
72
  width: fit-content;
47
73
  padding: 0.3em;
48
74
  margin-top: 0.5em;
75
+ font-size: 0.75em;
49
76
  }
50
77
  pn-product-card > pn-illustration {
51
78
  min-width: 8rem;
@@ -5,6 +5,7 @@ export class PnProductCard {
5
5
  h("slot", { name: "illustration" }),
6
6
  h("div", { class: "cardcontent" },
7
7
  h("div", { class: "details" },
8
+ h("slot", { name: "title" }),
8
9
  h("slot", { name: "content" }),
9
10
  h("div", { class: "info" },
10
11
  h("slot", null)),