@postnord/pn-marketweb-components 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/cjs/loader.cjs.js +1 -1
  2. package/cjs/pn-find-price-result.cjs.entry.js +3 -3
  3. package/cjs/{pn-find-price-store-c6cb51c1.js → pn-find-price-store-6aab7fd0.js} +0 -1
  4. package/cjs/pn-find-price.cjs.entry.js +7 -10
  5. package/cjs/pn-market-web-components.cjs.js +1 -1
  6. package/cjs/pn-marketweb-input.cjs.entry.js +76 -0
  7. package/cjs/pn-marketweb-search.cjs.entry.js +2 -2
  8. package/cjs/pn-pex-pricefinder.cjs.entry.js +10 -2
  9. package/cjs/pn-product-card_3.cjs.entry.js +8 -8
  10. package/cjs/pn-product-pricelist.cjs.entry.js +1 -1
  11. package/collection/collection-manifest.json +1 -0
  12. package/collection/components/input/pn-marketweb-input/marketweb-input.stories.js +51 -0
  13. package/collection/components/input/pn-marketweb-input/pn-marketweb-input.css +156 -0
  14. package/collection/components/input/pn-marketweb-input/pn-marketweb-input.js +412 -0
  15. package/collection/components/input/pn-marketweb-search/pn-marketweb-search.css +18 -15
  16. package/collection/components/input/pn-marketweb-search/pn-marketweb-search.js +2 -2
  17. package/collection/components/widgets/pn-find-price/img/clouds.svg +5 -0
  18. package/collection/components/widgets/pn-find-price/pn-find-price-result.js +2 -2
  19. package/collection/components/widgets/pn-find-price/pn-find-price-store.js +0 -1
  20. package/collection/components/widgets/pn-find-price/pn-find-price-translations.js +1 -6
  21. package/collection/components/widgets/pn-find-price/pn-find-price.css +14 -4
  22. package/collection/components/widgets/pn-find-price/pn-find-price.js +4 -3
  23. package/collection/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.js +10 -2
  24. package/collection/components/widgets/pn-product-card/pn-product-card-info.css +6 -7
  25. package/collection/components/widgets/pn-product-card/pn-product-card-info.js +2 -3
  26. package/collection/components/widgets/pn-product-card/pn-product-card-price.css +22 -5
  27. package/collection/components/widgets/pn-product-card/pn-product-card-price.js +1 -1
  28. package/collection/components/widgets/pn-product-card/pn-product-card.css +88 -30
  29. package/collection/components/widgets/pn-product-card/pn-product-card.js +1 -1
  30. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.css +1 -0
  31. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.stories.js +1 -1
  32. package/custom-elements/index.d.ts +6 -0
  33. package/custom-elements/index.js +102 -26
  34. package/esm/loader.js +1 -1
  35. package/esm/pn-find-price-result.entry.js +3 -3
  36. package/esm/{pn-find-price-store-c857dbc4.js → pn-find-price-store-3301df0a.js} +0 -1
  37. package/esm/pn-find-price.entry.js +7 -10
  38. package/esm/pn-market-web-components.js +1 -1
  39. package/esm/pn-marketweb-input.entry.js +72 -0
  40. package/esm/pn-marketweb-search.entry.js +2 -2
  41. package/esm/pn-pex-pricefinder.entry.js +10 -2
  42. package/esm/pn-product-card_3.entry.js +8 -8
  43. package/esm/pn-product-pricelist.entry.js +1 -1
  44. package/esm-es5/loader.js +1 -1
  45. package/esm-es5/pn-find-price-result.entry.js +1 -1
  46. package/esm-es5/pn-find-price-store-3301df0a.js +1 -0
  47. package/esm-es5/pn-find-price.entry.js +1 -1
  48. package/esm-es5/pn-market-web-components.js +1 -1
  49. package/esm-es5/pn-marketweb-input.entry.js +1 -0
  50. package/esm-es5/pn-marketweb-search.entry.js +1 -1
  51. package/esm-es5/pn-pex-pricefinder.entry.js +1 -1
  52. package/esm-es5/pn-product-card_3.entry.js +1 -1
  53. package/esm-es5/pn-product-pricelist.entry.js +1 -1
  54. package/package.json +1 -1
  55. package/pn-market-web-components/{p-c7c3361a.entry.js → p-045a349a.entry.js} +1 -1
  56. package/pn-market-web-components/p-07cc9f6b.system.entry.js +1 -0
  57. package/pn-market-web-components/p-3971ddb9.system.js +1 -0
  58. package/pn-market-web-components/p-5d587499.js +1 -0
  59. package/pn-market-web-components/p-5e78891a.entry.js +1 -0
  60. package/pn-market-web-components/p-67887512.system.js +1 -1
  61. package/pn-market-web-components/p-72195bd8.entry.js +1 -0
  62. package/pn-market-web-components/{p-fc41fcf6.system.entry.js → p-7e494e9d.system.entry.js} +1 -1
  63. package/pn-market-web-components/p-80dce81e.system.entry.js +1 -0
  64. package/pn-market-web-components/p-8fc7732d.system.entry.js +1 -0
  65. package/pn-market-web-components/p-996d8a6a.entry.js +1 -0
  66. package/pn-market-web-components/p-9e8c5793.system.entry.js +1 -0
  67. package/pn-market-web-components/p-9edaf6b6.system.entry.js +1 -0
  68. package/pn-market-web-components/p-c34db063.entry.js +1 -0
  69. package/pn-market-web-components/p-e5fffc92.entry.js +1 -0
  70. package/pn-market-web-components/p-e9fe5c54.entry.js +1 -0
  71. package/pn-market-web-components/p-fc6a09e0.system.entry.js +1 -0
  72. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  73. package/types/components/input/pn-marketweb-input/pn-marketweb-input.d.ts +32 -0
  74. package/types/components/widgets/pn-find-price/pn-find-price-store.d.ts +0 -2
  75. package/types/components/widgets/pn-find-price/pn-find-price-translations.d.ts +0 -5
  76. package/types/components/widgets/pn-find-price/pn-find-price-types.d.ts +0 -1
  77. package/types/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.d.ts +1 -0
  78. package/types/components.d.ts +79 -0
  79. package/esm-es5/pn-find-price-store-c857dbc4.js +0 -1
  80. package/pn-market-web-components/p-0cff4955.entry.js +0 -1
  81. package/pn-market-web-components/p-0fe71e75.entry.js +0 -1
  82. package/pn-market-web-components/p-2239befa.system.entry.js +0 -1
  83. package/pn-market-web-components/p-38c4be82.system.entry.js +0 -1
  84. package/pn-market-web-components/p-3ddbc14c.entry.js +0 -1
  85. package/pn-market-web-components/p-6b505c69.entry.js +0 -1
  86. package/pn-market-web-components/p-6fab218d.system.js +0 -1
  87. package/pn-market-web-components/p-89ef9dad.system.entry.js +0 -1
  88. package/pn-market-web-components/p-b82f45b9.system.entry.js +0 -1
  89. package/pn-market-web-components/p-f0a468ef.entry.js +0 -1
  90. package/pn-market-web-components/p-f20380fb.js +0 -1
  91. package/pn-market-web-components/p-f5f1287a.system.entry.js +0 -1
@@ -2,7 +2,6 @@ export const translations = {
2
2
  'sv': {
3
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': 'Uppskatta storlek och vikt på din försändelse',
6
5
  'resultlistheading': 'Några bra alternativ för dig',
7
6
  'weightlabel': 'Vikt',
8
7
  'maxweightlabel': 'Maxvikt',
@@ -11,12 +10,11 @@ export const translations = {
11
10
  'stampshopcta': 'Beställ fysiska frimärken',
12
11
  'message': '*Vid köp hos valfritt ombud',
13
12
  'servicePointHeader': 'Eller hitta närmaste serviceställe',
14
- 'servicePointLink': 'Sök brevlåda eller serviceställe'
13
+ 'servicePointLink': 'Sök serviceställe eller brevlåda'
15
14
  },
16
15
  'en': {
17
16
  'componentheading': 'Our prices and terms and conditions for domestic shipments for you as a direct paying customer',
18
17
  'deliveryscopeheading': 'Deliveries within Sweden only',
19
- 'sizeheading': 'Estimate the size and weight of your shipment',
20
18
  'resultlistheading': 'Some suitable options for you',
21
19
  'weightlabel': 'Weight',
22
20
  'maxweightlabel': 'Max weight',
@@ -30,7 +28,6 @@ export const translations = {
30
28
  'da': {
31
29
  'componentheading': 'Vad vill du skicka?',
32
30
  'deliveryscopeheading': 'Kun leveringer indenfor Sverige',
33
- 'sizeheading': 'How much does it weigh?',
34
31
  'resultlistheading': 'Some suitable options for you',
35
32
  'weightlabel': 'Vægt',
36
33
  'maxweightlabel': 'Max vægt',
@@ -41,7 +38,6 @@ export const translations = {
41
38
  'no': {
42
39
  'componentheading': 'Vad vill du skicka?',
43
40
  'deliveryscopeheading': 'Kun leveranser innen Sverige',
44
- 'sizeheading': 'How much does it weigh?',
45
41
  'resultlistheading': 'Some suitable options for you',
46
42
  'weightlabel': 'Vekt',
47
43
  'maxweightlabel': 'Maks vekt',
@@ -52,7 +48,6 @@ export const translations = {
52
48
  'fi': {
53
49
  'componentheading': 'Vad vill du skicka?',
54
50
  'deliveryscopeheading': 'Toimitukset vain Ruotsin sisällä',
55
- 'sizeheading': 'How much does it weigh?',
56
51
  'resultlistheading': 'Some suitable options for you',
57
52
  'weightlabel': 'Paino',
58
53
  'maxweightlabel': 'Max paino',
@@ -18,19 +18,19 @@ pn-find-price .findprice-form {
18
18
  margin: 0 auto 3em auto;
19
19
  }
20
20
  pn-find-price h2,
21
- pn-find-price .heading, pn-find-price .resultHeading {
21
+ pn-find-price .heading {
22
22
  text-align: center;
23
23
  font-size: 1.5em;
24
24
  line-height: 1.1;
25
25
  font-weight: bold;
26
26
  margin-bottom: 1rem;
27
27
  }
28
- pn-find-price .sizeheading {
28
+ pn-find-price .resultHeading {
29
29
  text-align: center;
30
- font-size: 1.25em;
30
+ font-size: 1.5em;
31
31
  line-height: 1.1;
32
32
  font-weight: bold;
33
- margin-bottom: 1rem;
33
+ margin-bottom: 2em;
34
34
  }
35
35
  pn-find-price .sizecategory {
36
36
  margin-top: 5em;
@@ -40,6 +40,11 @@ pn-find-price .sizecategory {
40
40
  align-items: center;
41
41
  justify-content: center;
42
42
  }
43
+ pn-find-price .sizecategory #clouds {
44
+ position: absolute;
45
+ top: 4.87em;
46
+ left: 26.3em;
47
+ }
43
48
  pn-find-price .weightoption {
44
49
  font-size: 0.9em;
45
50
  max-width: 41rem;
@@ -80,4 +85,9 @@ pn-find-price .servicePoint h3 {
80
85
  }
81
86
  pn-find-price .servicePoint a {
82
87
  color: #005D92;
88
+ text-decoration: none;
89
+ }
90
+ pn-find-price .servicePoint a:hover {
91
+ color: #0D234B;
92
+ text-decoration: underline;
83
93
  }
@@ -7,6 +7,7 @@ import small from "./img/small-package.svg";
7
7
  import medium from "./img/medium-package.svg";
8
8
  import large from "./img/large-package.svg";
9
9
  import person from "./img/postnord-person1.svg";
10
+ import clouds from "./img/clouds.svg";
10
11
  export class PnfindPrice {
11
12
  constructor() {
12
13
  this.source = fileLocation;
@@ -84,8 +85,8 @@ export class PnfindPrice {
84
85
  render() {
85
86
  return (h("div", { class: "findprice-form" },
86
87
  h("div", null,
87
- (h("div", { class: "sizeheading" }, state.i18n.sizeheading)),
88
88
  h("div", { class: "sizecategory" },
89
+ h("img", { id: "clouds", src: clouds }),
89
90
  h("table", { class: "sizeTable" },
90
91
  h("tr", null,
91
92
  h("td", null,
@@ -116,8 +117,8 @@ export class PnfindPrice {
116
117
  h("pn-illustration", { illustration: "character-box-letters-house" }),
117
118
  h("h3", null, state.i18n.servicePointHeader),
118
119
  h("a", { href: ServicePointUrl, target: "_blank" },
119
- state.i18n.servicePointLink,
120
- h("pn-icon", { symbol: "map-marker", color: "blue700" }))))) : null));
120
+ h("pn-icon", { symbol: "map-marker", color: "blue700" }),
121
+ state.i18n.servicePointLink)))) : null));
121
122
  }
122
123
  static get is() { return "pn-find-price"; }
123
124
  static get originalStyleUrls() { return {
@@ -12,16 +12,24 @@ export class PnPexPricefinder {
12
12
  this.fromzip = null;
13
13
  this.tozip = null;
14
14
  this.weight = 100;
15
- this.when = (new Date()).toISOString().split('T')[0];
15
+ this.when = '';
16
16
  this.response = null;
17
17
  }
18
18
  componentWillLoad() {
19
19
  this.init();
20
20
  }
21
21
  async init() {
22
+ this.setInitialTime();
22
23
  this.checkParameters();
23
24
  this.setLanguage();
24
25
  }
26
+ setInitialTime() {
27
+ const initialTime = (new Date());
28
+ initialTime.setHours(initialTime.getHours() + 1);
29
+ initialTime.setMinutes(0);
30
+ const splitTime = initialTime.toLocaleString('sv', { timeZoneName: 'short' }).split(' ');
31
+ this.when = `${splitTime[0]}T${splitTime[1].substring(0, 5)}`;
32
+ }
25
33
  checkParameters() {
26
34
  const params = new URLSearchParams(window.location.href);
27
35
  if (!params) {
@@ -96,7 +104,7 @@ export class PnPexPricefinder {
96
104
  h("pn-input", { type: "number", label: this.i18n.labelWeight, inputid: "weight", name: "weight", placeholder: this.i18n.weightPlaceholder, required: true, value: this.weight }),
97
105
  h("div", { class: "datepicker" },
98
106
  h("label", { htmlFor: "when" }, this.i18n.labelWhen),
99
- h("pn-date-picker", { inputid: "when", name: "when", "start-of-week": "1", min: (new Date()).toISOString().split('T')[0], language: this.language, value: this.when })))),
107
+ h("pn-marketweb-input", { inputid: "when", name: "when", type: "datetime-local", min: (new Date()).toISOString().split('T')[0], value: this.when })))),
100
108
  h("fieldset", null,
101
109
  h("div", null,
102
110
  h("pn-button", { type: "submit" }, this.i18n.submitButtonText)))),
@@ -4,18 +4,17 @@ pn-product-card-info {
4
4
 
5
5
  .cardinfocontent {
6
6
  display: flex;
7
- flex-direction: row;
7
+ flex-direction: column;
8
8
  justify-content: space-between;
9
9
  flex-grow: 1;
10
10
  font-size: 0.875em;
11
+ gap: 1.6rem;
11
12
  }
12
- .cardinfocontent > div p {
13
- margin: 0.25em 0.25em 0 0;
14
- }
15
- .cardinfocontent #sp {
16
- width: 5em;
13
+ @media screen and (min-width: 36em) {
14
+ .cardinfocontent {
15
+ flex-direction: row;
16
+ }
17
17
  }
18
-
19
18
  [slot=formatPre] {
20
19
  font-family: "PostNordSans", "Verdana";
21
20
  margin: 0.5em 3em 0 0;
@@ -4,7 +4,7 @@ export class PnProductCardInfo {
4
4
  return (this.label) ? (h(Host, null,
5
5
  h("div", { class: "cardinfocontent" }, (this.text) ? (h("pre", { slot: "formatPre" }, this.text)) : null))) : (h(Host, null,
6
6
  h("div", { class: "cardinfocontent" },
7
- h("div", null,
7
+ h("div", { class: "cardinfocontent-item" },
8
8
  h("strong", null, "Paket:"),
9
9
  this.paket.split("/").map((item) => ((item.split(":").length > 0) ?
10
10
  h("p", null,
@@ -12,9 +12,8 @@ export class PnProductCardInfo {
12
12
  " ",
13
13
  item.split(":")[1]) :
14
14
  h("p", null, item)))),
15
- h("div", { id: "sp" }),
16
15
  (this.rulle) ?
17
- (h("div", null,
16
+ (h("div", { class: "cardinfocontent-item" },
18
17
  h("strong", null, "Rulle:"),
19
18
  this.rulle.split("/").map((item) => ((item.split(":").length > 0) ?
20
19
  h("p", null,
@@ -1,7 +1,9 @@
1
1
  pn-product-card-price {
2
- margin-top: 1em;
2
+ margin-top: 1.6rem;
3
3
  white-space: nowrap;
4
4
  text-align: center;
5
+ display: flex;
6
+ flex-direction: column;
5
7
  }
6
8
  pn-product-card-price span:last-child {
7
9
  display: inline-block;
@@ -15,16 +17,31 @@ pn-product-card-price pn-icon {
15
17
  align-self: center;
16
18
  }
17
19
  pn-product-card-price pn-button {
18
- width: 12.8em;
19
- margin-bottom: 1em;
20
- margin-top: 0.5em;
20
+ min-width: 12.8em;
21
+ margin-top: 0.8rem;
21
22
  font-size: 1.25;
23
+ order: 2;
24
+ }
25
+ @media screen and (min-width: 48em) {
26
+ pn-product-card-price pn-button {
27
+ order: 3;
28
+ margin-bottom: 1.6rem;
29
+ }
30
+ }
31
+ pn-product-card-price h3 {
32
+ order: 1;
22
33
  }
23
34
  pn-product-card-price p {
24
35
  font-weight: lighter;
25
36
  font-size: 0.875em;
26
37
  align-self: center;
27
- margin-top: 0.5em;
38
+ margin-top: 0.8rem;
39
+ order: 3;
40
+ }
41
+ @media screen and (min-width: 48em) {
42
+ pn-product-card-price p {
43
+ order: 2;
44
+ }
28
45
  }
29
46
  pn-product-card-price a {
30
47
  text-decoration: none;
@@ -9,7 +9,7 @@ export class PnProductCardPrice {
9
9
  (this.amount) ? (h("span", null, this.amount)) : null,
10
10
  (this.currency) ? (h("span", null, " " + this.currency)) : null),
11
11
  (this.note) ? (h("p", null, this.note)) : null,
12
- (this.label) ? (h("pn-button", { small: "true", icon: "arrow-right", appearance: "secondary", href: this.url, target: "_blank", id: this.service.split(" ").join("-").toLocaleLowerCase() }, this.label)) : null)) : (h(Host, null,
12
+ (this.label) ? (h("pn-button", { small: "true", icon: "open-in-new", appearance: "light", href: this.url, target: "_blank", id: this.service.split(" ").join("-").toLocaleLowerCase() }, this.label)) : null)) : (h(Host, null,
13
13
  h("h3", null,
14
14
  (this.amount) ? (h("span", null, this.amount)) : null,
15
15
  (this.currency) ? (h("span", null, this.currency)) : null)));
@@ -1,53 +1,63 @@
1
1
  pn-product-card {
2
- margin-bottom: 1em;
3
2
  border: 0.1rem solid #D3CECB;
4
3
  outline: none;
5
4
  background: #FFFFFF;
6
5
  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
6
  display: flex;
8
- padding: 1.5em;
9
7
  word-break: break-word;
10
8
  text-decoration: none;
11
9
  border-radius: 0.8rem;
10
+ position: relative;
11
+ padding: 11rem 2.4rem 2.4rem;
12
+ margin-bottom: 1.6rem;
13
+ }
14
+ @media screen and (min-width: 36em) {
15
+ pn-product-card {
16
+ padding: 2.4rem;
17
+ }
12
18
  }
13
19
  pn-product-card [slot=title] {
14
20
  display: flex;
15
21
  width: 100%;
16
- margin-bottom: 0.5em;
22
+ margin-bottom: 0.8rem;
23
+ gap: 1.6rem;
24
+ flex-direction: column;
25
+ align-items: center;
17
26
  }
18
- pn-product-card [slot=title] > [slot=Biligast] {
19
- color: #005E41;
20
- background: #DCF6E7;
21
- border-radius: 0.37em;
22
- width: 6.3em;
23
- height: 2em;
24
- margin-left: 1.5em;
27
+ @media screen and (min-width: 36em) {
28
+ pn-product-card [slot=title] {
29
+ flex-direction: row;
30
+ align-items: inherit;
31
+ }
32
+ }
33
+ pn-product-card [slot=title] h2 {
34
+ width: 100%;
35
+ }
36
+ @media screen and (min-width: 36em) {
37
+ pn-product-card [slot=title] h2 {
38
+ width: auto;
39
+ }
40
+ }
41
+ pn-product-card [slot=title] > [slot] {
42
+ border-radius: 0.4rem;
43
+ height: 2.5em;
25
44
  font-weight: normal;
26
45
  font-size: 0.75em;
27
46
  text-align: center;
28
47
  vertical-align: bottom;
29
- padding-top: 0.25em;
48
+ padding: 0.6rem;
30
49
  }
31
- pn-product-card [slot=title] > [slot=Biligast] pn-icon {
50
+ pn-product-card [slot=title] > [slot] pn-icon {
32
51
  vertical-align: middle;
33
52
  margin-left: 0.6em;
34
53
  }
54
+ pn-product-card [slot=title] > [slot=Billigast] {
55
+ color: #005E41;
56
+ background: #DCF6E7;
57
+ }
35
58
  pn-product-card [slot=title] > [slot=Snabbast] {
36
59
  background: #E0F8FF;
37
60
  color: #005D92;
38
- border-radius: 0.37em;
39
- width: 7em;
40
- height: 2em;
41
- margin-left: 1.5em;
42
- font-weight: normal;
43
- font-size: 0.75em;
44
- text-align: center;
45
- vertical-align: bottom;
46
- padding-top: 0.25em;
47
- }
48
- pn-product-card [slot=title] > [slot=Snabbast] pn-icon {
49
- vertical-align: middle;
50
- margin-left: 0.6em;
51
61
  }
52
62
  pn-product-card [slot=note] {
53
63
  margin-top: 1em;
@@ -73,22 +83,70 @@ pn-product-card > pn-illustration {
73
83
  min-width: 8rem;
74
84
  width: 8rem;
75
85
  height: 8rem;
76
- margin-right: 3rem;
77
86
  align-self: center;
87
+ position: absolute;
88
+ top: 1.6rem;
89
+ transform: translateX(-50%);
90
+ left: 50%;
91
+ box-shadow: 0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);
92
+ border-radius: 100%;
93
+ }
94
+ @media screen and (min-width: 36em) {
95
+ pn-product-card > pn-illustration {
96
+ box-shadow: none;
97
+ top: 1.6rem;
98
+ right: 1.6rem;
99
+ left: auto;
100
+ transform: none;
101
+ }
102
+ }
103
+ @media screen and (min-width: 48em) {
104
+ pn-product-card > pn-illustration {
105
+ position: static;
106
+ top: auto;
107
+ right: auto;
108
+ margin-right: 3rem;
109
+ }
78
110
  }
79
111
  pn-product-card .cardcontent {
80
112
  display: flex;
81
- flex-direction: row;
113
+ flex-direction: column;
82
114
  justify-content: center;
83
115
  flex-grow: 1;
84
116
  }
117
+ @media screen and (min-width: 48em) {
118
+ pn-product-card .cardcontent {
119
+ flex-direction: row;
120
+ gap: 1.6rem;
121
+ }
122
+ }
123
+ pn-product-card .cardcontent .description :first-child {
124
+ max-width: calc(100% - 10rem);
125
+ }
126
+ @media screen and (min-width: 48em) {
127
+ pn-product-card .cardcontent .description :first-child {
128
+ max-width: none;
129
+ }
130
+ }
85
131
  pn-product-card [slot=cardprice] {
86
- display: block;
87
- flex-direction: row;
88
- align-items: flex-end;
132
+ display: flex;
133
+ flex-direction: column;
89
134
  justify-content: center;
90
135
  flex-grow: 1;
91
136
  }
137
+ @media screen and (min-width: 36em) {
138
+ pn-product-card [slot=cardprice] {
139
+ flex-direction: row;
140
+ justify-content: space-between;
141
+ }
142
+ }
143
+ @media screen and (min-width: 48em) {
144
+ pn-product-card [slot=cardprice] {
145
+ flex-direction: column;
146
+ justify-content: center;
147
+ align-items: flex-end;
148
+ }
149
+ }
92
150
  pn-product-card .details {
93
151
  display: flex;
94
152
  flex-direction: column;
@@ -11,7 +11,7 @@ export class PnProductCard {
11
11
  h("slot", null)),
12
12
  h("slot", { name: "note" }),
13
13
  h("slot", { name: "additionalUSP" })),
14
- h("div", null,
14
+ h("div", { class: "cardprice" },
15
15
  h("slot", { name: "cardprice" })))));
16
16
  }
17
17
  static get is() { return "pn-product-card"; }
@@ -21,6 +21,7 @@ pn-product-pricelist .weightoption {
21
21
  pn-product-pricelist .weightoption-input {
22
22
  width: 5em;
23
23
  position: relative;
24
+ display: none;
24
25
  }
25
26
  pn-product-pricelist .weightoption-input input::-webkit-outer-spin-button,
26
27
  pn-product-pricelist .weightoption-input input::-webkit-inner-spin-button {
@@ -31,5 +31,5 @@ Primary.args = {
31
31
  source: 'https://com-integration.postnord.com/globalassets/global/prices/sv-se-findprice.xlsx',
32
32
  language: 'sv',
33
33
  market: 'se',
34
- productid: 'expressletter'
34
+ productid: 'registered10000'
35
35
  };
@@ -86,6 +86,12 @@ export const PnMainnavList: {
86
86
  new (): PnMainnavList;
87
87
  };
88
88
 
89
+ interface PnMarketwebInput extends Components.PnMarketwebInput, HTMLElement {}
90
+ export const PnMarketwebInput: {
91
+ prototype: PnMarketwebInput;
92
+ new (): PnMarketwebInput;
93
+ };
94
+
89
95
  interface PnMarketwebSearch extends Components.PnMarketwebSearch, HTMLElement {}
90
96
  export const PnMarketwebSearch: {
91
97
  prototype: PnMarketwebSearch;