@sonic-equipment/ui 1.1.8 → 2.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/dist/algolia/algolia-hits-provider.js +4 -1
- package/dist/algolia/algolia-insights-provider.js +3 -3
- package/dist/algolia/algolia-provider.d.ts +4 -1
- package/dist/algolia/algolia-provider.js +6 -3
- package/dist/algolia/algolia-search-provider.js +1 -1
- package/dist/algolia/algolia-searchclient-reserved-slots.d.ts +25 -0
- package/dist/algolia/algolia-searchclient-reserved-slots.js +67 -0
- package/dist/algolia/use-algolia-hits.d.ts +5 -2
- package/dist/algolia/use-algolia-hits.js +9 -5
- package/dist/algolia/use-algolia-insights.js +2 -2
- package/dist/algolia/use-algolia-search.js +2 -2
- package/dist/badges/tag/tag.d.ts +2 -1
- package/dist/badges/tag/tag.js +3 -2
- package/dist/base.css +28 -1
- package/dist/breadcrumbs/breadcrumb.d.ts +1 -1
- package/dist/breadcrumbs/breadcrumb.js +2 -2
- package/dist/buttons/button/button.d.ts +2 -1
- package/dist/buttons/button/button.js +4 -2
- package/dist/buttons/icon-button/icon-button.d.ts +8 -1
- package/dist/buttons/icon-button/icon-button.js +4 -5
- package/dist/cards/data-card/data-card.js +1 -1
- package/dist/cards/product-card/product-card.js +2 -1
- package/dist/cards/product-card/product-card.module.css.js +1 -1
- package/dist/cards/table-card/table-card.d.ts +6 -1
- package/dist/cards/table-card/table-card.js +3 -4
- package/dist/carousel/card-carousel/card-carousel.d.ts +3 -1
- package/dist/carousel/card-carousel/card-carousel.js +5 -3
- package/dist/carousel/card-carousel/card-carousel.module.css.js +1 -1
- package/dist/carousel/carousel-navigation-button.d.ts +3 -1
- package/dist/carousel/carousel-navigation-button.js +2 -3
- package/dist/carousel/carousel.js +1 -1
- package/dist/carousel/usp-carousel/product-usp-carousel-slide.js +1 -1
- package/dist/carousel/usp-carousel/usp-carousel.d.ts +0 -1
- package/dist/cart-totals/cart-totals-summary.js +1 -1
- package/dist/cart-totals/cart-totals.d.ts +3 -1
- package/dist/cart-totals/cart-totals.js +9 -3
- package/dist/cart-totals/cart-totals.module.css.js +1 -1
- package/dist/client-case-banner/client-case-banner.d.ts +16 -0
- package/dist/client-case-banner/client-case-banner.js +13 -0
- package/dist/client-case-banner/client-case-banner.module.css.js +3 -0
- package/dist/collapsables/accordion/accordion-item.js +1 -1
- package/dist/collapsables/cascading-component/cascading-component-container-provider.js +1 -1
- package/dist/collapsables/cascading-component/use-cascading-component-container.js +2 -2
- package/dist/collapsables/collapsable/collapsable.d.ts +12 -0
- package/dist/collapsables/collapsable/collapsable.js +31 -0
- package/dist/collapsables/collapsable/collapsable.module.css.js +3 -0
- package/dist/collapsables/unmounter/unmounter.js +3 -3
- package/dist/cookies/cookie-provider.js +1 -1
- package/dist/cookies/use-cookie.js +2 -2
- package/dist/country-language-selection-list/country-language-selection-list.js +1 -1
- package/dist/country-language-selection-list/country-language-selection-list.module.css.js +1 -1
- package/dist/country-language-selector/connected-country-language-selector.d.ts +1 -2
- package/dist/country-language-selector/connected-country-language-selector.js +2 -2
- package/dist/country-language-selector/country-language-selector.d.ts +1 -2
- package/dist/country-language-selector/country-language-selector.js +12 -19
- package/dist/country-language-selector/country-language-selector.module.css.js +1 -1
- package/dist/country-language-selector/fixtures/fixtures.d.ts +13 -0
- package/dist/country-language-selector-button/country-language-selector-button.stories.d.ts +13 -0
- package/dist/display/details/details.d.ts +2 -1
- package/dist/display/details/details.js +2 -2
- package/dist/display/product-sku/product-sku.js +3 -1
- package/dist/exports.d.ts +65 -20
- package/dist/filters/pagination/pagination.d.ts +2 -1
- package/dist/filters/pagination/pagination.js +3 -2
- package/dist/fonts.css +58 -56
- package/dist/footer/fixtures/fixtures.d.ts +3 -0
- package/dist/footer/footer.js +3 -2
- package/dist/footer/footer.module.css.js +1 -1
- package/dist/forms/elements/input/input.js +4 -6
- package/dist/forms/elements/range-slider/range-slider.d.ts +18 -0
- package/dist/forms/elements/range-slider/range-slider.js +31 -0
- package/dist/forms/elements/range-slider/range-slider.module.css.js +3 -0
- package/dist/global-search/global-search.d.ts +6 -1
- package/dist/global-search/global-search.js +3 -2
- package/dist/global-search/search-highlight/highlight.d.ts +7 -7
- package/dist/global-search/search-highlight/highlight.js +9 -9
- package/dist/global-search/search-input/connected-search-input.js +4 -1
- package/dist/global-search/search-result-panel/panel-content.d.ts +3 -1
- package/dist/global-search/search-result-panel/panel-content.js +2 -2
- package/dist/global-search/search-result-panel/search-result-panel.d.ts +3 -1
- package/dist/global-search/search-result-panel/search-result-panel.js +2 -2
- package/dist/global-search/search-result-panel/sections/no-search-results.js +1 -3
- package/dist/global-search/search-result-panel/sections/no-search.d.ts +2 -1
- package/dist/global-search/search-result-panel/sections/no-search.js +7 -14
- package/dist/global-search/search-result-panel/sections/search-content.module.css.js +1 -1
- package/dist/global-search/search-result-panel/sections/section-container.js +2 -2
- package/dist/global-search/search-result-panel/sections/with-results.js +6 -6
- package/dist/header/drawers/desktop-navigation-drawer.js +2 -1
- package/dist/header/drawers/mobile-navigation-drawer.js +2 -1
- package/dist/header/drawers/search-drawer.d.ts +3 -1
- package/dist/header/drawers/search-drawer.js +3 -2
- package/dist/header/drawers/search-drawer.module.css.js +3 -0
- package/dist/header/fixtures/fixtures.d.ts +4 -0
- package/dist/header/header-layout/header-layout.d.ts +1 -1
- package/dist/header/header-layout/header-layout.js +2 -3
- package/dist/header/header-layout/header-layout.module.css.js +1 -1
- package/dist/header/header.d.ts +3 -2
- package/dist/header/header.js +3 -2
- package/dist/header/header.module.css.js +1 -1
- package/dist/hubspot-form/hubspot-form.d.ts +41 -0
- package/dist/hubspot-form/hubspot-form.js +125 -0
- package/dist/hubspot-form/hubspot-form.module.css.js +3 -0
- package/dist/icons/index.d.ts +86 -0
- package/dist/icons/index.js +86 -0
- package/dist/icons/other/media-captionsoff-icon.d.ts +1 -0
- package/dist/icons/other/media-captionsoff-icon.js +7 -0
- package/dist/icons/other/media-captionson-icon.d.ts +1 -0
- package/dist/icons/other/media-captionson-icon.js +7 -0
- package/dist/icons/other/media-chapters-icon.d.ts +1 -0
- package/dist/icons/other/media-chapters-icon.js +7 -0
- package/dist/icons/other/media-enterfullscreen-icon.d.ts +1 -0
- package/dist/icons/other/media-enterfullscreen-icon.js +7 -0
- package/dist/icons/other/media-exitfullscreen-icon.d.ts +1 -0
- package/dist/icons/other/media-exitfullscreen-icon.js +7 -0
- package/dist/icons/other/media-pause-icon.d.ts +1 -0
- package/dist/icons/other/media-pause-icon.js +7 -0
- package/dist/icons/other/media-play-icon.d.ts +1 -0
- package/dist/icons/other/media-play-icon.js +7 -0
- package/dist/icons/other/media-seekbackwards-icon.d.ts +1 -0
- package/dist/icons/other/media-seekbackwards-icon.js +7 -0
- package/dist/icons/other/media-seekforwards-icon.d.ts +1 -0
- package/dist/icons/other/media-seekforwards-icon.js +7 -0
- package/dist/icons/other/media-subsoff-icon.d.ts +1 -0
- package/dist/icons/other/media-subsoff-icon.js +7 -0
- package/dist/icons/other/media-subson-icon.d.ts +1 -0
- package/dist/icons/other/media-subson-icon.js +7 -0
- package/dist/icons/other/media-volumefull-icon.d.ts +1 -0
- package/dist/icons/other/media-volumefull-icon.js +7 -0
- package/dist/icons/other/media-volumelow-icon.d.ts +1 -0
- package/dist/icons/other/media-volumelow-icon.js +7 -0
- package/dist/icons/other/media-volumemedium-icon.d.ts +1 -0
- package/dist/icons/other/media-volumemedium-icon.js +7 -0
- package/dist/icons/other/media-volumemuted-icon.d.ts +1 -0
- package/dist/icons/other/media-volumemuted-icon.js +7 -0
- package/dist/icons/solid/solid-enterfullscreen-icon.d.ts +1 -0
- package/dist/icons/solid/solid-exitfullscreen-icon.d.ts +1 -0
- package/dist/icons/solid/solid-facebook-icon.js +7 -0
- package/dist/icons/solid/solid-instagram-icon.js +7 -0
- package/dist/icons/solid/solid-link-icon.js +7 -0
- package/dist/icons/solid/solid-linkedin-icon.js +7 -0
- package/dist/icons/solid/solid-tiktok-icon.js +7 -0
- package/dist/icons/solid/solid-youtube-icon.js +7 -0
- package/dist/icons/stroke/stroke-business-icon.js +7 -0
- package/dist/icons/stroke/stroke-captions-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-captions-icon.js +7 -0
- package/dist/icons/stroke/stroke-efficiency-icon.js +7 -0
- package/dist/icons/stroke/stroke-fallback-icon.js +7 -0
- package/dist/icons/stroke/stroke-happy-icon.js +7 -0
- package/dist/icons/stroke/stroke-innovate-icon.js +7 -0
- package/dist/icons/stroke/stroke-list-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-list-icon.js +7 -0
- package/dist/icons/stroke/stroke-modular-icon.js +7 -0
- package/dist/icons/stroke/stroke-okay-icon.js +7 -0
- package/dist/icons/stroke/stroke-package-icon.js +7 -0
- package/dist/icons/stroke/stroke-proactive-icon.js +7 -0
- package/dist/icons/stroke/stroke-productivity-icon.js +7 -0
- package/dist/icons/stroke/stroke-rating-icon.js +7 -0
- package/dist/icons/stroke/stroke-salecategory-icon.js +7 -0
- package/dist/icons/stroke/stroke-style-icon.js +7 -0
- package/dist/icons/stroke/stroke-support-icon.js +7 -0
- package/dist/icons/stroke/stroke-thumbsup-icon.js +7 -0
- package/dist/icons/stroke/stroke-warranty10y-icon.js +7 -0
- package/dist/icons/stroke/stroke-warranty1y-icon.js +7 -0
- package/dist/icons/stroke/stroke-warranty3y-icon.js +7 -0
- package/dist/icons/stroke/stroke-warranty5y-icon.js +7 -0
- package/dist/icons/stroke/stroke-warrantyconsumable-icon.js +7 -0
- package/dist/icons/stroke/stroke-warrantylifetime-icon.js +7 -0
- package/dist/image-banner/image-banner.d.ts +20 -0
- package/dist/image-banner/image-banner.js +15 -0
- package/dist/image-banner/image-banner.module.css.js +3 -0
- package/dist/index.js +76 -32
- package/dist/intl/intl-provider.js +1 -1
- package/dist/intl/missing-translation-provider.js +1 -1
- package/dist/intl/translation-id.d.ts +1 -1
- package/dist/intl/use-intl.js +2 -2
- package/dist/lists/download-document-list/download-document-list.js +2 -1
- package/dist/lists/menu-list/menu-list-provider.js +1 -1
- package/dist/lists/menu-list/use-menu-list.js +2 -2
- package/dist/lists/product-overview-grid/product-overview-grid.d.ts +17 -2
- package/dist/lists/product-overview-grid/product-overview-grid.js +20 -8
- package/dist/lists/product-overview-grid/product-overview-grid.module.css.js +1 -1
- package/dist/loading/dynamic-loading-overlay.js +1 -23
- package/dist/loading/dynamic-loading-overlay.module.css.js +1 -1
- package/dist/media/image-cdn/image-cdn-profile.d.ts +45 -0
- package/dist/media/image-cdn/image-cdn-profile.js +63 -0
- package/dist/media/image-cdn/image-cdn-profile.test.d.ts +1 -0
- package/dist/media/image-cdn/image-cdn-provider.d.ts +10 -0
- package/dist/media/image-cdn/image-cdn-provider.js +15 -0
- package/dist/media/image-cdn/storyblok-profile.d.ts +3 -0
- package/dist/media/image-cdn/storyblok-profile.js +37 -0
- package/dist/media/image-cdn/storyblok-profile.test.d.ts +1 -0
- package/dist/media/image-lightbox/image-lightbox.module.css.js +1 -1
- package/dist/media/media-controls/media-chapters-control/media-chapters-control.d.ts +8 -0
- package/dist/media/media-controls/media-chapters-control/media-chapters-control.js +63 -0
- package/dist/media/media-controls/media-control/media-control.d.ts +19 -0
- package/dist/media/media-controls/media-control/media-control.js +15 -0
- package/dist/media/media-controls/media-controls.d.ts +12 -0
- package/dist/media/media-controls/media-controls.js +17 -0
- package/dist/media/media-controls/media-controls.module.css.js +3 -0
- package/dist/media/media-controls/media-popover/media-popover.d.ts +12 -0
- package/dist/media/media-controls/media-popover/media-popover.js +67 -0
- package/dist/media/media-controls/media-progress-circle/media-progress-circle.d.ts +20 -0
- package/dist/media/media-controls/media-progress-circle/media-progress-circle.js +31 -0
- package/dist/media/media-controls/media-seek-control/media-seek-control.d.ts +6 -0
- package/dist/media/media-controls/media-seek-control/media-seek-control.js +30 -0
- package/dist/media/media-controls/media-subs-control/media-subs-control.d.ts +8 -0
- package/dist/media/media-controls/media-subs-control/media-subs-control.js +65 -0
- package/dist/media/media-controls/media-volume-control/media-volume-control.d.ts +7 -0
- package/dist/media/media-controls/media-volume-control/media-volume-control.js +103 -0
- package/dist/media/media-utils.d.ts +19 -0
- package/dist/media/media-utils.js +28 -0
- package/dist/media/responsive-image/responsive-image.d.ts +37 -0
- package/dist/media/responsive-image/responsive-image.js +119 -0
- package/dist/media/responsive-image/responsive-image.module.css.js +3 -0
- package/dist/media/responsive-video/responsive-video.d.ts +36 -0
- package/dist/media/responsive-video/responsive-video.js +365 -0
- package/dist/media/responsive-video/responsive-video.module.css.js +3 -0
- package/dist/modals/dialog/dialog.js +1 -1
- package/dist/navigation/panel-navigation/panel-navigation.js +1 -1
- package/dist/notifications/announcements/announcement-list.d.ts +10 -1
- package/dist/notifications/announcements/announcement-list.js +1 -13
- package/dist/notifications/announcements/announcement-list.module.css.js +1 -1
- package/dist/notifications/announcements/announcement.d.ts +13 -2
- package/dist/notifications/announcements/announcement.js +14 -6
- package/dist/notifications/announcements/fixtures/fixtures.d.ts +22 -0
- package/dist/page-layout/fixtures/fixtures.d.ts +15 -0
- package/dist/page-layout/page-layout.d.ts +2 -0
- package/dist/page-layout/page-layout.js +33 -0
- package/dist/page-layout/page-layout.module.css.js +3 -0
- package/dist/page-layout/types.d.ts +52 -0
- package/dist/pages/account/change-password-page/change-password-page.js +6 -2
- package/dist/pages/account/components/change-password-form/change-password-form.js +1 -5
- package/dist/pages/account/components/create-account-form/create-account-form.js +1 -4
- package/dist/pages/account/components/sign-in-form/sign-in-form.js +2 -6
- package/dist/pages/account/create-account-page/create-account-page.d.ts +1 -1
- package/dist/pages/account/create-account-page/create-account-page.js +8 -4
- package/dist/pages/account/sign-in-page/sign-in-page.d.ts +1 -1
- package/dist/pages/account/sign-in-page/sign-in-page.js +6 -4
- package/dist/pages/checkout/cart-page/cart-page.d.ts +1 -1
- package/dist/pages/checkout/cart-page/cart-page.js +35 -68
- package/dist/pages/checkout/components/billing-and-invoice-information.js +1 -1
- package/dist/pages/checkout/components/billing-and-invoice-information.module.css.js +1 -1
- package/dist/pages/checkout/{layouts/checkout-page-layout/components → components}/checkout-page-section-header.d.ts +1 -1
- package/dist/pages/checkout/{layouts/checkout-page-layout/components → components}/checkout-page-section-header.js +2 -2
- package/dist/pages/checkout/components/checkout-page-section.js +12 -0
- package/dist/pages/checkout/components/checkout-page-section.module.css.js +3 -0
- package/dist/pages/checkout/order-confirmation-page/order-confirmation-page-content.js +50 -63
- package/dist/pages/checkout/payment-page/payment-page-content.js +25 -25
- package/dist/pages/checkout/shipping-page/components/edit-checkout-bill-to-address-form.js +2 -2
- package/dist/pages/checkout/shipping-page/components/readonly-address.js +3 -3
- package/dist/pages/checkout/shipping-page/components/readonly-address.module.css.js +1 -1
- package/dist/pages/checkout/shipping-page/shipping-page-content.js +12 -12
- package/dist/pages/components/page/page.js +1 -1
- package/dist/pages/countries-page/countries-page.js +7 -4
- package/dist/pages/error-page/error-page.js +2 -7
- package/dist/pages/my-sonic/navigation/connected-my-sonic-navigation.js +2 -1
- package/dist/pages/my-sonic/pages/create-ship-to-address-details-page/create-ship-to-address-details-page.d.ts +0 -3
- package/dist/pages/my-sonic/pages/create-ship-to-address-details-page/create-ship-to-address-details-page.js +16 -17
- package/dist/pages/my-sonic/pages/edit-bill-to-address-details-page/edit-bill-to-address-details-page.d.ts +0 -3
- package/dist/pages/my-sonic/pages/edit-bill-to-address-details-page/edit-bill-to-address-details-page.js +16 -17
- package/dist/pages/my-sonic/pages/edit-ship-to-address-details-page/edit-ship-to-address-details-page.d.ts +0 -4
- package/dist/pages/my-sonic/pages/edit-ship-to-address-details-page/edit-ship-to-address-details-page.js +16 -17
- package/dist/pages/my-sonic/pages/favorites/favorites-page.d.ts +0 -1
- package/dist/pages/my-sonic/pages/favorites/favorites-page.js +31 -33
- package/dist/pages/my-sonic/pages/favorites/favorites-page.module.css.js +3 -0
- package/dist/pages/my-sonic/pages/my-account/my-account-page.d.ts +0 -1
- package/dist/pages/my-sonic/pages/my-account/my-account-page.js +12 -12
- package/dist/pages/my-sonic/pages/order-details/order-details-content.js +3 -2
- package/dist/pages/my-sonic/pages/order-details/order-details-content.module.css.js +1 -1
- package/dist/pages/my-sonic/pages/order-details/order-details-page.d.ts +0 -3
- package/dist/pages/my-sonic/pages/order-details/order-details-page.js +17 -28
- package/dist/pages/my-sonic/pages/order-history/order-history-page.d.ts +0 -1
- package/dist/pages/my-sonic/pages/order-history/order-history-page.js +112 -116
- package/dist/pages/my-sonic/pages/upload-order-page/upload-order-page.d.ts +0 -1
- package/dist/pages/my-sonic/pages/upload-order-page/upload-order-page.js +12 -12
- package/dist/pages/product/components/product-overview.d.ts +11 -3
- package/dist/pages/product/components/product-overview.js +11 -7
- package/dist/pages/product/product-details-page/components/product-details-panel/product-details-panel.js +5 -7
- package/dist/pages/product/product-details-page/components/product-details-panel/product-details-panel.module.css.js +1 -1
- package/dist/pages/product/product-details-page/components/product-details-recently-viewed-section/product-details-recently-viewed-section.d.ts +3 -1
- package/dist/pages/product/product-details-page/components/product-details-recently-viewed-section/product-details-recently-viewed-section.js +9 -10
- package/dist/pages/product/product-details-page/product-details.js +18 -18
- package/dist/pages/product/product-details-page/product-details.module.css.js +3 -0
- package/dist/pages/product/product-listing-page/no-results/no-results.d.ts +3 -5
- package/dist/pages/product/product-listing-page/no-results/no-results.js +2 -4
- package/dist/pages/product/product-listing-page/no-results/no-results.module.css.js +1 -1
- package/dist/pages/product/product-listing-page/product-listing-page-category-carousel/product-listing-page-category-carousel.js +6 -4
- package/dist/pages/product/product-listing-page/product-listing-page-category-carousel/product-listing-page-category-carousel.module.css.js +3 -0
- package/dist/pages/product/product-listing-page/product-listing-page-provider/product-listing-page-provider.js +3 -3
- package/dist/pages/product/product-listing-page/product-listing-page.js +1 -1
- package/dist/pages/product/product-listing-page/product-listing-page.module.css.js +1 -1
- package/dist/pages/product/product-listing-page/product-listing-product-overview/product-listing-product-overview.d.ts +2 -1
- package/dist/pages/product/product-listing-page/product-listing-product-overview/product-listing-product-overview.js +2 -2
- package/dist/pages/product/product-listing-page/product-listing.d.ts +8 -1
- package/dist/pages/product/product-listing-page/product-listing.js +23 -23
- package/dist/pages/product/search-result-page/search-result-product-overview/search-result-product-overview.d.ts +2 -1
- package/dist/pages/product/search-result-page/search-result-product-overview/search-result-product-overview.js +2 -2
- package/dist/pages/product/search-result-page/search-results-page.js +20 -19
- package/dist/promos/promo-banners/promo-banners.js +2 -1
- package/dist/responsive-banner/responsive-banner.d.ts +30 -0
- package/dist/responsive-banner/responsive-banner.js +23 -0
- package/dist/responsive-banner/responsive-banner.module.css.js +3 -0
- package/dist/responsive-carousel/responsive-carousel.d.ts +18 -0
- package/dist/responsive-carousel/responsive-carousel.js +209 -0
- package/dist/responsive-carousel/responsive-carousel.module.css.js +3 -0
- package/dist/rich-text/rich-text.d.ts +7 -0
- package/dist/rich-text/rich-text.js +10 -0
- package/dist/rich-text/rich-text.module.css.js +3 -0
- package/dist/rte-asset/rte-asset.d.ts +8 -0
- package/dist/rte-asset/rte-asset.js +10 -0
- package/dist/rte-asset/rte-asset.module.css.js +3 -0
- package/dist/rte-blockquote/rte-blockquote.d.ts +8 -0
- package/dist/rte-blockquote/rte-blockquote.js +10 -0
- package/dist/rte-blockquote/rte-blockquote.module.css.js +3 -0
- package/dist/rte-details/rte-details.d.ts +7 -0
- package/dist/rte-details/rte-details.js +10 -0
- package/dist/rte-details/rte-details.module.css.js +3 -0
- package/dist/rte-ordered-list/rte-ordered-list.d.ts +14 -0
- package/dist/rte-ordered-list/rte-ordered-list.js +34 -0
- package/dist/rte-ordered-list/rte-ordered-list.module.css.js +3 -0
- package/dist/sections/about-section/about-section.d.ts +13 -0
- package/dist/sections/about-section/about-section.js +13 -0
- package/dist/sections/about-section/about-section.module.css.js +3 -0
- package/dist/sections/about-section/media-contact.d.ts +7 -0
- package/dist/sections/about-section/media-contact.js +12 -0
- package/dist/sections/banner-section/banner-section.d.ts +13 -0
- package/dist/sections/banner-section/banner-section.js +12 -0
- package/dist/sections/banner-section/banner-section.module.css.js +3 -0
- package/dist/sections/banner-section/fixtures/fixtures.d.ts +5 -0
- package/dist/sections/case-studies-listing-section/case-studies-listing-section.constants.d.ts +10 -0
- package/dist/sections/case-studies-listing-section/case-studies-listing-section.constants.js +12 -0
- package/dist/sections/case-studies-listing-section/case-studies-listing-section.d.ts +26 -0
- package/dist/sections/case-studies-listing-section/case-studies-listing-section.js +30 -0
- package/dist/sections/case-studies-listing-section/case-studies-listing-section.module.css.js +3 -0
- package/dist/sections/client-cases-carousel-section/client-cases-carousel-section.d.ts +13 -0
- package/dist/sections/client-cases-carousel-section/client-cases-carousel-section.js +13 -0
- package/dist/sections/client-cases-carousel-section/client-cases-carousel-section.module.css.js +3 -0
- package/dist/sections/downloadable-documents-section/downloadable-documents-section.d.ts +21 -0
- package/dist/sections/downloadable-documents-section/downloadable-documents-section.js +16 -0
- package/dist/sections/downloadable-documents-section/downloadable-documents-section.module.css.js +3 -0
- package/dist/sections/event-info-section/event-info-section.d.ts +9 -0
- package/dist/sections/event-info-section/event-info-section.js +23 -0
- package/dist/sections/event-info-section/event-info-section.module.css.js +3 -0
- package/dist/sections/faq-section/faq-section.d.ts +24 -0
- package/dist/sections/faq-section/faq-section.js +20 -0
- package/dist/sections/faq-section/faq-section.module.css.js +3 -0
- package/dist/sections/hero-section/hero-section.d.ts +22 -0
- package/dist/sections/hero-section/hero-section.js +16 -0
- package/dist/sections/hero-section/hero-section.module.css.js +3 -0
- package/dist/sections/hubspot-form-section/hubspot-form-section.d.ts +18 -0
- package/dist/sections/hubspot-form-section/hubspot-form-section.js +18 -0
- package/dist/sections/hubspot-form-section/hubspot-form-section.module.css.js +3 -0
- package/dist/sections/image-banner-carousel-section/image-banner-carousel-section.d.ts +12 -0
- package/dist/sections/image-banner-carousel-section/image-banner-carousel-section.js +13 -0
- package/dist/sections/image-banner-carousel-section/image-banner-carousel-section.module.css.js +3 -0
- package/dist/sections/image-banner-section/image-banner-section.d.ts +12 -0
- package/dist/sections/image-banner-section/image-banner-section.js +12 -0
- package/dist/sections/image-banner-section/image-banner-section.module.css.js +3 -0
- package/dist/sections/image-hubspot-section/image-hubspot-form-section.d.ts +21 -0
- package/dist/sections/image-hubspot-section/image-hubspot-form-section.js +19 -0
- package/dist/sections/image-hubspot-section/image-hubspot-form-section.module.css.js +3 -0
- package/dist/sections/image-section/image-section.d.ts +25 -0
- package/dist/sections/image-section/image-section.js +14 -0
- package/dist/sections/image-section/image-section.module.css.js +3 -0
- package/dist/sections/image-text-section/image-text-block.d.ts +13 -0
- package/dist/sections/image-text-section/image-text-block.js +13 -0
- package/dist/sections/image-text-section/image-text-section.d.ts +15 -0
- package/dist/sections/image-text-section/image-text-section.js +12 -0
- package/dist/sections/image-text-section/image-text-section.module.css.js +3 -0
- package/dist/sections/legal-section/legal-section.d.ts +10 -0
- package/dist/sections/legal-section/legal-section.js +13 -0
- package/dist/sections/legal-section/legal-section.module.css.js +3 -0
- package/dist/sections/multi-column-section/multi-column-section.d.ts +24 -0
- package/dist/sections/multi-column-section/multi-column-section.js +24 -0
- package/dist/sections/multi-column-section/multi-column-section.module.css.js +3 -0
- package/dist/sections/news-list-section/news-listing-section.d.ts +17 -0
- package/dist/sections/news-list-section/news-listing-section.js +27 -0
- package/dist/sections/news-list-section/news-listing-section.module.css.js +3 -0
- package/dist/sections/numbers-section/numbers-section.d.ts +18 -0
- package/dist/sections/numbers-section/numbers-section.js +15 -0
- package/dist/sections/numbers-section/numbers-section.module.css.js +3 -0
- package/dist/sections/page-meta-section/page-meta-section.d.ts +8 -0
- package/dist/sections/page-meta-section/page-meta-section.js +23 -0
- package/dist/sections/page-meta-section/page-meta-section.module.css.js +3 -0
- package/dist/sections/page-section/page-section.d.ts +297 -0
- package/dist/sections/page-section/page-section.js +23 -0
- package/dist/sections/page-section/page-section.module.css.js +3 -0
- package/dist/sections/percentages-section/percentages-section.d.ts +21 -0
- package/dist/sections/percentages-section/percentages-section.js +18 -0
- package/dist/sections/percentages-section/percentages-section.module.css.js +3 -0
- package/dist/sections/product-comparison-section/product-comparison-section.d.ts +17 -0
- package/dist/sections/product-comparison-section/product-comparison-section.js +19 -0
- package/dist/sections/product-comparison-section/product-comparison-section.module.css.js +3 -0
- package/dist/sections/rich-text-section/rich-text-section.d.ts +11 -0
- package/dist/sections/rich-text-section/rich-text-section.js +12 -0
- package/dist/sections/rich-text-section/rich-text-section.module.css.js +3 -0
- package/dist/sections/social-media-section/social-media-section.d.ts +20 -0
- package/dist/sections/social-media-section/social-media-section.js +27 -0
- package/dist/sections/social-media-section/social-media-section.module.css.js +3 -0
- package/dist/sections/subheadline-section/subheadline-section.d.ts +7 -0
- package/dist/sections/subheadline-section/subheadline-section.js +12 -0
- package/dist/sections/subheadline-section/subheadline-section.module.css.js +3 -0
- package/dist/sections/usp-section/usp-section.d.ts +19 -0
- package/dist/sections/usp-section/usp-section.js +17 -0
- package/dist/sections/usp-section/usp-section.module.css.js +3 -0
- package/dist/sections/video-section/video-section.d.ts +30 -0
- package/dist/sections/video-section/video-section.js +13 -0
- package/dist/sections/video-section/video-section.module.css.js +3 -0
- package/dist/shared/error/default-error-view.d.ts +1 -1
- package/dist/shared/error/default-error-view.js +4 -2
- package/dist/shared/error/default-error-view.module.css.js +1 -1
- package/dist/shared/error/global-unhandled-error-handler.js +3 -3
- package/dist/shared/feature-flags/use-feature-flags.d.ts +1 -0
- package/dist/shared/feature-flags/use-feature-flags.js +3 -2
- package/dist/shared/hooks/use-drag-scroll.d.ts +20 -0
- package/dist/shared/hooks/use-drag-scroll.js +107 -0
- package/dist/shared/local-storage/local-storage-provider.js +1 -1
- package/dist/shared/local-storage/use-local-storage.js +2 -2
- package/dist/shared/local-storage/use-session-storage.js +2 -2
- package/dist/shared/model/announcement.d.ts +1 -0
- package/dist/shared/model/image.d.ts +5 -0
- package/dist/shared/providers/global-state-provider.js +3 -3
- package/dist/shared/routing/route-provider.js +1 -1
- package/dist/shared/routing/use-router.js +2 -2
- package/dist/shared/utils/array.d.ts +1 -0
- package/dist/shared/utils/array.js +9 -1
- package/dist/shared/utils/array.test.d.ts +1 -0
- package/dist/sidebar/sidebar.js +2 -2
- package/dist/site-layout/site-layout.d.ts +15 -0
- package/dist/site-layout/site-layout.js +39 -0
- package/dist/site-layout/site-layout.module.css.js +3 -0
- package/dist/styles.css +10825 -3363
- package/dist/table/elements/table-provider.js +1 -1
- package/dist/table/elements/table-row-provider.js +1 -1
- package/dist/table/elements/table.js +2 -2
- package/dist/table/elements/use-table-row.js +2 -2
- package/dist/table/elements/use-table.js +2 -2
- package/dist/toast/toast.d.ts +6 -1
- package/dist/toast/toast.js +2 -3
- package/dist/typography/heading/heading.d.ts +18 -10
- package/dist/typography/heading/heading.js +28 -14
- package/dist/typography/heading/heading.module.css.js +1 -1
- package/package.json +6 -5
- package/dist/footer/connected-footer.d.ts +0 -3
- package/dist/footer/connected-footer.js +0 -21
- package/dist/header/connected-header.d.ts +0 -3
- package/dist/header/connected-header.js +0 -21
- package/dist/notifications/announcements/connected-announcement-list.d.ts +0 -3
- package/dist/notifications/announcements/connected-announcement-list.js +0 -22
- package/dist/notifications/announcements/use-filter-announcements.d.ts +0 -2
- package/dist/notifications/announcements/use-filter-announcements.js +0 -35
- package/dist/pages/account/layouts/sign-in-page-layout/sign-in-page-background-image.d.ts +0 -6
- package/dist/pages/account/layouts/sign-in-page-layout/sign-in-page-background-image.js +0 -9
- package/dist/pages/account/layouts/sign-in-page-layout/sign-in-page-layout.d.ts +0 -9
- package/dist/pages/account/layouts/sign-in-page-layout/sign-in-page-layout.js +0 -12
- package/dist/pages/account/layouts/sign-in-page-layout/sign-in-page-layout.module.css.js +0 -3
- package/dist/pages/checkout/cart-page/components/empty-cart-page.d.ts +0 -1
- package/dist/pages/checkout/cart-page/components/empty-cart-page.js +0 -12
- package/dist/pages/checkout/layouts/checkout-page-layout/checkout-page-layout.d.ts +0 -11
- package/dist/pages/checkout/layouts/checkout-page-layout/checkout-page-layout.js +0 -34
- package/dist/pages/checkout/layouts/checkout-page-layout/checkout-page-layout.module.css.js +0 -3
- package/dist/pages/checkout/layouts/checkout-page-layout/components/checkout-page-section.js +0 -11
- package/dist/pages/checkout/layouts/checkout-page-layout/components/checkout-page-section.module.css.js +0 -3
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-aside.d.ts +0 -4
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-aside.js +0 -9
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-breadcrumb.d.ts +0 -4
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-breadcrumb.js +0 -9
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-main.d.ts +0 -4
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-main.js +0 -9
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-page.d.ts +0 -5
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-page.js +0 -10
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-pre-aside.d.ts +0 -4
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-pre-aside.js +0 -9
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-title.d.ts +0 -4
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-title.js +0 -10
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout.d.ts +0 -5
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout.js +0 -10
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout.module.css.js +0 -3
- package/dist/pages/product/layouts/product-details-page-layout/product-details-page-layout.d.ts +0 -9
- package/dist/pages/product/layouts/product-details-page-layout/product-details-page-layout.js +0 -10
- package/dist/pages/product/layouts/product-details-page-layout/product-details-page-layout.module.css.js +0 -3
- package/dist/pages/product/product-details-page/components/product-details-recently-viewed-section/product-details-recently-viewed-section.module.css.js +0 -3
- package/dist/pages/product/search-result-page/search-results-page.module.css.js +0 -3
- /package/dist/pages/checkout/{layouts/checkout-page-layout/components → components}/checkout-page-section-content.d.ts +0 -0
- /package/dist/pages/checkout/{layouts/checkout-page-layout/components → components}/checkout-page-section-content.js +0 -0
- /package/dist/pages/checkout/{layouts/checkout-page-layout/components → components}/checkout-page-section-link.d.ts +0 -0
- /package/dist/pages/checkout/{layouts/checkout-page-layout/components → components}/checkout-page-section-link.js +0 -0
- /package/dist/pages/checkout/{layouts/checkout-page-layout/components → components}/checkout-page-section.d.ts +0 -0
|
@@ -4,5 +4,7 @@ interface CarouselNavigationButtonProps {
|
|
|
4
4
|
direction: SwipeDirection;
|
|
5
5
|
onClick?: (direction: SwipeDirection) => void;
|
|
6
6
|
}
|
|
7
|
-
export declare const CarouselNavigationButton:
|
|
7
|
+
export declare const CarouselNavigationButton: ({ className, direction, onClick, ref, }: CarouselNavigationButtonProps & {
|
|
8
|
+
ref?: React.RefObject<HTMLButtonElement | null>;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
10
|
export {};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { forwardRef } from 'react';
|
|
4
3
|
import clsx from 'clsx';
|
|
5
4
|
import { Icon } from '../icon/icon.js';
|
|
6
5
|
import styles from './carousel-navigation-button.module.css.js';
|
|
7
6
|
|
|
8
|
-
const CarouselNavigationButton =
|
|
7
|
+
const CarouselNavigationButton = function NavigationButton({ className, direction, onClick, ref, }) {
|
|
9
8
|
return (jsx("button", { ref: ref, className: clsx(styles['carousel-navigation-button'], className), onClick: () => onClick?.(direction), type: "button", children: direction === 'previous' ? (jsx(Icon, { className: styles['icon'], name: "ArrowLeftThick", size: "xxs" })) : (jsx(Icon, { className: styles['icon'], name: "ArrowRightThick", size: "xxs" })) }));
|
|
10
|
-
}
|
|
9
|
+
};
|
|
11
10
|
|
|
12
11
|
export { CarouselNavigationButton };
|
|
@@ -47,7 +47,7 @@ function Carousel({ breakpoints: _breakpoints, className, hasNavigation = true,
|
|
|
47
47
|
return null;
|
|
48
48
|
return (jsxs("div", { className: clsx(styles.carousel, className), style: spaceBetween === undefined
|
|
49
49
|
? undefined
|
|
50
|
-
: { '--
|
|
50
|
+
: { '--slide-gap': `${spaceBetween}px` }, children: [jsx(Swiper, { breakpoints: _breakpoints, className: clsx(styles.swiper, {
|
|
51
51
|
[styles['is-dragging']]: isDragging,
|
|
52
52
|
[styles['has-overflow']]: hasOverflow,
|
|
53
53
|
[styles['is-ready']]: isReady,
|
|
@@ -5,7 +5,7 @@ import { Heading } from '../../typography/heading/heading.js';
|
|
|
5
5
|
import styles from './usp-carousel.module.css.js';
|
|
6
6
|
|
|
7
7
|
function ProductUsp({ usp }) {
|
|
8
|
-
return (jsxs("div", { className: styles['product-usp'], children: [jsx("div", { className: styles.left, children: jsx(Image, { className: styles.image, fit: "cover", image: usp.image, title: usp.image.altText }) }), jsx("div", { className: styles.right, children: jsxs("div", { "data-content": true, className: styles.content, children: [jsx(Image, { className: styles.icon, image: usp.icon, title: usp.icon.altText }), jsx(Heading, { italic: true, uppercase: true, className: styles.title, size: "xs", children: usp.heading }), jsx("div", { className: styles.text,
|
|
8
|
+
return (jsxs("div", { className: styles['product-usp'], children: [jsx("div", { className: styles.left, children: jsx(Image, { className: styles.image, fit: "cover", image: usp.image, title: usp.image.altText }) }), jsx("div", { className: styles.right, children: jsxs("div", { "data-content": true, className: styles.content, children: [jsx(Image, { className: styles.icon, image: usp.icon, title: usp.icon.altText }), jsx(Heading, { italic: true, uppercase: true, className: styles.title, responsive: false, size: "xs", children: usp.heading }), jsx("div", { className: styles.text,
|
|
9
9
|
// eslint-disable-next-line @eslint-react/dom/no-dangerously-set-innerhtml
|
|
10
10
|
dangerouslySetInnerHTML: { __html: usp.text } })] }) })] }));
|
|
11
11
|
}
|
|
@@ -7,7 +7,7 @@ import { Heading } from '../typography/heading/heading.js';
|
|
|
7
7
|
import styles from './cart-totals-summary.module.css.js';
|
|
8
8
|
|
|
9
9
|
function CartTotalsSummary({ className, currencyCode, totalAmount, }) {
|
|
10
|
-
return (jsx("div", { className: clsx(styles['cart-totals-summary'], className), children: jsxs(Heading, { bold: true, size: "xxxs", children: [jsx(FormattedMessage, { id: "Total amount is" }), jsx("br", {}), jsx(Price, { currencyCode: currencyCode, price: totalAmount })] }) }));
|
|
10
|
+
return (jsx("div", { className: clsx(styles['cart-totals-summary'], className), children: jsxs(Heading, { bold: true, responsive: false, size: "xxxs", children: [jsx(FormattedMessage, { id: "Total amount is" }), jsx("br", {}), jsx(Price, { currencyCode: currencyCode, price: totalAmount })] }) }));
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export { CartTotalsSummary };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { CurrencyCode } from '../intl/types';
|
|
2
2
|
export interface CartTotalsProps {
|
|
3
|
+
actions?: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
3
5
|
currencyCode: CurrencyCode;
|
|
4
6
|
deliveryDate?: string;
|
|
5
7
|
fulfillmentMethod?: string;
|
|
@@ -12,4 +14,4 @@ export interface CartTotalsProps {
|
|
|
12
14
|
vatPercentage: number | undefined;
|
|
13
15
|
}
|
|
14
16
|
export declare const formatDisplayPriceToSymbolSpaceValue: (displayPrice: string) => string;
|
|
15
|
-
export declare function CartTotals({ currencyCode, deliveryDate, fulfillmentMethod, isPayByInvoice, orderNumber, shippingCost, subtotal, tax, total, vatPercentage, }: CartTotalsProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function CartTotals({ actions, className, currencyCode, deliveryDate, fulfillmentMethod, isPayByInvoice, orderNumber, shippingCost, subtotal, tax, total, vatPercentage, }: CartTotalsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import clsx from 'clsx';
|
|
3
4
|
import { Price } from '../display/price/price.js';
|
|
4
5
|
import { FormattedMessage } from '../intl/formatted-message.js';
|
|
5
6
|
import { useFormattedMessage } from '../intl/use-formatted-message.js';
|
|
7
|
+
import { useResizeObserver } from '../shared/hooks/use-resize-observer.js';
|
|
6
8
|
import { Heading } from '../typography/heading/heading.js';
|
|
7
9
|
import styles from './cart-totals.module.css.js';
|
|
8
10
|
|
|
9
11
|
const formatDisplayPriceToSymbolSpaceValue = (displayPrice) => displayPrice.replace(/^(\D)([\d,.]*$)/, (_, symbol, value) => `${symbol} ${value}`);
|
|
10
|
-
function CartTotals({ currencyCode, deliveryDate, fulfillmentMethod, isPayByInvoice, orderNumber, shippingCost, subtotal, tax, total, vatPercentage, }) {
|
|
12
|
+
function CartTotals({ actions, className, currencyCode, deliveryDate, fulfillmentMethod, isPayByInvoice, orderNumber, shippingCost, subtotal, tax, total, vatPercentage, }) {
|
|
11
13
|
const t = useFormattedMessage();
|
|
12
|
-
|
|
14
|
+
const { ref: cartTotalsRef } = useResizeObserver((target, size) => {
|
|
15
|
+
const height = size.height;
|
|
16
|
+
target.style.setProperty('--cart-totals-height', `${height}px`);
|
|
17
|
+
});
|
|
18
|
+
return (jsx("section", { ref: cartTotalsRef, className: clsx(styles['cart-totals'], className), children: jsxs("div", { className: styles['container'], children: [jsxs("div", { className: styles.sections, children: [orderNumber && (jsxs("section", { className: styles.section, children: [jsx(Heading, { className: styles['section-header'], responsive: false, size: "xxxs", tag: "h3", children: jsx(FormattedMessage, { id: "Order number" }) }), jsx("p", { "data-test-selector": "orderConfirmation_orderNumber", children: orderNumber })] })), deliveryDate !== undefined && (jsxs("section", { className: styles.section, children: [jsx(Heading, { className: styles['section-header'], responsive: false, size: "xxxs", tag: "h3", children: jsx(FormattedMessage, { id: "Delivery date" }) }), jsx("p", { "data-test-selector": "deliveryDate", children: deliveryDate || t('As soon as possible') })] })), fulfillmentMethod && (jsxs("section", { className: styles.section, children: [jsx(Heading, { className: styles['section-header'], responsive: false, size: "xxxs", tag: "h3", children: jsx(FormattedMessage, { id: "Fulfillment method" }) }), jsx("p", { "data-test-selector": "fulfillmentMethod", children: jsx(FormattedMessage, { noTranslationId: true, id: `fulfillmentmethod.${fulfillmentMethod}` }) })] })), isPayByInvoice && (jsxs("section", { className: styles.section, children: [jsx(Heading, { className: styles['section-header'], responsive: false, size: "xxxs", tag: "h3", children: jsx(FormattedMessage, { id: "Payment method" }) }), jsx("p", { "data-test-selector": "paymentMethod", children: jsx(FormattedMessage, { id: "Pay by invoice" }) })] })), jsxs("section", { className: styles.section, children: [jsx(Heading, { className: styles['section-header'], responsive: false, size: "xxxs", tag: "h3", children: jsx(FormattedMessage, { id: "Cost overview" }) }), jsxs("table", { className: styles['cost-overview'], children: [jsxs("tbody", { children: [jsxs("tr", { children: [jsxs("th", { scope: "row", children: [jsx(FormattedMessage, { id: "Subtotal" }), " (", jsx(FormattedMessage, { id: "Excl. VAT" }), ")"] }), jsx("td", { children: jsx(Price, { currencyCode: currencyCode, "data-test-selector": "cartTotal_subTotal", price: subtotal }) })] }), jsxs("tr", { children: [jsx("th", { scope: "row", children: jsx(FormattedMessage, { id: "Shipping and handling" }) }), jsx("td", { children: jsx(Price, { currencyCode: currencyCode, "data-test-selector": "shippingCost", price: shippingCost }) })] }), jsxs("tr", { children: [jsxs("th", { scope: "row", children: [jsx(FormattedMessage, { id: "VAT" }), ' ', vatPercentage ? `${vatPercentage}%` : ''] }), jsx("td", { children: jsx(Price, { currencyCode: currencyCode, "data-test-selector": "vatAmount", price: tax }) })] })] }), jsx("tfoot", { className: styles['total'], children: jsxs("tr", { children: [jsx("th", { scope: "row", children: jsx(FormattedMessage, { id: "Total" }) }), jsx("td", { children: jsx(Price, { currencyCode: currencyCode, "data-test-selector": "cartTotal_orderGrandTotalDisplay", price: total }) })] }) })] })] })] }), jsxs("section", { className: styles.summary, children: [jsx(Heading, { bold: true, className: styles['section-header'], responsive: false, size: "xxxs", tag: "h3", children: jsx(FormattedMessage, { id: "Total amount is" }) }), jsx(Price, { currencyCode: currencyCode, "data-test-selector": "cartTotal_orderGrandTotalDisplay", price: total })] }), actions && jsx("footer", { className: styles.actions, children: actions })] }) }));
|
|
13
19
|
}
|
|
14
20
|
|
|
15
21
|
export { CartTotals, formatDisplayPriceToSymbolSpaceValue };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var styles = {"cart-totals":"cart-totals-module-Bk9zi","
|
|
1
|
+
var styles = {"cart-totals":"cart-totals-module-Bk9zi","container":"cart-totals-module-sJKb0","sections":"cart-totals-module-pnjsZ","section-header":"cart-totals-module-AeSnX","summary":"cart-totals-module-C-o3I","actions":"cart-totals-module-6jSHt","cost-overview":"cart-totals-module-QIm5w","total":"cart-totals-module-ktmr5"};
|
|
2
2
|
|
|
3
3
|
export { styles as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FocusPoint } from '../shared/model/image';
|
|
2
|
+
export interface ClientCaseBannerProps {
|
|
3
|
+
bgGradient?: boolean;
|
|
4
|
+
className?: string;
|
|
5
|
+
'data-country-gate'?: string;
|
|
6
|
+
'data-test-selector'?: string;
|
|
7
|
+
hAlign?: 'start' | 'center';
|
|
8
|
+
href: string;
|
|
9
|
+
imageFocusPoint?: FocusPoint;
|
|
10
|
+
imageSrc: string;
|
|
11
|
+
tagline?: string;
|
|
12
|
+
theme?: 'light' | 'dark';
|
|
13
|
+
title: string;
|
|
14
|
+
vAlign?: 'start' | 'center' | 'end';
|
|
15
|
+
}
|
|
16
|
+
export declare function ClientCaseBanner({ bgGradient, className, 'data-country-gate': dataCountryGate, 'data-test-selector': dataTestSelector, hAlign, href, imageFocusPoint, imageSrc, tagline, theme, title, vAlign, }: ClientCaseBannerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { Link } from '../buttons/link/link.js';
|
|
5
|
+
import { ResponsiveImage } from '../media/responsive-image/responsive-image.js';
|
|
6
|
+
import { Heading } from '../typography/heading/heading.js';
|
|
7
|
+
import styles from './client-case-banner.module.css.js';
|
|
8
|
+
|
|
9
|
+
function ClientCaseBanner({ bgGradient = false, className, 'data-country-gate': dataCountryGate, 'data-test-selector': dataTestSelector, hAlign = 'start', href, imageFocusPoint, imageSrc, tagline, theme = 'dark', title, vAlign = 'start', }) {
|
|
10
|
+
return (jsx("article", { className: clsx(styles['client-case-banner'], styles[`theme-${theme}`], styles[`h-align-${hAlign}`], styles[`v-align-${vAlign}`], bgGradient && styles['bg-gradient'], className), "data-country-gate": dataCountryGate, "data-test-selector": dataTestSelector, children: jsxs("div", { className: styles['content'], children: [jsx(Heading, { neutral: true, className: styles['title'], tag: "h3", children: jsx(Link, { className: styles['link'], href: href, children: title }) }), tagline && jsx("div", { className: styles['tagline'], children: tagline }), jsx(ResponsiveImage, { className: styles['image'], fit: "cover", focusPoint: imageFocusPoint, sizes: "(min-width: 48rem) 33vw, 100vw", src: imageSrc })] }) }));
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { ClientCaseBanner };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var styles = {"client-case-banner":"client-case-banner-module-ERVCK","link":"client-case-banner-module-1wWyT","content":"client-case-banner-module-456lz","title":"client-case-banner-module-JT8xh","tagline":"client-case-banner-module--w-B8","image":"client-case-banner-module-4MYKx","bg-gradient":"client-case-banner-module-7owXw","v-align-start":"client-case-banner-module-z2m-b","v-align-end":"client-case-banner-module-Juygo","theme-dark":"client-case-banner-module--XjR7","theme-light":"client-case-banner-module-SNLaN","h-align-start":"client-case-banner-module-kPgUI","h-align-center":"client-case-banner-module-Z4g2u","v-align-center":"client-case-banner-module-8Iowh"};
|
|
2
|
+
|
|
3
|
+
export { styles as default };
|
|
@@ -30,7 +30,7 @@ function AccordionItem({ _pseudo = 'none', allowCollapse = true, allowToggle = t
|
|
|
30
30
|
}), disabled: isDisabled, id: id, onClick: () => {
|
|
31
31
|
if (allowToggle && allowCollapse)
|
|
32
32
|
toggle();
|
|
33
|
-
}, tabIndex: allowToggle ? 0 : -1, type: "button", children: [title, size === 'lg' ? (jsx(Icon, { className: styles.icon, name: "ArrowDownBold", size: "xs" })) : (jsx(Icon, { className: styles.icon, name: "ArrowDown", size: "xs" }))] }) }), jsx("div", { ref: panelRef, "aria-hidden": !isOpen
|
|
33
|
+
}, tabIndex: allowToggle ? 0 : -1, type: "button", children: [title, size === 'lg' ? (jsx(Icon, { className: styles.icon, name: "ArrowDownBold", size: "xs" })) : (jsx(Icon, { className: styles.icon, name: "ArrowDown", size: "xs" }))] }) }), jsx("div", { ref: panelRef, "aria-hidden": !isOpen, "aria-labelledby": id, className: styles.panel, id: panelId, role: "region", children: children })] }));
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export { AccordionItem };
|
|
@@ -23,7 +23,7 @@ function CascadingComponentContainerProvider({ children, onClose, timeout, }) {
|
|
|
23
23
|
parentContext.registerChild(onClose);
|
|
24
24
|
return () => parentContext.unregisterChild(onClose);
|
|
25
25
|
}, [onClose, parentContext]);
|
|
26
|
-
return (jsx(CascadingComponentContainerContext
|
|
26
|
+
return (jsx(CascadingComponentContainerContext, { value: value, children: children }));
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export { CascadingComponentContainerProvider };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { use } from 'react';
|
|
3
3
|
import { CascadingComponentContainerContext } from './cascading-component-container-context.js';
|
|
4
4
|
|
|
5
5
|
function useCascadingComponentContainer() {
|
|
6
|
-
return
|
|
6
|
+
return use(CascadingComponentContainerContext);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export { useCascadingComponentContainer };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface CollapsibleProps {
|
|
2
|
+
anchorId?: string;
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
'data-country-gate'?: string;
|
|
6
|
+
'data-test-selector'?: string;
|
|
7
|
+
onToggle?: () => void;
|
|
8
|
+
open?: boolean;
|
|
9
|
+
title: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function Collapsable({ anchorId, children, className, 'data-country-gate': dataCountryGate, 'data-test-selector': dataTestSelector, onToggle, open, title, }: CollapsibleProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { useEffect } from 'react';
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
import { Icon } from '../../icon/icon.js';
|
|
6
|
+
import styles from './collapsable.module.css.js';
|
|
7
|
+
|
|
8
|
+
function Collapsable({ anchorId, children, className, 'data-country-gate': dataCountryGate, 'data-test-selector': dataTestSelector, onToggle, open = false, title, }) {
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
const openFromHash = () => {
|
|
11
|
+
if (!window)
|
|
12
|
+
return;
|
|
13
|
+
const id = decodeURIComponent(window.location.hash.slice(1));
|
|
14
|
+
if (!id)
|
|
15
|
+
return;
|
|
16
|
+
const el = document?.querySelector(`#${id}`);
|
|
17
|
+
// Also opens any parent collapsables if they're nested
|
|
18
|
+
for (let d = el?.closest('details'); d; d = d.parentElement?.closest('details') ?? null) {
|
|
19
|
+
d.open = true;
|
|
20
|
+
}
|
|
21
|
+
el?.scrollIntoView();
|
|
22
|
+
onToggle?.();
|
|
23
|
+
};
|
|
24
|
+
openFromHash(); // initial page load with #hash
|
|
25
|
+
window?.addEventListener('hashchange', openFromHash);
|
|
26
|
+
return () => window?.removeEventListener('hashchange', openFromHash);
|
|
27
|
+
}, [onToggle]);
|
|
28
|
+
return (jsxs("details", { className: clsx(styles['collapsable'], className), "data-country-gate": dataCountryGate, "data-test-selector": dataTestSelector, id: anchorId, onToggle: onToggle, open: open, children: [jsxs("summary", { className: styles['title'], children: [jsx(Icon, { className: styles['icon'], label: "??", name: "ArrowRight" }), jsx("div", { children: title })] }), jsx("div", { className: styles['body'], children: children })] }));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { Collapsable };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { createContext,
|
|
3
|
+
import { createContext, use, useState, useEffect, useMemo } from 'react';
|
|
4
4
|
|
|
5
5
|
const UnmounterContext = createContext(null);
|
|
6
6
|
function useUnmount() {
|
|
7
|
-
const context =
|
|
7
|
+
const context = use(UnmounterContext);
|
|
8
8
|
return context;
|
|
9
9
|
}
|
|
10
10
|
function Unmounter({ children: children, onUnmounted, onUnmountReady, unmount: _unmount = false, }) {
|
|
@@ -38,7 +38,7 @@ function Unmounter({ children: children, onUnmounted, onUnmountReady, unmount: _
|
|
|
38
38
|
unregisterChild: () => updateChildCount(count => count - 1),
|
|
39
39
|
};
|
|
40
40
|
}, [unmount]);
|
|
41
|
-
return
|
|
41
|
+
return jsx(UnmounterContext, { value: value, children: children });
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
export { Unmounter, UnmounterContext, useUnmount };
|
|
@@ -4,7 +4,7 @@ import { clientCookieContextValue } from './client-cookie-context.js';
|
|
|
4
4
|
import { CookieContext } from './cookie-context.js';
|
|
5
5
|
|
|
6
6
|
function CookieProvider({ children, value = clientCookieContextValue, }) {
|
|
7
|
-
return
|
|
7
|
+
return jsx(CookieContext, { value: value, children: children });
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export { CookieProvider };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { use, useState } from 'react';
|
|
3
3
|
import { defaultCookieOptions, clientCookieContextValue } from './client-cookie-context.js';
|
|
4
4
|
import { CookieContext } from './cookie-context.js';
|
|
5
5
|
import { createReadonlyCookieReader } from './readonly-cookie-reader.js';
|
|
6
6
|
import { isCookieGetterSetter } from './types.js';
|
|
7
7
|
|
|
8
8
|
function useCookie(name, options = defaultCookieOptions) {
|
|
9
|
-
const context =
|
|
9
|
+
const context = use(CookieContext);
|
|
10
10
|
const Cookies = context
|
|
11
11
|
? isCookieGetterSetter(context)
|
|
12
12
|
? context
|
|
@@ -46,7 +46,7 @@ function CountryLanguageSelectionList({ itemGroups, items, onSelect, }) {
|
|
|
46
46
|
.sort((a, b) => {
|
|
47
47
|
return a.label.localeCompare(b.label);
|
|
48
48
|
});
|
|
49
|
-
return (jsx("
|
|
49
|
+
return (jsx("article", { className: styles['country-language-selection-list'], children: itemGroups && filteredGroups ? (filteredGroups.map(({ items, key, label }) => {
|
|
50
50
|
return items.length > 0 ? (jsxs("section", { className: styles['group'], children: [jsx(Heading, { className: styles['heading'], size: "xs", tag: "h2", children: label }), jsx(CountryLanguageSelectionSublist, { handleClick: handleClick, items: items })] }, key)) : null;
|
|
51
51
|
})) : (jsx(CountryLanguageSelectionSublist, { handleClick: handleClick, items: items })) }));
|
|
52
52
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var styles = {"country-language-selection-list":"country-language-selection-list-module-TIz6H","list":"country-language-selection-list-module-MYQLz","
|
|
1
|
+
var styles = {"country-language-selection-list":"country-language-selection-list-module-TIz6H","list":"country-language-selection-list-module-MYQLz","heading":"country-language-selection-list-module-jXkw-"};
|
|
2
2
|
|
|
3
3
|
export { styles as default };
|
|
@@ -6,6 +6,5 @@ export interface ConnectedCountryLanguageSelectorProps {
|
|
|
6
6
|
isOpen?: boolean;
|
|
7
7
|
selectedCountry?: CountryCode;
|
|
8
8
|
selectedLanguage?: LanguageCode;
|
|
9
|
-
sticky?: boolean;
|
|
10
9
|
}
|
|
11
|
-
export declare function ConnectedCountryLanguageSelector({ className, countries: _countries, isOpen: _isOpen, selectedCountry, selectedLanguage,
|
|
10
|
+
export declare function ConnectedCountryLanguageSelector({ className, countries: _countries, isOpen: _isOpen, selectedCountry, selectedLanguage, }: ConnectedCountryLanguageSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -21,7 +21,7 @@ import { CountryLanguageSelector } from './country-language-selector.js';
|
|
|
21
21
|
- redirect to /xx-yy homepage? or map the current path to the new locale (...)?
|
|
22
22
|
*/
|
|
23
23
|
const pathToCLSelectionList = '/countries';
|
|
24
|
-
function ConnectedCountryLanguageSelector({ className, countries: _countries, isOpen: _isOpen, selectedCountry, selectedLanguage,
|
|
24
|
+
function ConnectedCountryLanguageSelector({ className, countries: _countries, isOpen: _isOpen, selectedCountry, selectedLanguage, }) {
|
|
25
25
|
const t = useFormattedMessage();
|
|
26
26
|
const { navigate } = useNavigate();
|
|
27
27
|
const { setShowSelector, showSelector } = useIntl();
|
|
@@ -149,7 +149,7 @@ function ConnectedCountryLanguageSelector({ className, countries: _countries, is
|
|
|
149
149
|
setIsOpen(true);
|
|
150
150
|
}
|
|
151
151
|
}, [showSelector, setShowSelector]);
|
|
152
|
-
return (jsx(CountryLanguageSelector, { className: className, defaultSelectedOption: defaultSelectedOption, isOpen: isOpen, onClose: handleClose, onSubmit: handleSubmit, optionGroups: menuOptionGroups, options: menuOptions
|
|
152
|
+
return (jsx(CountryLanguageSelector, { className: className, defaultSelectedOption: defaultSelectedOption, isOpen: isOpen, onClose: handleClose, onSubmit: handleSubmit, optionGroups: menuOptionGroups, options: menuOptions }));
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
export { ConnectedCountryLanguageSelector };
|
|
@@ -13,6 +13,5 @@ export interface CountryLanguageSelectorProps {
|
|
|
13
13
|
onSubmit: (selectedOption: CountryLanguageCode | 'other') => void;
|
|
14
14
|
optionGroups?: SelectFieldOptionGroup<CountryLanguageCode>[];
|
|
15
15
|
options: CountryLanguageSelectorOptions;
|
|
16
|
-
sticky?: boolean;
|
|
17
16
|
}
|
|
18
|
-
export declare function CountryLanguageSelector({ className, defaultSelectedOption, isOpen, onClose, onSubmit, optionGroups, options,
|
|
17
|
+
export declare function CountryLanguageSelector({ className, defaultSelectedOption, isOpen, onClose, onSubmit, optionGroups, options, }: CountryLanguageSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { useState,
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { useState, useEffect } from 'react';
|
|
4
4
|
import { clsx } from 'clsx';
|
|
5
5
|
import { Button } from '../buttons/button/button.js';
|
|
6
6
|
import { CloseButton } from '../buttons/close-button/close-button.js';
|
|
7
7
|
import { SelectField } from '../forms/fields/select-field/select-field.js';
|
|
8
8
|
import { Form } from '../forms/layout/form/form.js';
|
|
9
9
|
import { useFormattedMessage } from '../intl/use-formatted-message.js';
|
|
10
|
+
import { PageSection } from '../sections/page-section/page-section.js';
|
|
10
11
|
import { useResizeObserver } from '../shared/hooks/use-resize-observer.js';
|
|
11
12
|
import styles from './country-language-selector.module.css.js';
|
|
12
13
|
|
|
13
|
-
function CountryLanguageSelector({ className, defaultSelectedOption, isOpen, onClose, onSubmit, optionGroups, options,
|
|
14
|
+
function CountryLanguageSelector({ className, defaultSelectedOption, isOpen, onClose, onSubmit, optionGroups, options, }) {
|
|
14
15
|
const t = useFormattedMessage();
|
|
15
16
|
const title = t('Select a region and language');
|
|
16
17
|
const [selectedKey, setSelectedKey] = useState(defaultSelectedOption);
|
|
@@ -19,7 +20,6 @@ function CountryLanguageSelector({ className, defaultSelectedOption, isOpen, onC
|
|
|
19
20
|
const height = size.height;
|
|
20
21
|
document?.documentElement.style.setProperty('--clselector-height', `${height}px`);
|
|
21
22
|
});
|
|
22
|
-
const focusTimeoutRef = useRef(undefined);
|
|
23
23
|
useEffect(() => {
|
|
24
24
|
// eslint-disable-next-line @eslint-react/hooks-extra/no-direct-set-state-in-use-effect
|
|
25
25
|
setIsInitialized(true);
|
|
@@ -30,23 +30,16 @@ function CountryLanguageSelector({ className, defaultSelectedOption, isOpen, onC
|
|
|
30
30
|
};
|
|
31
31
|
useEffect(() => {
|
|
32
32
|
if (isOpen) {
|
|
33
|
-
const el = document?.
|
|
34
|
-
el
|
|
35
|
-
|
|
36
|
-
el
|
|
37
|
-
}, 100);
|
|
38
|
-
}
|
|
39
|
-
return () => {
|
|
40
|
-
if (focusTimeoutRef.current) {
|
|
41
|
-
clearTimeout(focusTimeoutRef.current);
|
|
33
|
+
const el = document?.querySelector('#country-language-selector') ?? null;
|
|
34
|
+
if (el) {
|
|
35
|
+
el.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
|
36
|
+
el.focus({ preventScroll: true });
|
|
42
37
|
}
|
|
43
|
-
}
|
|
38
|
+
}
|
|
44
39
|
}, [clSelectorRef, isOpen]);
|
|
45
|
-
return (
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
? undefined
|
|
49
|
-
: defaultSelectedOption, label: title, name: "cl", onChange: key => setSelectedKey(key), optionGroups: optionGroups, options: options, placeholder: title, showLabel: false, variant: "solid" }), jsx(Button, { light: true, className: styles['submit'], "data-test-selector": "country-language-selector-submit", isDisabled: !selectedKey, size: "sm", type: "submit", variant: "solid", children: t('Continue') })] }), jsx(CloseButton, { className: styles['close'], "data-test-selector": "country-language-selector-close", label: t('Close and don’t show again'), onClick: onClose, size: "sm" })] }) }));
|
|
40
|
+
return (jsxs(PageSection, { ref: clSelectorRef, "aria-label": title, as: "header", className: clsx(styles['country-language-selector'], isInitialized && styles['is-initialized'], isOpen && styles['is-open'], className), "data-test-selector": "country-language-selector", id: "country-language-selector", layout: "canvas", tabIndex: -1, children: [jsx("p", { className: styles['explanation'], children: t('Choose another region if you want to see the content for your location and shop online.') }), jsxs(Form, { className: styles['form'], onSubmit: handleSubmit, children: [jsx(SelectField, { className: styles['menu'], "data-test-selector": "country-language-selector-menu", defaultSelectedOption: defaultSelectedOption === 'other'
|
|
41
|
+
? undefined
|
|
42
|
+
: defaultSelectedOption, label: title, name: "cl", onChange: key => setSelectedKey(key), optionGroups: optionGroups, options: options, placeholder: title, showLabel: false, variant: "solid" }), jsx(Button, { light: true, className: styles['submit'], "data-test-selector": "country-language-selector-submit", isDisabled: !selectedKey, size: "sm", type: "submit", variant: "solid", children: t('Continue') })] }), jsx(CloseButton, { className: styles['close'], "data-test-selector": "country-language-selector-close", label: t('Close and don’t show again'), onClick: onClose, size: "sm" })] }));
|
|
50
43
|
}
|
|
51
44
|
|
|
52
45
|
export { CountryLanguageSelector };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var styles = {"country-language-selector":"country-language-selector-module-lW6eg","
|
|
1
|
+
var styles = {"country-language-selector":"country-language-selector-module-lW6eg","is-open":"country-language-selector-module-XttBY","is-initialized":"country-language-selector-module-lfI2j","explanation":"country-language-selector-module-UvT-P","form":"country-language-selector-module-pZ3tL","menu":"country-language-selector-module-nUMvr","submit":"country-language-selector-module-jMfKb","close":"country-language-selector-module-sJF5B"};
|
|
2
2
|
|
|
3
3
|
export { styles as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CountryLanguageCode } from '../../intl/types';
|
|
2
|
+
export declare const options: {
|
|
3
|
+
'de-de': string;
|
|
4
|
+
'en-nl': string;
|
|
5
|
+
'nl-nl': string;
|
|
6
|
+
other: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const optionGroups: {
|
|
9
|
+
key: string;
|
|
10
|
+
label: string;
|
|
11
|
+
options: CountryLanguageCode[];
|
|
12
|
+
reactNode: React.ReactNode;
|
|
13
|
+
}[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { CountryLanguageSelectorButton } from './country-language-selector-button';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: typeof CountryLanguageSelectorButton;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
title: string;
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof meta>;
|
|
12
|
+
export declare const Default: Story;
|
|
13
|
+
export declare const Connected: StoryObj;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export interface DetailsProps {
|
|
2
2
|
children: React.ReactNode;
|
|
3
3
|
className?: string;
|
|
4
|
+
'data-country-gate'?: string;
|
|
4
5
|
lang?: string;
|
|
5
6
|
summary: string;
|
|
6
7
|
}
|
|
7
|
-
export declare function Details({ children, className, lang, summary }: DetailsProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function Details({ children, className, 'data-country-gate': dataCountryGate, lang, summary, }: DetailsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,8 +4,8 @@ import { clsx } from 'clsx';
|
|
|
4
4
|
import { Icon } from '../../icon/icon.js';
|
|
5
5
|
import styles from './details.module.css.js';
|
|
6
6
|
|
|
7
|
-
function Details({ children, className, lang, summary }) {
|
|
8
|
-
return (jsxs("details", { className: clsx(styles['details'], className), lang: lang, children: [jsxs("summary", { className: styles['summary'], children: [jsx(Icon, { className: styles['arrow'], name: "ArrowRightBold", size: "xxs" }), summary] }), jsx("div", { className: styles['content'], children: children })] }));
|
|
7
|
+
function Details({ children, className, 'data-country-gate': dataCountryGate, lang, summary, }) {
|
|
8
|
+
return (jsxs("details", { className: clsx(styles['details'], className), "data-country-gate": dataCountryGate, lang: lang, children: [jsxs("summary", { className: styles['summary'], children: [jsx(Icon, { className: styles['arrow'], name: "ArrowRightBold", size: "xxs" }), summary] }), jsx("div", { className: styles['content'], children: children })] }));
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export { Details };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
+
import { useFormattedMessage } from '../../intl/use-formatted-message.js';
|
|
4
5
|
import styles from './product-sku.module.css.js';
|
|
5
6
|
|
|
6
7
|
function ProductSku({ className, sku }) {
|
|
7
|
-
|
|
8
|
+
const t = useFormattedMessage();
|
|
9
|
+
return (jsx("div", { "aria-label": t('Product SKU'), className: clsx(styles['product-sku'], className), "data-test-selector": "productNumber", children: sku }));
|
|
8
10
|
}
|
|
9
11
|
|
|
10
12
|
export { ProductSku };
|