@postnord/pn-marketweb-components 2.0.143 → 2.0.145

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 (34) hide show
  1. package/cjs/loader.cjs.js +1 -1
  2. package/cjs/pn-market-web-components.cjs.js +1 -1
  3. package/cjs/pn-stats-info-data.cjs.entry.js +12 -5
  4. package/cjs/pn-stats-info.cjs.entry.js +6 -6
  5. package/collection/components/data-visualization/pn-stats-info/pn-stats-info-data/pn-stats-info-data.css +0 -3
  6. package/collection/components/data-visualization/pn-stats-info/pn-stats-info-data/pn-stats-info-data.js +28 -20
  7. package/collection/components/data-visualization/pn-stats-info/pn-stats-info.css +336 -15
  8. package/collection/components/data-visualization/pn-stats-info/pn-stats-info.js +6 -6
  9. package/collection/components/data-visualization/pn-stats-info/pn-stats-info.stories.js +93 -7
  10. package/custom-elements/index.js +20 -13
  11. package/esm/loader.js +1 -1
  12. package/esm/pn-market-web-components.js +1 -1
  13. package/esm/pn-stats-info-data.entry.js +12 -5
  14. package/esm/pn-stats-info.entry.js +6 -6
  15. package/esm-es5/loader.js +1 -1
  16. package/esm-es5/pn-market-web-components.js +1 -1
  17. package/esm-es5/pn-stats-info-data.entry.js +1 -1
  18. package/esm-es5/pn-stats-info.entry.js +1 -1
  19. package/package.json +1 -1
  20. package/pn-market-web-components/p-18d54bb3.system.entry.js +1 -0
  21. package/pn-market-web-components/p-2bc6f664.entry.js +1 -0
  22. package/pn-market-web-components/p-79c88cb9.system.entry.js +1 -0
  23. package/pn-market-web-components/p-c882d512.entry.js +1 -0
  24. package/pn-market-web-components/p-d295ef71.system.js +1 -1
  25. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  26. package/types/components/data-visualization/pn-stats-info/pn-stats-info-data/pn-stats-info-data.d.ts +4 -1
  27. package/types/components/data-visualization/pn-stats-info/pn-stats-info.d.ts +1 -1
  28. package/types/components.d.ts +2 -2
  29. package/umd/pn-marketweb-init.js +1 -1
  30. package/umd/pn-marketweb-salesforce.js +2 -2
  31. package/pn-market-web-components/p-0ffa3353.entry.js +0 -1
  32. package/pn-market-web-components/p-19b622e7.entry.js +0 -1
  33. package/pn-market-web-components/p-488a5506.system.entry.js +0 -1
  34. package/pn-market-web-components/p-8879ac54.system.entry.js +0 -1
@@ -1,3 +1,252 @@
1
+ pn-stats-info .pn-stats-info__container {
2
+ display: flex;
3
+ flex-direction: row;
4
+ justify-content: center;
5
+ }
6
+ pn-stats-info .pn-stats-info__container__map {
7
+ display: none;
8
+ }
9
+ pn-stats-info .pn-stats-info-image-container {
10
+ display: none;
11
+ }
12
+ pn-stats-info .pn-stats-info__container__content {
13
+ display: flex;
14
+ flex-direction: column;
15
+ align-items: center;
16
+ padding: 2.4rem 2.4rem 1.6rem;
17
+ width: 100%;
18
+ background-color: #0D234B;
19
+ border-radius: 2.4rem;
20
+ }
21
+ @media screen and (min-width: 992px) {
22
+ pn-stats-info .pn-stats-info__container__content {
23
+ padding: 4rem 2.4rem 1.6rem;
24
+ }
25
+ }
26
+ @media screen and (min-width: 1200px) {
27
+ pn-stats-info .pn-stats-info__container__content {
28
+ padding: 5.6rem 2.4rem 3.2rem;
29
+ }
30
+ }
31
+ pn-stats-info .pn-stats-info__container__content__heading {
32
+ color: #F06365;
33
+ margin-bottom: 2.4rem;
34
+ align-self: center;
35
+ text-align: center;
36
+ font-size: 3rem;
37
+ line-height: 110%;
38
+ }
39
+ @media screen and (min-width: 1200px) {
40
+ pn-stats-info .pn-stats-info__container__content__heading {
41
+ font-weight: 700;
42
+ font-size: 4.8rem;
43
+ }
44
+ }
45
+ pn-stats-info .pn-stats-info__container__content__data {
46
+ height: 100%;
47
+ display: flex;
48
+ flex-direction: row;
49
+ justify-content: center;
50
+ flex-wrap: wrap;
51
+ width: 100%;
52
+ }
53
+ pn-stats-info .pn-stats-info__container__content__data pn-stats-info-data:first-child:nth-last-child(2n),
54
+ pn-stats-info .pn-stats-info__container__content__data pn-stats-info-data:first-child:nth-last-child(2n) ~ pn-stats-info-data {
55
+ width: 50%;
56
+ }
57
+ @media screen and (min-width: 768px) {
58
+ pn-stats-info .pn-stats-info__container__content__data pn-stats-info-data:first-child:nth-last-child(1) {
59
+ width: 100%;
60
+ }
61
+ pn-stats-info .pn-stats-info__container__content__data pn-stats-info-data:first-child:nth-last-child(2),
62
+ pn-stats-info .pn-stats-info__container__content__data pn-stats-info-data:first-child:nth-last-child(2) ~ pn-stats-info-data {
63
+ width: 50%;
64
+ }
65
+ pn-stats-info .pn-stats-info__container__content__data pn-stats-info-data:first-child:nth-last-child(3n),
66
+ pn-stats-info .pn-stats-info__container__content__data pn-stats-info-data:first-child:nth-last-child(3n) ~ pn-stats-info-data {
67
+ width: 33%;
68
+ }
69
+ pn-stats-info .pn-stats-info__container__content__data pn-stats-info-data:first-child:nth-last-child(8),
70
+ pn-stats-info .pn-stats-info__container__content__data pn-stats-info-data:first-child:nth-last-child(8) ~ pn-stats-info-data {
71
+ width: 25%;
72
+ }
73
+ }
74
+ pn-stats-info .pn-stats-info__container__content__data .pn-stats-info-data__container {
75
+ justify-content: flex-start;
76
+ min-height: 0;
77
+ padding: 2.4rem;
78
+ }
79
+ @media screen and (min-width: 768px) {
80
+ pn-stats-info .pn-stats-info__container__content__data .pn-stats-info-data__container {
81
+ min-height: 0;
82
+ }
83
+ }
84
+ @media screen and (min-width: 992px) {
85
+ pn-stats-info .pn-stats-info__container__content__data .pn-stats-info-data__container {
86
+ min-height: 0;
87
+ }
88
+ }
89
+ @media screen and (min-width: 1200px) {
90
+ pn-stats-info .pn-stats-info__container__content__data .pn-stats-info-data__container {
91
+ min-height: 0;
92
+ }
93
+ }
94
+
95
+ pn-stats-info[data-stats-image=background] .pn-stats-info__container__map {
96
+ display: none;
97
+ border-top-left-radius: 2.4rem;
98
+ border-bottom-left-radius: 2.4rem;
99
+ }
100
+ @media screen and (min-width: 768px) {
101
+ pn-stats-info[data-stats-image=background] .pn-stats-info__container__map {
102
+ display: block;
103
+ max-width: 46rem;
104
+ width: 100%;
105
+ background-color: #0D234B;
106
+ background-repeat: no-repeat;
107
+ background-position: bottom center;
108
+ background-size: 55%;
109
+ }
110
+ }
111
+ @media screen and (min-width: 1200px) {
112
+ pn-stats-info[data-stats-image=background] .pn-stats-info__container__map {
113
+ background-size: contain;
114
+ }
115
+ }
116
+ pn-stats-info[data-stats-image=background] .pn-stats-info-image-container {
117
+ display: none;
118
+ }
119
+ pn-stats-info[data-stats-image=background] .pn-stats-info__container__content {
120
+ display: flex;
121
+ flex-direction: column;
122
+ align-items: center;
123
+ width: 100%;
124
+ background-color: #0D234B;
125
+ background-repeat: no-repeat;
126
+ background-position: bottom left;
127
+ background-size: 50%;
128
+ background-blend-mode: overlay;
129
+ border-radius: 2.4rem;
130
+ }
131
+ @media screen and (min-width: 768px) {
132
+ pn-stats-info[data-stats-image=background] .pn-stats-info__container__content {
133
+ border-top-left-radius: 0;
134
+ border-bottom-left-radius: 0;
135
+ max-width: 54rem;
136
+ background-position: -999px -999px;
137
+ background-size: 0;
138
+ }
139
+ }
140
+ @media screen and (min-width: 1200px) {
141
+ pn-stats-info[data-stats-image=background] .pn-stats-info__container__content {
142
+ max-width: 100%;
143
+ }
144
+ }
145
+ pn-stats-info[data-stats-image=background] .pn-stats-info__container__content__data {
146
+ min-height: 0;
147
+ }
148
+
149
+ pn-stats-info[data-stats-image=image] .pn-stats-info__container {
150
+ flex-direction: column;
151
+ padding-top: 0;
152
+ }
153
+ @media screen and (min-width: 992px) {
154
+ pn-stats-info[data-stats-image=image] .pn-stats-info__container {
155
+ flex-direction: row;
156
+ }
157
+ }
158
+ pn-stats-info[data-stats-image=image] .pn-stats-info__container__map {
159
+ display: none;
160
+ }
161
+ pn-stats-info[data-stats-image=image] .pn-stats-info-image-container {
162
+ display: block;
163
+ position: relative;
164
+ }
165
+ pn-stats-info[data-stats-image=image] .pn-stats-info-image-container [slot=illustration] {
166
+ border-top-left-radius: 2.4rem;
167
+ border-top-right-radius: 2.4rem;
168
+ }
169
+ pn-stats-info[data-stats-image=image] .pn-stats-info-image-container [slot=illustration] > picture > img {
170
+ width: 100%;
171
+ height: auto;
172
+ border-top-left-radius: 2.4rem;
173
+ border-top-right-radius: 2.4rem;
174
+ border-bottom-left-radius: 0;
175
+ border-bottom-right-radius: 0;
176
+ }
177
+ @media screen and (min-width: 992px) {
178
+ pn-stats-info[data-stats-image=image] .pn-stats-info-image-container {
179
+ display: flex;
180
+ align-items: center;
181
+ background-color: #0D234B;
182
+ padding-left: 4rem;
183
+ border-top-left-radius: 2.4rem;
184
+ border-bottom-left-radius: 2.4rem;
185
+ }
186
+ pn-stats-info[data-stats-image=image] .pn-stats-info-image-container [slot=illustration] img {
187
+ clip-path: circle(50%);
188
+ object-fit: cover;
189
+ object-position: center;
190
+ aspect-ratio: 1;
191
+ max-width: 45rem;
192
+ }
193
+ }
194
+ pn-stats-info[data-stats-image=image] .pn-stats-info__container__content {
195
+ width: 100%;
196
+ max-width: 100%;
197
+ border-bottom-right-radius: 2.4rem;
198
+ border-bottom-left-radius: 2.4rem;
199
+ border-top-right-radius: 0;
200
+ border-top-left-radius: 0;
201
+ }
202
+ @media screen and (min-width: 768px) {
203
+ pn-stats-info[data-stats-image=image] .pn-stats-info__container__content {
204
+ justify-content: center;
205
+ }
206
+ }
207
+ @media screen and (min-width: 992px) {
208
+ pn-stats-info[data-stats-image=image] .pn-stats-info__container__content {
209
+ border-top-right-radius: 2.4rem;
210
+ border-bottom-right-radius: 2.4rem;
211
+ border-bottom-left-radius: 0;
212
+ max-width: 100%;
213
+ }
214
+ }
215
+ @media screen and (min-width: 992px) {
216
+ pn-stats-info[data-stats-image=image] .pn-stats-info__container__content__heading {
217
+ font-size: 4.8rem;
218
+ }
219
+ }
220
+ pn-stats-info[data-stats-image=image] .pn-stats-info__container__content__data {
221
+ width: 100%;
222
+ height: auto;
223
+ min-height: 0;
224
+ }
225
+ pn-stats-info[data-stats-image=image] .pn-stats-info__container__content__data .pn-stats-info-data__container {
226
+ justify-content: flex-start;
227
+ min-height: 5.6rem;
228
+ }
229
+ @media screen and (min-width: 768px) {
230
+ pn-stats-info[data-stats-image=image] .pn-stats-info__container__content__data .pn-stats-info-data__container {
231
+ min-height: 5.6rem;
232
+ padding: 2.4rem;
233
+ }
234
+ }
235
+ @media screen and (min-width: 1200px) {
236
+ pn-stats-info[data-stats-image=image] .pn-stats-info__container__content__data .pn-stats-info-data__container {
237
+ min-height: 5rem;
238
+ }
239
+ }
240
+ @media screen and (min-width: 992px) {
241
+ pn-stats-info[data-stats-image=image] .pn-stats-info__container__content__data .pn-stats-info-data__container__content__data {
242
+ font-size: 5.6rem;
243
+ }
244
+ }
245
+ @media screen and (min-width: 992px) {
246
+ pn-stats-info[data-stats-image=image] .pn-stats-info__container__content__data .pn-stats-info-data__container__content__unit {
247
+ font-size: 5.6rem;
248
+ }
249
+ }
1
250
  .bleed-container:has(pn-stats-info) {
2
251
  padding: 0;
3
252
  margin-bottom: 3rem;
@@ -10,30 +259,30 @@
10
259
  margin-bottom: 0 !important;
11
260
  }
12
261
 
13
- pn-stats-info {
262
+ .comboquotestatsblock pn-stats-info {
14
263
  width: 100%;
15
264
  }
16
- pn-stats-info .pn-stats-info__container {
265
+ .comboquotestatsblock pn-stats-info .pn-stats-info__container {
17
266
  display: flex;
18
267
  flex-direction: row;
19
268
  justify-content: center;
20
269
  padding-top: 2rem;
21
270
  }
22
271
  @media screen and (min-width: 768px) {
23
- pn-stats-info .pn-stats-info__container {
272
+ .comboquotestatsblock pn-stats-info .pn-stats-info__container {
24
273
  padding-top: 6rem;
25
274
  }
26
275
  }
27
276
  @media screen and (min-width: 1200px) {
28
- pn-stats-info .pn-stats-info__container {
277
+ .comboquotestatsblock pn-stats-info .pn-stats-info__container {
29
278
  padding-top: 8rem;
30
279
  }
31
280
  }
32
- pn-stats-info .pn-stats-info__container__map {
281
+ .comboquotestatsblock pn-stats-info .pn-stats-info__container__map {
33
282
  display: none;
34
283
  }
35
284
  @media screen and (min-width: 768px) {
36
- pn-stats-info .pn-stats-info__container__map {
285
+ .comboquotestatsblock pn-stats-info .pn-stats-info__container__map {
37
286
  display: block;
38
287
  max-width: 46rem;
39
288
  width: 100%;
@@ -44,11 +293,14 @@ pn-stats-info .pn-stats-info__container__map {
44
293
  }
45
294
  }
46
295
  @media screen and (min-width: 1200px) {
47
- pn-stats-info .pn-stats-info__container__map {
296
+ .comboquotestatsblock pn-stats-info .pn-stats-info__container__map {
48
297
  background-size: contain;
49
298
  }
50
299
  }
51
- pn-stats-info .pn-stats-info__container__content {
300
+ .comboquotestatsblock pn-stats-info .pn-stats-info-image-container {
301
+ display: none;
302
+ }
303
+ .comboquotestatsblock pn-stats-info .pn-stats-info__container__content {
52
304
  display: flex;
53
305
  flex-direction: column;
54
306
  align-items: center;
@@ -62,8 +314,8 @@ pn-stats-info .pn-stats-info__container__content {
62
314
  padding-bottom: 2rem;
63
315
  }
64
316
  @media screen and (min-width: 768px) {
65
- pn-stats-info .pn-stats-info__container__content {
66
- max-width: 540px;
317
+ .comboquotestatsblock pn-stats-info .pn-stats-info__container__content {
318
+ max-width: 54rem;
67
319
  background-position: -999px -999px;
68
320
  background-size: 0;
69
321
  padding-bottom: 4rem;
@@ -71,13 +323,13 @@ pn-stats-info .pn-stats-info__container__content {
71
323
  }
72
324
  }
73
325
  @media screen and (min-width: 1200px) {
74
- pn-stats-info .pn-stats-info__container__content {
326
+ .comboquotestatsblock pn-stats-info .pn-stats-info__container__content {
75
327
  max-width: 100%;
76
328
  padding-bottom: 6rem;
77
329
  padding-right: 6rem;
78
330
  }
79
331
  }
80
- pn-stats-info .pn-stats-info__container__content__heading {
332
+ .comboquotestatsblock pn-stats-info .pn-stats-info__container__content__heading {
81
333
  color: #F06365;
82
334
  margin-bottom: 2.4rem;
83
335
  align-self: center;
@@ -86,12 +338,12 @@ pn-stats-info .pn-stats-info__container__content__heading {
86
338
  line-height: 110%;
87
339
  }
88
340
  @media screen and (min-width: 1200px) {
89
- pn-stats-info .pn-stats-info__container__content__heading {
341
+ .comboquotestatsblock pn-stats-info .pn-stats-info__container__content__heading {
90
342
  font-weight: 700;
91
343
  font-size: 4.8rem;
92
344
  }
93
345
  }
94
- pn-stats-info .pn-stats-info__container__content__data {
346
+ .comboquotestatsblock pn-stats-info .pn-stats-info__container__content__data {
95
347
  height: 100%;
96
348
  display: flex;
97
349
  flex-direction: row;
@@ -99,7 +351,76 @@ pn-stats-info .pn-stats-info__container__content__data {
99
351
  min-height: 20rem;
100
352
  }
101
353
  @media screen and (min-width: 1640px) {
102
- pn-stats-info .pn-stats-info__container__content__data {
354
+ .comboquotestatsblock pn-stats-info .pn-stats-info__container__content__data {
103
355
  width: 65rem;
104
356
  }
357
+ }
358
+
359
+ pn-stats-info[data-stats-background-color=bluedarkest] .pn-stats-info__container__content,
360
+ pn-stats-info[data-stats-background-color=bluedarkest] .pn-stats-info__container__map {
361
+ background-color: #0D234B;
362
+ }
363
+ pn-stats-info[data-stats-background-color=bluedarkest] .pn-stats-info-image-container {
364
+ background-color: transparent;
365
+ }
366
+ pn-stats-info[data-stats-background-color=bluedarkest] .pn-stats-info-image-container [slot=illustration] {
367
+ background-color: #0D234B;
368
+ }
369
+ @media screen and (min-width: 992px) {
370
+ pn-stats-info[data-stats-background-color=bluedarkest] .pn-stats-info-image-container {
371
+ background-color: #0D234B;
372
+ }
373
+ }
374
+ pn-stats-info[data-stats-background-color=bluedarkest] .pn-stats-info__container__content__heading,
375
+ pn-stats-info[data-stats-background-color=bluedarkest] .pn-stats-info-data__container__content {
376
+ color: #F06365;
377
+ }
378
+ pn-stats-info[data-stats-background-color=bluedarkest] .pn-stats-info-data__container__content__preamble {
379
+ color: #FFFFFF;
380
+ }
381
+
382
+ pn-stats-info[data-stats-background-color=greendarkest] .pn-stats-info__container__content,
383
+ pn-stats-info[data-stats-background-color=greendarkest] .pn-stats-info__container__map {
384
+ background-color: #005E41;
385
+ }
386
+ pn-stats-info[data-stats-background-color=greendarkest] .pn-stats-info-image-container {
387
+ background-color: transparent;
388
+ }
389
+ pn-stats-info[data-stats-background-color=greendarkest] .pn-stats-info-image-container [slot=illustration] {
390
+ background-color: #005E41;
391
+ }
392
+ @media screen and (min-width: 992px) {
393
+ pn-stats-info[data-stats-background-color=greendarkest] .pn-stats-info-image-container {
394
+ background-color: #005E41;
395
+ }
396
+ }
397
+ pn-stats-info[data-stats-background-color=greendarkest] .pn-stats-info__container__content__heading,
398
+ pn-stats-info[data-stats-background-color=greendarkest] .pn-stats-info-data__container__content {
399
+ color: #FFFFFF;
400
+ }
401
+ pn-stats-info[data-stats-background-color=greendarkest] .pn-stats-info-data__container__content__preamble {
402
+ color: #FFFFFF;
403
+ }
404
+
405
+ pn-stats-info[data-stats-background-color=greenlightest] .pn-stats-info__container__content,
406
+ pn-stats-info[data-stats-background-color=greenlightest] .pn-stats-info__container__map {
407
+ background-color: #EDFBF3;
408
+ }
409
+ pn-stats-info[data-stats-background-color=greenlightest] .pn-stats-info-image-container {
410
+ background-color: transparent;
411
+ }
412
+ pn-stats-info[data-stats-background-color=greenlightest] .pn-stats-info-image-container [slot=illustration] {
413
+ background-color: #EDFBF3;
414
+ }
415
+ @media screen and (min-width: 992px) {
416
+ pn-stats-info[data-stats-background-color=greenlightest] .pn-stats-info-image-container {
417
+ background-color: #EDFBF3;
418
+ }
419
+ }
420
+ pn-stats-info[data-stats-background-color=greenlightest] .pn-stats-info__container__content__heading,
421
+ pn-stats-info[data-stats-background-color=greenlightest] .pn-stats-info-data__container__content {
422
+ color: #005D92;
423
+ }
424
+ pn-stats-info[data-stats-background-color=greenlightest] .pn-stats-info-data__container__content__preamble {
425
+ color: #0D234B;
105
426
  }
@@ -1,5 +1,5 @@
1
- import { h, Host, } from '@stencil/core';
2
- const mockStringArray = '[{ "preamble": "Million parcels", "data": 226, "unit": null, "duration": 1000 }, { "preamble": "weighted parcel delivery quality", "data": 94.5, "unit": "%", "duration": 2500 },{ "preamble": "billion letters and other mail items", "data": 1.5, "unit": "", "duration": 3000 },{ "preamble": "carbon dioxide emissions since 2009", "data": -44, "unit": "%", "duration": 2000 }]';
1
+ import { h, Host } from '@stencil/core';
2
+ const mockStringArray = '[ { "preamble": "Million parcels", "data": 226, "unit": null, "duration": 1000 }, { "preamble": "Million parcels", "data": 226, "unit": null, "duration": 1000 },{"preamble": "carbon dioxide emissions since 2009", "data": -44, "unit": "%", "duration": 2000 }, { "preamble": "Million parcels", "data": 226, "unit": null, "duration": 1000 }, {"preamble": "carbon dioxide emissions since 2009", "data": -44, "unit": "%", "duration": 2000 }, { "preamble": "Million parcels", "data": 226, "unit": null, "duration": 1000 }]';
3
3
  export class PnStatsInfo {
4
4
  constructor() {
5
5
  this.heading = 'Heading';
@@ -11,13 +11,13 @@ export class PnStatsInfo {
11
11
  if (newValue)
12
12
  this.myParsedArray = JSON.parse(newValue);
13
13
  }
14
- generateUniqueID() {
15
- return Date.now();
14
+ generateTimeInMilliSeconds() {
15
+ return Math.round(Date.now());
16
16
  }
17
17
  render() {
18
- return (h(Host, null, h("div", { class: "pn-stats-info__container" }, h("div", { class: "pn-stats-info__container__map", style: { backgroundImage: `url(${this.backgroundUrl})` } }), h("div", { class: "pn-stats-info__container__content", style: { backgroundImage: `url(${this.backgroundUrl})` } }, h("h3", { class: "pn-stats-info__container__content__heading" }, this.heading), h("div", { class: "pn-stats-info__container__content__data" }, this.myParsedArray &&
18
+ return (h(Host, null, h("div", { class: "pn-stats-info__container" }, h("div", { class: "pn-stats-info__container__map", style: { backgroundImage: `url(${this.backgroundUrl})` } }), h("div", { class: "pn-stats-info-image-container" }, h("slot", { name: "illustration" })), h("div", { class: "pn-stats-info__container__content", style: { backgroundImage: `url(${this.backgroundUrl})` } }, h("h3", { class: "pn-stats-info__container__content__heading" }, this.heading), h("div", { class: "pn-stats-info__container__content__data" }, this.myParsedArray &&
19
19
  this.myParsedArray.map((stats, index) => {
20
- return (h("pn-stats-info-data", { "comp-id": `${this.generateUniqueID()}-${index}`, data: stats.data, unit: stats.unit, preamble: stats.preamble, duration: stats.duration }));
20
+ return (h("pn-stats-info-data", { index: `${index}-${this.generateTimeInMilliSeconds()}`, data: stats.data, unit: stats.unit, preamble: stats.preamble, duration: stats.duration }));
21
21
  }))))));
22
22
  }
23
23
  static get is() { return "pn-stats-info"; }
@@ -8,30 +8,116 @@ export default {
8
8
  },
9
9
  };
10
10
 
11
- const PrimaryTemplate = ({ ...args }) => {
11
+ const ForComboBlockTemplate = ({ ...args }) => {
12
12
  return `
13
- <div style="height:1200px">
13
+ <div style="height:1200px" class="comboquotestatsblock">
14
14
  <h1 style="text-align:center;">Scroll Down...</h1>
15
15
  </div>
16
16
  <div style="background-color:#0D234B;">
17
17
  <div style="width:100%; max-width:1140px; margin:0 auto">
18
- <pn-stats-info heading="${args.heading}" background-url="${args.backgroundUrl}">
18
+ <pn-stats-info heading="${args.heading}" data-stats-image="background" background-url="${args.backgroundUrl}">
19
19
  </pn-stats-info>
20
20
  </div>
21
- </div>
21
+ </div>
22
22
  <br/>
23
23
 
24
24
  <div style="background-color:#0D234B;">
25
25
  <div style="width:100%; max-width:1140px; margin:0 auto">
26
- <pn-stats-info heading="${args.heading}" background-url="${args.backgroundUrl}">
26
+ <pn-stats-info heading="${args.heading}" data-stats-image="background" background-url="${args.backgroundUrl}" >
27
27
  </pn-stats-info>
28
28
  </div>
29
+ </div>
30
+ `;
31
+ };
32
+
33
+ const StandaloneTemplateNoImage = ({ ...args }) => {
34
+ return `
35
+ <pn-breakpoints></pn-breakpoints>
36
+
37
+ <div class="fullwidth statsblock" style="width:100%; max-width:1140px; margin:0 auto">
38
+ <pn-stats-info heading="${args.heading}" background-url="" data-stats-image="none" data-stats-background-color="greenlightest">
39
+ </pn-stats-info>
40
+ </div>
41
+ <br/>
42
+ <div class="fullwidth statsblock" style="width:100%; max-width:1140px; margin:0 auto">
43
+ <pn-stats-info heading="${args.heading}" background-url="" data-stats-image="none" data-stats-background-color="greendarkest">
44
+ </pn-stats-info>
45
+ </div>
46
+ <br/>
47
+ <div class="fullwidth statsblock" style="width:100%; max-width:1140px; margin:0 auto">
48
+ <pn-stats-info heading="${args.heading}" background-url="" data-stats-image="none" data-stats-background-color="bluedarkest">
49
+ </pn-stats-info>
50
+ </div>
51
+ `;
52
+ };
53
+
54
+ const StandAloneCenterImageTemplate = ({ ...args }) => {
55
+ return `
56
+ <pn-breakpoints></pn-breakpoints>
57
+
58
+ <div class="fullwidth statsblock" style="width:100%; max-width:1140px; margin:0 auto">
59
+ <pn-stats-info heading="${args.heading}" background-url="" data-stats-image="image" data-stats-background-color="bluedarkest">
60
+ <div slot="illustration">
61
+ <picture>
62
+ <img src="https://com-integration.postnord.com/contentassets/8008a14914564b5c999d2cea4e151bdd/man-driving.jpg?width=690&height=388&mode=crop&quality=80&anchor=topcenter" />
63
+ </picture>
64
+ </div>
65
+ </pn-stats-info>
66
+ </div>
67
+
68
+ <br/>
69
+
70
+ <div class="fullwidth statsblock" style="width:100%; max-width:1140px; margin:0 auto">
71
+ <pn-stats-info heading="${args.heading}" background-url="" data-stats-image="image" data-stats-background-color="greendarkest">
72
+ <div slot="illustration">
73
+ <picture>
74
+ <img src="https://com-integration.postnord.com/contentassets/f302a64bf3b5496aaf6f49d8d47e834e/bcdda39b3033ad8b_org.jpg?width=540&height=304&mode=crop&quality=80&anchor=topcenter" />
75
+ </picture>
76
+ </div>
77
+ </pn-stats-info>
29
78
  </div>
30
79
  `;
31
80
  };
32
81
 
33
- export const Primary = PrimaryTemplate.bind({});
34
- Primary.args = {
82
+ const StandAloneBackgroundImageTemplate = ({ ...args }) => {
83
+ return `
84
+ <pn-breakpoints></pn-breakpoints>
85
+ <div class="fullwidth statsblock" style="width:100%; max-width:1140px; margin:0 auto">
86
+ <pn-stats-info heading="${args.heading}" data-stats-image="background" background-url="${args.backgroundUrl}">
87
+ </pn-stats-info>
88
+ </div>
89
+ <br/>
90
+
91
+ <div class="fullwidth statsblock" style="width:100%; max-width:1140px; margin:0 auto">
92
+ <pn-stats-info heading="${args.heading}" data-stats-image="background" background-url="https://com-integration.postnord.com/globalassets/illustrations/product-hero-illustrations--transparent-background/illu-computer-option.svg" data-stats-background-color="greenlightest">
93
+ </pn-stats-info>
94
+ </div>
95
+ <br/>
96
+ <div class="fullwidth statsblock" style="width:100%; max-width:1140px; margin:0 auto">
97
+ <pn-stats-info heading="${args.heading}" data-stats-image="background" background-url="https://com-integration.postnord.com/contentassets/87e64ce0b9ce4acfafa0c26a1b11bd85/9b5aa1ae4698932c_org.png" data-stats-background-color="greendarkest">
98
+ </pn-stats-info>
99
+ </div>
100
+ `;
101
+ };
102
+
103
+ export const Combo = ForComboBlockTemplate.bind({});
104
+ Combo.args = {
35
105
  heading: 'Postnord in figures 2022',
36
106
  backgroundUrl: 'https://com-integration.postnord.com/siteassets/map.png?width=1410&height=793&mode=crop&quality=80',
37
107
  };
108
+
109
+ export const StandaloneNoImage = StandaloneTemplateNoImage.bind({});
110
+ StandaloneNoImage.args = {
111
+ heading: 'Standalone Postnord in figures 2022',
112
+ };
113
+
114
+ export const StandAloneCenterImage = StandAloneCenterImageTemplate.bind({});
115
+ StandAloneCenterImage.args = {
116
+ heading: 'Standalone Center Image',
117
+ };
118
+
119
+ export const StandAloneBackGroundImage = StandAloneBackgroundImageTemplate.bind({});
120
+ StandAloneBackGroundImage.args = {
121
+ heading: 'Standalone BG Image 2023',
122
+ backgroundUrl: 'https://com-integration.postnord.com/siteassets/map.png?width=1410&height=793&mode=crop&quality=80',
123
+ };