@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.
- package/cjs/{index-d6f2e2f9.js → index-6d18c5e9.js} +16 -8
- package/cjs/{index-7ebb05d7.js → index-820d92a8.js} +1 -1
- package/cjs/loader.cjs.js +2 -2
- package/cjs/pn-address-autofill.cjs.entry.js +1 -1
- package/cjs/pn-animated-tile.cjs.entry.js +1 -1
- package/cjs/pn-app-banner.cjs.entry.js +1 -1
- package/cjs/pn-bonus-progressbar-level.cjs.entry.js +1 -1
- package/cjs/pn-bonus-progressbar.cjs.entry.js +1 -1
- package/cjs/pn-breakpoints.cjs.entry.js +1 -1
- package/cjs/pn-chart.cjs.entry.js +1 -1
- package/cjs/pn-charts-card.cjs.entry.js +1 -1
- package/cjs/pn-choice-button.cjs.entry.js +1 -1
- package/cjs/pn-cta-block.cjs.entry.js +1 -1
- package/cjs/pn-customernumber-selector-option.cjs.entry.js +1 -1
- package/cjs/pn-customernumber-selector.cjs.entry.js +1 -1
- package/cjs/pn-date-and-time.cjs.entry.js +1 -1
- package/cjs/pn-dropdown-choice-adds-row.cjs.entry.js +1 -1
- package/cjs/pn-dropdown-with-multi-input-rows-row.cjs.entry.js +1 -1
- package/cjs/pn-dropdown-with-multi-input-rows.cjs.entry.js +1 -1
- package/cjs/pn-filter-checkbox.cjs.entry.js +1 -1
- package/cjs/pn-find-price-result.cjs.entry.js +3 -3
- package/cjs/{pn-find-price-store-1f005e0d.js → pn-find-price-store-e05a9145.js} +1 -1
- package/cjs/pn-find-price.cjs.entry.js +3 -3
- package/cjs/pn-find-service-and-price-result.cjs.entry.js +3 -3
- package/cjs/{pn-find-service-and-price-store-0b544d1e.js → pn-find-service-and-price-store-3ffe0634.js} +1 -1
- package/cjs/pn-find-service-and-price.cjs.entry.js +3 -3
- package/cjs/pn-language-selector_9.cjs.entry.js +4 -4
- package/cjs/pn-line-shape.cjs.entry.js +1 -1
- package/cjs/pn-link-list.cjs.entry.js +1 -1
- package/cjs/pn-mainnav-link.cjs.entry.js +3 -3
- package/cjs/{pn-mainnav-store-a31c1d1e.js → pn-mainnav-store-96e66f69.js} +1 -1
- package/cjs/pn-market-web-components.cjs.js +2 -2
- package/cjs/pn-marketweb-input.cjs.entry.js +1 -1
- package/cjs/pn-marketweb-search.cjs.entry.js +1 -1
- package/cjs/pn-marketweb-sitefooter.cjs.entry.js +1 -1
- package/cjs/pn-marketweb-siteheader-login-button_5.cjs.entry.js +3 -3
- package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +3 -3
- package/cjs/{pn-marketweb-siteheader-store-a939014c.js → pn-marketweb-siteheader-store-ccf82b09.js} +1 -1
- package/cjs/pn-marketweb-siteheader.cjs.entry.js +3 -3
- package/cjs/pn-media-block.cjs.entry.js +180 -0
- package/cjs/pn-multi-formfield.cjs.entry.js +1 -1
- package/cjs/pn-multi-row-connected-dropdown-row.cjs.entry.js +1 -1
- package/cjs/pn-multi-row-connected-dropdown.cjs.entry.js +1 -1
- package/cjs/pn-multiple-input.cjs.entry.js +1 -1
- package/cjs/pn-parcel-tracker.cjs.entry.js +1 -1
- package/cjs/pn-pex-pricefinder.cjs.entry.js +1 -1
- package/cjs/pn-play-on-scroll.cjs.entry.js +10 -8
- package/cjs/pn-product-card_3.cjs.entry.js +1 -1
- package/cjs/pn-product-pricelist-result.cjs.entry.js +2 -2
- package/cjs/pn-product-pricelist.cjs.entry.js +3 -3
- package/cjs/pn-product-tile-info_2.cjs.entry.js +1 -1
- package/cjs/pn-product-tile.cjs.entry.js +1 -1
- package/cjs/pn-profile-modal-customernumber.cjs.entry.js +1 -1
- package/cjs/pn-profile-modal-profile.cjs.entry.js +3 -3
- package/cjs/{pn-profile-modal-store-2525eee2.js → pn-profile-modal-store-14bc937f.js} +1 -1
- package/cjs/pn-profile-modal-type.cjs.entry.js +3 -3
- package/cjs/pn-profile-modal.cjs.entry.js +3 -3
- package/cjs/pn-profile-selector-option.cjs.entry.js +1 -1
- package/cjs/pn-profile-selector.cjs.entry.js +1 -1
- package/cjs/pn-proxio-findprice-result.cjs.entry.js +1 -1
- package/cjs/pn-proxio-findprice.cjs.entry.js +2 -2
- package/cjs/pn-proxio-pricegroup.cjs.entry.js +1 -1
- package/cjs/pn-proxio-productcard_4.cjs.entry.js +1 -1
- package/cjs/pn-quick-cta.cjs.entry.js +1 -1
- package/cjs/pn-quote-card.cjs.entry.js +1 -1
- package/cjs/pn-scroll_2.cjs.entry.js +4 -3
- package/cjs/pn-share-item.cjs.entry.js +1 -1
- package/cjs/pn-share.cjs.entry.js +1 -1
- package/cjs/pn-sidenav-level.cjs.entry.js +3 -3
- package/cjs/pn-sidenav-link.cjs.entry.js +3 -3
- package/cjs/{pn-sidenav-store-18b8c3ff.js → pn-sidenav-store-d3f7bdfa.js} +1 -1
- package/cjs/pn-sidenav-togglebutton.cjs.entry.js +3 -3
- package/cjs/pn-sidenav.cjs.entry.js +3 -3
- package/cjs/pn-site-footer_3.cjs.entry.js +1 -1
- package/cjs/pn-spotlight.cjs.entry.js +1 -1
- package/cjs/pn-stats-info-data.cjs.entry.js +1 -1
- package/cjs/pn-stats-info.cjs.entry.js +1 -1
- package/cjs/pn-teaser-card.cjs.entry.js +2 -2
- package/cjs/pn-titletag.cjs.entry.js +1 -1
- package/collection/collection-manifest.json +1 -0
- package/collection/components/animation/pn-play-on-scroll/pn-play-on-scroll.css +0 -11
- package/collection/components/animation/pn-play-on-scroll/pn-play-on-scroll.js +46 -6
- package/collection/components/animation/pn-play-on-scroll/pn-video-overlay/pn-video-overlay.css +15 -0
- package/collection/components/animation/pn-play-on-scroll/pn-video-overlay/pn-video-overlay.js +20 -1
- package/collection/components/cards/pn-teaser-card/pn-teaser-card.css +4 -0
- package/collection/components/media/pn-media-block/media-block.stories.js +258 -0
- package/collection/components/media/pn-media-block/pn-media-block.css +283 -0
- package/collection/components/media/pn-media-block/pn-media-block.js +481 -0
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -0
- package/components/pn-media-block.d.ts +11 -0
- package/components/pn-media-block.js +232 -0
- package/components/pn-play-on-scroll.js +1 -97
- package/components/pn-play-on-scroll2.js +103 -0
- package/components/pn-teaser-card.js +1 -1
- package/components/pn-video-overlay2.js +4 -2
- package/esm/{index-e6fbe66d.js → index-6ee8c83f.js} +1 -1
- package/esm/{index-be8c3299.js → index-70664d8e.js} +16 -8
- package/esm/loader.js +3 -3
- package/esm/pn-address-autofill.entry.js +1 -1
- package/esm/pn-animated-tile.entry.js +1 -1
- package/esm/pn-app-banner.entry.js +1 -1
- package/esm/pn-bonus-progressbar-level.entry.js +1 -1
- package/esm/pn-bonus-progressbar.entry.js +1 -1
- package/esm/pn-breakpoints.entry.js +1 -1
- package/esm/pn-chart.entry.js +1 -1
- package/esm/pn-charts-card.entry.js +1 -1
- package/esm/pn-choice-button.entry.js +1 -1
- package/esm/pn-cta-block.entry.js +1 -1
- package/esm/pn-customernumber-selector-option.entry.js +1 -1
- package/esm/pn-customernumber-selector.entry.js +1 -1
- package/esm/pn-date-and-time.entry.js +1 -1
- package/esm/pn-dropdown-choice-adds-row.entry.js +1 -1
- package/esm/pn-dropdown-with-multi-input-rows-row.entry.js +1 -1
- package/esm/pn-dropdown-with-multi-input-rows.entry.js +1 -1
- package/esm/pn-filter-checkbox.entry.js +1 -1
- package/esm/pn-find-price-result.entry.js +3 -3
- package/esm/{pn-find-price-store-9d2df21a.js → pn-find-price-store-0835039f.js} +1 -1
- package/esm/pn-find-price.entry.js +3 -3
- package/esm/pn-find-service-and-price-result.entry.js +3 -3
- package/esm/{pn-find-service-and-price-store-60025dfc.js → pn-find-service-and-price-store-ce4ca6e6.js} +1 -1
- package/esm/pn-find-service-and-price.entry.js +3 -3
- package/esm/pn-language-selector_9.entry.js +4 -4
- package/esm/pn-line-shape.entry.js +1 -1
- package/esm/pn-link-list.entry.js +1 -1
- package/esm/pn-mainnav-link.entry.js +3 -3
- package/esm/{pn-mainnav-store-35a91e97.js → pn-mainnav-store-054d67c4.js} +1 -1
- package/esm/pn-market-web-components.js +3 -3
- package/esm/pn-marketweb-input.entry.js +1 -1
- package/esm/pn-marketweb-search.entry.js +1 -1
- package/esm/pn-marketweb-sitefooter.entry.js +1 -1
- package/esm/pn-marketweb-siteheader-login-button_5.entry.js +3 -3
- package/esm/pn-marketweb-siteheader-login-linklist.entry.js +3 -3
- package/esm/{pn-marketweb-siteheader-store-aba9e86a.js → pn-marketweb-siteheader-store-de85e557.js} +1 -1
- package/esm/pn-marketweb-siteheader.entry.js +3 -3
- package/esm/pn-media-block.entry.js +176 -0
- package/esm/pn-multi-formfield.entry.js +1 -1
- package/esm/pn-multi-row-connected-dropdown-row.entry.js +1 -1
- package/esm/pn-multi-row-connected-dropdown.entry.js +1 -1
- package/esm/pn-multiple-input.entry.js +1 -1
- package/esm/pn-parcel-tracker.entry.js +1 -1
- package/esm/pn-pex-pricefinder.entry.js +1 -1
- package/esm/pn-play-on-scroll.entry.js +10 -8
- package/esm/pn-product-card_3.entry.js +1 -1
- package/esm/pn-product-pricelist-result.entry.js +2 -2
- package/esm/pn-product-pricelist.entry.js +3 -3
- package/esm/pn-product-tile-info_2.entry.js +1 -1
- package/esm/pn-product-tile.entry.js +1 -1
- package/esm/pn-profile-modal-customernumber.entry.js +1 -1
- package/esm/pn-profile-modal-profile.entry.js +3 -3
- package/esm/{pn-profile-modal-store-12c5acf9.js → pn-profile-modal-store-3424856b.js} +1 -1
- package/esm/pn-profile-modal-type.entry.js +3 -3
- package/esm/pn-profile-modal.entry.js +3 -3
- package/esm/pn-profile-selector-option.entry.js +1 -1
- package/esm/pn-profile-selector.entry.js +1 -1
- package/esm/pn-proxio-findprice-result.entry.js +1 -1
- package/esm/pn-proxio-findprice.entry.js +2 -2
- package/esm/pn-proxio-pricegroup.entry.js +1 -1
- package/esm/pn-proxio-productcard_4.entry.js +1 -1
- package/esm/pn-quick-cta.entry.js +1 -1
- package/esm/pn-quote-card.entry.js +1 -1
- package/esm/pn-scroll_2.entry.js +4 -3
- package/esm/pn-share-item.entry.js +1 -1
- package/esm/pn-share.entry.js +1 -1
- package/esm/pn-sidenav-level.entry.js +3 -3
- package/esm/pn-sidenav-link.entry.js +3 -3
- package/esm/{pn-sidenav-store-a515dd69.js → pn-sidenav-store-e667e8ea.js} +1 -1
- package/esm/pn-sidenav-togglebutton.entry.js +3 -3
- package/esm/pn-sidenav.entry.js +3 -3
- package/esm/pn-site-footer_3.entry.js +1 -1
- package/esm/pn-spotlight.entry.js +1 -1
- package/esm/pn-stats-info-data.entry.js +1 -1
- package/esm/pn-stats-info.entry.js +1 -1
- package/esm/pn-teaser-card.entry.js +2 -2
- package/esm/pn-titletag.entry.js +1 -1
- package/esm-es5/{index-e6fbe66d.js → index-6ee8c83f.js} +1 -1
- package/esm-es5/{index-be8c3299.js → index-70664d8e.js} +1 -1
- package/esm-es5/loader.js +1 -1
- package/esm-es5/pn-address-autofill.entry.js +1 -1
- package/esm-es5/pn-animated-tile.entry.js +1 -1
- package/esm-es5/pn-app-banner.entry.js +1 -1
- package/esm-es5/pn-bonus-progressbar-level.entry.js +1 -1
- package/esm-es5/pn-bonus-progressbar.entry.js +1 -1
- package/esm-es5/pn-breakpoints.entry.js +1 -1
- package/esm-es5/pn-chart.entry.js +1 -1
- package/esm-es5/pn-charts-card.entry.js +1 -1
- package/esm-es5/pn-choice-button.entry.js +1 -1
- package/esm-es5/pn-cta-block.entry.js +1 -1
- package/esm-es5/pn-customernumber-selector-option.entry.js +1 -1
- package/esm-es5/pn-customernumber-selector.entry.js +1 -1
- package/esm-es5/pn-date-and-time.entry.js +1 -1
- package/esm-es5/pn-dropdown-choice-adds-row.entry.js +1 -1
- package/esm-es5/pn-dropdown-with-multi-input-rows-row.entry.js +1 -1
- package/esm-es5/pn-dropdown-with-multi-input-rows.entry.js +1 -1
- package/esm-es5/pn-filter-checkbox.entry.js +1 -1
- package/esm-es5/pn-find-price-result.entry.js +1 -1
- package/esm-es5/{pn-find-price-store-9d2df21a.js → pn-find-price-store-0835039f.js} +1 -1
- package/esm-es5/pn-find-price.entry.js +1 -1
- package/esm-es5/pn-find-service-and-price-result.entry.js +1 -1
- package/esm-es5/{pn-find-service-and-price-store-60025dfc.js → pn-find-service-and-price-store-ce4ca6e6.js} +1 -1
- package/esm-es5/pn-find-service-and-price.entry.js +1 -1
- package/esm-es5/pn-language-selector_9.entry.js +1 -1
- package/esm-es5/pn-line-shape.entry.js +1 -1
- package/esm-es5/pn-link-list.entry.js +1 -1
- package/esm-es5/pn-mainnav-link.entry.js +1 -1
- package/esm-es5/{pn-mainnav-store-35a91e97.js → pn-mainnav-store-054d67c4.js} +1 -1
- package/esm-es5/pn-market-web-components.js +1 -1
- package/esm-es5/pn-marketweb-input.entry.js +1 -1
- package/esm-es5/pn-marketweb-search.entry.js +1 -1
- package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -1
- package/esm-es5/pn-marketweb-siteheader-login-button_5.entry.js +1 -1
- package/esm-es5/pn-marketweb-siteheader-login-linklist.entry.js +1 -1
- package/esm-es5/pn-marketweb-siteheader-store-de85e557.js +1 -0
- package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
- package/esm-es5/pn-media-block.entry.js +1 -0
- package/esm-es5/pn-multi-formfield.entry.js +1 -1
- package/esm-es5/pn-multi-row-connected-dropdown-row.entry.js +1 -1
- package/esm-es5/pn-multi-row-connected-dropdown.entry.js +1 -1
- package/esm-es5/pn-multiple-input.entry.js +1 -1
- package/esm-es5/pn-parcel-tracker.entry.js +1 -1
- package/esm-es5/pn-pex-pricefinder.entry.js +1 -1
- package/esm-es5/pn-play-on-scroll.entry.js +1 -1
- package/esm-es5/pn-product-card_3.entry.js +1 -1
- package/esm-es5/pn-product-pricelist-result.entry.js +1 -1
- package/esm-es5/pn-product-pricelist.entry.js +1 -1
- package/esm-es5/pn-product-tile-info_2.entry.js +1 -1
- package/esm-es5/pn-product-tile.entry.js +1 -1
- package/esm-es5/pn-profile-modal-customernumber.entry.js +1 -1
- package/esm-es5/pn-profile-modal-profile.entry.js +1 -1
- package/esm-es5/{pn-profile-modal-store-12c5acf9.js → pn-profile-modal-store-3424856b.js} +1 -1
- package/esm-es5/pn-profile-modal-type.entry.js +1 -1
- package/esm-es5/pn-profile-modal.entry.js +1 -1
- package/esm-es5/pn-profile-selector-option.entry.js +1 -1
- package/esm-es5/pn-profile-selector.entry.js +1 -1
- package/esm-es5/pn-proxio-findprice-result.entry.js +1 -1
- package/esm-es5/pn-proxio-findprice.entry.js +1 -1
- package/esm-es5/pn-proxio-pricegroup.entry.js +1 -1
- package/esm-es5/pn-proxio-productcard_4.entry.js +1 -1
- package/esm-es5/pn-quick-cta.entry.js +1 -1
- package/esm-es5/pn-quote-card.entry.js +1 -1
- package/esm-es5/pn-scroll_2.entry.js +1 -1
- package/esm-es5/pn-share-item.entry.js +1 -1
- package/esm-es5/pn-share.entry.js +1 -1
- package/esm-es5/pn-sidenav-level.entry.js +1 -1
- package/esm-es5/pn-sidenav-link.entry.js +1 -1
- package/esm-es5/{pn-sidenav-store-a515dd69.js → pn-sidenav-store-e667e8ea.js} +1 -1
- package/esm-es5/pn-sidenav-togglebutton.entry.js +1 -1
- package/esm-es5/pn-sidenav.entry.js +1 -1
- package/esm-es5/pn-site-footer_3.entry.js +1 -1
- package/esm-es5/pn-spotlight.entry.js +1 -1
- package/esm-es5/pn-stats-info-data.entry.js +1 -1
- package/esm-es5/pn-stats-info.entry.js +1 -1
- package/esm-es5/pn-teaser-card.entry.js +1 -1
- package/esm-es5/pn-titletag.entry.js +1 -1
- package/package.json +1 -1
- package/pn-market-web-components/{p-4572f290.entry.js → p-0010aad7.entry.js} +1 -1
- package/pn-market-web-components/{p-28ebaf1d.system.entry.js → p-04b382ae.system.entry.js} +1 -1
- package/pn-market-web-components/{p-c633a40e.entry.js → p-052508de.entry.js} +1 -1
- package/pn-market-web-components/{p-eb9a3c2d.system.entry.js → p-05f643e4.system.entry.js} +1 -1
- package/pn-market-web-components/{p-583df48e.system.entry.js → p-05f99c22.system.entry.js} +1 -1
- package/pn-market-web-components/{p-49896e47.system.entry.js → p-08fa8d4a.system.entry.js} +1 -1
- package/pn-market-web-components/{p-9d0074fb.entry.js → p-0ad6efd1.entry.js} +1 -1
- package/pn-market-web-components/{p-b8266eeb.entry.js → p-0b071480.entry.js} +1 -1
- package/pn-market-web-components/{p-b49d0553.system.entry.js → p-1165f7d0.system.entry.js} +1 -1
- package/pn-market-web-components/p-136f5395.entry.js +1 -0
- package/pn-market-web-components/{p-e5f99384.system.js → p-14a189d3.system.js} +1 -1
- package/pn-market-web-components/{p-550b2b29.system.entry.js → p-154e2826.system.entry.js} +1 -1
- package/pn-market-web-components/p-17e61235.js +1 -0
- package/pn-market-web-components/{p-103c054e.entry.js → p-191edfa8.entry.js} +1 -1
- package/pn-market-web-components/{p-3d0c3caa.system.entry.js → p-19be5eed.system.entry.js} +1 -1
- package/pn-market-web-components/{p-609f1695.system.entry.js → p-1a4194d3.system.entry.js} +1 -1
- package/pn-market-web-components/{p-03cc4a3b.entry.js → p-1aa1ccd2.entry.js} +1 -1
- package/pn-market-web-components/{p-b2fc3594.entry.js → p-1d69c613.entry.js} +1 -1
- package/pn-market-web-components/{p-47536b9e.system.entry.js → p-1dafb003.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8c7787eb.entry.js → p-1f2d226e.entry.js} +1 -1
- package/pn-market-web-components/{p-35b5ea63.system.entry.js → p-1fbdecfb.system.entry.js} +1 -1
- package/pn-market-web-components/{p-5840be2e.entry.js → p-20a08e7a.entry.js} +1 -1
- package/pn-market-web-components/{p-944d00e3.system.entry.js → p-2248b584.system.entry.js} +1 -1
- package/pn-market-web-components/{p-c1ec42a6.entry.js → p-225e581e.entry.js} +1 -1
- package/pn-market-web-components/{p-e5c7627c.system.entry.js → p-23357475.system.entry.js} +1 -1
- package/pn-market-web-components/{p-865ee8f6.entry.js → p-260016e2.entry.js} +1 -1
- package/pn-market-web-components/{p-64048a03.entry.js → p-2647f023.entry.js} +1 -1
- package/pn-market-web-components/{p-bf1f69fa.system.entry.js → p-28f745d6.system.entry.js} +1 -1
- package/pn-market-web-components/{p-64691d51.entry.js → p-29d60871.entry.js} +1 -1
- package/pn-market-web-components/{p-29a7c74f.system.entry.js → p-2ac346c8.system.entry.js} +1 -1
- package/pn-market-web-components/{p-83d7a808.entry.js → p-2bc0fbd6.entry.js} +1 -1
- package/pn-market-web-components/{p-eb42a545.entry.js → p-2dca907e.entry.js} +1 -1
- package/pn-market-web-components/{p-6aab92c0.entry.js → p-312ca954.entry.js} +1 -1
- package/pn-market-web-components/{p-592360ba.system.entry.js → p-32528f2e.system.entry.js} +1 -1
- package/pn-market-web-components/{p-ba1cce09.system.entry.js → p-3410b18e.system.entry.js} +1 -1
- package/pn-market-web-components/p-35a4aa56.entry.js +1 -0
- package/pn-market-web-components/{p-4b710959.entry.js → p-3a2f44d6.entry.js} +1 -1
- package/pn-market-web-components/{p-666d2bfb.entry.js → p-3a8410c6.entry.js} +1 -1
- package/pn-market-web-components/{p-52637e34.system.entry.js → p-3ab1bf8b.system.entry.js} +1 -1
- package/pn-market-web-components/{p-a7371325.entry.js → p-3cc00541.entry.js} +1 -1
- package/pn-market-web-components/{p-2ccbef09.system.entry.js → p-3d2ac1f6.system.entry.js} +1 -1
- package/pn-market-web-components/{p-ae453317.entry.js → p-3dad0ce4.entry.js} +1 -1
- package/pn-market-web-components/{p-746a2620.js → p-3f74ef14.js} +1 -1
- package/pn-market-web-components/{p-2e6d5633.entry.js → p-42cde64b.entry.js} +1 -1
- package/pn-market-web-components/{p-2ef39f23.entry.js → p-441c6ecf.entry.js} +1 -1
- package/pn-market-web-components/{p-6aaf35c7.entry.js → p-4905a61d.entry.js} +1 -1
- package/pn-market-web-components/{p-98690006.system.entry.js → p-4a4d1f12.system.entry.js} +1 -1
- package/pn-market-web-components/{p-c6409b81.entry.js → p-4b05a2a7.entry.js} +1 -1
- package/pn-market-web-components/{p-476c4f58.system.entry.js → p-4e5efb81.system.entry.js} +1 -1
- package/pn-market-web-components/{p-fbafd07a.system.entry.js → p-4e9b9584.system.entry.js} +1 -1
- package/pn-market-web-components/{p-087a6e41.system.entry.js → p-4ef22c01.system.entry.js} +1 -1
- package/pn-market-web-components/{p-9db7d43b.system.entry.js → p-51e673f9.system.entry.js} +1 -1
- package/pn-market-web-components/{p-eb82c0f8.system.entry.js → p-52c91186.system.entry.js} +1 -1
- package/pn-market-web-components/{p-0f73d268.system.entry.js → p-52df172b.system.entry.js} +1 -1
- package/pn-market-web-components/p-53d7aeb5.js +1 -0
- package/pn-market-web-components/{p-d97d1501.system.entry.js → p-54548525.system.entry.js} +1 -1
- package/pn-market-web-components/{p-1e0fd641.entry.js → p-54ae554a.entry.js} +1 -1
- package/pn-market-web-components/{p-a83c758d.system.entry.js → p-55095fd4.system.entry.js} +1 -1
- package/pn-market-web-components/p-55a12ded.system.entry.js +1 -0
- package/pn-market-web-components/{p-63b48e94.system.entry.js → p-586991f8.system.entry.js} +1 -1
- package/pn-market-web-components/{p-cb9c945d.entry.js → p-5ee67059.entry.js} +1 -1
- package/pn-market-web-components/{p-6a230cb1.js → p-6107c744.js} +1 -1
- package/pn-market-web-components/{p-0f6f212a.system.entry.js → p-62603a41.system.entry.js} +1 -1
- package/pn-market-web-components/{p-b407caff.entry.js → p-68862e73.entry.js} +1 -1
- package/pn-market-web-components/p-69fc1fdb.system.entry.js +1 -0
- package/pn-market-web-components/{p-e62c4259.entry.js → p-6bc810e3.entry.js} +1 -1
- package/pn-market-web-components/{p-a0a92f86.system.js → p-6caaf51b.system.js} +1 -1
- package/pn-market-web-components/{p-f91cee83.entry.js → p-6f07da13.entry.js} +1 -1
- package/pn-market-web-components/{p-c3015b3f.entry.js → p-6fd874c0.entry.js} +1 -1
- package/pn-market-web-components/{p-14ebd1f5.system.entry.js → p-6ff2c262.system.entry.js} +1 -1
- package/pn-market-web-components/{p-4e73bb67.entry.js → p-704058ed.entry.js} +1 -1
- package/pn-market-web-components/{p-4afac628.system.entry.js → p-77db84fd.system.entry.js} +1 -1
- package/pn-market-web-components/{p-027911c8.system.entry.js → p-7b879f2c.system.entry.js} +1 -1
- package/pn-market-web-components/{p-cc1b4ca3.entry.js → p-7c167f65.entry.js} +1 -1
- package/pn-market-web-components/{p-39f2c4d3.system.entry.js → p-7c8ad9cc.system.entry.js} +1 -1
- package/pn-market-web-components/{p-2974d1e2.entry.js → p-7da9b27b.entry.js} +1 -1
- package/pn-market-web-components/{p-0a3aa74f.entry.js → p-7e3b87bd.entry.js} +1 -1
- package/pn-market-web-components/{p-5e61eb13.entry.js → p-7e4b979c.entry.js} +1 -1
- package/pn-market-web-components/p-812e4d0b.system.entry.js +1 -0
- package/pn-market-web-components/{p-3396f3c8.entry.js → p-820065a3.entry.js} +1 -1
- package/pn-market-web-components/{p-48a38770.system.entry.js → p-83a8af5a.system.entry.js} +1 -1
- package/pn-market-web-components/{p-d11f771e.system.entry.js → p-85c52e0c.system.entry.js} +1 -1
- package/pn-market-web-components/{p-825bdb78.system.entry.js → p-85d8ccbd.system.entry.js} +1 -1
- package/pn-market-web-components/{p-463a5975.system.entry.js → p-874d96b9.system.entry.js} +1 -1
- package/pn-market-web-components/{p-c3899747.system.entry.js → p-87f9ac84.system.entry.js} +1 -1
- package/pn-market-web-components/{p-f80e46eb.system.entry.js → p-8986f45e.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8f28f717.system.entry.js → p-8b42b65a.system.entry.js} +1 -1
- package/pn-market-web-components/{p-6125c132.entry.js → p-8bba7ba7.entry.js} +1 -1
- package/pn-market-web-components/{p-54ffd368.system.entry.js → p-8bdad77d.system.entry.js} +1 -1
- package/pn-market-web-components/{p-9cfde6aa.entry.js → p-8e142421.entry.js} +1 -1
- package/pn-market-web-components/{p-00d87476.entry.js → p-92ebab4a.entry.js} +1 -1
- package/pn-market-web-components/p-94ce23b4.system.js +1 -0
- package/pn-market-web-components/{p-cd8ae615.entry.js → p-963f55a9.entry.js} +1 -1
- package/pn-market-web-components/{p-fab635c7.entry.js → p-96b7535f.entry.js} +1 -1
- package/pn-market-web-components/{p-6b02dc02.system.js → p-97825032.system.js} +1 -1
- package/pn-market-web-components/{p-69342caf.system.entry.js → p-984a13ac.system.entry.js} +1 -1
- package/pn-market-web-components/p-986ed2b6.system.js +1 -0
- package/pn-market-web-components/{p-9685af07.system.entry.js → p-98bafa28.system.entry.js} +1 -1
- package/pn-market-web-components/{p-e64e95a8.system.entry.js → p-9a6b3f55.system.entry.js} +1 -1
- package/pn-market-web-components/{p-63679401.entry.js → p-9afa3afc.entry.js} +1 -1
- package/pn-market-web-components/{p-b6301b42.entry.js → p-9c22f141.entry.js} +1 -1
- package/pn-market-web-components/{p-d0e65d70.js → p-9dd478d9.js} +2 -2
- package/pn-market-web-components/{p-a8c25cad.system.entry.js → p-9f8c3f1a.system.entry.js} +1 -1
- package/pn-market-web-components/{p-e2892448.entry.js → p-a0ac3794.entry.js} +1 -1
- package/pn-market-web-components/{p-43b76595.system.entry.js → p-a21e99fa.system.entry.js} +1 -1
- package/pn-market-web-components/{p-a53b3be1.entry.js → p-a2b062a1.entry.js} +1 -1
- package/pn-market-web-components/{p-0b999957.system.entry.js → p-a69bd189.system.entry.js} +1 -1
- package/pn-market-web-components/{p-ed9dd574.entry.js → p-a6cc80f6.entry.js} +1 -1
- package/pn-market-web-components/{p-e13a6bab.system.entry.js → p-a8cab386.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8eb8e8b2.system.entry.js → p-a93f2e9d.system.entry.js} +1 -1
- package/pn-market-web-components/{p-2f4aa8c6.entry.js → p-a9930e79.entry.js} +1 -1
- package/pn-market-web-components/{p-595e8f54.system.entry.js → p-aaf31bc1.system.entry.js} +1 -1
- package/pn-market-web-components/{p-67f5cd23.entry.js → p-abcde0d8.entry.js} +1 -1
- package/pn-market-web-components/{p-1998b5b1.entry.js → p-ae33ef56.entry.js} +1 -1
- package/pn-market-web-components/{p-dc91c260.system.entry.js → p-af1af661.system.entry.js} +1 -1
- package/pn-market-web-components/{p-742d27ff.entry.js → p-b14e29f1.entry.js} +1 -1
- package/pn-market-web-components/{p-c1204325.system.entry.js → p-b29adc65.system.entry.js} +1 -1
- package/pn-market-web-components/{p-15fd32d4.entry.js → p-b3871ac2.entry.js} +1 -1
- package/pn-market-web-components/{p-390895ec.system.entry.js → p-b8d4a319.system.entry.js} +1 -1
- package/pn-market-web-components/{p-03d7d79b.js → p-b96dbfea.js} +1 -1
- package/pn-market-web-components/{p-5ac3c73c.system.entry.js → p-ba9c3757.system.entry.js} +1 -1
- package/pn-market-web-components/{p-fba12f1d.entry.js → p-bc645d84.entry.js} +1 -1
- package/pn-market-web-components/{p-cd8185a6.entry.js → p-bfed70cc.entry.js} +1 -1
- package/pn-market-web-components/{p-d6492b8a.entry.js → p-c4ec9a7f.entry.js} +1 -1
- package/pn-market-web-components/{p-42ea5bd1.entry.js → p-c5e35374.entry.js} +1 -1
- package/pn-market-web-components/p-c98ae4d8.js +1 -0
- package/pn-market-web-components/{p-81876fba.entry.js → p-caf88cd1.entry.js} +1 -1
- package/pn-market-web-components/{p-f737524e.system.entry.js → p-ce2f007f.system.entry.js} +1 -1
- package/pn-market-web-components/{p-2ef8f47b.entry.js → p-d10b8ae0.entry.js} +1 -1
- package/pn-market-web-components/{p-6259e4f4.system.js → p-d17fb67d.system.js} +2 -2
- package/pn-market-web-components/p-d1eacc9a.entry.js +1 -0
- package/pn-market-web-components/p-d1f90b53.system.entry.js +1 -0
- package/pn-market-web-components/{p-8cb21818.system.entry.js → p-d28011f2.system.entry.js} +1 -1
- package/pn-market-web-components/{p-75e56082.system.entry.js → p-d287cfdf.system.entry.js} +1 -1
- package/pn-market-web-components/{p-dda5e084.system.entry.js → p-d435617c.system.entry.js} +1 -1
- package/pn-market-web-components/{p-05257edc.system.entry.js → p-d762d2eb.system.entry.js} +1 -1
- package/pn-market-web-components/{p-335d95b7.entry.js → p-e0c27b9f.entry.js} +1 -1
- package/pn-market-web-components/{p-345648e8.entry.js → p-e15b72a3.entry.js} +1 -1
- package/pn-market-web-components/{p-48da3826.system.js → p-e2f1add7.system.js} +1 -1
- package/pn-market-web-components/{p-eea5ac80.system.entry.js → p-e356a2cf.system.entry.js} +1 -1
- package/pn-market-web-components/{p-7587b935.system.entry.js → p-e96ed1ba.system.entry.js} +1 -1
- package/pn-market-web-components/{p-c02ddf82.js → p-e97ac85f.js} +1 -1
- package/pn-market-web-components/{p-26869f6d.entry.js → p-e9884417.entry.js} +1 -1
- package/pn-market-web-components/{p-9556936e.entry.js → p-ead762ff.entry.js} +1 -1
- package/pn-market-web-components/{p-e76bd03c.system.js → p-eb702bcd.system.js} +1 -1
- package/pn-market-web-components/{p-eaad04e5.system.entry.js → p-ef602321.system.entry.js} +1 -1
- package/pn-market-web-components/{p-ace52b28.entry.js → p-f3dbfe72.entry.js} +1 -1
- package/pn-market-web-components/{p-bb93f102.system.entry.js → p-f3f44a2c.system.entry.js} +1 -1
- package/pn-market-web-components/{p-fc583d96.entry.js → p-f840e5bb.entry.js} +1 -1
- package/pn-market-web-components/{p-88d22b1c.entry.js → p-fa4c8587.entry.js} +1 -1
- package/pn-market-web-components/{p-e505ebd8.system.entry.js → p-fa666ea0.system.entry.js} +1 -1
- package/pn-market-web-components/{p-11f6fb30.system.js → p-fb84605d.system.js} +1 -1
- package/pn-market-web-components/{p-3ee0f67f.system.entry.js → p-fe358a44.system.entry.js} +1 -1
- package/pn-market-web-components/{p-eba15c54.entry.js → p-fe8172f7.entry.js} +1 -1
- package/pn-market-web-components/{p-94e96fcf.entry.js → p-fec6a09c.entry.js} +1 -1
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/pn-market-web-components/pn-market-web-components.js +1 -1
- package/types/components/animation/pn-play-on-scroll/pn-play-on-scroll.d.ts +2 -0
- package/types/components/animation/pn-play-on-scroll/pn-video-overlay/pn-video-overlay.d.ts +1 -0
- package/types/components/media/pn-media-block/pn-media-block.d.ts +33 -0
- package/types/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.d.ts +1 -1
- package/types/components.d.ts +51 -0
- package/esm-es5/pn-marketweb-siteheader-store-aba9e86a.js +0 -1
- package/pn-market-web-components/p-0412e417.entry.js +0 -1
- package/pn-market-web-components/p-30571cc1.system.entry.js +0 -1
- package/pn-market-web-components/p-7e6853a7.entry.js +0 -1
- package/pn-market-web-components/p-8bafabe5.js +0 -1
- package/pn-market-web-components/p-8d5a041f.js +0 -1
- package/pn-market-web-components/p-a28fce54.system.js +0 -1
- package/pn-market-web-components/p-bdcedfe9.system.js +0 -1
- package/pn-market-web-components/p-cc5c611e.system.entry.js +0 -1
- package/pn-market-web-components/p-d6893c90.system.entry.js +0 -1
- 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
|
}
|
package/collection/components/animation/pn-play-on-scroll/pn-video-overlay/pn-video-overlay.css
CHANGED
|
@@ -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
|
}
|
package/collection/components/animation/pn-play-on-scroll/pn-video-overlay/pn-video-overlay.js
CHANGED
|
@@ -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,
|
|
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
|
+
};
|