@sonic-equipment/ui 0.0.119 → 1.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/_virtual/_commonjsHelpers.js +5 -0
- package/dist/_virtual/index.js +7 -0
- package/dist/address-info-display/address-info-display.d.ts +6 -0
- package/dist/address-info-display/address-info-display.js +10 -0
- package/dist/address-info-display/address-info-display.module.css.js +3 -0
- package/dist/algolia/algolia-active-categories.js +39 -0
- package/dist/algolia/algolia-active-filters.js +38 -0
- package/dist/algolia/algolia-categories-filters.js +27 -0
- package/dist/algolia/algolia-dummy-refinement-list-consumer.js +20 -0
- package/dist/algolia/algolia-filter-panel.js +39 -0
- package/dist/algolia/algolia-filter-panel.module.css.js +3 -0
- package/dist/algolia/algolia-hit-type.d.ts +2 -0
- package/dist/algolia/algolia-hit-type.js +6 -0
- package/dist/algolia/algolia-hits-provider.js +17 -0
- package/dist/algolia/algolia-index-config.d.ts +3 -1
- package/dist/algolia/algolia-index-config.js +77 -0
- package/dist/algolia/algolia-initialization.js +34 -0
- package/dist/algolia/algolia-insight-instant-search-provider.js +14 -0
- package/dist/algolia/algolia-insights-provider.js +25 -0
- package/dist/algolia/algolia-instant-search-state-provider.js +16 -0
- package/dist/algolia/algolia-multi-select-filter-section.js +27 -0
- package/dist/algolia/algolia-pagination.js +18 -0
- package/dist/algolia/algolia-provider.js +34 -0
- package/dist/algolia/algolia-query-string-routing.js +108 -0
- package/dist/algolia/algolia-results-count.js +22 -0
- package/dist/algolia/algolia-search-provider.js +176 -0
- package/dist/algolia/algolia-searchclient-offline.js +26 -0
- package/dist/algolia/algolia-sonic-searchclient.d.ts +2 -1
- package/dist/algolia/algolia-sonic-searchclient.js +26 -0
- package/dist/algolia/algolia-sort-by.js +29 -0
- package/dist/algolia/constants/index.d.ts +1 -0
- package/dist/algolia/constants/index.js +3 -0
- package/dist/algolia/filter-section.js +34 -0
- package/dist/algolia/filter-section.module.css.js +3 -0
- package/dist/algolia/use-algolia-hits.js +19 -0
- package/dist/algolia/use-algolia-insights-provider-global-state.js +9 -0
- package/dist/algolia/use-algolia-insights.d.ts +20 -6
- package/dist/algolia/use-algolia-insights.js +303 -0
- package/dist/algolia/use-algolia-instant-search-state.js +25 -0
- package/dist/algolia/use-algolia-search.d.ts +2 -1
- package/dist/algolia/use-algolia-search.js +41 -0
- package/dist/authentication/authenticated-container.d.ts +9 -0
- package/dist/authentication/authenticated-container.js +21 -0
- package/dist/background-overlay/background-overlay-manager.d.ts +178 -0
- package/dist/background-overlay/background-overlay-manager.js +297 -0
- package/dist/background-overlay/background-overlay.d.ts +12 -2
- package/dist/background-overlay/background-overlay.js +40 -0
- package/dist/badges/badge/badge.d.ts +5 -2
- package/dist/badges/badge/badge.js +18 -0
- package/dist/badges/badge/badge.module.css.js +3 -0
- package/dist/badges/badge/icon-with-badge/icon-with-badge.d.ts +11 -4
- package/dist/badges/badge/icon-with-badge/icon-with-badge.js +12 -0
- package/dist/badges/badge/icon-with-badge/icon-with-badge.module.css.js +3 -0
- package/dist/badges/tag/tag.js +11 -0
- package/dist/badges/tag/tag.module.css.js +3 -0
- package/dist/base.css +49 -0
- package/dist/breadcrumbs/breadcrumb.js +26 -0
- package/dist/breadcrumbs/breadcrumb.module.css.js +3 -0
- package/dist/buttons/add-to-cart-button/add-to-cart-button.d.ts +1 -3
- package/dist/buttons/add-to-cart-button/add-to-cart-button.js +118 -0
- package/dist/buttons/add-to-cart-button/add-to-cart-button.module.css.js +3 -0
- package/dist/buttons/add-to-cart-button/connected-add-to-cart-button.d.ts +1 -1
- package/dist/buttons/add-to-cart-button/connected-add-to-cart-button.js +126 -0
- package/dist/buttons/button/button.d.ts +14 -2
- package/dist/buttons/button/button.js +36 -0
- package/dist/buttons/button/button.module.css.js +3 -0
- package/dist/buttons/close-button/close-button.d.ts +12 -0
- package/dist/buttons/close-button/close-button.js +11 -0
- package/dist/buttons/close-button/close-button.module.css.js +3 -0
- package/dist/buttons/favorite/connected-favorite-button.d.ts +1 -1
- package/dist/buttons/favorite/connected-favorite-button.js +56 -0
- package/dist/buttons/favorite/favorite-button.d.ts +1 -1
- package/dist/buttons/favorite/favorite-button.js +15 -0
- package/dist/buttons/favorite/favorite-button.module.css.js +3 -0
- package/dist/buttons/icon-button/icon-button.d.ts +20 -6
- package/dist/buttons/icon-button/icon-button.js +24 -0
- package/dist/buttons/icon-button/icon-button.module.css.js +3 -0
- package/dist/buttons/link/link.d.ts +19 -5
- package/dist/buttons/link/link.js +18 -0
- package/dist/buttons/link/link.module.css.js +3 -0
- package/dist/buttons/print-button/print-button.d.ts +2 -1
- package/dist/buttons/print-button/print-button.js +10 -0
- package/dist/buttons/reorder-button/connected-reorder-button.d.ts +4 -0
- package/dist/buttons/reorder-button/connected-reorder-button.js +38 -0
- package/dist/buttons/reorder-button/reorder-button.d.ts +9 -0
- package/dist/buttons/reorder-button/reorder-button.js +12 -0
- package/dist/cards/category-card/category-card.d.ts +3 -2
- package/dist/cards/category-card/category-card.js +14 -0
- package/dist/cards/category-card/category-card.module.css.js +3 -0
- package/dist/cards/data-card/data-card.d.ts +39 -0
- package/dist/cards/data-card/data-card.js +68 -0
- package/dist/cards/data-card/data-card.module.css.js +3 -0
- package/dist/cards/orderline-card/connected-orderline-card.js +13 -0
- package/dist/cards/orderline-card/connected-remove-button.js +18 -0
- package/dist/cards/orderline-card/orderline-card.d.ts +4 -4
- package/dist/cards/orderline-card/orderline-card.js +22 -0
- package/dist/cards/orderline-card/orderline-card.module.css.js +3 -0
- package/dist/cards/product-card/connected-product-card.d.ts +6 -2
- package/dist/cards/product-card/connected-product-card.js +11 -0
- package/dist/cards/product-card/product-card.d.ts +4 -2
- package/dist/cards/product-card/product-card.js +22 -0
- package/dist/cards/product-card/product-card.module.css.js +3 -0
- package/dist/cards/table-card/table-card.d.ts +15 -0
- package/dist/cards/table-card/table-card.js +15 -0
- package/dist/cards/table-card/table-card.module.css.js +3 -0
- package/dist/carousel/card-carousel/card-carousel.js +24 -0
- package/dist/carousel/card-carousel/card-carousel.module.css.js +3 -0
- package/dist/carousel/carousel-navigation-button.js +12 -0
- package/dist/carousel/carousel-navigation-button.module.css.js +3 -0
- package/dist/carousel/carousel.js +69 -0
- package/dist/carousel/carousel.module.css.js +3 -0
- package/dist/carousel/category-carousel/category-carousel.js +10 -0
- package/dist/carousel/category-carousel/category-carousel.module.css.js +3 -0
- package/dist/carousel/pagination/pagination.d.ts +1 -1
- package/dist/carousel/pagination/pagination.js +36 -0
- package/dist/carousel/pagination/pagination.module.css.js +3 -0
- package/dist/carousel/pagination/transitions.js +144 -0
- package/dist/carousel/usp-carousel/product-usp-carousel-slide.js +13 -0
- package/dist/carousel/usp-carousel/product-usp-carousel.js +10 -0
- package/dist/carousel/usp-carousel/usp-carousel.js +49 -0
- package/dist/carousel/usp-carousel/usp-carousel.module.css.js +3 -0
- package/dist/cart-totals/cart-totals-summary.d.ts +4 -2
- package/dist/cart-totals/cart-totals-summary.js +13 -0
- package/dist/cart-totals/cart-totals-summary.module.css.js +3 -0
- package/dist/cart-totals/cart-totals.d.ts +11 -6
- package/dist/cart-totals/cart-totals.js +15 -0
- package/dist/cart-totals/cart-totals.module.css.js +3 -0
- package/dist/collapsables/accordion/accordion-item.d.ts +4 -1
- package/dist/collapsables/accordion/accordion-item.js +36 -0
- package/dist/collapsables/accordion/accordion.d.ts +11 -2
- package/dist/collapsables/accordion/accordion.js +35 -0
- package/dist/collapsables/accordion/accordion.module.css.js +3 -0
- package/dist/collapsables/cascading-component/cascading-component-container-context.d.ts +2 -0
- package/dist/collapsables/cascading-component/cascading-component-container-context.js +6 -0
- package/dist/collapsables/cascading-component/cascading-component-container-provider.d.ts +7 -0
- package/dist/collapsables/cascading-component/cascading-component-container-provider.js +29 -0
- package/dist/collapsables/cascading-component/cascading-component-container.d.ts +8 -0
- package/dist/collapsables/cascading-component/cascading-component-container.js +9 -0
- package/dist/collapsables/cascading-component/cascading-component.d.ts +17 -0
- package/dist/collapsables/cascading-component/cascading-component.js +45 -0
- package/dist/collapsables/cascading-component/types.d.ts +11 -0
- package/dist/collapsables/cascading-component/use-cascading-component-container.d.ts +2 -0
- package/dist/collapsables/cascading-component/use-cascading-component-container.js +9 -0
- package/dist/collapsables/cascading-component/use-cascading-component.d.ts +2 -0
- package/dist/collapsables/cascading-component/use-cascading-component.js +15 -0
- package/dist/collapsables/cascading-component/use-has-cascading-component-container.d.ts +1 -0
- package/dist/collapsables/cascading-component/use-has-cascading-component-container.js +8 -0
- package/dist/collapsables/show-all/show-all.js +35 -0
- package/dist/collapsables/show-all/show-all.module.css.js +3 -0
- package/dist/collapsables/unmounter/unmounter.d.ts +14 -0
- package/dist/collapsables/unmounter/unmounter.js +44 -0
- package/dist/collapsables/unmounter/utils.d.ts +2 -0
- package/dist/collapsables/unmounter/utils.js +21 -0
- package/dist/config.d.ts +4 -2
- package/dist/config.js +116 -0
- package/dist/cookies/client-cookie-context.d.ts +3 -0
- package/dist/cookies/client-cookie-context.js +30 -0
- package/dist/cookies/cookie-context.d.ts +2 -0
- package/dist/cookies/cookie-context.js +6 -0
- package/dist/cookies/cookie-provider.d.ts +6 -0
- package/dist/cookies/cookie-provider.js +10 -0
- package/dist/cookies/readonly-cookie-reader.d.ts +2 -0
- package/dist/cookies/readonly-cookie-reader.js +18 -0
- package/dist/cookies/types.d.ts +14 -0
- package/dist/cookies/types.js +7 -0
- package/dist/{shared/hooks → cookies}/use-cookie.d.ts +1 -1
- package/dist/cookies/use-cookie.js +33 -0
- package/dist/country-language-selection-list/connected-country-language-selection-list.d.ts +1 -0
- package/dist/country-language-selection-list/connected-country-language-selection-list.js +267 -0
- package/dist/country-language-selection-list/country-language-selection-list.d.ts +18 -0
- package/dist/country-language-selection-list/country-language-selection-list.js +54 -0
- package/dist/country-language-selection-list/country-language-selection-list.module.css.js +3 -0
- package/dist/country-language-selector/connected-country-language-selector.d.ts +11 -0
- package/dist/country-language-selector/connected-country-language-selector.js +155 -0
- package/dist/country-language-selector/country-language-selector.d.ts +18 -0
- package/dist/country-language-selector/country-language-selector.js +52 -0
- package/dist/country-language-selector/country-language-selector.module.css.js +3 -0
- package/dist/country-language-selector-button/connected-country-language-selector-button.d.ts +1 -0
- package/dist/country-language-selector-button/connected-country-language-selector-button.js +22 -0
- package/dist/country-language-selector-button/country-language-selector-button.d.ts +7 -0
- package/dist/country-language-selector-button/country-language-selector-button.js +18 -0
- package/dist/country-language-selector-button/country-language-selector-button.module.css.js +3 -0
- package/dist/country-select/country-select.d.ts +29 -0
- package/dist/country-select/country-select.js +29 -0
- package/dist/country-select/hooks/use-countries.d.ts +12 -0
- package/dist/country-select/hooks/use-countries.js +55 -0
- package/dist/country-selector/connected-country-selector.d.ts +8 -8
- package/dist/country-selector/connected-country-selector.js +58 -0
- package/dist/country-selector/country-selector-dialog/country-selector-dialog.d.ts +2 -2
- package/dist/country-selector/country-selector-dialog/country-selector-dialog.js +34 -0
- package/dist/country-selector/country-selector-dialog/country-selector-dialog.module.css.js +3 -0
- package/dist/country-selector/country-selector-trigger/country-selector-trigger.d.ts +2 -3
- package/dist/country-selector/country-selector-trigger/country-selector-trigger.js +24 -0
- package/dist/country-selector/country-selector-trigger/country-selector-trigger.module.css.js +3 -0
- package/dist/country-selector/use-countries-languages.d.ts +23 -6
- package/dist/country-selector/use-countries-languages.js +95 -0
- package/dist/delivery-time/delivery-time.d.ts +2 -2
- package/dist/delivery-time/delivery-time.js +32 -0
- package/dist/delivery-time/delivery-time.module.css.js +3 -0
- package/dist/display/details/details.d.ts +7 -0
- package/dist/display/details/details.js +11 -0
- package/dist/display/details/details.module.css.js +3 -0
- package/dist/display/info-display/info-display.d.ts +7 -0
- package/dist/display/info-display/info-display.js +9 -0
- package/dist/display/info-display/info-display.module.css.js +3 -0
- package/dist/display/price/price.d.ts +18 -0
- package/dist/display/price/price.js +41 -0
- package/dist/display/price/price.module.css.js +3 -0
- package/dist/display/product-sku/product-sku.d.ts +2 -1
- package/dist/display/product-sku/product-sku.js +10 -0
- package/dist/display/product-sku/product-sku.module.css.js +3 -0
- package/dist/drawer/drawer.d.ts +28 -0
- package/dist/drawer/drawer.js +49 -0
- package/dist/drawer/drawer.module.css.js +3 -0
- package/dist/drawer/use-drawer.d.ts +17 -0
- package/dist/drawer/use-drawer.js +67 -0
- package/dist/exports.d.ts +385 -50
- package/dist/filters/active-filters/active-filters.d.ts +1 -1
- package/dist/filters/active-filters/active-filters.js +19 -0
- package/dist/filters/active-filters/active-filters.module.css.js +3 -0
- package/dist/filters/multi-select/multi-select.js +21 -0
- package/dist/filters/multi-select/multi-select.module.css.js +3 -0
- package/dist/filters/pagination/pagination.js +14 -0
- package/dist/filters/pagination/pagination.module.css.js +3 -0
- package/dist/flag/flag.d.ts +8 -0
- package/dist/flag/flag.js +11 -0
- package/dist/flag/flag.module.css.js +3 -0
- package/dist/flags/flag-ad.d.ts +1 -0
- package/dist/flags/flag-ad.js +7 -0
- package/dist/flags/flag-ae.d.ts +1 -0
- package/dist/flags/flag-ae.js +7 -0
- package/dist/flags/flag-al.d.ts +1 -0
- package/dist/flags/flag-al.js +7 -0
- package/dist/flags/flag-at.d.ts +1 -0
- package/dist/flags/flag-at.js +7 -0
- package/dist/flags/flag-ba.d.ts +1 -0
- package/dist/flags/flag-ba.js +7 -0
- package/dist/flags/flag-be.d.ts +1 -0
- package/dist/flags/flag-be.js +7 -0
- package/dist/flags/flag-bg.d.ts +1 -0
- package/dist/flags/flag-bg.js +7 -0
- package/dist/flags/flag-br.d.ts +1 -0
- package/dist/flags/flag-br.js +7 -0
- package/dist/flags/flag-ca.d.ts +1 -0
- package/dist/flags/flag-ca.js +7 -0
- package/dist/flags/flag-ch.d.ts +1 -0
- package/dist/flags/flag-ch.js +7 -0
- package/dist/flags/flag-cy.d.ts +1 -0
- package/dist/flags/flag-cy.js +7 -0
- package/dist/flags/flag-cz.d.ts +1 -0
- package/dist/flags/flag-cz.js +7 -0
- package/dist/flags/flag-de.d.ts +1 -0
- package/dist/flags/flag-de.js +7 -0
- package/dist/flags/flag-dj.d.ts +1 -0
- package/dist/flags/flag-dj.js +7 -0
- package/dist/flags/flag-dk.d.ts +1 -0
- package/dist/flags/flag-dk.js +7 -0
- package/dist/flags/flag-ec.d.ts +1 -0
- package/dist/flags/flag-ec.js +7 -0
- package/dist/flags/flag-ee.d.ts +1 -0
- package/dist/flags/flag-ee.js +7 -0
- package/dist/flags/flag-es.d.ts +1 -0
- package/dist/flags/flag-es.js +7 -0
- package/dist/flags/flag-eu.d.ts +1 -0
- package/dist/flags/flag-eu.js +7 -0
- package/dist/flags/flag-fi.d.ts +1 -0
- package/dist/flags/flag-fi.js +7 -0
- package/dist/flags/flag-fr.d.ts +1 -0
- package/dist/flags/flag-fr.js +7 -0
- package/dist/flags/flag-gb.d.ts +1 -0
- package/dist/flags/flag-gb.js +7 -0
- package/dist/flags/flag-gr.d.ts +1 -0
- package/dist/flags/flag-gr.js +7 -0
- package/dist/flags/flag-hr.d.ts +1 -0
- package/dist/flags/flag-hr.js +7 -0
- package/dist/flags/flag-hu.d.ts +1 -0
- package/dist/flags/flag-hu.js +7 -0
- package/dist/flags/flag-ie.d.ts +1 -0
- package/dist/flags/flag-ie.js +7 -0
- package/dist/flags/flag-iq.d.ts +1 -0
- package/dist/flags/flag-iq.js +7 -0
- package/dist/flags/flag-is.d.ts +1 -0
- package/dist/flags/flag-is.js +7 -0
- package/dist/flags/flag-it.d.ts +1 -0
- package/dist/flags/flag-it.js +7 -0
- package/dist/flags/flag-kw.d.ts +1 -0
- package/dist/flags/flag-kw.js +7 -0
- package/dist/flags/flag-kz.d.ts +1 -0
- package/dist/flags/flag-kz.js +7 -0
- package/dist/flags/flag-lb.d.ts +1 -0
- package/dist/flags/flag-lb.js +7 -0
- package/dist/flags/flag-lt.d.ts +1 -0
- package/dist/flags/flag-lt.js +7 -0
- package/dist/flags/flag-lu.d.ts +1 -0
- package/dist/flags/flag-lu.js +7 -0
- package/dist/flags/flag-lv.d.ts +1 -0
- package/dist/flags/flag-lv.js +7 -0
- package/dist/flags/flag-ma.d.ts +1 -0
- package/dist/flags/flag-ma.js +7 -0
- package/dist/flags/flag-mc.d.ts +1 -0
- package/dist/flags/flag-mc.js +7 -0
- package/dist/flags/flag-md.d.ts +1 -0
- package/dist/flags/flag-md.js +7 -0
- package/dist/flags/flag-me.d.ts +1 -0
- package/dist/flags/flag-me.js +7 -0
- package/dist/flags/flag-mk.d.ts +1 -0
- package/dist/flags/flag-mk.js +7 -0
- package/dist/flags/flag-mt.d.ts +1 -0
- package/dist/flags/flag-mt.js +7 -0
- package/dist/flags/flag-mx.d.ts +1 -0
- package/dist/flags/flag-mx.js +7 -0
- package/dist/flags/flag-my.d.ts +1 -0
- package/dist/flags/flag-my.js +7 -0
- package/dist/flags/flag-nl.d.ts +1 -0
- package/dist/flags/flag-nl.js +7 -0
- package/dist/flags/flag-no.d.ts +1 -0
- package/dist/flags/flag-no.js +7 -0
- package/dist/flags/flag-pl.d.ts +1 -0
- package/dist/flags/flag-pl.js +7 -0
- package/dist/flags/flag-pt.d.ts +1 -0
- package/dist/flags/flag-pt.js +7 -0
- package/dist/flags/flag-ro.d.ts +1 -0
- package/dist/flags/flag-ro.js +7 -0
- package/dist/flags/flag-rs.d.ts +1 -0
- package/dist/flags/flag-rs.js +7 -0
- package/dist/flags/flag-sa.d.ts +1 -0
- package/dist/flags/flag-sa.js +7 -0
- package/dist/flags/flag-se.d.ts +1 -0
- package/dist/flags/flag-se.js +7 -0
- package/dist/flags/flag-sg.d.ts +1 -0
- package/dist/flags/flag-sg.js +7 -0
- package/dist/flags/flag-si.d.ts +1 -0
- package/dist/flags/flag-si.js +7 -0
- package/dist/flags/flag-sk.d.ts +1 -0
- package/dist/flags/flag-sk.js +7 -0
- package/dist/flags/flag-tr.d.ts +1 -0
- package/dist/flags/flag-tr.js +7 -0
- package/dist/flags/flag-tw.d.ts +1 -0
- package/dist/flags/flag-tw.js +7 -0
- package/dist/flags/flag-ua.d.ts +1 -0
- package/dist/flags/flag-ua.js +7 -0
- package/dist/flags/flag-us.d.ts +1 -0
- package/dist/flags/flag-us.js +7 -0
- package/dist/flags/flag-vn.d.ts +1 -0
- package/dist/flags/flag-vn.js +7 -0
- package/dist/flags/flag-xk.d.ts +1 -0
- package/dist/flags/flag-xk.js +7 -0
- package/dist/flags/flag-za.d.ts +1 -0
- package/dist/flags/flag-za.js +7 -0
- package/dist/flags/index.d.ts +1 -0
- package/dist/flags/index.js +88 -0
- package/dist/footer/connected-footer.d.ts +3 -0
- package/dist/footer/connected-footer.js +21 -0
- package/dist/footer/footer.d.ts +9 -0
- package/dist/footer/footer.js +39 -0
- package/dist/footer/footer.model.d.ts +6 -0
- package/dist/footer/footer.module.css.js +3 -0
- package/dist/forms/elements/checkbox/checkbox.d.ts +23 -0
- package/dist/forms/elements/checkbox/checkbox.js +15 -0
- package/dist/forms/elements/checkbox/checkbox.module.css.js +3 -0
- package/dist/forms/elements/color-checkbox/color-checkbox.d.ts +7 -0
- package/dist/forms/elements/color-checkbox/color-checkbox.js +17 -0
- package/dist/forms/elements/field-error/field-error.d.ts +19 -0
- package/dist/forms/elements/field-error/field-error.js +27 -0
- package/dist/forms/elements/field-error/field-error.module.css.js +3 -0
- package/dist/forms/{input → elements/input}/input.d.ts +6 -0
- package/dist/forms/elements/input/input.js +31 -0
- package/dist/forms/elements/input/input.module.css.js +3 -0
- package/dist/forms/elements/label/label.d.ts +8 -0
- package/dist/forms/elements/label/label.js +13 -0
- package/dist/forms/elements/label/label.module.css.js +3 -0
- package/dist/forms/elements/select/select.d.ts +20 -0
- package/dist/forms/elements/select/select.js +37 -0
- package/dist/forms/elements/select/select.module.css.js +3 -0
- package/dist/forms/elements/switch/switch.d.ts +22 -0
- package/dist/forms/elements/switch/switch.js +15 -0
- package/dist/forms/elements/switch/switch.module.css.js +3 -0
- package/dist/forms/{textarea → elements/textarea}/textarea.d.ts +4 -0
- package/dist/forms/elements/textarea/textarea.js +55 -0
- package/dist/forms/elements/textarea/textarea.module.css.js +3 -0
- package/dist/forms/fields/checkbox-field/checkbox-field.d.ts +10 -0
- package/dist/forms/fields/checkbox-field/checkbox-field.js +16 -0
- package/dist/forms/fields/checkbox-field/checkbox-field.module.css.js +3 -0
- package/dist/forms/fields/number-field/number-field.d.ts +34 -0
- package/dist/forms/fields/number-field/number-field.js +55 -0
- package/dist/forms/fields/number-field/number-field.module.css.js +3 -0
- package/dist/forms/fields/password-field/password-field.d.ts +2 -0
- package/dist/forms/fields/password-field/password-field.js +16 -0
- package/dist/forms/fields/search-field/search-field.d.ts +5 -0
- package/dist/forms/fields/search-field/search-field.js +20 -0
- package/dist/forms/fields/select-field/select-field.d.ts +34 -0
- package/dist/forms/fields/select-field/select-field.js +51 -0
- package/dist/forms/fields/select-field/select-field.module.css.js +3 -0
- package/dist/forms/fields/switch-field/switch-field.d.ts +10 -0
- package/dist/forms/fields/switch-field/switch-field.js +18 -0
- package/dist/forms/fields/switch-field/switch-field.module.css.js +3 -0
- package/dist/forms/fields/text-field/password-reveal-toggle/password-reveal-toggle.d.ts +10 -0
- package/dist/forms/fields/text-field/password-reveal-toggle/password-reveal-toggle.js +18 -0
- package/dist/forms/fields/text-field/password-reveal-toggle/password-reveal-toggle.module.css.js +3 -0
- package/dist/forms/fields/text-field/text-field.d.ts +50 -0
- package/dist/forms/fields/text-field/text-field.js +26 -0
- package/dist/forms/fields/text-field/text-field.module.css.js +3 -0
- package/dist/forms/layout/form/form-field-layout.d.ts +10 -0
- package/dist/forms/layout/form/form-field-layout.js +10 -0
- package/dist/forms/layout/form/form-field-layout.module.css.js +3 -0
- package/dist/forms/layout/form/form-segment-group.d.ts +6 -0
- package/dist/forms/layout/form/form-segment-group.js +14 -0
- package/dist/forms/layout/form/form-segment-group.module.css.js +3 -0
- package/dist/forms/layout/form/form-segment.d.ts +6 -0
- package/dist/forms/layout/form/form-segment.js +10 -0
- package/dist/forms/layout/form/form-segment.module.css.js +3 -0
- package/dist/forms/layout/form/form.d.ts +20 -0
- package/dist/forms/layout/form/form.js +28 -0
- package/dist/forms/layout/form/form.module.css.js +3 -0
- package/dist/forms/partials/address-form/address-form.d.ts +11 -0
- package/dist/forms/partials/address-form/address-form.js +40 -0
- package/dist/forms/partials/address-form/address-form.module.css.js +3 -0
- package/dist/forms/partials/password-validation/password-validation.d.ts +4 -0
- package/dist/forms/partials/password-validation/password-validation.js +33 -0
- package/dist/global-search/categories-grid/categories-grid.js +14 -0
- package/dist/global-search/categories-grid/categories-grid.module.css.js +3 -0
- package/dist/global-search/global-search-provider/global-search-provider.d.ts +0 -6
- package/dist/global-search/global-search-provider/global-search-provider.js +9 -0
- package/dist/global-search/global-search-provider/use-search-disclosure.d.ts +1 -6
- package/dist/global-search/global-search-provider/use-search-disclosure.js +9 -0
- package/dist/global-search/global-search.d.ts +3 -1
- package/dist/global-search/global-search.js +44 -0
- package/dist/global-search/global-search.module.css.js +3 -0
- package/dist/global-search/plugins/categories-plugin.d.ts +1 -1
- package/dist/global-search/plugins/categories-plugin.js +37 -0
- package/dist/global-search/plugins/popular-categories-plugin.d.ts +1 -1
- package/dist/global-search/plugins/popular-categories-plugin.js +35 -0
- package/dist/global-search/plugins/popular-searches-plugin.d.ts +1 -1
- package/dist/global-search/plugins/popular-searches-plugin.js +24 -0
- package/dist/global-search/plugins/query-suggestions-plugin.d.ts +1 -1
- package/dist/global-search/plugins/query-suggestions-plugin.js +23 -0
- package/dist/global-search/plugins/quick-access-plugin.d.ts +1 -1
- package/dist/global-search/plugins/quick-access-plugin.js +35 -0
- package/dist/global-search/plugins/recent-searches-plugin.d.ts +1 -1
- package/dist/global-search/plugins/recent-searches-plugin.js +18 -0
- package/dist/global-search/search-highlight/highlight.d.ts +2 -1
- package/dist/global-search/search-highlight/highlight.js +15 -0
- package/dist/global-search/search-input/connected-search-input.js +22 -0
- package/dist/global-search/search-input/search-input.js +30 -0
- package/dist/global-search/search-input/search-input.module.css.js +3 -0
- package/dist/global-search/search-result-panel/panel-content.js +16 -0
- package/dist/global-search/search-result-panel/search-result-panel.js +17 -0
- package/dist/global-search/search-result-panel/search-result-panel.module.css.js +3 -0
- package/dist/global-search/search-result-panel/sections/no-search-results.d.ts +3 -1
- package/dist/global-search/search-result-panel/sections/no-search-results.js +32 -0
- package/dist/global-search/search-result-panel/sections/no-search.d.ts +5 -1
- package/dist/global-search/search-result-panel/sections/no-search.js +59 -0
- package/dist/global-search/search-result-panel/sections/search-content.module.css.js +3 -0
- package/dist/global-search/search-result-panel/sections/searching.d.ts +1 -0
- package/dist/global-search/search-result-panel/sections/searching.js +11 -0
- package/dist/global-search/search-result-panel/sections/section-container.js +9 -0
- package/dist/global-search/search-result-panel/sections/with-results.d.ts +3 -1
- package/dist/global-search/search-result-panel/sections/with-results.js +104 -0
- package/dist/global-search/search-section/search-list-item.d.ts +3 -2
- package/dist/global-search/search-section/search-list-item.js +14 -0
- package/dist/global-search/search-section/search-list-item.module.css.js +3 -0
- package/dist/global-search/search-section/search-list.js +10 -0
- package/dist/global-search/search-section/search-list.module.css.js +3 -0
- package/dist/global-search/search-section/search-section.js +10 -0
- package/dist/global-search/search-section/search-section.module.css.js +3 -0
- package/dist/global-search/types.d.ts +3 -1
- package/dist/header/buttons/account/connected-account-button.d.ts +5 -0
- package/dist/header/buttons/account/connected-account-button.js +30 -0
- package/dist/header/buttons/account/connected-account-button.module.css.js +3 -0
- package/dist/header/buttons/cart/connected-cart-button.d.ts +7 -0
- package/dist/header/buttons/cart/connected-cart-button.js +13 -0
- package/dist/header/buttons/favorites/connected-favorites-button.d.ts +7 -0
- package/dist/header/buttons/favorites/connected-favorites-button.js +11 -0
- package/dist/header/buttons/hamburger/hamburger-button.d.ts +7 -0
- package/dist/header/buttons/hamburger/hamburger-button.js +13 -0
- package/dist/header/buttons/hamburger/hamburger-button.module.css.js +3 -0
- package/dist/header/buttons/search/search-button.d.ts +7 -0
- package/dist/header/buttons/search/search-button.js +11 -0
- package/dist/header/connected-header.d.ts +3 -0
- package/dist/header/connected-header.js +21 -0
- package/dist/header/drawers/desktop-navigation-drawer.d.ts +8 -0
- package/dist/header/drawers/desktop-navigation-drawer.js +11 -0
- package/dist/header/drawers/desktop-navigation-drawer.module.css.js +3 -0
- package/dist/header/drawers/mobile-navigation-drawer.d.ts +7 -0
- package/dist/header/drawers/mobile-navigation-drawer.js +11 -0
- package/dist/header/drawers/mobile-navigation-drawer.module.css.js +3 -0
- package/dist/header/drawers/search-drawer.d.ts +5 -0
- package/dist/header/drawers/search-drawer.js +10 -0
- package/dist/header/header-layout/header-layout.d.ts +10 -0
- package/dist/header/header-layout/header-layout.js +10 -0
- package/dist/header/header-layout/header-layout.module.css.js +3 -0
- package/dist/header/header.d.ts +7 -0
- package/dist/header/header.js +76 -0
- package/dist/header/header.module.css.js +3 -0
- package/dist/header/link-list/navigation-link-list.d.ts +8 -0
- package/dist/header/link-list/navigation-link-list.js +31 -0
- package/dist/header/link-list/navigation-link-list.module.css.js +3 -0
- package/dist/header/sonic-logo/sonic-logo.d.ts +7 -0
- package/dist/header/sonic-logo/sonic-logo.js +18 -0
- package/dist/header/sonic-logo/sonic-logo.module.css.js +3 -0
- package/dist/icon/icon.d.ts +10 -0
- package/dist/icon/icon.js +11 -0
- package/dist/icon/icon.module.css.js +3 -0
- package/dist/icons/glyph/glyphs-arrow-boldcaps-left-icon.js +7 -0
- package/dist/icons/glyph/glyphs-arrow-boldcaps-right-icon.js +7 -0
- package/dist/icons/glyph/glyphs-chevrons-bold-down-icon.js +7 -0
- package/dist/icons/glyph/glyphs-chevrons-bold-left-icon.js +7 -0
- package/dist/icons/glyph/glyphs-chevrons-bold-right-icon.js +7 -0
- package/dist/icons/glyph/glyphs-chevrons-bold-up-icon.js +7 -0
- package/dist/icons/glyph/glyphs-chevrons-slim-down-icon.js +7 -0
- package/dist/icons/glyph/glyphs-chevrons-slim-left-icon.js +7 -0
- package/dist/icons/glyph/glyphs-chevrons-slim-right-icon.js +7 -0
- package/dist/icons/glyph/glyphs-chevrons-slim-up-icon.js +7 -0
- package/dist/icons/index.d.ts +87 -0
- package/dist/icons/index.js +90 -0
- package/dist/icons/solid/solid-add-icon.d.ts +1 -0
- package/dist/icons/solid/solid-attention-icon.js +7 -0
- package/dist/icons/solid/solid-cart-icon.js +7 -0
- package/dist/icons/solid/solid-close-icon.js +7 -0
- package/dist/icons/solid/solid-dashboard-icon.d.ts +1 -0
- package/dist/icons/solid/solid-edit-icon.d.ts +1 -0
- package/dist/icons/solid/solid-edit-icon.js +7 -0
- package/dist/icons/solid/solid-facebook-icon.d.ts +1 -0
- package/dist/icons/solid/solid-favorite-icon.js +7 -0
- package/dist/icons/solid/solid-folder-icon.d.ts +1 -0
- package/dist/icons/solid/solid-home-icon.js +7 -0
- package/dist/icons/solid/solid-information-icon.js +7 -0
- package/dist/icons/solid/solid-instagram-icon.d.ts +1 -0
- package/dist/icons/solid/solid-link-icon.d.ts +1 -0
- package/dist/icons/solid/solid-linkedin-icon.d.ts +1 -0
- package/dist/icons/solid/solid-login-icon.js +7 -0
- package/dist/icons/solid/solid-logout-icon.d.ts +1 -0
- package/dist/icons/solid/solid-logout-icon.js +7 -0
- package/dist/icons/solid/solid-mail-icon.d.ts +1 -0
- package/dist/icons/solid/solid-news-icon.js +7 -0
- package/dist/icons/solid/solid-notice-icon.js +7 -0
- package/dist/icons/solid/solid-okay-icon.js +7 -0
- package/dist/icons/solid/solid-package-icon.d.ts +1 -0
- package/dist/icons/solid/solid-payment-icon.d.ts +1 -0
- package/dist/icons/solid/solid-rating-icon.js +7 -0
- package/dist/icons/solid/solid-remove-icon.d.ts +1 -0
- package/dist/icons/solid/solid-salecategory-icon.d.ts +1 -0
- package/dist/icons/solid/solid-salecategory-icon.js +7 -0
- package/dist/icons/solid/solid-stories-icon.d.ts +1 -0
- package/dist/icons/solid/solid-tag-icon.js +7 -0
- package/dist/icons/solid/solid-thumbsdown-icon.d.ts +1 -0
- package/dist/icons/solid/solid-thumbsup-icon.d.ts +1 -0
- package/dist/icons/solid/solid-tiktok-icon.d.ts +1 -0
- package/dist/icons/solid/solid-youtube-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-3d-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-3dview-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-add-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-arkit-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-arrowdown-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-arrowleft-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-arrowleft-icon.js +7 -0
- package/dist/icons/stroke/stroke-arrowright-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-arrowright-icon.js +7 -0
- package/dist/icons/stroke/stroke-arrowup-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-categories-icon.js +7 -0
- package/dist/icons/stroke/stroke-checkmark-icon.js +7 -0
- package/dist/icons/stroke/stroke-closebox-icon.js +7 -0
- package/dist/icons/stroke/stroke-dashboard-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-dehashed-icon.js +7 -0
- package/dist/icons/stroke/stroke-download-icon.js +7 -0
- package/dist/icons/stroke/stroke-edit-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-efficiency-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-event-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-event-icon.js +7 -0
- package/dist/icons/stroke/stroke-facebook-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-fallback-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-favorite-icon.js +7 -0
- package/dist/icons/stroke/stroke-filter-icon.js +7 -0
- package/dist/icons/stroke/stroke-folder-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-happy-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-hashed-icon.js +7 -0
- package/dist/icons/stroke/stroke-information-icon.js +7 -0
- package/dist/icons/stroke/stroke-innovate-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-instagram-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-link-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-linkedin-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-logout-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-mail-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-minus-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-minus-icon.js +7 -0
- package/dist/icons/stroke/stroke-modular-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-neutral-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-news-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-notice-icon.js +7 -0
- package/dist/icons/stroke/stroke-package-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-payment-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-plus-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-plus-icon.js +7 -0
- package/dist/icons/stroke/stroke-proactive-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-productivity-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-recent-icon.js +7 -0
- package/dist/icons/stroke/stroke-remove-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-sad-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-sale-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-salecategory-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-search-icon.js +7 -0
- package/dist/icons/stroke/stroke-stories-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-style-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-support-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-teamplayer-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-thumbsdown-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-thumbsup-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-tiktok-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-trash-icon.js +7 -0
- package/dist/icons/stroke/stroke-warranty10y-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-warranty1y-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-warranty3y-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-warranty5y-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-warrantyconsumable-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-warrantylifetime-icon.d.ts +1 -0
- package/dist/icons/stroke/stroke-youtube-icon.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +584 -12972
- package/dist/info-icon-tooltip/info-icon-tooltip.d.ts +11 -0
- package/dist/info-icon-tooltip/info-icon-tooltip.js +18 -0
- package/dist/info-icon-tooltip/info-icon-tooltip.module.css.js +3 -0
- package/dist/intl/formatted-date.d.ts +4 -0
- package/dist/intl/formatted-date.js +8 -0
- package/dist/intl/formatted-message.d.ts +3 -3
- package/dist/intl/formatted-message.js +30 -0
- package/dist/intl/intl-context.d.ts +13 -5
- package/dist/intl/intl-context.js +6 -0
- package/dist/intl/intl-provider.d.ts +4 -2
- package/dist/intl/intl-provider.js +35 -0
- package/dist/intl/missing-translation-provider.d.ts +6 -0
- package/dist/intl/missing-translation-provider.js +45 -0
- package/dist/intl/translation-id.d.ts +1 -1
- package/dist/intl/types.d.ts +34 -12
- package/dist/intl/types.js +33 -0
- package/dist/intl/use-country-code.d.ts +3 -0
- package/dist/intl/use-country-code.js +15 -0
- package/dist/intl/use-culture-code.d.ts +2 -1
- package/dist/intl/use-culture-code.js +15 -0
- package/dist/intl/use-currency-code.d.ts +4 -0
- package/dist/intl/use-currency-code.js +15 -0
- package/dist/intl/use-formatted-date.d.ts +6 -0
- package/dist/intl/use-formatted-date.js +20 -0
- package/dist/intl/use-formatted-message.d.ts +2 -2
- package/dist/intl/use-formatted-message.js +17 -0
- package/dist/intl/use-intl.d.ts +1 -0
- package/dist/intl/use-intl.js +12 -0
- package/dist/intl/use-language-code.js +10 -0
- package/dist/intl/utils.js +30 -0
- package/dist/{pages/page-container/page-container.d.ts → layout/center.d.ts} +1 -1
- package/dist/layout/center.js +10 -0
- package/dist/layout/center.module.css.js +3 -0
- package/dist/lists/download-document-list/download-document-list.js +14 -0
- package/dist/lists/download-document-list/download-document-list.module.css.js +3 -0
- package/dist/lists/feature-list/feature-list.js +26 -0
- package/dist/lists/feature-list/feature-list.module.css.js +3 -0
- package/dist/lists/icon-list/icon-list.d.ts +11 -0
- package/dist/lists/icon-list/icon-list.js +13 -0
- package/dist/lists/icon-list/icon-list.module.css.js +3 -0
- package/dist/lists/menu-list/menu-list-back-button.d.ts +8 -0
- package/dist/lists/menu-list/menu-list-back-button.js +10 -0
- package/dist/lists/menu-list/menu-list-header.d.ts +8 -0
- package/dist/lists/menu-list/menu-list-header.js +11 -0
- package/dist/lists/menu-list/menu-list-item.d.ts +16 -0
- package/dist/lists/menu-list/menu-list-item.js +17 -0
- package/dist/lists/menu-list/menu-list-provider.d.ts +11 -0
- package/dist/lists/menu-list/menu-list-provider.js +30 -0
- package/dist/lists/menu-list/menu-list.d.ts +20 -0
- package/dist/lists/menu-list/menu-list.js +15 -0
- package/dist/lists/menu-list/menu-list.module.css.js +3 -0
- package/dist/lists/menu-list/use-menu-list-item.d.ts +5 -0
- package/dist/lists/menu-list/use-menu-list-item.js +13 -0
- package/dist/lists/menu-list/use-menu-list.d.ts +1 -0
- package/dist/lists/menu-list/use-menu-list.js +12 -0
- package/dist/lists/orderline-list/orderline-list.d.ts +1 -1
- package/dist/lists/orderline-list/orderline-list.js +32 -0
- package/dist/lists/orderline-list/orderline-list.module.css.js +3 -0
- package/dist/lists/product-overview-grid/product-overview-grid.js +15 -0
- package/dist/lists/product-overview-grid/product-overview-grid.module.css.js +3 -0
- package/dist/lists/widget-grid/widget-grid.d.ts +5 -0
- package/dist/lists/widget-grid/widget-grid.js +9 -0
- package/dist/lists/widget-grid/widget-grid.module.css.js +3 -0
- package/dist/lists/widget-grid/widget.d.ts +6 -0
- package/dist/lists/widget-grid/widget.js +10 -0
- package/dist/loading/blank-page-spacer.js +9 -0
- package/dist/loading/blank-page-spacer.module.css.js +3 -0
- package/dist/loading/dynamic-loading-overlay.d.ts +5 -0
- package/dist/loading/dynamic-loading-overlay.js +33 -0
- package/dist/loading/dynamic-loading-overlay.module.css.js +3 -0
- package/dist/loading/loading-overlay.js +10 -0
- package/dist/loading/loading-overlay.module.css.js +3 -0
- package/dist/loading/progress-circle.d.ts +3 -1
- package/dist/loading/progress-circle.js +10 -0
- package/dist/loading/progress-circle.module.css.js +3 -0
- package/dist/logging/logger.d.ts +11 -0
- package/dist/logging/logger.js +22 -0
- package/dist/logging/use-log-error.d.ts +1 -0
- package/dist/logging/use-log-error.js +13 -0
- package/dist/media/image/image.d.ts +3 -2
- package/dist/media/image/image.js +63 -0
- package/dist/media/image/image.module.css.js +3 -0
- package/dist/media/image-grid/images-grid.d.ts +2 -1
- package/dist/media/image-grid/images-grid.js +32 -0
- package/dist/media/image-grid/images-grid.module.css.js +3 -0
- package/dist/media/image-lightbox/image-lightbox.d.ts +2 -1
- package/dist/media/image-lightbox/image-lightbox.js +49 -0
- package/dist/media/image-lightbox/image-lightbox.module.css.js +3 -0
- package/dist/media/zoom-image/zoom-image.d.ts +1 -1
- package/dist/media/zoom-image/zoom-image.js +39 -0
- package/dist/media/zoom-image/zoom-image.module.css.js +3 -0
- package/dist/message/message.d.ts +7 -0
- package/dist/message/message.js +17 -0
- package/dist/message/message.module.css.js +3 -0
- package/dist/modals/confirmation/confirmation-dialog.d.ts +5 -3
- package/dist/modals/confirmation/confirmation-dialog.js +12 -0
- package/dist/modals/confirmation/confirmation-dialog.module.css.js +3 -0
- package/dist/modals/dialog/dialog.d.ts +12 -6
- package/dist/modals/dialog/dialog.js +36 -0
- package/dist/modals/dialog/dialog.module.css.js +3 -0
- package/dist/modals/favorite/add-to-favorite-dialog.d.ts +1 -1
- package/dist/modals/favorite/add-to-favorite-dialog.js +60 -0
- package/dist/modals/favorite/add-to-favorite-dialog.module.css.js +3 -0
- package/dist/modals/modal/modal.d.ts +1 -1
- package/dist/modals/modal/modal.js +17 -0
- package/dist/modals/modal/modal.module.css.js +3 -0
- package/dist/modals/recover-password/recover-password-dialog.d.ts +6 -0
- package/dist/modals/recover-password/recover-password-dialog.js +35 -0
- package/dist/modals/signin/sign-in-dialog.js +21 -0
- package/dist/navigation/mobile-navigation/mobile-navigation.d.ts +8 -0
- package/dist/navigation/mobile-navigation/mobile-navigation.js +24 -0
- package/dist/navigation/mobile-navigation/mobile-navigation.module.css.js +3 -0
- package/dist/navigation/panel-navigation/panel-navigation.d.ts +15 -0
- package/dist/navigation/panel-navigation/panel-navigation.js +66 -0
- package/dist/navigation/panel-navigation/panel-navigation.module.css.js +3 -0
- package/dist/navigation/quick-access-menu/quick-access-menu.d.ts +9 -0
- package/dist/navigation/quick-access-menu/quick-access-menu.js +24 -0
- package/dist/navigation/quick-access-menu/quick-access-menu.module.css.js +3 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-core@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-core/dist/esm/checkOptions.js +7 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-core@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-core/dist/esm/createAutocomplete.js +109 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-core@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-core/dist/esm/createStore.js +31 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-core@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-core/dist/esm/getAutocompleteSetters.js +51 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-core@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-core/dist/esm/getCompletion.js +12 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-core@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-core/dist/esm/getDefaultProps.js +135 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-core@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-core/dist/esm/getPropGetters.js +355 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-core@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-core/dist/esm/metadata.js +44 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-core@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-core/dist/esm/onInput.js +148 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-core@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-core/dist/esm/onKeyDown.js +202 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-core@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-core/dist/esm/reshape.js +48 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-core@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-core/dist/esm/resolve.js +119 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-core@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-core/dist/esm/stateReducer.js +149 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-core@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-core/dist/esm/utils/createCancelablePromise.js +50 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-core@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-core/dist/esm/utils/createCancelablePromiseList.js +42 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-core@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-core/dist/esm/utils/createConcurrentSafePromise.js +38 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-core@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-core/dist/esm/utils/getActiveItem.js +79 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-core@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-core/dist/esm/utils/getAutocompleteElementId.js +12 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-core@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-core/dist/esm/utils/getNativeEvent.js +5 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-core@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-core/dist/esm/utils/getNextActiveItemId.js +31 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-core@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-core/dist/esm/utils/getNormalizedSources.js +53 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-core@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-core/dist/esm/utils/getPluginSubmitPromise.js +39 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-core@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-core/dist/esm/utils/isOrContainsNode.js +5 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-core@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-core/dist/esm/utils/isSamsung.js +6 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-core@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-core/dist/esm/utils/mapToAlgoliaResponse.js +25 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-js@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-js/dist/esm/requesters/createAlgoliaRequester.js +16 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-js@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-js/dist/esm/requesters/getAlgoliaResults.js +12 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-js@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0_search-insights@2.17.3/node_modules/@algolia/autocomplete-js/dist/esm/userAgents.js +8 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-plugin-algolia-insights@1.19.2_@algolia_client-search@4.24.0_algo_a07b7691870c05b2461c74a9a00d6a70/node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/esm/createAlgoliaInsightsPlugin.js +252 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-plugin-algolia-insights@1.19.2_@algolia_client-search@4.24.0_algo_a07b7691870c05b2461c74a9a00d6a70/node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/esm/createClickedEvent.js +16 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-plugin-algolia-insights@1.19.2_@algolia_client-search@4.24.0_algo_a07b7691870c05b2461c74a9a00d6a70/node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/esm/createSearchInsightsApi.js +209 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-plugin-algolia-insights@1.19.2_@algolia_client-search@4.24.0_algo_a07b7691870c05b2461c74a9a00d6a70/node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/esm/createViewedEvents.js +18 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-plugin-algolia-insights@1.19.2_@algolia_client-search@4.24.0_algo_a07b7691870c05b2461c74a9a00d6a70/node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/esm/isAlgoliaInsightsHit.js +5 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-plugin-algolia-insights@1.19.2_@algolia_client-search@4.24.0_algo_a07b7691870c05b2461c74a9a00d6a70/node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/esm/isModernInsightsClient.js +25 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-plugin-query-suggestions@1.19.2_@algolia_client-search@4.24.0_alg_bf126b808dc57984d528cd690af7915e/node_modules/@algolia/autocomplete-plugin-query-suggestions/dist/esm/constants.js +7 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-plugin-query-suggestions@1.19.2_@algolia_client-search@4.24.0_alg_bf126b808dc57984d528cd690af7915e/node_modules/@algolia/autocomplete-plugin-query-suggestions/dist/esm/createQuerySuggestionsPlugin.js +118 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-plugin-query-suggestions@1.19.2_@algolia_client-search@4.24.0_alg_bf126b808dc57984d528cd690af7915e/node_modules/@algolia/autocomplete-plugin-query-suggestions/dist/esm/getTemplates.js +64 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-plugin-recent-searches@1.19.2_@algolia_client-search@4.24.0_algol_ca60faa7de036e25f1f4aff1b32494ae/node_modules/@algolia/autocomplete-plugin-recent-searches/dist/esm/addHighlightedAttribute.js +21 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-plugin-recent-searches@1.19.2_@algolia_client-search@4.24.0_algol_ca60faa7de036e25f1f4aff1b32494ae/node_modules/@algolia/autocomplete-plugin-recent-searches/dist/esm/constants.js +10 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-plugin-recent-searches@1.19.2_@algolia_client-search@4.24.0_algol_ca60faa7de036e25f1f4aff1b32494ae/node_modules/@algolia/autocomplete-plugin-recent-searches/dist/esm/createLocalStorage.js +36 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-plugin-recent-searches@1.19.2_@algolia_client-search@4.24.0_algol_ca60faa7de036e25f1f4aff1b32494ae/node_modules/@algolia/autocomplete-plugin-recent-searches/dist/esm/createLocalStorageRecentSearchesPlugin.js +49 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-plugin-recent-searches@1.19.2_@algolia_client-search@4.24.0_algol_ca60faa7de036e25f1f4aff1b32494ae/node_modules/@algolia/autocomplete-plugin-recent-searches/dist/esm/createRecentSearchesPlugin.js +137 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-plugin-recent-searches@1.19.2_@algolia_client-search@4.24.0_algol_ca60faa7de036e25f1f4aff1b32494ae/node_modules/@algolia/autocomplete-plugin-recent-searches/dist/esm/createStorageApi.js +16 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-plugin-recent-searches@1.19.2_@algolia_client-search@4.24.0_algol_ca60faa7de036e25f1f4aff1b32494ae/node_modules/@algolia/autocomplete-plugin-recent-searches/dist/esm/getLocalStorage.js +33 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-plugin-recent-searches@1.19.2_@algolia_client-search@4.24.0_algol_ca60faa7de036e25f1f4aff1b32494ae/node_modules/@algolia/autocomplete-plugin-recent-searches/dist/esm/getTemplates.js +72 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-plugin-recent-searches@1.19.2_@algolia_client-search@4.24.0_algol_ca60faa7de036e25f1f4aff1b32494ae/node_modules/@algolia/autocomplete-plugin-recent-searches/dist/esm/search.js +25 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-preset-algolia@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0/node_modules/@algolia/autocomplete-preset-algolia/dist/esm/constants/index.js +4 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-preset-algolia@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0/node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/parseAlgoliaHitHighlight.js +25 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-preset-algolia@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0/node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/parseAttribute.js +51 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-preset-algolia@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0/node_modules/@algolia/autocomplete-preset-algolia/dist/esm/requester/createAlgoliaRequester.js +6 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-preset-algolia@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0/node_modules/@algolia/autocomplete-preset-algolia/dist/esm/requester/createRequester.js +37 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-preset-algolia@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0/node_modules/@algolia/autocomplete-preset-algolia/dist/esm/requester/getAlgoliaResults.js +19 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-preset-algolia@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0/node_modules/@algolia/autocomplete-preset-algolia/dist/esm/search/fetchAlgoliaResults.js +69 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-preset-algolia@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0/node_modules/@algolia/autocomplete-preset-algolia/dist/esm/utils/getAppIdAndApiKey.js +16 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-shared@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0/node_modules/@algolia/autocomplete-shared/dist/esm/createRef.js +7 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-shared@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0/node_modules/@algolia/autocomplete-shared/dist/esm/debounce.js +16 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-shared@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0/node_modules/@algolia/autocomplete-shared/dist/esm/decycle.js +34 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-shared@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0/node_modules/@algolia/autocomplete-shared/dist/esm/flatten.js +7 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-shared@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0/node_modules/@algolia/autocomplete-shared/dist/esm/generateAutocompleteId.js +6 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-shared@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0/node_modules/@algolia/autocomplete-shared/dist/esm/getAttributeValueByPath.js +7 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-shared@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0/node_modules/@algolia/autocomplete-shared/dist/esm/getItemsCount.js +10 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-shared@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0/node_modules/@algolia/autocomplete-shared/dist/esm/invariant.js +15 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-shared@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0/node_modules/@algolia/autocomplete-shared/dist/esm/isEqual.js +26 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-shared@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0/node_modules/@algolia/autocomplete-shared/dist/esm/noop.js +3 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-shared@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0/node_modules/@algolia/autocomplete-shared/dist/esm/safelyRunOnBrowser.js +13 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-shared@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0/node_modules/@algolia/autocomplete-shared/dist/esm/userAgents.js +8 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-shared@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0/node_modules/@algolia/autocomplete-shared/dist/esm/version.js +3 -0
- package/dist/node_modules/.pnpm/@algolia_autocomplete-shared@1.19.2_@algolia_client-search@4.24.0_algoliasearch@4.24.0/node_modules/@algolia/autocomplete-shared/dist/esm/warn.js +26 -0
- package/dist/node_modules/.pnpm/instantsearch.js@4.79.2_algoliasearch@4.24.0/node_modules/instantsearch.js/es/lib/routers/history.js +341 -0
- package/dist/node_modules/.pnpm/instantsearch.js@4.79.2_algoliasearch@4.24.0/node_modules/instantsearch.js/es/lib/stateMappings/simple.js +36 -0
- package/dist/node_modules/.pnpm/instantsearch.js@4.79.2_algoliasearch@4.24.0/node_modules/instantsearch.js/es/lib/utils/documentation.js +8 -0
- package/dist/node_modules/.pnpm/instantsearch.js@4.79.2_algoliasearch@4.24.0/node_modules/instantsearch.js/es/lib/utils/logger.js +32 -0
- package/dist/node_modules/.pnpm/instantsearch.js@4.79.2_algoliasearch@4.24.0/node_modules/instantsearch.js/es/lib/utils/noop.js +3 -0
- package/dist/node_modules/.pnpm/instantsearch.js@4.79.2_algoliasearch@4.24.0/node_modules/instantsearch.js/es/lib/utils/safelyRunOnBrowser.js +24 -0
- package/dist/node_modules/.pnpm/qs@6.9.7/node_modules/qs/lib/formats.js +33 -0
- package/dist/node_modules/.pnpm/qs@6.9.7/node_modules/qs/lib/index.js +25 -0
- package/dist/node_modules/.pnpm/qs@6.9.7/node_modules/qs/lib/parse.js +269 -0
- package/dist/node_modules/.pnpm/qs@6.9.7/node_modules/qs/lib/stringify.js +300 -0
- package/dist/node_modules/.pnpm/qs@6.9.7/node_modules/qs/lib/utils.js +264 -0
- package/dist/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/free-mode.js +237 -0
- package/dist/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/navigation.js +200 -0
- package/dist/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/thumbs.js +197 -0
- package/dist/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/shared/create-element-if-not-defined.js +21 -0
- package/dist/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/shared/ssr-window.esm.js +146 -0
- package/dist/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/shared/swiper-core.js +3951 -0
- package/dist/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/shared/update-on-virtual-data.js +131 -0
- package/dist/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/shared/update-swiper.js +232 -0
- package/dist/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/shared/utils.js +315 -0
- package/dist/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/swiper-react.js +389 -0
- package/dist/notifications/announcements/announcement-list.d.ts +7 -0
- package/dist/notifications/announcements/announcement-list.js +30 -0
- package/dist/notifications/announcements/announcement-list.module.css.js +3 -0
- package/dist/notifications/announcements/announcement.d.ts +2 -1
- package/dist/notifications/announcements/announcement.js +28 -0
- package/dist/notifications/announcements/announcement.module.css.js +3 -0
- package/dist/notifications/announcements/connected-announcement-list.d.ts +3 -0
- package/dist/notifications/announcements/connected-announcement-list.js +22 -0
- package/dist/notifications/announcements/use-filter-announcements.d.ts +2 -0
- package/dist/notifications/announcements/use-filter-announcements.js +35 -0
- package/dist/observers/intersection-observer.d.ts +9 -1
- package/dist/observers/intersection-observer.js +22 -0
- package/dist/pages/account/change-password-page/change-password-page.d.ts +6 -0
- package/dist/pages/account/change-password-page/change-password-page.js +57 -0
- package/dist/pages/account/components/change-password-form/change-password-form.d.ts +16 -0
- package/dist/pages/account/components/change-password-form/change-password-form.js +49 -0
- package/dist/pages/account/components/create-account-form/create-account-form.d.ts +11 -0
- package/dist/pages/account/components/create-account-form/create-account-form.js +75 -0
- package/dist/pages/account/components/create-account-form/create-account-form.module.css.js +3 -0
- package/dist/pages/account/components/sign-in-form/sign-in-form.d.ts +28 -0
- package/dist/pages/account/components/sign-in-form/sign-in-form.js +77 -0
- package/dist/pages/account/components/sign-in-form/sign-in-form.module.css.js +3 -0
- package/dist/pages/account/create-account-page/create-account-page.d.ts +3 -0
- package/dist/pages/account/create-account-page/create-account-page.js +51 -0
- package/dist/pages/account/layouts/sign-in-page-layout/sign-in-page-background-image.d.ts +6 -0
- package/dist/pages/account/layouts/sign-in-page-layout/sign-in-page-background-image.js +9 -0
- package/dist/pages/account/layouts/sign-in-page-layout/sign-in-page-layout.d.ts +9 -0
- package/dist/pages/account/layouts/sign-in-page-layout/sign-in-page-layout.js +12 -0
- package/dist/pages/account/layouts/sign-in-page-layout/sign-in-page-layout.module.css.js +3 -0
- package/dist/pages/account/sign-in-page/sign-in-page.d.ts +3 -0
- package/dist/pages/account/sign-in-page/sign-in-page.js +103 -0
- package/dist/pages/checkout/cart-page/cart-page.js +133 -0
- package/dist/pages/checkout/cart-page/components/empty-cart-page.d.ts +1 -0
- package/dist/pages/checkout/cart-page/components/empty-cart-page.js +12 -0
- package/dist/pages/checkout/components/billing-and-invoice-information.d.ts +7 -0
- package/dist/pages/checkout/components/billing-and-invoice-information.js +13 -0
- package/dist/pages/checkout/components/billing-and-invoice-information.module.css.js +3 -0
- package/dist/pages/{layouts → checkout/layouts}/checkout-page-layout/checkout-page-layout.d.ts +1 -1
- package/dist/pages/checkout/layouts/checkout-page-layout/checkout-page-layout.js +34 -0
- package/dist/pages/checkout/layouts/checkout-page-layout/checkout-page-layout.module.css.js +3 -0
- package/dist/pages/checkout/layouts/checkout-page-layout/components/checkout-page-section-content.d.ts +7 -0
- package/dist/pages/checkout/layouts/checkout-page-layout/components/checkout-page-section-content.js +10 -0
- package/dist/pages/checkout/layouts/checkout-page-layout/components/checkout-page-section-header.d.ts +8 -0
- package/dist/pages/checkout/layouts/checkout-page-layout/components/checkout-page-section-header.js +10 -0
- package/dist/pages/checkout/layouts/checkout-page-layout/components/checkout-page-section-link.d.ts +4 -0
- package/dist/pages/checkout/layouts/checkout-page-layout/components/checkout-page-section-link.js +9 -0
- package/dist/pages/checkout/layouts/checkout-page-layout/components/checkout-page-section.d.ts +7 -0
- package/dist/pages/checkout/layouts/checkout-page-layout/components/checkout-page-section.js +11 -0
- package/dist/pages/checkout/layouts/checkout-page-layout/components/checkout-page-section.module.css.js +3 -0
- package/dist/pages/checkout/order-confirmation-page/order-confirmation-page-content.d.ts +5 -0
- package/dist/pages/checkout/order-confirmation-page/order-confirmation-page-content.js +110 -0
- package/dist/pages/checkout/order-confirmation-page/order-confirmation-page.d.ts +4 -0
- package/dist/pages/checkout/order-confirmation-page/order-confirmation-page.js +30 -0
- package/dist/pages/checkout/order-confirmation-page/order-confirmation-page.module.css.js +3 -0
- package/dist/pages/checkout/payment-page/components/adyen-payment.d.ts +31 -0
- package/dist/pages/checkout/payment-page/components/adyen-payment.js +217 -0
- package/dist/pages/checkout/payment-page/components/adyen-payment.module.css.js +3 -0
- package/dist/pages/checkout/payment-page/components/payment.d.ts +14 -0
- package/dist/pages/checkout/payment-page/components/payment.js +280 -0
- package/dist/pages/checkout/payment-page/components/payment.module.css.js +3 -0
- package/dist/pages/checkout/payment-page/hooks/use-get-adyen-redirect-result.d.ts +1 -0
- package/dist/pages/checkout/payment-page/hooks/use-get-adyen-redirect-result.js +14 -0
- package/dist/pages/checkout/payment-page/hooks/use-has-returned-from-adyen.d.ts +1 -0
- package/dist/pages/checkout/payment-page/hooks/use-has-returned-from-adyen.js +9 -0
- package/dist/pages/checkout/payment-page/payment-page-content.d.ts +13 -0
- package/dist/pages/checkout/payment-page/payment-page-content.js +51 -0
- package/dist/pages/checkout/payment-page/payment-page.d.ts +3 -0
- package/dist/pages/checkout/payment-page/payment-page.js +64 -0
- package/dist/pages/checkout/payment-page/utils/parse-amount.d.ts +3 -0
- package/dist/pages/checkout/payment-page/utils/parse-amount.js +10 -0
- package/dist/pages/checkout/shipping-page/components/address-book-selector.d.ts +6 -0
- package/dist/pages/checkout/shipping-page/components/address-book-selector.js +81 -0
- package/dist/pages/checkout/shipping-page/components/address-book-selector.module.css.js +3 -0
- package/dist/pages/checkout/shipping-page/components/currency-change-dialog.d.ts +6 -0
- package/dist/pages/checkout/shipping-page/components/currency-change-dialog.js +15 -0
- package/dist/pages/checkout/shipping-page/components/edit-checkout-bill-to-address-form.d.ts +16 -0
- package/dist/pages/checkout/shipping-page/components/edit-checkout-bill-to-address-form.js +49 -0
- package/dist/pages/checkout/shipping-page/components/edit-checkout-bill-to-address-form.module.css.js +3 -0
- package/dist/pages/checkout/shipping-page/components/readonly-address.d.ts +17 -0
- package/dist/pages/checkout/shipping-page/components/readonly-address.js +130 -0
- package/dist/pages/checkout/shipping-page/components/readonly-address.module.css.js +3 -0
- package/dist/pages/checkout/shipping-page/components/ship-to-mode-selector.d.ts +8 -0
- package/dist/pages/checkout/shipping-page/components/ship-to-mode-selector.js +25 -0
- package/dist/pages/checkout/shipping-page/components/sonic-address.d.ts +1 -0
- package/dist/pages/checkout/shipping-page/components/sonic-address.js +15 -0
- package/dist/pages/checkout/shipping-page/components/sonic-address.module.css.js +3 -0
- package/dist/pages/checkout/shipping-page/hooks/use-patch-shipping-details.d.ts +22 -0
- package/dist/pages/checkout/shipping-page/hooks/use-patch-shipping-details.js +60 -0
- package/dist/pages/checkout/shipping-page/shipping-page-content.d.ts +15 -0
- package/dist/pages/checkout/shipping-page/shipping-page-content.js +43 -0
- package/dist/pages/checkout/shipping-page/shipping-page.d.ts +1 -0
- package/dist/pages/checkout/shipping-page/shipping-page.js +190 -0
- package/dist/pages/checkout/shipping-page/shipping-page.module.css.js +3 -0
- package/dist/pages/components/page/page.d.ts +13 -0
- package/dist/pages/components/page/page.js +15 -0
- package/dist/pages/components/page-container/page-container.d.ts +10 -0
- package/dist/pages/components/page-container/page-container.js +11 -0
- package/dist/pages/components/page-container/page-container.module.css.js +3 -0
- package/dist/pages/components/page-meta-data/page-meta-data.d.ts +15 -0
- package/dist/pages/components/page-meta-data/page-meta-data.js +100 -0
- package/dist/pages/countries-page/countries-page.d.ts +1 -0
- package/dist/pages/countries-page/countries-page.js +18 -0
- package/dist/pages/error-page/error-page.d.ts +2 -1
- package/dist/pages/error-page/error-page.js +20 -0
- package/dist/pages/loading-page/loading-page.js +10 -0
- package/dist/pages/my-sonic/actions/change-customer/change-customer-dialog.d.ts +16 -0
- package/dist/pages/my-sonic/actions/change-customer/change-customer-dialog.js +30 -0
- package/dist/pages/my-sonic/actions/change-customer/change-customer-dialog.module.css.js +3 -0
- package/dist/pages/my-sonic/actions/change-customer/change-customer.d.ts +16 -0
- package/dist/pages/my-sonic/actions/change-customer/change-customer.js +76 -0
- package/dist/pages/my-sonic/actions/change-customer/change-customer.module.css.js +3 -0
- package/dist/pages/my-sonic/actions/change-customer/connected-change-customer-dialog.d.ts +7 -0
- package/dist/pages/my-sonic/actions/change-customer/connected-change-customer-dialog.js +50 -0
- package/dist/pages/my-sonic/actions/change-password/change-password-dialog.d.ts +12 -0
- package/dist/pages/my-sonic/actions/change-password/change-password-dialog.js +25 -0
- package/dist/pages/my-sonic/actions/change-password/change-password-dialog.module.css.js +3 -0
- package/dist/pages/my-sonic/actions/change-password/change-password.d.ts +8 -0
- package/dist/pages/my-sonic/actions/change-password/change-password.js +28 -0
- package/dist/pages/my-sonic/actions/change-password/change-password.module.css.js +3 -0
- package/dist/pages/my-sonic/actions/change-password/connected-change-password-dialog.d.ts +5 -0
- package/dist/pages/my-sonic/actions/change-password/connected-change-password-dialog.js +39 -0
- package/dist/pages/my-sonic/actions/create-ship-to-address/connected-create-ship-to-address-form.d.ts +5 -0
- package/dist/pages/my-sonic/actions/create-ship-to-address/connected-create-ship-to-address-form.js +89 -0
- package/dist/pages/my-sonic/actions/create-ship-to-address/create-ship-to-address.module.css.js +3 -0
- package/dist/pages/my-sonic/actions/edit-bill-to-address/connected-edit-bill-to-address-form.d.ts +4 -0
- package/dist/pages/my-sonic/actions/edit-bill-to-address/connected-edit-bill-to-address-form.js +94 -0
- package/dist/pages/my-sonic/actions/edit-bill-to-address/edit-bill-to-address.module.css.js +3 -0
- package/dist/pages/my-sonic/actions/edit-ship-to-address/connected-edit-ship-to-address-form.d.ts +5 -0
- package/dist/pages/my-sonic/actions/edit-ship-to-address/connected-edit-ship-to-address-form.js +126 -0
- package/dist/pages/my-sonic/actions/edit-ship-to-address/edit-ship-to-address.module.css.js +3 -0
- package/dist/pages/my-sonic/actions/edit-user-info/connected-edit-user-info-dialog.d.ts +5 -0
- package/dist/pages/my-sonic/actions/edit-user-info/connected-edit-user-info-dialog.js +56 -0
- package/dist/pages/my-sonic/actions/edit-user-info/edit-user-info-dialog.d.ts +10 -0
- package/dist/pages/my-sonic/actions/edit-user-info/edit-user-info-dialog.js +15 -0
- package/dist/pages/my-sonic/actions/edit-user-info/edit-user-info.d.ts +11 -0
- package/dist/pages/my-sonic/actions/edit-user-info/edit-user-info.js +29 -0
- package/dist/pages/my-sonic/actions/edit-user-info/edit-user-info.module.css.js +3 -0
- package/dist/pages/my-sonic/actions/upload-order/upload-order-form.d.ts +1 -0
- package/dist/pages/my-sonic/actions/upload-order/upload-order-form.js +19 -0
- package/dist/pages/my-sonic/actions/upload-order/upload-order-instructions.d.ts +3 -0
- package/dist/pages/my-sonic/actions/upload-order/upload-order-instructions.js +13 -0
- package/dist/pages/my-sonic/actions/upload-order/upload-order.d.ts +3 -0
- package/dist/pages/my-sonic/actions/upload-order/upload-order.js +12 -0
- package/dist/pages/my-sonic/actions/upload-order/upload-order.module.css.js +3 -0
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-aside.d.ts +4 -0
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-aside.js +9 -0
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-breadcrumb.d.ts +4 -0
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-breadcrumb.js +9 -0
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-main.d.ts +4 -0
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-main.js +9 -0
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-page.d.ts +5 -0
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-page.js +10 -0
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-pre-aside.d.ts +4 -0
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-pre-aside.js +9 -0
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-title.d.ts +4 -0
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-title.js +10 -0
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout.d.ts +5 -0
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout.js +10 -0
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout.module.css.js +3 -0
- package/dist/pages/my-sonic/navigation/connected-my-sonic-navigation.d.ts +1 -0
- package/dist/pages/my-sonic/navigation/connected-my-sonic-navigation.js +15 -0
- package/dist/pages/my-sonic/navigation/connected-my-sonic-navigation.module.css.js +3 -0
- package/dist/pages/my-sonic/navigation/my-sonic-desktop-navigation.d.ts +7 -0
- package/dist/pages/my-sonic/navigation/my-sonic-desktop-navigation.js +24 -0
- package/dist/pages/my-sonic/navigation/my-sonic-desktop-navigation.module.css.js +3 -0
- package/dist/pages/my-sonic/navigation/my-sonic-mobile-navigation.d.ts +5 -0
- package/dist/pages/my-sonic/navigation/my-sonic-mobile-navigation.js +26 -0
- package/dist/pages/my-sonic/navigation/my-sonic-navigation-items.d.ts +21 -0
- package/dist/pages/my-sonic/navigation/my-sonic-navigation-items.js +45 -0
- package/dist/pages/my-sonic/pages/create-ship-to-address-details-page/create-ship-to-address-details-page.d.ts +8 -0
- package/dist/pages/my-sonic/pages/create-ship-to-address-details-page/create-ship-to-address-details-page.js +29 -0
- package/dist/pages/my-sonic/pages/edit-bill-to-address-details-page/edit-bill-to-address-details-page.d.ts +7 -0
- package/dist/pages/my-sonic/pages/edit-bill-to-address-details-page/edit-bill-to-address-details-page.js +29 -0
- package/dist/pages/my-sonic/pages/edit-ship-to-address-details-page/edit-ship-to-address-details-page.d.ts +9 -0
- package/dist/pages/my-sonic/pages/edit-ship-to-address-details-page/edit-ship-to-address-details-page.js +29 -0
- package/dist/pages/my-sonic/pages/favorites/favorites-page.d.ts +2 -0
- package/dist/pages/my-sonic/pages/favorites/favorites-page.js +48 -0
- package/dist/pages/my-sonic/pages/my-account/my-account-page.d.ts +2 -0
- package/dist/pages/my-sonic/pages/my-account/my-account-page.js +30 -0
- package/dist/pages/my-sonic/pages/order-details/order-details-content.d.ts +10 -0
- package/dist/pages/my-sonic/pages/order-details/order-details-content.js +70 -0
- package/dist/pages/my-sonic/pages/order-details/order-details-content.module.css.js +3 -0
- package/dist/pages/my-sonic/pages/order-details/order-details-page.d.ts +8 -0
- package/dist/pages/my-sonic/pages/order-details/order-details-page.js +42 -0
- package/dist/pages/my-sonic/pages/order-history/order-history-page.d.ts +2 -0
- package/dist/pages/my-sonic/pages/order-history/order-history-page.js +193 -0
- package/dist/pages/my-sonic/pages/order-history/order-history-page.module.css.js +3 -0
- package/dist/pages/my-sonic/pages/upload-order-page/upload-order-page.d.ts +4 -0
- package/dist/pages/my-sonic/pages/upload-order-page/upload-order-page.js +24 -0
- package/dist/pages/my-sonic/widgets/components/address-data-card.d.ts +23 -0
- package/dist/pages/my-sonic/widgets/components/address-data-card.js +43 -0
- package/dist/pages/my-sonic/widgets/connected-address-book-widget.d.ts +1 -0
- package/dist/pages/my-sonic/widgets/connected-address-book-widget.js +174 -0
- package/dist/pages/my-sonic/widgets/connected-address-book-widget.module.css.js +3 -0
- package/dist/pages/my-sonic/widgets/connected-bill-to-address-widget.d.ts +3 -0
- package/dist/pages/my-sonic/widgets/connected-bill-to-address-widget.js +34 -0
- package/dist/pages/my-sonic/widgets/connected-customer-information-widget.d.ts +1 -0
- package/dist/pages/my-sonic/widgets/connected-customer-information-widget.js +57 -0
- package/dist/pages/my-sonic/widgets/connected-ship-to-address-widget.d.ts +4 -0
- package/dist/pages/my-sonic/widgets/connected-ship-to-address-widget.js +39 -0
- package/dist/pages/my-sonic/widgets/connected-user-account-widget.d.ts +1 -0
- package/dist/pages/my-sonic/widgets/connected-user-account-widget.js +44 -0
- package/dist/pages/product/components/product-overview.d.ts +10 -0
- package/dist/pages/product/components/product-overview.js +20 -0
- package/dist/pages/{layouts → product/layouts}/product-details-page-layout/product-details-page-layout.d.ts +2 -2
- package/dist/pages/product/layouts/product-details-page-layout/product-details-page-layout.js +10 -0
- package/dist/pages/product/layouts/product-details-page-layout/product-details-page-layout.module.css.js +3 -0
- package/dist/pages/{product-details-page → product/product-details-page}/components/product-details-images/product-detail-images.d.ts +1 -1
- package/dist/pages/product/product-details-page/components/product-details-images/product-detail-images.js +33 -0
- package/dist/pages/product/product-details-page/components/product-details-images/product-detail-images.module.css.js +3 -0
- package/dist/pages/product/product-details-page/components/product-details-panel/product-details-panel.d.ts +5 -0
- package/dist/pages/product/product-details-page/components/product-details-panel/product-details-panel.js +48 -0
- package/dist/pages/product/product-details-page/components/product-details-panel/product-details-panel.module.css.js +3 -0
- package/dist/pages/product/product-details-page/components/product-details-recently-viewed-section/product-details-recently-viewed-section.d.ts +1 -0
- package/dist/pages/product/product-details-page/components/product-details-recently-viewed-section/product-details-recently-viewed-section.js +25 -0
- package/dist/pages/product/product-details-page/components/product-details-recently-viewed-section/product-details-recently-viewed-section.module.css.js +3 -0
- package/dist/pages/product/product-details-page/product-details-page.js +22 -0
- package/dist/pages/product/product-details-page/product-details.d.ts +5 -0
- package/dist/pages/product/product-details-page/product-details.js +47 -0
- package/dist/pages/product/product-listing-page/no-results/no-results.js +16 -0
- package/dist/pages/product/product-listing-page/no-results/no-results.module.css.js +3 -0
- package/dist/pages/product/product-listing-page/product-listing-page-category-carousel/product-listing-page-category-carousel.js +22 -0
- package/dist/pages/{product-listing-page → product/product-listing-page}/product-listing-page-data-types.d.ts +3 -1
- package/dist/pages/product/product-listing-page/product-listing-page-provider/product-listing-page-context.js +8 -0
- package/dist/pages/product/product-listing-page/product-listing-page-provider/product-listing-page-provider.js +14 -0
- package/dist/pages/product/product-listing-page/product-listing-page.js +29 -0
- package/dist/pages/product/product-listing-page/product-listing-page.module.css.js +3 -0
- package/dist/pages/product/product-listing-page/product-listing-product-overview/product-listing-product-overview.js +32 -0
- package/dist/pages/product/product-listing-page/product-listing.d.ts +6 -0
- package/dist/pages/product/product-listing-page/product-listing.js +49 -0
- package/dist/pages/product/search-result-page/search-result-product-overview/search-result-product-overview.js +34 -0
- package/dist/pages/product/search-result-page/search-results-page-category-carousel/search-results-page-category-carousel.js +22 -0
- package/dist/pages/product/search-result-page/search-results-page.js +53 -0
- package/dist/pages/product/search-result-page/search-results-page.module.css.js +3 -0
- package/dist/promos/promo-banner/promo-banner.js +12 -0
- package/dist/promos/promo-banner/promo-banner.module.css.js +3 -0
- package/dist/promos/promo-banners/promo-banners.d.ts +6 -5
- package/dist/promos/promo-banners/promo-banners.js +17 -0
- package/dist/promos/promo-banners/promo-banners.module.css.js +3 -0
- package/dist/promos/promo-card/promo-card.d.ts +1 -1
- package/dist/promos/promo-card/promo-card.js +11 -0
- package/dist/promos/promo-card/promo-card.module.css.js +3 -0
- package/dist/shared/api/bff/hooks/cart/use-patch-cart.d.ts +11 -0
- package/dist/shared/api/bff/hooks/cart/use-patch-cart.js +20 -0
- package/dist/shared/api/bff/hooks/cart/use-place-order.d.ts +11 -0
- package/dist/shared/api/bff/hooks/cart/use-place-order.js +21 -0
- package/dist/shared/api/{storefront → bff}/hooks/cart/use-save-cart-for-later.d.ts +3 -3
- package/dist/shared/api/bff/hooks/cart/use-save-cart-for-later.js +18 -0
- package/dist/shared/api/bff/hooks/use-fetch-announcements.js +16 -0
- package/dist/shared/api/bff/hooks/use-fetch-favorites.d.ts +2 -0
- package/dist/shared/api/bff/hooks/use-fetch-favorites.js +30 -0
- package/dist/shared/api/bff/hooks/use-fetch-navigation-links.d.ts +2 -0
- package/dist/shared/api/bff/hooks/use-fetch-navigation-links.js +16 -0
- package/dist/shared/api/bff/hooks/use-fetch-product-details-page-data.js +15 -0
- package/dist/shared/api/bff/hooks/use-fetch-product-listing-page-data.js +15 -0
- package/dist/shared/api/bff/hooks/use-fetch-products-prices.d.ts +2 -0
- package/dist/shared/api/bff/hooks/use-fetch-products-prices.js +14 -0
- package/dist/shared/api/bff/hooks/use-fetch-recently-viewed-products.d.ts +4 -0
- package/dist/shared/api/bff/hooks/use-fetch-recently-viewed-products.js +16 -0
- package/dist/shared/api/bff/model/bff.model.d.ts +88 -3
- package/dist/shared/api/bff/model/bff.model.js +12 -0
- package/dist/shared/api/bff/services/bff-service.d.ts +30 -5
- package/dist/shared/api/bff/services/bff-service.js +179 -0
- package/dist/shared/api/shared/hooks/use-awaitable-mutation.d.ts +31 -0
- package/dist/shared/api/shared/hooks/use-awaitable-mutation.js +47 -0
- package/dist/shared/api/shared/types.d.ts +6 -0
- package/dist/shared/api/storefront/hooks/account/use-create-account.d.ts +3 -0
- package/dist/shared/api/storefront/hooks/account/use-create-account.js +30 -0
- package/dist/shared/api/storefront/hooks/account/use-create-guest-account.d.ts +2 -0
- package/dist/shared/api/storefront/hooks/account/use-create-guest-account.js +38 -0
- package/dist/shared/api/storefront/hooks/account/use-fetch-current-account.d.ts +3 -0
- package/dist/shared/api/storefront/hooks/account/use-fetch-current-account.js +13 -0
- package/dist/shared/api/storefront/hooks/account/use-patch-current-account.d.ts +11 -0
- package/dist/shared/api/storefront/hooks/account/use-patch-current-account.js +20 -0
- package/dist/shared/api/storefront/hooks/authentication/use-fetch-session.d.ts +1 -1
- package/dist/shared/api/storefront/hooks/authentication/use-fetch-session.js +20 -0
- package/dist/shared/api/storefront/hooks/authentication/use-invalidate-session.js +10 -0
- package/dist/shared/api/storefront/hooks/authentication/use-is-authenticated.js +9 -0
- package/dist/shared/api/storefront/hooks/authentication/use-patch-session.d.ts +22 -0
- package/dist/shared/api/storefront/hooks/authentication/use-patch-session.js +17 -0
- package/dist/shared/api/storefront/hooks/authentication/use-recover-password.d.ts +4 -0
- package/dist/shared/api/storefront/hooks/authentication/use-recover-password.js +16 -0
- package/dist/shared/api/storefront/hooks/authentication/use-sign-in.d.ts +1 -0
- package/dist/shared/api/storefront/hooks/authentication/use-sign-in.js +33 -0
- package/dist/shared/api/storefront/hooks/authentication/use-sign-out-mutation.d.ts +9 -0
- package/dist/shared/api/storefront/hooks/authentication/use-sign-out-mutation.js +26 -0
- package/dist/shared/api/storefront/hooks/authentication/use-sign-out.d.ts +5 -1
- package/dist/shared/api/storefront/hooks/authentication/use-sign-out.js +30 -0
- package/dist/shared/api/storefront/hooks/cart/use-add-bulk-products-to-current-cart.d.ts +4 -0
- package/dist/shared/api/storefront/hooks/cart/use-add-bulk-products-to-current-cart.js +21 -0
- package/dist/shared/api/storefront/hooks/cart/use-add-product-to-current-cart.d.ts +1 -1
- package/dist/shared/api/storefront/hooks/cart/use-add-product-to-current-cart.js +26 -0
- package/dist/shared/api/storefront/hooks/cart/use-delete-cart-line-by-id.d.ts +2 -2
- package/dist/shared/api/storefront/hooks/cart/use-delete-cart-line-by-id.js +21 -0
- package/dist/shared/api/storefront/hooks/cart/use-delete-current-cart.d.ts +3 -3
- package/dist/shared/api/storefront/hooks/cart/use-delete-current-cart.js +19 -0
- package/dist/shared/api/storefront/hooks/cart/use-fetch-cart-by-id.d.ts +8 -0
- package/dist/shared/api/storefront/hooks/cart/use-fetch-cart-by-id.js +21 -0
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-checkout-atp.d.ts +1 -1
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-checkout-atp.js +16 -0
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-count.d.ts +1 -1
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-count.js +9 -0
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-lines-with-atp.d.ts +52 -20
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-lines-with-atp.js +12 -0
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-lines.d.ts +1 -1
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-lines.js +12 -0
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-product-atp.d.ts +1 -1
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-product-atp.js +16 -0
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-promotions.d.ts +1 -1
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-promotions.js +16 -0
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-with-atp.d.ts +40 -7
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-with-atp.js +31 -0
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart.d.ts +3 -4
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart.js +8 -0
- package/dist/shared/api/storefront/hooks/cart/use-invalidate-current-cart.js +10 -0
- package/dist/shared/api/storefront/hooks/cart/use-patch-cart-line-by-id.d.ts +6 -0
- package/dist/shared/api/storefront/hooks/cart/use-patch-cart-line-by-id.js +23 -0
- package/dist/shared/api/storefront/hooks/customer/use-fetch-bill-to-address.d.ts +4 -0
- package/dist/shared/api/storefront/hooks/customer/use-fetch-bill-to-address.js +12 -0
- package/dist/shared/api/storefront/hooks/customer/use-fetch-bill-to-addresses.d.ts +4 -0
- package/dist/shared/api/storefront/hooks/customer/use-fetch-bill-to-addresses.js +14 -0
- package/dist/shared/api/storefront/hooks/customer/use-fetch-current-bill-to-address.d.ts +3 -0
- package/dist/shared/api/storefront/hooks/customer/use-fetch-current-bill-to-address.js +8 -0
- package/dist/shared/api/storefront/hooks/customer/use-fetch-current-ship-to-address.d.ts +3 -0
- package/dist/shared/api/storefront/hooks/customer/use-fetch-current-ship-to-address.js +12 -0
- package/dist/shared/api/storefront/hooks/customer/use-fetch-fulfillment-methods-by-customer-id.d.ts +4 -0
- package/dist/shared/api/storefront/hooks/customer/use-fetch-fulfillment-methods-by-customer-id.js +13 -0
- package/dist/shared/api/storefront/hooks/customer/use-fetch-fulfillment-methods-for-current-cart.d.ts +3 -0
- package/dist/shared/api/storefront/hooks/customer/use-fetch-fulfillment-methods-for-current-cart.js +13 -0
- package/dist/shared/api/storefront/hooks/customer/use-fetch-paged-ship-to-addresses.d.ts +8 -0
- package/dist/shared/api/storefront/hooks/customer/use-fetch-paged-ship-to-addresses.js +14 -0
- package/dist/shared/api/storefront/hooks/customer/use-fetch-ship-to-address.d.ts +5 -0
- package/dist/shared/api/storefront/hooks/customer/use-fetch-ship-to-address.js +19 -0
- package/dist/shared/api/storefront/hooks/customer/use-fetch-ship-to-addresses.d.ts +3 -0
- package/dist/shared/api/storefront/hooks/customer/use-fetch-ship-to-addresses.js +16 -0
- package/dist/shared/api/storefront/hooks/customer/use-patch-bill-to-address.d.ts +12 -0
- package/dist/shared/api/storefront/hooks/customer/use-patch-bill-to-address.js +18 -0
- package/dist/shared/api/storefront/hooks/customer/use-patch-ship-to-address.d.ts +13 -0
- package/dist/shared/api/storefront/hooks/customer/use-patch-ship-to-address.js +18 -0
- package/dist/shared/api/storefront/hooks/customer/use-post-ship-to-address.d.ts +17 -0
- package/dist/shared/api/storefront/hooks/customer/use-post-ship-to-address.js +18 -0
- package/dist/shared/api/storefront/hooks/orders/use-fetch-order-by-id.d.ts +1 -0
- package/dist/shared/api/storefront/hooks/orders/use-fetch-order-by-id.js +14 -0
- package/dist/shared/api/storefront/hooks/orders/use-fetch-orders.d.ts +9 -0
- package/dist/shared/api/storefront/hooks/orders/use-fetch-orders.js +14 -0
- package/dist/shared/api/storefront/hooks/payment/use-create-adyen-session.d.ts +3 -0
- package/dist/shared/api/storefront/hooks/payment/use-create-adyen-session.js +11 -0
- package/dist/shared/api/storefront/hooks/payment/use-fetch-adyen-config.d.ts +1 -0
- package/dist/shared/api/storefront/hooks/payment/use-fetch-adyen-config.js +15 -0
- package/dist/shared/api/storefront/hooks/payment/use-invalidate-adyen.d.ts +1 -0
- package/dist/shared/api/storefront/hooks/payment/use-invalidate-adyen.js +10 -0
- package/dist/shared/api/storefront/hooks/product/use-mark-product-as-viewed.d.ts +5 -0
- package/dist/shared/api/storefront/hooks/product/use-mark-product-as-viewed.js +17 -0
- package/dist/shared/api/storefront/hooks/translation/use-fetch-translations.js +16 -0
- package/dist/shared/api/storefront/hooks/website/use-fetch-countries-languages.d.ts +2 -2
- package/dist/shared/api/storefront/hooks/website/use-fetch-countries-languages.js +16 -0
- package/dist/shared/api/storefront/hooks/website/use-fetch-countries-with-languages.d.ts +4 -2
- package/dist/shared/api/storefront/hooks/website/use-fetch-countries-with-languages.js +17 -0
- package/dist/shared/api/storefront/hooks/website/use-fetch-country-models.d.ts +3 -0
- package/dist/shared/api/storefront/hooks/website/use-fetch-country-models.js +17 -0
- package/dist/shared/api/storefront/hooks/website/use-fetch-settings.d.ts +1 -1
- package/dist/shared/api/storefront/hooks/website/use-fetch-settings.js +19 -0
- package/dist/shared/api/storefront/hooks/website/use-update-locale.d.ts +1 -1
- package/dist/shared/api/storefront/hooks/website/use-update-locale.js +12 -0
- package/dist/shared/api/storefront/hooks/wishlist/use-add-wishlist-item-to-current-wishlist.js +28 -0
- package/dist/shared/api/storefront/hooks/wishlist/use-add-wishlist-item-to-wishlist.js +30 -0
- package/dist/shared/api/storefront/hooks/wishlist/use-create-wishlist.js +18 -0
- package/dist/shared/api/storefront/hooks/wishlist/use-delete-wishlist-item-from-wishlist.js +19 -0
- package/dist/shared/api/storefront/hooks/wishlist/use-fetch-all-wishlists-items.d.ts +1 -1
- package/dist/shared/api/storefront/hooks/wishlist/use-fetch-all-wishlists-items.js +26 -0
- package/dist/shared/api/storefront/hooks/wishlist/use-fetch-wishlists.d.ts +1 -1
- package/dist/shared/api/storefront/hooks/wishlist/use-fetch-wishlists.js +15 -0
- package/dist/shared/api/storefront/model/{shop.model.d.ts → storefront.model.d.ts} +100 -6
- package/dist/shared/api/storefront/model/storefront.model.js +74 -0
- package/dist/shared/api/storefront/services/account-service.d.ts +31 -0
- package/dist/shared/api/storefront/services/account-service.js +87 -0
- package/dist/shared/api/storefront/services/authentication-service.d.ts +37 -13
- package/dist/shared/api/storefront/services/authentication-service.js +176 -0
- package/dist/shared/api/storefront/services/cart-service.d.ts +26 -14
- package/dist/shared/api/storefront/services/cart-service.js +168 -0
- package/dist/shared/api/storefront/services/category-service.d.ts +6 -0
- package/dist/shared/api/storefront/services/category-service.js +19 -0
- package/dist/shared/api/storefront/services/customer-service.d.ts +49 -0
- package/dist/shared/api/storefront/services/customer-service.js +112 -0
- package/dist/shared/api/storefront/services/finance-service.d.ts +13 -0
- package/dist/shared/api/storefront/services/finance-service.js +17 -0
- package/dist/shared/api/storefront/services/order-service.d.ts +10 -0
- package/dist/shared/api/storefront/services/order-service.js +40 -0
- package/dist/shared/api/storefront/services/payment-service.d.ts +8 -0
- package/dist/shared/api/storefront/services/payment-service.js +29 -0
- package/dist/shared/api/storefront/services/product-service.d.ts +4 -0
- package/dist/shared/api/storefront/services/product-service.js +10 -0
- package/dist/shared/api/storefront/services/translation-service.js +21 -0
- package/dist/shared/api/storefront/services/website-service.d.ts +1 -3
- package/dist/shared/api/storefront/services/website-service.js +51 -0
- package/dist/shared/api/storefront/services/wishlist-service.d.ts +4 -1
- package/dist/shared/api/storefront/services/wishlist-service.js +87 -0
- package/dist/shared/data/cart.data.d.ts +2 -0
- package/dist/shared/data/cart.data.js +650 -0
- package/dist/shared/data/countries-languages.data.d.ts +12 -0
- package/dist/shared/data/countries-languages.data.js +74 -0
- package/dist/shared/data/navigation.d.ts +2 -0
- package/dist/shared/data/navigation.js +2605 -0
- package/dist/shared/data/order.d.ts +2 -0
- package/dist/shared/data/order.js +41 -0
- package/dist/shared/error/basic-error-view.d.ts +1 -0
- package/dist/shared/error/basic-error-view.js +10 -0
- package/dist/shared/error/basic-error-view.module.css.js +3 -0
- package/dist/shared/error/default-error-view.d.ts +2 -0
- package/dist/shared/error/default-error-view.js +17 -0
- package/dist/shared/error/default-error-view.module.css.js +3 -0
- package/dist/shared/error/error-boundary.d.ts +16 -0
- package/dist/shared/error/error-boundary.js +94 -0
- package/dist/shared/error/errors.d.ts +17 -0
- package/dist/shared/error/errors.js +62 -0
- package/dist/shared/error/global-unhandled-error-handler.d.ts +13 -0
- package/dist/shared/error/global-unhandled-error-handler.js +71 -0
- package/dist/shared/error/types.d.ts +16 -0
- package/dist/shared/feature-flags/use-feature-flags.d.ts +5 -4
- package/dist/shared/feature-flags/use-feature-flags.js +49 -0
- package/dist/shared/fetch/request.d.ts +41 -28
- package/dist/shared/fetch/request.js +290 -0
- package/dist/shared/ga/data-layer.d.ts +2 -0
- package/dist/shared/ga/data-layer.js +12 -0
- package/dist/shared/ga/google-analytics-provider.d.ts +9 -0
- package/dist/shared/ga/google-analytics-provider.js +17 -0
- package/dist/shared/ga/types.d.ts +38 -0
- package/dist/shared/ga/types.js +8 -0
- package/dist/shared/ga/use-data-layer.d.ts +54 -0
- package/dist/shared/ga/use-data-layer.js +95 -0
- package/dist/shared/hooks/use-breakpoint.js +25 -0
- package/dist/shared/hooks/use-cookiebot.d.ts +16 -0
- package/dist/shared/hooks/use-cookiebot.js +35 -0
- package/dist/shared/hooks/use-css-link.d.ts +3 -0
- package/dist/shared/hooks/use-css-link.js +21 -0
- package/dist/shared/hooks/use-debounced-callback.d.ts +5 -1
- package/dist/shared/hooks/use-debounced-callback.js +19 -0
- package/dist/shared/hooks/use-disclosure.d.ts +3 -3
- package/dist/shared/hooks/use-disclosure.js +25 -0
- package/dist/shared/hooks/use-enable-mobile-zoom.js +37 -0
- package/dist/shared/hooks/use-global-disclosure.d.ts +10 -0
- package/dist/shared/hooks/use-global-disclosure.js +26 -0
- package/dist/shared/hooks/use-inert.d.ts +3 -0
- package/dist/shared/hooks/use-inert.js +16 -0
- package/dist/shared/hooks/use-intersection-observer.d.ts +4 -1
- package/dist/shared/hooks/use-intersection-observer.js +69 -0
- package/dist/shared/hooks/use-is-breakpoint.js +20 -0
- package/dist/shared/hooks/use-is-scrolled-beyond-element.d.ts +1 -0
- package/dist/shared/hooks/use-is-scrolled-beyond-element.js +27 -0
- package/dist/shared/hooks/use-mutation-observer.d.ts +3 -0
- package/dist/shared/hooks/use-mutation-observer.js +28 -0
- package/dist/shared/hooks/use-resize-observer.d.ts +2 -2
- package/dist/shared/hooks/use-resize-observer.js +38 -0
- package/dist/shared/hooks/use-script.d.ts +15 -0
- package/dist/shared/hooks/use-script.js +34 -0
- package/dist/shared/hooks/use-scroll-lock.js +12 -0
- package/dist/shared/hooks/use-watch-css-property.d.ts +1 -0
- package/dist/shared/hooks/use-watch-css-property.js +37 -0
- package/dist/shared/local-storage/local-storage-context.d.ts +2 -0
- package/dist/shared/local-storage/local-storage-context.js +6 -0
- package/dist/shared/local-storage/local-storage-provider.d.ts +5 -0
- package/dist/shared/local-storage/local-storage-provider.js +14 -0
- package/dist/shared/local-storage/storage-mock.d.ts +10 -0
- package/dist/shared/local-storage/storage-mock.js +34 -0
- package/dist/shared/local-storage/types.d.ts +4 -0
- package/dist/shared/local-storage/use-local-storage.js +24 -0
- package/dist/shared/local-storage/use-session-storage.js +24 -0
- package/dist/shared/model/account.d.ts +19 -0
- package/dist/shared/model/account.js +4 -0
- package/dist/shared/model/address.d.ts +30 -0
- package/dist/shared/model/address.js +7 -0
- package/dist/shared/model/announcement.js +18 -0
- package/dist/shared/model/category.d.ts +5 -0
- package/dist/shared/model/category.js +31 -0
- package/dist/shared/model/countries-languages.d.ts +4 -1
- package/dist/shared/model/countries-languages.js +32 -0
- package/dist/shared/model/currency.d.ts +7 -26
- package/dist/shared/model/currency.js +29 -0
- package/dist/shared/model/defaults.d.ts +1 -0
- package/dist/shared/model/defaults.js +3 -0
- package/dist/shared/model/hit.d.ts +2 -0
- package/dist/shared/model/hit.js +46 -0
- package/dist/shared/model/image.d.ts +6 -7
- package/dist/shared/model/image.js +7 -0
- package/dist/shared/model/price.d.ts +5 -2
- package/dist/shared/providers/cart-provider.d.ts +1 -1
- package/dist/shared/providers/cart-provider.js +13 -0
- package/dist/shared/providers/favorite-provider.d.ts +4 -4
- package/dist/shared/providers/favorite-provider.js +33 -0
- package/dist/shared/providers/global-state-provider.js +82 -0
- package/dist/shared/providers/react-query-container.d.ts +9 -3
- package/dist/shared/providers/react-query-container.js +15 -0
- package/dist/shared/reset.module.css.js +3 -0
- package/dist/shared/routing/route-context.d.ts +2 -0
- package/dist/shared/routing/route-context.js +6 -0
- package/dist/shared/routing/route-provider.d.ts +13 -10
- package/dist/shared/routing/route-provider.js +16 -0
- package/dist/shared/routing/route-utils.d.ts +5 -0
- package/dist/shared/routing/route-utils.js +17 -0
- package/dist/shared/routing/types.d.ts +46 -0
- package/dist/shared/routing/use-location.d.ts +9 -0
- package/dist/shared/routing/use-location.js +18 -0
- package/dist/shared/routing/use-navigate.d.ts +6 -0
- package/dist/shared/routing/use-navigate.js +20 -0
- package/dist/shared/routing/use-on-navigate.d.ts +2 -0
- package/dist/shared/routing/use-on-navigate.js +19 -0
- package/dist/shared/routing/use-paths.d.ts +2 -0
- package/dist/shared/routing/use-paths.js +9 -0
- package/dist/shared/routing/use-route-link-element.d.ts +1 -0
- package/dist/shared/routing/use-route-link-element.js +10 -0
- package/dist/shared/routing/use-route-link.d.ts +9 -0
- package/dist/shared/routing/use-route-link.js +26 -0
- package/dist/shared/routing/use-router.d.ts +1 -0
- package/dist/shared/routing/use-router.js +13 -0
- package/dist/shared/routing/with-routing.d.ts +4 -6
- package/dist/shared/routing/with-routing.js +34 -0
- package/dist/shared/utils/array.js +5 -0
- package/dist/shared/utils/breakpoints.js +33 -0
- package/dist/shared/utils/children-to-text.d.ts +2 -0
- package/dist/shared/utils/children-to-text.js +18 -0
- package/dist/shared/utils/css.d.ts +1 -0
- package/dist/shared/utils/css.js +24 -0
- package/dist/shared/utils/date.d.ts +5 -11
- package/dist/shared/utils/date.js +13 -0
- package/dist/shared/utils/debug.d.ts +2 -0
- package/dist/shared/utils/debug.js +21 -0
- package/dist/shared/utils/environment.d.ts +3 -2
- package/dist/shared/utils/environment.js +69 -0
- package/dist/shared/utils/event-emitter.js +34 -0
- package/dist/shared/utils/greeting.d.ts +1 -0
- package/dist/shared/utils/greeting.js +15 -0
- package/dist/shared/utils/merge.js +70 -0
- package/dist/shared/utils/number.d.ts +2 -0
- package/dist/shared/utils/number.js +10 -0
- package/dist/shared/utils/price.d.ts +22 -1
- package/dist/shared/utils/price.js +79 -0
- package/dist/shared/utils/promise.d.ts +2 -0
- package/dist/shared/utils/promise.js +9 -0
- package/dist/shared/utils/query-client.d.ts +4 -0
- package/dist/shared/utils/query-client.js +33 -0
- package/dist/shared/utils/random.d.ts +10 -0
- package/dist/shared/utils/random.js +16 -0
- package/dist/shared/utils/refs.d.ts +2 -0
- package/dist/shared/utils/refs.js +14 -0
- package/dist/shared/{hooks/use-scroll-to.d.ts → utils/scrolling.d.ts} +1 -1
- package/dist/shared/utils/scrolling.js +16 -0
- package/dist/shared/utils/string.d.ts +1 -0
- package/dist/shared/utils/string.js +7 -0
- package/dist/shared/utils/time.js +9 -0
- package/dist/shared/utils/types.d.ts +4 -0
- package/dist/shared/utils/types.js +11 -0
- package/dist/shared/utils/url.d.ts +5 -0
- package/dist/shared/utils/url.js +20 -0
- package/dist/shared/utils/url.test.d.ts +1 -0
- package/dist/shared/utils/uuid.d.ts +3 -1
- package/dist/shared/utils/uuid.js +18 -0
- package/dist/sidebar/sidebar-provider.js +47 -0
- package/dist/sidebar/sidebar-provider.module.css.js +3 -0
- package/dist/sidebar/sidebar.d.ts +2 -1
- package/dist/sidebar/sidebar.js +23 -0
- package/dist/sidebar/sidebar.module.css.js +3 -0
- package/dist/sidebar/toggle-sidebar-button.js +13 -0
- package/dist/sidebar/use-sidebar.js +39 -0
- package/dist/styles.css +8497 -3468
- package/dist/table/data-table.d.ts +55 -0
- package/dist/table/data-table.js +103 -0
- package/dist/table/data-table.module.css.js +3 -0
- package/dist/table/elements/col.d.ts +7 -0
- package/dist/table/elements/col.js +10 -0
- package/dist/table/elements/switch-sort-direction.d.ts +2 -0
- package/dist/table/elements/switch-sort-direction.js +11 -0
- package/dist/table/elements/table-context.d.ts +19 -0
- package/dist/table/elements/table-context.js +6 -0
- package/dist/table/elements/table-provider.d.ts +26 -0
- package/dist/table/elements/table-provider.js +75 -0
- package/dist/table/elements/table-row-context.d.ts +14 -0
- package/dist/table/elements/table-row-context.js +17 -0
- package/dist/table/elements/table-row-provider.d.ts +4 -0
- package/dist/table/elements/table-row-provider.js +26 -0
- package/dist/table/elements/table-sort-button.d.ts +12 -0
- package/dist/table/elements/table-sort-button.js +19 -0
- package/dist/table/elements/table.d.ts +14 -0
- package/dist/table/elements/table.js +24 -0
- package/dist/table/elements/table.module.css.js +3 -0
- package/dist/table/elements/td.d.ts +7 -0
- package/dist/table/elements/td.js +13 -0
- package/dist/table/elements/th.d.ts +2 -0
- package/dist/table/elements/th.js +12 -0
- package/dist/table/elements/tr.d.ts +2 -0
- package/dist/table/elements/tr.js +11 -0
- package/dist/table/elements/types.d.ts +39 -0
- package/dist/table/elements/use-table-row.d.ts +1 -0
- package/dist/table/elements/use-table-row.js +9 -0
- package/dist/table/elements/use-table.d.ts +2 -0
- package/dist/table/elements/use-table.js +12 -0
- package/dist/table/elements/use-td.d.ts +2 -0
- package/dist/table/elements/use-td.js +28 -0
- package/dist/table/elements/use-th.d.ts +2 -0
- package/dist/table/elements/use-th.js +21 -0
- package/dist/text/highlight-text/highlight-text.d.ts +10 -0
- package/dist/text/highlight-text/highlight-text.js +20 -0
- package/dist/text/highlight-text/highlight-text.module.css.js +3 -0
- package/dist/text/status-text/status-text.d.ts +6 -0
- package/dist/text/status-text/status-text.js +9 -0
- package/dist/text/status-text/status-text.module.css.js +3 -0
- package/dist/text/truncated/truncated.d.ts +7 -0
- package/dist/text/truncated/truncated.js +12 -0
- package/dist/text/truncated/truncated.module.css.js +3 -0
- package/dist/toast/toast-provider.js +10 -0
- package/dist/toast/toast-provider.module.css.js +3 -0
- package/dist/toast/toast.js +22 -0
- package/dist/toast/toast.module.css.js +3 -0
- package/dist/toast/use-toast.js +21 -0
- package/dist/tokens/tokens.js +8 -0
- package/dist/tooltip/tooltip.d.ts +10 -0
- package/dist/tooltip/tooltip.js +32 -0
- package/dist/tooltip/tooltip.module.css.js +3 -0
- package/dist/typography/heading/heading.d.ts +8 -2
- package/dist/typography/heading/heading.js +31 -0
- package/dist/typography/heading/heading.module.css.js +3 -0
- package/package.json +73 -69
- package/dist/display/product-price/product-price.d.ts +0 -8
- package/dist/display/product-price/product-total-price.d.ts +0 -7
- package/dist/forms/checkbox/checkbox.d.ts +0 -11
- package/dist/forms/color-checkbox/color-checkbox.d.ts +0 -5
- package/dist/forms/field-error/field-error.d.ts +0 -5
- package/dist/forms/label/label.d.ts +0 -6
- package/dist/forms/number-field/number-field.d.ts +0 -31
- package/dist/forms/select/select.d.ts +0 -13
- package/dist/forms/text-field/text-field.d.ts +0 -29
- package/dist/header/cart-icon/connected-cart-icon.d.ts +0 -3
- package/dist/icons/other/career-innovate-icon.d.ts +0 -1
- package/dist/icons/other/career-proactive-icon.d.ts +0 -1
- package/dist/icons/other/career-teamplayer-icon.d.ts +0 -1
- package/dist/icons/other/fallback-icon.d.ts +0 -1
- package/dist/icons/other/some-facebook-icon.d.ts +0 -1
- package/dist/icons/other/some-instagram-icon.d.ts +0 -1
- package/dist/icons/other/some-linkedin-icon.d.ts +0 -1
- package/dist/icons/other/some-mail-icon.d.ts +0 -1
- package/dist/icons/other/some-youtube-icon.d.ts +0 -1
- package/dist/icons/other/usp-efficiency-icon.d.ts +0 -1
- package/dist/icons/other/usp-style-icon.d.ts +0 -1
- package/dist/icons/other/usp-support-icon.d.ts +0 -1
- package/dist/icons/other/warranty-10y-icon.d.ts +0 -1
- package/dist/icons/other/warranty-1y-icon.d.ts +0 -1
- package/dist/icons/other/warranty-3y-icon.d.ts +0 -1
- package/dist/icons/other/warranty-5y-icon.d.ts +0 -1
- package/dist/icons/other/warranty-consumable-icon.d.ts +0 -1
- package/dist/icons/other/warranty-lifetime-icon.d.ts +0 -1
- package/dist/icons/solid/solid-event-icon.d.ts +0 -1
- package/dist/icons/solid/solid-sale-icon.d.ts +0 -1
- package/dist/icons/solid/solid-vote-thumbsdown-icon.d.ts +0 -1
- package/dist/icons/solid/solid-vote-thumbsup-icon.d.ts +0 -1
- package/dist/icons/stroke/stroke-collapse-icon.d.ts +0 -1
- package/dist/icons/stroke/stroke-expand-icon.d.ts +0 -1
- package/dist/icons/stroke/stroke-vote-thumbsdown-icon.d.ts +0 -1
- package/dist/icons/stroke/stroke-vote-thumbsup-icon.d.ts +0 -1
- package/dist/lists/ul/list.d.ts +0 -10
- package/dist/notifications/announcements/announcement-provider.d.ts +0 -1
- package/dist/notifications/announcements/connected-announcement.d.ts +0 -5
- package/dist/pages/page/page.d.ts +0 -9
- package/dist/pages/product-details-page/components/product-details-panel/product-details-panel.d.ts +0 -4
- package/dist/pages/product-listing-page/product-listing-page-provider/use-subcategories.d.ts +0 -4
- package/dist/shared/api/bff/model/announcement.model.d.ts +0 -12
- package/dist/shared/api/storefront/hooks/cart/use-patch-cart.d.ts +0 -4
- package/dist/shared/api/storefront/hooks/cart/use-place-order.d.ts +0 -4
- package/dist/shared/api/storefront/hooks/cart/use-update-cart-line-by-id.d.ts +0 -6
- package/dist/shared/api/storefront/hooks/website/use-fetch-countries.d.ts +0 -1
- package/dist/shared/routing/route-button.d.ts +0 -1
- package/dist/shared/routing/route-icon-button.d.ts +0 -1
- package/dist/shared/routing/route-link.d.ts +0 -1
- package/dist/shared/utils/local-storage.d.ts +0 -7
- package/dist/shared/utils/wait.d.ts +0 -1
- /package/dist/algolia/{algolia-intialization.d.ts → algolia-initialization.d.ts} +0 -0
- /package/dist/pages/{cart-page → checkout/cart-page}/cart-page.d.ts +0 -0
- /package/dist/pages/{product-details-page → product/product-details-page}/product-details-page.d.ts +0 -0
- /package/dist/pages/{product-listing-page → product/product-listing-page}/no-results/no-results.d.ts +0 -0
- /package/dist/pages/{product-listing-page → product/product-listing-page}/product-listing-page-category-carousel/product-listing-page-category-carousel.d.ts +0 -0
- /package/dist/pages/{product-listing-page → product/product-listing-page}/product-listing-page-provider/product-listing-page-context.d.ts +0 -0
- /package/dist/pages/{product-listing-page → product/product-listing-page}/product-listing-page-provider/product-listing-page-provider.d.ts +0 -0
- /package/dist/pages/{product-listing-page → product/product-listing-page}/product-listing-page.d.ts +0 -0
- /package/dist/pages/{product-listing-page → product/product-listing-page}/product-listing-product-overview/product-listing-product-overview.d.ts +0 -0
- /package/dist/pages/{search-result-page → product/search-result-page}/search-result-product-overview/search-result-product-overview.d.ts +0 -0
- /package/dist/pages/{search-result-page → product/search-result-page}/search-results-page-category-carousel/search-results-page-category-carousel.d.ts +0 -0
- /package/dist/pages/{search-result-page → product/search-result-page}/search-results-page.d.ts +0 -0
- /package/dist/shared/{hooks → local-storage}/use-local-storage.d.ts +0 -0
- /package/dist/shared/{hooks → local-storage}/use-session-storage.d.ts +0 -0
- /package/dist/shared/utils/{date.test.d.ts → string.test.d.ts} +0 -0
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import { useState, useMemo, useCallback, useEffect } from 'react';
|
|
4
|
+
import { useCookie } from '../cookies/use-cookie.js';
|
|
5
|
+
import { useCountriesLanguages } from '../country-selector/use-countries-languages.js';
|
|
6
|
+
import { isCountryLanguageCode } from '../intl/types.js';
|
|
7
|
+
import { useFormattedMessage } from '../intl/use-formatted-message.js';
|
|
8
|
+
import { useIntl } from '../intl/use-intl.js';
|
|
9
|
+
import { useNavigate } from '../shared/routing/use-navigate.js';
|
|
10
|
+
import { useRouter } from '../shared/routing/use-router.js';
|
|
11
|
+
import { environment } from '../shared/utils/environment.js';
|
|
12
|
+
import { CountryLanguageSelector } from './country-language-selector.js';
|
|
13
|
+
|
|
14
|
+
/* eslint-disable @eslint-react/hooks-extra/no-direct-set-state-in-use-effect */
|
|
15
|
+
// eslint-disable-next-line no-warning-comments
|
|
16
|
+
/* TODO:
|
|
17
|
+
- defaultSelected based on current Country and Language (from URL path, determined by intlProvider)
|
|
18
|
+
- suggested value is best option from an offered list of options
|
|
19
|
+
- based on geoIP (region) and browser language preferences
|
|
20
|
+
- browser language preferences can be multiple and are listed in priority
|
|
21
|
+
- redirect to /xx-yy homepage? or map the current path to the new locale (...)?
|
|
22
|
+
*/
|
|
23
|
+
const pathToCLSelectionList = '/countries';
|
|
24
|
+
function ConnectedCountryLanguageSelector({ className, countries: _countries, isOpen: _isOpen, selectedCountry, selectedLanguage, sticky, }) {
|
|
25
|
+
const t = useFormattedMessage();
|
|
26
|
+
const { navigate } = useNavigate();
|
|
27
|
+
const { setShowSelector, showSelector } = useIntl();
|
|
28
|
+
const cookieExpiryDate = new Date(Date.now() + 365 * 24 * 60 * 60 * 1000); // 365 days
|
|
29
|
+
const [CLSelectorCookie, setCLSelectorCookie] = useCookie('countryLanguageSelector', {
|
|
30
|
+
expires: cookieExpiryDate,
|
|
31
|
+
});
|
|
32
|
+
const [isOpen, setIsOpen] = useState(_isOpen ?? !CLSelectorCookie?.includes('closed=true'));
|
|
33
|
+
const { countries } = useCountriesLanguages({});
|
|
34
|
+
const router = useRouter();
|
|
35
|
+
const { alternativeHrefs, pathname } = router.url;
|
|
36
|
+
const { defaultSelectedOption, menuOptionGroups, menuOptions, optionData } = useMemo(() => {
|
|
37
|
+
const menuOptions = {
|
|
38
|
+
other: t('Choose your country or region…'),
|
|
39
|
+
};
|
|
40
|
+
const menuOptionGroups = [];
|
|
41
|
+
const optionData = [];
|
|
42
|
+
countries?.forEach(country => {
|
|
43
|
+
const options = [];
|
|
44
|
+
const countryCode = country.abbreviation.toLowerCase();
|
|
45
|
+
if (_countries && !_countries.includes(country.abbreviation)) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const languageCodes = country.languages
|
|
49
|
+
.map(({ languageCode }) => languageCode.toLowerCase())
|
|
50
|
+
.sort();
|
|
51
|
+
const groupLabel = t(`clselector.country.${countryCode}.${languageCodes[0]}`);
|
|
52
|
+
const groupReactNode = languageCodes.flatMap((languageCode, index) => {
|
|
53
|
+
const translation = t(`clselector.country.${countryCode}.${languageCode}`);
|
|
54
|
+
return index === 0
|
|
55
|
+
? [
|
|
56
|
+
jsx("span", { lang: languageCode, children: translation }, languageCode),
|
|
57
|
+
]
|
|
58
|
+
: [
|
|
59
|
+
'/',
|
|
60
|
+
jsx("span", { lang: languageCode, children: translation }, languageCode),
|
|
61
|
+
];
|
|
62
|
+
});
|
|
63
|
+
languageCodes.forEach(languageCode => {
|
|
64
|
+
const optionKey = `${languageCode}-${countryCode}`;
|
|
65
|
+
const optionCountryLabel = `clselector.country.${countryCode}.${languageCode}`;
|
|
66
|
+
const optionLanguageLabel = `clselector.language.${languageCode}.${languageCode}`;
|
|
67
|
+
options.push(optionKey);
|
|
68
|
+
let path;
|
|
69
|
+
if (alternativeHrefs && alternativeHrefs[optionKey]) {
|
|
70
|
+
path = `/${optionKey}${alternativeHrefs[optionKey]}`;
|
|
71
|
+
}
|
|
72
|
+
else if (!alternativeHrefs ||
|
|
73
|
+
Object.keys(alternativeHrefs).length === 0) {
|
|
74
|
+
const currentCountryLanguage = pathname.split('/')[1]?.toLowerCase();
|
|
75
|
+
path = isCountryLanguageCode(currentCountryLanguage)
|
|
76
|
+
? pathname
|
|
77
|
+
.toLowerCase()
|
|
78
|
+
.replace(`${currentCountryLanguage}`, `${optionKey}`)
|
|
79
|
+
: `/${optionKey}${pathname}`;
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
path = `/${optionKey}`;
|
|
83
|
+
}
|
|
84
|
+
menuOptions[optionKey] =
|
|
85
|
+
environment === 'next-production' ||
|
|
86
|
+
environment === 'production' ? (jsx("span", { lang: languageCode, children: `${t(optionCountryLabel)} - ${t(optionLanguageLabel)}` })) : (jsxs("span", { lang: languageCode, children: [`${t(optionCountryLabel)} - ${t(optionLanguageLabel)}`, jsx("code", { style: { fontSize: '12px' }, children: path })] }));
|
|
87
|
+
optionData.push({
|
|
88
|
+
country: countryCode,
|
|
89
|
+
key: optionKey,
|
|
90
|
+
language: languageCode,
|
|
91
|
+
path,
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
menuOptionGroups.push({
|
|
95
|
+
key: countryCode,
|
|
96
|
+
label: groupLabel,
|
|
97
|
+
options,
|
|
98
|
+
reactNode: groupReactNode,
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
menuOptionGroups.sort((a, b) => a.label.localeCompare(b.label));
|
|
102
|
+
const defaultSelectedLanguageCountry = selectedLanguage && selectedCountry
|
|
103
|
+
? `${selectedLanguage.toLowerCase()}-${selectedCountry.toLowerCase()}`
|
|
104
|
+
: undefined;
|
|
105
|
+
const defaultSelectedOption = defaultSelectedLanguageCountry &&
|
|
106
|
+
Object.keys(menuOptions).includes(defaultSelectedLanguageCountry)
|
|
107
|
+
? defaultSelectedLanguageCountry
|
|
108
|
+
: undefined;
|
|
109
|
+
return {
|
|
110
|
+
defaultSelectedOption,
|
|
111
|
+
menuOptionGroups,
|
|
112
|
+
menuOptions,
|
|
113
|
+
optionData,
|
|
114
|
+
};
|
|
115
|
+
}, [
|
|
116
|
+
_countries,
|
|
117
|
+
alternativeHrefs,
|
|
118
|
+
countries,
|
|
119
|
+
pathname,
|
|
120
|
+
selectedCountry,
|
|
121
|
+
selectedLanguage,
|
|
122
|
+
t,
|
|
123
|
+
]);
|
|
124
|
+
const handleClose = useCallback(() => {
|
|
125
|
+
setIsOpen(false);
|
|
126
|
+
setCLSelectorCookie('closed=true');
|
|
127
|
+
}, [setCLSelectorCookie]);
|
|
128
|
+
const handleSubmit = useCallback((selectedOption) => {
|
|
129
|
+
setIsOpen(false);
|
|
130
|
+
if (selectedOption === 'other') {
|
|
131
|
+
setCLSelectorCookie('closed=true');
|
|
132
|
+
navigate(pathToCLSelectionList, {
|
|
133
|
+
ignoreLocalePrefix: true,
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
const option = optionData.find(option => option.key === selectedOption);
|
|
138
|
+
if (!option)
|
|
139
|
+
return;
|
|
140
|
+
const { country, language, path } = option;
|
|
141
|
+
setCLSelectorCookie(`closed=true;language=${language};country=${country}`);
|
|
142
|
+
navigate(path, { ignoreLocalePrefix: true, reload: true });
|
|
143
|
+
}
|
|
144
|
+
}, [navigate, optionData, setCLSelectorCookie]);
|
|
145
|
+
// react to CountryLanguageSelectorButton clicked
|
|
146
|
+
useEffect(() => {
|
|
147
|
+
if (showSelector) {
|
|
148
|
+
setShowSelector(false);
|
|
149
|
+
setIsOpen(true);
|
|
150
|
+
}
|
|
151
|
+
}, [showSelector, setShowSelector]);
|
|
152
|
+
return (jsx(CountryLanguageSelector, { className: className, defaultSelectedOption: defaultSelectedOption, isOpen: isOpen, onClose: handleClose, onSubmit: handleSubmit, optionGroups: menuOptionGroups, options: menuOptions, sticky: sticky }));
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export { ConnectedCountryLanguageSelector };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SelectFieldOptionGroup } from '../forms/fields/select-field/select-field';
|
|
2
|
+
import { CountryLanguageCode } from '../intl/types';
|
|
3
|
+
export type CountryLanguageSelectorOptions = {
|
|
4
|
+
[K in CountryLanguageCode]: string | React.ReactNode;
|
|
5
|
+
} & {
|
|
6
|
+
other?: string | React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export interface CountryLanguageSelectorProps {
|
|
9
|
+
className?: string;
|
|
10
|
+
defaultSelectedOption?: CountryLanguageCode | 'other';
|
|
11
|
+
isOpen?: boolean;
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
onSubmit: (selectedOption: CountryLanguageCode | 'other') => void;
|
|
14
|
+
optionGroups?: SelectFieldOptionGroup<CountryLanguageCode>[];
|
|
15
|
+
options: CountryLanguageSelectorOptions;
|
|
16
|
+
sticky?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare function CountryLanguageSelector({ className, defaultSelectedOption, isOpen, onClose, onSubmit, optionGroups, options, sticky, }: CountryLanguageSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import { useState, useRef, useEffect } from 'react';
|
|
4
|
+
import { clsx } from 'clsx';
|
|
5
|
+
import { Button } from '../buttons/button/button.js';
|
|
6
|
+
import { CloseButton } from '../buttons/close-button/close-button.js';
|
|
7
|
+
import { SelectField } from '../forms/fields/select-field/select-field.js';
|
|
8
|
+
import { Form } from '../forms/layout/form/form.js';
|
|
9
|
+
import { useFormattedMessage } from '../intl/use-formatted-message.js';
|
|
10
|
+
import { useResizeObserver } from '../shared/hooks/use-resize-observer.js';
|
|
11
|
+
import styles from './country-language-selector.module.css.js';
|
|
12
|
+
|
|
13
|
+
function CountryLanguageSelector({ className, defaultSelectedOption, isOpen, onClose, onSubmit, optionGroups, options, sticky = true, }) {
|
|
14
|
+
const t = useFormattedMessage();
|
|
15
|
+
const title = t('Select a region and language');
|
|
16
|
+
const [selectedKey, setSelectedKey] = useState(defaultSelectedOption);
|
|
17
|
+
const [isInitialized, setIsInitialized] = useState(false);
|
|
18
|
+
const { ref: clSelectorRef } = useResizeObserver((_, size) => {
|
|
19
|
+
const height = size.height;
|
|
20
|
+
document?.documentElement.style.setProperty('--clselector-height', `${height}px`);
|
|
21
|
+
});
|
|
22
|
+
const focusTimeoutRef = useRef();
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
// eslint-disable-next-line @eslint-react/hooks-extra/no-direct-set-state-in-use-effect
|
|
25
|
+
setIsInitialized(true);
|
|
26
|
+
}, []);
|
|
27
|
+
const handleSubmit = () => {
|
|
28
|
+
if (selectedKey)
|
|
29
|
+
onSubmit(selectedKey);
|
|
30
|
+
};
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
if (isOpen) {
|
|
33
|
+
const el = document?.getElementById('country-language-selector');
|
|
34
|
+
el?.scrollIntoView();
|
|
35
|
+
focusTimeoutRef.current = window?.setTimeout(() => {
|
|
36
|
+
el?.focus();
|
|
37
|
+
}, 100);
|
|
38
|
+
}
|
|
39
|
+
return () => {
|
|
40
|
+
if (focusTimeoutRef.current) {
|
|
41
|
+
clearTimeout(focusTimeoutRef.current);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}, [clSelectorRef, isOpen]);
|
|
45
|
+
return (jsx("header", { ref: clSelectorRef, "aria-label": title, className: clsx(styles['country-language-selector'], isInitialized && styles['is-initialized'], isOpen && styles['is-open'], sticky && styles['sticky'], className), "data-test-selector": "country-language-selector", id: "country-language-selector",
|
|
46
|
+
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
|
|
47
|
+
tabIndex: 0, children: jsxs("div", { className: styles['body'], 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'
|
|
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" })] }) }));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export { CountryLanguageSelector };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var styles = {"country-language-selector":"country-language-selector-module-lW6eg","sticky":"country-language-selector-module-fsfbv","is-open":"country-language-selector-module-XttBY","is-initialized":"country-language-selector-module-lfI2j","body":"country-language-selector-module-4qE7H","explanation":"country-language-selector-module-UvT-P","form":"country-language-selector-module-pZ3tL","close":"country-language-selector-module-sJF5B"};
|
|
2
|
+
|
|
3
|
+
export { styles as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ConnectedCountryLanguageSelectorButton(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { useCountriesLanguages } from '../country-selector/use-countries-languages.js';
|
|
4
|
+
import { useIntl } from '../intl/use-intl.js';
|
|
5
|
+
import { useFetchSession } from '../shared/api/storefront/hooks/authentication/use-fetch-session.js';
|
|
6
|
+
import { CountryLanguageSelectorButton } from './country-language-selector-button.js';
|
|
7
|
+
|
|
8
|
+
function ConnectedCountryLanguageSelectorButton() {
|
|
9
|
+
const { setShowSelector } = useIntl();
|
|
10
|
+
const { data: sessionData } = useFetchSession();
|
|
11
|
+
const { defaultCountry, defaultLanguage, selectedCountry, selectedLanguage } = useCountriesLanguages({
|
|
12
|
+
billToCountryId: sessionData?.billTo?.country?.id,
|
|
13
|
+
});
|
|
14
|
+
const onClick = () => {
|
|
15
|
+
setShowSelector(true);
|
|
16
|
+
};
|
|
17
|
+
const countryCode = selectedCountry?.abbreviation ?? defaultCountry?.abbreviation;
|
|
18
|
+
const languageCode = selectedLanguage?.languageCode ?? defaultLanguage?.languageCode;
|
|
19
|
+
return (jsx(CountryLanguageSelectorButton, { countryCode: countryCode, languageCode: languageCode, onClick: onClick }));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { ConnectedCountryLanguageSelectorButton };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CountryCode, LanguageCode } from '../intl/types';
|
|
2
|
+
export interface CountryLanguageSelectorButtonProps {
|
|
3
|
+
countryCode?: CountryCode;
|
|
4
|
+
languageCode?: LanguageCode;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function CountryLanguageSelectorButton({ countryCode, languageCode, onClick, }: CountryLanguageSelectorButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import { Link } from '../buttons/link/link.js';
|
|
4
|
+
import { Flag } from '../flag/flag.js';
|
|
5
|
+
import { useFormattedMessage } from '../intl/use-formatted-message.js';
|
|
6
|
+
import styles from './country-language-selector-button.module.css.js';
|
|
7
|
+
|
|
8
|
+
function CountryLanguageSelectorButton({ countryCode, languageCode, onClick, }) {
|
|
9
|
+
const t = useFormattedMessage();
|
|
10
|
+
const title = t('Select another country or language…');
|
|
11
|
+
if (!countryCode || !languageCode)
|
|
12
|
+
return jsx("span", { className: styles['country-language-selector-button'] });
|
|
13
|
+
const countryLabel = t(`clselector.country.${countryCode.toLowerCase()}.${languageCode.toLowerCase()}`);
|
|
14
|
+
const languageLabel = t(`clselector.language.${languageCode.toLowerCase()}.${languageCode.toLowerCase()}`);
|
|
15
|
+
return (jsxs(Link, { "aria-label": title, className: styles['country-language-selector-button'], "data-test-selector": "country-language-selector-button", onClick: onClick, title: title, children: [jsx(Flag, { className: styles.flag, country: countryCode, label: "" }), jsxs("div", { className: styles['label'], children: [jsx("data", { className: styles['country'], children: countryLabel }), jsx("data", { className: styles['language'], children: languageLabel })] })] }));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { CountryLanguageSelectorButton };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var styles = {"country-language-selector-button":"country-language-selector-button-module-SN6I2","label":"country-language-selector-button-module-gV7Cp","country":"country-language-selector-button-module-1Cz2x","language":"country-language-selector-button-module-Ix4GQ"};
|
|
2
|
+
|
|
3
|
+
export { styles as default };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
import { Country } from '../shared/model/countries-languages';
|
|
3
|
+
interface CountrySelectProps<T extends Country> {
|
|
4
|
+
countries: T[];
|
|
5
|
+
countryNameInLanguageOfCountry?: boolean;
|
|
6
|
+
'data-test-selector'?: string;
|
|
7
|
+
isDisabled?: boolean;
|
|
8
|
+
isLoading?: boolean;
|
|
9
|
+
isRequired?: boolean;
|
|
10
|
+
name?: string;
|
|
11
|
+
showLabel?: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface CountrySelectPropsWithDefaultSelectedCountry<T extends Country> extends CountrySelectProps<T> {
|
|
14
|
+
defaultSelectedCountry: T;
|
|
15
|
+
onCountryChange?: (country: T) => void;
|
|
16
|
+
}
|
|
17
|
+
interface CountrySelectPropsWithSelectedCountry<T extends Country> extends CountrySelectProps<T> {
|
|
18
|
+
onCountryChange?: (country: T) => void;
|
|
19
|
+
selectedCountry: T;
|
|
20
|
+
}
|
|
21
|
+
interface CountrySelectPropsWithoutSelectedCountry<T extends Country> extends CountrySelectProps<T> {
|
|
22
|
+
defaultSelectedCountry?: T | undefined;
|
|
23
|
+
onCountryChange?: (country: T | undefined) => void;
|
|
24
|
+
selectedCountry?: T | undefined;
|
|
25
|
+
}
|
|
26
|
+
export declare function CountrySelect<T extends Country>(props: CountrySelectPropsWithDefaultSelectedCountry<T>): JSX.Element;
|
|
27
|
+
export declare function CountrySelect<T extends Country>(props: CountrySelectPropsWithSelectedCountry<T>): JSX.Element;
|
|
28
|
+
export declare function CountrySelect<T extends Country>(props: CountrySelectPropsWithoutSelectedCountry<T>): JSX.Element;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { useMemo } from 'react';
|
|
4
|
+
import { SelectField } from '../forms/fields/select-field/select-field.js';
|
|
5
|
+
import { useFormattedMessage } from '../intl/use-formatted-message.js';
|
|
6
|
+
|
|
7
|
+
function CountrySelect({ countries, countryNameInLanguageOfCountry = false, 'data-test-selector': dataTestSelector, defaultSelectedCountry, isDisabled, isLoading, isRequired, name, onCountryChange, selectedCountry, showLabel = true, }) {
|
|
8
|
+
const t = useFormattedMessage();
|
|
9
|
+
const translationPrefix = countryNameInLanguageOfCountry
|
|
10
|
+
? 'clSelector'
|
|
11
|
+
: 'country';
|
|
12
|
+
const countryOptions = useMemo(() => countries
|
|
13
|
+
.map((country) => [
|
|
14
|
+
country.id,
|
|
15
|
+
t(`${translationPrefix}.${country.abbreviation}`, {
|
|
16
|
+
noTranslationId: true,
|
|
17
|
+
}),
|
|
18
|
+
])
|
|
19
|
+
.sort(([, labelA], [, labelB]) => labelA.localeCompare(labelB))
|
|
20
|
+
.reduce((acc, [id, label]) => ({
|
|
21
|
+
...acc,
|
|
22
|
+
[id]: label,
|
|
23
|
+
}), {}),
|
|
24
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
25
|
+
[countries]);
|
|
26
|
+
return (jsx(SelectField, { "data-key": selectedCountry?.id, "data-test-selector": dataTestSelector, defaultSelectedOption: defaultSelectedCountry?.id, isDisabled: isDisabled, isLoading: isLoading, isRequired: isRequired, label: t('Country'), name: name, onChange: value => onCountryChange?.(countries.find(country => country.id === value)), options: countryOptions, placeholder: t('Select a country'), selectedOption: selectedCountry?.id, showLabel: showLabel, variant: "solid" }));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { CountrySelect };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Country } from '../../shared/model/countries-languages';
|
|
2
|
+
interface UseCountriesArgs {
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
}
|
|
5
|
+
interface UseCountriesReturnType {
|
|
6
|
+
countries: Country[] | undefined;
|
|
7
|
+
currentCountry: Country | undefined;
|
|
8
|
+
error: Error | null;
|
|
9
|
+
isFetching: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function useCountries({ enabled, }?: UseCountriesArgs): UseCountriesReturnType;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useMemo, useEffect } from 'react';
|
|
3
|
+
import { useCookie } from '../../cookies/use-cookie.js';
|
|
4
|
+
import { isCountryCode, isCultureCode, isLanguageCode } from '../../intl/types.js';
|
|
5
|
+
import { useFetchCountriesWithLanguages } from '../../shared/api/storefront/hooks/website/use-fetch-countries-with-languages.js';
|
|
6
|
+
import { useSessionStorage } from '../../shared/local-storage/use-session-storage.js';
|
|
7
|
+
|
|
8
|
+
function useCountries({ enabled = true, } = {}) {
|
|
9
|
+
const [sessionCountries, setSessionCountries] = useSessionStorage('countries-v1');
|
|
10
|
+
const [currentCountryId] = useCookie('CurrentCountryId');
|
|
11
|
+
const { data: apiCountries, error, isFetching, } = useFetchCountriesWithLanguages({
|
|
12
|
+
enabled: !sessionCountries && enabled,
|
|
13
|
+
});
|
|
14
|
+
const countries = useMemo(() => {
|
|
15
|
+
if (sessionCountries)
|
|
16
|
+
return sessionCountries;
|
|
17
|
+
const countries = apiCountries?.map((country) => {
|
|
18
|
+
if (!isCountryCode(country.abbreviation))
|
|
19
|
+
throw new Error(`Invalid country code: ${country.abbreviation}`);
|
|
20
|
+
return {
|
|
21
|
+
abbreviation: country.abbreviation,
|
|
22
|
+
currencyCode: country.currencyCode,
|
|
23
|
+
id: country.id,
|
|
24
|
+
languages: country.languages.map((language) => {
|
|
25
|
+
if (!isCultureCode(language.cultureCode))
|
|
26
|
+
throw new Error(`Invalid culture code: ${language.cultureCode}`);
|
|
27
|
+
if (!isLanguageCode(language.languageCode))
|
|
28
|
+
throw new Error(`Invalid language code: ${language.languageCode}`);
|
|
29
|
+
return {
|
|
30
|
+
cultureCode: language.cultureCode,
|
|
31
|
+
description: language.description,
|
|
32
|
+
id: language.id,
|
|
33
|
+
languageCode: language.languageCode,
|
|
34
|
+
};
|
|
35
|
+
}),
|
|
36
|
+
name: country.name,
|
|
37
|
+
states: null,
|
|
38
|
+
};
|
|
39
|
+
});
|
|
40
|
+
return countries;
|
|
41
|
+
}, [apiCountries, sessionCountries]);
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
if (countries !== sessionCountries)
|
|
44
|
+
setSessionCountries(countries);
|
|
45
|
+
}, [countries, sessionCountries, setSessionCountries]);
|
|
46
|
+
const currentCountry = countries?.find(country => country.id === currentCountryId);
|
|
47
|
+
return {
|
|
48
|
+
countries,
|
|
49
|
+
currentCountry,
|
|
50
|
+
error,
|
|
51
|
+
isFetching,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { useCountries };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { CountryCode, LanguageCode } from '../intl/types';
|
|
2
2
|
import { Country, Language } from '../shared/model/countries-languages';
|
|
3
|
-
|
|
3
|
+
export type OnCountryLanguageChangeHandler = (args: {
|
|
4
|
+
country: Country;
|
|
5
|
+
language: Language;
|
|
6
|
+
}) => void;
|
|
7
|
+
export interface ConnectedCountrySelectorProps {
|
|
4
8
|
defaultCountryCode: CountryCode;
|
|
5
9
|
defaultLanguageCode: LanguageCode;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
language: Language;
|
|
9
|
-
}) => void;
|
|
10
|
-
showCountry?: boolean;
|
|
10
|
+
lockCountry?: boolean;
|
|
11
|
+
onChange?: OnCountryLanguageChangeHandler;
|
|
11
12
|
}
|
|
12
|
-
export declare function ConnectedCountrySelector({ defaultCountryCode, defaultLanguageCode,
|
|
13
|
-
export {};
|
|
13
|
+
export declare function ConnectedCountrySelector({ defaultCountryCode, defaultLanguageCode, lockCountry, onChange, }: ConnectedCountrySelectorProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { useMemo, useEffect } from 'react';
|
|
4
|
+
import { logger } from '../logging/logger.js';
|
|
5
|
+
import { useFetchSession } from '../shared/api/storefront/hooks/authentication/use-fetch-session.js';
|
|
6
|
+
import { useCookiebot } from '../shared/hooks/use-cookiebot.js';
|
|
7
|
+
import { useDisclosure } from '../shared/hooks/use-disclosure.js';
|
|
8
|
+
import { CountrySelectorDialog } from './country-selector-dialog/country-selector-dialog.js';
|
|
9
|
+
import { CountrySelectorTrigger } from './country-selector-trigger/country-selector-trigger.js';
|
|
10
|
+
import { useCountriesLanguages } from './use-countries-languages.js';
|
|
11
|
+
|
|
12
|
+
function ConnectedCountrySelector({ defaultCountryCode, defaultLanguageCode, lockCountry = false, onChange, }) {
|
|
13
|
+
const { data: sessionData } = useFetchSession();
|
|
14
|
+
const { close, isOpen, open, setIsOpen } = useDisclosure(false);
|
|
15
|
+
const { countries, defaultCountry, defaultLanguage, error, isFetching, selectedCountry, selectedLanguage, updateCountryLanguage, } = useCountriesLanguages({
|
|
16
|
+
billToCountryId: sessionData?.billTo?.country?.id,
|
|
17
|
+
defaultCountryCode,
|
|
18
|
+
defaultLanguageCode,
|
|
19
|
+
});
|
|
20
|
+
const { hasResponse: hasCookiebotResponse, isDialogOpen: isCookiebotDialogOpen, } = useCookiebot();
|
|
21
|
+
const isCountryLanguageSelected = useMemo(() => selectedCountry !== undefined && selectedLanguage !== undefined, [selectedCountry, selectedLanguage]);
|
|
22
|
+
const isDismissable = isCountryLanguageSelected;
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
if (isOpen && !isCookiebotDialogOpen)
|
|
25
|
+
return;
|
|
26
|
+
setIsOpen(!isFetching &&
|
|
27
|
+
!isCountryLanguageSelected &&
|
|
28
|
+
hasCookiebotResponse &&
|
|
29
|
+
!isCookiebotDialogOpen);
|
|
30
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
31
|
+
}, [
|
|
32
|
+
isFetching,
|
|
33
|
+
isCountryLanguageSelected,
|
|
34
|
+
isOpen,
|
|
35
|
+
hasCookiebotResponse,
|
|
36
|
+
isCookiebotDialogOpen,
|
|
37
|
+
]);
|
|
38
|
+
if (isFetching)
|
|
39
|
+
return null;
|
|
40
|
+
if (error !== undefined) {
|
|
41
|
+
logger.error('Error fetching countries and languages:', error);
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
return (jsxs(Fragment, { children: [jsx(CountrySelectorTrigger, { onClick: open, selectedCountry: selectedCountry || defaultCountry, selectedLanguage: selectedLanguage || defaultLanguage }), jsx(CountrySelectorDialog, { countries: countries, isDismissable: isDismissable, isOpen: isOpen, lockCountry: lockCountry, onOpenChange: open => {
|
|
45
|
+
if (!isDismissable)
|
|
46
|
+
return;
|
|
47
|
+
setIsOpen(open);
|
|
48
|
+
}, onSubmit: async ({ country, language }) => {
|
|
49
|
+
if (selectedCountry?.id === country.id &&
|
|
50
|
+
selectedLanguage?.id === language.id)
|
|
51
|
+
return close();
|
|
52
|
+
await updateCountryLanguage({ country, language });
|
|
53
|
+
close();
|
|
54
|
+
onChange?.({ country, language });
|
|
55
|
+
}, selectedCountry: selectedCountry || defaultCountry, selectedLanguage: selectedLanguage || defaultLanguage })] }));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export { ConnectedCountrySelector };
|
|
@@ -3,6 +3,7 @@ export interface CountrySelectorDialogProps {
|
|
|
3
3
|
countries: Country[];
|
|
4
4
|
isDismissable?: boolean;
|
|
5
5
|
isOpen: boolean;
|
|
6
|
+
lockCountry?: boolean;
|
|
6
7
|
onOpenChange?: (isOpen: boolean) => void;
|
|
7
8
|
onSubmit: ({ country, language, }: {
|
|
8
9
|
country: Country;
|
|
@@ -10,6 +11,5 @@ export interface CountrySelectorDialogProps {
|
|
|
10
11
|
}) => void;
|
|
11
12
|
selectedCountry: Country;
|
|
12
13
|
selectedLanguage: Language;
|
|
13
|
-
showCountry?: boolean;
|
|
14
14
|
}
|
|
15
|
-
export declare function CountrySelectorDialog({ countries, isDismissable, isOpen, onOpenChange, onSubmit, selectedCountry, selectedLanguage,
|
|
15
|
+
export declare function CountrySelectorDialog({ countries, isDismissable, isOpen, lockCountry, onOpenChange, onSubmit, selectedCountry, selectedLanguage, }: CountrySelectorDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import { useState, useMemo, useCallback } from 'react';
|
|
4
|
+
import { Button } from '../../buttons/button/button.js';
|
|
5
|
+
import { CountrySelect } from '../../country-select/country-select.js';
|
|
6
|
+
import { Select } from '../../forms/elements/select/select.js';
|
|
7
|
+
import { FormattedMessage } from '../../intl/formatted-message.js';
|
|
8
|
+
import { useFormattedMessage } from '../../intl/use-formatted-message.js';
|
|
9
|
+
import { Dialog } from '../../modals/dialog/dialog.js';
|
|
10
|
+
import styles from './country-selector-dialog.module.css.js';
|
|
11
|
+
|
|
12
|
+
function CountrySelectorDialog({ countries, isDismissable, isOpen, lockCountry = false, onOpenChange, onSubmit, selectedCountry, selectedLanguage, }) {
|
|
13
|
+
const t = useFormattedMessage();
|
|
14
|
+
const [currentCountry, setCurrentCountry] = useState(selectedCountry);
|
|
15
|
+
const [currentLanguage, setCurrentLanguage] = useState(selectedLanguage);
|
|
16
|
+
const languageOptions = useMemo(() => currentCountry.languages.reduce((acc, language) => ({ ...acc, [language.id]: language.description }), {}), [currentCountry]);
|
|
17
|
+
const onCountryChange = useCallback((country) => {
|
|
18
|
+
setCurrentCountry(country);
|
|
19
|
+
/* Check if the current language is available in the selected country */
|
|
20
|
+
if (country.languages.some(language => language.id === currentLanguage.id))
|
|
21
|
+
return;
|
|
22
|
+
/* When the current language is not available, select the first language of the selected country */
|
|
23
|
+
const fallbackLanguage = country.languages[0];
|
|
24
|
+
if (!fallbackLanguage)
|
|
25
|
+
throw new Error(`Country ${country.name} has no languages to select`);
|
|
26
|
+
setCurrentLanguage(fallbackLanguage);
|
|
27
|
+
}, [currentLanguage.id]);
|
|
28
|
+
return (jsx(Dialog, { hideTitle: true, allowClose: isDismissable, className: {
|
|
29
|
+
dialog: styles['country-selector-dialog'],
|
|
30
|
+
modal: styles.modal,
|
|
31
|
+
}, footer: jsx(Button, { withArrow: true, "data-test-selector": "clSelector_apply", type: "submit", children: jsx(FormattedMessage, { id: "Save" }) }), hasCloseButton: isDismissable, isDismissable: isDismissable, isOpen: isOpen, onOpenChange: onOpenChange, onSubmit: () => onSubmit({ country: currentCountry, language: currentLanguage }), shouldCloseOnInteractOutside: isDismissable, title: "Country Selector", children: jsxs("div", { className: styles.content, children: [jsx("svg", { className: styles.logo, height: "32", viewBox: "0 0 134 32", width: "134", xmlns: "http://www.w3.org/2000/svg", children: jsxs("g", { fill: "none", fillRule: "evenodd", children: [jsx("path", { d: "M15.83 11.533c2.42 0 4.382 1.977 4.382 4.415 0 8.794-7.1 15.95-15.83 15.95C1.963 31.897 0 29.92 0 27.481c0-2.354 1.83-4.278 4.134-4.408l.249-.007c3.797 0 6.905-3.036 7.058-6.826l.006-.293c0-2.438 1.963-4.415 4.383-4.415zM15.83 0c2.42 0 4.383 1.977 4.383 4.415 0 2.355-1.83 4.279-4.134 4.409l-.249.007c-3.8 0-6.906 3.035-7.059 6.824l-.006.293c0 2.438-1.962 4.415-4.382 4.415S0 18.386 0 15.948C0 7.154 7.101 0 15.83 0zm8.208 16.022c0 8.794 7.101 15.95 15.83 15.95s15.83-7.156 15.83-15.95S48.597.074 39.868.074s-15.83 7.154-15.83 15.948zm8.765 0c0-3.924 3.169-7.118 7.065-7.118 3.895 0 7.065 3.194 7.065 7.118 0 3.926-3.17 7.119-7.065 7.119-3.896 0-7.065-3.193-7.065-7.12zm76.888-11.276c-6.173 6.217-6.173 16.335-.002 22.553 6.173 6.217 16.215 6.217 22.388 0a4.44 4.44 0 0 0 .001-6.244 4.359 4.359 0 0 0-6.003-.184l-.194.184a7.04 7.04 0 0 1-9.994 0c-2.753-2.775-2.753-7.29.002-10.065a7.036 7.036 0 0 1 9.751-.233l.24.231a4.36 4.36 0 0 0 6.198 0 4.44 4.44 0 0 0-.001-6.245c-6.173-6.217-16.215-6.216-22.386.003zm-17.162-.174v22.863c0 2.439 1.961 4.416 4.381 4.416 2.422 0 4.384-1.977 4.384-4.416V4.572c0-2.439-1.962-4.416-4.384-4.416-2.42 0-4.38 1.977-4.38 4.416zM64.1.1c-2.42 0-4.383 1.977-4.383 4.415v23.07c0 2.438 1.962 4.415 4.382 4.415s4.383-1.977 4.383-4.415V8.93h3.933c3.895 0 7.065 3.192 7.065 7.118v11.537c0 2.438 1.962 4.415 4.382 4.415s4.383-1.977 4.383-4.415V16.048C88.244 7.254 81.143.1 72.414.1h-8.316z", fill: "#000" }), jsx("path", { d: "M47.036 16.022c0 3.99-3.209 7.222-7.168 7.222-3.96 0-7.169-3.233-7.169-7.222 0-3.989 3.21-7.222 7.169-7.222 3.96 0 7.168 3.233 7.168 7.222", fill: "#E30613" })] }) }), jsx("p", { className: styles.intro, children: jsx(FormattedMessage, { id: "Welcome to Sonic Equipment. Please choose your country and language below." }) }), jsxs("div", { className: styles.selects, children: [jsx(CountrySelect, { isRequired: true, countries: countries, countryNameInLanguageOfCountry: true, "data-test-selector": "clSelector_country", isDisabled: lockCountry, onCountryChange: onCountryChange, selectedCountry: currentCountry }), jsx(Select, { isRequired: true, "data-test-selector": "clSelector_language", label: t('Language'), onChange: value => setCurrentLanguage(currentCountry.languages.find(language => language.id === value) || currentLanguage), options: languageOptions, placeholder: t('Select a language'), selectedOption: currentLanguage.id, showPlaceholder: false, variant: "solid" })] })] }) }));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { CountrySelectorDialog };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var styles = {"country-selector-dialog":"country-selector-dialog-module-mMJS0","content":"country-selector-dialog-module-z-ZqY","logo":"country-selector-dialog-module-7VjsF","intro":"country-selector-dialog-module-IdVDt","selects":"country-selector-dialog-module-Nvikf"};
|
|
2
|
+
|
|
3
|
+
export { styles as default };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Country, Language } from '../../shared/model/countries-languages';
|
|
2
2
|
export interface CountrySelectorTriggerProps {
|
|
3
|
-
onClick:
|
|
3
|
+
onClick: VoidFunction;
|
|
4
4
|
selectedCountry: Country | undefined;
|
|
5
5
|
selectedLanguage: Language | undefined;
|
|
6
|
-
showCountry?: boolean;
|
|
7
6
|
}
|
|
8
|
-
export declare function CountrySelectorTrigger({ onClick, selectedCountry, selectedLanguage,
|
|
7
|
+
export declare function CountrySelectorTrigger({ onClick, selectedCountry, selectedLanguage, }: CountrySelectorTriggerProps): import("react/jsx-runtime").JSX.Element | undefined;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { useFormattedMessage } from '../../intl/use-formatted-message.js';
|
|
4
|
+
import { Image } from '../../media/image/image.js';
|
|
5
|
+
import styles from './country-selector-trigger.module.css.js';
|
|
6
|
+
|
|
7
|
+
function CountrySelectorTrigger({ onClick, selectedCountry, selectedLanguage, }) {
|
|
8
|
+
const t = useFormattedMessage();
|
|
9
|
+
if (!selectedCountry || !selectedLanguage)
|
|
10
|
+
return;
|
|
11
|
+
const abbreviation = selectedCountry.abbreviation.toLowerCase();
|
|
12
|
+
const flagSrc = `https://res.cloudinary.com/dkz9eknwh/image/upload/v1729678637/images/flags/${abbreviation}.svg`;
|
|
13
|
+
const countryName = t(`clSelector.${selectedCountry.abbreviation}`, {
|
|
14
|
+
noTranslationId: true,
|
|
15
|
+
});
|
|
16
|
+
return (jsxs("button", { "aria-label": "Open country selector dialog", className: styles['country-selector-trigger'], onClick: onClick, type: "button", children: [jsx(Image, { className: styles.flag, image: {
|
|
17
|
+
1: flagSrc,
|
|
18
|
+
2: flagSrc,
|
|
19
|
+
3: flagSrc,
|
|
20
|
+
altText: countryName,
|
|
21
|
+
}, title: "" }), jsx("div", { className: styles.text, children: selectedLanguage.description })] }));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { CountrySelectorTrigger };
|