@postnord/pn-marketweb-components 3.5.2 → 4.0.0
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/FetchHelper-2d4c697c.js +85 -0
- package/cjs/FetchHelper-2d4c697c.js.map +1 -0
- package/cjs/HeadingTag-19376e1f.js +12 -0
- package/cjs/HeadingTag-19376e1f.js.map +1 -0
- package/cjs/LocalStorageService-e1ee3fac.js +66 -0
- package/cjs/LocalStorageService-e1ee3fac.js.map +1 -0
- package/cjs/{FetchHelper-e951824f.js → MarketWebContextService-0fdc43c8.js} +1 -82
- package/cjs/MarketWebContextService-0fdc43c8.js.map +1 -0
- package/cjs/alert_exclamation_circle-24f29a5b.js +8 -0
- package/cjs/alert_exclamation_circle-24f29a5b.js.map +1 -0
- package/cjs/angle_up-049ec1d8.js +12 -0
- package/cjs/angle_up-049ec1d8.js.map +1 -0
- package/cjs/close-9e014a80.js +8 -0
- package/cjs/close-9e014a80.js.map +1 -0
- package/cjs/{index-1d8c9211.js → index-4067c6a5.js} +2 -2
- package/cjs/{index-1d8c9211.js.map → index-4067c6a5.js.map} +1 -1
- package/cjs/{index-34e1c673.js → index-b02670c2.js} +65 -8
- package/cjs/index-b02670c2.js.map +1 -0
- package/cjs/index.cjs.js +1 -1
- package/cjs/loader.cjs.js +2 -2
- package/cjs/pn-address-autofill.cjs.entry.js +51 -75
- package/cjs/pn-address-autofill.cjs.entry.js.map +1 -1
- package/cjs/pn-animated-tile.cjs.entry.js +2 -2
- package/cjs/pn-animated-tile.cjs.entry.js.map +1 -1
- package/cjs/pn-app-banner.cjs.entry.js +3 -3
- package/cjs/pn-app-banner.cjs.entry.js.map +1 -1
- package/cjs/pn-bonus-progressbar-level.cjs.entry.js +2 -2
- package/cjs/pn-bonus-progressbar-level.cjs.entry.js.map +1 -1
- package/cjs/pn-bonus-progressbar.cjs.entry.js +2 -2
- package/cjs/pn-bonus-progressbar.cjs.entry.js.map +1 -1
- package/cjs/pn-breakpoints.cjs.entry.js +3 -3
- package/cjs/pn-breakpoints.cjs.entry.js.map +1 -1
- package/cjs/pn-chart.cjs.entry.js +2 -2
- package/cjs/pn-chart.cjs.entry.js.map +1 -1
- package/cjs/pn-charts-card.cjs.entry.js +2 -2
- package/cjs/pn-charts-card.cjs.entry.js.map +1 -1
- package/cjs/pn-chat-message_2.cjs.entry.js +346 -0
- package/cjs/pn-chat-message_2.cjs.entry.js.map +1 -0
- package/cjs/pn-chat.cjs.entry.js +474 -0
- package/cjs/pn-chat.cjs.entry.js.map +1 -0
- package/cjs/pn-chat.service-eaf6ed50.js +157 -0
- package/cjs/pn-chat.service-eaf6ed50.js.map +1 -0
- package/cjs/pn-choice-button.cjs.entry.js +2 -2
- package/cjs/pn-choice-button.cjs.entry.js.map +1 -1
- package/cjs/pn-cta-block.cjs.entry.js +2 -2
- package/cjs/pn-cta-block.cjs.entry.js.map +1 -1
- package/cjs/pn-customernumber-selector-option.cjs.entry.js +3 -3
- package/cjs/pn-customernumber-selector-option.cjs.entry.js.map +1 -1
- package/cjs/pn-customernumber-selector.cjs.entry.js +4 -9
- package/cjs/pn-customernumber-selector.cjs.entry.js.map +1 -1
- package/cjs/pn-date-and-time.cjs.entry.js +2 -2
- package/cjs/pn-date-and-time.cjs.entry.js.map +1 -1
- package/cjs/pn-dropdown-choice-adds-row.cjs.entry.js +20 -8
- package/cjs/pn-dropdown-choice-adds-row.cjs.entry.js.map +1 -1
- package/cjs/pn-dropdown-with-multi-input-rows-row.cjs.entry.js +2 -2
- package/cjs/pn-dropdown-with-multi-input-rows-row.cjs.entry.js.map +1 -1
- package/cjs/pn-dropdown-with-multi-input-rows.cjs.entry.js +2 -2
- package/cjs/pn-dropdown-with-multi-input-rows.cjs.entry.js.map +1 -1
- package/cjs/pn-filter-checkbox.cjs.entry.js +2 -2
- package/cjs/pn-filter-checkbox.cjs.entry.js.map +1 -1
- package/cjs/pn-find-price-result.cjs.entry.js +5 -5
- package/cjs/pn-find-price-result.cjs.entry.js.map +1 -1
- package/cjs/{pn-find-price-store-051e931b.js → pn-find-price-store-0c8256c7.js} +2 -2
- package/cjs/{pn-find-price-store-051e931b.js.map → pn-find-price-store-0c8256c7.js.map} +1 -1
- package/cjs/pn-find-price.cjs.entry.js +6 -6
- package/cjs/pn-find-price.cjs.entry.js.map +1 -1
- package/cjs/pn-find-service-and-price-result.cjs.entry.js +5 -5
- package/cjs/pn-find-service-and-price-result.cjs.entry.js.map +1 -1
- package/cjs/{pn-find-service-and-price-store-3cec3d31.js → pn-find-service-and-price-store-13f060e0.js} +2 -2
- package/cjs/{pn-find-service-and-price-store-3cec3d31.js.map → pn-find-service-and-price-store-13f060e0.js.map} +1 -1
- package/cjs/pn-find-service-and-price.cjs.entry.js +5 -5
- package/cjs/pn-find-service-and-price.cjs.entry.js.map +1 -1
- package/cjs/pn-hero-block-international.cjs.entry.js +3 -3
- package/cjs/pn-hero-block-international.cjs.entry.js.map +1 -1
- package/cjs/pn-language-selector_9.cjs.entry.js +25 -27
- package/cjs/pn-language-selector_9.cjs.entry.js.map +1 -1
- package/cjs/pn-level-up-modal.cjs.entry.js +77 -0
- package/cjs/pn-level-up-modal.cjs.entry.js.map +1 -0
- package/cjs/pn-level-up.cjs.entry.js +139 -0
- package/cjs/pn-level-up.cjs.entry.js.map +1 -0
- package/cjs/pn-level-up.service-0e8e67c2.js +71 -0
- package/cjs/pn-level-up.service-0e8e67c2.js.map +1 -0
- package/cjs/pn-line-shape.cjs.entry.js +2 -2
- package/cjs/pn-line-shape.cjs.entry.js.map +1 -1
- package/cjs/pn-link-list.cjs.entry.js +3 -3
- package/cjs/pn-link-list.cjs.entry.js.map +1 -1
- package/cjs/pn-mainnav-link.cjs.entry.js +5 -5
- package/cjs/pn-mainnav-link.cjs.entry.js.map +1 -1
- package/cjs/{pn-mainnav-store-1a8153fd.js → pn-mainnav-store-5732f3ca.js} +2 -2
- package/cjs/{pn-mainnav-store-1a8153fd.js.map → pn-mainnav-store-5732f3ca.js.map} +1 -1
- package/cjs/pn-market-web-components.cjs.js +2 -2
- package/cjs/pn-marketweb-icon.cjs.entry.js +3 -3
- package/cjs/pn-marketweb-icon.cjs.entry.js.map +1 -1
- package/cjs/pn-marketweb-input.cjs.entry.js +4 -6
- package/cjs/pn-marketweb-input.cjs.entry.js.map +1 -1
- package/cjs/pn-marketweb-search.cjs.entry.js +6 -5
- package/cjs/pn-marketweb-search.cjs.entry.js.map +1 -1
- package/cjs/pn-marketweb-sitefooter.cjs.entry.js +7 -10
- package/cjs/pn-marketweb-sitefooter.cjs.entry.js.map +1 -1
- package/cjs/{pn-marketweb-siteheader-login-button_5.cjs.entry.js → pn-marketweb-siteheader-login-button_4.cjs.entry.js} +8 -26
- package/cjs/pn-marketweb-siteheader-login-button_4.cjs.entry.js.map +1 -0
- package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +4 -4
- package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js.map +1 -1
- package/cjs/pn-marketweb-siteheader-login-mypage-button.cjs.entry.js +25 -0
- package/cjs/pn-marketweb-siteheader-login-mypage-button.cjs.entry.js.map +1 -0
- package/cjs/{pn-marketweb-siteheader-store-75853609.js → pn-marketweb-siteheader-store-ce9d9ac7.js} +2 -2
- package/cjs/{pn-marketweb-siteheader-store-75853609.js.map → pn-marketweb-siteheader-store-ce9d9ac7.js.map} +1 -1
- package/cjs/pn-marketweb-siteheader.cjs.entry.js +11 -10
- package/cjs/pn-marketweb-siteheader.cjs.entry.js.map +1 -1
- package/cjs/pn-marketweb-table.cjs.entry.js +459 -0
- package/cjs/pn-marketweb-table.cjs.entry.js.map +1 -0
- package/cjs/pn-media-block.cjs.entry.js +6 -6
- package/cjs/pn-media-block.cjs.entry.js.map +1 -1
- package/cjs/pn-multi-row-connected-dropdown-row.cjs.entry.js +2 -2
- package/cjs/pn-multi-row-connected-dropdown-row.cjs.entry.js.map +1 -1
- package/cjs/pn-multi-row-connected-dropdown.cjs.entry.js +2 -2
- package/cjs/pn-multi-row-connected-dropdown.cjs.entry.js.map +1 -1
- package/cjs/pn-multiple-input.cjs.entry.js +1 -1
- package/cjs/pn-parcel-tracker.cjs.entry.js +2 -2
- package/cjs/pn-parcel-tracker.cjs.entry.js.map +1 -1
- package/cjs/pn-pex-pricefinder.cjs.entry.js +3 -3
- package/cjs/pn-pex-pricefinder.cjs.entry.js.map +1 -1
- package/cjs/pn-play-on-scroll.cjs.entry.js +1 -1
- package/cjs/pn-product-card_3.cjs.entry.js +5 -5
- package/cjs/pn-product-card_3.cjs.entry.js.map +1 -1
- package/cjs/pn-product-pricelist-result.cjs.entry.js +4 -4
- package/cjs/pn-product-pricelist-result.cjs.entry.js.map +1 -1
- package/cjs/pn-product-pricelist.cjs.entry.js +6 -6
- package/cjs/pn-product-pricelist.cjs.entry.js.map +1 -1
- package/cjs/pn-product-tile-info_2.cjs.entry.js +4 -4
- package/cjs/pn-product-tile-info_2.cjs.entry.js.map +1 -1
- package/cjs/pn-product-tile.cjs.entry.js +3 -3
- package/cjs/pn-product-tile.cjs.entry.js.map +1 -1
- package/cjs/pn-profile-modal-customernumber.cjs.entry.js +3 -3
- package/cjs/pn-profile-modal-customernumber.cjs.entry.js.map +1 -1
- package/cjs/pn-profile-modal-profile.cjs.entry.js +6 -6
- package/cjs/pn-profile-modal-profile.cjs.entry.js.map +1 -1
- package/cjs/{pn-profile-modal-store-3b6fea24.js → pn-profile-modal-store-16f8092a.js} +2 -2
- package/cjs/{pn-profile-modal-store-3b6fea24.js.map → pn-profile-modal-store-16f8092a.js.map} +1 -1
- package/cjs/pn-profile-modal-type.cjs.entry.js +5 -5
- package/cjs/pn-profile-modal-type.cjs.entry.js.map +1 -1
- package/cjs/pn-profile-modal.cjs.entry.js +5 -5
- package/cjs/pn-profile-modal.cjs.entry.js.map +1 -1
- package/cjs/pn-profile-selector-option.cjs.entry.js +3 -3
- package/cjs/pn-profile-selector-option.cjs.entry.js.map +1 -1
- package/cjs/pn-profile-selector.cjs.entry.js +3 -3
- package/cjs/pn-profile-selector.cjs.entry.js.map +1 -1
- package/cjs/pn-proxio-findprice-result.cjs.entry.js +3 -3
- package/cjs/pn-proxio-findprice-result.cjs.entry.js.map +1 -1
- package/cjs/pn-proxio-findprice.cjs.entry.js +9 -8
- package/cjs/pn-proxio-findprice.cjs.entry.js.map +1 -1
- package/cjs/pn-proxio-pricegroup.cjs.entry.js +6 -5
- package/cjs/pn-proxio-pricegroup.cjs.entry.js.map +1 -1
- package/cjs/pn-proxio-productcard_4.cjs.entry.js +8 -8
- package/cjs/pn-proxio-productcard_4.cjs.entry.js.map +1 -1
- package/cjs/pn-qr-code-generator.cjs.entry.js +2945 -0
- package/cjs/pn-qr-code-generator.cjs.entry.js.map +1 -0
- package/cjs/pn-quick-cta.cjs.entry.js +2 -2
- package/cjs/pn-quick-cta.cjs.entry.js.map +1 -1
- package/cjs/pn-quote-card.cjs.entry.js +2 -2
- package/cjs/pn-quote-card.cjs.entry.js.map +1 -1
- package/cjs/pn-scroll_2.cjs.entry.js +2 -2
- package/cjs/pn-scroll_2.cjs.entry.js.map +1 -1
- package/cjs/pn-search.cjs.entry.js +54 -0
- package/cjs/pn-search.cjs.entry.js.map +1 -0
- package/cjs/pn-share-item.cjs.entry.js +2 -2
- package/cjs/pn-share-item.cjs.entry.js.map +1 -1
- package/cjs/pn-share.cjs.entry.js +2 -2
- package/cjs/pn-share.cjs.entry.js.map +1 -1
- package/cjs/pn-sidenav-level.cjs.entry.js +5 -5
- package/cjs/pn-sidenav-level.cjs.entry.js.map +1 -1
- package/cjs/pn-sidenav-link.cjs.entry.js +5 -5
- package/cjs/pn-sidenav-link.cjs.entry.js.map +1 -1
- package/cjs/{pn-sidenav-store-cf9c4996.js → pn-sidenav-store-236c8806.js} +2 -2
- package/cjs/{pn-sidenav-store-cf9c4996.js.map → pn-sidenav-store-236c8806.js.map} +1 -1
- package/cjs/pn-sidenav-togglebutton.cjs.entry.js +5 -5
- package/cjs/pn-sidenav-togglebutton.cjs.entry.js.map +1 -1
- package/cjs/pn-sidenav.cjs.entry.js +5 -5
- package/cjs/pn-sidenav.cjs.entry.js.map +1 -1
- package/cjs/pn-site-footer_3.cjs.entry.js +7 -7
- package/cjs/pn-site-footer_3.cjs.entry.js.map +1 -1
- package/cjs/pn-spotlight.cjs.entry.js +2 -2
- package/cjs/pn-spotlight.cjs.entry.js.map +1 -1
- package/cjs/pn-stats-info-data.cjs.entry.js +2 -2
- package/cjs/pn-stats-info-data.cjs.entry.js.map +1 -1
- package/cjs/pn-stats-info.cjs.entry.js +2 -2
- package/cjs/pn-stats-info.cjs.entry.js.map +1 -1
- package/cjs/pn-teaser-card.cjs.entry.js +5 -9
- package/cjs/pn-teaser-card.cjs.entry.js.map +1 -1
- package/cjs/pn-titletag.cjs.entry.js +3 -3
- package/cjs/pn-titletag.cjs.entry.js.map +1 -1
- package/cjs/pn-usp-promoter.cjs.entry.js +3 -3
- package/cjs/pn-usp-promoter.cjs.entry.js.map +1 -1
- package/cjs/pn-usp-simple.cjs.entry.js +56 -0
- package/cjs/pn-usp-simple.cjs.entry.js.map +1 -0
- package/collection/collection-manifest.json +10 -1
- package/collection/components/animation/pn-animated-tile/pn-animated-tile.css +25 -0
- package/collection/components/animation/pn-play-on-scroll/pn-video-overlay/pn-video-overlay.css +25 -0
- package/collection/components/cards/pn-quote-card/pn-line-shape/pn-line-shape.css +25 -0
- package/collection/components/cards/pn-quote-card/pn-quote-card.css +25 -0
- package/collection/components/cards/pn-teaser-card/pn-teaser-card.css +25 -0
- package/collection/components/cards/pn-teaser-card/pn-teaser-card.js +8 -11
- package/collection/components/cards/pn-teaser-card/pn-teaser-card.js.map +1 -1
- package/collection/components/cards/pn-teaser-card/pn-teaser-card.stories.js +3 -3
- package/collection/components/charts/pn-chart/pn-chart.css +25 -0
- package/collection/components/charts/pn-charts-card/pn-charts-card.css +25 -0
- package/collection/components/cta/pn-cta-block/pn-cta-block.css +25 -0
- package/collection/components/cta/pn-parcel-tracker/pn-parcel-tracker.css +25 -0
- package/collection/components/cta/pn-quick-cta/pn-quick-cta.css +25 -0
- package/collection/components/cta/pn-share/pn-share-item.css +25 -0
- package/collection/components/cta/pn-share/pn-share.css +25 -0
- package/collection/components/cta/pn-spotlight/pn-spotlight.css +25 -0
- package/collection/components/data-visualization/pn-stats-info/pn-stats-info-data/pn-stats-info-data.css +25 -0
- package/collection/components/data-visualization/pn-stats-info/pn-stats-info.css +25 -0
- package/collection/components/input/pn-address-autofill/pn-address-autofill.css +31 -1
- package/collection/components/input/pn-address-autofill/pn-address-autofill.js +58 -68
- package/collection/components/input/pn-address-autofill/pn-address-autofill.js.map +1 -1
- package/collection/components/input/pn-address-autofill/pn-address-autofill.stories.js +2 -1
- package/collection/components/input/pn-address-autofill/translations.js +6 -3
- package/collection/components/input/pn-address-autofill/translations.js.map +1 -1
- package/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar-level.css +25 -0
- package/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar.css +25 -0
- package/collection/components/input/pn-choice-button/pn-choice-button.css +25 -0
- package/collection/components/input/pn-date-and-time/pn-date-and-time.css +25 -0
- package/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.css +25 -0
- package/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.js +18 -6
- package/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.js.map +1 -1
- package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows-row.css +25 -0
- package/collection/components/input/pn-dropdown-with-multi-input-rows/pn-dropdown-with-multi-input-rows.css +25 -0
- package/collection/components/input/pn-filter-checkbox/pn-filter-checkbox.css +25 -0
- package/collection/components/input/pn-marketweb-input/pn-marketweb-input.css +25 -0
- package/collection/components/input/pn-marketweb-search/pn-marketweb-search.css +25 -0
- package/collection/components/input/pn-marketweb-search/pn-marketweb-search.js +4 -3
- package/collection/components/input/pn-marketweb-search/pn-marketweb-search.js.map +1 -1
- package/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown-row.css +25 -0
- package/collection/components/input/pn-multi-row-connected-dropdown/pn-multi-row-connected-dropdown.css +25 -0
- package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.css +50 -0
- package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.js +1 -1
- package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.js.map +1 -1
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.css +25 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.css +25 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.css +25 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.js +1 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.js.map +1 -1
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.css +25 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js +1 -1
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js.map +1 -1
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search.css +25 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-unified-login.js +1 -37
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-unified-login.js.map +1 -1
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.css +25 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +4 -4
- package/collection/components/media/pn-media-block/pn-media-block.css +25 -0
- package/collection/components/media/pn-media-block/pn-media-block.js +8 -8
- package/collection/components/media/pn-media-block/pn-media-block.js.map +1 -1
- package/collection/components/media/pn-media-block/pn-media-block.stories.js +76 -76
- package/collection/components/minor/pn-app-banner/pn-app-banner.css +25 -0
- package/collection/components/minor/pn-app-banner/pn-app-banner.js +1 -1
- package/collection/components/minor/pn-marketweb-icon/pn-marketweb-icon.css +25 -0
- package/collection/components/minor/pn-marketweb-icon/pn-marketweb-icon.js +1 -1
- package/collection/components/minor/pn-swan/pn-swan.css +25 -0
- package/collection/components/minor/pn-swan/pn-swan.js +1 -1
- package/collection/components/minor/pn-titletag/pn-titletag.css +25 -0
- package/collection/components/minor/pn-titletag/pn-titletag.js +1 -1
- package/collection/components/navigation/pn-language-selector/pn-language-selector-option.css +50 -0
- package/collection/components/navigation/pn-language-selector/pn-language-selector-option.js +1 -1
- package/collection/components/navigation/pn-language-selector/pn-language-selector.css +50 -0
- package/collection/components/navigation/pn-language-selector/pn-language-selector.js +1 -1
- package/collection/components/navigation/pn-mainnav/pn-mainnav-level.css +25 -0
- package/collection/components/navigation/pn-mainnav/pn-mainnav-level.js +2 -2
- package/collection/components/navigation/pn-mainnav/pn-mainnav-link.css +25 -0
- package/collection/components/navigation/pn-mainnav/pn-mainnav-link.js +1 -1
- package/collection/components/navigation/pn-mainnav/pn-mainnav-list.css +25 -0
- package/collection/components/navigation/pn-mainnav/pn-mainnav-list.js +1 -1
- package/collection/components/navigation/pn-mainnav/pn-mainnav.css +25 -0
- package/collection/components/navigation/pn-mainnav/pn-mainnav.js +1 -1
- package/collection/components/navigation/pn-sidenav/pn-sidenav-level.css +25 -0
- package/collection/components/navigation/pn-sidenav/pn-sidenav-level.js +1 -1
- package/collection/components/navigation/pn-sidenav/pn-sidenav-link.css +25 -0
- package/collection/components/navigation/pn-sidenav/pn-sidenav-link.js +1 -1
- package/collection/components/navigation/pn-sidenav/pn-sidenav-togglebutton.css +25 -0
- package/collection/components/navigation/pn-sidenav/pn-sidenav-togglebutton.js +1 -1
- package/collection/components/navigation/pn-sidenav/pn-sidenav.css +25 -0
- package/collection/components/navigation/pn-sidenav/pn-sidenav.js +1 -1
- package/collection/components/navigation/pn-site-footer/pn-site-footer-col.css +50 -0
- package/collection/components/navigation/pn-site-footer/pn-site-footer-col.js +1 -1
- package/collection/components/navigation/pn-site-footer/pn-site-footer.css +50 -0
- package/collection/components/navigation/pn-site-footer/pn-site-footer.js +1 -1
- package/collection/components/navigation/pn-site-selector/pn-site-selector-item.css +25 -0
- package/collection/components/navigation/pn-site-selector/pn-site-selector-item.js +1 -1
- package/collection/components/navigation/pn-site-selector/pn-site-selector.css +25 -0
- package/collection/components/navigation/pn-site-selector/pn-site-selector.js +1 -1
- package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector-option.css +25 -0
- package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector-option.js +1 -1
- package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector.css +25 -0
- package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector.js +1 -1
- package/collection/components/profile/pn-profile-modal/pn-profile-modal-customernumber.css +25 -0
- package/collection/components/profile/pn-profile-modal/pn-profile-modal-customernumber.js +1 -1
- package/collection/components/profile/pn-profile-modal/pn-profile-modal-profile.css +25 -0
- package/collection/components/profile/pn-profile-modal/pn-profile-modal-profile.js +2 -2
- package/collection/components/profile/pn-profile-modal/pn-profile-modal-type.css +25 -0
- package/collection/components/profile/pn-profile-modal/pn-profile-modal-type.js +1 -1
- package/collection/components/profile/pn-profile-modal/pn-profile-modal.css +25 -0
- package/collection/components/profile/pn-profile-modal/pn-profile-modal.js +1 -1
- package/collection/components/profile/pn-profile-selector/pn-profile-selector-option.css +25 -0
- package/collection/components/profile/pn-profile-selector/pn-profile-selector-option.js +1 -1
- package/collection/components/profile/pn-profile-selector/pn-profile-selector.css +25 -0
- package/collection/components/profile/pn-profile-selector/pn-profile-selector.js +1 -1
- package/collection/components/utilities/pn-breakpoints/pn-breakpoints.css +25 -0
- package/collection/components/utilities/pn-breakpoints/pn-breakpoints.js +1 -1
- package/collection/components/widgets/pn-chat/pn-chat-message/pn-chat-message.css +146 -0
- package/collection/components/widgets/pn-chat/pn-chat-message/pn-chat-message.js +118 -0
- package/collection/components/widgets/pn-chat/pn-chat-message/pn-chat-message.js.map +1 -0
- package/collection/components/widgets/pn-chat/pn-chat-message/pn-chat-message.stories.js +219 -0
- package/collection/components/widgets/pn-chat/pn-chat-message/pn-chat-message.stories.js.map +1 -0
- package/collection/components/widgets/pn-chat/pn-chat-stories-constants.js +243 -0
- package/collection/components/widgets/pn-chat/pn-chat-stories-constants.js.map +1 -0
- package/collection/components/widgets/pn-chat/pn-chat.css +238 -0
- package/collection/components/widgets/pn-chat/pn-chat.js +840 -0
- package/collection/components/widgets/pn-chat/pn-chat.js.map +1 -0
- package/collection/components/widgets/pn-chat/pn-chat.models.js +2 -0
- package/collection/components/widgets/pn-chat/pn-chat.models.js.map +1 -0
- package/collection/components/widgets/pn-chat/pn-chat.service.js +151 -0
- package/collection/components/widgets/pn-chat/pn-chat.service.js.map +1 -0
- package/collection/components/widgets/pn-chat/pn-chat.stories.js +116 -0
- package/collection/components/widgets/pn-chat/pn-chat.stories.js.map +1 -0
- package/collection/components/widgets/pn-chat/translations.js +78 -0
- package/collection/components/widgets/pn-chat/translations.js.map +1 -0
- package/collection/components/widgets/pn-chat/types.js +2 -0
- package/collection/components/widgets/pn-chat/types.js.map +1 -0
- package/collection/components/widgets/pn-find-price/pn-find-price-result.css +25 -0
- package/collection/components/widgets/pn-find-price/pn-find-price-result.js +1 -1
- package/collection/components/widgets/pn-find-price/pn-find-price.css +25 -0
- package/collection/components/widgets/pn-find-price/pn-find-price.js +2 -2
- package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price-result.css +25 -0
- package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price-result.js +1 -1
- package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price.css +25 -0
- package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price.js +1 -1
- package/collection/components/widgets/pn-hero-block-international/pn-hero-block-international.css +25 -0
- package/collection/components/widgets/pn-hero-block-international/pn-hero-block-international.js +1 -1
- package/collection/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.css +94 -0
- package/collection/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.js +262 -0
- package/collection/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.js.map +1 -0
- package/collection/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.stories.js +31 -0
- package/collection/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.stories.js.map +1 -0
- package/collection/components/widgets/pn-level-up/pn-level-up.css +114 -0
- package/collection/components/widgets/pn-level-up/pn-level-up.js +476 -0
- package/collection/components/widgets/pn-level-up/pn-level-up.js.map +1 -0
- package/collection/components/widgets/pn-level-up/pn-level-up.models.js +2 -0
- package/collection/components/widgets/pn-level-up/pn-level-up.models.js.map +1 -0
- package/collection/components/widgets/pn-level-up/pn-level-up.service.js +65 -0
- package/collection/components/widgets/pn-level-up/pn-level-up.service.js.map +1 -0
- package/collection/components/widgets/pn-level-up/pn-level-up.stories.js +88 -0
- package/collection/components/widgets/pn-level-up/pn-level-up.stories.js.map +1 -0
- package/collection/components/widgets/pn-level-up/types.js +2 -0
- package/collection/components/widgets/pn-level-up/types.js.map +1 -0
- package/collection/components/widgets/pn-link-list/pn-link-list.css +25 -0
- package/collection/components/widgets/pn-link-list/pn-link-list.js +1 -1
- package/collection/components/widgets/pn-marketweb-carousel/pn-marketweb-carousel.css +96 -0
- package/collection/components/widgets/pn-marketweb-carousel/pn-marketweb-carousel.js +494 -0
- package/collection/components/widgets/pn-marketweb-carousel/pn-marketweb-carousel.js.map +1 -0
- package/collection/components/widgets/pn-marketweb-carousel/pn-marketweb-carousel.stories.js +82 -0
- package/collection/components/widgets/pn-marketweb-carousel/pn-marketweb-carousel.stories.js.map +1 -0
- package/collection/components/widgets/pn-marketweb-table/pn-marketweb-table.css +255 -0
- package/collection/components/widgets/pn-marketweb-table/pn-marketweb-table.js +701 -0
- package/collection/components/widgets/pn-marketweb-table/pn-marketweb-table.js.map +1 -0
- package/collection/components/widgets/pn-marketweb-table/pn-marketweb-table.service.js +38 -0
- package/collection/components/widgets/pn-marketweb-table/pn-marketweb-table.service.js.map +1 -0
- package/collection/components/widgets/pn-marketweb-table/pn-marketweb-table.stories.js +122 -0
- package/collection/components/widgets/pn-marketweb-table/pn-marketweb-table.stories.js.map +1 -0
- package/collection/components/widgets/pn-marketweb-table/translations.js +73 -0
- package/collection/components/widgets/pn-marketweb-table/translations.js.map +1 -0
- package/collection/components/widgets/pn-marketweb-table/types.js +2 -0
- package/collection/components/widgets/pn-marketweb-table/types.js.map +1 -0
- package/collection/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.css +25 -0
- package/collection/components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.js +1 -1
- package/collection/components/widgets/pn-product-card/pn-product-card-info.css +25 -0
- package/collection/components/widgets/pn-product-card/pn-product-card-price.css +25 -0
- package/collection/components/widgets/pn-product-card/pn-product-card.css +25 -0
- package/collection/components/widgets/pn-product-card/pn-product-card.js +1 -1
- package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist-result.css +25 -0
- package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist-result.js +1 -1
- package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.css +25 -0
- package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.js +2 -2
- package/collection/components/widgets/pn-product-tile/pn-product-tile-info.css +25 -0
- package/collection/components/widgets/pn-product-tile/pn-product-tile-info.js +1 -1
- package/collection/components/widgets/pn-product-tile/pn-product-tile-price.css +25 -0
- package/collection/components/widgets/pn-product-tile/pn-product-tile.css +25 -0
- package/collection/components/widgets/pn-product-tile/pn-product-tile.js +1 -1
- package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.css +25 -0
- package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.js +1 -1
- package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice.css +25 -0
- package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice.js +3 -3
- package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.css +25 -0
- package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.js +1 -1
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-description.css +25 -0
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-description.js +1 -1
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-information.css +25 -0
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-information.js +1 -1
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-pricelink.css +25 -0
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard.css +25 -0
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard.js +1 -1
- package/collection/components/widgets/pn-qr-code-generator/pn-qr-code-generator.css +61 -0
- package/collection/components/widgets/pn-qr-code-generator/pn-qr-code-generator.js +198 -0
- package/collection/components/widgets/pn-qr-code-generator/pn-qr-code-generator.js.map +1 -0
- package/collection/components/widgets/pn-qr-code-generator/pn-qr-code-generator.stories.js +29 -0
- package/collection/components/widgets/pn-qr-code-generator/pn-qr-code-generator.stories.js.map +1 -0
- package/collection/components/widgets/pn-search/pn-search.css +140 -0
- package/collection/components/widgets/pn-search/pn-search.js +368 -0
- package/collection/components/widgets/pn-search/pn-search.js.map +1 -0
- package/collection/components/widgets/pn-search/pn-search.stories.js +54 -0
- package/collection/components/widgets/pn-search/pn-search.stories.js.map +1 -0
- package/collection/components/widgets/pn-usp-promoter/pn-usp-promoter.css +25 -0
- package/collection/components/widgets/pn-usp-promoter/pn-usp-promoter.js +1 -1
- package/collection/components/widgets/pn-usp-simple/pn-usp-simple.css +116 -0
- package/collection/components/widgets/pn-usp-simple/pn-usp-simple.js +269 -0
- package/collection/components/widgets/pn-usp-simple/pn-usp-simple.js.map +1 -0
- package/collection/components/widgets/pn-usp-simple/pn-usp-simple.stories.js +63 -0
- package/collection/components/widgets/pn-usp-simple/pn-usp-simple.stories.js.map +1 -0
- package/collection/globals/HeadingTag.js +2 -2
- package/collection/globals/HeadingTag.js.map +1 -1
- package/collection/globals/LocalStorageService.js +50 -0
- package/collection/globals/LocalStorageService.js.map +1 -0
- package/collection/globals/ScreensizeDetect.js +80 -0
- package/collection/globals/ScreensizeDetect.js.map +1 -0
- package/collection/globals/types.js +2 -0
- package/collection/globals/types.js.map +1 -0
- package/collection/utils/utils.js +11 -0
- package/collection/utils/utils.js.map +1 -1
- package/components/FetchHelper.js +1 -243
- package/components/FetchHelper.js.map +1 -1
- package/components/HeadingTag.js +10 -0
- package/components/HeadingTag.js.map +1 -0
- package/components/LocalStorageService.js +64 -0
- package/components/LocalStorageService.js.map +1 -0
- package/{esm/FetchHelper-746f2bb6.js → components/MarketWebContextService.js} +2 -82
- package/components/MarketWebContextService.js.map +1 -0
- package/components/alert_exclamation_circle.js +6 -0
- package/components/alert_exclamation_circle.js.map +1 -0
- package/components/angle_up.js +9 -0
- package/components/angle_up.js.map +1 -0
- package/components/close.js +6 -0
- package/components/close.js.map +1 -0
- package/components/pn-address-autofill.js +50 -73
- package/components/pn-address-autofill.js.map +1 -1
- package/components/pn-animated-tile.js +1 -1
- package/components/pn-animated-tile.js.map +1 -1
- package/components/pn-app-banner.js +2 -2
- package/components/pn-app-banner.js.map +1 -1
- package/components/pn-bonus-progressbar-level.js +1 -1
- package/components/pn-bonus-progressbar-level.js.map +1 -1
- package/components/pn-bonus-progressbar.js +1 -1
- package/components/pn-bonus-progressbar.js.map +1 -1
- package/components/pn-breakpoints.js +2 -2
- package/components/pn-breakpoints.js.map +1 -1
- package/components/pn-chart.js +1 -1
- package/components/pn-chart.js.map +1 -1
- package/components/pn-charts-card.js +1 -1
- package/components/pn-charts-card.js.map +1 -1
- package/components/pn-chat-message.d.ts +11 -0
- package/components/pn-chat-message.js +8 -0
- package/components/pn-chat-message.js.map +1 -0
- package/components/pn-chat-message2.js +69 -0
- package/components/pn-chat-message2.js.map +1 -0
- package/components/pn-chat.d.ts +11 -0
- package/components/pn-chat.js +534 -0
- package/components/pn-chat.js.map +1 -0
- package/components/pn-chat.service.js +155 -0
- package/components/pn-chat.service.js.map +1 -0
- package/components/pn-choice-button2.js +1 -1
- package/components/pn-choice-button2.js.map +1 -1
- package/components/pn-cta-block.js +1 -1
- package/components/pn-cta-block.js.map +1 -1
- package/components/pn-customernumber-selector-option.js +2 -2
- package/components/pn-customernumber-selector-option.js.map +1 -1
- package/components/pn-customernumber-selector.js +3 -8
- package/components/pn-customernumber-selector.js.map +1 -1
- package/components/pn-date-and-time.js +1 -1
- package/components/pn-date-and-time.js.map +1 -1
- package/components/pn-dropdown-choice-adds-row.js +19 -7
- package/components/pn-dropdown-choice-adds-row.js.map +1 -1
- package/components/pn-dropdown-with-multi-input-rows-row2.js +1 -1
- package/components/pn-dropdown-with-multi-input-rows-row2.js.map +1 -1
- package/components/pn-dropdown-with-multi-input-rows.js +1 -1
- package/components/pn-dropdown-with-multi-input-rows.js.map +1 -1
- package/components/pn-filter-checkbox2.js +1 -1
- package/components/pn-filter-checkbox2.js.map +1 -1
- package/components/pn-find-price-result2.js +2 -2
- package/components/pn-find-price-result2.js.map +1 -1
- package/components/pn-find-price.js +3 -3
- package/components/pn-find-price.js.map +1 -1
- package/components/pn-find-service-and-price-result2.js +2 -2
- package/components/pn-find-service-and-price-result2.js.map +1 -1
- package/components/pn-find-service-and-price.js +2 -2
- package/components/pn-find-service-and-price.js.map +1 -1
- package/components/pn-hero-block-international.js +2 -2
- package/components/pn-hero-block-international.js.map +1 -1
- package/components/pn-language-selector-option2.js +2 -2
- package/components/pn-language-selector-option2.js.map +1 -1
- package/components/pn-language-selector2.js +2 -2
- package/components/pn-language-selector2.js.map +1 -1
- package/components/pn-level-up-modal.d.ts +11 -0
- package/components/pn-level-up-modal.js +8 -0
- package/components/pn-level-up-modal.js.map +1 -0
- package/components/pn-level-up-modal2.js +170 -0
- package/components/pn-level-up-modal2.js.map +1 -0
- package/components/pn-level-up.d.ts +11 -0
- package/components/pn-level-up.js +185 -0
- package/components/pn-level-up.js.map +1 -0
- package/components/pn-line-shape.js +1 -1
- package/components/pn-line-shape.js.map +1 -1
- package/components/pn-link-list.js +2 -2
- package/components/pn-link-list.js.map +1 -1
- package/components/pn-mainnav-level2.js +3 -3
- package/components/pn-mainnav-level2.js.map +1 -1
- package/components/pn-mainnav-link2.js +2 -2
- package/components/pn-mainnav-link2.js.map +1 -1
- package/components/pn-mainnav-list2.js +2 -2
- package/components/pn-mainnav-list2.js.map +1 -1
- package/components/pn-mainnav2.js +3 -5
- package/components/pn-mainnav2.js.map +1 -1
- package/components/pn-marketweb-carousel.d.ts +11 -0
- package/components/pn-marketweb-carousel.js +8 -0
- package/components/pn-marketweb-carousel.js.map +1 -0
- package/components/pn-marketweb-carousel2.js +326 -0
- package/components/pn-marketweb-carousel2.js.map +1 -0
- package/components/pn-marketweb-icon.js +2 -2
- package/components/pn-marketweb-icon.js.map +1 -1
- package/components/pn-marketweb-input2.js +2 -4
- package/components/pn-marketweb-input2.js.map +1 -1
- package/components/pn-marketweb-search.js +1 -125
- package/components/pn-marketweb-search.js.map +1 -1
- package/components/pn-marketweb-search2.js +130 -0
- package/components/pn-marketweb-search2.js.map +1 -0
- package/components/pn-marketweb-sitefooter.js +6 -9
- package/components/pn-marketweb-sitefooter.js.map +1 -1
- package/components/pn-marketweb-siteheader-login-linklist2.js +1 -1
- package/components/pn-marketweb-siteheader-login-linklist2.js.map +1 -1
- package/components/pn-marketweb-siteheader-login-links2.js +1 -1
- package/components/pn-marketweb-siteheader-login-links2.js.map +1 -1
- package/components/pn-marketweb-siteheader-login-mypage-button.js +34 -1
- package/components/pn-marketweb-siteheader-login-mypage-button.js.map +1 -1
- package/components/pn-marketweb-siteheader-login-profileselection2.js +2 -1
- package/components/pn-marketweb-siteheader-login-profileselection2.js.map +1 -1
- package/components/pn-marketweb-siteheader-login2.js +8 -14
- package/components/pn-marketweb-siteheader-login2.js.map +1 -1
- package/components/pn-marketweb-siteheader-search2.js +1 -1
- package/components/pn-marketweb-siteheader-search2.js.map +1 -1
- package/components/pn-marketweb-siteheader-unified-login2.js +3 -13
- package/components/pn-marketweb-siteheader-unified-login2.js.map +1 -1
- package/components/pn-marketweb-siteheader.js +27 -32
- package/components/pn-marketweb-siteheader.js.map +1 -1
- package/components/pn-marketweb-table.d.ts +11 -0
- package/components/pn-marketweb-table.js +502 -0
- package/components/pn-marketweb-table.js.map +1 -0
- package/components/pn-media-block.js +6 -6
- package/components/pn-media-block.js.map +1 -1
- package/components/pn-multi-row-connected-dropdown-row2.js +1 -1
- package/components/pn-multi-row-connected-dropdown-row2.js.map +1 -1
- package/components/pn-multi-row-connected-dropdown.js +1 -1
- package/components/pn-multi-row-connected-dropdown.js.map +1 -1
- package/components/pn-parcel-tracker.js +1 -1
- package/components/pn-parcel-tracker.js.map +1 -1
- package/components/pn-pex-pricefinder.js +2 -2
- package/components/pn-pex-pricefinder.js.map +1 -1
- package/components/pn-product-card-info2.js +1 -1
- package/components/pn-product-card-info2.js.map +1 -1
- package/components/pn-product-card-price2.js +1 -1
- package/components/pn-product-card-price2.js.map +1 -1
- package/components/pn-product-card2.js +2 -2
- package/components/pn-product-card2.js.map +1 -1
- package/components/pn-product-pricelist-result.js +2 -2
- package/components/pn-product-pricelist-result.js.map +1 -1
- package/components/pn-product-pricelist.js +3 -3
- package/components/pn-product-pricelist.js.map +1 -1
- package/components/pn-product-tile-info2.js +2 -2
- package/components/pn-product-tile-info2.js.map +1 -1
- package/components/pn-product-tile-price2.js +1 -1
- package/components/pn-product-tile-price2.js.map +1 -1
- package/components/pn-product-tile.js +2 -2
- package/components/pn-product-tile.js.map +1 -1
- package/components/pn-profile-modal-customernumber.js +2 -2
- package/components/pn-profile-modal-customernumber.js.map +1 -1
- package/components/pn-profile-modal-profile.js +3 -3
- package/components/pn-profile-modal-profile.js.map +1 -1
- package/components/pn-profile-modal-type.js +2 -2
- package/components/pn-profile-modal-type.js.map +1 -1
- package/components/pn-profile-modal.js +2 -2
- package/components/pn-profile-modal.js.map +1 -1
- package/components/pn-profile-selector-option.js +2 -2
- package/components/pn-profile-selector-option.js.map +1 -1
- package/components/pn-profile-selector.js +2 -2
- package/components/pn-profile-selector.js.map +1 -1
- package/components/pn-proxio-findprice-result2.js +2 -2
- package/components/pn-proxio-findprice-result2.js.map +1 -1
- package/components/pn-proxio-findprice.js +6 -5
- package/components/pn-proxio-findprice.js.map +1 -1
- package/components/pn-proxio-pricegroup.js +4 -3
- package/components/pn-proxio-pricegroup.js.map +1 -1
- package/components/pn-proxio-productcard-description2.js +2 -2
- package/components/pn-proxio-productcard-description2.js.map +1 -1
- package/components/pn-proxio-productcard-information2.js +2 -2
- package/components/pn-proxio-productcard-information2.js.map +1 -1
- package/components/pn-proxio-productcard-pricelink2.js +1 -1
- package/components/pn-proxio-productcard-pricelink2.js.map +1 -1
- package/components/pn-proxio-productcard2.js +2 -2
- package/components/pn-proxio-productcard2.js.map +1 -1
- package/components/pn-qr-code-generator.d.ts +11 -0
- package/components/pn-qr-code-generator.js +8 -0
- package/components/pn-qr-code-generator.js.map +1 -0
- package/components/pn-qr-code-generator2.js +2967 -0
- package/components/pn-qr-code-generator2.js.map +1 -0
- package/components/pn-quick-cta.js +1 -1
- package/components/pn-quick-cta.js.map +1 -1
- package/components/pn-quote-card.js +1 -1
- package/components/pn-quote-card.js.map +1 -1
- package/components/pn-search.d.ts +11 -0
- package/components/pn-search.js +91 -0
- package/components/pn-search.js.map +1 -0
- package/components/pn-share-item2.js +1 -1
- package/components/pn-share-item2.js.map +1 -1
- package/components/pn-share.js +1 -1
- package/components/pn-share.js.map +1 -1
- package/components/pn-sidenav-level.js +2 -2
- package/components/pn-sidenav-level.js.map +1 -1
- package/components/pn-sidenav-link.js +2 -2
- package/components/pn-sidenav-link.js.map +1 -1
- package/components/pn-sidenav-togglebutton.js +2 -2
- package/components/pn-sidenav-togglebutton.js.map +1 -1
- package/components/pn-sidenav.js +2 -2
- package/components/pn-sidenav.js.map +1 -1
- package/components/pn-site-footer-col2.js +2 -2
- package/components/pn-site-footer-col2.js.map +1 -1
- package/components/pn-site-footer2.js +2 -2
- package/components/pn-site-footer2.js.map +1 -1
- package/components/pn-site-selector-item2.js +2 -2
- package/components/pn-site-selector-item2.js.map +1 -1
- package/components/pn-site-selector2.js +2 -2
- package/components/pn-site-selector2.js.map +1 -1
- package/components/pn-spotlight.js +1 -1
- package/components/pn-spotlight.js.map +1 -1
- package/components/pn-stats-info-data2.js +1 -1
- package/components/pn-stats-info-data2.js.map +1 -1
- package/components/pn-stats-info.js +1 -1
- package/components/pn-stats-info.js.map +1 -1
- package/components/pn-swan2.js +2 -2
- package/components/pn-swan2.js.map +1 -1
- package/components/pn-teaser-card.js +5 -9
- package/components/pn-teaser-card.js.map +1 -1
- package/components/pn-titletag2.js +2 -2
- package/components/pn-titletag2.js.map +1 -1
- package/components/pn-usp-promoter.js +2 -2
- package/components/pn-usp-promoter.js.map +1 -1
- package/components/pn-usp-simple.d.ts +11 -0
- package/components/pn-usp-simple.js +82 -0
- package/components/pn-usp-simple.js.map +1 -0
- package/components/pn-video-overlay2.js +1 -1
- package/components/pn-video-overlay2.js.map +1 -1
- package/esm/FetchHelper-4789695a.js +83 -0
- package/esm/FetchHelper-4789695a.js.map +1 -0
- package/esm/HeadingTag-e20016ab.js +10 -0
- package/esm/HeadingTag-e20016ab.js.map +1 -0
- package/esm/LocalStorageService-78b1794d.js +64 -0
- package/esm/LocalStorageService-78b1794d.js.map +1 -0
- package/esm/MarketWebContextService-16c15670.js +245 -0
- package/esm/MarketWebContextService-16c15670.js.map +1 -0
- package/esm/alert_exclamation_circle-f0fe7c7b.js +6 -0
- package/esm/alert_exclamation_circle-f0fe7c7b.js.map +1 -0
- package/esm/angle_up-b5f955ea.js +9 -0
- package/esm/angle_up-b5f955ea.js.map +1 -0
- package/esm/close-9e7bd787.js +6 -0
- package/esm/close-9e7bd787.js.map +1 -0
- package/esm/{index-89124075.js → index-ae60ebec.js} +2 -2
- package/esm/{index-89124075.js.map → index-ae60ebec.js.map} +1 -1
- package/esm/{index-51d67461.js → index-c311acd6.js} +65 -9
- package/esm/index-c311acd6.js.map +1 -0
- package/esm/index.js +1 -1
- package/esm/loader.js +3 -3
- package/esm/pn-address-autofill.entry.js +50 -74
- package/esm/pn-address-autofill.entry.js.map +1 -1
- package/esm/pn-animated-tile.entry.js +2 -2
- package/esm/pn-animated-tile.entry.js.map +1 -1
- package/esm/pn-app-banner.entry.js +3 -3
- package/esm/pn-app-banner.entry.js.map +1 -1
- package/esm/pn-bonus-progressbar-level.entry.js +2 -2
- package/esm/pn-bonus-progressbar-level.entry.js.map +1 -1
- package/esm/pn-bonus-progressbar.entry.js +2 -2
- package/esm/pn-bonus-progressbar.entry.js.map +1 -1
- package/esm/pn-breakpoints.entry.js +3 -3
- package/esm/pn-breakpoints.entry.js.map +1 -1
- package/esm/pn-chart.entry.js +2 -2
- package/esm/pn-chart.entry.js.map +1 -1
- package/esm/pn-charts-card.entry.js +2 -2
- package/esm/pn-charts-card.entry.js.map +1 -1
- package/esm/pn-chat-message_2.entry.js +341 -0
- package/esm/pn-chat-message_2.entry.js.map +1 -0
- package/esm/pn-chat.entry.js +470 -0
- package/esm/pn-chat.entry.js.map +1 -0
- package/esm/pn-chat.service-f4037d6f.js +155 -0
- package/esm/pn-chat.service-f4037d6f.js.map +1 -0
- package/esm/pn-choice-button.entry.js +2 -2
- package/esm/pn-choice-button.entry.js.map +1 -1
- package/esm/pn-cta-block.entry.js +2 -2
- package/esm/pn-cta-block.entry.js.map +1 -1
- package/esm/pn-customernumber-selector-option.entry.js +3 -3
- package/esm/pn-customernumber-selector-option.entry.js.map +1 -1
- package/esm/pn-customernumber-selector.entry.js +4 -9
- package/esm/pn-customernumber-selector.entry.js.map +1 -1
- package/esm/pn-date-and-time.entry.js +2 -2
- package/esm/pn-date-and-time.entry.js.map +1 -1
- package/esm/pn-dropdown-choice-adds-row.entry.js +20 -8
- package/esm/pn-dropdown-choice-adds-row.entry.js.map +1 -1
- package/esm/pn-dropdown-with-multi-input-rows-row.entry.js +2 -2
- package/esm/pn-dropdown-with-multi-input-rows-row.entry.js.map +1 -1
- package/esm/pn-dropdown-with-multi-input-rows.entry.js +2 -2
- package/esm/pn-dropdown-with-multi-input-rows.entry.js.map +1 -1
- package/esm/pn-filter-checkbox.entry.js +2 -2
- package/esm/pn-filter-checkbox.entry.js.map +1 -1
- package/esm/pn-find-price-result.entry.js +5 -5
- package/esm/pn-find-price-result.entry.js.map +1 -1
- package/esm/{pn-find-price-store-c9a9d3d4.js → pn-find-price-store-f97f2325.js} +2 -2
- package/esm/{pn-find-price-store-c9a9d3d4.js.map → pn-find-price-store-f97f2325.js.map} +1 -1
- package/esm/pn-find-price.entry.js +6 -6
- package/esm/pn-find-price.entry.js.map +1 -1
- package/esm/pn-find-service-and-price-result.entry.js +5 -5
- package/esm/pn-find-service-and-price-result.entry.js.map +1 -1
- package/esm/{pn-find-service-and-price-store-60aa5801.js → pn-find-service-and-price-store-6553566d.js} +2 -2
- package/esm/{pn-find-service-and-price-store-60aa5801.js.map → pn-find-service-and-price-store-6553566d.js.map} +1 -1
- package/esm/pn-find-service-and-price.entry.js +5 -5
- package/esm/pn-find-service-and-price.entry.js.map +1 -1
- package/esm/pn-hero-block-international.entry.js +3 -3
- package/esm/pn-hero-block-international.entry.js.map +1 -1
- package/esm/pn-language-selector_9.entry.js +25 -27
- package/esm/pn-language-selector_9.entry.js.map +1 -1
- package/esm/pn-level-up-modal.entry.js +73 -0
- package/esm/pn-level-up-modal.entry.js.map +1 -0
- package/esm/pn-level-up.entry.js +135 -0
- package/esm/pn-level-up.entry.js.map +1 -0
- package/esm/pn-level-up.service-5c602f23.js +69 -0
- package/esm/pn-level-up.service-5c602f23.js.map +1 -0
- package/esm/pn-line-shape.entry.js +2 -2
- package/esm/pn-line-shape.entry.js.map +1 -1
- package/esm/pn-link-list.entry.js +3 -3
- package/esm/pn-link-list.entry.js.map +1 -1
- package/esm/pn-mainnav-link.entry.js +5 -5
- package/esm/pn-mainnav-link.entry.js.map +1 -1
- package/esm/{pn-mainnav-store-9c42bc66.js → pn-mainnav-store-23387019.js} +2 -2
- package/esm/{pn-mainnav-store-9c42bc66.js.map → pn-mainnav-store-23387019.js.map} +1 -1
- package/esm/pn-market-web-components.js +3 -3
- package/esm/pn-marketweb-icon.entry.js +3 -3
- package/esm/pn-marketweb-icon.entry.js.map +1 -1
- package/esm/pn-marketweb-input.entry.js +3 -5
- package/esm/pn-marketweb-input.entry.js.map +1 -1
- package/esm/pn-marketweb-search.entry.js +6 -5
- package/esm/pn-marketweb-search.entry.js.map +1 -1
- package/esm/pn-marketweb-sitefooter.entry.js +6 -9
- package/esm/pn-marketweb-sitefooter.entry.js.map +1 -1
- package/esm/{pn-marketweb-siteheader-login-button_5.entry.js → pn-marketweb-siteheader-login-button_4.entry.js} +9 -26
- package/esm/pn-marketweb-siteheader-login-button_4.entry.js.map +1 -0
- package/esm/pn-marketweb-siteheader-login-linklist.entry.js +4 -4
- package/esm/pn-marketweb-siteheader-login-linklist.entry.js.map +1 -1
- package/esm/pn-marketweb-siteheader-login-mypage-button.entry.js +21 -0
- package/esm/pn-marketweb-siteheader-login-mypage-button.entry.js.map +1 -0
- package/esm/{pn-marketweb-siteheader-store-91f74255.js → pn-marketweb-siteheader-store-f60eb1e4.js} +2 -2
- package/esm/{pn-marketweb-siteheader-store-91f74255.js.map → pn-marketweb-siteheader-store-f60eb1e4.js.map} +1 -1
- package/esm/pn-marketweb-siteheader.entry.js +10 -9
- package/esm/pn-marketweb-siteheader.entry.js.map +1 -1
- package/esm/pn-marketweb-table.entry.js +455 -0
- package/esm/pn-marketweb-table.entry.js.map +1 -0
- package/esm/pn-media-block.entry.js +6 -6
- package/esm/pn-media-block.entry.js.map +1 -1
- package/esm/pn-multi-row-connected-dropdown-row.entry.js +2 -2
- package/esm/pn-multi-row-connected-dropdown-row.entry.js.map +1 -1
- package/esm/pn-multi-row-connected-dropdown.entry.js +2 -2
- package/esm/pn-multi-row-connected-dropdown.entry.js.map +1 -1
- package/esm/pn-multiple-input.entry.js +1 -1
- package/esm/pn-parcel-tracker.entry.js +2 -2
- package/esm/pn-parcel-tracker.entry.js.map +1 -1
- package/esm/pn-pex-pricefinder.entry.js +3 -3
- package/esm/pn-pex-pricefinder.entry.js.map +1 -1
- package/esm/pn-play-on-scroll.entry.js +1 -1
- package/esm/pn-product-card_3.entry.js +5 -5
- package/esm/pn-product-card_3.entry.js.map +1 -1
- package/esm/pn-product-pricelist-result.entry.js +4 -4
- package/esm/pn-product-pricelist-result.entry.js.map +1 -1
- package/esm/pn-product-pricelist.entry.js +6 -6
- package/esm/pn-product-pricelist.entry.js.map +1 -1
- package/esm/pn-product-tile-info_2.entry.js +4 -4
- package/esm/pn-product-tile-info_2.entry.js.map +1 -1
- package/esm/pn-product-tile.entry.js +3 -3
- package/esm/pn-product-tile.entry.js.map +1 -1
- package/esm/pn-profile-modal-customernumber.entry.js +3 -3
- package/esm/pn-profile-modal-customernumber.entry.js.map +1 -1
- package/esm/pn-profile-modal-profile.entry.js +6 -6
- package/esm/pn-profile-modal-profile.entry.js.map +1 -1
- package/esm/{pn-profile-modal-store-4655b124.js → pn-profile-modal-store-5d651bd5.js} +2 -2
- package/esm/{pn-profile-modal-store-4655b124.js.map → pn-profile-modal-store-5d651bd5.js.map} +1 -1
- package/esm/pn-profile-modal-type.entry.js +5 -5
- package/esm/pn-profile-modal-type.entry.js.map +1 -1
- package/esm/pn-profile-modal.entry.js +5 -5
- package/esm/pn-profile-modal.entry.js.map +1 -1
- package/esm/pn-profile-selector-option.entry.js +3 -3
- package/esm/pn-profile-selector-option.entry.js.map +1 -1
- package/esm/pn-profile-selector.entry.js +3 -3
- package/esm/pn-profile-selector.entry.js.map +1 -1
- package/esm/pn-proxio-findprice-result.entry.js +3 -3
- package/esm/pn-proxio-findprice-result.entry.js.map +1 -1
- package/esm/pn-proxio-findprice.entry.js +8 -7
- package/esm/pn-proxio-findprice.entry.js.map +1 -1
- package/esm/pn-proxio-pricegroup.entry.js +5 -4
- package/esm/pn-proxio-pricegroup.entry.js.map +1 -1
- package/esm/pn-proxio-productcard_4.entry.js +8 -8
- package/esm/pn-proxio-productcard_4.entry.js.map +1 -1
- package/esm/pn-qr-code-generator.entry.js +2941 -0
- package/esm/pn-qr-code-generator.entry.js.map +1 -0
- package/esm/pn-quick-cta.entry.js +2 -2
- package/esm/pn-quick-cta.entry.js.map +1 -1
- package/esm/pn-quote-card.entry.js +2 -2
- package/esm/pn-quote-card.entry.js.map +1 -1
- package/esm/pn-scroll_2.entry.js +2 -2
- package/esm/pn-scroll_2.entry.js.map +1 -1
- package/esm/pn-search.entry.js +50 -0
- package/esm/pn-search.entry.js.map +1 -0
- package/esm/pn-share-item.entry.js +2 -2
- package/esm/pn-share-item.entry.js.map +1 -1
- package/esm/pn-share.entry.js +2 -2
- package/esm/pn-share.entry.js.map +1 -1
- package/esm/pn-sidenav-level.entry.js +5 -5
- package/esm/pn-sidenav-level.entry.js.map +1 -1
- package/esm/pn-sidenav-link.entry.js +5 -5
- package/esm/pn-sidenav-link.entry.js.map +1 -1
- package/esm/{pn-sidenav-store-85bdb1e6.js → pn-sidenav-store-e2038d79.js} +2 -2
- package/esm/{pn-sidenav-store-85bdb1e6.js.map → pn-sidenav-store-e2038d79.js.map} +1 -1
- package/esm/pn-sidenav-togglebutton.entry.js +5 -5
- package/esm/pn-sidenav-togglebutton.entry.js.map +1 -1
- package/esm/pn-sidenav.entry.js +5 -5
- package/esm/pn-sidenav.entry.js.map +1 -1
- package/esm/pn-site-footer_3.entry.js +7 -7
- package/esm/pn-site-footer_3.entry.js.map +1 -1
- package/esm/pn-spotlight.entry.js +2 -2
- package/esm/pn-spotlight.entry.js.map +1 -1
- package/esm/pn-stats-info-data.entry.js +2 -2
- package/esm/pn-stats-info-data.entry.js.map +1 -1
- package/esm/pn-stats-info.entry.js +2 -2
- package/esm/pn-stats-info.entry.js.map +1 -1
- package/esm/pn-teaser-card.entry.js +5 -9
- package/esm/pn-teaser-card.entry.js.map +1 -1
- package/esm/pn-titletag.entry.js +3 -3
- package/esm/pn-titletag.entry.js.map +1 -1
- package/esm/pn-usp-promoter.entry.js +3 -3
- package/esm/pn-usp-promoter.entry.js.map +1 -1
- package/esm/pn-usp-simple.entry.js +52 -0
- package/esm/pn-usp-simple.entry.js.map +1 -0
- package/package.json +5 -3
- package/pn-market-web-components/index.esm.js +1 -1
- package/pn-market-web-components/index.esm.js.map +1 -1
- package/pn-market-web-components/p-015127bf.entry.js +2 -0
- package/pn-market-web-components/{p-c5772021.entry.js.map → p-015127bf.entry.js.map} +1 -1
- package/pn-market-web-components/p-04107723.entry.js +2 -0
- package/pn-market-web-components/p-04107723.entry.js.map +1 -0
- package/pn-market-web-components/p-08b473e0.entry.js +2 -0
- package/pn-market-web-components/{p-a38118be.entry.js.map → p-08b473e0.entry.js.map} +1 -1
- package/pn-market-web-components/p-0b5a125d.entry.js +2 -0
- package/pn-market-web-components/p-0b5a125d.entry.js.map +1 -0
- package/pn-market-web-components/p-0b920554.js +2 -0
- package/pn-market-web-components/p-0b920554.js.map +1 -0
- package/pn-market-web-components/p-0fc01d3f.entry.js +2 -0
- package/pn-market-web-components/{p-4fa5bc85.entry.js.map → p-0fc01d3f.entry.js.map} +1 -1
- package/pn-market-web-components/p-10776075.entry.js +2 -0
- package/pn-market-web-components/p-10776075.entry.js.map +1 -0
- package/pn-market-web-components/p-17c43a96.entry.js +2 -0
- package/pn-market-web-components/p-17c43a96.entry.js.map +1 -0
- package/pn-market-web-components/p-19bbac6d.entry.js +2 -0
- package/pn-market-web-components/{p-ea3d6f7e.entry.js.map → p-19bbac6d.entry.js.map} +1 -1
- package/pn-market-web-components/p-230ef9aa.entry.js +2 -0
- package/pn-market-web-components/{p-a419cd91.entry.js.map → p-230ef9aa.entry.js.map} +1 -1
- package/pn-market-web-components/p-268dc1fa.entry.js +2 -0
- package/pn-market-web-components/p-268dc1fa.entry.js.map +1 -0
- package/pn-market-web-components/p-28d2f7fa.entry.js +2 -0
- package/pn-market-web-components/p-28d2f7fa.entry.js.map +1 -0
- package/pn-market-web-components/p-292db484.entry.js +2 -0
- package/pn-market-web-components/{p-76e6708b.entry.js.map → p-292db484.entry.js.map} +1 -1
- package/pn-market-web-components/p-2a58d83b.entry.js +2 -0
- package/pn-market-web-components/{p-55643d76.entry.js.map → p-2a58d83b.entry.js.map} +1 -1
- package/pn-market-web-components/p-2c19edca.entry.js +2 -0
- package/pn-market-web-components/{p-72dbca40.entry.js.map → p-2c19edca.entry.js.map} +1 -1
- package/pn-market-web-components/p-2fd60147.entry.js +2 -0
- package/pn-market-web-components/p-2fd60147.entry.js.map +1 -0
- package/pn-market-web-components/p-3478f368.js +2 -0
- package/pn-market-web-components/p-3478f368.js.map +1 -0
- package/pn-market-web-components/p-34a98554.entry.js +2 -0
- package/pn-market-web-components/{p-cf39491b.entry.js.map → p-34a98554.entry.js.map} +1 -1
- package/pn-market-web-components/p-35847eda.entry.js +2 -0
- package/pn-market-web-components/{p-e6e012fb.entry.js.map → p-35847eda.entry.js.map} +1 -1
- package/pn-market-web-components/p-366fd15a.js +2 -0
- package/pn-market-web-components/p-366fd15a.js.map +1 -0
- package/pn-market-web-components/p-389a94e7.entry.js +2 -0
- package/pn-market-web-components/{p-190c6938.entry.js.map → p-389a94e7.entry.js.map} +1 -1
- package/pn-market-web-components/p-39b75c62.entry.js +2 -0
- package/pn-market-web-components/{p-530274ae.entry.js.map → p-39b75c62.entry.js.map} +1 -1
- package/pn-market-web-components/p-3d10bc37.entry.js +2 -0
- package/pn-market-web-components/{p-45d1e1be.entry.js.map → p-3d10bc37.entry.js.map} +1 -1
- package/pn-market-web-components/p-3e197670.entry.js +2 -0
- package/pn-market-web-components/{p-6a5f7dee.entry.js.map → p-3e197670.entry.js.map} +1 -1
- package/pn-market-web-components/p-40bce1b1.entry.js +2 -0
- package/pn-market-web-components/p-40bce1b1.entry.js.map +1 -0
- package/pn-market-web-components/p-41cdac85.entry.js +2 -0
- package/pn-market-web-components/{p-65ab3003.entry.js.map → p-41cdac85.entry.js.map} +1 -1
- package/pn-market-web-components/p-4aedb76c.entry.js +2 -0
- package/pn-market-web-components/{p-ea7b0d21.entry.js.map → p-4aedb76c.entry.js.map} +1 -1
- package/pn-market-web-components/p-4e924d13.entry.js +2 -0
- package/pn-market-web-components/p-4e924d13.entry.js.map +1 -0
- package/pn-market-web-components/p-4f639380.entry.js +2 -0
- package/pn-market-web-components/{p-aeeabb32.entry.js.map → p-4f639380.entry.js.map} +1 -1
- package/pn-market-web-components/p-51f136f3.entry.js +2 -0
- package/pn-market-web-components/p-51f136f3.entry.js.map +1 -0
- package/pn-market-web-components/p-542f949d.entry.js +2 -0
- package/pn-market-web-components/{p-77a35f5e.entry.js.map → p-542f949d.entry.js.map} +1 -1
- package/pn-market-web-components/p-5a981927.entry.js +2 -0
- package/pn-market-web-components/{p-b35cdbac.entry.js.map → p-5a981927.entry.js.map} +1 -1
- package/pn-market-web-components/p-5f4ccd8a.js +2 -0
- package/pn-market-web-components/p-5f4ccd8a.js.map +1 -0
- package/pn-market-web-components/p-60b77eed.entry.js +2 -0
- package/pn-market-web-components/{p-e916e99d.entry.js.map → p-60b77eed.entry.js.map} +1 -1
- package/pn-market-web-components/p-619f2143.entry.js +2 -0
- package/pn-market-web-components/{p-a6866467.entry.js.map → p-619f2143.entry.js.map} +1 -1
- package/pn-market-web-components/p-61bd81d7.entry.js +2 -0
- package/pn-market-web-components/{p-8c26b98d.entry.js.map → p-61bd81d7.entry.js.map} +1 -1
- package/pn-market-web-components/p-64851da0.entry.js +2 -0
- package/pn-market-web-components/{p-776f3d51.entry.js.map → p-64851da0.entry.js.map} +1 -1
- package/pn-market-web-components/p-659a4db5.entry.js +2 -0
- package/pn-market-web-components/{p-231b97e1.entry.js.map → p-659a4db5.entry.js.map} +1 -1
- package/pn-market-web-components/p-65a046be.entry.js +2 -0
- package/pn-market-web-components/{p-0ec8d040.entry.js.map → p-65a046be.entry.js.map} +1 -1
- package/pn-market-web-components/p-66da6e15.entry.js +2 -0
- package/pn-market-web-components/{p-62cabd1e.entry.js.map → p-66da6e15.entry.js.map} +1 -1
- package/pn-market-web-components/{p-65f243c1.js → p-6b1d045c.js} +2 -2
- package/pn-market-web-components/p-6b1d045c.js.map +1 -0
- package/pn-market-web-components/p-71db6836.entry.js +2 -0
- package/pn-market-web-components/{p-3fb8e665.entry.js.map → p-71db6836.entry.js.map} +1 -1
- package/pn-market-web-components/p-72828265.js +2 -0
- package/pn-market-web-components/p-72f57a04.entry.js +2 -0
- package/pn-market-web-components/{p-25d53df2.entry.js.map → p-72f57a04.entry.js.map} +1 -1
- package/pn-market-web-components/p-763a4e13.entry.js +2 -0
- package/pn-market-web-components/{p-fc157a1e.entry.js.map → p-763a4e13.entry.js.map} +1 -1
- package/pn-market-web-components/p-76c2c01f.js +2 -0
- package/pn-market-web-components/p-76c2c01f.js.map +1 -0
- package/pn-market-web-components/{p-e09a907b.js → p-793e1339.js} +2 -2
- package/pn-market-web-components/p-79e4715c.entry.js +2 -0
- package/pn-market-web-components/{p-6647d2c4.entry.js.map → p-79e4715c.entry.js.map} +1 -1
- package/pn-market-web-components/p-7b4f9fdf.entry.js +2 -0
- package/pn-market-web-components/{p-066e9db9.entry.js.map → p-7b4f9fdf.entry.js.map} +1 -1
- package/pn-market-web-components/p-7b7629c5.entry.js +2 -0
- package/pn-market-web-components/{p-24086c59.entry.js.map → p-7b7629c5.entry.js.map} +1 -1
- package/pn-market-web-components/p-7db6ef34.entry.js +2 -0
- package/pn-market-web-components/{p-4e3059dd.entry.js.map → p-7db6ef34.entry.js.map} +1 -1
- package/pn-market-web-components/p-809ed802.entry.js +2 -0
- package/pn-market-web-components/p-809ed802.entry.js.map +1 -0
- package/pn-market-web-components/p-82546a44.js +3 -0
- package/pn-market-web-components/p-82546a44.js.map +1 -0
- package/pn-market-web-components/p-84fc8e05.entry.js +2 -0
- package/pn-market-web-components/{p-25dfc349.entry.js.map → p-84fc8e05.entry.js.map} +1 -1
- package/pn-market-web-components/p-85b42b44.entry.js +2 -0
- package/pn-market-web-components/{p-e8278e9e.entry.js.map → p-85b42b44.entry.js.map} +1 -1
- package/pn-market-web-components/{p-2509d18d.js → p-8836de82.js} +2 -2
- package/pn-market-web-components/{p-560e5291.entry.js → p-8a651698.entry.js} +2 -2
- package/pn-market-web-components/p-8d78b631.js +2 -0
- package/pn-market-web-components/p-8d78b631.js.map +1 -0
- package/pn-market-web-components/p-8d874454.entry.js +2 -0
- package/pn-market-web-components/{p-b5a0275d.entry.js.map → p-8d874454.entry.js.map} +1 -1
- package/pn-market-web-components/p-8d98f709.entry.js +2 -0
- package/pn-market-web-components/{p-74fd7435.entry.js.map → p-8d98f709.entry.js.map} +1 -1
- package/pn-market-web-components/p-9088d3f5.entry.js +2 -0
- package/pn-market-web-components/{p-a72c2729.entry.js.map → p-9088d3f5.entry.js.map} +1 -1
- package/pn-market-web-components/p-920ce5f2.entry.js +2 -0
- package/pn-market-web-components/p-920ce5f2.entry.js.map +1 -0
- package/pn-market-web-components/{p-959a37d9.js → p-930e2943.js} +2 -2
- package/pn-market-web-components/p-9454075f.entry.js +2 -0
- package/pn-market-web-components/{p-45b8cadb.entry.js.map → p-9454075f.entry.js.map} +1 -1
- package/pn-market-web-components/p-95d32ab4.entry.js +2 -0
- package/pn-market-web-components/{p-758f1b53.entry.js.map → p-95d32ab4.entry.js.map} +1 -1
- package/pn-market-web-components/p-a079c496.js +2 -0
- package/pn-market-web-components/p-a079c496.js.map +1 -0
- package/pn-market-web-components/{p-eaee1dd6.entry.js → p-a73e4811.entry.js} +2 -2
- package/pn-market-web-components/{p-eaee1dd6.entry.js.map → p-a73e4811.entry.js.map} +1 -1
- package/pn-market-web-components/p-ad282b7c.entry.js +2 -0
- package/pn-market-web-components/{p-4d2ca281.entry.js.map → p-ad282b7c.entry.js.map} +1 -1
- package/pn-market-web-components/{p-155c2049.entry.js → p-ad9a7633.entry.js} +2 -2
- package/pn-market-web-components/p-b9590d81.entry.js +2 -0
- package/pn-market-web-components/{p-59549c74.entry.js.map → p-b9590d81.entry.js.map} +1 -1
- package/pn-market-web-components/p-c4e353b3.entry.js +2 -0
- package/pn-market-web-components/{p-5a1b6e6d.entry.js.map → p-c4e353b3.entry.js.map} +1 -1
- package/pn-market-web-components/p-c89cb749.entry.js +2 -0
- package/pn-market-web-components/{p-95519556.entry.js.map → p-c89cb749.entry.js.map} +1 -1
- package/pn-market-web-components/p-c9038b03.entry.js +2 -0
- package/pn-market-web-components/{p-64d0dbba.entry.js.map → p-c9038b03.entry.js.map} +1 -1
- package/pn-market-web-components/p-cbb1d57d.entry.js +2 -0
- package/pn-market-web-components/{p-6fdd5b5a.entry.js.map → p-cbb1d57d.entry.js.map} +1 -1
- package/pn-market-web-components/p-cc7c596e.entry.js +2 -0
- package/pn-market-web-components/p-cc7c596e.entry.js.map +1 -0
- package/pn-market-web-components/p-cda742ba.entry.js +2 -0
- package/pn-market-web-components/p-cda742ba.entry.js.map +1 -0
- package/pn-market-web-components/p-ce87ff8a.entry.js +2 -0
- package/pn-market-web-components/{p-e2e3ac2f.entry.js.map → p-ce87ff8a.entry.js.map} +1 -1
- package/pn-market-web-components/p-cf8a1fb9.js +2 -0
- package/pn-market-web-components/p-cf8a1fb9.js.map +1 -0
- package/pn-market-web-components/p-d17af75d.entry.js +2 -0
- package/pn-market-web-components/{p-b693f78a.entry.js.map → p-d17af75d.entry.js.map} +1 -1
- package/pn-market-web-components/p-d5c45da2.entry.js +2 -0
- package/pn-market-web-components/{p-e5ae757f.entry.js.map → p-d5c45da2.entry.js.map} +1 -1
- package/pn-market-web-components/p-d7170c0e.entry.js +2 -0
- package/pn-market-web-components/{p-d0a085cc.entry.js.map → p-d7170c0e.entry.js.map} +1 -1
- package/pn-market-web-components/p-d75a2f7c.entry.js +2 -0
- package/pn-market-web-components/p-d75a2f7c.entry.js.map +1 -0
- package/pn-market-web-components/p-daa74e60.entry.js +2 -0
- package/pn-market-web-components/{p-7076038b.entry.js.map → p-daa74e60.entry.js.map} +1 -1
- package/pn-market-web-components/p-dc2ee6f8.entry.js +2 -0
- package/pn-market-web-components/p-dc2ee6f8.entry.js.map +1 -0
- package/pn-market-web-components/p-e733f44f.entry.js +2 -0
- package/pn-market-web-components/p-e733f44f.entry.js.map +1 -0
- package/pn-market-web-components/p-e8622338.entry.js +2 -0
- package/pn-market-web-components/{p-b9505c69.entry.js.map → p-e8622338.entry.js.map} +1 -1
- package/pn-market-web-components/p-eb21f772.entry.js +2 -0
- package/pn-market-web-components/p-eb21f772.entry.js.map +1 -0
- package/pn-market-web-components/p-efab81a9.entry.js +2 -0
- package/pn-market-web-components/p-efab81a9.entry.js.map +1 -0
- package/pn-market-web-components/{p-278cda98.entry.js → p-f0df7694.entry.js} +4 -4
- package/pn-market-web-components/{p-278cda98.entry.js.map → p-f0df7694.entry.js.map} +1 -1
- package/pn-market-web-components/p-f21311ad.entry.js +2 -0
- package/pn-market-web-components/{p-545c24c0.entry.js.map → p-f21311ad.entry.js.map} +1 -1
- package/pn-market-web-components/p-f28059f4.entry.js +2 -0
- package/pn-market-web-components/{p-856c235c.entry.js.map → p-f28059f4.entry.js.map} +1 -1
- package/pn-market-web-components/p-f28d0971.entry.js +2 -0
- package/pn-market-web-components/{p-54f3a3b6.entry.js.map → p-f28d0971.entry.js.map} +1 -1
- package/pn-market-web-components/p-f4b14be8.entry.js +2 -0
- package/pn-market-web-components/{p-1ec21bd6.entry.js.map → p-f4b14be8.entry.js.map} +1 -1
- package/pn-market-web-components/p-f5d03222.entry.js +2 -0
- package/pn-market-web-components/{p-90242f18.entry.js.map → p-f5d03222.entry.js.map} +1 -1
- package/pn-market-web-components/{p-8af1b914.js → p-f9083b7a.js} +2 -2
- package/pn-market-web-components/{p-cafe11a9.js → p-fb4cdf98.js} +2 -2
- package/pn-market-web-components/p-fe466661.js +2 -0
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/pn-market-web-components/pn-market-web-components.esm.js.map +1 -1
- package/types/components/cards/pn-teaser-card/pn-teaser-card.d.ts +1 -1
- package/types/components/input/pn-address-autofill/pn-address-autofill.d.ts +2 -3
- package/types/components/input/pn-address-autofill/translations.d.ts +3 -0
- package/types/components/input/pn-marketweb-search/pn-marketweb-search.d.ts +1 -1
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-unified-login.d.ts +0 -2
- package/types/components/media/pn-media-block/pn-media-block.d.ts +1 -1
- package/types/components/widgets/pn-chat/pn-chat-message/pn-chat-message.d.ts +10 -0
- package/types/components/widgets/pn-chat/pn-chat-message/pn-chat-message.stories.d.ts +7 -0
- package/types/components/widgets/pn-chat/pn-chat-stories-constants.d.ts +164 -0
- package/types/components/widgets/pn-chat/pn-chat.d.ts +72 -0
- package/types/components/widgets/pn-chat/pn-chat.models.d.ts +22 -0
- package/types/components/widgets/pn-chat/pn-chat.service.d.ts +26 -0
- package/types/components/widgets/pn-chat/pn-chat.stories.d.ts +8 -0
- package/types/components/widgets/pn-chat/translations.d.ts +77 -0
- package/types/components/widgets/pn-chat/types.d.ts +68 -0
- package/types/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.d.ts +23 -0
- package/types/components/widgets/pn-level-up/pn-level-up-modal/pn-level-up-modal.stories.d.ts +5 -0
- package/types/components/widgets/pn-level-up/pn-level-up.d.ts +43 -0
- package/types/components/widgets/pn-level-up/pn-level-up.models.d.ts +22 -0
- package/types/components/widgets/pn-level-up/pn-level-up.service.d.ts +16 -0
- package/types/components/widgets/pn-level-up/pn-level-up.stories.d.ts +7 -0
- package/types/components/widgets/pn-level-up/types.d.ts +1 -0
- package/types/components/widgets/pn-marketweb-carousel/pn-marketweb-carousel.d.ts +48 -0
- package/types/components/widgets/pn-marketweb-carousel/pn-marketweb-carousel.stories.d.ts +7 -0
- package/types/components/widgets/pn-marketweb-table/pn-marketweb-table.d.ts +55 -0
- package/types/components/widgets/pn-marketweb-table/pn-marketweb-table.service.d.ts +11 -0
- package/types/components/widgets/pn-marketweb-table/pn-marketweb-table.stories.d.ts +26 -0
- package/types/components/widgets/pn-marketweb-table/translations.d.ts +72 -0
- package/types/components/widgets/pn-marketweb-table/types.d.ts +38 -0
- package/types/components/widgets/pn-qr-code-generator/pn-qr-code-generator.d.ts +23 -0
- package/types/components/widgets/pn-qr-code-generator/pn-qr-code-generator.stories.d.ts +5 -0
- package/types/components/widgets/pn-search/pn-search.d.ts +29 -0
- package/types/components/widgets/pn-search/pn-search.stories.d.ts +7 -0
- package/types/components/widgets/pn-usp-simple/pn-usp-simple.d.ts +19 -0
- package/types/components/widgets/pn-usp-simple/pn-usp-simple.stories.d.ts +7 -0
- package/types/components.d.ts +393 -8
- package/types/globals/HeadingTag.d.ts +1 -1
- package/types/globals/LocalStorageService.d.ts +14 -0
- package/types/globals/ScreensizeDetect.d.ts +29 -0
- package/types/globals/types.d.ts +18 -0
- package/types/utils/utils.d.ts +1 -0
- package/umd/pn-marketweb-init.js +1 -1
- package/umd/pn-marketweb-salesforce.js +1 -1
- package/vscode-data.json +677 -3
- package/cjs/FetchHelper-e951824f.js.map +0 -1
- package/cjs/index-34e1c673.js.map +0 -1
- package/cjs/pn-marketweb-siteheader-login-button_5.cjs.entry.js.map +0 -1
- package/components/pn-marketweb-siteheader-login-mypage-button2.js +0 -38
- package/components/pn-marketweb-siteheader-login-mypage-button2.js.map +0 -1
- package/esm/FetchHelper-746f2bb6.js.map +0 -1
- package/esm/index-51d67461.js.map +0 -1
- package/esm/pn-marketweb-siteheader-login-button_5.entry.js.map +0 -1
- package/pn-market-web-components/p-066e9db9.entry.js +0 -2
- package/pn-market-web-components/p-0ec8d040.entry.js +0 -2
- package/pn-market-web-components/p-13190b30.js +0 -2
- package/pn-market-web-components/p-190c6938.entry.js +0 -2
- package/pn-market-web-components/p-1ec21bd6.entry.js +0 -2
- package/pn-market-web-components/p-231b97e1.entry.js +0 -2
- package/pn-market-web-components/p-23d69d70.entry.js +0 -2
- package/pn-market-web-components/p-23d69d70.entry.js.map +0 -1
- package/pn-market-web-components/p-24086c59.entry.js +0 -2
- package/pn-market-web-components/p-25d53df2.entry.js +0 -2
- package/pn-market-web-components/p-25dfc349.entry.js +0 -2
- package/pn-market-web-components/p-2b03a4e1.entry.js +0 -2
- package/pn-market-web-components/p-2b03a4e1.entry.js.map +0 -1
- package/pn-market-web-components/p-3fb8e665.entry.js +0 -2
- package/pn-market-web-components/p-45b8cadb.entry.js +0 -2
- package/pn-market-web-components/p-45d1e1be.entry.js +0 -2
- package/pn-market-web-components/p-4d2ca281.entry.js +0 -2
- package/pn-market-web-components/p-4e3059dd.entry.js +0 -2
- package/pn-market-web-components/p-4fa5bc85.entry.js +0 -2
- package/pn-market-web-components/p-530274ae.entry.js +0 -2
- package/pn-market-web-components/p-545c24c0.entry.js +0 -2
- package/pn-market-web-components/p-54f3a3b6.entry.js +0 -2
- package/pn-market-web-components/p-55643d76.entry.js +0 -2
- package/pn-market-web-components/p-572c4d81.entry.js +0 -2
- package/pn-market-web-components/p-572c4d81.entry.js.map +0 -1
- package/pn-market-web-components/p-59549c74.entry.js +0 -2
- package/pn-market-web-components/p-59cb7166.entry.js +0 -2
- package/pn-market-web-components/p-59cb7166.entry.js.map +0 -1
- package/pn-market-web-components/p-5a1b6e6d.entry.js +0 -2
- package/pn-market-web-components/p-5d06e48f.entry.js +0 -2
- package/pn-market-web-components/p-5d06e48f.entry.js.map +0 -1
- package/pn-market-web-components/p-62cabd1e.entry.js +0 -2
- package/pn-market-web-components/p-64d0dbba.entry.js +0 -2
- package/pn-market-web-components/p-652f97b9.js +0 -2
- package/pn-market-web-components/p-65ab3003.entry.js +0 -2
- package/pn-market-web-components/p-65f243c1.js.map +0 -1
- package/pn-market-web-components/p-6647d2c4.entry.js +0 -2
- package/pn-market-web-components/p-6a5f7dee.entry.js +0 -2
- package/pn-market-web-components/p-6fdd5b5a.entry.js +0 -2
- package/pn-market-web-components/p-7076038b.entry.js +0 -2
- package/pn-market-web-components/p-725aba56.entry.js +0 -2
- package/pn-market-web-components/p-725aba56.entry.js.map +0 -1
- package/pn-market-web-components/p-72dbca40.entry.js +0 -2
- package/pn-market-web-components/p-74fd7435.entry.js +0 -2
- package/pn-market-web-components/p-758f1b53.entry.js +0 -2
- package/pn-market-web-components/p-76e6708b.entry.js +0 -2
- package/pn-market-web-components/p-776f3d51.entry.js +0 -2
- package/pn-market-web-components/p-77a35f5e.entry.js +0 -2
- package/pn-market-web-components/p-7c3091eb.entry.js +0 -2
- package/pn-market-web-components/p-7c3091eb.entry.js.map +0 -1
- package/pn-market-web-components/p-856c235c.entry.js +0 -2
- package/pn-market-web-components/p-8c26b98d.entry.js +0 -2
- package/pn-market-web-components/p-90242f18.entry.js +0 -2
- package/pn-market-web-components/p-94a69959.entry.js +0 -2
- package/pn-market-web-components/p-94a69959.entry.js.map +0 -1
- package/pn-market-web-components/p-95519556.entry.js +0 -2
- package/pn-market-web-components/p-a38118be.entry.js +0 -2
- package/pn-market-web-components/p-a419cd91.entry.js +0 -2
- package/pn-market-web-components/p-a54a298b.entry.js +0 -2
- package/pn-market-web-components/p-a54a298b.entry.js.map +0 -1
- package/pn-market-web-components/p-a6866467.entry.js +0 -2
- package/pn-market-web-components/p-a72c2729.entry.js +0 -2
- package/pn-market-web-components/p-aeeabb32.entry.js +0 -2
- package/pn-market-web-components/p-b35cdbac.entry.js +0 -2
- package/pn-market-web-components/p-b5a0275d.entry.js +0 -2
- package/pn-market-web-components/p-b693f78a.entry.js +0 -2
- package/pn-market-web-components/p-b9340e9c.entry.js +0 -2
- package/pn-market-web-components/p-b9340e9c.entry.js.map +0 -1
- package/pn-market-web-components/p-b9505c69.entry.js +0 -2
- package/pn-market-web-components/p-bb1c965e.js +0 -3
- package/pn-market-web-components/p-bb1c965e.js.map +0 -1
- package/pn-market-web-components/p-c5772021.entry.js +0 -2
- package/pn-market-web-components/p-cf39491b.entry.js +0 -2
- package/pn-market-web-components/p-d0a085cc.entry.js +0 -2
- package/pn-market-web-components/p-e2e3ac2f.entry.js +0 -2
- package/pn-market-web-components/p-e5ae757f.entry.js +0 -2
- package/pn-market-web-components/p-e6e012fb.entry.js +0 -2
- package/pn-market-web-components/p-e8278e9e.entry.js +0 -2
- package/pn-market-web-components/p-e916e99d.entry.js +0 -2
- package/pn-market-web-components/p-ea3d6f7e.entry.js +0 -2
- package/pn-market-web-components/p-ea7b0d21.entry.js +0 -2
- package/pn-market-web-components/p-fc157a1e.entry.js +0 -2
- /package/pn-market-web-components/{p-652f97b9.js.map → p-72828265.js.map} +0 -0
- /package/pn-market-web-components/{p-e09a907b.js.map → p-793e1339.js.map} +0 -0
- /package/pn-market-web-components/{p-2509d18d.js.map → p-8836de82.js.map} +0 -0
- /package/pn-market-web-components/{p-560e5291.entry.js.map → p-8a651698.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-959a37d9.js.map → p-930e2943.js.map} +0 -0
- /package/pn-market-web-components/{p-155c2049.entry.js.map → p-ad9a7633.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-8af1b914.js.map → p-f9083b7a.js.map} +0 -0
- /package/pn-market-web-components/{p-cafe11a9.js.map → p-fb4cdf98.js.map} +0 -0
- /package/pn-market-web-components/{p-13190b30.js.map → p-fe466661.js.map} +0 -0
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import { HeadingTag } from "../../../globals/HeadingTag";
|
|
2
|
+
import { Host, h } from "@stencil/core";
|
|
3
|
+
export class PnUspSimple {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.heading = undefined;
|
|
6
|
+
this.headingLevel = 'h2';
|
|
7
|
+
this.preamble = undefined;
|
|
8
|
+
this.ctaButtonsLabel = undefined;
|
|
9
|
+
this.primaryButtonText = undefined;
|
|
10
|
+
this.primaryButtonUrl = undefined;
|
|
11
|
+
this.primaryButtonIconSvg = undefined;
|
|
12
|
+
this.secondaryButtonText = undefined;
|
|
13
|
+
this.secondaryButtonUrl = undefined;
|
|
14
|
+
this.pnIllustrationSvg = undefined;
|
|
15
|
+
this.imageUrl = undefined;
|
|
16
|
+
this.imageAltText = undefined;
|
|
17
|
+
}
|
|
18
|
+
get hasPrimaryButton() {
|
|
19
|
+
return Boolean(this.primaryButtonText && this.primaryButtonUrl);
|
|
20
|
+
}
|
|
21
|
+
get hasSecondaryButton() {
|
|
22
|
+
return Boolean(this.secondaryButtonText && this.secondaryButtonUrl);
|
|
23
|
+
}
|
|
24
|
+
renderButton(props, isPrimary) {
|
|
25
|
+
const buttonType = isPrimary ? 'primary' : 'secondary';
|
|
26
|
+
return (h("pn-button", { icon: props.iconSvg, "left-icon": Boolean(props.iconSvg), href: props.url, class: "btn", "data-button-type": buttonType, appearance: isPrimary ? 'default' : 'light' }, props.text));
|
|
27
|
+
}
|
|
28
|
+
render() {
|
|
29
|
+
const hasButtons = this.hasPrimaryButton || this.hasSecondaryButton;
|
|
30
|
+
const headingId = 'usp-heading';
|
|
31
|
+
return (h(Host, { key: '86a81876d75377462d4a94cc9ca0d8a7b8150791' }, h("div", { key: '59568c012efdb309dc7e9b3ed64a0a344ab28360', class: "pn-usp-simple", role: "region", "aria-labelledby": this.heading ? headingId : undefined }, h("div", { key: '54685035dc6a2eba2130693961b87fe315023f27', class: "content" }, this.heading && (h(HeadingTag, { key: '1f0b464103fdcbf3b18ab6adf4f82b454e5c81eb', id: headingId, level: this.headingLevel, cssClass: "heading" }, this.heading)), this.preamble && (h("div", { key: 'd143480b02ecb45130ac2a825e392dbe7c0f3128', class: "preamble" }, this.preamble)), hasButtons && (h("div", { key: 'f618b4b041cf79eac3b67dd6d3c26697e29a72c6', class: "cta", role: "group", "aria-label": this.ctaButtonsLabel }, this.hasPrimaryButton &&
|
|
32
|
+
this.renderButton({
|
|
33
|
+
text: this.primaryButtonText,
|
|
34
|
+
url: this.primaryButtonUrl,
|
|
35
|
+
iconSvg: this.primaryButtonIconSvg,
|
|
36
|
+
}, true), this.hasSecondaryButton &&
|
|
37
|
+
this.renderButton({
|
|
38
|
+
text: this.secondaryButtonText,
|
|
39
|
+
url: this.secondaryButtonUrl,
|
|
40
|
+
}, false)))), h("div", { key: 'cb22f2bd663e90bd009fac12d4662c729bffdd68', class: "image-container", "aria-hidden": !this.imageAltText }, this.imageUrl && h("img", { key: 'f76f0a6cbdb0cdc8847f062410f7c20c847d8a47', class: "image graphics", src: this.imageUrl, alt: this.imageAltText || '', loading: "lazy" }), !this.imageUrl && this.pnIllustrationSvg && h("pn-illustration", { key: '5653434436d33c04820f3ee201fd1e2853008e1b', class: "illustration graphics", illustration: this.pnIllustrationSvg, role: "presentation" })))));
|
|
41
|
+
}
|
|
42
|
+
static get is() { return "pn-usp-simple"; }
|
|
43
|
+
static get originalStyleUrls() {
|
|
44
|
+
return {
|
|
45
|
+
"$": ["pn-usp-simple.scss"]
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
static get styleUrls() {
|
|
49
|
+
return {
|
|
50
|
+
"$": ["pn-usp-simple.css"]
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
static get properties() {
|
|
54
|
+
return {
|
|
55
|
+
"heading": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"mutable": false,
|
|
58
|
+
"complexType": {
|
|
59
|
+
"original": "string",
|
|
60
|
+
"resolved": "string",
|
|
61
|
+
"references": {}
|
|
62
|
+
},
|
|
63
|
+
"required": false,
|
|
64
|
+
"optional": true,
|
|
65
|
+
"docs": {
|
|
66
|
+
"tags": [],
|
|
67
|
+
"text": ""
|
|
68
|
+
},
|
|
69
|
+
"attribute": "heading",
|
|
70
|
+
"reflect": false
|
|
71
|
+
},
|
|
72
|
+
"headingLevel": {
|
|
73
|
+
"type": "any",
|
|
74
|
+
"mutable": false,
|
|
75
|
+
"complexType": {
|
|
76
|
+
"original": "HeadingLevel",
|
|
77
|
+
"resolved": "HeadingLevel",
|
|
78
|
+
"references": {
|
|
79
|
+
"HeadingLevel": {
|
|
80
|
+
"location": "import",
|
|
81
|
+
"path": "@/components",
|
|
82
|
+
"id": "src/components.d.ts::unknown"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"required": false,
|
|
87
|
+
"optional": false,
|
|
88
|
+
"docs": {
|
|
89
|
+
"tags": [],
|
|
90
|
+
"text": ""
|
|
91
|
+
},
|
|
92
|
+
"attribute": "heading-level",
|
|
93
|
+
"reflect": false,
|
|
94
|
+
"defaultValue": "'h2'"
|
|
95
|
+
},
|
|
96
|
+
"preamble": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"mutable": false,
|
|
99
|
+
"complexType": {
|
|
100
|
+
"original": "string",
|
|
101
|
+
"resolved": "string",
|
|
102
|
+
"references": {}
|
|
103
|
+
},
|
|
104
|
+
"required": false,
|
|
105
|
+
"optional": true,
|
|
106
|
+
"docs": {
|
|
107
|
+
"tags": [],
|
|
108
|
+
"text": ""
|
|
109
|
+
},
|
|
110
|
+
"attribute": "preamble",
|
|
111
|
+
"reflect": false
|
|
112
|
+
},
|
|
113
|
+
"ctaButtonsLabel": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"mutable": false,
|
|
116
|
+
"complexType": {
|
|
117
|
+
"original": "string",
|
|
118
|
+
"resolved": "string",
|
|
119
|
+
"references": {}
|
|
120
|
+
},
|
|
121
|
+
"required": false,
|
|
122
|
+
"optional": true,
|
|
123
|
+
"docs": {
|
|
124
|
+
"tags": [],
|
|
125
|
+
"text": ""
|
|
126
|
+
},
|
|
127
|
+
"attribute": "cta-buttons-label",
|
|
128
|
+
"reflect": false
|
|
129
|
+
},
|
|
130
|
+
"primaryButtonText": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"mutable": false,
|
|
133
|
+
"complexType": {
|
|
134
|
+
"original": "string",
|
|
135
|
+
"resolved": "string",
|
|
136
|
+
"references": {}
|
|
137
|
+
},
|
|
138
|
+
"required": false,
|
|
139
|
+
"optional": true,
|
|
140
|
+
"docs": {
|
|
141
|
+
"tags": [],
|
|
142
|
+
"text": ""
|
|
143
|
+
},
|
|
144
|
+
"attribute": "primary-button-text",
|
|
145
|
+
"reflect": false
|
|
146
|
+
},
|
|
147
|
+
"primaryButtonUrl": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"mutable": false,
|
|
150
|
+
"complexType": {
|
|
151
|
+
"original": "string",
|
|
152
|
+
"resolved": "string",
|
|
153
|
+
"references": {}
|
|
154
|
+
},
|
|
155
|
+
"required": false,
|
|
156
|
+
"optional": true,
|
|
157
|
+
"docs": {
|
|
158
|
+
"tags": [],
|
|
159
|
+
"text": ""
|
|
160
|
+
},
|
|
161
|
+
"attribute": "primary-button-url",
|
|
162
|
+
"reflect": false
|
|
163
|
+
},
|
|
164
|
+
"primaryButtonIconSvg": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"mutable": false,
|
|
167
|
+
"complexType": {
|
|
168
|
+
"original": "string",
|
|
169
|
+
"resolved": "string",
|
|
170
|
+
"references": {}
|
|
171
|
+
},
|
|
172
|
+
"required": false,
|
|
173
|
+
"optional": true,
|
|
174
|
+
"docs": {
|
|
175
|
+
"tags": [],
|
|
176
|
+
"text": ""
|
|
177
|
+
},
|
|
178
|
+
"attribute": "primary-button-icon-svg",
|
|
179
|
+
"reflect": false
|
|
180
|
+
},
|
|
181
|
+
"secondaryButtonText": {
|
|
182
|
+
"type": "string",
|
|
183
|
+
"mutable": false,
|
|
184
|
+
"complexType": {
|
|
185
|
+
"original": "string",
|
|
186
|
+
"resolved": "string",
|
|
187
|
+
"references": {}
|
|
188
|
+
},
|
|
189
|
+
"required": false,
|
|
190
|
+
"optional": true,
|
|
191
|
+
"docs": {
|
|
192
|
+
"tags": [],
|
|
193
|
+
"text": ""
|
|
194
|
+
},
|
|
195
|
+
"attribute": "secondary-button-text",
|
|
196
|
+
"reflect": false
|
|
197
|
+
},
|
|
198
|
+
"secondaryButtonUrl": {
|
|
199
|
+
"type": "string",
|
|
200
|
+
"mutable": false,
|
|
201
|
+
"complexType": {
|
|
202
|
+
"original": "string",
|
|
203
|
+
"resolved": "string",
|
|
204
|
+
"references": {}
|
|
205
|
+
},
|
|
206
|
+
"required": false,
|
|
207
|
+
"optional": true,
|
|
208
|
+
"docs": {
|
|
209
|
+
"tags": [],
|
|
210
|
+
"text": ""
|
|
211
|
+
},
|
|
212
|
+
"attribute": "secondary-button-url",
|
|
213
|
+
"reflect": false
|
|
214
|
+
},
|
|
215
|
+
"pnIllustrationSvg": {
|
|
216
|
+
"type": "string",
|
|
217
|
+
"mutable": false,
|
|
218
|
+
"complexType": {
|
|
219
|
+
"original": "string",
|
|
220
|
+
"resolved": "string",
|
|
221
|
+
"references": {}
|
|
222
|
+
},
|
|
223
|
+
"required": false,
|
|
224
|
+
"optional": true,
|
|
225
|
+
"docs": {
|
|
226
|
+
"tags": [],
|
|
227
|
+
"text": ""
|
|
228
|
+
},
|
|
229
|
+
"attribute": "pn-illustration-svg",
|
|
230
|
+
"reflect": false
|
|
231
|
+
},
|
|
232
|
+
"imageUrl": {
|
|
233
|
+
"type": "string",
|
|
234
|
+
"mutable": false,
|
|
235
|
+
"complexType": {
|
|
236
|
+
"original": "string",
|
|
237
|
+
"resolved": "string",
|
|
238
|
+
"references": {}
|
|
239
|
+
},
|
|
240
|
+
"required": false,
|
|
241
|
+
"optional": true,
|
|
242
|
+
"docs": {
|
|
243
|
+
"tags": [],
|
|
244
|
+
"text": ""
|
|
245
|
+
},
|
|
246
|
+
"attribute": "image-url",
|
|
247
|
+
"reflect": false
|
|
248
|
+
},
|
|
249
|
+
"imageAltText": {
|
|
250
|
+
"type": "string",
|
|
251
|
+
"mutable": false,
|
|
252
|
+
"complexType": {
|
|
253
|
+
"original": "string",
|
|
254
|
+
"resolved": "string",
|
|
255
|
+
"references": {}
|
|
256
|
+
},
|
|
257
|
+
"required": false,
|
|
258
|
+
"optional": true,
|
|
259
|
+
"docs": {
|
|
260
|
+
"tags": [],
|
|
261
|
+
"text": ""
|
|
262
|
+
},
|
|
263
|
+
"attribute": "image-alt-text",
|
|
264
|
+
"reflect": false
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
//# sourceMappingURL=pn-usp-simple.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pn-usp-simple.js","sourceRoot":"","sources":["../../../../src/components/widgets/pn-usp-simple/pn-usp-simple.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAYzD,MAAM,OAAO,WAAW;;;4BAEe,IAAI;;;;;;;;;;;;IAYzC,IAAY,gBAAgB;QAC1B,OAAO,OAAO,CAAC,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAClE,CAAC;IAED,IAAY,kBAAkB;QAC5B,OAAO,OAAO,CAAC,IAAI,CAAC,mBAAmB,IAAI,IAAI,CAAC,kBAAkB,CAAC,CAAC;IACtE,CAAC;IAEO,YAAY,CAAC,KAAkB,EAAE,SAAkB;QACzD,MAAM,UAAU,GAAG,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC;QACvD,OAAO,CACL,iBACE,IAAI,EAAE,KAAK,CAAC,OAAO,eACR,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,EACjC,IAAI,EAAE,KAAK,CAAC,GAAG,EACf,KAAK,EAAC,KAAK,sBACO,UAAU,EAC5B,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,IAE1C,KAAK,CAAC,IAAI,CACD,CACb,CAAC;IACJ,CAAC;IAED,MAAM;QACJ,MAAM,UAAU,GAAG,IAAI,CAAC,gBAAgB,IAAI,IAAI,CAAC,kBAAkB,CAAC;QACpE,MAAM,SAAS,GAAG,aAAa,CAAC;QAEhC,OAAO,CACL,EAAC,IAAI;YACH,4DAAK,KAAK,EAAC,eAAe,EAAC,IAAI,EAAC,QAAQ,qBAAkB,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;gBAC5F,4DAAK,KAAK,EAAC,SAAS;oBACjB,IAAI,CAAC,OAAO,IAAI,CACf,EAAC,UAAU,qDAAC,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,EAAC,SAAS,IACpE,IAAI,CAAC,OAAO,CACF,CACd;oBAEA,IAAI,CAAC,QAAQ,IAAI,CAChB,4DAAK,KAAK,EAAC,UAAU,IAClB,IAAI,CAAC,QAAQ,CACV,CACP;oBAEA,UAAU,IAAI,CACb,4DAAK,KAAK,EAAC,KAAK,EAAC,IAAI,EAAC,OAAO,gBAAa,IAAI,CAAC,eAAe;wBAC3D,IAAI,CAAC,gBAAgB;4BACpB,IAAI,CAAC,YAAY,CACf;gCACE,IAAI,EAAE,IAAI,CAAC,iBAAkB;gCAC7B,GAAG,EAAE,IAAI,CAAC,gBAAiB;gCAC3B,OAAO,EAAE,IAAI,CAAC,oBAAoB;6BACnC,EACD,IAAI,CACL;wBACF,IAAI,CAAC,kBAAkB;4BACtB,IAAI,CAAC,YAAY,CACf;gCACE,IAAI,EAAE,IAAI,CAAC,mBAAoB;gCAC/B,GAAG,EAAE,IAAI,CAAC,kBAAmB;6BAC9B,EACD,KAAK,CACN,CACC,CACP,CACG;gBACN,4DAAK,KAAK,EAAC,iBAAiB,iBAAc,CAAC,IAAI,CAAC,YAAY;oBACzD,IAAI,CAAC,QAAQ,IAAI,4DAAK,KAAK,EAAC,gBAAgB,EAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,GAAG,EAAE,IAAI,CAAC,YAAY,IAAI,EAAE,EAAE,OAAO,EAAC,MAAM,GAAG;oBAChH,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,iBAAiB,IAAI,wEAAiB,KAAK,EAAC,uBAAuB,EAAC,YAAY,EAAE,IAAI,CAAC,iBAAiB,EAAE,IAAI,EAAC,cAAc,GAAG,CACpJ,CACF,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { HeadingLevel } from '@/components';\nimport { HeadingTag } from '@/globals/HeadingTag';\nimport { Component, Host, Prop, h } from '@stencil/core';\n\ninterface ButtonProps {\n text: string;\n url: string;\n iconSvg?: string;\n}\n\n@Component({\n tag: 'pn-usp-simple',\n styleUrl: 'pn-usp-simple.scss',\n})\nexport class PnUspSimple {\n @Prop() heading?: string;\n @Prop() headingLevel: HeadingLevel = 'h2';\n @Prop() preamble?: string;\n @Prop() ctaButtonsLabel?: string;\n @Prop() primaryButtonText?: string;\n @Prop() primaryButtonUrl?: string;\n @Prop() primaryButtonIconSvg?: string;\n @Prop() secondaryButtonText?: string;\n @Prop() secondaryButtonUrl?: string;\n @Prop() pnIllustrationSvg?: string;\n @Prop() imageUrl?: string;\n @Prop() imageAltText?: string;\n\n private get hasPrimaryButton(): boolean {\n return Boolean(this.primaryButtonText && this.primaryButtonUrl);\n }\n\n private get hasSecondaryButton(): boolean {\n return Boolean(this.secondaryButtonText && this.secondaryButtonUrl);\n }\n\n private renderButton(props: ButtonProps, isPrimary: boolean) {\n const buttonType = isPrimary ? 'primary' : 'secondary';\n return (\n <pn-button\n icon={props.iconSvg}\n left-icon={Boolean(props.iconSvg)}\n href={props.url}\n class=\"btn\"\n data-button-type={buttonType}\n appearance={isPrimary ? 'default' : 'light'}\n >\n {props.text}\n </pn-button>\n );\n }\n\n render() {\n const hasButtons = this.hasPrimaryButton || this.hasSecondaryButton;\n const headingId = 'usp-heading';\n\n return (\n <Host>\n <div class=\"pn-usp-simple\" role=\"region\" aria-labelledby={this.heading ? headingId : undefined}>\n <div class=\"content\">\n {this.heading && (\n <HeadingTag id={headingId} level={this.headingLevel} cssClass=\"heading\">\n {this.heading}\n </HeadingTag>\n )}\n\n {this.preamble && (\n <div class=\"preamble\">\n {this.preamble}\n </div>\n )}\n\n {hasButtons && (\n <div class=\"cta\" role=\"group\" aria-label={this.ctaButtonsLabel}>\n {this.hasPrimaryButton &&\n this.renderButton(\n {\n text: this.primaryButtonText!,\n url: this.primaryButtonUrl!,\n iconSvg: this.primaryButtonIconSvg,\n },\n true,\n )}\n {this.hasSecondaryButton &&\n this.renderButton(\n {\n text: this.secondaryButtonText!,\n url: this.secondaryButtonUrl!,\n },\n false,\n )}\n </div>\n )}\n </div>\n <div class=\"image-container\" aria-hidden={!this.imageAltText}>\n {this.imageUrl && <img class=\"image graphics\" src={this.imageUrl} alt={this.imageAltText || ''} loading=\"lazy\" />}\n {!this.imageUrl && this.pnIllustrationSvg && <pn-illustration class=\"illustration graphics\" illustration={this.pnIllustrationSvg} role=\"presentation\" />}\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { createDocumentation, createComponent } from "../../../globals/documentation/story";
|
|
2
|
+
import docs from "./pn-usp-simple-docs.json";
|
|
3
|
+
const { argTypes, textContent } = createDocumentation(docs);
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'Components/Widgets/Usp Simple',
|
|
6
|
+
parameters: {
|
|
7
|
+
actions: {},
|
|
8
|
+
docs: {
|
|
9
|
+
description: {
|
|
10
|
+
story: textContent,
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
args: {
|
|
15
|
+
heading: 'Verify your address to find more packages',
|
|
16
|
+
headingLevel: 'h2',
|
|
17
|
+
preamble: 'Sometimes we do not receive your email address or your mobile number from the sender.If you verify your address with BankID, we can, with the help of your address and your name, find and add your packages to the app.',
|
|
18
|
+
primaryButtonText: 'Identify with BankID',
|
|
19
|
+
primaryButtonUrl: '#',
|
|
20
|
+
primaryButtonIconSvg: '<svg class="pn-icon-svg" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="#000" fill-rule="evenodd" d="M23.591 9.136c.93-5.875-2.801-8.22-8.152-8.22H9.531L8.744 5.91h1.003c.55 0 1.07-.252 1.293-.616a.6.6 0 0 0 .104-.319c0-.207-.141-.363-.283-.467-.386-.29-.468-.593-.468-.809q-.002-.064.008-.118c.082-.527.795-1.098 1.739-1.098.564 0 .995.133 1.256.378.23.215.32.52.252.838-.082.379-.46.69-.676.846-.572.4-.498.75-.46.853.118.312.572.512.92.512h1.524v.007c2.08.015 3.195.972 2.846 3.198-.327 2.07-1.917 2.96-3.812 2.974l-.75 4.778h1.107c4.674 0 8.494-2.997 9.244-7.73M7.666 12.489l.981-6.172H7.6c-.49 0-1.122-.274-1.307-.779-.06-.17-.201-.757.609-1.328.29-.2.475-.423.513-.593a.46.46 0 0 0-.134-.453c-.178-.17-.528-.267-.974-.267-.75 0-1.278.43-1.33.742-.037.23.141.415.297.534.469.349.58.853.29 1.328-.297.49-.943.809-1.635.816h-1.07c-.05.343-.547 3.494-.985 6.27v.002c-.329 2.085-.624 3.958-.672 4.27h5.804l.103-.664c.12-.77.327-2.103.58-3.706zM.89 18.988h2.37c1.011 0 1.256.511 1.182.979-.06.378-.32.66-.765.846.564.215.787.548.706 1.075-.104.66-.677 1.15-1.427 1.15H.257zm1.568 1.676c.46 0 .676-.245.72-.534.045-.312-.096-.527-.557-.527h-.408l-.164 1.061zm-.253 1.75c.476 0 .75-.192.818-.585.052-.341-.141-.542-.602-.542h-.468l-.179 1.135h.431zm4.437.364c.148.267.446.334 1.062.29l.357-.831c-.35-.008-.364-.104-.312-.416l.141-.89c.12-.786-.52-1.083-1.24-1.083-.566 0-1.056.17-1.561.534l-.142.92c.588-.4.93-.534 1.338-.534.35 0 .46.104.431.386-.167.113-.452.185-.75.26-.364.09-.747.187-.96.37a.9.9 0 0 0-.319.534c-.067.4.179.764.877.764.387 0 .75-.104 1.078-.304m-.411-.949c.145-.042.291-.085.403-.156l-.067.445c-.022.141-.03.215-.014.29a1.17 1.17 0 0 1-.625.214c-.2 0-.327-.148-.297-.348.044-.283.322-.364.6-.445M8.855 19.9h1.234l-.067.408c.394-.334.69-.46 1.077-.46.691 0 1.011.423.9 1.113l-.32 2.07h-1.234l.268-1.714c.052-.312-.045-.46-.282-.46-.194 0-.372.104-.543.334l-.282 1.832H8.372zm5.336-.912h-1.234l-.631 4.043h1.233l.223-1.447h.015l.936 1.447h1.553l-1.218-1.796 1.516-1.335H15.06l-1.181 1.076zm3.135 0h1.42l-.624 4.043h-1.42zm4.14 0h-2.029l-.631 4.043h2.288c1.375 0 2.104-1.046 2.245-1.966.148-.942-.305-2.078-1.873-2.078m.468 2.017c-.111.72-.49 1.061-1.181 1.061h-.372l.327-2.121h.379c.765 0 .929.526.847 1.06" clip-rule="evenodd"/></svg>',
|
|
21
|
+
secondaryButtonText: 'Cancel',
|
|
22
|
+
secondaryButtonUrl: '#',
|
|
23
|
+
pnIllustrationSvg: '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 120 120"><g clip-path="url(#globe-hand_svg__a)"><path fill="#8EDDF9" d="M0 60C0 26.863 26.863 0 60 0s60 26.863 60 60-26.863 60-60 60S0 93.137 0 60"/><path fill="#0D234B" d="M53.675 104.493c-10.907 0-21.056-4.355-28.586-12.263a.304.304 0 0 1 .013-.432.304.304 0 0 1 .431.012c7.412 7.786 17.406 12.076 28.142 12.076 21.43 0 38.865-17.458 38.865-38.922 0-10.764-4.29-20.779-12.08-28.202a.31.31 0 0 1-.013-.432.31.31 0 0 1 .432-.012c7.912 7.537 12.268 17.71 12.268 28.642.008 21.798-17.703 39.533-39.472 39.533"/><path fill="#0D234B" d="M21.728 95.917a.3.3 0 0 1-.216-.09.307.307 0 0 1 0-.432l62.805-62.944a.31.31 0 0 1 .432 0 .31.31 0 0 1 0 .432L21.944 95.827a.32.32 0 0 1-.216.09"/><path fill="#005D92" d="M53.675 100.57c19.64 0 35.56-15.943 35.56-35.61 0-19.666-15.92-35.609-35.56-35.609s-35.56 15.943-35.56 35.61c0 19.666 15.92 35.609 35.56 35.609"/><path fill="#00A0D6" d="M78.822 39.781a35.6 35.6 0 0 0-7.424-5.7c-2.098 1.34-3.5 3.691-3.5 6.352 0 3.989 3.142 7.264 7.065 7.5h.558c1.769 0 3.403 1.178 3.765 2.91.497 2.375-1.324 4.49-3.61 4.49h-.627v.004H59.88c-3.83 0-7.31 2.546-8.153 6.286-1.185 5.264 2.812 9.982 7.868 10.023 1.67.012 3.044 1.308 3.044 2.983v6.482c0 4.192 2.917 7.945 7.044 8.645 5.325.909 9.986-3.227 9.986-8.4V66.63a4.315 4.315 0 0 1 4.315-4.32h5.154c-.611-8.213-4.046-16.251-10.316-22.53M39.993 72.652h-.937v-.44c0-4.302-3.516-7.818-7.81-7.818-4.295 0-7.811 3.52-7.811 7.818V83.69c.09.146.183.297.277.444.143.224.285.448.436.668q.244.36.501.717c.159.224.314.448.477.668.167.228.346.448.521.672s.347.449.526.673c.195.236.4.468.599.7.15.176.297.355.456.53q.631.704 1.304 1.381a36 36 0 0 0 2.974 2.657 6.18 6.18 0 0 1 3.231-3.797l7.798-3.77a6.68 6.68 0 0 0 3.773-6.013v-.244c-.004-3.48-2.844-6.324-6.315-6.324M28.533 39.781a35.6 35.6 0 0 0-7.081 10.104c1.063.314 2.188.485 3.349.485h.99v7.216c0 1.792 1.181 3.41 2.917 3.85a3.936 3.936 0 0 0 4.93-3.801v-1.056a6.21 6.21 0 0 1 6.205-6.213c6.556 0 11.922-5.374 11.922-11.938v-9.024c-8.455.456-16.778 3.911-23.232 10.377"/><path fill="#F06365" d="m43.127 37.39-7.912-10.288C30.158 20.526 34.84 11 43.127 11s12.968 9.526 7.912 16.102z"/><path fill="#FFC8A3" d="M43.127 24.368a4.02 4.02 0 0 0 4.017-4.021 4.02 4.02 0 0 0-4.017-4.022 4.02 4.02 0 0 0-4.018 4.022 4.02 4.02 0 0 0 4.018 4.021"/><path fill="#0D234B" d="M53.675 110.886a.307.307 0 0 1-.305-.305v-6.397c0-.167.138-.305.305-.305s.306.138.306.305v6.397a.3.3 0 0 1-.306.305"/><path fill="#FFC8A3" d="M68.892 119.784h-30.41v-4.665c0-1.055.855-1.907 1.906-1.907h26.597c1.055 0 1.907.856 1.907 1.907z"/><path fill="#FFF1E3" d="M65.331 113.213H42.043v-.844a2.21 2.21 0 0 1 2.208-2.208h18.868a2.21 2.21 0 0 1 2.208 2.208v.844z"/><path fill="#fff" d="M86.889 83.12a7.11 7.11 0 0 1 7.105-7.114c3.924 0 7.106 3.186 7.106 7.114z"/><path fill="#fff" d="M73.561 83.12a7.11 7.11 0 0 1 7.106-7.113c3.924 0 7.105 3.186 7.105 7.114zM14.228 83.93c0-4.196 3.398-7.598 7.587-7.598 4.188 0 7.586 3.402 7.586 7.599z"/><path fill="#fff" d="M0 83.931c0-4.196 3.398-7.598 7.586-7.598s7.587 3.402 7.587 7.598z"/><path fill="#FBC2C1" d="m69.036 63.267 5.093 4.502 3.789.016-1.072-5.056zM113.672 88.412l-9.326 2.086-23.578-.078c3.68 7.33 10.976 13.042 10.976 13.042l.013 5.431v10.891h27.212v-10.891zM70.815 80.455l4.836 4.636.24-5.28zM68.778 72.47l5.105 3.797 3.532-.285-1.393-4.633zM82.073 49.377l-9.877-7.933a3.357 3.357 0 0 0-4.77.574 3.37 3.37 0 0 0 .26 4.409l14.386 14.745z"/><path fill="#500715" d="m75.664 44.238-1.846-1.5 1.023 11.026.823.839z"/><path fill="#000" d="M75.175 38.293v-3.039c0-1.882 1.475-3.406 3.3-3.406h25.415c1.822 0 3.301 1.524 3.301 3.406v3.04zM107.19 85.193v3.594c0 1.882-1.479 3.406-3.3 3.406H78.474c-1.821 0-3.3-1.524-3.3-3.406v-3.594z"/><path fill="#fff" d="M107.19 38.294H75.174v46.899h32.016z"/><path fill="#F3F2F2" d="M103.308 82.337H78.883a.71.71 0 0 1-.709-.709v-4.775a.71.71 0 0 1 .709-.709h24.425c.392 0 .709.318.709.709v4.775a.704.704 0 0 1-.709.709"/><path fill="#D3CECB" d="M92.152 78.727h-6.001a.232.232 0 1 1 0-.465h6.001a.232.232 0 1 1 0 .465M95.53 80.21h-9.374a.23.23 0 0 1-.233-.232.23.23 0 0 1 .233-.232h9.374a.232.232 0 1 1 0 .464M98.338 78.728h-4.792a.232.232 0 1 1 0-.465h4.792c.126 0 .232.102.232.232a.235.235 0 0 1-.232.233M81.527 80.85a1.613 1.613 0 1 0 0-3.227 1.613 1.613 0 0 0 0 3.227"/><path fill="#F3F2F2" d="M103.308 74.193H78.883a.71.71 0 0 1-.709-.709v-4.775a.71.71 0 0 1 .709-.709h24.425a.71.71 0 0 1 .709.709v4.775a.704.704 0 0 1-.709.709"/><path fill="#D3CECB" d="M98.472 70.583h-12.32a.23.23 0 0 1-.233-.233.23.23 0 0 1 .232-.232h12.321a.232.232 0 1 1 0 .465M90.385 72.066H86.15a.232.232 0 1 1 0-.464h4.234a.232.232 0 1 1 0 .464M94.31 72.066h-2.612a.232.232 0 1 1 0-.464h2.611a.232.232 0 1 1 0 .464M81.528 72.705a1.614 1.614 0 1 0 0-3.227 1.614 1.614 0 0 0 0 3.227"/><path fill="#005D92" d="M102.599 65.941H79.591a1.42 1.42 0 0 1-1.422-1.422V42.571a1.42 1.42 0 0 1 1.422-1.422H102.6a1.42 1.42 0 0 1 1.422 1.422v21.948c0 .786-.64 1.422-1.422 1.422"/><path fill="#8EDDF9" d="M98.056 59.004H83.792a.232.232 0 1 1 0-.464h14.264a.232.232 0 1 1 0 .464M94.793 61.037h-7.737a.23.23 0 0 1-.232-.232.23.23 0 0 1 .232-.232h7.737a.232.232 0 1 1 0 .464"/><path fill="#00A0D6" d="M95.787 56.701h2.2c.616 0 1.113-.497 1.113-1.112v-8.422c0-.615-.497-1.112-1.112-1.112h-2.2z"/><path fill="#8EDDF9" d="M96.887 56.701H84.204a1.11 1.11 0 0 1-1.112-1.112v-8.422c0-.615.497-1.112 1.112-1.112H95.96c.513 0 .928.416.928.93z"/><path fill="#E0F8FF" d="M95.4 49.082c0 .607-.489 1.096-1.096 1.096H92.68a1.096 1.096 0 0 1 0-2.192h1.625c.603 0 1.096.493 1.096 1.096"/><path fill="#FBC2C1" d="m78.201 58.017-5.797-1.438a3.696 3.696 0 0 0-4.58 3.393l-.016.33a3.7 3.7 0 0 0 2.998 3.839l5.815 1.108a3.698 3.698 0 0 0 4.383-3.435 3.7 3.7 0 0 0-2.803-3.797"/><path fill="#500715" d="M76.62 65.546c.131 0 .25-.081.286-.212a.294.294 0 0 0-.2-.37l-3.895-1.166a.295.295 0 0 0-.37.2.294.294 0 0 0 .2.37l3.894 1.166a.3.3 0 0 0 .086.012"/><path fill="#FBC2C1" d="m76.914 66.85-5.52-.884a3.463 3.463 0 0 0-4.006 3.524l.008.306a3.465 3.465 0 0 0 3.101 3.345l5.513.574a3.463 3.463 0 0 0 3.817-3.549 3.46 3.46 0 0 0-2.913-3.316M78.316 76.124l-4.743-.758a2.977 2.977 0 0 0-3.443 3.028l.008.264a2.974 2.974 0 0 0 2.665 2.873l4.734.493a2.975 2.975 0 0 0 3.28-3.052 2.974 2.974 0 0 0-2.501-2.848M122.341 120l-3.376-46.819a9.6 9.6 0 0 0-.611-3.492l-6.584-17.662c-.684-1.837-2.994-2.42-4.469-1.128l-.114.102v19.682s-12.378 11.527-3.671 26.398L109.847 120z"/><path fill="#500715" d="M76.01 74.018c.138 0 .26-.098.293-.237a.3.3 0 0 0-.232-.354l-3.724-.778a.3.3 0 0 0-.355.232.3.3 0 0 0 .232.355l3.724.778q.03.005.062.004M75.339 82.091a.3.3 0 0 0 .297-.268.297.297 0 0 0-.265-.326l-1.564-.163a.297.297 0 0 0-.061.59l1.564.163q.011.005.028.004M103.091 96.068a.3.3 0 0 0 .245-.469c-1.475-2.151-1.777-3.178-1.781-3.19a.294.294 0 0 0-.366-.204.3.3 0 0 0-.208.367c.012.045.318 1.112 1.862 3.365.061.082.155.13.248.13"/><path fill="#500715" d="m102.18 94.215-11.339-2.021h10.499z"/></g><defs><clipPath id="globe-hand_svg__a"><path fill="#fff" d="M0 60C0 26.863 26.863 0 60 0s60 26.863 60 60-26.863 60-60 60S0 93.137 0 60"/></clipPath></defs></svg>',
|
|
24
|
+
},
|
|
25
|
+
argTypes,
|
|
26
|
+
};
|
|
27
|
+
export default meta;
|
|
28
|
+
export const UspSimple = {
|
|
29
|
+
name: 'Simple USP with CTA and Illustration',
|
|
30
|
+
render: args => createComponent('pn-usp-simple', args),
|
|
31
|
+
};
|
|
32
|
+
export const UspSimpleIllustration = {
|
|
33
|
+
name: 'Simple USP with Illustration',
|
|
34
|
+
render: UspSimple.render,
|
|
35
|
+
args: {
|
|
36
|
+
heading: 'Verify your address to find more packages',
|
|
37
|
+
headingLevel: 'h2',
|
|
38
|
+
preamble: 'Sometimes we do not receive your email address or your mobile number from the sender.If you verify your address with BankID, we can, with the help of your address and your name, find and add your packages to the app.',
|
|
39
|
+
primaryButtonText: 'Identify with BankID',
|
|
40
|
+
primaryButtonUrl: '#',
|
|
41
|
+
primaryButtonIconSvg: '<svg class="pn-icon-svg" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="#000" fill-rule="evenodd" d="M23.591 9.136c.93-5.875-2.801-8.22-8.152-8.22H9.531L8.744 5.91h1.003c.55 0 1.07-.252 1.293-.616a.6.6 0 0 0 .104-.319c0-.207-.141-.363-.283-.467-.386-.29-.468-.593-.468-.809q-.002-.064.008-.118c.082-.527.795-1.098 1.739-1.098.564 0 .995.133 1.256.378.23.215.32.52.252.838-.082.379-.46.69-.676.846-.572.4-.498.75-.46.853.118.312.572.512.92.512h1.524v.007c2.08.015 3.195.972 2.846 3.198-.327 2.07-1.917 2.96-3.812 2.974l-.75 4.778h1.107c4.674 0 8.494-2.997 9.244-7.73M7.666 12.489l.981-6.172H7.6c-.49 0-1.122-.274-1.307-.779-.06-.17-.201-.757.609-1.328.29-.2.475-.423.513-.593a.46.46 0 0 0-.134-.453c-.178-.17-.528-.267-.974-.267-.75 0-1.278.43-1.33.742-.037.23.141.415.297.534.469.349.58.853.29 1.328-.297.49-.943.809-1.635.816h-1.07c-.05.343-.547 3.494-.985 6.27v.002c-.329 2.085-.624 3.958-.672 4.27h5.804l.103-.664c.12-.77.327-2.103.58-3.706zM.89 18.988h2.37c1.011 0 1.256.511 1.182.979-.06.378-.32.66-.765.846.564.215.787.548.706 1.075-.104.66-.677 1.15-1.427 1.15H.257zm1.568 1.676c.46 0 .676-.245.72-.534.045-.312-.096-.527-.557-.527h-.408l-.164 1.061zm-.253 1.75c.476 0 .75-.192.818-.585.052-.341-.141-.542-.602-.542h-.468l-.179 1.135h.431zm4.437.364c.148.267.446.334 1.062.29l.357-.831c-.35-.008-.364-.104-.312-.416l.141-.89c.12-.786-.52-1.083-1.24-1.083-.566 0-1.056.17-1.561.534l-.142.92c.588-.4.93-.534 1.338-.534.35 0 .46.104.431.386-.167.113-.452.185-.75.26-.364.09-.747.187-.96.37a.9.9 0 0 0-.319.534c-.067.4.179.764.877.764.387 0 .75-.104 1.078-.304m-.411-.949c.145-.042.291-.085.403-.156l-.067.445c-.022.141-.03.215-.014.29a1.17 1.17 0 0 1-.625.214c-.2 0-.327-.148-.297-.348.044-.283.322-.364.6-.445M8.855 19.9h1.234l-.067.408c.394-.334.69-.46 1.077-.46.691 0 1.011.423.9 1.113l-.32 2.07h-1.234l.268-1.714c.052-.312-.045-.46-.282-.46-.194 0-.372.104-.543.334l-.282 1.832H8.372zm5.336-.912h-1.234l-.631 4.043h1.233l.223-1.447h.015l.936 1.447h1.553l-1.218-1.796 1.516-1.335H15.06l-1.181 1.076zm3.135 0h1.42l-.624 4.043h-1.42zm4.14 0h-2.029l-.631 4.043h2.288c1.375 0 2.104-1.046 2.245-1.966.148-.942-.305-2.078-1.873-2.078m.468 2.017c-.111.72-.49 1.061-1.181 1.061h-.372l.327-2.121h.379c.765 0 .929.526.847 1.06" clip-rule="evenodd"/></svg>',
|
|
42
|
+
secondaryButtonText: 'Not now',
|
|
43
|
+
secondaryButtonUrl: '#',
|
|
44
|
+
pnIllustrationSvg: '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 120 120"><g clip-path="url(#globe-hand_svg__a)"><path fill="#8EDDF9" d="M0 60C0 26.863 26.863 0 60 0s60 26.863 60 60-26.863 60-60 60S0 93.137 0 60"/><path fill="#0D234B" d="M53.675 104.493c-10.907 0-21.056-4.355-28.586-12.263a.304.304 0 0 1 .013-.432.304.304 0 0 1 .431.012c7.412 7.786 17.406 12.076 28.142 12.076 21.43 0 38.865-17.458 38.865-38.922 0-10.764-4.29-20.779-12.08-28.202a.31.31 0 0 1-.013-.432.31.31 0 0 1 .432-.012c7.912 7.537 12.268 17.71 12.268 28.642.008 21.798-17.703 39.533-39.472 39.533"/><path fill="#0D234B" d="M21.728 95.917a.3.3 0 0 1-.216-.09.307.307 0 0 1 0-.432l62.805-62.944a.31.31 0 0 1 .432 0 .31.31 0 0 1 0 .432L21.944 95.827a.32.32 0 0 1-.216.09"/><path fill="#005D92" d="M53.675 100.57c19.64 0 35.56-15.943 35.56-35.61 0-19.666-15.92-35.609-35.56-35.609s-35.56 15.943-35.56 35.61c0 19.666 15.92 35.609 35.56 35.609"/><path fill="#00A0D6" d="M78.822 39.781a35.6 35.6 0 0 0-7.424-5.7c-2.098 1.34-3.5 3.691-3.5 6.352 0 3.989 3.142 7.264 7.065 7.5h.558c1.769 0 3.403 1.178 3.765 2.91.497 2.375-1.324 4.49-3.61 4.49h-.627v.004H59.88c-3.83 0-7.31 2.546-8.153 6.286-1.185 5.264 2.812 9.982 7.868 10.023 1.67.012 3.044 1.308 3.044 2.983v6.482c0 4.192 2.917 7.945 7.044 8.645 5.325.909 9.986-3.227 9.986-8.4V66.63a4.315 4.315 0 0 1 4.315-4.32h5.154c-.611-8.213-4.046-16.251-10.316-22.53M39.993 72.652h-.937v-.44c0-4.302-3.516-7.818-7.81-7.818-4.295 0-7.811 3.52-7.811 7.818V83.69c.09.146.183.297.277.444.143.224.285.448.436.668q.244.36.501.717c.159.224.314.448.477.668.167.228.346.448.521.672s.347.449.526.673c.195.236.4.468.599.7.15.176.297.355.456.53q.631.704 1.304 1.381a36 36 0 0 0 2.974 2.657 6.18 6.18 0 0 1 3.231-3.797l7.798-3.77a6.68 6.68 0 0 0 3.773-6.013v-.244c-.004-3.48-2.844-6.324-6.315-6.324M28.533 39.781a35.6 35.6 0 0 0-7.081 10.104c1.063.314 2.188.485 3.349.485h.99v7.216c0 1.792 1.181 3.41 2.917 3.85a3.936 3.936 0 0 0 4.93-3.801v-1.056a6.21 6.21 0 0 1 6.205-6.213c6.556 0 11.922-5.374 11.922-11.938v-9.024c-8.455.456-16.778 3.911-23.232 10.377"/><path fill="#F06365" d="m43.127 37.39-7.912-10.288C30.158 20.526 34.84 11 43.127 11s12.968 9.526 7.912 16.102z"/><path fill="#FFC8A3" d="M43.127 24.368a4.02 4.02 0 0 0 4.017-4.021 4.02 4.02 0 0 0-4.017-4.022 4.02 4.02 0 0 0-4.018 4.022 4.02 4.02 0 0 0 4.018 4.021"/><path fill="#0D234B" d="M53.675 110.886a.307.307 0 0 1-.305-.305v-6.397c0-.167.138-.305.305-.305s.306.138.306.305v6.397a.3.3 0 0 1-.306.305"/><path fill="#FFC8A3" d="M68.892 119.784h-30.41v-4.665c0-1.055.855-1.907 1.906-1.907h26.597c1.055 0 1.907.856 1.907 1.907z"/><path fill="#FFF1E3" d="M65.331 113.213H42.043v-.844a2.21 2.21 0 0 1 2.208-2.208h18.868a2.21 2.21 0 0 1 2.208 2.208v.844z"/><path fill="#fff" d="M86.889 83.12a7.11 7.11 0 0 1 7.105-7.114c3.924 0 7.106 3.186 7.106 7.114z"/><path fill="#fff" d="M73.561 83.12a7.11 7.11 0 0 1 7.106-7.113c3.924 0 7.105 3.186 7.105 7.114zM14.228 83.93c0-4.196 3.398-7.598 7.587-7.598 4.188 0 7.586 3.402 7.586 7.599z"/><path fill="#fff" d="M0 83.931c0-4.196 3.398-7.598 7.586-7.598s7.587 3.402 7.587 7.598z"/><path fill="#FBC2C1" d="m69.036 63.267 5.093 4.502 3.789.016-1.072-5.056zM113.672 88.412l-9.326 2.086-23.578-.078c3.68 7.33 10.976 13.042 10.976 13.042l.013 5.431v10.891h27.212v-10.891zM70.815 80.455l4.836 4.636.24-5.28zM68.778 72.47l5.105 3.797 3.532-.285-1.393-4.633zM82.073 49.377l-9.877-7.933a3.357 3.357 0 0 0-4.77.574 3.37 3.37 0 0 0 .26 4.409l14.386 14.745z"/><path fill="#500715" d="m75.664 44.238-1.846-1.5 1.023 11.026.823.839z"/><path fill="#000" d="M75.175 38.293v-3.039c0-1.882 1.475-3.406 3.3-3.406h25.415c1.822 0 3.301 1.524 3.301 3.406v3.04zM107.19 85.193v3.594c0 1.882-1.479 3.406-3.3 3.406H78.474c-1.821 0-3.3-1.524-3.3-3.406v-3.594z"/><path fill="#fff" d="M107.19 38.294H75.174v46.899h32.016z"/><path fill="#F3F2F2" d="M103.308 82.337H78.883a.71.71 0 0 1-.709-.709v-4.775a.71.71 0 0 1 .709-.709h24.425c.392 0 .709.318.709.709v4.775a.704.704 0 0 1-.709.709"/><path fill="#D3CECB" d="M92.152 78.727h-6.001a.232.232 0 1 1 0-.465h6.001a.232.232 0 1 1 0 .465M95.53 80.21h-9.374a.23.23 0 0 1-.233-.232.23.23 0 0 1 .233-.232h9.374a.232.232 0 1 1 0 .464M98.338 78.728h-4.792a.232.232 0 1 1 0-.465h4.792c.126 0 .232.102.232.232a.235.235 0 0 1-.232.233M81.527 80.85a1.613 1.613 0 1 0 0-3.227 1.613 1.613 0 0 0 0 3.227"/><path fill="#F3F2F2" d="M103.308 74.193H78.883a.71.71 0 0 1-.709-.709v-4.775a.71.71 0 0 1 .709-.709h24.425a.71.71 0 0 1 .709.709v4.775a.704.704 0 0 1-.709.709"/><path fill="#D3CECB" d="M98.472 70.583h-12.32a.23.23 0 0 1-.233-.233.23.23 0 0 1 .232-.232h12.321a.232.232 0 1 1 0 .465M90.385 72.066H86.15a.232.232 0 1 1 0-.464h4.234a.232.232 0 1 1 0 .464M94.31 72.066h-2.612a.232.232 0 1 1 0-.464h2.611a.232.232 0 1 1 0 .464M81.528 72.705a1.614 1.614 0 1 0 0-3.227 1.614 1.614 0 0 0 0 3.227"/><path fill="#005D92" d="M102.599 65.941H79.591a1.42 1.42 0 0 1-1.422-1.422V42.571a1.42 1.42 0 0 1 1.422-1.422H102.6a1.42 1.42 0 0 1 1.422 1.422v21.948c0 .786-.64 1.422-1.422 1.422"/><path fill="#8EDDF9" d="M98.056 59.004H83.792a.232.232 0 1 1 0-.464h14.264a.232.232 0 1 1 0 .464M94.793 61.037h-7.737a.23.23 0 0 1-.232-.232.23.23 0 0 1 .232-.232h7.737a.232.232 0 1 1 0 .464"/><path fill="#00A0D6" d="M95.787 56.701h2.2c.616 0 1.113-.497 1.113-1.112v-8.422c0-.615-.497-1.112-1.112-1.112h-2.2z"/><path fill="#8EDDF9" d="M96.887 56.701H84.204a1.11 1.11 0 0 1-1.112-1.112v-8.422c0-.615.497-1.112 1.112-1.112H95.96c.513 0 .928.416.928.93z"/><path fill="#E0F8FF" d="M95.4 49.082c0 .607-.489 1.096-1.096 1.096H92.68a1.096 1.096 0 0 1 0-2.192h1.625c.603 0 1.096.493 1.096 1.096"/><path fill="#FBC2C1" d="m78.201 58.017-5.797-1.438a3.696 3.696 0 0 0-4.58 3.393l-.016.33a3.7 3.7 0 0 0 2.998 3.839l5.815 1.108a3.698 3.698 0 0 0 4.383-3.435 3.7 3.7 0 0 0-2.803-3.797"/><path fill="#500715" d="M76.62 65.546c.131 0 .25-.081.286-.212a.294.294 0 0 0-.2-.37l-3.895-1.166a.295.295 0 0 0-.37.2.294.294 0 0 0 .2.37l3.894 1.166a.3.3 0 0 0 .086.012"/><path fill="#FBC2C1" d="m76.914 66.85-5.52-.884a3.463 3.463 0 0 0-4.006 3.524l.008.306a3.465 3.465 0 0 0 3.101 3.345l5.513.574a3.463 3.463 0 0 0 3.817-3.549 3.46 3.46 0 0 0-2.913-3.316M78.316 76.124l-4.743-.758a2.977 2.977 0 0 0-3.443 3.028l.008.264a2.974 2.974 0 0 0 2.665 2.873l4.734.493a2.975 2.975 0 0 0 3.28-3.052 2.974 2.974 0 0 0-2.501-2.848M122.341 120l-3.376-46.819a9.6 9.6 0 0 0-.611-3.492l-6.584-17.662c-.684-1.837-2.994-2.42-4.469-1.128l-.114.102v19.682s-12.378 11.527-3.671 26.398L109.847 120z"/><path fill="#500715" d="M76.01 74.018c.138 0 .26-.098.293-.237a.3.3 0 0 0-.232-.354l-3.724-.778a.3.3 0 0 0-.355.232.3.3 0 0 0 .232.355l3.724.778q.03.005.062.004M75.339 82.091a.3.3 0 0 0 .297-.268.297.297 0 0 0-.265-.326l-1.564-.163a.297.297 0 0 0-.061.59l1.564.163q.011.005.028.004M103.091 96.068a.3.3 0 0 0 .245-.469c-1.475-2.151-1.777-3.178-1.781-3.19a.294.294 0 0 0-.366-.204.3.3 0 0 0-.208.367c.012.045.318 1.112 1.862 3.365.061.082.155.13.248.13"/><path fill="#500715" d="m102.18 94.215-11.339-2.021h10.499z"/></g><defs><clipPath id="globe-hand_svg__a"><path fill="#fff" d="M0 60C0 26.863 26.863 0 60 0s60 26.863 60 60-26.863 60-60 60S0 93.137 0 60"/></clipPath></defs></svg>',
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
export const UspSimpleImage = {
|
|
48
|
+
name: 'Simple USP with Image',
|
|
49
|
+
render: UspSimple.render,
|
|
50
|
+
args: {
|
|
51
|
+
heading: 'Verify your address to find more packages',
|
|
52
|
+
headingLevel: 'h2',
|
|
53
|
+
preamble: 'Sometimes we do not receive your email address or your mobile number from the sender.If you verify your address with BankID, we can, with the help of your address and your name, find and add your packages to the app.',
|
|
54
|
+
primaryButtonText: 'Identify with BankID',
|
|
55
|
+
primaryButtonUrl: '#',
|
|
56
|
+
primaryButtonIconSvg: '<svg class="pn-icon-svg" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="#000" fill-rule="evenodd" d="M23.591 9.136c.93-5.875-2.801-8.22-8.152-8.22H9.531L8.744 5.91h1.003c.55 0 1.07-.252 1.293-.616a.6.6 0 0 0 .104-.319c0-.207-.141-.363-.283-.467-.386-.29-.468-.593-.468-.809q-.002-.064.008-.118c.082-.527.795-1.098 1.739-1.098.564 0 .995.133 1.256.378.23.215.32.52.252.838-.082.379-.46.69-.676.846-.572.4-.498.75-.46.853.118.312.572.512.92.512h1.524v.007c2.08.015 3.195.972 2.846 3.198-.327 2.07-1.917 2.96-3.812 2.974l-.75 4.778h1.107c4.674 0 8.494-2.997 9.244-7.73M7.666 12.489l.981-6.172H7.6c-.49 0-1.122-.274-1.307-.779-.06-.17-.201-.757.609-1.328.29-.2.475-.423.513-.593a.46.46 0 0 0-.134-.453c-.178-.17-.528-.267-.974-.267-.75 0-1.278.43-1.33.742-.037.23.141.415.297.534.469.349.58.853.29 1.328-.297.49-.943.809-1.635.816h-1.07c-.05.343-.547 3.494-.985 6.27v.002c-.329 2.085-.624 3.958-.672 4.27h5.804l.103-.664c.12-.77.327-2.103.58-3.706zM.89 18.988h2.37c1.011 0 1.256.511 1.182.979-.06.378-.32.66-.765.846.564.215.787.548.706 1.075-.104.66-.677 1.15-1.427 1.15H.257zm1.568 1.676c.46 0 .676-.245.72-.534.045-.312-.096-.527-.557-.527h-.408l-.164 1.061zm-.253 1.75c.476 0 .75-.192.818-.585.052-.341-.141-.542-.602-.542h-.468l-.179 1.135h.431zm4.437.364c.148.267.446.334 1.062.29l.357-.831c-.35-.008-.364-.104-.312-.416l.141-.89c.12-.786-.52-1.083-1.24-1.083-.566 0-1.056.17-1.561.534l-.142.92c.588-.4.93-.534 1.338-.534.35 0 .46.104.431.386-.167.113-.452.185-.75.26-.364.09-.747.187-.96.37a.9.9 0 0 0-.319.534c-.067.4.179.764.877.764.387 0 .75-.104 1.078-.304m-.411-.949c.145-.042.291-.085.403-.156l-.067.445c-.022.141-.03.215-.014.29a1.17 1.17 0 0 1-.625.214c-.2 0-.327-.148-.297-.348.044-.283.322-.364.6-.445M8.855 19.9h1.234l-.067.408c.394-.334.69-.46 1.077-.46.691 0 1.011.423.9 1.113l-.32 2.07h-1.234l.268-1.714c.052-.312-.045-.46-.282-.46-.194 0-.372.104-.543.334l-.282 1.832H8.372zm5.336-.912h-1.234l-.631 4.043h1.233l.223-1.447h.015l.936 1.447h1.553l-1.218-1.796 1.516-1.335H15.06l-1.181 1.076zm3.135 0h1.42l-.624 4.043h-1.42zm4.14 0h-2.029l-.631 4.043h2.288c1.375 0 2.104-1.046 2.245-1.966.148-.942-.305-2.078-1.873-2.078m.468 2.017c-.111.72-.49 1.061-1.181 1.061h-.372l.327-2.121h.379c.765 0 .929.526.847 1.06" clip-rule="evenodd"/></svg>',
|
|
57
|
+
secondaryButtonText: 'Not now',
|
|
58
|
+
secondaryButtonUrl: '#',
|
|
59
|
+
imageUrl: 'https://picsum.photos/id/101/200/200',
|
|
60
|
+
imageAltText: 'Alt Text',
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=pn-usp-simple.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pn-usp-simple.stories.js","sourceRoot":"","sources":["../../../../src/components/widgets/pn-usp-simple/pn-usp-simple.stories.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrF,OAAO,IAAI,MAAM,2BAA2B,CAAC;AAE7C,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC;AAE5D,MAAM,IAAI,GAAiC;IACzC,KAAK,EAAE,+BAA+B;IACtC,UAAU,EAAE;QACV,OAAO,EAAE,EAAE;QACX,IAAI,EAAE;YACJ,WAAW,EAAE;gBACX,KAAK,EAAE,WAAW;aACnB;SACF;KACF;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,2CAA2C;QACpD,YAAY,EAAE,IAAI;QAClB,QAAQ,EACN,0NAA0N;QAC5N,iBAAiB,EAAE,sBAAsB;QACzC,gBAAgB,EAAE,GAAG;QACrB,oBAAoB,EAClB,8uEAA8uE;QAChvE,mBAAmB,EAAE,QAAQ;QAC7B,kBAAkB,EAAE,GAAG;QACvB,iBAAiB,EACf,w8NAAw8N;KAC38N;IACD,QAAQ;CACT,CAAC;AAIF,eAAe,IAAI,CAAC;AAEpB,MAAM,CAAC,MAAM,SAAS,GAAU;IAC9B,IAAI,EAAE,sCAAsC;IAC5C,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,eAAe,CAAC,eAAe,EAAE,IAAI,CAAC;CACvD,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAU;IAC1C,IAAI,EAAE,8BAA8B;IACpC,MAAM,EAAE,SAAS,CAAC,MAAM;IACxB,IAAI,EAAE;QACJ,OAAO,EAAE,2CAA2C;QACpD,YAAY,EAAE,IAAI;QAClB,QAAQ,EACN,0NAA0N;QAC5N,iBAAiB,EAAE,sBAAsB;QACzC,gBAAgB,EAAE,GAAG;QACrB,oBAAoB,EAClB,8uEAA8uE;QAChvE,mBAAmB,EAAE,SAAS;QAC9B,kBAAkB,EAAE,GAAG;QACvB,iBAAiB,EACf,w8NAAw8N;KAC38N;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAU;IACnC,IAAI,EAAE,uBAAuB;IAC7B,MAAM,EAAE,SAAS,CAAC,MAAM;IACxB,IAAI,EAAE;QACJ,OAAO,EAAE,2CAA2C;QACpD,YAAY,EAAE,IAAI;QAClB,QAAQ,EACN,0NAA0N;QAC5N,iBAAiB,EAAE,sBAAsB;QACzC,gBAAgB,EAAE,GAAG;QACrB,oBAAoB,EAClB,8uEAA8uE;QAChvE,mBAAmB,EAAE,SAAS;QAC9B,kBAAkB,EAAE,GAAG;QACvB,QAAQ,EAAE,sCAAsC;QAChD,YAAY,EAAE,UAAU;KACzB;CACF,CAAC","sourcesContent":["import type { Meta, StoryObj } from '@storybook/web-components';\n\nimport { createDocumentation, createComponent } from '@/globals/documentation/story';\nimport docs from './pn-usp-simple-docs.json';\n\nconst { argTypes, textContent } = createDocumentation(docs);\n\nconst meta: Meta<HTMLPnUspSimpleElement> = {\n title: 'Components/Widgets/Usp Simple',\n parameters: {\n actions: {},\n docs: {\n description: {\n story: textContent,\n },\n },\n },\n args: {\n heading: 'Verify your address to find more packages',\n headingLevel: 'h2',\n preamble:\n 'Sometimes we do not receive your email address or your mobile number from the sender.If you verify your address with BankID, we can, with the help of your address and your name, find and add your packages to the app.',\n primaryButtonText: 'Identify with BankID',\n primaryButtonUrl: '#',\n primaryButtonIconSvg:\n '<svg class=\"pn-icon-svg\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\"><path fill=\"#000\" fill-rule=\"evenodd\" d=\"M23.591 9.136c.93-5.875-2.801-8.22-8.152-8.22H9.531L8.744 5.91h1.003c.55 0 1.07-.252 1.293-.616a.6.6 0 0 0 .104-.319c0-.207-.141-.363-.283-.467-.386-.29-.468-.593-.468-.809q-.002-.064.008-.118c.082-.527.795-1.098 1.739-1.098.564 0 .995.133 1.256.378.23.215.32.52.252.838-.082.379-.46.69-.676.846-.572.4-.498.75-.46.853.118.312.572.512.92.512h1.524v.007c2.08.015 3.195.972 2.846 3.198-.327 2.07-1.917 2.96-3.812 2.974l-.75 4.778h1.107c4.674 0 8.494-2.997 9.244-7.73M7.666 12.489l.981-6.172H7.6c-.49 0-1.122-.274-1.307-.779-.06-.17-.201-.757.609-1.328.29-.2.475-.423.513-.593a.46.46 0 0 0-.134-.453c-.178-.17-.528-.267-.974-.267-.75 0-1.278.43-1.33.742-.037.23.141.415.297.534.469.349.58.853.29 1.328-.297.49-.943.809-1.635.816h-1.07c-.05.343-.547 3.494-.985 6.27v.002c-.329 2.085-.624 3.958-.672 4.27h5.804l.103-.664c.12-.77.327-2.103.58-3.706zM.89 18.988h2.37c1.011 0 1.256.511 1.182.979-.06.378-.32.66-.765.846.564.215.787.548.706 1.075-.104.66-.677 1.15-1.427 1.15H.257zm1.568 1.676c.46 0 .676-.245.72-.534.045-.312-.096-.527-.557-.527h-.408l-.164 1.061zm-.253 1.75c.476 0 .75-.192.818-.585.052-.341-.141-.542-.602-.542h-.468l-.179 1.135h.431zm4.437.364c.148.267.446.334 1.062.29l.357-.831c-.35-.008-.364-.104-.312-.416l.141-.89c.12-.786-.52-1.083-1.24-1.083-.566 0-1.056.17-1.561.534l-.142.92c.588-.4.93-.534 1.338-.534.35 0 .46.104.431.386-.167.113-.452.185-.75.26-.364.09-.747.187-.96.37a.9.9 0 0 0-.319.534c-.067.4.179.764.877.764.387 0 .75-.104 1.078-.304m-.411-.949c.145-.042.291-.085.403-.156l-.067.445c-.022.141-.03.215-.014.29a1.17 1.17 0 0 1-.625.214c-.2 0-.327-.148-.297-.348.044-.283.322-.364.6-.445M8.855 19.9h1.234l-.067.408c.394-.334.69-.46 1.077-.46.691 0 1.011.423.9 1.113l-.32 2.07h-1.234l.268-1.714c.052-.312-.045-.46-.282-.46-.194 0-.372.104-.543.334l-.282 1.832H8.372zm5.336-.912h-1.234l-.631 4.043h1.233l.223-1.447h.015l.936 1.447h1.553l-1.218-1.796 1.516-1.335H15.06l-1.181 1.076zm3.135 0h1.42l-.624 4.043h-1.42zm4.14 0h-2.029l-.631 4.043h2.288c1.375 0 2.104-1.046 2.245-1.966.148-.942-.305-2.078-1.873-2.078m.468 2.017c-.111.72-.49 1.061-1.181 1.061h-.372l.327-2.121h.379c.765 0 .929.526.847 1.06\" clip-rule=\"evenodd\"/></svg>',\n secondaryButtonText: 'Cancel',\n secondaryButtonUrl: '#',\n pnIllustrationSvg:\n '<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 120 120\"><g clip-path=\"url(#globe-hand_svg__a)\"><path fill=\"#8EDDF9\" d=\"M0 60C0 26.863 26.863 0 60 0s60 26.863 60 60-26.863 60-60 60S0 93.137 0 60\"/><path fill=\"#0D234B\" d=\"M53.675 104.493c-10.907 0-21.056-4.355-28.586-12.263a.304.304 0 0 1 .013-.432.304.304 0 0 1 .431.012c7.412 7.786 17.406 12.076 28.142 12.076 21.43 0 38.865-17.458 38.865-38.922 0-10.764-4.29-20.779-12.08-28.202a.31.31 0 0 1-.013-.432.31.31 0 0 1 .432-.012c7.912 7.537 12.268 17.71 12.268 28.642.008 21.798-17.703 39.533-39.472 39.533\"/><path fill=\"#0D234B\" d=\"M21.728 95.917a.3.3 0 0 1-.216-.09.307.307 0 0 1 0-.432l62.805-62.944a.31.31 0 0 1 .432 0 .31.31 0 0 1 0 .432L21.944 95.827a.32.32 0 0 1-.216.09\"/><path fill=\"#005D92\" d=\"M53.675 100.57c19.64 0 35.56-15.943 35.56-35.61 0-19.666-15.92-35.609-35.56-35.609s-35.56 15.943-35.56 35.61c0 19.666 15.92 35.609 35.56 35.609\"/><path fill=\"#00A0D6\" d=\"M78.822 39.781a35.6 35.6 0 0 0-7.424-5.7c-2.098 1.34-3.5 3.691-3.5 6.352 0 3.989 3.142 7.264 7.065 7.5h.558c1.769 0 3.403 1.178 3.765 2.91.497 2.375-1.324 4.49-3.61 4.49h-.627v.004H59.88c-3.83 0-7.31 2.546-8.153 6.286-1.185 5.264 2.812 9.982 7.868 10.023 1.67.012 3.044 1.308 3.044 2.983v6.482c0 4.192 2.917 7.945 7.044 8.645 5.325.909 9.986-3.227 9.986-8.4V66.63a4.315 4.315 0 0 1 4.315-4.32h5.154c-.611-8.213-4.046-16.251-10.316-22.53M39.993 72.652h-.937v-.44c0-4.302-3.516-7.818-7.81-7.818-4.295 0-7.811 3.52-7.811 7.818V83.69c.09.146.183.297.277.444.143.224.285.448.436.668q.244.36.501.717c.159.224.314.448.477.668.167.228.346.448.521.672s.347.449.526.673c.195.236.4.468.599.7.15.176.297.355.456.53q.631.704 1.304 1.381a36 36 0 0 0 2.974 2.657 6.18 6.18 0 0 1 3.231-3.797l7.798-3.77a6.68 6.68 0 0 0 3.773-6.013v-.244c-.004-3.48-2.844-6.324-6.315-6.324M28.533 39.781a35.6 35.6 0 0 0-7.081 10.104c1.063.314 2.188.485 3.349.485h.99v7.216c0 1.792 1.181 3.41 2.917 3.85a3.936 3.936 0 0 0 4.93-3.801v-1.056a6.21 6.21 0 0 1 6.205-6.213c6.556 0 11.922-5.374 11.922-11.938v-9.024c-8.455.456-16.778 3.911-23.232 10.377\"/><path fill=\"#F06365\" d=\"m43.127 37.39-7.912-10.288C30.158 20.526 34.84 11 43.127 11s12.968 9.526 7.912 16.102z\"/><path fill=\"#FFC8A3\" d=\"M43.127 24.368a4.02 4.02 0 0 0 4.017-4.021 4.02 4.02 0 0 0-4.017-4.022 4.02 4.02 0 0 0-4.018 4.022 4.02 4.02 0 0 0 4.018 4.021\"/><path fill=\"#0D234B\" d=\"M53.675 110.886a.307.307 0 0 1-.305-.305v-6.397c0-.167.138-.305.305-.305s.306.138.306.305v6.397a.3.3 0 0 1-.306.305\"/><path fill=\"#FFC8A3\" d=\"M68.892 119.784h-30.41v-4.665c0-1.055.855-1.907 1.906-1.907h26.597c1.055 0 1.907.856 1.907 1.907z\"/><path fill=\"#FFF1E3\" d=\"M65.331 113.213H42.043v-.844a2.21 2.21 0 0 1 2.208-2.208h18.868a2.21 2.21 0 0 1 2.208 2.208v.844z\"/><path fill=\"#fff\" d=\"M86.889 83.12a7.11 7.11 0 0 1 7.105-7.114c3.924 0 7.106 3.186 7.106 7.114z\"/><path fill=\"#fff\" d=\"M73.561 83.12a7.11 7.11 0 0 1 7.106-7.113c3.924 0 7.105 3.186 7.105 7.114zM14.228 83.93c0-4.196 3.398-7.598 7.587-7.598 4.188 0 7.586 3.402 7.586 7.599z\"/><path fill=\"#fff\" d=\"M0 83.931c0-4.196 3.398-7.598 7.586-7.598s7.587 3.402 7.587 7.598z\"/><path fill=\"#FBC2C1\" d=\"m69.036 63.267 5.093 4.502 3.789.016-1.072-5.056zM113.672 88.412l-9.326 2.086-23.578-.078c3.68 7.33 10.976 13.042 10.976 13.042l.013 5.431v10.891h27.212v-10.891zM70.815 80.455l4.836 4.636.24-5.28zM68.778 72.47l5.105 3.797 3.532-.285-1.393-4.633zM82.073 49.377l-9.877-7.933a3.357 3.357 0 0 0-4.77.574 3.37 3.37 0 0 0 .26 4.409l14.386 14.745z\"/><path fill=\"#500715\" d=\"m75.664 44.238-1.846-1.5 1.023 11.026.823.839z\"/><path fill=\"#000\" d=\"M75.175 38.293v-3.039c0-1.882 1.475-3.406 3.3-3.406h25.415c1.822 0 3.301 1.524 3.301 3.406v3.04zM107.19 85.193v3.594c0 1.882-1.479 3.406-3.3 3.406H78.474c-1.821 0-3.3-1.524-3.3-3.406v-3.594z\"/><path fill=\"#fff\" d=\"M107.19 38.294H75.174v46.899h32.016z\"/><path fill=\"#F3F2F2\" d=\"M103.308 82.337H78.883a.71.71 0 0 1-.709-.709v-4.775a.71.71 0 0 1 .709-.709h24.425c.392 0 .709.318.709.709v4.775a.704.704 0 0 1-.709.709\"/><path fill=\"#D3CECB\" d=\"M92.152 78.727h-6.001a.232.232 0 1 1 0-.465h6.001a.232.232 0 1 1 0 .465M95.53 80.21h-9.374a.23.23 0 0 1-.233-.232.23.23 0 0 1 .233-.232h9.374a.232.232 0 1 1 0 .464M98.338 78.728h-4.792a.232.232 0 1 1 0-.465h4.792c.126 0 .232.102.232.232a.235.235 0 0 1-.232.233M81.527 80.85a1.613 1.613 0 1 0 0-3.227 1.613 1.613 0 0 0 0 3.227\"/><path fill=\"#F3F2F2\" d=\"M103.308 74.193H78.883a.71.71 0 0 1-.709-.709v-4.775a.71.71 0 0 1 .709-.709h24.425a.71.71 0 0 1 .709.709v4.775a.704.704 0 0 1-.709.709\"/><path fill=\"#D3CECB\" d=\"M98.472 70.583h-12.32a.23.23 0 0 1-.233-.233.23.23 0 0 1 .232-.232h12.321a.232.232 0 1 1 0 .465M90.385 72.066H86.15a.232.232 0 1 1 0-.464h4.234a.232.232 0 1 1 0 .464M94.31 72.066h-2.612a.232.232 0 1 1 0-.464h2.611a.232.232 0 1 1 0 .464M81.528 72.705a1.614 1.614 0 1 0 0-3.227 1.614 1.614 0 0 0 0 3.227\"/><path fill=\"#005D92\" d=\"M102.599 65.941H79.591a1.42 1.42 0 0 1-1.422-1.422V42.571a1.42 1.42 0 0 1 1.422-1.422H102.6a1.42 1.42 0 0 1 1.422 1.422v21.948c0 .786-.64 1.422-1.422 1.422\"/><path fill=\"#8EDDF9\" d=\"M98.056 59.004H83.792a.232.232 0 1 1 0-.464h14.264a.232.232 0 1 1 0 .464M94.793 61.037h-7.737a.23.23 0 0 1-.232-.232.23.23 0 0 1 .232-.232h7.737a.232.232 0 1 1 0 .464\"/><path fill=\"#00A0D6\" d=\"M95.787 56.701h2.2c.616 0 1.113-.497 1.113-1.112v-8.422c0-.615-.497-1.112-1.112-1.112h-2.2z\"/><path fill=\"#8EDDF9\" d=\"M96.887 56.701H84.204a1.11 1.11 0 0 1-1.112-1.112v-8.422c0-.615.497-1.112 1.112-1.112H95.96c.513 0 .928.416.928.93z\"/><path fill=\"#E0F8FF\" d=\"M95.4 49.082c0 .607-.489 1.096-1.096 1.096H92.68a1.096 1.096 0 0 1 0-2.192h1.625c.603 0 1.096.493 1.096 1.096\"/><path fill=\"#FBC2C1\" d=\"m78.201 58.017-5.797-1.438a3.696 3.696 0 0 0-4.58 3.393l-.016.33a3.7 3.7 0 0 0 2.998 3.839l5.815 1.108a3.698 3.698 0 0 0 4.383-3.435 3.7 3.7 0 0 0-2.803-3.797\"/><path fill=\"#500715\" d=\"M76.62 65.546c.131 0 .25-.081.286-.212a.294.294 0 0 0-.2-.37l-3.895-1.166a.295.295 0 0 0-.37.2.294.294 0 0 0 .2.37l3.894 1.166a.3.3 0 0 0 .086.012\"/><path fill=\"#FBC2C1\" d=\"m76.914 66.85-5.52-.884a3.463 3.463 0 0 0-4.006 3.524l.008.306a3.465 3.465 0 0 0 3.101 3.345l5.513.574a3.463 3.463 0 0 0 3.817-3.549 3.46 3.46 0 0 0-2.913-3.316M78.316 76.124l-4.743-.758a2.977 2.977 0 0 0-3.443 3.028l.008.264a2.974 2.974 0 0 0 2.665 2.873l4.734.493a2.975 2.975 0 0 0 3.28-3.052 2.974 2.974 0 0 0-2.501-2.848M122.341 120l-3.376-46.819a9.6 9.6 0 0 0-.611-3.492l-6.584-17.662c-.684-1.837-2.994-2.42-4.469-1.128l-.114.102v19.682s-12.378 11.527-3.671 26.398L109.847 120z\"/><path fill=\"#500715\" d=\"M76.01 74.018c.138 0 .26-.098.293-.237a.3.3 0 0 0-.232-.354l-3.724-.778a.3.3 0 0 0-.355.232.3.3 0 0 0 .232.355l3.724.778q.03.005.062.004M75.339 82.091a.3.3 0 0 0 .297-.268.297.297 0 0 0-.265-.326l-1.564-.163a.297.297 0 0 0-.061.59l1.564.163q.011.005.028.004M103.091 96.068a.3.3 0 0 0 .245-.469c-1.475-2.151-1.777-3.178-1.781-3.19a.294.294 0 0 0-.366-.204.3.3 0 0 0-.208.367c.012.045.318 1.112 1.862 3.365.061.082.155.13.248.13\"/><path fill=\"#500715\" d=\"m102.18 94.215-11.339-2.021h10.499z\"/></g><defs><clipPath id=\"globe-hand_svg__a\"><path fill=\"#fff\" d=\"M0 60C0 26.863 26.863 0 60 0s60 26.863 60 60-26.863 60-60 60S0 93.137 0 60\"/></clipPath></defs></svg>',\n },\n argTypes,\n};\n\ntype Story = StoryObj<HTMLPnUspSimpleElement>;\n\nexport default meta;\n\nexport const UspSimple: Story = {\n name: 'Simple USP with CTA and Illustration',\n render: args => createComponent('pn-usp-simple', args),\n};\n\nexport const UspSimpleIllustration: Story = {\n name: 'Simple USP with Illustration',\n render: UspSimple.render,\n args: {\n heading: 'Verify your address to find more packages',\n headingLevel: 'h2',\n preamble:\n 'Sometimes we do not receive your email address or your mobile number from the sender.If you verify your address with BankID, we can, with the help of your address and your name, find and add your packages to the app.',\n primaryButtonText: 'Identify with BankID',\n primaryButtonUrl: '#',\n primaryButtonIconSvg:\n '<svg class=\"pn-icon-svg\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\"><path fill=\"#000\" fill-rule=\"evenodd\" d=\"M23.591 9.136c.93-5.875-2.801-8.22-8.152-8.22H9.531L8.744 5.91h1.003c.55 0 1.07-.252 1.293-.616a.6.6 0 0 0 .104-.319c0-.207-.141-.363-.283-.467-.386-.29-.468-.593-.468-.809q-.002-.064.008-.118c.082-.527.795-1.098 1.739-1.098.564 0 .995.133 1.256.378.23.215.32.52.252.838-.082.379-.46.69-.676.846-.572.4-.498.75-.46.853.118.312.572.512.92.512h1.524v.007c2.08.015 3.195.972 2.846 3.198-.327 2.07-1.917 2.96-3.812 2.974l-.75 4.778h1.107c4.674 0 8.494-2.997 9.244-7.73M7.666 12.489l.981-6.172H7.6c-.49 0-1.122-.274-1.307-.779-.06-.17-.201-.757.609-1.328.29-.2.475-.423.513-.593a.46.46 0 0 0-.134-.453c-.178-.17-.528-.267-.974-.267-.75 0-1.278.43-1.33.742-.037.23.141.415.297.534.469.349.58.853.29 1.328-.297.49-.943.809-1.635.816h-1.07c-.05.343-.547 3.494-.985 6.27v.002c-.329 2.085-.624 3.958-.672 4.27h5.804l.103-.664c.12-.77.327-2.103.58-3.706zM.89 18.988h2.37c1.011 0 1.256.511 1.182.979-.06.378-.32.66-.765.846.564.215.787.548.706 1.075-.104.66-.677 1.15-1.427 1.15H.257zm1.568 1.676c.46 0 .676-.245.72-.534.045-.312-.096-.527-.557-.527h-.408l-.164 1.061zm-.253 1.75c.476 0 .75-.192.818-.585.052-.341-.141-.542-.602-.542h-.468l-.179 1.135h.431zm4.437.364c.148.267.446.334 1.062.29l.357-.831c-.35-.008-.364-.104-.312-.416l.141-.89c.12-.786-.52-1.083-1.24-1.083-.566 0-1.056.17-1.561.534l-.142.92c.588-.4.93-.534 1.338-.534.35 0 .46.104.431.386-.167.113-.452.185-.75.26-.364.09-.747.187-.96.37a.9.9 0 0 0-.319.534c-.067.4.179.764.877.764.387 0 .75-.104 1.078-.304m-.411-.949c.145-.042.291-.085.403-.156l-.067.445c-.022.141-.03.215-.014.29a1.17 1.17 0 0 1-.625.214c-.2 0-.327-.148-.297-.348.044-.283.322-.364.6-.445M8.855 19.9h1.234l-.067.408c.394-.334.69-.46 1.077-.46.691 0 1.011.423.9 1.113l-.32 2.07h-1.234l.268-1.714c.052-.312-.045-.46-.282-.46-.194 0-.372.104-.543.334l-.282 1.832H8.372zm5.336-.912h-1.234l-.631 4.043h1.233l.223-1.447h.015l.936 1.447h1.553l-1.218-1.796 1.516-1.335H15.06l-1.181 1.076zm3.135 0h1.42l-.624 4.043h-1.42zm4.14 0h-2.029l-.631 4.043h2.288c1.375 0 2.104-1.046 2.245-1.966.148-.942-.305-2.078-1.873-2.078m.468 2.017c-.111.72-.49 1.061-1.181 1.061h-.372l.327-2.121h.379c.765 0 .929.526.847 1.06\" clip-rule=\"evenodd\"/></svg>',\n secondaryButtonText: 'Not now',\n secondaryButtonUrl: '#',\n pnIllustrationSvg:\n '<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 120 120\"><g clip-path=\"url(#globe-hand_svg__a)\"><path fill=\"#8EDDF9\" d=\"M0 60C0 26.863 26.863 0 60 0s60 26.863 60 60-26.863 60-60 60S0 93.137 0 60\"/><path fill=\"#0D234B\" d=\"M53.675 104.493c-10.907 0-21.056-4.355-28.586-12.263a.304.304 0 0 1 .013-.432.304.304 0 0 1 .431.012c7.412 7.786 17.406 12.076 28.142 12.076 21.43 0 38.865-17.458 38.865-38.922 0-10.764-4.29-20.779-12.08-28.202a.31.31 0 0 1-.013-.432.31.31 0 0 1 .432-.012c7.912 7.537 12.268 17.71 12.268 28.642.008 21.798-17.703 39.533-39.472 39.533\"/><path fill=\"#0D234B\" d=\"M21.728 95.917a.3.3 0 0 1-.216-.09.307.307 0 0 1 0-.432l62.805-62.944a.31.31 0 0 1 .432 0 .31.31 0 0 1 0 .432L21.944 95.827a.32.32 0 0 1-.216.09\"/><path fill=\"#005D92\" d=\"M53.675 100.57c19.64 0 35.56-15.943 35.56-35.61 0-19.666-15.92-35.609-35.56-35.609s-35.56 15.943-35.56 35.61c0 19.666 15.92 35.609 35.56 35.609\"/><path fill=\"#00A0D6\" d=\"M78.822 39.781a35.6 35.6 0 0 0-7.424-5.7c-2.098 1.34-3.5 3.691-3.5 6.352 0 3.989 3.142 7.264 7.065 7.5h.558c1.769 0 3.403 1.178 3.765 2.91.497 2.375-1.324 4.49-3.61 4.49h-.627v.004H59.88c-3.83 0-7.31 2.546-8.153 6.286-1.185 5.264 2.812 9.982 7.868 10.023 1.67.012 3.044 1.308 3.044 2.983v6.482c0 4.192 2.917 7.945 7.044 8.645 5.325.909 9.986-3.227 9.986-8.4V66.63a4.315 4.315 0 0 1 4.315-4.32h5.154c-.611-8.213-4.046-16.251-10.316-22.53M39.993 72.652h-.937v-.44c0-4.302-3.516-7.818-7.81-7.818-4.295 0-7.811 3.52-7.811 7.818V83.69c.09.146.183.297.277.444.143.224.285.448.436.668q.244.36.501.717c.159.224.314.448.477.668.167.228.346.448.521.672s.347.449.526.673c.195.236.4.468.599.7.15.176.297.355.456.53q.631.704 1.304 1.381a36 36 0 0 0 2.974 2.657 6.18 6.18 0 0 1 3.231-3.797l7.798-3.77a6.68 6.68 0 0 0 3.773-6.013v-.244c-.004-3.48-2.844-6.324-6.315-6.324M28.533 39.781a35.6 35.6 0 0 0-7.081 10.104c1.063.314 2.188.485 3.349.485h.99v7.216c0 1.792 1.181 3.41 2.917 3.85a3.936 3.936 0 0 0 4.93-3.801v-1.056a6.21 6.21 0 0 1 6.205-6.213c6.556 0 11.922-5.374 11.922-11.938v-9.024c-8.455.456-16.778 3.911-23.232 10.377\"/><path fill=\"#F06365\" d=\"m43.127 37.39-7.912-10.288C30.158 20.526 34.84 11 43.127 11s12.968 9.526 7.912 16.102z\"/><path fill=\"#FFC8A3\" d=\"M43.127 24.368a4.02 4.02 0 0 0 4.017-4.021 4.02 4.02 0 0 0-4.017-4.022 4.02 4.02 0 0 0-4.018 4.022 4.02 4.02 0 0 0 4.018 4.021\"/><path fill=\"#0D234B\" d=\"M53.675 110.886a.307.307 0 0 1-.305-.305v-6.397c0-.167.138-.305.305-.305s.306.138.306.305v6.397a.3.3 0 0 1-.306.305\"/><path fill=\"#FFC8A3\" d=\"M68.892 119.784h-30.41v-4.665c0-1.055.855-1.907 1.906-1.907h26.597c1.055 0 1.907.856 1.907 1.907z\"/><path fill=\"#FFF1E3\" d=\"M65.331 113.213H42.043v-.844a2.21 2.21 0 0 1 2.208-2.208h18.868a2.21 2.21 0 0 1 2.208 2.208v.844z\"/><path fill=\"#fff\" d=\"M86.889 83.12a7.11 7.11 0 0 1 7.105-7.114c3.924 0 7.106 3.186 7.106 7.114z\"/><path fill=\"#fff\" d=\"M73.561 83.12a7.11 7.11 0 0 1 7.106-7.113c3.924 0 7.105 3.186 7.105 7.114zM14.228 83.93c0-4.196 3.398-7.598 7.587-7.598 4.188 0 7.586 3.402 7.586 7.599z\"/><path fill=\"#fff\" d=\"M0 83.931c0-4.196 3.398-7.598 7.586-7.598s7.587 3.402 7.587 7.598z\"/><path fill=\"#FBC2C1\" d=\"m69.036 63.267 5.093 4.502 3.789.016-1.072-5.056zM113.672 88.412l-9.326 2.086-23.578-.078c3.68 7.33 10.976 13.042 10.976 13.042l.013 5.431v10.891h27.212v-10.891zM70.815 80.455l4.836 4.636.24-5.28zM68.778 72.47l5.105 3.797 3.532-.285-1.393-4.633zM82.073 49.377l-9.877-7.933a3.357 3.357 0 0 0-4.77.574 3.37 3.37 0 0 0 .26 4.409l14.386 14.745z\"/><path fill=\"#500715\" d=\"m75.664 44.238-1.846-1.5 1.023 11.026.823.839z\"/><path fill=\"#000\" d=\"M75.175 38.293v-3.039c0-1.882 1.475-3.406 3.3-3.406h25.415c1.822 0 3.301 1.524 3.301 3.406v3.04zM107.19 85.193v3.594c0 1.882-1.479 3.406-3.3 3.406H78.474c-1.821 0-3.3-1.524-3.3-3.406v-3.594z\"/><path fill=\"#fff\" d=\"M107.19 38.294H75.174v46.899h32.016z\"/><path fill=\"#F3F2F2\" d=\"M103.308 82.337H78.883a.71.71 0 0 1-.709-.709v-4.775a.71.71 0 0 1 .709-.709h24.425c.392 0 .709.318.709.709v4.775a.704.704 0 0 1-.709.709\"/><path fill=\"#D3CECB\" d=\"M92.152 78.727h-6.001a.232.232 0 1 1 0-.465h6.001a.232.232 0 1 1 0 .465M95.53 80.21h-9.374a.23.23 0 0 1-.233-.232.23.23 0 0 1 .233-.232h9.374a.232.232 0 1 1 0 .464M98.338 78.728h-4.792a.232.232 0 1 1 0-.465h4.792c.126 0 .232.102.232.232a.235.235 0 0 1-.232.233M81.527 80.85a1.613 1.613 0 1 0 0-3.227 1.613 1.613 0 0 0 0 3.227\"/><path fill=\"#F3F2F2\" d=\"M103.308 74.193H78.883a.71.71 0 0 1-.709-.709v-4.775a.71.71 0 0 1 .709-.709h24.425a.71.71 0 0 1 .709.709v4.775a.704.704 0 0 1-.709.709\"/><path fill=\"#D3CECB\" d=\"M98.472 70.583h-12.32a.23.23 0 0 1-.233-.233.23.23 0 0 1 .232-.232h12.321a.232.232 0 1 1 0 .465M90.385 72.066H86.15a.232.232 0 1 1 0-.464h4.234a.232.232 0 1 1 0 .464M94.31 72.066h-2.612a.232.232 0 1 1 0-.464h2.611a.232.232 0 1 1 0 .464M81.528 72.705a1.614 1.614 0 1 0 0-3.227 1.614 1.614 0 0 0 0 3.227\"/><path fill=\"#005D92\" d=\"M102.599 65.941H79.591a1.42 1.42 0 0 1-1.422-1.422V42.571a1.42 1.42 0 0 1 1.422-1.422H102.6a1.42 1.42 0 0 1 1.422 1.422v21.948c0 .786-.64 1.422-1.422 1.422\"/><path fill=\"#8EDDF9\" d=\"M98.056 59.004H83.792a.232.232 0 1 1 0-.464h14.264a.232.232 0 1 1 0 .464M94.793 61.037h-7.737a.23.23 0 0 1-.232-.232.23.23 0 0 1 .232-.232h7.737a.232.232 0 1 1 0 .464\"/><path fill=\"#00A0D6\" d=\"M95.787 56.701h2.2c.616 0 1.113-.497 1.113-1.112v-8.422c0-.615-.497-1.112-1.112-1.112h-2.2z\"/><path fill=\"#8EDDF9\" d=\"M96.887 56.701H84.204a1.11 1.11 0 0 1-1.112-1.112v-8.422c0-.615.497-1.112 1.112-1.112H95.96c.513 0 .928.416.928.93z\"/><path fill=\"#E0F8FF\" d=\"M95.4 49.082c0 .607-.489 1.096-1.096 1.096H92.68a1.096 1.096 0 0 1 0-2.192h1.625c.603 0 1.096.493 1.096 1.096\"/><path fill=\"#FBC2C1\" d=\"m78.201 58.017-5.797-1.438a3.696 3.696 0 0 0-4.58 3.393l-.016.33a3.7 3.7 0 0 0 2.998 3.839l5.815 1.108a3.698 3.698 0 0 0 4.383-3.435 3.7 3.7 0 0 0-2.803-3.797\"/><path fill=\"#500715\" d=\"M76.62 65.546c.131 0 .25-.081.286-.212a.294.294 0 0 0-.2-.37l-3.895-1.166a.295.295 0 0 0-.37.2.294.294 0 0 0 .2.37l3.894 1.166a.3.3 0 0 0 .086.012\"/><path fill=\"#FBC2C1\" d=\"m76.914 66.85-5.52-.884a3.463 3.463 0 0 0-4.006 3.524l.008.306a3.465 3.465 0 0 0 3.101 3.345l5.513.574a3.463 3.463 0 0 0 3.817-3.549 3.46 3.46 0 0 0-2.913-3.316M78.316 76.124l-4.743-.758a2.977 2.977 0 0 0-3.443 3.028l.008.264a2.974 2.974 0 0 0 2.665 2.873l4.734.493a2.975 2.975 0 0 0 3.28-3.052 2.974 2.974 0 0 0-2.501-2.848M122.341 120l-3.376-46.819a9.6 9.6 0 0 0-.611-3.492l-6.584-17.662c-.684-1.837-2.994-2.42-4.469-1.128l-.114.102v19.682s-12.378 11.527-3.671 26.398L109.847 120z\"/><path fill=\"#500715\" d=\"M76.01 74.018c.138 0 .26-.098.293-.237a.3.3 0 0 0-.232-.354l-3.724-.778a.3.3 0 0 0-.355.232.3.3 0 0 0 .232.355l3.724.778q.03.005.062.004M75.339 82.091a.3.3 0 0 0 .297-.268.297.297 0 0 0-.265-.326l-1.564-.163a.297.297 0 0 0-.061.59l1.564.163q.011.005.028.004M103.091 96.068a.3.3 0 0 0 .245-.469c-1.475-2.151-1.777-3.178-1.781-3.19a.294.294 0 0 0-.366-.204.3.3 0 0 0-.208.367c.012.045.318 1.112 1.862 3.365.061.082.155.13.248.13\"/><path fill=\"#500715\" d=\"m102.18 94.215-11.339-2.021h10.499z\"/></g><defs><clipPath id=\"globe-hand_svg__a\"><path fill=\"#fff\" d=\"M0 60C0 26.863 26.863 0 60 0s60 26.863 60 60-26.863 60-60 60S0 93.137 0 60\"/></clipPath></defs></svg>',\n },\n};\n\nexport const UspSimpleImage: Story = {\n name: 'Simple USP with Image',\n render: UspSimple.render,\n args: {\n heading: 'Verify your address to find more packages',\n headingLevel: 'h2',\n preamble:\n 'Sometimes we do not receive your email address or your mobile number from the sender.If you verify your address with BankID, we can, with the help of your address and your name, find and add your packages to the app.',\n primaryButtonText: 'Identify with BankID',\n primaryButtonUrl: '#',\n primaryButtonIconSvg:\n '<svg class=\"pn-icon-svg\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\"><path fill=\"#000\" fill-rule=\"evenodd\" d=\"M23.591 9.136c.93-5.875-2.801-8.22-8.152-8.22H9.531L8.744 5.91h1.003c.55 0 1.07-.252 1.293-.616a.6.6 0 0 0 .104-.319c0-.207-.141-.363-.283-.467-.386-.29-.468-.593-.468-.809q-.002-.064.008-.118c.082-.527.795-1.098 1.739-1.098.564 0 .995.133 1.256.378.23.215.32.52.252.838-.082.379-.46.69-.676.846-.572.4-.498.75-.46.853.118.312.572.512.92.512h1.524v.007c2.08.015 3.195.972 2.846 3.198-.327 2.07-1.917 2.96-3.812 2.974l-.75 4.778h1.107c4.674 0 8.494-2.997 9.244-7.73M7.666 12.489l.981-6.172H7.6c-.49 0-1.122-.274-1.307-.779-.06-.17-.201-.757.609-1.328.29-.2.475-.423.513-.593a.46.46 0 0 0-.134-.453c-.178-.17-.528-.267-.974-.267-.75 0-1.278.43-1.33.742-.037.23.141.415.297.534.469.349.58.853.29 1.328-.297.49-.943.809-1.635.816h-1.07c-.05.343-.547 3.494-.985 6.27v.002c-.329 2.085-.624 3.958-.672 4.27h5.804l.103-.664c.12-.77.327-2.103.58-3.706zM.89 18.988h2.37c1.011 0 1.256.511 1.182.979-.06.378-.32.66-.765.846.564.215.787.548.706 1.075-.104.66-.677 1.15-1.427 1.15H.257zm1.568 1.676c.46 0 .676-.245.72-.534.045-.312-.096-.527-.557-.527h-.408l-.164 1.061zm-.253 1.75c.476 0 .75-.192.818-.585.052-.341-.141-.542-.602-.542h-.468l-.179 1.135h.431zm4.437.364c.148.267.446.334 1.062.29l.357-.831c-.35-.008-.364-.104-.312-.416l.141-.89c.12-.786-.52-1.083-1.24-1.083-.566 0-1.056.17-1.561.534l-.142.92c.588-.4.93-.534 1.338-.534.35 0 .46.104.431.386-.167.113-.452.185-.75.26-.364.09-.747.187-.96.37a.9.9 0 0 0-.319.534c-.067.4.179.764.877.764.387 0 .75-.104 1.078-.304m-.411-.949c.145-.042.291-.085.403-.156l-.067.445c-.022.141-.03.215-.014.29a1.17 1.17 0 0 1-.625.214c-.2 0-.327-.148-.297-.348.044-.283.322-.364.6-.445M8.855 19.9h1.234l-.067.408c.394-.334.69-.46 1.077-.46.691 0 1.011.423.9 1.113l-.32 2.07h-1.234l.268-1.714c.052-.312-.045-.46-.282-.46-.194 0-.372.104-.543.334l-.282 1.832H8.372zm5.336-.912h-1.234l-.631 4.043h1.233l.223-1.447h.015l.936 1.447h1.553l-1.218-1.796 1.516-1.335H15.06l-1.181 1.076zm3.135 0h1.42l-.624 4.043h-1.42zm4.14 0h-2.029l-.631 4.043h2.288c1.375 0 2.104-1.046 2.245-1.966.148-.942-.305-2.078-1.873-2.078m.468 2.017c-.111.72-.49 1.061-1.181 1.061h-.372l.327-2.121h.379c.765 0 .929.526.847 1.06\" clip-rule=\"evenodd\"/></svg>',\n secondaryButtonText: 'Not now',\n secondaryButtonUrl: '#',\n imageUrl: 'https://picsum.photos/id/101/200/200',\n imageAltText: 'Alt Text',\n },\n};\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
export const HeadingTag = ({
|
|
2
|
+
export const HeadingTag = ({ level, id, cssClass, additionalProps }, children) => {
|
|
3
3
|
const Tag = level;
|
|
4
|
-
return
|
|
4
|
+
return h(Tag, { id: id, className: cssClass, ...additionalProps, innerHTML: children });
|
|
5
5
|
};
|
|
6
6
|
//# sourceMappingURL=HeadingTag.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeadingTag.js","sourceRoot":"","sources":["../../src/globals/HeadingTag.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AASvD,MAAM,CAAC,MAAM,UAAU,GAAyC,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"HeadingTag.js","sourceRoot":"","sources":["../../src/globals/HeadingTag.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AASvD,MAAM,CAAC,MAAM,UAAU,GAAyC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,eAAe,EAAE,EAAE,QAAQ,EAAE,EAAE;IACrH,MAAM,GAAG,GAAG,KAAK,CAAC;IAElB,OAAO,EAAC,GAAG,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,KAAM,eAAe,EAAE,SAAS,EAAE,QAAQ,GAAQ,CAAC;AAC5F,CAAC,CAAC","sourcesContent":["import { h, FunctionalComponent } from '@stencil/core';\n\ninterface HeadingTagProps {\n level: string;\n id?: string;\n cssClass?: string;\n additionalProps?: { [key: string]: string };\n}\n\nexport const HeadingTag: FunctionalComponent<HeadingTagProps> = ({ level, id, cssClass, additionalProps }, children) => {\n const Tag = level;\n\n return <Tag id={id} className={cssClass} {...additionalProps} innerHTML={children}></Tag>;\n};\n"]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { isLocalStorageAvailable } from "../utils/utils";
|
|
2
|
+
export class LocalStorageService {
|
|
3
|
+
available;
|
|
4
|
+
constructor() {
|
|
5
|
+
this.available = isLocalStorageAvailable();
|
|
6
|
+
}
|
|
7
|
+
get(key) {
|
|
8
|
+
if (!this.available)
|
|
9
|
+
return null;
|
|
10
|
+
try {
|
|
11
|
+
const item = localStorage.getItem(key);
|
|
12
|
+
return item ? JSON.parse(item) : null;
|
|
13
|
+
}
|
|
14
|
+
catch (error) {
|
|
15
|
+
console.warn(`Error getting item ${key} from localStorage:`, error);
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
set(key, value) {
|
|
20
|
+
if (!this.available)
|
|
21
|
+
return;
|
|
22
|
+
try {
|
|
23
|
+
localStorage.setItem(key, JSON.stringify(value));
|
|
24
|
+
}
|
|
25
|
+
catch (error) {
|
|
26
|
+
console.warn(`Error setting item ${key} in localStorage:`, error);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
remove(key) {
|
|
30
|
+
if (!this.available)
|
|
31
|
+
return;
|
|
32
|
+
try {
|
|
33
|
+
localStorage.removeItem(key);
|
|
34
|
+
}
|
|
35
|
+
catch (error) {
|
|
36
|
+
console.warn(`Error removing item ${key} from localStorage:`, error);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
clear() {
|
|
40
|
+
if (!this.available)
|
|
41
|
+
return;
|
|
42
|
+
try {
|
|
43
|
+
localStorage.clear();
|
|
44
|
+
}
|
|
45
|
+
catch (error) {
|
|
46
|
+
console.warn('Error clearing localStorage:', error);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=LocalStorageService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocalStorageService.js","sourceRoot":"","sources":["../../src/globals/LocalStorageService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AASxD,MAAM,OAAO,mBAAmB;IACtB,SAAS,CAAU;IAE3B;QACE,IAAI,CAAC,SAAS,GAAG,uBAAuB,EAAE,CAAC;IAC7C,CAAC;IAEM,GAAG,CAAC,GAAW;QACpB,IAAI,CAAC,IAAI,CAAC,SAAS;YAAE,OAAO,IAAI,CAAC;QAEjC,IAAI,CAAC;YACH,MAAM,IAAI,GAAG,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;YACvC,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACxC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,IAAI,CAAC,sBAAsB,GAAG,qBAAqB,EAAE,KAAK,CAAC,CAAC;YACpE,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAEM,GAAG,CAAC,GAAW,EAAE,KAAU;QAChC,IAAI,CAAC,IAAI,CAAC,SAAS;YAAE,OAAO;QAE5B,IAAI,CAAC;YACH,YAAY,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;QACnD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,IAAI,CAAC,sBAAsB,GAAG,mBAAmB,EAAE,KAAK,CAAC,CAAC;QACpE,CAAC;IACH,CAAC;IAEM,MAAM,CAAC,GAAW;QACvB,IAAI,CAAC,IAAI,CAAC,SAAS;YAAE,OAAO;QAE5B,IAAI,CAAC;YACH,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QAC/B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,IAAI,CAAC,uBAAuB,GAAG,qBAAqB,EAAE,KAAK,CAAC,CAAC;QACvE,CAAC;IACH,CAAC;IAEM,KAAK;QACV,IAAI,CAAC,IAAI,CAAC,SAAS;YAAE,OAAO;QAE5B,IAAI,CAAC;YACH,YAAY,CAAC,KAAK,EAAE,CAAC;QACvB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,KAAK,CAAC,CAAC;QACtD,CAAC;IACH,CAAC;CACF","sourcesContent":["import { isLocalStorageAvailable } from \"@/utils/utils\";\n\nexport interface StorageService {\n get(key: string): any | null;\n set(key: string, value: any): void;\n remove(key: string): void;\n clear(): void;\n}\n\nexport class LocalStorageService implements StorageService {\n private available: boolean;\n\n constructor() {\n this.available = isLocalStorageAvailable();\n }\n\n public get(key: string): any | null {\n if (!this.available) return null;\n\n try {\n const item = localStorage.getItem(key);\n return item ? JSON.parse(item) : null;\n } catch (error) {\n console.warn(`Error getting item ${key} from localStorage:`, error);\n return null;\n }\n }\n\n public set(key: string, value: any): void {\n if (!this.available) return;\n\n try {\n localStorage.setItem(key, JSON.stringify(value));\n } catch (error) {\n console.warn(`Error setting item ${key} in localStorage:`, error);\n }\n }\n\n public remove(key: string): void {\n if (!this.available) return;\n\n try {\n localStorage.removeItem(key);\n } catch (error) {\n console.warn(`Error removing item ${key} from localStorage:`, error);\n }\n }\n\n public clear(): void {\n if (!this.available) return;\n\n try {\n localStorage.clear();\n } catch (error) {\n console.warn('Error clearing localStorage:', error);\n }\n }\n}\n\n"]}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
export const DEFAULT_BREAKPOINTS = {
|
|
2
|
+
mobile: 768,
|
|
3
|
+
tablet: 1024,
|
|
4
|
+
desktop: 1025,
|
|
5
|
+
};
|
|
6
|
+
export class ScreenWidth {
|
|
7
|
+
static instance;
|
|
8
|
+
breakpoints;
|
|
9
|
+
callbacks;
|
|
10
|
+
resizeTimeout;
|
|
11
|
+
constructor() {
|
|
12
|
+
this.breakpoints = DEFAULT_BREAKPOINTS;
|
|
13
|
+
this.callbacks = new Set();
|
|
14
|
+
this.initializeListeners();
|
|
15
|
+
}
|
|
16
|
+
static getInstance() {
|
|
17
|
+
if (!ScreenWidth.instance) {
|
|
18
|
+
ScreenWidth.instance = new ScreenWidth();
|
|
19
|
+
}
|
|
20
|
+
return ScreenWidth.instance;
|
|
21
|
+
}
|
|
22
|
+
setBreakpoints(breakpoints) {
|
|
23
|
+
this.breakpoints = { ...this.breakpoints, ...breakpoints };
|
|
24
|
+
this.notifyListeners();
|
|
25
|
+
}
|
|
26
|
+
getWidth() {
|
|
27
|
+
if (typeof window === 'undefined')
|
|
28
|
+
return 0;
|
|
29
|
+
return window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth || 0;
|
|
30
|
+
}
|
|
31
|
+
isTouch() {
|
|
32
|
+
if (typeof window === 'undefined')
|
|
33
|
+
return false;
|
|
34
|
+
return ('ontouchstart' in window ||
|
|
35
|
+
navigator.maxTouchPoints > 0 ||
|
|
36
|
+
// @ts-ignore - Some browsers might not have msMaxTouchPoints
|
|
37
|
+
navigator.msMaxTouchPoints > 0);
|
|
38
|
+
}
|
|
39
|
+
getScreenSize(width) {
|
|
40
|
+
if (width < this.breakpoints.mobile)
|
|
41
|
+
return 'mobile';
|
|
42
|
+
if (width < this.breakpoints.tablet)
|
|
43
|
+
return 'tablet';
|
|
44
|
+
return 'desktop';
|
|
45
|
+
}
|
|
46
|
+
getScreenInfo() {
|
|
47
|
+
const width = this.getWidth();
|
|
48
|
+
return {
|
|
49
|
+
width,
|
|
50
|
+
size: this.getScreenSize(width),
|
|
51
|
+
isTouch: this.isTouch(),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
initializeListeners() {
|
|
55
|
+
if (typeof window === 'undefined')
|
|
56
|
+
return;
|
|
57
|
+
const handleResize = () => {
|
|
58
|
+
if (this.resizeTimeout) {
|
|
59
|
+
window.clearTimeout(this.resizeTimeout);
|
|
60
|
+
}
|
|
61
|
+
this.resizeTimeout = window.setTimeout(() => {
|
|
62
|
+
this.notifyListeners();
|
|
63
|
+
}, 250);
|
|
64
|
+
};
|
|
65
|
+
window.addEventListener('resize', handleResize);
|
|
66
|
+
window.addEventListener('orientationchange', handleResize);
|
|
67
|
+
}
|
|
68
|
+
notifyListeners() {
|
|
69
|
+
const info = this.getScreenInfo();
|
|
70
|
+
this.callbacks.forEach(callback => callback(info));
|
|
71
|
+
}
|
|
72
|
+
subscribe(callback) {
|
|
73
|
+
this.callbacks.add(callback);
|
|
74
|
+
callback(this.getScreenInfo()); // Initial call
|
|
75
|
+
return () => {
|
|
76
|
+
this.callbacks.delete(callback);
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=ScreensizeDetect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScreensizeDetect.js","sourceRoot":"","sources":["../../src/globals/ScreensizeDetect.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,MAAM,mBAAmB,GAAgB;IAC9C,MAAM,EAAE,GAAG;IACX,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,IAAI;CACd,CAAC;AAEF,MAAM,OAAO,WAAW;IACd,MAAM,CAAC,QAAQ,CAAc;IAC7B,WAAW,CAAc;IACzB,SAAS,CAAuC;IAChD,aAAa,CAAU;IAE/B;QACE,IAAI,CAAC,WAAW,GAAG,mBAAmB,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,IAAI,GAAG,EAAE,CAAC;QAC3B,IAAI,CAAC,mBAAmB,EAAE,CAAC;IAC7B,CAAC;IAEM,MAAM,CAAC,WAAW;QACvB,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;YAC1B,WAAW,CAAC,QAAQ,GAAG,IAAI,WAAW,EAAE,CAAC;QAC3C,CAAC;QACD,OAAO,WAAW,CAAC,QAAQ,CAAC;IAC9B,CAAC;IAEM,cAAc,CAAC,WAAiC;QACrD,IAAI,CAAC,WAAW,GAAG,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE,GAAG,WAAW,EAAE,CAAC;QAC3D,IAAI,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC;IAEO,QAAQ;QACd,IAAI,OAAO,MAAM,KAAK,WAAW;YAAE,OAAO,CAAC,CAAC;QAE5C,OAAO,MAAM,CAAC,UAAU,IAAI,QAAQ,CAAC,eAAe,CAAC,WAAW,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,IAAI,CAAC,CAAC;IACrG,CAAC;IAEO,OAAO;QACb,IAAI,OAAO,MAAM,KAAK,WAAW;YAAE,OAAO,KAAK,CAAC;QAEhD,OAAO,CACL,cAAc,IAAI,MAAM;YACxB,SAAS,CAAC,cAAc,GAAG,CAAC;YAC5B,6DAA6D;YAC7D,SAAS,CAAC,gBAAgB,GAAG,CAAC,CAC/B,CAAC;IACJ,CAAC;IAEO,aAAa,CAAC,KAAa;QACjC,IAAI,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM;YAAE,OAAO,QAAQ,CAAC;QACrD,IAAI,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM;YAAE,OAAO,QAAQ,CAAC;QACrD,OAAO,SAAS,CAAC;IACnB,CAAC;IAEM,aAAa;QAClB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC9B,OAAO;YACL,KAAK;YACL,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC;YAC/B,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;SACxB,CAAC;IACJ,CAAC;IAEO,mBAAmB;QACzB,IAAI,OAAO,MAAM,KAAK,WAAW;YAAE,OAAO;QAE1C,MAAM,YAAY,GAAG,GAAG,EAAE;YACxB,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;gBACvB,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YAC1C,CAAC;YAED,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE;gBAC1C,IAAI,CAAC,eAAe,EAAE,CAAC;YACzB,CAAC,EAAE,GAAG,CAAC,CAAC;QACV,CAAC,CAAC;QAEF,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;QAChD,MAAM,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,YAAY,CAAC,CAAC;IAC7D,CAAC;IAEO,eAAe;QACrB,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;QAClC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IACrD,CAAC;IAEM,SAAS,CAAC,QAAyC;QACxD,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC7B,QAAQ,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,eAAe;QAE/C,OAAO,GAAG,EAAE;YACV,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAClC,CAAC,CAAC;IACJ,CAAC;CACF","sourcesContent":["interface Breakpoints {\n mobile: number;\n tablet: number;\n desktop: number;\n}\n\ntype ScreenSize = 'mobile' | 'tablet' | 'desktop';\n\nexport interface ScreenWidthInfo {\n width: number;\n size: ScreenSize;\n isTouch: boolean;\n}\n\nexport const DEFAULT_BREAKPOINTS: Breakpoints = {\n mobile: 768,\n tablet: 1024,\n desktop: 1025,\n};\n\nexport class ScreenWidth {\n private static instance: ScreenWidth;\n private breakpoints: Breakpoints;\n private callbacks: Set<(info: ScreenWidthInfo) => void>;\n private resizeTimeout?: number;\n\n private constructor() {\n this.breakpoints = DEFAULT_BREAKPOINTS;\n this.callbacks = new Set();\n this.initializeListeners();\n }\n\n public static getInstance(): ScreenWidth {\n if (!ScreenWidth.instance) {\n ScreenWidth.instance = new ScreenWidth();\n }\n return ScreenWidth.instance;\n }\n\n public setBreakpoints(breakpoints: Partial<Breakpoints>): void {\n this.breakpoints = { ...this.breakpoints, ...breakpoints };\n this.notifyListeners();\n }\n\n private getWidth(): number {\n if (typeof window === 'undefined') return 0;\n\n return window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth || 0;\n }\n\n private isTouch(): boolean {\n if (typeof window === 'undefined') return false;\n\n return (\n 'ontouchstart' in window ||\n navigator.maxTouchPoints > 0 ||\n // @ts-ignore - Some browsers might not have msMaxTouchPoints\n navigator.msMaxTouchPoints > 0\n );\n }\n\n private getScreenSize(width: number): ScreenSize {\n if (width < this.breakpoints.mobile) return 'mobile';\n if (width < this.breakpoints.tablet) return 'tablet';\n return 'desktop';\n }\n\n public getScreenInfo(): ScreenWidthInfo {\n const width = this.getWidth();\n return {\n width,\n size: this.getScreenSize(width),\n isTouch: this.isTouch(),\n };\n }\n\n private initializeListeners(): void {\n if (typeof window === 'undefined') return;\n\n const handleResize = () => {\n if (this.resizeTimeout) {\n window.clearTimeout(this.resizeTimeout);\n }\n\n this.resizeTimeout = window.setTimeout(() => {\n this.notifyListeners();\n }, 250);\n };\n\n window.addEventListener('resize', handleResize);\n window.addEventListener('orientationchange', handleResize);\n }\n\n private notifyListeners(): void {\n const info = this.getScreenInfo();\n this.callbacks.forEach(callback => callback(info));\n }\n\n public subscribe(callback: (info: ScreenWidthInfo) => void): () => void {\n this.callbacks.add(callback);\n callback(this.getScreenInfo()); // Initial call\n\n return () => {\n this.callbacks.delete(callback);\n };\n }\n}\n"]}
|