@postnord/pn-marketweb-components 2.0.92 → 2.0.93

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 (57) hide show
  1. package/cjs/{FetchHelper-c6cee722.js → MarketWebContextService-392b4585.js} +84 -84
  2. package/cjs/loader.cjs.js +1 -1
  3. package/cjs/pn-market-web-components.cjs.js +1 -1
  4. package/cjs/pn-marketweb-sitefooter.cjs.entry.js +131 -74
  5. package/cjs/pn-marketweb-siteheader.cjs.entry.js +3 -3
  6. package/cjs/pn-proxio-pricegroup.cjs.entry.js +3 -3
  7. package/cjs/pn-site-footer_2.cjs.entry.js +7 -6
  8. package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.css +8 -9
  9. package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.js +122 -78
  10. package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.stories.js +53 -36
  11. package/collection/components/layout-components/pn-marketweb-sitefooter/socialMediaIcons.js +41 -0
  12. package/collection/components/navigation/pn-site-footer/pn-site-footer-col.css +92 -7
  13. package/collection/components/navigation/pn-site-footer/pn-site-footer-col.js +24 -1
  14. package/collection/components/navigation/pn-site-footer/pn-site-footer.css +110 -22
  15. package/collection/components/navigation/pn-site-footer/pn-site-footer.js +25 -7
  16. package/collection/components/navigation/pn-site-footer/site-footer.stories.js +8 -10
  17. package/custom-elements/index.js +266 -208
  18. package/esm/{FetchHelper-1dfe8514.js → MarketWebContextService-872043cc.js} +84 -84
  19. package/esm/loader.js +1 -1
  20. package/esm/pn-market-web-components.js +1 -1
  21. package/esm/pn-marketweb-sitefooter.entry.js +130 -73
  22. package/esm/pn-marketweb-siteheader.entry.js +1 -1
  23. package/esm/pn-proxio-pricegroup.entry.js +1 -1
  24. package/esm/pn-site-footer_2.entry.js +7 -6
  25. package/{pn-market-web-components/p-6174a610.system.js → esm-es5/MarketWebContextService-872043cc.js} +1 -1
  26. package/esm-es5/loader.js +1 -1
  27. package/esm-es5/pn-market-web-components.js +1 -1
  28. package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -1
  29. package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
  30. package/esm-es5/pn-proxio-pricegroup.entry.js +1 -1
  31. package/esm-es5/pn-site-footer_2.entry.js +1 -1
  32. package/package.json +1 -1
  33. package/pn-market-web-components/{p-ab60d37d.entry.js → p-13299124.entry.js} +1 -1
  34. package/pn-market-web-components/p-16acc6ef.system.entry.js +1 -0
  35. package/pn-market-web-components/p-31fd7a95.system.js +1 -0
  36. package/pn-market-web-components/{p-79473404.system.entry.js → p-34d52550.system.entry.js} +1 -1
  37. package/pn-market-web-components/{p-f15cac52.system.entry.js → p-3aa097be.system.entry.js} +1 -1
  38. package/pn-market-web-components/p-4c9c064b.system.entry.js +1 -0
  39. package/pn-market-web-components/p-67887512.system.js +1 -1
  40. package/pn-market-web-components/p-74120b9b.js +1 -0
  41. package/pn-market-web-components/p-b94d5bb3.entry.js +1 -0
  42. package/pn-market-web-components/{p-f63483d9.entry.js → p-c49db008.entry.js} +1 -1
  43. package/pn-market-web-components/p-c4afa184.entry.js +1 -0
  44. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  45. package/types/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter-types.d.ts +1 -0
  46. package/types/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.d.ts +11 -4
  47. package/types/components/layout-components/pn-marketweb-sitefooter/socialMediaIcons.d.ts +1 -0
  48. package/types/components/navigation/pn-site-footer/pn-site-footer-col.d.ts +1 -0
  49. package/types/components/navigation/pn-site-footer/pn-site-footer.d.ts +1 -0
  50. package/types/components.d.ts +12 -0
  51. package/umd/pn-marketweb-salesforce.js +2 -2
  52. package/esm-es5/FetchHelper-1dfe8514.js +0 -1
  53. package/pn-market-web-components/p-3446e50a.entry.js +0 -1
  54. package/pn-market-web-components/p-63d561fe.entry.js +0 -1
  55. package/pn-market-web-components/p-6983565e.system.entry.js +0 -1
  56. package/pn-market-web-components/p-69a5376a.system.entry.js +0 -1
  57. package/pn-market-web-components/p-f0f58646.js +0 -1
@@ -1,5 +1,8 @@
1
- import { Component, h, Host } from "@stencil/core";
1
+ import { Component, h, Host, Prop, } from '@stencil/core';
2
2
  export class PnSiteFooterCol {
3
+ constructor() {
4
+ this.theme = null;
5
+ }
3
6
  render() {
4
7
  return (h(Host, null,
5
8
  h("slot", null)));
@@ -11,4 +14,24 @@ export class PnSiteFooterCol {
11
14
  static get styleUrls() { return {
12
15
  "$": ["pn-site-footer-col.css"]
13
16
  }; }
17
+ static get properties() { return {
18
+ "theme": {
19
+ "type": "string",
20
+ "mutable": false,
21
+ "complexType": {
22
+ "original": "string",
23
+ "resolved": "string",
24
+ "references": {}
25
+ },
26
+ "required": false,
27
+ "optional": false,
28
+ "docs": {
29
+ "tags": [],
30
+ "text": ""
31
+ },
32
+ "attribute": "theme",
33
+ "reflect": true,
34
+ "defaultValue": "null"
35
+ }
36
+ }; }
14
37
  }
@@ -1,23 +1,23 @@
1
- pn-site-footer {
1
+ pn-site-footer:not([theme=dotcom]) {
2
2
  display: block;
3
3
  line-height: 1.5;
4
4
  }
5
- pn-site-footer a {
5
+ pn-site-footer:not([theme=dotcom]) a {
6
6
  color: #005D92;
7
7
  }
8
- pn-site-footer a:hover {
8
+ pn-site-footer:not([theme=dotcom]) a:hover {
9
9
  color: #0D234B;
10
10
  text-decoration: underline;
11
11
  }
12
- pn-site-footer h3 {
12
+ pn-site-footer:not([theme=dotcom]) h3 {
13
13
  font-size: 2.4rem;
14
14
  margin-bottom: 0.5rem;
15
15
  line-height: 1.2;
16
16
  }
17
- pn-site-footer p {
17
+ pn-site-footer:not([theme=dotcom]) p {
18
18
  font-size: 1.6rem;
19
19
  }
20
- pn-site-footer pn-site-footer-col ul.social-media {
20
+ pn-site-footer:not([theme=dotcom]) pn-site-footer-col ul.social-media {
21
21
  display: flex;
22
22
  flex-flow: row;
23
23
  gap: 1.6rem;
@@ -25,21 +25,19 @@ pn-site-footer pn-site-footer-col ul.social-media {
25
25
  margin-bottom: 1.6rem;
26
26
  flex-wrap: wrap;
27
27
  }
28
- pn-site-footer pn-site-footer-col ul.social-media li {
28
+ pn-site-footer:not([theme=dotcom]) pn-site-footer-col ul.social-media li {
29
29
  margin-bottom: 0;
30
30
  }
31
- pn-site-footer > svg {
31
+ pn-site-footer:not([theme=dotcom]) > svg {
32
32
  display: block;
33
33
  }
34
- pn-site-footer > div {
34
+ pn-site-footer:not([theme=dotcom]) > div {
35
35
  background: #F3F2F2;
36
36
  }
37
-
38
- .pn-sitefooter-top {
37
+ pn-site-footer:not([theme=dotcom]) .pn-sitefooter-top {
39
38
  display: flex;
40
39
  }
41
-
42
- .pn-sitefooter-cols {
40
+ pn-site-footer:not([theme=dotcom]) .pn-sitefooter-cols {
43
41
  align-self: center;
44
42
  justify-content: center;
45
43
  display: block;
@@ -48,12 +46,11 @@ pn-site-footer > div {
48
46
  max-width: 90em;
49
47
  }
50
48
  @media screen and (min-width: 33.125em) {
51
- .pn-sitefooter-cols {
49
+ pn-site-footer:not([theme=dotcom]) .pn-sitefooter-cols {
52
50
  display: flex;
53
51
  }
54
52
  }
55
-
56
- .pn-sitefooter-bottom [slot=bottom] {
53
+ pn-site-footer:not([theme=dotcom]) .pn-sitefooter-bottom [slot=bottom] {
57
54
  max-width: 90em;
58
55
  margin: 0 auto;
59
56
  padding: 1.6rem 0;
@@ -64,27 +61,118 @@ pn-site-footer > div {
64
61
  border-top: 1px solid #D3CECB;
65
62
  border-bottom: 1px solid #D3CECB;
66
63
  }
67
- .pn-sitefooter-bottom [slot=bottom] span, .pn-sitefooter-bottom [slot=bottom] a {
64
+ pn-site-footer:not([theme=dotcom]) .pn-sitefooter-bottom [slot=bottom] span,
65
+ pn-site-footer:not([theme=dotcom]) .pn-sitefooter-bottom [slot=bottom] a {
68
66
  line-height: 2;
69
67
  margin: 0 1.6rem;
70
68
  text-decoration: none;
71
69
  }
72
- .pn-sitefooter-bottom [slot=bottom] li {
70
+ pn-site-footer:not([theme=dotcom]) .pn-sitefooter-bottom [slot=bottom] li {
73
71
  line-height: 2em;
74
72
  margin: 0 1.6rem;
75
73
  }
76
-
77
- .pn-sitefooter-logo {
74
+ pn-site-footer:not([theme=dotcom]) .pn-sitefooter-logo {
78
75
  display: flex;
79
76
  flex-wrap: wrap;
80
77
  justify-content: center;
81
78
  padding: 3rem;
82
79
  }
83
- .pn-sitefooter-logo svg {
80
+ pn-site-footer:not([theme=dotcom]) .pn-sitefooter-logo svg {
84
81
  display: block;
85
82
  width: 13.3rem;
86
83
  height: 2.6rem;
87
84
  }
88
- .pn-sitefooter-logo:has(div) a slot-fb {
85
+ pn-site-footer:not([theme=dotcom]) .pn-sitefooter-logo:has(div) a slot-fb {
89
86
  display: none;
87
+ }
88
+
89
+ pn-site-footer[theme=dotcom] {
90
+ width: 100%;
91
+ display: flex;
92
+ flex-direction: column;
93
+ background-color: #0D234B;
94
+ margin: 0 auto;
95
+ }
96
+ pn-site-footer[theme=dotcom] > svg {
97
+ background-color: #FFFFFF;
98
+ }
99
+ pn-site-footer[theme=dotcom] > svg path {
100
+ fill: #0D234B;
101
+ }
102
+ pn-site-footer[theme=dotcom] .pn-sitefooter-top {
103
+ width: 100%;
104
+ }
105
+ pn-site-footer[theme=dotcom] .pn-sitefooter-top .pn-sitefooter-cols {
106
+ display: flex;
107
+ flex-direction: row;
108
+ flex-wrap: wrap;
109
+ max-width: 1200px;
110
+ padding-top: 4.8rem;
111
+ padding-left: 3rem;
112
+ padding-right: 3rem;
113
+ margin: 0 auto;
114
+ }
115
+ pn-site-footer[theme=dotcom] .pn-sitefooter-bottom {
116
+ width: 100%;
117
+ padding: 0.8rem 0;
118
+ background-color: #0D234B;
119
+ }
120
+ pn-site-footer[theme=dotcom] .pn-sitefooter-bottom > [slot=bottom] {
121
+ max-width: 1200px;
122
+ margin: 0 auto;
123
+ padding-left: 3rem;
124
+ padding-right: 3rem;
125
+ display: flex;
126
+ flex-direction: column;
127
+ gap: 2.4rem;
128
+ }
129
+ pn-site-footer[theme=dotcom] .pn-sitefooter-bottom > [slot=bottom] > .social-media {
130
+ display: flex;
131
+ justify-content: center;
132
+ padding: 1.6rem 0;
133
+ border-top: 1px solid #005d924d;
134
+ border-bottom: 1px solid #005d924d;
135
+ }
136
+ pn-site-footer[theme=dotcom] .pn-sitefooter-bottom > [slot=bottom] > .social-media > ul {
137
+ display: flex;
138
+ flex-direction: row;
139
+ flex-wrap: wrap;
140
+ gap: 24px;
141
+ margin: 0;
142
+ padding: 0;
143
+ list-style-type: none;
144
+ }
145
+ pn-site-footer[theme=dotcom] .pn-sitefooter-bottom > [slot=bottom] > .copyright {
146
+ display: flex;
147
+ flex-direction: row;
148
+ justify-content: center;
149
+ gap: 2.4rem;
150
+ }
151
+ pn-site-footer[theme=dotcom] .pn-sitefooter-bottom > [slot=bottom] > .copyright * {
152
+ color: #FFFFFF;
153
+ font-weight: 400;
154
+ font-size: 1.4rem;
155
+ line-height: 1.96rem;
156
+ }
157
+ pn-site-footer[theme=dotcom] .pn-sitefooter-bottom > [slot=bottom] > .copyright > ul {
158
+ margin: 0;
159
+ padding: 0;
160
+ }
161
+ pn-site-footer[theme=dotcom] .pn-sitefooter-bottom > [slot=bottom] > .copyright > ul > li {
162
+ display: inline;
163
+ }
164
+ pn-site-footer[theme=dotcom] .pn-sitefooter-bottom > [slot=bottom] > .copyright > ul > li:last-child {
165
+ margin-left: 2.4rem;
166
+ }
167
+ pn-site-footer[theme=dotcom] .pn-sitefooter-logo {
168
+ padding: 3rem;
169
+ margin: 0 auto;
170
+ }
171
+ pn-site-footer[theme=dotcom] .pn-sitefooter-logo [name=logo] > svg {
172
+ display: block;
173
+ width: 13.3rem;
174
+ height: 2.6rem;
175
+ }
176
+ pn-site-footer[theme=dotcom] .pn-sitefooter-logo [name=logo] > svg > path {
177
+ fill: #00A0D6;
90
178
  }
@@ -1,12 +1,12 @@
1
- import { Component, Prop, h, Host } from "@stencil/core";
1
+ import { Component, h, Host, Prop, } from '@stencil/core';
2
2
  export class PnSiteFooter {
3
3
  constructor() {
4
4
  /** What you write in the comment block above each prop is what ends up in the description fields in the prop table in the documentation */
5
- this.url = "#";
6
- this.linktitle = "PostNord";
7
- }
8
- componentWillLoad() {
5
+ this.url = '#';
6
+ this.linktitle = 'PostNord';
7
+ this.theme = null;
9
8
  }
9
+ componentWillLoad() { }
10
10
  render() {
11
11
  return (h(Host, null,
12
12
  h("svg", { fill: "none", viewBox: "0 0 1680 126", role: "presentation" },
@@ -46,7 +46,7 @@ export class PnSiteFooter {
46
46
  },
47
47
  "attribute": "url",
48
48
  "reflect": false,
49
- "defaultValue": "\"#\""
49
+ "defaultValue": "'#'"
50
50
  },
51
51
  "linktitle": {
52
52
  "type": "string",
@@ -64,7 +64,25 @@ export class PnSiteFooter {
64
64
  },
65
65
  "attribute": "linktitle",
66
66
  "reflect": false,
67
- "defaultValue": "\"PostNord\""
67
+ "defaultValue": "'PostNord'"
68
+ },
69
+ "theme": {
70
+ "type": "string",
71
+ "mutable": false,
72
+ "complexType": {
73
+ "original": "string",
74
+ "resolved": "string",
75
+ "references": {}
76
+ },
77
+ "required": false,
78
+ "optional": false,
79
+ "docs": {
80
+ "tags": [],
81
+ "text": ""
82
+ },
83
+ "attribute": "theme",
84
+ "reflect": true,
85
+ "defaultValue": "null"
68
86
  }
69
87
  }; }
70
88
  }
@@ -1,17 +1,17 @@
1
- import readme from "./readme.md";
1
+ import readme from './readme.md';
2
2
 
3
3
  export default {
4
- title: "navigation/Site footer",
4
+ title: 'navigation/Site footer',
5
5
  parameters: {
6
- notes: readme
7
- }
6
+ notes: readme,
7
+ },
8
8
  };
9
9
 
10
10
  // export const regular = () => {
11
11
  // // Storybook Knobs ------------------------------------------//
12
12
  // const logoUrl = text("Logo URL", 'https://www.postnord.se');
13
- // --------------------------------------------------------- //
14
- const Template = ({ ...args }) => {
13
+ // --------------------------------------------------------- //
14
+ const Template = ({ ...args }) => {
15
15
  return `
16
16
  <pn-site-footer url="${args.logoUrl}">
17
17
  <pn-site-footer-col>
@@ -83,11 +83,9 @@ export default {
83
83
 
84
84
  export const Primary = Template.bind({});
85
85
  Primary.args = {
86
- logoUrl : "https://www.postnord.se"
86
+ logoUrl: 'https://www.postnord.se',
87
87
  };
88
88
 
89
-
90
-
91
89
  const TemplateNorwegian = ({ ...args }) => {
92
90
  return `
93
91
  <pn-site-footer url="${args.logoUrl}">
@@ -161,5 +159,5 @@ const TemplateNorwegian = ({ ...args }) => {
161
159
  };
162
160
  export const Norwegian = TemplateNorwegian.bind({});
163
161
  Primary.args = {
164
- logoUrl : "https://www.postnord.no"
162
+ logoUrl: 'https://www.postnord.no',
165
163
  };