@postnord/pn-marketweb-components 2.8.9 → 2.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (468) hide show
  1. package/cjs/{index-b3b6d3c1.js → index-02a77089.js} +6 -0
  2. package/cjs/{index-2e97451f.js → index-8f425aa1.js} +1 -1
  3. package/cjs/index.cjs.js +3 -0
  4. package/cjs/loader.cjs.js +2 -2
  5. package/cjs/pn-address-autofill.cjs.entry.js +1 -1
  6. package/cjs/pn-animated-tile.cjs.entry.js +1 -1
  7. package/cjs/pn-app-banner.cjs.entry.js +1 -1
  8. package/cjs/pn-bonus-progressbar-level.cjs.entry.js +1 -1
  9. package/cjs/pn-bonus-progressbar.cjs.entry.js +1 -1
  10. package/cjs/pn-breakpoints.cjs.entry.js +1 -1
  11. package/cjs/pn-chart.cjs.entry.js +1 -1
  12. package/cjs/pn-charts-card.cjs.entry.js +1 -1
  13. package/cjs/pn-choice-button.cjs.entry.js +1 -1
  14. package/cjs/pn-cta-block.cjs.entry.js +1 -1
  15. package/cjs/pn-customernumber-selector-option.cjs.entry.js +1 -1
  16. package/cjs/pn-customernumber-selector.cjs.entry.js +1 -1
  17. package/cjs/pn-date-and-time.cjs.entry.js +1 -1
  18. package/cjs/pn-dropdown-choice-adds-row.cjs.entry.js +1 -1
  19. package/cjs/pn-dropdown-with-multi-input-rows-row.cjs.entry.js +1 -1
  20. package/cjs/pn-dropdown-with-multi-input-rows.cjs.entry.js +1 -1
  21. package/cjs/pn-filter-checkbox.cjs.entry.js +1 -1
  22. package/cjs/pn-find-price-result.cjs.entry.js +3 -3
  23. package/cjs/{pn-find-price-store-dca982f0.js → pn-find-price-store-81c07c6b.js} +1 -1
  24. package/cjs/pn-find-price.cjs.entry.js +3 -3
  25. package/cjs/pn-find-service-and-price-result.cjs.entry.js +3 -3
  26. package/cjs/{pn-find-service-and-price-store-9b8e28fe.js → pn-find-service-and-price-store-3a01c760.js} +1 -1
  27. package/cjs/pn-find-service-and-price.cjs.entry.js +3 -3
  28. package/cjs/pn-hero-block-international.cjs.entry.js +44 -0
  29. package/cjs/pn-language-selector_9.cjs.entry.js +4 -4
  30. package/cjs/pn-line-shape.cjs.entry.js +1 -1
  31. package/cjs/pn-link-list.cjs.entry.js +1 -1
  32. package/cjs/pn-mainnav-link.cjs.entry.js +3 -3
  33. package/cjs/{pn-mainnav-store-03d31f7e.js → pn-mainnav-store-45fe25ce.js} +1 -1
  34. package/cjs/pn-market-web-components.cjs.js +2 -2
  35. package/cjs/pn-marketweb-input.cjs.entry.js +1 -1
  36. package/cjs/pn-marketweb-search.cjs.entry.js +1 -1
  37. package/cjs/pn-marketweb-sitefooter.cjs.entry.js +1 -1
  38. package/cjs/pn-marketweb-siteheader-login-button_5.cjs.entry.js +3 -3
  39. package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +3 -3
  40. package/cjs/{pn-marketweb-siteheader-store-22b4d42d.js → pn-marketweb-siteheader-store-d509d01c.js} +1 -1
  41. package/cjs/pn-marketweb-siteheader.cjs.entry.js +3 -3
  42. package/cjs/pn-media-block.cjs.entry.js +8 -40
  43. package/cjs/pn-multi-formfield.cjs.entry.js +1 -1
  44. package/cjs/pn-multi-row-connected-dropdown-row.cjs.entry.js +3 -1
  45. package/cjs/pn-multi-row-connected-dropdown.cjs.entry.js +1 -1
  46. package/cjs/pn-multiple-input.cjs.entry.js +1 -1
  47. package/cjs/pn-parcel-tracker.cjs.entry.js +1 -1
  48. package/cjs/pn-pex-pricefinder.cjs.entry.js +1 -1
  49. package/cjs/pn-play-on-scroll.cjs.entry.js +4 -3
  50. package/cjs/pn-product-card_3.cjs.entry.js +1 -1
  51. package/cjs/pn-product-pricelist-result.cjs.entry.js +2 -2
  52. package/cjs/pn-product-pricelist.cjs.entry.js +3 -3
  53. package/cjs/pn-product-tile-info_2.cjs.entry.js +1 -1
  54. package/cjs/pn-product-tile.cjs.entry.js +1 -1
  55. package/cjs/pn-profile-modal-customernumber.cjs.entry.js +1 -1
  56. package/cjs/pn-profile-modal-profile.cjs.entry.js +3 -3
  57. package/cjs/{pn-profile-modal-store-6f83ea6b.js → pn-profile-modal-store-527659cb.js} +1 -1
  58. package/cjs/pn-profile-modal-type.cjs.entry.js +3 -3
  59. package/cjs/pn-profile-modal.cjs.entry.js +3 -3
  60. package/cjs/pn-profile-selector-option.cjs.entry.js +1 -1
  61. package/cjs/pn-profile-selector.cjs.entry.js +1 -1
  62. package/cjs/pn-proxio-findprice-result.cjs.entry.js +1 -1
  63. package/cjs/pn-proxio-findprice.cjs.entry.js +2 -2
  64. package/cjs/pn-proxio-pricegroup.cjs.entry.js +1 -1
  65. package/cjs/pn-proxio-productcard_4.cjs.entry.js +1 -1
  66. package/cjs/pn-quick-cta.cjs.entry.js +1 -1
  67. package/cjs/pn-quote-card.cjs.entry.js +1 -1
  68. package/cjs/pn-scroll_2.cjs.entry.js +1 -1
  69. package/cjs/pn-share-item.cjs.entry.js +1 -1
  70. package/cjs/pn-share.cjs.entry.js +1 -1
  71. package/cjs/pn-sidenav-level.cjs.entry.js +3 -3
  72. package/cjs/pn-sidenav-link.cjs.entry.js +3 -3
  73. package/cjs/{pn-sidenav-store-846a26c6.js → pn-sidenav-store-0f543ce6.js} +1 -1
  74. package/cjs/pn-sidenav-togglebutton.cjs.entry.js +3 -3
  75. package/cjs/pn-sidenav.cjs.entry.js +3 -3
  76. package/cjs/pn-site-footer_3.cjs.entry.js +1 -1
  77. package/cjs/pn-spotlight.cjs.entry.js +1 -1
  78. package/cjs/pn-stats-info-data.cjs.entry.js +1 -1
  79. package/cjs/pn-stats-info.cjs.entry.js +1 -1
  80. package/cjs/pn-teaser-card.cjs.entry.js +1 -1
  81. package/cjs/pn-titletag.cjs.entry.js +1 -1
  82. package/cjs/pn-usp-promoter.cjs.entry.js +1 -1
  83. package/collection/assets/logo-international.svg +1 -0
  84. package/collection/collection-manifest.json +1 -0
  85. package/collection/components/animation/pn-play-on-scroll/pn-play-on-scroll.js +3 -2
  86. package/collection/components/animation/pn-play-on-scroll/pn-play-on-scroll.stories.js +6 -86
  87. package/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown-row.js +2 -0
  88. package/collection/components/media/pn-media-block/media-block.stories.js +6 -15
  89. package/collection/components/media/pn-media-block/pn-media-block.css +20 -2
  90. package/collection/components/media/pn-media-block/pn-media-block.js +24 -57
  91. package/collection/components/widgets/pn-hero-block-international/assets/logo-international.svg +1 -0
  92. package/collection/components/widgets/pn-hero-block-international/hero-block-international.stories.js +88 -0
  93. package/collection/components/widgets/pn-hero-block-international/pn-hero-block-international.css +234 -0
  94. package/collection/components/widgets/pn-hero-block-international/pn-hero-block-international.js +156 -0
  95. package/collection/index.js +2 -1
  96. package/components/index.d.ts +1 -0
  97. package/components/index.js +4 -0
  98. package/components/pn-hero-block-international.d.ts +11 -0
  99. package/components/pn-hero-block-international.js +65 -0
  100. package/components/pn-media-block.js +8 -40
  101. package/components/pn-multi-row-connected-dropdown-row2.js +2 -0
  102. package/components/pn-play-on-scroll2.js +3 -2
  103. package/esm/{index-6a2abc18.js → index-493a47cd.js} +1 -1
  104. package/esm/{index-6e611ed9.js → index-a0d3240d.js} +6 -1
  105. package/esm/index.js +2 -0
  106. package/esm/loader.js +3 -3
  107. package/esm/pn-address-autofill.entry.js +1 -1
  108. package/esm/pn-animated-tile.entry.js +1 -1
  109. package/esm/pn-app-banner.entry.js +1 -1
  110. package/esm/pn-bonus-progressbar-level.entry.js +1 -1
  111. package/esm/pn-bonus-progressbar.entry.js +1 -1
  112. package/esm/pn-breakpoints.entry.js +1 -1
  113. package/esm/pn-chart.entry.js +1 -1
  114. package/esm/pn-charts-card.entry.js +1 -1
  115. package/esm/pn-choice-button.entry.js +1 -1
  116. package/esm/pn-cta-block.entry.js +1 -1
  117. package/esm/pn-customernumber-selector-option.entry.js +1 -1
  118. package/esm/pn-customernumber-selector.entry.js +1 -1
  119. package/esm/pn-date-and-time.entry.js +1 -1
  120. package/esm/pn-dropdown-choice-adds-row.entry.js +1 -1
  121. package/esm/pn-dropdown-with-multi-input-rows-row.entry.js +1 -1
  122. package/esm/pn-dropdown-with-multi-input-rows.entry.js +1 -1
  123. package/esm/pn-filter-checkbox.entry.js +1 -1
  124. package/esm/pn-find-price-result.entry.js +3 -3
  125. package/esm/{pn-find-price-store-3577991d.js → pn-find-price-store-82418d39.js} +1 -1
  126. package/esm/pn-find-price.entry.js +3 -3
  127. package/esm/pn-find-service-and-price-result.entry.js +3 -3
  128. package/esm/{pn-find-service-and-price-store-a49d61f3.js → pn-find-service-and-price-store-1d62f045.js} +1 -1
  129. package/esm/pn-find-service-and-price.entry.js +3 -3
  130. package/esm/pn-hero-block-international.entry.js +40 -0
  131. package/esm/pn-language-selector_9.entry.js +4 -4
  132. package/esm/pn-line-shape.entry.js +1 -1
  133. package/esm/pn-link-list.entry.js +1 -1
  134. package/esm/pn-mainnav-link.entry.js +3 -3
  135. package/esm/{pn-mainnav-store-3041a893.js → pn-mainnav-store-8babf7a9.js} +1 -1
  136. package/esm/pn-market-web-components.js +3 -3
  137. package/esm/pn-marketweb-input.entry.js +1 -1
  138. package/esm/pn-marketweb-search.entry.js +1 -1
  139. package/esm/pn-marketweb-sitefooter.entry.js +1 -1
  140. package/esm/pn-marketweb-siteheader-login-button_5.entry.js +3 -3
  141. package/esm/pn-marketweb-siteheader-login-linklist.entry.js +3 -3
  142. package/esm/{pn-marketweb-siteheader-store-f31ee409.js → pn-marketweb-siteheader-store-c64ef3ee.js} +1 -1
  143. package/esm/pn-marketweb-siteheader.entry.js +3 -3
  144. package/esm/pn-media-block.entry.js +8 -40
  145. package/esm/pn-multi-formfield.entry.js +1 -1
  146. package/esm/pn-multi-row-connected-dropdown-row.entry.js +3 -1
  147. package/esm/pn-multi-row-connected-dropdown.entry.js +1 -1
  148. package/esm/pn-multiple-input.entry.js +1 -1
  149. package/esm/pn-parcel-tracker.entry.js +1 -1
  150. package/esm/pn-pex-pricefinder.entry.js +1 -1
  151. package/esm/pn-play-on-scroll.entry.js +4 -3
  152. package/esm/pn-product-card_3.entry.js +1 -1
  153. package/esm/pn-product-pricelist-result.entry.js +2 -2
  154. package/esm/pn-product-pricelist.entry.js +3 -3
  155. package/esm/pn-product-tile-info_2.entry.js +1 -1
  156. package/esm/pn-product-tile.entry.js +1 -1
  157. package/esm/pn-profile-modal-customernumber.entry.js +1 -1
  158. package/esm/pn-profile-modal-profile.entry.js +3 -3
  159. package/esm/{pn-profile-modal-store-17855bd2.js → pn-profile-modal-store-d41bc672.js} +1 -1
  160. package/esm/pn-profile-modal-type.entry.js +3 -3
  161. package/esm/pn-profile-modal.entry.js +3 -3
  162. package/esm/pn-profile-selector-option.entry.js +1 -1
  163. package/esm/pn-profile-selector.entry.js +1 -1
  164. package/esm/pn-proxio-findprice-result.entry.js +1 -1
  165. package/esm/pn-proxio-findprice.entry.js +2 -2
  166. package/esm/pn-proxio-pricegroup.entry.js +1 -1
  167. package/esm/pn-proxio-productcard_4.entry.js +1 -1
  168. package/esm/pn-quick-cta.entry.js +1 -1
  169. package/esm/pn-quote-card.entry.js +1 -1
  170. package/esm/pn-scroll_2.entry.js +1 -1
  171. package/esm/pn-share-item.entry.js +1 -1
  172. package/esm/pn-share.entry.js +1 -1
  173. package/esm/pn-sidenav-level.entry.js +3 -3
  174. package/esm/pn-sidenav-link.entry.js +3 -3
  175. package/esm/{pn-sidenav-store-c4d92fd2.js → pn-sidenav-store-53376add.js} +1 -1
  176. package/esm/pn-sidenav-togglebutton.entry.js +3 -3
  177. package/esm/pn-sidenav.entry.js +3 -3
  178. package/esm/pn-site-footer_3.entry.js +1 -1
  179. package/esm/pn-spotlight.entry.js +1 -1
  180. package/esm/pn-stats-info-data.entry.js +1 -1
  181. package/esm/pn-stats-info.entry.js +1 -1
  182. package/esm/pn-teaser-card.entry.js +1 -1
  183. package/esm/pn-titletag.entry.js +1 -1
  184. package/esm/pn-usp-promoter.entry.js +1 -1
  185. package/esm-es5/{index-6a2abc18.js → index-493a47cd.js} +1 -1
  186. package/esm-es5/index-a0d3240d.js +1 -0
  187. package/esm-es5/index.js +1 -0
  188. package/esm-es5/loader.js +1 -1
  189. package/esm-es5/pn-address-autofill.entry.js +1 -1
  190. package/esm-es5/pn-animated-tile.entry.js +1 -1
  191. package/esm-es5/pn-app-banner.entry.js +1 -1
  192. package/esm-es5/pn-bonus-progressbar-level.entry.js +1 -1
  193. package/esm-es5/pn-bonus-progressbar.entry.js +1 -1
  194. package/esm-es5/pn-breakpoints.entry.js +1 -1
  195. package/esm-es5/pn-chart.entry.js +1 -1
  196. package/esm-es5/pn-charts-card.entry.js +1 -1
  197. package/esm-es5/pn-choice-button.entry.js +1 -1
  198. package/esm-es5/pn-cta-block.entry.js +1 -1
  199. package/esm-es5/pn-customernumber-selector-option.entry.js +1 -1
  200. package/esm-es5/pn-customernumber-selector.entry.js +1 -1
  201. package/esm-es5/pn-date-and-time.entry.js +1 -1
  202. package/esm-es5/pn-dropdown-choice-adds-row.entry.js +1 -1
  203. package/esm-es5/pn-dropdown-with-multi-input-rows-row.entry.js +1 -1
  204. package/esm-es5/pn-dropdown-with-multi-input-rows.entry.js +1 -1
  205. package/esm-es5/pn-filter-checkbox.entry.js +1 -1
  206. package/esm-es5/pn-find-price-result.entry.js +1 -1
  207. package/esm-es5/{pn-find-price-store-3577991d.js → pn-find-price-store-82418d39.js} +1 -1
  208. package/esm-es5/pn-find-price.entry.js +1 -1
  209. package/esm-es5/pn-find-service-and-price-result.entry.js +1 -1
  210. package/esm-es5/{pn-find-service-and-price-store-a49d61f3.js → pn-find-service-and-price-store-1d62f045.js} +1 -1
  211. package/esm-es5/pn-find-service-and-price.entry.js +1 -1
  212. package/esm-es5/pn-hero-block-international.entry.js +1 -0
  213. package/esm-es5/pn-language-selector_9.entry.js +1 -1
  214. package/esm-es5/pn-line-shape.entry.js +1 -1
  215. package/esm-es5/pn-link-list.entry.js +1 -1
  216. package/esm-es5/pn-mainnav-link.entry.js +1 -1
  217. package/esm-es5/{pn-mainnav-store-3041a893.js → pn-mainnav-store-8babf7a9.js} +1 -1
  218. package/esm-es5/pn-market-web-components.js +1 -1
  219. package/esm-es5/pn-marketweb-input.entry.js +1 -1
  220. package/esm-es5/pn-marketweb-search.entry.js +1 -1
  221. package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -1
  222. package/esm-es5/pn-marketweb-siteheader-login-button_5.entry.js +1 -1
  223. package/esm-es5/pn-marketweb-siteheader-login-linklist.entry.js +1 -1
  224. package/esm-es5/pn-marketweb-siteheader-store-c64ef3ee.js +1 -0
  225. package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
  226. package/esm-es5/pn-media-block.entry.js +1 -1
  227. package/esm-es5/pn-multi-formfield.entry.js +1 -1
  228. package/esm-es5/pn-multi-row-connected-dropdown-row.entry.js +1 -1
  229. package/esm-es5/pn-multi-row-connected-dropdown.entry.js +1 -1
  230. package/esm-es5/pn-multiple-input.entry.js +1 -1
  231. package/esm-es5/pn-parcel-tracker.entry.js +1 -1
  232. package/esm-es5/pn-pex-pricefinder.entry.js +1 -1
  233. package/esm-es5/pn-play-on-scroll.entry.js +1 -1
  234. package/esm-es5/pn-product-card_3.entry.js +1 -1
  235. package/esm-es5/pn-product-pricelist-result.entry.js +1 -1
  236. package/esm-es5/pn-product-pricelist.entry.js +1 -1
  237. package/esm-es5/pn-product-tile-info_2.entry.js +1 -1
  238. package/esm-es5/pn-product-tile.entry.js +1 -1
  239. package/esm-es5/pn-profile-modal-customernumber.entry.js +1 -1
  240. package/esm-es5/pn-profile-modal-profile.entry.js +1 -1
  241. package/esm-es5/{pn-profile-modal-store-17855bd2.js → pn-profile-modal-store-d41bc672.js} +1 -1
  242. package/esm-es5/pn-profile-modal-type.entry.js +1 -1
  243. package/esm-es5/pn-profile-modal.entry.js +1 -1
  244. package/esm-es5/pn-profile-selector-option.entry.js +1 -1
  245. package/esm-es5/pn-profile-selector.entry.js +1 -1
  246. package/esm-es5/pn-proxio-findprice-result.entry.js +1 -1
  247. package/esm-es5/pn-proxio-findprice.entry.js +1 -1
  248. package/esm-es5/pn-proxio-pricegroup.entry.js +1 -1
  249. package/esm-es5/pn-proxio-productcard_4.entry.js +1 -1
  250. package/esm-es5/pn-quick-cta.entry.js +1 -1
  251. package/esm-es5/pn-quote-card.entry.js +1 -1
  252. package/esm-es5/pn-scroll_2.entry.js +1 -1
  253. package/esm-es5/pn-share-item.entry.js +1 -1
  254. package/esm-es5/pn-share.entry.js +1 -1
  255. package/esm-es5/pn-sidenav-level.entry.js +1 -1
  256. package/esm-es5/pn-sidenav-link.entry.js +1 -1
  257. package/esm-es5/{pn-sidenav-store-c4d92fd2.js → pn-sidenav-store-53376add.js} +1 -1
  258. package/esm-es5/pn-sidenav-togglebutton.entry.js +1 -1
  259. package/esm-es5/pn-sidenav.entry.js +1 -1
  260. package/esm-es5/pn-site-footer_3.entry.js +1 -1
  261. package/esm-es5/pn-spotlight.entry.js +1 -1
  262. package/esm-es5/pn-stats-info-data.entry.js +1 -1
  263. package/esm-es5/pn-stats-info.entry.js +1 -1
  264. package/esm-es5/pn-teaser-card.entry.js +1 -1
  265. package/esm-es5/pn-titletag.entry.js +1 -1
  266. package/esm-es5/pn-usp-promoter.entry.js +1 -1
  267. package/package.json +3 -3
  268. package/pn-market-web-components/index.esm.js +1 -0
  269. package/pn-market-web-components/{p-bda66a3c.js → p-00732a77.js} +1 -1
  270. package/pn-market-web-components/p-01ae001f.system.js +1 -0
  271. package/pn-market-web-components/{p-376b860e.system.entry.js → p-0602b063.system.entry.js} +1 -1
  272. package/pn-market-web-components/{p-24c54547.entry.js → p-076ed92d.entry.js} +1 -1
  273. package/pn-market-web-components/{p-fa4c3121.system.entry.js → p-08b41945.system.entry.js} +1 -1
  274. package/pn-market-web-components/{p-1c43dc8d.system.entry.js → p-09cf5891.system.entry.js} +1 -1
  275. package/pn-market-web-components/{p-6c8fbcda.entry.js → p-0c46179e.entry.js} +1 -1
  276. package/pn-market-web-components/p-0c50ded4.entry.js +1 -0
  277. package/pn-market-web-components/{p-9508d1b3.system.entry.js → p-0cdbb7a7.system.entry.js} +1 -1
  278. package/pn-market-web-components/{p-a990da8b.system.js → p-1295a661.system.js} +1 -1
  279. package/pn-market-web-components/{p-7a2d4f1a.system.entry.js → p-148adccc.system.entry.js} +1 -1
  280. package/pn-market-web-components/{p-8ab74cc4.entry.js → p-1567bc28.entry.js} +1 -1
  281. package/pn-market-web-components/{p-5d253c27.system.entry.js → p-17c4e4e0.system.entry.js} +1 -1
  282. package/pn-market-web-components/p-17dc52e5.entry.js +1 -0
  283. package/pn-market-web-components/{p-726f1ba5.entry.js → p-18e9aa4b.entry.js} +1 -1
  284. package/pn-market-web-components/{p-412669a4.system.entry.js → p-1c0c5a98.system.entry.js} +1 -1
  285. package/pn-market-web-components/{p-819494d3.entry.js → p-1e367982.entry.js} +1 -1
  286. package/pn-market-web-components/{p-fe877a0f.entry.js → p-1f36b761.entry.js} +1 -1
  287. package/pn-market-web-components/{p-dc25c859.system.js → p-21b69581.system.js} +1 -1
  288. package/pn-market-web-components/p-21f0fcb3.entry.js +1 -0
  289. package/pn-market-web-components/{p-81b5430c.system.entry.js → p-25383f0a.system.entry.js} +1 -1
  290. package/pn-market-web-components/{p-9dc2163c.entry.js → p-26fcb229.entry.js} +1 -1
  291. package/pn-market-web-components/{p-6ca7eb0a.system.entry.js → p-29b0f0d5.system.entry.js} +1 -1
  292. package/pn-market-web-components/p-2f5ffae7.js +1 -0
  293. package/pn-market-web-components/{p-7542a277.entry.js → p-2f9da449.entry.js} +1 -1
  294. package/pn-market-web-components/{p-4e7a470b.entry.js → p-305edca2.entry.js} +1 -1
  295. package/pn-market-web-components/p-34fde26b.entry.js +1 -0
  296. package/pn-market-web-components/{p-d9d3078b.system.entry.js → p-37b3cf36.system.entry.js} +1 -1
  297. package/pn-market-web-components/{p-2b374219.system.entry.js → p-3822863e.system.entry.js} +1 -1
  298. package/pn-market-web-components/{p-404703bc.system.entry.js → p-38c7d8d6.system.entry.js} +1 -1
  299. package/pn-market-web-components/{p-346c3772.system.entry.js → p-395105d0.system.entry.js} +1 -1
  300. package/pn-market-web-components/p-39bfb523.system.entry.js +1 -0
  301. package/pn-market-web-components/{p-ee42154f.system.entry.js → p-3a6f96bc.system.entry.js} +1 -1
  302. package/pn-market-web-components/p-3afcafee.system.js +2 -0
  303. package/pn-market-web-components/{p-2ed45e96.system.entry.js → p-3b2d5e43.system.entry.js} +1 -1
  304. package/pn-market-web-components/{p-739f296c.system.entry.js → p-3f5d2535.system.entry.js} +1 -1
  305. package/pn-market-web-components/{p-5cf6111c.system.entry.js → p-41d983e9.system.entry.js} +1 -1
  306. package/pn-market-web-components/{p-71a0acac.js → p-41df2624.js} +1 -1
  307. package/pn-market-web-components/{p-4c38b1b5.system.entry.js → p-4335124d.system.entry.js} +1 -1
  308. package/pn-market-web-components/{p-d15bca21.system.entry.js → p-466fc9e7.system.entry.js} +1 -1
  309. package/pn-market-web-components/{p-79459743.system.js → p-46abde43.system.js} +1 -1
  310. package/pn-market-web-components/{p-bea9522f.entry.js → p-48b4f6e3.entry.js} +1 -1
  311. package/pn-market-web-components/{p-64df1c4d.entry.js → p-49cb83ed.entry.js} +1 -1
  312. package/pn-market-web-components/p-4bcf66cb.entry.js +1 -0
  313. package/pn-market-web-components/{p-38b16c1a.entry.js → p-4c68654b.entry.js} +1 -1
  314. package/pn-market-web-components/p-4c7305d9.entry.js +1 -0
  315. package/pn-market-web-components/{p-732d5bf1.entry.js → p-4d2fe840.entry.js} +1 -1
  316. package/pn-market-web-components/{p-16bb93bf.system.entry.js → p-4f094023.system.entry.js} +1 -1
  317. package/pn-market-web-components/{p-95189aa2.system.entry.js → p-4f0f4af1.system.entry.js} +1 -1
  318. package/pn-market-web-components/{p-93e4245f.entry.js → p-530114f7.entry.js} +1 -1
  319. package/pn-market-web-components/{p-3e6db900.system.entry.js → p-534d6231.system.entry.js} +1 -1
  320. package/pn-market-web-components/{p-78ee80d4.system.entry.js → p-55ac6162.system.entry.js} +1 -1
  321. package/pn-market-web-components/{p-a1294675.system.entry.js → p-5a5a7f35.system.entry.js} +1 -1
  322. package/pn-market-web-components/p-5b174388.system.js +1 -0
  323. package/pn-market-web-components/{p-e197f20b.entry.js → p-5c50a8d4.entry.js} +1 -1
  324. package/pn-market-web-components/{p-4fe46903.system.entry.js → p-5ce111c1.system.entry.js} +1 -1
  325. package/pn-market-web-components/{p-d9292bd0.system.entry.js → p-5dcf78c2.system.entry.js} +1 -1
  326. package/pn-market-web-components/{p-8b471f23.entry.js → p-5f4a6e6f.entry.js} +1 -1
  327. package/pn-market-web-components/p-5fd13ebd.entry.js +1 -0
  328. package/pn-market-web-components/{p-aa42b255.system.entry.js → p-60b7bbae.system.entry.js} +1 -1
  329. package/pn-market-web-components/{p-46088d8c.entry.js → p-61fe58e5.entry.js} +1 -1
  330. package/pn-market-web-components/{p-5b535af5.entry.js → p-627745be.entry.js} +1 -1
  331. package/pn-market-web-components/p-6bcc9823.js +1 -0
  332. package/pn-market-web-components/{p-51fc7a64.system.entry.js → p-6caeecd6.system.entry.js} +1 -1
  333. package/pn-market-web-components/{p-03593c2c.system.entry.js → p-6dc0d4d5.system.entry.js} +1 -1
  334. package/pn-market-web-components/{p-991eef67.entry.js → p-6e5a6fd5.entry.js} +1 -1
  335. package/pn-market-web-components/{p-0ddc464c.entry.js → p-6ec34924.entry.js} +1 -1
  336. package/pn-market-web-components/{p-e56093da.entry.js → p-6ec7ebdd.entry.js} +1 -1
  337. package/pn-market-web-components/{p-4ee4767f.system.entry.js → p-6ed3d5b5.system.entry.js} +1 -1
  338. package/pn-market-web-components/{p-9b9b9b56.entry.js → p-6edab851.entry.js} +1 -1
  339. package/pn-market-web-components/p-6f853c29.system.js +1 -0
  340. package/pn-market-web-components/{p-c94586e5.system.entry.js → p-705fa518.system.entry.js} +1 -1
  341. package/pn-market-web-components/{p-7cee798b.system.entry.js → p-71efc3d1.system.entry.js} +1 -1
  342. package/pn-market-web-components/{p-a19b539f.system.entry.js → p-7aef368a.system.entry.js} +1 -1
  343. package/pn-market-web-components/{p-1aa2008f.entry.js → p-7b12e564.entry.js} +1 -1
  344. package/pn-market-web-components/{p-3f96b45f.entry.js → p-7d57133a.entry.js} +1 -1
  345. package/pn-market-web-components/{p-a9e89ca3.entry.js → p-7d80dfb5.entry.js} +1 -1
  346. package/pn-market-web-components/{p-a69a0544.entry.js → p-80af2512.entry.js} +1 -1
  347. package/pn-market-web-components/p-80ba399a.entry.js +1 -0
  348. package/pn-market-web-components/{p-ef137f0d.js → p-80da3dee.js} +1 -1
  349. package/pn-market-web-components/{p-e251b0c2.system.entry.js → p-8328a20d.system.entry.js} +1 -1
  350. package/pn-market-web-components/{p-e33a8c98.entry.js → p-84bbf052.entry.js} +1 -1
  351. package/pn-market-web-components/{p-1cfc9d10.system.entry.js → p-88e076d2.system.entry.js} +1 -1
  352. package/pn-market-web-components/p-897ced52.entry.js +1 -0
  353. package/pn-market-web-components/{p-b18ce512.entry.js → p-89dffcab.entry.js} +1 -1
  354. package/pn-market-web-components/p-8a88ce80.entry.js +1 -0
  355. package/pn-market-web-components/{p-be43040b.entry.js → p-8b2d9d1c.entry.js} +1 -1
  356. package/pn-market-web-components/p-8bcdd94a.entry.js +1 -0
  357. package/pn-market-web-components/{p-20f09ba2.system.js → p-8f2fe9e8.system.js} +1 -1
  358. package/pn-market-web-components/{p-66775d88.system.entry.js → p-8f96be01.system.entry.js} +1 -1
  359. package/pn-market-web-components/{p-b1b0f5e9.system.entry.js → p-90062de9.system.entry.js} +1 -1
  360. package/pn-market-web-components/{p-03f5acf3.system.js → p-92b0b65b.system.js} +1 -1
  361. package/pn-market-web-components/{p-3076020a.system.entry.js → p-96e67510.system.entry.js} +1 -1
  362. package/pn-market-web-components/{p-16f566e4.system.entry.js → p-9717acbc.system.entry.js} +1 -1
  363. package/pn-market-web-components/p-9aa8662d.entry.js +1 -0
  364. package/pn-market-web-components/{p-bc22cb7b.entry.js → p-9eab4b70.entry.js} +1 -1
  365. package/pn-market-web-components/{p-ef910604.system.entry.js → p-9eeb8c4d.system.entry.js} +1 -1
  366. package/pn-market-web-components/{p-a1c5431f.entry.js → p-9fa40b1c.entry.js} +1 -1
  367. package/pn-market-web-components/{p-6bdbfdf2.system.entry.js → p-a224b772.system.entry.js} +1 -1
  368. package/pn-market-web-components/p-a2ed2bf6.entry.js +1 -0
  369. package/pn-market-web-components/{p-6b98aefa.system.entry.js → p-a3b9c1ea.system.entry.js} +1 -1
  370. package/pn-market-web-components/{p-8a8fe9b8.system.entry.js → p-a4d5f6f3.system.entry.js} +1 -1
  371. package/pn-market-web-components/{p-54dfc74e.entry.js → p-a601780b.entry.js} +1 -1
  372. package/pn-market-web-components/{p-65e9ed4b.system.entry.js → p-a78eb53d.system.entry.js} +1 -1
  373. package/pn-market-web-components/{p-07c04e4a.entry.js → p-aa11858a.entry.js} +1 -1
  374. package/pn-market-web-components/p-aadb8ed1.system.entry.js +1 -0
  375. package/pn-market-web-components/p-ab1ccd8a.js +1 -0
  376. package/pn-market-web-components/{p-2ea64615.system.entry.js → p-ab473ac8.system.entry.js} +1 -1
  377. package/pn-market-web-components/{p-5a74b363.system.entry.js → p-ac561b5f.system.entry.js} +1 -1
  378. package/pn-market-web-components/{p-1d84acae.entry.js → p-ad4d4140.entry.js} +1 -1
  379. package/pn-market-web-components/{p-b7cdb982.system.entry.js → p-ad7e8dd8.system.entry.js} +1 -1
  380. package/pn-market-web-components/{p-e11eb99c.system.entry.js → p-b07b59e2.system.entry.js} +1 -1
  381. package/pn-market-web-components/p-b26f27f4.js +1 -0
  382. package/pn-market-web-components/{p-a179066e.system.js → p-b37b5e36.system.js} +1 -1
  383. package/pn-market-web-components/p-bc27295a.system.entry.js +1 -0
  384. package/pn-market-web-components/{p-21c6ed35.entry.js → p-bf6689c7.entry.js} +1 -1
  385. package/pn-market-web-components/{p-70f338c2.system.entry.js → p-c07a23df.system.entry.js} +1 -1
  386. package/pn-market-web-components/{p-c6171d29.entry.js → p-c1eb4135.entry.js} +1 -1
  387. package/pn-market-web-components/{p-8b189558.entry.js → p-c3781a59.entry.js} +1 -1
  388. package/pn-market-web-components/{p-6368e239.system.entry.js → p-c3b85be6.system.entry.js} +1 -1
  389. package/pn-market-web-components/p-c4cd4903.entry.js +1 -0
  390. package/pn-market-web-components/{p-a544b937.entry.js → p-c58a42f2.entry.js} +1 -1
  391. package/pn-market-web-components/{p-d8b3f505.entry.js → p-c6d425d4.entry.js} +1 -1
  392. package/pn-market-web-components/{p-326d13ca.system.entry.js → p-c80c9158.system.entry.js} +1 -1
  393. package/pn-market-web-components/{p-bf85df01.system.entry.js → p-c82923a7.system.entry.js} +1 -1
  394. package/pn-market-web-components/p-c8b9f2e6.entry.js +1 -0
  395. package/pn-market-web-components/{p-962292bf.entry.js → p-c97909e0.entry.js} +1 -1
  396. package/pn-market-web-components/{p-72526890.entry.js → p-cbb83e27.entry.js} +1 -1
  397. package/pn-market-web-components/p-cf665abb.js +2 -0
  398. package/pn-market-web-components/{p-17e04222.entry.js → p-cfe9c909.entry.js} +1 -1
  399. package/pn-market-web-components/{p-7b7ca449.system.entry.js → p-d26c007c.system.entry.js} +1 -1
  400. package/pn-market-web-components/{p-9b758fa4.system.entry.js → p-db914a4b.system.entry.js} +1 -1
  401. package/pn-market-web-components/p-dc136523.entry.js +1 -0
  402. package/pn-market-web-components/{p-f9e862db.entry.js → p-df1142cc.entry.js} +1 -1
  403. package/pn-market-web-components/{p-a5eaa1b6.system.entry.js → p-df33a4a6.system.entry.js} +1 -1
  404. package/pn-market-web-components/{p-ceddef4d.entry.js → p-dfffbb3d.entry.js} +1 -1
  405. package/pn-market-web-components/{p-fc27fb49.entry.js → p-e0a868a6.entry.js} +1 -1
  406. package/pn-market-web-components/{p-9f49664e.system.entry.js → p-e1d6f2b2.system.entry.js} +1 -1
  407. package/pn-market-web-components/{p-bfee099c.system.entry.js → p-e281e7dc.system.entry.js} +1 -1
  408. package/pn-market-web-components/{p-e0cb8b29.entry.js → p-e4549959.entry.js} +1 -1
  409. package/pn-market-web-components/{p-ad1f9612.system.entry.js → p-e4d68a16.system.entry.js} +1 -1
  410. package/pn-market-web-components/{p-97281fd6.entry.js → p-e57c16c9.entry.js} +1 -1
  411. package/pn-market-web-components/p-ec116d47.system.entry.js +1 -0
  412. package/pn-market-web-components/{p-894178a2.system.entry.js → p-ed1aa2f7.system.entry.js} +1 -1
  413. package/pn-market-web-components/p-ed762a04.entry.js +1 -0
  414. package/pn-market-web-components/p-eda2b0f9.entry.js +1 -0
  415. package/pn-market-web-components/{p-e372332f.system.entry.js → p-ee7de540.system.entry.js} +1 -1
  416. package/pn-market-web-components/{p-93e3b8cc.entry.js → p-ee7e1e28.entry.js} +1 -1
  417. package/pn-market-web-components/{p-7613b490.system.entry.js → p-ef420f01.system.entry.js} +1 -1
  418. package/pn-market-web-components/{p-7902d31a.system.entry.js → p-effe3f0b.system.entry.js} +1 -1
  419. package/pn-market-web-components/{p-745eef3e.entry.js → p-f11a88f5.entry.js} +1 -1
  420. package/pn-market-web-components/{p-d3d78acd.system.entry.js → p-f1d6421f.system.entry.js} +1 -1
  421. package/pn-market-web-components/{p-02dba6d3.system.entry.js → p-f2a0ac91.system.entry.js} +1 -1
  422. package/pn-market-web-components/{p-7480e40c.entry.js → p-f301e959.entry.js} +1 -1
  423. package/pn-market-web-components/{p-73ac15b9.system.entry.js → p-f3a3836b.system.entry.js} +1 -1
  424. package/pn-market-web-components/{p-f91eb6a9.system.entry.js → p-f56072ab.system.entry.js} +1 -1
  425. package/pn-market-web-components/{p-abef3453.entry.js → p-f5bacc7a.entry.js} +1 -1
  426. package/pn-market-web-components/{p-2c29062d.entry.js → p-f94b2f7c.entry.js} +1 -1
  427. package/pn-market-web-components/{p-1d088d9c.entry.js → p-fbd8d16a.entry.js} +1 -1
  428. package/pn-market-web-components/{p-97a9ce4f.system.entry.js → p-fc83cc7b.system.entry.js} +1 -1
  429. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  430. package/pn-market-web-components/pn-market-web-components.js +1 -1
  431. package/types/components/animation/pn-play-on-scroll/pn-play-on-scroll.d.ts +1 -0
  432. package/types/components/media/pn-media-block/pn-media-block.d.ts +1 -1
  433. package/types/components/widgets/pn-hero-block-international/pn-hero-block-international.d.ts +14 -0
  434. package/types/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.d.ts +1 -1
  435. package/types/components.d.ts +27 -2
  436. package/umd/pn-marketweb-init.js +1 -1
  437. package/umd/pn-marketweb-salesforce.js +1 -1
  438. package/esm-es5/index-6e611ed9.js +0 -1
  439. package/esm-es5/pn-marketweb-siteheader-store-f31ee409.js +0 -1
  440. package/pn-market-web-components/p-03981c36.entry.js +0 -1
  441. package/pn-market-web-components/p-0cb0317e.system.js +0 -1
  442. package/pn-market-web-components/p-1caef6e7.js +0 -1
  443. package/pn-market-web-components/p-1cd40ab8.js +0 -1
  444. package/pn-market-web-components/p-250b0083.entry.js +0 -1
  445. package/pn-market-web-components/p-326d57d0.entry.js +0 -1
  446. package/pn-market-web-components/p-3542525e.system.entry.js +0 -1
  447. package/pn-market-web-components/p-3b5df6ae.entry.js +0 -1
  448. package/pn-market-web-components/p-40fc893a.js +0 -1
  449. package/pn-market-web-components/p-4c4f7ab0.entry.js +0 -1
  450. package/pn-market-web-components/p-4f38aeea.entry.js +0 -1
  451. package/pn-market-web-components/p-50ea2036.system.js +0 -1
  452. package/pn-market-web-components/p-5a55d3ef.js +0 -2
  453. package/pn-market-web-components/p-6131fdb9.entry.js +0 -1
  454. package/pn-market-web-components/p-613c6df4.entry.js +0 -1
  455. package/pn-market-web-components/p-626a68dc.system.js +0 -2
  456. package/pn-market-web-components/p-68e68770.entry.js +0 -1
  457. package/pn-market-web-components/p-76563549.entry.js +0 -1
  458. package/pn-market-web-components/p-8c9da166.entry.js +0 -1
  459. package/pn-market-web-components/p-90dafa04.entry.js +0 -1
  460. package/pn-market-web-components/p-978a7be6.system.entry.js +0 -1
  461. package/pn-market-web-components/p-9a6ee73f.js +0 -1
  462. package/pn-market-web-components/p-a57848a9.system.entry.js +0 -1
  463. package/pn-market-web-components/p-ac275a13.entry.js +0 -1
  464. package/pn-market-web-components/p-c475abe8.system.js +0 -1
  465. package/pn-market-web-components/p-cdf31352.entry.js +0 -1
  466. package/pn-market-web-components/p-e28fcf9c.entry.js +0 -1
  467. package/pn-market-web-components/p-f550b051.entry.js +0 -1
  468. package/pn-market-web-components/p-ffb197d9.entry.js +0 -1
@@ -10,93 +10,13 @@ export default {
10
10
 
11
11
  const PlayOnScrollTemplate = args => {
12
12
  return `
13
- <br>
14
- <br>
15
- <br>
16
- <br>
17
- <br>
18
- <br>
19
- <br>
20
- <br>
21
- <br>
22
- <br>
23
- <br>
24
- <br>
25
- <br>
26
- <br>
27
- <br>
28
- <br>
29
- <br>
30
- <br>
31
- <br>
32
- <br>
33
- <br>
34
- <br>
35
- <br>
36
- <br>
37
- <br>
38
- <br>
39
- <br>
40
- <br>
41
- <br>
42
- <br>
43
- <br>
44
- <br>
45
- <br>
46
- <br>
47
- <br>
48
- <br>
49
- <br>
50
- <br>
51
- <br>
52
- <br>
53
- <br>
54
- <br>
55
- <br>
56
- <br>
57
- <br>
58
- <br>
59
- <br>
60
- <br>
61
- <br>
62
- <br>
63
- <br>
64
- <br>
65
- <br>
66
- <br>
67
- <br>
68
- <br>
69
- <br>
70
- <br>
71
- <br>
72
- <br>
73
- <br>
74
- <br>
75
- <br>
76
- <br>
77
- <br>
78
- <br>
79
- <br>
80
- <br>
81
- <br>
82
- <br>
83
- <br>
84
- <pn-play-on-scroll></pn-play-on-scroll>
85
- <br>
86
- <br>
87
- <br>
88
- <br>
89
- <br>
90
- <br>
91
- <br>
92
- <br>
93
- <br>
94
- <br>
95
- <br>
96
- <br>
97
- <br>
13
+ <div style="height: 140rem;"></div>
14
+ <pn-play-on-scroll video-src="${args.videoSrc}"></pn-play-on-scroll>
15
+ <div style="height: 140rem;"></div>
98
16
  `;
99
17
  };
100
18
 
101
19
  export const PlayOnScroll = PlayOnScrollTemplate.bind({});
102
- PlayOnScroll.args = {};
20
+ PlayOnScroll.args = {
21
+ videoSrc: "https://com-inte.postnord.com/contentassets/1d0fd381dbde41f69f64df946b3e1e34/postnord-jakaa-turussa-kaikki-paketit-lahibokseihin-paastottomasti-sahkolla.mp4"
22
+ };
@@ -162,8 +162,10 @@ export class PnMultiRowConnectedDropdownRow {
162
162
  const emmitValues = debounce(this.emittRowValues.bind(this), 500);
163
163
  this.pnInputField.addEventListener('keyup', this.handleInput.bind(this));
164
164
  this.pnInputField.addEventListener('change', this.handleInput.bind(this));
165
+ this.pnInputField.addEventListener('input', this.handleInput.bind(this));
165
166
  this.pnInputField.addEventListener('keyup', emmitValues);
166
167
  this.pnInputField.addEventListener('change', emmitValues);
168
+ this.pnInputField.addEventListener('input', emmitValues);
167
169
  if (this.allowMultipleDates) {
168
170
  this.pnShowDateRangeFiledButton.addEventListener('click', this.showDateRangeRow.bind(this));
169
171
  this.pnStartDate.addEventListener('dateselection', this.HandleRangeDatePickers.bind(this));
@@ -14,7 +14,6 @@ export default {
14
14
  imageSrcSmallScreenFormat: { type: 'string' },
15
15
  imageAltText: { type: 'string' },
16
16
  videoSrc: { type: 'string' },
17
- parallaxScroll: { type: 'boolean' },
18
17
  showOverlayLayer: { type: 'boolean' },
19
18
  customOverlayBackground: { type: 'string' },
20
19
  animateOverlayBackground: { type: 'boolean' },
@@ -40,12 +39,12 @@ const Template = ({ ...args }) => {
40
39
  image-src="${args.imageSrc}"
41
40
  image-src-small-screen-format="${args.imageSrcSmallScreenFormat}"
42
41
  image-alt-text="${args.imageAltText}"
43
- parallax-scroll="${args.parallaxScroll}"
44
42
  show-overlay-layer="${args.showOverlayLayer}"
45
43
  custom-overlay-background="${args.customOverlayBackground}"
46
44
  animate-overlay-background="${args.animateOverlayBackground}"
47
45
  scroll-snap-block="${args.scrollSnapBlock}"
48
46
  fixed-background="${args.fixedBackground}"
47
+ margin-bottom="${args.marginBottom}"
49
48
  block-heading="${args.blockHeading}"
50
49
  block-heading-level="${args.blockHeadingLevel}"
51
50
  block-preamble="${args.blockPreamble}">
@@ -60,10 +59,10 @@ export const Default = Template.bind({});
60
59
  Default.args = {
61
60
  blockHeight : '100svh',
62
61
  imageSrc : 'https://i.redd.it/connections-5160x2160-v0-o914e0x2jkfc1.png?s=5c46aceebe337175ad192d5edb0ed9f66fd3e130',
63
- parallaxScroll : false,
64
62
  showOverlayLayer : true,
65
63
  scrollSnapBlock : false,
66
64
  fixedBackground : false,
65
+ marginBottom : false,
67
66
  blockHeadingLevel: 2,
68
67
  blockHeading: "Maximize your e-commerce potential",
69
68
  blockPreamble: "Enhance your customers shopping journey. We have simplified delivery solutions for a global marketplace.",
@@ -73,7 +72,6 @@ export const FixedBackground = Template.bind({});
73
72
  FixedBackground.args = {
74
73
  blockHeight : '100svh',
75
74
  imageSrc : 'https://i.redd.it/connections-5160x2160-v0-o914e0x2jkfc1.png?s=5c46aceebe337175ad192d5edb0ed9f66fd3e130',
76
- parallaxScroll : false,
77
75
  showOverlayLayer : true,
78
76
  scrollSnapBlock : false,
79
77
  fixedBackground : true,
@@ -86,7 +84,6 @@ export const CompactHeightBlock = Template.bind({});
86
84
  CompactHeightBlock.args = {
87
85
  blockHeight : '65svh',
88
86
  imageSrc : 'https://i.redd.it/connections-5160x2160-v0-o914e0x2jkfc1.png?s=5c46aceebe337175ad192d5edb0ed9f66fd3e130',
89
- parallaxScroll : false,
90
87
  showOverlayLayer : true,
91
88
  scrollSnapBlock : false,
92
89
  fixedBackground : true,
@@ -99,7 +96,6 @@ export const DynamicHeight = Template.bind({});
99
96
  DynamicHeight.args = {
100
97
  blockHeight : 'dynamic',
101
98
  imageSrc : 'https://i.redd.it/connections-5160x2160-v0-o914e0x2jkfc1.png?s=5c46aceebe337175ad192d5edb0ed9f66fd3e130',
102
- parallaxScroll : false,
103
99
  showOverlayLayer : true,
104
100
  scrollSnapBlock : false,
105
101
  fixedBackground : false,
@@ -114,7 +110,6 @@ MultipleSrc.args = {
114
110
  imageSrc : 'https://i.redd.it/connections-5160x2160-v0-o914e0x2jkfc1.png?s=5c46aceebe337175ad192d5edb0ed9f66fd3e130',
115
111
  imageSrcSmallScreenFormat : 'https://picsum.photos/1200/1200',
116
112
  imageAltText : 'This is an image',
117
- parallaxScroll : true,
118
113
  showOverlayLayer : true,
119
114
  scrollSnapBlock : false,
120
115
  fixedBackground : false,
@@ -127,7 +122,6 @@ export const ParallaxBackground = Template.bind({});
127
122
  ParallaxBackground.args = {
128
123
  blockHeight : '100svh',
129
124
  imageSrc : 'https://i.redd.it/connections-5160x2160-v0-o914e0x2jkfc1.png?s=5c46aceebe337175ad192d5edb0ed9f66fd3e130',
130
- parallaxScroll : true,
131
125
  showOverlayLayer : true,
132
126
  scrollSnapBlock : false,
133
127
  fixedBackground : false,
@@ -140,7 +134,6 @@ export const ScrollSnap = Template.bind({});
140
134
  ScrollSnap.args = {
141
135
  blockHeight : '100svh',
142
136
  imageSrc : 'https://i.redd.it/connections-5160x2160-v0-o914e0x2jkfc1.png?s=5c46aceebe337175ad192d5edb0ed9f66fd3e130',
143
- parallaxScroll : true,
144
137
  showOverlayLayer : true,
145
138
  scrollSnapBlock : true,
146
139
  fixedBackground : false,
@@ -153,7 +146,6 @@ export const CustomOverlayBackground = Template.bind({});
153
146
  CustomOverlayBackground.args = {
154
147
  blockHeight : '100svh',
155
148
  imageSrc : 'https://i.redd.it/connections-5160x2160-v0-o914e0x2jkfc1.png?s=5c46aceebe337175ad192d5edb0ed9f66fd3e130',
156
- parallaxScroll : false,
157
149
  showOverlayLayer : true,
158
150
  customOverlayBackground : "linear-gradient(180deg, #0d234b, transparent)",
159
151
  scrollSnapBlock : true,
@@ -167,7 +159,6 @@ export const AnimateOverlayBackground = Template.bind({});
167
159
  AnimateOverlayBackground.args = {
168
160
  blockHeight : '100svh',
169
161
  imageSrc : 'https://i.redd.it/connections-5160x2160-v0-o914e0x2jkfc1.png?s=5c46aceebe337175ad192d5edb0ed9f66fd3e130',
170
- parallaxScroll : false,
171
162
  showOverlayLayer : true,
172
163
  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
164
  animateOverlayBackground : true,
@@ -186,7 +177,6 @@ const TemplateWithLink = ({ ...args }) => {
186
177
  <pn-media-block
187
178
  block-height="${args.blockHeight}"
188
179
  image-src="${args.imageSrc}"
189
- parallax-scroll="${args.parallaxScroll}"
190
180
  show-overlay-layer="${args.showOverlayLayer}"
191
181
  scroll-snap-block="${args.scrollSnapBlock}"
192
182
  fixed-background="${args.fixedBackground}"
@@ -211,7 +201,6 @@ export const WithLink = TemplateWithLink.bind({});
211
201
  WithLink.args = {
212
202
  blockHeight : '100svh',
213
203
  imageSrc : 'https://i.redd.it/connections-5160x2160-v0-o914e0x2jkfc1.png?s=5c46aceebe337175ad192d5edb0ed9f66fd3e130',
214
- parallaxScroll : false,
215
204
  fixedBackground : true,
216
205
  showOverlayLayer : true,
217
206
  blockHeading: "Maximize your e-commerce potential",
@@ -224,12 +213,13 @@ WithLink.args = {
224
213
 
225
214
  const TemplateVideo = ({ ...args }) => {
226
215
  return `
216
+ <br>
217
+ <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>
227
218
  <br>
228
219
  <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>
229
220
  <br>
230
221
  <pn-media-block block-height="${args.blockHeight}"
231
222
  video-src="${args.videoSrc}"
232
- parallax-scroll="${args.parallaxScroll}"
233
223
  show-overlay-layer="${args.showOverlayLayer}"
234
224
  scroll-snap-block="${args.scrollSnapBlock}"
235
225
  fixed-background="${args.fixedBackground}"
@@ -240,6 +230,8 @@ const TemplateVideo = ({ ...args }) => {
240
230
  <br>
241
231
  <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>
242
232
  <br>
233
+ <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>
234
+ <br>
243
235
  `;
244
236
  };
245
237
 
@@ -247,7 +239,6 @@ export const Video = TemplateVideo.bind({});
247
239
  Video.args = {
248
240
  blockHeight : '100svh',
249
241
  videoSrc : 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4',
250
- parallaxScroll : false,
251
242
  fixedBackground : false,
252
243
  showOverlayLayer : true,
253
244
  blockHeading: "Maximize your e-commerce potential",
@@ -169,7 +169,7 @@ pn-media-block .media-block .media-block__content-container .media-block__cta-li
169
169
  margin-top: 3rem;
170
170
  }
171
171
  pn-media-block .media-block--height-100svh {
172
- height: 100vh;
172
+ min-height: 100vh;
173
173
  }
174
174
  @supports (height: 100svh) {
175
175
  pn-media-block .media-block--height-100svh {
@@ -201,7 +201,7 @@ pn-media-block .media-block--height-100svh .media-block__block-container .media-
201
201
  }
202
202
  }
203
203
  pn-media-block .media-block--height-65svh {
204
- height: 65svh;
204
+ min-height: 65svh;
205
205
  overflow: auto;
206
206
  }
207
207
  pn-media-block .media-block--height-65svh .media-block__block-container {
@@ -280,4 +280,22 @@ pn-media-block .media-block--animate-overlay-background .media-block__overlay-fi
280
280
  100% {
281
281
  background-position: 100% 100%;
282
282
  }
283
+ }
284
+ pn-media-block .media-block--margin-bottom {
285
+ margin-bottom: 3.2rem;
286
+ }
287
+ @media screen and (min-width: 768px) {
288
+ pn-media-block .media-block--margin-bottom {
289
+ margin-bottom: 4rem;
290
+ }
291
+ }
292
+ @media screen and (min-width: 992px) {
293
+ pn-media-block .media-block--margin-bottom {
294
+ margin-bottom: 5.6rem;
295
+ }
296
+ }
297
+ @media screen and (min-width: 1200px) {
298
+ pn-media-block .media-block--margin-bottom {
299
+ margin-bottom: 7.2rem;
300
+ }
283
301
  }
@@ -1,22 +1,15 @@
1
1
  import { h } from "@stencil/core";
2
- function userPrefersReducedMotion() {
3
- return window.matchMedia('(prefers-reduced-motion: reduce)').matches;
4
- }
5
2
  export class PnmediaBlock {
6
3
  constructor() {
7
4
  this.handleScroll = () => {
8
- if (!this.parallaxScroll)
9
- return;
10
5
  const mediaBlockElement = this.block.firstElementChild;
11
6
  const scrollTrigger = this.block.querySelector('#scroll-trigger');
12
7
  const videoPauseButton = this.block.querySelector('#overlayed-button-pause-video');
13
8
  const scrollTriggerTop = scrollTrigger.getBoundingClientRect().top;
14
9
  const mediaBlockElementHeight = mediaBlockElement.offsetHeight;
15
10
  const scrollPosition = mediaBlockElementHeight - scrollTriggerTop;
16
- const parallaxSpeedContent = 0.3;
17
11
  const parallaxSpeedMedia = 0.2;
18
12
  const mediaContainer = this.block.querySelector('.media-block__media-container');
19
- const content = this.block.querySelector('.media-block__content-container');
20
13
  if (mediaContainer != null) {
21
14
  // Move the image or video at a slower speed
22
15
  mediaContainer.style.transform = `translate(0, ${scrollPosition * (0.1 + parallaxSpeedMedia)}px)`;
@@ -25,25 +18,18 @@ export class PnmediaBlock {
25
18
  videoPauseButton.style.transform = `translate(0, ${-scrollPosition * (0.3 + parallaxSpeedMedia)}px)`;
26
19
  }
27
20
  }
28
- if (content) {
29
- // Move the content at a faster speed
30
- content.style.transform = `translate(0, ${scrollPosition * (0.5 + parallaxSpeedContent)}px)`;
31
- // Change the opacity based on the scroll position
32
- const opacity = Math.max(0, 1 - scrollPosition / 600);
33
- content.style.opacity = `${opacity}`;
34
- }
35
21
  };
36
22
  this.blockHeight = null;
37
23
  this.imageSrc = null;
38
24
  this.imageSrcSmallScreenFormat = undefined;
39
25
  this.imageAltText = "";
40
26
  this.videoSrc = null;
41
- this.parallaxScroll = false;
42
27
  this.showOverlayLayer = false;
43
28
  this.customOverlayBackground = null;
44
29
  this.animateOverlayBackground = false;
45
30
  this.scrollSnapBlock = false;
46
31
  this.fixedBackground = false;
32
+ this.marginBottom = false;
47
33
  this.blockHeading = null;
48
34
  this.blockHeadingLevel = 2;
49
35
  this.blockPreamble = null;
@@ -78,31 +64,12 @@ export class PnmediaBlock {
78
64
  this.hasButtonSlot = !!this.block.querySelector('[slot="cta-button"]');
79
65
  }
80
66
  async componentDidLoad() {
81
- if (userPrefersReducedMotion()) {
82
- // Handle the case where the user prefers reduced motion.
83
- // For example, you might disable parallax scrolling:
84
- this.parallaxScroll = false;
85
- }
86
67
  const scrollTrigger = document.getElementById('scroll-trigger');
87
68
  this.calculatedBlockHeight = this.block.offsetHeight;
88
69
  const overlayElement = this.block.querySelector('#mediaBlockOverlay');
89
70
  if (this.customOverlayBackground != null || this.customOverlayBackground != "undefined") {
90
71
  overlayElement.style.background = `${this.customOverlayBackground}`;
91
72
  }
92
- if (this.parallaxScroll) {
93
- this.observerScroll = new IntersectionObserver(entries => {
94
- entries.forEach(entry => {
95
- if (entry.isIntersecting) {
96
- window.addEventListener('scroll', this.handleScroll);
97
- }
98
- else {
99
- window.removeEventListener('scroll', this.handleScroll);
100
- }
101
- });
102
- }, { rootMargin: `0px 0px` });
103
- this.observerScroll.observe(scrollTrigger);
104
- }
105
- ;
106
73
  if (this.scrollSnapBlock) {
107
74
  this.observerSnap = new IntersectionObserver(entries => {
108
75
  entries.forEach(entry => {
@@ -138,7 +105,7 @@ export class PnmediaBlock {
138
105
  window.removeEventListener('scroll', this.handleScroll);
139
106
  }
140
107
  render() {
141
- const { showOverlayLayer, fixedBackground, blockHeight, scrollSnapBlock, blockHeadingLevelChecked, hasButtonSlot, hasVideo, hasImage, animateOverlayBackground } = this;
108
+ const { showOverlayLayer, fixedBackground, blockHeight, scrollSnapBlock, blockHeadingLevelChecked, hasButtonSlot, hasVideo, hasImage, animateOverlayBackground, marginBottom } = this;
142
109
  const HeadingTag = `h${blockHeadingLevelChecked !== null && blockHeadingLevelChecked !== void 0 ? blockHeadingLevelChecked : 2}`;
143
110
  const isVideo = hasVideo;
144
111
  const isImage = hasImage;
@@ -149,12 +116,12 @@ export class PnmediaBlock {
149
116
  animateOverlayBackground ? `media-block--animate-overlay-background` : '',
150
117
  isVideo ? 'media-block--video' : '',
151
118
  scrollSnapBlock ? 'scroll-snap' : 'no-scroll-snap',
152
- fixedBackground ? 'media-block--fixed-background' : ''
119
+ fixedBackground ? 'media-block--fixed-background' : '',
120
+ marginBottom ? 'media-block--margin-bottom' : ''
153
121
  ].join(' ');
154
122
  const pnPlayOnScrollObserverOptions = {
155
- root: this.blockHeight === "100svh" ? document : null,
156
- threshold: 1,
157
- rootMargin: '220px 0px 220px 0px',
123
+ root: this.blockHeight === "100svh" ? this.block : null,
124
+ threshold: [0, 0.5, 1], // Callback will be executed when 0%, 50%, and 100% of the target is visible
158
125
  };
159
126
  return (h("div", { class: classes }, h("div", { class: "media-block__block-container" }, h("div", { class: "media-block__media-container" }, isVideo ? (h("pn-play-on-scroll", { "show-overlay": this.showOverlayLayer, observerOptions: pnPlayOnScrollObserverOptions, "video-src": this.videoSrc })) : isImage ? (h("picture", null, h("source", { media: "(min-width: 1400px)", srcSet: this.imageSrc }), h("source", { media: "(min-width: 1224px)", srcSet: this.imageSrc }), h("source", { media: "(min-width: 1140px)", srcSet: this.imageSrc }), h("source", { media: "(min-width: 1023px)", srcSet: this.imageSrcSmallScreenFormat && this.imageSrcSmallScreenFormat !== "undefined" ? this.imageSrcSmallScreenFormat : this.imageSrc }), h("source", { media: "(min-width: 768px)", srcSet: this.imageSrcSmallScreenFormat && this.imageSrcSmallScreenFormat !== "undefined" ? this.imageSrcSmallScreenFormat : this.imageSrc }), h("source", { media: "(min-width: 500px)", srcSet: this.imageSrcSmallScreenFormat && this.imageSrcSmallScreenFormat !== "undefined" ? this.imageSrcSmallScreenFormat : this.imageSrc }), h("img", { src: this.imageSrcSmallScreenFormat !== "undefined" ? this.imageSrcSmallScreenFormat : this.imageSrc, alt: this.imageAltText !== "undefined" ? this.imageAltText : "", role: this.imageAltText !== "undefined" ? "img" : "presentation", "aria-hidden": this.imageAltText !== "undefined" ? "false" : "true" }))) : null), !isVideo && (h("div", { class: "media-block__overlay-filter", id: "mediaBlockOverlay" })), (this.blockHeading || this.blockPreamble) && (h("div", { class: "media-block__content-container" }, this.blockHeading && h(HeadingTag, { class: "media-block__block-heading" }, this.blockHeading), this.blockPreamble && h("p", { class: "media-block__preamble" }, this.blockPreamble), hasButtonSlot &&
160
127
  h("div", { class: "media-block__cta-link" }, h("slot", { name: "cta-button" }))))), h("div", { id: "scroll-trigger" })));
@@ -262,24 +229,6 @@ export class PnmediaBlock {
262
229
  "reflect": false,
263
230
  "defaultValue": "null"
264
231
  },
265
- "parallaxScroll": {
266
- "type": "boolean",
267
- "mutable": false,
268
- "complexType": {
269
- "original": "boolean",
270
- "resolved": "boolean",
271
- "references": {}
272
- },
273
- "required": false,
274
- "optional": false,
275
- "docs": {
276
- "tags": [],
277
- "text": ""
278
- },
279
- "attribute": "parallax-scroll",
280
- "reflect": false,
281
- "defaultValue": "false"
282
- },
283
232
  "showOverlayLayer": {
284
233
  "type": "boolean",
285
234
  "mutable": false,
@@ -370,6 +319,24 @@ export class PnmediaBlock {
370
319
  "reflect": false,
371
320
  "defaultValue": "false"
372
321
  },
322
+ "marginBottom": {
323
+ "type": "boolean",
324
+ "mutable": false,
325
+ "complexType": {
326
+ "original": "boolean",
327
+ "resolved": "boolean",
328
+ "references": {}
329
+ },
330
+ "required": false,
331
+ "optional": false,
332
+ "docs": {
333
+ "tags": [],
334
+ "text": ""
335
+ },
336
+ "attribute": "margin-bottom",
337
+ "reflect": false,
338
+ "defaultValue": "false"
339
+ },
373
340
  "blockHeading": {
374
341
  "type": "string",
375
342
  "mutable": false,
@@ -0,0 +1 @@
1
+ <?xml version="1.0" encoding="UTF-8"?><svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 919 336"><defs><style>.cls-1{fill:#083a67;}.cls-1,.cls-2,.cls-3{stroke-width:0px;}.cls-2{fill:#00a0d6;}.cls-3{fill:#fff;}</style></defs><circle class="cls-1" cx="168" cy="168" r="168"/><circle class="cls-1" cx="519" cy="168" r="168"/><rect class="cls-1" x="510" width="409" height="336"/><path class="cls-3" d="M235.51,155.55c0,11.19-9.19,15.88-17.84,15.88s-17.46-4.58-17.46-15.4,9.02-15.88,17.84-15.88c8.6,0,17.46,4.63,17.46,15.4ZM223.86,155.88c0-3.68-2.42-6.18-6.02-6.18s-6.07,2.5-6.07,6.18c0,3.46,2.48,6.02,6.07,6.02s6.02-2.56,6.02-6.02ZM76.33,155.88c0,8.53-5.91,15.56-15.1,15.56-5.64,0-8.27-2.77-8.27-2.77v10.34h-10.96v-37.89h10.96v2.88s2.85-3.84,9.08-3.84c9.13,0,14.29,6.98,14.29,15.72ZM64.73,155.88c0-3.68-2.42-6.18-6.02-6.18s-6.07,2.5-6.07,6.18c0,3.46,2.47,6.02,6.07,6.02s6.02-2.56,6.02-6.02ZM249.08,156.35c0-4.47,2.74-5.86,6.4-5.86,2.25,0,3.71.53,3.71.53l.27-10.02s-.7-.32-2.58-.32c-6.12,0-7.79,3.84-7.79,3.84v-3.41h-10.96v29.42h10.96v-14.18h0ZM294,132v38.53h-10.96v-2.88s-2.85,3.84-9.08,3.84c-9.13,0-14.29-6.98-14.29-15.72s5.91-15.56,15.1-15.56c5.64,0,8.27,2.77,8.27,2.77v-8.85l10.96-2.13ZM283.36,155.77c0-3.47-2.47-6.02-6.07-6.02s-6.02,2.56-6.02,6.02c0,3.67,2.42,6.18,6.02,6.18s6.07-2.51,6.07-6.18ZM186.65,140.15c-6.39,0-8.71,3.84-8.71,3.84v-2.88h-10.96v29.42h10.96v-15.08c0-3.73,1.4-5.44,4.78-5.44s3.87,2.77,3.87,6.29v14.23h11.07v-18.07c0-8.1-3.92-12.31-11.01-12.31ZM155.91,134.5h-10.96v36.03h10.96v-20.25h5.16l5-9.17h-10.16v-6.61h0ZM131.36,151.77c-3.55-.53-5.11-.53-5.11-1.92,0-1.17,1.45-1.65,4.3-1.65,4.83,0,9.08,1.6,9.08,1.6l1.93-8.26s-4.67-1.33-10.91-1.33c-10.48,0-15.96,4-15.96,10.39,0,4.96,2.96,7.89,11.61,9,3.65.48,5,.69,5,2.03s-1.45,1.7-3.98,1.7c-5.48,0-10.64-2.29-10.64-2.29l-2.2,8.53s5.16,1.81,11.88,1.81c11.28,0,16.49-3.95,16.49-10.39,0-5.11-2.79-7.88-11.49-9.22ZM113.46,155.55c0,11.19-9.19,15.88-17.84,15.88s-17.46-4.58-17.46-15.4,9.03-15.88,17.84-15.88c8.6,0,17.46,4.63,17.46,15.4ZM101.8,155.88c0-3.68-2.42-6.18-6.02-6.18s-6.07,2.5-6.07,6.18c0,3.46,2.47,6.02,6.07,6.02s6.02-2.56,6.02-6.02Z"/><path class="cls-2" d="M167,197.67v-15.01h2.71v15.01h-2.71ZM182.27,190.65c0-2.41-1.92-4.08-4.24-4.08-1.46,0-2.6.59-3.29,1.7v-1.41h-2.32v10.81h2.47v-6.2c0-1.52,1.04-2.58,2.51-2.58s2.38,1.02,2.38,2.54v6.24h2.47v-7.02ZM190.27,186.85h-2.8v-3.62h-2.47v10.99c0,2.01,1.43,3.44,3.46,3.44h1.81v-2.29h-1.32c-.9,0-1.48-.55-1.48-1.48v-4.94h1.67l1.14-2.1ZM202.2,193.05c0-.15.04-.71.04-.97,0-3.31-2.25-5.56-5.49-5.56s-5.56,2.56-5.56,5.74,2.49,5.74,5.73,5.74c2.12,0,3.86-.84,4.98-2.58l-2.05-1.1c-.6.88-1.52,1.48-2.93,1.48-1.68,0-3-1.04-3.33-2.74h8.6M193.66,191.12c.37-1.48,1.52-2.47,3.07-2.47,1.7,0,2.78.95,3.09,2.47h-6.16ZM209.69,186.86c-1.61,0-2.62.84-3.09,1.83v-1.83h-2.32v10.81h2.47v-5.25c0-1.68,1.1-3,2.71-3h1.08v-2.56h-.86ZM222.24,190.65c0-2.41-1.92-4.08-4.23-4.08-1.46,0-2.6.59-3.29,1.7v-1.41h-2.32v10.81h2.47v-6.2c0-1.52,1.04-2.58,2.51-2.58s2.38,1.02,2.38,2.54v6.24h2.47v-7.02ZM233.3,188.38c-.75-1.13-2.14-1.81-3.7-1.81-3.15,0-5.34,2.47-5.34,5.67s2.18,5.67,5.34,5.67c1.56,0,2.95-.68,3.7-1.83v1.59h2.32v-10.81h-2.32v1.52ZM233.3,192.24c0,1.87-1.32,3.35-3.29,3.35s-3.27-1.48-3.27-3.35,1.3-3.38,3.27-3.38,3.29,1.5,3.29,3.38ZM243.61,186.85h-2.8v-3.62h-2.47v10.99c0,2.01,1.43,3.44,3.46,3.44h1.81v-2.29h-1.32c-.91,0-1.48-.55-1.48-1.48v-4.94h1.67l1.14-2.1ZM245.45,183.63c0,.84.68,1.52,1.54,1.52s1.57-.68,1.57-1.52-.71-1.5-1.57-1.5-1.54.69-1.54,1.5ZM248.23,197.67v-10.81h-2.47v10.81h2.47ZM250.35,192.26c0,3.18,2.49,5.74,5.78,5.74s5.76-2.56,5.76-5.74-2.49-5.74-5.76-5.74-5.78,2.54-5.78,5.74ZM259.41,192.26c0,1.88-1.39,3.38-3.29,3.38s-3.29-1.5-3.29-3.38,1.37-3.38,3.29-3.38,3.29,1.48,3.29,3.38ZM273.82,190.65c0-2.41-1.92-4.08-4.23-4.08-1.46,0-2.6.59-3.29,1.7v-1.41h-2.32v10.81h2.47v-6.2c0-1.52,1.04-2.58,2.52-2.58s2.38,1.02,2.38,2.54v6.24h2.47v-7.02ZM284.88,188.38c-.75-1.13-2.14-1.81-3.7-1.81-3.15,0-5.34,2.47-5.34,5.67s2.18,5.67,5.34,5.67c1.57,0,2.95-.68,3.7-1.83v1.59h2.32v-10.81h-2.32v1.52ZM284.88,192.24c0,1.87-1.32,3.35-3.29,3.35s-3.26-1.48-3.26-3.35,1.3-3.38,3.26-3.38,3.29,1.5,3.29,3.38ZM294,195.44h-.46c-.77,0-1.15-.4-1.15-1.17v-12.27h-2.47v12.69c0,1.81,1.23,2.98,3.13,2.98h.95v-2.23Z"/></svg>
@@ -0,0 +1,88 @@
1
+ import readme from './readme.md';
2
+
3
+ export default {
4
+ title: 'widgets/Hero Block International',
5
+ parameters: {
6
+ notes: readme,
7
+ },
8
+ argTypes: {
9
+ heading: { control: 'text' },
10
+ subHeading: { control: 'text' },
11
+ preamble: { control: 'text' },
12
+ animateLogo: { control: 'boolean' },
13
+ showSideLoader: { control: 'boolean' },
14
+ centeredLayout: { control: 'boolean' },
15
+ ctaLabel: { control: 'text' },
16
+ ctaUrl: { control: 'text' },
17
+ },
18
+ };
19
+
20
+ const Template = ({ ...args }) => {
21
+ return `
22
+ <pn-hero-block-international heading="${args.heading}" sub-heading="${args.subHeading}" preamble="${args.preamble}" animate-logo="${args.animateLogo}" show-side-loader="${args.showSideLoader}" centered-layout="${args.centeredLayout}">
23
+ <pn-button
24
+ 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>'
25
+ slot="hero-international-cta" href="${args.ctaUrl}">${args.ctaLabel}</pn-button>
26
+ </pn-hero-block-international>
27
+ `;
28
+ };
29
+
30
+ export const Default = Template.bind({});
31
+ Default.args = {
32
+ heading: 'Nordic Deliveries',
33
+ subHeading: '100% coverage of the Nordic market',
34
+ preamble: 'No one can beat us on our home turf.',
35
+ ctaLabel: 'Request a quote',
36
+ ctaUrl: 'https://www.google.com/',
37
+ animateLogo: false,
38
+ showSideLoader: false,
39
+ centeredLayout: false
40
+ };
41
+
42
+ export const WithAnimatedLogo = Template.bind({});
43
+ WithAnimatedLogo.args = {
44
+ heading: 'Nordic Deliveries',
45
+ subHeading: '100% coverage of the Nordic market',
46
+ preamble: 'No one can beat us on our home turf.',
47
+ ctaLabel: 'Request a quote',
48
+ ctaUrl: 'https://www.google.com/',
49
+ animateLogo: true,
50
+ showSideLoader: false,
51
+ centeredLayout: false
52
+ };
53
+
54
+ export const WithSideloader = Template.bind({});
55
+ WithSideloader.args = {
56
+ heading: 'Nordic Deliveries',
57
+ subHeading: '100% coverage of the Nordic market',
58
+ preamble: 'No one can beat us on our home turf.',
59
+ ctaLabel: 'Request a quote',
60
+ ctaUrl: 'https://www.google.com/',
61
+ animateLogo: false,
62
+ showSideLoader: true,
63
+ centeredLayout: false
64
+ };
65
+
66
+ export const WithAnimatedLogoAndSideloader = Template.bind({});
67
+ WithAnimatedLogoAndSideloader.args = {
68
+ heading: 'Nordic Deliveries',
69
+ subHeading: '100% coverage of the Nordic market',
70
+ preamble: 'No one can beat us on our home turf.',
71
+ ctaLabel: 'Request a quote',
72
+ ctaUrl: 'https://www.google.com/',
73
+ animateLogo: true,
74
+ showSideLoader: true,
75
+ centeredLayout: false
76
+ };
77
+
78
+ export const CenteredLayout = Template.bind({});
79
+ CenteredLayout.args = {
80
+ heading: 'Nordic Deliveries',
81
+ subHeading: '100% coverage of the Nordic market',
82
+ preamble: 'No one can beat us on our home turf.',
83
+ ctaLabel: 'Request a quote',
84
+ ctaUrl: 'https://www.google.com/',
85
+ animateLogo: false,
86
+ showSideLoader: false,
87
+ centeredLayout: true,
88
+ };