@postnord/pn-marketweb-components 2.8.4 → 2.8.5

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 (428) hide show
  1. package/cjs/{index-d6f2e2f9.js → index-6d18c5e9.js} +16 -8
  2. package/cjs/{index-7ebb05d7.js → index-820d92a8.js} +1 -1
  3. package/cjs/loader.cjs.js +2 -2
  4. package/cjs/pn-address-autofill.cjs.entry.js +1 -1
  5. package/cjs/pn-animated-tile.cjs.entry.js +1 -1
  6. package/cjs/pn-app-banner.cjs.entry.js +1 -1
  7. package/cjs/pn-bonus-progressbar-level.cjs.entry.js +1 -1
  8. package/cjs/pn-bonus-progressbar.cjs.entry.js +1 -1
  9. package/cjs/pn-breakpoints.cjs.entry.js +1 -1
  10. package/cjs/pn-chart.cjs.entry.js +1 -1
  11. package/cjs/pn-charts-card.cjs.entry.js +1 -1
  12. package/cjs/pn-choice-button.cjs.entry.js +1 -1
  13. package/cjs/pn-cta-block.cjs.entry.js +1 -1
  14. package/cjs/pn-customernumber-selector-option.cjs.entry.js +1 -1
  15. package/cjs/pn-customernumber-selector.cjs.entry.js +1 -1
  16. package/cjs/pn-date-and-time.cjs.entry.js +1 -1
  17. package/cjs/pn-dropdown-choice-adds-row.cjs.entry.js +1 -1
  18. package/cjs/pn-dropdown-with-multi-input-rows-row.cjs.entry.js +1 -1
  19. package/cjs/pn-dropdown-with-multi-input-rows.cjs.entry.js +1 -1
  20. package/cjs/pn-filter-checkbox.cjs.entry.js +1 -1
  21. package/cjs/pn-find-price-result.cjs.entry.js +3 -3
  22. package/cjs/{pn-find-price-store-1f005e0d.js → pn-find-price-store-e05a9145.js} +1 -1
  23. package/cjs/pn-find-price.cjs.entry.js +3 -3
  24. package/cjs/pn-find-service-and-price-result.cjs.entry.js +3 -3
  25. package/cjs/{pn-find-service-and-price-store-0b544d1e.js → pn-find-service-and-price-store-3ffe0634.js} +1 -1
  26. package/cjs/pn-find-service-and-price.cjs.entry.js +3 -3
  27. package/cjs/pn-language-selector_9.cjs.entry.js +4 -4
  28. package/cjs/pn-line-shape.cjs.entry.js +1 -1
  29. package/cjs/pn-link-list.cjs.entry.js +1 -1
  30. package/cjs/pn-mainnav-link.cjs.entry.js +3 -3
  31. package/cjs/{pn-mainnav-store-a31c1d1e.js → pn-mainnav-store-96e66f69.js} +1 -1
  32. package/cjs/pn-market-web-components.cjs.js +2 -2
  33. package/cjs/pn-marketweb-input.cjs.entry.js +1 -1
  34. package/cjs/pn-marketweb-search.cjs.entry.js +1 -1
  35. package/cjs/pn-marketweb-sitefooter.cjs.entry.js +1 -1
  36. package/cjs/pn-marketweb-siteheader-login-button_5.cjs.entry.js +3 -3
  37. package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +3 -3
  38. package/cjs/{pn-marketweb-siteheader-store-a939014c.js → pn-marketweb-siteheader-store-ccf82b09.js} +1 -1
  39. package/cjs/pn-marketweb-siteheader.cjs.entry.js +3 -3
  40. package/cjs/pn-media-block.cjs.entry.js +180 -0
  41. package/cjs/pn-multi-formfield.cjs.entry.js +1 -1
  42. package/cjs/pn-multi-row-connected-dropdown-row.cjs.entry.js +1 -1
  43. package/cjs/pn-multi-row-connected-dropdown.cjs.entry.js +1 -1
  44. package/cjs/pn-multiple-input.cjs.entry.js +1 -1
  45. package/cjs/pn-parcel-tracker.cjs.entry.js +1 -1
  46. package/cjs/pn-pex-pricefinder.cjs.entry.js +1 -1
  47. package/cjs/pn-play-on-scroll.cjs.entry.js +10 -8
  48. package/cjs/pn-product-card_3.cjs.entry.js +1 -1
  49. package/cjs/pn-product-pricelist-result.cjs.entry.js +2 -2
  50. package/cjs/pn-product-pricelist.cjs.entry.js +3 -3
  51. package/cjs/pn-product-tile-info_2.cjs.entry.js +1 -1
  52. package/cjs/pn-product-tile.cjs.entry.js +1 -1
  53. package/cjs/pn-profile-modal-customernumber.cjs.entry.js +1 -1
  54. package/cjs/pn-profile-modal-profile.cjs.entry.js +3 -3
  55. package/cjs/{pn-profile-modal-store-2525eee2.js → pn-profile-modal-store-14bc937f.js} +1 -1
  56. package/cjs/pn-profile-modal-type.cjs.entry.js +3 -3
  57. package/cjs/pn-profile-modal.cjs.entry.js +3 -3
  58. package/cjs/pn-profile-selector-option.cjs.entry.js +1 -1
  59. package/cjs/pn-profile-selector.cjs.entry.js +1 -1
  60. package/cjs/pn-proxio-findprice-result.cjs.entry.js +1 -1
  61. package/cjs/pn-proxio-findprice.cjs.entry.js +2 -2
  62. package/cjs/pn-proxio-pricegroup.cjs.entry.js +1 -1
  63. package/cjs/pn-proxio-productcard_4.cjs.entry.js +1 -1
  64. package/cjs/pn-quick-cta.cjs.entry.js +1 -1
  65. package/cjs/pn-quote-card.cjs.entry.js +1 -1
  66. package/cjs/pn-scroll_2.cjs.entry.js +4 -3
  67. package/cjs/pn-share-item.cjs.entry.js +1 -1
  68. package/cjs/pn-share.cjs.entry.js +1 -1
  69. package/cjs/pn-sidenav-level.cjs.entry.js +3 -3
  70. package/cjs/pn-sidenav-link.cjs.entry.js +3 -3
  71. package/cjs/{pn-sidenav-store-18b8c3ff.js → pn-sidenav-store-d3f7bdfa.js} +1 -1
  72. package/cjs/pn-sidenav-togglebutton.cjs.entry.js +3 -3
  73. package/cjs/pn-sidenav.cjs.entry.js +3 -3
  74. package/cjs/pn-site-footer_3.cjs.entry.js +1 -1
  75. package/cjs/pn-spotlight.cjs.entry.js +1 -1
  76. package/cjs/pn-stats-info-data.cjs.entry.js +1 -1
  77. package/cjs/pn-stats-info.cjs.entry.js +1 -1
  78. package/cjs/pn-teaser-card.cjs.entry.js +2 -2
  79. package/cjs/pn-titletag.cjs.entry.js +1 -1
  80. package/collection/collection-manifest.json +1 -0
  81. package/collection/components/animation/pn-play-on-scroll/pn-play-on-scroll.css +0 -11
  82. package/collection/components/animation/pn-play-on-scroll/pn-play-on-scroll.js +46 -6
  83. package/collection/components/animation/pn-play-on-scroll/pn-video-overlay/pn-video-overlay.css +15 -0
  84. package/collection/components/animation/pn-play-on-scroll/pn-video-overlay/pn-video-overlay.js +20 -1
  85. package/collection/components/cards/pn-teaser-card/pn-teaser-card.css +4 -0
  86. package/collection/components/media/pn-media-block/media-block.stories.js +258 -0
  87. package/collection/components/media/pn-media-block/pn-media-block.css +283 -0
  88. package/collection/components/media/pn-media-block/pn-media-block.js +481 -0
  89. package/components/index.d.ts +1 -0
  90. package/components/index.js +1 -0
  91. package/components/pn-media-block.d.ts +11 -0
  92. package/components/pn-media-block.js +232 -0
  93. package/components/pn-play-on-scroll.js +1 -97
  94. package/components/pn-play-on-scroll2.js +103 -0
  95. package/components/pn-teaser-card.js +1 -1
  96. package/components/pn-video-overlay2.js +4 -2
  97. package/esm/{index-e6fbe66d.js → index-6ee8c83f.js} +1 -1
  98. package/esm/{index-be8c3299.js → index-70664d8e.js} +16 -8
  99. package/esm/loader.js +3 -3
  100. package/esm/pn-address-autofill.entry.js +1 -1
  101. package/esm/pn-animated-tile.entry.js +1 -1
  102. package/esm/pn-app-banner.entry.js +1 -1
  103. package/esm/pn-bonus-progressbar-level.entry.js +1 -1
  104. package/esm/pn-bonus-progressbar.entry.js +1 -1
  105. package/esm/pn-breakpoints.entry.js +1 -1
  106. package/esm/pn-chart.entry.js +1 -1
  107. package/esm/pn-charts-card.entry.js +1 -1
  108. package/esm/pn-choice-button.entry.js +1 -1
  109. package/esm/pn-cta-block.entry.js +1 -1
  110. package/esm/pn-customernumber-selector-option.entry.js +1 -1
  111. package/esm/pn-customernumber-selector.entry.js +1 -1
  112. package/esm/pn-date-and-time.entry.js +1 -1
  113. package/esm/pn-dropdown-choice-adds-row.entry.js +1 -1
  114. package/esm/pn-dropdown-with-multi-input-rows-row.entry.js +1 -1
  115. package/esm/pn-dropdown-with-multi-input-rows.entry.js +1 -1
  116. package/esm/pn-filter-checkbox.entry.js +1 -1
  117. package/esm/pn-find-price-result.entry.js +3 -3
  118. package/esm/{pn-find-price-store-9d2df21a.js → pn-find-price-store-0835039f.js} +1 -1
  119. package/esm/pn-find-price.entry.js +3 -3
  120. package/esm/pn-find-service-and-price-result.entry.js +3 -3
  121. package/esm/{pn-find-service-and-price-store-60025dfc.js → pn-find-service-and-price-store-ce4ca6e6.js} +1 -1
  122. package/esm/pn-find-service-and-price.entry.js +3 -3
  123. package/esm/pn-language-selector_9.entry.js +4 -4
  124. package/esm/pn-line-shape.entry.js +1 -1
  125. package/esm/pn-link-list.entry.js +1 -1
  126. package/esm/pn-mainnav-link.entry.js +3 -3
  127. package/esm/{pn-mainnav-store-35a91e97.js → pn-mainnav-store-054d67c4.js} +1 -1
  128. package/esm/pn-market-web-components.js +3 -3
  129. package/esm/pn-marketweb-input.entry.js +1 -1
  130. package/esm/pn-marketweb-search.entry.js +1 -1
  131. package/esm/pn-marketweb-sitefooter.entry.js +1 -1
  132. package/esm/pn-marketweb-siteheader-login-button_5.entry.js +3 -3
  133. package/esm/pn-marketweb-siteheader-login-linklist.entry.js +3 -3
  134. package/esm/{pn-marketweb-siteheader-store-aba9e86a.js → pn-marketweb-siteheader-store-de85e557.js} +1 -1
  135. package/esm/pn-marketweb-siteheader.entry.js +3 -3
  136. package/esm/pn-media-block.entry.js +176 -0
  137. package/esm/pn-multi-formfield.entry.js +1 -1
  138. package/esm/pn-multi-row-connected-dropdown-row.entry.js +1 -1
  139. package/esm/pn-multi-row-connected-dropdown.entry.js +1 -1
  140. package/esm/pn-multiple-input.entry.js +1 -1
  141. package/esm/pn-parcel-tracker.entry.js +1 -1
  142. package/esm/pn-pex-pricefinder.entry.js +1 -1
  143. package/esm/pn-play-on-scroll.entry.js +10 -8
  144. package/esm/pn-product-card_3.entry.js +1 -1
  145. package/esm/pn-product-pricelist-result.entry.js +2 -2
  146. package/esm/pn-product-pricelist.entry.js +3 -3
  147. package/esm/pn-product-tile-info_2.entry.js +1 -1
  148. package/esm/pn-product-tile.entry.js +1 -1
  149. package/esm/pn-profile-modal-customernumber.entry.js +1 -1
  150. package/esm/pn-profile-modal-profile.entry.js +3 -3
  151. package/esm/{pn-profile-modal-store-12c5acf9.js → pn-profile-modal-store-3424856b.js} +1 -1
  152. package/esm/pn-profile-modal-type.entry.js +3 -3
  153. package/esm/pn-profile-modal.entry.js +3 -3
  154. package/esm/pn-profile-selector-option.entry.js +1 -1
  155. package/esm/pn-profile-selector.entry.js +1 -1
  156. package/esm/pn-proxio-findprice-result.entry.js +1 -1
  157. package/esm/pn-proxio-findprice.entry.js +2 -2
  158. package/esm/pn-proxio-pricegroup.entry.js +1 -1
  159. package/esm/pn-proxio-productcard_4.entry.js +1 -1
  160. package/esm/pn-quick-cta.entry.js +1 -1
  161. package/esm/pn-quote-card.entry.js +1 -1
  162. package/esm/pn-scroll_2.entry.js +4 -3
  163. package/esm/pn-share-item.entry.js +1 -1
  164. package/esm/pn-share.entry.js +1 -1
  165. package/esm/pn-sidenav-level.entry.js +3 -3
  166. package/esm/pn-sidenav-link.entry.js +3 -3
  167. package/esm/{pn-sidenav-store-a515dd69.js → pn-sidenav-store-e667e8ea.js} +1 -1
  168. package/esm/pn-sidenav-togglebutton.entry.js +3 -3
  169. package/esm/pn-sidenav.entry.js +3 -3
  170. package/esm/pn-site-footer_3.entry.js +1 -1
  171. package/esm/pn-spotlight.entry.js +1 -1
  172. package/esm/pn-stats-info-data.entry.js +1 -1
  173. package/esm/pn-stats-info.entry.js +1 -1
  174. package/esm/pn-teaser-card.entry.js +2 -2
  175. package/esm/pn-titletag.entry.js +1 -1
  176. package/esm-es5/{index-e6fbe66d.js → index-6ee8c83f.js} +1 -1
  177. package/esm-es5/{index-be8c3299.js → index-70664d8e.js} +1 -1
  178. package/esm-es5/loader.js +1 -1
  179. package/esm-es5/pn-address-autofill.entry.js +1 -1
  180. package/esm-es5/pn-animated-tile.entry.js +1 -1
  181. package/esm-es5/pn-app-banner.entry.js +1 -1
  182. package/esm-es5/pn-bonus-progressbar-level.entry.js +1 -1
  183. package/esm-es5/pn-bonus-progressbar.entry.js +1 -1
  184. package/esm-es5/pn-breakpoints.entry.js +1 -1
  185. package/esm-es5/pn-chart.entry.js +1 -1
  186. package/esm-es5/pn-charts-card.entry.js +1 -1
  187. package/esm-es5/pn-choice-button.entry.js +1 -1
  188. package/esm-es5/pn-cta-block.entry.js +1 -1
  189. package/esm-es5/pn-customernumber-selector-option.entry.js +1 -1
  190. package/esm-es5/pn-customernumber-selector.entry.js +1 -1
  191. package/esm-es5/pn-date-and-time.entry.js +1 -1
  192. package/esm-es5/pn-dropdown-choice-adds-row.entry.js +1 -1
  193. package/esm-es5/pn-dropdown-with-multi-input-rows-row.entry.js +1 -1
  194. package/esm-es5/pn-dropdown-with-multi-input-rows.entry.js +1 -1
  195. package/esm-es5/pn-filter-checkbox.entry.js +1 -1
  196. package/esm-es5/pn-find-price-result.entry.js +1 -1
  197. package/esm-es5/{pn-find-price-store-9d2df21a.js → pn-find-price-store-0835039f.js} +1 -1
  198. package/esm-es5/pn-find-price.entry.js +1 -1
  199. package/esm-es5/pn-find-service-and-price-result.entry.js +1 -1
  200. package/esm-es5/{pn-find-service-and-price-store-60025dfc.js → pn-find-service-and-price-store-ce4ca6e6.js} +1 -1
  201. package/esm-es5/pn-find-service-and-price.entry.js +1 -1
  202. package/esm-es5/pn-language-selector_9.entry.js +1 -1
  203. package/esm-es5/pn-line-shape.entry.js +1 -1
  204. package/esm-es5/pn-link-list.entry.js +1 -1
  205. package/esm-es5/pn-mainnav-link.entry.js +1 -1
  206. package/esm-es5/{pn-mainnav-store-35a91e97.js → pn-mainnav-store-054d67c4.js} +1 -1
  207. package/esm-es5/pn-market-web-components.js +1 -1
  208. package/esm-es5/pn-marketweb-input.entry.js +1 -1
  209. package/esm-es5/pn-marketweb-search.entry.js +1 -1
  210. package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -1
  211. package/esm-es5/pn-marketweb-siteheader-login-button_5.entry.js +1 -1
  212. package/esm-es5/pn-marketweb-siteheader-login-linklist.entry.js +1 -1
  213. package/esm-es5/pn-marketweb-siteheader-store-de85e557.js +1 -0
  214. package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
  215. package/esm-es5/pn-media-block.entry.js +1 -0
  216. package/esm-es5/pn-multi-formfield.entry.js +1 -1
  217. package/esm-es5/pn-multi-row-connected-dropdown-row.entry.js +1 -1
  218. package/esm-es5/pn-multi-row-connected-dropdown.entry.js +1 -1
  219. package/esm-es5/pn-multiple-input.entry.js +1 -1
  220. package/esm-es5/pn-parcel-tracker.entry.js +1 -1
  221. package/esm-es5/pn-pex-pricefinder.entry.js +1 -1
  222. package/esm-es5/pn-play-on-scroll.entry.js +1 -1
  223. package/esm-es5/pn-product-card_3.entry.js +1 -1
  224. package/esm-es5/pn-product-pricelist-result.entry.js +1 -1
  225. package/esm-es5/pn-product-pricelist.entry.js +1 -1
  226. package/esm-es5/pn-product-tile-info_2.entry.js +1 -1
  227. package/esm-es5/pn-product-tile.entry.js +1 -1
  228. package/esm-es5/pn-profile-modal-customernumber.entry.js +1 -1
  229. package/esm-es5/pn-profile-modal-profile.entry.js +1 -1
  230. package/esm-es5/{pn-profile-modal-store-12c5acf9.js → pn-profile-modal-store-3424856b.js} +1 -1
  231. package/esm-es5/pn-profile-modal-type.entry.js +1 -1
  232. package/esm-es5/pn-profile-modal.entry.js +1 -1
  233. package/esm-es5/pn-profile-selector-option.entry.js +1 -1
  234. package/esm-es5/pn-profile-selector.entry.js +1 -1
  235. package/esm-es5/pn-proxio-findprice-result.entry.js +1 -1
  236. package/esm-es5/pn-proxio-findprice.entry.js +1 -1
  237. package/esm-es5/pn-proxio-pricegroup.entry.js +1 -1
  238. package/esm-es5/pn-proxio-productcard_4.entry.js +1 -1
  239. package/esm-es5/pn-quick-cta.entry.js +1 -1
  240. package/esm-es5/pn-quote-card.entry.js +1 -1
  241. package/esm-es5/pn-scroll_2.entry.js +1 -1
  242. package/esm-es5/pn-share-item.entry.js +1 -1
  243. package/esm-es5/pn-share.entry.js +1 -1
  244. package/esm-es5/pn-sidenav-level.entry.js +1 -1
  245. package/esm-es5/pn-sidenav-link.entry.js +1 -1
  246. package/esm-es5/{pn-sidenav-store-a515dd69.js → pn-sidenav-store-e667e8ea.js} +1 -1
  247. package/esm-es5/pn-sidenav-togglebutton.entry.js +1 -1
  248. package/esm-es5/pn-sidenav.entry.js +1 -1
  249. package/esm-es5/pn-site-footer_3.entry.js +1 -1
  250. package/esm-es5/pn-spotlight.entry.js +1 -1
  251. package/esm-es5/pn-stats-info-data.entry.js +1 -1
  252. package/esm-es5/pn-stats-info.entry.js +1 -1
  253. package/esm-es5/pn-teaser-card.entry.js +1 -1
  254. package/esm-es5/pn-titletag.entry.js +1 -1
  255. package/package.json +1 -1
  256. package/pn-market-web-components/{p-4572f290.entry.js → p-0010aad7.entry.js} +1 -1
  257. package/pn-market-web-components/{p-28ebaf1d.system.entry.js → p-04b382ae.system.entry.js} +1 -1
  258. package/pn-market-web-components/{p-c633a40e.entry.js → p-052508de.entry.js} +1 -1
  259. package/pn-market-web-components/{p-eb9a3c2d.system.entry.js → p-05f643e4.system.entry.js} +1 -1
  260. package/pn-market-web-components/{p-583df48e.system.entry.js → p-05f99c22.system.entry.js} +1 -1
  261. package/pn-market-web-components/{p-49896e47.system.entry.js → p-08fa8d4a.system.entry.js} +1 -1
  262. package/pn-market-web-components/{p-9d0074fb.entry.js → p-0ad6efd1.entry.js} +1 -1
  263. package/pn-market-web-components/{p-b8266eeb.entry.js → p-0b071480.entry.js} +1 -1
  264. package/pn-market-web-components/{p-b49d0553.system.entry.js → p-1165f7d0.system.entry.js} +1 -1
  265. package/pn-market-web-components/p-136f5395.entry.js +1 -0
  266. package/pn-market-web-components/{p-e5f99384.system.js → p-14a189d3.system.js} +1 -1
  267. package/pn-market-web-components/{p-550b2b29.system.entry.js → p-154e2826.system.entry.js} +1 -1
  268. package/pn-market-web-components/p-17e61235.js +1 -0
  269. package/pn-market-web-components/{p-103c054e.entry.js → p-191edfa8.entry.js} +1 -1
  270. package/pn-market-web-components/{p-3d0c3caa.system.entry.js → p-19be5eed.system.entry.js} +1 -1
  271. package/pn-market-web-components/{p-609f1695.system.entry.js → p-1a4194d3.system.entry.js} +1 -1
  272. package/pn-market-web-components/{p-03cc4a3b.entry.js → p-1aa1ccd2.entry.js} +1 -1
  273. package/pn-market-web-components/{p-b2fc3594.entry.js → p-1d69c613.entry.js} +1 -1
  274. package/pn-market-web-components/{p-47536b9e.system.entry.js → p-1dafb003.system.entry.js} +1 -1
  275. package/pn-market-web-components/{p-8c7787eb.entry.js → p-1f2d226e.entry.js} +1 -1
  276. package/pn-market-web-components/{p-35b5ea63.system.entry.js → p-1fbdecfb.system.entry.js} +1 -1
  277. package/pn-market-web-components/{p-5840be2e.entry.js → p-20a08e7a.entry.js} +1 -1
  278. package/pn-market-web-components/{p-944d00e3.system.entry.js → p-2248b584.system.entry.js} +1 -1
  279. package/pn-market-web-components/{p-c1ec42a6.entry.js → p-225e581e.entry.js} +1 -1
  280. package/pn-market-web-components/{p-e5c7627c.system.entry.js → p-23357475.system.entry.js} +1 -1
  281. package/pn-market-web-components/{p-865ee8f6.entry.js → p-260016e2.entry.js} +1 -1
  282. package/pn-market-web-components/{p-64048a03.entry.js → p-2647f023.entry.js} +1 -1
  283. package/pn-market-web-components/{p-bf1f69fa.system.entry.js → p-28f745d6.system.entry.js} +1 -1
  284. package/pn-market-web-components/{p-64691d51.entry.js → p-29d60871.entry.js} +1 -1
  285. package/pn-market-web-components/{p-29a7c74f.system.entry.js → p-2ac346c8.system.entry.js} +1 -1
  286. package/pn-market-web-components/{p-83d7a808.entry.js → p-2bc0fbd6.entry.js} +1 -1
  287. package/pn-market-web-components/{p-eb42a545.entry.js → p-2dca907e.entry.js} +1 -1
  288. package/pn-market-web-components/{p-6aab92c0.entry.js → p-312ca954.entry.js} +1 -1
  289. package/pn-market-web-components/{p-592360ba.system.entry.js → p-32528f2e.system.entry.js} +1 -1
  290. package/pn-market-web-components/{p-ba1cce09.system.entry.js → p-3410b18e.system.entry.js} +1 -1
  291. package/pn-market-web-components/p-35a4aa56.entry.js +1 -0
  292. package/pn-market-web-components/{p-4b710959.entry.js → p-3a2f44d6.entry.js} +1 -1
  293. package/pn-market-web-components/{p-666d2bfb.entry.js → p-3a8410c6.entry.js} +1 -1
  294. package/pn-market-web-components/{p-52637e34.system.entry.js → p-3ab1bf8b.system.entry.js} +1 -1
  295. package/pn-market-web-components/{p-a7371325.entry.js → p-3cc00541.entry.js} +1 -1
  296. package/pn-market-web-components/{p-2ccbef09.system.entry.js → p-3d2ac1f6.system.entry.js} +1 -1
  297. package/pn-market-web-components/{p-ae453317.entry.js → p-3dad0ce4.entry.js} +1 -1
  298. package/pn-market-web-components/{p-746a2620.js → p-3f74ef14.js} +1 -1
  299. package/pn-market-web-components/{p-2e6d5633.entry.js → p-42cde64b.entry.js} +1 -1
  300. package/pn-market-web-components/{p-2ef39f23.entry.js → p-441c6ecf.entry.js} +1 -1
  301. package/pn-market-web-components/{p-6aaf35c7.entry.js → p-4905a61d.entry.js} +1 -1
  302. package/pn-market-web-components/{p-98690006.system.entry.js → p-4a4d1f12.system.entry.js} +1 -1
  303. package/pn-market-web-components/{p-c6409b81.entry.js → p-4b05a2a7.entry.js} +1 -1
  304. package/pn-market-web-components/{p-476c4f58.system.entry.js → p-4e5efb81.system.entry.js} +1 -1
  305. package/pn-market-web-components/{p-fbafd07a.system.entry.js → p-4e9b9584.system.entry.js} +1 -1
  306. package/pn-market-web-components/{p-087a6e41.system.entry.js → p-4ef22c01.system.entry.js} +1 -1
  307. package/pn-market-web-components/{p-9db7d43b.system.entry.js → p-51e673f9.system.entry.js} +1 -1
  308. package/pn-market-web-components/{p-eb82c0f8.system.entry.js → p-52c91186.system.entry.js} +1 -1
  309. package/pn-market-web-components/{p-0f73d268.system.entry.js → p-52df172b.system.entry.js} +1 -1
  310. package/pn-market-web-components/p-53d7aeb5.js +1 -0
  311. package/pn-market-web-components/{p-d97d1501.system.entry.js → p-54548525.system.entry.js} +1 -1
  312. package/pn-market-web-components/{p-1e0fd641.entry.js → p-54ae554a.entry.js} +1 -1
  313. package/pn-market-web-components/{p-a83c758d.system.entry.js → p-55095fd4.system.entry.js} +1 -1
  314. package/pn-market-web-components/p-55a12ded.system.entry.js +1 -0
  315. package/pn-market-web-components/{p-63b48e94.system.entry.js → p-586991f8.system.entry.js} +1 -1
  316. package/pn-market-web-components/{p-cb9c945d.entry.js → p-5ee67059.entry.js} +1 -1
  317. package/pn-market-web-components/{p-6a230cb1.js → p-6107c744.js} +1 -1
  318. package/pn-market-web-components/{p-0f6f212a.system.entry.js → p-62603a41.system.entry.js} +1 -1
  319. package/pn-market-web-components/{p-b407caff.entry.js → p-68862e73.entry.js} +1 -1
  320. package/pn-market-web-components/p-69fc1fdb.system.entry.js +1 -0
  321. package/pn-market-web-components/{p-e62c4259.entry.js → p-6bc810e3.entry.js} +1 -1
  322. package/pn-market-web-components/{p-a0a92f86.system.js → p-6caaf51b.system.js} +1 -1
  323. package/pn-market-web-components/{p-f91cee83.entry.js → p-6f07da13.entry.js} +1 -1
  324. package/pn-market-web-components/{p-c3015b3f.entry.js → p-6fd874c0.entry.js} +1 -1
  325. package/pn-market-web-components/{p-14ebd1f5.system.entry.js → p-6ff2c262.system.entry.js} +1 -1
  326. package/pn-market-web-components/{p-4e73bb67.entry.js → p-704058ed.entry.js} +1 -1
  327. package/pn-market-web-components/{p-4afac628.system.entry.js → p-77db84fd.system.entry.js} +1 -1
  328. package/pn-market-web-components/{p-027911c8.system.entry.js → p-7b879f2c.system.entry.js} +1 -1
  329. package/pn-market-web-components/{p-cc1b4ca3.entry.js → p-7c167f65.entry.js} +1 -1
  330. package/pn-market-web-components/{p-39f2c4d3.system.entry.js → p-7c8ad9cc.system.entry.js} +1 -1
  331. package/pn-market-web-components/{p-2974d1e2.entry.js → p-7da9b27b.entry.js} +1 -1
  332. package/pn-market-web-components/{p-0a3aa74f.entry.js → p-7e3b87bd.entry.js} +1 -1
  333. package/pn-market-web-components/{p-5e61eb13.entry.js → p-7e4b979c.entry.js} +1 -1
  334. package/pn-market-web-components/p-812e4d0b.system.entry.js +1 -0
  335. package/pn-market-web-components/{p-3396f3c8.entry.js → p-820065a3.entry.js} +1 -1
  336. package/pn-market-web-components/{p-48a38770.system.entry.js → p-83a8af5a.system.entry.js} +1 -1
  337. package/pn-market-web-components/{p-d11f771e.system.entry.js → p-85c52e0c.system.entry.js} +1 -1
  338. package/pn-market-web-components/{p-825bdb78.system.entry.js → p-85d8ccbd.system.entry.js} +1 -1
  339. package/pn-market-web-components/{p-463a5975.system.entry.js → p-874d96b9.system.entry.js} +1 -1
  340. package/pn-market-web-components/{p-c3899747.system.entry.js → p-87f9ac84.system.entry.js} +1 -1
  341. package/pn-market-web-components/{p-f80e46eb.system.entry.js → p-8986f45e.system.entry.js} +1 -1
  342. package/pn-market-web-components/{p-8f28f717.system.entry.js → p-8b42b65a.system.entry.js} +1 -1
  343. package/pn-market-web-components/{p-6125c132.entry.js → p-8bba7ba7.entry.js} +1 -1
  344. package/pn-market-web-components/{p-54ffd368.system.entry.js → p-8bdad77d.system.entry.js} +1 -1
  345. package/pn-market-web-components/{p-9cfde6aa.entry.js → p-8e142421.entry.js} +1 -1
  346. package/pn-market-web-components/{p-00d87476.entry.js → p-92ebab4a.entry.js} +1 -1
  347. package/pn-market-web-components/p-94ce23b4.system.js +1 -0
  348. package/pn-market-web-components/{p-cd8ae615.entry.js → p-963f55a9.entry.js} +1 -1
  349. package/pn-market-web-components/{p-fab635c7.entry.js → p-96b7535f.entry.js} +1 -1
  350. package/pn-market-web-components/{p-6b02dc02.system.js → p-97825032.system.js} +1 -1
  351. package/pn-market-web-components/{p-69342caf.system.entry.js → p-984a13ac.system.entry.js} +1 -1
  352. package/pn-market-web-components/p-986ed2b6.system.js +1 -0
  353. package/pn-market-web-components/{p-9685af07.system.entry.js → p-98bafa28.system.entry.js} +1 -1
  354. package/pn-market-web-components/{p-e64e95a8.system.entry.js → p-9a6b3f55.system.entry.js} +1 -1
  355. package/pn-market-web-components/{p-63679401.entry.js → p-9afa3afc.entry.js} +1 -1
  356. package/pn-market-web-components/{p-b6301b42.entry.js → p-9c22f141.entry.js} +1 -1
  357. package/pn-market-web-components/{p-d0e65d70.js → p-9dd478d9.js} +2 -2
  358. package/pn-market-web-components/{p-a8c25cad.system.entry.js → p-9f8c3f1a.system.entry.js} +1 -1
  359. package/pn-market-web-components/{p-e2892448.entry.js → p-a0ac3794.entry.js} +1 -1
  360. package/pn-market-web-components/{p-43b76595.system.entry.js → p-a21e99fa.system.entry.js} +1 -1
  361. package/pn-market-web-components/{p-a53b3be1.entry.js → p-a2b062a1.entry.js} +1 -1
  362. package/pn-market-web-components/{p-0b999957.system.entry.js → p-a69bd189.system.entry.js} +1 -1
  363. package/pn-market-web-components/{p-ed9dd574.entry.js → p-a6cc80f6.entry.js} +1 -1
  364. package/pn-market-web-components/{p-e13a6bab.system.entry.js → p-a8cab386.system.entry.js} +1 -1
  365. package/pn-market-web-components/{p-8eb8e8b2.system.entry.js → p-a93f2e9d.system.entry.js} +1 -1
  366. package/pn-market-web-components/{p-2f4aa8c6.entry.js → p-a9930e79.entry.js} +1 -1
  367. package/pn-market-web-components/{p-595e8f54.system.entry.js → p-aaf31bc1.system.entry.js} +1 -1
  368. package/pn-market-web-components/{p-67f5cd23.entry.js → p-abcde0d8.entry.js} +1 -1
  369. package/pn-market-web-components/{p-1998b5b1.entry.js → p-ae33ef56.entry.js} +1 -1
  370. package/pn-market-web-components/{p-dc91c260.system.entry.js → p-af1af661.system.entry.js} +1 -1
  371. package/pn-market-web-components/{p-742d27ff.entry.js → p-b14e29f1.entry.js} +1 -1
  372. package/pn-market-web-components/{p-c1204325.system.entry.js → p-b29adc65.system.entry.js} +1 -1
  373. package/pn-market-web-components/{p-15fd32d4.entry.js → p-b3871ac2.entry.js} +1 -1
  374. package/pn-market-web-components/{p-390895ec.system.entry.js → p-b8d4a319.system.entry.js} +1 -1
  375. package/pn-market-web-components/{p-03d7d79b.js → p-b96dbfea.js} +1 -1
  376. package/pn-market-web-components/{p-5ac3c73c.system.entry.js → p-ba9c3757.system.entry.js} +1 -1
  377. package/pn-market-web-components/{p-fba12f1d.entry.js → p-bc645d84.entry.js} +1 -1
  378. package/pn-market-web-components/{p-cd8185a6.entry.js → p-bfed70cc.entry.js} +1 -1
  379. package/pn-market-web-components/{p-d6492b8a.entry.js → p-c4ec9a7f.entry.js} +1 -1
  380. package/pn-market-web-components/{p-42ea5bd1.entry.js → p-c5e35374.entry.js} +1 -1
  381. package/pn-market-web-components/p-c98ae4d8.js +1 -0
  382. package/pn-market-web-components/{p-81876fba.entry.js → p-caf88cd1.entry.js} +1 -1
  383. package/pn-market-web-components/{p-f737524e.system.entry.js → p-ce2f007f.system.entry.js} +1 -1
  384. package/pn-market-web-components/{p-2ef8f47b.entry.js → p-d10b8ae0.entry.js} +1 -1
  385. package/pn-market-web-components/{p-6259e4f4.system.js → p-d17fb67d.system.js} +2 -2
  386. package/pn-market-web-components/p-d1eacc9a.entry.js +1 -0
  387. package/pn-market-web-components/p-d1f90b53.system.entry.js +1 -0
  388. package/pn-market-web-components/{p-8cb21818.system.entry.js → p-d28011f2.system.entry.js} +1 -1
  389. package/pn-market-web-components/{p-75e56082.system.entry.js → p-d287cfdf.system.entry.js} +1 -1
  390. package/pn-market-web-components/{p-dda5e084.system.entry.js → p-d435617c.system.entry.js} +1 -1
  391. package/pn-market-web-components/{p-05257edc.system.entry.js → p-d762d2eb.system.entry.js} +1 -1
  392. package/pn-market-web-components/{p-335d95b7.entry.js → p-e0c27b9f.entry.js} +1 -1
  393. package/pn-market-web-components/{p-345648e8.entry.js → p-e15b72a3.entry.js} +1 -1
  394. package/pn-market-web-components/{p-48da3826.system.js → p-e2f1add7.system.js} +1 -1
  395. package/pn-market-web-components/{p-eea5ac80.system.entry.js → p-e356a2cf.system.entry.js} +1 -1
  396. package/pn-market-web-components/{p-7587b935.system.entry.js → p-e96ed1ba.system.entry.js} +1 -1
  397. package/pn-market-web-components/{p-c02ddf82.js → p-e97ac85f.js} +1 -1
  398. package/pn-market-web-components/{p-26869f6d.entry.js → p-e9884417.entry.js} +1 -1
  399. package/pn-market-web-components/{p-9556936e.entry.js → p-ead762ff.entry.js} +1 -1
  400. package/pn-market-web-components/{p-e76bd03c.system.js → p-eb702bcd.system.js} +1 -1
  401. package/pn-market-web-components/{p-eaad04e5.system.entry.js → p-ef602321.system.entry.js} +1 -1
  402. package/pn-market-web-components/{p-ace52b28.entry.js → p-f3dbfe72.entry.js} +1 -1
  403. package/pn-market-web-components/{p-bb93f102.system.entry.js → p-f3f44a2c.system.entry.js} +1 -1
  404. package/pn-market-web-components/{p-fc583d96.entry.js → p-f840e5bb.entry.js} +1 -1
  405. package/pn-market-web-components/{p-88d22b1c.entry.js → p-fa4c8587.entry.js} +1 -1
  406. package/pn-market-web-components/{p-e505ebd8.system.entry.js → p-fa666ea0.system.entry.js} +1 -1
  407. package/pn-market-web-components/{p-11f6fb30.system.js → p-fb84605d.system.js} +1 -1
  408. package/pn-market-web-components/{p-3ee0f67f.system.entry.js → p-fe358a44.system.entry.js} +1 -1
  409. package/pn-market-web-components/{p-eba15c54.entry.js → p-fe8172f7.entry.js} +1 -1
  410. package/pn-market-web-components/{p-94e96fcf.entry.js → p-fec6a09c.entry.js} +1 -1
  411. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  412. package/pn-market-web-components/pn-market-web-components.js +1 -1
  413. package/types/components/animation/pn-play-on-scroll/pn-play-on-scroll.d.ts +2 -0
  414. package/types/components/animation/pn-play-on-scroll/pn-video-overlay/pn-video-overlay.d.ts +1 -0
  415. package/types/components/media/pn-media-block/pn-media-block.d.ts +33 -0
  416. package/types/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.d.ts +1 -1
  417. package/types/components.d.ts +51 -0
  418. package/esm-es5/pn-marketweb-siteheader-store-aba9e86a.js +0 -1
  419. package/pn-market-web-components/p-0412e417.entry.js +0 -1
  420. package/pn-market-web-components/p-30571cc1.system.entry.js +0 -1
  421. package/pn-market-web-components/p-7e6853a7.entry.js +0 -1
  422. package/pn-market-web-components/p-8bafabe5.js +0 -1
  423. package/pn-market-web-components/p-8d5a041f.js +0 -1
  424. package/pn-market-web-components/p-a28fce54.system.js +0 -1
  425. package/pn-market-web-components/p-bdcedfe9.system.js +0 -1
  426. package/pn-market-web-components/p-cc5c611e.system.entry.js +0 -1
  427. package/pn-market-web-components/p-d6893c90.system.entry.js +0 -1
  428. package/pn-market-web-components/p-eb110830.js +0 -1
@@ -7,15 +7,4 @@ pn-play-on-scroll pn-scroll [slot=scroll-affected] video {
7
7
  }
8
8
  pn-play-on-scroll pn-scroll [slot=scroll-affected] video:hover {
9
9
  cursor: pointer;
10
- }
11
- pn-play-on-scroll pn-scroll [slot=scroll-affected] pn-video-overlay {
12
- position: absolute;
13
- bottom: 8px;
14
- left: 8px;
15
- }
16
- @media screen and (min-width: 768px) {
17
- pn-play-on-scroll pn-scroll [slot=scroll-affected] pn-video-overlay {
18
- bottom: 16px;
19
- left: 16px;
20
- }
21
10
  }
@@ -3,6 +3,11 @@ import { h, Host } from '@stencil/core';
3
3
  /*
4
4
  play content when scoll observer sees content as inview
5
5
  */
6
+ const defaultObserverOptions = {
7
+ root: null,
8
+ threshold: 0,
9
+ rootMargin: '0px 0px 0px 0px',
10
+ };
6
11
  const onIntersecting = (video, isManualPaused, togglePaused) => {
7
12
  //what to do when intersecting, eg video.play()
8
13
  if (!isManualPaused) {
@@ -15,11 +20,6 @@ const onNotIntersecting = (video, togglePaused) => {
15
20
  video && video.pause();
16
21
  togglePaused(true);
17
22
  };
18
- const observerOptions = {
19
- root: null,
20
- threshold: 1,
21
- rootMargin: '0px 0px 0px 0px',
22
- };
23
23
  export class PnPlayOnScroll {
24
24
  constructor() {
25
25
  this.testAdditionalParamIntoCallback = true;
@@ -39,6 +39,8 @@ export class PnPlayOnScroll {
39
39
  this.isPaused = paused;
40
40
  };
41
41
  this.videoSrc = '';
42
+ this.observerOptions = defaultObserverOptions;
43
+ this.showOverlay = false;
42
44
  this.videoId = '';
43
45
  this.isManuallyPaused = false;
44
46
  this.isPaused = false;
@@ -54,7 +56,7 @@ export class PnPlayOnScroll {
54
56
  this.video.addEventListener('click', this.handlePlayPauseClicked);
55
57
  }
56
58
  render() {
57
- return (h(Host, null, h("pn-scroll", { intersectFunc: () => onIntersecting(this.video, this.isManuallyPaused, this.togglePaused), notIntersectFunc: () => onNotIntersecting(this.video, this.togglePaused), shouldLoop: true, behaviourClasses: 'some-behaviour-class', observerOptions: observerOptions }, h("div", { slot: "scroll-affected" }, h("video", { muted: true, autoPlay: true, id: `${this.videoId}` }, h("source", { src: this.videoSrc, type: "video/mp4" })), h("pn-video-overlay", { isPaused: this.isManuallyPaused || this.isPaused, onPlayPauseClicked: this.handlePlayPauseClicked })))));
59
+ return (h(Host, null, h("pn-scroll", { intersectFunc: () => onIntersecting(this.video, this.isManuallyPaused, this.togglePaused), notIntersectFunc: () => onNotIntersecting(this.video, this.togglePaused), shouldLoop: true, behaviourClasses: 'some-behaviour-class', observerOptions: this.observerOptions }, h("div", { slot: "scroll-affected" }, h("video", { muted: true, autoPlay: true, id: `${this.videoId}` }, h("source", { src: this.videoSrc, type: "video/mp4" })), h("pn-video-overlay", { showOverlay: this.showOverlay, isPaused: this.isManuallyPaused || this.isPaused, onPlayPauseClicked: this.handlePlayPauseClicked })))));
58
60
  }
59
61
  static get is() { return "pn-play-on-scroll"; }
60
62
  static get originalStyleUrls() {
@@ -86,6 +88,44 @@ export class PnPlayOnScroll {
86
88
  "attribute": "video-src",
87
89
  "reflect": false,
88
90
  "defaultValue": "''"
91
+ },
92
+ "observerOptions": {
93
+ "type": "unknown",
94
+ "mutable": false,
95
+ "complexType": {
96
+ "original": "IntersectionObserverInit",
97
+ "resolved": "IntersectionObserverInit",
98
+ "references": {
99
+ "IntersectionObserverInit": {
100
+ "location": "global"
101
+ }
102
+ }
103
+ },
104
+ "required": false,
105
+ "optional": false,
106
+ "docs": {
107
+ "tags": [],
108
+ "text": ""
109
+ },
110
+ "defaultValue": "defaultObserverOptions"
111
+ },
112
+ "showOverlay": {
113
+ "type": "boolean",
114
+ "mutable": false,
115
+ "complexType": {
116
+ "original": "boolean",
117
+ "resolved": "boolean",
118
+ "references": {}
119
+ },
120
+ "required": false,
121
+ "optional": false,
122
+ "docs": {
123
+ "tags": [],
124
+ "text": ""
125
+ },
126
+ "attribute": "show-overlay",
127
+ "reflect": false,
128
+ "defaultValue": "false"
89
129
  }
90
130
  };
91
131
  }
@@ -1,4 +1,13 @@
1
+ pn-video-overlay.pn-video-overlay--show-overlay {
2
+ position: absolute;
3
+ width: 100%;
4
+ height: 100%;
5
+ background: radial-gradient(circle, rgba(13, 35, 75, 0.68) 7%, rgba(13, 35, 75, 0) 80%);
6
+ }
1
7
  pn-video-overlay button {
8
+ position: absolute;
9
+ bottom: 8px;
10
+ left: 8px;
2
11
  display: flex;
3
12
  align-items: center;
4
13
  justify-content: center;
@@ -9,6 +18,12 @@ pn-video-overlay button {
9
18
  cursor: pointer;
10
19
  background-color: transparent;
11
20
  }
21
+ @media screen and (min-width: 768px) {
22
+ pn-video-overlay button {
23
+ bottom: 16px;
24
+ left: 16px;
25
+ }
26
+ }
12
27
  pn-video-overlay button:hover svg rect {
13
28
  fill: #003d5f;
14
29
  }
@@ -13,6 +13,7 @@ export class PnVideoOverlay {
13
13
  };
14
14
  this.language = 'en';
15
15
  this.isPaused = false;
16
+ this.showOverlay = false;
16
17
  this.i18n = undefined;
17
18
  }
18
19
  componentWillLoad() {
@@ -30,7 +31,7 @@ export class PnVideoOverlay {
30
31
  this.setTranslations();
31
32
  }
32
33
  render() {
33
- return (h(Host, null, h("button", { "aria-label": `${this.i18n.ariaLabel}`, onClick: this.handlePlayPauseClicked }, this.isPaused ? this.renderPlayIcon() : this.renderPauseIcon())));
34
+ return (h(Host, { class: `pn-video-overlay ${this.showOverlay ? 'pn-video-overlay--show-overlay' : ''}` }, h("button", { type: "button", id: "overlayed-button-pause-video", "aria-label": `${this.i18n.ariaLabel}`, onClick: this.handlePlayPauseClicked }, this.isPaused ? this.renderPlayIcon() : this.renderPauseIcon())));
34
35
  }
35
36
  static get is() { return "pn-video-overlay"; }
36
37
  static get originalStyleUrls() {
@@ -80,6 +81,24 @@ export class PnVideoOverlay {
80
81
  "attribute": "is-paused",
81
82
  "reflect": false,
82
83
  "defaultValue": "false"
84
+ },
85
+ "showOverlay": {
86
+ "type": "boolean",
87
+ "mutable": false,
88
+ "complexType": {
89
+ "original": "boolean",
90
+ "resolved": "boolean",
91
+ "references": {}
92
+ },
93
+ "required": false,
94
+ "optional": false,
95
+ "docs": {
96
+ "tags": [],
97
+ "text": ""
98
+ },
99
+ "attribute": "show-overlay",
100
+ "reflect": false,
101
+ "defaultValue": "false"
83
102
  }
84
103
  };
85
104
  }
@@ -108,6 +108,10 @@ pn-teaser-card[data-card-color=blue] > .pn-teaser-card__container {
108
108
  background-color: #EFFBFF;
109
109
  }
110
110
 
111
+ pn-teaser-card[data-card-color=blue50] > .pn-teaser-card__container {
112
+ background-color: #E0F8FF;
113
+ }
114
+
111
115
  pn-teaser-card[data-card-color=blue400] > .pn-teaser-card__container {
112
116
  background-color: #00A0D6;
113
117
  }
@@ -0,0 +1,258 @@
1
+ import readme from "./readme.md";
2
+
3
+ export default {
4
+ title: "media/Media Block",
5
+ parameters: {
6
+ notes: readme
7
+ },
8
+ argTypes: {
9
+ blockHeight: {
10
+ options: ['100svh', '65svh', 'dynamic'],
11
+ control: { type: 'select' },
12
+ },
13
+ imageSrc: { type: 'string' },
14
+ imageSrcSmallScreenFormat: { type: 'string' },
15
+ imageAltText: { type: 'string' },
16
+ videoSrc: { type: 'string' },
17
+ parallaxScroll: { type: 'boolean' },
18
+ showOverlayLayer: { type: 'boolean' },
19
+ customOverlayBackground: { type: 'string' },
20
+ animateOverlayBackground: { type: 'boolean' },
21
+ fixedBackground: { type: 'boolean' },
22
+ scrollSnapBlock: { type: 'boolean' },
23
+ blockHeading: { type: 'string' },
24
+ blockHeadingLevel: {
25
+ options: [2, 3, 4, 5],
26
+ control: { type: 'select' },
27
+ },
28
+ blockPreamble: { control: 'text', type: 'string' },
29
+ blockLinkText: { type: 'string' },
30
+ blockLinkUrl: { type: 'string' },
31
+ }
32
+ };
33
+
34
+ const Template = ({ ...args }) => {
35
+ return `
36
+ <br>
37
+ <div style="background-color: #f5f5f5; border: 5px solid black; height: 400px; display: flex; align-items: center; justify-content: center; margin-top: 240px; margin-bottom: 240px;"><h2>This is another block</h2></div>
38
+ <br>
39
+ <pn-media-block block-height="${args.blockHeight}"
40
+ image-src="${args.imageSrc}"
41
+ image-src-small-screen-format="${args.imageSrcSmallScreenFormat}"
42
+ image-alt-text="${args.imageAltText}"
43
+ parallax-scroll="${args.parallaxScroll}"
44
+ show-overlay-layer="${args.showOverlayLayer}"
45
+ custom-overlay-background="${args.customOverlayBackground}"
46
+ animate-overlay-background="${args.animateOverlayBackground}"
47
+ scroll-snap-block="${args.scrollSnapBlock}"
48
+ fixed-background="${args.fixedBackground}"
49
+ block-heading="${args.blockHeading}"
50
+ block-heading-level="${args.blockHeadingLevel}"
51
+ block-preamble="${args.blockPreamble}">
52
+ </pn-media-block>
53
+ <br>
54
+ <div style="background-color: #f5f5f5; border: 5px solid black; height: 400px; display: flex; align-items: center; justify-content: center; margin-top: 240px; margin-bottom: 240px;"><h2>This is another block</h2></div>
55
+ <br>
56
+ `;
57
+ };
58
+
59
+ export const Default = Template.bind({});
60
+ Default.args = {
61
+ blockHeight : '100svh',
62
+ imageSrc : 'https://i.redd.it/connections-5160x2160-v0-o914e0x2jkfc1.png?s=5c46aceebe337175ad192d5edb0ed9f66fd3e130',
63
+ parallaxScroll : false,
64
+ showOverlayLayer : true,
65
+ scrollSnapBlock : false,
66
+ fixedBackground : false,
67
+ blockHeadingLevel: 2,
68
+ blockHeading: "Maximize your e-commerce potential",
69
+ blockPreamble: "Enhance your customers shopping journey. We have simplified delivery solutions for a global marketplace.",
70
+ };
71
+
72
+ export const FixedBackground = Template.bind({});
73
+ FixedBackground.args = {
74
+ blockHeight : '100svh',
75
+ imageSrc : 'https://i.redd.it/connections-5160x2160-v0-o914e0x2jkfc1.png?s=5c46aceebe337175ad192d5edb0ed9f66fd3e130',
76
+ parallaxScroll : false,
77
+ showOverlayLayer : true,
78
+ scrollSnapBlock : false,
79
+ fixedBackground : true,
80
+ blockHeading: "Maximize your e-commerce potential",
81
+ blockHeadingLevel: 2,
82
+ blockPreamble: "Enhance your customers shopping journey. We have simplified delivery solutions for a global marketplace.",
83
+ };
84
+
85
+ export const CompactHeightBlock = Template.bind({});
86
+ CompactHeightBlock.args = {
87
+ blockHeight : '65svh',
88
+ imageSrc : 'https://i.redd.it/connections-5160x2160-v0-o914e0x2jkfc1.png?s=5c46aceebe337175ad192d5edb0ed9f66fd3e130',
89
+ parallaxScroll : false,
90
+ showOverlayLayer : true,
91
+ scrollSnapBlock : false,
92
+ fixedBackground : true,
93
+ blockHeading: "Maximize your e-commerce potential",
94
+ blockHeadingLevel: 2,
95
+ blockPreamble: "Enhance your customers shopping journey.",
96
+ };
97
+
98
+ export const DynamicHeight = Template.bind({});
99
+ DynamicHeight.args = {
100
+ blockHeight : 'dynamic',
101
+ imageSrc : 'https://i.redd.it/connections-5160x2160-v0-o914e0x2jkfc1.png?s=5c46aceebe337175ad192d5edb0ed9f66fd3e130',
102
+ parallaxScroll : false,
103
+ showOverlayLayer : true,
104
+ scrollSnapBlock : false,
105
+ fixedBackground : false,
106
+ blockHeading: "Maximize your e-commerce potential and go Beyond your limits and go Beyond your limits and go Beyond your limits",
107
+ blockHeadingLevel: 2,
108
+ blockPreamble: "Enhance your customers shopping journey. Enhance your customers shopping journey. Enhance your customers shopping journey. Enhance your customers shopping journey. We have simplified delivery solutions for a global marketplace. And increase the buiseness with accelerating pase.Enhance your customers shopping journey. We have simplified delivery solutions for a global marketplace. And increase the buiseness with accelerating pase. Enhance your customers shopping journey. We have simplified delivery solutions for a global marketplace. And increase the buiseness with accelerating pase. Enhance your customers shopping journey. Enhance your customers shopping journey. Enhance your customers shopping journey. Enhance your customers shopping journey. We have simplified delivery solutions for a global marketplace. And increase the buiseness with accelerating pase.Enhance your customers shopping journey. We have simplified delivery solutions for a global marketplace. And increase the buiseness with accelerating pase. Enhance your customers shopping journey. We have simplified delivery solutions for a global marketplace. And increase the buiseness with accelerating pase.",
109
+ };
110
+
111
+ export const MultipleSrc = Template.bind({});
112
+ MultipleSrc.args = {
113
+ blockHeight : '100svh',
114
+ imageSrc : 'https://i.redd.it/connections-5160x2160-v0-o914e0x2jkfc1.png?s=5c46aceebe337175ad192d5edb0ed9f66fd3e130',
115
+ imageSrcSmallScreenFormat : 'https://picsum.photos/1200/1200',
116
+ imageAltText : 'This is an image',
117
+ parallaxScroll : true,
118
+ showOverlayLayer : true,
119
+ scrollSnapBlock : false,
120
+ fixedBackground : false,
121
+ blockHeading: "Maximize your e-commerce potential",
122
+ blockHeadingLevel: 2,
123
+ blockPreamble: "Enhance your customers shopping journey. We have simplified delivery solutions for a global marketplace.",
124
+ };
125
+
126
+ export const ParallaxBackground = Template.bind({});
127
+ ParallaxBackground.args = {
128
+ blockHeight : '100svh',
129
+ imageSrc : 'https://i.redd.it/connections-5160x2160-v0-o914e0x2jkfc1.png?s=5c46aceebe337175ad192d5edb0ed9f66fd3e130',
130
+ parallaxScroll : true,
131
+ showOverlayLayer : true,
132
+ scrollSnapBlock : false,
133
+ fixedBackground : false,
134
+ blockHeading: "Maximize your e-commerce potential",
135
+ blockHeadingLevel: 2,
136
+ blockPreamble: "Enhance your customers shopping journey. We have simplified delivery solutions for a global marketplace.",
137
+ };
138
+
139
+ export const ScrollSnap = Template.bind({});
140
+ ScrollSnap.args = {
141
+ blockHeight : '100svh',
142
+ imageSrc : 'https://i.redd.it/connections-5160x2160-v0-o914e0x2jkfc1.png?s=5c46aceebe337175ad192d5edb0ed9f66fd3e130',
143
+ parallaxScroll : true,
144
+ showOverlayLayer : true,
145
+ scrollSnapBlock : true,
146
+ fixedBackground : false,
147
+ blockHeading: "Maximize your e-commerce potential",
148
+ blockHeadingLevel: 2,
149
+ blockPreamble: "Enhance your customers shopping journey. We have simplified delivery solutions for a global marketplace.",
150
+ };
151
+
152
+ export const CustomOverlayBackground = Template.bind({});
153
+ CustomOverlayBackground.args = {
154
+ blockHeight : '100svh',
155
+ imageSrc : 'https://i.redd.it/connections-5160x2160-v0-o914e0x2jkfc1.png?s=5c46aceebe337175ad192d5edb0ed9f66fd3e130',
156
+ parallaxScroll : false,
157
+ showOverlayLayer : true,
158
+ customOverlayBackground : "linear-gradient(180deg, #0d234b, transparent)",
159
+ scrollSnapBlock : true,
160
+ fixedBackground : true,
161
+ blockHeading: "Maximize your e-commerce potential",
162
+ blockHeadingLevel: 2,
163
+ blockPreamble: "Enhance your customers shopping journey. We have simplified delivery solutions for a global marketplace.",
164
+ };
165
+
166
+ export const AnimateOverlayBackground = Template.bind({});
167
+ AnimateOverlayBackground.args = {
168
+ blockHeight : '100svh',
169
+ imageSrc : 'https://i.redd.it/connections-5160x2160-v0-o914e0x2jkfc1.png?s=5c46aceebe337175ad192d5edb0ed9f66fd3e130',
170
+ parallaxScroll : false,
171
+ showOverlayLayer : true,
172
+ customOverlayBackground : "linear-gradient(90deg, rgba(131,58,180,0.8253676470588236) 0%, rgba(253,29,29,0.1783088235294118) 50%, rgba(252,176,69,0.727328431372549) 100%)",
173
+ animateOverlayBackground : true,
174
+ scrollSnapBlock : true,
175
+ fixedBackground : true,
176
+ blockHeading: "Maximize your e-commerce potential",
177
+ blockHeadingLevel: 2,
178
+ blockPreamble: "Enhance your customers shopping journey. We have simplified delivery solutions for a global marketplace.",
179
+ };
180
+
181
+ const TemplateWithLink = ({ ...args }) => {
182
+ return `
183
+ <br>
184
+ <div style="background-color: #f5f5f5; border: 5px solid black; height: 400px; display: flex; align-items: center; justify-content: center; margin-top: 240px; margin-bottom: 240px;"><h2>This is another block</h2></div>
185
+ <br>
186
+ <pn-media-block
187
+ block-height="${args.blockHeight}"
188
+ image-src="${args.imageSrc}"
189
+ parallax-scroll="${args.parallaxScroll}"
190
+ show-overlay-layer="${args.showOverlayLayer}"
191
+ scroll-snap-block="${args.scrollSnapBlock}"
192
+ fixed-background="${args.fixedBackground}"
193
+ block-heading="${args.blockHeading}"
194
+ block-heading-level="${args.blockHeadingLevel}"
195
+ block-preamble="${args.blockPreamble}"
196
+ block-link-text="${args.blockLinkText}"
197
+ block-link-url="${args.blockLinkUrl}">
198
+ <div slot="cta-button">
199
+ <pn-button
200
+ appearance="light"
201
+ icon='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="#000" fill-rule="evenodd" d="M19.707 11.293a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414-1.414L16.586 13H8a1 1 0 1 1 0-2h8.586l-4.293-4.293a1 1 0 0 1 1.414-1.414l6 6ZM5.01 13H5a1 1 0 1 1 0-2h.01a1 1 0 1 1 0 2Z" clip-rule="evenodd"/></svg>'
202
+ type="button"
203
+ class="cta-block__button " href=${args.blockLinkUrl}>${args.blockLinkText}</pn-button>
204
+ </div>
205
+ </pn-media-block>
206
+ <br>
207
+ <div style="background-color: #f5f5f5; border: 5px solid black; height: 400px; display: flex; align-items: center; justify-content: center; margin-top: 240px; margin-bottom: 240px;"><h2>This is another block</h2></div>
208
+ <br>
209
+ `;
210
+ };
211
+
212
+ export const WithLink = TemplateWithLink.bind({});
213
+ WithLink.args = {
214
+ blockHeight : '100svh',
215
+ imageSrc : 'https://i.redd.it/connections-5160x2160-v0-o914e0x2jkfc1.png?s=5c46aceebe337175ad192d5edb0ed9f66fd3e130',
216
+ parallaxScroll : false,
217
+ fixedBackground : true,
218
+ showOverlayLayer : true,
219
+ blockHeading: "Maximize your e-commerce potential",
220
+ blockHeadingLevel: 2,
221
+ blockPreamble: "Enhance your customers shopping journey. We have simplified delivery solutions for a global marketplace.",
222
+ blockLinkText: "Request a quote",
223
+ blockLinkUrl: "#google",
224
+ };
225
+
226
+
227
+ const TemplateVideo = ({ ...args }) => {
228
+ return `
229
+ <br>
230
+ <div style="background-color: #f5f5f5; border: 5px solid black; height: 400px; display: flex; align-items: center; justify-content: center; margin-top: 240px; margin-bottom: 240px;"><h2>This is another block</h2></div>
231
+ <br>
232
+ <pn-media-block block-height="${args.blockHeight}"
233
+ video-src="${args.videoSrc}"
234
+ parallax-scroll="${args.parallaxScroll}"
235
+ show-overlay-layer="${args.showOverlayLayer}"
236
+ scroll-snap-block="${args.scrollSnapBlock}"
237
+ fixed-background="${args.fixedBackground}"
238
+ block-heading="${args.blockHeading}"
239
+ block-heading-level="${args.blockHeadingLevel}"
240
+ block-preamble="${args.blockPreamble}">
241
+ </pn-media-block>
242
+ <br>
243
+ <div style="background-color: #f5f5f5; border: 5px solid black; height: 400px; display: flex; align-items: center; justify-content: center; margin-top: 240px; margin-bottom: 240px;"><h2>This is another block</h2></div>
244
+ <br>
245
+ `;
246
+ };
247
+
248
+ export const Video = TemplateVideo.bind({});
249
+ Video.args = {
250
+ blockHeight : '100svh',
251
+ videoSrc : 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4',
252
+ parallaxScroll : false,
253
+ fixedBackground : false,
254
+ showOverlayLayer : true,
255
+ blockHeading: "Maximize your e-commerce potential",
256
+ blockHeadingLevel: 2,
257
+ blockPreamble: "Enhance your customers shopping journey. We have simplified delivery solutions for a global marketplace.",
258
+ };