@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.
- package/cjs/{index-b3b6d3c1.js → index-02a77089.js} +6 -0
- package/cjs/{index-2e97451f.js → index-8f425aa1.js} +1 -1
- package/cjs/index.cjs.js +3 -0
- 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-dca982f0.js → pn-find-price-store-81c07c6b.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-9b8e28fe.js → pn-find-service-and-price-store-3a01c760.js} +1 -1
- package/cjs/pn-find-service-and-price.cjs.entry.js +3 -3
- package/cjs/pn-hero-block-international.cjs.entry.js +44 -0
- 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-03d31f7e.js → pn-mainnav-store-45fe25ce.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-22b4d42d.js → pn-marketweb-siteheader-store-d509d01c.js} +1 -1
- package/cjs/pn-marketweb-siteheader.cjs.entry.js +3 -3
- package/cjs/pn-media-block.cjs.entry.js +8 -40
- package/cjs/pn-multi-formfield.cjs.entry.js +1 -1
- package/cjs/pn-multi-row-connected-dropdown-row.cjs.entry.js +3 -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 +4 -3
- 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-6f83ea6b.js → pn-profile-modal-store-527659cb.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 +1 -1
- 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-846a26c6.js → pn-sidenav-store-0f543ce6.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 +1 -1
- package/cjs/pn-titletag.cjs.entry.js +1 -1
- package/cjs/pn-usp-promoter.cjs.entry.js +1 -1
- package/collection/assets/logo-international.svg +1 -0
- package/collection/collection-manifest.json +1 -0
- package/collection/components/animation/pn-play-on-scroll/pn-play-on-scroll.js +3 -2
- package/collection/components/animation/pn-play-on-scroll/pn-play-on-scroll.stories.js +6 -86
- package/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown-row.js +2 -0
- package/collection/components/media/pn-media-block/media-block.stories.js +6 -15
- package/collection/components/media/pn-media-block/pn-media-block.css +20 -2
- package/collection/components/media/pn-media-block/pn-media-block.js +24 -57
- package/collection/components/widgets/pn-hero-block-international/assets/logo-international.svg +1 -0
- package/collection/components/widgets/pn-hero-block-international/hero-block-international.stories.js +88 -0
- package/collection/components/widgets/pn-hero-block-international/pn-hero-block-international.css +234 -0
- package/collection/components/widgets/pn-hero-block-international/pn-hero-block-international.js +156 -0
- package/collection/index.js +2 -1
- package/components/index.d.ts +1 -0
- package/components/index.js +4 -0
- package/components/pn-hero-block-international.d.ts +11 -0
- package/components/pn-hero-block-international.js +65 -0
- package/components/pn-media-block.js +8 -40
- package/components/pn-multi-row-connected-dropdown-row2.js +2 -0
- package/components/pn-play-on-scroll2.js +3 -2
- package/esm/{index-6a2abc18.js → index-493a47cd.js} +1 -1
- package/esm/{index-6e611ed9.js → index-a0d3240d.js} +6 -1
- package/esm/index.js +2 -0
- 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-3577991d.js → pn-find-price-store-82418d39.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-a49d61f3.js → pn-find-service-and-price-store-1d62f045.js} +1 -1
- package/esm/pn-find-service-and-price.entry.js +3 -3
- package/esm/pn-hero-block-international.entry.js +40 -0
- 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-3041a893.js → pn-mainnav-store-8babf7a9.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-f31ee409.js → pn-marketweb-siteheader-store-c64ef3ee.js} +1 -1
- package/esm/pn-marketweb-siteheader.entry.js +3 -3
- package/esm/pn-media-block.entry.js +8 -40
- package/esm/pn-multi-formfield.entry.js +1 -1
- package/esm/pn-multi-row-connected-dropdown-row.entry.js +3 -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 +4 -3
- 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-17855bd2.js → pn-profile-modal-store-d41bc672.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 +1 -1
- 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-c4d92fd2.js → pn-sidenav-store-53376add.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 +1 -1
- package/esm/pn-titletag.entry.js +1 -1
- package/esm/pn-usp-promoter.entry.js +1 -1
- package/esm-es5/{index-6a2abc18.js → index-493a47cd.js} +1 -1
- package/esm-es5/index-a0d3240d.js +1 -0
- package/esm-es5/index.js +1 -0
- 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-3577991d.js → pn-find-price-store-82418d39.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-a49d61f3.js → pn-find-service-and-price-store-1d62f045.js} +1 -1
- package/esm-es5/pn-find-service-and-price.entry.js +1 -1
- package/esm-es5/pn-hero-block-international.entry.js +1 -0
- 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-3041a893.js → pn-mainnav-store-8babf7a9.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-c64ef3ee.js +1 -0
- package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
- package/esm-es5/pn-media-block.entry.js +1 -1
- 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-17855bd2.js → pn-profile-modal-store-d41bc672.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-c4d92fd2.js → pn-sidenav-store-53376add.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/esm-es5/pn-usp-promoter.entry.js +1 -1
- package/package.json +3 -3
- package/pn-market-web-components/index.esm.js +1 -0
- package/pn-market-web-components/{p-bda66a3c.js → p-00732a77.js} +1 -1
- package/pn-market-web-components/p-01ae001f.system.js +1 -0
- package/pn-market-web-components/{p-376b860e.system.entry.js → p-0602b063.system.entry.js} +1 -1
- package/pn-market-web-components/{p-24c54547.entry.js → p-076ed92d.entry.js} +1 -1
- package/pn-market-web-components/{p-fa4c3121.system.entry.js → p-08b41945.system.entry.js} +1 -1
- package/pn-market-web-components/{p-1c43dc8d.system.entry.js → p-09cf5891.system.entry.js} +1 -1
- package/pn-market-web-components/{p-6c8fbcda.entry.js → p-0c46179e.entry.js} +1 -1
- package/pn-market-web-components/p-0c50ded4.entry.js +1 -0
- package/pn-market-web-components/{p-9508d1b3.system.entry.js → p-0cdbb7a7.system.entry.js} +1 -1
- package/pn-market-web-components/{p-a990da8b.system.js → p-1295a661.system.js} +1 -1
- package/pn-market-web-components/{p-7a2d4f1a.system.entry.js → p-148adccc.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8ab74cc4.entry.js → p-1567bc28.entry.js} +1 -1
- package/pn-market-web-components/{p-5d253c27.system.entry.js → p-17c4e4e0.system.entry.js} +1 -1
- package/pn-market-web-components/p-17dc52e5.entry.js +1 -0
- package/pn-market-web-components/{p-726f1ba5.entry.js → p-18e9aa4b.entry.js} +1 -1
- package/pn-market-web-components/{p-412669a4.system.entry.js → p-1c0c5a98.system.entry.js} +1 -1
- package/pn-market-web-components/{p-819494d3.entry.js → p-1e367982.entry.js} +1 -1
- package/pn-market-web-components/{p-fe877a0f.entry.js → p-1f36b761.entry.js} +1 -1
- package/pn-market-web-components/{p-dc25c859.system.js → p-21b69581.system.js} +1 -1
- package/pn-market-web-components/p-21f0fcb3.entry.js +1 -0
- package/pn-market-web-components/{p-81b5430c.system.entry.js → p-25383f0a.system.entry.js} +1 -1
- package/pn-market-web-components/{p-9dc2163c.entry.js → p-26fcb229.entry.js} +1 -1
- package/pn-market-web-components/{p-6ca7eb0a.system.entry.js → p-29b0f0d5.system.entry.js} +1 -1
- package/pn-market-web-components/p-2f5ffae7.js +1 -0
- package/pn-market-web-components/{p-7542a277.entry.js → p-2f9da449.entry.js} +1 -1
- package/pn-market-web-components/{p-4e7a470b.entry.js → p-305edca2.entry.js} +1 -1
- package/pn-market-web-components/p-34fde26b.entry.js +1 -0
- package/pn-market-web-components/{p-d9d3078b.system.entry.js → p-37b3cf36.system.entry.js} +1 -1
- package/pn-market-web-components/{p-2b374219.system.entry.js → p-3822863e.system.entry.js} +1 -1
- package/pn-market-web-components/{p-404703bc.system.entry.js → p-38c7d8d6.system.entry.js} +1 -1
- package/pn-market-web-components/{p-346c3772.system.entry.js → p-395105d0.system.entry.js} +1 -1
- package/pn-market-web-components/p-39bfb523.system.entry.js +1 -0
- package/pn-market-web-components/{p-ee42154f.system.entry.js → p-3a6f96bc.system.entry.js} +1 -1
- package/pn-market-web-components/p-3afcafee.system.js +2 -0
- package/pn-market-web-components/{p-2ed45e96.system.entry.js → p-3b2d5e43.system.entry.js} +1 -1
- package/pn-market-web-components/{p-739f296c.system.entry.js → p-3f5d2535.system.entry.js} +1 -1
- package/pn-market-web-components/{p-5cf6111c.system.entry.js → p-41d983e9.system.entry.js} +1 -1
- package/pn-market-web-components/{p-71a0acac.js → p-41df2624.js} +1 -1
- package/pn-market-web-components/{p-4c38b1b5.system.entry.js → p-4335124d.system.entry.js} +1 -1
- package/pn-market-web-components/{p-d15bca21.system.entry.js → p-466fc9e7.system.entry.js} +1 -1
- package/pn-market-web-components/{p-79459743.system.js → p-46abde43.system.js} +1 -1
- package/pn-market-web-components/{p-bea9522f.entry.js → p-48b4f6e3.entry.js} +1 -1
- package/pn-market-web-components/{p-64df1c4d.entry.js → p-49cb83ed.entry.js} +1 -1
- package/pn-market-web-components/p-4bcf66cb.entry.js +1 -0
- package/pn-market-web-components/{p-38b16c1a.entry.js → p-4c68654b.entry.js} +1 -1
- package/pn-market-web-components/p-4c7305d9.entry.js +1 -0
- package/pn-market-web-components/{p-732d5bf1.entry.js → p-4d2fe840.entry.js} +1 -1
- package/pn-market-web-components/{p-16bb93bf.system.entry.js → p-4f094023.system.entry.js} +1 -1
- package/pn-market-web-components/{p-95189aa2.system.entry.js → p-4f0f4af1.system.entry.js} +1 -1
- package/pn-market-web-components/{p-93e4245f.entry.js → p-530114f7.entry.js} +1 -1
- package/pn-market-web-components/{p-3e6db900.system.entry.js → p-534d6231.system.entry.js} +1 -1
- package/pn-market-web-components/{p-78ee80d4.system.entry.js → p-55ac6162.system.entry.js} +1 -1
- package/pn-market-web-components/{p-a1294675.system.entry.js → p-5a5a7f35.system.entry.js} +1 -1
- package/pn-market-web-components/p-5b174388.system.js +1 -0
- package/pn-market-web-components/{p-e197f20b.entry.js → p-5c50a8d4.entry.js} +1 -1
- package/pn-market-web-components/{p-4fe46903.system.entry.js → p-5ce111c1.system.entry.js} +1 -1
- package/pn-market-web-components/{p-d9292bd0.system.entry.js → p-5dcf78c2.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8b471f23.entry.js → p-5f4a6e6f.entry.js} +1 -1
- package/pn-market-web-components/p-5fd13ebd.entry.js +1 -0
- package/pn-market-web-components/{p-aa42b255.system.entry.js → p-60b7bbae.system.entry.js} +1 -1
- package/pn-market-web-components/{p-46088d8c.entry.js → p-61fe58e5.entry.js} +1 -1
- package/pn-market-web-components/{p-5b535af5.entry.js → p-627745be.entry.js} +1 -1
- package/pn-market-web-components/p-6bcc9823.js +1 -0
- package/pn-market-web-components/{p-51fc7a64.system.entry.js → p-6caeecd6.system.entry.js} +1 -1
- package/pn-market-web-components/{p-03593c2c.system.entry.js → p-6dc0d4d5.system.entry.js} +1 -1
- package/pn-market-web-components/{p-991eef67.entry.js → p-6e5a6fd5.entry.js} +1 -1
- package/pn-market-web-components/{p-0ddc464c.entry.js → p-6ec34924.entry.js} +1 -1
- package/pn-market-web-components/{p-e56093da.entry.js → p-6ec7ebdd.entry.js} +1 -1
- package/pn-market-web-components/{p-4ee4767f.system.entry.js → p-6ed3d5b5.system.entry.js} +1 -1
- package/pn-market-web-components/{p-9b9b9b56.entry.js → p-6edab851.entry.js} +1 -1
- package/pn-market-web-components/p-6f853c29.system.js +1 -0
- package/pn-market-web-components/{p-c94586e5.system.entry.js → p-705fa518.system.entry.js} +1 -1
- package/pn-market-web-components/{p-7cee798b.system.entry.js → p-71efc3d1.system.entry.js} +1 -1
- package/pn-market-web-components/{p-a19b539f.system.entry.js → p-7aef368a.system.entry.js} +1 -1
- package/pn-market-web-components/{p-1aa2008f.entry.js → p-7b12e564.entry.js} +1 -1
- package/pn-market-web-components/{p-3f96b45f.entry.js → p-7d57133a.entry.js} +1 -1
- package/pn-market-web-components/{p-a9e89ca3.entry.js → p-7d80dfb5.entry.js} +1 -1
- package/pn-market-web-components/{p-a69a0544.entry.js → p-80af2512.entry.js} +1 -1
- package/pn-market-web-components/p-80ba399a.entry.js +1 -0
- package/pn-market-web-components/{p-ef137f0d.js → p-80da3dee.js} +1 -1
- package/pn-market-web-components/{p-e251b0c2.system.entry.js → p-8328a20d.system.entry.js} +1 -1
- package/pn-market-web-components/{p-e33a8c98.entry.js → p-84bbf052.entry.js} +1 -1
- package/pn-market-web-components/{p-1cfc9d10.system.entry.js → p-88e076d2.system.entry.js} +1 -1
- package/pn-market-web-components/p-897ced52.entry.js +1 -0
- package/pn-market-web-components/{p-b18ce512.entry.js → p-89dffcab.entry.js} +1 -1
- package/pn-market-web-components/p-8a88ce80.entry.js +1 -0
- package/pn-market-web-components/{p-be43040b.entry.js → p-8b2d9d1c.entry.js} +1 -1
- package/pn-market-web-components/p-8bcdd94a.entry.js +1 -0
- package/pn-market-web-components/{p-20f09ba2.system.js → p-8f2fe9e8.system.js} +1 -1
- package/pn-market-web-components/{p-66775d88.system.entry.js → p-8f96be01.system.entry.js} +1 -1
- package/pn-market-web-components/{p-b1b0f5e9.system.entry.js → p-90062de9.system.entry.js} +1 -1
- package/pn-market-web-components/{p-03f5acf3.system.js → p-92b0b65b.system.js} +1 -1
- package/pn-market-web-components/{p-3076020a.system.entry.js → p-96e67510.system.entry.js} +1 -1
- package/pn-market-web-components/{p-16f566e4.system.entry.js → p-9717acbc.system.entry.js} +1 -1
- package/pn-market-web-components/p-9aa8662d.entry.js +1 -0
- package/pn-market-web-components/{p-bc22cb7b.entry.js → p-9eab4b70.entry.js} +1 -1
- package/pn-market-web-components/{p-ef910604.system.entry.js → p-9eeb8c4d.system.entry.js} +1 -1
- package/pn-market-web-components/{p-a1c5431f.entry.js → p-9fa40b1c.entry.js} +1 -1
- package/pn-market-web-components/{p-6bdbfdf2.system.entry.js → p-a224b772.system.entry.js} +1 -1
- package/pn-market-web-components/p-a2ed2bf6.entry.js +1 -0
- package/pn-market-web-components/{p-6b98aefa.system.entry.js → p-a3b9c1ea.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8a8fe9b8.system.entry.js → p-a4d5f6f3.system.entry.js} +1 -1
- package/pn-market-web-components/{p-54dfc74e.entry.js → p-a601780b.entry.js} +1 -1
- package/pn-market-web-components/{p-65e9ed4b.system.entry.js → p-a78eb53d.system.entry.js} +1 -1
- package/pn-market-web-components/{p-07c04e4a.entry.js → p-aa11858a.entry.js} +1 -1
- package/pn-market-web-components/p-aadb8ed1.system.entry.js +1 -0
- package/pn-market-web-components/p-ab1ccd8a.js +1 -0
- package/pn-market-web-components/{p-2ea64615.system.entry.js → p-ab473ac8.system.entry.js} +1 -1
- package/pn-market-web-components/{p-5a74b363.system.entry.js → p-ac561b5f.system.entry.js} +1 -1
- package/pn-market-web-components/{p-1d84acae.entry.js → p-ad4d4140.entry.js} +1 -1
- package/pn-market-web-components/{p-b7cdb982.system.entry.js → p-ad7e8dd8.system.entry.js} +1 -1
- package/pn-market-web-components/{p-e11eb99c.system.entry.js → p-b07b59e2.system.entry.js} +1 -1
- package/pn-market-web-components/p-b26f27f4.js +1 -0
- package/pn-market-web-components/{p-a179066e.system.js → p-b37b5e36.system.js} +1 -1
- package/pn-market-web-components/p-bc27295a.system.entry.js +1 -0
- package/pn-market-web-components/{p-21c6ed35.entry.js → p-bf6689c7.entry.js} +1 -1
- package/pn-market-web-components/{p-70f338c2.system.entry.js → p-c07a23df.system.entry.js} +1 -1
- package/pn-market-web-components/{p-c6171d29.entry.js → p-c1eb4135.entry.js} +1 -1
- package/pn-market-web-components/{p-8b189558.entry.js → p-c3781a59.entry.js} +1 -1
- package/pn-market-web-components/{p-6368e239.system.entry.js → p-c3b85be6.system.entry.js} +1 -1
- package/pn-market-web-components/p-c4cd4903.entry.js +1 -0
- package/pn-market-web-components/{p-a544b937.entry.js → p-c58a42f2.entry.js} +1 -1
- package/pn-market-web-components/{p-d8b3f505.entry.js → p-c6d425d4.entry.js} +1 -1
- package/pn-market-web-components/{p-326d13ca.system.entry.js → p-c80c9158.system.entry.js} +1 -1
- package/pn-market-web-components/{p-bf85df01.system.entry.js → p-c82923a7.system.entry.js} +1 -1
- package/pn-market-web-components/p-c8b9f2e6.entry.js +1 -0
- package/pn-market-web-components/{p-962292bf.entry.js → p-c97909e0.entry.js} +1 -1
- package/pn-market-web-components/{p-72526890.entry.js → p-cbb83e27.entry.js} +1 -1
- package/pn-market-web-components/p-cf665abb.js +2 -0
- package/pn-market-web-components/{p-17e04222.entry.js → p-cfe9c909.entry.js} +1 -1
- package/pn-market-web-components/{p-7b7ca449.system.entry.js → p-d26c007c.system.entry.js} +1 -1
- package/pn-market-web-components/{p-9b758fa4.system.entry.js → p-db914a4b.system.entry.js} +1 -1
- package/pn-market-web-components/p-dc136523.entry.js +1 -0
- package/pn-market-web-components/{p-f9e862db.entry.js → p-df1142cc.entry.js} +1 -1
- package/pn-market-web-components/{p-a5eaa1b6.system.entry.js → p-df33a4a6.system.entry.js} +1 -1
- package/pn-market-web-components/{p-ceddef4d.entry.js → p-dfffbb3d.entry.js} +1 -1
- package/pn-market-web-components/{p-fc27fb49.entry.js → p-e0a868a6.entry.js} +1 -1
- package/pn-market-web-components/{p-9f49664e.system.entry.js → p-e1d6f2b2.system.entry.js} +1 -1
- package/pn-market-web-components/{p-bfee099c.system.entry.js → p-e281e7dc.system.entry.js} +1 -1
- package/pn-market-web-components/{p-e0cb8b29.entry.js → p-e4549959.entry.js} +1 -1
- package/pn-market-web-components/{p-ad1f9612.system.entry.js → p-e4d68a16.system.entry.js} +1 -1
- package/pn-market-web-components/{p-97281fd6.entry.js → p-e57c16c9.entry.js} +1 -1
- package/pn-market-web-components/p-ec116d47.system.entry.js +1 -0
- package/pn-market-web-components/{p-894178a2.system.entry.js → p-ed1aa2f7.system.entry.js} +1 -1
- package/pn-market-web-components/p-ed762a04.entry.js +1 -0
- package/pn-market-web-components/p-eda2b0f9.entry.js +1 -0
- package/pn-market-web-components/{p-e372332f.system.entry.js → p-ee7de540.system.entry.js} +1 -1
- package/pn-market-web-components/{p-93e3b8cc.entry.js → p-ee7e1e28.entry.js} +1 -1
- package/pn-market-web-components/{p-7613b490.system.entry.js → p-ef420f01.system.entry.js} +1 -1
- package/pn-market-web-components/{p-7902d31a.system.entry.js → p-effe3f0b.system.entry.js} +1 -1
- package/pn-market-web-components/{p-745eef3e.entry.js → p-f11a88f5.entry.js} +1 -1
- package/pn-market-web-components/{p-d3d78acd.system.entry.js → p-f1d6421f.system.entry.js} +1 -1
- package/pn-market-web-components/{p-02dba6d3.system.entry.js → p-f2a0ac91.system.entry.js} +1 -1
- package/pn-market-web-components/{p-7480e40c.entry.js → p-f301e959.entry.js} +1 -1
- package/pn-market-web-components/{p-73ac15b9.system.entry.js → p-f3a3836b.system.entry.js} +1 -1
- package/pn-market-web-components/{p-f91eb6a9.system.entry.js → p-f56072ab.system.entry.js} +1 -1
- package/pn-market-web-components/{p-abef3453.entry.js → p-f5bacc7a.entry.js} +1 -1
- package/pn-market-web-components/{p-2c29062d.entry.js → p-f94b2f7c.entry.js} +1 -1
- package/pn-market-web-components/{p-1d088d9c.entry.js → p-fbd8d16a.entry.js} +1 -1
- package/pn-market-web-components/{p-97a9ce4f.system.entry.js → p-fc83cc7b.system.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 +1 -0
- package/types/components/media/pn-media-block/pn-media-block.d.ts +1 -1
- package/types/components/widgets/pn-hero-block-international/pn-hero-block-international.d.ts +14 -0
- package/types/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.d.ts +1 -1
- package/types/components.d.ts +27 -2
- package/umd/pn-marketweb-init.js +1 -1
- package/umd/pn-marketweb-salesforce.js +1 -1
- package/esm-es5/index-6e611ed9.js +0 -1
- package/esm-es5/pn-marketweb-siteheader-store-f31ee409.js +0 -1
- package/pn-market-web-components/p-03981c36.entry.js +0 -1
- package/pn-market-web-components/p-0cb0317e.system.js +0 -1
- package/pn-market-web-components/p-1caef6e7.js +0 -1
- package/pn-market-web-components/p-1cd40ab8.js +0 -1
- package/pn-market-web-components/p-250b0083.entry.js +0 -1
- package/pn-market-web-components/p-326d57d0.entry.js +0 -1
- package/pn-market-web-components/p-3542525e.system.entry.js +0 -1
- package/pn-market-web-components/p-3b5df6ae.entry.js +0 -1
- package/pn-market-web-components/p-40fc893a.js +0 -1
- package/pn-market-web-components/p-4c4f7ab0.entry.js +0 -1
- package/pn-market-web-components/p-4f38aeea.entry.js +0 -1
- package/pn-market-web-components/p-50ea2036.system.js +0 -1
- package/pn-market-web-components/p-5a55d3ef.js +0 -2
- package/pn-market-web-components/p-6131fdb9.entry.js +0 -1
- package/pn-market-web-components/p-613c6df4.entry.js +0 -1
- package/pn-market-web-components/p-626a68dc.system.js +0 -2
- package/pn-market-web-components/p-68e68770.entry.js +0 -1
- package/pn-market-web-components/p-76563549.entry.js +0 -1
- package/pn-market-web-components/p-8c9da166.entry.js +0 -1
- package/pn-market-web-components/p-90dafa04.entry.js +0 -1
- package/pn-market-web-components/p-978a7be6.system.entry.js +0 -1
- package/pn-market-web-components/p-9a6ee73f.js +0 -1
- package/pn-market-web-components/p-a57848a9.system.entry.js +0 -1
- package/pn-market-web-components/p-ac275a13.entry.js +0 -1
- package/pn-market-web-components/p-c475abe8.system.js +0 -1
- package/pn-market-web-components/p-cdf31352.entry.js +0 -1
- package/pn-market-web-components/p-e28fcf9c.entry.js +0 -1
- package/pn-market-web-components/p-f550b051.entry.js +0 -1
- 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
|
-
<
|
|
14
|
-
<
|
|
15
|
-
<
|
|
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" ?
|
|
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,
|
package/collection/components/widgets/pn-hero-block-international/assets/logo-international.svg
ADDED
|
@@ -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
|
+
};
|